diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000000..1fb4490f2f3 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,155 @@ +name: CI jobs +on: + push: + branches: + - master + - staging + - r[0-9]+.* + - bazelcism-superclean2000-214 # temporary + pull_request: + branches: + - master + - r[0-9]+.* + types: [opened, reopened, synchronize, labeled, unlabeled] +env: + STAGING_PROFILE_ID: 46f80d0729c92d + MAVEN_PHASE: install # [[ "${{ github.event_name }}" == "push" ]] && MAVEN_PHASE=deploy || MAVEN_PHASE=install +jobs: + check-format: + if: github.event_name == 'pull_request' + runs-on: ubuntu-18.04 + steps: + - name: Configure Java + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '17' + - name: Checkout repository + uses: actions/checkout@v1 + - name: Build project + run: | + gcc --version + mvn -version + mvn clean install -Pjdk17 -B -U -e -Dlint.skip=true -Dmaven.test.skip=true + - name: Run format checks + run: | + mvn spotless:check -Pjdk17 -B -U -e + prepare: + runs-on: ubuntu-20.04 + outputs: + stagingRepositoryId: ${{ steps.staging.outputs.stagingRepositoryId }} + steps: + - name: Create staging repository + if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/r') + id: staging + run: | + echo "Creating staging repository with profile $STAGING_PROFILE_ID" + echo "Releasing TF Java - created by CI build" > request.xml + curl -X POST -d @request.xml -s -o response.xml -u ${{ secrets.CI_DEPLOY_USERNAME }}:${{ secrets.CI_DEPLOY_PASSWORD }} -H "Content-Type:application/xml" \ + https://oss.sonatype.org/service/local/staging/profiles/$STAGING_PROFILE_ID/start + STAGING_REPOSITORY_ID=`awk -F'[<>]' '/stagedRepositoryId/{print $3}' response.xml` + echo "Staging repository created: $STAGING_REPOSITORY_ID" + echo "::set-output name=stagingRepositoryId::$STAGING_REPOSITORY_ID" + linux-x86_64: + if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'CI build') + runs-on: ubuntu-20.04 + needs: prepare + strategy: + matrix: + ext: ["", -gpu] #, -mkl, -mkl-gpu] + steps: + - name: Configure Java + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '11' + - name: Checkout repository + uses: actions/checkout@v1 + - name: Build project + run: | + gcc --version + mvn -version + echo "ossrh${{ secrets.CI_DEPLOY_USERNAME }}${{ secrets.CI_DEPLOY_PASSWORD }}" > $HOME/.m2/settings.xml + echo Executing Maven $MAVEN_PHASE + mvn clean $MAVEN_PHASE -B -U -e -Djavacpp.platform=linux-x86_64 -Djavacpp.platform.extension=${{ matrix.ext }} -am -DstagingRepositoryId=${{ needs.prepare.outputs.stagingRepositoryId }} "-Dnative.build.flags=$BAZEL_CACHE" + macosx-x86_64: + if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'CI build') + runs-on: macos-11 + needs: prepare + strategy: + matrix: + ext: [""] # , -mkl] + steps: + - name: Configure Java + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '11' + - name: Checkout repository + uses: actions/checkout@v1 + - name: Build project + run: | + clang --version + mvn -version + echo "ossrh${{ secrets.CI_DEPLOY_USERNAME }}${{ secrets.CI_DEPLOY_PASSWORD }}" > $HOME/.m2/settings.xml + echo Executing Maven $MAVEN_PHASE + mvn clean $MAVEN_PHASE -B -U -e -Djavacpp.platform=macosx-x86_64 -Djavacpp.platform.extension=${{ matrix.ext }} -am -DstagingRepositoryId=${{ needs.prepare.outputs.stagingRepositoryId }} "-Dnative.build.flags=$BAZEL_CACHE" + windows-x86_64: + if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'CI build') + runs-on: windows-2019 + needs: prepare + strategy: + matrix: + ext: ["", -gpu] #, -mkl, -mkl-gpu] + steps: + - name: Configure page file + uses: al-cheb/configure-pagefile-action@v1.2 + with: + minimum-size: 8GB + maximum-size: 16GB + disk-root: "C:" + - name: Install environment + shell: cmd + run: | + set "PATH=C:\msys64\usr\bin;%PATH%" + python -m pip install numpy six + set "EXT=${{ matrix.ext }}" + echo %JAVA_HOME% + - name: Configure Java + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '11' + - name: Checkout repository + uses: actions/checkout@v1 + - name: Build project + shell: cmd + run: | + call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64 + set "PATH=C:\msys64\usr\bin;%PATH%" + mkdir C:\tmp + bash --version + git --version + cl + call mvn -version + echo ^^^^ossrh^^${{ secrets.CI_DEPLOY_USERNAME }}^^${{ secrets.CI_DEPLOY_PASSWORD }}^^^^ > %USERPROFILE%\.m2\settings.xml + set "SKIP_EXPORT=true" + echo Executing Maven %MAVEN_PHASE% + call mvn clean %MAVEN_PHASE% -B -U -e -Djavacpp.platform=windows-x86_64 -Djavacpp.platform.extension=${{ matrix.ext }} -am -DstagingRepositoryId=${{ needs.prepare.outputs.stagingRepositoryId }} "-Dnative.build.flags=%BAZEL_CACHE%" + if ERRORLEVEL 1 exit /b + deploy: + if: github.event_name == 'push' && contains(github.ref, 'master') + needs: [linux-x86_64, macosx-x86_64, windows-x86_64] + runs-on: ubuntu-18.04 + steps: + - name: Configure Java + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '11' + - name: Checkout repository + uses: actions/checkout@v1 + - name: Deploy snapshot artifacts + run: | + echo "ossrh${{ secrets.CI_DEPLOY_USERNAME }}${{ secrets.CI_DEPLOY_PASSWORD }}" > settings.xml + bash deploy.sh diff --git a/.gitignore b/.gitignore index c3863206a8c..cb95fc014f9 100644 --- a/.gitignore +++ b/.gitignore @@ -36,6 +36,10 @@ xcuserdata/** /api_init_files_list.txt /estimator_api_init_files_list.txt *.whl +tensorflow-core/tensorflow-core-api/downloads/ + +# Vim backups +*~ # Patch files *.orig diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b7cd6e72194..af9a634ae3d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -119,6 +119,7 @@ To upgrade the version of TensorFlow that is embedded within TensorFlow Java, pl 3. Update `urls`, `sha256` and `strip_prefix` fields of the `org_tensorflow` archive rule in Bazel [workspace](https://github.com/tensorflow/java/blob/master/tensorflow-core/tensorflow-core-api/WORKSPACE#L19) 4. Extract the archive in a temporary folder 5. Copy the content of `tensorflow-x.x.x/.bazelrc` file to `tensorflow-core/tensorflow-core-api/tensorflow.bazelrc` under TensorFlow Java source tree +6. Copy the content of `tensorflow-x.x.x/WORKSPACE` after the "###### Copy content of..." notice if `tensorflow-core/tensorflow-core-api/WORKSPACE`, read notice for more details If the version of `tensorflow-x.x.x/.bazelversion` is different than the one found in `tensorflow-core/tensorflow-core-api/.bazelversion` diff --git a/pom.xml b/pom.xml index 12d503d03e9..d1dbaadca85 100644 --- a/pom.xml +++ b/pom.xml @@ -40,14 +40,14 @@ 11 11 11 - 5.6.2 - 1.21 + 5.10.0 + 1.37 2.7 2.10.0 true true true - 2.20.2 + 2.38.0 @@ -201,7 +201,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.8.0 + 3.11.0 true @@ -289,6 +289,170 @@ + + + linuxos + + linux + + + linux + linux + + + + linux-x86_64 + + + linux + amd64 + + + !javacpp.platform.extension + + + + + linux-x86_64-gpu + + + linux + amd64 + + + javacpp.platform.extension + -gpu + + + + + macosx + + mac os x + + + darwin + macosx + + + + macosx-x86_64 + + + mac os x + x86_64 + + + + + macosx-arm64 + + + mac os x + aarch64 + + + + + windowsos + + windows + + + windows + windows + + + + windows-x86_64 + + + windows + x86_64 + + + + + arm + + arm + + + armhf + + + + aarch64 + + aarch64 + + + arm64 + + + + armv8 + + armv8 + + + arm64 + + + + amd64 + + amd64 + + + x86_64 + + + + x86-64 + + x86-64 + + + x86_64 + + + + + linux + + + unix + Linux + + + + linux + + + + darwin + + + unix + Mac OS X + + + + darwin + + + + windows + + + windows + + + + windows + + @@ -305,7 +469,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.8.0 + 3.11.0 true @@ -313,7 +477,7 @@ org.apache.maven.plugins maven-enforcer-plugin - 3.2.1 + 3.4.1 enforce @@ -335,7 +499,7 @@ org.apache.maven.plugins maven-gpg-plugin - 1.6 + 3.1.0 sign-artifacts @@ -354,7 +518,7 @@ maven-source-plugin - 3.2.1 + 3.3.0 attach-sources @@ -366,7 +530,7 @@ maven-javadoc-plugin - 3.2.0 + 3.6.0 attach-javadocs @@ -398,7 +562,7 @@ - 1.14.0 + 1.17.0 @@ -410,12 +574,12 @@ org.apache.maven.plugins maven-jar-plugin - 3.2.0 + 3.3.0 org.apache.maven.plugins maven-surefire-plugin - 3.0.0-M5 + 3.1.2 **/*Test.java diff --git a/tensorflow-core/pom.xml b/tensorflow-core/pom.xml index 0bb868aa89b..c0505ab426b 100644 --- a/tensorflow-core/pom.xml +++ b/tensorflow-core/pom.xml @@ -31,19 +31,19 @@ Parent POM of TensorFlow core artifacts + tensorflow-core-native tensorflow-core-generator tensorflow-core-api + tensorflow-core-platform - 3.19.4 + 3.21.9 ${javacpp.platform}${javacpp.platform.extension} false @@ -53,70 +53,21 @@ ${javacpp.platform} linux-armhf linux-arm64 - linux-ppc64le - linux-x86 linux-x86_64 macosx-arm64 macosx-x86_64 - windows-x86 windows-x86_64 linux-armhf${javacpp.platform.extension} linux-arm64${javacpp.platform.extension} - linux-ppc64le${javacpp.platform.extension} - linux-x86${javacpp.platform.extension} linux-x86_64${javacpp.platform.extension} macosx-arm64${javacpp.platform.extension} macosx-x86_64${javacpp.platform.extension} - windows-x86${javacpp.platform.extension} windows-x86_64${javacpp.platform.extension} - 1.5.8 + 1.5.9 + - - - javacpp-platform-extension-default - - - javacpp.platform.extension - !all - - - - tensorflow-core-platform${javacpp.platform.extension} - - - - - - javacpp-platform-extension-all - - - javacpp.platform.extension - all - - - - tensorflow-core-platform - tensorflow-core-platform-gpu - - - - - - javacpp-platform-default @@ -169,21 +120,15 @@ ${os.name}-${os.arch} ${os.name}-${os.arch} ${os.name}-${os.arch} - ${os.name}-${os.arch} - ${os.name}-${os.arch} ${os.name}-${os.arch} ${os.name}-${os.arch} ${os.name}-${os.arch} - ${os.name}-${os.arch} ${os.name}-${os.arch} ${os.name}-${os.arch}${javacpp.platform.extension} ${os.name}-${os.arch}${javacpp.platform.extension} - ${os.name}-${os.arch}${javacpp.platform.extension} - ${os.name}-${os.arch}${javacpp.platform.extension} ${os.name}-${os.arch}${javacpp.platform.extension} ${os.name}-${os.arch}${javacpp.platform.extension} ${os.name}-${os.arch}${javacpp.platform.extension} - ${os.name}-${os.arch}${javacpp.platform.extension} ${os.name}-${os.arch}${javacpp.platform.extension} @@ -308,66 +253,6 @@ - - javacpp-platform-linux-ppc64le - - - javacpp.platform - linux-ppc64le - - - - - - ${javacpp.platform} - - - - - - - - - ${javacpp.platform}${javacpp.platform.extension} - - - - - - - - - - - javacpp-platform-linux-x86 - - - javacpp.platform - linux-x86 - - - - - - - ${javacpp.platform} - - - - - - - - - ${javacpp.platform}${javacpp.platform.extension} - - - - - - - - javacpp-platform-linux-x86_64 @@ -458,36 +343,6 @@ - - javacpp-platform-windows-x86 - - - javacpp.platform - windows-x86 - - - - - - - - - - - ${javacpp.platform} - - - - - - - - - ${javacpp.platform}${javacpp.platform.extension} - - - - javacpp-platform-windows-x86_64 @@ -546,32 +401,6 @@ - - javacpp.platform.linux-ppc64le-true - - - javacpp.platform.linux-ppc64le - - - - linux-ppc64le - linux-ppc64le${javacpp.platform.extension} - - - - - javacpp.platform.linux-x86-true - - - javacpp.platform.linux-x86 - - - - linux-x86 - linux-x86${javacpp.platform.extension} - - - javacpp.platform.linux-x86_64-true @@ -611,19 +440,6 @@ - - javacpp.platform.windows-x86-true - - - javacpp.platform.windows-x86 - - - - windows-x86 - windows-x86${javacpp.platform.extension} - - - javacpp.platform.windows-x86_64-true @@ -707,20 +523,6 @@ - - javacpp.platform.custom-linux-ppc64le - - - javacpp.platform.host - - linuxppc64le - - - linux-ppc64le - linux-ppc64le${javacpp.platform.extension} - - - javacpp.platform.custom-linux-amd64 @@ -861,154 +663,6 @@ - - - linuxos - - linux - - - linux - linux - - - - macosx - - mac os x - - - darwin - macosx - - - - windowsos - - windows - - - windows - windows - - - - arm - - arm - - - armhf - - - - aarch64 - - aarch64 - - - arm64 - - - - armv8 - - armv8 - - - arm64 - - - - i386 - - i386 - - - x86 - - - - i486 - - i486 - - - x86 - - - - i586 - - i586 - - - x86 - - - - i686 - - i686 - - - x86 - - - - amd64 - - amd64 - - - x86_64 - - - - x86-64 - - x86-64 - - - x86_64 - - - - - linux - - - unix - Linux - - - - linux - - - - darwin - - - unix - Mac OS X - - - - darwin - - - - windows - - - windows - - - - windows - - diff --git a/tensorflow-core/tensorflow-core-api/.bazelversion b/tensorflow-core/tensorflow-core-api/.bazelversion deleted file mode 100644 index 3bff059174b..00000000000 --- a/tensorflow-core/tensorflow-core-api/.bazelversion +++ /dev/null @@ -1 +0,0 @@ -5.1.1 \ No newline at end of file diff --git a/tensorflow-core/tensorflow-core-api/BUILD b/tensorflow-core/tensorflow-core-api/BUILD deleted file mode 100644 index 67ee341207d..00000000000 --- a/tensorflow-core/tensorflow-core-api/BUILD +++ /dev/null @@ -1,66 +0,0 @@ -load("@org_tensorflow//tensorflow:tensorflow.bzl", "tf_cc_binary", "clean_dep", "VERSION_MAJOR") -load("@rules_java//java:defs.bzl", "java_proto_library") -load("rules.bzl", "tfjava_cc_binary") - -cc_import( - name = "libtensorflow_cc_import_lib", - shared_library = select({ - clean_dep("//tensorflow:macos"): "@org_tensorflow//tensorflow:libtensorflow_cc.dylib", - "//conditions:default": "@org_tensorflow//tensorflow:libtensorflow_cc.so.%s" % VERSION_MAJOR, - }), -) - -tfjava_cc_binary( - name = "java_op_exporter", - srcs = [ - "src/bazel/op_generator/op_export_main.cc", - ], - deps = [ - clean_dep("//tensorflow/core:framework"), - clean_dep("//tensorflow/core:lib"), - clean_dep("//tensorflow/core:op_gen_lib"), - clean_dep("//tensorflow/core:protos_all_cc"), - ], -) - -filegroup( - name = "java_api_def", - srcs = glob(["src/bazel/api_def/*"]) -) - -tfjava_cc_binary( - name = "java_api_import", - srcs = [ - "src/bazel/api_def/import/api_import.cc", - ], - deps = [ - clean_dep("//tensorflow/core:op_gen_lib"), - clean_dep("//tensorflow/tools/api/lib:api_objects_proto_cc"), - ], -) - -java_proto_library( - name = "java_proto_gen_sources", - deps = [ - clean_dep("//tensorflow/core:protos_all") - ] -) - -filegroup( - name = "custom_ops_test", - srcs = select({ - # FIXME(karllessard) Disable custom ops test on Windows since TF is still monolithic on this platform - clean_dep("//tensorflow:windows"): [], - "//conditions:default": [":libcustom_ops_test.so"], - }) -) - -tf_cc_binary( - name = "libcustom_ops_test.so", - srcs = ["src/bazel/test/my_test_op.cc"], - linkshared = 1, - linkopts = ["-lm"], - deps = [ - clean_dep("//tensorflow/core:framework"), - ] -) diff --git a/tensorflow-core/tensorflow-core-api/WORKSPACE b/tensorflow-core/tensorflow-core-api/WORKSPACE deleted file mode 100644 index 43e9ece8fe9..00000000000 --- a/tensorflow-core/tensorflow-core-api/WORKSPACE +++ /dev/null @@ -1,52 +0,0 @@ -workspace(name = "tensorflow_core_api") - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -# TensorFlow archive -# Note: Make sure to synchronize Maven dependencies inherited from TensorFlow binaries when updating -# the version of this archive (e.g. google protobuf) -http_archive( - name = "org_tensorflow", - patches = [ - ":tensorflow-visibility.patch", -# ":tensorflow-macosx.patch", - ":tensorflow-windows.patch", - ":tensorflow-proto.patch", - ":custom-grad-symbols.patch", - ":tensorflow-nccl.patch" - ], - patch_tool = "patch", - patch_args = ["-p1"], - patch_cmds = ["grep -rl 'java_package' tensorflow/core | xargs sed -i.bak 's/^\\(.* java_package = \"org\\.tensorflow\\.\\)\\(.*\"\\)/\\1proto.\\2'/"], - urls = [ - "https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.10.1.tar.gz", - ], - sha256 = "622a92e22e6f3f4300ea43b3025a0b6122f1cc0e2d9233235e4c628c331a94a3", - strip_prefix = "tensorflow-2.10.1" -) - -# START: Upstream TensorFlow dependencies -# TensorFlow build depends on these dependencies. -# Needs to be in-sync with TensorFlow sources. -load("@org_tensorflow//tensorflow:workspace3.bzl", "tf_workspace3") - -tf_workspace3() - -load("@org_tensorflow//tensorflow:workspace2.bzl", "tf_workspace2") - -tf_workspace2() - -load("@org_tensorflow//tensorflow:workspace1.bzl", "tf_workspace1") - -tf_workspace1() - -load("@org_tensorflow//tensorflow:workspace0.bzl", "tf_workspace0") - -tf_workspace0() -# END: Upstream TensorFlow dependencies - -load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") -grpc_deps() - -load("@upb//bazel:repository_defs.bzl", "bazel_version_repository") -bazel_version_repository(name = "bazel_version") diff --git a/tensorflow-core/tensorflow-core-api/build.sh b/tensorflow-core/tensorflow-core-api/build.sh deleted file mode 100755 index bf0713adf40..00000000000 --- a/tensorflow-core/tensorflow-core-api/build.sh +++ /dev/null @@ -1,117 +0,0 @@ -#!/bin/bash -# Script to build native TensorFlow libraries -set -eu - -# Allows us to use ccache with Bazel on Mac -export BAZEL_USE_CPP_ONLY_TOOLCHAIN=1 - -export BAZEL_VC="${VCINSTALLDIR:-}" - -if [[ -d $BAZEL_VC ]]; then - export BAZEL_BUILD="--output_user_root=$(cygpath -w $TMP) build" - export BUILD_FLAGS="--copt=//arch:AVX `#--copt=//arch:AVX2` --define=override_eigen_strong_inline=true" - export PYTHON_BIN_PATH=$(which python.exe) -else - export BAZEL_BUILD="build" - export BUILD_FLAGS="--copt=-msse4.1 --copt=-msse4.2 --copt=-mavx `#--copt=-mavx2 --copt=-mfma` --linkopt=-lstdc++ --host_linkopt=-lstdc++" - export PYTHON_BIN_PATH=$(which python3) -fi - -# Add platform specific flags -if [[ "${PLATFORM:-}" == macosx-arm64 ]]; then - BUILD_FLAGS="$BUILD_FLAGS --config=macos_arm64" -fi - -if [[ "${EXTENSION:-}" == *mkl* ]]; then - BUILD_FLAGS="$BUILD_FLAGS --config=mkl" -fi - -if [[ "${EXTENSION:-}" == *gpu* ]]; then - BUILD_FLAGS="$BUILD_FLAGS --config=cuda" - export TF_CUDA_COMPUTE_CAPABILITIES="${TF_CUDA_COMPUTE_CAPABILITIES:-"sm_35,sm_50,sm_60,sm_70,sm_75,compute_80"}" - if [[ -z ${TF_CUDA_PATHS:-} ]] && [[ -d ${CUDA_PATH:-} ]]; then - # Work around some issue with Bazel preventing it from detecting CUDA on Windows - export TF_CUDA_PATHS="$CUDA_PATH" - fi -fi - -BUILD_FLAGS="$BUILD_FLAGS --experimental_repo_remote_exec --python_path="$PYTHON_BIN_PATH" --output_filter=DONT_MATCH_ANYTHING --verbose_failures" - -# Always allow distinct host configuration since we rely on the host JVM for a few things (this was disabled by default on windows) -BUILD_FLAGS="$BUILD_FLAGS --distinct_host_configuration=true" - -# Build C/C++ API of TensorFlow itself including a target to generate ops for Java -${BAZEL_CMD:=bazel} --bazelrc=tensorflow.bazelrc $BAZEL_BUILD $BUILD_FLAGS ${BUILD_USER_FLAGS:-} \ - @org_tensorflow//tensorflow:tensorflow_cc \ - @org_tensorflow//tensorflow/tools/lib_package:jnilicenses_generate \ - :java_proto_gen_sources \ - :java_op_exporter \ - :java_api_import \ - :custom_ops_test - -export BAZEL_SRCS=$(pwd -P)/bazel-tensorflow-core-api -export BAZEL_BIN=$(pwd -P)/bazel-bin -export TENSORFLOW_BIN=$BAZEL_BIN/external/org_tensorflow/tensorflow - -# Normalize some paths with symbolic links -TENSORFLOW_SO=($TENSORFLOW_BIN/libtensorflow_cc.so.?.??.?) -TENSORFLOW_FRMK_SO=($TENSORFLOW_BIN/libtensorflow_framework.so.?.??.?) -if [[ -f $TENSORFLOW_SO ]]; then - export TENSORFLOW_LIB=$TENSORFLOW_SO - ln -sf $(basename $TENSORFLOW_SO) $TENSORFLOW_BIN/libtensorflow_cc.so - ln -sf $(basename $TENSORFLOW_SO) $TENSORFLOW_BIN/libtensorflow_cc.so.2 - ln -sf $(basename $TENSORFLOW_FRMK_SO) $TENSORFLOW_BIN/libtensorflow_framework.so - ln -sf $(basename $TENSORFLOW_FRMK_SO) $TENSORFLOW_BIN/libtensorflow_framework.so.2 -fi -TENSORFLOW_DYLIB=($TENSORFLOW_BIN/libtensorflow_cc.?.??.?.dylib) -TENSORFLOW_FRMK_DYLIB=($TENSORFLOW_BIN/libtensorflow_framework.?.??.?.dylib) -if [[ -f $TENSORFLOW_DYLIB ]]; then - export TENSORFLOW_LIB=$TENSORFLOW_DYLIB - ln -sf $(basename $TENSORFLOW_DYLIB) $TENSORFLOW_BIN/libtensorflow_cc.dylib - ln -sf $(basename $TENSORFLOW_DYLIB) $TENSORFLOW_BIN/libtensorflow_cc.2.dylib - ln -sf $(basename $TENSORFLOW_FRMK_DYLIB) $TENSORFLOW_BIN/libtensorflow_framework.dylib - ln -sf $(basename $TENSORFLOW_FRMK_DYLIB) $TENSORFLOW_BIN/libtensorflow_framework.2.dylib -fi -TENSORFLOW_DLLS=($TENSORFLOW_BIN/tensorflow_cc.dll.if.lib $TENSORFLOW_BIN/libtensorflow_cc.dll.ifso) -for TENSORFLOW_DLL in ${TENSORFLOW_DLLS[@]}; do - if [[ -f $TENSORFLOW_DLL ]]; then - export TENSORFLOW_LIB=$TENSORFLOW_BIN/tensorflow_cc.dll - ln -sf $(basename $TENSORFLOW_DLL) $TENSORFLOW_BIN/tensorflow_cc.lib - fi -done -echo "Listing $TENSORFLOW_BIN:" && ls -l $TENSORFLOW_BIN - -if [[ -x /usr/bin/install_name_tool ]] && [[ -e $BAZEL_BIN/external/llvm_openmp/libiomp5.dylib ]]; then - # Fix library with correct rpath on Mac - chmod +w $BAZEL_BIN/external/llvm_openmp/libiomp5.dylib $TENSORFLOW_BIN/libtensorflow_cc.2.dylib $TENSORFLOW_BIN/libtensorflow_framework.2.dylib - UGLYPATH=$(otool -L $TENSORFLOW_BIN/libtensorflow_cc.2.dylib | grep @loader_path | cut -f1 -d ' ') - echo $UGLYPATH - install_name_tool -add_rpath @loader_path/. -id @rpath/libiomp5.dylib $BAZEL_BIN/external/llvm_openmp/libiomp5.dylib - install_name_tool -change $UGLYPATH @rpath/libiomp5.dylib $TENSORFLOW_BIN/libtensorflow_cc.2.dylib - install_name_tool -change $UGLYPATH @rpath/libiomp5.dylib $TENSORFLOW_BIN/libtensorflow_framework.2.dylib -fi - -GEN_SRCS_DIR=src/gen/java -mkdir -p $GEN_SRCS_DIR - -GEN_RESOURCE_DIR=src/gen/resources -mkdir -p $GEN_RESOURCE_DIR - -if [[ -z "${SKIP_EXPORT:-}" ]]; then - # Export op defs - echo "Exporting Ops" - $BAZEL_BIN/java_op_exporter \ - $GEN_RESOURCE_DIR/ops.pb \ - $GEN_RESOURCE_DIR/ops.pbtxt \ - $BAZEL_SRCS/external/org_tensorflow/tensorflow/core/api_def/base_api \ - src/bazel/api_def -else - echo "Skipping Op export" -fi - - -# Copy generated Java protos from source jars - -cd $GEN_SRCS_DIR -find $TENSORFLOW_BIN/core -name \*-speed-src.jar -exec jar xf {} \; -rm -rf META-INF diff --git a/tensorflow-core/tensorflow-core-api/external/tensorflow-macosx.patch b/tensorflow-core/tensorflow-core-api/external/tensorflow-macosx.patch deleted file mode 100644 index a3101f04ecc..00000000000 --- a/tensorflow-core/tensorflow-core-api/external/tensorflow-macosx.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -ruN tensorflow/third_party/llvm_openmp/BUILD tensorflow-2.4.1-macosx/third_party/llvm_openmp/BUILD ---- tensorflow/third_party/llvm_openmp/BUILD 2021-01-21 09:25:54.000000000 +0900 -+++ tensorflow-macosx/third_party/llvm_openmp/BUILD 2021-02-07 21:13:40.971556568 +0900 -@@ -63,7 +63,7 @@ - - # Linux Cmake vars to expand. - omp_vars_linux = { -- "LIBOMP_USE_VERSION_SYMBOLS": 1, -+ "LIBOMP_USE_VERSION_SYMBOLS": 0, - "LIBOMP_HAVE_WEAK_ATTRIBUTE": 1, - "LIBOMP_USE_ADAPTIVE_LOCKS": 1, - "LIBOMP_ENABLE_ASSERTIONS": 1, -@@ -199,7 +199,7 @@ - ] + srcdeps, - copts = ["-Domp_EXPORTS -D_GNU_SOURCE -D_REENTRANT"], - includes = common_includes, -- linkopts = ["-lpthread -ldl -Wl,--version-script=$(location :ldscript)"], -+ linkopts = ["-lpthread -ldl"], - linkshared = True, - visibility = ["//visibility:public"], - ) diff --git a/tensorflow-core/tensorflow-core-api/pom.xml b/tensorflow-core/tensorflow-core-api/pom.xml index c0845470767..c4ddd0f4137 100644 --- a/tensorflow-core/tensorflow-core-api/pom.xml +++ b/tensorflow-core/tensorflow-core-api/pom.xml @@ -11,41 +11,32 @@ tensorflow-core-api jar - TensorFlow Core API Library + TensorFlow API Platform-dependent native code and pure-Java code for the TensorFlow machine intelligence library. - false - ${native.build.skip} - ${native.build.skip} - ${native.build.skip} org.tensorflow.core.api 0.4.0 - 1.0.1 + 1.1.5 - org.bytedeco - javacpp - ${javacpp.version} - - - org.bytedeco - javacpp - ${javacpp.version} - ${javacpp.platform} - test + org.tensorflow + ndarray + ${ndarray.version} - com.google.protobuf - protobuf-java - ${protobuf.version} + org.tensorflow + tensorflow-core-native + ${project.version} org.tensorflow - ndarray - ${ndarray.version} + tensorflow-core-native + ${project.version} + ${native.classifier} + test org.junit.jupiter @@ -76,35 +67,107 @@ - - dev - - true - + + generating - org.apache.maven.plugins - maven-dependency-plugin + org.codehaus.mojo + exec-maven-plugin + 3.1.0 + + + + generate-ops + + java + + generate-sources + + false + true + org.tensorflow.generator.op.OpGenerator + + -a + ${project.basedir}/src/api + -o + ${project.basedir}/src/gen/java + + + + + + + org.tensorflow + tensorflow-core-generator + ${project.version} + + + + + + maven-compiler-plugin + 3.11.0 + + + + default-compile + + + org.tensorflow.generator.op.processor.OperatorProcessor + + + + org.tensorflow + tensorflow-core-generator + ${project.version} + + + + ${project.basedir}/src/gen/annotations + + + + + + + maven-clean-plugin + 3.3.2 - dev-unpack-native - initialize + + generated-sources-clean + clean - unpack + clean - ${project.groupId}:${project.artifactId}:${project.version}:jar:${native.classifier} - ${project.build.directory}/native + + + src/gen + + @@ -112,19 +175,15 @@ - + + deploying - true true @@ -135,14 +194,14 @@ org.codehaus.mojo build-helper-maven-plugin - 3.0.0 + 3.4.0 - + add-gen-sources generate-sources @@ -151,335 +210,16 @@ ${project.basedir}/src/gen/java + ${project.basedir}/src/gen/annotations - - maven-resources-plugin - 3.1.0 - - - - javacpp-parser - initialize - - resources - - - - - - maven-compiler-plugin - 3.8.0 - - - - default-compile - - - org.tensorflow.processor.operator.OperatorProcessor - - - - org.tensorflow - tensorflow-core-generator - ${project.version} - - - - ${project.basedir}/src/gen/annotations - - - - - javacpp-parser - initialize - - compile - - - - org/tensorflow/internal/c_api/presets/*.java - - - 8 - - - - - - - org.bytedeco - javacpp - ${javacpp.version} - - ${javacpp.platform.properties} - - - platform.root - ${javacpp.platform.root} - - - platform.compiler - ${javacpp.platform.compiler} - - - platform.extension - ${javacpp.platform.extension} - - - ${project.build.outputDirectory} - - ${project.basedir}/ - ${project.basedir}/bazel-${project.artifactId}/external/org_tensorflow/ - ${project.basedir}/bazel-bin/external/org_tensorflow/ - ${project.basedir}/bazel-${project.artifactId}/external/com_google_absl/ - ${project.basedir}/bazel-${project.artifactId}/external/eigen_archive/ - ${project.basedir}/bazel-${project.artifactId}/external/com_google_protobuf/src/ - ${project.basedir}/target/classes/org/tensorflow/internal/c_api/include/ - - - ${project.basedir}/bazel-bin/external/llvm_openmp/ - ${project.basedir}/bazel-bin/external/org_tensorflow/tensorflow/ - - - ${project.basedir}/../../ - ${project.basedir}/bazel-bin/external/org_tensorflow/tensorflow/tools/lib_package/ - - - ${project.basedir}/bazel-${project.artifactId}/external/mkl_linux/lib/ - ${project.basedir}/bazel-${project.artifactId}/external/mkl_darwin/lib/ - ${project.basedir}/bazel-${project.artifactId}/external/mkl_windows/lib/ - - - - - - javacpp-validate - validate - - build - - - - - javacpp-build - initialize - - build - - - ${javacpp.build.skip} - - bash - ${project.basedir}/build.sh - - - ${javacpp.platform} - ${javacpp.platform.extension} - ${native.build.flags} - - ${project.basedir} - - - - - javacpp-clean - clean - - build - - - ${javacpp.build.skip} - - bazel - clean - - ${project.basedir} - - - - - javacpp-parser - generate-sources - - parse - - - ${javacpp.parser.skip} - ${project.basedir}/src/gen/java - org.tensorflow.internal.c_api.presets.* - - - - - javacpp-compiler - process-classes - - build - - - ${project.build.directory}/native/org/tensorflow/internal/c_api/${native.classifier}/ - ${javacpp.compiler.skip} - org.tensorflow.internal.c_api.** - true - true - - - - - - com.google.protobuf - protobuf-java - ${protobuf.version} - - - - - - org.codehaus.mojo - exec-maven-plugin - 3.0.0 - - - generate-ops - - java - - generate-sources - - - - - org.tensorflow - tensorflow-core-generator - ${project.version} - - - - false - true - org.tensorflow.op.generator.OpGenerator - - ${project.basedir}/src/gen/java - ${project.basedir}/src/gen/resources/ops.pb - - - - - maven-jar-plugin - 3.1.0 - - - - ${java.module.name} - - - - - - - native-jar - package - - jar - - - ${native.classifier} - true - - - org/tensorflow/internal/c_api/${native.classifier}/ - - ${project.build.directory}/native - - org/tensorflow/internal/c_api/${native.classifier}/*.exp - org/tensorflow/internal/c_api/${native.classifier}/*.lib - org/tensorflow/internal/c_api/${native.classifier}/*.obj - org/tensorflow/internal/c_api/${native.classifier}/*mklml* - org/tensorflow/internal/c_api/${native.classifier}/*msvcr120* - - - - - - - maven-surefire-plugin - - - - default-test - integration-test - - test - - - - - - - - ${project.build.directory}/${project.artifactId}-${project.version}-${native.classifier}.jar - - ${project.build.directory}/native/ - - - + maven-source-plugin - 3.2.1 + 3.3.0 attach-sources @@ -495,7 +235,7 @@ maven-javadoc-plugin - 3.2.0 + 3.6.0 attach-javadocs @@ -506,16 +246,13 @@ false 256m 2048m - - http://bytedeco.org/javacpp/apidocs - maven-assembly-plugin - 3.2.0 + 3.6.0 jar-with-dependencies diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Abort.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Abort.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Abort.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Abort.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Abs.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Abs.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Abs.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Abs.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AccumulateNV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AccumulateNV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AccumulateNV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AccumulateNV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AccumulatorApplyGradient.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AccumulatorApplyGradient.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AccumulatorApplyGradient.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AccumulatorApplyGradient.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AccumulatorNumAccumulated.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AccumulatorNumAccumulated.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AccumulatorNumAccumulated.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AccumulatorNumAccumulated.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AccumulatorSetGlobalStep.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AccumulatorSetGlobalStep.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AccumulatorSetGlobalStep.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AccumulatorSetGlobalStep.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AccumulatorTakeGradient.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AccumulatorTakeGradient.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AccumulatorTakeGradient.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AccumulatorTakeGradient.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Acos.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Acos.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Acos.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Acos.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Acosh.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Acosh.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Acosh.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Acosh.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Add.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Add.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Add.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Add.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AddManySparseToTensorsMap.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AddManySparseToTensorsMap.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AddManySparseToTensorsMap.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AddManySparseToTensorsMap.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AddN.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AddN.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AddN.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AddN.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AddSparseToTensorsMap.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AddSparseToTensorsMap.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AddSparseToTensorsMap.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AddSparseToTensorsMap.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AddV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AddV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AddV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AddV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AdjustContrast.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AdjustContrast.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AdjustContrast.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AdjustContrast.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AdjustContrastv2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AdjustContrastv2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AdjustContrastv2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AdjustContrastv2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AdjustHue.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AdjustHue.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AdjustHue.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AdjustHue.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AdjustSaturation.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AdjustSaturation.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AdjustSaturation.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AdjustSaturation.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_All.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_All.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_All.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_All.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AllCandidateSampler.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AllCandidateSampler.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AllCandidateSampler.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AllCandidateSampler.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AllToAll.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AllToAll.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AllToAll.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AllToAll.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Angle.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Angle.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Angle.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Angle.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousHashTable.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousHashTable.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousHashTable.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousHashTable.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousIterator.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousIterator.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousIterator.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousIterator.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousIteratorV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousIteratorV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousIteratorV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousIteratorV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousIteratorV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousIteratorV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousIteratorV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousIteratorV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousMemoryCache.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousMemoryCache.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousMemoryCache.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousMemoryCache.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousMultiDeviceIterator.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousMultiDeviceIterator.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousMultiDeviceIterator.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousMultiDeviceIterator.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousMultiDeviceIteratorV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousMultiDeviceIteratorV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousMultiDeviceIteratorV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousMultiDeviceIteratorV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousMutableDenseHashTable.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousMutableDenseHashTable.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousMutableDenseHashTable.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousMutableDenseHashTable.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousMutableHashTable.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousMutableHashTable.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousMutableHashTable.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousMutableHashTable.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousMutableHashTableOfTensors.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousMutableHashTableOfTensors.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousMutableHashTableOfTensors.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousMutableHashTableOfTensors.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousRandomSeedGenerator.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousRandomSeedGenerator.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousRandomSeedGenerator.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousRandomSeedGenerator.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousSeedGenerator.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousSeedGenerator.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AnonymousSeedGenerator.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AnonymousSeedGenerator.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Any.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Any.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Any.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Any.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyAdaMax.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyAdaMax.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyAdaMax.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyAdaMax.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyAdadelta.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyAdadelta.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyAdadelta.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyAdadelta.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyAdagrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyAdagrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyAdagrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyAdagrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyAdagradDA.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyAdagradDA.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyAdagradDA.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyAdagradDA.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyAdagradV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyAdagradV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyAdagradV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyAdagradV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyAdam.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyAdam.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyAdam.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyAdam.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyAddSign.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyAddSign.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyAddSign.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyAddSign.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyCenteredRMSProp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyCenteredRMSProp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyCenteredRMSProp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyCenteredRMSProp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyFtrl.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyFtrl.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyFtrl.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyFtrl.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyFtrlV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyFtrlV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyFtrlV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyFtrlV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyGradientDescent.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyGradientDescent.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyGradientDescent.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyGradientDescent.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyMomentum.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyMomentum.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyMomentum.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyMomentum.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyPowerSign.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyPowerSign.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyPowerSign.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyPowerSign.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyProximalAdagrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyProximalAdagrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyProximalAdagrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyProximalAdagrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyProximalGradientDescent.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyProximalGradientDescent.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyProximalGradientDescent.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyProximalGradientDescent.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyRMSProp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyRMSProp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApplyRMSProp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ApplyRMSProp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApproxTopK.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ApproxTopK.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApproxTopK.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ApproxTopK.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApproximateEqual.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ApproximateEqual.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ApproximateEqual.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ApproximateEqual.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ArgMax.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ArgMax.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ArgMax.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ArgMax.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ArgMin.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ArgMin.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ArgMin.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ArgMin.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AsString.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AsString.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AsString.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AsString.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Asin.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Asin.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Asin.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Asin.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Asinh.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Asinh.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Asinh.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Asinh.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Assert.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Assert.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Assert.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Assert.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AssertCardinalityDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AssertCardinalityDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AssertCardinalityDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AssertCardinalityDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AssertNextDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AssertNextDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AssertNextDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AssertNextDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AssertPrevDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AssertPrevDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AssertPrevDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AssertPrevDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Assign.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Assign.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Assign.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Assign.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AssignAdd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AssignAdd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AssignAdd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AssignAdd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AssignAddVariableOp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AssignAddVariableOp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AssignAddVariableOp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AssignAddVariableOp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AssignSub.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AssignSub.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AssignSub.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AssignSub.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AssignSubVariableOp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AssignSubVariableOp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AssignSubVariableOp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AssignSubVariableOp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AssignVariableOp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AssignVariableOp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AssignVariableOp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AssignVariableOp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AssignVariableXlaConcatND.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AssignVariableXlaConcatND.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AssignVariableXlaConcatND.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AssignVariableXlaConcatND.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Atan.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Atan.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Atan.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Atan.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Atan2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Atan2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Atan2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Atan2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Atanh.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Atanh.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Atanh.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Atanh.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AudioSpectrogram.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AudioSpectrogram.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AudioSpectrogram.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AudioSpectrogram.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AudioSummary.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AudioSummary.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AudioSummary.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AudioSummary.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AudioSummaryV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AudioSummaryV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AudioSummaryV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AudioSummaryV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AutoShardDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AutoShardDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AutoShardDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AutoShardDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AvgPool.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AvgPool.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AvgPool.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AvgPool.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AvgPool3D.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AvgPool3D.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AvgPool3D.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AvgPool3D.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AvgPool3DGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AvgPool3DGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AvgPool3DGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AvgPool3DGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AvgPoolGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_AvgPoolGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_AvgPoolGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_AvgPoolGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BandedTriangularSolve.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BandedTriangularSolve.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BandedTriangularSolve.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BandedTriangularSolve.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Barrier.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Barrier.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Barrier.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Barrier.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BarrierClose.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BarrierClose.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BarrierClose.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BarrierClose.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BarrierIncompleteSize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BarrierIncompleteSize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BarrierIncompleteSize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BarrierIncompleteSize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BarrierInsertMany.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BarrierInsertMany.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BarrierInsertMany.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BarrierInsertMany.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BarrierReadySize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BarrierReadySize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BarrierReadySize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BarrierReadySize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BarrierTakeMany.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BarrierTakeMany.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BarrierTakeMany.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BarrierTakeMany.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Batch.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Batch.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Batch.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Batch.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchCholesky.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchCholesky.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchCholesky.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchCholesky.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchCholeskyGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchCholeskyGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchCholeskyGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchCholeskyGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchDatasetV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchDatasetV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchDatasetV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchDatasetV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchFFT.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchFFT.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchFFT.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchFFT.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchFFT2D.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchFFT2D.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchFFT2D.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchFFT2D.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchFFT3D.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchFFT3D.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchFFT3D.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchFFT3D.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchFunction.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchFunction.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchFunction.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchFunction.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchIFFT.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchIFFT.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchIFFT.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchIFFT.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchIFFT2D.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchIFFT2D.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchIFFT2D.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchIFFT2D.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchIFFT3D.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchIFFT3D.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchIFFT3D.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchIFFT3D.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatMul.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatMul.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatMul.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatMul.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatMulV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatMulV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatMulV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatMulV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatMulV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatMulV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatMulV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatMulV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatrixBandPart.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatrixBandPart.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatrixBandPart.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatrixBandPart.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatrixDeterminant.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatrixDeterminant.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatrixDeterminant.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatrixDeterminant.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatrixDiag.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatrixDiag.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatrixDiag.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatrixDiag.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatrixDiagPart.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatrixDiagPart.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatrixDiagPart.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatrixDiagPart.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatrixInverse.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatrixInverse.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatrixInverse.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatrixInverse.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatrixSetDiag.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatrixSetDiag.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatrixSetDiag.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatrixSetDiag.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatrixSolve.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatrixSolve.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatrixSolve.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatrixSolve.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatrixSolveLs.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatrixSolveLs.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatrixSolveLs.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatrixSolveLs.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatrixTriangularSolve.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatrixTriangularSolve.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchMatrixTriangularSolve.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchMatrixTriangularSolve.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchNormWithGlobalNormalization.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchNormWithGlobalNormalization.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchNormWithGlobalNormalization.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchNormWithGlobalNormalization.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchNormWithGlobalNormalizationGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchNormWithGlobalNormalizationGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchNormWithGlobalNormalizationGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchNormWithGlobalNormalizationGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchSelfAdjointEig.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchSelfAdjointEig.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchSelfAdjointEig.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchSelfAdjointEig.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchSelfAdjointEigV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchSelfAdjointEigV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchSelfAdjointEigV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchSelfAdjointEigV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchSvd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchSvd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchSvd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchSvd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchToSpace.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchToSpace.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchToSpace.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchToSpace.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchToSpaceND.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BatchToSpaceND.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BatchToSpaceND.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BatchToSpaceND.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselI0.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BesselI0.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselI0.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BesselI0.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselI0e.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BesselI0e.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselI0e.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BesselI0e.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselI1.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BesselI1.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselI1.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BesselI1.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselI1e.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BesselI1e.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselI1e.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BesselI1e.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselJ0.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BesselJ0.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselJ0.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BesselJ0.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselJ1.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BesselJ1.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselJ1.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BesselJ1.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselK0.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BesselK0.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselK0.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BesselK0.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselK0e.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BesselK0e.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselK0e.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BesselK0e.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselK1.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BesselK1.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselK1.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BesselK1.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselK1e.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BesselK1e.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselK1e.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BesselK1e.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselY0.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BesselY0.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselY0.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BesselY0.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselY1.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BesselY1.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BesselY1.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BesselY1.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Betainc.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Betainc.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Betainc.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Betainc.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BiasAdd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BiasAdd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BiasAdd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BiasAdd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BiasAddGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BiasAddGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BiasAddGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BiasAddGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BiasAddV1.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BiasAddV1.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BiasAddV1.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BiasAddV1.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BigQueryReader.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BigQueryReader.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BigQueryReader.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BigQueryReader.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Bincount.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Bincount.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Bincount.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Bincount.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Bitcast.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Bitcast.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Bitcast.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Bitcast.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BitwiseAnd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BitwiseAnd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BitwiseAnd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BitwiseAnd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BitwiseOr.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BitwiseOr.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BitwiseOr.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BitwiseOr.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BitwiseXor.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BitwiseXor.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BitwiseXor.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BitwiseXor.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BlockLSTM.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BlockLSTM.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BlockLSTM.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BlockLSTM.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BlockLSTMGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BlockLSTMGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BlockLSTMGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BlockLSTMGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BlockLSTMGradV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BlockLSTMGradV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BlockLSTMGradV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BlockLSTMGradV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BlockLSTMV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BlockLSTMV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BlockLSTMV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BlockLSTMV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesAggregateStats.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesAggregateStats.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesAggregateStats.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesAggregateStats.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesBucketize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesBucketize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesBucketize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesBucketize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesCalculateBestFeatureSplit.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesCalculateBestFeatureSplit.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesCalculateBestFeatureSplit.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesCalculateBestFeatureSplit.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesCalculateBestFeatureSplitV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesCalculateBestFeatureSplitV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesCalculateBestFeatureSplitV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesCalculateBestFeatureSplitV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesCalculateBestGainsPerFeature.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesCalculateBestGainsPerFeature.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesCalculateBestGainsPerFeature.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesCalculateBestGainsPerFeature.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesCenterBias.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesCenterBias.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesCenterBias.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesCenterBias.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesCreateEnsemble.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesCreateEnsemble.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesCreateEnsemble.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesCreateEnsemble.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesCreateQuantileStreamResource.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesCreateQuantileStreamResource.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesCreateQuantileStreamResource.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesCreateQuantileStreamResource.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesDeserializeEnsemble.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesDeserializeEnsemble.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesDeserializeEnsemble.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesDeserializeEnsemble.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesEnsembleResourceHandleOp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesEnsembleResourceHandleOp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesEnsembleResourceHandleOp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesEnsembleResourceHandleOp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesExampleDebugOutputs.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesExampleDebugOutputs.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesExampleDebugOutputs.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesExampleDebugOutputs.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesFlushQuantileSummaries.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesFlushQuantileSummaries.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesFlushQuantileSummaries.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesFlushQuantileSummaries.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesGetEnsembleStates.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesGetEnsembleStates.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesGetEnsembleStates.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesGetEnsembleStates.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesMakeQuantileSummaries.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesMakeQuantileSummaries.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesMakeQuantileSummaries.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesMakeQuantileSummaries.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesMakeStatsSummary.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesMakeStatsSummary.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesMakeStatsSummary.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesMakeStatsSummary.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesPredict.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesPredict.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesPredict.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesPredict.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesQuantileStreamResourceAddSummaries.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesQuantileStreamResourceAddSummaries.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesQuantileStreamResourceAddSummaries.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesQuantileStreamResourceAddSummaries.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesQuantileStreamResourceDeserialize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesQuantileStreamResourceDeserialize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesQuantileStreamResourceDeserialize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesQuantileStreamResourceDeserialize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesQuantileStreamResourceFlush.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesQuantileStreamResourceFlush.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesQuantileStreamResourceFlush.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesQuantileStreamResourceFlush.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesQuantileStreamResourceGetBucketBoundaries.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesQuantileStreamResourceGetBucketBoundaries.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesQuantileStreamResourceGetBucketBoundaries.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesQuantileStreamResourceGetBucketBoundaries.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesQuantileStreamResourceHandleOp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesQuantileStreamResourceHandleOp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesQuantileStreamResourceHandleOp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesQuantileStreamResourceHandleOp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesSerializeEnsemble.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesSerializeEnsemble.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesSerializeEnsemble.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesSerializeEnsemble.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesSparseAggregateStats.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesSparseAggregateStats.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesSparseAggregateStats.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesSparseAggregateStats.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesSparseCalculateBestFeatureSplit.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesSparseCalculateBestFeatureSplit.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesSparseCalculateBestFeatureSplit.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesSparseCalculateBestFeatureSplit.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesTrainingPredict.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesTrainingPredict.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesTrainingPredict.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesTrainingPredict.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesUpdateEnsemble.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesUpdateEnsemble.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesUpdateEnsemble.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesUpdateEnsemble.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesUpdateEnsembleV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesUpdateEnsembleV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BoostedTreesUpdateEnsembleV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BoostedTreesUpdateEnsembleV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BroadcastArgs.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BroadcastArgs.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BroadcastArgs.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BroadcastArgs.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BroadcastGradientArgs.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BroadcastGradientArgs.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BroadcastGradientArgs.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BroadcastGradientArgs.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BroadcastTo.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BroadcastTo.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BroadcastTo.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BroadcastTo.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Bucketize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Bucketize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Bucketize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Bucketize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BytesProducedStatsDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_BytesProducedStatsDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_BytesProducedStatsDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_BytesProducedStatsDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CSRSparseMatrixComponents.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CSRSparseMatrixComponents.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CSRSparseMatrixComponents.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CSRSparseMatrixComponents.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CSRSparseMatrixToDense.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CSRSparseMatrixToDense.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CSRSparseMatrixToDense.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CSRSparseMatrixToDense.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CSRSparseMatrixToSparseTensor.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CSRSparseMatrixToSparseTensor.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CSRSparseMatrixToSparseTensor.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CSRSparseMatrixToSparseTensor.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CSVDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CSVDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CSVDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CSVDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CSVDatasetV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CSVDatasetV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CSVDatasetV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CSVDatasetV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CTCBeamSearchDecoder.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CTCBeamSearchDecoder.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CTCBeamSearchDecoder.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CTCBeamSearchDecoder.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CTCGreedyDecoder.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CTCGreedyDecoder.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CTCGreedyDecoder.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CTCGreedyDecoder.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CTCLoss.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CTCLoss.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CTCLoss.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CTCLoss.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CTCLossV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CTCLossV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CTCLossV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CTCLossV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CacheDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CacheDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CacheDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CacheDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CacheDatasetV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CacheDatasetV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CacheDatasetV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CacheDatasetV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Case.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Case.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Case.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Case.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Cast.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Cast.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Cast.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Cast.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Ceil.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Ceil.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Ceil.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Ceil.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CheckNumerics.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CheckNumerics.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CheckNumerics.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CheckNumerics.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CheckNumericsV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CheckNumericsV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CheckNumericsV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CheckNumericsV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Cholesky.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Cholesky.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Cholesky.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Cholesky.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CholeskyGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CholeskyGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CholeskyGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CholeskyGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ChooseFastestBranchDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ChooseFastestBranchDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ChooseFastestBranchDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ChooseFastestBranchDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ChooseFastestDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ChooseFastestDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ChooseFastestDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ChooseFastestDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ClipByValue.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ClipByValue.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ClipByValue.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ClipByValue.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CloseSummaryWriter.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CloseSummaryWriter.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CloseSummaryWriter.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CloseSummaryWriter.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollateTPUEmbeddingMemory.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CollateTPUEmbeddingMemory.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollateTPUEmbeddingMemory.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CollateTPUEmbeddingMemory.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveAllToAllV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveAllToAllV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveAllToAllV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveAllToAllV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveAssignGroupV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveAssignGroupV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveAssignGroupV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveAssignGroupV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveBcastRecv.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveBcastRecv.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveBcastRecv.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveBcastRecv.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveBcastRecvV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveBcastRecvV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveBcastRecvV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveBcastRecvV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveBcastSend.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveBcastSend.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveBcastSend.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveBcastSend.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveBcastSendV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveBcastSendV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveBcastSendV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveBcastSendV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveGather.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveGather.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveGather.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveGather.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveGatherV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveGatherV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveGatherV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveGatherV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveInitializeCommunicator.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveInitializeCommunicator.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveInitializeCommunicator.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveInitializeCommunicator.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectivePermute.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CollectivePermute.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectivePermute.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CollectivePermute.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveReduce.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveReduce.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveReduce.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveReduce.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveReduceV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveReduceV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveReduceV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveReduceV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveReduceV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveReduceV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CollectiveReduceV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CollectiveReduceV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CombinedNonMaxSuppression.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CombinedNonMaxSuppression.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CombinedNonMaxSuppression.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CombinedNonMaxSuppression.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CompareAndBitpack.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CompareAndBitpack.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CompareAndBitpack.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CompareAndBitpack.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Complex.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Complex.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Complex.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Complex.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ComplexAbs.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ComplexAbs.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ComplexAbs.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ComplexAbs.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CompositeTensorVariantFromComponents.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CompositeTensorVariantFromComponents.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CompositeTensorVariantFromComponents.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CompositeTensorVariantFromComponents.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CompositeTensorVariantToComponents.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CompositeTensorVariantToComponents.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CompositeTensorVariantToComponents.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CompositeTensorVariantToComponents.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CompressElement.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CompressElement.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CompressElement.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CompressElement.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ComputeAccidentalHits.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ComputeAccidentalHits.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ComputeAccidentalHits.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ComputeAccidentalHits.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ComputeBatchSize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ComputeBatchSize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ComputeBatchSize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ComputeBatchSize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Concat.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Concat.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Concat.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Concat.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConcatOffset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ConcatOffset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConcatOffset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ConcatOffset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConcatV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ConcatV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConcatV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ConcatV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConcatenateDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ConcatenateDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConcatenateDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ConcatenateDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConditionalAccumulator.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ConditionalAccumulator.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConditionalAccumulator.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ConditionalAccumulator.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConfigureAndInitializeGlobalTPU.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ConfigureAndInitializeGlobalTPU.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConfigureAndInitializeGlobalTPU.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ConfigureAndInitializeGlobalTPU.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConfigureDistributedTPU.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ConfigureDistributedTPU.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConfigureDistributedTPU.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ConfigureDistributedTPU.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConfigureTPUEmbedding.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ConfigureTPUEmbedding.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConfigureTPUEmbedding.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ConfigureTPUEmbedding.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConfigureTPUEmbeddingHost.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ConfigureTPUEmbeddingHost.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConfigureTPUEmbeddingHost.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ConfigureTPUEmbeddingHost.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConfigureTPUEmbeddingMemory.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ConfigureTPUEmbeddingMemory.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConfigureTPUEmbeddingMemory.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ConfigureTPUEmbeddingMemory.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Conj.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Conj.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Conj.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Conj.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConjugateTranspose.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ConjugateTranspose.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConjugateTranspose.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ConjugateTranspose.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConnectTPUEmbeddingHosts.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ConnectTPUEmbeddingHosts.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConnectTPUEmbeddingHosts.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ConnectTPUEmbeddingHosts.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Const.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Const.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Const.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Const.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConsumeMutexLock.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ConsumeMutexLock.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ConsumeMutexLock.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ConsumeMutexLock.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ControlTrigger.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ControlTrigger.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ControlTrigger.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ControlTrigger.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Conv2D.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Conv2D.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Conv2D.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Conv2D.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Conv2DBackpropFilter.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Conv2DBackpropFilter.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Conv2DBackpropFilter.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Conv2DBackpropFilter.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Conv2DBackpropInput.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Conv2DBackpropInput.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Conv2DBackpropInput.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Conv2DBackpropInput.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Conv3D.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Conv3D.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Conv3D.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Conv3D.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Conv3DBackpropFilter.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Conv3DBackpropFilter.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Conv3DBackpropFilter.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Conv3DBackpropFilter.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Conv3DBackpropFilterV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Conv3DBackpropFilterV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Conv3DBackpropFilterV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Conv3DBackpropFilterV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Conv3DBackpropInput.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Conv3DBackpropInput.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Conv3DBackpropInput.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Conv3DBackpropInput.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Conv3DBackpropInputV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Conv3DBackpropInputV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Conv3DBackpropInputV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Conv3DBackpropInputV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Copy.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Copy.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Copy.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Copy.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CopyHost.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CopyHost.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CopyHost.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CopyHost.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CopyToMesh.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CopyToMesh.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CopyToMesh.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CopyToMesh.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Cos.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Cos.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Cos.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Cos.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Cosh.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Cosh.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Cosh.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Cosh.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CountUpTo.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CountUpTo.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CountUpTo.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CountUpTo.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CreateSummaryDbWriter.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CreateSummaryDbWriter.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CreateSummaryDbWriter.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CreateSummaryDbWriter.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CreateSummaryFileWriter.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CreateSummaryFileWriter.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CreateSummaryFileWriter.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CreateSummaryFileWriter.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CropAndResize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CropAndResize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CropAndResize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CropAndResize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CropAndResizeGradBoxes.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CropAndResizeGradBoxes.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CropAndResizeGradBoxes.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CropAndResizeGradBoxes.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CropAndResizeGradImage.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CropAndResizeGradImage.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CropAndResizeGradImage.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CropAndResizeGradImage.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Cross.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Cross.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Cross.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Cross.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CrossReplicaSum.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CrossReplicaSum.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CrossReplicaSum.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CrossReplicaSum.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CudnnRNN.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CudnnRNN.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CudnnRNN.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CudnnRNN.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CudnnRNNBackprop.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CudnnRNNBackprop.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CudnnRNNBackprop.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CudnnRNNBackprop.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CudnnRNNBackpropV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CudnnRNNBackpropV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CudnnRNNBackpropV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CudnnRNNBackpropV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CudnnRNNBackpropV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CudnnRNNBackpropV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CudnnRNNBackpropV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CudnnRNNBackpropV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CudnnRNNCanonicalToParams.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CudnnRNNCanonicalToParams.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CudnnRNNCanonicalToParams.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CudnnRNNCanonicalToParams.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CudnnRNNCanonicalToParamsV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CudnnRNNCanonicalToParamsV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CudnnRNNCanonicalToParamsV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CudnnRNNCanonicalToParamsV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CudnnRNNParamsSize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CudnnRNNParamsSize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CudnnRNNParamsSize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CudnnRNNParamsSize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CudnnRNNParamsToCanonical.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CudnnRNNParamsToCanonical.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CudnnRNNParamsToCanonical.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CudnnRNNParamsToCanonical.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CudnnRNNParamsToCanonicalV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CudnnRNNParamsToCanonicalV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CudnnRNNParamsToCanonicalV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CudnnRNNParamsToCanonicalV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CudnnRNNV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CudnnRNNV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CudnnRNNV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CudnnRNNV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CudnnRNNV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CudnnRNNV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CudnnRNNV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CudnnRNNV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Cumprod.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Cumprod.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Cumprod.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Cumprod.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Cumsum.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Cumsum.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Cumsum.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Cumsum.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CumulativeLogsumexp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_CumulativeLogsumexp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_CumulativeLogsumexp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_CumulativeLogsumexp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DTensorRestoreV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DTensorRestoreV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DTensorRestoreV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DTensorRestoreV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DTensorSetGlobalTPUArray.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DTensorSetGlobalTPUArray.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DTensorSetGlobalTPUArray.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DTensorSetGlobalTPUArray.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DTensorShardedPrefix.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DTensorShardedPrefix.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DTensorShardedPrefix.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DTensorShardedPrefix.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DataFormatDimMap.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DataFormatDimMap.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DataFormatDimMap.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DataFormatDimMap.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DataFormatVecPermute.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DataFormatVecPermute.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DataFormatVecPermute.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DataFormatVecPermute.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DataServiceDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DataServiceDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DataServiceDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DataServiceDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DataServiceDatasetV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DataServiceDatasetV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DataServiceDatasetV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DataServiceDatasetV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DataServiceDatasetV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DataServiceDatasetV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DataServiceDatasetV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DataServiceDatasetV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DataServiceDatasetV4.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DataServiceDatasetV4.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DataServiceDatasetV4.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DataServiceDatasetV4.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DatasetCardinality.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DatasetCardinality.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DatasetCardinality.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DatasetCardinality.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DatasetFromGraph.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DatasetFromGraph.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DatasetFromGraph.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DatasetFromGraph.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DatasetToGraph.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DatasetToGraph.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DatasetToGraph.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DatasetToGraph.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DatasetToGraphV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DatasetToGraphV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DatasetToGraphV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DatasetToGraphV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DatasetToSingleElement.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DatasetToSingleElement.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DatasetToSingleElement.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DatasetToSingleElement.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DatasetToTFRecord.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DatasetToTFRecord.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DatasetToTFRecord.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DatasetToTFRecord.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Dawsn.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Dawsn.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Dawsn.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Dawsn.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DebugGradientIdentity.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DebugGradientIdentity.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DebugGradientIdentity.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DebugGradientIdentity.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DebugGradientRefIdentity.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DebugGradientRefIdentity.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DebugGradientRefIdentity.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DebugGradientRefIdentity.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DebugIdentity.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DebugIdentity.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DebugIdentity.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DebugIdentity.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DebugIdentityV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DebugIdentityV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DebugIdentityV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DebugIdentityV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DebugNanCount.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DebugNanCount.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DebugNanCount.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DebugNanCount.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DebugNumericSummary.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DebugNumericSummary.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DebugNumericSummary.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DebugNumericSummary.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DebugNumericSummaryV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DebugNumericSummaryV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DebugNumericSummaryV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DebugNumericSummaryV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeAndCropJpeg.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeAndCropJpeg.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeAndCropJpeg.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeAndCropJpeg.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeBase64.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeBase64.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeBase64.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeBase64.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeBmp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeBmp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeBmp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeBmp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeCSV.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeCSV.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeCSV.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeCSV.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeCompressed.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeCompressed.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeCompressed.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeCompressed.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeGif.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeGif.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeGif.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeGif.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeImage.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeImage.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeImage.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeImage.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeJSONExample.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeJSONExample.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeJSONExample.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeJSONExample.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeJpeg.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeJpeg.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeJpeg.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeJpeg.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodePaddedRaw.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DecodePaddedRaw.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodePaddedRaw.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DecodePaddedRaw.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodePng.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DecodePng.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodePng.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DecodePng.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeProtoV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeProtoV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeProtoV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeProtoV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeRaw.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeRaw.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeRaw.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeRaw.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeWav.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeWav.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DecodeWav.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DecodeWav.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DeepCopy.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DeepCopy.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DeepCopy.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DeepCopy.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DeleteIterator.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DeleteIterator.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DeleteIterator.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DeleteIterator.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DeleteMemoryCache.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DeleteMemoryCache.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DeleteMemoryCache.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DeleteMemoryCache.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DeleteMultiDeviceIterator.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DeleteMultiDeviceIterator.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DeleteMultiDeviceIterator.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DeleteMultiDeviceIterator.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DeleteRandomSeedGenerator.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DeleteRandomSeedGenerator.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DeleteRandomSeedGenerator.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DeleteRandomSeedGenerator.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DeleteSeedGenerator.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DeleteSeedGenerator.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DeleteSeedGenerator.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DeleteSeedGenerator.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DeleteSessionTensor.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DeleteSessionTensor.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DeleteSessionTensor.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DeleteSessionTensor.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DenseBincount.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DenseBincount.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DenseBincount.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DenseBincount.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DenseCountSparseOutput.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DenseCountSparseOutput.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DenseCountSparseOutput.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DenseCountSparseOutput.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DenseToCSRSparseMatrix.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DenseToCSRSparseMatrix.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DenseToCSRSparseMatrix.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DenseToCSRSparseMatrix.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DenseToDenseSetOperation.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DenseToDenseSetOperation.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DenseToDenseSetOperation.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DenseToDenseSetOperation.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DenseToSparseBatchDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DenseToSparseBatchDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DenseToSparseBatchDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DenseToSparseBatchDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DenseToSparseSetOperation.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DenseToSparseSetOperation.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DenseToSparseSetOperation.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DenseToSparseSetOperation.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DepthToSpace.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DepthToSpace.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DepthToSpace.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DepthToSpace.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DepthwiseConv2dNative.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DepthwiseConv2dNative.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DepthwiseConv2dNative.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DepthwiseConv2dNative.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DepthwiseConv2dNativeBackpropFilter.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DepthwiseConv2dNativeBackpropFilter.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DepthwiseConv2dNativeBackpropFilter.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DepthwiseConv2dNativeBackpropFilter.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DepthwiseConv2dNativeBackpropInput.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DepthwiseConv2dNativeBackpropInput.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DepthwiseConv2dNativeBackpropInput.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DepthwiseConv2dNativeBackpropInput.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Dequantize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Dequantize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Dequantize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Dequantize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DeserializeIterator.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DeserializeIterator.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DeserializeIterator.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DeserializeIterator.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DeserializeManySparse.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DeserializeManySparse.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DeserializeManySparse.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DeserializeManySparse.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DeserializeSparse.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DeserializeSparse.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DeserializeSparse.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DeserializeSparse.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DestroyResourceOp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DestroyResourceOp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DestroyResourceOp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DestroyResourceOp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DestroyTemporaryVariable.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DestroyTemporaryVariable.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DestroyTemporaryVariable.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DestroyTemporaryVariable.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DeviceIndex.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DeviceIndex.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DeviceIndex.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DeviceIndex.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Diag.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Diag.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Diag.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Diag.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DiagPart.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DiagPart.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DiagPart.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DiagPart.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Digamma.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Digamma.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Digamma.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Digamma.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Dilation2D.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Dilation2D.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Dilation2D.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Dilation2D.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Dilation2DBackpropFilter.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Dilation2DBackpropFilter.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Dilation2DBackpropFilter.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Dilation2DBackpropFilter.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Dilation2DBackpropInput.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Dilation2DBackpropInput.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Dilation2DBackpropInput.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Dilation2DBackpropInput.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DirectedInterleaveDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DirectedInterleaveDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DirectedInterleaveDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DirectedInterleaveDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DisableCopyOnRead.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DisableCopyOnRead.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DisableCopyOnRead.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DisableCopyOnRead.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Div.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Div.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Div.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Div.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DivNoNan.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DivNoNan.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DivNoNan.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DivNoNan.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DrawBoundingBoxes.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DrawBoundingBoxes.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DrawBoundingBoxes.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DrawBoundingBoxes.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DrawBoundingBoxesV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DrawBoundingBoxesV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DrawBoundingBoxesV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DrawBoundingBoxesV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DummyIterationCounter.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DummyIterationCounter.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DummyIterationCounter.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DummyIterationCounter.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DummyMemoryCache.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DummyMemoryCache.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DummyMemoryCache.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DummyMemoryCache.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DummySeedGenerator.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DummySeedGenerator.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DummySeedGenerator.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DummySeedGenerator.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DynamicEnqueueTPUEmbeddingArbitraryTensorBatch.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DynamicEnqueueTPUEmbeddingArbitraryTensorBatch.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DynamicEnqueueTPUEmbeddingArbitraryTensorBatch.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DynamicEnqueueTPUEmbeddingArbitraryTensorBatch.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DynamicPartition.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DynamicPartition.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DynamicPartition.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DynamicPartition.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DynamicStitch.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_DynamicStitch.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_DynamicStitch.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_DynamicStitch.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EagerPyFunc.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_EagerPyFunc.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EagerPyFunc.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_EagerPyFunc.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EditDistance.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_EditDistance.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EditDistance.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_EditDistance.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Eig.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Eig.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Eig.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Eig.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Einsum.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Einsum.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Einsum.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Einsum.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Elu.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Elu.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Elu.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Elu.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EluGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_EluGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EluGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_EluGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Empty.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Empty.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Empty.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Empty.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EmptyTensorList.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_EmptyTensorList.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EmptyTensorList.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_EmptyTensorList.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EmptyTensorMap.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_EmptyTensorMap.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EmptyTensorMap.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_EmptyTensorMap.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EncodeBase64.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_EncodeBase64.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EncodeBase64.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_EncodeBase64.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EncodeJpeg.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_EncodeJpeg.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EncodeJpeg.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_EncodeJpeg.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EncodeJpegVariableQuality.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_EncodeJpegVariableQuality.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EncodeJpegVariableQuality.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_EncodeJpegVariableQuality.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EncodePng.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_EncodePng.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EncodePng.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_EncodePng.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EncodeProto.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_EncodeProto.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EncodeProto.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_EncodeProto.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EncodeWav.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_EncodeWav.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EncodeWav.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_EncodeWav.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EnqueueInQueueDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_EnqueueInQueueDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EnqueueInQueueDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_EnqueueInQueueDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EnqueueTPUEmbeddingArbitraryTensorBatch.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_EnqueueTPUEmbeddingArbitraryTensorBatch.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EnqueueTPUEmbeddingArbitraryTensorBatch.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_EnqueueTPUEmbeddingArbitraryTensorBatch.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EnqueueTPUEmbeddingBatch.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_EnqueueTPUEmbeddingBatch.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EnqueueTPUEmbeddingBatch.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_EnqueueTPUEmbeddingBatch.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EnqueueTPUEmbeddingIntegerBatch.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_EnqueueTPUEmbeddingIntegerBatch.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EnqueueTPUEmbeddingIntegerBatch.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_EnqueueTPUEmbeddingIntegerBatch.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EnqueueTPUEmbeddingRaggedTensorBatch.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_EnqueueTPUEmbeddingRaggedTensorBatch.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EnqueueTPUEmbeddingRaggedTensorBatch.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_EnqueueTPUEmbeddingRaggedTensorBatch.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EnqueueTPUEmbeddingSparseBatch.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_EnqueueTPUEmbeddingSparseBatch.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EnqueueTPUEmbeddingSparseBatch.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_EnqueueTPUEmbeddingSparseBatch.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EnqueueTPUEmbeddingSparseTensorBatch.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_EnqueueTPUEmbeddingSparseTensorBatch.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EnqueueTPUEmbeddingSparseTensorBatch.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_EnqueueTPUEmbeddingSparseTensorBatch.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EnsureShape.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_EnsureShape.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EnsureShape.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_EnsureShape.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Enter.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Enter.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Enter.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Enter.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Equal.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Equal.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Equal.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Equal.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Erf.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Erf.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Erf.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Erf.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Erfc.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Erfc.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Erfc.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Erfc.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Erfinv.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Erfinv.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Erfinv.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Erfinv.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EuclideanNorm.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_EuclideanNorm.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_EuclideanNorm.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_EuclideanNorm.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExecuteTPUEmbeddingPartitioner.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExecuteTPUEmbeddingPartitioner.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExecuteTPUEmbeddingPartitioner.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExecuteTPUEmbeddingPartitioner.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Exit.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Exit.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Exit.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Exit.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Exp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Exp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Exp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Exp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExpandDims.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExpandDims.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExpandDims.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExpandDims.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalAssertNextDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalAssertNextDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalAssertNextDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalAssertNextDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalAutoShardDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalAutoShardDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalAutoShardDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalAutoShardDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalBytesProducedStatsDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalBytesProducedStatsDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalBytesProducedStatsDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalBytesProducedStatsDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalCSVDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalCSVDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalCSVDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalCSVDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalChooseFastestDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalChooseFastestDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalChooseFastestDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalChooseFastestDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalDatasetCardinality.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalDatasetCardinality.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalDatasetCardinality.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalDatasetCardinality.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalDatasetToTFRecord.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalDatasetToTFRecord.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalDatasetToTFRecord.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalDatasetToTFRecord.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalDenseToSparseBatchDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalDenseToSparseBatchDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalDenseToSparseBatchDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalDenseToSparseBatchDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalDirectedInterleaveDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalDirectedInterleaveDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalDirectedInterleaveDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalDirectedInterleaveDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalFunctionBufferingResource.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalFunctionBufferingResource.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalFunctionBufferingResource.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalFunctionBufferingResource.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalFunctionBufferingResourceGetNext.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalFunctionBufferingResourceGetNext.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalFunctionBufferingResourceGetNext.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalFunctionBufferingResourceGetNext.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalFunctionBufferingResourceReset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalFunctionBufferingResourceReset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalFunctionBufferingResourceReset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalFunctionBufferingResourceReset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalGroupByReducerDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalGroupByReducerDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalGroupByReducerDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalGroupByReducerDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalGroupByWindowDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalGroupByWindowDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalGroupByWindowDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalGroupByWindowDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalIgnoreErrorsDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalIgnoreErrorsDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalIgnoreErrorsDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalIgnoreErrorsDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalIteratorGetDevice.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalIteratorGetDevice.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalIteratorGetDevice.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalIteratorGetDevice.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalLMDBDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalLMDBDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalLMDBDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalLMDBDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalLatencyStatsDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalLatencyStatsDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalLatencyStatsDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalLatencyStatsDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalMapAndBatchDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalMapAndBatchDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalMapAndBatchDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalMapAndBatchDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalMapDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalMapDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalMapDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalMapDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalMatchingFilesDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalMatchingFilesDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalMatchingFilesDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalMatchingFilesDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalMaxIntraOpParallelismDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalMaxIntraOpParallelismDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalMaxIntraOpParallelismDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalMaxIntraOpParallelismDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalNonSerializableDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalNonSerializableDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalNonSerializableDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalNonSerializableDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalParallelInterleaveDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalParallelInterleaveDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalParallelInterleaveDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalParallelInterleaveDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalParseExampleDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalParseExampleDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalParseExampleDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalParseExampleDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalPrivateThreadPoolDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalPrivateThreadPoolDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalPrivateThreadPoolDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalPrivateThreadPoolDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalRandomDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalRandomDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalRandomDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalRandomDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalRebatchDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalRebatchDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalRebatchDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalRebatchDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalScanDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalScanDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalScanDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalScanDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalSetStatsAggregatorDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalSetStatsAggregatorDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalSetStatsAggregatorDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalSetStatsAggregatorDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalSleepDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalSleepDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalSleepDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalSleepDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalSlidingWindowDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalSlidingWindowDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalSlidingWindowDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalSlidingWindowDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalSqlDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalSqlDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalSqlDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalSqlDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalStatsAggregatorHandle.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalStatsAggregatorHandle.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalStatsAggregatorHandle.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalStatsAggregatorHandle.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalStatsAggregatorSummary.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalStatsAggregatorSummary.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalStatsAggregatorSummary.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalStatsAggregatorSummary.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalTakeWhileDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalTakeWhileDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalTakeWhileDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalTakeWhileDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalThreadPoolDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalThreadPoolDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalThreadPoolDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalThreadPoolDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalThreadPoolHandle.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalThreadPoolHandle.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalThreadPoolHandle.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalThreadPoolHandle.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalUnbatchDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalUnbatchDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalUnbatchDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalUnbatchDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalUniqueDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalUniqueDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExperimentalUniqueDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExperimentalUniqueDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Expint.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Expint.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Expint.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Expint.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Expm1.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Expm1.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Expm1.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Expm1.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExtractGlimpse.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExtractGlimpse.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExtractGlimpse.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExtractGlimpse.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExtractGlimpseV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExtractGlimpseV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExtractGlimpseV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExtractGlimpseV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExtractImagePatches.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExtractImagePatches.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExtractImagePatches.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExtractImagePatches.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExtractJpegShape.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExtractJpegShape.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExtractJpegShape.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExtractJpegShape.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExtractVolumePatches.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ExtractVolumePatches.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ExtractVolumePatches.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ExtractVolumePatches.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FFT.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FFT.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FFT.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FFT.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FFT2D.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FFT2D.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FFT2D.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FFT2D.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FFT3D.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FFT3D.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FFT3D.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FFT3D.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FIFOQueue.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FIFOQueue.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FIFOQueue.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FIFOQueue.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FIFOQueueV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FIFOQueueV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FIFOQueueV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FIFOQueueV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Fact.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Fact.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Fact.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Fact.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FakeParam.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FakeParam.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FakeParam.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FakeParam.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FakeQuantWithMinMaxArgs.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FakeQuantWithMinMaxArgs.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FakeQuantWithMinMaxArgs.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FakeQuantWithMinMaxArgs.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FakeQuantWithMinMaxArgsGradient.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FakeQuantWithMinMaxArgsGradient.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FakeQuantWithMinMaxArgsGradient.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FakeQuantWithMinMaxArgsGradient.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FakeQuantWithMinMaxVars.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FakeQuantWithMinMaxVars.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FakeQuantWithMinMaxVars.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FakeQuantWithMinMaxVars.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FakeQuantWithMinMaxVarsGradient.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FakeQuantWithMinMaxVarsGradient.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FakeQuantWithMinMaxVarsGradient.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FakeQuantWithMinMaxVarsGradient.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FakeQuantWithMinMaxVarsPerChannel.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FakeQuantWithMinMaxVarsPerChannel.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FakeQuantWithMinMaxVarsPerChannel.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FakeQuantWithMinMaxVarsPerChannel.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FakeQuantWithMinMaxVarsPerChannelGradient.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FakeQuantWithMinMaxVarsPerChannelGradient.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FakeQuantWithMinMaxVarsPerChannelGradient.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FakeQuantWithMinMaxVarsPerChannelGradient.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FakeQueue.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FakeQueue.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FakeQueue.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FakeQueue.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FileSystemSetConfiguration.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FileSystemSetConfiguration.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FileSystemSetConfiguration.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FileSystemSetConfiguration.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Fill.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Fill.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Fill.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Fill.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FilterByLastComponentDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FilterByLastComponentDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FilterByLastComponentDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FilterByLastComponentDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FilterDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FilterDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FilterDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FilterDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FinalizeDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FinalizeDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FinalizeDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FinalizeDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FinalizeTPUEmbedding.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FinalizeTPUEmbedding.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FinalizeTPUEmbedding.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FinalizeTPUEmbedding.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Fingerprint.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Fingerprint.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Fingerprint.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Fingerprint.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FixedLengthRecordDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FixedLengthRecordDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FixedLengthRecordDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FixedLengthRecordDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FixedLengthRecordDatasetV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FixedLengthRecordDatasetV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FixedLengthRecordDatasetV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FixedLengthRecordDatasetV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FixedLengthRecordReader.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FixedLengthRecordReader.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FixedLengthRecordReader.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FixedLengthRecordReader.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FixedLengthRecordReaderV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FixedLengthRecordReaderV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FixedLengthRecordReaderV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FixedLengthRecordReaderV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FixedUnigramCandidateSampler.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FixedUnigramCandidateSampler.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FixedUnigramCandidateSampler.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FixedUnigramCandidateSampler.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FlatMapDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FlatMapDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FlatMapDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FlatMapDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Floor.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Floor.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Floor.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Floor.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FloorDiv.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FloorDiv.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FloorDiv.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FloorDiv.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FloorMod.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FloorMod.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FloorMod.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FloorMod.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FlushSummaryWriter.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FlushSummaryWriter.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FlushSummaryWriter.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FlushSummaryWriter.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_For.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_For.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_For.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_For.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FractionalAvgPool.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FractionalAvgPool.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FractionalAvgPool.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FractionalAvgPool.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FractionalAvgPoolGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FractionalAvgPoolGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FractionalAvgPoolGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FractionalAvgPoolGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FractionalMaxPool.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FractionalMaxPool.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FractionalMaxPool.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FractionalMaxPool.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FractionalMaxPoolGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FractionalMaxPoolGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FractionalMaxPoolGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FractionalMaxPoolGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FresnelCos.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FresnelCos.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FresnelCos.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FresnelCos.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FresnelSin.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FresnelSin.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FresnelSin.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FresnelSin.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FusedBatchNorm.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FusedBatchNorm.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FusedBatchNorm.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FusedBatchNorm.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FusedBatchNormGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FusedBatchNormGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FusedBatchNormGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FusedBatchNormGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FusedBatchNormGradV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FusedBatchNormGradV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FusedBatchNormGradV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FusedBatchNormGradV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FusedBatchNormGradV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FusedBatchNormGradV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FusedBatchNormGradV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FusedBatchNormGradV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FusedBatchNormV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FusedBatchNormV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FusedBatchNormV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FusedBatchNormV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FusedBatchNormV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FusedBatchNormV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FusedBatchNormV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FusedBatchNormV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FusedPadConv2D.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FusedPadConv2D.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FusedPadConv2D.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FusedPadConv2D.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FusedResizeAndPadConv2D.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_FusedResizeAndPadConv2D.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_FusedResizeAndPadConv2D.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_FusedResizeAndPadConv2D.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GRUBlockCell.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_GRUBlockCell.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GRUBlockCell.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_GRUBlockCell.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GRUBlockCellGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_GRUBlockCellGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GRUBlockCellGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_GRUBlockCellGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Gather.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Gather.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Gather.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Gather.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GatherNd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_GatherNd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GatherNd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_GatherNd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GatherV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_GatherV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GatherV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_GatherV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GcsConfigureBlockCache.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_GcsConfigureBlockCache.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GcsConfigureBlockCache.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_GcsConfigureBlockCache.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GcsConfigureCredentials.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_GcsConfigureCredentials.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GcsConfigureCredentials.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_GcsConfigureCredentials.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GenerateBigQueryReaderPartitions.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_GenerateBigQueryReaderPartitions.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GenerateBigQueryReaderPartitions.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_GenerateBigQueryReaderPartitions.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GenerateBoundingBoxProposals.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_GenerateBoundingBoxProposals.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GenerateBoundingBoxProposals.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_GenerateBoundingBoxProposals.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GenerateVocabRemapping.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_GenerateVocabRemapping.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GenerateVocabRemapping.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_GenerateVocabRemapping.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GeneratorDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_GeneratorDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GeneratorDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_GeneratorDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GetElementAtIndex.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_GetElementAtIndex.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GetElementAtIndex.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_GetElementAtIndex.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GetOptions.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_GetOptions.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GetOptions.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_GetOptions.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GetSessionHandle.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_GetSessionHandle.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GetSessionHandle.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_GetSessionHandle.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GetSessionHandleV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_GetSessionHandleV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GetSessionHandleV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_GetSessionHandleV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GetSessionTensor.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_GetSessionTensor.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GetSessionTensor.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_GetSessionTensor.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Greater.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Greater.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Greater.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Greater.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GreaterEqual.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_GreaterEqual.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GreaterEqual.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_GreaterEqual.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GroupByReducerDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_GroupByReducerDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GroupByReducerDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_GroupByReducerDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GroupByWindowDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_GroupByWindowDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GroupByWindowDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_GroupByWindowDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GuaranteeConst.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_GuaranteeConst.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_GuaranteeConst.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_GuaranteeConst.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_HSVToRGB.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_HSVToRGB.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_HSVToRGB.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_HSVToRGB.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_HashTable.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_HashTable.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_HashTable.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_HashTable.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_HashTableV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_HashTableV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_HashTableV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_HashTableV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_HistogramFixedWidth.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_HistogramFixedWidth.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_HistogramFixedWidth.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_HistogramFixedWidth.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_HistogramSummary.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_HistogramSummary.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_HistogramSummary.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_HistogramSummary.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_HostConst.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_HostConst.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_HostConst.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_HostConst.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IFFT.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IFFT.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IFFT.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IFFT.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IFFT2D.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IFFT2D.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IFFT2D.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IFFT2D.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IFFT3D.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IFFT3D.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IFFT3D.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IFFT3D.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IRFFT.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IRFFT.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IRFFT.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IRFFT.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IRFFT2D.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IRFFT2D.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IRFFT2D.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IRFFT2D.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IRFFT3D.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IRFFT3D.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IRFFT3D.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IRFFT3D.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Identity.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Identity.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Identity.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Identity.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IdentityN.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IdentityN.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IdentityN.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IdentityN.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IdentityReader.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IdentityReader.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IdentityReader.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IdentityReader.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IdentityReaderV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IdentityReaderV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IdentityReaderV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IdentityReaderV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_If.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_If.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_If.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_If.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Igamma.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Igamma.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Igamma.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Igamma.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IgammaGradA.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IgammaGradA.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IgammaGradA.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IgammaGradA.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Igammac.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Igammac.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Igammac.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Igammac.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IgnoreErrorsDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IgnoreErrorsDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IgnoreErrorsDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IgnoreErrorsDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Imag.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Imag.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Imag.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Imag.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ImageProjectiveTransformV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ImageProjectiveTransformV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ImageProjectiveTransformV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ImageProjectiveTransformV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ImageProjectiveTransformV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ImageProjectiveTransformV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ImageProjectiveTransformV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ImageProjectiveTransformV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ImageSummary.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ImageSummary.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ImageSummary.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ImageSummary.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ImmutableConst.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ImmutableConst.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ImmutableConst.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ImmutableConst.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ImportEvent.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ImportEvent.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ImportEvent.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ImportEvent.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InTopK.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_InTopK.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InTopK.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_InTopK.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InTopKV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_InTopKV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InTopKV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_InTopKV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InfeedDequeue.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_InfeedDequeue.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InfeedDequeue.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_InfeedDequeue.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InfeedDequeueTuple.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_InfeedDequeueTuple.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InfeedDequeueTuple.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_InfeedDequeueTuple.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InfeedEnqueue.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_InfeedEnqueue.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InfeedEnqueue.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_InfeedEnqueue.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InfeedEnqueuePrelinearizedBuffer.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_InfeedEnqueuePrelinearizedBuffer.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InfeedEnqueuePrelinearizedBuffer.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_InfeedEnqueuePrelinearizedBuffer.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InfeedEnqueueTuple.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_InfeedEnqueueTuple.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InfeedEnqueueTuple.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_InfeedEnqueueTuple.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InitializeTable.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_InitializeTable.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InitializeTable.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_InitializeTable.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InitializeTableFromDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_InitializeTableFromDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InitializeTableFromDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_InitializeTableFromDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InitializeTableFromTextFile.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_InitializeTableFromTextFile.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InitializeTableFromTextFile.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_InitializeTableFromTextFile.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InitializeTableFromTextFileV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_InitializeTableFromTextFileV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InitializeTableFromTextFileV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_InitializeTableFromTextFileV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InitializeTableV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_InitializeTableV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InitializeTableV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_InitializeTableV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InplaceAdd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_InplaceAdd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InplaceAdd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_InplaceAdd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InplaceSub.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_InplaceSub.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InplaceSub.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_InplaceSub.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InplaceUpdate.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_InplaceUpdate.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InplaceUpdate.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_InplaceUpdate.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InterleaveDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_InterleaveDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InterleaveDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_InterleaveDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Inv.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Inv.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Inv.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Inv.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InvGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_InvGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InvGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_InvGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Invert.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Invert.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Invert.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Invert.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InvertPermutation.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_InvertPermutation.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_InvertPermutation.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_InvertPermutation.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IsBoostedTreesEnsembleInitialized.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IsBoostedTreesEnsembleInitialized.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IsBoostedTreesEnsembleInitialized.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IsBoostedTreesEnsembleInitialized.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IsBoostedTreesQuantileStreamResourceInitialized.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IsBoostedTreesQuantileStreamResourceInitialized.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IsBoostedTreesQuantileStreamResourceInitialized.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IsBoostedTreesQuantileStreamResourceInitialized.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IsFinite.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IsFinite.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IsFinite.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IsFinite.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IsInf.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IsInf.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IsInf.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IsInf.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IsNan.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IsNan.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IsNan.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IsNan.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IsTPUEmbeddingInitialized.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IsTPUEmbeddingInitialized.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IsTPUEmbeddingInitialized.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IsTPUEmbeddingInitialized.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IsVariableInitialized.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IsVariableInitialized.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IsVariableInitialized.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IsVariableInitialized.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IsotonicRegression.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IsotonicRegression.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IsotonicRegression.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IsotonicRegression.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Iterator.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Iterator.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Iterator.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Iterator.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IteratorFromStringHandle.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IteratorFromStringHandle.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IteratorFromStringHandle.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IteratorFromStringHandle.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IteratorFromStringHandleV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IteratorFromStringHandleV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IteratorFromStringHandleV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IteratorFromStringHandleV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IteratorGetDevice.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IteratorGetDevice.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IteratorGetDevice.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IteratorGetDevice.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IteratorGetNext.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IteratorGetNext.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IteratorGetNext.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IteratorGetNext.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IteratorGetNextAsOptional.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IteratorGetNextAsOptional.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IteratorGetNextAsOptional.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IteratorGetNextAsOptional.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IteratorGetNextSync.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IteratorGetNextSync.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IteratorGetNextSync.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IteratorGetNextSync.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IteratorToStringHandle.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IteratorToStringHandle.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IteratorToStringHandle.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IteratorToStringHandle.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IteratorV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_IteratorV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_IteratorV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_IteratorV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_KMC2ChainInitialization.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_KMC2ChainInitialization.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_KMC2ChainInitialization.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_KMC2ChainInitialization.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_KafkaDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_KafkaDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_KafkaDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_KafkaDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_KmeansPlusPlusInitialization.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_KmeansPlusPlusInitialization.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_KmeansPlusPlusInitialization.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_KmeansPlusPlusInitialization.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_KthOrderStatistic.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_KthOrderStatistic.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_KthOrderStatistic.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_KthOrderStatistic.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_L2Loss.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_L2Loss.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_L2Loss.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_L2Loss.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LMDBDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LMDBDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LMDBDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LMDBDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LMDBReader.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LMDBReader.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LMDBReader.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LMDBReader.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LRN.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LRN.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LRN.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LRN.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LRNGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LRNGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LRNGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LRNGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LSTMBlockCell.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LSTMBlockCell.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LSTMBlockCell.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LSTMBlockCell.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LSTMBlockCellGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LSTMBlockCellGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LSTMBlockCellGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LSTMBlockCellGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LatencyStatsDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LatencyStatsDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LatencyStatsDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LatencyStatsDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LeakyRelu.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LeakyRelu.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LeakyRelu.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LeakyRelu.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LeakyReluGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LeakyReluGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LeakyReluGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LeakyReluGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LearnedUnigramCandidateSampler.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LearnedUnigramCandidateSampler.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LearnedUnigramCandidateSampler.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LearnedUnigramCandidateSampler.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LeftShift.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LeftShift.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LeftShift.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LeftShift.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LegacyParallelInterleaveDatasetV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LegacyParallelInterleaveDatasetV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LegacyParallelInterleaveDatasetV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LegacyParallelInterleaveDatasetV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Less.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Less.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Less.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Less.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LessEqual.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LessEqual.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LessEqual.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LessEqual.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Lgamma.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Lgamma.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Lgamma.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Lgamma.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LinSpace.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LinSpace.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LinSpace.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LinSpace.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ListDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ListDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ListDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ListDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ListDiff.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ListDiff.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ListDiff.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ListDiff.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadAllTPUEmbeddingParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadAllTPUEmbeddingParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadAllTPUEmbeddingParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadAllTPUEmbeddingParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadAndRemapMatrix.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadAndRemapMatrix.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadAndRemapMatrix.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadAndRemapMatrix.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingADAMParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingADAMParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingADAMParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingADAMParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingADAMParametersGradAccumDebug.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingADAMParametersGradAccumDebug.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingADAMParametersGradAccumDebug.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingADAMParametersGradAccumDebug.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingAdadeltaParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingAdadeltaParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingAdadeltaParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingAdadeltaParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingAdadeltaParametersGradAccumDebug.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingAdadeltaParametersGradAccumDebug.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingAdadeltaParametersGradAccumDebug.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingAdadeltaParametersGradAccumDebug.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingAdagradMomentumParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingAdagradMomentumParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingAdagradMomentumParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingAdagradMomentumParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingAdagradParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingAdagradParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingAdagradParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingAdagradParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingAdagradParametersGradAccumDebug.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingAdagradParametersGradAccumDebug.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingAdagradParametersGradAccumDebug.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingAdagradParametersGradAccumDebug.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingCenteredRMSPropParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingCenteredRMSPropParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingCenteredRMSPropParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingCenteredRMSPropParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingFTRLParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingFTRLParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingFTRLParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingFTRLParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingFTRLParametersGradAccumDebug.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingFTRLParametersGradAccumDebug.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingFTRLParametersGradAccumDebug.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingFTRLParametersGradAccumDebug.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingFrequencyEstimatorParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingFrequencyEstimatorParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingFrequencyEstimatorParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingFrequencyEstimatorParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingFrequencyEstimatorParametersGradAccumDebug.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingFrequencyEstimatorParametersGradAccumDebug.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingFrequencyEstimatorParametersGradAccumDebug.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingFrequencyEstimatorParametersGradAccumDebug.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingMDLAdagradLightParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingMDLAdagradLightParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingMDLAdagradLightParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingMDLAdagradLightParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingMomentumParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingMomentumParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingMomentumParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingMomentumParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingMomentumParametersGradAccumDebug.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingMomentumParametersGradAccumDebug.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingMomentumParametersGradAccumDebug.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingMomentumParametersGradAccumDebug.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingProximalAdagradParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingProximalAdagradParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingProximalAdagradParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingProximalAdagradParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingProximalAdagradParametersGradAccumDebug.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingProximalAdagradParametersGradAccumDebug.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingProximalAdagradParametersGradAccumDebug.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingProximalAdagradParametersGradAccumDebug.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingProximalYogiParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingProximalYogiParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingProximalYogiParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingProximalYogiParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingProximalYogiParametersGradAccumDebug.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingProximalYogiParametersGradAccumDebug.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingProximalYogiParametersGradAccumDebug.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingProximalYogiParametersGradAccumDebug.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingRMSPropParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingRMSPropParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingRMSPropParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingRMSPropParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingRMSPropParametersGradAccumDebug.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingRMSPropParametersGradAccumDebug.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingRMSPropParametersGradAccumDebug.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingRMSPropParametersGradAccumDebug.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingStochasticGradientDescentParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingStochasticGradientDescentParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingStochasticGradientDescentParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingStochasticGradientDescentParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingStochasticGradientDescentParametersGradAccumDebug.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingStochasticGradientDescentParametersGradAccumDebug.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoadTPUEmbeddingStochasticGradientDescentParametersGradAccumDebug.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoadTPUEmbeddingStochasticGradientDescentParametersGradAccumDebug.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Log.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Log.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Log.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Log.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Log1p.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Log1p.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Log1p.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Log1p.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LogMatrixDeterminant.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LogMatrixDeterminant.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LogMatrixDeterminant.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LogMatrixDeterminant.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LogSoftmax.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LogSoftmax.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LogSoftmax.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LogSoftmax.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LogUniformCandidateSampler.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LogUniformCandidateSampler.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LogUniformCandidateSampler.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LogUniformCandidateSampler.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LogicalAnd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LogicalAnd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LogicalAnd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LogicalAnd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LogicalNot.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LogicalNot.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LogicalNot.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LogicalNot.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LogicalOr.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LogicalOr.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LogicalOr.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LogicalOr.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LookupTableExport.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LookupTableExport.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LookupTableExport.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LookupTableExport.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LookupTableExportV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LookupTableExportV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LookupTableExportV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LookupTableExportV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LookupTableFind.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LookupTableFind.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LookupTableFind.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LookupTableFind.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LookupTableFindV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LookupTableFindV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LookupTableFindV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LookupTableFindV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LookupTableImport.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LookupTableImport.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LookupTableImport.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LookupTableImport.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LookupTableImportV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LookupTableImportV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LookupTableImportV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LookupTableImportV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LookupTableInsert.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LookupTableInsert.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LookupTableInsert.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LookupTableInsert.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LookupTableInsertV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LookupTableInsertV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LookupTableInsertV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LookupTableInsertV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LookupTableRemoveV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LookupTableRemoveV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LookupTableRemoveV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LookupTableRemoveV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LookupTableSize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LookupTableSize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LookupTableSize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LookupTableSize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LookupTableSizeV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LookupTableSizeV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LookupTableSizeV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LookupTableSizeV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoopCond.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LoopCond.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LoopCond.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LoopCond.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LowerBound.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_LowerBound.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_LowerBound.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_LowerBound.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Lu.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Lu.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Lu.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Lu.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MakeIterator.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MakeIterator.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MakeIterator.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MakeIterator.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MakeUnique.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MakeUnique.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MakeUnique.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MakeUnique.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MapAndBatchDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MapAndBatchDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MapAndBatchDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MapAndBatchDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MapClear.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MapClear.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MapClear.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MapClear.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MapDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MapDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MapDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MapDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MapDefun.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MapDefun.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MapDefun.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MapDefun.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MapIncompleteSize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MapIncompleteSize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MapIncompleteSize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MapIncompleteSize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MapPeek.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MapPeek.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MapPeek.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MapPeek.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MapSize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MapSize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MapSize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MapSize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MapStage.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MapStage.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MapStage.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MapStage.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MapUnstage.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MapUnstage.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MapUnstage.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MapUnstage.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MapUnstageNoKey.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MapUnstageNoKey.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MapUnstageNoKey.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MapUnstageNoKey.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatMul.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MatMul.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatMul.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MatMul.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatchingFiles.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MatchingFiles.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatchingFiles.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MatchingFiles.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatchingFilesDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MatchingFilesDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatchingFilesDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MatchingFilesDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixBandPart.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixBandPart.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixBandPart.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixBandPart.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixDeterminant.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixDeterminant.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixDeterminant.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixDeterminant.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixDiag.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixDiag.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixDiag.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixDiag.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixDiagPart.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixDiagPart.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixDiagPart.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixDiagPart.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixDiagPartV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixDiagPartV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixDiagPartV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixDiagPartV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixDiagPartV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixDiagPartV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixDiagPartV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixDiagPartV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixDiagV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixDiagV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixDiagV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixDiagV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixDiagV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixDiagV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixDiagV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixDiagV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixExponential.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixExponential.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixExponential.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixExponential.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixInverse.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixInverse.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixInverse.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixInverse.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixLogarithm.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixLogarithm.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixLogarithm.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixLogarithm.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixSetDiag.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixSetDiag.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixSetDiag.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixSetDiag.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixSetDiagV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixSetDiagV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixSetDiagV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixSetDiagV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixSetDiagV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixSetDiagV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixSetDiagV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixSetDiagV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixSolve.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixSolve.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixSolve.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixSolve.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixSolveLs.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixSolveLs.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixSolveLs.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixSolveLs.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixSquareRoot.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixSquareRoot.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixSquareRoot.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixSquareRoot.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixTriangularSolve.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixTriangularSolve.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MatrixTriangularSolve.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MatrixTriangularSolve.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Max.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Max.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Max.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Max.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxIntraOpParallelismDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MaxIntraOpParallelismDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxIntraOpParallelismDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MaxIntraOpParallelismDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPool.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPool.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPool.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPool.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPool3D.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPool3D.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPool3D.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPool3D.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPool3DGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPool3DGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPool3DGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPool3DGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPool3DGradGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPool3DGradGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPool3DGradGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPool3DGradGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPoolGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPoolGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPoolGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPoolGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPoolGradGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPoolGradGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPoolGradGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPoolGradGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPoolGradGradV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPoolGradGradV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPoolGradGradV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPoolGradGradV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPoolGradGradWithArgmax.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPoolGradGradWithArgmax.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPoolGradGradWithArgmax.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPoolGradGradWithArgmax.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPoolGradV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPoolGradV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPoolGradV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPoolGradV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPoolGradWithArgmax.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPoolGradWithArgmax.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPoolGradWithArgmax.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPoolGradWithArgmax.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPoolV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPoolV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPoolV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPoolV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPoolWithArgmax.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPoolWithArgmax.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MaxPoolWithArgmax.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MaxPoolWithArgmax.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Maximum.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Maximum.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Maximum.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Maximum.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Mean.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Mean.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Mean.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Mean.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Merge.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Merge.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Merge.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Merge.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MergeSummary.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MergeSummary.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MergeSummary.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MergeSummary.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MergeV2Checkpoints.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MergeV2Checkpoints.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MergeV2Checkpoints.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MergeV2Checkpoints.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Mfcc.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Mfcc.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Mfcc.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Mfcc.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Min.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Min.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Min.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Min.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Minimum.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Minimum.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Minimum.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Minimum.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MirrorPad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MirrorPad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MirrorPad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MirrorPad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MirrorPadGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MirrorPadGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MirrorPadGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MirrorPadGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MlirPassthroughOp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MlirPassthroughOp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MlirPassthroughOp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MlirPassthroughOp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Mod.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Mod.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Mod.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Mod.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ModelDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ModelDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ModelDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ModelDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Mul.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Mul.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Mul.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Mul.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MulNoNan.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MulNoNan.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MulNoNan.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MulNoNan.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MultiDeviceIterator.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MultiDeviceIterator.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MultiDeviceIterator.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MultiDeviceIterator.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MultiDeviceIteratorFromStringHandle.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MultiDeviceIteratorFromStringHandle.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MultiDeviceIteratorFromStringHandle.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MultiDeviceIteratorFromStringHandle.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MultiDeviceIteratorGetNextFromShard.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MultiDeviceIteratorGetNextFromShard.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MultiDeviceIteratorGetNextFromShard.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MultiDeviceIteratorGetNextFromShard.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MultiDeviceIteratorInit.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MultiDeviceIteratorInit.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MultiDeviceIteratorInit.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MultiDeviceIteratorInit.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MultiDeviceIteratorToStringHandle.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MultiDeviceIteratorToStringHandle.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MultiDeviceIteratorToStringHandle.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MultiDeviceIteratorToStringHandle.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Multinomial.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Multinomial.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Multinomial.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Multinomial.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MutableDenseHashTable.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MutableDenseHashTable.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MutableDenseHashTable.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MutableDenseHashTable.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MutableDenseHashTableV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MutableDenseHashTableV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MutableDenseHashTableV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MutableDenseHashTableV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MutableHashTable.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MutableHashTable.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MutableHashTable.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MutableHashTable.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MutableHashTableOfTensors.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MutableHashTableOfTensors.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MutableHashTableOfTensors.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MutableHashTableOfTensors.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MutableHashTableOfTensorsV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MutableHashTableOfTensorsV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MutableHashTableOfTensorsV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MutableHashTableOfTensorsV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MutableHashTableV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MutableHashTableV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MutableHashTableV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MutableHashTableV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MutexLock.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MutexLock.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MutexLock.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MutexLock.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MutexV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_MutexV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_MutexV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_MutexV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NcclAllReduce.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_NcclAllReduce.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NcclAllReduce.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_NcclAllReduce.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NcclBroadcast.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_NcclBroadcast.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NcclBroadcast.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_NcclBroadcast.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NcclReduce.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_NcclReduce.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NcclReduce.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_NcclReduce.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Ndtri.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Ndtri.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Ndtri.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Ndtri.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NearestNeighbors.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_NearestNeighbors.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NearestNeighbors.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_NearestNeighbors.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Neg.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Neg.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Neg.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Neg.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NegTrain.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_NegTrain.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NegTrain.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_NegTrain.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NextAfter.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_NextAfter.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NextAfter.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_NextAfter.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NextIteration.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_NextIteration.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NextIteration.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_NextIteration.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NoOp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_NoOp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NoOp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_NoOp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NonDeterministicInts.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_NonDeterministicInts.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NonDeterministicInts.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_NonDeterministicInts.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NonMaxSuppression.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_NonMaxSuppression.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NonMaxSuppression.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_NonMaxSuppression.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NonMaxSuppressionV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_NonMaxSuppressionV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NonMaxSuppressionV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_NonMaxSuppressionV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NonMaxSuppressionV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_NonMaxSuppressionV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NonMaxSuppressionV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_NonMaxSuppressionV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NonMaxSuppressionV4.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_NonMaxSuppressionV4.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NonMaxSuppressionV4.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_NonMaxSuppressionV4.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NonMaxSuppressionV5.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_NonMaxSuppressionV5.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NonMaxSuppressionV5.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_NonMaxSuppressionV5.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NonMaxSuppressionWithOverlaps.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_NonMaxSuppressionWithOverlaps.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NonMaxSuppressionWithOverlaps.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_NonMaxSuppressionWithOverlaps.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NonSerializableDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_NonSerializableDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NonSerializableDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_NonSerializableDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NotEqual.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_NotEqual.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NotEqual.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_NotEqual.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NthElement.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_NthElement.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_NthElement.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_NthElement.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OneHot.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OneHot.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OneHot.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OneHot.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OneShotIterator.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OneShotIterator.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OneShotIterator.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OneShotIterator.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OnesLike.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OnesLike.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OnesLike.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OnesLike.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OptimizeDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OptimizeDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OptimizeDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OptimizeDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OptimizeDatasetV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OptimizeDatasetV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OptimizeDatasetV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OptimizeDatasetV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OptionalFromValue.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OptionalFromValue.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OptionalFromValue.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OptionalFromValue.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OptionalGetValue.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OptionalGetValue.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OptionalGetValue.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OptionalGetValue.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OptionalHasValue.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OptionalHasValue.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OptionalHasValue.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OptionalHasValue.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OptionalNone.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OptionalNone.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OptionalNone.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OptionalNone.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OptionsDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OptionsDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OptionsDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OptionsDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OrderedMapClear.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OrderedMapClear.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OrderedMapClear.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OrderedMapClear.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OrderedMapIncompleteSize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OrderedMapIncompleteSize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OrderedMapIncompleteSize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OrderedMapIncompleteSize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OrderedMapPeek.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OrderedMapPeek.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OrderedMapPeek.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OrderedMapPeek.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OrderedMapSize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OrderedMapSize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OrderedMapSize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OrderedMapSize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OrderedMapStage.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OrderedMapStage.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OrderedMapStage.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OrderedMapStage.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OrderedMapUnstage.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OrderedMapUnstage.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OrderedMapUnstage.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OrderedMapUnstage.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OrderedMapUnstageNoKey.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OrderedMapUnstageNoKey.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OrderedMapUnstageNoKey.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OrderedMapUnstageNoKey.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OutfeedDequeue.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OutfeedDequeue.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OutfeedDequeue.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OutfeedDequeue.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OutfeedDequeueTuple.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OutfeedDequeueTuple.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OutfeedDequeueTuple.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OutfeedDequeueTuple.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OutfeedDequeueTupleV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OutfeedDequeueTupleV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OutfeedDequeueTupleV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OutfeedDequeueTupleV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OutfeedDequeueV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OutfeedDequeueV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OutfeedDequeueV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OutfeedDequeueV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OutfeedEnqueue.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OutfeedEnqueue.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OutfeedEnqueue.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OutfeedEnqueue.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OutfeedEnqueueTuple.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_OutfeedEnqueueTuple.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_OutfeedEnqueueTuple.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_OutfeedEnqueueTuple.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Pack.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Pack.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Pack.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Pack.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Pad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Pad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Pad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Pad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PadV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_PadV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PadV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_PadV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PaddedBatchDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_PaddedBatchDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PaddedBatchDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_PaddedBatchDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PaddedBatchDatasetV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_PaddedBatchDatasetV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PaddedBatchDatasetV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_PaddedBatchDatasetV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PaddingFIFOQueue.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_PaddingFIFOQueue.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PaddingFIFOQueue.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_PaddingFIFOQueue.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PaddingFIFOQueueV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_PaddingFIFOQueueV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PaddingFIFOQueueV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_PaddingFIFOQueueV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParallelBatchDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ParallelBatchDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParallelBatchDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ParallelBatchDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParallelConcat.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ParallelConcat.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParallelConcat.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ParallelConcat.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParallelDynamicStitch.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ParallelDynamicStitch.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParallelDynamicStitch.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ParallelDynamicStitch.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParallelFilterDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ParallelFilterDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParallelFilterDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ParallelFilterDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParallelInterleaveDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ParallelInterleaveDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParallelInterleaveDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ParallelInterleaveDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParallelInterleaveDatasetV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ParallelInterleaveDatasetV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParallelInterleaveDatasetV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ParallelInterleaveDatasetV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParallelInterleaveDatasetV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ParallelInterleaveDatasetV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParallelInterleaveDatasetV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ParallelInterleaveDatasetV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParallelInterleaveDatasetV4.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ParallelInterleaveDatasetV4.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParallelInterleaveDatasetV4.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ParallelInterleaveDatasetV4.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParallelMapDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ParallelMapDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParallelMapDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ParallelMapDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParallelMapDatasetV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ParallelMapDatasetV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParallelMapDatasetV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ParallelMapDatasetV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParameterizedTruncatedNormal.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ParameterizedTruncatedNormal.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParameterizedTruncatedNormal.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ParameterizedTruncatedNormal.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParseExample.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ParseExample.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParseExample.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ParseExample.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParseExampleDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ParseExampleDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParseExampleDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ParseExampleDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParseExampleDatasetV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ParseExampleDatasetV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParseExampleDatasetV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ParseExampleDatasetV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParseExampleV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ParseExampleV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParseExampleV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ParseExampleV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParseSequenceExample.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ParseSequenceExample.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParseSequenceExample.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ParseSequenceExample.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParseSequenceExampleV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ParseSequenceExampleV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParseSequenceExampleV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ParseSequenceExampleV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParseSingleExample.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ParseSingleExample.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParseSingleExample.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ParseSingleExample.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParseSingleSequenceExample.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ParseSingleSequenceExample.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParseSingleSequenceExample.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ParseSingleSequenceExample.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParseTensor.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ParseTensor.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ParseTensor.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ParseTensor.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PartitionedCall.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_PartitionedCall.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PartitionedCall.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_PartitionedCall.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Placeholder.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Placeholder.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Placeholder.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Placeholder.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PlaceholderV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_PlaceholderV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PlaceholderV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_PlaceholderV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PlaceholderWithDefault.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_PlaceholderWithDefault.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PlaceholderWithDefault.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_PlaceholderWithDefault.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Polygamma.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Polygamma.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Polygamma.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Polygamma.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PopulationCount.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_PopulationCount.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PopulationCount.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_PopulationCount.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Pow.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Pow.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Pow.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Pow.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PrefetchDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_PrefetchDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PrefetchDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_PrefetchDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Prelinearize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Prelinearize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Prelinearize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Prelinearize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PrelinearizeTuple.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_PrelinearizeTuple.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PrelinearizeTuple.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_PrelinearizeTuple.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PrependFromQueueAndPaddedBatchDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_PrependFromQueueAndPaddedBatchDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PrependFromQueueAndPaddedBatchDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_PrependFromQueueAndPaddedBatchDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PreventGradient.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_PreventGradient.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PreventGradient.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_PreventGradient.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Print.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Print.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Print.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Print.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PrintV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_PrintV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PrintV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_PrintV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PriorityQueue.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_PriorityQueue.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PriorityQueue.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_PriorityQueue.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PriorityQueueV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_PriorityQueueV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PriorityQueueV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_PriorityQueueV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PrivateThreadPoolDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_PrivateThreadPoolDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PrivateThreadPoolDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_PrivateThreadPoolDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Prod.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Prod.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Prod.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Prod.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PyFunc.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_PyFunc.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PyFunc.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_PyFunc.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PyFuncStateless.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_PyFuncStateless.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_PyFuncStateless.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_PyFuncStateless.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Qr.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Qr.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Qr.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Qr.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizeAndDequantize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizeAndDequantize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizeAndDequantize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizeAndDequantize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizeAndDequantizeV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizeAndDequantizeV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizeAndDequantizeV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizeAndDequantizeV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizeAndDequantizeV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizeAndDequantizeV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizeAndDequantizeV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizeAndDequantizeV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizeAndDequantizeV4.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizeAndDequantizeV4.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizeAndDequantizeV4.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizeAndDequantizeV4.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizeAndDequantizeV4Grad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizeAndDequantizeV4Grad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizeAndDequantizeV4Grad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizeAndDequantizeV4Grad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizeDownAndShrinkRange.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizeDownAndShrinkRange.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizeDownAndShrinkRange.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizeDownAndShrinkRange.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizeV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizeV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizeV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizeV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedAdd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedAdd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedAdd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedAdd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedAvgPool.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedAvgPool.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedAvgPool.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedAvgPool.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedBatchNormWithGlobalNormalization.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedBatchNormWithGlobalNormalization.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedBatchNormWithGlobalNormalization.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedBatchNormWithGlobalNormalization.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedBiasAdd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedBiasAdd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedBiasAdd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedBiasAdd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConcat.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConcat.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConcat.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConcat.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConcatV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConcatV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConcatV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConcatV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2D.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2D.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2D.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2D.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2DAndRelu.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2DAndRelu.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2DAndRelu.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2DAndRelu.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2DAndReluAndRequantize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2DAndReluAndRequantize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2DAndReluAndRequantize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2DAndReluAndRequantize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2DAndRequantize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2DAndRequantize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2DAndRequantize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2DAndRequantize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2DPerChannel.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2DPerChannel.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2DPerChannel.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2DPerChannel.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2DWithBias.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2DWithBias.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2DWithBias.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2DWithBias.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2DWithBiasAndRelu.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2DWithBiasAndRelu.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2DWithBiasAndRelu.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2DWithBiasAndRelu.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2DWithBiasAndReluAndRequantize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2DWithBiasAndReluAndRequantize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2DWithBiasAndReluAndRequantize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2DWithBiasAndReluAndRequantize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2DWithBiasAndRequantize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2DWithBiasAndRequantize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2DWithBiasAndRequantize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2DWithBiasAndRequantize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2DWithBiasSignedSumAndReluAndRequantize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2DWithBiasSignedSumAndReluAndRequantize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2DWithBiasSignedSumAndReluAndRequantize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2DWithBiasSignedSumAndReluAndRequantize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2DWithBiasSumAndRelu.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2DWithBiasSumAndRelu.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2DWithBiasSumAndRelu.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2DWithBiasSumAndRelu.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2DWithBiasSumAndReluAndRequantize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2DWithBiasSumAndReluAndRequantize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedConv2DWithBiasSumAndReluAndRequantize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedConv2DWithBiasSumAndReluAndRequantize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedDepthwiseConv2D.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedDepthwiseConv2D.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedDepthwiseConv2D.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedDepthwiseConv2D.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedDepthwiseConv2DWithBias.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedDepthwiseConv2DWithBias.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedDepthwiseConv2DWithBias.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedDepthwiseConv2DWithBias.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedDepthwiseConv2DWithBiasAndRelu.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedDepthwiseConv2DWithBiasAndRelu.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedDepthwiseConv2DWithBiasAndRelu.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedDepthwiseConv2DWithBiasAndRelu.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedDepthwiseConv2DWithBiasAndReluAndRequantize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedDepthwiseConv2DWithBiasAndReluAndRequantize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedDepthwiseConv2DWithBiasAndReluAndRequantize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedDepthwiseConv2DWithBiasAndReluAndRequantize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedInstanceNorm.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedInstanceNorm.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedInstanceNorm.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedInstanceNorm.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedMatMul.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedMatMul.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedMatMul.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedMatMul.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedMatMulWithBias.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedMatMulWithBias.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedMatMulWithBias.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedMatMulWithBias.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedMatMulWithBiasAndDequantize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedMatMulWithBiasAndDequantize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedMatMulWithBiasAndDequantize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedMatMulWithBiasAndDequantize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedMatMulWithBiasAndRelu.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedMatMulWithBiasAndRelu.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedMatMulWithBiasAndRelu.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedMatMulWithBiasAndRelu.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedMatMulWithBiasAndReluAndRequantize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedMatMulWithBiasAndReluAndRequantize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedMatMulWithBiasAndReluAndRequantize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedMatMulWithBiasAndReluAndRequantize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedMatMulWithBiasAndRequantize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedMatMulWithBiasAndRequantize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedMatMulWithBiasAndRequantize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedMatMulWithBiasAndRequantize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedMaxPool.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedMaxPool.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedMaxPool.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedMaxPool.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedMul.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedMul.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedMul.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedMul.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedRelu.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedRelu.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedRelu.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedRelu.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedRelu6.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedRelu6.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedRelu6.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedRelu6.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedReluX.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedReluX.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedReluX.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedReluX.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedReshape.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedReshape.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedReshape.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedReshape.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedResizeBilinear.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedResizeBilinear.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QuantizedResizeBilinear.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QuantizedResizeBilinear.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueClose.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QueueClose.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueClose.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QueueClose.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueCloseV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QueueCloseV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueCloseV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QueueCloseV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueDequeue.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QueueDequeue.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueDequeue.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QueueDequeue.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueDequeueMany.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QueueDequeueMany.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueDequeueMany.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QueueDequeueMany.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueDequeueManyV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QueueDequeueManyV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueDequeueManyV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QueueDequeueManyV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueDequeueUpTo.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QueueDequeueUpTo.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueDequeueUpTo.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QueueDequeueUpTo.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueDequeueUpToV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QueueDequeueUpToV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueDequeueUpToV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QueueDequeueUpToV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueDequeueV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QueueDequeueV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueDequeueV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QueueDequeueV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueEnqueue.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QueueEnqueue.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueEnqueue.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QueueEnqueue.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueEnqueueMany.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QueueEnqueueMany.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueEnqueueMany.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QueueEnqueueMany.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueEnqueueManyV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QueueEnqueueManyV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueEnqueueManyV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QueueEnqueueManyV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueEnqueueV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QueueEnqueueV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueEnqueueV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QueueEnqueueV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueIsClosed.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QueueIsClosed.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueIsClosed.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QueueIsClosed.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueIsClosedV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QueueIsClosedV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueIsClosedV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QueueIsClosedV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueSize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QueueSize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueSize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QueueSize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueSizeV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_QueueSizeV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_QueueSizeV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_QueueSizeV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RFFT.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RFFT.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RFFT.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RFFT.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RFFT2D.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RFFT2D.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RFFT2D.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RFFT2D.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RFFT3D.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RFFT3D.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RFFT3D.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RFFT3D.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RGBToHSV.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RGBToHSV.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RGBToHSV.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RGBToHSV.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RaggedBincount.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RaggedBincount.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RaggedBincount.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RaggedBincount.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RaggedCountSparseOutput.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RaggedCountSparseOutput.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RaggedCountSparseOutput.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RaggedCountSparseOutput.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RaggedCross.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RaggedCross.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RaggedCross.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RaggedCross.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RaggedGather.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RaggedGather.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RaggedGather.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RaggedGather.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RaggedRange.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RaggedRange.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RaggedRange.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RaggedRange.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RaggedTensorFromVariant.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RaggedTensorFromVariant.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RaggedTensorFromVariant.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RaggedTensorFromVariant.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RaggedTensorToSparse.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RaggedTensorToSparse.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RaggedTensorToSparse.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RaggedTensorToSparse.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RaggedTensorToTensor.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RaggedTensorToTensor.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RaggedTensorToTensor.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RaggedTensorToTensor.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RaggedTensorToVariant.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RaggedTensorToVariant.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RaggedTensorToVariant.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RaggedTensorToVariant.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RaggedTensorToVariantGradient.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RaggedTensorToVariantGradient.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RaggedTensorToVariantGradient.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RaggedTensorToVariantGradient.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomCrop.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RandomCrop.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomCrop.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RandomCrop.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RandomDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RandomDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomGamma.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RandomGamma.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomGamma.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RandomGamma.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomGammaGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RandomGammaGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomGammaGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RandomGammaGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomIndexShuffle.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RandomIndexShuffle.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomIndexShuffle.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RandomIndexShuffle.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomPoisson.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RandomPoisson.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomPoisson.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RandomPoisson.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomPoissonV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RandomPoissonV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomPoissonV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RandomPoissonV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomShuffle.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RandomShuffle.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomShuffle.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RandomShuffle.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomShuffleQueue.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RandomShuffleQueue.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomShuffleQueue.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RandomShuffleQueue.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomShuffleQueueV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RandomShuffleQueueV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomShuffleQueueV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RandomShuffleQueueV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomStandardNormal.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RandomStandardNormal.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomStandardNormal.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RandomStandardNormal.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomUniform.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RandomUniform.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomUniform.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RandomUniform.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomUniformInt.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RandomUniformInt.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RandomUniformInt.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RandomUniformInt.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Range.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Range.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Range.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Range.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RangeDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RangeDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RangeDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RangeDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Rank.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Rank.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Rank.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Rank.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReadFile.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReadFile.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReadFile.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReadFile.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReadVariableOp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReadVariableOp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReadVariableOp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReadVariableOp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReadVariableXlaSplitND.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReadVariableXlaSplitND.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReadVariableXlaSplitND.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReadVariableXlaSplitND.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderNumRecordsProduced.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderNumRecordsProduced.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderNumRecordsProduced.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderNumRecordsProduced.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderNumRecordsProducedV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderNumRecordsProducedV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderNumRecordsProducedV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderNumRecordsProducedV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderNumWorkUnitsCompleted.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderNumWorkUnitsCompleted.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderNumWorkUnitsCompleted.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderNumWorkUnitsCompleted.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderNumWorkUnitsCompletedV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderNumWorkUnitsCompletedV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderNumWorkUnitsCompletedV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderNumWorkUnitsCompletedV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderRead.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderRead.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderRead.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderRead.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderReadUpTo.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderReadUpTo.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderReadUpTo.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderReadUpTo.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderReadUpToV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderReadUpToV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderReadUpToV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderReadUpToV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderReadV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderReadV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderReadV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderReadV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderReset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderReset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderReset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderReset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderResetV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderResetV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderResetV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderResetV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderRestoreState.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderRestoreState.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderRestoreState.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderRestoreState.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderRestoreStateV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderRestoreStateV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderRestoreStateV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderRestoreStateV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderSerializeState.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderSerializeState.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderSerializeState.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderSerializeState.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderSerializeStateV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderSerializeStateV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReaderSerializeStateV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReaderSerializeStateV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Real.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Real.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Real.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Real.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RealDiv.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RealDiv.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RealDiv.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RealDiv.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RebatchDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RebatchDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RebatchDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RebatchDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RebatchDatasetV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RebatchDatasetV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RebatchDatasetV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RebatchDatasetV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Reciprocal.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Reciprocal.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Reciprocal.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Reciprocal.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReciprocalGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReciprocalGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReciprocalGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReciprocalGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RecordInput.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RecordInput.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RecordInput.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RecordInput.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Recv.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Recv.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Recv.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Recv.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RecvTPUEmbeddingActivations.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RecvTPUEmbeddingActivations.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RecvTPUEmbeddingActivations.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RecvTPUEmbeddingActivations.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReduceDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReduceDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReduceDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReduceDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReduceJoin.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReduceJoin.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReduceJoin.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReduceJoin.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RefEnter.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RefEnter.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RefEnter.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RefEnter.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RefExit.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RefExit.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RefExit.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RefExit.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RefIdentity.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RefIdentity.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RefIdentity.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RefIdentity.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RefMerge.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RefMerge.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RefMerge.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RefMerge.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RefNextIteration.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RefNextIteration.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RefNextIteration.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RefNextIteration.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RefSelect.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RefSelect.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RefSelect.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RefSelect.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RefSwitch.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RefSwitch.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RefSwitch.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RefSwitch.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RegexFullMatch.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RegexFullMatch.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RegexFullMatch.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RegexFullMatch.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RegexReplace.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RegexReplace.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RegexReplace.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RegexReplace.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RegisterDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RegisterDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RegisterDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RegisterDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RegisterDatasetV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RegisterDatasetV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RegisterDatasetV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RegisterDatasetV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Relayout.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Relayout.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Relayout.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Relayout.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Relu.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Relu.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Relu.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Relu.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Relu6.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Relu6.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Relu6.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Relu6.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Relu6Grad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Relu6Grad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Relu6Grad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Relu6Grad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReluGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReluGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReluGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReluGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RemoteCall.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RemoteCall.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RemoteCall.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RemoteCall.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RemoteFusedGraphExecute.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RemoteFusedGraphExecute.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RemoteFusedGraphExecute.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RemoteFusedGraphExecute.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RepeatDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RepeatDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RepeatDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RepeatDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RequantizationRange.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RequantizationRange.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RequantizationRange.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RequantizationRange.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RequantizationRangePerChannel.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RequantizationRangePerChannel.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RequantizationRangePerChannel.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RequantizationRangePerChannel.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Requantize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Requantize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Requantize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Requantize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RequantizePerChannel.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RequantizePerChannel.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RequantizePerChannel.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RequantizePerChannel.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Reshape.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Reshape.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Reshape.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Reshape.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResizeArea.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResizeArea.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResizeArea.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResizeArea.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResizeBicubic.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResizeBicubic.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResizeBicubic.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResizeBicubic.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResizeBicubicGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResizeBicubicGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResizeBicubicGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResizeBicubicGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResizeBilinear.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResizeBilinear.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResizeBilinear.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResizeBilinear.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResizeBilinearGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResizeBilinearGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResizeBilinearGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResizeBilinearGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResizeNearestNeighbor.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResizeNearestNeighbor.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResizeNearestNeighbor.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResizeNearestNeighbor.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResizeNearestNeighborGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResizeNearestNeighborGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResizeNearestNeighborGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResizeNearestNeighborGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceAccumulatorApplyGradient.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceAccumulatorApplyGradient.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceAccumulatorApplyGradient.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceAccumulatorApplyGradient.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceAccumulatorNumAccumulated.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceAccumulatorNumAccumulated.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceAccumulatorNumAccumulated.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceAccumulatorNumAccumulated.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceAccumulatorSetGlobalStep.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceAccumulatorSetGlobalStep.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceAccumulatorSetGlobalStep.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceAccumulatorSetGlobalStep.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceAccumulatorTakeGradient.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceAccumulatorTakeGradient.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceAccumulatorTakeGradient.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceAccumulatorTakeGradient.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyAdaMax.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyAdaMax.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyAdaMax.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyAdaMax.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyAdadelta.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyAdadelta.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyAdadelta.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyAdadelta.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyAdagrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyAdagrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyAdagrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyAdagrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyAdagradDA.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyAdagradDA.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyAdagradDA.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyAdagradDA.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyAdagradV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyAdagradV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyAdagradV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyAdagradV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyAdam.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyAdam.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyAdam.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyAdam.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyAdamWithAmsgrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyAdamWithAmsgrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyAdamWithAmsgrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyAdamWithAmsgrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyAddSign.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyAddSign.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyAddSign.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyAddSign.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyCenteredRMSProp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyCenteredRMSProp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyCenteredRMSProp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyCenteredRMSProp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyFtrl.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyFtrl.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyFtrl.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyFtrl.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyFtrlV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyFtrlV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyFtrlV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyFtrlV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyGradientDescent.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyGradientDescent.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyGradientDescent.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyGradientDescent.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyKerasMomentum.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyKerasMomentum.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyKerasMomentum.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyKerasMomentum.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyMomentum.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyMomentum.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyMomentum.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyMomentum.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyPowerSign.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyPowerSign.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyPowerSign.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyPowerSign.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyProximalAdagrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyProximalAdagrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyProximalAdagrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyProximalAdagrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyProximalGradientDescent.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyProximalGradientDescent.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyProximalGradientDescent.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyProximalGradientDescent.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyRMSProp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyRMSProp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceApplyRMSProp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceApplyRMSProp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceConditionalAccumulator.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceConditionalAccumulator.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceConditionalAccumulator.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceConditionalAccumulator.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceCountUpTo.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceCountUpTo.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceCountUpTo.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceCountUpTo.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceGather.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceGather.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceGather.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceGather.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceGatherNd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceGatherNd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceGatherNd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceGatherNd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterAdd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterAdd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterAdd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterAdd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterDiv.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterDiv.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterDiv.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterDiv.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterMax.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterMax.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterMax.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterMax.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterMin.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterMin.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterMin.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterMin.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterMul.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterMul.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterMul.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterMul.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterNdAdd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterNdAdd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterNdAdd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterNdAdd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterNdMax.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterNdMax.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterNdMax.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterNdMax.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterNdMin.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterNdMin.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterNdMin.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterNdMin.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterNdSub.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterNdSub.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterNdSub.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterNdSub.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterNdUpdate.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterNdUpdate.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterNdUpdate.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterNdUpdate.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterSub.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterSub.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterSub.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterSub.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterUpdate.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterUpdate.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceScatterUpdate.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceScatterUpdate.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyAdadelta.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyAdadelta.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyAdadelta.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyAdadelta.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyAdagrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyAdagrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyAdagrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyAdagrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyAdagradDA.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyAdagradDA.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyAdagradDA.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyAdagradDA.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyAdagradV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyAdagradV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyAdagradV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyAdagradV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyCenteredRMSProp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyCenteredRMSProp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyCenteredRMSProp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyCenteredRMSProp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyFtrl.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyFtrl.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyFtrl.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyFtrl.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyFtrlV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyFtrlV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyFtrlV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyFtrlV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyKerasMomentum.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyKerasMomentum.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyKerasMomentum.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyKerasMomentum.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyMomentum.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyMomentum.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyMomentum.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyMomentum.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyProximalAdagrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyProximalAdagrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyProximalAdagrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyProximalAdagrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyProximalGradientDescent.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyProximalGradientDescent.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyProximalGradientDescent.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyProximalGradientDescent.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyRMSProp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyRMSProp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceSparseApplyRMSProp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceSparseApplyRMSProp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceStridedSliceAssign.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceStridedSliceAssign.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ResourceStridedSliceAssign.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ResourceStridedSliceAssign.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Restore.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Restore.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Restore.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Restore.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RestoreSlice.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RestoreSlice.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RestoreSlice.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RestoreSlice.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RestoreV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RestoreV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RestoreV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RestoreV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveAllTPUEmbeddingParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveAllTPUEmbeddingParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveAllTPUEmbeddingParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveAllTPUEmbeddingParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingADAMParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingADAMParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingADAMParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingADAMParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingADAMParametersGradAccumDebug.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingADAMParametersGradAccumDebug.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingADAMParametersGradAccumDebug.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingADAMParametersGradAccumDebug.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingAdadeltaParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingAdadeltaParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingAdadeltaParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingAdadeltaParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingAdadeltaParametersGradAccumDebug.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingAdadeltaParametersGradAccumDebug.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingAdadeltaParametersGradAccumDebug.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingAdadeltaParametersGradAccumDebug.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingAdagradMomentumParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingAdagradMomentumParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingAdagradMomentumParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingAdagradMomentumParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingAdagradParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingAdagradParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingAdagradParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingAdagradParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingAdagradParametersGradAccumDebug.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingAdagradParametersGradAccumDebug.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingAdagradParametersGradAccumDebug.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingAdagradParametersGradAccumDebug.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingCenteredRMSPropParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingCenteredRMSPropParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingCenteredRMSPropParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingCenteredRMSPropParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingFTRLParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingFTRLParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingFTRLParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingFTRLParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingFTRLParametersGradAccumDebug.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingFTRLParametersGradAccumDebug.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingFTRLParametersGradAccumDebug.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingFTRLParametersGradAccumDebug.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingFrequencyEstimatorParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingFrequencyEstimatorParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingFrequencyEstimatorParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingFrequencyEstimatorParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingFrequencyEstimatorParametersGradAccumDebug.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingFrequencyEstimatorParametersGradAccumDebug.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingFrequencyEstimatorParametersGradAccumDebug.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingFrequencyEstimatorParametersGradAccumDebug.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingMDLAdagradLightParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingMDLAdagradLightParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingMDLAdagradLightParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingMDLAdagradLightParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingMomentumParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingMomentumParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingMomentumParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingMomentumParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingMomentumParametersGradAccumDebug.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingMomentumParametersGradAccumDebug.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingMomentumParametersGradAccumDebug.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingMomentumParametersGradAccumDebug.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingProximalAdagradParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingProximalAdagradParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingProximalAdagradParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingProximalAdagradParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingProximalAdagradParametersGradAccumDebug.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingProximalAdagradParametersGradAccumDebug.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingProximalAdagradParametersGradAccumDebug.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingProximalAdagradParametersGradAccumDebug.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingProximalYogiParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingProximalYogiParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingProximalYogiParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingProximalYogiParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingProximalYogiParametersGradAccumDebug.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingProximalYogiParametersGradAccumDebug.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingProximalYogiParametersGradAccumDebug.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingProximalYogiParametersGradAccumDebug.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingRMSPropParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingRMSPropParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingRMSPropParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingRMSPropParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingRMSPropParametersGradAccumDebug.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingRMSPropParametersGradAccumDebug.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingRMSPropParametersGradAccumDebug.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingRMSPropParametersGradAccumDebug.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingStochasticGradientDescentParameters.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingStochasticGradientDescentParameters.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingStochasticGradientDescentParameters.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingStochasticGradientDescentParameters.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingStochasticGradientDescentParametersGradAccumDebug.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingStochasticGradientDescentParametersGradAccumDebug.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RetrieveTPUEmbeddingStochasticGradientDescentParametersGradAccumDebug.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RetrieveTPUEmbeddingStochasticGradientDescentParametersGradAccumDebug.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Reverse.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Reverse.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Reverse.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Reverse.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReverseSequence.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReverseSequence.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReverseSequence.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReverseSequence.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReverseV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ReverseV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ReverseV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ReverseV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RewriteDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RewriteDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RewriteDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RewriteDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RightShift.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RightShift.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RightShift.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RightShift.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Rint.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Rint.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Rint.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Rint.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscAbs.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscAbs.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscAbs.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscAbs.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscAdd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscAdd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscAdd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscAdd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscBinaryArithmetic.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscBinaryArithmetic.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscBinaryArithmetic.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscBinaryArithmetic.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscBinaryComparison.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscBinaryComparison.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscBinaryComparison.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscBinaryComparison.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscBitcast.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscBitcast.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscBitcast.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscBitcast.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscBroadcast.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscBroadcast.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscBroadcast.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscBroadcast.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscCast.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscCast.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscCast.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscCast.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscCeil.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscCeil.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscCeil.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscCeil.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscCholesky.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscCholesky.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscCholesky.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscCholesky.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscConcat.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscConcat.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscConcat.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscConcat.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscCondition.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscCondition.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscCondition.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscCondition.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscConv.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscConv.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscConv.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscConv.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscCos.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscCos.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscCos.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscCos.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscDiv.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscDiv.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscDiv.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscDiv.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscDot.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscDot.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscDot.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscDot.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscExp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscExp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscExp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscExp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscFft.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscFft.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscFft.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscFft.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscFloor.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscFloor.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscFloor.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscFloor.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscGather.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscGather.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscGather.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscGather.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscImag.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscImag.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscImag.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscImag.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscIsFinite.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscIsFinite.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscIsFinite.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscIsFinite.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscLog.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscLog.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscLog.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscLog.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscLogicalAnd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscLogicalAnd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscLogicalAnd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscLogicalAnd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscLogicalNot.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscLogicalNot.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscLogicalNot.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscLogicalNot.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscLogicalOr.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscLogicalOr.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscLogicalOr.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscLogicalOr.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscMax.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscMax.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscMax.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscMax.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscMin.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscMin.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscMin.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscMin.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscMul.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscMul.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscMul.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscMul.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscNeg.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscNeg.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscNeg.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscNeg.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscPad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscPad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscPad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscPad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscPool.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscPool.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscPool.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscPool.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscPow.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscPow.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscPow.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscPow.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscRandomUniform.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscRandomUniform.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscRandomUniform.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscRandomUniform.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscReal.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscReal.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscReal.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscReal.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscReduce.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscReduce.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscReduce.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscReduce.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscRem.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscRem.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscRem.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscRem.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscReshape.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscReshape.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscReshape.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscReshape.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscReverse.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscReverse.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscReverse.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscReverse.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscScatter.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscScatter.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscScatter.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscScatter.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscShape.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscShape.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscShape.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscShape.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscSign.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscSign.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscSign.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscSign.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscSlice.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscSlice.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscSlice.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscSlice.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscSort.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscSort.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscSort.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscSort.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscSqueeze.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscSqueeze.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscSqueeze.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscSqueeze.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscSub.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscSub.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscSub.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscSub.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscTranspose.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscTranspose.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscTranspose.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscTranspose.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscTriangularSolve.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscTriangularSolve.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscTriangularSolve.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscTriangularSolve.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscUnary.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscUnary.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscUnary.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscUnary.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscWhile.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RiscWhile.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RiscWhile.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RiscWhile.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RngReadAndSkip.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RngReadAndSkip.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RngReadAndSkip.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RngReadAndSkip.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RngSkip.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RngSkip.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RngSkip.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RngSkip.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Roll.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Roll.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Roll.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Roll.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Round.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Round.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Round.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Round.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Rpc.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Rpc.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Rpc.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Rpc.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Rsqrt.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Rsqrt.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Rsqrt.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Rsqrt.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RsqrtGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_RsqrtGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_RsqrtGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_RsqrtGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SampleDistortedBoundingBox.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SampleDistortedBoundingBox.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SampleDistortedBoundingBox.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SampleDistortedBoundingBox.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SampleDistortedBoundingBoxV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SampleDistortedBoundingBoxV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SampleDistortedBoundingBoxV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SampleDistortedBoundingBoxV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SamplingDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SamplingDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SamplingDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SamplingDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Save.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Save.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Save.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Save.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SaveDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SaveDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SaveDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SaveDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SaveDatasetV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SaveDatasetV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SaveDatasetV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SaveDatasetV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SaveSlices.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SaveSlices.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SaveSlices.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SaveSlices.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SaveV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SaveV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SaveV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SaveV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScalarSummary.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ScalarSummary.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScalarSummary.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ScalarSummary.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScaleAndTranslate.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ScaleAndTranslate.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScaleAndTranslate.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ScaleAndTranslate.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScaleAndTranslateGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ScaleAndTranslateGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScaleAndTranslateGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ScaleAndTranslateGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScanDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ScanDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScanDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ScanDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterAdd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterAdd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterAdd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterAdd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterDiv.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterDiv.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterDiv.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterDiv.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterMax.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterMax.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterMax.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterMax.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterMin.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterMin.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterMin.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterMin.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterMul.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterMul.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterMul.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterMul.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterNd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterNd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterNd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterNd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterNdAdd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterNdAdd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterNdAdd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterNdAdd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterNdMax.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterNdMax.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterNdMax.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterNdMax.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterNdMin.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterNdMin.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterNdMin.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterNdMin.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterNdNonAliasingAdd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterNdNonAliasingAdd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterNdNonAliasingAdd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterNdNonAliasingAdd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterNdSub.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterNdSub.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterNdSub.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterNdSub.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterNdUpdate.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterNdUpdate.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterNdUpdate.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterNdUpdate.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterSub.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterSub.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterSub.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterSub.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterUpdate.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterUpdate.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ScatterUpdate.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ScatterUpdate.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SdcaFprint.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SdcaFprint.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SdcaFprint.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SdcaFprint.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SdcaOptimizer.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SdcaOptimizer.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SdcaOptimizer.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SdcaOptimizer.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SdcaOptimizerV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SdcaOptimizerV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SdcaOptimizerV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SdcaOptimizerV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SdcaShrinkL1.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SdcaShrinkL1.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SdcaShrinkL1.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SdcaShrinkL1.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SegmentMax.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SegmentMax.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SegmentMax.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SegmentMax.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SegmentMean.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SegmentMean.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SegmentMean.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SegmentMean.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SegmentMin.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SegmentMin.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SegmentMin.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SegmentMin.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SegmentProd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SegmentProd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SegmentProd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SegmentProd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SegmentSum.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SegmentSum.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SegmentSum.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SegmentSum.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Select.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Select.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Select.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Select.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SelectV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SelectV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SelectV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SelectV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SelfAdjointEig.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SelfAdjointEig.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SelfAdjointEig.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SelfAdjointEig.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SelfAdjointEigV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SelfAdjointEigV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SelfAdjointEigV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SelfAdjointEigV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Selu.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Selu.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Selu.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Selu.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SeluGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SeluGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SeluGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SeluGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Send.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Send.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Send.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Send.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SendTPUEmbeddingGradients.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SendTPUEmbeddingGradients.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SendTPUEmbeddingGradients.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SendTPUEmbeddingGradients.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SerializeIterator.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SerializeIterator.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SerializeIterator.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SerializeIterator.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SerializeManySparse.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SerializeManySparse.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SerializeManySparse.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SerializeManySparse.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SerializeSparse.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SerializeSparse.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SerializeSparse.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SerializeSparse.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SerializeTensor.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SerializeTensor.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SerializeTensor.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SerializeTensor.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SetSize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SetSize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SetSize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SetSize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SetStatsAggregatorDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SetStatsAggregatorDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SetStatsAggregatorDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SetStatsAggregatorDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Shape.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Shape.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Shape.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Shape.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ShapeN.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ShapeN.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ShapeN.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ShapeN.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ShardDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ShardDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ShardDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ShardDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ShardedFilename.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ShardedFilename.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ShardedFilename.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ShardedFilename.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ShardedFilespec.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ShardedFilespec.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ShardedFilespec.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ShardedFilespec.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ShuffleAndRepeatDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ShuffleAndRepeatDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ShuffleAndRepeatDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ShuffleAndRepeatDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ShuffleAndRepeatDatasetV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ShuffleAndRepeatDatasetV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ShuffleAndRepeatDatasetV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ShuffleAndRepeatDatasetV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ShuffleDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ShuffleDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ShuffleDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ShuffleDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ShuffleDatasetV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ShuffleDatasetV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ShuffleDatasetV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ShuffleDatasetV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ShuffleDatasetV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ShuffleDatasetV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ShuffleDatasetV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ShuffleDatasetV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ShutdownDistributedTPU.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ShutdownDistributedTPU.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ShutdownDistributedTPU.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ShutdownDistributedTPU.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ShutdownTPUSystem.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ShutdownTPUSystem.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ShutdownTPUSystem.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ShutdownTPUSystem.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Sigmoid.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Sigmoid.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Sigmoid.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Sigmoid.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SigmoidGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SigmoidGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SigmoidGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SigmoidGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Sign.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Sign.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Sign.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Sign.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Sin.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Sin.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Sin.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Sin.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Sinh.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Sinh.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Sinh.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Sinh.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Size.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Size.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Size.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Size.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SkipDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SkipDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SkipDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SkipDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Skipgram.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Skipgram.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Skipgram.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Skipgram.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SleepDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SleepDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SleepDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SleepDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Slice.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Slice.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Slice.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Slice.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SlideDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SlideDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SlideDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SlideDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SlidingWindowDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SlidingWindowDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SlidingWindowDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SlidingWindowDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Snapshot.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Snapshot.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Snapshot.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Snapshot.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SnapshotDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SnapshotDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SnapshotDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SnapshotDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SnapshotDatasetReader.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SnapshotDatasetReader.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SnapshotDatasetReader.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SnapshotDatasetReader.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SnapshotDatasetV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SnapshotDatasetV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SnapshotDatasetV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SnapshotDatasetV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SnapshotNestedDatasetReader.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SnapshotNestedDatasetReader.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SnapshotNestedDatasetReader.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SnapshotNestedDatasetReader.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SobolSample.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SobolSample.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SobolSample.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SobolSample.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Softmax.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Softmax.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Softmax.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Softmax.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SoftmaxCrossEntropyWithLogits.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SoftmaxCrossEntropyWithLogits.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SoftmaxCrossEntropyWithLogits.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SoftmaxCrossEntropyWithLogits.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Softplus.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Softplus.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Softplus.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Softplus.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SoftplusGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SoftplusGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SoftplusGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SoftplusGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Softsign.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Softsign.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Softsign.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Softsign.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SoftsignGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SoftsignGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SoftsignGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SoftsignGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SpaceToBatch.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SpaceToBatch.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SpaceToBatch.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SpaceToBatch.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SpaceToBatchND.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SpaceToBatchND.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SpaceToBatchND.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SpaceToBatchND.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SpaceToDepth.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SpaceToDepth.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SpaceToDepth.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SpaceToDepth.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseAccumulatorApplyGradient.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseAccumulatorApplyGradient.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseAccumulatorApplyGradient.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseAccumulatorApplyGradient.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseAccumulatorTakeGradient.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseAccumulatorTakeGradient.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseAccumulatorTakeGradient.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseAccumulatorTakeGradient.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseAdd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseAdd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseAdd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseAdd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseAddGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseAddGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseAddGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseAddGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseApplyAdadelta.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseApplyAdadelta.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseApplyAdadelta.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseApplyAdadelta.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseApplyAdagrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseApplyAdagrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseApplyAdagrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseApplyAdagrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseApplyAdagradDA.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseApplyAdagradDA.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseApplyAdagradDA.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseApplyAdagradDA.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseApplyAdagradV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseApplyAdagradV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseApplyAdagradV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseApplyAdagradV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseApplyCenteredRMSProp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseApplyCenteredRMSProp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseApplyCenteredRMSProp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseApplyCenteredRMSProp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseApplyFtrl.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseApplyFtrl.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseApplyFtrl.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseApplyFtrl.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseApplyFtrlV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseApplyFtrlV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseApplyFtrlV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseApplyFtrlV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseApplyMomentum.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseApplyMomentum.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseApplyMomentum.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseApplyMomentum.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseApplyProximalAdagrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseApplyProximalAdagrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseApplyProximalAdagrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseApplyProximalAdagrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseApplyProximalGradientDescent.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseApplyProximalGradientDescent.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseApplyProximalGradientDescent.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseApplyProximalGradientDescent.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseApplyRMSProp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseApplyRMSProp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseApplyRMSProp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseApplyRMSProp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseBincount.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseBincount.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseBincount.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseBincount.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseConcat.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseConcat.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseConcat.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseConcat.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseConditionalAccumulator.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseConditionalAccumulator.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseConditionalAccumulator.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseConditionalAccumulator.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseCountSparseOutput.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseCountSparseOutput.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseCountSparseOutput.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseCountSparseOutput.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseCross.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseCross.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseCross.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseCross.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseCrossHashed.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseCrossHashed.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseCrossHashed.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseCrossHashed.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseCrossV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseCrossV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseCrossV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseCrossV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseDenseCwiseAdd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseDenseCwiseAdd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseDenseCwiseAdd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseDenseCwiseAdd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseDenseCwiseDiv.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseDenseCwiseDiv.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseDenseCwiseDiv.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseDenseCwiseDiv.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseDenseCwiseMul.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseDenseCwiseMul.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseDenseCwiseMul.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseDenseCwiseMul.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseFillEmptyRows.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseFillEmptyRows.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseFillEmptyRows.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseFillEmptyRows.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseFillEmptyRowsGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseFillEmptyRowsGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseFillEmptyRowsGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseFillEmptyRowsGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatMul.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatMul.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatMul.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatMul.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatrixAdd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatrixAdd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatrixAdd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatrixAdd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatrixMatMul.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatrixMatMul.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatrixMatMul.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatrixMatMul.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatrixMul.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatrixMul.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatrixMul.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatrixMul.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatrixNNZ.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatrixNNZ.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatrixNNZ.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatrixNNZ.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatrixOrderingAMD.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatrixOrderingAMD.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatrixOrderingAMD.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatrixOrderingAMD.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatrixSoftmax.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatrixSoftmax.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatrixSoftmax.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatrixSoftmax.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatrixSoftmaxGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatrixSoftmaxGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatrixSoftmaxGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatrixSoftmaxGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatrixSparseCholesky.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatrixSparseCholesky.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatrixSparseCholesky.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatrixSparseCholesky.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatrixSparseMatMul.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatrixSparseMatMul.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatrixSparseMatMul.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatrixSparseMatMul.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatrixTranspose.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatrixTranspose.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatrixTranspose.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatrixTranspose.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatrixZeros.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatrixZeros.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseMatrixZeros.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseMatrixZeros.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseReduceMax.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseReduceMax.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseReduceMax.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseReduceMax.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseReduceMaxSparse.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseReduceMaxSparse.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseReduceMaxSparse.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseReduceMaxSparse.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseReduceSum.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseReduceSum.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseReduceSum.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseReduceSum.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseReduceSumSparse.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseReduceSumSparse.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseReduceSumSparse.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseReduceSumSparse.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseReorder.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseReorder.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseReorder.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseReorder.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseReshape.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseReshape.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseReshape.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseReshape.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSegmentMean.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSegmentMean.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSegmentMean.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSegmentMean.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSegmentMeanGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSegmentMeanGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSegmentMeanGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSegmentMeanGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSegmentMeanWithNumSegments.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSegmentMeanWithNumSegments.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSegmentMeanWithNumSegments.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSegmentMeanWithNumSegments.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSegmentSqrtN.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSegmentSqrtN.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSegmentSqrtN.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSegmentSqrtN.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSegmentSqrtNGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSegmentSqrtNGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSegmentSqrtNGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSegmentSqrtNGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSegmentSqrtNWithNumSegments.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSegmentSqrtNWithNumSegments.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSegmentSqrtNWithNumSegments.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSegmentSqrtNWithNumSegments.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSegmentSum.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSegmentSum.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSegmentSum.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSegmentSum.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSegmentSumGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSegmentSumGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSegmentSumGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSegmentSumGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSegmentSumWithNumSegments.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSegmentSumWithNumSegments.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSegmentSumWithNumSegments.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSegmentSumWithNumSegments.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSlice.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSlice.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSlice.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSlice.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSliceGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSliceGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSliceGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSliceGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSoftmax.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSoftmax.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSoftmax.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSoftmax.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSoftmaxCrossEntropyWithLogits.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSoftmaxCrossEntropyWithLogits.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSoftmaxCrossEntropyWithLogits.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSoftmaxCrossEntropyWithLogits.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSparseMaximum.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSparseMaximum.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSparseMaximum.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSparseMaximum.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSparseMinimum.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSparseMinimum.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSparseMinimum.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSparseMinimum.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSplit.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSplit.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseSplit.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseSplit.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseTensorDenseAdd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseTensorDenseAdd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseTensorDenseAdd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseTensorDenseAdd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseTensorDenseMatMul.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseTensorDenseMatMul.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseTensorDenseMatMul.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseTensorDenseMatMul.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseTensorSliceDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseTensorSliceDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseTensorSliceDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseTensorSliceDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseTensorToCSRSparseMatrix.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseTensorToCSRSparseMatrix.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseTensorToCSRSparseMatrix.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseTensorToCSRSparseMatrix.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseToDense.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseToDense.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseToDense.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseToDense.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseToSparseSetOperation.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SparseToSparseSetOperation.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SparseToSparseSetOperation.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SparseToSparseSetOperation.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Spence.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Spence.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Spence.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Spence.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Split.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Split.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Split.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Split.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SplitV.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SplitV.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SplitV.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SplitV.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SqlDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SqlDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SqlDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SqlDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Sqrt.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Sqrt.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Sqrt.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Sqrt.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SqrtGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SqrtGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SqrtGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SqrtGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Square.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Square.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Square.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Square.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SquaredDifference.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SquaredDifference.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SquaredDifference.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SquaredDifference.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Squeeze.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Squeeze.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Squeeze.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Squeeze.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Stack.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Stack.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Stack.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Stack.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StackClose.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StackClose.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StackClose.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StackClose.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StackCloseV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StackCloseV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StackCloseV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StackCloseV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StackPop.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StackPop.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StackPop.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StackPop.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StackPopV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StackPopV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StackPopV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StackPopV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StackPush.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StackPush.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StackPush.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StackPush.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StackPushV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StackPushV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StackPushV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StackPushV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StackV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StackV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StackV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StackV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Stage.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Stage.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Stage.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Stage.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StageClear.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StageClear.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StageClear.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StageClear.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StagePeek.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StagePeek.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StagePeek.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StagePeek.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StageSize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StageSize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StageSize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StageSize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatefulPartitionedCall.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatefulPartitionedCall.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatefulPartitionedCall.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatefulPartitionedCall.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatefulRandomBinomial.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatefulRandomBinomial.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatefulRandomBinomial.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatefulRandomBinomial.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatefulStandardNormal.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatefulStandardNormal.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatefulStandardNormal.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatefulStandardNormal.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatefulStandardNormalV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatefulStandardNormalV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatefulStandardNormalV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatefulStandardNormalV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatefulTruncatedNormal.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatefulTruncatedNormal.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatefulTruncatedNormal.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatefulTruncatedNormal.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatefulUniform.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatefulUniform.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatefulUniform.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatefulUniform.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatefulUniformFullInt.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatefulUniformFullInt.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatefulUniformFullInt.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatefulUniformFullInt.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatefulUniformInt.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatefulUniformInt.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatefulUniformInt.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatefulUniformInt.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessCase.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessCase.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessCase.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessCase.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessIf.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessIf.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessIf.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessIf.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessMultinomial.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessMultinomial.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessMultinomial.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessMultinomial.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessParameterizedTruncatedNormal.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessParameterizedTruncatedNormal.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessParameterizedTruncatedNormal.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessParameterizedTruncatedNormal.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomBinomial.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomBinomial.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomBinomial.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomBinomial.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomGammaV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomGammaV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomGammaV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomGammaV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomGetAlg.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomGetAlg.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomGetAlg.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomGetAlg.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomGetKeyCounter.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomGetKeyCounter.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomGetKeyCounter.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomGetKeyCounter.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomGetKeyCounterAlg.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomGetKeyCounterAlg.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomGetKeyCounterAlg.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomGetKeyCounterAlg.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomNormal.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomNormal.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomNormal.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomNormal.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomNormalV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomNormalV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomNormalV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomNormalV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomPoisson.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomPoisson.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomPoisson.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomPoisson.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomUniform.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomUniform.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomUniform.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomUniform.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomUniformFullInt.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomUniformFullInt.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomUniformFullInt.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomUniformFullInt.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomUniformFullIntV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomUniformFullIntV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomUniformFullIntV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomUniformFullIntV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomUniformInt.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomUniformInt.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomUniformInt.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomUniformInt.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomUniformIntV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomUniformIntV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomUniformIntV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomUniformIntV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomUniformV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomUniformV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessRandomUniformV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessRandomUniformV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessSampleDistortedBoundingBox.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessSampleDistortedBoundingBox.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessSampleDistortedBoundingBox.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessSampleDistortedBoundingBox.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessShuffle.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessShuffle.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessShuffle.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessShuffle.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessTruncatedNormal.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessTruncatedNormal.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessTruncatedNormal.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessTruncatedNormal.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessTruncatedNormalV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessTruncatedNormalV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessTruncatedNormalV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessTruncatedNormalV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessWhile.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessWhile.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatelessWhile.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatelessWhile.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StaticRegexFullMatch.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StaticRegexFullMatch.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StaticRegexFullMatch.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StaticRegexFullMatch.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StaticRegexReplace.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StaticRegexReplace.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StaticRegexReplace.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StaticRegexReplace.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatsAggregatorHandle.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatsAggregatorHandle.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatsAggregatorHandle.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatsAggregatorHandle.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatsAggregatorHandleV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatsAggregatorHandleV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatsAggregatorHandleV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatsAggregatorHandleV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatsAggregatorSetSummaryWriter.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatsAggregatorSetSummaryWriter.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatsAggregatorSetSummaryWriter.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatsAggregatorSetSummaryWriter.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatsAggregatorSummary.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StatsAggregatorSummary.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StatsAggregatorSummary.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StatsAggregatorSummary.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StopGradient.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StopGradient.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StopGradient.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StopGradient.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StridedSlice.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StridedSlice.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StridedSlice.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StridedSlice.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StridedSliceAssign.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StridedSliceAssign.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StridedSliceAssign.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StridedSliceAssign.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StridedSliceGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StridedSliceGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StridedSliceGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StridedSliceGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringFormat.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StringFormat.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringFormat.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StringFormat.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringJoin.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StringJoin.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringJoin.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StringJoin.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringLength.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StringLength.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringLength.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StringLength.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringLower.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StringLower.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringLower.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StringLower.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringNGrams.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StringNGrams.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringNGrams.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StringNGrams.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringSplit.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StringSplit.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringSplit.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StringSplit.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringSplitV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StringSplitV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringSplitV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StringSplitV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringStrip.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StringStrip.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringStrip.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StringStrip.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringToHashBucket.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StringToHashBucket.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringToHashBucket.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StringToHashBucket.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringToHashBucketFast.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StringToHashBucketFast.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringToHashBucketFast.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StringToHashBucketFast.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringToHashBucketStrong.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StringToHashBucketStrong.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringToHashBucketStrong.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StringToHashBucketStrong.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringToNumber.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StringToNumber.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringToNumber.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StringToNumber.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringUpper.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_StringUpper.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_StringUpper.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_StringUpper.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Sub.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Sub.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Sub.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Sub.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Substr.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Substr.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Substr.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Substr.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Sum.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Sum.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Sum.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Sum.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SummaryWriter.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SummaryWriter.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SummaryWriter.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SummaryWriter.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Svd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Svd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Svd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Svd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Switch.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Switch.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Switch.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Switch.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SymbolicGradient.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_SymbolicGradient.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_SymbolicGradient.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_SymbolicGradient.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TFRecordDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TFRecordDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TFRecordDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TFRecordDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TFRecordReader.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TFRecordReader.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TFRecordReader.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TFRecordReader.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TFRecordReaderV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TFRecordReaderV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TFRecordReaderV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TFRecordReaderV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUCompilationResult.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TPUCompilationResult.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUCompilationResult.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TPUCompilationResult.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUCompile.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TPUCompile.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUCompile.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TPUCompile.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUCompileSucceededAssert.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TPUCompileSucceededAssert.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUCompileSucceededAssert.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TPUCompileSucceededAssert.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUEmbeddingActivations.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TPUEmbeddingActivations.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUEmbeddingActivations.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TPUEmbeddingActivations.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUExecute.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TPUExecute.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUExecute.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TPUExecute.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUExecuteAndUpdateVariables.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TPUExecuteAndUpdateVariables.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUExecuteAndUpdateVariables.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TPUExecuteAndUpdateVariables.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUOrdinalSelector.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TPUOrdinalSelector.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUOrdinalSelector.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TPUOrdinalSelector.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUPartitionedCall.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TPUPartitionedCall.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUPartitionedCall.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TPUPartitionedCall.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUPartitionedInput.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TPUPartitionedInput.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUPartitionedInput.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TPUPartitionedInput.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUPartitionedOutput.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TPUPartitionedOutput.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUPartitionedOutput.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TPUPartitionedOutput.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUReplicateMetadata.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TPUReplicateMetadata.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUReplicateMetadata.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TPUReplicateMetadata.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUReplicatedInput.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TPUReplicatedInput.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUReplicatedInput.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TPUReplicatedInput.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUReplicatedOutput.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TPUReplicatedOutput.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUReplicatedOutput.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TPUReplicatedOutput.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUReshardVariables.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TPUReshardVariables.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPUReshardVariables.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TPUReshardVariables.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPURoundRobin.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TPURoundRobin.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TPURoundRobin.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TPURoundRobin.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TakeDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TakeDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TakeDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TakeDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TakeManySparseFromTensorsMap.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TakeManySparseFromTensorsMap.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TakeManySparseFromTensorsMap.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TakeManySparseFromTensorsMap.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TakeWhileDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TakeWhileDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TakeWhileDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TakeWhileDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Tan.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Tan.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Tan.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Tan.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Tanh.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Tanh.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Tanh.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Tanh.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TanhGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TanhGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TanhGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TanhGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TemporaryVariable.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TemporaryVariable.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TemporaryVariable.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TemporaryVariable.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArray.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArray.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArray.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArray.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayClose.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayClose.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayClose.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayClose.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayCloseV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayCloseV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayCloseV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayCloseV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayCloseV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayCloseV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayCloseV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayCloseV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayConcat.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayConcat.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayConcat.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayConcat.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayConcatV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayConcatV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayConcatV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayConcatV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayConcatV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayConcatV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayConcatV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayConcatV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayGather.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayGather.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayGather.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayGather.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayGatherV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayGatherV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayGatherV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayGatherV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayGatherV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayGatherV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayGatherV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayGatherV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayGradV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayGradV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayGradV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayGradV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayGradV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayGradV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayGradV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayGradV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayGradWithShape.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayGradWithShape.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayGradWithShape.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayGradWithShape.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayPack.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayPack.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayPack.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayPack.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayRead.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayRead.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayRead.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayRead.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayReadV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayReadV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayReadV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayReadV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayReadV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayReadV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayReadV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayReadV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayScatter.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayScatter.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayScatter.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayScatter.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayScatterV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayScatterV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayScatterV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayScatterV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayScatterV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayScatterV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayScatterV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayScatterV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArraySize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArraySize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArraySize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArraySize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArraySizeV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArraySizeV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArraySizeV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArraySizeV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArraySizeV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArraySizeV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArraySizeV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArraySizeV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArraySplit.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArraySplit.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArraySplit.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArraySplit.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArraySplitV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArraySplitV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArraySplitV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArraySplitV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArraySplitV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArraySplitV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArraySplitV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArraySplitV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayUnpack.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayUnpack.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayUnpack.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayUnpack.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayWrite.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayWrite.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayWrite.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayWrite.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayWriteV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayWriteV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayWriteV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayWriteV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayWriteV3.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayWriteV3.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorArrayWriteV3.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorArrayWriteV3.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorForestCreateTreeVariable.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorForestCreateTreeVariable.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorForestCreateTreeVariable.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorForestCreateTreeVariable.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorForestTreeDeserialize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorForestTreeDeserialize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorForestTreeDeserialize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorForestTreeDeserialize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorForestTreeIsInitializedOp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorForestTreeIsInitializedOp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorForestTreeIsInitializedOp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorForestTreeIsInitializedOp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorForestTreePredict.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorForestTreePredict.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorForestTreePredict.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorForestTreePredict.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorForestTreeResourceHandleOp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorForestTreeResourceHandleOp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorForestTreeResourceHandleOp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorForestTreeResourceHandleOp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorForestTreeSerialize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorForestTreeSerialize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorForestTreeSerialize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorForestTreeSerialize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorForestTreeSize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorForestTreeSize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorForestTreeSize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorForestTreeSize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListConcat.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListConcat.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListConcat.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListConcat.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListConcatLists.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListConcatLists.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListConcatLists.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListConcatLists.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListConcatV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListConcatV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListConcatV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListConcatV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListElementShape.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListElementShape.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListElementShape.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListElementShape.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListFromTensor.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListFromTensor.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListFromTensor.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListFromTensor.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListGather.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListGather.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListGather.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListGather.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListGetItem.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListGetItem.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListGetItem.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListGetItem.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListLength.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListLength.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListLength.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListLength.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListPopBack.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListPopBack.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListPopBack.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListPopBack.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListPushBack.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListPushBack.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListPushBack.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListPushBack.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListPushBackBatch.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListPushBackBatch.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListPushBackBatch.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListPushBackBatch.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListReserve.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListReserve.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListReserve.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListReserve.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListResize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListResize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListResize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListResize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListScatter.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListScatter.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListScatter.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListScatter.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListScatterIntoExistingList.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListScatterIntoExistingList.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListScatterIntoExistingList.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListScatterIntoExistingList.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListScatterV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListScatterV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListScatterV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListScatterV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListSetItem.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListSetItem.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListSetItem.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListSetItem.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListSplit.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListSplit.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListSplit.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListSplit.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListStack.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListStack.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorListStack.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorListStack.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorMapErase.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorMapErase.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorMapErase.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorMapErase.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorMapHasKey.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorMapHasKey.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorMapHasKey.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorMapHasKey.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorMapInsert.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorMapInsert.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorMapInsert.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorMapInsert.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorMapLookup.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorMapLookup.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorMapLookup.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorMapLookup.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorMapSize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorMapSize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorMapSize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorMapSize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorMapStackKeys.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorMapStackKeys.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorMapStackKeys.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorMapStackKeys.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorScatterAdd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorScatterAdd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorScatterAdd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorScatterAdd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorScatterMax.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorScatterMax.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorScatterMax.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorScatterMax.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorScatterMin.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorScatterMin.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorScatterMin.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorScatterMin.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorScatterSub.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorScatterSub.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorScatterSub.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorScatterSub.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorScatterUpdate.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorScatterUpdate.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorScatterUpdate.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorScatterUpdate.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorSliceDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorSliceDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorSliceDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorSliceDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorStridedSliceUpdate.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorStridedSliceUpdate.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorStridedSliceUpdate.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorStridedSliceUpdate.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorSummary.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorSummary.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorSummary.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorSummary.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorSummaryV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TensorSummaryV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TensorSummaryV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TensorSummaryV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TextLineDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TextLineDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TextLineDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TextLineDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TextLineReader.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TextLineReader.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TextLineReader.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TextLineReader.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TextLineReaderV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TextLineReaderV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TextLineReaderV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TextLineReaderV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ThreadPoolDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ThreadPoolDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ThreadPoolDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ThreadPoolDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ThreadPoolHandle.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ThreadPoolHandle.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ThreadPoolHandle.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ThreadPoolHandle.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ThreadUnsafeUnigramCandidateSampler.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ThreadUnsafeUnigramCandidateSampler.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ThreadUnsafeUnigramCandidateSampler.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ThreadUnsafeUnigramCandidateSampler.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Tile.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Tile.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Tile.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Tile.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TileGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TileGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TileGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TileGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Timestamp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Timestamp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Timestamp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Timestamp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ToBool.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ToBool.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ToBool.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ToBool.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TopK.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TopK.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TopK.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TopK.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TopKUnique.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TopKUnique.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TopKUnique.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TopKUnique.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TopKV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TopKV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TopKV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TopKV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TopKWithUnique.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TopKWithUnique.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TopKWithUnique.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TopKWithUnique.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TpuHandleToProtoKey.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TpuHandleToProtoKey.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TpuHandleToProtoKey.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TpuHandleToProtoKey.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Transpose.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Transpose.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Transpose.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Transpose.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TridiagonalMatMul.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TridiagonalMatMul.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TridiagonalMatMul.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TridiagonalMatMul.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TridiagonalSolve.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TridiagonalSolve.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TridiagonalSolve.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TridiagonalSolve.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TruncateDiv.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TruncateDiv.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TruncateDiv.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TruncateDiv.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TruncateMod.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TruncateMod.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TruncateMod.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TruncateMod.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TruncatedNormal.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TruncatedNormal.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TruncatedNormal.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TruncatedNormal.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TryRpc.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_TryRpc.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_TryRpc.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_TryRpc.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Unbatch.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Unbatch.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Unbatch.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Unbatch.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnbatchDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UnbatchDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnbatchDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UnbatchDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnbatchGrad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UnbatchGrad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnbatchGrad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UnbatchGrad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UncompressElement.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UncompressElement.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UncompressElement.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UncompressElement.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnicodeDecode.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UnicodeDecode.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnicodeDecode.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UnicodeDecode.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnicodeDecodeWithOffsets.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UnicodeDecodeWithOffsets.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnicodeDecodeWithOffsets.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UnicodeDecodeWithOffsets.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnicodeEncode.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UnicodeEncode.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnicodeEncode.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UnicodeEncode.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnicodeScript.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UnicodeScript.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnicodeScript.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UnicodeScript.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnicodeTranscode.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UnicodeTranscode.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnicodeTranscode.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UnicodeTranscode.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UniformCandidateSampler.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UniformCandidateSampler.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UniformCandidateSampler.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UniformCandidateSampler.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UniformDequantize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UniformDequantize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UniformDequantize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UniformDequantize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UniformQuantizedDotHybrid.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UniformQuantizedDotHybrid.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UniformQuantizedDotHybrid.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UniformQuantizedDotHybrid.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Unique.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Unique.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Unique.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Unique.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UniqueDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UniqueDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UniqueDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UniqueDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UniqueV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UniqueV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UniqueV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UniqueV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UniqueWithCounts.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UniqueWithCounts.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UniqueWithCounts.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UniqueWithCounts.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UniqueWithCountsV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UniqueWithCountsV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UniqueWithCountsV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UniqueWithCountsV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Unpack.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Unpack.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Unpack.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Unpack.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnravelIndex.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UnravelIndex.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnravelIndex.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UnravelIndex.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnsortedSegmentJoin.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UnsortedSegmentJoin.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnsortedSegmentJoin.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UnsortedSegmentJoin.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnsortedSegmentMax.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UnsortedSegmentMax.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnsortedSegmentMax.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UnsortedSegmentMax.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnsortedSegmentMin.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UnsortedSegmentMin.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnsortedSegmentMin.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UnsortedSegmentMin.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnsortedSegmentProd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UnsortedSegmentProd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnsortedSegmentProd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UnsortedSegmentProd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnsortedSegmentSum.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UnsortedSegmentSum.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnsortedSegmentSum.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UnsortedSegmentSum.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Unstage.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Unstage.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Unstage.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Unstage.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnwrapDatasetVariant.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UnwrapDatasetVariant.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UnwrapDatasetVariant.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UnwrapDatasetVariant.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UpperBound.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_UpperBound.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_UpperBound.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_UpperBound.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_VarHandleOp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_VarHandleOp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_VarHandleOp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_VarHandleOp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_VarIsInitializedOp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_VarIsInitializedOp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_VarIsInitializedOp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_VarIsInitializedOp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Variable.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Variable.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Variable.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Variable.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_VariableShape.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_VariableShape.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_VariableShape.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_VariableShape.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_VariableV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_VariableV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_VariableV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_VariableV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Where.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Where.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Where.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Where.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_While.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_While.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_While.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_While.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WholeFileReader.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_WholeFileReader.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WholeFileReader.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_WholeFileReader.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WholeFileReaderV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_WholeFileReaderV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WholeFileReaderV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_WholeFileReaderV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Window.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Window.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Window.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Window.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WindowDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_WindowDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WindowDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_WindowDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WindowOp.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_WindowOp.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WindowOp.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_WindowOp.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WorkerHeartbeat.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_WorkerHeartbeat.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WorkerHeartbeat.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_WorkerHeartbeat.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WrapDatasetVariant.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_WrapDatasetVariant.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WrapDatasetVariant.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_WrapDatasetVariant.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WriteAudioSummary.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_WriteAudioSummary.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WriteAudioSummary.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_WriteAudioSummary.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WriteFile.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_WriteFile.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WriteFile.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_WriteFile.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WriteGraphSummary.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_WriteGraphSummary.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WriteGraphSummary.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_WriteGraphSummary.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WriteHistogramSummary.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_WriteHistogramSummary.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WriteHistogramSummary.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_WriteHistogramSummary.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WriteImageSummary.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_WriteImageSummary.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WriteImageSummary.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_WriteImageSummary.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WriteRawProtoSummary.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_WriteRawProtoSummary.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WriteRawProtoSummary.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_WriteRawProtoSummary.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WriteScalarSummary.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_WriteScalarSummary.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WriteScalarSummary.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_WriteScalarSummary.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WriteSummary.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_WriteSummary.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_WriteSummary.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_WriteSummary.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Xdivy.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Xdivy.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Xdivy.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Xdivy.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaAllReduce.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaAllReduce.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaAllReduce.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaAllReduce.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaBroadcastHelper.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaBroadcastHelper.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaBroadcastHelper.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaBroadcastHelper.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaCallModule.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaCallModule.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaCallModule.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaCallModule.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaClusterOutput.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaClusterOutput.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaClusterOutput.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaClusterOutput.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaConcatND.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaConcatND.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaConcatND.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaConcatND.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaConv.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaConv.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaConv.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaConv.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaConvV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaConvV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaConvV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaConvV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaCustomCall.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaCustomCall.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaCustomCall.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaCustomCall.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaDequantize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaDequantize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaDequantize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaDequantize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaDot.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaDot.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaDot.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaDot.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaDotV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaDotV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaDotV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaDotV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaDynamicSlice.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaDynamicSlice.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaDynamicSlice.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaDynamicSlice.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaDynamicUpdateSlice.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaDynamicUpdateSlice.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaDynamicUpdateSlice.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaDynamicUpdateSlice.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaEinsum.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaEinsum.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaEinsum.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaEinsum.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaGather.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaGather.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaGather.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaGather.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaHostCompute.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaHostCompute.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaHostCompute.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaHostCompute.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaIf.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaIf.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaIf.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaIf.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaKeyValueSort.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaKeyValueSort.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaKeyValueSort.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaKeyValueSort.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaLaunch.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaLaunch.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaLaunch.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaLaunch.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaOptimizationBarrier.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaOptimizationBarrier.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaOptimizationBarrier.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaOptimizationBarrier.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaPad.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaPad.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaPad.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaPad.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaRecv.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaRecv.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaRecv.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaRecv.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaRecvFromHost.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaRecvFromHost.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaRecvFromHost.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaRecvFromHost.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaRecvTPUEmbeddingActivations.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaRecvTPUEmbeddingActivations.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaRecvTPUEmbeddingActivations.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaRecvTPUEmbeddingActivations.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaRecvTPUEmbeddingDeduplicationData.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaRecvTPUEmbeddingDeduplicationData.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaRecvTPUEmbeddingDeduplicationData.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaRecvTPUEmbeddingDeduplicationData.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaReduce.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaReduce.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaReduce.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaReduce.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaReduceScatter.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaReduceScatter.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaReduceScatter.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaReduceScatter.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaReduceWindow.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaReduceWindow.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaReduceWindow.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaReduceWindow.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaRemoveDynamicDimensionSize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaRemoveDynamicDimensionSize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaRemoveDynamicDimensionSize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaRemoveDynamicDimensionSize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaReplicaId.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaReplicaId.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaReplicaId.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaReplicaId.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaRngBitGenerator.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaRngBitGenerator.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaRngBitGenerator.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaRngBitGenerator.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaScatter.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaScatter.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaScatter.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaScatter.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSelectAndScatter.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSelectAndScatter.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSelectAndScatter.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSelectAndScatter.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSelfAdjointEig.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSelfAdjointEig.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSelfAdjointEig.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSelfAdjointEig.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSend.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSend.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSend.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSend.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSendTPUEmbeddingGradients.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSendTPUEmbeddingGradients.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSendTPUEmbeddingGradients.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSendTPUEmbeddingGradients.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSendToHost.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSendToHost.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSendToHost.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSendToHost.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSetBound.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSetBound.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSetBound.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSetBound.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSetDynamicDimensionSize.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSetDynamicDimensionSize.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSetDynamicDimensionSize.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSetDynamicDimensionSize.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSharding.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSharding.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSharding.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSharding.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSort.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSort.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSort.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSort.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSplitND.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSplitND.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSplitND.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSplitND.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSpmdFullToShardShape.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSpmdFullToShardShape.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSpmdFullToShardShape.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSpmdFullToShardShape.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSpmdShardToFullShape.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSpmdShardToFullShape.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSpmdShardToFullShape.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSpmdShardToFullShape.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSvd.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSvd.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaSvd.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaSvd.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaVariadicReduce.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaVariadicReduce.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaVariadicReduce.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaVariadicReduce.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaVariadicReduceV2.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaVariadicReduceV2.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaVariadicReduceV2.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaVariadicReduceV2.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaVariadicSort.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaVariadicSort.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaVariadicSort.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaVariadicSort.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaWhile.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_XlaWhile.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_XlaWhile.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_XlaWhile.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Xlog1py.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Xlog1py.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Xlog1py.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Xlog1py.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Xlogy.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Xlogy.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Xlogy.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Xlogy.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ZerosLike.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ZerosLike.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ZerosLike.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ZerosLike.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Zeta.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_Zeta.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_Zeta.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_Zeta.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ZipDataset.pbtxt b/tensorflow-core/tensorflow-core-api/src/api/api_def_ZipDataset.pbtxt similarity index 100% rename from tensorflow-core/tensorflow-core-api/src/bazel/api_def/api_def_ZipDataset.pbtxt rename to tensorflow-core/tensorflow-core-api/src/api/api_def_ZipDataset.pbtxt diff --git a/tensorflow-core/tensorflow-core-api/src/bazel/op_generator/op_export_main.cc b/tensorflow-core/tensorflow-core-api/src/bazel/op_generator/op_export_main.cc deleted file mode 100644 index 9ae47d9aefb..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/bazel/op_generator/op_export_main.cc +++ /dev/null @@ -1,132 +0,0 @@ -/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. - - 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 - - http://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. -==============================================================================*/ - -#include -#include -#include -#include -#include - -#include "tensorflow/core/framework/op.h" -#include "tensorflow/core/lib/core/status.h" -#include "tensorflow/core/lib/strings/str_util.h" -#include "tensorflow/core/platform/env.h" -#include "tensorflow/core/platform/init_main.h" -#include "tensorflow/core/util/command_line_flags.h" -#include "tensorflow/core/framework/api_def.pb.h" -#include "tensorflow/core/framework/op_def.pb.h" -#include "tensorflow/core/lib/core/status.h" -#include "tensorflow/core/lib/core/errors.h" -#include "tensorflow/core/lib/io/path.h" -#include "tensorflow/core/framework/op_gen_lib.h" -#include "google/protobuf/unknown_field_set.h" - -namespace tensorflow { -namespace java { - -const char kUsageHeader[] = - "\n\nExporter of operation and API defs, for use in Java op generation.\n\n" - "This executable exports the op def and api def protos for all operations " - "registered in the provided list of libraries. The proto will be printed " - "to stdout in binary format. It is an OpList proto, with each OpDef having" - " the associated ApiDef attached as unknown field 100\n\n" - "The first argument is the location of the tensorflow binary built for TF-" - "Java.\nFor example, `bazel-out/k8-opt/bin/external/org_tensorflow/tensorfl" - "ow/libtensorflow_cc.so`.\n\n" - "The second and third arguments are the binary and text output files, respectively.\n" - "The text output file will not include ApiDefs, like tensorflow's ops.pbtxt.\n\n" - "Finally, the rest of the arguments are used as " - "directories of API definitions can be provided to override default\n" - "values found in the ops definitions. Directories are ordered by priority " - "(the last having precedence over the first).\nFor example, `bazel-tensorf" - "low-core-api/external/org_tensorflow/tensorflow/core/api_def/base_api,src" - "/bazel/api_def`\n\n"; - -void Write(OpDef* op_def, const ApiDef& api_def){ - auto *refl = op_def->GetReflection(); - refl->MutableUnknownFields(op_def)->AddLengthDelimited(100, api_def.SerializeAsString()); -} - -Status UpdateOpDefs(OpList* op_list, const std::vector& api_dirs_, Env* env_) { - ApiDefMap api_map(*op_list); - if (!api_dirs_.empty()) { - // Only load api files that correspond to the requested "op_list" - for (const auto& op : op_list->op()) { - for (const auto& api_def_dir : api_dirs_) { - const std::string api_def_file_pattern = - io::JoinPath(api_def_dir, "api_def_" + op.name() + ".pbtxt"); - if (env_->FileExists(api_def_file_pattern).ok()) { - TF_CHECK_OK(api_map.LoadFile(env_, api_def_file_pattern)) - << api_def_file_pattern; - } - } - } - } - api_map.UpdateDocs(); - - for (int i = 0 ; i < op_list->op_size() ; i++) { - OpDef *op_def = op_list->mutable_op(i); - const ApiDef* api_def = api_map.GetApiDef(op_def->name()); - Write(op_def, *api_def); - } - return Status::OK(); -} - -} -} - -// See usage header. -// Writes an OpList proto to stdout, with each OpDef having its ApiDef in field 100 -int main(int argc, char* argv[]) { - tensorflow::port::InitMain(tensorflow::java::kUsageHeader, &argc, &argv); - std::vector api_dirs; - - if(argc < 3) { - std::cerr << "Must specify \n"; - std::cerr << tensorflow::java::kUsageHeader; - return 1; - } - - for(int i = 3 ; i < argc ; i++){ - api_dirs.push_back(argv[i]); - } - - std::ofstream binary_output (argv[1], std::ios::out | std::ios::trunc | std::ios::binary); - std::ofstream text_output (argv[2], std::ios::out | std::ios::trunc); - - if(!binary_output.is_open()){ - std::cerr << "Error opening file " << argv[1] << "\n"; - return 1; - } - - if(!text_output.is_open()){ - std::cerr << "Error opening file " << argv[2] << "\n"; - return 1; - } - - tensorflow::Env* env = tensorflow::Env::Default(); - tensorflow::OpList ops; - tensorflow::OpRegistry::Global()->Export(false, &ops); - - text_output << ops.DebugString(); - text_output.close(); - - TF_CHECK_OK(tensorflow::java::UpdateOpDefs(&ops, api_dirs, env)); - - ops.SerializeToOstream(&binary_output); - binary_output.close(); - - return 0; -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/DataOps.java b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/DataOps.java index b49373aea62..ee2e8474079 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/DataOps.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/DataOps.java @@ -382,10 +382,12 @@ public DataServiceDataset dataServiceDataset(Operand datasetId, * Returns the cardinality of {@code input_dataset}. * * @param inputDataset A variant tensor representing the dataset to return cardinality for. + * @param options carries optional attribute values * @return a new instance of DatasetCardinality */ - public DatasetCardinality datasetCardinality(Operand inputDataset) { - return DatasetCardinality.create(scope, inputDataset); + public DatasetCardinality datasetCardinality(Operand inputDataset, + DatasetCardinality.Options... options) { + return DatasetCardinality.create(scope, inputDataset, options); } /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/MathOps.java b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/MathOps.java index 7b2d4faedfe..0c22667a06f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/MathOps.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/MathOps.java @@ -253,7 +253,7 @@ public AddN addN(Iterable> inputs) { *

For example: *

    *  # tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j]
-   *  tf.angle(input) ==> [2.0132, 1.056]
+   *  tf.math.angle(input) ==> [2.0132, 1.056]
    *  
*

{@literal @}compatibility(numpy)
* Equivalent to np.angle. @@ -277,7 +277,7 @@ public Angle angle(Operand input) { *

For example: *

    *  # tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j]
-   *  tf.angle(input) ==> [2.0132, 1.056]
+   *  tf.math.angle(input) ==> [2.0132, 1.056]
    *  
*

{@literal @}compatibility(numpy)
* Equivalent to np.angle. @@ -994,9 +994,10 @@ public FloorDiv floorDiv(Operand x, Operand y) { } /** - * Returns element-wise remainder of division. When {@code x < 0} xor {@code y < 0} is - * true, this follows Python semantics in that the result here is consistent - * with a flooring divide. E.g. {@code floor(x / y) * y + mod(x, y) = x}. + * Returns element-wise remainder of division. + * This follows Python semantics in that the + * result here is consistent with a flooring divide. E.g. + * {@code floor(x / y) * y + floormod(x, y) = x}, regardless of the signs of x and y. *

NOTE: {@code math.FloorMod} supports broadcasting. More about broadcasting * here * @@ -2128,7 +2129,7 @@ public Tanh tanh(Operand x) { } /** - * Returns x / y element-wise for integer types. + * Returns x / y element-wise, rounded towards zero. * Truncation designates that negative numbers will round fractional quantities * toward zero. I.e. -7 / 5 = -1. This matches C semantics but it is different * than Python semantics. See {@code FloorDiv} for a division function that matches diff --git a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/NnOps.java b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/NnOps.java index 4b0902ac98f..1592c64f74d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/NnOps.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/NnOps.java @@ -2070,18 +2070,47 @@ public SparseSoftmaxCrossEntropyWithLogits sparseSoftmaxC *

If two elements are equal, the lower-index element appears first. * * @param data type for {@code values} output + * @param data type for {@code indices} output * @param input 1-D or higher with last dimension at least {@code k}. * @param k 0-D. Number of top elements to look for along the last dimension (along each * row for matrices). * @param options carries optional attribute values * @param data type for {@code TopKV2} output and operands - * @return a new instance of TopK + * @return a new instance of TopK, with default output types */ - public TopK topK(Operand input, Operand k, - TopK.Options... options) { + public TopK topK(Operand input, Operand k, + TopK.Options[] options) { return TopK.create(scope, input, k, options); } + /** + * Finds values and indices of the {@code k} largest elements for the last dimension. + * If the input is a vector (rank-1), finds the {@code k} largest entries in the vector + * and outputs their values and indices as vectors. Thus {@code values[j]} is the + * {@code j}-th largest entry in {@code input}, and its index is {@code indices[j]}. + *

For matrices (resp. higher rank input), computes the top {@code k} entries in each + * row (resp. vector along the last dimension). Thus, + *

+   *  values.shape = indices.shape = input.shape[:-1] + [k]
+   *  
+ *

If two elements are equal, the lower-index element appears first. + * + * @param data type for {@code values} output + * @param data type for {@code indices} output + * @param input 1-D or higher with last dimension at least {@code k}. + * @param k 0-D. Number of top elements to look for along the last dimension (along each + * row for matrices). + * @param indexType The value of the indexType attribute + * @param options carries optional attribute values + * @param data type for {@code TopKV2} output and operands + * @param data type for {@code TopKV2} output and operands + * @return a new instance of TopK + */ + public TopK topK(Operand input, + Operand k, Class indexType, TopK.Options... options) { + return TopK.create(scope, input, k, indexType, options); + } + /** * Get the parent {@link Ops} object. */ diff --git a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java index 37f7aa35358..4fc017acff7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java @@ -76,7 +76,11 @@ import org.tensorflow.op.core.Constant; import org.tensorflow.op.core.ConsumeMutexLock; import org.tensorflow.op.core.ControlTrigger; +import org.tensorflow.op.core.Conv; +import org.tensorflow.op.core.Conv2DBackpropFilterV2; +import org.tensorflow.op.core.Conv2DBackpropInputV2; import org.tensorflow.op.core.CopyToMesh; +import org.tensorflow.op.core.CopyToMeshGrad; import org.tensorflow.op.core.CountUpTo; import org.tensorflow.op.core.DecodeProto; import org.tensorflow.op.core.DeepCopy; @@ -162,6 +166,8 @@ import org.tensorflow.op.core.Print; import org.tensorflow.op.core.Prod; import org.tensorflow.op.core.QuantizedReshape; +import org.tensorflow.op.core.RaggedFillEmptyRows; +import org.tensorflow.op.core.RaggedFillEmptyRowsGrad; import org.tensorflow.op.core.RandomIndexShuffle; import org.tensorflow.op.core.Range; import org.tensorflow.op.core.Rank; @@ -176,6 +182,7 @@ import org.tensorflow.op.core.RefSelect; import org.tensorflow.op.core.RefSwitch; import org.tensorflow.op.core.Relayout; +import org.tensorflow.op.core.RelayoutLike; import org.tensorflow.op.core.RemoteCall; import org.tensorflow.op.core.Reshape; import org.tensorflow.op.core.ResourceCountUpTo; @@ -209,6 +216,10 @@ import org.tensorflow.op.core.ScatterNdUpdate; import org.tensorflow.op.core.ScatterSub; import org.tensorflow.op.core.ScatterUpdate; +import org.tensorflow.op.core.SegmentMaxV2; +import org.tensorflow.op.core.SegmentMinV2; +import org.tensorflow.op.core.SegmentProdV2; +import org.tensorflow.op.core.SegmentSumV2; import org.tensorflow.op.core.Select; import org.tensorflow.op.core.SetDiff1d; import org.tensorflow.op.core.SetSize; @@ -218,6 +229,9 @@ import org.tensorflow.op.core.Slice; import org.tensorflow.op.core.Snapshot; import org.tensorflow.op.core.SpaceToBatchNd; +import org.tensorflow.op.core.SparseSegmentMeanGradV2; +import org.tensorflow.op.core.SparseSegmentSqrtNGradV2; +import org.tensorflow.op.core.SparseSegmentSumGradV2; import org.tensorflow.op.core.Split; import org.tensorflow.op.core.SplitV; import org.tensorflow.op.core.Squeeze; @@ -231,7 +245,6 @@ import org.tensorflow.op.core.StatefulPartitionedCall; import org.tensorflow.op.core.StatefulWhile; import org.tensorflow.op.core.StatelessIf; -import org.tensorflow.op.core.StatelessPartitionedCall; import org.tensorflow.op.core.StatelessWhile; import org.tensorflow.op.core.StopGradient; import org.tensorflow.op.core.StridedSlice; @@ -240,6 +253,7 @@ import org.tensorflow.op.core.StridedSliceHelper; import org.tensorflow.op.core.Sum; import org.tensorflow.op.core.SwitchCond; +import org.tensorflow.op.core.TPUPartitionedOutputV2; import org.tensorflow.op.core.TemporaryVariable; import org.tensorflow.op.core.TensorArray; import org.tensorflow.op.core.TensorArrayClose; @@ -381,10 +395,10 @@ public final class Ops { public final SignalOps signal; - public final QuantizationOps quantization; - public final TrainOps train; + public final QuantizationOps quantization; + private final Scope scope; Ops(Scope scope) { @@ -407,8 +421,8 @@ public final class Ops { math = new MathOps(this); audio = new AudioOps(this); signal = new SignalOps(this); - quantization = new QuantizationOps(this); train = new TrainOps(this); + quantization = new QuantizationOps(this); } /** @@ -1062,7 +1076,9 @@ public BatchToSpaceNd batchToSpaceNd(Operand input, * * *

NOTE: Bitcast is implemented as a low-level cast, so machines with different - * endian orderings will give different results. + * endian orderings will give different results. A copy from input buffer to output + * buffer is made on BE machines when types are of different sizes in order to get + * the same casting results as on LE machines. * * @param data type for {@code output} output * @param input The input value @@ -2082,19 +2098,105 @@ public ControlTrigger controlTrigger() { return ControlTrigger.create(scope); } + /** + * Computes a N-D convolution given (N+1+batch_dims)-D {@code input} and (N+2)-D {@code filter} tensors. + * General function for computing a N-D convolution. It is required that + * {@code 1 <= N <= 3}. + * + * @param data type for {@code output} output + * @param input Tensor of type T and shape {@code batch_shape + spatial_shape + [in_channels]} in the + * case that {@code channels_last_format = true} or shape + * {@code batch_shape + [in_channels] + spatial_shape} if {@code channels_last_format = false}. + * spatial_shape is N-dimensional with {@code N=2} or {@code N=3}. + * Also note that {@code batch_shape} is dictated by the parameter {@code batch_dims} + * and defaults to 1. + * @param filter An {@code (N+2)-D} Tensor with the same type as {@code input} and shape + * {@code spatial_filter_shape + [in_channels, out_channels]}, where spatial_filter_shape + * is N-dimensional with {@code N=2} or {@code N=3}. + * @param strides 1-D tensor of length {@code N+2}. The stride of the sliding window for each + * dimension of {@code input}. Must have {@code strides[0] = strides[N+1] = 1}. + * @param padding The type of padding algorithm to use. + * @param options carries optional attribute values + * @param data type for {@code Conv} output and operands + * @return a new instance of Conv + */ + public Conv conv(Operand input, Operand filter, List strides, + String padding, Conv.Options... options) { + return Conv.create(scope, input, filter, strides, padding, options); + } + + /** + * Computes the gradients of convolution with respect to the filter. + * + * @param data type for {@code output} output + * @param input 4-D with shape {@code [batch, in_height, in_width, in_channels]}. + * @param filter 4-D with shape {@code [filter_height, filter_width, in_channels, out_channels]}. + * Only shape of tensor is used. + * @param outBackprop 4-D with shape {@code [batch, out_height, out_width, out_channels]}. + * Gradients w.r.t. the output of the convolution. + * @param strides The stride of the sliding window for each dimension of the input + * of the convolution. Must be in the same order as the dimension specified with + * format. + * @param padding The type of padding algorithm to use. + * @param options carries optional attribute values + * @param data type for {@code Conv2DBackpropFilterV2} output and operands + * @return a new instance of Conv2DBackpropFilterV2 + */ + public Conv2DBackpropFilterV2 conv2DBackpropFilterV2(Operand input, + Operand filter, Operand outBackprop, List strides, String padding, + Conv2DBackpropFilterV2.Options... options) { + return Conv2DBackpropFilterV2.create(scope, input, filter, outBackprop, strides, padding, options); + } + + /** + * Computes the gradients of convolution with respect to the input. + * + * @param data type for {@code output} output + * @param input 4-D with shape {@code [batch, in_height, in_width, in_channels]}. + * Only shape of tensor is used. + * @param filter 4-D with shape + * {@code [filter_height, filter_width, in_channels, out_channels]}. + * @param outBackprop 4-D with shape {@code [batch, out_height, out_width, out_channels]}. + * Gradients w.r.t. the output of the convolution. + * @param strides The stride of the sliding window for each dimension of the input + * of the convolution. Must be in the same order as the dimension specified with + * format. + * @param padding The type of padding algorithm to use. + * @param options carries optional attribute values + * @param data type for {@code Conv2DBackpropInputV2} output and operands + * @return a new instance of Conv2DBackpropInputV2 + */ + public Conv2DBackpropInputV2 conv2DBackpropInputV2(Operand input, + Operand filter, Operand outBackprop, List strides, String padding, + Conv2DBackpropInputV2.Options... options) { + return Conv2DBackpropInputV2.create(scope, input, filter, outBackprop, strides, padding, options); + } + /** * The CopyToMesh operation * * @param data type for {@code output} output * @param input The input value - * @param layout The value of the layout attribute - * @param options carries optional attribute values + * @param mesh The value of the mesh attribute * @param data type for {@code CopyToMesh} output and operands * @return a new instance of CopyToMesh */ - public CopyToMesh copyToMesh(Operand input, String layout, - CopyToMesh.Options... options) { - return CopyToMesh.create(scope, input, layout, options); + public CopyToMesh copyToMesh(Operand input, String mesh) { + return CopyToMesh.create(scope, input, mesh); + } + + /** + * The CopyToMeshGrad operation + * + * @param data type for {@code output} output + * @param input The input value + * @param forwardInput The forwardInput value + * @param data type for {@code CopyToMeshGrad} output and operands + * @return a new instance of CopyToMeshGrad + */ + public CopyToMeshGrad copyToMeshGrad(Operand input, + Operand forwardInput) { + return CopyToMeshGrad.create(scope, input, forwardInput); } /** @@ -2282,6 +2384,15 @@ public DestroyTemporaryVariable destroyTemporaryVariable(Op *

* *
+ *

Raises: + *

    + *
  • {@code InvalidArgumentError} in following cases: + *
      + *
    • If partitions is not in range {@code [0, num_partiions)}
    • + *
    • If {@code partitions.shape} does not match prefix of {@code data.shape} argument.
    • + *
    + *
  • + *
* * @param data type for {@code outputs} output * @param data The data value @@ -4009,8 +4120,9 @@ public ParallelDynamicStitch parallelDynamicStitch( /** * returns {@code f(inputs)}, where {@code f}'s body is placed and partitioned. - * - *

Selects between {@link StatefulPartitionedCall} and {@link StatelessPartitionedCall} based on the statefulness of the function arguments. + * Asynchronously executes a function, potentially across multiple devices but + * within a single process. The kernel places and partitions a given function's + * underlying graph, and executes each of the partitioned subgraphs as a function. * * @param args A list of input tensors. * @param Tout A list of output types. @@ -4018,8 +4130,7 @@ public ParallelDynamicStitch parallelDynamicStitch( * A function that takes 'args', a list of tensors, and returns 'output', * another list of tensors. Input and output types are specified by 'Tin' * and 'Tout'. The function body of f will be placed and partitioned across - * devices, setting this op apart from the regular Call op. This op is - * stateful. + * devices, setting this op apart from the regular Call op. * * @param options carries optional attribute values * @return a new instance of PartitionedCall @@ -4108,6 +4219,36 @@ public QuantizedReshape quantizedReshape(Operand tensor, return QuantizedReshape.create(scope, tensor, shape, inputMin, inputMax); } + /** + * The RaggedFillEmptyRows operation + * + * @param data type for {@code output_values} output + * @param valueRowids The valueRowids value + * @param values The values value + * @param nrows The nrows value + * @param defaultValue The defaultValue value + * @param data type for {@code RaggedFillEmptyRows} output and operands + * @return a new instance of RaggedFillEmptyRows + */ + public RaggedFillEmptyRows raggedFillEmptyRows(Operand valueRowids, + Operand values, Operand nrows, Operand defaultValue) { + return RaggedFillEmptyRows.create(scope, valueRowids, values, nrows, defaultValue); + } + + /** + * The RaggedFillEmptyRowsGrad operation + * + * @param data type for {@code d_values} output + * @param reverseIndexMap The reverseIndexMap value + * @param gradValues The gradValues value + * @param data type for {@code RaggedFillEmptyRowsGrad} output and operands + * @return a new instance of RaggedFillEmptyRowsGrad + */ + public RaggedFillEmptyRowsGrad raggedFillEmptyRowsGrad( + Operand reverseIndexMap, Operand gradValues) { + return RaggedFillEmptyRowsGrad.create(scope, reverseIndexMap, gradValues); + } + /** * Outputs the position of {@code value} in a permutation of [0, ..., max_index]. * Output values are a bijection of the {@code index} for any combination and {@code seed} and {@code max_index}. @@ -4119,12 +4260,13 @@ public QuantizedReshape quantizedReshape(Operand tensor, * @param index A scalar tensor or a vector of dtype {@code dtype}. The index (or indices) to be shuffled. Must be within [0, max_index]. * @param seed A tensor of dtype {@code Tseed} and shape [3] or [n, 3]. The random seed. * @param maxIndex A scalar tensor or vector of dtype {@code dtype}. The upper bound(s) of the interval (inclusive). + * @param options carries optional attribute values * @param data type for {@code RandomIndexShuffle} output and operands * @return a new instance of RandomIndexShuffle */ public RandomIndexShuffle randomIndexShuffle(Operand index, - Operand seed, Operand maxIndex) { - return RandomIndexShuffle.create(scope, index, seed, maxIndex); + Operand seed, Operand maxIndex, RandomIndexShuffle.Options... options) { + return RandomIndexShuffle.create(scope, index, seed, maxIndex, options); } /** @@ -4360,6 +4502,20 @@ public Relayout relayout(Operand input, String layout) { return Relayout.create(scope, input, layout); } + /** + * The RelayoutLike operation + * + * @param data type for {@code output} output + * @param input The input value + * @param layoutInput The layoutInput value + * @param data type for {@code RelayoutLike} output and operands + * @return a new instance of RelayoutLike + */ + public RelayoutLike relayoutLike(Operand input, + Operand layoutInput) { + return RelayoutLike.create(scope, input, layoutInput); + } + /** * Runs function {@code f} on a remote device indicated by {@code target}. * @@ -5275,7 +5431,7 @@ public ScatterMul scatterMul(Operand ref, * *

In Python, this scatter operation would look like this: *

-   *      indices = tf.constant([[0], [2]])
+   *      indices = tf.constant([[1], [3]])
    *      updates = tf.constant([[[5, 5, 5, 5], [6, 6, 6, 6],
    *                              [7, 7, 7, 7], [8, 8, 8, 8]],
    *                             [[5, 5, 5, 5], [6, 6, 6, 6],
@@ -5286,10 +5442,10 @@ public  ScatterMul scatterMul(Operand ref,
    *  
*

The resulting tensor would look like this: *

-   *  [[[5, 5, 5, 5], [6, 6, 6, 6], [7, 7, 7, 7], [8, 8, 8, 8]],
-   *   [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]],
+   *  [[[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]],
    *   [[5, 5, 5, 5], [6, 6, 6, 6], [7, 7, 7, 7], [8, 8, 8, 8]],
-   *   [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]]
+   *   [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]],
+   *   [[5, 5, 5, 5], [6, 6, 6, 6], [7, 7, 7, 7], [8, 8, 8, 8]]]
    *  
*

Note that on CPU, if an out of bound index is found, an error is returned. * On GPU, if an out of bound index is found, the index is ignored. @@ -5555,6 +5711,197 @@ public ScatterUpdate scatterUpdate(Operand ref, return ScatterUpdate.create(scope, ref, indices, updates, options); } + /** + * Computes the maximum along segments of a tensor. + * Read + * the section on segmentation + * for an explanation of segments. + *

Computes a tensor such that + * \(output_i = \max_j(data_j)\) where {@code max} is over {@code j} such + * that {@code segment_ids[j] == i}. + *

If the maximum is empty for a given segment ID {@code i}, it outputs the smallest + * possible value for the specific numeric type, + * {@code output[i] = numeric_limits::lowest()}. + *

Note: That this op is currently only supported with jit_compile=True. + *

Caution: On CPU, values in {@code segment_ids} are always validated to be sorted, + * and an error is thrown for indices that are not increasing. On GPU, this + * does not throw an error for unsorted indices. On GPU, out-of-order indices + * result in safe but unspecified behavior, which may include treating + * out-of-order indices as the same as a smaller following index. + *

The only difference with SegmentMax is the additional input {@code num_segments}. + * This helps in evaluating the output shape in compile time. + * {@code num_segments} should be consistent with segment_ids. + * e.g. Max(segment_ids) should be equal to {@code num_segments} - 1 for a 1-d segment_ids + * With inconsistent num_segments, the op still runs. only difference is, + * the output takes the size of num_segments irrespective of size of segment_ids and data. + * for num_segments less than expected output size, the last elements are ignored + * for num_segments more than the expected output size, last elements are assigned + * smallest possible value for the specific numeric type. + *

For example: + *

+ *
+ *
+ *

{@literal @}tf.function(jit_compile=True) + * ... def test(c): + * ... return tf.raw_ops.SegmentMaxV2(data=c, segment_ids=tf.constant([0, 0, 1]), num_segments=2) + * c = tf.constant([[1,2,3,4], [4, 3, 2, 1], [5,6,7,8]]) + * test(c).numpy() + * array([[4, 3, 3, 4], + * [5, 6, 7, 8]], dtype=int32) + *

+ *
+ *
+ * + * @param data type for {@code output} output + * @param data The data value + * @param segmentIds A 1-D tensor whose size is equal to the size of {@code data}'s + * first dimension. Values should be sorted and can be repeated. + * The values must be less than {@code num_segments}. + *

Caution: The values are always validated to be sorted on CPU, never validated + * on GPU. + * @param numSegments The numSegments value + * @param data type for {@code SegmentMaxV2} output and operands + * @return a new instance of SegmentMaxV2 + */ + public SegmentMaxV2 segmentMaxV2(Operand data, + Operand segmentIds, Operand numSegments) { + return SegmentMaxV2.create(scope, data, segmentIds, numSegments); + } + + /** + * Computes the minimum along segments of a tensor. + * Read + * the section on segmentation + * for an explanation of segments. + *

Computes a tensor such that + * \(output_i = \min_j(data_j)\) where {@code min} is over {@code j} such + * that {@code segment_ids[j] == i}. + *

If the minimum is empty for a given segment ID {@code i}, it outputs the largest + * possible value for the specific numeric type, + * {@code output[i] = numeric_limits::max()}. + *

Note: That this op is currently only supported with jit_compile=True. + *

Caution: On CPU, values in {@code segment_ids} are always validated to be sorted, + * and an error is thrown for indices that are not increasing. On GPU, this + * does not throw an error for unsorted indices. On GPU, out-of-order indices + * result in safe but unspecified behavior, which may include treating + * out-of-order indices as the same as a smaller following index. + *

The only difference with SegmentMin is the additional input {@code num_segments}. + * This helps in evaluating the output shape in compile time. + * {@code num_segments} should be consistent with segment_ids. + * e.g. Max(segment_ids) should be equal to {@code num_segments} - 1 for a 1-d segment_ids + * With inconsistent num_segments, the op still runs. only difference is, + * the output takes the size of num_segments irrespective of size of segment_ids and data. + * for num_segments less than expected output size, the last elements are ignored + * for num_segments more than the expected output size, last elements are assigned + * the largest possible value for the specific numeric type. + *

For example: + *

+ *
+ *
+ *

{@literal @}tf.function(jit_compile=True) + * ... def test(c): + * ... return tf.raw_ops.SegmentMinV2(data=c, segment_ids=tf.constant([0, 0, 1]), num_segments=2) + * c = tf.constant([[1,2,3,4], [4, 3, 2, 1], [5,6,7,8]]) + * test(c).numpy() + * array([[1, 2, 2, 1], + * [5, 6, 7, 8]], dtype=int32) + *

+ *
+ *
+ * + * @param data type for {@code output} output + * @param data The data value + * @param segmentIds A 1-D tensor whose size is equal to the size of {@code data}'s + * first dimension. Values should be sorted and can be repeated. + * The values must be less than {@code num_segments}. + *

Caution: The values are always validated to be sorted on CPU, never validated + * on GPU. + * @param numSegments The numSegments value + * @param data type for {@code SegmentMinV2} output and operands + * @return a new instance of SegmentMinV2 + */ + public SegmentMinV2 segmentMinV2(Operand data, + Operand segmentIds, Operand numSegments) { + return SegmentMinV2.create(scope, data, segmentIds, numSegments); + } + + /** + * Computes the product along segments of a tensor. + * Read + * the section on segmentation + * for an explanation of segments. + *

Computes a tensor such that + * \(output_i = \prod_j data_j\) where the product is over {@code j} such + * that {@code segment_ids[j] == i}. + *

If the product is empty for a given segment ID {@code i}, {@code output[i] = 1}. + *

Note: That this op is currently only supported with jit_compile=True. + *

The only difference with SegmentProd is the additional input {@code num_segments}. + * This helps in evaluating the output shape in compile time. + * {@code num_segments} should be consistent with segment_ids. + * e.g. Max(segment_ids) - 1 should be equal to {@code num_segments} for a 1-d segment_ids + * With inconsistent num_segments, the op still runs. only difference is, + * the output takes the size of num_segments irrespective of size of segment_ids and data. + * for num_segments less than expected output size, the last elements are ignored + * for num_segments more than the expected output size, last elements are assigned 1. + *

For example: + *

+ *
+ *
+ *

{@literal @}tf.function(jit_compile=True) + * ... def test(c): + * ... return tf.raw_ops.SegmentProdV2(data=c, segment_ids=tf.constant([0, 0, 1]), num_segments=2) + * c = tf.constant([[1,2,3,4], [4, 3, 2, 1], [5,6,7,8]]) + * test(c).numpy() + * array([[4, 6, 6, 4], + * [5, 6, 7, 8]], dtype=int32) + *

+ *
+ *
+ * + * @param data type for {@code output} output + * @param data The data value + * @param segmentIds A 1-D tensor whose size is equal to the size of {@code data}'s + * first dimension. Values should be sorted and can be repeated. + * The values must be less than {@code num_segments}. + *

Caution: The values are always validated to be sorted on CPU, never validated + * on GPU. + * @param numSegments The numSegments value + * @param data type for {@code SegmentProdV2} output and operands + * @return a new instance of SegmentProdV2 + */ + public SegmentProdV2 segmentProdV2(Operand data, + Operand segmentIds, Operand numSegments) { + return SegmentProdV2.create(scope, data, segmentIds, numSegments); + } + + /** + * Computes the sum along segments of a tensor. + * Read + * the section on segmentation + * for an explanation of segments. + *

Computes a tensor such that + * \(output_i = \sum_j data_j\) where sum is over {@code j} such + * that {@code segment_ids[j] == i}. + *

If the sum is empty for a given segment ID {@code i}, {@code output[i] = 0}. + *

Note that this op is currently only supported with jit_compile=True. + * + * + * @param data type for {@code output} output + * @param data The data value + * @param segmentIds A 1-D tensor whose size is equal to the size of {@code data}'s + * first dimension. Values should be sorted and can be repeated. + * The values must be less than {@code num_segments}. + *

Caution: The values are always validated to be sorted on CPU, never validated + * on GPU. + * @param numSegments The numSegments value + * @param data type for {@code SegmentSumV2} output and operands + * @return a new instance of SegmentSumV2 + */ + public SegmentSumV2 segmentSumV2(Operand data, + Operand segmentIds, Operand numSegments) { + return SegmentSumV2.create(scope, data, segmentIds, numSegments); + } + /** * The SelectV2 operation * @@ -5638,7 +5985,8 @@ public SetDiff1d setDiff1d(Operand * and {@code set_shape}. The last dimension contains values in a set, duplicates are * allowed but ignored. *

If {@code validate_indices} is {@code True}, this op validates the order and range of {@code set} - * indices. + * indices. Setting is to {@code False} while passing invalid arguments results in + * undefined behavior. * * @param setIndices 2D {@code Tensor}, indices of a {@code SparseTensor}. * @param setValues 1D {@code Tensor}, values of a {@code SparseTensor}. @@ -5917,6 +6265,72 @@ public SpaceToBatchNd spaceToBatchNd(Operand input, return SpaceToBatchNd.create(scope, input, blockShape, paddings); } + /** + * Computes gradients for SparseSegmentMean. + * Returns tensor "output" with same shape as grad, except for dimension 0 whose + * value is the number of unique indexes in "indices". Also returns vector + * "sorted_unique_indices" containing the corresponding indexes from "indices". + * + * @param data type for {@code output} output + * @param data type for {@code sorted_unique_indices} output + * @param grad gradient propagated to the SparseSegmentMean op. + * @param indices indices passed to the corresponding SparseSegmentMean op. + * @param segmentIds segment_ids passed to the corresponding SparseSegmentMean op. + * @param denseOutputDim0 dimension 0 of "data" passed to SparseSegmentMean op. + * @param data type for {@code SparseSegmentMeanGradV2} output and operands + * @param data type for {@code SparseSegmentMeanGradV2} output and operands + * @return a new instance of SparseSegmentMeanGradV2 + */ + public SparseSegmentMeanGradV2 sparseSegmentMeanGradV2( + Operand grad, Operand indices, Operand segmentIds, + Operand denseOutputDim0) { + return SparseSegmentMeanGradV2.create(scope, grad, indices, segmentIds, denseOutputDim0); + } + + /** + * Computes gradients for SparseSegmentSqrtN. + * Returns tensor "output" with same shape as grad, except for dimension 0 whose + * value is the number of unique indexes in "indices". Also returns vector + * "sorted_unique_indices" containing the corresponding indexes from "indices". + * + * @param data type for {@code output} output + * @param data type for {@code sorted_unique_indices} output + * @param grad gradient propagated to the SparseSegmentSqrtN op. + * @param indices indices passed to the corresponding SparseSegmentSqrtN op. + * @param segmentIds segment_ids passed to the corresponding SparseSegmentSqrtN op. + * @param denseOutputDim0 dimension 0 of "data" passed to SparseSegmentSqrtN op. + * @param data type for {@code SparseSegmentSqrtNGradV2} output and operands + * @param data type for {@code SparseSegmentSqrtNGradV2} output and operands + * @return a new instance of SparseSegmentSqrtNGradV2 + */ + public SparseSegmentSqrtNGradV2 sparseSegmentSqrtNGradV2( + Operand grad, Operand indices, Operand segmentIds, + Operand denseOutputDim0) { + return SparseSegmentSqrtNGradV2.create(scope, grad, indices, segmentIds, denseOutputDim0); + } + + /** + * Computes gradients for SparseSegmentSum. + * Returns tensor "output" with same shape as grad, except for dimension 0 whose + * value is the number of unique indexes in "indices". Also returns vector + * "sorted_unique_indices" containing the corresponding indexes from "indices". + * + * @param data type for {@code output} output + * @param data type for {@code sorted_unique_indices} output + * @param grad gradient propagated to the SparseSegmentSum op. + * @param indices indices passed to the corresponding SparseSegmentSum op. + * @param segmentIds segment_ids passed to the corresponding SparseSegmentSum op. + * @param denseOutputDim0 dimension 0 of "data" passed to SparseSegmentSum op. + * @param data type for {@code SparseSegmentSumGradV2} output and operands + * @param data type for {@code SparseSegmentSumGradV2} output and operands + * @return a new instance of SparseSegmentSumGradV2 + */ + public SparseSegmentSumGradV2 sparseSegmentSumGradV2( + Operand grad, Operand indices, Operand segmentIds, + Operand denseOutputDim0) { + return SparseSegmentSumGradV2.create(scope, grad, indices, segmentIds, denseOutputDim0); + } + /** * Splits a tensor into {@code num_split} tensors along one dimension. * @@ -6141,7 +6555,8 @@ public StatefulIf statefulIf(Operand cond, Iterable> * @return a new instance of StatefulPartitionedCall */ public StatefulPartitionedCall statefulPartitionedCall(Iterable> args, - List> Tout, ConcreteFunction f, PartitionedCall.Options... options) { + List> Tout, ConcreteFunction f, + StatefulPartitionedCall.Options... options) { return StatefulPartitionedCall.create(scope, args, Tout, f, options); } @@ -6204,28 +6619,6 @@ public StatelessIf statelessIf(Operand cond, Iterable - * A function that takes 'args', a list of tensors, and returns 'output', - * another list of tensors. Input and output types are specified by 'Tin' - * and 'Tout'. The function body of f will be placed and partitioned across - * devices, setting this op apart from the regular Call op. - * - * @param options carries optional attribute values - * @return a new instance of StatelessPartitionedCall - */ - public StatelessPartitionedCall statelessPartitionedCall(Iterable> args, - List> Tout, ConcreteFunction f, PartitionedCall.Options... options) { - return StatelessPartitionedCall.create(scope, args, Tout, f, options); - } - /** * output = input; While (Cond(output)) { output = Body(output) } * @@ -6605,6 +6998,23 @@ public SwitchCond switchCond(Operand data, Operand data type for {@code output} output + * @param inputs A tensor which represents the full shape of partitioned tensors. + * @param numSplits The value of the numSplits attribute + * @param partitionDims A list of integers describing how each dimension is partitioned. Emptiness + * indicates the inputs are replicated. + * @param data type for {@code TPUPartitionedOutputV2} output and operands + * @return a new instance of TPUPartitionedOutputV2 + */ + public TPUPartitionedOutputV2 tPUPartitionedOutputV2(Operand inputs, + Long numSplits, List partitionDims) { + return TPUPartitionedOutputV2.create(scope, inputs, numSplits, partitionDims); + } + /** * Returns a tensor that may be mutated, but only persists within a single step. * This is an experimental op for internal use only and it is possible to use this @@ -6665,7 +7075,9 @@ public TensorArrayClose tensorArrayClose(Operand handle) { * (n0 x d0 x d1 x ...), (n1 x d0 x d1 x ...), ..., (n(T-1) x d0 x d1 x ...) * *

and concatenates them into a Tensor of shape: - *

{@code (n0 + n1 + ... + n(T-1) x d0 x d1 x ...)} + *

+   *  (n0 + n1 + ... + n(T-1) x d0 x d1 x ...)
+   *  
*

All elements must have the same shape (excepting the first dimension). * * @param data type for {@code value} output @@ -6825,14 +7237,22 @@ public TensorArraySize tensorArraySize(Operand handle, /** * Split the data from the input value into TensorArray elements. * Assuming that {@code lengths} takes on values - *

{@code (n0, n1, ..., n(T-1))} + *

+   *  (n0, n1, ..., n(T-1))
+   *  
*

and that {@code value} has shape - *

{@code (n0 + n1 + ... + n(T-1) x d0 x d1 x ...)}, + *

+   *  (n0 + n1 + ... + n(T-1) x d0 x d1 x ...),
+   *  
*

this splits values into a TensorArray with T tensors. *

TensorArray index t will be the subtensor of values with starting position - *

{@code (n0 + n1 + ... + n(t-1), 0, 0, ...)} + *

+   *  (n0 + n1 + ... + n(t-1), 0, 0, ...)
+   *  
*

and having size - *

{@code nt x d0 x d1 x ...} + *

+   *  nt x d0 x d1 x ...
+   *  
* * @param handle The handle to a TensorArray. * @param value The concatenated tensor to write to the TensorArray. @@ -6968,7 +7388,10 @@ public TensorListGather tensorListGather( } /** - * The TensorListGetItem operation + * Returns the item in the list with the given index. + * input_handle: the list + * index: the position in the list from which an element will be retrieved + * item: the element at that position * * @param data type for {@code item} output * @param inputHandle The inputHandle value @@ -7123,16 +7546,21 @@ public TensorListScatterIntoExistingList tensorListScatterIntoExistingList( } /** - * The TensorListSetItem operation + * Sets the index-th position of the list to contain the given tensor. + * input_handle: the list + * index: the position in the list to which the tensor will be assigned + * item: the element to be assigned to that position + * output_handle: the new list, with the element in the proper position * * @param inputHandle The inputHandle value * @param index The index value * @param item The item value + * @param options carries optional attribute values * @return a new instance of TensorListSetItem */ public TensorListSetItem tensorListSetItem(Operand inputHandle, - Operand index, Operand item) { - return TensorListSetItem.create(scope, inputHandle, index, item); + Operand index, Operand item, TensorListSetItem.Options... options) { + return TensorListSetItem.create(scope, inputHandle, index, item, options); } /** @@ -7574,8 +8002,16 @@ public Tile tile(Operand input, OperandNote: the timestamp is computed when the op is executed, not when it is added - * to the graph. + *

Common usages include: + *

    + *
  • Logging
  • + *
  • Providing a random number seed
  • + *
  • Debugging graph execution
  • + *
  • Generating timing information, mainly through comparison of timestamps
  • + *
+ *

Note: In graph mode, the timestamp is computed when the op is executed, + * not when it is added to the graph. In eager mode, the timestamp is computed + * when the op is eagerly executed. * * @return a new instance of Timestamp */ @@ -7806,7 +8242,7 @@ public Unique unique(Operand x, *

For example: *

    *  x = tf.constant([1, 1, 2, 4, 4, 4, 7, 8, 8])
-   *  y, idx, count = UniqueWithCountsV2(x, axis = [0])
+   *  y, idx, count = tf.raw_ops.UniqueWithCountsV2(x=x, axis = [0])
    *  y ==> [1, 2, 4, 7, 8]
    *  idx ==> [0, 0, 1, 2, 2, 2, 3, 4, 4]
    *  count ==> [2, 1, 3, 1, 2]
@@ -7816,7 +8252,7 @@ public  Unique unique(Operand x,
    *  x = tf.constant([[1, 0, 0],
    *                  [1, 0, 0],
    *                  [2, 0, 0]])
-   *  y, idx, count = UniqueWithCountsV2(x, axis=[0])
+   *  y, idx, count = tf.raw_ops.UniqueWithCountsV2(x=x, axis=[0])
    *  y ==> [[1, 0, 0],
    *         [2, 0, 0]]
    *  idx ==> [0, 0, 1]
@@ -7827,7 +8263,7 @@ public  Unique unique(Operand x,
    *  x = tf.constant([[1, 0, 0],
    *                  [1, 0, 0],
    *                  [2, 0, 0]])
-   *  y, idx, count = UniqueWithCountsV2(x, axis=[1])
+   *  y, idx, count = tf.raw_ops.UniqueWithCountsV2(x=x, axis=[1])
    *  y ==> [[1, 0],
    *         [1, 0],
    *         [2, 0]]
@@ -7862,7 +8298,7 @@ public  UniqueWithCounts uniqueWithCounts(Operand
    *  

For example: *

    *  x = tf.constant([1, 1, 2, 4, 4, 4, 7, 8, 8])
-   *  y, idx, count = UniqueWithCountsV2(x, axis = [0])
+   *  y, idx, count = tf.raw_ops.UniqueWithCountsV2(x=x, axis = [0])
    *  y ==> [1, 2, 4, 7, 8]
    *  idx ==> [0, 0, 1, 2, 2, 2, 3, 4, 4]
    *  count ==> [2, 1, 3, 1, 2]
@@ -7872,7 +8308,7 @@ public  UniqueWithCounts uniqueWithCounts(Operand
    *  x = tf.constant([[1, 0, 0],
    *                  [1, 0, 0],
    *                  [2, 0, 0]])
-   *  y, idx, count = UniqueWithCountsV2(x, axis=[0])
+   *  y, idx, count = tf.raw_ops.UniqueWithCountsV2(x=x, axis=[0])
    *  y ==> [[1, 0, 0],
    *         [2, 0, 0]]
    *  idx ==> [0, 0, 1]
@@ -7883,7 +8319,7 @@ public  UniqueWithCounts uniqueWithCounts(Operand
    *  x = tf.constant([[1, 0, 0],
    *                  [1, 0, 0],
    *                  [2, 0, 0]])
-   *  y, idx, count = UniqueWithCountsV2(x, axis=[1])
+   *  y, idx, count = tf.raw_ops.UniqueWithCountsV2(x=x, axis=[1])
    *  y ==> [[1, 0],
    *         [1, 0],
    *         [2, 0]]
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/QuantizationOps.java b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/QuantizationOps.java
index ea6c39d28c4..e0302dd0252 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/QuantizationOps.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/QuantizationOps.java
@@ -175,8 +175,11 @@ public  Dequantize dequantize(Operand i
   }
 
   /**
-   * Fake-quantize the 'inputs' tensor, type float to 'outputs' tensor of same type.
-   *  Attributes
+   * Fake-quantize the 'inputs' tensor, type float to 'outputs' tensor of same shape and type.
+   *  Quantization is called fake since the output is still in floating point.
+   *  The API converts inputs into values within the range [min and max] and returns
+   *  as output.
+   *  

Attributes *

    *
  • {@code [min; max]} define the clamping range for the {@code inputs} data.
  • *
  • {@code inputs} values are quantized into the quantization range ( @@ -195,7 +198,27 @@ public Dequantize dequantize(Operand i *
  • If {@code min <= 0 <= max}: {@code scale = (max - min) / (2^num_bits - 1) }, * {@code min_adj = scale * round(min / scale)} and {@code max_adj = max + min_adj - min}.
  • *
- *

Quantization is called fake since the output is still in floating point. + *

Examples + *

+   *
+   *  inp = tf.constant ([10.03, -10.23, 3])
+   *  out = tf.quantization.fake_quant_with_min_max_args(inp, min=-5, max=5,
+   *                                                     num_bits=16)
+   *  print(out)
+   *
+   *  #  Output:
+   *  #  tf.Tensor([ 4.9999237 -5.0000763  3.0000763], shape=(3,), dtype=float32)
+   *  
+ *

Raises: + *

    + *
  • InvalidArgumentError: + *
      + *
    • If num_bits are outside of range [2, 16].
    • + *
    • If min >= max.
    • + *
    + *
  • + *
  • ValueError: If {@code inputs} are of any other type than float32.
  • + *
* * @param inputs The inputs value * @param options carries optional attribute values diff --git a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/TpuOps.java b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/TpuOps.java index 60ea69e2b83..3e6346d3ef4 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/TpuOps.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/TpuOps.java @@ -29,7 +29,6 @@ import org.tensorflow.op.tpu.ConfigureTPUEmbeddingMemory; import org.tensorflow.op.tpu.ConnectTPUEmbeddingHosts; import org.tensorflow.op.tpu.DTensorRestore; -import org.tensorflow.op.tpu.DTensorShardedPrefix; import org.tensorflow.op.tpu.Execute; import org.tensorflow.op.tpu.ExecuteAndUpdateVariables; import org.tensorflow.op.tpu.ExecuteTPUEmbeddingPartitioner; @@ -116,10 +115,12 @@ public CompileSucceededAssert compileSucceededAssert(Operand compilatio /** * An op that sets up the centralized structures for a distributed TPU system. * + * @param options carries optional attribute values * @return a new instance of ConfigureAndInitializeGlobalTPU */ - public ConfigureAndInitializeGlobalTPU configureAndInitializeGlobalTPU() { - return ConfigureAndInitializeGlobalTPU.create(scope); + public ConfigureAndInitializeGlobalTPU configureAndInitializeGlobalTPU( + ConfigureAndInitializeGlobalTPU.Options... options) { + return ConfigureAndInitializeGlobalTPU.create(scope, options); } /** @@ -180,23 +181,6 @@ public DTensorRestore dTensorRestore(Operand prefix, Operand t return DTensorRestore.create(scope, prefix, tensorNames, shapeAndSlices, inputShapes, inputLayouts, dtypes); } - /** - * The DTensorShardedPrefix operation - * - * @param prefix The prefix value - * @param tensorNames The tensorNames value - * @param shapeAndSlices The shapeAndSlices value - * @param mesh The mesh value - * @param layouts The layouts value - * @param tensors The tensors value - * @return a new instance of DTensorShardedPrefix - */ - public DTensorShardedPrefix dTensorShardedPrefix(Operand prefix, - Operand tensorNames, Operand shapeAndSlices, Operand mesh, - Operand layouts, Iterable> tensors) { - return DTensorShardedPrefix.create(scope, prefix, tensorNames, shapeAndSlices, mesh, layouts, tensors); - } - /** * Op that loads and executes a TPU program on a TPU device. * For the internal use of the distributed TPU compiler. diff --git a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/XlaOps.java b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/XlaOps.java index 3523c2e78dd..1136fb98bf1 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/XlaOps.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/XlaOps.java @@ -21,48 +21,9 @@ import org.tensorflow.ConcreteFunction; import org.tensorflow.Operand; import org.tensorflow.ndarray.Shape; -import org.tensorflow.op.xla.AllReduce; -import org.tensorflow.op.xla.BroadcastHelper; -import org.tensorflow.op.xla.ClusterOutput; -import org.tensorflow.op.xla.Conv; -import org.tensorflow.op.xla.CustomCall; -import org.tensorflow.op.xla.Dequantize; -import org.tensorflow.op.xla.Dot; -import org.tensorflow.op.xla.DynamicSlice; -import org.tensorflow.op.xla.DynamicUpdateSlice; -import org.tensorflow.op.xla.Einsum; -import org.tensorflow.op.xla.Gather; -import org.tensorflow.op.xla.If; -import org.tensorflow.op.xla.KeyValueSort; -import org.tensorflow.op.xla.OptimizationBarrier; -import org.tensorflow.op.xla.Pad; -import org.tensorflow.op.xla.Recv; -import org.tensorflow.op.xla.Reduce; -import org.tensorflow.op.xla.ReduceScatter; -import org.tensorflow.op.xla.ReduceWindow; -import org.tensorflow.op.xla.RemoveDynamicDimensionSize; -import org.tensorflow.op.xla.ReplicaId; -import org.tensorflow.op.xla.RngBitGenerator; -import org.tensorflow.op.xla.Scatter; -import org.tensorflow.op.xla.SelectAndScatter; -import org.tensorflow.op.xla.SelfAdjointEig; -import org.tensorflow.op.xla.Send; -import org.tensorflow.op.xla.SetDynamicDimensionSize; -import org.tensorflow.op.xla.Sharding; -import org.tensorflow.op.xla.Sort; -import org.tensorflow.op.xla.SpmdFullToShardShape; -import org.tensorflow.op.xla.SpmdShardToFullShape; -import org.tensorflow.op.xla.Svd; -import org.tensorflow.op.xla.While; import org.tensorflow.op.xla.XlaHostCompute; -import org.tensorflow.op.xla.XlaLaunch; import org.tensorflow.op.xla.XlaRecvFromHost; import org.tensorflow.op.xla.XlaSendToHost; -import org.tensorflow.op.xla.XlaSetBound; -import org.tensorflow.op.xla.XlaVariadicReduce; -import org.tensorflow.op.xla.XlaVariadicSort; -import org.tensorflow.types.TInt32; -import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; /** @@ -80,630 +41,6 @@ public final class XlaOps { this.ops = ops; } - /** - * Wraps the XLA AllReduce operator - * documented at https://www.tensorflow.org/xla/operation_semantics#allreduce. - * - * @param data type for {@code output} output - * @param input Array or a non-empty tuple of arrays to reduce across replicas. - * @param groupAssignment Groups between which the reductions are performed. - * @param reduceOp Reduction computation. - * @param mode group mode. - * CrossReplica: group_assignment contains replica_id. Each group contains the - * replicas for the current partition. - * CrossReplicaAndPartition: group_assignment contains replica_id. Each group - * contains the replicas for all partitions. - * @param data type for {@code XlaAllReduce} output and operands - * @return a new instance of AllReduce - */ - public AllReduce allReduce(Operand input, - Operand groupAssignment, String reduceOp, String mode) { - return AllReduce.create(scope, input, groupAssignment, reduceOp, mode); - } - - /** - * Helper operator for performing XLA-style broadcasts - * Broadcasts {@code lhs} and {@code rhs} to the same rank, by adding size 1 dimensions to - * whichever of {@code lhs} and {@code rhs} has the lower rank, using XLA's broadcasting rules - * for binary operators. - * - * @param data type for {@code lhs_output} output - * @param lhs the LHS input tensor - * @param rhs the RHS input tensor - * @param broadcastDims an XLA-style broadcast dimension specification - * @param data type for {@code XlaBroadcastHelper} output and operands - * @return a new instance of BroadcastHelper - */ - public BroadcastHelper broadcastHelper(Operand lhs, Operand rhs, - Operand broadcastDims) { - return BroadcastHelper.create(scope, lhs, rhs, broadcastDims); - } - - /** - * Operator that connects the output of an XLA computation to other consumer graph nodes. - * - * @param data type for {@code outputs} output - * @param input The input value - * @param data type for {@code XlaClusterOutput} output and operands - * @return a new instance of ClusterOutput - */ - public ClusterOutput clusterOutput(Operand input) { - return ClusterOutput.create(scope, input); - } - - /** - * Wraps the XLA ConvGeneralDilated operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#conv_convolution - * . - * - * @param data type for {@code output} output - * @param lhs input tensor - * @param rhs kernel tensor - * @param windowStrides inter-window strides - * @param padding padding to apply at the start and end of each input dimensions - * @param lhsDilation dilation to apply between input elements - * @param rhsDilation dilation to apply between kernel elements - * @param featureGroupCount number of feature groups for grouped convolution. - * @param dimensionNumbers serialized xla::ConvolutionDimensionNumbers proto. - * @param precisionConfig serialized xla::PrecisionConfig proto. - * @param preferredElementType type of the tensor. - * @param options carries optional attribute values - * @param data type for {@code XlaConvV2} output and operands - * @param data type for {@code XlaConvV2} output and operands - * @return a new instance of Conv - */ - public Conv conv(Operand lhs, - Operand rhs, Operand windowStrides, Operand padding, - Operand lhsDilation, Operand rhsDilation, Operand featureGroupCount, - String dimensionNumbers, String precisionConfig, Class preferredElementType, - Conv.Options... options) { - return Conv.create(scope, lhs, rhs, windowStrides, padding, lhsDilation, rhsDilation, featureGroupCount, dimensionNumbers, precisionConfig, preferredElementType, options); - } - - /** - * Wraps the XLA CustomCall operator - * documented at https://www.tensorflow.org/xla/operation_semantics#customcall. - * - * @param data type for {@code output} output - * @param args A list of {@code Tensor} with possibly different types. - * @param targetName Name of the function. A call instruction will be emitted which - * targets this symbol name. - * @param backendConfig String, used to encode serialized metadata to the backend. - * @param dtype Output tensor data type. - * @param shape Output tensor shape. - * @param data type for {@code XlaCustomCall} output and operands - * @return a new instance of CustomCall - */ - public CustomCall customCall(Iterable> args, String targetName, - String backendConfig, Class dtype, Shape shape) { - return CustomCall.create(scope, args, targetName, backendConfig, dtype, shape); - } - - /** - * Takes the packed uint32 input and unpacks the input to uint8 to do - * Dequantization on device. - * - * @param input Input tensors whose types is uint32, shape is [d0, ..., dn]. - * @param minRange The minimum scalar value possibly produced for the input. - * @param maxRange The maximum scalar value possibly produced for the input. - * @param mode String to determine the dequantize mode in {"MIN_COMBINED", "MIN_FIRST", "SCALED"}. - * @param transposeOutput Boolean to determine if output is transposed. transpose_output - * is faster when input is large and rank of input is higher than 1. - * @return a new instance of Dequantize - */ - public Dequantize dequantize(Operand input, Float minRange, Float maxRange, - String mode, Boolean transposeOutput) { - return Dequantize.create(scope, input, minRange, maxRange, mode, transposeOutput); - } - - /** - * Wraps the XLA DotGeneral operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#dotgeneral - * . - * - * @param data type for {@code output} output - * @param lhs the LHS tensor - * @param rhs the RHS tensor - * @param dimensionNumbers a serialized xla::DotDimensionNumbers proto. - * @param precisionConfig a serialized xla::PrecisionConfig proto. - * @param preferredElementType The type of the tensor. - * @param data type for {@code XlaDotV2} output and operands - * @return a new instance of Dot - */ - public Dot dot(Operand lhs, Operand rhs, - String dimensionNumbers, String precisionConfig, Class preferredElementType) { - return Dot.create(scope, lhs, rhs, dimensionNumbers, precisionConfig, preferredElementType); - } - - /** - * Wraps the XLA DynamicSlice operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#dynamicslice - * . - *

DynamicSlice extracts a sub-array from the input array at dynamic - * start_indices. The size of the slice in each dimension is passed in - * size_indices, which specify the end point of exclusive slice intervals in each - * dimension -- [start, start + size). The shape of start_indices must have rank 1, - * with dimension size equal to the rank of operand. - * - * @param data type for {@code output} output - * @param input A {@code Tensor} of type T. - * @param startIndices List of N integers containing the slice size for each - * dimension. Each value must be strictly greater than zero, and start + size - * must be less than or equal to the size of the dimension to avoid - * implementation defined behavior. - * @param sizeIndices The sizeIndices value - * @param data type for {@code XlaDynamicSlice} output and operands - * @param data type for {@code XlaDynamicSlice} output and operands - * @return a new instance of DynamicSlice - */ - public DynamicSlice dynamicSlice(Operand input, - Operand startIndices, Operand sizeIndices) { - return DynamicSlice.create(scope, input, startIndices, sizeIndices); - } - - /** - * Wraps the XLA DynamicUpdateSlice operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#dynamicupdateslice - * . - *

XlaDynamicUpdateSlice generates a result which is the value of the {@code input} - * operand, with a slice update overwritten at {@code indices}. The shape of {@code update} - * determines the shape of the sub-array of the result which is updated. The shape - * of indices must be rank == 1, with dimension size equal to the rank of {@code input}. - *

Handling of out-of-bounds slice indices is implementation-defined. - * - * @param data type for {@code output} output - * @param input A {@code Tensor} of type T. - * @param update A {@code Tensor} of type T. Same rank as {@code input}. - * @param indices A vector of indices into {@code input}. Must have length equal to the rank of - * {@code input}. - * @param data type for {@code XlaDynamicUpdateSlice} output and operands - * @return a new instance of DynamicUpdateSlice - */ - public DynamicUpdateSlice dynamicUpdateSlice(Operand input, - Operand update, Operand indices) { - return DynamicUpdateSlice.create(scope, input, update, indices); - } - - /** - * An op which supports basic einsum op with 2 inputs and 1 output. - * This op has better TPU performance since it doesn't have explicitly reshape and - * transpose operations as tf.einsum does. - * - * @param data type for {@code product} output - * @param a The a value - * @param b The b value - * @param equation The value of the equation attribute - * @param data type for {@code XlaEinsum} output and operands - * @return a new instance of Einsum - */ - public Einsum einsum(Operand a, Operand b, String equation) { - return Einsum.create(scope, a, b, equation); - } - - /** - * Wraps the XLA Gather operator documented at - * https://www.tensorflow.org/xla/operation_semantics#gather - * - * @param data type for {@code output} output - * @param operand The array we're gathering from. - * @param startIndices Array containing the starting indices of the slices we gather. - * @param sliceSizes slice_sizes[i] is the bounds for the slice on dimension i. - * @param dimensionNumbers A serialized xla::GatherDimensionNumbers proto. - * @param indicesAreSorted Boolean indicating if the indices are sorted. - * @param data type for {@code XlaGather} output and operands - * @param data type for {@code XlaGather} output and operands - * @return a new instance of Gather - */ - public Gather gather(Operand operand, - Operand startIndices, Operand sliceSizes, String dimensionNumbers, - Boolean indicesAreSorted) { - return Gather.create(scope, operand, startIndices, sliceSizes, dimensionNumbers, indicesAreSorted); - } - - /** - * output = cond ? then_branch(inputs) : else_branch(inputs). - * - * @param cond A boolean scalar. - * @param inputs A list of input tensors. - * @param thenBranch A function takes 'inputs' and returns a list of tensors, - * whose types are the same as what else_branch returns. - * @param elseBranch A function takes 'inputs' and returns a list of tensors. - * whose types are the same as what then_branch returns. - * @param Tout The value of the Tout attribute - * @return a new instance of If - */ - public If ifOp(Operand cond, Iterable> inputs, - ConcreteFunction thenBranch, ConcreteFunction elseBranch, List> Tout) { - return If.create(scope, cond, inputs, thenBranch, elseBranch, Tout); - } - - /** - * Wraps the XLA Sort operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#sort - * . - *

Sorts a tensor. Currently only sorts in ascending order are supported. - * - * @param data type for {@code sorted_keys} output - * @param data type for {@code sorted_values} output - * @param keys A {@code Tensor} of type K. - * @param values A {@code Tensor} of type V. - * @param data type for {@code XlaKeyValueSort} output and operands - * @param data type for {@code XlaKeyValueSort} output and operands - * @return a new instance of KeyValueSort - */ - public KeyValueSort keyValueSort(Operand keys, - Operand values) { - return KeyValueSort.create(scope, keys, values); - } - - /** - * Wraps the XLA OptimizationBarrier operator. - * Documented at https://www.tensorflow.org/xla/operation_semantics#optimizationbarrier. - * - * @param input A Tuple of Arrays of any type. - * @return a new instance of OptimizationBarrier - */ - public OptimizationBarrier optimizationBarrier(Iterable> input) { - return OptimizationBarrier.create(scope, input); - } - - /** - * Wraps the XLA Pad operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#pad - * . - * - * @param data type for {@code output} output - * @param input A {@code Tensor} of type T. - * @param paddingValue A scalar {@code Tensor} of type T. - * @param paddingLow the padding to apply at the start of each input dimensions. Must - * be a compile-time constant 1D tensor of length equal to rank of input. - * @param paddingHigh the padding to apply at the end of each input dimension. Must - * be a compile-time constant 1D tensor of length equal to rank of input. - * @param paddingInterior the padding to apply between each input element. Must - * be a compile-time constant 1D tensor of length equal to rank of input, - * containing only non-negative values. - * @param data type for {@code XlaPad} output and operands - * @param data type for {@code XlaPad} output and operands - * @return a new instance of Pad - */ - public Pad pad(Operand input, Operand paddingValue, - Operand paddingLow, Operand paddingHigh, Operand paddingInterior) { - return Pad.create(scope, input, paddingValue, paddingLow, paddingHigh, paddingInterior); - } - - /** - * Receives the named tensor from another XLA computation. Wraps the XLA Recv - * operator documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#recv . - * - * @param data type for {@code tensor} output - * @param dtype The type of the tensor. - * @param tensorName A string key that identifies the channel. - * @param shape The shape of the tensor. - * @param data type for {@code XlaRecv} output and operands - * @return a new instance of Recv - */ - public Recv recv(Class dtype, String tensorName, Shape shape) { - return Recv.create(scope, dtype, tensorName, shape); - } - - /** - * Wraps the XLA Reduce operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#reduce . - * - * @param data type for {@code output} output - * @param input the input tensor - * @param initValue a scalar representing the initial value for the reduction - * @param dimensionsToReduce dimension numbers over which to reduce - * @param reducer a reducer function to apply - * @param data type for {@code XlaReduce} output and operands - * @return a new instance of Reduce - */ - public Reduce reduce(Operand input, Operand initValue, - List dimensionsToReduce, ConcreteFunction reducer) { - return Reduce.create(scope, input, initValue, dimensionsToReduce, reducer); - } - - /** - * Wraps the XLA ReduceScatter operator - * documented at https://www.tensorflow.org/xla/operation_semantics#reducescatter. - * - * @param data type for {@code output} output - * @param input Array or a non-empty tuple of arrays to reduce across replicas. - * @param groupAssignment Groups between which the reductions are performed. - * @param scatterDimension Dimension to scatter. - * @param reduceOp Reduction computation. - * @param data type for {@code XlaReduceScatter} output and operands - * @return a new instance of ReduceScatter - */ - public ReduceScatter reduceScatter(Operand input, - Operand groupAssignment, Operand scatterDimension, String reduceOp) { - return ReduceScatter.create(scope, input, groupAssignment, scatterDimension, reduceOp); - } - - /** - * Wraps the XLA ReduceWindow operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#reducewindow . - * - * @param data type for {@code output} output - * @param input the input tensor - * @param initValue a scalar representing the initial value for the reduction - * @param windowDimensions the shape of the window - * @param windowStrides the inter-window strides - * @param baseDilations The baseDilations value - * @param windowDilations The windowDilations value - * @param padding the padding to apply at the start and end of each input dimensions - * @param computation a reducer function to apply - * @param data type for {@code XlaReduceWindow} output and operands - * @param data type for {@code XlaReduceWindow} output and operands - * @return a new instance of ReduceWindow - */ - public ReduceWindow reduceWindow(Operand input, - Operand initValue, Operand windowDimensions, Operand windowStrides, - Operand baseDilations, Operand windowDilations, Operand padding, - ConcreteFunction computation) { - return ReduceWindow.create(scope, input, initValue, windowDimensions, windowStrides, baseDilations, windowDilations, padding, computation); - } - - /** - * Inverse of XlaSetDynamicDimensionSize. - * Make an xla bounded dynamic dimension into a static dimension. The bound of the - * size of dimension {@code dim_index} becomes the static dimension size. - * - * @param data type for {@code output} output - * @param input The input value - * @param dimIndex The dimIndex value - * @param data type for {@code XlaRemoveDynamicDimensionSize} output and operands - * @return a new instance of RemoveDynamicDimensionSize - */ - public RemoveDynamicDimensionSize removeDynamicDimensionSize( - Operand input, Operand dimIndex) { - return RemoveDynamicDimensionSize.create(scope, input, dimIndex); - } - - /** - * Replica ID. - * - * @return a new instance of ReplicaId - */ - public ReplicaId replicaId() { - return ReplicaId.create(scope); - } - - /** - * Stateless PRNG bit generator. - * Wraps the XLA RngBitGenerator operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#rngbitgenerator. - * - * @param data type for {@code output} output - * @param algorithm The PRNG algorithm to use, one of - * tf.random.Algorithm.{PHILOX, THREEFRY, AUTO_SELECT}. - * @param initialState Initial state for the PRNG algorithm. For THREEFRY, it should be - * a u64[2] and for PHILOX a u64[3]. - * @param shape The output shape of the generated data. - * @param dtype The type of the tensor. - * @param data type for {@code XlaRngBitGenerator} output and operands - * @return a new instance of RngBitGenerator - */ - public RngBitGenerator rngBitGenerator(Operand algorithm, - Operand initialState, Operand shape, Class dtype) { - return RngBitGenerator.create(scope, algorithm, initialState, shape, dtype); - } - - /** - * Wraps the XLA Scatter operator documented at - * https://www.tensorflow.org/xla/operation_semantics#scatter. - * - * @param data type for {@code output} output - * @param operand Array to be scattered into. - * @param scatterIndices Array containing the starting indices of the slices that must - * be scattered to. - * @param updates Array containing the values that must be used for scattering. - * @param updateComputation Computation to be used for combining the existing values in - * the input array and the updates during scatter. - * @param dimensionNumbers A serialized xla::ScatterDimensionNumbers proto. - * @param indicesAreSorted Boolean indicating if the indices are sorted. - * @param data type for {@code XlaScatter} output and operands - * @return a new instance of Scatter - */ - public Scatter scatter(Operand operand, - Operand scatterIndices, Operand updates, - ConcreteFunction updateComputation, String dimensionNumbers, Boolean indicesAreSorted) { - return Scatter.create(scope, operand, scatterIndices, updates, updateComputation, dimensionNumbers, indicesAreSorted); - } - - /** - * Wraps the XLA SelectAndScatter operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#selectandscatter - * . - * - * @param data type for {@code output} output - * @param operand the input tensor - * @param windowDimensions the shape of the window - * @param windowStrides the inter-window strides - * @param padding the padding to apply at the start and end of each input dimensions - * @param source a tensor of values to scatter - * @param initValue a scalar representing the initial value for the output tensor - * @param select a selection function to apply - * @param scatter a scatter function to apply - * @param data type for {@code XlaSelectAndScatter} output and operands - * @param data type for {@code XlaSelectAndScatter} output and operands - * @return a new instance of SelectAndScatter - */ - public SelectAndScatter selectAndScatter( - Operand operand, Operand windowDimensions, Operand windowStrides, Operand padding, - Operand source, Operand initValue, ConcreteFunction select, ConcreteFunction scatter) { - return SelectAndScatter.create(scope, operand, windowDimensions, windowStrides, padding, source, initValue, select, scatter); - } - - /** - * Computes the eigen decomposition of a batch of self-adjoint matrices - * (Note: Only real inputs are supported). - *

Computes the eigenvalues and eigenvectors of the innermost N-by-N matrices in - * tensor such that tensor[...,:,:] * v[..., :,i] = e[..., i] * v[...,:,i], for - * i=0...N-1. - * - * @param data type for {@code w} output - * @param a the input tensor. - * @param lower a boolean specifies whether the calculation is done with the lower - * triangular part or the upper triangular part. - * @param maxIter maximum number of sweep update, i.e., the whole lower triangular - * part or upper triangular part based on parameter lower. Heuristically, it has - * been argued that approximately logN sweeps are needed in practice (Ref: Golub & - * van Loan "Matrix Computation"). - * @param epsilon the tolerance ratio. - * @param data type for {@code XlaSelfAdjointEig} output and operands - * @return a new instance of SelfAdjointEig - */ - public SelfAdjointEig selfAdjointEig(Operand a, Boolean lower, - Long maxIter, Float epsilon) { - return SelfAdjointEig.create(scope, a, lower, maxIter, epsilon); - } - - /** - * Sends the named tensor to another XLA computation. Wraps the XLA Send operator - * documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#send . - * - * @param tensor The tensor to send. - * @param tensorName A string key that identifies the channel. - * @return a new instance of Send - */ - public Send send(Operand tensor, String tensorName) { - return Send.create(scope, tensor, tensorName); - } - - /** - * Make a static dimension into a xla bounded dynamic dimension. - *

-   *      The current static dimension size will become the bound and the second
-   *      operand becomes the dynamic size of the dimension.
-   *  
- * - * @param data type for {@code output} output - * @param input The input value - * @param dimIndex The dimIndex value - * @param sizeOutput The sizeOutput value - * @param data type for {@code XlaSetDynamicDimensionSize} output and operands - * @return a new instance of SetDynamicDimensionSize - */ - public SetDynamicDimensionSize setDynamicDimensionSize(Operand input, - Operand dimIndex, Operand sizeOutput) { - return SetDynamicDimensionSize.create(scope, input, dimIndex, sizeOutput); - } - - /** - * An op which shards the input based on the given sharding attribute. It can - * selectively annotate a subset of tensor dimensions by skipping unspecified_dims, - * and the sharding annotation should be replicated in those dims. - * - * @param data type for {@code output} output - * @param input The input value - * @param options carries optional attribute values - * @param data type for {@code XlaSharding} output and operands - * @return a new instance of Sharding - */ - public Sharding sharding(Operand input, Sharding.Options... options) { - return Sharding.create(scope, input, options); - } - - /** - * Wraps the XLA Sort operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#sort - * . - *

Sorts a tensor. Currently only sorts in ascending order are supported. - * - * @param data type for {@code output} output - * @param input A {@code Tensor} of type T. - * @param data type for {@code XlaSort} output and operands - * @return a new instance of Sort - */ - public Sort sort(Operand input) { - return Sort.create(scope, input); - } - - /** - * An op used by XLA SPMD partitioner to switch from automatic partitioning to - * manual partitioning. It annotates the input (full-shape, to be automatically - * partitioned) with the same sharding used by manual partitioning, and outputs a - * shard-shaped tensor to be consumed by later manually-partitioned ops. If the - * shape is not evenly partitionable, the padding region will be masked with 0s. - * The conversion can happen partially in subgroups, by specifying the dim - * attribute, where only that dim will be converted. - * - * @param data type for {@code output} output - * @param input The input value - * @param manualSharding The value of the manualSharding attribute - * @param options carries optional attribute values - * @param data type for {@code XlaSpmdFullToShardShape} output and operands - * @return a new instance of SpmdFullToShardShape - */ - public SpmdFullToShardShape spmdFullToShardShape(Operand input, - String manualSharding, SpmdFullToShardShape.Options... options) { - return SpmdFullToShardShape.create(scope, input, manualSharding, options); - } - - /** - * An op used by XLA SPMD partitioner to switch from manual partitioning to - * automatic partitioning. It converts the shard-shaped, manually partitioned input - * into full-shaped tensor to be partitioned automatically with the same sharding - * used by manual partitioning. The conversion can happen partially in subgroups, - * by specifying the dim attribute, where only that dim will be converted. - * - * @param data type for {@code output} output - * @param input The input value - * @param manualSharding The value of the manualSharding attribute - * @param fullShape The value of the fullShape attribute - * @param options carries optional attribute values - * @param data type for {@code XlaSpmdShardToFullShape} output and operands - * @return a new instance of SpmdShardToFullShape - */ - public SpmdShardToFullShape spmdShardToFullShape(Operand input, - String manualSharding, Shape fullShape, SpmdShardToFullShape.Options... options) { - return SpmdShardToFullShape.create(scope, input, manualSharding, fullShape, options); - } - - /** - * Computes the eigen decomposition of a batch of self-adjoint matrices - * (Note: Only real inputs are supported). - *

Computes the eigenvalues and eigenvectors of the innermost M-by-N matrices in - * tensor such that tensor[...,:,:] = u[..., :, :] * Diag(s[..., :]) * Transpose(v[...,:,:]). - * - * @param data type for {@code s} output - * @param a the input tensor. - * @param maxIter maximum number of sweep update, i.e., the whole lower triangular - * part or upper triangular part based on parameter lower. Heuristically, it has - * been argued that approximately log(min (M, N)) sweeps are needed in practice - * (Ref: Golub & van Loan "Matrix Computation"). - * @param epsilon the tolerance ratio. - * @param precisionConfig a serialized xla::PrecisionConfig proto. - * @param data type for {@code XlaSvd} output and operands - * @return a new instance of Svd - */ - public Svd svd(Operand a, Long maxIter, Float epsilon, - String precisionConfig) { - return Svd.create(scope, a, maxIter, epsilon, precisionConfig); - } - - /** - * output = input; While (Cond(output)) { output = Body(output) } - * - * @param input A list of input tensors whose types are T. - * @param cond A function takes 'input' and returns a tensor. If the tensor is - * a scalar of non-boolean, the scalar is converted to a boolean - * according to the following rule: if the scalar is a numerical - * value, non-zero means True and zero means False; if the scalar is - * a string, non-empty means True and empty means False. If the - * tensor is not a scalar, non-emptiness means True and False - * otherwise. - * @param body A function that takes a list of tensors and returns another - * list of tensors. Both lists have the same types as specified by T. - * @return a new instance of While - */ - public While whileOp(Iterable> input, ConcreteFunction cond, ConcreteFunction body) { - return While.create(scope, input, cond, body); - } - /** * A pseudo-op to represent host-side computation in an XLA program. * @@ -724,22 +61,6 @@ public XlaHostCompute xlaHostCompute(Iterable> inputs, return XlaHostCompute.create(scope, inputs, Toutputs, ancestors, shapes, shapeInferenceGraph, key, options); } - /** - * XLA Launch Op. For use by the XLA JIT only. - * - * @param constants The constants value - * @param args The args value - * @param resources The resources value - * @param Tresults The value of the Tresults attribute - * @param function The value of the function attribute - * @return a new instance of XlaLaunch - */ - public XlaLaunch xlaLaunch(Iterable> constants, Iterable> args, - Iterable> resources, List> Tresults, - ConcreteFunction function) { - return XlaLaunch.create(scope, constants, args, resources, Tresults, function); - } - /** * An op to receive a tensor from the host. * output: the tensor that will be received from the host. @@ -773,58 +94,6 @@ public XlaSendToHost xlaSendToHost(Operand input, String key) { return XlaSendToHost.create(scope, input, key); } - /** - * Set a bound for the given input value as a hint to Xla compiler, - *

-   *      returns the same value.
-   *  
- * - * @param input The input value - * @param bound The bound value - * @return a new instance of XlaSetBound - */ - public XlaSetBound xlaSetBound(Operand input, Operand bound) { - return XlaSetBound.create(scope, input, bound); - } - - /** - * Wraps the variadic XLA Reduce operator. - * Semantics are documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#variadic_reduce. - *

This is an expanded version of XlaVariadicReduce, with support for - * operands of different dtypes, and improved shape inference. - * - * @param inputs the input tensor(s) - * @param initValues scalar initial value(s) for the reduction - * @param dimensionsToReduce dimension numbers over which to reduce - * @param reducer a reducer function to apply - * @return a new instance of XlaVariadicReduce - */ - public XlaVariadicReduce xlaVariadicReduce(Iterable> inputs, - Iterable> initValues, List dimensionsToReduce, ConcreteFunction reducer) { - return XlaVariadicReduce.create(scope, inputs, initValues, dimensionsToReduce, reducer); - } - - /** - * Wraps the XLA Sort operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#sort - * . - *

Sorts one or more tensors, with support for custom comparator, dimension, and - * is_stable attributes. - * - * @param inputs A list of {@code Tensor} of identical shape but possibly different types. - * @param dimension The dimension along which to sort. Must be a compile-time constant. - * @param comparator A comparator function to apply to 2*N scalars and returning a - * boolean. N is the number of sort inputs. If you want to sort in ascending - * order then the comparator should perform a less-than comparison. - * @param isStable Whether to use stable sort. - * @return a new instance of XlaVariadicSort - */ - public XlaVariadicSort xlaVariadicSort(Iterable> inputs, Operand dimension, - ConcreteFunction comparator, Boolean isStable) { - return XlaVariadicSort.create(scope, inputs, dimension, comparator, isStable); - } - /** * Get the parent {@link Ops} object. */ diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/Compute_func_Pointer_TF_OpKernelContext.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/Compute_func_Pointer_TF_OpKernelContext.java deleted file mode 100644 index e467f8748af..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/Compute_func_Pointer_TF_OpKernelContext.java +++ /dev/null @@ -1,19 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - -@Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class Compute_func_Pointer_TF_OpKernelContext extends FunctionPointer { - static { Loader.load(); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public Compute_func_Pointer_TF_OpKernelContext(Pointer p) { super(p); } - protected Compute_func_Pointer_TF_OpKernelContext() { allocate(); } - private native void allocate(); - public native void call(Pointer arg0, TF_OpKernelContext arg1); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/Create_func_TF_OpKernelConstruction.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/Create_func_TF_OpKernelConstruction.java deleted file mode 100644 index 0f82d6dd2cf..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/Create_func_TF_OpKernelConstruction.java +++ /dev/null @@ -1,48 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// Allocates a new kernel builder and returns a pointer to it. -// -// If non-null, TensorFlow will call create_func when it needs to instantiate -// the kernel. The pointer returned by create_func will be passed to -// compute_func and delete_func, thereby functioning as a "this" pointer for -// referring to kernel instances. -// -// The TF_OpKernelConstruction pointer passed to create_func is owned by -// TensorFlow and will be deleted once create_func returns. It must not be used -// after this. -// -// When TensorFlow needs to perform a computation with this kernel, it will -// call compute_func. This function will receive the pointer returned by -// create_func (or null if no create_func was provided), along with the inputs -// to the computation. -// -// The TF_OpKernelContext pointer received by compute_func is owned by -// TensorFlow and will be deleted once compute_func returns. It must not be used -// after this. -// -// Finally, when TensorFlow no longer needs the kernel, it will call -// delete_func if one is provided. This function will receive the pointer -// returned in `create_func` or nullptr if no `create_func` was provided. -// -// The caller should pass the result of this function to -// TF_RegisterKernelBuilder, which will take ownership of the pointer. If, for -// some reason, the kernel builder will not be registered, the caller should -// delete it with TF_DeleteKernelBuilder. -@Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class Create_func_TF_OpKernelConstruction extends FunctionPointer { - static { Loader.load(); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public Create_func_TF_OpKernelConstruction(Pointer p) { super(p); } - protected Create_func_TF_OpKernelConstruction() { allocate(); } - private native void allocate(); - public native Pointer call(TF_OpKernelConstruction arg0); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/Delete_func_Pointer.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/Delete_func_Pointer.java deleted file mode 100644 index b42c08f8e3f..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/Delete_func_Pointer.java +++ /dev/null @@ -1,19 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - -@Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class Delete_func_Pointer extends FunctionPointer { - static { Loader.load(); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public Delete_func_Pointer(Pointer p) { super(p); } - protected Delete_func_Pointer() { allocate(); } - private native void allocate(); - public native void call(Pointer arg0); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/GradFunc.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/GradFunc.java deleted file mode 100644 index 75bc9090bbb..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/GradFunc.java +++ /dev/null @@ -1,25 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -/** GradFunc is the signature for all gradient functions in GradOpRegistry. - * Implementations should add operations to compute the gradient outputs of - * 'op' (returned in 'grad_outputs') using 'scope' and 'grad_inputs'. */ -@Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class GradFunc extends FunctionPointer { - static { Loader.load(); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public GradFunc(Pointer p) { super(p); } - protected GradFunc() { allocate(); } - private native void allocate(); - public native @ByVal NativeStatus call(@Const @ByRef TF_Scope scope, @Const @ByRef NativeOperation op, - @Const @ByRef NativeOutputVector grad_inputs, - NativeOutputVector grad_outputs); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/GradOpRegistry.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/GradOpRegistry.java deleted file mode 100644 index 70d5ea8d9f6..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/GradOpRegistry.java +++ /dev/null @@ -1,48 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -/** GradOpRegistry maintains a static registry of gradient functions. - * Gradient functions are indexed in the registry by the forward op name (i.e. - * "MatMul" -> MatMulGrad func). */ -@Namespace("tensorflow::ops") @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class GradOpRegistry extends Pointer { - static { Loader.load(); } - /** Default native constructor. */ - public GradOpRegistry() { super((Pointer)null); allocate(); } - /** Native array allocator. Access with {@link Pointer#position(long)}. */ - public GradOpRegistry(long size) { super((Pointer)null); allocateArray(size); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public GradOpRegistry(Pointer p) { super(p); } - private native void allocate(); - private native void allocateArray(long size); - @Override public GradOpRegistry position(long position) { - return (GradOpRegistry)super.position(position); - } - @Override public GradOpRegistry getPointer(long i) { - return new GradOpRegistry((Pointer)this).offsetAddress(i); - } - - /** Registers 'func' as the gradient function for 'op'. - * Returns true if registration was successful, check fails otherwise. */ - public native @Cast("bool") boolean Register(@StdString BytePointer op, GradFunc func); - public native @Cast("bool") boolean Register(@StdString String op, GradFunc func); - - /** Sets 'func' to the gradient function for 'op' and returns Status OK if - * the gradient function for 'op' exists in the registry. - * Note that 'func' can be null for ops that have registered no-gradient with - * the registry. - * Returns error status otherwise. */ - public native @ByVal NativeStatus Lookup(@StdString BytePointer op, @ByPtrPtr GradFunc func); - public native @ByVal NativeStatus Lookup(@StdString String op, @ByPtrPtr GradFunc func); - - /** Returns a pointer to the global gradient function registry. */ - public static native GradOpRegistry Global(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NameMap.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NameMap.java deleted file mode 100644 index 2c68dff2932..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NameMap.java +++ /dev/null @@ -1,41 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - -@Name("std::unordered_map") @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class NameMap extends Pointer { - static { Loader.load(); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public NameMap(Pointer p) { super(p); } - public NameMap() { allocate(); } - private native void allocate(); - public native @Name("operator =") @ByRef NameMap put(@ByRef NameMap x); - - public boolean empty() { return size() == 0; } - public native long size(); - - @Index public native Node get(@StdString BytePointer i); - public native NameMap put(@StdString BytePointer i, Node value); - - public native void erase(@ByVal Iterator pos); - public native @ByVal Iterator begin(); - public native @ByVal Iterator end(); - @NoOffset @Name("iterator") public static class Iterator extends Pointer { - public Iterator(Pointer p) { super(p); } - public Iterator() { } - - public native @Name("operator ++") @ByRef Iterator increment(); - public native @Name("operator ==") boolean equals(@ByRef Iterator it); - public native @Name("operator *().first") @MemberGetter @StdString BytePointer first(); - public native @Name("operator *().second") @MemberGetter @Const Node second(); - } - - public native long erase(@StdString BytePointer key); -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NativeGraphPointer.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NativeGraphPointer.java deleted file mode 100644 index bb1a44fd040..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NativeGraphPointer.java +++ /dev/null @@ -1,18 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -@Name("tensorflow::Graph") @Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class NativeGraphPointer extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public NativeGraphPointer() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public NativeGraphPointer(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NativeOperation.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NativeOperation.java deleted file mode 100644 index 547a77d3e54..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NativeOperation.java +++ /dev/null @@ -1,49 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -/** \addtogroup core - * \{ -

- * Represents a node in the computation graph. */ -@Name("tensorflow::Operation") @NoOffset @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class NativeOperation extends Pointer { - static { Loader.load(); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public NativeOperation(Pointer p) { super(p); } - /** Native array allocator. Access with {@link Pointer#position(long)}. */ - public NativeOperation(long size) { super((Pointer)null); allocateArray(size); } - private native void allocateArray(long size); - @Override public NativeOperation position(long position) { - return (NativeOperation)super.position(position); - } - @Override public NativeOperation getPointer(long i) { - return new NativeOperation((Pointer)this).offsetAddress(i); - } - - public NativeOperation() { super((Pointer)null); allocate(); } - private native void allocate(); - public NativeOperation(Node n) { super((Pointer)null); allocate(n); } - private native void allocate(Node n); - - - - - - - - - - public native Node node(); - - - - public native @Cast("bool") @Name("operator ==") boolean equals(@Const @ByRef NativeOperation other); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NativeOutput.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NativeOutput.java deleted file mode 100644 index 62699467943..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NativeOutput.java +++ /dev/null @@ -1,45 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -/** Represents a tensor value produced by an Operation. */ -@Name("tensorflow::Output") @NoOffset @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class NativeOutput extends Pointer { - static { Loader.load(); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public NativeOutput(Pointer p) { super(p); } - /** Native array allocator. Access with {@link Pointer#position(long)}. */ - public NativeOutput(long size) { super((Pointer)null); allocateArray(size); } - private native void allocateArray(long size); - @Override public NativeOutput position(long position) { - return (NativeOutput)super.position(position); - } - @Override public NativeOutput getPointer(long i) { - return new NativeOutput((Pointer)this).offsetAddress(i); - } - - public NativeOutput() { super((Pointer)null); allocate(); } - private native void allocate(); - public NativeOutput(Node n) { super((Pointer)null); allocate(n); } - private native void allocate(Node n); - public NativeOutput(Node n, int index) { super((Pointer)null); allocate(n, index); } - private native void allocate(Node n, int index); - public NativeOutput(@Const @ByRef NativeOperation op, int index) { super((Pointer)null); allocate(op, index); } - private native void allocate(@Const @ByRef NativeOperation op, int index); - - public native @ByVal NativeOperation op(); - public native Node node(); - public native @Cast("tensorflow::int32") int index(); - - public native @StdString BytePointer name(); - public native @Cast("bool") @Name("operator ==") boolean equals(@Const @ByRef NativeOutput other); - - -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NativeOutputVector.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NativeOutputVector.java deleted file mode 100644 index f54b83a9522..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NativeOutputVector.java +++ /dev/null @@ -1,79 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - -@Name("std::vector") @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class NativeOutputVector extends Pointer { - static { Loader.load(); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public NativeOutputVector(Pointer p) { super(p); } - public NativeOutputVector(NativeOutput value) { this(1); put(0, value); } - public NativeOutputVector(NativeOutput ... array) { this(array.length); put(array); } - public NativeOutputVector() { allocate(); } - public NativeOutputVector(long n) { allocate(n); } - private native void allocate(); - private native void allocate(@Cast("size_t") long n); - public native @Name("operator =") @ByRef NativeOutputVector put(@ByRef NativeOutputVector x); - - public boolean empty() { return size() == 0; } - public native long size(); - public void clear() { resize(0); } - public native void resize(@Cast("size_t") long n); - - @Index(function = "at") public native @ByRef NativeOutput get(@Cast("size_t") long i); - public native NativeOutputVector put(@Cast("size_t") long i, NativeOutput value); - - public native @ByVal Iterator insert(@ByVal Iterator pos, @ByRef NativeOutput value); - public native @ByVal Iterator erase(@ByVal Iterator pos); - public native @ByVal Iterator begin(); - public native @ByVal Iterator end(); - @NoOffset @Name("iterator") public static class Iterator extends Pointer { - public Iterator(Pointer p) { super(p); } - public Iterator() { } - - public native @Name("operator ++") @ByRef Iterator increment(); - public native @Name("operator ==") boolean equals(@ByRef Iterator it); - public native @Name("operator *") @ByRef @Const NativeOutput get(); - } - - public NativeOutput[] get() { - NativeOutput[] array = new NativeOutput[size() < Integer.MAX_VALUE ? (int)size() : Integer.MAX_VALUE]; - for (int i = 0; i < array.length; i++) { - array[i] = get(i); - } - return array; - } - @Override public String toString() { - return java.util.Arrays.toString(get()); - } - - public NativeOutput pop_back() { - long size = size(); - NativeOutput value = get(size - 1); - resize(size - 1); - return value; - } - public NativeOutputVector push_back(NativeOutput value) { - long size = size(); - resize(size + 1); - return put(size, value); - } - public NativeOutputVector put(NativeOutput value) { - if (size() != 1) { resize(1); } - return put(0, value); - } - public NativeOutputVector put(NativeOutput ... array) { - if (size() != array.length) { resize(array.length); } - for (int i = 0; i < array.length; i++) { - put(i, array[i]); - } - return this; - } -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NativeStatus.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NativeStatus.java deleted file mode 100644 index 9eea3a6e23b..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NativeStatus.java +++ /dev/null @@ -1,131 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - // namespace errors -/** \ingroup core - * Denotes success or failure of a call in Tensorflow. */ -@Name("tensorflow::Status") @NoOffset @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class NativeStatus extends Pointer { - static { Loader.load(); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public NativeStatus(Pointer p) { super(p); } - - /** Create a success status. */ - - /** \brief Create a status with the specified error code and msg as a - * human-readable string containing more detailed information. */ - - /** Copy the specified status. */ - public native @ByRef @Name("operator =") NativeStatus put(@Const @ByRef NativeStatus s); -// #ifndef SWIG -// #endif // SWIG - - // Prefer using OkStatus(). - public static native @ByVal NativeStatus OK(); - - /** Returns true iff the status indicates success. */ - public native @Cast("bool") boolean ok(); - - - - public native @StdString BytePointer error_message(); - - public native @Cast("bool") @Name("operator ==") boolean equals(@Const @ByRef NativeStatus x); - - /// - public native @Cast("bool") @Name("operator !=") boolean notEquals(@Const @ByRef NativeStatus x); - - /** \brief If {@code ok()}, stores {@code new_status} into {@code *this}. If {@code !ok()}, - * preserves the current status, but may augment with additional - * information about {@code new_status}. - * - * Convenient way of keeping track of the first error encountered. - * Instead of: - * {@code if (overall_status.ok()) overall_status = new_status} - * Use: - * {@code overall_status.Update(new_status);} */ - - /// - public native void Update(@Const @ByRef NativeStatus new_status); - - /** \brief Return a string representation of this status suitable for - * printing. Returns the string {@code "OK"} for success. - * - * By default, it returns combination of the error code name, the message and - * any associated payload messages. This string is designed simply to be - * human readable and its exact format should not be load bearing. Do not - * depend on the exact format of the result of {@code ToString()} which is subject - * to change. */ - public native @StdString BytePointer ToString(); - - // Ignores any errors. This method does nothing except potentially suppress - // complaints from any tools that are checking that errors are not dropped on - // the floor. - public native void IgnoreError(); - - //---------------------------------------------------------------------------- - // Payload Management APIs (Cloned from absl::Status) - //---------------------------------------------------------------------------- - // A payload may be attached to a status to provide additional context to an - // error that may not be satisfied by an existing `tensorflow::error::Code`. - // Typically, this payload serves one of several purposes: - // - // * It may provide more fine-grained semantic information about the error - // to facilitate actionable remedies. - // * It may provide human-readable contexual information that is more - // appropriate to display to an end user. - // - // A payload consists of a [key,value] pair, where the key is a string - // referring to a unique "type URL" and the value is an object of type - // `absl::Cord` to hold the contextual data. - // - // The "type URL" should be unique and follow the format of a URL - // (https://en.wikipedia.org/wiki/URL) and, ideally, provide some - // documentation or schema on how to interpret its associated data. For - // example, the default type URL for a protobuf message type is - // "type.googleapis.com/packagename.messagename". Other custom wire formats - // should define the format of type URL in a similar practice so as to - // minimize the chance of conflict between type URLs. - // Users should ensure that the type URL can be mapped to a concrete - // C++ type if they want to deserialize the payload and read it effectively. - // - // To attach a payload to a status object, call `Status::SetPayload()`, - // passing it the type URL and an `absl::Cord` of associated data. Similarly, - // to extract the payload from a status, call `Status::GetPayload()`. You - // may attach multiple payloads (with differing type URLs) to any given - // status object, provided that the status is currently exhibiting an error - // code (i.e. is not OK). - // TODO(b/197552541): Use absl::Cord for payload value type. - - // The Payload-related APIs are cloned from absl::Status. - // - // Returns the payload of a status given its unique `type_url` key, if - // present. - - - // Sets the payload for a non-ok status using a `type_url` key, overwriting - // any existing payload for that `type_url`. - // - // This function does nothing if the Status is ok. - - - // Erases the payload corresponding to the `type_url` key. Returns `true` if - // the payload was present. - - - // Iterates over the stored payloads and calls the - // `visitor(type_key, payload)` callable for each one. - // - // The order of calls to `visitor()` is not specified and may change at - // any time and any mutation on the same Status object during visitation is - // forbidden and could result in undefined behavior. - - - public native @Span @Cast("const tensorflow::SourceLocation*") SourceLocation GetSourceLocations(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/Node.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/Node.java deleted file mode 100644 index 450da9657df..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/Node.java +++ /dev/null @@ -1,163 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - -// Parsed from tensorflow/core/graph/graph.h - -@Name("tensorflow::Node") @NoOffset @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class Node extends Pointer { - static { Loader.load(); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public Node(Pointer p) { super(p); } - - public native @StdString BytePointer DebugString(); - public native int id(); - public native int cost_id(); - public native @StdString BytePointer name(); - public native void set_name(@StdString BytePointer name); - public native void set_name(@StdString String name); - public native @StdString BytePointer type_string(); - - // def() provides the NodeDef the user supplied, but the specifics - // of this Node may have changed due to placement, optimization, etc. - // In particular: - // * def().name() will match name(); - // * def().op() will match type_string() and op_def().name(); - // * def().input() is not reliable, use "in_edges()" below instead; - // * def().device() is the "user's requested device" and may not match - // the actual assigned device, see assigned_device_name() below; - // * def().attr() is authoritative. - // TODO(irving): Replace with NodeInfo. - - // TODO(mdan): This is only used by control_flow_deps_o_chains. Remove? - - // input and output types - public native @Cast("tensorflow::int32") int num_inputs(); - - public native @Cast("tensorflow::int32") int num_outputs(); - - // The device requested by the user. For the actual assigned device, - // use assigned_device_name() below. - public native @StdString BytePointer requested_device(); - - // This changes the user requested device but not necessarily the device that - // on which the operation will run. - public native void set_requested_device(@StdString BytePointer device); - public native void set_requested_device(@StdString String device); - - // This gives the device the runtime has assigned this node to. If - // you want the device the user requested, use def().device() instead. - // TODO(josh11b): Validate that the assigned_device, if not empty: - // fully specifies a device, and satisfies def().device(). - // TODO(josh11b): Move assigned_device_name outside of Node into a - // NodeId->DeviceName map. - public native @StdString BytePointer assigned_device_name(); - public native void set_assigned_device_name(@StdString BytePointer device_name); - public native void set_assigned_device_name(@StdString String device_name); - public native @Cast("bool") boolean has_assigned_device_name(); - public native int assigned_device_name_index(); - public native void set_assigned_device_name_index(int index); - - // Sets 'original_node_names' field of this node's DebugInfo proto to - // 'names'. - - - - // Read only access to attributes - - // Inputs requested by the NodeDef. For the actual inputs, use in_edges. - - // Get the neighboring nodes via edges either in or out of this node. This - // includes control edges. - - // Node type helpers. - public native @Cast("bool") boolean IsSource(); - public native @Cast("bool") boolean IsSink(); - // Anything other than the special Source & Sink nodes. - public native @Cast("bool") boolean IsOp(); - - // Node class helpers - public native @Cast("bool") boolean IsSwitch(); - public native @Cast("bool") boolean IsMerge(); - public native @Cast("bool") boolean IsEnter(); - public native @Cast("bool") boolean IsExit(); - public native @Cast("bool") boolean IsNextIteration(); - public native @Cast("bool") boolean IsLoopCond(); - public native @Cast("bool") boolean IsControlTrigger(); - public native @Cast("bool") boolean IsSend(); - public native @Cast("bool") boolean IsRecv(); - public native @Cast("bool") boolean IsConstant(); - public native @Cast("bool") boolean IsVariable(); - public native @Cast("bool") boolean IsIdentity(); - public native @Cast("bool") boolean IsGetSessionHandle(); - public native @Cast("bool") boolean IsGetSessionTensor(); - public native @Cast("bool") boolean IsDeleteSessionTensor(); - public native @Cast("bool") boolean IsControlFlow(); - public native @Cast("bool") boolean IsHostSend(); - public native @Cast("bool") boolean IsHostRecv(); - public native @Cast("bool") boolean IsScopedAllocator(); - public native @Cast("bool") boolean IsCollective(); - - public native @Cast("bool") boolean IsMetadata(); - public native @Cast("bool") boolean IsFakeParam(); - public native @Cast("bool") boolean IsPartitionedCall(); - - // Returns true if this node is any kind of function call node. - // - // NOTE: "function call nodes" include partitioned call ops, symbolic gradient - // ops, and ops whose type_string is the name of a function ("function ops"). - public native @Cast("bool") boolean IsFunctionCall(); - - public native @Cast("bool") boolean IsIfNode(); - public native @Cast("bool") boolean IsWhileNode(); - public native @Cast("bool") boolean IsCaseNode(); - // Is this node a function input - public native @Cast("bool") boolean IsArg(); - // Is this node a function output - public native @Cast("bool") boolean IsRetval(); - - public native @Cast("bool") boolean IsDistributedCommunication(); - - - - - - - - // Returns into '*e' the edge connecting to the 'idx' input of this Node. - - // Returns into '*edges' the input data edges of this Node, indexed by input - // number. Does not return control edges. - - // Returns into '*n' the node that has an output connected to the - // 'idx' input of this Node. - - - - // Returns into '*t' the idx-th input tensor of this node, represented as the - // output tensor of input_node(idx). - - // Sets the stack trace for the node. Assumes that getting and setting the - // stack trace for a given node will not race. - - - // Get the stack trace for when the node was instantiated. - - - // Called after an attr has changed. Decides whether we need to update some - // property of the node (stored in props_). - public native void UpdateProperties(); - - // Erases type information from the node. - public native void ClearTypeInfo(); - - // Called after an incident non-control edge has changed. Does nothing if not - // all input edges are defined. - -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NodeBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NodeBuilder.java deleted file mode 100644 index e334b94bcb5..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NodeBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - -@Namespace("tensorflow") @Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class NodeBuilder extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public NodeBuilder() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public NodeBuilder(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/Shape_inference_func_TF_ShapeInferenceContext_TF_Status.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/Shape_inference_func_TF_ShapeInferenceContext_TF_Status.java deleted file mode 100644 index c652d1ae1d0..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/Shape_inference_func_TF_ShapeInferenceContext_TF_Status.java +++ /dev/null @@ -1,22 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// Sets the shape inference function for the op. -@Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class Shape_inference_func_TF_ShapeInferenceContext_TF_Status extends FunctionPointer { - static { Loader.load(); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public Shape_inference_func_TF_ShapeInferenceContext_TF_Status(Pointer p) { super(p); } - protected Shape_inference_func_TF_ShapeInferenceContext_TF_Status() { allocate(); } - private native void allocate(); - public native void call(TF_ShapeInferenceContext ctx, - TF_Status status); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/SourceLocation.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/SourceLocation.java deleted file mode 100644 index 7ac9d9012bc..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/SourceLocation.java +++ /dev/null @@ -1,42 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - -// #endif - -@Namespace("tensorflow") @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class SourceLocation extends Pointer { - static { Loader.load(); } - /** Default native constructor. */ - public SourceLocation() { super((Pointer)null); allocate(); } - /** Native array allocator. Access with {@link Pointer#position(long)}. */ - public SourceLocation(long size) { super((Pointer)null); allocateArray(size); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public SourceLocation(Pointer p) { super(p); } - private native void allocate(); - private native void allocateArray(long size); - @Override public SourceLocation position(long position) { - return (SourceLocation)super.position(position); - } - @Override public SourceLocation getPointer(long i) { - return new SourceLocation((Pointer)this).offsetAddress(i); - } - - public native @Cast("uint32_t") int line(); public native SourceLocation line(int setter); - public native @Cast("const char*") BytePointer file_name(); public native SourceLocation file_name(BytePointer setter); - -// #ifdef TF_INTERNAL_HAVE_BUILTIN_LINE_FILE - public static native @ByVal SourceLocation current(@Cast("uint32_t") int line/*=__builtin_LINE()*/, - @Cast("const char*") BytePointer file_name/*=__builtin_FILE()*/); - public static native @ByVal SourceLocation current(); - public static native @ByVal SourceLocation current(@Cast("uint32_t") int line/*=__builtin_LINE()*/, - String file_name/*=__builtin_FILE()*/); -// #else -// #endif -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_OpAttrs.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_OpAttrs.java deleted file mode 100644 index 11df4c421b1..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TFE_OpAttrs.java +++ /dev/null @@ -1,19 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - -// Parsed from tensorflow/c/eager/c_api_experimental.h - -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TFE_OpAttrs extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TFE_OpAttrs() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TFE_OpAttrs(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_DimensionHandle.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_DimensionHandle.java deleted file mode 100644 index 6d34adf1454..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_DimensionHandle.java +++ /dev/null @@ -1,19 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - -// #endif - -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TF_DimensionHandle extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TF_DimensionHandle() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TF_DimensionHandle(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_Graph.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_Graph.java deleted file mode 100644 index 111b751daf2..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_Graph.java +++ /dev/null @@ -1,49 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - -// Parsed from tensorflow/c/c_api_internal.h - -@NoOffset @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TF_Graph extends org.tensorflow.internal.c_api.AbstractTF_Graph { - static { Loader.load(); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TF_Graph(Pointer p) { super(p); } - - - - public native @MemberGetter @ByRef NativeGraphPointer graph(); - - // Runs shape inference. - - - // Maps from name of an operation to the Node* in 'graph'. - public native @ByRef NameMap name_map(); public native TF_Graph name_map(NameMap setter); - - // The keys of this map are all the active sessions using this graph. Each - // value records whether the graph has been mutated since the corresponding - // session has been run (this is detected in RecordMutation function). If the - // string is empty, no mutation has occurred. Otherwise the string is a - // description of the mutation suitable for returning to the user. - // - // Sessions are added to this map in TF_NewSession, and removed in - // TF_DeleteSession. - // TF_Graph may only / must be deleted when - // sessions.size() == 0 && delete_requested == true - // - // TODO(b/74949947): mutations currently trigger a warning instead of a bad - // status, this should be reverted when possible. - - // set true by TF_DeleteGraph - - // Used to link graphs contained in TF_WhileParams to the parent graph that - // will eventually contain the full while loop. - public native TF_Graph parent(); public native TF_Graph parent(TF_Graph setter); - public native TF_Output parent_inputs(); public native TF_Graph parent_inputs(TF_Output setter); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_KernelBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_KernelBuilder.java deleted file mode 100644 index fbc313e0542..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_KernelBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -// -------------------------------------------------------------------------- -// C API for TensorFlow Kernels. -// -// This API allows developers to register custom kernel implementations for -// TensorFlow. -// -// See c_api.h header comments for a discussion about API conventions. -// -// Users wishing to extend TensorFlow with new kernels will call -// `TF_NewKernelBuilder`. The resulting kernel builder can be registered with -// `TF_RegisterKernelBuilder`, which will allow TF to construct user-provided -// kernels when necessary. - -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TF_KernelBuilder extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TF_KernelBuilder() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TF_KernelBuilder(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_OpDefinitionBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_OpDefinitionBuilder.java deleted file mode 100644 index 02fbf590fc8..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_OpDefinitionBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TF_OpDefinitionBuilder extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TF_OpDefinitionBuilder() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TF_OpDefinitionBuilder(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_OpKernelConstruction.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_OpKernelConstruction.java deleted file mode 100644 index 28a3be64f49..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_OpKernelConstruction.java +++ /dev/null @@ -1,17 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TF_OpKernelConstruction extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TF_OpKernelConstruction() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TF_OpKernelConstruction(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_OpKernelContext.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_OpKernelContext.java deleted file mode 100644 index 956da8b739d..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_OpKernelContext.java +++ /dev/null @@ -1,17 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TF_OpKernelContext extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TF_OpKernelContext() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TF_OpKernelContext(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_Operation.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_Operation.java deleted file mode 100644 index f986267deda..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_Operation.java +++ /dev/null @@ -1,18 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - -@Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TF_Operation extends Pointer { - static { Loader.load(); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TF_Operation(Pointer p) { super(p); } - - public native @MemberGetter @ByRef Node node(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_OperationDescription.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_OperationDescription.java deleted file mode 100644 index 373c33e3a76..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_OperationDescription.java +++ /dev/null @@ -1,21 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - -@NoOffset @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TF_OperationDescription extends Pointer { - static { Loader.load(); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TF_OperationDescription(Pointer p) { super(p); } - - - public native @ByRef NodeBuilder node_builder(); public native TF_OperationDescription node_builder(NodeBuilder setter); - public native TF_Graph graph(); public native TF_OperationDescription graph(TF_Graph setter); - -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_Scope.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_Scope.java deleted file mode 100644 index 1074eac0174..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_Scope.java +++ /dev/null @@ -1,216 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - - -/** \addtogroup core - * \{ -

- * A {@code Scope} object represents a set of related TensorFlow ops that have the - * same properties such as a common name prefix. - * - * A Scope object is a container for TensorFlow Op properties. Op constructors - * get a Scope object as a mandatory first argument and the constructed op - * acquires the properties in the object. - * - * A simple example: - * - * using namespace ops; - * Scope root = Scope::NewRootScope(); - * auto c1 = Const(root, { {1, 1} }); - * auto m = MatMul(root, c1, { {41}, {1} }); - * GraphDef gdef; - * Status s = root.ToGraphDef(&gdef); - * if (!s.ok()) { ... } - * - * Scope hierarchy: - * - * The Scope class provides various With<> functions that create a new scope. - * The new scope typically has one property changed while other properties are - * inherited from the parent scope. - * NewSubScope(name) method appends {@code name} to the prefix of names for ops - * created within the scope, and WithOpName() changes the suffix which - * otherwise defaults to the type of the op. - * - * Name examples: - * - * Scope root = Scope::NewRootScope(); - * Scope linear = root.NewSubScope("linear"); - * // W will be named "linear/W" - * auto W = Variable(linear.WithOpName("W"), - * {2, 2}, DT_FLOAT); - * // b will be named "linear/b_3" - * int idx = 3; - * auto b = Variable(linear.WithOpName("b_", idx), - * {2}, DT_FLOAT); - * auto x = Const(linear, {...}); // name: "linear/Const" - * auto m = MatMul(linear, x, W); // name: "linear/MatMul" - * auto r = BiasAdd(linear, m, b); // name: "linear/BiasAdd" - * - * Scope lifetime: - * - * A new scope is created by calling Scope::NewRootScope. This creates some - * resources that are shared by all the child scopes that inherit from this - * scope, directly or transitively. For instance, a new scope creates a new - * Graph object to which operations are added when the new scope or its - * children are used by an Op constructor. The new scope also has a Status - * object which will be used to indicate errors by Op-constructor functions - * called on any child scope. The Op-constructor functions have to check the - * scope's status by calling the ok() method before proceeding to construct the - * op. - * - * Thread safety: - * - * A {@code Scope} object is NOT thread-safe. Threads cannot concurrently call - * op-constructor functions on the same {@code Scope} object. */ -@Name("tensorflow::Scope") @NoOffset @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TF_Scope extends Pointer { - static { Loader.load(); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TF_Scope(Pointer p) { super(p); } - - public TF_Scope(@Const @ByRef TF_Scope other) { super((Pointer)null); allocate(other); } - private native void allocate(@Const @ByRef TF_Scope other); - public native @ByRef @Name("operator =") TF_Scope put(@Const @ByRef TF_Scope other); - - // The following functions are for users making graphs. They return brand new - // scopes, or scopes derived from an existing scope object. - - /** Return a new scope. - * This creates a new graph and all operations constructed in this graph - * should use the returned object as the "root" scope. */ - public static native @ByVal TF_Scope NewRootScope(); - - /** Return a new scope. Ops created with this scope will have - * {@code name/child_scope_name} as the prefix. The actual name will be unique - * in the current scope. All other properties are inherited from the current - * scope. If {@code child_scope_name} is empty, the {@code /} is elided. */ - public native @ByVal TF_Scope NewSubScope(@StdString BytePointer child_scope_name); - public native @ByVal TF_Scope NewSubScope(@StdString String child_scope_name); - - /** Return a new scope. All ops created within the returned scope will have - * names of the form {@code name/StrCat(fragments...)[_suffix]} */ - - /** Return a new scope. All ops created within the returned scope will have as - * control dependencies the union of operations in the control_deps vector - * and the control dependencies of the current scope. */ - public native @ByVal TF_Scope WithControlDependencies( - @Span NativeOperation control_deps); - /** Same as above, but convenient to add control dependency on the operation - * producing the control_dep output. */ - public native @ByVal TF_Scope WithControlDependencies(@Const @ByRef NativeOutput control_dep); - - /** Return a new scope. All ops created within the returned scope will have no - * control dependencies on other operations. */ - public native @ByVal TF_Scope WithNoControlDependencies(); - - /** Return a new scope. All ops created within the returned scope will have - * the device field set to 'device'. */ - public native @ByVal TF_Scope WithDevice(@StdString BytePointer device); - public native @ByVal TF_Scope WithDevice(@StdString String device); - - /** Returns a new scope. All ops created within the returned scope will have - * their assigned device set to {@code assigned_device}. */ - - - /** Returns a new scope. All ops created within the returned scope will have - * their _XlaCluster attribute set to {@code xla_cluster}. */ - - - /** Return a new scope. All ops created within the returned scope will be - * co-located on the device where op is placed. - * NOTE: This function is intended to be use internal libraries only for - * controlling placement of ops on to devices. Public use is not encouraged - * because the implementation of device placement is subject to change. */ - - /** Convenience function for above. */ - - /** Clear all colocation constraints. */ - - - /** Return a new scope. The op-constructor functions taking the returned scope - * as the scope argument will exit as soon as an error is detected, instead - * of setting the status on the scope. */ - public native @ByVal TF_Scope ExitOnError(); - - /** Return a new scope. All ops created with the new scope will have - * kernel_label as the value for their '_kernel' attribute; */ - - - // The following functions are for scope object consumers. - - /** Return a unique name, using default_name if an op name has not been - * specified. */ - public native @StdString BytePointer GetUniqueNameForOp(@StdString BytePointer default_name); - public native @StdString String GetUniqueNameForOp(@StdString String default_name); - - /** Update the status on this scope. - * Note: The status object is shared between all children of this scope. - * If the resulting status is not Status::OK() and exit_on_error_ is set on - * this scope, this function exits by calling LOG(FATAL). */ - - - // START_SKIP_DOXYGEN - - /** Update the builder with properties accumulated in this scope. Does not set - * status(). */ - // TODO(skyewm): NodeBuilder is not part of public API - public native void UpdateBuilder(NodeBuilder builder); - // END_SKIP_DOXYGEN - - public native @Cast("bool") boolean ok(); - - // TODO(skyewm): Graph is not part of public API - public native NativeGraphPointer graph(); - - // TODO(skyewm): Graph is not part of public API - - - - - /** If status() is ok, convert the Graph object stored in this scope - * to a GraphDef proto and return an ok Status. Otherwise, return the error - * status as is without performing GraphDef conversion. */ - - - // START_SKIP_DOXYGEN - - /** If status() is Status::OK(), construct a Graph object using {@code opts} as the - * GraphConstructorOptions, and return Status::OK if graph construction was - * successful. Otherwise, return the error status. */ - // TODO(josh11b, keveman): Make this faster; right now it converts - // Graph->GraphDef->Graph. This cleans up the graph (e.g. adds - // edges from the source and to the sink node, resolves back edges - // by name), and makes sure the resulting graph is valid. - - - // Calls AddNode() using this scope's ShapeRefiner. This exists in the public - // API to prevent custom op wrappers from needing access to shape_refiner.h or - // scope_internal.h. - // TODO(skyewm): remove this from public API - - - // Creates a new root scope that causes all DoShapeInference() calls to return - // Status::OK() (on the returned scope and any subscopes). Used for testing. - // TODO(skyewm): fix tests that still require this and eventually remove, or - // at least remove from public API - - // END_SKIP_DOXYGEN - - - - // START_SKIP_DOXYGEN - @Opaque public static class Impl extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public Impl() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public Impl(Pointer p) { super(p); } - } - public native Impl impl(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_ShapeHandle.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_ShapeHandle.java deleted file mode 100644 index 0148f21e771..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_ShapeHandle.java +++ /dev/null @@ -1,17 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TF_ShapeHandle extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TF_ShapeHandle() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TF_ShapeHandle(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_ShapeInferenceContext.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_ShapeInferenceContext.java deleted file mode 100644 index 266f1ce2192..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/TF_ShapeInferenceContext.java +++ /dev/null @@ -1,17 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.tensorflow.internal.c_api.global.tensorflow.*; - -@Opaque @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class) -public class TF_ShapeInferenceContext extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public TF_ShapeInferenceContext() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TF_ShapeInferenceContext(Pointer p) { super(p); } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/global/tensorflow.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/global/tensorflow.java deleted file mode 100644 index e8a886ae82f..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/global/tensorflow.java +++ /dev/null @@ -1,5260 +0,0 @@ -// Targeted by JavaCPP version 1.5.8: DO NOT EDIT THIS FILE - -package org.tensorflow.internal.c_api.global; - -import org.tensorflow.internal.c_api.*; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -public class tensorflow extends org.tensorflow.internal.c_api.presets.tensorflow { - static { Loader.load(); } - -// Targeting ../NativeOutputVector.java - - -// Targeting ../NameMap.java - - -// Parsed from tensorflow/core/platform/ctstring_internal.h - -/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -==============================================================================*/ - -// #ifndef TENSORFLOW_CORE_PLATFORM_CTSTRING_INTERNAL_H_ -// #define TENSORFLOW_CORE_PLATFORM_CTSTRING_INTERNAL_H_ - -// #include -// #include -// #include -// #include - -// #if (defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && -// __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) || -// defined(_WIN32) -public static final int TF_TSTRING_LITTLE_ENDIAN = 1; -// #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && -// __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ -// #else -// #error "Unable to detect endianness." -// #endif - -// #if defined(__clang__) || -// (defined(__GNUC__) && -// ((__GNUC__ == 4 && __GNUC_MINOR__ >= 8) || __GNUC__ >= 5)) -public static native @Cast("uint32_t") int TF_swap32(@Cast("uint32_t") int host_int); - -// #elif defined(_MSC_VER) - -// #elif defined(__APPLE__) - -// #else -// #endif - -// #if TF_TSTRING_LITTLE_ENDIAN -// #define TF_le32toh(x) x -// #else // TF_TSTRING_LITTLE_ENDIAN -// #endif // TF_TSTRING_LITTLE_ENDIAN - -public static native @Cast("size_t") long TF_align16(@Cast("size_t") long i); - -public static native @Cast("size_t") long TF_max(@Cast("size_t") long a, @Cast("size_t") long b); -public static native @Cast("size_t") long TF_min(@Cast("size_t") long a, @Cast("size_t") long b); - -/** enum TF_TString_Type */ -public static final int // NOLINT - TF_TSTR_SMALL = 0x00, - TF_TSTR_LARGE = 0x01, - TF_TSTR_OFFSET = 0x02, - TF_TSTR_VIEW = 0x03, - TF_TSTR_TYPE_MASK = 0x03; -// Targeting ../TF_TString_Large.java - - -// Targeting ../TF_TString_Offset.java - - -// Targeting ../TF_TString_View.java - - -// Targeting ../TF_TString_Raw.java - - -// Targeting ../TF_TString_Union.java - - - -/** enum */ - -public static native @MemberGetter int TF_TString_SmallCapacity(); -public static final int - TF_TString_SmallCapacity = TF_TString_SmallCapacity(); -// Targeting ../TF_TString_Small.java - - -// Targeting ../TF_TString.java - - - -// TODO(dero): Fix for OSS, and add C only build test. -// _Static_assert(CHAR_BIT == 8); -// _Static_assert(sizeof(TF_TString) == 24); - -public static native @Cast("TF_TString_Type") int TF_TString_GetType(@Const TF_TString str); - -// XXX(dero): For the big-endian case, this function could potentially be more -// performant and readable by always storing the string size as little-endian -// and always byte-swapping on big endian, resulting in a simple 'bswap'+'shr' -// (for architectures that have a bswap op). -public static native @Cast("size_t") long TF_TString_ToActualSizeT(@Cast("size_t") long size); - -public static native @Cast("size_t") long TF_TString_ToInternalSizeT(@Cast("size_t") long size, - @Cast("TF_TString_Type") int type); - -public static native void TF_TString_Init(TF_TString str); - -public static native void TF_TString_Dealloc(TF_TString str); - -public static native @Cast("size_t") long TF_TString_GetSize(@Const TF_TString str); - -public static native @Cast("size_t") long TF_TString_GetCapacity(@Const TF_TString str); - -public static native @Cast("const char*") BytePointer TF_TString_GetDataPointer(@Const TF_TString str); - -public static native @Cast("char*") BytePointer TF_TString_ResizeUninitialized(TF_TString str, - @Cast("size_t") long new_size); - -public static native @Cast("char*") BytePointer TF_TString_GetMutableDataPointer(TF_TString str); - -public static native void TF_TString_Reserve(TF_TString str, @Cast("size_t") long new_cap); - -public static native void TF_TString_ReserveAmortized(TF_TString str, - @Cast("size_t") long new_cap); - -public static native @Cast("char*") BytePointer TF_TString_Resize(TF_TString str, @Cast("size_t") long new_size, - @Cast("char") byte c); - -public static native void TF_TString_AssignView(TF_TString dst, @Cast("const char*") BytePointer src, - @Cast("size_t") long size); -public static native void TF_TString_AssignView(TF_TString dst, String src, - @Cast("size_t") long size); - -public static native void TF_TString_AppendN(TF_TString dst, @Cast("const char*") BytePointer src, - @Cast("size_t") long src_size); -public static native void TF_TString_AppendN(TF_TString dst, String src, - @Cast("size_t") long src_size); - -public static native void TF_TString_Append(TF_TString dst, @Const TF_TString src); - -public static native void TF_TString_Copy(TF_TString dst, @Cast("const char*") BytePointer src, - @Cast("size_t") long size); -public static native void TF_TString_Copy(TF_TString dst, String src, - @Cast("size_t") long size); - -public static native void TF_TString_Assign(TF_TString dst, @Const TF_TString src); - -public static native void TF_TString_Move(TF_TString dst, TF_TString src); - -// #endif // TENSORFLOW_CORE_PLATFORM_CTSTRING_INTERNAL_H_ - - -// Parsed from tensorflow/core/platform/ctstring.h - -/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -==============================================================================*/ - -// #ifndef TENSORFLOW_CORE_PLATFORM_CTSTRING_H_ -// #define TENSORFLOW_CORE_PLATFORM_CTSTRING_H_ - -// #include -// #include - -// #include "tensorflow/core/platform/ctstring_internal.h" - -// Initialize a new tstring. This must be called before using any function -// below. -// Deallocate a tstring. - -// Resizes `str' to `new_size'. This function will appropriately grow or shrink -// the string buffer to fit a `new_size' string. Grown regions of the string -// will be initialized with `c'. -// Similar to TF_TString_Resize, except the newly allocated regions will remain -// uninitialized. This is useful if you plan on overwriting the newly grown -// regions immediately after allocation; doing so will elide a superfluous -// initialization of the new buffer. -// Reserves a string buffer with a capacity of at least `new_cap'. -// Reserve will not change the size, or the contents of the existing -// string. This is useful if you have a rough idea of `str's upperbound in -// size, and want to avoid allocations as you append to `str'. It should not be -// considered safe to write in the region between size and capacity; explicitly -// resize before doing so. -// Similar to TF_TString_Reserve, except that we ensure amortized growth, i.e. -// that we grow the capacity by at least a constant factor >1. - -// Returns the size of the string. -// Returns the capacity of the string buffer. It should not be considered safe -// to write in the region between size and capacity---call Resize or -// ResizeUninitialized before doing so. -// Returns the underlying type of the tstring: -// TF_TSTR_SMALL: -// Small string optimization; the contents of strings -// less than 22-bytes are stored in the TF_TString struct. This avoids any -// heap allocations. -// TF_TSTR_LARGE: -// Heap allocated string. -// TF_TSTR_OFFSET: (currently unused) -// An offset defined string. The string buffer begins at an internally -// defined little-endian offset from `str'; i.e. GetDataPointer() = str + -// offset. This type is useful for memory mapping or reading string tensors -// directly from file, without the need to deserialize the data. For -// security reasons, it is imperative that OFFSET based string tensors are -// validated before use, or are from a trusted source. -// TF_TSTR_VIEW: -// A view into an unowned character string. -// -// NOTE: -// VIEW and OFFSET types are immutable, so any modifcation via Append, -// AppendN, or GetMutableDataPointer of a VIEW/OFFSET based tstring will -// result in a conversion to an owned type (SMALL/LARGE). - -// Returns a const char pointer to the start of the underlying string. The -// underlying character buffer may not be null-terminated. -// Returns a char pointer to a mutable representation of the underlying string. -// In the case of VIEW and OFFSET types, `src' is converted to an owned type -// (SMALL/LARGE). The underlying character buffer may not be null-terminated. - -// Sets `dst' as a VIEW type to `src'. `dst' will not take ownership of `src'. -// It is the user's responsibility to ensure that the lifetime of `src' exceeds -// `dst'. Any mutations to `dst' via Append, AppendN, or GetMutableDataPointer, -// will result in a copy into an owned SMALL or LARGE type, and will not modify -// `src'. - -// Appends `src' onto `dst'. If `dst' is a VIEW or OFFSET type, it will first -// be converted to an owned LARGE or SMALL type. `dst' should not point to -// memory owned by `src'. - -// Copy/Move/Assign semantics -// -// | src | dst | complexity -// Copy | * | SMALL/LARGE | fixed/O(size) -// Assign | SMALL | SMALL | fixed -// Assign | OFFSET | VIEW | fixed -// Assign | VIEW | VIEW | fixed -// Assign | LARGE | LARGE | O(size) -// Move | * | same as src | fixed - -// Copies `src' to `dst'. `dst' will be an owned type (SMALL/LARGE). `src' -// should not point to memory owned by `dst'. -// Assigns a `src' tstring to `dst'. An OFFSET `src' type will yield a `VIEW' -// `dst'. LARGE `src' types will be copied to a new buffer; all other `src' -// types will incur a fixed cost. -// Moves a `src' tstring to `dst'. Moving a LARGE `src' to `dst' will result in -// a valid but unspecified `src'. This function incurs a fixed cost for all -// inputs. - -// #endif // TENSORFLOW_CORE_PLATFORM_CTSTRING_H_ - - -// Parsed from tensorflow/core/util/port.h - -/* Copyright 2015 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -==============================================================================*/ - -// #ifndef TENSORFLOW_CORE_UTIL_PORT_H_ -// #define TENSORFLOW_CORE_UTIL_PORT_H_ - -// Returns true if GOOGLE_CUDA is defined. -@Namespace("tensorflow") public static native @Cast("bool") boolean IsGoogleCudaEnabled(); - -// Returns true if TENSORFLOW_USE_ROCM is defined. (i.e. TF is built with ROCm) -@Namespace("tensorflow") public static native @Cast("bool") boolean IsBuiltWithROCm(); - -// Returns true if TENSORFLOW_USE_XLA is defined. (i.e. TF is built with XLA) -@Namespace("tensorflow") public static native @Cast("bool") boolean IsBuiltWithXLA(); - -// Returns true if TENSORFLOW_USE_NVCC is defined. (i.e. TF is built with nvcc) -@Namespace("tensorflow") public static native @Cast("bool") boolean IsBuiltWithNvcc(); - -// Returns true if either -// -// GOOGLE_CUDA is defined, and the given CUDA version supports -// half-precision matrix multiplications and convolution operations. -// -// OR -// -// TENSORFLOW_USE_ROCM is defined -// -@Namespace("tensorflow") public static native @Cast("bool") boolean GpuSupportsHalfMatMulAndConv(); - -// Returns true if INTEL_MKL is defined -@Namespace("tensorflow") public static native @Cast("bool") boolean IsMklEnabled(); - - // end namespace tensorflow - -// #endif // TENSORFLOW_CORE_UTIL_PORT_H_ - - -// Parsed from tensorflow/c/tf_attrtype.h - -/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -==============================================================================*/ -// #ifndef TENSORFLOW_C_TF_ATTRTYPE_H_ -// #define TENSORFLOW_C_TF_ATTRTYPE_H_ - -// #ifdef __cplusplus -// #endif - -// TF_AttrType describes the type of the value of an attribute on an operation. -/** enum TF_AttrType */ -public static final int - TF_ATTR_STRING = 0, - TF_ATTR_INT = 1, - TF_ATTR_FLOAT = 2, - TF_ATTR_BOOL = 3, - TF_ATTR_TYPE = 4, - TF_ATTR_SHAPE = 5, - TF_ATTR_TENSOR = 6, - TF_ATTR_PLACEHOLDER = 7, - TF_ATTR_FUNC = 8; - -// #ifdef __cplusplus /* end extern "C" */ -// #endif - -// #endif // TENSORFLOW_C_TF_ATTRTYPE_H_ - - -// Parsed from tensorflow/c/c_api_macros.h - -/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -==============================================================================*/ - -// #ifndef TENSORFLOW_C_C_API_MACROS_H_ -// #define TENSORFLOW_C_C_API_MACROS_H_ - -// #ifdef SWIG -// #define TF_CAPI_EXPORT -// #else -// #if defined(_WIN32) -// #ifdef TF_COMPILE_LIBRARY -// #define TF_CAPI_EXPORT __declspec(dllexport) -// #else -// #define TF_CAPI_EXPORT __declspec(dllimport) -// #endif // TF_COMPILE_LIBRARY -// #else -// #define TF_CAPI_EXPORT __attribute__((visibility("default"))) -// #endif // _WIN32 -// #endif // SWIG - -// TF_Bool is the C API typedef for unsigned char, while TF_BOOL is -// the datatype for boolean tensors. -// #ifndef TF_Bool -// #define TF_Bool unsigned char -// #endif // TF_Bool - -// Macro used to calculate struct size for maintaining ABI stability across -// different struct implementations. -// #ifndef TF_OFFSET_OF_END -// #define TF_OFFSET_OF_END(TYPE, MEMBER) -// (offsetof(TYPE, MEMBER) + sizeof(((TYPE *)0)->MEMBER)) -// #endif // TF_OFFSET_OF_END - -// #endif // TENSORFLOW_C_C_API_MACROS_H_ - - -// Parsed from tensorflow/c/tf_datatype.h - -/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -==============================================================================*/ - -// #ifndef TENSORFLOW_C_TF_DATATYPE_H_ -// #define TENSORFLOW_C_TF_DATATYPE_H_ - -// #include - -// Macro to control visibility of exported symbols in the shared library (.so, -// .dylib, .dll). -// This duplicates the TF_EXPORT macro definition in -// tensorflow/core/platform/macros.h in order to keep this .h file independent -// of any other includes. -// #ifdef SWIG -// #define TF_CAPI_EXPORT -// #else -// #if defined(_WIN32) -// #ifdef TF_COMPILE_LIBRARY -// #define TF_CAPI_EXPORT __declspec(dllexport) -// #else -// #define TF_CAPI_EXPORT __declspec(dllimport) -// #endif // TF_COMPILE_LIBRARY -// #else -// #define TF_CAPI_EXPORT __attribute__((visibility("default"))) -// #endif // _WIN32 -// #endif // SWIG - -// #ifdef __cplusplus -// #endif - -// -------------------------------------------------------------------------- -// TF_DataType holds the type for a scalar value. E.g., one slot in a tensor. -// The enum values here are identical to corresponding values in types.proto. -/** enum TF_DataType */ -public static final int - TF_FLOAT = 1, - TF_DOUBLE = 2, - TF_INT32 = 3, // Int32 tensors are always in 'host' memory. - TF_UINT8 = 4, - TF_INT16 = 5, - TF_INT8 = 6, - TF_STRING = 7, - TF_COMPLEX64 = 8, // Single-precision complex - TF_COMPLEX = 8, // Old identifier kept for API backwards compatibility - TF_INT64 = 9, - TF_BOOL = 10, - TF_QINT8 = 11, // Quantized int8 - TF_QUINT8 = 12, // Quantized uint8 - TF_QINT32 = 13, // Quantized int32 - TF_BFLOAT16 = 14, // Float32 truncated to 16 bits. Only for cast ops. - TF_QINT16 = 15, // Quantized int16 - TF_QUINT16 = 16, // Quantized uint16 - TF_UINT16 = 17, - TF_COMPLEX128 = 18, // Double-precision complex - TF_HALF = 19, - TF_RESOURCE = 20, - TF_VARIANT = 21, - TF_UINT32 = 22, - TF_UINT64 = 23; - -// TF_DataTypeSize returns the sizeof() for the underlying type corresponding -// to the given TF_DataType enum value. Returns 0 for variable length types -// (eg. TF_STRING) or on failure. -public static native @Cast("size_t") long TF_DataTypeSize(@Cast("TF_DataType") int dt); - -// #ifdef __cplusplus /* end extern "C" */ -// #endif - -// #endif // TENSORFLOW_C_TF_DATATYPE_H_ - - -// Parsed from tensorflow/c/tf_status.h - -/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -==============================================================================*/ - -// #ifndef TENSORFLOW_C_TF_STATUS_H_ -// #define TENSORFLOW_C_TF_STATUS_H_ - -// #ifdef SWIG -// #define TF_CAPI_EXPORT -// #else -// #if defined(_WIN32) -// #ifdef TF_COMPILE_LIBRARY -// #define TF_CAPI_EXPORT __declspec(dllexport) -// #else -// #define TF_CAPI_EXPORT __declspec(dllimport) -// #endif // TF_COMPILE_LIBRARY -// #else -// #define TF_CAPI_EXPORT __attribute__((visibility("default"))) -// #endif // _WIN32 -// #endif // SWIG - -// #ifdef __cplusplus -// Targeting ../TF_Status.java - - - -// -------------------------------------------------------------------------- -// TF_Code holds an error code. The enum values here are identical to -// corresponding values in error_codes.proto. -/** enum TF_Code */ -public static final int - TF_OK = 0, - TF_CANCELLED = 1, - TF_UNKNOWN = 2, - TF_INVALID_ARGUMENT = 3, - TF_DEADLINE_EXCEEDED = 4, - TF_NOT_FOUND = 5, - TF_ALREADY_EXISTS = 6, - TF_PERMISSION_DENIED = 7, - TF_UNAUTHENTICATED = 16, - TF_RESOURCE_EXHAUSTED = 8, - TF_FAILED_PRECONDITION = 9, - TF_ABORTED = 10, - TF_OUT_OF_RANGE = 11, - TF_UNIMPLEMENTED = 12, - TF_INTERNAL = 13, - TF_UNAVAILABLE = 14, - TF_DATA_LOSS = 15; - -// -------------------------------------------------------------------------- - -// Return a new status object. -public static native TF_Status TF_NewStatus(); - -// Delete a previously created status object. -public static native void TF_DeleteStatus(TF_Status arg0); - -// Record in *s. Any previous information is lost. -// A common use is to clear a status: TF_SetStatus(s, TF_OK, ""); -public static native void TF_SetStatus(TF_Status s, @Cast("TF_Code") int code, - @Cast("const char*") BytePointer msg); -public static native void TF_SetStatus(TF_Status s, @Cast("TF_Code") int code, - String msg); - -// Record as a payload in *s. The previous payload having the -// same key (if any) is overwritten. Payload will not be added if the Status -// is OK. -public static native void TF_SetPayload(TF_Status s, @Cast("const char*") BytePointer key, - @Cast("const char*") BytePointer value); -public static native void TF_SetPayload(TF_Status s, String key, - String value); - -// Convert from an I/O error code (e.g., errno) to a TF_Status value. -// Any previous information is lost. Prefer to use this instead of TF_SetStatus -// when the error comes from I/O operations. -public static native void TF_SetStatusFromIOError(TF_Status s, int error_code, - @Cast("const char*") BytePointer context); -public static native void TF_SetStatusFromIOError(TF_Status s, int error_code, - String context); - -// Return the code record in *s. -public static native @Cast("TF_Code") int TF_GetCode(@Const TF_Status s); - -// Return a pointer to the (null-terminated) error message in *s. The -// return value points to memory that is only usable until the next -// mutation to *s. Always returns an empty string if TF_GetCode(s) is -// TF_OK. -public static native @Cast("const char*") BytePointer TF_Message(@Const TF_Status s); - -// #ifdef __cplusplus /* end extern "C" */ -// #endif - -// #endif // TENSORFLOW_C_TF_STATUS_H_ - - -// Parsed from tensorflow/c/tf_tensor.h - -/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -==============================================================================*/ - -// #ifndef TENSORFLOW_C_TF_TENSOR_H_ -// #define TENSORFLOW_C_TF_TENSOR_H_ - -// #include -// #include - -// #include "tensorflow/c/c_api_macros.h" -// #include "tensorflow/c/tf_datatype.h" -// #include "tensorflow/c/tf_status.h" - -// Macro to control visibility of exported symbols in the shared library (.so, -// .dylib, .dll). -// This duplicates the TF_EXPORT macro definition in -// tensorflow/core/platform/macros.h in order to keep this .h file independent -// of any other includes. -// #ifdef SWIG -// #define TF_CAPI_EXPORT -// #else -// #if defined(_WIN32) -// #ifdef TF_COMPILE_LIBRARY -// #define TF_CAPI_EXPORT __declspec(dllexport) -// #else -// #define TF_CAPI_EXPORT __declspec(dllimport) -// #endif // TF_COMPILE_LIBRARY -// #else -// #define TF_CAPI_EXPORT __attribute__((visibility("default"))) -// #endif // _WIN32 -// #endif // SWIG - -// #ifdef __cplusplus -// Targeting ../TF_AllocatorAttributes.java - - - -public static native @MemberGetter int TF_ALLOCATOR_ATTRIBUTES_STRUCT_SIZE(); -public static final int TF_ALLOCATOR_ATTRIBUTES_STRUCT_SIZE = TF_ALLOCATOR_ATTRIBUTES_STRUCT_SIZE(); -// Targeting ../TF_Tensor.java - - -// Targeting ../Deallocator_Pointer_long_Pointer.java - - -public static native TF_Tensor TF_NewTensor( - @Cast("TF_DataType") int arg0, @Cast("const int64_t*") LongPointer dims, int num_dims, Pointer data, @Cast("size_t") long len, - Deallocator_Pointer_long_Pointer deallocator, - Pointer deallocator_arg); -public static native TF_Tensor TF_NewTensor( - @Cast("TF_DataType") int arg0, @Cast("const int64_t*") LongBuffer dims, int num_dims, Pointer data, @Cast("size_t") long len, - Deallocator_Pointer_long_Pointer deallocator, - Pointer deallocator_arg); -public static native TF_Tensor TF_NewTensor( - @Cast("TF_DataType") int arg0, @Cast("const int64_t*") long[] dims, int num_dims, Pointer data, @Cast("size_t") long len, - Deallocator_Pointer_long_Pointer deallocator, - Pointer deallocator_arg); - -// Allocate and return a new Tensor. -// -// This function is an alternative to TF_NewTensor and should be used when -// memory is allocated to pass the Tensor to the C API. The allocated memory -// satisfies TensorFlow's memory alignment preferences and should be preferred -// over calling malloc and free. -// -// The caller must set the Tensor values by writing them to the pointer returned -// by TF_TensorData with length TF_TensorByteSize. -public static native TF_Tensor TF_AllocateTensor(@Cast("TF_DataType") int arg0, - @Cast("const int64_t*") LongPointer dims, - int num_dims, @Cast("size_t") long len); -public static native TF_Tensor TF_AllocateTensor(@Cast("TF_DataType") int arg0, - @Cast("const int64_t*") LongBuffer dims, - int num_dims, @Cast("size_t") long len); -public static native TF_Tensor TF_AllocateTensor(@Cast("TF_DataType") int arg0, - @Cast("const int64_t*") long[] dims, - int num_dims, @Cast("size_t") long len); - -// Deletes `tensor` and returns a new TF_Tensor with the same content if -// possible. Returns nullptr and leaves `tensor` untouched if not. -public static native TF_Tensor TF_TensorMaybeMove(TF_Tensor tensor); - -// Destroy a tensor. -public static native void TF_DeleteTensor(TF_Tensor arg0); - -// Return the type of a tensor element. -public static native @Cast("TF_DataType") int TF_TensorType(@Const TF_Tensor arg0); - -// Return the number of dimensions that the tensor has. -public static native int TF_NumDims(@Const TF_Tensor arg0); - -// Return the length of the tensor in the "dim_index" dimension. -// REQUIRES: 0 <= dim_index < TF_NumDims(tensor) -public static native @Cast("int64_t") long TF_Dim(@Const TF_Tensor tensor, int dim_index); - -// Return the size of the underlying data in bytes. -public static native @Cast("size_t") long TF_TensorByteSize(@Const TF_Tensor arg0); - -// Return a pointer to the underlying data buffer. -public static native Pointer TF_TensorData(@Const TF_Tensor arg0); - -// Returns the number of elements in the tensor. -public static native @Cast("int64_t") long TF_TensorElementCount(@Const TF_Tensor tensor); - -// Copy the internal data representation of `from` to `to`. `new_dims` and -// `num_new_dims` specify the new shape of the `to` tensor, `type` specifies its -// data type. On success, *status is set to TF_OK and the two tensors share the -// same data buffer. -// -// This call requires that the `from` tensor and the given type and shape (dims -// and num_dims) are "compatible" (i.e. they occupy the same number of bytes). -// Specifically, given from_type_size = TF_DataTypeSize(TF_TensorType(from)): -// -// ShapeElementCount(dims, num_dims) * TF_DataTypeSize(type) -// -// must equal -// -// TF_TensorElementCount(from) * from_type_size -// -// where TF_ShapeElementCount would be the number of elements in a tensor with -// the given shape. -// -// In addition, this function requires: -// * TF_DataTypeSize(TF_TensorType(from)) != 0 -// * TF_DataTypeSize(type) != 0 -// -// If any of the requirements are not met, *status is set to -// TF_INVALID_ARGUMENT. -public static native void TF_TensorBitcastFrom(@Const TF_Tensor from, - @Cast("TF_DataType") int type, TF_Tensor to, - @Cast("const int64_t*") LongPointer new_dims, - int num_new_dims, - TF_Status status); -public static native void TF_TensorBitcastFrom(@Const TF_Tensor from, - @Cast("TF_DataType") int type, TF_Tensor to, - @Cast("const int64_t*") LongBuffer new_dims, - int num_new_dims, - TF_Status status); -public static native void TF_TensorBitcastFrom(@Const TF_Tensor from, - @Cast("TF_DataType") int type, TF_Tensor to, - @Cast("const int64_t*") long[] new_dims, - int num_new_dims, - TF_Status status); - -// Returns bool iff this tensor is aligned. -public static native @Cast("bool") boolean TF_TensorIsAligned(@Const TF_Tensor arg0); - -// #ifdef __cplusplus /* end extern "C" */ -// #endif - -// #endif // TENSORFLOW_C_TF_TENSOR_H_ - - -// Parsed from tensorflow/c/tf_tstring.h - -/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -==============================================================================*/ -// #ifndef TENSORFLOW_C_TF_TSTRING_H_ -// #define TENSORFLOW_C_TF_TSTRING_H_ - -// #include "tensorflow/c/tf_tensor.h" -// #include "tensorflow/core/platform/ctstring.h" - -// #ifdef SWIG -// #define TF_CAPI_EXPORT -// #else -// #if defined(_WIN32) -// #ifdef TF_COMPILE_LIBRARY -// #define TF_CAPI_EXPORT __declspec(dllexport) -// #else -// #define TF_CAPI_EXPORT __declspec(dllimport) -// #endif // TF_COMPILE_LIBRARY -// #else -// #define TF_CAPI_EXPORT __attribute__((visibility("default"))) -// #endif // _WIN32 -// #endif // SWIG - -// #ifdef __cplusplus -// #endif - -public static native void TF_StringInit(TF_TString t); - -public static native void TF_StringCopy(TF_TString dst, @Cast("const char*") BytePointer src, - @Cast("size_t") long size); -public static native void TF_StringCopy(TF_TString dst, String src, - @Cast("size_t") long size); - -public static native void TF_StringAssignView(TF_TString dst, @Cast("const char*") BytePointer src, - @Cast("size_t") long size); -public static native void TF_StringAssignView(TF_TString dst, String src, - @Cast("size_t") long size); - -public static native @Cast("const char*") BytePointer TF_StringGetDataPointer( - @Const TF_TString tstr); - -public static native @Cast("TF_TString_Type") int TF_StringGetType(@Const TF_TString str); - -public static native @Cast("size_t") long TF_StringGetSize(@Const TF_TString tstr); - -public static native @Cast("size_t") long TF_StringGetCapacity(@Const TF_TString str); - -public static native void TF_StringDealloc(TF_TString tstr); - -// #ifdef __cplusplus /* end extern "C" */ -// #endif - -// #endif // THIRD_PARTY_TENSORFLOW_C_TF_TSTRING_H_ - - -// Parsed from tensorflow/c/c_api.h - -/* Copyright 2015 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -==============================================================================*/ - -// #ifndef TENSORFLOW_C_C_API_H_ -// #define TENSORFLOW_C_C_API_H_ - -// #include -// #include - -// #include "tensorflow/c/tf_attrtype.h" -// #include "tensorflow/c/tf_datatype.h" -// #include "tensorflow/c/tf_status.h" -// #include "tensorflow/c/tf_tensor.h" -// #include "tensorflow/c/tf_tstring.h" - -// -------------------------------------------------------------------------- -// C API for TensorFlow. -// -// The API leans towards simplicity and uniformity instead of convenience -// since most usage will be by language specific wrappers. -// -// Conventions: -// * We use the prefix TF_ for everything in the API. -// * Objects are always passed around as pointers to opaque structs -// and these structs are allocated/deallocated via the API. -// * TF_Status holds error information. It is an object type -// and therefore is passed around as a pointer to an opaque -// struct as mentioned above. -// * Every call that has a TF_Status* argument clears it on success -// and fills it with error info on failure. -// * unsigned char is used for booleans (instead of the 'bool' type). -// In C++ bool is a keyword while in C99 bool is a macro defined -// in stdbool.h. It is possible for the two to be inconsistent. -// For example, neither the C99 nor the C++11 standard force a byte -// size on the bool type, so the macro defined in stdbool.h could -// be inconsistent with the bool keyword in C++. Thus, the use -// of stdbool.h is avoided and unsigned char is used instead. -// * size_t is used to represent byte sizes of objects that are -// materialized in the address space of the calling process. -// * int is used as an index into arrays. -// * Deletion functions are safe to call on nullptr. -// -// Questions left to address: -// * Might at some point need a way for callers to provide their own Env. -// * Maybe add TF_TensorShape that encapsulates dimension info. -// -// Design decisions made: -// * Backing store for tensor memory has an associated deallocation -// function. This deallocation function will point to client code -// for tensors populated by the client. So the client can do things -// like shadowing a numpy array. -// * We do not provide TF_OK since it is not strictly necessary and we -// are not optimizing for convenience. -// * We make assumption that one session has one graph. This should be -// fine since we have the ability to run sub-graphs. -// * We could allow NULL for some arguments (e.g., NULL options arg). -// However since convenience is not a primary goal, we don't do this. -// * Devices are not in this API. Instead, they are created/used internally -// and the API just provides high level controls over the number of -// devices of each type. - -// Macro to control visibility of exported symbols in the shared library (.so, -// .dylib, .dll). -// This duplicates the TF_EXPORT macro definition in -// tensorflow/core/platform/macros.h in order to keep this .h file independent -// of any other includes. -// #ifdef SWIG -// #define TF_CAPI_EXPORT -// #else -// #if defined(_WIN32) -// #ifdef TF_COMPILE_LIBRARY -// #define TF_CAPI_EXPORT __declspec(dllexport) -// #else -// #define TF_CAPI_EXPORT __declspec(dllimport) -// #endif // TF_COMPILE_LIBRARY -// #else -// #define TF_CAPI_EXPORT __attribute__((visibility("default"))) -// #endif // _WIN32 -// #endif // SWIG - -// #ifdef __cplusplus -// #endif - -// -------------------------------------------------------------------------- -// TF_Version returns a string describing version information of the -// TensorFlow library. TensorFlow uses semantic versioning. -public static native @Cast("const char*") BytePointer TF_Version(); -// Targeting ../TF_Buffer.java - - - -// Makes a copy of the input and sets an appropriate deallocator. Useful for -// passing in read-only, input protobufs. -public static native TF_Buffer TF_NewBufferFromString(@Const Pointer proto, - @Cast("size_t") long proto_len); - -// Useful for passing *out* a protobuf. -public static native TF_Buffer TF_NewBuffer(); - -public static native void TF_DeleteBuffer(TF_Buffer arg0); - -public static native @ByVal TF_Buffer TF_GetBuffer(TF_Buffer buffer); - -// Parsing a serialized TensorProto into a TF_Tensor. -public static native void TF_TensorFromProto(@Const TF_Buffer from, - TF_Tensor to, TF_Status status); -// Targeting ../TF_StringView.java - - -// Targeting ../TF_SessionOptions.java - - - -// Return a new options object. -public static native TF_SessionOptions TF_NewSessionOptions(); - -// Set the target in TF_SessionOptions.options. -// target can be empty, a single entry, or a comma separated list of entries. -// Each entry is in one of the following formats : -// "local" -// ip:port -// host:port -public static native void TF_SetTarget(TF_SessionOptions options, - @Cast("const char*") BytePointer target); -public static native void TF_SetTarget(TF_SessionOptions options, - String target); - -// Set the config in TF_SessionOptions.options. -// config should be a serialized tensorflow.ConfigProto proto. -// If config was not parsed successfully as a ConfigProto, record the -// error information in *status. -public static native void TF_SetConfig(TF_SessionOptions options, - @Const Pointer proto, @Cast("size_t") long proto_len, - TF_Status status); - -// Destroy an options object. -public static native void TF_DeleteSessionOptions(TF_SessionOptions arg0); - -// TODO(jeff,sanjay): -// - export functions to set Config fields - -// -------------------------------------------------------------------------- -// The new graph construction API, still under development. - -// Represents a computation graph. Graphs may be shared between sessions. -// Graphs are thread-safe when used as directed below. - -// Return a new graph object. -public static native TF_Graph TF_NewGraph(); - -// Destroy an options object. Graph will be deleted once no more -// TFSession's are referencing it. -public static native void TF_DeleteGraph(TF_Graph arg0); - -// Operation being built. The underlying graph must outlive this. - -// Operation that has been added to the graph. Valid until the graph is -// deleted -- in particular adding a new operation to the graph does not -// invalidate old TF_Operation* pointers. -// Targeting ../TF_Input.java - - -// Targeting ../TF_Output.java - - -// Targeting ../TF_Function.java - - -// Targeting ../TF_FunctionOptions.java - - - -// Sets the shape of the Tensor referenced by `output` in `graph` to -// the shape described by `dims` and `num_dims`. -// -// If the number of dimensions is unknown, `num_dims` must be set to -// -1 and `dims` can be null. If a dimension is unknown, the -// corresponding entry in the `dims` array must be -1. -// -// This does not overwrite the existing shape associated with `output`, -// but merges the input shape with the existing shape. For example, -// setting a shape of [-1, 2] with an existing shape [2, -1] would set -// a final shape of [2, 2] based on shape merging semantics. -// -// Returns an error into `status` if: -// * `output` is not in `graph`. -// * An invalid shape is being set (e.g., the shape being set -// is incompatible with the existing shape). -public static native void TF_GraphSetTensorShape(TF_Graph graph, - @ByVal TF_Output output, - @Cast("const int64_t*") LongPointer dims, - int num_dims, - TF_Status status); -public static native void TF_GraphSetTensorShape(TF_Graph graph, - @ByVal TF_Output output, - @Cast("const int64_t*") LongBuffer dims, - int num_dims, - TF_Status status); -public static native void TF_GraphSetTensorShape(TF_Graph graph, - @ByVal TF_Output output, - @Cast("const int64_t*") long[] dims, - int num_dims, - TF_Status status); - -// Returns the number of dimensions of the Tensor referenced by `output` -// in `graph`. -// -// If the number of dimensions in the shape is unknown, returns -1. -// -// Returns an error into `status` if: -// * `output` is not in `graph`. -public static native int TF_GraphGetTensorNumDims(TF_Graph graph, - @ByVal TF_Output output, - TF_Status status); - -// Returns the shape of the Tensor referenced by `output` in `graph` -// into `dims`. `dims` must be an array large enough to hold `num_dims` -// entries (e.g., the return value of TF_GraphGetTensorNumDims). -// -// If the number of dimensions in the shape is unknown or the shape is -// a scalar, `dims` will remain untouched. Otherwise, each element of -// `dims` will be set corresponding to the size of the dimension. An -// unknown dimension is represented by `-1`. -// -// Returns an error into `status` if: -// * `output` is not in `graph`. -// * `num_dims` does not match the actual number of dimensions. -public static native void TF_GraphGetTensorShape(TF_Graph graph, - @ByVal TF_Output output, - @Cast("int64_t*") LongPointer dims, int num_dims, - TF_Status status); -public static native void TF_GraphGetTensorShape(TF_Graph graph, - @ByVal TF_Output output, - @Cast("int64_t*") LongBuffer dims, int num_dims, - TF_Status status); -public static native void TF_GraphGetTensorShape(TF_Graph graph, - @ByVal TF_Output output, - @Cast("int64_t*") long[] dims, int num_dims, - TF_Status status); - -// Creates a new operation - see `TF_NewOperation` for more details. -// -// The lock for `graph` must be held when calling this function. -// -// Unless implementing advanced behavior, like custom gradient functions, you -// most likely need to call `TF_NewOperation` instead. -public static native TF_OperationDescription TF_NewOperationLocked( - TF_Graph graph, @Cast("const char*") BytePointer op_type, @Cast("const char*") BytePointer oper_name); -public static native TF_OperationDescription TF_NewOperationLocked( - TF_Graph graph, String op_type, String oper_name); - -// Operation will only be added to *graph when TF_FinishOperation() is -// called (assuming TF_FinishOperation() does not return an error). -// *graph must not be deleted until after TF_FinishOperation() is -// called. -public static native TF_OperationDescription TF_NewOperation( - TF_Graph graph, @Cast("const char*") BytePointer op_type, @Cast("const char*") BytePointer oper_name); -public static native TF_OperationDescription TF_NewOperation( - TF_Graph graph, String op_type, String oper_name); - -// Specify the device for `desc`. Defaults to empty, meaning unconstrained. -public static native void TF_SetDevice(TF_OperationDescription desc, - @Cast("const char*") BytePointer device); -public static native void TF_SetDevice(TF_OperationDescription desc, - String device); - -// The calls to TF_AddInput and TF_AddInputList must match (in number, -// order, and type) the op declaration. For example, the "Concat" op -// has registration: -// REGISTER_OP("Concat") -// .Input("concat_dim: int32") -// .Input("values: N * T") -// .Output("output: T") -// .Attr("N: int >= 2") -// .Attr("T: type"); -// that defines two inputs, "concat_dim" and "values" (in that order). -// You must use TF_AddInput() for the first input (since it takes a -// single tensor), and TF_AddInputList() for the second input (since -// it takes a list, even if you were to pass a list with a single -// tensor), as in: -// TF_OperationDescription* desc = TF_NewOperation(graph, "Concat", "c"); -// TF_Output concat_dim_input = {...}; -// TF_AddInput(desc, concat_dim_input); -// TF_Output values_inputs[5] = {{...}, ..., {...}}; -// TF_AddInputList(desc, values_inputs, 5); - -// For inputs that take a single tensor. -public static native void TF_AddInput(TF_OperationDescription desc, - @ByVal TF_Output input); - -// For inputs that take a list of tensors. -// inputs must point to TF_Output[num_inputs]. -public static native void TF_AddInputList(TF_OperationDescription desc, - @Const TF_Output inputs, - int num_inputs); - -// Call once per control input to `desc`. -public static native void TF_AddControlInput(TF_OperationDescription desc, - TF_Operation input); - -// Request that `desc` be co-located on the device where `op` -// is placed. -// -// Use of this is discouraged since the implementation of device placement is -// subject to change. Primarily intended for internal libraries -public static native void TF_ColocateWith(TF_OperationDescription desc, - TF_Operation op); - -// Call some TF_SetAttr*() function for every attr that is not -// inferred from an input and doesn't have a default value you wish to -// keep. - -// `value` must point to a string of length `length` bytes. -public static native void TF_SetAttrString(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Const Pointer value, @Cast("size_t") long length); -public static native void TF_SetAttrString(TF_OperationDescription desc, - String attr_name, - @Const Pointer value, @Cast("size_t") long length); -// `values` and `lengths` each must have lengths `num_values`. -// `values[i]` must point to a string of length `lengths[i]` bytes. -public static native void TF_SetAttrStringList(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("const void*const*") PointerPointer values, - @Cast("const size_t*") SizeTPointer lengths, - int num_values); -public static native void TF_SetAttrStringList(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("const void*const*") @ByPtrPtr Pointer values, - @Cast("const size_t*") SizeTPointer lengths, - int num_values); -public static native void TF_SetAttrStringList(TF_OperationDescription desc, - String attr_name, - @Cast("const void*const*") @ByPtrPtr Pointer values, - @Cast("const size_t*") SizeTPointer lengths, - int num_values); -public static native void TF_SetAttrInt(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, @Cast("int64_t") long value); -public static native void TF_SetAttrInt(TF_OperationDescription desc, - String attr_name, @Cast("int64_t") long value); -public static native void TF_SetAttrIntList(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("const int64_t*") LongPointer values, - int num_values); -public static native void TF_SetAttrIntList(TF_OperationDescription desc, - String attr_name, - @Cast("const int64_t*") LongBuffer values, - int num_values); -public static native void TF_SetAttrIntList(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("const int64_t*") long[] values, - int num_values); -public static native void TF_SetAttrIntList(TF_OperationDescription desc, - String attr_name, - @Cast("const int64_t*") LongPointer values, - int num_values); -public static native void TF_SetAttrIntList(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("const int64_t*") LongBuffer values, - int num_values); -public static native void TF_SetAttrIntList(TF_OperationDescription desc, - String attr_name, - @Cast("const int64_t*") long[] values, - int num_values); -public static native void TF_SetAttrFloat(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, float value); -public static native void TF_SetAttrFloat(TF_OperationDescription desc, - String attr_name, float value); -public static native void TF_SetAttrFloatList(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Const FloatPointer values, - int num_values); -public static native void TF_SetAttrFloatList(TF_OperationDescription desc, - String attr_name, - @Const FloatBuffer values, - int num_values); -public static native void TF_SetAttrFloatList(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Const float[] values, - int num_values); -public static native void TF_SetAttrFloatList(TF_OperationDescription desc, - String attr_name, - @Const FloatPointer values, - int num_values); -public static native void TF_SetAttrFloatList(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Const FloatBuffer values, - int num_values); -public static native void TF_SetAttrFloatList(TF_OperationDescription desc, - String attr_name, - @Const float[] values, - int num_values); -public static native void TF_SetAttrBool(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("unsigned char") byte value); -public static native void TF_SetAttrBool(TF_OperationDescription desc, - String attr_name, - @Cast("unsigned char") byte value); -public static native void TF_SetAttrBoolList(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("const unsigned char*") BytePointer values, - int num_values); -public static native void TF_SetAttrBoolList(TF_OperationDescription desc, - String attr_name, - @Cast("const unsigned char*") ByteBuffer values, - int num_values); -public static native void TF_SetAttrBoolList(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("const unsigned char*") byte[] values, - int num_values); -public static native void TF_SetAttrBoolList(TF_OperationDescription desc, - String attr_name, - @Cast("const unsigned char*") BytePointer values, - int num_values); -public static native void TF_SetAttrBoolList(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("const unsigned char*") ByteBuffer values, - int num_values); -public static native void TF_SetAttrBoolList(TF_OperationDescription desc, - String attr_name, - @Cast("const unsigned char*") byte[] values, - int num_values); -public static native void TF_SetAttrType(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("TF_DataType") int value); -public static native void TF_SetAttrType(TF_OperationDescription desc, - String attr_name, - @Cast("TF_DataType") int value); -public static native void TF_SetAttrTypeList(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("const TF_DataType*") IntPointer values, - int num_values); -public static native void TF_SetAttrTypeList(TF_OperationDescription desc, - String attr_name, - @Cast("const TF_DataType*") IntBuffer values, - int num_values); -public static native void TF_SetAttrTypeList(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("const TF_DataType*") int[] values, - int num_values); -public static native void TF_SetAttrTypeList(TF_OperationDescription desc, - String attr_name, - @Cast("const TF_DataType*") IntPointer values, - int num_values); -public static native void TF_SetAttrTypeList(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("const TF_DataType*") IntBuffer values, - int num_values); -public static native void TF_SetAttrTypeList(TF_OperationDescription desc, - String attr_name, - @Cast("const TF_DataType*") int[] values, - int num_values); -public static native void TF_SetAttrPlaceholder(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("const char*") BytePointer placeholder); -public static native void TF_SetAttrPlaceholder(TF_OperationDescription desc, - String attr_name, - String placeholder); - -// Set a 'func' attribute to the specified name. -// `value` must point to a string of length `length` bytes. -public static native void TF_SetAttrFuncName(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("const char*") BytePointer value, @Cast("size_t") long length); -public static native void TF_SetAttrFuncName(TF_OperationDescription desc, - String attr_name, - String value, @Cast("size_t") long length); - -// Set `num_dims` to -1 to represent "unknown rank". Otherwise, -// `dims` points to an array of length `num_dims`. `dims[i]` must be -// >= -1, with -1 meaning "unknown dimension". -public static native void TF_SetAttrShape(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("const int64_t*") LongPointer dims, int num_dims); -public static native void TF_SetAttrShape(TF_OperationDescription desc, - String attr_name, - @Cast("const int64_t*") LongBuffer dims, int num_dims); -public static native void TF_SetAttrShape(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("const int64_t*") long[] dims, int num_dims); -public static native void TF_SetAttrShape(TF_OperationDescription desc, - String attr_name, - @Cast("const int64_t*") LongPointer dims, int num_dims); -public static native void TF_SetAttrShape(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("const int64_t*") LongBuffer dims, int num_dims); -public static native void TF_SetAttrShape(TF_OperationDescription desc, - String attr_name, - @Cast("const int64_t*") long[] dims, int num_dims); -// `dims` and `num_dims` must point to arrays of length `num_shapes`. -// Set `num_dims[i]` to -1 to represent "unknown rank". Otherwise, -// `dims[i]` points to an array of length `num_dims[i]`. `dims[i][j]` -// must be >= -1, with -1 meaning "unknown dimension". -public static native void TF_SetAttrShapeList(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("const int64_t*const*") PointerPointer dims, - @Const IntPointer num_dims, - int num_shapes); -public static native void TF_SetAttrShapeList(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("const int64_t*const*") @ByPtrPtr LongPointer dims, - @Const IntPointer num_dims, - int num_shapes); -public static native void TF_SetAttrShapeList(TF_OperationDescription desc, - String attr_name, - @Cast("const int64_t*const*") @ByPtrPtr LongBuffer dims, - @Const IntBuffer num_dims, - int num_shapes); -public static native void TF_SetAttrShapeList(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("const int64_t*const*") @ByPtrPtr long[] dims, - @Const int[] num_dims, - int num_shapes); -public static native void TF_SetAttrShapeList(TF_OperationDescription desc, - String attr_name, - @Cast("const int64_t*const*") @ByPtrPtr LongPointer dims, - @Const IntPointer num_dims, - int num_shapes); -public static native void TF_SetAttrShapeList(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("const int64_t*const*") @ByPtrPtr LongBuffer dims, - @Const IntBuffer num_dims, - int num_shapes); -public static native void TF_SetAttrShapeList(TF_OperationDescription desc, - String attr_name, - @Cast("const int64_t*const*") @ByPtrPtr long[] dims, - @Const int[] num_dims, - int num_shapes); -// `proto` must point to an array of `proto_len` bytes representing a -// binary-serialized TensorShapeProto. -public static native void TF_SetAttrTensorShapeProto( - TF_OperationDescription desc, @Cast("const char*") BytePointer attr_name, @Const Pointer proto, - @Cast("size_t") long proto_len, TF_Status status); -public static native void TF_SetAttrTensorShapeProto( - TF_OperationDescription desc, String attr_name, @Const Pointer proto, - @Cast("size_t") long proto_len, TF_Status status); -// `protos` and `proto_lens` must point to arrays of length `num_shapes`. -// `protos[i]` must point to an array of `proto_lens[i]` bytes -// representing a binary-serialized TensorShapeProto. -public static native void TF_SetAttrTensorShapeProtoList( - TF_OperationDescription desc, @Cast("const char*") BytePointer attr_name, - @Cast("const void*const*") PointerPointer protos, @Cast("const size_t*") SizeTPointer proto_lens, int num_shapes, - TF_Status status); -public static native void TF_SetAttrTensorShapeProtoList( - TF_OperationDescription desc, @Cast("const char*") BytePointer attr_name, - @Cast("const void*const*") @ByPtrPtr Pointer protos, @Cast("const size_t*") SizeTPointer proto_lens, int num_shapes, - TF_Status status); -public static native void TF_SetAttrTensorShapeProtoList( - TF_OperationDescription desc, String attr_name, - @Cast("const void*const*") @ByPtrPtr Pointer protos, @Cast("const size_t*") SizeTPointer proto_lens, int num_shapes, - TF_Status status); - -public static native void TF_SetAttrTensor(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - TF_Tensor value, - TF_Status status); -public static native void TF_SetAttrTensor(TF_OperationDescription desc, - String attr_name, - TF_Tensor value, - TF_Status status); -public static native void TF_SetAttrTensorList(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Cast("TF_Tensor*const*") PointerPointer values, - int num_values, - TF_Status status); -public static native void TF_SetAttrTensorList(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @ByPtrPtr TF_Tensor values, - int num_values, - TF_Status status); -public static native void TF_SetAttrTensorList(TF_OperationDescription desc, - String attr_name, - @ByPtrPtr TF_Tensor values, - int num_values, - TF_Status status); - -// `proto` should point to a sequence of bytes of length `proto_len` -// representing a binary serialization of an AttrValue protocol -// buffer. -public static native void TF_SetAttrValueProto(TF_OperationDescription desc, - @Cast("const char*") BytePointer attr_name, - @Const Pointer proto, - @Cast("size_t") long proto_len, - TF_Status status); -public static native void TF_SetAttrValueProto(TF_OperationDescription desc, - String attr_name, - @Const Pointer proto, - @Cast("size_t") long proto_len, - TF_Status status); - -// Adds this operation to the graph - see `TF_FinishOperation` for more details. -// -// The lock for `graph` must be held when calling this function. -// -// Unless implementing advanced behavior, like custom gradient functions, you -// most likely need to call `TF_FinishOperation` instead. -public static native TF_Operation TF_FinishOperationLocked( - TF_OperationDescription desc, TF_Status status); - -// If this function succeeds: -// * *status is set to an OK value, -// * a TF_Operation is added to the graph, -// * a non-null value pointing to the added operation is returned -- -// this value is valid until the underlying graph is deleted. -// Otherwise: -// * *status is set to a non-OK value, -// * the graph is not modified, -// * a null value is returned. -// In either case, it deletes `desc`. -public static native TF_Operation TF_FinishOperation( - TF_OperationDescription desc, TF_Status status); - -// TF_Operation functions. Operations are immutable once created, so -// these are all query functions. - -public static native @Cast("const char*") BytePointer TF_OperationName(TF_Operation oper); -public static native @Cast("const char*") BytePointer TF_OperationOpType(TF_Operation oper); -public static native @Cast("const char*") BytePointer TF_OperationDevice(TF_Operation oper); - -public static native int TF_OperationNumOutputs(TF_Operation oper); -public static native @Cast("TF_DataType") int TF_OperationOutputType(@ByVal TF_Output oper_out); -public static native int TF_OperationOutputListLength(TF_Operation oper, - @Cast("const char*") BytePointer arg_name, - TF_Status status); -public static native int TF_OperationOutputListLength(TF_Operation oper, - String arg_name, - TF_Status status); - -public static native int TF_OperationNumInputs(TF_Operation oper); -public static native @Cast("TF_DataType") int TF_OperationInputType(@ByVal TF_Input oper_in); -public static native int TF_OperationInputListLength(TF_Operation oper, - @Cast("const char*") BytePointer arg_name, - TF_Status status); -public static native int TF_OperationInputListLength(TF_Operation oper, - String arg_name, - TF_Status status); - -// In this code: -// TF_Output producer = TF_OperationInput(consumer); -// There is an edge from producer.oper's output (given by -// producer.index) to consumer.oper's input (given by consumer.index). -public static native @ByVal TF_Output TF_OperationInput(@ByVal TF_Input oper_in); - -// Get list of all inputs of a specific operation. `inputs` must point to -// an array of length at least `max_inputs` (ideally set to -// TF_OperationNumInputs(oper)). Beware that a concurrent -// modification of the graph can increase the number of inputs of -// an operation. -public static native void TF_OperationAllInputs(TF_Operation oper, - TF_Output inputs, - int max_inputs); - -// Get the number of current consumers of a specific output of an -// operation. Note that this number can change when new operations -// are added to the graph. -public static native int TF_OperationOutputNumConsumers(@ByVal TF_Output oper_out); - -// Get list of all current consumers of a specific output of an -// operation. `consumers` must point to an array of length at least -// `max_consumers` (ideally set to -// TF_OperationOutputNumConsumers(oper_out)). Beware that a concurrent -// modification of the graph can increase the number of consumers of -// an operation. Returns the number of output consumers (should match -// TF_OperationOutputNumConsumers(oper_out)). -public static native int TF_OperationOutputConsumers(@ByVal TF_Output oper_out, - TF_Input consumers, - int max_consumers); - -// Get the number of control inputs to an operation. -public static native int TF_OperationNumControlInputs(TF_Operation oper); - -// Get list of all control inputs to an operation. `control_inputs` must -// point to an array of length `max_control_inputs` (ideally set to -// TF_OperationNumControlInputs(oper)). Returns the number of control -// inputs (should match TF_OperationNumControlInputs(oper)). -public static native int TF_OperationGetControlInputs( - TF_Operation oper, @Cast("TF_Operation**") PointerPointer control_inputs, int max_control_inputs); -public static native int TF_OperationGetControlInputs( - TF_Operation oper, @ByPtrPtr TF_Operation control_inputs, int max_control_inputs); - -// Get the number of operations that have `*oper` as a control input. -// Note that this number can change when new operations are added to -// the graph. -public static native int TF_OperationNumControlOutputs(TF_Operation oper); - -// Get the list of operations that have `*oper` as a control input. -// `control_outputs` must point to an array of length at least -// `max_control_outputs` (ideally set to -// TF_OperationNumControlOutputs(oper)). Beware that a concurrent -// modification of the graph can increase the number of control -// outputs. Returns the number of control outputs (should match -// TF_OperationNumControlOutputs(oper)). -public static native int TF_OperationGetControlOutputs( - TF_Operation oper, @Cast("TF_Operation**") PointerPointer control_outputs, - int max_control_outputs); -public static native int TF_OperationGetControlOutputs( - TF_Operation oper, @ByPtrPtr TF_Operation control_outputs, - int max_control_outputs); -// Targeting ../TF_AttrMetadata.java - - - -// Returns metadata about the value of the attribute `attr_name` of `oper`. -public static native @ByVal TF_AttrMetadata TF_OperationGetAttrMetadata( - TF_Operation oper, @Cast("const char*") BytePointer attr_name, TF_Status status); -public static native @ByVal TF_AttrMetadata TF_OperationGetAttrMetadata( - TF_Operation oper, String attr_name, TF_Status status); - -// Fills in `value` with the value of the attribute `attr_name`. `value` must -// point to an array of length at least `max_length` (ideally set to -// TF_AttrMetadata.total_size from TF_OperationGetAttrMetadata(oper, -// attr_name)). -public static native void TF_OperationGetAttrString(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - Pointer value, - @Cast("size_t") long max_length, - TF_Status status); -public static native void TF_OperationGetAttrString(TF_Operation oper, - String attr_name, - Pointer value, - @Cast("size_t") long max_length, - TF_Status status); - -// Get the list of strings in the value of the attribute `attr_name`. Fills in -// `values` and `lengths`, each of which must point to an array of length at -// least `max_values`. -// -// The elements of values will point to addresses in `storage` which must be at -// least `storage_size` bytes in length. Ideally, max_values would be set to -// TF_AttrMetadata.list_size and `storage` would be at least -// TF_AttrMetadata.total_size, obtained from TF_OperationGetAttrMetadata(oper, -// attr_name). -// -// Fails if storage_size is too small to hold the requested number of strings. -public static native void TF_OperationGetAttrStringList( - TF_Operation oper, @Cast("const char*") BytePointer attr_name, @Cast("void**") PointerPointer values, @Cast("size_t*") SizeTPointer lengths, - int max_values, Pointer storage, @Cast("size_t") long storage_size, TF_Status status); -public static native void TF_OperationGetAttrStringList( - TF_Operation oper, @Cast("const char*") BytePointer attr_name, @Cast("void**") @ByPtrPtr Pointer values, @Cast("size_t*") SizeTPointer lengths, - int max_values, Pointer storage, @Cast("size_t") long storage_size, TF_Status status); -public static native void TF_OperationGetAttrStringList( - TF_Operation oper, String attr_name, @Cast("void**") @ByPtrPtr Pointer values, @Cast("size_t*") SizeTPointer lengths, - int max_values, Pointer storage, @Cast("size_t") long storage_size, TF_Status status); - -public static native void TF_OperationGetAttrInt(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("int64_t*") LongPointer value, - TF_Status status); -public static native void TF_OperationGetAttrInt(TF_Operation oper, - String attr_name, - @Cast("int64_t*") LongBuffer value, - TF_Status status); -public static native void TF_OperationGetAttrInt(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("int64_t*") long[] value, - TF_Status status); -public static native void TF_OperationGetAttrInt(TF_Operation oper, - String attr_name, - @Cast("int64_t*") LongPointer value, - TF_Status status); -public static native void TF_OperationGetAttrInt(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("int64_t*") LongBuffer value, - TF_Status status); -public static native void TF_OperationGetAttrInt(TF_Operation oper, - String attr_name, - @Cast("int64_t*") long[] value, - TF_Status status); - -// Fills in `values` with the value of the attribute `attr_name` of `oper`. -// `values` must point to an array of length at least `max_values` (ideally set -// TF_AttrMetadata.list_size from TF_OperationGetAttrMetadata(oper, -// attr_name)). -public static native void TF_OperationGetAttrIntList(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("int64_t*") LongPointer values, - int max_values, - TF_Status status); -public static native void TF_OperationGetAttrIntList(TF_Operation oper, - String attr_name, - @Cast("int64_t*") LongBuffer values, - int max_values, - TF_Status status); -public static native void TF_OperationGetAttrIntList(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("int64_t*") long[] values, - int max_values, - TF_Status status); -public static native void TF_OperationGetAttrIntList(TF_Operation oper, - String attr_name, - @Cast("int64_t*") LongPointer values, - int max_values, - TF_Status status); -public static native void TF_OperationGetAttrIntList(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("int64_t*") LongBuffer values, - int max_values, - TF_Status status); -public static native void TF_OperationGetAttrIntList(TF_Operation oper, - String attr_name, - @Cast("int64_t*") long[] values, - int max_values, - TF_Status status); - -public static native void TF_OperationGetAttrFloat(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - FloatPointer value, - TF_Status status); -public static native void TF_OperationGetAttrFloat(TF_Operation oper, - String attr_name, - FloatBuffer value, - TF_Status status); -public static native void TF_OperationGetAttrFloat(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - float[] value, - TF_Status status); -public static native void TF_OperationGetAttrFloat(TF_Operation oper, - String attr_name, - FloatPointer value, - TF_Status status); -public static native void TF_OperationGetAttrFloat(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - FloatBuffer value, - TF_Status status); -public static native void TF_OperationGetAttrFloat(TF_Operation oper, - String attr_name, - float[] value, - TF_Status status); - -// Fills in `values` with the value of the attribute `attr_name` of `oper`. -// `values` must point to an array of length at least `max_values` (ideally set -// to TF_AttrMetadata.list_size from TF_OperationGetAttrMetadata(oper, -// attr_name)). -public static native void TF_OperationGetAttrFloatList(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - FloatPointer values, - int max_values, - TF_Status status); -public static native void TF_OperationGetAttrFloatList(TF_Operation oper, - String attr_name, - FloatBuffer values, - int max_values, - TF_Status status); -public static native void TF_OperationGetAttrFloatList(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - float[] values, - int max_values, - TF_Status status); -public static native void TF_OperationGetAttrFloatList(TF_Operation oper, - String attr_name, - FloatPointer values, - int max_values, - TF_Status status); -public static native void TF_OperationGetAttrFloatList(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - FloatBuffer values, - int max_values, - TF_Status status); -public static native void TF_OperationGetAttrFloatList(TF_Operation oper, - String attr_name, - float[] values, - int max_values, - TF_Status status); - -public static native void TF_OperationGetAttrBool(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("unsigned char*") BytePointer value, - TF_Status status); -public static native void TF_OperationGetAttrBool(TF_Operation oper, - String attr_name, - @Cast("unsigned char*") ByteBuffer value, - TF_Status status); -public static native void TF_OperationGetAttrBool(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("unsigned char*") byte[] value, - TF_Status status); -public static native void TF_OperationGetAttrBool(TF_Operation oper, - String attr_name, - @Cast("unsigned char*") BytePointer value, - TF_Status status); -public static native void TF_OperationGetAttrBool(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("unsigned char*") ByteBuffer value, - TF_Status status); -public static native void TF_OperationGetAttrBool(TF_Operation oper, - String attr_name, - @Cast("unsigned char*") byte[] value, - TF_Status status); - -// Fills in `values` with the value of the attribute `attr_name` of `oper`. -// `values` must point to an array of length at least `max_values` (ideally set -// to TF_AttrMetadata.list_size from TF_OperationGetAttrMetadata(oper, -// attr_name)). -public static native void TF_OperationGetAttrBoolList(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("unsigned char*") BytePointer values, - int max_values, - TF_Status status); -public static native void TF_OperationGetAttrBoolList(TF_Operation oper, - String attr_name, - @Cast("unsigned char*") ByteBuffer values, - int max_values, - TF_Status status); -public static native void TF_OperationGetAttrBoolList(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("unsigned char*") byte[] values, - int max_values, - TF_Status status); -public static native void TF_OperationGetAttrBoolList(TF_Operation oper, - String attr_name, - @Cast("unsigned char*") BytePointer values, - int max_values, - TF_Status status); -public static native void TF_OperationGetAttrBoolList(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("unsigned char*") ByteBuffer values, - int max_values, - TF_Status status); -public static native void TF_OperationGetAttrBoolList(TF_Operation oper, - String attr_name, - @Cast("unsigned char*") byte[] values, - int max_values, - TF_Status status); - -public static native void TF_OperationGetAttrType(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("TF_DataType*") IntPointer value, - TF_Status status); -public static native void TF_OperationGetAttrType(TF_Operation oper, - String attr_name, - @Cast("TF_DataType*") IntBuffer value, - TF_Status status); -public static native void TF_OperationGetAttrType(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("TF_DataType*") int[] value, - TF_Status status); -public static native void TF_OperationGetAttrType(TF_Operation oper, - String attr_name, - @Cast("TF_DataType*") IntPointer value, - TF_Status status); -public static native void TF_OperationGetAttrType(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("TF_DataType*") IntBuffer value, - TF_Status status); -public static native void TF_OperationGetAttrType(TF_Operation oper, - String attr_name, - @Cast("TF_DataType*") int[] value, - TF_Status status); - -// Fills in `values` with the value of the attribute `attr_name` of `oper`. -// `values` must point to an array of length at least `max_values` (ideally set -// to TF_AttrMetadata.list_size from TF_OperationGetAttrMetadata(oper, -// attr_name)). -public static native void TF_OperationGetAttrTypeList(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("TF_DataType*") IntPointer values, - int max_values, - TF_Status status); -public static native void TF_OperationGetAttrTypeList(TF_Operation oper, - String attr_name, - @Cast("TF_DataType*") IntBuffer values, - int max_values, - TF_Status status); -public static native void TF_OperationGetAttrTypeList(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("TF_DataType*") int[] values, - int max_values, - TF_Status status); -public static native void TF_OperationGetAttrTypeList(TF_Operation oper, - String attr_name, - @Cast("TF_DataType*") IntPointer values, - int max_values, - TF_Status status); -public static native void TF_OperationGetAttrTypeList(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("TF_DataType*") IntBuffer values, - int max_values, - TF_Status status); -public static native void TF_OperationGetAttrTypeList(TF_Operation oper, - String attr_name, - @Cast("TF_DataType*") int[] values, - int max_values, - TF_Status status); - -// Fills in `value` with the value of the attribute `attr_name` of `oper`. -// `values` must point to an array of length at least `num_dims` (ideally set to -// TF_Attr_Meta.size from TF_OperationGetAttrMetadata(oper, attr_name)). -public static native void TF_OperationGetAttrShape(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("int64_t*") LongPointer value, - int num_dims, - TF_Status status); -public static native void TF_OperationGetAttrShape(TF_Operation oper, - String attr_name, - @Cast("int64_t*") LongBuffer value, - int num_dims, - TF_Status status); -public static native void TF_OperationGetAttrShape(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("int64_t*") long[] value, - int num_dims, - TF_Status status); -public static native void TF_OperationGetAttrShape(TF_Operation oper, - String attr_name, - @Cast("int64_t*") LongPointer value, - int num_dims, - TF_Status status); -public static native void TF_OperationGetAttrShape(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("int64_t*") LongBuffer value, - int num_dims, - TF_Status status); -public static native void TF_OperationGetAttrShape(TF_Operation oper, - String attr_name, - @Cast("int64_t*") long[] value, - int num_dims, - TF_Status status); - -// Fills in `dims` with the list of shapes in the attribute `attr_name` of -// `oper` and `num_dims` with the corresponding number of dimensions. On return, -// for every i where `num_dims[i]` > 0, `dims[i]` will be an array of -// `num_dims[i]` elements. A value of -1 for `num_dims[i]` indicates that the -// i-th shape in the list is unknown. -// -// The elements of `dims` will point to addresses in `storage` which must be -// large enough to hold at least `storage_size` int64_ts. Ideally, `num_shapes` -// would be set to TF_AttrMetadata.list_size and `storage_size` would be set to -// TF_AttrMetadata.total_size from TF_OperationGetAttrMetadata(oper, -// attr_name). -// -// Fails if storage_size is insufficient to hold the requested shapes. -public static native void TF_OperationGetAttrShapeList( - TF_Operation oper, @Cast("const char*") BytePointer attr_name, @Cast("int64_t**") PointerPointer dims, IntPointer num_dims, - int num_shapes, @Cast("int64_t*") LongPointer storage, int storage_size, TF_Status status); -public static native void TF_OperationGetAttrShapeList( - TF_Operation oper, @Cast("const char*") BytePointer attr_name, @Cast("int64_t**") @ByPtrPtr LongPointer dims, IntPointer num_dims, - int num_shapes, @Cast("int64_t*") LongPointer storage, int storage_size, TF_Status status); -public static native void TF_OperationGetAttrShapeList( - TF_Operation oper, String attr_name, @Cast("int64_t**") @ByPtrPtr LongBuffer dims, IntBuffer num_dims, - int num_shapes, @Cast("int64_t*") LongBuffer storage, int storage_size, TF_Status status); -public static native void TF_OperationGetAttrShapeList( - TF_Operation oper, @Cast("const char*") BytePointer attr_name, @Cast("int64_t**") @ByPtrPtr long[] dims, int[] num_dims, - int num_shapes, @Cast("int64_t*") long[] storage, int storage_size, TF_Status status); -public static native void TF_OperationGetAttrShapeList( - TF_Operation oper, String attr_name, @Cast("int64_t**") @ByPtrPtr LongPointer dims, IntPointer num_dims, - int num_shapes, @Cast("int64_t*") LongPointer storage, int storage_size, TF_Status status); -public static native void TF_OperationGetAttrShapeList( - TF_Operation oper, @Cast("const char*") BytePointer attr_name, @Cast("int64_t**") @ByPtrPtr LongBuffer dims, IntBuffer num_dims, - int num_shapes, @Cast("int64_t*") LongBuffer storage, int storage_size, TF_Status status); -public static native void TF_OperationGetAttrShapeList( - TF_Operation oper, String attr_name, @Cast("int64_t**") @ByPtrPtr long[] dims, int[] num_dims, - int num_shapes, @Cast("int64_t*") long[] storage, int storage_size, TF_Status status); - -// Sets `value` to the binary-serialized TensorShapeProto of the value of -// `attr_name` attribute of `oper`. -public static native void TF_OperationGetAttrTensorShapeProto( - TF_Operation oper, @Cast("const char*") BytePointer attr_name, TF_Buffer value, - TF_Status status); -public static native void TF_OperationGetAttrTensorShapeProto( - TF_Operation oper, String attr_name, TF_Buffer value, - TF_Status status); - -// Fills in `values` with binary-serialized TensorShapeProto values of the -// attribute `attr_name` of `oper`. `values` must point to an array of length at -// least `num_values` (ideally set to TF_AttrMetadata.list_size from -// TF_OperationGetAttrMetadata(oper, attr_name)). -public static native void TF_OperationGetAttrTensorShapeProtoList( - TF_Operation oper, @Cast("const char*") BytePointer attr_name, @Cast("TF_Buffer**") PointerPointer values, - int max_values, TF_Status status); -public static native void TF_OperationGetAttrTensorShapeProtoList( - TF_Operation oper, @Cast("const char*") BytePointer attr_name, @ByPtrPtr TF_Buffer values, - int max_values, TF_Status status); -public static native void TF_OperationGetAttrTensorShapeProtoList( - TF_Operation oper, String attr_name, @ByPtrPtr TF_Buffer values, - int max_values, TF_Status status); - -// Gets the TF_Tensor valued attribute of `attr_name` of `oper`. -// -// Allocates a new TF_Tensor which the caller is expected to take -// ownership of (and can deallocate using TF_DeleteTensor). -public static native void TF_OperationGetAttrTensor(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("TF_Tensor**") PointerPointer value, - TF_Status status); -public static native void TF_OperationGetAttrTensor(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @ByPtrPtr TF_Tensor value, - TF_Status status); -public static native void TF_OperationGetAttrTensor(TF_Operation oper, - String attr_name, - @ByPtrPtr TF_Tensor value, - TF_Status status); - -// Fills in `values` with the TF_Tensor values of the attribute `attr_name` of -// `oper`. `values` must point to an array of TF_Tensor* of length at least -// `max_values` (ideally set to TF_AttrMetadata.list_size from -// TF_OperationGetAttrMetadata(oper, attr_name)). -// -// The caller takes ownership of all the non-null TF_Tensor* entries in `values` -// (which can be deleted using TF_DeleteTensor(values[i])). -public static native void TF_OperationGetAttrTensorList(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @Cast("TF_Tensor**") PointerPointer values, - int max_values, - TF_Status status); -public static native void TF_OperationGetAttrTensorList(TF_Operation oper, - @Cast("const char*") BytePointer attr_name, - @ByPtrPtr TF_Tensor values, - int max_values, - TF_Status status); -public static native void TF_OperationGetAttrTensorList(TF_Operation oper, - String attr_name, - @ByPtrPtr TF_Tensor values, - int max_values, - TF_Status status); - -// Sets `output_attr_value` to the binary-serialized AttrValue proto -// representation of the value of the `attr_name` attr of `oper`. -public static native void TF_OperationGetAttrValueProto( - TF_Operation oper, @Cast("const char*") BytePointer attr_name, TF_Buffer output_attr_value, - TF_Status status); -public static native void TF_OperationGetAttrValueProto( - TF_Operation oper, String attr_name, TF_Buffer output_attr_value, - TF_Status status); - -// Get the number of attributes the operation has. -public static native int TF_OperationGetNumAttrs(TF_Operation oper); - -// Get the length of the name of the ith attribute, or -1 if there is not an -// ith attribute. -public static native int TF_OperationGetAttrNameLength(TF_Operation oper, - int i); - -// Get the name of the ith attribute. output should have the size of -// TF_OperationGetAttrNameLength(oper, i). -public static native void TF_OperationGetAttrName(TF_Operation oper, int i, - @Cast("char*") BytePointer output, - TF_Status status); -public static native void TF_OperationGetAttrName(TF_Operation oper, int i, - @Cast("char*") ByteBuffer output, - TF_Status status); -public static native void TF_OperationGetAttrName(TF_Operation oper, int i, - @Cast("char*") byte[] output, - TF_Status status); - -// Returns the operation in the graph with `oper_name`. Returns nullptr if -// no operation found. -public static native TF_Operation TF_GraphOperationByName( - TF_Graph graph, @Cast("const char*") BytePointer oper_name); -public static native TF_Operation TF_GraphOperationByName( - TF_Graph graph, String oper_name); - -// Iterate through the operations of a graph. To use: -// size_t pos = 0; -// TF_Operation* oper; -// while ((oper = TF_GraphNextOperation(graph, &pos)) != nullptr) { -// DoSomethingWithOperation(oper); -// } -public static native TF_Operation TF_GraphNextOperation(TF_Graph graph, - @Cast("size_t*") SizeTPointer pos); - -// Write out a serialized representation of `graph` (as a GraphDef protocol -// message) to `output_graph_def` (allocated by TF_NewBuffer()). -// `output_graph_def`'s underlying buffer will be freed when TF_DeleteBuffer() -// is called. -// -// May fail on very large graphs in the future. -public static native void TF_GraphToGraphDef(TF_Graph graph, - TF_Buffer output_graph_def, - TF_Status status); - -// Returns the serialized OpDef proto with name `op_name`, or a bad status if no -// such op exists. This can return OpDefs of functions copied into the graph. -public static native void TF_GraphGetOpDef(TF_Graph graph, - @Cast("const char*") BytePointer op_name, - TF_Buffer output_op_def, - TF_Status status); -public static native void TF_GraphGetOpDef(TF_Graph graph, - String op_name, - TF_Buffer output_op_def, - TF_Status status); - -// Returns the serialized VersionDef proto for this graph. -public static native void TF_GraphVersions(TF_Graph graph, - TF_Buffer output_version_def, - TF_Status status); -// Targeting ../TF_ImportGraphDefOptions.java - - - -public static native TF_ImportGraphDefOptions TF_NewImportGraphDefOptions(); -public static native void TF_DeleteImportGraphDefOptions( - TF_ImportGraphDefOptions opts); - -// Set the prefix to be prepended to the names of nodes in `graph_def` that will -// be imported into `graph`. `prefix` is copied and has no lifetime -// requirements. -public static native void TF_ImportGraphDefOptionsSetPrefix( - TF_ImportGraphDefOptions opts, @Cast("const char*") BytePointer prefix); -public static native void TF_ImportGraphDefOptionsSetPrefix( - TF_ImportGraphDefOptions opts, String prefix); - -// Set the execution device for nodes in `graph_def`. -// Only applies to nodes where a device was not already explicitly specified. -// `device` is copied and has no lifetime requirements. -public static native void TF_ImportGraphDefOptionsSetDefaultDevice( - TF_ImportGraphDefOptions opts, @Cast("const char*") BytePointer device); -public static native void TF_ImportGraphDefOptionsSetDefaultDevice( - TF_ImportGraphDefOptions opts, String device); - -// Set whether to uniquify imported operation names. If true, imported operation -// names will be modified if their name already exists in the graph. If false, -// conflicting names will be treated as an error. Note that this option has no -// effect if a prefix is set, since the prefix will guarantee all names are -// unique. Defaults to false. -public static native void TF_ImportGraphDefOptionsSetUniquifyNames( - TF_ImportGraphDefOptions opts, @Cast("unsigned char") byte uniquify_names); - -// If true, the specified prefix will be modified if it already exists as an -// operation name or prefix in the graph. If false, a conflicting prefix will be -// treated as an error. This option has no effect if no prefix is specified. -public static native void TF_ImportGraphDefOptionsSetUniquifyPrefix( - TF_ImportGraphDefOptions opts, @Cast("unsigned char") byte uniquify_prefix); - -// Set any imported nodes with input `src_name:src_index` to have that input -// replaced with `dst`. `src_name` refers to a node in the graph to be imported, -// `dst` references a node already existing in the graph being imported into. -// `src_name` is copied and has no lifetime requirements. -public static native void TF_ImportGraphDefOptionsAddInputMapping( - TF_ImportGraphDefOptions opts, @Cast("const char*") BytePointer src_name, int src_index, - @ByVal TF_Output dst); -public static native void TF_ImportGraphDefOptionsAddInputMapping( - TF_ImportGraphDefOptions opts, String src_name, int src_index, - @ByVal TF_Output dst); - -// Set any imported nodes with control input `src_name` to have that input -// replaced with `dst`. `src_name` refers to a node in the graph to be imported, -// `dst` references an operation already existing in the graph being imported -// into. `src_name` is copied and has no lifetime requirements. -public static native void TF_ImportGraphDefOptionsRemapControlDependency( - TF_ImportGraphDefOptions opts, @Cast("const char*") BytePointer src_name, TF_Operation dst); -public static native void TF_ImportGraphDefOptionsRemapControlDependency( - TF_ImportGraphDefOptions opts, String src_name, TF_Operation dst); - -// Cause the imported graph to have a control dependency on `oper`. `oper` -// should exist in the graph being imported into. -public static native void TF_ImportGraphDefOptionsAddControlDependency( - TF_ImportGraphDefOptions opts, TF_Operation oper); - -// Add an output in `graph_def` to be returned via the `return_outputs` output -// parameter of TF_GraphImportGraphDef(). If the output is remapped via an input -// mapping, the corresponding existing tensor in `graph` will be returned. -// `oper_name` is copied and has no lifetime requirements. -public static native void TF_ImportGraphDefOptionsAddReturnOutput( - TF_ImportGraphDefOptions opts, @Cast("const char*") BytePointer oper_name, int index); -public static native void TF_ImportGraphDefOptionsAddReturnOutput( - TF_ImportGraphDefOptions opts, String oper_name, int index); - -// Returns the number of return outputs added via -// TF_ImportGraphDefOptionsAddReturnOutput(). -public static native int TF_ImportGraphDefOptionsNumReturnOutputs( - @Const TF_ImportGraphDefOptions opts); - -// Add an operation in `graph_def` to be returned via the `return_opers` output -// parameter of TF_GraphImportGraphDef(). `oper_name` is copied and has no -// lifetime requirements. -public static native void TF_ImportGraphDefOptionsAddReturnOperation( - TF_ImportGraphDefOptions opts, @Cast("const char*") BytePointer oper_name); -public static native void TF_ImportGraphDefOptionsAddReturnOperation( - TF_ImportGraphDefOptions opts, String oper_name); - -// Returns the number of return operations added via -// TF_ImportGraphDefOptionsAddReturnOperation(). -public static native int TF_ImportGraphDefOptionsNumReturnOperations( - @Const TF_ImportGraphDefOptions opts); -// Targeting ../TF_ImportGraphDefResults.java - - - -// Fetches the return outputs requested via -// TF_ImportGraphDefOptionsAddReturnOutput(). The number of fetched outputs is -// returned in `num_outputs`. The array of return outputs is returned in -// `outputs`. `*outputs` is owned by and has the lifetime of `results`. -public static native void TF_ImportGraphDefResultsReturnOutputs( - TF_ImportGraphDefResults results, IntPointer num_outputs, @Cast("TF_Output**") PointerPointer outputs); -public static native void TF_ImportGraphDefResultsReturnOutputs( - TF_ImportGraphDefResults results, IntPointer num_outputs, @ByPtrPtr TF_Output outputs); -public static native void TF_ImportGraphDefResultsReturnOutputs( - TF_ImportGraphDefResults results, IntBuffer num_outputs, @ByPtrPtr TF_Output outputs); -public static native void TF_ImportGraphDefResultsReturnOutputs( - TF_ImportGraphDefResults results, int[] num_outputs, @ByPtrPtr TF_Output outputs); - -// Fetches the return operations requested via -// TF_ImportGraphDefOptionsAddReturnOperation(). The number of fetched -// operations is returned in `num_opers`. The array of return operations is -// returned in `opers`. `*opers` is owned by and has the lifetime of `results`. -public static native void TF_ImportGraphDefResultsReturnOperations( - TF_ImportGraphDefResults results, IntPointer num_opers, @Cast("TF_Operation***") @ByPtrPtr PointerPointer opers); -public static native void TF_ImportGraphDefResultsReturnOperations( - TF_ImportGraphDefResults results, IntBuffer num_opers, @Cast("TF_Operation***") @ByPtrPtr PointerPointer opers); -public static native void TF_ImportGraphDefResultsReturnOperations( - TF_ImportGraphDefResults results, int[] num_opers, @Cast("TF_Operation***") @ByPtrPtr PointerPointer opers); - -// Fetches any input mappings requested via -// TF_ImportGraphDefOptionsAddInputMapping() that didn't appear in the GraphDef -// and weren't used as input to any node in the imported graph def. The number -// of fetched mappings is returned in `num_missing_unused_input_mappings`. The -// array of each mapping's source node name is returned in `src_names`, and the -// array of each mapping's source index is returned in `src_indexes`. -// -// `*src_names`, `*src_indexes`, and the memory backing each string in -// `src_names` are owned by and have the lifetime of `results`. -public static native void TF_ImportGraphDefResultsMissingUnusedInputMappings( - TF_ImportGraphDefResults results, IntPointer num_missing_unused_input_mappings, - @Cast("const char***") @ByPtrPtr PointerPointer src_names, @Cast("int**") PointerPointer src_indexes); -public static native void TF_ImportGraphDefResultsMissingUnusedInputMappings( - TF_ImportGraphDefResults results, IntPointer num_missing_unused_input_mappings, - @Cast("const char***") @ByPtrPtr PointerPointer src_names, @ByPtrPtr IntPointer src_indexes); -public static native void TF_ImportGraphDefResultsMissingUnusedInputMappings( - TF_ImportGraphDefResults results, IntBuffer num_missing_unused_input_mappings, - @Cast("const char***") @ByPtrPtr PointerPointer src_names, @ByPtrPtr IntBuffer src_indexes); -public static native void TF_ImportGraphDefResultsMissingUnusedInputMappings( - TF_ImportGraphDefResults results, int[] num_missing_unused_input_mappings, - @Cast("const char***") @ByPtrPtr PointerPointer src_names, @ByPtrPtr int[] src_indexes); - -// Deletes a results object returned by TF_GraphImportGraphDefWithResults(). -public static native void TF_DeleteImportGraphDefResults( - TF_ImportGraphDefResults results); - -// Import the graph serialized in `graph_def` into `graph`. Returns nullptr and -// a bad status on error. Otherwise, returns a populated -// TF_ImportGraphDefResults instance. The returned instance must be deleted via -// TF_DeleteImportGraphDefResults(). -public static native TF_ImportGraphDefResults TF_GraphImportGraphDefWithResults(TF_Graph graph, @Const TF_Buffer graph_def, - @Const TF_ImportGraphDefOptions options, - TF_Status status); - -// Import the graph serialized in `graph_def` into `graph`. -// Convenience function for when only return outputs are needed. -// -// `num_return_outputs` must be the number of return outputs added (i.e. the -// result of TF_ImportGraphDefOptionsNumReturnOutputs()). If -// `num_return_outputs` is non-zero, `return_outputs` must be of length -// `num_return_outputs`. Otherwise it can be null. -public static native void TF_GraphImportGraphDefWithReturnOutputs( - TF_Graph graph, @Const TF_Buffer graph_def, - @Const TF_ImportGraphDefOptions options, TF_Output return_outputs, - int num_return_outputs, TF_Status status); - -// Import the graph serialized in `graph_def` into `graph`. -// Convenience function for when no results are needed. -public static native void TF_GraphImportGraphDef( - TF_Graph graph, @Const TF_Buffer graph_def, - @Const TF_ImportGraphDefOptions options, TF_Status status); - -// Adds a copy of function `func` and optionally its gradient function `grad` -// to `g`. Once `func`/`grad` is added to `g`, it can be called by creating -// an operation using the function's name. -// Any changes to `func`/`grad` (including deleting it) done after this method -// returns, won't affect the copy of `func`/`grad` in `g`. -// If `func` or `grad` are already in `g`, TF_GraphCopyFunction has no -// effect on them, but can establish the function->gradient relationship -// between them if `func` does not already have a gradient. If `func` already -// has a gradient different from `grad`, an error is returned. -// -// `func` must not be null. -// If `grad` is null and `func` is not in `g`, `func` is added without a -// gradient. -// If `grad` is null and `func` is in `g`, TF_GraphCopyFunction is a noop. -// `grad` must have appropriate signature as described in the doc of -// GradientDef in tensorflow/core/framework/function.proto. -// -// If successful, status is set to OK and `func` and `grad` are added to `g`. -// Otherwise, status is set to the encountered error and `g` is unmodified. -public static native void TF_GraphCopyFunction(TF_Graph g, - @Const TF_Function func, - @Const TF_Function grad, - TF_Status status); - -// Returns the number of TF_Functions registered in `g`. -public static native int TF_GraphNumFunctions(TF_Graph g); - -// Fills in `funcs` with the TF_Function* registered in `g`. -// `funcs` must point to an array of TF_Function* of length at least -// `max_func`. In usual usage, max_func should be set to the result of -// TF_GraphNumFunctions(g). In this case, all the functions registered in -// `g` will be returned. Else, an unspecified subset. -// -// If successful, returns the number of TF_Function* successfully set in -// `funcs` and sets status to OK. The caller takes ownership of -// all the returned TF_Functions. They must be deleted with TF_DeleteFunction. -// On error, returns 0, sets status to the encountered error, and the contents -// of funcs will be undefined. -public static native int TF_GraphGetFunctions(TF_Graph g, @Cast("TF_Function**") PointerPointer funcs, - int max_func, TF_Status status); -public static native int TF_GraphGetFunctions(TF_Graph g, @ByPtrPtr TF_Function funcs, - int max_func, TF_Status status); - -// Note: The following function may fail on very large protos in the future. - -public static native void TF_OperationToNodeDef(TF_Operation oper, - TF_Buffer output_node_def, - TF_Status status); -// Targeting ../TF_WhileParams.java - - - -// Creates a TF_WhileParams for creating a while loop in `g`. `inputs` are -// outputs that already exist in `g` used as initial values for the loop -// variables. -// -// The returned TF_WhileParams will have all fields initialized except -// `cond_output`, `body_outputs`, and `name`. The `body_outputs` buffer will be -// allocated to size `ninputs`. The caller should build `cond_graph` and -// `body_graph` starting from the inputs, and store the final outputs in -// `cond_output` and `body_outputs`. -// -// If `status` is OK, the caller must call either TF_FinishWhile or -// TF_AbortWhile on the returned TF_WhileParams. If `status` isn't OK, the -// returned TF_WhileParams is not valid, and the caller should not call -// TF_FinishWhile() or TF_AbortWhile(). -// -// Missing functionality (TODO): -// - Gradients -// - Reference-type inputs -// - Directly referencing external tensors from the cond/body graphs (this is -// possible in the Python API) -public static native @ByVal TF_WhileParams TF_NewWhile(TF_Graph g, TF_Output inputs, - int ninputs, - TF_Status status); - -// Builds the while loop specified by `params` and returns the output tensors of -// the while loop in `outputs`. `outputs` should be allocated to size -// `params.ninputs`. -// -// `params` is no longer valid once this returns. -// -// Either this or TF_AbortWhile() must be called after a successful -// TF_NewWhile() call. -public static native void TF_FinishWhile(@Const TF_WhileParams params, - TF_Status status, - TF_Output outputs); - -// Frees `params`s resources without building a while loop. `params` is no -// longer valid after this returns. Either this or TF_FinishWhile() must be -// called after a successful TF_NewWhile() call. -public static native void TF_AbortWhile(@Const TF_WhileParams params); - -// Adds operations to compute the partial derivatives of sum of `y`s w.r.t `x`s, -// i.e., d(y_1 + y_2 + ...)/dx_1, d(y_1 + y_2 + ...)/dx_2... -// -// `dx` are used as initial gradients (which represent the symbolic partial -// derivatives of some loss function `L` w.r.t. `y`). -// `dx` must be nullptr or have size `ny`. -// If `dx` is nullptr, the implementation will use dx of `OnesLike` for all -// shapes in `y`. -// The partial derivatives are returned in `dy`. `dy` should be allocated to -// size `nx`. -// -// Gradient nodes are automatically named under the "gradients/" prefix. To -// guarantee name uniqueness, subsequent calls to the same graph will -// append an incremental tag to the prefix: "gradients_1/", "gradients_2/", ... -// See TF_AddGradientsWithPrefix, which provides a means to specify a custom -// name prefix for operations added to a graph to compute the gradients. -// -// WARNING: This function does not yet support all the gradients that python -// supports. See -// https://www.tensorflow.org/code/tensorflow/cc/gradients/README.md -// for instructions on how to add C++ more gradients. -public static native void TF_AddGradients(TF_Graph g, TF_Output y, int ny, - TF_Output x, int nx, TF_Output dx, - TF_Status status, TF_Output dy); - -// Adds operations to compute the partial derivatives of sum of `y`s w.r.t `x`s, -// i.e., d(y_1 + y_2 + ...)/dx_1, d(y_1 + y_2 + ...)/dx_2... -// This is a variant of TF_AddGradients that allows to caller to pass a custom -// name prefix to the operations added to a graph to compute the gradients. -// -// `dx` are used as initial gradients (which represent the symbolic partial -// derivatives of some loss function `L` w.r.t. `y`). -// `dx` must be nullptr or have size `ny`. -// If `dx` is nullptr, the implementation will use dx of `OnesLike` for all -// shapes in `y`. -// The partial derivatives are returned in `dy`. `dy` should be allocated to -// size `nx`. -// `prefix` names the scope into which all gradients operations are being added. -// `prefix` must be unique within the provided graph otherwise this operation -// will fail. If `prefix` is nullptr, the default prefixing behaviour takes -// place, see TF_AddGradients for more details. -// -// WARNING: This function does not yet support all the gradients that python -// supports. See -// https://www.tensorflow.org/code/tensorflow/cc/gradients/README.md -// for instructions on how to add C++ more gradients. -public static native void TF_AddGradientsWithPrefix(TF_Graph g, @Cast("const char*") BytePointer prefix, - TF_Output y, int ny, - TF_Output x, int nx, - TF_Output dx, TF_Status status, - TF_Output dy); -public static native void TF_AddGradientsWithPrefix(TF_Graph g, String prefix, - TF_Output y, int ny, - TF_Output x, int nx, - TF_Output dx, TF_Status status, - TF_Output dy); - -// Create a TF_Function from a TF_Graph -// -// Params: -// fn_body - the graph whose operations (or subset of whose operations) will be -// converted to TF_Function. -// fn_name - the name of the new TF_Function. Should match the operation -// name (OpDef.name) regexp [A-Z][A-Za-z0-9_.\\-/]*. -// If `append_hash_to_fn_name` is false, `fn_name` must be distinct -// from other function and operation names (at least those -// registered in graphs where this function will be used). -// append_hash_to_fn_name - Must be 0 or 1. If set to 1, the actual name -// of the function will be `fn_name` appended with -// '_'. -// If set to 0, the function's name will be `fn_name`. -// num_opers - `num_opers` contains the number of elements in the `opers` array -// or a special value of -1 meaning that no array is given. -// The distinction between an empty array of operations and no -// array of operations is necessary to distinguish the case of -// creating a function with no body (e.g. identity or permutation) -// and the case of creating a function whose body contains all -// the nodes in the graph (except for the automatic skipping, see -// below). -// opers - Array of operations to become the body of the function or null. -// - If no array is given (`num_opers` = -1), all the -// operations in `fn_body` will become part of the function -// except operations referenced in `inputs`. These operations -// must have a single output (these operations are typically -// placeholders created for the sole purpose of representing -// an input. We can relax this constraint if there are -// compelling use cases). -// - If an array is given (`num_opers` >= 0), all operations -// in it will become part of the function. In particular, no -// automatic skipping of dummy input operations is performed. -// ninputs - number of elements in `inputs` array -// inputs - array of TF_Outputs that specify the inputs to the function. -// If `ninputs` is zero (the function takes no inputs), `inputs` -// can be null. The names used for function inputs are normalized -// names of the operations (usually placeholders) pointed to by -// `inputs`. These operation names should start with a letter. -// Normalization will convert all letters to lowercase and -// non-alphanumeric characters to '_' to make resulting names match -// the "[a-z][a-z0-9_]*" pattern for operation argument names. -// `inputs` cannot contain the same tensor twice. -// noutputs - number of elements in `outputs` array -// outputs - array of TF_Outputs that specify the outputs of the function. -// If `noutputs` is zero (the function returns no outputs), `outputs` -// can be null. `outputs` can contain the same tensor more than once. -// output_names - The names of the function's outputs. `output_names` array -// must either have the same length as `outputs` -// (i.e. `noutputs`) or be null. In the former case, -// the names should match the regular expression for ArgDef -// names - "[a-z][a-z0-9_]*". In the latter case, -// names for outputs will be generated automatically. -// opts - various options for the function, e.g. XLA's inlining control. -// description - optional human-readable description of this function. -// status - Set to OK on success and an appropriate error on failure. -// -// Note that when the same TF_Output is listed as both an input and an output, -// the corresponding function's output will equal to this input, -// instead of the original node's output. -// -// Callers must also satisfy the following constraints: -// - `inputs` cannot refer to TF_Outputs within a control flow context. For -// example, one cannot use the output of "switch" node as input. -// - `inputs` and `outputs` cannot have reference types. Reference types are -// not exposed through C API and are being replaced with Resources. We support -// reference types inside function's body to support legacy code. Do not -// use them in new code. -// - Every node in the function's body must have all of its inputs (including -// control inputs). In other words, for every node in the body, each input -// must be either listed in `inputs` or must come from another node in -// the body. In particular, it is an error to have a control edge going from -// a node outside of the body into a node in the body. This applies to control -// edges going from nodes referenced in `inputs` to nodes in the body when -// the former nodes are not in the body (automatically skipped or not -// included in explicitly specified body). -// -// Returns: -// On success, a newly created TF_Function instance. It must be deleted by -// calling TF_DeleteFunction. -// -// On failure, null. -public static native TF_Function TF_GraphToFunction( - @Const TF_Graph fn_body, @Cast("const char*") BytePointer fn_name, - @Cast("unsigned char") byte append_hash_to_fn_name, int num_opers, - @Cast("const TF_Operation*const*") PointerPointer opers, int ninputs, @Const TF_Output inputs, - int noutputs, @Const TF_Output outputs, @Cast("const char*const*") PointerPointer output_names, - @Const TF_FunctionOptions opts, @Cast("const char*") BytePointer description, TF_Status status); -public static native TF_Function TF_GraphToFunction( - @Const TF_Graph fn_body, @Cast("const char*") BytePointer fn_name, - @Cast("unsigned char") byte append_hash_to_fn_name, int num_opers, - @Const @ByPtrPtr TF_Operation opers, int ninputs, @Const TF_Output inputs, - int noutputs, @Const TF_Output outputs, @Cast("const char*const*") @ByPtrPtr BytePointer output_names, - @Const TF_FunctionOptions opts, @Cast("const char*") BytePointer description, TF_Status status); -public static native TF_Function TF_GraphToFunction( - @Const TF_Graph fn_body, String fn_name, - @Cast("unsigned char") byte append_hash_to_fn_name, int num_opers, - @Const @ByPtrPtr TF_Operation opers, int ninputs, @Const TF_Output inputs, - int noutputs, @Const TF_Output outputs, @Cast("const char*const*") @ByPtrPtr ByteBuffer output_names, - @Const TF_FunctionOptions opts, String description, TF_Status status); -public static native TF_Function TF_GraphToFunction( - @Const TF_Graph fn_body, @Cast("const char*") BytePointer fn_name, - @Cast("unsigned char") byte append_hash_to_fn_name, int num_opers, - @Const @ByPtrPtr TF_Operation opers, int ninputs, @Const TF_Output inputs, - int noutputs, @Const TF_Output outputs, @Cast("const char*const*") @ByPtrPtr byte[] output_names, - @Const TF_FunctionOptions opts, @Cast("const char*") BytePointer description, TF_Status status); -public static native TF_Function TF_GraphToFunction( - @Const TF_Graph fn_body, String fn_name, - @Cast("unsigned char") byte append_hash_to_fn_name, int num_opers, - @Const @ByPtrPtr TF_Operation opers, int ninputs, @Const TF_Output inputs, - int noutputs, @Const TF_Output outputs, @Cast("const char*const*") @ByPtrPtr BytePointer output_names, - @Const TF_FunctionOptions opts, String description, TF_Status status); -public static native TF_Function TF_GraphToFunction( - @Const TF_Graph fn_body, @Cast("const char*") BytePointer fn_name, - @Cast("unsigned char") byte append_hash_to_fn_name, int num_opers, - @Const @ByPtrPtr TF_Operation opers, int ninputs, @Const TF_Output inputs, - int noutputs, @Const TF_Output outputs, @Cast("const char*const*") @ByPtrPtr ByteBuffer output_names, - @Const TF_FunctionOptions opts, @Cast("const char*") BytePointer description, TF_Status status); -public static native TF_Function TF_GraphToFunction( - @Const TF_Graph fn_body, String fn_name, - @Cast("unsigned char") byte append_hash_to_fn_name, int num_opers, - @Const @ByPtrPtr TF_Operation opers, int ninputs, @Const TF_Output inputs, - int noutputs, @Const TF_Output outputs, @Cast("const char*const*") @ByPtrPtr byte[] output_names, - @Const TF_FunctionOptions opts, String description, TF_Status status); - -// Similar to TF_GraphToFunction but allows specifying control outputs of the -// function. -// -// The arguments of TF_GraphToFunction have the same meaning, but the new -// arguments are as follows: -// -// ncontrol_outputs: Number of control outputs of the function. -// control_outputs: vector of TF_Operation objects to be marked as control -// outputs of the function. Operations marked as control outputs are -// guaranteed to execute. -// control_output_names: Optional. If not nullptr, vector of strings, one -// per control output, with their names to be added to the function's -// OpDef. -public static native TF_Function TF_GraphToFunctionWithControlOutputs( - @Const TF_Graph fn_body, @Cast("const char*") BytePointer fn_name, - @Cast("unsigned char") byte append_hash_to_fn_name, int num_opers, - @Cast("const TF_Operation*const*") PointerPointer opers, int ninputs, @Const TF_Output inputs, - int noutputs, @Const TF_Output outputs, @Cast("const char*const*") PointerPointer output_names, - int ncontrol_outputs, @Cast("const TF_Operation*const*") PointerPointer control_outputs, - @Cast("const char*const*") PointerPointer control_output_names, @Const TF_FunctionOptions opts, - @Cast("const char*") BytePointer description, TF_Status status); -public static native TF_Function TF_GraphToFunctionWithControlOutputs( - @Const TF_Graph fn_body, @Cast("const char*") BytePointer fn_name, - @Cast("unsigned char") byte append_hash_to_fn_name, int num_opers, - @Const @ByPtrPtr TF_Operation opers, int ninputs, @Const TF_Output inputs, - int noutputs, @Const TF_Output outputs, @Cast("const char*const*") @ByPtrPtr BytePointer output_names, - int ncontrol_outputs, @Const @ByPtrPtr TF_Operation control_outputs, - @Cast("const char*const*") @ByPtrPtr BytePointer control_output_names, @Const TF_FunctionOptions opts, - @Cast("const char*") BytePointer description, TF_Status status); -public static native TF_Function TF_GraphToFunctionWithControlOutputs( - @Const TF_Graph fn_body, String fn_name, - @Cast("unsigned char") byte append_hash_to_fn_name, int num_opers, - @Const @ByPtrPtr TF_Operation opers, int ninputs, @Const TF_Output inputs, - int noutputs, @Const TF_Output outputs, @Cast("const char*const*") @ByPtrPtr ByteBuffer output_names, - int ncontrol_outputs, @Const @ByPtrPtr TF_Operation control_outputs, - @Cast("const char*const*") @ByPtrPtr ByteBuffer control_output_names, @Const TF_FunctionOptions opts, - String description, TF_Status status); -public static native TF_Function TF_GraphToFunctionWithControlOutputs( - @Const TF_Graph fn_body, @Cast("const char*") BytePointer fn_name, - @Cast("unsigned char") byte append_hash_to_fn_name, int num_opers, - @Const @ByPtrPtr TF_Operation opers, int ninputs, @Const TF_Output inputs, - int noutputs, @Const TF_Output outputs, @Cast("const char*const*") @ByPtrPtr byte[] output_names, - int ncontrol_outputs, @Const @ByPtrPtr TF_Operation control_outputs, - @Cast("const char*const*") @ByPtrPtr byte[] control_output_names, @Const TF_FunctionOptions opts, - @Cast("const char*") BytePointer description, TF_Status status); -public static native TF_Function TF_GraphToFunctionWithControlOutputs( - @Const TF_Graph fn_body, String fn_name, - @Cast("unsigned char") byte append_hash_to_fn_name, int num_opers, - @Const @ByPtrPtr TF_Operation opers, int ninputs, @Const TF_Output inputs, - int noutputs, @Const TF_Output outputs, @Cast("const char*const*") @ByPtrPtr BytePointer output_names, - int ncontrol_outputs, @Const @ByPtrPtr TF_Operation control_outputs, - @Cast("const char*const*") @ByPtrPtr BytePointer control_output_names, @Const TF_FunctionOptions opts, - String description, TF_Status status); -public static native TF_Function TF_GraphToFunctionWithControlOutputs( - @Const TF_Graph fn_body, @Cast("const char*") BytePointer fn_name, - @Cast("unsigned char") byte append_hash_to_fn_name, int num_opers, - @Const @ByPtrPtr TF_Operation opers, int ninputs, @Const TF_Output inputs, - int noutputs, @Const TF_Output outputs, @Cast("const char*const*") @ByPtrPtr ByteBuffer output_names, - int ncontrol_outputs, @Const @ByPtrPtr TF_Operation control_outputs, - @Cast("const char*const*") @ByPtrPtr ByteBuffer control_output_names, @Const TF_FunctionOptions opts, - @Cast("const char*") BytePointer description, TF_Status status); -public static native TF_Function TF_GraphToFunctionWithControlOutputs( - @Const TF_Graph fn_body, String fn_name, - @Cast("unsigned char") byte append_hash_to_fn_name, int num_opers, - @Const @ByPtrPtr TF_Operation opers, int ninputs, @Const TF_Output inputs, - int noutputs, @Const TF_Output outputs, @Cast("const char*const*") @ByPtrPtr byte[] output_names, - int ncontrol_outputs, @Const @ByPtrPtr TF_Operation control_outputs, - @Cast("const char*const*") @ByPtrPtr byte[] control_output_names, @Const TF_FunctionOptions opts, - String description, TF_Status status); - -// Returns the name of the graph function. -// The return value points to memory that is only usable until the next -// mutation to *func. -public static native @Cast("const char*") BytePointer TF_FunctionName(TF_Function func); - -// Write out a serialized representation of `func` (as a FunctionDef protocol -// message) to `output_func_def` (allocated by TF_NewBuffer()). -// `output_func_def`'s underlying buffer will be freed when TF_DeleteBuffer() -// is called. -// -// May fail on very large graphs in the future. -public static native void TF_FunctionToFunctionDef(TF_Function func, - TF_Buffer output_func_def, - TF_Status status); - -// Construct and return the function whose FunctionDef representation is -// serialized in `proto`. `proto_len` must equal the number of bytes -// pointed to by `proto`. -// Returns: -// On success, a newly created TF_Function instance. It must be deleted by -// calling TF_DeleteFunction. -// -// On failure, null. -public static native TF_Function TF_FunctionImportFunctionDef( - @Const Pointer proto, @Cast("size_t") long proto_len, TF_Status status); - -// Sets function attribute named `attr_name` to value stored in `proto`. -// If this attribute is already set to another value, it is overridden. -// `proto` should point to a sequence of bytes of length `proto_len` -// representing a binary serialization of an AttrValue protocol -// buffer. -public static native void TF_FunctionSetAttrValueProto(TF_Function func, - @Cast("const char*") BytePointer attr_name, - @Const Pointer proto, - @Cast("size_t") long proto_len, - TF_Status status); -public static native void TF_FunctionSetAttrValueProto(TF_Function func, - String attr_name, - @Const Pointer proto, - @Cast("size_t") long proto_len, - TF_Status status); - -// Sets `output_attr_value` to the binary-serialized AttrValue proto -// representation of the value of the `attr_name` attr of `func`. -// If `attr_name` attribute is not present, status is set to an error. -public static native void TF_FunctionGetAttrValueProto( - TF_Function func, @Cast("const char*") BytePointer attr_name, TF_Buffer output_attr_value, - TF_Status status); -public static native void TF_FunctionGetAttrValueProto( - TF_Function func, String attr_name, TF_Buffer output_attr_value, - TF_Status status); - -// Frees the memory used by the `func` struct. -// TF_DeleteFunction is a noop if `func` is null. -// Deleting a function does not remove it from any graphs it was copied to. -public static native void TF_DeleteFunction(TF_Function func); - -// Attempts to evaluate `output`. This will only be possible if `output` doesn't -// depend on any graph inputs (this function is safe to call if this isn't the -// case though). -// -// If the evaluation is successful, this function returns true and `output`s -// value is returned in `result`. Otherwise returns false. An error status is -// returned if something is wrong with the graph or input. Note that this may -// return false even if no error status is set. -public static native @Cast("unsigned char") byte TF_TryEvaluateConstant(TF_Graph graph, - @ByVal TF_Output output, - @Cast("TF_Tensor**") PointerPointer result, - TF_Status status); -public static native @Cast("unsigned char") byte TF_TryEvaluateConstant(TF_Graph graph, - @ByVal TF_Output output, - @ByPtrPtr TF_Tensor result, - TF_Status status); -// Targeting ../TF_Session.java - - - -// Return a new execution session with the associated graph, or NULL on -// error. Does not take ownership of any input parameters. -// -// *`graph` must be a valid graph (not deleted or nullptr). `graph` will be -// kept alive for the lifetime of the returned TF_Session. New nodes can still -// be added to `graph` after this call. -public static native TF_Session TF_NewSession(TF_Graph graph, - @Const TF_SessionOptions opts, - TF_Status status); - -// This function creates a new TF_Session (which is created on success) using -// `session_options`, and then initializes state (restoring tensors and other -// assets) using `run_options`. -// -// Any NULL and non-NULL value combinations for (`run_options, `meta_graph_def`) -// are valid. -// -// - `export_dir` must be set to the path of the exported SavedModel. -// - `tags` must include the set of tags used to identify one MetaGraphDef in -// the SavedModel. -// - `graph` must be a graph newly allocated with TF_NewGraph(). -// -// If successful, populates `graph` with the contents of the Graph and -// `meta_graph_def` with the MetaGraphDef of the loaded model. -public static native TF_Session TF_LoadSessionFromSavedModel( - @Const TF_SessionOptions session_options, @Const TF_Buffer run_options, - @Cast("const char*") BytePointer export_dir, @Cast("const char*const*") PointerPointer tags, int tags_len, - TF_Graph graph, TF_Buffer meta_graph_def, TF_Status status); -public static native TF_Session TF_LoadSessionFromSavedModel( - @Const TF_SessionOptions session_options, @Const TF_Buffer run_options, - @Cast("const char*") BytePointer export_dir, @Cast("const char*const*") @ByPtrPtr BytePointer tags, int tags_len, - TF_Graph graph, TF_Buffer meta_graph_def, TF_Status status); -public static native TF_Session TF_LoadSessionFromSavedModel( - @Const TF_SessionOptions session_options, @Const TF_Buffer run_options, - String export_dir, @Cast("const char*const*") @ByPtrPtr ByteBuffer tags, int tags_len, - TF_Graph graph, TF_Buffer meta_graph_def, TF_Status status); -public static native TF_Session TF_LoadSessionFromSavedModel( - @Const TF_SessionOptions session_options, @Const TF_Buffer run_options, - @Cast("const char*") BytePointer export_dir, @Cast("const char*const*") @ByPtrPtr byte[] tags, int tags_len, - TF_Graph graph, TF_Buffer meta_graph_def, TF_Status status); -public static native TF_Session TF_LoadSessionFromSavedModel( - @Const TF_SessionOptions session_options, @Const TF_Buffer run_options, - String export_dir, @Cast("const char*const*") @ByPtrPtr BytePointer tags, int tags_len, - TF_Graph graph, TF_Buffer meta_graph_def, TF_Status status); -public static native TF_Session TF_LoadSessionFromSavedModel( - @Const TF_SessionOptions session_options, @Const TF_Buffer run_options, - @Cast("const char*") BytePointer export_dir, @Cast("const char*const*") @ByPtrPtr ByteBuffer tags, int tags_len, - TF_Graph graph, TF_Buffer meta_graph_def, TF_Status status); -public static native TF_Session TF_LoadSessionFromSavedModel( - @Const TF_SessionOptions session_options, @Const TF_Buffer run_options, - String export_dir, @Cast("const char*const*") @ByPtrPtr byte[] tags, int tags_len, - TF_Graph graph, TF_Buffer meta_graph_def, TF_Status status); - -// Close a session. -// -// Contacts any other processes associated with the session, if applicable. -// May not be called after TF_DeleteSession(). -public static native void TF_CloseSession(TF_Session arg0, TF_Status status); - -// Destroy a session object. -// -// Even if error information is recorded in *status, this call discards all -// local resources associated with the session. The session may not be used -// during or after this call (and the session drops its reference to the -// corresponding graph). -public static native void TF_DeleteSession(TF_Session arg0, TF_Status status); - -// Run the graph associated with the session starting with the supplied inputs -// (inputs[0,ninputs-1] with corresponding values in input_values[0,ninputs-1]). -// -// Any NULL and non-NULL value combinations for (`run_options`, -// `run_metadata`) are valid. -// -// - `run_options` may be NULL, in which case it will be ignored; or -// non-NULL, in which case it must point to a `TF_Buffer` containing the -// serialized representation of a `RunOptions` protocol buffer. -// - `run_metadata` may be NULL, in which case it will be ignored; or -// non-NULL, in which case it must point to an empty, freshly allocated -// `TF_Buffer` that may be updated to contain the serialized representation -// of a `RunMetadata` protocol buffer. -// -// The caller retains ownership of `input_values` (which can be deleted using -// TF_DeleteTensor). The caller also retains ownership of `run_options` and/or -// `run_metadata` (when not NULL) and should manually call TF_DeleteBuffer on -// them. -// -// On success, the tensors corresponding to outputs[0,noutputs-1] are placed in -// output_values[]. Ownership of the elements of output_values[] is transferred -// to the caller, which must eventually call TF_DeleteTensor on them. -// -// On failure, output_values[] contains NULLs. -public static native void TF_SessionRun( - TF_Session session, - @Const TF_Buffer run_options, - @Const TF_Output inputs, @Cast("TF_Tensor*const*") PointerPointer input_values, int ninputs, - @Const TF_Output outputs, @Cast("TF_Tensor**") PointerPointer output_values, int noutputs, - @Cast("const TF_Operation*const*") PointerPointer target_opers, int ntargets, - TF_Buffer run_metadata, - TF_Status arg11); -public static native void TF_SessionRun( - TF_Session session, - @Const TF_Buffer run_options, - @Const TF_Output inputs, @ByPtrPtr TF_Tensor input_values, int ninputs, - @Const TF_Output outputs, @ByPtrPtr TF_Tensor output_values, int noutputs, - @Const @ByPtrPtr TF_Operation target_opers, int ntargets, - TF_Buffer run_metadata, - TF_Status arg11); - -// Set up the graph with the intended feeds (inputs) and fetches (outputs) for a -// sequence of partial run calls. -// -// On success, returns a handle that is used for subsequent PRun calls. The -// handle should be deleted with TF_DeletePRunHandle when it is no longer -// needed. -// -// On failure, out_status contains a tensorflow::Status with an error -// message. *handle is set to nullptr. -public static native void TF_SessionPRunSetup( - TF_Session arg0, - @Const TF_Output inputs, int ninputs, - @Const TF_Output outputs, int noutputs, - @Cast("const TF_Operation*const*") PointerPointer target_opers, int ntargets, - @Cast("const char**") PointerPointer handle, - TF_Status arg8); -public static native void TF_SessionPRunSetup( - TF_Session arg0, - @Const TF_Output inputs, int ninputs, - @Const TF_Output outputs, int noutputs, - @Const @ByPtrPtr TF_Operation target_opers, int ntargets, - @Cast("const char**") @ByPtrPtr BytePointer handle, - TF_Status arg8); -public static native void TF_SessionPRunSetup( - TF_Session arg0, - @Const TF_Output inputs, int ninputs, - @Const TF_Output outputs, int noutputs, - @Const @ByPtrPtr TF_Operation target_opers, int ntargets, - @Cast("const char**") @ByPtrPtr ByteBuffer handle, - TF_Status arg8); -public static native void TF_SessionPRunSetup( - TF_Session arg0, - @Const TF_Output inputs, int ninputs, - @Const TF_Output outputs, int noutputs, - @Const @ByPtrPtr TF_Operation target_opers, int ntargets, - @Cast("const char**") @ByPtrPtr byte[] handle, - TF_Status arg8); - -// Continue to run the graph with additional feeds and fetches. The -// execution state is uniquely identified by the handle. -public static native void TF_SessionPRun( - TF_Session arg0, @Cast("const char*") BytePointer handle, - @Const TF_Output inputs, @Cast("TF_Tensor*const*") PointerPointer input_values, int ninputs, - @Const TF_Output outputs, @Cast("TF_Tensor**") PointerPointer output_values, int noutputs, - @Cast("const TF_Operation*const*") PointerPointer target_opers, int ntargets, - TF_Status arg10); -public static native void TF_SessionPRun( - TF_Session arg0, @Cast("const char*") BytePointer handle, - @Const TF_Output inputs, @ByPtrPtr TF_Tensor input_values, int ninputs, - @Const TF_Output outputs, @ByPtrPtr TF_Tensor output_values, int noutputs, - @Const @ByPtrPtr TF_Operation target_opers, int ntargets, - TF_Status arg10); -public static native void TF_SessionPRun( - TF_Session arg0, String handle, - @Const TF_Output inputs, @ByPtrPtr TF_Tensor input_values, int ninputs, - @Const TF_Output outputs, @ByPtrPtr TF_Tensor output_values, int noutputs, - @Const @ByPtrPtr TF_Operation target_opers, int ntargets, - TF_Status arg10); - -// Deletes a handle allocated by TF_SessionPRunSetup. -// Once called, no more calls to TF_SessionPRun should be made. -public static native void TF_DeletePRunHandle(@Cast("const char*") BytePointer handle); -public static native void TF_DeletePRunHandle(String handle); -// Targeting ../TF_DeprecatedSession.java - - - -public static native TF_DeprecatedSession TF_NewDeprecatedSession( - @Const TF_SessionOptions arg0, TF_Status status); -public static native void TF_CloseDeprecatedSession(TF_DeprecatedSession arg0, - TF_Status status); -public static native void TF_DeleteDeprecatedSession(TF_DeprecatedSession arg0, - TF_Status status); -public static native void TF_Reset(@Const TF_SessionOptions opt, - @Cast("const char**") PointerPointer containers, int ncontainers, - TF_Status status); -public static native void TF_Reset(@Const TF_SessionOptions opt, - @Cast("const char**") @ByPtrPtr BytePointer containers, int ncontainers, - TF_Status status); -public static native void TF_Reset(@Const TF_SessionOptions opt, - @Cast("const char**") @ByPtrPtr ByteBuffer containers, int ncontainers, - TF_Status status); -public static native void TF_Reset(@Const TF_SessionOptions opt, - @Cast("const char**") @ByPtrPtr byte[] containers, int ncontainers, - TF_Status status); -// Treat the bytes proto[0,proto_len-1] as a serialized GraphDef and -// add the nodes in that GraphDef to the graph for the session. -// -// Prefer use of TF_Session and TF_GraphImportGraphDef over this. -public static native void TF_ExtendGraph(TF_DeprecatedSession arg0, - @Const Pointer proto, @Cast("size_t") long proto_len, - TF_Status arg3); - -// See TF_SessionRun() above. -public static native void TF_Run(TF_DeprecatedSession arg0, - @Const TF_Buffer run_options, - @Cast("const char**") PointerPointer input_names, @Cast("TF_Tensor**") PointerPointer inputs, - int ninputs, @Cast("const char**") PointerPointer output_names, - @Cast("TF_Tensor**") PointerPointer outputs, int noutputs, - @Cast("const char**") PointerPointer target_oper_names, int ntargets, - TF_Buffer run_metadata, TF_Status arg11); -public static native void TF_Run(TF_DeprecatedSession arg0, - @Const TF_Buffer run_options, - @Cast("const char**") @ByPtrPtr BytePointer input_names, @ByPtrPtr TF_Tensor inputs, - int ninputs, @Cast("const char**") @ByPtrPtr BytePointer output_names, - @ByPtrPtr TF_Tensor outputs, int noutputs, - @Cast("const char**") @ByPtrPtr BytePointer target_oper_names, int ntargets, - TF_Buffer run_metadata, TF_Status arg11); -public static native void TF_Run(TF_DeprecatedSession arg0, - @Const TF_Buffer run_options, - @Cast("const char**") @ByPtrPtr ByteBuffer input_names, @ByPtrPtr TF_Tensor inputs, - int ninputs, @Cast("const char**") @ByPtrPtr ByteBuffer output_names, - @ByPtrPtr TF_Tensor outputs, int noutputs, - @Cast("const char**") @ByPtrPtr ByteBuffer target_oper_names, int ntargets, - TF_Buffer run_metadata, TF_Status arg11); -public static native void TF_Run(TF_DeprecatedSession arg0, - @Const TF_Buffer run_options, - @Cast("const char**") @ByPtrPtr byte[] input_names, @ByPtrPtr TF_Tensor inputs, - int ninputs, @Cast("const char**") @ByPtrPtr byte[] output_names, - @ByPtrPtr TF_Tensor outputs, int noutputs, - @Cast("const char**") @ByPtrPtr byte[] target_oper_names, int ntargets, - TF_Buffer run_metadata, TF_Status arg11); - -// See TF_SessionPRunSetup() above. -public static native void TF_PRunSetup(TF_DeprecatedSession arg0, - @Cast("const char**") PointerPointer input_names, int ninputs, - @Cast("const char**") PointerPointer output_names, int noutputs, - @Cast("const char**") PointerPointer target_oper_names, - int ntargets, @Cast("const char**") PointerPointer handle, - TF_Status arg8); -public static native void TF_PRunSetup(TF_DeprecatedSession arg0, - @Cast("const char**") @ByPtrPtr BytePointer input_names, int ninputs, - @Cast("const char**") @ByPtrPtr BytePointer output_names, int noutputs, - @Cast("const char**") @ByPtrPtr BytePointer target_oper_names, - int ntargets, @Cast("const char**") @ByPtrPtr BytePointer handle, - TF_Status arg8); -public static native void TF_PRunSetup(TF_DeprecatedSession arg0, - @Cast("const char**") @ByPtrPtr ByteBuffer input_names, int ninputs, - @Cast("const char**") @ByPtrPtr ByteBuffer output_names, int noutputs, - @Cast("const char**") @ByPtrPtr ByteBuffer target_oper_names, - int ntargets, @Cast("const char**") @ByPtrPtr ByteBuffer handle, - TF_Status arg8); -public static native void TF_PRunSetup(TF_DeprecatedSession arg0, - @Cast("const char**") @ByPtrPtr byte[] input_names, int ninputs, - @Cast("const char**") @ByPtrPtr byte[] output_names, int noutputs, - @Cast("const char**") @ByPtrPtr byte[] target_oper_names, - int ntargets, @Cast("const char**") @ByPtrPtr byte[] handle, - TF_Status arg8); - -// See TF_SessionPRun above. -public static native void TF_PRun(TF_DeprecatedSession arg0, @Cast("const char*") BytePointer handle, - @Cast("const char**") PointerPointer input_names, @Cast("TF_Tensor**") PointerPointer inputs, - int ninputs, @Cast("const char**") PointerPointer output_names, - @Cast("TF_Tensor**") PointerPointer outputs, int noutputs, - @Cast("const char**") PointerPointer target_oper_names, int ntargets, - TF_Status arg10); -public static native void TF_PRun(TF_DeprecatedSession arg0, @Cast("const char*") BytePointer handle, - @Cast("const char**") @ByPtrPtr BytePointer input_names, @ByPtrPtr TF_Tensor inputs, - int ninputs, @Cast("const char**") @ByPtrPtr BytePointer output_names, - @ByPtrPtr TF_Tensor outputs, int noutputs, - @Cast("const char**") @ByPtrPtr BytePointer target_oper_names, int ntargets, - TF_Status arg10); -public static native void TF_PRun(TF_DeprecatedSession arg0, String handle, - @Cast("const char**") @ByPtrPtr ByteBuffer input_names, @ByPtrPtr TF_Tensor inputs, - int ninputs, @Cast("const char**") @ByPtrPtr ByteBuffer output_names, - @ByPtrPtr TF_Tensor outputs, int noutputs, - @Cast("const char**") @ByPtrPtr ByteBuffer target_oper_names, int ntargets, - TF_Status arg10); -public static native void TF_PRun(TF_DeprecatedSession arg0, @Cast("const char*") BytePointer handle, - @Cast("const char**") @ByPtrPtr byte[] input_names, @ByPtrPtr TF_Tensor inputs, - int ninputs, @Cast("const char**") @ByPtrPtr byte[] output_names, - @ByPtrPtr TF_Tensor outputs, int noutputs, - @Cast("const char**") @ByPtrPtr byte[] target_oper_names, int ntargets, - TF_Status arg10); -public static native void TF_PRun(TF_DeprecatedSession arg0, String handle, - @Cast("const char**") @ByPtrPtr BytePointer input_names, @ByPtrPtr TF_Tensor inputs, - int ninputs, @Cast("const char**") @ByPtrPtr BytePointer output_names, - @ByPtrPtr TF_Tensor outputs, int noutputs, - @Cast("const char**") @ByPtrPtr BytePointer target_oper_names, int ntargets, - TF_Status arg10); -public static native void TF_PRun(TF_DeprecatedSession arg0, @Cast("const char*") BytePointer handle, - @Cast("const char**") @ByPtrPtr ByteBuffer input_names, @ByPtrPtr TF_Tensor inputs, - int ninputs, @Cast("const char**") @ByPtrPtr ByteBuffer output_names, - @ByPtrPtr TF_Tensor outputs, int noutputs, - @Cast("const char**") @ByPtrPtr ByteBuffer target_oper_names, int ntargets, - TF_Status arg10); -public static native void TF_PRun(TF_DeprecatedSession arg0, String handle, - @Cast("const char**") @ByPtrPtr byte[] input_names, @ByPtrPtr TF_Tensor inputs, - int ninputs, @Cast("const char**") @ByPtrPtr byte[] output_names, - @ByPtrPtr TF_Tensor outputs, int noutputs, - @Cast("const char**") @ByPtrPtr byte[] target_oper_names, int ntargets, - TF_Status arg10); -// Targeting ../TF_DeviceList.java - - - -// Lists all devices in a TF_Session. -// -// Caller takes ownership of the returned TF_DeviceList* which must eventually -// be freed with a call to TF_DeleteDeviceList. -public static native TF_DeviceList TF_SessionListDevices(TF_Session session, - TF_Status status); - -// Lists all devices in a TF_Session. -// -// Caller takes ownership of the returned TF_DeviceList* which must eventually -// be freed with a call to TF_DeleteDeviceList. -public static native TF_DeviceList TF_DeprecatedSessionListDevices( - TF_DeprecatedSession session, TF_Status status); - -// Deallocates the device list. -public static native void TF_DeleteDeviceList(TF_DeviceList list); - -// Counts the number of elements in the device list. -public static native int TF_DeviceListCount(@Const TF_DeviceList list); - -// Retrieves the full name of the device (e.g. /job:worker/replica:0/...) -// The return value will be a pointer to a null terminated string. The caller -// must not modify or delete the string. It will be deallocated upon a call to -// TF_DeleteDeviceList. -// -// If index is out of bounds, an error code will be set in the status object, -// and a null pointer will be returned. -public static native @Cast("const char*") BytePointer TF_DeviceListName(@Const TF_DeviceList list, - int index, - TF_Status status); - -// Retrieves the type of the device at the given index. -// -// The caller must not modify or delete the string. It will be deallocated upon -// a call to TF_DeleteDeviceList. -// -// If index is out of bounds, an error code will be set in the status object, -// and a null pointer will be returned. -public static native @Cast("const char*") BytePointer TF_DeviceListType(@Const TF_DeviceList list, - int index, - TF_Status status); - -// Retrieve the amount of memory associated with a given device. -// -// If index is out of bounds, an error code will be set in the status object, -// and -1 will be returned. -public static native @Cast("int64_t") long TF_DeviceListMemoryBytes( - @Const TF_DeviceList list, int index, TF_Status status); - -// Retrieve the incarnation number of a given device. -// -// If index is out of bounds, an error code will be set in the status object, -// and 0 will be returned. -public static native @Cast("uint64_t") long TF_DeviceListIncarnation( - @Const TF_DeviceList list, int index, TF_Status status); -// Targeting ../TF_Library.java - - - -// Load the library specified by library_filename and register the ops and -// kernels present in that library. -// -// Pass "library_filename" to a platform-specific mechanism for dynamically -// loading a library. The rules for determining the exact location of the -// library are platform-specific and are not documented here. -// -// On success, place OK in status and return the newly created library handle. -// The caller owns the library handle. -// -// On failure, place an error status in status and return NULL. -public static native TF_Library TF_LoadLibrary(@Cast("const char*") BytePointer library_filename, - TF_Status status); -public static native TF_Library TF_LoadLibrary(String library_filename, - TF_Status status); - -// Get the OpList of OpDefs defined in the library pointed by lib_handle. -// -// Returns a TF_Buffer. The memory pointed to by the result is owned by -// lib_handle. The data in the buffer will be the serialized OpList proto for -// ops defined in the library. -public static native @ByVal TF_Buffer TF_GetOpList(TF_Library lib_handle); - -// Frees the memory associated with the library handle. -// Does NOT unload the library. -public static native void TF_DeleteLibraryHandle(TF_Library lib_handle); - -// Get the OpList of all OpDefs defined in this address space. -// Returns a TF_Buffer, ownership of which is transferred to the caller -// (and can be freed using TF_DeleteBuffer). -// -// The data in the buffer will be the serialized OpList proto for ops registered -// in this address space. -public static native TF_Buffer TF_GetAllOpList(); -// Targeting ../TF_ApiDefMap.java - - - -// Creates a new TF_ApiDefMap instance. -// -// Params: -// op_list_buffer - TF_Buffer instance containing serialized OpList -// protocol buffer. (See -// https://www.tensorflow.org/code/tensorflow/core/framework/op_def.proto -// for the OpList proto definition). -// status - Set to OK on success and an appropriate error on failure. -public static native TF_ApiDefMap TF_NewApiDefMap(TF_Buffer op_list_buffer, - TF_Status status); - -// Deallocates a TF_ApiDefMap. -public static native void TF_DeleteApiDefMap(TF_ApiDefMap apimap); - -// Add ApiDefs to the map. -// -// `text` corresponds to a text representation of an ApiDefs protocol message. -// (https://www.tensorflow.org/code/tensorflow/core/framework/api_def.proto). -// -// The provided ApiDefs will be merged with existing ones in the map, with -// precedence given to the newly added version in case of conflicts with -// previous calls to TF_ApiDefMapPut. -public static native void TF_ApiDefMapPut(TF_ApiDefMap api_def_map, - @Cast("const char*") BytePointer text, @Cast("size_t") long text_len, - TF_Status status); -public static native void TF_ApiDefMapPut(TF_ApiDefMap api_def_map, - String text, @Cast("size_t") long text_len, - TF_Status status); - -// Returns a serialized ApiDef protocol buffer for the TensorFlow operation -// named `name`. -public static native TF_Buffer TF_ApiDefMapGet(TF_ApiDefMap api_def_map, - @Cast("const char*") BytePointer name, - @Cast("size_t") long name_len, - TF_Status status); -public static native TF_Buffer TF_ApiDefMapGet(TF_ApiDefMap api_def_map, - String name, - @Cast("size_t") long name_len, - TF_Status status); - -// -------------------------------------------------------------------------- -// Kernel definition information. - -// Returns a serialized KernelList protocol buffer containing KernelDefs for all -// registered kernels. -public static native TF_Buffer TF_GetAllRegisteredKernels(TF_Status status); - -// Returns a serialized KernelList protocol buffer containing KernelDefs for all -// kernels registered for the operation named `name`. -public static native TF_Buffer TF_GetRegisteredKernelsForOp( - @Cast("const char*") BytePointer name, TF_Status status); -public static native TF_Buffer TF_GetRegisteredKernelsForOp( - String name, TF_Status status); - -// Update edge, switch input/ output in a node -public static native void TF_UpdateEdge(TF_Graph graph, @ByVal TF_Output new_src, - @ByVal TF_Input dst, TF_Status status); -// Targeting ../TF_Server.java - - - -// Creates a new in-process TensorFlow server configured using a serialized -// ServerDef protocol buffer provided via `proto` and `proto_len`. -// -// The server will not serve any requests until TF_ServerStart is invoked. -// The server will stop serving requests once TF_ServerStop or -// TF_DeleteServer is invoked. -public static native TF_Server TF_NewServer(@Const Pointer proto, - @Cast("size_t") long proto_len, - TF_Status status); - -// Starts an in-process TensorFlow server. -public static native void TF_ServerStart(TF_Server server, TF_Status status); - -// Stops an in-process TensorFlow server. -public static native void TF_ServerStop(TF_Server server, TF_Status status); - -// Blocks until the server has been successfully stopped (via TF_ServerStop or -// TF_ServerClose). -public static native void TF_ServerJoin(TF_Server server, TF_Status status); - -// Returns the target string that can be provided to TF_SetTarget() to connect -// a TF_Session to `server`. -// -// The returned string is valid only until TF_DeleteServer is invoked. -public static native @Cast("const char*") BytePointer TF_ServerTarget(TF_Server server); - -// Destroy an in-process TensorFlow server, frees memory. If server is running -// it will be stopped and joined. -public static native void TF_DeleteServer(TF_Server server); -// Targeting ../Listener_BytePointer.java - - -public static native void TF_RegisterLogListener( - Listener_BytePointer listener); -// Targeting ../Listener_String.java - - -public static native void TF_RegisterLogListener( - Listener_String listener); - -// Register a FileSystem plugin from filename `plugin_filename`. -// -// On success, place OK in status. -// On failure, place an error status in status. -public static native void TF_RegisterFilesystemPlugin( - @Cast("const char*") BytePointer plugin_filename, TF_Status status); -public static native void TF_RegisterFilesystemPlugin( - String plugin_filename, TF_Status status); - -// #ifdef __cplusplus /* end extern "C" */ -// #endif - -// #endif // TENSORFLOW_C_C_API_H_ - - -// Parsed from tensorflow/c/kernels.h - -/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -==============================================================================*/ - -// #ifndef TENSORFLOW_C_KERNELS_H_ -// #define TENSORFLOW_C_KERNELS_H_ - -// #include - -// #include "tensorflow/c/c_api.h" -// #include "tensorflow/c/experimental/stream_executor/stream_executor.h" -// #include "tensorflow/c/tf_datatype.h" -// #include "tensorflow/c/tf_status.h" -// #include "tensorflow/c/tf_tensor.h" - -// Macro to control visibility of exported symbols in the shared library (.so, -// .dylib, .dll). -// This duplicates the TF_EXPORT macro definition in -// tensorflow/core/platform/macros.h in order to keep this .h file independent -// of any other includes. -// #ifdef SWIG -// #define TF_CAPI_EXPORT -// #else -// #if defined(_WIN32) -// #ifdef TF_COMPILE_LIBRARY -// #define TF_CAPI_EXPORT __declspec(dllexport) -// #else -// #define TF_CAPI_EXPORT __declspec(dllimport) -// #endif // TF_COMPILE_LIBRARY -// #else -// #define TF_CAPI_EXPORT __attribute__((visibility("default"))) -// #endif // _WIN32 -// #endif // SWIG - -// #ifdef __cplusplus -// #endif -// Targeting ../TF_KernelBuilder.java - - -// Targeting ../TF_OpKernelConstruction.java - - -// Targeting ../TF_OpKernelContext.java - - - -// TF_InitKernel to do op/kernel registration. -// Plugin should implement TF_InitKernel to register kernels. This function -// should register all kernels in a plugin. - -// Targeting ../Create_func_TF_OpKernelConstruction.java - - -// Targeting ../Compute_func_Pointer_TF_OpKernelContext.java - - -// Targeting ../Delete_func_Pointer.java - - -public static native TF_KernelBuilder TF_NewKernelBuilder( - @Cast("const char*") BytePointer op_name, @Cast("const char*") BytePointer device_name, - Create_func_TF_OpKernelConstruction create_func, - Compute_func_Pointer_TF_OpKernelContext compute_func, - Delete_func_Pointer delete_func); -public static native TF_KernelBuilder TF_NewKernelBuilder( - String op_name, String device_name, - Create_func_TF_OpKernelConstruction create_func, - Compute_func_Pointer_TF_OpKernelContext compute_func, - Delete_func_Pointer delete_func); - -// Specifies that this kernel's attribute only supports the given type. -public static native void TF_KernelBuilder_TypeConstraint( - TF_KernelBuilder kernel_builder, @Cast("const char*") BytePointer attr_name, - @Cast("const TF_DataType") int type, TF_Status status); -public static native void TF_KernelBuilder_TypeConstraint( - TF_KernelBuilder kernel_builder, String attr_name, - @Cast("const TF_DataType") int type, TF_Status status); - -// Specify that this kernel requires/provides an input/output arg -// in host memory (instead of the default, device memory). -public static native void TF_KernelBuilder_HostMemory( - TF_KernelBuilder kernel_builder, @Cast("const char*") BytePointer arg_name); -public static native void TF_KernelBuilder_HostMemory( - TF_KernelBuilder kernel_builder, String arg_name); - -// Specify a priority number for this kernel. -public static native void TF_KernelBuilder_Priority( - TF_KernelBuilder kernel_builder, int priority_number); - -// Register the given kernel builder with the TensorFlow runtime. If -// registration fails, the given status will be populated. -// -// This call takes ownership of the `builder` pointer. -public static native void TF_RegisterKernelBuilder(@Cast("const char*") BytePointer kernel_name, - TF_KernelBuilder builder, - TF_Status status); -public static native void TF_RegisterKernelBuilder(String kernel_name, - TF_KernelBuilder builder, - TF_Status status); - -// Register the given kernel builder with the TensorFlow runtime. If -// registration fails, the given status will be populated. -// -// This method is the same as TF_RegisterKernelBuilder except it takes in a -// serialized KernelDef, and uses it for registration, instead of building a new -// one. Users can choose to not provide a serialized KernelDef and in that case -// it's identical to TF_RegisterKernelBuilder. -public static native void TF_RegisterKernelBuilderWithKernelDef( - @Cast("const char*") BytePointer serialized_kernel_def, @Cast("const char*") BytePointer name, - TF_KernelBuilder builder, TF_Status status); -public static native void TF_RegisterKernelBuilderWithKernelDef( - String serialized_kernel_def, String name, - TF_KernelBuilder builder, TF_Status status); - -// Deletes the given TF_KernelBuilder. This should be called only if the kernel -// builder is not registered with TensorFlow via TF_RegisterKernelBuilder. -public static native void TF_DeleteKernelBuilder(TF_KernelBuilder builder); - -// -------------------------------------------------------------------------- -// OpKernelContext routines - -// TF_GetStream returns the SP_Stream available in ctx. -// This function returns a stream only for devices registered using the -// StreamExecutor C API -// (tensorflow/c/experimental/stream_executor/stream_executor.h). It will return -// nullptr and set error status in all other cases. -// Experimental: this function doesn't have compatibility guarantees and subject -// to change at any time. -public static native @ByVal @Cast("SP_Stream*") Pointer TF_GetStream(TF_OpKernelContext ctx, - TF_Status status); - -// TF_NumInputs returns the number of inputs available in ctx. -public static native int TF_NumInputs(TF_OpKernelContext ctx); - -// TF_NumOutputs returns the number of outputs to be placed in *ctx by the -// kernel. -public static native int TF_NumOutputs(TF_OpKernelContext ctx); - -// Retrieves the ith input from ctx. If TF_GetCode(status) is TF_OK, *tensor is -// populated and its ownership is passed to the caller. In any other case, -// *tensor is not modified. -// -// If i < 0 or i >= TF_NumInputs(ctx), *status is set to TF_OUT_OF_RANGE. -public static native void TF_GetInput(TF_OpKernelContext ctx, int i, - @Cast("TF_Tensor**") PointerPointer tensor, TF_Status status); -public static native void TF_GetInput(TF_OpKernelContext ctx, int i, - @ByPtrPtr TF_Tensor tensor, TF_Status status); - -// Sets the ith output of ctx to tensor. If TF_GetCode(status) is anything but -// TF_OK, ctx is left unmodified. -// -// If i < 0 or i >= TF_NumOutputs(ctx), *status is set to TF_OUT_OF_RANGE. -public static native void TF_SetOutput(TF_OpKernelContext ctx, int i, - @Const TF_Tensor tensor, - TF_Status status); - -// Notifies the given OpKernelConstruction that kernel construction has failed. -public static native void TF_OpKernelConstruction_Failure( - TF_OpKernelConstruction ctx, TF_Status status); - -// Notifies the given OpKernelContext that the kernel's compute function has -// failed. -public static native void TF_OpKernelContext_Failure(TF_OpKernelContext ctx, - TF_Status status); - -// Returns the expected output data type of the ith output. If i < 0 or -// i >= TF_NumOutputs(ctx), the program aborts. -public static native @Cast("TF_DataType") int TF_ExpectedOutputDataType( - TF_OpKernelContext ctx, int i); - -// Returns the step ID of the given context. -public static native @Cast("int64_t") long TF_StepId(TF_OpKernelContext ctx); - -// Returns the name of the OpKernel. -// -// The returned TF_StringView's underlying string is owned by the OpKernel and -// has the same lifetime as the OpKernel. -public static native @ByVal TF_StringView TF_GetOpKernelName(TF_OpKernelContext ctx); - -// Returns the name of the requested input at `index` from the OpKernel. -// -// The returned TF_StringView's underlying string is owned by the OpKernel and -// has the same lifetime as the OpKernel. -public static native @ByVal TF_StringView TF_GetOpKernelRequestedInput( - TF_OpKernelContext ctx, @Cast("size_t") long index); - -// Get the list_size and total_size of the attribute `attr_name` of `oper`. -// list_size - the length of the list. -// total_size - total size of the list. -// (1) If attr_type == TF_ATTR_STRING -// then total_size is the cumulative byte size -// of all the strings in the list. -// (3) If attr_type == TF_ATTR_SHAPE -// then total_size is the number of dimensions -// of the shape valued attribute, or -1 -// if its rank is unknown. -// (4) If attr_type == TF_ATTR_SHAPE -// then total_size is the cumulative number -// of dimensions of all shapes in the list. -// (5) Otherwise, total_size is undefined. -public static native void TF_OpKernelConstruction_GetAttrSize( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, IntPointer list_size, - IntPointer total_size, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrSize( - TF_OpKernelConstruction ctx, String attr_name, IntBuffer list_size, - IntBuffer total_size, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrSize( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, int[] list_size, - int[] total_size, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrSize( - TF_OpKernelConstruction ctx, String attr_name, IntPointer list_size, - IntPointer total_size, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrSize( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, IntBuffer list_size, - IntBuffer total_size, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrSize( - TF_OpKernelConstruction ctx, String attr_name, int[] list_size, - int[] total_size, TF_Status status); - -// Interprets the named kernel construction attribute as a TF_DataType and -// places it into *val. *status is set to TF_OK. -// -// If the attribute could not be found or could not be interpreted as -// TF_DataType, *status is populated with an error. -public static native void TF_OpKernelConstruction_GetAttrType( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("TF_DataType*") IntPointer val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrType( - TF_OpKernelConstruction ctx, String attr_name, @Cast("TF_DataType*") IntBuffer val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrType( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("TF_DataType*") int[] val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrType( - TF_OpKernelConstruction ctx, String attr_name, @Cast("TF_DataType*") IntPointer val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrType( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("TF_DataType*") IntBuffer val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrType( - TF_OpKernelConstruction ctx, String attr_name, @Cast("TF_DataType*") int[] val, - TF_Status status); - -// Interprets the named kernel construction attribute as int32_t and -// places it into *val. *status is set to TF_OK. -// -// If the attribute could not be found or could not be interpreted as -// int32, *status is populated with an error. -public static native void TF_OpKernelConstruction_GetAttrInt32( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, IntPointer val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrInt32( - TF_OpKernelConstruction ctx, String attr_name, IntBuffer val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrInt32( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, int[] val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrInt32( - TF_OpKernelConstruction ctx, String attr_name, IntPointer val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrInt32( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, IntBuffer val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrInt32( - TF_OpKernelConstruction ctx, String attr_name, int[] val, - TF_Status status); - -// Interprets the named kernel construction attribute as int64_t and -// places it into *val. *status is set to TF_OK. -// -// If the attribute could not be found or could not be interpreted as -// int64, *status is populated with an error. -public static native void TF_OpKernelConstruction_GetAttrInt64( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("int64_t*") LongPointer val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrInt64( - TF_OpKernelConstruction ctx, String attr_name, @Cast("int64_t*") LongBuffer val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrInt64( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("int64_t*") long[] val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrInt64( - TF_OpKernelConstruction ctx, String attr_name, @Cast("int64_t*") LongPointer val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrInt64( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("int64_t*") LongBuffer val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrInt64( - TF_OpKernelConstruction ctx, String attr_name, @Cast("int64_t*") long[] val, - TF_Status status); - -// Interprets the named kernel construction attribute as float and -// places it into *val. *status is set to TF_OK. -// -// If the attribute could not be found or could not be interpreted as -// float, *status is populated with an error. -public static native void TF_OpKernelConstruction_GetAttrFloat( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, FloatPointer val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrFloat( - TF_OpKernelConstruction ctx, String attr_name, FloatBuffer val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrFloat( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, float[] val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrFloat( - TF_OpKernelConstruction ctx, String attr_name, FloatPointer val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrFloat( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, FloatBuffer val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrFloat( - TF_OpKernelConstruction ctx, String attr_name, float[] val, - TF_Status status); - -// Interprets the named kernel construction attribute as bool and -// places it into *val. *status is set to TF_OK. -// -// If the attribute could not be found or could not be interpreted as -// bool, *status is populated with an error. -public static native void TF_OpKernelConstruction_GetAttrBool( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("unsigned char*") BytePointer val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrBool( - TF_OpKernelConstruction ctx, String attr_name, @Cast("unsigned char*") ByteBuffer val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrBool( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("unsigned char*") byte[] val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrBool( - TF_OpKernelConstruction ctx, String attr_name, @Cast("unsigned char*") BytePointer val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrBool( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("unsigned char*") ByteBuffer val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrBool( - TF_OpKernelConstruction ctx, String attr_name, @Cast("unsigned char*") byte[] val, - TF_Status status); - -// Interprets the named kernel construction attribute as string and -// places it into *val. `val` must -// point to an array of length at least `max_length` (ideally set to -// total_size from TF_OpKernelConstruction_GetAttrSize(ctx, -// attr_name, list_size, total_size)). *status is set to TF_OK. -// -// If the attribute could not be found or could not be interpreted as -// string, *status is populated with an error. -public static native void TF_OpKernelConstruction_GetAttrString( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("char*") BytePointer val, - @Cast("size_t") long max_length, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrString( - TF_OpKernelConstruction ctx, String attr_name, @Cast("char*") ByteBuffer val, - @Cast("size_t") long max_length, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrString( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("char*") byte[] val, - @Cast("size_t") long max_length, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrString( - TF_OpKernelConstruction ctx, String attr_name, @Cast("char*") BytePointer val, - @Cast("size_t") long max_length, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrString( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("char*") ByteBuffer val, - @Cast("size_t") long max_length, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrString( - TF_OpKernelConstruction ctx, String attr_name, @Cast("char*") byte[] val, - @Cast("size_t") long max_length, TF_Status status); - -// Interprets the named kernel construction attribute as tensor and places it -// into *val. Allocates a new TF_Tensor which the caller is expected to take -// ownership of (and can deallocate using TF_DeleteTensor). *status is set to -// TF_OK. -// -// If the attribute could not be found or could not be interpreted as -// tensor, *status is populated with an error. -public static native void TF_OpKernelConstruction_GetAttrTensor( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("TF_Tensor**") PointerPointer val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrTensor( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @ByPtrPtr TF_Tensor val, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrTensor( - TF_OpKernelConstruction ctx, String attr_name, @ByPtrPtr TF_Tensor val, - TF_Status status); - -// Interprets the named kernel construction attribute as a TF_DataType array and -// places it into *vals. *status is set to TF_OK. -// `vals` must point to an array of length at least `max_values` (ideally set -// to list_size from -// TF_OpKernelConstruction_GetAttrSize(ctx, attr_name, list_size, -// total_size)). -public static native void TF_OpKernelConstruction_GetAttrTypeList( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("TF_DataType*") IntPointer vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrTypeList( - TF_OpKernelConstruction ctx, String attr_name, @Cast("TF_DataType*") IntBuffer vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrTypeList( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("TF_DataType*") int[] vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrTypeList( - TF_OpKernelConstruction ctx, String attr_name, @Cast("TF_DataType*") IntPointer vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrTypeList( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("TF_DataType*") IntBuffer vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrTypeList( - TF_OpKernelConstruction ctx, String attr_name, @Cast("TF_DataType*") int[] vals, - int max_vals, TF_Status status); - -// Interprets the named kernel construction attribute as int32_t array and -// places it into *vals. *status is set to TF_OK. -// `vals` must point to an array of length at least `max_values` (ideally set -// to list_size from -// TF_OpKernelConstruction_GetAttrSize(ctx, attr_name, list_size, -// total_size)). -public static native void TF_OpKernelConstruction_GetAttrInt32List( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, IntPointer vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrInt32List( - TF_OpKernelConstruction ctx, String attr_name, IntBuffer vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrInt32List( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, int[] vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrInt32List( - TF_OpKernelConstruction ctx, String attr_name, IntPointer vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrInt32List( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, IntBuffer vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrInt32List( - TF_OpKernelConstruction ctx, String attr_name, int[] vals, - int max_vals, TF_Status status); - -// Interprets the named kernel construction attribute as int64_t array and -// places it into *vals. *status is set to TF_OK. -// `vals` must point to an array of length at least `max_values` (ideally set -// to list_size from -// TF_OpKernelConstruction_GetAttrSize(ctx, attr_name, list_size, -// total_size)). -public static native void TF_OpKernelConstruction_GetAttrInt64List( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("int64_t*") LongPointer vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrInt64List( - TF_OpKernelConstruction ctx, String attr_name, @Cast("int64_t*") LongBuffer vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrInt64List( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("int64_t*") long[] vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrInt64List( - TF_OpKernelConstruction ctx, String attr_name, @Cast("int64_t*") LongPointer vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrInt64List( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("int64_t*") LongBuffer vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrInt64List( - TF_OpKernelConstruction ctx, String attr_name, @Cast("int64_t*") long[] vals, - int max_vals, TF_Status status); - -// Interprets the named kernel construction attribute as float array and -// places it into *vals. *status is set to TF_OK. -// `vals` must point to an array of length at least `max_values` (ideally set -// to list_size from -// TF_OpKernelConstruction_GetAttrSize(ctx, attr_name, list_size, -// total_size)). -public static native void TF_OpKernelConstruction_GetAttrFloatList( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, FloatPointer vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrFloatList( - TF_OpKernelConstruction ctx, String attr_name, FloatBuffer vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrFloatList( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, float[] vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrFloatList( - TF_OpKernelConstruction ctx, String attr_name, FloatPointer vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrFloatList( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, FloatBuffer vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrFloatList( - TF_OpKernelConstruction ctx, String attr_name, float[] vals, - int max_vals, TF_Status status); - -// Interprets the named kernel construction attribute as bool array and -// places it into *vals. *status is set to TF_OK. -// `vals` must point to an array of length at least `max_values` (ideally set -// to list_size from -// TF_OpKernelConstruction_GetAttrSize(ctx, attr_name, list_size, -// total_size)). -public static native void TF_OpKernelConstruction_GetAttrBoolList( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("unsigned char*") BytePointer vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrBoolList( - TF_OpKernelConstruction ctx, String attr_name, @Cast("unsigned char*") ByteBuffer vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrBoolList( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("unsigned char*") byte[] vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrBoolList( - TF_OpKernelConstruction ctx, String attr_name, @Cast("unsigned char*") BytePointer vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrBoolList( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("unsigned char*") ByteBuffer vals, - int max_vals, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrBoolList( - TF_OpKernelConstruction ctx, String attr_name, @Cast("unsigned char*") byte[] vals, - int max_vals, TF_Status status); - -// Interprets the named kernel construction attribute as string array and fills -// in `vals` and `lengths`, each of which must point to an array of length at -// least `max_values`. *status is set to TF_OK. The elements of values will -// point to addresses in `storage` which must be at least `storage_size` bytes -// in length. Ideally, max_values would be set to list_size and `storage` would -// be at least total_size, obtained from -// TF_OpKernelConstruction_GetAttrSize(ctx, attr_name, list_size, -// total_size). -public static native void TF_OpKernelConstruction_GetAttrStringList( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("char**") PointerPointer vals, - @Cast("size_t*") SizeTPointer lengths, int max_values, Pointer storage, @Cast("size_t") long storage_size, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrStringList( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("char**") @ByPtrPtr BytePointer vals, - @Cast("size_t*") SizeTPointer lengths, int max_values, Pointer storage, @Cast("size_t") long storage_size, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrStringList( - TF_OpKernelConstruction ctx, String attr_name, @Cast("char**") @ByPtrPtr ByteBuffer vals, - @Cast("size_t*") SizeTPointer lengths, int max_values, Pointer storage, @Cast("size_t") long storage_size, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrStringList( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("char**") @ByPtrPtr byte[] vals, - @Cast("size_t*") SizeTPointer lengths, int max_values, Pointer storage, @Cast("size_t") long storage_size, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrStringList( - TF_OpKernelConstruction ctx, String attr_name, @Cast("char**") @ByPtrPtr BytePointer vals, - @Cast("size_t*") SizeTPointer lengths, int max_values, Pointer storage, @Cast("size_t") long storage_size, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrStringList( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("char**") @ByPtrPtr ByteBuffer vals, - @Cast("size_t*") SizeTPointer lengths, int max_values, Pointer storage, @Cast("size_t") long storage_size, - TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrStringList( - TF_OpKernelConstruction ctx, String attr_name, @Cast("char**") @ByPtrPtr byte[] vals, - @Cast("size_t*") SizeTPointer lengths, int max_values, Pointer storage, @Cast("size_t") long storage_size, - TF_Status status); - -// Interprets the named kernel construction attribute as tensor array and places -// it into *vals. *status is set to TF_OK. -// `vals` must point to an array of length at least `max_values` -// (ideally set to list_size from TF_OpKernelConstruction_GetAttrSize(ctx, -// attr_name, list_size, total_size)). -// -// The caller takes ownership of all the non-null TF_Tensor* entries in `vals` -// (which can be deleted using TF_DeleteTensor(vals[i])). -public static native void TF_OpKernelConstruction_GetAttrTensorList( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @Cast("TF_Tensor**") PointerPointer vals, - int max_values, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrTensorList( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, @ByPtrPtr TF_Tensor vals, - int max_values, TF_Status status); -public static native void TF_OpKernelConstruction_GetAttrTensorList( - TF_OpKernelConstruction ctx, String attr_name, @ByPtrPtr TF_Tensor vals, - int max_values, TF_Status status); - -// Return true if the kernel construction has the attr_name -public static native @Cast("bool") boolean TF_OpKernelConstruction_HasAttr( - TF_OpKernelConstruction ctx, @Cast("const char*") BytePointer attr_name, TF_Status status); -public static native @Cast("bool") boolean TF_OpKernelConstruction_HasAttr( - TF_OpKernelConstruction ctx, String attr_name, TF_Status status); - -// Returns the unique operation name for this OpKernel. -public static native @ByVal TF_StringView TF_OpKernelConstruction_GetName( - TF_OpKernelConstruction ctx); - -// Allocates Tensor for output at given index. Caller takes ownership of -// returned TF_Tensor and should deallocate it using TF_DeleteTensor(tensor). -// -// This function should be used to allocate outputs inside kernel -// compute function. -public static native TF_Tensor TF_AllocateOutput(TF_OpKernelContext context, - int index, @Cast("TF_DataType") int dtype, - @Cast("const int64_t*") LongPointer dims, int num_dims, - @Cast("size_t") long len, TF_Status status); -public static native TF_Tensor TF_AllocateOutput(TF_OpKernelContext context, - int index, @Cast("TF_DataType") int dtype, - @Cast("const int64_t*") LongBuffer dims, int num_dims, - @Cast("size_t") long len, TF_Status status); -public static native TF_Tensor TF_AllocateOutput(TF_OpKernelContext context, - int index, @Cast("TF_DataType") int dtype, - @Cast("const int64_t*") long[] dims, int num_dims, - @Cast("size_t") long len, TF_Status status); - -// Tries to forward one of the inputs given in input_indices to -// output[output_index]. If none of the given inputs can be forwarded, calls -// allocate_output() to allocate a new output buffer. The index of the -// forwarded input will be assign to output argument forwarded_input (if it's -// not nullptr). If no inputs are forwarded, forwarded_input will be assigned -// -1. -public static native TF_Tensor TF_ForwardInputOrAllocateOutput( - TF_OpKernelContext context, @Const IntPointer candidate_input_indices, - int num_candidate_input_indices, int output_index, - @Cast("const int64_t*") LongPointer output_dims, int output_num_dims, IntPointer forwarded_input, - TF_Status status); -public static native TF_Tensor TF_ForwardInputOrAllocateOutput( - TF_OpKernelContext context, @Const IntBuffer candidate_input_indices, - int num_candidate_input_indices, int output_index, - @Cast("const int64_t*") LongBuffer output_dims, int output_num_dims, IntBuffer forwarded_input, - TF_Status status); -public static native TF_Tensor TF_ForwardInputOrAllocateOutput( - TF_OpKernelContext context, @Const int[] candidate_input_indices, - int num_candidate_input_indices, int output_index, - @Cast("const int64_t*") long[] output_dims, int output_num_dims, int[] forwarded_input, - TF_Status status); - -// Allocates a temporary Tensor of the specified type and shape. The -// Tensor must not be used after kernel construction is -// complete. -// -// num_dims must equal the size of array dims -public static native TF_Tensor TF_AllocateTemp( - TF_OpKernelContext context, @Cast("TF_DataType") int dtype, @Cast("const int64_t*") LongPointer dims, - int num_dims, TF_AllocatorAttributes alloc_attrs, TF_Status status); -public static native TF_Tensor TF_AllocateTemp( - TF_OpKernelContext context, @Cast("TF_DataType") int dtype, @Cast("const int64_t*") LongBuffer dims, - int num_dims, TF_AllocatorAttributes alloc_attrs, TF_Status status); -public static native TF_Tensor TF_AllocateTemp( - TF_OpKernelContext context, @Cast("TF_DataType") int dtype, @Cast("const int64_t*") long[] dims, - int num_dims, TF_AllocatorAttributes alloc_attrs, TF_Status status); - -// #ifdef __cplusplus /* end extern "C" */ -// #endif - -// #endif // TENSORFLOW_C_KERNELS_H_ - - -// Parsed from tensorflow/c/ops.h - -/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -==============================================================================*/ - -// Routines for registering new ops and for implementing op shape inference -// functions. -// -// This API is alpha software and is subject to change. -// -// REGISTRATION -// ------------ -// -// In order to register a new op, create a new TF_OpDefinitionBuilder: -// -// TF_OpDefinitionBuilder* builder = TF_NewOpDefinitionBuilder("OpName"); -// -// Inputs, outputs and attributes can be added to the builder with the -// corresponding functions, e.g. -// -// TF_OpDefinitionBuilderAddInput(builder, "input1: int32"); -// TF_OpDefinitionBuilderAddOutput(builder, "output1: int64"); -// TF_OpDefinitionBuilderAddAttr(builder, "attr: int32"); -// -// The builder may then be registered with TensorFlow using the -// TF_RegisterOpDefinition function. E.g. -// -// TF_Status* status = TF_NewStatus(); -// TF_RegisterOpDefinition(builder, &status); -// if (TF_GetCode(status) != TF_OK) { -// // handle error -// } -// -// SHAPE INFERENCE -// --------------- -// -// You can provide a shape inference function that TensorFlow will call when it -// wants to understand the shape of outputs that the op will produce. Use the -// TF_OpDefinitionBuilderSetShapeInferenceFunction function to register a shape -// inference function pointer with TensorFlow. The following is an example of a -// very simple shape inference function: -// -// void identity_shape_fn(TF_ShapeInferenceContext* ctx, TF_Status* status) { -// TF_ShapeHandle* input = TF_NewShapeHandle(); -// TF_ShapeInferenceContextGetInput(ctx, 0, input, status); -// if (TF_GetCode(status) == TF_OK) { -// TF_ShapeInferenceContextSetOutput(ctx, 0, input, status); -// } -// TF_DeleteShapeHandle(input); -// } -// -// The following code registers the inference function with TensorFlow: -// -// TF_OpDefinitionBuilderSetShapeInferenceFunction(builder, &identity_shape_fn); -// -// For more details about shape inference, see the documentation for -// TF_OpDefinitionBuilderSetShapeInferenceFunction. - -// #ifndef TENSORFLOW_C_OPS_H_ -// #define TENSORFLOW_C_OPS_H_ - -// #include -// #include -// #include - -// #include "tensorflow/c/tf_datatype.h" -// #include "tensorflow/c/tf_status.h" - -// #ifdef SWIG -// #define TF_CAPI_EXPORT -// #else -// #if defined(_WIN32) -// #ifdef TF_COMPILE_LIBRARY -// #define TF_CAPI_EXPORT __declspec(dllexport) -// #else -// #define TF_CAPI_EXPORT __declspec(dllimport) -// #endif // TF_COMPILE_LIBRARY -// #else -// #define TF_CAPI_EXPORT __attribute__((visibility("default"))) -// #endif // _WIN32 -// #endif // SWIG - -// #ifdef __cplusplus -// Targeting ../TF_DimensionHandle.java - - -// Targeting ../TF_OpDefinitionBuilder.java - - -// Targeting ../TF_ShapeHandle.java - - -// Targeting ../TF_ShapeInferenceContext.java - - - -// Returns a newly allocated op definition builder for the given op name. The -// returned builder may be customized with the `TF_OpDefinitionBuilder...` -// functions and then registered with TensorFlow with TF_RegisterOpDefinition. -// -// The returned pointer is either freed by a call to TF_RegisterOpDefinition, or -// can be manually deleted by TF_DeleteOpDefinitionBuilder if it is never -// registered. -public static native TF_OpDefinitionBuilder TF_NewOpDefinitionBuilder( - @Cast("const char*") BytePointer op_name); -public static native TF_OpDefinitionBuilder TF_NewOpDefinitionBuilder( - String op_name); - -// Registers the given op builder with TensorFlow. Indicates success or -// otherwise in the given status. -// -// `builder` is freed whether the op was successfully registered or not. You -// must call either this function or TF_DeleteOpDefinitionBuilder to free the -// builder, but never both. -public static native void TF_RegisterOpDefinition( - TF_OpDefinitionBuilder builder, TF_Status status); - -// Frees the given op definition builder. You must call either this function or -// TF_RegisterOpDefinition to free the builder, but never both. -public static native void TF_DeleteOpDefinitionBuilder( - TF_OpDefinitionBuilder builder); - -//---------------------------------------------------- -// Attribute functions. - -// Adds an attr to the given TF_OpDefinitionBuilder. The spec has -// format ":" or ":=" -// where matches regexp [a-zA-Z][a-zA-Z0-9_]*. -// By convention, names containing only capital letters are reserved for -// attributes whose values can be inferred by the operator implementation if not -// supplied by the user. If the attribute name contains characters other than -// capital letters, the operator expects the user to provide the attribute value -// at operation runtime. -// -// can be: -// "string", "int", "float", "bool", "type", "shape", or "tensor" -// "numbertype", "realnumbertype", "quantizedtype" -// (meaning "type" with a restriction on valid values) -// "{int32,int64}" or {realnumbertype,quantizedtype,string}" -// (meaning "type" with a restriction containing unions of value types) -// "{\"foo\", \"bar\n baz\"}", or "{'foo', 'bar\n baz'}" -// (meaning "string" with a restriction on valid values) -// "list(string)", ..., "list(tensor)", "list(numbertype)", ... -// (meaning lists of the above types) -// "int >= 2" (meaning "int" with a restriction on valid values) -// "list(string) >= 2", "list(int) >= 2" -// (meaning "list(string)" / "list(int)" with length at least 2) -// , if included, should use the Proto text format -// of . For lists use [a, b, c] format. -// -// Note that any attr specifying the length of an input or output will -// get a default minimum of 1 unless the >= # syntax is used. -public static native void TF_OpDefinitionBuilderAddAttr( - TF_OpDefinitionBuilder builder, @Cast("const char*") BytePointer attr_spec); -public static native void TF_OpDefinitionBuilderAddAttr( - TF_OpDefinitionBuilder builder, String attr_spec); - -// Adds an input to this TF_OpDefinitionBuilder. -// The spec has form ":" or ":Ref()" -// where matches regexp [a-z][a-z0-9_]* and can be: -// * For a single tensor: -// * For a sequence of tensors with the same type: * -// * For a sequence of tensors with different types: -// Where: -// is either one of "float", "int32", "string", ... -// or the name of an attr (see TF_OpDefinitionBuilderAddAttr) -// with type "type". -// is the name of an attr with type "int". -// is the name of an attr with type "list(type)". -public static native void TF_OpDefinitionBuilderAddInput( - TF_OpDefinitionBuilder builder, @Cast("const char*") BytePointer input_spec); -public static native void TF_OpDefinitionBuilderAddInput( - TF_OpDefinitionBuilder builder, String input_spec); - -// Adds an output to this TF_OpDefinitionBuilder. -// The spec has form ":" or ":Ref()" -// where matches regexp [a-z][a-z0-9_]* and can be: -// * For a single tensor: -// * For a sequence of tensors with the same type: * -// * For a sequence of tensors with different types: -// Where: -// is either one of "float", "int32", "string", ... -// or the name of an attr (see TF_OpDefinitionBuilderAddAttr) -// with type "type". -// is the name of an attr with type "int". -// is the name of an attr with type "list(type)". -public static native void TF_OpDefinitionBuilderAddOutput( - TF_OpDefinitionBuilder builder, @Cast("const char*") BytePointer output_spec); -public static native void TF_OpDefinitionBuilderAddOutput( - TF_OpDefinitionBuilder builder, String output_spec); - -// Sets the commutative property for the op built by the given builder. -public static native void TF_OpDefinitionBuilderSetIsCommutative( - TF_OpDefinitionBuilder builder, @Cast("bool") boolean is_commutative); - -// Sets the is_aggregate property of the builder to the given value. -// -// If is_aggregate is true, then the operation produced by this builder accepts -// N >= 2 inputs and produces 1 output all of the same type. Should be -// associative and commutative, and produce output with the same shape as the -// input. The optimizer may replace an aggregate op taking input from multiple -// devices with a tree of aggregate ops that aggregate locally within each -// device (and possibly within groups of nearby devices) before communicating. -public static native void TF_OpDefinitionBuilderSetIsAggregate( - TF_OpDefinitionBuilder builder, @Cast("bool") boolean is_aggregate); - -// Sets the is_stateful property of the builder to the given value. -// -// The op built by this builder is stateful if its behavior depends on some -// state beyond its input tensors (e.g. variable reading op) or if it has a -// side-effect (e.g. printing or asserting ops). Equivalently, stateless ops -// must always produce the same output for the same input and have no -// side-effects. -// -// By default Ops may be moved between devices. Stateful ops should either not -// be moved, or should only be moved if that state can also be moved (e.g. via -// some sort of save / restore). Stateful ops are guaranteed to never be -// optimized away by Common Subexpression Elimination (CSE). -public static native void TF_OpDefinitionBuilderSetIsStateful( - TF_OpDefinitionBuilder builder, @Cast("bool") boolean is_stateful); - -// Sets the allows_uninitialized_input property of the operation built by this -// builder. -// -// By default, all inputs to an Op must be initialized Tensors. Ops that may -// initialize tensors for the first time should set this field to true, to allow -// the Op to take an uninitialized Tensor as input. -public static native void TF_OpDefinitionBuilderSetAllowsUninitializedInput( - TF_OpDefinitionBuilder builder, @Cast("bool") boolean allows_uninitialized_input); - -// Adds a deprecation warning for the given op. This indicates to the user that -// `version` is the first TensorFlow GraphDef version for which the operation is -// deprecated. `explanation` should contain the reason for the deprecation and -// what to use instead. -// -// This function is only an indicator that the operation may disappear in a -// version of TensorFlow after `version`. It does not affect op registration. -public static native void TF_OpDefinitionBuilderDeprecated( - TF_OpDefinitionBuilder builder, int version, @Cast("const char*") BytePointer explanation); -public static native void TF_OpDefinitionBuilderDeprecated( - TF_OpDefinitionBuilder builder, int version, String explanation); -// Targeting ../Shape_inference_func_TF_ShapeInferenceContext_TF_Status.java - - -public static native void TF_OpDefinitionBuilderSetShapeInferenceFunction( - TF_OpDefinitionBuilder builder, - Shape_inference_func_TF_ShapeInferenceContext_TF_Status shape_inference_func); - -//---------------------------------------------------- -// Functions for TF_ShapeInferenceContext. -// -// Functions for implementing shape inference functions. TensorFlow uses these -// functions to determine the shape of tensors produced by an operation without -// having to actually run the operation. If an operation chooses to provide a -// shape inference function, it will be invoked by TensorFlow as needed. -// -// When invoked by TensorFlow, the shape inference function is provided with a -// TF_ShapeInferenceContext pointer. The function's implementation will use the -// accessor and mutator functions with names beginning with -// TF_ShapeInferenceContext to examine the input state and determine the output -// shape. - -// Returns the number of inputs in the given shape inference context. -public static native @Cast("int64_t") long TF_ShapeInferenceContextNumInputs( - TF_ShapeInferenceContext ctx); - -// Returns a newly allocated shape handle. The shapes represented by these -// handles may be queried or mutated with the corresponding -// TF_ShapeInferenceContext... functions. -public static native TF_ShapeHandle TF_NewShapeHandle(); - -// Places the ith input of the given shape inference context into the given -// shape handle, or returns a status other than TF_OK indicating why the input -// could not be retrieved -// (for example, if i < 0 || i >= TF_ShapeInferenceContextNumInputs(ctx)). -public static native void TF_ShapeInferenceContextGetInput( - TF_ShapeInferenceContext ctx, int i, TF_ShapeHandle handle, - TF_Status status); - -// Places the given shape handle into the `i`th output position of the given -// context. Internally, the shape handle is copied; the caller may subsequently -// delete `handle`. -public static native void TF_ShapeInferenceContextSetOutput(TF_ShapeInferenceContext ctx, - int i, TF_ShapeHandle handle, - TF_Status status); - -// Returns a newly-allocated scalar shape handle. The returned handle should -// be freed with TF_DeleteShapeHandle. -public static native TF_ShapeHandle TF_ShapeInferenceContextScalar( - TF_ShapeInferenceContext ctx); - -// Returns a newly-allocate shape handle representing a vector of the given -// size. The returned handle should be freed with TF_DeleteShapeHandle. -public static native TF_ShapeHandle TF_ShapeInferenceContextVectorFromSize( - TF_ShapeInferenceContext ctx, @Cast("size_t") long size); - -// Returns a newly allocated dimension handle. It must be freed with -// TF_DeleteDimensionHandle. -public static native TF_DimensionHandle TF_NewDimensionHandle(); - -// Interprets the named shape inference context attribute as a TF_DataType and -// places it into *val. *status is set to TF_OK. -// -// If the attribute could not be found or could not be interpreted as -// TF_DataType, *status is populated with an error. -public static native void TF_ShapeInferenceContext_GetAttrType( - TF_ShapeInferenceContext ctx, @Cast("const char*") BytePointer attr_name, @Cast("TF_DataType*") IntPointer val, - TF_Status status); -public static native void TF_ShapeInferenceContext_GetAttrType( - TF_ShapeInferenceContext ctx, String attr_name, @Cast("TF_DataType*") IntBuffer val, - TF_Status status); -public static native void TF_ShapeInferenceContext_GetAttrType( - TF_ShapeInferenceContext ctx, @Cast("const char*") BytePointer attr_name, @Cast("TF_DataType*") int[] val, - TF_Status status); -public static native void TF_ShapeInferenceContext_GetAttrType( - TF_ShapeInferenceContext ctx, String attr_name, @Cast("TF_DataType*") IntPointer val, - TF_Status status); -public static native void TF_ShapeInferenceContext_GetAttrType( - TF_ShapeInferenceContext ctx, @Cast("const char*") BytePointer attr_name, @Cast("TF_DataType*") IntBuffer val, - TF_Status status); -public static native void TF_ShapeInferenceContext_GetAttrType( - TF_ShapeInferenceContext ctx, String attr_name, @Cast("TF_DataType*") int[] val, - TF_Status status); - -// Returns the rank of the shape represented by the given handle. -public static native @Cast("int64_t") long TF_ShapeInferenceContextRank( - TF_ShapeInferenceContext ctx, TF_ShapeHandle handle); - -// Returns 1 if `handle` has a known rank, 0 otherwise. -public static native int TF_ShapeInferenceContextRankKnown( - TF_ShapeInferenceContext ctx, TF_ShapeHandle handle); - -// If has rank , or its rank is unknown, return OK and return the -// shape with asserted rank in <*result>. Otherwise an error is placed into -// `status`. -public static native void TF_ShapeInferenceContextWithRank( - TF_ShapeInferenceContext ctx, TF_ShapeHandle handle, @Cast("int64_t") long rank, - TF_ShapeHandle result, TF_Status status); - -// If has rank at least , or its rank is unknown, return OK and -// return the shape with asserted rank in <*result>. Otherwise an error is -// placed into `status`. -public static native void TF_ShapeInferenceContextWithRankAtLeast( - TF_ShapeInferenceContext ctx, TF_ShapeHandle handle, @Cast("int64_t") long rank, - TF_ShapeHandle result, TF_Status status); - -// If has rank at most , or its rank is unknown, return OK and -// return the shape with asserted rank in <*result>. Otherwise an error is -// placed into `status`. -public static native void TF_ShapeInferenceContextWithRankAtMost( - TF_ShapeInferenceContext ctx, TF_ShapeHandle handle, @Cast("int64_t") long rank, - TF_ShapeHandle result, TF_Status status); - -// Places a handle to the ith dimension of the given shape into *result. -public static native void TF_ShapeInferenceContextDim( - TF_ShapeInferenceContext ctx, TF_ShapeHandle shape_handle, @Cast("int64_t") long i, - TF_DimensionHandle result); - -// Returns in <*result> a sub-shape of , with dimensions -// [start:end]. and can be negative, to index from the end of the -// shape. and are set to the rank of if > rank of -// . -public static native void TF_ShapeInferenceContextSubshape( - TF_ShapeInferenceContext ctx, TF_ShapeHandle shape_handle, @Cast("int64_t") long start, - @Cast("int64_t") long end, TF_ShapeHandle result, TF_Status status); - -// Places an unknown shape in all outputs for the given inference context. Used -// for shape inference functions with ops whose output shapes are unknown. -public static native void TF_ShapeInferenceContextSetUnknownShape( - TF_ShapeInferenceContext ctx, TF_Status status); - -// Returns whether the given handle represents a known dimension. -public static native int TF_DimensionHandleValueKnown( - TF_DimensionHandle dim_handle); - -// Returns the value of the given dimension. -public static native @Cast("int64_t") long TF_DimensionHandleValue( - TF_DimensionHandle dim_handle); - -// Returns in <*result> the result of appending the dimensions of to -// those of . -public static native void TF_ShapeInferenceContextConcatenateShapes( - TF_ShapeInferenceContext ctx, TF_ShapeHandle first, - TF_ShapeHandle second, TF_ShapeHandle result, TF_Status status); - -// Frees the given shape handle. -public static native void TF_DeleteShapeHandle(TF_ShapeHandle handle); - -// Frees the given dimension handle. -public static native void TF_DeleteDimensionHandle(TF_DimensionHandle handle); - -// #ifdef __cplusplus /* end extern "C" */ -// #endif - -// #endif // TENSORFLOW_C_OPS_H_ - - -// Parsed from tensorflow_adapters.h - -/* - Copyright 2021 The TensorFlow Authors. All Rights Reserved. - 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 - http://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. - ======================================================================= - */ - -// #include "absl/types/span.h" - - - -// Parsed from tensorflow/c/eager/c_api.h - -/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -==============================================================================*/ - -// #ifndef TENSORFLOW_C_EAGER_C_API_H_ -// #define TENSORFLOW_C_EAGER_C_API_H_ - -// C API extensions to experiment with eager execution of kernels. -// WARNING: Unlike tensorflow/c/c_api.h, the API here is not guaranteed to be -// stable and can change without notice. - -// #include "tensorflow/c/c_api.h" - -// Macro to control visibility of exported symbols in the shared library (.so, -// .dylib, .dll). -// This duplicates the TF_EXPORT macro definition in -// tensorflow/core/platform/macros.h in order to keep this .h file independent -// of any other includes.$a -// #ifdef SWIG -// #define TF_CAPI_EXPORT -// #else -// #if defined(_WIN32) -// #ifdef TF_COMPILE_LIBRARY -// #define TF_CAPI_EXPORT __declspec(dllexport) -// #else -// #define TF_CAPI_EXPORT __declspec(dllimport) -// #endif // TF_COMPILE_LIBRARY -// #else -// #define TF_CAPI_EXPORT __attribute__((visibility("default"))) -// #endif // _WIN32 -// #endif // SWIG - -// #ifdef __cplusplus -// Targeting ../TFE_ContextOptions.java - - - -// Return a new options object. -public static native TFE_ContextOptions TFE_NewContextOptions(); - -// Set the config in TF_ContextOptions.options. -// config should be a serialized tensorflow.ConfigProto proto. -// If config was not parsed successfully as a ConfigProto, record the -// error information in *status. -public static native void TFE_ContextOptionsSetConfig( - TFE_ContextOptions options, @Const Pointer proto, @Cast("size_t") long proto_len, - TF_Status status); - -// Controls how to act when we try to run an operation on a given device but -// some input tensors are not on that device. -// LINT.IfChange -// Note: Keep in sync with internal copy of enum in eager/context.h. -/** enum TFE_ContextDevicePlacementPolicy */ -public static final int - // Running operations with input tensors on the wrong device will fail. - TFE_DEVICE_PLACEMENT_EXPLICIT = 0, - // Copy the tensor to the right device but log a warning. - TFE_DEVICE_PLACEMENT_WARN = 1, - // Silently copy the tensor, which has a performance cost since the operation - // will be blocked till the copy completes. This is the default placement - // policy. - TFE_DEVICE_PLACEMENT_SILENT = 2, - // Placement policy which silently copies int32 tensors but not other dtypes. - TFE_DEVICE_PLACEMENT_SILENT_FOR_INT32 = 3; -// LINT.ThenChange(//tensorflow/c/eager/immediate_execution_context.h) - -// Sets the default execution mode (sync/async). Note that this can be -// overridden per thread using TFE_ContextSetExecutorForThread. -public static native void TFE_ContextOptionsSetAsync(TFE_ContextOptions arg0, - @Cast("unsigned char") byte enable); - -public static native void TFE_ContextOptionsSetDevicePlacementPolicy( - TFE_ContextOptions arg0, @Cast("TFE_ContextDevicePlacementPolicy") int arg1); - -// Destroy an options object. -public static native void TFE_DeleteContextOptions(TFE_ContextOptions arg0); -// Targeting ../TFE_Context.java - - - -public static native TFE_Context TFE_NewContext( - @Const TFE_ContextOptions opts, TF_Status status); -public static native void TFE_DeleteContext(TFE_Context ctx); -public static native TF_DeviceList TFE_ContextListDevices(TFE_Context ctx, - TF_Status status); - -// Clears the internal caches in the TFE context. Useful when reseeding random -// ops. -public static native void TFE_ContextClearCaches(TFE_Context ctx); - -// Sets a thread-local device placement policy. After this call, other calls to -// TFE_Execute in the same thread will use the device policy specified here -// instead of the device policy used to construct the context. This has no -// effect on the device policy used by other program threads. -public static native void TFE_ContextSetThreadLocalDevicePlacementPolicy( - TFE_Context ctx, @Cast("TFE_ContextDevicePlacementPolicy") int policy); - -// Returns the device placement policy to be used by this context in the current -// thread. -public static native @Cast("TFE_ContextDevicePlacementPolicy") int TFE_ContextGetDevicePlacementPolicy(TFE_Context ctx); - -// A tensorflow.ServerDef specifies remote workers (in addition to the current -// workers name). Operations created in this context can then be executed on -// any of these remote workers by setting an appropriate device. -// -// If the following is set, all servers identified by the -// ServerDef must be up when the context is created. -public static native void TFE_ContextSetServerDef(TFE_Context ctx, - int keep_alive_secs, - @Const Pointer proto, - @Cast("size_t") long proto_len, - TF_Status status); -// Targeting ../TFE_TensorHandle.java - - - -public static native TFE_TensorHandle TFE_NewTensorHandle(@Const TF_Tensor t, - TF_Status status); -// Indicates that the caller will not be using `h` any more. -public static native void TFE_DeleteTensorHandle(TFE_TensorHandle h); -public static native @Cast("TF_DataType") int TFE_TensorHandleDataType(TFE_TensorHandle h); -// This function will block till the operation that produces `h` has completed. -public static native int TFE_TensorHandleNumDims(TFE_TensorHandle h, - TF_Status status); -public static native @Cast("int64_t") long TFE_TensorHandleNumElements(TFE_TensorHandle h, - TF_Status status); -// This function will block till the operation that produces `h` has completed. -public static native @Cast("int64_t") long TFE_TensorHandleDim(TFE_TensorHandle h, - int dim_index, - TF_Status status); - -// Returns the device of the operation that produced `h`. If `h` was produced by -// a copy, returns the destination device of the copy. Note that the returned -// device name is not always the device holding the tensor handle's memory. If -// you want the latter, use TFE_TensorHandleBackingDeviceName. This function -// will block till the operation that produces `h` has completed. -public static native @Cast("const char*") BytePointer TFE_TensorHandleDeviceName( - TFE_TensorHandle h, TF_Status status); - -// Returns the name of the device in whose memory `h` resides. -// -// This function will block till the operation that produces `h` has completed. -public static native @Cast("const char*") BytePointer TFE_TensorHandleBackingDeviceName( - TFE_TensorHandle h, TF_Status status); - -// Return a pointer to a new TFE_TensorHandle that shares the underlying tensor -// with `h`. On success, `status` is set to OK. On failure, `status` reflects -// the error and a nullptr is returned. -public static native TFE_TensorHandle TFE_TensorHandleCopySharingTensor( - TFE_TensorHandle h, TF_Status status); - -// This function will block till the operation that produces `h` has -// completed. The memory returned might alias the internal memory used by -// TensorFlow. Hence, callers should not mutate this memory (for example by -// modifying the memory region pointed to by TF_TensorData() on the returned -// TF_Tensor). -public static native TF_Tensor TFE_TensorHandleResolve(TFE_TensorHandle h, - TF_Status status); - -// Create a new TFE_TensorHandle with the same contents as 'h' but placed -// in the memory of the device name 'device_name'. -// If source and destination are the same device, then this creates a new handle -// that shares the underlying buffer. Otherwise, it currently requires at least -// one of the source or destination devices to be CPU (i.e., for the source or -// destination tensor to be placed in host memory). -// If async execution is enabled, the copy may be enqueued and the call will -// return "non-ready" handle. Else, this function returns after the copy has -// been done. -public static native TFE_TensorHandle TFE_TensorHandleCopyToDevice( - TFE_TensorHandle h, TFE_Context ctx, @Cast("const char*") BytePointer device_name, - TF_Status status); -public static native TFE_TensorHandle TFE_TensorHandleCopyToDevice( - TFE_TensorHandle h, TFE_Context ctx, String device_name, - TF_Status status); -// Targeting ../TFE_TensorDebugInfo.java - - - -// Retrieves TFE_TensorDebugInfo for `handle`. -// If TFE_TensorHandleTensorDebugInfo succeeds, `status` is set to OK and caller -// is responsible for deleting returned TFE_TensorDebugInfo. -// If TFE_TensorHandleTensorDebugInfo fails, `status` is set to appropriate -// error and nullptr is returned. This function can block till the operation -// that produces `handle` has completed. -public static native TFE_TensorDebugInfo TFE_TensorHandleTensorDebugInfo( - TFE_TensorHandle h, TF_Status status); - -// Deletes `debug_info`. -public static native void TFE_DeleteTensorDebugInfo( - TFE_TensorDebugInfo debug_info); - -// Returns the number of dimensions used to represent the tensor on its device. -// The number of dimensions used to represent the tensor on device can be -// different from the number returned by TFE_TensorHandleNumDims. -// The return value was current at the time of TFE_TensorDebugInfo creation. -public static native int TFE_TensorDebugInfoOnDeviceNumDims( - TFE_TensorDebugInfo debug_info); - -// Returns the number of elements in dimension `dim_index`. -// Tensor representation on device can be transposed from its representation -// on host. The data contained in dimension `dim_index` on device -// can correspond to the data contained in another dimension in on-host -// representation. The dimensions are indexed using the standard TensorFlow -// major-to-minor order (slowest varying dimension first), -// not the XLA's minor-to-major order. -// On-device dimensions can be padded. TFE_TensorDebugInfoOnDeviceDim returns -// the number of elements in a dimension after padding. -// The return value was current at the time of TFE_TensorDebugInfo creation. -public static native @Cast("int64_t") long TFE_TensorDebugInfoOnDeviceDim( - TFE_TensorDebugInfo debug_info, int dim_index); -// Targeting ../TFE_Op.java - - - -public static native TFE_Op TFE_NewOp(TFE_Context ctx, - @Cast("const char*") BytePointer op_or_function_name, - TF_Status status); -public static native TFE_Op TFE_NewOp(TFE_Context ctx, - String op_or_function_name, - TF_Status status); -public static native void TFE_DeleteOp(TFE_Op op); - -// Returns the op or function name `op` will execute. -// -// The returned string remains valid throughout the lifetime of 'op'. -public static native @Cast("const char*") BytePointer TFE_OpGetName(@Const TFE_Op op, - TF_Status status); -public static native TFE_Context TFE_OpGetContext(@Const TFE_Op op, - TF_Status status); - -public static native void TFE_OpSetDevice(TFE_Op op, @Cast("const char*") BytePointer device_name, - TF_Status status); -public static native void TFE_OpSetDevice(TFE_Op op, String device_name, - TF_Status status); -// The returned string remains valid throughout the lifetime of 'op'. -public static native @Cast("const char*") BytePointer TFE_OpGetDevice(@Const TFE_Op op, - TF_Status status); - -public static native void TFE_OpAddInput(TFE_Op op, TFE_TensorHandle input, - TF_Status status); - -public static native void TFE_OpAddInputList(TFE_Op op, - @Cast("TFE_TensorHandle**") PointerPointer inputs, - int num_inputs, - TF_Status status); -public static native void TFE_OpAddInputList(TFE_Op op, - @ByPtrPtr TFE_TensorHandle inputs, - int num_inputs, - TF_Status status); - -// Fetches the current number of inputs attached to `op`. -// -// Does not use the operation's definition to determine how many inputs should -// be attached. It is intended for use with TFE_OpGetFlatInput to inspect an -// already-finalized operation. -// -// Note that TFE_OpGetFlatInputCount and TFE_OpGetFlatInput operate on a flat -// sequence of inputs, unlike TFE_OpGetInputLength (for getting the length of a -// particular named input list, which may only be part of the op's inputs). -public static native int TFE_OpGetFlatInputCount(@Const TFE_Op op, - TF_Status status); -// Returns a borrowed reference to one of `op`'s inputs. Use -// `TFE_TensorHandleCopySharingTensor` to make a new reference. -public static native TFE_TensorHandle TFE_OpGetFlatInput(@Const TFE_Op op, - int index, - TF_Status status); - -public static native @Cast("TF_AttrType") int TFE_OpGetAttrType(TFE_Op op, - @Cast("const char*") BytePointer attr_name, - @Cast("unsigned char*") BytePointer is_list, - TF_Status status); -public static native @Cast("TF_AttrType") int TFE_OpGetAttrType(TFE_Op op, - String attr_name, - @Cast("unsigned char*") ByteBuffer is_list, - TF_Status status); -public static native @Cast("TF_AttrType") int TFE_OpGetAttrType(TFE_Op op, - @Cast("const char*") BytePointer attr_name, - @Cast("unsigned char*") byte[] is_list, - TF_Status status); -public static native @Cast("TF_AttrType") int TFE_OpGetAttrType(TFE_Op op, - String attr_name, - @Cast("unsigned char*") BytePointer is_list, - TF_Status status); -public static native @Cast("TF_AttrType") int TFE_OpGetAttrType(TFE_Op op, - @Cast("const char*") BytePointer attr_name, - @Cast("unsigned char*") ByteBuffer is_list, - TF_Status status); -public static native @Cast("TF_AttrType") int TFE_OpGetAttrType(TFE_Op op, - String attr_name, - @Cast("unsigned char*") byte[] is_list, - TF_Status status); -// Get an attribute type given an op name; a fusion of TFE_NewOp and -// TFE_OpGetAttrType for use from Python without the overhead of the individual -// calls and memory management of TFE_Op. -public static native @Cast("TF_AttrType") int TFE_OpNameGetAttrType( - TFE_Context ctx, @Cast("const char*") BytePointer op_or_function_name, @Cast("const char*") BytePointer attr_name, - @Cast("unsigned char*") BytePointer is_list, TF_Status status); -public static native @Cast("TF_AttrType") int TFE_OpNameGetAttrType( - TFE_Context ctx, String op_or_function_name, String attr_name, - @Cast("unsigned char*") ByteBuffer is_list, TF_Status status); -public static native @Cast("TF_AttrType") int TFE_OpNameGetAttrType( - TFE_Context ctx, @Cast("const char*") BytePointer op_or_function_name, @Cast("const char*") BytePointer attr_name, - @Cast("unsigned char*") byte[] is_list, TF_Status status); -public static native @Cast("TF_AttrType") int TFE_OpNameGetAttrType( - TFE_Context ctx, String op_or_function_name, String attr_name, - @Cast("unsigned char*") BytePointer is_list, TF_Status status); -public static native @Cast("TF_AttrType") int TFE_OpNameGetAttrType( - TFE_Context ctx, @Cast("const char*") BytePointer op_or_function_name, @Cast("const char*") BytePointer attr_name, - @Cast("unsigned char*") ByteBuffer is_list, TF_Status status); -public static native @Cast("TF_AttrType") int TFE_OpNameGetAttrType( - TFE_Context ctx, String op_or_function_name, String attr_name, - @Cast("unsigned char*") byte[] is_list, TF_Status status); - -public static native void TFE_OpSetAttrString(TFE_Op op, - @Cast("const char*") BytePointer attr_name, - @Const Pointer value, - @Cast("size_t") long length); -public static native void TFE_OpSetAttrString(TFE_Op op, - String attr_name, - @Const Pointer value, - @Cast("size_t") long length); -public static native void TFE_OpSetAttrInt(TFE_Op op, @Cast("const char*") BytePointer attr_name, - @Cast("int64_t") long value); -public static native void TFE_OpSetAttrInt(TFE_Op op, String attr_name, - @Cast("int64_t") long value); -public static native void TFE_OpSetAttrFloat(TFE_Op op, @Cast("const char*") BytePointer attr_name, - float value); -public static native void TFE_OpSetAttrFloat(TFE_Op op, String attr_name, - float value); -public static native void TFE_OpSetAttrBool(TFE_Op op, @Cast("const char*") BytePointer attr_name, - @Cast("unsigned char") byte value); -public static native void TFE_OpSetAttrBool(TFE_Op op, String attr_name, - @Cast("unsigned char") byte value); -public static native void TFE_OpSetAttrType(TFE_Op op, @Cast("const char*") BytePointer attr_name, - @Cast("TF_DataType") int value); -public static native void TFE_OpSetAttrType(TFE_Op op, String attr_name, - @Cast("TF_DataType") int value); -// If the number of dimensions is unknown, `num_dims` must be set to -// -1 and `dims` can be null. If a dimension is unknown, the -// corresponding entry in the `dims` array must be -1. -public static native void TFE_OpSetAttrShape(TFE_Op op, @Cast("const char*") BytePointer attr_name, - @Cast("const int64_t*") LongPointer dims, - int num_dims, - TF_Status out_status); -public static native void TFE_OpSetAttrShape(TFE_Op op, String attr_name, - @Cast("const int64_t*") LongBuffer dims, - int num_dims, - TF_Status out_status); -public static native void TFE_OpSetAttrShape(TFE_Op op, @Cast("const char*") BytePointer attr_name, - @Cast("const int64_t*") long[] dims, - int num_dims, - TF_Status out_status); -public static native void TFE_OpSetAttrShape(TFE_Op op, String attr_name, - @Cast("const int64_t*") LongPointer dims, - int num_dims, - TF_Status out_status); -public static native void TFE_OpSetAttrShape(TFE_Op op, @Cast("const char*") BytePointer attr_name, - @Cast("const int64_t*") LongBuffer dims, - int num_dims, - TF_Status out_status); -public static native void TFE_OpSetAttrShape(TFE_Op op, String attr_name, - @Cast("const int64_t*") long[] dims, - int num_dims, - TF_Status out_status); - -// Sets the attribute attr_name to be a function specified by 'function'. -// -// TODO(ashankar,iga): Add this functionality to the C API for graph -// construction. Perhaps we want an AttrValueMap equivalent in the C API? -public static native void TFE_OpSetAttrFunction(TFE_Op op, - @Cast("const char*") BytePointer attr_name, - @Const TFE_Op value); -public static native void TFE_OpSetAttrFunction(TFE_Op op, - String attr_name, - @Const TFE_Op value); - -public static native void TFE_OpSetAttrFunctionName(TFE_Op op, @Cast("const char*") BytePointer attr_name, - @Cast("const char*") BytePointer data, @Cast("size_t") long length); -public static native void TFE_OpSetAttrFunctionName(TFE_Op op, String attr_name, - String data, @Cast("size_t") long length); - -public static native void TFE_OpSetAttrTensor(TFE_Op op, - @Cast("const char*") BytePointer attr_name, - TF_Tensor tensor, - TF_Status status); -public static native void TFE_OpSetAttrTensor(TFE_Op op, - String attr_name, - TF_Tensor tensor, - TF_Status status); - -public static native void TFE_OpSetAttrStringList(TFE_Op op, - @Cast("const char*") BytePointer attr_name, - @Cast("const void*const*") PointerPointer values, - @Cast("const size_t*") SizeTPointer lengths, - int num_values); -public static native void TFE_OpSetAttrStringList(TFE_Op op, - @Cast("const char*") BytePointer attr_name, - @Cast("const void*const*") @ByPtrPtr Pointer values, - @Cast("const size_t*") SizeTPointer lengths, - int num_values); -public static native void TFE_OpSetAttrStringList(TFE_Op op, - String attr_name, - @Cast("const void*const*") @ByPtrPtr Pointer values, - @Cast("const size_t*") SizeTPointer lengths, - int num_values); -public static native void TFE_OpSetAttrIntList(TFE_Op op, - @Cast("const char*") BytePointer attr_name, - @Cast("const int64_t*") LongPointer values, - int num_values); -public static native void TFE_OpSetAttrIntList(TFE_Op op, - String attr_name, - @Cast("const int64_t*") LongBuffer values, - int num_values); -public static native void TFE_OpSetAttrIntList(TFE_Op op, - @Cast("const char*") BytePointer attr_name, - @Cast("const int64_t*") long[] values, - int num_values); -public static native void TFE_OpSetAttrIntList(TFE_Op op, - String attr_name, - @Cast("const int64_t*") LongPointer values, - int num_values); -public static native void TFE_OpSetAttrIntList(TFE_Op op, - @Cast("const char*") BytePointer attr_name, - @Cast("const int64_t*") LongBuffer values, - int num_values); -public static native void TFE_OpSetAttrIntList(TFE_Op op, - String attr_name, - @Cast("const int64_t*") long[] values, - int num_values); -public static native void TFE_OpSetAttrFloatList(TFE_Op op, - @Cast("const char*") BytePointer attr_name, - @Const FloatPointer values, - int num_values); -public static native void TFE_OpSetAttrFloatList(TFE_Op op, - String attr_name, - @Const FloatBuffer values, - int num_values); -public static native void TFE_OpSetAttrFloatList(TFE_Op op, - @Cast("const char*") BytePointer attr_name, - @Const float[] values, - int num_values); -public static native void TFE_OpSetAttrFloatList(TFE_Op op, - String attr_name, - @Const FloatPointer values, - int num_values); -public static native void TFE_OpSetAttrFloatList(TFE_Op op, - @Cast("const char*") BytePointer attr_name, - @Const FloatBuffer values, - int num_values); -public static native void TFE_OpSetAttrFloatList(TFE_Op op, - String attr_name, - @Const float[] values, - int num_values); -public static native void TFE_OpSetAttrBoolList(TFE_Op op, - @Cast("const char*") BytePointer attr_name, - @Cast("const unsigned char*") BytePointer values, - int num_values); -public static native void TFE_OpSetAttrBoolList(TFE_Op op, - String attr_name, - @Cast("const unsigned char*") ByteBuffer values, - int num_values); -public static native void TFE_OpSetAttrBoolList(TFE_Op op, - @Cast("const char*") BytePointer attr_name, - @Cast("const unsigned char*") byte[] values, - int num_values); -public static native void TFE_OpSetAttrBoolList(TFE_Op op, - String attr_name, - @Cast("const unsigned char*") BytePointer values, - int num_values); -public static native void TFE_OpSetAttrBoolList(TFE_Op op, - @Cast("const char*") BytePointer attr_name, - @Cast("const unsigned char*") ByteBuffer values, - int num_values); -public static native void TFE_OpSetAttrBoolList(TFE_Op op, - String attr_name, - @Cast("const unsigned char*") byte[] values, - int num_values); -public static native void TFE_OpSetAttrTypeList(TFE_Op op, - @Cast("const char*") BytePointer attr_name, - @Cast("const TF_DataType*") IntPointer values, - int num_values); -public static native void TFE_OpSetAttrTypeList(TFE_Op op, - String attr_name, - @Cast("const TF_DataType*") IntBuffer values, - int num_values); -public static native void TFE_OpSetAttrTypeList(TFE_Op op, - @Cast("const char*") BytePointer attr_name, - @Cast("const TF_DataType*") int[] values, - int num_values); -public static native void TFE_OpSetAttrTypeList(TFE_Op op, - String attr_name, - @Cast("const TF_DataType*") IntPointer values, - int num_values); -public static native void TFE_OpSetAttrTypeList(TFE_Op op, - @Cast("const char*") BytePointer attr_name, - @Cast("const TF_DataType*") IntBuffer values, - int num_values); -public static native void TFE_OpSetAttrTypeList(TFE_Op op, - String attr_name, - @Cast("const TF_DataType*") int[] values, - int num_values); -public static native void TFE_OpSetAttrShapeList( - TFE_Op op, @Cast("const char*") BytePointer attr_name, @Cast("const int64_t**") PointerPointer dims, - @Const IntPointer num_dims, int num_values, TF_Status out_status); -public static native void TFE_OpSetAttrShapeList( - TFE_Op op, @Cast("const char*") BytePointer attr_name, @Cast("const int64_t**") @ByPtrPtr LongPointer dims, - @Const IntPointer num_dims, int num_values, TF_Status out_status); -public static native void TFE_OpSetAttrShapeList( - TFE_Op op, String attr_name, @Cast("const int64_t**") @ByPtrPtr LongBuffer dims, - @Const IntBuffer num_dims, int num_values, TF_Status out_status); -public static native void TFE_OpSetAttrShapeList( - TFE_Op op, @Cast("const char*") BytePointer attr_name, @Cast("const int64_t**") @ByPtrPtr long[] dims, - @Const int[] num_dims, int num_values, TF_Status out_status); -public static native void TFE_OpSetAttrShapeList( - TFE_Op op, String attr_name, @Cast("const int64_t**") @ByPtrPtr LongPointer dims, - @Const IntPointer num_dims, int num_values, TF_Status out_status); -public static native void TFE_OpSetAttrShapeList( - TFE_Op op, @Cast("const char*") BytePointer attr_name, @Cast("const int64_t**") @ByPtrPtr LongBuffer dims, - @Const IntBuffer num_dims, int num_values, TF_Status out_status); -public static native void TFE_OpSetAttrShapeList( - TFE_Op op, String attr_name, @Cast("const int64_t**") @ByPtrPtr long[] dims, - @Const int[] num_dims, int num_values, TF_Status out_status); -public static native void TFE_OpSetAttrFunctionList(TFE_Op op, - @Cast("const char*") BytePointer attr_name, - @Cast("const TFE_Op**") PointerPointer value, - int num_values); -public static native void TFE_OpSetAttrFunctionList(TFE_Op op, - @Cast("const char*") BytePointer attr_name, - @Const @ByPtrPtr TFE_Op value, - int num_values); -public static native void TFE_OpSetAttrFunctionList(TFE_Op op, - String attr_name, - @Const @ByPtrPtr TFE_Op value, - int num_values); - -// Returns the length (number of tensors) of the input argument `input_name` -// found in the provided `op`. -public static native int TFE_OpGetInputLength(TFE_Op op, - @Cast("const char*") BytePointer input_name, - TF_Status status); -public static native int TFE_OpGetInputLength(TFE_Op op, - String input_name, - TF_Status status); - -// Returns the length (number of tensors) of the output argument `output_name` -// found in the provided `op`. -public static native int TFE_OpGetOutputLength(TFE_Op op, - @Cast("const char*") BytePointer output_name, - TF_Status status); -public static native int TFE_OpGetOutputLength(TFE_Op op, - String output_name, - TF_Status status); - -// Execute the operation defined by 'op' and return handles to computed -// tensors in `retvals`. -// -// 'retvals' must point to a pre-allocated array of TFE_TensorHandle* and -// '*num_retvals' should be set to the size of this array. It is an error if -// the size of 'retvals' is less than the number of outputs. This call sets -// *num_retvals to the number of outputs. -// -// If async execution is enabled, the call may simply enqueue the execution -// and return "non-ready" handles in `retvals`. Note that any handles contained -// in 'op' should not be mutated till the kernel execution actually finishes. -// -// For sync execution, if any of the inputs to `op` are not ready, this call -// will block till they become ready and then return when the kernel execution -// is done. -// TODO(agarwal): change num_retvals to int from int*. -public static native void TFE_Execute(TFE_Op op, @Cast("TFE_TensorHandle**") PointerPointer retvals, - IntPointer num_retvals, TF_Status status); -public static native void TFE_Execute(TFE_Op op, @ByPtrPtr TFE_TensorHandle retvals, - IntPointer num_retvals, TF_Status status); -public static native void TFE_Execute(TFE_Op op, @ByPtrPtr TFE_TensorHandle retvals, - IntBuffer num_retvals, TF_Status status); -public static native void TFE_Execute(TFE_Op op, @ByPtrPtr TFE_TensorHandle retvals, - int[] num_retvals, TF_Status status); - -// Add a function (serialized FunctionDef protocol buffer) to ctx so -// that it can be invoked using TFE_Execute. -public static native void TFE_ContextAddFunctionDef( - TFE_Context ctx, @Cast("const char*") BytePointer serialized_function_def, @Cast("size_t") long size, - TF_Status status); -public static native void TFE_ContextAddFunctionDef( - TFE_Context ctx, String serialized_function_def, @Cast("size_t") long size, - TF_Status status); - -// Adds a function (created from TF_GraphToFunction or -// TF_FunctionImportFunctionDef) to the context, allowing it to be executed with -// TFE_Execute by creating an op with the same name as the function. -public static native void TFE_ContextAddFunction(TFE_Context ctx, - TF_Function function, - TF_Status status); - -// Removes a function from the context. Once removed, you can no longer -// TFE_Execute it or TFE_Execute any TFE_Op which has it as an attribute or any -// other function which calls it as an attribute. -public static native void TFE_ContextRemoveFunction(TFE_Context ctx, - @Cast("const char*") BytePointer name, - TF_Status status); -public static native void TFE_ContextRemoveFunction(TFE_Context ctx, - String name, - TF_Status status); - -// Checks whether a function is registered under `name`. -public static native @Cast("unsigned char") byte TFE_ContextHasFunction(TFE_Context ctx, - @Cast("const char*") BytePointer name); -public static native @Cast("unsigned char") byte TFE_ContextHasFunction(TFE_Context ctx, - String name); - -// Enables tracing of RunMetadata on the ops executed from this context. -public static native void TFE_ContextEnableRunMetadata(TFE_Context ctx); - -// Disables tracing of RunMetadata on the ops executed from this context. -public static native void TFE_ContextDisableRunMetadata(TFE_Context ctx); - -// Populates the passed-in buffer with a serialized RunMetadata protocol buffer -// containing any run metadata information accumulated so far and clears this -// information. -// If async mode is enabled, this call blocks till all currently pending ops are -// done. -public static native void TFE_ContextExportRunMetadata(TFE_Context ctx, - TF_Buffer buf, - TF_Status status); - -// Some TF ops need a step container to be set to limit the lifetime of some -// resources (mostly TensorArray and Stack, used in while loop gradients in -// graph mode). Calling this on a context tells it to start a step. -public static native void TFE_ContextStartStep(TFE_Context ctx); - -// Ends a step. When there is no active step (that is, every started step has -// been ended) step containers will be cleared. Note: it is not safe to call -// TFE_ContextEndStep while ops that rely on the step container may be running. -public static native void TFE_ContextEndStep(TFE_Context ctx); - -// #ifdef __cplusplus -// Targeting ../Tensor.java - - - // namespace tensorflow - - -// #endif - -// #endif // TENSORFLOW_C_EAGER_C_API_H_ - - -// Targeting ../TFE_OpAttrs.java - - - -// Fetch a reference to `op`'s attributes. The returned reference is only valid -// while `op` is alive. -public static native @Const TFE_OpAttrs TFE_OpGetAttrs(@Const TFE_Op op); -// Add attributes in `attrs` to `op`. -// -// Does not overwrite or update existing attributes, but adds new ones. -public static native void TFE_OpAddAttrs(TFE_Op op, @Const TFE_OpAttrs attrs); - -// Serialize `attrs` as a tensorflow::NameAttrList protocol buffer (into `buf`), -// containing the op name and a map of its attributes. -public static native void TFE_OpAttrsSerialize(@Const TFE_OpAttrs attrs, - TF_Buffer buf, - TF_Status status); - -// Set an op's attribute from a serialized AttrValue protocol buffer. -// -// Analogous to TF_SetAttrValueProto for building graph operations. -public static native void TFE_OpSetAttrValueProto(@Const TFE_Op op, - @Cast("const char*") BytePointer attr_name, - @Const Pointer proto, - @Cast("size_t") long proto_len, - TF_Status status); -public static native void TFE_OpSetAttrValueProto(@Const TFE_Op op, - String attr_name, - @Const Pointer proto, - @Cast("size_t") long proto_len, - TF_Status status); - -// TODO(b/166642410): It would be nice, for custom devices and for other users, -// to have a non-string representation of devices (TF_Device) extracted from -// tensors/ops/etc. and usable in APIs like OpSetDevice/ResetOp/etc. - -public static final int TFE_CUSTOM_DEVICE_VERSION = 4; - - -// Parsed from tensorflow/cc/framework/scope.h - -/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -==============================================================================*/ - -// #ifndef TENSORFLOW_CC_FRAMEWORK_SCOPE_H_ -// #define TENSORFLOW_CC_FRAMEWORK_SCOPE_H_ - -// #include -// #include -// #include -// #include -// #include - -// #include "absl/strings/str_cat.h" -// #include "tensorflow/cc/framework/ops.h" -// #include "tensorflow/core/common_runtime/graph_constructor.h" -// #include "tensorflow/core/lib/core/status.h" -// #include "tensorflow/core/lib/gtl/array_slice.h" -// Targeting ../NativeGraphPointer.java - - -// Targeting ../NodeBuilder.java - - -// Targeting ../TF_Scope.java - - - -/** A helper struct to hold the scopes that would be used by a function - * constructing a composite op. */ - -// Creates a node of the given operation, with the given inputs, and assigns the -// result to output. This does not support the ability to add additional -// attributes. - -/** \} */ - - // namespace tensorflow - -// #endif // TENSORFLOW_CC_FRAMEWORK_SCOPE_H_ - - -// Parsed from tensorflow/cc/framework/grad_op_registry.h - -/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -==============================================================================*/ - -// #ifndef TENSORFLOW_CC_FRAMEWORK_GRAD_OP_REGISTRY_H_ -// #define TENSORFLOW_CC_FRAMEWORK_GRAD_OP_REGISTRY_H_ - -// #include - -// #include "tensorflow/cc/framework/ops.h" -// #include "tensorflow/cc/framework/scope.h" -// Targeting ../GradFunc.java - - -// Targeting ../GradOpRegistry.java - - - - // namespace ops - -// Macros used to define gradient functions for ops. -// #define REGISTER_GRADIENT_OP(name, fn) -// REGISTER_GRADIENT_OP_UNIQ_HELPER(__COUNTER__, name, fn) - -// #define REGISTER_NO_GRADIENT_OP(name) -// REGISTER_GRADIENT_OP_UNIQ_HELPER(__COUNTER__, name, nullptr) - -// #define REGISTER_GRADIENT_OP_UNIQ_HELPER(ctr, name, fn) -// REGISTER_GRADIENT_OP_UNIQ(ctr, name, fn) - -// #define REGISTER_GRADIENT_OP_UNIQ(ctr, name, fn) -// static bool unused_ret_val_##ctr = -// ::tensorflow::ops::GradOpRegistry::Global()->Register(name, fn) - - // namespace tensorflow - -// #endif // TENSORFLOW_CC_FRAMEWORK_GRAD_OP_REGISTRY_H_ - - -// Parsed from tensorflow/core/platform/status.h - -/* Copyright 2015 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -==============================================================================*/ - -// #ifndef TENSORFLOW_CORE_PLATFORM_STATUS_H_ -// #define TENSORFLOW_CORE_PLATFORM_STATUS_H_ - -// #include -// #include -// #include -// #include -// #include -// #include -// #include - -// #include "absl/strings/string_view.h" -// #include "absl/types/optional.h" -// #include "tensorflow/core/platform/logging.h" -// #include "tensorflow/core/platform/macros.h" -// #include "tensorflow/core/platform/stack_frame.h" -// #include "tensorflow/core/platform/types.h" -// #include "tensorflow/core/protobuf/error_codes.pb.h" - -// #if defined(__clang__) -// Only clang supports warn_unused_result as a type annotation. -// #endif - -// #if ABSL_HAVE_BUILTIN(__builtin_LINE) && ABSL_HAVE_BUILTIN(__builtin_FILE) -public static final int TF_INTERNAL_HAVE_BUILTIN_LINE_FILE = 1; -// Targeting ../SourceLocation.java - - - - -// Targeting ../NativeStatus.java - - - -// OkStatus() -// -// Returns an OK status, equivalent to a default constructed instance. Prefer -// usage of `OkStatus()` when constructing such an OK status. -@Namespace("tensorflow") public static native @ByVal NativeStatus OkStatus(); - -// TODO(b/197552541) Move this namespace to errors.h. - // namespace errors - -// Helper class to manage multiple child status values. - - - - - -// #ifndef SWIG - - - -// #endif // SWIG - - - - - -/** \ingroup core */ -@Namespace("tensorflow") public static native @Cast("std::ostream*") @ByRef @Name("operator <<") Pointer shiftLeft(@Cast("std::ostream*") @ByRef Pointer os, @Const @ByRef NativeStatus x); - -@Namespace("tensorflow") public static native @StdString BytePointer TfCheckOpHelperOutOfLine( - @Const @ByRef NativeStatus v, @Cast("const char*") BytePointer msg); -@Namespace("tensorflow") public static native @StdString BytePointer TfCheckOpHelperOutOfLine( - @Const @ByRef NativeStatus v, String msg); - -@Namespace("tensorflow") public static native @StdString BytePointer error_name(@Cast("tensorflow::error::Code") int code); - -@Namespace("tensorflow") public static native @StdString BytePointer TfCheckOpHelper(@ByVal NativeStatus v, - @Cast("const char*") BytePointer msg); -@Namespace("tensorflow") public static native @StdString BytePointer TfCheckOpHelper(@ByVal NativeStatus v, - String msg); - -// #define TF_DO_CHECK_OK(val, level) -// while (auto _result = ::tensorflow::TfCheckOpHelper(val, #val)) -// LOG(level) << *(_result) - -// #define TF_CHECK_OK(val) TF_DO_CHECK_OK(val, FATAL) -// #define TF_QCHECK_OK(val) TF_DO_CHECK_OK(val, QFATAL) - -// DEBUG only version of TF_CHECK_OK. Compiler still parses 'val' even in opt -// mode. -// #ifndef NDEBUG -// #define TF_DCHECK_OK(val) TF_CHECK_OK(val) -// #else -// #define TF_DCHECK_OK(val) -// while (false && (::tensorflow::OkStatus() == (val))) LOG(FATAL) -// #endif - - // namespace tensorflow - -// #endif // TENSORFLOW_CORE_PLATFORM_STATUS_H_ - - -// Targeting ../Node.java - - - -// Stores debug information associated with the Node. - - -// Parsed from tensorflow/c/tf_status_helper.h - -/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -==============================================================================*/ - -// #ifndef TENSORFLOW_C_TF_STATUS_HELPER_H_ -// #define TENSORFLOW_C_TF_STATUS_HELPER_H_ - -// #include "tensorflow/c/tf_status.h" -// #include "tensorflow/core/platform/status.h" - -// Set the attribute of "tf_status" from the attributes of "status". -@Namespace("tensorflow") public static native void Set_TF_Status_from_Status(TF_Status tf_status, - @Const @ByRef NativeStatus status); - -// Returns a "status" from "tf_status". -@Namespace("tensorflow") public static native @ByVal NativeStatus StatusFromTF_Status(@Const TF_Status tf_status); - // namespace internal - - // namespace tensorflow - -// #endif // TENSORFLOW_C_TF_STATUS_HELPER_H_ - - -// Parsed from tensorflow/cc/framework/ops.h - -/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -==============================================================================*/ - -// #ifndef TENSORFLOW_CC_FRAMEWORK_OPS_H_ -// #define TENSORFLOW_CC_FRAMEWORK_OPS_H_ - -// #include - -// #include "tensorflow/core/framework/tensor.h" -// #include "tensorflow/core/framework/tensor.pb.h" -// #include "tensorflow/core/graph/graph.h" -// #include "tensorflow/core/lib/hash/hash.h" -// #include "tensorflow/core/lib/strings/strcat.h" - -/** \defgroup core Core Tensorflow API */ -// Targeting ../NativeOperation.java - - -// Targeting ../NativeOutput.java - - - -/** Hash class that can be used for e.g. storing Outputs in an unordered_map */ - -/** Represents a tensor value that can be used as an operand to an Operation. */ - -/** A type for representing the output of ops that produce more than one output, - * or a list of tensors. */ - -/** A type for representing the input to ops that require a list of tensors. */ - -/** \} */ - - // namespace tensorflow - -// #endif // TENSORFLOW_CC_FRAMEWORK_OPS_H_ - - -// Targeting ../TF_Graph.java - - -// Targeting ../TF_OperationDescription.java - - -// Targeting ../TF_Operation.java - - - - -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/BitwiseAnd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/BitwiseAnd.java index e718a4f906c..4ea613144e0 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/BitwiseAnd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/BitwiseAnd.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/BitwiseOr.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/BitwiseOr.java index 7a85998e841..cbf3e5b2bb4 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/BitwiseOr.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/BitwiseOr.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/BitwiseXor.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/BitwiseXor.java index ab50bdf6f38..4f72a920b66 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/BitwiseXor.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/BitwiseXor.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/Invert.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/Invert.java index a310c55f77e..c6b4a036d74 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/Invert.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/Invert.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/LeftShift.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/LeftShift.java index 6a55d2389ac..ed92a2011e3 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/LeftShift.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/LeftShift.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/RightShift.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/RightShift.java index 81b9f043b36..6cb10c3c777 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/RightShift.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/RightShift.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectiveAllToAll.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectiveAllToAll.java index e876ec1f1e0..407058efedb 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectiveAllToAll.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectiveAllToAll.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectiveBcastRecv.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectiveBcastRecv.java index 4954b2b67e2..1c3fa9ef16b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectiveBcastRecv.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectiveBcastRecv.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectiveBcastSend.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectiveBcastSend.java index 4cd9ddf566b..19a0546aac8 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectiveBcastSend.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectiveBcastSend.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectiveGather.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectiveGather.java index f9dbfb1d6f5..562e6ec8abd 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectiveGather.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectiveGather.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectivePermute.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectivePermute.java index c98e9444560..43a7115faa8 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectivePermute.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectivePermute.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectiveReduce.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectiveReduce.java index 116804bbb46..05d46101d7f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectiveReduce.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectiveReduce.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/All.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/All.java index 8b1fb83e1b4..84a45d7e49f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/All.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/All.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AnonymousHashTable.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AnonymousHashTable.java index 0783b4271b2..ba22e1def96 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AnonymousHashTable.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AnonymousHashTable.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AnonymousMutableDenseHashTable.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AnonymousMutableDenseHashTable.java index 3e024d82274..888fe396740 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AnonymousMutableDenseHashTable.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AnonymousMutableDenseHashTable.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AnonymousMutableHashTable.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AnonymousMutableHashTable.java index cad3af394fa..1d71c9e74a9 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AnonymousMutableHashTable.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AnonymousMutableHashTable.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AnonymousMutableHashTableOfTensors.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AnonymousMutableHashTableOfTensors.java index 7e0be0f7adb..16e7aefebf5 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AnonymousMutableHashTableOfTensors.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AnonymousMutableHashTableOfTensors.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Any.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Any.java index 57ceb8187d4..771669bf556 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Any.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Any.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ApproxTopK.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ApproxTopK.java index 09c4c33c7be..aee0f84cd9d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ApproxTopK.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ApproxTopK.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssertThat.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssertThat.java index 164435c9099..6f1224ae443 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssertThat.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssertThat.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Assign.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Assign.java index d7f8a0967af..bc0bd6358b1 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Assign.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Assign.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssignAdd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssignAdd.java index f9c2db08135..224090226a7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssignAdd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssignAdd.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssignAddVariableOp.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssignAddVariableOp.java index d6e78e1928e..0813b48a3b8 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssignAddVariableOp.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssignAddVariableOp.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssignSub.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssignSub.java index bdeb6370a99..4a702f4f579 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssignSub.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssignSub.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssignSubVariableOp.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssignSubVariableOp.java index 7ce2868c1f8..6cb827f87f6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssignSubVariableOp.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssignSubVariableOp.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssignVariableOp.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssignVariableOp.java index 4234ec331d0..19742cc8bcb 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssignVariableOp.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/AssignVariableOp.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Barrier.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Barrier.java index edcd57128cc..14975ac0796 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Barrier.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Barrier.java @@ -33,7 +33,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BarrierInsertMany.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BarrierInsertMany.java index faf2913b3ae..64613e10e95 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BarrierInsertMany.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BarrierInsertMany.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BarrierTakeMany.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BarrierTakeMany.java index 3ee05260959..2adf0b19e83 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BarrierTakeMany.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BarrierTakeMany.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.TInt64; import org.tensorflow.types.TString; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Batch.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Batch.java index b34288a3e30..b290b6028e9 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Batch.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Batch.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BatchFunction.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BatchFunction.java index 3bad64bfad7..84e2e4b8012 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BatchFunction.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BatchFunction.java @@ -34,7 +34,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** @@ -147,6 +147,22 @@ public static BatchFunction create(Scope scope, Iterable> inTensors, if (opts.batchingQueue != null) { opBuilder.setAttr("batching_queue", opts.batchingQueue); } + if (opts.lowPriorityMaxBatchSize != null) { + opBuilder.setAttr("low_priority_max_batch_size", opts.lowPriorityMaxBatchSize); + } + if (opts.lowPriorityBatchTimeoutMicros != null) { + opBuilder.setAttr("low_priority_batch_timeout_micros", opts.lowPriorityBatchTimeoutMicros); + } + if (opts.lowPriorityAllowedBatchSizes != null) { + long[] lowPriorityAllowedBatchSizesArray = new long[opts.lowPriorityAllowedBatchSizes.size()]; + for (int i = 0 ; i < lowPriorityAllowedBatchSizesArray.length ; i++) { + lowPriorityAllowedBatchSizesArray[i] = opts.lowPriorityAllowedBatchSizes.get(i); + } + opBuilder.setAttr("low_priority_allowed_batch_sizes", lowPriorityAllowedBatchSizesArray); + } + if (opts.lowPriorityMaxEnqueuedBatches != null) { + opBuilder.setAttr("low_priority_max_enqueued_batches", opts.lowPriorityMaxEnqueuedBatches); + } if (opts.enableLargeBatchSplitting != null) { opBuilder.setAttr("enable_large_batch_splitting", opts.enableLargeBatchSplitting); } @@ -225,6 +241,56 @@ public static Options batchingQueue(String batchingQueue) { return new Options().batchingQueue(batchingQueue); } + /** + * Sets the lowPriorityMaxBatchSize option. + * + * @param lowPriorityMaxBatchSize the lowPriorityMaxBatchSize option + * @return this Options instance. + */ + public static Options lowPriorityMaxBatchSize(Long lowPriorityMaxBatchSize) { + return new Options().lowPriorityMaxBatchSize(lowPriorityMaxBatchSize); + } + + /** + * Sets the lowPriorityBatchTimeoutMicros option. + * + * @param lowPriorityBatchTimeoutMicros the lowPriorityBatchTimeoutMicros option + * @return this Options instance. + */ + public static Options lowPriorityBatchTimeoutMicros(Long lowPriorityBatchTimeoutMicros) { + return new Options().lowPriorityBatchTimeoutMicros(lowPriorityBatchTimeoutMicros); + } + + /** + * Sets the lowPriorityAllowedBatchSizes option. + * + * @param lowPriorityAllowedBatchSizes the lowPriorityAllowedBatchSizes option + * @return this Options instance. + */ + public static Options lowPriorityAllowedBatchSizes(List lowPriorityAllowedBatchSizes) { + return new Options().lowPriorityAllowedBatchSizes(lowPriorityAllowedBatchSizes); + } + + /** + * Sets the lowPriorityAllowedBatchSizes option. + * + * @param lowPriorityAllowedBatchSizes the lowPriorityAllowedBatchSizes option + * @return this Options instance. + */ + public static Options lowPriorityAllowedBatchSizes(Long... lowPriorityAllowedBatchSizes) { + return new Options().lowPriorityAllowedBatchSizes(lowPriorityAllowedBatchSizes); + } + + /** + * Sets the lowPriorityMaxEnqueuedBatches option. + * + * @param lowPriorityMaxEnqueuedBatches the lowPriorityMaxEnqueuedBatches option + * @return this Options instance. + */ + public static Options lowPriorityMaxEnqueuedBatches(Long lowPriorityMaxEnqueuedBatches) { + return new Options().lowPriorityMaxEnqueuedBatches(lowPriorityMaxEnqueuedBatches); + } + /** * Sets the enableLargeBatchSplitting option. * @@ -265,6 +331,14 @@ public static class Options { private String batchingQueue; + private Long lowPriorityMaxBatchSize; + + private Long lowPriorityBatchTimeoutMicros; + + private List lowPriorityAllowedBatchSizes; + + private Long lowPriorityMaxEnqueuedBatches; + private Boolean enableLargeBatchSplitting; private Options() { @@ -346,6 +420,61 @@ public Options batchingQueue(String batchingQueue) { return this; } + /** + * Sets the lowPriorityMaxBatchSize option. + * + * @param lowPriorityMaxBatchSize the lowPriorityMaxBatchSize option + * @return this Options instance. + */ + public Options lowPriorityMaxBatchSize(Long lowPriorityMaxBatchSize) { + this.lowPriorityMaxBatchSize = lowPriorityMaxBatchSize; + return this; + } + + /** + * Sets the lowPriorityBatchTimeoutMicros option. + * + * @param lowPriorityBatchTimeoutMicros the lowPriorityBatchTimeoutMicros option + * @return this Options instance. + */ + public Options lowPriorityBatchTimeoutMicros(Long lowPriorityBatchTimeoutMicros) { + this.lowPriorityBatchTimeoutMicros = lowPriorityBatchTimeoutMicros; + return this; + } + + /** + * Sets the lowPriorityAllowedBatchSizes option. + * + * @param lowPriorityAllowedBatchSizes the lowPriorityAllowedBatchSizes option + * @return this Options instance. + */ + public Options lowPriorityAllowedBatchSizes(List lowPriorityAllowedBatchSizes) { + this.lowPriorityAllowedBatchSizes = lowPriorityAllowedBatchSizes; + return this; + } + + /** + * Sets the lowPriorityAllowedBatchSizes option. + * + * @param lowPriorityAllowedBatchSizes the lowPriorityAllowedBatchSizes option + * @return this Options instance. + */ + public Options lowPriorityAllowedBatchSizes(Long... lowPriorityAllowedBatchSizes) { + this.lowPriorityAllowedBatchSizes = Arrays.asList(lowPriorityAllowedBatchSizes); + return this; + } + + /** + * Sets the lowPriorityMaxEnqueuedBatches option. + * + * @param lowPriorityMaxEnqueuedBatches the lowPriorityMaxEnqueuedBatches option + * @return this Options instance. + */ + public Options lowPriorityMaxEnqueuedBatches(Long lowPriorityMaxEnqueuedBatches) { + this.lowPriorityMaxEnqueuedBatches = lowPriorityMaxEnqueuedBatches; + return this; + } + /** * Sets the enableLargeBatchSplitting option. * @@ -422,6 +551,26 @@ public static class Inputs extends RawOpInputs { */ public final String batchingQueue; + /** + * The lowPriorityMaxBatchSize attribute + */ + public final long lowPriorityMaxBatchSize; + + /** + * The lowPriorityBatchTimeoutMicros attribute + */ + public final long lowPriorityBatchTimeoutMicros; + + /** + * The lowPriorityAllowedBatchSizes attribute + */ + public final long[] lowPriorityAllowedBatchSizes; + + /** + * The lowPriorityMaxEnqueuedBatches attribute + */ + public final long lowPriorityMaxEnqueuedBatches; + /** * the types of tensors to be batched. */ @@ -444,7 +593,7 @@ public static class Inputs extends RawOpInputs { public final boolean enableLargeBatchSplitting; public Inputs(GraphOperation op) { - super(new BatchFunction(op), op, Arrays.asList("num_batch_threads", "max_batch_size", "batch_timeout_micros", "max_enqueued_batches", "allowed_batch_sizes", "container", "shared_name", "batching_queue", "Tin", "Tcaptured", "Tout", "enable_large_batch_splitting")); + super(new BatchFunction(op), op, Arrays.asList("num_batch_threads", "max_batch_size", "batch_timeout_micros", "max_enqueued_batches", "allowed_batch_sizes", "container", "shared_name", "batching_queue", "low_priority_max_batch_size", "low_priority_batch_timeout_micros", "low_priority_allowed_batch_sizes", "low_priority_max_enqueued_batches", "Tin", "Tcaptured", "Tout", "enable_large_batch_splitting")); int inputIndex = 0; int inTensorsLength = op.inputListLength("in_tensors"); inTensors = Arrays.asList((Operand[]) op.inputList(inputIndex, inTensorsLength)); @@ -460,6 +609,10 @@ public Inputs(GraphOperation op) { container = op.attributes().getAttrString("container"); sharedName = op.attributes().getAttrString("shared_name"); batchingQueue = op.attributes().getAttrString("batching_queue"); + lowPriorityMaxBatchSize = op.attributes().getAttrInt("low_priority_max_batch_size"); + lowPriorityBatchTimeoutMicros = op.attributes().getAttrInt("low_priority_batch_timeout_micros"); + lowPriorityAllowedBatchSizes = op.attributes().getAttrIntList("low_priority_allowed_batch_sizes"); + lowPriorityMaxEnqueuedBatches = op.attributes().getAttrInt("low_priority_max_enqueued_batches"); Tin = op.attributes().getAttrTypeList("Tin"); Tcaptured = op.attributes().getAttrTypeList("Tcaptured"); Tout = op.attributes().getAttrTypeList("Tout"); diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BatchToSpace.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BatchToSpace.java index 1845ed69de6..c12ed1f6fff 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BatchToSpace.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BatchToSpace.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BatchToSpaceNd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BatchToSpaceNd.java index 4ad4d8a25f7..26cc9955329 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BatchToSpaceNd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BatchToSpaceNd.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Bitcast.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Bitcast.java index 5640fed31ba..908ee7d7aa0 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Bitcast.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Bitcast.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** @@ -93,7 +93,9 @@ * * *

NOTE: Bitcast is implemented as a low-level cast, so machines with different - * endian orderings will give different results. + * endian orderings will give different results. A copy from input buffer to output + * buffer is made on BE machines when types are of different sizes in order to get + * the same casting results as on LE machines. * * @param data type for {@code output} output */ diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BroadcastDynamicShape.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BroadcastDynamicShape.java index 041837a0ac5..e5132821e4d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BroadcastDynamicShape.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BroadcastDynamicShape.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BroadcastGradientArgs.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BroadcastGradientArgs.java index 60e9e8efb33..dfda802e0c5 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BroadcastGradientArgs.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BroadcastGradientArgs.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BroadcastTo.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BroadcastTo.java index e7ff171933a..36166aae760 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BroadcastTo.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/BroadcastTo.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Bucketize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Bucketize.java index 9bd8226790b..5102d4762fa 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Bucketize.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Bucketize.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ClipByValue.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ClipByValue.java index 48abc9a02af..cf7d143ba0d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ClipByValue.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ClipByValue.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CollectiveAllToAllV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CollectiveAllToAllV2.java new file mode 100644 index 00000000000..0f636d1eac6 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CollectiveAllToAllV2.java @@ -0,0 +1,252 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.Operands; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.TInt32; +import org.tensorflow.types.family.TNumber; +import org.tensorflow.types.family.TType; + +/** + * Mutually exchanges multiple tensors of identical type and shape. + * + * @param data type for {@code data} output + */ +@OpMetadata( + opType = CollectiveAllToAllV2.OP_NAME, + inputsClass = CollectiveAllToAllV2.Inputs.class +) +public final class CollectiveAllToAllV2 extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "CollectiveAllToAllV2"; + + private Output data; + + public CollectiveAllToAllV2(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + data = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new CollectiveAllToAllV2 operation. + * + * @param scope current scope + * @param input The input value + * @param groupSize The groupSize value + * @param groupKey The groupKey value + * @param instanceKey The instanceKey value + * @param orderingToken The orderingToken value + * @param options carries optional attribute values + * @param data type for {@code CollectiveAllToAllV2} output and operands + * @return a new instance of CollectiveAllToAllV2 + */ + @Endpoint( + describeByClass = true + ) + public static CollectiveAllToAllV2 create(Scope scope, Operand input, + Operand groupSize, Operand groupKey, Operand instanceKey, + Iterable> orderingToken, Options... options) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "CollectiveAllToAllV2"); + opBuilder.addInput(input.asOutput()); + opBuilder.addInput(groupSize.asOutput()); + opBuilder.addInput(groupKey.asOutput()); + opBuilder.addInput(instanceKey.asOutput()); + opBuilder.addInputList(Operands.asOutputs(orderingToken)); + if (options != null) { + for (Options opts : options) { + if (opts.communicationHint != null) { + opBuilder.setAttr("communication_hint", opts.communicationHint); + } + if (opts.timeoutSeconds != null) { + opBuilder.setAttr("timeout_seconds", opts.timeoutSeconds); + } + if (opts.NorderingToken != null) { + opBuilder.setAttr("Nordering_token", opts.NorderingToken); + } + } + } + return new CollectiveAllToAllV2<>(opBuilder.build()); + } + + /** + * Sets the communicationHint option. + * + * @param communicationHint the communicationHint option + * @return this Options instance. + */ + public static Options communicationHint(String communicationHint) { + return new Options().communicationHint(communicationHint); + } + + /** + * Sets the timeoutSeconds option. + * + * @param timeoutSeconds the timeoutSeconds option + * @return this Options instance. + */ + public static Options timeoutSeconds(Float timeoutSeconds) { + return new Options().timeoutSeconds(timeoutSeconds); + } + + /** + * Sets the NorderingToken option. + * + * @param NorderingToken the NorderingToken option + * @return this Options instance. + */ + public static Options NorderingToken(Long NorderingToken) { + return new Options().NorderingToken(NorderingToken); + } + + /** + * Gets data. + * + * @return data. + */ + public Output data() { + return data; + } + + @Override + public Output asOutput() { + return data; + } + + /** + * Optional attributes for {@link org.tensorflow.op.core.CollectiveAllToAllV2} + */ + public static class Options { + private String communicationHint; + + private Float timeoutSeconds; + + private Long NorderingToken; + + private Options() { + } + + /** + * Sets the communicationHint option. + * + * @param communicationHint the communicationHint option + * @return this Options instance. + */ + public Options communicationHint(String communicationHint) { + this.communicationHint = communicationHint; + return this; + } + + /** + * Sets the timeoutSeconds option. + * + * @param timeoutSeconds the timeoutSeconds option + * @return this Options instance. + */ + public Options timeoutSeconds(Float timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Sets the NorderingToken option. + * + * @param NorderingToken the NorderingToken option + * @return this Options instance. + */ + public Options NorderingToken(Long NorderingToken) { + this.NorderingToken = NorderingToken; + return this; + } + } + + @OpInputsMetadata( + outputsClass = CollectiveAllToAllV2.class + ) + public static class Inputs extends RawOpInputs> { + /** + * The input input + */ + public final Operand input; + + /** + * The groupSize input + */ + public final Operand groupSize; + + /** + * The groupKey input + */ + public final Operand groupKey; + + /** + * The instanceKey input + */ + public final Operand instanceKey; + + /** + * The orderingToken input + */ + public final Iterable> orderingToken; + + /** + * The T attribute + */ + public final DataType T; + + /** + * The communicationHint attribute + */ + public final String communicationHint; + + /** + * The timeoutSeconds attribute + */ + public final float timeoutSeconds; + + public Inputs(GraphOperation op) { + super(new CollectiveAllToAllV2<>(op), op, Arrays.asList("T", "communication_hint", "timeout_seconds")); + int inputIndex = 0; + input = (Operand) op.input(inputIndex++); + groupSize = (Operand) op.input(inputIndex++); + groupKey = (Operand) op.input(inputIndex++); + instanceKey = (Operand) op.input(inputIndex++); + int orderingTokenLength = op.inputListLength("ordering_token"); + orderingToken = Arrays.asList((Operand[]) op.inputList(inputIndex, orderingTokenLength)); + inputIndex += orderingTokenLength; + T = op.attributes().getAttrType("T"); + communicationHint = op.attributes().getAttrString("communication_hint"); + timeoutSeconds = op.attributes().getAttrFloat("timeout_seconds"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CollectiveReduceScatterV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CollectiveReduceScatterV2.java new file mode 100644 index 00000000000..cfb80dfd6ad --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CollectiveReduceScatterV2.java @@ -0,0 +1,301 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.Operands; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.TInt32; +import org.tensorflow.types.family.TNumber; +import org.tensorflow.types.family.TType; + +/** + * Mutually reduces multiple tensors of identical type and shape and scatters the result. + * + * @param data type for {@code data} output + */ +@OpMetadata( + opType = CollectiveReduceScatterV2.OP_NAME, + inputsClass = CollectiveReduceScatterV2.Inputs.class +) +public final class CollectiveReduceScatterV2 extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "CollectiveReduceScatterV2"; + + private Output data; + + public CollectiveReduceScatterV2(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + data = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new CollectiveReduceScatterV2 operation. + * + * @param scope current scope + * @param input The input value + * @param groupSize The groupSize value + * @param groupKey The groupKey value + * @param instanceKey The instanceKey value + * @param orderingToken The orderingToken value + * @param mergeOp The value of the mergeOp attribute + * @param finalOp The value of the finalOp attribute + * @param options carries optional attribute values + * @param data type for {@code CollectiveReduceScatterV2} output and operands + * @return a new instance of CollectiveReduceScatterV2 + */ + @Endpoint( + describeByClass = true + ) + public static CollectiveReduceScatterV2 create(Scope scope, + Operand input, Operand groupSize, Operand groupKey, + Operand instanceKey, Iterable> orderingToken, String mergeOp, + String finalOp, Options... options) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "CollectiveReduceScatterV2"); + opBuilder.addInput(input.asOutput()); + opBuilder.addInput(groupSize.asOutput()); + opBuilder.addInput(groupKey.asOutput()); + opBuilder.addInput(instanceKey.asOutput()); + opBuilder.addInputList(Operands.asOutputs(orderingToken)); + opBuilder.setAttr("merge_op", mergeOp); + opBuilder.setAttr("final_op", finalOp); + if (options != null) { + for (Options opts : options) { + if (opts.communicationHint != null) { + opBuilder.setAttr("communication_hint", opts.communicationHint); + } + if (opts.timeoutSeconds != null) { + opBuilder.setAttr("timeout_seconds", opts.timeoutSeconds); + } + if (opts.NorderingToken != null) { + opBuilder.setAttr("Nordering_token", opts.NorderingToken); + } + if (opts.maxSubdivsPerDevice != null) { + opBuilder.setAttr("max_subdivs_per_device", opts.maxSubdivsPerDevice); + } + } + } + return new CollectiveReduceScatterV2<>(opBuilder.build()); + } + + /** + * Sets the communicationHint option. + * + * @param communicationHint the communicationHint option + * @return this Options instance. + */ + public static Options communicationHint(String communicationHint) { + return new Options().communicationHint(communicationHint); + } + + /** + * Sets the timeoutSeconds option. + * + * @param timeoutSeconds the timeoutSeconds option + * @return this Options instance. + */ + public static Options timeoutSeconds(Float timeoutSeconds) { + return new Options().timeoutSeconds(timeoutSeconds); + } + + /** + * Sets the NorderingToken option. + * + * @param NorderingToken the NorderingToken option + * @return this Options instance. + */ + public static Options NorderingToken(Long NorderingToken) { + return new Options().NorderingToken(NorderingToken); + } + + /** + * Sets the maxSubdivsPerDevice option. + * + * @param maxSubdivsPerDevice the maxSubdivsPerDevice option + * @return this Options instance. + */ + public static Options maxSubdivsPerDevice(Long maxSubdivsPerDevice) { + return new Options().maxSubdivsPerDevice(maxSubdivsPerDevice); + } + + /** + * Gets data. + * + * @return data. + */ + public Output data() { + return data; + } + + @Override + public Output asOutput() { + return data; + } + + /** + * Optional attributes for {@link org.tensorflow.op.core.CollectiveReduceScatterV2} + */ + public static class Options { + private String communicationHint; + + private Float timeoutSeconds; + + private Long NorderingToken; + + private Long maxSubdivsPerDevice; + + private Options() { + } + + /** + * Sets the communicationHint option. + * + * @param communicationHint the communicationHint option + * @return this Options instance. + */ + public Options communicationHint(String communicationHint) { + this.communicationHint = communicationHint; + return this; + } + + /** + * Sets the timeoutSeconds option. + * + * @param timeoutSeconds the timeoutSeconds option + * @return this Options instance. + */ + public Options timeoutSeconds(Float timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Sets the NorderingToken option. + * + * @param NorderingToken the NorderingToken option + * @return this Options instance. + */ + public Options NorderingToken(Long NorderingToken) { + this.NorderingToken = NorderingToken; + return this; + } + + /** + * Sets the maxSubdivsPerDevice option. + * + * @param maxSubdivsPerDevice the maxSubdivsPerDevice option + * @return this Options instance. + */ + public Options maxSubdivsPerDevice(Long maxSubdivsPerDevice) { + this.maxSubdivsPerDevice = maxSubdivsPerDevice; + return this; + } + } + + @OpInputsMetadata( + outputsClass = CollectiveReduceScatterV2.class + ) + public static class Inputs extends RawOpInputs> { + /** + * The input input + */ + public final Operand input; + + /** + * The groupSize input + */ + public final Operand groupSize; + + /** + * The groupKey input + */ + public final Operand groupKey; + + /** + * The instanceKey input + */ + public final Operand instanceKey; + + /** + * The orderingToken input + */ + public final Iterable> orderingToken; + + /** + * The T attribute + */ + public final DataType T; + + /** + * The mergeOp attribute + */ + public final String mergeOp; + + /** + * The finalOp attribute + */ + public final String finalOp; + + /** + * The communicationHint attribute + */ + public final String communicationHint; + + /** + * The timeoutSeconds attribute + */ + public final float timeoutSeconds; + + /** + * The maxSubdivsPerDevice attribute + */ + public final long maxSubdivsPerDevice; + + public Inputs(GraphOperation op) { + super(new CollectiveReduceScatterV2<>(op), op, Arrays.asList("T", "merge_op", "final_op", "communication_hint", "timeout_seconds", "max_subdivs_per_device")); + int inputIndex = 0; + input = (Operand) op.input(inputIndex++); + groupSize = (Operand) op.input(inputIndex++); + groupKey = (Operand) op.input(inputIndex++); + instanceKey = (Operand) op.input(inputIndex++); + int orderingTokenLength = op.inputListLength("ordering_token"); + orderingToken = Arrays.asList((Operand[]) op.inputList(inputIndex, orderingTokenLength)); + inputIndex += orderingTokenLength; + T = op.attributes().getAttrType("T"); + mergeOp = op.attributes().getAttrString("merge_op"); + finalOp = op.attributes().getAttrString("final_op"); + communicationHint = op.attributes().getAttrString("communication_hint"); + timeoutSeconds = op.attributes().getAttrFloat("timeout_seconds"); + maxSubdivsPerDevice = op.attributes().getAttrInt("max_subdivs_per_device"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CompositeTensorVariantFromComponents.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CompositeTensorVariantFromComponents.java index 377186ce99f..de9fdab01a3 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CompositeTensorVariantFromComponents.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CompositeTensorVariantFromComponents.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CompositeTensorVariantToComponents.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CompositeTensorVariantToComponents.java index 8a90112b898..68a317338a5 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CompositeTensorVariantToComponents.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CompositeTensorVariantToComponents.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ComputeDedupDataTupleMask.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ComputeDedupDataTupleMask.java new file mode 100644 index 00000000000..01abdf9ed7b --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ComputeDedupDataTupleMask.java @@ -0,0 +1,108 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.types.TInt32; + +/** + * An op computes tuple mask of deduplication data from embedding core. + * The deduplication data receiving from embedding core is a Tensor with + * type=DT_VARIANT. The tensor itself is an XLA nested tuple, whose elements are + * rank 1 tensors. This op is to represents types and length of these elements. + */ +@OpMetadata( + opType = ComputeDedupDataTupleMask.OP_NAME, + inputsClass = ComputeDedupDataTupleMask.Inputs.class +) +public final class ComputeDedupDataTupleMask extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "ComputeDedupDataTupleMask"; + + private Output outputShape; + + public ComputeDedupDataTupleMask(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + outputShape = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new ComputeDedupDataTupleMask operation. + * + * @param scope current scope + * @param config Serialized TPUEmbeddingConfiguration proto. + * @return a new instance of ComputeDedupDataTupleMask + */ + @Endpoint( + describeByClass = true + ) + public static ComputeDedupDataTupleMask create(Scope scope, String config) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "ComputeDedupDataTupleMask"); + opBuilder.setAttr("config", config); + return new ComputeDedupDataTupleMask(opBuilder.build()); + } + + /** + * Gets outputShape. + * A 2-D int tensor represent mask of deduplication data tuple generated by + * {@code XlaRecvTPUEmbeddingDeduplicationData}. The tuple has several integer and float + * type 1-D tensor tuple elements. The first dimenion of this output_shape 2-D + * tensor is tensor type of tuple elements, {@code 0} represents integer tensor, {@code 1} + * represents float tensor. The second dimension of {@code output_shape} gives length of + * each tuple element. + * @return outputShape. + */ + public Output outputShape() { + return outputShape; + } + + @Override + public Output asOutput() { + return outputShape; + } + + @OpInputsMetadata( + outputsClass = ComputeDedupDataTupleMask.class + ) + public static class Inputs extends RawOpInputs { + /** + * Serialized TPUEmbeddingConfiguration proto. + */ + public final String config; + + public Inputs(GraphOperation op) { + super(new ComputeDedupDataTupleMask(op), op, Arrays.asList("config")); + int inputIndex = 0; + config = op.attributes().getAttrString("config"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Concat.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Concat.java index 46621d2501d..bb8e20dcea1 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Concat.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Concat.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Conv.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Conv.java new file mode 100644 index 00000000000..69b638729c3 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Conv.java @@ -0,0 +1,437 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import java.util.List; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.op.annotation.Operator; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.family.TNumber; + +/** + * Computes a N-D convolution given (N+1+batch_dims)-D {@code input} and (N+2)-D {@code filter} tensors. + * General function for computing a N-D convolution. It is required that + * {@code 1 <= N <= 3}. + * + * @param data type for {@code output} output + */ +@OpMetadata( + opType = Conv.OP_NAME, + inputsClass = Conv.Inputs.class +) +@Operator +public final class Conv extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "Conv"; + + private Output output; + + public Conv(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new Conv operation. + * + * @param scope current scope + * @param input Tensor of type T and shape {@code batch_shape + spatial_shape + [in_channels]} in the + * case that {@code channels_last_format = true} or shape + * {@code batch_shape + [in_channels] + spatial_shape} if {@code channels_last_format = false}. + * spatial_shape is N-dimensional with {@code N=2} or {@code N=3}. + * Also note that {@code batch_shape} is dictated by the parameter {@code batch_dims} + * and defaults to 1. + * @param filter An {@code (N+2)-D} Tensor with the same type as {@code input} and shape + * {@code spatial_filter_shape + [in_channels, out_channels]}, where spatial_filter_shape + * is N-dimensional with {@code N=2} or {@code N=3}. + * @param strides 1-D tensor of length {@code N+2}. The stride of the sliding window for each + * dimension of {@code input}. Must have {@code strides[0] = strides[N+1] = 1}. + * @param padding The type of padding algorithm to use. + * @param options carries optional attribute values + * @param data type for {@code Conv} output and operands + * @return a new instance of Conv + */ + @Endpoint( + describeByClass = true + ) + public static Conv create(Scope scope, Operand input, Operand filter, + List strides, String padding, Options... options) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "Conv"); + opBuilder.addInput(input.asOutput()); + opBuilder.addInput(filter.asOutput()); + long[] stridesArray = new long[strides.size()]; + for (int i = 0 ; i < stridesArray.length ; i++) { + stridesArray[i] = strides.get(i); + } + opBuilder.setAttr("strides", stridesArray); + opBuilder.setAttr("padding", padding); + if (options != null) { + for (Options opts : options) { + if (opts.explicitPaddings != null) { + long[] explicitPaddingsArray = new long[opts.explicitPaddings.size()]; + for (int i = 0 ; i < explicitPaddingsArray.length ; i++) { + explicitPaddingsArray[i] = opts.explicitPaddings.get(i); + } + opBuilder.setAttr("explicit_paddings", explicitPaddingsArray); + } + if (opts.dataFormat != null) { + opBuilder.setAttr("data_format", opts.dataFormat); + } + if (opts.dilations != null) { + long[] dilationsArray = new long[opts.dilations.size()]; + for (int i = 0 ; i < dilationsArray.length ; i++) { + dilationsArray[i] = opts.dilations.get(i); + } + opBuilder.setAttr("dilations", dilationsArray); + } + if (opts.batchDims != null) { + opBuilder.setAttr("batch_dims", opts.batchDims); + } + if (opts.groups != null) { + opBuilder.setAttr("groups", opts.groups); + } + } + } + return new Conv<>(opBuilder.build()); + } + + /** + * Sets the explicitPaddings option. + * + * @param explicitPaddings If {@code padding} is {@code "EXPLICIT"}, the list of explicit padding amounts. For the ith + * dimension, the amount of padding inserted before and after the dimension is + * {@code explicit_paddings[2 * i]} and {@code explicit_paddings[2 * i + 1]}, respectively. If + * {@code padding} is not {@code "EXPLICIT"}, {@code explicit_paddings} must be empty. + * @return this Options instance. + */ + public static Options explicitPaddings(List explicitPaddings) { + return new Options().explicitPaddings(explicitPaddings); + } + + /** + * Sets the explicitPaddings option. + * + * @param explicitPaddings If {@code padding} is {@code "EXPLICIT"}, the list of explicit padding amounts. For the ith + * dimension, the amount of padding inserted before and after the dimension is + * {@code explicit_paddings[2 * i]} and {@code explicit_paddings[2 * i + 1]}, respectively. If + * {@code padding} is not {@code "EXPLICIT"}, {@code explicit_paddings} must be empty. + * @return this Options instance. + */ + public static Options explicitPaddings(Long... explicitPaddings) { + return new Options().explicitPaddings(explicitPaddings); + } + + /** + * Sets the dataFormat option. + * + * @param dataFormat Used to set the data format. By default {@code CHANNELS_FIRST}, uses + * {@code NHWC (2D) / NDHWC (3D)} or if {@code CHANNELS_LAST}, uses {@code NCHW (2D) / NCDHW (3D)}. + * @return this Options instance. + */ + public static Options dataFormat(String dataFormat) { + return new Options().dataFormat(dataFormat); + } + + /** + * Sets the dilations option. + * + * @param dilations 1-D tensor of length {@code N+2}. The dilation factor for each dimension of + * {@code input}. If set to {@code k > 1}, there will be {@code k-1} skipped cells between each + * filter element on that dimension. The dimension order is determined by the + * value of {@code channels_last_format}, see above for details. Dilations in the batch + * and depth dimensions must be 1. + * @return this Options instance. + */ + public static Options dilations(List dilations) { + return new Options().dilations(dilations); + } + + /** + * Sets the dilations option. + * + * @param dilations 1-D tensor of length {@code N+2}. The dilation factor for each dimension of + * {@code input}. If set to {@code k > 1}, there will be {@code k-1} skipped cells between each + * filter element on that dimension. The dimension order is determined by the + * value of {@code channels_last_format}, see above for details. Dilations in the batch + * and depth dimensions must be 1. + * @return this Options instance. + */ + public static Options dilations(Long... dilations) { + return new Options().dilations(dilations); + } + + /** + * Sets the batchDims option. + * + * @param batchDims A positive integer specifying the number of batch dimensions for the input + * tensor. Should be less than the rank of the input tensor. + * @return this Options instance. + */ + public static Options batchDims(Long batchDims) { + return new Options().batchDims(batchDims); + } + + /** + * Sets the groups option. + * + * @param groups A positive integer specifying the number of groups in which the input is split + * along the channel axis. Each group is convolved separately with + * {@code filters / groups} filters. The output is the concatenation of all the groups + * results along the channel axis. Input channels and filters must both be + * divisible by groups. + * @return this Options instance. + */ + public static Options groups(Long groups) { + return new Options().groups(groups); + } + + /** + * Gets output. + * A (N+1+batch_dims)-D tensor. The dimension order is determined by the value of + * {@code channels_last_format}, see below for details. + * @return output. + */ + public Output output() { + return output; + } + + @Override + public Output asOutput() { + return output; + } + + /** + * Optional attributes for {@link org.tensorflow.op.core.Conv} + */ + public static class Options { + private List explicitPaddings; + + private String dataFormat; + + private List dilations; + + private Long batchDims; + + private Long groups; + + private Options() { + } + + /** + * Sets the explicitPaddings option. + * + * @param explicitPaddings If {@code padding} is {@code "EXPLICIT"}, the list of explicit padding amounts. For the ith + * dimension, the amount of padding inserted before and after the dimension is + * {@code explicit_paddings[2 * i]} and {@code explicit_paddings[2 * i + 1]}, respectively. If + * {@code padding} is not {@code "EXPLICIT"}, {@code explicit_paddings} must be empty. + * @return this Options instance. + */ + public Options explicitPaddings(List explicitPaddings) { + this.explicitPaddings = explicitPaddings; + return this; + } + + /** + * Sets the explicitPaddings option. + * + * @param explicitPaddings If {@code padding} is {@code "EXPLICIT"}, the list of explicit padding amounts. For the ith + * dimension, the amount of padding inserted before and after the dimension is + * {@code explicit_paddings[2 * i]} and {@code explicit_paddings[2 * i + 1]}, respectively. If + * {@code padding} is not {@code "EXPLICIT"}, {@code explicit_paddings} must be empty. + * @return this Options instance. + */ + public Options explicitPaddings(Long... explicitPaddings) { + this.explicitPaddings = Arrays.asList(explicitPaddings); + return this; + } + + /** + * Sets the dataFormat option. + * + * @param dataFormat Used to set the data format. By default {@code CHANNELS_FIRST}, uses + * {@code NHWC (2D) / NDHWC (3D)} or if {@code CHANNELS_LAST}, uses {@code NCHW (2D) / NCDHW (3D)}. + * @return this Options instance. + */ + public Options dataFormat(String dataFormat) { + this.dataFormat = dataFormat; + return this; + } + + /** + * Sets the dilations option. + * + * @param dilations 1-D tensor of length {@code N+2}. The dilation factor for each dimension of + * {@code input}. If set to {@code k > 1}, there will be {@code k-1} skipped cells between each + * filter element on that dimension. The dimension order is determined by the + * value of {@code channels_last_format}, see above for details. Dilations in the batch + * and depth dimensions must be 1. + * @return this Options instance. + */ + public Options dilations(List dilations) { + this.dilations = dilations; + return this; + } + + /** + * Sets the dilations option. + * + * @param dilations 1-D tensor of length {@code N+2}. The dilation factor for each dimension of + * {@code input}. If set to {@code k > 1}, there will be {@code k-1} skipped cells between each + * filter element on that dimension. The dimension order is determined by the + * value of {@code channels_last_format}, see above for details. Dilations in the batch + * and depth dimensions must be 1. + * @return this Options instance. + */ + public Options dilations(Long... dilations) { + this.dilations = Arrays.asList(dilations); + return this; + } + + /** + * Sets the batchDims option. + * + * @param batchDims A positive integer specifying the number of batch dimensions for the input + * tensor. Should be less than the rank of the input tensor. + * @return this Options instance. + */ + public Options batchDims(Long batchDims) { + this.batchDims = batchDims; + return this; + } + + /** + * Sets the groups option. + * + * @param groups A positive integer specifying the number of groups in which the input is split + * along the channel axis. Each group is convolved separately with + * {@code filters / groups} filters. The output is the concatenation of all the groups + * results along the channel axis. Input channels and filters must both be + * divisible by groups. + * @return this Options instance. + */ + public Options groups(Long groups) { + this.groups = groups; + return this; + } + } + + @OpInputsMetadata( + outputsClass = Conv.class + ) + public static class Inputs extends RawOpInputs> { + /** + * Tensor of type T and shape {@code batch_shape + spatial_shape + [in_channels]} in the + * case that {@code channels_last_format = true} or shape + * {@code batch_shape + [in_channels] + spatial_shape} if {@code channels_last_format = false}. + * spatial_shape is N-dimensional with {@code N=2} or {@code N=3}. + * Also note that {@code batch_shape} is dictated by the parameter {@code batch_dims} + * and defaults to 1. + */ + public final Operand input; + + /** + * An {@code (N+2)-D} Tensor with the same type as {@code input} and shape + * {@code spatial_filter_shape + [in_channels, out_channels]}, where spatial_filter_shape + * is N-dimensional with {@code N=2} or {@code N=3}. + */ + public final Operand filter; + + /** + * The T attribute + */ + public final DataType T; + + /** + * 1-D tensor of length `N+2`. The stride of the sliding window for each + * dimension of `input`. Must have `strides[0] = strides[N+1] = 1`. + */ + public final long[] strides; + + /** + * The type of padding algorithm to use. + */ + public final String padding; + + /** + * If `padding` is `"EXPLICIT"`, the list of explicit padding amounts. For the ith + * dimension, the amount of padding inserted before and after the dimension is + * `explicit_paddings[2 * i]` and `explicit_paddings[2 * i + 1]`, respectively. If + * `padding` is not `"EXPLICIT"`, `explicit_paddings` must be empty. + */ + public final long[] explicitPaddings; + + /** + * Used to set the data format. By default `CHANNELS_FIRST`, uses + * `NHWC (2D) / NDHWC (3D)` or if `CHANNELS_LAST`, uses `NCHW (2D) / NCDHW (3D)`. + */ + public final String dataFormat; + + /** + * 1-D tensor of length `N+2`. The dilation factor for each dimension of + * `input`. If set to `k > 1`, there will be `k-1` skipped cells between each + * filter element on that dimension. The dimension order is determined by the + * value of `channels_last_format`, see above for details. Dilations in the batch + * and depth dimensions must be 1. + */ + public final long[] dilations; + + /** + * A positive integer specifying the number of batch dimensions for the input + * tensor. Should be less than the rank of the input tensor. + */ + public final long batchDims; + + /** + * A positive integer specifying the number of groups in which the input is split + * along the channel axis. Each group is convolved separately with + * `filters / groups` filters. The output is the concatenation of all the groups + * results along the channel axis. Input channels and filters must both be + * divisible by groups. + */ + public final long groups; + + public Inputs(GraphOperation op) { + super(new Conv<>(op), op, Arrays.asList("T", "strides", "padding", "explicit_paddings", "data_format", "dilations", "batch_dims", "groups")); + int inputIndex = 0; + input = (Operand) op.input(inputIndex++); + filter = (Operand) op.input(inputIndex++); + T = op.attributes().getAttrType("T"); + strides = op.attributes().getAttrIntList("strides"); + padding = op.attributes().getAttrString("padding"); + explicitPaddings = op.attributes().getAttrIntList("explicit_paddings"); + dataFormat = op.attributes().getAttrString("data_format"); + dilations = op.attributes().getAttrIntList("dilations"); + batchDims = op.attributes().getAttrInt("batch_dims"); + groups = op.attributes().getAttrInt("groups"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Conv2DBackpropFilterV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Conv2DBackpropFilterV2.java new file mode 100644 index 00000000000..952f4378cfb --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Conv2DBackpropFilterV2.java @@ -0,0 +1,399 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import java.util.List; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.op.annotation.Operator; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.family.TNumber; + +/** + * Computes the gradients of convolution with respect to the filter. + * + * @param data type for {@code output} output + */ +@OpMetadata( + opType = Conv2DBackpropFilterV2.OP_NAME, + inputsClass = Conv2DBackpropFilterV2.Inputs.class +) +@Operator +public final class Conv2DBackpropFilterV2 extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "Conv2DBackpropFilterV2"; + + private Output output; + + public Conv2DBackpropFilterV2(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new Conv2DBackpropFilterV2 operation. + * + * @param scope current scope + * @param input 4-D with shape {@code [batch, in_height, in_width, in_channels]}. + * @param filter 4-D with shape {@code [filter_height, filter_width, in_channels, out_channels]}. + * Only shape of tensor is used. + * @param outBackprop 4-D with shape {@code [batch, out_height, out_width, out_channels]}. + * Gradients w.r.t. the output of the convolution. + * @param strides The stride of the sliding window for each dimension of the input + * of the convolution. Must be in the same order as the dimension specified with + * format. + * @param padding The type of padding algorithm to use. + * @param options carries optional attribute values + * @param data type for {@code Conv2DBackpropFilterV2} output and operands + * @return a new instance of Conv2DBackpropFilterV2 + */ + @Endpoint( + describeByClass = true + ) + public static Conv2DBackpropFilterV2 create(Scope scope, Operand input, + Operand filter, Operand outBackprop, List strides, String padding, + Options... options) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "Conv2DBackpropFilterV2"); + opBuilder.addInput(input.asOutput()); + opBuilder.addInput(filter.asOutput()); + opBuilder.addInput(outBackprop.asOutput()); + long[] stridesArray = new long[strides.size()]; + for (int i = 0 ; i < stridesArray.length ; i++) { + stridesArray[i] = strides.get(i); + } + opBuilder.setAttr("strides", stridesArray); + opBuilder.setAttr("padding", padding); + if (options != null) { + for (Options opts : options) { + if (opts.useCudnnOnGpu != null) { + opBuilder.setAttr("use_cudnn_on_gpu", opts.useCudnnOnGpu); + } + if (opts.explicitPaddings != null) { + long[] explicitPaddingsArray = new long[opts.explicitPaddings.size()]; + for (int i = 0 ; i < explicitPaddingsArray.length ; i++) { + explicitPaddingsArray[i] = opts.explicitPaddings.get(i); + } + opBuilder.setAttr("explicit_paddings", explicitPaddingsArray); + } + if (opts.dataFormat != null) { + opBuilder.setAttr("data_format", opts.dataFormat); + } + if (opts.dilations != null) { + long[] dilationsArray = new long[opts.dilations.size()]; + for (int i = 0 ; i < dilationsArray.length ; i++) { + dilationsArray[i] = opts.dilations.get(i); + } + opBuilder.setAttr("dilations", dilationsArray); + } + } + } + return new Conv2DBackpropFilterV2<>(opBuilder.build()); + } + + /** + * Sets the useCudnnOnGpu option. + * + * @param useCudnnOnGpu the useCudnnOnGpu option + * @return this Options instance. + */ + public static Options useCudnnOnGpu(Boolean useCudnnOnGpu) { + return new Options().useCudnnOnGpu(useCudnnOnGpu); + } + + /** + * Sets the explicitPaddings option. + * + * @param explicitPaddings If {@code padding} is {@code "EXPLICIT"}, the list of explicit padding amounts. For the ith + * dimension, the amount of padding inserted before and after the dimension is + * {@code explicit_paddings[2 * i]} and {@code explicit_paddings[2 * i + 1]}, respectively. If + * {@code padding} is not {@code "EXPLICIT"}, {@code explicit_paddings} must be empty. + * @return this Options instance. + */ + public static Options explicitPaddings(List explicitPaddings) { + return new Options().explicitPaddings(explicitPaddings); + } + + /** + * Sets the explicitPaddings option. + * + * @param explicitPaddings If {@code padding} is {@code "EXPLICIT"}, the list of explicit padding amounts. For the ith + * dimension, the amount of padding inserted before and after the dimension is + * {@code explicit_paddings[2 * i]} and {@code explicit_paddings[2 * i + 1]}, respectively. If + * {@code padding} is not {@code "EXPLICIT"}, {@code explicit_paddings} must be empty. + * @return this Options instance. + */ + public static Options explicitPaddings(Long... explicitPaddings) { + return new Options().explicitPaddings(explicitPaddings); + } + + /** + * Sets the dataFormat option. + * + * @param dataFormat Specify the data format of the input and output data. With the + * default format "NHWC", the data is stored in the order of: + * [batch, in_height, in_width, in_channels]. + * Alternatively, the format could be "NCHW", the data storage order of: + * [batch, in_channels, in_height, in_width]. + * @return this Options instance. + */ + public static Options dataFormat(String dataFormat) { + return new Options().dataFormat(dataFormat); + } + + /** + * Sets the dilations option. + * + * @param dilations 1-D tensor of length 4. The dilation factor for each dimension of + * {@code input}. If set to k > 1, there will be k-1 skipped cells between each filter + * element on that dimension. The dimension order is determined by the value of + * {@code data_format}, see above for details. Dilations in the batch and depth + * dimensions must be 1. + * @return this Options instance. + */ + public static Options dilations(List dilations) { + return new Options().dilations(dilations); + } + + /** + * Sets the dilations option. + * + * @param dilations 1-D tensor of length 4. The dilation factor for each dimension of + * {@code input}. If set to k > 1, there will be k-1 skipped cells between each filter + * element on that dimension. The dimension order is determined by the value of + * {@code data_format}, see above for details. Dilations in the batch and depth + * dimensions must be 1. + * @return this Options instance. + */ + public static Options dilations(Long... dilations) { + return new Options().dilations(dilations); + } + + /** + * Gets output. + * 4-D with shape + * {@code [filter_height, filter_width, in_channels, out_channels]}. Gradient w.r.t. + * the {@code filter} input of the convolution. + * @return output. + */ + public Output output() { + return output; + } + + @Override + public Output asOutput() { + return output; + } + + /** + * Optional attributes for {@link org.tensorflow.op.core.Conv2DBackpropFilterV2} + */ + public static class Options { + private Boolean useCudnnOnGpu; + + private List explicitPaddings; + + private String dataFormat; + + private List dilations; + + private Options() { + } + + /** + * Sets the useCudnnOnGpu option. + * + * @param useCudnnOnGpu the useCudnnOnGpu option + * @return this Options instance. + */ + public Options useCudnnOnGpu(Boolean useCudnnOnGpu) { + this.useCudnnOnGpu = useCudnnOnGpu; + return this; + } + + /** + * Sets the explicitPaddings option. + * + * @param explicitPaddings If {@code padding} is {@code "EXPLICIT"}, the list of explicit padding amounts. For the ith + * dimension, the amount of padding inserted before and after the dimension is + * {@code explicit_paddings[2 * i]} and {@code explicit_paddings[2 * i + 1]}, respectively. If + * {@code padding} is not {@code "EXPLICIT"}, {@code explicit_paddings} must be empty. + * @return this Options instance. + */ + public Options explicitPaddings(List explicitPaddings) { + this.explicitPaddings = explicitPaddings; + return this; + } + + /** + * Sets the explicitPaddings option. + * + * @param explicitPaddings If {@code padding} is {@code "EXPLICIT"}, the list of explicit padding amounts. For the ith + * dimension, the amount of padding inserted before and after the dimension is + * {@code explicit_paddings[2 * i]} and {@code explicit_paddings[2 * i + 1]}, respectively. If + * {@code padding} is not {@code "EXPLICIT"}, {@code explicit_paddings} must be empty. + * @return this Options instance. + */ + public Options explicitPaddings(Long... explicitPaddings) { + this.explicitPaddings = Arrays.asList(explicitPaddings); + return this; + } + + /** + * Sets the dataFormat option. + * + * @param dataFormat Specify the data format of the input and output data. With the + * default format "NHWC", the data is stored in the order of: + * [batch, in_height, in_width, in_channels]. + * Alternatively, the format could be "NCHW", the data storage order of: + * [batch, in_channels, in_height, in_width]. + * @return this Options instance. + */ + public Options dataFormat(String dataFormat) { + this.dataFormat = dataFormat; + return this; + } + + /** + * Sets the dilations option. + * + * @param dilations 1-D tensor of length 4. The dilation factor for each dimension of + * {@code input}. If set to k > 1, there will be k-1 skipped cells between each filter + * element on that dimension. The dimension order is determined by the value of + * {@code data_format}, see above for details. Dilations in the batch and depth + * dimensions must be 1. + * @return this Options instance. + */ + public Options dilations(List dilations) { + this.dilations = dilations; + return this; + } + + /** + * Sets the dilations option. + * + * @param dilations 1-D tensor of length 4. The dilation factor for each dimension of + * {@code input}. If set to k > 1, there will be k-1 skipped cells between each filter + * element on that dimension. The dimension order is determined by the value of + * {@code data_format}, see above for details. Dilations in the batch and depth + * dimensions must be 1. + * @return this Options instance. + */ + public Options dilations(Long... dilations) { + this.dilations = Arrays.asList(dilations); + return this; + } + } + + @OpInputsMetadata( + outputsClass = Conv2DBackpropFilterV2.class + ) + public static class Inputs extends RawOpInputs> { + /** + * 4-D with shape {@code [batch, in_height, in_width, in_channels]}. + */ + public final Operand input; + + /** + * 4-D with shape {@code [filter_height, filter_width, in_channels, out_channels]}. + * Only shape of tensor is used. + */ + public final Operand filter; + + /** + * 4-D with shape {@code [batch, out_height, out_width, out_channels]}. + * Gradients w.r.t. the output of the convolution. + */ + public final Operand outBackprop; + + /** + * The T attribute + */ + public final DataType T; + + /** + * The stride of the sliding window for each dimension of the input + * of the convolution. Must be in the same order as the dimension specified with + * format. + */ + public final long[] strides; + + /** + * The useCudnnOnGpu attribute + */ + public final boolean useCudnnOnGpu; + + /** + * The type of padding algorithm to use. + */ + public final String padding; + + /** + * If `padding` is `"EXPLICIT"`, the list of explicit padding amounts. For the ith + * dimension, the amount of padding inserted before and after the dimension is + * `explicit_paddings[2 * i]` and `explicit_paddings[2 * i + 1]`, respectively. If + * `padding` is not `"EXPLICIT"`, `explicit_paddings` must be empty. + */ + public final long[] explicitPaddings; + + /** + * Specify the data format of the input and output data. With the + * default format "NHWC", the data is stored in the order of: + * [batch, in_height, in_width, in_channels]. + * Alternatively, the format could be "NCHW", the data storage order of: + * [batch, in_channels, in_height, in_width]. + */ + public final String dataFormat; + + /** + * 1-D tensor of length 4. The dilation factor for each dimension of + * `input`. If set to k > 1, there will be k-1 skipped cells between each filter + * element on that dimension. The dimension order is determined by the value of + * `data_format`, see above for details. Dilations in the batch and depth + * dimensions must be 1. + */ + public final long[] dilations; + + public Inputs(GraphOperation op) { + super(new Conv2DBackpropFilterV2<>(op), op, Arrays.asList("T", "strides", "use_cudnn_on_gpu", "padding", "explicit_paddings", "data_format", "dilations")); + int inputIndex = 0; + input = (Operand) op.input(inputIndex++); + filter = (Operand) op.input(inputIndex++); + outBackprop = (Operand) op.input(inputIndex++); + T = op.attributes().getAttrType("T"); + strides = op.attributes().getAttrIntList("strides"); + useCudnnOnGpu = op.attributes().getAttrBool("use_cudnn_on_gpu"); + padding = op.attributes().getAttrString("padding"); + explicitPaddings = op.attributes().getAttrIntList("explicit_paddings"); + dataFormat = op.attributes().getAttrString("data_format"); + dilations = op.attributes().getAttrIntList("dilations"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Conv2DBackpropInputV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Conv2DBackpropInputV2.java new file mode 100644 index 00000000000..cc2589309e7 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Conv2DBackpropInputV2.java @@ -0,0 +1,400 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import java.util.List; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.op.annotation.Operator; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.family.TNumber; + +/** + * Computes the gradients of convolution with respect to the input. + * + * @param data type for {@code output} output + */ +@OpMetadata( + opType = Conv2DBackpropInputV2.OP_NAME, + inputsClass = Conv2DBackpropInputV2.Inputs.class +) +@Operator +public final class Conv2DBackpropInputV2 extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "Conv2DBackpropInputV2"; + + private Output output; + + public Conv2DBackpropInputV2(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new Conv2DBackpropInputV2 operation. + * + * @param scope current scope + * @param input 4-D with shape {@code [batch, in_height, in_width, in_channels]}. + * Only shape of tensor is used. + * @param filter 4-D with shape + * {@code [filter_height, filter_width, in_channels, out_channels]}. + * @param outBackprop 4-D with shape {@code [batch, out_height, out_width, out_channels]}. + * Gradients w.r.t. the output of the convolution. + * @param strides The stride of the sliding window for each dimension of the input + * of the convolution. Must be in the same order as the dimension specified with + * format. + * @param padding The type of padding algorithm to use. + * @param options carries optional attribute values + * @param data type for {@code Conv2DBackpropInputV2} output and operands + * @return a new instance of Conv2DBackpropInputV2 + */ + @Endpoint( + describeByClass = true + ) + public static Conv2DBackpropInputV2 create(Scope scope, Operand input, + Operand filter, Operand outBackprop, List strides, String padding, + Options... options) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "Conv2DBackpropInputV2"); + opBuilder.addInput(input.asOutput()); + opBuilder.addInput(filter.asOutput()); + opBuilder.addInput(outBackprop.asOutput()); + long[] stridesArray = new long[strides.size()]; + for (int i = 0 ; i < stridesArray.length ; i++) { + stridesArray[i] = strides.get(i); + } + opBuilder.setAttr("strides", stridesArray); + opBuilder.setAttr("padding", padding); + if (options != null) { + for (Options opts : options) { + if (opts.useCudnnOnGpu != null) { + opBuilder.setAttr("use_cudnn_on_gpu", opts.useCudnnOnGpu); + } + if (opts.explicitPaddings != null) { + long[] explicitPaddingsArray = new long[opts.explicitPaddings.size()]; + for (int i = 0 ; i < explicitPaddingsArray.length ; i++) { + explicitPaddingsArray[i] = opts.explicitPaddings.get(i); + } + opBuilder.setAttr("explicit_paddings", explicitPaddingsArray); + } + if (opts.dataFormat != null) { + opBuilder.setAttr("data_format", opts.dataFormat); + } + if (opts.dilations != null) { + long[] dilationsArray = new long[opts.dilations.size()]; + for (int i = 0 ; i < dilationsArray.length ; i++) { + dilationsArray[i] = opts.dilations.get(i); + } + opBuilder.setAttr("dilations", dilationsArray); + } + } + } + return new Conv2DBackpropInputV2<>(opBuilder.build()); + } + + /** + * Sets the useCudnnOnGpu option. + * + * @param useCudnnOnGpu the useCudnnOnGpu option + * @return this Options instance. + */ + public static Options useCudnnOnGpu(Boolean useCudnnOnGpu) { + return new Options().useCudnnOnGpu(useCudnnOnGpu); + } + + /** + * Sets the explicitPaddings option. + * + * @param explicitPaddings If {@code padding} is {@code "EXPLICIT"}, the list of explicit padding amounts. For the ith + * dimension, the amount of padding inserted before and after the dimension is + * {@code explicit_paddings[2 * i]} and {@code explicit_paddings[2 * i + 1]}, respectively. If + * {@code padding} is not {@code "EXPLICIT"}, {@code explicit_paddings} must be empty. + * @return this Options instance. + */ + public static Options explicitPaddings(List explicitPaddings) { + return new Options().explicitPaddings(explicitPaddings); + } + + /** + * Sets the explicitPaddings option. + * + * @param explicitPaddings If {@code padding} is {@code "EXPLICIT"}, the list of explicit padding amounts. For the ith + * dimension, the amount of padding inserted before and after the dimension is + * {@code explicit_paddings[2 * i]} and {@code explicit_paddings[2 * i + 1]}, respectively. If + * {@code padding} is not {@code "EXPLICIT"}, {@code explicit_paddings} must be empty. + * @return this Options instance. + */ + public static Options explicitPaddings(Long... explicitPaddings) { + return new Options().explicitPaddings(explicitPaddings); + } + + /** + * Sets the dataFormat option. + * + * @param dataFormat Specify the data format of the input and output data. With the + * default format "NHWC", the data is stored in the order of: + * [batch, in_height, in_width, in_channels]. + * Alternatively, the format could be "NCHW", the data storage order of: + * [batch, in_channels, in_height, in_width]. + * @return this Options instance. + */ + public static Options dataFormat(String dataFormat) { + return new Options().dataFormat(dataFormat); + } + + /** + * Sets the dilations option. + * + * @param dilations 1-D tensor of length 4. The dilation factor for each dimension of + * {@code input}. If set to k > 1, there will be k-1 skipped cells between each filter + * element on that dimension. The dimension order is determined by the value of + * {@code data_format}, see above for details. Dilations in the batch and depth + * dimensions must be 1. + * @return this Options instance. + */ + public static Options dilations(List dilations) { + return new Options().dilations(dilations); + } + + /** + * Sets the dilations option. + * + * @param dilations 1-D tensor of length 4. The dilation factor for each dimension of + * {@code input}. If set to k > 1, there will be k-1 skipped cells between each filter + * element on that dimension. The dimension order is determined by the value of + * {@code data_format}, see above for details. Dilations in the batch and depth + * dimensions must be 1. + * @return this Options instance. + */ + public static Options dilations(Long... dilations) { + return new Options().dilations(dilations); + } + + /** + * Gets output. + * 4-D with shape {@code [batch, in_height, in_width, in_channels]}. Gradient + * w.r.t. the input of the convolution. + * @return output. + */ + public Output output() { + return output; + } + + @Override + public Output asOutput() { + return output; + } + + /** + * Optional attributes for {@link org.tensorflow.op.core.Conv2DBackpropInputV2} + */ + public static class Options { + private Boolean useCudnnOnGpu; + + private List explicitPaddings; + + private String dataFormat; + + private List dilations; + + private Options() { + } + + /** + * Sets the useCudnnOnGpu option. + * + * @param useCudnnOnGpu the useCudnnOnGpu option + * @return this Options instance. + */ + public Options useCudnnOnGpu(Boolean useCudnnOnGpu) { + this.useCudnnOnGpu = useCudnnOnGpu; + return this; + } + + /** + * Sets the explicitPaddings option. + * + * @param explicitPaddings If {@code padding} is {@code "EXPLICIT"}, the list of explicit padding amounts. For the ith + * dimension, the amount of padding inserted before and after the dimension is + * {@code explicit_paddings[2 * i]} and {@code explicit_paddings[2 * i + 1]}, respectively. If + * {@code padding} is not {@code "EXPLICIT"}, {@code explicit_paddings} must be empty. + * @return this Options instance. + */ + public Options explicitPaddings(List explicitPaddings) { + this.explicitPaddings = explicitPaddings; + return this; + } + + /** + * Sets the explicitPaddings option. + * + * @param explicitPaddings If {@code padding} is {@code "EXPLICIT"}, the list of explicit padding amounts. For the ith + * dimension, the amount of padding inserted before and after the dimension is + * {@code explicit_paddings[2 * i]} and {@code explicit_paddings[2 * i + 1]}, respectively. If + * {@code padding} is not {@code "EXPLICIT"}, {@code explicit_paddings} must be empty. + * @return this Options instance. + */ + public Options explicitPaddings(Long... explicitPaddings) { + this.explicitPaddings = Arrays.asList(explicitPaddings); + return this; + } + + /** + * Sets the dataFormat option. + * + * @param dataFormat Specify the data format of the input and output data. With the + * default format "NHWC", the data is stored in the order of: + * [batch, in_height, in_width, in_channels]. + * Alternatively, the format could be "NCHW", the data storage order of: + * [batch, in_channels, in_height, in_width]. + * @return this Options instance. + */ + public Options dataFormat(String dataFormat) { + this.dataFormat = dataFormat; + return this; + } + + /** + * Sets the dilations option. + * + * @param dilations 1-D tensor of length 4. The dilation factor for each dimension of + * {@code input}. If set to k > 1, there will be k-1 skipped cells between each filter + * element on that dimension. The dimension order is determined by the value of + * {@code data_format}, see above for details. Dilations in the batch and depth + * dimensions must be 1. + * @return this Options instance. + */ + public Options dilations(List dilations) { + this.dilations = dilations; + return this; + } + + /** + * Sets the dilations option. + * + * @param dilations 1-D tensor of length 4. The dilation factor for each dimension of + * {@code input}. If set to k > 1, there will be k-1 skipped cells between each filter + * element on that dimension. The dimension order is determined by the value of + * {@code data_format}, see above for details. Dilations in the batch and depth + * dimensions must be 1. + * @return this Options instance. + */ + public Options dilations(Long... dilations) { + this.dilations = Arrays.asList(dilations); + return this; + } + } + + @OpInputsMetadata( + outputsClass = Conv2DBackpropInputV2.class + ) + public static class Inputs extends RawOpInputs> { + /** + * 4-D with shape {@code [batch, in_height, in_width, in_channels]}. + * Only shape of tensor is used. + */ + public final Operand input; + + /** + * 4-D with shape + * {@code [filter_height, filter_width, in_channels, out_channels]}. + */ + public final Operand filter; + + /** + * 4-D with shape {@code [batch, out_height, out_width, out_channels]}. + * Gradients w.r.t. the output of the convolution. + */ + public final Operand outBackprop; + + /** + * The T attribute + */ + public final DataType T; + + /** + * The stride of the sliding window for each dimension of the input + * of the convolution. Must be in the same order as the dimension specified with + * format. + */ + public final long[] strides; + + /** + * The useCudnnOnGpu attribute + */ + public final boolean useCudnnOnGpu; + + /** + * The type of padding algorithm to use. + */ + public final String padding; + + /** + * If `padding` is `"EXPLICIT"`, the list of explicit padding amounts. For the ith + * dimension, the amount of padding inserted before and after the dimension is + * `explicit_paddings[2 * i]` and `explicit_paddings[2 * i + 1]`, respectively. If + * `padding` is not `"EXPLICIT"`, `explicit_paddings` must be empty. + */ + public final long[] explicitPaddings; + + /** + * Specify the data format of the input and output data. With the + * default format "NHWC", the data is stored in the order of: + * [batch, in_height, in_width, in_channels]. + * Alternatively, the format could be "NCHW", the data storage order of: + * [batch, in_channels, in_height, in_width]. + */ + public final String dataFormat; + + /** + * 1-D tensor of length 4. The dilation factor for each dimension of + * `input`. If set to k > 1, there will be k-1 skipped cells between each filter + * element on that dimension. The dimension order is determined by the value of + * `data_format`, see above for details. Dilations in the batch and depth + * dimensions must be 1. + */ + public final long[] dilations; + + public Inputs(GraphOperation op) { + super(new Conv2DBackpropInputV2<>(op), op, Arrays.asList("T", "strides", "use_cudnn_on_gpu", "padding", "explicit_paddings", "data_format", "dilations")); + int inputIndex = 0; + input = (Operand) op.input(inputIndex++); + filter = (Operand) op.input(inputIndex++); + outBackprop = (Operand) op.input(inputIndex++); + T = op.attributes().getAttrType("T"); + strides = op.attributes().getAttrIntList("strides"); + useCudnnOnGpu = op.attributes().getAttrBool("use_cudnn_on_gpu"); + padding = op.attributes().getAttrString("padding"); + explicitPaddings = op.attributes().getAttrIntList("explicit_paddings"); + dataFormat = op.attributes().getAttrString("data_format"); + dilations = op.attributes().getAttrIntList("dilations"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Copy.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Copy.java index 5e654133838..c1f67295983 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Copy.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Copy.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CopyHost.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CopyHost.java index 9ad33c125fe..c8ff2010310 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CopyHost.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CopyHost.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CopyToMesh.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CopyToMesh.java index 265b0f5b164..88c25821fdd 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CopyToMesh.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CopyToMesh.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** @@ -62,39 +62,20 @@ public CopyToMesh(Operation operation) { * * @param scope current scope * @param input The input value - * @param layout The value of the layout attribute - * @param options carries optional attribute values + * @param mesh The value of the mesh attribute * @param data type for {@code CopyToMesh} output and operands * @return a new instance of CopyToMesh */ @Endpoint( describeByClass = true ) - public static CopyToMesh create(Scope scope, Operand input, String layout, - Options... options) { + public static CopyToMesh create(Scope scope, Operand input, String mesh) { OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "CopyToMesh"); opBuilder.addInput(input.asOutput()); - opBuilder.setAttr("layout", layout); - if (options != null) { - for (Options opts : options) { - if (opts.sourceLayout != null) { - opBuilder.setAttr("source_layout", opts.sourceLayout); - } - } - } + opBuilder.setAttr("mesh", mesh); return new CopyToMesh<>(opBuilder.build()); } - /** - * Sets the sourceLayout option. - * - * @param sourceLayout the sourceLayout option - * @return this Options instance. - */ - public static Options sourceLayout(String sourceLayout) { - return new Options().sourceLayout(sourceLayout); - } - /** * Gets output. * @@ -109,27 +90,6 @@ public Output asOutput() { return output; } - /** - * Optional attributes for {@link org.tensorflow.op.core.CopyToMesh} - */ - public static class Options { - private String sourceLayout; - - private Options() { - } - - /** - * Sets the sourceLayout option. - * - * @param sourceLayout the sourceLayout option - * @return this Options instance. - */ - public Options sourceLayout(String sourceLayout) { - this.sourceLayout = sourceLayout; - return this; - } - } - @OpInputsMetadata( outputsClass = CopyToMesh.class ) @@ -140,14 +100,9 @@ public static class Inputs extends RawOpInputs> { public final Operand input; /** - * The layout attribute - */ - public final String layout; - - /** - * The sourceLayout attribute + * The mesh attribute */ - public final String sourceLayout; + public final String mesh; /** * The T attribute @@ -155,11 +110,10 @@ public static class Inputs extends RawOpInputs> { public final DataType T; public Inputs(GraphOperation op) { - super(new CopyToMesh<>(op), op, Arrays.asList("layout", "source_layout", "T")); + super(new CopyToMesh<>(op), op, Arrays.asList("mesh", "T")); int inputIndex = 0; input = (Operand) op.input(inputIndex++); - layout = op.attributes().getAttrString("layout"); - sourceLayout = op.attributes().getAttrString("source_layout"); + mesh = op.attributes().getAttrString("mesh"); T = op.attributes().getAttrType("T"); } } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CopyToMeshGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CopyToMeshGrad.java new file mode 100644 index 00000000000..6a721e54a2f --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CopyToMeshGrad.java @@ -0,0 +1,121 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.op.annotation.Operator; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.family.TType; + +/** + * The CopyToMeshGrad operation + * + * @param data type for {@code output} output + */ +@OpMetadata( + opType = CopyToMeshGrad.OP_NAME, + inputsClass = CopyToMeshGrad.Inputs.class +) +@Operator +public final class CopyToMeshGrad extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "CopyToMeshGrad"; + + private Output output; + + public CopyToMeshGrad(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new CopyToMeshGrad operation. + * + * @param scope current scope + * @param input The input value + * @param forwardInput The forwardInput value + * @param data type for {@code CopyToMeshGrad} output and operands + * @return a new instance of CopyToMeshGrad + */ + @Endpoint( + describeByClass = true + ) + public static CopyToMeshGrad create(Scope scope, Operand input, + Operand forwardInput) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "CopyToMeshGrad"); + opBuilder.addInput(input.asOutput()); + opBuilder.addInput(forwardInput.asOutput()); + return new CopyToMeshGrad<>(opBuilder.build()); + } + + /** + * Gets output. + * + * @return output. + */ + public Output output() { + return output; + } + + @Override + public Output asOutput() { + return output; + } + + @OpInputsMetadata( + outputsClass = CopyToMeshGrad.class + ) + public static class Inputs extends RawOpInputs> { + /** + * The input input + */ + public final Operand input; + + /** + * The forwardInput input + */ + public final Operand forwardInput; + + /** + * The T attribute + */ + public final DataType T; + + public Inputs(GraphOperation op) { + super(new CopyToMeshGrad<>(op), op, Arrays.asList("T")); + int inputIndex = 0; + input = (Operand) op.input(inputIndex++); + forwardInput = (Operand) op.input(inputIndex++); + T = op.attributes().getAttrType("T"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CountUpTo.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CountUpTo.java index e952cefb14d..8e0f40359fc 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CountUpTo.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/CountUpTo.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DebugIdentityV3.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DebugIdentityV3.java new file mode 100644 index 00000000000..1b123ec360c --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DebugIdentityV3.java @@ -0,0 +1,395 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import java.util.List; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.family.TType; + +/** + * Provides an identity mapping of the non-Ref type input tensor for debugging. + * Provides an identity mapping of the non-Ref type input tensor for debugging. + * + * @param data type for {@code output} output + */ +@OpMetadata( + opType = DebugIdentityV3.OP_NAME, + inputsClass = DebugIdentityV3.Inputs.class +) +public final class DebugIdentityV3 extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "DebugIdentityV3"; + + private Output output; + + public DebugIdentityV3(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new DebugIdentityV3 operation. + * + * @param scope current scope + * @param input Input tensor, non-Reference type + * @param options carries optional attribute values + * @param data type for {@code DebugIdentityV3} output and operands + * @return a new instance of DebugIdentityV3 + */ + @Endpoint( + describeByClass = true + ) + public static DebugIdentityV3 create(Scope scope, Operand input, + Options... options) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "DebugIdentityV3"); + opBuilder.addInput(input.asOutput()); + if (options != null) { + for (Options opts : options) { + if (opts.deviceName != null) { + opBuilder.setAttr("device_name", opts.deviceName); + } + if (opts.tensorName != null) { + opBuilder.setAttr("tensor_name", opts.tensorName); + } + if (opts.ioOfNode != null) { + opBuilder.setAttr("io_of_node", opts.ioOfNode); + } + if (opts.isInput != null) { + opBuilder.setAttr("is_input", opts.isInput); + } + if (opts.ioIndex != null) { + opBuilder.setAttr("io_index", opts.ioIndex); + } + if (opts.debugUrls != null) { + String[] debugUrlsArray = new String[opts.debugUrls.size()]; + for (int i = 0 ; i < debugUrlsArray.length ; i++) { + debugUrlsArray[i] = opts.debugUrls.get(i); + } + opBuilder.setAttr("debug_urls", debugUrlsArray); + } + if (opts.gatedGrpc != null) { + opBuilder.setAttr("gated_grpc", opts.gatedGrpc); + } + } + } + return new DebugIdentityV3<>(opBuilder.build()); + } + + /** + * Sets the deviceName option. + * + * @param deviceName Name of the device on which the tensor resides. + * @return this Options instance. + */ + public static Options deviceName(String deviceName) { + return new Options().deviceName(deviceName); + } + + /** + * Sets the tensorName option. + * + * @param tensorName Name of the input tensor. + * @return this Options instance. + */ + public static Options tensorName(String tensorName) { + return new Options().tensorName(tensorName); + } + + /** + * Sets the ioOfNode option. + * + * @param ioOfNode Name of the node of which the tensor is an input or output. + * @return this Options instance. + */ + public static Options ioOfNode(String ioOfNode) { + return new Options().ioOfNode(ioOfNode); + } + + /** + * Sets the isInput option. + * + * @param isInput If true, the tensor is an input of the node; otherwise the output. + * @return this Options instance. + */ + public static Options isInput(Boolean isInput) { + return new Options().isInput(isInput); + } + + /** + * Sets the ioIndex option. + * + * @param ioIndex The index of which the tensor is an input or output of the node. + * @return this Options instance. + */ + public static Options ioIndex(Long ioIndex) { + return new Options().ioIndex(ioIndex); + } + + /** + * Sets the debugUrls option. + * + * @param debugUrls List of URLs to debug targets, e.g., + * file:///foo/tfdbg_dump, grpc:://localhost:11011 + * @return this Options instance. + */ + public static Options debugUrls(List debugUrls) { + return new Options().debugUrls(debugUrls); + } + + /** + * Sets the debugUrls option. + * + * @param debugUrls List of URLs to debug targets, e.g., + * file:///foo/tfdbg_dump, grpc:://localhost:11011 + * @return this Options instance. + */ + public static Options debugUrls(String... debugUrls) { + return new Options().debugUrls(debugUrls); + } + + /** + * Sets the gatedGrpc option. + * + * @param gatedGrpc Whether this op will be gated. If any of the debug_urls of this + * debug node is of the grpc:// scheme, when the value of this attribute is set + * to True, the data will not actually be sent via the grpc stream unless this + * debug op has been enabled at the debug_url. If all of the debug_urls of this + * debug node are of the grpc:// scheme and the debug op is enabled at none of + * them, the output will be an empty Tensor. + * @return this Options instance. + */ + public static Options gatedGrpc(Boolean gatedGrpc) { + return new Options().gatedGrpc(gatedGrpc); + } + + /** + * Gets output. + * + * @return output. + */ + public Output output() { + return output; + } + + @Override + public Output asOutput() { + return output; + } + + /** + * Optional attributes for {@link org.tensorflow.op.core.DebugIdentityV3} + */ + public static class Options { + private String deviceName; + + private String tensorName; + + private String ioOfNode; + + private Boolean isInput; + + private Long ioIndex; + + private List debugUrls; + + private Boolean gatedGrpc; + + private Options() { + } + + /** + * Sets the deviceName option. + * + * @param deviceName Name of the device on which the tensor resides. + * @return this Options instance. + */ + public Options deviceName(String deviceName) { + this.deviceName = deviceName; + return this; + } + + /** + * Sets the tensorName option. + * + * @param tensorName Name of the input tensor. + * @return this Options instance. + */ + public Options tensorName(String tensorName) { + this.tensorName = tensorName; + return this; + } + + /** + * Sets the ioOfNode option. + * + * @param ioOfNode Name of the node of which the tensor is an input or output. + * @return this Options instance. + */ + public Options ioOfNode(String ioOfNode) { + this.ioOfNode = ioOfNode; + return this; + } + + /** + * Sets the isInput option. + * + * @param isInput If true, the tensor is an input of the node; otherwise the output. + * @return this Options instance. + */ + public Options isInput(Boolean isInput) { + this.isInput = isInput; + return this; + } + + /** + * Sets the ioIndex option. + * + * @param ioIndex The index of which the tensor is an input or output of the node. + * @return this Options instance. + */ + public Options ioIndex(Long ioIndex) { + this.ioIndex = ioIndex; + return this; + } + + /** + * Sets the debugUrls option. + * + * @param debugUrls List of URLs to debug targets, e.g., + * file:///foo/tfdbg_dump, grpc:://localhost:11011 + * @return this Options instance. + */ + public Options debugUrls(List debugUrls) { + this.debugUrls = debugUrls; + return this; + } + + /** + * Sets the debugUrls option. + * + * @param debugUrls List of URLs to debug targets, e.g., + * file:///foo/tfdbg_dump, grpc:://localhost:11011 + * @return this Options instance. + */ + public Options debugUrls(String... debugUrls) { + this.debugUrls = Arrays.asList(debugUrls); + return this; + } + + /** + * Sets the gatedGrpc option. + * + * @param gatedGrpc Whether this op will be gated. If any of the debug_urls of this + * debug node is of the grpc:// scheme, when the value of this attribute is set + * to True, the data will not actually be sent via the grpc stream unless this + * debug op has been enabled at the debug_url. If all of the debug_urls of this + * debug node are of the grpc:// scheme and the debug op is enabled at none of + * them, the output will be an empty Tensor. + * @return this Options instance. + */ + public Options gatedGrpc(Boolean gatedGrpc) { + this.gatedGrpc = gatedGrpc; + return this; + } + } + + @OpInputsMetadata( + outputsClass = DebugIdentityV3.class + ) + public static class Inputs extends RawOpInputs> { + /** + * Input tensor, non-Reference type + */ + public final Operand input; + + /** + * The T attribute + */ + public final DataType T; + + /** + * Name of the device on which the tensor resides. + */ + public final String deviceName; + + /** + * Name of the input tensor. + */ + public final String tensorName; + + /** + * Name of the node of which the tensor is an input or output. + */ + public final String ioOfNode; + + /** + * If true, the tensor is an input of the node; otherwise the output. + */ + public final boolean isInput; + + /** + * The index of which the tensor is an input or output of the node. + */ + public final long ioIndex; + + /** + * List of URLs to debug targets, e.g., + * file:///foo/tfdbg_dump, grpc:://localhost:11011 + */ + public final String[] debugUrls; + + /** + * Whether this op will be gated. If any of the debug_urls of this + * debug node is of the grpc:// scheme, when the value of this attribute is set + * to True, the data will not actually be sent via the grpc stream unless this + * debug op has been enabled at the debug_url. If all of the debug_urls of this + * debug node are of the grpc:// scheme and the debug op is enabled at none of + * them, the output will be an empty Tensor. + */ + public final boolean gatedGrpc; + + public Inputs(GraphOperation op) { + super(new DebugIdentityV3<>(op), op, Arrays.asList("T", "device_name", "tensor_name", "io_of_node", "is_input", "io_index", "debug_urls", "gated_grpc")); + int inputIndex = 0; + input = (Operand) op.input(inputIndex++); + T = op.attributes().getAttrType("T"); + deviceName = op.attributes().getAttrString("device_name"); + tensorName = op.attributes().getAttrString("tensor_name"); + ioOfNode = op.attributes().getAttrString("io_of_node"); + isInput = op.attributes().getAttrBool("is_input"); + ioIndex = op.attributes().getAttrInt("io_index"); + debugUrls = op.attributes().getAttrStringList("debug_urls"); + gatedGrpc = op.attributes().getAttrBool("gated_grpc"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DecodeProto.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DecodeProto.java index a70a1b400da..b98d28f0c64 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DecodeProto.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DecodeProto.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.TString; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DeepCopy.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DeepCopy.java index a519f8dbc73..b47e666c537 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DeepCopy.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DeepCopy.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DestroyTemporaryVariable.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DestroyTemporaryVariable.java index 1dc9eb26473..e81b11a5f0d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DestroyTemporaryVariable.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DestroyTemporaryVariable.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DistributedSave.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DistributedSave.java new file mode 100644 index 00000000000..980e6d03c48 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DistributedSave.java @@ -0,0 +1,144 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.types.TString; +import org.tensorflow.types.family.TType; + +/** + * The DistributedSave operation + */ +@OpMetadata( + opType = DistributedSave.OP_NAME, + inputsClass = DistributedSave.Inputs.class +) +public final class DistributedSave extends RawOp { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "DistributedSave"; + + public DistributedSave(Operation operation) { + super(operation, OP_NAME); + } + + /** + * Factory method to create a class wrapping a new DistributedSave operation. + * + * @param scope current scope + * @param dataset The dataset value + * @param directory The directory value + * @param address The address value + * @param options carries optional attribute values + * @return a new instance of DistributedSave + */ + @Endpoint( + describeByClass = true + ) + public static DistributedSave create(Scope scope, Operand dataset, + Operand directory, Operand address, Options... options) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "DistributedSave"); + opBuilder.addInput(dataset.asOutput()); + opBuilder.addInput(directory.asOutput()); + opBuilder.addInput(address.asOutput()); + if (options != null) { + for (Options opts : options) { + if (opts.metadata != null) { + opBuilder.setAttr("metadata", opts.metadata); + } + } + } + return new DistributedSave(opBuilder.build()); + } + + /** + * Sets the metadata option. + * + * @param metadata the metadata option + * @return this Options instance. + */ + public static Options metadata(String metadata) { + return new Options().metadata(metadata); + } + + /** + * Optional attributes for {@link org.tensorflow.op.core.DistributedSave} + */ + public static class Options { + private String metadata; + + private Options() { + } + + /** + * Sets the metadata option. + * + * @param metadata the metadata option + * @return this Options instance. + */ + public Options metadata(String metadata) { + this.metadata = metadata; + return this; + } + } + + @OpInputsMetadata( + outputsClass = DistributedSave.class + ) + public static class Inputs extends RawOpInputs { + /** + * The dataset input + */ + public final Operand dataset; + + /** + * The directory input + */ + public final Operand directory; + + /** + * The address input + */ + public final Operand address; + + /** + * The metadata attribute + */ + public final String metadata; + + public Inputs(GraphOperation op) { + super(new DistributedSave(op), op, Arrays.asList("metadata")); + int inputIndex = 0; + dataset = (Operand) op.input(inputIndex++); + directory = (Operand) op.input(inputIndex++); + address = (Operand) op.input(inputIndex++); + metadata = op.attributes().getAttrString("metadata"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DynamicPartition.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DynamicPartition.java index 34263016e01..c0d1608ddd6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DynamicPartition.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DynamicPartition.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; @@ -69,6 +69,15 @@ *

* *
+ *

Raises: + *

    + *
  • {@code InvalidArgumentError} in following cases: + *
      + *
    • If partitions is not in range {@code [0, num_partiions)}
    • + *
    • If {@code partitions.shape} does not match prefix of {@code data.shape} argument.
    • + *
    + *
  • + *
* * @param data type for {@code outputs} output */ diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DynamicStitch.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DynamicStitch.java index a0da143ed6a..745a34cafbe 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DynamicStitch.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/DynamicStitch.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/EditDistance.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/EditDistance.java index c34c64c7565..86fcd0a7a0c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/EditDistance.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/EditDistance.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Empty.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Empty.java index 28c7a901c0d..1d318a17a77 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Empty.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Empty.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/EmptyTensorList.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/EmptyTensorList.java index d9b29764f22..e7f02f972aa 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/EmptyTensorList.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/EmptyTensorList.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/EncodeProto.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/EncodeProto.java index 26714262367..d85a159aa1c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/EncodeProto.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/EncodeProto.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.TString; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/EnsureShape.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/EnsureShape.java index f97f178e618..1f75792f4a8 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/EnsureShape.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/EnsureShape.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Enter.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Enter.java index f1d83a09fb4..f53faadeead 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Enter.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Enter.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Exit.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Exit.java index ecb2c6d28a5..90fb4954b59 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Exit.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Exit.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ExpandDims.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ExpandDims.java index 8129c20abcd..2f0cfc8d3eb 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ExpandDims.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ExpandDims.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ExtractVolumePatches.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ExtractVolumePatches.java index acc640c4e55..c8bc04e7e80 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ExtractVolumePatches.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ExtractVolumePatches.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Fill.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Fill.java index 7720b1e68b7..68b6912a2bd 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Fill.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Fill.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Fingerprint.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Fingerprint.java index 32762ce6ade..1f70569be02 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Fingerprint.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Fingerprint.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.TUint8; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/For.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/For.java index 3dcdaed7150..df41ffd8c35 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/For.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/For.java @@ -34,7 +34,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Gather.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Gather.java index bb3efe95f9f..9a4cf7b9724 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Gather.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Gather.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/GatherNd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/GatherNd.java index 4eea5e4fda8..1e0229c7230 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/GatherNd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/GatherNd.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/GetElementAtIndex.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/GetElementAtIndex.java index c3cfefd8195..e5c5903d023 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/GetElementAtIndex.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/GetElementAtIndex.java @@ -33,7 +33,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/GetSessionHandle.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/GetSessionHandle.java index 354b8d09045..e381fd34936 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/GetSessionHandle.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/GetSessionHandle.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/GetSessionTensor.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/GetSessionTensor.java index f413e4032cc..33d480d6041 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/GetSessionTensor.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/GetSessionTensor.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/GuaranteeConst.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/GuaranteeConst.java index a8156fe7cfa..e43a91b0ac3 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/GuaranteeConst.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/GuaranteeConst.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/HashTable.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/HashTable.java index 413ea6340ff..bf4e01d072c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/HashTable.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/HashTable.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/HistogramFixedWidth.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/HistogramFixedWidth.java index b764e54267b..da855970cbf 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/HistogramFixedWidth.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/HistogramFixedWidth.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Identity.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Identity.java index b622ad09090..0e93f491104 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Identity.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Identity.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/IdentityN.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/IdentityN.java index 04555333926..eea6d7b0423 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/IdentityN.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/IdentityN.java @@ -33,7 +33,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ImmutableConst.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ImmutableConst.java index ff90c1918c3..7e7e6ec5ac8 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ImmutableConst.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ImmutableConst.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/InitializeTable.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/InitializeTable.java index 68c975a3b36..ab688fb5b59 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/InitializeTable.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/InitializeTable.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/InplaceAdd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/InplaceAdd.java index 7ca4bfa8844..bf9abe6ae80 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/InplaceAdd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/InplaceAdd.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/InplaceSub.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/InplaceSub.java index 1741f15b63d..f89fd077c52 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/InplaceSub.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/InplaceSub.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/InplaceUpdate.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/InplaceUpdate.java index ba2e1d64bbe..9e899551ca9 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/InplaceUpdate.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/InplaceUpdate.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/IsVariableInitialized.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/IsVariableInitialized.java index 432d8a4796a..afc38f7808b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/IsVariableInitialized.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/IsVariableInitialized.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LinSpace.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LinSpace.java index 5e9d7af9c8f..eee3dbb86c6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LinSpace.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LinSpace.java @@ -29,14 +29,14 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** * Generates values in an interval. * A sequence of {@code num} evenly-spaced values are generated beginning at {@code start}. - * If {@code num > 1}, the values in the sequence increase by {@code stop - start / num - 1}, - * so that the last one is exactly {@code stop}. + * If {@code num > 1}, the values in the sequence increase by + * {@code (stop - start) / (num - 1)}, so that the last one is exactly {@code stop}. *

For example: *

  * tf.linspace(10.0, 12.0, 3, name="linspace") => [ 10.0  11.0  12.0]
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LookupTableExport.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LookupTableExport.java
index bad978998ee..97bfad8cadd 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LookupTableExport.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LookupTableExport.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LookupTableFind.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LookupTableFind.java
index 450f40381e9..31f78d138ad 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LookupTableFind.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LookupTableFind.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LookupTableImport.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LookupTableImport.java
index a9368c77c10..739349f467f 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LookupTableImport.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LookupTableImport.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LookupTableInsert.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LookupTableInsert.java
index fdd43fe5033..23a11f360f8 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LookupTableInsert.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LookupTableInsert.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LookupTableRemove.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LookupTableRemove.java
index fed59472a42..cf5dac45b5a 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LookupTableRemove.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LookupTableRemove.java
@@ -28,7 +28,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LowerBound.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LowerBound.java
index e9c99fdbe88..ab2f7046952 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LowerBound.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/LowerBound.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TNumber;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapClear.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapClear.java
index 4a1dbf736fe..06b09a22e9b 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapClear.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapClear.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapDefun.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapDefun.java
index 5cb0284b571..35bbd8cb206 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapDefun.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapDefun.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapIncompleteSize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapIncompleteSize.java
index d39f3a7810c..ab1a73df8cb 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapIncompleteSize.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapIncompleteSize.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapPeek.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapPeek.java
index acacf67fafb..a47ca7ca5fb 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapPeek.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapPeek.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapSize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapSize.java
index 0fd6f2841d9..f037d0917c4 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapSize.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapSize.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapStage.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapStage.java
index 12630155ca4..78dea14f8b4 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapStage.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapStage.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapUnstage.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapUnstage.java
index 4e46c760134..cc8fbc1f55f 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapUnstage.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapUnstage.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapUnstageNoKey.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapUnstageNoKey.java
index de015843f40..3854c7c3157 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapUnstageNoKey.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MapUnstageNoKey.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Max.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Max.java
index d327486b356..90cae897bd9 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Max.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Max.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Merge.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Merge.java
index 7ab956efc21..cf246131913 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Merge.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Merge.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MergeDedupData.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MergeDedupData.java
new file mode 100644
index 00000000000..9da57937dfd
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MergeDedupData.java
@@ -0,0 +1,189 @@
+/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved.
+
+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
+
+    http://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.
+=======================================================================*/
+
+// This class has been generated, DO NOT EDIT!
+
+package org.tensorflow.op.core;
+
+import java.util.Arrays;
+import org.tensorflow.GraphOperation;
+import org.tensorflow.Operand;
+import org.tensorflow.Operation;
+import org.tensorflow.OperationBuilder;
+import org.tensorflow.Output;
+import org.tensorflow.op.RawOp;
+import org.tensorflow.op.RawOpInputs;
+import org.tensorflow.op.Scope;
+import org.tensorflow.op.annotation.Endpoint;
+import org.tensorflow.op.annotation.OpInputsMetadata;
+import org.tensorflow.op.annotation.OpMetadata;
+import org.tensorflow.proto.DataType;
+import org.tensorflow.types.family.TNumber;
+import org.tensorflow.types.family.TType;
+
+/**
+ * An op merges elements of integer and float tensors into deduplication data as
+ * XLA tuple.
+ * This op merges outputs of SplitDedupDataOp, which gives two 1-D tensors, integer
+ * and floating point. With respect to tuple_mask, this op merges values of these
+ * two tensors into an XLA tuple, which should be as same as input to
+ * SplitDedupDataOp.
+ */
+@OpMetadata(
+    opType = MergeDedupData.OP_NAME,
+    inputsClass = MergeDedupData.Inputs.class
+)
+public final class MergeDedupData extends RawOp implements Operand {
+  /**
+   * The name of this op, as known by TensorFlow core engine
+   */
+  public static final String OP_NAME = "MergeDedupData";
+
+  private Output output;
+
+  @SuppressWarnings("unchecked")
+  public MergeDedupData(Operation operation) {
+    super(operation, OP_NAME);
+    int outputIdx = 0;
+    output = operation.output(outputIdx++);
+  }
+
+  /**
+   * Factory method to create a class wrapping a new MergeDedupData operation.
+   *
+   * @param scope current scope
+   * @param integerTensor A 1-D integer tensor, includes integer elements of deduplication data tuple.
+   * @param floatTensor A 1-D float tensor, includes float elements of deduplication data tuple.
+   * @param tupleMask A serialized TensorProto string of output tuple mask. This mask is a 2-D tensor,
+   * with first column as tuple element type, and second column as span of this type.
+   * For example, an output tuple of (1, 2, 0.1, 3), its mask is [[0, 2], [1, 1], [0,
+   * 1]]. We expect only two types of elements: integer(0) and float(1).
+   * @param options carries optional attribute values
+   * @return a new instance of MergeDedupData
+   */
+  @Endpoint(
+      describeByClass = true
+  )
+  public static MergeDedupData create(Scope scope, Operand integerTensor,
+      Operand floatTensor, String tupleMask, Options... options) {
+    OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "MergeDedupData");
+    opBuilder.addInput(integerTensor.asOutput());
+    opBuilder.addInput(floatTensor.asOutput());
+    opBuilder.setAttr("tuple_mask", tupleMask);
+    if (options != null) {
+      for (Options opts : options) {
+        if (opts.config != null) {
+          opBuilder.setAttr("config", opts.config);
+        }
+      }
+    }
+    return new MergeDedupData(opBuilder.build());
+  }
+
+  /**
+   * Sets the config option.
+   *
+   * @param config the config option
+   * @return this Options instance.
+   */
+  public static Options config(String config) {
+    return new Options().config(config);
+  }
+
+  /**
+   * Gets output.
+   * An XLA tuple merging integer and float elements as deduplication data tuple.
+   * @return output.
+   */
+  public Output output() {
+    return output;
+  }
+
+  @Override
+  @SuppressWarnings("unchecked")
+  public Output asOutput() {
+    return (Output) output;
+  }
+
+  /**
+   * Optional attributes for {@link org.tensorflow.op.core.MergeDedupData}
+   */
+  public static class Options {
+    private String config;
+
+    private Options() {
+    }
+
+    /**
+     * Sets the config option.
+     *
+     * @param config the config option
+     * @return this Options instance.
+     */
+    public Options config(String config) {
+      this.config = config;
+      return this;
+    }
+  }
+
+  @OpInputsMetadata(
+      outputsClass = MergeDedupData.class
+  )
+  public static class Inputs extends RawOpInputs {
+    /**
+     * A 1-D integer tensor, includes integer elements of deduplication data tuple.
+     */
+    public final Operand integerTensor;
+
+    /**
+     * A 1-D float tensor, includes float elements of deduplication data tuple.
+     */
+    public final Operand floatTensor;
+
+    /**
+     * A serialized TensorProto string of output tuple mask. This mask is a 2-D tensor,
+     * with first column as tuple element type, and second column as span of this type.
+     * For example, an output tuple of (1, 2, 0.1, 3), its mask is [[0, 2], [1, 1], [0,
+     * 1]]. We expect only two types of elements: integer(0) and float(1).
+     */
+    public final String tupleMask;
+
+    /**
+     * integer_tensor type. Allowed types: {int32, int64, uint32, uint64}.
+     */
+    public final DataType integerType;
+
+    /**
+     * float_tensor type. Allowed types: {half, bfloat16, float}.
+     */
+    public final DataType floatType;
+
+    /**
+     * The config attribute
+     */
+    public final String config;
+
+    public Inputs(GraphOperation op) {
+      super(new MergeDedupData(op), op, Arrays.asList("tuple_mask", "integer_type", "float_type", "config"));
+      int inputIndex = 0;
+      integerTensor = (Operand) op.input(inputIndex++);
+      floatTensor = (Operand) op.input(inputIndex++);
+      tupleMask = op.attributes().getAttrString("tuple_mask");
+      integerType = op.attributes().getAttrType("integer_type");
+      floatType = op.attributes().getAttrType("float_type");
+      config = op.attributes().getAttrString("config");
+    }
+  }
+}
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Min.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Min.java
index 7aae573f91c..5bca0c3f539 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Min.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Min.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MirrorPad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MirrorPad.java
index 85639cacb74..e3f7cc7c88e 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MirrorPad.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MirrorPad.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MirrorPadGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MirrorPadGrad.java
index c5fb4a45ba1..03f6a99c467 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MirrorPadGrad.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MirrorPadGrad.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MlirPassthroughOp.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MlirPassthroughOp.java
index fd9409c0fba..d0639635d46 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MlirPassthroughOp.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MlirPassthroughOp.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MutableDenseHashTable.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MutableDenseHashTable.java
index d2ff66ca7b1..036d953d7c4 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MutableDenseHashTable.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MutableDenseHashTable.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MutableHashTable.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MutableHashTable.java
index 9b959f35f5f..1acf3a5009e 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MutableHashTable.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MutableHashTable.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MutableHashTableOfTensors.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MutableHashTableOfTensors.java
index 79c11554521..d5f605c5b14 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MutableHashTableOfTensors.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/MutableHashTableOfTensors.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/NcclAllReduce.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/NcclAllReduce.java
index c116e204946..5b0b190cba1 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/NcclAllReduce.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/NcclAllReduce.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/NcclBroadcast.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/NcclBroadcast.java
index 52193233d8d..6c5be2aae47 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/NcclBroadcast.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/NcclBroadcast.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/NcclReduce.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/NcclReduce.java
index 9552a2586df..9d72e0c7f09 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/NcclReduce.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/NcclReduce.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/NextIteration.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/NextIteration.java
index 670b18c82bd..b70df6869ea 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/NextIteration.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/NextIteration.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OneHot.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OneHot.java
index d3d3aff0009..8964029d84c 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OneHot.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OneHot.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TNumber;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OnesLike.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OnesLike.java
index 6f4592ea9e0..95637dd717f 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OnesLike.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OnesLike.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapClear.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapClear.java
index d6394d62aa3..9cfaf73a12b 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapClear.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapClear.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapIncompleteSize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapIncompleteSize.java
index 15c27ce9ec0..b89e7392d8b 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapIncompleteSize.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapIncompleteSize.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapPeek.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapPeek.java
index 50229b25b22..4f39453fd3c 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapPeek.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapPeek.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapSize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapSize.java
index d9a101a3ac3..c306d23d259 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapSize.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapSize.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapStage.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapStage.java
index a452ffa0a28..4417292e2ec 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapStage.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapStage.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapUnstage.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapUnstage.java
index ea4c0476001..7ea38dd9d9e 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapUnstage.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapUnstage.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapUnstageNoKey.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapUnstageNoKey.java
index 780a9381ae3..8a5cc55ab51 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapUnstageNoKey.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/OrderedMapUnstageNoKey.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Pad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Pad.java
index 3cc949c1da5..a57ed0e8473 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Pad.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Pad.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ParallelConcat.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ParallelConcat.java
index 7d062af63c3..c744f9f39ef 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ParallelConcat.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ParallelConcat.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ParallelDynamicStitch.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ParallelDynamicStitch.java
index d9fb3574d38..19f2f40e7c2 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ParallelDynamicStitch.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ParallelDynamicStitch.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/PartitionedCall.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/PartitionedCall.java
index f84e7f1210c..6d6d2875a6d 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/PartitionedCall.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/PartitionedCall.java
@@ -17,25 +17,56 @@
 
 package org.tensorflow.op.core;
 
+import java.util.Arrays;
 import java.util.Iterator;
 import java.util.List;
 import org.tensorflow.ConcreteFunction;
+import org.tensorflow.GraphOperation;
 import org.tensorflow.Operand;
+import org.tensorflow.Operation;
+import org.tensorflow.OperationBuilder;
 import org.tensorflow.Output;
+import org.tensorflow.op.Operands;
+import org.tensorflow.op.RawOp;
+import org.tensorflow.op.RawOpInputs;
 import org.tensorflow.op.Scope;
 import org.tensorflow.op.annotation.Endpoint;
+import org.tensorflow.op.annotation.OpInputsMetadata;
+import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
  * returns {@code f(inputs)}, where {@code f}'s body is placed and partitioned.
- *
- * 

Selects between {@link StatefulPartitionedCall} and {@link StatelessPartitionedCall} based on the statefulness of the function arguments. + * Asynchronously executes a function, potentially across multiple devices but + * within a single process. The kernel places and partitions a given function's + * underlying graph, and executes each of the partitioned subgraphs as a function. */ +@OpMetadata( + opType = PartitionedCall.OP_NAME, + inputsClass = PartitionedCall.Inputs.class +) @Operator -public interface PartitionedCall extends Iterable> { +public final class PartitionedCall extends RawOp implements Iterable> { /** - * Factory method to create a class wrapping a new StatefulPartitionedCall operation. + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "PartitionedCall"; + + private List> output; + + @SuppressWarnings("unchecked") + public PartitionedCall(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + int outputLength = operation.outputListLength("output"); + output = Arrays.asList(operation.outputList(outputIdx, outputLength)); + outputIdx += outputLength; + } + + /** + * Factory method to create a class wrapping a new PartitionedCall operation. * * @param scope current scope * @param args A list of input tensors. @@ -44,8 +75,7 @@ public interface PartitionedCall extends Iterable> { * A function that takes 'args', a list of tensors, and returns 'output', * another list of tensors. Input and output types are specified by 'Tin' * and 'Tout'. The function body of f will be placed and partitioned across - * devices, setting this op apart from the regular Call op. This op is - * stateful. + * devices, setting this op apart from the regular Call op. *

* @param options carries optional attribute values * @return a new instance of PartitionedCall @@ -53,17 +83,26 @@ public interface PartitionedCall extends Iterable> { @Endpoint( describeByClass = true ) - static PartitionedCall create(Scope scope, Iterable> args, + public static PartitionedCall create(Scope scope, Iterable> args, List> Tout, ConcreteFunction f, Options... options) { - boolean isStateful = false; - if (f.isStateful()) { - isStateful = true; - } - if (isStateful) { - return StatefulPartitionedCall.create(scope, args, Tout, f, options); - } else { - return StatelessPartitionedCall.create(scope, args, Tout, f, options); + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "PartitionedCall"); + opBuilder.addInputList(Operands.asOutputs(args)); + opBuilder.setAttr("Tout", Operands.toDataTypes(Tout)); + opBuilder.setAttr("f", f); + if (options != null) { + for (Options opts : options) { + if (opts.config != null) { + opBuilder.setAttr("config", opts.config); + } + if (opts.configProto != null) { + opBuilder.setAttr("config_proto", opts.configProto); + } + if (opts.executorType != null) { + opBuilder.setAttr("executor_type", opts.executorType); + } + } } + return new PartitionedCall(opBuilder.build()); } /** @@ -72,7 +111,7 @@ static PartitionedCall create(Scope scope, Iterable> args, * @param config the config option * @return this Options instance. */ - static Options config(String config) { + public static Options config(String config) { return new Options().config(config); } @@ -82,7 +121,7 @@ static Options config(String config) { * @param configProto the configProto option * @return this Options instance. */ - static Options configProto(String configProto) { + public static Options configProto(String configProto) { return new Options().configProto(configProto); } @@ -92,7 +131,7 @@ static Options configProto(String configProto) { * @param executorType the executorType option * @return this Options instance. */ - static Options executorType(String executorType) { + public static Options executorType(String executorType) { return new Options().executorType(executorType); } @@ -101,21 +140,25 @@ static Options executorType(String executorType) { * A list of return values. * @return output. */ - List> output(); + public List> output() { + return output; + } @Override @SuppressWarnings({"rawtypes", "unchecked"}) - Iterator> iterator(); + public Iterator> iterator() { + return (Iterator) output.iterator(); + } /** * Optional attributes for {@link org.tensorflow.op.core.PartitionedCall} */ - class Options { - String config; + public static class Options { + private String config; - String configProto; + private String configProto; - String executorType; + private String executorType; private Options() { } @@ -153,4 +196,52 @@ public Options executorType(String executorType) { return this; } } + + @OpInputsMetadata( + outputsClass = PartitionedCall.class + ) + public static class Inputs extends RawOpInputs { + /** + * A list of input tensors. + */ + public final Iterable> args; + + /** + * A list of input types. + */ + public final DataType[] Tin; + + /** + * A list of output types. + */ + public final DataType[] Tout; + + /** + * The config attribute + */ + public final String config; + + /** + * The configProto attribute + */ + public final String configProto; + + /** + * The executorType attribute + */ + public final String executorType; + + public Inputs(GraphOperation op) { + super(new PartitionedCall(op), op, Arrays.asList("Tin", "Tout", "config", "config_proto", "executor_type")); + int inputIndex = 0; + int argsLength = op.inputListLength("args"); + args = Arrays.asList((Operand[]) op.inputList(inputIndex, argsLength)); + inputIndex += argsLength; + Tin = op.attributes().getAttrTypeList("Tin"); + Tout = op.attributes().getAttrTypeList("Tout"); + config = op.attributes().getAttrString("config"); + configProto = op.attributes().getAttrString("config_proto"); + executorType = op.attributes().getAttrString("executor_type"); + } + } } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Placeholder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Placeholder.java index d42bbb3f318..13245d992e9 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Placeholder.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Placeholder.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/PlaceholderWithDefault.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/PlaceholderWithDefault.java index 6138dd17f7b..793e5a962b2 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/PlaceholderWithDefault.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/PlaceholderWithDefault.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Prod.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Prod.java index 703afdb3e70..325c04a77f2 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Prod.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Prod.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/QuantizedReshape.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/QuantizedReshape.java index 855853fc833..4cf7777a56d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/QuantizedReshape.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/QuantizedReshape.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RaggedFillEmptyRows.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RaggedFillEmptyRows.java new file mode 100644 index 00000000000..7badadb7c61 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RaggedFillEmptyRows.java @@ -0,0 +1,171 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.op.annotation.Operator; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.TBool; +import org.tensorflow.types.TInt64; +import org.tensorflow.types.family.TType; + +/** + * The RaggedFillEmptyRows operation + * + * @param data type for {@code output_values} output + */ +@OpMetadata( + opType = RaggedFillEmptyRows.OP_NAME, + inputsClass = RaggedFillEmptyRows.Inputs.class +) +@Operator +public final class RaggedFillEmptyRows extends RawOp { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "RaggedFillEmptyRows"; + + private Output outputValueRowids; + + private Output outputValues; + + private Output emptyRowIndicator; + + private Output reverseIndexMap; + + public RaggedFillEmptyRows(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + outputValueRowids = operation.output(outputIdx++); + outputValues = operation.output(outputIdx++); + emptyRowIndicator = operation.output(outputIdx++); + reverseIndexMap = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new RaggedFillEmptyRows operation. + * + * @param scope current scope + * @param valueRowids The valueRowids value + * @param values The values value + * @param nrows The nrows value + * @param defaultValue The defaultValue value + * @param data type for {@code RaggedFillEmptyRows} output and operands + * @return a new instance of RaggedFillEmptyRows + */ + @Endpoint( + describeByClass = true + ) + public static RaggedFillEmptyRows create(Scope scope, + Operand valueRowids, Operand values, Operand nrows, + Operand defaultValue) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "RaggedFillEmptyRows"); + opBuilder.addInput(valueRowids.asOutput()); + opBuilder.addInput(values.asOutput()); + opBuilder.addInput(nrows.asOutput()); + opBuilder.addInput(defaultValue.asOutput()); + return new RaggedFillEmptyRows<>(opBuilder.build()); + } + + /** + * Gets outputValueRowids. + * + * @return outputValueRowids. + */ + public Output outputValueRowids() { + return outputValueRowids; + } + + /** + * Gets outputValues. + * + * @return outputValues. + */ + public Output outputValues() { + return outputValues; + } + + /** + * Gets emptyRowIndicator. + * + * @return emptyRowIndicator. + */ + public Output emptyRowIndicator() { + return emptyRowIndicator; + } + + /** + * Gets reverseIndexMap. + * + * @return reverseIndexMap. + */ + public Output reverseIndexMap() { + return reverseIndexMap; + } + + @OpInputsMetadata( + outputsClass = RaggedFillEmptyRows.class + ) + public static class Inputs extends RawOpInputs> { + /** + * The valueRowids input + */ + public final Operand valueRowids; + + /** + * The values input + */ + public final Operand values; + + /** + * The nrows input + */ + public final Operand nrows; + + /** + * The defaultValue input + */ + public final Operand defaultValue; + + /** + * The T attribute + */ + public final DataType T; + + public Inputs(GraphOperation op) { + super(new RaggedFillEmptyRows<>(op), op, Arrays.asList("T")); + int inputIndex = 0; + valueRowids = (Operand) op.input(inputIndex++); + values = (Operand) op.input(inputIndex++); + nrows = (Operand) op.input(inputIndex++); + defaultValue = (Operand) op.input(inputIndex++); + T = op.attributes().getAttrType("T"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RaggedFillEmptyRowsGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RaggedFillEmptyRowsGrad.java new file mode 100644 index 00000000000..107ce49af62 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RaggedFillEmptyRowsGrad.java @@ -0,0 +1,129 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.op.annotation.Operator; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.TInt64; +import org.tensorflow.types.family.TType; + +/** + * The RaggedFillEmptyRowsGrad operation + * + * @param data type for {@code d_values} output + */ +@OpMetadata( + opType = RaggedFillEmptyRowsGrad.OP_NAME, + inputsClass = RaggedFillEmptyRowsGrad.Inputs.class +) +@Operator +public final class RaggedFillEmptyRowsGrad extends RawOp { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "RaggedFillEmptyRowsGrad"; + + private Output dValues; + + private Output dDefaultValue; + + public RaggedFillEmptyRowsGrad(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + dValues = operation.output(outputIdx++); + dDefaultValue = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new RaggedFillEmptyRowsGrad operation. + * + * @param scope current scope + * @param reverseIndexMap The reverseIndexMap value + * @param gradValues The gradValues value + * @param data type for {@code RaggedFillEmptyRowsGrad} output and operands + * @return a new instance of RaggedFillEmptyRowsGrad + */ + @Endpoint( + describeByClass = true + ) + public static RaggedFillEmptyRowsGrad create(Scope scope, + Operand reverseIndexMap, Operand gradValues) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "RaggedFillEmptyRowsGrad"); + opBuilder.addInput(reverseIndexMap.asOutput()); + opBuilder.addInput(gradValues.asOutput()); + return new RaggedFillEmptyRowsGrad<>(opBuilder.build()); + } + + /** + * Gets dValues. + * + * @return dValues. + */ + public Output dValues() { + return dValues; + } + + /** + * Gets dDefaultValue. + * + * @return dDefaultValue. + */ + public Output dDefaultValue() { + return dDefaultValue; + } + + @OpInputsMetadata( + outputsClass = RaggedFillEmptyRowsGrad.class + ) + public static class Inputs extends RawOpInputs> { + /** + * The reverseIndexMap input + */ + public final Operand reverseIndexMap; + + /** + * The gradValues input + */ + public final Operand gradValues; + + /** + * The T attribute + */ + public final DataType T; + + public Inputs(GraphOperation op) { + super(new RaggedFillEmptyRowsGrad<>(op), op, Arrays.asList("T")); + int inputIndex = 0; + reverseIndexMap = (Operand) op.input(inputIndex++); + gradValues = (Operand) op.input(inputIndex++); + T = op.attributes().getAttrType("T"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RandomDatasetV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RandomDatasetV2.java new file mode 100644 index 00000000000..09e08976a0e --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RandomDatasetV2.java @@ -0,0 +1,238 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import java.util.List; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.ndarray.Shape; +import org.tensorflow.op.Operands; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.TInt64; +import org.tensorflow.types.family.TType; + +/** + * Creates a Dataset that returns pseudorandom numbers. + * Creates a Dataset that returns a stream of uniformly distributed + * pseudorandom 64-bit signed integers. It accepts a boolean attribute that + * determines if the random number generators are re-applied at each epoch. The + * default value is True which means that the seeds are applied and the same + * sequence of random numbers are generated at each epoch. If set to False, the + * seeds are not re-applied and a different sequence of random numbers are + * generated at each epoch. + *

In the TensorFlow Python API, you can instantiate this dataset via the + * class {@code tf.data.experimental.RandomDatasetV2}. + */ +@OpMetadata( + opType = RandomDatasetV2.OP_NAME, + inputsClass = RandomDatasetV2.Inputs.class +) +public final class RandomDatasetV2 extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "RandomDatasetV2"; + + private Output handle; + + @SuppressWarnings("unchecked") + public RandomDatasetV2(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + handle = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new RandomDatasetV2 operation. + * + * @param scope current scope + * @param seed A scalar seed for the random number generator. If either seed or + * seed2 is set to be non-zero, the random number generator is seeded + * by the given seed. Otherwise, a random seed is used. + * @param seed2 A second scalar seed to avoid seed collision. + * @param seedGenerator A resource for the random number seed generator. + * @param outputTypes The value of the outputTypes attribute + * @param outputShapes The value of the outputShapes attribute + * @param options carries optional attribute values + * @return a new instance of RandomDatasetV2 + */ + @Endpoint( + describeByClass = true + ) + public static RandomDatasetV2 create(Scope scope, Operand seed, Operand seed2, + Operand seedGenerator, List> outputTypes, + List outputShapes, Options... options) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "RandomDatasetV2"); + opBuilder.addInput(seed.asOutput()); + opBuilder.addInput(seed2.asOutput()); + opBuilder.addInput(seedGenerator.asOutput()); + opBuilder.setAttr("output_types", Operands.toDataTypes(outputTypes)); + Shape[] outputShapesArray = new Shape[outputShapes.size()]; + for (int i = 0 ; i < outputShapesArray.length ; i++) { + outputShapesArray[i] = outputShapes.get(i); + } + opBuilder.setAttr("output_shapes", outputShapesArray); + if (options != null) { + for (Options opts : options) { + if (opts.rerandomizeEachIteration != null) { + opBuilder.setAttr("rerandomize_each_iteration", opts.rerandomizeEachIteration); + } + if (opts.metadata != null) { + opBuilder.setAttr("metadata", opts.metadata); + } + } + } + return new RandomDatasetV2(opBuilder.build()); + } + + /** + * Sets the rerandomizeEachIteration option. + * + * @param rerandomizeEachIteration A boolean attribute to rerandomize the sequence of random numbers generated + * at each epoch. + * @return this Options instance. + */ + public static Options rerandomizeEachIteration(Boolean rerandomizeEachIteration) { + return new Options().rerandomizeEachIteration(rerandomizeEachIteration); + } + + /** + * Sets the metadata option. + * + * @param metadata the metadata option + * @return this Options instance. + */ + public static Options metadata(String metadata) { + return new Options().metadata(metadata); + } + + /** + * Gets handle. + * + * @return handle. + */ + public Output handle() { + return handle; + } + + @Override + @SuppressWarnings("unchecked") + public Output asOutput() { + return (Output) handle; + } + + /** + * Optional attributes for {@link org.tensorflow.op.core.RandomDatasetV2} + */ + public static class Options { + private Boolean rerandomizeEachIteration; + + private String metadata; + + private Options() { + } + + /** + * Sets the rerandomizeEachIteration option. + * + * @param rerandomizeEachIteration A boolean attribute to rerandomize the sequence of random numbers generated + * at each epoch. + * @return this Options instance. + */ + public Options rerandomizeEachIteration(Boolean rerandomizeEachIteration) { + this.rerandomizeEachIteration = rerandomizeEachIteration; + return this; + } + + /** + * Sets the metadata option. + * + * @param metadata the metadata option + * @return this Options instance. + */ + public Options metadata(String metadata) { + this.metadata = metadata; + return this; + } + } + + @OpInputsMetadata( + outputsClass = RandomDatasetV2.class + ) + public static class Inputs extends RawOpInputs { + /** + * A scalar seed for the random number generator. If either seed or + * seed2 is set to be non-zero, the random number generator is seeded + * by the given seed. Otherwise, a random seed is used. + */ + public final Operand seed; + + /** + * A second scalar seed to avoid seed collision. + */ + public final Operand seed2; + + /** + * A resource for the random number seed generator. + */ + public final Operand seedGenerator; + + /** + * A boolean attribute to rerandomize the sequence of random numbers generated + * at each epoch. + */ + public final boolean rerandomizeEachIteration; + + /** + * The outputTypes attribute + */ + public final DataType[] outputTypes; + + /** + * The outputShapes attribute + */ + public final Shape[] outputShapes; + + /** + * The metadata attribute + */ + public final String metadata; + + public Inputs(GraphOperation op) { + super(new RandomDatasetV2(op), op, Arrays.asList("rerandomize_each_iteration", "output_types", "output_shapes", "metadata")); + int inputIndex = 0; + seed = (Operand) op.input(inputIndex++); + seed2 = (Operand) op.input(inputIndex++); + seedGenerator = (Operand) op.input(inputIndex++); + rerandomizeEachIteration = op.attributes().getAttrBool("rerandomize_each_iteration"); + outputTypes = op.attributes().getAttrTypeList("output_types"); + outputShapes = op.attributes().getAttrShapeList("output_shapes"); + metadata = op.attributes().getAttrString("metadata"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RandomIndexShuffle.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RandomIndexShuffle.java index dd29f9de312..7c775970cee 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RandomIndexShuffle.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RandomIndexShuffle.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** @@ -68,6 +68,7 @@ public RandomIndexShuffle(Operation operation) { * @param index A scalar tensor or a vector of dtype {@code dtype}. The index (or indices) to be shuffled. Must be within [0, max_index]. * @param seed A tensor of dtype {@code Tseed} and shape [3] or [n, 3]. The random seed. * @param maxIndex A scalar tensor or vector of dtype {@code dtype}. The upper bound(s) of the interval (inclusive). + * @param options carries optional attribute values * @param data type for {@code RandomIndexShuffle} output and operands * @return a new instance of RandomIndexShuffle */ @@ -75,14 +76,31 @@ public RandomIndexShuffle(Operation operation) { describeByClass = true ) public static RandomIndexShuffle create(Scope scope, Operand index, - Operand seed, Operand maxIndex) { + Operand seed, Operand maxIndex, Options... options) { OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "RandomIndexShuffle"); opBuilder.addInput(index.asOutput()); opBuilder.addInput(seed.asOutput()); opBuilder.addInput(maxIndex.asOutput()); + if (options != null) { + for (Options opts : options) { + if (opts.rounds != null) { + opBuilder.setAttr("rounds", opts.rounds); + } + } + } return new RandomIndexShuffle<>(opBuilder.build()); } + /** + * Sets the rounds option. + * + * @param rounds The number of rounds to use the in block cipher. + * @return this Options instance. + */ + public static Options rounds(Long rounds) { + return new Options().rounds(rounds); + } + /** * Gets output. * A scalar tensor of dtype {@code dtype}, within [0, max_index]. The randomly shuffled index. @@ -97,6 +115,27 @@ public Output asOutput() { return output; } + /** + * Optional attributes for {@link org.tensorflow.op.core.RandomIndexShuffle} + */ + public static class Options { + private Long rounds; + + private Options() { + } + + /** + * Sets the rounds option. + * + * @param rounds The number of rounds to use the in block cipher. + * @return this Options instance. + */ + public Options rounds(Long rounds) { + this.rounds = rounds; + return this; + } + } + @OpInputsMetadata( outputsClass = RandomIndexShuffle.class ) @@ -116,6 +155,11 @@ public static class Inputs extends RawOpInputs maxIndex; + /** + * The number of rounds to use the in block cipher. + */ + public final long rounds; + /** * The dtype of the input and output. */ @@ -127,11 +171,12 @@ public static class Inputs extends RawOpInputs(op), op, Arrays.asList("dtype", "Tseed")); + super(new RandomIndexShuffle<>(op), op, Arrays.asList("rounds", "dtype", "Tseed")); int inputIndex = 0; index = (Operand) op.input(inputIndex++); seed = (Operand) op.input(inputIndex++); maxIndex = (Operand) op.input(inputIndex++); + rounds = op.attributes().getAttrInt("rounds"); dtype = op.attributes().getAttrType("dtype"); Tseed = op.attributes().getAttrType("Tseed"); } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Range.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Range.java index 03ed5d6cd5b..f8a1dd596d5 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Range.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Range.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Rank.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Rank.java index a39bb9e047e..a95c35b4456 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Rank.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Rank.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReadVariableOp.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReadVariableOp.java index ce6903cc59f..05317062df5 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReadVariableOp.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReadVariableOp.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Recv.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Recv.java index b6a3becdc6e..d31649865ef 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Recv.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Recv.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceAll.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceAll.java index f6962783433..6eb26d5f798 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceAll.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceAll.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceAny.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceAny.java index d53a9a0dfae..eace6873455 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceAny.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceAny.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceMax.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceMax.java index 203af8d2de3..a095bb09352 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceMax.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceMax.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceMin.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceMin.java index ad9921c3196..d531489b910 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceMin.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceMin.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceProd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceProd.java index 33920f6cadb..b275bdd1ad9 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceProd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceProd.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceSum.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceSum.java index d0679d13c97..f0fe8c995ca 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceSum.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReduceSum.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefEnter.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefEnter.java index b449e17b2bb..41daa7747cb 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefEnter.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefEnter.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefExit.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefExit.java index 774e0202167..821ea035cf0 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefExit.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefExit.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefIdentity.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefIdentity.java index 382ce741b9d..ebb8a856388 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefIdentity.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefIdentity.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefMerge.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefMerge.java index 116bd8e6b05..00ce135525a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefMerge.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefMerge.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefNextIteration.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefNextIteration.java index 2f42e7d056e..7bee6e511a5 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefNextIteration.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefNextIteration.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefSelect.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefSelect.java index 173399e59ef..24ae5474074 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefSelect.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefSelect.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefSwitch.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefSwitch.java index 2fbf38c5558..c54b18d84ef 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefSwitch.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RefSwitch.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Relayout.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Relayout.java index 5236417ca71..5382eaf05e5 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Relayout.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Relayout.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RelayoutLike.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RelayoutLike.java new file mode 100644 index 00000000000..5afe30e9235 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RelayoutLike.java @@ -0,0 +1,127 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.op.annotation.Operator; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.family.TType; + +/** + * The RelayoutLike operation + * + * @param data type for {@code output} output + */ +@OpMetadata( + opType = RelayoutLike.OP_NAME, + inputsClass = RelayoutLike.Inputs.class +) +@Operator +public final class RelayoutLike extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "RelayoutLike"; + + private Output output; + + public RelayoutLike(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new RelayoutLike operation. + * + * @param scope current scope + * @param input The input value + * @param layoutInput The layoutInput value + * @param data type for {@code RelayoutLike} output and operands + * @return a new instance of RelayoutLike + */ + @Endpoint( + describeByClass = true + ) + public static RelayoutLike create(Scope scope, Operand input, + Operand layoutInput) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "RelayoutLike"); + opBuilder.addInput(input.asOutput()); + opBuilder.addInput(layoutInput.asOutput()); + return new RelayoutLike<>(opBuilder.build()); + } + + /** + * Gets output. + * + * @return output. + */ + public Output output() { + return output; + } + + @Override + public Output asOutput() { + return output; + } + + @OpInputsMetadata( + outputsClass = RelayoutLike.class + ) + public static class Inputs extends RawOpInputs> { + /** + * The input input + */ + public final Operand input; + + /** + * The layoutInput input + */ + public final Operand layoutInput; + + /** + * The T attribute + */ + public final DataType T; + + /** + * The U attribute + */ + public final DataType U; + + public Inputs(GraphOperation op) { + super(new RelayoutLike<>(op), op, Arrays.asList("T", "U")); + int inputIndex = 0; + input = (Operand) op.input(inputIndex++); + layoutInput = (Operand) op.input(inputIndex++); + T = op.attributes().getAttrType("T"); + U = op.attributes().getAttrType("U"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RemoteCall.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RemoteCall.java index 9caf361c592..7c639d2ccad 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RemoteCall.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/RemoteCall.java @@ -34,7 +34,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Reshape.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Reshape.java index 37933177a89..a97407efafd 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Reshape.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Reshape.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceCountUpTo.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceCountUpTo.java index bc342de30ba..fc08808e03b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceCountUpTo.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceCountUpTo.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceGather.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceGather.java index af27ee2ec0e..6acf5134d1d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceGather.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceGather.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceGatherNd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceGatherNd.java index 8569f93af18..e1619382b4a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceGatherNd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceGatherNd.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterAdd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterAdd.java index d8242dbc971..07729b6fb5c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterAdd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterAdd.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterDiv.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterDiv.java index fa5e13526d5..e87e631f321 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterDiv.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterDiv.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterMax.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterMax.java index b6ec91dec82..b8f1454cee1 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterMax.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterMax.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterMin.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterMin.java index 63dbfae9a44..a19cd96c775 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterMin.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterMin.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterMul.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterMul.java index 9cf2003d62c..a0900ae6a2b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterMul.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterMul.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterNdAdd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterNdAdd.java index 4ef545b4ac2..6b69b497b7b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterNdAdd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterNdAdd.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterNdMax.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterNdMax.java index b4edaab1e04..ef5302dfd31 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterNdMax.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterNdMax.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterNdMin.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterNdMin.java index 96a2242296c..9dceac6ea10 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterNdMin.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterNdMin.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterNdSub.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterNdSub.java index f3c21951077..d681259bafb 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterNdSub.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterNdSub.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterNdUpdate.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterNdUpdate.java index 01309f4ed92..527d2d49aac 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterNdUpdate.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterNdUpdate.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterSub.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterSub.java index b9017ad9463..845bd0cc164 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterSub.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterSub.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterUpdate.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterUpdate.java index 250ea524e31..b0f96aadd61 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterUpdate.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceScatterUpdate.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceStridedSliceAssign.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceStridedSliceAssign.java index 20d6872e7ac..55455cd6499 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceStridedSliceAssign.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ResourceStridedSliceAssign.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Reverse.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Reverse.java index 1d553548bf8..591745496d6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Reverse.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Reverse.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReverseSequence.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReverseSequence.java index 2734b8c77d1..e177b0ce877 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReverseSequence.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ReverseSequence.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Roll.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Roll.java index 950d56636f7..741f8594015 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Roll.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Roll.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterAdd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterAdd.java index 421a8916982..5eceba7ae22 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterAdd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterAdd.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterDiv.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterDiv.java index 7c23c1f3137..4c1c00e2238 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterDiv.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterDiv.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterMax.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterMax.java index 1ffda1c317d..6da2611deb3 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterMax.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterMax.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterMin.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterMin.java index e9b5c3597b4..6a2753f02d4 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterMin.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterMin.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterMul.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterMul.java index d6657493e39..0c273db9813 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterMul.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterMul.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNd.java index 2dc50bd31c2..615fe3fc203 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNd.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; @@ -91,7 +91,7 @@ * *

In Python, this scatter operation would look like this: *

- *     indices = tf.constant([[0], [2]])
+ *     indices = tf.constant([[1], [3]])
  *     updates = tf.constant([[[5, 5, 5, 5], [6, 6, 6, 6],
  *                             [7, 7, 7, 7], [8, 8, 8, 8]],
  *                            [[5, 5, 5, 5], [6, 6, 6, 6],
@@ -102,10 +102,10 @@
  * 
*

The resulting tensor would look like this: *

- * [[[5, 5, 5, 5], [6, 6, 6, 6], [7, 7, 7, 7], [8, 8, 8, 8]],
- *  [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]],
+ * [[[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]],
  *  [[5, 5, 5, 5], [6, 6, 6, 6], [7, 7, 7, 7], [8, 8, 8, 8]],
- *  [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]]
+ *  [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]],
+ *  [[5, 5, 5, 5], [6, 6, 6, 6], [7, 7, 7, 7], [8, 8, 8, 8]]]
  * 
*

Note that on CPU, if an out of bound index is found, an error is returned. * On GPU, if an out of bound index is found, the index is ignored. diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdAdd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdAdd.java index 4e1fbb5628c..b67886d439f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdAdd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdAdd.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdMax.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdMax.java index 283fb21fc36..8504e4c5f73 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdMax.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdMax.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdMin.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdMin.java index 6bd3f27098a..e4a29bc5ff2 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdMin.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdMin.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdNonAliasingAdd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdNonAliasingAdd.java index e55ada8f73c..37e1bd24d8f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdNonAliasingAdd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdNonAliasingAdd.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdSub.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdSub.java index 254c3f0e344..b02d62d30c9 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdSub.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdSub.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdUpdate.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdUpdate.java index 3ad3c88b00b..f02a67db73d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdUpdate.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterNdUpdate.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterSub.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterSub.java index 0e9eef529c9..7e253c6e5f6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterSub.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterSub.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterUpdate.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterUpdate.java index 418c55384a7..e9a8f2dcd16 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterUpdate.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ScatterUpdate.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SegmentMaxV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SegmentMaxV2.java new file mode 100644 index 00000000000..3bfd856f989 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SegmentMaxV2.java @@ -0,0 +1,189 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.op.annotation.Operator; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.family.TNumber; + +/** + * Computes the maximum along segments of a tensor. + * Read + * the section on segmentation + * for an explanation of segments. + *

Computes a tensor such that + * \(output_i = \max_j(data_j)\) where {@code max} is over {@code j} such + * that {@code segment_ids[j] == i}. + *

If the maximum is empty for a given segment ID {@code i}, it outputs the smallest + * possible value for the specific numeric type, + * {@code output[i] = numeric_limits::lowest()}. + *

Note: That this op is currently only supported with jit_compile=True. + *

Caution: On CPU, values in {@code segment_ids} are always validated to be sorted, + * and an error is thrown for indices that are not increasing. On GPU, this + * does not throw an error for unsorted indices. On GPU, out-of-order indices + * result in safe but unspecified behavior, which may include treating + * out-of-order indices as the same as a smaller following index. + *

The only difference with SegmentMax is the additional input {@code num_segments}. + * This helps in evaluating the output shape in compile time. + * {@code num_segments} should be consistent with segment_ids. + * e.g. Max(segment_ids) should be equal to {@code num_segments} - 1 for a 1-d segment_ids + * With inconsistent num_segments, the op still runs. only difference is, + * the output takes the size of num_segments irrespective of size of segment_ids and data. + * for num_segments less than expected output size, the last elements are ignored + * for num_segments more than the expected output size, last elements are assigned + * smallest possible value for the specific numeric type. + *

For example: + *

+ *
+ *
+ *

{@literal @}tf.function(jit_compile=True) + * ... def test(c): + * ... return tf.raw_ops.SegmentMaxV2(data=c, segment_ids=tf.constant([0, 0, 1]), num_segments=2) + * c = tf.constant([[1,2,3,4], [4, 3, 2, 1], [5,6,7,8]]) + * test(c).numpy() + * array([[4, 3, 3, 4], + * [5, 6, 7, 8]], dtype=int32) + *

+ *
+ *
+ * + * @param data type for {@code output} output + */ +@OpMetadata( + opType = SegmentMaxV2.OP_NAME, + inputsClass = SegmentMaxV2.Inputs.class +) +@Operator +public final class SegmentMaxV2 extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "SegmentMaxV2"; + + private Output output; + + public SegmentMaxV2(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new SegmentMaxV2 operation. + * + * @param scope current scope + * @param data The data value + * @param segmentIds A 1-D tensor whose size is equal to the size of {@code data}'s + * first dimension. Values should be sorted and can be repeated. + * The values must be less than {@code num_segments}. + *

Caution: The values are always validated to be sorted on CPU, never validated + * on GPU. + * @param numSegments The numSegments value + * @param data type for {@code SegmentMaxV2} output and operands + * @return a new instance of SegmentMaxV2 + */ + @Endpoint( + describeByClass = true + ) + public static SegmentMaxV2 create(Scope scope, Operand data, + Operand segmentIds, Operand numSegments) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "SegmentMaxV2"); + opBuilder.addInput(data.asOutput()); + opBuilder.addInput(segmentIds.asOutput()); + opBuilder.addInput(numSegments.asOutput()); + return new SegmentMaxV2<>(opBuilder.build()); + } + + /** + * Gets output. + * Has same shape as data, except for the first {@code segment_ids.rank} + * dimensions, which are replaced with a single dimensionw which has size + * {@code num_segments}. + * @return output. + */ + public Output output() { + return output; + } + + @Override + public Output asOutput() { + return output; + } + + @OpInputsMetadata( + outputsClass = SegmentMaxV2.class + ) + public static class Inputs extends RawOpInputs> { + /** + * The data input + */ + public final Operand data; + + /** + * A 1-D tensor whose size is equal to the size of {@code data}'s + * first dimension. Values should be sorted and can be repeated. + * The values must be less than {@code num_segments}. + *

Caution: The values are always validated to be sorted on CPU, never validated + * on GPU. + */ + public final Operand segmentIds; + + /** + * The numSegments input + */ + public final Operand numSegments; + + /** + * The T attribute + */ + public final DataType T; + + /** + * The Tindices attribute + */ + public final DataType Tindices; + + /** + * The Tnumsegments attribute + */ + public final DataType Tnumsegments; + + public Inputs(GraphOperation op) { + super(new SegmentMaxV2<>(op), op, Arrays.asList("T", "Tindices", "Tnumsegments")); + int inputIndex = 0; + data = (Operand) op.input(inputIndex++); + segmentIds = (Operand) op.input(inputIndex++); + numSegments = (Operand) op.input(inputIndex++); + T = op.attributes().getAttrType("T"); + Tindices = op.attributes().getAttrType("Tindices"); + Tnumsegments = op.attributes().getAttrType("Tnumsegments"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SegmentMinV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SegmentMinV2.java new file mode 100644 index 00000000000..d1d90033cb9 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SegmentMinV2.java @@ -0,0 +1,189 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.op.annotation.Operator; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.family.TNumber; + +/** + * Computes the minimum along segments of a tensor. + * Read + * the section on segmentation + * for an explanation of segments. + *

Computes a tensor such that + * \(output_i = \min_j(data_j)\) where {@code min} is over {@code j} such + * that {@code segment_ids[j] == i}. + *

If the minimum is empty for a given segment ID {@code i}, it outputs the largest + * possible value for the specific numeric type, + * {@code output[i] = numeric_limits::max()}. + *

Note: That this op is currently only supported with jit_compile=True. + *

Caution: On CPU, values in {@code segment_ids} are always validated to be sorted, + * and an error is thrown for indices that are not increasing. On GPU, this + * does not throw an error for unsorted indices. On GPU, out-of-order indices + * result in safe but unspecified behavior, which may include treating + * out-of-order indices as the same as a smaller following index. + *

The only difference with SegmentMin is the additional input {@code num_segments}. + * This helps in evaluating the output shape in compile time. + * {@code num_segments} should be consistent with segment_ids. + * e.g. Max(segment_ids) should be equal to {@code num_segments} - 1 for a 1-d segment_ids + * With inconsistent num_segments, the op still runs. only difference is, + * the output takes the size of num_segments irrespective of size of segment_ids and data. + * for num_segments less than expected output size, the last elements are ignored + * for num_segments more than the expected output size, last elements are assigned + * the largest possible value for the specific numeric type. + *

For example: + *

+ *
+ *
+ *

{@literal @}tf.function(jit_compile=True) + * ... def test(c): + * ... return tf.raw_ops.SegmentMinV2(data=c, segment_ids=tf.constant([0, 0, 1]), num_segments=2) + * c = tf.constant([[1,2,3,4], [4, 3, 2, 1], [5,6,7,8]]) + * test(c).numpy() + * array([[1, 2, 2, 1], + * [5, 6, 7, 8]], dtype=int32) + *

+ *
+ *
+ * + * @param data type for {@code output} output + */ +@OpMetadata( + opType = SegmentMinV2.OP_NAME, + inputsClass = SegmentMinV2.Inputs.class +) +@Operator +public final class SegmentMinV2 extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "SegmentMinV2"; + + private Output output; + + public SegmentMinV2(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new SegmentMinV2 operation. + * + * @param scope current scope + * @param data The data value + * @param segmentIds A 1-D tensor whose size is equal to the size of {@code data}'s + * first dimension. Values should be sorted and can be repeated. + * The values must be less than {@code num_segments}. + *

Caution: The values are always validated to be sorted on CPU, never validated + * on GPU. + * @param numSegments The numSegments value + * @param data type for {@code SegmentMinV2} output and operands + * @return a new instance of SegmentMinV2 + */ + @Endpoint( + describeByClass = true + ) + public static SegmentMinV2 create(Scope scope, Operand data, + Operand segmentIds, Operand numSegments) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "SegmentMinV2"); + opBuilder.addInput(data.asOutput()); + opBuilder.addInput(segmentIds.asOutput()); + opBuilder.addInput(numSegments.asOutput()); + return new SegmentMinV2<>(opBuilder.build()); + } + + /** + * Gets output. + * Has same shape as data, except for the first {@code segment_ids.rank} + * dimensions, which are replaced with a single dimensionw which has size + * {@code num_segments}. + * @return output. + */ + public Output output() { + return output; + } + + @Override + public Output asOutput() { + return output; + } + + @OpInputsMetadata( + outputsClass = SegmentMinV2.class + ) + public static class Inputs extends RawOpInputs> { + /** + * The data input + */ + public final Operand data; + + /** + * A 1-D tensor whose size is equal to the size of {@code data}'s + * first dimension. Values should be sorted and can be repeated. + * The values must be less than {@code num_segments}. + *

Caution: The values are always validated to be sorted on CPU, never validated + * on GPU. + */ + public final Operand segmentIds; + + /** + * The numSegments input + */ + public final Operand numSegments; + + /** + * The T attribute + */ + public final DataType T; + + /** + * The Tindices attribute + */ + public final DataType Tindices; + + /** + * The Tnumsegments attribute + */ + public final DataType Tnumsegments; + + public Inputs(GraphOperation op) { + super(new SegmentMinV2<>(op), op, Arrays.asList("T", "Tindices", "Tnumsegments")); + int inputIndex = 0; + data = (Operand) op.input(inputIndex++); + segmentIds = (Operand) op.input(inputIndex++); + numSegments = (Operand) op.input(inputIndex++); + T = op.attributes().getAttrType("T"); + Tindices = op.attributes().getAttrType("Tindices"); + Tnumsegments = op.attributes().getAttrType("Tnumsegments"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SegmentProdV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SegmentProdV2.java new file mode 100644 index 00000000000..9b5bb0d4448 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SegmentProdV2.java @@ -0,0 +1,182 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.op.annotation.Operator; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.family.TNumber; +import org.tensorflow.types.family.TType; + +/** + * Computes the product along segments of a tensor. + * Read + * the section on segmentation + * for an explanation of segments. + *

Computes a tensor such that + * \(output_i = \prod_j data_j\) where the product is over {@code j} such + * that {@code segment_ids[j] == i}. + *

If the product is empty for a given segment ID {@code i}, {@code output[i] = 1}. + *

Note: That this op is currently only supported with jit_compile=True. + *

The only difference with SegmentProd is the additional input {@code num_segments}. + * This helps in evaluating the output shape in compile time. + * {@code num_segments} should be consistent with segment_ids. + * e.g. Max(segment_ids) - 1 should be equal to {@code num_segments} for a 1-d segment_ids + * With inconsistent num_segments, the op still runs. only difference is, + * the output takes the size of num_segments irrespective of size of segment_ids and data. + * for num_segments less than expected output size, the last elements are ignored + * for num_segments more than the expected output size, last elements are assigned 1. + *

For example: + *

+ *
+ *
+ *

{@literal @}tf.function(jit_compile=True) + * ... def test(c): + * ... return tf.raw_ops.SegmentProdV2(data=c, segment_ids=tf.constant([0, 0, 1]), num_segments=2) + * c = tf.constant([[1,2,3,4], [4, 3, 2, 1], [5,6,7,8]]) + * test(c).numpy() + * array([[4, 6, 6, 4], + * [5, 6, 7, 8]], dtype=int32) + *

+ *
+ *
+ * + * @param data type for {@code output} output + */ +@OpMetadata( + opType = SegmentProdV2.OP_NAME, + inputsClass = SegmentProdV2.Inputs.class +) +@Operator +public final class SegmentProdV2 extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "SegmentProdV2"; + + private Output output; + + public SegmentProdV2(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new SegmentProdV2 operation. + * + * @param scope current scope + * @param data The data value + * @param segmentIds A 1-D tensor whose size is equal to the size of {@code data}'s + * first dimension. Values should be sorted and can be repeated. + * The values must be less than {@code num_segments}. + *

Caution: The values are always validated to be sorted on CPU, never validated + * on GPU. + * @param numSegments The numSegments value + * @param data type for {@code SegmentProdV2} output and operands + * @return a new instance of SegmentProdV2 + */ + @Endpoint( + describeByClass = true + ) + public static SegmentProdV2 create(Scope scope, Operand data, + Operand segmentIds, Operand numSegments) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "SegmentProdV2"); + opBuilder.addInput(data.asOutput()); + opBuilder.addInput(segmentIds.asOutput()); + opBuilder.addInput(numSegments.asOutput()); + return new SegmentProdV2<>(opBuilder.build()); + } + + /** + * Gets output. + * Has same shape as data, except for the first {@code segment_ids.rank} + * dimensions, which are replaced with a single dimensionw which has size + * {@code num_segments}. + * @return output. + */ + public Output output() { + return output; + } + + @Override + public Output asOutput() { + return output; + } + + @OpInputsMetadata( + outputsClass = SegmentProdV2.class + ) + public static class Inputs extends RawOpInputs> { + /** + * The data input + */ + public final Operand data; + + /** + * A 1-D tensor whose size is equal to the size of {@code data}'s + * first dimension. Values should be sorted and can be repeated. + * The values must be less than {@code num_segments}. + *

Caution: The values are always validated to be sorted on CPU, never validated + * on GPU. + */ + public final Operand segmentIds; + + /** + * The numSegments input + */ + public final Operand numSegments; + + /** + * The T attribute + */ + public final DataType T; + + /** + * The Tindices attribute + */ + public final DataType Tindices; + + /** + * The Tnumsegments attribute + */ + public final DataType Tnumsegments; + + public Inputs(GraphOperation op) { + super(new SegmentProdV2<>(op), op, Arrays.asList("T", "Tindices", "Tnumsegments")); + int inputIndex = 0; + data = (Operand) op.input(inputIndex++); + segmentIds = (Operand) op.input(inputIndex++); + numSegments = (Operand) op.input(inputIndex++); + T = op.attributes().getAttrType("T"); + Tindices = op.attributes().getAttrType("Tindices"); + Tnumsegments = op.attributes().getAttrType("Tnumsegments"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SegmentSumV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SegmentSumV2.java new file mode 100644 index 00000000000..8441a999ecd --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SegmentSumV2.java @@ -0,0 +1,161 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.op.annotation.Operator; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.family.TNumber; +import org.tensorflow.types.family.TType; + +/** + * Computes the sum along segments of a tensor. + * Read + * the section on segmentation + * for an explanation of segments. + *

Computes a tensor such that + * \(output_i = \sum_j data_j\) where sum is over {@code j} such + * that {@code segment_ids[j] == i}. + *

If the sum is empty for a given segment ID {@code i}, {@code output[i] = 0}. + *

Note that this op is currently only supported with jit_compile=True. + * + * + * @param data type for {@code output} output + */ +@OpMetadata( + opType = SegmentSumV2.OP_NAME, + inputsClass = SegmentSumV2.Inputs.class +) +@Operator +public final class SegmentSumV2 extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "SegmentSumV2"; + + private Output output; + + public SegmentSumV2(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new SegmentSumV2 operation. + * + * @param scope current scope + * @param data The data value + * @param segmentIds A 1-D tensor whose size is equal to the size of {@code data}'s + * first dimension. Values should be sorted and can be repeated. + * The values must be less than {@code num_segments}. + *

Caution: The values are always validated to be sorted on CPU, never validated + * on GPU. + * @param numSegments The numSegments value + * @param data type for {@code SegmentSumV2} output and operands + * @return a new instance of SegmentSumV2 + */ + @Endpoint( + describeByClass = true + ) + public static SegmentSumV2 create(Scope scope, Operand data, + Operand segmentIds, Operand numSegments) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "SegmentSumV2"); + opBuilder.addInput(data.asOutput()); + opBuilder.addInput(segmentIds.asOutput()); + opBuilder.addInput(numSegments.asOutput()); + return new SegmentSumV2<>(opBuilder.build()); + } + + /** + * Gets output. + * Has same shape as data, except for the first {@code segment_ids.rank} + * dimensions, which are replaced with a single dimension which has size + * {@code num_segments}. + * @return output. + */ + public Output output() { + return output; + } + + @Override + public Output asOutput() { + return output; + } + + @OpInputsMetadata( + outputsClass = SegmentSumV2.class + ) + public static class Inputs extends RawOpInputs> { + /** + * The data input + */ + public final Operand data; + + /** + * A 1-D tensor whose size is equal to the size of {@code data}'s + * first dimension. Values should be sorted and can be repeated. + * The values must be less than {@code num_segments}. + *

Caution: The values are always validated to be sorted on CPU, never validated + * on GPU. + */ + public final Operand segmentIds; + + /** + * The numSegments input + */ + public final Operand numSegments; + + /** + * The T attribute + */ + public final DataType T; + + /** + * The Tindices attribute + */ + public final DataType Tindices; + + /** + * The Tnumsegments attribute + */ + public final DataType Tnumsegments; + + public Inputs(GraphOperation op) { + super(new SegmentSumV2<>(op), op, Arrays.asList("T", "Tindices", "Tnumsegments")); + int inputIndex = 0; + data = (Operand) op.input(inputIndex++); + segmentIds = (Operand) op.input(inputIndex++); + numSegments = (Operand) op.input(inputIndex++); + T = op.attributes().getAttrType("T"); + Tindices = op.attributes().getAttrType("Tindices"); + Tnumsegments = op.attributes().getAttrType("Tnumsegments"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Select.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Select.java index eaadbeb4e8a..c450f028220 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Select.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Select.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Send.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Send.java index d7129ec1763..da51678bdff 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Send.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Send.java @@ -28,7 +28,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SetDiff1d.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SetDiff1d.java index 19de5053732..95291f8c0d9 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SetDiff1d.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SetDiff1d.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SetSize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SetSize.java index 7d7fb9c8e9a..9249f0a1ebe 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SetSize.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SetSize.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; @@ -41,7 +41,8 @@ * and {@code set_shape}. The last dimension contains values in a set, duplicates are * allowed but ignored. *

If {@code validate_indices} is {@code True}, this op validates the order and range of {@code set} - * indices. + * indices. Setting is to {@code False} while passing invalid arguments results in + * undefined behavior. */ @OpMetadata( opType = SetSize.OP_NAME, diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Shape.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Shape.java index cbe1edfbac6..5fbbfd429b7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Shape.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Shape.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ShapeN.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ShapeN.java index 909c1856c05..30aa7445228 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ShapeN.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ShapeN.java @@ -33,7 +33,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Size.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Size.java index de1105b9012..c9101c05f84 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Size.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Size.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Slice.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Slice.java index d6d2496cfca..b175561fbae 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Slice.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Slice.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Snapshot.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Snapshot.java index 991318a0f6b..4252ea0dbc2 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Snapshot.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Snapshot.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SnapshotChunkDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SnapshotChunkDataset.java new file mode 100644 index 00000000000..deb1edbb387 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SnapshotChunkDataset.java @@ -0,0 +1,173 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import java.util.List; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.ndarray.Shape; +import org.tensorflow.op.Operands; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.TString; +import org.tensorflow.types.family.TType; + +/** + * The SnapshotChunkDataset operation + */ +@OpMetadata( + opType = SnapshotChunkDataset.OP_NAME, + inputsClass = SnapshotChunkDataset.Inputs.class +) +public final class SnapshotChunkDataset extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "SnapshotChunkDataset"; + + private Output handle; + + @SuppressWarnings("unchecked") + public SnapshotChunkDataset(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + handle = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new SnapshotChunkDataset operation. + * + * @param scope current scope + * @param chunkFile The chunkFile value + * @param outputTypes The value of the outputTypes attribute + * @param outputShapes The value of the outputShapes attribute + * @param options carries optional attribute values + * @return a new instance of SnapshotChunkDataset + */ + @Endpoint( + describeByClass = true + ) + public static SnapshotChunkDataset create(Scope scope, Operand chunkFile, + List> outputTypes, List outputShapes, Options... options) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "SnapshotChunkDataset"); + opBuilder.addInput(chunkFile.asOutput()); + opBuilder.setAttr("output_types", Operands.toDataTypes(outputTypes)); + Shape[] outputShapesArray = new Shape[outputShapes.size()]; + for (int i = 0 ; i < outputShapesArray.length ; i++) { + outputShapesArray[i] = outputShapes.get(i); + } + opBuilder.setAttr("output_shapes", outputShapesArray); + if (options != null) { + for (Options opts : options) { + if (opts.compression != null) { + opBuilder.setAttr("compression", opts.compression); + } + } + } + return new SnapshotChunkDataset(opBuilder.build()); + } + + /** + * Sets the compression option. + * + * @param compression the compression option + * @return this Options instance. + */ + public static Options compression(String compression) { + return new Options().compression(compression); + } + + /** + * Gets handle. + * + * @return handle. + */ + public Output handle() { + return handle; + } + + @Override + @SuppressWarnings("unchecked") + public Output asOutput() { + return (Output) handle; + } + + /** + * Optional attributes for {@link org.tensorflow.op.core.SnapshotChunkDataset} + */ + public static class Options { + private String compression; + + private Options() { + } + + /** + * Sets the compression option. + * + * @param compression the compression option + * @return this Options instance. + */ + public Options compression(String compression) { + this.compression = compression; + return this; + } + } + + @OpInputsMetadata( + outputsClass = SnapshotChunkDataset.class + ) + public static class Inputs extends RawOpInputs { + /** + * The chunkFile input + */ + public final Operand chunkFile; + + /** + * The outputTypes attribute + */ + public final DataType[] outputTypes; + + /** + * The outputShapes attribute + */ + public final Shape[] outputShapes; + + /** + * The compression attribute + */ + public final String compression; + + public Inputs(GraphOperation op) { + super(new SnapshotChunkDataset(op), op, Arrays.asList("output_types", "output_shapes", "compression")); + int inputIndex = 0; + chunkFile = (Operand) op.input(inputIndex++); + outputTypes = op.attributes().getAttrTypeList("output_types"); + outputShapes = op.attributes().getAttrShapeList("output_shapes"); + compression = op.attributes().getAttrString("compression"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SpaceToBatchNd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SpaceToBatchNd.java index 908b59ded19..1e63dbfb916 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SpaceToBatchNd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SpaceToBatchNd.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SparseSegmentMeanGradV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SparseSegmentMeanGradV2.java new file mode 100644 index 00000000000..aaceca31934 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SparseSegmentMeanGradV2.java @@ -0,0 +1,164 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.op.annotation.Operator; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.TInt32; +import org.tensorflow.types.family.TNumber; + +/** + * Computes gradients for SparseSegmentMean. + * Returns tensor "output" with same shape as grad, except for dimension 0 whose + * value is the number of unique indexes in "indices". Also returns vector + * "sorted_unique_indices" containing the corresponding indexes from "indices". + * + * @param data type for {@code output} output + * + * @param data type for {@code sorted_unique_indices} output + */ +@OpMetadata( + opType = SparseSegmentMeanGradV2.OP_NAME, + inputsClass = SparseSegmentMeanGradV2.Inputs.class +) +@Operator +public final class SparseSegmentMeanGradV2 extends RawOp { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "SparseSegmentMeanGradV2"; + + private Output output; + + private Output sortedUniqueIndices; + + public SparseSegmentMeanGradV2(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + sortedUniqueIndices = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new SparseSegmentMeanGradV2 operation. + * + * @param scope current scope + * @param grad gradient propagated to the SparseSegmentMean op. + * @param indices indices passed to the corresponding SparseSegmentMean op. + * @param segmentIds segment_ids passed to the corresponding SparseSegmentMean op. + * @param denseOutputDim0 dimension 0 of "data" passed to SparseSegmentMean op. + * @param data type for {@code SparseSegmentMeanGradV2} output and operands + * @param data type for {@code SparseSegmentMeanGradV2} output and operands + * @return a new instance of SparseSegmentMeanGradV2 + */ + @Endpoint( + describeByClass = true + ) + public static SparseSegmentMeanGradV2 create( + Scope scope, Operand grad, Operand indices, Operand segmentIds, + Operand denseOutputDim0) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "SparseSegmentMeanGradV2"); + opBuilder.addInput(grad.asOutput()); + opBuilder.addInput(indices.asOutput()); + opBuilder.addInput(segmentIds.asOutput()); + opBuilder.addInput(denseOutputDim0.asOutput()); + return new SparseSegmentMeanGradV2<>(opBuilder.build()); + } + + /** + * Gets output. + * + * @return output. + */ + public Output output() { + return output; + } + + /** + * Gets sortedUniqueIndices. + * + * @return sortedUniqueIndices. + */ + public Output sortedUniqueIndices() { + return sortedUniqueIndices; + } + + @OpInputsMetadata( + outputsClass = SparseSegmentMeanGradV2.class + ) + public static class Inputs extends RawOpInputs> { + /** + * gradient propagated to the SparseSegmentMean op. + */ + public final Operand grad; + + /** + * indices passed to the corresponding SparseSegmentMean op. + */ + public final Operand indices; + + /** + * segment_ids passed to the corresponding SparseSegmentMean op. + */ + public final Operand segmentIds; + + /** + * dimension 0 of "data" passed to SparseSegmentMean op. + */ + public final Operand denseOutputDim0; + + /** + * The T attribute + */ + public final DataType T; + + /** + * The Tidx attribute + */ + public final DataType Tidx; + + /** + * The Tsegmentids attribute + */ + public final DataType Tsegmentids; + + public Inputs(GraphOperation op) { + super(new SparseSegmentMeanGradV2<>(op), op, Arrays.asList("T", "Tidx", "Tsegmentids")); + int inputIndex = 0; + grad = (Operand) op.input(inputIndex++); + indices = (Operand) op.input(inputIndex++); + segmentIds = (Operand) op.input(inputIndex++); + denseOutputDim0 = (Operand) op.input(inputIndex++); + T = op.attributes().getAttrType("T"); + Tidx = op.attributes().getAttrType("Tidx"); + Tsegmentids = op.attributes().getAttrType("Tsegmentids"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SparseSegmentSqrtNGradV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SparseSegmentSqrtNGradV2.java new file mode 100644 index 00000000000..918cc05885e --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SparseSegmentSqrtNGradV2.java @@ -0,0 +1,164 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.op.annotation.Operator; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.TInt32; +import org.tensorflow.types.family.TNumber; + +/** + * Computes gradients for SparseSegmentSqrtN. + * Returns tensor "output" with same shape as grad, except for dimension 0 whose + * value is the number of unique indexes in "indices". Also returns vector + * "sorted_unique_indices" containing the corresponding indexes from "indices". + * + * @param data type for {@code output} output + * + * @param data type for {@code sorted_unique_indices} output + */ +@OpMetadata( + opType = SparseSegmentSqrtNGradV2.OP_NAME, + inputsClass = SparseSegmentSqrtNGradV2.Inputs.class +) +@Operator +public final class SparseSegmentSqrtNGradV2 extends RawOp { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "SparseSegmentSqrtNGradV2"; + + private Output output; + + private Output sortedUniqueIndices; + + public SparseSegmentSqrtNGradV2(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + sortedUniqueIndices = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new SparseSegmentSqrtNGradV2 operation. + * + * @param scope current scope + * @param grad gradient propagated to the SparseSegmentSqrtN op. + * @param indices indices passed to the corresponding SparseSegmentSqrtN op. + * @param segmentIds segment_ids passed to the corresponding SparseSegmentSqrtN op. + * @param denseOutputDim0 dimension 0 of "data" passed to SparseSegmentSqrtN op. + * @param data type for {@code SparseSegmentSqrtNGradV2} output and operands + * @param data type for {@code SparseSegmentSqrtNGradV2} output and operands + * @return a new instance of SparseSegmentSqrtNGradV2 + */ + @Endpoint( + describeByClass = true + ) + public static SparseSegmentSqrtNGradV2 create( + Scope scope, Operand grad, Operand indices, Operand segmentIds, + Operand denseOutputDim0) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "SparseSegmentSqrtNGradV2"); + opBuilder.addInput(grad.asOutput()); + opBuilder.addInput(indices.asOutput()); + opBuilder.addInput(segmentIds.asOutput()); + opBuilder.addInput(denseOutputDim0.asOutput()); + return new SparseSegmentSqrtNGradV2<>(opBuilder.build()); + } + + /** + * Gets output. + * + * @return output. + */ + public Output output() { + return output; + } + + /** + * Gets sortedUniqueIndices. + * + * @return sortedUniqueIndices. + */ + public Output sortedUniqueIndices() { + return sortedUniqueIndices; + } + + @OpInputsMetadata( + outputsClass = SparseSegmentSqrtNGradV2.class + ) + public static class Inputs extends RawOpInputs> { + /** + * gradient propagated to the SparseSegmentSqrtN op. + */ + public final Operand grad; + + /** + * indices passed to the corresponding SparseSegmentSqrtN op. + */ + public final Operand indices; + + /** + * segment_ids passed to the corresponding SparseSegmentSqrtN op. + */ + public final Operand segmentIds; + + /** + * dimension 0 of "data" passed to SparseSegmentSqrtN op. + */ + public final Operand denseOutputDim0; + + /** + * The T attribute + */ + public final DataType T; + + /** + * The Tidx attribute + */ + public final DataType Tidx; + + /** + * The Tsegmentids attribute + */ + public final DataType Tsegmentids; + + public Inputs(GraphOperation op) { + super(new SparseSegmentSqrtNGradV2<>(op), op, Arrays.asList("T", "Tidx", "Tsegmentids")); + int inputIndex = 0; + grad = (Operand) op.input(inputIndex++); + indices = (Operand) op.input(inputIndex++); + segmentIds = (Operand) op.input(inputIndex++); + denseOutputDim0 = (Operand) op.input(inputIndex++); + T = op.attributes().getAttrType("T"); + Tidx = op.attributes().getAttrType("Tidx"); + Tsegmentids = op.attributes().getAttrType("Tsegmentids"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SparseSegmentSumGradV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SparseSegmentSumGradV2.java new file mode 100644 index 00000000000..4438fc50e10 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SparseSegmentSumGradV2.java @@ -0,0 +1,164 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.op.annotation.Operator; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.TInt32; +import org.tensorflow.types.family.TNumber; + +/** + * Computes gradients for SparseSegmentSum. + * Returns tensor "output" with same shape as grad, except for dimension 0 whose + * value is the number of unique indexes in "indices". Also returns vector + * "sorted_unique_indices" containing the corresponding indexes from "indices". + * + * @param data type for {@code output} output + * + * @param data type for {@code sorted_unique_indices} output + */ +@OpMetadata( + opType = SparseSegmentSumGradV2.OP_NAME, + inputsClass = SparseSegmentSumGradV2.Inputs.class +) +@Operator +public final class SparseSegmentSumGradV2 extends RawOp { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "SparseSegmentSumGradV2"; + + private Output output; + + private Output sortedUniqueIndices; + + public SparseSegmentSumGradV2(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + sortedUniqueIndices = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new SparseSegmentSumGradV2 operation. + * + * @param scope current scope + * @param grad gradient propagated to the SparseSegmentSum op. + * @param indices indices passed to the corresponding SparseSegmentSum op. + * @param segmentIds segment_ids passed to the corresponding SparseSegmentSum op. + * @param denseOutputDim0 dimension 0 of "data" passed to SparseSegmentSum op. + * @param data type for {@code SparseSegmentSumGradV2} output and operands + * @param data type for {@code SparseSegmentSumGradV2} output and operands + * @return a new instance of SparseSegmentSumGradV2 + */ + @Endpoint( + describeByClass = true + ) + public static SparseSegmentSumGradV2 create( + Scope scope, Operand grad, Operand indices, Operand segmentIds, + Operand denseOutputDim0) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "SparseSegmentSumGradV2"); + opBuilder.addInput(grad.asOutput()); + opBuilder.addInput(indices.asOutput()); + opBuilder.addInput(segmentIds.asOutput()); + opBuilder.addInput(denseOutputDim0.asOutput()); + return new SparseSegmentSumGradV2<>(opBuilder.build()); + } + + /** + * Gets output. + * + * @return output. + */ + public Output output() { + return output; + } + + /** + * Gets sortedUniqueIndices. + * + * @return sortedUniqueIndices. + */ + public Output sortedUniqueIndices() { + return sortedUniqueIndices; + } + + @OpInputsMetadata( + outputsClass = SparseSegmentSumGradV2.class + ) + public static class Inputs extends RawOpInputs> { + /** + * gradient propagated to the SparseSegmentSum op. + */ + public final Operand grad; + + /** + * indices passed to the corresponding SparseSegmentSum op. + */ + public final Operand indices; + + /** + * segment_ids passed to the corresponding SparseSegmentSum op. + */ + public final Operand segmentIds; + + /** + * dimension 0 of "data" passed to SparseSegmentSum op. + */ + public final Operand denseOutputDim0; + + /** + * The T attribute + */ + public final DataType T; + + /** + * The Tidx attribute + */ + public final DataType Tidx; + + /** + * The Tsegmentids attribute + */ + public final DataType Tsegmentids; + + public Inputs(GraphOperation op) { + super(new SparseSegmentSumGradV2<>(op), op, Arrays.asList("T", "Tidx", "Tsegmentids")); + int inputIndex = 0; + grad = (Operand) op.input(inputIndex++); + indices = (Operand) op.input(inputIndex++); + segmentIds = (Operand) op.input(inputIndex++); + denseOutputDim0 = (Operand) op.input(inputIndex++); + T = op.attributes().getAttrType("T"); + Tidx = op.attributes().getAttrType("Tidx"); + Tsegmentids = op.attributes().getAttrType("Tsegmentids"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Split.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Split.java index 745895cd515..09791d812a2 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Split.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Split.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SplitDedupData.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SplitDedupData.java new file mode 100644 index 00000000000..34b57348832 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SplitDedupData.java @@ -0,0 +1,197 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.Operands; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.family.TNumber; +import org.tensorflow.types.family.TType; + +/** + * An op splits input deduplication data XLA tuple into integer and floating point + * tensors. + * Deduplication data is an XLA tuple, which consists of integer and floating point + * values. This op is to split these values into two groups for two types, and + * construct each group as one tensor to return. + * + * @param data type for {@code integer_tensor} output + * + * @param data type for {@code float_tensor} output + */ +@OpMetadata( + opType = SplitDedupData.OP_NAME, + inputsClass = SplitDedupData.Inputs.class +) +public final class SplitDedupData extends RawOp { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "SplitDedupData"; + + private Output integerTensor; + + private Output floatTensor; + + public SplitDedupData(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + integerTensor = operation.output(outputIdx++); + floatTensor = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new SplitDedupData operation. + * + * @param scope current scope + * @param input An XLA tuple including integer and float elements as deduplication data tuple. + * @param integerType integer_tensor type. Allowed types: int32, int64, uint32, uint64. + * @param floatType float_tensor type. Allowed types: half, bfloat16, float. + * @param tupleMask A serialized TensorProto string of output tuple mask. This mask is a 2-D tensor, + * with first column as tuple element type, and second column as span of this type. + * For example, an output tuple of (1, 2, 0.1, 3), its mask is [[0, 2], [1, 1], [0, + * 1]]. We expect only two types of elements: integer(0) and float(1). + * @param options carries optional attribute values + * @param data type for {@code SplitDedupData} output and operands + * @param data type for {@code SplitDedupData} output and operands + * @return a new instance of SplitDedupData + */ + @Endpoint( + describeByClass = true + ) + public static SplitDedupData create(Scope scope, + Operand input, Class integerType, Class floatType, String tupleMask, + Options... options) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "SplitDedupData"); + opBuilder.addInput(input.asOutput()); + opBuilder.setAttr("integer_type", Operands.toDataType(integerType)); + opBuilder.setAttr("float_type", Operands.toDataType(floatType)); + opBuilder.setAttr("tuple_mask", tupleMask); + if (options != null) { + for (Options opts : options) { + if (opts.config != null) { + opBuilder.setAttr("config", opts.config); + } + } + } + return new SplitDedupData<>(opBuilder.build()); + } + + /** + * Sets the config option. + * + * @param config the config option + * @return this Options instance. + */ + public static Options config(String config) { + return new Options().config(config); + } + + /** + * Gets integerTensor. + * A 1-D integer tensor, includes integer elements of deduplication data tuple. + * @return integerTensor. + */ + public Output integerTensor() { + return integerTensor; + } + + /** + * Gets floatTensor. + * A 1-D float tensor, includes float elements of deduplication data tuple. + * @return floatTensor. + */ + public Output floatTensor() { + return floatTensor; + } + + /** + * Optional attributes for {@link org.tensorflow.op.core.SplitDedupData} + */ + public static class Options { + private String config; + + private Options() { + } + + /** + * Sets the config option. + * + * @param config the config option + * @return this Options instance. + */ + public Options config(String config) { + this.config = config; + return this; + } + } + + @OpInputsMetadata( + outputsClass = SplitDedupData.class + ) + public static class Inputs extends RawOpInputs> { + /** + * An XLA tuple including integer and float elements as deduplication data tuple. + */ + public final Operand input; + + /** + * integer_tensor type. Allowed types: int32, int64, uint32, uint64. + */ + public final DataType integerType; + + /** + * float_tensor type. Allowed types: half, bfloat16, float. + */ + public final DataType floatType; + + /** + * A serialized TensorProto string of output tuple mask. This mask is a 2-D tensor, + * with first column as tuple element type, and second column as span of this type. + * For example, an output tuple of (1, 2, 0.1, 3), its mask is [[0, 2], [1, 1], [0, + * 1]]. We expect only two types of elements: integer(0) and float(1). + */ + public final String tupleMask; + + /** + * The config attribute + */ + public final String config; + + public Inputs(GraphOperation op) { + super(new SplitDedupData<>(op), op, Arrays.asList("integer_type", "float_type", "tuple_mask", "config")); + int inputIndex = 0; + input = (Operand) op.input(inputIndex++); + integerType = op.attributes().getAttrType("integer_type"); + floatType = op.attributes().getAttrType("float_type"); + tupleMask = op.attributes().getAttrString("tuple_mask"); + config = op.attributes().getAttrString("config"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SplitV.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SplitV.java index 3ad8bd8995d..776e784038b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SplitV.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SplitV.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Squeeze.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Squeeze.java index db0a5a3fdc0..4017de758b2 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Squeeze.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Squeeze.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Stack.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Stack.java index c31e7c121ec..798fa87a013 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Stack.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Stack.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Stage.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Stage.java index bfbb764125a..b303cb9aa6b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Stage.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Stage.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; /** * Stage values similar to a lightweight Enqueue. diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StageClear.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StageClear.java index cfd3573a8bb..cb8b7ae4fab 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StageClear.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StageClear.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StagePeek.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StagePeek.java index 8d4bf4ff7ac..5c82b0c2703 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StagePeek.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StagePeek.java @@ -33,7 +33,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StageSize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StageSize.java index 4c393228057..12a555c1238 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StageSize.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StageSize.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatefulCase.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatefulCase.java index 626591efc43..614a1733a2d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatefulCase.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatefulCase.java @@ -35,7 +35,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatefulIf.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatefulIf.java index 83d34d716af..00925fa1d5c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatefulIf.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatefulIf.java @@ -35,7 +35,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatefulPartitionedCall.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatefulPartitionedCall.java index 220e0b619b1..33a737c2032 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatefulPartitionedCall.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatefulPartitionedCall.java @@ -34,7 +34,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** @@ -45,7 +45,7 @@ inputsClass = StatefulPartitionedCall.Inputs.class ) @Operator -public final class StatefulPartitionedCall extends RawOp implements PartitionedCall { +public final class StatefulPartitionedCall extends RawOp implements Iterable> { /** * The name of this op, as known by TensorFlow core engine */ @@ -82,13 +82,13 @@ public StatefulPartitionedCall(Operation operation) { describeByClass = true ) public static StatefulPartitionedCall create(Scope scope, Iterable> args, - List> Tout, ConcreteFunction f, PartitionedCall.Options... options) { + List> Tout, ConcreteFunction f, Options... options) { OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "StatefulPartitionedCall"); opBuilder.addInputList(Operands.asOutputs(args)); opBuilder.setAttr("Tout", Operands.toDataTypes(Tout)); opBuilder.setAttr("f", f); if (options != null) { - for (PartitionedCall.Options opts : options) { + for (Options opts : options) { if (opts.config != null) { opBuilder.setAttr("config", opts.config); } @@ -103,12 +103,41 @@ public static StatefulPartitionedCall create(Scope scope, Iterable> a return new StatefulPartitionedCall(opBuilder.build()); } + /** + * Sets the config option. + * + * @param config the config option + * @return this Options instance. + */ + public static Options config(String config) { + return new Options().config(config); + } + + /** + * Sets the configProto option. + * + * @param configProto the configProto option + * @return this Options instance. + */ + public static Options configProto(String configProto) { + return new Options().configProto(configProto); + } + + /** + * Sets the executorType option. + * + * @param executorType the executorType option + * @return this Options instance. + */ + public static Options executorType(String executorType) { + return new Options().executorType(executorType); + } + /** * Gets output. * A list of return values. * @return output. */ - @Override public List> output() { return output; } @@ -119,6 +148,53 @@ public Iterator> iterator() { return (Iterator) output.iterator(); } + /** + * Optional attributes for {@link org.tensorflow.op.core.StatefulPartitionedCall} + */ + public static class Options { + private String config; + + private String configProto; + + private String executorType; + + private Options() { + } + + /** + * Sets the config option. + * + * @param config the config option + * @return this Options instance. + */ + public Options config(String config) { + this.config = config; + return this; + } + + /** + * Sets the configProto option. + * + * @param configProto the configProto option + * @return this Options instance. + */ + public Options configProto(String configProto) { + this.configProto = configProto; + return this; + } + + /** + * Sets the executorType option. + * + * @param executorType the executorType option + * @return this Options instance. + */ + public Options executorType(String executorType) { + this.executorType = executorType; + return this; + } + } + @OpInputsMetadata( outputsClass = StatefulPartitionedCall.class ) diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatefulWhile.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatefulWhile.java index f3bea8c3c67..829b2f159b0 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatefulWhile.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatefulWhile.java @@ -35,7 +35,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatelessCase.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatelessCase.java index 17fc61919fb..8207b888206 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatelessCase.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatelessCase.java @@ -34,7 +34,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatelessIf.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatelessIf.java index f479cdff4c4..a4a4fdd0922 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatelessIf.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatelessIf.java @@ -35,7 +35,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatelessPartitionedCall.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatelessPartitionedCall.java deleted file mode 100644 index 60ab1669e37..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatelessPartitionedCall.java +++ /dev/null @@ -1,171 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.core; - -import java.util.Arrays; -import java.util.Iterator; -import java.util.List; -import org.tensorflow.ConcreteFunction; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.Operands; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TType; - -/** - * returns {@code f(inputs)}, where {@code f}'s body is placed and partitioned. - * Asynchronously executes a function, potentially across multiple devices but - * within a single process. The kernel places and partitions a given function's - * underlying graph, and executes each of the partitioned subgraphs as a function. - */ -@OpMetadata( - opType = StatelessPartitionedCall.OP_NAME, - inputsClass = StatelessPartitionedCall.Inputs.class -) -@Operator -public final class StatelessPartitionedCall extends RawOp implements PartitionedCall { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "PartitionedCall"; - - private List> output; - - @SuppressWarnings("unchecked") - public StatelessPartitionedCall(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - int outputLength = operation.outputListLength("output"); - output = Arrays.asList(operation.outputList(outputIdx, outputLength)); - outputIdx += outputLength; - } - - /** - * Factory method to create a class wrapping a new PartitionedCall operation. - * - * @param scope current scope - * @param args A list of input tensors. - * @param Tout A list of output types. - * @param f

-   *   A function that takes 'args', a list of tensors, and returns 'output',
-   *   another list of tensors. Input and output types are specified by 'Tin'
-   *   and 'Tout'. The function body of f will be placed and partitioned across
-   *   devices, setting this op apart from the regular Call op.
-   * 
- * @param options carries optional attribute values - * @return a new instance of StatelessPartitionedCall - */ - @Endpoint( - describeByClass = true - ) - public static StatelessPartitionedCall create(Scope scope, Iterable> args, - List> Tout, ConcreteFunction f, PartitionedCall.Options... options) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "StatelessPartitionedCall"); - opBuilder.addInputList(Operands.asOutputs(args)); - opBuilder.setAttr("Tout", Operands.toDataTypes(Tout)); - opBuilder.setAttr("f", f); - if (options != null) { - for (PartitionedCall.Options opts : options) { - if (opts.config != null) { - opBuilder.setAttr("config", opts.config); - } - if (opts.configProto != null) { - opBuilder.setAttr("config_proto", opts.configProto); - } - if (opts.executorType != null) { - opBuilder.setAttr("executor_type", opts.executorType); - } - } - } - return new StatelessPartitionedCall(opBuilder.build()); - } - - /** - * Gets output. - * A list of return values. - * @return output. - */ - @Override - public List> output() { - return output; - } - - @Override - @SuppressWarnings({"rawtypes", "unchecked"}) - public Iterator> iterator() { - return (Iterator) output.iterator(); - } - - @OpInputsMetadata( - outputsClass = StatelessPartitionedCall.class - ) - public static class Inputs extends RawOpInputs { - /** - * A list of input tensors. - */ - public final Iterable> args; - - /** - * A list of input types. - */ - public final DataType[] Tin; - - /** - * A list of output types. - */ - public final DataType[] Tout; - - /** - * The config attribute - */ - public final String config; - - /** - * The configProto attribute - */ - public final String configProto; - - /** - * The executorType attribute - */ - public final String executorType; - - public Inputs(GraphOperation op) { - super(new StatelessPartitionedCall(op), op, Arrays.asList("Tin", "Tout", "config", "config_proto", "executor_type")); - int inputIndex = 0; - int argsLength = op.inputListLength("args"); - args = Arrays.asList((Operand[]) op.inputList(inputIndex, argsLength)); - inputIndex += argsLength; - Tin = op.attributes().getAttrTypeList("Tin"); - Tout = op.attributes().getAttrTypeList("Tout"); - config = op.attributes().getAttrString("config"); - configProto = op.attributes().getAttrString("config_proto"); - executorType = op.attributes().getAttrString("executor_type"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatelessRandomGammaV3.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatelessRandomGammaV3.java new file mode 100644 index 00000000000..8331f4e9963 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatelessRandomGammaV3.java @@ -0,0 +1,156 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.TInt32; +import org.tensorflow.types.family.TNumber; +import org.tensorflow.types.family.TType; + +/** + * Outputs deterministic pseudorandom random numbers from a gamma distribution. + * Outputs random values from a gamma distribution. + *

The outputs are a deterministic function of the inputs. + * + * @param data type for {@code output} output + */ +@OpMetadata( + opType = StatelessRandomGammaV3.OP_NAME, + inputsClass = StatelessRandomGammaV3.Inputs.class +) +public final class StatelessRandomGammaV3 extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "StatelessRandomGammaV3"; + + private Output output; + + public StatelessRandomGammaV3(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new StatelessRandomGammaV3 operation. + * + * @param scope current scope + * @param shape The shape of the output tensor. + * @param key Key for the counter-based RNG algorithm (shape uint64[1]). + * @param counter Initial counter for the counter-based RNG algorithm (shape uint64[2] or uint64[1] depending on the algorithm). If a larger vector is given, only the needed portion on the left (i.e. [:N]) will be used. + * @param alg The RNG algorithm (shape int32[]). + * @param alpha The concentration of the gamma distribution. Shape must match the rightmost + * dimensions of {@code shape}. + * @param data type for {@code StatelessRandomGammaV3} output and operands + * @return a new instance of StatelessRandomGammaV3 + */ + @Endpoint( + describeByClass = true + ) + public static StatelessRandomGammaV3 create(Scope scope, + Operand shape, Operand key, + Operand counter, Operand alg, Operand alpha) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "StatelessRandomGammaV3"); + opBuilder.addInput(shape.asOutput()); + opBuilder.addInput(key.asOutput()); + opBuilder.addInput(counter.asOutput()); + opBuilder.addInput(alg.asOutput()); + opBuilder.addInput(alpha.asOutput()); + return new StatelessRandomGammaV3<>(opBuilder.build()); + } + + /** + * Gets output. + * Random values with specified shape. + * @return output. + */ + public Output output() { + return output; + } + + @Override + public Output asOutput() { + return output; + } + + @OpInputsMetadata( + outputsClass = StatelessRandomGammaV3.class + ) + public static class Inputs extends RawOpInputs> { + /** + * The shape of the output tensor. + */ + public final Operand shape; + + /** + * Key for the counter-based RNG algorithm (shape uint64[1]). + */ + public final Operand key; + + /** + * Initial counter for the counter-based RNG algorithm (shape uint64[2] or uint64[1] depending on the algorithm). If a larger vector is given, only the needed portion on the left (i.e. [:N]) will be used. + */ + public final Operand counter; + + /** + * The RNG algorithm (shape int32[]). + */ + public final Operand alg; + + /** + * The concentration of the gamma distribution. Shape must match the rightmost + * dimensions of {@code shape}. + */ + public final Operand alpha; + + /** + * The type of the output. + */ + public final DataType dtype; + + /** + * The shapeDtype attribute + */ + public final DataType shapeDtype; + + public Inputs(GraphOperation op) { + super(new StatelessRandomGammaV3<>(op), op, Arrays.asList("dtype", "shape_dtype")); + int inputIndex = 0; + shape = (Operand) op.input(inputIndex++); + key = (Operand) op.input(inputIndex++); + counter = (Operand) op.input(inputIndex++); + alg = (Operand) op.input(inputIndex++); + alpha = (Operand) op.input(inputIndex++); + dtype = op.attributes().getAttrType("dtype"); + shapeDtype = op.attributes().getAttrType("shape_dtype"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatelessWhile.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatelessWhile.java index c3a7cabf06c..1a6763ea537 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatelessWhile.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StatelessWhile.java @@ -35,7 +35,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StochasticCastToInt.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StochasticCastToInt.java new file mode 100644 index 00000000000..c36d2281b4f --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StochasticCastToInt.java @@ -0,0 +1,149 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.Operands; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.TInt32; +import org.tensorflow.types.family.TNumber; +import org.tensorflow.types.family.TType; + +/** + * Stochastically cast a given tensor from floats to ints. + * The values are cast with a deterministic pseudo-random tensor from a uniform distribution generated from user given key, counter, algorithm. Values will saturate if out of the specified integer type range, and will become zero if inputs are NaN. + *

The outputs are a deterministic function of {@code input}, {@code key}, {@code counter}, {@code alg}. + * + * @param data type for {@code output} output + */ +@OpMetadata( + opType = StochasticCastToInt.OP_NAME, + inputsClass = StochasticCastToInt.Inputs.class +) +public final class StochasticCastToInt extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "StochasticCastToInt"; + + private Output output; + + public StochasticCastToInt(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new StochasticCastToInt operation. + * + * @param scope current scope + * @param input The operand to stochastically cast to int. + * @param key Key for the counter-based RNG algorithm (shape uint64[1]). + * @param counter Initial counter for the counter-based RNG algorithm (shape uint64[2] or uint64[1] depending on the algorithm). If a larger vector is given, only the needed portion on the left (i.e. [:N]) will be used. + * @param alg The RNG algorithm (shape int32[]). + * @param Tout The type of the output. + * @param data type for {@code StochasticCastToInt} output and operands + * @return a new instance of StochasticCastToInt + */ + @Endpoint( + describeByClass = true + ) + public static StochasticCastToInt create(Scope scope, + Operand input, Operand key, + Operand counter, Operand alg, Class Tout) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "StochasticCastToInt"); + opBuilder.addInput(input.asOutput()); + opBuilder.addInput(key.asOutput()); + opBuilder.addInput(counter.asOutput()); + opBuilder.addInput(alg.asOutput()); + opBuilder.setAttr("Tout", Operands.toDataType(Tout)); + return new StochasticCastToInt<>(opBuilder.build()); + } + + /** + * Gets output. + * The cast result with the same shape as the input. + * @return output. + */ + public Output output() { + return output; + } + + @Override + public Output asOutput() { + return output; + } + + @OpInputsMetadata( + outputsClass = StochasticCastToInt.class + ) + public static class Inputs extends RawOpInputs> { + /** + * The operand to stochastically cast to int. + */ + public final Operand input; + + /** + * Key for the counter-based RNG algorithm (shape uint64[1]). + */ + public final Operand key; + + /** + * Initial counter for the counter-based RNG algorithm (shape uint64[2] or uint64[1] depending on the algorithm). If a larger vector is given, only the needed portion on the left (i.e. [:N]) will be used. + */ + public final Operand counter; + + /** + * The RNG algorithm (shape int32[]). + */ + public final Operand alg; + + /** + * The type of the input. + */ + public final DataType Tin; + + /** + * The type of the output. + */ + public final DataType Tout; + + public Inputs(GraphOperation op) { + super(new StochasticCastToInt<>(op), op, Arrays.asList("Tin", "Tout")); + int inputIndex = 0; + input = (Operand) op.input(inputIndex++); + key = (Operand) op.input(inputIndex++); + counter = (Operand) op.input(inputIndex++); + alg = (Operand) op.input(inputIndex++); + Tin = op.attributes().getAttrType("Tin"); + Tout = op.attributes().getAttrType("Tout"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StopGradient.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StopGradient.java index 6e05f0ed69f..f28ecab508a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StopGradient.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StopGradient.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StridedSlice.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StridedSlice.java index 4ad2dc7297a..76f2f22a816 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StridedSlice.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StridedSlice.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StridedSliceAssign.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StridedSliceAssign.java index 87818110422..d67ac99adaf 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StridedSliceAssign.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StridedSliceAssign.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StridedSliceGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StridedSliceGrad.java index b8c603941f4..e170ae9f782 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StridedSliceGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/StridedSliceGrad.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Sum.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Sum.java index ddfd9cbf2ac..b808cae92d2 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Sum.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Sum.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SwitchCond.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SwitchCond.java index d15e42a777e..765842fd67d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SwitchCond.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SwitchCond.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SyncDevice.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SyncDevice.java new file mode 100644 index 00000000000..8a7e39783b7 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/SyncDevice.java @@ -0,0 +1,73 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; + +/** + * Synchronizes the device this op is run on. + * Only GPU ops are asynchrous in TensorFlow, and so this only has an effect when + * run on GPUs. On GPUs, this op synchronizes the GPU's compute stream. + */ +@OpMetadata( + opType = SyncDevice.OP_NAME, + inputsClass = SyncDevice.Inputs.class +) +public final class SyncDevice extends RawOp { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "SyncDevice"; + + public SyncDevice(Operation operation) { + super(operation, OP_NAME); + } + + /** + * Factory method to create a class wrapping a new SyncDevice operation. + * + * @param scope current scope + * @return a new instance of SyncDevice + */ + @Endpoint( + describeByClass = true + ) + public static SyncDevice create(Scope scope) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "SyncDevice"); + return new SyncDevice(opBuilder.build()); + } + + @OpInputsMetadata( + outputsClass = SyncDevice.class + ) + public static class Inputs extends RawOpInputs { + public Inputs(GraphOperation op) { + super(new SyncDevice(op), op, Arrays.asList()); + int inputIndex = 0; + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TFRecordDatasetV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TFRecordDatasetV2.java new file mode 100644 index 00000000000..f5b39d3505e --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TFRecordDatasetV2.java @@ -0,0 +1,183 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.types.TInt64; +import org.tensorflow.types.TString; +import org.tensorflow.types.family.TType; + +/** + * Creates a dataset that emits the records from one or more TFRecord files. + */ +@OpMetadata( + opType = TFRecordDatasetV2.OP_NAME, + inputsClass = TFRecordDatasetV2.Inputs.class +) +public final class TFRecordDatasetV2 extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "TFRecordDatasetV2"; + + private Output handle; + + @SuppressWarnings("unchecked") + public TFRecordDatasetV2(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + handle = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new TFRecordDatasetV2 operation. + * + * @param scope current scope + * @param filenames A scalar or vector containing the name(s) of the file(s) to be + * read. + * @param compressionType A scalar containing either (i) the empty string (no + * compression), (ii) "ZLIB", or (iii) "GZIP". + * @param bufferSize A scalar representing the number of bytes to buffer. A value of + * 0 means no buffering will be performed. + * @param byteOffsets A scalar or vector containing the number of bytes for each file + * that will be skipped prior to reading. + * @param options carries optional attribute values + * @return a new instance of TFRecordDatasetV2 + */ + @Endpoint( + describeByClass = true + ) + public static TFRecordDatasetV2 create(Scope scope, Operand filenames, + Operand compressionType, Operand bufferSize, Operand byteOffsets, + Options... options) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "TFRecordDatasetV2"); + opBuilder.addInput(filenames.asOutput()); + opBuilder.addInput(compressionType.asOutput()); + opBuilder.addInput(bufferSize.asOutput()); + opBuilder.addInput(byteOffsets.asOutput()); + if (options != null) { + for (Options opts : options) { + if (opts.metadata != null) { + opBuilder.setAttr("metadata", opts.metadata); + } + } + } + return new TFRecordDatasetV2(opBuilder.build()); + } + + /** + * Sets the metadata option. + * + * @param metadata the metadata option + * @return this Options instance. + */ + public static Options metadata(String metadata) { + return new Options().metadata(metadata); + } + + /** + * Gets handle. + * + * @return handle. + */ + public Output handle() { + return handle; + } + + @Override + @SuppressWarnings("unchecked") + public Output asOutput() { + return (Output) handle; + } + + /** + * Optional attributes for {@link org.tensorflow.op.core.TFRecordDatasetV2} + */ + public static class Options { + private String metadata; + + private Options() { + } + + /** + * Sets the metadata option. + * + * @param metadata the metadata option + * @return this Options instance. + */ + public Options metadata(String metadata) { + this.metadata = metadata; + return this; + } + } + + @OpInputsMetadata( + outputsClass = TFRecordDatasetV2.class + ) + public static class Inputs extends RawOpInputs { + /** + * A scalar or vector containing the name(s) of the file(s) to be + * read. + */ + public final Operand filenames; + + /** + * A scalar containing either (i) the empty string (no + * compression), (ii) "ZLIB", or (iii) "GZIP". + */ + public final Operand compressionType; + + /** + * A scalar representing the number of bytes to buffer. A value of + * 0 means no buffering will be performed. + */ + public final Operand bufferSize; + + /** + * A scalar or vector containing the number of bytes for each file + * that will be skipped prior to reading. + */ + public final Operand byteOffsets; + + /** + * The metadata attribute + */ + public final String metadata; + + public Inputs(GraphOperation op) { + super(new TFRecordDatasetV2(op), op, Arrays.asList("metadata")); + int inputIndex = 0; + filenames = (Operand) op.input(inputIndex++); + compressionType = (Operand) op.input(inputIndex++); + bufferSize = (Operand) op.input(inputIndex++); + byteOffsets = (Operand) op.input(inputIndex++); + metadata = op.attributes().getAttrString("metadata"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TPUPartitionedInputV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TPUPartitionedInputV2.java new file mode 100644 index 00000000000..958185a4cec --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TPUPartitionedInputV2.java @@ -0,0 +1,174 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import java.util.List; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.Operands; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.family.TType; + +/** + * An op that groups a list of partitioned inputs together. Supports ND sharding. + * + * @param data type for {@code output} output + */ +@OpMetadata( + opType = TPUPartitionedInputV2.OP_NAME, + inputsClass = TPUPartitionedInputV2.Inputs.class +) +public final class TPUPartitionedInputV2 extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "TPUPartitionedInputV2"; + + private Output output; + + public TPUPartitionedInputV2(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new TPUPartitionedInputV2 operation. + * + * @param scope current scope + * @param inputs A list of partitioned inputs which must have the same shape. + * @param partitionDims A list of integers describing how each dimension is partitioned. Emptiness + * indicates the inputs are replicated. + * @param options carries optional attribute values + * @param data type for {@code TPUPartitionedInputV2} output and operands + * @return a new instance of TPUPartitionedInputV2 + */ + @Endpoint( + describeByClass = true + ) + public static TPUPartitionedInputV2 create(Scope scope, + Iterable> inputs, List partitionDims, Options... options) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "TPUPartitionedInputV2"); + opBuilder.addInputList(Operands.asOutputs(inputs)); + long[] partitionDimsArray = new long[partitionDims.size()]; + for (int i = 0 ; i < partitionDimsArray.length ; i++) { + partitionDimsArray[i] = partitionDims.get(i); + } + opBuilder.setAttr("partition_dims", partitionDimsArray); + if (options != null) { + for (Options opts : options) { + if (opts.isPacked != null) { + opBuilder.setAttr("is_packed", opts.isPacked); + } + } + } + return new TPUPartitionedInputV2<>(opBuilder.build()); + } + + /** + * Sets the isPacked option. + * + * @param isPacked Indicates whether the input is a packed resource. + * @return this Options instance. + */ + public static Options isPacked(Boolean isPacked) { + return new Options().isPacked(isPacked); + } + + /** + * Gets output. + * A handle which represents the full shape of partitioned tensors. + * @return output. + */ + public Output output() { + return output; + } + + @Override + public Output asOutput() { + return output; + } + + /** + * Optional attributes for {@link org.tensorflow.op.core.TPUPartitionedInputV2} + */ + public static class Options { + private Boolean isPacked; + + private Options() { + } + + /** + * Sets the isPacked option. + * + * @param isPacked Indicates whether the input is a packed resource. + * @return this Options instance. + */ + public Options isPacked(Boolean isPacked) { + this.isPacked = isPacked; + return this; + } + } + + @OpInputsMetadata( + outputsClass = TPUPartitionedInputV2.class + ) + public static class Inputs extends RawOpInputs> { + /** + * A list of partitioned inputs which must have the same shape. + */ + public final Iterable> inputs; + + /** + * The T attribute + */ + public final DataType T; + + /** + * A list of integers describing how each dimension is partitioned. Emptiness + * indicates the inputs are replicated. + */ + public final long[] partitionDims; + + /** + * Indicates whether the input is a packed resource. + */ + public final boolean isPacked; + + public Inputs(GraphOperation op) { + super(new TPUPartitionedInputV2<>(op), op, Arrays.asList("T", "partition_dims", "is_packed")); + int inputIndex = 0; + int inputsLength = op.inputListLength("inputs"); + inputs = Arrays.asList((Operand[]) op.inputList(inputIndex, inputsLength)); + inputIndex += inputsLength; + T = op.attributes().getAttrType("T"); + partitionDims = op.attributes().getAttrIntList("partition_dims"); + isPacked = op.attributes().getAttrBool("is_packed"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TPUPartitionedOutputV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TPUPartitionedOutputV2.java new file mode 100644 index 00000000000..507eb29eeea --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TPUPartitionedOutputV2.java @@ -0,0 +1,136 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import java.util.Iterator; +import java.util.List; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.op.annotation.Operator; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.family.TType; + +/** + * An op that demultiplexes a tensor to be sharded by XLA to a list of partitioned + * outputs outside the XLA computation. Supports ND sharding. + * + * @param data type for {@code output} output + */ +@OpMetadata( + opType = TPUPartitionedOutputV2.OP_NAME, + inputsClass = TPUPartitionedOutputV2.Inputs.class +) +@Operator +public final class TPUPartitionedOutputV2 extends RawOp implements Iterable> { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "TPUPartitionedOutputV2"; + + private List> output; + + @SuppressWarnings("unchecked") + public TPUPartitionedOutputV2(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + int outputLength = operation.outputListLength("output"); + output = Arrays.asList((Output[]) operation.outputList(outputIdx, outputLength)); + outputIdx += outputLength; + } + + /** + * Factory method to create a class wrapping a new TPUPartitionedOutputV2 operation. + * + * @param scope current scope + * @param inputs A tensor which represents the full shape of partitioned tensors. + * @param numSplits The value of the numSplits attribute + * @param partitionDims A list of integers describing how each dimension is partitioned. Emptiness + * indicates the inputs are replicated. + * @param data type for {@code TPUPartitionedOutputV2} output and operands + * @return a new instance of TPUPartitionedOutputV2 + */ + @Endpoint( + describeByClass = true + ) + public static TPUPartitionedOutputV2 create(Scope scope, Operand inputs, + Long numSplits, List partitionDims) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "TPUPartitionedOutputV2"); + opBuilder.addInput(inputs.asOutput()); + opBuilder.setAttr("num_splits", numSplits); + long[] partitionDimsArray = new long[partitionDims.size()]; + for (int i = 0 ; i < partitionDimsArray.length ; i++) { + partitionDimsArray[i] = partitionDims.get(i); + } + opBuilder.setAttr("partition_dims", partitionDimsArray); + return new TPUPartitionedOutputV2<>(opBuilder.build()); + } + + /** + * Gets output. + * A list of partitioned outputs which have the same shape. + * @return output. + */ + public List> output() { + return output; + } + + @Override + @SuppressWarnings({"rawtypes", "unchecked"}) + public Iterator> iterator() { + return (Iterator) output.iterator(); + } + + @OpInputsMetadata( + outputsClass = TPUPartitionedOutputV2.class + ) + public static class Inputs extends RawOpInputs> { + /** + * A tensor which represents the full shape of partitioned tensors. + */ + public final Operand inputs; + + /** + * The T attribute + */ + public final DataType T; + + /** + * A list of integers describing how each dimension is partitioned. Emptiness + * indicates the inputs are replicated. + */ + public final long[] partitionDims; + + public Inputs(GraphOperation op) { + super(new TPUPartitionedOutputV2<>(op), op, Arrays.asList("T", "partition_dims")); + int inputIndex = 0; + inputs = (Operand) op.input(inputIndex++); + T = op.attributes().getAttrType("T"); + partitionDims = op.attributes().getAttrIntList("partition_dims"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TemporaryVariable.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TemporaryVariable.java index cd3e212511a..65a1bf29bf5 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TemporaryVariable.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TemporaryVariable.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArray.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArray.java index ddb1d78c210..8e6c979a9bf 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArray.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArray.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayConcat.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayConcat.java index fd0b2134e75..90cd944898d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayConcat.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayConcat.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; @@ -44,7 +44,9 @@ * (n0 x d0 x d1 x ...), (n1 x d0 x d1 x ...), ..., (n(T-1) x d0 x d1 x ...) *

*

and concatenates them into a Tensor of shape: - *

{@code (n0 + n1 + ... + n(T-1) x d0 x d1 x ...)} + *

+ * (n0 + n1 + ... + n(T-1) x d0 x d1 x ...)
+ * 
*

All elements must have the same shape (excepting the first dimension). * * @param data type for {@code value} output diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayGather.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayGather.java index b9f7c422e46..857b7c0f31a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayGather.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayGather.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayPack.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayPack.java index 1279d61c43d..5707da48e37 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayPack.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayPack.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TString; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayRead.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayRead.java index 64532830061..7f58e59731b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayRead.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayRead.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayScatter.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayScatter.java index 3e0a2b65d42..bcbaeb9d63a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayScatter.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayScatter.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArraySplit.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArraySplit.java index c55b678fb19..8407c4cfa80 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArraySplit.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArraySplit.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; @@ -38,14 +38,22 @@ /** * Split the data from the input value into TensorArray elements. * Assuming that {@code lengths} takes on values - *

{@code (n0, n1, ..., n(T-1))} + *

+ * (n0, n1, ..., n(T-1))
+ * 
*

and that {@code value} has shape - *

{@code (n0 + n1 + ... + n(T-1) x d0 x d1 x ...)}, + *

+ * (n0 + n1 + ... + n(T-1) x d0 x d1 x ...),
+ * 
*

this splits values into a TensorArray with T tensors. *

TensorArray index t will be the subtensor of values with starting position - *

{@code (n0 + n1 + ... + n(t-1), 0, 0, ...)} + *

+ * (n0 + n1 + ... + n(t-1), 0, 0, ...)
+ * 
*

and having size - *

{@code nt x d0 x d1 x ...} + *

+ * nt x d0 x d1 x ...
+ * 
*/ @OpMetadata( opType = TensorArraySplit.OP_NAME, diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayUnpack.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayUnpack.java index a3f05df2ace..be721bccb9c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayUnpack.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayUnpack.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TString; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayWrite.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayWrite.java index e99243f8a0b..871b67544fa 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayWrite.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorArrayWrite.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListConcat.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListConcat.java index d700cc1175c..d5d8c47f71c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListConcat.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListConcat.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListConcatLists.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListConcatLists.java index 6d5fd7470df..153a624eaf5 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListConcatLists.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListConcatLists.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListElementShape.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListElementShape.java index 0c23599fdc0..4d57f7ff367 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListElementShape.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListElementShape.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListFromTensor.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListFromTensor.java index 67539c56171..0bd8df47360 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListFromTensor.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListFromTensor.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListGather.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListGather.java index c088800495a..643919369b2 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListGather.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListGather.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListGetItem.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListGetItem.java index 3bfafa12dbe..455df240327 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListGetItem.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListGetItem.java @@ -31,12 +31,15 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; /** - * The TensorListGetItem operation + * Returns the item in the list with the given index. + * input_handle: the list + * index: the position in the list from which an element will be retrieved + * item: the element at that position * * @param data type for {@code item} output */ diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListPopBack.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListPopBack.java index 3f785aff587..e23c15f5c85 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListPopBack.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListPopBack.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListPushBack.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListPushBack.java index 642f5fa5a1a..6ceb7909f3b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListPushBack.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListPushBack.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListPushBackBatch.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListPushBackBatch.java index 6fc3c4eaf29..e5ce2ca5157 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListPushBackBatch.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListPushBackBatch.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListReserve.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListReserve.java index f16b9f1f09a..6f293b00f2b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListReserve.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListReserve.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListScatter.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListScatter.java index a4f9519e207..a7867825428 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListScatter.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListScatter.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListScatterIntoExistingList.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListScatterIntoExistingList.java index f471d523ca7..b534873a526 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListScatterIntoExistingList.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListScatterIntoExistingList.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListSetItem.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListSetItem.java index 2a4a17c4c61..8a6200a1e56 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListSetItem.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListSetItem.java @@ -30,12 +30,16 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; /** - * The TensorListSetItem operation + * Sets the index-th position of the list to contain the given tensor. + * input_handle: the list + * index: the position in the list to which the tensor will be assigned + * item: the element to be assigned to that position + * output_handle: the new list, with the element in the proper position */ @OpMetadata( opType = TensorListSetItem.OP_NAME, @@ -64,20 +68,38 @@ public TensorListSetItem(Operation operation) { * @param inputHandle The inputHandle value * @param index The index value * @param item The item value + * @param options carries optional attribute values * @return a new instance of TensorListSetItem */ @Endpoint( describeByClass = true ) public static TensorListSetItem create(Scope scope, Operand inputHandle, - Operand index, Operand item) { + Operand index, Operand item, Options... options) { OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "TensorListSetItem"); opBuilder.addInput(inputHandle.asOutput()); opBuilder.addInput(index.asOutput()); opBuilder.addInput(item.asOutput()); + if (options != null) { + for (Options opts : options) { + if (opts.resizeIfIndexOutOfBounds != null) { + opBuilder.setAttr("resize_if_index_out_of_bounds", opts.resizeIfIndexOutOfBounds); + } + } + } return new TensorListSetItem(opBuilder.build()); } + /** + * Sets the resizeIfIndexOutOfBounds option. + * + * @param resizeIfIndexOutOfBounds the resizeIfIndexOutOfBounds option + * @return this Options instance. + */ + public static Options resizeIfIndexOutOfBounds(Boolean resizeIfIndexOutOfBounds) { + return new Options().resizeIfIndexOutOfBounds(resizeIfIndexOutOfBounds); + } + /** * Gets outputHandle. * @@ -93,6 +115,27 @@ public Output asOutput() { return (Output) outputHandle; } + /** + * Optional attributes for {@link org.tensorflow.op.core.TensorListSetItem} + */ + public static class Options { + private Boolean resizeIfIndexOutOfBounds; + + private Options() { + } + + /** + * Sets the resizeIfIndexOutOfBounds option. + * + * @param resizeIfIndexOutOfBounds the resizeIfIndexOutOfBounds option + * @return this Options instance. + */ + public Options resizeIfIndexOutOfBounds(Boolean resizeIfIndexOutOfBounds) { + this.resizeIfIndexOutOfBounds = resizeIfIndexOutOfBounds; + return this; + } + } + @OpInputsMetadata( outputsClass = TensorListSetItem.class ) @@ -117,13 +160,19 @@ public static class Inputs extends RawOpInputs { */ public final DataType elementDtype; + /** + * The resizeIfIndexOutOfBounds attribute + */ + public final boolean resizeIfIndexOutOfBounds; + public Inputs(GraphOperation op) { - super(new TensorListSetItem(op), op, Arrays.asList("element_dtype")); + super(new TensorListSetItem(op), op, Arrays.asList("element_dtype", "resize_if_index_out_of_bounds")); int inputIndex = 0; inputHandle = (Operand) op.input(inputIndex++); index = (Operand) op.input(inputIndex++); item = (Operand) op.input(inputIndex++); elementDtype = op.attributes().getAttrType("element_dtype"); + resizeIfIndexOutOfBounds = op.attributes().getAttrBool("resize_if_index_out_of_bounds"); } } } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListSplit.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListSplit.java index 8daee86f61c..64512b07e00 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListSplit.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListSplit.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListStack.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListStack.java index 4c45809efdb..fbd1791638a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListStack.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListStack.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorMapErase.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorMapErase.java index dbcc62f2755..41c86ff0113 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorMapErase.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorMapErase.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorMapHasKey.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorMapHasKey.java index b8499877932..c4c0ef75e90 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorMapHasKey.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorMapHasKey.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorMapInsert.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorMapInsert.java index 2d965fc9386..ada58b18616 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorMapInsert.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorMapInsert.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorMapLookup.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorMapLookup.java index af82cccb073..54e82fee381 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorMapLookup.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorMapLookup.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorMapStackKeys.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorMapStackKeys.java index 35670f506c9..ed172aac7b6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorMapStackKeys.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorMapStackKeys.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorScatterNdAdd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorScatterNdAdd.java index a745e05ac41..cb4d803fd49 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorScatterNdAdd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorScatterNdAdd.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorScatterNdMax.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorScatterNdMax.java index 55585e1d007..3878ccecc25 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorScatterNdMax.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorScatterNdMax.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorScatterNdMin.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorScatterNdMin.java index d3e0501cffe..ff7dd4f1aae 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorScatterNdMin.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorScatterNdMin.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorScatterNdSub.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorScatterNdSub.java index af919d0388f..d361332a87f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorScatterNdSub.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorScatterNdSub.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorScatterNdUpdate.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorScatterNdUpdate.java index 7b2c87af9bc..7a5b0c4c1ef 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorScatterNdUpdate.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorScatterNdUpdate.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorStridedSliceUpdate.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorStridedSliceUpdate.java index 511eda273cc..13f4ed22df3 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorStridedSliceUpdate.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorStridedSliceUpdate.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Tile.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Tile.java index a1c961b5ea6..d8551e70aad 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Tile.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Tile.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Timestamp.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Timestamp.java index 05111c89e7e..8879c93cadc 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Timestamp.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Timestamp.java @@ -35,8 +35,16 @@ /** * Provides the time since epoch in seconds. * Returns the timestamp as a {@code float64} for seconds since the Unix epoch. - *

Note: the timestamp is computed when the op is executed, not when it is added - * to the graph. + *

Common usages include: + *

    + *
  • Logging
  • + *
  • Providing a random number seed
  • + *
  • Debugging graph execution
  • + *
  • Generating timing information, mainly through comparison of timestamps
  • + *
+ *

Note: In graph mode, the timestamp is computed when the op is executed, + * not when it is added to the graph. In eager mode, the timestamp is computed + * when the op is eagerly executed. */ @OpMetadata( opType = Timestamp.OP_NAME, diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Unbatch.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Unbatch.java index d324542548b..7c0c3586586 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Unbatch.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Unbatch.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UnbatchGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UnbatchGrad.java index accba7727ad..4b247a1713c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UnbatchGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UnbatchGrad.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniformQuantize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniformQuantize.java new file mode 100644 index 00000000000..ad5a0b6dfae --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniformQuantize.java @@ -0,0 +1,221 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.Operands; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.TFloat32; +import org.tensorflow.types.TInt32; +import org.tensorflow.types.family.TNumber; + +/** + * Perform quantization on Tensor {@code input}. + * Given {@code input}, {@code scales} and {@code zero_points}, performs quantization using the formula: + * quantized_data = floor(input_data * (1.0f / scale) + 0.5f) + zero_point + * + * @param data type for {@code output} output + */ +@OpMetadata( + opType = UniformQuantize.OP_NAME, + inputsClass = UniformQuantize.Inputs.class +) +public final class UniformQuantize extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "UniformQuantize"; + + private Output output; + + public UniformQuantize(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new UniformQuantize operation. + * + * @param scope current scope + * @param input Must be a Tensor of Tin. + * @param scales The float value(s) to use as scale(s) to quantize {@code input}. + * Must be a scalar Tensor if quantization_axis is -1 (per-tensor quantization), otherwise 1D Tensor of size (input.dim_size(quantization_axis),) (per-axis quantization). + * @param zeroPoints The int32 value(s) to use as zero_point(s) to quantize {@code input}. + * Same shape condition as scales. + * @param Tout The type of output Tensor. A tf.DType from: tf.float32 + * @param quantizationMinVal The quantization min value to quantize {@code input}. + * The purpose of this attribute is typically (but not limited to) to indicate narrow range, where this is set to: + * {@code (Tin lowest) + 1} if narrow range, and {@code (Tin lowest)} otherwise. + * For example, if Tin is qint8, this is set to -127 if narrow range quantized or -128 if not. + * @param quantizationMaxVal The quantization max value to quantize {@code input}. + * The purpose of this attribute is typically (but not limited to) indicate narrow range, where this is set to: + * {@code (Tout max)} for both narrow range and not narrow range. + * For example, if Tin is qint8, this is set to 127. + * @param options carries optional attribute values + * @param data type for {@code UniformQuantize} output and operands + * @return a new instance of UniformQuantize + */ + @Endpoint( + describeByClass = true + ) + public static UniformQuantize create(Scope scope, + Operand input, Operand scales, Operand zeroPoints, + Class Tout, Long quantizationMinVal, Long quantizationMaxVal, Options... options) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "UniformQuantize"); + opBuilder.addInput(input.asOutput()); + opBuilder.addInput(scales.asOutput()); + opBuilder.addInput(zeroPoints.asOutput()); + opBuilder.setAttr("Tout", Operands.toDataType(Tout)); + opBuilder.setAttr("quantization_min_val", quantizationMinVal); + opBuilder.setAttr("quantization_max_val", quantizationMaxVal); + if (options != null) { + for (Options opts : options) { + if (opts.quantizationAxis != null) { + opBuilder.setAttr("quantization_axis", opts.quantizationAxis); + } + } + } + return new UniformQuantize<>(opBuilder.build()); + } + + /** + * Sets the quantizationAxis option. + * + * @param quantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. Otherwise, it must be set within range [0, input.dims()). + * @return this Options instance. + */ + public static Options quantizationAxis(Long quantizationAxis) { + return new Options().quantizationAxis(quantizationAxis); + } + + /** + * Gets output. + * The output quantized Tensor of Tout, whose shape is same as input. + * @return output. + */ + public Output output() { + return output; + } + + @Override + public Output asOutput() { + return output; + } + + /** + * Optional attributes for {@link org.tensorflow.op.core.UniformQuantize} + */ + public static class Options { + private Long quantizationAxis; + + private Options() { + } + + /** + * Sets the quantizationAxis option. + * + * @param quantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. Otherwise, it must be set within range [0, input.dims()). + * @return this Options instance. + */ + public Options quantizationAxis(Long quantizationAxis) { + this.quantizationAxis = quantizationAxis; + return this; + } + } + + @OpInputsMetadata( + outputsClass = UniformQuantize.class + ) + public static class Inputs extends RawOpInputs> { + /** + * Must be a Tensor of Tin. + */ + public final Operand input; + + /** + * The float value(s) to use as scale(s) to quantize {@code input}. + * Must be a scalar Tensor if quantization_axis is -1 (per-tensor quantization), otherwise 1D Tensor of size (input.dim_size(quantization_axis),) (per-axis quantization). + */ + public final Operand scales; + + /** + * The int32 value(s) to use as zero_point(s) to quantize {@code input}. + * Same shape condition as scales. + */ + public final Operand zeroPoints; + + /** + * The type of input Tensor. A tf.DType from: tf.qint8, tf.qint32 + */ + public final DataType Tin; + + /** + * The type of output Tensor. A tf.DType from: tf.float32 + */ + public final DataType Tout; + + /** + * Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. Otherwise, it must be set within range [0, input.dims()). + */ + public final long quantizationAxis; + + /** + * The quantization min value to quantize `input`. + * The purpose of this attribute is typically (but not limited to) to indicate narrow range, where this is set to: + * `(Tin lowest) + 1` if narrow range, and `(Tin lowest)` otherwise. + * For example, if Tin is qint8, this is set to -127 if narrow range quantized or -128 if not. + */ + public final long quantizationMinVal; + + /** + * The quantization max value to quantize `input`. + * The purpose of this attribute is typically (but not limited to) indicate narrow range, where this is set to: + * `(Tout max)` for both narrow range and not narrow range. + * For example, if Tin is qint8, this is set to 127. + */ + public final long quantizationMaxVal; + + public Inputs(GraphOperation op) { + super(new UniformQuantize<>(op), op, Arrays.asList("Tin", "Tout", "quantization_axis", "quantization_min_val", "quantization_max_val")); + int inputIndex = 0; + input = (Operand) op.input(inputIndex++); + scales = (Operand) op.input(inputIndex++); + zeroPoints = (Operand) op.input(inputIndex++); + Tin = op.attributes().getAttrType("Tin"); + Tout = op.attributes().getAttrType("Tout"); + quantizationAxis = op.attributes().getAttrInt("quantization_axis"); + quantizationMinVal = op.attributes().getAttrInt("quantization_min_val"); + quantizationMaxVal = op.attributes().getAttrInt("quantization_max_val"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniformQuantizedAdd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniformQuantizedAdd.java new file mode 100644 index 00000000000..da6a0df1e7a --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniformQuantizedAdd.java @@ -0,0 +1,402 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.TFloat32; +import org.tensorflow.types.TInt32; +import org.tensorflow.types.family.TNumber; + +/** + * Perform quantized add of quantized Tensor {@code lhs} and quantized Tensor {@code rhs} to make quantized {@code output}. + * Given quantized {@code lhs} and quantized {@code rhs}, performs quantized add on {@code lhs} and {@code rhs} to make quantized {@code output}. + *

{@code UniformQuantizedAdd} follows Numpy broadcasting rules. + * The two input array shapes are compared element-wise. + * Starting with the trailing dimensions, the two dimensions either have to be equal or one of them needs to be 1. + *

{@code lhs} and {@code rhs} must be quantized Tensor, where data value is quantized using the formula: + *

+ * quantized_data = clip(original_data / scale + zero_point, quantization_min_val, quantization_max_val)
+ * 
+ *

{@code output} is also quantized, using the same formula. + *

If {@code lhs} and {@code output} is both per-axis quantized, the quantization axis must match. + * Also, if {@code rhs} and {@code output} is both per-axis quantized, the quantization axis must match. + * Match means the axis must match when adding, regarding the broadcasting. + * i.e. For both operands {@code lhs} and {@code rhs}, + * if {@code operand.quantization_axis} >= 0 and {@code output.quantization_axis} >= 0, + * {@code operand.dims} - {@code operand.quantization_axis} must be equal to {@code output.dims} - {@code output.quantization_axis}. + * + * @param data type for {@code output} output + */ +@OpMetadata( + opType = UniformQuantizedAdd.OP_NAME, + inputsClass = UniformQuantizedAdd.Inputs.class +) +public final class UniformQuantizedAdd extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "UniformQuantizedAdd"; + + private Output output; + + public UniformQuantizedAdd(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new UniformQuantizedAdd operation. + * + * @param scope current scope + * @param lhs Must be a quantized tensor. + * @param rhs Must be a quantized tensor. + * @param lhsScales The float value(s) used as scale factors when quantizing the original data that {@code lhs} represents. + * @param lhsZeroPoints The int32 value(s) used as zero points when quantizing original data that {@code lhs} represents. + * Must have same shape with {@code lhs_scales}. + * @param rhsScales The float value(s) used as scale factors when quantizing the original data that {@code rhs} represents. + * @param rhsZeroPoints The int32 value(s) used as zero points when quantizing original data that {@code rhs} represents. + * Must have same shape with {@code rhs_scales}. + * @param outputScales The float value(s) to use as scale factors when quantizing original data that {@code output} represents. + * @param outputZeroPoints The int32 value(s) used as zero points when quantizing original data that output represents. + * Must have same shape with {@code output_scales}. + * @param lhsQuantizationMinVal The min value of the quantized data stored in {@code lhs}. + * For example, if {@code Tin} is {@code qint8}, this must be set to -127 if narrow range quantized or -128 if not. + * @param lhsQuantizationMaxVal The max value of the quantized data stored in {@code lhs}. + * For example, if {@code Tin} is {@code qint8}, this must be set to 127. + * @param rhsQuantizationMinVal The min value of the quantized data stored in {@code rhs}. + * For example, if {@code Tin} is {@code qint8}, this must be set to -127 if narrow range quantized or -128 if not. + * @param rhsQuantizationMaxVal The max value of the quantized data stored in {@code rhs}. + * For example, if {@code Tin} is {@code qint8}, this must be set to 127. + * @param outputQuantizationMinVal The min value of the quantized data stored in {@code output}. + * For example, if {@code Tout} is {@code qint8}, this must be set to -127 if narrow range quantized or -128 if not. + * @param outputQuantizationMaxVal The max value of the quantized data stored in {@code output}. + * For example, if {@code Tout} is {@code qint8}, this must be set to 127. + * @param options carries optional attribute values + * @param data type for {@code UniformQuantizedAdd} output and operands + * @return a new instance of UniformQuantizedAdd + */ + @Endpoint( + describeByClass = true + ) + public static UniformQuantizedAdd create(Scope scope, Operand lhs, + Operand rhs, Operand lhsScales, Operand lhsZeroPoints, + Operand rhsScales, Operand rhsZeroPoints, Operand outputScales, + Operand outputZeroPoints, Long lhsQuantizationMinVal, Long lhsQuantizationMaxVal, + Long rhsQuantizationMinVal, Long rhsQuantizationMaxVal, Long outputQuantizationMinVal, + Long outputQuantizationMaxVal, Options... options) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "UniformQuantizedAdd"); + opBuilder.addInput(lhs.asOutput()); + opBuilder.addInput(rhs.asOutput()); + opBuilder.addInput(lhsScales.asOutput()); + opBuilder.addInput(lhsZeroPoints.asOutput()); + opBuilder.addInput(rhsScales.asOutput()); + opBuilder.addInput(rhsZeroPoints.asOutput()); + opBuilder.addInput(outputScales.asOutput()); + opBuilder.addInput(outputZeroPoints.asOutput()); + opBuilder.setAttr("lhs_quantization_min_val", lhsQuantizationMinVal); + opBuilder.setAttr("lhs_quantization_max_val", lhsQuantizationMaxVal); + opBuilder.setAttr("rhs_quantization_min_val", rhsQuantizationMinVal); + opBuilder.setAttr("rhs_quantization_max_val", rhsQuantizationMaxVal); + opBuilder.setAttr("output_quantization_min_val", outputQuantizationMinVal); + opBuilder.setAttr("output_quantization_max_val", outputQuantizationMaxVal); + if (options != null) { + for (Options opts : options) { + if (opts.lhsQuantizationAxis != null) { + opBuilder.setAttr("lhs_quantization_axis", opts.lhsQuantizationAxis); + } + if (opts.rhsQuantizationAxis != null) { + opBuilder.setAttr("rhs_quantization_axis", opts.rhsQuantizationAxis); + } + if (opts.outputQuantizationAxis != null) { + opBuilder.setAttr("output_quantization_axis", opts.outputQuantizationAxis); + } + } + } + return new UniformQuantizedAdd<>(opBuilder.build()); + } + + /** + * Sets the lhsQuantizationAxis option. + * + * @param lhsQuantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For the {@code lhs}, only per-tensor quantization is supported. + * Thus, this must be set to -1. + * Other values will raise error at OpKernel construction. + * @return this Options instance. + */ + public static Options lhsQuantizationAxis(Long lhsQuantizationAxis) { + return new Options().lhsQuantizationAxis(lhsQuantizationAxis); + } + + /** + * Sets the rhsQuantizationAxis option. + * + * @param rhsQuantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For the {@code rhs}, only per-tensor quantization + * or per-channel quantization along {@code kernel_output_feature_dimension} is supported. + * Thus, this must be set to -1 or {@code dimension_numbers.kernel_output_feature_dimension}. + * Other values will raise error at OpKernel construction. + * @return this Options instance. + */ + public static Options rhsQuantizationAxis(Long rhsQuantizationAxis) { + return new Options().rhsQuantizationAxis(rhsQuantizationAxis); + } + + /** + * Sets the outputQuantizationAxis option. + * + * @param outputQuantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For the {@code output}, only per-tensor quantization or per-channel quantization along {@code output_feature_dimension} is supported. + * Thus, this must be set to -1 or {@code dimension_numbers.output_feature_dimension}. + * Other values will raise error at OpKernel construction. + * @return this Options instance. + */ + public static Options outputQuantizationAxis(Long outputQuantizationAxis) { + return new Options().outputQuantizationAxis(outputQuantizationAxis); + } + + /** + * Gets output. + * The output quantized tensor. + * @return output. + */ + public Output output() { + return output; + } + + @Override + public Output asOutput() { + return output; + } + + /** + * Optional attributes for {@link org.tensorflow.op.core.UniformQuantizedAdd} + */ + public static class Options { + private Long lhsQuantizationAxis; + + private Long rhsQuantizationAxis; + + private Long outputQuantizationAxis; + + private Options() { + } + + /** + * Sets the lhsQuantizationAxis option. + * + * @param lhsQuantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For the {@code lhs}, only per-tensor quantization is supported. + * Thus, this must be set to -1. + * Other values will raise error at OpKernel construction. + * @return this Options instance. + */ + public Options lhsQuantizationAxis(Long lhsQuantizationAxis) { + this.lhsQuantizationAxis = lhsQuantizationAxis; + return this; + } + + /** + * Sets the rhsQuantizationAxis option. + * + * @param rhsQuantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For the {@code rhs}, only per-tensor quantization + * or per-channel quantization along {@code kernel_output_feature_dimension} is supported. + * Thus, this must be set to -1 or {@code dimension_numbers.kernel_output_feature_dimension}. + * Other values will raise error at OpKernel construction. + * @return this Options instance. + */ + public Options rhsQuantizationAxis(Long rhsQuantizationAxis) { + this.rhsQuantizationAxis = rhsQuantizationAxis; + return this; + } + + /** + * Sets the outputQuantizationAxis option. + * + * @param outputQuantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For the {@code output}, only per-tensor quantization or per-channel quantization along {@code output_feature_dimension} is supported. + * Thus, this must be set to -1 or {@code dimension_numbers.output_feature_dimension}. + * Other values will raise error at OpKernel construction. + * @return this Options instance. + */ + public Options outputQuantizationAxis(Long outputQuantizationAxis) { + this.outputQuantizationAxis = outputQuantizationAxis; + return this; + } + } + + @OpInputsMetadata( + outputsClass = UniformQuantizedAdd.class + ) + public static class Inputs extends RawOpInputs> { + /** + * Must be a quantized tensor. + */ + public final Operand lhs; + + /** + * Must be a quantized tensor. + */ + public final Operand rhs; + + /** + * The float value(s) used as scale factors when quantizing the original data that {@code lhs} represents. + */ + public final Operand lhsScales; + + /** + * The int32 value(s) used as zero points when quantizing original data that {@code lhs} represents. + * Must have same shape with {@code lhs_scales}. + */ + public final Operand lhsZeroPoints; + + /** + * The float value(s) used as scale factors when quantizing the original data that {@code rhs} represents. + */ + public final Operand rhsScales; + + /** + * The int32 value(s) used as zero points when quantizing original data that {@code rhs} represents. + * Must have same shape with {@code rhs_scales}. + */ + public final Operand rhsZeroPoints; + + /** + * The float value(s) to use as scale factors when quantizing original data that {@code output} represents. + */ + public final Operand outputScales; + + /** + * The int32 value(s) used as zero points when quantizing original data that output represents. + * Must have same shape with {@code output_scales}. + */ + public final Operand outputZeroPoints; + + /** + * Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For the `lhs`, only per-tensor quantization is supported. + * Thus, this must be set to -1. + * Other values will raise error at OpKernel construction. + */ + public final long lhsQuantizationAxis; + + /** + * The min value of the quantized data stored in `lhs`. + * For example, if `Tin` is `qint8`, this must be set to -127 if narrow range quantized or -128 if not. + */ + public final long lhsQuantizationMinVal; + + /** + * The max value of the quantized data stored in `lhs`. + * For example, if `Tin` is `qint8`, this must be set to 127. + */ + public final long lhsQuantizationMaxVal; + + /** + * Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For the `rhs`, only per-tensor quantization + * or per-channel quantization along `kernel_output_feature_dimension` is supported. + * Thus, this must be set to -1 or `dimension_numbers.kernel_output_feature_dimension`. + * Other values will raise error at OpKernel construction. + */ + public final long rhsQuantizationAxis; + + /** + * The min value of the quantized data stored in `rhs`. + * For example, if `Tin` is `qint8`, this must be set to -127 if narrow range quantized or -128 if not. + */ + public final long rhsQuantizationMinVal; + + /** + * The max value of the quantized data stored in `rhs`. + * For example, if `Tin` is `qint8`, this must be set to 127. + */ + public final long rhsQuantizationMaxVal; + + /** + * Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For the `output`, only per-tensor quantization or per-channel quantization along `output_feature_dimension` is supported. + * Thus, this must be set to -1 or `dimension_numbers.output_feature_dimension`. + * Other values will raise error at OpKernel construction. + */ + public final long outputQuantizationAxis; + + /** + * The min value of the quantized data stored in `output`. + * For example, if `Tout` is `qint8`, this must be set to -127 if narrow range quantized or -128 if not. + */ + public final long outputQuantizationMinVal; + + /** + * The max value of the quantized data stored in `output`. + * For example, if `Tout` is `qint8`, this must be set to 127. + */ + public final long outputQuantizationMaxVal; + + /** + * The type of `lhs`, `rhs`, and `output`. + */ + public final DataType T; + + public Inputs(GraphOperation op) { + super(new UniformQuantizedAdd<>(op), op, Arrays.asList("lhs_quantization_axis", "lhs_quantization_min_val", "lhs_quantization_max_val", "rhs_quantization_axis", "rhs_quantization_min_val", "rhs_quantization_max_val", "output_quantization_axis", "output_quantization_min_val", "output_quantization_max_val", "T")); + int inputIndex = 0; + lhs = (Operand) op.input(inputIndex++); + rhs = (Operand) op.input(inputIndex++); + lhsScales = (Operand) op.input(inputIndex++); + lhsZeroPoints = (Operand) op.input(inputIndex++); + rhsScales = (Operand) op.input(inputIndex++); + rhsZeroPoints = (Operand) op.input(inputIndex++); + outputScales = (Operand) op.input(inputIndex++); + outputZeroPoints = (Operand) op.input(inputIndex++); + lhsQuantizationAxis = op.attributes().getAttrInt("lhs_quantization_axis"); + lhsQuantizationMinVal = op.attributes().getAttrInt("lhs_quantization_min_val"); + lhsQuantizationMaxVal = op.attributes().getAttrInt("lhs_quantization_max_val"); + rhsQuantizationAxis = op.attributes().getAttrInt("rhs_quantization_axis"); + rhsQuantizationMinVal = op.attributes().getAttrInt("rhs_quantization_min_val"); + rhsQuantizationMaxVal = op.attributes().getAttrInt("rhs_quantization_max_val"); + outputQuantizationAxis = op.attributes().getAttrInt("output_quantization_axis"); + outputQuantizationMinVal = op.attributes().getAttrInt("output_quantization_min_val"); + outputQuantizationMaxVal = op.attributes().getAttrInt("output_quantization_max_val"); + T = op.attributes().getAttrType("T"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniformQuantizedClipByValue.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniformQuantizedClipByValue.java new file mode 100644 index 00000000000..49025589944 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniformQuantizedClipByValue.java @@ -0,0 +1,222 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.TFloat32; +import org.tensorflow.types.TInt32; +import org.tensorflow.types.family.TNumber; + +/** + * Perform clip by value on the quantized Tensor {@code operand}. + * Given quantized {@code operand} which was quantized using {@code scales} and {@code zero_points}, performs clip by value using {@code min} and {@code max} values. + * If quantization_axis is -1 (per-tensor quantized), the entire operand is clipped using scalar min, max. + * Otherwise (per-channel quantized), the clipping is also done per-channel. + * + * @param data type for {@code output} output + */ +@OpMetadata( + opType = UniformQuantizedClipByValue.OP_NAME, + inputsClass = UniformQuantizedClipByValue.Inputs.class +) +public final class UniformQuantizedClipByValue extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "UniformQuantizedClipByValue"; + + private Output output; + + public UniformQuantizedClipByValue(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new UniformQuantizedClipByValue operation. + * + * @param scope current scope + * @param operand Must be a Tensor of T. + * @param min The min value(s) to clip operand. Must be a Tensor of T. + * Must be a scalar Tensor if quantization_axis is -1 (per-tensor quantization), otherwise 1D Tensor of size (operand.dim_size(quantization_axis),) (per-axis quantization). + * @param max The min value(s) to clip operand. Must be a Tensor of T. + * Must be a scalar Tensor if quantization_axis is -1 (per-tensor quantization), otherwise 1D Tensor of size (operand.dim_size(quantization_axis),) (per-axis quantization). + * @param scales The float value(s) used as scale(s) when quantizing {@code operand}, {@code min} and {@code max}. + * Must be a scalar Tensor if quantization_axis is -1 (per-tensor quantization), otherwise 1D Tensor of size (operand.dim_size(quantization_axis),) (per-axis quantization). + * @param zeroPoints The int32 value(s) used as zero_point(s) when quantizing {@code operand}, {@code min} and {@code max}. + * Same shape condition as scales. + * @param quantizationMinVal The quantization min value that was used when operand was quantized. + * @param quantizationMaxVal The quantization max value that was used when operand was quantized. + * @param options carries optional attribute values + * @param data type for {@code UniformQuantizedClipByValue} output and operands + * @return a new instance of UniformQuantizedClipByValue + */ + @Endpoint( + describeByClass = true + ) + public static UniformQuantizedClipByValue create(Scope scope, + Operand operand, Operand min, Operand max, Operand scales, + Operand zeroPoints, Long quantizationMinVal, Long quantizationMaxVal, + Options... options) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "UniformQuantizedClipByValue"); + opBuilder.addInput(operand.asOutput()); + opBuilder.addInput(min.asOutput()); + opBuilder.addInput(max.asOutput()); + opBuilder.addInput(scales.asOutput()); + opBuilder.addInput(zeroPoints.asOutput()); + opBuilder.setAttr("quantization_min_val", quantizationMinVal); + opBuilder.setAttr("quantization_max_val", quantizationMaxVal); + if (options != null) { + for (Options opts : options) { + if (opts.quantizationAxis != null) { + opBuilder.setAttr("quantization_axis", opts.quantizationAxis); + } + } + } + return new UniformQuantizedClipByValue<>(opBuilder.build()); + } + + /** + * Sets the quantizationAxis option. + * + * @param quantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. Otherwise, it must be set within range [0, operand.dims()). + * @return this Options instance. + */ + public static Options quantizationAxis(Long quantizationAxis) { + return new Options().quantizationAxis(quantizationAxis); + } + + /** + * Gets output. + * The output clipped Tensor of T, whose shape is same as operand. + * @return output. + */ + public Output output() { + return output; + } + + @Override + public Output asOutput() { + return output; + } + + /** + * Optional attributes for {@link org.tensorflow.op.core.UniformQuantizedClipByValue} + */ + public static class Options { + private Long quantizationAxis; + + private Options() { + } + + /** + * Sets the quantizationAxis option. + * + * @param quantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. Otherwise, it must be set within range [0, operand.dims()). + * @return this Options instance. + */ + public Options quantizationAxis(Long quantizationAxis) { + this.quantizationAxis = quantizationAxis; + return this; + } + } + + @OpInputsMetadata( + outputsClass = UniformQuantizedClipByValue.class + ) + public static class Inputs extends RawOpInputs> { + /** + * Must be a Tensor of T. + */ + public final Operand operand; + + /** + * The min value(s) to clip operand. Must be a Tensor of T. + * Must be a scalar Tensor if quantization_axis is -1 (per-tensor quantization), otherwise 1D Tensor of size (operand.dim_size(quantization_axis),) (per-axis quantization). + */ + public final Operand min; + + /** + * The min value(s) to clip operand. Must be a Tensor of T. + * Must be a scalar Tensor if quantization_axis is -1 (per-tensor quantization), otherwise 1D Tensor of size (operand.dim_size(quantization_axis),) (per-axis quantization). + */ + public final Operand max; + + /** + * The float value(s) used as scale(s) when quantizing {@code operand}, {@code min} and {@code max}. + * Must be a scalar Tensor if quantization_axis is -1 (per-tensor quantization), otherwise 1D Tensor of size (operand.dim_size(quantization_axis),) (per-axis quantization). + */ + public final Operand scales; + + /** + * The int32 value(s) used as zero_point(s) when quantizing {@code operand}, {@code min} and {@code max}. + * Same shape condition as scales. + */ + public final Operand zeroPoints; + + /** + * The type of operand, min, max, and output. A tf.DType from: tf.qint32 + */ + public final DataType T; + + /** + * Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. Otherwise, it must be set within range [0, operand.dims()). + */ + public final long quantizationAxis; + + /** + * The quantization min value that was used when operand was quantized. + */ + public final long quantizationMinVal; + + /** + * The quantization max value that was used when operand was quantized. + */ + public final long quantizationMaxVal; + + public Inputs(GraphOperation op) { + super(new UniformQuantizedClipByValue<>(op), op, Arrays.asList("T", "quantization_axis", "quantization_min_val", "quantization_max_val")); + int inputIndex = 0; + operand = (Operand) op.input(inputIndex++); + min = (Operand) op.input(inputIndex++); + max = (Operand) op.input(inputIndex++); + scales = (Operand) op.input(inputIndex++); + zeroPoints = (Operand) op.input(inputIndex++); + T = op.attributes().getAttrType("T"); + quantizationAxis = op.attributes().getAttrInt("quantization_axis"); + quantizationMinVal = op.attributes().getAttrInt("quantization_min_val"); + quantizationMaxVal = op.attributes().getAttrInt("quantization_max_val"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniformQuantizedConvolution.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniformQuantizedConvolution.java new file mode 100644 index 00000000000..403e280c826 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniformQuantizedConvolution.java @@ -0,0 +1,837 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import java.util.List; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.Operands; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.TFloat32; +import org.tensorflow.types.TInt32; +import org.tensorflow.types.family.TNumber; + +/** + * Perform quantized convolution of quantized Tensor {@code lhs} and quantized Tensor {@code rhs}. to make quantized {@code output}. + * Given quantized {@code lhs} and quantized {@code rhs}, performs quantized dot on {@code lhs} and {@code rhs} to make quantized {@code output}. + *

{@code lhs} and {@code rhs} must be Tensors of same rank, and meet following shape conditions. + *

    + *
  • {@code lhs_feature} % {@code feature_group_count} == 0
  • + *
  • {@code lhs_feature} % {@code rhs_input_feature} == 0
  • + *
  • {@code lhs_feature} / {@code feature_group_count} == {@code rhs_input_feature}
  • + *
  • {@code rhs_output_feature} % {@code feature_group_count} == 0
  • + *
  • {@code lhs_batch} % {@code batch_group_count} == 0
  • + *
  • {@code rhs_output_feature} % {@code batch_group_count} == 0
  • + *
+ *

{@code lhs} and {@code rhs} must be quantized Tensor, where data value is quantized using the formula: + *

+ * quantized_data = clip(original_data / scale + zero_point, quantization_min_val, quantization_max_val)
+ * 
+ *

{@code output} is also quantized, using the same formula. + * If {@code rhs} is per-tensor quantized, {@code output} must be also per-tensor quantized. + * + * @param data type for {@code output} output + */ +@OpMetadata( + opType = UniformQuantizedConvolution.OP_NAME, + inputsClass = UniformQuantizedConvolution.Inputs.class +) +public final class UniformQuantizedConvolution extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "UniformQuantizedConvolution"; + + private Output output; + + public UniformQuantizedConvolution(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new UniformQuantizedConvolution operation. + * + * @param scope current scope + * @param lhs Must be a quantized tensor, rank >= 3. + * @param rhs Must be a quantized tensor, same rank as {@code lhs}. + * @param lhsScales The float value(s) used as scale factors when quantizing the original data that {@code lhs} represents. + * Must be a scalar {@code Tensor} ({@code lhs} supports only per-tensor quantization). + * @param lhsZeroPoints The int32 value(s) used as zero points when quantizing original data that {@code lhs} represents. + * Same shape condition as {@code lhs_scales}. + * @param rhsScales The float value(s) used as scale factors when quantizing the original data that {@code rhs} represents. + * Must be a scalar {@code Tensor} for per-tensor quantization, + * or 1D {@code Tensor} of size {@code rhs.dim_size(kernel_output_feature_dimension)}, for per-channel quantization. + * @param rhsZeroPoints The int32 value(s) used as zero points when quantizing original data that {@code rhs} represents. + * Same shape condition as {@code rhs_scales}. + * @param outputScales The float value(s) to use as scale factors when quantizing original data that {@code output} represents. + * Must be a scalar {@code Tensor} for per-tensor quantization, + * or 1D {@code Tensor} of size {@code rhs.dim_size(kernel_output_feature_dimension)} + *

    + *
  • which is equal to {@code output.dim_size(output_feature_dimension)}, + * for per-channel quantization. + * If {@code rhs} is per-tensor quantized, output must be also per-tensor quantized. + * This means that if {@code rhs_scales} and {@code rhs_zero_points} are scalar {@code Tensor}s, {@code output_scales} and {@code output_zero_points} must be scalar {@code Tensor}s as well.
  • + *
+ * @param outputZeroPoints The int32 value(s) used as zero points when quantizing original data that output represents. + * Same shape condition as {@code output_scales}. + * @param Tout The type of {@code output} {@code Tensor}. + * @param padding string from: {@code "SAME"}, {@code "VALID"}, or {@code "EXPLICIT"}, indicating the type of padding algorithm to use. + * @param lhsQuantizationMinVal The min value of the quantized data stored in {@code lhs}. + * For example, if {@code Tin} is {@code qint8}, this must be set to -127 if narrow range quantized or -128 if not. + * @param lhsQuantizationMaxVal The max value of the quantized data stored in {@code lhs}. + * For example, if {@code Tin} is {@code qint8}, this must be set to 127. + * @param rhsQuantizationMinVal The min value of the quantized data stored in {@code rhs}. + * For example, if {@code Tin} is {@code qint8}, this must be set to -127 if narrow range quantized or -128 if not. + * @param rhsQuantizationMaxVal The max value of the quantized data stored in {@code rhs}. + * For example, if {@code Tin} is {@code qint8}, this must be set to 127. + * @param outputQuantizationMinVal The min value of the quantized data stored in {@code output}. + * For example, if {@code Tout} is {@code qint8}, this must be set to -127 if narrow range quantized or -128 if not. + * @param outputQuantizationMaxVal The max value of the quantized data stored in {@code output}. + * For example, if {@code Tout} is {@code qint8}, this must be set to 127. + * @param options carries optional attribute values + * @param data type for {@code UniformQuantizedConvolution} output and operands + * @param data type for {@code UniformQuantizedConvolution} output and operands + * @return a new instance of UniformQuantizedConvolution + */ + @Endpoint( + describeByClass = true + ) + public static UniformQuantizedConvolution create( + Scope scope, Operand lhs, Operand rhs, Operand lhsScales, + Operand lhsZeroPoints, Operand rhsScales, Operand rhsZeroPoints, + Operand outputScales, Operand outputZeroPoints, Class Tout, + String padding, Long lhsQuantizationMinVal, Long lhsQuantizationMaxVal, + Long rhsQuantizationMinVal, Long rhsQuantizationMaxVal, Long outputQuantizationMinVal, + Long outputQuantizationMaxVal, Options... options) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "UniformQuantizedConvolution"); + opBuilder.addInput(lhs.asOutput()); + opBuilder.addInput(rhs.asOutput()); + opBuilder.addInput(lhsScales.asOutput()); + opBuilder.addInput(lhsZeroPoints.asOutput()); + opBuilder.addInput(rhsScales.asOutput()); + opBuilder.addInput(rhsZeroPoints.asOutput()); + opBuilder.addInput(outputScales.asOutput()); + opBuilder.addInput(outputZeroPoints.asOutput()); + opBuilder.setAttr("Tout", Operands.toDataType(Tout)); + opBuilder.setAttr("padding", padding); + opBuilder.setAttr("lhs_quantization_min_val", lhsQuantizationMinVal); + opBuilder.setAttr("lhs_quantization_max_val", lhsQuantizationMaxVal); + opBuilder.setAttr("rhs_quantization_min_val", rhsQuantizationMinVal); + opBuilder.setAttr("rhs_quantization_max_val", rhsQuantizationMaxVal); + opBuilder.setAttr("output_quantization_min_val", outputQuantizationMinVal); + opBuilder.setAttr("output_quantization_max_val", outputQuantizationMaxVal); + if (options != null) { + for (Options opts : options) { + if (opts.windowStrides != null) { + long[] windowStridesArray = new long[opts.windowStrides.size()]; + for (int i = 0 ; i < windowStridesArray.length ; i++) { + windowStridesArray[i] = opts.windowStrides.get(i); + } + opBuilder.setAttr("window_strides", windowStridesArray); + } + if (opts.explicitPadding != null) { + long[] explicitPaddingArray = new long[opts.explicitPadding.size()]; + for (int i = 0 ; i < explicitPaddingArray.length ; i++) { + explicitPaddingArray[i] = opts.explicitPadding.get(i); + } + opBuilder.setAttr("explicit_padding", explicitPaddingArray); + } + if (opts.lhsDilation != null) { + long[] lhsDilationArray = new long[opts.lhsDilation.size()]; + for (int i = 0 ; i < lhsDilationArray.length ; i++) { + lhsDilationArray[i] = opts.lhsDilation.get(i); + } + opBuilder.setAttr("lhs_dilation", lhsDilationArray); + } + if (opts.rhsDilation != null) { + long[] rhsDilationArray = new long[opts.rhsDilation.size()]; + for (int i = 0 ; i < rhsDilationArray.length ; i++) { + rhsDilationArray[i] = opts.rhsDilation.get(i); + } + opBuilder.setAttr("rhs_dilation", rhsDilationArray); + } + if (opts.batchGroupCount != null) { + opBuilder.setAttr("batch_group_count", opts.batchGroupCount); + } + if (opts.featureGroupCount != null) { + opBuilder.setAttr("feature_group_count", opts.featureGroupCount); + } + if (opts.dimensionNumbers != null) { + opBuilder.setAttr("dimension_numbers", opts.dimensionNumbers); + } + if (opts.lhsQuantizationAxis != null) { + opBuilder.setAttr("lhs_quantization_axis", opts.lhsQuantizationAxis); + } + if (opts.rhsQuantizationAxis != null) { + opBuilder.setAttr("rhs_quantization_axis", opts.rhsQuantizationAxis); + } + if (opts.outputQuantizationAxis != null) { + opBuilder.setAttr("output_quantization_axis", opts.outputQuantizationAxis); + } + } + } + return new UniformQuantizedConvolution<>(opBuilder.build()); + } + + /** + * Sets the windowStrides option. + * + * @param windowStrides The stride of the sliding window for each spatial dimension of {@code lhs}. + * Must be an empty list (default) or a list of size (number of spatial dimensions). + * If an empty list is provided, the stride for each spatial dimension is set to 1. + * @return this Options instance. + */ + public static Options windowStrides(List windowStrides) { + return new Options().windowStrides(windowStrides); + } + + /** + * Sets the windowStrides option. + * + * @param windowStrides The stride of the sliding window for each spatial dimension of {@code lhs}. + * Must be an empty list (default) or a list of size (number of spatial dimensions). + * If an empty list is provided, the stride for each spatial dimension is set to 1. + * @return this Options instance. + */ + public static Options windowStrides(Long... windowStrides) { + return new Options().windowStrides(windowStrides); + } + + /** + * Sets the explicitPadding option. + * + * @param explicitPadding If {@code padding} is {@code "EXPLICIT"}, must be set as a list indicating + * the explicit paddings at the start and end of each {@code lhs} spatial dimension. + * Otherwise, this must be empty. + *

(If used,) Must be a list of size {@code 2 * (number of lhs spatial dimensions)}, + * where {@code (explicit_padding[2 * i], explicit_padding[2 * i + 1])} indicates + * {@code (start_padding, end_padding)} of {@code spatial_dimensions[i]}. + * @return this Options instance. + */ + public static Options explicitPadding(List explicitPadding) { + return new Options().explicitPadding(explicitPadding); + } + + /** + * Sets the explicitPadding option. + * + * @param explicitPadding If {@code padding} is {@code "EXPLICIT"}, must be set as a list indicating + * the explicit paddings at the start and end of each {@code lhs} spatial dimension. + * Otherwise, this must be empty. + *

(If used,) Must be a list of size {@code 2 * (number of lhs spatial dimensions)}, + * where {@code (explicit_padding[2 * i], explicit_padding[2 * i + 1])} indicates + * {@code (start_padding, end_padding)} of {@code spatial_dimensions[i]}. + * @return this Options instance. + */ + public static Options explicitPadding(Long... explicitPadding) { + return new Options().explicitPadding(explicitPadding); + } + + /** + * Sets the lhsDilation option. + * + * @param lhsDilation The dilation factor to apply in each spatial dimension of {@code lhs}. + * Must be an empty list (default) or a list of size (number of {@code lhs} spatial dimensions). + * If empty list, the dilation for each {@code lhs} spatial dimension is set to 1. + * @return this Options instance. + */ + public static Options lhsDilation(List lhsDilation) { + return new Options().lhsDilation(lhsDilation); + } + + /** + * Sets the lhsDilation option. + * + * @param lhsDilation The dilation factor to apply in each spatial dimension of {@code lhs}. + * Must be an empty list (default) or a list of size (number of {@code lhs} spatial dimensions). + * If empty list, the dilation for each {@code lhs} spatial dimension is set to 1. + * @return this Options instance. + */ + public static Options lhsDilation(Long... lhsDilation) { + return new Options().lhsDilation(lhsDilation); + } + + /** + * Sets the rhsDilation option. + * + * @param rhsDilation The dilation factor to apply in each spatial dimension of {@code rhs}. + * Must be an empty list (default) or a list of size (number of {@code rhs} spatial dimensions). + * If empty list, the dilation for each {@code rhs} spatial dimension is set to 1. + * @return this Options instance. + */ + public static Options rhsDilation(List rhsDilation) { + return new Options().rhsDilation(rhsDilation); + } + + /** + * Sets the rhsDilation option. + * + * @param rhsDilation The dilation factor to apply in each spatial dimension of {@code rhs}. + * Must be an empty list (default) or a list of size (number of {@code rhs} spatial dimensions). + * If empty list, the dilation for each {@code rhs} spatial dimension is set to 1. + * @return this Options instance. + */ + public static Options rhsDilation(Long... rhsDilation) { + return new Options().rhsDilation(rhsDilation); + } + + /** + * Sets the batchGroupCount option. + * + * @param batchGroupCount The number of batch groups. Used for grouped filters. + * Must be a divisor of {@code output_feature}. + * @return this Options instance. + */ + public static Options batchGroupCount(Long batchGroupCount) { + return new Options().batchGroupCount(batchGroupCount); + } + + /** + * Sets the featureGroupCount option. + * + * @param featureGroupCount The number of feature groups. Used for grouped convolutions. + * Must be a divisor of both {@code lhs_feature} and {@code output_feature}. + * @return this Options instance. + */ + public static Options featureGroupCount(Long featureGroupCount) { + return new Options().featureGroupCount(featureGroupCount); + } + + /** + * Sets the dimensionNumbers option. + * + * @param dimensionNumbers Structure of dimension information for the convolution op. + * Must be an empty string (default) or a serialized string of {@code tensorflow.UniformQuantizedConvolutionDimensionNumbersAttr} proto. + * If empty string, the default is {@code ("NCHW", "OIHW", "NCHW")} (for a 2D convolution). + * @return this Options instance. + */ + public static Options dimensionNumbers(String dimensionNumbers) { + return new Options().dimensionNumbers(dimensionNumbers); + } + + /** + * Sets the lhsQuantizationAxis option. + * + * @param lhsQuantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For the {@code lhs}, only per-tensor quantization is supported. + * Thus, this must be set to -1. + * Other values will raise error at OpKernel construction. + * @return this Options instance. + */ + public static Options lhsQuantizationAxis(Long lhsQuantizationAxis) { + return new Options().lhsQuantizationAxis(lhsQuantizationAxis); + } + + /** + * Sets the rhsQuantizationAxis option. + * + * @param rhsQuantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For the {@code rhs}, only per-tensor quantization + * or per-channel quantization along {@code kernel_output_feature_dimension} is supported. + * Thus, this must be set to -1 or {@code dimension_numbers.kernel_output_feature_dimension}. + * Other values will raise error at OpKernel construction. + * @return this Options instance. + */ + public static Options rhsQuantizationAxis(Long rhsQuantizationAxis) { + return new Options().rhsQuantizationAxis(rhsQuantizationAxis); + } + + /** + * Sets the outputQuantizationAxis option. + * + * @param outputQuantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For the {@code output}, only per-tensor quantization or per-channel quantization along {@code output_feature_dimension} is supported. + * Thus, this must be set to -1 or {@code dimension_numbers.output_feature_dimension}. + * Other values will raise error at OpKernel construction. + * @return this Options instance. + */ + public static Options outputQuantizationAxis(Long outputQuantizationAxis) { + return new Options().outputQuantizationAxis(outputQuantizationAxis); + } + + /** + * Gets output. + * The output quantized tensor of {@code Tout}, same rank as {@code lhs} and {@code rhs}. + * @return output. + */ + public Output output() { + return output; + } + + @Override + public Output asOutput() { + return output; + } + + /** + * Optional attributes for {@link org.tensorflow.op.core.UniformQuantizedConvolution} + */ + public static class Options { + private List windowStrides; + + private List explicitPadding; + + private List lhsDilation; + + private List rhsDilation; + + private Long batchGroupCount; + + private Long featureGroupCount; + + private String dimensionNumbers; + + private Long lhsQuantizationAxis; + + private Long rhsQuantizationAxis; + + private Long outputQuantizationAxis; + + private Options() { + } + + /** + * Sets the windowStrides option. + * + * @param windowStrides The stride of the sliding window for each spatial dimension of {@code lhs}. + * Must be an empty list (default) or a list of size (number of spatial dimensions). + * If an empty list is provided, the stride for each spatial dimension is set to 1. + * @return this Options instance. + */ + public Options windowStrides(List windowStrides) { + this.windowStrides = windowStrides; + return this; + } + + /** + * Sets the windowStrides option. + * + * @param windowStrides The stride of the sliding window for each spatial dimension of {@code lhs}. + * Must be an empty list (default) or a list of size (number of spatial dimensions). + * If an empty list is provided, the stride for each spatial dimension is set to 1. + * @return this Options instance. + */ + public Options windowStrides(Long... windowStrides) { + this.windowStrides = Arrays.asList(windowStrides); + return this; + } + + /** + * Sets the explicitPadding option. + * + * @param explicitPadding If {@code padding} is {@code "EXPLICIT"}, must be set as a list indicating + * the explicit paddings at the start and end of each {@code lhs} spatial dimension. + * Otherwise, this must be empty. + *

(If used,) Must be a list of size {@code 2 * (number of lhs spatial dimensions)}, + * where {@code (explicit_padding[2 * i], explicit_padding[2 * i + 1])} indicates + * {@code (start_padding, end_padding)} of {@code spatial_dimensions[i]}. + * @return this Options instance. + */ + public Options explicitPadding(List explicitPadding) { + this.explicitPadding = explicitPadding; + return this; + } + + /** + * Sets the explicitPadding option. + * + * @param explicitPadding If {@code padding} is {@code "EXPLICIT"}, must be set as a list indicating + * the explicit paddings at the start and end of each {@code lhs} spatial dimension. + * Otherwise, this must be empty. + *

(If used,) Must be a list of size {@code 2 * (number of lhs spatial dimensions)}, + * where {@code (explicit_padding[2 * i], explicit_padding[2 * i + 1])} indicates + * {@code (start_padding, end_padding)} of {@code spatial_dimensions[i]}. + * @return this Options instance. + */ + public Options explicitPadding(Long... explicitPadding) { + this.explicitPadding = Arrays.asList(explicitPadding); + return this; + } + + /** + * Sets the lhsDilation option. + * + * @param lhsDilation The dilation factor to apply in each spatial dimension of {@code lhs}. + * Must be an empty list (default) or a list of size (number of {@code lhs} spatial dimensions). + * If empty list, the dilation for each {@code lhs} spatial dimension is set to 1. + * @return this Options instance. + */ + public Options lhsDilation(List lhsDilation) { + this.lhsDilation = lhsDilation; + return this; + } + + /** + * Sets the lhsDilation option. + * + * @param lhsDilation The dilation factor to apply in each spatial dimension of {@code lhs}. + * Must be an empty list (default) or a list of size (number of {@code lhs} spatial dimensions). + * If empty list, the dilation for each {@code lhs} spatial dimension is set to 1. + * @return this Options instance. + */ + public Options lhsDilation(Long... lhsDilation) { + this.lhsDilation = Arrays.asList(lhsDilation); + return this; + } + + /** + * Sets the rhsDilation option. + * + * @param rhsDilation The dilation factor to apply in each spatial dimension of {@code rhs}. + * Must be an empty list (default) or a list of size (number of {@code rhs} spatial dimensions). + * If empty list, the dilation for each {@code rhs} spatial dimension is set to 1. + * @return this Options instance. + */ + public Options rhsDilation(List rhsDilation) { + this.rhsDilation = rhsDilation; + return this; + } + + /** + * Sets the rhsDilation option. + * + * @param rhsDilation The dilation factor to apply in each spatial dimension of {@code rhs}. + * Must be an empty list (default) or a list of size (number of {@code rhs} spatial dimensions). + * If empty list, the dilation for each {@code rhs} spatial dimension is set to 1. + * @return this Options instance. + */ + public Options rhsDilation(Long... rhsDilation) { + this.rhsDilation = Arrays.asList(rhsDilation); + return this; + } + + /** + * Sets the batchGroupCount option. + * + * @param batchGroupCount The number of batch groups. Used for grouped filters. + * Must be a divisor of {@code output_feature}. + * @return this Options instance. + */ + public Options batchGroupCount(Long batchGroupCount) { + this.batchGroupCount = batchGroupCount; + return this; + } + + /** + * Sets the featureGroupCount option. + * + * @param featureGroupCount The number of feature groups. Used for grouped convolutions. + * Must be a divisor of both {@code lhs_feature} and {@code output_feature}. + * @return this Options instance. + */ + public Options featureGroupCount(Long featureGroupCount) { + this.featureGroupCount = featureGroupCount; + return this; + } + + /** + * Sets the dimensionNumbers option. + * + * @param dimensionNumbers Structure of dimension information for the convolution op. + * Must be an empty string (default) or a serialized string of {@code tensorflow.UniformQuantizedConvolutionDimensionNumbersAttr} proto. + * If empty string, the default is {@code ("NCHW", "OIHW", "NCHW")} (for a 2D convolution). + * @return this Options instance. + */ + public Options dimensionNumbers(String dimensionNumbers) { + this.dimensionNumbers = dimensionNumbers; + return this; + } + + /** + * Sets the lhsQuantizationAxis option. + * + * @param lhsQuantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For the {@code lhs}, only per-tensor quantization is supported. + * Thus, this must be set to -1. + * Other values will raise error at OpKernel construction. + * @return this Options instance. + */ + public Options lhsQuantizationAxis(Long lhsQuantizationAxis) { + this.lhsQuantizationAxis = lhsQuantizationAxis; + return this; + } + + /** + * Sets the rhsQuantizationAxis option. + * + * @param rhsQuantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For the {@code rhs}, only per-tensor quantization + * or per-channel quantization along {@code kernel_output_feature_dimension} is supported. + * Thus, this must be set to -1 or {@code dimension_numbers.kernel_output_feature_dimension}. + * Other values will raise error at OpKernel construction. + * @return this Options instance. + */ + public Options rhsQuantizationAxis(Long rhsQuantizationAxis) { + this.rhsQuantizationAxis = rhsQuantizationAxis; + return this; + } + + /** + * Sets the outputQuantizationAxis option. + * + * @param outputQuantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For the {@code output}, only per-tensor quantization or per-channel quantization along {@code output_feature_dimension} is supported. + * Thus, this must be set to -1 or {@code dimension_numbers.output_feature_dimension}. + * Other values will raise error at OpKernel construction. + * @return this Options instance. + */ + public Options outputQuantizationAxis(Long outputQuantizationAxis) { + this.outputQuantizationAxis = outputQuantizationAxis; + return this; + } + } + + @OpInputsMetadata( + outputsClass = UniformQuantizedConvolution.class + ) + public static class Inputs extends RawOpInputs> { + /** + * Must be a quantized tensor, rank >= 3. + */ + public final Operand lhs; + + /** + * Must be a quantized tensor, same rank as {@code lhs}. + */ + public final Operand rhs; + + /** + * The float value(s) used as scale factors when quantizing the original data that {@code lhs} represents. + * Must be a scalar {@code Tensor} ({@code lhs} supports only per-tensor quantization). + */ + public final Operand lhsScales; + + /** + * The int32 value(s) used as zero points when quantizing original data that {@code lhs} represents. + * Same shape condition as {@code lhs_scales}. + */ + public final Operand lhsZeroPoints; + + /** + * The float value(s) used as scale factors when quantizing the original data that {@code rhs} represents. + * Must be a scalar {@code Tensor} for per-tensor quantization, + * or 1D {@code Tensor} of size {@code rhs.dim_size(kernel_output_feature_dimension)}, for per-channel quantization. + */ + public final Operand rhsScales; + + /** + * The int32 value(s) used as zero points when quantizing original data that {@code rhs} represents. + * Same shape condition as {@code rhs_scales}. + */ + public final Operand rhsZeroPoints; + + /** + * The float value(s) to use as scale factors when quantizing original data that {@code output} represents. + * Must be a scalar {@code Tensor} for per-tensor quantization, + * or 1D {@code Tensor} of size {@code rhs.dim_size(kernel_output_feature_dimension)} + *

    + *
  • which is equal to {@code output.dim_size(output_feature_dimension)}, + * for per-channel quantization. + * If {@code rhs} is per-tensor quantized, output must be also per-tensor quantized. + * This means that if {@code rhs_scales} and {@code rhs_zero_points} are scalar {@code Tensor}s, {@code output_scales} and {@code output_zero_points} must be scalar {@code Tensor}s as well.
  • + *
+ */ + public final Operand outputScales; + + /** + * The int32 value(s) used as zero points when quantizing original data that output represents. + * Same shape condition as {@code output_scales}. + */ + public final Operand outputZeroPoints; + + /** + * The type of `lhs` and `rhs` input `Tensor`. + */ + public final DataType Tin; + + /** + * The type of `output` `Tensor`. + */ + public final DataType Tout; + + /** + * The stride of the sliding window for each spatial dimension of `lhs`. + * Must be an empty list (default) or a list of size (number of spatial dimensions). + * If an empty list is provided, the stride for each spatial dimension is set to 1. + */ + public final long[] windowStrides; + + /** + * string from: `"SAME"`, `"VALID"`, or `"EXPLICIT"`, indicating the type of padding algorithm to use. + */ + public final String padding; + + /** + * If `padding` is `"EXPLICIT"`, must be set as a list indicating + * the explicit paddings at the start and end of each `lhs` spatial dimension. + * Otherwise, this must be empty. + * + * (If used,) Must be a list of size `2 * (number of lhs spatial dimensions)`, + * where `(explicit_padding[2 * i], explicit_padding[2 * i + 1])` indicates + * `(start_padding, end_padding)` of `spatial_dimensions[i]`. + */ + public final long[] explicitPadding; + + /** + * The dilation factor to apply in each spatial dimension of `lhs`. + * Must be an empty list (default) or a list of size (number of `lhs` spatial dimensions). + * If empty list, the dilation for each `lhs` spatial dimension is set to 1. + */ + public final long[] lhsDilation; + + /** + * The dilation factor to apply in each spatial dimension of `rhs`. + * Must be an empty list (default) or a list of size (number of `rhs` spatial dimensions). + * If empty list, the dilation for each `rhs` spatial dimension is set to 1. + */ + public final long[] rhsDilation; + + /** + * The number of batch groups. Used for grouped filters. + * Must be a divisor of `output_feature`. + */ + public final long batchGroupCount; + + /** + * The number of feature groups. Used for grouped convolutions. + * Must be a divisor of both `lhs_feature` and `output_feature`. + */ + public final long featureGroupCount; + + /** + * Structure of dimension information for the convolution op. + * Must be an empty string (default) or a serialized string of `tensorflow.UniformQuantizedConvolutionDimensionNumbersAttr` proto. + * If empty string, the default is `("NCHW", "OIHW", "NCHW")` (for a 2D convolution). + */ + public final String dimensionNumbers; + + /** + * Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For the `lhs`, only per-tensor quantization is supported. + * Thus, this must be set to -1. + * Other values will raise error at OpKernel construction. + */ + public final long lhsQuantizationAxis; + + /** + * The min value of the quantized data stored in `lhs`. + * For example, if `Tin` is `qint8`, this must be set to -127 if narrow range quantized or -128 if not. + */ + public final long lhsQuantizationMinVal; + + /** + * The max value of the quantized data stored in `lhs`. + * For example, if `Tin` is `qint8`, this must be set to 127. + */ + public final long lhsQuantizationMaxVal; + + /** + * Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For the `rhs`, only per-tensor quantization + * or per-channel quantization along `kernel_output_feature_dimension` is supported. + * Thus, this must be set to -1 or `dimension_numbers.kernel_output_feature_dimension`. + * Other values will raise error at OpKernel construction. + */ + public final long rhsQuantizationAxis; + + /** + * The min value of the quantized data stored in `rhs`. + * For example, if `Tin` is `qint8`, this must be set to -127 if narrow range quantized or -128 if not. + */ + public final long rhsQuantizationMinVal; + + /** + * The max value of the quantized data stored in `rhs`. + * For example, if `Tin` is `qint8`, this must be set to 127. + */ + public final long rhsQuantizationMaxVal; + + /** + * Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For the `output`, only per-tensor quantization or per-channel quantization along `output_feature_dimension` is supported. + * Thus, this must be set to -1 or `dimension_numbers.output_feature_dimension`. + * Other values will raise error at OpKernel construction. + */ + public final long outputQuantizationAxis; + + /** + * The min value of the quantized data stored in `output`. + * For example, if `Tout` is `qint8`, this must be set to -127 if narrow range quantized or -128 if not. + */ + public final long outputQuantizationMinVal; + + /** + * The max value of the quantized data stored in `output`. + * For example, if `Tout` is `qint8`, this must be set to 127. + */ + public final long outputQuantizationMaxVal; + + public Inputs(GraphOperation op) { + super(new UniformQuantizedConvolution<>(op), op, Arrays.asList("Tin", "Tout", "window_strides", "padding", "explicit_padding", "lhs_dilation", "rhs_dilation", "batch_group_count", "feature_group_count", "dimension_numbers", "lhs_quantization_axis", "lhs_quantization_min_val", "lhs_quantization_max_val", "rhs_quantization_axis", "rhs_quantization_min_val", "rhs_quantization_max_val", "output_quantization_axis", "output_quantization_min_val", "output_quantization_max_val")); + int inputIndex = 0; + lhs = (Operand) op.input(inputIndex++); + rhs = (Operand) op.input(inputIndex++); + lhsScales = (Operand) op.input(inputIndex++); + lhsZeroPoints = (Operand) op.input(inputIndex++); + rhsScales = (Operand) op.input(inputIndex++); + rhsZeroPoints = (Operand) op.input(inputIndex++); + outputScales = (Operand) op.input(inputIndex++); + outputZeroPoints = (Operand) op.input(inputIndex++); + Tin = op.attributes().getAttrType("Tin"); + Tout = op.attributes().getAttrType("Tout"); + windowStrides = op.attributes().getAttrIntList("window_strides"); + padding = op.attributes().getAttrString("padding"); + explicitPadding = op.attributes().getAttrIntList("explicit_padding"); + lhsDilation = op.attributes().getAttrIntList("lhs_dilation"); + rhsDilation = op.attributes().getAttrIntList("rhs_dilation"); + batchGroupCount = op.attributes().getAttrInt("batch_group_count"); + featureGroupCount = op.attributes().getAttrInt("feature_group_count"); + dimensionNumbers = op.attributes().getAttrString("dimension_numbers"); + lhsQuantizationAxis = op.attributes().getAttrInt("lhs_quantization_axis"); + lhsQuantizationMinVal = op.attributes().getAttrInt("lhs_quantization_min_val"); + lhsQuantizationMaxVal = op.attributes().getAttrInt("lhs_quantization_max_val"); + rhsQuantizationAxis = op.attributes().getAttrInt("rhs_quantization_axis"); + rhsQuantizationMinVal = op.attributes().getAttrInt("rhs_quantization_min_val"); + rhsQuantizationMaxVal = op.attributes().getAttrInt("rhs_quantization_max_val"); + outputQuantizationAxis = op.attributes().getAttrInt("output_quantization_axis"); + outputQuantizationMinVal = op.attributes().getAttrInt("output_quantization_min_val"); + outputQuantizationMaxVal = op.attributes().getAttrInt("output_quantization_max_val"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniformQuantizedConvolutionHybrid.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniformQuantizedConvolutionHybrid.java new file mode 100644 index 00000000000..07504ed7255 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniformQuantizedConvolutionHybrid.java @@ -0,0 +1,658 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import java.util.List; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.Operands; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.TFloat32; +import org.tensorflow.types.TInt32; +import org.tensorflow.types.family.TNumber; + +/** + * Perform hybrid quantized convolution of float Tensor {@code lhs} and quantized Tensor {@code rhs}. + * Given float {@code lhs} and quantized {@code rhs}, internally performs quantization on {@code lhs}, + * and then performs quantized convolution on quantized {@code lhs} and {@code rhs}. + *

The internal quantization on {@code lhs} is a quantization to {@code Trhs}, dynamic range, + * per-batch (per-axis along axis {@code dimension_numbers.input_batch_dimension}), asymmetric, + * and not narrow range (the range is [Trhs_MIN, Trhs_MAX]). + *

{@code lhs} and {@code rhs} must be Tensors of same rank, and meet following shape conditions. + *

    + *
  • lhs_feature % feature_group_count == 0
  • + *
  • lhs_feature % rhs_input_feature == 0
  • + *
  • lhs_feature / feature_group_count == rhs_input_feature
  • + *
  • rhs_output_feature % feature_group_count == 0
  • + *
  • lhs_batch % batch_group_count == 0
  • + *
  • rhs_output_feature % batch_group_count == 0
  • + *
+ *

{@code rhs} must be quantized Tensor, where its data value is quantized using the formula: + * quantized_data = clip(original_data / scale + zero_point, quantization_min_val, quantization_max_val). + * + * @param data type for {@code output} output + */ +@OpMetadata( + opType = UniformQuantizedConvolutionHybrid.OP_NAME, + inputsClass = UniformQuantizedConvolutionHybrid.Inputs.class +) +public final class UniformQuantizedConvolutionHybrid extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "UniformQuantizedConvolutionHybrid"; + + private Output output; + + public UniformQuantizedConvolutionHybrid(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new UniformQuantizedConvolutionHybrid operation. + * + * @param scope current scope + * @param lhs Must be a non-quantized Tensor of {@code Tlhs}, rank >= 3. + * @param rhs Must be a quantized Tensor of {@code Trhs}, same rank as {@code lhs}. + * @param rhsScales The float value(s) used as scale factors when quantizing the original data that {@code rhs} represents. + * Must be a scalar Tensor for per-tensor quantization, + * or 1D Tensor of size {@code rhs.dim_size(kernel_output_feature_dimension)}, for per-channel quantization. + * @param rhsZeroPoints The int32 value(s) used as zero_point when quantizing original data that {@code rhs} represents. + * Same shape condition as {@code rhs_scales}. + * @param Tout The type of output Tensor. + * @param padding string from: {@code "SAME"}, {@code "VALID"}, or {@code "EXPLICIT"}, indicating the type of padding algorithm to use. + * @param rhsQuantizationMinVal The min value of the quantized data stored in {@code rhs}. + * For example, if {@code Trhs} is qint8, this must be set to -127 if narrow range quantized or -128 if not. + * @param rhsQuantizationMaxVal The max value of the quantized data stored in {@code rhs}. + * For example, if {@code Trhs} is qint8, this must be set to 127. + * @param options carries optional attribute values + * @param data type for {@code UniformQuantizedConvolutionHybrid} output and operands + * @return a new instance of UniformQuantizedConvolutionHybrid + */ + @Endpoint( + describeByClass = true + ) + public static UniformQuantizedConvolutionHybrid create(Scope scope, + Operand lhs, Operand rhs, Operand rhsScales, + Operand rhsZeroPoints, Class Tout, String padding, Long rhsQuantizationMinVal, + Long rhsQuantizationMaxVal, Options... options) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "UniformQuantizedConvolutionHybrid"); + opBuilder.addInput(lhs.asOutput()); + opBuilder.addInput(rhs.asOutput()); + opBuilder.addInput(rhsScales.asOutput()); + opBuilder.addInput(rhsZeroPoints.asOutput()); + opBuilder.setAttr("Tout", Operands.toDataType(Tout)); + opBuilder.setAttr("padding", padding); + opBuilder.setAttr("rhs_quantization_min_val", rhsQuantizationMinVal); + opBuilder.setAttr("rhs_quantization_max_val", rhsQuantizationMaxVal); + if (options != null) { + for (Options opts : options) { + if (opts.windowStrides != null) { + long[] windowStridesArray = new long[opts.windowStrides.size()]; + for (int i = 0 ; i < windowStridesArray.length ; i++) { + windowStridesArray[i] = opts.windowStrides.get(i); + } + opBuilder.setAttr("window_strides", windowStridesArray); + } + if (opts.explicitPadding != null) { + long[] explicitPaddingArray = new long[opts.explicitPadding.size()]; + for (int i = 0 ; i < explicitPaddingArray.length ; i++) { + explicitPaddingArray[i] = opts.explicitPadding.get(i); + } + opBuilder.setAttr("explicit_padding", explicitPaddingArray); + } + if (opts.lhsDilation != null) { + long[] lhsDilationArray = new long[opts.lhsDilation.size()]; + for (int i = 0 ; i < lhsDilationArray.length ; i++) { + lhsDilationArray[i] = opts.lhsDilation.get(i); + } + opBuilder.setAttr("lhs_dilation", lhsDilationArray); + } + if (opts.rhsDilation != null) { + long[] rhsDilationArray = new long[opts.rhsDilation.size()]; + for (int i = 0 ; i < rhsDilationArray.length ; i++) { + rhsDilationArray[i] = opts.rhsDilation.get(i); + } + opBuilder.setAttr("rhs_dilation", rhsDilationArray); + } + if (opts.batchGroupCount != null) { + opBuilder.setAttr("batch_group_count", opts.batchGroupCount); + } + if (opts.featureGroupCount != null) { + opBuilder.setAttr("feature_group_count", opts.featureGroupCount); + } + if (opts.dimensionNumbers != null) { + opBuilder.setAttr("dimension_numbers", opts.dimensionNumbers); + } + if (opts.rhsQuantizationAxis != null) { + opBuilder.setAttr("rhs_quantization_axis", opts.rhsQuantizationAxis); + } + } + } + return new UniformQuantizedConvolutionHybrid<>(opBuilder.build()); + } + + /** + * Sets the windowStrides option. + * + * @param windowStrides The stride of the sliding window for each spatial dimension of {@code lhs}. + * Must be an empty list (default) or a list of size (number of spatial dimensions). + * If an empty list is provided, the stride for each spatial dimension is set to 1. + * @return this Options instance. + */ + public static Options windowStrides(List windowStrides) { + return new Options().windowStrides(windowStrides); + } + + /** + * Sets the windowStrides option. + * + * @param windowStrides The stride of the sliding window for each spatial dimension of {@code lhs}. + * Must be an empty list (default) or a list of size (number of spatial dimensions). + * If an empty list is provided, the stride for each spatial dimension is set to 1. + * @return this Options instance. + */ + public static Options windowStrides(Long... windowStrides) { + return new Options().windowStrides(windowStrides); + } + + /** + * Sets the explicitPadding option. + * + * @param explicitPadding If {@code padding} Attr is {@code "EXPLICIT"}, must be set as a list indicating + * the explicit paddings at the start and end of each lhs spatial dimension. + * Otherwise, this Attr is must be empty. + *

(If used,) Must be a list of size 2 * (number of lhs spatial dimensions), + * where (explicit_padding[2 * i], explicit_padding[2 * i + 1]) indicates + * spatial_dimensions[i] (start_padding, end_padding). + * @return this Options instance. + */ + public static Options explicitPadding(List explicitPadding) { + return new Options().explicitPadding(explicitPadding); + } + + /** + * Sets the explicitPadding option. + * + * @param explicitPadding If {@code padding} Attr is {@code "EXPLICIT"}, must be set as a list indicating + * the explicit paddings at the start and end of each lhs spatial dimension. + * Otherwise, this Attr is must be empty. + *

(If used,) Must be a list of size 2 * (number of lhs spatial dimensions), + * where (explicit_padding[2 * i], explicit_padding[2 * i + 1]) indicates + * spatial_dimensions[i] (start_padding, end_padding). + * @return this Options instance. + */ + public static Options explicitPadding(Long... explicitPadding) { + return new Options().explicitPadding(explicitPadding); + } + + /** + * Sets the lhsDilation option. + * + * @param lhsDilation The dilation factor to apply in each spatial dimension of {@code lhs}. + * Must be an empty list (default) or a list of size (number of lhs spatial dimensions). + * If empty list, the dilation for each lhs spatial dimension is set to 1. + * @return this Options instance. + */ + public static Options lhsDilation(List lhsDilation) { + return new Options().lhsDilation(lhsDilation); + } + + /** + * Sets the lhsDilation option. + * + * @param lhsDilation The dilation factor to apply in each spatial dimension of {@code lhs}. + * Must be an empty list (default) or a list of size (number of lhs spatial dimensions). + * If empty list, the dilation for each lhs spatial dimension is set to 1. + * @return this Options instance. + */ + public static Options lhsDilation(Long... lhsDilation) { + return new Options().lhsDilation(lhsDilation); + } + + /** + * Sets the rhsDilation option. + * + * @param rhsDilation The dilation factor to apply in each spatial dimension of {@code rhs}. + * Must be an empty list (default) or a list of size (number of rhs spatial dimensions). + * If empty list, the dilation for each rhs spatial dimension is set to 1. + * @return this Options instance. + */ + public static Options rhsDilation(List rhsDilation) { + return new Options().rhsDilation(rhsDilation); + } + + /** + * Sets the rhsDilation option. + * + * @param rhsDilation The dilation factor to apply in each spatial dimension of {@code rhs}. + * Must be an empty list (default) or a list of size (number of rhs spatial dimensions). + * If empty list, the dilation for each rhs spatial dimension is set to 1. + * @return this Options instance. + */ + public static Options rhsDilation(Long... rhsDilation) { + return new Options().rhsDilation(rhsDilation); + } + + /** + * Sets the batchGroupCount option. + * + * @param batchGroupCount The number of batch groups. Used for grouped filters. + * Must be a divisor of output_feature. + * @return this Options instance. + */ + public static Options batchGroupCount(Long batchGroupCount) { + return new Options().batchGroupCount(batchGroupCount); + } + + /** + * Sets the featureGroupCount option. + * + * @param featureGroupCount The number of feature groups. Used for grouped convolutions. + * Must be a divisor of both lhs_feature and output_feature. + * @return this Options instance. + */ + public static Options featureGroupCount(Long featureGroupCount) { + return new Options().featureGroupCount(featureGroupCount); + } + + /** + * Sets the dimensionNumbers option. + * + * @param dimensionNumbers Structure of dimension information for the convolution op. + * Must be an empty string (default) or a serialized string of tensorflow.UniformQuantizedConvolutionDimensionNumbersAttr proto. + * If empty string, the default is {@code ("NCHW", "OIHW", "NCHW")} (for a 2D convolution). + * @return this Options instance. + */ + public static Options dimensionNumbers(String dimensionNumbers) { + return new Options().dimensionNumbers(dimensionNumbers); + } + + /** + * Sets the rhsQuantizationAxis option. + * + * @param rhsQuantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For the {@code rhs}, only per-tensor quantization + * or per-channel quantization along kernel_output_feature_dimension is supported. + * Thus, this attribute must be set to -1 or {@code dimension_numbers.kernel_output_feature_dimension}. + * Other values will raise error at OpKernel construction. + * @return this Options instance. + */ + public static Options rhsQuantizationAxis(Long rhsQuantizationAxis) { + return new Options().rhsQuantizationAxis(rhsQuantizationAxis); + } + + /** + * Gets output. + * The output Tensor of {@code Tout}, same rank as {@code lhs} and {@code rhs}. + * The output data is the non-quantized output data. + * @return output. + */ + public Output output() { + return output; + } + + @Override + public Output asOutput() { + return output; + } + + /** + * Optional attributes for {@link org.tensorflow.op.core.UniformQuantizedConvolutionHybrid} + */ + public static class Options { + private List windowStrides; + + private List explicitPadding; + + private List lhsDilation; + + private List rhsDilation; + + private Long batchGroupCount; + + private Long featureGroupCount; + + private String dimensionNumbers; + + private Long rhsQuantizationAxis; + + private Options() { + } + + /** + * Sets the windowStrides option. + * + * @param windowStrides The stride of the sliding window for each spatial dimension of {@code lhs}. + * Must be an empty list (default) or a list of size (number of spatial dimensions). + * If an empty list is provided, the stride for each spatial dimension is set to 1. + * @return this Options instance. + */ + public Options windowStrides(List windowStrides) { + this.windowStrides = windowStrides; + return this; + } + + /** + * Sets the windowStrides option. + * + * @param windowStrides The stride of the sliding window for each spatial dimension of {@code lhs}. + * Must be an empty list (default) or a list of size (number of spatial dimensions). + * If an empty list is provided, the stride for each spatial dimension is set to 1. + * @return this Options instance. + */ + public Options windowStrides(Long... windowStrides) { + this.windowStrides = Arrays.asList(windowStrides); + return this; + } + + /** + * Sets the explicitPadding option. + * + * @param explicitPadding If {@code padding} Attr is {@code "EXPLICIT"}, must be set as a list indicating + * the explicit paddings at the start and end of each lhs spatial dimension. + * Otherwise, this Attr is must be empty. + *

(If used,) Must be a list of size 2 * (number of lhs spatial dimensions), + * where (explicit_padding[2 * i], explicit_padding[2 * i + 1]) indicates + * spatial_dimensions[i] (start_padding, end_padding). + * @return this Options instance. + */ + public Options explicitPadding(List explicitPadding) { + this.explicitPadding = explicitPadding; + return this; + } + + /** + * Sets the explicitPadding option. + * + * @param explicitPadding If {@code padding} Attr is {@code "EXPLICIT"}, must be set as a list indicating + * the explicit paddings at the start and end of each lhs spatial dimension. + * Otherwise, this Attr is must be empty. + *

(If used,) Must be a list of size 2 * (number of lhs spatial dimensions), + * where (explicit_padding[2 * i], explicit_padding[2 * i + 1]) indicates + * spatial_dimensions[i] (start_padding, end_padding). + * @return this Options instance. + */ + public Options explicitPadding(Long... explicitPadding) { + this.explicitPadding = Arrays.asList(explicitPadding); + return this; + } + + /** + * Sets the lhsDilation option. + * + * @param lhsDilation The dilation factor to apply in each spatial dimension of {@code lhs}. + * Must be an empty list (default) or a list of size (number of lhs spatial dimensions). + * If empty list, the dilation for each lhs spatial dimension is set to 1. + * @return this Options instance. + */ + public Options lhsDilation(List lhsDilation) { + this.lhsDilation = lhsDilation; + return this; + } + + /** + * Sets the lhsDilation option. + * + * @param lhsDilation The dilation factor to apply in each spatial dimension of {@code lhs}. + * Must be an empty list (default) or a list of size (number of lhs spatial dimensions). + * If empty list, the dilation for each lhs spatial dimension is set to 1. + * @return this Options instance. + */ + public Options lhsDilation(Long... lhsDilation) { + this.lhsDilation = Arrays.asList(lhsDilation); + return this; + } + + /** + * Sets the rhsDilation option. + * + * @param rhsDilation The dilation factor to apply in each spatial dimension of {@code rhs}. + * Must be an empty list (default) or a list of size (number of rhs spatial dimensions). + * If empty list, the dilation for each rhs spatial dimension is set to 1. + * @return this Options instance. + */ + public Options rhsDilation(List rhsDilation) { + this.rhsDilation = rhsDilation; + return this; + } + + /** + * Sets the rhsDilation option. + * + * @param rhsDilation The dilation factor to apply in each spatial dimension of {@code rhs}. + * Must be an empty list (default) or a list of size (number of rhs spatial dimensions). + * If empty list, the dilation for each rhs spatial dimension is set to 1. + * @return this Options instance. + */ + public Options rhsDilation(Long... rhsDilation) { + this.rhsDilation = Arrays.asList(rhsDilation); + return this; + } + + /** + * Sets the batchGroupCount option. + * + * @param batchGroupCount The number of batch groups. Used for grouped filters. + * Must be a divisor of output_feature. + * @return this Options instance. + */ + public Options batchGroupCount(Long batchGroupCount) { + this.batchGroupCount = batchGroupCount; + return this; + } + + /** + * Sets the featureGroupCount option. + * + * @param featureGroupCount The number of feature groups. Used for grouped convolutions. + * Must be a divisor of both lhs_feature and output_feature. + * @return this Options instance. + */ + public Options featureGroupCount(Long featureGroupCount) { + this.featureGroupCount = featureGroupCount; + return this; + } + + /** + * Sets the dimensionNumbers option. + * + * @param dimensionNumbers Structure of dimension information for the convolution op. + * Must be an empty string (default) or a serialized string of tensorflow.UniformQuantizedConvolutionDimensionNumbersAttr proto. + * If empty string, the default is {@code ("NCHW", "OIHW", "NCHW")} (for a 2D convolution). + * @return this Options instance. + */ + public Options dimensionNumbers(String dimensionNumbers) { + this.dimensionNumbers = dimensionNumbers; + return this; + } + + /** + * Sets the rhsQuantizationAxis option. + * + * @param rhsQuantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For the {@code rhs}, only per-tensor quantization + * or per-channel quantization along kernel_output_feature_dimension is supported. + * Thus, this attribute must be set to -1 or {@code dimension_numbers.kernel_output_feature_dimension}. + * Other values will raise error at OpKernel construction. + * @return this Options instance. + */ + public Options rhsQuantizationAxis(Long rhsQuantizationAxis) { + this.rhsQuantizationAxis = rhsQuantizationAxis; + return this; + } + } + + @OpInputsMetadata( + outputsClass = UniformQuantizedConvolutionHybrid.class + ) + public static class Inputs extends RawOpInputs> { + /** + * Must be a non-quantized Tensor of {@code Tlhs}, rank >= 3. + */ + public final Operand lhs; + + /** + * Must be a quantized Tensor of {@code Trhs}, same rank as {@code lhs}. + */ + public final Operand rhs; + + /** + * The float value(s) used as scale factors when quantizing the original data that {@code rhs} represents. + * Must be a scalar Tensor for per-tensor quantization, + * or 1D Tensor of size {@code rhs.dim_size(kernel_output_feature_dimension)}, for per-channel quantization. + */ + public final Operand rhsScales; + + /** + * The int32 value(s) used as zero_point when quantizing original data that {@code rhs} represents. + * Same shape condition as {@code rhs_scales}. + */ + public final Operand rhsZeroPoints; + + /** + * The type of `lhs` input Tensor. + */ + public final DataType Tlhs; + + /** + * The type of `rhs` (quantized) input Tensor. + */ + public final DataType Trhs; + + /** + * The type of output Tensor. + */ + public final DataType Tout; + + /** + * The stride of the sliding window for each spatial dimension of `lhs`. + * Must be an empty list (default) or a list of size (number of spatial dimensions). + * If an empty list is provided, the stride for each spatial dimension is set to 1. + */ + public final long[] windowStrides; + + /** + * string from: `"SAME"`, `"VALID"`, or `"EXPLICIT"`, indicating the type of padding algorithm to use. + */ + public final String padding; + + /** + * If `padding` Attr is `"EXPLICIT"`, must be set as a list indicating + * the explicit paddings at the start and end of each lhs spatial dimension. + * Otherwise, this Attr is must be empty. + * + * (If used,) Must be a list of size 2 * (number of lhs spatial dimensions), + * where (explicit_padding[2 * i], explicit_padding[2 * i + 1]) indicates + * spatial_dimensions[i] (start_padding, end_padding). + */ + public final long[] explicitPadding; + + /** + * The dilation factor to apply in each spatial dimension of `lhs`. + * Must be an empty list (default) or a list of size (number of lhs spatial dimensions). + * If empty list, the dilation for each lhs spatial dimension is set to 1. + */ + public final long[] lhsDilation; + + /** + * The dilation factor to apply in each spatial dimension of `rhs`. + * Must be an empty list (default) or a list of size (number of rhs spatial dimensions). + * If empty list, the dilation for each rhs spatial dimension is set to 1. + */ + public final long[] rhsDilation; + + /** + * The number of batch groups. Used for grouped filters. + * Must be a divisor of output_feature. + */ + public final long batchGroupCount; + + /** + * The number of feature groups. Used for grouped convolutions. + * Must be a divisor of both lhs_feature and output_feature. + */ + public final long featureGroupCount; + + /** + * Structure of dimension information for the convolution op. + * Must be an empty string (default) or a serialized string of tensorflow.UniformQuantizedConvolutionDimensionNumbersAttr proto. + * If empty string, the default is `("NCHW", "OIHW", "NCHW")` (for a 2D convolution). + */ + public final String dimensionNumbers; + + /** + * Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For the `rhs`, only per-tensor quantization + * or per-channel quantization along kernel_output_feature_dimension is supported. + * Thus, this attribute must be set to -1 or `dimension_numbers.kernel_output_feature_dimension`. + * Other values will raise error at OpKernel construction. + */ + public final long rhsQuantizationAxis; + + /** + * The min value of the quantized data stored in `rhs`. + * For example, if `Trhs` is qint8, this must be set to -127 if narrow range quantized or -128 if not. + */ + public final long rhsQuantizationMinVal; + + /** + * The max value of the quantized data stored in `rhs`. + * For example, if `Trhs` is qint8, this must be set to 127. + */ + public final long rhsQuantizationMaxVal; + + public Inputs(GraphOperation op) { + super(new UniformQuantizedConvolutionHybrid<>(op), op, Arrays.asList("Tlhs", "Trhs", "Tout", "window_strides", "padding", "explicit_padding", "lhs_dilation", "rhs_dilation", "batch_group_count", "feature_group_count", "dimension_numbers", "rhs_quantization_axis", "rhs_quantization_min_val", "rhs_quantization_max_val")); + int inputIndex = 0; + lhs = (Operand) op.input(inputIndex++); + rhs = (Operand) op.input(inputIndex++); + rhsScales = (Operand) op.input(inputIndex++); + rhsZeroPoints = (Operand) op.input(inputIndex++); + Tlhs = op.attributes().getAttrType("Tlhs"); + Trhs = op.attributes().getAttrType("Trhs"); + Tout = op.attributes().getAttrType("Tout"); + windowStrides = op.attributes().getAttrIntList("window_strides"); + padding = op.attributes().getAttrString("padding"); + explicitPadding = op.attributes().getAttrIntList("explicit_padding"); + lhsDilation = op.attributes().getAttrIntList("lhs_dilation"); + rhsDilation = op.attributes().getAttrIntList("rhs_dilation"); + batchGroupCount = op.attributes().getAttrInt("batch_group_count"); + featureGroupCount = op.attributes().getAttrInt("feature_group_count"); + dimensionNumbers = op.attributes().getAttrString("dimension_numbers"); + rhsQuantizationAxis = op.attributes().getAttrInt("rhs_quantization_axis"); + rhsQuantizationMinVal = op.attributes().getAttrInt("rhs_quantization_min_val"); + rhsQuantizationMaxVal = op.attributes().getAttrInt("rhs_quantization_max_val"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniformQuantizedDot.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniformQuantizedDot.java new file mode 100644 index 00000000000..d29e48b295d --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniformQuantizedDot.java @@ -0,0 +1,401 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.Operands; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.TFloat32; +import org.tensorflow.types.TInt32; +import org.tensorflow.types.family.TNumber; + +/** + * Perform quantized dot of quantized Tensor {@code lhs} and quantized Tensor {@code rhs} to make quantized {@code output}. + * Given quantized {@code lhs} and quantized {@code rhs}, performs quantized dot on {@code lhs} and {@code rhs} to make quantized {@code output}. + * {@code lhs} and {@code rhs} must be 2D Tensors and the lhs.dim_size(1) must match rhs.dim_size(0). + * {@code lhs} and {@code rhs} must be quantized Tensor, where data value is quantized using the formula: + * quantized_data = clip(original_data / scale + zero_point, quantization_min_val, quantization_max_val). + * {@code output} is also quantized, using the same formula. + * If {@code rhs} is per-tensor quantized, {@code output} must be also per-tensor quantized. + * + * @param data type for {@code output} output + */ +@OpMetadata( + opType = UniformQuantizedDot.OP_NAME, + inputsClass = UniformQuantizedDot.Inputs.class +) +public final class UniformQuantizedDot extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "UniformQuantizedDot"; + + private Output output; + + public UniformQuantizedDot(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new UniformQuantizedDot operation. + * + * @param scope current scope + * @param lhs Must be a 2D Tensor of Tin. + * @param rhs Must be a 2D Tensor of Tin. + * @param lhsScales The float value(s) used as scale when quantizing original data that lhs represents. + * Must be a scalar Tensor (lhs supports only per-tensor quantization). + * @param lhsZeroPoints The int32 value(s) used as zero_point when quantizing original data that lhs represents. + * Same shape condition as lhs_scales. + * @param rhsScales The float value(s) used as scale when quantizing original data that rhs represents. + * Must be a scalar Tensor (per-tensor quantization) or 1D Tensor of size (rhs.dim_size(1),) (per-channel quantization). + * @param rhsZeroPoints The int32 value(s) used as zero_point when quantizing original data that rhs represents. + * Same shape condition as rhs_scales. + * @param outputScales The float value(s) to use as scales when quantizing original data that output represents. + * Must be a scalar Tensor (per-tensor quantization) or 1D Tensor of size (output.dim_size(1),) (per-channel quantization). + * If rhs is per-tensor quantized, output must be also per-tensor quantized. + * This means that if rhs_scales and rhs_zero_points are scalar Tensors, output_scales and output_zero_points must be scalar Tensors as well. + * @param outputZeroPoints The int32 value(s) used as zero_point when quantizing original data that output represents. + * Same shape condition as rhs_scales. + * @param Tout The type of output Tensor. + * @param lhsQuantizationMinVal The min value of the quantized data stored in lhs. + * For example, if Tin is qint8, this must be set to -127 if narrow range quantized or -128 if not. + * @param lhsQuantizationMaxVal The max value of the quantized data stored in rhs. + * For example, if Tin is qint8, this must be set to 127. + * @param rhsQuantizationMinVal The min value of the quantized data stored in rhs. + * For example, if Trhs is qint8, this must be set to -127 if narrow range quantized or -128 if not. + * @param rhsQuantizationMaxVal The max value of the quantized data stored in rhs. + * For example, if Trhs is qint8, this must be set to 127. + * @param outputQuantizationMinVal The min value of the quantized data stored in output. + * For example, if Tout is qint8, this must be set to -127 if narrow range quantized or -128 if not. + * @param outputQuantizationMaxVal The max value of the quantized data stored in output. + * For example, if Tout is qint8, this must be set to 127. + * @param options carries optional attribute values + * @param data type for {@code UniformQuantizedDot} output and operands + * @param data type for {@code UniformQuantizedDot} output and operands + * @return a new instance of UniformQuantizedDot + */ + @Endpoint( + describeByClass = true + ) + public static UniformQuantizedDot create(Scope scope, + Operand lhs, Operand rhs, Operand lhsScales, Operand lhsZeroPoints, + Operand rhsScales, Operand rhsZeroPoints, Operand outputScales, + Operand outputZeroPoints, Class Tout, Long lhsQuantizationMinVal, + Long lhsQuantizationMaxVal, Long rhsQuantizationMinVal, Long rhsQuantizationMaxVal, + Long outputQuantizationMinVal, Long outputQuantizationMaxVal, Options... options) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "UniformQuantizedDot"); + opBuilder.addInput(lhs.asOutput()); + opBuilder.addInput(rhs.asOutput()); + opBuilder.addInput(lhsScales.asOutput()); + opBuilder.addInput(lhsZeroPoints.asOutput()); + opBuilder.addInput(rhsScales.asOutput()); + opBuilder.addInput(rhsZeroPoints.asOutput()); + opBuilder.addInput(outputScales.asOutput()); + opBuilder.addInput(outputZeroPoints.asOutput()); + opBuilder.setAttr("Tout", Operands.toDataType(Tout)); + opBuilder.setAttr("lhs_quantization_min_val", lhsQuantizationMinVal); + opBuilder.setAttr("lhs_quantization_max_val", lhsQuantizationMaxVal); + opBuilder.setAttr("rhs_quantization_min_val", rhsQuantizationMinVal); + opBuilder.setAttr("rhs_quantization_max_val", rhsQuantizationMaxVal); + opBuilder.setAttr("output_quantization_min_val", outputQuantizationMinVal); + opBuilder.setAttr("output_quantization_max_val", outputQuantizationMaxVal); + if (options != null) { + for (Options opts : options) { + if (opts.lhsQuantizationAxis != null) { + opBuilder.setAttr("lhs_quantization_axis", opts.lhsQuantizationAxis); + } + if (opts.rhsQuantizationAxis != null) { + opBuilder.setAttr("rhs_quantization_axis", opts.rhsQuantizationAxis); + } + if (opts.outputQuantizationAxis != null) { + opBuilder.setAttr("output_quantization_axis", opts.outputQuantizationAxis); + } + } + } + return new UniformQuantizedDot<>(opBuilder.build()); + } + + /** + * Sets the lhsQuantizationAxis option. + * + * @param lhsQuantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For dot op lhs, only per-tensor quantization is supported. + * Thus, this attribute must be set to -1. Other values are rejected. + * @return this Options instance. + */ + public static Options lhsQuantizationAxis(Long lhsQuantizationAxis) { + return new Options().lhsQuantizationAxis(lhsQuantizationAxis); + } + + /** + * Sets the rhsQuantizationAxis option. + * + * @param rhsQuantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For dot op rhs, only per-tensor quantization or per-channel quantization along dimension 1 is supported. + * Thus, this attribute must be set to -1 or 1. Other values are rejected. + * @return this Options instance. + */ + public static Options rhsQuantizationAxis(Long rhsQuantizationAxis) { + return new Options().rhsQuantizationAxis(rhsQuantizationAxis); + } + + /** + * Sets the outputQuantizationAxis option. + * + * @param outputQuantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For dot op output, only per-tensor quantization or per-channel quantization along dimension 1 is supported. + * Thus, this attribute must be set to -1 or 1. Other values are rejected. + * @return this Options instance. + */ + public static Options outputQuantizationAxis(Long outputQuantizationAxis) { + return new Options().outputQuantizationAxis(outputQuantizationAxis); + } + + /** + * Gets output. + * The output 2D Tensor of Tout, whose shape is (lhs.dim_size(0), rhs.dim_size(1)). + * @return output. + */ + public Output output() { + return output; + } + + @Override + public Output asOutput() { + return output; + } + + /** + * Optional attributes for {@link org.tensorflow.op.core.UniformQuantizedDot} + */ + public static class Options { + private Long lhsQuantizationAxis; + + private Long rhsQuantizationAxis; + + private Long outputQuantizationAxis; + + private Options() { + } + + /** + * Sets the lhsQuantizationAxis option. + * + * @param lhsQuantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For dot op lhs, only per-tensor quantization is supported. + * Thus, this attribute must be set to -1. Other values are rejected. + * @return this Options instance. + */ + public Options lhsQuantizationAxis(Long lhsQuantizationAxis) { + this.lhsQuantizationAxis = lhsQuantizationAxis; + return this; + } + + /** + * Sets the rhsQuantizationAxis option. + * + * @param rhsQuantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For dot op rhs, only per-tensor quantization or per-channel quantization along dimension 1 is supported. + * Thus, this attribute must be set to -1 or 1. Other values are rejected. + * @return this Options instance. + */ + public Options rhsQuantizationAxis(Long rhsQuantizationAxis) { + this.rhsQuantizationAxis = rhsQuantizationAxis; + return this; + } + + /** + * Sets the outputQuantizationAxis option. + * + * @param outputQuantizationAxis Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For dot op output, only per-tensor quantization or per-channel quantization along dimension 1 is supported. + * Thus, this attribute must be set to -1 or 1. Other values are rejected. + * @return this Options instance. + */ + public Options outputQuantizationAxis(Long outputQuantizationAxis) { + this.outputQuantizationAxis = outputQuantizationAxis; + return this; + } + } + + @OpInputsMetadata( + outputsClass = UniformQuantizedDot.class + ) + public static class Inputs extends RawOpInputs> { + /** + * Must be a 2D Tensor of Tin. + */ + public final Operand lhs; + + /** + * Must be a 2D Tensor of Tin. + */ + public final Operand rhs; + + /** + * The float value(s) used as scale when quantizing original data that lhs represents. + * Must be a scalar Tensor (lhs supports only per-tensor quantization). + */ + public final Operand lhsScales; + + /** + * The int32 value(s) used as zero_point when quantizing original data that lhs represents. + * Same shape condition as lhs_scales. + */ + public final Operand lhsZeroPoints; + + /** + * The float value(s) used as scale when quantizing original data that rhs represents. + * Must be a scalar Tensor (per-tensor quantization) or 1D Tensor of size (rhs.dim_size(1),) (per-channel quantization). + */ + public final Operand rhsScales; + + /** + * The int32 value(s) used as zero_point when quantizing original data that rhs represents. + * Same shape condition as rhs_scales. + */ + public final Operand rhsZeroPoints; + + /** + * The float value(s) to use as scales when quantizing original data that output represents. + * Must be a scalar Tensor (per-tensor quantization) or 1D Tensor of size (output.dim_size(1),) (per-channel quantization). + * If rhs is per-tensor quantized, output must be also per-tensor quantized. + * This means that if rhs_scales and rhs_zero_points are scalar Tensors, output_scales and output_zero_points must be scalar Tensors as well. + */ + public final Operand outputScales; + + /** + * The int32 value(s) used as zero_point when quantizing original data that output represents. + * Same shape condition as rhs_scales. + */ + public final Operand outputZeroPoints; + + /** + * The type of lhs and rhs input Tensor. + */ + public final DataType Tin; + + /** + * The type of output Tensor. + */ + public final DataType Tout; + + /** + * Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For dot op lhs, only per-tensor quantization is supported. + * Thus, this attribute must be set to -1. Other values are rejected. + */ + public final long lhsQuantizationAxis; + + /** + * The min value of the quantized data stored in lhs. + * For example, if Tin is qint8, this must be set to -127 if narrow range quantized or -128 if not. + */ + public final long lhsQuantizationMinVal; + + /** + * The max value of the quantized data stored in rhs. + * For example, if Tin is qint8, this must be set to 127. + */ + public final long lhsQuantizationMaxVal; + + /** + * Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For dot op rhs, only per-tensor quantization or per-channel quantization along dimension 1 is supported. + * Thus, this attribute must be set to -1 or 1. Other values are rejected. + */ + public final long rhsQuantizationAxis; + + /** + * The min value of the quantized data stored in rhs. + * For example, if Trhs is qint8, this must be set to -127 if narrow range quantized or -128 if not. + */ + public final long rhsQuantizationMinVal; + + /** + * The max value of the quantized data stored in rhs. + * For example, if Trhs is qint8, this must be set to 127. + */ + public final long rhsQuantizationMaxVal; + + /** + * Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. + * For dot op output, only per-tensor quantization or per-channel quantization along dimension 1 is supported. + * Thus, this attribute must be set to -1 or 1. Other values are rejected. + */ + public final long outputQuantizationAxis; + + /** + * The min value of the quantized data stored in output. + * For example, if Tout is qint8, this must be set to -127 if narrow range quantized or -128 if not. + */ + public final long outputQuantizationMinVal; + + /** + * The max value of the quantized data stored in output. + * For example, if Tout is qint8, this must be set to 127. + */ + public final long outputQuantizationMaxVal; + + public Inputs(GraphOperation op) { + super(new UniformQuantizedDot<>(op), op, Arrays.asList("Tin", "Tout", "lhs_quantization_axis", "lhs_quantization_min_val", "lhs_quantization_max_val", "rhs_quantization_axis", "rhs_quantization_min_val", "rhs_quantization_max_val", "output_quantization_axis", "output_quantization_min_val", "output_quantization_max_val")); + int inputIndex = 0; + lhs = (Operand) op.input(inputIndex++); + rhs = (Operand) op.input(inputIndex++); + lhsScales = (Operand) op.input(inputIndex++); + lhsZeroPoints = (Operand) op.input(inputIndex++); + rhsScales = (Operand) op.input(inputIndex++); + rhsZeroPoints = (Operand) op.input(inputIndex++); + outputScales = (Operand) op.input(inputIndex++); + outputZeroPoints = (Operand) op.input(inputIndex++); + Tin = op.attributes().getAttrType("Tin"); + Tout = op.attributes().getAttrType("Tout"); + lhsQuantizationAxis = op.attributes().getAttrInt("lhs_quantization_axis"); + lhsQuantizationMinVal = op.attributes().getAttrInt("lhs_quantization_min_val"); + lhsQuantizationMaxVal = op.attributes().getAttrInt("lhs_quantization_max_val"); + rhsQuantizationAxis = op.attributes().getAttrInt("rhs_quantization_axis"); + rhsQuantizationMinVal = op.attributes().getAttrInt("rhs_quantization_min_val"); + rhsQuantizationMaxVal = op.attributes().getAttrInt("rhs_quantization_max_val"); + outputQuantizationAxis = op.attributes().getAttrInt("output_quantization_axis"); + outputQuantizationMinVal = op.attributes().getAttrInt("output_quantization_min_val"); + outputQuantizationMaxVal = op.attributes().getAttrInt("output_quantization_max_val"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniformRequantize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniformRequantize.java new file mode 100644 index 00000000000..50b421b8226 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniformRequantize.java @@ -0,0 +1,307 @@ +/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. + +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 + + http://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. +=======================================================================*/ + +// This class has been generated, DO NOT EDIT! + +package org.tensorflow.op.core; + +import java.util.Arrays; +import org.tensorflow.GraphOperation; +import org.tensorflow.Operand; +import org.tensorflow.Operation; +import org.tensorflow.OperationBuilder; +import org.tensorflow.Output; +import org.tensorflow.op.Operands; +import org.tensorflow.op.RawOp; +import org.tensorflow.op.RawOpInputs; +import org.tensorflow.op.Scope; +import org.tensorflow.op.annotation.Endpoint; +import org.tensorflow.op.annotation.OpInputsMetadata; +import org.tensorflow.op.annotation.OpMetadata; +import org.tensorflow.proto.DataType; +import org.tensorflow.types.TFloat32; +import org.tensorflow.types.TInt32; +import org.tensorflow.types.family.TNumber; + +/** + * Given quantized tensor {@code input}, requantize it with new quantization parameters. + * Given quantized tensor {@code input}, which was quantized using {input_scales, input_zero_points, input_quantization_axis, input_quantization_min_val, input_quantization_max_val}, + * requantize it to a tensor, which is quantized using {output_scales, output_zero_points, output_quantization_axis, output_quantization_min_val, output_quantization_max_val}. + * The requantization is done by using the formula: + * output_quantized_data = clip( + * (input_quantized_data - input_zero_point) * (input_scale / output_scale) + output_zero_point, + * output_quantization_min_val, + * output_quantization_max_val) + *

Per-tensor and per-axis quantization supported cases are followings: + *

    + *
  • per-tensor -> per-tensor
  • + *
  • per-tensor -> per-axis
  • + *
  • per-axis -> per-axis where input_quantization_axis equals output_quantization_axis. + * i.e. At least one among input_quantization_axis and output_quantization_axis must be -1, or two must be equal.
  • + *
+ * + * @param data type for {@code output} output + */ +@OpMetadata( + opType = UniformRequantize.OP_NAME, + inputsClass = UniformRequantize.Inputs.class +) +public final class UniformRequantize extends RawOp implements Operand { + /** + * The name of this op, as known by TensorFlow core engine + */ + public static final String OP_NAME = "UniformRequantize"; + + private Output output; + + public UniformRequantize(Operation operation) { + super(operation, OP_NAME); + int outputIdx = 0; + output = operation.output(outputIdx++); + } + + /** + * Factory method to create a class wrapping a new UniformRequantize operation. + * + * @param scope current scope + * @param input Must be a Tensor of Tin. + * @param inputScales The float value(s) used as scale(s) when quantizing original data that {@code input} represents. + * Must be a scalar Tensor if quantization_axis is -1 (per-tensor quantization), otherwise 1D Tensor of size (input.dim_size(quantization_axis),) (per-axis quantization). + * @param inputZeroPoints The int32 value(s) used as zero_point(s) when quantizing original data that {@code input} represents. + * Same shape condition as scales. + * @param outputScales The float value(s) to use as new scale(s) to quantize original data that {@code input} represents. + * Must be a scalar Tensor if quantization_axis is -1 (per-tensor quantization), otherwise 1D Tensor of size (input.dim_size(quantization_axis),) (per-axis quantization). + * @param outputZeroPoints The int32 value(s) to use as new zero_point(s) to quantize original data that {@code input} represents. + * Same shape condition as scales. + * @param Tout The type of output Tensor. A tf.DType from: tf.qint8, tf.qint32 + * @param inputQuantizationMinVal The quantization min value that was used when quantizing original data that {@code input} represents. + * The purpose of this attribute is typically (but not limited to) to indicate narrow range, where this is set to: + * {@code (Tin lowest) + 1} if narrow range, and {@code (Tin lowest)} otherwise. + * For example, if Tin is qint8, this is set to -127 if narrow range quantized or -128 if not. + * @param inputQuantizationMaxVal The quantization max value that was used when quantizing original data that {@code input} represents. + * The purpose of this attribute is typically (but not limited to) indicate narrow range, where this is set to: + * {@code (Tout max)} for both narrow range and not narrow range. + * For example, if Tin is qint8, this is set to 127. + * @param outputQuantizationMinVal The new quantization min value to quantize original data that {@code input} represents. + * @param outputQuantizationMaxVal The new quantization max value to quantize original data that {@code input} represents. + * @param options carries optional attribute values + * @param data type for {@code UniformRequantize} output and operands + * @return a new instance of UniformRequantize + */ + @Endpoint( + describeByClass = true + ) + public static UniformRequantize create(Scope scope, + Operand input, Operand inputScales, + Operand inputZeroPoints, Operand outputScales, + Operand outputZeroPoints, Class Tout, Long inputQuantizationMinVal, + Long inputQuantizationMaxVal, Long outputQuantizationMinVal, Long outputQuantizationMaxVal, + Options... options) { + OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "UniformRequantize"); + opBuilder.addInput(input.asOutput()); + opBuilder.addInput(inputScales.asOutput()); + opBuilder.addInput(inputZeroPoints.asOutput()); + opBuilder.addInput(outputScales.asOutput()); + opBuilder.addInput(outputZeroPoints.asOutput()); + opBuilder.setAttr("Tout", Operands.toDataType(Tout)); + opBuilder.setAttr("input_quantization_min_val", inputQuantizationMinVal); + opBuilder.setAttr("input_quantization_max_val", inputQuantizationMaxVal); + opBuilder.setAttr("output_quantization_min_val", outputQuantizationMinVal); + opBuilder.setAttr("output_quantization_max_val", outputQuantizationMaxVal); + if (options != null) { + for (Options opts : options) { + if (opts.inputQuantizationAxis != null) { + opBuilder.setAttr("input_quantization_axis", opts.inputQuantizationAxis); + } + if (opts.outputQuantizationAxis != null) { + opBuilder.setAttr("output_quantization_axis", opts.outputQuantizationAxis); + } + } + } + return new UniformRequantize<>(opBuilder.build()); + } + + /** + * Sets the inputQuantizationAxis option. + * + * @param inputQuantizationAxis The quantization axis that was used when quantizing original data that {@code input} represents. + * Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. Otherwise, it must be set within range [0, input.dims()). + * @return this Options instance. + */ + public static Options inputQuantizationAxis(Long inputQuantizationAxis) { + return new Options().inputQuantizationAxis(inputQuantizationAxis); + } + + /** + * Sets the outputQuantizationAxis option. + * + * @param outputQuantizationAxis The new quantization axis to use to quantize original data that {@code input} represents. + * @return this Options instance. + */ + public static Options outputQuantizationAxis(Long outputQuantizationAxis) { + return new Options().outputQuantizationAxis(outputQuantizationAxis); + } + + /** + * Gets output. + * The output quantized Tensor of Tout, whose shape is same as input. + * @return output. + */ + public Output output() { + return output; + } + + @Override + public Output asOutput() { + return output; + } + + /** + * Optional attributes for {@link org.tensorflow.op.core.UniformRequantize} + */ + public static class Options { + private Long inputQuantizationAxis; + + private Long outputQuantizationAxis; + + private Options() { + } + + /** + * Sets the inputQuantizationAxis option. + * + * @param inputQuantizationAxis The quantization axis that was used when quantizing original data that {@code input} represents. + * Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. Otherwise, it must be set within range [0, input.dims()). + * @return this Options instance. + */ + public Options inputQuantizationAxis(Long inputQuantizationAxis) { + this.inputQuantizationAxis = inputQuantizationAxis; + return this; + } + + /** + * Sets the outputQuantizationAxis option. + * + * @param outputQuantizationAxis The new quantization axis to use to quantize original data that {@code input} represents. + * @return this Options instance. + */ + public Options outputQuantizationAxis(Long outputQuantizationAxis) { + this.outputQuantizationAxis = outputQuantizationAxis; + return this; + } + } + + @OpInputsMetadata( + outputsClass = UniformRequantize.class + ) + public static class Inputs extends RawOpInputs> { + /** + * Must be a Tensor of Tin. + */ + public final Operand input; + + /** + * The float value(s) used as scale(s) when quantizing original data that {@code input} represents. + * Must be a scalar Tensor if quantization_axis is -1 (per-tensor quantization), otherwise 1D Tensor of size (input.dim_size(quantization_axis),) (per-axis quantization). + */ + public final Operand inputScales; + + /** + * The int32 value(s) used as zero_point(s) when quantizing original data that {@code input} represents. + * Same shape condition as scales. + */ + public final Operand inputZeroPoints; + + /** + * The float value(s) to use as new scale(s) to quantize original data that {@code input} represents. + * Must be a scalar Tensor if quantization_axis is -1 (per-tensor quantization), otherwise 1D Tensor of size (input.dim_size(quantization_axis),) (per-axis quantization). + */ + public final Operand outputScales; + + /** + * The int32 value(s) to use as new zero_point(s) to quantize original data that {@code input} represents. + * Same shape condition as scales. + */ + public final Operand outputZeroPoints; + + /** + * The type of input Tensor. A tf.DType from: tf.qint8, tf.qint32 + */ + public final DataType Tin; + + /** + * The type of output Tensor. A tf.DType from: tf.qint8, tf.qint32 + */ + public final DataType Tout; + + /** + * The quantization axis that was used when quantizing original data that `input` represents. + * Indicates the dimension index of the tensor where per-axis quantization is applied for the slices along that dimension. + * If set to -1 (default), this indicates per-tensor quantization. Otherwise, it must be set within range [0, input.dims()). + */ + public final long inputQuantizationAxis; + + /** + * The quantization min value that was used when quantizing original data that `input` represents. + * The purpose of this attribute is typically (but not limited to) to indicate narrow range, where this is set to: + * `(Tin lowest) + 1` if narrow range, and `(Tin lowest)` otherwise. + * For example, if Tin is qint8, this is set to -127 if narrow range quantized or -128 if not. + */ + public final long inputQuantizationMinVal; + + /** + * The quantization max value that was used when quantizing original data that `input` represents. + * The purpose of this attribute is typically (but not limited to) indicate narrow range, where this is set to: + * `(Tout max)` for both narrow range and not narrow range. + * For example, if Tin is qint8, this is set to 127. + */ + public final long inputQuantizationMaxVal; + + /** + * The new quantization axis to use to quantize original data that `input` represents. + */ + public final long outputQuantizationAxis; + + /** + * The new quantization min value to quantize original data that `input` represents. + */ + public final long outputQuantizationMinVal; + + /** + * The new quantization max value to quantize original data that `input` represents. + */ + public final long outputQuantizationMaxVal; + + public Inputs(GraphOperation op) { + super(new UniformRequantize<>(op), op, Arrays.asList("Tin", "Tout", "input_quantization_axis", "input_quantization_min_val", "input_quantization_max_val", "output_quantization_axis", "output_quantization_min_val", "output_quantization_max_val")); + int inputIndex = 0; + input = (Operand) op.input(inputIndex++); + inputScales = (Operand) op.input(inputIndex++); + inputZeroPoints = (Operand) op.input(inputIndex++); + outputScales = (Operand) op.input(inputIndex++); + outputZeroPoints = (Operand) op.input(inputIndex++); + Tin = op.attributes().getAttrType("Tin"); + Tout = op.attributes().getAttrType("Tout"); + inputQuantizationAxis = op.attributes().getAttrInt("input_quantization_axis"); + inputQuantizationMinVal = op.attributes().getAttrInt("input_quantization_min_val"); + inputQuantizationMaxVal = op.attributes().getAttrInt("input_quantization_max_val"); + outputQuantizationAxis = op.attributes().getAttrInt("output_quantization_axis"); + outputQuantizationMinVal = op.attributes().getAttrInt("output_quantization_min_val"); + outputQuantizationMaxVal = op.attributes().getAttrInt("output_quantization_max_val"); + } + } +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Unique.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Unique.java index 1b83208571e..e9c991d6fe0 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Unique.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Unique.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniqueWithCounts.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniqueWithCounts.java index a3da806e7ec..c3c42dd9a6d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniqueWithCounts.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UniqueWithCounts.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; @@ -50,7 +50,7 @@ *

For example: *

  * x = tf.constant([1, 1, 2, 4, 4, 4, 7, 8, 8])
- * y, idx, count = UniqueWithCountsV2(x, axis = [0])
+ * y, idx, count = tf.raw_ops.UniqueWithCountsV2(x=x, axis = [0])
  * y ==> [1, 2, 4, 7, 8]
  * idx ==> [0, 0, 1, 2, 2, 2, 3, 4, 4]
  * count ==> [2, 1, 3, 1, 2]
@@ -60,7 +60,7 @@
  * x = tf.constant([[1, 0, 0],
  *                 [1, 0, 0],
  *                 [2, 0, 0]])
- * y, idx, count = UniqueWithCountsV2(x, axis=[0])
+ * y, idx, count = tf.raw_ops.UniqueWithCountsV2(x=x, axis=[0])
  * y ==> [[1, 0, 0],
  *        [2, 0, 0]]
  * idx ==> [0, 0, 1]
@@ -71,7 +71,7 @@
  * x = tf.constant([[1, 0, 0],
  *                 [1, 0, 0],
  *                 [2, 0, 0]])
- * y, idx, count = UniqueWithCountsV2(x, axis=[1])
+ * y, idx, count = tf.raw_ops.UniqueWithCountsV2(x=x, axis=[1])
  * y ==> [[1, 0],
  *        [1, 0],
  *        [2, 0]]
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UnravelIndex.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UnravelIndex.java
index 119e99bfab1..87a0847cbfd 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UnravelIndex.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UnravelIndex.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Unstack.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Unstack.java
index d4839cd401a..c45413451c6 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Unstack.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Unstack.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Unstage.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Unstage.java
index 8b852c2b1b0..8e06cb86223 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Unstage.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Unstage.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UpperBound.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UpperBound.java
index 71743279c5d..cfc30d7ace7 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UpperBound.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/UpperBound.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TNumber;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/VarHandleOp.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/VarHandleOp.java
index 0e3f2320347..b94469e3eac 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/VarHandleOp.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/VarHandleOp.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Variable.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Variable.java
index b51d0b4d600..ba84d66563a 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Variable.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Variable.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/VariableShape.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/VariableShape.java
index 2335502a47c..122e04aafb6 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/VariableShape.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/VariableShape.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TNumber;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Where.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Where.java
index c3749233309..e6b1b72d9be 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Where.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/Where.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ZerosLike.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ZerosLike.java
index 11f5e80e514..8922a5159db 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ZerosLike.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/ZerosLike.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AnonymousIterator.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AnonymousIterator.java
index c4b49bcd61a..6bb10497fb3 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AnonymousIterator.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AnonymousIterator.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AnonymousMultiDeviceIterator.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AnonymousMultiDeviceIterator.java
index 2326a83dcc6..fa15a55c23d 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AnonymousMultiDeviceIterator.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AnonymousMultiDeviceIterator.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AssertCardinalityDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AssertCardinalityDataset.java
index 27a2353aea6..ac3b6759913 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AssertCardinalityDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AssertCardinalityDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AssertNextDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AssertNextDataset.java
index 9822486eaa6..811dd68ecfb 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AssertNextDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AssertNextDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AssertPrevDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AssertPrevDataset.java
index 0b19cda9591..9880173af1a 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AssertPrevDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AssertPrevDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AutoShardDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AutoShardDataset.java
index b35c017717f..5c61aaa5f2e 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AutoShardDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/AutoShardDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/BatchDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/BatchDataset.java
index 35cbecf07b7..2ca28ea1527 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/BatchDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/BatchDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TBool;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/BytesProducedStatsDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/BytesProducedStatsDataset.java
index d5a4595847c..aff99c61856 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/BytesProducedStatsDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/BytesProducedStatsDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/CSVDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/CSVDataset.java
index 6ca853508d8..2800eec0255 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/CSVDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/CSVDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TBool;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.TString;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/CacheDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/CacheDataset.java
index 8593e8e74ce..433f247b9f8 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/CacheDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/CacheDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ChooseFastestBranchDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ChooseFastestBranchDataset.java
index bbce0ceac21..547aef88b46 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ChooseFastestBranchDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ChooseFastestBranchDataset.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ChooseFastestDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ChooseFastestDataset.java
index 87d9dc2c238..8550322e753 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ChooseFastestDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ChooseFastestDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/CompressElement.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/CompressElement.java
index 27e9fb25305..c2ecdea80e6 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/CompressElement.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/CompressElement.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ConcatenateDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ConcatenateDataset.java
index 783ba1a61d9..dfc9967328f 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ConcatenateDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ConcatenateDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/DataServiceDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/DataServiceDataset.java
index bec171ea3b7..69a9ff6e089 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/DataServiceDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/DataServiceDataset.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/DatasetCardinality.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/DatasetCardinality.java
index 75e4d300539..610c2d00bfa 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/DatasetCardinality.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/DatasetCardinality.java
@@ -63,17 +63,36 @@ public DatasetCardinality(Operation operation) {
    *
    * @param scope current scope
    * @param inputDataset A variant tensor representing the dataset to return cardinality for.
+   * @param options carries optional attribute values
    * @return a new instance of DatasetCardinality
    */
   @Endpoint(
       describeByClass = true
   )
-  public static DatasetCardinality create(Scope scope, Operand inputDataset) {
+  public static DatasetCardinality create(Scope scope, Operand inputDataset,
+      Options... options) {
     OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "DatasetCardinality");
     opBuilder.addInput(inputDataset.asOutput());
+    if (options != null) {
+      for (Options opts : options) {
+        if (opts.cardinalityOptions != null) {
+          opBuilder.setAttr("cardinality_options", opts.cardinalityOptions);
+        }
+      }
+    }
     return new DatasetCardinality(opBuilder.build());
   }
 
+  /**
+   * Sets the cardinalityOptions option.
+   *
+   * @param cardinalityOptions the cardinalityOptions option
+   * @return this Options instance.
+   */
+  public static Options cardinalityOptions(String cardinalityOptions) {
+    return new Options().cardinalityOptions(cardinalityOptions);
+  }
+
   /**
    * Gets cardinality.
    * The cardinality of {@code input_dataset}. Named constants are used to represent
@@ -89,6 +108,27 @@ public Output asOutput() {
     return cardinality;
   }
 
+  /**
+   * Optional attributes for {@link org.tensorflow.op.data.DatasetCardinality}
+   */
+  public static class Options {
+    private String cardinalityOptions;
+
+    private Options() {
+    }
+
+    /**
+     * Sets the cardinalityOptions option.
+     *
+     * @param cardinalityOptions the cardinalityOptions option
+     * @return this Options instance.
+     */
+    public Options cardinalityOptions(String cardinalityOptions) {
+      this.cardinalityOptions = cardinalityOptions;
+      return this;
+    }
+  }
+
   @OpInputsMetadata(
       outputsClass = DatasetCardinality.class
   )
@@ -98,10 +138,16 @@ public static class Inputs extends RawOpInputs {
      */
     public final Operand inputDataset;
 
+    /**
+     * The cardinalityOptions attribute
+     */
+    public final String cardinalityOptions;
+
     public Inputs(GraphOperation op) {
-      super(new DatasetCardinality(op), op, Arrays.asList());
+      super(new DatasetCardinality(op), op, Arrays.asList("cardinality_options"));
       int inputIndex = 0;
       inputDataset = (Operand) op.input(inputIndex++);
+      cardinalityOptions = op.attributes().getAttrString("cardinality_options");
     }
   }
 }
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/DatasetToSingleElement.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/DatasetToSingleElement.java
index e5c5efd3b05..0a540b301ed 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/DatasetToSingleElement.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/DatasetToSingleElement.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/DenseToSparseBatchDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/DenseToSparseBatchDataset.java
index 789904aeda0..b1efac3edd0 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/DenseToSparseBatchDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/DenseToSparseBatchDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/DirectedInterleaveDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/DirectedInterleaveDataset.java
index a583cd1b5d3..8a7821681a4 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/DirectedInterleaveDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/DirectedInterleaveDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/FilterByLastComponentDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/FilterByLastComponentDataset.java
index eaafd453e8f..f0dad08ff04 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/FilterByLastComponentDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/FilterByLastComponentDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/FilterDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/FilterDataset.java
index 86a0a40a16e..02c2f5af6a9 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/FilterDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/FilterDataset.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/FinalizeDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/FinalizeDataset.java
index b6c4ce30c05..3a8be2b4127 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/FinalizeDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/FinalizeDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/FlatMapDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/FlatMapDataset.java
index 7135cca057d..969fc615b22 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/FlatMapDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/FlatMapDataset.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/GeneratorDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/GeneratorDataset.java
index 3ddd6d39c72..91198311bbc 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/GeneratorDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/GeneratorDataset.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/GroupByReducerDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/GroupByReducerDataset.java
index 36b22aafdb5..7a23a544216 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/GroupByReducerDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/GroupByReducerDataset.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/GroupByWindowDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/GroupByWindowDataset.java
index c095fbe762a..edded6d4b83 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/GroupByWindowDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/GroupByWindowDataset.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/IgnoreErrorsDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/IgnoreErrorsDataset.java
index f92d5dd99ca..1f109b302be 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/IgnoreErrorsDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/IgnoreErrorsDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/InterleaveDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/InterleaveDataset.java
index f4587e3553d..39ee750267d 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/InterleaveDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/InterleaveDataset.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/Iterator.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/Iterator.java
index 08f3d4b92fb..b7ff5d7b145 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/Iterator.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/Iterator.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/IteratorFromStringHandle.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/IteratorFromStringHandle.java
index 3ec0aa706a8..2f6fc9b9145 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/IteratorFromStringHandle.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/IteratorFromStringHandle.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/IteratorGetNext.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/IteratorGetNext.java
index b58061a845f..fd0a4481779 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/IteratorGetNext.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/IteratorGetNext.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/IteratorGetNextAsOptional.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/IteratorGetNextAsOptional.java
index 57c27267afe..b9da4691bf5 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/IteratorGetNextAsOptional.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/IteratorGetNextAsOptional.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/IteratorGetNextSync.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/IteratorGetNextSync.java
index ca32dec2a05..a2764a523aa 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/IteratorGetNextSync.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/IteratorGetNextSync.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/LMDBDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/LMDBDataset.java
index fcd731365fb..32c0aebc333 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/LMDBDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/LMDBDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/LatencyStatsDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/LatencyStatsDataset.java
index a9ea8c9a2ae..9fc509568ca 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/LatencyStatsDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/LatencyStatsDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/LeakyReluGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/LeakyReluGrad.java
index 3d7188a7a90..60954c93ca8 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/LeakyReluGrad.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/LeakyReluGrad.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/LegacyParallelInterleaveDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/LegacyParallelInterleaveDataset.java
index 02a04915898..708496bbf7b 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/LegacyParallelInterleaveDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/LegacyParallelInterleaveDataset.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ListDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ListDataset.java
index 0319fba37c1..c1bf352124f 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ListDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ListDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/LoadDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/LoadDataset.java
index b31100442f8..c903fd1469b 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/LoadDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/LoadDataset.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MapAndBatchDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MapAndBatchDataset.java
index abea5d4e58f..9893d964c67 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MapAndBatchDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MapAndBatchDataset.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TBool;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MapDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MapDataset.java
index 2eb6c611049..415c93e27ff 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MapDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MapDataset.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MaxIntraOpParallelismDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MaxIntraOpParallelismDataset.java
index abadffdca93..e52b13ca99f 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MaxIntraOpParallelismDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MaxIntraOpParallelismDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ModelDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ModelDataset.java
index 72fb9889022..6c8e5b9fe51 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ModelDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ModelDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MultiDeviceIterator.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MultiDeviceIterator.java
index 8918f328d47..8ea3edad25a 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MultiDeviceIterator.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MultiDeviceIterator.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MultiDeviceIteratorFromStringHandle.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MultiDeviceIteratorFromStringHandle.java
index 3457c131c7a..5bd9449ae58 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MultiDeviceIteratorFromStringHandle.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MultiDeviceIteratorFromStringHandle.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MultiDeviceIteratorGetNextFromShard.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MultiDeviceIteratorGetNextFromShard.java
index 72da5d7dd8e..d6707e2d3ae 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MultiDeviceIteratorGetNextFromShard.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/MultiDeviceIteratorGetNextFromShard.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/NonSerializableDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/NonSerializableDataset.java
index 376b9e1fccb..db9e1a2913a 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/NonSerializableDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/NonSerializableDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/OneShotIterator.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/OneShotIterator.java
index a10786c23c3..bde74b0f470 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/OneShotIterator.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/OneShotIterator.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/OptimizeDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/OptimizeDataset.java
index 957a49e84d9..fa32fbaae4f 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/OptimizeDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/OptimizeDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/OptionalFromValue.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/OptionalFromValue.java
index a6a9ea9e11a..791b4272eb9 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/OptionalFromValue.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/OptionalFromValue.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/OptionalGetValue.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/OptionalGetValue.java
index ee2f74f8e29..fb181846a81 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/OptionalGetValue.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/OptionalGetValue.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/OptionsDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/OptionsDataset.java
index 8d462730347..2d1abf662dd 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/OptionsDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/OptionsDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/PaddedBatchDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/PaddedBatchDataset.java
index 4eacb03e115..03ce797b8d4 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/PaddedBatchDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/PaddedBatchDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TBool;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ParallelBatchDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ParallelBatchDataset.java
index b7bd2a8519c..e3a3db1a1c7 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ParallelBatchDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ParallelBatchDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TBool;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ParallelFilterDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ParallelFilterDataset.java
index 35275d35ddc..73b0612d09d 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ParallelFilterDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ParallelFilterDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ParallelInterleaveDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ParallelInterleaveDataset.java
index 46f39ba956b..c4a47310a8f 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ParallelInterleaveDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ParallelInterleaveDataset.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ParallelMapDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ParallelMapDataset.java
index e9c10750582..bc2be5bb897 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ParallelMapDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ParallelMapDataset.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ParseExampleDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ParseExampleDataset.java
index 9672f0bddd2..0dc90a26cb7 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ParseExampleDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ParseExampleDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TNumber;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/PrefetchDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/PrefetchDataset.java
index 40dec5ff5e3..72d5f75a1fb 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/PrefetchDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/PrefetchDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/PrivateThreadPoolDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/PrivateThreadPoolDataset.java
index 65ec47e3086..2492f668092 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/PrivateThreadPoolDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/PrivateThreadPoolDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/RandomDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/RandomDataset.java
index ed291b03527..74dfcda9d91 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/RandomDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/RandomDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/RangeDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/RangeDataset.java
index a819901fb46..02188eb3f5e 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/RangeDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/RangeDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/RebatchDatasetV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/RebatchDatasetV2.java
index a33764f6207..427121b7c23 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/RebatchDatasetV2.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/RebatchDatasetV2.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TBool;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ReduceDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ReduceDataset.java
index 4373df63a5e..b9429fd9be7 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ReduceDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ReduceDataset.java
@@ -35,7 +35,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/RepeatDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/RepeatDataset.java
index 8757dc7ffdb..3fcb2205a61 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/RepeatDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/RepeatDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/RewriteDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/RewriteDataset.java
index 3fb58351d9a..5861d0242c0 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/RewriteDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/RewriteDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SamplingDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SamplingDataset.java
index 6d0f0715e96..8b4517c3e25 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SamplingDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SamplingDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SaveDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SaveDataset.java
index f526cb4cc63..20c9364c376 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SaveDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SaveDataset.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ScanDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ScanDataset.java
index 4b91aa6c5e3..912b2661fca 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ScanDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ScanDataset.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SetStatsAggregatorDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SetStatsAggregatorDataset.java
index 362ef102c95..6bfc8a263d8 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SetStatsAggregatorDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SetStatsAggregatorDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ShardDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ShardDataset.java
index 09d795f4253..20ef04f2b75 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ShardDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ShardDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ShuffleAndRepeatDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ShuffleAndRepeatDataset.java
index 23a273a3763..f44d5dd0ece 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ShuffleAndRepeatDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ShuffleAndRepeatDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ShuffleDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ShuffleDataset.java
index 4b26476ef3e..1858f93c05e 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ShuffleDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ShuffleDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SkipDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SkipDataset.java
index b33ab99c706..85797783ddc 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SkipDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SkipDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SleepDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SleepDataset.java
index 27ad89495a9..1a3b7e0170e 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SleepDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SleepDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SlidingWindowDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SlidingWindowDataset.java
index 4f5911d2c10..204bc29eda4 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SlidingWindowDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SlidingWindowDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SnapshotDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SnapshotDataset.java
index da4a3f2d1b8..6ac646afb5c 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SnapshotDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SnapshotDataset.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SnapshotDatasetReader.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SnapshotDatasetReader.java
index 8a382928b6d..2ffab3aafe9 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SnapshotDatasetReader.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SnapshotDatasetReader.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SnapshotNestedDatasetReader.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SnapshotNestedDatasetReader.java
index 462acffad24..3e706e261a6 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SnapshotNestedDatasetReader.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SnapshotNestedDatasetReader.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SparseTensorSliceDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SparseTensorSliceDataset.java
index 558b78bbef0..8d608575a11 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SparseTensorSliceDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SparseTensorSliceDataset.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SqlDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SqlDataset.java
index 96e6e0fd8f5..8a48643eedb 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SqlDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/SqlDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/TakeDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/TakeDataset.java
index e60cbe883e0..b3704385bc3 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/TakeDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/TakeDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/TakeWhileDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/TakeWhileDataset.java
index 70c7652d154..7ca1d236064 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/TakeWhileDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/TakeWhileDataset.java
@@ -34,7 +34,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/TensorDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/TensorDataset.java
index 4c427c20af3..b5150363f3b 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/TensorDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/TensorDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/TensorSliceDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/TensorSliceDataset.java
index dd289b8246b..37899fd1a85 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/TensorSliceDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/TensorSliceDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ThreadPoolDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ThreadPoolDataset.java
index 5675983ac09..611299e2137 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ThreadPoolDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ThreadPoolDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/UnbatchDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/UnbatchDataset.java
index ef3030276b7..ea786cbc1d3 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/UnbatchDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/UnbatchDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/UncompressElement.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/UncompressElement.java
index 1da6f3ccc87..97336805f9e 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/UncompressElement.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/UncompressElement.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/UniqueDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/UniqueDataset.java
index 78c5a24d167..0ffc2a9b219 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/UniqueDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/UniqueDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/WindowDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/WindowDataset.java
index 14019771016..2d9e9915eea 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/WindowDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/WindowDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TBool;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/WindowOp.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/WindowOp.java
index 79bfbcbfb04..950a6e29cc1 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/WindowOp.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/WindowOp.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ZipDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ZipDataset.java
index 36021b0ee23..61cf0f9666d 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ZipDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ZipDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/AssertNextDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/AssertNextDataset.java
index 25e3a5aeff3..83295fc0a03 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/AssertNextDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/AssertNextDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/AutoShardDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/AutoShardDataset.java
index 3322055b648..512ba5ec977 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/AutoShardDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/AutoShardDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/BytesProducedStatsDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/BytesProducedStatsDataset.java
index 3657142290b..a2b7bcbb519 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/BytesProducedStatsDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/BytesProducedStatsDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/CSVDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/CSVDataset.java
index 8737dac9224..4bfc56b54db 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/CSVDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/CSVDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TBool;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.TString;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ChooseFastestDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ChooseFastestDataset.java
index f7529ab5b75..a5630b98da4 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ChooseFastestDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ChooseFastestDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/DenseToSparseBatchDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/DenseToSparseBatchDataset.java
index 1df6a463d49..3c6d6626491 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/DenseToSparseBatchDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/DenseToSparseBatchDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/DirectedInterleaveDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/DirectedInterleaveDataset.java
index 0de6fc7f61e..8e26a20afcc 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/DirectedInterleaveDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/DirectedInterleaveDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/GroupByReducerDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/GroupByReducerDataset.java
index 20c476b6fcb..67cc4d8f667 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/GroupByReducerDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/GroupByReducerDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/GroupByWindowDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/GroupByWindowDataset.java
index d975f97b7ae..cb3d0f05fb1 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/GroupByWindowDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/GroupByWindowDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/IgnoreErrorsDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/IgnoreErrorsDataset.java
index d287bed06c5..c966eccb59c 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/IgnoreErrorsDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/IgnoreErrorsDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/LatencyStatsDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/LatencyStatsDataset.java
index 7eb664a8201..e611501f84d 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/LatencyStatsDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/LatencyStatsDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/LmdbDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/LmdbDataset.java
index 6296d4563b0..a26c01f36b3 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/LmdbDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/LmdbDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/MapAndBatchDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/MapAndBatchDataset.java
index 0c6c05a1007..e5f35e68ada 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/MapAndBatchDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/MapAndBatchDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TBool;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/MapDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/MapDataset.java
index 8e6405ae71d..94d434fdcc1 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/MapDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/MapDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/MaxIntraOpParallelismDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/MaxIntraOpParallelismDataset.java
index 9030bda2a03..092233ba204 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/MaxIntraOpParallelismDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/MaxIntraOpParallelismDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/NonSerializableDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/NonSerializableDataset.java
index 4d024046979..ecb5e93b327 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/NonSerializableDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/NonSerializableDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ParallelInterleaveDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ParallelInterleaveDataset.java
index dfc6c1cb8df..471d1023b09 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ParallelInterleaveDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ParallelInterleaveDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TBool;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ParseExampleDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ParseExampleDataset.java
index 12986d1fdf9..6eff8ea1486 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ParseExampleDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ParseExampleDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/PrivateThreadPoolDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/PrivateThreadPoolDataset.java
index 4e62c2a74d2..87c17471ced 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/PrivateThreadPoolDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/PrivateThreadPoolDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/RandomDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/RandomDataset.java
index 0863fd92d9a..797b01be2bc 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/RandomDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/RandomDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/RebatchDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/RebatchDataset.java
index 967e06e5914..4f32352f169 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/RebatchDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/RebatchDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ScanDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ScanDataset.java
index 6eb32c6a245..0e58bba12da 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ScanDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ScanDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/SetStatsAggregatorDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/SetStatsAggregatorDataset.java
index 5bfd98ab1eb..f6696ada9fa 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/SetStatsAggregatorDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/SetStatsAggregatorDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/SleepDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/SleepDataset.java
index 19f0f79c058..169a44f3f6b 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/SleepDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/SleepDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/SlidingWindowDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/SlidingWindowDataset.java
index 9c22d800f66..5d749a2413c 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/SlidingWindowDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/SlidingWindowDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/SqlDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/SqlDataset.java
index b74b03e9a3d..64db80ab7d8 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/SqlDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/SqlDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/TakeWhileDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/TakeWhileDataset.java
index fee6ebbacda..577c77c0043 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/TakeWhileDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/TakeWhileDataset.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ThreadPoolDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ThreadPoolDataset.java
index 131d0c8d167..808fa92ccc4 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ThreadPoolDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ThreadPoolDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/UnbatchDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/UnbatchDataset.java
index 4dba1006bab..b73128c26be 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/UnbatchDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/UnbatchDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/UniqueDataset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/UniqueDataset.java
index 20997a9dd7f..443b94068ed 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/UniqueDataset.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/UniqueDataset.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/CheckNumerics.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/CheckNumerics.java
index ab19e6d8a12..2f3992638aa 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/CheckNumerics.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/CheckNumerics.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugGradientIdentity.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugGradientIdentity.java
index 8b3f5f44639..442f395da51 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugGradientIdentity.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugGradientIdentity.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugGradientRefIdentity.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugGradientRefIdentity.java
index cc6b5e19b0f..a5ffd5e0963 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugGradientRefIdentity.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugGradientRefIdentity.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugIdentity.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugIdentity.java
index f83a87539d5..e175eee7549 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugIdentity.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugIdentity.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugNanCount.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugNanCount.java
index 84e742d1fa7..49d4b404831 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugNanCount.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugNanCount.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugNumericsSummary.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugNumericsSummary.java
index 74c4d4d9875..e5b328c6df8 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugNumericsSummary.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugNumericsSummary.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.family.TNumber;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/distribute/NcclAllReduce.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/distribute/NcclAllReduce.java
index 1f5a4e6b8cb..e6a3c3dd34d 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/distribute/NcclAllReduce.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/distribute/NcclAllReduce.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/distribute/NcclBroadcast.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/distribute/NcclBroadcast.java
index 256d59d0e2a..e0aff90571a 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/distribute/NcclBroadcast.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/distribute/NcclBroadcast.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/distribute/NcclReduce.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/distribute/NcclReduce.java
index 0721b36a4ff..e2d247bfcd5 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/distribute/NcclReduce.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/distribute/NcclReduce.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/dtypes/AsString.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/dtypes/AsString.java
index 7d995a1efae..85015d3f430 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/dtypes/AsString.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/dtypes/AsString.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/dtypes/Cast.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/dtypes/Cast.java
index 2bede17ecdb..1beaccb0f69 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/dtypes/Cast.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/dtypes/Cast.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/dtypes/Complex.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/dtypes/Complex.java
index 6e7ebaa9f7b..bd51c923678 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/dtypes/Complex.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/dtypes/Complex.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/dtypes/ToBool.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/dtypes/ToBool.java
index d7936c0876a..15177c59c2e 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/dtypes/ToBool.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/dtypes/ToBool.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TBool;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/AdjustContrast.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/AdjustContrast.java
index 5ebee91953e..13591066390 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/AdjustContrast.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/AdjustContrast.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.family.TNumber;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/AdjustHue.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/AdjustHue.java
index 5b683cac198..61270202856 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/AdjustHue.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/AdjustHue.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.family.TNumber;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/AdjustSaturation.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/AdjustSaturation.java
index 328292d8d52..c9f0d6cd41b 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/AdjustSaturation.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/AdjustSaturation.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.family.TNumber;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/CropAndResize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/CropAndResize.java
index 0ddd67b73e1..b2af23cd524 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/CropAndResize.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/CropAndResize.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TNumber;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/CropAndResizeGradBoxes.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/CropAndResizeGradBoxes.java
index 4311250543b..22b736ef525 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/CropAndResizeGradBoxes.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/CropAndResizeGradBoxes.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TNumber;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/CropAndResizeGradImage.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/CropAndResizeGradImage.java
index 35682f58405..ed3629c1b84 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/CropAndResizeGradImage.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/CropAndResizeGradImage.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TNumber;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DecodeImage.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DecodeImage.java
index 7387fbee8d4..4bc47f689f8 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DecodeImage.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DecodeImage.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.TUint8;
 import org.tensorflow.types.family.TNumber;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DecodePng.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DecodePng.java
index 3ef5be72950..9c2b4efe0d5 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DecodePng.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DecodePng.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.TUint8;
 import org.tensorflow.types.family.TNumber;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DrawBoundingBoxes.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DrawBoundingBoxes.java
index 5b45c9e1bcc..e53cf16ba01 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DrawBoundingBoxes.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DrawBoundingBoxes.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.family.TNumber;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/EncodePng.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/EncodePng.java
index 6e392fbdf94..832c8433a65 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/EncodePng.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/EncodePng.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TNumber;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ExtractImagePatches.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ExtractImagePatches.java
index c122386b1f1..5ace2859e2f 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ExtractImagePatches.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ExtractImagePatches.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ExtractJpegShape.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ExtractJpegShape.java
index 45bb8c596fc..0e1894be9e4 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ExtractJpegShape.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ExtractJpegShape.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TNumber;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/HsvToRgb.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/HsvToRgb.java
index 6bfd699c401..1ea4d5d87e3 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/HsvToRgb.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/HsvToRgb.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ImageProjectiveTransformV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ImageProjectiveTransformV2.java
index 3958693f636..638350a8f99 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ImageProjectiveTransformV2.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ImageProjectiveTransformV2.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TNumber;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ImageProjectiveTransformV3.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ImageProjectiveTransformV3.java
index 494003401a9..66cf0a650d8 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ImageProjectiveTransformV3.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ImageProjectiveTransformV3.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TNumber;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/NonMaxSuppression.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/NonMaxSuppression.java
index aad1cf56f90..17d9e267ff4 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/NonMaxSuppression.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/NonMaxSuppression.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TNumber;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/QuantizedResizeBilinear.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/QuantizedResizeBilinear.java
index 51ecf7d3404..f6a3a06575f 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/QuantizedResizeBilinear.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/QuantizedResizeBilinear.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TNumber;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/RandomCrop.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/RandomCrop.java
index c97c40dd86e..cae7b1f75b6 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/RandomCrop.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/RandomCrop.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TNumber;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeArea.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeArea.java
index de79d50d73a..db02f5d5dd4 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeArea.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeArea.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TNumber;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeBicubic.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeBicubic.java
index 51b10f13985..8eec7e89525 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeBicubic.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeBicubic.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TNumber;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeBicubicGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeBicubicGrad.java
index 2478b794f1f..798e5403a82 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeBicubicGrad.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeBicubicGrad.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.family.TNumber;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeBilinear.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeBilinear.java
index d4122305c74..3ee1f985406 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeBilinear.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeBilinear.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TNumber;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeBilinearGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeBilinearGrad.java
index 5aa286b661e..5fd0c16496a 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeBilinearGrad.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeBilinearGrad.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.family.TNumber;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeNearestNeighbor.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeNearestNeighbor.java
index e82591e91dd..0cfc28b2630 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeNearestNeighbor.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeNearestNeighbor.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TNumber;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeNearestNeighborGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeNearestNeighborGrad.java
index 623d5a0e0d9..db96fb6b41c 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeNearestNeighborGrad.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ResizeNearestNeighborGrad.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TNumber;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/RgbToHsv.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/RgbToHsv.java
index 5de7f1a86cd..c282c937f83 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/RgbToHsv.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/RgbToHsv.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/SampleDistortedBoundingBox.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/SampleDistortedBoundingBox.java
index a681c2bdf01..d8afaa4248a 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/SampleDistortedBoundingBox.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/SampleDistortedBoundingBox.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.family.TNumber;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ScaleAndTranslate.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ScaleAndTranslate.java
index 36cbd9030fd..0e56ec97201 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ScaleAndTranslate.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ScaleAndTranslate.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TNumber;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ScaleAndTranslateGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ScaleAndTranslateGrad.java
index 633360df98a..e93037c29e1 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ScaleAndTranslateGrad.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ScaleAndTranslateGrad.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.family.TNumber;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/StatelessSampleDistortedBoundingBox.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/StatelessSampleDistortedBoundingBox.java
index 411b440e29e..cd5be371753 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/StatelessSampleDistortedBoundingBox.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/StatelessSampleDistortedBoundingBox.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.family.TNumber;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/DecodeCsv.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/DecodeCsv.java
index 44ad238d7b0..9d18bad1372 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/DecodeCsv.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/DecodeCsv.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/DecodePaddedRaw.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/DecodePaddedRaw.java
index 5b29f0cebde..488397f225b 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/DecodePaddedRaw.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/DecodePaddedRaw.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TNumber;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/DecodeRaw.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/DecodeRaw.java
index f410c3a0e15..ff25cc9248e 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/DecodeRaw.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/DecodeRaw.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/DeserializeManySparse.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/DeserializeManySparse.java
index cb71c1fe0f4..74f53c0713a 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/DeserializeManySparse.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/DeserializeManySparse.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/FifoQueue.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/FifoQueue.java
index bcb57f0282c..fbff1631f25 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/FifoQueue.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/FifoQueue.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/PaddingFifoQueue.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/PaddingFifoQueue.java
index aa408b21727..15779b55017 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/PaddingFifoQueue.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/PaddingFifoQueue.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/ParseExample.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/ParseExample.java
index 993c5fab8af..9a21c650a1d 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/ParseExample.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/ParseExample.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TNumber;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/ParseSequenceExample.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/ParseSequenceExample.java
index 97989b4aba0..7f021a8a1cc 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/ParseSequenceExample.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/ParseSequenceExample.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TBool;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.TString;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/ParseSingleExample.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/ParseSingleExample.java
index cf52f073e0e..7a3c1d537c8 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/ParseSingleExample.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/ParseSingleExample.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/ParseSingleSequenceExample.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/ParseSingleSequenceExample.java
index 224ac4025ca..750cabb947e 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/ParseSingleSequenceExample.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/ParseSingleSequenceExample.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/ParseTensor.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/ParseTensor.java
index 71662e96013..fb90f207f31 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/ParseTensor.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/ParseTensor.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/PriorityQueue.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/PriorityQueue.java
index 8f60cdb8349..e86f1d0cc58 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/PriorityQueue.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/PriorityQueue.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/QueueDequeue.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/QueueDequeue.java
index 56b626bb8a6..573ac6bb16e 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/QueueDequeue.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/QueueDequeue.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/QueueDequeueMany.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/QueueDequeueMany.java
index 1791c42615b..0085123a8d5 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/QueueDequeueMany.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/QueueDequeueMany.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/QueueDequeueUpTo.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/QueueDequeueUpTo.java
index 26f95898a1f..98683f03fa2 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/QueueDequeueUpTo.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/QueueDequeueUpTo.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/QueueEnqueue.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/QueueEnqueue.java
index 35f7526af36..02efd3faafc 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/QueueEnqueue.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/QueueEnqueue.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/QueueEnqueueMany.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/QueueEnqueueMany.java
index 8b4e55b027c..003764a882b 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/QueueEnqueueMany.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/QueueEnqueueMany.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/RandomShuffleQueue.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/RandomShuffleQueue.java
index 08f452a0477..214039fc245 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/RandomShuffleQueue.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/RandomShuffleQueue.java
@@ -33,7 +33,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/SerializeManySparse.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/SerializeManySparse.java
index f9b27d262d0..ffc7263ca2b 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/SerializeManySparse.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/SerializeManySparse.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/SerializeSparse.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/SerializeSparse.java
index d0e9d6bb6d8..43749066d72 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/SerializeSparse.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/SerializeSparse.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/SerializeTensor.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/SerializeTensor.java
index 478e0d758e4..0f73a3b85f9 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/SerializeTensor.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/SerializeTensor.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TString;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BandPart.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BandPart.java
index 718cc49b552..1ea8cd6801b 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BandPart.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BandPart.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BandedTriangularSolve.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BandedTriangularSolve.java
index dad1521dddb..8caba623263 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BandedTriangularSolve.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BandedTriangularSolve.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchCholesky.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchCholesky.java
index 96980feb5e4..3d1fc25eade 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchCholesky.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchCholesky.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchCholeskyGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchCholeskyGrad.java
index 664d92f872d..42751d7ae66 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchCholeskyGrad.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchCholeskyGrad.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixBandPart.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixBandPart.java
index df7d00b0928..352add1c61d 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixBandPart.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixBandPart.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixDeterminant.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixDeterminant.java
index 301cf84170b..dab47bf0b3f 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixDeterminant.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixDeterminant.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixDiag.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixDiag.java
index 1b1e7f5e8ec..25ecfa67c8f 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixDiag.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixDiag.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixDiagPart.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixDiagPart.java
index c43ce3f477a..51a6715ed6c 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixDiagPart.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixDiagPart.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixInverse.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixInverse.java
index b11be365a33..480b5213a1a 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixInverse.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixInverse.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixSetDiag.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixSetDiag.java
index 34d09ea742f..eeeeda6c5c8 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixSetDiag.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixSetDiag.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixSolve.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixSolve.java
index 2b9343f4ec0..85095eea227 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixSolve.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixSolve.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixSolveLs.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixSolveLs.java
index bb11bad3d7f..0f318897824 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixSolveLs.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixSolveLs.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat64;
 import org.tensorflow.types.family.TNumber;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixTriangularSolve.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixTriangularSolve.java
index a5a5dff7ee2..791cff78395 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixTriangularSolve.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchMatrixTriangularSolve.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchSelfAdjointEig.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchSelfAdjointEig.java
index f07a97ef0ae..a0905b13313 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchSelfAdjointEig.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchSelfAdjointEig.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchSvd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchSvd.java
index a9389c6b0ae..aebc74a9d54 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchSvd.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/BatchSvd.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Cholesky.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Cholesky.java
index 4ef13a4aaac..7e8d2bff56a 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Cholesky.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Cholesky.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/CholeskyGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/CholeskyGrad.java
index ab049f312f9..268de4ec147 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/CholeskyGrad.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/CholeskyGrad.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/ConjugateTranspose.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/ConjugateTranspose.java
index a3e178fdf77..ea8e271dae4 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/ConjugateTranspose.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/ConjugateTranspose.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Cross.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Cross.java
index 7232df75faa..0d073612f2e 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Cross.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Cross.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Det.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Det.java
index 7e001a0ac17..8c59b74906a 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Det.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Det.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Eig.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Eig.java
index f880588710f..f8dda1d128e 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Eig.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Eig.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Einsum.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Einsum.java
index 6a34c581590..dc15cf73f39 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Einsum.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Einsum.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/EuclideanNorm.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/EuclideanNorm.java
index 8d2666fcf76..ac007f7cb9f 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/EuclideanNorm.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/EuclideanNorm.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Inv.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Inv.java
index 247c87d43e3..e377e30a2fc 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Inv.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Inv.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/LogMatrixDeterminant.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/LogMatrixDeterminant.java
index dcefb89c704..e2086432c54 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/LogMatrixDeterminant.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/LogMatrixDeterminant.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Lu.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Lu.java
index ac7cdba0eb4..e4c12384373 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Lu.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Lu.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TNumber;
 import org.tensorflow.types.family.TType;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatMul.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatMul.java
index 3bb2d244952..9f5c57a4a00 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatMul.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatMul.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixDiag.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixDiag.java
index 5257ede5ed5..6ee0f2f4e35 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixDiag.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixDiag.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixDiagPart.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixDiagPart.java
index 285b65026db..f8d3cbfff71 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixDiagPart.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixDiagPart.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixDiagPartV3.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixDiagPartV3.java
index 98984855adb..ed1d8d1e1d7 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixDiagPartV3.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixDiagPartV3.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixDiagV3.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixDiagV3.java
index 94ab2dd3b11..d7d40397324 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixDiagV3.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixDiagV3.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixLogarithm.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixLogarithm.java
index ebb79d387d2..d003dacada8 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixLogarithm.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixLogarithm.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixSetDiag.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixSetDiag.java
index 215d12b2127..6b6d56fc25b 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixSetDiag.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixSetDiag.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixSolveLs.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixSolveLs.java
index 67818b952f8..5a0d1095357 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixSolveLs.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixSolveLs.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Qr.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Qr.java
index 813bd1a2f3a..504a452f31a 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Qr.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Qr.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/QuantizedMatMul.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/QuantizedMatMul.java
index 59d63d650f6..75da7019d82 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/QuantizedMatMul.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/QuantizedMatMul.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.family.TNumber;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/QuantizedMatMulWithBias.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/QuantizedMatMulWithBias.java
index 0c64df7ce7b..dde3f0217f6 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/QuantizedMatMulWithBias.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/QuantizedMatMulWithBias.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.family.TNumber;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/QuantizedMatMulWithBiasAndRelu.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/QuantizedMatMulWithBiasAndRelu.java
index f3870cd12a2..ad5dc0c0b07 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/QuantizedMatMulWithBiasAndRelu.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/QuantizedMatMulWithBiasAndRelu.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.family.TNumber;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/QuantizedMatMulWithBiasAndReluAndRequantize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/QuantizedMatMulWithBiasAndReluAndRequantize.java
index d5fe0759165..de55a4192c5 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/QuantizedMatMulWithBiasAndReluAndRequantize.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/QuantizedMatMulWithBiasAndReluAndRequantize.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.family.TNumber;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/SelfAdjointEig.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/SelfAdjointEig.java
index ed2e206b3d8..34eba8a4973 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/SelfAdjointEig.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/SelfAdjointEig.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Solve.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Solve.java
index c9eebafa621..7d7de9be3a9 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Solve.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Solve.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Sqrtm.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Sqrtm.java
index f0c51830c15..c43fc6f12a9 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Sqrtm.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Sqrtm.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Svd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Svd.java
index 47c2e3762f2..b4aadf43341 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Svd.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Svd.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/TensorDiag.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/TensorDiag.java
index 56774fe6037..ee48c1a150a 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/TensorDiag.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/TensorDiag.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/TensorDiagPart.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/TensorDiagPart.java
index 4c920c62ae4..0cad00a8e69 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/TensorDiagPart.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/TensorDiagPart.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Transpose.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Transpose.java
index c2b10e66d75..a199903e8bf 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Transpose.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/Transpose.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/TriangularSolve.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/TriangularSolve.java
index 1769f7ae2de..f8bb81b0fe3 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/TriangularSolve.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/TriangularSolve.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/TridiagonalMatMul.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/TridiagonalMatMul.java
index f4a67fd8c70..888c225e868 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/TridiagonalMatMul.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/TridiagonalMatMul.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/TridiagonalSolve.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/TridiagonalSolve.java
index 9352c3b9892..639934b00d2 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/TridiagonalSolve.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/TridiagonalSolve.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/CSRSparseMatrixComponents.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/CSRSparseMatrixComponents.java
index d6cbd766466..fe274dd92fe 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/CSRSparseMatrixComponents.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/CSRSparseMatrixComponents.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/CSRSparseMatrixToDense.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/CSRSparseMatrixToDense.java
index 9ad944b4ec5..51efcb22028 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/CSRSparseMatrixToDense.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/CSRSparseMatrixToDense.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/CSRSparseMatrixToSparseTensor.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/CSRSparseMatrixToSparseTensor.java
index 084da4f94a3..42b4b939942 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/CSRSparseMatrixToSparseTensor.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/CSRSparseMatrixToSparseTensor.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/DenseToCSRSparseMatrix.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/DenseToCSRSparseMatrix.java
index c7a41c3ab1f..51bd78ebba5 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/DenseToCSRSparseMatrix.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/DenseToCSRSparseMatrix.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixAdd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixAdd.java
index bff610c900a..f03547667d4 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixAdd.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixAdd.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixMatMul.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixMatMul.java
index bd96f14313a..ed604cc06de 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixMatMul.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixMatMul.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixMul.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixMul.java
index b5532601194..1c5da907e65 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixMul.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixMul.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixSoftmax.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixSoftmax.java
index ba7fdb377d2..3a7b3df59a9 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixSoftmax.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixSoftmax.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixSoftmaxGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixSoftmaxGrad.java
index 3c609fef899..7e0dc6d868a 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixSoftmaxGrad.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixSoftmaxGrad.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixSparseCholesky.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixSparseCholesky.java
index e6d1739f46c..6c0aa5edc39 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixSparseCholesky.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixSparseCholesky.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt32;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixSparseMatMul.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixSparseMatMul.java
index d8d732ee9ea..82b138ab67e 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixSparseMatMul.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixSparseMatMul.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixTranspose.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixTranspose.java
index 1b4f6f2fc23..066bf814b88 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixTranspose.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixTranspose.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixZeros.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixZeros.java
index 53725175b20..f1d9ec2b940 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixZeros.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseMatrixZeros.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseTensorToCSRSparseMatrix.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseTensorToCSRSparseMatrix.java
index c5ff95795bd..9611872074b 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseTensorToCSRSparseMatrix.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/sparse/SparseTensorToCSRSparseMatrix.java
@@ -29,7 +29,7 @@
 import org.tensorflow.op.annotation.Endpoint;
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TInt64;
 import org.tensorflow.types.family.TType;
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Abs.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Abs.java
index cce2da779a6..30d33ab1739 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Abs.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Abs.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TNumber;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/AccumulateN.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/AccumulateN.java
index 3f1ebc5beee..ab24d78f06c 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/AccumulateN.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/AccumulateN.java
@@ -32,7 +32,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Acos.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Acos.java
index 24a72183a34..531d7a8d4ea 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Acos.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Acos.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Acosh.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Acosh.java
index 92c4379d558..819fbd092d7 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Acosh.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Acosh.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Add.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Add.java
index 9cb4ba45c05..ebe1b211250 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Add.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Add.java
@@ -30,7 +30,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/AddN.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/AddN.java
index b8689257712..1422402e97f 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/AddN.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/AddN.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.family.TType;
 
 /**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Angle.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Angle.java
index 6bd151af293..091cf604708 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Angle.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Angle.java
@@ -31,7 +31,7 @@
 import org.tensorflow.op.annotation.OpInputsMetadata;
 import org.tensorflow.op.annotation.OpMetadata;
 import org.tensorflow.op.annotation.Operator;
-import org.tensorflow.proto.framework.DataType;
+import org.tensorflow.proto.DataType;
 import org.tensorflow.types.TFloat32;
 import org.tensorflow.types.family.TNumber;
 import org.tensorflow.types.family.TType;
@@ -46,7 +46,7 @@
  * 

For example: *

  * # tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j]
- * tf.angle(input) ==> [2.0132, 1.056]
+ * tf.math.angle(input) ==> [2.0132, 1.056]
  * 
*

{@literal @}compatibility(numpy)
* Equivalent to np.angle. diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ApproximateEqual.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ApproximateEqual.java index 235ca2d88fe..9563b5931fa 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ApproximateEqual.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ApproximateEqual.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ArgMax.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ArgMax.java index cdd87f45346..58d4908f328 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ArgMax.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ArgMax.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ArgMin.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ArgMin.java index b5f76265071..e425bf9d5fb 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ArgMin.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ArgMin.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Asin.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Asin.java index 1ff6bf6c949..70dde8d338b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Asin.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Asin.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Asinh.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Asinh.java index 3e8c4741a5e..d47e2816950 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Asinh.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Asinh.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Atan.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Atan.java index 44bb87da515..38c77fafaaf 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Atan.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Atan.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Atan2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Atan2.java index d733c031b9b..d713ff0117f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Atan2.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Atan2.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Atanh.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Atanh.java index 150b6dbf5e2..0861e65afdd 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Atanh.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Atanh.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/BesselI0.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/BesselI0.java index db077571303..21600076d11 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/BesselI0.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/BesselI0.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/BesselI0e.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/BesselI0e.java index 33654f666ab..56b7e32d580 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/BesselI0e.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/BesselI0e.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/BesselI1.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/BesselI1.java index 6225eb37477..aed4cdf05a5 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/BesselI1.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/BesselI1.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/BesselI1e.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/BesselI1e.java index dfa7a16e1fc..eca89528362 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/BesselI1e.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/BesselI1e.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Betainc.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Betainc.java index e63927d5a69..95ed3581d7d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Betainc.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Betainc.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Bincount.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Bincount.java index f83e26d6e4a..38fbf13245b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Bincount.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Bincount.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Ceil.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Ceil.java index 5ec08912e44..983879a8462 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Ceil.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Ceil.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ComplexAbs.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ComplexAbs.java index 753f9830c3a..a04a750ea2f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ComplexAbs.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ComplexAbs.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Conj.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Conj.java index 6c77812bc97..ea1edccd8cc 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Conj.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Conj.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Cos.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Cos.java index 94a43a3b1e8..1066edbcf5d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Cos.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Cos.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Cosh.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Cosh.java index e8b3264c433..3cefebf9599 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Cosh.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Cosh.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Cumprod.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Cumprod.java index ba8127e827b..5a0c8151705 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Cumprod.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Cumprod.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Cumsum.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Cumsum.java index 82c25812a2f..1755cceb31a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Cumsum.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Cumsum.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/CumulativeLogsumexp.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/CumulativeLogsumexp.java index 90cedbe900f..86f6111aea3 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/CumulativeLogsumexp.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/CumulativeLogsumexp.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/DenseBincount.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/DenseBincount.java index 2efcd12100a..625d7f7801a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/DenseBincount.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/DenseBincount.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Digamma.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Digamma.java index 8825454262e..8ade615d294 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Digamma.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Digamma.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Div.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Div.java index cf8a0eafb01..18d49369c66 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Div.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Div.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/DivNoNan.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/DivNoNan.java index ba4a24236be..828b5e2d3a3 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/DivNoNan.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/DivNoNan.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Equal.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Equal.java index cddb6e0628e..61757c73181 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Equal.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Equal.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Erf.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Erf.java index c8371fed69c..8f12d9aa590 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Erf.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Erf.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Erfc.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Erfc.java index 3015ad512f8..486012ce8c1 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Erfc.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Erfc.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Exp.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Exp.java index 25847e4128e..c9a787da51b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Exp.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Exp.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Expm1.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Expm1.java index d02903a9741..084c3489358 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Expm1.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Expm1.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Floor.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Floor.java index 35d6a784051..db793638a55 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Floor.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Floor.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/FloorDiv.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/FloorDiv.java index 5b55385cda6..b6be32d1406 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/FloorDiv.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/FloorDiv.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/FloorMod.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/FloorMod.java index b57ac9d83e3..b0f32d7f194 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/FloorMod.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/FloorMod.java @@ -30,13 +30,14 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** - * Returns element-wise remainder of division. When {@code x < 0} xor {@code y < 0} is - * true, this follows Python semantics in that the result here is consistent - * with a flooring divide. E.g. {@code floor(x / y) * y + mod(x, y) = x}. + * Returns element-wise remainder of division. + * This follows Python semantics in that the + * result here is consistent with a flooring divide. E.g. + * {@code floor(x / y) * y + floormod(x, y) = x}, regardless of the signs of x and y. *

NOTE: {@code math.FloorMod} supports broadcasting. More about broadcasting * here * diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Greater.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Greater.java index 42f62a16c37..c7085e3172b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Greater.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Greater.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/GreaterEqual.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/GreaterEqual.java index 9f33f44f032..a7ba9cf15d8 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/GreaterEqual.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/GreaterEqual.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Igamma.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Igamma.java index df51873b286..a7826f80edb 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Igamma.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Igamma.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/IgammaGradA.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/IgammaGradA.java index 87043e493c0..59141e43d11 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/IgammaGradA.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/IgammaGradA.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Igammac.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Igammac.java index dae90b7f351..c09770158ef 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Igammac.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Igammac.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Imag.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Imag.java index d598658c163..2d2f18dbbb6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Imag.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Imag.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/InvertPermutation.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/InvertPermutation.java index 8a53b082ca1..f1a1ee2d230 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/InvertPermutation.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/InvertPermutation.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/IsFinite.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/IsFinite.java index ea779475f85..cb498d15050 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/IsFinite.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/IsFinite.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/IsInf.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/IsInf.java index 63d30a31d37..37633e47878 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/IsInf.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/IsInf.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/IsNan.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/IsNan.java index 667774f62f1..9e23aecb45e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/IsNan.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/IsNan.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Less.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Less.java index 1665f6d2abf..39687098ab0 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Less.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Less.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/LessEqual.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/LessEqual.java index 4704ccce248..54d47dcf7d7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/LessEqual.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/LessEqual.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Lgamma.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Lgamma.java index 1b8ea5f85e4..b86e39e031b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Lgamma.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Lgamma.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Log.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Log.java index 8872b3e120e..a3b2689d2cb 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Log.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Log.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Log1p.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Log1p.java index 733a11b3ccb..150f856f172 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Log1p.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Log1p.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Maximum.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Maximum.java index 57741fada95..ab99780dedc 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Maximum.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Maximum.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Mean.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Mean.java index ce7d43593bb..29fba6e59fe 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Mean.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Mean.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Minimum.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Minimum.java index 9df274ec982..ce577e07813 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Minimum.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Minimum.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Mod.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Mod.java index 38f149bf0c6..edcfa06a10d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Mod.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Mod.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Mul.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Mul.java index 418761768c1..9e4386a02c2 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Mul.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Mul.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/MulNoNan.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/MulNoNan.java index d58e10249f0..38b90fa1533 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/MulNoNan.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/MulNoNan.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Ndtri.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Ndtri.java index d889b595eb8..7e035cf6a2f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Ndtri.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Ndtri.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Neg.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Neg.java index 300b8fa139f..014a760d3bf 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Neg.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Neg.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/NextAfter.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/NextAfter.java index 6168fd9a4a9..b470517f12b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/NextAfter.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/NextAfter.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/NotEqual.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/NotEqual.java index 6464fb718ce..404e335c8c6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/NotEqual.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/NotEqual.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Polygamma.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Polygamma.java index 83a713753e7..b6902a9e3fe 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Polygamma.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Polygamma.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/PopulationCount.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/PopulationCount.java index 907e5065d35..6e997fbb544 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/PopulationCount.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/PopulationCount.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TUint8; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Pow.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Pow.java index ce1d81e3753..26a2d836bb8 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Pow.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Pow.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/QuantizedAdd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/QuantizedAdd.java index 385d02b8ea1..4bfd965720c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/QuantizedAdd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/QuantizedAdd.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/QuantizedMul.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/QuantizedMul.java index f5f0d94d9e1..f5185e3ebcf 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/QuantizedMul.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/QuantizedMul.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Real.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Real.java index 30298b78c52..43fc2300937 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Real.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Real.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/RealDiv.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/RealDiv.java index 43c486e52c3..1718c55c3fe 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/RealDiv.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/RealDiv.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Reciprocal.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Reciprocal.java index a06817016a6..89c6a5061c6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Reciprocal.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Reciprocal.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ReciprocalGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ReciprocalGrad.java index ea34a6075a5..47427ba7704 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ReciprocalGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ReciprocalGrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/RequantizationRangePerChannel.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/RequantizationRangePerChannel.java index 9eff65f7e63..5e7f2ba3866 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/RequantizationRangePerChannel.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/RequantizationRangePerChannel.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/RequantizePerChannel.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/RequantizePerChannel.java index 29cb74cd3e2..92099f6fcee 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/RequantizePerChannel.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/RequantizePerChannel.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Rint.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Rint.java index e9c2d684a69..73b07a34e86 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Rint.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Rint.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Round.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Round.java index 35d3e8c5f79..e062e31d1f0 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Round.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Round.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Rsqrt.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Rsqrt.java index d371c5ffd4c..3be9e72f09a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Rsqrt.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Rsqrt.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/RsqrtGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/RsqrtGrad.java index ebf2c309686..748d5a0db4b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/RsqrtGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/RsqrtGrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SegmentMax.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SegmentMax.java index 01f5d8616ce..65e587ec3c8 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SegmentMax.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SegmentMax.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SegmentMean.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SegmentMean.java index bc6f6ffc430..e560cfe3260 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SegmentMean.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SegmentMean.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SegmentMin.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SegmentMin.java index 69b8fc1bca8..7e98416fa16 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SegmentMin.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SegmentMin.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SegmentProd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SegmentProd.java index 5552307443e..d2c289772b7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SegmentProd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SegmentProd.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SegmentSum.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SegmentSum.java index 7e00d958f42..a3a7318c0a6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SegmentSum.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SegmentSum.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sigmoid.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sigmoid.java index 324012f9b01..8f308b2dcb4 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sigmoid.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sigmoid.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SigmoidGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SigmoidGrad.java index 03b5fc05cb2..0267a5d142f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SigmoidGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SigmoidGrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sign.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sign.java index 3ff6c20187d..1917dadf291 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sign.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sign.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sin.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sin.java index ce7e4b9bd0f..274d3f6236c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sin.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sin.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sinh.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sinh.java index 7a5addfed76..6670813e65e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sinh.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sinh.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SobolSample.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SobolSample.java index d57501c0368..f3e5f0459a2 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SobolSample.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SobolSample.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Softplus.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Softplus.java index 626a77982ee..599125e88ef 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Softplus.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Softplus.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SoftplusGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SoftplusGrad.java index 5611c6829ef..4155da8bf2f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SoftplusGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SoftplusGrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sqrt.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sqrt.java index 8a339d5c0a0..1c74a4ee07e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sqrt.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sqrt.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SqrtGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SqrtGrad.java index 5e9a9259046..867b33b52bc 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SqrtGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SqrtGrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Square.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Square.java index 8f8b2324bdd..b70f08034f7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Square.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Square.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SquaredDifference.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SquaredDifference.java index ee461f83b83..30d00f9aeca 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SquaredDifference.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/SquaredDifference.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sub.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sub.java index 72893964d44..c6845235ef5 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sub.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Sub.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Tan.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Tan.java index fe6929ea353..36229ebb511 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Tan.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Tan.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Tanh.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Tanh.java index e9693ee0a3b..154de1415f7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Tanh.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Tanh.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/TanhGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/TanhGrad.java index ca78e1d8f7d..3f35d9fb6f4 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/TanhGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/TanhGrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/TruncateDiv.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/TruncateDiv.java index 1b0e7bce942..3e64159014d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/TruncateDiv.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/TruncateDiv.java @@ -30,11 +30,11 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** - * Returns x / y element-wise for integer types. + * Returns x / y element-wise, rounded towards zero. * Truncation designates that negative numbers will round fractional quantities * toward zero. I.e. -7 / 5 = -1. This matches C semantics but it is different * than Python semantics. See {@code FloorDiv} for a division function that matches diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/TruncateMod.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/TruncateMod.java index 1dd589abef4..f58647ca9d6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/TruncateMod.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/TruncateMod.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/UnsortedSegmentMax.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/UnsortedSegmentMax.java index 619b2e52dd8..e47952a6e14 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/UnsortedSegmentMax.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/UnsortedSegmentMax.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/UnsortedSegmentMin.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/UnsortedSegmentMin.java index c2f3705d02a..04794c027f2 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/UnsortedSegmentMin.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/UnsortedSegmentMin.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/UnsortedSegmentProd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/UnsortedSegmentProd.java index 73a13e22407..211d122b524 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/UnsortedSegmentProd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/UnsortedSegmentProd.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/UnsortedSegmentSum.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/UnsortedSegmentSum.java index 87c3806fa00..14ff5cc79fc 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/UnsortedSegmentSum.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/UnsortedSegmentSum.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Xdivy.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Xdivy.java index bbad0d65ee9..fd12c56afbb 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Xdivy.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Xdivy.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Xlog1py.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Xlog1py.java index 727f1fdf0c0..064ffe7ac2b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Xlog1py.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Xlog1py.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Xlogy.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Xlogy.java index f717294feaa..65f54a73266 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Xlogy.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Xlogy.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Zeta.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Zeta.java index a9f0a056544..23624755a5c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Zeta.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Zeta.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/erfinv.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/erfinv.java index 517245f5e23..121034d1185 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/erfinv.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/erfinv.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselJ0.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselJ0.java index a1f2886fbb4..f6b72a6502a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselJ0.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselJ0.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselJ1.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselJ1.java index 3753f637ff6..f15e703210d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselJ1.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselJ1.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselK0.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselK0.java index c572dcb6974..d543e18a46b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselK0.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselK0.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselK0e.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselK0e.java index 32f371fe26f..3153c4981b4 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselK0e.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselK0e.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselK1.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselK1.java index 3c5dfdc93ac..a51208dba2b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselK1.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselK1.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselK1e.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselK1e.java index 357eae89ef8..0c36a5fe443 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselK1e.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselK1e.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselY0.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselY0.java index 9f3bd14d878..e07a20b5bfd 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselY0.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselY0.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselY1.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselY1.java index 7d770088e85..7aac731ce66 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselY1.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/BesselY1.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/Dawsn.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/Dawsn.java index 1be99f4d836..9ecb3ee5a94 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/Dawsn.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/Dawsn.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/Expint.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/Expint.java index e47ccb4bbfd..0bf107ec44a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/Expint.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/Expint.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/FresnelCos.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/FresnelCos.java index b0e5dfc7547..67c5bd8c93e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/FresnelCos.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/FresnelCos.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/FresnelSin.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/FresnelSin.java index c917da3b364..8d8129fc99c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/FresnelSin.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/FresnelSin.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/Spence.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/Spence.java index f375a8f6c30..403ec546b0b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/Spence.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/special/Spence.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/AvgPool.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/AvgPool.java index 3047de4dd9d..0f0da9090ca 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/AvgPool.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/AvgPool.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/AvgPool3d.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/AvgPool3d.java index 1eb65631b9f..c7d43e3bf96 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/AvgPool3d.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/AvgPool3d.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/AvgPool3dGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/AvgPool3dGrad.java index 29cc7c2413d..07227187c9e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/AvgPool3dGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/AvgPool3dGrad.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/AvgPoolGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/AvgPoolGrad.java index a3ab3614f65..39c25411a30 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/AvgPoolGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/AvgPoolGrad.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BatchNormWithGlobalNormalization.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BatchNormWithGlobalNormalization.java index ee5addcc46d..205925eb0d9 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BatchNormWithGlobalNormalization.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BatchNormWithGlobalNormalization.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BatchNormWithGlobalNormalizationGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BatchNormWithGlobalNormalizationGrad.java index 614d05d913f..c94420d5d99 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BatchNormWithGlobalNormalizationGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BatchNormWithGlobalNormalizationGrad.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BiasAdd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BiasAdd.java index 8e619ca7b29..d3e13adfcb0 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BiasAdd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BiasAdd.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BiasAddGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BiasAddGrad.java index ba309a9db7a..e957524a73e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BiasAddGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BiasAddGrad.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BlockLSTM.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BlockLSTM.java index 42129639032..40427d97f65 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BlockLSTM.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BlockLSTM.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BlockLSTMGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BlockLSTMGrad.java index ac13118b259..dc7149c5fe6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BlockLSTMGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/BlockLSTMGrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv2d.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv2d.java index 713d6bcd801..2a630da9df1 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv2d.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv2d.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv2dBackpropFilter.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv2dBackpropFilter.java index 6401af5abd0..e11fc219b5e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv2dBackpropFilter.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv2dBackpropFilter.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv2dBackpropInput.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv2dBackpropInput.java index 6888eaf5eb7..7a73850f9d1 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv2dBackpropInput.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv2dBackpropInput.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv3d.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv3d.java index 7b6ebe73e8f..7fcfea392ca 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv3d.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv3d.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv3dBackpropFilter.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv3dBackpropFilter.java index afde3d501f7..4f4b6a3d244 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv3dBackpropFilter.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv3dBackpropFilter.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv3dBackpropInput.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv3dBackpropInput.java index 59f3f00c001..e238d6f8e3a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv3dBackpropInput.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Conv3dBackpropInput.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CtcBeamSearchDecoder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CtcBeamSearchDecoder.java index 8971a7b4ada..4d3afed21fc 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CtcBeamSearchDecoder.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CtcBeamSearchDecoder.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CtcGreedyDecoder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CtcGreedyDecoder.java index 45af8a62bfd..a6ec71453f7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CtcGreedyDecoder.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CtcGreedyDecoder.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CtcLoss.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CtcLoss.java index d71d108190d..c9931a89089 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CtcLoss.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CtcLoss.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CudnnRNN.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CudnnRNN.java index 8eba6cb8695..ce4f9fb1441 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CudnnRNN.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CudnnRNN.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CudnnRNNBackprop.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CudnnRNNBackprop.java index c47591fd643..73767fc667d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CudnnRNNBackprop.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CudnnRNNBackprop.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CudnnRNNCanonicalToParams.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CudnnRNNCanonicalToParams.java index 90fb8cb904c..065d1a39a95 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CudnnRNNCanonicalToParams.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CudnnRNNCanonicalToParams.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CudnnRNNParamsToCanonical.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CudnnRNNParamsToCanonical.java index 68cf3c65015..1d424f6aae6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CudnnRNNParamsToCanonical.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CudnnRNNParamsToCanonical.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CudnnRnnParamsSize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CudnnRnnParamsSize.java index 2f97d0c094f..0e4acadd3b4 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CudnnRnnParamsSize.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/CudnnRnnParamsSize.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DataFormatDimMap.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DataFormatDimMap.java index f90635f4bb2..c9708e484fe 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DataFormatDimMap.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DataFormatDimMap.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DataFormatVecPermute.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DataFormatVecPermute.java index 48fd6e3c9ea..f1b484e259a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DataFormatVecPermute.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DataFormatVecPermute.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DepthToSpace.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DepthToSpace.java index 145f47ab2ae..025731ba48b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DepthToSpace.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DepthToSpace.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DepthwiseConv2dNative.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DepthwiseConv2dNative.java index 679abbd2f8b..69c03c06a95 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DepthwiseConv2dNative.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DepthwiseConv2dNative.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DepthwiseConv2dNativeBackpropFilter.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DepthwiseConv2dNativeBackpropFilter.java index f72a978d38b..2218a01dbcb 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DepthwiseConv2dNativeBackpropFilter.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DepthwiseConv2dNativeBackpropFilter.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DepthwiseConv2dNativeBackpropInput.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DepthwiseConv2dNativeBackpropInput.java index 8dc581945f2..9d4782f83b8 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DepthwiseConv2dNativeBackpropInput.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/DepthwiseConv2dNativeBackpropInput.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Dilation2d.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Dilation2d.java index dd4e71f98b9..4f008abe93e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Dilation2d.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Dilation2d.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Dilation2dBackpropFilter.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Dilation2dBackpropFilter.java index f1c73964d57..61de5669126 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Dilation2dBackpropFilter.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Dilation2dBackpropFilter.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Dilation2dBackpropInput.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Dilation2dBackpropInput.java index f1871d5204d..e5bd0cb76a2 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Dilation2dBackpropInput.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Dilation2dBackpropInput.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Elu.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Elu.java index e65055ecbb7..d63b6fb4e09 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Elu.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Elu.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/EluGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/EluGrad.java index dccf9e4e038..0a9756a54bb 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/EluGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/EluGrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FractionalAvgPool.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FractionalAvgPool.java index 5d74b760b01..9f86691addb 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FractionalAvgPool.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FractionalAvgPool.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FractionalAvgPoolGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FractionalAvgPoolGrad.java index 5e3fdc26623..12680d609a6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FractionalAvgPoolGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FractionalAvgPoolGrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FractionalMaxPool.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FractionalMaxPool.java index 203ea5f609b..3a8bfabdeb7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FractionalMaxPool.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FractionalMaxPool.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FractionalMaxPoolGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FractionalMaxPoolGrad.java index 92833a8e5e2..24b6bbe453a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FractionalMaxPoolGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FractionalMaxPoolGrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FusedBatchNorm.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FusedBatchNorm.java index 859089bd14b..04f5c1adf0e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FusedBatchNorm.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FusedBatchNorm.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FusedBatchNormGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FusedBatchNormGrad.java index d2babe2e048..a6fcb8286f5 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FusedBatchNormGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FusedBatchNormGrad.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FusedPadConv2d.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FusedPadConv2d.java index 6b121010943..88e74f9a3cb 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FusedPadConv2d.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FusedPadConv2d.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FusedResizeAndPadConv2d.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FusedResizeAndPadConv2d.java index 5e93dc12e75..394f2e2e0dd 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FusedResizeAndPadConv2d.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/FusedResizeAndPadConv2d.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/GRUBlockCell.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/GRUBlockCell.java index 084610ff55c..bd856140a94 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/GRUBlockCell.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/GRUBlockCell.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/GRUBlockCellGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/GRUBlockCellGrad.java index 683678a8259..234a7a83c9e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/GRUBlockCellGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/GRUBlockCellGrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/InTopK.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/InTopK.java index 16f8b7442a3..893b46722b9 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/InTopK.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/InTopK.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/InvGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/InvGrad.java index dbbae883c89..dcf7791a3ce 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/InvGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/InvGrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/IsotonicRegression.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/IsotonicRegression.java index 0cf166e878f..012d92fdaf9 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/IsotonicRegression.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/IsotonicRegression.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/L2Loss.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/L2Loss.java index 7ed26678f72..28ac27853a2 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/L2Loss.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/L2Loss.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LSTMBlockCell.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LSTMBlockCell.java index 9914d838a78..19e576ce5e0 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LSTMBlockCell.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LSTMBlockCell.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LSTMBlockCellGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LSTMBlockCellGrad.java index 63d8029e879..b0627b08f4c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LSTMBlockCellGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LSTMBlockCellGrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LeakyRelu.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LeakyRelu.java index dee6e5f543e..f5572ffb68b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LeakyRelu.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LeakyRelu.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LocalResponseNormalization.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LocalResponseNormalization.java index 74e76a70791..f6b6c8032d5 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LocalResponseNormalization.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LocalResponseNormalization.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LocalResponseNormalizationGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LocalResponseNormalizationGrad.java index d91f52c86f5..fe13de0b947 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LocalResponseNormalizationGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LocalResponseNormalizationGrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LogSoftmax.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LogSoftmax.java index 8b513fce05d..7f8d39765b1 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LogSoftmax.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/LogSoftmax.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPool.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPool.java index 8340d86eaa7..ffd0a64cbbd 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPool.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPool.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPool3d.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPool3d.java index 6ba6328202e..bacdd240e8f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPool3d.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPool3d.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPool3dGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPool3dGrad.java index cfc23e909a9..748ffd31e20 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPool3dGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPool3dGrad.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPool3dGradGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPool3dGradGrad.java index 56b2f6fde2d..cac4116e254 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPool3dGradGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPool3dGradGrad.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolGrad.java index a75320fdd6f..a4b179cba25 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolGrad.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolGradGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolGradGrad.java index 405fb9df4c4..7b708d696f6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolGradGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolGradGrad.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolGradGradWithArgmax.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolGradGradWithArgmax.java index ef6a2d4591f..2158dd48289 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolGradGradWithArgmax.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolGradGradWithArgmax.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolGradWithArgmax.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolGradWithArgmax.java index 028e0eafe84..04ce0269270 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolGradWithArgmax.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolGradWithArgmax.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolWithArgmax.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolWithArgmax.java index d0f2834f76b..380dc749140 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolWithArgmax.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolWithArgmax.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/NthElement.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/NthElement.java index c8a22b340cb..3cae1de4faf 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/NthElement.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/NthElement.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedAvgPool.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedAvgPool.java index 3beb0bf214b..6bcf4c8ab9d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedAvgPool.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedAvgPool.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedBatchNormWithGlobalNormalization.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedBatchNormWithGlobalNormalization.java index ee2e7989c7a..b549953816f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedBatchNormWithGlobalNormalization.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedBatchNormWithGlobalNormalization.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedBiasAdd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedBiasAdd.java index 24101389e97..d2fe0aa173d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedBiasAdd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedBiasAdd.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DAndRelu.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DAndRelu.java index b65d19ab23f..620297765c9 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DAndRelu.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DAndRelu.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DAndReluAndRequantize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DAndReluAndRequantize.java index 5d25cc68372..5aa7d4b2cf3 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DAndReluAndRequantize.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DAndReluAndRequantize.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DAndRequantize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DAndRequantize.java index 1c89eb002c8..4842bd8aed6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DAndRequantize.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DAndRequantize.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DPerChannel.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DPerChannel.java index c94acec7db1..8250c49c208 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DPerChannel.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DPerChannel.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBias.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBias.java index 8f5e61e4078..53ba09307ad 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBias.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBias.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasAndRelu.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasAndRelu.java index 679940b018f..22c704766a1 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasAndRelu.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasAndRelu.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasAndReluAndRequantize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasAndReluAndRequantize.java index 0409f4934ef..89e39071629 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasAndReluAndRequantize.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasAndReluAndRequantize.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasAndRequantize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasAndRequantize.java index cc58a718f3d..22120889902 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasAndRequantize.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasAndRequantize.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasSignedSumAndReluAndRequantize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasSignedSumAndReluAndRequantize.java index 157feb55d3c..38f12dbfef6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasSignedSumAndReluAndRequantize.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasSignedSumAndReluAndRequantize.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasSumAndRelu.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasSumAndRelu.java index 144c608db91..924516ede83 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasSumAndRelu.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasSumAndRelu.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasSumAndReluAndRequantize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasSumAndReluAndRequantize.java index 86fe78edbf9..41e1511ae42 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasSumAndReluAndRequantize.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2DWithBiasSumAndReluAndRequantize.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2d.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2d.java index e56b26f04da..05dc3a5fadd 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2d.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedConv2d.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedDepthwiseConv2D.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedDepthwiseConv2D.java index 067f473f3be..31dc3937679 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedDepthwiseConv2D.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedDepthwiseConv2D.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedDepthwiseConv2DWithBias.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedDepthwiseConv2DWithBias.java index 70e44c68953..6451cfa1dea 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedDepthwiseConv2DWithBias.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedDepthwiseConv2DWithBias.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedDepthwiseConv2DWithBiasAndRelu.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedDepthwiseConv2DWithBiasAndRelu.java index 3ec9fc5014f..58d920527ed 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedDepthwiseConv2DWithBiasAndRelu.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedDepthwiseConv2DWithBiasAndRelu.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedDepthwiseConv2DWithBiasAndReluAndRequantize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedDepthwiseConv2DWithBiasAndReluAndRequantize.java index 60a6e6309b0..fb02682b6c0 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedDepthwiseConv2DWithBiasAndReluAndRequantize.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedDepthwiseConv2DWithBiasAndReluAndRequantize.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedInstanceNorm.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedInstanceNorm.java index b8790eb23a6..1fd5e948b62 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedInstanceNorm.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedInstanceNorm.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedMaxPool.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedMaxPool.java index db80719f920..552c81a629a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedMaxPool.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedMaxPool.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedRelu.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedRelu.java index fbcd3975a68..850f667453d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedRelu.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedRelu.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedRelu6.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedRelu6.java index b564d3733fc..7273efe8c90 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedRelu6.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedRelu6.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedReluX.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedReluX.java index effaf0bb284..413d8b2e5ee 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedReluX.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/QuantizedReluX.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Relu.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Relu.java index c02537e455c..04567bdb02a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Relu.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Relu.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Relu6.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Relu6.java index a5a5768b006..c61e8eda9f6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Relu6.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Relu6.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Relu6Grad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Relu6Grad.java index 538e272a77f..e378d0873fc 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Relu6Grad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Relu6Grad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/ReluGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/ReluGrad.java index 10edc4e7b3c..d7204403f86 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/ReluGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/ReluGrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Selu.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Selu.java index 2bb60cbdc99..44a4523c844 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Selu.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Selu.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SeluGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SeluGrad.java index b5f37a8efcf..185d04d9163 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SeluGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SeluGrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Softmax.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Softmax.java index 69ac0861280..bb4b59868fe 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Softmax.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Softmax.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SoftmaxCrossEntropyWithLogits.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SoftmaxCrossEntropyWithLogits.java index 5c2c37313bb..6607b152cf7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SoftmaxCrossEntropyWithLogits.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SoftmaxCrossEntropyWithLogits.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Softsign.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Softsign.java index 5f7a3b2f68c..9527295c4e3 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Softsign.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/Softsign.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SoftsignGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SoftsignGrad.java index 514601a0ef5..8655c3a3697 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SoftsignGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SoftsignGrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SpaceToBatch.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SpaceToBatch.java index 9725317f2b3..aec929a94a7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SpaceToBatch.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SpaceToBatch.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SpaceToDepth.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SpaceToDepth.java index f1e7a5e2e9e..a6f6f492e65 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SpaceToDepth.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SpaceToDepth.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SparseSoftmaxCrossEntropyWithLogits.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SparseSoftmaxCrossEntropyWithLogits.java index 65d256094b8..e82233973e1 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SparseSoftmaxCrossEntropyWithLogits.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/SparseSoftmaxCrossEntropyWithLogits.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/TopK.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/TopK.java index f85a01f4471..9e1ab2bb522 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/TopK.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/TopK.java @@ -23,6 +23,7 @@ import org.tensorflow.Operation; import org.tensorflow.OperationBuilder; import org.tensorflow.Output; +import org.tensorflow.op.Operands; import org.tensorflow.op.RawOp; import org.tensorflow.op.RawOpInputs; import org.tensorflow.op.Scope; @@ -30,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; @@ -47,6 +48,8 @@ *

If two elements are equal, the lower-index element appears first. * * @param data type for {@code values} output + * + * @param data type for {@code indices} output */ @OpMetadata( opType = TopK.OP_NAME, @@ -55,7 +58,7 @@ @Operator( group = "nn" ) -public final class TopK extends RawOp { +public final class TopK extends RawOp { /** * The name of this op, as known by TensorFlow core engine */ @@ -63,7 +66,7 @@ public final class TopK extends RawOp { private Output values; - private Output indices; + private Output indices; public TopK(Operation operation) { super(operation, OP_NAME); @@ -79,18 +82,21 @@ public TopK(Operation operation) { * @param input 1-D or higher with last dimension at least {@code k}. * @param k 0-D. Number of top elements to look for along the last dimension (along each * row for matrices). + * @param indexType The value of the indexType attribute * @param options carries optional attribute values * @param data type for {@code TopKV2} output and operands + * @param data type for {@code TopKV2} output and operands * @return a new instance of TopK */ @Endpoint( describeByClass = true ) - public static TopK create(Scope scope, Operand input, Operand k, - Options... options) { + public static TopK create(Scope scope, + Operand input, Operand k, Class indexType, Options... options) { OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "TopK"); opBuilder.addInput(input.asOutput()); opBuilder.addInput(k.asOutput()); + opBuilder.setAttr("index_type", Operands.toDataType(indexType)); if (options != null) { for (Options opts : options) { if (opts.sorted != null) { @@ -101,6 +107,25 @@ public static TopK create(Scope scope, Operand input, return new TopK<>(opBuilder.build()); } + /** + * Factory method to create a class wrapping a new TopKV2 operation, with the default output types. + * + * @param scope current scope + * @param input 1-D or higher with last dimension at least {@code k}. + * @param k 0-D. Number of top elements to look for along the last dimension (along each + * row for matrices). + * @param options carries optional attribute values + * @param data type for {@code TopKV2} output and operands + * @return a new instance of TopK, with default output types + */ + @Endpoint( + describeByClass = true + ) + public static TopK create(Scope scope, Operand input, + Operand k, Options[] options) { + return create(scope, input, k, TInt32.class, options); + } + /** * Sets the sorted option. * @@ -126,7 +151,7 @@ public Output values() { * The indices of {@code values} within the last dimension of {@code input}. * @return indices. */ - public Output indices() { + public Output indices() { return indices; } @@ -155,7 +180,7 @@ public Options sorted(Boolean sorted) { @OpInputsMetadata( outputsClass = TopK.class ) - public static class Inputs extends RawOpInputs> { + public static class Inputs extends RawOpInputs> { /** * 1-D or higher with last dimension at least {@code k}. */ @@ -165,7 +190,7 @@ public static class Inputs extends RawOpInputs> { * 0-D. Number of top elements to look for along the last dimension (along each * row for matrices). */ - public final Operand k; + public final Operand k; /** * If true the resulting `k` elements will be sorted by the values in @@ -178,13 +203,25 @@ public static class Inputs extends RawOpInputs> { */ public final DataType T; + /** + * The Tk attribute + */ + public final DataType Tk; + + /** + * The indexType attribute + */ + public final DataType indexType; + public Inputs(GraphOperation op) { - super(new TopK<>(op), op, Arrays.asList("sorted", "T")); + super(new TopK<>(op), op, Arrays.asList("sorted", "T", "Tk", "index_type")); int inputIndex = 0; input = (Operand) op.input(inputIndex++); - k = (Operand) op.input(inputIndex++); + k = (Operand) op.input(inputIndex++); sorted = op.attributes().getAttrBool("sorted"); T = op.attributes().getAttrType("T"); + Tk = op.attributes().getAttrType("Tk"); + indexType = op.attributes().getAttrType("index_type"); } } } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/Dequantize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/Dequantize.java index 7c96b59f885..c779d728b91 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/Dequantize.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/Dequantize.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/FakeQuantWithMinMaxArgs.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/FakeQuantWithMinMaxArgs.java index b47b6041d87..642f561bec3 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/FakeQuantWithMinMaxArgs.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/FakeQuantWithMinMaxArgs.java @@ -33,8 +33,11 @@ import org.tensorflow.types.TFloat32; /** - * Fake-quantize the 'inputs' tensor, type float to 'outputs' tensor of same type. - * Attributes + * Fake-quantize the 'inputs' tensor, type float to 'outputs' tensor of same shape and type. + * Quantization is called fake since the output is still in floating point. + * The API converts inputs into values within the range [min and max] and returns + * as output. + *

Attributes *

    *
  • {@code [min; max]} define the clamping range for the {@code inputs} data.
  • *
  • {@code inputs} values are quantized into the quantization range ( @@ -53,7 +56,27 @@ *
  • If {@code min <= 0 <= max}: {@code scale = (max - min) / (2^num_bits - 1) }, * {@code min_adj = scale * round(min / scale)} and {@code max_adj = max + min_adj - min}.
  • *
- *

Quantization is called fake since the output is still in floating point. + *

Examples + *

+ *
+ * inp = tf.constant ([10.03, -10.23, 3])
+ * out = tf.quantization.fake_quant_with_min_max_args(inp, min=-5, max=5,
+ *                                                    num_bits=16)
+ * print(out)
+ *
+ * #  Output:
+ * #  tf.Tensor([ 4.9999237 -5.0000763  3.0000763], shape=(3,), dtype=float32)
+ * 
+ *

Raises: + *

    + *
  • InvalidArgumentError: + *
      + *
    • If num_bits are outside of range [2, 16].
    • + *
    • If min >= max.
    • + *
    + *
  • + *
  • ValueError: If {@code inputs} are of any other type than float32.
  • + *
*/ @OpMetadata( opType = FakeQuantWithMinMaxArgs.OP_NAME, diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/Quantize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/Quantize.java index 6b36c0a0ec4..cdffa935068 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/Quantize.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/Quantize.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizeAndDequantize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizeAndDequantize.java index 60a8bda7b15..0502fc3749c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizeAndDequantize.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizeAndDequantize.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizeAndDequantizeV3.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizeAndDequantizeV3.java index f8b569890dd..03160593b46 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizeAndDequantizeV3.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizeAndDequantizeV3.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizeAndDequantizeV4.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizeAndDequantizeV4.java index 6b74d382e81..3aa3cceaf2d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizeAndDequantizeV4.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizeAndDequantizeV4.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizeAndDequantizeV4Grad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizeAndDequantizeV4Grad.java index b0bd78edab4..bd4c36c3ada 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizeAndDequantizeV4Grad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizeAndDequantizeV4Grad.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizeDownAndShrinkRange.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizeDownAndShrinkRange.java index c14dcb42b51..65d0245fb12 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizeDownAndShrinkRange.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizeDownAndShrinkRange.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizedConcat.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizedConcat.java index ffab1b7eb33..a8b1740ba73 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizedConcat.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizedConcat.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizedMatMulWithBiasAndDequantize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizedMatMulWithBiasAndDequantize.java index ae0a41f964f..ff2ff1c96d6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizedMatMulWithBiasAndDequantize.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizedMatMulWithBiasAndDequantize.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizedMatMulWithBiasAndRequantize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizedMatMulWithBiasAndRequantize.java index 51358afd16b..142301a4a8b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizedMatMulWithBiasAndRequantize.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/QuantizedMatMulWithBiasAndRequantize.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/RequantizationRange.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/RequantizationRange.java index da856cc17c5..5239e2ae16b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/RequantizationRange.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/RequantizationRange.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/Requantize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/Requantize.java index f71f37fe60c..09bba6a3bcc 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/Requantize.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/Requantize.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/UniformDequantize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/UniformDequantize.java index 2e659513900..f38830125a6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/UniformDequantize.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/UniformDequantize.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/UniformQuantizedDotHybrid.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/UniformQuantizedDotHybrid.java index 746c12b4b56..c4111c485dc 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/UniformQuantizedDotHybrid.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/quantization/UniformQuantizedDotHybrid.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedBincount.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedBincount.java index b5a2f1ef360..9766676ec46 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedBincount.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedBincount.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedCountSparseOutput.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedCountSparseOutput.java index ef93b73f4cc..e91ec8e6974 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedCountSparseOutput.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedCountSparseOutput.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedCross.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedCross.java index 129e87cbfe8..fe1daecb5bc 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedCross.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedCross.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedGather.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedGather.java index f35eebeff02..90df096d15b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedGather.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedGather.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedRange.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedRange.java index 1daa5b30376..a9742d1b197 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedRange.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedRange.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedTensorFromVariant.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedTensorFromVariant.java index 71f856f616c..e9875e48b1c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedTensorFromVariant.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedTensorFromVariant.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedTensorToSparse.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedTensorToSparse.java index d6afd030158..1751855a54e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedTensorToSparse.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedTensorToSparse.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedTensorToTensor.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedTensorToTensor.java index 90db49bdf63..3570176f57d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedTensorToTensor.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedTensorToTensor.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedTensorToVariant.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedTensorToVariant.java index 737d3263973..0d82149066f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedTensorToVariant.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedTensorToVariant.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedTensorToVariantGradient.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedTensorToVariantGradient.java index f0a694a2b7a..3639c787ea4 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedTensorToVariantGradient.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/ragged/RaggedTensorToVariantGradient.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/Multinomial.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/Multinomial.java index 8d9764f499f..19b8d218f90 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/Multinomial.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/Multinomial.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/NonDeterministicInts.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/NonDeterministicInts.java index a44cbf79bdb..0a9e0bc827b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/NonDeterministicInts.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/NonDeterministicInts.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/ParameterizedTruncatedNormal.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/ParameterizedTruncatedNormal.java index df2c0813a32..1f652bd935f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/ParameterizedTruncatedNormal.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/ParameterizedTruncatedNormal.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomGamma.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomGamma.java index d81d839d65e..699ab6cf891 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomGamma.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomGamma.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomGammaGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomGammaGrad.java index 278d23cf496..97110491686 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomGammaGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomGammaGrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomPoisson.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomPoisson.java index f512028a2a2..e81fe2c9c47 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomPoisson.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomPoisson.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomShuffle.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomShuffle.java index c5619d4c5c5..ac76634532d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomShuffle.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomShuffle.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomStandardNormal.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomStandardNormal.java index 40e72739d8d..1a125ca533e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomStandardNormal.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomStandardNormal.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomUniform.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomUniform.java index 856695de14f..cccd6792f3f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomUniform.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomUniform.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomUniformInt.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomUniformInt.java index dc08dd29095..bc542cf2168 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomUniformInt.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RandomUniformInt.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RngReadAndSkip.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RngReadAndSkip.java index 9ed642f0125..b535f4696d3 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RngReadAndSkip.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/RngReadAndSkip.java @@ -39,6 +39,7 @@ * {@code rng_read_and_skip(n)} will be the same as that after {@code uniform([n])} * (or any other distribution). The actual increment added to the * counter is an unspecified implementation choice. + *

In the case that the input algorithm is RNG_ALG_AUTO_SELECT, the counter in the state needs to be of size int64[2], the current maximal counter size among algorithms. In this case, this op will manage the counter as if it is an 128-bit integer with layout [lower_64bits, higher_64bits]. If an algorithm needs less than 128 bits for the counter, it should use the left portion of the int64[2]. In this way, the int64[2] is compatible with all current RNG algorithms (Philox, ThreeFry and xla::RandomAlgorithm::RNG_DEFAULT). Downstream RNG ops can thus use this counter with any RNG algorithm. */ @OpMetadata( opType = RngReadAndSkip.OP_NAME, @@ -62,7 +63,7 @@ public RngReadAndSkip(Operation operation) { * Factory method to create a class wrapping a new RngReadAndSkip operation. * * @param scope current scope - * @param resource The handle of the resource variable that stores the state of the RNG. + * @param resource The handle of the resource variable that stores the state of the RNG. The state consists of the counter followed by the key. * @param alg The RNG algorithm. * @param delta The amount of advancement. * @return a new instance of RngReadAndSkip @@ -98,7 +99,7 @@ public Output asOutput() { ) public static class Inputs extends RawOpInputs { /** - * The handle of the resource variable that stores the state of the RNG. + * The handle of the resource variable that stores the state of the RNG. The state consists of the counter followed by the key. */ public final Operand resource; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulRandomBinomial.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulRandomBinomial.java index 1cf602fdee5..985e113465a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulRandomBinomial.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulRandomBinomial.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulStandardNormal.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulStandardNormal.java index 0bc06c39acd..600c92a08d7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulStandardNormal.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulStandardNormal.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulTruncatedNormal.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulTruncatedNormal.java index 9e2e284c8fd..b33e1246bb8 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulTruncatedNormal.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulTruncatedNormal.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulUniform.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulUniform.java index a295a52142d..16118af6599 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulUniform.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulUniform.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulUniformFullInt.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulUniformFullInt.java index c0f6b4c3195..a92bdfdb759 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulUniformFullInt.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulUniformFullInt.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulUniformInt.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulUniformInt.java index ad72eb5def9..44fa71567b9 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulUniformInt.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulUniformInt.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessMultinomial.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessMultinomial.java index eb2c76f8170..88a834ef651 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessMultinomial.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessMultinomial.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessParameterizedTruncatedNormal.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessParameterizedTruncatedNormal.java index 1bb812bb104..25faae9b925 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessParameterizedTruncatedNormal.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessParameterizedTruncatedNormal.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomBinomial.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomBinomial.java index 26cfc31ac45..c8c027fa81f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomBinomial.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomBinomial.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomGamma.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomGamma.java index aa5e3f9b784..3b38a3103bc 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomGamma.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomGamma.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomGetKeyCounter.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomGetKeyCounter.java index 10a9c60b092..d721095aa4b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomGetKeyCounter.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomGetKeyCounter.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomGetKeyCounterAlg.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomGetKeyCounterAlg.java index 025660d2553..bafdb35e02b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomGetKeyCounterAlg.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomGetKeyCounterAlg.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomNormal.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomNormal.java index 398a652cdb7..13e1765dd0b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomNormal.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomNormal.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomNormalV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomNormalV2.java index 9f896a2f90a..6d060f26512 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomNormalV2.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomNormalV2.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomPoisson.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomPoisson.java index 05ca02b45f6..43877c85cb4 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomPoisson.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomPoisson.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniform.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniform.java index 9d320fb2701..fbe13e799e6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniform.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniform.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniformFullInt.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniformFullInt.java index 1d56521fa8d..959513585a4 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniformFullInt.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniformFullInt.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniformFullIntV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniformFullIntV2.java index ac5fc5bf2dd..68e6e53742c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniformFullIntV2.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniformFullIntV2.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniformInt.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniformInt.java index e79c7c34a69..15f9751c6e6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniformInt.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniformInt.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniformIntV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniformIntV2.java index a4180fbad04..2e928e05d43 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniformIntV2.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniformIntV2.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniformV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniformV2.java index 5e947e8c0df..318ff64abc6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniformV2.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessRandomUniformV2.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessTruncatedNormal.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessTruncatedNormal.java index 3e81aa44013..3af9ef6cb30 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessTruncatedNormal.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessTruncatedNormal.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessTruncatedNormalV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessTruncatedNormalV2.java index ef7beb10bef..0e0a1703987 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessTruncatedNormalV2.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessTruncatedNormalV2.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/TruncatedNormal.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/TruncatedNormal.java index 8d0ebdce181..36b2d4131ea 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/TruncatedNormal.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/TruncatedNormal.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/experimental/StatelessShuffle.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/experimental/StatelessShuffle.java index f7d624e077b..1eb4919910e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/experimental/StatelessShuffle.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/experimental/StatelessShuffle.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscAbs.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscAbs.java index 4e523294586..3f94e9f721e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscAbs.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscAbs.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscAdd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscAdd.java index e396575526f..1eb5923fd4e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscAdd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscAdd.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscBinaryArithmetic.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscBinaryArithmetic.java index b444518c838..4a325da5bd7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscBinaryArithmetic.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscBinaryArithmetic.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscBinaryComparison.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscBinaryComparison.java index f0abffc2c37..fd5c46e02fa 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscBinaryComparison.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscBinaryComparison.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscBitcast.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscBitcast.java index 1dd01240ba7..f6397bb5c5c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscBitcast.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscBitcast.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscBroadcast.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscBroadcast.java index 2eff25a523c..67a896c8a6c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscBroadcast.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscBroadcast.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscCast.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscCast.java index 1d02f612c79..a0380c4c6ef 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscCast.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscCast.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscCeil.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscCeil.java index 38a4d1c7359..a0467ef804e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscCeil.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscCeil.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscCholesky.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscCholesky.java index 5d7efdbd388..46c629a13cf 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscCholesky.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscCholesky.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscConcat.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscConcat.java index 00284df4d92..cd630815058 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscConcat.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscConcat.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscCondition.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscCondition.java index c050a9796e1..10d6043049b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscCondition.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscCondition.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscConv.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscConv.java index e801b48b760..1a1862f0ef5 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscConv.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscConv.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscCos.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscCos.java index 3cd0d254ec6..a911caa01b6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscCos.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscCos.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscDiv.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscDiv.java index 496ad94deec..af73db69755 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscDiv.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscDiv.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscDot.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscDot.java index 0f228522c0e..54cc8869640 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscDot.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscDot.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscExp.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscExp.java index eeca58489ce..c57391fe95d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscExp.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscExp.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscFft.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscFft.java index ade229f1a25..7d9087ac954 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscFft.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscFft.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscFloor.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscFloor.java index 285f2e2c9b4..c9cc2016aaa 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscFloor.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscFloor.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscGather.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscGather.java index 320efad4667..b72c48df168 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscGather.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscGather.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscImag.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscImag.java index 30aedc0a58b..9d049418c9a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscImag.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscImag.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscIsFinite.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscIsFinite.java index cdafd894170..e4ad5b2d5c8 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscIsFinite.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscIsFinite.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscLog.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscLog.java index 4908d8f4852..7cf5e3f76fb 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscLog.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscLog.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscMax.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscMax.java index 979d78641cb..237b3e59153 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscMax.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscMax.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscMin.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscMin.java index cccb1aaa956..d09cb76043f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscMin.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscMin.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscMul.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscMul.java index 16303fd4cb5..1716160ec59 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscMul.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscMul.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscNeg.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscNeg.java index 2d257ab5f9a..4b6a2cd9e06 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscNeg.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscNeg.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscPad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscPad.java index 8e3d0c0bb50..ba2d1d3e598 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscPad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscPad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscPool.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscPool.java index 9648afe26fb..890d39d13c9 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscPool.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscPool.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscPow.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscPow.java index 61d088e03d5..2746be95d86 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscPow.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscPow.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscRandomUniform.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscRandomUniform.java index 93e8d45aeea..639d27c0dc7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscRandomUniform.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscRandomUniform.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscReal.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscReal.java index e5b903f5184..edabcac687c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscReal.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscReal.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscReduce.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscReduce.java index 160b9c22d8c..f06b55252c5 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscReduce.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscReduce.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscRem.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscRem.java index fcdee1eac95..10b0763d7c3 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscRem.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscRem.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscReshape.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscReshape.java index 549608ae9c8..3e7165e731a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscReshape.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscReshape.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscReverse.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscReverse.java index d155a34f4fd..68048363168 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscReverse.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscReverse.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscScatter.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscScatter.java index 7ec4a5c2566..eb81a437ade 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscScatter.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscScatter.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscShape.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscShape.java index a3d770238bd..4c0bb6e48bf 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscShape.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscShape.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscSign.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscSign.java index 21beca3c445..96d5f4beeb4 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscSign.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscSign.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscSlice.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscSlice.java index 30094092366..4416bf35d1a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscSlice.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscSlice.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscSort.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscSort.java index 5ff6da3f56e..acdca28c50f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscSort.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscSort.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscSqueeze.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscSqueeze.java index 3477295200f..6482ec49ddd 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscSqueeze.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscSqueeze.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscSub.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscSub.java index 924c6c13d6a..354df79336f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscSub.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscSub.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscTranspose.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscTranspose.java index d0078a53b13..d9eac1ff1a3 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscTranspose.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscTranspose.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscTriangularSolve.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscTriangularSolve.java index d8433116535..6050ac82a52 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscTriangularSolve.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscTriangularSolve.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscUnary.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscUnary.java index a2c1562f452..3771d3c4aa8 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscUnary.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscUnary.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscWhile.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscWhile.java index 4ea553de296..b74fa78ac1f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscWhile.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/risc/RiscWhile.java @@ -34,7 +34,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Fft.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Fft.java index dea0a48842b..4e036db15d5 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Fft.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Fft.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Fft2d.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Fft2d.java index 40b0172b298..8cc8a6586e7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Fft2d.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Fft2d.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Fft3d.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Fft3d.java index b22ce290c7f..19fa75180cc 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Fft3d.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Fft3d.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Ifft.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Ifft.java index cd2ee254858..405eab2b441 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Ifft.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Ifft.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Ifft2d.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Ifft2d.java index f6db71ee420..c5decdb1da7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Ifft2d.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Ifft2d.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Ifft3d.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Ifft3d.java index ae8ada88723..fa97642b2f4 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Ifft3d.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Ifft3d.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Irfft.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Irfft.java index 778fe6e8b19..335c6b32e93 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Irfft.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Irfft.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Irfft2d.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Irfft2d.java index b2e0adfc73c..744feacb0ab 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Irfft2d.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Irfft2d.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Irfft3d.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Irfft3d.java index d236e2f491e..eb9c4ab41dc 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Irfft3d.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Irfft3d.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Rfft.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Rfft.java index 8b36bb17a91..6bbb01a2850 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Rfft.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Rfft.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Rfft2d.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Rfft2d.java index 7544225ad59..68773c54d1a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Rfft2d.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Rfft2d.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Rfft3d.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Rfft3d.java index 27d036bb167..ab68aa12d0f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Rfft3d.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/signal/Rfft3d.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/AddManySparseToTensorsMap.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/AddManySparseToTensorsMap.java index d755a174c23..0cbd05a8b98 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/AddManySparseToTensorsMap.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/AddManySparseToTensorsMap.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/AddSparseToTensorsMap.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/AddSparseToTensorsMap.java index d7183499710..96a9170336e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/AddSparseToTensorsMap.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/AddSparseToTensorsMap.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/DenseCountSparseOutput.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/DenseCountSparseOutput.java index 52f35f3f361..7fe800a638c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/DenseCountSparseOutput.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/DenseCountSparseOutput.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/DenseToDenseSetOperation.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/DenseToDenseSetOperation.java index a6511516212..85a254e9da4 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/DenseToDenseSetOperation.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/DenseToDenseSetOperation.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/DenseToSparseSetOperation.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/DenseToSparseSetOperation.java index d0adce8f07e..a5bf93664c3 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/DenseToSparseSetOperation.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/DenseToSparseSetOperation.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/DeserializeSparse.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/DeserializeSparse.java index 194b3d52bea..cc12092e90d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/DeserializeSparse.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/DeserializeSparse.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseAccumulatorApplyGradient.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseAccumulatorApplyGradient.java index 3bd3fab97ed..d8935b025a2 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseAccumulatorApplyGradient.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseAccumulatorApplyGradient.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.TString; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseAccumulatorTakeGradient.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseAccumulatorTakeGradient.java index 77a6535e33f..3333a50aa43 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseAccumulatorTakeGradient.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseAccumulatorTakeGradient.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.TInt64; import org.tensorflow.types.TString; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseAdd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseAdd.java index 4398a568e92..c03e1f229a2 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseAdd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseAdd.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseAddGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseAddGrad.java index 80326b0cf4b..6adc693466e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseAddGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseAddGrad.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseBincount.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseBincount.java index 75a1d1db4c1..0cc57cc85a2 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseBincount.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseBincount.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseConcat.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseConcat.java index 1d81ad6df6f..e9206ae7872 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseConcat.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseConcat.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseConditionalAccumulator.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseConditionalAccumulator.java index 6af3238f95b..6c6f54b00e9 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseConditionalAccumulator.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseConditionalAccumulator.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseCountSparseOutput.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseCountSparseOutput.java index ff0d0df51da..9b81b9d80ec 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseCountSparseOutput.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseCountSparseOutput.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseCross.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseCross.java index ea955edf73f..1bc294c24fd 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseCross.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseCross.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.TString; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseCrossHashed.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseCrossHashed.java index fc751a20729..dd50dadf9e3 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseCrossHashed.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseCrossHashed.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.TInt64; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseDenseCwiseAdd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseDenseCwiseAdd.java index fc697fca664..70d9663b661 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseDenseCwiseAdd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseDenseCwiseAdd.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseDenseCwiseDiv.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseDenseCwiseDiv.java index f14744727c4..3004a2d2b84 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseDenseCwiseDiv.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseDenseCwiseDiv.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseDenseCwiseMul.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseDenseCwiseMul.java index 3e328ca6276..a86f2b14685 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseDenseCwiseMul.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseDenseCwiseMul.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseFillEmptyRows.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseFillEmptyRows.java index efdbd90d770..749faaf76a4 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseFillEmptyRows.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseFillEmptyRows.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseFillEmptyRowsGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseFillEmptyRowsGrad.java index ae2e868cae0..e0a3496df70 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseFillEmptyRowsGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseFillEmptyRowsGrad.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseMatMul.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseMatMul.java index 84c3c572a20..f6f3f654c28 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseMatMul.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseMatMul.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseReduceMax.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseReduceMax.java index e9da7b6f303..833f755bf1e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseReduceMax.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseReduceMax.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseReduceMaxSparse.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseReduceMaxSparse.java index db978698d60..91790bd40df 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseReduceMaxSparse.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseReduceMaxSparse.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseReduceSum.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseReduceSum.java index 38e33afbe7e..d813459c4fe 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseReduceSum.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseReduceSum.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseReduceSumSparse.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseReduceSumSparse.java index 491d69547f6..3bba177f1bb 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseReduceSumSparse.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseReduceSumSparse.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseReorder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseReorder.java index b16291c8b74..e55d524d85d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseReorder.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseReorder.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentMean.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentMean.java index ebbf5810542..9d50f859832 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentMean.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentMean.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentMeanGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentMeanGrad.java index 8304030c319..1abc25dcba7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentMeanGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentMeanGrad.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentMeanWithNumSegments.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentMeanWithNumSegments.java index c4a86ae503b..62ca1391539 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentMeanWithNumSegments.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentMeanWithNumSegments.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSqrtN.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSqrtN.java index bab5aaa2b23..c6ae240f768 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSqrtN.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSqrtN.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSqrtNGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSqrtNGrad.java index e750b1b2d7b..39ddaf1bd5f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSqrtNGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSqrtNGrad.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSqrtNWithNumSegments.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSqrtNWithNumSegments.java index c9fba5bcb5e..a0c63546366 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSqrtNWithNumSegments.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSqrtNWithNumSegments.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSum.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSum.java index a80d8ebd367..cc488174fd4 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSum.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSum.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSumGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSumGrad.java index 1cb8641dbef..2e765129d05 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSumGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSumGrad.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSumWithNumSegments.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSumWithNumSegments.java index 8f07f82a520..0b8a2d8b30f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSumWithNumSegments.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSegmentSumWithNumSegments.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSlice.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSlice.java index a20f448f2a1..c2a19aa4181 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSlice.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSlice.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSliceGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSliceGrad.java index 0a1707ba422..261c2233d02 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSliceGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSliceGrad.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSoftmax.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSoftmax.java index 89d136bee27..a086630e009 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSoftmax.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSoftmax.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSparseMaximum.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSparseMaximum.java index 5ec9f277d39..38e139831b1 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSparseMaximum.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSparseMaximum.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSparseMinimum.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSparseMinimum.java index 27e60220acd..c438cf25e0e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSparseMinimum.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSparseMinimum.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSplit.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSplit.java index 052cacda9ad..aa974674eeb 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSplit.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseSplit.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseTensorDenseAdd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseTensorDenseAdd.java index 519c557d4e7..551dd454ca2 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseTensorDenseAdd.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseTensorDenseAdd.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseTensorDenseMatMul.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseTensorDenseMatMul.java index 477f8a5017d..c30ba73f415 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseTensorDenseMatMul.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseTensorDenseMatMul.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseToDense.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseToDense.java index f4f52fff87f..7aa6c73fa58 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseToDense.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseToDense.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseToSparseSetOperation.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseToSparseSetOperation.java index 8dc386c3f95..7d2a4db9e5c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseToSparseSetOperation.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/SparseToSparseSetOperation.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/TakeManySparseFromTensorsMap.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/TakeManySparseFromTensorsMap.java index da6f305945d..ed536528c04 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/TakeManySparseFromTensorsMap.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/sparse/TakeManySparseFromTensorsMap.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/StringFormat.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/StringFormat.java index 546f3fcd7c7..3acbd15c9c0 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/StringFormat.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/StringFormat.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/StringNGrams.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/StringNGrams.java index 2cf0e08e5ec..ade97f80749 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/StringNGrams.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/StringNGrams.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/Substr.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/Substr.java index 16424cde560..cba8dcebc55 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/Substr.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/Substr.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/ToNumber.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/ToNumber.java index 46e54df3e54..1fe69dc6f90 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/ToNumber.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/ToNumber.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TFloat32; import org.tensorflow.types.TString; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/UnicodeDecode.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/UnicodeDecode.java index 9911fc4f549..3d3bccfdc57 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/UnicodeDecode.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/UnicodeDecode.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.TInt64; import org.tensorflow.types.TString; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/UnicodeDecodeWithOffsets.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/UnicodeDecodeWithOffsets.java index e73a0f47ca1..08338c3bb2b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/UnicodeDecodeWithOffsets.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/UnicodeDecodeWithOffsets.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.TInt64; import org.tensorflow.types.TString; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/UnicodeEncode.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/UnicodeEncode.java index c7ed2802590..cb311428fe8 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/UnicodeEncode.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/UnicodeEncode.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.TString; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/UnsortedSegmentJoin.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/UnsortedSegmentJoin.java index da8fb9bdfe2..9afca5089a6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/UnsortedSegmentJoin.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/strings/UnsortedSegmentJoin.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/HistogramSummary.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/HistogramSummary.java index f9b4e9233e1..055e25cc714 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/HistogramSummary.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/HistogramSummary.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/ImageSummary.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/ImageSummary.java index bc0c47420ce..dc35d76d0ed 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/ImageSummary.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/ImageSummary.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/ScalarSummary.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/ScalarSummary.java index cba225d6178..21eb42d7148 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/ScalarSummary.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/ScalarSummary.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/TensorSummary.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/TensorSummary.java index 872dae1d9df..4a4507b12c4 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/TensorSummary.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/TensorSummary.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/WriteHistogramSummary.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/WriteHistogramSummary.java index 5204407f918..a45f87e1c1b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/WriteHistogramSummary.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/WriteHistogramSummary.java @@ -28,7 +28,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.TString; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/WriteImageSummary.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/WriteImageSummary.java index 6373becb297..ac118a1bc29 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/WriteImageSummary.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/WriteImageSummary.java @@ -28,7 +28,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.TString; import org.tensorflow.types.TUint8; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/WriteScalarSummary.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/WriteScalarSummary.java index f02faaaece0..e1fa7ae685e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/WriteScalarSummary.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/WriteScalarSummary.java @@ -28,7 +28,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.TString; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/WriteSummary.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/WriteSummary.java index b28b4be1cbb..83814a9f329 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/WriteSummary.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/summary/WriteSummary.java @@ -28,7 +28,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.TString; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/AllToAll.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/AllToAll.java index cf8352f45ba..f84d912baf4 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/AllToAll.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/AllToAll.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/Compile.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/Compile.java index e1efe025f0f..e45c99535cf 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/Compile.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/Compile.java @@ -33,7 +33,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TBool; import org.tensorflow.types.TInt64; import org.tensorflow.types.TString; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/ConfigureAndInitializeGlobalTPU.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/ConfigureAndInitializeGlobalTPU.java index 82dc01dceb1..88e5ef0a448 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/ConfigureAndInitializeGlobalTPU.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/ConfigureAndInitializeGlobalTPU.java @@ -60,16 +60,34 @@ public ConfigureAndInitializeGlobalTPU(Operation operation) { * Factory method to create a class wrapping a new ConfigureAndInitializeGlobalTPU operation. * * @param scope current scope + * @param options carries optional attribute values * @return a new instance of ConfigureAndInitializeGlobalTPU */ @Endpoint( describeByClass = true ) - public static ConfigureAndInitializeGlobalTPU create(Scope scope) { + public static ConfigureAndInitializeGlobalTPU create(Scope scope, Options... options) { OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "ConfigureAndInitializeGlobalTPU"); + if (options != null) { + for (Options opts : options) { + if (opts.useTfrtHostRuntime != null) { + opBuilder.setAttr("use_tfrt_host_runtime", opts.useTfrtHostRuntime); + } + } + } return new ConfigureAndInitializeGlobalTPU(opBuilder.build()); } + /** + * Sets the useTfrtHostRuntime option. + * + * @param useTfrtHostRuntime the useTfrtHostRuntime option + * @return this Options instance. + */ + public static Options useTfrtHostRuntime(Boolean useTfrtHostRuntime) { + return new Options().useTfrtHostRuntime(useTfrtHostRuntime); + } + /** * Gets output. * A vector containing the global TPU id of each TPU on the host. @@ -84,13 +102,40 @@ public Output asOutput() { return output; } + /** + * Optional attributes for {@link org.tensorflow.op.tpu.ConfigureAndInitializeGlobalTPU} + */ + public static class Options { + private Boolean useTfrtHostRuntime; + + private Options() { + } + + /** + * Sets the useTfrtHostRuntime option. + * + * @param useTfrtHostRuntime the useTfrtHostRuntime option + * @return this Options instance. + */ + public Options useTfrtHostRuntime(Boolean useTfrtHostRuntime) { + this.useTfrtHostRuntime = useTfrtHostRuntime; + return this; + } + } + @OpInputsMetadata( outputsClass = ConfigureAndInitializeGlobalTPU.class ) public static class Inputs extends RawOpInputs { + /** + * The useTfrtHostRuntime attribute + */ + public final boolean useTfrtHostRuntime; + public Inputs(GraphOperation op) { - super(new ConfigureAndInitializeGlobalTPU(op), op, Arrays.asList()); + super(new ConfigureAndInitializeGlobalTPU(op), op, Arrays.asList("use_tfrt_host_runtime")); int inputIndex = 0; + useTfrtHostRuntime = op.attributes().getAttrBool("use_tfrt_host_runtime"); } } } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/ConfigureTPUEmbeddingMemory.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/ConfigureTPUEmbeddingMemory.java index 5a7e3fc9f13..46bfe5f6078 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/ConfigureTPUEmbeddingMemory.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/ConfigureTPUEmbeddingMemory.java @@ -76,7 +76,7 @@ public static ConfigureTPUEmbeddingMemory create(Scope scope, Operand c /** * Gets memoryConfig. - * A string-encoded HbmBuffersConfig proto containing metadata about + * A string-encoded memory configuration containing metadata about * the memory allocations reserved for TPUEmbedding. * @return memoryConfig. */ diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/CrossReplicaSum.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/CrossReplicaSum.java index 1b5a34c85d3..1bdb711d988 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/CrossReplicaSum.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/CrossReplicaSum.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/DTensorRestore.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/DTensorRestore.java index d4ca14bfb31..2f4c8b15459 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/DTensorRestore.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/DTensorRestore.java @@ -34,7 +34,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/DTensorShardedPrefix.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/DTensorShardedPrefix.java deleted file mode 100644 index 704fc063bfc..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/DTensorShardedPrefix.java +++ /dev/null @@ -1,156 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.tpu; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.Operands; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.TString; - -/** - * The DTensorShardedPrefix operation - */ -@OpMetadata( - opType = DTensorShardedPrefix.OP_NAME, - inputsClass = DTensorShardedPrefix.Inputs.class -) -@Operator( - group = "tpu" -) -public final class DTensorShardedPrefix extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "DTensorShardedPrefix"; - - private Output output; - - public DTensorShardedPrefix(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new DTensorShardedPrefix operation. - * - * @param scope current scope - * @param prefix The prefix value - * @param tensorNames The tensorNames value - * @param shapeAndSlices The shapeAndSlices value - * @param mesh The mesh value - * @param layouts The layouts value - * @param tensors The tensors value - * @return a new instance of DTensorShardedPrefix - */ - @Endpoint( - describeByClass = true - ) - public static DTensorShardedPrefix create(Scope scope, Operand prefix, - Operand tensorNames, Operand shapeAndSlices, Operand mesh, - Operand layouts, Iterable> tensors) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "DTensorShardedPrefix"); - opBuilder.addInput(prefix.asOutput()); - opBuilder.addInput(tensorNames.asOutput()); - opBuilder.addInput(shapeAndSlices.asOutput()); - opBuilder.addInput(mesh.asOutput()); - opBuilder.addInput(layouts.asOutput()); - opBuilder.addInputList(Operands.asOutputs(tensors)); - return new DTensorShardedPrefix(opBuilder.build()); - } - - /** - * Gets output. - * - * @return output. - */ - public Output output() { - return output; - } - - @Override - public Output asOutput() { - return output; - } - - @OpInputsMetadata( - outputsClass = DTensorShardedPrefix.class - ) - public static class Inputs extends RawOpInputs { - /** - * The prefix input - */ - public final Operand prefix; - - /** - * The tensorNames input - */ - public final Operand tensorNames; - - /** - * The shapeAndSlices input - */ - public final Operand shapeAndSlices; - - /** - * The mesh input - */ - public final Operand mesh; - - /** - * The layouts input - */ - public final Operand layouts; - - /** - * The tensors input - */ - public final Iterable> tensors; - - /** - * The dtypes attribute - */ - public final DataType[] dtypes; - - public Inputs(GraphOperation op) { - super(new DTensorShardedPrefix(op), op, Arrays.asList("dtypes")); - int inputIndex = 0; - prefix = (Operand) op.input(inputIndex++); - tensorNames = (Operand) op.input(inputIndex++); - shapeAndSlices = (Operand) op.input(inputIndex++); - mesh = (Operand) op.input(inputIndex++); - layouts = (Operand) op.input(inputIndex++); - int tensorsLength = op.inputListLength("tensors"); - tensors = Arrays.asList((Operand[]) op.inputList(inputIndex, tensorsLength)); - inputIndex += tensorsLength; - dtypes = op.attributes().getAttrTypeList("dtypes"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/DynamicEnqueueTPUEmbeddingArbitraryTensorBatch.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/DynamicEnqueueTPUEmbeddingArbitraryTensorBatch.java index 0813a875f36..12b93c14166 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/DynamicEnqueueTPUEmbeddingArbitraryTensorBatch.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/DynamicEnqueueTPUEmbeddingArbitraryTensorBatch.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.TString; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/EnqueueTPUEmbeddingArbitraryTensorBatch.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/EnqueueTPUEmbeddingArbitraryTensorBatch.java index a10deeb2ff1..4d22f5bfc52 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/EnqueueTPUEmbeddingArbitraryTensorBatch.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/EnqueueTPUEmbeddingArbitraryTensorBatch.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/EnqueueTPUEmbeddingRaggedTensorBatch.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/EnqueueTPUEmbeddingRaggedTensorBatch.java index 585e263f393..8e33e4de22b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/EnqueueTPUEmbeddingRaggedTensorBatch.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/EnqueueTPUEmbeddingRaggedTensorBatch.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/EnqueueTPUEmbeddingSparseBatch.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/EnqueueTPUEmbeddingSparseBatch.java index e065d959b8f..d44d75113fd 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/EnqueueTPUEmbeddingSparseBatch.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/EnqueueTPUEmbeddingSparseBatch.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/EnqueueTPUEmbeddingSparseTensorBatch.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/EnqueueTPUEmbeddingSparseTensorBatch.java index 00876ce75e8..81694cf11f9 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/EnqueueTPUEmbeddingSparseTensorBatch.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/EnqueueTPUEmbeddingSparseTensorBatch.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.family.TNumber; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/Execute.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/Execute.java index b8a1a1c96d3..c4235bc502d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/Execute.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/Execute.java @@ -33,7 +33,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/ExecuteAndUpdateVariables.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/ExecuteAndUpdateVariables.java index 032679e2671..3588d4fd3c2 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/ExecuteAndUpdateVariables.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/ExecuteAndUpdateVariables.java @@ -33,7 +33,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/InfeedDequeue.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/InfeedDequeue.java index 977c145d137..0fad92d5e2b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/InfeedDequeue.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/InfeedDequeue.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/InfeedDequeueTuple.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/InfeedDequeueTuple.java index bfd67f02ab4..d084a3c8744 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/InfeedDequeueTuple.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/InfeedDequeueTuple.java @@ -33,7 +33,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/InfeedEnqueue.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/InfeedEnqueue.java index 666ad09e422..37e5216660d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/InfeedEnqueue.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/InfeedEnqueue.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/InfeedEnqueueTuple.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/InfeedEnqueueTuple.java index 9a05259374d..2e15b7d95f1 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/InfeedEnqueueTuple.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/InfeedEnqueueTuple.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; /** * Feeds multiple Tensor values into the computation as an XLA tuple. diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedDequeue.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedDequeue.java index e5166eea92e..0ea5b67c8f3 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedDequeue.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedDequeue.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedDequeueTuple.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedDequeueTuple.java index 780c2fa5389..9f68b670111 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedDequeueTuple.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedDequeueTuple.java @@ -33,7 +33,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedDequeueTupleV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedDequeueTupleV2.java index 0460c8f4960..665d22236b8 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedDequeueTupleV2.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedDequeueTupleV2.java @@ -33,7 +33,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedDequeueV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedDequeueV2.java index c9274651245..c0aceeafc37 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedDequeueV2.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedDequeueV2.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedEnqueue.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedEnqueue.java index c0b50ddd586..b63519888ea 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedEnqueue.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedEnqueue.java @@ -28,7 +28,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedEnqueueTuple.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedEnqueueTuple.java index c4001b09609..062a0b32c6e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedEnqueueTuple.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedEnqueueTuple.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; /** * Enqueue multiple Tensor values on the computation outfeed. diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/PartitionedCall.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/PartitionedCall.java index e583ff314e2..4a458cd02eb 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/PartitionedCall.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/PartitionedCall.java @@ -33,7 +33,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/PartitionedInput.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/PartitionedInput.java index 9109f91f705..b96859bd6a7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/PartitionedInput.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/PartitionedInput.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/PartitionedOutput.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/PartitionedOutput.java index 77e5809d8ba..5be2ed5755c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/PartitionedOutput.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/PartitionedOutput.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/Prelinearize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/Prelinearize.java index 0cbb1a9e11d..8cc49fd85d2 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/Prelinearize.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/Prelinearize.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/PrelinearizeTuple.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/PrelinearizeTuple.java index cf0d86ce902..f69c2a9e6ed 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/PrelinearizeTuple.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/PrelinearizeTuple.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/ReplicatedInput.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/ReplicatedInput.java index d821d70bbfd..075e6d87a6f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/ReplicatedInput.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/ReplicatedInput.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/ReplicatedOutput.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/ReplicatedOutput.java index e14c78fefb4..f85b7de8f66 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/ReplicatedOutput.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/ReplicatedOutput.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/TPUReplicatedInput.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/TPUReplicatedInput.java index 1e48db6d729..b749aa2de78 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/TPUReplicatedInput.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/TPUReplicatedInput.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/TPUReplicatedOutput.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/TPUReplicatedOutput.java index a86a813d7b0..66a28361c1c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/TPUReplicatedOutput.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/TPUReplicatedOutput.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/AccumulatorApplyGradient.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/AccumulatorApplyGradient.java index ee33ce52168..69fb8210581 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/AccumulatorApplyGradient.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/AccumulatorApplyGradient.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.TString; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/AccumulatorTakeGradient.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/AccumulatorTakeGradient.java index 7fb6206e5a0..c90f230cb80 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/AccumulatorTakeGradient.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/AccumulatorTakeGradient.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.TString; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdaMax.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdaMax.java index fcf6436d6c8..54cba126bd6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdaMax.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdaMax.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdadelta.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdadelta.java index 338d845bcdf..aa80574cf41 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdadelta.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdadelta.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdagrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdagrad.java index d17c7d28e89..adf5de2d5dc 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdagrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdagrad.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdagradDa.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdagradDa.java index 9aefe812618..83df753b17a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdagradDa.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdagradDa.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdagradV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdagradV2.java index eabfff7ff38..f3ec0270d55 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdagradV2.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdagradV2.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdam.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdam.java index 5fb41fcfc27..eb4fe971996 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdam.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAdam.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAddSign.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAddSign.java index aa20fd3a933..d0fa7f69c49 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAddSign.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyAddSign.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyCenteredRmsProp.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyCenteredRmsProp.java index 2cad5fd3c9b..4ce423be4e7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyCenteredRmsProp.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyCenteredRmsProp.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyFtrl.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyFtrl.java index 8d9c39f039f..4841a3348be 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyFtrl.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyFtrl.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyGradientDescent.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyGradientDescent.java index 72243367aa7..7e9379da7ce 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyGradientDescent.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyGradientDescent.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyMomentum.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyMomentum.java index 633be1f7f02..67091d5b181 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyMomentum.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyMomentum.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyPowerSign.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyPowerSign.java index 9b5e8a797a3..b228249dcbc 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyPowerSign.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyPowerSign.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyProximalAdagrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyProximalAdagrad.java index 023face83fd..5b39f84c2a4 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyProximalAdagrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyProximalAdagrad.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyProximalGradientDescent.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyProximalGradientDescent.java index ab49ad35efa..8722853a911 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyProximalGradientDescent.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyProximalGradientDescent.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyRmsProp.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyRmsProp.java index 0ed87d26257..538f9ee4f15 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyRmsProp.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ApplyRmsProp.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/BatchMatMul.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/BatchMatMul.java index b0ba0b8932b..f421e4ea983 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/BatchMatMul.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/BatchMatMul.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ConditionalAccumulator.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ConditionalAccumulator.java index aa0432fc595..6237ed55c69 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ConditionalAccumulator.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ConditionalAccumulator.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/PreventGradient.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/PreventGradient.java index c18164e9d49..0cc8490b48f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/PreventGradient.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/PreventGradient.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceAccumulatorApplyGradient.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceAccumulatorApplyGradient.java index f103a23fcad..aca00ae5e67 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceAccumulatorApplyGradient.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceAccumulatorApplyGradient.java @@ -28,7 +28,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceAccumulatorTakeGradient.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceAccumulatorTakeGradient.java index 8610c7c85f9..36b2d926229 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceAccumulatorTakeGradient.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceAccumulatorTakeGradient.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdaMax.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdaMax.java index 4980b591de9..6a51079d9fa 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdaMax.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdaMax.java @@ -28,7 +28,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdadelta.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdadelta.java index 6e82e9771fc..c33db400e95 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdadelta.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdadelta.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdagrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdagrad.java index e27231ae655..3ffaedfe508 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdagrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdagrad.java @@ -28,7 +28,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdagradDa.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdagradDa.java index df32bd9cf82..88303ff116e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdagradDa.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdagradDa.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdam.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdam.java index bcfcfe3358c..f95cd8f9b36 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdam.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdam.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdamWithAmsgrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdamWithAmsgrad.java index 4c15227c5f1..ae1ad106603 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdamWithAmsgrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAdamWithAmsgrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAddSign.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAddSign.java index 93b5c92a4c7..f70e24aa885 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAddSign.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyAddSign.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyCenteredRmsProp.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyCenteredRmsProp.java index fedfa06c0e2..8a1e8b3c327 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyCenteredRmsProp.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyCenteredRmsProp.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyFtrl.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyFtrl.java index 7d18b6ed68a..4c01b7373ff 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyFtrl.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyFtrl.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyGradientDescent.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyGradientDescent.java index 5f99dc7153e..0ff7d6f49d4 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyGradientDescent.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyGradientDescent.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyKerasMomentum.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyKerasMomentum.java index 310c74b9634..add1c813d51 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyKerasMomentum.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyKerasMomentum.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyMomentum.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyMomentum.java index 7658e2a8f12..a66f9e9611c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyMomentum.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyMomentum.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyPowerSign.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyPowerSign.java index e428a5cc80c..c3ce4981a5b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyPowerSign.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyPowerSign.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyProximalAdagrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyProximalAdagrad.java index 8fab87980ea..dc4478425d0 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyProximalAdagrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyProximalAdagrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyProximalGradientDescent.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyProximalGradientDescent.java index 6b343d6fd87..2ff17868546 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyProximalGradientDescent.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyProximalGradientDescent.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyRmsProp.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyRmsProp.java index caa1daaa5c2..d9322ddcf7a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyRmsProp.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceApplyRmsProp.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceConditionalAccumulator.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceConditionalAccumulator.java index 93f5f2e4c7b..54fc842cb41 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceConditionalAccumulator.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceConditionalAccumulator.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyAdadelta.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyAdadelta.java index dbe55fa57c4..353796fe4cd 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyAdadelta.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyAdadelta.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyAdagrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyAdagrad.java index 2233d8b8fd5..a6506f5c0fa 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyAdagrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyAdagrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyAdagradDa.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyAdagradDa.java index a6f8de72014..198fb592d00 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyAdagradDa.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyAdagradDa.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyAdagradV2.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyAdagradV2.java index 3e4bea92bce..3f8bd08e1df 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyAdagradV2.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyAdagradV2.java @@ -28,7 +28,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyCenteredRmsProp.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyCenteredRmsProp.java index 58820b06069..ccd766f1161 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyCenteredRmsProp.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyCenteredRmsProp.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyFtrl.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyFtrl.java index 3b3da8a410f..3eea136df6b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyFtrl.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyFtrl.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyKerasMomentum.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyKerasMomentum.java index 6eec6d635c6..8286aa6d26a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyKerasMomentum.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyKerasMomentum.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyMomentum.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyMomentum.java index ee853aad55b..1bb4e3c2e10 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyMomentum.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyMomentum.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyProximalAdagrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyProximalAdagrad.java index 3c0a1d43a6d..177246eaa81 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyProximalAdagrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyProximalAdagrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyProximalGradientDescent.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyProximalGradientDescent.java index dad19f44e79..6852d8dc554 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyProximalGradientDescent.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyProximalGradientDescent.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyRmsProp.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyRmsProp.java index 49018cbc17d..91a5fe71855 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyRmsProp.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/ResourceSparseApplyRmsProp.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/Restore.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/Restore.java index 7e135d0a8d6..822ffab6766 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/Restore.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/Restore.java @@ -33,7 +33,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/RestoreSlice.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/RestoreSlice.java index 68d5b142b16..6070a55e32d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/RestoreSlice.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/RestoreSlice.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/Save.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/Save.java index 56dbfbf1c52..299eaab3393 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/Save.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/Save.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SaveSlices.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SaveSlices.java index fac0699899d..be43e87c739 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SaveSlices.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SaveSlices.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TString; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyAdadelta.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyAdadelta.java index 7354b1ee9cd..ff89d7ce986 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyAdadelta.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyAdadelta.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyAdagrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyAdagrad.java index d7725e1250e..e9def2e0d46 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyAdagrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyAdagrad.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyAdagradDa.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyAdagradDa.java index 811a47612ff..bc5316a6b53 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyAdagradDa.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyAdagradDa.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt64; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyCenteredRmsProp.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyCenteredRmsProp.java index 490d5bc1e7c..f55af482306 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyCenteredRmsProp.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyCenteredRmsProp.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyFtrl.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyFtrl.java index 1f6a721ec37..5782bce7b1b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyFtrl.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyFtrl.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyMomentum.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyMomentum.java index d61699f4eba..c92b5c96c33 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyMomentum.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyMomentum.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyProximalAdagrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyProximalAdagrad.java index d7eb5e30448..35b2c1771c9 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyProximalAdagrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyProximalAdagrad.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyProximalGradientDescent.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyProximalGradientDescent.java index a19371d434a..e120bca4517 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyProximalGradientDescent.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyProximalGradientDescent.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyRmsProp.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyRmsProp.java index f9e3aed75b0..fb2c83b01cf 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyRmsProp.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SparseApplyRmsProp.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SymbolicGradient.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SymbolicGradient.java index e3464e59fa5..65cc2e1d699 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SymbolicGradient.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/SymbolicGradient.java @@ -34,7 +34,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/TileGrad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/TileGrad.java index bafbb2daf9f..68a7a429916 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/TileGrad.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/train/TileGrad.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/AllReduce.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/AllReduce.java deleted file mode 100644 index 5aa90c10c21..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/AllReduce.java +++ /dev/null @@ -1,149 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.TInt32; -import org.tensorflow.types.family.TNumber; - -/** - * Wraps the XLA AllReduce operator - * documented at https://www.tensorflow.org/xla/operation_semantics#allreduce. - * - * @param data type for {@code output} output - */ -@OpMetadata( - opType = AllReduce.OP_NAME, - inputsClass = AllReduce.Inputs.class -) -@Operator( - group = "xla" -) -public final class AllReduce extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaAllReduce"; - - private Output output; - - public AllReduce(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaAllReduce operation. - * - * @param scope current scope - * @param input Array or a non-empty tuple of arrays to reduce across replicas. - * @param groupAssignment Groups between which the reductions are performed. - * @param reduceOp Reduction computation. - * @param mode group mode. - * CrossReplica: group_assignment contains replica_id. Each group contains the - * replicas for the current partition. - * CrossReplicaAndPartition: group_assignment contains replica_id. Each group - * contains the replicas for all partitions. - * @param data type for {@code XlaAllReduce} output and operands - * @return a new instance of AllReduce - */ - @Endpoint( - describeByClass = true - ) - public static AllReduce create(Scope scope, Operand input, - Operand groupAssignment, String reduceOp, String mode) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "AllReduce"); - opBuilder.addInput(input.asOutput()); - opBuilder.addInput(groupAssignment.asOutput()); - opBuilder.setAttr("reduce_op", reduceOp); - opBuilder.setAttr("mode", mode); - return new AllReduce<>(opBuilder.build()); - } - - /** - * Gets output. - * - * @return output. - */ - public Output output() { - return output; - } - - @Override - public Output asOutput() { - return output; - } - - @OpInputsMetadata( - outputsClass = AllReduce.class - ) - public static class Inputs extends RawOpInputs> { - /** - * Array or a non-empty tuple of arrays to reduce across replicas. - */ - public final Operand input; - - /** - * Groups between which the reductions are performed. - */ - public final Operand groupAssignment; - - /** - * The T attribute - */ - public final DataType T; - - /** - * Reduction computation. - */ - public final String reduceOp; - - /** - * group mode. - * CrossReplica: group_assignment contains replica_id. Each group contains the - * replicas for the current partition. - * CrossReplicaAndPartition: group_assignment contains replica_id. Each group - * contains the replicas for all partitions. - */ - public final String mode; - - public Inputs(GraphOperation op) { - super(new AllReduce<>(op), op, Arrays.asList("T", "reduce_op", "mode")); - int inputIndex = 0; - input = (Operand) op.input(inputIndex++); - groupAssignment = (Operand) op.input(inputIndex++); - T = op.attributes().getAttrType("T"); - reduceOp = op.attributes().getAttrString("reduce_op"); - mode = op.attributes().getAttrString("mode"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/AssignVariableConcatND.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/AssignVariableConcatND.java index 7a25a993390..9594746314f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/AssignVariableConcatND.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/AssignVariableConcatND.java @@ -30,7 +30,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/BroadcastHelper.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/BroadcastHelper.java deleted file mode 100644 index 489080e8eca..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/BroadcastHelper.java +++ /dev/null @@ -1,148 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TNumber; -import org.tensorflow.types.family.TType; - -/** - * Helper operator for performing XLA-style broadcasts - * Broadcasts {@code lhs} and {@code rhs} to the same rank, by adding size 1 dimensions to - * whichever of {@code lhs} and {@code rhs} has the lower rank, using XLA's broadcasting rules - * for binary operators. - * - * @param data type for {@code lhs_output} output - */ -@OpMetadata( - opType = BroadcastHelper.OP_NAME, - inputsClass = BroadcastHelper.Inputs.class -) -@Operator( - group = "xla" -) -public final class BroadcastHelper extends RawOp { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaBroadcastHelper"; - - private Output lhsOutput; - - private Output rhsOutput; - - public BroadcastHelper(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - lhsOutput = operation.output(outputIdx++); - rhsOutput = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaBroadcastHelper operation. - * - * @param scope current scope - * @param lhs the LHS input tensor - * @param rhs the RHS input tensor - * @param broadcastDims an XLA-style broadcast dimension specification - * @param data type for {@code XlaBroadcastHelper} output and operands - * @return a new instance of BroadcastHelper - */ - @Endpoint( - describeByClass = true - ) - public static BroadcastHelper create(Scope scope, Operand lhs, - Operand rhs, Operand broadcastDims) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "BroadcastHelper"); - opBuilder.addInput(lhs.asOutput()); - opBuilder.addInput(rhs.asOutput()); - opBuilder.addInput(broadcastDims.asOutput()); - return new BroadcastHelper<>(opBuilder.build()); - } - - /** - * Gets lhsOutput. - * the broadcasted LHS tensor - * @return lhsOutput. - */ - public Output lhsOutput() { - return lhsOutput; - } - - /** - * Gets rhsOutput. - * the broadcasted RHS tensor - * @return rhsOutput. - */ - public Output rhsOutput() { - return rhsOutput; - } - - @OpInputsMetadata( - outputsClass = BroadcastHelper.class - ) - public static class Inputs extends RawOpInputs> { - /** - * the LHS input tensor - */ - public final Operand lhs; - - /** - * the RHS input tensor - */ - public final Operand rhs; - - /** - * an XLA-style broadcast dimension specification - */ - public final Operand broadcastDims; - - /** - * The T attribute - */ - public final DataType T; - - /** - * The Tindices attribute - */ - public final DataType Tindices; - - public Inputs(GraphOperation op) { - super(new BroadcastHelper<>(op), op, Arrays.asList("T", "Tindices")); - int inputIndex = 0; - lhs = (Operand) op.input(inputIndex++); - rhs = (Operand) op.input(inputIndex++); - broadcastDims = (Operand) op.input(inputIndex++); - T = op.attributes().getAttrType("T"); - Tindices = op.attributes().getAttrType("Tindices"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/ClusterOutput.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/ClusterOutput.java deleted file mode 100644 index 4a0ce890be2..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/ClusterOutput.java +++ /dev/null @@ -1,114 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TType; - -/** - * Operator that connects the output of an XLA computation to other consumer graph nodes. - * - * @param data type for {@code outputs} output - */ -@OpMetadata( - opType = ClusterOutput.OP_NAME, - inputsClass = ClusterOutput.Inputs.class -) -@Operator( - group = "xla" -) -public final class ClusterOutput extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaClusterOutput"; - - private Output outputs; - - public ClusterOutput(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - outputs = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaClusterOutput operation. - * - * @param scope current scope - * @param input The input value - * @param data type for {@code XlaClusterOutput} output and operands - * @return a new instance of ClusterOutput - */ - @Endpoint( - describeByClass = true - ) - public static ClusterOutput create(Scope scope, Operand input) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "ClusterOutput"); - opBuilder.addInput(input.asOutput()); - return new ClusterOutput<>(opBuilder.build()); - } - - /** - * Gets outputs. - * - * @return outputs. - */ - public Output outputs() { - return outputs; - } - - @Override - public Output asOutput() { - return outputs; - } - - @OpInputsMetadata( - outputsClass = ClusterOutput.class - ) - public static class Inputs extends RawOpInputs> { - /** - * The input input - */ - public final Operand input; - - /** - * The T attribute - */ - public final DataType T; - - public Inputs(GraphOperation op) { - super(new ClusterOutput<>(op), op, Arrays.asList("T")); - int inputIndex = 0; - input = (Operand) op.input(inputIndex++); - T = op.attributes().getAttrType("T"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/ConcatND.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/ConcatND.java index 608dd6ccec8..2892a7e4988 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/ConcatND.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/ConcatND.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Conv.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Conv.java deleted file mode 100644 index 0f78e756d89..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Conv.java +++ /dev/null @@ -1,252 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.Operands; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TNumber; -import org.tensorflow.types.family.TType; - -/** - * Wraps the XLA ConvGeneralDilated operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#conv_convolution - * . - * - * @param data type for {@code output} output - */ -@OpMetadata( - opType = Conv.OP_NAME, - inputsClass = Conv.Inputs.class -) -@Operator( - group = "xla" -) -public final class Conv extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaConvV2"; - - private Output output; - - public Conv(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaConvV2 operation. - * - * @param scope current scope - * @param lhs input tensor - * @param rhs kernel tensor - * @param windowStrides inter-window strides - * @param padding padding to apply at the start and end of each input dimensions - * @param lhsDilation dilation to apply between input elements - * @param rhsDilation dilation to apply between kernel elements - * @param featureGroupCount number of feature groups for grouped convolution. - * @param dimensionNumbers serialized xla::ConvolutionDimensionNumbers proto. - * @param precisionConfig serialized xla::PrecisionConfig proto. - * @param preferredElementType type of the tensor. - * @param options carries optional attribute values - * @param data type for {@code XlaConvV2} output and operands - * @param data type for {@code XlaConvV2} output and operands - * @return a new instance of Conv - */ - @Endpoint( - describeByClass = true - ) - public static Conv create(Scope scope, - Operand lhs, Operand rhs, Operand windowStrides, - Operand padding, Operand lhsDilation, Operand rhsDilation, - Operand featureGroupCount, String dimensionNumbers, String precisionConfig, - Class preferredElementType, Options... options) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "Conv"); - opBuilder.addInput(lhs.asOutput()); - opBuilder.addInput(rhs.asOutput()); - opBuilder.addInput(windowStrides.asOutput()); - opBuilder.addInput(padding.asOutput()); - opBuilder.addInput(lhsDilation.asOutput()); - opBuilder.addInput(rhsDilation.asOutput()); - opBuilder.addInput(featureGroupCount.asOutput()); - opBuilder.setAttr("dimension_numbers", dimensionNumbers); - opBuilder.setAttr("precision_config", precisionConfig); - opBuilder.setAttr("preferred_element_type", Operands.toDataType(preferredElementType)); - if (options != null) { - for (Options opts : options) { - if (opts.batchGroupCount != null) { - opBuilder.setAttr("batch_group_count", opts.batchGroupCount); - } - } - } - return new Conv<>(opBuilder.build()); - } - - /** - * Sets the batchGroupCount option. - * - * @param batchGroupCount number of batch groups or grouped filters. - * @return this Options instance. - */ - public static Options batchGroupCount(Long batchGroupCount) { - return new Options().batchGroupCount(batchGroupCount); - } - - /** - * Gets output. - * - * @return output. - */ - public Output output() { - return output; - } - - @Override - public Output asOutput() { - return output; - } - - /** - * Optional attributes for {@link org.tensorflow.op.xla.Conv} - */ - public static class Options { - private Long batchGroupCount; - - private Options() { - } - - /** - * Sets the batchGroupCount option. - * - * @param batchGroupCount number of batch groups or grouped filters. - * @return this Options instance. - */ - public Options batchGroupCount(Long batchGroupCount) { - this.batchGroupCount = batchGroupCount; - return this; - } - } - - @OpInputsMetadata( - outputsClass = Conv.class - ) - public static class Inputs extends RawOpInputs> { - /** - * input tensor - */ - public final Operand lhs; - - /** - * kernel tensor - */ - public final Operand rhs; - - /** - * inter-window strides - */ - public final Operand windowStrides; - - /** - * padding to apply at the start and end of each input dimensions - */ - public final Operand padding; - - /** - * dilation to apply between input elements - */ - public final Operand lhsDilation; - - /** - * dilation to apply between kernel elements - */ - public final Operand rhsDilation; - - /** - * number of feature groups for grouped convolution. - */ - public final Operand featureGroupCount; - - /** - * The LhsT attribute - */ - public final DataType LhsT; - - /** - * The RhsT attribute - */ - public final DataType RhsT; - - /** - * The Tindices attribute - */ - public final DataType Tindices; - - /** - * serialized xla::ConvolutionDimensionNumbers proto. - */ - public final String dimensionNumbers; - - /** - * serialized xla::PrecisionConfig proto. - */ - public final String precisionConfig; - - /** - * type of the tensor. - */ - public final DataType preferredElementType; - - /** - * number of batch groups or grouped filters. - */ - public final long batchGroupCount; - - public Inputs(GraphOperation op) { - super(new Conv<>(op), op, Arrays.asList("LhsT", "RhsT", "Tindices", "dimension_numbers", "precision_config", "preferred_element_type", "batch_group_count")); - int inputIndex = 0; - lhs = (Operand) op.input(inputIndex++); - rhs = (Operand) op.input(inputIndex++); - windowStrides = (Operand) op.input(inputIndex++); - padding = (Operand) op.input(inputIndex++); - lhsDilation = (Operand) op.input(inputIndex++); - rhsDilation = (Operand) op.input(inputIndex++); - featureGroupCount = (Operand) op.input(inputIndex++); - LhsT = op.attributes().getAttrType("LhsT"); - RhsT = op.attributes().getAttrType("RhsT"); - Tindices = op.attributes().getAttrType("Tindices"); - dimensionNumbers = op.attributes().getAttrString("dimension_numbers"); - precisionConfig = op.attributes().getAttrString("precision_config"); - preferredElementType = op.attributes().getAttrType("preferred_element_type"); - batchGroupCount = op.attributes().getAttrInt("batch_group_count"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/CustomCall.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/CustomCall.java deleted file mode 100644 index b5ad9cd0808..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/CustomCall.java +++ /dev/null @@ -1,154 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.ndarray.Shape; -import org.tensorflow.op.Operands; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TType; - -/** - * Wraps the XLA CustomCall operator - * documented at https://www.tensorflow.org/xla/operation_semantics#customcall. - * - * @param data type for {@code output} output - */ -@OpMetadata( - opType = CustomCall.OP_NAME, - inputsClass = CustomCall.Inputs.class -) -@Operator( - group = "xla" -) -public final class CustomCall extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaCustomCall"; - - private Output output; - - public CustomCall(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaCustomCall operation. - * - * @param scope current scope - * @param args A list of {@code Tensor} with possibly different types. - * @param targetName Name of the function. A call instruction will be emitted which - * targets this symbol name. - * @param backendConfig String, used to encode serialized metadata to the backend. - * @param dtype Output tensor data type. - * @param shape Output tensor shape. - * @param data type for {@code XlaCustomCall} output and operands - * @return a new instance of CustomCall - */ - @Endpoint( - describeByClass = true - ) - public static CustomCall create(Scope scope, Iterable> args, - String targetName, String backendConfig, Class dtype, Shape shape) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "CustomCall"); - opBuilder.addInputList(Operands.asOutputs(args)); - opBuilder.setAttr("target_name", targetName); - opBuilder.setAttr("backend_config", backendConfig); - opBuilder.setAttr("dtype", Operands.toDataType(dtype)); - opBuilder.setAttr("shape", shape); - return new CustomCall<>(opBuilder.build()); - } - - /** - * Gets output. - * - * @return output. - */ - public Output output() { - return output; - } - - @Override - public Output asOutput() { - return output; - } - - @OpInputsMetadata( - outputsClass = CustomCall.class - ) - public static class Inputs extends RawOpInputs> { - /** - * A list of {@code Tensor} with possibly different types. - */ - public final Iterable> args; - - /** - * Name of the function. A call instruction will be emitted which - * targets this symbol name. - */ - public final String targetName; - - /** - * String, used to encode serialized metadata to the backend. - */ - public final String backendConfig; - - /** - * The T attribute - */ - public final DataType[] T; - - /** - * Output tensor data type. - */ - public final DataType dtype; - - /** - * Output tensor shape. - */ - public final Shape shape; - - public Inputs(GraphOperation op) { - super(new CustomCall<>(op), op, Arrays.asList("target_name", "backend_config", "T", "dtype", "shape")); - int inputIndex = 0; - int argsLength = op.inputListLength("args"); - args = Arrays.asList((Operand[]) op.inputList(inputIndex, argsLength)); - inputIndex += argsLength; - targetName = op.attributes().getAttrString("target_name"); - backendConfig = op.attributes().getAttrString("backend_config"); - T = op.attributes().getAttrTypeList("T"); - dtype = op.attributes().getAttrType("dtype"); - shape = op.attributes().getAttrShape("shape"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Dequantize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Dequantize.java deleted file mode 100644 index 23561ebebfd..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Dequantize.java +++ /dev/null @@ -1,143 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.types.TBfloat16; -import org.tensorflow.types.family.TType; - -/** - * Takes the packed uint32 input and unpacks the input to uint8 to do - * Dequantization on device. - */ -@OpMetadata( - opType = Dequantize.OP_NAME, - inputsClass = Dequantize.Inputs.class -) -@Operator( - group = "xla" -) -public final class Dequantize extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaDequantize"; - - private Output output; - - public Dequantize(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaDequantize operation. - * - * @param scope current scope - * @param input Input tensors whose types is uint32, shape is [d0, ..., dn]. - * @param minRange The minimum scalar value possibly produced for the input. - * @param maxRange The maximum scalar value possibly produced for the input. - * @param mode String to determine the dequantize mode in {"MIN_COMBINED", "MIN_FIRST", "SCALED"}. - * @param transposeOutput Boolean to determine if output is transposed. transpose_output - * is faster when input is large and rank of input is higher than 1. - * @return a new instance of Dequantize - */ - @Endpoint( - describeByClass = true - ) - public static Dequantize create(Scope scope, Operand input, Float minRange, - Float maxRange, String mode, Boolean transposeOutput) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "Dequantize"); - opBuilder.addInput(input.asOutput()); - opBuilder.setAttr("min_range", minRange); - opBuilder.setAttr("max_range", maxRange); - opBuilder.setAttr("mode", mode); - opBuilder.setAttr("transpose_output", transposeOutput); - return new Dequantize(opBuilder.build()); - } - - /** - * Gets output. - * Output tensors whose types is bloat16. If transpose_output is true, - * output shape is [dn * 4, dn-1, ..., d1, d0]. If transpose_output - * is false, output shape is [d0,..., dn * 4]. - * @return output. - */ - public Output output() { - return output; - } - - @Override - public Output asOutput() { - return output; - } - - @OpInputsMetadata( - outputsClass = Dequantize.class - ) - public static class Inputs extends RawOpInputs { - /** - * Input tensors whose types is uint32, shape is [d0, ..., dn]. - */ - public final Operand input; - - /** - * The minimum scalar value possibly produced for the input. - */ - public final float minRange; - - /** - * The maximum scalar value possibly produced for the input. - */ - public final float maxRange; - - /** - * String to determine the dequantize mode in {"MIN_COMBINED", "MIN_FIRST", "SCALED"}. - */ - public final String mode; - - /** - * Boolean to determine if output is transposed. transpose_output - * is faster when input is large and rank of input is higher than 1. - */ - public final boolean transposeOutput; - - public Inputs(GraphOperation op) { - super(new Dequantize(op), op, Arrays.asList("min_range", "max_range", "mode", "transpose_output")); - int inputIndex = 0; - input = (Operand) op.input(inputIndex++); - minRange = op.attributes().getAttrFloat("min_range"); - maxRange = op.attributes().getAttrFloat("max_range"); - mode = op.attributes().getAttrString("mode"); - transposeOutput = op.attributes().getAttrBool("transpose_output"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Dot.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Dot.java deleted file mode 100644 index dcaaf762e91..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Dot.java +++ /dev/null @@ -1,157 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.Operands; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TType; - -/** - * Wraps the XLA DotGeneral operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#dotgeneral - * . - * - * @param data type for {@code output} output - */ -@OpMetadata( - opType = Dot.OP_NAME, - inputsClass = Dot.Inputs.class -) -@Operator( - group = "xla" -) -public final class Dot extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaDotV2"; - - private Output output; - - public Dot(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaDotV2 operation. - * - * @param scope current scope - * @param lhs the LHS tensor - * @param rhs the RHS tensor - * @param dimensionNumbers a serialized xla::DotDimensionNumbers proto. - * @param precisionConfig a serialized xla::PrecisionConfig proto. - * @param preferredElementType The type of the tensor. - * @param data type for {@code XlaDotV2} output and operands - * @return a new instance of Dot - */ - @Endpoint( - describeByClass = true - ) - public static Dot create(Scope scope, Operand lhs, - Operand rhs, String dimensionNumbers, String precisionConfig, - Class preferredElementType) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "Dot"); - opBuilder.addInput(lhs.asOutput()); - opBuilder.addInput(rhs.asOutput()); - opBuilder.setAttr("dimension_numbers", dimensionNumbers); - opBuilder.setAttr("precision_config", precisionConfig); - opBuilder.setAttr("preferred_element_type", Operands.toDataType(preferredElementType)); - return new Dot<>(opBuilder.build()); - } - - /** - * Gets output. - * - * @return output. - */ - public Output output() { - return output; - } - - @Override - public Output asOutput() { - return output; - } - - @OpInputsMetadata( - outputsClass = Dot.class - ) - public static class Inputs extends RawOpInputs> { - /** - * the LHS tensor - */ - public final Operand lhs; - - /** - * the RHS tensor - */ - public final Operand rhs; - - /** - * The LhsT attribute - */ - public final DataType LhsT; - - /** - * The RhsT attribute - */ - public final DataType RhsT; - - /** - * a serialized xla::DotDimensionNumbers proto. - */ - public final String dimensionNumbers; - - /** - * a serialized xla::PrecisionConfig proto. - */ - public final String precisionConfig; - - /** - * The type of the tensor. - */ - public final DataType preferredElementType; - - public Inputs(GraphOperation op) { - super(new Dot<>(op), op, Arrays.asList("LhsT", "RhsT", "dimension_numbers", "precision_config", "preferred_element_type")); - int inputIndex = 0; - lhs = (Operand) op.input(inputIndex++); - rhs = (Operand) op.input(inputIndex++); - LhsT = op.attributes().getAttrType("LhsT"); - RhsT = op.attributes().getAttrType("RhsT"); - dimensionNumbers = op.attributes().getAttrString("dimension_numbers"); - precisionConfig = op.attributes().getAttrString("precision_config"); - preferredElementType = op.attributes().getAttrType("preferred_element_type"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/DynamicSlice.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/DynamicSlice.java deleted file mode 100644 index 9211a8ca894..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/DynamicSlice.java +++ /dev/null @@ -1,152 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TNumber; -import org.tensorflow.types.family.TType; - -/** - * Wraps the XLA DynamicSlice operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#dynamicslice - * . - *

DynamicSlice extracts a sub-array from the input array at dynamic - * start_indices. The size of the slice in each dimension is passed in - * size_indices, which specify the end point of exclusive slice intervals in each - * dimension -- [start, start + size). The shape of start_indices must have rank 1, - * with dimension size equal to the rank of operand. - * - * @param data type for {@code output} output - */ -@OpMetadata( - opType = DynamicSlice.OP_NAME, - inputsClass = DynamicSlice.Inputs.class -) -@Operator( - group = "xla" -) -public final class DynamicSlice extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaDynamicSlice"; - - private Output output; - - public DynamicSlice(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaDynamicSlice operation. - * - * @param scope current scope - * @param input A {@code Tensor} of type T. - * @param startIndices List of N integers containing the slice size for each - * dimension. Each value must be strictly greater than zero, and start + size - * must be less than or equal to the size of the dimension to avoid - * implementation defined behavior. - * @param sizeIndices The sizeIndices value - * @param data type for {@code XlaDynamicSlice} output and operands - * @param data type for {@code XlaDynamicSlice} output and operands - * @return a new instance of DynamicSlice - */ - @Endpoint( - describeByClass = true - ) - public static DynamicSlice create(Scope scope, - Operand input, Operand startIndices, Operand sizeIndices) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "DynamicSlice"); - opBuilder.addInput(input.asOutput()); - opBuilder.addInput(startIndices.asOutput()); - opBuilder.addInput(sizeIndices.asOutput()); - return new DynamicSlice<>(opBuilder.build()); - } - - /** - * Gets output. - * - * @return output. - */ - public Output output() { - return output; - } - - @Override - public Output asOutput() { - return output; - } - - @OpInputsMetadata( - outputsClass = DynamicSlice.class - ) - public static class Inputs extends RawOpInputs> { - /** - * A {@code Tensor} of type T. - */ - public final Operand input; - - /** - * List of N integers containing the slice size for each - * dimension. Each value must be strictly greater than zero, and start + size - * must be less than or equal to the size of the dimension to avoid - * implementation defined behavior. - */ - public final Operand startIndices; - - /** - * The sizeIndices input - */ - public final Operand sizeIndices; - - /** - * The T attribute - */ - public final DataType T; - - /** - * The Tindices attribute - */ - public final DataType Tindices; - - public Inputs(GraphOperation op) { - super(new DynamicSlice<>(op), op, Arrays.asList("T", "Tindices")); - int inputIndex = 0; - input = (Operand) op.input(inputIndex++); - startIndices = (Operand) op.input(inputIndex++); - sizeIndices = (Operand) op.input(inputIndex++); - T = op.attributes().getAttrType("T"); - Tindices = op.attributes().getAttrType("Tindices"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/DynamicUpdateSlice.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/DynamicUpdateSlice.java deleted file mode 100644 index a5e1e7a9d3d..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/DynamicUpdateSlice.java +++ /dev/null @@ -1,147 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TNumber; -import org.tensorflow.types.family.TType; - -/** - * Wraps the XLA DynamicUpdateSlice operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#dynamicupdateslice - * . - *

XlaDynamicUpdateSlice generates a result which is the value of the {@code input} - * operand, with a slice update overwritten at {@code indices}. The shape of {@code update} - * determines the shape of the sub-array of the result which is updated. The shape - * of indices must be rank == 1, with dimension size equal to the rank of {@code input}. - *

Handling of out-of-bounds slice indices is implementation-defined. - * - * @param data type for {@code output} output - */ -@OpMetadata( - opType = DynamicUpdateSlice.OP_NAME, - inputsClass = DynamicUpdateSlice.Inputs.class -) -@Operator( - group = "xla" -) -public final class DynamicUpdateSlice extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaDynamicUpdateSlice"; - - private Output output; - - public DynamicUpdateSlice(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaDynamicUpdateSlice operation. - * - * @param scope current scope - * @param input A {@code Tensor} of type T. - * @param update A {@code Tensor} of type T. Same rank as {@code input}. - * @param indices A vector of indices into {@code input}. Must have length equal to the rank of - * {@code input}. - * @param data type for {@code XlaDynamicUpdateSlice} output and operands - * @return a new instance of DynamicUpdateSlice - */ - @Endpoint( - describeByClass = true - ) - public static DynamicUpdateSlice create(Scope scope, Operand input, - Operand update, Operand indices) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "DynamicUpdateSlice"); - opBuilder.addInput(input.asOutput()); - opBuilder.addInput(update.asOutput()); - opBuilder.addInput(indices.asOutput()); - return new DynamicUpdateSlice<>(opBuilder.build()); - } - - /** - * Gets output. - * A {@code Tensor} of type T. - * @return output. - */ - public Output output() { - return output; - } - - @Override - public Output asOutput() { - return output; - } - - @OpInputsMetadata( - outputsClass = DynamicUpdateSlice.class - ) - public static class Inputs extends RawOpInputs> { - /** - * A {@code Tensor} of type T. - */ - public final Operand input; - - /** - * A {@code Tensor} of type T. Same rank as {@code input}. - */ - public final Operand update; - - /** - * A vector of indices into {@code input}. Must have length equal to the rank of - * {@code input}. - */ - public final Operand indices; - - /** - * The T attribute - */ - public final DataType T; - - /** - * The Tindices attribute - */ - public final DataType Tindices; - - public Inputs(GraphOperation op) { - super(new DynamicUpdateSlice<>(op), op, Arrays.asList("T", "Tindices")); - int inputIndex = 0; - input = (Operand) op.input(inputIndex++); - update = (Operand) op.input(inputIndex++); - indices = (Operand) op.input(inputIndex++); - T = op.attributes().getAttrType("T"); - Tindices = op.attributes().getAttrType("Tindices"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Einsum.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Einsum.java deleted file mode 100644 index 3d351be4960..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Einsum.java +++ /dev/null @@ -1,133 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TType; - -/** - * An op which supports basic einsum op with 2 inputs and 1 output. - * This op has better TPU performance since it doesn't have explicitly reshape and - * transpose operations as tf.einsum does. - * - * @param data type for {@code product} output - */ -@OpMetadata( - opType = Einsum.OP_NAME, - inputsClass = Einsum.Inputs.class -) -@Operator( - group = "xla" -) -public final class Einsum extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaEinsum"; - - private Output product; - - public Einsum(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - product = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaEinsum operation. - * - * @param scope current scope - * @param a The a value - * @param b The b value - * @param equation The value of the equation attribute - * @param data type for {@code XlaEinsum} output and operands - * @return a new instance of Einsum - */ - @Endpoint( - describeByClass = true - ) - public static Einsum create(Scope scope, Operand a, Operand b, - String equation) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "Einsum"); - opBuilder.addInput(a.asOutput()); - opBuilder.addInput(b.asOutput()); - opBuilder.setAttr("equation", equation); - return new Einsum<>(opBuilder.build()); - } - - /** - * Gets product. - * - * @return product. - */ - public Output product() { - return product; - } - - @Override - public Output asOutput() { - return product; - } - - @OpInputsMetadata( - outputsClass = Einsum.class - ) - public static class Inputs extends RawOpInputs> { - /** - * The a input - */ - public final Operand a; - - /** - * The b input - */ - public final Operand b; - - /** - * The equation attribute - */ - public final String equation; - - /** - * The T attribute - */ - public final DataType T; - - public Inputs(GraphOperation op) { - super(new Einsum<>(op), op, Arrays.asList("equation", "T")); - int inputIndex = 0; - a = (Operand) op.input(inputIndex++); - b = (Operand) op.input(inputIndex++); - equation = op.attributes().getAttrString("equation"); - T = op.attributes().getAttrType("T"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Gather.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Gather.java deleted file mode 100644 index 953cd34a9ac..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Gather.java +++ /dev/null @@ -1,157 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TNumber; -import org.tensorflow.types.family.TType; - -/** - * Wraps the XLA Gather operator documented at - * https://www.tensorflow.org/xla/operation_semantics#gather - * - * @param data type for {@code output} output - */ -@OpMetadata( - opType = Gather.OP_NAME, - inputsClass = Gather.Inputs.class -) -@Operator( - group = "xla" -) -public final class Gather extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaGather"; - - private Output output; - - public Gather(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaGather operation. - * - * @param scope current scope - * @param operand The array we're gathering from. - * @param startIndices Array containing the starting indices of the slices we gather. - * @param sliceSizes slice_sizes[i] is the bounds for the slice on dimension i. - * @param dimensionNumbers A serialized xla::GatherDimensionNumbers proto. - * @param indicesAreSorted Boolean indicating if the indices are sorted. - * @param data type for {@code XlaGather} output and operands - * @param data type for {@code XlaGather} output and operands - * @return a new instance of Gather - */ - @Endpoint( - describeByClass = true - ) - public static Gather create(Scope scope, - Operand operand, Operand startIndices, Operand sliceSizes, String dimensionNumbers, - Boolean indicesAreSorted) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "Gather"); - opBuilder.addInput(operand.asOutput()); - opBuilder.addInput(startIndices.asOutput()); - opBuilder.addInput(sliceSizes.asOutput()); - opBuilder.setAttr("dimension_numbers", dimensionNumbers); - opBuilder.setAttr("indices_are_sorted", indicesAreSorted); - return new Gather<>(opBuilder.build()); - } - - /** - * Gets output. - * - * @return output. - */ - public Output output() { - return output; - } - - @Override - public Output asOutput() { - return output; - } - - @OpInputsMetadata( - outputsClass = Gather.class - ) - public static class Inputs extends RawOpInputs> { - /** - * The array we're gathering from. - */ - public final Operand operand; - - /** - * Array containing the starting indices of the slices we gather. - */ - public final Operand startIndices; - - /** - * slice_sizes[i] is the bounds for the slice on dimension i. - */ - public final Operand sliceSizes; - - /** - * A serialized xla::GatherDimensionNumbers proto. - */ - public final String dimensionNumbers; - - /** - * Boolean indicating if the indices are sorted. - */ - public final boolean indicesAreSorted; - - /** - * The T attribute - */ - public final DataType T; - - /** - * The Tindices attribute - */ - public final DataType Tindices; - - public Inputs(GraphOperation op) { - super(new Gather<>(op), op, Arrays.asList("dimension_numbers", "indices_are_sorted", "T", "Tindices")); - int inputIndex = 0; - operand = (Operand) op.input(inputIndex++); - startIndices = (Operand) op.input(inputIndex++); - sliceSizes = (Operand) op.input(inputIndex++); - dimensionNumbers = op.attributes().getAttrString("dimension_numbers"); - indicesAreSorted = op.attributes().getAttrBool("indices_are_sorted"); - T = op.attributes().getAttrType("T"); - Tindices = op.attributes().getAttrType("Tindices"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/If.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/If.java deleted file mode 100644 index 606c267898f..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/If.java +++ /dev/null @@ -1,153 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import java.util.Iterator; -import java.util.List; -import org.tensorflow.ConcreteFunction; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.Operands; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TType; - -/** - * output = cond ? then_branch(inputs) : else_branch(inputs). - */ -@OpMetadata( - opType = If.OP_NAME, - inputsClass = If.Inputs.class -) -@Operator( - group = "xla" -) -public final class If extends RawOp implements Iterable> { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaIf"; - - private List> output; - - @SuppressWarnings("unchecked") - public If(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - int outputLength = operation.outputListLength("output"); - output = Arrays.asList(operation.outputList(outputIdx, outputLength)); - outputIdx += outputLength; - } - - /** - * Factory method to create a class wrapping a new XlaIf operation. - * - * @param scope current scope - * @param cond A boolean scalar. - * @param inputs A list of input tensors. - * @param thenBranch A function takes 'inputs' and returns a list of tensors, - * whose types are the same as what else_branch returns. - * @param elseBranch A function takes 'inputs' and returns a list of tensors. - * whose types are the same as what then_branch returns. - * @param Tout The value of the Tout attribute - * @return a new instance of If - */ - @Endpoint( - describeByClass = true, - name = "ifOp" - ) - public static If create(Scope scope, Operand cond, Iterable> inputs, - ConcreteFunction thenBranch, ConcreteFunction elseBranch, List> Tout) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "If"); - opBuilder.addInput(cond.asOutput()); - opBuilder.addInputList(Operands.asOutputs(inputs)); - opBuilder.setAttr("then_branch", thenBranch); - opBuilder.setAttr("else_branch", elseBranch); - opBuilder.setAttr("Tout", Operands.toDataTypes(Tout)); - return new If(opBuilder.build()); - } - - /** - * Gets output. - * A list of tensors returned by either then_branch(inputs) or - * else_branch(inputs). The input shapes of the then_branch and - * else_branch must match. - * @return output. - */ - public List> output() { - return output; - } - - @Override - @SuppressWarnings({"rawtypes", "unchecked"}) - public Iterator> iterator() { - return (Iterator) output.iterator(); - } - - @OpInputsMetadata( - outputsClass = If.class - ) - public static class Inputs extends RawOpInputs { - /** - * A boolean scalar. - */ - public final Operand cond; - - /** - * A list of input tensors. - */ - public final Iterable> inputs; - - /** - * The Tcond attribute - */ - public final DataType Tcond; - - /** - * The Tin attribute - */ - public final DataType[] Tin; - - /** - * The Tout attribute - */ - public final DataType[] Tout; - - public Inputs(GraphOperation op) { - super(new If(op), op, Arrays.asList("Tcond", "Tin", "Tout")); - int inputIndex = 0; - cond = (Operand) op.input(inputIndex++); - int inputsLength = op.inputListLength("inputs"); - inputs = Arrays.asList((Operand[]) op.inputList(inputIndex, inputsLength)); - inputIndex += inputsLength; - Tcond = op.attributes().getAttrType("Tcond"); - Tin = op.attributes().getAttrTypeList("Tin"); - Tout = op.attributes().getAttrTypeList("Tout"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/KeyValueSort.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/KeyValueSort.java deleted file mode 100644 index 0db6fab210c..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/KeyValueSort.java +++ /dev/null @@ -1,143 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TNumber; -import org.tensorflow.types.family.TType; - -/** - * Wraps the XLA Sort operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#sort - * . - *

Sorts a tensor. Currently only sorts in ascending order are supported. - * - * @param data type for {@code sorted_keys} output - * - * @param data type for {@code sorted_values} output - */ -@OpMetadata( - opType = KeyValueSort.OP_NAME, - inputsClass = KeyValueSort.Inputs.class -) -@Operator( - group = "xla" -) -public final class KeyValueSort extends RawOp { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaKeyValueSort"; - - private Output sortedKeys; - - private Output sortedValues; - - public KeyValueSort(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - sortedKeys = operation.output(outputIdx++); - sortedValues = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaKeyValueSort operation. - * - * @param scope current scope - * @param keys A {@code Tensor} of type K. - * @param values A {@code Tensor} of type V. - * @param data type for {@code XlaKeyValueSort} output and operands - * @param data type for {@code XlaKeyValueSort} output and operands - * @return a new instance of KeyValueSort - */ - @Endpoint( - describeByClass = true - ) - public static KeyValueSort create(Scope scope, - Operand keys, Operand values) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "KeyValueSort"); - opBuilder.addInput(keys.asOutput()); - opBuilder.addInput(values.asOutput()); - return new KeyValueSort<>(opBuilder.build()); - } - - /** - * Gets sortedKeys. - * A {@code Tensor} of type K. - * @return sortedKeys. - */ - public Output sortedKeys() { - return sortedKeys; - } - - /** - * Gets sortedValues. - * A {@code Tensor} of type V. - * @return sortedValues. - */ - public Output sortedValues() { - return sortedValues; - } - - @OpInputsMetadata( - outputsClass = KeyValueSort.class - ) - public static class Inputs extends RawOpInputs> { - /** - * A {@code Tensor} of type K. - */ - public final Operand keys; - - /** - * A {@code Tensor} of type V. - */ - public final Operand values; - - /** - * The K attribute - */ - public final DataType K; - - /** - * The V attribute - */ - public final DataType V; - - public Inputs(GraphOperation op) { - super(new KeyValueSort<>(op), op, Arrays.asList("K", "V")); - int inputIndex = 0; - keys = (Operand) op.input(inputIndex++); - values = (Operand) op.input(inputIndex++); - K = op.attributes().getAttrType("K"); - V = op.attributes().getAttrType("V"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/OptimizationBarrier.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/OptimizationBarrier.java deleted file mode 100644 index d9eafcf3d14..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/OptimizationBarrier.java +++ /dev/null @@ -1,121 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import java.util.Iterator; -import java.util.List; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.Operands; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TType; - -/** - * Wraps the XLA OptimizationBarrier operator. - * Documented at https://www.tensorflow.org/xla/operation_semantics#optimizationbarrier. - */ -@OpMetadata( - opType = OptimizationBarrier.OP_NAME, - inputsClass = OptimizationBarrier.Inputs.class -) -@Operator( - group = "xla" -) -public final class OptimizationBarrier extends RawOp implements Iterable> { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaOptimizationBarrier"; - - private List> output; - - @SuppressWarnings("unchecked") - public OptimizationBarrier(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - int outputLength = operation.outputListLength("output"); - output = Arrays.asList(operation.outputList(outputIdx, outputLength)); - outputIdx += outputLength; - } - - /** - * Factory method to create a class wrapping a new XlaOptimizationBarrier operation. - * - * @param scope current scope - * @param input A Tuple of Arrays of any type. - * @return a new instance of OptimizationBarrier - */ - @Endpoint( - describeByClass = true - ) - public static OptimizationBarrier create(Scope scope, Iterable> input) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "OptimizationBarrier"); - opBuilder.addInputList(Operands.asOutputs(input)); - return new OptimizationBarrier(opBuilder.build()); - } - - /** - * Gets output. - * - * @return output. - */ - public List> output() { - return output; - } - - @Override - @SuppressWarnings({"rawtypes", "unchecked"}) - public Iterator> iterator() { - return (Iterator) output.iterator(); - } - - @OpInputsMetadata( - outputsClass = OptimizationBarrier.class - ) - public static class Inputs extends RawOpInputs { - /** - * A Tuple of Arrays of any type. - */ - public final Iterable> input; - - /** - * The T attribute - */ - public final DataType[] T; - - public Inputs(GraphOperation op) { - super(new OptimizationBarrier(op), op, Arrays.asList("T")); - int inputIndex = 0; - int inputLength = op.inputListLength("input"); - input = Arrays.asList((Operand[]) op.inputList(inputIndex, inputLength)); - inputIndex += inputLength; - T = op.attributes().getAttrTypeList("T"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Pad.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Pad.java deleted file mode 100644 index 8fd8ddebb1e..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Pad.java +++ /dev/null @@ -1,166 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TNumber; -import org.tensorflow.types.family.TType; - -/** - * Wraps the XLA Pad operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#pad - * . - * - * @param data type for {@code output} output - */ -@OpMetadata( - opType = Pad.OP_NAME, - inputsClass = Pad.Inputs.class -) -@Operator( - group = "xla" -) -public final class Pad extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaPad"; - - private Output output; - - public Pad(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaPad operation. - * - * @param scope current scope - * @param input A {@code Tensor} of type T. - * @param paddingValue A scalar {@code Tensor} of type T. - * @param paddingLow the padding to apply at the start of each input dimensions. Must - * be a compile-time constant 1D tensor of length equal to rank of input. - * @param paddingHigh the padding to apply at the end of each input dimension. Must - * be a compile-time constant 1D tensor of length equal to rank of input. - * @param paddingInterior the padding to apply between each input element. Must - * be a compile-time constant 1D tensor of length equal to rank of input, - * containing only non-negative values. - * @param data type for {@code XlaPad} output and operands - * @param data type for {@code XlaPad} output and operands - * @return a new instance of Pad - */ - @Endpoint( - describeByClass = true - ) - public static Pad create(Scope scope, Operand input, - Operand paddingValue, Operand paddingLow, Operand paddingHigh, - Operand paddingInterior) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "Pad"); - opBuilder.addInput(input.asOutput()); - opBuilder.addInput(paddingValue.asOutput()); - opBuilder.addInput(paddingLow.asOutput()); - opBuilder.addInput(paddingHigh.asOutput()); - opBuilder.addInput(paddingInterior.asOutput()); - return new Pad<>(opBuilder.build()); - } - - /** - * Gets output. - * A {@code Tensor} of type T. - * @return output. - */ - public Output output() { - return output; - } - - @Override - public Output asOutput() { - return output; - } - - @OpInputsMetadata( - outputsClass = Pad.class - ) - public static class Inputs extends RawOpInputs> { - /** - * A {@code Tensor} of type T. - */ - public final Operand input; - - /** - * A scalar {@code Tensor} of type T. - */ - public final Operand paddingValue; - - /** - * the padding to apply at the start of each input dimensions. Must - * be a compile-time constant 1D tensor of length equal to rank of input. - */ - public final Operand paddingLow; - - /** - * the padding to apply at the end of each input dimension. Must - * be a compile-time constant 1D tensor of length equal to rank of input. - */ - public final Operand paddingHigh; - - /** - * the padding to apply between each input element. Must - * be a compile-time constant 1D tensor of length equal to rank of input, - * containing only non-negative values. - */ - public final Operand paddingInterior; - - /** - * The T attribute - */ - public final DataType T; - - /** - * The Tindices attribute - */ - public final DataType Tindices; - - public Inputs(GraphOperation op) { - super(new Pad<>(op), op, Arrays.asList("T", "Tindices")); - int inputIndex = 0; - input = (Operand) op.input(inputIndex++); - paddingValue = (Operand) op.input(inputIndex++); - paddingLow = (Operand) op.input(inputIndex++); - paddingHigh = (Operand) op.input(inputIndex++); - paddingInterior = (Operand) op.input(inputIndex++); - T = op.attributes().getAttrType("T"); - Tindices = op.attributes().getAttrType("Tindices"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/ReadVariableSplitND.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/ReadVariableSplitND.java index 27c282f750a..bdd64f04275 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/ReadVariableSplitND.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/ReadVariableSplitND.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Recv.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Recv.java deleted file mode 100644 index 4b152f7071f..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Recv.java +++ /dev/null @@ -1,129 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.ndarray.Shape; -import org.tensorflow.op.Operands; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TType; - -/** - * Receives the named tensor from another XLA computation. Wraps the XLA Recv - * operator documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#recv . - * - * @param data type for {@code tensor} output - */ -@OpMetadata( - opType = Recv.OP_NAME, - inputsClass = Recv.Inputs.class -) -@Operator( - group = "xla" -) -public final class Recv extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaRecv"; - - private Output tensor; - - public Recv(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - tensor = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaRecv operation. - * - * @param scope current scope - * @param dtype The type of the tensor. - * @param tensorName A string key that identifies the channel. - * @param shape The shape of the tensor. - * @param data type for {@code XlaRecv} output and operands - * @return a new instance of Recv - */ - @Endpoint( - describeByClass = true - ) - public static Recv create(Scope scope, Class dtype, String tensorName, - Shape shape) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "Recv"); - opBuilder.setAttr("dtype", Operands.toDataType(dtype)); - opBuilder.setAttr("tensor_name", tensorName); - opBuilder.setAttr("shape", shape); - return new Recv<>(opBuilder.build()); - } - - /** - * Gets tensor. - * The tensor to receive. - * @return tensor. - */ - public Output tensor() { - return tensor; - } - - @Override - public Output asOutput() { - return tensor; - } - - @OpInputsMetadata( - outputsClass = Recv.class - ) - public static class Inputs extends RawOpInputs> { - /** - * The type of the tensor. - */ - public final DataType dtype; - - /** - * A string key that identifies the channel. - */ - public final String tensorName; - - /** - * The shape of the tensor. - */ - public final Shape shape; - - public Inputs(GraphOperation op) { - super(new Recv<>(op), op, Arrays.asList("dtype", "tensor_name", "shape")); - int inputIndex = 0; - dtype = op.attributes().getAttrType("dtype"); - tensorName = op.attributes().getAttrString("tensor_name"); - shape = op.attributes().getAttrShape("shape"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Reduce.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Reduce.java deleted file mode 100644 index 47c36733a4e..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Reduce.java +++ /dev/null @@ -1,140 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import java.util.List; -import org.tensorflow.ConcreteFunction; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TType; - -/** - * Wraps the XLA Reduce operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#reduce . - * - * @param data type for {@code output} output - */ -@OpMetadata( - opType = Reduce.OP_NAME, - inputsClass = Reduce.Inputs.class -) -@Operator( - group = "xla" -) -public final class Reduce extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaReduce"; - - private Output output; - - public Reduce(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaReduce operation. - * - * @param scope current scope - * @param input the input tensor - * @param initValue a scalar representing the initial value for the reduction - * @param dimensionsToReduce dimension numbers over which to reduce - * @param reducer a reducer function to apply - * @param data type for {@code XlaReduce} output and operands - * @return a new instance of Reduce - */ - @Endpoint( - describeByClass = true - ) - public static Reduce create(Scope scope, Operand input, - Operand initValue, List dimensionsToReduce, ConcreteFunction reducer) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "Reduce"); - opBuilder.addInput(input.asOutput()); - opBuilder.addInput(initValue.asOutput()); - long[] dimensionsToReduceArray = new long[dimensionsToReduce.size()]; - for (int i = 0 ; i < dimensionsToReduceArray.length ; i++) { - dimensionsToReduceArray[i] = dimensionsToReduce.get(i); - } - opBuilder.setAttr("dimensions_to_reduce", dimensionsToReduceArray); - opBuilder.setAttr("reducer", reducer); - return new Reduce<>(opBuilder.build()); - } - - /** - * Gets output. - * - * @return output. - */ - public Output output() { - return output; - } - - @Override - public Output asOutput() { - return output; - } - - @OpInputsMetadata( - outputsClass = Reduce.class - ) - public static class Inputs extends RawOpInputs> { - /** - * the input tensor - */ - public final Operand input; - - /** - * a scalar representing the initial value for the reduction - */ - public final Operand initValue; - - /** - * The T attribute - */ - public final DataType T; - - /** - * dimension numbers over which to reduce - */ - public final long[] dimensionsToReduce; - - public Inputs(GraphOperation op) { - super(new Reduce<>(op), op, Arrays.asList("T", "dimensions_to_reduce")); - int inputIndex = 0; - input = (Operand) op.input(inputIndex++); - initValue = (Operand) op.input(inputIndex++); - T = op.attributes().getAttrType("T"); - dimensionsToReduce = op.attributes().getAttrIntList("dimensions_to_reduce"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/ReduceScatter.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/ReduceScatter.java deleted file mode 100644 index 63e4c11c374..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/ReduceScatter.java +++ /dev/null @@ -1,141 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.TInt32; -import org.tensorflow.types.family.TNumber; - -/** - * Wraps the XLA ReduceScatter operator - * documented at https://www.tensorflow.org/xla/operation_semantics#reducescatter. - * - * @param data type for {@code output} output - */ -@OpMetadata( - opType = ReduceScatter.OP_NAME, - inputsClass = ReduceScatter.Inputs.class -) -@Operator( - group = "xla" -) -public final class ReduceScatter extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaReduceScatter"; - - private Output output; - - public ReduceScatter(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaReduceScatter operation. - * - * @param scope current scope - * @param input Array or a non-empty tuple of arrays to reduce across replicas. - * @param groupAssignment Groups between which the reductions are performed. - * @param scatterDimension Dimension to scatter. - * @param reduceOp Reduction computation. - * @param data type for {@code XlaReduceScatter} output and operands - * @return a new instance of ReduceScatter - */ - @Endpoint( - describeByClass = true - ) - public static ReduceScatter create(Scope scope, Operand input, - Operand groupAssignment, Operand scatterDimension, String reduceOp) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "ReduceScatter"); - opBuilder.addInput(input.asOutput()); - opBuilder.addInput(groupAssignment.asOutput()); - opBuilder.addInput(scatterDimension.asOutput()); - opBuilder.setAttr("reduce_op", reduceOp); - return new ReduceScatter<>(opBuilder.build()); - } - - /** - * Gets output. - * - * @return output. - */ - public Output output() { - return output; - } - - @Override - public Output asOutput() { - return output; - } - - @OpInputsMetadata( - outputsClass = ReduceScatter.class - ) - public static class Inputs extends RawOpInputs> { - /** - * Array or a non-empty tuple of arrays to reduce across replicas. - */ - public final Operand input; - - /** - * Groups between which the reductions are performed. - */ - public final Operand groupAssignment; - - /** - * Dimension to scatter. - */ - public final Operand scatterDimension; - - /** - * The T attribute - */ - public final DataType T; - - /** - * Reduction computation. - */ - public final String reduceOp; - - public Inputs(GraphOperation op) { - super(new ReduceScatter<>(op), op, Arrays.asList("T", "reduce_op")); - int inputIndex = 0; - input = (Operand) op.input(inputIndex++); - groupAssignment = (Operand) op.input(inputIndex++); - scatterDimension = (Operand) op.input(inputIndex++); - T = op.attributes().getAttrType("T"); - reduceOp = op.attributes().getAttrString("reduce_op"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/ReduceWindow.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/ReduceWindow.java deleted file mode 100644 index 3962200bc93..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/ReduceWindow.java +++ /dev/null @@ -1,177 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.ConcreteFunction; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TNumber; -import org.tensorflow.types.family.TType; - -/** - * Wraps the XLA ReduceWindow operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#reducewindow . - * - * @param data type for {@code output} output - */ -@OpMetadata( - opType = ReduceWindow.OP_NAME, - inputsClass = ReduceWindow.Inputs.class -) -@Operator( - group = "xla" -) -public final class ReduceWindow extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaReduceWindow"; - - private Output output; - - public ReduceWindow(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaReduceWindow operation. - * - * @param scope current scope - * @param input the input tensor - * @param initValue a scalar representing the initial value for the reduction - * @param windowDimensions the shape of the window - * @param windowStrides the inter-window strides - * @param baseDilations The baseDilations value - * @param windowDilations The windowDilations value - * @param padding the padding to apply at the start and end of each input dimensions - * @param computation a reducer function to apply - * @param data type for {@code XlaReduceWindow} output and operands - * @param data type for {@code XlaReduceWindow} output and operands - * @return a new instance of ReduceWindow - */ - @Endpoint( - describeByClass = true - ) - public static ReduceWindow create(Scope scope, - Operand input, Operand initValue, Operand windowDimensions, Operand windowStrides, - Operand baseDilations, Operand windowDilations, Operand padding, - ConcreteFunction computation) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "ReduceWindow"); - opBuilder.addInput(input.asOutput()); - opBuilder.addInput(initValue.asOutput()); - opBuilder.addInput(windowDimensions.asOutput()); - opBuilder.addInput(windowStrides.asOutput()); - opBuilder.addInput(baseDilations.asOutput()); - opBuilder.addInput(windowDilations.asOutput()); - opBuilder.addInput(padding.asOutput()); - opBuilder.setAttr("computation", computation); - return new ReduceWindow<>(opBuilder.build()); - } - - /** - * Gets output. - * - * @return output. - */ - public Output output() { - return output; - } - - @Override - public Output asOutput() { - return output; - } - - @OpInputsMetadata( - outputsClass = ReduceWindow.class - ) - public static class Inputs extends RawOpInputs> { - /** - * the input tensor - */ - public final Operand input; - - /** - * a scalar representing the initial value for the reduction - */ - public final Operand initValue; - - /** - * the shape of the window - */ - public final Operand windowDimensions; - - /** - * the inter-window strides - */ - public final Operand windowStrides; - - /** - * The baseDilations input - */ - public final Operand baseDilations; - - /** - * The windowDilations input - */ - public final Operand windowDilations; - - /** - * the padding to apply at the start and end of each input dimensions - */ - public final Operand padding; - - /** - * The T attribute - */ - public final DataType T; - - /** - * The Tindices attribute - */ - public final DataType Tindices; - - public Inputs(GraphOperation op) { - super(new ReduceWindow<>(op), op, Arrays.asList("T", "Tindices")); - int inputIndex = 0; - input = (Operand) op.input(inputIndex++); - initValue = (Operand) op.input(inputIndex++); - windowDimensions = (Operand) op.input(inputIndex++); - windowStrides = (Operand) op.input(inputIndex++); - baseDilations = (Operand) op.input(inputIndex++); - windowDilations = (Operand) op.input(inputIndex++); - padding = (Operand) op.input(inputIndex++); - T = op.attributes().getAttrType("T"); - Tindices = op.attributes().getAttrType("Tindices"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/RemoveDynamicDimensionSize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/RemoveDynamicDimensionSize.java deleted file mode 100644 index b60e77e6929..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/RemoveDynamicDimensionSize.java +++ /dev/null @@ -1,126 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.TInt32; -import org.tensorflow.types.family.TType; - -/** - * Inverse of XlaSetDynamicDimensionSize. - * Make an xla bounded dynamic dimension into a static dimension. The bound of the - * size of dimension {@code dim_index} becomes the static dimension size. - * - * @param data type for {@code output} output - */ -@OpMetadata( - opType = RemoveDynamicDimensionSize.OP_NAME, - inputsClass = RemoveDynamicDimensionSize.Inputs.class -) -@Operator( - group = "xla" -) -public final class RemoveDynamicDimensionSize extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaRemoveDynamicDimensionSize"; - - private Output output; - - public RemoveDynamicDimensionSize(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaRemoveDynamicDimensionSize operation. - * - * @param scope current scope - * @param input The input value - * @param dimIndex The dimIndex value - * @param data type for {@code XlaRemoveDynamicDimensionSize} output and operands - * @return a new instance of RemoveDynamicDimensionSize - */ - @Endpoint( - describeByClass = true - ) - public static RemoveDynamicDimensionSize create(Scope scope, - Operand input, Operand dimIndex) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "RemoveDynamicDimensionSize"); - opBuilder.addInput(input.asOutput()); - opBuilder.addInput(dimIndex.asOutput()); - return new RemoveDynamicDimensionSize<>(opBuilder.build()); - } - - /** - * Gets output. - * - * @return output. - */ - public Output output() { - return output; - } - - @Override - public Output asOutput() { - return output; - } - - @OpInputsMetadata( - outputsClass = RemoveDynamicDimensionSize.class - ) - public static class Inputs extends RawOpInputs> { - /** - * The input input - */ - public final Operand input; - - /** - * The dimIndex input - */ - public final Operand dimIndex; - - /** - * The T attribute - */ - public final DataType T; - - public Inputs(GraphOperation op) { - super(new RemoveDynamicDimensionSize<>(op), op, Arrays.asList("T")); - int inputIndex = 0; - input = (Operand) op.input(inputIndex++); - dimIndex = (Operand) op.input(inputIndex++); - T = op.attributes().getAttrType("T"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/ReplicaId.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/ReplicaId.java deleted file mode 100644 index 6e8c7db4445..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/ReplicaId.java +++ /dev/null @@ -1,96 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.types.TInt32; - -/** - * Replica ID. - */ -@OpMetadata( - opType = ReplicaId.OP_NAME, - inputsClass = ReplicaId.Inputs.class -) -@Operator( - group = "xla" -) -public final class ReplicaId extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaReplicaId"; - - private Output id; - - public ReplicaId(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - id = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaReplicaId operation. - * - * @param scope current scope - * @return a new instance of ReplicaId - */ - @Endpoint( - describeByClass = true - ) - public static ReplicaId create(Scope scope) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "ReplicaId"); - return new ReplicaId(opBuilder.build()); - } - - /** - * Gets id. - * - * @return id. - */ - public Output id() { - return id; - } - - @Override - public Output asOutput() { - return id; - } - - @OpInputsMetadata( - outputsClass = ReplicaId.class - ) - public static class Inputs extends RawOpInputs { - public Inputs(GraphOperation op) { - super(new ReplicaId(op), op, Arrays.asList()); - int inputIndex = 0; - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/RngBitGenerator.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/RngBitGenerator.java deleted file mode 100644 index 7962ee104f2..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/RngBitGenerator.java +++ /dev/null @@ -1,157 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.Operands; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.TInt32; -import org.tensorflow.types.family.TNumber; -import org.tensorflow.types.family.TType; - -/** - * Stateless PRNG bit generator. - * Wraps the XLA RngBitGenerator operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#rngbitgenerator. - * - * @param data type for {@code output} output - */ -@OpMetadata( - opType = RngBitGenerator.OP_NAME, - inputsClass = RngBitGenerator.Inputs.class -) -@Operator( - group = "xla" -) -public final class RngBitGenerator extends RawOp { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaRngBitGenerator"; - - private Output outputKey; - - private Output output; - - @SuppressWarnings("unchecked") - public RngBitGenerator(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - outputKey = operation.output(outputIdx++); - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaRngBitGenerator operation. - * - * @param scope current scope - * @param algorithm The PRNG algorithm to use, one of - * tf.random.Algorithm.{PHILOX, THREEFRY, AUTO_SELECT}. - * @param initialState Initial state for the PRNG algorithm. For THREEFRY, it should be - * a u64[2] and for PHILOX a u64[3]. - * @param shape The output shape of the generated data. - * @param dtype The type of the tensor. - * @param data type for {@code XlaRngBitGenerator} output and operands - * @return a new instance of RngBitGenerator - */ - @Endpoint( - describeByClass = true - ) - public static RngBitGenerator create(Scope scope, - Operand algorithm, Operand initialState, - Operand shape, Class dtype) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "RngBitGenerator"); - opBuilder.addInput(algorithm.asOutput()); - opBuilder.addInput(initialState.asOutput()); - opBuilder.addInput(shape.asOutput()); - opBuilder.setAttr("dtype", Operands.toDataType(dtype)); - return new RngBitGenerator<>(opBuilder.build()); - } - - /** - * Gets outputKey. - * - * @return outputKey. - */ - public Output outputKey() { - return outputKey; - } - - /** - * Gets output. - * - * @return output. - */ - public Output output() { - return output; - } - - @OpInputsMetadata( - outputsClass = RngBitGenerator.class - ) - public static class Inputs extends RawOpInputs> { - /** - * The PRNG algorithm to use, one of - * tf.random.Algorithm.{PHILOX, THREEFRY, AUTO_SELECT}. - */ - public final Operand algorithm; - - /** - * Initial state for the PRNG algorithm. For THREEFRY, it should be - * a u64[2] and for PHILOX a u64[3]. - */ - public final Operand initialState; - - /** - * The output shape of the generated data. - */ - public final Operand shape; - - /** - * The type of the tensor. - */ - public final DataType dtype; - - /** - * The Tshape attribute - */ - public final DataType Tshape; - - public Inputs(GraphOperation op) { - super(new RngBitGenerator<>(op), op, Arrays.asList("dtype", "Tshape")); - int inputIndex = 0; - algorithm = (Operand) op.input(inputIndex++); - initialState = (Operand) op.input(inputIndex++); - shape = (Operand) op.input(inputIndex++); - dtype = op.attributes().getAttrType("dtype"); - Tshape = op.attributes().getAttrType("Tshape"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Scatter.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Scatter.java deleted file mode 100644 index 0b92728baee..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Scatter.java +++ /dev/null @@ -1,162 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.ConcreteFunction; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TNumber; -import org.tensorflow.types.family.TType; - -/** - * Wraps the XLA Scatter operator documented at - * https://www.tensorflow.org/xla/operation_semantics#scatter. - * - * @param data type for {@code output} output - */ -@OpMetadata( - opType = Scatter.OP_NAME, - inputsClass = Scatter.Inputs.class -) -@Operator( - group = "xla" -) -public final class Scatter extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaScatter"; - - private Output output; - - public Scatter(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaScatter operation. - * - * @param scope current scope - * @param operand Array to be scattered into. - * @param scatterIndices Array containing the starting indices of the slices that must - * be scattered to. - * @param updates Array containing the values that must be used for scattering. - * @param updateComputation Computation to be used for combining the existing values in - * the input array and the updates during scatter. - * @param dimensionNumbers A serialized xla::ScatterDimensionNumbers proto. - * @param indicesAreSorted Boolean indicating if the indices are sorted. - * @param data type for {@code XlaScatter} output and operands - * @return a new instance of Scatter - */ - @Endpoint( - describeByClass = true - ) - public static Scatter create(Scope scope, Operand operand, - Operand scatterIndices, Operand updates, - ConcreteFunction updateComputation, String dimensionNumbers, Boolean indicesAreSorted) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "Scatter"); - opBuilder.addInput(operand.asOutput()); - opBuilder.addInput(scatterIndices.asOutput()); - opBuilder.addInput(updates.asOutput()); - opBuilder.setAttr("update_computation", updateComputation); - opBuilder.setAttr("dimension_numbers", dimensionNumbers); - opBuilder.setAttr("indices_are_sorted", indicesAreSorted); - return new Scatter<>(opBuilder.build()); - } - - /** - * Gets output. - * - * @return output. - */ - public Output output() { - return output; - } - - @Override - public Output asOutput() { - return output; - } - - @OpInputsMetadata( - outputsClass = Scatter.class - ) - public static class Inputs extends RawOpInputs> { - /** - * Array to be scattered into. - */ - public final Operand operand; - - /** - * Array containing the starting indices of the slices that must - * be scattered to. - */ - public final Operand scatterIndices; - - /** - * Array containing the values that must be used for scattering. - */ - public final Operand updates; - - /** - * A serialized xla::ScatterDimensionNumbers proto. - */ - public final String dimensionNumbers; - - /** - * Boolean indicating if the indices are sorted. - */ - public final boolean indicesAreSorted; - - /** - * The T attribute - */ - public final DataType T; - - /** - * The Tindices attribute - */ - public final DataType Tindices; - - public Inputs(GraphOperation op) { - super(new Scatter<>(op), op, Arrays.asList("dimension_numbers", "indices_are_sorted", "T", "Tindices")); - int inputIndex = 0; - operand = (Operand) op.input(inputIndex++); - scatterIndices = (Operand) op.input(inputIndex++); - updates = (Operand) op.input(inputIndex++); - dimensionNumbers = op.attributes().getAttrString("dimension_numbers"); - indicesAreSorted = op.attributes().getAttrBool("indices_are_sorted"); - T = op.attributes().getAttrType("T"); - Tindices = op.attributes().getAttrType("Tindices"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/SelectAndScatter.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/SelectAndScatter.java deleted file mode 100644 index 201196d05a8..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/SelectAndScatter.java +++ /dev/null @@ -1,171 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.ConcreteFunction; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TNumber; -import org.tensorflow.types.family.TType; - -/** - * Wraps the XLA SelectAndScatter operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#selectandscatter - * . - * - * @param data type for {@code output} output - */ -@OpMetadata( - opType = SelectAndScatter.OP_NAME, - inputsClass = SelectAndScatter.Inputs.class -) -@Operator( - group = "xla" -) -public final class SelectAndScatter extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaSelectAndScatter"; - - private Output output; - - public SelectAndScatter(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaSelectAndScatter operation. - * - * @param scope current scope - * @param operand the input tensor - * @param windowDimensions the shape of the window - * @param windowStrides the inter-window strides - * @param padding the padding to apply at the start and end of each input dimensions - * @param source a tensor of values to scatter - * @param initValue a scalar representing the initial value for the output tensor - * @param select a selection function to apply - * @param scatter a scatter function to apply - * @param data type for {@code XlaSelectAndScatter} output and operands - * @param data type for {@code XlaSelectAndScatter} output and operands - * @return a new instance of SelectAndScatter - */ - @Endpoint( - describeByClass = true - ) - public static SelectAndScatter create(Scope scope, - Operand operand, Operand windowDimensions, Operand windowStrides, Operand padding, - Operand source, Operand initValue, ConcreteFunction select, ConcreteFunction scatter) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "SelectAndScatter"); - opBuilder.addInput(operand.asOutput()); - opBuilder.addInput(windowDimensions.asOutput()); - opBuilder.addInput(windowStrides.asOutput()); - opBuilder.addInput(padding.asOutput()); - opBuilder.addInput(source.asOutput()); - opBuilder.addInput(initValue.asOutput()); - opBuilder.setAttr("select", select); - opBuilder.setAttr("scatter", scatter); - return new SelectAndScatter<>(opBuilder.build()); - } - - /** - * Gets output. - * - * @return output. - */ - public Output output() { - return output; - } - - @Override - public Output asOutput() { - return output; - } - - @OpInputsMetadata( - outputsClass = SelectAndScatter.class - ) - public static class Inputs extends RawOpInputs> { - /** - * the input tensor - */ - public final Operand operand; - - /** - * the shape of the window - */ - public final Operand windowDimensions; - - /** - * the inter-window strides - */ - public final Operand windowStrides; - - /** - * the padding to apply at the start and end of each input dimensions - */ - public final Operand padding; - - /** - * a tensor of values to scatter - */ - public final Operand source; - - /** - * a scalar representing the initial value for the output tensor - */ - public final Operand initValue; - - /** - * The T attribute - */ - public final DataType T; - - /** - * The Tindices attribute - */ - public final DataType Tindices; - - public Inputs(GraphOperation op) { - super(new SelectAndScatter<>(op), op, Arrays.asList("T", "Tindices")); - int inputIndex = 0; - operand = (Operand) op.input(inputIndex++); - windowDimensions = (Operand) op.input(inputIndex++); - windowStrides = (Operand) op.input(inputIndex++); - padding = (Operand) op.input(inputIndex++); - source = (Operand) op.input(inputIndex++); - initValue = (Operand) op.input(inputIndex++); - T = op.attributes().getAttrType("T"); - Tindices = op.attributes().getAttrType("Tindices"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/SelfAdjointEig.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/SelfAdjointEig.java deleted file mode 100644 index 1a85b225d5c..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/SelfAdjointEig.java +++ /dev/null @@ -1,160 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TType; - -/** - * Computes the eigen decomposition of a batch of self-adjoint matrices - * (Note: Only real inputs are supported). - *

Computes the eigenvalues and eigenvectors of the innermost N-by-N matrices in - * tensor such that tensor[...,:,:] * v[..., :,i] = e[..., i] * v[...,:,i], for - * i=0...N-1. - * - * @param data type for {@code w} output - */ -@OpMetadata( - opType = SelfAdjointEig.OP_NAME, - inputsClass = SelfAdjointEig.Inputs.class -) -@Operator( - group = "xla" -) -public final class SelfAdjointEig extends RawOp { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaSelfAdjointEig"; - - private Output w; - - private Output v; - - public SelfAdjointEig(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - w = operation.output(outputIdx++); - v = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaSelfAdjointEig operation. - * - * @param scope current scope - * @param a the input tensor. - * @param lower a boolean specifies whether the calculation is done with the lower - * triangular part or the upper triangular part. - * @param maxIter maximum number of sweep update, i.e., the whole lower triangular - * part or upper triangular part based on parameter lower. Heuristically, it has - * been argued that approximately logN sweeps are needed in practice (Ref: Golub & - * van Loan "Matrix Computation"). - * @param epsilon the tolerance ratio. - * @param data type for {@code XlaSelfAdjointEig} output and operands - * @return a new instance of SelfAdjointEig - */ - @Endpoint( - describeByClass = true - ) - public static SelfAdjointEig create(Scope scope, Operand a, Boolean lower, - Long maxIter, Float epsilon) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "SelfAdjointEig"); - opBuilder.addInput(a.asOutput()); - opBuilder.setAttr("lower", lower); - opBuilder.setAttr("max_iter", maxIter); - opBuilder.setAttr("epsilon", epsilon); - return new SelfAdjointEig<>(opBuilder.build()); - } - - /** - * Gets w. - * The eigenvalues in ascending order, each repeated according to its - * multiplicity. - * @return w. - */ - public Output w() { - return w; - } - - /** - * Gets v. - * The column v[..., :, i] is the normalized eigenvector corresponding to the - * eigenvalue w[..., i]. - * @return v. - */ - public Output v() { - return v; - } - - @OpInputsMetadata( - outputsClass = SelfAdjointEig.class - ) - public static class Inputs extends RawOpInputs> { - /** - * the input tensor. - */ - public final Operand a; - - /** - * a boolean specifies whether the calculation is done with the lower - * triangular part or the upper triangular part. - */ - public final boolean lower; - - /** - * maximum number of sweep update, i.e., the whole lower triangular - * part or upper triangular part based on parameter lower. Heuristically, it has - * been argued that approximately logN sweeps are needed in practice (Ref: Golub & - * van Loan "Matrix Computation"). - */ - public final long maxIter; - - /** - * the tolerance ratio. - */ - public final float epsilon; - - /** - * The T attribute - */ - public final DataType T; - - public Inputs(GraphOperation op) { - super(new SelfAdjointEig<>(op), op, Arrays.asList("lower", "max_iter", "epsilon", "T")); - int inputIndex = 0; - a = (Operand) op.input(inputIndex++); - lower = op.attributes().getAttrBool("lower"); - maxIter = op.attributes().getAttrInt("max_iter"); - epsilon = op.attributes().getAttrFloat("epsilon"); - T = op.attributes().getAttrType("T"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Send.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Send.java deleted file mode 100644 index 429b5a8a912..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Send.java +++ /dev/null @@ -1,102 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TType; - -/** - * Sends the named tensor to another XLA computation. Wraps the XLA Send operator - * documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#send . - */ -@OpMetadata( - opType = Send.OP_NAME, - inputsClass = Send.Inputs.class -) -@Operator( - group = "xla" -) -public final class Send extends RawOp { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaSend"; - - public Send(Operation operation) { - super(operation, OP_NAME); - } - - /** - * Factory method to create a class wrapping a new XlaSend operation. - * - * @param scope current scope - * @param tensor The tensor to send. - * @param tensorName A string key that identifies the channel. - * @return a new instance of Send - */ - @Endpoint( - describeByClass = true - ) - public static Send create(Scope scope, Operand tensor, String tensorName) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "Send"); - opBuilder.addInput(tensor.asOutput()); - opBuilder.setAttr("tensor_name", tensorName); - return new Send(opBuilder.build()); - } - - @OpInputsMetadata( - outputsClass = Send.class - ) - public static class Inputs extends RawOpInputs { - /** - * The tensor to send. - */ - public final Operand tensor; - - /** - * The T attribute - */ - public final DataType T; - - /** - * A string key that identifies the channel. - */ - public final String tensorName; - - public Inputs(GraphOperation op) { - super(new Send(op), op, Arrays.asList("T", "tensor_name")); - int inputIndex = 0; - tensor = (Operand) op.input(inputIndex++); - T = op.attributes().getAttrType("T"); - tensorName = op.attributes().getAttrString("tensor_name"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/SetDynamicDimensionSize.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/SetDynamicDimensionSize.java deleted file mode 100644 index 4a28610d1b9..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/SetDynamicDimensionSize.java +++ /dev/null @@ -1,136 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.TInt32; -import org.tensorflow.types.family.TType; - -/** - * Make a static dimension into a xla bounded dynamic dimension. - *

- *     The current static dimension size will become the bound and the second
- *     operand becomes the dynamic size of the dimension.
- * 
- * - * @param data type for {@code output} output - */ -@OpMetadata( - opType = SetDynamicDimensionSize.OP_NAME, - inputsClass = SetDynamicDimensionSize.Inputs.class -) -@Operator( - group = "xla" -) -public final class SetDynamicDimensionSize extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaSetDynamicDimensionSize"; - - private Output output; - - public SetDynamicDimensionSize(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaSetDynamicDimensionSize operation. - * - * @param scope current scope - * @param input The input value - * @param dimIndex The dimIndex value - * @param sizeOutput The sizeOutput value - * @param data type for {@code XlaSetDynamicDimensionSize} output and operands - * @return a new instance of SetDynamicDimensionSize - */ - @Endpoint( - describeByClass = true - ) - public static SetDynamicDimensionSize create(Scope scope, Operand input, - Operand dimIndex, Operand sizeOutput) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "SetDynamicDimensionSize"); - opBuilder.addInput(input.asOutput()); - opBuilder.addInput(dimIndex.asOutput()); - opBuilder.addInput(sizeOutput.asOutput()); - return new SetDynamicDimensionSize<>(opBuilder.build()); - } - - /** - * Gets output. - * - * @return output. - */ - public Output output() { - return output; - } - - @Override - public Output asOutput() { - return output; - } - - @OpInputsMetadata( - outputsClass = SetDynamicDimensionSize.class - ) - public static class Inputs extends RawOpInputs> { - /** - * The input input - */ - public final Operand input; - - /** - * The dimIndex input - */ - public final Operand dimIndex; - - /** - * The sizeOutput input - */ - public final Operand sizeOutput; - - /** - * The T attribute - */ - public final DataType T; - - public Inputs(GraphOperation op) { - super(new SetDynamicDimensionSize<>(op), op, Arrays.asList("T")); - int inputIndex = 0; - input = (Operand) op.input(inputIndex++); - dimIndex = (Operand) op.input(inputIndex++); - sizeOutput = (Operand) op.input(inputIndex++); - T = op.attributes().getAttrType("T"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Sharding.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Sharding.java deleted file mode 100644 index 86d80ce6a5e..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Sharding.java +++ /dev/null @@ -1,220 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import java.util.List; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TType; - -/** - * An op which shards the input based on the given sharding attribute. It can - * selectively annotate a subset of tensor dimensions by skipping unspecified_dims, - * and the sharding annotation should be replicated in those dims. - * - * @param data type for {@code output} output - */ -@OpMetadata( - opType = Sharding.OP_NAME, - inputsClass = Sharding.Inputs.class -) -@Operator( - group = "xla" -) -public final class Sharding extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaSharding"; - - private Output output; - - public Sharding(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaSharding operation. - * - * @param scope current scope - * @param input The input value - * @param options carries optional attribute values - * @param data type for {@code XlaSharding} output and operands - * @return a new instance of Sharding - */ - @Endpoint( - describeByClass = true - ) - public static Sharding create(Scope scope, Operand input, - Options... options) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "Sharding"); - opBuilder.addInput(input.asOutput()); - if (options != null) { - for (Options opts : options) { - if (opts.sharding != null) { - opBuilder.setAttr("sharding", opts.sharding); - } - if (opts.unspecifiedDims != null) { - long[] unspecifiedDimsArray = new long[opts.unspecifiedDims.size()]; - for (int i = 0 ; i < unspecifiedDimsArray.length ; i++) { - unspecifiedDimsArray[i] = opts.unspecifiedDims.get(i); - } - opBuilder.setAttr("unspecified_dims", unspecifiedDimsArray); - } - } - } - return new Sharding<>(opBuilder.build()); - } - - /** - * Sets the sharding option. - * - * @param sharding the sharding option - * @return this Options instance. - */ - public static Options sharding(String sharding) { - return new Options().sharding(sharding); - } - - /** - * Sets the unspecifiedDims option. - * - * @param unspecifiedDims the unspecifiedDims option - * @return this Options instance. - */ - public static Options unspecifiedDims(List unspecifiedDims) { - return new Options().unspecifiedDims(unspecifiedDims); - } - - /** - * Sets the unspecifiedDims option. - * - * @param unspecifiedDims the unspecifiedDims option - * @return this Options instance. - */ - public static Options unspecifiedDims(Long... unspecifiedDims) { - return new Options().unspecifiedDims(unspecifiedDims); - } - - /** - * Gets output. - * - * @return output. - */ - public Output output() { - return output; - } - - @Override - public Output asOutput() { - return output; - } - - /** - * Optional attributes for {@link org.tensorflow.op.xla.Sharding} - */ - public static class Options { - private String sharding; - - private List unspecifiedDims; - - private Options() { - } - - /** - * Sets the sharding option. - * - * @param sharding the sharding option - * @return this Options instance. - */ - public Options sharding(String sharding) { - this.sharding = sharding; - return this; - } - - /** - * Sets the unspecifiedDims option. - * - * @param unspecifiedDims the unspecifiedDims option - * @return this Options instance. - */ - public Options unspecifiedDims(List unspecifiedDims) { - this.unspecifiedDims = unspecifiedDims; - return this; - } - - /** - * Sets the unspecifiedDims option. - * - * @param unspecifiedDims the unspecifiedDims option - * @return this Options instance. - */ - public Options unspecifiedDims(Long... unspecifiedDims) { - this.unspecifiedDims = Arrays.asList(unspecifiedDims); - return this; - } - } - - @OpInputsMetadata( - outputsClass = Sharding.class - ) - public static class Inputs extends RawOpInputs> { - /** - * The input input - */ - public final Operand input; - - /** - * The T attribute - */ - public final DataType T; - - /** - * The sharding attribute - */ - public final String sharding; - - /** - * The unspecifiedDims attribute - */ - public final long[] unspecifiedDims; - - public Inputs(GraphOperation op) { - super(new Sharding<>(op), op, Arrays.asList("T", "sharding", "unspecified_dims")); - int inputIndex = 0; - input = (Operand) op.input(inputIndex++); - T = op.attributes().getAttrType("T"); - sharding = op.attributes().getAttrString("sharding"); - unspecifiedDims = op.attributes().getAttrIntList("unspecified_dims"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Sort.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Sort.java deleted file mode 100644 index 372a7c23fa0..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Sort.java +++ /dev/null @@ -1,117 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TType; - -/** - * Wraps the XLA Sort operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#sort - * . - *

Sorts a tensor. Currently only sorts in ascending order are supported. - * - * @param data type for {@code output} output - */ -@OpMetadata( - opType = Sort.OP_NAME, - inputsClass = Sort.Inputs.class -) -@Operator( - group = "xla" -) -public final class Sort extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaSort"; - - private Output output; - - public Sort(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaSort operation. - * - * @param scope current scope - * @param input A {@code Tensor} of type T. - * @param data type for {@code XlaSort} output and operands - * @return a new instance of Sort - */ - @Endpoint( - describeByClass = true - ) - public static Sort create(Scope scope, Operand input) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "Sort"); - opBuilder.addInput(input.asOutput()); - return new Sort<>(opBuilder.build()); - } - - /** - * Gets output. - * A {@code Tensor} of type T. - * @return output. - */ - public Output output() { - return output; - } - - @Override - public Output asOutput() { - return output; - } - - @OpInputsMetadata( - outputsClass = Sort.class - ) - public static class Inputs extends RawOpInputs> { - /** - * A {@code Tensor} of type T. - */ - public final Operand input; - - /** - * The T attribute - */ - public final DataType T; - - public Inputs(GraphOperation op) { - super(new Sort<>(op), op, Arrays.asList("T")); - int inputIndex = 0; - input = (Operand) op.input(inputIndex++); - T = op.attributes().getAttrType("T"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/SplitND.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/SplitND.java index 7bad8f89813..24c83abe0cd 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/SplitND.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/SplitND.java @@ -31,7 +31,7 @@ import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/SpmdFullToShardShape.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/SpmdFullToShardShape.java deleted file mode 100644 index 2c8e2577a92..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/SpmdFullToShardShape.java +++ /dev/null @@ -1,232 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import java.util.List; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TType; - -/** - * An op used by XLA SPMD partitioner to switch from automatic partitioning to - * manual partitioning. It annotates the input (full-shape, to be automatically - * partitioned) with the same sharding used by manual partitioning, and outputs a - * shard-shaped tensor to be consumed by later manually-partitioned ops. If the - * shape is not evenly partitionable, the padding region will be masked with 0s. - * The conversion can happen partially in subgroups, by specifying the dim - * attribute, where only that dim will be converted. - * - * @param data type for {@code output} output - */ -@OpMetadata( - opType = SpmdFullToShardShape.OP_NAME, - inputsClass = SpmdFullToShardShape.Inputs.class -) -@Operator( - group = "xla" -) -public final class SpmdFullToShardShape extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaSpmdFullToShardShape"; - - private Output output; - - public SpmdFullToShardShape(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaSpmdFullToShardShape operation. - * - * @param scope current scope - * @param input The input value - * @param manualSharding The value of the manualSharding attribute - * @param options carries optional attribute values - * @param data type for {@code XlaSpmdFullToShardShape} output and operands - * @return a new instance of SpmdFullToShardShape - */ - @Endpoint( - describeByClass = true - ) - public static SpmdFullToShardShape create(Scope scope, Operand input, - String manualSharding, Options... options) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "SpmdFullToShardShape"); - opBuilder.addInput(input.asOutput()); - opBuilder.setAttr("manual_sharding", manualSharding); - if (options != null) { - for (Options opts : options) { - if (opts.dim != null) { - opBuilder.setAttr("dim", opts.dim); - } - if (opts.unspecifiedDims != null) { - long[] unspecifiedDimsArray = new long[opts.unspecifiedDims.size()]; - for (int i = 0 ; i < unspecifiedDimsArray.length ; i++) { - unspecifiedDimsArray[i] = opts.unspecifiedDims.get(i); - } - opBuilder.setAttr("unspecified_dims", unspecifiedDimsArray); - } - } - } - return new SpmdFullToShardShape<>(opBuilder.build()); - } - - /** - * Sets the dim option. - * - * @param dim the dim option - * @return this Options instance. - */ - public static Options dim(Long dim) { - return new Options().dim(dim); - } - - /** - * Sets the unspecifiedDims option. - * - * @param unspecifiedDims the unspecifiedDims option - * @return this Options instance. - */ - public static Options unspecifiedDims(List unspecifiedDims) { - return new Options().unspecifiedDims(unspecifiedDims); - } - - /** - * Sets the unspecifiedDims option. - * - * @param unspecifiedDims the unspecifiedDims option - * @return this Options instance. - */ - public static Options unspecifiedDims(Long... unspecifiedDims) { - return new Options().unspecifiedDims(unspecifiedDims); - } - - /** - * Gets output. - * - * @return output. - */ - public Output output() { - return output; - } - - @Override - public Output asOutput() { - return output; - } - - /** - * Optional attributes for {@link org.tensorflow.op.xla.SpmdFullToShardShape} - */ - public static class Options { - private Long dim; - - private List unspecifiedDims; - - private Options() { - } - - /** - * Sets the dim option. - * - * @param dim the dim option - * @return this Options instance. - */ - public Options dim(Long dim) { - this.dim = dim; - return this; - } - - /** - * Sets the unspecifiedDims option. - * - * @param unspecifiedDims the unspecifiedDims option - * @return this Options instance. - */ - public Options unspecifiedDims(List unspecifiedDims) { - this.unspecifiedDims = unspecifiedDims; - return this; - } - - /** - * Sets the unspecifiedDims option. - * - * @param unspecifiedDims the unspecifiedDims option - * @return this Options instance. - */ - public Options unspecifiedDims(Long... unspecifiedDims) { - this.unspecifiedDims = Arrays.asList(unspecifiedDims); - return this; - } - } - - @OpInputsMetadata( - outputsClass = SpmdFullToShardShape.class - ) - public static class Inputs extends RawOpInputs> { - /** - * The input input - */ - public final Operand input; - - /** - * The T attribute - */ - public final DataType T; - - /** - * The manualSharding attribute - */ - public final String manualSharding; - - /** - * The dim attribute - */ - public final long dim; - - /** - * The unspecifiedDims attribute - */ - public final long[] unspecifiedDims; - - public Inputs(GraphOperation op) { - super(new SpmdFullToShardShape<>(op), op, Arrays.asList("T", "manual_sharding", "dim", "unspecified_dims")); - int inputIndex = 0; - input = (Operand) op.input(inputIndex++); - T = op.attributes().getAttrType("T"); - manualSharding = op.attributes().getAttrString("manual_sharding"); - dim = op.attributes().getAttrInt("dim"); - unspecifiedDims = op.attributes().getAttrIntList("unspecified_dims"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/SpmdShardToFullShape.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/SpmdShardToFullShape.java deleted file mode 100644 index 5fad405d428..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/SpmdShardToFullShape.java +++ /dev/null @@ -1,239 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import java.util.List; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.ndarray.Shape; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TType; - -/** - * An op used by XLA SPMD partitioner to switch from manual partitioning to - * automatic partitioning. It converts the shard-shaped, manually partitioned input - * into full-shaped tensor to be partitioned automatically with the same sharding - * used by manual partitioning. The conversion can happen partially in subgroups, - * by specifying the dim attribute, where only that dim will be converted. - * - * @param data type for {@code output} output - */ -@OpMetadata( - opType = SpmdShardToFullShape.OP_NAME, - inputsClass = SpmdShardToFullShape.Inputs.class -) -@Operator( - group = "xla" -) -public final class SpmdShardToFullShape extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaSpmdShardToFullShape"; - - private Output output; - - public SpmdShardToFullShape(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaSpmdShardToFullShape operation. - * - * @param scope current scope - * @param input The input value - * @param manualSharding The value of the manualSharding attribute - * @param fullShape The value of the fullShape attribute - * @param options carries optional attribute values - * @param data type for {@code XlaSpmdShardToFullShape} output and operands - * @return a new instance of SpmdShardToFullShape - */ - @Endpoint( - describeByClass = true - ) - public static SpmdShardToFullShape create(Scope scope, Operand input, - String manualSharding, Shape fullShape, Options... options) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "SpmdShardToFullShape"); - opBuilder.addInput(input.asOutput()); - opBuilder.setAttr("manual_sharding", manualSharding); - opBuilder.setAttr("full_shape", fullShape); - if (options != null) { - for (Options opts : options) { - if (opts.dim != null) { - opBuilder.setAttr("dim", opts.dim); - } - if (opts.unspecifiedDims != null) { - long[] unspecifiedDimsArray = new long[opts.unspecifiedDims.size()]; - for (int i = 0 ; i < unspecifiedDimsArray.length ; i++) { - unspecifiedDimsArray[i] = opts.unspecifiedDims.get(i); - } - opBuilder.setAttr("unspecified_dims", unspecifiedDimsArray); - } - } - } - return new SpmdShardToFullShape<>(opBuilder.build()); - } - - /** - * Sets the dim option. - * - * @param dim the dim option - * @return this Options instance. - */ - public static Options dim(Long dim) { - return new Options().dim(dim); - } - - /** - * Sets the unspecifiedDims option. - * - * @param unspecifiedDims the unspecifiedDims option - * @return this Options instance. - */ - public static Options unspecifiedDims(List unspecifiedDims) { - return new Options().unspecifiedDims(unspecifiedDims); - } - - /** - * Sets the unspecifiedDims option. - * - * @param unspecifiedDims the unspecifiedDims option - * @return this Options instance. - */ - public static Options unspecifiedDims(Long... unspecifiedDims) { - return new Options().unspecifiedDims(unspecifiedDims); - } - - /** - * Gets output. - * - * @return output. - */ - public Output output() { - return output; - } - - @Override - public Output asOutput() { - return output; - } - - /** - * Optional attributes for {@link org.tensorflow.op.xla.SpmdShardToFullShape} - */ - public static class Options { - private Long dim; - - private List unspecifiedDims; - - private Options() { - } - - /** - * Sets the dim option. - * - * @param dim the dim option - * @return this Options instance. - */ - public Options dim(Long dim) { - this.dim = dim; - return this; - } - - /** - * Sets the unspecifiedDims option. - * - * @param unspecifiedDims the unspecifiedDims option - * @return this Options instance. - */ - public Options unspecifiedDims(List unspecifiedDims) { - this.unspecifiedDims = unspecifiedDims; - return this; - } - - /** - * Sets the unspecifiedDims option. - * - * @param unspecifiedDims the unspecifiedDims option - * @return this Options instance. - */ - public Options unspecifiedDims(Long... unspecifiedDims) { - this.unspecifiedDims = Arrays.asList(unspecifiedDims); - return this; - } - } - - @OpInputsMetadata( - outputsClass = SpmdShardToFullShape.class - ) - public static class Inputs extends RawOpInputs> { - /** - * The input input - */ - public final Operand input; - - /** - * The T attribute - */ - public final DataType T; - - /** - * The manualSharding attribute - */ - public final String manualSharding; - - /** - * The fullShape attribute - */ - public final Shape fullShape; - - /** - * The dim attribute - */ - public final long dim; - - /** - * The unspecifiedDims attribute - */ - public final long[] unspecifiedDims; - - public Inputs(GraphOperation op) { - super(new SpmdShardToFullShape<>(op), op, Arrays.asList("T", "manual_sharding", "full_shape", "dim", "unspecified_dims")); - int inputIndex = 0; - input = (Operand) op.input(inputIndex++); - T = op.attributes().getAttrType("T"); - manualSharding = op.attributes().getAttrString("manual_sharding"); - fullShape = op.attributes().getAttrShape("full_shape"); - dim = op.attributes().getAttrInt("dim"); - unspecifiedDims = op.attributes().getAttrIntList("unspecified_dims"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Svd.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Svd.java deleted file mode 100644 index f4dc4888b41..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/Svd.java +++ /dev/null @@ -1,168 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TType; - -/** - * Computes the eigen decomposition of a batch of self-adjoint matrices - * (Note: Only real inputs are supported). - *

Computes the eigenvalues and eigenvectors of the innermost M-by-N matrices in - * tensor such that tensor[...,:,:] = u[..., :, :] * Diag(s[..., :]) * Transpose(v[...,:,:]). - * - * @param data type for {@code s} output - */ -@OpMetadata( - opType = Svd.OP_NAME, - inputsClass = Svd.Inputs.class -) -@Operator( - group = "xla" -) -public final class Svd extends RawOp { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaSvd"; - - private Output s; - - private Output u; - - private Output v; - - public Svd(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - s = operation.output(outputIdx++); - u = operation.output(outputIdx++); - v = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaSvd operation. - * - * @param scope current scope - * @param a the input tensor. - * @param maxIter maximum number of sweep update, i.e., the whole lower triangular - * part or upper triangular part based on parameter lower. Heuristically, it has - * been argued that approximately log(min (M, N)) sweeps are needed in practice - * (Ref: Golub & van Loan "Matrix Computation"). - * @param epsilon the tolerance ratio. - * @param precisionConfig a serialized xla::PrecisionConfig proto. - * @param data type for {@code XlaSvd} output and operands - * @return a new instance of Svd - */ - @Endpoint( - describeByClass = true - ) - public static Svd create(Scope scope, Operand a, Long maxIter, - Float epsilon, String precisionConfig) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "Svd"); - opBuilder.addInput(a.asOutput()); - opBuilder.setAttr("max_iter", maxIter); - opBuilder.setAttr("epsilon", epsilon); - opBuilder.setAttr("precision_config", precisionConfig); - return new Svd<>(opBuilder.build()); - } - - /** - * Gets s. - * Singular values. The values are sorted in reverse order of magnitude, so - * s[..., 0] is the largest value, s[..., 1] is the second largest, etc. - * @return s. - */ - public Output s() { - return s; - } - - /** - * Gets u. - * Left singular vectors. - * @return u. - */ - public Output u() { - return u; - } - - /** - * Gets v. - * Right singular vectors. - * @return v. - */ - public Output v() { - return v; - } - - @OpInputsMetadata( - outputsClass = Svd.class - ) - public static class Inputs extends RawOpInputs> { - /** - * the input tensor. - */ - public final Operand a; - - /** - * maximum number of sweep update, i.e., the whole lower triangular - * part or upper triangular part based on parameter lower. Heuristically, it has - * been argued that approximately log(min (M, N)) sweeps are needed in practice - * (Ref: Golub & van Loan "Matrix Computation"). - */ - public final long maxIter; - - /** - * the tolerance ratio. - */ - public final float epsilon; - - /** - * a serialized xla::PrecisionConfig proto. - */ - public final String precisionConfig; - - /** - * The T attribute - */ - public final DataType T; - - public Inputs(GraphOperation op) { - super(new Svd<>(op), op, Arrays.asList("max_iter", "epsilon", "precision_config", "T")); - int inputIndex = 0; - a = (Operand) op.input(inputIndex++); - maxIter = op.attributes().getAttrInt("max_iter"); - epsilon = op.attributes().getAttrFloat("epsilon"); - precisionConfig = op.attributes().getAttrString("precision_config"); - T = op.attributes().getAttrType("T"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/While.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/While.java deleted file mode 100644 index 9d29c7127f2..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/While.java +++ /dev/null @@ -1,134 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import java.util.Iterator; -import java.util.List; -import org.tensorflow.ConcreteFunction; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.Operands; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TType; - -/** - * output = input; While (Cond(output)) { output = Body(output) } - */ -@OpMetadata( - opType = While.OP_NAME, - inputsClass = While.Inputs.class -) -@Operator( - group = "xla" -) -public final class While extends RawOp implements Iterable> { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaWhile"; - - private List> output; - - @SuppressWarnings("unchecked") - public While(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - int outputLength = operation.outputListLength("output"); - output = Arrays.asList(operation.outputList(outputIdx, outputLength)); - outputIdx += outputLength; - } - - /** - * Factory method to create a class wrapping a new XlaWhile operation. - * - * @param scope current scope - * @param input A list of input tensors whose types are T. - * @param cond A function takes 'input' and returns a tensor. If the tensor is - * a scalar of non-boolean, the scalar is converted to a boolean - * according to the following rule: if the scalar is a numerical - * value, non-zero means True and zero means False; if the scalar is - * a string, non-empty means True and empty means False. If the - * tensor is not a scalar, non-emptiness means True and False - * otherwise. - * @param body A function that takes a list of tensors and returns another - * list of tensors. Both lists have the same types as specified by T. - * @return a new instance of While - */ - @Endpoint( - describeByClass = true, - name = "whileOp" - ) - public static While create(Scope scope, Iterable> input, ConcreteFunction cond, - ConcreteFunction body) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "While"); - opBuilder.addInputList(Operands.asOutputs(input)); - opBuilder.setAttr("cond", cond); - opBuilder.setAttr("body", body); - return new While(opBuilder.build()); - } - - /** - * Gets output. - * A list of output tensors whose types are T. - * @return output. - */ - public List> output() { - return output; - } - - @Override - @SuppressWarnings({"rawtypes", "unchecked"}) - public Iterator> iterator() { - return (Iterator) output.iterator(); - } - - @OpInputsMetadata( - outputsClass = While.class - ) - public static class Inputs extends RawOpInputs { - /** - * A list of input tensors whose types are T. - */ - public final Iterable> input; - - /** - * The T attribute - */ - public final DataType[] T; - - public Inputs(GraphOperation op) { - super(new While(op), op, Arrays.asList("T")); - int inputIndex = 0; - int inputLength = op.inputListLength("input"); - input = Arrays.asList((Operand[]) op.inputList(inputIndex, inputLength)); - inputIndex += inputLength; - T = op.attributes().getAttrTypeList("T"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaCallModule.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaCallModule.java deleted file mode 100644 index c876521f001..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaCallModule.java +++ /dev/null @@ -1,184 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import java.util.Iterator; -import java.util.List; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.ndarray.Shape; -import org.tensorflow.op.Operands; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TType; - -/** - * Temporary op for experimenting with jax2tf. - * DO NOT USE THIS OP. It has no backwards compatibility guarantees. It is also - * very likely to change. This op will be used only in jax2tf under an - * experimental flag. - *

This is an experimental op to allow a smooth evolution of jax2tf towards - * emitting and serializing MHLO directly from JAX. At the moment this op - * carries a serialized MHLO module, therefore there are no backward-compatibility - * guarantees, and should not be used for serialization. - * Eventually, the op will carry a MHLO object, which will have - * backwards-compatibility guarantees. - *

The serialized module must return a tuple if and only if the Sout is an empty - * list or a list with more than 1 elements. The length of Tout and Sout must - * match. This op always returns a tuple of results, even if the module returns - * a single result. - *

The handling of dynamic shapes is work-in-progress. At the moment, the - * JAX lowering for dynamic shapes will prepend one dimension parameter to the - * serialized module for each dimension whose value must be passed in. - * The "args" correspond to the non-dimension arguments. During compilation - * we compute the values of the dimension arguments based on the static shapes of - * the "args". In order to do this, we encode for each dimension argument a - * specification of how to compute its value, as a string, in the form - * "<arg_idx>.<axis_idx>". - * E.g., the specification "2.1" denotes the value args[2].shape[1]. - */ -@OpMetadata( - opType = XlaCallModule.OP_NAME, - inputsClass = XlaCallModule.Inputs.class -) -public final class XlaCallModule extends RawOp implements Iterable> { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaCallModule"; - - private List> output; - - @SuppressWarnings("unchecked") - public XlaCallModule(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - int outputLength = operation.outputListLength("output"); - output = Arrays.asList(operation.outputList(outputIdx, outputLength)); - outputIdx += outputLength; - } - - /** - * Factory method to create a class wrapping a new XlaCallModule operation. - * - * @param scope current scope - * @param args A list of {@code Tensor} with possibly different types to be passed as arguments - * to the HLO module. - * @param module A serialized computation, a text representation of mlir.Module. - * @param Sout List of output tensor shapes. - * @param Tout List of output tensor data types. - * @param dimArgsSpec the specification for the dimension arguments, one for each - * dimension argument. In absence of dynamic shapes this list is empty. - * @return a new instance of XlaCallModule - */ - @Endpoint( - describeByClass = true - ) - public static XlaCallModule create(Scope scope, Iterable> args, String module, - List Sout, List> Tout, List dimArgsSpec) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "XlaCallModule"); - opBuilder.addInputList(Operands.asOutputs(args)); - opBuilder.setAttr("module", module); - Shape[] SoutArray = new Shape[Sout.size()]; - for (int i = 0 ; i < SoutArray.length ; i++) { - SoutArray[i] = Sout.get(i); - } - opBuilder.setAttr("Sout", SoutArray); - opBuilder.setAttr("Tout", Operands.toDataTypes(Tout)); - String[] dimArgsSpecArray = new String[dimArgsSpec.size()]; - for (int i = 0 ; i < dimArgsSpecArray.length ; i++) { - dimArgsSpecArray[i] = dimArgsSpec.get(i); - } - opBuilder.setAttr("dim_args_spec", dimArgsSpecArray); - return new XlaCallModule(opBuilder.build()); - } - - /** - * Gets output. - * - * @return output. - */ - public List> output() { - return output; - } - - @Override - @SuppressWarnings({"rawtypes", "unchecked"}) - public Iterator> iterator() { - return (Iterator) output.iterator(); - } - - @OpInputsMetadata( - outputsClass = XlaCallModule.class - ) - public static class Inputs extends RawOpInputs { - /** - * A list of {@code Tensor} with possibly different types to be passed as arguments - * to the HLO module. - */ - public final Iterable> args; - - /** - * A serialized computation, a text representation of mlir.Module. - */ - public final String module; - - /** - * List of output tensor shapes. - */ - public final Shape[] Sout; - - /** - * List of output tensor data types. - */ - public final DataType[] Tout; - - /** - * The Tin attribute - */ - public final DataType[] Tin; - - /** - * the specification for the dimension arguments, one for each - * dimension argument. In absence of dynamic shapes this list is empty. - */ - public final String[] dimArgsSpec; - - public Inputs(GraphOperation op) { - super(new XlaCallModule(op), op, Arrays.asList("module", "Sout", "Tout", "Tin", "dim_args_spec")); - int inputIndex = 0; - int argsLength = op.inputListLength("args"); - args = Arrays.asList((Operand[]) op.inputList(inputIndex, argsLength)); - inputIndex += argsLength; - module = op.attributes().getAttrString("module"); - Sout = op.attributes().getAttrShapeList("Sout"); - Tout = op.attributes().getAttrTypeList("Tout"); - Tin = op.attributes().getAttrTypeList("Tin"); - dimArgsSpec = op.attributes().getAttrStringList("dim_args_spec"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaHostCompute.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaHostCompute.java index 3e711f2faad..85be97cfb90 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaHostCompute.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaHostCompute.java @@ -35,7 +35,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaLaunch.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaLaunch.java deleted file mode 100644 index abdb3eb5c57..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaLaunch.java +++ /dev/null @@ -1,159 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import java.util.Iterator; -import java.util.List; -import org.tensorflow.ConcreteFunction; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.Operands; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TType; - -/** - * XLA Launch Op. For use by the XLA JIT only. - */ -@OpMetadata( - opType = XlaLaunch.OP_NAME, - inputsClass = XlaLaunch.Inputs.class -) -@Operator( - group = "xla" -) -public final class XlaLaunch extends RawOp implements Iterable> { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaLaunch"; - - private List> results; - - @SuppressWarnings("unchecked") - public XlaLaunch(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - int resultsLength = operation.outputListLength("results"); - results = Arrays.asList(operation.outputList(outputIdx, resultsLength)); - outputIdx += resultsLength; - } - - /** - * Factory method to create a class wrapping a new XlaLaunch operation. - * - * @param scope current scope - * @param constants The constants value - * @param args The args value - * @param resources The resources value - * @param Tresults The value of the Tresults attribute - * @param function The value of the function attribute - * @return a new instance of XlaLaunch - */ - @Endpoint( - describeByClass = true - ) - public static XlaLaunch create(Scope scope, Iterable> constants, - Iterable> args, Iterable> resources, - List> Tresults, ConcreteFunction function) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "XlaLaunch"); - opBuilder.addInputList(Operands.asOutputs(constants)); - opBuilder.addInputList(Operands.asOutputs(args)); - opBuilder.addInputList(Operands.asOutputs(resources)); - opBuilder.setAttr("Tresults", Operands.toDataTypes(Tresults)); - opBuilder.setAttr("function", function); - return new XlaLaunch(opBuilder.build()); - } - - /** - * Gets results. - * - * @return results. - */ - public List> results() { - return results; - } - - @Override - @SuppressWarnings({"rawtypes", "unchecked"}) - public Iterator> iterator() { - return (Iterator) results.iterator(); - } - - @OpInputsMetadata( - outputsClass = XlaLaunch.class - ) - public static class Inputs extends RawOpInputs { - /** - * The constants input - */ - public final Iterable> constants; - - /** - * The args input - */ - public final Iterable> args; - - /** - * The resources input - */ - public final Iterable> resources; - - /** - * The Tconstants attribute - */ - public final DataType[] Tconstants; - - /** - * The Targs attribute - */ - public final DataType[] Targs; - - /** - * The Tresults attribute - */ - public final DataType[] Tresults; - - public Inputs(GraphOperation op) { - super(new XlaLaunch(op), op, Arrays.asList("Tconstants", "Targs", "Tresults")); - int inputIndex = 0; - int constantsLength = op.inputListLength("constants"); - constants = Arrays.asList((Operand[]) op.inputList(inputIndex, constantsLength)); - inputIndex += constantsLength; - int argsLength = op.inputListLength("args"); - args = Arrays.asList((Operand[]) op.inputList(inputIndex, argsLength)); - inputIndex += argsLength; - int resourcesLength = op.inputListLength("resources"); - resources = Arrays.asList((Operand[]) op.inputList(inputIndex, resourcesLength)); - inputIndex += resourcesLength; - Tconstants = op.attributes().getAttrTypeList("Tconstants"); - Targs = op.attributes().getAttrTypeList("Targs"); - Tresults = op.attributes().getAttrTypeList("Tresults"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaRecvFromHost.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaRecvFromHost.java index 38ae323ef7d..31442976f36 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaRecvFromHost.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaRecvFromHost.java @@ -32,7 +32,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaSendTPUEmbeddingGradients.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaSendTPUEmbeddingGradients.java index 7be0846c54e..ad725f372ee 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaSendTPUEmbeddingGradients.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaSendTPUEmbeddingGradients.java @@ -97,7 +97,7 @@ public static XlaSendTPUEmbeddingGradients create(Scope scope, /** * Sets the NumLearningRateTags option. * - * @param NumLearningRateTags the NumLearningRateTags option + * @param NumLearningRateTags number of learning rate tags * @return this Options instance. */ public static Options NumLearningRateTags(Long NumLearningRateTags) { @@ -116,7 +116,7 @@ private Options() { /** * Sets the NumLearningRateTags option. * - * @param NumLearningRateTags the NumLearningRateTags option + * @param NumLearningRateTags number of learning rate tags * @return this Options instance. */ public Options NumLearningRateTags(Long NumLearningRateTags) { diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaSendToHost.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaSendToHost.java index c0c1f2b9d37..8668891fe8c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaSendToHost.java +++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaSendToHost.java @@ -29,7 +29,7 @@ import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.op.annotation.OpMetadata; import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; +import org.tensorflow.proto.DataType; import org.tensorflow.types.family.TType; /** diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaSetBound.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaSetBound.java deleted file mode 100644 index 426bcd03bc9..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaSetBound.java +++ /dev/null @@ -1,115 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.types.TInt32; - -/** - * Set a bound for the given input value as a hint to Xla compiler, - *

- *     returns the same value.
- * 
- */ -@OpMetadata( - opType = XlaSetBound.OP_NAME, - inputsClass = XlaSetBound.Inputs.class -) -@Operator( - group = "xla" -) -public final class XlaSetBound extends RawOp implements Operand { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaSetBound"; - - private Output output; - - public XlaSetBound(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - output = operation.output(outputIdx++); - } - - /** - * Factory method to create a class wrapping a new XlaSetBound operation. - * - * @param scope current scope - * @param input The input value - * @param bound The bound value - * @return a new instance of XlaSetBound - */ - @Endpoint( - describeByClass = true - ) - public static XlaSetBound create(Scope scope, Operand input, Operand bound) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "XlaSetBound"); - opBuilder.addInput(input.asOutput()); - opBuilder.addInput(bound.asOutput()); - return new XlaSetBound(opBuilder.build()); - } - - /** - * Gets output. - * - * @return output. - */ - public Output output() { - return output; - } - - @Override - public Output asOutput() { - return output; - } - - @OpInputsMetadata( - outputsClass = XlaSetBound.class - ) - public static class Inputs extends RawOpInputs { - /** - * The input input - */ - public final Operand input; - - /** - * The bound input - */ - public final Operand bound; - - public Inputs(GraphOperation op) { - super(new XlaSetBound(op), op, Arrays.asList()); - int inputIndex = 0; - input = (Operand) op.input(inputIndex++); - bound = (Operand) op.input(inputIndex++); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaVariadicReduce.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaVariadicReduce.java deleted file mode 100644 index df5d628866c..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaVariadicReduce.java +++ /dev/null @@ -1,150 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import java.util.Iterator; -import java.util.List; -import org.tensorflow.ConcreteFunction; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.Operands; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.family.TType; - -/** - * Wraps the variadic XLA Reduce operator. - * Semantics are documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#variadic_reduce. - *

This is an expanded version of XlaVariadicReduce, with support for - * operands of different dtypes, and improved shape inference. - */ -@OpMetadata( - opType = XlaVariadicReduce.OP_NAME, - inputsClass = XlaVariadicReduce.Inputs.class -) -@Operator( - group = "xla" -) -public final class XlaVariadicReduce extends RawOp implements Iterable> { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaVariadicReduceV2"; - - private List> outputs; - - @SuppressWarnings("unchecked") - public XlaVariadicReduce(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - int outputsLength = operation.outputListLength("outputs"); - outputs = Arrays.asList(operation.outputList(outputIdx, outputsLength)); - outputIdx += outputsLength; - } - - /** - * Factory method to create a class wrapping a new XlaVariadicReduceV2 operation. - * - * @param scope current scope - * @param inputs the input tensor(s) - * @param initValues scalar initial value(s) for the reduction - * @param dimensionsToReduce dimension numbers over which to reduce - * @param reducer a reducer function to apply - * @return a new instance of XlaVariadicReduce - */ - @Endpoint( - describeByClass = true - ) - public static XlaVariadicReduce create(Scope scope, Iterable> inputs, - Iterable> initValues, List dimensionsToReduce, ConcreteFunction reducer) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "XlaVariadicReduce"); - opBuilder.addInputList(Operands.asOutputs(inputs)); - opBuilder.addInputList(Operands.asOutputs(initValues)); - long[] dimensionsToReduceArray = new long[dimensionsToReduce.size()]; - for (int i = 0 ; i < dimensionsToReduceArray.length ; i++) { - dimensionsToReduceArray[i] = dimensionsToReduce.get(i); - } - opBuilder.setAttr("dimensions_to_reduce", dimensionsToReduceArray); - opBuilder.setAttr("reducer", reducer); - return new XlaVariadicReduce(opBuilder.build()); - } - - /** - * Gets outputs. - * - * @return outputs. - */ - public List> outputs() { - return outputs; - } - - @Override - @SuppressWarnings({"rawtypes", "unchecked"}) - public Iterator> iterator() { - return (Iterator) outputs.iterator(); - } - - @OpInputsMetadata( - outputsClass = XlaVariadicReduce.class - ) - public static class Inputs extends RawOpInputs { - /** - * the input tensor(s) - */ - public final Iterable> inputs; - - /** - * scalar initial value(s) for the reduction - */ - public final Iterable> initValues; - - /** - * The T attribute - */ - public final DataType[] T; - - /** - * dimension numbers over which to reduce - */ - public final long[] dimensionsToReduce; - - public Inputs(GraphOperation op) { - super(new XlaVariadicReduce(op), op, Arrays.asList("T", "dimensions_to_reduce")); - int inputIndex = 0; - int inputsLength = op.inputListLength("inputs"); - inputs = Arrays.asList((Operand[]) op.inputList(inputIndex, inputsLength)); - inputIndex += inputsLength; - int initValuesLength = op.inputListLength("init_values"); - initValues = Arrays.asList((Operand[]) op.inputList(inputIndex, initValuesLength)); - inputIndex += initValuesLength; - T = op.attributes().getAttrTypeList("T"); - dimensionsToReduce = op.attributes().getAttrIntList("dimensions_to_reduce"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaVariadicSort.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaVariadicSort.java deleted file mode 100644 index 98b092249ad..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/xla/XlaVariadicSort.java +++ /dev/null @@ -1,147 +0,0 @@ -/* Copyright 2018-2022 The TensorFlow Authors. All Rights Reserved. - -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 - - http://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. -=======================================================================*/ - -// This class has been generated, DO NOT EDIT! - -package org.tensorflow.op.xla; - -import java.util.Arrays; -import java.util.Iterator; -import java.util.List; -import org.tensorflow.ConcreteFunction; -import org.tensorflow.GraphOperation; -import org.tensorflow.Operand; -import org.tensorflow.Operation; -import org.tensorflow.OperationBuilder; -import org.tensorflow.Output; -import org.tensorflow.op.Operands; -import org.tensorflow.op.RawOp; -import org.tensorflow.op.RawOpInputs; -import org.tensorflow.op.Scope; -import org.tensorflow.op.annotation.Endpoint; -import org.tensorflow.op.annotation.OpInputsMetadata; -import org.tensorflow.op.annotation.OpMetadata; -import org.tensorflow.op.annotation.Operator; -import org.tensorflow.proto.framework.DataType; -import org.tensorflow.types.TInt32; -import org.tensorflow.types.family.TType; - -/** - * Wraps the XLA Sort operator, documented at - * https://www.tensorflow.org/performance/xla/operation_semantics#sort - * . - *

Sorts one or more tensors, with support for custom comparator, dimension, and - * is_stable attributes. - */ -@OpMetadata( - opType = XlaVariadicSort.OP_NAME, - inputsClass = XlaVariadicSort.Inputs.class -) -@Operator( - group = "xla" -) -public final class XlaVariadicSort extends RawOp implements Iterable> { - /** - * The name of this op, as known by TensorFlow core engine - */ - public static final String OP_NAME = "XlaVariadicSort"; - - private List> outputs; - - @SuppressWarnings("unchecked") - public XlaVariadicSort(Operation operation) { - super(operation, OP_NAME); - int outputIdx = 0; - int outputsLength = operation.outputListLength("outputs"); - outputs = Arrays.asList(operation.outputList(outputIdx, outputsLength)); - outputIdx += outputsLength; - } - - /** - * Factory method to create a class wrapping a new XlaVariadicSort operation. - * - * @param scope current scope - * @param inputs A list of {@code Tensor} of identical shape but possibly different types. - * @param dimension The dimension along which to sort. Must be a compile-time constant. - * @param comparator A comparator function to apply to 2*N scalars and returning a - * boolean. N is the number of sort inputs. If you want to sort in ascending - * order then the comparator should perform a less-than comparison. - * @param isStable Whether to use stable sort. - * @return a new instance of XlaVariadicSort - */ - @Endpoint( - describeByClass = true - ) - public static XlaVariadicSort create(Scope scope, Iterable> inputs, - Operand dimension, ConcreteFunction comparator, Boolean isStable) { - OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "XlaVariadicSort"); - opBuilder.addInputList(Operands.asOutputs(inputs)); - opBuilder.addInput(dimension.asOutput()); - opBuilder.setAttr("comparator", comparator); - opBuilder.setAttr("is_stable", isStable); - return new XlaVariadicSort(opBuilder.build()); - } - - /** - * Gets outputs. - * A list of {@code Tensor} of same shape and types as the {@code input}. - * @return outputs. - */ - public List> outputs() { - return outputs; - } - - @Override - @SuppressWarnings({"rawtypes", "unchecked"}) - public Iterator> iterator() { - return (Iterator) outputs.iterator(); - } - - @OpInputsMetadata( - outputsClass = XlaVariadicSort.class - ) - public static class Inputs extends RawOpInputs { - /** - * A list of {@code Tensor} of identical shape but possibly different types. - */ - public final Iterable> inputs; - - /** - * The dimension along which to sort. Must be a compile-time constant. - */ - public final Operand dimension; - - /** - * The T attribute - */ - public final DataType[] T; - - /** - * Whether to use stable sort. - */ - public final boolean isStable; - - public Inputs(GraphOperation op) { - super(new XlaVariadicSort(op), op, Arrays.asList("T", "is_stable")); - int inputIndex = 0; - int inputsLength = op.inputListLength("inputs"); - inputs = Arrays.asList((Operand[]) op.inputList(inputIndex, inputsLength)); - inputIndex += inputsLength; - dimension = (Operand) op.input(inputIndex++); - T = op.attributes().getAttrTypeList("T"); - isStable = op.attributes().getAttrBool("is_stable"); - } - } -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/AutoShardPolicy.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/AutoShardPolicy.java deleted file mode 100644 index a45271b08eb..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/AutoShardPolicy.java +++ /dev/null @@ -1,188 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/dataset_options.proto - -package org.tensorflow.proto.data; - -/** - *

- * Represents the type of auto-sharding we enable.
- * 
- * - * Protobuf enum {@code tensorflow.data.AutoShardPolicy} - */ -public enum AutoShardPolicy - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * AUTO: Attempts FILE-based sharding, falling back to DATA-based sharding.
-   * 
- * - * AUTO = 0; - */ - AUTO(0), - /** - *
-   * FILE: Shards by input files (i.e. each worker will get a set of files to
-   * process). When this option is selected, make sure that there is at least as
-   * many files as workers. If there are fewer input files than workers, a
-   * runtime error will be raised.
-   * 
- * - * FILE = 1; - */ - FILE(1), - /** - *
-   * DATA: Shards by elements produced by the dataset. Each worker will process
-   * the whole dataset and discard the portion that is not for itself. Note that
-   * for this mode to correctly partitions the dataset elements, the dataset
-   * needs to produce elements in a deterministic order.
-   * 
- * - * DATA = 2; - */ - DATA(2), - /** - *
-   * HINT: Looks for the presence of `shard(SHARD_HINT, ...)` which is treated
-   * as a placeholder to replace with `shard(num_workers, worker_index)`.
-   * 
- * - * HINT = 3; - */ - HINT(3), - /** - *
-   * OFF: No sharding will be performed.
-   * 
- * - * OFF = -1; - */ - OFF(-1), - UNRECOGNIZED(-1), - ; - - /** - *
-   * AUTO: Attempts FILE-based sharding, falling back to DATA-based sharding.
-   * 
- * - * AUTO = 0; - */ - public static final int AUTO_VALUE = 0; - /** - *
-   * FILE: Shards by input files (i.e. each worker will get a set of files to
-   * process). When this option is selected, make sure that there is at least as
-   * many files as workers. If there are fewer input files than workers, a
-   * runtime error will be raised.
-   * 
- * - * FILE = 1; - */ - public static final int FILE_VALUE = 1; - /** - *
-   * DATA: Shards by elements produced by the dataset. Each worker will process
-   * the whole dataset and discard the portion that is not for itself. Note that
-   * for this mode to correctly partitions the dataset elements, the dataset
-   * needs to produce elements in a deterministic order.
-   * 
- * - * DATA = 2; - */ - public static final int DATA_VALUE = 2; - /** - *
-   * HINT: Looks for the presence of `shard(SHARD_HINT, ...)` which is treated
-   * as a placeholder to replace with `shard(num_workers, worker_index)`.
-   * 
- * - * HINT = 3; - */ - public static final int HINT_VALUE = 3; - /** - *
-   * OFF: No sharding will be performed.
-   * 
- * - * OFF = -1; - */ - public static final int OFF_VALUE = -1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AutoShardPolicy valueOf(int value) { - return forNumber(value); - } - - public static AutoShardPolicy forNumber(int value) { - switch (value) { - case 0: return AUTO; - case 1: return FILE; - case 2: return DATA; - case 3: return HINT; - case -1: return OFF; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - AutoShardPolicy> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AutoShardPolicy findValueByNumber(int number) { - return AutoShardPolicy.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 org.tensorflow.proto.data.DatasetOptionsProtos.getDescriptor().getEnumTypes().get(0); - } - - private static final AutoShardPolicy[] VALUES = values(); - - public static AutoShardPolicy 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 AutoShardPolicy(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:tensorflow.data.AutoShardPolicy) -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/AutotuneOptions.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/AutotuneOptions.java deleted file mode 100644 index 159bc6d64d3..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/AutotuneOptions.java +++ /dev/null @@ -1,1016 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/dataset_options.proto - -package org.tensorflow.proto.data; - -/** - *
- * next: 5
- * 
- * - * Protobuf type {@code tensorflow.data.AutotuneOptions} - */ -public final class AutotuneOptions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.data.AutotuneOptions) - AutotuneOptionsOrBuilder { -private static final long serialVersionUID = 0L; - // Use AutotuneOptions.newBuilder() to construct. - private AutotuneOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AutotuneOptions() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AutotuneOptions(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AutotuneOptions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - optionalEnabledCase_ = 1; - optionalEnabled_ = input.readBool(); - break; - } - case 16: { - optionalCpuBudgetCase_ = 2; - optionalCpuBudget_ = input.readInt32(); - break; - } - case 24: { - optionalRamBudgetCase_ = 3; - optionalRamBudget_ = input.readInt64(); - break; - } - case 32: { - int rawValue = input.readEnum(); - optionalAutotuneAlgorithmCase_ = 4; - optionalAutotuneAlgorithm_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_AutotuneOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_AutotuneOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.AutotuneOptions.class, org.tensorflow.proto.data.AutotuneOptions.Builder.class); - } - - private int optionalEnabledCase_ = 0; - private java.lang.Object optionalEnabled_; - public enum OptionalEnabledCase - implements com.google.protobuf.Internal.EnumLite { - ENABLED(1), - OPTIONALENABLED_NOT_SET(0); - private final int value; - private OptionalEnabledCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionalEnabledCase valueOf(int value) { - return forNumber(value); - } - - public static OptionalEnabledCase forNumber(int value) { - switch (value) { - case 1: return ENABLED; - case 0: return OPTIONALENABLED_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionalEnabledCase - getOptionalEnabledCase() { - return OptionalEnabledCase.forNumber( - optionalEnabledCase_); - } - - private int optionalCpuBudgetCase_ = 0; - private java.lang.Object optionalCpuBudget_; - public enum OptionalCpuBudgetCase - implements com.google.protobuf.Internal.EnumLite { - CPU_BUDGET(2), - OPTIONALCPUBUDGET_NOT_SET(0); - private final int value; - private OptionalCpuBudgetCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionalCpuBudgetCase valueOf(int value) { - return forNumber(value); - } - - public static OptionalCpuBudgetCase forNumber(int value) { - switch (value) { - case 2: return CPU_BUDGET; - case 0: return OPTIONALCPUBUDGET_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionalCpuBudgetCase - getOptionalCpuBudgetCase() { - return OptionalCpuBudgetCase.forNumber( - optionalCpuBudgetCase_); - } - - private int optionalRamBudgetCase_ = 0; - private java.lang.Object optionalRamBudget_; - public enum OptionalRamBudgetCase - implements com.google.protobuf.Internal.EnumLite { - RAM_BUDGET(3), - OPTIONALRAMBUDGET_NOT_SET(0); - private final int value; - private OptionalRamBudgetCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionalRamBudgetCase valueOf(int value) { - return forNumber(value); - } - - public static OptionalRamBudgetCase forNumber(int value) { - switch (value) { - case 3: return RAM_BUDGET; - case 0: return OPTIONALRAMBUDGET_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionalRamBudgetCase - getOptionalRamBudgetCase() { - return OptionalRamBudgetCase.forNumber( - optionalRamBudgetCase_); - } - - private int optionalAutotuneAlgorithmCase_ = 0; - private java.lang.Object optionalAutotuneAlgorithm_; - public enum OptionalAutotuneAlgorithmCase - implements com.google.protobuf.Internal.EnumLite { - AUTOTUNE_ALGORITHM(4), - OPTIONALAUTOTUNEALGORITHM_NOT_SET(0); - private final int value; - private OptionalAutotuneAlgorithmCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionalAutotuneAlgorithmCase valueOf(int value) { - return forNumber(value); - } - - public static OptionalAutotuneAlgorithmCase forNumber(int value) { - switch (value) { - case 4: return AUTOTUNE_ALGORITHM; - case 0: return OPTIONALAUTOTUNEALGORITHM_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionalAutotuneAlgorithmCase - getOptionalAutotuneAlgorithmCase() { - return OptionalAutotuneAlgorithmCase.forNumber( - optionalAutotuneAlgorithmCase_); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - /** - * bool enabled = 1; - */ - public boolean getEnabled() { - if (optionalEnabledCase_ == 1) { - return (java.lang.Boolean) optionalEnabled_; - } - return false; - } - - public static final int CPU_BUDGET_FIELD_NUMBER = 2; - /** - * int32 cpu_budget = 2; - */ - public int getCpuBudget() { - if (optionalCpuBudgetCase_ == 2) { - return (java.lang.Integer) optionalCpuBudget_; - } - return 0; - } - - public static final int RAM_BUDGET_FIELD_NUMBER = 3; - /** - * int64 ram_budget = 3; - */ - public long getRamBudget() { - if (optionalRamBudgetCase_ == 3) { - return (java.lang.Long) optionalRamBudget_; - } - return 0L; - } - - public static final int AUTOTUNE_ALGORITHM_FIELD_NUMBER = 4; - /** - * .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; - */ - public int getAutotuneAlgorithmValue() { - if (optionalAutotuneAlgorithmCase_ == 4) { - return (java.lang.Integer) optionalAutotuneAlgorithm_; - } - return 0; - } - /** - * .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; - */ - public org.tensorflow.proto.data.model.AutotuneAlgorithm getAutotuneAlgorithm() { - if (optionalAutotuneAlgorithmCase_ == 4) { - @SuppressWarnings("deprecation") - org.tensorflow.proto.data.model.AutotuneAlgorithm result = org.tensorflow.proto.data.model.AutotuneAlgorithm.valueOf( - (java.lang.Integer) optionalAutotuneAlgorithm_); - return result == null ? org.tensorflow.proto.data.model.AutotuneAlgorithm.UNRECOGNIZED : result; - } - return org.tensorflow.proto.data.model.AutotuneAlgorithm.DEFAULT; - } - - 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 (optionalEnabledCase_ == 1) { - output.writeBool( - 1, (boolean)((java.lang.Boolean) optionalEnabled_)); - } - if (optionalCpuBudgetCase_ == 2) { - output.writeInt32( - 2, (int)((java.lang.Integer) optionalCpuBudget_)); - } - if (optionalRamBudgetCase_ == 3) { - output.writeInt64( - 3, (long)((java.lang.Long) optionalRamBudget_)); - } - if (optionalAutotuneAlgorithmCase_ == 4) { - output.writeEnum(4, ((java.lang.Integer) optionalAutotuneAlgorithm_)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (optionalEnabledCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 1, (boolean)((java.lang.Boolean) optionalEnabled_)); - } - if (optionalCpuBudgetCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 2, (int)((java.lang.Integer) optionalCpuBudget_)); - } - if (optionalRamBudgetCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 3, (long)((java.lang.Long) optionalRamBudget_)); - } - if (optionalAutotuneAlgorithmCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, ((java.lang.Integer) optionalAutotuneAlgorithm_)); - } - 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 org.tensorflow.proto.data.AutotuneOptions)) { - return super.equals(obj); - } - org.tensorflow.proto.data.AutotuneOptions other = (org.tensorflow.proto.data.AutotuneOptions) obj; - - if (!getOptionalEnabledCase().equals(other.getOptionalEnabledCase())) return false; - switch (optionalEnabledCase_) { - case 1: - if (getEnabled() - != other.getEnabled()) return false; - break; - case 0: - default: - } - if (!getOptionalCpuBudgetCase().equals(other.getOptionalCpuBudgetCase())) return false; - switch (optionalCpuBudgetCase_) { - case 2: - if (getCpuBudget() - != other.getCpuBudget()) return false; - break; - case 0: - default: - } - if (!getOptionalRamBudgetCase().equals(other.getOptionalRamBudgetCase())) return false; - switch (optionalRamBudgetCase_) { - case 3: - if (getRamBudget() - != other.getRamBudget()) return false; - break; - case 0: - default: - } - if (!getOptionalAutotuneAlgorithmCase().equals(other.getOptionalAutotuneAlgorithmCase())) return false; - switch (optionalAutotuneAlgorithmCase_) { - case 4: - if (getAutotuneAlgorithmValue() - != other.getAutotuneAlgorithmValue()) return false; - break; - case 0: - default: - } - 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(); - switch (optionalEnabledCase_) { - case 1: - hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnabled()); - break; - case 0: - default: - } - switch (optionalCpuBudgetCase_) { - case 2: - hash = (37 * hash) + CPU_BUDGET_FIELD_NUMBER; - hash = (53 * hash) + getCpuBudget(); - break; - case 0: - default: - } - switch (optionalRamBudgetCase_) { - case 3: - hash = (37 * hash) + RAM_BUDGET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRamBudget()); - break; - case 0: - default: - } - switch (optionalAutotuneAlgorithmCase_) { - case 4: - hash = (37 * hash) + AUTOTUNE_ALGORITHM_FIELD_NUMBER; - hash = (53 * hash) + getAutotuneAlgorithmValue(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.data.AutotuneOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.AutotuneOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.AutotuneOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.AutotuneOptions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.AutotuneOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.AutotuneOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.AutotuneOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.AutotuneOptions 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 org.tensorflow.proto.data.AutotuneOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.AutotuneOptions 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 org.tensorflow.proto.data.AutotuneOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.AutotuneOptions 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(org.tensorflow.proto.data.AutotuneOptions 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; - } - /** - *
-   * next: 5
-   * 
- * - * Protobuf type {@code tensorflow.data.AutotuneOptions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.data.AutotuneOptions) - org.tensorflow.proto.data.AutotuneOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_AutotuneOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_AutotuneOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.AutotuneOptions.class, org.tensorflow.proto.data.AutotuneOptions.Builder.class); - } - - // Construct using org.tensorflow.proto.data.AutotuneOptions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - optionalEnabledCase_ = 0; - optionalEnabled_ = null; - optionalCpuBudgetCase_ = 0; - optionalCpuBudget_ = null; - optionalRamBudgetCase_ = 0; - optionalRamBudget_ = null; - optionalAutotuneAlgorithmCase_ = 0; - optionalAutotuneAlgorithm_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_AutotuneOptions_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.data.AutotuneOptions getDefaultInstanceForType() { - return org.tensorflow.proto.data.AutotuneOptions.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.data.AutotuneOptions build() { - org.tensorflow.proto.data.AutotuneOptions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.data.AutotuneOptions buildPartial() { - org.tensorflow.proto.data.AutotuneOptions result = new org.tensorflow.proto.data.AutotuneOptions(this); - if (optionalEnabledCase_ == 1) { - result.optionalEnabled_ = optionalEnabled_; - } - if (optionalCpuBudgetCase_ == 2) { - result.optionalCpuBudget_ = optionalCpuBudget_; - } - if (optionalRamBudgetCase_ == 3) { - result.optionalRamBudget_ = optionalRamBudget_; - } - if (optionalAutotuneAlgorithmCase_ == 4) { - result.optionalAutotuneAlgorithm_ = optionalAutotuneAlgorithm_; - } - result.optionalEnabledCase_ = optionalEnabledCase_; - result.optionalCpuBudgetCase_ = optionalCpuBudgetCase_; - result.optionalRamBudgetCase_ = optionalRamBudgetCase_; - result.optionalAutotuneAlgorithmCase_ = optionalAutotuneAlgorithmCase_; - 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 org.tensorflow.proto.data.AutotuneOptions) { - return mergeFrom((org.tensorflow.proto.data.AutotuneOptions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.data.AutotuneOptions other) { - if (other == org.tensorflow.proto.data.AutotuneOptions.getDefaultInstance()) return this; - switch (other.getOptionalEnabledCase()) { - case ENABLED: { - setEnabled(other.getEnabled()); - break; - } - case OPTIONALENABLED_NOT_SET: { - break; - } - } - switch (other.getOptionalCpuBudgetCase()) { - case CPU_BUDGET: { - setCpuBudget(other.getCpuBudget()); - break; - } - case OPTIONALCPUBUDGET_NOT_SET: { - break; - } - } - switch (other.getOptionalRamBudgetCase()) { - case RAM_BUDGET: { - setRamBudget(other.getRamBudget()); - break; - } - case OPTIONALRAMBUDGET_NOT_SET: { - break; - } - } - switch (other.getOptionalAutotuneAlgorithmCase()) { - case AUTOTUNE_ALGORITHM: { - setAutotuneAlgorithmValue(other.getAutotuneAlgorithmValue()); - break; - } - case OPTIONALAUTOTUNEALGORITHM_NOT_SET: { - break; - } - } - 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 { - org.tensorflow.proto.data.AutotuneOptions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.data.AutotuneOptions) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int optionalEnabledCase_ = 0; - private java.lang.Object optionalEnabled_; - public OptionalEnabledCase - getOptionalEnabledCase() { - return OptionalEnabledCase.forNumber( - optionalEnabledCase_); - } - - public Builder clearOptionalEnabled() { - optionalEnabledCase_ = 0; - optionalEnabled_ = null; - onChanged(); - return this; - } - - private int optionalCpuBudgetCase_ = 0; - private java.lang.Object optionalCpuBudget_; - public OptionalCpuBudgetCase - getOptionalCpuBudgetCase() { - return OptionalCpuBudgetCase.forNumber( - optionalCpuBudgetCase_); - } - - public Builder clearOptionalCpuBudget() { - optionalCpuBudgetCase_ = 0; - optionalCpuBudget_ = null; - onChanged(); - return this; - } - - private int optionalRamBudgetCase_ = 0; - private java.lang.Object optionalRamBudget_; - public OptionalRamBudgetCase - getOptionalRamBudgetCase() { - return OptionalRamBudgetCase.forNumber( - optionalRamBudgetCase_); - } - - public Builder clearOptionalRamBudget() { - optionalRamBudgetCase_ = 0; - optionalRamBudget_ = null; - onChanged(); - return this; - } - - private int optionalAutotuneAlgorithmCase_ = 0; - private java.lang.Object optionalAutotuneAlgorithm_; - public OptionalAutotuneAlgorithmCase - getOptionalAutotuneAlgorithmCase() { - return OptionalAutotuneAlgorithmCase.forNumber( - optionalAutotuneAlgorithmCase_); - } - - public Builder clearOptionalAutotuneAlgorithm() { - optionalAutotuneAlgorithmCase_ = 0; - optionalAutotuneAlgorithm_ = null; - onChanged(); - return this; - } - - - /** - * bool enabled = 1; - */ - public boolean getEnabled() { - if (optionalEnabledCase_ == 1) { - return (java.lang.Boolean) optionalEnabled_; - } - return false; - } - /** - * bool enabled = 1; - */ - public Builder setEnabled(boolean value) { - optionalEnabledCase_ = 1; - optionalEnabled_ = value; - onChanged(); - return this; - } - /** - * bool enabled = 1; - */ - public Builder clearEnabled() { - if (optionalEnabledCase_ == 1) { - optionalEnabledCase_ = 0; - optionalEnabled_ = null; - onChanged(); - } - return this; - } - - /** - * int32 cpu_budget = 2; - */ - public int getCpuBudget() { - if (optionalCpuBudgetCase_ == 2) { - return (java.lang.Integer) optionalCpuBudget_; - } - return 0; - } - /** - * int32 cpu_budget = 2; - */ - public Builder setCpuBudget(int value) { - optionalCpuBudgetCase_ = 2; - optionalCpuBudget_ = value; - onChanged(); - return this; - } - /** - * int32 cpu_budget = 2; - */ - public Builder clearCpuBudget() { - if (optionalCpuBudgetCase_ == 2) { - optionalCpuBudgetCase_ = 0; - optionalCpuBudget_ = null; - onChanged(); - } - return this; - } - - /** - * int64 ram_budget = 3; - */ - public long getRamBudget() { - if (optionalRamBudgetCase_ == 3) { - return (java.lang.Long) optionalRamBudget_; - } - return 0L; - } - /** - * int64 ram_budget = 3; - */ - public Builder setRamBudget(long value) { - optionalRamBudgetCase_ = 3; - optionalRamBudget_ = value; - onChanged(); - return this; - } - /** - * int64 ram_budget = 3; - */ - public Builder clearRamBudget() { - if (optionalRamBudgetCase_ == 3) { - optionalRamBudgetCase_ = 0; - optionalRamBudget_ = null; - onChanged(); - } - return this; - } - - /** - * .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; - */ - public int getAutotuneAlgorithmValue() { - if (optionalAutotuneAlgorithmCase_ == 4) { - return ((java.lang.Integer) optionalAutotuneAlgorithm_).intValue(); - } - return 0; - } - /** - * .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; - */ - public Builder setAutotuneAlgorithmValue(int value) { - optionalAutotuneAlgorithmCase_ = 4; - optionalAutotuneAlgorithm_ = value; - onChanged(); - return this; - } - /** - * .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; - */ - public org.tensorflow.proto.data.model.AutotuneAlgorithm getAutotuneAlgorithm() { - if (optionalAutotuneAlgorithmCase_ == 4) { - @SuppressWarnings("deprecation") - org.tensorflow.proto.data.model.AutotuneAlgorithm result = org.tensorflow.proto.data.model.AutotuneAlgorithm.valueOf( - (java.lang.Integer) optionalAutotuneAlgorithm_); - return result == null ? org.tensorflow.proto.data.model.AutotuneAlgorithm.UNRECOGNIZED : result; - } - return org.tensorflow.proto.data.model.AutotuneAlgorithm.DEFAULT; - } - /** - * .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; - */ - public Builder setAutotuneAlgorithm(org.tensorflow.proto.data.model.AutotuneAlgorithm value) { - if (value == null) { - throw new NullPointerException(); - } - optionalAutotuneAlgorithmCase_ = 4; - optionalAutotuneAlgorithm_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; - */ - public Builder clearAutotuneAlgorithm() { - if (optionalAutotuneAlgorithmCase_ == 4) { - optionalAutotuneAlgorithmCase_ = 0; - optionalAutotuneAlgorithm_ = null; - 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:tensorflow.data.AutotuneOptions) - } - - // @@protoc_insertion_point(class_scope:tensorflow.data.AutotuneOptions) - private static final org.tensorflow.proto.data.AutotuneOptions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.data.AutotuneOptions(); - } - - public static org.tensorflow.proto.data.AutotuneOptions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutotuneOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AutotuneOptions(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.data.AutotuneOptions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/AutotuneOptionsOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/AutotuneOptionsOrBuilder.java deleted file mode 100644 index 0346bcf57a1..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/AutotuneOptionsOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/dataset_options.proto - -package org.tensorflow.proto.data; - -public interface AutotuneOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.data.AutotuneOptions) - com.google.protobuf.MessageOrBuilder { - - /** - * bool enabled = 1; - */ - boolean getEnabled(); - - /** - * int32 cpu_budget = 2; - */ - int getCpuBudget(); - - /** - * int64 ram_budget = 3; - */ - long getRamBudget(); - - /** - * .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; - */ - int getAutotuneAlgorithmValue(); - /** - * .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; - */ - org.tensorflow.proto.data.model.AutotuneAlgorithm getAutotuneAlgorithm(); - - public org.tensorflow.proto.data.AutotuneOptions.OptionalEnabledCase getOptionalEnabledCase(); - - public org.tensorflow.proto.data.AutotuneOptions.OptionalCpuBudgetCase getOptionalCpuBudgetCase(); - - public org.tensorflow.proto.data.AutotuneOptions.OptionalRamBudgetCase getOptionalRamBudgetCase(); - - public org.tensorflow.proto.data.AutotuneOptions.OptionalAutotuneAlgorithmCase getOptionalAutotuneAlgorithmCase(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/CardinalityOptions.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/CardinalityOptions.java deleted file mode 100644 index 811a53d1182..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/CardinalityOptions.java +++ /dev/null @@ -1,645 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/dataset_options.proto - -package org.tensorflow.proto.data; - -/** - *
- * next: 2
- * 
- * - * Protobuf type {@code tensorflow.data.CardinalityOptions} - */ -public final class CardinalityOptions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.data.CardinalityOptions) - CardinalityOptionsOrBuilder { -private static final long serialVersionUID = 0L; - // Use CardinalityOptions.newBuilder() to construct. - private CardinalityOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CardinalityOptions() { - computeLevel_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CardinalityOptions(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CardinalityOptions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - computeLevel_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_CardinalityOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_CardinalityOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.CardinalityOptions.class, org.tensorflow.proto.data.CardinalityOptions.Builder.class); - } - - /** - * Protobuf enum {@code tensorflow.data.CardinalityOptions.ComputeLevel} - */ - public enum ComputeLevel - implements com.google.protobuf.ProtocolMessageEnum { - /** - * CARDINALITY_COMPUTE_UNSPECIFIED = 0; - */ - CARDINALITY_COMPUTE_UNSPECIFIED(0), - /** - *
-     * Cardinality will only be computed if it can be determined in a cheap
-     * manner (ie. without reading from file sources). If the cardinality would
-     * be nontrivial to compute, Cardinality() will return UNKNOWN_CARDINALITY.
-     * 
- * - * CARDINALITY_COMPUTE_LOW = 1; - */ - CARDINALITY_COMPUTE_LOW(1), - /** - *
-     * Moderate effort will be made to determine cardinality, such as reading
-     * index data from source files. If significant work is needed to compute
-     * cardinality (e.g. reading entire source file contents or executing user
-     * defined functions), Cardinality() will return UNKNOWN_CARDINALITY.
-     * 
- * - * CARDINALITY_COMPUTE_MODERATE = 2; - */ - CARDINALITY_COMPUTE_MODERATE(2), - UNRECOGNIZED(-1), - ; - - /** - * CARDINALITY_COMPUTE_UNSPECIFIED = 0; - */ - public static final int CARDINALITY_COMPUTE_UNSPECIFIED_VALUE = 0; - /** - *
-     * Cardinality will only be computed if it can be determined in a cheap
-     * manner (ie. without reading from file sources). If the cardinality would
-     * be nontrivial to compute, Cardinality() will return UNKNOWN_CARDINALITY.
-     * 
- * - * CARDINALITY_COMPUTE_LOW = 1; - */ - public static final int CARDINALITY_COMPUTE_LOW_VALUE = 1; - /** - *
-     * Moderate effort will be made to determine cardinality, such as reading
-     * index data from source files. If significant work is needed to compute
-     * cardinality (e.g. reading entire source file contents or executing user
-     * defined functions), Cardinality() will return UNKNOWN_CARDINALITY.
-     * 
- * - * CARDINALITY_COMPUTE_MODERATE = 2; - */ - public static final int CARDINALITY_COMPUTE_MODERATE_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ComputeLevel valueOf(int value) { - return forNumber(value); - } - - public static ComputeLevel forNumber(int value) { - switch (value) { - case 0: return CARDINALITY_COMPUTE_UNSPECIFIED; - case 1: return CARDINALITY_COMPUTE_LOW; - case 2: return CARDINALITY_COMPUTE_MODERATE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ComputeLevel> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ComputeLevel findValueByNumber(int number) { - return ComputeLevel.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 org.tensorflow.proto.data.CardinalityOptions.getDescriptor().getEnumTypes().get(0); - } - - private static final ComputeLevel[] VALUES = values(); - - public static ComputeLevel 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 ComputeLevel(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:tensorflow.data.CardinalityOptions.ComputeLevel) - } - - public static final int COMPUTE_LEVEL_FIELD_NUMBER = 1; - private int computeLevel_; - /** - * .tensorflow.data.CardinalityOptions.ComputeLevel compute_level = 1; - */ - public int getComputeLevelValue() { - return computeLevel_; - } - /** - * .tensorflow.data.CardinalityOptions.ComputeLevel compute_level = 1; - */ - public org.tensorflow.proto.data.CardinalityOptions.ComputeLevel getComputeLevel() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.data.CardinalityOptions.ComputeLevel result = org.tensorflow.proto.data.CardinalityOptions.ComputeLevel.valueOf(computeLevel_); - return result == null ? org.tensorflow.proto.data.CardinalityOptions.ComputeLevel.UNRECOGNIZED : result; - } - - 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 (computeLevel_ != org.tensorflow.proto.data.CardinalityOptions.ComputeLevel.CARDINALITY_COMPUTE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, computeLevel_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (computeLevel_ != org.tensorflow.proto.data.CardinalityOptions.ComputeLevel.CARDINALITY_COMPUTE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, computeLevel_); - } - 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 org.tensorflow.proto.data.CardinalityOptions)) { - return super.equals(obj); - } - org.tensorflow.proto.data.CardinalityOptions other = (org.tensorflow.proto.data.CardinalityOptions) obj; - - if (computeLevel_ != other.computeLevel_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COMPUTE_LEVEL_FIELD_NUMBER; - hash = (53 * hash) + computeLevel_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.data.CardinalityOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.CardinalityOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.CardinalityOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.CardinalityOptions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.CardinalityOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.CardinalityOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.CardinalityOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.CardinalityOptions 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 org.tensorflow.proto.data.CardinalityOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.CardinalityOptions 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 org.tensorflow.proto.data.CardinalityOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.CardinalityOptions 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(org.tensorflow.proto.data.CardinalityOptions 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; - } - /** - *
-   * next: 2
-   * 
- * - * Protobuf type {@code tensorflow.data.CardinalityOptions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.data.CardinalityOptions) - org.tensorflow.proto.data.CardinalityOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_CardinalityOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_CardinalityOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.CardinalityOptions.class, org.tensorflow.proto.data.CardinalityOptions.Builder.class); - } - - // Construct using org.tensorflow.proto.data.CardinalityOptions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - computeLevel_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_CardinalityOptions_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.data.CardinalityOptions getDefaultInstanceForType() { - return org.tensorflow.proto.data.CardinalityOptions.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.data.CardinalityOptions build() { - org.tensorflow.proto.data.CardinalityOptions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.data.CardinalityOptions buildPartial() { - org.tensorflow.proto.data.CardinalityOptions result = new org.tensorflow.proto.data.CardinalityOptions(this); - result.computeLevel_ = computeLevel_; - 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 org.tensorflow.proto.data.CardinalityOptions) { - return mergeFrom((org.tensorflow.proto.data.CardinalityOptions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.data.CardinalityOptions other) { - if (other == org.tensorflow.proto.data.CardinalityOptions.getDefaultInstance()) return this; - if (other.computeLevel_ != 0) { - setComputeLevelValue(other.getComputeLevelValue()); - } - 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 { - org.tensorflow.proto.data.CardinalityOptions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.data.CardinalityOptions) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int computeLevel_ = 0; - /** - * .tensorflow.data.CardinalityOptions.ComputeLevel compute_level = 1; - */ - public int getComputeLevelValue() { - return computeLevel_; - } - /** - * .tensorflow.data.CardinalityOptions.ComputeLevel compute_level = 1; - */ - public Builder setComputeLevelValue(int value) { - computeLevel_ = value; - onChanged(); - return this; - } - /** - * .tensorflow.data.CardinalityOptions.ComputeLevel compute_level = 1; - */ - public org.tensorflow.proto.data.CardinalityOptions.ComputeLevel getComputeLevel() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.data.CardinalityOptions.ComputeLevel result = org.tensorflow.proto.data.CardinalityOptions.ComputeLevel.valueOf(computeLevel_); - return result == null ? org.tensorflow.proto.data.CardinalityOptions.ComputeLevel.UNRECOGNIZED : result; - } - /** - * .tensorflow.data.CardinalityOptions.ComputeLevel compute_level = 1; - */ - public Builder setComputeLevel(org.tensorflow.proto.data.CardinalityOptions.ComputeLevel value) { - if (value == null) { - throw new NullPointerException(); - } - - computeLevel_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tensorflow.data.CardinalityOptions.ComputeLevel compute_level = 1; - */ - public Builder clearComputeLevel() { - - computeLevel_ = 0; - 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:tensorflow.data.CardinalityOptions) - } - - // @@protoc_insertion_point(class_scope:tensorflow.data.CardinalityOptions) - private static final org.tensorflow.proto.data.CardinalityOptions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.data.CardinalityOptions(); - } - - public static org.tensorflow.proto.data.CardinalityOptions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CardinalityOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CardinalityOptions(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.data.CardinalityOptions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/CardinalityOptionsOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/CardinalityOptionsOrBuilder.java deleted file mode 100644 index 6e666b632bd..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/CardinalityOptionsOrBuilder.java +++ /dev/null @@ -1,18 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/dataset_options.proto - -package org.tensorflow.proto.data; - -public interface CardinalityOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.data.CardinalityOptions) - com.google.protobuf.MessageOrBuilder { - - /** - * .tensorflow.data.CardinalityOptions.ComputeLevel compute_level = 1; - */ - int getComputeLevelValue(); - /** - * .tensorflow.data.CardinalityOptions.ComputeLevel compute_level = 1; - */ - org.tensorflow.proto.data.CardinalityOptions.ComputeLevel getComputeLevel(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/DatasetOptionsProtos.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/DatasetOptionsProtos.java deleted file mode 100644 index ace32ef11d2..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/DatasetOptionsProtos.java +++ /dev/null @@ -1,162 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/dataset_options.proto - -package org.tensorflow.proto.data; - -public final class DatasetOptionsProtos { - private DatasetOptionsProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_data_AutotuneOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_data_AutotuneOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_data_CardinalityOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_data_CardinalityOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_data_DistributeOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_data_DistributeOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_data_OptimizationOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_data_OptimizationOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_data_ThreadingOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_data_ThreadingOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_data_Options_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_data_Options_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n/tensorflow/core/framework/dataset_opti" + - "ons.proto\022\017tensorflow.data\032%tensorflow/c" + - "ore/framework/model.proto\"\371\001\n\017AutotuneOp" + - "tions\022\021\n\007enabled\030\001 \001(\010H\000\022\024\n\ncpu_budget\030\002" + - " \001(\005H\001\022\024\n\nram_budget\030\003 \001(\003H\002\022F\n\022autotune" + - "_algorithm\030\004 \001(\0162(.tensorflow.data.model" + - ".AutotuneAlgorithmH\003B\022\n\020optional_enabled" + - "B\025\n\023optional_cpu_budgetB\025\n\023optional_ram_" + - "budgetB\035\n\033optional_autotune_algorithm\"\321\001" + - "\n\022CardinalityOptions\022G\n\rcompute_level\030\001 " + - "\001(\01620.tensorflow.data.CardinalityOptions" + - ".ComputeLevel\"r\n\014ComputeLevel\022#\n\037CARDINA" + - "LITY_COMPUTE_UNSPECIFIED\020\000\022\033\n\027CARDINALIT" + - "Y_COMPUTE_LOW\020\001\022 \n\034CARDINALITY_COMPUTE_M" + - "ODERATE\020\002\"\177\n\021DistributeOptions\022;\n\021auto_s" + - "hard_policy\030\001 \001(\0162 .tensorflow.data.Auto" + - "ShardPolicy\022\025\n\013num_devices\030\002 \001(\005H\000B\026\n\024op" + - "tional_num_devices\"\354\005\n\023OptimizationOptio" + - "ns\022%\n\033apply_default_optimizations\030\001 \001(\010H" + - "\000\022\027\n\rfilter_fusion\030\006 \001(\010H\001\022\036\n\024map_and_ba" + - "tch_fusion\030\t \001(\010H\002\022\037\n\025map_and_filter_fus" + - "ion\030\n \001(\010H\003\022\024\n\nmap_fusion\030\013 \001(\010H\004\022\035\n\023map" + - "_parallelization\030\014 \001(\010H\005\022\032\n\020noop_elimina" + - "tion\030\016 \001(\010H\006\022\030\n\016parallel_batch\030\017 \001(\010H\007\022#" + - "\n\031shuffle_and_repeat_fusion\030\021 \001(\010H\010\022 \n\026f" + - "ilter_parallelization\030\022 \001(\010H\t\022\031\n\017inject_" + - "prefetch\030\023 \001(\010H\nB&\n$optional_apply_defau" + - "lt_optimizationsB\030\n\026optional_filter_fusi" + - "onB\037\n\035optional_map_and_batch_fusionB \n\036o" + - "ptional_map_and_filter_fusionB\025\n\023optiona" + - "l_map_fusionB\036\n\034optional_map_paralleliza" + - "tionB\033\n\031optional_noop_eliminationB\031\n\027opt" + - "ional_parallel_batchB$\n\"optional_shuffle" + - "_and_repeat_fusionB!\n\037optional_filter_pa" + - "rallelizationB\032\n\030optional_inject_prefetc" + - "hJ\004\010\002\020\003J\004\010\003\020\004J\004\010\004\020\005J\004\010\005\020\006J\004\010\007\020\010J\004\010\010\020\tJ\004\010" + - "\r\020\016J\004\010\020\020\021\"\242\001\n\020ThreadingOptions\022\"\n\030max_in" + - "tra_op_parallelism\030\001 \001(\005H\000\022!\n\027private_th" + - "readpool_size\030\002 \001(\005H\001B#\n!optional_max_in" + - "tra_op_parallelismB\"\n optional_private_t" + - "hreadpool_size\"\306\003\n\007Options\022\027\n\rdeterminis" + - "tic\030\001 \001(\010H\000\022:\n\020autotune_options\030\007 \001(\0132 ." + - "tensorflow.data.AutotuneOptions\022>\n\022distr" + - "ibute_options\030\002 \001(\0132\".tensorflow.data.Di" + - "stributeOptions\022B\n\024optimization_options\030" + - "\003 \001(\0132$.tensorflow.data.OptimizationOpti" + - "ons\022\017\n\005slack\030\004 \001(\010H\001\022<\n\021threading_option" + - "s\030\005 \001(\0132!.tensorflow.data.ThreadingOptio" + - "ns\022E\n\025external_state_policy\030\006 \001(\0162$.tens" + - "orflow.data.ExternalStatePolicyH\002B\030\n\026opt" + - "ional_deterministicB\020\n\016optional_slackB \n" + - "\036optional_external_state_policy*K\n\017AutoS" + - "hardPolicy\022\010\n\004AUTO\020\000\022\010\n\004FILE\020\001\022\010\n\004DATA\020\002" + - "\022\010\n\004HINT\020\003\022\020\n\003OFF\020\377\377\377\377\377\377\377\377\377\001*J\n\023External" + - "StatePolicy\022\017\n\013POLICY_WARN\020\000\022\021\n\rPOLICY_I" + - "GNORE\020\001\022\017\n\013POLICY_FAIL\020\002B\213\001\n\031org.tensorf" + - "low.proto.dataB\024DatasetOptionsProtosP\001ZV" + - "github.com/tensorflow/tensorflow/tensorf" + - "low/go/core/framework/dataset_options_go" + - "_protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.data.model.ModelProtos.getDescriptor(), - }); - internal_static_tensorflow_data_AutotuneOptions_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tensorflow_data_AutotuneOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_data_AutotuneOptions_descriptor, - new java.lang.String[] { "Enabled", "CpuBudget", "RamBudget", "AutotuneAlgorithm", "OptionalEnabled", "OptionalCpuBudget", "OptionalRamBudget", "OptionalAutotuneAlgorithm", }); - internal_static_tensorflow_data_CardinalityOptions_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_tensorflow_data_CardinalityOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_data_CardinalityOptions_descriptor, - new java.lang.String[] { "ComputeLevel", }); - internal_static_tensorflow_data_DistributeOptions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_tensorflow_data_DistributeOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_data_DistributeOptions_descriptor, - new java.lang.String[] { "AutoShardPolicy", "NumDevices", "OptionalNumDevices", }); - internal_static_tensorflow_data_OptimizationOptions_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_tensorflow_data_OptimizationOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_data_OptimizationOptions_descriptor, - new java.lang.String[] { "ApplyDefaultOptimizations", "FilterFusion", "MapAndBatchFusion", "MapAndFilterFusion", "MapFusion", "MapParallelization", "NoopElimination", "ParallelBatch", "ShuffleAndRepeatFusion", "FilterParallelization", "InjectPrefetch", "OptionalApplyDefaultOptimizations", "OptionalFilterFusion", "OptionalMapAndBatchFusion", "OptionalMapAndFilterFusion", "OptionalMapFusion", "OptionalMapParallelization", "OptionalNoopElimination", "OptionalParallelBatch", "OptionalShuffleAndRepeatFusion", "OptionalFilterParallelization", "OptionalInjectPrefetch", }); - internal_static_tensorflow_data_ThreadingOptions_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_tensorflow_data_ThreadingOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_data_ThreadingOptions_descriptor, - new java.lang.String[] { "MaxIntraOpParallelism", "PrivateThreadpoolSize", "OptionalMaxIntraOpParallelism", "OptionalPrivateThreadpoolSize", }); - internal_static_tensorflow_data_Options_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_tensorflow_data_Options_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_data_Options_descriptor, - new java.lang.String[] { "Deterministic", "AutotuneOptions", "DistributeOptions", "OptimizationOptions", "Slack", "ThreadingOptions", "ExternalStatePolicy", "OptionalDeterministic", "OptionalSlack", "OptionalExternalStatePolicy", }); - org.tensorflow.proto.data.model.ModelProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/DistributeOptions.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/DistributeOptions.java deleted file mode 100644 index 53414e39014..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/DistributeOptions.java +++ /dev/null @@ -1,650 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/dataset_options.proto - -package org.tensorflow.proto.data; - -/** - *
- * next: 3
- * 
- * - * Protobuf type {@code tensorflow.data.DistributeOptions} - */ -public final class DistributeOptions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.data.DistributeOptions) - DistributeOptionsOrBuilder { -private static final long serialVersionUID = 0L; - // Use DistributeOptions.newBuilder() to construct. - private DistributeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DistributeOptions() { - autoShardPolicy_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DistributeOptions(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DistributeOptions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - autoShardPolicy_ = rawValue; - break; - } - case 16: { - optionalNumDevicesCase_ = 2; - optionalNumDevices_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_DistributeOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_DistributeOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.DistributeOptions.class, org.tensorflow.proto.data.DistributeOptions.Builder.class); - } - - private int optionalNumDevicesCase_ = 0; - private java.lang.Object optionalNumDevices_; - public enum OptionalNumDevicesCase - implements com.google.protobuf.Internal.EnumLite { - NUM_DEVICES(2), - OPTIONALNUMDEVICES_NOT_SET(0); - private final int value; - private OptionalNumDevicesCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionalNumDevicesCase valueOf(int value) { - return forNumber(value); - } - - public static OptionalNumDevicesCase forNumber(int value) { - switch (value) { - case 2: return NUM_DEVICES; - case 0: return OPTIONALNUMDEVICES_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionalNumDevicesCase - getOptionalNumDevicesCase() { - return OptionalNumDevicesCase.forNumber( - optionalNumDevicesCase_); - } - - public static final int AUTO_SHARD_POLICY_FIELD_NUMBER = 1; - private int autoShardPolicy_; - /** - * .tensorflow.data.AutoShardPolicy auto_shard_policy = 1; - */ - public int getAutoShardPolicyValue() { - return autoShardPolicy_; - } - /** - * .tensorflow.data.AutoShardPolicy auto_shard_policy = 1; - */ - public org.tensorflow.proto.data.AutoShardPolicy getAutoShardPolicy() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.data.AutoShardPolicy result = org.tensorflow.proto.data.AutoShardPolicy.valueOf(autoShardPolicy_); - return result == null ? org.tensorflow.proto.data.AutoShardPolicy.UNRECOGNIZED : result; - } - - public static final int NUM_DEVICES_FIELD_NUMBER = 2; - /** - * int32 num_devices = 2; - */ - public int getNumDevices() { - if (optionalNumDevicesCase_ == 2) { - return (java.lang.Integer) optionalNumDevices_; - } - return 0; - } - - 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 (autoShardPolicy_ != org.tensorflow.proto.data.AutoShardPolicy.AUTO.getNumber()) { - output.writeEnum(1, autoShardPolicy_); - } - if (optionalNumDevicesCase_ == 2) { - output.writeInt32( - 2, (int)((java.lang.Integer) optionalNumDevices_)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (autoShardPolicy_ != org.tensorflow.proto.data.AutoShardPolicy.AUTO.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, autoShardPolicy_); - } - if (optionalNumDevicesCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 2, (int)((java.lang.Integer) optionalNumDevices_)); - } - 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 org.tensorflow.proto.data.DistributeOptions)) { - return super.equals(obj); - } - org.tensorflow.proto.data.DistributeOptions other = (org.tensorflow.proto.data.DistributeOptions) obj; - - if (autoShardPolicy_ != other.autoShardPolicy_) return false; - if (!getOptionalNumDevicesCase().equals(other.getOptionalNumDevicesCase())) return false; - switch (optionalNumDevicesCase_) { - case 2: - if (getNumDevices() - != other.getNumDevices()) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AUTO_SHARD_POLICY_FIELD_NUMBER; - hash = (53 * hash) + autoShardPolicy_; - switch (optionalNumDevicesCase_) { - case 2: - hash = (37 * hash) + NUM_DEVICES_FIELD_NUMBER; - hash = (53 * hash) + getNumDevices(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.data.DistributeOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.DistributeOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.DistributeOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.DistributeOptions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.DistributeOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.DistributeOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.DistributeOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.DistributeOptions 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 org.tensorflow.proto.data.DistributeOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.DistributeOptions 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 org.tensorflow.proto.data.DistributeOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.DistributeOptions 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(org.tensorflow.proto.data.DistributeOptions 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; - } - /** - *
-   * next: 3
-   * 
- * - * Protobuf type {@code tensorflow.data.DistributeOptions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.data.DistributeOptions) - org.tensorflow.proto.data.DistributeOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_DistributeOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_DistributeOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.DistributeOptions.class, org.tensorflow.proto.data.DistributeOptions.Builder.class); - } - - // Construct using org.tensorflow.proto.data.DistributeOptions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - autoShardPolicy_ = 0; - - optionalNumDevicesCase_ = 0; - optionalNumDevices_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_DistributeOptions_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.data.DistributeOptions getDefaultInstanceForType() { - return org.tensorflow.proto.data.DistributeOptions.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.data.DistributeOptions build() { - org.tensorflow.proto.data.DistributeOptions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.data.DistributeOptions buildPartial() { - org.tensorflow.proto.data.DistributeOptions result = new org.tensorflow.proto.data.DistributeOptions(this); - result.autoShardPolicy_ = autoShardPolicy_; - if (optionalNumDevicesCase_ == 2) { - result.optionalNumDevices_ = optionalNumDevices_; - } - result.optionalNumDevicesCase_ = optionalNumDevicesCase_; - 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 org.tensorflow.proto.data.DistributeOptions) { - return mergeFrom((org.tensorflow.proto.data.DistributeOptions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.data.DistributeOptions other) { - if (other == org.tensorflow.proto.data.DistributeOptions.getDefaultInstance()) return this; - if (other.autoShardPolicy_ != 0) { - setAutoShardPolicyValue(other.getAutoShardPolicyValue()); - } - switch (other.getOptionalNumDevicesCase()) { - case NUM_DEVICES: { - setNumDevices(other.getNumDevices()); - break; - } - case OPTIONALNUMDEVICES_NOT_SET: { - break; - } - } - 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 { - org.tensorflow.proto.data.DistributeOptions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.data.DistributeOptions) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int optionalNumDevicesCase_ = 0; - private java.lang.Object optionalNumDevices_; - public OptionalNumDevicesCase - getOptionalNumDevicesCase() { - return OptionalNumDevicesCase.forNumber( - optionalNumDevicesCase_); - } - - public Builder clearOptionalNumDevices() { - optionalNumDevicesCase_ = 0; - optionalNumDevices_ = null; - onChanged(); - return this; - } - - - private int autoShardPolicy_ = 0; - /** - * .tensorflow.data.AutoShardPolicy auto_shard_policy = 1; - */ - public int getAutoShardPolicyValue() { - return autoShardPolicy_; - } - /** - * .tensorflow.data.AutoShardPolicy auto_shard_policy = 1; - */ - public Builder setAutoShardPolicyValue(int value) { - autoShardPolicy_ = value; - onChanged(); - return this; - } - /** - * .tensorflow.data.AutoShardPolicy auto_shard_policy = 1; - */ - public org.tensorflow.proto.data.AutoShardPolicy getAutoShardPolicy() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.data.AutoShardPolicy result = org.tensorflow.proto.data.AutoShardPolicy.valueOf(autoShardPolicy_); - return result == null ? org.tensorflow.proto.data.AutoShardPolicy.UNRECOGNIZED : result; - } - /** - * .tensorflow.data.AutoShardPolicy auto_shard_policy = 1; - */ - public Builder setAutoShardPolicy(org.tensorflow.proto.data.AutoShardPolicy value) { - if (value == null) { - throw new NullPointerException(); - } - - autoShardPolicy_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tensorflow.data.AutoShardPolicy auto_shard_policy = 1; - */ - public Builder clearAutoShardPolicy() { - - autoShardPolicy_ = 0; - onChanged(); - return this; - } - - /** - * int32 num_devices = 2; - */ - public int getNumDevices() { - if (optionalNumDevicesCase_ == 2) { - return (java.lang.Integer) optionalNumDevices_; - } - return 0; - } - /** - * int32 num_devices = 2; - */ - public Builder setNumDevices(int value) { - optionalNumDevicesCase_ = 2; - optionalNumDevices_ = value; - onChanged(); - return this; - } - /** - * int32 num_devices = 2; - */ - public Builder clearNumDevices() { - if (optionalNumDevicesCase_ == 2) { - optionalNumDevicesCase_ = 0; - optionalNumDevices_ = null; - 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:tensorflow.data.DistributeOptions) - } - - // @@protoc_insertion_point(class_scope:tensorflow.data.DistributeOptions) - private static final org.tensorflow.proto.data.DistributeOptions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.data.DistributeOptions(); - } - - public static org.tensorflow.proto.data.DistributeOptions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DistributeOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DistributeOptions(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.data.DistributeOptions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/DistributeOptionsOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/DistributeOptionsOrBuilder.java deleted file mode 100644 index 84cd08668e6..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/DistributeOptionsOrBuilder.java +++ /dev/null @@ -1,25 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/dataset_options.proto - -package org.tensorflow.proto.data; - -public interface DistributeOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.data.DistributeOptions) - com.google.protobuf.MessageOrBuilder { - - /** - * .tensorflow.data.AutoShardPolicy auto_shard_policy = 1; - */ - int getAutoShardPolicyValue(); - /** - * .tensorflow.data.AutoShardPolicy auto_shard_policy = 1; - */ - org.tensorflow.proto.data.AutoShardPolicy getAutoShardPolicy(); - - /** - * int32 num_devices = 2; - */ - int getNumDevices(); - - public org.tensorflow.proto.data.DistributeOptions.OptionalNumDevicesCase getOptionalNumDevicesCase(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/ExternalStatePolicy.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/ExternalStatePolicy.java deleted file mode 100644 index 2f7375ae00d..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/ExternalStatePolicy.java +++ /dev/null @@ -1,116 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/dataset_options.proto - -package org.tensorflow.proto.data; - -/** - *
- * Represents how to handle external state during serialization.
- * 
- * - * Protobuf enum {@code tensorflow.data.ExternalStatePolicy} - */ -public enum ExternalStatePolicy - implements com.google.protobuf.ProtocolMessageEnum { - /** - * POLICY_WARN = 0; - */ - POLICY_WARN(0), - /** - * POLICY_IGNORE = 1; - */ - POLICY_IGNORE(1), - /** - * POLICY_FAIL = 2; - */ - POLICY_FAIL(2), - UNRECOGNIZED(-1), - ; - - /** - * POLICY_WARN = 0; - */ - public static final int POLICY_WARN_VALUE = 0; - /** - * POLICY_IGNORE = 1; - */ - public static final int POLICY_IGNORE_VALUE = 1; - /** - * POLICY_FAIL = 2; - */ - public static final int POLICY_FAIL_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ExternalStatePolicy valueOf(int value) { - return forNumber(value); - } - - public static ExternalStatePolicy forNumber(int value) { - switch (value) { - case 0: return POLICY_WARN; - case 1: return POLICY_IGNORE; - case 2: return POLICY_FAIL; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ExternalStatePolicy> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExternalStatePolicy findValueByNumber(int number) { - return ExternalStatePolicy.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 org.tensorflow.proto.data.DatasetOptionsProtos.getDescriptor().getEnumTypes().get(1); - } - - private static final ExternalStatePolicy[] VALUES = values(); - - public static ExternalStatePolicy 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 ExternalStatePolicy(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:tensorflow.data.ExternalStatePolicy) -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/OptimizationOptions.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/OptimizationOptions.java deleted file mode 100644 index 1cc771de6d4..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/OptimizationOptions.java +++ /dev/null @@ -1,1956 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/dataset_options.proto - -package org.tensorflow.proto.data; - -/** - *
- * next: 20
- * 
- * - * Protobuf type {@code tensorflow.data.OptimizationOptions} - */ -public final class OptimizationOptions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.data.OptimizationOptions) - OptimizationOptionsOrBuilder { -private static final long serialVersionUID = 0L; - // Use OptimizationOptions.newBuilder() to construct. - private OptimizationOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OptimizationOptions() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OptimizationOptions(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OptimizationOptions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - optionalApplyDefaultOptimizationsCase_ = 1; - optionalApplyDefaultOptimizations_ = input.readBool(); - break; - } - case 48: { - optionalFilterFusionCase_ = 6; - optionalFilterFusion_ = input.readBool(); - break; - } - case 72: { - optionalMapAndBatchFusionCase_ = 9; - optionalMapAndBatchFusion_ = input.readBool(); - break; - } - case 80: { - optionalMapAndFilterFusionCase_ = 10; - optionalMapAndFilterFusion_ = input.readBool(); - break; - } - case 88: { - optionalMapFusionCase_ = 11; - optionalMapFusion_ = input.readBool(); - break; - } - case 96: { - optionalMapParallelizationCase_ = 12; - optionalMapParallelization_ = input.readBool(); - break; - } - case 112: { - optionalNoopEliminationCase_ = 14; - optionalNoopElimination_ = input.readBool(); - break; - } - case 120: { - optionalParallelBatchCase_ = 15; - optionalParallelBatch_ = input.readBool(); - break; - } - case 136: { - optionalShuffleAndRepeatFusionCase_ = 17; - optionalShuffleAndRepeatFusion_ = input.readBool(); - break; - } - case 144: { - optionalFilterParallelizationCase_ = 18; - optionalFilterParallelization_ = input.readBool(); - break; - } - case 152: { - optionalInjectPrefetchCase_ = 19; - optionalInjectPrefetch_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_OptimizationOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_OptimizationOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.OptimizationOptions.class, org.tensorflow.proto.data.OptimizationOptions.Builder.class); - } - - private int optionalApplyDefaultOptimizationsCase_ = 0; - private java.lang.Object optionalApplyDefaultOptimizations_; - public enum OptionalApplyDefaultOptimizationsCase - implements com.google.protobuf.Internal.EnumLite { - APPLY_DEFAULT_OPTIMIZATIONS(1), - OPTIONALAPPLYDEFAULTOPTIMIZATIONS_NOT_SET(0); - private final int value; - private OptionalApplyDefaultOptimizationsCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionalApplyDefaultOptimizationsCase valueOf(int value) { - return forNumber(value); - } - - public static OptionalApplyDefaultOptimizationsCase forNumber(int value) { - switch (value) { - case 1: return APPLY_DEFAULT_OPTIMIZATIONS; - case 0: return OPTIONALAPPLYDEFAULTOPTIMIZATIONS_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionalApplyDefaultOptimizationsCase - getOptionalApplyDefaultOptimizationsCase() { - return OptionalApplyDefaultOptimizationsCase.forNumber( - optionalApplyDefaultOptimizationsCase_); - } - - private int optionalFilterFusionCase_ = 0; - private java.lang.Object optionalFilterFusion_; - public enum OptionalFilterFusionCase - implements com.google.protobuf.Internal.EnumLite { - FILTER_FUSION(6), - OPTIONALFILTERFUSION_NOT_SET(0); - private final int value; - private OptionalFilterFusionCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionalFilterFusionCase valueOf(int value) { - return forNumber(value); - } - - public static OptionalFilterFusionCase forNumber(int value) { - switch (value) { - case 6: return FILTER_FUSION; - case 0: return OPTIONALFILTERFUSION_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionalFilterFusionCase - getOptionalFilterFusionCase() { - return OptionalFilterFusionCase.forNumber( - optionalFilterFusionCase_); - } - - private int optionalMapAndBatchFusionCase_ = 0; - private java.lang.Object optionalMapAndBatchFusion_; - public enum OptionalMapAndBatchFusionCase - implements com.google.protobuf.Internal.EnumLite { - MAP_AND_BATCH_FUSION(9), - OPTIONALMAPANDBATCHFUSION_NOT_SET(0); - private final int value; - private OptionalMapAndBatchFusionCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionalMapAndBatchFusionCase valueOf(int value) { - return forNumber(value); - } - - public static OptionalMapAndBatchFusionCase forNumber(int value) { - switch (value) { - case 9: return MAP_AND_BATCH_FUSION; - case 0: return OPTIONALMAPANDBATCHFUSION_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionalMapAndBatchFusionCase - getOptionalMapAndBatchFusionCase() { - return OptionalMapAndBatchFusionCase.forNumber( - optionalMapAndBatchFusionCase_); - } - - private int optionalMapAndFilterFusionCase_ = 0; - private java.lang.Object optionalMapAndFilterFusion_; - public enum OptionalMapAndFilterFusionCase - implements com.google.protobuf.Internal.EnumLite { - MAP_AND_FILTER_FUSION(10), - OPTIONALMAPANDFILTERFUSION_NOT_SET(0); - private final int value; - private OptionalMapAndFilterFusionCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionalMapAndFilterFusionCase valueOf(int value) { - return forNumber(value); - } - - public static OptionalMapAndFilterFusionCase forNumber(int value) { - switch (value) { - case 10: return MAP_AND_FILTER_FUSION; - case 0: return OPTIONALMAPANDFILTERFUSION_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionalMapAndFilterFusionCase - getOptionalMapAndFilterFusionCase() { - return OptionalMapAndFilterFusionCase.forNumber( - optionalMapAndFilterFusionCase_); - } - - private int optionalMapFusionCase_ = 0; - private java.lang.Object optionalMapFusion_; - public enum OptionalMapFusionCase - implements com.google.protobuf.Internal.EnumLite { - MAP_FUSION(11), - OPTIONALMAPFUSION_NOT_SET(0); - private final int value; - private OptionalMapFusionCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionalMapFusionCase valueOf(int value) { - return forNumber(value); - } - - public static OptionalMapFusionCase forNumber(int value) { - switch (value) { - case 11: return MAP_FUSION; - case 0: return OPTIONALMAPFUSION_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionalMapFusionCase - getOptionalMapFusionCase() { - return OptionalMapFusionCase.forNumber( - optionalMapFusionCase_); - } - - private int optionalMapParallelizationCase_ = 0; - private java.lang.Object optionalMapParallelization_; - public enum OptionalMapParallelizationCase - implements com.google.protobuf.Internal.EnumLite { - MAP_PARALLELIZATION(12), - OPTIONALMAPPARALLELIZATION_NOT_SET(0); - private final int value; - private OptionalMapParallelizationCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionalMapParallelizationCase valueOf(int value) { - return forNumber(value); - } - - public static OptionalMapParallelizationCase forNumber(int value) { - switch (value) { - case 12: return MAP_PARALLELIZATION; - case 0: return OPTIONALMAPPARALLELIZATION_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionalMapParallelizationCase - getOptionalMapParallelizationCase() { - return OptionalMapParallelizationCase.forNumber( - optionalMapParallelizationCase_); - } - - private int optionalNoopEliminationCase_ = 0; - private java.lang.Object optionalNoopElimination_; - public enum OptionalNoopEliminationCase - implements com.google.protobuf.Internal.EnumLite { - NOOP_ELIMINATION(14), - OPTIONALNOOPELIMINATION_NOT_SET(0); - private final int value; - private OptionalNoopEliminationCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionalNoopEliminationCase valueOf(int value) { - return forNumber(value); - } - - public static OptionalNoopEliminationCase forNumber(int value) { - switch (value) { - case 14: return NOOP_ELIMINATION; - case 0: return OPTIONALNOOPELIMINATION_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionalNoopEliminationCase - getOptionalNoopEliminationCase() { - return OptionalNoopEliminationCase.forNumber( - optionalNoopEliminationCase_); - } - - private int optionalParallelBatchCase_ = 0; - private java.lang.Object optionalParallelBatch_; - public enum OptionalParallelBatchCase - implements com.google.protobuf.Internal.EnumLite { - PARALLEL_BATCH(15), - OPTIONALPARALLELBATCH_NOT_SET(0); - private final int value; - private OptionalParallelBatchCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionalParallelBatchCase valueOf(int value) { - return forNumber(value); - } - - public static OptionalParallelBatchCase forNumber(int value) { - switch (value) { - case 15: return PARALLEL_BATCH; - case 0: return OPTIONALPARALLELBATCH_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionalParallelBatchCase - getOptionalParallelBatchCase() { - return OptionalParallelBatchCase.forNumber( - optionalParallelBatchCase_); - } - - private int optionalShuffleAndRepeatFusionCase_ = 0; - private java.lang.Object optionalShuffleAndRepeatFusion_; - public enum OptionalShuffleAndRepeatFusionCase - implements com.google.protobuf.Internal.EnumLite { - SHUFFLE_AND_REPEAT_FUSION(17), - OPTIONALSHUFFLEANDREPEATFUSION_NOT_SET(0); - private final int value; - private OptionalShuffleAndRepeatFusionCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionalShuffleAndRepeatFusionCase valueOf(int value) { - return forNumber(value); - } - - public static OptionalShuffleAndRepeatFusionCase forNumber(int value) { - switch (value) { - case 17: return SHUFFLE_AND_REPEAT_FUSION; - case 0: return OPTIONALSHUFFLEANDREPEATFUSION_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionalShuffleAndRepeatFusionCase - getOptionalShuffleAndRepeatFusionCase() { - return OptionalShuffleAndRepeatFusionCase.forNumber( - optionalShuffleAndRepeatFusionCase_); - } - - private int optionalFilterParallelizationCase_ = 0; - private java.lang.Object optionalFilterParallelization_; - public enum OptionalFilterParallelizationCase - implements com.google.protobuf.Internal.EnumLite { - FILTER_PARALLELIZATION(18), - OPTIONALFILTERPARALLELIZATION_NOT_SET(0); - private final int value; - private OptionalFilterParallelizationCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionalFilterParallelizationCase valueOf(int value) { - return forNumber(value); - } - - public static OptionalFilterParallelizationCase forNumber(int value) { - switch (value) { - case 18: return FILTER_PARALLELIZATION; - case 0: return OPTIONALFILTERPARALLELIZATION_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionalFilterParallelizationCase - getOptionalFilterParallelizationCase() { - return OptionalFilterParallelizationCase.forNumber( - optionalFilterParallelizationCase_); - } - - private int optionalInjectPrefetchCase_ = 0; - private java.lang.Object optionalInjectPrefetch_; - public enum OptionalInjectPrefetchCase - implements com.google.protobuf.Internal.EnumLite { - INJECT_PREFETCH(19), - OPTIONALINJECTPREFETCH_NOT_SET(0); - private final int value; - private OptionalInjectPrefetchCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionalInjectPrefetchCase valueOf(int value) { - return forNumber(value); - } - - public static OptionalInjectPrefetchCase forNumber(int value) { - switch (value) { - case 19: return INJECT_PREFETCH; - case 0: return OPTIONALINJECTPREFETCH_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionalInjectPrefetchCase - getOptionalInjectPrefetchCase() { - return OptionalInjectPrefetchCase.forNumber( - optionalInjectPrefetchCase_); - } - - public static final int APPLY_DEFAULT_OPTIMIZATIONS_FIELD_NUMBER = 1; - /** - * bool apply_default_optimizations = 1; - */ - public boolean getApplyDefaultOptimizations() { - if (optionalApplyDefaultOptimizationsCase_ == 1) { - return (java.lang.Boolean) optionalApplyDefaultOptimizations_; - } - return false; - } - - public static final int FILTER_FUSION_FIELD_NUMBER = 6; - /** - * bool filter_fusion = 6; - */ - public boolean getFilterFusion() { - if (optionalFilterFusionCase_ == 6) { - return (java.lang.Boolean) optionalFilterFusion_; - } - return false; - } - - public static final int MAP_AND_BATCH_FUSION_FIELD_NUMBER = 9; - /** - * bool map_and_batch_fusion = 9; - */ - public boolean getMapAndBatchFusion() { - if (optionalMapAndBatchFusionCase_ == 9) { - return (java.lang.Boolean) optionalMapAndBatchFusion_; - } - return false; - } - - public static final int MAP_AND_FILTER_FUSION_FIELD_NUMBER = 10; - /** - * bool map_and_filter_fusion = 10; - */ - public boolean getMapAndFilterFusion() { - if (optionalMapAndFilterFusionCase_ == 10) { - return (java.lang.Boolean) optionalMapAndFilterFusion_; - } - return false; - } - - public static final int MAP_FUSION_FIELD_NUMBER = 11; - /** - * bool map_fusion = 11; - */ - public boolean getMapFusion() { - if (optionalMapFusionCase_ == 11) { - return (java.lang.Boolean) optionalMapFusion_; - } - return false; - } - - public static final int MAP_PARALLELIZATION_FIELD_NUMBER = 12; - /** - * bool map_parallelization = 12; - */ - public boolean getMapParallelization() { - if (optionalMapParallelizationCase_ == 12) { - return (java.lang.Boolean) optionalMapParallelization_; - } - return false; - } - - public static final int NOOP_ELIMINATION_FIELD_NUMBER = 14; - /** - * bool noop_elimination = 14; - */ - public boolean getNoopElimination() { - if (optionalNoopEliminationCase_ == 14) { - return (java.lang.Boolean) optionalNoopElimination_; - } - return false; - } - - public static final int PARALLEL_BATCH_FIELD_NUMBER = 15; - /** - * bool parallel_batch = 15; - */ - public boolean getParallelBatch() { - if (optionalParallelBatchCase_ == 15) { - return (java.lang.Boolean) optionalParallelBatch_; - } - return false; - } - - public static final int SHUFFLE_AND_REPEAT_FUSION_FIELD_NUMBER = 17; - /** - * bool shuffle_and_repeat_fusion = 17; - */ - public boolean getShuffleAndRepeatFusion() { - if (optionalShuffleAndRepeatFusionCase_ == 17) { - return (java.lang.Boolean) optionalShuffleAndRepeatFusion_; - } - return false; - } - - public static final int FILTER_PARALLELIZATION_FIELD_NUMBER = 18; - /** - * bool filter_parallelization = 18; - */ - public boolean getFilterParallelization() { - if (optionalFilterParallelizationCase_ == 18) { - return (java.lang.Boolean) optionalFilterParallelization_; - } - return false; - } - - public static final int INJECT_PREFETCH_FIELD_NUMBER = 19; - /** - * bool inject_prefetch = 19; - */ - public boolean getInjectPrefetch() { - if (optionalInjectPrefetchCase_ == 19) { - return (java.lang.Boolean) optionalInjectPrefetch_; - } - return false; - } - - 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 (optionalApplyDefaultOptimizationsCase_ == 1) { - output.writeBool( - 1, (boolean)((java.lang.Boolean) optionalApplyDefaultOptimizations_)); - } - if (optionalFilterFusionCase_ == 6) { - output.writeBool( - 6, (boolean)((java.lang.Boolean) optionalFilterFusion_)); - } - if (optionalMapAndBatchFusionCase_ == 9) { - output.writeBool( - 9, (boolean)((java.lang.Boolean) optionalMapAndBatchFusion_)); - } - if (optionalMapAndFilterFusionCase_ == 10) { - output.writeBool( - 10, (boolean)((java.lang.Boolean) optionalMapAndFilterFusion_)); - } - if (optionalMapFusionCase_ == 11) { - output.writeBool( - 11, (boolean)((java.lang.Boolean) optionalMapFusion_)); - } - if (optionalMapParallelizationCase_ == 12) { - output.writeBool( - 12, (boolean)((java.lang.Boolean) optionalMapParallelization_)); - } - if (optionalNoopEliminationCase_ == 14) { - output.writeBool( - 14, (boolean)((java.lang.Boolean) optionalNoopElimination_)); - } - if (optionalParallelBatchCase_ == 15) { - output.writeBool( - 15, (boolean)((java.lang.Boolean) optionalParallelBatch_)); - } - if (optionalShuffleAndRepeatFusionCase_ == 17) { - output.writeBool( - 17, (boolean)((java.lang.Boolean) optionalShuffleAndRepeatFusion_)); - } - if (optionalFilterParallelizationCase_ == 18) { - output.writeBool( - 18, (boolean)((java.lang.Boolean) optionalFilterParallelization_)); - } - if (optionalInjectPrefetchCase_ == 19) { - output.writeBool( - 19, (boolean)((java.lang.Boolean) optionalInjectPrefetch_)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (optionalApplyDefaultOptimizationsCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 1, (boolean)((java.lang.Boolean) optionalApplyDefaultOptimizations_)); - } - if (optionalFilterFusionCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 6, (boolean)((java.lang.Boolean) optionalFilterFusion_)); - } - if (optionalMapAndBatchFusionCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 9, (boolean)((java.lang.Boolean) optionalMapAndBatchFusion_)); - } - if (optionalMapAndFilterFusionCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 10, (boolean)((java.lang.Boolean) optionalMapAndFilterFusion_)); - } - if (optionalMapFusionCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 11, (boolean)((java.lang.Boolean) optionalMapFusion_)); - } - if (optionalMapParallelizationCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 12, (boolean)((java.lang.Boolean) optionalMapParallelization_)); - } - if (optionalNoopEliminationCase_ == 14) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 14, (boolean)((java.lang.Boolean) optionalNoopElimination_)); - } - if (optionalParallelBatchCase_ == 15) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 15, (boolean)((java.lang.Boolean) optionalParallelBatch_)); - } - if (optionalShuffleAndRepeatFusionCase_ == 17) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 17, (boolean)((java.lang.Boolean) optionalShuffleAndRepeatFusion_)); - } - if (optionalFilterParallelizationCase_ == 18) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 18, (boolean)((java.lang.Boolean) optionalFilterParallelization_)); - } - if (optionalInjectPrefetchCase_ == 19) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 19, (boolean)((java.lang.Boolean) optionalInjectPrefetch_)); - } - 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 org.tensorflow.proto.data.OptimizationOptions)) { - return super.equals(obj); - } - org.tensorflow.proto.data.OptimizationOptions other = (org.tensorflow.proto.data.OptimizationOptions) obj; - - if (!getOptionalApplyDefaultOptimizationsCase().equals(other.getOptionalApplyDefaultOptimizationsCase())) return false; - switch (optionalApplyDefaultOptimizationsCase_) { - case 1: - if (getApplyDefaultOptimizations() - != other.getApplyDefaultOptimizations()) return false; - break; - case 0: - default: - } - if (!getOptionalFilterFusionCase().equals(other.getOptionalFilterFusionCase())) return false; - switch (optionalFilterFusionCase_) { - case 6: - if (getFilterFusion() - != other.getFilterFusion()) return false; - break; - case 0: - default: - } - if (!getOptionalMapAndBatchFusionCase().equals(other.getOptionalMapAndBatchFusionCase())) return false; - switch (optionalMapAndBatchFusionCase_) { - case 9: - if (getMapAndBatchFusion() - != other.getMapAndBatchFusion()) return false; - break; - case 0: - default: - } - if (!getOptionalMapAndFilterFusionCase().equals(other.getOptionalMapAndFilterFusionCase())) return false; - switch (optionalMapAndFilterFusionCase_) { - case 10: - if (getMapAndFilterFusion() - != other.getMapAndFilterFusion()) return false; - break; - case 0: - default: - } - if (!getOptionalMapFusionCase().equals(other.getOptionalMapFusionCase())) return false; - switch (optionalMapFusionCase_) { - case 11: - if (getMapFusion() - != other.getMapFusion()) return false; - break; - case 0: - default: - } - if (!getOptionalMapParallelizationCase().equals(other.getOptionalMapParallelizationCase())) return false; - switch (optionalMapParallelizationCase_) { - case 12: - if (getMapParallelization() - != other.getMapParallelization()) return false; - break; - case 0: - default: - } - if (!getOptionalNoopEliminationCase().equals(other.getOptionalNoopEliminationCase())) return false; - switch (optionalNoopEliminationCase_) { - case 14: - if (getNoopElimination() - != other.getNoopElimination()) return false; - break; - case 0: - default: - } - if (!getOptionalParallelBatchCase().equals(other.getOptionalParallelBatchCase())) return false; - switch (optionalParallelBatchCase_) { - case 15: - if (getParallelBatch() - != other.getParallelBatch()) return false; - break; - case 0: - default: - } - if (!getOptionalShuffleAndRepeatFusionCase().equals(other.getOptionalShuffleAndRepeatFusionCase())) return false; - switch (optionalShuffleAndRepeatFusionCase_) { - case 17: - if (getShuffleAndRepeatFusion() - != other.getShuffleAndRepeatFusion()) return false; - break; - case 0: - default: - } - if (!getOptionalFilterParallelizationCase().equals(other.getOptionalFilterParallelizationCase())) return false; - switch (optionalFilterParallelizationCase_) { - case 18: - if (getFilterParallelization() - != other.getFilterParallelization()) return false; - break; - case 0: - default: - } - if (!getOptionalInjectPrefetchCase().equals(other.getOptionalInjectPrefetchCase())) return false; - switch (optionalInjectPrefetchCase_) { - case 19: - if (getInjectPrefetch() - != other.getInjectPrefetch()) return false; - break; - case 0: - default: - } - 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(); - switch (optionalApplyDefaultOptimizationsCase_) { - case 1: - hash = (37 * hash) + APPLY_DEFAULT_OPTIMIZATIONS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getApplyDefaultOptimizations()); - break; - case 0: - default: - } - switch (optionalFilterFusionCase_) { - case 6: - hash = (37 * hash) + FILTER_FUSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFilterFusion()); - break; - case 0: - default: - } - switch (optionalMapAndBatchFusionCase_) { - case 9: - hash = (37 * hash) + MAP_AND_BATCH_FUSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getMapAndBatchFusion()); - break; - case 0: - default: - } - switch (optionalMapAndFilterFusionCase_) { - case 10: - hash = (37 * hash) + MAP_AND_FILTER_FUSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getMapAndFilterFusion()); - break; - case 0: - default: - } - switch (optionalMapFusionCase_) { - case 11: - hash = (37 * hash) + MAP_FUSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getMapFusion()); - break; - case 0: - default: - } - switch (optionalMapParallelizationCase_) { - case 12: - hash = (37 * hash) + MAP_PARALLELIZATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getMapParallelization()); - break; - case 0: - default: - } - switch (optionalNoopEliminationCase_) { - case 14: - hash = (37 * hash) + NOOP_ELIMINATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNoopElimination()); - break; - case 0: - default: - } - switch (optionalParallelBatchCase_) { - case 15: - hash = (37 * hash) + PARALLEL_BATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getParallelBatch()); - break; - case 0: - default: - } - switch (optionalShuffleAndRepeatFusionCase_) { - case 17: - hash = (37 * hash) + SHUFFLE_AND_REPEAT_FUSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getShuffleAndRepeatFusion()); - break; - case 0: - default: - } - switch (optionalFilterParallelizationCase_) { - case 18: - hash = (37 * hash) + FILTER_PARALLELIZATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFilterParallelization()); - break; - case 0: - default: - } - switch (optionalInjectPrefetchCase_) { - case 19: - hash = (37 * hash) + INJECT_PREFETCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInjectPrefetch()); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.data.OptimizationOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.OptimizationOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.OptimizationOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.OptimizationOptions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.OptimizationOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.OptimizationOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.OptimizationOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.OptimizationOptions 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 org.tensorflow.proto.data.OptimizationOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.OptimizationOptions 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 org.tensorflow.proto.data.OptimizationOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.OptimizationOptions 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(org.tensorflow.proto.data.OptimizationOptions 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; - } - /** - *
-   * next: 20
-   * 
- * - * Protobuf type {@code tensorflow.data.OptimizationOptions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.data.OptimizationOptions) - org.tensorflow.proto.data.OptimizationOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_OptimizationOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_OptimizationOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.OptimizationOptions.class, org.tensorflow.proto.data.OptimizationOptions.Builder.class); - } - - // Construct using org.tensorflow.proto.data.OptimizationOptions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - optionalApplyDefaultOptimizationsCase_ = 0; - optionalApplyDefaultOptimizations_ = null; - optionalFilterFusionCase_ = 0; - optionalFilterFusion_ = null; - optionalMapAndBatchFusionCase_ = 0; - optionalMapAndBatchFusion_ = null; - optionalMapAndFilterFusionCase_ = 0; - optionalMapAndFilterFusion_ = null; - optionalMapFusionCase_ = 0; - optionalMapFusion_ = null; - optionalMapParallelizationCase_ = 0; - optionalMapParallelization_ = null; - optionalNoopEliminationCase_ = 0; - optionalNoopElimination_ = null; - optionalParallelBatchCase_ = 0; - optionalParallelBatch_ = null; - optionalShuffleAndRepeatFusionCase_ = 0; - optionalShuffleAndRepeatFusion_ = null; - optionalFilterParallelizationCase_ = 0; - optionalFilterParallelization_ = null; - optionalInjectPrefetchCase_ = 0; - optionalInjectPrefetch_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_OptimizationOptions_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.data.OptimizationOptions getDefaultInstanceForType() { - return org.tensorflow.proto.data.OptimizationOptions.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.data.OptimizationOptions build() { - org.tensorflow.proto.data.OptimizationOptions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.data.OptimizationOptions buildPartial() { - org.tensorflow.proto.data.OptimizationOptions result = new org.tensorflow.proto.data.OptimizationOptions(this); - if (optionalApplyDefaultOptimizationsCase_ == 1) { - result.optionalApplyDefaultOptimizations_ = optionalApplyDefaultOptimizations_; - } - if (optionalFilterFusionCase_ == 6) { - result.optionalFilterFusion_ = optionalFilterFusion_; - } - if (optionalMapAndBatchFusionCase_ == 9) { - result.optionalMapAndBatchFusion_ = optionalMapAndBatchFusion_; - } - if (optionalMapAndFilterFusionCase_ == 10) { - result.optionalMapAndFilterFusion_ = optionalMapAndFilterFusion_; - } - if (optionalMapFusionCase_ == 11) { - result.optionalMapFusion_ = optionalMapFusion_; - } - if (optionalMapParallelizationCase_ == 12) { - result.optionalMapParallelization_ = optionalMapParallelization_; - } - if (optionalNoopEliminationCase_ == 14) { - result.optionalNoopElimination_ = optionalNoopElimination_; - } - if (optionalParallelBatchCase_ == 15) { - result.optionalParallelBatch_ = optionalParallelBatch_; - } - if (optionalShuffleAndRepeatFusionCase_ == 17) { - result.optionalShuffleAndRepeatFusion_ = optionalShuffleAndRepeatFusion_; - } - if (optionalFilterParallelizationCase_ == 18) { - result.optionalFilterParallelization_ = optionalFilterParallelization_; - } - if (optionalInjectPrefetchCase_ == 19) { - result.optionalInjectPrefetch_ = optionalInjectPrefetch_; - } - result.optionalApplyDefaultOptimizationsCase_ = optionalApplyDefaultOptimizationsCase_; - result.optionalFilterFusionCase_ = optionalFilterFusionCase_; - result.optionalMapAndBatchFusionCase_ = optionalMapAndBatchFusionCase_; - result.optionalMapAndFilterFusionCase_ = optionalMapAndFilterFusionCase_; - result.optionalMapFusionCase_ = optionalMapFusionCase_; - result.optionalMapParallelizationCase_ = optionalMapParallelizationCase_; - result.optionalNoopEliminationCase_ = optionalNoopEliminationCase_; - result.optionalParallelBatchCase_ = optionalParallelBatchCase_; - result.optionalShuffleAndRepeatFusionCase_ = optionalShuffleAndRepeatFusionCase_; - result.optionalFilterParallelizationCase_ = optionalFilterParallelizationCase_; - result.optionalInjectPrefetchCase_ = optionalInjectPrefetchCase_; - 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 org.tensorflow.proto.data.OptimizationOptions) { - return mergeFrom((org.tensorflow.proto.data.OptimizationOptions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.data.OptimizationOptions other) { - if (other == org.tensorflow.proto.data.OptimizationOptions.getDefaultInstance()) return this; - switch (other.getOptionalApplyDefaultOptimizationsCase()) { - case APPLY_DEFAULT_OPTIMIZATIONS: { - setApplyDefaultOptimizations(other.getApplyDefaultOptimizations()); - break; - } - case OPTIONALAPPLYDEFAULTOPTIMIZATIONS_NOT_SET: { - break; - } - } - switch (other.getOptionalFilterFusionCase()) { - case FILTER_FUSION: { - setFilterFusion(other.getFilterFusion()); - break; - } - case OPTIONALFILTERFUSION_NOT_SET: { - break; - } - } - switch (other.getOptionalMapAndBatchFusionCase()) { - case MAP_AND_BATCH_FUSION: { - setMapAndBatchFusion(other.getMapAndBatchFusion()); - break; - } - case OPTIONALMAPANDBATCHFUSION_NOT_SET: { - break; - } - } - switch (other.getOptionalMapAndFilterFusionCase()) { - case MAP_AND_FILTER_FUSION: { - setMapAndFilterFusion(other.getMapAndFilterFusion()); - break; - } - case OPTIONALMAPANDFILTERFUSION_NOT_SET: { - break; - } - } - switch (other.getOptionalMapFusionCase()) { - case MAP_FUSION: { - setMapFusion(other.getMapFusion()); - break; - } - case OPTIONALMAPFUSION_NOT_SET: { - break; - } - } - switch (other.getOptionalMapParallelizationCase()) { - case MAP_PARALLELIZATION: { - setMapParallelization(other.getMapParallelization()); - break; - } - case OPTIONALMAPPARALLELIZATION_NOT_SET: { - break; - } - } - switch (other.getOptionalNoopEliminationCase()) { - case NOOP_ELIMINATION: { - setNoopElimination(other.getNoopElimination()); - break; - } - case OPTIONALNOOPELIMINATION_NOT_SET: { - break; - } - } - switch (other.getOptionalParallelBatchCase()) { - case PARALLEL_BATCH: { - setParallelBatch(other.getParallelBatch()); - break; - } - case OPTIONALPARALLELBATCH_NOT_SET: { - break; - } - } - switch (other.getOptionalShuffleAndRepeatFusionCase()) { - case SHUFFLE_AND_REPEAT_FUSION: { - setShuffleAndRepeatFusion(other.getShuffleAndRepeatFusion()); - break; - } - case OPTIONALSHUFFLEANDREPEATFUSION_NOT_SET: { - break; - } - } - switch (other.getOptionalFilterParallelizationCase()) { - case FILTER_PARALLELIZATION: { - setFilterParallelization(other.getFilterParallelization()); - break; - } - case OPTIONALFILTERPARALLELIZATION_NOT_SET: { - break; - } - } - switch (other.getOptionalInjectPrefetchCase()) { - case INJECT_PREFETCH: { - setInjectPrefetch(other.getInjectPrefetch()); - break; - } - case OPTIONALINJECTPREFETCH_NOT_SET: { - break; - } - } - 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 { - org.tensorflow.proto.data.OptimizationOptions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.data.OptimizationOptions) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int optionalApplyDefaultOptimizationsCase_ = 0; - private java.lang.Object optionalApplyDefaultOptimizations_; - public OptionalApplyDefaultOptimizationsCase - getOptionalApplyDefaultOptimizationsCase() { - return OptionalApplyDefaultOptimizationsCase.forNumber( - optionalApplyDefaultOptimizationsCase_); - } - - public Builder clearOptionalApplyDefaultOptimizations() { - optionalApplyDefaultOptimizationsCase_ = 0; - optionalApplyDefaultOptimizations_ = null; - onChanged(); - return this; - } - - private int optionalFilterFusionCase_ = 0; - private java.lang.Object optionalFilterFusion_; - public OptionalFilterFusionCase - getOptionalFilterFusionCase() { - return OptionalFilterFusionCase.forNumber( - optionalFilterFusionCase_); - } - - public Builder clearOptionalFilterFusion() { - optionalFilterFusionCase_ = 0; - optionalFilterFusion_ = null; - onChanged(); - return this; - } - - private int optionalMapAndBatchFusionCase_ = 0; - private java.lang.Object optionalMapAndBatchFusion_; - public OptionalMapAndBatchFusionCase - getOptionalMapAndBatchFusionCase() { - return OptionalMapAndBatchFusionCase.forNumber( - optionalMapAndBatchFusionCase_); - } - - public Builder clearOptionalMapAndBatchFusion() { - optionalMapAndBatchFusionCase_ = 0; - optionalMapAndBatchFusion_ = null; - onChanged(); - return this; - } - - private int optionalMapAndFilterFusionCase_ = 0; - private java.lang.Object optionalMapAndFilterFusion_; - public OptionalMapAndFilterFusionCase - getOptionalMapAndFilterFusionCase() { - return OptionalMapAndFilterFusionCase.forNumber( - optionalMapAndFilterFusionCase_); - } - - public Builder clearOptionalMapAndFilterFusion() { - optionalMapAndFilterFusionCase_ = 0; - optionalMapAndFilterFusion_ = null; - onChanged(); - return this; - } - - private int optionalMapFusionCase_ = 0; - private java.lang.Object optionalMapFusion_; - public OptionalMapFusionCase - getOptionalMapFusionCase() { - return OptionalMapFusionCase.forNumber( - optionalMapFusionCase_); - } - - public Builder clearOptionalMapFusion() { - optionalMapFusionCase_ = 0; - optionalMapFusion_ = null; - onChanged(); - return this; - } - - private int optionalMapParallelizationCase_ = 0; - private java.lang.Object optionalMapParallelization_; - public OptionalMapParallelizationCase - getOptionalMapParallelizationCase() { - return OptionalMapParallelizationCase.forNumber( - optionalMapParallelizationCase_); - } - - public Builder clearOptionalMapParallelization() { - optionalMapParallelizationCase_ = 0; - optionalMapParallelization_ = null; - onChanged(); - return this; - } - - private int optionalNoopEliminationCase_ = 0; - private java.lang.Object optionalNoopElimination_; - public OptionalNoopEliminationCase - getOptionalNoopEliminationCase() { - return OptionalNoopEliminationCase.forNumber( - optionalNoopEliminationCase_); - } - - public Builder clearOptionalNoopElimination() { - optionalNoopEliminationCase_ = 0; - optionalNoopElimination_ = null; - onChanged(); - return this; - } - - private int optionalParallelBatchCase_ = 0; - private java.lang.Object optionalParallelBatch_; - public OptionalParallelBatchCase - getOptionalParallelBatchCase() { - return OptionalParallelBatchCase.forNumber( - optionalParallelBatchCase_); - } - - public Builder clearOptionalParallelBatch() { - optionalParallelBatchCase_ = 0; - optionalParallelBatch_ = null; - onChanged(); - return this; - } - - private int optionalShuffleAndRepeatFusionCase_ = 0; - private java.lang.Object optionalShuffleAndRepeatFusion_; - public OptionalShuffleAndRepeatFusionCase - getOptionalShuffleAndRepeatFusionCase() { - return OptionalShuffleAndRepeatFusionCase.forNumber( - optionalShuffleAndRepeatFusionCase_); - } - - public Builder clearOptionalShuffleAndRepeatFusion() { - optionalShuffleAndRepeatFusionCase_ = 0; - optionalShuffleAndRepeatFusion_ = null; - onChanged(); - return this; - } - - private int optionalFilterParallelizationCase_ = 0; - private java.lang.Object optionalFilterParallelization_; - public OptionalFilterParallelizationCase - getOptionalFilterParallelizationCase() { - return OptionalFilterParallelizationCase.forNumber( - optionalFilterParallelizationCase_); - } - - public Builder clearOptionalFilterParallelization() { - optionalFilterParallelizationCase_ = 0; - optionalFilterParallelization_ = null; - onChanged(); - return this; - } - - private int optionalInjectPrefetchCase_ = 0; - private java.lang.Object optionalInjectPrefetch_; - public OptionalInjectPrefetchCase - getOptionalInjectPrefetchCase() { - return OptionalInjectPrefetchCase.forNumber( - optionalInjectPrefetchCase_); - } - - public Builder clearOptionalInjectPrefetch() { - optionalInjectPrefetchCase_ = 0; - optionalInjectPrefetch_ = null; - onChanged(); - return this; - } - - - /** - * bool apply_default_optimizations = 1; - */ - public boolean getApplyDefaultOptimizations() { - if (optionalApplyDefaultOptimizationsCase_ == 1) { - return (java.lang.Boolean) optionalApplyDefaultOptimizations_; - } - return false; - } - /** - * bool apply_default_optimizations = 1; - */ - public Builder setApplyDefaultOptimizations(boolean value) { - optionalApplyDefaultOptimizationsCase_ = 1; - optionalApplyDefaultOptimizations_ = value; - onChanged(); - return this; - } - /** - * bool apply_default_optimizations = 1; - */ - public Builder clearApplyDefaultOptimizations() { - if (optionalApplyDefaultOptimizationsCase_ == 1) { - optionalApplyDefaultOptimizationsCase_ = 0; - optionalApplyDefaultOptimizations_ = null; - onChanged(); - } - return this; - } - - /** - * bool filter_fusion = 6; - */ - public boolean getFilterFusion() { - if (optionalFilterFusionCase_ == 6) { - return (java.lang.Boolean) optionalFilterFusion_; - } - return false; - } - /** - * bool filter_fusion = 6; - */ - public Builder setFilterFusion(boolean value) { - optionalFilterFusionCase_ = 6; - optionalFilterFusion_ = value; - onChanged(); - return this; - } - /** - * bool filter_fusion = 6; - */ - public Builder clearFilterFusion() { - if (optionalFilterFusionCase_ == 6) { - optionalFilterFusionCase_ = 0; - optionalFilterFusion_ = null; - onChanged(); - } - return this; - } - - /** - * bool map_and_batch_fusion = 9; - */ - public boolean getMapAndBatchFusion() { - if (optionalMapAndBatchFusionCase_ == 9) { - return (java.lang.Boolean) optionalMapAndBatchFusion_; - } - return false; - } - /** - * bool map_and_batch_fusion = 9; - */ - public Builder setMapAndBatchFusion(boolean value) { - optionalMapAndBatchFusionCase_ = 9; - optionalMapAndBatchFusion_ = value; - onChanged(); - return this; - } - /** - * bool map_and_batch_fusion = 9; - */ - public Builder clearMapAndBatchFusion() { - if (optionalMapAndBatchFusionCase_ == 9) { - optionalMapAndBatchFusionCase_ = 0; - optionalMapAndBatchFusion_ = null; - onChanged(); - } - return this; - } - - /** - * bool map_and_filter_fusion = 10; - */ - public boolean getMapAndFilterFusion() { - if (optionalMapAndFilterFusionCase_ == 10) { - return (java.lang.Boolean) optionalMapAndFilterFusion_; - } - return false; - } - /** - * bool map_and_filter_fusion = 10; - */ - public Builder setMapAndFilterFusion(boolean value) { - optionalMapAndFilterFusionCase_ = 10; - optionalMapAndFilterFusion_ = value; - onChanged(); - return this; - } - /** - * bool map_and_filter_fusion = 10; - */ - public Builder clearMapAndFilterFusion() { - if (optionalMapAndFilterFusionCase_ == 10) { - optionalMapAndFilterFusionCase_ = 0; - optionalMapAndFilterFusion_ = null; - onChanged(); - } - return this; - } - - /** - * bool map_fusion = 11; - */ - public boolean getMapFusion() { - if (optionalMapFusionCase_ == 11) { - return (java.lang.Boolean) optionalMapFusion_; - } - return false; - } - /** - * bool map_fusion = 11; - */ - public Builder setMapFusion(boolean value) { - optionalMapFusionCase_ = 11; - optionalMapFusion_ = value; - onChanged(); - return this; - } - /** - * bool map_fusion = 11; - */ - public Builder clearMapFusion() { - if (optionalMapFusionCase_ == 11) { - optionalMapFusionCase_ = 0; - optionalMapFusion_ = null; - onChanged(); - } - return this; - } - - /** - * bool map_parallelization = 12; - */ - public boolean getMapParallelization() { - if (optionalMapParallelizationCase_ == 12) { - return (java.lang.Boolean) optionalMapParallelization_; - } - return false; - } - /** - * bool map_parallelization = 12; - */ - public Builder setMapParallelization(boolean value) { - optionalMapParallelizationCase_ = 12; - optionalMapParallelization_ = value; - onChanged(); - return this; - } - /** - * bool map_parallelization = 12; - */ - public Builder clearMapParallelization() { - if (optionalMapParallelizationCase_ == 12) { - optionalMapParallelizationCase_ = 0; - optionalMapParallelization_ = null; - onChanged(); - } - return this; - } - - /** - * bool noop_elimination = 14; - */ - public boolean getNoopElimination() { - if (optionalNoopEliminationCase_ == 14) { - return (java.lang.Boolean) optionalNoopElimination_; - } - return false; - } - /** - * bool noop_elimination = 14; - */ - public Builder setNoopElimination(boolean value) { - optionalNoopEliminationCase_ = 14; - optionalNoopElimination_ = value; - onChanged(); - return this; - } - /** - * bool noop_elimination = 14; - */ - public Builder clearNoopElimination() { - if (optionalNoopEliminationCase_ == 14) { - optionalNoopEliminationCase_ = 0; - optionalNoopElimination_ = null; - onChanged(); - } - return this; - } - - /** - * bool parallel_batch = 15; - */ - public boolean getParallelBatch() { - if (optionalParallelBatchCase_ == 15) { - return (java.lang.Boolean) optionalParallelBatch_; - } - return false; - } - /** - * bool parallel_batch = 15; - */ - public Builder setParallelBatch(boolean value) { - optionalParallelBatchCase_ = 15; - optionalParallelBatch_ = value; - onChanged(); - return this; - } - /** - * bool parallel_batch = 15; - */ - public Builder clearParallelBatch() { - if (optionalParallelBatchCase_ == 15) { - optionalParallelBatchCase_ = 0; - optionalParallelBatch_ = null; - onChanged(); - } - return this; - } - - /** - * bool shuffle_and_repeat_fusion = 17; - */ - public boolean getShuffleAndRepeatFusion() { - if (optionalShuffleAndRepeatFusionCase_ == 17) { - return (java.lang.Boolean) optionalShuffleAndRepeatFusion_; - } - return false; - } - /** - * bool shuffle_and_repeat_fusion = 17; - */ - public Builder setShuffleAndRepeatFusion(boolean value) { - optionalShuffleAndRepeatFusionCase_ = 17; - optionalShuffleAndRepeatFusion_ = value; - onChanged(); - return this; - } - /** - * bool shuffle_and_repeat_fusion = 17; - */ - public Builder clearShuffleAndRepeatFusion() { - if (optionalShuffleAndRepeatFusionCase_ == 17) { - optionalShuffleAndRepeatFusionCase_ = 0; - optionalShuffleAndRepeatFusion_ = null; - onChanged(); - } - return this; - } - - /** - * bool filter_parallelization = 18; - */ - public boolean getFilterParallelization() { - if (optionalFilterParallelizationCase_ == 18) { - return (java.lang.Boolean) optionalFilterParallelization_; - } - return false; - } - /** - * bool filter_parallelization = 18; - */ - public Builder setFilterParallelization(boolean value) { - optionalFilterParallelizationCase_ = 18; - optionalFilterParallelization_ = value; - onChanged(); - return this; - } - /** - * bool filter_parallelization = 18; - */ - public Builder clearFilterParallelization() { - if (optionalFilterParallelizationCase_ == 18) { - optionalFilterParallelizationCase_ = 0; - optionalFilterParallelization_ = null; - onChanged(); - } - return this; - } - - /** - * bool inject_prefetch = 19; - */ - public boolean getInjectPrefetch() { - if (optionalInjectPrefetchCase_ == 19) { - return (java.lang.Boolean) optionalInjectPrefetch_; - } - return false; - } - /** - * bool inject_prefetch = 19; - */ - public Builder setInjectPrefetch(boolean value) { - optionalInjectPrefetchCase_ = 19; - optionalInjectPrefetch_ = value; - onChanged(); - return this; - } - /** - * bool inject_prefetch = 19; - */ - public Builder clearInjectPrefetch() { - if (optionalInjectPrefetchCase_ == 19) { - optionalInjectPrefetchCase_ = 0; - optionalInjectPrefetch_ = null; - 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:tensorflow.data.OptimizationOptions) - } - - // @@protoc_insertion_point(class_scope:tensorflow.data.OptimizationOptions) - private static final org.tensorflow.proto.data.OptimizationOptions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.data.OptimizationOptions(); - } - - public static org.tensorflow.proto.data.OptimizationOptions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OptimizationOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OptimizationOptions(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.data.OptimizationOptions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/OptimizationOptionsOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/OptimizationOptionsOrBuilder.java deleted file mode 100644 index 32a70963d43..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/OptimizationOptionsOrBuilder.java +++ /dev/null @@ -1,86 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/dataset_options.proto - -package org.tensorflow.proto.data; - -public interface OptimizationOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.data.OptimizationOptions) - com.google.protobuf.MessageOrBuilder { - - /** - * bool apply_default_optimizations = 1; - */ - boolean getApplyDefaultOptimizations(); - - /** - * bool filter_fusion = 6; - */ - boolean getFilterFusion(); - - /** - * bool map_and_batch_fusion = 9; - */ - boolean getMapAndBatchFusion(); - - /** - * bool map_and_filter_fusion = 10; - */ - boolean getMapAndFilterFusion(); - - /** - * bool map_fusion = 11; - */ - boolean getMapFusion(); - - /** - * bool map_parallelization = 12; - */ - boolean getMapParallelization(); - - /** - * bool noop_elimination = 14; - */ - boolean getNoopElimination(); - - /** - * bool parallel_batch = 15; - */ - boolean getParallelBatch(); - - /** - * bool shuffle_and_repeat_fusion = 17; - */ - boolean getShuffleAndRepeatFusion(); - - /** - * bool filter_parallelization = 18; - */ - boolean getFilterParallelization(); - - /** - * bool inject_prefetch = 19; - */ - boolean getInjectPrefetch(); - - public org.tensorflow.proto.data.OptimizationOptions.OptionalApplyDefaultOptimizationsCase getOptionalApplyDefaultOptimizationsCase(); - - public org.tensorflow.proto.data.OptimizationOptions.OptionalFilterFusionCase getOptionalFilterFusionCase(); - - public org.tensorflow.proto.data.OptimizationOptions.OptionalMapAndBatchFusionCase getOptionalMapAndBatchFusionCase(); - - public org.tensorflow.proto.data.OptimizationOptions.OptionalMapAndFilterFusionCase getOptionalMapAndFilterFusionCase(); - - public org.tensorflow.proto.data.OptimizationOptions.OptionalMapFusionCase getOptionalMapFusionCase(); - - public org.tensorflow.proto.data.OptimizationOptions.OptionalMapParallelizationCase getOptionalMapParallelizationCase(); - - public org.tensorflow.proto.data.OptimizationOptions.OptionalNoopEliminationCase getOptionalNoopEliminationCase(); - - public org.tensorflow.proto.data.OptimizationOptions.OptionalParallelBatchCase getOptionalParallelBatchCase(); - - public org.tensorflow.proto.data.OptimizationOptions.OptionalShuffleAndRepeatFusionCase getOptionalShuffleAndRepeatFusionCase(); - - public org.tensorflow.proto.data.OptimizationOptions.OptionalFilterParallelizationCase getOptionalFilterParallelizationCase(); - - public org.tensorflow.proto.data.OptimizationOptions.OptionalInjectPrefetchCase getOptionalInjectPrefetchCase(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/Options.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/Options.java deleted file mode 100644 index 7ce0ed3aa29..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/Options.java +++ /dev/null @@ -1,1798 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/dataset_options.proto - -package org.tensorflow.proto.data; - -/** - *
- * Message stored with Dataset objects to control how datasets are processed and
- * optimized.
- * next: 8
- * 
- * - * Protobuf type {@code tensorflow.data.Options} - */ -public final class Options extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.data.Options) - OptionsOrBuilder { -private static final long serialVersionUID = 0L; - // Use Options.newBuilder() to construct. - private Options(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Options() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Options(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Options( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - optionalDeterministicCase_ = 1; - optionalDeterministic_ = input.readBool(); - break; - } - case 18: { - org.tensorflow.proto.data.DistributeOptions.Builder subBuilder = null; - if (distributeOptions_ != null) { - subBuilder = distributeOptions_.toBuilder(); - } - distributeOptions_ = input.readMessage(org.tensorflow.proto.data.DistributeOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(distributeOptions_); - distributeOptions_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - org.tensorflow.proto.data.OptimizationOptions.Builder subBuilder = null; - if (optimizationOptions_ != null) { - subBuilder = optimizationOptions_.toBuilder(); - } - optimizationOptions_ = input.readMessage(org.tensorflow.proto.data.OptimizationOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(optimizationOptions_); - optimizationOptions_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - optionalSlackCase_ = 4; - optionalSlack_ = input.readBool(); - break; - } - case 42: { - org.tensorflow.proto.data.ThreadingOptions.Builder subBuilder = null; - if (threadingOptions_ != null) { - subBuilder = threadingOptions_.toBuilder(); - } - threadingOptions_ = input.readMessage(org.tensorflow.proto.data.ThreadingOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(threadingOptions_); - threadingOptions_ = subBuilder.buildPartial(); - } - - break; - } - case 48: { - int rawValue = input.readEnum(); - optionalExternalStatePolicyCase_ = 6; - optionalExternalStatePolicy_ = rawValue; - break; - } - case 58: { - org.tensorflow.proto.data.AutotuneOptions.Builder subBuilder = null; - if (autotuneOptions_ != null) { - subBuilder = autotuneOptions_.toBuilder(); - } - autotuneOptions_ = input.readMessage(org.tensorflow.proto.data.AutotuneOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(autotuneOptions_); - autotuneOptions_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_Options_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_Options_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.Options.class, org.tensorflow.proto.data.Options.Builder.class); - } - - private int optionalDeterministicCase_ = 0; - private java.lang.Object optionalDeterministic_; - public enum OptionalDeterministicCase - implements com.google.protobuf.Internal.EnumLite { - DETERMINISTIC(1), - OPTIONALDETERMINISTIC_NOT_SET(0); - private final int value; - private OptionalDeterministicCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionalDeterministicCase valueOf(int value) { - return forNumber(value); - } - - public static OptionalDeterministicCase forNumber(int value) { - switch (value) { - case 1: return DETERMINISTIC; - case 0: return OPTIONALDETERMINISTIC_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionalDeterministicCase - getOptionalDeterministicCase() { - return OptionalDeterministicCase.forNumber( - optionalDeterministicCase_); - } - - private int optionalSlackCase_ = 0; - private java.lang.Object optionalSlack_; - public enum OptionalSlackCase - implements com.google.protobuf.Internal.EnumLite { - SLACK(4), - OPTIONALSLACK_NOT_SET(0); - private final int value; - private OptionalSlackCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionalSlackCase valueOf(int value) { - return forNumber(value); - } - - public static OptionalSlackCase forNumber(int value) { - switch (value) { - case 4: return SLACK; - case 0: return OPTIONALSLACK_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionalSlackCase - getOptionalSlackCase() { - return OptionalSlackCase.forNumber( - optionalSlackCase_); - } - - private int optionalExternalStatePolicyCase_ = 0; - private java.lang.Object optionalExternalStatePolicy_; - public enum OptionalExternalStatePolicyCase - implements com.google.protobuf.Internal.EnumLite { - EXTERNAL_STATE_POLICY(6), - OPTIONALEXTERNALSTATEPOLICY_NOT_SET(0); - private final int value; - private OptionalExternalStatePolicyCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionalExternalStatePolicyCase valueOf(int value) { - return forNumber(value); - } - - public static OptionalExternalStatePolicyCase forNumber(int value) { - switch (value) { - case 6: return EXTERNAL_STATE_POLICY; - case 0: return OPTIONALEXTERNALSTATEPOLICY_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionalExternalStatePolicyCase - getOptionalExternalStatePolicyCase() { - return OptionalExternalStatePolicyCase.forNumber( - optionalExternalStatePolicyCase_); - } - - public static final int DETERMINISTIC_FIELD_NUMBER = 1; - /** - * bool deterministic = 1; - */ - public boolean getDeterministic() { - if (optionalDeterministicCase_ == 1) { - return (java.lang.Boolean) optionalDeterministic_; - } - return false; - } - - public static final int AUTOTUNE_OPTIONS_FIELD_NUMBER = 7; - private org.tensorflow.proto.data.AutotuneOptions autotuneOptions_; - /** - *
-   * The distribution strategy options associated with the dataset.
-   * 
- * - * .tensorflow.data.AutotuneOptions autotune_options = 7; - */ - public boolean hasAutotuneOptions() { - return autotuneOptions_ != null; - } - /** - *
-   * The distribution strategy options associated with the dataset.
-   * 
- * - * .tensorflow.data.AutotuneOptions autotune_options = 7; - */ - public org.tensorflow.proto.data.AutotuneOptions getAutotuneOptions() { - return autotuneOptions_ == null ? org.tensorflow.proto.data.AutotuneOptions.getDefaultInstance() : autotuneOptions_; - } - /** - *
-   * The distribution strategy options associated with the dataset.
-   * 
- * - * .tensorflow.data.AutotuneOptions autotune_options = 7; - */ - public org.tensorflow.proto.data.AutotuneOptionsOrBuilder getAutotuneOptionsOrBuilder() { - return getAutotuneOptions(); - } - - public static final int DISTRIBUTE_OPTIONS_FIELD_NUMBER = 2; - private org.tensorflow.proto.data.DistributeOptions distributeOptions_; - /** - *
-   * The distribution strategy options associated with the dataset.
-   * 
- * - * .tensorflow.data.DistributeOptions distribute_options = 2; - */ - public boolean hasDistributeOptions() { - return distributeOptions_ != null; - } - /** - *
-   * The distribution strategy options associated with the dataset.
-   * 
- * - * .tensorflow.data.DistributeOptions distribute_options = 2; - */ - public org.tensorflow.proto.data.DistributeOptions getDistributeOptions() { - return distributeOptions_ == null ? org.tensorflow.proto.data.DistributeOptions.getDefaultInstance() : distributeOptions_; - } - /** - *
-   * The distribution strategy options associated with the dataset.
-   * 
- * - * .tensorflow.data.DistributeOptions distribute_options = 2; - */ - public org.tensorflow.proto.data.DistributeOptionsOrBuilder getDistributeOptionsOrBuilder() { - return getDistributeOptions(); - } - - public static final int OPTIMIZATION_OPTIONS_FIELD_NUMBER = 3; - private org.tensorflow.proto.data.OptimizationOptions optimizationOptions_; - /** - *
-   * The optimization options associated with the dataset.
-   * 
- * - * .tensorflow.data.OptimizationOptions optimization_options = 3; - */ - public boolean hasOptimizationOptions() { - return optimizationOptions_ != null; - } - /** - *
-   * The optimization options associated with the dataset.
-   * 
- * - * .tensorflow.data.OptimizationOptions optimization_options = 3; - */ - public org.tensorflow.proto.data.OptimizationOptions getOptimizationOptions() { - return optimizationOptions_ == null ? org.tensorflow.proto.data.OptimizationOptions.getDefaultInstance() : optimizationOptions_; - } - /** - *
-   * The optimization options associated with the dataset.
-   * 
- * - * .tensorflow.data.OptimizationOptions optimization_options = 3; - */ - public org.tensorflow.proto.data.OptimizationOptionsOrBuilder getOptimizationOptionsOrBuilder() { - return getOptimizationOptions(); - } - - public static final int SLACK_FIELD_NUMBER = 4; - /** - * bool slack = 4; - */ - public boolean getSlack() { - if (optionalSlackCase_ == 4) { - return (java.lang.Boolean) optionalSlack_; - } - return false; - } - - public static final int THREADING_OPTIONS_FIELD_NUMBER = 5; - private org.tensorflow.proto.data.ThreadingOptions threadingOptions_; - /** - *
-   * The threading options associated with the dataset.
-   * 
- * - * .tensorflow.data.ThreadingOptions threading_options = 5; - */ - public boolean hasThreadingOptions() { - return threadingOptions_ != null; - } - /** - *
-   * The threading options associated with the dataset.
-   * 
- * - * .tensorflow.data.ThreadingOptions threading_options = 5; - */ - public org.tensorflow.proto.data.ThreadingOptions getThreadingOptions() { - return threadingOptions_ == null ? org.tensorflow.proto.data.ThreadingOptions.getDefaultInstance() : threadingOptions_; - } - /** - *
-   * The threading options associated with the dataset.
-   * 
- * - * .tensorflow.data.ThreadingOptions threading_options = 5; - */ - public org.tensorflow.proto.data.ThreadingOptionsOrBuilder getThreadingOptionsOrBuilder() { - return getThreadingOptions(); - } - - public static final int EXTERNAL_STATE_POLICY_FIELD_NUMBER = 6; - /** - * .tensorflow.data.ExternalStatePolicy external_state_policy = 6; - */ - public int getExternalStatePolicyValue() { - if (optionalExternalStatePolicyCase_ == 6) { - return (java.lang.Integer) optionalExternalStatePolicy_; - } - return 0; - } - /** - * .tensorflow.data.ExternalStatePolicy external_state_policy = 6; - */ - public org.tensorflow.proto.data.ExternalStatePolicy getExternalStatePolicy() { - if (optionalExternalStatePolicyCase_ == 6) { - @SuppressWarnings("deprecation") - org.tensorflow.proto.data.ExternalStatePolicy result = org.tensorflow.proto.data.ExternalStatePolicy.valueOf( - (java.lang.Integer) optionalExternalStatePolicy_); - return result == null ? org.tensorflow.proto.data.ExternalStatePolicy.UNRECOGNIZED : result; - } - return org.tensorflow.proto.data.ExternalStatePolicy.POLICY_WARN; - } - - 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 (optionalDeterministicCase_ == 1) { - output.writeBool( - 1, (boolean)((java.lang.Boolean) optionalDeterministic_)); - } - if (distributeOptions_ != null) { - output.writeMessage(2, getDistributeOptions()); - } - if (optimizationOptions_ != null) { - output.writeMessage(3, getOptimizationOptions()); - } - if (optionalSlackCase_ == 4) { - output.writeBool( - 4, (boolean)((java.lang.Boolean) optionalSlack_)); - } - if (threadingOptions_ != null) { - output.writeMessage(5, getThreadingOptions()); - } - if (optionalExternalStatePolicyCase_ == 6) { - output.writeEnum(6, ((java.lang.Integer) optionalExternalStatePolicy_)); - } - if (autotuneOptions_ != null) { - output.writeMessage(7, getAutotuneOptions()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (optionalDeterministicCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 1, (boolean)((java.lang.Boolean) optionalDeterministic_)); - } - if (distributeOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDistributeOptions()); - } - if (optimizationOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getOptimizationOptions()); - } - if (optionalSlackCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 4, (boolean)((java.lang.Boolean) optionalSlack_)); - } - if (threadingOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getThreadingOptions()); - } - if (optionalExternalStatePolicyCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, ((java.lang.Integer) optionalExternalStatePolicy_)); - } - if (autotuneOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getAutotuneOptions()); - } - 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 org.tensorflow.proto.data.Options)) { - return super.equals(obj); - } - org.tensorflow.proto.data.Options other = (org.tensorflow.proto.data.Options) obj; - - if (hasAutotuneOptions() != other.hasAutotuneOptions()) return false; - if (hasAutotuneOptions()) { - if (!getAutotuneOptions() - .equals(other.getAutotuneOptions())) return false; - } - if (hasDistributeOptions() != other.hasDistributeOptions()) return false; - if (hasDistributeOptions()) { - if (!getDistributeOptions() - .equals(other.getDistributeOptions())) return false; - } - if (hasOptimizationOptions() != other.hasOptimizationOptions()) return false; - if (hasOptimizationOptions()) { - if (!getOptimizationOptions() - .equals(other.getOptimizationOptions())) return false; - } - if (hasThreadingOptions() != other.hasThreadingOptions()) return false; - if (hasThreadingOptions()) { - if (!getThreadingOptions() - .equals(other.getThreadingOptions())) return false; - } - if (!getOptionalDeterministicCase().equals(other.getOptionalDeterministicCase())) return false; - switch (optionalDeterministicCase_) { - case 1: - if (getDeterministic() - != other.getDeterministic()) return false; - break; - case 0: - default: - } - if (!getOptionalSlackCase().equals(other.getOptionalSlackCase())) return false; - switch (optionalSlackCase_) { - case 4: - if (getSlack() - != other.getSlack()) return false; - break; - case 0: - default: - } - if (!getOptionalExternalStatePolicyCase().equals(other.getOptionalExternalStatePolicyCase())) return false; - switch (optionalExternalStatePolicyCase_) { - case 6: - if (getExternalStatePolicyValue() - != other.getExternalStatePolicyValue()) return false; - break; - case 0: - default: - } - 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 (hasAutotuneOptions()) { - hash = (37 * hash) + AUTOTUNE_OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getAutotuneOptions().hashCode(); - } - if (hasDistributeOptions()) { - hash = (37 * hash) + DISTRIBUTE_OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getDistributeOptions().hashCode(); - } - if (hasOptimizationOptions()) { - hash = (37 * hash) + OPTIMIZATION_OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getOptimizationOptions().hashCode(); - } - if (hasThreadingOptions()) { - hash = (37 * hash) + THREADING_OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getThreadingOptions().hashCode(); - } - switch (optionalDeterministicCase_) { - case 1: - hash = (37 * hash) + DETERMINISTIC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDeterministic()); - break; - case 0: - default: - } - switch (optionalSlackCase_) { - case 4: - hash = (37 * hash) + SLACK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSlack()); - break; - case 0: - default: - } - switch (optionalExternalStatePolicyCase_) { - case 6: - hash = (37 * hash) + EXTERNAL_STATE_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getExternalStatePolicyValue(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.data.Options parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.Options parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.Options parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.Options parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.Options parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.Options parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.Options parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.Options 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 org.tensorflow.proto.data.Options parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.Options 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 org.tensorflow.proto.data.Options parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.Options 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(org.tensorflow.proto.data.Options 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; - } - /** - *
-   * Message stored with Dataset objects to control how datasets are processed and
-   * optimized.
-   * next: 8
-   * 
- * - * Protobuf type {@code tensorflow.data.Options} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.data.Options) - org.tensorflow.proto.data.OptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_Options_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_Options_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.Options.class, org.tensorflow.proto.data.Options.Builder.class); - } - - // Construct using org.tensorflow.proto.data.Options.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (autotuneOptionsBuilder_ == null) { - autotuneOptions_ = null; - } else { - autotuneOptions_ = null; - autotuneOptionsBuilder_ = null; - } - if (distributeOptionsBuilder_ == null) { - distributeOptions_ = null; - } else { - distributeOptions_ = null; - distributeOptionsBuilder_ = null; - } - if (optimizationOptionsBuilder_ == null) { - optimizationOptions_ = null; - } else { - optimizationOptions_ = null; - optimizationOptionsBuilder_ = null; - } - if (threadingOptionsBuilder_ == null) { - threadingOptions_ = null; - } else { - threadingOptions_ = null; - threadingOptionsBuilder_ = null; - } - optionalDeterministicCase_ = 0; - optionalDeterministic_ = null; - optionalSlackCase_ = 0; - optionalSlack_ = null; - optionalExternalStatePolicyCase_ = 0; - optionalExternalStatePolicy_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_Options_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.data.Options getDefaultInstanceForType() { - return org.tensorflow.proto.data.Options.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.data.Options build() { - org.tensorflow.proto.data.Options result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.data.Options buildPartial() { - org.tensorflow.proto.data.Options result = new org.tensorflow.proto.data.Options(this); - if (optionalDeterministicCase_ == 1) { - result.optionalDeterministic_ = optionalDeterministic_; - } - if (autotuneOptionsBuilder_ == null) { - result.autotuneOptions_ = autotuneOptions_; - } else { - result.autotuneOptions_ = autotuneOptionsBuilder_.build(); - } - if (distributeOptionsBuilder_ == null) { - result.distributeOptions_ = distributeOptions_; - } else { - result.distributeOptions_ = distributeOptionsBuilder_.build(); - } - if (optimizationOptionsBuilder_ == null) { - result.optimizationOptions_ = optimizationOptions_; - } else { - result.optimizationOptions_ = optimizationOptionsBuilder_.build(); - } - if (optionalSlackCase_ == 4) { - result.optionalSlack_ = optionalSlack_; - } - if (threadingOptionsBuilder_ == null) { - result.threadingOptions_ = threadingOptions_; - } else { - result.threadingOptions_ = threadingOptionsBuilder_.build(); - } - if (optionalExternalStatePolicyCase_ == 6) { - result.optionalExternalStatePolicy_ = optionalExternalStatePolicy_; - } - result.optionalDeterministicCase_ = optionalDeterministicCase_; - result.optionalSlackCase_ = optionalSlackCase_; - result.optionalExternalStatePolicyCase_ = optionalExternalStatePolicyCase_; - 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 org.tensorflow.proto.data.Options) { - return mergeFrom((org.tensorflow.proto.data.Options)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.data.Options other) { - if (other == org.tensorflow.proto.data.Options.getDefaultInstance()) return this; - if (other.hasAutotuneOptions()) { - mergeAutotuneOptions(other.getAutotuneOptions()); - } - if (other.hasDistributeOptions()) { - mergeDistributeOptions(other.getDistributeOptions()); - } - if (other.hasOptimizationOptions()) { - mergeOptimizationOptions(other.getOptimizationOptions()); - } - if (other.hasThreadingOptions()) { - mergeThreadingOptions(other.getThreadingOptions()); - } - switch (other.getOptionalDeterministicCase()) { - case DETERMINISTIC: { - setDeterministic(other.getDeterministic()); - break; - } - case OPTIONALDETERMINISTIC_NOT_SET: { - break; - } - } - switch (other.getOptionalSlackCase()) { - case SLACK: { - setSlack(other.getSlack()); - break; - } - case OPTIONALSLACK_NOT_SET: { - break; - } - } - switch (other.getOptionalExternalStatePolicyCase()) { - case EXTERNAL_STATE_POLICY: { - setExternalStatePolicyValue(other.getExternalStatePolicyValue()); - break; - } - case OPTIONALEXTERNALSTATEPOLICY_NOT_SET: { - break; - } - } - 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 { - org.tensorflow.proto.data.Options parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.data.Options) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int optionalDeterministicCase_ = 0; - private java.lang.Object optionalDeterministic_; - public OptionalDeterministicCase - getOptionalDeterministicCase() { - return OptionalDeterministicCase.forNumber( - optionalDeterministicCase_); - } - - public Builder clearOptionalDeterministic() { - optionalDeterministicCase_ = 0; - optionalDeterministic_ = null; - onChanged(); - return this; - } - - private int optionalSlackCase_ = 0; - private java.lang.Object optionalSlack_; - public OptionalSlackCase - getOptionalSlackCase() { - return OptionalSlackCase.forNumber( - optionalSlackCase_); - } - - public Builder clearOptionalSlack() { - optionalSlackCase_ = 0; - optionalSlack_ = null; - onChanged(); - return this; - } - - private int optionalExternalStatePolicyCase_ = 0; - private java.lang.Object optionalExternalStatePolicy_; - public OptionalExternalStatePolicyCase - getOptionalExternalStatePolicyCase() { - return OptionalExternalStatePolicyCase.forNumber( - optionalExternalStatePolicyCase_); - } - - public Builder clearOptionalExternalStatePolicy() { - optionalExternalStatePolicyCase_ = 0; - optionalExternalStatePolicy_ = null; - onChanged(); - return this; - } - - - /** - * bool deterministic = 1; - */ - public boolean getDeterministic() { - if (optionalDeterministicCase_ == 1) { - return (java.lang.Boolean) optionalDeterministic_; - } - return false; - } - /** - * bool deterministic = 1; - */ - public Builder setDeterministic(boolean value) { - optionalDeterministicCase_ = 1; - optionalDeterministic_ = value; - onChanged(); - return this; - } - /** - * bool deterministic = 1; - */ - public Builder clearDeterministic() { - if (optionalDeterministicCase_ == 1) { - optionalDeterministicCase_ = 0; - optionalDeterministic_ = null; - onChanged(); - } - return this; - } - - private org.tensorflow.proto.data.AutotuneOptions autotuneOptions_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.data.AutotuneOptions, org.tensorflow.proto.data.AutotuneOptions.Builder, org.tensorflow.proto.data.AutotuneOptionsOrBuilder> autotuneOptionsBuilder_; - /** - *
-     * The distribution strategy options associated with the dataset.
-     * 
- * - * .tensorflow.data.AutotuneOptions autotune_options = 7; - */ - public boolean hasAutotuneOptions() { - return autotuneOptionsBuilder_ != null || autotuneOptions_ != null; - } - /** - *
-     * The distribution strategy options associated with the dataset.
-     * 
- * - * .tensorflow.data.AutotuneOptions autotune_options = 7; - */ - public org.tensorflow.proto.data.AutotuneOptions getAutotuneOptions() { - if (autotuneOptionsBuilder_ == null) { - return autotuneOptions_ == null ? org.tensorflow.proto.data.AutotuneOptions.getDefaultInstance() : autotuneOptions_; - } else { - return autotuneOptionsBuilder_.getMessage(); - } - } - /** - *
-     * The distribution strategy options associated with the dataset.
-     * 
- * - * .tensorflow.data.AutotuneOptions autotune_options = 7; - */ - public Builder setAutotuneOptions(org.tensorflow.proto.data.AutotuneOptions value) { - if (autotuneOptionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autotuneOptions_ = value; - onChanged(); - } else { - autotuneOptionsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The distribution strategy options associated with the dataset.
-     * 
- * - * .tensorflow.data.AutotuneOptions autotune_options = 7; - */ - public Builder setAutotuneOptions( - org.tensorflow.proto.data.AutotuneOptions.Builder builderForValue) { - if (autotuneOptionsBuilder_ == null) { - autotuneOptions_ = builderForValue.build(); - onChanged(); - } else { - autotuneOptionsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The distribution strategy options associated with the dataset.
-     * 
- * - * .tensorflow.data.AutotuneOptions autotune_options = 7; - */ - public Builder mergeAutotuneOptions(org.tensorflow.proto.data.AutotuneOptions value) { - if (autotuneOptionsBuilder_ == null) { - if (autotuneOptions_ != null) { - autotuneOptions_ = - org.tensorflow.proto.data.AutotuneOptions.newBuilder(autotuneOptions_).mergeFrom(value).buildPartial(); - } else { - autotuneOptions_ = value; - } - onChanged(); - } else { - autotuneOptionsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The distribution strategy options associated with the dataset.
-     * 
- * - * .tensorflow.data.AutotuneOptions autotune_options = 7; - */ - public Builder clearAutotuneOptions() { - if (autotuneOptionsBuilder_ == null) { - autotuneOptions_ = null; - onChanged(); - } else { - autotuneOptions_ = null; - autotuneOptionsBuilder_ = null; - } - - return this; - } - /** - *
-     * The distribution strategy options associated with the dataset.
-     * 
- * - * .tensorflow.data.AutotuneOptions autotune_options = 7; - */ - public org.tensorflow.proto.data.AutotuneOptions.Builder getAutotuneOptionsBuilder() { - - onChanged(); - return getAutotuneOptionsFieldBuilder().getBuilder(); - } - /** - *
-     * The distribution strategy options associated with the dataset.
-     * 
- * - * .tensorflow.data.AutotuneOptions autotune_options = 7; - */ - public org.tensorflow.proto.data.AutotuneOptionsOrBuilder getAutotuneOptionsOrBuilder() { - if (autotuneOptionsBuilder_ != null) { - return autotuneOptionsBuilder_.getMessageOrBuilder(); - } else { - return autotuneOptions_ == null ? - org.tensorflow.proto.data.AutotuneOptions.getDefaultInstance() : autotuneOptions_; - } - } - /** - *
-     * The distribution strategy options associated with the dataset.
-     * 
- * - * .tensorflow.data.AutotuneOptions autotune_options = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.data.AutotuneOptions, org.tensorflow.proto.data.AutotuneOptions.Builder, org.tensorflow.proto.data.AutotuneOptionsOrBuilder> - getAutotuneOptionsFieldBuilder() { - if (autotuneOptionsBuilder_ == null) { - autotuneOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.data.AutotuneOptions, org.tensorflow.proto.data.AutotuneOptions.Builder, org.tensorflow.proto.data.AutotuneOptionsOrBuilder>( - getAutotuneOptions(), - getParentForChildren(), - isClean()); - autotuneOptions_ = null; - } - return autotuneOptionsBuilder_; - } - - private org.tensorflow.proto.data.DistributeOptions distributeOptions_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.data.DistributeOptions, org.tensorflow.proto.data.DistributeOptions.Builder, org.tensorflow.proto.data.DistributeOptionsOrBuilder> distributeOptionsBuilder_; - /** - *
-     * The distribution strategy options associated with the dataset.
-     * 
- * - * .tensorflow.data.DistributeOptions distribute_options = 2; - */ - public boolean hasDistributeOptions() { - return distributeOptionsBuilder_ != null || distributeOptions_ != null; - } - /** - *
-     * The distribution strategy options associated with the dataset.
-     * 
- * - * .tensorflow.data.DistributeOptions distribute_options = 2; - */ - public org.tensorflow.proto.data.DistributeOptions getDistributeOptions() { - if (distributeOptionsBuilder_ == null) { - return distributeOptions_ == null ? org.tensorflow.proto.data.DistributeOptions.getDefaultInstance() : distributeOptions_; - } else { - return distributeOptionsBuilder_.getMessage(); - } - } - /** - *
-     * The distribution strategy options associated with the dataset.
-     * 
- * - * .tensorflow.data.DistributeOptions distribute_options = 2; - */ - public Builder setDistributeOptions(org.tensorflow.proto.data.DistributeOptions value) { - if (distributeOptionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - distributeOptions_ = value; - onChanged(); - } else { - distributeOptionsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The distribution strategy options associated with the dataset.
-     * 
- * - * .tensorflow.data.DistributeOptions distribute_options = 2; - */ - public Builder setDistributeOptions( - org.tensorflow.proto.data.DistributeOptions.Builder builderForValue) { - if (distributeOptionsBuilder_ == null) { - distributeOptions_ = builderForValue.build(); - onChanged(); - } else { - distributeOptionsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The distribution strategy options associated with the dataset.
-     * 
- * - * .tensorflow.data.DistributeOptions distribute_options = 2; - */ - public Builder mergeDistributeOptions(org.tensorflow.proto.data.DistributeOptions value) { - if (distributeOptionsBuilder_ == null) { - if (distributeOptions_ != null) { - distributeOptions_ = - org.tensorflow.proto.data.DistributeOptions.newBuilder(distributeOptions_).mergeFrom(value).buildPartial(); - } else { - distributeOptions_ = value; - } - onChanged(); - } else { - distributeOptionsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The distribution strategy options associated with the dataset.
-     * 
- * - * .tensorflow.data.DistributeOptions distribute_options = 2; - */ - public Builder clearDistributeOptions() { - if (distributeOptionsBuilder_ == null) { - distributeOptions_ = null; - onChanged(); - } else { - distributeOptions_ = null; - distributeOptionsBuilder_ = null; - } - - return this; - } - /** - *
-     * The distribution strategy options associated with the dataset.
-     * 
- * - * .tensorflow.data.DistributeOptions distribute_options = 2; - */ - public org.tensorflow.proto.data.DistributeOptions.Builder getDistributeOptionsBuilder() { - - onChanged(); - return getDistributeOptionsFieldBuilder().getBuilder(); - } - /** - *
-     * The distribution strategy options associated with the dataset.
-     * 
- * - * .tensorflow.data.DistributeOptions distribute_options = 2; - */ - public org.tensorflow.proto.data.DistributeOptionsOrBuilder getDistributeOptionsOrBuilder() { - if (distributeOptionsBuilder_ != null) { - return distributeOptionsBuilder_.getMessageOrBuilder(); - } else { - return distributeOptions_ == null ? - org.tensorflow.proto.data.DistributeOptions.getDefaultInstance() : distributeOptions_; - } - } - /** - *
-     * The distribution strategy options associated with the dataset.
-     * 
- * - * .tensorflow.data.DistributeOptions distribute_options = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.data.DistributeOptions, org.tensorflow.proto.data.DistributeOptions.Builder, org.tensorflow.proto.data.DistributeOptionsOrBuilder> - getDistributeOptionsFieldBuilder() { - if (distributeOptionsBuilder_ == null) { - distributeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.data.DistributeOptions, org.tensorflow.proto.data.DistributeOptions.Builder, org.tensorflow.proto.data.DistributeOptionsOrBuilder>( - getDistributeOptions(), - getParentForChildren(), - isClean()); - distributeOptions_ = null; - } - return distributeOptionsBuilder_; - } - - private org.tensorflow.proto.data.OptimizationOptions optimizationOptions_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.data.OptimizationOptions, org.tensorflow.proto.data.OptimizationOptions.Builder, org.tensorflow.proto.data.OptimizationOptionsOrBuilder> optimizationOptionsBuilder_; - /** - *
-     * The optimization options associated with the dataset.
-     * 
- * - * .tensorflow.data.OptimizationOptions optimization_options = 3; - */ - public boolean hasOptimizationOptions() { - return optimizationOptionsBuilder_ != null || optimizationOptions_ != null; - } - /** - *
-     * The optimization options associated with the dataset.
-     * 
- * - * .tensorflow.data.OptimizationOptions optimization_options = 3; - */ - public org.tensorflow.proto.data.OptimizationOptions getOptimizationOptions() { - if (optimizationOptionsBuilder_ == null) { - return optimizationOptions_ == null ? org.tensorflow.proto.data.OptimizationOptions.getDefaultInstance() : optimizationOptions_; - } else { - return optimizationOptionsBuilder_.getMessage(); - } - } - /** - *
-     * The optimization options associated with the dataset.
-     * 
- * - * .tensorflow.data.OptimizationOptions optimization_options = 3; - */ - public Builder setOptimizationOptions(org.tensorflow.proto.data.OptimizationOptions value) { - if (optimizationOptionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - optimizationOptions_ = value; - onChanged(); - } else { - optimizationOptionsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The optimization options associated with the dataset.
-     * 
- * - * .tensorflow.data.OptimizationOptions optimization_options = 3; - */ - public Builder setOptimizationOptions( - org.tensorflow.proto.data.OptimizationOptions.Builder builderForValue) { - if (optimizationOptionsBuilder_ == null) { - optimizationOptions_ = builderForValue.build(); - onChanged(); - } else { - optimizationOptionsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The optimization options associated with the dataset.
-     * 
- * - * .tensorflow.data.OptimizationOptions optimization_options = 3; - */ - public Builder mergeOptimizationOptions(org.tensorflow.proto.data.OptimizationOptions value) { - if (optimizationOptionsBuilder_ == null) { - if (optimizationOptions_ != null) { - optimizationOptions_ = - org.tensorflow.proto.data.OptimizationOptions.newBuilder(optimizationOptions_).mergeFrom(value).buildPartial(); - } else { - optimizationOptions_ = value; - } - onChanged(); - } else { - optimizationOptionsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The optimization options associated with the dataset.
-     * 
- * - * .tensorflow.data.OptimizationOptions optimization_options = 3; - */ - public Builder clearOptimizationOptions() { - if (optimizationOptionsBuilder_ == null) { - optimizationOptions_ = null; - onChanged(); - } else { - optimizationOptions_ = null; - optimizationOptionsBuilder_ = null; - } - - return this; - } - /** - *
-     * The optimization options associated with the dataset.
-     * 
- * - * .tensorflow.data.OptimizationOptions optimization_options = 3; - */ - public org.tensorflow.proto.data.OptimizationOptions.Builder getOptimizationOptionsBuilder() { - - onChanged(); - return getOptimizationOptionsFieldBuilder().getBuilder(); - } - /** - *
-     * The optimization options associated with the dataset.
-     * 
- * - * .tensorflow.data.OptimizationOptions optimization_options = 3; - */ - public org.tensorflow.proto.data.OptimizationOptionsOrBuilder getOptimizationOptionsOrBuilder() { - if (optimizationOptionsBuilder_ != null) { - return optimizationOptionsBuilder_.getMessageOrBuilder(); - } else { - return optimizationOptions_ == null ? - org.tensorflow.proto.data.OptimizationOptions.getDefaultInstance() : optimizationOptions_; - } - } - /** - *
-     * The optimization options associated with the dataset.
-     * 
- * - * .tensorflow.data.OptimizationOptions optimization_options = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.data.OptimizationOptions, org.tensorflow.proto.data.OptimizationOptions.Builder, org.tensorflow.proto.data.OptimizationOptionsOrBuilder> - getOptimizationOptionsFieldBuilder() { - if (optimizationOptionsBuilder_ == null) { - optimizationOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.data.OptimizationOptions, org.tensorflow.proto.data.OptimizationOptions.Builder, org.tensorflow.proto.data.OptimizationOptionsOrBuilder>( - getOptimizationOptions(), - getParentForChildren(), - isClean()); - optimizationOptions_ = null; - } - return optimizationOptionsBuilder_; - } - - /** - * bool slack = 4; - */ - public boolean getSlack() { - if (optionalSlackCase_ == 4) { - return (java.lang.Boolean) optionalSlack_; - } - return false; - } - /** - * bool slack = 4; - */ - public Builder setSlack(boolean value) { - optionalSlackCase_ = 4; - optionalSlack_ = value; - onChanged(); - return this; - } - /** - * bool slack = 4; - */ - public Builder clearSlack() { - if (optionalSlackCase_ == 4) { - optionalSlackCase_ = 0; - optionalSlack_ = null; - onChanged(); - } - return this; - } - - private org.tensorflow.proto.data.ThreadingOptions threadingOptions_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.data.ThreadingOptions, org.tensorflow.proto.data.ThreadingOptions.Builder, org.tensorflow.proto.data.ThreadingOptionsOrBuilder> threadingOptionsBuilder_; - /** - *
-     * The threading options associated with the dataset.
-     * 
- * - * .tensorflow.data.ThreadingOptions threading_options = 5; - */ - public boolean hasThreadingOptions() { - return threadingOptionsBuilder_ != null || threadingOptions_ != null; - } - /** - *
-     * The threading options associated with the dataset.
-     * 
- * - * .tensorflow.data.ThreadingOptions threading_options = 5; - */ - public org.tensorflow.proto.data.ThreadingOptions getThreadingOptions() { - if (threadingOptionsBuilder_ == null) { - return threadingOptions_ == null ? org.tensorflow.proto.data.ThreadingOptions.getDefaultInstance() : threadingOptions_; - } else { - return threadingOptionsBuilder_.getMessage(); - } - } - /** - *
-     * The threading options associated with the dataset.
-     * 
- * - * .tensorflow.data.ThreadingOptions threading_options = 5; - */ - public Builder setThreadingOptions(org.tensorflow.proto.data.ThreadingOptions value) { - if (threadingOptionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - threadingOptions_ = value; - onChanged(); - } else { - threadingOptionsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The threading options associated with the dataset.
-     * 
- * - * .tensorflow.data.ThreadingOptions threading_options = 5; - */ - public Builder setThreadingOptions( - org.tensorflow.proto.data.ThreadingOptions.Builder builderForValue) { - if (threadingOptionsBuilder_ == null) { - threadingOptions_ = builderForValue.build(); - onChanged(); - } else { - threadingOptionsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The threading options associated with the dataset.
-     * 
- * - * .tensorflow.data.ThreadingOptions threading_options = 5; - */ - public Builder mergeThreadingOptions(org.tensorflow.proto.data.ThreadingOptions value) { - if (threadingOptionsBuilder_ == null) { - if (threadingOptions_ != null) { - threadingOptions_ = - org.tensorflow.proto.data.ThreadingOptions.newBuilder(threadingOptions_).mergeFrom(value).buildPartial(); - } else { - threadingOptions_ = value; - } - onChanged(); - } else { - threadingOptionsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The threading options associated with the dataset.
-     * 
- * - * .tensorflow.data.ThreadingOptions threading_options = 5; - */ - public Builder clearThreadingOptions() { - if (threadingOptionsBuilder_ == null) { - threadingOptions_ = null; - onChanged(); - } else { - threadingOptions_ = null; - threadingOptionsBuilder_ = null; - } - - return this; - } - /** - *
-     * The threading options associated with the dataset.
-     * 
- * - * .tensorflow.data.ThreadingOptions threading_options = 5; - */ - public org.tensorflow.proto.data.ThreadingOptions.Builder getThreadingOptionsBuilder() { - - onChanged(); - return getThreadingOptionsFieldBuilder().getBuilder(); - } - /** - *
-     * The threading options associated with the dataset.
-     * 
- * - * .tensorflow.data.ThreadingOptions threading_options = 5; - */ - public org.tensorflow.proto.data.ThreadingOptionsOrBuilder getThreadingOptionsOrBuilder() { - if (threadingOptionsBuilder_ != null) { - return threadingOptionsBuilder_.getMessageOrBuilder(); - } else { - return threadingOptions_ == null ? - org.tensorflow.proto.data.ThreadingOptions.getDefaultInstance() : threadingOptions_; - } - } - /** - *
-     * The threading options associated with the dataset.
-     * 
- * - * .tensorflow.data.ThreadingOptions threading_options = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.data.ThreadingOptions, org.tensorflow.proto.data.ThreadingOptions.Builder, org.tensorflow.proto.data.ThreadingOptionsOrBuilder> - getThreadingOptionsFieldBuilder() { - if (threadingOptionsBuilder_ == null) { - threadingOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.data.ThreadingOptions, org.tensorflow.proto.data.ThreadingOptions.Builder, org.tensorflow.proto.data.ThreadingOptionsOrBuilder>( - getThreadingOptions(), - getParentForChildren(), - isClean()); - threadingOptions_ = null; - } - return threadingOptionsBuilder_; - } - - /** - * .tensorflow.data.ExternalStatePolicy external_state_policy = 6; - */ - public int getExternalStatePolicyValue() { - if (optionalExternalStatePolicyCase_ == 6) { - return ((java.lang.Integer) optionalExternalStatePolicy_).intValue(); - } - return 0; - } - /** - * .tensorflow.data.ExternalStatePolicy external_state_policy = 6; - */ - public Builder setExternalStatePolicyValue(int value) { - optionalExternalStatePolicyCase_ = 6; - optionalExternalStatePolicy_ = value; - onChanged(); - return this; - } - /** - * .tensorflow.data.ExternalStatePolicy external_state_policy = 6; - */ - public org.tensorflow.proto.data.ExternalStatePolicy getExternalStatePolicy() { - if (optionalExternalStatePolicyCase_ == 6) { - @SuppressWarnings("deprecation") - org.tensorflow.proto.data.ExternalStatePolicy result = org.tensorflow.proto.data.ExternalStatePolicy.valueOf( - (java.lang.Integer) optionalExternalStatePolicy_); - return result == null ? org.tensorflow.proto.data.ExternalStatePolicy.UNRECOGNIZED : result; - } - return org.tensorflow.proto.data.ExternalStatePolicy.POLICY_WARN; - } - /** - * .tensorflow.data.ExternalStatePolicy external_state_policy = 6; - */ - public Builder setExternalStatePolicy(org.tensorflow.proto.data.ExternalStatePolicy value) { - if (value == null) { - throw new NullPointerException(); - } - optionalExternalStatePolicyCase_ = 6; - optionalExternalStatePolicy_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tensorflow.data.ExternalStatePolicy external_state_policy = 6; - */ - public Builder clearExternalStatePolicy() { - if (optionalExternalStatePolicyCase_ == 6) { - optionalExternalStatePolicyCase_ = 0; - optionalExternalStatePolicy_ = null; - 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:tensorflow.data.Options) - } - - // @@protoc_insertion_point(class_scope:tensorflow.data.Options) - private static final org.tensorflow.proto.data.Options DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.data.Options(); - } - - public static org.tensorflow.proto.data.Options getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Options parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Options(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.data.Options getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/OptionsOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/OptionsOrBuilder.java deleted file mode 100644 index 570e75577cf..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/OptionsOrBuilder.java +++ /dev/null @@ -1,134 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/dataset_options.proto - -package org.tensorflow.proto.data; - -public interface OptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.data.Options) - com.google.protobuf.MessageOrBuilder { - - /** - * bool deterministic = 1; - */ - boolean getDeterministic(); - - /** - *
-   * The distribution strategy options associated with the dataset.
-   * 
- * - * .tensorflow.data.AutotuneOptions autotune_options = 7; - */ - boolean hasAutotuneOptions(); - /** - *
-   * The distribution strategy options associated with the dataset.
-   * 
- * - * .tensorflow.data.AutotuneOptions autotune_options = 7; - */ - org.tensorflow.proto.data.AutotuneOptions getAutotuneOptions(); - /** - *
-   * The distribution strategy options associated with the dataset.
-   * 
- * - * .tensorflow.data.AutotuneOptions autotune_options = 7; - */ - org.tensorflow.proto.data.AutotuneOptionsOrBuilder getAutotuneOptionsOrBuilder(); - - /** - *
-   * The distribution strategy options associated with the dataset.
-   * 
- * - * .tensorflow.data.DistributeOptions distribute_options = 2; - */ - boolean hasDistributeOptions(); - /** - *
-   * The distribution strategy options associated with the dataset.
-   * 
- * - * .tensorflow.data.DistributeOptions distribute_options = 2; - */ - org.tensorflow.proto.data.DistributeOptions getDistributeOptions(); - /** - *
-   * The distribution strategy options associated with the dataset.
-   * 
- * - * .tensorflow.data.DistributeOptions distribute_options = 2; - */ - org.tensorflow.proto.data.DistributeOptionsOrBuilder getDistributeOptionsOrBuilder(); - - /** - *
-   * The optimization options associated with the dataset.
-   * 
- * - * .tensorflow.data.OptimizationOptions optimization_options = 3; - */ - boolean hasOptimizationOptions(); - /** - *
-   * The optimization options associated with the dataset.
-   * 
- * - * .tensorflow.data.OptimizationOptions optimization_options = 3; - */ - org.tensorflow.proto.data.OptimizationOptions getOptimizationOptions(); - /** - *
-   * The optimization options associated with the dataset.
-   * 
- * - * .tensorflow.data.OptimizationOptions optimization_options = 3; - */ - org.tensorflow.proto.data.OptimizationOptionsOrBuilder getOptimizationOptionsOrBuilder(); - - /** - * bool slack = 4; - */ - boolean getSlack(); - - /** - *
-   * The threading options associated with the dataset.
-   * 
- * - * .tensorflow.data.ThreadingOptions threading_options = 5; - */ - boolean hasThreadingOptions(); - /** - *
-   * The threading options associated with the dataset.
-   * 
- * - * .tensorflow.data.ThreadingOptions threading_options = 5; - */ - org.tensorflow.proto.data.ThreadingOptions getThreadingOptions(); - /** - *
-   * The threading options associated with the dataset.
-   * 
- * - * .tensorflow.data.ThreadingOptions threading_options = 5; - */ - org.tensorflow.proto.data.ThreadingOptionsOrBuilder getThreadingOptionsOrBuilder(); - - /** - * .tensorflow.data.ExternalStatePolicy external_state_policy = 6; - */ - int getExternalStatePolicyValue(); - /** - * .tensorflow.data.ExternalStatePolicy external_state_policy = 6; - */ - org.tensorflow.proto.data.ExternalStatePolicy getExternalStatePolicy(); - - public org.tensorflow.proto.data.Options.OptionalDeterministicCase getOptionalDeterministicCase(); - - public org.tensorflow.proto.data.Options.OptionalSlackCase getOptionalSlackCase(); - - public org.tensorflow.proto.data.Options.OptionalExternalStatePolicyCase getOptionalExternalStatePolicyCase(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/ThreadingOptions.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/ThreadingOptions.java deleted file mode 100644 index 4af22789cb7..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/ThreadingOptions.java +++ /dev/null @@ -1,703 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/dataset_options.proto - -package org.tensorflow.proto.data; - -/** - *
- * next: 3
- * 
- * - * Protobuf type {@code tensorflow.data.ThreadingOptions} - */ -public final class ThreadingOptions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.data.ThreadingOptions) - ThreadingOptionsOrBuilder { -private static final long serialVersionUID = 0L; - // Use ThreadingOptions.newBuilder() to construct. - private ThreadingOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ThreadingOptions() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ThreadingOptions(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ThreadingOptions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - optionalMaxIntraOpParallelismCase_ = 1; - optionalMaxIntraOpParallelism_ = input.readInt32(); - break; - } - case 16: { - optionalPrivateThreadpoolSizeCase_ = 2; - optionalPrivateThreadpoolSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_ThreadingOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_ThreadingOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.ThreadingOptions.class, org.tensorflow.proto.data.ThreadingOptions.Builder.class); - } - - private int optionalMaxIntraOpParallelismCase_ = 0; - private java.lang.Object optionalMaxIntraOpParallelism_; - public enum OptionalMaxIntraOpParallelismCase - implements com.google.protobuf.Internal.EnumLite { - MAX_INTRA_OP_PARALLELISM(1), - OPTIONALMAXINTRAOPPARALLELISM_NOT_SET(0); - private final int value; - private OptionalMaxIntraOpParallelismCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionalMaxIntraOpParallelismCase valueOf(int value) { - return forNumber(value); - } - - public static OptionalMaxIntraOpParallelismCase forNumber(int value) { - switch (value) { - case 1: return MAX_INTRA_OP_PARALLELISM; - case 0: return OPTIONALMAXINTRAOPPARALLELISM_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionalMaxIntraOpParallelismCase - getOptionalMaxIntraOpParallelismCase() { - return OptionalMaxIntraOpParallelismCase.forNumber( - optionalMaxIntraOpParallelismCase_); - } - - private int optionalPrivateThreadpoolSizeCase_ = 0; - private java.lang.Object optionalPrivateThreadpoolSize_; - public enum OptionalPrivateThreadpoolSizeCase - implements com.google.protobuf.Internal.EnumLite { - PRIVATE_THREADPOOL_SIZE(2), - OPTIONALPRIVATETHREADPOOLSIZE_NOT_SET(0); - private final int value; - private OptionalPrivateThreadpoolSizeCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionalPrivateThreadpoolSizeCase valueOf(int value) { - return forNumber(value); - } - - public static OptionalPrivateThreadpoolSizeCase forNumber(int value) { - switch (value) { - case 2: return PRIVATE_THREADPOOL_SIZE; - case 0: return OPTIONALPRIVATETHREADPOOLSIZE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OptionalPrivateThreadpoolSizeCase - getOptionalPrivateThreadpoolSizeCase() { - return OptionalPrivateThreadpoolSizeCase.forNumber( - optionalPrivateThreadpoolSizeCase_); - } - - public static final int MAX_INTRA_OP_PARALLELISM_FIELD_NUMBER = 1; - /** - * int32 max_intra_op_parallelism = 1; - */ - public int getMaxIntraOpParallelism() { - if (optionalMaxIntraOpParallelismCase_ == 1) { - return (java.lang.Integer) optionalMaxIntraOpParallelism_; - } - return 0; - } - - public static final int PRIVATE_THREADPOOL_SIZE_FIELD_NUMBER = 2; - /** - * int32 private_threadpool_size = 2; - */ - public int getPrivateThreadpoolSize() { - if (optionalPrivateThreadpoolSizeCase_ == 2) { - return (java.lang.Integer) optionalPrivateThreadpoolSize_; - } - return 0; - } - - 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 (optionalMaxIntraOpParallelismCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) optionalMaxIntraOpParallelism_)); - } - if (optionalPrivateThreadpoolSizeCase_ == 2) { - output.writeInt32( - 2, (int)((java.lang.Integer) optionalPrivateThreadpoolSize_)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (optionalMaxIntraOpParallelismCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) optionalMaxIntraOpParallelism_)); - } - if (optionalPrivateThreadpoolSizeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 2, (int)((java.lang.Integer) optionalPrivateThreadpoolSize_)); - } - 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 org.tensorflow.proto.data.ThreadingOptions)) { - return super.equals(obj); - } - org.tensorflow.proto.data.ThreadingOptions other = (org.tensorflow.proto.data.ThreadingOptions) obj; - - if (!getOptionalMaxIntraOpParallelismCase().equals(other.getOptionalMaxIntraOpParallelismCase())) return false; - switch (optionalMaxIntraOpParallelismCase_) { - case 1: - if (getMaxIntraOpParallelism() - != other.getMaxIntraOpParallelism()) return false; - break; - case 0: - default: - } - if (!getOptionalPrivateThreadpoolSizeCase().equals(other.getOptionalPrivateThreadpoolSizeCase())) return false; - switch (optionalPrivateThreadpoolSizeCase_) { - case 2: - if (getPrivateThreadpoolSize() - != other.getPrivateThreadpoolSize()) return false; - break; - case 0: - default: - } - 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(); - switch (optionalMaxIntraOpParallelismCase_) { - case 1: - hash = (37 * hash) + MAX_INTRA_OP_PARALLELISM_FIELD_NUMBER; - hash = (53 * hash) + getMaxIntraOpParallelism(); - break; - case 0: - default: - } - switch (optionalPrivateThreadpoolSizeCase_) { - case 2: - hash = (37 * hash) + PRIVATE_THREADPOOL_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPrivateThreadpoolSize(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.data.ThreadingOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.ThreadingOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.ThreadingOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.ThreadingOptions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.ThreadingOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.ThreadingOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.ThreadingOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.ThreadingOptions 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 org.tensorflow.proto.data.ThreadingOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.ThreadingOptions 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 org.tensorflow.proto.data.ThreadingOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.ThreadingOptions 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(org.tensorflow.proto.data.ThreadingOptions 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; - } - /** - *
-   * next: 3
-   * 
- * - * Protobuf type {@code tensorflow.data.ThreadingOptions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.data.ThreadingOptions) - org.tensorflow.proto.data.ThreadingOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_ThreadingOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_ThreadingOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.ThreadingOptions.class, org.tensorflow.proto.data.ThreadingOptions.Builder.class); - } - - // Construct using org.tensorflow.proto.data.ThreadingOptions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - optionalMaxIntraOpParallelismCase_ = 0; - optionalMaxIntraOpParallelism_ = null; - optionalPrivateThreadpoolSizeCase_ = 0; - optionalPrivateThreadpoolSize_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.data.DatasetOptionsProtos.internal_static_tensorflow_data_ThreadingOptions_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.data.ThreadingOptions getDefaultInstanceForType() { - return org.tensorflow.proto.data.ThreadingOptions.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.data.ThreadingOptions build() { - org.tensorflow.proto.data.ThreadingOptions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.data.ThreadingOptions buildPartial() { - org.tensorflow.proto.data.ThreadingOptions result = new org.tensorflow.proto.data.ThreadingOptions(this); - if (optionalMaxIntraOpParallelismCase_ == 1) { - result.optionalMaxIntraOpParallelism_ = optionalMaxIntraOpParallelism_; - } - if (optionalPrivateThreadpoolSizeCase_ == 2) { - result.optionalPrivateThreadpoolSize_ = optionalPrivateThreadpoolSize_; - } - result.optionalMaxIntraOpParallelismCase_ = optionalMaxIntraOpParallelismCase_; - result.optionalPrivateThreadpoolSizeCase_ = optionalPrivateThreadpoolSizeCase_; - 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 org.tensorflow.proto.data.ThreadingOptions) { - return mergeFrom((org.tensorflow.proto.data.ThreadingOptions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.data.ThreadingOptions other) { - if (other == org.tensorflow.proto.data.ThreadingOptions.getDefaultInstance()) return this; - switch (other.getOptionalMaxIntraOpParallelismCase()) { - case MAX_INTRA_OP_PARALLELISM: { - setMaxIntraOpParallelism(other.getMaxIntraOpParallelism()); - break; - } - case OPTIONALMAXINTRAOPPARALLELISM_NOT_SET: { - break; - } - } - switch (other.getOptionalPrivateThreadpoolSizeCase()) { - case PRIVATE_THREADPOOL_SIZE: { - setPrivateThreadpoolSize(other.getPrivateThreadpoolSize()); - break; - } - case OPTIONALPRIVATETHREADPOOLSIZE_NOT_SET: { - break; - } - } - 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 { - org.tensorflow.proto.data.ThreadingOptions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.data.ThreadingOptions) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int optionalMaxIntraOpParallelismCase_ = 0; - private java.lang.Object optionalMaxIntraOpParallelism_; - public OptionalMaxIntraOpParallelismCase - getOptionalMaxIntraOpParallelismCase() { - return OptionalMaxIntraOpParallelismCase.forNumber( - optionalMaxIntraOpParallelismCase_); - } - - public Builder clearOptionalMaxIntraOpParallelism() { - optionalMaxIntraOpParallelismCase_ = 0; - optionalMaxIntraOpParallelism_ = null; - onChanged(); - return this; - } - - private int optionalPrivateThreadpoolSizeCase_ = 0; - private java.lang.Object optionalPrivateThreadpoolSize_; - public OptionalPrivateThreadpoolSizeCase - getOptionalPrivateThreadpoolSizeCase() { - return OptionalPrivateThreadpoolSizeCase.forNumber( - optionalPrivateThreadpoolSizeCase_); - } - - public Builder clearOptionalPrivateThreadpoolSize() { - optionalPrivateThreadpoolSizeCase_ = 0; - optionalPrivateThreadpoolSize_ = null; - onChanged(); - return this; - } - - - /** - * int32 max_intra_op_parallelism = 1; - */ - public int getMaxIntraOpParallelism() { - if (optionalMaxIntraOpParallelismCase_ == 1) { - return (java.lang.Integer) optionalMaxIntraOpParallelism_; - } - return 0; - } - /** - * int32 max_intra_op_parallelism = 1; - */ - public Builder setMaxIntraOpParallelism(int value) { - optionalMaxIntraOpParallelismCase_ = 1; - optionalMaxIntraOpParallelism_ = value; - onChanged(); - return this; - } - /** - * int32 max_intra_op_parallelism = 1; - */ - public Builder clearMaxIntraOpParallelism() { - if (optionalMaxIntraOpParallelismCase_ == 1) { - optionalMaxIntraOpParallelismCase_ = 0; - optionalMaxIntraOpParallelism_ = null; - onChanged(); - } - return this; - } - - /** - * int32 private_threadpool_size = 2; - */ - public int getPrivateThreadpoolSize() { - if (optionalPrivateThreadpoolSizeCase_ == 2) { - return (java.lang.Integer) optionalPrivateThreadpoolSize_; - } - return 0; - } - /** - * int32 private_threadpool_size = 2; - */ - public Builder setPrivateThreadpoolSize(int value) { - optionalPrivateThreadpoolSizeCase_ = 2; - optionalPrivateThreadpoolSize_ = value; - onChanged(); - return this; - } - /** - * int32 private_threadpool_size = 2; - */ - public Builder clearPrivateThreadpoolSize() { - if (optionalPrivateThreadpoolSizeCase_ == 2) { - optionalPrivateThreadpoolSizeCase_ = 0; - optionalPrivateThreadpoolSize_ = null; - 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:tensorflow.data.ThreadingOptions) - } - - // @@protoc_insertion_point(class_scope:tensorflow.data.ThreadingOptions) - private static final org.tensorflow.proto.data.ThreadingOptions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.data.ThreadingOptions(); - } - - public static org.tensorflow.proto.data.ThreadingOptions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ThreadingOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ThreadingOptions(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.data.ThreadingOptions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/ThreadingOptionsOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/ThreadingOptionsOrBuilder.java deleted file mode 100644 index 3a4d602db55..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/ThreadingOptionsOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/dataset_options.proto - -package org.tensorflow.proto.data; - -public interface ThreadingOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.data.ThreadingOptions) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 max_intra_op_parallelism = 1; - */ - int getMaxIntraOpParallelism(); - - /** - * int32 private_threadpool_size = 2; - */ - int getPrivateThreadpoolSize(); - - public org.tensorflow.proto.data.ThreadingOptions.OptionalMaxIntraOpParallelismCase getOptionalMaxIntraOpParallelismCase(); - - public org.tensorflow.proto.data.ThreadingOptions.OptionalPrivateThreadpoolSizeCase getOptionalPrivateThreadpoolSizeCase(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/SnapshotMetadataRecord.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/SnapshotMetadataRecord.java deleted file mode 100644 index 1ad5e1b6c74..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/SnapshotMetadataRecord.java +++ /dev/null @@ -1,1328 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/snapshot.proto - -package org.tensorflow.proto.data.experimental; - -/** - *
- * This stores the metadata information present in each snapshot record.
- * 
- * - * Protobuf type {@code tensorflow.data.experimental.SnapshotMetadataRecord} - */ -public final class SnapshotMetadataRecord extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.data.experimental.SnapshotMetadataRecord) - SnapshotMetadataRecordOrBuilder { -private static final long serialVersionUID = 0L; - // Use SnapshotMetadataRecord.newBuilder() to construct. - private SnapshotMetadataRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SnapshotMetadataRecord() { - graphHash_ = ""; - runId_ = ""; - dtype_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SnapshotMetadataRecord(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SnapshotMetadataRecord( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - graphHash_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - runId_ = s; - break; - } - case 24: { - - creationTimestamp_ = input.readInt64(); - break; - } - case 32: { - - version_ = input.readInt64(); - break; - } - case 40: { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dtype_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - dtype_.add(rawValue); - break; - } - case 42: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dtype_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - dtype_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - case 48: { - - numElements_ = input.readInt64(); - break; - } - case 8000: { - - finalized_ = input.readBool(); - 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)) { - dtype_ = java.util.Collections.unmodifiableList(dtype_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.experimental.SnapshotProtos.internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.experimental.SnapshotProtos.internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.experimental.SnapshotMetadataRecord.class, org.tensorflow.proto.data.experimental.SnapshotMetadataRecord.Builder.class); - } - - public static final int GRAPH_HASH_FIELD_NUMBER = 1; - private volatile java.lang.Object graphHash_; - /** - *
-   * Stores the fingerprint of the graph that describes the dataset that is
-   * snapshotted.
-   * 
- * - * string graph_hash = 1; - */ - public java.lang.String getGraphHash() { - java.lang.Object ref = graphHash_; - 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(); - graphHash_ = s; - return s; - } - } - /** - *
-   * Stores the fingerprint of the graph that describes the dataset that is
-   * snapshotted.
-   * 
- * - * string graph_hash = 1; - */ - public com.google.protobuf.ByteString - getGraphHashBytes() { - java.lang.Object ref = graphHash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - graphHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RUN_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object runId_; - /** - *
-   * Run ID that this snapshot corresponds to.
-   * 
- * - * string run_id = 2; - */ - public java.lang.String getRunId() { - java.lang.Object ref = runId_; - 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(); - runId_ = s; - return s; - } - } - /** - *
-   * Run ID that this snapshot corresponds to.
-   * 
- * - * string run_id = 2; - */ - public com.google.protobuf.ByteString - getRunIdBytes() { - java.lang.Object ref = runId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - runId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 3; - private long creationTimestamp_; - /** - *
-   * Time when we started creating this snapshot.
-   * 
- * - * int64 creation_timestamp = 3; - */ - public long getCreationTimestamp() { - return creationTimestamp_; - } - - public static final int VERSION_FIELD_NUMBER = 4; - private long version_; - /** - *
-   * Version of the snapshot data file format.
-   * 
- * - * int64 version = 4; - */ - public long getVersion() { - return version_; - } - - public static final int DTYPE_FIELD_NUMBER = 5; - private java.util.List dtype_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, org.tensorflow.proto.framework.DataType> dtype_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, org.tensorflow.proto.framework.DataType>() { - public org.tensorflow.proto.framework.DataType convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(from); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - }; - /** - *
-   * A list of tensor dtype corresponding to each element of the snapshot.
-   * 
- * - * repeated .tensorflow.DataType dtype = 5; - */ - public java.util.List getDtypeList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, org.tensorflow.proto.framework.DataType>(dtype_, dtype_converter_); - } - /** - *
-   * A list of tensor dtype corresponding to each element of the snapshot.
-   * 
- * - * repeated .tensorflow.DataType dtype = 5; - */ - public int getDtypeCount() { - return dtype_.size(); - } - /** - *
-   * A list of tensor dtype corresponding to each element of the snapshot.
-   * 
- * - * repeated .tensorflow.DataType dtype = 5; - */ - public org.tensorflow.proto.framework.DataType getDtype(int index) { - return dtype_converter_.convert(dtype_.get(index)); - } - /** - *
-   * A list of tensor dtype corresponding to each element of the snapshot.
-   * 
- * - * repeated .tensorflow.DataType dtype = 5; - */ - public java.util.List - getDtypeValueList() { - return dtype_; - } - /** - *
-   * A list of tensor dtype corresponding to each element of the snapshot.
-   * 
- * - * repeated .tensorflow.DataType dtype = 5; - */ - public int getDtypeValue(int index) { - return dtype_.get(index); - } - private int dtypeMemoizedSerializedSize; - - public static final int NUM_ELEMENTS_FIELD_NUMBER = 6; - private long numElements_; - /** - *
-   * The number of elements in the snapshot.
-   * 
- * - * int64 num_elements = 6; - */ - public long getNumElements() { - return numElements_; - } - - public static final int FINALIZED_FIELD_NUMBER = 1000; - private boolean finalized_; - /** - * bool finalized = 1000; - */ - public boolean getFinalized() { - return finalized_; - } - - 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 { - getSerializedSize(); - if (!getGraphHashBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, graphHash_); - } - if (!getRunIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, runId_); - } - if (creationTimestamp_ != 0L) { - output.writeInt64(3, creationTimestamp_); - } - if (version_ != 0L) { - output.writeInt64(4, version_); - } - if (getDtypeList().size() > 0) { - output.writeUInt32NoTag(42); - output.writeUInt32NoTag(dtypeMemoizedSerializedSize); - } - for (int i = 0; i < dtype_.size(); i++) { - output.writeEnumNoTag(dtype_.get(i)); - } - if (numElements_ != 0L) { - output.writeInt64(6, numElements_); - } - if (finalized_ != false) { - output.writeBool(1000, finalized_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getGraphHashBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, graphHash_); - } - if (!getRunIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, runId_); - } - if (creationTimestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, creationTimestamp_); - } - if (version_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, version_); - } - { - int dataSize = 0; - for (int i = 0; i < dtype_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(dtype_.get(i)); - } - size += dataSize; - if (!getDtypeList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }dtypeMemoizedSerializedSize = dataSize; - } - if (numElements_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, numElements_); - } - if (finalized_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1000, finalized_); - } - 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 org.tensorflow.proto.data.experimental.SnapshotMetadataRecord)) { - return super.equals(obj); - } - org.tensorflow.proto.data.experimental.SnapshotMetadataRecord other = (org.tensorflow.proto.data.experimental.SnapshotMetadataRecord) obj; - - if (!getGraphHash() - .equals(other.getGraphHash())) return false; - if (!getRunId() - .equals(other.getRunId())) return false; - if (getCreationTimestamp() - != other.getCreationTimestamp()) return false; - if (getVersion() - != other.getVersion()) return false; - if (!dtype_.equals(other.dtype_)) return false; - if (getNumElements() - != other.getNumElements()) return false; - if (getFinalized() - != other.getFinalized()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GRAPH_HASH_FIELD_NUMBER; - hash = (53 * hash) + getGraphHash().hashCode(); - hash = (37 * hash) + RUN_ID_FIELD_NUMBER; - hash = (53 * hash) + getRunId().hashCode(); - hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCreationTimestamp()); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVersion()); - if (getDtypeCount() > 0) { - hash = (37 * hash) + DTYPE_FIELD_NUMBER; - hash = (53 * hash) + dtype_.hashCode(); - } - hash = (37 * hash) + NUM_ELEMENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNumElements()); - hash = (37 * hash) + FINALIZED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFinalized()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.data.experimental.SnapshotMetadataRecord parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.experimental.SnapshotMetadataRecord parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.experimental.SnapshotMetadataRecord parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.experimental.SnapshotMetadataRecord parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.experimental.SnapshotMetadataRecord parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.experimental.SnapshotMetadataRecord parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.experimental.SnapshotMetadataRecord parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.experimental.SnapshotMetadataRecord 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 org.tensorflow.proto.data.experimental.SnapshotMetadataRecord parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.experimental.SnapshotMetadataRecord 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 org.tensorflow.proto.data.experimental.SnapshotMetadataRecord parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.experimental.SnapshotMetadataRecord 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(org.tensorflow.proto.data.experimental.SnapshotMetadataRecord 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; - } - /** - *
-   * This stores the metadata information present in each snapshot record.
-   * 
- * - * Protobuf type {@code tensorflow.data.experimental.SnapshotMetadataRecord} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.data.experimental.SnapshotMetadataRecord) - org.tensorflow.proto.data.experimental.SnapshotMetadataRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.experimental.SnapshotProtos.internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.experimental.SnapshotProtos.internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.experimental.SnapshotMetadataRecord.class, org.tensorflow.proto.data.experimental.SnapshotMetadataRecord.Builder.class); - } - - // Construct using org.tensorflow.proto.data.experimental.SnapshotMetadataRecord.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - graphHash_ = ""; - - runId_ = ""; - - creationTimestamp_ = 0L; - - version_ = 0L; - - dtype_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - numElements_ = 0L; - - finalized_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.data.experimental.SnapshotProtos.internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.data.experimental.SnapshotMetadataRecord getDefaultInstanceForType() { - return org.tensorflow.proto.data.experimental.SnapshotMetadataRecord.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.data.experimental.SnapshotMetadataRecord build() { - org.tensorflow.proto.data.experimental.SnapshotMetadataRecord result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.data.experimental.SnapshotMetadataRecord buildPartial() { - org.tensorflow.proto.data.experimental.SnapshotMetadataRecord result = new org.tensorflow.proto.data.experimental.SnapshotMetadataRecord(this); - int from_bitField0_ = bitField0_; - result.graphHash_ = graphHash_; - result.runId_ = runId_; - result.creationTimestamp_ = creationTimestamp_; - result.version_ = version_; - if (((bitField0_ & 0x00000001) != 0)) { - dtype_ = java.util.Collections.unmodifiableList(dtype_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dtype_ = dtype_; - result.numElements_ = numElements_; - result.finalized_ = finalized_; - 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 org.tensorflow.proto.data.experimental.SnapshotMetadataRecord) { - return mergeFrom((org.tensorflow.proto.data.experimental.SnapshotMetadataRecord)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.data.experimental.SnapshotMetadataRecord other) { - if (other == org.tensorflow.proto.data.experimental.SnapshotMetadataRecord.getDefaultInstance()) return this; - if (!other.getGraphHash().isEmpty()) { - graphHash_ = other.graphHash_; - onChanged(); - } - if (!other.getRunId().isEmpty()) { - runId_ = other.runId_; - onChanged(); - } - if (other.getCreationTimestamp() != 0L) { - setCreationTimestamp(other.getCreationTimestamp()); - } - if (other.getVersion() != 0L) { - setVersion(other.getVersion()); - } - if (!other.dtype_.isEmpty()) { - if (dtype_.isEmpty()) { - dtype_ = other.dtype_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDtypeIsMutable(); - dtype_.addAll(other.dtype_); - } - onChanged(); - } - if (other.getNumElements() != 0L) { - setNumElements(other.getNumElements()); - } - if (other.getFinalized() != false) { - setFinalized(other.getFinalized()); - } - 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 { - org.tensorflow.proto.data.experimental.SnapshotMetadataRecord parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.data.experimental.SnapshotMetadataRecord) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object graphHash_ = ""; - /** - *
-     * Stores the fingerprint of the graph that describes the dataset that is
-     * snapshotted.
-     * 
- * - * string graph_hash = 1; - */ - public java.lang.String getGraphHash() { - java.lang.Object ref = graphHash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - graphHash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Stores the fingerprint of the graph that describes the dataset that is
-     * snapshotted.
-     * 
- * - * string graph_hash = 1; - */ - public com.google.protobuf.ByteString - getGraphHashBytes() { - java.lang.Object ref = graphHash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - graphHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Stores the fingerprint of the graph that describes the dataset that is
-     * snapshotted.
-     * 
- * - * string graph_hash = 1; - */ - public Builder setGraphHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - graphHash_ = value; - onChanged(); - return this; - } - /** - *
-     * Stores the fingerprint of the graph that describes the dataset that is
-     * snapshotted.
-     * 
- * - * string graph_hash = 1; - */ - public Builder clearGraphHash() { - - graphHash_ = getDefaultInstance().getGraphHash(); - onChanged(); - return this; - } - /** - *
-     * Stores the fingerprint of the graph that describes the dataset that is
-     * snapshotted.
-     * 
- * - * string graph_hash = 1; - */ - public Builder setGraphHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - graphHash_ = value; - onChanged(); - return this; - } - - private java.lang.Object runId_ = ""; - /** - *
-     * Run ID that this snapshot corresponds to.
-     * 
- * - * string run_id = 2; - */ - public java.lang.String getRunId() { - java.lang.Object ref = runId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - runId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Run ID that this snapshot corresponds to.
-     * 
- * - * string run_id = 2; - */ - public com.google.protobuf.ByteString - getRunIdBytes() { - java.lang.Object ref = runId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - runId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Run ID that this snapshot corresponds to.
-     * 
- * - * string run_id = 2; - */ - public Builder setRunId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - runId_ = value; - onChanged(); - return this; - } - /** - *
-     * Run ID that this snapshot corresponds to.
-     * 
- * - * string run_id = 2; - */ - public Builder clearRunId() { - - runId_ = getDefaultInstance().getRunId(); - onChanged(); - return this; - } - /** - *
-     * Run ID that this snapshot corresponds to.
-     * 
- * - * string run_id = 2; - */ - public Builder setRunIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - runId_ = value; - onChanged(); - return this; - } - - private long creationTimestamp_ ; - /** - *
-     * Time when we started creating this snapshot.
-     * 
- * - * int64 creation_timestamp = 3; - */ - public long getCreationTimestamp() { - return creationTimestamp_; - } - /** - *
-     * Time when we started creating this snapshot.
-     * 
- * - * int64 creation_timestamp = 3; - */ - public Builder setCreationTimestamp(long value) { - - creationTimestamp_ = value; - onChanged(); - return this; - } - /** - *
-     * Time when we started creating this snapshot.
-     * 
- * - * int64 creation_timestamp = 3; - */ - public Builder clearCreationTimestamp() { - - creationTimestamp_ = 0L; - onChanged(); - return this; - } - - private long version_ ; - /** - *
-     * Version of the snapshot data file format.
-     * 
- * - * int64 version = 4; - */ - public long getVersion() { - return version_; - } - /** - *
-     * Version of the snapshot data file format.
-     * 
- * - * int64 version = 4; - */ - public Builder setVersion(long value) { - - version_ = value; - onChanged(); - return this; - } - /** - *
-     * Version of the snapshot data file format.
-     * 
- * - * int64 version = 4; - */ - public Builder clearVersion() { - - version_ = 0L; - onChanged(); - return this; - } - - private java.util.List dtype_ = - java.util.Collections.emptyList(); - private void ensureDtypeIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dtype_ = new java.util.ArrayList(dtype_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * A list of tensor dtype corresponding to each element of the snapshot.
-     * 
- * - * repeated .tensorflow.DataType dtype = 5; - */ - public java.util.List getDtypeList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, org.tensorflow.proto.framework.DataType>(dtype_, dtype_converter_); - } - /** - *
-     * A list of tensor dtype corresponding to each element of the snapshot.
-     * 
- * - * repeated .tensorflow.DataType dtype = 5; - */ - public int getDtypeCount() { - return dtype_.size(); - } - /** - *
-     * A list of tensor dtype corresponding to each element of the snapshot.
-     * 
- * - * repeated .tensorflow.DataType dtype = 5; - */ - public org.tensorflow.proto.framework.DataType getDtype(int index) { - return dtype_converter_.convert(dtype_.get(index)); - } - /** - *
-     * A list of tensor dtype corresponding to each element of the snapshot.
-     * 
- * - * repeated .tensorflow.DataType dtype = 5; - */ - public Builder setDtype( - int index, org.tensorflow.proto.framework.DataType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDtypeIsMutable(); - dtype_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - *
-     * A list of tensor dtype corresponding to each element of the snapshot.
-     * 
- * - * repeated .tensorflow.DataType dtype = 5; - */ - public Builder addDtype(org.tensorflow.proto.framework.DataType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDtypeIsMutable(); - dtype_.add(value.getNumber()); - onChanged(); - return this; - } - /** - *
-     * A list of tensor dtype corresponding to each element of the snapshot.
-     * 
- * - * repeated .tensorflow.DataType dtype = 5; - */ - public Builder addAllDtype( - java.lang.Iterable values) { - ensureDtypeIsMutable(); - for (org.tensorflow.proto.framework.DataType value : values) { - dtype_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - *
-     * A list of tensor dtype corresponding to each element of the snapshot.
-     * 
- * - * repeated .tensorflow.DataType dtype = 5; - */ - public Builder clearDtype() { - dtype_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * A list of tensor dtype corresponding to each element of the snapshot.
-     * 
- * - * repeated .tensorflow.DataType dtype = 5; - */ - public java.util.List - getDtypeValueList() { - return java.util.Collections.unmodifiableList(dtype_); - } - /** - *
-     * A list of tensor dtype corresponding to each element of the snapshot.
-     * 
- * - * repeated .tensorflow.DataType dtype = 5; - */ - public int getDtypeValue(int index) { - return dtype_.get(index); - } - /** - *
-     * A list of tensor dtype corresponding to each element of the snapshot.
-     * 
- * - * repeated .tensorflow.DataType dtype = 5; - */ - public Builder setDtypeValue( - int index, int value) { - ensureDtypeIsMutable(); - dtype_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * A list of tensor dtype corresponding to each element of the snapshot.
-     * 
- * - * repeated .tensorflow.DataType dtype = 5; - */ - public Builder addDtypeValue(int value) { - ensureDtypeIsMutable(); - dtype_.add(value); - onChanged(); - return this; - } - /** - *
-     * A list of tensor dtype corresponding to each element of the snapshot.
-     * 
- * - * repeated .tensorflow.DataType dtype = 5; - */ - public Builder addAllDtypeValue( - java.lang.Iterable values) { - ensureDtypeIsMutable(); - for (int value : values) { - dtype_.add(value); - } - onChanged(); - return this; - } - - private long numElements_ ; - /** - *
-     * The number of elements in the snapshot.
-     * 
- * - * int64 num_elements = 6; - */ - public long getNumElements() { - return numElements_; - } - /** - *
-     * The number of elements in the snapshot.
-     * 
- * - * int64 num_elements = 6; - */ - public Builder setNumElements(long value) { - - numElements_ = value; - onChanged(); - return this; - } - /** - *
-     * The number of elements in the snapshot.
-     * 
- * - * int64 num_elements = 6; - */ - public Builder clearNumElements() { - - numElements_ = 0L; - onChanged(); - return this; - } - - private boolean finalized_ ; - /** - * bool finalized = 1000; - */ - public boolean getFinalized() { - return finalized_; - } - /** - * bool finalized = 1000; - */ - public Builder setFinalized(boolean value) { - - finalized_ = value; - onChanged(); - return this; - } - /** - * bool finalized = 1000; - */ - public Builder clearFinalized() { - - finalized_ = false; - 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:tensorflow.data.experimental.SnapshotMetadataRecord) - } - - // @@protoc_insertion_point(class_scope:tensorflow.data.experimental.SnapshotMetadataRecord) - private static final org.tensorflow.proto.data.experimental.SnapshotMetadataRecord DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.data.experimental.SnapshotMetadataRecord(); - } - - public static org.tensorflow.proto.data.experimental.SnapshotMetadataRecord getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SnapshotMetadataRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SnapshotMetadataRecord(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.data.experimental.SnapshotMetadataRecord getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/SnapshotMetadataRecordOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/SnapshotMetadataRecordOrBuilder.java deleted file mode 100644 index 5533ed93eb3..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/SnapshotMetadataRecordOrBuilder.java +++ /dev/null @@ -1,121 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/snapshot.proto - -package org.tensorflow.proto.data.experimental; - -public interface SnapshotMetadataRecordOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.data.experimental.SnapshotMetadataRecord) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Stores the fingerprint of the graph that describes the dataset that is
-   * snapshotted.
-   * 
- * - * string graph_hash = 1; - */ - java.lang.String getGraphHash(); - /** - *
-   * Stores the fingerprint of the graph that describes the dataset that is
-   * snapshotted.
-   * 
- * - * string graph_hash = 1; - */ - com.google.protobuf.ByteString - getGraphHashBytes(); - - /** - *
-   * Run ID that this snapshot corresponds to.
-   * 
- * - * string run_id = 2; - */ - java.lang.String getRunId(); - /** - *
-   * Run ID that this snapshot corresponds to.
-   * 
- * - * string run_id = 2; - */ - com.google.protobuf.ByteString - getRunIdBytes(); - - /** - *
-   * Time when we started creating this snapshot.
-   * 
- * - * int64 creation_timestamp = 3; - */ - long getCreationTimestamp(); - - /** - *
-   * Version of the snapshot data file format.
-   * 
- * - * int64 version = 4; - */ - long getVersion(); - - /** - *
-   * A list of tensor dtype corresponding to each element of the snapshot.
-   * 
- * - * repeated .tensorflow.DataType dtype = 5; - */ - java.util.List getDtypeList(); - /** - *
-   * A list of tensor dtype corresponding to each element of the snapshot.
-   * 
- * - * repeated .tensorflow.DataType dtype = 5; - */ - int getDtypeCount(); - /** - *
-   * A list of tensor dtype corresponding to each element of the snapshot.
-   * 
- * - * repeated .tensorflow.DataType dtype = 5; - */ - org.tensorflow.proto.framework.DataType getDtype(int index); - /** - *
-   * A list of tensor dtype corresponding to each element of the snapshot.
-   * 
- * - * repeated .tensorflow.DataType dtype = 5; - */ - java.util.List - getDtypeValueList(); - /** - *
-   * A list of tensor dtype corresponding to each element of the snapshot.
-   * 
- * - * repeated .tensorflow.DataType dtype = 5; - */ - int getDtypeValue(int index); - - /** - *
-   * The number of elements in the snapshot.
-   * 
- * - * int64 num_elements = 6; - */ - long getNumElements(); - - /** - * bool finalized = 1000; - */ - boolean getFinalized(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/SnapshotProtos.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/SnapshotProtos.java deleted file mode 100644 index 57577a9ad7d..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/SnapshotProtos.java +++ /dev/null @@ -1,104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/snapshot.proto - -package org.tensorflow.proto.data.experimental; - -public final class SnapshotProtos { - private SnapshotProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_data_experimental_SnapshotRecord_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_data_experimental_SnapshotRecord_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_data_experimental_TensorMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_data_experimental_TensorMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_data_experimental_SnapshotTensorMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_data_experimental_SnapshotTensorMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'tensorflow/core/protobuf/snapshot.prot" + - "o\022\034tensorflow.data.experimental\032&tensorf" + - "low/core/framework/tensor.proto\032,tensorf" + - "low/core/framework/tensor_shape.proto\032%t" + - "ensorflow/core/framework/types.proto\"9\n\016" + - "SnapshotRecord\022\'\n\006tensor\030\001 \003(\0132\027.tensorf" + - "low.TensorProto\"\270\001\n\026SnapshotMetadataReco" + - "rd\022\022\n\ngraph_hash\030\001 \001(\t\022\016\n\006run_id\030\002 \001(\t\022\032" + - "\n\022creation_timestamp\030\003 \001(\003\022\017\n\007version\030\004 " + - "\001(\003\022#\n\005dtype\030\005 \003(\0162\024.tensorflow.DataType" + - "\022\024\n\014num_elements\030\006 \001(\003\022\022\n\tfinalized\030\350\007 \001" + - "(\010\"_\n\016TensorMetadata\0222\n\014tensor_shape\030\002 \001" + - "(\0132\034.tensorflow.TensorShapeProto\022\031\n\021tens" + - "or_size_bytes\030\003 \001(\003\"_\n\026SnapshotTensorMet" + - "adata\022E\n\017tensor_metadata\030\001 \003(\0132,.tensorf" + - "low.data.experimental.TensorMetadataB\221\001\n" + - "&org.tensorflow.proto.data.experimentalB" + - "\016SnapshotProtosP\001ZUgithub.com/tensorflow" + - "/tensorflow/tensorflow/go/core/protobuf/" + - "for_core_protos_go_protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.framework.TensorProtos.getDescriptor(), - org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(), - org.tensorflow.proto.framework.TypesProtos.getDescriptor(), - }); - internal_static_tensorflow_data_experimental_SnapshotRecord_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tensorflow_data_experimental_SnapshotRecord_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_data_experimental_SnapshotRecord_descriptor, - new java.lang.String[] { "Tensor", }); - internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_descriptor, - new java.lang.String[] { "GraphHash", "RunId", "CreationTimestamp", "Version", "Dtype", "NumElements", "Finalized", }); - internal_static_tensorflow_data_experimental_TensorMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_tensorflow_data_experimental_TensorMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_data_experimental_TensorMetadata_descriptor, - new java.lang.String[] { "TensorShape", "TensorSizeBytes", }); - internal_static_tensorflow_data_experimental_SnapshotTensorMetadata_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_tensorflow_data_experimental_SnapshotTensorMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_data_experimental_SnapshotTensorMetadata_descriptor, - new java.lang.String[] { "TensorMetadata", }); - org.tensorflow.proto.framework.TensorProtos.getDescriptor(); - org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(); - org.tensorflow.proto.framework.TypesProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/SnapshotRecord.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/SnapshotRecord.java deleted file mode 100644 index e81a8b745f9..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/SnapshotRecord.java +++ /dev/null @@ -1,777 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/snapshot.proto - -package org.tensorflow.proto.data.experimental; - -/** - *
- * Each SnapshotRecord represents one batch of pre-processed input data. A batch
- * consists of a list of tensors that we encode as TensorProtos. This message
- * doesn't store the structure of the batch.
- * 
- * - * Protobuf type {@code tensorflow.data.experimental.SnapshotRecord} - */ -public final class SnapshotRecord extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.data.experimental.SnapshotRecord) - SnapshotRecordOrBuilder { -private static final long serialVersionUID = 0L; - // Use SnapshotRecord.newBuilder() to construct. - private SnapshotRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SnapshotRecord() { - tensor_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SnapshotRecord(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SnapshotRecord( - 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)) { - tensor_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - tensor_.add( - input.readMessage(org.tensorflow.proto.framework.TensorProto.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)) { - tensor_ = java.util.Collections.unmodifiableList(tensor_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.experimental.SnapshotProtos.internal_static_tensorflow_data_experimental_SnapshotRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.experimental.SnapshotProtos.internal_static_tensorflow_data_experimental_SnapshotRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.experimental.SnapshotRecord.class, org.tensorflow.proto.data.experimental.SnapshotRecord.Builder.class); - } - - public static final int TENSOR_FIELD_NUMBER = 1; - private java.util.List tensor_; - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public java.util.List getTensorList() { - return tensor_; - } - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public java.util.List - getTensorOrBuilderList() { - return tensor_; - } - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public int getTensorCount() { - return tensor_.size(); - } - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public org.tensorflow.proto.framework.TensorProto getTensor(int index) { - return tensor_.get(index); - } - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorOrBuilder( - int index) { - return tensor_.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 < tensor_.size(); i++) { - output.writeMessage(1, tensor_.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 < tensor_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, tensor_.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 org.tensorflow.proto.data.experimental.SnapshotRecord)) { - return super.equals(obj); - } - org.tensorflow.proto.data.experimental.SnapshotRecord other = (org.tensorflow.proto.data.experimental.SnapshotRecord) obj; - - if (!getTensorList() - .equals(other.getTensorList())) 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 (getTensorCount() > 0) { - hash = (37 * hash) + TENSOR_FIELD_NUMBER; - hash = (53 * hash) + getTensorList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.data.experimental.SnapshotRecord parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.experimental.SnapshotRecord parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.experimental.SnapshotRecord parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.experimental.SnapshotRecord parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.experimental.SnapshotRecord parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.experimental.SnapshotRecord parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.experimental.SnapshotRecord parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.experimental.SnapshotRecord 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 org.tensorflow.proto.data.experimental.SnapshotRecord parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.experimental.SnapshotRecord 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 org.tensorflow.proto.data.experimental.SnapshotRecord parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.experimental.SnapshotRecord 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(org.tensorflow.proto.data.experimental.SnapshotRecord 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; - } - /** - *
-   * Each SnapshotRecord represents one batch of pre-processed input data. A batch
-   * consists of a list of tensors that we encode as TensorProtos. This message
-   * doesn't store the structure of the batch.
-   * 
- * - * Protobuf type {@code tensorflow.data.experimental.SnapshotRecord} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.data.experimental.SnapshotRecord) - org.tensorflow.proto.data.experimental.SnapshotRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.experimental.SnapshotProtos.internal_static_tensorflow_data_experimental_SnapshotRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.experimental.SnapshotProtos.internal_static_tensorflow_data_experimental_SnapshotRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.experimental.SnapshotRecord.class, org.tensorflow.proto.data.experimental.SnapshotRecord.Builder.class); - } - - // Construct using org.tensorflow.proto.data.experimental.SnapshotRecord.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTensorFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (tensorBuilder_ == null) { - tensor_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - tensorBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.data.experimental.SnapshotProtos.internal_static_tensorflow_data_experimental_SnapshotRecord_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.data.experimental.SnapshotRecord getDefaultInstanceForType() { - return org.tensorflow.proto.data.experimental.SnapshotRecord.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.data.experimental.SnapshotRecord build() { - org.tensorflow.proto.data.experimental.SnapshotRecord result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.data.experimental.SnapshotRecord buildPartial() { - org.tensorflow.proto.data.experimental.SnapshotRecord result = new org.tensorflow.proto.data.experimental.SnapshotRecord(this); - int from_bitField0_ = bitField0_; - if (tensorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - tensor_ = java.util.Collections.unmodifiableList(tensor_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tensor_ = tensor_; - } else { - result.tensor_ = tensorBuilder_.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 org.tensorflow.proto.data.experimental.SnapshotRecord) { - return mergeFrom((org.tensorflow.proto.data.experimental.SnapshotRecord)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.data.experimental.SnapshotRecord other) { - if (other == org.tensorflow.proto.data.experimental.SnapshotRecord.getDefaultInstance()) return this; - if (tensorBuilder_ == null) { - if (!other.tensor_.isEmpty()) { - if (tensor_.isEmpty()) { - tensor_ = other.tensor_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTensorIsMutable(); - tensor_.addAll(other.tensor_); - } - onChanged(); - } - } else { - if (!other.tensor_.isEmpty()) { - if (tensorBuilder_.isEmpty()) { - tensorBuilder_.dispose(); - tensorBuilder_ = null; - tensor_ = other.tensor_; - bitField0_ = (bitField0_ & ~0x00000001); - tensorBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTensorFieldBuilder() : null; - } else { - tensorBuilder_.addAllMessages(other.tensor_); - } - } - } - 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 { - org.tensorflow.proto.data.experimental.SnapshotRecord parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.data.experimental.SnapshotRecord) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List tensor_ = - java.util.Collections.emptyList(); - private void ensureTensorIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - tensor_ = new java.util.ArrayList(tensor_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder> tensorBuilder_; - - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public java.util.List getTensorList() { - if (tensorBuilder_ == null) { - return java.util.Collections.unmodifiableList(tensor_); - } else { - return tensorBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public int getTensorCount() { - if (tensorBuilder_ == null) { - return tensor_.size(); - } else { - return tensorBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public org.tensorflow.proto.framework.TensorProto getTensor(int index) { - if (tensorBuilder_ == null) { - return tensor_.get(index); - } else { - return tensorBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public Builder setTensor( - int index, org.tensorflow.proto.framework.TensorProto value) { - if (tensorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTensorIsMutable(); - tensor_.set(index, value); - onChanged(); - } else { - tensorBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public Builder setTensor( - int index, org.tensorflow.proto.framework.TensorProto.Builder builderForValue) { - if (tensorBuilder_ == null) { - ensureTensorIsMutable(); - tensor_.set(index, builderForValue.build()); - onChanged(); - } else { - tensorBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public Builder addTensor(org.tensorflow.proto.framework.TensorProto value) { - if (tensorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTensorIsMutable(); - tensor_.add(value); - onChanged(); - } else { - tensorBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public Builder addTensor( - int index, org.tensorflow.proto.framework.TensorProto value) { - if (tensorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTensorIsMutable(); - tensor_.add(index, value); - onChanged(); - } else { - tensorBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public Builder addTensor( - org.tensorflow.proto.framework.TensorProto.Builder builderForValue) { - if (tensorBuilder_ == null) { - ensureTensorIsMutable(); - tensor_.add(builderForValue.build()); - onChanged(); - } else { - tensorBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public Builder addTensor( - int index, org.tensorflow.proto.framework.TensorProto.Builder builderForValue) { - if (tensorBuilder_ == null) { - ensureTensorIsMutable(); - tensor_.add(index, builderForValue.build()); - onChanged(); - } else { - tensorBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public Builder addAllTensor( - java.lang.Iterable values) { - if (tensorBuilder_ == null) { - ensureTensorIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tensor_); - onChanged(); - } else { - tensorBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public Builder clearTensor() { - if (tensorBuilder_ == null) { - tensor_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - tensorBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public Builder removeTensor(int index) { - if (tensorBuilder_ == null) { - ensureTensorIsMutable(); - tensor_.remove(index); - onChanged(); - } else { - tensorBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public org.tensorflow.proto.framework.TensorProto.Builder getTensorBuilder( - int index) { - return getTensorFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorOrBuilder( - int index) { - if (tensorBuilder_ == null) { - return tensor_.get(index); } else { - return tensorBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public java.util.List - getTensorOrBuilderList() { - if (tensorBuilder_ != null) { - return tensorBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tensor_); - } - } - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public org.tensorflow.proto.framework.TensorProto.Builder addTensorBuilder() { - return getTensorFieldBuilder().addBuilder( - org.tensorflow.proto.framework.TensorProto.getDefaultInstance()); - } - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public org.tensorflow.proto.framework.TensorProto.Builder addTensorBuilder( - int index) { - return getTensorFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.TensorProto.getDefaultInstance()); - } - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - public java.util.List - getTensorBuilderList() { - return getTensorFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder> - getTensorFieldBuilder() { - if (tensorBuilder_ == null) { - tensorBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder>( - tensor_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - tensor_ = null; - } - return tensorBuilder_; - } - @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:tensorflow.data.experimental.SnapshotRecord) - } - - // @@protoc_insertion_point(class_scope:tensorflow.data.experimental.SnapshotRecord) - private static final org.tensorflow.proto.data.experimental.SnapshotRecord DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.data.experimental.SnapshotRecord(); - } - - public static org.tensorflow.proto.data.experimental.SnapshotRecord getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SnapshotRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SnapshotRecord(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.data.experimental.SnapshotRecord getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/SnapshotRecordOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/SnapshotRecordOrBuilder.java deleted file mode 100644 index c87321a9074..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/SnapshotRecordOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/snapshot.proto - -package org.tensorflow.proto.data.experimental; - -public interface SnapshotRecordOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.data.experimental.SnapshotRecord) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - java.util.List - getTensorList(); - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - org.tensorflow.proto.framework.TensorProto getTensor(int index); - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - int getTensorCount(); - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - java.util.List - getTensorOrBuilderList(); - /** - * repeated .tensorflow.TensorProto tensor = 1; - */ - org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorOrBuilder( - int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/SnapshotTensorMetadata.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/SnapshotTensorMetadata.java deleted file mode 100644 index e2ac61e4dcf..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/SnapshotTensorMetadata.java +++ /dev/null @@ -1,773 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/snapshot.proto - -package org.tensorflow.proto.data.experimental; - -/** - *
- * Metadata for all the tensors in a Snapshot Record.
- * 
- * - * Protobuf type {@code tensorflow.data.experimental.SnapshotTensorMetadata} - */ -public final class SnapshotTensorMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.data.experimental.SnapshotTensorMetadata) - SnapshotTensorMetadataOrBuilder { -private static final long serialVersionUID = 0L; - // Use SnapshotTensorMetadata.newBuilder() to construct. - private SnapshotTensorMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SnapshotTensorMetadata() { - tensorMetadata_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SnapshotTensorMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SnapshotTensorMetadata( - 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)) { - tensorMetadata_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - tensorMetadata_.add( - input.readMessage(org.tensorflow.proto.data.experimental.TensorMetadata.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)) { - tensorMetadata_ = java.util.Collections.unmodifiableList(tensorMetadata_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.experimental.SnapshotProtos.internal_static_tensorflow_data_experimental_SnapshotTensorMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.experimental.SnapshotProtos.internal_static_tensorflow_data_experimental_SnapshotTensorMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.experimental.SnapshotTensorMetadata.class, org.tensorflow.proto.data.experimental.SnapshotTensorMetadata.Builder.class); - } - - public static final int TENSOR_METADATA_FIELD_NUMBER = 1; - private java.util.List tensorMetadata_; - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public java.util.List getTensorMetadataList() { - return tensorMetadata_; - } - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public java.util.List - getTensorMetadataOrBuilderList() { - return tensorMetadata_; - } - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public int getTensorMetadataCount() { - return tensorMetadata_.size(); - } - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public org.tensorflow.proto.data.experimental.TensorMetadata getTensorMetadata(int index) { - return tensorMetadata_.get(index); - } - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public org.tensorflow.proto.data.experimental.TensorMetadataOrBuilder getTensorMetadataOrBuilder( - int index) { - return tensorMetadata_.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 < tensorMetadata_.size(); i++) { - output.writeMessage(1, tensorMetadata_.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 < tensorMetadata_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, tensorMetadata_.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 org.tensorflow.proto.data.experimental.SnapshotTensorMetadata)) { - return super.equals(obj); - } - org.tensorflow.proto.data.experimental.SnapshotTensorMetadata other = (org.tensorflow.proto.data.experimental.SnapshotTensorMetadata) obj; - - if (!getTensorMetadataList() - .equals(other.getTensorMetadataList())) 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 (getTensorMetadataCount() > 0) { - hash = (37 * hash) + TENSOR_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getTensorMetadataList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.data.experimental.SnapshotTensorMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.experimental.SnapshotTensorMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.experimental.SnapshotTensorMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.experimental.SnapshotTensorMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.experimental.SnapshotTensorMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.experimental.SnapshotTensorMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.experimental.SnapshotTensorMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.experimental.SnapshotTensorMetadata 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 org.tensorflow.proto.data.experimental.SnapshotTensorMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.experimental.SnapshotTensorMetadata 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 org.tensorflow.proto.data.experimental.SnapshotTensorMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.experimental.SnapshotTensorMetadata 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(org.tensorflow.proto.data.experimental.SnapshotTensorMetadata 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; - } - /** - *
-   * Metadata for all the tensors in a Snapshot Record.
-   * 
- * - * Protobuf type {@code tensorflow.data.experimental.SnapshotTensorMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.data.experimental.SnapshotTensorMetadata) - org.tensorflow.proto.data.experimental.SnapshotTensorMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.experimental.SnapshotProtos.internal_static_tensorflow_data_experimental_SnapshotTensorMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.experimental.SnapshotProtos.internal_static_tensorflow_data_experimental_SnapshotTensorMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.experimental.SnapshotTensorMetadata.class, org.tensorflow.proto.data.experimental.SnapshotTensorMetadata.Builder.class); - } - - // Construct using org.tensorflow.proto.data.experimental.SnapshotTensorMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTensorMetadataFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (tensorMetadataBuilder_ == null) { - tensorMetadata_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - tensorMetadataBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.data.experimental.SnapshotProtos.internal_static_tensorflow_data_experimental_SnapshotTensorMetadata_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.data.experimental.SnapshotTensorMetadata getDefaultInstanceForType() { - return org.tensorflow.proto.data.experimental.SnapshotTensorMetadata.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.data.experimental.SnapshotTensorMetadata build() { - org.tensorflow.proto.data.experimental.SnapshotTensorMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.data.experimental.SnapshotTensorMetadata buildPartial() { - org.tensorflow.proto.data.experimental.SnapshotTensorMetadata result = new org.tensorflow.proto.data.experimental.SnapshotTensorMetadata(this); - int from_bitField0_ = bitField0_; - if (tensorMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - tensorMetadata_ = java.util.Collections.unmodifiableList(tensorMetadata_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tensorMetadata_ = tensorMetadata_; - } else { - result.tensorMetadata_ = tensorMetadataBuilder_.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 org.tensorflow.proto.data.experimental.SnapshotTensorMetadata) { - return mergeFrom((org.tensorflow.proto.data.experimental.SnapshotTensorMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.data.experimental.SnapshotTensorMetadata other) { - if (other == org.tensorflow.proto.data.experimental.SnapshotTensorMetadata.getDefaultInstance()) return this; - if (tensorMetadataBuilder_ == null) { - if (!other.tensorMetadata_.isEmpty()) { - if (tensorMetadata_.isEmpty()) { - tensorMetadata_ = other.tensorMetadata_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTensorMetadataIsMutable(); - tensorMetadata_.addAll(other.tensorMetadata_); - } - onChanged(); - } - } else { - if (!other.tensorMetadata_.isEmpty()) { - if (tensorMetadataBuilder_.isEmpty()) { - tensorMetadataBuilder_.dispose(); - tensorMetadataBuilder_ = null; - tensorMetadata_ = other.tensorMetadata_; - bitField0_ = (bitField0_ & ~0x00000001); - tensorMetadataBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTensorMetadataFieldBuilder() : null; - } else { - tensorMetadataBuilder_.addAllMessages(other.tensorMetadata_); - } - } - } - 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 { - org.tensorflow.proto.data.experimental.SnapshotTensorMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.data.experimental.SnapshotTensorMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List tensorMetadata_ = - java.util.Collections.emptyList(); - private void ensureTensorMetadataIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - tensorMetadata_ = new java.util.ArrayList(tensorMetadata_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.data.experimental.TensorMetadata, org.tensorflow.proto.data.experimental.TensorMetadata.Builder, org.tensorflow.proto.data.experimental.TensorMetadataOrBuilder> tensorMetadataBuilder_; - - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public java.util.List getTensorMetadataList() { - if (tensorMetadataBuilder_ == null) { - return java.util.Collections.unmodifiableList(tensorMetadata_); - } else { - return tensorMetadataBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public int getTensorMetadataCount() { - if (tensorMetadataBuilder_ == null) { - return tensorMetadata_.size(); - } else { - return tensorMetadataBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public org.tensorflow.proto.data.experimental.TensorMetadata getTensorMetadata(int index) { - if (tensorMetadataBuilder_ == null) { - return tensorMetadata_.get(index); - } else { - return tensorMetadataBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public Builder setTensorMetadata( - int index, org.tensorflow.proto.data.experimental.TensorMetadata value) { - if (tensorMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTensorMetadataIsMutable(); - tensorMetadata_.set(index, value); - onChanged(); - } else { - tensorMetadataBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public Builder setTensorMetadata( - int index, org.tensorflow.proto.data.experimental.TensorMetadata.Builder builderForValue) { - if (tensorMetadataBuilder_ == null) { - ensureTensorMetadataIsMutable(); - tensorMetadata_.set(index, builderForValue.build()); - onChanged(); - } else { - tensorMetadataBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public Builder addTensorMetadata(org.tensorflow.proto.data.experimental.TensorMetadata value) { - if (tensorMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTensorMetadataIsMutable(); - tensorMetadata_.add(value); - onChanged(); - } else { - tensorMetadataBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public Builder addTensorMetadata( - int index, org.tensorflow.proto.data.experimental.TensorMetadata value) { - if (tensorMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTensorMetadataIsMutable(); - tensorMetadata_.add(index, value); - onChanged(); - } else { - tensorMetadataBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public Builder addTensorMetadata( - org.tensorflow.proto.data.experimental.TensorMetadata.Builder builderForValue) { - if (tensorMetadataBuilder_ == null) { - ensureTensorMetadataIsMutable(); - tensorMetadata_.add(builderForValue.build()); - onChanged(); - } else { - tensorMetadataBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public Builder addTensorMetadata( - int index, org.tensorflow.proto.data.experimental.TensorMetadata.Builder builderForValue) { - if (tensorMetadataBuilder_ == null) { - ensureTensorMetadataIsMutable(); - tensorMetadata_.add(index, builderForValue.build()); - onChanged(); - } else { - tensorMetadataBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public Builder addAllTensorMetadata( - java.lang.Iterable values) { - if (tensorMetadataBuilder_ == null) { - ensureTensorMetadataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tensorMetadata_); - onChanged(); - } else { - tensorMetadataBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public Builder clearTensorMetadata() { - if (tensorMetadataBuilder_ == null) { - tensorMetadata_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - tensorMetadataBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public Builder removeTensorMetadata(int index) { - if (tensorMetadataBuilder_ == null) { - ensureTensorMetadataIsMutable(); - tensorMetadata_.remove(index); - onChanged(); - } else { - tensorMetadataBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public org.tensorflow.proto.data.experimental.TensorMetadata.Builder getTensorMetadataBuilder( - int index) { - return getTensorMetadataFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public org.tensorflow.proto.data.experimental.TensorMetadataOrBuilder getTensorMetadataOrBuilder( - int index) { - if (tensorMetadataBuilder_ == null) { - return tensorMetadata_.get(index); } else { - return tensorMetadataBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public java.util.List - getTensorMetadataOrBuilderList() { - if (tensorMetadataBuilder_ != null) { - return tensorMetadataBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tensorMetadata_); - } - } - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public org.tensorflow.proto.data.experimental.TensorMetadata.Builder addTensorMetadataBuilder() { - return getTensorMetadataFieldBuilder().addBuilder( - org.tensorflow.proto.data.experimental.TensorMetadata.getDefaultInstance()); - } - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public org.tensorflow.proto.data.experimental.TensorMetadata.Builder addTensorMetadataBuilder( - int index) { - return getTensorMetadataFieldBuilder().addBuilder( - index, org.tensorflow.proto.data.experimental.TensorMetadata.getDefaultInstance()); - } - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - public java.util.List - getTensorMetadataBuilderList() { - return getTensorMetadataFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.data.experimental.TensorMetadata, org.tensorflow.proto.data.experimental.TensorMetadata.Builder, org.tensorflow.proto.data.experimental.TensorMetadataOrBuilder> - getTensorMetadataFieldBuilder() { - if (tensorMetadataBuilder_ == null) { - tensorMetadataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.data.experimental.TensorMetadata, org.tensorflow.proto.data.experimental.TensorMetadata.Builder, org.tensorflow.proto.data.experimental.TensorMetadataOrBuilder>( - tensorMetadata_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - tensorMetadata_ = null; - } - return tensorMetadataBuilder_; - } - @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:tensorflow.data.experimental.SnapshotTensorMetadata) - } - - // @@protoc_insertion_point(class_scope:tensorflow.data.experimental.SnapshotTensorMetadata) - private static final org.tensorflow.proto.data.experimental.SnapshotTensorMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.data.experimental.SnapshotTensorMetadata(); - } - - public static org.tensorflow.proto.data.experimental.SnapshotTensorMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SnapshotTensorMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SnapshotTensorMetadata(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.data.experimental.SnapshotTensorMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/SnapshotTensorMetadataOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/SnapshotTensorMetadataOrBuilder.java deleted file mode 100644 index d18a1149928..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/SnapshotTensorMetadataOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/snapshot.proto - -package org.tensorflow.proto.data.experimental; - -public interface SnapshotTensorMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.data.experimental.SnapshotTensorMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - java.util.List - getTensorMetadataList(); - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - org.tensorflow.proto.data.experimental.TensorMetadata getTensorMetadata(int index); - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - int getTensorMetadataCount(); - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - java.util.List - getTensorMetadataOrBuilderList(); - /** - * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; - */ - org.tensorflow.proto.data.experimental.TensorMetadataOrBuilder getTensorMetadataOrBuilder( - int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/TensorMetadata.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/TensorMetadata.java deleted file mode 100644 index b8b44dff6ed..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/TensorMetadata.java +++ /dev/null @@ -1,682 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/snapshot.proto - -package org.tensorflow.proto.data.experimental; - -/** - *
- * Metadata for a single tensor in the Snapshot Record.
- * 
- * - * Protobuf type {@code tensorflow.data.experimental.TensorMetadata} - */ -public final class TensorMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.data.experimental.TensorMetadata) - TensorMetadataOrBuilder { -private static final long serialVersionUID = 0L; - // Use TensorMetadata.newBuilder() to construct. - private TensorMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TensorMetadata() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TensorMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TensorMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: { - org.tensorflow.proto.framework.TensorShapeProto.Builder subBuilder = null; - if (tensorShape_ != null) { - subBuilder = tensorShape_.toBuilder(); - } - tensorShape_ = input.readMessage(org.tensorflow.proto.framework.TensorShapeProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tensorShape_); - tensorShape_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - tensorSizeBytes_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.experimental.SnapshotProtos.internal_static_tensorflow_data_experimental_TensorMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.experimental.SnapshotProtos.internal_static_tensorflow_data_experimental_TensorMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.experimental.TensorMetadata.class, org.tensorflow.proto.data.experimental.TensorMetadata.Builder.class); - } - - public static final int TENSOR_SHAPE_FIELD_NUMBER = 2; - private org.tensorflow.proto.framework.TensorShapeProto tensorShape_; - /** - * .tensorflow.TensorShapeProto tensor_shape = 2; - */ - public boolean hasTensorShape() { - return tensorShape_ != null; - } - /** - * .tensorflow.TensorShapeProto tensor_shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProto getTensorShape() { - return tensorShape_ == null ? org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : tensorShape_; - } - /** - * .tensorflow.TensorShapeProto tensor_shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getTensorShapeOrBuilder() { - return getTensorShape(); - } - - public static final int TENSOR_SIZE_BYTES_FIELD_NUMBER = 3; - private long tensorSizeBytes_; - /** - *
-   * Number of uncompressed bytes used to store the tensor representation.
-   * 
- * - * int64 tensor_size_bytes = 3; - */ - public long getTensorSizeBytes() { - return tensorSizeBytes_; - } - - 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 (tensorShape_ != null) { - output.writeMessage(2, getTensorShape()); - } - if (tensorSizeBytes_ != 0L) { - output.writeInt64(3, tensorSizeBytes_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tensorShape_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTensorShape()); - } - if (tensorSizeBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, tensorSizeBytes_); - } - 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 org.tensorflow.proto.data.experimental.TensorMetadata)) { - return super.equals(obj); - } - org.tensorflow.proto.data.experimental.TensorMetadata other = (org.tensorflow.proto.data.experimental.TensorMetadata) obj; - - if (hasTensorShape() != other.hasTensorShape()) return false; - if (hasTensorShape()) { - if (!getTensorShape() - .equals(other.getTensorShape())) return false; - } - if (getTensorSizeBytes() - != other.getTensorSizeBytes()) 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 (hasTensorShape()) { - hash = (37 * hash) + TENSOR_SHAPE_FIELD_NUMBER; - hash = (53 * hash) + getTensorShape().hashCode(); - } - hash = (37 * hash) + TENSOR_SIZE_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTensorSizeBytes()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.data.experimental.TensorMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.experimental.TensorMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.experimental.TensorMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.experimental.TensorMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.experimental.TensorMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.experimental.TensorMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.experimental.TensorMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.experimental.TensorMetadata 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 org.tensorflow.proto.data.experimental.TensorMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.experimental.TensorMetadata 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 org.tensorflow.proto.data.experimental.TensorMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.experimental.TensorMetadata 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(org.tensorflow.proto.data.experimental.TensorMetadata 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; - } - /** - *
-   * Metadata for a single tensor in the Snapshot Record.
-   * 
- * - * Protobuf type {@code tensorflow.data.experimental.TensorMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.data.experimental.TensorMetadata) - org.tensorflow.proto.data.experimental.TensorMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.experimental.SnapshotProtos.internal_static_tensorflow_data_experimental_TensorMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.experimental.SnapshotProtos.internal_static_tensorflow_data_experimental_TensorMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.experimental.TensorMetadata.class, org.tensorflow.proto.data.experimental.TensorMetadata.Builder.class); - } - - // Construct using org.tensorflow.proto.data.experimental.TensorMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (tensorShapeBuilder_ == null) { - tensorShape_ = null; - } else { - tensorShape_ = null; - tensorShapeBuilder_ = null; - } - tensorSizeBytes_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.data.experimental.SnapshotProtos.internal_static_tensorflow_data_experimental_TensorMetadata_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.data.experimental.TensorMetadata getDefaultInstanceForType() { - return org.tensorflow.proto.data.experimental.TensorMetadata.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.data.experimental.TensorMetadata build() { - org.tensorflow.proto.data.experimental.TensorMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.data.experimental.TensorMetadata buildPartial() { - org.tensorflow.proto.data.experimental.TensorMetadata result = new org.tensorflow.proto.data.experimental.TensorMetadata(this); - if (tensorShapeBuilder_ == null) { - result.tensorShape_ = tensorShape_; - } else { - result.tensorShape_ = tensorShapeBuilder_.build(); - } - result.tensorSizeBytes_ = tensorSizeBytes_; - 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 org.tensorflow.proto.data.experimental.TensorMetadata) { - return mergeFrom((org.tensorflow.proto.data.experimental.TensorMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.data.experimental.TensorMetadata other) { - if (other == org.tensorflow.proto.data.experimental.TensorMetadata.getDefaultInstance()) return this; - if (other.hasTensorShape()) { - mergeTensorShape(other.getTensorShape()); - } - if (other.getTensorSizeBytes() != 0L) { - setTensorSizeBytes(other.getTensorSizeBytes()); - } - 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 { - org.tensorflow.proto.data.experimental.TensorMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.data.experimental.TensorMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private org.tensorflow.proto.framework.TensorShapeProto tensorShape_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> tensorShapeBuilder_; - /** - * .tensorflow.TensorShapeProto tensor_shape = 2; - */ - public boolean hasTensorShape() { - return tensorShapeBuilder_ != null || tensorShape_ != null; - } - /** - * .tensorflow.TensorShapeProto tensor_shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProto getTensorShape() { - if (tensorShapeBuilder_ == null) { - return tensorShape_ == null ? org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : tensorShape_; - } else { - return tensorShapeBuilder_.getMessage(); - } - } - /** - * .tensorflow.TensorShapeProto tensor_shape = 2; - */ - public Builder setTensorShape(org.tensorflow.proto.framework.TensorShapeProto value) { - if (tensorShapeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tensorShape_ = value; - onChanged(); - } else { - tensorShapeBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto tensor_shape = 2; - */ - public Builder setTensorShape( - org.tensorflow.proto.framework.TensorShapeProto.Builder builderForValue) { - if (tensorShapeBuilder_ == null) { - tensorShape_ = builderForValue.build(); - onChanged(); - } else { - tensorShapeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto tensor_shape = 2; - */ - public Builder mergeTensorShape(org.tensorflow.proto.framework.TensorShapeProto value) { - if (tensorShapeBuilder_ == null) { - if (tensorShape_ != null) { - tensorShape_ = - org.tensorflow.proto.framework.TensorShapeProto.newBuilder(tensorShape_).mergeFrom(value).buildPartial(); - } else { - tensorShape_ = value; - } - onChanged(); - } else { - tensorShapeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto tensor_shape = 2; - */ - public Builder clearTensorShape() { - if (tensorShapeBuilder_ == null) { - tensorShape_ = null; - onChanged(); - } else { - tensorShape_ = null; - tensorShapeBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.TensorShapeProto tensor_shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProto.Builder getTensorShapeBuilder() { - - onChanged(); - return getTensorShapeFieldBuilder().getBuilder(); - } - /** - * .tensorflow.TensorShapeProto tensor_shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getTensorShapeOrBuilder() { - if (tensorShapeBuilder_ != null) { - return tensorShapeBuilder_.getMessageOrBuilder(); - } else { - return tensorShape_ == null ? - org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : tensorShape_; - } - } - /** - * .tensorflow.TensorShapeProto tensor_shape = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> - getTensorShapeFieldBuilder() { - if (tensorShapeBuilder_ == null) { - tensorShapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder>( - getTensorShape(), - getParentForChildren(), - isClean()); - tensorShape_ = null; - } - return tensorShapeBuilder_; - } - - private long tensorSizeBytes_ ; - /** - *
-     * Number of uncompressed bytes used to store the tensor representation.
-     * 
- * - * int64 tensor_size_bytes = 3; - */ - public long getTensorSizeBytes() { - return tensorSizeBytes_; - } - /** - *
-     * Number of uncompressed bytes used to store the tensor representation.
-     * 
- * - * int64 tensor_size_bytes = 3; - */ - public Builder setTensorSizeBytes(long value) { - - tensorSizeBytes_ = value; - onChanged(); - return this; - } - /** - *
-     * Number of uncompressed bytes used to store the tensor representation.
-     * 
- * - * int64 tensor_size_bytes = 3; - */ - public Builder clearTensorSizeBytes() { - - tensorSizeBytes_ = 0L; - 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:tensorflow.data.experimental.TensorMetadata) - } - - // @@protoc_insertion_point(class_scope:tensorflow.data.experimental.TensorMetadata) - private static final org.tensorflow.proto.data.experimental.TensorMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.data.experimental.TensorMetadata(); - } - - public static org.tensorflow.proto.data.experimental.TensorMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TensorMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TensorMetadata(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.data.experimental.TensorMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/TensorMetadataOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/TensorMetadataOrBuilder.java deleted file mode 100644 index 3aadfb8de72..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/TensorMetadataOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/snapshot.proto - -package org.tensorflow.proto.data.experimental; - -public interface TensorMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.data.experimental.TensorMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * .tensorflow.TensorShapeProto tensor_shape = 2; - */ - boolean hasTensorShape(); - /** - * .tensorflow.TensorShapeProto tensor_shape = 2; - */ - org.tensorflow.proto.framework.TensorShapeProto getTensorShape(); - /** - * .tensorflow.TensorShapeProto tensor_shape = 2; - */ - org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getTensorShapeOrBuilder(); - - /** - *
-   * Number of uncompressed bytes used to store the tensor representation.
-   * 
- * - * int64 tensor_size_bytes = 3; - */ - long getTensorSizeBytes(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/model/AutotuneAlgorithm.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/model/AutotuneAlgorithm.java deleted file mode 100644 index 019aab12878..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/model/AutotuneAlgorithm.java +++ /dev/null @@ -1,134 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/model.proto - -package org.tensorflow.proto.data.model; - -/** - *
- * Algorithm used for model autotuning optimization.
- * 
- * - * Protobuf enum {@code tensorflow.data.model.AutotuneAlgorithm} - */ -public enum AutotuneAlgorithm - implements com.google.protobuf.ProtocolMessageEnum { - /** - * DEFAULT = 0; - */ - DEFAULT(0), - /** - * HILL_CLIMB = 1; - */ - HILL_CLIMB(1), - /** - * GRADIENT_DESCENT = 2; - */ - GRADIENT_DESCENT(2), - /** - * MAX_PARALLELISM = 3; - */ - MAX_PARALLELISM(3), - /** - * STAGE_BASED = 4; - */ - STAGE_BASED(4), - UNRECOGNIZED(-1), - ; - - /** - * DEFAULT = 0; - */ - public static final int DEFAULT_VALUE = 0; - /** - * HILL_CLIMB = 1; - */ - public static final int HILL_CLIMB_VALUE = 1; - /** - * GRADIENT_DESCENT = 2; - */ - public static final int GRADIENT_DESCENT_VALUE = 2; - /** - * MAX_PARALLELISM = 3; - */ - public static final int MAX_PARALLELISM_VALUE = 3; - /** - * STAGE_BASED = 4; - */ - public static final int STAGE_BASED_VALUE = 4; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AutotuneAlgorithm valueOf(int value) { - return forNumber(value); - } - - public static AutotuneAlgorithm forNumber(int value) { - switch (value) { - case 0: return DEFAULT; - case 1: return HILL_CLIMB; - case 2: return GRADIENT_DESCENT; - case 3: return MAX_PARALLELISM; - case 4: return STAGE_BASED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - AutotuneAlgorithm> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AutotuneAlgorithm findValueByNumber(int number) { - return AutotuneAlgorithm.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 org.tensorflow.proto.data.model.ModelProtos.getDescriptor().getEnumTypes().get(1); - } - - private static final AutotuneAlgorithm[] VALUES = values(); - - public static AutotuneAlgorithm 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 AutotuneAlgorithm(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:tensorflow.data.model.AutotuneAlgorithm) -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/model/ModelProto.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/model/ModelProto.java deleted file mode 100644 index ea52cf04acb..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/model/ModelProto.java +++ /dev/null @@ -1,5425 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/model.proto - -package org.tensorflow.proto.data.model; - -/** - *
- * Protocol buffer representing the data used by the autotuning modeling
- * framework.
- * 
- * - * Protobuf type {@code tensorflow.data.model.ModelProto} - */ -public final class ModelProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.data.model.ModelProto) - ModelProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use ModelProto.newBuilder() to construct. - private ModelProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ModelProto() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ModelProto(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ModelProto( - 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)) { - nodes_ = com.google.protobuf.MapField.newMapField( - NodesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - nodes__ = input.readMessage( - NodesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - nodes_.getMutableMap().put( - nodes__.getKey(), nodes__.getValue()); - break; - } - case 16: { - - output_ = input.readInt64(); - break; - } - case 24: { - - idCounter_ = input.readInt64(); - break; - } - case 42: { - org.tensorflow.proto.data.model.ModelProto.OptimizationParams.Builder subBuilder = null; - if (optimizationParams_ != null) { - subBuilder = optimizationParams_.toBuilder(); - } - optimizationParams_ = input.readMessage(org.tensorflow.proto.data.model.ModelProto.OptimizationParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(optimizationParams_); - optimizationParams_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetNodes(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.model.ModelProto.class, org.tensorflow.proto.data.model.ModelProto.Builder.class); - } - - public interface NodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.data.model.ModelProto.Node) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique node ID.
-     * 
- * - * int64 id = 1; - */ - long getId(); - - /** - *
-     * Human-readable name of the node.
-     * 
- * - * string name = 2; - */ - java.lang.String getName(); - /** - *
-     * Human-readable name of the node.
-     * 
- * - * string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * An indication whether autotuning is enabled for this node.
-     * 
- * - * bool autotune = 3; - */ - boolean getAutotune(); - - /** - *
-     * The number of bytes stored in this node's buffer.
-     * 
- * - * int64 buffered_bytes = 4; - */ - long getBufferedBytes(); - - /** - *
-     * The number of elements stored in this node's buffer.
-     * 
- * - * int64 buffered_elements = 5; - */ - long getBufferedElements(); - - /** - *
-     * The number of bytes consumed by the node.
-     * 
- * - * int64 bytes_consumed = 6; - */ - long getBytesConsumed(); - - /** - *
-     * The number of bytes produced by the node.
-     * 
- * - * int64 bytes_produced = 7; - */ - long getBytesProduced(); - - /** - *
-     * The number of elements produced by the node.
-     * 
- * - * int64 num_elements = 8; - */ - long getNumElements(); - - /** - *
-     * The aggregate processing time spent in this node in nanoseconds.
-     * 
- * - * int64 processing_time = 9; - */ - long getProcessingTime(); - - /** - *
-     * An indication whether this node records metrics about produced and
-     * consumed elements.
-     * 
- * - * bool record_metrics = 10; - */ - boolean getRecordMetrics(); - - /** - *
-     * Parameters of this node.
-     * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - java.util.List - getParametersList(); - /** - *
-     * Parameters of this node.
-     * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - org.tensorflow.proto.data.model.ModelProto.Node.Parameter getParameters(int index); - /** - *
-     * Parameters of this node.
-     * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - int getParametersCount(); - /** - *
-     * Parameters of this node.
-     * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - java.util.List - getParametersOrBuilderList(); - /** - *
-     * Parameters of this node.
-     * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - org.tensorflow.proto.data.model.ModelProto.Node.ParameterOrBuilder getParametersOrBuilder( - int index); - - /** - *
-     * Statistic of inputs processing time history.
-     * 
- * - * double input_processing_time_sum = 12; - */ - double getInputProcessingTimeSum(); - - /** - * int64 input_processing_time_count = 13; - */ - long getInputProcessingTimeCount(); - - /** - *
-     * IDs of inputs of this node.
-     * 
- * - * repeated int64 inputs = 14; - */ - java.util.List getInputsList(); - /** - *
-     * IDs of inputs of this node.
-     * 
- * - * repeated int64 inputs = 14; - */ - int getInputsCount(); - /** - *
-     * IDs of inputs of this node.
-     * 
- * - * repeated int64 inputs = 14; - */ - long getInputs(int index); - - /** - *
-     * Class of this node.
-     * 
- * - * .tensorflow.data.model.NodeClass node_class = 15; - */ - int getNodeClassValue(); - /** - *
-     * Class of this node.
-     * 
- * - * .tensorflow.data.model.NodeClass node_class = 15; - */ - org.tensorflow.proto.data.model.NodeClass getNodeClass(); - - /** - *
-     * Ratio of input to output elements. This is only used by KNOWN_RATIO and
-     * ASYNC_KNOWN_RATIO nodes.
-     * 
- * - * double ratio = 16; - */ - double getRatio(); - - /** - *
-     * Ratio identifies how many parallelism calls are introduced by one
-     * buffered element. This is only used by ASYNC_KNOWN_RATIO nodes.
-     * 
- * - * double memory_ratio = 17; - */ - double getMemoryRatio(); - } - /** - *
-   * General representation of a node in the model.
-   * 
- * - * Protobuf type {@code tensorflow.data.model.ModelProto.Node} - */ - public static final class Node extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.data.model.ModelProto.Node) - NodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use Node.newBuilder() to construct. - private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Node() { - name_ = ""; - parameters_ = java.util.Collections.emptyList(); - inputs_ = emptyLongList(); - nodeClass_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Node(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Node( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - id_ = input.readInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 24: { - - autotune_ = input.readBool(); - break; - } - case 32: { - - bufferedBytes_ = input.readInt64(); - break; - } - case 40: { - - bufferedElements_ = input.readInt64(); - break; - } - case 48: { - - bytesConsumed_ = input.readInt64(); - break; - } - case 56: { - - bytesProduced_ = input.readInt64(); - break; - } - case 64: { - - numElements_ = input.readInt64(); - break; - } - case 72: { - - processingTime_ = input.readInt64(); - break; - } - case 80: { - - recordMetrics_ = input.readBool(); - break; - } - case 90: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - parameters_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - parameters_.add( - input.readMessage(org.tensorflow.proto.data.model.ModelProto.Node.Parameter.parser(), extensionRegistry)); - break; - } - case 97: { - - inputProcessingTimeSum_ = input.readDouble(); - break; - } - case 104: { - - inputProcessingTimeCount_ = input.readInt64(); - break; - } - case 112: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - inputs_ = newLongList(); - mutable_bitField0_ |= 0x00000002; - } - inputs_.addLong(input.readInt64()); - break; - } - case 114: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - inputs_ = newLongList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - inputs_.addLong(input.readInt64()); - } - input.popLimit(limit); - break; - } - case 120: { - int rawValue = input.readEnum(); - - nodeClass_ = rawValue; - break; - } - case 129: { - - ratio_ = input.readDouble(); - break; - } - case 137: { - - memoryRatio_ = input.readDouble(); - 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)) { - parameters_ = java.util.Collections.unmodifiableList(parameters_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - inputs_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_Node_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_Node_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.model.ModelProto.Node.class, org.tensorflow.proto.data.model.ModelProto.Node.Builder.class); - } - - public interface ParameterOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.data.model.ModelProto.Node.Parameter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * Human-readable name of the parameter.
-       * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-       * Human-readable name of the parameter.
-       * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-       * Identifies the model value of the parameter. This can be different from
-       * the actual value (e.g. during optimization search).
-       * 
- * - * double value = 2; - */ - double getValue(); - - /** - *
-       * The actual value of the parameter.
-       * 
- * - * double state_value = 3; - */ - double getStateValue(); - - /** - *
-       * Minimum value of the parameter.
-       * 
- * - * double min = 4; - */ - double getMin(); - - /** - *
-       * Maximum value of the parameter.
-       * 
- * - * double max = 5; - */ - double getMax(); - - /** - *
-       * Identifies whether the parameter should participate in autotuning.
-       * 
- * - * bool tunable = 6; - */ - boolean getTunable(); - } - /** - *
-     * Represents a node parameter.
-     * 
- * - * Protobuf type {@code tensorflow.data.model.ModelProto.Node.Parameter} - */ - public static final class Parameter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.data.model.ModelProto.Node.Parameter) - ParameterOrBuilder { - private static final long serialVersionUID = 0L; - // Use Parameter.newBuilder() to construct. - private Parameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Parameter() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Parameter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Parameter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 17: { - - value_ = input.readDouble(); - break; - } - case 25: { - - stateValue_ = input.readDouble(); - break; - } - case 33: { - - min_ = input.readDouble(); - break; - } - case 41: { - - max_ = input.readDouble(); - break; - } - case 48: { - - tunable_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_Node_Parameter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_Node_Parameter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.model.ModelProto.Node.Parameter.class, org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-       * Human-readable name of the parameter.
-       * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - *
-       * Human-readable name of the parameter.
-       * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUE_FIELD_NUMBER = 2; - private double value_; - /** - *
-       * Identifies the model value of the parameter. This can be different from
-       * the actual value (e.g. during optimization search).
-       * 
- * - * double value = 2; - */ - public double getValue() { - return value_; - } - - public static final int STATE_VALUE_FIELD_NUMBER = 3; - private double stateValue_; - /** - *
-       * The actual value of the parameter.
-       * 
- * - * double state_value = 3; - */ - public double getStateValue() { - return stateValue_; - } - - public static final int MIN_FIELD_NUMBER = 4; - private double min_; - /** - *
-       * Minimum value of the parameter.
-       * 
- * - * double min = 4; - */ - public double getMin() { - return min_; - } - - public static final int MAX_FIELD_NUMBER = 5; - private double max_; - /** - *
-       * Maximum value of the parameter.
-       * 
- * - * double max = 5; - */ - public double getMax() { - return max_; - } - - public static final int TUNABLE_FIELD_NUMBER = 6; - private boolean tunable_; - /** - *
-       * Identifies whether the parameter should participate in autotuning.
-       * 
- * - * bool tunable = 6; - */ - public boolean getTunable() { - return tunable_; - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (value_ != 0D) { - output.writeDouble(2, value_); - } - if (stateValue_ != 0D) { - output.writeDouble(3, stateValue_); - } - if (min_ != 0D) { - output.writeDouble(4, min_); - } - if (max_ != 0D) { - output.writeDouble(5, max_); - } - if (tunable_ != false) { - output.writeBool(6, tunable_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (value_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, value_); - } - if (stateValue_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, stateValue_); - } - if (min_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(4, min_); - } - if (max_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(5, max_); - } - if (tunable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, tunable_); - } - 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 org.tensorflow.proto.data.model.ModelProto.Node.Parameter)) { - return super.equals(obj); - } - org.tensorflow.proto.data.model.ModelProto.Node.Parameter other = (org.tensorflow.proto.data.model.ModelProto.Node.Parameter) obj; - - if (!getName() - .equals(other.getName())) return false; - if (java.lang.Double.doubleToLongBits(getValue()) - != java.lang.Double.doubleToLongBits( - other.getValue())) return false; - if (java.lang.Double.doubleToLongBits(getStateValue()) - != java.lang.Double.doubleToLongBits( - other.getStateValue())) return false; - if (java.lang.Double.doubleToLongBits(getMin()) - != java.lang.Double.doubleToLongBits( - other.getMin())) return false; - if (java.lang.Double.doubleToLongBits(getMax()) - != java.lang.Double.doubleToLongBits( - other.getMax())) return false; - if (getTunable() - != other.getTunable()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getValue())); - hash = (37 * hash) + STATE_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getStateValue())); - hash = (37 * hash) + MIN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMin())); - hash = (37 * hash) + MAX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMax())); - hash = (37 * hash) + TUNABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getTunable()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.data.model.ModelProto.Node.Parameter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.model.ModelProto.Node.Parameter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.model.ModelProto.Node.Parameter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.model.ModelProto.Node.Parameter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.model.ModelProto.Node.Parameter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.model.ModelProto.Node.Parameter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.model.ModelProto.Node.Parameter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.model.ModelProto.Node.Parameter 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 org.tensorflow.proto.data.model.ModelProto.Node.Parameter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.model.ModelProto.Node.Parameter 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 org.tensorflow.proto.data.model.ModelProto.Node.Parameter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.model.ModelProto.Node.Parameter 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(org.tensorflow.proto.data.model.ModelProto.Node.Parameter 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; - } - /** - *
-       * Represents a node parameter.
-       * 
- * - * Protobuf type {@code tensorflow.data.model.ModelProto.Node.Parameter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.data.model.ModelProto.Node.Parameter) - org.tensorflow.proto.data.model.ModelProto.Node.ParameterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_Node_Parameter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_Node_Parameter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.model.ModelProto.Node.Parameter.class, org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder.class); - } - - // Construct using org.tensorflow.proto.data.model.ModelProto.Node.Parameter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - value_ = 0D; - - stateValue_ = 0D; - - min_ = 0D; - - max_ = 0D; - - tunable_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_Node_Parameter_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.data.model.ModelProto.Node.Parameter getDefaultInstanceForType() { - return org.tensorflow.proto.data.model.ModelProto.Node.Parameter.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.data.model.ModelProto.Node.Parameter build() { - org.tensorflow.proto.data.model.ModelProto.Node.Parameter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.data.model.ModelProto.Node.Parameter buildPartial() { - org.tensorflow.proto.data.model.ModelProto.Node.Parameter result = new org.tensorflow.proto.data.model.ModelProto.Node.Parameter(this); - result.name_ = name_; - result.value_ = value_; - result.stateValue_ = stateValue_; - result.min_ = min_; - result.max_ = max_; - result.tunable_ = tunable_; - 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 org.tensorflow.proto.data.model.ModelProto.Node.Parameter) { - return mergeFrom((org.tensorflow.proto.data.model.ModelProto.Node.Parameter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.data.model.ModelProto.Node.Parameter other) { - if (other == org.tensorflow.proto.data.model.ModelProto.Node.Parameter.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getValue() != 0D) { - setValue(other.getValue()); - } - if (other.getStateValue() != 0D) { - setStateValue(other.getStateValue()); - } - if (other.getMin() != 0D) { - setMin(other.getMin()); - } - if (other.getMax() != 0D) { - setMax(other.getMax()); - } - if (other.getTunable() != false) { - setTunable(other.getTunable()); - } - 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 { - org.tensorflow.proto.data.model.ModelProto.Node.Parameter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.data.model.ModelProto.Node.Parameter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-         * Human-readable name of the parameter.
-         * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-         * Human-readable name of the parameter.
-         * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-         * Human-readable name of the parameter.
-         * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-         * Human-readable name of the parameter.
-         * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-         * Human-readable name of the parameter.
-         * 
- * - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private double value_ ; - /** - *
-         * Identifies the model value of the parameter. This can be different from
-         * the actual value (e.g. during optimization search).
-         * 
- * - * double value = 2; - */ - public double getValue() { - return value_; - } - /** - *
-         * Identifies the model value of the parameter. This can be different from
-         * the actual value (e.g. during optimization search).
-         * 
- * - * double value = 2; - */ - public Builder setValue(double value) { - - value_ = value; - onChanged(); - return this; - } - /** - *
-         * Identifies the model value of the parameter. This can be different from
-         * the actual value (e.g. during optimization search).
-         * 
- * - * double value = 2; - */ - public Builder clearValue() { - - value_ = 0D; - onChanged(); - return this; - } - - private double stateValue_ ; - /** - *
-         * The actual value of the parameter.
-         * 
- * - * double state_value = 3; - */ - public double getStateValue() { - return stateValue_; - } - /** - *
-         * The actual value of the parameter.
-         * 
- * - * double state_value = 3; - */ - public Builder setStateValue(double value) { - - stateValue_ = value; - onChanged(); - return this; - } - /** - *
-         * The actual value of the parameter.
-         * 
- * - * double state_value = 3; - */ - public Builder clearStateValue() { - - stateValue_ = 0D; - onChanged(); - return this; - } - - private double min_ ; - /** - *
-         * Minimum value of the parameter.
-         * 
- * - * double min = 4; - */ - public double getMin() { - return min_; - } - /** - *
-         * Minimum value of the parameter.
-         * 
- * - * double min = 4; - */ - public Builder setMin(double value) { - - min_ = value; - onChanged(); - return this; - } - /** - *
-         * Minimum value of the parameter.
-         * 
- * - * double min = 4; - */ - public Builder clearMin() { - - min_ = 0D; - onChanged(); - return this; - } - - private double max_ ; - /** - *
-         * Maximum value of the parameter.
-         * 
- * - * double max = 5; - */ - public double getMax() { - return max_; - } - /** - *
-         * Maximum value of the parameter.
-         * 
- * - * double max = 5; - */ - public Builder setMax(double value) { - - max_ = value; - onChanged(); - return this; - } - /** - *
-         * Maximum value of the parameter.
-         * 
- * - * double max = 5; - */ - public Builder clearMax() { - - max_ = 0D; - onChanged(); - return this; - } - - private boolean tunable_ ; - /** - *
-         * Identifies whether the parameter should participate in autotuning.
-         * 
- * - * bool tunable = 6; - */ - public boolean getTunable() { - return tunable_; - } - /** - *
-         * Identifies whether the parameter should participate in autotuning.
-         * 
- * - * bool tunable = 6; - */ - public Builder setTunable(boolean value) { - - tunable_ = value; - onChanged(); - return this; - } - /** - *
-         * Identifies whether the parameter should participate in autotuning.
-         * 
- * - * bool tunable = 6; - */ - public Builder clearTunable() { - - tunable_ = false; - 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:tensorflow.data.model.ModelProto.Node.Parameter) - } - - // @@protoc_insertion_point(class_scope:tensorflow.data.model.ModelProto.Node.Parameter) - private static final org.tensorflow.proto.data.model.ModelProto.Node.Parameter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.data.model.ModelProto.Node.Parameter(); - } - - public static org.tensorflow.proto.data.model.ModelProto.Node.Parameter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Parameter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Parameter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.data.model.ModelProto.Node.Parameter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int ID_FIELD_NUMBER = 1; - private long id_; - /** - *
-     * Unique node ID.
-     * 
- * - * int64 id = 1; - */ - public long getId() { - return id_; - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - *
-     * Human-readable name of the node.
-     * 
- * - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - *
-     * Human-readable name of the node.
-     * 
- * - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AUTOTUNE_FIELD_NUMBER = 3; - private boolean autotune_; - /** - *
-     * An indication whether autotuning is enabled for this node.
-     * 
- * - * bool autotune = 3; - */ - public boolean getAutotune() { - return autotune_; - } - - public static final int BUFFERED_BYTES_FIELD_NUMBER = 4; - private long bufferedBytes_; - /** - *
-     * The number of bytes stored in this node's buffer.
-     * 
- * - * int64 buffered_bytes = 4; - */ - public long getBufferedBytes() { - return bufferedBytes_; - } - - public static final int BUFFERED_ELEMENTS_FIELD_NUMBER = 5; - private long bufferedElements_; - /** - *
-     * The number of elements stored in this node's buffer.
-     * 
- * - * int64 buffered_elements = 5; - */ - public long getBufferedElements() { - return bufferedElements_; - } - - public static final int BYTES_CONSUMED_FIELD_NUMBER = 6; - private long bytesConsumed_; - /** - *
-     * The number of bytes consumed by the node.
-     * 
- * - * int64 bytes_consumed = 6; - */ - public long getBytesConsumed() { - return bytesConsumed_; - } - - public static final int BYTES_PRODUCED_FIELD_NUMBER = 7; - private long bytesProduced_; - /** - *
-     * The number of bytes produced by the node.
-     * 
- * - * int64 bytes_produced = 7; - */ - public long getBytesProduced() { - return bytesProduced_; - } - - public static final int NUM_ELEMENTS_FIELD_NUMBER = 8; - private long numElements_; - /** - *
-     * The number of elements produced by the node.
-     * 
- * - * int64 num_elements = 8; - */ - public long getNumElements() { - return numElements_; - } - - public static final int PROCESSING_TIME_FIELD_NUMBER = 9; - private long processingTime_; - /** - *
-     * The aggregate processing time spent in this node in nanoseconds.
-     * 
- * - * int64 processing_time = 9; - */ - public long getProcessingTime() { - return processingTime_; - } - - public static final int RECORD_METRICS_FIELD_NUMBER = 10; - private boolean recordMetrics_; - /** - *
-     * An indication whether this node records metrics about produced and
-     * consumed elements.
-     * 
- * - * bool record_metrics = 10; - */ - public boolean getRecordMetrics() { - return recordMetrics_; - } - - public static final int PARAMETERS_FIELD_NUMBER = 11; - private java.util.List parameters_; - /** - *
-     * Parameters of this node.
-     * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public java.util.List getParametersList() { - return parameters_; - } - /** - *
-     * Parameters of this node.
-     * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public java.util.List - getParametersOrBuilderList() { - return parameters_; - } - /** - *
-     * Parameters of this node.
-     * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public int getParametersCount() { - return parameters_.size(); - } - /** - *
-     * Parameters of this node.
-     * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public org.tensorflow.proto.data.model.ModelProto.Node.Parameter getParameters(int index) { - return parameters_.get(index); - } - /** - *
-     * Parameters of this node.
-     * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public org.tensorflow.proto.data.model.ModelProto.Node.ParameterOrBuilder getParametersOrBuilder( - int index) { - return parameters_.get(index); - } - - public static final int INPUT_PROCESSING_TIME_SUM_FIELD_NUMBER = 12; - private double inputProcessingTimeSum_; - /** - *
-     * Statistic of inputs processing time history.
-     * 
- * - * double input_processing_time_sum = 12; - */ - public double getInputProcessingTimeSum() { - return inputProcessingTimeSum_; - } - - public static final int INPUT_PROCESSING_TIME_COUNT_FIELD_NUMBER = 13; - private long inputProcessingTimeCount_; - /** - * int64 input_processing_time_count = 13; - */ - public long getInputProcessingTimeCount() { - return inputProcessingTimeCount_; - } - - public static final int INPUTS_FIELD_NUMBER = 14; - private com.google.protobuf.Internal.LongList inputs_; - /** - *
-     * IDs of inputs of this node.
-     * 
- * - * repeated int64 inputs = 14; - */ - public java.util.List - getInputsList() { - return inputs_; - } - /** - *
-     * IDs of inputs of this node.
-     * 
- * - * repeated int64 inputs = 14; - */ - public int getInputsCount() { - return inputs_.size(); - } - /** - *
-     * IDs of inputs of this node.
-     * 
- * - * repeated int64 inputs = 14; - */ - public long getInputs(int index) { - return inputs_.getLong(index); - } - private int inputsMemoizedSerializedSize = -1; - - public static final int NODE_CLASS_FIELD_NUMBER = 15; - private int nodeClass_; - /** - *
-     * Class of this node.
-     * 
- * - * .tensorflow.data.model.NodeClass node_class = 15; - */ - public int getNodeClassValue() { - return nodeClass_; - } - /** - *
-     * Class of this node.
-     * 
- * - * .tensorflow.data.model.NodeClass node_class = 15; - */ - public org.tensorflow.proto.data.model.NodeClass getNodeClass() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.data.model.NodeClass result = org.tensorflow.proto.data.model.NodeClass.valueOf(nodeClass_); - return result == null ? org.tensorflow.proto.data.model.NodeClass.UNRECOGNIZED : result; - } - - public static final int RATIO_FIELD_NUMBER = 16; - private double ratio_; - /** - *
-     * Ratio of input to output elements. This is only used by KNOWN_RATIO and
-     * ASYNC_KNOWN_RATIO nodes.
-     * 
- * - * double ratio = 16; - */ - public double getRatio() { - return ratio_; - } - - public static final int MEMORY_RATIO_FIELD_NUMBER = 17; - private double memoryRatio_; - /** - *
-     * Ratio identifies how many parallelism calls are introduced by one
-     * buffered element. This is only used by ASYNC_KNOWN_RATIO nodes.
-     * 
- * - * double memory_ratio = 17; - */ - public double getMemoryRatio() { - return memoryRatio_; - } - - 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 { - getSerializedSize(); - if (id_ != 0L) { - output.writeInt64(1, id_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - if (autotune_ != false) { - output.writeBool(3, autotune_); - } - if (bufferedBytes_ != 0L) { - output.writeInt64(4, bufferedBytes_); - } - if (bufferedElements_ != 0L) { - output.writeInt64(5, bufferedElements_); - } - if (bytesConsumed_ != 0L) { - output.writeInt64(6, bytesConsumed_); - } - if (bytesProduced_ != 0L) { - output.writeInt64(7, bytesProduced_); - } - if (numElements_ != 0L) { - output.writeInt64(8, numElements_); - } - if (processingTime_ != 0L) { - output.writeInt64(9, processingTime_); - } - if (recordMetrics_ != false) { - output.writeBool(10, recordMetrics_); - } - for (int i = 0; i < parameters_.size(); i++) { - output.writeMessage(11, parameters_.get(i)); - } - if (inputProcessingTimeSum_ != 0D) { - output.writeDouble(12, inputProcessingTimeSum_); - } - if (inputProcessingTimeCount_ != 0L) { - output.writeInt64(13, inputProcessingTimeCount_); - } - if (getInputsList().size() > 0) { - output.writeUInt32NoTag(114); - output.writeUInt32NoTag(inputsMemoizedSerializedSize); - } - for (int i = 0; i < inputs_.size(); i++) { - output.writeInt64NoTag(inputs_.getLong(i)); - } - if (nodeClass_ != org.tensorflow.proto.data.model.NodeClass.UNKNOWN.getNumber()) { - output.writeEnum(15, nodeClass_); - } - if (ratio_ != 0D) { - output.writeDouble(16, ratio_); - } - if (memoryRatio_ != 0D) { - output.writeDouble(17, memoryRatio_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (id_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, id_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - if (autotune_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, autotune_); - } - if (bufferedBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, bufferedBytes_); - } - if (bufferedElements_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, bufferedElements_); - } - if (bytesConsumed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, bytesConsumed_); - } - if (bytesProduced_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, bytesProduced_); - } - if (numElements_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, numElements_); - } - if (processingTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, processingTime_); - } - if (recordMetrics_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, recordMetrics_); - } - for (int i = 0; i < parameters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, parameters_.get(i)); - } - if (inputProcessingTimeSum_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(12, inputProcessingTimeSum_); - } - if (inputProcessingTimeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(13, inputProcessingTimeCount_); - } - { - int dataSize = 0; - for (int i = 0; i < inputs_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(inputs_.getLong(i)); - } - size += dataSize; - if (!getInputsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - inputsMemoizedSerializedSize = dataSize; - } - if (nodeClass_ != org.tensorflow.proto.data.model.NodeClass.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, nodeClass_); - } - if (ratio_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(16, ratio_); - } - if (memoryRatio_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(17, memoryRatio_); - } - 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 org.tensorflow.proto.data.model.ModelProto.Node)) { - return super.equals(obj); - } - org.tensorflow.proto.data.model.ModelProto.Node other = (org.tensorflow.proto.data.model.ModelProto.Node) obj; - - if (getId() - != other.getId()) return false; - if (!getName() - .equals(other.getName())) return false; - if (getAutotune() - != other.getAutotune()) return false; - if (getBufferedBytes() - != other.getBufferedBytes()) return false; - if (getBufferedElements() - != other.getBufferedElements()) return false; - if (getBytesConsumed() - != other.getBytesConsumed()) return false; - if (getBytesProduced() - != other.getBytesProduced()) return false; - if (getNumElements() - != other.getNumElements()) return false; - if (getProcessingTime() - != other.getProcessingTime()) return false; - if (getRecordMetrics() - != other.getRecordMetrics()) return false; - if (!getParametersList() - .equals(other.getParametersList())) return false; - if (java.lang.Double.doubleToLongBits(getInputProcessingTimeSum()) - != java.lang.Double.doubleToLongBits( - other.getInputProcessingTimeSum())) return false; - if (getInputProcessingTimeCount() - != other.getInputProcessingTimeCount()) return false; - if (!getInputsList() - .equals(other.getInputsList())) return false; - if (nodeClass_ != other.nodeClass_) return false; - if (java.lang.Double.doubleToLongBits(getRatio()) - != java.lang.Double.doubleToLongBits( - other.getRatio())) return false; - if (java.lang.Double.doubleToLongBits(getMemoryRatio()) - != java.lang.Double.doubleToLongBits( - other.getMemoryRatio())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getId()); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + AUTOTUNE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAutotune()); - hash = (37 * hash) + BUFFERED_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBufferedBytes()); - hash = (37 * hash) + BUFFERED_ELEMENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBufferedElements()); - hash = (37 * hash) + BYTES_CONSUMED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBytesConsumed()); - hash = (37 * hash) + BYTES_PRODUCED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBytesProduced()); - hash = (37 * hash) + NUM_ELEMENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNumElements()); - hash = (37 * hash) + PROCESSING_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getProcessingTime()); - hash = (37 * hash) + RECORD_METRICS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRecordMetrics()); - if (getParametersCount() > 0) { - hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + getParametersList().hashCode(); - } - hash = (37 * hash) + INPUT_PROCESSING_TIME_SUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getInputProcessingTimeSum())); - hash = (37 * hash) + INPUT_PROCESSING_TIME_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInputProcessingTimeCount()); - if (getInputsCount() > 0) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputsList().hashCode(); - } - hash = (37 * hash) + NODE_CLASS_FIELD_NUMBER; - hash = (53 * hash) + nodeClass_; - hash = (37 * hash) + RATIO_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getRatio())); - hash = (37 * hash) + MEMORY_RATIO_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMemoryRatio())); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.data.model.ModelProto.Node parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.model.ModelProto.Node parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.model.ModelProto.Node parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.model.ModelProto.Node parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.model.ModelProto.Node parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.model.ModelProto.Node parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.model.ModelProto.Node parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.model.ModelProto.Node 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 org.tensorflow.proto.data.model.ModelProto.Node parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.model.ModelProto.Node 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 org.tensorflow.proto.data.model.ModelProto.Node parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.model.ModelProto.Node 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(org.tensorflow.proto.data.model.ModelProto.Node 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; - } - /** - *
-     * General representation of a node in the model.
-     * 
- * - * Protobuf type {@code tensorflow.data.model.ModelProto.Node} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.data.model.ModelProto.Node) - org.tensorflow.proto.data.model.ModelProto.NodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_Node_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_Node_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.model.ModelProto.Node.class, org.tensorflow.proto.data.model.ModelProto.Node.Builder.class); - } - - // Construct using org.tensorflow.proto.data.model.ModelProto.Node.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getParametersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = 0L; - - name_ = ""; - - autotune_ = false; - - bufferedBytes_ = 0L; - - bufferedElements_ = 0L; - - bytesConsumed_ = 0L; - - bytesProduced_ = 0L; - - numElements_ = 0L; - - processingTime_ = 0L; - - recordMetrics_ = false; - - if (parametersBuilder_ == null) { - parameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - parametersBuilder_.clear(); - } - inputProcessingTimeSum_ = 0D; - - inputProcessingTimeCount_ = 0L; - - inputs_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000002); - nodeClass_ = 0; - - ratio_ = 0D; - - memoryRatio_ = 0D; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_Node_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.data.model.ModelProto.Node getDefaultInstanceForType() { - return org.tensorflow.proto.data.model.ModelProto.Node.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.data.model.ModelProto.Node build() { - org.tensorflow.proto.data.model.ModelProto.Node result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.data.model.ModelProto.Node buildPartial() { - org.tensorflow.proto.data.model.ModelProto.Node result = new org.tensorflow.proto.data.model.ModelProto.Node(this); - int from_bitField0_ = bitField0_; - result.id_ = id_; - result.name_ = name_; - result.autotune_ = autotune_; - result.bufferedBytes_ = bufferedBytes_; - result.bufferedElements_ = bufferedElements_; - result.bytesConsumed_ = bytesConsumed_; - result.bytesProduced_ = bytesProduced_; - result.numElements_ = numElements_; - result.processingTime_ = processingTime_; - result.recordMetrics_ = recordMetrics_; - if (parametersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - parameters_ = java.util.Collections.unmodifiableList(parameters_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.parameters_ = parameters_; - } else { - result.parameters_ = parametersBuilder_.build(); - } - result.inputProcessingTimeSum_ = inputProcessingTimeSum_; - result.inputProcessingTimeCount_ = inputProcessingTimeCount_; - if (((bitField0_ & 0x00000002) != 0)) { - inputs_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.inputs_ = inputs_; - result.nodeClass_ = nodeClass_; - result.ratio_ = ratio_; - result.memoryRatio_ = memoryRatio_; - 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 org.tensorflow.proto.data.model.ModelProto.Node) { - return mergeFrom((org.tensorflow.proto.data.model.ModelProto.Node)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.data.model.ModelProto.Node other) { - if (other == org.tensorflow.proto.data.model.ModelProto.Node.getDefaultInstance()) return this; - if (other.getId() != 0L) { - setId(other.getId()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getAutotune() != false) { - setAutotune(other.getAutotune()); - } - if (other.getBufferedBytes() != 0L) { - setBufferedBytes(other.getBufferedBytes()); - } - if (other.getBufferedElements() != 0L) { - setBufferedElements(other.getBufferedElements()); - } - if (other.getBytesConsumed() != 0L) { - setBytesConsumed(other.getBytesConsumed()); - } - if (other.getBytesProduced() != 0L) { - setBytesProduced(other.getBytesProduced()); - } - if (other.getNumElements() != 0L) { - setNumElements(other.getNumElements()); - } - if (other.getProcessingTime() != 0L) { - setProcessingTime(other.getProcessingTime()); - } - if (other.getRecordMetrics() != false) { - setRecordMetrics(other.getRecordMetrics()); - } - if (parametersBuilder_ == null) { - if (!other.parameters_.isEmpty()) { - if (parameters_.isEmpty()) { - parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureParametersIsMutable(); - parameters_.addAll(other.parameters_); - } - onChanged(); - } - } else { - if (!other.parameters_.isEmpty()) { - if (parametersBuilder_.isEmpty()) { - parametersBuilder_.dispose(); - parametersBuilder_ = null; - parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000001); - parametersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getParametersFieldBuilder() : null; - } else { - parametersBuilder_.addAllMessages(other.parameters_); - } - } - } - if (other.getInputProcessingTimeSum() != 0D) { - setInputProcessingTimeSum(other.getInputProcessingTimeSum()); - } - if (other.getInputProcessingTimeCount() != 0L) { - setInputProcessingTimeCount(other.getInputProcessingTimeCount()); - } - if (!other.inputs_.isEmpty()) { - if (inputs_.isEmpty()) { - inputs_ = other.inputs_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureInputsIsMutable(); - inputs_.addAll(other.inputs_); - } - onChanged(); - } - if (other.nodeClass_ != 0) { - setNodeClassValue(other.getNodeClassValue()); - } - if (other.getRatio() != 0D) { - setRatio(other.getRatio()); - } - if (other.getMemoryRatio() != 0D) { - setMemoryRatio(other.getMemoryRatio()); - } - 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 { - org.tensorflow.proto.data.model.ModelProto.Node parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.data.model.ModelProto.Node) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long id_ ; - /** - *
-       * Unique node ID.
-       * 
- * - * int64 id = 1; - */ - public long getId() { - return id_; - } - /** - *
-       * Unique node ID.
-       * 
- * - * int64 id = 1; - */ - public Builder setId(long value) { - - id_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique node ID.
-       * 
- * - * int64 id = 1; - */ - public Builder clearId() { - - id_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * Human-readable name of the node.
-       * 
- * - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Human-readable name of the node.
-       * 
- * - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Human-readable name of the node.
-       * 
- * - * string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * Human-readable name of the node.
-       * 
- * - * string name = 2; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * Human-readable name of the node.
-       * 
- * - * string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private boolean autotune_ ; - /** - *
-       * An indication whether autotuning is enabled for this node.
-       * 
- * - * bool autotune = 3; - */ - public boolean getAutotune() { - return autotune_; - } - /** - *
-       * An indication whether autotuning is enabled for this node.
-       * 
- * - * bool autotune = 3; - */ - public Builder setAutotune(boolean value) { - - autotune_ = value; - onChanged(); - return this; - } - /** - *
-       * An indication whether autotuning is enabled for this node.
-       * 
- * - * bool autotune = 3; - */ - public Builder clearAutotune() { - - autotune_ = false; - onChanged(); - return this; - } - - private long bufferedBytes_ ; - /** - *
-       * The number of bytes stored in this node's buffer.
-       * 
- * - * int64 buffered_bytes = 4; - */ - public long getBufferedBytes() { - return bufferedBytes_; - } - /** - *
-       * The number of bytes stored in this node's buffer.
-       * 
- * - * int64 buffered_bytes = 4; - */ - public Builder setBufferedBytes(long value) { - - bufferedBytes_ = value; - onChanged(); - return this; - } - /** - *
-       * The number of bytes stored in this node's buffer.
-       * 
- * - * int64 buffered_bytes = 4; - */ - public Builder clearBufferedBytes() { - - bufferedBytes_ = 0L; - onChanged(); - return this; - } - - private long bufferedElements_ ; - /** - *
-       * The number of elements stored in this node's buffer.
-       * 
- * - * int64 buffered_elements = 5; - */ - public long getBufferedElements() { - return bufferedElements_; - } - /** - *
-       * The number of elements stored in this node's buffer.
-       * 
- * - * int64 buffered_elements = 5; - */ - public Builder setBufferedElements(long value) { - - bufferedElements_ = value; - onChanged(); - return this; - } - /** - *
-       * The number of elements stored in this node's buffer.
-       * 
- * - * int64 buffered_elements = 5; - */ - public Builder clearBufferedElements() { - - bufferedElements_ = 0L; - onChanged(); - return this; - } - - private long bytesConsumed_ ; - /** - *
-       * The number of bytes consumed by the node.
-       * 
- * - * int64 bytes_consumed = 6; - */ - public long getBytesConsumed() { - return bytesConsumed_; - } - /** - *
-       * The number of bytes consumed by the node.
-       * 
- * - * int64 bytes_consumed = 6; - */ - public Builder setBytesConsumed(long value) { - - bytesConsumed_ = value; - onChanged(); - return this; - } - /** - *
-       * The number of bytes consumed by the node.
-       * 
- * - * int64 bytes_consumed = 6; - */ - public Builder clearBytesConsumed() { - - bytesConsumed_ = 0L; - onChanged(); - return this; - } - - private long bytesProduced_ ; - /** - *
-       * The number of bytes produced by the node.
-       * 
- * - * int64 bytes_produced = 7; - */ - public long getBytesProduced() { - return bytesProduced_; - } - /** - *
-       * The number of bytes produced by the node.
-       * 
- * - * int64 bytes_produced = 7; - */ - public Builder setBytesProduced(long value) { - - bytesProduced_ = value; - onChanged(); - return this; - } - /** - *
-       * The number of bytes produced by the node.
-       * 
- * - * int64 bytes_produced = 7; - */ - public Builder clearBytesProduced() { - - bytesProduced_ = 0L; - onChanged(); - return this; - } - - private long numElements_ ; - /** - *
-       * The number of elements produced by the node.
-       * 
- * - * int64 num_elements = 8; - */ - public long getNumElements() { - return numElements_; - } - /** - *
-       * The number of elements produced by the node.
-       * 
- * - * int64 num_elements = 8; - */ - public Builder setNumElements(long value) { - - numElements_ = value; - onChanged(); - return this; - } - /** - *
-       * The number of elements produced by the node.
-       * 
- * - * int64 num_elements = 8; - */ - public Builder clearNumElements() { - - numElements_ = 0L; - onChanged(); - return this; - } - - private long processingTime_ ; - /** - *
-       * The aggregate processing time spent in this node in nanoseconds.
-       * 
- * - * int64 processing_time = 9; - */ - public long getProcessingTime() { - return processingTime_; - } - /** - *
-       * The aggregate processing time spent in this node in nanoseconds.
-       * 
- * - * int64 processing_time = 9; - */ - public Builder setProcessingTime(long value) { - - processingTime_ = value; - onChanged(); - return this; - } - /** - *
-       * The aggregate processing time spent in this node in nanoseconds.
-       * 
- * - * int64 processing_time = 9; - */ - public Builder clearProcessingTime() { - - processingTime_ = 0L; - onChanged(); - return this; - } - - private boolean recordMetrics_ ; - /** - *
-       * An indication whether this node records metrics about produced and
-       * consumed elements.
-       * 
- * - * bool record_metrics = 10; - */ - public boolean getRecordMetrics() { - return recordMetrics_; - } - /** - *
-       * An indication whether this node records metrics about produced and
-       * consumed elements.
-       * 
- * - * bool record_metrics = 10; - */ - public Builder setRecordMetrics(boolean value) { - - recordMetrics_ = value; - onChanged(); - return this; - } - /** - *
-       * An indication whether this node records metrics about produced and
-       * consumed elements.
-       * 
- * - * bool record_metrics = 10; - */ - public Builder clearRecordMetrics() { - - recordMetrics_ = false; - onChanged(); - return this; - } - - private java.util.List parameters_ = - java.util.Collections.emptyList(); - private void ensureParametersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - parameters_ = new java.util.ArrayList(parameters_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.data.model.ModelProto.Node.Parameter, org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder, org.tensorflow.proto.data.model.ModelProto.Node.ParameterOrBuilder> parametersBuilder_; - - /** - *
-       * Parameters of this node.
-       * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public java.util.List getParametersList() { - if (parametersBuilder_ == null) { - return java.util.Collections.unmodifiableList(parameters_); - } else { - return parametersBuilder_.getMessageList(); - } - } - /** - *
-       * Parameters of this node.
-       * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public int getParametersCount() { - if (parametersBuilder_ == null) { - return parameters_.size(); - } else { - return parametersBuilder_.getCount(); - } - } - /** - *
-       * Parameters of this node.
-       * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public org.tensorflow.proto.data.model.ModelProto.Node.Parameter getParameters(int index) { - if (parametersBuilder_ == null) { - return parameters_.get(index); - } else { - return parametersBuilder_.getMessage(index); - } - } - /** - *
-       * Parameters of this node.
-       * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public Builder setParameters( - int index, org.tensorflow.proto.data.model.ModelProto.Node.Parameter value) { - if (parametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParametersIsMutable(); - parameters_.set(index, value); - onChanged(); - } else { - parametersBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Parameters of this node.
-       * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public Builder setParameters( - int index, org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder builderForValue) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.set(index, builderForValue.build()); - onChanged(); - } else { - parametersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Parameters of this node.
-       * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public Builder addParameters(org.tensorflow.proto.data.model.ModelProto.Node.Parameter value) { - if (parametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParametersIsMutable(); - parameters_.add(value); - onChanged(); - } else { - parametersBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Parameters of this node.
-       * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public Builder addParameters( - int index, org.tensorflow.proto.data.model.ModelProto.Node.Parameter value) { - if (parametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParametersIsMutable(); - parameters_.add(index, value); - onChanged(); - } else { - parametersBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Parameters of this node.
-       * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public Builder addParameters( - org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder builderForValue) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.add(builderForValue.build()); - onChanged(); - } else { - parametersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Parameters of this node.
-       * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public Builder addParameters( - int index, org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder builderForValue) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.add(index, builderForValue.build()); - onChanged(); - } else { - parametersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Parameters of this node.
-       * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public Builder addAllParameters( - java.lang.Iterable values) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, parameters_); - onChanged(); - } else { - parametersBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Parameters of this node.
-       * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public Builder clearParameters() { - if (parametersBuilder_ == null) { - parameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - parametersBuilder_.clear(); - } - return this; - } - /** - *
-       * Parameters of this node.
-       * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public Builder removeParameters(int index) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.remove(index); - onChanged(); - } else { - parametersBuilder_.remove(index); - } - return this; - } - /** - *
-       * Parameters of this node.
-       * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder getParametersBuilder( - int index) { - return getParametersFieldBuilder().getBuilder(index); - } - /** - *
-       * Parameters of this node.
-       * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public org.tensorflow.proto.data.model.ModelProto.Node.ParameterOrBuilder getParametersOrBuilder( - int index) { - if (parametersBuilder_ == null) { - return parameters_.get(index); } else { - return parametersBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Parameters of this node.
-       * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public java.util.List - getParametersOrBuilderList() { - if (parametersBuilder_ != null) { - return parametersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(parameters_); - } - } - /** - *
-       * Parameters of this node.
-       * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder addParametersBuilder() { - return getParametersFieldBuilder().addBuilder( - org.tensorflow.proto.data.model.ModelProto.Node.Parameter.getDefaultInstance()); - } - /** - *
-       * Parameters of this node.
-       * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder addParametersBuilder( - int index) { - return getParametersFieldBuilder().addBuilder( - index, org.tensorflow.proto.data.model.ModelProto.Node.Parameter.getDefaultInstance()); - } - /** - *
-       * Parameters of this node.
-       * 
- * - * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; - */ - public java.util.List - getParametersBuilderList() { - return getParametersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.data.model.ModelProto.Node.Parameter, org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder, org.tensorflow.proto.data.model.ModelProto.Node.ParameterOrBuilder> - getParametersFieldBuilder() { - if (parametersBuilder_ == null) { - parametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.data.model.ModelProto.Node.Parameter, org.tensorflow.proto.data.model.ModelProto.Node.Parameter.Builder, org.tensorflow.proto.data.model.ModelProto.Node.ParameterOrBuilder>( - parameters_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - parameters_ = null; - } - return parametersBuilder_; - } - - private double inputProcessingTimeSum_ ; - /** - *
-       * Statistic of inputs processing time history.
-       * 
- * - * double input_processing_time_sum = 12; - */ - public double getInputProcessingTimeSum() { - return inputProcessingTimeSum_; - } - /** - *
-       * Statistic of inputs processing time history.
-       * 
- * - * double input_processing_time_sum = 12; - */ - public Builder setInputProcessingTimeSum(double value) { - - inputProcessingTimeSum_ = value; - onChanged(); - return this; - } - /** - *
-       * Statistic of inputs processing time history.
-       * 
- * - * double input_processing_time_sum = 12; - */ - public Builder clearInputProcessingTimeSum() { - - inputProcessingTimeSum_ = 0D; - onChanged(); - return this; - } - - private long inputProcessingTimeCount_ ; - /** - * int64 input_processing_time_count = 13; - */ - public long getInputProcessingTimeCount() { - return inputProcessingTimeCount_; - } - /** - * int64 input_processing_time_count = 13; - */ - public Builder setInputProcessingTimeCount(long value) { - - inputProcessingTimeCount_ = value; - onChanged(); - return this; - } - /** - * int64 input_processing_time_count = 13; - */ - public Builder clearInputProcessingTimeCount() { - - inputProcessingTimeCount_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList inputs_ = emptyLongList(); - private void ensureInputsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - inputs_ = mutableCopy(inputs_); - bitField0_ |= 0x00000002; - } - } - /** - *
-       * IDs of inputs of this node.
-       * 
- * - * repeated int64 inputs = 14; - */ - public java.util.List - getInputsList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(inputs_) : inputs_; - } - /** - *
-       * IDs of inputs of this node.
-       * 
- * - * repeated int64 inputs = 14; - */ - public int getInputsCount() { - return inputs_.size(); - } - /** - *
-       * IDs of inputs of this node.
-       * 
- * - * repeated int64 inputs = 14; - */ - public long getInputs(int index) { - return inputs_.getLong(index); - } - /** - *
-       * IDs of inputs of this node.
-       * 
- * - * repeated int64 inputs = 14; - */ - public Builder setInputs( - int index, long value) { - ensureInputsIsMutable(); - inputs_.setLong(index, value); - onChanged(); - return this; - } - /** - *
-       * IDs of inputs of this node.
-       * 
- * - * repeated int64 inputs = 14; - */ - public Builder addInputs(long value) { - ensureInputsIsMutable(); - inputs_.addLong(value); - onChanged(); - return this; - } - /** - *
-       * IDs of inputs of this node.
-       * 
- * - * repeated int64 inputs = 14; - */ - public Builder addAllInputs( - java.lang.Iterable values) { - ensureInputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inputs_); - onChanged(); - return this; - } - /** - *
-       * IDs of inputs of this node.
-       * 
- * - * repeated int64 inputs = 14; - */ - public Builder clearInputs() { - inputs_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - private int nodeClass_ = 0; - /** - *
-       * Class of this node.
-       * 
- * - * .tensorflow.data.model.NodeClass node_class = 15; - */ - public int getNodeClassValue() { - return nodeClass_; - } - /** - *
-       * Class of this node.
-       * 
- * - * .tensorflow.data.model.NodeClass node_class = 15; - */ - public Builder setNodeClassValue(int value) { - nodeClass_ = value; - onChanged(); - return this; - } - /** - *
-       * Class of this node.
-       * 
- * - * .tensorflow.data.model.NodeClass node_class = 15; - */ - public org.tensorflow.proto.data.model.NodeClass getNodeClass() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.data.model.NodeClass result = org.tensorflow.proto.data.model.NodeClass.valueOf(nodeClass_); - return result == null ? org.tensorflow.proto.data.model.NodeClass.UNRECOGNIZED : result; - } - /** - *
-       * Class of this node.
-       * 
- * - * .tensorflow.data.model.NodeClass node_class = 15; - */ - public Builder setNodeClass(org.tensorflow.proto.data.model.NodeClass value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeClass_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Class of this node.
-       * 
- * - * .tensorflow.data.model.NodeClass node_class = 15; - */ - public Builder clearNodeClass() { - - nodeClass_ = 0; - onChanged(); - return this; - } - - private double ratio_ ; - /** - *
-       * Ratio of input to output elements. This is only used by KNOWN_RATIO and
-       * ASYNC_KNOWN_RATIO nodes.
-       * 
- * - * double ratio = 16; - */ - public double getRatio() { - return ratio_; - } - /** - *
-       * Ratio of input to output elements. This is only used by KNOWN_RATIO and
-       * ASYNC_KNOWN_RATIO nodes.
-       * 
- * - * double ratio = 16; - */ - public Builder setRatio(double value) { - - ratio_ = value; - onChanged(); - return this; - } - /** - *
-       * Ratio of input to output elements. This is only used by KNOWN_RATIO and
-       * ASYNC_KNOWN_RATIO nodes.
-       * 
- * - * double ratio = 16; - */ - public Builder clearRatio() { - - ratio_ = 0D; - onChanged(); - return this; - } - - private double memoryRatio_ ; - /** - *
-       * Ratio identifies how many parallelism calls are introduced by one
-       * buffered element. This is only used by ASYNC_KNOWN_RATIO nodes.
-       * 
- * - * double memory_ratio = 17; - */ - public double getMemoryRatio() { - return memoryRatio_; - } - /** - *
-       * Ratio identifies how many parallelism calls are introduced by one
-       * buffered element. This is only used by ASYNC_KNOWN_RATIO nodes.
-       * 
- * - * double memory_ratio = 17; - */ - public Builder setMemoryRatio(double value) { - - memoryRatio_ = value; - onChanged(); - return this; - } - /** - *
-       * Ratio identifies how many parallelism calls are introduced by one
-       * buffered element. This is only used by ASYNC_KNOWN_RATIO nodes.
-       * 
- * - * double memory_ratio = 17; - */ - public Builder clearMemoryRatio() { - - memoryRatio_ = 0D; - 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:tensorflow.data.model.ModelProto.Node) - } - - // @@protoc_insertion_point(class_scope:tensorflow.data.model.ModelProto.Node) - private static final org.tensorflow.proto.data.model.ModelProto.Node DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.data.model.ModelProto.Node(); - } - - public static org.tensorflow.proto.data.model.ModelProto.Node getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Node parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Node(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.data.model.ModelProto.Node getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OptimizationParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.data.model.ModelProto.OptimizationParams) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Algorithm used for autotuning optimization.
-     * 
- * - * .tensorflow.data.model.AutotuneAlgorithm algorithm = 1; - */ - int getAlgorithmValue(); - /** - *
-     * Algorithm used for autotuning optimization.
-     * 
- * - * .tensorflow.data.model.AutotuneAlgorithm algorithm = 1; - */ - org.tensorflow.proto.data.model.AutotuneAlgorithm getAlgorithm(); - - /** - *
-     * Number of available logical threads.
-     * 
- * - * int64 cpu_budget = 2; - */ - long getCpuBudget(); - - /** - *
-     * Amount of available memory in bytes.
-     * 
- * - * int64 ram_budget = 3; - */ - long getRamBudget(); - - /** - *
-     * Time between two consecutive `GetNext` calls to the iterator represented
-     * by the output node.
-     * 
- * - * double model_input_time = 4; - */ - double getModelInputTime(); - } - /** - *
-   * Contains parameters of the model autotuning optimization.
-   * 
- * - * Protobuf type {@code tensorflow.data.model.ModelProto.OptimizationParams} - */ - public static final class OptimizationParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.data.model.ModelProto.OptimizationParams) - OptimizationParamsOrBuilder { - private static final long serialVersionUID = 0L; - // Use OptimizationParams.newBuilder() to construct. - private OptimizationParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OptimizationParams() { - algorithm_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OptimizationParams(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OptimizationParams( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - algorithm_ = rawValue; - break; - } - case 16: { - - cpuBudget_ = input.readInt64(); - break; - } - case 24: { - - ramBudget_ = input.readInt64(); - break; - } - case 33: { - - modelInputTime_ = input.readDouble(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_OptimizationParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_OptimizationParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.model.ModelProto.OptimizationParams.class, org.tensorflow.proto.data.model.ModelProto.OptimizationParams.Builder.class); - } - - public static final int ALGORITHM_FIELD_NUMBER = 1; - private int algorithm_; - /** - *
-     * Algorithm used for autotuning optimization.
-     * 
- * - * .tensorflow.data.model.AutotuneAlgorithm algorithm = 1; - */ - public int getAlgorithmValue() { - return algorithm_; - } - /** - *
-     * Algorithm used for autotuning optimization.
-     * 
- * - * .tensorflow.data.model.AutotuneAlgorithm algorithm = 1; - */ - public org.tensorflow.proto.data.model.AutotuneAlgorithm getAlgorithm() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.data.model.AutotuneAlgorithm result = org.tensorflow.proto.data.model.AutotuneAlgorithm.valueOf(algorithm_); - return result == null ? org.tensorflow.proto.data.model.AutotuneAlgorithm.UNRECOGNIZED : result; - } - - public static final int CPU_BUDGET_FIELD_NUMBER = 2; - private long cpuBudget_; - /** - *
-     * Number of available logical threads.
-     * 
- * - * int64 cpu_budget = 2; - */ - public long getCpuBudget() { - return cpuBudget_; - } - - public static final int RAM_BUDGET_FIELD_NUMBER = 3; - private long ramBudget_; - /** - *
-     * Amount of available memory in bytes.
-     * 
- * - * int64 ram_budget = 3; - */ - public long getRamBudget() { - return ramBudget_; - } - - public static final int MODEL_INPUT_TIME_FIELD_NUMBER = 4; - private double modelInputTime_; - /** - *
-     * Time between two consecutive `GetNext` calls to the iterator represented
-     * by the output node.
-     * 
- * - * double model_input_time = 4; - */ - public double getModelInputTime() { - return modelInputTime_; - } - - 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 (algorithm_ != org.tensorflow.proto.data.model.AutotuneAlgorithm.DEFAULT.getNumber()) { - output.writeEnum(1, algorithm_); - } - if (cpuBudget_ != 0L) { - output.writeInt64(2, cpuBudget_); - } - if (ramBudget_ != 0L) { - output.writeInt64(3, ramBudget_); - } - if (modelInputTime_ != 0D) { - output.writeDouble(4, modelInputTime_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (algorithm_ != org.tensorflow.proto.data.model.AutotuneAlgorithm.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, algorithm_); - } - if (cpuBudget_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, cpuBudget_); - } - if (ramBudget_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, ramBudget_); - } - if (modelInputTime_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(4, modelInputTime_); - } - 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 org.tensorflow.proto.data.model.ModelProto.OptimizationParams)) { - return super.equals(obj); - } - org.tensorflow.proto.data.model.ModelProto.OptimizationParams other = (org.tensorflow.proto.data.model.ModelProto.OptimizationParams) obj; - - if (algorithm_ != other.algorithm_) return false; - if (getCpuBudget() - != other.getCpuBudget()) return false; - if (getRamBudget() - != other.getRamBudget()) return false; - if (java.lang.Double.doubleToLongBits(getModelInputTime()) - != java.lang.Double.doubleToLongBits( - other.getModelInputTime())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ALGORITHM_FIELD_NUMBER; - hash = (53 * hash) + algorithm_; - hash = (37 * hash) + CPU_BUDGET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCpuBudget()); - hash = (37 * hash) + RAM_BUDGET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRamBudget()); - hash = (37 * hash) + MODEL_INPUT_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getModelInputTime())); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.data.model.ModelProto.OptimizationParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.model.ModelProto.OptimizationParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.model.ModelProto.OptimizationParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.model.ModelProto.OptimizationParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.model.ModelProto.OptimizationParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.model.ModelProto.OptimizationParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.model.ModelProto.OptimizationParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.model.ModelProto.OptimizationParams 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 org.tensorflow.proto.data.model.ModelProto.OptimizationParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.model.ModelProto.OptimizationParams 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 org.tensorflow.proto.data.model.ModelProto.OptimizationParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.model.ModelProto.OptimizationParams 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(org.tensorflow.proto.data.model.ModelProto.OptimizationParams 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; - } - /** - *
-     * Contains parameters of the model autotuning optimization.
-     * 
- * - * Protobuf type {@code tensorflow.data.model.ModelProto.OptimizationParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.data.model.ModelProto.OptimizationParams) - org.tensorflow.proto.data.model.ModelProto.OptimizationParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_OptimizationParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_OptimizationParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.model.ModelProto.OptimizationParams.class, org.tensorflow.proto.data.model.ModelProto.OptimizationParams.Builder.class); - } - - // Construct using org.tensorflow.proto.data.model.ModelProto.OptimizationParams.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - algorithm_ = 0; - - cpuBudget_ = 0L; - - ramBudget_ = 0L; - - modelInputTime_ = 0D; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_OptimizationParams_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.data.model.ModelProto.OptimizationParams getDefaultInstanceForType() { - return org.tensorflow.proto.data.model.ModelProto.OptimizationParams.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.data.model.ModelProto.OptimizationParams build() { - org.tensorflow.proto.data.model.ModelProto.OptimizationParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.data.model.ModelProto.OptimizationParams buildPartial() { - org.tensorflow.proto.data.model.ModelProto.OptimizationParams result = new org.tensorflow.proto.data.model.ModelProto.OptimizationParams(this); - result.algorithm_ = algorithm_; - result.cpuBudget_ = cpuBudget_; - result.ramBudget_ = ramBudget_; - result.modelInputTime_ = modelInputTime_; - 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 org.tensorflow.proto.data.model.ModelProto.OptimizationParams) { - return mergeFrom((org.tensorflow.proto.data.model.ModelProto.OptimizationParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.data.model.ModelProto.OptimizationParams other) { - if (other == org.tensorflow.proto.data.model.ModelProto.OptimizationParams.getDefaultInstance()) return this; - if (other.algorithm_ != 0) { - setAlgorithmValue(other.getAlgorithmValue()); - } - if (other.getCpuBudget() != 0L) { - setCpuBudget(other.getCpuBudget()); - } - if (other.getRamBudget() != 0L) { - setRamBudget(other.getRamBudget()); - } - if (other.getModelInputTime() != 0D) { - setModelInputTime(other.getModelInputTime()); - } - 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 { - org.tensorflow.proto.data.model.ModelProto.OptimizationParams parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.data.model.ModelProto.OptimizationParams) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int algorithm_ = 0; - /** - *
-       * Algorithm used for autotuning optimization.
-       * 
- * - * .tensorflow.data.model.AutotuneAlgorithm algorithm = 1; - */ - public int getAlgorithmValue() { - return algorithm_; - } - /** - *
-       * Algorithm used for autotuning optimization.
-       * 
- * - * .tensorflow.data.model.AutotuneAlgorithm algorithm = 1; - */ - public Builder setAlgorithmValue(int value) { - algorithm_ = value; - onChanged(); - return this; - } - /** - *
-       * Algorithm used for autotuning optimization.
-       * 
- * - * .tensorflow.data.model.AutotuneAlgorithm algorithm = 1; - */ - public org.tensorflow.proto.data.model.AutotuneAlgorithm getAlgorithm() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.data.model.AutotuneAlgorithm result = org.tensorflow.proto.data.model.AutotuneAlgorithm.valueOf(algorithm_); - return result == null ? org.tensorflow.proto.data.model.AutotuneAlgorithm.UNRECOGNIZED : result; - } - /** - *
-       * Algorithm used for autotuning optimization.
-       * 
- * - * .tensorflow.data.model.AutotuneAlgorithm algorithm = 1; - */ - public Builder setAlgorithm(org.tensorflow.proto.data.model.AutotuneAlgorithm value) { - if (value == null) { - throw new NullPointerException(); - } - - algorithm_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Algorithm used for autotuning optimization.
-       * 
- * - * .tensorflow.data.model.AutotuneAlgorithm algorithm = 1; - */ - public Builder clearAlgorithm() { - - algorithm_ = 0; - onChanged(); - return this; - } - - private long cpuBudget_ ; - /** - *
-       * Number of available logical threads.
-       * 
- * - * int64 cpu_budget = 2; - */ - public long getCpuBudget() { - return cpuBudget_; - } - /** - *
-       * Number of available logical threads.
-       * 
- * - * int64 cpu_budget = 2; - */ - public Builder setCpuBudget(long value) { - - cpuBudget_ = value; - onChanged(); - return this; - } - /** - *
-       * Number of available logical threads.
-       * 
- * - * int64 cpu_budget = 2; - */ - public Builder clearCpuBudget() { - - cpuBudget_ = 0L; - onChanged(); - return this; - } - - private long ramBudget_ ; - /** - *
-       * Amount of available memory in bytes.
-       * 
- * - * int64 ram_budget = 3; - */ - public long getRamBudget() { - return ramBudget_; - } - /** - *
-       * Amount of available memory in bytes.
-       * 
- * - * int64 ram_budget = 3; - */ - public Builder setRamBudget(long value) { - - ramBudget_ = value; - onChanged(); - return this; - } - /** - *
-       * Amount of available memory in bytes.
-       * 
- * - * int64 ram_budget = 3; - */ - public Builder clearRamBudget() { - - ramBudget_ = 0L; - onChanged(); - return this; - } - - private double modelInputTime_ ; - /** - *
-       * Time between two consecutive `GetNext` calls to the iterator represented
-       * by the output node.
-       * 
- * - * double model_input_time = 4; - */ - public double getModelInputTime() { - return modelInputTime_; - } - /** - *
-       * Time between two consecutive `GetNext` calls to the iterator represented
-       * by the output node.
-       * 
- * - * double model_input_time = 4; - */ - public Builder setModelInputTime(double value) { - - modelInputTime_ = value; - onChanged(); - return this; - } - /** - *
-       * Time between two consecutive `GetNext` calls to the iterator represented
-       * by the output node.
-       * 
- * - * double model_input_time = 4; - */ - public Builder clearModelInputTime() { - - modelInputTime_ = 0D; - 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:tensorflow.data.model.ModelProto.OptimizationParams) - } - - // @@protoc_insertion_point(class_scope:tensorflow.data.model.ModelProto.OptimizationParams) - private static final org.tensorflow.proto.data.model.ModelProto.OptimizationParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.data.model.ModelProto.OptimizationParams(); - } - - public static org.tensorflow.proto.data.model.ModelProto.OptimizationParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OptimizationParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OptimizationParams(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.data.model.ModelProto.OptimizationParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int NODES_FIELD_NUMBER = 1; - private static final class NodesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_NodesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT64, - 0L, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.tensorflow.proto.data.model.ModelProto.Node.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node> nodes_; - private com.google.protobuf.MapField - internalGetNodes() { - if (nodes_ == null) { - return com.google.protobuf.MapField.emptyMapField( - NodesDefaultEntryHolder.defaultEntry); - } - return nodes_; - } - - public int getNodesCount() { - return internalGetNodes().getMap().size(); - } - /** - *
-   * Map of node IDs to nodes of this model.
-   * 
- * - * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; - */ - - public boolean containsNodes( - long key) { - - return internalGetNodes().getMap().containsKey(key); - } - /** - * Use {@link #getNodesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getNodes() { - return getNodesMap(); - } - /** - *
-   * Map of node IDs to nodes of this model.
-   * 
- * - * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; - */ - - public java.util.Map getNodesMap() { - return internalGetNodes().getMap(); - } - /** - *
-   * Map of node IDs to nodes of this model.
-   * 
- * - * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; - */ - - public org.tensorflow.proto.data.model.ModelProto.Node getNodesOrDefault( - long key, - org.tensorflow.proto.data.model.ModelProto.Node defaultValue) { - - java.util.Map map = - internalGetNodes().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-   * Map of node IDs to nodes of this model.
-   * 
- * - * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; - */ - - public org.tensorflow.proto.data.model.ModelProto.Node getNodesOrThrow( - long key) { - - java.util.Map map = - internalGetNodes().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int OUTPUT_FIELD_NUMBER = 2; - private long output_; - /** - *
-   * ID of the output node of this model.
-   * 
- * - * int64 output = 2; - */ - public long getOutput() { - return output_; - } - - public static final int ID_COUNTER_FIELD_NUMBER = 3; - private long idCounter_; - /** - *
-   * Counter for node IDs of this model.
-   * 
- * - * int64 id_counter = 3; - */ - public long getIdCounter() { - return idCounter_; - } - - public static final int OPTIMIZATION_PARAMS_FIELD_NUMBER = 5; - private org.tensorflow.proto.data.model.ModelProto.OptimizationParams optimizationParams_; - /** - * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; - */ - public boolean hasOptimizationParams() { - return optimizationParams_ != null; - } - /** - * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; - */ - public org.tensorflow.proto.data.model.ModelProto.OptimizationParams getOptimizationParams() { - return optimizationParams_ == null ? org.tensorflow.proto.data.model.ModelProto.OptimizationParams.getDefaultInstance() : optimizationParams_; - } - /** - * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; - */ - public org.tensorflow.proto.data.model.ModelProto.OptimizationParamsOrBuilder getOptimizationParamsOrBuilder() { - return getOptimizationParams(); - } - - 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 - .serializeLongMapTo( - output, - internalGetNodes(), - NodesDefaultEntryHolder.defaultEntry, - 1); - if (output_ != 0L) { - output.writeInt64(2, output_); - } - if (idCounter_ != 0L) { - output.writeInt64(3, idCounter_); - } - if (optimizationParams_ != null) { - output.writeMessage(5, getOptimizationParams()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetNodes().getMap().entrySet()) { - com.google.protobuf.MapEntry - nodes__ = NodesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, nodes__); - } - if (output_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, output_); - } - if (idCounter_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, idCounter_); - } - if (optimizationParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getOptimizationParams()); - } - 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 org.tensorflow.proto.data.model.ModelProto)) { - return super.equals(obj); - } - org.tensorflow.proto.data.model.ModelProto other = (org.tensorflow.proto.data.model.ModelProto) obj; - - if (!internalGetNodes().equals( - other.internalGetNodes())) return false; - if (getOutput() - != other.getOutput()) return false; - if (getIdCounter() - != other.getIdCounter()) return false; - if (hasOptimizationParams() != other.hasOptimizationParams()) return false; - if (hasOptimizationParams()) { - if (!getOptimizationParams() - .equals(other.getOptimizationParams())) 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 (!internalGetNodes().getMap().isEmpty()) { - hash = (37 * hash) + NODES_FIELD_NUMBER; - hash = (53 * hash) + internalGetNodes().hashCode(); - } - hash = (37 * hash) + OUTPUT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getOutput()); - hash = (37 * hash) + ID_COUNTER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIdCounter()); - if (hasOptimizationParams()) { - hash = (37 * hash) + OPTIMIZATION_PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getOptimizationParams().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.data.model.ModelProto parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.model.ModelProto parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.model.ModelProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.model.ModelProto parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.model.ModelProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.data.model.ModelProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.data.model.ModelProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.model.ModelProto 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 org.tensorflow.proto.data.model.ModelProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.model.ModelProto 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 org.tensorflow.proto.data.model.ModelProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.data.model.ModelProto 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(org.tensorflow.proto.data.model.ModelProto 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; - } - /** - *
-   * Protocol buffer representing the data used by the autotuning modeling
-   * framework.
-   * 
- * - * Protobuf type {@code tensorflow.data.model.ModelProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.data.model.ModelProto) - org.tensorflow.proto.data.model.ModelProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetNodes(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableNodes(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.data.model.ModelProto.class, org.tensorflow.proto.data.model.ModelProto.Builder.class); - } - - // Construct using org.tensorflow.proto.data.model.ModelProto.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableNodes().clear(); - output_ = 0L; - - idCounter_ = 0L; - - if (optimizationParamsBuilder_ == null) { - optimizationParams_ = null; - } else { - optimizationParams_ = null; - optimizationParamsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.data.model.ModelProtos.internal_static_tensorflow_data_model_ModelProto_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.data.model.ModelProto getDefaultInstanceForType() { - return org.tensorflow.proto.data.model.ModelProto.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.data.model.ModelProto build() { - org.tensorflow.proto.data.model.ModelProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.data.model.ModelProto buildPartial() { - org.tensorflow.proto.data.model.ModelProto result = new org.tensorflow.proto.data.model.ModelProto(this); - int from_bitField0_ = bitField0_; - result.nodes_ = internalGetNodes(); - result.nodes_.makeImmutable(); - result.output_ = output_; - result.idCounter_ = idCounter_; - if (optimizationParamsBuilder_ == null) { - result.optimizationParams_ = optimizationParams_; - } else { - result.optimizationParams_ = optimizationParamsBuilder_.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 org.tensorflow.proto.data.model.ModelProto) { - return mergeFrom((org.tensorflow.proto.data.model.ModelProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.data.model.ModelProto other) { - if (other == org.tensorflow.proto.data.model.ModelProto.getDefaultInstance()) return this; - internalGetMutableNodes().mergeFrom( - other.internalGetNodes()); - if (other.getOutput() != 0L) { - setOutput(other.getOutput()); - } - if (other.getIdCounter() != 0L) { - setIdCounter(other.getIdCounter()); - } - if (other.hasOptimizationParams()) { - mergeOptimizationParams(other.getOptimizationParams()); - } - 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 { - org.tensorflow.proto.data.model.ModelProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.data.model.ModelProto) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.Long, org.tensorflow.proto.data.model.ModelProto.Node> nodes_; - private com.google.protobuf.MapField - internalGetNodes() { - if (nodes_ == null) { - return com.google.protobuf.MapField.emptyMapField( - NodesDefaultEntryHolder.defaultEntry); - } - return nodes_; - } - private com.google.protobuf.MapField - internalGetMutableNodes() { - onChanged();; - if (nodes_ == null) { - nodes_ = com.google.protobuf.MapField.newMapField( - NodesDefaultEntryHolder.defaultEntry); - } - if (!nodes_.isMutable()) { - nodes_ = nodes_.copy(); - } - return nodes_; - } - - public int getNodesCount() { - return internalGetNodes().getMap().size(); - } - /** - *
-     * Map of node IDs to nodes of this model.
-     * 
- * - * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; - */ - - public boolean containsNodes( - long key) { - - return internalGetNodes().getMap().containsKey(key); - } - /** - * Use {@link #getNodesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getNodes() { - return getNodesMap(); - } - /** - *
-     * Map of node IDs to nodes of this model.
-     * 
- * - * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; - */ - - public java.util.Map getNodesMap() { - return internalGetNodes().getMap(); - } - /** - *
-     * Map of node IDs to nodes of this model.
-     * 
- * - * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; - */ - - public org.tensorflow.proto.data.model.ModelProto.Node getNodesOrDefault( - long key, - org.tensorflow.proto.data.model.ModelProto.Node defaultValue) { - - java.util.Map map = - internalGetNodes().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Map of node IDs to nodes of this model.
-     * 
- * - * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; - */ - - public org.tensorflow.proto.data.model.ModelProto.Node getNodesOrThrow( - long key) { - - java.util.Map map = - internalGetNodes().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearNodes() { - internalGetMutableNodes().getMutableMap() - .clear(); - return this; - } - /** - *
-     * Map of node IDs to nodes of this model.
-     * 
- * - * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; - */ - - public Builder removeNodes( - long key) { - - internalGetMutableNodes().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableNodes() { - return internalGetMutableNodes().getMutableMap(); - } - /** - *
-     * Map of node IDs to nodes of this model.
-     * 
- * - * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; - */ - public Builder putNodes( - long key, - org.tensorflow.proto.data.model.ModelProto.Node value) { - - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableNodes().getMutableMap() - .put(key, value); - return this; - } - /** - *
-     * Map of node IDs to nodes of this model.
-     * 
- * - * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; - */ - - public Builder putAllNodes( - java.util.Map values) { - internalGetMutableNodes().getMutableMap() - .putAll(values); - return this; - } - - private long output_ ; - /** - *
-     * ID of the output node of this model.
-     * 
- * - * int64 output = 2; - */ - public long getOutput() { - return output_; - } - /** - *
-     * ID of the output node of this model.
-     * 
- * - * int64 output = 2; - */ - public Builder setOutput(long value) { - - output_ = value; - onChanged(); - return this; - } - /** - *
-     * ID of the output node of this model.
-     * 
- * - * int64 output = 2; - */ - public Builder clearOutput() { - - output_ = 0L; - onChanged(); - return this; - } - - private long idCounter_ ; - /** - *
-     * Counter for node IDs of this model.
-     * 
- * - * int64 id_counter = 3; - */ - public long getIdCounter() { - return idCounter_; - } - /** - *
-     * Counter for node IDs of this model.
-     * 
- * - * int64 id_counter = 3; - */ - public Builder setIdCounter(long value) { - - idCounter_ = value; - onChanged(); - return this; - } - /** - *
-     * Counter for node IDs of this model.
-     * 
- * - * int64 id_counter = 3; - */ - public Builder clearIdCounter() { - - idCounter_ = 0L; - onChanged(); - return this; - } - - private org.tensorflow.proto.data.model.ModelProto.OptimizationParams optimizationParams_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.data.model.ModelProto.OptimizationParams, org.tensorflow.proto.data.model.ModelProto.OptimizationParams.Builder, org.tensorflow.proto.data.model.ModelProto.OptimizationParamsOrBuilder> optimizationParamsBuilder_; - /** - * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; - */ - public boolean hasOptimizationParams() { - return optimizationParamsBuilder_ != null || optimizationParams_ != null; - } - /** - * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; - */ - public org.tensorflow.proto.data.model.ModelProto.OptimizationParams getOptimizationParams() { - if (optimizationParamsBuilder_ == null) { - return optimizationParams_ == null ? org.tensorflow.proto.data.model.ModelProto.OptimizationParams.getDefaultInstance() : optimizationParams_; - } else { - return optimizationParamsBuilder_.getMessage(); - } - } - /** - * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; - */ - public Builder setOptimizationParams(org.tensorflow.proto.data.model.ModelProto.OptimizationParams value) { - if (optimizationParamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - optimizationParams_ = value; - onChanged(); - } else { - optimizationParamsBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; - */ - public Builder setOptimizationParams( - org.tensorflow.proto.data.model.ModelProto.OptimizationParams.Builder builderForValue) { - if (optimizationParamsBuilder_ == null) { - optimizationParams_ = builderForValue.build(); - onChanged(); - } else { - optimizationParamsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; - */ - public Builder mergeOptimizationParams(org.tensorflow.proto.data.model.ModelProto.OptimizationParams value) { - if (optimizationParamsBuilder_ == null) { - if (optimizationParams_ != null) { - optimizationParams_ = - org.tensorflow.proto.data.model.ModelProto.OptimizationParams.newBuilder(optimizationParams_).mergeFrom(value).buildPartial(); - } else { - optimizationParams_ = value; - } - onChanged(); - } else { - optimizationParamsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; - */ - public Builder clearOptimizationParams() { - if (optimizationParamsBuilder_ == null) { - optimizationParams_ = null; - onChanged(); - } else { - optimizationParams_ = null; - optimizationParamsBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; - */ - public org.tensorflow.proto.data.model.ModelProto.OptimizationParams.Builder getOptimizationParamsBuilder() { - - onChanged(); - return getOptimizationParamsFieldBuilder().getBuilder(); - } - /** - * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; - */ - public org.tensorflow.proto.data.model.ModelProto.OptimizationParamsOrBuilder getOptimizationParamsOrBuilder() { - if (optimizationParamsBuilder_ != null) { - return optimizationParamsBuilder_.getMessageOrBuilder(); - } else { - return optimizationParams_ == null ? - org.tensorflow.proto.data.model.ModelProto.OptimizationParams.getDefaultInstance() : optimizationParams_; - } - } - /** - * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.data.model.ModelProto.OptimizationParams, org.tensorflow.proto.data.model.ModelProto.OptimizationParams.Builder, org.tensorflow.proto.data.model.ModelProto.OptimizationParamsOrBuilder> - getOptimizationParamsFieldBuilder() { - if (optimizationParamsBuilder_ == null) { - optimizationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.data.model.ModelProto.OptimizationParams, org.tensorflow.proto.data.model.ModelProto.OptimizationParams.Builder, org.tensorflow.proto.data.model.ModelProto.OptimizationParamsOrBuilder>( - getOptimizationParams(), - getParentForChildren(), - isClean()); - optimizationParams_ = null; - } - return optimizationParamsBuilder_; - } - @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:tensorflow.data.model.ModelProto) - } - - // @@protoc_insertion_point(class_scope:tensorflow.data.model.ModelProto) - private static final org.tensorflow.proto.data.model.ModelProto DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.data.model.ModelProto(); - } - - public static org.tensorflow.proto.data.model.ModelProto getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModelProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModelProto(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.data.model.ModelProto getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/model/ModelProtoOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/model/ModelProtoOrBuilder.java deleted file mode 100644 index 609e1a73f0d..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/model/ModelProtoOrBuilder.java +++ /dev/null @@ -1,94 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/model.proto - -package org.tensorflow.proto.data.model; - -public interface ModelProtoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.data.model.ModelProto) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Map of node IDs to nodes of this model.
-   * 
- * - * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; - */ - int getNodesCount(); - /** - *
-   * Map of node IDs to nodes of this model.
-   * 
- * - * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; - */ - boolean containsNodes( - long key); - /** - * Use {@link #getNodesMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getNodes(); - /** - *
-   * Map of node IDs to nodes of this model.
-   * 
- * - * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; - */ - java.util.Map - getNodesMap(); - /** - *
-   * Map of node IDs to nodes of this model.
-   * 
- * - * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; - */ - - org.tensorflow.proto.data.model.ModelProto.Node getNodesOrDefault( - long key, - org.tensorflow.proto.data.model.ModelProto.Node defaultValue); - /** - *
-   * Map of node IDs to nodes of this model.
-   * 
- * - * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; - */ - - org.tensorflow.proto.data.model.ModelProto.Node getNodesOrThrow( - long key); - - /** - *
-   * ID of the output node of this model.
-   * 
- * - * int64 output = 2; - */ - long getOutput(); - - /** - *
-   * Counter for node IDs of this model.
-   * 
- * - * int64 id_counter = 3; - */ - long getIdCounter(); - - /** - * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; - */ - boolean hasOptimizationParams(); - /** - * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; - */ - org.tensorflow.proto.data.model.ModelProto.OptimizationParams getOptimizationParams(); - /** - * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; - */ - org.tensorflow.proto.data.model.ModelProto.OptimizationParamsOrBuilder getOptimizationParamsOrBuilder(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/model/ModelProtos.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/model/ModelProtos.java deleted file mode 100644 index 0339e8384c3..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/model/ModelProtos.java +++ /dev/null @@ -1,127 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/model.proto - -package org.tensorflow.proto.data.model; - -public final class ModelProtos { - private ModelProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_data_model_ModelProto_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_data_model_ModelProto_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_data_model_ModelProto_Node_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_data_model_ModelProto_Node_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_data_model_ModelProto_Node_Parameter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_data_model_ModelProto_Node_Parameter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_data_model_ModelProto_NodesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_data_model_ModelProto_NodesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_data_model_ModelProto_OptimizationParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_data_model_ModelProto_OptimizationParams_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n%tensorflow/core/framework/model.proto\022" + - "\025tensorflow.data.model\"\364\007\n\nModelProto\022;\n" + - "\005nodes\030\001 \003(\0132,.tensorflow.data.model.Mod" + - "elProto.NodesEntry\022\016\n\006output\030\002 \001(\003\022\022\n\nid" + - "_counter\030\003 \001(\003\022Q\n\023optimization_params\030\005 " + - "\001(\01324.tensorflow.data.model.ModelProto.O" + - "ptimizationParams\032\277\004\n\004Node\022\n\n\002id\030\001 \001(\003\022\014" + - "\n\004name\030\002 \001(\t\022\020\n\010autotune\030\003 \001(\010\022\026\n\016buffer" + - "ed_bytes\030\004 \001(\003\022\031\n\021buffered_elements\030\005 \001(" + - "\003\022\026\n\016bytes_consumed\030\006 \001(\003\022\026\n\016bytes_produ" + - "ced\030\007 \001(\003\022\024\n\014num_elements\030\010 \001(\003\022\027\n\017proce" + - "ssing_time\030\t \001(\003\022\026\n\016record_metrics\030\n \001(\010" + - "\022D\n\nparameters\030\013 \003(\01320.tensorflow.data.m" + - "odel.ModelProto.Node.Parameter\022!\n\031input_" + - "processing_time_sum\030\014 \001(\001\022#\n\033input_proce" + - "ssing_time_count\030\r \001(\003\022\016\n\006inputs\030\016 \003(\003\0224" + - "\n\nnode_class\030\017 \001(\0162 .tensorflow.data.mod" + - "el.NodeClass\022\r\n\005ratio\030\020 \001(\001\022\024\n\014memory_ra" + - "tio\030\021 \001(\001\032h\n\tParameter\022\014\n\004name\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\001\022\023\n\013state_value\030\003 \001(\001\022\013\n\003min\030" + - "\004 \001(\001\022\013\n\003max\030\005 \001(\001\022\017\n\007tunable\030\006 \001(\010\032T\n\nN" + - "odesEntry\022\013\n\003key\030\001 \001(\003\0225\n\005value\030\002 \001(\0132&." + - "tensorflow.data.model.ModelProto.Node:\0028" + - "\001\032\223\001\n\022OptimizationParams\022;\n\talgorithm\030\001 " + - "\001(\0162(.tensorflow.data.model.AutotuneAlgo" + - "rithm\022\022\n\ncpu_budget\030\002 \001(\003\022\022\n\nram_budget\030" + - "\003 \001(\003\022\030\n\020model_input_time\030\004 \001(\001J\004\010\004\020\005*\234\001" + - "\n\tNodeClass\022\013\n\007UNKNOWN\020\000\022\023\n\017INTERLEAVE_M" + - "ANY\020\001\022\031\n\025ASYNC_INTERLEAVE_MANY\020\002\022\017\n\013KNOW" + - "N_RATIO\020\003\022\025\n\021ASYNC_KNOWN_RATIO\020\004\022\021\n\rUNKN" + - "OWN_RATIO\020\005\022\027\n\023ASYNC_UNKNOWN_RATIO\020\006*l\n\021" + - "AutotuneAlgorithm\022\013\n\007DEFAULT\020\000\022\016\n\nHILL_C" + - "LIMB\020\001\022\024\n\020GRADIENT_DESCENT\020\002\022\023\n\017MAX_PARA" + - "LLELISM\020\003\022\017\n\013STAGE_BASED\020\004B\201\001\n\037org.tenso" + - "rflow.proto.data.modelB\013ModelProtosP\001ZLg" + - "ithub.com/tensorflow/tensorflow/tensorfl" + - "ow/go/core/framework/model_go_proto\370\001\001b\006" + - "proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_tensorflow_data_model_ModelProto_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tensorflow_data_model_ModelProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_data_model_ModelProto_descriptor, - new java.lang.String[] { "Nodes", "Output", "IdCounter", "OptimizationParams", }); - internal_static_tensorflow_data_model_ModelProto_Node_descriptor = - internal_static_tensorflow_data_model_ModelProto_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_data_model_ModelProto_Node_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_data_model_ModelProto_Node_descriptor, - new java.lang.String[] { "Id", "Name", "Autotune", "BufferedBytes", "BufferedElements", "BytesConsumed", "BytesProduced", "NumElements", "ProcessingTime", "RecordMetrics", "Parameters", "InputProcessingTimeSum", "InputProcessingTimeCount", "Inputs", "NodeClass", "Ratio", "MemoryRatio", }); - internal_static_tensorflow_data_model_ModelProto_Node_Parameter_descriptor = - internal_static_tensorflow_data_model_ModelProto_Node_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_data_model_ModelProto_Node_Parameter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_data_model_ModelProto_Node_Parameter_descriptor, - new java.lang.String[] { "Name", "Value", "StateValue", "Min", "Max", "Tunable", }); - internal_static_tensorflow_data_model_ModelProto_NodesEntry_descriptor = - internal_static_tensorflow_data_model_ModelProto_descriptor.getNestedTypes().get(1); - internal_static_tensorflow_data_model_ModelProto_NodesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_data_model_ModelProto_NodesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_tensorflow_data_model_ModelProto_OptimizationParams_descriptor = - internal_static_tensorflow_data_model_ModelProto_descriptor.getNestedTypes().get(2); - internal_static_tensorflow_data_model_ModelProto_OptimizationParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_data_model_ModelProto_OptimizationParams_descriptor, - new java.lang.String[] { "Algorithm", "CpuBudget", "RamBudget", "ModelInputTime", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/model/NodeClass.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/model/NodeClass.java deleted file mode 100644 index e58a610ccc2..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/model/NodeClass.java +++ /dev/null @@ -1,152 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/model.proto - -package org.tensorflow.proto.data.model; - -/** - *
- * Class of a node in the performance model.
- * 
- * - * Protobuf enum {@code tensorflow.data.model.NodeClass} - */ -public enum NodeClass - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * INTERLEAVE_MANY = 1; - */ - INTERLEAVE_MANY(1), - /** - * ASYNC_INTERLEAVE_MANY = 2; - */ - ASYNC_INTERLEAVE_MANY(2), - /** - * KNOWN_RATIO = 3; - */ - KNOWN_RATIO(3), - /** - * ASYNC_KNOWN_RATIO = 4; - */ - ASYNC_KNOWN_RATIO(4), - /** - * UNKNOWN_RATIO = 5; - */ - UNKNOWN_RATIO(5), - /** - * ASYNC_UNKNOWN_RATIO = 6; - */ - ASYNC_UNKNOWN_RATIO(6), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * INTERLEAVE_MANY = 1; - */ - public static final int INTERLEAVE_MANY_VALUE = 1; - /** - * ASYNC_INTERLEAVE_MANY = 2; - */ - public static final int ASYNC_INTERLEAVE_MANY_VALUE = 2; - /** - * KNOWN_RATIO = 3; - */ - public static final int KNOWN_RATIO_VALUE = 3; - /** - * ASYNC_KNOWN_RATIO = 4; - */ - public static final int ASYNC_KNOWN_RATIO_VALUE = 4; - /** - * UNKNOWN_RATIO = 5; - */ - public static final int UNKNOWN_RATIO_VALUE = 5; - /** - * ASYNC_UNKNOWN_RATIO = 6; - */ - public static final int ASYNC_UNKNOWN_RATIO_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static NodeClass valueOf(int value) { - return forNumber(value); - } - - public static NodeClass forNumber(int value) { - switch (value) { - case 0: return UNKNOWN; - case 1: return INTERLEAVE_MANY; - case 2: return ASYNC_INTERLEAVE_MANY; - case 3: return KNOWN_RATIO; - case 4: return ASYNC_KNOWN_RATIO; - case 5: return UNKNOWN_RATIO; - case 6: return ASYNC_UNKNOWN_RATIO; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - NodeClass> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public NodeClass findValueByNumber(int number) { - return NodeClass.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 org.tensorflow.proto.data.model.ModelProtos.getDescriptor().getEnumTypes().get(0); - } - - private static final NodeClass[] VALUES = values(); - - public static NodeClass 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 NodeClass(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:tensorflow.data.model.NodeClass) -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ClusterDef.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ClusterDef.java deleted file mode 100644 index f796e47d02f..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ClusterDef.java +++ /dev/null @@ -1,865 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/cluster.proto - -package org.tensorflow.proto.distruntime; - -/** - *
- * Defines a TensorFlow cluster as a set of jobs.
- * 
- * - * Protobuf type {@code tensorflow.ClusterDef} - */ -public final class ClusterDef extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.ClusterDef) - ClusterDefOrBuilder { -private static final long serialVersionUID = 0L; - // Use ClusterDef.newBuilder() to construct. - private ClusterDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ClusterDef() { - job_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ClusterDef(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ClusterDef( - 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)) { - job_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - job_.add( - input.readMessage(org.tensorflow.proto.distruntime.JobDef.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)) { - job_ = java.util.Collections.unmodifiableList(job_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.distruntime.ClusterProtos.internal_static_tensorflow_ClusterDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.distruntime.ClusterProtos.internal_static_tensorflow_ClusterDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.distruntime.ClusterDef.class, org.tensorflow.proto.distruntime.ClusterDef.Builder.class); - } - - public static final int JOB_FIELD_NUMBER = 1; - private java.util.List job_; - /** - *
-   * The jobs that comprise the cluster.
-   * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public java.util.List getJobList() { - return job_; - } - /** - *
-   * The jobs that comprise the cluster.
-   * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public java.util.List - getJobOrBuilderList() { - return job_; - } - /** - *
-   * The jobs that comprise the cluster.
-   * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public int getJobCount() { - return job_.size(); - } - /** - *
-   * The jobs that comprise the cluster.
-   * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public org.tensorflow.proto.distruntime.JobDef getJob(int index) { - return job_.get(index); - } - /** - *
-   * The jobs that comprise the cluster.
-   * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public org.tensorflow.proto.distruntime.JobDefOrBuilder getJobOrBuilder( - int index) { - return job_.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 < job_.size(); i++) { - output.writeMessage(1, job_.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 < job_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, job_.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 org.tensorflow.proto.distruntime.ClusterDef)) { - return super.equals(obj); - } - org.tensorflow.proto.distruntime.ClusterDef other = (org.tensorflow.proto.distruntime.ClusterDef) obj; - - if (!getJobList() - .equals(other.getJobList())) 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 (getJobCount() > 0) { - hash = (37 * hash) + JOB_FIELD_NUMBER; - hash = (53 * hash) + getJobList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.distruntime.ClusterDef parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.ClusterDef parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.ClusterDef parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.ClusterDef parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.ClusterDef parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.ClusterDef parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.ClusterDef parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.ClusterDef 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 org.tensorflow.proto.distruntime.ClusterDef parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.ClusterDef 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 org.tensorflow.proto.distruntime.ClusterDef parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.ClusterDef 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(org.tensorflow.proto.distruntime.ClusterDef 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; - } - /** - *
-   * Defines a TensorFlow cluster as a set of jobs.
-   * 
- * - * Protobuf type {@code tensorflow.ClusterDef} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.ClusterDef) - org.tensorflow.proto.distruntime.ClusterDefOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.distruntime.ClusterProtos.internal_static_tensorflow_ClusterDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.distruntime.ClusterProtos.internal_static_tensorflow_ClusterDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.distruntime.ClusterDef.class, org.tensorflow.proto.distruntime.ClusterDef.Builder.class); - } - - // Construct using org.tensorflow.proto.distruntime.ClusterDef.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getJobFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (jobBuilder_ == null) { - job_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - jobBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.distruntime.ClusterProtos.internal_static_tensorflow_ClusterDef_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.ClusterDef getDefaultInstanceForType() { - return org.tensorflow.proto.distruntime.ClusterDef.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.ClusterDef build() { - org.tensorflow.proto.distruntime.ClusterDef result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.ClusterDef buildPartial() { - org.tensorflow.proto.distruntime.ClusterDef result = new org.tensorflow.proto.distruntime.ClusterDef(this); - int from_bitField0_ = bitField0_; - if (jobBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - job_ = java.util.Collections.unmodifiableList(job_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.job_ = job_; - } else { - result.job_ = jobBuilder_.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 org.tensorflow.proto.distruntime.ClusterDef) { - return mergeFrom((org.tensorflow.proto.distruntime.ClusterDef)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.distruntime.ClusterDef other) { - if (other == org.tensorflow.proto.distruntime.ClusterDef.getDefaultInstance()) return this; - if (jobBuilder_ == null) { - if (!other.job_.isEmpty()) { - if (job_.isEmpty()) { - job_ = other.job_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureJobIsMutable(); - job_.addAll(other.job_); - } - onChanged(); - } - } else { - if (!other.job_.isEmpty()) { - if (jobBuilder_.isEmpty()) { - jobBuilder_.dispose(); - jobBuilder_ = null; - job_ = other.job_; - bitField0_ = (bitField0_ & ~0x00000001); - jobBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getJobFieldBuilder() : null; - } else { - jobBuilder_.addAllMessages(other.job_); - } - } - } - 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 { - org.tensorflow.proto.distruntime.ClusterDef parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.distruntime.ClusterDef) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List job_ = - java.util.Collections.emptyList(); - private void ensureJobIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - job_ = new java.util.ArrayList(job_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.distruntime.JobDef, org.tensorflow.proto.distruntime.JobDef.Builder, org.tensorflow.proto.distruntime.JobDefOrBuilder> jobBuilder_; - - /** - *
-     * The jobs that comprise the cluster.
-     * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public java.util.List getJobList() { - if (jobBuilder_ == null) { - return java.util.Collections.unmodifiableList(job_); - } else { - return jobBuilder_.getMessageList(); - } - } - /** - *
-     * The jobs that comprise the cluster.
-     * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public int getJobCount() { - if (jobBuilder_ == null) { - return job_.size(); - } else { - return jobBuilder_.getCount(); - } - } - /** - *
-     * The jobs that comprise the cluster.
-     * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public org.tensorflow.proto.distruntime.JobDef getJob(int index) { - if (jobBuilder_ == null) { - return job_.get(index); - } else { - return jobBuilder_.getMessage(index); - } - } - /** - *
-     * The jobs that comprise the cluster.
-     * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public Builder setJob( - int index, org.tensorflow.proto.distruntime.JobDef value) { - if (jobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobIsMutable(); - job_.set(index, value); - onChanged(); - } else { - jobBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The jobs that comprise the cluster.
-     * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public Builder setJob( - int index, org.tensorflow.proto.distruntime.JobDef.Builder builderForValue) { - if (jobBuilder_ == null) { - ensureJobIsMutable(); - job_.set(index, builderForValue.build()); - onChanged(); - } else { - jobBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The jobs that comprise the cluster.
-     * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public Builder addJob(org.tensorflow.proto.distruntime.JobDef value) { - if (jobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobIsMutable(); - job_.add(value); - onChanged(); - } else { - jobBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The jobs that comprise the cluster.
-     * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public Builder addJob( - int index, org.tensorflow.proto.distruntime.JobDef value) { - if (jobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobIsMutable(); - job_.add(index, value); - onChanged(); - } else { - jobBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The jobs that comprise the cluster.
-     * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public Builder addJob( - org.tensorflow.proto.distruntime.JobDef.Builder builderForValue) { - if (jobBuilder_ == null) { - ensureJobIsMutable(); - job_.add(builderForValue.build()); - onChanged(); - } else { - jobBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The jobs that comprise the cluster.
-     * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public Builder addJob( - int index, org.tensorflow.proto.distruntime.JobDef.Builder builderForValue) { - if (jobBuilder_ == null) { - ensureJobIsMutable(); - job_.add(index, builderForValue.build()); - onChanged(); - } else { - jobBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The jobs that comprise the cluster.
-     * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public Builder addAllJob( - java.lang.Iterable values) { - if (jobBuilder_ == null) { - ensureJobIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, job_); - onChanged(); - } else { - jobBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The jobs that comprise the cluster.
-     * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public Builder clearJob() { - if (jobBuilder_ == null) { - job_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - jobBuilder_.clear(); - } - return this; - } - /** - *
-     * The jobs that comprise the cluster.
-     * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public Builder removeJob(int index) { - if (jobBuilder_ == null) { - ensureJobIsMutable(); - job_.remove(index); - onChanged(); - } else { - jobBuilder_.remove(index); - } - return this; - } - /** - *
-     * The jobs that comprise the cluster.
-     * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public org.tensorflow.proto.distruntime.JobDef.Builder getJobBuilder( - int index) { - return getJobFieldBuilder().getBuilder(index); - } - /** - *
-     * The jobs that comprise the cluster.
-     * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public org.tensorflow.proto.distruntime.JobDefOrBuilder getJobOrBuilder( - int index) { - if (jobBuilder_ == null) { - return job_.get(index); } else { - return jobBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The jobs that comprise the cluster.
-     * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public java.util.List - getJobOrBuilderList() { - if (jobBuilder_ != null) { - return jobBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(job_); - } - } - /** - *
-     * The jobs that comprise the cluster.
-     * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public org.tensorflow.proto.distruntime.JobDef.Builder addJobBuilder() { - return getJobFieldBuilder().addBuilder( - org.tensorflow.proto.distruntime.JobDef.getDefaultInstance()); - } - /** - *
-     * The jobs that comprise the cluster.
-     * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public org.tensorflow.proto.distruntime.JobDef.Builder addJobBuilder( - int index) { - return getJobFieldBuilder().addBuilder( - index, org.tensorflow.proto.distruntime.JobDef.getDefaultInstance()); - } - /** - *
-     * The jobs that comprise the cluster.
-     * 
- * - * repeated .tensorflow.JobDef job = 1; - */ - public java.util.List - getJobBuilderList() { - return getJobFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.distruntime.JobDef, org.tensorflow.proto.distruntime.JobDef.Builder, org.tensorflow.proto.distruntime.JobDefOrBuilder> - getJobFieldBuilder() { - if (jobBuilder_ == null) { - jobBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.distruntime.JobDef, org.tensorflow.proto.distruntime.JobDef.Builder, org.tensorflow.proto.distruntime.JobDefOrBuilder>( - job_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - job_ = null; - } - return jobBuilder_; - } - @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:tensorflow.ClusterDef) - } - - // @@protoc_insertion_point(class_scope:tensorflow.ClusterDef) - private static final org.tensorflow.proto.distruntime.ClusterDef DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.distruntime.ClusterDef(); - } - - public static org.tensorflow.proto.distruntime.ClusterDef getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterDef parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterDef(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.ClusterDef getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ClusterDeviceFilters.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ClusterDeviceFilters.java deleted file mode 100644 index f9684c7e0e8..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ClusterDeviceFilters.java +++ /dev/null @@ -1,773 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/device_filters.proto - -package org.tensorflow.proto.distruntime; - -/** - *
- * Defines the device filters for jobs in a cluster.
- * 
- * - * Protobuf type {@code tensorflow.ClusterDeviceFilters} - */ -public final class ClusterDeviceFilters extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.ClusterDeviceFilters) - ClusterDeviceFiltersOrBuilder { -private static final long serialVersionUID = 0L; - // Use ClusterDeviceFilters.newBuilder() to construct. - private ClusterDeviceFilters(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ClusterDeviceFilters() { - jobs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ClusterDeviceFilters(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ClusterDeviceFilters( - 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)) { - jobs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - jobs_.add( - input.readMessage(org.tensorflow.proto.distruntime.JobDeviceFilters.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)) { - jobs_ = java.util.Collections.unmodifiableList(jobs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.distruntime.DeviceFiltersProtos.internal_static_tensorflow_ClusterDeviceFilters_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.distruntime.DeviceFiltersProtos.internal_static_tensorflow_ClusterDeviceFilters_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.distruntime.ClusterDeviceFilters.class, org.tensorflow.proto.distruntime.ClusterDeviceFilters.Builder.class); - } - - public static final int JOBS_FIELD_NUMBER = 1; - private java.util.List jobs_; - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public java.util.List getJobsList() { - return jobs_; - } - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public java.util.List - getJobsOrBuilderList() { - return jobs_; - } - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public int getJobsCount() { - return jobs_.size(); - } - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public org.tensorflow.proto.distruntime.JobDeviceFilters getJobs(int index) { - return jobs_.get(index); - } - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public org.tensorflow.proto.distruntime.JobDeviceFiltersOrBuilder getJobsOrBuilder( - int index) { - return jobs_.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 < jobs_.size(); i++) { - output.writeMessage(1, jobs_.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 < jobs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, jobs_.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 org.tensorflow.proto.distruntime.ClusterDeviceFilters)) { - return super.equals(obj); - } - org.tensorflow.proto.distruntime.ClusterDeviceFilters other = (org.tensorflow.proto.distruntime.ClusterDeviceFilters) obj; - - if (!getJobsList() - .equals(other.getJobsList())) 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 (getJobsCount() > 0) { - hash = (37 * hash) + JOBS_FIELD_NUMBER; - hash = (53 * hash) + getJobsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.distruntime.ClusterDeviceFilters parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.ClusterDeviceFilters parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.ClusterDeviceFilters parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.ClusterDeviceFilters parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.ClusterDeviceFilters parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.ClusterDeviceFilters parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.ClusterDeviceFilters parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.ClusterDeviceFilters 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 org.tensorflow.proto.distruntime.ClusterDeviceFilters parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.ClusterDeviceFilters 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 org.tensorflow.proto.distruntime.ClusterDeviceFilters parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.ClusterDeviceFilters 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(org.tensorflow.proto.distruntime.ClusterDeviceFilters 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; - } - /** - *
-   * Defines the device filters for jobs in a cluster.
-   * 
- * - * Protobuf type {@code tensorflow.ClusterDeviceFilters} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.ClusterDeviceFilters) - org.tensorflow.proto.distruntime.ClusterDeviceFiltersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.distruntime.DeviceFiltersProtos.internal_static_tensorflow_ClusterDeviceFilters_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.distruntime.DeviceFiltersProtos.internal_static_tensorflow_ClusterDeviceFilters_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.distruntime.ClusterDeviceFilters.class, org.tensorflow.proto.distruntime.ClusterDeviceFilters.Builder.class); - } - - // Construct using org.tensorflow.proto.distruntime.ClusterDeviceFilters.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getJobsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (jobsBuilder_ == null) { - jobs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - jobsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.distruntime.DeviceFiltersProtos.internal_static_tensorflow_ClusterDeviceFilters_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.ClusterDeviceFilters getDefaultInstanceForType() { - return org.tensorflow.proto.distruntime.ClusterDeviceFilters.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.ClusterDeviceFilters build() { - org.tensorflow.proto.distruntime.ClusterDeviceFilters result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.ClusterDeviceFilters buildPartial() { - org.tensorflow.proto.distruntime.ClusterDeviceFilters result = new org.tensorflow.proto.distruntime.ClusterDeviceFilters(this); - int from_bitField0_ = bitField0_; - if (jobsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - jobs_ = java.util.Collections.unmodifiableList(jobs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.jobs_ = jobs_; - } else { - result.jobs_ = jobsBuilder_.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 org.tensorflow.proto.distruntime.ClusterDeviceFilters) { - return mergeFrom((org.tensorflow.proto.distruntime.ClusterDeviceFilters)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.distruntime.ClusterDeviceFilters other) { - if (other == org.tensorflow.proto.distruntime.ClusterDeviceFilters.getDefaultInstance()) return this; - if (jobsBuilder_ == null) { - if (!other.jobs_.isEmpty()) { - if (jobs_.isEmpty()) { - jobs_ = other.jobs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureJobsIsMutable(); - jobs_.addAll(other.jobs_); - } - onChanged(); - } - } else { - if (!other.jobs_.isEmpty()) { - if (jobsBuilder_.isEmpty()) { - jobsBuilder_.dispose(); - jobsBuilder_ = null; - jobs_ = other.jobs_; - bitField0_ = (bitField0_ & ~0x00000001); - jobsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getJobsFieldBuilder() : null; - } else { - jobsBuilder_.addAllMessages(other.jobs_); - } - } - } - 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 { - org.tensorflow.proto.distruntime.ClusterDeviceFilters parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.distruntime.ClusterDeviceFilters) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List jobs_ = - java.util.Collections.emptyList(); - private void ensureJobsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - jobs_ = new java.util.ArrayList(jobs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.distruntime.JobDeviceFilters, org.tensorflow.proto.distruntime.JobDeviceFilters.Builder, org.tensorflow.proto.distruntime.JobDeviceFiltersOrBuilder> jobsBuilder_; - - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public java.util.List getJobsList() { - if (jobsBuilder_ == null) { - return java.util.Collections.unmodifiableList(jobs_); - } else { - return jobsBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public int getJobsCount() { - if (jobsBuilder_ == null) { - return jobs_.size(); - } else { - return jobsBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public org.tensorflow.proto.distruntime.JobDeviceFilters getJobs(int index) { - if (jobsBuilder_ == null) { - return jobs_.get(index); - } else { - return jobsBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public Builder setJobs( - int index, org.tensorflow.proto.distruntime.JobDeviceFilters value) { - if (jobsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobsIsMutable(); - jobs_.set(index, value); - onChanged(); - } else { - jobsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public Builder setJobs( - int index, org.tensorflow.proto.distruntime.JobDeviceFilters.Builder builderForValue) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.set(index, builderForValue.build()); - onChanged(); - } else { - jobsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public Builder addJobs(org.tensorflow.proto.distruntime.JobDeviceFilters value) { - if (jobsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobsIsMutable(); - jobs_.add(value); - onChanged(); - } else { - jobsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public Builder addJobs( - int index, org.tensorflow.proto.distruntime.JobDeviceFilters value) { - if (jobsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobsIsMutable(); - jobs_.add(index, value); - onChanged(); - } else { - jobsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public Builder addJobs( - org.tensorflow.proto.distruntime.JobDeviceFilters.Builder builderForValue) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.add(builderForValue.build()); - onChanged(); - } else { - jobsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public Builder addJobs( - int index, org.tensorflow.proto.distruntime.JobDeviceFilters.Builder builderForValue) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.add(index, builderForValue.build()); - onChanged(); - } else { - jobsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public Builder addAllJobs( - java.lang.Iterable values) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, jobs_); - onChanged(); - } else { - jobsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public Builder clearJobs() { - if (jobsBuilder_ == null) { - jobs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - jobsBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public Builder removeJobs(int index) { - if (jobsBuilder_ == null) { - ensureJobsIsMutable(); - jobs_.remove(index); - onChanged(); - } else { - jobsBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public org.tensorflow.proto.distruntime.JobDeviceFilters.Builder getJobsBuilder( - int index) { - return getJobsFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public org.tensorflow.proto.distruntime.JobDeviceFiltersOrBuilder getJobsOrBuilder( - int index) { - if (jobsBuilder_ == null) { - return jobs_.get(index); } else { - return jobsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public java.util.List - getJobsOrBuilderList() { - if (jobsBuilder_ != null) { - return jobsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(jobs_); - } - } - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public org.tensorflow.proto.distruntime.JobDeviceFilters.Builder addJobsBuilder() { - return getJobsFieldBuilder().addBuilder( - org.tensorflow.proto.distruntime.JobDeviceFilters.getDefaultInstance()); - } - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public org.tensorflow.proto.distruntime.JobDeviceFilters.Builder addJobsBuilder( - int index) { - return getJobsFieldBuilder().addBuilder( - index, org.tensorflow.proto.distruntime.JobDeviceFilters.getDefaultInstance()); - } - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - public java.util.List - getJobsBuilderList() { - return getJobsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.distruntime.JobDeviceFilters, org.tensorflow.proto.distruntime.JobDeviceFilters.Builder, org.tensorflow.proto.distruntime.JobDeviceFiltersOrBuilder> - getJobsFieldBuilder() { - if (jobsBuilder_ == null) { - jobsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.distruntime.JobDeviceFilters, org.tensorflow.proto.distruntime.JobDeviceFilters.Builder, org.tensorflow.proto.distruntime.JobDeviceFiltersOrBuilder>( - jobs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - jobs_ = null; - } - return jobsBuilder_; - } - @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:tensorflow.ClusterDeviceFilters) - } - - // @@protoc_insertion_point(class_scope:tensorflow.ClusterDeviceFilters) - private static final org.tensorflow.proto.distruntime.ClusterDeviceFilters DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.distruntime.ClusterDeviceFilters(); - } - - public static org.tensorflow.proto.distruntime.ClusterDeviceFilters getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterDeviceFilters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterDeviceFilters(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.ClusterDeviceFilters getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ClusterDeviceFiltersOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ClusterDeviceFiltersOrBuilder.java deleted file mode 100644 index eaaf1635eec..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ClusterDeviceFiltersOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/device_filters.proto - -package org.tensorflow.proto.distruntime; - -public interface ClusterDeviceFiltersOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.ClusterDeviceFilters) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - java.util.List - getJobsList(); - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - org.tensorflow.proto.distruntime.JobDeviceFilters getJobs(int index); - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - int getJobsCount(); - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - java.util.List - getJobsOrBuilderList(); - /** - * repeated .tensorflow.JobDeviceFilters jobs = 1; - */ - org.tensorflow.proto.distruntime.JobDeviceFiltersOrBuilder getJobsOrBuilder( - int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/CoordinationConfig.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/CoordinationConfig.java deleted file mode 100644 index c2736628d4f..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/CoordinationConfig.java +++ /dev/null @@ -1,1596 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/coordination_config.proto - -package org.tensorflow.proto.distruntime; - -public final class CoordinationConfig { - private CoordinationConfig() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CoordinationServiceConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.CoordinationServiceConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Type of coordination service implementation to enable.
-     * For example, setting the service type as "standalone" starts a service
-     * instance on the leader task to provide the coordination services such as
-     * heartbeats and consistent key-value store.
-     * 
- * - * string service_type = 1; - */ - java.lang.String getServiceType(); - /** - *
-     * Type of coordination service implementation to enable.
-     * For example, setting the service type as "standalone" starts a service
-     * instance on the leader task to provide the coordination services such as
-     * heartbeats and consistent key-value store.
-     * 
- * - * string service_type = 1; - */ - com.google.protobuf.ByteString - getServiceTypeBytes(); - - /** - *
-     * Address where the coordination service instance is hosted.
-     * 
- * - * string service_leader = 2; - */ - java.lang.String getServiceLeader(); - /** - *
-     * Address where the coordination service instance is hosted.
-     * 
- * - * string service_leader = 2; - */ - com.google.protobuf.ByteString - getServiceLeaderBytes(); - - /** - *
-     * Whether to enable the health check mechanism.
-     * 
- * - * bool enable_health_check = 3; - */ - boolean getEnableHealthCheck(); - - /** - *
-     * Maximum wait time for all members in the cluster to be registered.
-     * 
- * - * int64 cluster_register_timeout_in_ms = 4; - */ - long getClusterRegisterTimeoutInMs(); - - /** - *
-     * Heartbeat timeout, if a task does not record heartbeat in this time
-     * window, it will be considered disconnected.
-     * Note: This is also used as a grace period to accept any heartbeats after
-     * the agent has disconnected, to account for the lag time between the service
-     * recording the state change and the agent stopping heartbeats.
-     * 
- * - * int64 heartbeat_timeout_in_ms = 5; - */ - long getHeartbeatTimeoutInMs(); - - /** - *
-     * The list of jobs that partipate in the coordination service. If empty, all
-     * jobs will be included in the coordination service by default.
-     * 
- * - * repeated string coordinated_jobs = 6; - */ - java.util.List - getCoordinatedJobsList(); - /** - *
-     * The list of jobs that partipate in the coordination service. If empty, all
-     * jobs will be included in the coordination service by default.
-     * 
- * - * repeated string coordinated_jobs = 6; - */ - int getCoordinatedJobsCount(); - /** - *
-     * The list of jobs that partipate in the coordination service. If empty, all
-     * jobs will be included in the coordination service by default.
-     * 
- * - * repeated string coordinated_jobs = 6; - */ - java.lang.String getCoordinatedJobs(int index); - /** - *
-     * The list of jobs that partipate in the coordination service. If empty, all
-     * jobs will be included in the coordination service by default.
-     * 
- * - * repeated string coordinated_jobs = 6; - */ - com.google.protobuf.ByteString - getCoordinatedJobsBytes(int index); - - /** - *
-     * Denotes how long to wait for all coordination agents to reach the barriers
-     * (after the first shutdown request) before disconnecting together. If
-     * set to 0, no barrier is imposed upon shutdown and each worker can
-     * disconnect individually.
-     * 
- * - * int64 shutdown_barrier_timeout_in_ms = 7; - */ - long getShutdownBarrierTimeoutInMs(); - - /** - *
-     * If set, agents do not make an explicit Shutdown() call. Service will only
-     * find out about the disconnecte agent via stale heartbeats. Used for
-     * testing.
-     * 
- * - * bool agent_destruction_without_shutdown = 8; - */ - boolean getAgentDestructionWithoutShutdown(); - } - /** - *
-   * Coordination service configuration parameters.
-   * The system picks appropriate values for fields that are not set.
-   * 
- * - * Protobuf type {@code tensorflow.CoordinationServiceConfig} - */ - public static final class CoordinationServiceConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.CoordinationServiceConfig) - CoordinationServiceConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use CoordinationServiceConfig.newBuilder() to construct. - private CoordinationServiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CoordinationServiceConfig() { - serviceType_ = ""; - serviceLeader_ = ""; - coordinatedJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CoordinationServiceConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CoordinationServiceConfig( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - serviceType_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - serviceLeader_ = s; - break; - } - case 24: { - - enableHealthCheck_ = input.readBool(); - break; - } - case 32: { - - clusterRegisterTimeoutInMs_ = input.readInt64(); - break; - } - case 40: { - - heartbeatTimeoutInMs_ = input.readInt64(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - coordinatedJobs_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - coordinatedJobs_.add(s); - break; - } - case 56: { - - shutdownBarrierTimeoutInMs_ = input.readInt64(); - break; - } - case 64: { - - agentDestructionWithoutShutdown_ = input.readBool(); - 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)) { - coordinatedJobs_ = coordinatedJobs_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.distruntime.CoordinationConfig.internal_static_tensorflow_CoordinationServiceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.distruntime.CoordinationConfig.internal_static_tensorflow_CoordinationServiceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig.class, org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig.Builder.class); - } - - public static final int SERVICE_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object serviceType_; - /** - *
-     * Type of coordination service implementation to enable.
-     * For example, setting the service type as "standalone" starts a service
-     * instance on the leader task to provide the coordination services such as
-     * heartbeats and consistent key-value store.
-     * 
- * - * string service_type = 1; - */ - public java.lang.String getServiceType() { - java.lang.Object ref = serviceType_; - 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(); - serviceType_ = s; - return s; - } - } - /** - *
-     * Type of coordination service implementation to enable.
-     * For example, setting the service type as "standalone" starts a service
-     * instance on the leader task to provide the coordination services such as
-     * heartbeats and consistent key-value store.
-     * 
- * - * string service_type = 1; - */ - public com.google.protobuf.ByteString - getServiceTypeBytes() { - java.lang.Object ref = serviceType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICE_LEADER_FIELD_NUMBER = 2; - private volatile java.lang.Object serviceLeader_; - /** - *
-     * Address where the coordination service instance is hosted.
-     * 
- * - * string service_leader = 2; - */ - public java.lang.String getServiceLeader() { - java.lang.Object ref = serviceLeader_; - 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(); - serviceLeader_ = s; - return s; - } - } - /** - *
-     * Address where the coordination service instance is hosted.
-     * 
- * - * string service_leader = 2; - */ - public com.google.protobuf.ByteString - getServiceLeaderBytes() { - java.lang.Object ref = serviceLeader_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceLeader_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENABLE_HEALTH_CHECK_FIELD_NUMBER = 3; - private boolean enableHealthCheck_; - /** - *
-     * Whether to enable the health check mechanism.
-     * 
- * - * bool enable_health_check = 3; - */ - public boolean getEnableHealthCheck() { - return enableHealthCheck_; - } - - public static final int CLUSTER_REGISTER_TIMEOUT_IN_MS_FIELD_NUMBER = 4; - private long clusterRegisterTimeoutInMs_; - /** - *
-     * Maximum wait time for all members in the cluster to be registered.
-     * 
- * - * int64 cluster_register_timeout_in_ms = 4; - */ - public long getClusterRegisterTimeoutInMs() { - return clusterRegisterTimeoutInMs_; - } - - public static final int HEARTBEAT_TIMEOUT_IN_MS_FIELD_NUMBER = 5; - private long heartbeatTimeoutInMs_; - /** - *
-     * Heartbeat timeout, if a task does not record heartbeat in this time
-     * window, it will be considered disconnected.
-     * Note: This is also used as a grace period to accept any heartbeats after
-     * the agent has disconnected, to account for the lag time between the service
-     * recording the state change and the agent stopping heartbeats.
-     * 
- * - * int64 heartbeat_timeout_in_ms = 5; - */ - public long getHeartbeatTimeoutInMs() { - return heartbeatTimeoutInMs_; - } - - public static final int COORDINATED_JOBS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList coordinatedJobs_; - /** - *
-     * The list of jobs that partipate in the coordination service. If empty, all
-     * jobs will be included in the coordination service by default.
-     * 
- * - * repeated string coordinated_jobs = 6; - */ - public com.google.protobuf.ProtocolStringList - getCoordinatedJobsList() { - return coordinatedJobs_; - } - /** - *
-     * The list of jobs that partipate in the coordination service. If empty, all
-     * jobs will be included in the coordination service by default.
-     * 
- * - * repeated string coordinated_jobs = 6; - */ - public int getCoordinatedJobsCount() { - return coordinatedJobs_.size(); - } - /** - *
-     * The list of jobs that partipate in the coordination service. If empty, all
-     * jobs will be included in the coordination service by default.
-     * 
- * - * repeated string coordinated_jobs = 6; - */ - public java.lang.String getCoordinatedJobs(int index) { - return coordinatedJobs_.get(index); - } - /** - *
-     * The list of jobs that partipate in the coordination service. If empty, all
-     * jobs will be included in the coordination service by default.
-     * 
- * - * repeated string coordinated_jobs = 6; - */ - public com.google.protobuf.ByteString - getCoordinatedJobsBytes(int index) { - return coordinatedJobs_.getByteString(index); - } - - public static final int SHUTDOWN_BARRIER_TIMEOUT_IN_MS_FIELD_NUMBER = 7; - private long shutdownBarrierTimeoutInMs_; - /** - *
-     * Denotes how long to wait for all coordination agents to reach the barriers
-     * (after the first shutdown request) before disconnecting together. If
-     * set to 0, no barrier is imposed upon shutdown and each worker can
-     * disconnect individually.
-     * 
- * - * int64 shutdown_barrier_timeout_in_ms = 7; - */ - public long getShutdownBarrierTimeoutInMs() { - return shutdownBarrierTimeoutInMs_; - } - - public static final int AGENT_DESTRUCTION_WITHOUT_SHUTDOWN_FIELD_NUMBER = 8; - private boolean agentDestructionWithoutShutdown_; - /** - *
-     * If set, agents do not make an explicit Shutdown() call. Service will only
-     * find out about the disconnecte agent via stale heartbeats. Used for
-     * testing.
-     * 
- * - * bool agent_destruction_without_shutdown = 8; - */ - public boolean getAgentDestructionWithoutShutdown() { - return agentDestructionWithoutShutdown_; - } - - 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 (!getServiceTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceType_); - } - if (!getServiceLeaderBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceLeader_); - } - if (enableHealthCheck_ != false) { - output.writeBool(3, enableHealthCheck_); - } - if (clusterRegisterTimeoutInMs_ != 0L) { - output.writeInt64(4, clusterRegisterTimeoutInMs_); - } - if (heartbeatTimeoutInMs_ != 0L) { - output.writeInt64(5, heartbeatTimeoutInMs_); - } - for (int i = 0; i < coordinatedJobs_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, coordinatedJobs_.getRaw(i)); - } - if (shutdownBarrierTimeoutInMs_ != 0L) { - output.writeInt64(7, shutdownBarrierTimeoutInMs_); - } - if (agentDestructionWithoutShutdown_ != false) { - output.writeBool(8, agentDestructionWithoutShutdown_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getServiceTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceType_); - } - if (!getServiceLeaderBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceLeader_); - } - if (enableHealthCheck_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, enableHealthCheck_); - } - if (clusterRegisterTimeoutInMs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, clusterRegisterTimeoutInMs_); - } - if (heartbeatTimeoutInMs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, heartbeatTimeoutInMs_); - } - { - int dataSize = 0; - for (int i = 0; i < coordinatedJobs_.size(); i++) { - dataSize += computeStringSizeNoTag(coordinatedJobs_.getRaw(i)); - } - size += dataSize; - size += 1 * getCoordinatedJobsList().size(); - } - if (shutdownBarrierTimeoutInMs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, shutdownBarrierTimeoutInMs_); - } - if (agentDestructionWithoutShutdown_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, agentDestructionWithoutShutdown_); - } - 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 org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig)) { - return super.equals(obj); - } - org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig other = (org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig) obj; - - if (!getServiceType() - .equals(other.getServiceType())) return false; - if (!getServiceLeader() - .equals(other.getServiceLeader())) return false; - if (getEnableHealthCheck() - != other.getEnableHealthCheck()) return false; - if (getClusterRegisterTimeoutInMs() - != other.getClusterRegisterTimeoutInMs()) return false; - if (getHeartbeatTimeoutInMs() - != other.getHeartbeatTimeoutInMs()) return false; - if (!getCoordinatedJobsList() - .equals(other.getCoordinatedJobsList())) return false; - if (getShutdownBarrierTimeoutInMs() - != other.getShutdownBarrierTimeoutInMs()) return false; - if (getAgentDestructionWithoutShutdown() - != other.getAgentDestructionWithoutShutdown()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SERVICE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getServiceType().hashCode(); - hash = (37 * hash) + SERVICE_LEADER_FIELD_NUMBER; - hash = (53 * hash) + getServiceLeader().hashCode(); - hash = (37 * hash) + ENABLE_HEALTH_CHECK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableHealthCheck()); - hash = (37 * hash) + CLUSTER_REGISTER_TIMEOUT_IN_MS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getClusterRegisterTimeoutInMs()); - hash = (37 * hash) + HEARTBEAT_TIMEOUT_IN_MS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeartbeatTimeoutInMs()); - if (getCoordinatedJobsCount() > 0) { - hash = (37 * hash) + COORDINATED_JOBS_FIELD_NUMBER; - hash = (53 * hash) + getCoordinatedJobsList().hashCode(); - } - hash = (37 * hash) + SHUTDOWN_BARRIER_TIMEOUT_IN_MS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getShutdownBarrierTimeoutInMs()); - hash = (37 * hash) + AGENT_DESTRUCTION_WITHOUT_SHUTDOWN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAgentDestructionWithoutShutdown()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig 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 org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig 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 org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig 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(org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig 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; - } - /** - *
-     * Coordination service configuration parameters.
-     * The system picks appropriate values for fields that are not set.
-     * 
- * - * Protobuf type {@code tensorflow.CoordinationServiceConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.CoordinationServiceConfig) - org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.distruntime.CoordinationConfig.internal_static_tensorflow_CoordinationServiceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.distruntime.CoordinationConfig.internal_static_tensorflow_CoordinationServiceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig.class, org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig.Builder.class); - } - - // Construct using org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - serviceType_ = ""; - - serviceLeader_ = ""; - - enableHealthCheck_ = false; - - clusterRegisterTimeoutInMs_ = 0L; - - heartbeatTimeoutInMs_ = 0L; - - coordinatedJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - shutdownBarrierTimeoutInMs_ = 0L; - - agentDestructionWithoutShutdown_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.distruntime.CoordinationConfig.internal_static_tensorflow_CoordinationServiceConfig_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig getDefaultInstanceForType() { - return org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig build() { - org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig buildPartial() { - org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig result = new org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig(this); - int from_bitField0_ = bitField0_; - result.serviceType_ = serviceType_; - result.serviceLeader_ = serviceLeader_; - result.enableHealthCheck_ = enableHealthCheck_; - result.clusterRegisterTimeoutInMs_ = clusterRegisterTimeoutInMs_; - result.heartbeatTimeoutInMs_ = heartbeatTimeoutInMs_; - if (((bitField0_ & 0x00000001) != 0)) { - coordinatedJobs_ = coordinatedJobs_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.coordinatedJobs_ = coordinatedJobs_; - result.shutdownBarrierTimeoutInMs_ = shutdownBarrierTimeoutInMs_; - result.agentDestructionWithoutShutdown_ = agentDestructionWithoutShutdown_; - 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 org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig) { - return mergeFrom((org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig other) { - if (other == org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig.getDefaultInstance()) return this; - if (!other.getServiceType().isEmpty()) { - serviceType_ = other.serviceType_; - onChanged(); - } - if (!other.getServiceLeader().isEmpty()) { - serviceLeader_ = other.serviceLeader_; - onChanged(); - } - if (other.getEnableHealthCheck() != false) { - setEnableHealthCheck(other.getEnableHealthCheck()); - } - if (other.getClusterRegisterTimeoutInMs() != 0L) { - setClusterRegisterTimeoutInMs(other.getClusterRegisterTimeoutInMs()); - } - if (other.getHeartbeatTimeoutInMs() != 0L) { - setHeartbeatTimeoutInMs(other.getHeartbeatTimeoutInMs()); - } - if (!other.coordinatedJobs_.isEmpty()) { - if (coordinatedJobs_.isEmpty()) { - coordinatedJobs_ = other.coordinatedJobs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCoordinatedJobsIsMutable(); - coordinatedJobs_.addAll(other.coordinatedJobs_); - } - onChanged(); - } - if (other.getShutdownBarrierTimeoutInMs() != 0L) { - setShutdownBarrierTimeoutInMs(other.getShutdownBarrierTimeoutInMs()); - } - if (other.getAgentDestructionWithoutShutdown() != false) { - setAgentDestructionWithoutShutdown(other.getAgentDestructionWithoutShutdown()); - } - 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 { - org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object serviceType_ = ""; - /** - *
-       * Type of coordination service implementation to enable.
-       * For example, setting the service type as "standalone" starts a service
-       * instance on the leader task to provide the coordination services such as
-       * heartbeats and consistent key-value store.
-       * 
- * - * string service_type = 1; - */ - public java.lang.String getServiceType() { - java.lang.Object ref = serviceType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Type of coordination service implementation to enable.
-       * For example, setting the service type as "standalone" starts a service
-       * instance on the leader task to provide the coordination services such as
-       * heartbeats and consistent key-value store.
-       * 
- * - * string service_type = 1; - */ - public com.google.protobuf.ByteString - getServiceTypeBytes() { - java.lang.Object ref = serviceType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Type of coordination service implementation to enable.
-       * For example, setting the service type as "standalone" starts a service
-       * instance on the leader task to provide the coordination services such as
-       * heartbeats and consistent key-value store.
-       * 
- * - * string service_type = 1; - */ - public Builder setServiceType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serviceType_ = value; - onChanged(); - return this; - } - /** - *
-       * Type of coordination service implementation to enable.
-       * For example, setting the service type as "standalone" starts a service
-       * instance on the leader task to provide the coordination services such as
-       * heartbeats and consistent key-value store.
-       * 
- * - * string service_type = 1; - */ - public Builder clearServiceType() { - - serviceType_ = getDefaultInstance().getServiceType(); - onChanged(); - return this; - } - /** - *
-       * Type of coordination service implementation to enable.
-       * For example, setting the service type as "standalone" starts a service
-       * instance on the leader task to provide the coordination services such as
-       * heartbeats and consistent key-value store.
-       * 
- * - * string service_type = 1; - */ - public Builder setServiceTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serviceType_ = value; - onChanged(); - return this; - } - - private java.lang.Object serviceLeader_ = ""; - /** - *
-       * Address where the coordination service instance is hosted.
-       * 
- * - * string service_leader = 2; - */ - public java.lang.String getServiceLeader() { - java.lang.Object ref = serviceLeader_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceLeader_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Address where the coordination service instance is hosted.
-       * 
- * - * string service_leader = 2; - */ - public com.google.protobuf.ByteString - getServiceLeaderBytes() { - java.lang.Object ref = serviceLeader_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceLeader_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Address where the coordination service instance is hosted.
-       * 
- * - * string service_leader = 2; - */ - public Builder setServiceLeader( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serviceLeader_ = value; - onChanged(); - return this; - } - /** - *
-       * Address where the coordination service instance is hosted.
-       * 
- * - * string service_leader = 2; - */ - public Builder clearServiceLeader() { - - serviceLeader_ = getDefaultInstance().getServiceLeader(); - onChanged(); - return this; - } - /** - *
-       * Address where the coordination service instance is hosted.
-       * 
- * - * string service_leader = 2; - */ - public Builder setServiceLeaderBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serviceLeader_ = value; - onChanged(); - return this; - } - - private boolean enableHealthCheck_ ; - /** - *
-       * Whether to enable the health check mechanism.
-       * 
- * - * bool enable_health_check = 3; - */ - public boolean getEnableHealthCheck() { - return enableHealthCheck_; - } - /** - *
-       * Whether to enable the health check mechanism.
-       * 
- * - * bool enable_health_check = 3; - */ - public Builder setEnableHealthCheck(boolean value) { - - enableHealthCheck_ = value; - onChanged(); - return this; - } - /** - *
-       * Whether to enable the health check mechanism.
-       * 
- * - * bool enable_health_check = 3; - */ - public Builder clearEnableHealthCheck() { - - enableHealthCheck_ = false; - onChanged(); - return this; - } - - private long clusterRegisterTimeoutInMs_ ; - /** - *
-       * Maximum wait time for all members in the cluster to be registered.
-       * 
- * - * int64 cluster_register_timeout_in_ms = 4; - */ - public long getClusterRegisterTimeoutInMs() { - return clusterRegisterTimeoutInMs_; - } - /** - *
-       * Maximum wait time for all members in the cluster to be registered.
-       * 
- * - * int64 cluster_register_timeout_in_ms = 4; - */ - public Builder setClusterRegisterTimeoutInMs(long value) { - - clusterRegisterTimeoutInMs_ = value; - onChanged(); - return this; - } - /** - *
-       * Maximum wait time for all members in the cluster to be registered.
-       * 
- * - * int64 cluster_register_timeout_in_ms = 4; - */ - public Builder clearClusterRegisterTimeoutInMs() { - - clusterRegisterTimeoutInMs_ = 0L; - onChanged(); - return this; - } - - private long heartbeatTimeoutInMs_ ; - /** - *
-       * Heartbeat timeout, if a task does not record heartbeat in this time
-       * window, it will be considered disconnected.
-       * Note: This is also used as a grace period to accept any heartbeats after
-       * the agent has disconnected, to account for the lag time between the service
-       * recording the state change and the agent stopping heartbeats.
-       * 
- * - * int64 heartbeat_timeout_in_ms = 5; - */ - public long getHeartbeatTimeoutInMs() { - return heartbeatTimeoutInMs_; - } - /** - *
-       * Heartbeat timeout, if a task does not record heartbeat in this time
-       * window, it will be considered disconnected.
-       * Note: This is also used as a grace period to accept any heartbeats after
-       * the agent has disconnected, to account for the lag time between the service
-       * recording the state change and the agent stopping heartbeats.
-       * 
- * - * int64 heartbeat_timeout_in_ms = 5; - */ - public Builder setHeartbeatTimeoutInMs(long value) { - - heartbeatTimeoutInMs_ = value; - onChanged(); - return this; - } - /** - *
-       * Heartbeat timeout, if a task does not record heartbeat in this time
-       * window, it will be considered disconnected.
-       * Note: This is also used as a grace period to accept any heartbeats after
-       * the agent has disconnected, to account for the lag time between the service
-       * recording the state change and the agent stopping heartbeats.
-       * 
- * - * int64 heartbeat_timeout_in_ms = 5; - */ - public Builder clearHeartbeatTimeoutInMs() { - - heartbeatTimeoutInMs_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList coordinatedJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureCoordinatedJobsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - coordinatedJobs_ = new com.google.protobuf.LazyStringArrayList(coordinatedJobs_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * The list of jobs that partipate in the coordination service. If empty, all
-       * jobs will be included in the coordination service by default.
-       * 
- * - * repeated string coordinated_jobs = 6; - */ - public com.google.protobuf.ProtocolStringList - getCoordinatedJobsList() { - return coordinatedJobs_.getUnmodifiableView(); - } - /** - *
-       * The list of jobs that partipate in the coordination service. If empty, all
-       * jobs will be included in the coordination service by default.
-       * 
- * - * repeated string coordinated_jobs = 6; - */ - public int getCoordinatedJobsCount() { - return coordinatedJobs_.size(); - } - /** - *
-       * The list of jobs that partipate in the coordination service. If empty, all
-       * jobs will be included in the coordination service by default.
-       * 
- * - * repeated string coordinated_jobs = 6; - */ - public java.lang.String getCoordinatedJobs(int index) { - return coordinatedJobs_.get(index); - } - /** - *
-       * The list of jobs that partipate in the coordination service. If empty, all
-       * jobs will be included in the coordination service by default.
-       * 
- * - * repeated string coordinated_jobs = 6; - */ - public com.google.protobuf.ByteString - getCoordinatedJobsBytes(int index) { - return coordinatedJobs_.getByteString(index); - } - /** - *
-       * The list of jobs that partipate in the coordination service. If empty, all
-       * jobs will be included in the coordination service by default.
-       * 
- * - * repeated string coordinated_jobs = 6; - */ - public Builder setCoordinatedJobs( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoordinatedJobsIsMutable(); - coordinatedJobs_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * The list of jobs that partipate in the coordination service. If empty, all
-       * jobs will be included in the coordination service by default.
-       * 
- * - * repeated string coordinated_jobs = 6; - */ - public Builder addCoordinatedJobs( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoordinatedJobsIsMutable(); - coordinatedJobs_.add(value); - onChanged(); - return this; - } - /** - *
-       * The list of jobs that partipate in the coordination service. If empty, all
-       * jobs will be included in the coordination service by default.
-       * 
- * - * repeated string coordinated_jobs = 6; - */ - public Builder addAllCoordinatedJobs( - java.lang.Iterable values) { - ensureCoordinatedJobsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, coordinatedJobs_); - onChanged(); - return this; - } - /** - *
-       * The list of jobs that partipate in the coordination service. If empty, all
-       * jobs will be included in the coordination service by default.
-       * 
- * - * repeated string coordinated_jobs = 6; - */ - public Builder clearCoordinatedJobs() { - coordinatedJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The list of jobs that partipate in the coordination service. If empty, all
-       * jobs will be included in the coordination service by default.
-       * 
- * - * repeated string coordinated_jobs = 6; - */ - public Builder addCoordinatedJobsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureCoordinatedJobsIsMutable(); - coordinatedJobs_.add(value); - onChanged(); - return this; - } - - private long shutdownBarrierTimeoutInMs_ ; - /** - *
-       * Denotes how long to wait for all coordination agents to reach the barriers
-       * (after the first shutdown request) before disconnecting together. If
-       * set to 0, no barrier is imposed upon shutdown and each worker can
-       * disconnect individually.
-       * 
- * - * int64 shutdown_barrier_timeout_in_ms = 7; - */ - public long getShutdownBarrierTimeoutInMs() { - return shutdownBarrierTimeoutInMs_; - } - /** - *
-       * Denotes how long to wait for all coordination agents to reach the barriers
-       * (after the first shutdown request) before disconnecting together. If
-       * set to 0, no barrier is imposed upon shutdown and each worker can
-       * disconnect individually.
-       * 
- * - * int64 shutdown_barrier_timeout_in_ms = 7; - */ - public Builder setShutdownBarrierTimeoutInMs(long value) { - - shutdownBarrierTimeoutInMs_ = value; - onChanged(); - return this; - } - /** - *
-       * Denotes how long to wait for all coordination agents to reach the barriers
-       * (after the first shutdown request) before disconnecting together. If
-       * set to 0, no barrier is imposed upon shutdown and each worker can
-       * disconnect individually.
-       * 
- * - * int64 shutdown_barrier_timeout_in_ms = 7; - */ - public Builder clearShutdownBarrierTimeoutInMs() { - - shutdownBarrierTimeoutInMs_ = 0L; - onChanged(); - return this; - } - - private boolean agentDestructionWithoutShutdown_ ; - /** - *
-       * If set, agents do not make an explicit Shutdown() call. Service will only
-       * find out about the disconnecte agent via stale heartbeats. Used for
-       * testing.
-       * 
- * - * bool agent_destruction_without_shutdown = 8; - */ - public boolean getAgentDestructionWithoutShutdown() { - return agentDestructionWithoutShutdown_; - } - /** - *
-       * If set, agents do not make an explicit Shutdown() call. Service will only
-       * find out about the disconnecte agent via stale heartbeats. Used for
-       * testing.
-       * 
- * - * bool agent_destruction_without_shutdown = 8; - */ - public Builder setAgentDestructionWithoutShutdown(boolean value) { - - agentDestructionWithoutShutdown_ = value; - onChanged(); - return this; - } - /** - *
-       * If set, agents do not make an explicit Shutdown() call. Service will only
-       * find out about the disconnecte agent via stale heartbeats. Used for
-       * testing.
-       * 
- * - * bool agent_destruction_without_shutdown = 8; - */ - public Builder clearAgentDestructionWithoutShutdown() { - - agentDestructionWithoutShutdown_ = false; - 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:tensorflow.CoordinationServiceConfig) - } - - // @@protoc_insertion_point(class_scope:tensorflow.CoordinationServiceConfig) - private static final org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig(); - } - - public static org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CoordinationServiceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CoordinationServiceConfig(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_CoordinationServiceConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_CoordinationServiceConfig_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2tensorflow/core/protobuf/coordination_" + - "config.proto\022\ntensorflow\"\235\002\n\031Coordinatio" + - "nServiceConfig\022\024\n\014service_type\030\001 \001(\t\022\026\n\016" + - "service_leader\030\002 \001(\t\022\033\n\023enable_health_ch" + - "eck\030\003 \001(\010\022&\n\036cluster_register_timeout_in" + - "_ms\030\004 \001(\003\022\037\n\027heartbeat_timeout_in_ms\030\005 \001" + - "(\003\022\030\n\020coordinated_jobs\030\006 \003(\t\022&\n\036shutdown" + - "_barrier_timeout_in_ms\030\007 \001(\003\022*\n\"agent_de" + - "struction_without_shutdown\030\010 \001(\010By\n org." + - "tensorflow.proto.distruntimeZUgithub.com" + - "/tensorflow/tensorflow/tensorflow/go/cor" + - "e/protobuf/for_core_protos_go_protob\006pro" + - "to3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_tensorflow_CoordinationServiceConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tensorflow_CoordinationServiceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_CoordinationServiceConfig_descriptor, - new java.lang.String[] { "ServiceType", "ServiceLeader", "EnableHealthCheck", "ClusterRegisterTimeoutInMs", "HeartbeatTimeoutInMs", "CoordinatedJobs", "ShutdownBarrierTimeoutInMs", "AgentDestructionWithoutShutdown", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/DistributedRuntimePayloads.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/DistributedRuntimePayloads.java deleted file mode 100644 index 1e9db2e1b7a..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/DistributedRuntimePayloads.java +++ /dev/null @@ -1,1691 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/distributed_runtime_payloads.proto - -package org.tensorflow.proto.distruntime; - -public final class DistributedRuntimePayloads { - private DistributedRuntimePayloads() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GrpcPayloadContainerOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.distributed_runtime.GrpcPayloadContainer) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, bytes> payloads = 1; - */ - int getPayloadsCount(); - /** - * map<string, bytes> payloads = 1; - */ - boolean containsPayloads( - java.lang.String key); - /** - * Use {@link #getPayloadsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getPayloads(); - /** - * map<string, bytes> payloads = 1; - */ - java.util.Map - getPayloadsMap(); - /** - * map<string, bytes> payloads = 1; - */ - - com.google.protobuf.ByteString getPayloadsOrDefault( - java.lang.String key, - com.google.protobuf.ByteString defaultValue); - /** - * map<string, bytes> payloads = 1; - */ - - com.google.protobuf.ByteString getPayloadsOrThrow( - java.lang.String key); - } - /** - *
-   * Used to serialize and transmit tensorflow::Status payloads through
-   * grpc::Status `error_details` since grpc::Status lacks payload API.
-   * TODO(b/204231601): Use GRPC API once supported.
-   * 
- * - * Protobuf type {@code tensorflow.distributed_runtime.GrpcPayloadContainer} - */ - public static final class GrpcPayloadContainer extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.distributed_runtime.GrpcPayloadContainer) - GrpcPayloadContainerOrBuilder { - private static final long serialVersionUID = 0L; - // Use GrpcPayloadContainer.newBuilder() to construct. - private GrpcPayloadContainer(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GrpcPayloadContainer() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GrpcPayloadContainer(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GrpcPayloadContainer( - 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)) { - payloads_ = com.google.protobuf.MapField.newMapField( - PayloadsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - payloads__ = input.readMessage( - PayloadsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - payloads_.getMutableMap().put( - payloads__.getKey(), payloads__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.distruntime.DistributedRuntimePayloads.internal_static_tensorflow_distributed_runtime_GrpcPayloadContainer_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetPayloads(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.distruntime.DistributedRuntimePayloads.internal_static_tensorflow_distributed_runtime_GrpcPayloadContainer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer.class, org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer.Builder.class); - } - - public static final int PAYLOADS_FIELD_NUMBER = 1; - private static final class PayloadsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protobuf.ByteString> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.tensorflow.proto.distruntime.DistributedRuntimePayloads.internal_static_tensorflow_distributed_runtime_GrpcPayloadContainer_PayloadsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.BYTES, - com.google.protobuf.ByteString.EMPTY); - } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.ByteString> payloads_; - private com.google.protobuf.MapField - internalGetPayloads() { - if (payloads_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PayloadsDefaultEntryHolder.defaultEntry); - } - return payloads_; - } - - public int getPayloadsCount() { - return internalGetPayloads().getMap().size(); - } - /** - * map<string, bytes> payloads = 1; - */ - - public boolean containsPayloads( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetPayloads().getMap().containsKey(key); - } - /** - * Use {@link #getPayloadsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getPayloads() { - return getPayloadsMap(); - } - /** - * map<string, bytes> payloads = 1; - */ - - public java.util.Map getPayloadsMap() { - return internalGetPayloads().getMap(); - } - /** - * map<string, bytes> payloads = 1; - */ - - public com.google.protobuf.ByteString getPayloadsOrDefault( - java.lang.String key, - com.google.protobuf.ByteString defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetPayloads().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, bytes> payloads = 1; - */ - - public com.google.protobuf.ByteString getPayloadsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetPayloads().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, - internalGetPayloads(), - PayloadsDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetPayloads().getMap().entrySet()) { - com.google.protobuf.MapEntry - payloads__ = PayloadsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, payloads__); - } - 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 org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer)) { - return super.equals(obj); - } - org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer other = (org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer) obj; - - if (!internalGetPayloads().equals( - other.internalGetPayloads())) 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 (!internalGetPayloads().getMap().isEmpty()) { - hash = (37 * hash) + PAYLOADS_FIELD_NUMBER; - hash = (53 * hash) + internalGetPayloads().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer 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 org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer 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 org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer 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(org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer 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; - } - /** - *
-     * Used to serialize and transmit tensorflow::Status payloads through
-     * grpc::Status `error_details` since grpc::Status lacks payload API.
-     * TODO(b/204231601): Use GRPC API once supported.
-     * 
- * - * Protobuf type {@code tensorflow.distributed_runtime.GrpcPayloadContainer} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.distributed_runtime.GrpcPayloadContainer) - org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.distruntime.DistributedRuntimePayloads.internal_static_tensorflow_distributed_runtime_GrpcPayloadContainer_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetPayloads(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutablePayloads(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.distruntime.DistributedRuntimePayloads.internal_static_tensorflow_distributed_runtime_GrpcPayloadContainer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer.class, org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer.Builder.class); - } - - // Construct using org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutablePayloads().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.distruntime.DistributedRuntimePayloads.internal_static_tensorflow_distributed_runtime_GrpcPayloadContainer_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer getDefaultInstanceForType() { - return org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer build() { - org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer buildPartial() { - org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer result = new org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer(this); - int from_bitField0_ = bitField0_; - result.payloads_ = internalGetPayloads(); - result.payloads_.makeImmutable(); - 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 org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer) { - return mergeFrom((org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer other) { - if (other == org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer.getDefaultInstance()) return this; - internalGetMutablePayloads().mergeFrom( - other.internalGetPayloads()); - 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 { - org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.ByteString> payloads_; - private com.google.protobuf.MapField - internalGetPayloads() { - if (payloads_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PayloadsDefaultEntryHolder.defaultEntry); - } - return payloads_; - } - private com.google.protobuf.MapField - internalGetMutablePayloads() { - onChanged();; - if (payloads_ == null) { - payloads_ = com.google.protobuf.MapField.newMapField( - PayloadsDefaultEntryHolder.defaultEntry); - } - if (!payloads_.isMutable()) { - payloads_ = payloads_.copy(); - } - return payloads_; - } - - public int getPayloadsCount() { - return internalGetPayloads().getMap().size(); - } - /** - * map<string, bytes> payloads = 1; - */ - - public boolean containsPayloads( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetPayloads().getMap().containsKey(key); - } - /** - * Use {@link #getPayloadsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getPayloads() { - return getPayloadsMap(); - } - /** - * map<string, bytes> payloads = 1; - */ - - public java.util.Map getPayloadsMap() { - return internalGetPayloads().getMap(); - } - /** - * map<string, bytes> payloads = 1; - */ - - public com.google.protobuf.ByteString getPayloadsOrDefault( - java.lang.String key, - com.google.protobuf.ByteString defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetPayloads().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, bytes> payloads = 1; - */ - - public com.google.protobuf.ByteString getPayloadsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetPayloads().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearPayloads() { - internalGetMutablePayloads().getMutableMap() - .clear(); - return this; - } - /** - * map<string, bytes> payloads = 1; - */ - - public Builder removePayloads( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutablePayloads().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutablePayloads() { - return internalGetMutablePayloads().getMutableMap(); - } - /** - * map<string, bytes> payloads = 1; - */ - public Builder putPayloads( - java.lang.String key, - com.google.protobuf.ByteString value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutablePayloads().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, bytes> payloads = 1; - */ - - public Builder putAllPayloads( - java.util.Map values) { - internalGetMutablePayloads().getMutableMap() - .putAll(values); - 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:tensorflow.distributed_runtime.GrpcPayloadContainer) - } - - // @@protoc_insertion_point(class_scope:tensorflow.distributed_runtime.GrpcPayloadContainer) - private static final org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer(); - } - - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GrpcPayloadContainer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GrpcPayloadContainer(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadContainer getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GrpcPayloadsLostOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.distributed_runtime.GrpcPayloadsLost) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * If included as a payload, this message flags the Status to have lost payloads
-   * during the GRPC transmission.
-   * URI: "type.googleapis.com/tensorflow.distributed_runtime.GrpcPayloadsLost"
-   * 
- * - * Protobuf type {@code tensorflow.distributed_runtime.GrpcPayloadsLost} - */ - public static final class GrpcPayloadsLost extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.distributed_runtime.GrpcPayloadsLost) - GrpcPayloadsLostOrBuilder { - private static final long serialVersionUID = 0L; - // Use GrpcPayloadsLost.newBuilder() to construct. - private GrpcPayloadsLost(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GrpcPayloadsLost() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GrpcPayloadsLost(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GrpcPayloadsLost( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.distruntime.DistributedRuntimePayloads.internal_static_tensorflow_distributed_runtime_GrpcPayloadsLost_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.distruntime.DistributedRuntimePayloads.internal_static_tensorflow_distributed_runtime_GrpcPayloadsLost_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost.class, org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost)) { - return super.equals(obj); - } - org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost other = (org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost 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 org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost 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 org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost 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(org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost 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; - } - /** - *
-     * If included as a payload, this message flags the Status to have lost payloads
-     * during the GRPC transmission.
-     * URI: "type.googleapis.com/tensorflow.distributed_runtime.GrpcPayloadsLost"
-     * 
- * - * Protobuf type {@code tensorflow.distributed_runtime.GrpcPayloadsLost} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.distributed_runtime.GrpcPayloadsLost) - org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLostOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.distruntime.DistributedRuntimePayloads.internal_static_tensorflow_distributed_runtime_GrpcPayloadsLost_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.distruntime.DistributedRuntimePayloads.internal_static_tensorflow_distributed_runtime_GrpcPayloadsLost_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost.class, org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost.Builder.class); - } - - // Construct using org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.distruntime.DistributedRuntimePayloads.internal_static_tensorflow_distributed_runtime_GrpcPayloadsLost_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost getDefaultInstanceForType() { - return org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost build() { - org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost buildPartial() { - org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost result = new org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost(this); - 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 org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost) { - return mergeFrom((org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost other) { - if (other == org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost.getDefaultInstance()) return this; - 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 { - org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:tensorflow.distributed_runtime.GrpcPayloadsLost) - } - - // @@protoc_insertion_point(class_scope:tensorflow.distributed_runtime.GrpcPayloadsLost) - private static final org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost(); - } - - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GrpcPayloadsLost parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GrpcPayloadsLost(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.DistributedRuntimePayloads.GrpcPayloadsLost getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkerPossiblyRestartedOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.distributed_runtime.WorkerPossiblyRestarted) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * If included as a payload, this message flags the Status to be a possible
-   * outcome of a worker restart.
-   * URI:
-   * "type.googleapis.com/tensorflow.distributed_runtime.WorkerPossiblyRestarted"
-   * 
- * - * Protobuf type {@code tensorflow.distributed_runtime.WorkerPossiblyRestarted} - */ - public static final class WorkerPossiblyRestarted extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.distributed_runtime.WorkerPossiblyRestarted) - WorkerPossiblyRestartedOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkerPossiblyRestarted.newBuilder() to construct. - private WorkerPossiblyRestarted(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkerPossiblyRestarted() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WorkerPossiblyRestarted(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkerPossiblyRestarted( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.distruntime.DistributedRuntimePayloads.internal_static_tensorflow_distributed_runtime_WorkerPossiblyRestarted_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.distruntime.DistributedRuntimePayloads.internal_static_tensorflow_distributed_runtime_WorkerPossiblyRestarted_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted.class, org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted)) { - return super.equals(obj); - } - org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted other = (org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted 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 org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted 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 org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted 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(org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted 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; - } - /** - *
-     * If included as a payload, this message flags the Status to be a possible
-     * outcome of a worker restart.
-     * URI:
-     * "type.googleapis.com/tensorflow.distributed_runtime.WorkerPossiblyRestarted"
-     * 
- * - * Protobuf type {@code tensorflow.distributed_runtime.WorkerPossiblyRestarted} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.distributed_runtime.WorkerPossiblyRestarted) - org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestartedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.distruntime.DistributedRuntimePayloads.internal_static_tensorflow_distributed_runtime_WorkerPossiblyRestarted_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.distruntime.DistributedRuntimePayloads.internal_static_tensorflow_distributed_runtime_WorkerPossiblyRestarted_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted.class, org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted.Builder.class); - } - - // Construct using org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.distruntime.DistributedRuntimePayloads.internal_static_tensorflow_distributed_runtime_WorkerPossiblyRestarted_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted getDefaultInstanceForType() { - return org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted build() { - org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted buildPartial() { - org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted result = new org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted(this); - 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 org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted) { - return mergeFrom((org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted other) { - if (other == org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted.getDefaultInstance()) return this; - 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 { - org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:tensorflow.distributed_runtime.WorkerPossiblyRestarted) - } - - // @@protoc_insertion_point(class_scope:tensorflow.distributed_runtime.WorkerPossiblyRestarted) - private static final org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted(); - } - - public static org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkerPossiblyRestarted parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkerPossiblyRestarted(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.DistributedRuntimePayloads.WorkerPossiblyRestarted getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_distributed_runtime_GrpcPayloadContainer_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_distributed_runtime_GrpcPayloadContainer_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_distributed_runtime_GrpcPayloadContainer_PayloadsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_distributed_runtime_GrpcPayloadContainer_PayloadsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_distributed_runtime_GrpcPayloadsLost_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_distributed_runtime_GrpcPayloadsLost_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_distributed_runtime_WorkerPossiblyRestarted_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_distributed_runtime_WorkerPossiblyRestarted_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n;tensorflow/core/protobuf/distributed_r" + - "untime_payloads.proto\022\036tensorflow.distri" + - "buted_runtime\"\235\001\n\024GrpcPayloadContainer\022T" + - "\n\010payloads\030\001 \003(\0132B.tensorflow.distribute" + - "d_runtime.GrpcPayloadContainer.PayloadsE" + - "ntry\032/\n\rPayloadsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + - "lue\030\002 \001(\014:\0028\001\"\022\n\020GrpcPayloadsLost\"\031\n\027Wor" + - "kerPossiblyRestartedB|\n org.tensorflow.p" + - "roto.distruntimeZUgithub.com/tensorflow/" + - "tensorflow/tensorflow/go/core/protobuf/f" + - "or_core_protos_go_proto\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_tensorflow_distributed_runtime_GrpcPayloadContainer_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tensorflow_distributed_runtime_GrpcPayloadContainer_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_distributed_runtime_GrpcPayloadContainer_descriptor, - new java.lang.String[] { "Payloads", }); - internal_static_tensorflow_distributed_runtime_GrpcPayloadContainer_PayloadsEntry_descriptor = - internal_static_tensorflow_distributed_runtime_GrpcPayloadContainer_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_distributed_runtime_GrpcPayloadContainer_PayloadsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_distributed_runtime_GrpcPayloadContainer_PayloadsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_tensorflow_distributed_runtime_GrpcPayloadsLost_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_tensorflow_distributed_runtime_GrpcPayloadsLost_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_distributed_runtime_GrpcPayloadsLost_descriptor, - new java.lang.String[] { }); - internal_static_tensorflow_distributed_runtime_WorkerPossiblyRestarted_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_tensorflow_distributed_runtime_WorkerPossiblyRestarted_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_distributed_runtime_WorkerPossiblyRestarted_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/JobDeviceFilters.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/JobDeviceFilters.java deleted file mode 100644 index bbc7a6542be..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/JobDeviceFilters.java +++ /dev/null @@ -1,902 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/device_filters.proto - -package org.tensorflow.proto.distruntime; - -/** - *
- * Defines the device filters for tasks in a job.
- * 
- * - * Protobuf type {@code tensorflow.JobDeviceFilters} - */ -public final class JobDeviceFilters extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.JobDeviceFilters) - JobDeviceFiltersOrBuilder { -private static final long serialVersionUID = 0L; - // Use JobDeviceFilters.newBuilder() to construct. - private JobDeviceFilters(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private JobDeviceFilters() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new JobDeviceFilters(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private JobDeviceFilters( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - tasks_ = com.google.protobuf.MapField.newMapField( - TasksDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - tasks__ = input.readMessage( - TasksDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - tasks_.getMutableMap().put( - tasks__.getKey(), tasks__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.distruntime.DeviceFiltersProtos.internal_static_tensorflow_JobDeviceFilters_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetTasks(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.distruntime.DeviceFiltersProtos.internal_static_tensorflow_JobDeviceFilters_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.distruntime.JobDeviceFilters.class, org.tensorflow.proto.distruntime.JobDeviceFilters.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * The name of this job.
-   * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - *
-   * The name of this job.
-   * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TASKS_FIELD_NUMBER = 2; - private static final class TasksDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, org.tensorflow.proto.distruntime.TaskDeviceFilters> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.tensorflow.proto.distruntime.DeviceFiltersProtos.internal_static_tensorflow_JobDeviceFilters_TasksEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.tensorflow.proto.distruntime.TaskDeviceFilters.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.Integer, org.tensorflow.proto.distruntime.TaskDeviceFilters> tasks_; - private com.google.protobuf.MapField - internalGetTasks() { - if (tasks_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TasksDefaultEntryHolder.defaultEntry); - } - return tasks_; - } - - public int getTasksCount() { - return internalGetTasks().getMap().size(); - } - /** - *
-   * Mapping from task ID to task device filters.
-   * 
- * - * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; - */ - - public boolean containsTasks( - int key) { - - return internalGetTasks().getMap().containsKey(key); - } - /** - * Use {@link #getTasksMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getTasks() { - return getTasksMap(); - } - /** - *
-   * Mapping from task ID to task device filters.
-   * 
- * - * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; - */ - - public java.util.Map getTasksMap() { - return internalGetTasks().getMap(); - } - /** - *
-   * Mapping from task ID to task device filters.
-   * 
- * - * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; - */ - - public org.tensorflow.proto.distruntime.TaskDeviceFilters getTasksOrDefault( - int key, - org.tensorflow.proto.distruntime.TaskDeviceFilters defaultValue) { - - java.util.Map map = - internalGetTasks().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-   * Mapping from task ID to task device filters.
-   * 
- * - * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; - */ - - public org.tensorflow.proto.distruntime.TaskDeviceFilters getTasksOrThrow( - int key) { - - java.util.Map map = - internalGetTasks().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 { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetTasks(), - TasksDefaultEntryHolder.defaultEntry, - 2); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - for (java.util.Map.Entry entry - : internalGetTasks().getMap().entrySet()) { - com.google.protobuf.MapEntry - tasks__ = TasksDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, tasks__); - } - 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 org.tensorflow.proto.distruntime.JobDeviceFilters)) { - return super.equals(obj); - } - org.tensorflow.proto.distruntime.JobDeviceFilters other = (org.tensorflow.proto.distruntime.JobDeviceFilters) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!internalGetTasks().equals( - other.internalGetTasks())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (!internalGetTasks().getMap().isEmpty()) { - hash = (37 * hash) + TASKS_FIELD_NUMBER; - hash = (53 * hash) + internalGetTasks().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.distruntime.JobDeviceFilters parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.JobDeviceFilters parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.JobDeviceFilters parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.JobDeviceFilters parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.JobDeviceFilters parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.JobDeviceFilters parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.JobDeviceFilters parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.JobDeviceFilters 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 org.tensorflow.proto.distruntime.JobDeviceFilters parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.JobDeviceFilters 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 org.tensorflow.proto.distruntime.JobDeviceFilters parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.JobDeviceFilters 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(org.tensorflow.proto.distruntime.JobDeviceFilters 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; - } - /** - *
-   * Defines the device filters for tasks in a job.
-   * 
- * - * Protobuf type {@code tensorflow.JobDeviceFilters} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.JobDeviceFilters) - org.tensorflow.proto.distruntime.JobDeviceFiltersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.distruntime.DeviceFiltersProtos.internal_static_tensorflow_JobDeviceFilters_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetTasks(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableTasks(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.distruntime.DeviceFiltersProtos.internal_static_tensorflow_JobDeviceFilters_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.distruntime.JobDeviceFilters.class, org.tensorflow.proto.distruntime.JobDeviceFilters.Builder.class); - } - - // Construct using org.tensorflow.proto.distruntime.JobDeviceFilters.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - internalGetMutableTasks().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.distruntime.DeviceFiltersProtos.internal_static_tensorflow_JobDeviceFilters_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.JobDeviceFilters getDefaultInstanceForType() { - return org.tensorflow.proto.distruntime.JobDeviceFilters.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.JobDeviceFilters build() { - org.tensorflow.proto.distruntime.JobDeviceFilters result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.JobDeviceFilters buildPartial() { - org.tensorflow.proto.distruntime.JobDeviceFilters result = new org.tensorflow.proto.distruntime.JobDeviceFilters(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.tasks_ = internalGetTasks(); - result.tasks_.makeImmutable(); - 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 org.tensorflow.proto.distruntime.JobDeviceFilters) { - return mergeFrom((org.tensorflow.proto.distruntime.JobDeviceFilters)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.distruntime.JobDeviceFilters other) { - if (other == org.tensorflow.proto.distruntime.JobDeviceFilters.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - internalGetMutableTasks().mergeFrom( - other.internalGetTasks()); - 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 { - org.tensorflow.proto.distruntime.JobDeviceFilters parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.distruntime.JobDeviceFilters) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * The name of this job.
-     * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name of this job.
-     * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name of this job.
-     * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of this job.
-     * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name of this job.
-     * 
- * - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, org.tensorflow.proto.distruntime.TaskDeviceFilters> tasks_; - private com.google.protobuf.MapField - internalGetTasks() { - if (tasks_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TasksDefaultEntryHolder.defaultEntry); - } - return tasks_; - } - private com.google.protobuf.MapField - internalGetMutableTasks() { - onChanged();; - if (tasks_ == null) { - tasks_ = com.google.protobuf.MapField.newMapField( - TasksDefaultEntryHolder.defaultEntry); - } - if (!tasks_.isMutable()) { - tasks_ = tasks_.copy(); - } - return tasks_; - } - - public int getTasksCount() { - return internalGetTasks().getMap().size(); - } - /** - *
-     * Mapping from task ID to task device filters.
-     * 
- * - * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; - */ - - public boolean containsTasks( - int key) { - - return internalGetTasks().getMap().containsKey(key); - } - /** - * Use {@link #getTasksMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getTasks() { - return getTasksMap(); - } - /** - *
-     * Mapping from task ID to task device filters.
-     * 
- * - * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; - */ - - public java.util.Map getTasksMap() { - return internalGetTasks().getMap(); - } - /** - *
-     * Mapping from task ID to task device filters.
-     * 
- * - * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; - */ - - public org.tensorflow.proto.distruntime.TaskDeviceFilters getTasksOrDefault( - int key, - org.tensorflow.proto.distruntime.TaskDeviceFilters defaultValue) { - - java.util.Map map = - internalGetTasks().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Mapping from task ID to task device filters.
-     * 
- * - * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; - */ - - public org.tensorflow.proto.distruntime.TaskDeviceFilters getTasksOrThrow( - int key) { - - java.util.Map map = - internalGetTasks().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearTasks() { - internalGetMutableTasks().getMutableMap() - .clear(); - return this; - } - /** - *
-     * Mapping from task ID to task device filters.
-     * 
- * - * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; - */ - - public Builder removeTasks( - int key) { - - internalGetMutableTasks().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableTasks() { - return internalGetMutableTasks().getMutableMap(); - } - /** - *
-     * Mapping from task ID to task device filters.
-     * 
- * - * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; - */ - public Builder putTasks( - int key, - org.tensorflow.proto.distruntime.TaskDeviceFilters value) { - - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableTasks().getMutableMap() - .put(key, value); - return this; - } - /** - *
-     * Mapping from task ID to task device filters.
-     * 
- * - * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; - */ - - public Builder putAllTasks( - java.util.Map values) { - internalGetMutableTasks().getMutableMap() - .putAll(values); - 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:tensorflow.JobDeviceFilters) - } - - // @@protoc_insertion_point(class_scope:tensorflow.JobDeviceFilters) - private static final org.tensorflow.proto.distruntime.JobDeviceFilters DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.distruntime.JobDeviceFilters(); - } - - public static org.tensorflow.proto.distruntime.JobDeviceFilters getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobDeviceFilters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new JobDeviceFilters(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.JobDeviceFilters getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ServerDef.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ServerDef.java deleted file mode 100644 index 068264c171e..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ServerDef.java +++ /dev/null @@ -1,1611 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/tensorflow_server.proto - -package org.tensorflow.proto.distruntime; - -/** - *
- * Defines the configuration of a single TensorFlow server.
- * 
- * - * Protobuf type {@code tensorflow.ServerDef} - */ -public final class ServerDef extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.ServerDef) - ServerDefOrBuilder { -private static final long serialVersionUID = 0L; - // Use ServerDef.newBuilder() to construct. - private ServerDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ServerDef() { - jobName_ = ""; - protocol_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ServerDef(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ServerDef( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.tensorflow.proto.distruntime.ClusterDef.Builder subBuilder = null; - if (cluster_ != null) { - subBuilder = cluster_.toBuilder(); - } - cluster_ = input.readMessage(org.tensorflow.proto.distruntime.ClusterDef.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cluster_); - cluster_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - jobName_ = s; - break; - } - case 24: { - - taskIndex_ = input.readInt32(); - break; - } - case 34: { - org.tensorflow.proto.framework.ConfigProto.Builder subBuilder = null; - if (defaultSessionConfig_ != null) { - subBuilder = defaultSessionConfig_.toBuilder(); - } - defaultSessionConfig_ = input.readMessage(org.tensorflow.proto.framework.ConfigProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(defaultSessionConfig_); - defaultSessionConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - protocol_ = s; - break; - } - case 48: { - - port_ = input.readInt32(); - break; - } - case 58: { - org.tensorflow.proto.distruntime.ClusterDeviceFilters.Builder subBuilder = null; - if (clusterDeviceFilters_ != null) { - subBuilder = clusterDeviceFilters_.toBuilder(); - } - clusterDeviceFilters_ = input.readMessage(org.tensorflow.proto.distruntime.ClusterDeviceFilters.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(clusterDeviceFilters_); - clusterDeviceFilters_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.distruntime.ServerProtos.internal_static_tensorflow_ServerDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.distruntime.ServerProtos.internal_static_tensorflow_ServerDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.distruntime.ServerDef.class, org.tensorflow.proto.distruntime.ServerDef.Builder.class); - } - - public static final int CLUSTER_FIELD_NUMBER = 1; - private org.tensorflow.proto.distruntime.ClusterDef cluster_; - /** - *
-   * The cluster of which this server is a member.
-   * 
- * - * .tensorflow.ClusterDef cluster = 1; - */ - public boolean hasCluster() { - return cluster_ != null; - } - /** - *
-   * The cluster of which this server is a member.
-   * 
- * - * .tensorflow.ClusterDef cluster = 1; - */ - public org.tensorflow.proto.distruntime.ClusterDef getCluster() { - return cluster_ == null ? org.tensorflow.proto.distruntime.ClusterDef.getDefaultInstance() : cluster_; - } - /** - *
-   * The cluster of which this server is a member.
-   * 
- * - * .tensorflow.ClusterDef cluster = 1; - */ - public org.tensorflow.proto.distruntime.ClusterDefOrBuilder getClusterOrBuilder() { - return getCluster(); - } - - public static final int JOB_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object jobName_; - /** - *
-   * The name of the job of which this server is a member.
-   * NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field
-   * that matches this name.
-   * 
- * - * string job_name = 2; - */ - public java.lang.String getJobName() { - java.lang.Object ref = jobName_; - 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(); - jobName_ = s; - return s; - } - } - /** - *
-   * The name of the job of which this server is a member.
-   * NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field
-   * that matches this name.
-   * 
- * - * string job_name = 2; - */ - public com.google.protobuf.ByteString - getJobNameBytes() { - java.lang.Object ref = jobName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - jobName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TASK_INDEX_FIELD_NUMBER = 3; - private int taskIndex_; - /** - *
-   * The task index of this server in its job.
-   * NOTE: The `cluster` field must contain a `JobDef` with a matching `name`
-   * and a mapping in its `tasks` field for this index.
-   * 
- * - * int32 task_index = 3; - */ - public int getTaskIndex() { - return taskIndex_; - } - - public static final int DEFAULT_SESSION_CONFIG_FIELD_NUMBER = 4; - private org.tensorflow.proto.framework.ConfigProto defaultSessionConfig_; - /** - *
-   * The default configuration for sessions that run on this server.
-   * 
- * - * .tensorflow.ConfigProto default_session_config = 4; - */ - public boolean hasDefaultSessionConfig() { - return defaultSessionConfig_ != null; - } - /** - *
-   * The default configuration for sessions that run on this server.
-   * 
- * - * .tensorflow.ConfigProto default_session_config = 4; - */ - public org.tensorflow.proto.framework.ConfigProto getDefaultSessionConfig() { - return defaultSessionConfig_ == null ? org.tensorflow.proto.framework.ConfigProto.getDefaultInstance() : defaultSessionConfig_; - } - /** - *
-   * The default configuration for sessions that run on this server.
-   * 
- * - * .tensorflow.ConfigProto default_session_config = 4; - */ - public org.tensorflow.proto.framework.ConfigProtoOrBuilder getDefaultSessionConfigOrBuilder() { - return getDefaultSessionConfig(); - } - - public static final int PROTOCOL_FIELD_NUMBER = 5; - private volatile java.lang.Object protocol_; - /** - *
-   * The protocol to be used by this server.
-   * Acceptable values include: "grpc", "grpc+verbs".
-   * 
- * - * string protocol = 5; - */ - public java.lang.String getProtocol() { - java.lang.Object ref = protocol_; - 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(); - protocol_ = s; - return s; - } - } - /** - *
-   * The protocol to be used by this server.
-   * Acceptable values include: "grpc", "grpc+verbs".
-   * 
- * - * string protocol = 5; - */ - public com.google.protobuf.ByteString - getProtocolBytes() { - java.lang.Object ref = protocol_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - protocol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PORT_FIELD_NUMBER = 6; - private int port_; - /** - *
-   * The server port. If not set, then we identify the port from the job_name.
-   * 
- * - * int32 port = 6; - */ - public int getPort() { - return port_; - } - - public static final int CLUSTER_DEVICE_FILTERS_FIELD_NUMBER = 7; - private org.tensorflow.proto.distruntime.ClusterDeviceFilters clusterDeviceFilters_; - /** - *
-   * Device filters for remote tasks in the cluster.
-   * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
-   * 
- * - * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; - */ - public boolean hasClusterDeviceFilters() { - return clusterDeviceFilters_ != null; - } - /** - *
-   * Device filters for remote tasks in the cluster.
-   * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
-   * 
- * - * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; - */ - public org.tensorflow.proto.distruntime.ClusterDeviceFilters getClusterDeviceFilters() { - return clusterDeviceFilters_ == null ? org.tensorflow.proto.distruntime.ClusterDeviceFilters.getDefaultInstance() : clusterDeviceFilters_; - } - /** - *
-   * Device filters for remote tasks in the cluster.
-   * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
-   * 
- * - * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; - */ - public org.tensorflow.proto.distruntime.ClusterDeviceFiltersOrBuilder getClusterDeviceFiltersOrBuilder() { - return getClusterDeviceFilters(); - } - - 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 (cluster_ != null) { - output.writeMessage(1, getCluster()); - } - if (!getJobNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobName_); - } - if (taskIndex_ != 0) { - output.writeInt32(3, taskIndex_); - } - if (defaultSessionConfig_ != null) { - output.writeMessage(4, getDefaultSessionConfig()); - } - if (!getProtocolBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, protocol_); - } - if (port_ != 0) { - output.writeInt32(6, port_); - } - if (clusterDeviceFilters_ != null) { - output.writeMessage(7, getClusterDeviceFilters()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (cluster_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCluster()); - } - if (!getJobNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobName_); - } - if (taskIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, taskIndex_); - } - if (defaultSessionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getDefaultSessionConfig()); - } - if (!getProtocolBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, protocol_); - } - if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, port_); - } - if (clusterDeviceFilters_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getClusterDeviceFilters()); - } - 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 org.tensorflow.proto.distruntime.ServerDef)) { - return super.equals(obj); - } - org.tensorflow.proto.distruntime.ServerDef other = (org.tensorflow.proto.distruntime.ServerDef) obj; - - if (hasCluster() != other.hasCluster()) return false; - if (hasCluster()) { - if (!getCluster() - .equals(other.getCluster())) return false; - } - if (!getJobName() - .equals(other.getJobName())) return false; - if (getTaskIndex() - != other.getTaskIndex()) return false; - if (hasDefaultSessionConfig() != other.hasDefaultSessionConfig()) return false; - if (hasDefaultSessionConfig()) { - if (!getDefaultSessionConfig() - .equals(other.getDefaultSessionConfig())) return false; - } - if (!getProtocol() - .equals(other.getProtocol())) return false; - if (getPort() - != other.getPort()) return false; - if (hasClusterDeviceFilters() != other.hasClusterDeviceFilters()) return false; - if (hasClusterDeviceFilters()) { - if (!getClusterDeviceFilters() - .equals(other.getClusterDeviceFilters())) 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 (hasCluster()) { - hash = (37 * hash) + CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getCluster().hashCode(); - } - hash = (37 * hash) + JOB_NAME_FIELD_NUMBER; - hash = (53 * hash) + getJobName().hashCode(); - hash = (37 * hash) + TASK_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getTaskIndex(); - if (hasDefaultSessionConfig()) { - hash = (37 * hash) + DEFAULT_SESSION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDefaultSessionConfig().hashCode(); - } - hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; - hash = (53 * hash) + getProtocol().hashCode(); - hash = (37 * hash) + PORT_FIELD_NUMBER; - hash = (53 * hash) + getPort(); - if (hasClusterDeviceFilters()) { - hash = (37 * hash) + CLUSTER_DEVICE_FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getClusterDeviceFilters().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.distruntime.ServerDef parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.ServerDef parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.ServerDef parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.ServerDef parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.ServerDef parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.ServerDef parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.ServerDef parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.ServerDef 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 org.tensorflow.proto.distruntime.ServerDef parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.ServerDef 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 org.tensorflow.proto.distruntime.ServerDef parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.ServerDef 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(org.tensorflow.proto.distruntime.ServerDef 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; - } - /** - *
-   * Defines the configuration of a single TensorFlow server.
-   * 
- * - * Protobuf type {@code tensorflow.ServerDef} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.ServerDef) - org.tensorflow.proto.distruntime.ServerDefOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.distruntime.ServerProtos.internal_static_tensorflow_ServerDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.distruntime.ServerProtos.internal_static_tensorflow_ServerDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.distruntime.ServerDef.class, org.tensorflow.proto.distruntime.ServerDef.Builder.class); - } - - // Construct using org.tensorflow.proto.distruntime.ServerDef.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (clusterBuilder_ == null) { - cluster_ = null; - } else { - cluster_ = null; - clusterBuilder_ = null; - } - jobName_ = ""; - - taskIndex_ = 0; - - if (defaultSessionConfigBuilder_ == null) { - defaultSessionConfig_ = null; - } else { - defaultSessionConfig_ = null; - defaultSessionConfigBuilder_ = null; - } - protocol_ = ""; - - port_ = 0; - - if (clusterDeviceFiltersBuilder_ == null) { - clusterDeviceFilters_ = null; - } else { - clusterDeviceFilters_ = null; - clusterDeviceFiltersBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.distruntime.ServerProtos.internal_static_tensorflow_ServerDef_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.ServerDef getDefaultInstanceForType() { - return org.tensorflow.proto.distruntime.ServerDef.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.ServerDef build() { - org.tensorflow.proto.distruntime.ServerDef result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.ServerDef buildPartial() { - org.tensorflow.proto.distruntime.ServerDef result = new org.tensorflow.proto.distruntime.ServerDef(this); - if (clusterBuilder_ == null) { - result.cluster_ = cluster_; - } else { - result.cluster_ = clusterBuilder_.build(); - } - result.jobName_ = jobName_; - result.taskIndex_ = taskIndex_; - if (defaultSessionConfigBuilder_ == null) { - result.defaultSessionConfig_ = defaultSessionConfig_; - } else { - result.defaultSessionConfig_ = defaultSessionConfigBuilder_.build(); - } - result.protocol_ = protocol_; - result.port_ = port_; - if (clusterDeviceFiltersBuilder_ == null) { - result.clusterDeviceFilters_ = clusterDeviceFilters_; - } else { - result.clusterDeviceFilters_ = clusterDeviceFiltersBuilder_.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 org.tensorflow.proto.distruntime.ServerDef) { - return mergeFrom((org.tensorflow.proto.distruntime.ServerDef)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.distruntime.ServerDef other) { - if (other == org.tensorflow.proto.distruntime.ServerDef.getDefaultInstance()) return this; - if (other.hasCluster()) { - mergeCluster(other.getCluster()); - } - if (!other.getJobName().isEmpty()) { - jobName_ = other.jobName_; - onChanged(); - } - if (other.getTaskIndex() != 0) { - setTaskIndex(other.getTaskIndex()); - } - if (other.hasDefaultSessionConfig()) { - mergeDefaultSessionConfig(other.getDefaultSessionConfig()); - } - if (!other.getProtocol().isEmpty()) { - protocol_ = other.protocol_; - onChanged(); - } - if (other.getPort() != 0) { - setPort(other.getPort()); - } - if (other.hasClusterDeviceFilters()) { - mergeClusterDeviceFilters(other.getClusterDeviceFilters()); - } - 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 { - org.tensorflow.proto.distruntime.ServerDef parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.distruntime.ServerDef) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private org.tensorflow.proto.distruntime.ClusterDef cluster_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.distruntime.ClusterDef, org.tensorflow.proto.distruntime.ClusterDef.Builder, org.tensorflow.proto.distruntime.ClusterDefOrBuilder> clusterBuilder_; - /** - *
-     * The cluster of which this server is a member.
-     * 
- * - * .tensorflow.ClusterDef cluster = 1; - */ - public boolean hasCluster() { - return clusterBuilder_ != null || cluster_ != null; - } - /** - *
-     * The cluster of which this server is a member.
-     * 
- * - * .tensorflow.ClusterDef cluster = 1; - */ - public org.tensorflow.proto.distruntime.ClusterDef getCluster() { - if (clusterBuilder_ == null) { - return cluster_ == null ? org.tensorflow.proto.distruntime.ClusterDef.getDefaultInstance() : cluster_; - } else { - return clusterBuilder_.getMessage(); - } - } - /** - *
-     * The cluster of which this server is a member.
-     * 
- * - * .tensorflow.ClusterDef cluster = 1; - */ - public Builder setCluster(org.tensorflow.proto.distruntime.ClusterDef value) { - if (clusterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cluster_ = value; - onChanged(); - } else { - clusterBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The cluster of which this server is a member.
-     * 
- * - * .tensorflow.ClusterDef cluster = 1; - */ - public Builder setCluster( - org.tensorflow.proto.distruntime.ClusterDef.Builder builderForValue) { - if (clusterBuilder_ == null) { - cluster_ = builderForValue.build(); - onChanged(); - } else { - clusterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The cluster of which this server is a member.
-     * 
- * - * .tensorflow.ClusterDef cluster = 1; - */ - public Builder mergeCluster(org.tensorflow.proto.distruntime.ClusterDef value) { - if (clusterBuilder_ == null) { - if (cluster_ != null) { - cluster_ = - org.tensorflow.proto.distruntime.ClusterDef.newBuilder(cluster_).mergeFrom(value).buildPartial(); - } else { - cluster_ = value; - } - onChanged(); - } else { - clusterBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The cluster of which this server is a member.
-     * 
- * - * .tensorflow.ClusterDef cluster = 1; - */ - public Builder clearCluster() { - if (clusterBuilder_ == null) { - cluster_ = null; - onChanged(); - } else { - cluster_ = null; - clusterBuilder_ = null; - } - - return this; - } - /** - *
-     * The cluster of which this server is a member.
-     * 
- * - * .tensorflow.ClusterDef cluster = 1; - */ - public org.tensorflow.proto.distruntime.ClusterDef.Builder getClusterBuilder() { - - onChanged(); - return getClusterFieldBuilder().getBuilder(); - } - /** - *
-     * The cluster of which this server is a member.
-     * 
- * - * .tensorflow.ClusterDef cluster = 1; - */ - public org.tensorflow.proto.distruntime.ClusterDefOrBuilder getClusterOrBuilder() { - if (clusterBuilder_ != null) { - return clusterBuilder_.getMessageOrBuilder(); - } else { - return cluster_ == null ? - org.tensorflow.proto.distruntime.ClusterDef.getDefaultInstance() : cluster_; - } - } - /** - *
-     * The cluster of which this server is a member.
-     * 
- * - * .tensorflow.ClusterDef cluster = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.distruntime.ClusterDef, org.tensorflow.proto.distruntime.ClusterDef.Builder, org.tensorflow.proto.distruntime.ClusterDefOrBuilder> - getClusterFieldBuilder() { - if (clusterBuilder_ == null) { - clusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.distruntime.ClusterDef, org.tensorflow.proto.distruntime.ClusterDef.Builder, org.tensorflow.proto.distruntime.ClusterDefOrBuilder>( - getCluster(), - getParentForChildren(), - isClean()); - cluster_ = null; - } - return clusterBuilder_; - } - - private java.lang.Object jobName_ = ""; - /** - *
-     * The name of the job of which this server is a member.
-     * NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field
-     * that matches this name.
-     * 
- * - * string job_name = 2; - */ - public java.lang.String getJobName() { - java.lang.Object ref = jobName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name of the job of which this server is a member.
-     * NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field
-     * that matches this name.
-     * 
- * - * string job_name = 2; - */ - public com.google.protobuf.ByteString - getJobNameBytes() { - java.lang.Object ref = jobName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - jobName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name of the job of which this server is a member.
-     * NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field
-     * that matches this name.
-     * 
- * - * string job_name = 2; - */ - public Builder setJobName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobName_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of the job of which this server is a member.
-     * NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field
-     * that matches this name.
-     * 
- * - * string job_name = 2; - */ - public Builder clearJobName() { - - jobName_ = getDefaultInstance().getJobName(); - onChanged(); - return this; - } - /** - *
-     * The name of the job of which this server is a member.
-     * NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field
-     * that matches this name.
-     * 
- * - * string job_name = 2; - */ - public Builder setJobNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobName_ = value; - onChanged(); - return this; - } - - private int taskIndex_ ; - /** - *
-     * The task index of this server in its job.
-     * NOTE: The `cluster` field must contain a `JobDef` with a matching `name`
-     * and a mapping in its `tasks` field for this index.
-     * 
- * - * int32 task_index = 3; - */ - public int getTaskIndex() { - return taskIndex_; - } - /** - *
-     * The task index of this server in its job.
-     * NOTE: The `cluster` field must contain a `JobDef` with a matching `name`
-     * and a mapping in its `tasks` field for this index.
-     * 
- * - * int32 task_index = 3; - */ - public Builder setTaskIndex(int value) { - - taskIndex_ = value; - onChanged(); - return this; - } - /** - *
-     * The task index of this server in its job.
-     * NOTE: The `cluster` field must contain a `JobDef` with a matching `name`
-     * and a mapping in its `tasks` field for this index.
-     * 
- * - * int32 task_index = 3; - */ - public Builder clearTaskIndex() { - - taskIndex_ = 0; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.ConfigProto defaultSessionConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.ConfigProto, org.tensorflow.proto.framework.ConfigProto.Builder, org.tensorflow.proto.framework.ConfigProtoOrBuilder> defaultSessionConfigBuilder_; - /** - *
-     * The default configuration for sessions that run on this server.
-     * 
- * - * .tensorflow.ConfigProto default_session_config = 4; - */ - public boolean hasDefaultSessionConfig() { - return defaultSessionConfigBuilder_ != null || defaultSessionConfig_ != null; - } - /** - *
-     * The default configuration for sessions that run on this server.
-     * 
- * - * .tensorflow.ConfigProto default_session_config = 4; - */ - public org.tensorflow.proto.framework.ConfigProto getDefaultSessionConfig() { - if (defaultSessionConfigBuilder_ == null) { - return defaultSessionConfig_ == null ? org.tensorflow.proto.framework.ConfigProto.getDefaultInstance() : defaultSessionConfig_; - } else { - return defaultSessionConfigBuilder_.getMessage(); - } - } - /** - *
-     * The default configuration for sessions that run on this server.
-     * 
- * - * .tensorflow.ConfigProto default_session_config = 4; - */ - public Builder setDefaultSessionConfig(org.tensorflow.proto.framework.ConfigProto value) { - if (defaultSessionConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - defaultSessionConfig_ = value; - onChanged(); - } else { - defaultSessionConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The default configuration for sessions that run on this server.
-     * 
- * - * .tensorflow.ConfigProto default_session_config = 4; - */ - public Builder setDefaultSessionConfig( - org.tensorflow.proto.framework.ConfigProto.Builder builderForValue) { - if (defaultSessionConfigBuilder_ == null) { - defaultSessionConfig_ = builderForValue.build(); - onChanged(); - } else { - defaultSessionConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The default configuration for sessions that run on this server.
-     * 
- * - * .tensorflow.ConfigProto default_session_config = 4; - */ - public Builder mergeDefaultSessionConfig(org.tensorflow.proto.framework.ConfigProto value) { - if (defaultSessionConfigBuilder_ == null) { - if (defaultSessionConfig_ != null) { - defaultSessionConfig_ = - org.tensorflow.proto.framework.ConfigProto.newBuilder(defaultSessionConfig_).mergeFrom(value).buildPartial(); - } else { - defaultSessionConfig_ = value; - } - onChanged(); - } else { - defaultSessionConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The default configuration for sessions that run on this server.
-     * 
- * - * .tensorflow.ConfigProto default_session_config = 4; - */ - public Builder clearDefaultSessionConfig() { - if (defaultSessionConfigBuilder_ == null) { - defaultSessionConfig_ = null; - onChanged(); - } else { - defaultSessionConfig_ = null; - defaultSessionConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * The default configuration for sessions that run on this server.
-     * 
- * - * .tensorflow.ConfigProto default_session_config = 4; - */ - public org.tensorflow.proto.framework.ConfigProto.Builder getDefaultSessionConfigBuilder() { - - onChanged(); - return getDefaultSessionConfigFieldBuilder().getBuilder(); - } - /** - *
-     * The default configuration for sessions that run on this server.
-     * 
- * - * .tensorflow.ConfigProto default_session_config = 4; - */ - public org.tensorflow.proto.framework.ConfigProtoOrBuilder getDefaultSessionConfigOrBuilder() { - if (defaultSessionConfigBuilder_ != null) { - return defaultSessionConfigBuilder_.getMessageOrBuilder(); - } else { - return defaultSessionConfig_ == null ? - org.tensorflow.proto.framework.ConfigProto.getDefaultInstance() : defaultSessionConfig_; - } - } - /** - *
-     * The default configuration for sessions that run on this server.
-     * 
- * - * .tensorflow.ConfigProto default_session_config = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.ConfigProto, org.tensorflow.proto.framework.ConfigProto.Builder, org.tensorflow.proto.framework.ConfigProtoOrBuilder> - getDefaultSessionConfigFieldBuilder() { - if (defaultSessionConfigBuilder_ == null) { - defaultSessionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.ConfigProto, org.tensorflow.proto.framework.ConfigProto.Builder, org.tensorflow.proto.framework.ConfigProtoOrBuilder>( - getDefaultSessionConfig(), - getParentForChildren(), - isClean()); - defaultSessionConfig_ = null; - } - return defaultSessionConfigBuilder_; - } - - private java.lang.Object protocol_ = ""; - /** - *
-     * The protocol to be used by this server.
-     * Acceptable values include: "grpc", "grpc+verbs".
-     * 
- * - * string protocol = 5; - */ - public java.lang.String getProtocol() { - java.lang.Object ref = protocol_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - protocol_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The protocol to be used by this server.
-     * Acceptable values include: "grpc", "grpc+verbs".
-     * 
- * - * string protocol = 5; - */ - public com.google.protobuf.ByteString - getProtocolBytes() { - java.lang.Object ref = protocol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - protocol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The protocol to be used by this server.
-     * Acceptable values include: "grpc", "grpc+verbs".
-     * 
- * - * string protocol = 5; - */ - public Builder setProtocol( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - protocol_ = value; - onChanged(); - return this; - } - /** - *
-     * The protocol to be used by this server.
-     * Acceptable values include: "grpc", "grpc+verbs".
-     * 
- * - * string protocol = 5; - */ - public Builder clearProtocol() { - - protocol_ = getDefaultInstance().getProtocol(); - onChanged(); - return this; - } - /** - *
-     * The protocol to be used by this server.
-     * Acceptable values include: "grpc", "grpc+verbs".
-     * 
- * - * string protocol = 5; - */ - public Builder setProtocolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - protocol_ = value; - onChanged(); - return this; - } - - private int port_ ; - /** - *
-     * The server port. If not set, then we identify the port from the job_name.
-     * 
- * - * int32 port = 6; - */ - public int getPort() { - return port_; - } - /** - *
-     * The server port. If not set, then we identify the port from the job_name.
-     * 
- * - * int32 port = 6; - */ - public Builder setPort(int value) { - - port_ = value; - onChanged(); - return this; - } - /** - *
-     * The server port. If not set, then we identify the port from the job_name.
-     * 
- * - * int32 port = 6; - */ - public Builder clearPort() { - - port_ = 0; - onChanged(); - return this; - } - - private org.tensorflow.proto.distruntime.ClusterDeviceFilters clusterDeviceFilters_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.distruntime.ClusterDeviceFilters, org.tensorflow.proto.distruntime.ClusterDeviceFilters.Builder, org.tensorflow.proto.distruntime.ClusterDeviceFiltersOrBuilder> clusterDeviceFiltersBuilder_; - /** - *
-     * Device filters for remote tasks in the cluster.
-     * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
-     * 
- * - * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; - */ - public boolean hasClusterDeviceFilters() { - return clusterDeviceFiltersBuilder_ != null || clusterDeviceFilters_ != null; - } - /** - *
-     * Device filters for remote tasks in the cluster.
-     * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
-     * 
- * - * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; - */ - public org.tensorflow.proto.distruntime.ClusterDeviceFilters getClusterDeviceFilters() { - if (clusterDeviceFiltersBuilder_ == null) { - return clusterDeviceFilters_ == null ? org.tensorflow.proto.distruntime.ClusterDeviceFilters.getDefaultInstance() : clusterDeviceFilters_; - } else { - return clusterDeviceFiltersBuilder_.getMessage(); - } - } - /** - *
-     * Device filters for remote tasks in the cluster.
-     * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
-     * 
- * - * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; - */ - public Builder setClusterDeviceFilters(org.tensorflow.proto.distruntime.ClusterDeviceFilters value) { - if (clusterDeviceFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - clusterDeviceFilters_ = value; - onChanged(); - } else { - clusterDeviceFiltersBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Device filters for remote tasks in the cluster.
-     * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
-     * 
- * - * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; - */ - public Builder setClusterDeviceFilters( - org.tensorflow.proto.distruntime.ClusterDeviceFilters.Builder builderForValue) { - if (clusterDeviceFiltersBuilder_ == null) { - clusterDeviceFilters_ = builderForValue.build(); - onChanged(); - } else { - clusterDeviceFiltersBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Device filters for remote tasks in the cluster.
-     * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
-     * 
- * - * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; - */ - public Builder mergeClusterDeviceFilters(org.tensorflow.proto.distruntime.ClusterDeviceFilters value) { - if (clusterDeviceFiltersBuilder_ == null) { - if (clusterDeviceFilters_ != null) { - clusterDeviceFilters_ = - org.tensorflow.proto.distruntime.ClusterDeviceFilters.newBuilder(clusterDeviceFilters_).mergeFrom(value).buildPartial(); - } else { - clusterDeviceFilters_ = value; - } - onChanged(); - } else { - clusterDeviceFiltersBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Device filters for remote tasks in the cluster.
-     * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
-     * 
- * - * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; - */ - public Builder clearClusterDeviceFilters() { - if (clusterDeviceFiltersBuilder_ == null) { - clusterDeviceFilters_ = null; - onChanged(); - } else { - clusterDeviceFilters_ = null; - clusterDeviceFiltersBuilder_ = null; - } - - return this; - } - /** - *
-     * Device filters for remote tasks in the cluster.
-     * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
-     * 
- * - * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; - */ - public org.tensorflow.proto.distruntime.ClusterDeviceFilters.Builder getClusterDeviceFiltersBuilder() { - - onChanged(); - return getClusterDeviceFiltersFieldBuilder().getBuilder(); - } - /** - *
-     * Device filters for remote tasks in the cluster.
-     * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
-     * 
- * - * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; - */ - public org.tensorflow.proto.distruntime.ClusterDeviceFiltersOrBuilder getClusterDeviceFiltersOrBuilder() { - if (clusterDeviceFiltersBuilder_ != null) { - return clusterDeviceFiltersBuilder_.getMessageOrBuilder(); - } else { - return clusterDeviceFilters_ == null ? - org.tensorflow.proto.distruntime.ClusterDeviceFilters.getDefaultInstance() : clusterDeviceFilters_; - } - } - /** - *
-     * Device filters for remote tasks in the cluster.
-     * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
-     * 
- * - * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.distruntime.ClusterDeviceFilters, org.tensorflow.proto.distruntime.ClusterDeviceFilters.Builder, org.tensorflow.proto.distruntime.ClusterDeviceFiltersOrBuilder> - getClusterDeviceFiltersFieldBuilder() { - if (clusterDeviceFiltersBuilder_ == null) { - clusterDeviceFiltersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.distruntime.ClusterDeviceFilters, org.tensorflow.proto.distruntime.ClusterDeviceFilters.Builder, org.tensorflow.proto.distruntime.ClusterDeviceFiltersOrBuilder>( - getClusterDeviceFilters(), - getParentForChildren(), - isClean()); - clusterDeviceFilters_ = null; - } - return clusterDeviceFiltersBuilder_; - } - @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:tensorflow.ServerDef) - } - - // @@protoc_insertion_point(class_scope:tensorflow.ServerDef) - private static final org.tensorflow.proto.distruntime.ServerDef DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.distruntime.ServerDef(); - } - - public static org.tensorflow.proto.distruntime.ServerDef getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServerDef parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ServerDef(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.ServerDef getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ServerProtos.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ServerProtos.java deleted file mode 100644 index 57b4f858898..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ServerProtos.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/tensorflow_server.proto - -package org.tensorflow.proto.distruntime; - -public final class ServerProtos { - private ServerProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_ServerDef_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_ServerDef_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0tensorflow/core/protobuf/tensorflow_se" + - "rver.proto\022\ntensorflow\032&tensorflow/core/" + - "protobuf/cluster.proto\032%tensorflow/core/" + - "protobuf/config.proto\032-tensorflow/core/p" + - "rotobuf/device_filters.proto\"\365\001\n\tServerD" + - "ef\022\'\n\007cluster\030\001 \001(\0132\026.tensorflow.Cluster" + - "Def\022\020\n\010job_name\030\002 \001(\t\022\022\n\ntask_index\030\003 \001(" + - "\005\0227\n\026default_session_config\030\004 \001(\0132\027.tens" + - "orflow.ConfigProto\022\020\n\010protocol\030\005 \001(\t\022\014\n\004" + - "port\030\006 \001(\005\022@\n\026cluster_device_filters\030\007 \001" + - "(\0132 .tensorflow.ClusterDeviceFiltersB\214\001\n" + - " org.tensorflow.proto.distruntimeB\014Serve" + - "rProtosP\001ZUgithub.com/tensorflow/tensorf" + - "low/tensorflow/go/core/protobuf/for_core" + - "_protos_go_proto\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.distruntime.ClusterProtos.getDescriptor(), - org.tensorflow.proto.framework.ConfigProtos.getDescriptor(), - org.tensorflow.proto.distruntime.DeviceFiltersProtos.getDescriptor(), - }); - internal_static_tensorflow_ServerDef_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tensorflow_ServerDef_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_ServerDef_descriptor, - new java.lang.String[] { "Cluster", "JobName", "TaskIndex", "DefaultSessionConfig", "Protocol", "Port", "ClusterDeviceFilters", }); - org.tensorflow.proto.distruntime.ClusterProtos.getDescriptor(); - org.tensorflow.proto.framework.ConfigProtos.getDescriptor(); - org.tensorflow.proto.distruntime.DeviceFiltersProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/TaskDeviceFilters.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/TaskDeviceFilters.java deleted file mode 100644 index 50bc759c880..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/TaskDeviceFilters.java +++ /dev/null @@ -1,600 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/device_filters.proto - -package org.tensorflow.proto.distruntime; - -/** - *
- * Defines the device filters for a remote task.
- * 
- * - * Protobuf type {@code tensorflow.TaskDeviceFilters} - */ -public final class TaskDeviceFilters extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.TaskDeviceFilters) - TaskDeviceFiltersOrBuilder { -private static final long serialVersionUID = 0L; - // Use TaskDeviceFilters.newBuilder() to construct. - private TaskDeviceFilters(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskDeviceFilters() { - deviceFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TaskDeviceFilters(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskDeviceFilters( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - deviceFilters_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - deviceFilters_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - deviceFilters_ = deviceFilters_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.distruntime.DeviceFiltersProtos.internal_static_tensorflow_TaskDeviceFilters_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.distruntime.DeviceFiltersProtos.internal_static_tensorflow_TaskDeviceFilters_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.distruntime.TaskDeviceFilters.class, org.tensorflow.proto.distruntime.TaskDeviceFilters.Builder.class); - } - - public static final int DEVICE_FILTERS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList deviceFilters_; - /** - * repeated string device_filters = 1; - */ - public com.google.protobuf.ProtocolStringList - getDeviceFiltersList() { - return deviceFilters_; - } - /** - * repeated string device_filters = 1; - */ - public int getDeviceFiltersCount() { - return deviceFilters_.size(); - } - /** - * repeated string device_filters = 1; - */ - public java.lang.String getDeviceFilters(int index) { - return deviceFilters_.get(index); - } - /** - * repeated string device_filters = 1; - */ - public com.google.protobuf.ByteString - getDeviceFiltersBytes(int index) { - return deviceFilters_.getByteString(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 < deviceFilters_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceFilters_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < deviceFilters_.size(); i++) { - dataSize += computeStringSizeNoTag(deviceFilters_.getRaw(i)); - } - size += dataSize; - size += 1 * getDeviceFiltersList().size(); - } - 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 org.tensorflow.proto.distruntime.TaskDeviceFilters)) { - return super.equals(obj); - } - org.tensorflow.proto.distruntime.TaskDeviceFilters other = (org.tensorflow.proto.distruntime.TaskDeviceFilters) obj; - - if (!getDeviceFiltersList() - .equals(other.getDeviceFiltersList())) 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 (getDeviceFiltersCount() > 0) { - hash = (37 * hash) + DEVICE_FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getDeviceFiltersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.distruntime.TaskDeviceFilters parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.TaskDeviceFilters parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.TaskDeviceFilters parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.TaskDeviceFilters parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.TaskDeviceFilters parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.TaskDeviceFilters parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.TaskDeviceFilters parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.TaskDeviceFilters 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 org.tensorflow.proto.distruntime.TaskDeviceFilters parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.TaskDeviceFilters 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 org.tensorflow.proto.distruntime.TaskDeviceFilters parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.TaskDeviceFilters 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(org.tensorflow.proto.distruntime.TaskDeviceFilters 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; - } - /** - *
-   * Defines the device filters for a remote task.
-   * 
- * - * Protobuf type {@code tensorflow.TaskDeviceFilters} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.TaskDeviceFilters) - org.tensorflow.proto.distruntime.TaskDeviceFiltersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.distruntime.DeviceFiltersProtos.internal_static_tensorflow_TaskDeviceFilters_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.distruntime.DeviceFiltersProtos.internal_static_tensorflow_TaskDeviceFilters_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.distruntime.TaskDeviceFilters.class, org.tensorflow.proto.distruntime.TaskDeviceFilters.Builder.class); - } - - // Construct using org.tensorflow.proto.distruntime.TaskDeviceFilters.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - deviceFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.distruntime.DeviceFiltersProtos.internal_static_tensorflow_TaskDeviceFilters_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.TaskDeviceFilters getDefaultInstanceForType() { - return org.tensorflow.proto.distruntime.TaskDeviceFilters.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.TaskDeviceFilters build() { - org.tensorflow.proto.distruntime.TaskDeviceFilters result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.TaskDeviceFilters buildPartial() { - org.tensorflow.proto.distruntime.TaskDeviceFilters result = new org.tensorflow.proto.distruntime.TaskDeviceFilters(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - deviceFilters_ = deviceFilters_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.deviceFilters_ = deviceFilters_; - 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 org.tensorflow.proto.distruntime.TaskDeviceFilters) { - return mergeFrom((org.tensorflow.proto.distruntime.TaskDeviceFilters)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.distruntime.TaskDeviceFilters other) { - if (other == org.tensorflow.proto.distruntime.TaskDeviceFilters.getDefaultInstance()) return this; - if (!other.deviceFilters_.isEmpty()) { - if (deviceFilters_.isEmpty()) { - deviceFilters_ = other.deviceFilters_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDeviceFiltersIsMutable(); - deviceFilters_.addAll(other.deviceFilters_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.distruntime.TaskDeviceFilters parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.distruntime.TaskDeviceFilters) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList deviceFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureDeviceFiltersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - deviceFilters_ = new com.google.protobuf.LazyStringArrayList(deviceFilters_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string device_filters = 1; - */ - public com.google.protobuf.ProtocolStringList - getDeviceFiltersList() { - return deviceFilters_.getUnmodifiableView(); - } - /** - * repeated string device_filters = 1; - */ - public int getDeviceFiltersCount() { - return deviceFilters_.size(); - } - /** - * repeated string device_filters = 1; - */ - public java.lang.String getDeviceFilters(int index) { - return deviceFilters_.get(index); - } - /** - * repeated string device_filters = 1; - */ - public com.google.protobuf.ByteString - getDeviceFiltersBytes(int index) { - return deviceFilters_.getByteString(index); - } - /** - * repeated string device_filters = 1; - */ - public Builder setDeviceFilters( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDeviceFiltersIsMutable(); - deviceFilters_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string device_filters = 1; - */ - public Builder addDeviceFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDeviceFiltersIsMutable(); - deviceFilters_.add(value); - onChanged(); - return this; - } - /** - * repeated string device_filters = 1; - */ - public Builder addAllDeviceFilters( - java.lang.Iterable values) { - ensureDeviceFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, deviceFilters_); - onChanged(); - return this; - } - /** - * repeated string device_filters = 1; - */ - public Builder clearDeviceFilters() { - deviceFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string device_filters = 1; - */ - public Builder addDeviceFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureDeviceFiltersIsMutable(); - deviceFilters_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.TaskDeviceFilters) - } - - // @@protoc_insertion_point(class_scope:tensorflow.TaskDeviceFilters) - private static final org.tensorflow.proto.distruntime.TaskDeviceFilters DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.distruntime.TaskDeviceFilters(); - } - - public static org.tensorflow.proto.distruntime.TaskDeviceFilters getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskDeviceFilters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskDeviceFilters(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.TaskDeviceFilters getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/TaskDeviceFiltersOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/TaskDeviceFiltersOrBuilder.java deleted file mode 100644 index 2c359e1e049..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/TaskDeviceFiltersOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/device_filters.proto - -package org.tensorflow.proto.distruntime; - -public interface TaskDeviceFiltersOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.TaskDeviceFilters) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string device_filters = 1; - */ - java.util.List - getDeviceFiltersList(); - /** - * repeated string device_filters = 1; - */ - int getDeviceFiltersCount(); - /** - * repeated string device_filters = 1; - */ - java.lang.String getDeviceFilters(int index); - /** - * repeated string device_filters = 1; - */ - com.google.protobuf.ByteString - getDeviceFiltersBytes(int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/TransportOptions.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/TransportOptions.java deleted file mode 100644 index e5a8e2a11ed..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/TransportOptions.java +++ /dev/null @@ -1,635 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/transport_options.proto - -package org.tensorflow.proto.distruntime; - -public final class TransportOptions { - private TransportOptions() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface RecvBufRespExtraOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.RecvBufRespExtra) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated bytes tensor_content = 1; - */ - java.util.List getTensorContentList(); - /** - * repeated bytes tensor_content = 1; - */ - int getTensorContentCount(); - /** - * repeated bytes tensor_content = 1; - */ - com.google.protobuf.ByteString getTensorContent(int index); - } - /** - *
-   * Extra data needed on a non-RDMA RecvBufResponse.
-   * 
- * - * Protobuf type {@code tensorflow.RecvBufRespExtra} - */ - public static final class RecvBufRespExtra extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.RecvBufRespExtra) - RecvBufRespExtraOrBuilder { - private static final long serialVersionUID = 0L; - // Use RecvBufRespExtra.newBuilder() to construct. - private RecvBufRespExtra(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RecvBufRespExtra() { - tensorContent_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RecvBufRespExtra(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RecvBufRespExtra( - 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)) { - tensorContent_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - tensorContent_.add(input.readBytes()); - 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)) { - tensorContent_ = java.util.Collections.unmodifiableList(tensorContent_); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.distruntime.TransportOptions.internal_static_tensorflow_RecvBufRespExtra_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.distruntime.TransportOptions.internal_static_tensorflow_RecvBufRespExtra_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra.class, org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra.Builder.class); - } - - public static final int TENSOR_CONTENT_FIELD_NUMBER = 1; - private java.util.List tensorContent_; - /** - * repeated bytes tensor_content = 1; - */ - public java.util.List - getTensorContentList() { - return tensorContent_; - } - /** - * repeated bytes tensor_content = 1; - */ - public int getTensorContentCount() { - return tensorContent_.size(); - } - /** - * repeated bytes tensor_content = 1; - */ - public com.google.protobuf.ByteString getTensorContent(int index) { - return tensorContent_.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 < tensorContent_.size(); i++) { - output.writeBytes(1, tensorContent_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < tensorContent_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(tensorContent_.get(i)); - } - size += dataSize; - size += 1 * getTensorContentList().size(); - } - 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 org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra)) { - return super.equals(obj); - } - org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra other = (org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra) obj; - - if (!getTensorContentList() - .equals(other.getTensorContentList())) 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 (getTensorContentCount() > 0) { - hash = (37 * hash) + TENSOR_CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getTensorContentList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra 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 org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra 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 org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra 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(org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra 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; - } - /** - *
-     * Extra data needed on a non-RDMA RecvBufResponse.
-     * 
- * - * Protobuf type {@code tensorflow.RecvBufRespExtra} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.RecvBufRespExtra) - org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtraOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.distruntime.TransportOptions.internal_static_tensorflow_RecvBufRespExtra_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.distruntime.TransportOptions.internal_static_tensorflow_RecvBufRespExtra_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra.class, org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra.Builder.class); - } - - // Construct using org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - tensorContent_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.distruntime.TransportOptions.internal_static_tensorflow_RecvBufRespExtra_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra getDefaultInstanceForType() { - return org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra build() { - org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra buildPartial() { - org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra result = new org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - tensorContent_ = java.util.Collections.unmodifiableList(tensorContent_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tensorContent_ = tensorContent_; - 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 org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra) { - return mergeFrom((org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra other) { - if (other == org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra.getDefaultInstance()) return this; - if (!other.tensorContent_.isEmpty()) { - if (tensorContent_.isEmpty()) { - tensorContent_ = other.tensorContent_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTensorContentIsMutable(); - tensorContent_.addAll(other.tensorContent_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List tensorContent_ = java.util.Collections.emptyList(); - private void ensureTensorContentIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - tensorContent_ = new java.util.ArrayList(tensorContent_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated bytes tensor_content = 1; - */ - public java.util.List - getTensorContentList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(tensorContent_) : tensorContent_; - } - /** - * repeated bytes tensor_content = 1; - */ - public int getTensorContentCount() { - return tensorContent_.size(); - } - /** - * repeated bytes tensor_content = 1; - */ - public com.google.protobuf.ByteString getTensorContent(int index) { - return tensorContent_.get(index); - } - /** - * repeated bytes tensor_content = 1; - */ - public Builder setTensorContent( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTensorContentIsMutable(); - tensorContent_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes tensor_content = 1; - */ - public Builder addTensorContent(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTensorContentIsMutable(); - tensorContent_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes tensor_content = 1; - */ - public Builder addAllTensorContent( - java.lang.Iterable values) { - ensureTensorContentIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tensorContent_); - onChanged(); - return this; - } - /** - * repeated bytes tensor_content = 1; - */ - public Builder clearTensorContent() { - tensorContent_ = java.util.Collections.emptyList(); - bitField0_ = (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:tensorflow.RecvBufRespExtra) - } - - // @@protoc_insertion_point(class_scope:tensorflow.RecvBufRespExtra) - private static final org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra(); - } - - public static org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecvBufRespExtra parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecvBufRespExtra(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.distruntime.TransportOptions.RecvBufRespExtra getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_RecvBufRespExtra_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_RecvBufRespExtra_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0tensorflow/core/protobuf/transport_opt" + - "ions.proto\022\ntensorflow\"*\n\020RecvBufRespExt" + - "ra\022\026\n\016tensor_content\030\001 \003(\014By\n org.tensor" + - "flow.proto.distruntimeZUgithub.com/tenso" + - "rflow/tensorflow/tensorflow/go/core/prot" + - "obuf/for_core_protos_go_protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_tensorflow_RecvBufRespExtra_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tensorflow_RecvBufRespExtra_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_RecvBufRespExtra_descriptor, - new java.lang.String[] { "TensorContent", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/BytesList.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/BytesList.java deleted file mode 100644 index e172470df1c..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/BytesList.java +++ /dev/null @@ -1,574 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/feature.proto - -package org.tensorflow.proto.example; - -/** - *
- * LINT.IfChange
- * Containers to hold repeated fundamental values.
- * 
- * - * Protobuf type {@code tensorflow.BytesList} - */ -public final class BytesList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.BytesList) - BytesListOrBuilder { -private static final long serialVersionUID = 0L; - // Use BytesList.newBuilder() to construct. - private BytesList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BytesList() { - value_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BytesList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BytesList( - 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)) { - value_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - value_.add(input.readBytes()); - 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)) { - value_ = java.util.Collections.unmodifiableList(value_); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_BytesList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_BytesList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.BytesList.class, org.tensorflow.proto.example.BytesList.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private java.util.List value_; - /** - * repeated bytes value = 1; - */ - public java.util.List - getValueList() { - return value_; - } - /** - * repeated bytes value = 1; - */ - public int getValueCount() { - return value_.size(); - } - /** - * repeated bytes value = 1; - */ - public com.google.protobuf.ByteString getValue(int index) { - return value_.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 < value_.size(); i++) { - output.writeBytes(1, value_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < value_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(value_.get(i)); - } - size += dataSize; - size += 1 * getValueList().size(); - } - 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 org.tensorflow.proto.example.BytesList)) { - return super.equals(obj); - } - org.tensorflow.proto.example.BytesList other = (org.tensorflow.proto.example.BytesList) obj; - - if (!getValueList() - .equals(other.getValueList())) 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 (getValueCount() > 0) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValueList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.example.BytesList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.BytesList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.BytesList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.BytesList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.BytesList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.BytesList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.BytesList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.BytesList 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 org.tensorflow.proto.example.BytesList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.BytesList 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 org.tensorflow.proto.example.BytesList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.BytesList 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(org.tensorflow.proto.example.BytesList 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; - } - /** - *
-   * LINT.IfChange
-   * Containers to hold repeated fundamental values.
-   * 
- * - * Protobuf type {@code tensorflow.BytesList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.BytesList) - org.tensorflow.proto.example.BytesListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_BytesList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_BytesList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.BytesList.class, org.tensorflow.proto.example.BytesList.Builder.class); - } - - // Construct using org.tensorflow.proto.example.BytesList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - value_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_BytesList_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.example.BytesList getDefaultInstanceForType() { - return org.tensorflow.proto.example.BytesList.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.example.BytesList build() { - org.tensorflow.proto.example.BytesList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.example.BytesList buildPartial() { - org.tensorflow.proto.example.BytesList result = new org.tensorflow.proto.example.BytesList(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - value_ = java.util.Collections.unmodifiableList(value_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.value_ = value_; - 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 org.tensorflow.proto.example.BytesList) { - return mergeFrom((org.tensorflow.proto.example.BytesList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.example.BytesList other) { - if (other == org.tensorflow.proto.example.BytesList.getDefaultInstance()) return this; - if (!other.value_.isEmpty()) { - if (value_.isEmpty()) { - value_ = other.value_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValueIsMutable(); - value_.addAll(other.value_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.example.BytesList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.example.BytesList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List value_ = java.util.Collections.emptyList(); - private void ensureValueIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - value_ = new java.util.ArrayList(value_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated bytes value = 1; - */ - public java.util.List - getValueList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(value_) : value_; - } - /** - * repeated bytes value = 1; - */ - public int getValueCount() { - return value_.size(); - } - /** - * repeated bytes value = 1; - */ - public com.google.protobuf.ByteString getValue(int index) { - return value_.get(index); - } - /** - * repeated bytes value = 1; - */ - public Builder setValue( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValueIsMutable(); - value_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes value = 1; - */ - public Builder addValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValueIsMutable(); - value_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes value = 1; - */ - public Builder addAllValue( - java.lang.Iterable values) { - ensureValueIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, value_); - onChanged(); - return this; - } - /** - * repeated bytes value = 1; - */ - public Builder clearValue() { - value_ = java.util.Collections.emptyList(); - bitField0_ = (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:tensorflow.BytesList) - } - - // @@protoc_insertion_point(class_scope:tensorflow.BytesList) - private static final org.tensorflow.proto.example.BytesList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.example.BytesList(); - } - - public static org.tensorflow.proto.example.BytesList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BytesList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.example.BytesList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/BytesListOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/BytesListOrBuilder.java deleted file mode 100644 index 11151e1a947..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/BytesListOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/feature.proto - -package org.tensorflow.proto.example; - -public interface BytesListOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.BytesList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated bytes value = 1; - */ - java.util.List getValueList(); - /** - * repeated bytes value = 1; - */ - int getValueCount(); - /** - * repeated bytes value = 1; - */ - com.google.protobuf.ByteString getValue(int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/Example.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/Example.java deleted file mode 100644 index ea9d058e425..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/Example.java +++ /dev/null @@ -1,600 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/example.proto - -package org.tensorflow.proto.example; - -/** - * Protobuf type {@code tensorflow.Example} - */ -public final class Example extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.Example) - ExampleOrBuilder { -private static final long serialVersionUID = 0L; - // Use Example.newBuilder() to construct. - private Example(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Example() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Example(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Example( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.tensorflow.proto.example.Features.Builder subBuilder = null; - if (features_ != null) { - subBuilder = features_.toBuilder(); - } - features_ = input.readMessage(org.tensorflow.proto.example.Features.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(features_); - features_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.ExampleProtos.internal_static_tensorflow_Example_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.ExampleProtos.internal_static_tensorflow_Example_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.Example.class, org.tensorflow.proto.example.Example.Builder.class); - } - - public static final int FEATURES_FIELD_NUMBER = 1; - private org.tensorflow.proto.example.Features features_; - /** - * .tensorflow.Features features = 1; - */ - public boolean hasFeatures() { - return features_ != null; - } - /** - * .tensorflow.Features features = 1; - */ - public org.tensorflow.proto.example.Features getFeatures() { - return features_ == null ? org.tensorflow.proto.example.Features.getDefaultInstance() : features_; - } - /** - * .tensorflow.Features features = 1; - */ - public org.tensorflow.proto.example.FeaturesOrBuilder getFeaturesOrBuilder() { - return getFeatures(); - } - - 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 (features_ != null) { - output.writeMessage(1, getFeatures()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (features_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getFeatures()); - } - 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 org.tensorflow.proto.example.Example)) { - return super.equals(obj); - } - org.tensorflow.proto.example.Example other = (org.tensorflow.proto.example.Example) obj; - - if (hasFeatures() != other.hasFeatures()) return false; - if (hasFeatures()) { - if (!getFeatures() - .equals(other.getFeatures())) 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 (hasFeatures()) { - hash = (37 * hash) + FEATURES_FIELD_NUMBER; - hash = (53 * hash) + getFeatures().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.example.Example parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.Example parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.Example parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.Example parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.Example parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.Example parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.Example parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.Example 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 org.tensorflow.proto.example.Example parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.Example 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 org.tensorflow.proto.example.Example parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.Example 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(org.tensorflow.proto.example.Example prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.Example} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.Example) - org.tensorflow.proto.example.ExampleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.ExampleProtos.internal_static_tensorflow_Example_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.ExampleProtos.internal_static_tensorflow_Example_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.Example.class, org.tensorflow.proto.example.Example.Builder.class); - } - - // Construct using org.tensorflow.proto.example.Example.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (featuresBuilder_ == null) { - features_ = null; - } else { - features_ = null; - featuresBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.example.ExampleProtos.internal_static_tensorflow_Example_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.example.Example getDefaultInstanceForType() { - return org.tensorflow.proto.example.Example.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.example.Example build() { - org.tensorflow.proto.example.Example result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.example.Example buildPartial() { - org.tensorflow.proto.example.Example result = new org.tensorflow.proto.example.Example(this); - if (featuresBuilder_ == null) { - result.features_ = features_; - } else { - result.features_ = featuresBuilder_.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 org.tensorflow.proto.example.Example) { - return mergeFrom((org.tensorflow.proto.example.Example)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.example.Example other) { - if (other == org.tensorflow.proto.example.Example.getDefaultInstance()) return this; - if (other.hasFeatures()) { - mergeFeatures(other.getFeatures()); - } - 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 { - org.tensorflow.proto.example.Example parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.example.Example) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private org.tensorflow.proto.example.Features features_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.Features, org.tensorflow.proto.example.Features.Builder, org.tensorflow.proto.example.FeaturesOrBuilder> featuresBuilder_; - /** - * .tensorflow.Features features = 1; - */ - public boolean hasFeatures() { - return featuresBuilder_ != null || features_ != null; - } - /** - * .tensorflow.Features features = 1; - */ - public org.tensorflow.proto.example.Features getFeatures() { - if (featuresBuilder_ == null) { - return features_ == null ? org.tensorflow.proto.example.Features.getDefaultInstance() : features_; - } else { - return featuresBuilder_.getMessage(); - } - } - /** - * .tensorflow.Features features = 1; - */ - public Builder setFeatures(org.tensorflow.proto.example.Features value) { - if (featuresBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - features_ = value; - onChanged(); - } else { - featuresBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.Features features = 1; - */ - public Builder setFeatures( - org.tensorflow.proto.example.Features.Builder builderForValue) { - if (featuresBuilder_ == null) { - features_ = builderForValue.build(); - onChanged(); - } else { - featuresBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.Features features = 1; - */ - public Builder mergeFeatures(org.tensorflow.proto.example.Features value) { - if (featuresBuilder_ == null) { - if (features_ != null) { - features_ = - org.tensorflow.proto.example.Features.newBuilder(features_).mergeFrom(value).buildPartial(); - } else { - features_ = value; - } - onChanged(); - } else { - featuresBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.Features features = 1; - */ - public Builder clearFeatures() { - if (featuresBuilder_ == null) { - features_ = null; - onChanged(); - } else { - features_ = null; - featuresBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.Features features = 1; - */ - public org.tensorflow.proto.example.Features.Builder getFeaturesBuilder() { - - onChanged(); - return getFeaturesFieldBuilder().getBuilder(); - } - /** - * .tensorflow.Features features = 1; - */ - public org.tensorflow.proto.example.FeaturesOrBuilder getFeaturesOrBuilder() { - if (featuresBuilder_ != null) { - return featuresBuilder_.getMessageOrBuilder(); - } else { - return features_ == null ? - org.tensorflow.proto.example.Features.getDefaultInstance() : features_; - } - } - /** - * .tensorflow.Features features = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.Features, org.tensorflow.proto.example.Features.Builder, org.tensorflow.proto.example.FeaturesOrBuilder> - getFeaturesFieldBuilder() { - if (featuresBuilder_ == null) { - featuresBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.Features, org.tensorflow.proto.example.Features.Builder, org.tensorflow.proto.example.FeaturesOrBuilder>( - getFeatures(), - getParentForChildren(), - isClean()); - features_ = null; - } - return featuresBuilder_; - } - @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:tensorflow.Example) - } - - // @@protoc_insertion_point(class_scope:tensorflow.Example) - private static final org.tensorflow.proto.example.Example DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.example.Example(); - } - - public static org.tensorflow.proto.example.Example getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Example parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Example(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.example.Example getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/ExampleOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/ExampleOrBuilder.java deleted file mode 100644 index 2026bc24075..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/ExampleOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/example.proto - -package org.tensorflow.proto.example; - -public interface ExampleOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.Example) - com.google.protobuf.MessageOrBuilder { - - /** - * .tensorflow.Features features = 1; - */ - boolean hasFeatures(); - /** - * .tensorflow.Features features = 1; - */ - org.tensorflow.proto.example.Features getFeatures(); - /** - * .tensorflow.Features features = 1; - */ - org.tensorflow.proto.example.FeaturesOrBuilder getFeaturesOrBuilder(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/ExampleParserConfiguration.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/ExampleParserConfiguration.java deleted file mode 100644 index 4829d13d8ff..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/ExampleParserConfiguration.java +++ /dev/null @@ -1,695 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/example_parser_configuration.proto - -package org.tensorflow.proto.example; - -/** - * Protobuf type {@code tensorflow.ExampleParserConfiguration} - */ -public final class ExampleParserConfiguration extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.ExampleParserConfiguration) - ExampleParserConfigurationOrBuilder { -private static final long serialVersionUID = 0L; - // Use ExampleParserConfiguration.newBuilder() to construct. - private ExampleParserConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExampleParserConfiguration() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ExampleParserConfiguration(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExampleParserConfiguration( - 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)) { - featureMap_ = com.google.protobuf.MapField.newMapField( - FeatureMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - featureMap__ = input.readMessage( - FeatureMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - featureMap_.getMutableMap().put( - featureMap__.getKey(), featureMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_ExampleParserConfiguration_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetFeatureMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_ExampleParserConfiguration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.ExampleParserConfiguration.class, org.tensorflow.proto.example.ExampleParserConfiguration.Builder.class); - } - - public static final int FEATURE_MAP_FIELD_NUMBER = 1; - private static final class FeatureMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, org.tensorflow.proto.example.FeatureConfiguration> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_ExampleParserConfiguration_FeatureMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.tensorflow.proto.example.FeatureConfiguration.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.example.FeatureConfiguration> featureMap_; - private com.google.protobuf.MapField - internalGetFeatureMap() { - if (featureMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FeatureMapDefaultEntryHolder.defaultEntry); - } - return featureMap_; - } - - public int getFeatureMapCount() { - return internalGetFeatureMap().getMap().size(); - } - /** - * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; - */ - - public boolean containsFeatureMap( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetFeatureMap().getMap().containsKey(key); - } - /** - * Use {@link #getFeatureMapMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getFeatureMap() { - return getFeatureMapMap(); - } - /** - * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; - */ - - public java.util.Map getFeatureMapMap() { - return internalGetFeatureMap().getMap(); - } - /** - * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; - */ - - public org.tensorflow.proto.example.FeatureConfiguration getFeatureMapOrDefault( - java.lang.String key, - org.tensorflow.proto.example.FeatureConfiguration defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetFeatureMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; - */ - - public org.tensorflow.proto.example.FeatureConfiguration getFeatureMapOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetFeatureMap().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, - internalGetFeatureMap(), - FeatureMapDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetFeatureMap().getMap().entrySet()) { - com.google.protobuf.MapEntry - featureMap__ = FeatureMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, featureMap__); - } - 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 org.tensorflow.proto.example.ExampleParserConfiguration)) { - return super.equals(obj); - } - org.tensorflow.proto.example.ExampleParserConfiguration other = (org.tensorflow.proto.example.ExampleParserConfiguration) obj; - - if (!internalGetFeatureMap().equals( - other.internalGetFeatureMap())) 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 (!internalGetFeatureMap().getMap().isEmpty()) { - hash = (37 * hash) + FEATURE_MAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetFeatureMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.example.ExampleParserConfiguration parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.ExampleParserConfiguration parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.ExampleParserConfiguration parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.ExampleParserConfiguration parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.ExampleParserConfiguration parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.ExampleParserConfiguration parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.ExampleParserConfiguration parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.ExampleParserConfiguration 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 org.tensorflow.proto.example.ExampleParserConfiguration parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.ExampleParserConfiguration 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 org.tensorflow.proto.example.ExampleParserConfiguration parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.ExampleParserConfiguration 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(org.tensorflow.proto.example.ExampleParserConfiguration prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.ExampleParserConfiguration} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.ExampleParserConfiguration) - org.tensorflow.proto.example.ExampleParserConfigurationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_ExampleParserConfiguration_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetFeatureMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableFeatureMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_ExampleParserConfiguration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.ExampleParserConfiguration.class, org.tensorflow.proto.example.ExampleParserConfiguration.Builder.class); - } - - // Construct using org.tensorflow.proto.example.ExampleParserConfiguration.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableFeatureMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_ExampleParserConfiguration_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.example.ExampleParserConfiguration getDefaultInstanceForType() { - return org.tensorflow.proto.example.ExampleParserConfiguration.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.example.ExampleParserConfiguration build() { - org.tensorflow.proto.example.ExampleParserConfiguration result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.example.ExampleParserConfiguration buildPartial() { - org.tensorflow.proto.example.ExampleParserConfiguration result = new org.tensorflow.proto.example.ExampleParserConfiguration(this); - int from_bitField0_ = bitField0_; - result.featureMap_ = internalGetFeatureMap(); - result.featureMap_.makeImmutable(); - 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 org.tensorflow.proto.example.ExampleParserConfiguration) { - return mergeFrom((org.tensorflow.proto.example.ExampleParserConfiguration)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.example.ExampleParserConfiguration other) { - if (other == org.tensorflow.proto.example.ExampleParserConfiguration.getDefaultInstance()) return this; - internalGetMutableFeatureMap().mergeFrom( - other.internalGetFeatureMap()); - 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 { - org.tensorflow.proto.example.ExampleParserConfiguration parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.example.ExampleParserConfiguration) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.example.FeatureConfiguration> featureMap_; - private com.google.protobuf.MapField - internalGetFeatureMap() { - if (featureMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FeatureMapDefaultEntryHolder.defaultEntry); - } - return featureMap_; - } - private com.google.protobuf.MapField - internalGetMutableFeatureMap() { - onChanged();; - if (featureMap_ == null) { - featureMap_ = com.google.protobuf.MapField.newMapField( - FeatureMapDefaultEntryHolder.defaultEntry); - } - if (!featureMap_.isMutable()) { - featureMap_ = featureMap_.copy(); - } - return featureMap_; - } - - public int getFeatureMapCount() { - return internalGetFeatureMap().getMap().size(); - } - /** - * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; - */ - - public boolean containsFeatureMap( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetFeatureMap().getMap().containsKey(key); - } - /** - * Use {@link #getFeatureMapMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getFeatureMap() { - return getFeatureMapMap(); - } - /** - * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; - */ - - public java.util.Map getFeatureMapMap() { - return internalGetFeatureMap().getMap(); - } - /** - * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; - */ - - public org.tensorflow.proto.example.FeatureConfiguration getFeatureMapOrDefault( - java.lang.String key, - org.tensorflow.proto.example.FeatureConfiguration defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetFeatureMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; - */ - - public org.tensorflow.proto.example.FeatureConfiguration getFeatureMapOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetFeatureMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearFeatureMap() { - internalGetMutableFeatureMap().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; - */ - - public Builder removeFeatureMap( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableFeatureMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableFeatureMap() { - return internalGetMutableFeatureMap().getMutableMap(); - } - /** - * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; - */ - public Builder putFeatureMap( - java.lang.String key, - org.tensorflow.proto.example.FeatureConfiguration value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableFeatureMap().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; - */ - - public Builder putAllFeatureMap( - java.util.Map values) { - internalGetMutableFeatureMap().getMutableMap() - .putAll(values); - 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:tensorflow.ExampleParserConfiguration) - } - - // @@protoc_insertion_point(class_scope:tensorflow.ExampleParserConfiguration) - private static final org.tensorflow.proto.example.ExampleParserConfiguration DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.example.ExampleParserConfiguration(); - } - - public static org.tensorflow.proto.example.ExampleParserConfiguration getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExampleParserConfiguration parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExampleParserConfiguration(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.example.ExampleParserConfiguration getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/ExampleParserConfigurationOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/ExampleParserConfigurationOrBuilder.java deleted file mode 100644 index 33df2a31a5b..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/ExampleParserConfigurationOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/example_parser_configuration.proto - -package org.tensorflow.proto.example; - -public interface ExampleParserConfigurationOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.ExampleParserConfiguration) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; - */ - int getFeatureMapCount(); - /** - * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; - */ - boolean containsFeatureMap( - java.lang.String key); - /** - * Use {@link #getFeatureMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getFeatureMap(); - /** - * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; - */ - java.util.Map - getFeatureMapMap(); - /** - * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; - */ - - org.tensorflow.proto.example.FeatureConfiguration getFeatureMapOrDefault( - java.lang.String key, - org.tensorflow.proto.example.FeatureConfiguration defaultValue); - /** - * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; - */ - - org.tensorflow.proto.example.FeatureConfiguration getFeatureMapOrThrow( - java.lang.String key); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/Feature.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/Feature.java deleted file mode 100644 index a4aa0733f54..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/Feature.java +++ /dev/null @@ -1,1105 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/feature.proto - -package org.tensorflow.proto.example; - -/** - *
- * Containers for non-sequential data.
- * 
- * - * Protobuf type {@code tensorflow.Feature} - */ -public final class Feature extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.Feature) - FeatureOrBuilder { -private static final long serialVersionUID = 0L; - // Use Feature.newBuilder() to construct. - private Feature(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Feature() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Feature(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Feature( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.tensorflow.proto.example.BytesList.Builder subBuilder = null; - if (kindCase_ == 1) { - subBuilder = ((org.tensorflow.proto.example.BytesList) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.example.BytesList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.example.BytesList) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 1; - break; - } - case 18: { - org.tensorflow.proto.example.FloatList.Builder subBuilder = null; - if (kindCase_ == 2) { - subBuilder = ((org.tensorflow.proto.example.FloatList) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.example.FloatList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.example.FloatList) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 2; - break; - } - case 26: { - org.tensorflow.proto.example.Int64List.Builder subBuilder = null; - if (kindCase_ == 3) { - subBuilder = ((org.tensorflow.proto.example.Int64List) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.example.Int64List.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.example.Int64List) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 3; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_Feature_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_Feature_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.Feature.class, org.tensorflow.proto.example.Feature.Builder.class); - } - - private int kindCase_ = 0; - private java.lang.Object kind_; - public enum KindCase - implements com.google.protobuf.Internal.EnumLite { - BYTES_LIST(1), - FLOAT_LIST(2), - INT64_LIST(3), - KIND_NOT_SET(0); - private final int value; - private KindCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static KindCase valueOf(int value) { - return forNumber(value); - } - - public static KindCase forNumber(int value) { - switch (value) { - case 1: return BYTES_LIST; - case 2: return FLOAT_LIST; - case 3: return INT64_LIST; - case 0: return KIND_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public KindCase - getKindCase() { - return KindCase.forNumber( - kindCase_); - } - - public static final int BYTES_LIST_FIELD_NUMBER = 1; - /** - * .tensorflow.BytesList bytes_list = 1; - */ - public boolean hasBytesList() { - return kindCase_ == 1; - } - /** - * .tensorflow.BytesList bytes_list = 1; - */ - public org.tensorflow.proto.example.BytesList getBytesList() { - if (kindCase_ == 1) { - return (org.tensorflow.proto.example.BytesList) kind_; - } - return org.tensorflow.proto.example.BytesList.getDefaultInstance(); - } - /** - * .tensorflow.BytesList bytes_list = 1; - */ - public org.tensorflow.proto.example.BytesListOrBuilder getBytesListOrBuilder() { - if (kindCase_ == 1) { - return (org.tensorflow.proto.example.BytesList) kind_; - } - return org.tensorflow.proto.example.BytesList.getDefaultInstance(); - } - - public static final int FLOAT_LIST_FIELD_NUMBER = 2; - /** - * .tensorflow.FloatList float_list = 2; - */ - public boolean hasFloatList() { - return kindCase_ == 2; - } - /** - * .tensorflow.FloatList float_list = 2; - */ - public org.tensorflow.proto.example.FloatList getFloatList() { - if (kindCase_ == 2) { - return (org.tensorflow.proto.example.FloatList) kind_; - } - return org.tensorflow.proto.example.FloatList.getDefaultInstance(); - } - /** - * .tensorflow.FloatList float_list = 2; - */ - public org.tensorflow.proto.example.FloatListOrBuilder getFloatListOrBuilder() { - if (kindCase_ == 2) { - return (org.tensorflow.proto.example.FloatList) kind_; - } - return org.tensorflow.proto.example.FloatList.getDefaultInstance(); - } - - public static final int INT64_LIST_FIELD_NUMBER = 3; - /** - * .tensorflow.Int64List int64_list = 3; - */ - public boolean hasInt64List() { - return kindCase_ == 3; - } - /** - * .tensorflow.Int64List int64_list = 3; - */ - public org.tensorflow.proto.example.Int64List getInt64List() { - if (kindCase_ == 3) { - return (org.tensorflow.proto.example.Int64List) kind_; - } - return org.tensorflow.proto.example.Int64List.getDefaultInstance(); - } - /** - * .tensorflow.Int64List int64_list = 3; - */ - public org.tensorflow.proto.example.Int64ListOrBuilder getInt64ListOrBuilder() { - if (kindCase_ == 3) { - return (org.tensorflow.proto.example.Int64List) kind_; - } - return org.tensorflow.proto.example.Int64List.getDefaultInstance(); - } - - 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 (kindCase_ == 1) { - output.writeMessage(1, (org.tensorflow.proto.example.BytesList) kind_); - } - if (kindCase_ == 2) { - output.writeMessage(2, (org.tensorflow.proto.example.FloatList) kind_); - } - if (kindCase_ == 3) { - output.writeMessage(3, (org.tensorflow.proto.example.Int64List) kind_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (kindCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (org.tensorflow.proto.example.BytesList) kind_); - } - if (kindCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (org.tensorflow.proto.example.FloatList) kind_); - } - if (kindCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (org.tensorflow.proto.example.Int64List) kind_); - } - 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 org.tensorflow.proto.example.Feature)) { - return super.equals(obj); - } - org.tensorflow.proto.example.Feature other = (org.tensorflow.proto.example.Feature) obj; - - if (!getKindCase().equals(other.getKindCase())) return false; - switch (kindCase_) { - case 1: - if (!getBytesList() - .equals(other.getBytesList())) return false; - break; - case 2: - if (!getFloatList() - .equals(other.getFloatList())) return false; - break; - case 3: - if (!getInt64List() - .equals(other.getInt64List())) return false; - break; - case 0: - default: - } - 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(); - switch (kindCase_) { - case 1: - hash = (37 * hash) + BYTES_LIST_FIELD_NUMBER; - hash = (53 * hash) + getBytesList().hashCode(); - break; - case 2: - hash = (37 * hash) + FLOAT_LIST_FIELD_NUMBER; - hash = (53 * hash) + getFloatList().hashCode(); - break; - case 3: - hash = (37 * hash) + INT64_LIST_FIELD_NUMBER; - hash = (53 * hash) + getInt64List().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.example.Feature parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.Feature parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.Feature parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.Feature parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.Feature parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.Feature parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.Feature parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.Feature 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 org.tensorflow.proto.example.Feature parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.Feature 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 org.tensorflow.proto.example.Feature parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.Feature 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(org.tensorflow.proto.example.Feature 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; - } - /** - *
-   * Containers for non-sequential data.
-   * 
- * - * Protobuf type {@code tensorflow.Feature} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.Feature) - org.tensorflow.proto.example.FeatureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_Feature_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_Feature_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.Feature.class, org.tensorflow.proto.example.Feature.Builder.class); - } - - // Construct using org.tensorflow.proto.example.Feature.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - kindCase_ = 0; - kind_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_Feature_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.example.Feature getDefaultInstanceForType() { - return org.tensorflow.proto.example.Feature.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.example.Feature build() { - org.tensorflow.proto.example.Feature result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.example.Feature buildPartial() { - org.tensorflow.proto.example.Feature result = new org.tensorflow.proto.example.Feature(this); - if (kindCase_ == 1) { - if (bytesListBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = bytesListBuilder_.build(); - } - } - if (kindCase_ == 2) { - if (floatListBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = floatListBuilder_.build(); - } - } - if (kindCase_ == 3) { - if (int64ListBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = int64ListBuilder_.build(); - } - } - result.kindCase_ = kindCase_; - 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 org.tensorflow.proto.example.Feature) { - return mergeFrom((org.tensorflow.proto.example.Feature)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.example.Feature other) { - if (other == org.tensorflow.proto.example.Feature.getDefaultInstance()) return this; - switch (other.getKindCase()) { - case BYTES_LIST: { - mergeBytesList(other.getBytesList()); - break; - } - case FLOAT_LIST: { - mergeFloatList(other.getFloatList()); - break; - } - case INT64_LIST: { - mergeInt64List(other.getInt64List()); - break; - } - case KIND_NOT_SET: { - break; - } - } - 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 { - org.tensorflow.proto.example.Feature parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.example.Feature) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int kindCase_ = 0; - private java.lang.Object kind_; - public KindCase - getKindCase() { - return KindCase.forNumber( - kindCase_); - } - - public Builder clearKind() { - kindCase_ = 0; - kind_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.BytesList, org.tensorflow.proto.example.BytesList.Builder, org.tensorflow.proto.example.BytesListOrBuilder> bytesListBuilder_; - /** - * .tensorflow.BytesList bytes_list = 1; - */ - public boolean hasBytesList() { - return kindCase_ == 1; - } - /** - * .tensorflow.BytesList bytes_list = 1; - */ - public org.tensorflow.proto.example.BytesList getBytesList() { - if (bytesListBuilder_ == null) { - if (kindCase_ == 1) { - return (org.tensorflow.proto.example.BytesList) kind_; - } - return org.tensorflow.proto.example.BytesList.getDefaultInstance(); - } else { - if (kindCase_ == 1) { - return bytesListBuilder_.getMessage(); - } - return org.tensorflow.proto.example.BytesList.getDefaultInstance(); - } - } - /** - * .tensorflow.BytesList bytes_list = 1; - */ - public Builder setBytesList(org.tensorflow.proto.example.BytesList value) { - if (bytesListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - bytesListBuilder_.setMessage(value); - } - kindCase_ = 1; - return this; - } - /** - * .tensorflow.BytesList bytes_list = 1; - */ - public Builder setBytesList( - org.tensorflow.proto.example.BytesList.Builder builderForValue) { - if (bytesListBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - bytesListBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 1; - return this; - } - /** - * .tensorflow.BytesList bytes_list = 1; - */ - public Builder mergeBytesList(org.tensorflow.proto.example.BytesList value) { - if (bytesListBuilder_ == null) { - if (kindCase_ == 1 && - kind_ != org.tensorflow.proto.example.BytesList.getDefaultInstance()) { - kind_ = org.tensorflow.proto.example.BytesList.newBuilder((org.tensorflow.proto.example.BytesList) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 1) { - bytesListBuilder_.mergeFrom(value); - } - bytesListBuilder_.setMessage(value); - } - kindCase_ = 1; - return this; - } - /** - * .tensorflow.BytesList bytes_list = 1; - */ - public Builder clearBytesList() { - if (bytesListBuilder_ == null) { - if (kindCase_ == 1) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 1) { - kindCase_ = 0; - kind_ = null; - } - bytesListBuilder_.clear(); - } - return this; - } - /** - * .tensorflow.BytesList bytes_list = 1; - */ - public org.tensorflow.proto.example.BytesList.Builder getBytesListBuilder() { - return getBytesListFieldBuilder().getBuilder(); - } - /** - * .tensorflow.BytesList bytes_list = 1; - */ - public org.tensorflow.proto.example.BytesListOrBuilder getBytesListOrBuilder() { - if ((kindCase_ == 1) && (bytesListBuilder_ != null)) { - return bytesListBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 1) { - return (org.tensorflow.proto.example.BytesList) kind_; - } - return org.tensorflow.proto.example.BytesList.getDefaultInstance(); - } - } - /** - * .tensorflow.BytesList bytes_list = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.BytesList, org.tensorflow.proto.example.BytesList.Builder, org.tensorflow.proto.example.BytesListOrBuilder> - getBytesListFieldBuilder() { - if (bytesListBuilder_ == null) { - if (!(kindCase_ == 1)) { - kind_ = org.tensorflow.proto.example.BytesList.getDefaultInstance(); - } - bytesListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.BytesList, org.tensorflow.proto.example.BytesList.Builder, org.tensorflow.proto.example.BytesListOrBuilder>( - (org.tensorflow.proto.example.BytesList) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 1; - onChanged();; - return bytesListBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.FloatList, org.tensorflow.proto.example.FloatList.Builder, org.tensorflow.proto.example.FloatListOrBuilder> floatListBuilder_; - /** - * .tensorflow.FloatList float_list = 2; - */ - public boolean hasFloatList() { - return kindCase_ == 2; - } - /** - * .tensorflow.FloatList float_list = 2; - */ - public org.tensorflow.proto.example.FloatList getFloatList() { - if (floatListBuilder_ == null) { - if (kindCase_ == 2) { - return (org.tensorflow.proto.example.FloatList) kind_; - } - return org.tensorflow.proto.example.FloatList.getDefaultInstance(); - } else { - if (kindCase_ == 2) { - return floatListBuilder_.getMessage(); - } - return org.tensorflow.proto.example.FloatList.getDefaultInstance(); - } - } - /** - * .tensorflow.FloatList float_list = 2; - */ - public Builder setFloatList(org.tensorflow.proto.example.FloatList value) { - if (floatListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - floatListBuilder_.setMessage(value); - } - kindCase_ = 2; - return this; - } - /** - * .tensorflow.FloatList float_list = 2; - */ - public Builder setFloatList( - org.tensorflow.proto.example.FloatList.Builder builderForValue) { - if (floatListBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - floatListBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 2; - return this; - } - /** - * .tensorflow.FloatList float_list = 2; - */ - public Builder mergeFloatList(org.tensorflow.proto.example.FloatList value) { - if (floatListBuilder_ == null) { - if (kindCase_ == 2 && - kind_ != org.tensorflow.proto.example.FloatList.getDefaultInstance()) { - kind_ = org.tensorflow.proto.example.FloatList.newBuilder((org.tensorflow.proto.example.FloatList) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 2) { - floatListBuilder_.mergeFrom(value); - } - floatListBuilder_.setMessage(value); - } - kindCase_ = 2; - return this; - } - /** - * .tensorflow.FloatList float_list = 2; - */ - public Builder clearFloatList() { - if (floatListBuilder_ == null) { - if (kindCase_ == 2) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 2) { - kindCase_ = 0; - kind_ = null; - } - floatListBuilder_.clear(); - } - return this; - } - /** - * .tensorflow.FloatList float_list = 2; - */ - public org.tensorflow.proto.example.FloatList.Builder getFloatListBuilder() { - return getFloatListFieldBuilder().getBuilder(); - } - /** - * .tensorflow.FloatList float_list = 2; - */ - public org.tensorflow.proto.example.FloatListOrBuilder getFloatListOrBuilder() { - if ((kindCase_ == 2) && (floatListBuilder_ != null)) { - return floatListBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 2) { - return (org.tensorflow.proto.example.FloatList) kind_; - } - return org.tensorflow.proto.example.FloatList.getDefaultInstance(); - } - } - /** - * .tensorflow.FloatList float_list = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.FloatList, org.tensorflow.proto.example.FloatList.Builder, org.tensorflow.proto.example.FloatListOrBuilder> - getFloatListFieldBuilder() { - if (floatListBuilder_ == null) { - if (!(kindCase_ == 2)) { - kind_ = org.tensorflow.proto.example.FloatList.getDefaultInstance(); - } - floatListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.FloatList, org.tensorflow.proto.example.FloatList.Builder, org.tensorflow.proto.example.FloatListOrBuilder>( - (org.tensorflow.proto.example.FloatList) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 2; - onChanged();; - return floatListBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.Int64List, org.tensorflow.proto.example.Int64List.Builder, org.tensorflow.proto.example.Int64ListOrBuilder> int64ListBuilder_; - /** - * .tensorflow.Int64List int64_list = 3; - */ - public boolean hasInt64List() { - return kindCase_ == 3; - } - /** - * .tensorflow.Int64List int64_list = 3; - */ - public org.tensorflow.proto.example.Int64List getInt64List() { - if (int64ListBuilder_ == null) { - if (kindCase_ == 3) { - return (org.tensorflow.proto.example.Int64List) kind_; - } - return org.tensorflow.proto.example.Int64List.getDefaultInstance(); - } else { - if (kindCase_ == 3) { - return int64ListBuilder_.getMessage(); - } - return org.tensorflow.proto.example.Int64List.getDefaultInstance(); - } - } - /** - * .tensorflow.Int64List int64_list = 3; - */ - public Builder setInt64List(org.tensorflow.proto.example.Int64List value) { - if (int64ListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - int64ListBuilder_.setMessage(value); - } - kindCase_ = 3; - return this; - } - /** - * .tensorflow.Int64List int64_list = 3; - */ - public Builder setInt64List( - org.tensorflow.proto.example.Int64List.Builder builderForValue) { - if (int64ListBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - int64ListBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 3; - return this; - } - /** - * .tensorflow.Int64List int64_list = 3; - */ - public Builder mergeInt64List(org.tensorflow.proto.example.Int64List value) { - if (int64ListBuilder_ == null) { - if (kindCase_ == 3 && - kind_ != org.tensorflow.proto.example.Int64List.getDefaultInstance()) { - kind_ = org.tensorflow.proto.example.Int64List.newBuilder((org.tensorflow.proto.example.Int64List) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 3) { - int64ListBuilder_.mergeFrom(value); - } - int64ListBuilder_.setMessage(value); - } - kindCase_ = 3; - return this; - } - /** - * .tensorflow.Int64List int64_list = 3; - */ - public Builder clearInt64List() { - if (int64ListBuilder_ == null) { - if (kindCase_ == 3) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 3) { - kindCase_ = 0; - kind_ = null; - } - int64ListBuilder_.clear(); - } - return this; - } - /** - * .tensorflow.Int64List int64_list = 3; - */ - public org.tensorflow.proto.example.Int64List.Builder getInt64ListBuilder() { - return getInt64ListFieldBuilder().getBuilder(); - } - /** - * .tensorflow.Int64List int64_list = 3; - */ - public org.tensorflow.proto.example.Int64ListOrBuilder getInt64ListOrBuilder() { - if ((kindCase_ == 3) && (int64ListBuilder_ != null)) { - return int64ListBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 3) { - return (org.tensorflow.proto.example.Int64List) kind_; - } - return org.tensorflow.proto.example.Int64List.getDefaultInstance(); - } - } - /** - * .tensorflow.Int64List int64_list = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.Int64List, org.tensorflow.proto.example.Int64List.Builder, org.tensorflow.proto.example.Int64ListOrBuilder> - getInt64ListFieldBuilder() { - if (int64ListBuilder_ == null) { - if (!(kindCase_ == 3)) { - kind_ = org.tensorflow.proto.example.Int64List.getDefaultInstance(); - } - int64ListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.Int64List, org.tensorflow.proto.example.Int64List.Builder, org.tensorflow.proto.example.Int64ListOrBuilder>( - (org.tensorflow.proto.example.Int64List) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 3; - onChanged();; - return int64ListBuilder_; - } - @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:tensorflow.Feature) - } - - // @@protoc_insertion_point(class_scope:tensorflow.Feature) - private static final org.tensorflow.proto.example.Feature DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.example.Feature(); - } - - public static org.tensorflow.proto.example.Feature getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Feature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Feature(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.example.Feature getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureConfiguration.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureConfiguration.java deleted file mode 100644 index 6034a97c93e..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureConfiguration.java +++ /dev/null @@ -1,893 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/example_parser_configuration.proto - -package org.tensorflow.proto.example; - -/** - * Protobuf type {@code tensorflow.FeatureConfiguration} - */ -public final class FeatureConfiguration extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.FeatureConfiguration) - FeatureConfigurationOrBuilder { -private static final long serialVersionUID = 0L; - // Use FeatureConfiguration.newBuilder() to construct. - private FeatureConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FeatureConfiguration() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FeatureConfiguration(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FeatureConfiguration( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.tensorflow.proto.example.FixedLenFeatureProto.Builder subBuilder = null; - if (configCase_ == 1) { - subBuilder = ((org.tensorflow.proto.example.FixedLenFeatureProto) config_).toBuilder(); - } - config_ = - input.readMessage(org.tensorflow.proto.example.FixedLenFeatureProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.example.FixedLenFeatureProto) config_); - config_ = subBuilder.buildPartial(); - } - configCase_ = 1; - break; - } - case 18: { - org.tensorflow.proto.example.VarLenFeatureProto.Builder subBuilder = null; - if (configCase_ == 2) { - subBuilder = ((org.tensorflow.proto.example.VarLenFeatureProto) config_).toBuilder(); - } - config_ = - input.readMessage(org.tensorflow.proto.example.VarLenFeatureProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.example.VarLenFeatureProto) config_); - config_ = subBuilder.buildPartial(); - } - configCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_FeatureConfiguration_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_FeatureConfiguration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.FeatureConfiguration.class, org.tensorflow.proto.example.FeatureConfiguration.Builder.class); - } - - private int configCase_ = 0; - private java.lang.Object config_; - public enum ConfigCase - implements com.google.protobuf.Internal.EnumLite { - FIXED_LEN_FEATURE(1), - VAR_LEN_FEATURE(2), - CONFIG_NOT_SET(0); - private final int value; - private ConfigCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ConfigCase valueOf(int value) { - return forNumber(value); - } - - public static ConfigCase forNumber(int value) { - switch (value) { - case 1: return FIXED_LEN_FEATURE; - case 2: return VAR_LEN_FEATURE; - case 0: return CONFIG_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ConfigCase - getConfigCase() { - return ConfigCase.forNumber( - configCase_); - } - - public static final int FIXED_LEN_FEATURE_FIELD_NUMBER = 1; - /** - * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; - */ - public boolean hasFixedLenFeature() { - return configCase_ == 1; - } - /** - * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; - */ - public org.tensorflow.proto.example.FixedLenFeatureProto getFixedLenFeature() { - if (configCase_ == 1) { - return (org.tensorflow.proto.example.FixedLenFeatureProto) config_; - } - return org.tensorflow.proto.example.FixedLenFeatureProto.getDefaultInstance(); - } - /** - * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; - */ - public org.tensorflow.proto.example.FixedLenFeatureProtoOrBuilder getFixedLenFeatureOrBuilder() { - if (configCase_ == 1) { - return (org.tensorflow.proto.example.FixedLenFeatureProto) config_; - } - return org.tensorflow.proto.example.FixedLenFeatureProto.getDefaultInstance(); - } - - public static final int VAR_LEN_FEATURE_FIELD_NUMBER = 2; - /** - * .tensorflow.VarLenFeatureProto var_len_feature = 2; - */ - public boolean hasVarLenFeature() { - return configCase_ == 2; - } - /** - * .tensorflow.VarLenFeatureProto var_len_feature = 2; - */ - public org.tensorflow.proto.example.VarLenFeatureProto getVarLenFeature() { - if (configCase_ == 2) { - return (org.tensorflow.proto.example.VarLenFeatureProto) config_; - } - return org.tensorflow.proto.example.VarLenFeatureProto.getDefaultInstance(); - } - /** - * .tensorflow.VarLenFeatureProto var_len_feature = 2; - */ - public org.tensorflow.proto.example.VarLenFeatureProtoOrBuilder getVarLenFeatureOrBuilder() { - if (configCase_ == 2) { - return (org.tensorflow.proto.example.VarLenFeatureProto) config_; - } - return org.tensorflow.proto.example.VarLenFeatureProto.getDefaultInstance(); - } - - 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 (configCase_ == 1) { - output.writeMessage(1, (org.tensorflow.proto.example.FixedLenFeatureProto) config_); - } - if (configCase_ == 2) { - output.writeMessage(2, (org.tensorflow.proto.example.VarLenFeatureProto) config_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (configCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (org.tensorflow.proto.example.FixedLenFeatureProto) config_); - } - if (configCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (org.tensorflow.proto.example.VarLenFeatureProto) config_); - } - 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 org.tensorflow.proto.example.FeatureConfiguration)) { - return super.equals(obj); - } - org.tensorflow.proto.example.FeatureConfiguration other = (org.tensorflow.proto.example.FeatureConfiguration) obj; - - if (!getConfigCase().equals(other.getConfigCase())) return false; - switch (configCase_) { - case 1: - if (!getFixedLenFeature() - .equals(other.getFixedLenFeature())) return false; - break; - case 2: - if (!getVarLenFeature() - .equals(other.getVarLenFeature())) return false; - break; - case 0: - default: - } - 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(); - switch (configCase_) { - case 1: - hash = (37 * hash) + FIXED_LEN_FEATURE_FIELD_NUMBER; - hash = (53 * hash) + getFixedLenFeature().hashCode(); - break; - case 2: - hash = (37 * hash) + VAR_LEN_FEATURE_FIELD_NUMBER; - hash = (53 * hash) + getVarLenFeature().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.example.FeatureConfiguration parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.FeatureConfiguration parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.FeatureConfiguration parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.FeatureConfiguration parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.FeatureConfiguration parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.FeatureConfiguration parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.FeatureConfiguration parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.FeatureConfiguration 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 org.tensorflow.proto.example.FeatureConfiguration parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.FeatureConfiguration 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 org.tensorflow.proto.example.FeatureConfiguration parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.FeatureConfiguration 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(org.tensorflow.proto.example.FeatureConfiguration prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.FeatureConfiguration} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.FeatureConfiguration) - org.tensorflow.proto.example.FeatureConfigurationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_FeatureConfiguration_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_FeatureConfiguration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.FeatureConfiguration.class, org.tensorflow.proto.example.FeatureConfiguration.Builder.class); - } - - // Construct using org.tensorflow.proto.example.FeatureConfiguration.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - configCase_ = 0; - config_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_FeatureConfiguration_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.example.FeatureConfiguration getDefaultInstanceForType() { - return org.tensorflow.proto.example.FeatureConfiguration.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.example.FeatureConfiguration build() { - org.tensorflow.proto.example.FeatureConfiguration result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.example.FeatureConfiguration buildPartial() { - org.tensorflow.proto.example.FeatureConfiguration result = new org.tensorflow.proto.example.FeatureConfiguration(this); - if (configCase_ == 1) { - if (fixedLenFeatureBuilder_ == null) { - result.config_ = config_; - } else { - result.config_ = fixedLenFeatureBuilder_.build(); - } - } - if (configCase_ == 2) { - if (varLenFeatureBuilder_ == null) { - result.config_ = config_; - } else { - result.config_ = varLenFeatureBuilder_.build(); - } - } - result.configCase_ = configCase_; - 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 org.tensorflow.proto.example.FeatureConfiguration) { - return mergeFrom((org.tensorflow.proto.example.FeatureConfiguration)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.example.FeatureConfiguration other) { - if (other == org.tensorflow.proto.example.FeatureConfiguration.getDefaultInstance()) return this; - switch (other.getConfigCase()) { - case FIXED_LEN_FEATURE: { - mergeFixedLenFeature(other.getFixedLenFeature()); - break; - } - case VAR_LEN_FEATURE: { - mergeVarLenFeature(other.getVarLenFeature()); - break; - } - case CONFIG_NOT_SET: { - break; - } - } - 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 { - org.tensorflow.proto.example.FeatureConfiguration parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.example.FeatureConfiguration) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int configCase_ = 0; - private java.lang.Object config_; - public ConfigCase - getConfigCase() { - return ConfigCase.forNumber( - configCase_); - } - - public Builder clearConfig() { - configCase_ = 0; - config_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.FixedLenFeatureProto, org.tensorflow.proto.example.FixedLenFeatureProto.Builder, org.tensorflow.proto.example.FixedLenFeatureProtoOrBuilder> fixedLenFeatureBuilder_; - /** - * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; - */ - public boolean hasFixedLenFeature() { - return configCase_ == 1; - } - /** - * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; - */ - public org.tensorflow.proto.example.FixedLenFeatureProto getFixedLenFeature() { - if (fixedLenFeatureBuilder_ == null) { - if (configCase_ == 1) { - return (org.tensorflow.proto.example.FixedLenFeatureProto) config_; - } - return org.tensorflow.proto.example.FixedLenFeatureProto.getDefaultInstance(); - } else { - if (configCase_ == 1) { - return fixedLenFeatureBuilder_.getMessage(); - } - return org.tensorflow.proto.example.FixedLenFeatureProto.getDefaultInstance(); - } - } - /** - * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; - */ - public Builder setFixedLenFeature(org.tensorflow.proto.example.FixedLenFeatureProto value) { - if (fixedLenFeatureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - onChanged(); - } else { - fixedLenFeatureBuilder_.setMessage(value); - } - configCase_ = 1; - return this; - } - /** - * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; - */ - public Builder setFixedLenFeature( - org.tensorflow.proto.example.FixedLenFeatureProto.Builder builderForValue) { - if (fixedLenFeatureBuilder_ == null) { - config_ = builderForValue.build(); - onChanged(); - } else { - fixedLenFeatureBuilder_.setMessage(builderForValue.build()); - } - configCase_ = 1; - return this; - } - /** - * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; - */ - public Builder mergeFixedLenFeature(org.tensorflow.proto.example.FixedLenFeatureProto value) { - if (fixedLenFeatureBuilder_ == null) { - if (configCase_ == 1 && - config_ != org.tensorflow.proto.example.FixedLenFeatureProto.getDefaultInstance()) { - config_ = org.tensorflow.proto.example.FixedLenFeatureProto.newBuilder((org.tensorflow.proto.example.FixedLenFeatureProto) config_) - .mergeFrom(value).buildPartial(); - } else { - config_ = value; - } - onChanged(); - } else { - if (configCase_ == 1) { - fixedLenFeatureBuilder_.mergeFrom(value); - } - fixedLenFeatureBuilder_.setMessage(value); - } - configCase_ = 1; - return this; - } - /** - * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; - */ - public Builder clearFixedLenFeature() { - if (fixedLenFeatureBuilder_ == null) { - if (configCase_ == 1) { - configCase_ = 0; - config_ = null; - onChanged(); - } - } else { - if (configCase_ == 1) { - configCase_ = 0; - config_ = null; - } - fixedLenFeatureBuilder_.clear(); - } - return this; - } - /** - * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; - */ - public org.tensorflow.proto.example.FixedLenFeatureProto.Builder getFixedLenFeatureBuilder() { - return getFixedLenFeatureFieldBuilder().getBuilder(); - } - /** - * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; - */ - public org.tensorflow.proto.example.FixedLenFeatureProtoOrBuilder getFixedLenFeatureOrBuilder() { - if ((configCase_ == 1) && (fixedLenFeatureBuilder_ != null)) { - return fixedLenFeatureBuilder_.getMessageOrBuilder(); - } else { - if (configCase_ == 1) { - return (org.tensorflow.proto.example.FixedLenFeatureProto) config_; - } - return org.tensorflow.proto.example.FixedLenFeatureProto.getDefaultInstance(); - } - } - /** - * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.FixedLenFeatureProto, org.tensorflow.proto.example.FixedLenFeatureProto.Builder, org.tensorflow.proto.example.FixedLenFeatureProtoOrBuilder> - getFixedLenFeatureFieldBuilder() { - if (fixedLenFeatureBuilder_ == null) { - if (!(configCase_ == 1)) { - config_ = org.tensorflow.proto.example.FixedLenFeatureProto.getDefaultInstance(); - } - fixedLenFeatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.FixedLenFeatureProto, org.tensorflow.proto.example.FixedLenFeatureProto.Builder, org.tensorflow.proto.example.FixedLenFeatureProtoOrBuilder>( - (org.tensorflow.proto.example.FixedLenFeatureProto) config_, - getParentForChildren(), - isClean()); - config_ = null; - } - configCase_ = 1; - onChanged();; - return fixedLenFeatureBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.VarLenFeatureProto, org.tensorflow.proto.example.VarLenFeatureProto.Builder, org.tensorflow.proto.example.VarLenFeatureProtoOrBuilder> varLenFeatureBuilder_; - /** - * .tensorflow.VarLenFeatureProto var_len_feature = 2; - */ - public boolean hasVarLenFeature() { - return configCase_ == 2; - } - /** - * .tensorflow.VarLenFeatureProto var_len_feature = 2; - */ - public org.tensorflow.proto.example.VarLenFeatureProto getVarLenFeature() { - if (varLenFeatureBuilder_ == null) { - if (configCase_ == 2) { - return (org.tensorflow.proto.example.VarLenFeatureProto) config_; - } - return org.tensorflow.proto.example.VarLenFeatureProto.getDefaultInstance(); - } else { - if (configCase_ == 2) { - return varLenFeatureBuilder_.getMessage(); - } - return org.tensorflow.proto.example.VarLenFeatureProto.getDefaultInstance(); - } - } - /** - * .tensorflow.VarLenFeatureProto var_len_feature = 2; - */ - public Builder setVarLenFeature(org.tensorflow.proto.example.VarLenFeatureProto value) { - if (varLenFeatureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - onChanged(); - } else { - varLenFeatureBuilder_.setMessage(value); - } - configCase_ = 2; - return this; - } - /** - * .tensorflow.VarLenFeatureProto var_len_feature = 2; - */ - public Builder setVarLenFeature( - org.tensorflow.proto.example.VarLenFeatureProto.Builder builderForValue) { - if (varLenFeatureBuilder_ == null) { - config_ = builderForValue.build(); - onChanged(); - } else { - varLenFeatureBuilder_.setMessage(builderForValue.build()); - } - configCase_ = 2; - return this; - } - /** - * .tensorflow.VarLenFeatureProto var_len_feature = 2; - */ - public Builder mergeVarLenFeature(org.tensorflow.proto.example.VarLenFeatureProto value) { - if (varLenFeatureBuilder_ == null) { - if (configCase_ == 2 && - config_ != org.tensorflow.proto.example.VarLenFeatureProto.getDefaultInstance()) { - config_ = org.tensorflow.proto.example.VarLenFeatureProto.newBuilder((org.tensorflow.proto.example.VarLenFeatureProto) config_) - .mergeFrom(value).buildPartial(); - } else { - config_ = value; - } - onChanged(); - } else { - if (configCase_ == 2) { - varLenFeatureBuilder_.mergeFrom(value); - } - varLenFeatureBuilder_.setMessage(value); - } - configCase_ = 2; - return this; - } - /** - * .tensorflow.VarLenFeatureProto var_len_feature = 2; - */ - public Builder clearVarLenFeature() { - if (varLenFeatureBuilder_ == null) { - if (configCase_ == 2) { - configCase_ = 0; - config_ = null; - onChanged(); - } - } else { - if (configCase_ == 2) { - configCase_ = 0; - config_ = null; - } - varLenFeatureBuilder_.clear(); - } - return this; - } - /** - * .tensorflow.VarLenFeatureProto var_len_feature = 2; - */ - public org.tensorflow.proto.example.VarLenFeatureProto.Builder getVarLenFeatureBuilder() { - return getVarLenFeatureFieldBuilder().getBuilder(); - } - /** - * .tensorflow.VarLenFeatureProto var_len_feature = 2; - */ - public org.tensorflow.proto.example.VarLenFeatureProtoOrBuilder getVarLenFeatureOrBuilder() { - if ((configCase_ == 2) && (varLenFeatureBuilder_ != null)) { - return varLenFeatureBuilder_.getMessageOrBuilder(); - } else { - if (configCase_ == 2) { - return (org.tensorflow.proto.example.VarLenFeatureProto) config_; - } - return org.tensorflow.proto.example.VarLenFeatureProto.getDefaultInstance(); - } - } - /** - * .tensorflow.VarLenFeatureProto var_len_feature = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.VarLenFeatureProto, org.tensorflow.proto.example.VarLenFeatureProto.Builder, org.tensorflow.proto.example.VarLenFeatureProtoOrBuilder> - getVarLenFeatureFieldBuilder() { - if (varLenFeatureBuilder_ == null) { - if (!(configCase_ == 2)) { - config_ = org.tensorflow.proto.example.VarLenFeatureProto.getDefaultInstance(); - } - varLenFeatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.VarLenFeatureProto, org.tensorflow.proto.example.VarLenFeatureProto.Builder, org.tensorflow.proto.example.VarLenFeatureProtoOrBuilder>( - (org.tensorflow.proto.example.VarLenFeatureProto) config_, - getParentForChildren(), - isClean()); - config_ = null; - } - configCase_ = 2; - onChanged();; - return varLenFeatureBuilder_; - } - @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:tensorflow.FeatureConfiguration) - } - - // @@protoc_insertion_point(class_scope:tensorflow.FeatureConfiguration) - private static final org.tensorflow.proto.example.FeatureConfiguration DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.example.FeatureConfiguration(); - } - - public static org.tensorflow.proto.example.FeatureConfiguration getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureConfiguration parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureConfiguration(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.example.FeatureConfiguration getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureConfigurationOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureConfigurationOrBuilder.java deleted file mode 100644 index 917025caa25..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureConfigurationOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/example_parser_configuration.proto - -package org.tensorflow.proto.example; - -public interface FeatureConfigurationOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.FeatureConfiguration) - com.google.protobuf.MessageOrBuilder { - - /** - * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; - */ - boolean hasFixedLenFeature(); - /** - * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; - */ - org.tensorflow.proto.example.FixedLenFeatureProto getFixedLenFeature(); - /** - * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; - */ - org.tensorflow.proto.example.FixedLenFeatureProtoOrBuilder getFixedLenFeatureOrBuilder(); - - /** - * .tensorflow.VarLenFeatureProto var_len_feature = 2; - */ - boolean hasVarLenFeature(); - /** - * .tensorflow.VarLenFeatureProto var_len_feature = 2; - */ - org.tensorflow.proto.example.VarLenFeatureProto getVarLenFeature(); - /** - * .tensorflow.VarLenFeatureProto var_len_feature = 2; - */ - org.tensorflow.proto.example.VarLenFeatureProtoOrBuilder getVarLenFeatureOrBuilder(); - - public org.tensorflow.proto.example.FeatureConfiguration.ConfigCase getConfigCase(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureList.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureList.java deleted file mode 100644 index 6aa9f29864a..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureList.java +++ /dev/null @@ -1,781 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/feature.proto - -package org.tensorflow.proto.example; - -/** - *
- * Containers for sequential data.
- * A FeatureList contains lists of Features.  These may hold zero or more
- * Feature values.
- * FeatureLists are organized into categories by name.  The FeatureLists message
- * contains the mapping from name to FeatureList.
- * 
- * - * Protobuf type {@code tensorflow.FeatureList} - */ -public final class FeatureList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.FeatureList) - FeatureListOrBuilder { -private static final long serialVersionUID = 0L; - // Use FeatureList.newBuilder() to construct. - private FeatureList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FeatureList() { - feature_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FeatureList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FeatureList( - 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)) { - feature_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - feature_.add( - input.readMessage(org.tensorflow.proto.example.Feature.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)) { - feature_ = java.util.Collections.unmodifiableList(feature_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_FeatureList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_FeatureList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.FeatureList.class, org.tensorflow.proto.example.FeatureList.Builder.class); - } - - public static final int FEATURE_FIELD_NUMBER = 1; - private java.util.List feature_; - /** - * repeated .tensorflow.Feature feature = 1; - */ - public java.util.List getFeatureList() { - return feature_; - } - /** - * repeated .tensorflow.Feature feature = 1; - */ - public java.util.List - getFeatureOrBuilderList() { - return feature_; - } - /** - * repeated .tensorflow.Feature feature = 1; - */ - public int getFeatureCount() { - return feature_.size(); - } - /** - * repeated .tensorflow.Feature feature = 1; - */ - public org.tensorflow.proto.example.Feature getFeature(int index) { - return feature_.get(index); - } - /** - * repeated .tensorflow.Feature feature = 1; - */ - public org.tensorflow.proto.example.FeatureOrBuilder getFeatureOrBuilder( - int index) { - return feature_.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 < feature_.size(); i++) { - output.writeMessage(1, feature_.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 < feature_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, feature_.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 org.tensorflow.proto.example.FeatureList)) { - return super.equals(obj); - } - org.tensorflow.proto.example.FeatureList other = (org.tensorflow.proto.example.FeatureList) obj; - - if (!getFeatureList() - .equals(other.getFeatureList())) 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 (getFeatureCount() > 0) { - hash = (37 * hash) + FEATURE_FIELD_NUMBER; - hash = (53 * hash) + getFeatureList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.example.FeatureList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.FeatureList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.FeatureList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.FeatureList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.FeatureList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.FeatureList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.FeatureList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.FeatureList 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 org.tensorflow.proto.example.FeatureList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.FeatureList 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 org.tensorflow.proto.example.FeatureList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.FeatureList 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(org.tensorflow.proto.example.FeatureList 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; - } - /** - *
-   * Containers for sequential data.
-   * A FeatureList contains lists of Features.  These may hold zero or more
-   * Feature values.
-   * FeatureLists are organized into categories by name.  The FeatureLists message
-   * contains the mapping from name to FeatureList.
-   * 
- * - * Protobuf type {@code tensorflow.FeatureList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.FeatureList) - org.tensorflow.proto.example.FeatureListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_FeatureList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_FeatureList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.FeatureList.class, org.tensorflow.proto.example.FeatureList.Builder.class); - } - - // Construct using org.tensorflow.proto.example.FeatureList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getFeatureFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (featureBuilder_ == null) { - feature_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - featureBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_FeatureList_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.example.FeatureList getDefaultInstanceForType() { - return org.tensorflow.proto.example.FeatureList.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.example.FeatureList build() { - org.tensorflow.proto.example.FeatureList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.example.FeatureList buildPartial() { - org.tensorflow.proto.example.FeatureList result = new org.tensorflow.proto.example.FeatureList(this); - int from_bitField0_ = bitField0_; - if (featureBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - feature_ = java.util.Collections.unmodifiableList(feature_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.feature_ = feature_; - } else { - result.feature_ = featureBuilder_.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 org.tensorflow.proto.example.FeatureList) { - return mergeFrom((org.tensorflow.proto.example.FeatureList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.example.FeatureList other) { - if (other == org.tensorflow.proto.example.FeatureList.getDefaultInstance()) return this; - if (featureBuilder_ == null) { - if (!other.feature_.isEmpty()) { - if (feature_.isEmpty()) { - feature_ = other.feature_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFeatureIsMutable(); - feature_.addAll(other.feature_); - } - onChanged(); - } - } else { - if (!other.feature_.isEmpty()) { - if (featureBuilder_.isEmpty()) { - featureBuilder_.dispose(); - featureBuilder_ = null; - feature_ = other.feature_; - bitField0_ = (bitField0_ & ~0x00000001); - featureBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFeatureFieldBuilder() : null; - } else { - featureBuilder_.addAllMessages(other.feature_); - } - } - } - 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 { - org.tensorflow.proto.example.FeatureList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.example.FeatureList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List feature_ = - java.util.Collections.emptyList(); - private void ensureFeatureIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - feature_ = new java.util.ArrayList(feature_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.example.Feature, org.tensorflow.proto.example.Feature.Builder, org.tensorflow.proto.example.FeatureOrBuilder> featureBuilder_; - - /** - * repeated .tensorflow.Feature feature = 1; - */ - public java.util.List getFeatureList() { - if (featureBuilder_ == null) { - return java.util.Collections.unmodifiableList(feature_); - } else { - return featureBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.Feature feature = 1; - */ - public int getFeatureCount() { - if (featureBuilder_ == null) { - return feature_.size(); - } else { - return featureBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.Feature feature = 1; - */ - public org.tensorflow.proto.example.Feature getFeature(int index) { - if (featureBuilder_ == null) { - return feature_.get(index); - } else { - return featureBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.Feature feature = 1; - */ - public Builder setFeature( - int index, org.tensorflow.proto.example.Feature value) { - if (featureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFeatureIsMutable(); - feature_.set(index, value); - onChanged(); - } else { - featureBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.Feature feature = 1; - */ - public Builder setFeature( - int index, org.tensorflow.proto.example.Feature.Builder builderForValue) { - if (featureBuilder_ == null) { - ensureFeatureIsMutable(); - feature_.set(index, builderForValue.build()); - onChanged(); - } else { - featureBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.Feature feature = 1; - */ - public Builder addFeature(org.tensorflow.proto.example.Feature value) { - if (featureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFeatureIsMutable(); - feature_.add(value); - onChanged(); - } else { - featureBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.Feature feature = 1; - */ - public Builder addFeature( - int index, org.tensorflow.proto.example.Feature value) { - if (featureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFeatureIsMutable(); - feature_.add(index, value); - onChanged(); - } else { - featureBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.Feature feature = 1; - */ - public Builder addFeature( - org.tensorflow.proto.example.Feature.Builder builderForValue) { - if (featureBuilder_ == null) { - ensureFeatureIsMutable(); - feature_.add(builderForValue.build()); - onChanged(); - } else { - featureBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.Feature feature = 1; - */ - public Builder addFeature( - int index, org.tensorflow.proto.example.Feature.Builder builderForValue) { - if (featureBuilder_ == null) { - ensureFeatureIsMutable(); - feature_.add(index, builderForValue.build()); - onChanged(); - } else { - featureBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.Feature feature = 1; - */ - public Builder addAllFeature( - java.lang.Iterable values) { - if (featureBuilder_ == null) { - ensureFeatureIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, feature_); - onChanged(); - } else { - featureBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.Feature feature = 1; - */ - public Builder clearFeature() { - if (featureBuilder_ == null) { - feature_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - featureBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.Feature feature = 1; - */ - public Builder removeFeature(int index) { - if (featureBuilder_ == null) { - ensureFeatureIsMutable(); - feature_.remove(index); - onChanged(); - } else { - featureBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.Feature feature = 1; - */ - public org.tensorflow.proto.example.Feature.Builder getFeatureBuilder( - int index) { - return getFeatureFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.Feature feature = 1; - */ - public org.tensorflow.proto.example.FeatureOrBuilder getFeatureOrBuilder( - int index) { - if (featureBuilder_ == null) { - return feature_.get(index); } else { - return featureBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.Feature feature = 1; - */ - public java.util.List - getFeatureOrBuilderList() { - if (featureBuilder_ != null) { - return featureBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(feature_); - } - } - /** - * repeated .tensorflow.Feature feature = 1; - */ - public org.tensorflow.proto.example.Feature.Builder addFeatureBuilder() { - return getFeatureFieldBuilder().addBuilder( - org.tensorflow.proto.example.Feature.getDefaultInstance()); - } - /** - * repeated .tensorflow.Feature feature = 1; - */ - public org.tensorflow.proto.example.Feature.Builder addFeatureBuilder( - int index) { - return getFeatureFieldBuilder().addBuilder( - index, org.tensorflow.proto.example.Feature.getDefaultInstance()); - } - /** - * repeated .tensorflow.Feature feature = 1; - */ - public java.util.List - getFeatureBuilderList() { - return getFeatureFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.example.Feature, org.tensorflow.proto.example.Feature.Builder, org.tensorflow.proto.example.FeatureOrBuilder> - getFeatureFieldBuilder() { - if (featureBuilder_ == null) { - featureBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.example.Feature, org.tensorflow.proto.example.Feature.Builder, org.tensorflow.proto.example.FeatureOrBuilder>( - feature_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - feature_ = null; - } - return featureBuilder_; - } - @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:tensorflow.FeatureList) - } - - // @@protoc_insertion_point(class_scope:tensorflow.FeatureList) - private static final org.tensorflow.proto.example.FeatureList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.example.FeatureList(); - } - - public static org.tensorflow.proto.example.FeatureList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.example.FeatureList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureListOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureListOrBuilder.java deleted file mode 100644 index 9302c3512db..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureListOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/feature.proto - -package org.tensorflow.proto.example; - -public interface FeatureListOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.FeatureList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .tensorflow.Feature feature = 1; - */ - java.util.List - getFeatureList(); - /** - * repeated .tensorflow.Feature feature = 1; - */ - org.tensorflow.proto.example.Feature getFeature(int index); - /** - * repeated .tensorflow.Feature feature = 1; - */ - int getFeatureCount(); - /** - * repeated .tensorflow.Feature feature = 1; - */ - java.util.List - getFeatureOrBuilderList(); - /** - * repeated .tensorflow.Feature feature = 1; - */ - org.tensorflow.proto.example.FeatureOrBuilder getFeatureOrBuilder( - int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureLists.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureLists.java deleted file mode 100644 index 4b10f2b7d90..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureLists.java +++ /dev/null @@ -1,739 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/feature.proto - -package org.tensorflow.proto.example; - -/** - * Protobuf type {@code tensorflow.FeatureLists} - */ -public final class FeatureLists extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.FeatureLists) - FeatureListsOrBuilder { -private static final long serialVersionUID = 0L; - // Use FeatureLists.newBuilder() to construct. - private FeatureLists(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FeatureLists() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FeatureLists(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FeatureLists( - 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)) { - featureList_ = com.google.protobuf.MapField.newMapField( - FeatureListDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - featureList__ = input.readMessage( - FeatureListDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - featureList_.getMutableMap().put( - featureList__.getKey(), featureList__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_FeatureLists_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetFeatureList(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_FeatureLists_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.FeatureLists.class, org.tensorflow.proto.example.FeatureLists.Builder.class); - } - - public static final int FEATURE_LIST_FIELD_NUMBER = 1; - private static final class FeatureListDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, org.tensorflow.proto.example.FeatureList> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_FeatureLists_FeatureListEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.tensorflow.proto.example.FeatureList.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.example.FeatureList> featureList_; - private com.google.protobuf.MapField - internalGetFeatureList() { - if (featureList_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FeatureListDefaultEntryHolder.defaultEntry); - } - return featureList_; - } - - public int getFeatureListCount() { - return internalGetFeatureList().getMap().size(); - } - /** - *
-   * Map from feature name to feature list.
-   * 
- * - * map<string, .tensorflow.FeatureList> feature_list = 1; - */ - - public boolean containsFeatureList( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetFeatureList().getMap().containsKey(key); - } - /** - * Use {@link #getFeatureListMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getFeatureList() { - return getFeatureListMap(); - } - /** - *
-   * Map from feature name to feature list.
-   * 
- * - * map<string, .tensorflow.FeatureList> feature_list = 1; - */ - - public java.util.Map getFeatureListMap() { - return internalGetFeatureList().getMap(); - } - /** - *
-   * Map from feature name to feature list.
-   * 
- * - * map<string, .tensorflow.FeatureList> feature_list = 1; - */ - - public org.tensorflow.proto.example.FeatureList getFeatureListOrDefault( - java.lang.String key, - org.tensorflow.proto.example.FeatureList defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetFeatureList().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-   * Map from feature name to feature list.
-   * 
- * - * map<string, .tensorflow.FeatureList> feature_list = 1; - */ - - public org.tensorflow.proto.example.FeatureList getFeatureListOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetFeatureList().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, - internalGetFeatureList(), - FeatureListDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetFeatureList().getMap().entrySet()) { - com.google.protobuf.MapEntry - featureList__ = FeatureListDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, featureList__); - } - 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 org.tensorflow.proto.example.FeatureLists)) { - return super.equals(obj); - } - org.tensorflow.proto.example.FeatureLists other = (org.tensorflow.proto.example.FeatureLists) obj; - - if (!internalGetFeatureList().equals( - other.internalGetFeatureList())) 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 (!internalGetFeatureList().getMap().isEmpty()) { - hash = (37 * hash) + FEATURE_LIST_FIELD_NUMBER; - hash = (53 * hash) + internalGetFeatureList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.example.FeatureLists parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.FeatureLists parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.FeatureLists parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.FeatureLists parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.FeatureLists parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.FeatureLists parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.FeatureLists parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.FeatureLists 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 org.tensorflow.proto.example.FeatureLists parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.FeatureLists 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 org.tensorflow.proto.example.FeatureLists parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.FeatureLists 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(org.tensorflow.proto.example.FeatureLists prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.FeatureLists} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.FeatureLists) - org.tensorflow.proto.example.FeatureListsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_FeatureLists_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetFeatureList(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableFeatureList(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_FeatureLists_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.FeatureLists.class, org.tensorflow.proto.example.FeatureLists.Builder.class); - } - - // Construct using org.tensorflow.proto.example.FeatureLists.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableFeatureList().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_FeatureLists_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.example.FeatureLists getDefaultInstanceForType() { - return org.tensorflow.proto.example.FeatureLists.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.example.FeatureLists build() { - org.tensorflow.proto.example.FeatureLists result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.example.FeatureLists buildPartial() { - org.tensorflow.proto.example.FeatureLists result = new org.tensorflow.proto.example.FeatureLists(this); - int from_bitField0_ = bitField0_; - result.featureList_ = internalGetFeatureList(); - result.featureList_.makeImmutable(); - 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 org.tensorflow.proto.example.FeatureLists) { - return mergeFrom((org.tensorflow.proto.example.FeatureLists)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.example.FeatureLists other) { - if (other == org.tensorflow.proto.example.FeatureLists.getDefaultInstance()) return this; - internalGetMutableFeatureList().mergeFrom( - other.internalGetFeatureList()); - 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 { - org.tensorflow.proto.example.FeatureLists parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.example.FeatureLists) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.example.FeatureList> featureList_; - private com.google.protobuf.MapField - internalGetFeatureList() { - if (featureList_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FeatureListDefaultEntryHolder.defaultEntry); - } - return featureList_; - } - private com.google.protobuf.MapField - internalGetMutableFeatureList() { - onChanged();; - if (featureList_ == null) { - featureList_ = com.google.protobuf.MapField.newMapField( - FeatureListDefaultEntryHolder.defaultEntry); - } - if (!featureList_.isMutable()) { - featureList_ = featureList_.copy(); - } - return featureList_; - } - - public int getFeatureListCount() { - return internalGetFeatureList().getMap().size(); - } - /** - *
-     * Map from feature name to feature list.
-     * 
- * - * map<string, .tensorflow.FeatureList> feature_list = 1; - */ - - public boolean containsFeatureList( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetFeatureList().getMap().containsKey(key); - } - /** - * Use {@link #getFeatureListMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getFeatureList() { - return getFeatureListMap(); - } - /** - *
-     * Map from feature name to feature list.
-     * 
- * - * map<string, .tensorflow.FeatureList> feature_list = 1; - */ - - public java.util.Map getFeatureListMap() { - return internalGetFeatureList().getMap(); - } - /** - *
-     * Map from feature name to feature list.
-     * 
- * - * map<string, .tensorflow.FeatureList> feature_list = 1; - */ - - public org.tensorflow.proto.example.FeatureList getFeatureListOrDefault( - java.lang.String key, - org.tensorflow.proto.example.FeatureList defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetFeatureList().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Map from feature name to feature list.
-     * 
- * - * map<string, .tensorflow.FeatureList> feature_list = 1; - */ - - public org.tensorflow.proto.example.FeatureList getFeatureListOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetFeatureList().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearFeatureList() { - internalGetMutableFeatureList().getMutableMap() - .clear(); - return this; - } - /** - *
-     * Map from feature name to feature list.
-     * 
- * - * map<string, .tensorflow.FeatureList> feature_list = 1; - */ - - public Builder removeFeatureList( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableFeatureList().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableFeatureList() { - return internalGetMutableFeatureList().getMutableMap(); - } - /** - *
-     * Map from feature name to feature list.
-     * 
- * - * map<string, .tensorflow.FeatureList> feature_list = 1; - */ - public Builder putFeatureList( - java.lang.String key, - org.tensorflow.proto.example.FeatureList value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableFeatureList().getMutableMap() - .put(key, value); - return this; - } - /** - *
-     * Map from feature name to feature list.
-     * 
- * - * map<string, .tensorflow.FeatureList> feature_list = 1; - */ - - public Builder putAllFeatureList( - java.util.Map values) { - internalGetMutableFeatureList().getMutableMap() - .putAll(values); - 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:tensorflow.FeatureLists) - } - - // @@protoc_insertion_point(class_scope:tensorflow.FeatureLists) - private static final org.tensorflow.proto.example.FeatureLists DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.example.FeatureLists(); - } - - public static org.tensorflow.proto.example.FeatureLists getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureLists parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureLists(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.example.FeatureLists getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureOrBuilder.java deleted file mode 100644 index 92242bf9615..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/feature.proto - -package org.tensorflow.proto.example; - -public interface FeatureOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.Feature) - com.google.protobuf.MessageOrBuilder { - - /** - * .tensorflow.BytesList bytes_list = 1; - */ - boolean hasBytesList(); - /** - * .tensorflow.BytesList bytes_list = 1; - */ - org.tensorflow.proto.example.BytesList getBytesList(); - /** - * .tensorflow.BytesList bytes_list = 1; - */ - org.tensorflow.proto.example.BytesListOrBuilder getBytesListOrBuilder(); - - /** - * .tensorflow.FloatList float_list = 2; - */ - boolean hasFloatList(); - /** - * .tensorflow.FloatList float_list = 2; - */ - org.tensorflow.proto.example.FloatList getFloatList(); - /** - * .tensorflow.FloatList float_list = 2; - */ - org.tensorflow.proto.example.FloatListOrBuilder getFloatListOrBuilder(); - - /** - * .tensorflow.Int64List int64_list = 3; - */ - boolean hasInt64List(); - /** - * .tensorflow.Int64List int64_list = 3; - */ - org.tensorflow.proto.example.Int64List getInt64List(); - /** - * .tensorflow.Int64List int64_list = 3; - */ - org.tensorflow.proto.example.Int64ListOrBuilder getInt64ListOrBuilder(); - - public org.tensorflow.proto.example.Feature.KindCase getKindCase(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/Features.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/Features.java deleted file mode 100644 index 0e47b04941f..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/Features.java +++ /dev/null @@ -1,739 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/feature.proto - -package org.tensorflow.proto.example; - -/** - * Protobuf type {@code tensorflow.Features} - */ -public final class Features extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.Features) - FeaturesOrBuilder { -private static final long serialVersionUID = 0L; - // Use Features.newBuilder() to construct. - private Features(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Features() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Features(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Features( - 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)) { - feature_ = com.google.protobuf.MapField.newMapField( - FeatureDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - feature__ = input.readMessage( - FeatureDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - feature_.getMutableMap().put( - feature__.getKey(), feature__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_Features_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetFeature(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_Features_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.Features.class, org.tensorflow.proto.example.Features.Builder.class); - } - - public static final int FEATURE_FIELD_NUMBER = 1; - private static final class FeatureDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, org.tensorflow.proto.example.Feature> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_Features_FeatureEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.tensorflow.proto.example.Feature.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.example.Feature> feature_; - private com.google.protobuf.MapField - internalGetFeature() { - if (feature_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FeatureDefaultEntryHolder.defaultEntry); - } - return feature_; - } - - public int getFeatureCount() { - return internalGetFeature().getMap().size(); - } - /** - *
-   * Map from feature name to feature.
-   * 
- * - * map<string, .tensorflow.Feature> feature = 1; - */ - - public boolean containsFeature( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetFeature().getMap().containsKey(key); - } - /** - * Use {@link #getFeatureMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getFeature() { - return getFeatureMap(); - } - /** - *
-   * Map from feature name to feature.
-   * 
- * - * map<string, .tensorflow.Feature> feature = 1; - */ - - public java.util.Map getFeatureMap() { - return internalGetFeature().getMap(); - } - /** - *
-   * Map from feature name to feature.
-   * 
- * - * map<string, .tensorflow.Feature> feature = 1; - */ - - public org.tensorflow.proto.example.Feature getFeatureOrDefault( - java.lang.String key, - org.tensorflow.proto.example.Feature defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetFeature().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-   * Map from feature name to feature.
-   * 
- * - * map<string, .tensorflow.Feature> feature = 1; - */ - - public org.tensorflow.proto.example.Feature getFeatureOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetFeature().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, - internalGetFeature(), - FeatureDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetFeature().getMap().entrySet()) { - com.google.protobuf.MapEntry - feature__ = FeatureDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, feature__); - } - 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 org.tensorflow.proto.example.Features)) { - return super.equals(obj); - } - org.tensorflow.proto.example.Features other = (org.tensorflow.proto.example.Features) obj; - - if (!internalGetFeature().equals( - other.internalGetFeature())) 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 (!internalGetFeature().getMap().isEmpty()) { - hash = (37 * hash) + FEATURE_FIELD_NUMBER; - hash = (53 * hash) + internalGetFeature().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.example.Features parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.Features parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.Features parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.Features parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.Features parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.Features parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.Features parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.Features 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 org.tensorflow.proto.example.Features parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.Features 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 org.tensorflow.proto.example.Features parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.Features 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(org.tensorflow.proto.example.Features prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.Features} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.Features) - org.tensorflow.proto.example.FeaturesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_Features_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetFeature(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableFeature(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_Features_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.Features.class, org.tensorflow.proto.example.Features.Builder.class); - } - - // Construct using org.tensorflow.proto.example.Features.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableFeature().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_Features_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.example.Features getDefaultInstanceForType() { - return org.tensorflow.proto.example.Features.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.example.Features build() { - org.tensorflow.proto.example.Features result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.example.Features buildPartial() { - org.tensorflow.proto.example.Features result = new org.tensorflow.proto.example.Features(this); - int from_bitField0_ = bitField0_; - result.feature_ = internalGetFeature(); - result.feature_.makeImmutable(); - 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 org.tensorflow.proto.example.Features) { - return mergeFrom((org.tensorflow.proto.example.Features)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.example.Features other) { - if (other == org.tensorflow.proto.example.Features.getDefaultInstance()) return this; - internalGetMutableFeature().mergeFrom( - other.internalGetFeature()); - 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 { - org.tensorflow.proto.example.Features parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.example.Features) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.example.Feature> feature_; - private com.google.protobuf.MapField - internalGetFeature() { - if (feature_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FeatureDefaultEntryHolder.defaultEntry); - } - return feature_; - } - private com.google.protobuf.MapField - internalGetMutableFeature() { - onChanged();; - if (feature_ == null) { - feature_ = com.google.protobuf.MapField.newMapField( - FeatureDefaultEntryHolder.defaultEntry); - } - if (!feature_.isMutable()) { - feature_ = feature_.copy(); - } - return feature_; - } - - public int getFeatureCount() { - return internalGetFeature().getMap().size(); - } - /** - *
-     * Map from feature name to feature.
-     * 
- * - * map<string, .tensorflow.Feature> feature = 1; - */ - - public boolean containsFeature( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetFeature().getMap().containsKey(key); - } - /** - * Use {@link #getFeatureMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getFeature() { - return getFeatureMap(); - } - /** - *
-     * Map from feature name to feature.
-     * 
- * - * map<string, .tensorflow.Feature> feature = 1; - */ - - public java.util.Map getFeatureMap() { - return internalGetFeature().getMap(); - } - /** - *
-     * Map from feature name to feature.
-     * 
- * - * map<string, .tensorflow.Feature> feature = 1; - */ - - public org.tensorflow.proto.example.Feature getFeatureOrDefault( - java.lang.String key, - org.tensorflow.proto.example.Feature defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetFeature().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Map from feature name to feature.
-     * 
- * - * map<string, .tensorflow.Feature> feature = 1; - */ - - public org.tensorflow.proto.example.Feature getFeatureOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetFeature().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearFeature() { - internalGetMutableFeature().getMutableMap() - .clear(); - return this; - } - /** - *
-     * Map from feature name to feature.
-     * 
- * - * map<string, .tensorflow.Feature> feature = 1; - */ - - public Builder removeFeature( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableFeature().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableFeature() { - return internalGetMutableFeature().getMutableMap(); - } - /** - *
-     * Map from feature name to feature.
-     * 
- * - * map<string, .tensorflow.Feature> feature = 1; - */ - public Builder putFeature( - java.lang.String key, - org.tensorflow.proto.example.Feature value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableFeature().getMutableMap() - .put(key, value); - return this; - } - /** - *
-     * Map from feature name to feature.
-     * 
- * - * map<string, .tensorflow.Feature> feature = 1; - */ - - public Builder putAllFeature( - java.util.Map values) { - internalGetMutableFeature().getMutableMap() - .putAll(values); - 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:tensorflow.Features) - } - - // @@protoc_insertion_point(class_scope:tensorflow.Features) - private static final org.tensorflow.proto.example.Features DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.example.Features(); - } - - public static org.tensorflow.proto.example.Features getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Features parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Features(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.example.Features getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FixedLenFeatureProto.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FixedLenFeatureProto.java deleted file mode 100644 index 1f378121573..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FixedLenFeatureProto.java +++ /dev/null @@ -1,993 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/example_parser_configuration.proto - -package org.tensorflow.proto.example; - -/** - * Protobuf type {@code tensorflow.FixedLenFeatureProto} - */ -public final class FixedLenFeatureProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.FixedLenFeatureProto) - FixedLenFeatureProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use FixedLenFeatureProto.newBuilder() to construct. - private FixedLenFeatureProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FixedLenFeatureProto() { - dtype_ = 0; - valuesOutputTensorName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FixedLenFeatureProto(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FixedLenFeatureProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - dtype_ = rawValue; - break; - } - case 18: { - org.tensorflow.proto.framework.TensorShapeProto.Builder subBuilder = null; - if (shape_ != null) { - subBuilder = shape_.toBuilder(); - } - shape_ = input.readMessage(org.tensorflow.proto.framework.TensorShapeProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(shape_); - shape_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - org.tensorflow.proto.framework.TensorProto.Builder subBuilder = null; - if (defaultValue_ != null) { - subBuilder = defaultValue_.toBuilder(); - } - defaultValue_ = input.readMessage(org.tensorflow.proto.framework.TensorProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(defaultValue_); - defaultValue_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - valuesOutputTensorName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_FixedLenFeatureProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_FixedLenFeatureProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.FixedLenFeatureProto.class, org.tensorflow.proto.example.FixedLenFeatureProto.Builder.class); - } - - public static final int DTYPE_FIELD_NUMBER = 1; - private int dtype_; - /** - * .tensorflow.DataType dtype = 1; - */ - public int getDtypeValue() { - return dtype_; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public org.tensorflow.proto.framework.DataType getDtype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - - public static final int SHAPE_FIELD_NUMBER = 2; - private org.tensorflow.proto.framework.TensorShapeProto shape_; - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public boolean hasShape() { - return shape_ != null; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProto getShape() { - return shape_ == null ? org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { - return getShape(); - } - - public static final int DEFAULT_VALUE_FIELD_NUMBER = 3; - private org.tensorflow.proto.framework.TensorProto defaultValue_; - /** - * .tensorflow.TensorProto default_value = 3; - */ - public boolean hasDefaultValue() { - return defaultValue_ != null; - } - /** - * .tensorflow.TensorProto default_value = 3; - */ - public org.tensorflow.proto.framework.TensorProto getDefaultValue() { - return defaultValue_ == null ? org.tensorflow.proto.framework.TensorProto.getDefaultInstance() : defaultValue_; - } - /** - * .tensorflow.TensorProto default_value = 3; - */ - public org.tensorflow.proto.framework.TensorProtoOrBuilder getDefaultValueOrBuilder() { - return getDefaultValue(); - } - - public static final int VALUES_OUTPUT_TENSOR_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object valuesOutputTensorName_; - /** - * string values_output_tensor_name = 4; - */ - public java.lang.String getValuesOutputTensorName() { - java.lang.Object ref = valuesOutputTensorName_; - 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(); - valuesOutputTensorName_ = s; - return s; - } - } - /** - * string values_output_tensor_name = 4; - */ - public com.google.protobuf.ByteString - getValuesOutputTensorNameBytes() { - java.lang.Object ref = valuesOutputTensorName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - valuesOutputTensorName_ = 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 (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - output.writeEnum(1, dtype_); - } - if (shape_ != null) { - output.writeMessage(2, getShape()); - } - if (defaultValue_ != null) { - output.writeMessage(3, getDefaultValue()); - } - if (!getValuesOutputTensorNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, valuesOutputTensorName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, dtype_); - } - if (shape_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getShape()); - } - if (defaultValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDefaultValue()); - } - if (!getValuesOutputTensorNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, valuesOutputTensorName_); - } - 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 org.tensorflow.proto.example.FixedLenFeatureProto)) { - return super.equals(obj); - } - org.tensorflow.proto.example.FixedLenFeatureProto other = (org.tensorflow.proto.example.FixedLenFeatureProto) obj; - - if (dtype_ != other.dtype_) return false; - if (hasShape() != other.hasShape()) return false; - if (hasShape()) { - if (!getShape() - .equals(other.getShape())) return false; - } - if (hasDefaultValue() != other.hasDefaultValue()) return false; - if (hasDefaultValue()) { - if (!getDefaultValue() - .equals(other.getDefaultValue())) return false; - } - if (!getValuesOutputTensorName() - .equals(other.getValuesOutputTensorName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DTYPE_FIELD_NUMBER; - hash = (53 * hash) + dtype_; - if (hasShape()) { - hash = (37 * hash) + SHAPE_FIELD_NUMBER; - hash = (53 * hash) + getShape().hashCode(); - } - if (hasDefaultValue()) { - hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getDefaultValue().hashCode(); - } - hash = (37 * hash) + VALUES_OUTPUT_TENSOR_NAME_FIELD_NUMBER; - hash = (53 * hash) + getValuesOutputTensorName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.example.FixedLenFeatureProto parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.FixedLenFeatureProto parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.FixedLenFeatureProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.FixedLenFeatureProto parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.FixedLenFeatureProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.FixedLenFeatureProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.FixedLenFeatureProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.FixedLenFeatureProto 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 org.tensorflow.proto.example.FixedLenFeatureProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.FixedLenFeatureProto 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 org.tensorflow.proto.example.FixedLenFeatureProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.FixedLenFeatureProto 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(org.tensorflow.proto.example.FixedLenFeatureProto prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.FixedLenFeatureProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.FixedLenFeatureProto) - org.tensorflow.proto.example.FixedLenFeatureProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_FixedLenFeatureProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_FixedLenFeatureProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.FixedLenFeatureProto.class, org.tensorflow.proto.example.FixedLenFeatureProto.Builder.class); - } - - // Construct using org.tensorflow.proto.example.FixedLenFeatureProto.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - dtype_ = 0; - - if (shapeBuilder_ == null) { - shape_ = null; - } else { - shape_ = null; - shapeBuilder_ = null; - } - if (defaultValueBuilder_ == null) { - defaultValue_ = null; - } else { - defaultValue_ = null; - defaultValueBuilder_ = null; - } - valuesOutputTensorName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_FixedLenFeatureProto_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.example.FixedLenFeatureProto getDefaultInstanceForType() { - return org.tensorflow.proto.example.FixedLenFeatureProto.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.example.FixedLenFeatureProto build() { - org.tensorflow.proto.example.FixedLenFeatureProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.example.FixedLenFeatureProto buildPartial() { - org.tensorflow.proto.example.FixedLenFeatureProto result = new org.tensorflow.proto.example.FixedLenFeatureProto(this); - result.dtype_ = dtype_; - if (shapeBuilder_ == null) { - result.shape_ = shape_; - } else { - result.shape_ = shapeBuilder_.build(); - } - if (defaultValueBuilder_ == null) { - result.defaultValue_ = defaultValue_; - } else { - result.defaultValue_ = defaultValueBuilder_.build(); - } - result.valuesOutputTensorName_ = valuesOutputTensorName_; - 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 org.tensorflow.proto.example.FixedLenFeatureProto) { - return mergeFrom((org.tensorflow.proto.example.FixedLenFeatureProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.example.FixedLenFeatureProto other) { - if (other == org.tensorflow.proto.example.FixedLenFeatureProto.getDefaultInstance()) return this; - if (other.dtype_ != 0) { - setDtypeValue(other.getDtypeValue()); - } - if (other.hasShape()) { - mergeShape(other.getShape()); - } - if (other.hasDefaultValue()) { - mergeDefaultValue(other.getDefaultValue()); - } - if (!other.getValuesOutputTensorName().isEmpty()) { - valuesOutputTensorName_ = other.valuesOutputTensorName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.example.FixedLenFeatureProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.example.FixedLenFeatureProto) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int dtype_ = 0; - /** - * .tensorflow.DataType dtype = 1; - */ - public int getDtypeValue() { - return dtype_; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public Builder setDtypeValue(int value) { - dtype_ = value; - onChanged(); - return this; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public org.tensorflow.proto.framework.DataType getDtype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public Builder setDtype(org.tensorflow.proto.framework.DataType value) { - if (value == null) { - throw new NullPointerException(); - } - - dtype_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public Builder clearDtype() { - - dtype_ = 0; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.TensorShapeProto shape_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> shapeBuilder_; - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public boolean hasShape() { - return shapeBuilder_ != null || shape_ != null; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProto getShape() { - if (shapeBuilder_ == null) { - return shape_ == null ? org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; - } else { - return shapeBuilder_.getMessage(); - } - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder setShape(org.tensorflow.proto.framework.TensorShapeProto value) { - if (shapeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - shape_ = value; - onChanged(); - } else { - shapeBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder setShape( - org.tensorflow.proto.framework.TensorShapeProto.Builder builderForValue) { - if (shapeBuilder_ == null) { - shape_ = builderForValue.build(); - onChanged(); - } else { - shapeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder mergeShape(org.tensorflow.proto.framework.TensorShapeProto value) { - if (shapeBuilder_ == null) { - if (shape_ != null) { - shape_ = - org.tensorflow.proto.framework.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial(); - } else { - shape_ = value; - } - onChanged(); - } else { - shapeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder clearShape() { - if (shapeBuilder_ == null) { - shape_ = null; - onChanged(); - } else { - shape_ = null; - shapeBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProto.Builder getShapeBuilder() { - - onChanged(); - return getShapeFieldBuilder().getBuilder(); - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { - if (shapeBuilder_ != null) { - return shapeBuilder_.getMessageOrBuilder(); - } else { - return shape_ == null ? - org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; - } - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> - getShapeFieldBuilder() { - if (shapeBuilder_ == null) { - shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder>( - getShape(), - getParentForChildren(), - isClean()); - shape_ = null; - } - return shapeBuilder_; - } - - private org.tensorflow.proto.framework.TensorProto defaultValue_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder> defaultValueBuilder_; - /** - * .tensorflow.TensorProto default_value = 3; - */ - public boolean hasDefaultValue() { - return defaultValueBuilder_ != null || defaultValue_ != null; - } - /** - * .tensorflow.TensorProto default_value = 3; - */ - public org.tensorflow.proto.framework.TensorProto getDefaultValue() { - if (defaultValueBuilder_ == null) { - return defaultValue_ == null ? org.tensorflow.proto.framework.TensorProto.getDefaultInstance() : defaultValue_; - } else { - return defaultValueBuilder_.getMessage(); - } - } - /** - * .tensorflow.TensorProto default_value = 3; - */ - public Builder setDefaultValue(org.tensorflow.proto.framework.TensorProto value) { - if (defaultValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - defaultValue_ = value; - onChanged(); - } else { - defaultValueBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.TensorProto default_value = 3; - */ - public Builder setDefaultValue( - org.tensorflow.proto.framework.TensorProto.Builder builderForValue) { - if (defaultValueBuilder_ == null) { - defaultValue_ = builderForValue.build(); - onChanged(); - } else { - defaultValueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.TensorProto default_value = 3; - */ - public Builder mergeDefaultValue(org.tensorflow.proto.framework.TensorProto value) { - if (defaultValueBuilder_ == null) { - if (defaultValue_ != null) { - defaultValue_ = - org.tensorflow.proto.framework.TensorProto.newBuilder(defaultValue_).mergeFrom(value).buildPartial(); - } else { - defaultValue_ = value; - } - onChanged(); - } else { - defaultValueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.TensorProto default_value = 3; - */ - public Builder clearDefaultValue() { - if (defaultValueBuilder_ == null) { - defaultValue_ = null; - onChanged(); - } else { - defaultValue_ = null; - defaultValueBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.TensorProto default_value = 3; - */ - public org.tensorflow.proto.framework.TensorProto.Builder getDefaultValueBuilder() { - - onChanged(); - return getDefaultValueFieldBuilder().getBuilder(); - } - /** - * .tensorflow.TensorProto default_value = 3; - */ - public org.tensorflow.proto.framework.TensorProtoOrBuilder getDefaultValueOrBuilder() { - if (defaultValueBuilder_ != null) { - return defaultValueBuilder_.getMessageOrBuilder(); - } else { - return defaultValue_ == null ? - org.tensorflow.proto.framework.TensorProto.getDefaultInstance() : defaultValue_; - } - } - /** - * .tensorflow.TensorProto default_value = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder> - getDefaultValueFieldBuilder() { - if (defaultValueBuilder_ == null) { - defaultValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder>( - getDefaultValue(), - getParentForChildren(), - isClean()); - defaultValue_ = null; - } - return defaultValueBuilder_; - } - - private java.lang.Object valuesOutputTensorName_ = ""; - /** - * string values_output_tensor_name = 4; - */ - public java.lang.String getValuesOutputTensorName() { - java.lang.Object ref = valuesOutputTensorName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - valuesOutputTensorName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string values_output_tensor_name = 4; - */ - public com.google.protobuf.ByteString - getValuesOutputTensorNameBytes() { - java.lang.Object ref = valuesOutputTensorName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - valuesOutputTensorName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string values_output_tensor_name = 4; - */ - public Builder setValuesOutputTensorName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - valuesOutputTensorName_ = value; - onChanged(); - return this; - } - /** - * string values_output_tensor_name = 4; - */ - public Builder clearValuesOutputTensorName() { - - valuesOutputTensorName_ = getDefaultInstance().getValuesOutputTensorName(); - onChanged(); - return this; - } - /** - * string values_output_tensor_name = 4; - */ - public Builder setValuesOutputTensorNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - valuesOutputTensorName_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.FixedLenFeatureProto) - } - - // @@protoc_insertion_point(class_scope:tensorflow.FixedLenFeatureProto) - private static final org.tensorflow.proto.example.FixedLenFeatureProto DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.example.FixedLenFeatureProto(); - } - - public static org.tensorflow.proto.example.FixedLenFeatureProto getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FixedLenFeatureProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FixedLenFeatureProto(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.example.FixedLenFeatureProto getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FixedLenFeatureProtoOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FixedLenFeatureProtoOrBuilder.java deleted file mode 100644 index 0008b29583f..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FixedLenFeatureProtoOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/example_parser_configuration.proto - -package org.tensorflow.proto.example; - -public interface FixedLenFeatureProtoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.FixedLenFeatureProto) - com.google.protobuf.MessageOrBuilder { - - /** - * .tensorflow.DataType dtype = 1; - */ - int getDtypeValue(); - /** - * .tensorflow.DataType dtype = 1; - */ - org.tensorflow.proto.framework.DataType getDtype(); - - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - boolean hasShape(); - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - org.tensorflow.proto.framework.TensorShapeProto getShape(); - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder(); - - /** - * .tensorflow.TensorProto default_value = 3; - */ - boolean hasDefaultValue(); - /** - * .tensorflow.TensorProto default_value = 3; - */ - org.tensorflow.proto.framework.TensorProto getDefaultValue(); - /** - * .tensorflow.TensorProto default_value = 3; - */ - org.tensorflow.proto.framework.TensorProtoOrBuilder getDefaultValueOrBuilder(); - - /** - * string values_output_tensor_name = 4; - */ - java.lang.String getValuesOutputTensorName(); - /** - * string values_output_tensor_name = 4; - */ - com.google.protobuf.ByteString - getValuesOutputTensorNameBytes(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FloatList.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FloatList.java deleted file mode 100644 index efad9ee2fb6..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FloatList.java +++ /dev/null @@ -1,579 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/feature.proto - -package org.tensorflow.proto.example; - -/** - * Protobuf type {@code tensorflow.FloatList} - */ -public final class FloatList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.FloatList) - FloatListOrBuilder { -private static final long serialVersionUID = 0L; - // Use FloatList.newBuilder() to construct. - private FloatList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FloatList() { - value_ = emptyFloatList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FloatList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FloatList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 13: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - value_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - value_.addFloat(input.readFloat()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - value_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - value_.addFloat(input.readFloat()); - } - input.popLimit(limit); - 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)) { - value_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_FloatList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_FloatList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.FloatList.class, org.tensorflow.proto.example.FloatList.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private com.google.protobuf.Internal.FloatList value_; - /** - * repeated float value = 1 [packed = true]; - */ - public java.util.List - getValueList() { - return value_; - } - /** - * repeated float value = 1 [packed = true]; - */ - public int getValueCount() { - return value_.size(); - } - /** - * repeated float value = 1 [packed = true]; - */ - public float getValue(int index) { - return value_.getFloat(index); - } - private int valueMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValueList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valueMemoizedSerializedSize); - } - for (int i = 0; i < value_.size(); i++) { - output.writeFloatNoTag(value_.getFloat(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - dataSize = 4 * getValueList().size(); - size += dataSize; - if (!getValueList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valueMemoizedSerializedSize = dataSize; - } - 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 org.tensorflow.proto.example.FloatList)) { - return super.equals(obj); - } - org.tensorflow.proto.example.FloatList other = (org.tensorflow.proto.example.FloatList) obj; - - if (!getValueList() - .equals(other.getValueList())) 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 (getValueCount() > 0) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValueList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.example.FloatList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.FloatList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.FloatList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.FloatList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.FloatList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.FloatList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.FloatList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.FloatList 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 org.tensorflow.proto.example.FloatList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.FloatList 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 org.tensorflow.proto.example.FloatList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.FloatList 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(org.tensorflow.proto.example.FloatList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.FloatList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.FloatList) - org.tensorflow.proto.example.FloatListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_FloatList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_FloatList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.FloatList.class, org.tensorflow.proto.example.FloatList.Builder.class); - } - - // Construct using org.tensorflow.proto.example.FloatList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - value_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_FloatList_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.example.FloatList getDefaultInstanceForType() { - return org.tensorflow.proto.example.FloatList.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.example.FloatList build() { - org.tensorflow.proto.example.FloatList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.example.FloatList buildPartial() { - org.tensorflow.proto.example.FloatList result = new org.tensorflow.proto.example.FloatList(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - value_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.value_ = value_; - 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 org.tensorflow.proto.example.FloatList) { - return mergeFrom((org.tensorflow.proto.example.FloatList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.example.FloatList other) { - if (other == org.tensorflow.proto.example.FloatList.getDefaultInstance()) return this; - if (!other.value_.isEmpty()) { - if (value_.isEmpty()) { - value_ = other.value_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValueIsMutable(); - value_.addAll(other.value_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.example.FloatList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.example.FloatList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.Internal.FloatList value_ = emptyFloatList(); - private void ensureValueIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - value_ = mutableCopy(value_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated float value = 1 [packed = true]; - */ - public java.util.List - getValueList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(value_) : value_; - } - /** - * repeated float value = 1 [packed = true]; - */ - public int getValueCount() { - return value_.size(); - } - /** - * repeated float value = 1 [packed = true]; - */ - public float getValue(int index) { - return value_.getFloat(index); - } - /** - * repeated float value = 1 [packed = true]; - */ - public Builder setValue( - int index, float value) { - ensureValueIsMutable(); - value_.setFloat(index, value); - onChanged(); - return this; - } - /** - * repeated float value = 1 [packed = true]; - */ - public Builder addValue(float value) { - ensureValueIsMutable(); - value_.addFloat(value); - onChanged(); - return this; - } - /** - * repeated float value = 1 [packed = true]; - */ - public Builder addAllValue( - java.lang.Iterable values) { - ensureValueIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, value_); - onChanged(); - return this; - } - /** - * repeated float value = 1 [packed = true]; - */ - public Builder clearValue() { - value_ = emptyFloatList(); - bitField0_ = (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:tensorflow.FloatList) - } - - // @@protoc_insertion_point(class_scope:tensorflow.FloatList) - private static final org.tensorflow.proto.example.FloatList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.example.FloatList(); - } - - public static org.tensorflow.proto.example.FloatList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FloatList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.example.FloatList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FloatListOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FloatListOrBuilder.java deleted file mode 100644 index 65856cd5f4e..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FloatListOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/feature.proto - -package org.tensorflow.proto.example; - -public interface FloatListOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.FloatList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated float value = 1 [packed = true]; - */ - java.util.List getValueList(); - /** - * repeated float value = 1 [packed = true]; - */ - int getValueCount(); - /** - * repeated float value = 1 [packed = true]; - */ - float getValue(int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/Int64List.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/Int64List.java deleted file mode 100644 index 1cf4f104182..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/Int64List.java +++ /dev/null @@ -1,582 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/feature.proto - -package org.tensorflow.proto.example; - -/** - * Protobuf type {@code tensorflow.Int64List} - */ -public final class Int64List extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.Int64List) - Int64ListOrBuilder { -private static final long serialVersionUID = 0L; - // Use Int64List.newBuilder() to construct. - private Int64List(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Int64List() { - value_ = emptyLongList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Int64List(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Int64List( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - value_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - value_.addLong(input.readInt64()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - value_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - value_.addLong(input.readInt64()); - } - input.popLimit(limit); - 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)) { - value_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_Int64List_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_Int64List_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.Int64List.class, org.tensorflow.proto.example.Int64List.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private com.google.protobuf.Internal.LongList value_; - /** - * repeated int64 value = 1 [packed = true]; - */ - public java.util.List - getValueList() { - return value_; - } - /** - * repeated int64 value = 1 [packed = true]; - */ - public int getValueCount() { - return value_.size(); - } - /** - * repeated int64 value = 1 [packed = true]; - */ - public long getValue(int index) { - return value_.getLong(index); - } - private int valueMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValueList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valueMemoizedSerializedSize); - } - for (int i = 0; i < value_.size(); i++) { - output.writeInt64NoTag(value_.getLong(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < value_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(value_.getLong(i)); - } - size += dataSize; - if (!getValueList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valueMemoizedSerializedSize = dataSize; - } - 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 org.tensorflow.proto.example.Int64List)) { - return super.equals(obj); - } - org.tensorflow.proto.example.Int64List other = (org.tensorflow.proto.example.Int64List) obj; - - if (!getValueList() - .equals(other.getValueList())) 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 (getValueCount() > 0) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValueList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.example.Int64List parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.Int64List parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.Int64List parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.Int64List parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.Int64List parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.Int64List parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.Int64List parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.Int64List 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 org.tensorflow.proto.example.Int64List parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.Int64List 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 org.tensorflow.proto.example.Int64List parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.Int64List 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(org.tensorflow.proto.example.Int64List prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.Int64List} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.Int64List) - org.tensorflow.proto.example.Int64ListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_Int64List_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_Int64List_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.Int64List.class, org.tensorflow.proto.example.Int64List.Builder.class); - } - - // Construct using org.tensorflow.proto.example.Int64List.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - value_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.example.FeatureProtos.internal_static_tensorflow_Int64List_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.example.Int64List getDefaultInstanceForType() { - return org.tensorflow.proto.example.Int64List.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.example.Int64List build() { - org.tensorflow.proto.example.Int64List result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.example.Int64List buildPartial() { - org.tensorflow.proto.example.Int64List result = new org.tensorflow.proto.example.Int64List(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - value_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.value_ = value_; - 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 org.tensorflow.proto.example.Int64List) { - return mergeFrom((org.tensorflow.proto.example.Int64List)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.example.Int64List other) { - if (other == org.tensorflow.proto.example.Int64List.getDefaultInstance()) return this; - if (!other.value_.isEmpty()) { - if (value_.isEmpty()) { - value_ = other.value_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValueIsMutable(); - value_.addAll(other.value_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.example.Int64List parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.example.Int64List) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.Internal.LongList value_ = emptyLongList(); - private void ensureValueIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - value_ = mutableCopy(value_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated int64 value = 1 [packed = true]; - */ - public java.util.List - getValueList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(value_) : value_; - } - /** - * repeated int64 value = 1 [packed = true]; - */ - public int getValueCount() { - return value_.size(); - } - /** - * repeated int64 value = 1 [packed = true]; - */ - public long getValue(int index) { - return value_.getLong(index); - } - /** - * repeated int64 value = 1 [packed = true]; - */ - public Builder setValue( - int index, long value) { - ensureValueIsMutable(); - value_.setLong(index, value); - onChanged(); - return this; - } - /** - * repeated int64 value = 1 [packed = true]; - */ - public Builder addValue(long value) { - ensureValueIsMutable(); - value_.addLong(value); - onChanged(); - return this; - } - /** - * repeated int64 value = 1 [packed = true]; - */ - public Builder addAllValue( - java.lang.Iterable values) { - ensureValueIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, value_); - onChanged(); - return this; - } - /** - * repeated int64 value = 1 [packed = true]; - */ - public Builder clearValue() { - value_ = emptyLongList(); - bitField0_ = (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:tensorflow.Int64List) - } - - // @@protoc_insertion_point(class_scope:tensorflow.Int64List) - private static final org.tensorflow.proto.example.Int64List DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.example.Int64List(); - } - - public static org.tensorflow.proto.example.Int64List getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int64List parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Int64List(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.example.Int64List getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/Int64ListOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/Int64ListOrBuilder.java deleted file mode 100644 index 6ca9f168a7d..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/Int64ListOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/feature.proto - -package org.tensorflow.proto.example; - -public interface Int64ListOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.Int64List) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int64 value = 1 [packed = true]; - */ - java.util.List getValueList(); - /** - * repeated int64 value = 1 [packed = true]; - */ - int getValueCount(); - /** - * repeated int64 value = 1 [packed = true]; - */ - long getValue(int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/SequenceExample.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/SequenceExample.java deleted file mode 100644 index b88e6f12e34..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/SequenceExample.java +++ /dev/null @@ -1,781 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/example.proto - -package org.tensorflow.proto.example; - -/** - * Protobuf type {@code tensorflow.SequenceExample} - */ -public final class SequenceExample extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.SequenceExample) - SequenceExampleOrBuilder { -private static final long serialVersionUID = 0L; - // Use SequenceExample.newBuilder() to construct. - private SequenceExample(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SequenceExample() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SequenceExample(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SequenceExample( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.tensorflow.proto.example.Features.Builder subBuilder = null; - if (context_ != null) { - subBuilder = context_.toBuilder(); - } - context_ = input.readMessage(org.tensorflow.proto.example.Features.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(context_); - context_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - org.tensorflow.proto.example.FeatureLists.Builder subBuilder = null; - if (featureLists_ != null) { - subBuilder = featureLists_.toBuilder(); - } - featureLists_ = input.readMessage(org.tensorflow.proto.example.FeatureLists.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(featureLists_); - featureLists_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.ExampleProtos.internal_static_tensorflow_SequenceExample_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.ExampleProtos.internal_static_tensorflow_SequenceExample_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.SequenceExample.class, org.tensorflow.proto.example.SequenceExample.Builder.class); - } - - public static final int CONTEXT_FIELD_NUMBER = 1; - private org.tensorflow.proto.example.Features context_; - /** - * .tensorflow.Features context = 1; - */ - public boolean hasContext() { - return context_ != null; - } - /** - * .tensorflow.Features context = 1; - */ - public org.tensorflow.proto.example.Features getContext() { - return context_ == null ? org.tensorflow.proto.example.Features.getDefaultInstance() : context_; - } - /** - * .tensorflow.Features context = 1; - */ - public org.tensorflow.proto.example.FeaturesOrBuilder getContextOrBuilder() { - return getContext(); - } - - public static final int FEATURE_LISTS_FIELD_NUMBER = 2; - private org.tensorflow.proto.example.FeatureLists featureLists_; - /** - * .tensorflow.FeatureLists feature_lists = 2; - */ - public boolean hasFeatureLists() { - return featureLists_ != null; - } - /** - * .tensorflow.FeatureLists feature_lists = 2; - */ - public org.tensorflow.proto.example.FeatureLists getFeatureLists() { - return featureLists_ == null ? org.tensorflow.proto.example.FeatureLists.getDefaultInstance() : featureLists_; - } - /** - * .tensorflow.FeatureLists feature_lists = 2; - */ - public org.tensorflow.proto.example.FeatureListsOrBuilder getFeatureListsOrBuilder() { - return getFeatureLists(); - } - - 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 (context_ != null) { - output.writeMessage(1, getContext()); - } - if (featureLists_ != null) { - output.writeMessage(2, getFeatureLists()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (context_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getContext()); - } - if (featureLists_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFeatureLists()); - } - 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 org.tensorflow.proto.example.SequenceExample)) { - return super.equals(obj); - } - org.tensorflow.proto.example.SequenceExample other = (org.tensorflow.proto.example.SequenceExample) obj; - - if (hasContext() != other.hasContext()) return false; - if (hasContext()) { - if (!getContext() - .equals(other.getContext())) return false; - } - if (hasFeatureLists() != other.hasFeatureLists()) return false; - if (hasFeatureLists()) { - if (!getFeatureLists() - .equals(other.getFeatureLists())) 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 (hasContext()) { - hash = (37 * hash) + CONTEXT_FIELD_NUMBER; - hash = (53 * hash) + getContext().hashCode(); - } - if (hasFeatureLists()) { - hash = (37 * hash) + FEATURE_LISTS_FIELD_NUMBER; - hash = (53 * hash) + getFeatureLists().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.example.SequenceExample parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.SequenceExample parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.SequenceExample parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.SequenceExample parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.SequenceExample parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.SequenceExample parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.SequenceExample parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.SequenceExample 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 org.tensorflow.proto.example.SequenceExample parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.SequenceExample 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 org.tensorflow.proto.example.SequenceExample parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.SequenceExample 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(org.tensorflow.proto.example.SequenceExample prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.SequenceExample} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.SequenceExample) - org.tensorflow.proto.example.SequenceExampleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.ExampleProtos.internal_static_tensorflow_SequenceExample_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.ExampleProtos.internal_static_tensorflow_SequenceExample_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.SequenceExample.class, org.tensorflow.proto.example.SequenceExample.Builder.class); - } - - // Construct using org.tensorflow.proto.example.SequenceExample.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (contextBuilder_ == null) { - context_ = null; - } else { - context_ = null; - contextBuilder_ = null; - } - if (featureListsBuilder_ == null) { - featureLists_ = null; - } else { - featureLists_ = null; - featureListsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.example.ExampleProtos.internal_static_tensorflow_SequenceExample_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.example.SequenceExample getDefaultInstanceForType() { - return org.tensorflow.proto.example.SequenceExample.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.example.SequenceExample build() { - org.tensorflow.proto.example.SequenceExample result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.example.SequenceExample buildPartial() { - org.tensorflow.proto.example.SequenceExample result = new org.tensorflow.proto.example.SequenceExample(this); - if (contextBuilder_ == null) { - result.context_ = context_; - } else { - result.context_ = contextBuilder_.build(); - } - if (featureListsBuilder_ == null) { - result.featureLists_ = featureLists_; - } else { - result.featureLists_ = featureListsBuilder_.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 org.tensorflow.proto.example.SequenceExample) { - return mergeFrom((org.tensorflow.proto.example.SequenceExample)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.example.SequenceExample other) { - if (other == org.tensorflow.proto.example.SequenceExample.getDefaultInstance()) return this; - if (other.hasContext()) { - mergeContext(other.getContext()); - } - if (other.hasFeatureLists()) { - mergeFeatureLists(other.getFeatureLists()); - } - 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 { - org.tensorflow.proto.example.SequenceExample parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.example.SequenceExample) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private org.tensorflow.proto.example.Features context_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.Features, org.tensorflow.proto.example.Features.Builder, org.tensorflow.proto.example.FeaturesOrBuilder> contextBuilder_; - /** - * .tensorflow.Features context = 1; - */ - public boolean hasContext() { - return contextBuilder_ != null || context_ != null; - } - /** - * .tensorflow.Features context = 1; - */ - public org.tensorflow.proto.example.Features getContext() { - if (contextBuilder_ == null) { - return context_ == null ? org.tensorflow.proto.example.Features.getDefaultInstance() : context_; - } else { - return contextBuilder_.getMessage(); - } - } - /** - * .tensorflow.Features context = 1; - */ - public Builder setContext(org.tensorflow.proto.example.Features value) { - if (contextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - context_ = value; - onChanged(); - } else { - contextBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.Features context = 1; - */ - public Builder setContext( - org.tensorflow.proto.example.Features.Builder builderForValue) { - if (contextBuilder_ == null) { - context_ = builderForValue.build(); - onChanged(); - } else { - contextBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.Features context = 1; - */ - public Builder mergeContext(org.tensorflow.proto.example.Features value) { - if (contextBuilder_ == null) { - if (context_ != null) { - context_ = - org.tensorflow.proto.example.Features.newBuilder(context_).mergeFrom(value).buildPartial(); - } else { - context_ = value; - } - onChanged(); - } else { - contextBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.Features context = 1; - */ - public Builder clearContext() { - if (contextBuilder_ == null) { - context_ = null; - onChanged(); - } else { - context_ = null; - contextBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.Features context = 1; - */ - public org.tensorflow.proto.example.Features.Builder getContextBuilder() { - - onChanged(); - return getContextFieldBuilder().getBuilder(); - } - /** - * .tensorflow.Features context = 1; - */ - public org.tensorflow.proto.example.FeaturesOrBuilder getContextOrBuilder() { - if (contextBuilder_ != null) { - return contextBuilder_.getMessageOrBuilder(); - } else { - return context_ == null ? - org.tensorflow.proto.example.Features.getDefaultInstance() : context_; - } - } - /** - * .tensorflow.Features context = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.Features, org.tensorflow.proto.example.Features.Builder, org.tensorflow.proto.example.FeaturesOrBuilder> - getContextFieldBuilder() { - if (contextBuilder_ == null) { - contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.Features, org.tensorflow.proto.example.Features.Builder, org.tensorflow.proto.example.FeaturesOrBuilder>( - getContext(), - getParentForChildren(), - isClean()); - context_ = null; - } - return contextBuilder_; - } - - private org.tensorflow.proto.example.FeatureLists featureLists_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.FeatureLists, org.tensorflow.proto.example.FeatureLists.Builder, org.tensorflow.proto.example.FeatureListsOrBuilder> featureListsBuilder_; - /** - * .tensorflow.FeatureLists feature_lists = 2; - */ - public boolean hasFeatureLists() { - return featureListsBuilder_ != null || featureLists_ != null; - } - /** - * .tensorflow.FeatureLists feature_lists = 2; - */ - public org.tensorflow.proto.example.FeatureLists getFeatureLists() { - if (featureListsBuilder_ == null) { - return featureLists_ == null ? org.tensorflow.proto.example.FeatureLists.getDefaultInstance() : featureLists_; - } else { - return featureListsBuilder_.getMessage(); - } - } - /** - * .tensorflow.FeatureLists feature_lists = 2; - */ - public Builder setFeatureLists(org.tensorflow.proto.example.FeatureLists value) { - if (featureListsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - featureLists_ = value; - onChanged(); - } else { - featureListsBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.FeatureLists feature_lists = 2; - */ - public Builder setFeatureLists( - org.tensorflow.proto.example.FeatureLists.Builder builderForValue) { - if (featureListsBuilder_ == null) { - featureLists_ = builderForValue.build(); - onChanged(); - } else { - featureListsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.FeatureLists feature_lists = 2; - */ - public Builder mergeFeatureLists(org.tensorflow.proto.example.FeatureLists value) { - if (featureListsBuilder_ == null) { - if (featureLists_ != null) { - featureLists_ = - org.tensorflow.proto.example.FeatureLists.newBuilder(featureLists_).mergeFrom(value).buildPartial(); - } else { - featureLists_ = value; - } - onChanged(); - } else { - featureListsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.FeatureLists feature_lists = 2; - */ - public Builder clearFeatureLists() { - if (featureListsBuilder_ == null) { - featureLists_ = null; - onChanged(); - } else { - featureLists_ = null; - featureListsBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.FeatureLists feature_lists = 2; - */ - public org.tensorflow.proto.example.FeatureLists.Builder getFeatureListsBuilder() { - - onChanged(); - return getFeatureListsFieldBuilder().getBuilder(); - } - /** - * .tensorflow.FeatureLists feature_lists = 2; - */ - public org.tensorflow.proto.example.FeatureListsOrBuilder getFeatureListsOrBuilder() { - if (featureListsBuilder_ != null) { - return featureListsBuilder_.getMessageOrBuilder(); - } else { - return featureLists_ == null ? - org.tensorflow.proto.example.FeatureLists.getDefaultInstance() : featureLists_; - } - } - /** - * .tensorflow.FeatureLists feature_lists = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.FeatureLists, org.tensorflow.proto.example.FeatureLists.Builder, org.tensorflow.proto.example.FeatureListsOrBuilder> - getFeatureListsFieldBuilder() { - if (featureListsBuilder_ == null) { - featureListsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.example.FeatureLists, org.tensorflow.proto.example.FeatureLists.Builder, org.tensorflow.proto.example.FeatureListsOrBuilder>( - getFeatureLists(), - getParentForChildren(), - isClean()); - featureLists_ = null; - } - return featureListsBuilder_; - } - @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:tensorflow.SequenceExample) - } - - // @@protoc_insertion_point(class_scope:tensorflow.SequenceExample) - private static final org.tensorflow.proto.example.SequenceExample DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.example.SequenceExample(); - } - - public static org.tensorflow.proto.example.SequenceExample getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SequenceExample parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SequenceExample(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.example.SequenceExample getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/SequenceExampleOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/SequenceExampleOrBuilder.java deleted file mode 100644 index 9b849c8c3c2..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/SequenceExampleOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/example.proto - -package org.tensorflow.proto.example; - -public interface SequenceExampleOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.SequenceExample) - com.google.protobuf.MessageOrBuilder { - - /** - * .tensorflow.Features context = 1; - */ - boolean hasContext(); - /** - * .tensorflow.Features context = 1; - */ - org.tensorflow.proto.example.Features getContext(); - /** - * .tensorflow.Features context = 1; - */ - org.tensorflow.proto.example.FeaturesOrBuilder getContextOrBuilder(); - - /** - * .tensorflow.FeatureLists feature_lists = 2; - */ - boolean hasFeatureLists(); - /** - * .tensorflow.FeatureLists feature_lists = 2; - */ - org.tensorflow.proto.example.FeatureLists getFeatureLists(); - /** - * .tensorflow.FeatureLists feature_lists = 2; - */ - org.tensorflow.proto.example.FeatureListsOrBuilder getFeatureListsOrBuilder(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/VarLenFeatureProto.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/VarLenFeatureProto.java deleted file mode 100644 index 8edd05b1f24..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/VarLenFeatureProto.java +++ /dev/null @@ -1,885 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/example_parser_configuration.proto - -package org.tensorflow.proto.example; - -/** - * Protobuf type {@code tensorflow.VarLenFeatureProto} - */ -public final class VarLenFeatureProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.VarLenFeatureProto) - VarLenFeatureProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use VarLenFeatureProto.newBuilder() to construct. - private VarLenFeatureProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private VarLenFeatureProto() { - dtype_ = 0; - valuesOutputTensorName_ = ""; - indicesOutputTensorName_ = ""; - shapesOutputTensorName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new VarLenFeatureProto(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private VarLenFeatureProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - dtype_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - valuesOutputTensorName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - indicesOutputTensorName_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - shapesOutputTensorName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_VarLenFeatureProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_VarLenFeatureProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.VarLenFeatureProto.class, org.tensorflow.proto.example.VarLenFeatureProto.Builder.class); - } - - public static final int DTYPE_FIELD_NUMBER = 1; - private int dtype_; - /** - * .tensorflow.DataType dtype = 1; - */ - public int getDtypeValue() { - return dtype_; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public org.tensorflow.proto.framework.DataType getDtype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - - public static final int VALUES_OUTPUT_TENSOR_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object valuesOutputTensorName_; - /** - * string values_output_tensor_name = 2; - */ - public java.lang.String getValuesOutputTensorName() { - java.lang.Object ref = valuesOutputTensorName_; - 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(); - valuesOutputTensorName_ = s; - return s; - } - } - /** - * string values_output_tensor_name = 2; - */ - public com.google.protobuf.ByteString - getValuesOutputTensorNameBytes() { - java.lang.Object ref = valuesOutputTensorName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - valuesOutputTensorName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INDICES_OUTPUT_TENSOR_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object indicesOutputTensorName_; - /** - * string indices_output_tensor_name = 3; - */ - public java.lang.String getIndicesOutputTensorName() { - java.lang.Object ref = indicesOutputTensorName_; - 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(); - indicesOutputTensorName_ = s; - return s; - } - } - /** - * string indices_output_tensor_name = 3; - */ - public com.google.protobuf.ByteString - getIndicesOutputTensorNameBytes() { - java.lang.Object ref = indicesOutputTensorName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - indicesOutputTensorName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHAPES_OUTPUT_TENSOR_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object shapesOutputTensorName_; - /** - * string shapes_output_tensor_name = 4; - */ - public java.lang.String getShapesOutputTensorName() { - java.lang.Object ref = shapesOutputTensorName_; - 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(); - shapesOutputTensorName_ = s; - return s; - } - } - /** - * string shapes_output_tensor_name = 4; - */ - public com.google.protobuf.ByteString - getShapesOutputTensorNameBytes() { - java.lang.Object ref = shapesOutputTensorName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - shapesOutputTensorName_ = 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 (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - output.writeEnum(1, dtype_); - } - if (!getValuesOutputTensorNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, valuesOutputTensorName_); - } - if (!getIndicesOutputTensorNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, indicesOutputTensorName_); - } - if (!getShapesOutputTensorNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, shapesOutputTensorName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, dtype_); - } - if (!getValuesOutputTensorNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, valuesOutputTensorName_); - } - if (!getIndicesOutputTensorNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, indicesOutputTensorName_); - } - if (!getShapesOutputTensorNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, shapesOutputTensorName_); - } - 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 org.tensorflow.proto.example.VarLenFeatureProto)) { - return super.equals(obj); - } - org.tensorflow.proto.example.VarLenFeatureProto other = (org.tensorflow.proto.example.VarLenFeatureProto) obj; - - if (dtype_ != other.dtype_) return false; - if (!getValuesOutputTensorName() - .equals(other.getValuesOutputTensorName())) return false; - if (!getIndicesOutputTensorName() - .equals(other.getIndicesOutputTensorName())) return false; - if (!getShapesOutputTensorName() - .equals(other.getShapesOutputTensorName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DTYPE_FIELD_NUMBER; - hash = (53 * hash) + dtype_; - hash = (37 * hash) + VALUES_OUTPUT_TENSOR_NAME_FIELD_NUMBER; - hash = (53 * hash) + getValuesOutputTensorName().hashCode(); - hash = (37 * hash) + INDICES_OUTPUT_TENSOR_NAME_FIELD_NUMBER; - hash = (53 * hash) + getIndicesOutputTensorName().hashCode(); - hash = (37 * hash) + SHAPES_OUTPUT_TENSOR_NAME_FIELD_NUMBER; - hash = (53 * hash) + getShapesOutputTensorName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.example.VarLenFeatureProto parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.VarLenFeatureProto parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.VarLenFeatureProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.VarLenFeatureProto parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.VarLenFeatureProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.example.VarLenFeatureProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.example.VarLenFeatureProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.VarLenFeatureProto 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 org.tensorflow.proto.example.VarLenFeatureProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.VarLenFeatureProto 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 org.tensorflow.proto.example.VarLenFeatureProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.example.VarLenFeatureProto 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(org.tensorflow.proto.example.VarLenFeatureProto prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.VarLenFeatureProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.VarLenFeatureProto) - org.tensorflow.proto.example.VarLenFeatureProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_VarLenFeatureProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_VarLenFeatureProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.example.VarLenFeatureProto.class, org.tensorflow.proto.example.VarLenFeatureProto.Builder.class); - } - - // Construct using org.tensorflow.proto.example.VarLenFeatureProto.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - dtype_ = 0; - - valuesOutputTensorName_ = ""; - - indicesOutputTensorName_ = ""; - - shapesOutputTensorName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.example.ExampleParserConfigurationProtos.internal_static_tensorflow_VarLenFeatureProto_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.example.VarLenFeatureProto getDefaultInstanceForType() { - return org.tensorflow.proto.example.VarLenFeatureProto.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.example.VarLenFeatureProto build() { - org.tensorflow.proto.example.VarLenFeatureProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.example.VarLenFeatureProto buildPartial() { - org.tensorflow.proto.example.VarLenFeatureProto result = new org.tensorflow.proto.example.VarLenFeatureProto(this); - result.dtype_ = dtype_; - result.valuesOutputTensorName_ = valuesOutputTensorName_; - result.indicesOutputTensorName_ = indicesOutputTensorName_; - result.shapesOutputTensorName_ = shapesOutputTensorName_; - 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 org.tensorflow.proto.example.VarLenFeatureProto) { - return mergeFrom((org.tensorflow.proto.example.VarLenFeatureProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.example.VarLenFeatureProto other) { - if (other == org.tensorflow.proto.example.VarLenFeatureProto.getDefaultInstance()) return this; - if (other.dtype_ != 0) { - setDtypeValue(other.getDtypeValue()); - } - if (!other.getValuesOutputTensorName().isEmpty()) { - valuesOutputTensorName_ = other.valuesOutputTensorName_; - onChanged(); - } - if (!other.getIndicesOutputTensorName().isEmpty()) { - indicesOutputTensorName_ = other.indicesOutputTensorName_; - onChanged(); - } - if (!other.getShapesOutputTensorName().isEmpty()) { - shapesOutputTensorName_ = other.shapesOutputTensorName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.example.VarLenFeatureProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.example.VarLenFeatureProto) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int dtype_ = 0; - /** - * .tensorflow.DataType dtype = 1; - */ - public int getDtypeValue() { - return dtype_; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public Builder setDtypeValue(int value) { - dtype_ = value; - onChanged(); - return this; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public org.tensorflow.proto.framework.DataType getDtype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public Builder setDtype(org.tensorflow.proto.framework.DataType value) { - if (value == null) { - throw new NullPointerException(); - } - - dtype_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public Builder clearDtype() { - - dtype_ = 0; - onChanged(); - return this; - } - - private java.lang.Object valuesOutputTensorName_ = ""; - /** - * string values_output_tensor_name = 2; - */ - public java.lang.String getValuesOutputTensorName() { - java.lang.Object ref = valuesOutputTensorName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - valuesOutputTensorName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string values_output_tensor_name = 2; - */ - public com.google.protobuf.ByteString - getValuesOutputTensorNameBytes() { - java.lang.Object ref = valuesOutputTensorName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - valuesOutputTensorName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string values_output_tensor_name = 2; - */ - public Builder setValuesOutputTensorName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - valuesOutputTensorName_ = value; - onChanged(); - return this; - } - /** - * string values_output_tensor_name = 2; - */ - public Builder clearValuesOutputTensorName() { - - valuesOutputTensorName_ = getDefaultInstance().getValuesOutputTensorName(); - onChanged(); - return this; - } - /** - * string values_output_tensor_name = 2; - */ - public Builder setValuesOutputTensorNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - valuesOutputTensorName_ = value; - onChanged(); - return this; - } - - private java.lang.Object indicesOutputTensorName_ = ""; - /** - * string indices_output_tensor_name = 3; - */ - public java.lang.String getIndicesOutputTensorName() { - java.lang.Object ref = indicesOutputTensorName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - indicesOutputTensorName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string indices_output_tensor_name = 3; - */ - public com.google.protobuf.ByteString - getIndicesOutputTensorNameBytes() { - java.lang.Object ref = indicesOutputTensorName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - indicesOutputTensorName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string indices_output_tensor_name = 3; - */ - public Builder setIndicesOutputTensorName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - indicesOutputTensorName_ = value; - onChanged(); - return this; - } - /** - * string indices_output_tensor_name = 3; - */ - public Builder clearIndicesOutputTensorName() { - - indicesOutputTensorName_ = getDefaultInstance().getIndicesOutputTensorName(); - onChanged(); - return this; - } - /** - * string indices_output_tensor_name = 3; - */ - public Builder setIndicesOutputTensorNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - indicesOutputTensorName_ = value; - onChanged(); - return this; - } - - private java.lang.Object shapesOutputTensorName_ = ""; - /** - * string shapes_output_tensor_name = 4; - */ - public java.lang.String getShapesOutputTensorName() { - java.lang.Object ref = shapesOutputTensorName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - shapesOutputTensorName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string shapes_output_tensor_name = 4; - */ - public com.google.protobuf.ByteString - getShapesOutputTensorNameBytes() { - java.lang.Object ref = shapesOutputTensorName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - shapesOutputTensorName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string shapes_output_tensor_name = 4; - */ - public Builder setShapesOutputTensorName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - shapesOutputTensorName_ = value; - onChanged(); - return this; - } - /** - * string shapes_output_tensor_name = 4; - */ - public Builder clearShapesOutputTensorName() { - - shapesOutputTensorName_ = getDefaultInstance().getShapesOutputTensorName(); - onChanged(); - return this; - } - /** - * string shapes_output_tensor_name = 4; - */ - public Builder setShapesOutputTensorNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - shapesOutputTensorName_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.VarLenFeatureProto) - } - - // @@protoc_insertion_point(class_scope:tensorflow.VarLenFeatureProto) - private static final org.tensorflow.proto.example.VarLenFeatureProto DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.example.VarLenFeatureProto(); - } - - public static org.tensorflow.proto.example.VarLenFeatureProto getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VarLenFeatureProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VarLenFeatureProto(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.example.VarLenFeatureProto getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/VarLenFeatureProtoOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/VarLenFeatureProtoOrBuilder.java deleted file mode 100644 index 820c2faa8f8..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/VarLenFeatureProtoOrBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/example_parser_configuration.proto - -package org.tensorflow.proto.example; - -public interface VarLenFeatureProtoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.VarLenFeatureProto) - com.google.protobuf.MessageOrBuilder { - - /** - * .tensorflow.DataType dtype = 1; - */ - int getDtypeValue(); - /** - * .tensorflow.DataType dtype = 1; - */ - org.tensorflow.proto.framework.DataType getDtype(); - - /** - * string values_output_tensor_name = 2; - */ - java.lang.String getValuesOutputTensorName(); - /** - * string values_output_tensor_name = 2; - */ - com.google.protobuf.ByteString - getValuesOutputTensorNameBytes(); - - /** - * string indices_output_tensor_name = 3; - */ - java.lang.String getIndicesOutputTensorName(); - /** - * string indices_output_tensor_name = 3; - */ - com.google.protobuf.ByteString - getIndicesOutputTensorNameBytes(); - - /** - * string shapes_output_tensor_name = 4; - */ - java.lang.String getShapesOutputTensorName(); - /** - * string shapes_output_tensor_name = 4; - */ - com.google.protobuf.ByteString - getShapesOutputTensorNameBytes(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AllocationDescription.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AllocationDescription.java deleted file mode 100644 index 2abffe7549a..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AllocationDescription.java +++ /dev/null @@ -1,944 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/allocation_description.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.AllocationDescription} - */ -public final class AllocationDescription extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.AllocationDescription) - AllocationDescriptionOrBuilder { -private static final long serialVersionUID = 0L; - // Use AllocationDescription.newBuilder() to construct. - private AllocationDescription(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AllocationDescription() { - allocatorName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AllocationDescription(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AllocationDescription( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - requestedBytes_ = input.readInt64(); - break; - } - case 16: { - - allocatedBytes_ = input.readInt64(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - allocatorName_ = s; - break; - } - case 32: { - - allocationId_ = input.readInt64(); - break; - } - case 40: { - - hasSingleReference_ = input.readBool(); - break; - } - case 48: { - - ptr_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.AllocationDescriptionProtos.internal_static_tensorflow_AllocationDescription_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.AllocationDescriptionProtos.internal_static_tensorflow_AllocationDescription_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.AllocationDescription.class, org.tensorflow.proto.framework.AllocationDescription.Builder.class); - } - - public static final int REQUESTED_BYTES_FIELD_NUMBER = 1; - private long requestedBytes_; - /** - *
-   * Total number of bytes requested
-   * 
- * - * int64 requested_bytes = 1; - */ - public long getRequestedBytes() { - return requestedBytes_; - } - - public static final int ALLOCATED_BYTES_FIELD_NUMBER = 2; - private long allocatedBytes_; - /** - *
-   * Total number of bytes allocated if known
-   * 
- * - * int64 allocated_bytes = 2; - */ - public long getAllocatedBytes() { - return allocatedBytes_; - } - - public static final int ALLOCATOR_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object allocatorName_; - /** - *
-   * Name of the allocator used
-   * 
- * - * string allocator_name = 3; - */ - public java.lang.String getAllocatorName() { - java.lang.Object ref = allocatorName_; - 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(); - allocatorName_ = s; - return s; - } - } - /** - *
-   * Name of the allocator used
-   * 
- * - * string allocator_name = 3; - */ - public com.google.protobuf.ByteString - getAllocatorNameBytes() { - java.lang.Object ref = allocatorName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - allocatorName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ALLOCATION_ID_FIELD_NUMBER = 4; - private long allocationId_; - /** - *
-   * Identifier of the allocated buffer if known
-   * 
- * - * int64 allocation_id = 4; - */ - public long getAllocationId() { - return allocationId_; - } - - public static final int HAS_SINGLE_REFERENCE_FIELD_NUMBER = 5; - private boolean hasSingleReference_; - /** - *
-   * Set if this tensor only has one remaining reference
-   * 
- * - * bool has_single_reference = 5; - */ - public boolean getHasSingleReference() { - return hasSingleReference_; - } - - public static final int PTR_FIELD_NUMBER = 6; - private long ptr_; - /** - *
-   * Address of the allocation.
-   * 
- * - * uint64 ptr = 6; - */ - public long getPtr() { - return ptr_; - } - - 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 (requestedBytes_ != 0L) { - output.writeInt64(1, requestedBytes_); - } - if (allocatedBytes_ != 0L) { - output.writeInt64(2, allocatedBytes_); - } - if (!getAllocatorNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, allocatorName_); - } - if (allocationId_ != 0L) { - output.writeInt64(4, allocationId_); - } - if (hasSingleReference_ != false) { - output.writeBool(5, hasSingleReference_); - } - if (ptr_ != 0L) { - output.writeUInt64(6, ptr_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (requestedBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, requestedBytes_); - } - if (allocatedBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, allocatedBytes_); - } - if (!getAllocatorNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, allocatorName_); - } - if (allocationId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, allocationId_); - } - if (hasSingleReference_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, hasSingleReference_); - } - if (ptr_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(6, ptr_); - } - 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 org.tensorflow.proto.framework.AllocationDescription)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.AllocationDescription other = (org.tensorflow.proto.framework.AllocationDescription) obj; - - if (getRequestedBytes() - != other.getRequestedBytes()) return false; - if (getAllocatedBytes() - != other.getAllocatedBytes()) return false; - if (!getAllocatorName() - .equals(other.getAllocatorName())) return false; - if (getAllocationId() - != other.getAllocationId()) return false; - if (getHasSingleReference() - != other.getHasSingleReference()) return false; - if (getPtr() - != other.getPtr()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REQUESTED_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRequestedBytes()); - hash = (37 * hash) + ALLOCATED_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAllocatedBytes()); - hash = (37 * hash) + ALLOCATOR_NAME_FIELD_NUMBER; - hash = (53 * hash) + getAllocatorName().hashCode(); - hash = (37 * hash) + ALLOCATION_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAllocationId()); - hash = (37 * hash) + HAS_SINGLE_REFERENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHasSingleReference()); - hash = (37 * hash) + PTR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPtr()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.AllocationDescription parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.AllocationDescription parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.AllocationDescription parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.AllocationDescription parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.AllocationDescription parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.AllocationDescription parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.AllocationDescription parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.AllocationDescription 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 org.tensorflow.proto.framework.AllocationDescription parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.AllocationDescription 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 org.tensorflow.proto.framework.AllocationDescription parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.AllocationDescription 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(org.tensorflow.proto.framework.AllocationDescription prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.AllocationDescription} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.AllocationDescription) - org.tensorflow.proto.framework.AllocationDescriptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.AllocationDescriptionProtos.internal_static_tensorflow_AllocationDescription_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.AllocationDescriptionProtos.internal_static_tensorflow_AllocationDescription_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.AllocationDescription.class, org.tensorflow.proto.framework.AllocationDescription.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.AllocationDescription.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - requestedBytes_ = 0L; - - allocatedBytes_ = 0L; - - allocatorName_ = ""; - - allocationId_ = 0L; - - hasSingleReference_ = false; - - ptr_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.AllocationDescriptionProtos.internal_static_tensorflow_AllocationDescription_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.AllocationDescription getDefaultInstanceForType() { - return org.tensorflow.proto.framework.AllocationDescription.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.AllocationDescription build() { - org.tensorflow.proto.framework.AllocationDescription result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.AllocationDescription buildPartial() { - org.tensorflow.proto.framework.AllocationDescription result = new org.tensorflow.proto.framework.AllocationDescription(this); - result.requestedBytes_ = requestedBytes_; - result.allocatedBytes_ = allocatedBytes_; - result.allocatorName_ = allocatorName_; - result.allocationId_ = allocationId_; - result.hasSingleReference_ = hasSingleReference_; - result.ptr_ = ptr_; - 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 org.tensorflow.proto.framework.AllocationDescription) { - return mergeFrom((org.tensorflow.proto.framework.AllocationDescription)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.AllocationDescription other) { - if (other == org.tensorflow.proto.framework.AllocationDescription.getDefaultInstance()) return this; - if (other.getRequestedBytes() != 0L) { - setRequestedBytes(other.getRequestedBytes()); - } - if (other.getAllocatedBytes() != 0L) { - setAllocatedBytes(other.getAllocatedBytes()); - } - if (!other.getAllocatorName().isEmpty()) { - allocatorName_ = other.allocatorName_; - onChanged(); - } - if (other.getAllocationId() != 0L) { - setAllocationId(other.getAllocationId()); - } - if (other.getHasSingleReference() != false) { - setHasSingleReference(other.getHasSingleReference()); - } - if (other.getPtr() != 0L) { - setPtr(other.getPtr()); - } - 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 { - org.tensorflow.proto.framework.AllocationDescription parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.AllocationDescription) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long requestedBytes_ ; - /** - *
-     * Total number of bytes requested
-     * 
- * - * int64 requested_bytes = 1; - */ - public long getRequestedBytes() { - return requestedBytes_; - } - /** - *
-     * Total number of bytes requested
-     * 
- * - * int64 requested_bytes = 1; - */ - public Builder setRequestedBytes(long value) { - - requestedBytes_ = value; - onChanged(); - return this; - } - /** - *
-     * Total number of bytes requested
-     * 
- * - * int64 requested_bytes = 1; - */ - public Builder clearRequestedBytes() { - - requestedBytes_ = 0L; - onChanged(); - return this; - } - - private long allocatedBytes_ ; - /** - *
-     * Total number of bytes allocated if known
-     * 
- * - * int64 allocated_bytes = 2; - */ - public long getAllocatedBytes() { - return allocatedBytes_; - } - /** - *
-     * Total number of bytes allocated if known
-     * 
- * - * int64 allocated_bytes = 2; - */ - public Builder setAllocatedBytes(long value) { - - allocatedBytes_ = value; - onChanged(); - return this; - } - /** - *
-     * Total number of bytes allocated if known
-     * 
- * - * int64 allocated_bytes = 2; - */ - public Builder clearAllocatedBytes() { - - allocatedBytes_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object allocatorName_ = ""; - /** - *
-     * Name of the allocator used
-     * 
- * - * string allocator_name = 3; - */ - public java.lang.String getAllocatorName() { - java.lang.Object ref = allocatorName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - allocatorName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Name of the allocator used
-     * 
- * - * string allocator_name = 3; - */ - public com.google.protobuf.ByteString - getAllocatorNameBytes() { - java.lang.Object ref = allocatorName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - allocatorName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Name of the allocator used
-     * 
- * - * string allocator_name = 3; - */ - public Builder setAllocatorName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - allocatorName_ = value; - onChanged(); - return this; - } - /** - *
-     * Name of the allocator used
-     * 
- * - * string allocator_name = 3; - */ - public Builder clearAllocatorName() { - - allocatorName_ = getDefaultInstance().getAllocatorName(); - onChanged(); - return this; - } - /** - *
-     * Name of the allocator used
-     * 
- * - * string allocator_name = 3; - */ - public Builder setAllocatorNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - allocatorName_ = value; - onChanged(); - return this; - } - - private long allocationId_ ; - /** - *
-     * Identifier of the allocated buffer if known
-     * 
- * - * int64 allocation_id = 4; - */ - public long getAllocationId() { - return allocationId_; - } - /** - *
-     * Identifier of the allocated buffer if known
-     * 
- * - * int64 allocation_id = 4; - */ - public Builder setAllocationId(long value) { - - allocationId_ = value; - onChanged(); - return this; - } - /** - *
-     * Identifier of the allocated buffer if known
-     * 
- * - * int64 allocation_id = 4; - */ - public Builder clearAllocationId() { - - allocationId_ = 0L; - onChanged(); - return this; - } - - private boolean hasSingleReference_ ; - /** - *
-     * Set if this tensor only has one remaining reference
-     * 
- * - * bool has_single_reference = 5; - */ - public boolean getHasSingleReference() { - return hasSingleReference_; - } - /** - *
-     * Set if this tensor only has one remaining reference
-     * 
- * - * bool has_single_reference = 5; - */ - public Builder setHasSingleReference(boolean value) { - - hasSingleReference_ = value; - onChanged(); - return this; - } - /** - *
-     * Set if this tensor only has one remaining reference
-     * 
- * - * bool has_single_reference = 5; - */ - public Builder clearHasSingleReference() { - - hasSingleReference_ = false; - onChanged(); - return this; - } - - private long ptr_ ; - /** - *
-     * Address of the allocation.
-     * 
- * - * uint64 ptr = 6; - */ - public long getPtr() { - return ptr_; - } - /** - *
-     * Address of the allocation.
-     * 
- * - * uint64 ptr = 6; - */ - public Builder setPtr(long value) { - - ptr_ = value; - onChanged(); - return this; - } - /** - *
-     * Address of the allocation.
-     * 
- * - * uint64 ptr = 6; - */ - public Builder clearPtr() { - - ptr_ = 0L; - 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:tensorflow.AllocationDescription) - } - - // @@protoc_insertion_point(class_scope:tensorflow.AllocationDescription) - private static final org.tensorflow.proto.framework.AllocationDescription DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.AllocationDescription(); - } - - public static org.tensorflow.proto.framework.AllocationDescription getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllocationDescription parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AllocationDescription(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.AllocationDescription getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AllocationRecord.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AllocationRecord.java deleted file mode 100644 index 738f1117fbe..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AllocationRecord.java +++ /dev/null @@ -1,575 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/step_stats.proto - -package org.tensorflow.proto.framework; - -/** - *
- * An allocation/de-allocation operation performed by the allocator.
- * 
- * - * Protobuf type {@code tensorflow.AllocationRecord} - */ -public final class AllocationRecord extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.AllocationRecord) - AllocationRecordOrBuilder { -private static final long serialVersionUID = 0L; - // Use AllocationRecord.newBuilder() to construct. - private AllocationRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AllocationRecord() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AllocationRecord(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AllocationRecord( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - allocMicros_ = input.readInt64(); - break; - } - case 16: { - - allocBytes_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_AllocationRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_AllocationRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.AllocationRecord.class, org.tensorflow.proto.framework.AllocationRecord.Builder.class); - } - - public static final int ALLOC_MICROS_FIELD_NUMBER = 1; - private long allocMicros_; - /** - *
-   * The timestamp of the operation.
-   * 
- * - * int64 alloc_micros = 1; - */ - public long getAllocMicros() { - return allocMicros_; - } - - public static final int ALLOC_BYTES_FIELD_NUMBER = 2; - private long allocBytes_; - /** - *
-   * Number of bytes allocated, or de-allocated if negative.
-   * 
- * - * int64 alloc_bytes = 2; - */ - public long getAllocBytes() { - return allocBytes_; - } - - 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 (allocMicros_ != 0L) { - output.writeInt64(1, allocMicros_); - } - if (allocBytes_ != 0L) { - output.writeInt64(2, allocBytes_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (allocMicros_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, allocMicros_); - } - if (allocBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, allocBytes_); - } - 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 org.tensorflow.proto.framework.AllocationRecord)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.AllocationRecord other = (org.tensorflow.proto.framework.AllocationRecord) obj; - - if (getAllocMicros() - != other.getAllocMicros()) return false; - if (getAllocBytes() - != other.getAllocBytes()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ALLOC_MICROS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAllocMicros()); - hash = (37 * hash) + ALLOC_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAllocBytes()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.AllocationRecord parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.AllocationRecord parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.AllocationRecord parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.AllocationRecord parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.AllocationRecord parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.AllocationRecord parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.AllocationRecord parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.AllocationRecord 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 org.tensorflow.proto.framework.AllocationRecord parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.AllocationRecord 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 org.tensorflow.proto.framework.AllocationRecord parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.AllocationRecord 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(org.tensorflow.proto.framework.AllocationRecord 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; - } - /** - *
-   * An allocation/de-allocation operation performed by the allocator.
-   * 
- * - * Protobuf type {@code tensorflow.AllocationRecord} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.AllocationRecord) - org.tensorflow.proto.framework.AllocationRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_AllocationRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_AllocationRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.AllocationRecord.class, org.tensorflow.proto.framework.AllocationRecord.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.AllocationRecord.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - allocMicros_ = 0L; - - allocBytes_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_AllocationRecord_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.AllocationRecord getDefaultInstanceForType() { - return org.tensorflow.proto.framework.AllocationRecord.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.AllocationRecord build() { - org.tensorflow.proto.framework.AllocationRecord result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.AllocationRecord buildPartial() { - org.tensorflow.proto.framework.AllocationRecord result = new org.tensorflow.proto.framework.AllocationRecord(this); - result.allocMicros_ = allocMicros_; - result.allocBytes_ = allocBytes_; - 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 org.tensorflow.proto.framework.AllocationRecord) { - return mergeFrom((org.tensorflow.proto.framework.AllocationRecord)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.AllocationRecord other) { - if (other == org.tensorflow.proto.framework.AllocationRecord.getDefaultInstance()) return this; - if (other.getAllocMicros() != 0L) { - setAllocMicros(other.getAllocMicros()); - } - if (other.getAllocBytes() != 0L) { - setAllocBytes(other.getAllocBytes()); - } - 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 { - org.tensorflow.proto.framework.AllocationRecord parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.AllocationRecord) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long allocMicros_ ; - /** - *
-     * The timestamp of the operation.
-     * 
- * - * int64 alloc_micros = 1; - */ - public long getAllocMicros() { - return allocMicros_; - } - /** - *
-     * The timestamp of the operation.
-     * 
- * - * int64 alloc_micros = 1; - */ - public Builder setAllocMicros(long value) { - - allocMicros_ = value; - onChanged(); - return this; - } - /** - *
-     * The timestamp of the operation.
-     * 
- * - * int64 alloc_micros = 1; - */ - public Builder clearAllocMicros() { - - allocMicros_ = 0L; - onChanged(); - return this; - } - - private long allocBytes_ ; - /** - *
-     * Number of bytes allocated, or de-allocated if negative.
-     * 
- * - * int64 alloc_bytes = 2; - */ - public long getAllocBytes() { - return allocBytes_; - } - /** - *
-     * Number of bytes allocated, or de-allocated if negative.
-     * 
- * - * int64 alloc_bytes = 2; - */ - public Builder setAllocBytes(long value) { - - allocBytes_ = value; - onChanged(); - return this; - } - /** - *
-     * Number of bytes allocated, or de-allocated if negative.
-     * 
- * - * int64 alloc_bytes = 2; - */ - public Builder clearAllocBytes() { - - allocBytes_ = 0L; - 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:tensorflow.AllocationRecord) - } - - // @@protoc_insertion_point(class_scope:tensorflow.AllocationRecord) - private static final org.tensorflow.proto.framework.AllocationRecord DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.AllocationRecord(); - } - - public static org.tensorflow.proto.framework.AllocationRecord getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AllocationRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AllocationRecord(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.AllocationRecord getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ApiDef.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ApiDef.java deleted file mode 100644 index 57844b384b0..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ApiDef.java +++ /dev/null @@ -1,6303 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/api_def.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Used to specify and override the default API & behavior in the
- * generated code for client languages, from what you would get from
- * the OpDef alone. There will be a set of ApiDefs that are common
- * to all client languages, and another set per client language.
- * The per-client-language ApiDefs will inherit values from the
- * common ApiDefs which it can either replace or modify.
- * We separate the API definition from the OpDef so we can evolve the
- * API while remaining backwards compatible when interpreting old
- * graphs.  Overrides go in an "api_def.pbtxt" file with a text-format
- * ApiDefs message.
- * WARNING: Be *very* careful changing the API for any existing op --
- * you can change the semantics of existing code.  These changes may
- * need to wait until a major release of TensorFlow to avoid breaking
- * our compatibility promises.
- * 
- * - * Protobuf type {@code tensorflow.ApiDef} - */ -public final class ApiDef extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.ApiDef) - ApiDefOrBuilder { -private static final long serialVersionUID = 0L; - // Use ApiDef.newBuilder() to construct. - private ApiDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ApiDef() { - graphOpName_ = ""; - deprecationMessage_ = ""; - visibility_ = 0; - endpoint_ = java.util.Collections.emptyList(); - inArg_ = java.util.Collections.emptyList(); - outArg_ = java.util.Collections.emptyList(); - argOrder_ = com.google.protobuf.LazyStringArrayList.EMPTY; - attr_ = java.util.Collections.emptyList(); - summary_ = ""; - description_ = ""; - descriptionPrefix_ = ""; - descriptionSuffix_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ApiDef(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ApiDef( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - graphOpName_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - visibility_ = rawValue; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - endpoint_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - endpoint_.add( - input.readMessage(org.tensorflow.proto.framework.ApiDef.Endpoint.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - inArg_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - inArg_.add( - input.readMessage(org.tensorflow.proto.framework.ApiDef.Arg.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - outArg_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - outArg_.add( - input.readMessage(org.tensorflow.proto.framework.ApiDef.Arg.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - attr_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - attr_.add( - input.readMessage(org.tensorflow.proto.framework.ApiDef.Attr.parser(), extensionRegistry)); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - summary_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - - descriptionPrefix_ = s; - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - - descriptionSuffix_ = s; - break; - } - case 90: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - argOrder_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - argOrder_.add(s); - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); - - deprecationMessage_ = s; - break; - } - case 104: { - - deprecationVersion_ = input.readInt32(); - 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)) { - endpoint_ = java.util.Collections.unmodifiableList(endpoint_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - inArg_ = java.util.Collections.unmodifiableList(inArg_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - outArg_ = java.util.Collections.unmodifiableList(outArg_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - attr_ = java.util.Collections.unmodifiableList(attr_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - argOrder_ = argOrder_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ApiDef.class, org.tensorflow.proto.framework.ApiDef.Builder.class); - } - - /** - * Protobuf enum {@code tensorflow.ApiDef.Visibility} - */ - public enum Visibility - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Normally this is "VISIBLE" unless you are inheriting a
-     * different value from another ApiDef.
-     * 
- * - * DEFAULT_VISIBILITY = 0; - */ - DEFAULT_VISIBILITY(0), - /** - *
-     * Publicly visible in the API.
-     * 
- * - * VISIBLE = 1; - */ - VISIBLE(1), - /** - *
-     * Do not include this op in the generated API. If visibility is
-     * set to 'SKIP', other fields are ignored for this op.
-     * 
- * - * SKIP = 2; - */ - SKIP(2), - /** - *
-     * Hide this op by putting it into an internal namespace (or whatever
-     * is appropriate in the target language).
-     * 
- * - * HIDDEN = 3; - */ - HIDDEN(3), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Normally this is "VISIBLE" unless you are inheriting a
-     * different value from another ApiDef.
-     * 
- * - * DEFAULT_VISIBILITY = 0; - */ - public static final int DEFAULT_VISIBILITY_VALUE = 0; - /** - *
-     * Publicly visible in the API.
-     * 
- * - * VISIBLE = 1; - */ - public static final int VISIBLE_VALUE = 1; - /** - *
-     * Do not include this op in the generated API. If visibility is
-     * set to 'SKIP', other fields are ignored for this op.
-     * 
- * - * SKIP = 2; - */ - public static final int SKIP_VALUE = 2; - /** - *
-     * Hide this op by putting it into an internal namespace (or whatever
-     * is appropriate in the target language).
-     * 
- * - * HIDDEN = 3; - */ - public static final int HIDDEN_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Visibility valueOf(int value) { - return forNumber(value); - } - - public static Visibility forNumber(int value) { - switch (value) { - case 0: return DEFAULT_VISIBILITY; - case 1: return VISIBLE; - case 2: return SKIP; - case 3: return HIDDEN; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Visibility> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Visibility findValueByNumber(int number) { - return Visibility.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 org.tensorflow.proto.framework.ApiDef.getDescriptor().getEnumTypes().get(0); - } - - private static final Visibility[] VALUES = values(); - - public static Visibility 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 Visibility(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:tensorflow.ApiDef.Visibility) - } - - public interface EndpointOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.ApiDef.Endpoint) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Name should be either like "CamelCaseName" or
-     * "Package.CamelCaseName". Client-language-specific ApiDefs may
-     * use a snake_case convention instead of CamelCase.
-     * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-     * Name should be either like "CamelCaseName" or
-     * "Package.CamelCaseName". Client-language-specific ApiDefs may
-     * use a snake_case convention instead of CamelCase.
-     * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * Set if this endpoint is deprecated. If set to true, a message suggesting
-     * to use a non-deprecated endpoint instead will be printed. If all
-     * endpoints are deprecated, set deprecation_message in ApiDef instead.
-     * 
- * - * bool deprecated = 3; - */ - boolean getDeprecated(); - - /** - *
-     * Major version when an endpoint will be deleted. For e.g. set this
-     * value to 2 if endpoint should be removed in TensorFlow 2.0 and
-     * deprecated in versions before that.
-     * 
- * - * int32 deprecation_version = 4; - */ - int getDeprecationVersion(); - } - /** - *
-   * If you specify any endpoint, this will replace all of the
-   * inherited endpoints.  The first endpoint should be the
-   * "canonical" endpoint, and should not be deprecated (unless all
-   * endpoints are deprecated).
-   * 
- * - * Protobuf type {@code tensorflow.ApiDef.Endpoint} - */ - public static final class Endpoint extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.ApiDef.Endpoint) - EndpointOrBuilder { - private static final long serialVersionUID = 0L; - // Use Endpoint.newBuilder() to construct. - private Endpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Endpoint() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Endpoint(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Endpoint( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 24: { - - deprecated_ = input.readBool(); - break; - } - case 32: { - - deprecationVersion_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Endpoint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Endpoint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ApiDef.Endpoint.class, org.tensorflow.proto.framework.ApiDef.Endpoint.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-     * Name should be either like "CamelCaseName" or
-     * "Package.CamelCaseName". Client-language-specific ApiDefs may
-     * use a snake_case convention instead of CamelCase.
-     * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - *
-     * Name should be either like "CamelCaseName" or
-     * "Package.CamelCaseName". Client-language-specific ApiDefs may
-     * use a snake_case convention instead of CamelCase.
-     * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEPRECATED_FIELD_NUMBER = 3; - private boolean deprecated_; - /** - *
-     * Set if this endpoint is deprecated. If set to true, a message suggesting
-     * to use a non-deprecated endpoint instead will be printed. If all
-     * endpoints are deprecated, set deprecation_message in ApiDef instead.
-     * 
- * - * bool deprecated = 3; - */ - public boolean getDeprecated() { - return deprecated_; - } - - public static final int DEPRECATION_VERSION_FIELD_NUMBER = 4; - private int deprecationVersion_; - /** - *
-     * Major version when an endpoint will be deleted. For e.g. set this
-     * value to 2 if endpoint should be removed in TensorFlow 2.0 and
-     * deprecated in versions before that.
-     * 
- * - * int32 deprecation_version = 4; - */ - public int getDeprecationVersion() { - return deprecationVersion_; - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (deprecated_ != false) { - output.writeBool(3, deprecated_); - } - if (deprecationVersion_ != 0) { - output.writeInt32(4, deprecationVersion_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (deprecated_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, deprecated_); - } - if (deprecationVersion_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, deprecationVersion_); - } - 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 org.tensorflow.proto.framework.ApiDef.Endpoint)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.ApiDef.Endpoint other = (org.tensorflow.proto.framework.ApiDef.Endpoint) obj; - - if (!getName() - .equals(other.getName())) return false; - if (getDeprecated() - != other.getDeprecated()) return false; - if (getDeprecationVersion() - != other.getDeprecationVersion()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDeprecated()); - hash = (37 * hash) + DEPRECATION_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getDeprecationVersion(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.ApiDef.Endpoint parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ApiDef.Endpoint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ApiDef.Endpoint parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ApiDef.Endpoint parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ApiDef.Endpoint parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ApiDef.Endpoint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ApiDef.Endpoint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ApiDef.Endpoint 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 org.tensorflow.proto.framework.ApiDef.Endpoint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ApiDef.Endpoint 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 org.tensorflow.proto.framework.ApiDef.Endpoint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ApiDef.Endpoint 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(org.tensorflow.proto.framework.ApiDef.Endpoint 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; - } - /** - *
-     * If you specify any endpoint, this will replace all of the
-     * inherited endpoints.  The first endpoint should be the
-     * "canonical" endpoint, and should not be deprecated (unless all
-     * endpoints are deprecated).
-     * 
- * - * Protobuf type {@code tensorflow.ApiDef.Endpoint} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.ApiDef.Endpoint) - org.tensorflow.proto.framework.ApiDef.EndpointOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Endpoint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Endpoint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ApiDef.Endpoint.class, org.tensorflow.proto.framework.ApiDef.Endpoint.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.ApiDef.Endpoint.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - deprecated_ = false; - - deprecationVersion_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Endpoint_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ApiDef.Endpoint getDefaultInstanceForType() { - return org.tensorflow.proto.framework.ApiDef.Endpoint.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.ApiDef.Endpoint build() { - org.tensorflow.proto.framework.ApiDef.Endpoint result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ApiDef.Endpoint buildPartial() { - org.tensorflow.proto.framework.ApiDef.Endpoint result = new org.tensorflow.proto.framework.ApiDef.Endpoint(this); - result.name_ = name_; - result.deprecated_ = deprecated_; - result.deprecationVersion_ = deprecationVersion_; - 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 org.tensorflow.proto.framework.ApiDef.Endpoint) { - return mergeFrom((org.tensorflow.proto.framework.ApiDef.Endpoint)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.ApiDef.Endpoint other) { - if (other == org.tensorflow.proto.framework.ApiDef.Endpoint.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getDeprecated() != false) { - setDeprecated(other.getDeprecated()); - } - if (other.getDeprecationVersion() != 0) { - setDeprecationVersion(other.getDeprecationVersion()); - } - 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 { - org.tensorflow.proto.framework.ApiDef.Endpoint parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.ApiDef.Endpoint) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * Name should be either like "CamelCaseName" or
-       * "Package.CamelCaseName". Client-language-specific ApiDefs may
-       * use a snake_case convention instead of CamelCase.
-       * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name should be either like "CamelCaseName" or
-       * "Package.CamelCaseName". Client-language-specific ApiDefs may
-       * use a snake_case convention instead of CamelCase.
-       * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name should be either like "CamelCaseName" or
-       * "Package.CamelCaseName". Client-language-specific ApiDefs may
-       * use a snake_case convention instead of CamelCase.
-       * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * Name should be either like "CamelCaseName" or
-       * "Package.CamelCaseName". Client-language-specific ApiDefs may
-       * use a snake_case convention instead of CamelCase.
-       * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * Name should be either like "CamelCaseName" or
-       * "Package.CamelCaseName". Client-language-specific ApiDefs may
-       * use a snake_case convention instead of CamelCase.
-       * 
- * - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private boolean deprecated_ ; - /** - *
-       * Set if this endpoint is deprecated. If set to true, a message suggesting
-       * to use a non-deprecated endpoint instead will be printed. If all
-       * endpoints are deprecated, set deprecation_message in ApiDef instead.
-       * 
- * - * bool deprecated = 3; - */ - public boolean getDeprecated() { - return deprecated_; - } - /** - *
-       * Set if this endpoint is deprecated. If set to true, a message suggesting
-       * to use a non-deprecated endpoint instead will be printed. If all
-       * endpoints are deprecated, set deprecation_message in ApiDef instead.
-       * 
- * - * bool deprecated = 3; - */ - public Builder setDeprecated(boolean value) { - - deprecated_ = value; - onChanged(); - return this; - } - /** - *
-       * Set if this endpoint is deprecated. If set to true, a message suggesting
-       * to use a non-deprecated endpoint instead will be printed. If all
-       * endpoints are deprecated, set deprecation_message in ApiDef instead.
-       * 
- * - * bool deprecated = 3; - */ - public Builder clearDeprecated() { - - deprecated_ = false; - onChanged(); - return this; - } - - private int deprecationVersion_ ; - /** - *
-       * Major version when an endpoint will be deleted. For e.g. set this
-       * value to 2 if endpoint should be removed in TensorFlow 2.0 and
-       * deprecated in versions before that.
-       * 
- * - * int32 deprecation_version = 4; - */ - public int getDeprecationVersion() { - return deprecationVersion_; - } - /** - *
-       * Major version when an endpoint will be deleted. For e.g. set this
-       * value to 2 if endpoint should be removed in TensorFlow 2.0 and
-       * deprecated in versions before that.
-       * 
- * - * int32 deprecation_version = 4; - */ - public Builder setDeprecationVersion(int value) { - - deprecationVersion_ = value; - onChanged(); - return this; - } - /** - *
-       * Major version when an endpoint will be deleted. For e.g. set this
-       * value to 2 if endpoint should be removed in TensorFlow 2.0 and
-       * deprecated in versions before that.
-       * 
- * - * int32 deprecation_version = 4; - */ - public Builder clearDeprecationVersion() { - - deprecationVersion_ = 0; - 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:tensorflow.ApiDef.Endpoint) - } - - // @@protoc_insertion_point(class_scope:tensorflow.ApiDef.Endpoint) - private static final org.tensorflow.proto.framework.ApiDef.Endpoint DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.ApiDef.Endpoint(); - } - - public static org.tensorflow.proto.framework.ApiDef.Endpoint getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Endpoint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Endpoint(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ApiDef.Endpoint getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ArgOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.ApiDef.Arg) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1; - */ - java.lang.String getName(); - /** - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * Change the name used to access this arg in the API from what
-     * is used in the GraphDef.  Note that these names in `backticks`
-     * will also be replaced in the summary & description fields.
-     * 
- * - * string rename_to = 2; - */ - java.lang.String getRenameTo(); - /** - *
-     * Change the name used to access this arg in the API from what
-     * is used in the GraphDef.  Note that these names in `backticks`
-     * will also be replaced in the summary & description fields.
-     * 
- * - * string rename_to = 2; - */ - com.google.protobuf.ByteString - getRenameToBytes(); - - /** - *
-     * Note: this will replace any inherited arg doc. There is no
-     * current way of modifying arg descriptions (other than replacing
-     * them entirely) as can be done with op descriptions.
-     * 
- * - * string description = 3; - */ - java.lang.String getDescription(); - /** - *
-     * Note: this will replace any inherited arg doc. There is no
-     * current way of modifying arg descriptions (other than replacing
-     * them entirely) as can be done with op descriptions.
-     * 
- * - * string description = 3; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - } - /** - * Protobuf type {@code tensorflow.ApiDef.Arg} - */ - public static final class Arg extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.ApiDef.Arg) - ArgOrBuilder { - private static final long serialVersionUID = 0L; - // Use Arg.newBuilder() to construct. - private Arg(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Arg() { - name_ = ""; - renameTo_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Arg(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Arg( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - renameTo_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Arg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Arg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ApiDef.Arg.class, org.tensorflow.proto.framework.ApiDef.Arg.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RENAME_TO_FIELD_NUMBER = 2; - private volatile java.lang.Object renameTo_; - /** - *
-     * Change the name used to access this arg in the API from what
-     * is used in the GraphDef.  Note that these names in `backticks`
-     * will also be replaced in the summary & description fields.
-     * 
- * - * string rename_to = 2; - */ - public java.lang.String getRenameTo() { - java.lang.Object ref = renameTo_; - 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(); - renameTo_ = s; - return s; - } - } - /** - *
-     * Change the name used to access this arg in the API from what
-     * is used in the GraphDef.  Note that these names in `backticks`
-     * will also be replaced in the summary & description fields.
-     * 
- * - * string rename_to = 2; - */ - public com.google.protobuf.ByteString - getRenameToBytes() { - java.lang.Object ref = renameTo_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - renameTo_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; - /** - *
-     * Note: this will replace any inherited arg doc. There is no
-     * current way of modifying arg descriptions (other than replacing
-     * them entirely) as can be done with op descriptions.
-     * 
- * - * string description = 3; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-     * Note: this will replace any inherited arg doc. There is no
-     * current way of modifying arg descriptions (other than replacing
-     * them entirely) as can be done with op descriptions.
-     * 
- * - * string description = 3; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getRenameToBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, renameTo_); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getRenameToBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, renameTo_); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.tensorflow.proto.framework.ApiDef.Arg)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.ApiDef.Arg other = (org.tensorflow.proto.framework.ApiDef.Arg) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getRenameTo() - .equals(other.getRenameTo())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + RENAME_TO_FIELD_NUMBER; - hash = (53 * hash) + getRenameTo().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.ApiDef.Arg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ApiDef.Arg parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ApiDef.Arg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ApiDef.Arg parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ApiDef.Arg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ApiDef.Arg parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ApiDef.Arg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ApiDef.Arg 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 org.tensorflow.proto.framework.ApiDef.Arg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ApiDef.Arg 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 org.tensorflow.proto.framework.ApiDef.Arg parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ApiDef.Arg 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(org.tensorflow.proto.framework.ApiDef.Arg prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.ApiDef.Arg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.ApiDef.Arg) - org.tensorflow.proto.framework.ApiDef.ArgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Arg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Arg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ApiDef.Arg.class, org.tensorflow.proto.framework.ApiDef.Arg.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.ApiDef.Arg.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - renameTo_ = ""; - - description_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Arg_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ApiDef.Arg getDefaultInstanceForType() { - return org.tensorflow.proto.framework.ApiDef.Arg.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.ApiDef.Arg build() { - org.tensorflow.proto.framework.ApiDef.Arg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ApiDef.Arg buildPartial() { - org.tensorflow.proto.framework.ApiDef.Arg result = new org.tensorflow.proto.framework.ApiDef.Arg(this); - result.name_ = name_; - result.renameTo_ = renameTo_; - result.description_ = description_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.ApiDef.Arg) { - return mergeFrom((org.tensorflow.proto.framework.ApiDef.Arg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.ApiDef.Arg other) { - if (other == org.tensorflow.proto.framework.ApiDef.Arg.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getRenameTo().isEmpty()) { - renameTo_ = other.renameTo_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.ApiDef.Arg parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.ApiDef.Arg) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object renameTo_ = ""; - /** - *
-       * Change the name used to access this arg in the API from what
-       * is used in the GraphDef.  Note that these names in `backticks`
-       * will also be replaced in the summary & description fields.
-       * 
- * - * string rename_to = 2; - */ - public java.lang.String getRenameTo() { - java.lang.Object ref = renameTo_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - renameTo_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Change the name used to access this arg in the API from what
-       * is used in the GraphDef.  Note that these names in `backticks`
-       * will also be replaced in the summary & description fields.
-       * 
- * - * string rename_to = 2; - */ - public com.google.protobuf.ByteString - getRenameToBytes() { - java.lang.Object ref = renameTo_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - renameTo_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Change the name used to access this arg in the API from what
-       * is used in the GraphDef.  Note that these names in `backticks`
-       * will also be replaced in the summary & description fields.
-       * 
- * - * string rename_to = 2; - */ - public Builder setRenameTo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - renameTo_ = value; - onChanged(); - return this; - } - /** - *
-       * Change the name used to access this arg in the API from what
-       * is used in the GraphDef.  Note that these names in `backticks`
-       * will also be replaced in the summary & description fields.
-       * 
- * - * string rename_to = 2; - */ - public Builder clearRenameTo() { - - renameTo_ = getDefaultInstance().getRenameTo(); - onChanged(); - return this; - } - /** - *
-       * Change the name used to access this arg in the API from what
-       * is used in the GraphDef.  Note that these names in `backticks`
-       * will also be replaced in the summary & description fields.
-       * 
- * - * string rename_to = 2; - */ - public Builder setRenameToBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - renameTo_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-       * Note: this will replace any inherited arg doc. There is no
-       * current way of modifying arg descriptions (other than replacing
-       * them entirely) as can be done with op descriptions.
-       * 
- * - * string description = 3; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Note: this will replace any inherited arg doc. There is no
-       * current way of modifying arg descriptions (other than replacing
-       * them entirely) as can be done with op descriptions.
-       * 
- * - * string description = 3; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Note: this will replace any inherited arg doc. There is no
-       * current way of modifying arg descriptions (other than replacing
-       * them entirely) as can be done with op descriptions.
-       * 
- * - * string description = 3; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
-       * Note: this will replace any inherited arg doc. There is no
-       * current way of modifying arg descriptions (other than replacing
-       * them entirely) as can be done with op descriptions.
-       * 
- * - * string description = 3; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-       * Note: this will replace any inherited arg doc. There is no
-       * current way of modifying arg descriptions (other than replacing
-       * them entirely) as can be done with op descriptions.
-       * 
- * - * string description = 3; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.ApiDef.Arg) - } - - // @@protoc_insertion_point(class_scope:tensorflow.ApiDef.Arg) - private static final org.tensorflow.proto.framework.ApiDef.Arg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.ApiDef.Arg(); - } - - public static org.tensorflow.proto.framework.ApiDef.Arg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Arg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Arg(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ApiDef.Arg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AttrOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.ApiDef.Attr) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1; - */ - java.lang.String getName(); - /** - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * Change the name used to access this attr in the API from what
-     * is used in the GraphDef.  Note that these names in `backticks`
-     * will also be replaced in the summary & description fields.
-     * 
- * - * string rename_to = 2; - */ - java.lang.String getRenameTo(); - /** - *
-     * Change the name used to access this attr in the API from what
-     * is used in the GraphDef.  Note that these names in `backticks`
-     * will also be replaced in the summary & description fields.
-     * 
- * - * string rename_to = 2; - */ - com.google.protobuf.ByteString - getRenameToBytes(); - - /** - *
-     * Specify a new default value to use for this attr.  This default
-     * will be used when creating new graphs, as opposed to the
-     * default in the OpDef, which will be used when interpreting old
-     * GraphDefs.
-     * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - boolean hasDefaultValue(); - /** - *
-     * Specify a new default value to use for this attr.  This default
-     * will be used when creating new graphs, as opposed to the
-     * default in the OpDef, which will be used when interpreting old
-     * GraphDefs.
-     * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - org.tensorflow.proto.framework.AttrValue getDefaultValue(); - /** - *
-     * Specify a new default value to use for this attr.  This default
-     * will be used when creating new graphs, as opposed to the
-     * default in the OpDef, which will be used when interpreting old
-     * GraphDefs.
-     * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - org.tensorflow.proto.framework.AttrValueOrBuilder getDefaultValueOrBuilder(); - - /** - *
-     * Note: this will replace any inherited attr doc, there is no current
-     * way of modifying attr descriptions as can be done with op descriptions.
-     * 
- * - * string description = 4; - */ - java.lang.String getDescription(); - /** - *
-     * Note: this will replace any inherited attr doc, there is no current
-     * way of modifying attr descriptions as can be done with op descriptions.
-     * 
- * - * string description = 4; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - } - /** - *
-   * Description of the graph-construction-time configuration of this
-   * Op.  That is to say, this describes the attr fields that will
-   * be specified in the NodeDef.
-   * 
- * - * Protobuf type {@code tensorflow.ApiDef.Attr} - */ - public static final class Attr extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.ApiDef.Attr) - AttrOrBuilder { - private static final long serialVersionUID = 0L; - // Use Attr.newBuilder() to construct. - private Attr(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Attr() { - name_ = ""; - renameTo_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Attr(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Attr( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - renameTo_ = s; - break; - } - case 26: { - org.tensorflow.proto.framework.AttrValue.Builder subBuilder = null; - if (defaultValue_ != null) { - subBuilder = defaultValue_.toBuilder(); - } - defaultValue_ = input.readMessage(org.tensorflow.proto.framework.AttrValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(defaultValue_); - defaultValue_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Attr_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Attr_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ApiDef.Attr.class, org.tensorflow.proto.framework.ApiDef.Attr.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RENAME_TO_FIELD_NUMBER = 2; - private volatile java.lang.Object renameTo_; - /** - *
-     * Change the name used to access this attr in the API from what
-     * is used in the GraphDef.  Note that these names in `backticks`
-     * will also be replaced in the summary & description fields.
-     * 
- * - * string rename_to = 2; - */ - public java.lang.String getRenameTo() { - java.lang.Object ref = renameTo_; - 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(); - renameTo_ = s; - return s; - } - } - /** - *
-     * Change the name used to access this attr in the API from what
-     * is used in the GraphDef.  Note that these names in `backticks`
-     * will also be replaced in the summary & description fields.
-     * 
- * - * string rename_to = 2; - */ - public com.google.protobuf.ByteString - getRenameToBytes() { - java.lang.Object ref = renameTo_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - renameTo_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEFAULT_VALUE_FIELD_NUMBER = 3; - private org.tensorflow.proto.framework.AttrValue defaultValue_; - /** - *
-     * Specify a new default value to use for this attr.  This default
-     * will be used when creating new graphs, as opposed to the
-     * default in the OpDef, which will be used when interpreting old
-     * GraphDefs.
-     * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - public boolean hasDefaultValue() { - return defaultValue_ != null; - } - /** - *
-     * Specify a new default value to use for this attr.  This default
-     * will be used when creating new graphs, as opposed to the
-     * default in the OpDef, which will be used when interpreting old
-     * GraphDefs.
-     * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - public org.tensorflow.proto.framework.AttrValue getDefaultValue() { - return defaultValue_ == null ? org.tensorflow.proto.framework.AttrValue.getDefaultInstance() : defaultValue_; - } - /** - *
-     * Specify a new default value to use for this attr.  This default
-     * will be used when creating new graphs, as opposed to the
-     * default in the OpDef, which will be used when interpreting old
-     * GraphDefs.
-     * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - public org.tensorflow.proto.framework.AttrValueOrBuilder getDefaultValueOrBuilder() { - return getDefaultValue(); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 4; - private volatile java.lang.Object description_; - /** - *
-     * Note: this will replace any inherited attr doc, there is no current
-     * way of modifying attr descriptions as can be done with op descriptions.
-     * 
- * - * string description = 4; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-     * Note: this will replace any inherited attr doc, there is no current
-     * way of modifying attr descriptions as can be done with op descriptions.
-     * 
- * - * string description = 4; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getRenameToBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, renameTo_); - } - if (defaultValue_ != null) { - output.writeMessage(3, getDefaultValue()); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getRenameToBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, renameTo_); - } - if (defaultValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDefaultValue()); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.tensorflow.proto.framework.ApiDef.Attr)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.ApiDef.Attr other = (org.tensorflow.proto.framework.ApiDef.Attr) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getRenameTo() - .equals(other.getRenameTo())) return false; - if (hasDefaultValue() != other.hasDefaultValue()) return false; - if (hasDefaultValue()) { - if (!getDefaultValue() - .equals(other.getDefaultValue())) return false; - } - if (!getDescription() - .equals(other.getDescription())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + RENAME_TO_FIELD_NUMBER; - hash = (53 * hash) + getRenameTo().hashCode(); - if (hasDefaultValue()) { - hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getDefaultValue().hashCode(); - } - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.ApiDef.Attr parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ApiDef.Attr parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ApiDef.Attr parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ApiDef.Attr parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ApiDef.Attr parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ApiDef.Attr parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ApiDef.Attr parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ApiDef.Attr 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 org.tensorflow.proto.framework.ApiDef.Attr parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ApiDef.Attr 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 org.tensorflow.proto.framework.ApiDef.Attr parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ApiDef.Attr 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(org.tensorflow.proto.framework.ApiDef.Attr 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; - } - /** - *
-     * Description of the graph-construction-time configuration of this
-     * Op.  That is to say, this describes the attr fields that will
-     * be specified in the NodeDef.
-     * 
- * - * Protobuf type {@code tensorflow.ApiDef.Attr} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.ApiDef.Attr) - org.tensorflow.proto.framework.ApiDef.AttrOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Attr_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Attr_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ApiDef.Attr.class, org.tensorflow.proto.framework.ApiDef.Attr.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.ApiDef.Attr.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - renameTo_ = ""; - - if (defaultValueBuilder_ == null) { - defaultValue_ = null; - } else { - defaultValue_ = null; - defaultValueBuilder_ = null; - } - description_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_Attr_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ApiDef.Attr getDefaultInstanceForType() { - return org.tensorflow.proto.framework.ApiDef.Attr.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.ApiDef.Attr build() { - org.tensorflow.proto.framework.ApiDef.Attr result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ApiDef.Attr buildPartial() { - org.tensorflow.proto.framework.ApiDef.Attr result = new org.tensorflow.proto.framework.ApiDef.Attr(this); - result.name_ = name_; - result.renameTo_ = renameTo_; - if (defaultValueBuilder_ == null) { - result.defaultValue_ = defaultValue_; - } else { - result.defaultValue_ = defaultValueBuilder_.build(); - } - result.description_ = description_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.ApiDef.Attr) { - return mergeFrom((org.tensorflow.proto.framework.ApiDef.Attr)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.ApiDef.Attr other) { - if (other == org.tensorflow.proto.framework.ApiDef.Attr.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getRenameTo().isEmpty()) { - renameTo_ = other.renameTo_; - onChanged(); - } - if (other.hasDefaultValue()) { - mergeDefaultValue(other.getDefaultValue()); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.ApiDef.Attr parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.ApiDef.Attr) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object renameTo_ = ""; - /** - *
-       * Change the name used to access this attr in the API from what
-       * is used in the GraphDef.  Note that these names in `backticks`
-       * will also be replaced in the summary & description fields.
-       * 
- * - * string rename_to = 2; - */ - public java.lang.String getRenameTo() { - java.lang.Object ref = renameTo_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - renameTo_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Change the name used to access this attr in the API from what
-       * is used in the GraphDef.  Note that these names in `backticks`
-       * will also be replaced in the summary & description fields.
-       * 
- * - * string rename_to = 2; - */ - public com.google.protobuf.ByteString - getRenameToBytes() { - java.lang.Object ref = renameTo_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - renameTo_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Change the name used to access this attr in the API from what
-       * is used in the GraphDef.  Note that these names in `backticks`
-       * will also be replaced in the summary & description fields.
-       * 
- * - * string rename_to = 2; - */ - public Builder setRenameTo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - renameTo_ = value; - onChanged(); - return this; - } - /** - *
-       * Change the name used to access this attr in the API from what
-       * is used in the GraphDef.  Note that these names in `backticks`
-       * will also be replaced in the summary & description fields.
-       * 
- * - * string rename_to = 2; - */ - public Builder clearRenameTo() { - - renameTo_ = getDefaultInstance().getRenameTo(); - onChanged(); - return this; - } - /** - *
-       * Change the name used to access this attr in the API from what
-       * is used in the GraphDef.  Note that these names in `backticks`
-       * will also be replaced in the summary & description fields.
-       * 
- * - * string rename_to = 2; - */ - public Builder setRenameToBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - renameTo_ = value; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.AttrValue defaultValue_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.AttrValue, org.tensorflow.proto.framework.AttrValue.Builder, org.tensorflow.proto.framework.AttrValueOrBuilder> defaultValueBuilder_; - /** - *
-       * Specify a new default value to use for this attr.  This default
-       * will be used when creating new graphs, as opposed to the
-       * default in the OpDef, which will be used when interpreting old
-       * GraphDefs.
-       * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - public boolean hasDefaultValue() { - return defaultValueBuilder_ != null || defaultValue_ != null; - } - /** - *
-       * Specify a new default value to use for this attr.  This default
-       * will be used when creating new graphs, as opposed to the
-       * default in the OpDef, which will be used when interpreting old
-       * GraphDefs.
-       * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - public org.tensorflow.proto.framework.AttrValue getDefaultValue() { - if (defaultValueBuilder_ == null) { - return defaultValue_ == null ? org.tensorflow.proto.framework.AttrValue.getDefaultInstance() : defaultValue_; - } else { - return defaultValueBuilder_.getMessage(); - } - } - /** - *
-       * Specify a new default value to use for this attr.  This default
-       * will be used when creating new graphs, as opposed to the
-       * default in the OpDef, which will be used when interpreting old
-       * GraphDefs.
-       * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - public Builder setDefaultValue(org.tensorflow.proto.framework.AttrValue value) { - if (defaultValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - defaultValue_ = value; - onChanged(); - } else { - defaultValueBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Specify a new default value to use for this attr.  This default
-       * will be used when creating new graphs, as opposed to the
-       * default in the OpDef, which will be used when interpreting old
-       * GraphDefs.
-       * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - public Builder setDefaultValue( - org.tensorflow.proto.framework.AttrValue.Builder builderForValue) { - if (defaultValueBuilder_ == null) { - defaultValue_ = builderForValue.build(); - onChanged(); - } else { - defaultValueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Specify a new default value to use for this attr.  This default
-       * will be used when creating new graphs, as opposed to the
-       * default in the OpDef, which will be used when interpreting old
-       * GraphDefs.
-       * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - public Builder mergeDefaultValue(org.tensorflow.proto.framework.AttrValue value) { - if (defaultValueBuilder_ == null) { - if (defaultValue_ != null) { - defaultValue_ = - org.tensorflow.proto.framework.AttrValue.newBuilder(defaultValue_).mergeFrom(value).buildPartial(); - } else { - defaultValue_ = value; - } - onChanged(); - } else { - defaultValueBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Specify a new default value to use for this attr.  This default
-       * will be used when creating new graphs, as opposed to the
-       * default in the OpDef, which will be used when interpreting old
-       * GraphDefs.
-       * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - public Builder clearDefaultValue() { - if (defaultValueBuilder_ == null) { - defaultValue_ = null; - onChanged(); - } else { - defaultValue_ = null; - defaultValueBuilder_ = null; - } - - return this; - } - /** - *
-       * Specify a new default value to use for this attr.  This default
-       * will be used when creating new graphs, as opposed to the
-       * default in the OpDef, which will be used when interpreting old
-       * GraphDefs.
-       * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - public org.tensorflow.proto.framework.AttrValue.Builder getDefaultValueBuilder() { - - onChanged(); - return getDefaultValueFieldBuilder().getBuilder(); - } - /** - *
-       * Specify a new default value to use for this attr.  This default
-       * will be used when creating new graphs, as opposed to the
-       * default in the OpDef, which will be used when interpreting old
-       * GraphDefs.
-       * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - public org.tensorflow.proto.framework.AttrValueOrBuilder getDefaultValueOrBuilder() { - if (defaultValueBuilder_ != null) { - return defaultValueBuilder_.getMessageOrBuilder(); - } else { - return defaultValue_ == null ? - org.tensorflow.proto.framework.AttrValue.getDefaultInstance() : defaultValue_; - } - } - /** - *
-       * Specify a new default value to use for this attr.  This default
-       * will be used when creating new graphs, as opposed to the
-       * default in the OpDef, which will be used when interpreting old
-       * GraphDefs.
-       * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.AttrValue, org.tensorflow.proto.framework.AttrValue.Builder, org.tensorflow.proto.framework.AttrValueOrBuilder> - getDefaultValueFieldBuilder() { - if (defaultValueBuilder_ == null) { - defaultValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.AttrValue, org.tensorflow.proto.framework.AttrValue.Builder, org.tensorflow.proto.framework.AttrValueOrBuilder>( - getDefaultValue(), - getParentForChildren(), - isClean()); - defaultValue_ = null; - } - return defaultValueBuilder_; - } - - private java.lang.Object description_ = ""; - /** - *
-       * Note: this will replace any inherited attr doc, there is no current
-       * way of modifying attr descriptions as can be done with op descriptions.
-       * 
- * - * string description = 4; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Note: this will replace any inherited attr doc, there is no current
-       * way of modifying attr descriptions as can be done with op descriptions.
-       * 
- * - * string description = 4; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Note: this will replace any inherited attr doc, there is no current
-       * way of modifying attr descriptions as can be done with op descriptions.
-       * 
- * - * string description = 4; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
-       * Note: this will replace any inherited attr doc, there is no current
-       * way of modifying attr descriptions as can be done with op descriptions.
-       * 
- * - * string description = 4; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-       * Note: this will replace any inherited attr doc, there is no current
-       * way of modifying attr descriptions as can be done with op descriptions.
-       * 
- * - * string description = 4; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.ApiDef.Attr) - } - - // @@protoc_insertion_point(class_scope:tensorflow.ApiDef.Attr) - private static final org.tensorflow.proto.framework.ApiDef.Attr DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.ApiDef.Attr(); - } - - public static org.tensorflow.proto.framework.ApiDef.Attr getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Attr parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Attr(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ApiDef.Attr getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int GRAPH_OP_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object graphOpName_; - /** - *
-   * Name of the op (in the OpDef) to specify the API for.
-   * 
- * - * string graph_op_name = 1; - */ - public java.lang.String getGraphOpName() { - java.lang.Object ref = graphOpName_; - 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(); - graphOpName_ = s; - return s; - } - } - /** - *
-   * Name of the op (in the OpDef) to specify the API for.
-   * 
- * - * string graph_op_name = 1; - */ - public com.google.protobuf.ByteString - getGraphOpNameBytes() { - java.lang.Object ref = graphOpName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - graphOpName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEPRECATION_MESSAGE_FIELD_NUMBER = 12; - private volatile java.lang.Object deprecationMessage_; - /** - *
-   * If this op is deprecated, set deprecation message to the message
-   * that should be logged when this op is used.
-   * The message should indicate alternative op to use, if any.
-   * 
- * - * string deprecation_message = 12; - */ - public java.lang.String getDeprecationMessage() { - java.lang.Object ref = deprecationMessage_; - 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(); - deprecationMessage_ = s; - return s; - } - } - /** - *
-   * If this op is deprecated, set deprecation message to the message
-   * that should be logged when this op is used.
-   * The message should indicate alternative op to use, if any.
-   * 
- * - * string deprecation_message = 12; - */ - public com.google.protobuf.ByteString - getDeprecationMessageBytes() { - java.lang.Object ref = deprecationMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deprecationMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEPRECATION_VERSION_FIELD_NUMBER = 13; - private int deprecationVersion_; - /** - *
-   * Major version when the op will be deleted. For e.g. set this
-   * value to 2 if op API should be removed in TensorFlow 2.0 and
-   * deprecated in versions before that.
-   * 
- * - * int32 deprecation_version = 13; - */ - public int getDeprecationVersion() { - return deprecationVersion_; - } - - public static final int VISIBILITY_FIELD_NUMBER = 2; - private int visibility_; - /** - * .tensorflow.ApiDef.Visibility visibility = 2; - */ - public int getVisibilityValue() { - return visibility_; - } - /** - * .tensorflow.ApiDef.Visibility visibility = 2; - */ - public org.tensorflow.proto.framework.ApiDef.Visibility getVisibility() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.ApiDef.Visibility result = org.tensorflow.proto.framework.ApiDef.Visibility.valueOf(visibility_); - return result == null ? org.tensorflow.proto.framework.ApiDef.Visibility.UNRECOGNIZED : result; - } - - public static final int ENDPOINT_FIELD_NUMBER = 3; - private java.util.List endpoint_; - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public java.util.List getEndpointList() { - return endpoint_; - } - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public java.util.List - getEndpointOrBuilderList() { - return endpoint_; - } - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public int getEndpointCount() { - return endpoint_.size(); - } - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public org.tensorflow.proto.framework.ApiDef.Endpoint getEndpoint(int index) { - return endpoint_.get(index); - } - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public org.tensorflow.proto.framework.ApiDef.EndpointOrBuilder getEndpointOrBuilder( - int index) { - return endpoint_.get(index); - } - - public static final int IN_ARG_FIELD_NUMBER = 4; - private java.util.List inArg_; - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public java.util.List getInArgList() { - return inArg_; - } - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public java.util.List - getInArgOrBuilderList() { - return inArg_; - } - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public int getInArgCount() { - return inArg_.size(); - } - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public org.tensorflow.proto.framework.ApiDef.Arg getInArg(int index) { - return inArg_.get(index); - } - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public org.tensorflow.proto.framework.ApiDef.ArgOrBuilder getInArgOrBuilder( - int index) { - return inArg_.get(index); - } - - public static final int OUT_ARG_FIELD_NUMBER = 5; - private java.util.List outArg_; - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public java.util.List getOutArgList() { - return outArg_; - } - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public java.util.List - getOutArgOrBuilderList() { - return outArg_; - } - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public int getOutArgCount() { - return outArg_.size(); - } - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public org.tensorflow.proto.framework.ApiDef.Arg getOutArg(int index) { - return outArg_.get(index); - } - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public org.tensorflow.proto.framework.ApiDef.ArgOrBuilder getOutArgOrBuilder( - int index) { - return outArg_.get(index); - } - - public static final int ARG_ORDER_FIELD_NUMBER = 11; - private com.google.protobuf.LazyStringList argOrder_; - /** - *
-   * List of original in_arg names to specify new argument order.
-   * Length of arg_order should be either empty to keep current order
-   * or match size of in_arg.
-   * 
- * - * repeated string arg_order = 11; - */ - public com.google.protobuf.ProtocolStringList - getArgOrderList() { - return argOrder_; - } - /** - *
-   * List of original in_arg names to specify new argument order.
-   * Length of arg_order should be either empty to keep current order
-   * or match size of in_arg.
-   * 
- * - * repeated string arg_order = 11; - */ - public int getArgOrderCount() { - return argOrder_.size(); - } - /** - *
-   * List of original in_arg names to specify new argument order.
-   * Length of arg_order should be either empty to keep current order
-   * or match size of in_arg.
-   * 
- * - * repeated string arg_order = 11; - */ - public java.lang.String getArgOrder(int index) { - return argOrder_.get(index); - } - /** - *
-   * List of original in_arg names to specify new argument order.
-   * Length of arg_order should be either empty to keep current order
-   * or match size of in_arg.
-   * 
- * - * repeated string arg_order = 11; - */ - public com.google.protobuf.ByteString - getArgOrderBytes(int index) { - return argOrder_.getByteString(index); - } - - public static final int ATTR_FIELD_NUMBER = 6; - private java.util.List attr_; - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public java.util.List getAttrList() { - return attr_; - } - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public java.util.List - getAttrOrBuilderList() { - return attr_; - } - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public int getAttrCount() { - return attr_.size(); - } - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public org.tensorflow.proto.framework.ApiDef.Attr getAttr(int index) { - return attr_.get(index); - } - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public org.tensorflow.proto.framework.ApiDef.AttrOrBuilder getAttrOrBuilder( - int index) { - return attr_.get(index); - } - - public static final int SUMMARY_FIELD_NUMBER = 7; - private volatile java.lang.Object summary_; - /** - *
-   * One-line human-readable description of what the Op does.
-   * 
- * - * string summary = 7; - */ - public java.lang.String getSummary() { - java.lang.Object ref = summary_; - 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(); - summary_ = s; - return s; - } - } - /** - *
-   * One-line human-readable description of what the Op does.
-   * 
- * - * string summary = 7; - */ - public com.google.protobuf.ByteString - getSummaryBytes() { - java.lang.Object ref = summary_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - summary_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 8; - private volatile java.lang.Object description_; - /** - *
-   * Additional, longer human-readable description of what the Op does.
-   * 
- * - * string description = 8; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-   * Additional, longer human-readable description of what the Op does.
-   * 
- * - * string description = 8; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_PREFIX_FIELD_NUMBER = 9; - private volatile java.lang.Object descriptionPrefix_; - /** - *
-   * Modify an existing/inherited description by adding text to the beginning
-   * or end.
-   * 
- * - * string description_prefix = 9; - */ - public java.lang.String getDescriptionPrefix() { - java.lang.Object ref = descriptionPrefix_; - 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(); - descriptionPrefix_ = s; - return s; - } - } - /** - *
-   * Modify an existing/inherited description by adding text to the beginning
-   * or end.
-   * 
- * - * string description_prefix = 9; - */ - public com.google.protobuf.ByteString - getDescriptionPrefixBytes() { - java.lang.Object ref = descriptionPrefix_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - descriptionPrefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_SUFFIX_FIELD_NUMBER = 10; - private volatile java.lang.Object descriptionSuffix_; - /** - * string description_suffix = 10; - */ - public java.lang.String getDescriptionSuffix() { - java.lang.Object ref = descriptionSuffix_; - 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(); - descriptionSuffix_ = s; - return s; - } - } - /** - * string description_suffix = 10; - */ - public com.google.protobuf.ByteString - getDescriptionSuffixBytes() { - java.lang.Object ref = descriptionSuffix_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - descriptionSuffix_ = 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 (!getGraphOpNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, graphOpName_); - } - if (visibility_ != org.tensorflow.proto.framework.ApiDef.Visibility.DEFAULT_VISIBILITY.getNumber()) { - output.writeEnum(2, visibility_); - } - for (int i = 0; i < endpoint_.size(); i++) { - output.writeMessage(3, endpoint_.get(i)); - } - for (int i = 0; i < inArg_.size(); i++) { - output.writeMessage(4, inArg_.get(i)); - } - for (int i = 0; i < outArg_.size(); i++) { - output.writeMessage(5, outArg_.get(i)); - } - for (int i = 0; i < attr_.size(); i++) { - output.writeMessage(6, attr_.get(i)); - } - if (!getSummaryBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, summary_); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, description_); - } - if (!getDescriptionPrefixBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, descriptionPrefix_); - } - if (!getDescriptionSuffixBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, descriptionSuffix_); - } - for (int i = 0; i < argOrder_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, argOrder_.getRaw(i)); - } - if (!getDeprecationMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, deprecationMessage_); - } - if (deprecationVersion_ != 0) { - output.writeInt32(13, deprecationVersion_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getGraphOpNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, graphOpName_); - } - if (visibility_ != org.tensorflow.proto.framework.ApiDef.Visibility.DEFAULT_VISIBILITY.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, visibility_); - } - for (int i = 0; i < endpoint_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, endpoint_.get(i)); - } - for (int i = 0; i < inArg_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, inArg_.get(i)); - } - for (int i = 0; i < outArg_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, outArg_.get(i)); - } - for (int i = 0; i < attr_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, attr_.get(i)); - } - if (!getSummaryBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, summary_); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, description_); - } - if (!getDescriptionPrefixBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, descriptionPrefix_); - } - if (!getDescriptionSuffixBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, descriptionSuffix_); - } - { - int dataSize = 0; - for (int i = 0; i < argOrder_.size(); i++) { - dataSize += computeStringSizeNoTag(argOrder_.getRaw(i)); - } - size += dataSize; - size += 1 * getArgOrderList().size(); - } - if (!getDeprecationMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, deprecationMessage_); - } - if (deprecationVersion_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(13, deprecationVersion_); - } - 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 org.tensorflow.proto.framework.ApiDef)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.ApiDef other = (org.tensorflow.proto.framework.ApiDef) obj; - - if (!getGraphOpName() - .equals(other.getGraphOpName())) return false; - if (!getDeprecationMessage() - .equals(other.getDeprecationMessage())) return false; - if (getDeprecationVersion() - != other.getDeprecationVersion()) return false; - if (visibility_ != other.visibility_) return false; - if (!getEndpointList() - .equals(other.getEndpointList())) return false; - if (!getInArgList() - .equals(other.getInArgList())) return false; - if (!getOutArgList() - .equals(other.getOutArgList())) return false; - if (!getArgOrderList() - .equals(other.getArgOrderList())) return false; - if (!getAttrList() - .equals(other.getAttrList())) return false; - if (!getSummary() - .equals(other.getSummary())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getDescriptionPrefix() - .equals(other.getDescriptionPrefix())) return false; - if (!getDescriptionSuffix() - .equals(other.getDescriptionSuffix())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GRAPH_OP_NAME_FIELD_NUMBER; - hash = (53 * hash) + getGraphOpName().hashCode(); - hash = (37 * hash) + DEPRECATION_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getDeprecationMessage().hashCode(); - hash = (37 * hash) + DEPRECATION_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getDeprecationVersion(); - hash = (37 * hash) + VISIBILITY_FIELD_NUMBER; - hash = (53 * hash) + visibility_; - if (getEndpointCount() > 0) { - hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; - hash = (53 * hash) + getEndpointList().hashCode(); - } - if (getInArgCount() > 0) { - hash = (37 * hash) + IN_ARG_FIELD_NUMBER; - hash = (53 * hash) + getInArgList().hashCode(); - } - if (getOutArgCount() > 0) { - hash = (37 * hash) + OUT_ARG_FIELD_NUMBER; - hash = (53 * hash) + getOutArgList().hashCode(); - } - if (getArgOrderCount() > 0) { - hash = (37 * hash) + ARG_ORDER_FIELD_NUMBER; - hash = (53 * hash) + getArgOrderList().hashCode(); - } - if (getAttrCount() > 0) { - hash = (37 * hash) + ATTR_FIELD_NUMBER; - hash = (53 * hash) + getAttrList().hashCode(); - } - hash = (37 * hash) + SUMMARY_FIELD_NUMBER; - hash = (53 * hash) + getSummary().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + DESCRIPTION_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + getDescriptionPrefix().hashCode(); - hash = (37 * hash) + DESCRIPTION_SUFFIX_FIELD_NUMBER; - hash = (53 * hash) + getDescriptionSuffix().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.ApiDef parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ApiDef parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ApiDef parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ApiDef parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ApiDef parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ApiDef parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ApiDef parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ApiDef 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 org.tensorflow.proto.framework.ApiDef parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ApiDef 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 org.tensorflow.proto.framework.ApiDef parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ApiDef 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(org.tensorflow.proto.framework.ApiDef 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; - } - /** - *
-   * Used to specify and override the default API & behavior in the
-   * generated code for client languages, from what you would get from
-   * the OpDef alone. There will be a set of ApiDefs that are common
-   * to all client languages, and another set per client language.
-   * The per-client-language ApiDefs will inherit values from the
-   * common ApiDefs which it can either replace or modify.
-   * We separate the API definition from the OpDef so we can evolve the
-   * API while remaining backwards compatible when interpreting old
-   * graphs.  Overrides go in an "api_def.pbtxt" file with a text-format
-   * ApiDefs message.
-   * WARNING: Be *very* careful changing the API for any existing op --
-   * you can change the semantics of existing code.  These changes may
-   * need to wait until a major release of TensorFlow to avoid breaking
-   * our compatibility promises.
-   * 
- * - * Protobuf type {@code tensorflow.ApiDef} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.ApiDef) - org.tensorflow.proto.framework.ApiDefOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ApiDef.class, org.tensorflow.proto.framework.ApiDef.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.ApiDef.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEndpointFieldBuilder(); - getInArgFieldBuilder(); - getOutArgFieldBuilder(); - getAttrFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - graphOpName_ = ""; - - deprecationMessage_ = ""; - - deprecationVersion_ = 0; - - visibility_ = 0; - - if (endpointBuilder_ == null) { - endpoint_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - endpointBuilder_.clear(); - } - if (inArgBuilder_ == null) { - inArg_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - inArgBuilder_.clear(); - } - if (outArgBuilder_ == null) { - outArg_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - outArgBuilder_.clear(); - } - argOrder_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - if (attrBuilder_ == null) { - attr_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - attrBuilder_.clear(); - } - summary_ = ""; - - description_ = ""; - - descriptionPrefix_ = ""; - - descriptionSuffix_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDef_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ApiDef getDefaultInstanceForType() { - return org.tensorflow.proto.framework.ApiDef.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.ApiDef build() { - org.tensorflow.proto.framework.ApiDef result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ApiDef buildPartial() { - org.tensorflow.proto.framework.ApiDef result = new org.tensorflow.proto.framework.ApiDef(this); - int from_bitField0_ = bitField0_; - result.graphOpName_ = graphOpName_; - result.deprecationMessage_ = deprecationMessage_; - result.deprecationVersion_ = deprecationVersion_; - result.visibility_ = visibility_; - if (endpointBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - endpoint_ = java.util.Collections.unmodifiableList(endpoint_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.endpoint_ = endpoint_; - } else { - result.endpoint_ = endpointBuilder_.build(); - } - if (inArgBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - inArg_ = java.util.Collections.unmodifiableList(inArg_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.inArg_ = inArg_; - } else { - result.inArg_ = inArgBuilder_.build(); - } - if (outArgBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - outArg_ = java.util.Collections.unmodifiableList(outArg_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.outArg_ = outArg_; - } else { - result.outArg_ = outArgBuilder_.build(); - } - if (((bitField0_ & 0x00000008) != 0)) { - argOrder_ = argOrder_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.argOrder_ = argOrder_; - if (attrBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - attr_ = java.util.Collections.unmodifiableList(attr_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.attr_ = attr_; - } else { - result.attr_ = attrBuilder_.build(); - } - result.summary_ = summary_; - result.description_ = description_; - result.descriptionPrefix_ = descriptionPrefix_; - result.descriptionSuffix_ = descriptionSuffix_; - 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 org.tensorflow.proto.framework.ApiDef) { - return mergeFrom((org.tensorflow.proto.framework.ApiDef)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.ApiDef other) { - if (other == org.tensorflow.proto.framework.ApiDef.getDefaultInstance()) return this; - if (!other.getGraphOpName().isEmpty()) { - graphOpName_ = other.graphOpName_; - onChanged(); - } - if (!other.getDeprecationMessage().isEmpty()) { - deprecationMessage_ = other.deprecationMessage_; - onChanged(); - } - if (other.getDeprecationVersion() != 0) { - setDeprecationVersion(other.getDeprecationVersion()); - } - if (other.visibility_ != 0) { - setVisibilityValue(other.getVisibilityValue()); - } - if (endpointBuilder_ == null) { - if (!other.endpoint_.isEmpty()) { - if (endpoint_.isEmpty()) { - endpoint_ = other.endpoint_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEndpointIsMutable(); - endpoint_.addAll(other.endpoint_); - } - onChanged(); - } - } else { - if (!other.endpoint_.isEmpty()) { - if (endpointBuilder_.isEmpty()) { - endpointBuilder_.dispose(); - endpointBuilder_ = null; - endpoint_ = other.endpoint_; - bitField0_ = (bitField0_ & ~0x00000001); - endpointBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEndpointFieldBuilder() : null; - } else { - endpointBuilder_.addAllMessages(other.endpoint_); - } - } - } - if (inArgBuilder_ == null) { - if (!other.inArg_.isEmpty()) { - if (inArg_.isEmpty()) { - inArg_ = other.inArg_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureInArgIsMutable(); - inArg_.addAll(other.inArg_); - } - onChanged(); - } - } else { - if (!other.inArg_.isEmpty()) { - if (inArgBuilder_.isEmpty()) { - inArgBuilder_.dispose(); - inArgBuilder_ = null; - inArg_ = other.inArg_; - bitField0_ = (bitField0_ & ~0x00000002); - inArgBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInArgFieldBuilder() : null; - } else { - inArgBuilder_.addAllMessages(other.inArg_); - } - } - } - if (outArgBuilder_ == null) { - if (!other.outArg_.isEmpty()) { - if (outArg_.isEmpty()) { - outArg_ = other.outArg_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureOutArgIsMutable(); - outArg_.addAll(other.outArg_); - } - onChanged(); - } - } else { - if (!other.outArg_.isEmpty()) { - if (outArgBuilder_.isEmpty()) { - outArgBuilder_.dispose(); - outArgBuilder_ = null; - outArg_ = other.outArg_; - bitField0_ = (bitField0_ & ~0x00000004); - outArgBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOutArgFieldBuilder() : null; - } else { - outArgBuilder_.addAllMessages(other.outArg_); - } - } - } - if (!other.argOrder_.isEmpty()) { - if (argOrder_.isEmpty()) { - argOrder_ = other.argOrder_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureArgOrderIsMutable(); - argOrder_.addAll(other.argOrder_); - } - onChanged(); - } - if (attrBuilder_ == null) { - if (!other.attr_.isEmpty()) { - if (attr_.isEmpty()) { - attr_ = other.attr_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureAttrIsMutable(); - attr_.addAll(other.attr_); - } - onChanged(); - } - } else { - if (!other.attr_.isEmpty()) { - if (attrBuilder_.isEmpty()) { - attrBuilder_.dispose(); - attrBuilder_ = null; - attr_ = other.attr_; - bitField0_ = (bitField0_ & ~0x00000010); - attrBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAttrFieldBuilder() : null; - } else { - attrBuilder_.addAllMessages(other.attr_); - } - } - } - if (!other.getSummary().isEmpty()) { - summary_ = other.summary_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (!other.getDescriptionPrefix().isEmpty()) { - descriptionPrefix_ = other.descriptionPrefix_; - onChanged(); - } - if (!other.getDescriptionSuffix().isEmpty()) { - descriptionSuffix_ = other.descriptionSuffix_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.ApiDef parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.ApiDef) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object graphOpName_ = ""; - /** - *
-     * Name of the op (in the OpDef) to specify the API for.
-     * 
- * - * string graph_op_name = 1; - */ - public java.lang.String getGraphOpName() { - java.lang.Object ref = graphOpName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - graphOpName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Name of the op (in the OpDef) to specify the API for.
-     * 
- * - * string graph_op_name = 1; - */ - public com.google.protobuf.ByteString - getGraphOpNameBytes() { - java.lang.Object ref = graphOpName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - graphOpName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Name of the op (in the OpDef) to specify the API for.
-     * 
- * - * string graph_op_name = 1; - */ - public Builder setGraphOpName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - graphOpName_ = value; - onChanged(); - return this; - } - /** - *
-     * Name of the op (in the OpDef) to specify the API for.
-     * 
- * - * string graph_op_name = 1; - */ - public Builder clearGraphOpName() { - - graphOpName_ = getDefaultInstance().getGraphOpName(); - onChanged(); - return this; - } - /** - *
-     * Name of the op (in the OpDef) to specify the API for.
-     * 
- * - * string graph_op_name = 1; - */ - public Builder setGraphOpNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - graphOpName_ = value; - onChanged(); - return this; - } - - private java.lang.Object deprecationMessage_ = ""; - /** - *
-     * If this op is deprecated, set deprecation message to the message
-     * that should be logged when this op is used.
-     * The message should indicate alternative op to use, if any.
-     * 
- * - * string deprecation_message = 12; - */ - public java.lang.String getDeprecationMessage() { - java.lang.Object ref = deprecationMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deprecationMessage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * If this op is deprecated, set deprecation message to the message
-     * that should be logged when this op is used.
-     * The message should indicate alternative op to use, if any.
-     * 
- * - * string deprecation_message = 12; - */ - public com.google.protobuf.ByteString - getDeprecationMessageBytes() { - java.lang.Object ref = deprecationMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deprecationMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * If this op is deprecated, set deprecation message to the message
-     * that should be logged when this op is used.
-     * The message should indicate alternative op to use, if any.
-     * 
- * - * string deprecation_message = 12; - */ - public Builder setDeprecationMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - deprecationMessage_ = value; - onChanged(); - return this; - } - /** - *
-     * If this op is deprecated, set deprecation message to the message
-     * that should be logged when this op is used.
-     * The message should indicate alternative op to use, if any.
-     * 
- * - * string deprecation_message = 12; - */ - public Builder clearDeprecationMessage() { - - deprecationMessage_ = getDefaultInstance().getDeprecationMessage(); - onChanged(); - return this; - } - /** - *
-     * If this op is deprecated, set deprecation message to the message
-     * that should be logged when this op is used.
-     * The message should indicate alternative op to use, if any.
-     * 
- * - * string deprecation_message = 12; - */ - public Builder setDeprecationMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - deprecationMessage_ = value; - onChanged(); - return this; - } - - private int deprecationVersion_ ; - /** - *
-     * Major version when the op will be deleted. For e.g. set this
-     * value to 2 if op API should be removed in TensorFlow 2.0 and
-     * deprecated in versions before that.
-     * 
- * - * int32 deprecation_version = 13; - */ - public int getDeprecationVersion() { - return deprecationVersion_; - } - /** - *
-     * Major version when the op will be deleted. For e.g. set this
-     * value to 2 if op API should be removed in TensorFlow 2.0 and
-     * deprecated in versions before that.
-     * 
- * - * int32 deprecation_version = 13; - */ - public Builder setDeprecationVersion(int value) { - - deprecationVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * Major version when the op will be deleted. For e.g. set this
-     * value to 2 if op API should be removed in TensorFlow 2.0 and
-     * deprecated in versions before that.
-     * 
- * - * int32 deprecation_version = 13; - */ - public Builder clearDeprecationVersion() { - - deprecationVersion_ = 0; - onChanged(); - return this; - } - - private int visibility_ = 0; - /** - * .tensorflow.ApiDef.Visibility visibility = 2; - */ - public int getVisibilityValue() { - return visibility_; - } - /** - * .tensorflow.ApiDef.Visibility visibility = 2; - */ - public Builder setVisibilityValue(int value) { - visibility_ = value; - onChanged(); - return this; - } - /** - * .tensorflow.ApiDef.Visibility visibility = 2; - */ - public org.tensorflow.proto.framework.ApiDef.Visibility getVisibility() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.ApiDef.Visibility result = org.tensorflow.proto.framework.ApiDef.Visibility.valueOf(visibility_); - return result == null ? org.tensorflow.proto.framework.ApiDef.Visibility.UNRECOGNIZED : result; - } - /** - * .tensorflow.ApiDef.Visibility visibility = 2; - */ - public Builder setVisibility(org.tensorflow.proto.framework.ApiDef.Visibility value) { - if (value == null) { - throw new NullPointerException(); - } - - visibility_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tensorflow.ApiDef.Visibility visibility = 2; - */ - public Builder clearVisibility() { - - visibility_ = 0; - onChanged(); - return this; - } - - private java.util.List endpoint_ = - java.util.Collections.emptyList(); - private void ensureEndpointIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - endpoint_ = new java.util.ArrayList(endpoint_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ApiDef.Endpoint, org.tensorflow.proto.framework.ApiDef.Endpoint.Builder, org.tensorflow.proto.framework.ApiDef.EndpointOrBuilder> endpointBuilder_; - - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public java.util.List getEndpointList() { - if (endpointBuilder_ == null) { - return java.util.Collections.unmodifiableList(endpoint_); - } else { - return endpointBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public int getEndpointCount() { - if (endpointBuilder_ == null) { - return endpoint_.size(); - } else { - return endpointBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public org.tensorflow.proto.framework.ApiDef.Endpoint getEndpoint(int index) { - if (endpointBuilder_ == null) { - return endpoint_.get(index); - } else { - return endpointBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public Builder setEndpoint( - int index, org.tensorflow.proto.framework.ApiDef.Endpoint value) { - if (endpointBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEndpointIsMutable(); - endpoint_.set(index, value); - onChanged(); - } else { - endpointBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public Builder setEndpoint( - int index, org.tensorflow.proto.framework.ApiDef.Endpoint.Builder builderForValue) { - if (endpointBuilder_ == null) { - ensureEndpointIsMutable(); - endpoint_.set(index, builderForValue.build()); - onChanged(); - } else { - endpointBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public Builder addEndpoint(org.tensorflow.proto.framework.ApiDef.Endpoint value) { - if (endpointBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEndpointIsMutable(); - endpoint_.add(value); - onChanged(); - } else { - endpointBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public Builder addEndpoint( - int index, org.tensorflow.proto.framework.ApiDef.Endpoint value) { - if (endpointBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEndpointIsMutable(); - endpoint_.add(index, value); - onChanged(); - } else { - endpointBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public Builder addEndpoint( - org.tensorflow.proto.framework.ApiDef.Endpoint.Builder builderForValue) { - if (endpointBuilder_ == null) { - ensureEndpointIsMutable(); - endpoint_.add(builderForValue.build()); - onChanged(); - } else { - endpointBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public Builder addEndpoint( - int index, org.tensorflow.proto.framework.ApiDef.Endpoint.Builder builderForValue) { - if (endpointBuilder_ == null) { - ensureEndpointIsMutable(); - endpoint_.add(index, builderForValue.build()); - onChanged(); - } else { - endpointBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public Builder addAllEndpoint( - java.lang.Iterable values) { - if (endpointBuilder_ == null) { - ensureEndpointIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, endpoint_); - onChanged(); - } else { - endpointBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public Builder clearEndpoint() { - if (endpointBuilder_ == null) { - endpoint_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - endpointBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public Builder removeEndpoint(int index) { - if (endpointBuilder_ == null) { - ensureEndpointIsMutable(); - endpoint_.remove(index); - onChanged(); - } else { - endpointBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public org.tensorflow.proto.framework.ApiDef.Endpoint.Builder getEndpointBuilder( - int index) { - return getEndpointFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public org.tensorflow.proto.framework.ApiDef.EndpointOrBuilder getEndpointOrBuilder( - int index) { - if (endpointBuilder_ == null) { - return endpoint_.get(index); } else { - return endpointBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public java.util.List - getEndpointOrBuilderList() { - if (endpointBuilder_ != null) { - return endpointBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(endpoint_); - } - } - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public org.tensorflow.proto.framework.ApiDef.Endpoint.Builder addEndpointBuilder() { - return getEndpointFieldBuilder().addBuilder( - org.tensorflow.proto.framework.ApiDef.Endpoint.getDefaultInstance()); - } - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public org.tensorflow.proto.framework.ApiDef.Endpoint.Builder addEndpointBuilder( - int index) { - return getEndpointFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.ApiDef.Endpoint.getDefaultInstance()); - } - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - public java.util.List - getEndpointBuilderList() { - return getEndpointFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ApiDef.Endpoint, org.tensorflow.proto.framework.ApiDef.Endpoint.Builder, org.tensorflow.proto.framework.ApiDef.EndpointOrBuilder> - getEndpointFieldBuilder() { - if (endpointBuilder_ == null) { - endpointBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ApiDef.Endpoint, org.tensorflow.proto.framework.ApiDef.Endpoint.Builder, org.tensorflow.proto.framework.ApiDef.EndpointOrBuilder>( - endpoint_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - endpoint_ = null; - } - return endpointBuilder_; - } - - private java.util.List inArg_ = - java.util.Collections.emptyList(); - private void ensureInArgIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - inArg_ = new java.util.ArrayList(inArg_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ApiDef.Arg, org.tensorflow.proto.framework.ApiDef.Arg.Builder, org.tensorflow.proto.framework.ApiDef.ArgOrBuilder> inArgBuilder_; - - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public java.util.List getInArgList() { - if (inArgBuilder_ == null) { - return java.util.Collections.unmodifiableList(inArg_); - } else { - return inArgBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public int getInArgCount() { - if (inArgBuilder_ == null) { - return inArg_.size(); - } else { - return inArgBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public org.tensorflow.proto.framework.ApiDef.Arg getInArg(int index) { - if (inArgBuilder_ == null) { - return inArg_.get(index); - } else { - return inArgBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public Builder setInArg( - int index, org.tensorflow.proto.framework.ApiDef.Arg value) { - if (inArgBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInArgIsMutable(); - inArg_.set(index, value); - onChanged(); - } else { - inArgBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public Builder setInArg( - int index, org.tensorflow.proto.framework.ApiDef.Arg.Builder builderForValue) { - if (inArgBuilder_ == null) { - ensureInArgIsMutable(); - inArg_.set(index, builderForValue.build()); - onChanged(); - } else { - inArgBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public Builder addInArg(org.tensorflow.proto.framework.ApiDef.Arg value) { - if (inArgBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInArgIsMutable(); - inArg_.add(value); - onChanged(); - } else { - inArgBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public Builder addInArg( - int index, org.tensorflow.proto.framework.ApiDef.Arg value) { - if (inArgBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInArgIsMutable(); - inArg_.add(index, value); - onChanged(); - } else { - inArgBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public Builder addInArg( - org.tensorflow.proto.framework.ApiDef.Arg.Builder builderForValue) { - if (inArgBuilder_ == null) { - ensureInArgIsMutable(); - inArg_.add(builderForValue.build()); - onChanged(); - } else { - inArgBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public Builder addInArg( - int index, org.tensorflow.proto.framework.ApiDef.Arg.Builder builderForValue) { - if (inArgBuilder_ == null) { - ensureInArgIsMutable(); - inArg_.add(index, builderForValue.build()); - onChanged(); - } else { - inArgBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public Builder addAllInArg( - java.lang.Iterable values) { - if (inArgBuilder_ == null) { - ensureInArgIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inArg_); - onChanged(); - } else { - inArgBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public Builder clearInArg() { - if (inArgBuilder_ == null) { - inArg_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - inArgBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public Builder removeInArg(int index) { - if (inArgBuilder_ == null) { - ensureInArgIsMutable(); - inArg_.remove(index); - onChanged(); - } else { - inArgBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public org.tensorflow.proto.framework.ApiDef.Arg.Builder getInArgBuilder( - int index) { - return getInArgFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public org.tensorflow.proto.framework.ApiDef.ArgOrBuilder getInArgOrBuilder( - int index) { - if (inArgBuilder_ == null) { - return inArg_.get(index); } else { - return inArgBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public java.util.List - getInArgOrBuilderList() { - if (inArgBuilder_ != null) { - return inArgBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(inArg_); - } - } - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public org.tensorflow.proto.framework.ApiDef.Arg.Builder addInArgBuilder() { - return getInArgFieldBuilder().addBuilder( - org.tensorflow.proto.framework.ApiDef.Arg.getDefaultInstance()); - } - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public org.tensorflow.proto.framework.ApiDef.Arg.Builder addInArgBuilder( - int index) { - return getInArgFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.ApiDef.Arg.getDefaultInstance()); - } - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - public java.util.List - getInArgBuilderList() { - return getInArgFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ApiDef.Arg, org.tensorflow.proto.framework.ApiDef.Arg.Builder, org.tensorflow.proto.framework.ApiDef.ArgOrBuilder> - getInArgFieldBuilder() { - if (inArgBuilder_ == null) { - inArgBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ApiDef.Arg, org.tensorflow.proto.framework.ApiDef.Arg.Builder, org.tensorflow.proto.framework.ApiDef.ArgOrBuilder>( - inArg_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - inArg_ = null; - } - return inArgBuilder_; - } - - private java.util.List outArg_ = - java.util.Collections.emptyList(); - private void ensureOutArgIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - outArg_ = new java.util.ArrayList(outArg_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ApiDef.Arg, org.tensorflow.proto.framework.ApiDef.Arg.Builder, org.tensorflow.proto.framework.ApiDef.ArgOrBuilder> outArgBuilder_; - - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public java.util.List getOutArgList() { - if (outArgBuilder_ == null) { - return java.util.Collections.unmodifiableList(outArg_); - } else { - return outArgBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public int getOutArgCount() { - if (outArgBuilder_ == null) { - return outArg_.size(); - } else { - return outArgBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public org.tensorflow.proto.framework.ApiDef.Arg getOutArg(int index) { - if (outArgBuilder_ == null) { - return outArg_.get(index); - } else { - return outArgBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public Builder setOutArg( - int index, org.tensorflow.proto.framework.ApiDef.Arg value) { - if (outArgBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutArgIsMutable(); - outArg_.set(index, value); - onChanged(); - } else { - outArgBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public Builder setOutArg( - int index, org.tensorflow.proto.framework.ApiDef.Arg.Builder builderForValue) { - if (outArgBuilder_ == null) { - ensureOutArgIsMutable(); - outArg_.set(index, builderForValue.build()); - onChanged(); - } else { - outArgBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public Builder addOutArg(org.tensorflow.proto.framework.ApiDef.Arg value) { - if (outArgBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutArgIsMutable(); - outArg_.add(value); - onChanged(); - } else { - outArgBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public Builder addOutArg( - int index, org.tensorflow.proto.framework.ApiDef.Arg value) { - if (outArgBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutArgIsMutable(); - outArg_.add(index, value); - onChanged(); - } else { - outArgBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public Builder addOutArg( - org.tensorflow.proto.framework.ApiDef.Arg.Builder builderForValue) { - if (outArgBuilder_ == null) { - ensureOutArgIsMutable(); - outArg_.add(builderForValue.build()); - onChanged(); - } else { - outArgBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public Builder addOutArg( - int index, org.tensorflow.proto.framework.ApiDef.Arg.Builder builderForValue) { - if (outArgBuilder_ == null) { - ensureOutArgIsMutable(); - outArg_.add(index, builderForValue.build()); - onChanged(); - } else { - outArgBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public Builder addAllOutArg( - java.lang.Iterable values) { - if (outArgBuilder_ == null) { - ensureOutArgIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, outArg_); - onChanged(); - } else { - outArgBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public Builder clearOutArg() { - if (outArgBuilder_ == null) { - outArg_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - outArgBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public Builder removeOutArg(int index) { - if (outArgBuilder_ == null) { - ensureOutArgIsMutable(); - outArg_.remove(index); - onChanged(); - } else { - outArgBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public org.tensorflow.proto.framework.ApiDef.Arg.Builder getOutArgBuilder( - int index) { - return getOutArgFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public org.tensorflow.proto.framework.ApiDef.ArgOrBuilder getOutArgOrBuilder( - int index) { - if (outArgBuilder_ == null) { - return outArg_.get(index); } else { - return outArgBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public java.util.List - getOutArgOrBuilderList() { - if (outArgBuilder_ != null) { - return outArgBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(outArg_); - } - } - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public org.tensorflow.proto.framework.ApiDef.Arg.Builder addOutArgBuilder() { - return getOutArgFieldBuilder().addBuilder( - org.tensorflow.proto.framework.ApiDef.Arg.getDefaultInstance()); - } - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public org.tensorflow.proto.framework.ApiDef.Arg.Builder addOutArgBuilder( - int index) { - return getOutArgFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.ApiDef.Arg.getDefaultInstance()); - } - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - public java.util.List - getOutArgBuilderList() { - return getOutArgFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ApiDef.Arg, org.tensorflow.proto.framework.ApiDef.Arg.Builder, org.tensorflow.proto.framework.ApiDef.ArgOrBuilder> - getOutArgFieldBuilder() { - if (outArgBuilder_ == null) { - outArgBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ApiDef.Arg, org.tensorflow.proto.framework.ApiDef.Arg.Builder, org.tensorflow.proto.framework.ApiDef.ArgOrBuilder>( - outArg_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - outArg_ = null; - } - return outArgBuilder_; - } - - private com.google.protobuf.LazyStringList argOrder_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureArgOrderIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - argOrder_ = new com.google.protobuf.LazyStringArrayList(argOrder_); - bitField0_ |= 0x00000008; - } - } - /** - *
-     * List of original in_arg names to specify new argument order.
-     * Length of arg_order should be either empty to keep current order
-     * or match size of in_arg.
-     * 
- * - * repeated string arg_order = 11; - */ - public com.google.protobuf.ProtocolStringList - getArgOrderList() { - return argOrder_.getUnmodifiableView(); - } - /** - *
-     * List of original in_arg names to specify new argument order.
-     * Length of arg_order should be either empty to keep current order
-     * or match size of in_arg.
-     * 
- * - * repeated string arg_order = 11; - */ - public int getArgOrderCount() { - return argOrder_.size(); - } - /** - *
-     * List of original in_arg names to specify new argument order.
-     * Length of arg_order should be either empty to keep current order
-     * or match size of in_arg.
-     * 
- * - * repeated string arg_order = 11; - */ - public java.lang.String getArgOrder(int index) { - return argOrder_.get(index); - } - /** - *
-     * List of original in_arg names to specify new argument order.
-     * Length of arg_order should be either empty to keep current order
-     * or match size of in_arg.
-     * 
- * - * repeated string arg_order = 11; - */ - public com.google.protobuf.ByteString - getArgOrderBytes(int index) { - return argOrder_.getByteString(index); - } - /** - *
-     * List of original in_arg names to specify new argument order.
-     * Length of arg_order should be either empty to keep current order
-     * or match size of in_arg.
-     * 
- * - * repeated string arg_order = 11; - */ - public Builder setArgOrder( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgOrderIsMutable(); - argOrder_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * List of original in_arg names to specify new argument order.
-     * Length of arg_order should be either empty to keep current order
-     * or match size of in_arg.
-     * 
- * - * repeated string arg_order = 11; - */ - public Builder addArgOrder( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgOrderIsMutable(); - argOrder_.add(value); - onChanged(); - return this; - } - /** - *
-     * List of original in_arg names to specify new argument order.
-     * Length of arg_order should be either empty to keep current order
-     * or match size of in_arg.
-     * 
- * - * repeated string arg_order = 11; - */ - public Builder addAllArgOrder( - java.lang.Iterable values) { - ensureArgOrderIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, argOrder_); - onChanged(); - return this; - } - /** - *
-     * List of original in_arg names to specify new argument order.
-     * Length of arg_order should be either empty to keep current order
-     * or match size of in_arg.
-     * 
- * - * repeated string arg_order = 11; - */ - public Builder clearArgOrder() { - argOrder_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * List of original in_arg names to specify new argument order.
-     * Length of arg_order should be either empty to keep current order
-     * or match size of in_arg.
-     * 
- * - * repeated string arg_order = 11; - */ - public Builder addArgOrderBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArgOrderIsMutable(); - argOrder_.add(value); - onChanged(); - return this; - } - - private java.util.List attr_ = - java.util.Collections.emptyList(); - private void ensureAttrIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - attr_ = new java.util.ArrayList(attr_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ApiDef.Attr, org.tensorflow.proto.framework.ApiDef.Attr.Builder, org.tensorflow.proto.framework.ApiDef.AttrOrBuilder> attrBuilder_; - - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public java.util.List getAttrList() { - if (attrBuilder_ == null) { - return java.util.Collections.unmodifiableList(attr_); - } else { - return attrBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public int getAttrCount() { - if (attrBuilder_ == null) { - return attr_.size(); - } else { - return attrBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public org.tensorflow.proto.framework.ApiDef.Attr getAttr(int index) { - if (attrBuilder_ == null) { - return attr_.get(index); - } else { - return attrBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public Builder setAttr( - int index, org.tensorflow.proto.framework.ApiDef.Attr value) { - if (attrBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAttrIsMutable(); - attr_.set(index, value); - onChanged(); - } else { - attrBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public Builder setAttr( - int index, org.tensorflow.proto.framework.ApiDef.Attr.Builder builderForValue) { - if (attrBuilder_ == null) { - ensureAttrIsMutable(); - attr_.set(index, builderForValue.build()); - onChanged(); - } else { - attrBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public Builder addAttr(org.tensorflow.proto.framework.ApiDef.Attr value) { - if (attrBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAttrIsMutable(); - attr_.add(value); - onChanged(); - } else { - attrBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public Builder addAttr( - int index, org.tensorflow.proto.framework.ApiDef.Attr value) { - if (attrBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAttrIsMutable(); - attr_.add(index, value); - onChanged(); - } else { - attrBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public Builder addAttr( - org.tensorflow.proto.framework.ApiDef.Attr.Builder builderForValue) { - if (attrBuilder_ == null) { - ensureAttrIsMutable(); - attr_.add(builderForValue.build()); - onChanged(); - } else { - attrBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public Builder addAttr( - int index, org.tensorflow.proto.framework.ApiDef.Attr.Builder builderForValue) { - if (attrBuilder_ == null) { - ensureAttrIsMutable(); - attr_.add(index, builderForValue.build()); - onChanged(); - } else { - attrBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public Builder addAllAttr( - java.lang.Iterable values) { - if (attrBuilder_ == null) { - ensureAttrIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, attr_); - onChanged(); - } else { - attrBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public Builder clearAttr() { - if (attrBuilder_ == null) { - attr_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - attrBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public Builder removeAttr(int index) { - if (attrBuilder_ == null) { - ensureAttrIsMutable(); - attr_.remove(index); - onChanged(); - } else { - attrBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public org.tensorflow.proto.framework.ApiDef.Attr.Builder getAttrBuilder( - int index) { - return getAttrFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public org.tensorflow.proto.framework.ApiDef.AttrOrBuilder getAttrOrBuilder( - int index) { - if (attrBuilder_ == null) { - return attr_.get(index); } else { - return attrBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public java.util.List - getAttrOrBuilderList() { - if (attrBuilder_ != null) { - return attrBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(attr_); - } - } - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public org.tensorflow.proto.framework.ApiDef.Attr.Builder addAttrBuilder() { - return getAttrFieldBuilder().addBuilder( - org.tensorflow.proto.framework.ApiDef.Attr.getDefaultInstance()); - } - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public org.tensorflow.proto.framework.ApiDef.Attr.Builder addAttrBuilder( - int index) { - return getAttrFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.ApiDef.Attr.getDefaultInstance()); - } - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - public java.util.List - getAttrBuilderList() { - return getAttrFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ApiDef.Attr, org.tensorflow.proto.framework.ApiDef.Attr.Builder, org.tensorflow.proto.framework.ApiDef.AttrOrBuilder> - getAttrFieldBuilder() { - if (attrBuilder_ == null) { - attrBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ApiDef.Attr, org.tensorflow.proto.framework.ApiDef.Attr.Builder, org.tensorflow.proto.framework.ApiDef.AttrOrBuilder>( - attr_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - attr_ = null; - } - return attrBuilder_; - } - - private java.lang.Object summary_ = ""; - /** - *
-     * One-line human-readable description of what the Op does.
-     * 
- * - * string summary = 7; - */ - public java.lang.String getSummary() { - java.lang.Object ref = summary_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - summary_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * One-line human-readable description of what the Op does.
-     * 
- * - * string summary = 7; - */ - public com.google.protobuf.ByteString - getSummaryBytes() { - java.lang.Object ref = summary_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - summary_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * One-line human-readable description of what the Op does.
-     * 
- * - * string summary = 7; - */ - public Builder setSummary( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - summary_ = value; - onChanged(); - return this; - } - /** - *
-     * One-line human-readable description of what the Op does.
-     * 
- * - * string summary = 7; - */ - public Builder clearSummary() { - - summary_ = getDefaultInstance().getSummary(); - onChanged(); - return this; - } - /** - *
-     * One-line human-readable description of what the Op does.
-     * 
- * - * string summary = 7; - */ - public Builder setSummaryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - summary_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-     * Additional, longer human-readable description of what the Op does.
-     * 
- * - * string description = 8; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Additional, longer human-readable description of what the Op does.
-     * 
- * - * string description = 8; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Additional, longer human-readable description of what the Op does.
-     * 
- * - * string description = 8; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
-     * Additional, longer human-readable description of what the Op does.
-     * 
- * - * string description = 8; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-     * Additional, longer human-readable description of what the Op does.
-     * 
- * - * string description = 8; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private java.lang.Object descriptionPrefix_ = ""; - /** - *
-     * Modify an existing/inherited description by adding text to the beginning
-     * or end.
-     * 
- * - * string description_prefix = 9; - */ - public java.lang.String getDescriptionPrefix() { - java.lang.Object ref = descriptionPrefix_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - descriptionPrefix_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Modify an existing/inherited description by adding text to the beginning
-     * or end.
-     * 
- * - * string description_prefix = 9; - */ - public com.google.protobuf.ByteString - getDescriptionPrefixBytes() { - java.lang.Object ref = descriptionPrefix_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - descriptionPrefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Modify an existing/inherited description by adding text to the beginning
-     * or end.
-     * 
- * - * string description_prefix = 9; - */ - public Builder setDescriptionPrefix( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - descriptionPrefix_ = value; - onChanged(); - return this; - } - /** - *
-     * Modify an existing/inherited description by adding text to the beginning
-     * or end.
-     * 
- * - * string description_prefix = 9; - */ - public Builder clearDescriptionPrefix() { - - descriptionPrefix_ = getDefaultInstance().getDescriptionPrefix(); - onChanged(); - return this; - } - /** - *
-     * Modify an existing/inherited description by adding text to the beginning
-     * or end.
-     * 
- * - * string description_prefix = 9; - */ - public Builder setDescriptionPrefixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - descriptionPrefix_ = value; - onChanged(); - return this; - } - - private java.lang.Object descriptionSuffix_ = ""; - /** - * string description_suffix = 10; - */ - public java.lang.String getDescriptionSuffix() { - java.lang.Object ref = descriptionSuffix_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - descriptionSuffix_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string description_suffix = 10; - */ - public com.google.protobuf.ByteString - getDescriptionSuffixBytes() { - java.lang.Object ref = descriptionSuffix_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - descriptionSuffix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string description_suffix = 10; - */ - public Builder setDescriptionSuffix( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - descriptionSuffix_ = value; - onChanged(); - return this; - } - /** - * string description_suffix = 10; - */ - public Builder clearDescriptionSuffix() { - - descriptionSuffix_ = getDefaultInstance().getDescriptionSuffix(); - onChanged(); - return this; - } - /** - * string description_suffix = 10; - */ - public Builder setDescriptionSuffixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - descriptionSuffix_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.ApiDef) - } - - // @@protoc_insertion_point(class_scope:tensorflow.ApiDef) - private static final org.tensorflow.proto.framework.ApiDef DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.ApiDef(); - } - - public static org.tensorflow.proto.framework.ApiDef getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApiDef parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApiDef(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ApiDef getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ApiDefOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ApiDefOrBuilder.java deleted file mode 100644 index 1a435d93fdb..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ApiDefOrBuilder.java +++ /dev/null @@ -1,274 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/api_def.proto - -package org.tensorflow.proto.framework; - -public interface ApiDefOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.ApiDef) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Name of the op (in the OpDef) to specify the API for.
-   * 
- * - * string graph_op_name = 1; - */ - java.lang.String getGraphOpName(); - /** - *
-   * Name of the op (in the OpDef) to specify the API for.
-   * 
- * - * string graph_op_name = 1; - */ - com.google.protobuf.ByteString - getGraphOpNameBytes(); - - /** - *
-   * If this op is deprecated, set deprecation message to the message
-   * that should be logged when this op is used.
-   * The message should indicate alternative op to use, if any.
-   * 
- * - * string deprecation_message = 12; - */ - java.lang.String getDeprecationMessage(); - /** - *
-   * If this op is deprecated, set deprecation message to the message
-   * that should be logged when this op is used.
-   * The message should indicate alternative op to use, if any.
-   * 
- * - * string deprecation_message = 12; - */ - com.google.protobuf.ByteString - getDeprecationMessageBytes(); - - /** - *
-   * Major version when the op will be deleted. For e.g. set this
-   * value to 2 if op API should be removed in TensorFlow 2.0 and
-   * deprecated in versions before that.
-   * 
- * - * int32 deprecation_version = 13; - */ - int getDeprecationVersion(); - - /** - * .tensorflow.ApiDef.Visibility visibility = 2; - */ - int getVisibilityValue(); - /** - * .tensorflow.ApiDef.Visibility visibility = 2; - */ - org.tensorflow.proto.framework.ApiDef.Visibility getVisibility(); - - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - java.util.List - getEndpointList(); - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - org.tensorflow.proto.framework.ApiDef.Endpoint getEndpoint(int index); - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - int getEndpointCount(); - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - java.util.List - getEndpointOrBuilderList(); - /** - * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - */ - org.tensorflow.proto.framework.ApiDef.EndpointOrBuilder getEndpointOrBuilder( - int index); - - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - java.util.List - getInArgList(); - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - org.tensorflow.proto.framework.ApiDef.Arg getInArg(int index); - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - int getInArgCount(); - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - java.util.List - getInArgOrBuilderList(); - /** - * repeated .tensorflow.ApiDef.Arg in_arg = 4; - */ - org.tensorflow.proto.framework.ApiDef.ArgOrBuilder getInArgOrBuilder( - int index); - - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - java.util.List - getOutArgList(); - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - org.tensorflow.proto.framework.ApiDef.Arg getOutArg(int index); - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - int getOutArgCount(); - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - java.util.List - getOutArgOrBuilderList(); - /** - * repeated .tensorflow.ApiDef.Arg out_arg = 5; - */ - org.tensorflow.proto.framework.ApiDef.ArgOrBuilder getOutArgOrBuilder( - int index); - - /** - *
-   * List of original in_arg names to specify new argument order.
-   * Length of arg_order should be either empty to keep current order
-   * or match size of in_arg.
-   * 
- * - * repeated string arg_order = 11; - */ - java.util.List - getArgOrderList(); - /** - *
-   * List of original in_arg names to specify new argument order.
-   * Length of arg_order should be either empty to keep current order
-   * or match size of in_arg.
-   * 
- * - * repeated string arg_order = 11; - */ - int getArgOrderCount(); - /** - *
-   * List of original in_arg names to specify new argument order.
-   * Length of arg_order should be either empty to keep current order
-   * or match size of in_arg.
-   * 
- * - * repeated string arg_order = 11; - */ - java.lang.String getArgOrder(int index); - /** - *
-   * List of original in_arg names to specify new argument order.
-   * Length of arg_order should be either empty to keep current order
-   * or match size of in_arg.
-   * 
- * - * repeated string arg_order = 11; - */ - com.google.protobuf.ByteString - getArgOrderBytes(int index); - - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - java.util.List - getAttrList(); - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - org.tensorflow.proto.framework.ApiDef.Attr getAttr(int index); - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - int getAttrCount(); - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - java.util.List - getAttrOrBuilderList(); - /** - * repeated .tensorflow.ApiDef.Attr attr = 6; - */ - org.tensorflow.proto.framework.ApiDef.AttrOrBuilder getAttrOrBuilder( - int index); - - /** - *
-   * One-line human-readable description of what the Op does.
-   * 
- * - * string summary = 7; - */ - java.lang.String getSummary(); - /** - *
-   * One-line human-readable description of what the Op does.
-   * 
- * - * string summary = 7; - */ - com.google.protobuf.ByteString - getSummaryBytes(); - - /** - *
-   * Additional, longer human-readable description of what the Op does.
-   * 
- * - * string description = 8; - */ - java.lang.String getDescription(); - /** - *
-   * Additional, longer human-readable description of what the Op does.
-   * 
- * - * string description = 8; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-   * Modify an existing/inherited description by adding text to the beginning
-   * or end.
-   * 
- * - * string description_prefix = 9; - */ - java.lang.String getDescriptionPrefix(); - /** - *
-   * Modify an existing/inherited description by adding text to the beginning
-   * or end.
-   * 
- * - * string description_prefix = 9; - */ - com.google.protobuf.ByteString - getDescriptionPrefixBytes(); - - /** - * string description_suffix = 10; - */ - java.lang.String getDescriptionSuffix(); - /** - * string description_suffix = 10; - */ - com.google.protobuf.ByteString - getDescriptionSuffixBytes(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ApiDefProtos.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ApiDefProtos.java deleted file mode 100644 index 6df5379d411..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ApiDefProtos.java +++ /dev/null @@ -1,117 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/api_def.proto - -package org.tensorflow.proto.framework; - -public final class ApiDefProtos { - private ApiDefProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_ApiDef_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_ApiDef_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_ApiDef_Endpoint_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_ApiDef_Endpoint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_ApiDef_Arg_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_ApiDef_Arg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_ApiDef_Attr_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_ApiDef_Attr_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_ApiDefs_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_ApiDefs_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'tensorflow/core/framework/api_def.prot" + - "o\022\ntensorflow\032*tensorflow/core/framework" + - "/attr_value.proto\"\341\005\n\006ApiDef\022\025\n\rgraph_op" + - "_name\030\001 \001(\t\022\033\n\023deprecation_message\030\014 \001(\t" + - "\022\033\n\023deprecation_version\030\r \001(\005\0221\n\nvisibil" + - "ity\030\002 \001(\0162\035.tensorflow.ApiDef.Visibility" + - "\022-\n\010endpoint\030\003 \003(\0132\033.tensorflow.ApiDef.E" + - "ndpoint\022&\n\006in_arg\030\004 \003(\0132\026.tensorflow.Api" + - "Def.Arg\022\'\n\007out_arg\030\005 \003(\0132\026.tensorflow.Ap" + - "iDef.Arg\022\021\n\targ_order\030\013 \003(\t\022%\n\004attr\030\006 \003(" + - "\0132\027.tensorflow.ApiDef.Attr\022\017\n\007summary\030\007 " + - "\001(\t\022\023\n\013description\030\010 \001(\t\022\032\n\022description_" + - "prefix\030\t \001(\t\022\032\n\022description_suffix\030\n \001(\t" + - "\032I\n\010Endpoint\022\014\n\004name\030\001 \001(\t\022\022\n\ndeprecated" + - "\030\003 \001(\010\022\033\n\023deprecation_version\030\004 \001(\005\032;\n\003A" + - "rg\022\014\n\004name\030\001 \001(\t\022\021\n\trename_to\030\002 \001(\t\022\023\n\013d" + - "escription\030\003 \001(\t\032j\n\004Attr\022\014\n\004name\030\001 \001(\t\022\021" + - "\n\trename_to\030\002 \001(\t\022,\n\rdefault_value\030\003 \001(\013" + - "2\025.tensorflow.AttrValue\022\023\n\013description\030\004" + - " \001(\t\"G\n\nVisibility\022\026\n\022DEFAULT_VISIBILITY" + - "\020\000\022\013\n\007VISIBLE\020\001\022\010\n\004SKIP\020\002\022\n\n\006HIDDEN\020\003\")\n" + - "\007ApiDefs\022\036\n\002op\030\001 \003(\0132\022.tensorflow.ApiDef" + - "B\203\001\n\036org.tensorflow.proto.frameworkB\014Api" + - "DefProtosP\001ZNgithub.com/tensorflow/tenso" + - "rflow/tensorflow/go/core/framework/api_d" + - "ef_go_proto\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.framework.AttrValueProtos.getDescriptor(), - }); - internal_static_tensorflow_ApiDef_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tensorflow_ApiDef_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_ApiDef_descriptor, - new java.lang.String[] { "GraphOpName", "DeprecationMessage", "DeprecationVersion", "Visibility", "Endpoint", "InArg", "OutArg", "ArgOrder", "Attr", "Summary", "Description", "DescriptionPrefix", "DescriptionSuffix", }); - internal_static_tensorflow_ApiDef_Endpoint_descriptor = - internal_static_tensorflow_ApiDef_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_ApiDef_Endpoint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_ApiDef_Endpoint_descriptor, - new java.lang.String[] { "Name", "Deprecated", "DeprecationVersion", }); - internal_static_tensorflow_ApiDef_Arg_descriptor = - internal_static_tensorflow_ApiDef_descriptor.getNestedTypes().get(1); - internal_static_tensorflow_ApiDef_Arg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_ApiDef_Arg_descriptor, - new java.lang.String[] { "Name", "RenameTo", "Description", }); - internal_static_tensorflow_ApiDef_Attr_descriptor = - internal_static_tensorflow_ApiDef_descriptor.getNestedTypes().get(2); - internal_static_tensorflow_ApiDef_Attr_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_ApiDef_Attr_descriptor, - new java.lang.String[] { "Name", "RenameTo", "DefaultValue", "Description", }); - internal_static_tensorflow_ApiDefs_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_tensorflow_ApiDefs_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_ApiDefs_descriptor, - new java.lang.String[] { "Op", }); - org.tensorflow.proto.framework.AttrValueProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ApiDefs.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ApiDefs.java deleted file mode 100644 index a4076265967..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ApiDefs.java +++ /dev/null @@ -1,765 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/api_def.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.ApiDefs} - */ -public final class ApiDefs extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.ApiDefs) - ApiDefsOrBuilder { -private static final long serialVersionUID = 0L; - // Use ApiDefs.newBuilder() to construct. - private ApiDefs(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ApiDefs() { - op_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ApiDefs(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ApiDefs( - 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)) { - op_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - op_.add( - input.readMessage(org.tensorflow.proto.framework.ApiDef.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)) { - op_ = java.util.Collections.unmodifiableList(op_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDefs_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDefs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ApiDefs.class, org.tensorflow.proto.framework.ApiDefs.Builder.class); - } - - public static final int OP_FIELD_NUMBER = 1; - private java.util.List op_; - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public java.util.List getOpList() { - return op_; - } - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public java.util.List - getOpOrBuilderList() { - return op_; - } - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public int getOpCount() { - return op_.size(); - } - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public org.tensorflow.proto.framework.ApiDef getOp(int index) { - return op_.get(index); - } - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public org.tensorflow.proto.framework.ApiDefOrBuilder getOpOrBuilder( - int index) { - return op_.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 < op_.size(); i++) { - output.writeMessage(1, op_.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 < op_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, op_.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 org.tensorflow.proto.framework.ApiDefs)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.ApiDefs other = (org.tensorflow.proto.framework.ApiDefs) obj; - - if (!getOpList() - .equals(other.getOpList())) 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 (getOpCount() > 0) { - hash = (37 * hash) + OP_FIELD_NUMBER; - hash = (53 * hash) + getOpList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.ApiDefs parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ApiDefs parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ApiDefs parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ApiDefs parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ApiDefs parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ApiDefs parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ApiDefs parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ApiDefs 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 org.tensorflow.proto.framework.ApiDefs parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ApiDefs 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 org.tensorflow.proto.framework.ApiDefs parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ApiDefs 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(org.tensorflow.proto.framework.ApiDefs prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.ApiDefs} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.ApiDefs) - org.tensorflow.proto.framework.ApiDefsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDefs_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDefs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ApiDefs.class, org.tensorflow.proto.framework.ApiDefs.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.ApiDefs.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getOpFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (opBuilder_ == null) { - op_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - opBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.ApiDefProtos.internal_static_tensorflow_ApiDefs_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ApiDefs getDefaultInstanceForType() { - return org.tensorflow.proto.framework.ApiDefs.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.ApiDefs build() { - org.tensorflow.proto.framework.ApiDefs result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ApiDefs buildPartial() { - org.tensorflow.proto.framework.ApiDefs result = new org.tensorflow.proto.framework.ApiDefs(this); - int from_bitField0_ = bitField0_; - if (opBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - op_ = java.util.Collections.unmodifiableList(op_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.op_ = op_; - } else { - result.op_ = opBuilder_.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 org.tensorflow.proto.framework.ApiDefs) { - return mergeFrom((org.tensorflow.proto.framework.ApiDefs)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.ApiDefs other) { - if (other == org.tensorflow.proto.framework.ApiDefs.getDefaultInstance()) return this; - if (opBuilder_ == null) { - if (!other.op_.isEmpty()) { - if (op_.isEmpty()) { - op_ = other.op_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOpIsMutable(); - op_.addAll(other.op_); - } - onChanged(); - } - } else { - if (!other.op_.isEmpty()) { - if (opBuilder_.isEmpty()) { - opBuilder_.dispose(); - opBuilder_ = null; - op_ = other.op_; - bitField0_ = (bitField0_ & ~0x00000001); - opBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOpFieldBuilder() : null; - } else { - opBuilder_.addAllMessages(other.op_); - } - } - } - 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 { - org.tensorflow.proto.framework.ApiDefs parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.ApiDefs) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List op_ = - java.util.Collections.emptyList(); - private void ensureOpIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - op_ = new java.util.ArrayList(op_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ApiDef, org.tensorflow.proto.framework.ApiDef.Builder, org.tensorflow.proto.framework.ApiDefOrBuilder> opBuilder_; - - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public java.util.List getOpList() { - if (opBuilder_ == null) { - return java.util.Collections.unmodifiableList(op_); - } else { - return opBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public int getOpCount() { - if (opBuilder_ == null) { - return op_.size(); - } else { - return opBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public org.tensorflow.proto.framework.ApiDef getOp(int index) { - if (opBuilder_ == null) { - return op_.get(index); - } else { - return opBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public Builder setOp( - int index, org.tensorflow.proto.framework.ApiDef value) { - if (opBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOpIsMutable(); - op_.set(index, value); - onChanged(); - } else { - opBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public Builder setOp( - int index, org.tensorflow.proto.framework.ApiDef.Builder builderForValue) { - if (opBuilder_ == null) { - ensureOpIsMutable(); - op_.set(index, builderForValue.build()); - onChanged(); - } else { - opBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public Builder addOp(org.tensorflow.proto.framework.ApiDef value) { - if (opBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOpIsMutable(); - op_.add(value); - onChanged(); - } else { - opBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public Builder addOp( - int index, org.tensorflow.proto.framework.ApiDef value) { - if (opBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOpIsMutable(); - op_.add(index, value); - onChanged(); - } else { - opBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public Builder addOp( - org.tensorflow.proto.framework.ApiDef.Builder builderForValue) { - if (opBuilder_ == null) { - ensureOpIsMutable(); - op_.add(builderForValue.build()); - onChanged(); - } else { - opBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public Builder addOp( - int index, org.tensorflow.proto.framework.ApiDef.Builder builderForValue) { - if (opBuilder_ == null) { - ensureOpIsMutable(); - op_.add(index, builderForValue.build()); - onChanged(); - } else { - opBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public Builder addAllOp( - java.lang.Iterable values) { - if (opBuilder_ == null) { - ensureOpIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, op_); - onChanged(); - } else { - opBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public Builder clearOp() { - if (opBuilder_ == null) { - op_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - opBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public Builder removeOp(int index) { - if (opBuilder_ == null) { - ensureOpIsMutable(); - op_.remove(index); - onChanged(); - } else { - opBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public org.tensorflow.proto.framework.ApiDef.Builder getOpBuilder( - int index) { - return getOpFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public org.tensorflow.proto.framework.ApiDefOrBuilder getOpOrBuilder( - int index) { - if (opBuilder_ == null) { - return op_.get(index); } else { - return opBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public java.util.List - getOpOrBuilderList() { - if (opBuilder_ != null) { - return opBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(op_); - } - } - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public org.tensorflow.proto.framework.ApiDef.Builder addOpBuilder() { - return getOpFieldBuilder().addBuilder( - org.tensorflow.proto.framework.ApiDef.getDefaultInstance()); - } - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public org.tensorflow.proto.framework.ApiDef.Builder addOpBuilder( - int index) { - return getOpFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.ApiDef.getDefaultInstance()); - } - /** - * repeated .tensorflow.ApiDef op = 1; - */ - public java.util.List - getOpBuilderList() { - return getOpFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ApiDef, org.tensorflow.proto.framework.ApiDef.Builder, org.tensorflow.proto.framework.ApiDefOrBuilder> - getOpFieldBuilder() { - if (opBuilder_ == null) { - opBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ApiDef, org.tensorflow.proto.framework.ApiDef.Builder, org.tensorflow.proto.framework.ApiDefOrBuilder>( - op_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - op_ = null; - } - return opBuilder_; - } - @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:tensorflow.ApiDefs) - } - - // @@protoc_insertion_point(class_scope:tensorflow.ApiDefs) - private static final org.tensorflow.proto.framework.ApiDefs DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.ApiDefs(); - } - - public static org.tensorflow.proto.framework.ApiDefs getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApiDefs parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApiDefs(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ApiDefs getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ApiDefsOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ApiDefsOrBuilder.java deleted file mode 100644 index e3ba64964e7..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ApiDefsOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/api_def.proto - -package org.tensorflow.proto.framework; - -public interface ApiDefsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.ApiDefs) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .tensorflow.ApiDef op = 1; - */ - java.util.List - getOpList(); - /** - * repeated .tensorflow.ApiDef op = 1; - */ - org.tensorflow.proto.framework.ApiDef getOp(int index); - /** - * repeated .tensorflow.ApiDef op = 1; - */ - int getOpCount(); - /** - * repeated .tensorflow.ApiDef op = 1; - */ - java.util.List - getOpOrBuilderList(); - /** - * repeated .tensorflow.ApiDef op = 1; - */ - org.tensorflow.proto.framework.ApiDefOrBuilder getOpOrBuilder( - int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AssetFileDef.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AssetFileDef.java deleted file mode 100644 index 2d4a4e4b828..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AssetFileDef.java +++ /dev/null @@ -1,827 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/meta_graph.proto - -package org.tensorflow.proto.framework; - -/** - *
- * An asset file def for a single file or a set of sharded files with the same
- * name.
- * 
- * - * Protobuf type {@code tensorflow.AssetFileDef} - */ -public final class AssetFileDef extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.AssetFileDef) - AssetFileDefOrBuilder { -private static final long serialVersionUID = 0L; - // Use AssetFileDef.newBuilder() to construct. - private AssetFileDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AssetFileDef() { - filename_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AssetFileDef(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AssetFileDef( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.tensorflow.proto.framework.TensorInfo.Builder subBuilder = null; - if (tensorInfo_ != null) { - subBuilder = tensorInfo_.toBuilder(); - } - tensorInfo_ = input.readMessage(org.tensorflow.proto.framework.TensorInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tensorInfo_); - tensorInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - filename_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_AssetFileDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_AssetFileDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.AssetFileDef.class, org.tensorflow.proto.framework.AssetFileDef.Builder.class); - } - - public static final int TENSOR_INFO_FIELD_NUMBER = 1; - private org.tensorflow.proto.framework.TensorInfo tensorInfo_; - /** - *
-   * The tensor to bind the asset filename to.
-   * 
- * - * .tensorflow.TensorInfo tensor_info = 1; - */ - public boolean hasTensorInfo() { - return tensorInfo_ != null; - } - /** - *
-   * The tensor to bind the asset filename to.
-   * 
- * - * .tensorflow.TensorInfo tensor_info = 1; - */ - public org.tensorflow.proto.framework.TensorInfo getTensorInfo() { - return tensorInfo_ == null ? org.tensorflow.proto.framework.TensorInfo.getDefaultInstance() : tensorInfo_; - } - /** - *
-   * The tensor to bind the asset filename to.
-   * 
- * - * .tensorflow.TensorInfo tensor_info = 1; - */ - public org.tensorflow.proto.framework.TensorInfoOrBuilder getTensorInfoOrBuilder() { - return getTensorInfo(); - } - - public static final int FILENAME_FIELD_NUMBER = 2; - private volatile java.lang.Object filename_; - /** - *
-   * The filename within an assets directory. Note: does not include the path
-   * prefix, i.e. directories. For an asset at /tmp/path/vocab.txt, the filename
-   * would be "vocab.txt".
-   * 
- * - * string filename = 2; - */ - public java.lang.String getFilename() { - java.lang.Object ref = filename_; - 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(); - filename_ = s; - return s; - } - } - /** - *
-   * The filename within an assets directory. Note: does not include the path
-   * prefix, i.e. directories. For an asset at /tmp/path/vocab.txt, the filename
-   * would be "vocab.txt".
-   * 
- * - * string filename = 2; - */ - public com.google.protobuf.ByteString - getFilenameBytes() { - java.lang.Object ref = filename_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filename_ = 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 (tensorInfo_ != null) { - output.writeMessage(1, getTensorInfo()); - } - if (!getFilenameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filename_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tensorInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTensorInfo()); - } - if (!getFilenameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filename_); - } - 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 org.tensorflow.proto.framework.AssetFileDef)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.AssetFileDef other = (org.tensorflow.proto.framework.AssetFileDef) obj; - - if (hasTensorInfo() != other.hasTensorInfo()) return false; - if (hasTensorInfo()) { - if (!getTensorInfo() - .equals(other.getTensorInfo())) return false; - } - if (!getFilename() - .equals(other.getFilename())) 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 (hasTensorInfo()) { - hash = (37 * hash) + TENSOR_INFO_FIELD_NUMBER; - hash = (53 * hash) + getTensorInfo().hashCode(); - } - hash = (37 * hash) + FILENAME_FIELD_NUMBER; - hash = (53 * hash) + getFilename().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.AssetFileDef parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.AssetFileDef parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.AssetFileDef parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.AssetFileDef parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.AssetFileDef parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.AssetFileDef parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.AssetFileDef parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.AssetFileDef 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 org.tensorflow.proto.framework.AssetFileDef parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.AssetFileDef 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 org.tensorflow.proto.framework.AssetFileDef parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.AssetFileDef 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(org.tensorflow.proto.framework.AssetFileDef 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; - } - /** - *
-   * An asset file def for a single file or a set of sharded files with the same
-   * name.
-   * 
- * - * Protobuf type {@code tensorflow.AssetFileDef} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.AssetFileDef) - org.tensorflow.proto.framework.AssetFileDefOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_AssetFileDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_AssetFileDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.AssetFileDef.class, org.tensorflow.proto.framework.AssetFileDef.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.AssetFileDef.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (tensorInfoBuilder_ == null) { - tensorInfo_ = null; - } else { - tensorInfo_ = null; - tensorInfoBuilder_ = null; - } - filename_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_AssetFileDef_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.AssetFileDef getDefaultInstanceForType() { - return org.tensorflow.proto.framework.AssetFileDef.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.AssetFileDef build() { - org.tensorflow.proto.framework.AssetFileDef result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.AssetFileDef buildPartial() { - org.tensorflow.proto.framework.AssetFileDef result = new org.tensorflow.proto.framework.AssetFileDef(this); - if (tensorInfoBuilder_ == null) { - result.tensorInfo_ = tensorInfo_; - } else { - result.tensorInfo_ = tensorInfoBuilder_.build(); - } - result.filename_ = filename_; - 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 org.tensorflow.proto.framework.AssetFileDef) { - return mergeFrom((org.tensorflow.proto.framework.AssetFileDef)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.AssetFileDef other) { - if (other == org.tensorflow.proto.framework.AssetFileDef.getDefaultInstance()) return this; - if (other.hasTensorInfo()) { - mergeTensorInfo(other.getTensorInfo()); - } - if (!other.getFilename().isEmpty()) { - filename_ = other.filename_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.AssetFileDef parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.AssetFileDef) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private org.tensorflow.proto.framework.TensorInfo tensorInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorInfo, org.tensorflow.proto.framework.TensorInfo.Builder, org.tensorflow.proto.framework.TensorInfoOrBuilder> tensorInfoBuilder_; - /** - *
-     * The tensor to bind the asset filename to.
-     * 
- * - * .tensorflow.TensorInfo tensor_info = 1; - */ - public boolean hasTensorInfo() { - return tensorInfoBuilder_ != null || tensorInfo_ != null; - } - /** - *
-     * The tensor to bind the asset filename to.
-     * 
- * - * .tensorflow.TensorInfo tensor_info = 1; - */ - public org.tensorflow.proto.framework.TensorInfo getTensorInfo() { - if (tensorInfoBuilder_ == null) { - return tensorInfo_ == null ? org.tensorflow.proto.framework.TensorInfo.getDefaultInstance() : tensorInfo_; - } else { - return tensorInfoBuilder_.getMessage(); - } - } - /** - *
-     * The tensor to bind the asset filename to.
-     * 
- * - * .tensorflow.TensorInfo tensor_info = 1; - */ - public Builder setTensorInfo(org.tensorflow.proto.framework.TensorInfo value) { - if (tensorInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tensorInfo_ = value; - onChanged(); - } else { - tensorInfoBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The tensor to bind the asset filename to.
-     * 
- * - * .tensorflow.TensorInfo tensor_info = 1; - */ - public Builder setTensorInfo( - org.tensorflow.proto.framework.TensorInfo.Builder builderForValue) { - if (tensorInfoBuilder_ == null) { - tensorInfo_ = builderForValue.build(); - onChanged(); - } else { - tensorInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The tensor to bind the asset filename to.
-     * 
- * - * .tensorflow.TensorInfo tensor_info = 1; - */ - public Builder mergeTensorInfo(org.tensorflow.proto.framework.TensorInfo value) { - if (tensorInfoBuilder_ == null) { - if (tensorInfo_ != null) { - tensorInfo_ = - org.tensorflow.proto.framework.TensorInfo.newBuilder(tensorInfo_).mergeFrom(value).buildPartial(); - } else { - tensorInfo_ = value; - } - onChanged(); - } else { - tensorInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The tensor to bind the asset filename to.
-     * 
- * - * .tensorflow.TensorInfo tensor_info = 1; - */ - public Builder clearTensorInfo() { - if (tensorInfoBuilder_ == null) { - tensorInfo_ = null; - onChanged(); - } else { - tensorInfo_ = null; - tensorInfoBuilder_ = null; - } - - return this; - } - /** - *
-     * The tensor to bind the asset filename to.
-     * 
- * - * .tensorflow.TensorInfo tensor_info = 1; - */ - public org.tensorflow.proto.framework.TensorInfo.Builder getTensorInfoBuilder() { - - onChanged(); - return getTensorInfoFieldBuilder().getBuilder(); - } - /** - *
-     * The tensor to bind the asset filename to.
-     * 
- * - * .tensorflow.TensorInfo tensor_info = 1; - */ - public org.tensorflow.proto.framework.TensorInfoOrBuilder getTensorInfoOrBuilder() { - if (tensorInfoBuilder_ != null) { - return tensorInfoBuilder_.getMessageOrBuilder(); - } else { - return tensorInfo_ == null ? - org.tensorflow.proto.framework.TensorInfo.getDefaultInstance() : tensorInfo_; - } - } - /** - *
-     * The tensor to bind the asset filename to.
-     * 
- * - * .tensorflow.TensorInfo tensor_info = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorInfo, org.tensorflow.proto.framework.TensorInfo.Builder, org.tensorflow.proto.framework.TensorInfoOrBuilder> - getTensorInfoFieldBuilder() { - if (tensorInfoBuilder_ == null) { - tensorInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorInfo, org.tensorflow.proto.framework.TensorInfo.Builder, org.tensorflow.proto.framework.TensorInfoOrBuilder>( - getTensorInfo(), - getParentForChildren(), - isClean()); - tensorInfo_ = null; - } - return tensorInfoBuilder_; - } - - private java.lang.Object filename_ = ""; - /** - *
-     * The filename within an assets directory. Note: does not include the path
-     * prefix, i.e. directories. For an asset at /tmp/path/vocab.txt, the filename
-     * would be "vocab.txt".
-     * 
- * - * string filename = 2; - */ - public java.lang.String getFilename() { - java.lang.Object ref = filename_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filename_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The filename within an assets directory. Note: does not include the path
-     * prefix, i.e. directories. For an asset at /tmp/path/vocab.txt, the filename
-     * would be "vocab.txt".
-     * 
- * - * string filename = 2; - */ - public com.google.protobuf.ByteString - getFilenameBytes() { - java.lang.Object ref = filename_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filename_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The filename within an assets directory. Note: does not include the path
-     * prefix, i.e. directories. For an asset at /tmp/path/vocab.txt, the filename
-     * would be "vocab.txt".
-     * 
- * - * string filename = 2; - */ - public Builder setFilename( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filename_ = value; - onChanged(); - return this; - } - /** - *
-     * The filename within an assets directory. Note: does not include the path
-     * prefix, i.e. directories. For an asset at /tmp/path/vocab.txt, the filename
-     * would be "vocab.txt".
-     * 
- * - * string filename = 2; - */ - public Builder clearFilename() { - - filename_ = getDefaultInstance().getFilename(); - onChanged(); - return this; - } - /** - *
-     * The filename within an assets directory. Note: does not include the path
-     * prefix, i.e. directories. For an asset at /tmp/path/vocab.txt, the filename
-     * would be "vocab.txt".
-     * 
- * - * string filename = 2; - */ - public Builder setFilenameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filename_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.AssetFileDef) - } - - // @@protoc_insertion_point(class_scope:tensorflow.AssetFileDef) - private static final org.tensorflow.proto.framework.AssetFileDef DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.AssetFileDef(); - } - - public static org.tensorflow.proto.framework.AssetFileDef getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AssetFileDef parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AssetFileDef(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.AssetFileDef getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AttrValue.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AttrValue.java deleted file mode 100644 index f64f1a8b3ab..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AttrValue.java +++ /dev/null @@ -1,5341 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/attr_value.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Protocol buffer representing the value for an attr used to configure an Op.
- * Comment indicates the corresponding attr type.  Only the field matching the
- * attr type may be filled.
- * 
- * - * Protobuf type {@code tensorflow.AttrValue} - */ -public final class AttrValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.AttrValue) - AttrValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use AttrValue.newBuilder() to construct. - private AttrValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AttrValue() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AttrValue(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AttrValue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.tensorflow.proto.framework.AttrValue.ListValue.Builder subBuilder = null; - if (valueCase_ == 1) { - subBuilder = ((org.tensorflow.proto.framework.AttrValue.ListValue) value_).toBuilder(); - } - value_ = - input.readMessage(org.tensorflow.proto.framework.AttrValue.ListValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.AttrValue.ListValue) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 1; - break; - } - case 18: { - valueCase_ = 2; - value_ = input.readBytes(); - break; - } - case 24: { - valueCase_ = 3; - value_ = input.readInt64(); - break; - } - case 37: { - valueCase_ = 4; - value_ = input.readFloat(); - break; - } - case 40: { - valueCase_ = 5; - value_ = input.readBool(); - break; - } - case 48: { - int rawValue = input.readEnum(); - valueCase_ = 6; - value_ = rawValue; - break; - } - case 58: { - org.tensorflow.proto.framework.TensorShapeProto.Builder subBuilder = null; - if (valueCase_ == 7) { - subBuilder = ((org.tensorflow.proto.framework.TensorShapeProto) value_).toBuilder(); - } - value_ = - input.readMessage(org.tensorflow.proto.framework.TensorShapeProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.TensorShapeProto) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 7; - break; - } - case 66: { - org.tensorflow.proto.framework.TensorProto.Builder subBuilder = null; - if (valueCase_ == 8) { - subBuilder = ((org.tensorflow.proto.framework.TensorProto) value_).toBuilder(); - } - value_ = - input.readMessage(org.tensorflow.proto.framework.TensorProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.TensorProto) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 8; - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - valueCase_ = 9; - value_ = s; - break; - } - case 82: { - org.tensorflow.proto.framework.NameAttrList.Builder subBuilder = null; - if (valueCase_ == 10) { - subBuilder = ((org.tensorflow.proto.framework.NameAttrList) value_).toBuilder(); - } - value_ = - input.readMessage(org.tensorflow.proto.framework.NameAttrList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.NameAttrList) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 10; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.AttrValueProtos.internal_static_tensorflow_AttrValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.AttrValueProtos.internal_static_tensorflow_AttrValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.AttrValue.class, org.tensorflow.proto.framework.AttrValue.Builder.class); - } - - public interface ListValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.AttrValue.ListValue) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * "list(string)"
-     * 
- * - * repeated bytes s = 2; - */ - java.util.List getSList(); - /** - *
-     * "list(string)"
-     * 
- * - * repeated bytes s = 2; - */ - int getSCount(); - /** - *
-     * "list(string)"
-     * 
- * - * repeated bytes s = 2; - */ - com.google.protobuf.ByteString getS(int index); - - /** - *
-     * "list(int)"
-     * 
- * - * repeated int64 i = 3 [packed = true]; - */ - java.util.List getIList(); - /** - *
-     * "list(int)"
-     * 
- * - * repeated int64 i = 3 [packed = true]; - */ - int getICount(); - /** - *
-     * "list(int)"
-     * 
- * - * repeated int64 i = 3 [packed = true]; - */ - long getI(int index); - - /** - *
-     * "list(float)"
-     * 
- * - * repeated float f = 4 [packed = true]; - */ - java.util.List getFList(); - /** - *
-     * "list(float)"
-     * 
- * - * repeated float f = 4 [packed = true]; - */ - int getFCount(); - /** - *
-     * "list(float)"
-     * 
- * - * repeated float f = 4 [packed = true]; - */ - float getF(int index); - - /** - *
-     * "list(bool)"
-     * 
- * - * repeated bool b = 5 [packed = true]; - */ - java.util.List getBList(); - /** - *
-     * "list(bool)"
-     * 
- * - * repeated bool b = 5 [packed = true]; - */ - int getBCount(); - /** - *
-     * "list(bool)"
-     * 
- * - * repeated bool b = 5 [packed = true]; - */ - boolean getB(int index); - - /** - *
-     * "list(type)"
-     * 
- * - * repeated .tensorflow.DataType type = 6 [packed = true]; - */ - java.util.List getTypeList(); - /** - *
-     * "list(type)"
-     * 
- * - * repeated .tensorflow.DataType type = 6 [packed = true]; - */ - int getTypeCount(); - /** - *
-     * "list(type)"
-     * 
- * - * repeated .tensorflow.DataType type = 6 [packed = true]; - */ - org.tensorflow.proto.framework.DataType getType(int index); - /** - *
-     * "list(type)"
-     * 
- * - * repeated .tensorflow.DataType type = 6 [packed = true]; - */ - java.util.List - getTypeValueList(); - /** - *
-     * "list(type)"
-     * 
- * - * repeated .tensorflow.DataType type = 6 [packed = true]; - */ - int getTypeValue(int index); - - /** - *
-     * "list(shape)"
-     * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - java.util.List - getShapeList(); - /** - *
-     * "list(shape)"
-     * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - org.tensorflow.proto.framework.TensorShapeProto getShape(int index); - /** - *
-     * "list(shape)"
-     * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - int getShapeCount(); - /** - *
-     * "list(shape)"
-     * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - java.util.List - getShapeOrBuilderList(); - /** - *
-     * "list(shape)"
-     * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder( - int index); - - /** - *
-     * "list(tensor)"
-     * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - java.util.List - getTensorList(); - /** - *
-     * "list(tensor)"
-     * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - org.tensorflow.proto.framework.TensorProto getTensor(int index); - /** - *
-     * "list(tensor)"
-     * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - int getTensorCount(); - /** - *
-     * "list(tensor)"
-     * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - java.util.List - getTensorOrBuilderList(); - /** - *
-     * "list(tensor)"
-     * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorOrBuilder( - int index); - - /** - *
-     * "list(attr)"
-     * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - java.util.List - getFuncList(); - /** - *
-     * "list(attr)"
-     * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - org.tensorflow.proto.framework.NameAttrList getFunc(int index); - /** - *
-     * "list(attr)"
-     * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - int getFuncCount(); - /** - *
-     * "list(attr)"
-     * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - java.util.List - getFuncOrBuilderList(); - /** - *
-     * "list(attr)"
-     * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - org.tensorflow.proto.framework.NameAttrListOrBuilder getFuncOrBuilder( - int index); - } - /** - *
-   * LINT.IfChange
-   * 
- * - * Protobuf type {@code tensorflow.AttrValue.ListValue} - */ - public static final class ListValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.AttrValue.ListValue) - ListValueOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListValue.newBuilder() to construct. - private ListValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListValue() { - s_ = java.util.Collections.emptyList(); - i_ = emptyLongList(); - f_ = emptyFloatList(); - b_ = emptyBooleanList(); - type_ = java.util.Collections.emptyList(); - shape_ = java.util.Collections.emptyList(); - tensor_ = java.util.Collections.emptyList(); - func_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListValue(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListValue( - 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 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - s_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - s_.add(input.readBytes()); - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - i_ = newLongList(); - mutable_bitField0_ |= 0x00000002; - } - i_.addLong(input.readInt64()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - i_ = newLongList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - i_.addLong(input.readInt64()); - } - input.popLimit(limit); - break; - } - case 37: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - f_ = newFloatList(); - mutable_bitField0_ |= 0x00000004; - } - f_.addFloat(input.readFloat()); - break; - } - case 34: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { - f_ = newFloatList(); - mutable_bitField0_ |= 0x00000004; - } - while (input.getBytesUntilLimit() > 0) { - f_.addFloat(input.readFloat()); - } - input.popLimit(limit); - break; - } - case 40: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - b_ = newBooleanList(); - mutable_bitField0_ |= 0x00000008; - } - b_.addBoolean(input.readBool()); - break; - } - case 42: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000008) != 0) && input.getBytesUntilLimit() > 0) { - b_ = newBooleanList(); - mutable_bitField0_ |= 0x00000008; - } - while (input.getBytesUntilLimit() > 0) { - b_.addBoolean(input.readBool()); - } - input.popLimit(limit); - break; - } - case 48: { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - type_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - type_.add(rawValue); - break; - } - case 50: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - type_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - type_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - shape_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - shape_.add( - input.readMessage(org.tensorflow.proto.framework.TensorShapeProto.parser(), extensionRegistry)); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - tensor_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - tensor_.add( - input.readMessage(org.tensorflow.proto.framework.TensorProto.parser(), extensionRegistry)); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000080) != 0)) { - func_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; - } - func_.add( - input.readMessage(org.tensorflow.proto.framework.NameAttrList.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)) { - s_ = java.util.Collections.unmodifiableList(s_); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - i_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - f_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - b_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - type_ = java.util.Collections.unmodifiableList(type_); - } - if (((mutable_bitField0_ & 0x00000020) != 0)) { - shape_ = java.util.Collections.unmodifiableList(shape_); - } - if (((mutable_bitField0_ & 0x00000040) != 0)) { - tensor_ = java.util.Collections.unmodifiableList(tensor_); - } - if (((mutable_bitField0_ & 0x00000080) != 0)) { - func_ = java.util.Collections.unmodifiableList(func_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.AttrValueProtos.internal_static_tensorflow_AttrValue_ListValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.AttrValueProtos.internal_static_tensorflow_AttrValue_ListValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.AttrValue.ListValue.class, org.tensorflow.proto.framework.AttrValue.ListValue.Builder.class); - } - - public static final int S_FIELD_NUMBER = 2; - private java.util.List s_; - /** - *
-     * "list(string)"
-     * 
- * - * repeated bytes s = 2; - */ - public java.util.List - getSList() { - return s_; - } - /** - *
-     * "list(string)"
-     * 
- * - * repeated bytes s = 2; - */ - public int getSCount() { - return s_.size(); - } - /** - *
-     * "list(string)"
-     * 
- * - * repeated bytes s = 2; - */ - public com.google.protobuf.ByteString getS(int index) { - return s_.get(index); - } - - public static final int I_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.LongList i_; - /** - *
-     * "list(int)"
-     * 
- * - * repeated int64 i = 3 [packed = true]; - */ - public java.util.List - getIList() { - return i_; - } - /** - *
-     * "list(int)"
-     * 
- * - * repeated int64 i = 3 [packed = true]; - */ - public int getICount() { - return i_.size(); - } - /** - *
-     * "list(int)"
-     * 
- * - * repeated int64 i = 3 [packed = true]; - */ - public long getI(int index) { - return i_.getLong(index); - } - private int iMemoizedSerializedSize = -1; - - public static final int F_FIELD_NUMBER = 4; - private com.google.protobuf.Internal.FloatList f_; - /** - *
-     * "list(float)"
-     * 
- * - * repeated float f = 4 [packed = true]; - */ - public java.util.List - getFList() { - return f_; - } - /** - *
-     * "list(float)"
-     * 
- * - * repeated float f = 4 [packed = true]; - */ - public int getFCount() { - return f_.size(); - } - /** - *
-     * "list(float)"
-     * 
- * - * repeated float f = 4 [packed = true]; - */ - public float getF(int index) { - return f_.getFloat(index); - } - private int fMemoizedSerializedSize = -1; - - public static final int B_FIELD_NUMBER = 5; - private com.google.protobuf.Internal.BooleanList b_; - /** - *
-     * "list(bool)"
-     * 
- * - * repeated bool b = 5 [packed = true]; - */ - public java.util.List - getBList() { - return b_; - } - /** - *
-     * "list(bool)"
-     * 
- * - * repeated bool b = 5 [packed = true]; - */ - public int getBCount() { - return b_.size(); - } - /** - *
-     * "list(bool)"
-     * 
- * - * repeated bool b = 5 [packed = true]; - */ - public boolean getB(int index) { - return b_.getBoolean(index); - } - private int bMemoizedSerializedSize = -1; - - public static final int TYPE_FIELD_NUMBER = 6; - private java.util.List type_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, org.tensorflow.proto.framework.DataType> type_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, org.tensorflow.proto.framework.DataType>() { - public org.tensorflow.proto.framework.DataType convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(from); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - }; - /** - *
-     * "list(type)"
-     * 
- * - * repeated .tensorflow.DataType type = 6 [packed = true]; - */ - public java.util.List getTypeList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, org.tensorflow.proto.framework.DataType>(type_, type_converter_); - } - /** - *
-     * "list(type)"
-     * 
- * - * repeated .tensorflow.DataType type = 6 [packed = true]; - */ - public int getTypeCount() { - return type_.size(); - } - /** - *
-     * "list(type)"
-     * 
- * - * repeated .tensorflow.DataType type = 6 [packed = true]; - */ - public org.tensorflow.proto.framework.DataType getType(int index) { - return type_converter_.convert(type_.get(index)); - } - /** - *
-     * "list(type)"
-     * 
- * - * repeated .tensorflow.DataType type = 6 [packed = true]; - */ - public java.util.List - getTypeValueList() { - return type_; - } - /** - *
-     * "list(type)"
-     * 
- * - * repeated .tensorflow.DataType type = 6 [packed = true]; - */ - public int getTypeValue(int index) { - return type_.get(index); - } - private int typeMemoizedSerializedSize; - - public static final int SHAPE_FIELD_NUMBER = 7; - private java.util.List shape_; - /** - *
-     * "list(shape)"
-     * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public java.util.List getShapeList() { - return shape_; - } - /** - *
-     * "list(shape)"
-     * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public java.util.List - getShapeOrBuilderList() { - return shape_; - } - /** - *
-     * "list(shape)"
-     * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public int getShapeCount() { - return shape_.size(); - } - /** - *
-     * "list(shape)"
-     * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public org.tensorflow.proto.framework.TensorShapeProto getShape(int index) { - return shape_.get(index); - } - /** - *
-     * "list(shape)"
-     * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder( - int index) { - return shape_.get(index); - } - - public static final int TENSOR_FIELD_NUMBER = 8; - private java.util.List tensor_; - /** - *
-     * "list(tensor)"
-     * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public java.util.List getTensorList() { - return tensor_; - } - /** - *
-     * "list(tensor)"
-     * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public java.util.List - getTensorOrBuilderList() { - return tensor_; - } - /** - *
-     * "list(tensor)"
-     * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public int getTensorCount() { - return tensor_.size(); - } - /** - *
-     * "list(tensor)"
-     * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public org.tensorflow.proto.framework.TensorProto getTensor(int index) { - return tensor_.get(index); - } - /** - *
-     * "list(tensor)"
-     * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorOrBuilder( - int index) { - return tensor_.get(index); - } - - public static final int FUNC_FIELD_NUMBER = 9; - private java.util.List func_; - /** - *
-     * "list(attr)"
-     * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public java.util.List getFuncList() { - return func_; - } - /** - *
-     * "list(attr)"
-     * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public java.util.List - getFuncOrBuilderList() { - return func_; - } - /** - *
-     * "list(attr)"
-     * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public int getFuncCount() { - return func_.size(); - } - /** - *
-     * "list(attr)"
-     * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public org.tensorflow.proto.framework.NameAttrList getFunc(int index) { - return func_.get(index); - } - /** - *
-     * "list(attr)"
-     * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public org.tensorflow.proto.framework.NameAttrListOrBuilder getFuncOrBuilder( - int index) { - return func_.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 { - getSerializedSize(); - for (int i = 0; i < s_.size(); i++) { - output.writeBytes(2, s_.get(i)); - } - if (getIList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(iMemoizedSerializedSize); - } - for (int i = 0; i < i_.size(); i++) { - output.writeInt64NoTag(i_.getLong(i)); - } - if (getFList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(fMemoizedSerializedSize); - } - for (int i = 0; i < f_.size(); i++) { - output.writeFloatNoTag(f_.getFloat(i)); - } - if (getBList().size() > 0) { - output.writeUInt32NoTag(42); - output.writeUInt32NoTag(bMemoizedSerializedSize); - } - for (int i = 0; i < b_.size(); i++) { - output.writeBoolNoTag(b_.getBoolean(i)); - } - if (getTypeList().size() > 0) { - output.writeUInt32NoTag(50); - output.writeUInt32NoTag(typeMemoizedSerializedSize); - } - for (int i = 0; i < type_.size(); i++) { - output.writeEnumNoTag(type_.get(i)); - } - for (int i = 0; i < shape_.size(); i++) { - output.writeMessage(7, shape_.get(i)); - } - for (int i = 0; i < tensor_.size(); i++) { - output.writeMessage(8, tensor_.get(i)); - } - for (int i = 0; i < func_.size(); i++) { - output.writeMessage(9, func_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < s_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(s_.get(i)); - } - size += dataSize; - size += 1 * getSList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < i_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(i_.getLong(i)); - } - size += dataSize; - if (!getIList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - iMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - dataSize = 4 * getFList().size(); - size += dataSize; - if (!getFList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - fMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - dataSize = 1 * getBList().size(); - size += dataSize; - if (!getBList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - bMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < type_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(type_.get(i)); - } - size += dataSize; - if (!getTypeList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }typeMemoizedSerializedSize = dataSize; - } - for (int i = 0; i < shape_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, shape_.get(i)); - } - for (int i = 0; i < tensor_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, tensor_.get(i)); - } - for (int i = 0; i < func_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, func_.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 org.tensorflow.proto.framework.AttrValue.ListValue)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.AttrValue.ListValue other = (org.tensorflow.proto.framework.AttrValue.ListValue) obj; - - if (!getSList() - .equals(other.getSList())) return false; - if (!getIList() - .equals(other.getIList())) return false; - if (!getFList() - .equals(other.getFList())) return false; - if (!getBList() - .equals(other.getBList())) return false; - if (!type_.equals(other.type_)) return false; - if (!getShapeList() - .equals(other.getShapeList())) return false; - if (!getTensorList() - .equals(other.getTensorList())) return false; - if (!getFuncList() - .equals(other.getFuncList())) 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 (getSCount() > 0) { - hash = (37 * hash) + S_FIELD_NUMBER; - hash = (53 * hash) + getSList().hashCode(); - } - if (getICount() > 0) { - hash = (37 * hash) + I_FIELD_NUMBER; - hash = (53 * hash) + getIList().hashCode(); - } - if (getFCount() > 0) { - hash = (37 * hash) + F_FIELD_NUMBER; - hash = (53 * hash) + getFList().hashCode(); - } - if (getBCount() > 0) { - hash = (37 * hash) + B_FIELD_NUMBER; - hash = (53 * hash) + getBList().hashCode(); - } - if (getTypeCount() > 0) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_.hashCode(); - } - if (getShapeCount() > 0) { - hash = (37 * hash) + SHAPE_FIELD_NUMBER; - hash = (53 * hash) + getShapeList().hashCode(); - } - if (getTensorCount() > 0) { - hash = (37 * hash) + TENSOR_FIELD_NUMBER; - hash = (53 * hash) + getTensorList().hashCode(); - } - if (getFuncCount() > 0) { - hash = (37 * hash) + FUNC_FIELD_NUMBER; - hash = (53 * hash) + getFuncList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.AttrValue.ListValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.AttrValue.ListValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.AttrValue.ListValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.AttrValue.ListValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.AttrValue.ListValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.AttrValue.ListValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.AttrValue.ListValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.AttrValue.ListValue 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 org.tensorflow.proto.framework.AttrValue.ListValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.AttrValue.ListValue 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 org.tensorflow.proto.framework.AttrValue.ListValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.AttrValue.ListValue 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(org.tensorflow.proto.framework.AttrValue.ListValue 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; - } - /** - *
-     * LINT.IfChange
-     * 
- * - * Protobuf type {@code tensorflow.AttrValue.ListValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.AttrValue.ListValue) - org.tensorflow.proto.framework.AttrValue.ListValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.AttrValueProtos.internal_static_tensorflow_AttrValue_ListValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.AttrValueProtos.internal_static_tensorflow_AttrValue_ListValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.AttrValue.ListValue.class, org.tensorflow.proto.framework.AttrValue.ListValue.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.AttrValue.ListValue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getShapeFieldBuilder(); - getTensorFieldBuilder(); - getFuncFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - s_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - i_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000002); - f_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000004); - b_ = emptyBooleanList(); - bitField0_ = (bitField0_ & ~0x00000008); - type_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - if (shapeBuilder_ == null) { - shape_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - shapeBuilder_.clear(); - } - if (tensorBuilder_ == null) { - tensor_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - tensorBuilder_.clear(); - } - if (funcBuilder_ == null) { - func_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - } else { - funcBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.AttrValueProtos.internal_static_tensorflow_AttrValue_ListValue_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.AttrValue.ListValue getDefaultInstanceForType() { - return org.tensorflow.proto.framework.AttrValue.ListValue.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.AttrValue.ListValue build() { - org.tensorflow.proto.framework.AttrValue.ListValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.AttrValue.ListValue buildPartial() { - org.tensorflow.proto.framework.AttrValue.ListValue result = new org.tensorflow.proto.framework.AttrValue.ListValue(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - s_ = java.util.Collections.unmodifiableList(s_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.s_ = s_; - if (((bitField0_ & 0x00000002) != 0)) { - i_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.i_ = i_; - if (((bitField0_ & 0x00000004) != 0)) { - f_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.f_ = f_; - if (((bitField0_ & 0x00000008) != 0)) { - b_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.b_ = b_; - if (((bitField0_ & 0x00000010) != 0)) { - type_ = java.util.Collections.unmodifiableList(type_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.type_ = type_; - if (shapeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - shape_ = java.util.Collections.unmodifiableList(shape_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.shape_ = shape_; - } else { - result.shape_ = shapeBuilder_.build(); - } - if (tensorBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - tensor_ = java.util.Collections.unmodifiableList(tensor_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.tensor_ = tensor_; - } else { - result.tensor_ = tensorBuilder_.build(); - } - if (funcBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { - func_ = java.util.Collections.unmodifiableList(func_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.func_ = func_; - } else { - result.func_ = funcBuilder_.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 org.tensorflow.proto.framework.AttrValue.ListValue) { - return mergeFrom((org.tensorflow.proto.framework.AttrValue.ListValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.AttrValue.ListValue other) { - if (other == org.tensorflow.proto.framework.AttrValue.ListValue.getDefaultInstance()) return this; - if (!other.s_.isEmpty()) { - if (s_.isEmpty()) { - s_ = other.s_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSIsMutable(); - s_.addAll(other.s_); - } - onChanged(); - } - if (!other.i_.isEmpty()) { - if (i_.isEmpty()) { - i_ = other.i_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureIIsMutable(); - i_.addAll(other.i_); - } - onChanged(); - } - if (!other.f_.isEmpty()) { - if (f_.isEmpty()) { - f_ = other.f_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureFIsMutable(); - f_.addAll(other.f_); - } - onChanged(); - } - if (!other.b_.isEmpty()) { - if (b_.isEmpty()) { - b_ = other.b_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureBIsMutable(); - b_.addAll(other.b_); - } - onChanged(); - } - if (!other.type_.isEmpty()) { - if (type_.isEmpty()) { - type_ = other.type_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureTypeIsMutable(); - type_.addAll(other.type_); - } - onChanged(); - } - if (shapeBuilder_ == null) { - if (!other.shape_.isEmpty()) { - if (shape_.isEmpty()) { - shape_ = other.shape_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureShapeIsMutable(); - shape_.addAll(other.shape_); - } - onChanged(); - } - } else { - if (!other.shape_.isEmpty()) { - if (shapeBuilder_.isEmpty()) { - shapeBuilder_.dispose(); - shapeBuilder_ = null; - shape_ = other.shape_; - bitField0_ = (bitField0_ & ~0x00000020); - shapeBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getShapeFieldBuilder() : null; - } else { - shapeBuilder_.addAllMessages(other.shape_); - } - } - } - if (tensorBuilder_ == null) { - if (!other.tensor_.isEmpty()) { - if (tensor_.isEmpty()) { - tensor_ = other.tensor_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureTensorIsMutable(); - tensor_.addAll(other.tensor_); - } - onChanged(); - } - } else { - if (!other.tensor_.isEmpty()) { - if (tensorBuilder_.isEmpty()) { - tensorBuilder_.dispose(); - tensorBuilder_ = null; - tensor_ = other.tensor_; - bitField0_ = (bitField0_ & ~0x00000040); - tensorBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTensorFieldBuilder() : null; - } else { - tensorBuilder_.addAllMessages(other.tensor_); - } - } - } - if (funcBuilder_ == null) { - if (!other.func_.isEmpty()) { - if (func_.isEmpty()) { - func_ = other.func_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureFuncIsMutable(); - func_.addAll(other.func_); - } - onChanged(); - } - } else { - if (!other.func_.isEmpty()) { - if (funcBuilder_.isEmpty()) { - funcBuilder_.dispose(); - funcBuilder_ = null; - func_ = other.func_; - bitField0_ = (bitField0_ & ~0x00000080); - funcBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFuncFieldBuilder() : null; - } else { - funcBuilder_.addAllMessages(other.func_); - } - } - } - 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 { - org.tensorflow.proto.framework.AttrValue.ListValue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.AttrValue.ListValue) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List s_ = java.util.Collections.emptyList(); - private void ensureSIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - s_ = new java.util.ArrayList(s_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * "list(string)"
-       * 
- * - * repeated bytes s = 2; - */ - public java.util.List - getSList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(s_) : s_; - } - /** - *
-       * "list(string)"
-       * 
- * - * repeated bytes s = 2; - */ - public int getSCount() { - return s_.size(); - } - /** - *
-       * "list(string)"
-       * 
- * - * repeated bytes s = 2; - */ - public com.google.protobuf.ByteString getS(int index) { - return s_.get(index); - } - /** - *
-       * "list(string)"
-       * 
- * - * repeated bytes s = 2; - */ - public Builder setS( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSIsMutable(); - s_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * "list(string)"
-       * 
- * - * repeated bytes s = 2; - */ - public Builder addS(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSIsMutable(); - s_.add(value); - onChanged(); - return this; - } - /** - *
-       * "list(string)"
-       * 
- * - * repeated bytes s = 2; - */ - public Builder addAllS( - java.lang.Iterable values) { - ensureSIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, s_); - onChanged(); - return this; - } - /** - *
-       * "list(string)"
-       * 
- * - * repeated bytes s = 2; - */ - public Builder clearS() { - s_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList i_ = emptyLongList(); - private void ensureIIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - i_ = mutableCopy(i_); - bitField0_ |= 0x00000002; - } - } - /** - *
-       * "list(int)"
-       * 
- * - * repeated int64 i = 3 [packed = true]; - */ - public java.util.List - getIList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(i_) : i_; - } - /** - *
-       * "list(int)"
-       * 
- * - * repeated int64 i = 3 [packed = true]; - */ - public int getICount() { - return i_.size(); - } - /** - *
-       * "list(int)"
-       * 
- * - * repeated int64 i = 3 [packed = true]; - */ - public long getI(int index) { - return i_.getLong(index); - } - /** - *
-       * "list(int)"
-       * 
- * - * repeated int64 i = 3 [packed = true]; - */ - public Builder setI( - int index, long value) { - ensureIIsMutable(); - i_.setLong(index, value); - onChanged(); - return this; - } - /** - *
-       * "list(int)"
-       * 
- * - * repeated int64 i = 3 [packed = true]; - */ - public Builder addI(long value) { - ensureIIsMutable(); - i_.addLong(value); - onChanged(); - return this; - } - /** - *
-       * "list(int)"
-       * 
- * - * repeated int64 i = 3 [packed = true]; - */ - public Builder addAllI( - java.lang.Iterable values) { - ensureIIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, i_); - onChanged(); - return this; - } - /** - *
-       * "list(int)"
-       * 
- * - * repeated int64 i = 3 [packed = true]; - */ - public Builder clearI() { - i_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.FloatList f_ = emptyFloatList(); - private void ensureFIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - f_ = mutableCopy(f_); - bitField0_ |= 0x00000004; - } - } - /** - *
-       * "list(float)"
-       * 
- * - * repeated float f = 4 [packed = true]; - */ - public java.util.List - getFList() { - return ((bitField0_ & 0x00000004) != 0) ? - java.util.Collections.unmodifiableList(f_) : f_; - } - /** - *
-       * "list(float)"
-       * 
- * - * repeated float f = 4 [packed = true]; - */ - public int getFCount() { - return f_.size(); - } - /** - *
-       * "list(float)"
-       * 
- * - * repeated float f = 4 [packed = true]; - */ - public float getF(int index) { - return f_.getFloat(index); - } - /** - *
-       * "list(float)"
-       * 
- * - * repeated float f = 4 [packed = true]; - */ - public Builder setF( - int index, float value) { - ensureFIsMutable(); - f_.setFloat(index, value); - onChanged(); - return this; - } - /** - *
-       * "list(float)"
-       * 
- * - * repeated float f = 4 [packed = true]; - */ - public Builder addF(float value) { - ensureFIsMutable(); - f_.addFloat(value); - onChanged(); - return this; - } - /** - *
-       * "list(float)"
-       * 
- * - * repeated float f = 4 [packed = true]; - */ - public Builder addAllF( - java.lang.Iterable values) { - ensureFIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, f_); - onChanged(); - return this; - } - /** - *
-       * "list(float)"
-       * 
- * - * repeated float f = 4 [packed = true]; - */ - public Builder clearF() { - f_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.BooleanList b_ = emptyBooleanList(); - private void ensureBIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - b_ = mutableCopy(b_); - bitField0_ |= 0x00000008; - } - } - /** - *
-       * "list(bool)"
-       * 
- * - * repeated bool b = 5 [packed = true]; - */ - public java.util.List - getBList() { - return ((bitField0_ & 0x00000008) != 0) ? - java.util.Collections.unmodifiableList(b_) : b_; - } - /** - *
-       * "list(bool)"
-       * 
- * - * repeated bool b = 5 [packed = true]; - */ - public int getBCount() { - return b_.size(); - } - /** - *
-       * "list(bool)"
-       * 
- * - * repeated bool b = 5 [packed = true]; - */ - public boolean getB(int index) { - return b_.getBoolean(index); - } - /** - *
-       * "list(bool)"
-       * 
- * - * repeated bool b = 5 [packed = true]; - */ - public Builder setB( - int index, boolean value) { - ensureBIsMutable(); - b_.setBoolean(index, value); - onChanged(); - return this; - } - /** - *
-       * "list(bool)"
-       * 
- * - * repeated bool b = 5 [packed = true]; - */ - public Builder addB(boolean value) { - ensureBIsMutable(); - b_.addBoolean(value); - onChanged(); - return this; - } - /** - *
-       * "list(bool)"
-       * 
- * - * repeated bool b = 5 [packed = true]; - */ - public Builder addAllB( - java.lang.Iterable values) { - ensureBIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, b_); - onChanged(); - return this; - } - /** - *
-       * "list(bool)"
-       * 
- * - * repeated bool b = 5 [packed = true]; - */ - public Builder clearB() { - b_ = emptyBooleanList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - private java.util.List type_ = - java.util.Collections.emptyList(); - private void ensureTypeIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - type_ = new java.util.ArrayList(type_); - bitField0_ |= 0x00000010; - } - } - /** - *
-       * "list(type)"
-       * 
- * - * repeated .tensorflow.DataType type = 6 [packed = true]; - */ - public java.util.List getTypeList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, org.tensorflow.proto.framework.DataType>(type_, type_converter_); - } - /** - *
-       * "list(type)"
-       * 
- * - * repeated .tensorflow.DataType type = 6 [packed = true]; - */ - public int getTypeCount() { - return type_.size(); - } - /** - *
-       * "list(type)"
-       * 
- * - * repeated .tensorflow.DataType type = 6 [packed = true]; - */ - public org.tensorflow.proto.framework.DataType getType(int index) { - return type_converter_.convert(type_.get(index)); - } - /** - *
-       * "list(type)"
-       * 
- * - * repeated .tensorflow.DataType type = 6 [packed = true]; - */ - public Builder setType( - int index, org.tensorflow.proto.framework.DataType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTypeIsMutable(); - type_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - *
-       * "list(type)"
-       * 
- * - * repeated .tensorflow.DataType type = 6 [packed = true]; - */ - public Builder addType(org.tensorflow.proto.framework.DataType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTypeIsMutable(); - type_.add(value.getNumber()); - onChanged(); - return this; - } - /** - *
-       * "list(type)"
-       * 
- * - * repeated .tensorflow.DataType type = 6 [packed = true]; - */ - public Builder addAllType( - java.lang.Iterable values) { - ensureTypeIsMutable(); - for (org.tensorflow.proto.framework.DataType value : values) { - type_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - *
-       * "list(type)"
-       * 
- * - * repeated .tensorflow.DataType type = 6 [packed = true]; - */ - public Builder clearType() { - type_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - *
-       * "list(type)"
-       * 
- * - * repeated .tensorflow.DataType type = 6 [packed = true]; - */ - public java.util.List - getTypeValueList() { - return java.util.Collections.unmodifiableList(type_); - } - /** - *
-       * "list(type)"
-       * 
- * - * repeated .tensorflow.DataType type = 6 [packed = true]; - */ - public int getTypeValue(int index) { - return type_.get(index); - } - /** - *
-       * "list(type)"
-       * 
- * - * repeated .tensorflow.DataType type = 6 [packed = true]; - */ - public Builder setTypeValue( - int index, int value) { - ensureTypeIsMutable(); - type_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * "list(type)"
-       * 
- * - * repeated .tensorflow.DataType type = 6 [packed = true]; - */ - public Builder addTypeValue(int value) { - ensureTypeIsMutable(); - type_.add(value); - onChanged(); - return this; - } - /** - *
-       * "list(type)"
-       * 
- * - * repeated .tensorflow.DataType type = 6 [packed = true]; - */ - public Builder addAllTypeValue( - java.lang.Iterable values) { - ensureTypeIsMutable(); - for (int value : values) { - type_.add(value); - } - onChanged(); - return this; - } - - private java.util.List shape_ = - java.util.Collections.emptyList(); - private void ensureShapeIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - shape_ = new java.util.ArrayList(shape_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> shapeBuilder_; - - /** - *
-       * "list(shape)"
-       * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public java.util.List getShapeList() { - if (shapeBuilder_ == null) { - return java.util.Collections.unmodifiableList(shape_); - } else { - return shapeBuilder_.getMessageList(); - } - } - /** - *
-       * "list(shape)"
-       * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public int getShapeCount() { - if (shapeBuilder_ == null) { - return shape_.size(); - } else { - return shapeBuilder_.getCount(); - } - } - /** - *
-       * "list(shape)"
-       * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public org.tensorflow.proto.framework.TensorShapeProto getShape(int index) { - if (shapeBuilder_ == null) { - return shape_.get(index); - } else { - return shapeBuilder_.getMessage(index); - } - } - /** - *
-       * "list(shape)"
-       * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public Builder setShape( - int index, org.tensorflow.proto.framework.TensorShapeProto value) { - if (shapeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureShapeIsMutable(); - shape_.set(index, value); - onChanged(); - } else { - shapeBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * "list(shape)"
-       * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public Builder setShape( - int index, org.tensorflow.proto.framework.TensorShapeProto.Builder builderForValue) { - if (shapeBuilder_ == null) { - ensureShapeIsMutable(); - shape_.set(index, builderForValue.build()); - onChanged(); - } else { - shapeBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * "list(shape)"
-       * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public Builder addShape(org.tensorflow.proto.framework.TensorShapeProto value) { - if (shapeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureShapeIsMutable(); - shape_.add(value); - onChanged(); - } else { - shapeBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * "list(shape)"
-       * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public Builder addShape( - int index, org.tensorflow.proto.framework.TensorShapeProto value) { - if (shapeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureShapeIsMutable(); - shape_.add(index, value); - onChanged(); - } else { - shapeBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * "list(shape)"
-       * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public Builder addShape( - org.tensorflow.proto.framework.TensorShapeProto.Builder builderForValue) { - if (shapeBuilder_ == null) { - ensureShapeIsMutable(); - shape_.add(builderForValue.build()); - onChanged(); - } else { - shapeBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * "list(shape)"
-       * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public Builder addShape( - int index, org.tensorflow.proto.framework.TensorShapeProto.Builder builderForValue) { - if (shapeBuilder_ == null) { - ensureShapeIsMutable(); - shape_.add(index, builderForValue.build()); - onChanged(); - } else { - shapeBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * "list(shape)"
-       * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public Builder addAllShape( - java.lang.Iterable values) { - if (shapeBuilder_ == null) { - ensureShapeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, shape_); - onChanged(); - } else { - shapeBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * "list(shape)"
-       * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public Builder clearShape() { - if (shapeBuilder_ == null) { - shape_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - shapeBuilder_.clear(); - } - return this; - } - /** - *
-       * "list(shape)"
-       * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public Builder removeShape(int index) { - if (shapeBuilder_ == null) { - ensureShapeIsMutable(); - shape_.remove(index); - onChanged(); - } else { - shapeBuilder_.remove(index); - } - return this; - } - /** - *
-       * "list(shape)"
-       * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public org.tensorflow.proto.framework.TensorShapeProto.Builder getShapeBuilder( - int index) { - return getShapeFieldBuilder().getBuilder(index); - } - /** - *
-       * "list(shape)"
-       * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder( - int index) { - if (shapeBuilder_ == null) { - return shape_.get(index); } else { - return shapeBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * "list(shape)"
-       * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public java.util.List - getShapeOrBuilderList() { - if (shapeBuilder_ != null) { - return shapeBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(shape_); - } - } - /** - *
-       * "list(shape)"
-       * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public org.tensorflow.proto.framework.TensorShapeProto.Builder addShapeBuilder() { - return getShapeFieldBuilder().addBuilder( - org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance()); - } - /** - *
-       * "list(shape)"
-       * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public org.tensorflow.proto.framework.TensorShapeProto.Builder addShapeBuilder( - int index) { - return getShapeFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance()); - } - /** - *
-       * "list(shape)"
-       * 
- * - * repeated .tensorflow.TensorShapeProto shape = 7; - */ - public java.util.List - getShapeBuilderList() { - return getShapeFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> - getShapeFieldBuilder() { - if (shapeBuilder_ == null) { - shapeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder>( - shape_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - shape_ = null; - } - return shapeBuilder_; - } - - private java.util.List tensor_ = - java.util.Collections.emptyList(); - private void ensureTensorIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - tensor_ = new java.util.ArrayList(tensor_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder> tensorBuilder_; - - /** - *
-       * "list(tensor)"
-       * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public java.util.List getTensorList() { - if (tensorBuilder_ == null) { - return java.util.Collections.unmodifiableList(tensor_); - } else { - return tensorBuilder_.getMessageList(); - } - } - /** - *
-       * "list(tensor)"
-       * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public int getTensorCount() { - if (tensorBuilder_ == null) { - return tensor_.size(); - } else { - return tensorBuilder_.getCount(); - } - } - /** - *
-       * "list(tensor)"
-       * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public org.tensorflow.proto.framework.TensorProto getTensor(int index) { - if (tensorBuilder_ == null) { - return tensor_.get(index); - } else { - return tensorBuilder_.getMessage(index); - } - } - /** - *
-       * "list(tensor)"
-       * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public Builder setTensor( - int index, org.tensorflow.proto.framework.TensorProto value) { - if (tensorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTensorIsMutable(); - tensor_.set(index, value); - onChanged(); - } else { - tensorBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * "list(tensor)"
-       * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public Builder setTensor( - int index, org.tensorflow.proto.framework.TensorProto.Builder builderForValue) { - if (tensorBuilder_ == null) { - ensureTensorIsMutable(); - tensor_.set(index, builderForValue.build()); - onChanged(); - } else { - tensorBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * "list(tensor)"
-       * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public Builder addTensor(org.tensorflow.proto.framework.TensorProto value) { - if (tensorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTensorIsMutable(); - tensor_.add(value); - onChanged(); - } else { - tensorBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * "list(tensor)"
-       * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public Builder addTensor( - int index, org.tensorflow.proto.framework.TensorProto value) { - if (tensorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTensorIsMutable(); - tensor_.add(index, value); - onChanged(); - } else { - tensorBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * "list(tensor)"
-       * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public Builder addTensor( - org.tensorflow.proto.framework.TensorProto.Builder builderForValue) { - if (tensorBuilder_ == null) { - ensureTensorIsMutable(); - tensor_.add(builderForValue.build()); - onChanged(); - } else { - tensorBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * "list(tensor)"
-       * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public Builder addTensor( - int index, org.tensorflow.proto.framework.TensorProto.Builder builderForValue) { - if (tensorBuilder_ == null) { - ensureTensorIsMutable(); - tensor_.add(index, builderForValue.build()); - onChanged(); - } else { - tensorBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * "list(tensor)"
-       * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public Builder addAllTensor( - java.lang.Iterable values) { - if (tensorBuilder_ == null) { - ensureTensorIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tensor_); - onChanged(); - } else { - tensorBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * "list(tensor)"
-       * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public Builder clearTensor() { - if (tensorBuilder_ == null) { - tensor_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - tensorBuilder_.clear(); - } - return this; - } - /** - *
-       * "list(tensor)"
-       * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public Builder removeTensor(int index) { - if (tensorBuilder_ == null) { - ensureTensorIsMutable(); - tensor_.remove(index); - onChanged(); - } else { - tensorBuilder_.remove(index); - } - return this; - } - /** - *
-       * "list(tensor)"
-       * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public org.tensorflow.proto.framework.TensorProto.Builder getTensorBuilder( - int index) { - return getTensorFieldBuilder().getBuilder(index); - } - /** - *
-       * "list(tensor)"
-       * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorOrBuilder( - int index) { - if (tensorBuilder_ == null) { - return tensor_.get(index); } else { - return tensorBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * "list(tensor)"
-       * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public java.util.List - getTensorOrBuilderList() { - if (tensorBuilder_ != null) { - return tensorBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tensor_); - } - } - /** - *
-       * "list(tensor)"
-       * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public org.tensorflow.proto.framework.TensorProto.Builder addTensorBuilder() { - return getTensorFieldBuilder().addBuilder( - org.tensorflow.proto.framework.TensorProto.getDefaultInstance()); - } - /** - *
-       * "list(tensor)"
-       * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public org.tensorflow.proto.framework.TensorProto.Builder addTensorBuilder( - int index) { - return getTensorFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.TensorProto.getDefaultInstance()); - } - /** - *
-       * "list(tensor)"
-       * 
- * - * repeated .tensorflow.TensorProto tensor = 8; - */ - public java.util.List - getTensorBuilderList() { - return getTensorFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder> - getTensorFieldBuilder() { - if (tensorBuilder_ == null) { - tensorBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder>( - tensor_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - tensor_ = null; - } - return tensorBuilder_; - } - - private java.util.List func_ = - java.util.Collections.emptyList(); - private void ensureFuncIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - func_ = new java.util.ArrayList(func_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.NameAttrList, org.tensorflow.proto.framework.NameAttrList.Builder, org.tensorflow.proto.framework.NameAttrListOrBuilder> funcBuilder_; - - /** - *
-       * "list(attr)"
-       * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public java.util.List getFuncList() { - if (funcBuilder_ == null) { - return java.util.Collections.unmodifiableList(func_); - } else { - return funcBuilder_.getMessageList(); - } - } - /** - *
-       * "list(attr)"
-       * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public int getFuncCount() { - if (funcBuilder_ == null) { - return func_.size(); - } else { - return funcBuilder_.getCount(); - } - } - /** - *
-       * "list(attr)"
-       * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public org.tensorflow.proto.framework.NameAttrList getFunc(int index) { - if (funcBuilder_ == null) { - return func_.get(index); - } else { - return funcBuilder_.getMessage(index); - } - } - /** - *
-       * "list(attr)"
-       * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public Builder setFunc( - int index, org.tensorflow.proto.framework.NameAttrList value) { - if (funcBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFuncIsMutable(); - func_.set(index, value); - onChanged(); - } else { - funcBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * "list(attr)"
-       * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public Builder setFunc( - int index, org.tensorflow.proto.framework.NameAttrList.Builder builderForValue) { - if (funcBuilder_ == null) { - ensureFuncIsMutable(); - func_.set(index, builderForValue.build()); - onChanged(); - } else { - funcBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * "list(attr)"
-       * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public Builder addFunc(org.tensorflow.proto.framework.NameAttrList value) { - if (funcBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFuncIsMutable(); - func_.add(value); - onChanged(); - } else { - funcBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * "list(attr)"
-       * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public Builder addFunc( - int index, org.tensorflow.proto.framework.NameAttrList value) { - if (funcBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFuncIsMutable(); - func_.add(index, value); - onChanged(); - } else { - funcBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * "list(attr)"
-       * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public Builder addFunc( - org.tensorflow.proto.framework.NameAttrList.Builder builderForValue) { - if (funcBuilder_ == null) { - ensureFuncIsMutable(); - func_.add(builderForValue.build()); - onChanged(); - } else { - funcBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * "list(attr)"
-       * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public Builder addFunc( - int index, org.tensorflow.proto.framework.NameAttrList.Builder builderForValue) { - if (funcBuilder_ == null) { - ensureFuncIsMutable(); - func_.add(index, builderForValue.build()); - onChanged(); - } else { - funcBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * "list(attr)"
-       * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public Builder addAllFunc( - java.lang.Iterable values) { - if (funcBuilder_ == null) { - ensureFuncIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, func_); - onChanged(); - } else { - funcBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * "list(attr)"
-       * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public Builder clearFunc() { - if (funcBuilder_ == null) { - func_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - funcBuilder_.clear(); - } - return this; - } - /** - *
-       * "list(attr)"
-       * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public Builder removeFunc(int index) { - if (funcBuilder_ == null) { - ensureFuncIsMutable(); - func_.remove(index); - onChanged(); - } else { - funcBuilder_.remove(index); - } - return this; - } - /** - *
-       * "list(attr)"
-       * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public org.tensorflow.proto.framework.NameAttrList.Builder getFuncBuilder( - int index) { - return getFuncFieldBuilder().getBuilder(index); - } - /** - *
-       * "list(attr)"
-       * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public org.tensorflow.proto.framework.NameAttrListOrBuilder getFuncOrBuilder( - int index) { - if (funcBuilder_ == null) { - return func_.get(index); } else { - return funcBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * "list(attr)"
-       * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public java.util.List - getFuncOrBuilderList() { - if (funcBuilder_ != null) { - return funcBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(func_); - } - } - /** - *
-       * "list(attr)"
-       * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public org.tensorflow.proto.framework.NameAttrList.Builder addFuncBuilder() { - return getFuncFieldBuilder().addBuilder( - org.tensorflow.proto.framework.NameAttrList.getDefaultInstance()); - } - /** - *
-       * "list(attr)"
-       * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public org.tensorflow.proto.framework.NameAttrList.Builder addFuncBuilder( - int index) { - return getFuncFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.NameAttrList.getDefaultInstance()); - } - /** - *
-       * "list(attr)"
-       * 
- * - * repeated .tensorflow.NameAttrList func = 9; - */ - public java.util.List - getFuncBuilderList() { - return getFuncFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.NameAttrList, org.tensorflow.proto.framework.NameAttrList.Builder, org.tensorflow.proto.framework.NameAttrListOrBuilder> - getFuncFieldBuilder() { - if (funcBuilder_ == null) { - funcBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.NameAttrList, org.tensorflow.proto.framework.NameAttrList.Builder, org.tensorflow.proto.framework.NameAttrListOrBuilder>( - func_, - ((bitField0_ & 0x00000080) != 0), - getParentForChildren(), - isClean()); - func_ = null; - } - return funcBuilder_; - } - @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:tensorflow.AttrValue.ListValue) - } - - // @@protoc_insertion_point(class_scope:tensorflow.AttrValue.ListValue) - private static final org.tensorflow.proto.framework.AttrValue.ListValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.AttrValue.ListValue(); - } - - public static org.tensorflow.proto.framework.AttrValue.ListValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListValue(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.AttrValue.ListValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite { - S(2), - I(3), - F(4), - B(5), - TYPE(6), - SHAPE(7), - TENSOR(8), - LIST(1), - FUNC(10), - PLACEHOLDER(9), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 2: return S; - case 3: return I; - case 4: return F; - case 5: return B; - case 6: return TYPE; - case 7: return SHAPE; - case 8: return TENSOR; - case 1: return LIST; - case 10: return FUNC; - case 9: return PLACEHOLDER; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public static final int S_FIELD_NUMBER = 2; - /** - *
-   * "string"
-   * 
- * - * bytes s = 2; - */ - public com.google.protobuf.ByteString getS() { - if (valueCase_ == 2) { - return (com.google.protobuf.ByteString) value_; - } - return com.google.protobuf.ByteString.EMPTY; - } - - public static final int I_FIELD_NUMBER = 3; - /** - *
-   * "int"
-   * 
- * - * int64 i = 3; - */ - public long getI() { - if (valueCase_ == 3) { - return (java.lang.Long) value_; - } - return 0L; - } - - public static final int F_FIELD_NUMBER = 4; - /** - *
-   * "float"
-   * 
- * - * float f = 4; - */ - public float getF() { - if (valueCase_ == 4) { - return (java.lang.Float) value_; - } - return 0F; - } - - public static final int B_FIELD_NUMBER = 5; - /** - *
-   * "bool"
-   * 
- * - * bool b = 5; - */ - public boolean getB() { - if (valueCase_ == 5) { - return (java.lang.Boolean) value_; - } - return false; - } - - public static final int TYPE_FIELD_NUMBER = 6; - /** - *
-   * "type"
-   * 
- * - * .tensorflow.DataType type = 6; - */ - public int getTypeValue() { - if (valueCase_ == 6) { - return (java.lang.Integer) value_; - } - return 0; - } - /** - *
-   * "type"
-   * 
- * - * .tensorflow.DataType type = 6; - */ - public org.tensorflow.proto.framework.DataType getType() { - if (valueCase_ == 6) { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf( - (java.lang.Integer) value_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - return org.tensorflow.proto.framework.DataType.DT_INVALID; - } - - public static final int SHAPE_FIELD_NUMBER = 7; - /** - *
-   * "shape"
-   * 
- * - * .tensorflow.TensorShapeProto shape = 7; - */ - public boolean hasShape() { - return valueCase_ == 7; - } - /** - *
-   * "shape"
-   * 
- * - * .tensorflow.TensorShapeProto shape = 7; - */ - public org.tensorflow.proto.framework.TensorShapeProto getShape() { - if (valueCase_ == 7) { - return (org.tensorflow.proto.framework.TensorShapeProto) value_; - } - return org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance(); - } - /** - *
-   * "shape"
-   * 
- * - * .tensorflow.TensorShapeProto shape = 7; - */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { - if (valueCase_ == 7) { - return (org.tensorflow.proto.framework.TensorShapeProto) value_; - } - return org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance(); - } - - public static final int TENSOR_FIELD_NUMBER = 8; - /** - *
-   * "tensor"
-   * 
- * - * .tensorflow.TensorProto tensor = 8; - */ - public boolean hasTensor() { - return valueCase_ == 8; - } - /** - *
-   * "tensor"
-   * 
- * - * .tensorflow.TensorProto tensor = 8; - */ - public org.tensorflow.proto.framework.TensorProto getTensor() { - if (valueCase_ == 8) { - return (org.tensorflow.proto.framework.TensorProto) value_; - } - return org.tensorflow.proto.framework.TensorProto.getDefaultInstance(); - } - /** - *
-   * "tensor"
-   * 
- * - * .tensorflow.TensorProto tensor = 8; - */ - public org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorOrBuilder() { - if (valueCase_ == 8) { - return (org.tensorflow.proto.framework.TensorProto) value_; - } - return org.tensorflow.proto.framework.TensorProto.getDefaultInstance(); - } - - public static final int LIST_FIELD_NUMBER = 1; - /** - *
-   * any "list(...)"
-   * 
- * - * .tensorflow.AttrValue.ListValue list = 1; - */ - public boolean hasList() { - return valueCase_ == 1; - } - /** - *
-   * any "list(...)"
-   * 
- * - * .tensorflow.AttrValue.ListValue list = 1; - */ - public org.tensorflow.proto.framework.AttrValue.ListValue getList() { - if (valueCase_ == 1) { - return (org.tensorflow.proto.framework.AttrValue.ListValue) value_; - } - return org.tensorflow.proto.framework.AttrValue.ListValue.getDefaultInstance(); - } - /** - *
-   * any "list(...)"
-   * 
- * - * .tensorflow.AttrValue.ListValue list = 1; - */ - public org.tensorflow.proto.framework.AttrValue.ListValueOrBuilder getListOrBuilder() { - if (valueCase_ == 1) { - return (org.tensorflow.proto.framework.AttrValue.ListValue) value_; - } - return org.tensorflow.proto.framework.AttrValue.ListValue.getDefaultInstance(); - } - - public static final int FUNC_FIELD_NUMBER = 10; - /** - *
-   * "func" represents a function. func.name is a function's name or
-   * a primitive op's name. func.attr.first is the name of an attr
-   * defined for that function. func.attr.second is the value for
-   * that attr in the instantiation.
-   * 
- * - * .tensorflow.NameAttrList func = 10; - */ - public boolean hasFunc() { - return valueCase_ == 10; - } - /** - *
-   * "func" represents a function. func.name is a function's name or
-   * a primitive op's name. func.attr.first is the name of an attr
-   * defined for that function. func.attr.second is the value for
-   * that attr in the instantiation.
-   * 
- * - * .tensorflow.NameAttrList func = 10; - */ - public org.tensorflow.proto.framework.NameAttrList getFunc() { - if (valueCase_ == 10) { - return (org.tensorflow.proto.framework.NameAttrList) value_; - } - return org.tensorflow.proto.framework.NameAttrList.getDefaultInstance(); - } - /** - *
-   * "func" represents a function. func.name is a function's name or
-   * a primitive op's name. func.attr.first is the name of an attr
-   * defined for that function. func.attr.second is the value for
-   * that attr in the instantiation.
-   * 
- * - * .tensorflow.NameAttrList func = 10; - */ - public org.tensorflow.proto.framework.NameAttrListOrBuilder getFuncOrBuilder() { - if (valueCase_ == 10) { - return (org.tensorflow.proto.framework.NameAttrList) value_; - } - return org.tensorflow.proto.framework.NameAttrList.getDefaultInstance(); - } - - public static final int PLACEHOLDER_FIELD_NUMBER = 9; - /** - *
-   * This is a placeholder only used in nodes defined inside a
-   * function.  It indicates the attr value will be supplied when
-   * the function is instantiated.  For example, let us suppose a
-   * node "N" in function "FN". "N" has an attr "A" with value
-   * placeholder = "foo". When FN is instantiated with attr "foo"
-   * set to "bar", the instantiated node N's attr A will have been
-   * given the value "bar".
-   * 
- * - * string placeholder = 9; - */ - public java.lang.String getPlaceholder() { - java.lang.Object ref = ""; - if (valueCase_ == 9) { - ref = value_; - } - 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(); - if (valueCase_ == 9) { - value_ = s; - } - return s; - } - } - /** - *
-   * This is a placeholder only used in nodes defined inside a
-   * function.  It indicates the attr value will be supplied when
-   * the function is instantiated.  For example, let us suppose a
-   * node "N" in function "FN". "N" has an attr "A" with value
-   * placeholder = "foo". When FN is instantiated with attr "foo"
-   * set to "bar", the instantiated node N's attr A will have been
-   * given the value "bar".
-   * 
- * - * string placeholder = 9; - */ - public com.google.protobuf.ByteString - getPlaceholderBytes() { - java.lang.Object ref = ""; - if (valueCase_ == 9) { - ref = value_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valueCase_ == 9) { - value_ = 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 (valueCase_ == 1) { - output.writeMessage(1, (org.tensorflow.proto.framework.AttrValue.ListValue) value_); - } - if (valueCase_ == 2) { - output.writeBytes( - 2, (com.google.protobuf.ByteString) value_); - } - if (valueCase_ == 3) { - output.writeInt64( - 3, (long)((java.lang.Long) value_)); - } - if (valueCase_ == 4) { - output.writeFloat( - 4, (float)((java.lang.Float) value_)); - } - if (valueCase_ == 5) { - output.writeBool( - 5, (boolean)((java.lang.Boolean) value_)); - } - if (valueCase_ == 6) { - output.writeEnum(6, ((java.lang.Integer) value_)); - } - if (valueCase_ == 7) { - output.writeMessage(7, (org.tensorflow.proto.framework.TensorShapeProto) value_); - } - if (valueCase_ == 8) { - output.writeMessage(8, (org.tensorflow.proto.framework.TensorProto) value_); - } - if (valueCase_ == 9) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, value_); - } - if (valueCase_ == 10) { - output.writeMessage(10, (org.tensorflow.proto.framework.NameAttrList) value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (org.tensorflow.proto.framework.AttrValue.ListValue) value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 2, (com.google.protobuf.ByteString) value_); - } - if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 3, (long)((java.lang.Long) value_)); - } - if (valueCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize( - 4, (float)((java.lang.Float) value_)); - } - if (valueCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 5, (boolean)((java.lang.Boolean) value_)); - } - if (valueCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, ((java.lang.Integer) value_)); - } - if (valueCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (org.tensorflow.proto.framework.TensorShapeProto) value_); - } - if (valueCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (org.tensorflow.proto.framework.TensorProto) value_); - } - if (valueCase_ == 9) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, value_); - } - if (valueCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (org.tensorflow.proto.framework.NameAttrList) value_); - } - 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 org.tensorflow.proto.framework.AttrValue)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.AttrValue other = (org.tensorflow.proto.framework.AttrValue) obj; - - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 2: - if (!getS() - .equals(other.getS())) return false; - break; - case 3: - if (getI() - != other.getI()) return false; - break; - case 4: - if (java.lang.Float.floatToIntBits(getF()) - != java.lang.Float.floatToIntBits( - other.getF())) return false; - break; - case 5: - if (getB() - != other.getB()) return false; - break; - case 6: - if (getTypeValue() - != other.getTypeValue()) return false; - break; - case 7: - if (!getShape() - .equals(other.getShape())) return false; - break; - case 8: - if (!getTensor() - .equals(other.getTensor())) return false; - break; - case 1: - if (!getList() - .equals(other.getList())) return false; - break; - case 10: - if (!getFunc() - .equals(other.getFunc())) return false; - break; - case 9: - if (!getPlaceholder() - .equals(other.getPlaceholder())) return false; - break; - case 0: - default: - } - 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(); - switch (valueCase_) { - case 2: - hash = (37 * hash) + S_FIELD_NUMBER; - hash = (53 * hash) + getS().hashCode(); - break; - case 3: - hash = (37 * hash) + I_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getI()); - break; - case 4: - hash = (37 * hash) + F_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getF()); - break; - case 5: - hash = (37 * hash) + B_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getB()); - break; - case 6: - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getTypeValue(); - break; - case 7: - hash = (37 * hash) + SHAPE_FIELD_NUMBER; - hash = (53 * hash) + getShape().hashCode(); - break; - case 8: - hash = (37 * hash) + TENSOR_FIELD_NUMBER; - hash = (53 * hash) + getTensor().hashCode(); - break; - case 1: - hash = (37 * hash) + LIST_FIELD_NUMBER; - hash = (53 * hash) + getList().hashCode(); - break; - case 10: - hash = (37 * hash) + FUNC_FIELD_NUMBER; - hash = (53 * hash) + getFunc().hashCode(); - break; - case 9: - hash = (37 * hash) + PLACEHOLDER_FIELD_NUMBER; - hash = (53 * hash) + getPlaceholder().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.AttrValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.AttrValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.AttrValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.AttrValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.AttrValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.AttrValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.AttrValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.AttrValue 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 org.tensorflow.proto.framework.AttrValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.AttrValue 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 org.tensorflow.proto.framework.AttrValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.AttrValue 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(org.tensorflow.proto.framework.AttrValue 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; - } - /** - *
-   * Protocol buffer representing the value for an attr used to configure an Op.
-   * Comment indicates the corresponding attr type.  Only the field matching the
-   * attr type may be filled.
-   * 
- * - * Protobuf type {@code tensorflow.AttrValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.AttrValue) - org.tensorflow.proto.framework.AttrValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.AttrValueProtos.internal_static_tensorflow_AttrValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.AttrValueProtos.internal_static_tensorflow_AttrValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.AttrValue.class, org.tensorflow.proto.framework.AttrValue.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.AttrValue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.AttrValueProtos.internal_static_tensorflow_AttrValue_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.AttrValue getDefaultInstanceForType() { - return org.tensorflow.proto.framework.AttrValue.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.AttrValue build() { - org.tensorflow.proto.framework.AttrValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.AttrValue buildPartial() { - org.tensorflow.proto.framework.AttrValue result = new org.tensorflow.proto.framework.AttrValue(this); - if (valueCase_ == 2) { - result.value_ = value_; - } - if (valueCase_ == 3) { - result.value_ = value_; - } - if (valueCase_ == 4) { - result.value_ = value_; - } - if (valueCase_ == 5) { - result.value_ = value_; - } - if (valueCase_ == 6) { - result.value_ = value_; - } - if (valueCase_ == 7) { - if (shapeBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = shapeBuilder_.build(); - } - } - if (valueCase_ == 8) { - if (tensorBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = tensorBuilder_.build(); - } - } - if (valueCase_ == 1) { - if (listBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = listBuilder_.build(); - } - } - if (valueCase_ == 10) { - if (funcBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = funcBuilder_.build(); - } - } - if (valueCase_ == 9) { - result.value_ = value_; - } - result.valueCase_ = valueCase_; - 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 org.tensorflow.proto.framework.AttrValue) { - return mergeFrom((org.tensorflow.proto.framework.AttrValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.AttrValue other) { - if (other == org.tensorflow.proto.framework.AttrValue.getDefaultInstance()) return this; - switch (other.getValueCase()) { - case S: { - setS(other.getS()); - break; - } - case I: { - setI(other.getI()); - break; - } - case F: { - setF(other.getF()); - break; - } - case B: { - setB(other.getB()); - break; - } - case TYPE: { - setTypeValue(other.getTypeValue()); - break; - } - case SHAPE: { - mergeShape(other.getShape()); - break; - } - case TENSOR: { - mergeTensor(other.getTensor()); - break; - } - case LIST: { - mergeList(other.getList()); - break; - } - case FUNC: { - mergeFunc(other.getFunc()); - break; - } - case PLACEHOLDER: { - valueCase_ = 9; - value_ = other.value_; - onChanged(); - break; - } - case VALUE_NOT_SET: { - break; - } - } - 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 { - org.tensorflow.proto.framework.AttrValue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.AttrValue) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - /** - *
-     * "string"
-     * 
- * - * bytes s = 2; - */ - public com.google.protobuf.ByteString getS() { - if (valueCase_ == 2) { - return (com.google.protobuf.ByteString) value_; - } - return com.google.protobuf.ByteString.EMPTY; - } - /** - *
-     * "string"
-     * 
- * - * bytes s = 2; - */ - public Builder setS(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - valueCase_ = 2; - value_ = value; - onChanged(); - return this; - } - /** - *
-     * "string"
-     * 
- * - * bytes s = 2; - */ - public Builder clearS() { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * "int"
-     * 
- * - * int64 i = 3; - */ - public long getI() { - if (valueCase_ == 3) { - return (java.lang.Long) value_; - } - return 0L; - } - /** - *
-     * "int"
-     * 
- * - * int64 i = 3; - */ - public Builder setI(long value) { - valueCase_ = 3; - value_ = value; - onChanged(); - return this; - } - /** - *
-     * "int"
-     * 
- * - * int64 i = 3; - */ - public Builder clearI() { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * "float"
-     * 
- * - * float f = 4; - */ - public float getF() { - if (valueCase_ == 4) { - return (java.lang.Float) value_; - } - return 0F; - } - /** - *
-     * "float"
-     * 
- * - * float f = 4; - */ - public Builder setF(float value) { - valueCase_ = 4; - value_ = value; - onChanged(); - return this; - } - /** - *
-     * "float"
-     * 
- * - * float f = 4; - */ - public Builder clearF() { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * "bool"
-     * 
- * - * bool b = 5; - */ - public boolean getB() { - if (valueCase_ == 5) { - return (java.lang.Boolean) value_; - } - return false; - } - /** - *
-     * "bool"
-     * 
- * - * bool b = 5; - */ - public Builder setB(boolean value) { - valueCase_ = 5; - value_ = value; - onChanged(); - return this; - } - /** - *
-     * "bool"
-     * 
- * - * bool b = 5; - */ - public Builder clearB() { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * "type"
-     * 
- * - * .tensorflow.DataType type = 6; - */ - public int getTypeValue() { - if (valueCase_ == 6) { - return ((java.lang.Integer) value_).intValue(); - } - return 0; - } - /** - *
-     * "type"
-     * 
- * - * .tensorflow.DataType type = 6; - */ - public Builder setTypeValue(int value) { - valueCase_ = 6; - value_ = value; - onChanged(); - return this; - } - /** - *
-     * "type"
-     * 
- * - * .tensorflow.DataType type = 6; - */ - public org.tensorflow.proto.framework.DataType getType() { - if (valueCase_ == 6) { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf( - (java.lang.Integer) value_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - return org.tensorflow.proto.framework.DataType.DT_INVALID; - } - /** - *
-     * "type"
-     * 
- * - * .tensorflow.DataType type = 6; - */ - public Builder setType(org.tensorflow.proto.framework.DataType value) { - if (value == null) { - throw new NullPointerException(); - } - valueCase_ = 6; - value_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * "type"
-     * 
- * - * .tensorflow.DataType type = 6; - */ - public Builder clearType() { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> shapeBuilder_; - /** - *
-     * "shape"
-     * 
- * - * .tensorflow.TensorShapeProto shape = 7; - */ - public boolean hasShape() { - return valueCase_ == 7; - } - /** - *
-     * "shape"
-     * 
- * - * .tensorflow.TensorShapeProto shape = 7; - */ - public org.tensorflow.proto.framework.TensorShapeProto getShape() { - if (shapeBuilder_ == null) { - if (valueCase_ == 7) { - return (org.tensorflow.proto.framework.TensorShapeProto) value_; - } - return org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance(); - } else { - if (valueCase_ == 7) { - return shapeBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance(); - } - } - /** - *
-     * "shape"
-     * 
- * - * .tensorflow.TensorShapeProto shape = 7; - */ - public Builder setShape(org.tensorflow.proto.framework.TensorShapeProto value) { - if (shapeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - shapeBuilder_.setMessage(value); - } - valueCase_ = 7; - return this; - } - /** - *
-     * "shape"
-     * 
- * - * .tensorflow.TensorShapeProto shape = 7; - */ - public Builder setShape( - org.tensorflow.proto.framework.TensorShapeProto.Builder builderForValue) { - if (shapeBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - shapeBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 7; - return this; - } - /** - *
-     * "shape"
-     * 
- * - * .tensorflow.TensorShapeProto shape = 7; - */ - public Builder mergeShape(org.tensorflow.proto.framework.TensorShapeProto value) { - if (shapeBuilder_ == null) { - if (valueCase_ == 7 && - value_ != org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance()) { - value_ = org.tensorflow.proto.framework.TensorShapeProto.newBuilder((org.tensorflow.proto.framework.TensorShapeProto) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 7) { - shapeBuilder_.mergeFrom(value); - } - shapeBuilder_.setMessage(value); - } - valueCase_ = 7; - return this; - } - /** - *
-     * "shape"
-     * 
- * - * .tensorflow.TensorShapeProto shape = 7; - */ - public Builder clearShape() { - if (shapeBuilder_ == null) { - if (valueCase_ == 7) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 7) { - valueCase_ = 0; - value_ = null; - } - shapeBuilder_.clear(); - } - return this; - } - /** - *
-     * "shape"
-     * 
- * - * .tensorflow.TensorShapeProto shape = 7; - */ - public org.tensorflow.proto.framework.TensorShapeProto.Builder getShapeBuilder() { - return getShapeFieldBuilder().getBuilder(); - } - /** - *
-     * "shape"
-     * 
- * - * .tensorflow.TensorShapeProto shape = 7; - */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { - if ((valueCase_ == 7) && (shapeBuilder_ != null)) { - return shapeBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 7) { - return (org.tensorflow.proto.framework.TensorShapeProto) value_; - } - return org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance(); - } - } - /** - *
-     * "shape"
-     * 
- * - * .tensorflow.TensorShapeProto shape = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> - getShapeFieldBuilder() { - if (shapeBuilder_ == null) { - if (!(valueCase_ == 7)) { - value_ = org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance(); - } - shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder>( - (org.tensorflow.proto.framework.TensorShapeProto) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 7; - onChanged();; - return shapeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder> tensorBuilder_; - /** - *
-     * "tensor"
-     * 
- * - * .tensorflow.TensorProto tensor = 8; - */ - public boolean hasTensor() { - return valueCase_ == 8; - } - /** - *
-     * "tensor"
-     * 
- * - * .tensorflow.TensorProto tensor = 8; - */ - public org.tensorflow.proto.framework.TensorProto getTensor() { - if (tensorBuilder_ == null) { - if (valueCase_ == 8) { - return (org.tensorflow.proto.framework.TensorProto) value_; - } - return org.tensorflow.proto.framework.TensorProto.getDefaultInstance(); - } else { - if (valueCase_ == 8) { - return tensorBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.TensorProto.getDefaultInstance(); - } - } - /** - *
-     * "tensor"
-     * 
- * - * .tensorflow.TensorProto tensor = 8; - */ - public Builder setTensor(org.tensorflow.proto.framework.TensorProto value) { - if (tensorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - tensorBuilder_.setMessage(value); - } - valueCase_ = 8; - return this; - } - /** - *
-     * "tensor"
-     * 
- * - * .tensorflow.TensorProto tensor = 8; - */ - public Builder setTensor( - org.tensorflow.proto.framework.TensorProto.Builder builderForValue) { - if (tensorBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - tensorBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 8; - return this; - } - /** - *
-     * "tensor"
-     * 
- * - * .tensorflow.TensorProto tensor = 8; - */ - public Builder mergeTensor(org.tensorflow.proto.framework.TensorProto value) { - if (tensorBuilder_ == null) { - if (valueCase_ == 8 && - value_ != org.tensorflow.proto.framework.TensorProto.getDefaultInstance()) { - value_ = org.tensorflow.proto.framework.TensorProto.newBuilder((org.tensorflow.proto.framework.TensorProto) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 8) { - tensorBuilder_.mergeFrom(value); - } - tensorBuilder_.setMessage(value); - } - valueCase_ = 8; - return this; - } - /** - *
-     * "tensor"
-     * 
- * - * .tensorflow.TensorProto tensor = 8; - */ - public Builder clearTensor() { - if (tensorBuilder_ == null) { - if (valueCase_ == 8) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 8) { - valueCase_ = 0; - value_ = null; - } - tensorBuilder_.clear(); - } - return this; - } - /** - *
-     * "tensor"
-     * 
- * - * .tensorflow.TensorProto tensor = 8; - */ - public org.tensorflow.proto.framework.TensorProto.Builder getTensorBuilder() { - return getTensorFieldBuilder().getBuilder(); - } - /** - *
-     * "tensor"
-     * 
- * - * .tensorflow.TensorProto tensor = 8; - */ - public org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorOrBuilder() { - if ((valueCase_ == 8) && (tensorBuilder_ != null)) { - return tensorBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 8) { - return (org.tensorflow.proto.framework.TensorProto) value_; - } - return org.tensorflow.proto.framework.TensorProto.getDefaultInstance(); - } - } - /** - *
-     * "tensor"
-     * 
- * - * .tensorflow.TensorProto tensor = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder> - getTensorFieldBuilder() { - if (tensorBuilder_ == null) { - if (!(valueCase_ == 8)) { - value_ = org.tensorflow.proto.framework.TensorProto.getDefaultInstance(); - } - tensorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder>( - (org.tensorflow.proto.framework.TensorProto) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 8; - onChanged();; - return tensorBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.AttrValue.ListValue, org.tensorflow.proto.framework.AttrValue.ListValue.Builder, org.tensorflow.proto.framework.AttrValue.ListValueOrBuilder> listBuilder_; - /** - *
-     * any "list(...)"
-     * 
- * - * .tensorflow.AttrValue.ListValue list = 1; - */ - public boolean hasList() { - return valueCase_ == 1; - } - /** - *
-     * any "list(...)"
-     * 
- * - * .tensorflow.AttrValue.ListValue list = 1; - */ - public org.tensorflow.proto.framework.AttrValue.ListValue getList() { - if (listBuilder_ == null) { - if (valueCase_ == 1) { - return (org.tensorflow.proto.framework.AttrValue.ListValue) value_; - } - return org.tensorflow.proto.framework.AttrValue.ListValue.getDefaultInstance(); - } else { - if (valueCase_ == 1) { - return listBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.AttrValue.ListValue.getDefaultInstance(); - } - } - /** - *
-     * any "list(...)"
-     * 
- * - * .tensorflow.AttrValue.ListValue list = 1; - */ - public Builder setList(org.tensorflow.proto.framework.AttrValue.ListValue value) { - if (listBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - listBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - *
-     * any "list(...)"
-     * 
- * - * .tensorflow.AttrValue.ListValue list = 1; - */ - public Builder setList( - org.tensorflow.proto.framework.AttrValue.ListValue.Builder builderForValue) { - if (listBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - listBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 1; - return this; - } - /** - *
-     * any "list(...)"
-     * 
- * - * .tensorflow.AttrValue.ListValue list = 1; - */ - public Builder mergeList(org.tensorflow.proto.framework.AttrValue.ListValue value) { - if (listBuilder_ == null) { - if (valueCase_ == 1 && - value_ != org.tensorflow.proto.framework.AttrValue.ListValue.getDefaultInstance()) { - value_ = org.tensorflow.proto.framework.AttrValue.ListValue.newBuilder((org.tensorflow.proto.framework.AttrValue.ListValue) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 1) { - listBuilder_.mergeFrom(value); - } - listBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - *
-     * any "list(...)"
-     * 
- * - * .tensorflow.AttrValue.ListValue list = 1; - */ - public Builder clearList() { - if (listBuilder_ == null) { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - } - listBuilder_.clear(); - } - return this; - } - /** - *
-     * any "list(...)"
-     * 
- * - * .tensorflow.AttrValue.ListValue list = 1; - */ - public org.tensorflow.proto.framework.AttrValue.ListValue.Builder getListBuilder() { - return getListFieldBuilder().getBuilder(); - } - /** - *
-     * any "list(...)"
-     * 
- * - * .tensorflow.AttrValue.ListValue list = 1; - */ - public org.tensorflow.proto.framework.AttrValue.ListValueOrBuilder getListOrBuilder() { - if ((valueCase_ == 1) && (listBuilder_ != null)) { - return listBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 1) { - return (org.tensorflow.proto.framework.AttrValue.ListValue) value_; - } - return org.tensorflow.proto.framework.AttrValue.ListValue.getDefaultInstance(); - } - } - /** - *
-     * any "list(...)"
-     * 
- * - * .tensorflow.AttrValue.ListValue list = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.AttrValue.ListValue, org.tensorflow.proto.framework.AttrValue.ListValue.Builder, org.tensorflow.proto.framework.AttrValue.ListValueOrBuilder> - getListFieldBuilder() { - if (listBuilder_ == null) { - if (!(valueCase_ == 1)) { - value_ = org.tensorflow.proto.framework.AttrValue.ListValue.getDefaultInstance(); - } - listBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.AttrValue.ListValue, org.tensorflow.proto.framework.AttrValue.ListValue.Builder, org.tensorflow.proto.framework.AttrValue.ListValueOrBuilder>( - (org.tensorflow.proto.framework.AttrValue.ListValue) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 1; - onChanged();; - return listBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.NameAttrList, org.tensorflow.proto.framework.NameAttrList.Builder, org.tensorflow.proto.framework.NameAttrListOrBuilder> funcBuilder_; - /** - *
-     * "func" represents a function. func.name is a function's name or
-     * a primitive op's name. func.attr.first is the name of an attr
-     * defined for that function. func.attr.second is the value for
-     * that attr in the instantiation.
-     * 
- * - * .tensorflow.NameAttrList func = 10; - */ - public boolean hasFunc() { - return valueCase_ == 10; - } - /** - *
-     * "func" represents a function. func.name is a function's name or
-     * a primitive op's name. func.attr.first is the name of an attr
-     * defined for that function. func.attr.second is the value for
-     * that attr in the instantiation.
-     * 
- * - * .tensorflow.NameAttrList func = 10; - */ - public org.tensorflow.proto.framework.NameAttrList getFunc() { - if (funcBuilder_ == null) { - if (valueCase_ == 10) { - return (org.tensorflow.proto.framework.NameAttrList) value_; - } - return org.tensorflow.proto.framework.NameAttrList.getDefaultInstance(); - } else { - if (valueCase_ == 10) { - return funcBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.NameAttrList.getDefaultInstance(); - } - } - /** - *
-     * "func" represents a function. func.name is a function's name or
-     * a primitive op's name. func.attr.first is the name of an attr
-     * defined for that function. func.attr.second is the value for
-     * that attr in the instantiation.
-     * 
- * - * .tensorflow.NameAttrList func = 10; - */ - public Builder setFunc(org.tensorflow.proto.framework.NameAttrList value) { - if (funcBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - funcBuilder_.setMessage(value); - } - valueCase_ = 10; - return this; - } - /** - *
-     * "func" represents a function. func.name is a function's name or
-     * a primitive op's name. func.attr.first is the name of an attr
-     * defined for that function. func.attr.second is the value for
-     * that attr in the instantiation.
-     * 
- * - * .tensorflow.NameAttrList func = 10; - */ - public Builder setFunc( - org.tensorflow.proto.framework.NameAttrList.Builder builderForValue) { - if (funcBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - funcBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 10; - return this; - } - /** - *
-     * "func" represents a function. func.name is a function's name or
-     * a primitive op's name. func.attr.first is the name of an attr
-     * defined for that function. func.attr.second is the value for
-     * that attr in the instantiation.
-     * 
- * - * .tensorflow.NameAttrList func = 10; - */ - public Builder mergeFunc(org.tensorflow.proto.framework.NameAttrList value) { - if (funcBuilder_ == null) { - if (valueCase_ == 10 && - value_ != org.tensorflow.proto.framework.NameAttrList.getDefaultInstance()) { - value_ = org.tensorflow.proto.framework.NameAttrList.newBuilder((org.tensorflow.proto.framework.NameAttrList) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 10) { - funcBuilder_.mergeFrom(value); - } - funcBuilder_.setMessage(value); - } - valueCase_ = 10; - return this; - } - /** - *
-     * "func" represents a function. func.name is a function's name or
-     * a primitive op's name. func.attr.first is the name of an attr
-     * defined for that function. func.attr.second is the value for
-     * that attr in the instantiation.
-     * 
- * - * .tensorflow.NameAttrList func = 10; - */ - public Builder clearFunc() { - if (funcBuilder_ == null) { - if (valueCase_ == 10) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 10) { - valueCase_ = 0; - value_ = null; - } - funcBuilder_.clear(); - } - return this; - } - /** - *
-     * "func" represents a function. func.name is a function's name or
-     * a primitive op's name. func.attr.first is the name of an attr
-     * defined for that function. func.attr.second is the value for
-     * that attr in the instantiation.
-     * 
- * - * .tensorflow.NameAttrList func = 10; - */ - public org.tensorflow.proto.framework.NameAttrList.Builder getFuncBuilder() { - return getFuncFieldBuilder().getBuilder(); - } - /** - *
-     * "func" represents a function. func.name is a function's name or
-     * a primitive op's name. func.attr.first is the name of an attr
-     * defined for that function. func.attr.second is the value for
-     * that attr in the instantiation.
-     * 
- * - * .tensorflow.NameAttrList func = 10; - */ - public org.tensorflow.proto.framework.NameAttrListOrBuilder getFuncOrBuilder() { - if ((valueCase_ == 10) && (funcBuilder_ != null)) { - return funcBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 10) { - return (org.tensorflow.proto.framework.NameAttrList) value_; - } - return org.tensorflow.proto.framework.NameAttrList.getDefaultInstance(); - } - } - /** - *
-     * "func" represents a function. func.name is a function's name or
-     * a primitive op's name. func.attr.first is the name of an attr
-     * defined for that function. func.attr.second is the value for
-     * that attr in the instantiation.
-     * 
- * - * .tensorflow.NameAttrList func = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.NameAttrList, org.tensorflow.proto.framework.NameAttrList.Builder, org.tensorflow.proto.framework.NameAttrListOrBuilder> - getFuncFieldBuilder() { - if (funcBuilder_ == null) { - if (!(valueCase_ == 10)) { - value_ = org.tensorflow.proto.framework.NameAttrList.getDefaultInstance(); - } - funcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.NameAttrList, org.tensorflow.proto.framework.NameAttrList.Builder, org.tensorflow.proto.framework.NameAttrListOrBuilder>( - (org.tensorflow.proto.framework.NameAttrList) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 10; - onChanged();; - return funcBuilder_; - } - - /** - *
-     * This is a placeholder only used in nodes defined inside a
-     * function.  It indicates the attr value will be supplied when
-     * the function is instantiated.  For example, let us suppose a
-     * node "N" in function "FN". "N" has an attr "A" with value
-     * placeholder = "foo". When FN is instantiated with attr "foo"
-     * set to "bar", the instantiated node N's attr A will have been
-     * given the value "bar".
-     * 
- * - * string placeholder = 9; - */ - public java.lang.String getPlaceholder() { - java.lang.Object ref = ""; - if (valueCase_ == 9) { - ref = value_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valueCase_ == 9) { - value_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * This is a placeholder only used in nodes defined inside a
-     * function.  It indicates the attr value will be supplied when
-     * the function is instantiated.  For example, let us suppose a
-     * node "N" in function "FN". "N" has an attr "A" with value
-     * placeholder = "foo". When FN is instantiated with attr "foo"
-     * set to "bar", the instantiated node N's attr A will have been
-     * given the value "bar".
-     * 
- * - * string placeholder = 9; - */ - public com.google.protobuf.ByteString - getPlaceholderBytes() { - java.lang.Object ref = ""; - if (valueCase_ == 9) { - ref = value_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valueCase_ == 9) { - value_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * This is a placeholder only used in nodes defined inside a
-     * function.  It indicates the attr value will be supplied when
-     * the function is instantiated.  For example, let us suppose a
-     * node "N" in function "FN". "N" has an attr "A" with value
-     * placeholder = "foo". When FN is instantiated with attr "foo"
-     * set to "bar", the instantiated node N's attr A will have been
-     * given the value "bar".
-     * 
- * - * string placeholder = 9; - */ - public Builder setPlaceholder( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - valueCase_ = 9; - value_ = value; - onChanged(); - return this; - } - /** - *
-     * This is a placeholder only used in nodes defined inside a
-     * function.  It indicates the attr value will be supplied when
-     * the function is instantiated.  For example, let us suppose a
-     * node "N" in function "FN". "N" has an attr "A" with value
-     * placeholder = "foo". When FN is instantiated with attr "foo"
-     * set to "bar", the instantiated node N's attr A will have been
-     * given the value "bar".
-     * 
- * - * string placeholder = 9; - */ - public Builder clearPlaceholder() { - if (valueCase_ == 9) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - /** - *
-     * This is a placeholder only used in nodes defined inside a
-     * function.  It indicates the attr value will be supplied when
-     * the function is instantiated.  For example, let us suppose a
-     * node "N" in function "FN". "N" has an attr "A" with value
-     * placeholder = "foo". When FN is instantiated with attr "foo"
-     * set to "bar", the instantiated node N's attr A will have been
-     * given the value "bar".
-     * 
- * - * string placeholder = 9; - */ - public Builder setPlaceholderBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - valueCase_ = 9; - value_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.AttrValue) - } - - // @@protoc_insertion_point(class_scope:tensorflow.AttrValue) - private static final org.tensorflow.proto.framework.AttrValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.AttrValue(); - } - - public static org.tensorflow.proto.framework.AttrValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AttrValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AttrValue(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.AttrValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AttrValueOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AttrValueOrBuilder.java deleted file mode 100644 index f2624691edf..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AttrValueOrBuilder.java +++ /dev/null @@ -1,203 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/attr_value.proto - -package org.tensorflow.proto.framework; - -public interface AttrValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.AttrValue) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * "string"
-   * 
- * - * bytes s = 2; - */ - com.google.protobuf.ByteString getS(); - - /** - *
-   * "int"
-   * 
- * - * int64 i = 3; - */ - long getI(); - - /** - *
-   * "float"
-   * 
- * - * float f = 4; - */ - float getF(); - - /** - *
-   * "bool"
-   * 
- * - * bool b = 5; - */ - boolean getB(); - - /** - *
-   * "type"
-   * 
- * - * .tensorflow.DataType type = 6; - */ - int getTypeValue(); - /** - *
-   * "type"
-   * 
- * - * .tensorflow.DataType type = 6; - */ - org.tensorflow.proto.framework.DataType getType(); - - /** - *
-   * "shape"
-   * 
- * - * .tensorflow.TensorShapeProto shape = 7; - */ - boolean hasShape(); - /** - *
-   * "shape"
-   * 
- * - * .tensorflow.TensorShapeProto shape = 7; - */ - org.tensorflow.proto.framework.TensorShapeProto getShape(); - /** - *
-   * "shape"
-   * 
- * - * .tensorflow.TensorShapeProto shape = 7; - */ - org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder(); - - /** - *
-   * "tensor"
-   * 
- * - * .tensorflow.TensorProto tensor = 8; - */ - boolean hasTensor(); - /** - *
-   * "tensor"
-   * 
- * - * .tensorflow.TensorProto tensor = 8; - */ - org.tensorflow.proto.framework.TensorProto getTensor(); - /** - *
-   * "tensor"
-   * 
- * - * .tensorflow.TensorProto tensor = 8; - */ - org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorOrBuilder(); - - /** - *
-   * any "list(...)"
-   * 
- * - * .tensorflow.AttrValue.ListValue list = 1; - */ - boolean hasList(); - /** - *
-   * any "list(...)"
-   * 
- * - * .tensorflow.AttrValue.ListValue list = 1; - */ - org.tensorflow.proto.framework.AttrValue.ListValue getList(); - /** - *
-   * any "list(...)"
-   * 
- * - * .tensorflow.AttrValue.ListValue list = 1; - */ - org.tensorflow.proto.framework.AttrValue.ListValueOrBuilder getListOrBuilder(); - - /** - *
-   * "func" represents a function. func.name is a function's name or
-   * a primitive op's name. func.attr.first is the name of an attr
-   * defined for that function. func.attr.second is the value for
-   * that attr in the instantiation.
-   * 
- * - * .tensorflow.NameAttrList func = 10; - */ - boolean hasFunc(); - /** - *
-   * "func" represents a function. func.name is a function's name or
-   * a primitive op's name. func.attr.first is the name of an attr
-   * defined for that function. func.attr.second is the value for
-   * that attr in the instantiation.
-   * 
- * - * .tensorflow.NameAttrList func = 10; - */ - org.tensorflow.proto.framework.NameAttrList getFunc(); - /** - *
-   * "func" represents a function. func.name is a function's name or
-   * a primitive op's name. func.attr.first is the name of an attr
-   * defined for that function. func.attr.second is the value for
-   * that attr in the instantiation.
-   * 
- * - * .tensorflow.NameAttrList func = 10; - */ - org.tensorflow.proto.framework.NameAttrListOrBuilder getFuncOrBuilder(); - - /** - *
-   * This is a placeholder only used in nodes defined inside a
-   * function.  It indicates the attr value will be supplied when
-   * the function is instantiated.  For example, let us suppose a
-   * node "N" in function "FN". "N" has an attr "A" with value
-   * placeholder = "foo". When FN is instantiated with attr "foo"
-   * set to "bar", the instantiated node N's attr A will have been
-   * given the value "bar".
-   * 
- * - * string placeholder = 9; - */ - java.lang.String getPlaceholder(); - /** - *
-   * This is a placeholder only used in nodes defined inside a
-   * function.  It indicates the attr value will be supplied when
-   * the function is instantiated.  For example, let us suppose a
-   * node "N" in function "FN". "N" has an attr "A" with value
-   * placeholder = "foo". When FN is instantiated with attr "foo"
-   * set to "bar", the instantiated node N's attr A will have been
-   * given the value "bar".
-   * 
- * - * string placeholder = 9; - */ - com.google.protobuf.ByteString - getPlaceholderBytes(); - - public org.tensorflow.proto.framework.AttrValue.ValueCase getValueCase(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AttrValueProtos.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AttrValueProtos.java deleted file mode 100644 index 2df18dbc3d0..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AttrValueProtos.java +++ /dev/null @@ -1,110 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/attr_value.proto - -package org.tensorflow.proto.framework; - -public final class AttrValueProtos { - private AttrValueProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_AttrValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_AttrValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_AttrValue_ListValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_AttrValue_ListValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_NameAttrList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_NameAttrList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_NameAttrList_AttrEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_NameAttrList_AttrEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n*tensorflow/core/framework/attr_value.p" + - "roto\022\ntensorflow\032&tensorflow/core/framew" + - "ork/tensor.proto\032,tensorflow/core/framew" + - "ork/tensor_shape.proto\032%tensorflow/core/" + - "framework/types.proto\"\246\004\n\tAttrValue\022\013\n\001s" + - "\030\002 \001(\014H\000\022\013\n\001i\030\003 \001(\003H\000\022\013\n\001f\030\004 \001(\002H\000\022\013\n\001b\030" + - "\005 \001(\010H\000\022$\n\004type\030\006 \001(\0162\024.tensorflow.DataT" + - "ypeH\000\022-\n\005shape\030\007 \001(\0132\034.tensorflow.Tensor" + - "ShapeProtoH\000\022)\n\006tensor\030\010 \001(\0132\027.tensorflo" + - "w.TensorProtoH\000\022/\n\004list\030\001 \001(\0132\037.tensorfl" + - "ow.AttrValue.ListValueH\000\022(\n\004func\030\n \001(\0132\030" + - ".tensorflow.NameAttrListH\000\022\025\n\013placeholde" + - "r\030\t \001(\tH\000\032\351\001\n\tListValue\022\t\n\001s\030\002 \003(\014\022\r\n\001i\030" + - "\003 \003(\003B\002\020\001\022\r\n\001f\030\004 \003(\002B\002\020\001\022\r\n\001b\030\005 \003(\010B\002\020\001\022" + - "&\n\004type\030\006 \003(\0162\024.tensorflow.DataTypeB\002\020\001\022" + - "+\n\005shape\030\007 \003(\0132\034.tensorflow.TensorShapeP" + - "roto\022\'\n\006tensor\030\010 \003(\0132\027.tensorflow.Tensor" + - "Proto\022&\n\004func\030\t \003(\0132\030.tensorflow.NameAtt" + - "rListB\007\n\005value\"\222\001\n\014NameAttrList\022\014\n\004name\030" + - "\001 \001(\t\0220\n\004attr\030\002 \003(\0132\".tensorflow.NameAtt" + - "rList.AttrEntry\032B\n\tAttrEntry\022\013\n\003key\030\001 \001(" + - "\t\022$\n\005value\030\002 \001(\0132\025.tensorflow.AttrValue:" + - "\0028\001B\211\001\n\036org.tensorflow.proto.frameworkB\017" + - "AttrValueProtosP\001ZQgithub.com/tensorflow" + - "/tensorflow/tensorflow/go/core/framework" + - "/attr_value_go_proto\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.framework.TensorProtos.getDescriptor(), - org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(), - org.tensorflow.proto.framework.TypesProtos.getDescriptor(), - }); - internal_static_tensorflow_AttrValue_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tensorflow_AttrValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_AttrValue_descriptor, - new java.lang.String[] { "S", "I", "F", "B", "Type", "Shape", "Tensor", "List", "Func", "Placeholder", "Value", }); - internal_static_tensorflow_AttrValue_ListValue_descriptor = - internal_static_tensorflow_AttrValue_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_AttrValue_ListValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_AttrValue_ListValue_descriptor, - new java.lang.String[] { "S", "I", "F", "B", "Type", "Shape", "Tensor", "Func", }); - internal_static_tensorflow_NameAttrList_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_tensorflow_NameAttrList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_NameAttrList_descriptor, - new java.lang.String[] { "Name", "Attr", }); - internal_static_tensorflow_NameAttrList_AttrEntry_descriptor = - internal_static_tensorflow_NameAttrList_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_NameAttrList_AttrEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_NameAttrList_AttrEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - org.tensorflow.proto.framework.TensorProtos.getDescriptor(); - org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(); - org.tensorflow.proto.framework.TypesProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AutoParallelOptions.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AutoParallelOptions.java deleted file mode 100644 index cbb6bde48fe..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AutoParallelOptions.java +++ /dev/null @@ -1,534 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/rewriter_config.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.AutoParallelOptions} - */ -public final class AutoParallelOptions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.AutoParallelOptions) - AutoParallelOptionsOrBuilder { -private static final long serialVersionUID = 0L; - // Use AutoParallelOptions.newBuilder() to construct. - private AutoParallelOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AutoParallelOptions() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AutoParallelOptions(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AutoParallelOptions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - enable_ = input.readBool(); - break; - } - case 16: { - - numReplicas_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.RewriterConfigProtos.internal_static_tensorflow_AutoParallelOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.RewriterConfigProtos.internal_static_tensorflow_AutoParallelOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.AutoParallelOptions.class, org.tensorflow.proto.framework.AutoParallelOptions.Builder.class); - } - - public static final int ENABLE_FIELD_NUMBER = 1; - private boolean enable_; - /** - * bool enable = 1; - */ - public boolean getEnable() { - return enable_; - } - - public static final int NUM_REPLICAS_FIELD_NUMBER = 2; - private int numReplicas_; - /** - * int32 num_replicas = 2; - */ - public int getNumReplicas() { - return numReplicas_; - } - - 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 (enable_ != false) { - output.writeBool(1, enable_); - } - if (numReplicas_ != 0) { - output.writeInt32(2, numReplicas_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enable_); - } - if (numReplicas_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, numReplicas_); - } - 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 org.tensorflow.proto.framework.AutoParallelOptions)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.AutoParallelOptions other = (org.tensorflow.proto.framework.AutoParallelOptions) obj; - - if (getEnable() - != other.getEnable()) return false; - if (getNumReplicas() - != other.getNumReplicas()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnable()); - hash = (37 * hash) + NUM_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getNumReplicas(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.AutoParallelOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.AutoParallelOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.AutoParallelOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.AutoParallelOptions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.AutoParallelOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.AutoParallelOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.AutoParallelOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.AutoParallelOptions 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 org.tensorflow.proto.framework.AutoParallelOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.AutoParallelOptions 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 org.tensorflow.proto.framework.AutoParallelOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.AutoParallelOptions 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(org.tensorflow.proto.framework.AutoParallelOptions prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.AutoParallelOptions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.AutoParallelOptions) - org.tensorflow.proto.framework.AutoParallelOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.RewriterConfigProtos.internal_static_tensorflow_AutoParallelOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.RewriterConfigProtos.internal_static_tensorflow_AutoParallelOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.AutoParallelOptions.class, org.tensorflow.proto.framework.AutoParallelOptions.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.AutoParallelOptions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - enable_ = false; - - numReplicas_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.RewriterConfigProtos.internal_static_tensorflow_AutoParallelOptions_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.AutoParallelOptions getDefaultInstanceForType() { - return org.tensorflow.proto.framework.AutoParallelOptions.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.AutoParallelOptions build() { - org.tensorflow.proto.framework.AutoParallelOptions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.AutoParallelOptions buildPartial() { - org.tensorflow.proto.framework.AutoParallelOptions result = new org.tensorflow.proto.framework.AutoParallelOptions(this); - result.enable_ = enable_; - result.numReplicas_ = numReplicas_; - 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 org.tensorflow.proto.framework.AutoParallelOptions) { - return mergeFrom((org.tensorflow.proto.framework.AutoParallelOptions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.AutoParallelOptions other) { - if (other == org.tensorflow.proto.framework.AutoParallelOptions.getDefaultInstance()) return this; - if (other.getEnable() != false) { - setEnable(other.getEnable()); - } - if (other.getNumReplicas() != 0) { - setNumReplicas(other.getNumReplicas()); - } - 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 { - org.tensorflow.proto.framework.AutoParallelOptions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.AutoParallelOptions) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean enable_ ; - /** - * bool enable = 1; - */ - public boolean getEnable() { - return enable_; - } - /** - * bool enable = 1; - */ - public Builder setEnable(boolean value) { - - enable_ = value; - onChanged(); - return this; - } - /** - * bool enable = 1; - */ - public Builder clearEnable() { - - enable_ = false; - onChanged(); - return this; - } - - private int numReplicas_ ; - /** - * int32 num_replicas = 2; - */ - public int getNumReplicas() { - return numReplicas_; - } - /** - * int32 num_replicas = 2; - */ - public Builder setNumReplicas(int value) { - - numReplicas_ = value; - onChanged(); - return this; - } - /** - * int32 num_replicas = 2; - */ - public Builder clearNumReplicas() { - - numReplicas_ = 0; - 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:tensorflow.AutoParallelOptions) - } - - // @@protoc_insertion_point(class_scope:tensorflow.AutoParallelOptions) - private static final org.tensorflow.proto.framework.AutoParallelOptions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.AutoParallelOptions(); - } - - public static org.tensorflow.proto.framework.AutoParallelOptions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutoParallelOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AutoParallelOptions(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.AutoParallelOptions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/BoundedTensorSpecProto.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/BoundedTensorSpecProto.java deleted file mode 100644 index 2c21852a18c..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/BoundedTensorSpecProto.java +++ /dev/null @@ -1,1182 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/struct.proto - -package org.tensorflow.proto.framework; - -/** - *
- * A protobuf to represent tf.BoundedTensorSpec.
- * 
- * - * Protobuf type {@code tensorflow.BoundedTensorSpecProto} - */ -public final class BoundedTensorSpecProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.BoundedTensorSpecProto) - BoundedTensorSpecProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use BoundedTensorSpecProto.newBuilder() to construct. - private BoundedTensorSpecProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BoundedTensorSpecProto() { - name_ = ""; - dtype_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BoundedTensorSpecProto(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BoundedTensorSpecProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - org.tensorflow.proto.framework.TensorShapeProto.Builder subBuilder = null; - if (shape_ != null) { - subBuilder = shape_.toBuilder(); - } - shape_ = input.readMessage(org.tensorflow.proto.framework.TensorShapeProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(shape_); - shape_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - int rawValue = input.readEnum(); - - dtype_ = rawValue; - break; - } - case 34: { - org.tensorflow.proto.framework.TensorProto.Builder subBuilder = null; - if (minimum_ != null) { - subBuilder = minimum_.toBuilder(); - } - minimum_ = input.readMessage(org.tensorflow.proto.framework.TensorProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(minimum_); - minimum_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - org.tensorflow.proto.framework.TensorProto.Builder subBuilder = null; - if (maximum_ != null) { - subBuilder = maximum_.toBuilder(); - } - maximum_ = input.readMessage(org.tensorflow.proto.framework.TensorProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maximum_); - maximum_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_BoundedTensorSpecProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_BoundedTensorSpecProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.BoundedTensorSpecProto.class, org.tensorflow.proto.framework.BoundedTensorSpecProto.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHAPE_FIELD_NUMBER = 2; - private org.tensorflow.proto.framework.TensorShapeProto shape_; - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public boolean hasShape() { - return shape_ != null; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProto getShape() { - return shape_ == null ? org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { - return getShape(); - } - - public static final int DTYPE_FIELD_NUMBER = 3; - private int dtype_; - /** - * .tensorflow.DataType dtype = 3; - */ - public int getDtypeValue() { - return dtype_; - } - /** - * .tensorflow.DataType dtype = 3; - */ - public org.tensorflow.proto.framework.DataType getDtype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - - public static final int MINIMUM_FIELD_NUMBER = 4; - private org.tensorflow.proto.framework.TensorProto minimum_; - /** - * .tensorflow.TensorProto minimum = 4; - */ - public boolean hasMinimum() { - return minimum_ != null; - } - /** - * .tensorflow.TensorProto minimum = 4; - */ - public org.tensorflow.proto.framework.TensorProto getMinimum() { - return minimum_ == null ? org.tensorflow.proto.framework.TensorProto.getDefaultInstance() : minimum_; - } - /** - * .tensorflow.TensorProto minimum = 4; - */ - public org.tensorflow.proto.framework.TensorProtoOrBuilder getMinimumOrBuilder() { - return getMinimum(); - } - - public static final int MAXIMUM_FIELD_NUMBER = 5; - private org.tensorflow.proto.framework.TensorProto maximum_; - /** - * .tensorflow.TensorProto maximum = 5; - */ - public boolean hasMaximum() { - return maximum_ != null; - } - /** - * .tensorflow.TensorProto maximum = 5; - */ - public org.tensorflow.proto.framework.TensorProto getMaximum() { - return maximum_ == null ? org.tensorflow.proto.framework.TensorProto.getDefaultInstance() : maximum_; - } - /** - * .tensorflow.TensorProto maximum = 5; - */ - public org.tensorflow.proto.framework.TensorProtoOrBuilder getMaximumOrBuilder() { - return getMaximum(); - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (shape_ != null) { - output.writeMessage(2, getShape()); - } - if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - output.writeEnum(3, dtype_); - } - if (minimum_ != null) { - output.writeMessage(4, getMinimum()); - } - if (maximum_ != null) { - output.writeMessage(5, getMaximum()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (shape_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getShape()); - } - if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, dtype_); - } - if (minimum_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getMinimum()); - } - if (maximum_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getMaximum()); - } - 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 org.tensorflow.proto.framework.BoundedTensorSpecProto)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.BoundedTensorSpecProto other = (org.tensorflow.proto.framework.BoundedTensorSpecProto) obj; - - if (!getName() - .equals(other.getName())) return false; - if (hasShape() != other.hasShape()) return false; - if (hasShape()) { - if (!getShape() - .equals(other.getShape())) return false; - } - if (dtype_ != other.dtype_) return false; - if (hasMinimum() != other.hasMinimum()) return false; - if (hasMinimum()) { - if (!getMinimum() - .equals(other.getMinimum())) return false; - } - if (hasMaximum() != other.hasMaximum()) return false; - if (hasMaximum()) { - if (!getMaximum() - .equals(other.getMaximum())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasShape()) { - hash = (37 * hash) + SHAPE_FIELD_NUMBER; - hash = (53 * hash) + getShape().hashCode(); - } - hash = (37 * hash) + DTYPE_FIELD_NUMBER; - hash = (53 * hash) + dtype_; - if (hasMinimum()) { - hash = (37 * hash) + MINIMUM_FIELD_NUMBER; - hash = (53 * hash) + getMinimum().hashCode(); - } - if (hasMaximum()) { - hash = (37 * hash) + MAXIMUM_FIELD_NUMBER; - hash = (53 * hash) + getMaximum().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.BoundedTensorSpecProto parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.BoundedTensorSpecProto parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.BoundedTensorSpecProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.BoundedTensorSpecProto parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.BoundedTensorSpecProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.BoundedTensorSpecProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.BoundedTensorSpecProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.BoundedTensorSpecProto 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 org.tensorflow.proto.framework.BoundedTensorSpecProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.BoundedTensorSpecProto 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 org.tensorflow.proto.framework.BoundedTensorSpecProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.BoundedTensorSpecProto 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(org.tensorflow.proto.framework.BoundedTensorSpecProto 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; - } - /** - *
-   * A protobuf to represent tf.BoundedTensorSpec.
-   * 
- * - * Protobuf type {@code tensorflow.BoundedTensorSpecProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.BoundedTensorSpecProto) - org.tensorflow.proto.framework.BoundedTensorSpecProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_BoundedTensorSpecProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_BoundedTensorSpecProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.BoundedTensorSpecProto.class, org.tensorflow.proto.framework.BoundedTensorSpecProto.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.BoundedTensorSpecProto.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (shapeBuilder_ == null) { - shape_ = null; - } else { - shape_ = null; - shapeBuilder_ = null; - } - dtype_ = 0; - - if (minimumBuilder_ == null) { - minimum_ = null; - } else { - minimum_ = null; - minimumBuilder_ = null; - } - if (maximumBuilder_ == null) { - maximum_ = null; - } else { - maximum_ = null; - maximumBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_BoundedTensorSpecProto_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.BoundedTensorSpecProto getDefaultInstanceForType() { - return org.tensorflow.proto.framework.BoundedTensorSpecProto.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.BoundedTensorSpecProto build() { - org.tensorflow.proto.framework.BoundedTensorSpecProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.BoundedTensorSpecProto buildPartial() { - org.tensorflow.proto.framework.BoundedTensorSpecProto result = new org.tensorflow.proto.framework.BoundedTensorSpecProto(this); - result.name_ = name_; - if (shapeBuilder_ == null) { - result.shape_ = shape_; - } else { - result.shape_ = shapeBuilder_.build(); - } - result.dtype_ = dtype_; - if (minimumBuilder_ == null) { - result.minimum_ = minimum_; - } else { - result.minimum_ = minimumBuilder_.build(); - } - if (maximumBuilder_ == null) { - result.maximum_ = maximum_; - } else { - result.maximum_ = maximumBuilder_.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 org.tensorflow.proto.framework.BoundedTensorSpecProto) { - return mergeFrom((org.tensorflow.proto.framework.BoundedTensorSpecProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.BoundedTensorSpecProto other) { - if (other == org.tensorflow.proto.framework.BoundedTensorSpecProto.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasShape()) { - mergeShape(other.getShape()); - } - if (other.dtype_ != 0) { - setDtypeValue(other.getDtypeValue()); - } - if (other.hasMinimum()) { - mergeMinimum(other.getMinimum()); - } - if (other.hasMaximum()) { - mergeMaximum(other.getMaximum()); - } - 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 { - org.tensorflow.proto.framework.BoundedTensorSpecProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.BoundedTensorSpecProto) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.TensorShapeProto shape_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> shapeBuilder_; - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public boolean hasShape() { - return shapeBuilder_ != null || shape_ != null; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProto getShape() { - if (shapeBuilder_ == null) { - return shape_ == null ? org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; - } else { - return shapeBuilder_.getMessage(); - } - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder setShape(org.tensorflow.proto.framework.TensorShapeProto value) { - if (shapeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - shape_ = value; - onChanged(); - } else { - shapeBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder setShape( - org.tensorflow.proto.framework.TensorShapeProto.Builder builderForValue) { - if (shapeBuilder_ == null) { - shape_ = builderForValue.build(); - onChanged(); - } else { - shapeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder mergeShape(org.tensorflow.proto.framework.TensorShapeProto value) { - if (shapeBuilder_ == null) { - if (shape_ != null) { - shape_ = - org.tensorflow.proto.framework.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial(); - } else { - shape_ = value; - } - onChanged(); - } else { - shapeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder clearShape() { - if (shapeBuilder_ == null) { - shape_ = null; - onChanged(); - } else { - shape_ = null; - shapeBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProto.Builder getShapeBuilder() { - - onChanged(); - return getShapeFieldBuilder().getBuilder(); - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { - if (shapeBuilder_ != null) { - return shapeBuilder_.getMessageOrBuilder(); - } else { - return shape_ == null ? - org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; - } - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> - getShapeFieldBuilder() { - if (shapeBuilder_ == null) { - shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder>( - getShape(), - getParentForChildren(), - isClean()); - shape_ = null; - } - return shapeBuilder_; - } - - private int dtype_ = 0; - /** - * .tensorflow.DataType dtype = 3; - */ - public int getDtypeValue() { - return dtype_; - } - /** - * .tensorflow.DataType dtype = 3; - */ - public Builder setDtypeValue(int value) { - dtype_ = value; - onChanged(); - return this; - } - /** - * .tensorflow.DataType dtype = 3; - */ - public org.tensorflow.proto.framework.DataType getDtype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - /** - * .tensorflow.DataType dtype = 3; - */ - public Builder setDtype(org.tensorflow.proto.framework.DataType value) { - if (value == null) { - throw new NullPointerException(); - } - - dtype_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tensorflow.DataType dtype = 3; - */ - public Builder clearDtype() { - - dtype_ = 0; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.TensorProto minimum_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder> minimumBuilder_; - /** - * .tensorflow.TensorProto minimum = 4; - */ - public boolean hasMinimum() { - return minimumBuilder_ != null || minimum_ != null; - } - /** - * .tensorflow.TensorProto minimum = 4; - */ - public org.tensorflow.proto.framework.TensorProto getMinimum() { - if (minimumBuilder_ == null) { - return minimum_ == null ? org.tensorflow.proto.framework.TensorProto.getDefaultInstance() : minimum_; - } else { - return minimumBuilder_.getMessage(); - } - } - /** - * .tensorflow.TensorProto minimum = 4; - */ - public Builder setMinimum(org.tensorflow.proto.framework.TensorProto value) { - if (minimumBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - minimum_ = value; - onChanged(); - } else { - minimumBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.TensorProto minimum = 4; - */ - public Builder setMinimum( - org.tensorflow.proto.framework.TensorProto.Builder builderForValue) { - if (minimumBuilder_ == null) { - minimum_ = builderForValue.build(); - onChanged(); - } else { - minimumBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.TensorProto minimum = 4; - */ - public Builder mergeMinimum(org.tensorflow.proto.framework.TensorProto value) { - if (minimumBuilder_ == null) { - if (minimum_ != null) { - minimum_ = - org.tensorflow.proto.framework.TensorProto.newBuilder(minimum_).mergeFrom(value).buildPartial(); - } else { - minimum_ = value; - } - onChanged(); - } else { - minimumBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.TensorProto minimum = 4; - */ - public Builder clearMinimum() { - if (minimumBuilder_ == null) { - minimum_ = null; - onChanged(); - } else { - minimum_ = null; - minimumBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.TensorProto minimum = 4; - */ - public org.tensorflow.proto.framework.TensorProto.Builder getMinimumBuilder() { - - onChanged(); - return getMinimumFieldBuilder().getBuilder(); - } - /** - * .tensorflow.TensorProto minimum = 4; - */ - public org.tensorflow.proto.framework.TensorProtoOrBuilder getMinimumOrBuilder() { - if (minimumBuilder_ != null) { - return minimumBuilder_.getMessageOrBuilder(); - } else { - return minimum_ == null ? - org.tensorflow.proto.framework.TensorProto.getDefaultInstance() : minimum_; - } - } - /** - * .tensorflow.TensorProto minimum = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder> - getMinimumFieldBuilder() { - if (minimumBuilder_ == null) { - minimumBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder>( - getMinimum(), - getParentForChildren(), - isClean()); - minimum_ = null; - } - return minimumBuilder_; - } - - private org.tensorflow.proto.framework.TensorProto maximum_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder> maximumBuilder_; - /** - * .tensorflow.TensorProto maximum = 5; - */ - public boolean hasMaximum() { - return maximumBuilder_ != null || maximum_ != null; - } - /** - * .tensorflow.TensorProto maximum = 5; - */ - public org.tensorflow.proto.framework.TensorProto getMaximum() { - if (maximumBuilder_ == null) { - return maximum_ == null ? org.tensorflow.proto.framework.TensorProto.getDefaultInstance() : maximum_; - } else { - return maximumBuilder_.getMessage(); - } - } - /** - * .tensorflow.TensorProto maximum = 5; - */ - public Builder setMaximum(org.tensorflow.proto.framework.TensorProto value) { - if (maximumBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maximum_ = value; - onChanged(); - } else { - maximumBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.TensorProto maximum = 5; - */ - public Builder setMaximum( - org.tensorflow.proto.framework.TensorProto.Builder builderForValue) { - if (maximumBuilder_ == null) { - maximum_ = builderForValue.build(); - onChanged(); - } else { - maximumBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.TensorProto maximum = 5; - */ - public Builder mergeMaximum(org.tensorflow.proto.framework.TensorProto value) { - if (maximumBuilder_ == null) { - if (maximum_ != null) { - maximum_ = - org.tensorflow.proto.framework.TensorProto.newBuilder(maximum_).mergeFrom(value).buildPartial(); - } else { - maximum_ = value; - } - onChanged(); - } else { - maximumBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.TensorProto maximum = 5; - */ - public Builder clearMaximum() { - if (maximumBuilder_ == null) { - maximum_ = null; - onChanged(); - } else { - maximum_ = null; - maximumBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.TensorProto maximum = 5; - */ - public org.tensorflow.proto.framework.TensorProto.Builder getMaximumBuilder() { - - onChanged(); - return getMaximumFieldBuilder().getBuilder(); - } - /** - * .tensorflow.TensorProto maximum = 5; - */ - public org.tensorflow.proto.framework.TensorProtoOrBuilder getMaximumOrBuilder() { - if (maximumBuilder_ != null) { - return maximumBuilder_.getMessageOrBuilder(); - } else { - return maximum_ == null ? - org.tensorflow.proto.framework.TensorProto.getDefaultInstance() : maximum_; - } - } - /** - * .tensorflow.TensorProto maximum = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder> - getMaximumFieldBuilder() { - if (maximumBuilder_ == null) { - maximumBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder>( - getMaximum(), - getParentForChildren(), - isClean()); - maximum_ = null; - } - return maximumBuilder_; - } - @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:tensorflow.BoundedTensorSpecProto) - } - - // @@protoc_insertion_point(class_scope:tensorflow.BoundedTensorSpecProto) - private static final org.tensorflow.proto.framework.BoundedTensorSpecProto DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.BoundedTensorSpecProto(); - } - - public static org.tensorflow.proto.framework.BoundedTensorSpecProto getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoundedTensorSpecProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoundedTensorSpecProto(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.BoundedTensorSpecProto getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/BoundedTensorSpecProtoOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/BoundedTensorSpecProtoOrBuilder.java deleted file mode 100644 index d4b34e04e02..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/BoundedTensorSpecProtoOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/struct.proto - -package org.tensorflow.proto.framework; - -public interface BoundedTensorSpecProtoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.BoundedTensorSpecProto) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1; - */ - java.lang.String getName(); - /** - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - boolean hasShape(); - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - org.tensorflow.proto.framework.TensorShapeProto getShape(); - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder(); - - /** - * .tensorflow.DataType dtype = 3; - */ - int getDtypeValue(); - /** - * .tensorflow.DataType dtype = 3; - */ - org.tensorflow.proto.framework.DataType getDtype(); - - /** - * .tensorflow.TensorProto minimum = 4; - */ - boolean hasMinimum(); - /** - * .tensorflow.TensorProto minimum = 4; - */ - org.tensorflow.proto.framework.TensorProto getMinimum(); - /** - * .tensorflow.TensorProto minimum = 4; - */ - org.tensorflow.proto.framework.TensorProtoOrBuilder getMinimumOrBuilder(); - - /** - * .tensorflow.TensorProto maximum = 5; - */ - boolean hasMaximum(); - /** - * .tensorflow.TensorProto maximum = 5; - */ - org.tensorflow.proto.framework.TensorProto getMaximum(); - /** - * .tensorflow.TensorProto maximum = 5; - */ - org.tensorflow.proto.framework.TensorProtoOrBuilder getMaximumOrBuilder(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CapturedTensor.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CapturedTensor.java deleted file mode 100644 index 1208e25ad7b..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CapturedTensor.java +++ /dev/null @@ -1,729 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.CapturedTensor} - */ -public final class CapturedTensor extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.CapturedTensor) - CapturedTensorOrBuilder { -private static final long serialVersionUID = 0L; - // Use CapturedTensor.newBuilder() to construct. - private CapturedTensor(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CapturedTensor() { - name_ = ""; - concreteFunction_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CapturedTensor(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CapturedTensor( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - concreteFunction_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_CapturedTensor_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_CapturedTensor_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CapturedTensor.class, org.tensorflow.proto.framework.CapturedTensor.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * Name of captured tensor
-   * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - *
-   * Name of captured tensor
-   * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONCRETE_FUNCTION_FIELD_NUMBER = 2; - private volatile java.lang.Object concreteFunction_; - /** - *
-   * Name of concrete function which contains the computed graph tensor.
-   * 
- * - * string concrete_function = 2; - */ - public java.lang.String getConcreteFunction() { - java.lang.Object ref = concreteFunction_; - 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(); - concreteFunction_ = s; - return s; - } - } - /** - *
-   * Name of concrete function which contains the computed graph tensor.
-   * 
- * - * string concrete_function = 2; - */ - public com.google.protobuf.ByteString - getConcreteFunctionBytes() { - java.lang.Object ref = concreteFunction_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - concreteFunction_ = 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getConcreteFunctionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, concreteFunction_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getConcreteFunctionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, concreteFunction_); - } - 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 org.tensorflow.proto.framework.CapturedTensor)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.CapturedTensor other = (org.tensorflow.proto.framework.CapturedTensor) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getConcreteFunction() - .equals(other.getConcreteFunction())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + CONCRETE_FUNCTION_FIELD_NUMBER; - hash = (53 * hash) + getConcreteFunction().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.CapturedTensor parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CapturedTensor parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CapturedTensor parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CapturedTensor parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CapturedTensor parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CapturedTensor parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CapturedTensor parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CapturedTensor 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 org.tensorflow.proto.framework.CapturedTensor parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CapturedTensor 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 org.tensorflow.proto.framework.CapturedTensor parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CapturedTensor 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(org.tensorflow.proto.framework.CapturedTensor prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.CapturedTensor} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.CapturedTensor) - org.tensorflow.proto.framework.CapturedTensorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_CapturedTensor_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_CapturedTensor_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CapturedTensor.class, org.tensorflow.proto.framework.CapturedTensor.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.CapturedTensor.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - concreteFunction_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_CapturedTensor_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CapturedTensor getDefaultInstanceForType() { - return org.tensorflow.proto.framework.CapturedTensor.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.CapturedTensor build() { - org.tensorflow.proto.framework.CapturedTensor result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CapturedTensor buildPartial() { - org.tensorflow.proto.framework.CapturedTensor result = new org.tensorflow.proto.framework.CapturedTensor(this); - result.name_ = name_; - result.concreteFunction_ = concreteFunction_; - 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 org.tensorflow.proto.framework.CapturedTensor) { - return mergeFrom((org.tensorflow.proto.framework.CapturedTensor)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.CapturedTensor other) { - if (other == org.tensorflow.proto.framework.CapturedTensor.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getConcreteFunction().isEmpty()) { - concreteFunction_ = other.concreteFunction_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.CapturedTensor parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.CapturedTensor) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * Name of captured tensor
-     * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Name of captured tensor
-     * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Name of captured tensor
-     * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * Name of captured tensor
-     * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * Name of captured tensor
-     * 
- * - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object concreteFunction_ = ""; - /** - *
-     * Name of concrete function which contains the computed graph tensor.
-     * 
- * - * string concrete_function = 2; - */ - public java.lang.String getConcreteFunction() { - java.lang.Object ref = concreteFunction_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - concreteFunction_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Name of concrete function which contains the computed graph tensor.
-     * 
- * - * string concrete_function = 2; - */ - public com.google.protobuf.ByteString - getConcreteFunctionBytes() { - java.lang.Object ref = concreteFunction_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - concreteFunction_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Name of concrete function which contains the computed graph tensor.
-     * 
- * - * string concrete_function = 2; - */ - public Builder setConcreteFunction( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - concreteFunction_ = value; - onChanged(); - return this; - } - /** - *
-     * Name of concrete function which contains the computed graph tensor.
-     * 
- * - * string concrete_function = 2; - */ - public Builder clearConcreteFunction() { - - concreteFunction_ = getDefaultInstance().getConcreteFunction(); - onChanged(); - return this; - } - /** - *
-     * Name of concrete function which contains the computed graph tensor.
-     * 
- * - * string concrete_function = 2; - */ - public Builder setConcreteFunctionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - concreteFunction_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.CapturedTensor) - } - - // @@protoc_insertion_point(class_scope:tensorflow.CapturedTensor) - private static final org.tensorflow.proto.framework.CapturedTensor DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.CapturedTensor(); - } - - public static org.tensorflow.proto.framework.CapturedTensor getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CapturedTensor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CapturedTensor(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CapturedTensor getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CapturedTensorOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CapturedTensorOrBuilder.java deleted file mode 100644 index 0efef800399..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CapturedTensorOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -public interface CapturedTensorOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.CapturedTensor) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Name of captured tensor
-   * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-   * Name of captured tensor
-   * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Name of concrete function which contains the computed graph tensor.
-   * 
- * - * string concrete_function = 2; - */ - java.lang.String getConcreteFunction(); - /** - *
-   * Name of concrete function which contains the computed graph tensor.
-   * 
- * - * string concrete_function = 2; - */ - com.google.protobuf.ByteString - getConcreteFunctionBytes(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CollectionDef.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CollectionDef.java deleted file mode 100644 index f3094be10f6..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CollectionDef.java +++ /dev/null @@ -1,4858 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/meta_graph.proto - -package org.tensorflow.proto.framework; - -/** - *
- * CollectionDef should cover most collections.
- * To add a user-defined collection, do one of the following:
- * 1. For simple data types, such as string, int, float:
- *      tf.add_to_collection("your_collection_name", your_simple_value)
- *    strings will be stored as bytes_list.
- * 2. For Protobuf types, there are three ways to add them:
- *    1) tf.add_to_collection("your_collection_name",
- *         your_proto.SerializeToString())
- *       collection_def {
- *         key: "user_defined_bytes_collection"
- *         value {
- *           bytes_list {
- *             value: "queue_name: \"test_queue\"\n"
- *           }
- *         }
- *       }
- *  or
- *    2) tf.add_to_collection("your_collection_name", str(your_proto))
- *       collection_def {
- *         key: "user_defined_string_collection"
- *         value {
- *          bytes_list {
- *             value: "\n\ntest_queue"
- *           }
- *         }
- *       }
- *  or
- *    3) any_buf = any_pb2.Any()
- *       tf.add_to_collection("your_collection_name",
- *         any_buf.Pack(your_proto))
- *       collection_def {
- *         key: "user_defined_any_collection"
- *         value {
- *           any_list {
- *             value {
- *               type_url: "type.googleapis.com/tensorflow.QueueRunnerDef"
- *               value: "\n\ntest_queue"
- *             }
- *           }
- *         }
- *       }
- * 3. For Python objects, implement to_proto() and from_proto(), and register
- *    them in the following manner:
- *    ops.register_proto_function("your_collection_name",
- *                                proto_type,
- *                                to_proto=YourPythonObject.to_proto,
- *                                from_proto=YourPythonObject.from_proto)
- *    These functions will be invoked to serialize and de-serialize the
- *    collection. For example,
- *    ops.register_proto_function(ops.GraphKeys.GLOBAL_VARIABLES,
- *                                proto_type=variable_pb2.VariableDef,
- *                                to_proto=Variable.to_proto,
- *                                from_proto=Variable.from_proto)
- * 
- * - * Protobuf type {@code tensorflow.CollectionDef} - */ -public final class CollectionDef extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef) - CollectionDefOrBuilder { -private static final long serialVersionUID = 0L; - // Use CollectionDef.newBuilder() to construct. - private CollectionDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CollectionDef() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CollectionDef(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CollectionDef( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.tensorflow.proto.framework.CollectionDef.NodeList.Builder subBuilder = null; - if (kindCase_ == 1) { - subBuilder = ((org.tensorflow.proto.framework.CollectionDef.NodeList) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.framework.CollectionDef.NodeList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.CollectionDef.NodeList) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 1; - break; - } - case 18: { - org.tensorflow.proto.framework.CollectionDef.BytesList.Builder subBuilder = null; - if (kindCase_ == 2) { - subBuilder = ((org.tensorflow.proto.framework.CollectionDef.BytesList) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.framework.CollectionDef.BytesList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.CollectionDef.BytesList) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 2; - break; - } - case 26: { - org.tensorflow.proto.framework.CollectionDef.Int64List.Builder subBuilder = null; - if (kindCase_ == 3) { - subBuilder = ((org.tensorflow.proto.framework.CollectionDef.Int64List) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.framework.CollectionDef.Int64List.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.CollectionDef.Int64List) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 3; - break; - } - case 34: { - org.tensorflow.proto.framework.CollectionDef.FloatList.Builder subBuilder = null; - if (kindCase_ == 4) { - subBuilder = ((org.tensorflow.proto.framework.CollectionDef.FloatList) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.framework.CollectionDef.FloatList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.CollectionDef.FloatList) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 4; - break; - } - case 42: { - org.tensorflow.proto.framework.CollectionDef.AnyList.Builder subBuilder = null; - if (kindCase_ == 5) { - subBuilder = ((org.tensorflow.proto.framework.CollectionDef.AnyList) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.framework.CollectionDef.AnyList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.CollectionDef.AnyList) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 5; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CollectionDef.class, org.tensorflow.proto.framework.CollectionDef.Builder.class); - } - - public interface NodeListOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.CollectionDef.NodeList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string value = 1; - */ - java.util.List - getValueList(); - /** - * repeated string value = 1; - */ - int getValueCount(); - /** - * repeated string value = 1; - */ - java.lang.String getValue(int index); - /** - * repeated string value = 1; - */ - com.google.protobuf.ByteString - getValueBytes(int index); - } - /** - *
-   * NodeList is used for collecting nodes in graph. For example
-   * collection_def {
-   *   key: "summaries"
-   *   value {
-   *     node_list {
-   *       value: "input_producer/ScalarSummary:0"
-   *       value: "shuffle_batch/ScalarSummary:0"
-   *       value: "ImageSummary:0"
-   *     }
-   *   }
-   * 
- * - * Protobuf type {@code tensorflow.CollectionDef.NodeList} - */ - public static final class NodeList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef.NodeList) - NodeListOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeList.newBuilder() to construct. - private NodeList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeList() { - value_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NodeList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeList( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - value_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - value_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - value_ = value_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_NodeList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_NodeList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CollectionDef.NodeList.class, org.tensorflow.proto.framework.CollectionDef.NodeList.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList value_; - /** - * repeated string value = 1; - */ - public com.google.protobuf.ProtocolStringList - getValueList() { - return value_; - } - /** - * repeated string value = 1; - */ - public int getValueCount() { - return value_.size(); - } - /** - * repeated string value = 1; - */ - public java.lang.String getValue(int index) { - return value_.get(index); - } - /** - * repeated string value = 1; - */ - public com.google.protobuf.ByteString - getValueBytes(int index) { - return value_.getByteString(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 < value_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < value_.size(); i++) { - dataSize += computeStringSizeNoTag(value_.getRaw(i)); - } - size += dataSize; - size += 1 * getValueList().size(); - } - 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 org.tensorflow.proto.framework.CollectionDef.NodeList)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.CollectionDef.NodeList other = (org.tensorflow.proto.framework.CollectionDef.NodeList) obj; - - if (!getValueList() - .equals(other.getValueList())) 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 (getValueCount() > 0) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValueList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.CollectionDef.NodeList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CollectionDef.NodeList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CollectionDef.NodeList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CollectionDef.NodeList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CollectionDef.NodeList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CollectionDef.NodeList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CollectionDef.NodeList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CollectionDef.NodeList 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 org.tensorflow.proto.framework.CollectionDef.NodeList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CollectionDef.NodeList 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 org.tensorflow.proto.framework.CollectionDef.NodeList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CollectionDef.NodeList 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(org.tensorflow.proto.framework.CollectionDef.NodeList 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; - } - /** - *
-     * NodeList is used for collecting nodes in graph. For example
-     * collection_def {
-     *   key: "summaries"
-     *   value {
-     *     node_list {
-     *       value: "input_producer/ScalarSummary:0"
-     *       value: "shuffle_batch/ScalarSummary:0"
-     *       value: "ImageSummary:0"
-     *     }
-     *   }
-     * 
- * - * Protobuf type {@code tensorflow.CollectionDef.NodeList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef.NodeList) - org.tensorflow.proto.framework.CollectionDef.NodeListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_NodeList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_NodeList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CollectionDef.NodeList.class, org.tensorflow.proto.framework.CollectionDef.NodeList.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.CollectionDef.NodeList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - value_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_NodeList_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef.NodeList getDefaultInstanceForType() { - return org.tensorflow.proto.framework.CollectionDef.NodeList.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef.NodeList build() { - org.tensorflow.proto.framework.CollectionDef.NodeList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef.NodeList buildPartial() { - org.tensorflow.proto.framework.CollectionDef.NodeList result = new org.tensorflow.proto.framework.CollectionDef.NodeList(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - value_ = value_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.value_ = value_; - 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 org.tensorflow.proto.framework.CollectionDef.NodeList) { - return mergeFrom((org.tensorflow.proto.framework.CollectionDef.NodeList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.CollectionDef.NodeList other) { - if (other == org.tensorflow.proto.framework.CollectionDef.NodeList.getDefaultInstance()) return this; - if (!other.value_.isEmpty()) { - if (value_.isEmpty()) { - value_ = other.value_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValueIsMutable(); - value_.addAll(other.value_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.CollectionDef.NodeList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.CollectionDef.NodeList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList value_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureValueIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - value_ = new com.google.protobuf.LazyStringArrayList(value_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string value = 1; - */ - public com.google.protobuf.ProtocolStringList - getValueList() { - return value_.getUnmodifiableView(); - } - /** - * repeated string value = 1; - */ - public int getValueCount() { - return value_.size(); - } - /** - * repeated string value = 1; - */ - public java.lang.String getValue(int index) { - return value_.get(index); - } - /** - * repeated string value = 1; - */ - public com.google.protobuf.ByteString - getValueBytes(int index) { - return value_.getByteString(index); - } - /** - * repeated string value = 1; - */ - public Builder setValue( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValueIsMutable(); - value_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string value = 1; - */ - public Builder addValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValueIsMutable(); - value_.add(value); - onChanged(); - return this; - } - /** - * repeated string value = 1; - */ - public Builder addAllValue( - java.lang.Iterable values) { - ensureValueIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, value_); - onChanged(); - return this; - } - /** - * repeated string value = 1; - */ - public Builder clearValue() { - value_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string value = 1; - */ - public Builder addValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValueIsMutable(); - value_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.CollectionDef.NodeList) - } - - // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef.NodeList) - private static final org.tensorflow.proto.framework.CollectionDef.NodeList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.CollectionDef.NodeList(); - } - - public static org.tensorflow.proto.framework.CollectionDef.NodeList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef.NodeList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BytesListOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.CollectionDef.BytesList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated bytes value = 1; - */ - java.util.List getValueList(); - /** - * repeated bytes value = 1; - */ - int getValueCount(); - /** - * repeated bytes value = 1; - */ - com.google.protobuf.ByteString getValue(int index); - } - /** - *
-   * BytesList is used for collecting strings and serialized protobufs. For
-   * example:
-   * collection_def {
-   *   key: "trainable_variables"
-   *   value {
-   *     bytes_list {
-   *       value: "\n\017conv1/weights:0\022\024conv1/weights/Assign
-   *              \032\024conv1/weights/read:0"
-   *       value: "\n\016conv1/biases:0\022\023conv1/biases/Assign\032
-   *              \023conv1/biases/read:0"
-   *     }
-   *   }
-   * }
-   * 
- * - * Protobuf type {@code tensorflow.CollectionDef.BytesList} - */ - public static final class BytesList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef.BytesList) - BytesListOrBuilder { - private static final long serialVersionUID = 0L; - // Use BytesList.newBuilder() to construct. - private BytesList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BytesList() { - value_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BytesList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BytesList( - 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)) { - value_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - value_.add(input.readBytes()); - 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)) { - value_ = java.util.Collections.unmodifiableList(value_); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_BytesList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_BytesList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CollectionDef.BytesList.class, org.tensorflow.proto.framework.CollectionDef.BytesList.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private java.util.List value_; - /** - * repeated bytes value = 1; - */ - public java.util.List - getValueList() { - return value_; - } - /** - * repeated bytes value = 1; - */ - public int getValueCount() { - return value_.size(); - } - /** - * repeated bytes value = 1; - */ - public com.google.protobuf.ByteString getValue(int index) { - return value_.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 < value_.size(); i++) { - output.writeBytes(1, value_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < value_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(value_.get(i)); - } - size += dataSize; - size += 1 * getValueList().size(); - } - 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 org.tensorflow.proto.framework.CollectionDef.BytesList)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.CollectionDef.BytesList other = (org.tensorflow.proto.framework.CollectionDef.BytesList) obj; - - if (!getValueList() - .equals(other.getValueList())) 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 (getValueCount() > 0) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValueList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.CollectionDef.BytesList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CollectionDef.BytesList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CollectionDef.BytesList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CollectionDef.BytesList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CollectionDef.BytesList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CollectionDef.BytesList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CollectionDef.BytesList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CollectionDef.BytesList 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 org.tensorflow.proto.framework.CollectionDef.BytesList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CollectionDef.BytesList 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 org.tensorflow.proto.framework.CollectionDef.BytesList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CollectionDef.BytesList 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(org.tensorflow.proto.framework.CollectionDef.BytesList 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; - } - /** - *
-     * BytesList is used for collecting strings and serialized protobufs. For
-     * example:
-     * collection_def {
-     *   key: "trainable_variables"
-     *   value {
-     *     bytes_list {
-     *       value: "\n\017conv1/weights:0\022\024conv1/weights/Assign
-     *              \032\024conv1/weights/read:0"
-     *       value: "\n\016conv1/biases:0\022\023conv1/biases/Assign\032
-     *              \023conv1/biases/read:0"
-     *     }
-     *   }
-     * }
-     * 
- * - * Protobuf type {@code tensorflow.CollectionDef.BytesList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef.BytesList) - org.tensorflow.proto.framework.CollectionDef.BytesListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_BytesList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_BytesList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CollectionDef.BytesList.class, org.tensorflow.proto.framework.CollectionDef.BytesList.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.CollectionDef.BytesList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - value_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_BytesList_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef.BytesList getDefaultInstanceForType() { - return org.tensorflow.proto.framework.CollectionDef.BytesList.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef.BytesList build() { - org.tensorflow.proto.framework.CollectionDef.BytesList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef.BytesList buildPartial() { - org.tensorflow.proto.framework.CollectionDef.BytesList result = new org.tensorflow.proto.framework.CollectionDef.BytesList(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - value_ = java.util.Collections.unmodifiableList(value_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.value_ = value_; - 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 org.tensorflow.proto.framework.CollectionDef.BytesList) { - return mergeFrom((org.tensorflow.proto.framework.CollectionDef.BytesList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.CollectionDef.BytesList other) { - if (other == org.tensorflow.proto.framework.CollectionDef.BytesList.getDefaultInstance()) return this; - if (!other.value_.isEmpty()) { - if (value_.isEmpty()) { - value_ = other.value_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValueIsMutable(); - value_.addAll(other.value_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.CollectionDef.BytesList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.CollectionDef.BytesList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List value_ = java.util.Collections.emptyList(); - private void ensureValueIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - value_ = new java.util.ArrayList(value_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated bytes value = 1; - */ - public java.util.List - getValueList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(value_) : value_; - } - /** - * repeated bytes value = 1; - */ - public int getValueCount() { - return value_.size(); - } - /** - * repeated bytes value = 1; - */ - public com.google.protobuf.ByteString getValue(int index) { - return value_.get(index); - } - /** - * repeated bytes value = 1; - */ - public Builder setValue( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValueIsMutable(); - value_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes value = 1; - */ - public Builder addValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValueIsMutable(); - value_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes value = 1; - */ - public Builder addAllValue( - java.lang.Iterable values) { - ensureValueIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, value_); - onChanged(); - return this; - } - /** - * repeated bytes value = 1; - */ - public Builder clearValue() { - value_ = java.util.Collections.emptyList(); - bitField0_ = (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:tensorflow.CollectionDef.BytesList) - } - - // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef.BytesList) - private static final org.tensorflow.proto.framework.CollectionDef.BytesList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.CollectionDef.BytesList(); - } - - public static org.tensorflow.proto.framework.CollectionDef.BytesList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BytesList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef.BytesList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface Int64ListOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.CollectionDef.Int64List) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int64 value = 1 [packed = true]; - */ - java.util.List getValueList(); - /** - * repeated int64 value = 1 [packed = true]; - */ - int getValueCount(); - /** - * repeated int64 value = 1 [packed = true]; - */ - long getValue(int index); - } - /** - *
-   * Int64List is used for collecting int, int64 and long values.
-   * 
- * - * Protobuf type {@code tensorflow.CollectionDef.Int64List} - */ - public static final class Int64List extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef.Int64List) - Int64ListOrBuilder { - private static final long serialVersionUID = 0L; - // Use Int64List.newBuilder() to construct. - private Int64List(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Int64List() { - value_ = emptyLongList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Int64List(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Int64List( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - value_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - value_.addLong(input.readInt64()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - value_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - value_.addLong(input.readInt64()); - } - input.popLimit(limit); - 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)) { - value_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_Int64List_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_Int64List_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CollectionDef.Int64List.class, org.tensorflow.proto.framework.CollectionDef.Int64List.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private com.google.protobuf.Internal.LongList value_; - /** - * repeated int64 value = 1 [packed = true]; - */ - public java.util.List - getValueList() { - return value_; - } - /** - * repeated int64 value = 1 [packed = true]; - */ - public int getValueCount() { - return value_.size(); - } - /** - * repeated int64 value = 1 [packed = true]; - */ - public long getValue(int index) { - return value_.getLong(index); - } - private int valueMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValueList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valueMemoizedSerializedSize); - } - for (int i = 0; i < value_.size(); i++) { - output.writeInt64NoTag(value_.getLong(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < value_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(value_.getLong(i)); - } - size += dataSize; - if (!getValueList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valueMemoizedSerializedSize = dataSize; - } - 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 org.tensorflow.proto.framework.CollectionDef.Int64List)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.CollectionDef.Int64List other = (org.tensorflow.proto.framework.CollectionDef.Int64List) obj; - - if (!getValueList() - .equals(other.getValueList())) 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 (getValueCount() > 0) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValueList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.CollectionDef.Int64List parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CollectionDef.Int64List parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CollectionDef.Int64List parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CollectionDef.Int64List parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CollectionDef.Int64List parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CollectionDef.Int64List parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CollectionDef.Int64List parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CollectionDef.Int64List 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 org.tensorflow.proto.framework.CollectionDef.Int64List parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CollectionDef.Int64List 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 org.tensorflow.proto.framework.CollectionDef.Int64List parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CollectionDef.Int64List 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(org.tensorflow.proto.framework.CollectionDef.Int64List 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; - } - /** - *
-     * Int64List is used for collecting int, int64 and long values.
-     * 
- * - * Protobuf type {@code tensorflow.CollectionDef.Int64List} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef.Int64List) - org.tensorflow.proto.framework.CollectionDef.Int64ListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_Int64List_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_Int64List_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CollectionDef.Int64List.class, org.tensorflow.proto.framework.CollectionDef.Int64List.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.CollectionDef.Int64List.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - value_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_Int64List_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef.Int64List getDefaultInstanceForType() { - return org.tensorflow.proto.framework.CollectionDef.Int64List.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef.Int64List build() { - org.tensorflow.proto.framework.CollectionDef.Int64List result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef.Int64List buildPartial() { - org.tensorflow.proto.framework.CollectionDef.Int64List result = new org.tensorflow.proto.framework.CollectionDef.Int64List(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - value_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.value_ = value_; - 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 org.tensorflow.proto.framework.CollectionDef.Int64List) { - return mergeFrom((org.tensorflow.proto.framework.CollectionDef.Int64List)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.CollectionDef.Int64List other) { - if (other == org.tensorflow.proto.framework.CollectionDef.Int64List.getDefaultInstance()) return this; - if (!other.value_.isEmpty()) { - if (value_.isEmpty()) { - value_ = other.value_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValueIsMutable(); - value_.addAll(other.value_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.CollectionDef.Int64List parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.CollectionDef.Int64List) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.Internal.LongList value_ = emptyLongList(); - private void ensureValueIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - value_ = mutableCopy(value_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated int64 value = 1 [packed = true]; - */ - public java.util.List - getValueList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(value_) : value_; - } - /** - * repeated int64 value = 1 [packed = true]; - */ - public int getValueCount() { - return value_.size(); - } - /** - * repeated int64 value = 1 [packed = true]; - */ - public long getValue(int index) { - return value_.getLong(index); - } - /** - * repeated int64 value = 1 [packed = true]; - */ - public Builder setValue( - int index, long value) { - ensureValueIsMutable(); - value_.setLong(index, value); - onChanged(); - return this; - } - /** - * repeated int64 value = 1 [packed = true]; - */ - public Builder addValue(long value) { - ensureValueIsMutable(); - value_.addLong(value); - onChanged(); - return this; - } - /** - * repeated int64 value = 1 [packed = true]; - */ - public Builder addAllValue( - java.lang.Iterable values) { - ensureValueIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, value_); - onChanged(); - return this; - } - /** - * repeated int64 value = 1 [packed = true]; - */ - public Builder clearValue() { - value_ = emptyLongList(); - bitField0_ = (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:tensorflow.CollectionDef.Int64List) - } - - // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef.Int64List) - private static final org.tensorflow.proto.framework.CollectionDef.Int64List DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.CollectionDef.Int64List(); - } - - public static org.tensorflow.proto.framework.CollectionDef.Int64List getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int64List parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Int64List(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef.Int64List getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FloatListOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.CollectionDef.FloatList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated float value = 1 [packed = true]; - */ - java.util.List getValueList(); - /** - * repeated float value = 1 [packed = true]; - */ - int getValueCount(); - /** - * repeated float value = 1 [packed = true]; - */ - float getValue(int index); - } - /** - *
-   * FloatList is used for collecting float values.
-   * 
- * - * Protobuf type {@code tensorflow.CollectionDef.FloatList} - */ - public static final class FloatList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef.FloatList) - FloatListOrBuilder { - private static final long serialVersionUID = 0L; - // Use FloatList.newBuilder() to construct. - private FloatList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FloatList() { - value_ = emptyFloatList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FloatList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FloatList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 13: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - value_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - value_.addFloat(input.readFloat()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - value_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - value_.addFloat(input.readFloat()); - } - input.popLimit(limit); - 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)) { - value_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_FloatList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_FloatList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CollectionDef.FloatList.class, org.tensorflow.proto.framework.CollectionDef.FloatList.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private com.google.protobuf.Internal.FloatList value_; - /** - * repeated float value = 1 [packed = true]; - */ - public java.util.List - getValueList() { - return value_; - } - /** - * repeated float value = 1 [packed = true]; - */ - public int getValueCount() { - return value_.size(); - } - /** - * repeated float value = 1 [packed = true]; - */ - public float getValue(int index) { - return value_.getFloat(index); - } - private int valueMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValueList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valueMemoizedSerializedSize); - } - for (int i = 0; i < value_.size(); i++) { - output.writeFloatNoTag(value_.getFloat(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - dataSize = 4 * getValueList().size(); - size += dataSize; - if (!getValueList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valueMemoizedSerializedSize = dataSize; - } - 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 org.tensorflow.proto.framework.CollectionDef.FloatList)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.CollectionDef.FloatList other = (org.tensorflow.proto.framework.CollectionDef.FloatList) obj; - - if (!getValueList() - .equals(other.getValueList())) 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 (getValueCount() > 0) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValueList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.CollectionDef.FloatList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CollectionDef.FloatList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CollectionDef.FloatList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CollectionDef.FloatList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CollectionDef.FloatList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CollectionDef.FloatList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CollectionDef.FloatList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CollectionDef.FloatList 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 org.tensorflow.proto.framework.CollectionDef.FloatList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CollectionDef.FloatList 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 org.tensorflow.proto.framework.CollectionDef.FloatList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CollectionDef.FloatList 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(org.tensorflow.proto.framework.CollectionDef.FloatList 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; - } - /** - *
-     * FloatList is used for collecting float values.
-     * 
- * - * Protobuf type {@code tensorflow.CollectionDef.FloatList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef.FloatList) - org.tensorflow.proto.framework.CollectionDef.FloatListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_FloatList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_FloatList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CollectionDef.FloatList.class, org.tensorflow.proto.framework.CollectionDef.FloatList.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.CollectionDef.FloatList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - value_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_FloatList_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef.FloatList getDefaultInstanceForType() { - return org.tensorflow.proto.framework.CollectionDef.FloatList.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef.FloatList build() { - org.tensorflow.proto.framework.CollectionDef.FloatList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef.FloatList buildPartial() { - org.tensorflow.proto.framework.CollectionDef.FloatList result = new org.tensorflow.proto.framework.CollectionDef.FloatList(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - value_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.value_ = value_; - 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 org.tensorflow.proto.framework.CollectionDef.FloatList) { - return mergeFrom((org.tensorflow.proto.framework.CollectionDef.FloatList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.CollectionDef.FloatList other) { - if (other == org.tensorflow.proto.framework.CollectionDef.FloatList.getDefaultInstance()) return this; - if (!other.value_.isEmpty()) { - if (value_.isEmpty()) { - value_ = other.value_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValueIsMutable(); - value_.addAll(other.value_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.CollectionDef.FloatList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.CollectionDef.FloatList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.Internal.FloatList value_ = emptyFloatList(); - private void ensureValueIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - value_ = mutableCopy(value_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated float value = 1 [packed = true]; - */ - public java.util.List - getValueList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(value_) : value_; - } - /** - * repeated float value = 1 [packed = true]; - */ - public int getValueCount() { - return value_.size(); - } - /** - * repeated float value = 1 [packed = true]; - */ - public float getValue(int index) { - return value_.getFloat(index); - } - /** - * repeated float value = 1 [packed = true]; - */ - public Builder setValue( - int index, float value) { - ensureValueIsMutable(); - value_.setFloat(index, value); - onChanged(); - return this; - } - /** - * repeated float value = 1 [packed = true]; - */ - public Builder addValue(float value) { - ensureValueIsMutable(); - value_.addFloat(value); - onChanged(); - return this; - } - /** - * repeated float value = 1 [packed = true]; - */ - public Builder addAllValue( - java.lang.Iterable values) { - ensureValueIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, value_); - onChanged(); - return this; - } - /** - * repeated float value = 1 [packed = true]; - */ - public Builder clearValue() { - value_ = emptyFloatList(); - bitField0_ = (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:tensorflow.CollectionDef.FloatList) - } - - // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef.FloatList) - private static final org.tensorflow.proto.framework.CollectionDef.FloatList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.CollectionDef.FloatList(); - } - - public static org.tensorflow.proto.framework.CollectionDef.FloatList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FloatList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef.FloatList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AnyListOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.CollectionDef.AnyList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .google.protobuf.Any value = 1; - */ - java.util.List - getValueList(); - /** - * repeated .google.protobuf.Any value = 1; - */ - com.google.protobuf.Any getValue(int index); - /** - * repeated .google.protobuf.Any value = 1; - */ - int getValueCount(); - /** - * repeated .google.protobuf.Any value = 1; - */ - java.util.List - getValueOrBuilderList(); - /** - * repeated .google.protobuf.Any value = 1; - */ - com.google.protobuf.AnyOrBuilder getValueOrBuilder( - int index); - } - /** - *
-   * AnyList is used for collecting Any protos.
-   * 
- * - * Protobuf type {@code tensorflow.CollectionDef.AnyList} - */ - public static final class AnyList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef.AnyList) - AnyListOrBuilder { - private static final long serialVersionUID = 0L; - // Use AnyList.newBuilder() to construct. - private AnyList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AnyList() { - value_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AnyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AnyList( - 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)) { - value_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - value_.add( - input.readMessage(com.google.protobuf.Any.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)) { - value_ = java.util.Collections.unmodifiableList(value_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_AnyList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_AnyList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CollectionDef.AnyList.class, org.tensorflow.proto.framework.CollectionDef.AnyList.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private java.util.List value_; - /** - * repeated .google.protobuf.Any value = 1; - */ - public java.util.List getValueList() { - return value_; - } - /** - * repeated .google.protobuf.Any value = 1; - */ - public java.util.List - getValueOrBuilderList() { - return value_; - } - /** - * repeated .google.protobuf.Any value = 1; - */ - public int getValueCount() { - return value_.size(); - } - /** - * repeated .google.protobuf.Any value = 1; - */ - public com.google.protobuf.Any getValue(int index) { - return value_.get(index); - } - /** - * repeated .google.protobuf.Any value = 1; - */ - public com.google.protobuf.AnyOrBuilder getValueOrBuilder( - int index) { - return value_.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 < value_.size(); i++) { - output.writeMessage(1, value_.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 < value_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, value_.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 org.tensorflow.proto.framework.CollectionDef.AnyList)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.CollectionDef.AnyList other = (org.tensorflow.proto.framework.CollectionDef.AnyList) obj; - - if (!getValueList() - .equals(other.getValueList())) 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 (getValueCount() > 0) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValueList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.CollectionDef.AnyList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CollectionDef.AnyList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CollectionDef.AnyList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CollectionDef.AnyList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CollectionDef.AnyList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CollectionDef.AnyList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CollectionDef.AnyList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CollectionDef.AnyList 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 org.tensorflow.proto.framework.CollectionDef.AnyList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CollectionDef.AnyList 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 org.tensorflow.proto.framework.CollectionDef.AnyList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CollectionDef.AnyList 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(org.tensorflow.proto.framework.CollectionDef.AnyList 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; - } - /** - *
-     * AnyList is used for collecting Any protos.
-     * 
- * - * Protobuf type {@code tensorflow.CollectionDef.AnyList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef.AnyList) - org.tensorflow.proto.framework.CollectionDef.AnyListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_AnyList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_AnyList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CollectionDef.AnyList.class, org.tensorflow.proto.framework.CollectionDef.AnyList.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.CollectionDef.AnyList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getValueFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (valueBuilder_ == null) { - value_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - valueBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_AnyList_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef.AnyList getDefaultInstanceForType() { - return org.tensorflow.proto.framework.CollectionDef.AnyList.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef.AnyList build() { - org.tensorflow.proto.framework.CollectionDef.AnyList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef.AnyList buildPartial() { - org.tensorflow.proto.framework.CollectionDef.AnyList result = new org.tensorflow.proto.framework.CollectionDef.AnyList(this); - int from_bitField0_ = bitField0_; - if (valueBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - value_ = java.util.Collections.unmodifiableList(value_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.value_ = value_; - } else { - result.value_ = valueBuilder_.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 org.tensorflow.proto.framework.CollectionDef.AnyList) { - return mergeFrom((org.tensorflow.proto.framework.CollectionDef.AnyList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.CollectionDef.AnyList other) { - if (other == org.tensorflow.proto.framework.CollectionDef.AnyList.getDefaultInstance()) return this; - if (valueBuilder_ == null) { - if (!other.value_.isEmpty()) { - if (value_.isEmpty()) { - value_ = other.value_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValueIsMutable(); - value_.addAll(other.value_); - } - onChanged(); - } - } else { - if (!other.value_.isEmpty()) { - if (valueBuilder_.isEmpty()) { - valueBuilder_.dispose(); - valueBuilder_ = null; - value_ = other.value_; - bitField0_ = (bitField0_ & ~0x00000001); - valueBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValueFieldBuilder() : null; - } else { - valueBuilder_.addAllMessages(other.value_); - } - } - } - 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 { - org.tensorflow.proto.framework.CollectionDef.AnyList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.CollectionDef.AnyList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List value_ = - java.util.Collections.emptyList(); - private void ensureValueIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - value_ = new java.util.ArrayList(value_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> valueBuilder_; - - /** - * repeated .google.protobuf.Any value = 1; - */ - public java.util.List getValueList() { - if (valueBuilder_ == null) { - return java.util.Collections.unmodifiableList(value_); - } else { - return valueBuilder_.getMessageList(); - } - } - /** - * repeated .google.protobuf.Any value = 1; - */ - public int getValueCount() { - if (valueBuilder_ == null) { - return value_.size(); - } else { - return valueBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.Any value = 1; - */ - public com.google.protobuf.Any getValue(int index) { - if (valueBuilder_ == null) { - return value_.get(index); - } else { - return valueBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.Any value = 1; - */ - public Builder setValue( - int index, com.google.protobuf.Any value) { - if (valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValueIsMutable(); - value_.set(index, value); - onChanged(); - } else { - valueBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.Any value = 1; - */ - public Builder setValue( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (valueBuilder_ == null) { - ensureValueIsMutable(); - value_.set(index, builderForValue.build()); - onChanged(); - } else { - valueBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Any value = 1; - */ - public Builder addValue(com.google.protobuf.Any value) { - if (valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValueIsMutable(); - value_.add(value); - onChanged(); - } else { - valueBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.Any value = 1; - */ - public Builder addValue( - int index, com.google.protobuf.Any value) { - if (valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValueIsMutable(); - value_.add(index, value); - onChanged(); - } else { - valueBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.Any value = 1; - */ - public Builder addValue( - com.google.protobuf.Any.Builder builderForValue) { - if (valueBuilder_ == null) { - ensureValueIsMutable(); - value_.add(builderForValue.build()); - onChanged(); - } else { - valueBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Any value = 1; - */ - public Builder addValue( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (valueBuilder_ == null) { - ensureValueIsMutable(); - value_.add(index, builderForValue.build()); - onChanged(); - } else { - valueBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Any value = 1; - */ - public Builder addAllValue( - java.lang.Iterable values) { - if (valueBuilder_ == null) { - ensureValueIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, value_); - onChanged(); - } else { - valueBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.Any value = 1; - */ - public Builder clearValue() { - if (valueBuilder_ == null) { - value_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - valueBuilder_.clear(); - } - return this; - } - /** - * repeated .google.protobuf.Any value = 1; - */ - public Builder removeValue(int index) { - if (valueBuilder_ == null) { - ensureValueIsMutable(); - value_.remove(index); - onChanged(); - } else { - valueBuilder_.remove(index); - } - return this; - } - /** - * repeated .google.protobuf.Any value = 1; - */ - public com.google.protobuf.Any.Builder getValueBuilder( - int index) { - return getValueFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.Any value = 1; - */ - public com.google.protobuf.AnyOrBuilder getValueOrBuilder( - int index) { - if (valueBuilder_ == null) { - return value_.get(index); } else { - return valueBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.Any value = 1; - */ - public java.util.List - getValueOrBuilderList() { - if (valueBuilder_ != null) { - return valueBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(value_); - } - } - /** - * repeated .google.protobuf.Any value = 1; - */ - public com.google.protobuf.Any.Builder addValueBuilder() { - return getValueFieldBuilder().addBuilder( - com.google.protobuf.Any.getDefaultInstance()); - } - /** - * repeated .google.protobuf.Any value = 1; - */ - public com.google.protobuf.Any.Builder addValueBuilder( - int index) { - return getValueFieldBuilder().addBuilder( - index, com.google.protobuf.Any.getDefaultInstance()); - } - /** - * repeated .google.protobuf.Any value = 1; - */ - public java.util.List - getValueBuilderList() { - return getValueFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - valueBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - value_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - value_ = null; - } - return valueBuilder_; - } - @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:tensorflow.CollectionDef.AnyList) - } - - // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef.AnyList) - private static final org.tensorflow.proto.framework.CollectionDef.AnyList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.CollectionDef.AnyList(); - } - - public static org.tensorflow.proto.framework.CollectionDef.AnyList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnyList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnyList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef.AnyList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int kindCase_ = 0; - private java.lang.Object kind_; - public enum KindCase - implements com.google.protobuf.Internal.EnumLite { - NODE_LIST(1), - BYTES_LIST(2), - INT64_LIST(3), - FLOAT_LIST(4), - ANY_LIST(5), - KIND_NOT_SET(0); - private final int value; - private KindCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static KindCase valueOf(int value) { - return forNumber(value); - } - - public static KindCase forNumber(int value) { - switch (value) { - case 1: return NODE_LIST; - case 2: return BYTES_LIST; - case 3: return INT64_LIST; - case 4: return FLOAT_LIST; - case 5: return ANY_LIST; - case 0: return KIND_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public KindCase - getKindCase() { - return KindCase.forNumber( - kindCase_); - } - - public static final int NODE_LIST_FIELD_NUMBER = 1; - /** - * .tensorflow.CollectionDef.NodeList node_list = 1; - */ - public boolean hasNodeList() { - return kindCase_ == 1; - } - /** - * .tensorflow.CollectionDef.NodeList node_list = 1; - */ - public org.tensorflow.proto.framework.CollectionDef.NodeList getNodeList() { - if (kindCase_ == 1) { - return (org.tensorflow.proto.framework.CollectionDef.NodeList) kind_; - } - return org.tensorflow.proto.framework.CollectionDef.NodeList.getDefaultInstance(); - } - /** - * .tensorflow.CollectionDef.NodeList node_list = 1; - */ - public org.tensorflow.proto.framework.CollectionDef.NodeListOrBuilder getNodeListOrBuilder() { - if (kindCase_ == 1) { - return (org.tensorflow.proto.framework.CollectionDef.NodeList) kind_; - } - return org.tensorflow.proto.framework.CollectionDef.NodeList.getDefaultInstance(); - } - - public static final int BYTES_LIST_FIELD_NUMBER = 2; - /** - * .tensorflow.CollectionDef.BytesList bytes_list = 2; - */ - public boolean hasBytesList() { - return kindCase_ == 2; - } - /** - * .tensorflow.CollectionDef.BytesList bytes_list = 2; - */ - public org.tensorflow.proto.framework.CollectionDef.BytesList getBytesList() { - if (kindCase_ == 2) { - return (org.tensorflow.proto.framework.CollectionDef.BytesList) kind_; - } - return org.tensorflow.proto.framework.CollectionDef.BytesList.getDefaultInstance(); - } - /** - * .tensorflow.CollectionDef.BytesList bytes_list = 2; - */ - public org.tensorflow.proto.framework.CollectionDef.BytesListOrBuilder getBytesListOrBuilder() { - if (kindCase_ == 2) { - return (org.tensorflow.proto.framework.CollectionDef.BytesList) kind_; - } - return org.tensorflow.proto.framework.CollectionDef.BytesList.getDefaultInstance(); - } - - public static final int INT64_LIST_FIELD_NUMBER = 3; - /** - * .tensorflow.CollectionDef.Int64List int64_list = 3; - */ - public boolean hasInt64List() { - return kindCase_ == 3; - } - /** - * .tensorflow.CollectionDef.Int64List int64_list = 3; - */ - public org.tensorflow.proto.framework.CollectionDef.Int64List getInt64List() { - if (kindCase_ == 3) { - return (org.tensorflow.proto.framework.CollectionDef.Int64List) kind_; - } - return org.tensorflow.proto.framework.CollectionDef.Int64List.getDefaultInstance(); - } - /** - * .tensorflow.CollectionDef.Int64List int64_list = 3; - */ - public org.tensorflow.proto.framework.CollectionDef.Int64ListOrBuilder getInt64ListOrBuilder() { - if (kindCase_ == 3) { - return (org.tensorflow.proto.framework.CollectionDef.Int64List) kind_; - } - return org.tensorflow.proto.framework.CollectionDef.Int64List.getDefaultInstance(); - } - - public static final int FLOAT_LIST_FIELD_NUMBER = 4; - /** - * .tensorflow.CollectionDef.FloatList float_list = 4; - */ - public boolean hasFloatList() { - return kindCase_ == 4; - } - /** - * .tensorflow.CollectionDef.FloatList float_list = 4; - */ - public org.tensorflow.proto.framework.CollectionDef.FloatList getFloatList() { - if (kindCase_ == 4) { - return (org.tensorflow.proto.framework.CollectionDef.FloatList) kind_; - } - return org.tensorflow.proto.framework.CollectionDef.FloatList.getDefaultInstance(); - } - /** - * .tensorflow.CollectionDef.FloatList float_list = 4; - */ - public org.tensorflow.proto.framework.CollectionDef.FloatListOrBuilder getFloatListOrBuilder() { - if (kindCase_ == 4) { - return (org.tensorflow.proto.framework.CollectionDef.FloatList) kind_; - } - return org.tensorflow.proto.framework.CollectionDef.FloatList.getDefaultInstance(); - } - - public static final int ANY_LIST_FIELD_NUMBER = 5; - /** - * .tensorflow.CollectionDef.AnyList any_list = 5; - */ - public boolean hasAnyList() { - return kindCase_ == 5; - } - /** - * .tensorflow.CollectionDef.AnyList any_list = 5; - */ - public org.tensorflow.proto.framework.CollectionDef.AnyList getAnyList() { - if (kindCase_ == 5) { - return (org.tensorflow.proto.framework.CollectionDef.AnyList) kind_; - } - return org.tensorflow.proto.framework.CollectionDef.AnyList.getDefaultInstance(); - } - /** - * .tensorflow.CollectionDef.AnyList any_list = 5; - */ - public org.tensorflow.proto.framework.CollectionDef.AnyListOrBuilder getAnyListOrBuilder() { - if (kindCase_ == 5) { - return (org.tensorflow.proto.framework.CollectionDef.AnyList) kind_; - } - return org.tensorflow.proto.framework.CollectionDef.AnyList.getDefaultInstance(); - } - - 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 (kindCase_ == 1) { - output.writeMessage(1, (org.tensorflow.proto.framework.CollectionDef.NodeList) kind_); - } - if (kindCase_ == 2) { - output.writeMessage(2, (org.tensorflow.proto.framework.CollectionDef.BytesList) kind_); - } - if (kindCase_ == 3) { - output.writeMessage(3, (org.tensorflow.proto.framework.CollectionDef.Int64List) kind_); - } - if (kindCase_ == 4) { - output.writeMessage(4, (org.tensorflow.proto.framework.CollectionDef.FloatList) kind_); - } - if (kindCase_ == 5) { - output.writeMessage(5, (org.tensorflow.proto.framework.CollectionDef.AnyList) kind_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (kindCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (org.tensorflow.proto.framework.CollectionDef.NodeList) kind_); - } - if (kindCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (org.tensorflow.proto.framework.CollectionDef.BytesList) kind_); - } - if (kindCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (org.tensorflow.proto.framework.CollectionDef.Int64List) kind_); - } - if (kindCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (org.tensorflow.proto.framework.CollectionDef.FloatList) kind_); - } - if (kindCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (org.tensorflow.proto.framework.CollectionDef.AnyList) kind_); - } - 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 org.tensorflow.proto.framework.CollectionDef)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.CollectionDef other = (org.tensorflow.proto.framework.CollectionDef) obj; - - if (!getKindCase().equals(other.getKindCase())) return false; - switch (kindCase_) { - case 1: - if (!getNodeList() - .equals(other.getNodeList())) return false; - break; - case 2: - if (!getBytesList() - .equals(other.getBytesList())) return false; - break; - case 3: - if (!getInt64List() - .equals(other.getInt64List())) return false; - break; - case 4: - if (!getFloatList() - .equals(other.getFloatList())) return false; - break; - case 5: - if (!getAnyList() - .equals(other.getAnyList())) return false; - break; - case 0: - default: - } - 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(); - switch (kindCase_) { - case 1: - hash = (37 * hash) + NODE_LIST_FIELD_NUMBER; - hash = (53 * hash) + getNodeList().hashCode(); - break; - case 2: - hash = (37 * hash) + BYTES_LIST_FIELD_NUMBER; - hash = (53 * hash) + getBytesList().hashCode(); - break; - case 3: - hash = (37 * hash) + INT64_LIST_FIELD_NUMBER; - hash = (53 * hash) + getInt64List().hashCode(); - break; - case 4: - hash = (37 * hash) + FLOAT_LIST_FIELD_NUMBER; - hash = (53 * hash) + getFloatList().hashCode(); - break; - case 5: - hash = (37 * hash) + ANY_LIST_FIELD_NUMBER; - hash = (53 * hash) + getAnyList().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.CollectionDef parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CollectionDef parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CollectionDef parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CollectionDef parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CollectionDef parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CollectionDef parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CollectionDef parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CollectionDef 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 org.tensorflow.proto.framework.CollectionDef parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CollectionDef 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 org.tensorflow.proto.framework.CollectionDef parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CollectionDef 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(org.tensorflow.proto.framework.CollectionDef 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; - } - /** - *
-   * CollectionDef should cover most collections.
-   * To add a user-defined collection, do one of the following:
-   * 1. For simple data types, such as string, int, float:
-   *      tf.add_to_collection("your_collection_name", your_simple_value)
-   *    strings will be stored as bytes_list.
-   * 2. For Protobuf types, there are three ways to add them:
-   *    1) tf.add_to_collection("your_collection_name",
-   *         your_proto.SerializeToString())
-   *       collection_def {
-   *         key: "user_defined_bytes_collection"
-   *         value {
-   *           bytes_list {
-   *             value: "queue_name: \"test_queue\"\n"
-   *           }
-   *         }
-   *       }
-   *  or
-   *    2) tf.add_to_collection("your_collection_name", str(your_proto))
-   *       collection_def {
-   *         key: "user_defined_string_collection"
-   *         value {
-   *          bytes_list {
-   *             value: "\n\ntest_queue"
-   *           }
-   *         }
-   *       }
-   *  or
-   *    3) any_buf = any_pb2.Any()
-   *       tf.add_to_collection("your_collection_name",
-   *         any_buf.Pack(your_proto))
-   *       collection_def {
-   *         key: "user_defined_any_collection"
-   *         value {
-   *           any_list {
-   *             value {
-   *               type_url: "type.googleapis.com/tensorflow.QueueRunnerDef"
-   *               value: "\n\ntest_queue"
-   *             }
-   *           }
-   *         }
-   *       }
-   * 3. For Python objects, implement to_proto() and from_proto(), and register
-   *    them in the following manner:
-   *    ops.register_proto_function("your_collection_name",
-   *                                proto_type,
-   *                                to_proto=YourPythonObject.to_proto,
-   *                                from_proto=YourPythonObject.from_proto)
-   *    These functions will be invoked to serialize and de-serialize the
-   *    collection. For example,
-   *    ops.register_proto_function(ops.GraphKeys.GLOBAL_VARIABLES,
-   *                                proto_type=variable_pb2.VariableDef,
-   *                                to_proto=Variable.to_proto,
-   *                                from_proto=Variable.from_proto)
-   * 
- * - * Protobuf type {@code tensorflow.CollectionDef} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef) - org.tensorflow.proto.framework.CollectionDefOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CollectionDef.class, org.tensorflow.proto.framework.CollectionDef.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.CollectionDef.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - kindCase_ = 0; - kind_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef getDefaultInstanceForType() { - return org.tensorflow.proto.framework.CollectionDef.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef build() { - org.tensorflow.proto.framework.CollectionDef result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef buildPartial() { - org.tensorflow.proto.framework.CollectionDef result = new org.tensorflow.proto.framework.CollectionDef(this); - if (kindCase_ == 1) { - if (nodeListBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = nodeListBuilder_.build(); - } - } - if (kindCase_ == 2) { - if (bytesListBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = bytesListBuilder_.build(); - } - } - if (kindCase_ == 3) { - if (int64ListBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = int64ListBuilder_.build(); - } - } - if (kindCase_ == 4) { - if (floatListBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = floatListBuilder_.build(); - } - } - if (kindCase_ == 5) { - if (anyListBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = anyListBuilder_.build(); - } - } - result.kindCase_ = kindCase_; - 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 org.tensorflow.proto.framework.CollectionDef) { - return mergeFrom((org.tensorflow.proto.framework.CollectionDef)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.CollectionDef other) { - if (other == org.tensorflow.proto.framework.CollectionDef.getDefaultInstance()) return this; - switch (other.getKindCase()) { - case NODE_LIST: { - mergeNodeList(other.getNodeList()); - break; - } - case BYTES_LIST: { - mergeBytesList(other.getBytesList()); - break; - } - case INT64_LIST: { - mergeInt64List(other.getInt64List()); - break; - } - case FLOAT_LIST: { - mergeFloatList(other.getFloatList()); - break; - } - case ANY_LIST: { - mergeAnyList(other.getAnyList()); - break; - } - case KIND_NOT_SET: { - break; - } - } - 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 { - org.tensorflow.proto.framework.CollectionDef parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.CollectionDef) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int kindCase_ = 0; - private java.lang.Object kind_; - public KindCase - getKindCase() { - return KindCase.forNumber( - kindCase_); - } - - public Builder clearKind() { - kindCase_ = 0; - kind_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CollectionDef.NodeList, org.tensorflow.proto.framework.CollectionDef.NodeList.Builder, org.tensorflow.proto.framework.CollectionDef.NodeListOrBuilder> nodeListBuilder_; - /** - * .tensorflow.CollectionDef.NodeList node_list = 1; - */ - public boolean hasNodeList() { - return kindCase_ == 1; - } - /** - * .tensorflow.CollectionDef.NodeList node_list = 1; - */ - public org.tensorflow.proto.framework.CollectionDef.NodeList getNodeList() { - if (nodeListBuilder_ == null) { - if (kindCase_ == 1) { - return (org.tensorflow.proto.framework.CollectionDef.NodeList) kind_; - } - return org.tensorflow.proto.framework.CollectionDef.NodeList.getDefaultInstance(); - } else { - if (kindCase_ == 1) { - return nodeListBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.CollectionDef.NodeList.getDefaultInstance(); - } - } - /** - * .tensorflow.CollectionDef.NodeList node_list = 1; - */ - public Builder setNodeList(org.tensorflow.proto.framework.CollectionDef.NodeList value) { - if (nodeListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - nodeListBuilder_.setMessage(value); - } - kindCase_ = 1; - return this; - } - /** - * .tensorflow.CollectionDef.NodeList node_list = 1; - */ - public Builder setNodeList( - org.tensorflow.proto.framework.CollectionDef.NodeList.Builder builderForValue) { - if (nodeListBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - nodeListBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 1; - return this; - } - /** - * .tensorflow.CollectionDef.NodeList node_list = 1; - */ - public Builder mergeNodeList(org.tensorflow.proto.framework.CollectionDef.NodeList value) { - if (nodeListBuilder_ == null) { - if (kindCase_ == 1 && - kind_ != org.tensorflow.proto.framework.CollectionDef.NodeList.getDefaultInstance()) { - kind_ = org.tensorflow.proto.framework.CollectionDef.NodeList.newBuilder((org.tensorflow.proto.framework.CollectionDef.NodeList) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 1) { - nodeListBuilder_.mergeFrom(value); - } - nodeListBuilder_.setMessage(value); - } - kindCase_ = 1; - return this; - } - /** - * .tensorflow.CollectionDef.NodeList node_list = 1; - */ - public Builder clearNodeList() { - if (nodeListBuilder_ == null) { - if (kindCase_ == 1) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 1) { - kindCase_ = 0; - kind_ = null; - } - nodeListBuilder_.clear(); - } - return this; - } - /** - * .tensorflow.CollectionDef.NodeList node_list = 1; - */ - public org.tensorflow.proto.framework.CollectionDef.NodeList.Builder getNodeListBuilder() { - return getNodeListFieldBuilder().getBuilder(); - } - /** - * .tensorflow.CollectionDef.NodeList node_list = 1; - */ - public org.tensorflow.proto.framework.CollectionDef.NodeListOrBuilder getNodeListOrBuilder() { - if ((kindCase_ == 1) && (nodeListBuilder_ != null)) { - return nodeListBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 1) { - return (org.tensorflow.proto.framework.CollectionDef.NodeList) kind_; - } - return org.tensorflow.proto.framework.CollectionDef.NodeList.getDefaultInstance(); - } - } - /** - * .tensorflow.CollectionDef.NodeList node_list = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CollectionDef.NodeList, org.tensorflow.proto.framework.CollectionDef.NodeList.Builder, org.tensorflow.proto.framework.CollectionDef.NodeListOrBuilder> - getNodeListFieldBuilder() { - if (nodeListBuilder_ == null) { - if (!(kindCase_ == 1)) { - kind_ = org.tensorflow.proto.framework.CollectionDef.NodeList.getDefaultInstance(); - } - nodeListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CollectionDef.NodeList, org.tensorflow.proto.framework.CollectionDef.NodeList.Builder, org.tensorflow.proto.framework.CollectionDef.NodeListOrBuilder>( - (org.tensorflow.proto.framework.CollectionDef.NodeList) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 1; - onChanged();; - return nodeListBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CollectionDef.BytesList, org.tensorflow.proto.framework.CollectionDef.BytesList.Builder, org.tensorflow.proto.framework.CollectionDef.BytesListOrBuilder> bytesListBuilder_; - /** - * .tensorflow.CollectionDef.BytesList bytes_list = 2; - */ - public boolean hasBytesList() { - return kindCase_ == 2; - } - /** - * .tensorflow.CollectionDef.BytesList bytes_list = 2; - */ - public org.tensorflow.proto.framework.CollectionDef.BytesList getBytesList() { - if (bytesListBuilder_ == null) { - if (kindCase_ == 2) { - return (org.tensorflow.proto.framework.CollectionDef.BytesList) kind_; - } - return org.tensorflow.proto.framework.CollectionDef.BytesList.getDefaultInstance(); - } else { - if (kindCase_ == 2) { - return bytesListBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.CollectionDef.BytesList.getDefaultInstance(); - } - } - /** - * .tensorflow.CollectionDef.BytesList bytes_list = 2; - */ - public Builder setBytesList(org.tensorflow.proto.framework.CollectionDef.BytesList value) { - if (bytesListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - bytesListBuilder_.setMessage(value); - } - kindCase_ = 2; - return this; - } - /** - * .tensorflow.CollectionDef.BytesList bytes_list = 2; - */ - public Builder setBytesList( - org.tensorflow.proto.framework.CollectionDef.BytesList.Builder builderForValue) { - if (bytesListBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - bytesListBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 2; - return this; - } - /** - * .tensorflow.CollectionDef.BytesList bytes_list = 2; - */ - public Builder mergeBytesList(org.tensorflow.proto.framework.CollectionDef.BytesList value) { - if (bytesListBuilder_ == null) { - if (kindCase_ == 2 && - kind_ != org.tensorflow.proto.framework.CollectionDef.BytesList.getDefaultInstance()) { - kind_ = org.tensorflow.proto.framework.CollectionDef.BytesList.newBuilder((org.tensorflow.proto.framework.CollectionDef.BytesList) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 2) { - bytesListBuilder_.mergeFrom(value); - } - bytesListBuilder_.setMessage(value); - } - kindCase_ = 2; - return this; - } - /** - * .tensorflow.CollectionDef.BytesList bytes_list = 2; - */ - public Builder clearBytesList() { - if (bytesListBuilder_ == null) { - if (kindCase_ == 2) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 2) { - kindCase_ = 0; - kind_ = null; - } - bytesListBuilder_.clear(); - } - return this; - } - /** - * .tensorflow.CollectionDef.BytesList bytes_list = 2; - */ - public org.tensorflow.proto.framework.CollectionDef.BytesList.Builder getBytesListBuilder() { - return getBytesListFieldBuilder().getBuilder(); - } - /** - * .tensorflow.CollectionDef.BytesList bytes_list = 2; - */ - public org.tensorflow.proto.framework.CollectionDef.BytesListOrBuilder getBytesListOrBuilder() { - if ((kindCase_ == 2) && (bytesListBuilder_ != null)) { - return bytesListBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 2) { - return (org.tensorflow.proto.framework.CollectionDef.BytesList) kind_; - } - return org.tensorflow.proto.framework.CollectionDef.BytesList.getDefaultInstance(); - } - } - /** - * .tensorflow.CollectionDef.BytesList bytes_list = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CollectionDef.BytesList, org.tensorflow.proto.framework.CollectionDef.BytesList.Builder, org.tensorflow.proto.framework.CollectionDef.BytesListOrBuilder> - getBytesListFieldBuilder() { - if (bytesListBuilder_ == null) { - if (!(kindCase_ == 2)) { - kind_ = org.tensorflow.proto.framework.CollectionDef.BytesList.getDefaultInstance(); - } - bytesListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CollectionDef.BytesList, org.tensorflow.proto.framework.CollectionDef.BytesList.Builder, org.tensorflow.proto.framework.CollectionDef.BytesListOrBuilder>( - (org.tensorflow.proto.framework.CollectionDef.BytesList) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 2; - onChanged();; - return bytesListBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CollectionDef.Int64List, org.tensorflow.proto.framework.CollectionDef.Int64List.Builder, org.tensorflow.proto.framework.CollectionDef.Int64ListOrBuilder> int64ListBuilder_; - /** - * .tensorflow.CollectionDef.Int64List int64_list = 3; - */ - public boolean hasInt64List() { - return kindCase_ == 3; - } - /** - * .tensorflow.CollectionDef.Int64List int64_list = 3; - */ - public org.tensorflow.proto.framework.CollectionDef.Int64List getInt64List() { - if (int64ListBuilder_ == null) { - if (kindCase_ == 3) { - return (org.tensorflow.proto.framework.CollectionDef.Int64List) kind_; - } - return org.tensorflow.proto.framework.CollectionDef.Int64List.getDefaultInstance(); - } else { - if (kindCase_ == 3) { - return int64ListBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.CollectionDef.Int64List.getDefaultInstance(); - } - } - /** - * .tensorflow.CollectionDef.Int64List int64_list = 3; - */ - public Builder setInt64List(org.tensorflow.proto.framework.CollectionDef.Int64List value) { - if (int64ListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - int64ListBuilder_.setMessage(value); - } - kindCase_ = 3; - return this; - } - /** - * .tensorflow.CollectionDef.Int64List int64_list = 3; - */ - public Builder setInt64List( - org.tensorflow.proto.framework.CollectionDef.Int64List.Builder builderForValue) { - if (int64ListBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - int64ListBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 3; - return this; - } - /** - * .tensorflow.CollectionDef.Int64List int64_list = 3; - */ - public Builder mergeInt64List(org.tensorflow.proto.framework.CollectionDef.Int64List value) { - if (int64ListBuilder_ == null) { - if (kindCase_ == 3 && - kind_ != org.tensorflow.proto.framework.CollectionDef.Int64List.getDefaultInstance()) { - kind_ = org.tensorflow.proto.framework.CollectionDef.Int64List.newBuilder((org.tensorflow.proto.framework.CollectionDef.Int64List) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 3) { - int64ListBuilder_.mergeFrom(value); - } - int64ListBuilder_.setMessage(value); - } - kindCase_ = 3; - return this; - } - /** - * .tensorflow.CollectionDef.Int64List int64_list = 3; - */ - public Builder clearInt64List() { - if (int64ListBuilder_ == null) { - if (kindCase_ == 3) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 3) { - kindCase_ = 0; - kind_ = null; - } - int64ListBuilder_.clear(); - } - return this; - } - /** - * .tensorflow.CollectionDef.Int64List int64_list = 3; - */ - public org.tensorflow.proto.framework.CollectionDef.Int64List.Builder getInt64ListBuilder() { - return getInt64ListFieldBuilder().getBuilder(); - } - /** - * .tensorflow.CollectionDef.Int64List int64_list = 3; - */ - public org.tensorflow.proto.framework.CollectionDef.Int64ListOrBuilder getInt64ListOrBuilder() { - if ((kindCase_ == 3) && (int64ListBuilder_ != null)) { - return int64ListBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 3) { - return (org.tensorflow.proto.framework.CollectionDef.Int64List) kind_; - } - return org.tensorflow.proto.framework.CollectionDef.Int64List.getDefaultInstance(); - } - } - /** - * .tensorflow.CollectionDef.Int64List int64_list = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CollectionDef.Int64List, org.tensorflow.proto.framework.CollectionDef.Int64List.Builder, org.tensorflow.proto.framework.CollectionDef.Int64ListOrBuilder> - getInt64ListFieldBuilder() { - if (int64ListBuilder_ == null) { - if (!(kindCase_ == 3)) { - kind_ = org.tensorflow.proto.framework.CollectionDef.Int64List.getDefaultInstance(); - } - int64ListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CollectionDef.Int64List, org.tensorflow.proto.framework.CollectionDef.Int64List.Builder, org.tensorflow.proto.framework.CollectionDef.Int64ListOrBuilder>( - (org.tensorflow.proto.framework.CollectionDef.Int64List) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 3; - onChanged();; - return int64ListBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CollectionDef.FloatList, org.tensorflow.proto.framework.CollectionDef.FloatList.Builder, org.tensorflow.proto.framework.CollectionDef.FloatListOrBuilder> floatListBuilder_; - /** - * .tensorflow.CollectionDef.FloatList float_list = 4; - */ - public boolean hasFloatList() { - return kindCase_ == 4; - } - /** - * .tensorflow.CollectionDef.FloatList float_list = 4; - */ - public org.tensorflow.proto.framework.CollectionDef.FloatList getFloatList() { - if (floatListBuilder_ == null) { - if (kindCase_ == 4) { - return (org.tensorflow.proto.framework.CollectionDef.FloatList) kind_; - } - return org.tensorflow.proto.framework.CollectionDef.FloatList.getDefaultInstance(); - } else { - if (kindCase_ == 4) { - return floatListBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.CollectionDef.FloatList.getDefaultInstance(); - } - } - /** - * .tensorflow.CollectionDef.FloatList float_list = 4; - */ - public Builder setFloatList(org.tensorflow.proto.framework.CollectionDef.FloatList value) { - if (floatListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - floatListBuilder_.setMessage(value); - } - kindCase_ = 4; - return this; - } - /** - * .tensorflow.CollectionDef.FloatList float_list = 4; - */ - public Builder setFloatList( - org.tensorflow.proto.framework.CollectionDef.FloatList.Builder builderForValue) { - if (floatListBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - floatListBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 4; - return this; - } - /** - * .tensorflow.CollectionDef.FloatList float_list = 4; - */ - public Builder mergeFloatList(org.tensorflow.proto.framework.CollectionDef.FloatList value) { - if (floatListBuilder_ == null) { - if (kindCase_ == 4 && - kind_ != org.tensorflow.proto.framework.CollectionDef.FloatList.getDefaultInstance()) { - kind_ = org.tensorflow.proto.framework.CollectionDef.FloatList.newBuilder((org.tensorflow.proto.framework.CollectionDef.FloatList) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 4) { - floatListBuilder_.mergeFrom(value); - } - floatListBuilder_.setMessage(value); - } - kindCase_ = 4; - return this; - } - /** - * .tensorflow.CollectionDef.FloatList float_list = 4; - */ - public Builder clearFloatList() { - if (floatListBuilder_ == null) { - if (kindCase_ == 4) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 4) { - kindCase_ = 0; - kind_ = null; - } - floatListBuilder_.clear(); - } - return this; - } - /** - * .tensorflow.CollectionDef.FloatList float_list = 4; - */ - public org.tensorflow.proto.framework.CollectionDef.FloatList.Builder getFloatListBuilder() { - return getFloatListFieldBuilder().getBuilder(); - } - /** - * .tensorflow.CollectionDef.FloatList float_list = 4; - */ - public org.tensorflow.proto.framework.CollectionDef.FloatListOrBuilder getFloatListOrBuilder() { - if ((kindCase_ == 4) && (floatListBuilder_ != null)) { - return floatListBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 4) { - return (org.tensorflow.proto.framework.CollectionDef.FloatList) kind_; - } - return org.tensorflow.proto.framework.CollectionDef.FloatList.getDefaultInstance(); - } - } - /** - * .tensorflow.CollectionDef.FloatList float_list = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CollectionDef.FloatList, org.tensorflow.proto.framework.CollectionDef.FloatList.Builder, org.tensorflow.proto.framework.CollectionDef.FloatListOrBuilder> - getFloatListFieldBuilder() { - if (floatListBuilder_ == null) { - if (!(kindCase_ == 4)) { - kind_ = org.tensorflow.proto.framework.CollectionDef.FloatList.getDefaultInstance(); - } - floatListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CollectionDef.FloatList, org.tensorflow.proto.framework.CollectionDef.FloatList.Builder, org.tensorflow.proto.framework.CollectionDef.FloatListOrBuilder>( - (org.tensorflow.proto.framework.CollectionDef.FloatList) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 4; - onChanged();; - return floatListBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CollectionDef.AnyList, org.tensorflow.proto.framework.CollectionDef.AnyList.Builder, org.tensorflow.proto.framework.CollectionDef.AnyListOrBuilder> anyListBuilder_; - /** - * .tensorflow.CollectionDef.AnyList any_list = 5; - */ - public boolean hasAnyList() { - return kindCase_ == 5; - } - /** - * .tensorflow.CollectionDef.AnyList any_list = 5; - */ - public org.tensorflow.proto.framework.CollectionDef.AnyList getAnyList() { - if (anyListBuilder_ == null) { - if (kindCase_ == 5) { - return (org.tensorflow.proto.framework.CollectionDef.AnyList) kind_; - } - return org.tensorflow.proto.framework.CollectionDef.AnyList.getDefaultInstance(); - } else { - if (kindCase_ == 5) { - return anyListBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.CollectionDef.AnyList.getDefaultInstance(); - } - } - /** - * .tensorflow.CollectionDef.AnyList any_list = 5; - */ - public Builder setAnyList(org.tensorflow.proto.framework.CollectionDef.AnyList value) { - if (anyListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - anyListBuilder_.setMessage(value); - } - kindCase_ = 5; - return this; - } - /** - * .tensorflow.CollectionDef.AnyList any_list = 5; - */ - public Builder setAnyList( - org.tensorflow.proto.framework.CollectionDef.AnyList.Builder builderForValue) { - if (anyListBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - anyListBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 5; - return this; - } - /** - * .tensorflow.CollectionDef.AnyList any_list = 5; - */ - public Builder mergeAnyList(org.tensorflow.proto.framework.CollectionDef.AnyList value) { - if (anyListBuilder_ == null) { - if (kindCase_ == 5 && - kind_ != org.tensorflow.proto.framework.CollectionDef.AnyList.getDefaultInstance()) { - kind_ = org.tensorflow.proto.framework.CollectionDef.AnyList.newBuilder((org.tensorflow.proto.framework.CollectionDef.AnyList) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 5) { - anyListBuilder_.mergeFrom(value); - } - anyListBuilder_.setMessage(value); - } - kindCase_ = 5; - return this; - } - /** - * .tensorflow.CollectionDef.AnyList any_list = 5; - */ - public Builder clearAnyList() { - if (anyListBuilder_ == null) { - if (kindCase_ == 5) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 5) { - kindCase_ = 0; - kind_ = null; - } - anyListBuilder_.clear(); - } - return this; - } - /** - * .tensorflow.CollectionDef.AnyList any_list = 5; - */ - public org.tensorflow.proto.framework.CollectionDef.AnyList.Builder getAnyListBuilder() { - return getAnyListFieldBuilder().getBuilder(); - } - /** - * .tensorflow.CollectionDef.AnyList any_list = 5; - */ - public org.tensorflow.proto.framework.CollectionDef.AnyListOrBuilder getAnyListOrBuilder() { - if ((kindCase_ == 5) && (anyListBuilder_ != null)) { - return anyListBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 5) { - return (org.tensorflow.proto.framework.CollectionDef.AnyList) kind_; - } - return org.tensorflow.proto.framework.CollectionDef.AnyList.getDefaultInstance(); - } - } - /** - * .tensorflow.CollectionDef.AnyList any_list = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CollectionDef.AnyList, org.tensorflow.proto.framework.CollectionDef.AnyList.Builder, org.tensorflow.proto.framework.CollectionDef.AnyListOrBuilder> - getAnyListFieldBuilder() { - if (anyListBuilder_ == null) { - if (!(kindCase_ == 5)) { - kind_ = org.tensorflow.proto.framework.CollectionDef.AnyList.getDefaultInstance(); - } - anyListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CollectionDef.AnyList, org.tensorflow.proto.framework.CollectionDef.AnyList.Builder, org.tensorflow.proto.framework.CollectionDef.AnyListOrBuilder>( - (org.tensorflow.proto.framework.CollectionDef.AnyList) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 5; - onChanged();; - return anyListBuilder_; - } - @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:tensorflow.CollectionDef) - } - - // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef) - private static final org.tensorflow.proto.framework.CollectionDef DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.CollectionDef(); - } - - public static org.tensorflow.proto.framework.CollectionDef getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CollectionDef parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CollectionDef(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CollectionDefOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CollectionDefOrBuilder.java deleted file mode 100644 index f3d5fc7ce61..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CollectionDefOrBuilder.java +++ /dev/null @@ -1,76 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/meta_graph.proto - -package org.tensorflow.proto.framework; - -public interface CollectionDefOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.CollectionDef) - com.google.protobuf.MessageOrBuilder { - - /** - * .tensorflow.CollectionDef.NodeList node_list = 1; - */ - boolean hasNodeList(); - /** - * .tensorflow.CollectionDef.NodeList node_list = 1; - */ - org.tensorflow.proto.framework.CollectionDef.NodeList getNodeList(); - /** - * .tensorflow.CollectionDef.NodeList node_list = 1; - */ - org.tensorflow.proto.framework.CollectionDef.NodeListOrBuilder getNodeListOrBuilder(); - - /** - * .tensorflow.CollectionDef.BytesList bytes_list = 2; - */ - boolean hasBytesList(); - /** - * .tensorflow.CollectionDef.BytesList bytes_list = 2; - */ - org.tensorflow.proto.framework.CollectionDef.BytesList getBytesList(); - /** - * .tensorflow.CollectionDef.BytesList bytes_list = 2; - */ - org.tensorflow.proto.framework.CollectionDef.BytesListOrBuilder getBytesListOrBuilder(); - - /** - * .tensorflow.CollectionDef.Int64List int64_list = 3; - */ - boolean hasInt64List(); - /** - * .tensorflow.CollectionDef.Int64List int64_list = 3; - */ - org.tensorflow.proto.framework.CollectionDef.Int64List getInt64List(); - /** - * .tensorflow.CollectionDef.Int64List int64_list = 3; - */ - org.tensorflow.proto.framework.CollectionDef.Int64ListOrBuilder getInt64ListOrBuilder(); - - /** - * .tensorflow.CollectionDef.FloatList float_list = 4; - */ - boolean hasFloatList(); - /** - * .tensorflow.CollectionDef.FloatList float_list = 4; - */ - org.tensorflow.proto.framework.CollectionDef.FloatList getFloatList(); - /** - * .tensorflow.CollectionDef.FloatList float_list = 4; - */ - org.tensorflow.proto.framework.CollectionDef.FloatListOrBuilder getFloatListOrBuilder(); - - /** - * .tensorflow.CollectionDef.AnyList any_list = 5; - */ - boolean hasAnyList(); - /** - * .tensorflow.CollectionDef.AnyList any_list = 5; - */ - org.tensorflow.proto.framework.CollectionDef.AnyList getAnyList(); - /** - * .tensorflow.CollectionDef.AnyList any_list = 5; - */ - org.tensorflow.proto.framework.CollectionDef.AnyListOrBuilder getAnyListOrBuilder(); - - public org.tensorflow.proto.framework.CollectionDef.KindCase getKindCase(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CompositeTensorVariant.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CompositeTensorVariant.java deleted file mode 100644 index 2ccec36143b..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CompositeTensorVariant.java +++ /dev/null @@ -1,682 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/composite_tensor_variant.proto - -package org.tensorflow.proto.framework; - -public final class CompositeTensorVariant { - private CompositeTensorVariant() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CompositeTensorVariantMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.CompositeTensorVariantMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * .tensorflow.TypeSpecProto type_spec_proto = 1; - */ - boolean hasTypeSpecProto(); - /** - * .tensorflow.TypeSpecProto type_spec_proto = 1; - */ - org.tensorflow.proto.framework.TypeSpecProto getTypeSpecProto(); - /** - * .tensorflow.TypeSpecProto type_spec_proto = 1; - */ - org.tensorflow.proto.framework.TypeSpecProtoOrBuilder getTypeSpecProtoOrBuilder(); - } - /** - *
-   * Metadata for CompositeTensorVariant, used when serializing as Variant.
-   * We define a new message here (rather than directly using TypeSpecProto for
-   * the metadata string) to retain flexibility to change the metadata encoding
-   * to support additional features.
-   * 
- * - * Protobuf type {@code tensorflow.CompositeTensorVariantMetadata} - */ - public static final class CompositeTensorVariantMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.CompositeTensorVariantMetadata) - CompositeTensorVariantMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use CompositeTensorVariantMetadata.newBuilder() to construct. - private CompositeTensorVariantMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CompositeTensorVariantMetadata() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CompositeTensorVariantMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CompositeTensorVariantMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.tensorflow.proto.framework.TypeSpecProto.Builder subBuilder = null; - if (typeSpecProto_ != null) { - subBuilder = typeSpecProto_.toBuilder(); - } - typeSpecProto_ = input.readMessage(org.tensorflow.proto.framework.TypeSpecProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(typeSpecProto_); - typeSpecProto_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.CompositeTensorVariant.internal_static_tensorflow_CompositeTensorVariantMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.CompositeTensorVariant.internal_static_tensorflow_CompositeTensorVariantMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata.class, org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata.Builder.class); - } - - public static final int TYPE_SPEC_PROTO_FIELD_NUMBER = 1; - private org.tensorflow.proto.framework.TypeSpecProto typeSpecProto_; - /** - * .tensorflow.TypeSpecProto type_spec_proto = 1; - */ - public boolean hasTypeSpecProto() { - return typeSpecProto_ != null; - } - /** - * .tensorflow.TypeSpecProto type_spec_proto = 1; - */ - public org.tensorflow.proto.framework.TypeSpecProto getTypeSpecProto() { - return typeSpecProto_ == null ? org.tensorflow.proto.framework.TypeSpecProto.getDefaultInstance() : typeSpecProto_; - } - /** - * .tensorflow.TypeSpecProto type_spec_proto = 1; - */ - public org.tensorflow.proto.framework.TypeSpecProtoOrBuilder getTypeSpecProtoOrBuilder() { - return getTypeSpecProto(); - } - - 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 (typeSpecProto_ != null) { - output.writeMessage(1, getTypeSpecProto()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (typeSpecProto_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTypeSpecProto()); - } - 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 org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata other = (org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata) obj; - - if (hasTypeSpecProto() != other.hasTypeSpecProto()) return false; - if (hasTypeSpecProto()) { - if (!getTypeSpecProto() - .equals(other.getTypeSpecProto())) 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 (hasTypeSpecProto()) { - hash = (37 * hash) + TYPE_SPEC_PROTO_FIELD_NUMBER; - hash = (53 * hash) + getTypeSpecProto().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata 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 org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata 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 org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata 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(org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata 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; - } - /** - *
-     * Metadata for CompositeTensorVariant, used when serializing as Variant.
-     * We define a new message here (rather than directly using TypeSpecProto for
-     * the metadata string) to retain flexibility to change the metadata encoding
-     * to support additional features.
-     * 
- * - * Protobuf type {@code tensorflow.CompositeTensorVariantMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.CompositeTensorVariantMetadata) - org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.CompositeTensorVariant.internal_static_tensorflow_CompositeTensorVariantMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.CompositeTensorVariant.internal_static_tensorflow_CompositeTensorVariantMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata.class, org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (typeSpecProtoBuilder_ == null) { - typeSpecProto_ = null; - } else { - typeSpecProto_ = null; - typeSpecProtoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.CompositeTensorVariant.internal_static_tensorflow_CompositeTensorVariantMetadata_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata getDefaultInstanceForType() { - return org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata build() { - org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata buildPartial() { - org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata result = new org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata(this); - if (typeSpecProtoBuilder_ == null) { - result.typeSpecProto_ = typeSpecProto_; - } else { - result.typeSpecProto_ = typeSpecProtoBuilder_.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 org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata) { - return mergeFrom((org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata other) { - if (other == org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata.getDefaultInstance()) return this; - if (other.hasTypeSpecProto()) { - mergeTypeSpecProto(other.getTypeSpecProto()); - } - 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 { - org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private org.tensorflow.proto.framework.TypeSpecProto typeSpecProto_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TypeSpecProto, org.tensorflow.proto.framework.TypeSpecProto.Builder, org.tensorflow.proto.framework.TypeSpecProtoOrBuilder> typeSpecProtoBuilder_; - /** - * .tensorflow.TypeSpecProto type_spec_proto = 1; - */ - public boolean hasTypeSpecProto() { - return typeSpecProtoBuilder_ != null || typeSpecProto_ != null; - } - /** - * .tensorflow.TypeSpecProto type_spec_proto = 1; - */ - public org.tensorflow.proto.framework.TypeSpecProto getTypeSpecProto() { - if (typeSpecProtoBuilder_ == null) { - return typeSpecProto_ == null ? org.tensorflow.proto.framework.TypeSpecProto.getDefaultInstance() : typeSpecProto_; - } else { - return typeSpecProtoBuilder_.getMessage(); - } - } - /** - * .tensorflow.TypeSpecProto type_spec_proto = 1; - */ - public Builder setTypeSpecProto(org.tensorflow.proto.framework.TypeSpecProto value) { - if (typeSpecProtoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeSpecProto_ = value; - onChanged(); - } else { - typeSpecProtoBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.TypeSpecProto type_spec_proto = 1; - */ - public Builder setTypeSpecProto( - org.tensorflow.proto.framework.TypeSpecProto.Builder builderForValue) { - if (typeSpecProtoBuilder_ == null) { - typeSpecProto_ = builderForValue.build(); - onChanged(); - } else { - typeSpecProtoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.TypeSpecProto type_spec_proto = 1; - */ - public Builder mergeTypeSpecProto(org.tensorflow.proto.framework.TypeSpecProto value) { - if (typeSpecProtoBuilder_ == null) { - if (typeSpecProto_ != null) { - typeSpecProto_ = - org.tensorflow.proto.framework.TypeSpecProto.newBuilder(typeSpecProto_).mergeFrom(value).buildPartial(); - } else { - typeSpecProto_ = value; - } - onChanged(); - } else { - typeSpecProtoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.TypeSpecProto type_spec_proto = 1; - */ - public Builder clearTypeSpecProto() { - if (typeSpecProtoBuilder_ == null) { - typeSpecProto_ = null; - onChanged(); - } else { - typeSpecProto_ = null; - typeSpecProtoBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.TypeSpecProto type_spec_proto = 1; - */ - public org.tensorflow.proto.framework.TypeSpecProto.Builder getTypeSpecProtoBuilder() { - - onChanged(); - return getTypeSpecProtoFieldBuilder().getBuilder(); - } - /** - * .tensorflow.TypeSpecProto type_spec_proto = 1; - */ - public org.tensorflow.proto.framework.TypeSpecProtoOrBuilder getTypeSpecProtoOrBuilder() { - if (typeSpecProtoBuilder_ != null) { - return typeSpecProtoBuilder_.getMessageOrBuilder(); - } else { - return typeSpecProto_ == null ? - org.tensorflow.proto.framework.TypeSpecProto.getDefaultInstance() : typeSpecProto_; - } - } - /** - * .tensorflow.TypeSpecProto type_spec_proto = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TypeSpecProto, org.tensorflow.proto.framework.TypeSpecProto.Builder, org.tensorflow.proto.framework.TypeSpecProtoOrBuilder> - getTypeSpecProtoFieldBuilder() { - if (typeSpecProtoBuilder_ == null) { - typeSpecProtoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TypeSpecProto, org.tensorflow.proto.framework.TypeSpecProto.Builder, org.tensorflow.proto.framework.TypeSpecProtoOrBuilder>( - getTypeSpecProto(), - getParentForChildren(), - isClean()); - typeSpecProto_ = null; - } - return typeSpecProtoBuilder_; - } - @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:tensorflow.CompositeTensorVariantMetadata) - } - - // @@protoc_insertion_point(class_scope:tensorflow.CompositeTensorVariantMetadata) - private static final org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata(); - } - - public static org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompositeTensorVariantMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CompositeTensorVariantMetadata(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CompositeTensorVariant.CompositeTensorVariantMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_CompositeTensorVariantMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_CompositeTensorVariantMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n7tensorflow/core/protobuf/composite_ten" + - "sor_variant.proto\022\ntensorflow\032%tensorflo" + - "w/core/protobuf/struct.proto\"T\n\036Composit" + - "eTensorVariantMetadata\0222\n\017type_spec_prot" + - "o\030\001 \001(\0132\031.tensorflow.TypeSpecProtoBw\n\036or" + - "g.tensorflow.proto.frameworkZUgithub.com" + - "/tensorflow/tensorflow/tensorflow/go/cor" + - "e/protobuf/for_core_protos_go_protob\006pro" + - "to3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.framework.StructProtos.getDescriptor(), - }); - internal_static_tensorflow_CompositeTensorVariantMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tensorflow_CompositeTensorVariantMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_CompositeTensorVariantMetadata_descriptor, - new java.lang.String[] { "TypeSpecProto", }); - org.tensorflow.proto.framework.StructProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ConfigProtos.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ConfigProtos.java deleted file mode 100644 index 9975f5fd421..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ConfigProtos.java +++ /dev/null @@ -1,415 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/config.proto - -package org.tensorflow.proto.framework; - -public final class ConfigProtos { - private ConfigProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_GPUOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_GPUOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_GPUOptions_Experimental_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_GPUOptions_Experimental_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_GPUOptions_Experimental_VirtualDevices_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_GPUOptions_Experimental_VirtualDevices_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_OptimizerOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_OptimizerOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_GraphOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_GraphOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_ThreadPoolOptionProto_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_ThreadPoolOptionProto_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_RPCOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_RPCOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_SessionMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_SessionMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_ConfigProto_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_ConfigProto_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_ConfigProto_DeviceCountEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_ConfigProto_DeviceCountEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_ConfigProto_Experimental_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_ConfigProto_Experimental_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_RunOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_RunOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_RunOptions_Experimental_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_RunOptions_Experimental_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_RunOptions_Experimental_RunHandlerPoolOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_RunOptions_Experimental_RunHandlerPoolOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_RunMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_RunMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_RunMetadata_FunctionGraphs_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_RunMetadata_FunctionGraphs_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_TensorConnection_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_TensorConnection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_CallableOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_CallableOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_CallableOptions_FeedDevicesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_CallableOptions_FeedDevicesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_CallableOptions_FetchDevicesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_CallableOptions_FetchDevicesEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n%tensorflow/core/protobuf/config.proto\022" + - "\ntensorflow\032*tensorflow/core/framework/c" + - "ost_graph.proto\032%tensorflow/core/framewo" + - "rk/graph.proto\032*tensorflow/core/framewor" + - "k/step_stats.proto\032&tensorflow/core/prot" + - "obuf/cluster.proto\0322tensorflow/core/prot" + - "obuf/coordination_config.proto\032$tensorfl" + - "ow/core/protobuf/debug.proto\032.tensorflow" + - "/core/protobuf/rewriter_config.proto\"\327\006\n" + - "\nGPUOptions\022\'\n\037per_process_gpu_memory_fr" + - "action\030\001 \001(\001\022\024\n\014allow_growth\030\004 \001(\010\022\026\n\016al" + - "locator_type\030\002 \001(\t\022\037\n\027deferred_deletion_" + - "bytes\030\003 \001(\003\022\033\n\023visible_device_list\030\005 \001(\t" + - "\022\"\n\032polling_active_delay_usecs\030\006 \001(\005\022$\n\034" + - "polling_inactive_delay_msecs\030\007 \001(\005\022\034\n\024fo" + - "rce_gpu_compatible\030\010 \001(\010\0229\n\014experimental" + - "\030\t \001(\0132#.tensorflow.GPUOptions.Experimen" + - "tal\032\220\004\n\014Experimental\022K\n\017virtual_devices\030" + - "\001 \003(\01322.tensorflow.GPUOptions.Experiment" + - "al.VirtualDevices\022\032\n\022use_unified_memory\030" + - "\002 \001(\010\022#\n\033num_dev_to_dev_copy_streams\030\003 \001" + - "(\005\022\035\n\025collective_ring_order\030\004 \001(\t\022\035\n\025tim" + - "estamped_allocator\030\005 \001(\010\022#\n\033kernel_track" + - "er_max_interval\030\007 \001(\005\022 \n\030kernel_tracker_" + - "max_bytes\030\010 \001(\005\022\"\n\032kernel_tracker_max_pe" + - "nding\030\t \001(\005\022\'\n\037internal_fragmentation_fr" + - "action\030\n \001(\001\022\035\n\025use_cuda_malloc_async\030\013 " + - "\001(\010\022,\n$disallow_retry_on_allocation_fail" + - "ure\030\014 \001(\010\032S\n\016VirtualDevices\022\027\n\017memory_li" + - "mit_mb\030\001 \003(\002\022\020\n\010priority\030\002 \003(\005\022\026\n\016device" + - "_ordinal\030\003 \003(\005\"\235\003\n\020OptimizerOptions\022+\n#d" + - "o_common_subexpression_elimination\030\001 \001(\010" + - "\022\033\n\023do_constant_folding\030\002 \001(\010\022$\n\034max_fol" + - "ded_constant_in_bytes\030\006 \001(\003\022\034\n\024do_functi" + - "on_inlining\030\004 \001(\010\0225\n\topt_level\030\003 \001(\0162\".t" + - "ensorflow.OptimizerOptions.Level\022E\n\020glob" + - "al_jit_level\030\005 \001(\0162+.tensorflow.Optimize" + - "rOptions.GlobalJitLevel\022\026\n\016cpu_global_ji" + - "t\030\007 \001(\010\" \n\005Level\022\006\n\002L1\020\000\022\017\n\002L0\020\377\377\377\377\377\377\377\377\377" + - "\001\"C\n\016GlobalJitLevel\022\013\n\007DEFAULT\020\000\022\020\n\003OFF\020" + - "\377\377\377\377\377\377\377\377\377\001\022\010\n\004ON_1\020\001\022\010\n\004ON_2\020\002\"\356\002\n\014Graph" + - "Options\022\036\n\026enable_recv_scheduling\030\002 \001(\010\022" + - "7\n\021optimizer_options\030\003 \001(\0132\034.tensorflow." + - "OptimizerOptions\022\030\n\020build_cost_model\030\004 \001" + - "(\003\022\036\n\026build_cost_model_after\030\t \001(\003\022\024\n\014in" + - "fer_shapes\030\005 \001(\010\022\032\n\022place_pruned_graph\030\006" + - " \001(\010\022 \n\030enable_bfloat16_sendrecv\030\007 \001(\010\022\025" + - "\n\rtimeline_step\030\010 \001(\005\0223\n\017rewrite_options" + - "\030\n \001(\0132\032.tensorflow.RewriterConfigJ\004\010\001\020\002" + - "R%skip_common_subexpression_elimination\"" + - "A\n\025ThreadPoolOptionProto\022\023\n\013num_threads\030" + - "\001 \001(\005\022\023\n\013global_name\030\002 \001(\t\"\325\001\n\nRPCOption" + - "s\022$\n\034use_rpc_for_inprocess_master\030\001 \001(\010\022" + - "\035\n\025compression_algorithm\030\002 \001(\t\022\031\n\021compre" + - "ssion_level\030\003 \001(\005\022\032\n\022cache_rpc_response\030" + - "\004 \001(\010\022*\n\"disable_session_connection_shar" + - "ing\030\005 \001(\010\022\037\n\027num_channels_per_target\030\006 \001" + - "(\005\"0\n\017SessionMetadata\022\014\n\004name\030\001 \001(\t\022\017\n\007v" + - "ersion\030\002 \001(\003\"\256\016\n\013ConfigProto\022>\n\014device_c" + - "ount\030\001 \003(\0132(.tensorflow.ConfigProto.Devi" + - "ceCountEntry\022$\n\034intra_op_parallelism_thr" + - "eads\030\002 \001(\005\022$\n\034inter_op_parallelism_threa" + - "ds\030\005 \001(\005\022\037\n\027use_per_session_threads\030\t \001(" + - "\010\022G\n\034session_inter_op_thread_pool\030\014 \003(\0132" + - "!.tensorflow.ThreadPoolOptionProto\022\030\n\020pl" + - "acement_period\030\003 \001(\005\022\026\n\016device_filters\030\004" + - " \003(\t\022+\n\013gpu_options\030\006 \001(\0132\026.tensorflow.G" + - "PUOptions\022\034\n\024allow_soft_placement\030\007 \001(\010\022" + - "\034\n\024log_device_placement\030\010 \001(\010\022/\n\rgraph_o" + - "ptions\030\n \001(\0132\030.tensorflow.GraphOptions\022\037" + - "\n\027operation_timeout_in_ms\030\013 \001(\003\022+\n\013rpc_o" + - "ptions\030\r \001(\0132\026.tensorflow.RPCOptions\022+\n\013" + - "cluster_def\030\016 \001(\0132\026.tensorflow.ClusterDe" + - "f\022\035\n\025isolate_session_state\030\017 \001(\010\022(\n shar" + - "e_cluster_devices_in_session\030\021 \001(\010\022:\n\014ex" + - "perimental\030\020 \001(\0132$.tensorflow.ConfigProt" + - "o.Experimental\0322\n\020DeviceCountEntry\022\013\n\003ke" + - "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001\032\250\010\n\014Experimen" + - "tal\022\037\n\027collective_group_leader\030\001 \001(\t\022\025\n\r" + - "executor_type\030\003 \001(\t\022\032\n\022recv_buf_max_chun" + - "k\030\004 \001(\005\022\031\n\021use_numa_affinity\030\005 \001(\010\0225\n-co" + - "llective_deterministic_sequential_execut" + - "ion\030\006 \001(\010\022\027\n\017collective_nccl\030\007 \001(\010\0226\n.sh" + - "are_session_state_in_clusterspec_propaga" + - "tion\030\010 \001(\010\022\037\n\027disable_thread_spinning\030\t " + - "\001(\010\022(\n share_cluster_devices_in_session\030" + - "\n \001(\010\0225\n\020session_metadata\030\013 \001(\0132\033.tensor" + - "flow.SessionMetadata\022!\n\031optimize_for_sta" + - "tic_graph\030\014 \001(\010\022\032\n\022enable_mlir_bridge\030\r " + - "\001(\010\022S\n\023mlir_bridge_rollout\030\021 \001(\01626.tenso" + - "rflow.ConfigProto.Experimental.MlirBridg" + - "eRollout\022&\n\036enable_mlir_graph_optimizati" + - "on\030\020 \001(\010\022\'\n\037disable_output_partition_gra" + - "phs\030\016 \001(\010\022#\n\033xla_fusion_autotuner_thresh" + - "\030\017 \001(\003\022\020\n\010use_tfrt\030\022 \001(\010\022\'\n\037disable_func" + - "tional_ops_lowering\030\025 \001(\010\022\'\n\037xla_prefer_" + - "single_graph_cluster\030\026 \001(\010\022B\n\023coordinati" + - "on_config\030\027 \001(\0132%.tensorflow.Coordinatio" + - "nServiceConfig\"\332\001\n\021MlirBridgeRollout\022#\n\037" + - "MLIR_BRIDGE_ROLLOUT_UNSPECIFIED\020\000\022\037\n\033MLI" + - "R_BRIDGE_ROLLOUT_ENABLED\020\001\022 \n\034MLIR_BRIDG" + - "E_ROLLOUT_DISABLED\020\002\022)\n%MLIR_BRIDGE_ROLL" + - "OUT_SAFE_MODE_ENABLED\020\003\0222\n.MLIR_BRIDGE_R" + - "OLLOUT_SAFE_MODE_FALLBACK_ENABLED\020\004J\004\010\002\020" + - "\003J\004\010\023\020\024J\004\010\024\020\025\"\341\004\n\nRunOptions\0226\n\013trace_le" + - "vel\030\001 \001(\0162!.tensorflow.RunOptions.TraceL" + - "evel\022\025\n\rtimeout_in_ms\030\002 \001(\003\022\034\n\024inter_op_" + - "thread_pool\030\003 \001(\005\022\037\n\027output_partition_gr" + - "aphs\030\005 \001(\010\022/\n\rdebug_options\030\006 \001(\0132\030.tens" + - "orflow.DebugOptions\022*\n\"report_tensor_all" + - "ocations_upon_oom\030\007 \001(\010\0229\n\014experimental\030" + - "\010 \001(\0132#.tensorflow.RunOptions.Experiment" + - "al\032\322\001\n\014Experimental\022\034\n\024collective_graph_" + - "key\030\001 \001(\003\022\034\n\024use_run_handler_pool\030\002 \001(\010\022" + - "[\n\030run_handler_pool_options\030\003 \001(\01329.tens" + - "orflow.RunOptions.Experimental.RunHandle" + - "rPoolOptions\032)\n\025RunHandlerPoolOptions\022\020\n" + - "\010priority\030\001 \001(\003\"R\n\nTraceLevel\022\014\n\010NO_TRAC" + - "E\020\000\022\022\n\016SOFTWARE_TRACE\020\001\022\022\n\016HARDWARE_TRAC" + - "E\020\002\022\016\n\nFULL_TRACE\020\003J\004\010\004\020\005\"\276\003\n\013RunMetadat" + - "a\022)\n\nstep_stats\030\001 \001(\0132\025.tensorflow.StepS" + - "tats\022,\n\ncost_graph\030\002 \001(\0132\030.tensorflow.Co" + - "stGraphDef\022.\n\020partition_graphs\030\003 \003(\0132\024.t" + - "ensorflow.GraphDef\022?\n\017function_graphs\030\004 " + - "\003(\0132&.tensorflow.RunMetadata.FunctionGra" + - "phs\0225\n\020session_metadata\030\005 \001(\0132\033.tensorfl" + - "ow.SessionMetadata\032\255\001\n\016FunctionGraphs\022.\n" + - "\020partition_graphs\030\001 \003(\0132\024.tensorflow.Gra" + - "phDef\0224\n\026pre_optimization_graph\030\002 \001(\0132\024." + - "tensorflow.GraphDef\0225\n\027post_optimization" + - "_graph\030\003 \001(\0132\024.tensorflow.GraphDef\":\n\020Te" + - "nsorConnection\022\023\n\013from_tensor\030\001 \001(\t\022\021\n\tt" + - "o_tensor\030\002 \001(\t\"\260\003\n\017CallableOptions\022\014\n\004fe" + - "ed\030\001 \003(\t\022\r\n\005fetch\030\002 \003(\t\022\016\n\006target\030\003 \003(\t\022" + - "+\n\013run_options\030\004 \001(\0132\026.tensorflow.RunOpt" + - "ions\0227\n\021tensor_connection\030\005 \003(\0132\034.tensor" + - "flow.TensorConnection\022B\n\014feed_devices\030\006 " + - "\003(\0132,.tensorflow.CallableOptions.FeedDev" + - "icesEntry\022D\n\rfetch_devices\030\007 \003(\0132-.tenso" + - "rflow.CallableOptions.FetchDevicesEntry\022" + - "\027\n\017fetch_skip_sync\030\010 \001(\010\0322\n\020FeedDevicesE" + - "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0323\n\021" + - "FetchDevicesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + - "\002 \001(\t:\0028\001B\212\001\n\036org.tensorflow.proto.frame" + - "workB\014ConfigProtosP\001ZUgithub.com/tensorf" + - "low/tensorflow/tensorflow/go/core/protob" + - "uf/for_core_protos_go_proto\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.framework.CostGraphProtos.getDescriptor(), - org.tensorflow.proto.framework.GraphProtos.getDescriptor(), - org.tensorflow.proto.framework.StepStatsProtos.getDescriptor(), - org.tensorflow.proto.distruntime.ClusterProtos.getDescriptor(), - org.tensorflow.proto.distruntime.CoordinationConfig.getDescriptor(), - org.tensorflow.proto.framework.DebugProtos.getDescriptor(), - org.tensorflow.proto.framework.RewriterConfigProtos.getDescriptor(), - }); - internal_static_tensorflow_GPUOptions_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tensorflow_GPUOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_GPUOptions_descriptor, - new java.lang.String[] { "PerProcessGpuMemoryFraction", "AllowGrowth", "AllocatorType", "DeferredDeletionBytes", "VisibleDeviceList", "PollingActiveDelayUsecs", "PollingInactiveDelayMsecs", "ForceGpuCompatible", "Experimental", }); - internal_static_tensorflow_GPUOptions_Experimental_descriptor = - internal_static_tensorflow_GPUOptions_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_GPUOptions_Experimental_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_GPUOptions_Experimental_descriptor, - new java.lang.String[] { "VirtualDevices", "UseUnifiedMemory", "NumDevToDevCopyStreams", "CollectiveRingOrder", "TimestampedAllocator", "KernelTrackerMaxInterval", "KernelTrackerMaxBytes", "KernelTrackerMaxPending", "InternalFragmentationFraction", "UseCudaMallocAsync", "DisallowRetryOnAllocationFailure", }); - internal_static_tensorflow_GPUOptions_Experimental_VirtualDevices_descriptor = - internal_static_tensorflow_GPUOptions_Experimental_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_GPUOptions_Experimental_VirtualDevices_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_GPUOptions_Experimental_VirtualDevices_descriptor, - new java.lang.String[] { "MemoryLimitMb", "Priority", "DeviceOrdinal", }); - internal_static_tensorflow_OptimizerOptions_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_tensorflow_OptimizerOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_OptimizerOptions_descriptor, - new java.lang.String[] { "DoCommonSubexpressionElimination", "DoConstantFolding", "MaxFoldedConstantInBytes", "DoFunctionInlining", "OptLevel", "GlobalJitLevel", "CpuGlobalJit", }); - internal_static_tensorflow_GraphOptions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_tensorflow_GraphOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_GraphOptions_descriptor, - new java.lang.String[] { "EnableRecvScheduling", "OptimizerOptions", "BuildCostModel", "BuildCostModelAfter", "InferShapes", "PlacePrunedGraph", "EnableBfloat16Sendrecv", "TimelineStep", "RewriteOptions", }); - internal_static_tensorflow_ThreadPoolOptionProto_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_tensorflow_ThreadPoolOptionProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_ThreadPoolOptionProto_descriptor, - new java.lang.String[] { "NumThreads", "GlobalName", }); - internal_static_tensorflow_RPCOptions_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_tensorflow_RPCOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_RPCOptions_descriptor, - new java.lang.String[] { "UseRpcForInprocessMaster", "CompressionAlgorithm", "CompressionLevel", "CacheRpcResponse", "DisableSessionConnectionSharing", "NumChannelsPerTarget", }); - internal_static_tensorflow_SessionMetadata_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_tensorflow_SessionMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_SessionMetadata_descriptor, - new java.lang.String[] { "Name", "Version", }); - internal_static_tensorflow_ConfigProto_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_tensorflow_ConfigProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_ConfigProto_descriptor, - new java.lang.String[] { "DeviceCount", "IntraOpParallelismThreads", "InterOpParallelismThreads", "UsePerSessionThreads", "SessionInterOpThreadPool", "PlacementPeriod", "DeviceFilters", "GpuOptions", "AllowSoftPlacement", "LogDevicePlacement", "GraphOptions", "OperationTimeoutInMs", "RpcOptions", "ClusterDef", "IsolateSessionState", "ShareClusterDevicesInSession", "Experimental", }); - internal_static_tensorflow_ConfigProto_DeviceCountEntry_descriptor = - internal_static_tensorflow_ConfigProto_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_ConfigProto_DeviceCountEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_ConfigProto_DeviceCountEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_tensorflow_ConfigProto_Experimental_descriptor = - internal_static_tensorflow_ConfigProto_descriptor.getNestedTypes().get(1); - internal_static_tensorflow_ConfigProto_Experimental_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_ConfigProto_Experimental_descriptor, - new java.lang.String[] { "CollectiveGroupLeader", "ExecutorType", "RecvBufMaxChunk", "UseNumaAffinity", "CollectiveDeterministicSequentialExecution", "CollectiveNccl", "ShareSessionStateInClusterspecPropagation", "DisableThreadSpinning", "ShareClusterDevicesInSession", "SessionMetadata", "OptimizeForStaticGraph", "EnableMlirBridge", "MlirBridgeRollout", "EnableMlirGraphOptimization", "DisableOutputPartitionGraphs", "XlaFusionAutotunerThresh", "UseTfrt", "DisableFunctionalOpsLowering", "XlaPreferSingleGraphCluster", "CoordinationConfig", }); - internal_static_tensorflow_RunOptions_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_tensorflow_RunOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_RunOptions_descriptor, - new java.lang.String[] { "TraceLevel", "TimeoutInMs", "InterOpThreadPool", "OutputPartitionGraphs", "DebugOptions", "ReportTensorAllocationsUponOom", "Experimental", }); - internal_static_tensorflow_RunOptions_Experimental_descriptor = - internal_static_tensorflow_RunOptions_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_RunOptions_Experimental_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_RunOptions_Experimental_descriptor, - new java.lang.String[] { "CollectiveGraphKey", "UseRunHandlerPool", "RunHandlerPoolOptions", }); - internal_static_tensorflow_RunOptions_Experimental_RunHandlerPoolOptions_descriptor = - internal_static_tensorflow_RunOptions_Experimental_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_RunOptions_Experimental_RunHandlerPoolOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_RunOptions_Experimental_RunHandlerPoolOptions_descriptor, - new java.lang.String[] { "Priority", }); - internal_static_tensorflow_RunMetadata_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_tensorflow_RunMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_RunMetadata_descriptor, - new java.lang.String[] { "StepStats", "CostGraph", "PartitionGraphs", "FunctionGraphs", "SessionMetadata", }); - internal_static_tensorflow_RunMetadata_FunctionGraphs_descriptor = - internal_static_tensorflow_RunMetadata_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_RunMetadata_FunctionGraphs_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_RunMetadata_FunctionGraphs_descriptor, - new java.lang.String[] { "PartitionGraphs", "PreOptimizationGraph", "PostOptimizationGraph", }); - internal_static_tensorflow_TensorConnection_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_tensorflow_TensorConnection_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_TensorConnection_descriptor, - new java.lang.String[] { "FromTensor", "ToTensor", }); - internal_static_tensorflow_CallableOptions_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_tensorflow_CallableOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_CallableOptions_descriptor, - new java.lang.String[] { "Feed", "Fetch", "Target", "RunOptions", "TensorConnection", "FeedDevices", "FetchDevices", "FetchSkipSync", }); - internal_static_tensorflow_CallableOptions_FeedDevicesEntry_descriptor = - internal_static_tensorflow_CallableOptions_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_CallableOptions_FeedDevicesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_CallableOptions_FeedDevicesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_tensorflow_CallableOptions_FetchDevicesEntry_descriptor = - internal_static_tensorflow_CallableOptions_descriptor.getNestedTypes().get(1); - internal_static_tensorflow_CallableOptions_FetchDevicesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_CallableOptions_FetchDevicesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - org.tensorflow.proto.framework.CostGraphProtos.getDescriptor(); - org.tensorflow.proto.framework.GraphProtos.getDescriptor(); - org.tensorflow.proto.framework.StepStatsProtos.getDescriptor(); - org.tensorflow.proto.distruntime.ClusterProtos.getDescriptor(); - org.tensorflow.proto.distruntime.CoordinationConfig.getDescriptor(); - org.tensorflow.proto.framework.DebugProtos.getDescriptor(); - org.tensorflow.proto.framework.RewriterConfigProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ControlFlowContextDef.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ControlFlowContextDef.java deleted file mode 100644 index 48b3b2cd638..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ControlFlowContextDef.java +++ /dev/null @@ -1,903 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/control_flow.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Container for any kind of control flow context. Any other control flow
- * contexts that are added below should also be added here.
- * 
- * - * Protobuf type {@code tensorflow.ControlFlowContextDef} - */ -public final class ControlFlowContextDef extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.ControlFlowContextDef) - ControlFlowContextDefOrBuilder { -private static final long serialVersionUID = 0L; - // Use ControlFlowContextDef.newBuilder() to construct. - private ControlFlowContextDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ControlFlowContextDef() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ControlFlowContextDef(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ControlFlowContextDef( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.tensorflow.proto.framework.CondContextDef.Builder subBuilder = null; - if (ctxtCase_ == 1) { - subBuilder = ((org.tensorflow.proto.framework.CondContextDef) ctxt_).toBuilder(); - } - ctxt_ = - input.readMessage(org.tensorflow.proto.framework.CondContextDef.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.CondContextDef) ctxt_); - ctxt_ = subBuilder.buildPartial(); - } - ctxtCase_ = 1; - break; - } - case 18: { - org.tensorflow.proto.framework.WhileContextDef.Builder subBuilder = null; - if (ctxtCase_ == 2) { - subBuilder = ((org.tensorflow.proto.framework.WhileContextDef) ctxt_).toBuilder(); - } - ctxt_ = - input.readMessage(org.tensorflow.proto.framework.WhileContextDef.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.WhileContextDef) ctxt_); - ctxt_ = subBuilder.buildPartial(); - } - ctxtCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ControlFlowProtos.internal_static_tensorflow_ControlFlowContextDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ControlFlowProtos.internal_static_tensorflow_ControlFlowContextDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ControlFlowContextDef.class, org.tensorflow.proto.framework.ControlFlowContextDef.Builder.class); - } - - private int ctxtCase_ = 0; - private java.lang.Object ctxt_; - public enum CtxtCase - implements com.google.protobuf.Internal.EnumLite { - COND_CTXT(1), - WHILE_CTXT(2), - CTXT_NOT_SET(0); - private final int value; - private CtxtCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static CtxtCase valueOf(int value) { - return forNumber(value); - } - - public static CtxtCase forNumber(int value) { - switch (value) { - case 1: return COND_CTXT; - case 2: return WHILE_CTXT; - case 0: return CTXT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public CtxtCase - getCtxtCase() { - return CtxtCase.forNumber( - ctxtCase_); - } - - public static final int COND_CTXT_FIELD_NUMBER = 1; - /** - * .tensorflow.CondContextDef cond_ctxt = 1; - */ - public boolean hasCondCtxt() { - return ctxtCase_ == 1; - } - /** - * .tensorflow.CondContextDef cond_ctxt = 1; - */ - public org.tensorflow.proto.framework.CondContextDef getCondCtxt() { - if (ctxtCase_ == 1) { - return (org.tensorflow.proto.framework.CondContextDef) ctxt_; - } - return org.tensorflow.proto.framework.CondContextDef.getDefaultInstance(); - } - /** - * .tensorflow.CondContextDef cond_ctxt = 1; - */ - public org.tensorflow.proto.framework.CondContextDefOrBuilder getCondCtxtOrBuilder() { - if (ctxtCase_ == 1) { - return (org.tensorflow.proto.framework.CondContextDef) ctxt_; - } - return org.tensorflow.proto.framework.CondContextDef.getDefaultInstance(); - } - - public static final int WHILE_CTXT_FIELD_NUMBER = 2; - /** - * .tensorflow.WhileContextDef while_ctxt = 2; - */ - public boolean hasWhileCtxt() { - return ctxtCase_ == 2; - } - /** - * .tensorflow.WhileContextDef while_ctxt = 2; - */ - public org.tensorflow.proto.framework.WhileContextDef getWhileCtxt() { - if (ctxtCase_ == 2) { - return (org.tensorflow.proto.framework.WhileContextDef) ctxt_; - } - return org.tensorflow.proto.framework.WhileContextDef.getDefaultInstance(); - } - /** - * .tensorflow.WhileContextDef while_ctxt = 2; - */ - public org.tensorflow.proto.framework.WhileContextDefOrBuilder getWhileCtxtOrBuilder() { - if (ctxtCase_ == 2) { - return (org.tensorflow.proto.framework.WhileContextDef) ctxt_; - } - return org.tensorflow.proto.framework.WhileContextDef.getDefaultInstance(); - } - - 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 (ctxtCase_ == 1) { - output.writeMessage(1, (org.tensorflow.proto.framework.CondContextDef) ctxt_); - } - if (ctxtCase_ == 2) { - output.writeMessage(2, (org.tensorflow.proto.framework.WhileContextDef) ctxt_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (ctxtCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (org.tensorflow.proto.framework.CondContextDef) ctxt_); - } - if (ctxtCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (org.tensorflow.proto.framework.WhileContextDef) ctxt_); - } - 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 org.tensorflow.proto.framework.ControlFlowContextDef)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.ControlFlowContextDef other = (org.tensorflow.proto.framework.ControlFlowContextDef) obj; - - if (!getCtxtCase().equals(other.getCtxtCase())) return false; - switch (ctxtCase_) { - case 1: - if (!getCondCtxt() - .equals(other.getCondCtxt())) return false; - break; - case 2: - if (!getWhileCtxt() - .equals(other.getWhileCtxt())) return false; - break; - case 0: - default: - } - 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(); - switch (ctxtCase_) { - case 1: - hash = (37 * hash) + COND_CTXT_FIELD_NUMBER; - hash = (53 * hash) + getCondCtxt().hashCode(); - break; - case 2: - hash = (37 * hash) + WHILE_CTXT_FIELD_NUMBER; - hash = (53 * hash) + getWhileCtxt().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.ControlFlowContextDef parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ControlFlowContextDef parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ControlFlowContextDef parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ControlFlowContextDef parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ControlFlowContextDef parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ControlFlowContextDef parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ControlFlowContextDef parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ControlFlowContextDef 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 org.tensorflow.proto.framework.ControlFlowContextDef parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ControlFlowContextDef 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 org.tensorflow.proto.framework.ControlFlowContextDef parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ControlFlowContextDef 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(org.tensorflow.proto.framework.ControlFlowContextDef 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; - } - /** - *
-   * Container for any kind of control flow context. Any other control flow
-   * contexts that are added below should also be added here.
-   * 
- * - * Protobuf type {@code tensorflow.ControlFlowContextDef} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.ControlFlowContextDef) - org.tensorflow.proto.framework.ControlFlowContextDefOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ControlFlowProtos.internal_static_tensorflow_ControlFlowContextDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ControlFlowProtos.internal_static_tensorflow_ControlFlowContextDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ControlFlowContextDef.class, org.tensorflow.proto.framework.ControlFlowContextDef.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.ControlFlowContextDef.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - ctxtCase_ = 0; - ctxt_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.ControlFlowProtos.internal_static_tensorflow_ControlFlowContextDef_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ControlFlowContextDef getDefaultInstanceForType() { - return org.tensorflow.proto.framework.ControlFlowContextDef.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.ControlFlowContextDef build() { - org.tensorflow.proto.framework.ControlFlowContextDef result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ControlFlowContextDef buildPartial() { - org.tensorflow.proto.framework.ControlFlowContextDef result = new org.tensorflow.proto.framework.ControlFlowContextDef(this); - if (ctxtCase_ == 1) { - if (condCtxtBuilder_ == null) { - result.ctxt_ = ctxt_; - } else { - result.ctxt_ = condCtxtBuilder_.build(); - } - } - if (ctxtCase_ == 2) { - if (whileCtxtBuilder_ == null) { - result.ctxt_ = ctxt_; - } else { - result.ctxt_ = whileCtxtBuilder_.build(); - } - } - result.ctxtCase_ = ctxtCase_; - 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 org.tensorflow.proto.framework.ControlFlowContextDef) { - return mergeFrom((org.tensorflow.proto.framework.ControlFlowContextDef)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.ControlFlowContextDef other) { - if (other == org.tensorflow.proto.framework.ControlFlowContextDef.getDefaultInstance()) return this; - switch (other.getCtxtCase()) { - case COND_CTXT: { - mergeCondCtxt(other.getCondCtxt()); - break; - } - case WHILE_CTXT: { - mergeWhileCtxt(other.getWhileCtxt()); - break; - } - case CTXT_NOT_SET: { - break; - } - } - 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 { - org.tensorflow.proto.framework.ControlFlowContextDef parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.ControlFlowContextDef) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int ctxtCase_ = 0; - private java.lang.Object ctxt_; - public CtxtCase - getCtxtCase() { - return CtxtCase.forNumber( - ctxtCase_); - } - - public Builder clearCtxt() { - ctxtCase_ = 0; - ctxt_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CondContextDef, org.tensorflow.proto.framework.CondContextDef.Builder, org.tensorflow.proto.framework.CondContextDefOrBuilder> condCtxtBuilder_; - /** - * .tensorflow.CondContextDef cond_ctxt = 1; - */ - public boolean hasCondCtxt() { - return ctxtCase_ == 1; - } - /** - * .tensorflow.CondContextDef cond_ctxt = 1; - */ - public org.tensorflow.proto.framework.CondContextDef getCondCtxt() { - if (condCtxtBuilder_ == null) { - if (ctxtCase_ == 1) { - return (org.tensorflow.proto.framework.CondContextDef) ctxt_; - } - return org.tensorflow.proto.framework.CondContextDef.getDefaultInstance(); - } else { - if (ctxtCase_ == 1) { - return condCtxtBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.CondContextDef.getDefaultInstance(); - } - } - /** - * .tensorflow.CondContextDef cond_ctxt = 1; - */ - public Builder setCondCtxt(org.tensorflow.proto.framework.CondContextDef value) { - if (condCtxtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ctxt_ = value; - onChanged(); - } else { - condCtxtBuilder_.setMessage(value); - } - ctxtCase_ = 1; - return this; - } - /** - * .tensorflow.CondContextDef cond_ctxt = 1; - */ - public Builder setCondCtxt( - org.tensorflow.proto.framework.CondContextDef.Builder builderForValue) { - if (condCtxtBuilder_ == null) { - ctxt_ = builderForValue.build(); - onChanged(); - } else { - condCtxtBuilder_.setMessage(builderForValue.build()); - } - ctxtCase_ = 1; - return this; - } - /** - * .tensorflow.CondContextDef cond_ctxt = 1; - */ - public Builder mergeCondCtxt(org.tensorflow.proto.framework.CondContextDef value) { - if (condCtxtBuilder_ == null) { - if (ctxtCase_ == 1 && - ctxt_ != org.tensorflow.proto.framework.CondContextDef.getDefaultInstance()) { - ctxt_ = org.tensorflow.proto.framework.CondContextDef.newBuilder((org.tensorflow.proto.framework.CondContextDef) ctxt_) - .mergeFrom(value).buildPartial(); - } else { - ctxt_ = value; - } - onChanged(); - } else { - if (ctxtCase_ == 1) { - condCtxtBuilder_.mergeFrom(value); - } - condCtxtBuilder_.setMessage(value); - } - ctxtCase_ = 1; - return this; - } - /** - * .tensorflow.CondContextDef cond_ctxt = 1; - */ - public Builder clearCondCtxt() { - if (condCtxtBuilder_ == null) { - if (ctxtCase_ == 1) { - ctxtCase_ = 0; - ctxt_ = null; - onChanged(); - } - } else { - if (ctxtCase_ == 1) { - ctxtCase_ = 0; - ctxt_ = null; - } - condCtxtBuilder_.clear(); - } - return this; - } - /** - * .tensorflow.CondContextDef cond_ctxt = 1; - */ - public org.tensorflow.proto.framework.CondContextDef.Builder getCondCtxtBuilder() { - return getCondCtxtFieldBuilder().getBuilder(); - } - /** - * .tensorflow.CondContextDef cond_ctxt = 1; - */ - public org.tensorflow.proto.framework.CondContextDefOrBuilder getCondCtxtOrBuilder() { - if ((ctxtCase_ == 1) && (condCtxtBuilder_ != null)) { - return condCtxtBuilder_.getMessageOrBuilder(); - } else { - if (ctxtCase_ == 1) { - return (org.tensorflow.proto.framework.CondContextDef) ctxt_; - } - return org.tensorflow.proto.framework.CondContextDef.getDefaultInstance(); - } - } - /** - * .tensorflow.CondContextDef cond_ctxt = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CondContextDef, org.tensorflow.proto.framework.CondContextDef.Builder, org.tensorflow.proto.framework.CondContextDefOrBuilder> - getCondCtxtFieldBuilder() { - if (condCtxtBuilder_ == null) { - if (!(ctxtCase_ == 1)) { - ctxt_ = org.tensorflow.proto.framework.CondContextDef.getDefaultInstance(); - } - condCtxtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CondContextDef, org.tensorflow.proto.framework.CondContextDef.Builder, org.tensorflow.proto.framework.CondContextDefOrBuilder>( - (org.tensorflow.proto.framework.CondContextDef) ctxt_, - getParentForChildren(), - isClean()); - ctxt_ = null; - } - ctxtCase_ = 1; - onChanged();; - return condCtxtBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.WhileContextDef, org.tensorflow.proto.framework.WhileContextDef.Builder, org.tensorflow.proto.framework.WhileContextDefOrBuilder> whileCtxtBuilder_; - /** - * .tensorflow.WhileContextDef while_ctxt = 2; - */ - public boolean hasWhileCtxt() { - return ctxtCase_ == 2; - } - /** - * .tensorflow.WhileContextDef while_ctxt = 2; - */ - public org.tensorflow.proto.framework.WhileContextDef getWhileCtxt() { - if (whileCtxtBuilder_ == null) { - if (ctxtCase_ == 2) { - return (org.tensorflow.proto.framework.WhileContextDef) ctxt_; - } - return org.tensorflow.proto.framework.WhileContextDef.getDefaultInstance(); - } else { - if (ctxtCase_ == 2) { - return whileCtxtBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.WhileContextDef.getDefaultInstance(); - } - } - /** - * .tensorflow.WhileContextDef while_ctxt = 2; - */ - public Builder setWhileCtxt(org.tensorflow.proto.framework.WhileContextDef value) { - if (whileCtxtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ctxt_ = value; - onChanged(); - } else { - whileCtxtBuilder_.setMessage(value); - } - ctxtCase_ = 2; - return this; - } - /** - * .tensorflow.WhileContextDef while_ctxt = 2; - */ - public Builder setWhileCtxt( - org.tensorflow.proto.framework.WhileContextDef.Builder builderForValue) { - if (whileCtxtBuilder_ == null) { - ctxt_ = builderForValue.build(); - onChanged(); - } else { - whileCtxtBuilder_.setMessage(builderForValue.build()); - } - ctxtCase_ = 2; - return this; - } - /** - * .tensorflow.WhileContextDef while_ctxt = 2; - */ - public Builder mergeWhileCtxt(org.tensorflow.proto.framework.WhileContextDef value) { - if (whileCtxtBuilder_ == null) { - if (ctxtCase_ == 2 && - ctxt_ != org.tensorflow.proto.framework.WhileContextDef.getDefaultInstance()) { - ctxt_ = org.tensorflow.proto.framework.WhileContextDef.newBuilder((org.tensorflow.proto.framework.WhileContextDef) ctxt_) - .mergeFrom(value).buildPartial(); - } else { - ctxt_ = value; - } - onChanged(); - } else { - if (ctxtCase_ == 2) { - whileCtxtBuilder_.mergeFrom(value); - } - whileCtxtBuilder_.setMessage(value); - } - ctxtCase_ = 2; - return this; - } - /** - * .tensorflow.WhileContextDef while_ctxt = 2; - */ - public Builder clearWhileCtxt() { - if (whileCtxtBuilder_ == null) { - if (ctxtCase_ == 2) { - ctxtCase_ = 0; - ctxt_ = null; - onChanged(); - } - } else { - if (ctxtCase_ == 2) { - ctxtCase_ = 0; - ctxt_ = null; - } - whileCtxtBuilder_.clear(); - } - return this; - } - /** - * .tensorflow.WhileContextDef while_ctxt = 2; - */ - public org.tensorflow.proto.framework.WhileContextDef.Builder getWhileCtxtBuilder() { - return getWhileCtxtFieldBuilder().getBuilder(); - } - /** - * .tensorflow.WhileContextDef while_ctxt = 2; - */ - public org.tensorflow.proto.framework.WhileContextDefOrBuilder getWhileCtxtOrBuilder() { - if ((ctxtCase_ == 2) && (whileCtxtBuilder_ != null)) { - return whileCtxtBuilder_.getMessageOrBuilder(); - } else { - if (ctxtCase_ == 2) { - return (org.tensorflow.proto.framework.WhileContextDef) ctxt_; - } - return org.tensorflow.proto.framework.WhileContextDef.getDefaultInstance(); - } - } - /** - * .tensorflow.WhileContextDef while_ctxt = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.WhileContextDef, org.tensorflow.proto.framework.WhileContextDef.Builder, org.tensorflow.proto.framework.WhileContextDefOrBuilder> - getWhileCtxtFieldBuilder() { - if (whileCtxtBuilder_ == null) { - if (!(ctxtCase_ == 2)) { - ctxt_ = org.tensorflow.proto.framework.WhileContextDef.getDefaultInstance(); - } - whileCtxtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.WhileContextDef, org.tensorflow.proto.framework.WhileContextDef.Builder, org.tensorflow.proto.framework.WhileContextDefOrBuilder>( - (org.tensorflow.proto.framework.WhileContextDef) ctxt_, - getParentForChildren(), - isClean()); - ctxt_ = null; - } - ctxtCase_ = 2; - onChanged();; - return whileCtxtBuilder_; - } - @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:tensorflow.ControlFlowContextDef) - } - - // @@protoc_insertion_point(class_scope:tensorflow.ControlFlowContextDef) - private static final org.tensorflow.proto.framework.ControlFlowContextDef DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.ControlFlowContextDef(); - } - - public static org.tensorflow.proto.framework.ControlFlowContextDef getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ControlFlowContextDef parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ControlFlowContextDef(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ControlFlowContextDef getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ControlFlowContextDefOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ControlFlowContextDefOrBuilder.java deleted file mode 100644 index b4482047fd9..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ControlFlowContextDefOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/control_flow.proto - -package org.tensorflow.proto.framework; - -public interface ControlFlowContextDefOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.ControlFlowContextDef) - com.google.protobuf.MessageOrBuilder { - - /** - * .tensorflow.CondContextDef cond_ctxt = 1; - */ - boolean hasCondCtxt(); - /** - * .tensorflow.CondContextDef cond_ctxt = 1; - */ - org.tensorflow.proto.framework.CondContextDef getCondCtxt(); - /** - * .tensorflow.CondContextDef cond_ctxt = 1; - */ - org.tensorflow.proto.framework.CondContextDefOrBuilder getCondCtxtOrBuilder(); - - /** - * .tensorflow.WhileContextDef while_ctxt = 2; - */ - boolean hasWhileCtxt(); - /** - * .tensorflow.WhileContextDef while_ctxt = 2; - */ - org.tensorflow.proto.framework.WhileContextDef getWhileCtxt(); - /** - * .tensorflow.WhileContextDef while_ctxt = 2; - */ - org.tensorflow.proto.framework.WhileContextDefOrBuilder getWhileCtxtOrBuilder(); - - public org.tensorflow.proto.framework.ControlFlowContextDef.CtxtCase getCtxtCase(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CostGraphDef.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CostGraphDef.java deleted file mode 100644 index c06cd1761fa..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CostGraphDef.java +++ /dev/null @@ -1,5817 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/cost_graph.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.CostGraphDef} - */ -public final class CostGraphDef extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.CostGraphDef) - CostGraphDefOrBuilder { -private static final long serialVersionUID = 0L; - // Use CostGraphDef.newBuilder() to construct. - private CostGraphDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CostGraphDef() { - node_ = java.util.Collections.emptyList(); - cost_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CostGraphDef(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CostGraphDef( - 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)) { - node_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - node_.add( - input.readMessage(org.tensorflow.proto.framework.CostGraphDef.Node.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - cost_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - cost_.add( - input.readMessage(org.tensorflow.proto.framework.CostGraphDef.AggregatedCost.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)) { - node_ = java.util.Collections.unmodifiableList(node_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - cost_ = java.util.Collections.unmodifiableList(cost_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CostGraphDef.class, org.tensorflow.proto.framework.CostGraphDef.Builder.class); - } - - public interface NodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.CostGraphDef.Node) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The name of the node. Names are globally unique.
-     * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-     * The name of the node. Names are globally unique.
-     * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * The device of the node. Can be empty if the node is mapped to the
-     * default partition or partitioning hasn't been run yet.
-     * 
- * - * string device = 2; - */ - java.lang.String getDevice(); - /** - *
-     * The device of the node. Can be empty if the node is mapped to the
-     * default partition or partitioning hasn't been run yet.
-     * 
- * - * string device = 2; - */ - com.google.protobuf.ByteString - getDeviceBytes(); - - /** - *
-     * The id of the node. Node ids are only unique inside a partition.
-     * 
- * - * int32 id = 3; - */ - int getId(); - - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - java.util.List - getInputInfoList(); - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo getInputInfo(int index); - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - int getInputInfoCount(); - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - java.util.List - getInputInfoOrBuilderList(); - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - org.tensorflow.proto.framework.CostGraphDef.Node.InputInfoOrBuilder getInputInfoOrBuilder( - int index); - - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - java.util.List - getOutputInfoList(); - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo getOutputInfo(int index); - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - int getOutputInfoCount(); - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - java.util.List - getOutputInfoOrBuilderList(); - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfoOrBuilder getOutputInfoOrBuilder( - int index); - - /** - *
-     * Temporary memory used by this node.
-     * 
- * - * int64 temporary_memory_size = 6; - */ - long getTemporaryMemorySize(); - - /** - *
-     * Persistent memory used by this node.
-     * 
- * - * int64 persistent_memory_size = 12; - */ - long getPersistentMemorySize(); - - /** - * int64 host_temp_memory_size = 10 [deprecated = true]; - */ - @java.lang.Deprecated long getHostTempMemorySize(); - - /** - * int64 device_temp_memory_size = 11 [deprecated = true]; - */ - @java.lang.Deprecated long getDeviceTempMemorySize(); - - /** - * int64 device_persistent_memory_size = 16 [deprecated = true]; - */ - @java.lang.Deprecated long getDevicePersistentMemorySize(); - - /** - *
-     * Estimate of the computational cost of this node, in microseconds.
-     * 
- * - * int64 compute_cost = 9; - */ - long getComputeCost(); - - /** - *
-     * Analytical estimate of the computational cost of this node, in
-     * microseconds.
-     * 
- * - * int64 compute_time = 14; - */ - long getComputeTime(); - - /** - *
-     * Analytical estimate of the memory access cost of this node, in
-     * microseconds.
-     * 
- * - * int64 memory_time = 15; - */ - long getMemoryTime(); - - /** - *
-     * If true, the output is permanent: it can't be discarded, because this
-     * node is part of the "final output". Nodes may depend on final nodes.
-     * 
- * - * bool is_final = 7; - */ - boolean getIsFinal(); - - /** - *
-     * Ids of the control inputs for this node.
-     * 
- * - * repeated int32 control_input = 8; - */ - java.util.List getControlInputList(); - /** - *
-     * Ids of the control inputs for this node.
-     * 
- * - * repeated int32 control_input = 8; - */ - int getControlInputCount(); - /** - *
-     * Ids of the control inputs for this node.
-     * 
- * - * repeated int32 control_input = 8; - */ - int getControlInput(int index); - - /** - *
-     * Are the costs inaccurate?
-     * 
- * - * bool inaccurate = 17; - */ - boolean getInaccurate(); - } - /** - * Protobuf type {@code tensorflow.CostGraphDef.Node} - */ - public static final class Node extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.CostGraphDef.Node) - NodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use Node.newBuilder() to construct. - private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Node() { - name_ = ""; - device_ = ""; - inputInfo_ = java.util.Collections.emptyList(); - outputInfo_ = java.util.Collections.emptyList(); - controlInput_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Node(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Node( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - device_ = s; - break; - } - case 24: { - - id_ = input.readInt32(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - inputInfo_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - inputInfo_.add( - input.readMessage(org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - outputInfo_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - outputInfo_.add( - input.readMessage(org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo.parser(), extensionRegistry)); - break; - } - case 48: { - - temporaryMemorySize_ = input.readInt64(); - break; - } - case 56: { - - isFinal_ = input.readBool(); - break; - } - case 64: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - controlInput_ = newIntList(); - mutable_bitField0_ |= 0x00000004; - } - controlInput_.addInt(input.readInt32()); - break; - } - case 66: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { - controlInput_ = newIntList(); - mutable_bitField0_ |= 0x00000004; - } - while (input.getBytesUntilLimit() > 0) { - controlInput_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } - case 72: { - - computeCost_ = input.readInt64(); - break; - } - case 80: { - - hostTempMemorySize_ = input.readInt64(); - break; - } - case 88: { - - deviceTempMemorySize_ = input.readInt64(); - break; - } - case 96: { - - persistentMemorySize_ = input.readInt64(); - break; - } - case 112: { - - computeTime_ = input.readInt64(); - break; - } - case 120: { - - memoryTime_ = input.readInt64(); - break; - } - case 128: { - - devicePersistentMemorySize_ = input.readInt64(); - break; - } - case 136: { - - inaccurate_ = input.readBool(); - 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)) { - inputInfo_ = java.util.Collections.unmodifiableList(inputInfo_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - outputInfo_ = java.util.Collections.unmodifiableList(outputInfo_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - controlInput_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CostGraphDef.Node.class, org.tensorflow.proto.framework.CostGraphDef.Node.Builder.class); - } - - public interface InputInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.CostGraphDef.Node.InputInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 preceding_node = 1; - */ - int getPrecedingNode(); - - /** - * int32 preceding_port = 2; - */ - int getPrecedingPort(); - } - /** - *
-     * Inputs of this node. They must be executed before this node can be
-     * executed. An input is a particular output of another node, specified
-     * by the node id and the output index.
-     * 
- * - * Protobuf type {@code tensorflow.CostGraphDef.Node.InputInfo} - */ - public static final class InputInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.CostGraphDef.Node.InputInfo) - InputInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use InputInfo.newBuilder() to construct. - private InputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private InputInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new InputInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private InputInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - precedingNode_ = input.readInt32(); - break; - } - case 16: { - - precedingPort_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_InputInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_InputInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo.class, org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo.Builder.class); - } - - public static final int PRECEDING_NODE_FIELD_NUMBER = 1; - private int precedingNode_; - /** - * int32 preceding_node = 1; - */ - public int getPrecedingNode() { - return precedingNode_; - } - - public static final int PRECEDING_PORT_FIELD_NUMBER = 2; - private int precedingPort_; - /** - * int32 preceding_port = 2; - */ - public int getPrecedingPort() { - return precedingPort_; - } - - 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 (precedingNode_ != 0) { - output.writeInt32(1, precedingNode_); - } - if (precedingPort_ != 0) { - output.writeInt32(2, precedingPort_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (precedingNode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, precedingNode_); - } - if (precedingPort_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, precedingPort_); - } - 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 org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo other = (org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo) obj; - - if (getPrecedingNode() - != other.getPrecedingNode()) return false; - if (getPrecedingPort() - != other.getPrecedingPort()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PRECEDING_NODE_FIELD_NUMBER; - hash = (53 * hash) + getPrecedingNode(); - hash = (37 * hash) + PRECEDING_PORT_FIELD_NUMBER; - hash = (53 * hash) + getPrecedingPort(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo 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 org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo 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 org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo 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(org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo 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; - } - /** - *
-       * Inputs of this node. They must be executed before this node can be
-       * executed. An input is a particular output of another node, specified
-       * by the node id and the output index.
-       * 
- * - * Protobuf type {@code tensorflow.CostGraphDef.Node.InputInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.CostGraphDef.Node.InputInfo) - org.tensorflow.proto.framework.CostGraphDef.Node.InputInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_InputInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_InputInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo.class, org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - precedingNode_ = 0; - - precedingPort_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_InputInfo_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo getDefaultInstanceForType() { - return org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo build() { - org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo buildPartial() { - org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo result = new org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo(this); - result.precedingNode_ = precedingNode_; - result.precedingPort_ = precedingPort_; - 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 org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo) { - return mergeFrom((org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo other) { - if (other == org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo.getDefaultInstance()) return this; - if (other.getPrecedingNode() != 0) { - setPrecedingNode(other.getPrecedingNode()); - } - if (other.getPrecedingPort() != 0) { - setPrecedingPort(other.getPrecedingPort()); - } - 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 { - org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int precedingNode_ ; - /** - * int32 preceding_node = 1; - */ - public int getPrecedingNode() { - return precedingNode_; - } - /** - * int32 preceding_node = 1; - */ - public Builder setPrecedingNode(int value) { - - precedingNode_ = value; - onChanged(); - return this; - } - /** - * int32 preceding_node = 1; - */ - public Builder clearPrecedingNode() { - - precedingNode_ = 0; - onChanged(); - return this; - } - - private int precedingPort_ ; - /** - * int32 preceding_port = 2; - */ - public int getPrecedingPort() { - return precedingPort_; - } - /** - * int32 preceding_port = 2; - */ - public Builder setPrecedingPort(int value) { - - precedingPort_ = value; - onChanged(); - return this; - } - /** - * int32 preceding_port = 2; - */ - public Builder clearPrecedingPort() { - - precedingPort_ = 0; - 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:tensorflow.CostGraphDef.Node.InputInfo) - } - - // @@protoc_insertion_point(class_scope:tensorflow.CostGraphDef.Node.InputInfo) - private static final org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo(); - } - - public static org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InputInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InputInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OutputInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.CostGraphDef.Node.OutputInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 size = 1; - */ - long getSize(); - - /** - *
-       * If >= 0, the output is an alias of an input. Note that an alias input
-       * may itself be an alias. The algorithm will therefore need to follow
-       * those pointers.
-       * 
- * - * int64 alias_input_port = 2; - */ - long getAliasInputPort(); - - /** - * .tensorflow.TensorShapeProto shape = 3; - */ - boolean hasShape(); - /** - * .tensorflow.TensorShapeProto shape = 3; - */ - org.tensorflow.proto.framework.TensorShapeProto getShape(); - /** - * .tensorflow.TensorShapeProto shape = 3; - */ - org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder(); - - /** - * .tensorflow.DataType dtype = 4; - */ - int getDtypeValue(); - /** - * .tensorflow.DataType dtype = 4; - */ - org.tensorflow.proto.framework.DataType getDtype(); - } - /** - *
-     * Outputs of this node.
-     * 
- * - * Protobuf type {@code tensorflow.CostGraphDef.Node.OutputInfo} - */ - public static final class OutputInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.CostGraphDef.Node.OutputInfo) - OutputInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use OutputInfo.newBuilder() to construct. - private OutputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OutputInfo() { - dtype_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OutputInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OutputInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - size_ = input.readInt64(); - break; - } - case 16: { - - aliasInputPort_ = input.readInt64(); - break; - } - case 26: { - org.tensorflow.proto.framework.TensorShapeProto.Builder subBuilder = null; - if (shape_ != null) { - subBuilder = shape_.toBuilder(); - } - shape_ = input.readMessage(org.tensorflow.proto.framework.TensorShapeProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(shape_); - shape_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - int rawValue = input.readEnum(); - - dtype_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_OutputInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_OutputInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo.class, org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo.Builder.class); - } - - public static final int SIZE_FIELD_NUMBER = 1; - private long size_; - /** - * int64 size = 1; - */ - public long getSize() { - return size_; - } - - public static final int ALIAS_INPUT_PORT_FIELD_NUMBER = 2; - private long aliasInputPort_; - /** - *
-       * If >= 0, the output is an alias of an input. Note that an alias input
-       * may itself be an alias. The algorithm will therefore need to follow
-       * those pointers.
-       * 
- * - * int64 alias_input_port = 2; - */ - public long getAliasInputPort() { - return aliasInputPort_; - } - - public static final int SHAPE_FIELD_NUMBER = 3; - private org.tensorflow.proto.framework.TensorShapeProto shape_; - /** - * .tensorflow.TensorShapeProto shape = 3; - */ - public boolean hasShape() { - return shape_ != null; - } - /** - * .tensorflow.TensorShapeProto shape = 3; - */ - public org.tensorflow.proto.framework.TensorShapeProto getShape() { - return shape_ == null ? org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; - } - /** - * .tensorflow.TensorShapeProto shape = 3; - */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { - return getShape(); - } - - public static final int DTYPE_FIELD_NUMBER = 4; - private int dtype_; - /** - * .tensorflow.DataType dtype = 4; - */ - public int getDtypeValue() { - return dtype_; - } - /** - * .tensorflow.DataType dtype = 4; - */ - public org.tensorflow.proto.framework.DataType getDtype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - - 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 (size_ != 0L) { - output.writeInt64(1, size_); - } - if (aliasInputPort_ != 0L) { - output.writeInt64(2, aliasInputPort_); - } - if (shape_ != null) { - output.writeMessage(3, getShape()); - } - if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - output.writeEnum(4, dtype_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (size_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, size_); - } - if (aliasInputPort_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, aliasInputPort_); - } - if (shape_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getShape()); - } - if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, dtype_); - } - 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 org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo other = (org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo) obj; - - if (getSize() - != other.getSize()) return false; - if (getAliasInputPort() - != other.getAliasInputPort()) return false; - if (hasShape() != other.hasShape()) return false; - if (hasShape()) { - if (!getShape() - .equals(other.getShape())) return false; - } - if (dtype_ != other.dtype_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSize()); - hash = (37 * hash) + ALIAS_INPUT_PORT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAliasInputPort()); - if (hasShape()) { - hash = (37 * hash) + SHAPE_FIELD_NUMBER; - hash = (53 * hash) + getShape().hashCode(); - } - hash = (37 * hash) + DTYPE_FIELD_NUMBER; - hash = (53 * hash) + dtype_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo 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 org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo 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 org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo 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(org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo 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; - } - /** - *
-       * Outputs of this node.
-       * 
- * - * Protobuf type {@code tensorflow.CostGraphDef.Node.OutputInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.CostGraphDef.Node.OutputInfo) - org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_OutputInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_OutputInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo.class, org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - size_ = 0L; - - aliasInputPort_ = 0L; - - if (shapeBuilder_ == null) { - shape_ = null; - } else { - shape_ = null; - shapeBuilder_ = null; - } - dtype_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_OutputInfo_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo getDefaultInstanceForType() { - return org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo build() { - org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo buildPartial() { - org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo result = new org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo(this); - result.size_ = size_; - result.aliasInputPort_ = aliasInputPort_; - if (shapeBuilder_ == null) { - result.shape_ = shape_; - } else { - result.shape_ = shapeBuilder_.build(); - } - result.dtype_ = dtype_; - 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 org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo) { - return mergeFrom((org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo other) { - if (other == org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo.getDefaultInstance()) return this; - if (other.getSize() != 0L) { - setSize(other.getSize()); - } - if (other.getAliasInputPort() != 0L) { - setAliasInputPort(other.getAliasInputPort()); - } - if (other.hasShape()) { - mergeShape(other.getShape()); - } - if (other.dtype_ != 0) { - setDtypeValue(other.getDtypeValue()); - } - 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 { - org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long size_ ; - /** - * int64 size = 1; - */ - public long getSize() { - return size_; - } - /** - * int64 size = 1; - */ - public Builder setSize(long value) { - - size_ = value; - onChanged(); - return this; - } - /** - * int64 size = 1; - */ - public Builder clearSize() { - - size_ = 0L; - onChanged(); - return this; - } - - private long aliasInputPort_ ; - /** - *
-         * If >= 0, the output is an alias of an input. Note that an alias input
-         * may itself be an alias. The algorithm will therefore need to follow
-         * those pointers.
-         * 
- * - * int64 alias_input_port = 2; - */ - public long getAliasInputPort() { - return aliasInputPort_; - } - /** - *
-         * If >= 0, the output is an alias of an input. Note that an alias input
-         * may itself be an alias. The algorithm will therefore need to follow
-         * those pointers.
-         * 
- * - * int64 alias_input_port = 2; - */ - public Builder setAliasInputPort(long value) { - - aliasInputPort_ = value; - onChanged(); - return this; - } - /** - *
-         * If >= 0, the output is an alias of an input. Note that an alias input
-         * may itself be an alias. The algorithm will therefore need to follow
-         * those pointers.
-         * 
- * - * int64 alias_input_port = 2; - */ - public Builder clearAliasInputPort() { - - aliasInputPort_ = 0L; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.TensorShapeProto shape_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> shapeBuilder_; - /** - * .tensorflow.TensorShapeProto shape = 3; - */ - public boolean hasShape() { - return shapeBuilder_ != null || shape_ != null; - } - /** - * .tensorflow.TensorShapeProto shape = 3; - */ - public org.tensorflow.proto.framework.TensorShapeProto getShape() { - if (shapeBuilder_ == null) { - return shape_ == null ? org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; - } else { - return shapeBuilder_.getMessage(); - } - } - /** - * .tensorflow.TensorShapeProto shape = 3; - */ - public Builder setShape(org.tensorflow.proto.framework.TensorShapeProto value) { - if (shapeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - shape_ = value; - onChanged(); - } else { - shapeBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 3; - */ - public Builder setShape( - org.tensorflow.proto.framework.TensorShapeProto.Builder builderForValue) { - if (shapeBuilder_ == null) { - shape_ = builderForValue.build(); - onChanged(); - } else { - shapeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 3; - */ - public Builder mergeShape(org.tensorflow.proto.framework.TensorShapeProto value) { - if (shapeBuilder_ == null) { - if (shape_ != null) { - shape_ = - org.tensorflow.proto.framework.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial(); - } else { - shape_ = value; - } - onChanged(); - } else { - shapeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 3; - */ - public Builder clearShape() { - if (shapeBuilder_ == null) { - shape_ = null; - onChanged(); - } else { - shape_ = null; - shapeBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 3; - */ - public org.tensorflow.proto.framework.TensorShapeProto.Builder getShapeBuilder() { - - onChanged(); - return getShapeFieldBuilder().getBuilder(); - } - /** - * .tensorflow.TensorShapeProto shape = 3; - */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { - if (shapeBuilder_ != null) { - return shapeBuilder_.getMessageOrBuilder(); - } else { - return shape_ == null ? - org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; - } - } - /** - * .tensorflow.TensorShapeProto shape = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> - getShapeFieldBuilder() { - if (shapeBuilder_ == null) { - shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder>( - getShape(), - getParentForChildren(), - isClean()); - shape_ = null; - } - return shapeBuilder_; - } - - private int dtype_ = 0; - /** - * .tensorflow.DataType dtype = 4; - */ - public int getDtypeValue() { - return dtype_; - } - /** - * .tensorflow.DataType dtype = 4; - */ - public Builder setDtypeValue(int value) { - dtype_ = value; - onChanged(); - return this; - } - /** - * .tensorflow.DataType dtype = 4; - */ - public org.tensorflow.proto.framework.DataType getDtype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - /** - * .tensorflow.DataType dtype = 4; - */ - public Builder setDtype(org.tensorflow.proto.framework.DataType value) { - if (value == null) { - throw new NullPointerException(); - } - - dtype_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tensorflow.DataType dtype = 4; - */ - public Builder clearDtype() { - - dtype_ = 0; - 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:tensorflow.CostGraphDef.Node.OutputInfo) - } - - // @@protoc_insertion_point(class_scope:tensorflow.CostGraphDef.Node.OutputInfo) - private static final org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo(); - } - - public static org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-     * The name of the node. Names are globally unique.
-     * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - *
-     * The name of the node. Names are globally unique.
-     * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEVICE_FIELD_NUMBER = 2; - private volatile java.lang.Object device_; - /** - *
-     * The device of the node. Can be empty if the node is mapped to the
-     * default partition or partitioning hasn't been run yet.
-     * 
- * - * string device = 2; - */ - public java.lang.String getDevice() { - java.lang.Object ref = device_; - 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(); - device_ = s; - return s; - } - } - /** - *
-     * The device of the node. Can be empty if the node is mapped to the
-     * default partition or partitioning hasn't been run yet.
-     * 
- * - * string device = 2; - */ - public com.google.protobuf.ByteString - getDeviceBytes() { - java.lang.Object ref = device_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - device_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ID_FIELD_NUMBER = 3; - private int id_; - /** - *
-     * The id of the node. Node ids are only unique inside a partition.
-     * 
- * - * int32 id = 3; - */ - public int getId() { - return id_; - } - - public static final int INPUT_INFO_FIELD_NUMBER = 4; - private java.util.List inputInfo_; - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public java.util.List getInputInfoList() { - return inputInfo_; - } - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public java.util.List - getInputInfoOrBuilderList() { - return inputInfo_; - } - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public int getInputInfoCount() { - return inputInfo_.size(); - } - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo getInputInfo(int index) { - return inputInfo_.get(index); - } - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public org.tensorflow.proto.framework.CostGraphDef.Node.InputInfoOrBuilder getInputInfoOrBuilder( - int index) { - return inputInfo_.get(index); - } - - public static final int OUTPUT_INFO_FIELD_NUMBER = 5; - private java.util.List outputInfo_; - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public java.util.List getOutputInfoList() { - return outputInfo_; - } - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public java.util.List - getOutputInfoOrBuilderList() { - return outputInfo_; - } - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public int getOutputInfoCount() { - return outputInfo_.size(); - } - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo getOutputInfo(int index) { - return outputInfo_.get(index); - } - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfoOrBuilder getOutputInfoOrBuilder( - int index) { - return outputInfo_.get(index); - } - - public static final int TEMPORARY_MEMORY_SIZE_FIELD_NUMBER = 6; - private long temporaryMemorySize_; - /** - *
-     * Temporary memory used by this node.
-     * 
- * - * int64 temporary_memory_size = 6; - */ - public long getTemporaryMemorySize() { - return temporaryMemorySize_; - } - - public static final int PERSISTENT_MEMORY_SIZE_FIELD_NUMBER = 12; - private long persistentMemorySize_; - /** - *
-     * Persistent memory used by this node.
-     * 
- * - * int64 persistent_memory_size = 12; - */ - public long getPersistentMemorySize() { - return persistentMemorySize_; - } - - public static final int HOST_TEMP_MEMORY_SIZE_FIELD_NUMBER = 10; - private long hostTempMemorySize_; - /** - * int64 host_temp_memory_size = 10 [deprecated = true]; - */ - @java.lang.Deprecated public long getHostTempMemorySize() { - return hostTempMemorySize_; - } - - public static final int DEVICE_TEMP_MEMORY_SIZE_FIELD_NUMBER = 11; - private long deviceTempMemorySize_; - /** - * int64 device_temp_memory_size = 11 [deprecated = true]; - */ - @java.lang.Deprecated public long getDeviceTempMemorySize() { - return deviceTempMemorySize_; - } - - public static final int DEVICE_PERSISTENT_MEMORY_SIZE_FIELD_NUMBER = 16; - private long devicePersistentMemorySize_; - /** - * int64 device_persistent_memory_size = 16 [deprecated = true]; - */ - @java.lang.Deprecated public long getDevicePersistentMemorySize() { - return devicePersistentMemorySize_; - } - - public static final int COMPUTE_COST_FIELD_NUMBER = 9; - private long computeCost_; - /** - *
-     * Estimate of the computational cost of this node, in microseconds.
-     * 
- * - * int64 compute_cost = 9; - */ - public long getComputeCost() { - return computeCost_; - } - - public static final int COMPUTE_TIME_FIELD_NUMBER = 14; - private long computeTime_; - /** - *
-     * Analytical estimate of the computational cost of this node, in
-     * microseconds.
-     * 
- * - * int64 compute_time = 14; - */ - public long getComputeTime() { - return computeTime_; - } - - public static final int MEMORY_TIME_FIELD_NUMBER = 15; - private long memoryTime_; - /** - *
-     * Analytical estimate of the memory access cost of this node, in
-     * microseconds.
-     * 
- * - * int64 memory_time = 15; - */ - public long getMemoryTime() { - return memoryTime_; - } - - public static final int IS_FINAL_FIELD_NUMBER = 7; - private boolean isFinal_; - /** - *
-     * If true, the output is permanent: it can't be discarded, because this
-     * node is part of the "final output". Nodes may depend on final nodes.
-     * 
- * - * bool is_final = 7; - */ - public boolean getIsFinal() { - return isFinal_; - } - - public static final int CONTROL_INPUT_FIELD_NUMBER = 8; - private com.google.protobuf.Internal.IntList controlInput_; - /** - *
-     * Ids of the control inputs for this node.
-     * 
- * - * repeated int32 control_input = 8; - */ - public java.util.List - getControlInputList() { - return controlInput_; - } - /** - *
-     * Ids of the control inputs for this node.
-     * 
- * - * repeated int32 control_input = 8; - */ - public int getControlInputCount() { - return controlInput_.size(); - } - /** - *
-     * Ids of the control inputs for this node.
-     * 
- * - * repeated int32 control_input = 8; - */ - public int getControlInput(int index) { - return controlInput_.getInt(index); - } - private int controlInputMemoizedSerializedSize = -1; - - public static final int INACCURATE_FIELD_NUMBER = 17; - private boolean inaccurate_; - /** - *
-     * Are the costs inaccurate?
-     * 
- * - * bool inaccurate = 17; - */ - public boolean getInaccurate() { - return inaccurate_; - } - - 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 { - getSerializedSize(); - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getDeviceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, device_); - } - if (id_ != 0) { - output.writeInt32(3, id_); - } - for (int i = 0; i < inputInfo_.size(); i++) { - output.writeMessage(4, inputInfo_.get(i)); - } - for (int i = 0; i < outputInfo_.size(); i++) { - output.writeMessage(5, outputInfo_.get(i)); - } - if (temporaryMemorySize_ != 0L) { - output.writeInt64(6, temporaryMemorySize_); - } - if (isFinal_ != false) { - output.writeBool(7, isFinal_); - } - if (getControlInputList().size() > 0) { - output.writeUInt32NoTag(66); - output.writeUInt32NoTag(controlInputMemoizedSerializedSize); - } - for (int i = 0; i < controlInput_.size(); i++) { - output.writeInt32NoTag(controlInput_.getInt(i)); - } - if (computeCost_ != 0L) { - output.writeInt64(9, computeCost_); - } - if (hostTempMemorySize_ != 0L) { - output.writeInt64(10, hostTempMemorySize_); - } - if (deviceTempMemorySize_ != 0L) { - output.writeInt64(11, deviceTempMemorySize_); - } - if (persistentMemorySize_ != 0L) { - output.writeInt64(12, persistentMemorySize_); - } - if (computeTime_ != 0L) { - output.writeInt64(14, computeTime_); - } - if (memoryTime_ != 0L) { - output.writeInt64(15, memoryTime_); - } - if (devicePersistentMemorySize_ != 0L) { - output.writeInt64(16, devicePersistentMemorySize_); - } - if (inaccurate_ != false) { - output.writeBool(17, inaccurate_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getDeviceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, device_); - } - if (id_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, id_); - } - for (int i = 0; i < inputInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, inputInfo_.get(i)); - } - for (int i = 0; i < outputInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, outputInfo_.get(i)); - } - if (temporaryMemorySize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, temporaryMemorySize_); - } - if (isFinal_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, isFinal_); - } - { - int dataSize = 0; - for (int i = 0; i < controlInput_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(controlInput_.getInt(i)); - } - size += dataSize; - if (!getControlInputList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - controlInputMemoizedSerializedSize = dataSize; - } - if (computeCost_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, computeCost_); - } - if (hostTempMemorySize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, hostTempMemorySize_); - } - if (deviceTempMemorySize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(11, deviceTempMemorySize_); - } - if (persistentMemorySize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(12, persistentMemorySize_); - } - if (computeTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(14, computeTime_); - } - if (memoryTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(15, memoryTime_); - } - if (devicePersistentMemorySize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(16, devicePersistentMemorySize_); - } - if (inaccurate_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(17, inaccurate_); - } - 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 org.tensorflow.proto.framework.CostGraphDef.Node)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.CostGraphDef.Node other = (org.tensorflow.proto.framework.CostGraphDef.Node) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDevice() - .equals(other.getDevice())) return false; - if (getId() - != other.getId()) return false; - if (!getInputInfoList() - .equals(other.getInputInfoList())) return false; - if (!getOutputInfoList() - .equals(other.getOutputInfoList())) return false; - if (getTemporaryMemorySize() - != other.getTemporaryMemorySize()) return false; - if (getPersistentMemorySize() - != other.getPersistentMemorySize()) return false; - if (getHostTempMemorySize() - != other.getHostTempMemorySize()) return false; - if (getDeviceTempMemorySize() - != other.getDeviceTempMemorySize()) return false; - if (getDevicePersistentMemorySize() - != other.getDevicePersistentMemorySize()) return false; - if (getComputeCost() - != other.getComputeCost()) return false; - if (getComputeTime() - != other.getComputeTime()) return false; - if (getMemoryTime() - != other.getMemoryTime()) return false; - if (getIsFinal() - != other.getIsFinal()) return false; - if (!getControlInputList() - .equals(other.getControlInputList())) return false; - if (getInaccurate() - != other.getInaccurate()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + DEVICE_FIELD_NUMBER; - hash = (53 * hash) + getDevice().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId(); - if (getInputInfoCount() > 0) { - hash = (37 * hash) + INPUT_INFO_FIELD_NUMBER; - hash = (53 * hash) + getInputInfoList().hashCode(); - } - if (getOutputInfoCount() > 0) { - hash = (37 * hash) + OUTPUT_INFO_FIELD_NUMBER; - hash = (53 * hash) + getOutputInfoList().hashCode(); - } - hash = (37 * hash) + TEMPORARY_MEMORY_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTemporaryMemorySize()); - hash = (37 * hash) + PERSISTENT_MEMORY_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPersistentMemorySize()); - hash = (37 * hash) + HOST_TEMP_MEMORY_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHostTempMemorySize()); - hash = (37 * hash) + DEVICE_TEMP_MEMORY_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDeviceTempMemorySize()); - hash = (37 * hash) + DEVICE_PERSISTENT_MEMORY_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDevicePersistentMemorySize()); - hash = (37 * hash) + COMPUTE_COST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getComputeCost()); - hash = (37 * hash) + COMPUTE_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getComputeTime()); - hash = (37 * hash) + MEMORY_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMemoryTime()); - hash = (37 * hash) + IS_FINAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsFinal()); - if (getControlInputCount() > 0) { - hash = (37 * hash) + CONTROL_INPUT_FIELD_NUMBER; - hash = (53 * hash) + getControlInputList().hashCode(); - } - hash = (37 * hash) + INACCURATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInaccurate()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.CostGraphDef.Node parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node 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 org.tensorflow.proto.framework.CostGraphDef.Node parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node 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 org.tensorflow.proto.framework.CostGraphDef.Node parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CostGraphDef.Node 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(org.tensorflow.proto.framework.CostGraphDef.Node prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.CostGraphDef.Node} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.CostGraphDef.Node) - org.tensorflow.proto.framework.CostGraphDef.NodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CostGraphDef.Node.class, org.tensorflow.proto.framework.CostGraphDef.Node.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.CostGraphDef.Node.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getInputInfoFieldBuilder(); - getOutputInfoFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - device_ = ""; - - id_ = 0; - - if (inputInfoBuilder_ == null) { - inputInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - inputInfoBuilder_.clear(); - } - if (outputInfoBuilder_ == null) { - outputInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - outputInfoBuilder_.clear(); - } - temporaryMemorySize_ = 0L; - - persistentMemorySize_ = 0L; - - hostTempMemorySize_ = 0L; - - deviceTempMemorySize_ = 0L; - - devicePersistentMemorySize_ = 0L; - - computeCost_ = 0L; - - computeTime_ = 0L; - - memoryTime_ = 0L; - - isFinal_ = false; - - controlInput_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000004); - inaccurate_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CostGraphDef.Node getDefaultInstanceForType() { - return org.tensorflow.proto.framework.CostGraphDef.Node.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.CostGraphDef.Node build() { - org.tensorflow.proto.framework.CostGraphDef.Node result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CostGraphDef.Node buildPartial() { - org.tensorflow.proto.framework.CostGraphDef.Node result = new org.tensorflow.proto.framework.CostGraphDef.Node(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.device_ = device_; - result.id_ = id_; - if (inputInfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - inputInfo_ = java.util.Collections.unmodifiableList(inputInfo_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.inputInfo_ = inputInfo_; - } else { - result.inputInfo_ = inputInfoBuilder_.build(); - } - if (outputInfoBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - outputInfo_ = java.util.Collections.unmodifiableList(outputInfo_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.outputInfo_ = outputInfo_; - } else { - result.outputInfo_ = outputInfoBuilder_.build(); - } - result.temporaryMemorySize_ = temporaryMemorySize_; - result.persistentMemorySize_ = persistentMemorySize_; - result.hostTempMemorySize_ = hostTempMemorySize_; - result.deviceTempMemorySize_ = deviceTempMemorySize_; - result.devicePersistentMemorySize_ = devicePersistentMemorySize_; - result.computeCost_ = computeCost_; - result.computeTime_ = computeTime_; - result.memoryTime_ = memoryTime_; - result.isFinal_ = isFinal_; - if (((bitField0_ & 0x00000004) != 0)) { - controlInput_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.controlInput_ = controlInput_; - result.inaccurate_ = inaccurate_; - 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 org.tensorflow.proto.framework.CostGraphDef.Node) { - return mergeFrom((org.tensorflow.proto.framework.CostGraphDef.Node)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.CostGraphDef.Node other) { - if (other == org.tensorflow.proto.framework.CostGraphDef.Node.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getDevice().isEmpty()) { - device_ = other.device_; - onChanged(); - } - if (other.getId() != 0) { - setId(other.getId()); - } - if (inputInfoBuilder_ == null) { - if (!other.inputInfo_.isEmpty()) { - if (inputInfo_.isEmpty()) { - inputInfo_ = other.inputInfo_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInputInfoIsMutable(); - inputInfo_.addAll(other.inputInfo_); - } - onChanged(); - } - } else { - if (!other.inputInfo_.isEmpty()) { - if (inputInfoBuilder_.isEmpty()) { - inputInfoBuilder_.dispose(); - inputInfoBuilder_ = null; - inputInfo_ = other.inputInfo_; - bitField0_ = (bitField0_ & ~0x00000001); - inputInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInputInfoFieldBuilder() : null; - } else { - inputInfoBuilder_.addAllMessages(other.inputInfo_); - } - } - } - if (outputInfoBuilder_ == null) { - if (!other.outputInfo_.isEmpty()) { - if (outputInfo_.isEmpty()) { - outputInfo_ = other.outputInfo_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureOutputInfoIsMutable(); - outputInfo_.addAll(other.outputInfo_); - } - onChanged(); - } - } else { - if (!other.outputInfo_.isEmpty()) { - if (outputInfoBuilder_.isEmpty()) { - outputInfoBuilder_.dispose(); - outputInfoBuilder_ = null; - outputInfo_ = other.outputInfo_; - bitField0_ = (bitField0_ & ~0x00000002); - outputInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOutputInfoFieldBuilder() : null; - } else { - outputInfoBuilder_.addAllMessages(other.outputInfo_); - } - } - } - if (other.getTemporaryMemorySize() != 0L) { - setTemporaryMemorySize(other.getTemporaryMemorySize()); - } - if (other.getPersistentMemorySize() != 0L) { - setPersistentMemorySize(other.getPersistentMemorySize()); - } - if (other.getHostTempMemorySize() != 0L) { - setHostTempMemorySize(other.getHostTempMemorySize()); - } - if (other.getDeviceTempMemorySize() != 0L) { - setDeviceTempMemorySize(other.getDeviceTempMemorySize()); - } - if (other.getDevicePersistentMemorySize() != 0L) { - setDevicePersistentMemorySize(other.getDevicePersistentMemorySize()); - } - if (other.getComputeCost() != 0L) { - setComputeCost(other.getComputeCost()); - } - if (other.getComputeTime() != 0L) { - setComputeTime(other.getComputeTime()); - } - if (other.getMemoryTime() != 0L) { - setMemoryTime(other.getMemoryTime()); - } - if (other.getIsFinal() != false) { - setIsFinal(other.getIsFinal()); - } - if (!other.controlInput_.isEmpty()) { - if (controlInput_.isEmpty()) { - controlInput_ = other.controlInput_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureControlInputIsMutable(); - controlInput_.addAll(other.controlInput_); - } - onChanged(); - } - if (other.getInaccurate() != false) { - setInaccurate(other.getInaccurate()); - } - 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 { - org.tensorflow.proto.framework.CostGraphDef.Node parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.CostGraphDef.Node) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-       * The name of the node. Names are globally unique.
-       * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The name of the node. Names are globally unique.
-       * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The name of the node. Names are globally unique.
-       * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * The name of the node. Names are globally unique.
-       * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * The name of the node. Names are globally unique.
-       * 
- * - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object device_ = ""; - /** - *
-       * The device of the node. Can be empty if the node is mapped to the
-       * default partition or partitioning hasn't been run yet.
-       * 
- * - * string device = 2; - */ - public java.lang.String getDevice() { - java.lang.Object ref = device_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - device_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The device of the node. Can be empty if the node is mapped to the
-       * default partition or partitioning hasn't been run yet.
-       * 
- * - * string device = 2; - */ - public com.google.protobuf.ByteString - getDeviceBytes() { - java.lang.Object ref = device_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - device_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The device of the node. Can be empty if the node is mapped to the
-       * default partition or partitioning hasn't been run yet.
-       * 
- * - * string device = 2; - */ - public Builder setDevice( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - device_ = value; - onChanged(); - return this; - } - /** - *
-       * The device of the node. Can be empty if the node is mapped to the
-       * default partition or partitioning hasn't been run yet.
-       * 
- * - * string device = 2; - */ - public Builder clearDevice() { - - device_ = getDefaultInstance().getDevice(); - onChanged(); - return this; - } - /** - *
-       * The device of the node. Can be empty if the node is mapped to the
-       * default partition or partitioning hasn't been run yet.
-       * 
- * - * string device = 2; - */ - public Builder setDeviceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - device_ = value; - onChanged(); - return this; - } - - private int id_ ; - /** - *
-       * The id of the node. Node ids are only unique inside a partition.
-       * 
- * - * int32 id = 3; - */ - public int getId() { - return id_; - } - /** - *
-       * The id of the node. Node ids are only unique inside a partition.
-       * 
- * - * int32 id = 3; - */ - public Builder setId(int value) { - - id_ = value; - onChanged(); - return this; - } - /** - *
-       * The id of the node. Node ids are only unique inside a partition.
-       * 
- * - * int32 id = 3; - */ - public Builder clearId() { - - id_ = 0; - onChanged(); - return this; - } - - private java.util.List inputInfo_ = - java.util.Collections.emptyList(); - private void ensureInputInfoIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - inputInfo_ = new java.util.ArrayList(inputInfo_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo, org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo.Builder, org.tensorflow.proto.framework.CostGraphDef.Node.InputInfoOrBuilder> inputInfoBuilder_; - - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public java.util.List getInputInfoList() { - if (inputInfoBuilder_ == null) { - return java.util.Collections.unmodifiableList(inputInfo_); - } else { - return inputInfoBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public int getInputInfoCount() { - if (inputInfoBuilder_ == null) { - return inputInfo_.size(); - } else { - return inputInfoBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo getInputInfo(int index) { - if (inputInfoBuilder_ == null) { - return inputInfo_.get(index); - } else { - return inputInfoBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public Builder setInputInfo( - int index, org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo value) { - if (inputInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputInfoIsMutable(); - inputInfo_.set(index, value); - onChanged(); - } else { - inputInfoBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public Builder setInputInfo( - int index, org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo.Builder builderForValue) { - if (inputInfoBuilder_ == null) { - ensureInputInfoIsMutable(); - inputInfo_.set(index, builderForValue.build()); - onChanged(); - } else { - inputInfoBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public Builder addInputInfo(org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo value) { - if (inputInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputInfoIsMutable(); - inputInfo_.add(value); - onChanged(); - } else { - inputInfoBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public Builder addInputInfo( - int index, org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo value) { - if (inputInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputInfoIsMutable(); - inputInfo_.add(index, value); - onChanged(); - } else { - inputInfoBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public Builder addInputInfo( - org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo.Builder builderForValue) { - if (inputInfoBuilder_ == null) { - ensureInputInfoIsMutable(); - inputInfo_.add(builderForValue.build()); - onChanged(); - } else { - inputInfoBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public Builder addInputInfo( - int index, org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo.Builder builderForValue) { - if (inputInfoBuilder_ == null) { - ensureInputInfoIsMutable(); - inputInfo_.add(index, builderForValue.build()); - onChanged(); - } else { - inputInfoBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public Builder addAllInputInfo( - java.lang.Iterable values) { - if (inputInfoBuilder_ == null) { - ensureInputInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inputInfo_); - onChanged(); - } else { - inputInfoBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public Builder clearInputInfo() { - if (inputInfoBuilder_ == null) { - inputInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - inputInfoBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public Builder removeInputInfo(int index) { - if (inputInfoBuilder_ == null) { - ensureInputInfoIsMutable(); - inputInfo_.remove(index); - onChanged(); - } else { - inputInfoBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo.Builder getInputInfoBuilder( - int index) { - return getInputInfoFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public org.tensorflow.proto.framework.CostGraphDef.Node.InputInfoOrBuilder getInputInfoOrBuilder( - int index) { - if (inputInfoBuilder_ == null) { - return inputInfo_.get(index); } else { - return inputInfoBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public java.util.List - getInputInfoOrBuilderList() { - if (inputInfoBuilder_ != null) { - return inputInfoBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(inputInfo_); - } - } - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo.Builder addInputInfoBuilder() { - return getInputInfoFieldBuilder().addBuilder( - org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo.getDefaultInstance()); - } - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo.Builder addInputInfoBuilder( - int index) { - return getInputInfoFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo.getDefaultInstance()); - } - /** - * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - */ - public java.util.List - getInputInfoBuilderList() { - return getInputInfoFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo, org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo.Builder, org.tensorflow.proto.framework.CostGraphDef.Node.InputInfoOrBuilder> - getInputInfoFieldBuilder() { - if (inputInfoBuilder_ == null) { - inputInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo, org.tensorflow.proto.framework.CostGraphDef.Node.InputInfo.Builder, org.tensorflow.proto.framework.CostGraphDef.Node.InputInfoOrBuilder>( - inputInfo_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - inputInfo_ = null; - } - return inputInfoBuilder_; - } - - private java.util.List outputInfo_ = - java.util.Collections.emptyList(); - private void ensureOutputInfoIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - outputInfo_ = new java.util.ArrayList(outputInfo_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo, org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo.Builder, org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfoOrBuilder> outputInfoBuilder_; - - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public java.util.List getOutputInfoList() { - if (outputInfoBuilder_ == null) { - return java.util.Collections.unmodifiableList(outputInfo_); - } else { - return outputInfoBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public int getOutputInfoCount() { - if (outputInfoBuilder_ == null) { - return outputInfo_.size(); - } else { - return outputInfoBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo getOutputInfo(int index) { - if (outputInfoBuilder_ == null) { - return outputInfo_.get(index); - } else { - return outputInfoBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public Builder setOutputInfo( - int index, org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo value) { - if (outputInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputInfoIsMutable(); - outputInfo_.set(index, value); - onChanged(); - } else { - outputInfoBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public Builder setOutputInfo( - int index, org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo.Builder builderForValue) { - if (outputInfoBuilder_ == null) { - ensureOutputInfoIsMutable(); - outputInfo_.set(index, builderForValue.build()); - onChanged(); - } else { - outputInfoBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public Builder addOutputInfo(org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo value) { - if (outputInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputInfoIsMutable(); - outputInfo_.add(value); - onChanged(); - } else { - outputInfoBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public Builder addOutputInfo( - int index, org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo value) { - if (outputInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputInfoIsMutable(); - outputInfo_.add(index, value); - onChanged(); - } else { - outputInfoBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public Builder addOutputInfo( - org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo.Builder builderForValue) { - if (outputInfoBuilder_ == null) { - ensureOutputInfoIsMutable(); - outputInfo_.add(builderForValue.build()); - onChanged(); - } else { - outputInfoBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public Builder addOutputInfo( - int index, org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo.Builder builderForValue) { - if (outputInfoBuilder_ == null) { - ensureOutputInfoIsMutable(); - outputInfo_.add(index, builderForValue.build()); - onChanged(); - } else { - outputInfoBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public Builder addAllOutputInfo( - java.lang.Iterable values) { - if (outputInfoBuilder_ == null) { - ensureOutputInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, outputInfo_); - onChanged(); - } else { - outputInfoBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public Builder clearOutputInfo() { - if (outputInfoBuilder_ == null) { - outputInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - outputInfoBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public Builder removeOutputInfo(int index) { - if (outputInfoBuilder_ == null) { - ensureOutputInfoIsMutable(); - outputInfo_.remove(index); - onChanged(); - } else { - outputInfoBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo.Builder getOutputInfoBuilder( - int index) { - return getOutputInfoFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfoOrBuilder getOutputInfoOrBuilder( - int index) { - if (outputInfoBuilder_ == null) { - return outputInfo_.get(index); } else { - return outputInfoBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public java.util.List - getOutputInfoOrBuilderList() { - if (outputInfoBuilder_ != null) { - return outputInfoBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(outputInfo_); - } - } - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo.Builder addOutputInfoBuilder() { - return getOutputInfoFieldBuilder().addBuilder( - org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo.getDefaultInstance()); - } - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo.Builder addOutputInfoBuilder( - int index) { - return getOutputInfoFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo.getDefaultInstance()); - } - /** - * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - */ - public java.util.List - getOutputInfoBuilderList() { - return getOutputInfoFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo, org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo.Builder, org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfoOrBuilder> - getOutputInfoFieldBuilder() { - if (outputInfoBuilder_ == null) { - outputInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo, org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfo.Builder, org.tensorflow.proto.framework.CostGraphDef.Node.OutputInfoOrBuilder>( - outputInfo_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - outputInfo_ = null; - } - return outputInfoBuilder_; - } - - private long temporaryMemorySize_ ; - /** - *
-       * Temporary memory used by this node.
-       * 
- * - * int64 temporary_memory_size = 6; - */ - public long getTemporaryMemorySize() { - return temporaryMemorySize_; - } - /** - *
-       * Temporary memory used by this node.
-       * 
- * - * int64 temporary_memory_size = 6; - */ - public Builder setTemporaryMemorySize(long value) { - - temporaryMemorySize_ = value; - onChanged(); - return this; - } - /** - *
-       * Temporary memory used by this node.
-       * 
- * - * int64 temporary_memory_size = 6; - */ - public Builder clearTemporaryMemorySize() { - - temporaryMemorySize_ = 0L; - onChanged(); - return this; - } - - private long persistentMemorySize_ ; - /** - *
-       * Persistent memory used by this node.
-       * 
- * - * int64 persistent_memory_size = 12; - */ - public long getPersistentMemorySize() { - return persistentMemorySize_; - } - /** - *
-       * Persistent memory used by this node.
-       * 
- * - * int64 persistent_memory_size = 12; - */ - public Builder setPersistentMemorySize(long value) { - - persistentMemorySize_ = value; - onChanged(); - return this; - } - /** - *
-       * Persistent memory used by this node.
-       * 
- * - * int64 persistent_memory_size = 12; - */ - public Builder clearPersistentMemorySize() { - - persistentMemorySize_ = 0L; - onChanged(); - return this; - } - - private long hostTempMemorySize_ ; - /** - * int64 host_temp_memory_size = 10 [deprecated = true]; - */ - @java.lang.Deprecated public long getHostTempMemorySize() { - return hostTempMemorySize_; - } - /** - * int64 host_temp_memory_size = 10 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setHostTempMemorySize(long value) { - - hostTempMemorySize_ = value; - onChanged(); - return this; - } - /** - * int64 host_temp_memory_size = 10 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearHostTempMemorySize() { - - hostTempMemorySize_ = 0L; - onChanged(); - return this; - } - - private long deviceTempMemorySize_ ; - /** - * int64 device_temp_memory_size = 11 [deprecated = true]; - */ - @java.lang.Deprecated public long getDeviceTempMemorySize() { - return deviceTempMemorySize_; - } - /** - * int64 device_temp_memory_size = 11 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setDeviceTempMemorySize(long value) { - - deviceTempMemorySize_ = value; - onChanged(); - return this; - } - /** - * int64 device_temp_memory_size = 11 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearDeviceTempMemorySize() { - - deviceTempMemorySize_ = 0L; - onChanged(); - return this; - } - - private long devicePersistentMemorySize_ ; - /** - * int64 device_persistent_memory_size = 16 [deprecated = true]; - */ - @java.lang.Deprecated public long getDevicePersistentMemorySize() { - return devicePersistentMemorySize_; - } - /** - * int64 device_persistent_memory_size = 16 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setDevicePersistentMemorySize(long value) { - - devicePersistentMemorySize_ = value; - onChanged(); - return this; - } - /** - * int64 device_persistent_memory_size = 16 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearDevicePersistentMemorySize() { - - devicePersistentMemorySize_ = 0L; - onChanged(); - return this; - } - - private long computeCost_ ; - /** - *
-       * Estimate of the computational cost of this node, in microseconds.
-       * 
- * - * int64 compute_cost = 9; - */ - public long getComputeCost() { - return computeCost_; - } - /** - *
-       * Estimate of the computational cost of this node, in microseconds.
-       * 
- * - * int64 compute_cost = 9; - */ - public Builder setComputeCost(long value) { - - computeCost_ = value; - onChanged(); - return this; - } - /** - *
-       * Estimate of the computational cost of this node, in microseconds.
-       * 
- * - * int64 compute_cost = 9; - */ - public Builder clearComputeCost() { - - computeCost_ = 0L; - onChanged(); - return this; - } - - private long computeTime_ ; - /** - *
-       * Analytical estimate of the computational cost of this node, in
-       * microseconds.
-       * 
- * - * int64 compute_time = 14; - */ - public long getComputeTime() { - return computeTime_; - } - /** - *
-       * Analytical estimate of the computational cost of this node, in
-       * microseconds.
-       * 
- * - * int64 compute_time = 14; - */ - public Builder setComputeTime(long value) { - - computeTime_ = value; - onChanged(); - return this; - } - /** - *
-       * Analytical estimate of the computational cost of this node, in
-       * microseconds.
-       * 
- * - * int64 compute_time = 14; - */ - public Builder clearComputeTime() { - - computeTime_ = 0L; - onChanged(); - return this; - } - - private long memoryTime_ ; - /** - *
-       * Analytical estimate of the memory access cost of this node, in
-       * microseconds.
-       * 
- * - * int64 memory_time = 15; - */ - public long getMemoryTime() { - return memoryTime_; - } - /** - *
-       * Analytical estimate of the memory access cost of this node, in
-       * microseconds.
-       * 
- * - * int64 memory_time = 15; - */ - public Builder setMemoryTime(long value) { - - memoryTime_ = value; - onChanged(); - return this; - } - /** - *
-       * Analytical estimate of the memory access cost of this node, in
-       * microseconds.
-       * 
- * - * int64 memory_time = 15; - */ - public Builder clearMemoryTime() { - - memoryTime_ = 0L; - onChanged(); - return this; - } - - private boolean isFinal_ ; - /** - *
-       * If true, the output is permanent: it can't be discarded, because this
-       * node is part of the "final output". Nodes may depend on final nodes.
-       * 
- * - * bool is_final = 7; - */ - public boolean getIsFinal() { - return isFinal_; - } - /** - *
-       * If true, the output is permanent: it can't be discarded, because this
-       * node is part of the "final output". Nodes may depend on final nodes.
-       * 
- * - * bool is_final = 7; - */ - public Builder setIsFinal(boolean value) { - - isFinal_ = value; - onChanged(); - return this; - } - /** - *
-       * If true, the output is permanent: it can't be discarded, because this
-       * node is part of the "final output". Nodes may depend on final nodes.
-       * 
- * - * bool is_final = 7; - */ - public Builder clearIsFinal() { - - isFinal_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList controlInput_ = emptyIntList(); - private void ensureControlInputIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - controlInput_ = mutableCopy(controlInput_); - bitField0_ |= 0x00000004; - } - } - /** - *
-       * Ids of the control inputs for this node.
-       * 
- * - * repeated int32 control_input = 8; - */ - public java.util.List - getControlInputList() { - return ((bitField0_ & 0x00000004) != 0) ? - java.util.Collections.unmodifiableList(controlInput_) : controlInput_; - } - /** - *
-       * Ids of the control inputs for this node.
-       * 
- * - * repeated int32 control_input = 8; - */ - public int getControlInputCount() { - return controlInput_.size(); - } - /** - *
-       * Ids of the control inputs for this node.
-       * 
- * - * repeated int32 control_input = 8; - */ - public int getControlInput(int index) { - return controlInput_.getInt(index); - } - /** - *
-       * Ids of the control inputs for this node.
-       * 
- * - * repeated int32 control_input = 8; - */ - public Builder setControlInput( - int index, int value) { - ensureControlInputIsMutable(); - controlInput_.setInt(index, value); - onChanged(); - return this; - } - /** - *
-       * Ids of the control inputs for this node.
-       * 
- * - * repeated int32 control_input = 8; - */ - public Builder addControlInput(int value) { - ensureControlInputIsMutable(); - controlInput_.addInt(value); - onChanged(); - return this; - } - /** - *
-       * Ids of the control inputs for this node.
-       * 
- * - * repeated int32 control_input = 8; - */ - public Builder addAllControlInput( - java.lang.Iterable values) { - ensureControlInputIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, controlInput_); - onChanged(); - return this; - } - /** - *
-       * Ids of the control inputs for this node.
-       * 
- * - * repeated int32 control_input = 8; - */ - public Builder clearControlInput() { - controlInput_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - private boolean inaccurate_ ; - /** - *
-       * Are the costs inaccurate?
-       * 
- * - * bool inaccurate = 17; - */ - public boolean getInaccurate() { - return inaccurate_; - } - /** - *
-       * Are the costs inaccurate?
-       * 
- * - * bool inaccurate = 17; - */ - public Builder setInaccurate(boolean value) { - - inaccurate_ = value; - onChanged(); - return this; - } - /** - *
-       * Are the costs inaccurate?
-       * 
- * - * bool inaccurate = 17; - */ - public Builder clearInaccurate() { - - inaccurate_ = false; - 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:tensorflow.CostGraphDef.Node) - } - - // @@protoc_insertion_point(class_scope:tensorflow.CostGraphDef.Node) - private static final org.tensorflow.proto.framework.CostGraphDef.Node DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.CostGraphDef.Node(); - } - - public static org.tensorflow.proto.framework.CostGraphDef.Node getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Node parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Node(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CostGraphDef.Node getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AggregatedCostOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.CostGraphDef.AggregatedCost) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Aggregated cost value.
-     * 
- * - * float cost = 1; - */ - float getCost(); - - /** - *
-     * Aggregated cost dimension (e.g. 'memory', 'compute', 'network').
-     * 
- * - * string dimension = 2; - */ - java.lang.String getDimension(); - /** - *
-     * Aggregated cost dimension (e.g. 'memory', 'compute', 'network').
-     * 
- * - * string dimension = 2; - */ - com.google.protobuf.ByteString - getDimensionBytes(); - } - /** - *
-   * Total cost of this graph, typically used for balancing decisions.
-   * 
- * - * Protobuf type {@code tensorflow.CostGraphDef.AggregatedCost} - */ - public static final class AggregatedCost extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.CostGraphDef.AggregatedCost) - AggregatedCostOrBuilder { - private static final long serialVersionUID = 0L; - // Use AggregatedCost.newBuilder() to construct. - private AggregatedCost(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AggregatedCost() { - dimension_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AggregatedCost(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AggregatedCost( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 13: { - - cost_ = input.readFloat(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - dimension_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_AggregatedCost_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_AggregatedCost_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CostGraphDef.AggregatedCost.class, org.tensorflow.proto.framework.CostGraphDef.AggregatedCost.Builder.class); - } - - public static final int COST_FIELD_NUMBER = 1; - private float cost_; - /** - *
-     * Aggregated cost value.
-     * 
- * - * float cost = 1; - */ - public float getCost() { - return cost_; - } - - public static final int DIMENSION_FIELD_NUMBER = 2; - private volatile java.lang.Object dimension_; - /** - *
-     * Aggregated cost dimension (e.g. 'memory', 'compute', 'network').
-     * 
- * - * string dimension = 2; - */ - public java.lang.String getDimension() { - java.lang.Object ref = dimension_; - 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(); - dimension_ = s; - return s; - } - } - /** - *
-     * Aggregated cost dimension (e.g. 'memory', 'compute', 'network').
-     * 
- * - * string dimension = 2; - */ - public com.google.protobuf.ByteString - getDimensionBytes() { - java.lang.Object ref = dimension_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dimension_ = 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 (cost_ != 0F) { - output.writeFloat(1, cost_); - } - if (!getDimensionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dimension_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (cost_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, cost_); - } - if (!getDimensionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dimension_); - } - 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 org.tensorflow.proto.framework.CostGraphDef.AggregatedCost)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.CostGraphDef.AggregatedCost other = (org.tensorflow.proto.framework.CostGraphDef.AggregatedCost) obj; - - if (java.lang.Float.floatToIntBits(getCost()) - != java.lang.Float.floatToIntBits( - other.getCost())) return false; - if (!getDimension() - .equals(other.getDimension())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getCost()); - hash = (37 * hash) + DIMENSION_FIELD_NUMBER; - hash = (53 * hash) + getDimension().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.CostGraphDef.AggregatedCost parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CostGraphDef.AggregatedCost parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CostGraphDef.AggregatedCost parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CostGraphDef.AggregatedCost parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CostGraphDef.AggregatedCost parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CostGraphDef.AggregatedCost parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CostGraphDef.AggregatedCost parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CostGraphDef.AggregatedCost 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 org.tensorflow.proto.framework.CostGraphDef.AggregatedCost parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CostGraphDef.AggregatedCost 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 org.tensorflow.proto.framework.CostGraphDef.AggregatedCost parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CostGraphDef.AggregatedCost 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(org.tensorflow.proto.framework.CostGraphDef.AggregatedCost 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; - } - /** - *
-     * Total cost of this graph, typically used for balancing decisions.
-     * 
- * - * Protobuf type {@code tensorflow.CostGraphDef.AggregatedCost} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.CostGraphDef.AggregatedCost) - org.tensorflow.proto.framework.CostGraphDef.AggregatedCostOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_AggregatedCost_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_AggregatedCost_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CostGraphDef.AggregatedCost.class, org.tensorflow.proto.framework.CostGraphDef.AggregatedCost.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.CostGraphDef.AggregatedCost.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - cost_ = 0F; - - dimension_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_AggregatedCost_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CostGraphDef.AggregatedCost getDefaultInstanceForType() { - return org.tensorflow.proto.framework.CostGraphDef.AggregatedCost.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.CostGraphDef.AggregatedCost build() { - org.tensorflow.proto.framework.CostGraphDef.AggregatedCost result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CostGraphDef.AggregatedCost buildPartial() { - org.tensorflow.proto.framework.CostGraphDef.AggregatedCost result = new org.tensorflow.proto.framework.CostGraphDef.AggregatedCost(this); - result.cost_ = cost_; - result.dimension_ = dimension_; - 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 org.tensorflow.proto.framework.CostGraphDef.AggregatedCost) { - return mergeFrom((org.tensorflow.proto.framework.CostGraphDef.AggregatedCost)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.CostGraphDef.AggregatedCost other) { - if (other == org.tensorflow.proto.framework.CostGraphDef.AggregatedCost.getDefaultInstance()) return this; - if (other.getCost() != 0F) { - setCost(other.getCost()); - } - if (!other.getDimension().isEmpty()) { - dimension_ = other.dimension_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.CostGraphDef.AggregatedCost parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.CostGraphDef.AggregatedCost) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private float cost_ ; - /** - *
-       * Aggregated cost value.
-       * 
- * - * float cost = 1; - */ - public float getCost() { - return cost_; - } - /** - *
-       * Aggregated cost value.
-       * 
- * - * float cost = 1; - */ - public Builder setCost(float value) { - - cost_ = value; - onChanged(); - return this; - } - /** - *
-       * Aggregated cost value.
-       * 
- * - * float cost = 1; - */ - public Builder clearCost() { - - cost_ = 0F; - onChanged(); - return this; - } - - private java.lang.Object dimension_ = ""; - /** - *
-       * Aggregated cost dimension (e.g. 'memory', 'compute', 'network').
-       * 
- * - * string dimension = 2; - */ - public java.lang.String getDimension() { - java.lang.Object ref = dimension_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimension_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Aggregated cost dimension (e.g. 'memory', 'compute', 'network').
-       * 
- * - * string dimension = 2; - */ - public com.google.protobuf.ByteString - getDimensionBytes() { - java.lang.Object ref = dimension_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dimension_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Aggregated cost dimension (e.g. 'memory', 'compute', 'network').
-       * 
- * - * string dimension = 2; - */ - public Builder setDimension( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - dimension_ = value; - onChanged(); - return this; - } - /** - *
-       * Aggregated cost dimension (e.g. 'memory', 'compute', 'network').
-       * 
- * - * string dimension = 2; - */ - public Builder clearDimension() { - - dimension_ = getDefaultInstance().getDimension(); - onChanged(); - return this; - } - /** - *
-       * Aggregated cost dimension (e.g. 'memory', 'compute', 'network').
-       * 
- * - * string dimension = 2; - */ - public Builder setDimensionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - dimension_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.CostGraphDef.AggregatedCost) - } - - // @@protoc_insertion_point(class_scope:tensorflow.CostGraphDef.AggregatedCost) - private static final org.tensorflow.proto.framework.CostGraphDef.AggregatedCost DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.CostGraphDef.AggregatedCost(); - } - - public static org.tensorflow.proto.framework.CostGraphDef.AggregatedCost getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AggregatedCost parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AggregatedCost(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CostGraphDef.AggregatedCost getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int NODE_FIELD_NUMBER = 1; - private java.util.List node_; - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public java.util.List getNodeList() { - return node_; - } - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public java.util.List - getNodeOrBuilderList() { - return node_; - } - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public int getNodeCount() { - return node_.size(); - } - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public org.tensorflow.proto.framework.CostGraphDef.Node getNode(int index) { - return node_.get(index); - } - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public org.tensorflow.proto.framework.CostGraphDef.NodeOrBuilder getNodeOrBuilder( - int index) { - return node_.get(index); - } - - public static final int COST_FIELD_NUMBER = 2; - private java.util.List cost_; - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public java.util.List getCostList() { - return cost_; - } - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public java.util.List - getCostOrBuilderList() { - return cost_; - } - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public int getCostCount() { - return cost_.size(); - } - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public org.tensorflow.proto.framework.CostGraphDef.AggregatedCost getCost(int index) { - return cost_.get(index); - } - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public org.tensorflow.proto.framework.CostGraphDef.AggregatedCostOrBuilder getCostOrBuilder( - int index) { - return cost_.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 < node_.size(); i++) { - output.writeMessage(1, node_.get(i)); - } - for (int i = 0; i < cost_.size(); i++) { - output.writeMessage(2, cost_.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 < node_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, node_.get(i)); - } - for (int i = 0; i < cost_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, cost_.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 org.tensorflow.proto.framework.CostGraphDef)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.CostGraphDef other = (org.tensorflow.proto.framework.CostGraphDef) obj; - - if (!getNodeList() - .equals(other.getNodeList())) return false; - if (!getCostList() - .equals(other.getCostList())) 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 (getNodeCount() > 0) { - hash = (37 * hash) + NODE_FIELD_NUMBER; - hash = (53 * hash) + getNodeList().hashCode(); - } - if (getCostCount() > 0) { - hash = (37 * hash) + COST_FIELD_NUMBER; - hash = (53 * hash) + getCostList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.CostGraphDef parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CostGraphDef parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CostGraphDef parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CostGraphDef parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CostGraphDef parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.CostGraphDef parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.CostGraphDef parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CostGraphDef 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 org.tensorflow.proto.framework.CostGraphDef parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CostGraphDef 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 org.tensorflow.proto.framework.CostGraphDef parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.CostGraphDef 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(org.tensorflow.proto.framework.CostGraphDef prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.CostGraphDef} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.CostGraphDef) - org.tensorflow.proto.framework.CostGraphDefOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CostGraphDef.class, org.tensorflow.proto.framework.CostGraphDef.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.CostGraphDef.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNodeFieldBuilder(); - getCostFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (nodeBuilder_ == null) { - node_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - nodeBuilder_.clear(); - } - if (costBuilder_ == null) { - cost_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - costBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.CostGraphProtos.internal_static_tensorflow_CostGraphDef_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CostGraphDef getDefaultInstanceForType() { - return org.tensorflow.proto.framework.CostGraphDef.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.CostGraphDef build() { - org.tensorflow.proto.framework.CostGraphDef result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CostGraphDef buildPartial() { - org.tensorflow.proto.framework.CostGraphDef result = new org.tensorflow.proto.framework.CostGraphDef(this); - int from_bitField0_ = bitField0_; - if (nodeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - node_ = java.util.Collections.unmodifiableList(node_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.node_ = node_; - } else { - result.node_ = nodeBuilder_.build(); - } - if (costBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - cost_ = java.util.Collections.unmodifiableList(cost_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.cost_ = cost_; - } else { - result.cost_ = costBuilder_.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 org.tensorflow.proto.framework.CostGraphDef) { - return mergeFrom((org.tensorflow.proto.framework.CostGraphDef)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.CostGraphDef other) { - if (other == org.tensorflow.proto.framework.CostGraphDef.getDefaultInstance()) return this; - if (nodeBuilder_ == null) { - if (!other.node_.isEmpty()) { - if (node_.isEmpty()) { - node_ = other.node_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodeIsMutable(); - node_.addAll(other.node_); - } - onChanged(); - } - } else { - if (!other.node_.isEmpty()) { - if (nodeBuilder_.isEmpty()) { - nodeBuilder_.dispose(); - nodeBuilder_ = null; - node_ = other.node_; - bitField0_ = (bitField0_ & ~0x00000001); - nodeBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodeFieldBuilder() : null; - } else { - nodeBuilder_.addAllMessages(other.node_); - } - } - } - if (costBuilder_ == null) { - if (!other.cost_.isEmpty()) { - if (cost_.isEmpty()) { - cost_ = other.cost_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureCostIsMutable(); - cost_.addAll(other.cost_); - } - onChanged(); - } - } else { - if (!other.cost_.isEmpty()) { - if (costBuilder_.isEmpty()) { - costBuilder_.dispose(); - costBuilder_ = null; - cost_ = other.cost_; - bitField0_ = (bitField0_ & ~0x00000002); - costBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCostFieldBuilder() : null; - } else { - costBuilder_.addAllMessages(other.cost_); - } - } - } - 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 { - org.tensorflow.proto.framework.CostGraphDef parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.CostGraphDef) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List node_ = - java.util.Collections.emptyList(); - private void ensureNodeIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - node_ = new java.util.ArrayList(node_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.CostGraphDef.Node, org.tensorflow.proto.framework.CostGraphDef.Node.Builder, org.tensorflow.proto.framework.CostGraphDef.NodeOrBuilder> nodeBuilder_; - - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public java.util.List getNodeList() { - if (nodeBuilder_ == null) { - return java.util.Collections.unmodifiableList(node_); - } else { - return nodeBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public int getNodeCount() { - if (nodeBuilder_ == null) { - return node_.size(); - } else { - return nodeBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public org.tensorflow.proto.framework.CostGraphDef.Node getNode(int index) { - if (nodeBuilder_ == null) { - return node_.get(index); - } else { - return nodeBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public Builder setNode( - int index, org.tensorflow.proto.framework.CostGraphDef.Node value) { - if (nodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeIsMutable(); - node_.set(index, value); - onChanged(); - } else { - nodeBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public Builder setNode( - int index, org.tensorflow.proto.framework.CostGraphDef.Node.Builder builderForValue) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.set(index, builderForValue.build()); - onChanged(); - } else { - nodeBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public Builder addNode(org.tensorflow.proto.framework.CostGraphDef.Node value) { - if (nodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeIsMutable(); - node_.add(value); - onChanged(); - } else { - nodeBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public Builder addNode( - int index, org.tensorflow.proto.framework.CostGraphDef.Node value) { - if (nodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeIsMutable(); - node_.add(index, value); - onChanged(); - } else { - nodeBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public Builder addNode( - org.tensorflow.proto.framework.CostGraphDef.Node.Builder builderForValue) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.add(builderForValue.build()); - onChanged(); - } else { - nodeBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public Builder addNode( - int index, org.tensorflow.proto.framework.CostGraphDef.Node.Builder builderForValue) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.add(index, builderForValue.build()); - onChanged(); - } else { - nodeBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public Builder addAllNode( - java.lang.Iterable values) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, node_); - onChanged(); - } else { - nodeBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public Builder clearNode() { - if (nodeBuilder_ == null) { - node_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodeBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public Builder removeNode(int index) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.remove(index); - onChanged(); - } else { - nodeBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public org.tensorflow.proto.framework.CostGraphDef.Node.Builder getNodeBuilder( - int index) { - return getNodeFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public org.tensorflow.proto.framework.CostGraphDef.NodeOrBuilder getNodeOrBuilder( - int index) { - if (nodeBuilder_ == null) { - return node_.get(index); } else { - return nodeBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public java.util.List - getNodeOrBuilderList() { - if (nodeBuilder_ != null) { - return nodeBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(node_); - } - } - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public org.tensorflow.proto.framework.CostGraphDef.Node.Builder addNodeBuilder() { - return getNodeFieldBuilder().addBuilder( - org.tensorflow.proto.framework.CostGraphDef.Node.getDefaultInstance()); - } - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public org.tensorflow.proto.framework.CostGraphDef.Node.Builder addNodeBuilder( - int index) { - return getNodeFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.CostGraphDef.Node.getDefaultInstance()); - } - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - public java.util.List - getNodeBuilderList() { - return getNodeFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.CostGraphDef.Node, org.tensorflow.proto.framework.CostGraphDef.Node.Builder, org.tensorflow.proto.framework.CostGraphDef.NodeOrBuilder> - getNodeFieldBuilder() { - if (nodeBuilder_ == null) { - nodeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.CostGraphDef.Node, org.tensorflow.proto.framework.CostGraphDef.Node.Builder, org.tensorflow.proto.framework.CostGraphDef.NodeOrBuilder>( - node_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - node_ = null; - } - return nodeBuilder_; - } - - private java.util.List cost_ = - java.util.Collections.emptyList(); - private void ensureCostIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - cost_ = new java.util.ArrayList(cost_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.CostGraphDef.AggregatedCost, org.tensorflow.proto.framework.CostGraphDef.AggregatedCost.Builder, org.tensorflow.proto.framework.CostGraphDef.AggregatedCostOrBuilder> costBuilder_; - - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public java.util.List getCostList() { - if (costBuilder_ == null) { - return java.util.Collections.unmodifiableList(cost_); - } else { - return costBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public int getCostCount() { - if (costBuilder_ == null) { - return cost_.size(); - } else { - return costBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public org.tensorflow.proto.framework.CostGraphDef.AggregatedCost getCost(int index) { - if (costBuilder_ == null) { - return cost_.get(index); - } else { - return costBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public Builder setCost( - int index, org.tensorflow.proto.framework.CostGraphDef.AggregatedCost value) { - if (costBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCostIsMutable(); - cost_.set(index, value); - onChanged(); - } else { - costBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public Builder setCost( - int index, org.tensorflow.proto.framework.CostGraphDef.AggregatedCost.Builder builderForValue) { - if (costBuilder_ == null) { - ensureCostIsMutable(); - cost_.set(index, builderForValue.build()); - onChanged(); - } else { - costBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public Builder addCost(org.tensorflow.proto.framework.CostGraphDef.AggregatedCost value) { - if (costBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCostIsMutable(); - cost_.add(value); - onChanged(); - } else { - costBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public Builder addCost( - int index, org.tensorflow.proto.framework.CostGraphDef.AggregatedCost value) { - if (costBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCostIsMutable(); - cost_.add(index, value); - onChanged(); - } else { - costBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public Builder addCost( - org.tensorflow.proto.framework.CostGraphDef.AggregatedCost.Builder builderForValue) { - if (costBuilder_ == null) { - ensureCostIsMutable(); - cost_.add(builderForValue.build()); - onChanged(); - } else { - costBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public Builder addCost( - int index, org.tensorflow.proto.framework.CostGraphDef.AggregatedCost.Builder builderForValue) { - if (costBuilder_ == null) { - ensureCostIsMutable(); - cost_.add(index, builderForValue.build()); - onChanged(); - } else { - costBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public Builder addAllCost( - java.lang.Iterable values) { - if (costBuilder_ == null) { - ensureCostIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, cost_); - onChanged(); - } else { - costBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public Builder clearCost() { - if (costBuilder_ == null) { - cost_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - costBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public Builder removeCost(int index) { - if (costBuilder_ == null) { - ensureCostIsMutable(); - cost_.remove(index); - onChanged(); - } else { - costBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public org.tensorflow.proto.framework.CostGraphDef.AggregatedCost.Builder getCostBuilder( - int index) { - return getCostFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public org.tensorflow.proto.framework.CostGraphDef.AggregatedCostOrBuilder getCostOrBuilder( - int index) { - if (costBuilder_ == null) { - return cost_.get(index); } else { - return costBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public java.util.List - getCostOrBuilderList() { - if (costBuilder_ != null) { - return costBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(cost_); - } - } - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public org.tensorflow.proto.framework.CostGraphDef.AggregatedCost.Builder addCostBuilder() { - return getCostFieldBuilder().addBuilder( - org.tensorflow.proto.framework.CostGraphDef.AggregatedCost.getDefaultInstance()); - } - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public org.tensorflow.proto.framework.CostGraphDef.AggregatedCost.Builder addCostBuilder( - int index) { - return getCostFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.CostGraphDef.AggregatedCost.getDefaultInstance()); - } - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - public java.util.List - getCostBuilderList() { - return getCostFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.CostGraphDef.AggregatedCost, org.tensorflow.proto.framework.CostGraphDef.AggregatedCost.Builder, org.tensorflow.proto.framework.CostGraphDef.AggregatedCostOrBuilder> - getCostFieldBuilder() { - if (costBuilder_ == null) { - costBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.CostGraphDef.AggregatedCost, org.tensorflow.proto.framework.CostGraphDef.AggregatedCost.Builder, org.tensorflow.proto.framework.CostGraphDef.AggregatedCostOrBuilder>( - cost_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - cost_ = null; - } - return costBuilder_; - } - @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:tensorflow.CostGraphDef) - } - - // @@protoc_insertion_point(class_scope:tensorflow.CostGraphDef) - private static final org.tensorflow.proto.framework.CostGraphDef DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.CostGraphDef(); - } - - public static org.tensorflow.proto.framework.CostGraphDef getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CostGraphDef parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CostGraphDef(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.CostGraphDef getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CostGraphDefOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CostGraphDefOrBuilder.java deleted file mode 100644 index 7d8046a5e27..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CostGraphDefOrBuilder.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/cost_graph.proto - -package org.tensorflow.proto.framework; - -public interface CostGraphDefOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.CostGraphDef) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - java.util.List - getNodeList(); - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - org.tensorflow.proto.framework.CostGraphDef.Node getNode(int index); - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - int getNodeCount(); - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - java.util.List - getNodeOrBuilderList(); - /** - * repeated .tensorflow.CostGraphDef.Node node = 1; - */ - org.tensorflow.proto.framework.CostGraphDef.NodeOrBuilder getNodeOrBuilder( - int index); - - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - java.util.List - getCostList(); - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - org.tensorflow.proto.framework.CostGraphDef.AggregatedCost getCost(int index); - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - int getCostCount(); - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - java.util.List - getCostOrBuilderList(); - /** - * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; - */ - org.tensorflow.proto.framework.CostGraphDef.AggregatedCostOrBuilder getCostOrBuilder( - int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DataType.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DataType.java deleted file mode 100644 index 6b836c8353a..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DataType.java +++ /dev/null @@ -1,615 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/types.proto - -package org.tensorflow.proto.framework; - -/** - *
- * (== suppress_warning documentation-presence ==)
- * LINT.IfChange
- * 
- * - * Protobuf enum {@code tensorflow.DataType} - */ -public enum DataType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Not a legal value for DataType.  Used to indicate a DataType field
-   * has not been set.
-   * 
- * - * DT_INVALID = 0; - */ - DT_INVALID(0), - /** - *
-   * Data types that all computation devices are expected to be
-   * capable to support.
-   * 
- * - * DT_FLOAT = 1; - */ - DT_FLOAT(1), - /** - * DT_DOUBLE = 2; - */ - DT_DOUBLE(2), - /** - * DT_INT32 = 3; - */ - DT_INT32(3), - /** - * DT_UINT8 = 4; - */ - DT_UINT8(4), - /** - * DT_INT16 = 5; - */ - DT_INT16(5), - /** - * DT_INT8 = 6; - */ - DT_INT8(6), - /** - * DT_STRING = 7; - */ - DT_STRING(7), - /** - *
-   * Single-precision complex
-   * 
- * - * DT_COMPLEX64 = 8; - */ - DT_COMPLEX64(8), - /** - * DT_INT64 = 9; - */ - DT_INT64(9), - /** - * DT_BOOL = 10; - */ - DT_BOOL(10), - /** - *
-   * Quantized int8
-   * 
- * - * DT_QINT8 = 11; - */ - DT_QINT8(11), - /** - *
-   * Quantized uint8
-   * 
- * - * DT_QUINT8 = 12; - */ - DT_QUINT8(12), - /** - *
-   * Quantized int32
-   * 
- * - * DT_QINT32 = 13; - */ - DT_QINT32(13), - /** - *
-   * Float32 truncated to 16 bits.  Only for cast ops.
-   * 
- * - * DT_BFLOAT16 = 14; - */ - DT_BFLOAT16(14), - /** - *
-   * Quantized int16
-   * 
- * - * DT_QINT16 = 15; - */ - DT_QINT16(15), - /** - *
-   * Quantized uint16
-   * 
- * - * DT_QUINT16 = 16; - */ - DT_QUINT16(16), - /** - * DT_UINT16 = 17; - */ - DT_UINT16(17), - /** - *
-   * Double-precision complex
-   * 
- * - * DT_COMPLEX128 = 18; - */ - DT_COMPLEX128(18), - /** - * DT_HALF = 19; - */ - DT_HALF(19), - /** - * DT_RESOURCE = 20; - */ - DT_RESOURCE(20), - /** - *
-   * Arbitrary C++ data types
-   * 
- * - * DT_VARIANT = 21; - */ - DT_VARIANT(21), - /** - * DT_UINT32 = 22; - */ - DT_UINT32(22), - /** - * DT_UINT64 = 23; - */ - DT_UINT64(23), - /** - *
-   * Do not use!  These are only for parameters.  Every enum above
-   * should have a corresponding value below (verified by types_test).
-   * 
- * - * DT_FLOAT_REF = 101; - */ - DT_FLOAT_REF(101), - /** - * DT_DOUBLE_REF = 102; - */ - DT_DOUBLE_REF(102), - /** - * DT_INT32_REF = 103; - */ - DT_INT32_REF(103), - /** - * DT_UINT8_REF = 104; - */ - DT_UINT8_REF(104), - /** - * DT_INT16_REF = 105; - */ - DT_INT16_REF(105), - /** - * DT_INT8_REF = 106; - */ - DT_INT8_REF(106), - /** - * DT_STRING_REF = 107; - */ - DT_STRING_REF(107), - /** - * DT_COMPLEX64_REF = 108; - */ - DT_COMPLEX64_REF(108), - /** - * DT_INT64_REF = 109; - */ - DT_INT64_REF(109), - /** - * DT_BOOL_REF = 110; - */ - DT_BOOL_REF(110), - /** - * DT_QINT8_REF = 111; - */ - DT_QINT8_REF(111), - /** - * DT_QUINT8_REF = 112; - */ - DT_QUINT8_REF(112), - /** - * DT_QINT32_REF = 113; - */ - DT_QINT32_REF(113), - /** - * DT_BFLOAT16_REF = 114; - */ - DT_BFLOAT16_REF(114), - /** - * DT_QINT16_REF = 115; - */ - DT_QINT16_REF(115), - /** - * DT_QUINT16_REF = 116; - */ - DT_QUINT16_REF(116), - /** - * DT_UINT16_REF = 117; - */ - DT_UINT16_REF(117), - /** - * DT_COMPLEX128_REF = 118; - */ - DT_COMPLEX128_REF(118), - /** - * DT_HALF_REF = 119; - */ - DT_HALF_REF(119), - /** - * DT_RESOURCE_REF = 120; - */ - DT_RESOURCE_REF(120), - /** - * DT_VARIANT_REF = 121; - */ - DT_VARIANT_REF(121), - /** - * DT_UINT32_REF = 122; - */ - DT_UINT32_REF(122), - /** - * DT_UINT64_REF = 123; - */ - DT_UINT64_REF(123), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Not a legal value for DataType.  Used to indicate a DataType field
-   * has not been set.
-   * 
- * - * DT_INVALID = 0; - */ - public static final int DT_INVALID_VALUE = 0; - /** - *
-   * Data types that all computation devices are expected to be
-   * capable to support.
-   * 
- * - * DT_FLOAT = 1; - */ - public static final int DT_FLOAT_VALUE = 1; - /** - * DT_DOUBLE = 2; - */ - public static final int DT_DOUBLE_VALUE = 2; - /** - * DT_INT32 = 3; - */ - public static final int DT_INT32_VALUE = 3; - /** - * DT_UINT8 = 4; - */ - public static final int DT_UINT8_VALUE = 4; - /** - * DT_INT16 = 5; - */ - public static final int DT_INT16_VALUE = 5; - /** - * DT_INT8 = 6; - */ - public static final int DT_INT8_VALUE = 6; - /** - * DT_STRING = 7; - */ - public static final int DT_STRING_VALUE = 7; - /** - *
-   * Single-precision complex
-   * 
- * - * DT_COMPLEX64 = 8; - */ - public static final int DT_COMPLEX64_VALUE = 8; - /** - * DT_INT64 = 9; - */ - public static final int DT_INT64_VALUE = 9; - /** - * DT_BOOL = 10; - */ - public static final int DT_BOOL_VALUE = 10; - /** - *
-   * Quantized int8
-   * 
- * - * DT_QINT8 = 11; - */ - public static final int DT_QINT8_VALUE = 11; - /** - *
-   * Quantized uint8
-   * 
- * - * DT_QUINT8 = 12; - */ - public static final int DT_QUINT8_VALUE = 12; - /** - *
-   * Quantized int32
-   * 
- * - * DT_QINT32 = 13; - */ - public static final int DT_QINT32_VALUE = 13; - /** - *
-   * Float32 truncated to 16 bits.  Only for cast ops.
-   * 
- * - * DT_BFLOAT16 = 14; - */ - public static final int DT_BFLOAT16_VALUE = 14; - /** - *
-   * Quantized int16
-   * 
- * - * DT_QINT16 = 15; - */ - public static final int DT_QINT16_VALUE = 15; - /** - *
-   * Quantized uint16
-   * 
- * - * DT_QUINT16 = 16; - */ - public static final int DT_QUINT16_VALUE = 16; - /** - * DT_UINT16 = 17; - */ - public static final int DT_UINT16_VALUE = 17; - /** - *
-   * Double-precision complex
-   * 
- * - * DT_COMPLEX128 = 18; - */ - public static final int DT_COMPLEX128_VALUE = 18; - /** - * DT_HALF = 19; - */ - public static final int DT_HALF_VALUE = 19; - /** - * DT_RESOURCE = 20; - */ - public static final int DT_RESOURCE_VALUE = 20; - /** - *
-   * Arbitrary C++ data types
-   * 
- * - * DT_VARIANT = 21; - */ - public static final int DT_VARIANT_VALUE = 21; - /** - * DT_UINT32 = 22; - */ - public static final int DT_UINT32_VALUE = 22; - /** - * DT_UINT64 = 23; - */ - public static final int DT_UINT64_VALUE = 23; - /** - *
-   * Do not use!  These are only for parameters.  Every enum above
-   * should have a corresponding value below (verified by types_test).
-   * 
- * - * DT_FLOAT_REF = 101; - */ - public static final int DT_FLOAT_REF_VALUE = 101; - /** - * DT_DOUBLE_REF = 102; - */ - public static final int DT_DOUBLE_REF_VALUE = 102; - /** - * DT_INT32_REF = 103; - */ - public static final int DT_INT32_REF_VALUE = 103; - /** - * DT_UINT8_REF = 104; - */ - public static final int DT_UINT8_REF_VALUE = 104; - /** - * DT_INT16_REF = 105; - */ - public static final int DT_INT16_REF_VALUE = 105; - /** - * DT_INT8_REF = 106; - */ - public static final int DT_INT8_REF_VALUE = 106; - /** - * DT_STRING_REF = 107; - */ - public static final int DT_STRING_REF_VALUE = 107; - /** - * DT_COMPLEX64_REF = 108; - */ - public static final int DT_COMPLEX64_REF_VALUE = 108; - /** - * DT_INT64_REF = 109; - */ - public static final int DT_INT64_REF_VALUE = 109; - /** - * DT_BOOL_REF = 110; - */ - public static final int DT_BOOL_REF_VALUE = 110; - /** - * DT_QINT8_REF = 111; - */ - public static final int DT_QINT8_REF_VALUE = 111; - /** - * DT_QUINT8_REF = 112; - */ - public static final int DT_QUINT8_REF_VALUE = 112; - /** - * DT_QINT32_REF = 113; - */ - public static final int DT_QINT32_REF_VALUE = 113; - /** - * DT_BFLOAT16_REF = 114; - */ - public static final int DT_BFLOAT16_REF_VALUE = 114; - /** - * DT_QINT16_REF = 115; - */ - public static final int DT_QINT16_REF_VALUE = 115; - /** - * DT_QUINT16_REF = 116; - */ - public static final int DT_QUINT16_REF_VALUE = 116; - /** - * DT_UINT16_REF = 117; - */ - public static final int DT_UINT16_REF_VALUE = 117; - /** - * DT_COMPLEX128_REF = 118; - */ - public static final int DT_COMPLEX128_REF_VALUE = 118; - /** - * DT_HALF_REF = 119; - */ - public static final int DT_HALF_REF_VALUE = 119; - /** - * DT_RESOURCE_REF = 120; - */ - public static final int DT_RESOURCE_REF_VALUE = 120; - /** - * DT_VARIANT_REF = 121; - */ - public static final int DT_VARIANT_REF_VALUE = 121; - /** - * DT_UINT32_REF = 122; - */ - public static final int DT_UINT32_REF_VALUE = 122; - /** - * DT_UINT64_REF = 123; - */ - public static final int DT_UINT64_REF_VALUE = 123; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DataType valueOf(int value) { - return forNumber(value); - } - - public static DataType forNumber(int value) { - switch (value) { - case 0: return DT_INVALID; - case 1: return DT_FLOAT; - case 2: return DT_DOUBLE; - case 3: return DT_INT32; - case 4: return DT_UINT8; - case 5: return DT_INT16; - case 6: return DT_INT8; - case 7: return DT_STRING; - case 8: return DT_COMPLEX64; - case 9: return DT_INT64; - case 10: return DT_BOOL; - case 11: return DT_QINT8; - case 12: return DT_QUINT8; - case 13: return DT_QINT32; - case 14: return DT_BFLOAT16; - case 15: return DT_QINT16; - case 16: return DT_QUINT16; - case 17: return DT_UINT16; - case 18: return DT_COMPLEX128; - case 19: return DT_HALF; - case 20: return DT_RESOURCE; - case 21: return DT_VARIANT; - case 22: return DT_UINT32; - case 23: return DT_UINT64; - case 101: return DT_FLOAT_REF; - case 102: return DT_DOUBLE_REF; - case 103: return DT_INT32_REF; - case 104: return DT_UINT8_REF; - case 105: return DT_INT16_REF; - case 106: return DT_INT8_REF; - case 107: return DT_STRING_REF; - case 108: return DT_COMPLEX64_REF; - case 109: return DT_INT64_REF; - case 110: return DT_BOOL_REF; - case 111: return DT_QINT8_REF; - case 112: return DT_QUINT8_REF; - case 113: return DT_QINT32_REF; - case 114: return DT_BFLOAT16_REF; - case 115: return DT_QINT16_REF; - case 116: return DT_QUINT16_REF; - case 117: return DT_UINT16_REF; - case 118: return DT_COMPLEX128_REF; - case 119: return DT_HALF_REF; - case 120: return DT_RESOURCE_REF; - case 121: return DT_VARIANT_REF; - case 122: return DT_UINT32_REF; - case 123: return DT_UINT64_REF; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - DataType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DataType findValueByNumber(int number) { - return DataType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 org.tensorflow.proto.framework.TypesProtos.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:tensorflow.DataType) -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebugOptions.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebugOptions.java deleted file mode 100644 index 73b4e10af4e..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebugOptions.java +++ /dev/null @@ -1,1033 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/debug.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Options for initializing DebuggerState in TensorFlow Debugger (tfdbg).
- * 
- * - * Protobuf type {@code tensorflow.DebugOptions} - */ -public final class DebugOptions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.DebugOptions) - DebugOptionsOrBuilder { -private static final long serialVersionUID = 0L; - // Use DebugOptions.newBuilder() to construct. - private DebugOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DebugOptions() { - debugTensorWatchOpts_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DebugOptions(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DebugOptions( - 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 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - debugTensorWatchOpts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - debugTensorWatchOpts_.add( - input.readMessage(org.tensorflow.proto.framework.DebugTensorWatch.parser(), extensionRegistry)); - break; - } - case 80: { - - globalStep_ = input.readInt64(); - break; - } - case 88: { - - resetDiskByteUsage_ = input.readBool(); - 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)) { - debugTensorWatchOpts_ = java.util.Collections.unmodifiableList(debugTensorWatchOpts_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.DebugProtos.internal_static_tensorflow_DebugOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.DebugProtos.internal_static_tensorflow_DebugOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.DebugOptions.class, org.tensorflow.proto.framework.DebugOptions.Builder.class); - } - - public static final int DEBUG_TENSOR_WATCH_OPTS_FIELD_NUMBER = 4; - private java.util.List debugTensorWatchOpts_; - /** - *
-   * Debugging options
-   * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public java.util.List getDebugTensorWatchOptsList() { - return debugTensorWatchOpts_; - } - /** - *
-   * Debugging options
-   * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public java.util.List - getDebugTensorWatchOptsOrBuilderList() { - return debugTensorWatchOpts_; - } - /** - *
-   * Debugging options
-   * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public int getDebugTensorWatchOptsCount() { - return debugTensorWatchOpts_.size(); - } - /** - *
-   * Debugging options
-   * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public org.tensorflow.proto.framework.DebugTensorWatch getDebugTensorWatchOpts(int index) { - return debugTensorWatchOpts_.get(index); - } - /** - *
-   * Debugging options
-   * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public org.tensorflow.proto.framework.DebugTensorWatchOrBuilder getDebugTensorWatchOptsOrBuilder( - int index) { - return debugTensorWatchOpts_.get(index); - } - - public static final int GLOBAL_STEP_FIELD_NUMBER = 10; - private long globalStep_; - /** - *
-   * Caller-specified global step count.
-   * Note that this is distinct from the session run count and the executor
-   * step count.
-   * 
- * - * int64 global_step = 10; - */ - public long getGlobalStep() { - return globalStep_; - } - - public static final int RESET_DISK_BYTE_USAGE_FIELD_NUMBER = 11; - private boolean resetDiskByteUsage_; - /** - *
-   * Whether the total disk usage of tfdbg is to be reset to zero
-   * in this Session.run call. This is used by wrappers and hooks
-   * such as the local CLI ones to indicate that the dumped tensors
-   * are cleaned up from the disk after each Session.run.
-   * 
- * - * bool reset_disk_byte_usage = 11; - */ - public boolean getResetDiskByteUsage() { - return resetDiskByteUsage_; - } - - 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 < debugTensorWatchOpts_.size(); i++) { - output.writeMessage(4, debugTensorWatchOpts_.get(i)); - } - if (globalStep_ != 0L) { - output.writeInt64(10, globalStep_); - } - if (resetDiskByteUsage_ != false) { - output.writeBool(11, resetDiskByteUsage_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < debugTensorWatchOpts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, debugTensorWatchOpts_.get(i)); - } - if (globalStep_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, globalStep_); - } - if (resetDiskByteUsage_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, resetDiskByteUsage_); - } - 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 org.tensorflow.proto.framework.DebugOptions)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.DebugOptions other = (org.tensorflow.proto.framework.DebugOptions) obj; - - if (!getDebugTensorWatchOptsList() - .equals(other.getDebugTensorWatchOptsList())) return false; - if (getGlobalStep() - != other.getGlobalStep()) return false; - if (getResetDiskByteUsage() - != other.getResetDiskByteUsage()) 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 (getDebugTensorWatchOptsCount() > 0) { - hash = (37 * hash) + DEBUG_TENSOR_WATCH_OPTS_FIELD_NUMBER; - hash = (53 * hash) + getDebugTensorWatchOptsList().hashCode(); - } - hash = (37 * hash) + GLOBAL_STEP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGlobalStep()); - hash = (37 * hash) + RESET_DISK_BYTE_USAGE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getResetDiskByteUsage()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.DebugOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.DebugOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.DebugOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.DebugOptions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.DebugOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.DebugOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.DebugOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.DebugOptions 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 org.tensorflow.proto.framework.DebugOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.DebugOptions 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 org.tensorflow.proto.framework.DebugOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.DebugOptions 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(org.tensorflow.proto.framework.DebugOptions 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; - } - /** - *
-   * Options for initializing DebuggerState in TensorFlow Debugger (tfdbg).
-   * 
- * - * Protobuf type {@code tensorflow.DebugOptions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.DebugOptions) - org.tensorflow.proto.framework.DebugOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.DebugProtos.internal_static_tensorflow_DebugOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.DebugProtos.internal_static_tensorflow_DebugOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.DebugOptions.class, org.tensorflow.proto.framework.DebugOptions.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.DebugOptions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDebugTensorWatchOptsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (debugTensorWatchOptsBuilder_ == null) { - debugTensorWatchOpts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - debugTensorWatchOptsBuilder_.clear(); - } - globalStep_ = 0L; - - resetDiskByteUsage_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.DebugProtos.internal_static_tensorflow_DebugOptions_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.DebugOptions getDefaultInstanceForType() { - return org.tensorflow.proto.framework.DebugOptions.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.DebugOptions build() { - org.tensorflow.proto.framework.DebugOptions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.DebugOptions buildPartial() { - org.tensorflow.proto.framework.DebugOptions result = new org.tensorflow.proto.framework.DebugOptions(this); - int from_bitField0_ = bitField0_; - if (debugTensorWatchOptsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - debugTensorWatchOpts_ = java.util.Collections.unmodifiableList(debugTensorWatchOpts_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.debugTensorWatchOpts_ = debugTensorWatchOpts_; - } else { - result.debugTensorWatchOpts_ = debugTensorWatchOptsBuilder_.build(); - } - result.globalStep_ = globalStep_; - result.resetDiskByteUsage_ = resetDiskByteUsage_; - 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 org.tensorflow.proto.framework.DebugOptions) { - return mergeFrom((org.tensorflow.proto.framework.DebugOptions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.DebugOptions other) { - if (other == org.tensorflow.proto.framework.DebugOptions.getDefaultInstance()) return this; - if (debugTensorWatchOptsBuilder_ == null) { - if (!other.debugTensorWatchOpts_.isEmpty()) { - if (debugTensorWatchOpts_.isEmpty()) { - debugTensorWatchOpts_ = other.debugTensorWatchOpts_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDebugTensorWatchOptsIsMutable(); - debugTensorWatchOpts_.addAll(other.debugTensorWatchOpts_); - } - onChanged(); - } - } else { - if (!other.debugTensorWatchOpts_.isEmpty()) { - if (debugTensorWatchOptsBuilder_.isEmpty()) { - debugTensorWatchOptsBuilder_.dispose(); - debugTensorWatchOptsBuilder_ = null; - debugTensorWatchOpts_ = other.debugTensorWatchOpts_; - bitField0_ = (bitField0_ & ~0x00000001); - debugTensorWatchOptsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDebugTensorWatchOptsFieldBuilder() : null; - } else { - debugTensorWatchOptsBuilder_.addAllMessages(other.debugTensorWatchOpts_); - } - } - } - if (other.getGlobalStep() != 0L) { - setGlobalStep(other.getGlobalStep()); - } - if (other.getResetDiskByteUsage() != false) { - setResetDiskByteUsage(other.getResetDiskByteUsage()); - } - 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 { - org.tensorflow.proto.framework.DebugOptions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.DebugOptions) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List debugTensorWatchOpts_ = - java.util.Collections.emptyList(); - private void ensureDebugTensorWatchOptsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - debugTensorWatchOpts_ = new java.util.ArrayList(debugTensorWatchOpts_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.DebugTensorWatch, org.tensorflow.proto.framework.DebugTensorWatch.Builder, org.tensorflow.proto.framework.DebugTensorWatchOrBuilder> debugTensorWatchOptsBuilder_; - - /** - *
-     * Debugging options
-     * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public java.util.List getDebugTensorWatchOptsList() { - if (debugTensorWatchOptsBuilder_ == null) { - return java.util.Collections.unmodifiableList(debugTensorWatchOpts_); - } else { - return debugTensorWatchOptsBuilder_.getMessageList(); - } - } - /** - *
-     * Debugging options
-     * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public int getDebugTensorWatchOptsCount() { - if (debugTensorWatchOptsBuilder_ == null) { - return debugTensorWatchOpts_.size(); - } else { - return debugTensorWatchOptsBuilder_.getCount(); - } - } - /** - *
-     * Debugging options
-     * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public org.tensorflow.proto.framework.DebugTensorWatch getDebugTensorWatchOpts(int index) { - if (debugTensorWatchOptsBuilder_ == null) { - return debugTensorWatchOpts_.get(index); - } else { - return debugTensorWatchOptsBuilder_.getMessage(index); - } - } - /** - *
-     * Debugging options
-     * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public Builder setDebugTensorWatchOpts( - int index, org.tensorflow.proto.framework.DebugTensorWatch value) { - if (debugTensorWatchOptsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDebugTensorWatchOptsIsMutable(); - debugTensorWatchOpts_.set(index, value); - onChanged(); - } else { - debugTensorWatchOptsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Debugging options
-     * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public Builder setDebugTensorWatchOpts( - int index, org.tensorflow.proto.framework.DebugTensorWatch.Builder builderForValue) { - if (debugTensorWatchOptsBuilder_ == null) { - ensureDebugTensorWatchOptsIsMutable(); - debugTensorWatchOpts_.set(index, builderForValue.build()); - onChanged(); - } else { - debugTensorWatchOptsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Debugging options
-     * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public Builder addDebugTensorWatchOpts(org.tensorflow.proto.framework.DebugTensorWatch value) { - if (debugTensorWatchOptsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDebugTensorWatchOptsIsMutable(); - debugTensorWatchOpts_.add(value); - onChanged(); - } else { - debugTensorWatchOptsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Debugging options
-     * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public Builder addDebugTensorWatchOpts( - int index, org.tensorflow.proto.framework.DebugTensorWatch value) { - if (debugTensorWatchOptsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDebugTensorWatchOptsIsMutable(); - debugTensorWatchOpts_.add(index, value); - onChanged(); - } else { - debugTensorWatchOptsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Debugging options
-     * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public Builder addDebugTensorWatchOpts( - org.tensorflow.proto.framework.DebugTensorWatch.Builder builderForValue) { - if (debugTensorWatchOptsBuilder_ == null) { - ensureDebugTensorWatchOptsIsMutable(); - debugTensorWatchOpts_.add(builderForValue.build()); - onChanged(); - } else { - debugTensorWatchOptsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Debugging options
-     * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public Builder addDebugTensorWatchOpts( - int index, org.tensorflow.proto.framework.DebugTensorWatch.Builder builderForValue) { - if (debugTensorWatchOptsBuilder_ == null) { - ensureDebugTensorWatchOptsIsMutable(); - debugTensorWatchOpts_.add(index, builderForValue.build()); - onChanged(); - } else { - debugTensorWatchOptsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Debugging options
-     * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public Builder addAllDebugTensorWatchOpts( - java.lang.Iterable values) { - if (debugTensorWatchOptsBuilder_ == null) { - ensureDebugTensorWatchOptsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, debugTensorWatchOpts_); - onChanged(); - } else { - debugTensorWatchOptsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Debugging options
-     * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public Builder clearDebugTensorWatchOpts() { - if (debugTensorWatchOptsBuilder_ == null) { - debugTensorWatchOpts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - debugTensorWatchOptsBuilder_.clear(); - } - return this; - } - /** - *
-     * Debugging options
-     * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public Builder removeDebugTensorWatchOpts(int index) { - if (debugTensorWatchOptsBuilder_ == null) { - ensureDebugTensorWatchOptsIsMutable(); - debugTensorWatchOpts_.remove(index); - onChanged(); - } else { - debugTensorWatchOptsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Debugging options
-     * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public org.tensorflow.proto.framework.DebugTensorWatch.Builder getDebugTensorWatchOptsBuilder( - int index) { - return getDebugTensorWatchOptsFieldBuilder().getBuilder(index); - } - /** - *
-     * Debugging options
-     * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public org.tensorflow.proto.framework.DebugTensorWatchOrBuilder getDebugTensorWatchOptsOrBuilder( - int index) { - if (debugTensorWatchOptsBuilder_ == null) { - return debugTensorWatchOpts_.get(index); } else { - return debugTensorWatchOptsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Debugging options
-     * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public java.util.List - getDebugTensorWatchOptsOrBuilderList() { - if (debugTensorWatchOptsBuilder_ != null) { - return debugTensorWatchOptsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(debugTensorWatchOpts_); - } - } - /** - *
-     * Debugging options
-     * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public org.tensorflow.proto.framework.DebugTensorWatch.Builder addDebugTensorWatchOptsBuilder() { - return getDebugTensorWatchOptsFieldBuilder().addBuilder( - org.tensorflow.proto.framework.DebugTensorWatch.getDefaultInstance()); - } - /** - *
-     * Debugging options
-     * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public org.tensorflow.proto.framework.DebugTensorWatch.Builder addDebugTensorWatchOptsBuilder( - int index) { - return getDebugTensorWatchOptsFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.DebugTensorWatch.getDefaultInstance()); - } - /** - *
-     * Debugging options
-     * 
- * - * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; - */ - public java.util.List - getDebugTensorWatchOptsBuilderList() { - return getDebugTensorWatchOptsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.DebugTensorWatch, org.tensorflow.proto.framework.DebugTensorWatch.Builder, org.tensorflow.proto.framework.DebugTensorWatchOrBuilder> - getDebugTensorWatchOptsFieldBuilder() { - if (debugTensorWatchOptsBuilder_ == null) { - debugTensorWatchOptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.DebugTensorWatch, org.tensorflow.proto.framework.DebugTensorWatch.Builder, org.tensorflow.proto.framework.DebugTensorWatchOrBuilder>( - debugTensorWatchOpts_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - debugTensorWatchOpts_ = null; - } - return debugTensorWatchOptsBuilder_; - } - - private long globalStep_ ; - /** - *
-     * Caller-specified global step count.
-     * Note that this is distinct from the session run count and the executor
-     * step count.
-     * 
- * - * int64 global_step = 10; - */ - public long getGlobalStep() { - return globalStep_; - } - /** - *
-     * Caller-specified global step count.
-     * Note that this is distinct from the session run count and the executor
-     * step count.
-     * 
- * - * int64 global_step = 10; - */ - public Builder setGlobalStep(long value) { - - globalStep_ = value; - onChanged(); - return this; - } - /** - *
-     * Caller-specified global step count.
-     * Note that this is distinct from the session run count and the executor
-     * step count.
-     * 
- * - * int64 global_step = 10; - */ - public Builder clearGlobalStep() { - - globalStep_ = 0L; - onChanged(); - return this; - } - - private boolean resetDiskByteUsage_ ; - /** - *
-     * Whether the total disk usage of tfdbg is to be reset to zero
-     * in this Session.run call. This is used by wrappers and hooks
-     * such as the local CLI ones to indicate that the dumped tensors
-     * are cleaned up from the disk after each Session.run.
-     * 
- * - * bool reset_disk_byte_usage = 11; - */ - public boolean getResetDiskByteUsage() { - return resetDiskByteUsage_; - } - /** - *
-     * Whether the total disk usage of tfdbg is to be reset to zero
-     * in this Session.run call. This is used by wrappers and hooks
-     * such as the local CLI ones to indicate that the dumped tensors
-     * are cleaned up from the disk after each Session.run.
-     * 
- * - * bool reset_disk_byte_usage = 11; - */ - public Builder setResetDiskByteUsage(boolean value) { - - resetDiskByteUsage_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether the total disk usage of tfdbg is to be reset to zero
-     * in this Session.run call. This is used by wrappers and hooks
-     * such as the local CLI ones to indicate that the dumped tensors
-     * are cleaned up from the disk after each Session.run.
-     * 
- * - * bool reset_disk_byte_usage = 11; - */ - public Builder clearResetDiskByteUsage() { - - resetDiskByteUsage_ = false; - 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:tensorflow.DebugOptions) - } - - // @@protoc_insertion_point(class_scope:tensorflow.DebugOptions) - private static final org.tensorflow.proto.framework.DebugOptions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.DebugOptions(); - } - - public static org.tensorflow.proto.framework.DebugOptions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DebugOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DebugOptions(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.DebugOptions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebuggedSourceFiles.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebuggedSourceFiles.java deleted file mode 100644 index c5d014b4bb6..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebuggedSourceFiles.java +++ /dev/null @@ -1,857 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/debug.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.DebuggedSourceFiles} - */ -public final class DebuggedSourceFiles extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.DebuggedSourceFiles) - DebuggedSourceFilesOrBuilder { -private static final long serialVersionUID = 0L; - // Use DebuggedSourceFiles.newBuilder() to construct. - private DebuggedSourceFiles(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DebuggedSourceFiles() { - sourceFiles_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DebuggedSourceFiles(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DebuggedSourceFiles( - 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)) { - sourceFiles_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - sourceFiles_.add( - input.readMessage(org.tensorflow.proto.framework.DebuggedSourceFile.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)) { - sourceFiles_ = java.util.Collections.unmodifiableList(sourceFiles_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.DebugProtos.internal_static_tensorflow_DebuggedSourceFiles_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.DebugProtos.internal_static_tensorflow_DebuggedSourceFiles_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.DebuggedSourceFiles.class, org.tensorflow.proto.framework.DebuggedSourceFiles.Builder.class); - } - - public static final int SOURCE_FILES_FIELD_NUMBER = 1; - private java.util.List sourceFiles_; - /** - *
-   * A collection of source code files.
-   * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public java.util.List getSourceFilesList() { - return sourceFiles_; - } - /** - *
-   * A collection of source code files.
-   * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public java.util.List - getSourceFilesOrBuilderList() { - return sourceFiles_; - } - /** - *
-   * A collection of source code files.
-   * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public int getSourceFilesCount() { - return sourceFiles_.size(); - } - /** - *
-   * A collection of source code files.
-   * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public org.tensorflow.proto.framework.DebuggedSourceFile getSourceFiles(int index) { - return sourceFiles_.get(index); - } - /** - *
-   * A collection of source code files.
-   * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public org.tensorflow.proto.framework.DebuggedSourceFileOrBuilder getSourceFilesOrBuilder( - int index) { - return sourceFiles_.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 < sourceFiles_.size(); i++) { - output.writeMessage(1, sourceFiles_.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 < sourceFiles_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, sourceFiles_.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 org.tensorflow.proto.framework.DebuggedSourceFiles)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.DebuggedSourceFiles other = (org.tensorflow.proto.framework.DebuggedSourceFiles) obj; - - if (!getSourceFilesList() - .equals(other.getSourceFilesList())) 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 (getSourceFilesCount() > 0) { - hash = (37 * hash) + SOURCE_FILES_FIELD_NUMBER; - hash = (53 * hash) + getSourceFilesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.DebuggedSourceFiles parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.DebuggedSourceFiles parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.DebuggedSourceFiles parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.DebuggedSourceFiles parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.DebuggedSourceFiles parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.DebuggedSourceFiles parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.DebuggedSourceFiles parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.DebuggedSourceFiles 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 org.tensorflow.proto.framework.DebuggedSourceFiles parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.DebuggedSourceFiles 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 org.tensorflow.proto.framework.DebuggedSourceFiles parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.DebuggedSourceFiles 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(org.tensorflow.proto.framework.DebuggedSourceFiles prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.DebuggedSourceFiles} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.DebuggedSourceFiles) - org.tensorflow.proto.framework.DebuggedSourceFilesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.DebugProtos.internal_static_tensorflow_DebuggedSourceFiles_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.DebugProtos.internal_static_tensorflow_DebuggedSourceFiles_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.DebuggedSourceFiles.class, org.tensorflow.proto.framework.DebuggedSourceFiles.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.DebuggedSourceFiles.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSourceFilesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (sourceFilesBuilder_ == null) { - sourceFiles_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - sourceFilesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.DebugProtos.internal_static_tensorflow_DebuggedSourceFiles_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.DebuggedSourceFiles getDefaultInstanceForType() { - return org.tensorflow.proto.framework.DebuggedSourceFiles.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.DebuggedSourceFiles build() { - org.tensorflow.proto.framework.DebuggedSourceFiles result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.DebuggedSourceFiles buildPartial() { - org.tensorflow.proto.framework.DebuggedSourceFiles result = new org.tensorflow.proto.framework.DebuggedSourceFiles(this); - int from_bitField0_ = bitField0_; - if (sourceFilesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - sourceFiles_ = java.util.Collections.unmodifiableList(sourceFiles_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.sourceFiles_ = sourceFiles_; - } else { - result.sourceFiles_ = sourceFilesBuilder_.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 org.tensorflow.proto.framework.DebuggedSourceFiles) { - return mergeFrom((org.tensorflow.proto.framework.DebuggedSourceFiles)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.DebuggedSourceFiles other) { - if (other == org.tensorflow.proto.framework.DebuggedSourceFiles.getDefaultInstance()) return this; - if (sourceFilesBuilder_ == null) { - if (!other.sourceFiles_.isEmpty()) { - if (sourceFiles_.isEmpty()) { - sourceFiles_ = other.sourceFiles_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSourceFilesIsMutable(); - sourceFiles_.addAll(other.sourceFiles_); - } - onChanged(); - } - } else { - if (!other.sourceFiles_.isEmpty()) { - if (sourceFilesBuilder_.isEmpty()) { - sourceFilesBuilder_.dispose(); - sourceFilesBuilder_ = null; - sourceFiles_ = other.sourceFiles_; - bitField0_ = (bitField0_ & ~0x00000001); - sourceFilesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSourceFilesFieldBuilder() : null; - } else { - sourceFilesBuilder_.addAllMessages(other.sourceFiles_); - } - } - } - 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 { - org.tensorflow.proto.framework.DebuggedSourceFiles parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.DebuggedSourceFiles) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List sourceFiles_ = - java.util.Collections.emptyList(); - private void ensureSourceFilesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - sourceFiles_ = new java.util.ArrayList(sourceFiles_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.DebuggedSourceFile, org.tensorflow.proto.framework.DebuggedSourceFile.Builder, org.tensorflow.proto.framework.DebuggedSourceFileOrBuilder> sourceFilesBuilder_; - - /** - *
-     * A collection of source code files.
-     * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public java.util.List getSourceFilesList() { - if (sourceFilesBuilder_ == null) { - return java.util.Collections.unmodifiableList(sourceFiles_); - } else { - return sourceFilesBuilder_.getMessageList(); - } - } - /** - *
-     * A collection of source code files.
-     * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public int getSourceFilesCount() { - if (sourceFilesBuilder_ == null) { - return sourceFiles_.size(); - } else { - return sourceFilesBuilder_.getCount(); - } - } - /** - *
-     * A collection of source code files.
-     * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public org.tensorflow.proto.framework.DebuggedSourceFile getSourceFiles(int index) { - if (sourceFilesBuilder_ == null) { - return sourceFiles_.get(index); - } else { - return sourceFilesBuilder_.getMessage(index); - } - } - /** - *
-     * A collection of source code files.
-     * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public Builder setSourceFiles( - int index, org.tensorflow.proto.framework.DebuggedSourceFile value) { - if (sourceFilesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSourceFilesIsMutable(); - sourceFiles_.set(index, value); - onChanged(); - } else { - sourceFilesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * A collection of source code files.
-     * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public Builder setSourceFiles( - int index, org.tensorflow.proto.framework.DebuggedSourceFile.Builder builderForValue) { - if (sourceFilesBuilder_ == null) { - ensureSourceFilesIsMutable(); - sourceFiles_.set(index, builderForValue.build()); - onChanged(); - } else { - sourceFilesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A collection of source code files.
-     * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public Builder addSourceFiles(org.tensorflow.proto.framework.DebuggedSourceFile value) { - if (sourceFilesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSourceFilesIsMutable(); - sourceFiles_.add(value); - onChanged(); - } else { - sourceFilesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * A collection of source code files.
-     * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public Builder addSourceFiles( - int index, org.tensorflow.proto.framework.DebuggedSourceFile value) { - if (sourceFilesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSourceFilesIsMutable(); - sourceFiles_.add(index, value); - onChanged(); - } else { - sourceFilesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * A collection of source code files.
-     * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public Builder addSourceFiles( - org.tensorflow.proto.framework.DebuggedSourceFile.Builder builderForValue) { - if (sourceFilesBuilder_ == null) { - ensureSourceFilesIsMutable(); - sourceFiles_.add(builderForValue.build()); - onChanged(); - } else { - sourceFilesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * A collection of source code files.
-     * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public Builder addSourceFiles( - int index, org.tensorflow.proto.framework.DebuggedSourceFile.Builder builderForValue) { - if (sourceFilesBuilder_ == null) { - ensureSourceFilesIsMutable(); - sourceFiles_.add(index, builderForValue.build()); - onChanged(); - } else { - sourceFilesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A collection of source code files.
-     * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public Builder addAllSourceFiles( - java.lang.Iterable values) { - if (sourceFilesBuilder_ == null) { - ensureSourceFilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sourceFiles_); - onChanged(); - } else { - sourceFilesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * A collection of source code files.
-     * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public Builder clearSourceFiles() { - if (sourceFilesBuilder_ == null) { - sourceFiles_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - sourceFilesBuilder_.clear(); - } - return this; - } - /** - *
-     * A collection of source code files.
-     * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public Builder removeSourceFiles(int index) { - if (sourceFilesBuilder_ == null) { - ensureSourceFilesIsMutable(); - sourceFiles_.remove(index); - onChanged(); - } else { - sourceFilesBuilder_.remove(index); - } - return this; - } - /** - *
-     * A collection of source code files.
-     * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public org.tensorflow.proto.framework.DebuggedSourceFile.Builder getSourceFilesBuilder( - int index) { - return getSourceFilesFieldBuilder().getBuilder(index); - } - /** - *
-     * A collection of source code files.
-     * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public org.tensorflow.proto.framework.DebuggedSourceFileOrBuilder getSourceFilesOrBuilder( - int index) { - if (sourceFilesBuilder_ == null) { - return sourceFiles_.get(index); } else { - return sourceFilesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * A collection of source code files.
-     * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public java.util.List - getSourceFilesOrBuilderList() { - if (sourceFilesBuilder_ != null) { - return sourceFilesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(sourceFiles_); - } - } - /** - *
-     * A collection of source code files.
-     * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public org.tensorflow.proto.framework.DebuggedSourceFile.Builder addSourceFilesBuilder() { - return getSourceFilesFieldBuilder().addBuilder( - org.tensorflow.proto.framework.DebuggedSourceFile.getDefaultInstance()); - } - /** - *
-     * A collection of source code files.
-     * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public org.tensorflow.proto.framework.DebuggedSourceFile.Builder addSourceFilesBuilder( - int index) { - return getSourceFilesFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.DebuggedSourceFile.getDefaultInstance()); - } - /** - *
-     * A collection of source code files.
-     * 
- * - * repeated .tensorflow.DebuggedSourceFile source_files = 1; - */ - public java.util.List - getSourceFilesBuilderList() { - return getSourceFilesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.DebuggedSourceFile, org.tensorflow.proto.framework.DebuggedSourceFile.Builder, org.tensorflow.proto.framework.DebuggedSourceFileOrBuilder> - getSourceFilesFieldBuilder() { - if (sourceFilesBuilder_ == null) { - sourceFilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.DebuggedSourceFile, org.tensorflow.proto.framework.DebuggedSourceFile.Builder, org.tensorflow.proto.framework.DebuggedSourceFileOrBuilder>( - sourceFiles_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - sourceFiles_ = null; - } - return sourceFilesBuilder_; - } - @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:tensorflow.DebuggedSourceFiles) - } - - // @@protoc_insertion_point(class_scope:tensorflow.DebuggedSourceFiles) - private static final org.tensorflow.proto.framework.DebuggedSourceFiles DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.DebuggedSourceFiles(); - } - - public static org.tensorflow.proto.framework.DebuggedSourceFiles getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DebuggedSourceFiles parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DebuggedSourceFiles(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.DebuggedSourceFiles getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceLocality.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceLocality.java deleted file mode 100644 index 25d5784a00d..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceLocality.java +++ /dev/null @@ -1,798 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/device_attributes.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.DeviceLocality} - */ -public final class DeviceLocality extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.DeviceLocality) - DeviceLocalityOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeviceLocality.newBuilder() to construct. - private DeviceLocality(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeviceLocality() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeviceLocality(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DeviceLocality( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - busId_ = input.readInt32(); - break; - } - case 16: { - - numaNode_ = input.readInt32(); - break; - } - case 26: { - org.tensorflow.proto.framework.LocalLinks.Builder subBuilder = null; - if (links_ != null) { - subBuilder = links_.toBuilder(); - } - links_ = input.readMessage(org.tensorflow.proto.framework.LocalLinks.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(links_); - links_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.DeviceAttributesProtos.internal_static_tensorflow_DeviceLocality_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.DeviceAttributesProtos.internal_static_tensorflow_DeviceLocality_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.DeviceLocality.class, org.tensorflow.proto.framework.DeviceLocality.Builder.class); - } - - public static final int BUS_ID_FIELD_NUMBER = 1; - private int busId_; - /** - *
-   * Optional bus locality of device.  Default value of 0 means
-   * no specific locality.  Specific localities are indexed from 1.
-   * 
- * - * int32 bus_id = 1; - */ - public int getBusId() { - return busId_; - } - - public static final int NUMA_NODE_FIELD_NUMBER = 2; - private int numaNode_; - /** - *
-   * Optional NUMA locality of device.
-   * 
- * - * int32 numa_node = 2; - */ - public int getNumaNode() { - return numaNode_; - } - - public static final int LINKS_FIELD_NUMBER = 3; - private org.tensorflow.proto.framework.LocalLinks links_; - /** - *
-   * Optional local interconnect links to other devices.
-   * 
- * - * .tensorflow.LocalLinks links = 3; - */ - public boolean hasLinks() { - return links_ != null; - } - /** - *
-   * Optional local interconnect links to other devices.
-   * 
- * - * .tensorflow.LocalLinks links = 3; - */ - public org.tensorflow.proto.framework.LocalLinks getLinks() { - return links_ == null ? org.tensorflow.proto.framework.LocalLinks.getDefaultInstance() : links_; - } - /** - *
-   * Optional local interconnect links to other devices.
-   * 
- * - * .tensorflow.LocalLinks links = 3; - */ - public org.tensorflow.proto.framework.LocalLinksOrBuilder getLinksOrBuilder() { - return getLinks(); - } - - 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 (busId_ != 0) { - output.writeInt32(1, busId_); - } - if (numaNode_ != 0) { - output.writeInt32(2, numaNode_); - } - if (links_ != null) { - output.writeMessage(3, getLinks()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (busId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, busId_); - } - if (numaNode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, numaNode_); - } - if (links_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getLinks()); - } - 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 org.tensorflow.proto.framework.DeviceLocality)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.DeviceLocality other = (org.tensorflow.proto.framework.DeviceLocality) obj; - - if (getBusId() - != other.getBusId()) return false; - if (getNumaNode() - != other.getNumaNode()) return false; - if (hasLinks() != other.hasLinks()) return false; - if (hasLinks()) { - if (!getLinks() - .equals(other.getLinks())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BUS_ID_FIELD_NUMBER; - hash = (53 * hash) + getBusId(); - hash = (37 * hash) + NUMA_NODE_FIELD_NUMBER; - hash = (53 * hash) + getNumaNode(); - if (hasLinks()) { - hash = (37 * hash) + LINKS_FIELD_NUMBER; - hash = (53 * hash) + getLinks().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.DeviceLocality parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.DeviceLocality parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.DeviceLocality parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.DeviceLocality parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.DeviceLocality parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.DeviceLocality parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.DeviceLocality parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.DeviceLocality 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 org.tensorflow.proto.framework.DeviceLocality parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.DeviceLocality 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 org.tensorflow.proto.framework.DeviceLocality parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.DeviceLocality 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(org.tensorflow.proto.framework.DeviceLocality prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.DeviceLocality} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.DeviceLocality) - org.tensorflow.proto.framework.DeviceLocalityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.DeviceAttributesProtos.internal_static_tensorflow_DeviceLocality_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.DeviceAttributesProtos.internal_static_tensorflow_DeviceLocality_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.DeviceLocality.class, org.tensorflow.proto.framework.DeviceLocality.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.DeviceLocality.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - busId_ = 0; - - numaNode_ = 0; - - if (linksBuilder_ == null) { - links_ = null; - } else { - links_ = null; - linksBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.DeviceAttributesProtos.internal_static_tensorflow_DeviceLocality_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.DeviceLocality getDefaultInstanceForType() { - return org.tensorflow.proto.framework.DeviceLocality.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.DeviceLocality build() { - org.tensorflow.proto.framework.DeviceLocality result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.DeviceLocality buildPartial() { - org.tensorflow.proto.framework.DeviceLocality result = new org.tensorflow.proto.framework.DeviceLocality(this); - result.busId_ = busId_; - result.numaNode_ = numaNode_; - if (linksBuilder_ == null) { - result.links_ = links_; - } else { - result.links_ = linksBuilder_.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 org.tensorflow.proto.framework.DeviceLocality) { - return mergeFrom((org.tensorflow.proto.framework.DeviceLocality)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.DeviceLocality other) { - if (other == org.tensorflow.proto.framework.DeviceLocality.getDefaultInstance()) return this; - if (other.getBusId() != 0) { - setBusId(other.getBusId()); - } - if (other.getNumaNode() != 0) { - setNumaNode(other.getNumaNode()); - } - if (other.hasLinks()) { - mergeLinks(other.getLinks()); - } - 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 { - org.tensorflow.proto.framework.DeviceLocality parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.DeviceLocality) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int busId_ ; - /** - *
-     * Optional bus locality of device.  Default value of 0 means
-     * no specific locality.  Specific localities are indexed from 1.
-     * 
- * - * int32 bus_id = 1; - */ - public int getBusId() { - return busId_; - } - /** - *
-     * Optional bus locality of device.  Default value of 0 means
-     * no specific locality.  Specific localities are indexed from 1.
-     * 
- * - * int32 bus_id = 1; - */ - public Builder setBusId(int value) { - - busId_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional bus locality of device.  Default value of 0 means
-     * no specific locality.  Specific localities are indexed from 1.
-     * 
- * - * int32 bus_id = 1; - */ - public Builder clearBusId() { - - busId_ = 0; - onChanged(); - return this; - } - - private int numaNode_ ; - /** - *
-     * Optional NUMA locality of device.
-     * 
- * - * int32 numa_node = 2; - */ - public int getNumaNode() { - return numaNode_; - } - /** - *
-     * Optional NUMA locality of device.
-     * 
- * - * int32 numa_node = 2; - */ - public Builder setNumaNode(int value) { - - numaNode_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional NUMA locality of device.
-     * 
- * - * int32 numa_node = 2; - */ - public Builder clearNumaNode() { - - numaNode_ = 0; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.LocalLinks links_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.LocalLinks, org.tensorflow.proto.framework.LocalLinks.Builder, org.tensorflow.proto.framework.LocalLinksOrBuilder> linksBuilder_; - /** - *
-     * Optional local interconnect links to other devices.
-     * 
- * - * .tensorflow.LocalLinks links = 3; - */ - public boolean hasLinks() { - return linksBuilder_ != null || links_ != null; - } - /** - *
-     * Optional local interconnect links to other devices.
-     * 
- * - * .tensorflow.LocalLinks links = 3; - */ - public org.tensorflow.proto.framework.LocalLinks getLinks() { - if (linksBuilder_ == null) { - return links_ == null ? org.tensorflow.proto.framework.LocalLinks.getDefaultInstance() : links_; - } else { - return linksBuilder_.getMessage(); - } - } - /** - *
-     * Optional local interconnect links to other devices.
-     * 
- * - * .tensorflow.LocalLinks links = 3; - */ - public Builder setLinks(org.tensorflow.proto.framework.LocalLinks value) { - if (linksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - links_ = value; - onChanged(); - } else { - linksBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Optional local interconnect links to other devices.
-     * 
- * - * .tensorflow.LocalLinks links = 3; - */ - public Builder setLinks( - org.tensorflow.proto.framework.LocalLinks.Builder builderForValue) { - if (linksBuilder_ == null) { - links_ = builderForValue.build(); - onChanged(); - } else { - linksBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Optional local interconnect links to other devices.
-     * 
- * - * .tensorflow.LocalLinks links = 3; - */ - public Builder mergeLinks(org.tensorflow.proto.framework.LocalLinks value) { - if (linksBuilder_ == null) { - if (links_ != null) { - links_ = - org.tensorflow.proto.framework.LocalLinks.newBuilder(links_).mergeFrom(value).buildPartial(); - } else { - links_ = value; - } - onChanged(); - } else { - linksBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Optional local interconnect links to other devices.
-     * 
- * - * .tensorflow.LocalLinks links = 3; - */ - public Builder clearLinks() { - if (linksBuilder_ == null) { - links_ = null; - onChanged(); - } else { - links_ = null; - linksBuilder_ = null; - } - - return this; - } - /** - *
-     * Optional local interconnect links to other devices.
-     * 
- * - * .tensorflow.LocalLinks links = 3; - */ - public org.tensorflow.proto.framework.LocalLinks.Builder getLinksBuilder() { - - onChanged(); - return getLinksFieldBuilder().getBuilder(); - } - /** - *
-     * Optional local interconnect links to other devices.
-     * 
- * - * .tensorflow.LocalLinks links = 3; - */ - public org.tensorflow.proto.framework.LocalLinksOrBuilder getLinksOrBuilder() { - if (linksBuilder_ != null) { - return linksBuilder_.getMessageOrBuilder(); - } else { - return links_ == null ? - org.tensorflow.proto.framework.LocalLinks.getDefaultInstance() : links_; - } - } - /** - *
-     * Optional local interconnect links to other devices.
-     * 
- * - * .tensorflow.LocalLinks links = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.LocalLinks, org.tensorflow.proto.framework.LocalLinks.Builder, org.tensorflow.proto.framework.LocalLinksOrBuilder> - getLinksFieldBuilder() { - if (linksBuilder_ == null) { - linksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.LocalLinks, org.tensorflow.proto.framework.LocalLinks.Builder, org.tensorflow.proto.framework.LocalLinksOrBuilder>( - getLinks(), - getParentForChildren(), - isClean()); - links_ = null; - } - return linksBuilder_; - } - @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:tensorflow.DeviceLocality) - } - - // @@protoc_insertion_point(class_scope:tensorflow.DeviceLocality) - private static final org.tensorflow.proto.framework.DeviceLocality DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.DeviceLocality(); - } - - public static org.tensorflow.proto.framework.DeviceLocality getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeviceLocality parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeviceLocality(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.DeviceLocality getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceProperties.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceProperties.java deleted file mode 100644 index a6e16b28d1f..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceProperties.java +++ /dev/null @@ -1,1885 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/device_properties.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.DeviceProperties} - */ -public final class DeviceProperties extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.DeviceProperties) - DevicePropertiesOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeviceProperties.newBuilder() to construct. - private DeviceProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeviceProperties() { - type_ = ""; - vendor_ = ""; - model_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeviceProperties(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DeviceProperties( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - vendor_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - model_ = s; - break; - } - case 32: { - - frequency_ = input.readInt64(); - break; - } - case 40: { - - numCores_ = input.readInt64(); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - environment_ = com.google.protobuf.MapField.newMapField( - EnvironmentDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - environment__ = input.readMessage( - EnvironmentDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - environment_.getMutableMap().put( - environment__.getKey(), environment__.getValue()); - break; - } - case 56: { - - numRegisters_ = input.readInt64(); - break; - } - case 64: { - - l1CacheSize_ = input.readInt64(); - break; - } - case 72: { - - l2CacheSize_ = input.readInt64(); - break; - } - case 80: { - - l3CacheSize_ = input.readInt64(); - break; - } - case 88: { - - sharedMemorySizePerMultiprocessor_ = input.readInt64(); - break; - } - case 96: { - - memorySize_ = input.readInt64(); - break; - } - case 104: { - - bandwidth_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.DevicePropertiesProtos.internal_static_tensorflow_DeviceProperties_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 6: - return internalGetEnvironment(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.DevicePropertiesProtos.internal_static_tensorflow_DeviceProperties_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.DeviceProperties.class, org.tensorflow.proto.framework.DeviceProperties.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object type_; - /** - *
-   * Device type (CPU, GPU, ...)
-   * 
- * - * string type = 1; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - 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(); - type_ = s; - return s; - } - } - /** - *
-   * Device type (CPU, GPU, ...)
-   * 
- * - * string type = 1; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VENDOR_FIELD_NUMBER = 2; - private volatile java.lang.Object vendor_; - /** - *
-   * Vendor (Intel, nvidia, ...)
-   * 
- * - * string vendor = 2; - */ - public java.lang.String getVendor() { - java.lang.Object ref = vendor_; - 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(); - vendor_ = s; - return s; - } - } - /** - *
-   * Vendor (Intel, nvidia, ...)
-   * 
- * - * string vendor = 2; - */ - public com.google.protobuf.ByteString - getVendorBytes() { - java.lang.Object ref = vendor_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - vendor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MODEL_FIELD_NUMBER = 3; - private volatile java.lang.Object model_; - /** - *
-   * Model (Haswell, K40, ...)
-   * 
- * - * string model = 3; - */ - public java.lang.String getModel() { - java.lang.Object ref = model_; - 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(); - model_ = s; - return s; - } - } - /** - *
-   * Model (Haswell, K40, ...)
-   * 
- * - * string model = 3; - */ - public com.google.protobuf.ByteString - getModelBytes() { - java.lang.Object ref = model_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - model_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FREQUENCY_FIELD_NUMBER = 4; - private long frequency_; - /** - *
-   * Core Frequency in Mhz
-   * 
- * - * int64 frequency = 4; - */ - public long getFrequency() { - return frequency_; - } - - public static final int NUM_CORES_FIELD_NUMBER = 5; - private long numCores_; - /** - *
-   * Number of cores
-   * 
- * - * int64 num_cores = 5; - */ - public long getNumCores() { - return numCores_; - } - - public static final int ENVIRONMENT_FIELD_NUMBER = 6; - private static final class EnvironmentDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.tensorflow.proto.framework.DevicePropertiesProtos.internal_static_tensorflow_DeviceProperties_EnvironmentEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> environment_; - private com.google.protobuf.MapField - internalGetEnvironment() { - if (environment_ == null) { - return com.google.protobuf.MapField.emptyMapField( - EnvironmentDefaultEntryHolder.defaultEntry); - } - return environment_; - } - - public int getEnvironmentCount() { - return internalGetEnvironment().getMap().size(); - } - /** - *
-   * Version of the tools and libraries used with this device (e.g. gcc 4.9,
-   * cudnn 5.1)
-   * 
- * - * map<string, string> environment = 6; - */ - - public boolean containsEnvironment( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetEnvironment().getMap().containsKey(key); - } - /** - * Use {@link #getEnvironmentMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getEnvironment() { - return getEnvironmentMap(); - } - /** - *
-   * Version of the tools and libraries used with this device (e.g. gcc 4.9,
-   * cudnn 5.1)
-   * 
- * - * map<string, string> environment = 6; - */ - - public java.util.Map getEnvironmentMap() { - return internalGetEnvironment().getMap(); - } - /** - *
-   * Version of the tools and libraries used with this device (e.g. gcc 4.9,
-   * cudnn 5.1)
-   * 
- * - * map<string, string> environment = 6; - */ - - public java.lang.String getEnvironmentOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetEnvironment().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-   * Version of the tools and libraries used with this device (e.g. gcc 4.9,
-   * cudnn 5.1)
-   * 
- * - * map<string, string> environment = 6; - */ - - public java.lang.String getEnvironmentOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetEnvironment().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int NUM_REGISTERS_FIELD_NUMBER = 7; - private long numRegisters_; - /** - *
-   * Number of registers per core.
-   * 
- * - * int64 num_registers = 7; - */ - public long getNumRegisters() { - return numRegisters_; - } - - public static final int L1_CACHE_SIZE_FIELD_NUMBER = 8; - private long l1CacheSize_; - /** - *
-   * L1 cache size in bytes
-   * 
- * - * int64 l1_cache_size = 8; - */ - public long getL1CacheSize() { - return l1CacheSize_; - } - - public static final int L2_CACHE_SIZE_FIELD_NUMBER = 9; - private long l2CacheSize_; - /** - *
-   * L2 cache size in bytes
-   * 
- * - * int64 l2_cache_size = 9; - */ - public long getL2CacheSize() { - return l2CacheSize_; - } - - public static final int L3_CACHE_SIZE_FIELD_NUMBER = 10; - private long l3CacheSize_; - /** - *
-   * L3 cache size in bytes
-   * 
- * - * int64 l3_cache_size = 10; - */ - public long getL3CacheSize() { - return l3CacheSize_; - } - - public static final int SHARED_MEMORY_SIZE_PER_MULTIPROCESSOR_FIELD_NUMBER = 11; - private long sharedMemorySizePerMultiprocessor_; - /** - *
-   * Shared memory size per multiprocessor in bytes. This field is
-   * applicable to GPUs only.
-   * 
- * - * int64 shared_memory_size_per_multiprocessor = 11; - */ - public long getSharedMemorySizePerMultiprocessor() { - return sharedMemorySizePerMultiprocessor_; - } - - public static final int MEMORY_SIZE_FIELD_NUMBER = 12; - private long memorySize_; - /** - *
-   * Memory size in bytes
-   * 
- * - * int64 memory_size = 12; - */ - public long getMemorySize() { - return memorySize_; - } - - public static final int BANDWIDTH_FIELD_NUMBER = 13; - private long bandwidth_; - /** - *
-   * Memory bandwidth in KB/s
-   * 
- * - * int64 bandwidth = 13; - */ - public long getBandwidth() { - return bandwidth_; - } - - 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 (!getTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); - } - if (!getVendorBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vendor_); - } - if (!getModelBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_); - } - if (frequency_ != 0L) { - output.writeInt64(4, frequency_); - } - if (numCores_ != 0L) { - output.writeInt64(5, numCores_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetEnvironment(), - EnvironmentDefaultEntryHolder.defaultEntry, - 6); - if (numRegisters_ != 0L) { - output.writeInt64(7, numRegisters_); - } - if (l1CacheSize_ != 0L) { - output.writeInt64(8, l1CacheSize_); - } - if (l2CacheSize_ != 0L) { - output.writeInt64(9, l2CacheSize_); - } - if (l3CacheSize_ != 0L) { - output.writeInt64(10, l3CacheSize_); - } - if (sharedMemorySizePerMultiprocessor_ != 0L) { - output.writeInt64(11, sharedMemorySizePerMultiprocessor_); - } - if (memorySize_ != 0L) { - output.writeInt64(12, memorySize_); - } - if (bandwidth_ != 0L) { - output.writeInt64(13, bandwidth_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); - } - if (!getVendorBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vendor_); - } - if (!getModelBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); - } - if (frequency_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, frequency_); - } - if (numCores_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, numCores_); - } - for (java.util.Map.Entry entry - : internalGetEnvironment().getMap().entrySet()) { - com.google.protobuf.MapEntry - environment__ = EnvironmentDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, environment__); - } - if (numRegisters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, numRegisters_); - } - if (l1CacheSize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, l1CacheSize_); - } - if (l2CacheSize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, l2CacheSize_); - } - if (l3CacheSize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, l3CacheSize_); - } - if (sharedMemorySizePerMultiprocessor_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(11, sharedMemorySizePerMultiprocessor_); - } - if (memorySize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(12, memorySize_); - } - if (bandwidth_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(13, bandwidth_); - } - 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 org.tensorflow.proto.framework.DeviceProperties)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.DeviceProperties other = (org.tensorflow.proto.framework.DeviceProperties) obj; - - if (!getType() - .equals(other.getType())) return false; - if (!getVendor() - .equals(other.getVendor())) return false; - if (!getModel() - .equals(other.getModel())) return false; - if (getFrequency() - != other.getFrequency()) return false; - if (getNumCores() - != other.getNumCores()) return false; - if (!internalGetEnvironment().equals( - other.internalGetEnvironment())) return false; - if (getNumRegisters() - != other.getNumRegisters()) return false; - if (getL1CacheSize() - != other.getL1CacheSize()) return false; - if (getL2CacheSize() - != other.getL2CacheSize()) return false; - if (getL3CacheSize() - != other.getL3CacheSize()) return false; - if (getSharedMemorySizePerMultiprocessor() - != other.getSharedMemorySizePerMultiprocessor()) return false; - if (getMemorySize() - != other.getMemorySize()) return false; - if (getBandwidth() - != other.getBandwidth()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - hash = (37 * hash) + VENDOR_FIELD_NUMBER; - hash = (53 * hash) + getVendor().hashCode(); - hash = (37 * hash) + MODEL_FIELD_NUMBER; - hash = (53 * hash) + getModel().hashCode(); - hash = (37 * hash) + FREQUENCY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFrequency()); - hash = (37 * hash) + NUM_CORES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNumCores()); - if (!internalGetEnvironment().getMap().isEmpty()) { - hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; - hash = (53 * hash) + internalGetEnvironment().hashCode(); - } - hash = (37 * hash) + NUM_REGISTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNumRegisters()); - hash = (37 * hash) + L1_CACHE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getL1CacheSize()); - hash = (37 * hash) + L2_CACHE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getL2CacheSize()); - hash = (37 * hash) + L3_CACHE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getL3CacheSize()); - hash = (37 * hash) + SHARED_MEMORY_SIZE_PER_MULTIPROCESSOR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSharedMemorySizePerMultiprocessor()); - hash = (37 * hash) + MEMORY_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMemorySize()); - hash = (37 * hash) + BANDWIDTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBandwidth()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.DeviceProperties parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.DeviceProperties parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.DeviceProperties parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.DeviceProperties parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.DeviceProperties parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.DeviceProperties parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.DeviceProperties parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.DeviceProperties 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 org.tensorflow.proto.framework.DeviceProperties parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.DeviceProperties 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 org.tensorflow.proto.framework.DeviceProperties parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.DeviceProperties 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(org.tensorflow.proto.framework.DeviceProperties prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.DeviceProperties} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.DeviceProperties) - org.tensorflow.proto.framework.DevicePropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.DevicePropertiesProtos.internal_static_tensorflow_DeviceProperties_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 6: - return internalGetEnvironment(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 6: - return internalGetMutableEnvironment(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.DevicePropertiesProtos.internal_static_tensorflow_DeviceProperties_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.DeviceProperties.class, org.tensorflow.proto.framework.DeviceProperties.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.DeviceProperties.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - type_ = ""; - - vendor_ = ""; - - model_ = ""; - - frequency_ = 0L; - - numCores_ = 0L; - - internalGetMutableEnvironment().clear(); - numRegisters_ = 0L; - - l1CacheSize_ = 0L; - - l2CacheSize_ = 0L; - - l3CacheSize_ = 0L; - - sharedMemorySizePerMultiprocessor_ = 0L; - - memorySize_ = 0L; - - bandwidth_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.DevicePropertiesProtos.internal_static_tensorflow_DeviceProperties_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.DeviceProperties getDefaultInstanceForType() { - return org.tensorflow.proto.framework.DeviceProperties.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.DeviceProperties build() { - org.tensorflow.proto.framework.DeviceProperties result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.DeviceProperties buildPartial() { - org.tensorflow.proto.framework.DeviceProperties result = new org.tensorflow.proto.framework.DeviceProperties(this); - int from_bitField0_ = bitField0_; - result.type_ = type_; - result.vendor_ = vendor_; - result.model_ = model_; - result.frequency_ = frequency_; - result.numCores_ = numCores_; - result.environment_ = internalGetEnvironment(); - result.environment_.makeImmutable(); - result.numRegisters_ = numRegisters_; - result.l1CacheSize_ = l1CacheSize_; - result.l2CacheSize_ = l2CacheSize_; - result.l3CacheSize_ = l3CacheSize_; - result.sharedMemorySizePerMultiprocessor_ = sharedMemorySizePerMultiprocessor_; - result.memorySize_ = memorySize_; - result.bandwidth_ = bandwidth_; - 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 org.tensorflow.proto.framework.DeviceProperties) { - return mergeFrom((org.tensorflow.proto.framework.DeviceProperties)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.DeviceProperties other) { - if (other == org.tensorflow.proto.framework.DeviceProperties.getDefaultInstance()) return this; - if (!other.getType().isEmpty()) { - type_ = other.type_; - onChanged(); - } - if (!other.getVendor().isEmpty()) { - vendor_ = other.vendor_; - onChanged(); - } - if (!other.getModel().isEmpty()) { - model_ = other.model_; - onChanged(); - } - if (other.getFrequency() != 0L) { - setFrequency(other.getFrequency()); - } - if (other.getNumCores() != 0L) { - setNumCores(other.getNumCores()); - } - internalGetMutableEnvironment().mergeFrom( - other.internalGetEnvironment()); - if (other.getNumRegisters() != 0L) { - setNumRegisters(other.getNumRegisters()); - } - if (other.getL1CacheSize() != 0L) { - setL1CacheSize(other.getL1CacheSize()); - } - if (other.getL2CacheSize() != 0L) { - setL2CacheSize(other.getL2CacheSize()); - } - if (other.getL3CacheSize() != 0L) { - setL3CacheSize(other.getL3CacheSize()); - } - if (other.getSharedMemorySizePerMultiprocessor() != 0L) { - setSharedMemorySizePerMultiprocessor(other.getSharedMemorySizePerMultiprocessor()); - } - if (other.getMemorySize() != 0L) { - setMemorySize(other.getMemorySize()); - } - if (other.getBandwidth() != 0L) { - setBandwidth(other.getBandwidth()); - } - 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 { - org.tensorflow.proto.framework.DeviceProperties parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.DeviceProperties) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object type_ = ""; - /** - *
-     * Device type (CPU, GPU, ...)
-     * 
- * - * string type = 1; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Device type (CPU, GPU, ...)
-     * 
- * - * string type = 1; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Device type (CPU, GPU, ...)
-     * 
- * - * string type = 1; - */ - public Builder setType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value; - onChanged(); - return this; - } - /** - *
-     * Device type (CPU, GPU, ...)
-     * 
- * - * string type = 1; - */ - public Builder clearType() { - - type_ = getDefaultInstance().getType(); - onChanged(); - return this; - } - /** - *
-     * Device type (CPU, GPU, ...)
-     * 
- * - * string type = 1; - */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - type_ = value; - onChanged(); - return this; - } - - private java.lang.Object vendor_ = ""; - /** - *
-     * Vendor (Intel, nvidia, ...)
-     * 
- * - * string vendor = 2; - */ - public java.lang.String getVendor() { - java.lang.Object ref = vendor_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - vendor_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Vendor (Intel, nvidia, ...)
-     * 
- * - * string vendor = 2; - */ - public com.google.protobuf.ByteString - getVendorBytes() { - java.lang.Object ref = vendor_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - vendor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Vendor (Intel, nvidia, ...)
-     * 
- * - * string vendor = 2; - */ - public Builder setVendor( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - vendor_ = value; - onChanged(); - return this; - } - /** - *
-     * Vendor (Intel, nvidia, ...)
-     * 
- * - * string vendor = 2; - */ - public Builder clearVendor() { - - vendor_ = getDefaultInstance().getVendor(); - onChanged(); - return this; - } - /** - *
-     * Vendor (Intel, nvidia, ...)
-     * 
- * - * string vendor = 2; - */ - public Builder setVendorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - vendor_ = value; - onChanged(); - return this; - } - - private java.lang.Object model_ = ""; - /** - *
-     * Model (Haswell, K40, ...)
-     * 
- * - * string model = 3; - */ - public java.lang.String getModel() { - java.lang.Object ref = model_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - model_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Model (Haswell, K40, ...)
-     * 
- * - * string model = 3; - */ - public com.google.protobuf.ByteString - getModelBytes() { - java.lang.Object ref = model_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - model_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Model (Haswell, K40, ...)
-     * 
- * - * string model = 3; - */ - public Builder setModel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - model_ = value; - onChanged(); - return this; - } - /** - *
-     * Model (Haswell, K40, ...)
-     * 
- * - * string model = 3; - */ - public Builder clearModel() { - - model_ = getDefaultInstance().getModel(); - onChanged(); - return this; - } - /** - *
-     * Model (Haswell, K40, ...)
-     * 
- * - * string model = 3; - */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - model_ = value; - onChanged(); - return this; - } - - private long frequency_ ; - /** - *
-     * Core Frequency in Mhz
-     * 
- * - * int64 frequency = 4; - */ - public long getFrequency() { - return frequency_; - } - /** - *
-     * Core Frequency in Mhz
-     * 
- * - * int64 frequency = 4; - */ - public Builder setFrequency(long value) { - - frequency_ = value; - onChanged(); - return this; - } - /** - *
-     * Core Frequency in Mhz
-     * 
- * - * int64 frequency = 4; - */ - public Builder clearFrequency() { - - frequency_ = 0L; - onChanged(); - return this; - } - - private long numCores_ ; - /** - *
-     * Number of cores
-     * 
- * - * int64 num_cores = 5; - */ - public long getNumCores() { - return numCores_; - } - /** - *
-     * Number of cores
-     * 
- * - * int64 num_cores = 5; - */ - public Builder setNumCores(long value) { - - numCores_ = value; - onChanged(); - return this; - } - /** - *
-     * Number of cores
-     * 
- * - * int64 num_cores = 5; - */ - public Builder clearNumCores() { - - numCores_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> environment_; - private com.google.protobuf.MapField - internalGetEnvironment() { - if (environment_ == null) { - return com.google.protobuf.MapField.emptyMapField( - EnvironmentDefaultEntryHolder.defaultEntry); - } - return environment_; - } - private com.google.protobuf.MapField - internalGetMutableEnvironment() { - onChanged();; - if (environment_ == null) { - environment_ = com.google.protobuf.MapField.newMapField( - EnvironmentDefaultEntryHolder.defaultEntry); - } - if (!environment_.isMutable()) { - environment_ = environment_.copy(); - } - return environment_; - } - - public int getEnvironmentCount() { - return internalGetEnvironment().getMap().size(); - } - /** - *
-     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
-     * cudnn 5.1)
-     * 
- * - * map<string, string> environment = 6; - */ - - public boolean containsEnvironment( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetEnvironment().getMap().containsKey(key); - } - /** - * Use {@link #getEnvironmentMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getEnvironment() { - return getEnvironmentMap(); - } - /** - *
-     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
-     * cudnn 5.1)
-     * 
- * - * map<string, string> environment = 6; - */ - - public java.util.Map getEnvironmentMap() { - return internalGetEnvironment().getMap(); - } - /** - *
-     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
-     * cudnn 5.1)
-     * 
- * - * map<string, string> environment = 6; - */ - - public java.lang.String getEnvironmentOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetEnvironment().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
-     * cudnn 5.1)
-     * 
- * - * map<string, string> environment = 6; - */ - - public java.lang.String getEnvironmentOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetEnvironment().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearEnvironment() { - internalGetMutableEnvironment().getMutableMap() - .clear(); - return this; - } - /** - *
-     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
-     * cudnn 5.1)
-     * 
- * - * map<string, string> environment = 6; - */ - - public Builder removeEnvironment( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableEnvironment().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableEnvironment() { - return internalGetMutableEnvironment().getMutableMap(); - } - /** - *
-     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
-     * cudnn 5.1)
-     * 
- * - * map<string, string> environment = 6; - */ - public Builder putEnvironment( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableEnvironment().getMutableMap() - .put(key, value); - return this; - } - /** - *
-     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
-     * cudnn 5.1)
-     * 
- * - * map<string, string> environment = 6; - */ - - public Builder putAllEnvironment( - java.util.Map values) { - internalGetMutableEnvironment().getMutableMap() - .putAll(values); - return this; - } - - private long numRegisters_ ; - /** - *
-     * Number of registers per core.
-     * 
- * - * int64 num_registers = 7; - */ - public long getNumRegisters() { - return numRegisters_; - } - /** - *
-     * Number of registers per core.
-     * 
- * - * int64 num_registers = 7; - */ - public Builder setNumRegisters(long value) { - - numRegisters_ = value; - onChanged(); - return this; - } - /** - *
-     * Number of registers per core.
-     * 
- * - * int64 num_registers = 7; - */ - public Builder clearNumRegisters() { - - numRegisters_ = 0L; - onChanged(); - return this; - } - - private long l1CacheSize_ ; - /** - *
-     * L1 cache size in bytes
-     * 
- * - * int64 l1_cache_size = 8; - */ - public long getL1CacheSize() { - return l1CacheSize_; - } - /** - *
-     * L1 cache size in bytes
-     * 
- * - * int64 l1_cache_size = 8; - */ - public Builder setL1CacheSize(long value) { - - l1CacheSize_ = value; - onChanged(); - return this; - } - /** - *
-     * L1 cache size in bytes
-     * 
- * - * int64 l1_cache_size = 8; - */ - public Builder clearL1CacheSize() { - - l1CacheSize_ = 0L; - onChanged(); - return this; - } - - private long l2CacheSize_ ; - /** - *
-     * L2 cache size in bytes
-     * 
- * - * int64 l2_cache_size = 9; - */ - public long getL2CacheSize() { - return l2CacheSize_; - } - /** - *
-     * L2 cache size in bytes
-     * 
- * - * int64 l2_cache_size = 9; - */ - public Builder setL2CacheSize(long value) { - - l2CacheSize_ = value; - onChanged(); - return this; - } - /** - *
-     * L2 cache size in bytes
-     * 
- * - * int64 l2_cache_size = 9; - */ - public Builder clearL2CacheSize() { - - l2CacheSize_ = 0L; - onChanged(); - return this; - } - - private long l3CacheSize_ ; - /** - *
-     * L3 cache size in bytes
-     * 
- * - * int64 l3_cache_size = 10; - */ - public long getL3CacheSize() { - return l3CacheSize_; - } - /** - *
-     * L3 cache size in bytes
-     * 
- * - * int64 l3_cache_size = 10; - */ - public Builder setL3CacheSize(long value) { - - l3CacheSize_ = value; - onChanged(); - return this; - } - /** - *
-     * L3 cache size in bytes
-     * 
- * - * int64 l3_cache_size = 10; - */ - public Builder clearL3CacheSize() { - - l3CacheSize_ = 0L; - onChanged(); - return this; - } - - private long sharedMemorySizePerMultiprocessor_ ; - /** - *
-     * Shared memory size per multiprocessor in bytes. This field is
-     * applicable to GPUs only.
-     * 
- * - * int64 shared_memory_size_per_multiprocessor = 11; - */ - public long getSharedMemorySizePerMultiprocessor() { - return sharedMemorySizePerMultiprocessor_; - } - /** - *
-     * Shared memory size per multiprocessor in bytes. This field is
-     * applicable to GPUs only.
-     * 
- * - * int64 shared_memory_size_per_multiprocessor = 11; - */ - public Builder setSharedMemorySizePerMultiprocessor(long value) { - - sharedMemorySizePerMultiprocessor_ = value; - onChanged(); - return this; - } - /** - *
-     * Shared memory size per multiprocessor in bytes. This field is
-     * applicable to GPUs only.
-     * 
- * - * int64 shared_memory_size_per_multiprocessor = 11; - */ - public Builder clearSharedMemorySizePerMultiprocessor() { - - sharedMemorySizePerMultiprocessor_ = 0L; - onChanged(); - return this; - } - - private long memorySize_ ; - /** - *
-     * Memory size in bytes
-     * 
- * - * int64 memory_size = 12; - */ - public long getMemorySize() { - return memorySize_; - } - /** - *
-     * Memory size in bytes
-     * 
- * - * int64 memory_size = 12; - */ - public Builder setMemorySize(long value) { - - memorySize_ = value; - onChanged(); - return this; - } - /** - *
-     * Memory size in bytes
-     * 
- * - * int64 memory_size = 12; - */ - public Builder clearMemorySize() { - - memorySize_ = 0L; - onChanged(); - return this; - } - - private long bandwidth_ ; - /** - *
-     * Memory bandwidth in KB/s
-     * 
- * - * int64 bandwidth = 13; - */ - public long getBandwidth() { - return bandwidth_; - } - /** - *
-     * Memory bandwidth in KB/s
-     * 
- * - * int64 bandwidth = 13; - */ - public Builder setBandwidth(long value) { - - bandwidth_ = value; - onChanged(); - return this; - } - /** - *
-     * Memory bandwidth in KB/s
-     * 
- * - * int64 bandwidth = 13; - */ - public Builder clearBandwidth() { - - bandwidth_ = 0L; - 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:tensorflow.DeviceProperties) - } - - // @@protoc_insertion_point(class_scope:tensorflow.DeviceProperties) - private static final org.tensorflow.proto.framework.DeviceProperties DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.DeviceProperties(); - } - - public static org.tensorflow.proto.framework.DeviceProperties getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeviceProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeviceProperties(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.DeviceProperties getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DevicePropertiesOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DevicePropertiesOrBuilder.java deleted file mode 100644 index 675627a60fa..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DevicePropertiesOrBuilder.java +++ /dev/null @@ -1,204 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/device_properties.proto - -package org.tensorflow.proto.framework; - -public interface DevicePropertiesOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.DeviceProperties) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Device type (CPU, GPU, ...)
-   * 
- * - * string type = 1; - */ - java.lang.String getType(); - /** - *
-   * Device type (CPU, GPU, ...)
-   * 
- * - * string type = 1; - */ - com.google.protobuf.ByteString - getTypeBytes(); - - /** - *
-   * Vendor (Intel, nvidia, ...)
-   * 
- * - * string vendor = 2; - */ - java.lang.String getVendor(); - /** - *
-   * Vendor (Intel, nvidia, ...)
-   * 
- * - * string vendor = 2; - */ - com.google.protobuf.ByteString - getVendorBytes(); - - /** - *
-   * Model (Haswell, K40, ...)
-   * 
- * - * string model = 3; - */ - java.lang.String getModel(); - /** - *
-   * Model (Haswell, K40, ...)
-   * 
- * - * string model = 3; - */ - com.google.protobuf.ByteString - getModelBytes(); - - /** - *
-   * Core Frequency in Mhz
-   * 
- * - * int64 frequency = 4; - */ - long getFrequency(); - - /** - *
-   * Number of cores
-   * 
- * - * int64 num_cores = 5; - */ - long getNumCores(); - - /** - *
-   * Version of the tools and libraries used with this device (e.g. gcc 4.9,
-   * cudnn 5.1)
-   * 
- * - * map<string, string> environment = 6; - */ - int getEnvironmentCount(); - /** - *
-   * Version of the tools and libraries used with this device (e.g. gcc 4.9,
-   * cudnn 5.1)
-   * 
- * - * map<string, string> environment = 6; - */ - boolean containsEnvironment( - java.lang.String key); - /** - * Use {@link #getEnvironmentMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getEnvironment(); - /** - *
-   * Version of the tools and libraries used with this device (e.g. gcc 4.9,
-   * cudnn 5.1)
-   * 
- * - * map<string, string> environment = 6; - */ - java.util.Map - getEnvironmentMap(); - /** - *
-   * Version of the tools and libraries used with this device (e.g. gcc 4.9,
-   * cudnn 5.1)
-   * 
- * - * map<string, string> environment = 6; - */ - - java.lang.String getEnvironmentOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-   * Version of the tools and libraries used with this device (e.g. gcc 4.9,
-   * cudnn 5.1)
-   * 
- * - * map<string, string> environment = 6; - */ - - java.lang.String getEnvironmentOrThrow( - java.lang.String key); - - /** - *
-   * Number of registers per core.
-   * 
- * - * int64 num_registers = 7; - */ - long getNumRegisters(); - - /** - *
-   * L1 cache size in bytes
-   * 
- * - * int64 l1_cache_size = 8; - */ - long getL1CacheSize(); - - /** - *
-   * L2 cache size in bytes
-   * 
- * - * int64 l2_cache_size = 9; - */ - long getL2CacheSize(); - - /** - *
-   * L3 cache size in bytes
-   * 
- * - * int64 l3_cache_size = 10; - */ - long getL3CacheSize(); - - /** - *
-   * Shared memory size per multiprocessor in bytes. This field is
-   * applicable to GPUs only.
-   * 
- * - * int64 shared_memory_size_per_multiprocessor = 11; - */ - long getSharedMemorySizePerMultiprocessor(); - - /** - *
-   * Memory size in bytes
-   * 
- * - * int64 memory_size = 12; - */ - long getMemorySize(); - - /** - *
-   * Memory bandwidth in KB/s
-   * 
- * - * int64 bandwidth = 13; - */ - long getBandwidth(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DevicePropertiesProtos.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DevicePropertiesProtos.java deleted file mode 100644 index 6bb89de6ab8..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DevicePropertiesProtos.java +++ /dev/null @@ -1,85 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/device_properties.proto - -package org.tensorflow.proto.framework; - -public final class DevicePropertiesProtos { - private DevicePropertiesProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_DeviceProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_DeviceProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_DeviceProperties_EnvironmentEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_DeviceProperties_EnvironmentEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_NamedDevice_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_NamedDevice_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0tensorflow/core/protobuf/device_proper" + - "ties.proto\022\ntensorflow\"\220\003\n\020DevicePropert" + - "ies\022\014\n\004type\030\001 \001(\t\022\016\n\006vendor\030\002 \001(\t\022\r\n\005mod" + - "el\030\003 \001(\t\022\021\n\tfrequency\030\004 \001(\003\022\021\n\tnum_cores" + - "\030\005 \001(\003\022B\n\013environment\030\006 \003(\0132-.tensorflow" + - ".DeviceProperties.EnvironmentEntry\022\025\n\rnu" + - "m_registers\030\007 \001(\003\022\025\n\rl1_cache_size\030\010 \001(\003" + - "\022\025\n\rl2_cache_size\030\t \001(\003\022\025\n\rl3_cache_size" + - "\030\n \001(\003\022-\n%shared_memory_size_per_multipr" + - "ocessor\030\013 \001(\003\022\023\n\013memory_size\030\014 \001(\003\022\021\n\tba" + - "ndwidth\030\r \001(\003\0322\n\020EnvironmentEntry\022\013\n\003key" + - "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"M\n\013NamedDevice" + - "\022\014\n\004name\030\001 \001(\t\0220\n\nproperties\030\002 \001(\0132\034.ten" + - "sorflow.DevicePropertiesB\224\001\n\036org.tensorf" + - "low.proto.frameworkB\026DevicePropertiesPro" + - "tosP\001ZUgithub.com/tensorflow/tensorflow/" + - "tensorflow/go/core/protobuf/for_core_pro" + - "tos_go_proto\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_tensorflow_DeviceProperties_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tensorflow_DeviceProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_DeviceProperties_descriptor, - new java.lang.String[] { "Type", "Vendor", "Model", "Frequency", "NumCores", "Environment", "NumRegisters", "L1CacheSize", "L2CacheSize", "L3CacheSize", "SharedMemorySizePerMultiprocessor", "MemorySize", "Bandwidth", }); - internal_static_tensorflow_DeviceProperties_EnvironmentEntry_descriptor = - internal_static_tensorflow_DeviceProperties_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_DeviceProperties_EnvironmentEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_DeviceProperties_EnvironmentEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_tensorflow_NamedDevice_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_tensorflow_NamedDevice_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_NamedDevice_descriptor, - new java.lang.String[] { "Name", "Properties", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DictValue.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DictValue.java deleted file mode 100644 index e8e6321372f..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DictValue.java +++ /dev/null @@ -1,705 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/struct.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Represents a Python dict keyed by `str`.
- * The comment on Unicode from Value.string_value applies analogously.
- * 
- * - * Protobuf type {@code tensorflow.DictValue} - */ -public final class DictValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.DictValue) - DictValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use DictValue.newBuilder() to construct. - private DictValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DictValue() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DictValue(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DictValue( - 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)) { - fields_ = com.google.protobuf.MapField.newMapField( - FieldsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - fields__ = input.readMessage( - FieldsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - fields_.getMutableMap().put( - fields__.getKey(), fields__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_DictValue_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetFields(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_DictValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.DictValue.class, org.tensorflow.proto.framework.DictValue.Builder.class); - } - - public static final int FIELDS_FIELD_NUMBER = 1; - private static final class FieldsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, org.tensorflow.proto.framework.StructuredValue> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_DictValue_FieldsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.tensorflow.proto.framework.StructuredValue.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.StructuredValue> fields_; - private com.google.protobuf.MapField - internalGetFields() { - if (fields_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FieldsDefaultEntryHolder.defaultEntry); - } - return fields_; - } - - public int getFieldsCount() { - return internalGetFields().getMap().size(); - } - /** - * map<string, .tensorflow.StructuredValue> fields = 1; - */ - - public boolean containsFields( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetFields().getMap().containsKey(key); - } - /** - * Use {@link #getFieldsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getFields() { - return getFieldsMap(); - } - /** - * map<string, .tensorflow.StructuredValue> fields = 1; - */ - - public java.util.Map getFieldsMap() { - return internalGetFields().getMap(); - } - /** - * map<string, .tensorflow.StructuredValue> fields = 1; - */ - - public org.tensorflow.proto.framework.StructuredValue getFieldsOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.StructuredValue defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetFields().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .tensorflow.StructuredValue> fields = 1; - */ - - public org.tensorflow.proto.framework.StructuredValue getFieldsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetFields().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, - internalGetFields(), - FieldsDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetFields().getMap().entrySet()) { - com.google.protobuf.MapEntry - fields__ = FieldsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, fields__); - } - 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 org.tensorflow.proto.framework.DictValue)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.DictValue other = (org.tensorflow.proto.framework.DictValue) obj; - - if (!internalGetFields().equals( - other.internalGetFields())) 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 (!internalGetFields().getMap().isEmpty()) { - hash = (37 * hash) + FIELDS_FIELD_NUMBER; - hash = (53 * hash) + internalGetFields().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.DictValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.DictValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.DictValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.DictValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.DictValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.DictValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.DictValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.DictValue 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 org.tensorflow.proto.framework.DictValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.DictValue 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 org.tensorflow.proto.framework.DictValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.DictValue 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(org.tensorflow.proto.framework.DictValue 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; - } - /** - *
-   * Represents a Python dict keyed by `str`.
-   * The comment on Unicode from Value.string_value applies analogously.
-   * 
- * - * Protobuf type {@code tensorflow.DictValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.DictValue) - org.tensorflow.proto.framework.DictValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_DictValue_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetFields(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableFields(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_DictValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.DictValue.class, org.tensorflow.proto.framework.DictValue.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.DictValue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableFields().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_DictValue_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.DictValue getDefaultInstanceForType() { - return org.tensorflow.proto.framework.DictValue.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.DictValue build() { - org.tensorflow.proto.framework.DictValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.DictValue buildPartial() { - org.tensorflow.proto.framework.DictValue result = new org.tensorflow.proto.framework.DictValue(this); - int from_bitField0_ = bitField0_; - result.fields_ = internalGetFields(); - result.fields_.makeImmutable(); - 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 org.tensorflow.proto.framework.DictValue) { - return mergeFrom((org.tensorflow.proto.framework.DictValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.DictValue other) { - if (other == org.tensorflow.proto.framework.DictValue.getDefaultInstance()) return this; - internalGetMutableFields().mergeFrom( - other.internalGetFields()); - 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 { - org.tensorflow.proto.framework.DictValue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.DictValue) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.StructuredValue> fields_; - private com.google.protobuf.MapField - internalGetFields() { - if (fields_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FieldsDefaultEntryHolder.defaultEntry); - } - return fields_; - } - private com.google.protobuf.MapField - internalGetMutableFields() { - onChanged();; - if (fields_ == null) { - fields_ = com.google.protobuf.MapField.newMapField( - FieldsDefaultEntryHolder.defaultEntry); - } - if (!fields_.isMutable()) { - fields_ = fields_.copy(); - } - return fields_; - } - - public int getFieldsCount() { - return internalGetFields().getMap().size(); - } - /** - * map<string, .tensorflow.StructuredValue> fields = 1; - */ - - public boolean containsFields( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetFields().getMap().containsKey(key); - } - /** - * Use {@link #getFieldsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getFields() { - return getFieldsMap(); - } - /** - * map<string, .tensorflow.StructuredValue> fields = 1; - */ - - public java.util.Map getFieldsMap() { - return internalGetFields().getMap(); - } - /** - * map<string, .tensorflow.StructuredValue> fields = 1; - */ - - public org.tensorflow.proto.framework.StructuredValue getFieldsOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.StructuredValue defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetFields().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .tensorflow.StructuredValue> fields = 1; - */ - - public org.tensorflow.proto.framework.StructuredValue getFieldsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetFields().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearFields() { - internalGetMutableFields().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .tensorflow.StructuredValue> fields = 1; - */ - - public Builder removeFields( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableFields().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableFields() { - return internalGetMutableFields().getMutableMap(); - } - /** - * map<string, .tensorflow.StructuredValue> fields = 1; - */ - public Builder putFields( - java.lang.String key, - org.tensorflow.proto.framework.StructuredValue value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableFields().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .tensorflow.StructuredValue> fields = 1; - */ - - public Builder putAllFields( - java.util.Map values) { - internalGetMutableFields().getMutableMap() - .putAll(values); - 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:tensorflow.DictValue) - } - - // @@protoc_insertion_point(class_scope:tensorflow.DictValue) - private static final org.tensorflow.proto.framework.DictValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.DictValue(); - } - - public static org.tensorflow.proto.framework.DictValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DictValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DictValue(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.DictValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DictValueOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DictValueOrBuilder.java deleted file mode 100644 index 527fdffc935..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DictValueOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/struct.proto - -package org.tensorflow.proto.framework; - -public interface DictValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.DictValue) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .tensorflow.StructuredValue> fields = 1; - */ - int getFieldsCount(); - /** - * map<string, .tensorflow.StructuredValue> fields = 1; - */ - boolean containsFields( - java.lang.String key); - /** - * Use {@link #getFieldsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getFields(); - /** - * map<string, .tensorflow.StructuredValue> fields = 1; - */ - java.util.Map - getFieldsMap(); - /** - * map<string, .tensorflow.StructuredValue> fields = 1; - */ - - org.tensorflow.proto.framework.StructuredValue getFieldsOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.StructuredValue defaultValue); - /** - * map<string, .tensorflow.StructuredValue> fields = 1; - */ - - org.tensorflow.proto.framework.StructuredValue getFieldsOrThrow( - java.lang.String key); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ErrorCodes.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ErrorCodes.java deleted file mode 100644 index 113b8465373..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ErrorCodes.java +++ /dev/null @@ -1,40 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/lib/core/error_codes.proto - -package org.tensorflow.proto.framework; - -public final class ErrorCodes { - private ErrorCodes() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n*tensorflow/core/lib/core/error_codes.p" + - "roto\032*tensorflow/core/protobuf/error_cod" + - "es.protoB \n\036org.tensorflow.proto.framewo" + - "rkP\000b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.framework.ErrorCodesProtos.getDescriptor(), - }); - org.tensorflow.proto.framework.ErrorCodesProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ErrorCodesProtos.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ErrorCodesProtos.java deleted file mode 100644 index 62a883df465..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ErrorCodesProtos.java +++ /dev/null @@ -1,50 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/error_codes.proto - -package org.tensorflow.proto.framework; - -public final class ErrorCodesProtos { - private ErrorCodesProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n*tensorflow/core/protobuf/error_codes.p" + - "roto\022\020tensorflow.error*\204\003\n\004Code\022\006\n\002OK\020\000\022" + - "\r\n\tCANCELLED\020\001\022\013\n\007UNKNOWN\020\002\022\024\n\020INVALID_A" + - "RGUMENT\020\003\022\025\n\021DEADLINE_EXCEEDED\020\004\022\r\n\tNOT_" + - "FOUND\020\005\022\022\n\016ALREADY_EXISTS\020\006\022\025\n\021PERMISSIO" + - "N_DENIED\020\007\022\023\n\017UNAUTHENTICATED\020\020\022\026\n\022RESOU" + - "RCE_EXHAUSTED\020\010\022\027\n\023FAILED_PRECONDITION\020\t" + - "\022\013\n\007ABORTED\020\n\022\020\n\014OUT_OF_RANGE\020\013\022\021\n\rUNIMP" + - "LEMENTED\020\014\022\014\n\010INTERNAL\020\r\022\017\n\013UNAVAILABLE\020" + - "\016\022\r\n\tDATA_LOSS\020\017\022K\nGDO_NOT_USE_RESERVED_" + - "FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWIT" + - "CH_INSTEAD_\020\024B\216\001\n\036org.tensorflow.proto.f" + - "rameworkB\020ErrorCodesProtosP\001ZUgithub.com" + - "/tensorflow/tensorflow/tensorflow/go/cor" + - "e/protobuf/for_core_protos_go_proto\370\001\001b\006" + - "proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FingerprintDef.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FingerprintDef.java deleted file mode 100644 index 1cdecf5e3ff..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FingerprintDef.java +++ /dev/null @@ -1,505 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/fingerprint.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Protocol buffer representing a SavedModel Fingerprint.
- * If there are multiple MetaGraphDefs in the SavedModel, the FingerprintDef
- * corresponds to the first one.
- * 
- * - * Protobuf type {@code tensorflow.FingerprintDef} - */ -public final class FingerprintDef extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.FingerprintDef) - FingerprintDefOrBuilder { -private static final long serialVersionUID = 0L; - // Use FingerprintDef.newBuilder() to construct. - private FingerprintDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FingerprintDef() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FingerprintDef(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FingerprintDef( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - graphDefHash_ = input.readUInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.FingerprintProtos.internal_static_tensorflow_FingerprintDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.FingerprintProtos.internal_static_tensorflow_FingerprintDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.FingerprintDef.class, org.tensorflow.proto.framework.FingerprintDef.Builder.class); - } - - public static final int GRAPH_DEF_HASH_FIELD_NUMBER = 1; - private long graphDefHash_; - /** - *
-   * Hash of the graph_def.
-   * 
- * - * uint64 graph_def_hash = 1; - */ - public long getGraphDefHash() { - return graphDefHash_; - } - - 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 (graphDefHash_ != 0L) { - output.writeUInt64(1, graphDefHash_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (graphDefHash_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, graphDefHash_); - } - 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 org.tensorflow.proto.framework.FingerprintDef)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.FingerprintDef other = (org.tensorflow.proto.framework.FingerprintDef) obj; - - if (getGraphDefHash() - != other.getGraphDefHash()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GRAPH_DEF_HASH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGraphDefHash()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.FingerprintDef parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.FingerprintDef parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.FingerprintDef parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.FingerprintDef parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.FingerprintDef parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.FingerprintDef parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.FingerprintDef parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.FingerprintDef 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 org.tensorflow.proto.framework.FingerprintDef parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.FingerprintDef 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 org.tensorflow.proto.framework.FingerprintDef parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.FingerprintDef 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(org.tensorflow.proto.framework.FingerprintDef 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; - } - /** - *
-   * Protocol buffer representing a SavedModel Fingerprint.
-   * If there are multiple MetaGraphDefs in the SavedModel, the FingerprintDef
-   * corresponds to the first one.
-   * 
- * - * Protobuf type {@code tensorflow.FingerprintDef} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.FingerprintDef) - org.tensorflow.proto.framework.FingerprintDefOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.FingerprintProtos.internal_static_tensorflow_FingerprintDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.FingerprintProtos.internal_static_tensorflow_FingerprintDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.FingerprintDef.class, org.tensorflow.proto.framework.FingerprintDef.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.FingerprintDef.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - graphDefHash_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.FingerprintProtos.internal_static_tensorflow_FingerprintDef_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.FingerprintDef getDefaultInstanceForType() { - return org.tensorflow.proto.framework.FingerprintDef.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.FingerprintDef build() { - org.tensorflow.proto.framework.FingerprintDef result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.FingerprintDef buildPartial() { - org.tensorflow.proto.framework.FingerprintDef result = new org.tensorflow.proto.framework.FingerprintDef(this); - result.graphDefHash_ = graphDefHash_; - 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 org.tensorflow.proto.framework.FingerprintDef) { - return mergeFrom((org.tensorflow.proto.framework.FingerprintDef)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.FingerprintDef other) { - if (other == org.tensorflow.proto.framework.FingerprintDef.getDefaultInstance()) return this; - if (other.getGraphDefHash() != 0L) { - setGraphDefHash(other.getGraphDefHash()); - } - 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 { - org.tensorflow.proto.framework.FingerprintDef parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.FingerprintDef) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long graphDefHash_ ; - /** - *
-     * Hash of the graph_def.
-     * 
- * - * uint64 graph_def_hash = 1; - */ - public long getGraphDefHash() { - return graphDefHash_; - } - /** - *
-     * Hash of the graph_def.
-     * 
- * - * uint64 graph_def_hash = 1; - */ - public Builder setGraphDefHash(long value) { - - graphDefHash_ = value; - onChanged(); - return this; - } - /** - *
-     * Hash of the graph_def.
-     * 
- * - * uint64 graph_def_hash = 1; - */ - public Builder clearGraphDefHash() { - - graphDefHash_ = 0L; - 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:tensorflow.FingerprintDef) - } - - // @@protoc_insertion_point(class_scope:tensorflow.FingerprintDef) - private static final org.tensorflow.proto.framework.FingerprintDef DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.FingerprintDef(); - } - - public static org.tensorflow.proto.framework.FingerprintDef getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FingerprintDef parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FingerprintDef(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.FingerprintDef getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FingerprintDefOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FingerprintDefOrBuilder.java deleted file mode 100644 index fac823ea49f..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FingerprintDefOrBuilder.java +++ /dev/null @@ -1,18 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/fingerprint.proto - -package org.tensorflow.proto.framework; - -public interface FingerprintDefOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.FingerprintDef) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Hash of the graph_def.
-   * 
- * - * uint64 graph_def_hash = 1; - */ - long getGraphDefHash(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FingerprintProtos.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FingerprintProtos.java deleted file mode 100644 index e8df0a184ba..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FingerprintProtos.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/fingerprint.proto - -package org.tensorflow.proto.framework; - -public final class FingerprintProtos { - private FingerprintProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_FingerprintDef_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_FingerprintDef_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n*tensorflow/core/protobuf/fingerprint.p" + - "roto\022\ntensorflow\"(\n\016FingerprintDef\022\026\n\016gr" + - "aph_def_hash\030\001 \001(\004B\217\001\n\036org.tensorflow.pr" + - "oto.frameworkB\021FingerprintProtosP\001ZUgith" + - "ub.com/tensorflow/tensorflow/tensorflow/" + - "go/core/protobuf/for_core_protos_go_prot" + - "o\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_tensorflow_FingerprintDef_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tensorflow_FingerprintDef_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_FingerprintDef_descriptor, - new java.lang.String[] { "GraphDefHash", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FullTypeDef.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FullTypeDef.java deleted file mode 100644 index 9524d94aa07..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FullTypeDef.java +++ /dev/null @@ -1,1215 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/full_type.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Highly experimental and very likely to change.
- * This encoding uses tags instead of dedicated messages for regularity. In
- * particular the encoding imposes no restrictions on what the parameters of any
- * type should be, which in particular needs to be true for type symbols.
- * 
- * - * Protobuf type {@code tensorflow.FullTypeDef} - */ -public final class FullTypeDef extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.FullTypeDef) - FullTypeDefOrBuilder { -private static final long serialVersionUID = 0L; - // Use FullTypeDef.newBuilder() to construct. - private FullTypeDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FullTypeDef() { - typeId_ = 0; - args_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FullTypeDef(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FullTypeDef( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - typeId_ = rawValue; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - args_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - args_.add( - input.readMessage(org.tensorflow.proto.framework.FullTypeDef.parser(), extensionRegistry)); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - attrCase_ = 3; - attr_ = s; - break; - } - case 32: { - attrCase_ = 4; - attr_ = input.readInt64(); - 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)) { - args_ = java.util.Collections.unmodifiableList(args_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.FullTypeProtos.internal_static_tensorflow_FullTypeDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.FullTypeProtos.internal_static_tensorflow_FullTypeDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.FullTypeDef.class, org.tensorflow.proto.framework.FullTypeDef.Builder.class); - } - - private int attrCase_ = 0; - private java.lang.Object attr_; - public enum AttrCase - implements com.google.protobuf.Internal.EnumLite { - S(3), - I(4), - ATTR_NOT_SET(0); - private final int value; - private AttrCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AttrCase valueOf(int value) { - return forNumber(value); - } - - public static AttrCase forNumber(int value) { - switch (value) { - case 3: return S; - case 4: return I; - case 0: return ATTR_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public AttrCase - getAttrCase() { - return AttrCase.forNumber( - attrCase_); - } - - public static final int TYPE_ID_FIELD_NUMBER = 1; - private int typeId_; - /** - *
-   * The principal type represented by this object. This may be a concrete type
-   * (Tensor, Dataset) a type variable (used for dependent types) a type
-   * symbol (Any, Union). See FullTypeId for details.
-   * 
- * - * .tensorflow.FullTypeId type_id = 1; - */ - public int getTypeIdValue() { - return typeId_; - } - /** - *
-   * The principal type represented by this object. This may be a concrete type
-   * (Tensor, Dataset) a type variable (used for dependent types) a type
-   * symbol (Any, Union). See FullTypeId for details.
-   * 
- * - * .tensorflow.FullTypeId type_id = 1; - */ - public org.tensorflow.proto.framework.FullTypeId getTypeId() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.FullTypeId result = org.tensorflow.proto.framework.FullTypeId.valueOf(typeId_); - return result == null ? org.tensorflow.proto.framework.FullTypeId.UNRECOGNIZED : result; - } - - public static final int ARGS_FIELD_NUMBER = 2; - private java.util.List args_; - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public java.util.List getArgsList() { - return args_; - } - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public java.util.List - getArgsOrBuilderList() { - return args_; - } - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public int getArgsCount() { - return args_.size(); - } - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public org.tensorflow.proto.framework.FullTypeDef getArgs(int index) { - return args_.get(index); - } - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public org.tensorflow.proto.framework.FullTypeDefOrBuilder getArgsOrBuilder( - int index) { - return args_.get(index); - } - - public static final int S_FIELD_NUMBER = 3; - /** - * string s = 3; - */ - public java.lang.String getS() { - java.lang.Object ref = ""; - if (attrCase_ == 3) { - ref = attr_; - } - 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(); - if (attrCase_ == 3) { - attr_ = s; - } - return s; - } - } - /** - * string s = 3; - */ - public com.google.protobuf.ByteString - getSBytes() { - java.lang.Object ref = ""; - if (attrCase_ == 3) { - ref = attr_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (attrCase_ == 3) { - attr_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int I_FIELD_NUMBER = 4; - /** - *
-   * TODO(mdan): list/tensor, map? Need to reconcile with TFT_RECORD, etc.
-   * 
- * - * int64 i = 4; - */ - public long getI() { - if (attrCase_ == 4) { - return (java.lang.Long) attr_; - } - return 0L; - } - - 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 (typeId_ != org.tensorflow.proto.framework.FullTypeId.TFT_UNSET.getNumber()) { - output.writeEnum(1, typeId_); - } - for (int i = 0; i < args_.size(); i++) { - output.writeMessage(2, args_.get(i)); - } - if (attrCase_ == 3) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, attr_); - } - if (attrCase_ == 4) { - output.writeInt64( - 4, (long)((java.lang.Long) attr_)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (typeId_ != org.tensorflow.proto.framework.FullTypeId.TFT_UNSET.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, typeId_); - } - for (int i = 0; i < args_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, args_.get(i)); - } - if (attrCase_ == 3) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, attr_); - } - if (attrCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 4, (long)((java.lang.Long) attr_)); - } - 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 org.tensorflow.proto.framework.FullTypeDef)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.FullTypeDef other = (org.tensorflow.proto.framework.FullTypeDef) obj; - - if (typeId_ != other.typeId_) return false; - if (!getArgsList() - .equals(other.getArgsList())) return false; - if (!getAttrCase().equals(other.getAttrCase())) return false; - switch (attrCase_) { - case 3: - if (!getS() - .equals(other.getS())) return false; - break; - case 4: - if (getI() - != other.getI()) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_ID_FIELD_NUMBER; - hash = (53 * hash) + typeId_; - if (getArgsCount() > 0) { - hash = (37 * hash) + ARGS_FIELD_NUMBER; - hash = (53 * hash) + getArgsList().hashCode(); - } - switch (attrCase_) { - case 3: - hash = (37 * hash) + S_FIELD_NUMBER; - hash = (53 * hash) + getS().hashCode(); - break; - case 4: - hash = (37 * hash) + I_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getI()); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.FullTypeDef parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.FullTypeDef parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.FullTypeDef parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.FullTypeDef parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.FullTypeDef parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.FullTypeDef parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.FullTypeDef parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.FullTypeDef 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 org.tensorflow.proto.framework.FullTypeDef parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.FullTypeDef 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 org.tensorflow.proto.framework.FullTypeDef parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.FullTypeDef 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(org.tensorflow.proto.framework.FullTypeDef 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; - } - /** - *
-   * Highly experimental and very likely to change.
-   * This encoding uses tags instead of dedicated messages for regularity. In
-   * particular the encoding imposes no restrictions on what the parameters of any
-   * type should be, which in particular needs to be true for type symbols.
-   * 
- * - * Protobuf type {@code tensorflow.FullTypeDef} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.FullTypeDef) - org.tensorflow.proto.framework.FullTypeDefOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.FullTypeProtos.internal_static_tensorflow_FullTypeDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.FullTypeProtos.internal_static_tensorflow_FullTypeDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.FullTypeDef.class, org.tensorflow.proto.framework.FullTypeDef.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.FullTypeDef.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getArgsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - typeId_ = 0; - - if (argsBuilder_ == null) { - args_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - argsBuilder_.clear(); - } - attrCase_ = 0; - attr_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.FullTypeProtos.internal_static_tensorflow_FullTypeDef_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.FullTypeDef getDefaultInstanceForType() { - return org.tensorflow.proto.framework.FullTypeDef.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.FullTypeDef build() { - org.tensorflow.proto.framework.FullTypeDef result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.FullTypeDef buildPartial() { - org.tensorflow.proto.framework.FullTypeDef result = new org.tensorflow.proto.framework.FullTypeDef(this); - int from_bitField0_ = bitField0_; - result.typeId_ = typeId_; - if (argsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - args_ = java.util.Collections.unmodifiableList(args_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.args_ = args_; - } else { - result.args_ = argsBuilder_.build(); - } - if (attrCase_ == 3) { - result.attr_ = attr_; - } - if (attrCase_ == 4) { - result.attr_ = attr_; - } - result.attrCase_ = attrCase_; - 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 org.tensorflow.proto.framework.FullTypeDef) { - return mergeFrom((org.tensorflow.proto.framework.FullTypeDef)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.FullTypeDef other) { - if (other == org.tensorflow.proto.framework.FullTypeDef.getDefaultInstance()) return this; - if (other.typeId_ != 0) { - setTypeIdValue(other.getTypeIdValue()); - } - if (argsBuilder_ == null) { - if (!other.args_.isEmpty()) { - if (args_.isEmpty()) { - args_ = other.args_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureArgsIsMutable(); - args_.addAll(other.args_); - } - onChanged(); - } - } else { - if (!other.args_.isEmpty()) { - if (argsBuilder_.isEmpty()) { - argsBuilder_.dispose(); - argsBuilder_ = null; - args_ = other.args_; - bitField0_ = (bitField0_ & ~0x00000001); - argsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getArgsFieldBuilder() : null; - } else { - argsBuilder_.addAllMessages(other.args_); - } - } - } - switch (other.getAttrCase()) { - case S: { - attrCase_ = 3; - attr_ = other.attr_; - onChanged(); - break; - } - case I: { - setI(other.getI()); - break; - } - case ATTR_NOT_SET: { - break; - } - } - 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 { - org.tensorflow.proto.framework.FullTypeDef parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.FullTypeDef) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int attrCase_ = 0; - private java.lang.Object attr_; - public AttrCase - getAttrCase() { - return AttrCase.forNumber( - attrCase_); - } - - public Builder clearAttr() { - attrCase_ = 0; - attr_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private int typeId_ = 0; - /** - *
-     * The principal type represented by this object. This may be a concrete type
-     * (Tensor, Dataset) a type variable (used for dependent types) a type
-     * symbol (Any, Union). See FullTypeId for details.
-     * 
- * - * .tensorflow.FullTypeId type_id = 1; - */ - public int getTypeIdValue() { - return typeId_; - } - /** - *
-     * The principal type represented by this object. This may be a concrete type
-     * (Tensor, Dataset) a type variable (used for dependent types) a type
-     * symbol (Any, Union). See FullTypeId for details.
-     * 
- * - * .tensorflow.FullTypeId type_id = 1; - */ - public Builder setTypeIdValue(int value) { - typeId_ = value; - onChanged(); - return this; - } - /** - *
-     * The principal type represented by this object. This may be a concrete type
-     * (Tensor, Dataset) a type variable (used for dependent types) a type
-     * symbol (Any, Union). See FullTypeId for details.
-     * 
- * - * .tensorflow.FullTypeId type_id = 1; - */ - public org.tensorflow.proto.framework.FullTypeId getTypeId() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.FullTypeId result = org.tensorflow.proto.framework.FullTypeId.valueOf(typeId_); - return result == null ? org.tensorflow.proto.framework.FullTypeId.UNRECOGNIZED : result; - } - /** - *
-     * The principal type represented by this object. This may be a concrete type
-     * (Tensor, Dataset) a type variable (used for dependent types) a type
-     * symbol (Any, Union). See FullTypeId for details.
-     * 
- * - * .tensorflow.FullTypeId type_id = 1; - */ - public Builder setTypeId(org.tensorflow.proto.framework.FullTypeId value) { - if (value == null) { - throw new NullPointerException(); - } - - typeId_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The principal type represented by this object. This may be a concrete type
-     * (Tensor, Dataset) a type variable (used for dependent types) a type
-     * symbol (Any, Union). See FullTypeId for details.
-     * 
- * - * .tensorflow.FullTypeId type_id = 1; - */ - public Builder clearTypeId() { - - typeId_ = 0; - onChanged(); - return this; - } - - private java.util.List args_ = - java.util.Collections.emptyList(); - private void ensureArgsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - args_ = new java.util.ArrayList(args_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.FullTypeDef, org.tensorflow.proto.framework.FullTypeDef.Builder, org.tensorflow.proto.framework.FullTypeDefOrBuilder> argsBuilder_; - - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public java.util.List getArgsList() { - if (argsBuilder_ == null) { - return java.util.Collections.unmodifiableList(args_); - } else { - return argsBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public int getArgsCount() { - if (argsBuilder_ == null) { - return args_.size(); - } else { - return argsBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public org.tensorflow.proto.framework.FullTypeDef getArgs(int index) { - if (argsBuilder_ == null) { - return args_.get(index); - } else { - return argsBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public Builder setArgs( - int index, org.tensorflow.proto.framework.FullTypeDef value) { - if (argsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.set(index, value); - onChanged(); - } else { - argsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public Builder setArgs( - int index, org.tensorflow.proto.framework.FullTypeDef.Builder builderForValue) { - if (argsBuilder_ == null) { - ensureArgsIsMutable(); - args_.set(index, builderForValue.build()); - onChanged(); - } else { - argsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public Builder addArgs(org.tensorflow.proto.framework.FullTypeDef value) { - if (argsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - } else { - argsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public Builder addArgs( - int index, org.tensorflow.proto.framework.FullTypeDef value) { - if (argsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.add(index, value); - onChanged(); - } else { - argsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public Builder addArgs( - org.tensorflow.proto.framework.FullTypeDef.Builder builderForValue) { - if (argsBuilder_ == null) { - ensureArgsIsMutable(); - args_.add(builderForValue.build()); - onChanged(); - } else { - argsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public Builder addArgs( - int index, org.tensorflow.proto.framework.FullTypeDef.Builder builderForValue) { - if (argsBuilder_ == null) { - ensureArgsIsMutable(); - args_.add(index, builderForValue.build()); - onChanged(); - } else { - argsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public Builder addAllArgs( - java.lang.Iterable values) { - if (argsBuilder_ == null) { - ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, args_); - onChanged(); - } else { - argsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public Builder clearArgs() { - if (argsBuilder_ == null) { - args_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - argsBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public Builder removeArgs(int index) { - if (argsBuilder_ == null) { - ensureArgsIsMutable(); - args_.remove(index); - onChanged(); - } else { - argsBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public org.tensorflow.proto.framework.FullTypeDef.Builder getArgsBuilder( - int index) { - return getArgsFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public org.tensorflow.proto.framework.FullTypeDefOrBuilder getArgsOrBuilder( - int index) { - if (argsBuilder_ == null) { - return args_.get(index); } else { - return argsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public java.util.List - getArgsOrBuilderList() { - if (argsBuilder_ != null) { - return argsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(args_); - } - } - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public org.tensorflow.proto.framework.FullTypeDef.Builder addArgsBuilder() { - return getArgsFieldBuilder().addBuilder( - org.tensorflow.proto.framework.FullTypeDef.getDefaultInstance()); - } - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public org.tensorflow.proto.framework.FullTypeDef.Builder addArgsBuilder( - int index) { - return getArgsFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.FullTypeDef.getDefaultInstance()); - } - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - public java.util.List - getArgsBuilderList() { - return getArgsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.FullTypeDef, org.tensorflow.proto.framework.FullTypeDef.Builder, org.tensorflow.proto.framework.FullTypeDefOrBuilder> - getArgsFieldBuilder() { - if (argsBuilder_ == null) { - argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.FullTypeDef, org.tensorflow.proto.framework.FullTypeDef.Builder, org.tensorflow.proto.framework.FullTypeDefOrBuilder>( - args_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - args_ = null; - } - return argsBuilder_; - } - - /** - * string s = 3; - */ - public java.lang.String getS() { - java.lang.Object ref = ""; - if (attrCase_ == 3) { - ref = attr_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (attrCase_ == 3) { - attr_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string s = 3; - */ - public com.google.protobuf.ByteString - getSBytes() { - java.lang.Object ref = ""; - if (attrCase_ == 3) { - ref = attr_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (attrCase_ == 3) { - attr_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string s = 3; - */ - public Builder setS( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - attrCase_ = 3; - attr_ = value; - onChanged(); - return this; - } - /** - * string s = 3; - */ - public Builder clearS() { - if (attrCase_ == 3) { - attrCase_ = 0; - attr_ = null; - onChanged(); - } - return this; - } - /** - * string s = 3; - */ - public Builder setSBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - attrCase_ = 3; - attr_ = value; - onChanged(); - return this; - } - - /** - *
-     * TODO(mdan): list/tensor, map? Need to reconcile with TFT_RECORD, etc.
-     * 
- * - * int64 i = 4; - */ - public long getI() { - if (attrCase_ == 4) { - return (java.lang.Long) attr_; - } - return 0L; - } - /** - *
-     * TODO(mdan): list/tensor, map? Need to reconcile with TFT_RECORD, etc.
-     * 
- * - * int64 i = 4; - */ - public Builder setI(long value) { - attrCase_ = 4; - attr_ = value; - onChanged(); - return this; - } - /** - *
-     * TODO(mdan): list/tensor, map? Need to reconcile with TFT_RECORD, etc.
-     * 
- * - * int64 i = 4; - */ - public Builder clearI() { - if (attrCase_ == 4) { - attrCase_ = 0; - attr_ = null; - 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:tensorflow.FullTypeDef) - } - - // @@protoc_insertion_point(class_scope:tensorflow.FullTypeDef) - private static final org.tensorflow.proto.framework.FullTypeDef DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.FullTypeDef(); - } - - public static org.tensorflow.proto.framework.FullTypeDef getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FullTypeDef parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FullTypeDef(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.FullTypeDef getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FullTypeDefOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FullTypeDefOrBuilder.java deleted file mode 100644 index 01719dca7ea..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FullTypeDefOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/full_type.proto - -package org.tensorflow.proto.framework; - -public interface FullTypeDefOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.FullTypeDef) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The principal type represented by this object. This may be a concrete type
-   * (Tensor, Dataset) a type variable (used for dependent types) a type
-   * symbol (Any, Union). See FullTypeId for details.
-   * 
- * - * .tensorflow.FullTypeId type_id = 1; - */ - int getTypeIdValue(); - /** - *
-   * The principal type represented by this object. This may be a concrete type
-   * (Tensor, Dataset) a type variable (used for dependent types) a type
-   * symbol (Any, Union). See FullTypeId for details.
-   * 
- * - * .tensorflow.FullTypeId type_id = 1; - */ - org.tensorflow.proto.framework.FullTypeId getTypeId(); - - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - java.util.List - getArgsList(); - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - org.tensorflow.proto.framework.FullTypeDef getArgs(int index); - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - int getArgsCount(); - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - java.util.List - getArgsOrBuilderList(); - /** - * repeated .tensorflow.FullTypeDef args = 2; - */ - org.tensorflow.proto.framework.FullTypeDefOrBuilder getArgsOrBuilder( - int index); - - /** - * string s = 3; - */ - java.lang.String getS(); - /** - * string s = 3; - */ - com.google.protobuf.ByteString - getSBytes(); - - /** - *
-   * TODO(mdan): list/tensor, map? Need to reconcile with TFT_RECORD, etc.
-   * 
- * - * int64 i = 4; - */ - long getI(); - - public org.tensorflow.proto.framework.FullTypeDef.AttrCase getAttrCase(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FullTypeProtos.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FullTypeProtos.java deleted file mode 100644 index 01b050b66cd..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FullTypeProtos.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/full_type.proto - -package org.tensorflow.proto.framework; - -public final class FullTypeProtos { - private FullTypeProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_FullTypeDef_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_FullTypeDef_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)tensorflow/core/framework/full_type.pr" + - "oto\022\ntensorflow\"\177\n\013FullTypeDef\022\'\n\007type_i" + - "d\030\001 \001(\0162\026.tensorflow.FullTypeId\022%\n\004args\030" + - "\002 \003(\0132\027.tensorflow.FullTypeDef\022\013\n\001s\030\003 \001(" + - "\tH\000\022\013\n\001i\030\004 \001(\003H\000B\006\n\004attr*\303\004\n\nFullTypeId\022" + - "\r\n\tTFT_UNSET\020\000\022\013\n\007TFT_VAR\020\001\022\013\n\007TFT_ANY\020\002" + - "\022\017\n\013TFT_PRODUCT\020\003\022\r\n\tTFT_NAMED\020\004\022\020\n\014TFT_" + - "FOR_EACH\020\024\022\020\n\014TFT_CALLABLE\020d\022\017\n\nTFT_TENS" + - "OR\020\350\007\022\016\n\tTFT_ARRAY\020\351\007\022\021\n\014TFT_OPTIONAL\020\352\007" + - "\022\020\n\013TFT_LITERAL\020\353\007\022\020\n\013TFT_ENCODED\020\354\007\022\r\n\010" + - "TFT_BOOL\020\310\001\022\016\n\tTFT_UINT8\020\311\001\022\017\n\nTFT_UINT1" + - "6\020\312\001\022\017\n\nTFT_UINT32\020\313\001\022\017\n\nTFT_UINT64\020\314\001\022\r" + - "\n\010TFT_INT8\020\315\001\022\016\n\tTFT_INT16\020\316\001\022\016\n\tTFT_INT" + - "32\020\317\001\022\016\n\tTFT_INT64\020\320\001\022\r\n\010TFT_HALF\020\321\001\022\016\n\t" + - "TFT_FLOAT\020\322\001\022\017\n\nTFT_DOUBLE\020\323\001\022\021\n\014TFT_BFL" + - "OAT16\020\327\001\022\022\n\rTFT_COMPLEX64\020\324\001\022\023\n\016TFT_COMP" + - "LEX128\020\325\001\022\017\n\nTFT_STRING\020\326\001\022\020\n\013TFT_DATASE" + - "T\020\366N\022\017\n\nTFT_RAGGED\020\367N\022\021\n\014TFT_ITERATOR\020\370N" + - "\022\023\n\016TFT_MUTEX_LOCK\020\332O\022\027\n\022TFT_LEGACY_VARI" + - "ANT\020\333OB\207\001\n\036org.tensorflow.proto.framewor" + - "kB\016FullTypeProtosP\001ZPgithub.com/tensorfl" + - "ow/tensorflow/tensorflow/go/core/framewo" + - "rk/full_type_go_proto\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_tensorflow_FullTypeDef_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tensorflow_FullTypeDef_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_FullTypeDef_descriptor, - new java.lang.String[] { "TypeId", "Args", "S", "I", "Attr", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FunctionDefLibrary.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FunctionDefLibrary.java deleted file mode 100644 index 7619ea1b885..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FunctionDefLibrary.java +++ /dev/null @@ -1,1459 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/function.proto - -package org.tensorflow.proto.framework; - -/** - *
- * A library is a set of named functions.
- * 
- * - * Protobuf type {@code tensorflow.FunctionDefLibrary} - */ -public final class FunctionDefLibrary extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.FunctionDefLibrary) - FunctionDefLibraryOrBuilder { -private static final long serialVersionUID = 0L; - // Use FunctionDefLibrary.newBuilder() to construct. - private FunctionDefLibrary(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FunctionDefLibrary() { - function_ = java.util.Collections.emptyList(); - gradient_ = java.util.Collections.emptyList(); - registeredGradients_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FunctionDefLibrary(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FunctionDefLibrary( - 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)) { - function_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - function_.add( - input.readMessage(org.tensorflow.proto.framework.FunctionDef.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - gradient_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - gradient_.add( - input.readMessage(org.tensorflow.proto.framework.GradientDef.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - registeredGradients_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - registeredGradients_.add( - input.readMessage(org.tensorflow.proto.framework.RegisteredGradient.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)) { - function_ = java.util.Collections.unmodifiableList(function_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - gradient_ = java.util.Collections.unmodifiableList(gradient_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - registeredGradients_ = java.util.Collections.unmodifiableList(registeredGradients_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_FunctionDefLibrary_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_FunctionDefLibrary_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.FunctionDefLibrary.class, org.tensorflow.proto.framework.FunctionDefLibrary.Builder.class); - } - - public static final int FUNCTION_FIELD_NUMBER = 1; - private java.util.List function_; - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public java.util.List getFunctionList() { - return function_; - } - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public java.util.List - getFunctionOrBuilderList() { - return function_; - } - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public int getFunctionCount() { - return function_.size(); - } - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public org.tensorflow.proto.framework.FunctionDef getFunction(int index) { - return function_.get(index); - } - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public org.tensorflow.proto.framework.FunctionDefOrBuilder getFunctionOrBuilder( - int index) { - return function_.get(index); - } - - public static final int GRADIENT_FIELD_NUMBER = 2; - private java.util.List gradient_; - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public java.util.List getGradientList() { - return gradient_; - } - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public java.util.List - getGradientOrBuilderList() { - return gradient_; - } - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public int getGradientCount() { - return gradient_.size(); - } - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public org.tensorflow.proto.framework.GradientDef getGradient(int index) { - return gradient_.get(index); - } - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public org.tensorflow.proto.framework.GradientDefOrBuilder getGradientOrBuilder( - int index) { - return gradient_.get(index); - } - - public static final int REGISTERED_GRADIENTS_FIELD_NUMBER = 3; - private java.util.List registeredGradients_; - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public java.util.List getRegisteredGradientsList() { - return registeredGradients_; - } - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public java.util.List - getRegisteredGradientsOrBuilderList() { - return registeredGradients_; - } - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public int getRegisteredGradientsCount() { - return registeredGradients_.size(); - } - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public org.tensorflow.proto.framework.RegisteredGradient getRegisteredGradients(int index) { - return registeredGradients_.get(index); - } - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public org.tensorflow.proto.framework.RegisteredGradientOrBuilder getRegisteredGradientsOrBuilder( - int index) { - return registeredGradients_.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 < function_.size(); i++) { - output.writeMessage(1, function_.get(i)); - } - for (int i = 0; i < gradient_.size(); i++) { - output.writeMessage(2, gradient_.get(i)); - } - for (int i = 0; i < registeredGradients_.size(); i++) { - output.writeMessage(3, registeredGradients_.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 < function_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, function_.get(i)); - } - for (int i = 0; i < gradient_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, gradient_.get(i)); - } - for (int i = 0; i < registeredGradients_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, registeredGradients_.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 org.tensorflow.proto.framework.FunctionDefLibrary)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.FunctionDefLibrary other = (org.tensorflow.proto.framework.FunctionDefLibrary) obj; - - if (!getFunctionList() - .equals(other.getFunctionList())) return false; - if (!getGradientList() - .equals(other.getGradientList())) return false; - if (!getRegisteredGradientsList() - .equals(other.getRegisteredGradientsList())) 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 (getFunctionCount() > 0) { - hash = (37 * hash) + FUNCTION_FIELD_NUMBER; - hash = (53 * hash) + getFunctionList().hashCode(); - } - if (getGradientCount() > 0) { - hash = (37 * hash) + GRADIENT_FIELD_NUMBER; - hash = (53 * hash) + getGradientList().hashCode(); - } - if (getRegisteredGradientsCount() > 0) { - hash = (37 * hash) + REGISTERED_GRADIENTS_FIELD_NUMBER; - hash = (53 * hash) + getRegisteredGradientsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.FunctionDefLibrary parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.FunctionDefLibrary parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.FunctionDefLibrary parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.FunctionDefLibrary parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.FunctionDefLibrary parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.FunctionDefLibrary parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.FunctionDefLibrary parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.FunctionDefLibrary 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 org.tensorflow.proto.framework.FunctionDefLibrary parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.FunctionDefLibrary 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 org.tensorflow.proto.framework.FunctionDefLibrary parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.FunctionDefLibrary 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(org.tensorflow.proto.framework.FunctionDefLibrary 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; - } - /** - *
-   * A library is a set of named functions.
-   * 
- * - * Protobuf type {@code tensorflow.FunctionDefLibrary} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.FunctionDefLibrary) - org.tensorflow.proto.framework.FunctionDefLibraryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_FunctionDefLibrary_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_FunctionDefLibrary_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.FunctionDefLibrary.class, org.tensorflow.proto.framework.FunctionDefLibrary.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.FunctionDefLibrary.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getFunctionFieldBuilder(); - getGradientFieldBuilder(); - getRegisteredGradientsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (functionBuilder_ == null) { - function_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - functionBuilder_.clear(); - } - if (gradientBuilder_ == null) { - gradient_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - gradientBuilder_.clear(); - } - if (registeredGradientsBuilder_ == null) { - registeredGradients_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - registeredGradientsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_FunctionDefLibrary_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.FunctionDefLibrary getDefaultInstanceForType() { - return org.tensorflow.proto.framework.FunctionDefLibrary.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.FunctionDefLibrary build() { - org.tensorflow.proto.framework.FunctionDefLibrary result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.FunctionDefLibrary buildPartial() { - org.tensorflow.proto.framework.FunctionDefLibrary result = new org.tensorflow.proto.framework.FunctionDefLibrary(this); - int from_bitField0_ = bitField0_; - if (functionBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - function_ = java.util.Collections.unmodifiableList(function_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.function_ = function_; - } else { - result.function_ = functionBuilder_.build(); - } - if (gradientBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - gradient_ = java.util.Collections.unmodifiableList(gradient_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.gradient_ = gradient_; - } else { - result.gradient_ = gradientBuilder_.build(); - } - if (registeredGradientsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - registeredGradients_ = java.util.Collections.unmodifiableList(registeredGradients_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.registeredGradients_ = registeredGradients_; - } else { - result.registeredGradients_ = registeredGradientsBuilder_.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 org.tensorflow.proto.framework.FunctionDefLibrary) { - return mergeFrom((org.tensorflow.proto.framework.FunctionDefLibrary)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.FunctionDefLibrary other) { - if (other == org.tensorflow.proto.framework.FunctionDefLibrary.getDefaultInstance()) return this; - if (functionBuilder_ == null) { - if (!other.function_.isEmpty()) { - if (function_.isEmpty()) { - function_ = other.function_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFunctionIsMutable(); - function_.addAll(other.function_); - } - onChanged(); - } - } else { - if (!other.function_.isEmpty()) { - if (functionBuilder_.isEmpty()) { - functionBuilder_.dispose(); - functionBuilder_ = null; - function_ = other.function_; - bitField0_ = (bitField0_ & ~0x00000001); - functionBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFunctionFieldBuilder() : null; - } else { - functionBuilder_.addAllMessages(other.function_); - } - } - } - if (gradientBuilder_ == null) { - if (!other.gradient_.isEmpty()) { - if (gradient_.isEmpty()) { - gradient_ = other.gradient_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureGradientIsMutable(); - gradient_.addAll(other.gradient_); - } - onChanged(); - } - } else { - if (!other.gradient_.isEmpty()) { - if (gradientBuilder_.isEmpty()) { - gradientBuilder_.dispose(); - gradientBuilder_ = null; - gradient_ = other.gradient_; - bitField0_ = (bitField0_ & ~0x00000002); - gradientBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGradientFieldBuilder() : null; - } else { - gradientBuilder_.addAllMessages(other.gradient_); - } - } - } - if (registeredGradientsBuilder_ == null) { - if (!other.registeredGradients_.isEmpty()) { - if (registeredGradients_.isEmpty()) { - registeredGradients_ = other.registeredGradients_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureRegisteredGradientsIsMutable(); - registeredGradients_.addAll(other.registeredGradients_); - } - onChanged(); - } - } else { - if (!other.registeredGradients_.isEmpty()) { - if (registeredGradientsBuilder_.isEmpty()) { - registeredGradientsBuilder_.dispose(); - registeredGradientsBuilder_ = null; - registeredGradients_ = other.registeredGradients_; - bitField0_ = (bitField0_ & ~0x00000004); - registeredGradientsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRegisteredGradientsFieldBuilder() : null; - } else { - registeredGradientsBuilder_.addAllMessages(other.registeredGradients_); - } - } - } - 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 { - org.tensorflow.proto.framework.FunctionDefLibrary parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.FunctionDefLibrary) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List function_ = - java.util.Collections.emptyList(); - private void ensureFunctionIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - function_ = new java.util.ArrayList(function_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.FunctionDef, org.tensorflow.proto.framework.FunctionDef.Builder, org.tensorflow.proto.framework.FunctionDefOrBuilder> functionBuilder_; - - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public java.util.List getFunctionList() { - if (functionBuilder_ == null) { - return java.util.Collections.unmodifiableList(function_); - } else { - return functionBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public int getFunctionCount() { - if (functionBuilder_ == null) { - return function_.size(); - } else { - return functionBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public org.tensorflow.proto.framework.FunctionDef getFunction(int index) { - if (functionBuilder_ == null) { - return function_.get(index); - } else { - return functionBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public Builder setFunction( - int index, org.tensorflow.proto.framework.FunctionDef value) { - if (functionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFunctionIsMutable(); - function_.set(index, value); - onChanged(); - } else { - functionBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public Builder setFunction( - int index, org.tensorflow.proto.framework.FunctionDef.Builder builderForValue) { - if (functionBuilder_ == null) { - ensureFunctionIsMutable(); - function_.set(index, builderForValue.build()); - onChanged(); - } else { - functionBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public Builder addFunction(org.tensorflow.proto.framework.FunctionDef value) { - if (functionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFunctionIsMutable(); - function_.add(value); - onChanged(); - } else { - functionBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public Builder addFunction( - int index, org.tensorflow.proto.framework.FunctionDef value) { - if (functionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFunctionIsMutable(); - function_.add(index, value); - onChanged(); - } else { - functionBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public Builder addFunction( - org.tensorflow.proto.framework.FunctionDef.Builder builderForValue) { - if (functionBuilder_ == null) { - ensureFunctionIsMutable(); - function_.add(builderForValue.build()); - onChanged(); - } else { - functionBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public Builder addFunction( - int index, org.tensorflow.proto.framework.FunctionDef.Builder builderForValue) { - if (functionBuilder_ == null) { - ensureFunctionIsMutable(); - function_.add(index, builderForValue.build()); - onChanged(); - } else { - functionBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public Builder addAllFunction( - java.lang.Iterable values) { - if (functionBuilder_ == null) { - ensureFunctionIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, function_); - onChanged(); - } else { - functionBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public Builder clearFunction() { - if (functionBuilder_ == null) { - function_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - functionBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public Builder removeFunction(int index) { - if (functionBuilder_ == null) { - ensureFunctionIsMutable(); - function_.remove(index); - onChanged(); - } else { - functionBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public org.tensorflow.proto.framework.FunctionDef.Builder getFunctionBuilder( - int index) { - return getFunctionFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public org.tensorflow.proto.framework.FunctionDefOrBuilder getFunctionOrBuilder( - int index) { - if (functionBuilder_ == null) { - return function_.get(index); } else { - return functionBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public java.util.List - getFunctionOrBuilderList() { - if (functionBuilder_ != null) { - return functionBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(function_); - } - } - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public org.tensorflow.proto.framework.FunctionDef.Builder addFunctionBuilder() { - return getFunctionFieldBuilder().addBuilder( - org.tensorflow.proto.framework.FunctionDef.getDefaultInstance()); - } - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public org.tensorflow.proto.framework.FunctionDef.Builder addFunctionBuilder( - int index) { - return getFunctionFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.FunctionDef.getDefaultInstance()); - } - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - public java.util.List - getFunctionBuilderList() { - return getFunctionFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.FunctionDef, org.tensorflow.proto.framework.FunctionDef.Builder, org.tensorflow.proto.framework.FunctionDefOrBuilder> - getFunctionFieldBuilder() { - if (functionBuilder_ == null) { - functionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.FunctionDef, org.tensorflow.proto.framework.FunctionDef.Builder, org.tensorflow.proto.framework.FunctionDefOrBuilder>( - function_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - function_ = null; - } - return functionBuilder_; - } - - private java.util.List gradient_ = - java.util.Collections.emptyList(); - private void ensureGradientIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - gradient_ = new java.util.ArrayList(gradient_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GradientDef, org.tensorflow.proto.framework.GradientDef.Builder, org.tensorflow.proto.framework.GradientDefOrBuilder> gradientBuilder_; - - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public java.util.List getGradientList() { - if (gradientBuilder_ == null) { - return java.util.Collections.unmodifiableList(gradient_); - } else { - return gradientBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public int getGradientCount() { - if (gradientBuilder_ == null) { - return gradient_.size(); - } else { - return gradientBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public org.tensorflow.proto.framework.GradientDef getGradient(int index) { - if (gradientBuilder_ == null) { - return gradient_.get(index); - } else { - return gradientBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public Builder setGradient( - int index, org.tensorflow.proto.framework.GradientDef value) { - if (gradientBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGradientIsMutable(); - gradient_.set(index, value); - onChanged(); - } else { - gradientBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public Builder setGradient( - int index, org.tensorflow.proto.framework.GradientDef.Builder builderForValue) { - if (gradientBuilder_ == null) { - ensureGradientIsMutable(); - gradient_.set(index, builderForValue.build()); - onChanged(); - } else { - gradientBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public Builder addGradient(org.tensorflow.proto.framework.GradientDef value) { - if (gradientBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGradientIsMutable(); - gradient_.add(value); - onChanged(); - } else { - gradientBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public Builder addGradient( - int index, org.tensorflow.proto.framework.GradientDef value) { - if (gradientBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGradientIsMutable(); - gradient_.add(index, value); - onChanged(); - } else { - gradientBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public Builder addGradient( - org.tensorflow.proto.framework.GradientDef.Builder builderForValue) { - if (gradientBuilder_ == null) { - ensureGradientIsMutable(); - gradient_.add(builderForValue.build()); - onChanged(); - } else { - gradientBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public Builder addGradient( - int index, org.tensorflow.proto.framework.GradientDef.Builder builderForValue) { - if (gradientBuilder_ == null) { - ensureGradientIsMutable(); - gradient_.add(index, builderForValue.build()); - onChanged(); - } else { - gradientBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public Builder addAllGradient( - java.lang.Iterable values) { - if (gradientBuilder_ == null) { - ensureGradientIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, gradient_); - onChanged(); - } else { - gradientBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public Builder clearGradient() { - if (gradientBuilder_ == null) { - gradient_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - gradientBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public Builder removeGradient(int index) { - if (gradientBuilder_ == null) { - ensureGradientIsMutable(); - gradient_.remove(index); - onChanged(); - } else { - gradientBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public org.tensorflow.proto.framework.GradientDef.Builder getGradientBuilder( - int index) { - return getGradientFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public org.tensorflow.proto.framework.GradientDefOrBuilder getGradientOrBuilder( - int index) { - if (gradientBuilder_ == null) { - return gradient_.get(index); } else { - return gradientBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public java.util.List - getGradientOrBuilderList() { - if (gradientBuilder_ != null) { - return gradientBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(gradient_); - } - } - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public org.tensorflow.proto.framework.GradientDef.Builder addGradientBuilder() { - return getGradientFieldBuilder().addBuilder( - org.tensorflow.proto.framework.GradientDef.getDefaultInstance()); - } - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public org.tensorflow.proto.framework.GradientDef.Builder addGradientBuilder( - int index) { - return getGradientFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.GradientDef.getDefaultInstance()); - } - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - public java.util.List - getGradientBuilderList() { - return getGradientFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GradientDef, org.tensorflow.proto.framework.GradientDef.Builder, org.tensorflow.proto.framework.GradientDefOrBuilder> - getGradientFieldBuilder() { - if (gradientBuilder_ == null) { - gradientBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GradientDef, org.tensorflow.proto.framework.GradientDef.Builder, org.tensorflow.proto.framework.GradientDefOrBuilder>( - gradient_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - gradient_ = null; - } - return gradientBuilder_; - } - - private java.util.List registeredGradients_ = - java.util.Collections.emptyList(); - private void ensureRegisteredGradientsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - registeredGradients_ = new java.util.ArrayList(registeredGradients_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.RegisteredGradient, org.tensorflow.proto.framework.RegisteredGradient.Builder, org.tensorflow.proto.framework.RegisteredGradientOrBuilder> registeredGradientsBuilder_; - - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public java.util.List getRegisteredGradientsList() { - if (registeredGradientsBuilder_ == null) { - return java.util.Collections.unmodifiableList(registeredGradients_); - } else { - return registeredGradientsBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public int getRegisteredGradientsCount() { - if (registeredGradientsBuilder_ == null) { - return registeredGradients_.size(); - } else { - return registeredGradientsBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public org.tensorflow.proto.framework.RegisteredGradient getRegisteredGradients(int index) { - if (registeredGradientsBuilder_ == null) { - return registeredGradients_.get(index); - } else { - return registeredGradientsBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public Builder setRegisteredGradients( - int index, org.tensorflow.proto.framework.RegisteredGradient value) { - if (registeredGradientsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegisteredGradientsIsMutable(); - registeredGradients_.set(index, value); - onChanged(); - } else { - registeredGradientsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public Builder setRegisteredGradients( - int index, org.tensorflow.proto.framework.RegisteredGradient.Builder builderForValue) { - if (registeredGradientsBuilder_ == null) { - ensureRegisteredGradientsIsMutable(); - registeredGradients_.set(index, builderForValue.build()); - onChanged(); - } else { - registeredGradientsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public Builder addRegisteredGradients(org.tensorflow.proto.framework.RegisteredGradient value) { - if (registeredGradientsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegisteredGradientsIsMutable(); - registeredGradients_.add(value); - onChanged(); - } else { - registeredGradientsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public Builder addRegisteredGradients( - int index, org.tensorflow.proto.framework.RegisteredGradient value) { - if (registeredGradientsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegisteredGradientsIsMutable(); - registeredGradients_.add(index, value); - onChanged(); - } else { - registeredGradientsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public Builder addRegisteredGradients( - org.tensorflow.proto.framework.RegisteredGradient.Builder builderForValue) { - if (registeredGradientsBuilder_ == null) { - ensureRegisteredGradientsIsMutable(); - registeredGradients_.add(builderForValue.build()); - onChanged(); - } else { - registeredGradientsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public Builder addRegisteredGradients( - int index, org.tensorflow.proto.framework.RegisteredGradient.Builder builderForValue) { - if (registeredGradientsBuilder_ == null) { - ensureRegisteredGradientsIsMutable(); - registeredGradients_.add(index, builderForValue.build()); - onChanged(); - } else { - registeredGradientsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public Builder addAllRegisteredGradients( - java.lang.Iterable values) { - if (registeredGradientsBuilder_ == null) { - ensureRegisteredGradientsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, registeredGradients_); - onChanged(); - } else { - registeredGradientsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public Builder clearRegisteredGradients() { - if (registeredGradientsBuilder_ == null) { - registeredGradients_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - registeredGradientsBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public Builder removeRegisteredGradients(int index) { - if (registeredGradientsBuilder_ == null) { - ensureRegisteredGradientsIsMutable(); - registeredGradients_.remove(index); - onChanged(); - } else { - registeredGradientsBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public org.tensorflow.proto.framework.RegisteredGradient.Builder getRegisteredGradientsBuilder( - int index) { - return getRegisteredGradientsFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public org.tensorflow.proto.framework.RegisteredGradientOrBuilder getRegisteredGradientsOrBuilder( - int index) { - if (registeredGradientsBuilder_ == null) { - return registeredGradients_.get(index); } else { - return registeredGradientsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public java.util.List - getRegisteredGradientsOrBuilderList() { - if (registeredGradientsBuilder_ != null) { - return registeredGradientsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(registeredGradients_); - } - } - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public org.tensorflow.proto.framework.RegisteredGradient.Builder addRegisteredGradientsBuilder() { - return getRegisteredGradientsFieldBuilder().addBuilder( - org.tensorflow.proto.framework.RegisteredGradient.getDefaultInstance()); - } - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public org.tensorflow.proto.framework.RegisteredGradient.Builder addRegisteredGradientsBuilder( - int index) { - return getRegisteredGradientsFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.RegisteredGradient.getDefaultInstance()); - } - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - public java.util.List - getRegisteredGradientsBuilderList() { - return getRegisteredGradientsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.RegisteredGradient, org.tensorflow.proto.framework.RegisteredGradient.Builder, org.tensorflow.proto.framework.RegisteredGradientOrBuilder> - getRegisteredGradientsFieldBuilder() { - if (registeredGradientsBuilder_ == null) { - registeredGradientsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.RegisteredGradient, org.tensorflow.proto.framework.RegisteredGradient.Builder, org.tensorflow.proto.framework.RegisteredGradientOrBuilder>( - registeredGradients_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - registeredGradients_ = null; - } - return registeredGradientsBuilder_; - } - @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:tensorflow.FunctionDefLibrary) - } - - // @@protoc_insertion_point(class_scope:tensorflow.FunctionDefLibrary) - private static final org.tensorflow.proto.framework.FunctionDefLibrary DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.FunctionDefLibrary(); - } - - public static org.tensorflow.proto.framework.FunctionDefLibrary getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FunctionDefLibrary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FunctionDefLibrary(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.FunctionDefLibrary getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FunctionDefLibraryOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FunctionDefLibraryOrBuilder.java deleted file mode 100644 index 5a8d9c6ae5e..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FunctionDefLibraryOrBuilder.java +++ /dev/null @@ -1,81 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/function.proto - -package org.tensorflow.proto.framework; - -public interface FunctionDefLibraryOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.FunctionDefLibrary) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - java.util.List - getFunctionList(); - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - org.tensorflow.proto.framework.FunctionDef getFunction(int index); - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - int getFunctionCount(); - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - java.util.List - getFunctionOrBuilderList(); - /** - * repeated .tensorflow.FunctionDef function = 1; - */ - org.tensorflow.proto.framework.FunctionDefOrBuilder getFunctionOrBuilder( - int index); - - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - java.util.List - getGradientList(); - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - org.tensorflow.proto.framework.GradientDef getGradient(int index); - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - int getGradientCount(); - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - java.util.List - getGradientOrBuilderList(); - /** - * repeated .tensorflow.GradientDef gradient = 2; - */ - org.tensorflow.proto.framework.GradientDefOrBuilder getGradientOrBuilder( - int index); - - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - java.util.List - getRegisteredGradientsList(); - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - org.tensorflow.proto.framework.RegisteredGradient getRegisteredGradients(int index); - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - int getRegisteredGradientsCount(); - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - java.util.List - getRegisteredGradientsOrBuilderList(); - /** - * repeated .tensorflow.RegisteredGradient registered_gradients = 3; - */ - org.tensorflow.proto.framework.RegisteredGradientOrBuilder getRegisteredGradientsOrBuilder( - int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FunctionSpec.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FunctionSpec.java deleted file mode 100644 index d71706dad58..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FunctionSpec.java +++ /dev/null @@ -1,1162 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Represents `FunctionSpec` used in `Function`. This represents a
- * function that has been wrapped as a TensorFlow `Function`.
- * 
- * - * Protobuf type {@code tensorflow.FunctionSpec} - */ -public final class FunctionSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.FunctionSpec) - FunctionSpecOrBuilder { -private static final long serialVersionUID = 0L; - // Use FunctionSpec.newBuilder() to construct. - private FunctionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FunctionSpec() { - jitCompile_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FunctionSpec(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FunctionSpec( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.tensorflow.proto.framework.StructuredValue.Builder subBuilder = null; - if (fullargspec_ != null) { - subBuilder = fullargspec_.toBuilder(); - } - fullargspec_ = input.readMessage(org.tensorflow.proto.framework.StructuredValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fullargspec_); - fullargspec_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - isMethod_ = input.readBool(); - break; - } - case 42: { - org.tensorflow.proto.framework.StructuredValue.Builder subBuilder = null; - if (inputSignature_ != null) { - subBuilder = inputSignature_.toBuilder(); - } - inputSignature_ = input.readMessage(org.tensorflow.proto.framework.StructuredValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputSignature_); - inputSignature_ = subBuilder.buildPartial(); - } - - break; - } - case 48: { - int rawValue = input.readEnum(); - - jitCompile_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_FunctionSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_FunctionSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.FunctionSpec.class, org.tensorflow.proto.framework.FunctionSpec.Builder.class); - } - - /** - *
-   * Whether the function should be compiled by XLA.
-   * The public interface to `tf.function` uses an optional boolean to
-   * represent three distinct states for this field.  Unfortunately, proto3
-   * removes the ability to explicitly check for the presence or absence of a
-   * field, so we instead map to an enum.
-   * See `tf.function` for details.
-   * 
- * - * Protobuf enum {@code tensorflow.FunctionSpec.JitCompile} - */ - public enum JitCompile - implements com.google.protobuf.ProtocolMessageEnum { - /** - * DEFAULT = 0; - */ - DEFAULT(0), - /** - * ON = 1; - */ - ON(1), - /** - * OFF = 2; - */ - OFF(2), - UNRECOGNIZED(-1), - ; - - /** - * DEFAULT = 0; - */ - public static final int DEFAULT_VALUE = 0; - /** - * ON = 1; - */ - public static final int ON_VALUE = 1; - /** - * OFF = 2; - */ - public static final int OFF_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static JitCompile valueOf(int value) { - return forNumber(value); - } - - public static JitCompile forNumber(int value) { - switch (value) { - case 0: return DEFAULT; - case 1: return ON; - case 2: return OFF; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - JitCompile> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public JitCompile findValueByNumber(int number) { - return JitCompile.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 org.tensorflow.proto.framework.FunctionSpec.getDescriptor().getEnumTypes().get(0); - } - - private static final JitCompile[] VALUES = values(); - - public static JitCompile 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 JitCompile(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:tensorflow.FunctionSpec.JitCompile) - } - - public static final int FULLARGSPEC_FIELD_NUMBER = 1; - private org.tensorflow.proto.framework.StructuredValue fullargspec_; - /** - *
-   * Full arg spec from inspect.getfullargspec().
-   * 
- * - * .tensorflow.StructuredValue fullargspec = 1; - */ - public boolean hasFullargspec() { - return fullargspec_ != null; - } - /** - *
-   * Full arg spec from inspect.getfullargspec().
-   * 
- * - * .tensorflow.StructuredValue fullargspec = 1; - */ - public org.tensorflow.proto.framework.StructuredValue getFullargspec() { - return fullargspec_ == null ? org.tensorflow.proto.framework.StructuredValue.getDefaultInstance() : fullargspec_; - } - /** - *
-   * Full arg spec from inspect.getfullargspec().
-   * 
- * - * .tensorflow.StructuredValue fullargspec = 1; - */ - public org.tensorflow.proto.framework.StructuredValueOrBuilder getFullargspecOrBuilder() { - return getFullargspec(); - } - - public static final int IS_METHOD_FIELD_NUMBER = 2; - private boolean isMethod_; - /** - *
-   * Whether this represents a class method.
-   * 
- * - * bool is_method = 2; - */ - public boolean getIsMethod() { - return isMethod_; - } - - public static final int INPUT_SIGNATURE_FIELD_NUMBER = 5; - private org.tensorflow.proto.framework.StructuredValue inputSignature_; - /** - *
-   * The input signature, if specified.
-   * 
- * - * .tensorflow.StructuredValue input_signature = 5; - */ - public boolean hasInputSignature() { - return inputSignature_ != null; - } - /** - *
-   * The input signature, if specified.
-   * 
- * - * .tensorflow.StructuredValue input_signature = 5; - */ - public org.tensorflow.proto.framework.StructuredValue getInputSignature() { - return inputSignature_ == null ? org.tensorflow.proto.framework.StructuredValue.getDefaultInstance() : inputSignature_; - } - /** - *
-   * The input signature, if specified.
-   * 
- * - * .tensorflow.StructuredValue input_signature = 5; - */ - public org.tensorflow.proto.framework.StructuredValueOrBuilder getInputSignatureOrBuilder() { - return getInputSignature(); - } - - public static final int JIT_COMPILE_FIELD_NUMBER = 6; - private int jitCompile_; - /** - * .tensorflow.FunctionSpec.JitCompile jit_compile = 6; - */ - public int getJitCompileValue() { - return jitCompile_; - } - /** - * .tensorflow.FunctionSpec.JitCompile jit_compile = 6; - */ - public org.tensorflow.proto.framework.FunctionSpec.JitCompile getJitCompile() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.FunctionSpec.JitCompile result = org.tensorflow.proto.framework.FunctionSpec.JitCompile.valueOf(jitCompile_); - return result == null ? org.tensorflow.proto.framework.FunctionSpec.JitCompile.UNRECOGNIZED : result; - } - - 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 (fullargspec_ != null) { - output.writeMessage(1, getFullargspec()); - } - if (isMethod_ != false) { - output.writeBool(2, isMethod_); - } - if (inputSignature_ != null) { - output.writeMessage(5, getInputSignature()); - } - if (jitCompile_ != org.tensorflow.proto.framework.FunctionSpec.JitCompile.DEFAULT.getNumber()) { - output.writeEnum(6, jitCompile_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (fullargspec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getFullargspec()); - } - if (isMethod_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isMethod_); - } - if (inputSignature_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getInputSignature()); - } - if (jitCompile_ != org.tensorflow.proto.framework.FunctionSpec.JitCompile.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, jitCompile_); - } - 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 org.tensorflow.proto.framework.FunctionSpec)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.FunctionSpec other = (org.tensorflow.proto.framework.FunctionSpec) obj; - - if (hasFullargspec() != other.hasFullargspec()) return false; - if (hasFullargspec()) { - if (!getFullargspec() - .equals(other.getFullargspec())) return false; - } - if (getIsMethod() - != other.getIsMethod()) return false; - if (hasInputSignature() != other.hasInputSignature()) return false; - if (hasInputSignature()) { - if (!getInputSignature() - .equals(other.getInputSignature())) return false; - } - if (jitCompile_ != other.jitCompile_) 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 (hasFullargspec()) { - hash = (37 * hash) + FULLARGSPEC_FIELD_NUMBER; - hash = (53 * hash) + getFullargspec().hashCode(); - } - hash = (37 * hash) + IS_METHOD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsMethod()); - if (hasInputSignature()) { - hash = (37 * hash) + INPUT_SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getInputSignature().hashCode(); - } - hash = (37 * hash) + JIT_COMPILE_FIELD_NUMBER; - hash = (53 * hash) + jitCompile_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.FunctionSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.FunctionSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.FunctionSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.FunctionSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.FunctionSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.FunctionSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.FunctionSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.FunctionSpec 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 org.tensorflow.proto.framework.FunctionSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.FunctionSpec 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 org.tensorflow.proto.framework.FunctionSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.FunctionSpec 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(org.tensorflow.proto.framework.FunctionSpec 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; - } - /** - *
-   * Represents `FunctionSpec` used in `Function`. This represents a
-   * function that has been wrapped as a TensorFlow `Function`.
-   * 
- * - * Protobuf type {@code tensorflow.FunctionSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.FunctionSpec) - org.tensorflow.proto.framework.FunctionSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_FunctionSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_FunctionSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.FunctionSpec.class, org.tensorflow.proto.framework.FunctionSpec.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.FunctionSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (fullargspecBuilder_ == null) { - fullargspec_ = null; - } else { - fullargspec_ = null; - fullargspecBuilder_ = null; - } - isMethod_ = false; - - if (inputSignatureBuilder_ == null) { - inputSignature_ = null; - } else { - inputSignature_ = null; - inputSignatureBuilder_ = null; - } - jitCompile_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_FunctionSpec_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.FunctionSpec getDefaultInstanceForType() { - return org.tensorflow.proto.framework.FunctionSpec.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.FunctionSpec build() { - org.tensorflow.proto.framework.FunctionSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.FunctionSpec buildPartial() { - org.tensorflow.proto.framework.FunctionSpec result = new org.tensorflow.proto.framework.FunctionSpec(this); - if (fullargspecBuilder_ == null) { - result.fullargspec_ = fullargspec_; - } else { - result.fullargspec_ = fullargspecBuilder_.build(); - } - result.isMethod_ = isMethod_; - if (inputSignatureBuilder_ == null) { - result.inputSignature_ = inputSignature_; - } else { - result.inputSignature_ = inputSignatureBuilder_.build(); - } - result.jitCompile_ = jitCompile_; - 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 org.tensorflow.proto.framework.FunctionSpec) { - return mergeFrom((org.tensorflow.proto.framework.FunctionSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.FunctionSpec other) { - if (other == org.tensorflow.proto.framework.FunctionSpec.getDefaultInstance()) return this; - if (other.hasFullargspec()) { - mergeFullargspec(other.getFullargspec()); - } - if (other.getIsMethod() != false) { - setIsMethod(other.getIsMethod()); - } - if (other.hasInputSignature()) { - mergeInputSignature(other.getInputSignature()); - } - if (other.jitCompile_ != 0) { - setJitCompileValue(other.getJitCompileValue()); - } - 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 { - org.tensorflow.proto.framework.FunctionSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.FunctionSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private org.tensorflow.proto.framework.StructuredValue fullargspec_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder> fullargspecBuilder_; - /** - *
-     * Full arg spec from inspect.getfullargspec().
-     * 
- * - * .tensorflow.StructuredValue fullargspec = 1; - */ - public boolean hasFullargspec() { - return fullargspecBuilder_ != null || fullargspec_ != null; - } - /** - *
-     * Full arg spec from inspect.getfullargspec().
-     * 
- * - * .tensorflow.StructuredValue fullargspec = 1; - */ - public org.tensorflow.proto.framework.StructuredValue getFullargspec() { - if (fullargspecBuilder_ == null) { - return fullargspec_ == null ? org.tensorflow.proto.framework.StructuredValue.getDefaultInstance() : fullargspec_; - } else { - return fullargspecBuilder_.getMessage(); - } - } - /** - *
-     * Full arg spec from inspect.getfullargspec().
-     * 
- * - * .tensorflow.StructuredValue fullargspec = 1; - */ - public Builder setFullargspec(org.tensorflow.proto.framework.StructuredValue value) { - if (fullargspecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fullargspec_ = value; - onChanged(); - } else { - fullargspecBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Full arg spec from inspect.getfullargspec().
-     * 
- * - * .tensorflow.StructuredValue fullargspec = 1; - */ - public Builder setFullargspec( - org.tensorflow.proto.framework.StructuredValue.Builder builderForValue) { - if (fullargspecBuilder_ == null) { - fullargspec_ = builderForValue.build(); - onChanged(); - } else { - fullargspecBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Full arg spec from inspect.getfullargspec().
-     * 
- * - * .tensorflow.StructuredValue fullargspec = 1; - */ - public Builder mergeFullargspec(org.tensorflow.proto.framework.StructuredValue value) { - if (fullargspecBuilder_ == null) { - if (fullargspec_ != null) { - fullargspec_ = - org.tensorflow.proto.framework.StructuredValue.newBuilder(fullargspec_).mergeFrom(value).buildPartial(); - } else { - fullargspec_ = value; - } - onChanged(); - } else { - fullargspecBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Full arg spec from inspect.getfullargspec().
-     * 
- * - * .tensorflow.StructuredValue fullargspec = 1; - */ - public Builder clearFullargspec() { - if (fullargspecBuilder_ == null) { - fullargspec_ = null; - onChanged(); - } else { - fullargspec_ = null; - fullargspecBuilder_ = null; - } - - return this; - } - /** - *
-     * Full arg spec from inspect.getfullargspec().
-     * 
- * - * .tensorflow.StructuredValue fullargspec = 1; - */ - public org.tensorflow.proto.framework.StructuredValue.Builder getFullargspecBuilder() { - - onChanged(); - return getFullargspecFieldBuilder().getBuilder(); - } - /** - *
-     * Full arg spec from inspect.getfullargspec().
-     * 
- * - * .tensorflow.StructuredValue fullargspec = 1; - */ - public org.tensorflow.proto.framework.StructuredValueOrBuilder getFullargspecOrBuilder() { - if (fullargspecBuilder_ != null) { - return fullargspecBuilder_.getMessageOrBuilder(); - } else { - return fullargspec_ == null ? - org.tensorflow.proto.framework.StructuredValue.getDefaultInstance() : fullargspec_; - } - } - /** - *
-     * Full arg spec from inspect.getfullargspec().
-     * 
- * - * .tensorflow.StructuredValue fullargspec = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder> - getFullargspecFieldBuilder() { - if (fullargspecBuilder_ == null) { - fullargspecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder>( - getFullargspec(), - getParentForChildren(), - isClean()); - fullargspec_ = null; - } - return fullargspecBuilder_; - } - - private boolean isMethod_ ; - /** - *
-     * Whether this represents a class method.
-     * 
- * - * bool is_method = 2; - */ - public boolean getIsMethod() { - return isMethod_; - } - /** - *
-     * Whether this represents a class method.
-     * 
- * - * bool is_method = 2; - */ - public Builder setIsMethod(boolean value) { - - isMethod_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether this represents a class method.
-     * 
- * - * bool is_method = 2; - */ - public Builder clearIsMethod() { - - isMethod_ = false; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.StructuredValue inputSignature_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder> inputSignatureBuilder_; - /** - *
-     * The input signature, if specified.
-     * 
- * - * .tensorflow.StructuredValue input_signature = 5; - */ - public boolean hasInputSignature() { - return inputSignatureBuilder_ != null || inputSignature_ != null; - } - /** - *
-     * The input signature, if specified.
-     * 
- * - * .tensorflow.StructuredValue input_signature = 5; - */ - public org.tensorflow.proto.framework.StructuredValue getInputSignature() { - if (inputSignatureBuilder_ == null) { - return inputSignature_ == null ? org.tensorflow.proto.framework.StructuredValue.getDefaultInstance() : inputSignature_; - } else { - return inputSignatureBuilder_.getMessage(); - } - } - /** - *
-     * The input signature, if specified.
-     * 
- * - * .tensorflow.StructuredValue input_signature = 5; - */ - public Builder setInputSignature(org.tensorflow.proto.framework.StructuredValue value) { - if (inputSignatureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputSignature_ = value; - onChanged(); - } else { - inputSignatureBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The input signature, if specified.
-     * 
- * - * .tensorflow.StructuredValue input_signature = 5; - */ - public Builder setInputSignature( - org.tensorflow.proto.framework.StructuredValue.Builder builderForValue) { - if (inputSignatureBuilder_ == null) { - inputSignature_ = builderForValue.build(); - onChanged(); - } else { - inputSignatureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The input signature, if specified.
-     * 
- * - * .tensorflow.StructuredValue input_signature = 5; - */ - public Builder mergeInputSignature(org.tensorflow.proto.framework.StructuredValue value) { - if (inputSignatureBuilder_ == null) { - if (inputSignature_ != null) { - inputSignature_ = - org.tensorflow.proto.framework.StructuredValue.newBuilder(inputSignature_).mergeFrom(value).buildPartial(); - } else { - inputSignature_ = value; - } - onChanged(); - } else { - inputSignatureBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The input signature, if specified.
-     * 
- * - * .tensorflow.StructuredValue input_signature = 5; - */ - public Builder clearInputSignature() { - if (inputSignatureBuilder_ == null) { - inputSignature_ = null; - onChanged(); - } else { - inputSignature_ = null; - inputSignatureBuilder_ = null; - } - - return this; - } - /** - *
-     * The input signature, if specified.
-     * 
- * - * .tensorflow.StructuredValue input_signature = 5; - */ - public org.tensorflow.proto.framework.StructuredValue.Builder getInputSignatureBuilder() { - - onChanged(); - return getInputSignatureFieldBuilder().getBuilder(); - } - /** - *
-     * The input signature, if specified.
-     * 
- * - * .tensorflow.StructuredValue input_signature = 5; - */ - public org.tensorflow.proto.framework.StructuredValueOrBuilder getInputSignatureOrBuilder() { - if (inputSignatureBuilder_ != null) { - return inputSignatureBuilder_.getMessageOrBuilder(); - } else { - return inputSignature_ == null ? - org.tensorflow.proto.framework.StructuredValue.getDefaultInstance() : inputSignature_; - } - } - /** - *
-     * The input signature, if specified.
-     * 
- * - * .tensorflow.StructuredValue input_signature = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder> - getInputSignatureFieldBuilder() { - if (inputSignatureBuilder_ == null) { - inputSignatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder>( - getInputSignature(), - getParentForChildren(), - isClean()); - inputSignature_ = null; - } - return inputSignatureBuilder_; - } - - private int jitCompile_ = 0; - /** - * .tensorflow.FunctionSpec.JitCompile jit_compile = 6; - */ - public int getJitCompileValue() { - return jitCompile_; - } - /** - * .tensorflow.FunctionSpec.JitCompile jit_compile = 6; - */ - public Builder setJitCompileValue(int value) { - jitCompile_ = value; - onChanged(); - return this; - } - /** - * .tensorflow.FunctionSpec.JitCompile jit_compile = 6; - */ - public org.tensorflow.proto.framework.FunctionSpec.JitCompile getJitCompile() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.FunctionSpec.JitCompile result = org.tensorflow.proto.framework.FunctionSpec.JitCompile.valueOf(jitCompile_); - return result == null ? org.tensorflow.proto.framework.FunctionSpec.JitCompile.UNRECOGNIZED : result; - } - /** - * .tensorflow.FunctionSpec.JitCompile jit_compile = 6; - */ - public Builder setJitCompile(org.tensorflow.proto.framework.FunctionSpec.JitCompile value) { - if (value == null) { - throw new NullPointerException(); - } - - jitCompile_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tensorflow.FunctionSpec.JitCompile jit_compile = 6; - */ - public Builder clearJitCompile() { - - jitCompile_ = 0; - 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:tensorflow.FunctionSpec) - } - - // @@protoc_insertion_point(class_scope:tensorflow.FunctionSpec) - private static final org.tensorflow.proto.framework.FunctionSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.FunctionSpec(); - } - - public static org.tensorflow.proto.framework.FunctionSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FunctionSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FunctionSpec(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.FunctionSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FunctionSpecOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FunctionSpecOrBuilder.java deleted file mode 100644 index 8f2536c86b9..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FunctionSpecOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -public interface FunctionSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.FunctionSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Full arg spec from inspect.getfullargspec().
-   * 
- * - * .tensorflow.StructuredValue fullargspec = 1; - */ - boolean hasFullargspec(); - /** - *
-   * Full arg spec from inspect.getfullargspec().
-   * 
- * - * .tensorflow.StructuredValue fullargspec = 1; - */ - org.tensorflow.proto.framework.StructuredValue getFullargspec(); - /** - *
-   * Full arg spec from inspect.getfullargspec().
-   * 
- * - * .tensorflow.StructuredValue fullargspec = 1; - */ - org.tensorflow.proto.framework.StructuredValueOrBuilder getFullargspecOrBuilder(); - - /** - *
-   * Whether this represents a class method.
-   * 
- * - * bool is_method = 2; - */ - boolean getIsMethod(); - - /** - *
-   * The input signature, if specified.
-   * 
- * - * .tensorflow.StructuredValue input_signature = 5; - */ - boolean hasInputSignature(); - /** - *
-   * The input signature, if specified.
-   * 
- * - * .tensorflow.StructuredValue input_signature = 5; - */ - org.tensorflow.proto.framework.StructuredValue getInputSignature(); - /** - *
-   * The input signature, if specified.
-   * 
- * - * .tensorflow.StructuredValue input_signature = 5; - */ - org.tensorflow.proto.framework.StructuredValueOrBuilder getInputSignatureOrBuilder(); - - /** - * .tensorflow.FunctionSpec.JitCompile jit_compile = 6; - */ - int getJitCompileValue(); - /** - * .tensorflow.FunctionSpec.JitCompile jit_compile = 6; - */ - org.tensorflow.proto.framework.FunctionSpec.JitCompile getJitCompile(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphDebugInfo.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphDebugInfo.java deleted file mode 100644 index 165c76f3ce7..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphDebugInfo.java +++ /dev/null @@ -1,3004 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/graph_debug_info.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.GraphDebugInfo} - */ -public final class GraphDebugInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.GraphDebugInfo) - GraphDebugInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use GraphDebugInfo.newBuilder() to construct. - private GraphDebugInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GraphDebugInfo() { - files_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GraphDebugInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GraphDebugInfo( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - files_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - files_.add(s); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - traces_ = com.google.protobuf.MapField.newMapField( - TracesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - traces__ = input.readMessage( - TracesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - traces_.getMutableMap().put( - traces__.getKey(), traces__.getValue()); - 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)) { - files_ = files_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetTraces(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphDebugInfo.class, org.tensorflow.proto.framework.GraphDebugInfo.Builder.class); - } - - public interface FileLineColOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.GraphDebugInfo.FileLineCol) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * File name index, which can be used to retrieve the file name string from
-     * `files`. The value should be between 0 and (len(files)-1)
-     * 
- * - * int32 file_index = 1; - */ - int getFileIndex(); - - /** - *
-     * Line number in the file.
-     * 
- * - * int32 line = 2; - */ - int getLine(); - - /** - *
-     * Col number in the file line.
-     * 
- * - * int32 col = 3; - */ - int getCol(); - - /** - *
-     * Name of function contains the file line.
-     * 
- * - * string func = 4; - */ - java.lang.String getFunc(); - /** - *
-     * Name of function contains the file line.
-     * 
- * - * string func = 4; - */ - com.google.protobuf.ByteString - getFuncBytes(); - - /** - *
-     * Source code contained in this file line.
-     * 
- * - * string code = 5; - */ - java.lang.String getCode(); - /** - *
-     * Source code contained in this file line.
-     * 
- * - * string code = 5; - */ - com.google.protobuf.ByteString - getCodeBytes(); - } - /** - *
-   * This represents a file/line location in the source code.
-   * 
- * - * Protobuf type {@code tensorflow.GraphDebugInfo.FileLineCol} - */ - public static final class FileLineCol extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.GraphDebugInfo.FileLineCol) - FileLineColOrBuilder { - private static final long serialVersionUID = 0L; - // Use FileLineCol.newBuilder() to construct. - private FileLineCol(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FileLineCol() { - func_ = ""; - code_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FileLineCol(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FileLineCol( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - fileIndex_ = input.readInt32(); - break; - } - case 16: { - - line_ = input.readInt32(); - break; - } - case 24: { - - col_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - func_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - code_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_FileLineCol_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_FileLineCol_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol.class, org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol.Builder.class); - } - - public static final int FILE_INDEX_FIELD_NUMBER = 1; - private int fileIndex_; - /** - *
-     * File name index, which can be used to retrieve the file name string from
-     * `files`. The value should be between 0 and (len(files)-1)
-     * 
- * - * int32 file_index = 1; - */ - public int getFileIndex() { - return fileIndex_; - } - - public static final int LINE_FIELD_NUMBER = 2; - private int line_; - /** - *
-     * Line number in the file.
-     * 
- * - * int32 line = 2; - */ - public int getLine() { - return line_; - } - - public static final int COL_FIELD_NUMBER = 3; - private int col_; - /** - *
-     * Col number in the file line.
-     * 
- * - * int32 col = 3; - */ - public int getCol() { - return col_; - } - - public static final int FUNC_FIELD_NUMBER = 4; - private volatile java.lang.Object func_; - /** - *
-     * Name of function contains the file line.
-     * 
- * - * string func = 4; - */ - public java.lang.String getFunc() { - java.lang.Object ref = func_; - 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(); - func_ = s; - return s; - } - } - /** - *
-     * Name of function contains the file line.
-     * 
- * - * string func = 4; - */ - public com.google.protobuf.ByteString - getFuncBytes() { - java.lang.Object ref = func_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - func_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CODE_FIELD_NUMBER = 5; - private volatile java.lang.Object code_; - /** - *
-     * Source code contained in this file line.
-     * 
- * - * string code = 5; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - 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(); - code_ = s; - return s; - } - } - /** - *
-     * Source code contained in this file line.
-     * 
- * - * string code = 5; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = 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 (fileIndex_ != 0) { - output.writeInt32(1, fileIndex_); - } - if (line_ != 0) { - output.writeInt32(2, line_); - } - if (col_ != 0) { - output.writeInt32(3, col_); - } - if (!getFuncBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, func_); - } - if (!getCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, code_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (fileIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, fileIndex_); - } - if (line_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, line_); - } - if (col_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, col_); - } - if (!getFuncBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, func_); - } - if (!getCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, code_); - } - 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 org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol other = (org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol) obj; - - if (getFileIndex() - != other.getFileIndex()) return false; - if (getLine() - != other.getLine()) return false; - if (getCol() - != other.getCol()) return false; - if (!getFunc() - .equals(other.getFunc())) return false; - if (!getCode() - .equals(other.getCode())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FILE_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getFileIndex(); - hash = (37 * hash) + LINE_FIELD_NUMBER; - hash = (53 * hash) + getLine(); - hash = (37 * hash) + COL_FIELD_NUMBER; - hash = (53 * hash) + getCol(); - hash = (37 * hash) + FUNC_FIELD_NUMBER; - hash = (53 * hash) + getFunc().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol 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 org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol 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 org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol 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(org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol 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; - } - /** - *
-     * This represents a file/line location in the source code.
-     * 
- * - * Protobuf type {@code tensorflow.GraphDebugInfo.FileLineCol} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.GraphDebugInfo.FileLineCol) - org.tensorflow.proto.framework.GraphDebugInfo.FileLineColOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_FileLineCol_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_FileLineCol_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol.class, org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - fileIndex_ = 0; - - line_ = 0; - - col_ = 0; - - func_ = ""; - - code_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_FileLineCol_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol getDefaultInstanceForType() { - return org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol build() { - org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol buildPartial() { - org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol result = new org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol(this); - result.fileIndex_ = fileIndex_; - result.line_ = line_; - result.col_ = col_; - result.func_ = func_; - result.code_ = code_; - 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 org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol) { - return mergeFrom((org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol other) { - if (other == org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol.getDefaultInstance()) return this; - if (other.getFileIndex() != 0) { - setFileIndex(other.getFileIndex()); - } - if (other.getLine() != 0) { - setLine(other.getLine()); - } - if (other.getCol() != 0) { - setCol(other.getCol()); - } - if (!other.getFunc().isEmpty()) { - func_ = other.func_; - onChanged(); - } - if (!other.getCode().isEmpty()) { - code_ = other.code_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int fileIndex_ ; - /** - *
-       * File name index, which can be used to retrieve the file name string from
-       * `files`. The value should be between 0 and (len(files)-1)
-       * 
- * - * int32 file_index = 1; - */ - public int getFileIndex() { - return fileIndex_; - } - /** - *
-       * File name index, which can be used to retrieve the file name string from
-       * `files`. The value should be between 0 and (len(files)-1)
-       * 
- * - * int32 file_index = 1; - */ - public Builder setFileIndex(int value) { - - fileIndex_ = value; - onChanged(); - return this; - } - /** - *
-       * File name index, which can be used to retrieve the file name string from
-       * `files`. The value should be between 0 and (len(files)-1)
-       * 
- * - * int32 file_index = 1; - */ - public Builder clearFileIndex() { - - fileIndex_ = 0; - onChanged(); - return this; - } - - private int line_ ; - /** - *
-       * Line number in the file.
-       * 
- * - * int32 line = 2; - */ - public int getLine() { - return line_; - } - /** - *
-       * Line number in the file.
-       * 
- * - * int32 line = 2; - */ - public Builder setLine(int value) { - - line_ = value; - onChanged(); - return this; - } - /** - *
-       * Line number in the file.
-       * 
- * - * int32 line = 2; - */ - public Builder clearLine() { - - line_ = 0; - onChanged(); - return this; - } - - private int col_ ; - /** - *
-       * Col number in the file line.
-       * 
- * - * int32 col = 3; - */ - public int getCol() { - return col_; - } - /** - *
-       * Col number in the file line.
-       * 
- * - * int32 col = 3; - */ - public Builder setCol(int value) { - - col_ = value; - onChanged(); - return this; - } - /** - *
-       * Col number in the file line.
-       * 
- * - * int32 col = 3; - */ - public Builder clearCol() { - - col_ = 0; - onChanged(); - return this; - } - - private java.lang.Object func_ = ""; - /** - *
-       * Name of function contains the file line.
-       * 
- * - * string func = 4; - */ - public java.lang.String getFunc() { - java.lang.Object ref = func_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - func_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of function contains the file line.
-       * 
- * - * string func = 4; - */ - public com.google.protobuf.ByteString - getFuncBytes() { - java.lang.Object ref = func_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - func_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of function contains the file line.
-       * 
- * - * string func = 4; - */ - public Builder setFunc( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - func_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of function contains the file line.
-       * 
- * - * string func = 4; - */ - public Builder clearFunc() { - - func_ = getDefaultInstance().getFunc(); - onChanged(); - return this; - } - /** - *
-       * Name of function contains the file line.
-       * 
- * - * string func = 4; - */ - public Builder setFuncBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - func_ = value; - onChanged(); - return this; - } - - private java.lang.Object code_ = ""; - /** - *
-       * Source code contained in this file line.
-       * 
- * - * string code = 5; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Source code contained in this file line.
-       * 
- * - * string code = 5; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Source code contained in this file line.
-       * 
- * - * string code = 5; - */ - public Builder setCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** - *
-       * Source code contained in this file line.
-       * 
- * - * string code = 5; - */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - /** - *
-       * Source code contained in this file line.
-       * 
- * - * string code = 5; - */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - code_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.GraphDebugInfo.FileLineCol) - } - - // @@protoc_insertion_point(class_scope:tensorflow.GraphDebugInfo.FileLineCol) - private static final org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol(); - } - - public static org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FileLineCol parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FileLineCol(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface StackTraceOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.GraphDebugInfo.StackTrace) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Each line in the stack trace.
-     * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - java.util.List - getFileLineColsList(); - /** - *
-     * Each line in the stack trace.
-     * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol getFileLineCols(int index); - /** - *
-     * Each line in the stack trace.
-     * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - int getFileLineColsCount(); - /** - *
-     * Each line in the stack trace.
-     * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - java.util.List - getFileLineColsOrBuilderList(); - /** - *
-     * Each line in the stack trace.
-     * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - org.tensorflow.proto.framework.GraphDebugInfo.FileLineColOrBuilder getFileLineColsOrBuilder( - int index); - } - /** - *
-   * This represents a stack trace which is a ordered list of `FileLineCol`.
-   * 
- * - * Protobuf type {@code tensorflow.GraphDebugInfo.StackTrace} - */ - public static final class StackTrace extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.GraphDebugInfo.StackTrace) - StackTraceOrBuilder { - private static final long serialVersionUID = 0L; - // Use StackTrace.newBuilder() to construct. - private StackTrace(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StackTrace() { - fileLineCols_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StackTrace(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StackTrace( - 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)) { - fileLineCols_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - fileLineCols_.add( - input.readMessage(org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol.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)) { - fileLineCols_ = java.util.Collections.unmodifiableList(fileLineCols_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_StackTrace_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_StackTrace_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphDebugInfo.StackTrace.class, org.tensorflow.proto.framework.GraphDebugInfo.StackTrace.Builder.class); - } - - public static final int FILE_LINE_COLS_FIELD_NUMBER = 1; - private java.util.List fileLineCols_; - /** - *
-     * Each line in the stack trace.
-     * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public java.util.List getFileLineColsList() { - return fileLineCols_; - } - /** - *
-     * Each line in the stack trace.
-     * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public java.util.List - getFileLineColsOrBuilderList() { - return fileLineCols_; - } - /** - *
-     * Each line in the stack trace.
-     * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public int getFileLineColsCount() { - return fileLineCols_.size(); - } - /** - *
-     * Each line in the stack trace.
-     * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol getFileLineCols(int index) { - return fileLineCols_.get(index); - } - /** - *
-     * Each line in the stack trace.
-     * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public org.tensorflow.proto.framework.GraphDebugInfo.FileLineColOrBuilder getFileLineColsOrBuilder( - int index) { - return fileLineCols_.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 < fileLineCols_.size(); i++) { - output.writeMessage(1, fileLineCols_.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 < fileLineCols_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, fileLineCols_.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 org.tensorflow.proto.framework.GraphDebugInfo.StackTrace)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.GraphDebugInfo.StackTrace other = (org.tensorflow.proto.framework.GraphDebugInfo.StackTrace) obj; - - if (!getFileLineColsList() - .equals(other.getFileLineColsList())) 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 (getFileLineColsCount() > 0) { - hash = (37 * hash) + FILE_LINE_COLS_FIELD_NUMBER; - hash = (53 * hash) + getFileLineColsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.GraphDebugInfo.StackTrace parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphDebugInfo.StackTrace parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphDebugInfo.StackTrace parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphDebugInfo.StackTrace parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphDebugInfo.StackTrace parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphDebugInfo.StackTrace parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphDebugInfo.StackTrace parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphDebugInfo.StackTrace 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 org.tensorflow.proto.framework.GraphDebugInfo.StackTrace parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphDebugInfo.StackTrace 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 org.tensorflow.proto.framework.GraphDebugInfo.StackTrace parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphDebugInfo.StackTrace 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(org.tensorflow.proto.framework.GraphDebugInfo.StackTrace 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; - } - /** - *
-     * This represents a stack trace which is a ordered list of `FileLineCol`.
-     * 
- * - * Protobuf type {@code tensorflow.GraphDebugInfo.StackTrace} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.GraphDebugInfo.StackTrace) - org.tensorflow.proto.framework.GraphDebugInfo.StackTraceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_StackTrace_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_StackTrace_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphDebugInfo.StackTrace.class, org.tensorflow.proto.framework.GraphDebugInfo.StackTrace.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.GraphDebugInfo.StackTrace.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getFileLineColsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (fileLineColsBuilder_ == null) { - fileLineCols_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - fileLineColsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_StackTrace_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphDebugInfo.StackTrace getDefaultInstanceForType() { - return org.tensorflow.proto.framework.GraphDebugInfo.StackTrace.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphDebugInfo.StackTrace build() { - org.tensorflow.proto.framework.GraphDebugInfo.StackTrace result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphDebugInfo.StackTrace buildPartial() { - org.tensorflow.proto.framework.GraphDebugInfo.StackTrace result = new org.tensorflow.proto.framework.GraphDebugInfo.StackTrace(this); - int from_bitField0_ = bitField0_; - if (fileLineColsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - fileLineCols_ = java.util.Collections.unmodifiableList(fileLineCols_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.fileLineCols_ = fileLineCols_; - } else { - result.fileLineCols_ = fileLineColsBuilder_.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 org.tensorflow.proto.framework.GraphDebugInfo.StackTrace) { - return mergeFrom((org.tensorflow.proto.framework.GraphDebugInfo.StackTrace)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.GraphDebugInfo.StackTrace other) { - if (other == org.tensorflow.proto.framework.GraphDebugInfo.StackTrace.getDefaultInstance()) return this; - if (fileLineColsBuilder_ == null) { - if (!other.fileLineCols_.isEmpty()) { - if (fileLineCols_.isEmpty()) { - fileLineCols_ = other.fileLineCols_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFileLineColsIsMutable(); - fileLineCols_.addAll(other.fileLineCols_); - } - onChanged(); - } - } else { - if (!other.fileLineCols_.isEmpty()) { - if (fileLineColsBuilder_.isEmpty()) { - fileLineColsBuilder_.dispose(); - fileLineColsBuilder_ = null; - fileLineCols_ = other.fileLineCols_; - bitField0_ = (bitField0_ & ~0x00000001); - fileLineColsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFileLineColsFieldBuilder() : null; - } else { - fileLineColsBuilder_.addAllMessages(other.fileLineCols_); - } - } - } - 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 { - org.tensorflow.proto.framework.GraphDebugInfo.StackTrace parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.GraphDebugInfo.StackTrace) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List fileLineCols_ = - java.util.Collections.emptyList(); - private void ensureFileLineColsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - fileLineCols_ = new java.util.ArrayList(fileLineCols_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol, org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol.Builder, org.tensorflow.proto.framework.GraphDebugInfo.FileLineColOrBuilder> fileLineColsBuilder_; - - /** - *
-       * Each line in the stack trace.
-       * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public java.util.List getFileLineColsList() { - if (fileLineColsBuilder_ == null) { - return java.util.Collections.unmodifiableList(fileLineCols_); - } else { - return fileLineColsBuilder_.getMessageList(); - } - } - /** - *
-       * Each line in the stack trace.
-       * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public int getFileLineColsCount() { - if (fileLineColsBuilder_ == null) { - return fileLineCols_.size(); - } else { - return fileLineColsBuilder_.getCount(); - } - } - /** - *
-       * Each line in the stack trace.
-       * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol getFileLineCols(int index) { - if (fileLineColsBuilder_ == null) { - return fileLineCols_.get(index); - } else { - return fileLineColsBuilder_.getMessage(index); - } - } - /** - *
-       * Each line in the stack trace.
-       * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public Builder setFileLineCols( - int index, org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol value) { - if (fileLineColsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileLineColsIsMutable(); - fileLineCols_.set(index, value); - onChanged(); - } else { - fileLineColsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Each line in the stack trace.
-       * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public Builder setFileLineCols( - int index, org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol.Builder builderForValue) { - if (fileLineColsBuilder_ == null) { - ensureFileLineColsIsMutable(); - fileLineCols_.set(index, builderForValue.build()); - onChanged(); - } else { - fileLineColsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Each line in the stack trace.
-       * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public Builder addFileLineCols(org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol value) { - if (fileLineColsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileLineColsIsMutable(); - fileLineCols_.add(value); - onChanged(); - } else { - fileLineColsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Each line in the stack trace.
-       * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public Builder addFileLineCols( - int index, org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol value) { - if (fileLineColsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileLineColsIsMutable(); - fileLineCols_.add(index, value); - onChanged(); - } else { - fileLineColsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Each line in the stack trace.
-       * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public Builder addFileLineCols( - org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol.Builder builderForValue) { - if (fileLineColsBuilder_ == null) { - ensureFileLineColsIsMutable(); - fileLineCols_.add(builderForValue.build()); - onChanged(); - } else { - fileLineColsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Each line in the stack trace.
-       * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public Builder addFileLineCols( - int index, org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol.Builder builderForValue) { - if (fileLineColsBuilder_ == null) { - ensureFileLineColsIsMutable(); - fileLineCols_.add(index, builderForValue.build()); - onChanged(); - } else { - fileLineColsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Each line in the stack trace.
-       * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public Builder addAllFileLineCols( - java.lang.Iterable values) { - if (fileLineColsBuilder_ == null) { - ensureFileLineColsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fileLineCols_); - onChanged(); - } else { - fileLineColsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Each line in the stack trace.
-       * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public Builder clearFileLineCols() { - if (fileLineColsBuilder_ == null) { - fileLineCols_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - fileLineColsBuilder_.clear(); - } - return this; - } - /** - *
-       * Each line in the stack trace.
-       * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public Builder removeFileLineCols(int index) { - if (fileLineColsBuilder_ == null) { - ensureFileLineColsIsMutable(); - fileLineCols_.remove(index); - onChanged(); - } else { - fileLineColsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Each line in the stack trace.
-       * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol.Builder getFileLineColsBuilder( - int index) { - return getFileLineColsFieldBuilder().getBuilder(index); - } - /** - *
-       * Each line in the stack trace.
-       * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public org.tensorflow.proto.framework.GraphDebugInfo.FileLineColOrBuilder getFileLineColsOrBuilder( - int index) { - if (fileLineColsBuilder_ == null) { - return fileLineCols_.get(index); } else { - return fileLineColsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Each line in the stack trace.
-       * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public java.util.List - getFileLineColsOrBuilderList() { - if (fileLineColsBuilder_ != null) { - return fileLineColsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(fileLineCols_); - } - } - /** - *
-       * Each line in the stack trace.
-       * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol.Builder addFileLineColsBuilder() { - return getFileLineColsFieldBuilder().addBuilder( - org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol.getDefaultInstance()); - } - /** - *
-       * Each line in the stack trace.
-       * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol.Builder addFileLineColsBuilder( - int index) { - return getFileLineColsFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol.getDefaultInstance()); - } - /** - *
-       * Each line in the stack trace.
-       * 
- * - * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; - */ - public java.util.List - getFileLineColsBuilderList() { - return getFileLineColsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol, org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol.Builder, org.tensorflow.proto.framework.GraphDebugInfo.FileLineColOrBuilder> - getFileLineColsFieldBuilder() { - if (fileLineColsBuilder_ == null) { - fileLineColsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol, org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol.Builder, org.tensorflow.proto.framework.GraphDebugInfo.FileLineColOrBuilder>( - fileLineCols_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - fileLineCols_ = null; - } - return fileLineColsBuilder_; - } - @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:tensorflow.GraphDebugInfo.StackTrace) - } - - // @@protoc_insertion_point(class_scope:tensorflow.GraphDebugInfo.StackTrace) - private static final org.tensorflow.proto.framework.GraphDebugInfo.StackTrace DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.GraphDebugInfo.StackTrace(); - } - - public static org.tensorflow.proto.framework.GraphDebugInfo.StackTrace getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StackTrace parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StackTrace(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphDebugInfo.StackTrace getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int FILES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList files_; - /** - *
-   * This stores all the source code file names and can be indexed by the
-   * `file_index`.
-   * 
- * - * repeated string files = 1; - */ - public com.google.protobuf.ProtocolStringList - getFilesList() { - return files_; - } - /** - *
-   * This stores all the source code file names and can be indexed by the
-   * `file_index`.
-   * 
- * - * repeated string files = 1; - */ - public int getFilesCount() { - return files_.size(); - } - /** - *
-   * This stores all the source code file names and can be indexed by the
-   * `file_index`.
-   * 
- * - * repeated string files = 1; - */ - public java.lang.String getFiles(int index) { - return files_.get(index); - } - /** - *
-   * This stores all the source code file names and can be indexed by the
-   * `file_index`.
-   * 
- * - * repeated string files = 1; - */ - public com.google.protobuf.ByteString - getFilesBytes(int index) { - return files_.getByteString(index); - } - - public static final int TRACES_FIELD_NUMBER = 2; - private static final class TracesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, org.tensorflow.proto.framework.GraphDebugInfo.StackTrace> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.tensorflow.proto.framework.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_TracesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.tensorflow.proto.framework.GraphDebugInfo.StackTrace.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.GraphDebugInfo.StackTrace> traces_; - private com.google.protobuf.MapField - internalGetTraces() { - if (traces_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TracesDefaultEntryHolder.defaultEntry); - } - return traces_; - } - - public int getTracesCount() { - return internalGetTraces().getMap().size(); - } - /** - *
-   * This maps a node name to a stack trace in the source code.
-   * The map key is a mangling of the containing function and op name with
-   * syntax:
-   *   op.name '@' func_name
-   * For ops in the top-level graph, the func_name is the empty string.
-   * Note that op names are restricted to a small number of characters which
-   * exclude '@', making it impossible to collide keys of this form. Function
-   * names accept a much wider set of characters.
-   * It would be preferable to avoid mangling and use a tuple key of (op.name,
-   * func_name), but this is not supported with protocol buffers.
-   * 
- * - * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; - */ - - public boolean containsTraces( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetTraces().getMap().containsKey(key); - } - /** - * Use {@link #getTracesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getTraces() { - return getTracesMap(); - } - /** - *
-   * This maps a node name to a stack trace in the source code.
-   * The map key is a mangling of the containing function and op name with
-   * syntax:
-   *   op.name '@' func_name
-   * For ops in the top-level graph, the func_name is the empty string.
-   * Note that op names are restricted to a small number of characters which
-   * exclude '@', making it impossible to collide keys of this form. Function
-   * names accept a much wider set of characters.
-   * It would be preferable to avoid mangling and use a tuple key of (op.name,
-   * func_name), but this is not supported with protocol buffers.
-   * 
- * - * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; - */ - - public java.util.Map getTracesMap() { - return internalGetTraces().getMap(); - } - /** - *
-   * This maps a node name to a stack trace in the source code.
-   * The map key is a mangling of the containing function and op name with
-   * syntax:
-   *   op.name '@' func_name
-   * For ops in the top-level graph, the func_name is the empty string.
-   * Note that op names are restricted to a small number of characters which
-   * exclude '@', making it impossible to collide keys of this form. Function
-   * names accept a much wider set of characters.
-   * It would be preferable to avoid mangling and use a tuple key of (op.name,
-   * func_name), but this is not supported with protocol buffers.
-   * 
- * - * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; - */ - - public org.tensorflow.proto.framework.GraphDebugInfo.StackTrace getTracesOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.GraphDebugInfo.StackTrace defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTraces().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-   * This maps a node name to a stack trace in the source code.
-   * The map key is a mangling of the containing function and op name with
-   * syntax:
-   *   op.name '@' func_name
-   * For ops in the top-level graph, the func_name is the empty string.
-   * Note that op names are restricted to a small number of characters which
-   * exclude '@', making it impossible to collide keys of this form. Function
-   * names accept a much wider set of characters.
-   * It would be preferable to avoid mangling and use a tuple key of (op.name,
-   * func_name), but this is not supported with protocol buffers.
-   * 
- * - * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; - */ - - public org.tensorflow.proto.framework.GraphDebugInfo.StackTrace getTracesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTraces().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 { - for (int i = 0; i < files_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, files_.getRaw(i)); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetTraces(), - TracesDefaultEntryHolder.defaultEntry, - 2); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < files_.size(); i++) { - dataSize += computeStringSizeNoTag(files_.getRaw(i)); - } - size += dataSize; - size += 1 * getFilesList().size(); - } - for (java.util.Map.Entry entry - : internalGetTraces().getMap().entrySet()) { - com.google.protobuf.MapEntry - traces__ = TracesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, traces__); - } - 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 org.tensorflow.proto.framework.GraphDebugInfo)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.GraphDebugInfo other = (org.tensorflow.proto.framework.GraphDebugInfo) obj; - - if (!getFilesList() - .equals(other.getFilesList())) return false; - if (!internalGetTraces().equals( - other.internalGetTraces())) 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 (getFilesCount() > 0) { - hash = (37 * hash) + FILES_FIELD_NUMBER; - hash = (53 * hash) + getFilesList().hashCode(); - } - if (!internalGetTraces().getMap().isEmpty()) { - hash = (37 * hash) + TRACES_FIELD_NUMBER; - hash = (53 * hash) + internalGetTraces().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.GraphDebugInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphDebugInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphDebugInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphDebugInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphDebugInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphDebugInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphDebugInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphDebugInfo 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 org.tensorflow.proto.framework.GraphDebugInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphDebugInfo 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 org.tensorflow.proto.framework.GraphDebugInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphDebugInfo 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(org.tensorflow.proto.framework.GraphDebugInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.GraphDebugInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.GraphDebugInfo) - org.tensorflow.proto.framework.GraphDebugInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetTraces(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableTraces(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphDebugInfo.class, org.tensorflow.proto.framework.GraphDebugInfo.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.GraphDebugInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - files_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableTraces().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphDebugInfo getDefaultInstanceForType() { - return org.tensorflow.proto.framework.GraphDebugInfo.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphDebugInfo build() { - org.tensorflow.proto.framework.GraphDebugInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphDebugInfo buildPartial() { - org.tensorflow.proto.framework.GraphDebugInfo result = new org.tensorflow.proto.framework.GraphDebugInfo(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - files_ = files_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.files_ = files_; - result.traces_ = internalGetTraces(); - result.traces_.makeImmutable(); - 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 org.tensorflow.proto.framework.GraphDebugInfo) { - return mergeFrom((org.tensorflow.proto.framework.GraphDebugInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.GraphDebugInfo other) { - if (other == org.tensorflow.proto.framework.GraphDebugInfo.getDefaultInstance()) return this; - if (!other.files_.isEmpty()) { - if (files_.isEmpty()) { - files_ = other.files_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFilesIsMutable(); - files_.addAll(other.files_); - } - onChanged(); - } - internalGetMutableTraces().mergeFrom( - other.internalGetTraces()); - 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 { - org.tensorflow.proto.framework.GraphDebugInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.GraphDebugInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList files_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureFilesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - files_ = new com.google.protobuf.LazyStringArrayList(files_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * This stores all the source code file names and can be indexed by the
-     * `file_index`.
-     * 
- * - * repeated string files = 1; - */ - public com.google.protobuf.ProtocolStringList - getFilesList() { - return files_.getUnmodifiableView(); - } - /** - *
-     * This stores all the source code file names and can be indexed by the
-     * `file_index`.
-     * 
- * - * repeated string files = 1; - */ - public int getFilesCount() { - return files_.size(); - } - /** - *
-     * This stores all the source code file names and can be indexed by the
-     * `file_index`.
-     * 
- * - * repeated string files = 1; - */ - public java.lang.String getFiles(int index) { - return files_.get(index); - } - /** - *
-     * This stores all the source code file names and can be indexed by the
-     * `file_index`.
-     * 
- * - * repeated string files = 1; - */ - public com.google.protobuf.ByteString - getFilesBytes(int index) { - return files_.getByteString(index); - } - /** - *
-     * This stores all the source code file names and can be indexed by the
-     * `file_index`.
-     * 
- * - * repeated string files = 1; - */ - public Builder setFiles( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilesIsMutable(); - files_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * This stores all the source code file names and can be indexed by the
-     * `file_index`.
-     * 
- * - * repeated string files = 1; - */ - public Builder addFiles( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilesIsMutable(); - files_.add(value); - onChanged(); - return this; - } - /** - *
-     * This stores all the source code file names and can be indexed by the
-     * `file_index`.
-     * 
- * - * repeated string files = 1; - */ - public Builder addAllFiles( - java.lang.Iterable values) { - ensureFilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, files_); - onChanged(); - return this; - } - /** - *
-     * This stores all the source code file names and can be indexed by the
-     * `file_index`.
-     * 
- * - * repeated string files = 1; - */ - public Builder clearFiles() { - files_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * This stores all the source code file names and can be indexed by the
-     * `file_index`.
-     * 
- * - * repeated string files = 1; - */ - public Builder addFilesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureFilesIsMutable(); - files_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.GraphDebugInfo.StackTrace> traces_; - private com.google.protobuf.MapField - internalGetTraces() { - if (traces_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TracesDefaultEntryHolder.defaultEntry); - } - return traces_; - } - private com.google.protobuf.MapField - internalGetMutableTraces() { - onChanged();; - if (traces_ == null) { - traces_ = com.google.protobuf.MapField.newMapField( - TracesDefaultEntryHolder.defaultEntry); - } - if (!traces_.isMutable()) { - traces_ = traces_.copy(); - } - return traces_; - } - - public int getTracesCount() { - return internalGetTraces().getMap().size(); - } - /** - *
-     * This maps a node name to a stack trace in the source code.
-     * The map key is a mangling of the containing function and op name with
-     * syntax:
-     *   op.name '@' func_name
-     * For ops in the top-level graph, the func_name is the empty string.
-     * Note that op names are restricted to a small number of characters which
-     * exclude '@', making it impossible to collide keys of this form. Function
-     * names accept a much wider set of characters.
-     * It would be preferable to avoid mangling and use a tuple key of (op.name,
-     * func_name), but this is not supported with protocol buffers.
-     * 
- * - * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; - */ - - public boolean containsTraces( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetTraces().getMap().containsKey(key); - } - /** - * Use {@link #getTracesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getTraces() { - return getTracesMap(); - } - /** - *
-     * This maps a node name to a stack trace in the source code.
-     * The map key is a mangling of the containing function and op name with
-     * syntax:
-     *   op.name '@' func_name
-     * For ops in the top-level graph, the func_name is the empty string.
-     * Note that op names are restricted to a small number of characters which
-     * exclude '@', making it impossible to collide keys of this form. Function
-     * names accept a much wider set of characters.
-     * It would be preferable to avoid mangling and use a tuple key of (op.name,
-     * func_name), but this is not supported with protocol buffers.
-     * 
- * - * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; - */ - - public java.util.Map getTracesMap() { - return internalGetTraces().getMap(); - } - /** - *
-     * This maps a node name to a stack trace in the source code.
-     * The map key is a mangling of the containing function and op name with
-     * syntax:
-     *   op.name '@' func_name
-     * For ops in the top-level graph, the func_name is the empty string.
-     * Note that op names are restricted to a small number of characters which
-     * exclude '@', making it impossible to collide keys of this form. Function
-     * names accept a much wider set of characters.
-     * It would be preferable to avoid mangling and use a tuple key of (op.name,
-     * func_name), but this is not supported with protocol buffers.
-     * 
- * - * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; - */ - - public org.tensorflow.proto.framework.GraphDebugInfo.StackTrace getTracesOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.GraphDebugInfo.StackTrace defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTraces().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * This maps a node name to a stack trace in the source code.
-     * The map key is a mangling of the containing function and op name with
-     * syntax:
-     *   op.name '@' func_name
-     * For ops in the top-level graph, the func_name is the empty string.
-     * Note that op names are restricted to a small number of characters which
-     * exclude '@', making it impossible to collide keys of this form. Function
-     * names accept a much wider set of characters.
-     * It would be preferable to avoid mangling and use a tuple key of (op.name,
-     * func_name), but this is not supported with protocol buffers.
-     * 
- * - * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; - */ - - public org.tensorflow.proto.framework.GraphDebugInfo.StackTrace getTracesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTraces().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearTraces() { - internalGetMutableTraces().getMutableMap() - .clear(); - return this; - } - /** - *
-     * This maps a node name to a stack trace in the source code.
-     * The map key is a mangling of the containing function and op name with
-     * syntax:
-     *   op.name '@' func_name
-     * For ops in the top-level graph, the func_name is the empty string.
-     * Note that op names are restricted to a small number of characters which
-     * exclude '@', making it impossible to collide keys of this form. Function
-     * names accept a much wider set of characters.
-     * It would be preferable to avoid mangling and use a tuple key of (op.name,
-     * func_name), but this is not supported with protocol buffers.
-     * 
- * - * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; - */ - - public Builder removeTraces( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableTraces().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableTraces() { - return internalGetMutableTraces().getMutableMap(); - } - /** - *
-     * This maps a node name to a stack trace in the source code.
-     * The map key is a mangling of the containing function and op name with
-     * syntax:
-     *   op.name '@' func_name
-     * For ops in the top-level graph, the func_name is the empty string.
-     * Note that op names are restricted to a small number of characters which
-     * exclude '@', making it impossible to collide keys of this form. Function
-     * names accept a much wider set of characters.
-     * It would be preferable to avoid mangling and use a tuple key of (op.name,
-     * func_name), but this is not supported with protocol buffers.
-     * 
- * - * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; - */ - public Builder putTraces( - java.lang.String key, - org.tensorflow.proto.framework.GraphDebugInfo.StackTrace value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableTraces().getMutableMap() - .put(key, value); - return this; - } - /** - *
-     * This maps a node name to a stack trace in the source code.
-     * The map key is a mangling of the containing function and op name with
-     * syntax:
-     *   op.name '@' func_name
-     * For ops in the top-level graph, the func_name is the empty string.
-     * Note that op names are restricted to a small number of characters which
-     * exclude '@', making it impossible to collide keys of this form. Function
-     * names accept a much wider set of characters.
-     * It would be preferable to avoid mangling and use a tuple key of (op.name,
-     * func_name), but this is not supported with protocol buffers.
-     * 
- * - * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; - */ - - public Builder putAllTraces( - java.util.Map values) { - internalGetMutableTraces().getMutableMap() - .putAll(values); - 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:tensorflow.GraphDebugInfo) - } - - // @@protoc_insertion_point(class_scope:tensorflow.GraphDebugInfo) - private static final org.tensorflow.proto.framework.GraphDebugInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.GraphDebugInfo(); - } - - public static org.tensorflow.proto.framework.GraphDebugInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GraphDebugInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GraphDebugInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphDebugInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphDebugInfoOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphDebugInfoOrBuilder.java deleted file mode 100644 index 86c48de7b70..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphDebugInfoOrBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/graph_debug_info.proto - -package org.tensorflow.proto.framework; - -public interface GraphDebugInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.GraphDebugInfo) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * This stores all the source code file names and can be indexed by the
-   * `file_index`.
-   * 
- * - * repeated string files = 1; - */ - java.util.List - getFilesList(); - /** - *
-   * This stores all the source code file names and can be indexed by the
-   * `file_index`.
-   * 
- * - * repeated string files = 1; - */ - int getFilesCount(); - /** - *
-   * This stores all the source code file names and can be indexed by the
-   * `file_index`.
-   * 
- * - * repeated string files = 1; - */ - java.lang.String getFiles(int index); - /** - *
-   * This stores all the source code file names and can be indexed by the
-   * `file_index`.
-   * 
- * - * repeated string files = 1; - */ - com.google.protobuf.ByteString - getFilesBytes(int index); - - /** - *
-   * This maps a node name to a stack trace in the source code.
-   * The map key is a mangling of the containing function and op name with
-   * syntax:
-   *   op.name '@' func_name
-   * For ops in the top-level graph, the func_name is the empty string.
-   * Note that op names are restricted to a small number of characters which
-   * exclude '@', making it impossible to collide keys of this form. Function
-   * names accept a much wider set of characters.
-   * It would be preferable to avoid mangling and use a tuple key of (op.name,
-   * func_name), but this is not supported with protocol buffers.
-   * 
- * - * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; - */ - int getTracesCount(); - /** - *
-   * This maps a node name to a stack trace in the source code.
-   * The map key is a mangling of the containing function and op name with
-   * syntax:
-   *   op.name '@' func_name
-   * For ops in the top-level graph, the func_name is the empty string.
-   * Note that op names are restricted to a small number of characters which
-   * exclude '@', making it impossible to collide keys of this form. Function
-   * names accept a much wider set of characters.
-   * It would be preferable to avoid mangling and use a tuple key of (op.name,
-   * func_name), but this is not supported with protocol buffers.
-   * 
- * - * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; - */ - boolean containsTraces( - java.lang.String key); - /** - * Use {@link #getTracesMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getTraces(); - /** - *
-   * This maps a node name to a stack trace in the source code.
-   * The map key is a mangling of the containing function and op name with
-   * syntax:
-   *   op.name '@' func_name
-   * For ops in the top-level graph, the func_name is the empty string.
-   * Note that op names are restricted to a small number of characters which
-   * exclude '@', making it impossible to collide keys of this form. Function
-   * names accept a much wider set of characters.
-   * It would be preferable to avoid mangling and use a tuple key of (op.name,
-   * func_name), but this is not supported with protocol buffers.
-   * 
- * - * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; - */ - java.util.Map - getTracesMap(); - /** - *
-   * This maps a node name to a stack trace in the source code.
-   * The map key is a mangling of the containing function and op name with
-   * syntax:
-   *   op.name '@' func_name
-   * For ops in the top-level graph, the func_name is the empty string.
-   * Note that op names are restricted to a small number of characters which
-   * exclude '@', making it impossible to collide keys of this form. Function
-   * names accept a much wider set of characters.
-   * It would be preferable to avoid mangling and use a tuple key of (op.name,
-   * func_name), but this is not supported with protocol buffers.
-   * 
- * - * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; - */ - - org.tensorflow.proto.framework.GraphDebugInfo.StackTrace getTracesOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.GraphDebugInfo.StackTrace defaultValue); - /** - *
-   * This maps a node name to a stack trace in the source code.
-   * The map key is a mangling of the containing function and op name with
-   * syntax:
-   *   op.name '@' func_name
-   * For ops in the top-level graph, the func_name is the empty string.
-   * Note that op names are restricted to a small number of characters which
-   * exclude '@', making it impossible to collide keys of this form. Function
-   * names accept a much wider set of characters.
-   * It would be preferable to avoid mangling and use a tuple key of (op.name,
-   * func_name), but this is not supported with protocol buffers.
-   * 
- * - * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; - */ - - org.tensorflow.proto.framework.GraphDebugInfo.StackTrace getTracesOrThrow( - java.lang.String key); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphDebugInfoProtos.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphDebugInfoProtos.java deleted file mode 100644 index 109ab5e8322..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphDebugInfoProtos.java +++ /dev/null @@ -1,93 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/graph_debug_info.proto - -package org.tensorflow.proto.framework; - -public final class GraphDebugInfoProtos { - private GraphDebugInfoProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_GraphDebugInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_GraphDebugInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_GraphDebugInfo_FileLineCol_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_GraphDebugInfo_FileLineCol_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_GraphDebugInfo_StackTrace_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_GraphDebugInfo_StackTrace_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_GraphDebugInfo_TracesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_GraphDebugInfo_TracesEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n/tensorflow/core/protobuf/graph_debug_i" + - "nfo.proto\022\ntensorflow\"\325\002\n\016GraphDebugInfo" + - "\022\r\n\005files\030\001 \003(\t\0226\n\006traces\030\002 \003(\0132&.tensor" + - "flow.GraphDebugInfo.TracesEntry\032X\n\013FileL" + - "ineCol\022\022\n\nfile_index\030\001 \001(\005\022\014\n\004line\030\002 \001(\005" + - "\022\013\n\003col\030\003 \001(\005\022\014\n\004func\030\004 \001(\t\022\014\n\004code\030\005 \001(" + - "\t\032L\n\nStackTrace\022>\n\016file_line_cols\030\001 \003(\0132" + - "&.tensorflow.GraphDebugInfo.FileLineCol\032" + - "T\n\013TracesEntry\022\013\n\003key\030\001 \001(\t\0224\n\005value\030\002 \001" + - "(\0132%.tensorflow.GraphDebugInfo.StackTrac" + - "e:\0028\001B\222\001\n\036org.tensorflow.proto.framework" + - "B\024GraphDebugInfoProtosP\001ZUgithub.com/ten" + - "sorflow/tensorflow/tensorflow/go/core/pr" + - "otobuf/for_core_protos_go_proto\370\001\001b\006prot" + - "o3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_tensorflow_GraphDebugInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tensorflow_GraphDebugInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_GraphDebugInfo_descriptor, - new java.lang.String[] { "Files", "Traces", }); - internal_static_tensorflow_GraphDebugInfo_FileLineCol_descriptor = - internal_static_tensorflow_GraphDebugInfo_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_GraphDebugInfo_FileLineCol_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_GraphDebugInfo_FileLineCol_descriptor, - new java.lang.String[] { "FileIndex", "Line", "Col", "Func", "Code", }); - internal_static_tensorflow_GraphDebugInfo_StackTrace_descriptor = - internal_static_tensorflow_GraphDebugInfo_descriptor.getNestedTypes().get(1); - internal_static_tensorflow_GraphDebugInfo_StackTrace_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_GraphDebugInfo_StackTrace_descriptor, - new java.lang.String[] { "FileLineCols", }); - internal_static_tensorflow_GraphDebugInfo_TracesEntry_descriptor = - internal_static_tensorflow_GraphDebugInfo_descriptor.getNestedTypes().get(2); - internal_static_tensorflow_GraphDebugInfo_TracesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_GraphDebugInfo_TracesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphDef.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphDef.java deleted file mode 100644 index 0d67353ab03..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphDef.java +++ /dev/null @@ -1,1576 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/graph.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Represents the graph of operations
- * 
- * - * Protobuf type {@code tensorflow.GraphDef} - */ -public final class GraphDef extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.GraphDef) - GraphDefOrBuilder { -private static final long serialVersionUID = 0L; - // Use GraphDef.newBuilder() to construct. - private GraphDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GraphDef() { - node_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GraphDef(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GraphDef( - 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)) { - node_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - node_.add( - input.readMessage(org.tensorflow.proto.framework.NodeDef.parser(), extensionRegistry)); - break; - } - case 18: { - org.tensorflow.proto.framework.FunctionDefLibrary.Builder subBuilder = null; - if (library_ != null) { - subBuilder = library_.toBuilder(); - } - library_ = input.readMessage(org.tensorflow.proto.framework.FunctionDefLibrary.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(library_); - library_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - version_ = input.readInt32(); - break; - } - case 34: { - org.tensorflow.proto.framework.VersionDef.Builder subBuilder = null; - if (versions_ != null) { - subBuilder = versions_.toBuilder(); - } - versions_ = input.readMessage(org.tensorflow.proto.framework.VersionDef.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(versions_); - versions_ = subBuilder.buildPartial(); - } - - 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)) { - node_ = java.util.Collections.unmodifiableList(node_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphProtos.internal_static_tensorflow_GraphDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphProtos.internal_static_tensorflow_GraphDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphDef.class, org.tensorflow.proto.framework.GraphDef.Builder.class); - } - - public static final int NODE_FIELD_NUMBER = 1; - private java.util.List node_; - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public java.util.List getNodeList() { - return node_; - } - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public java.util.List - getNodeOrBuilderList() { - return node_; - } - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public int getNodeCount() { - return node_.size(); - } - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public org.tensorflow.proto.framework.NodeDef getNode(int index) { - return node_.get(index); - } - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public org.tensorflow.proto.framework.NodeDefOrBuilder getNodeOrBuilder( - int index) { - return node_.get(index); - } - - public static final int VERSIONS_FIELD_NUMBER = 4; - private org.tensorflow.proto.framework.VersionDef versions_; - /** - *
-   * Compatibility versions of the graph.  See core/public/version.h for version
-   * history.  The GraphDef version is distinct from the TensorFlow version, and
-   * each release of TensorFlow will support a range of GraphDef versions.
-   * 
- * - * .tensorflow.VersionDef versions = 4; - */ - public boolean hasVersions() { - return versions_ != null; - } - /** - *
-   * Compatibility versions of the graph.  See core/public/version.h for version
-   * history.  The GraphDef version is distinct from the TensorFlow version, and
-   * each release of TensorFlow will support a range of GraphDef versions.
-   * 
- * - * .tensorflow.VersionDef versions = 4; - */ - public org.tensorflow.proto.framework.VersionDef getVersions() { - return versions_ == null ? org.tensorflow.proto.framework.VersionDef.getDefaultInstance() : versions_; - } - /** - *
-   * Compatibility versions of the graph.  See core/public/version.h for version
-   * history.  The GraphDef version is distinct from the TensorFlow version, and
-   * each release of TensorFlow will support a range of GraphDef versions.
-   * 
- * - * .tensorflow.VersionDef versions = 4; - */ - public org.tensorflow.proto.framework.VersionDefOrBuilder getVersionsOrBuilder() { - return getVersions(); - } - - public static final int VERSION_FIELD_NUMBER = 3; - private int version_; - /** - *
-   * Deprecated single version field; use versions above instead.  Since all
-   * GraphDef changes before "versions" was introduced were forward
-   * compatible, this field is entirely ignored.
-   * 
- * - * int32 version = 3 [deprecated = true]; - */ - @java.lang.Deprecated public int getVersion() { - return version_; - } - - public static final int LIBRARY_FIELD_NUMBER = 2; - private org.tensorflow.proto.framework.FunctionDefLibrary library_; - /** - *
-   * "library" provides user-defined functions.
-   * Naming:
-   *   * library.function.name are in a flat namespace.
-   *     NOTE: We may need to change it to be hierarchical to support
-   *     different orgs. E.g.,
-   *     { "/google/nn", { ... }},
-   *     { "/google/vision", { ... }}
-   *     { "/org_foo/module_bar", { ... }}
-   *     map<string, FunctionDefLib> named_lib;
-   *   * If node[i].op is the name of one function in "library",
-   *     node[i] is deemed as a function call. Otherwise, node[i].op
-   *     must be a primitive operation supported by the runtime.
-   * Function call semantics:
-   *   * The callee may start execution as soon as some of its inputs
-   *     are ready. The caller may want to use Tuple() mechanism to
-   *     ensure all inputs are ready in the same time.
-   *   * The consumer of return values may start executing as soon as
-   *     the return values the consumer depends on are ready.  The
-   *     consumer may want to use Tuple() mechanism to ensure the
-   *     consumer does not start until all return values of the callee
-   *     function are ready.
-   * 
- * - * .tensorflow.FunctionDefLibrary library = 2; - */ - public boolean hasLibrary() { - return library_ != null; - } - /** - *
-   * "library" provides user-defined functions.
-   * Naming:
-   *   * library.function.name are in a flat namespace.
-   *     NOTE: We may need to change it to be hierarchical to support
-   *     different orgs. E.g.,
-   *     { "/google/nn", { ... }},
-   *     { "/google/vision", { ... }}
-   *     { "/org_foo/module_bar", { ... }}
-   *     map<string, FunctionDefLib> named_lib;
-   *   * If node[i].op is the name of one function in "library",
-   *     node[i] is deemed as a function call. Otherwise, node[i].op
-   *     must be a primitive operation supported by the runtime.
-   * Function call semantics:
-   *   * The callee may start execution as soon as some of its inputs
-   *     are ready. The caller may want to use Tuple() mechanism to
-   *     ensure all inputs are ready in the same time.
-   *   * The consumer of return values may start executing as soon as
-   *     the return values the consumer depends on are ready.  The
-   *     consumer may want to use Tuple() mechanism to ensure the
-   *     consumer does not start until all return values of the callee
-   *     function are ready.
-   * 
- * - * .tensorflow.FunctionDefLibrary library = 2; - */ - public org.tensorflow.proto.framework.FunctionDefLibrary getLibrary() { - return library_ == null ? org.tensorflow.proto.framework.FunctionDefLibrary.getDefaultInstance() : library_; - } - /** - *
-   * "library" provides user-defined functions.
-   * Naming:
-   *   * library.function.name are in a flat namespace.
-   *     NOTE: We may need to change it to be hierarchical to support
-   *     different orgs. E.g.,
-   *     { "/google/nn", { ... }},
-   *     { "/google/vision", { ... }}
-   *     { "/org_foo/module_bar", { ... }}
-   *     map<string, FunctionDefLib> named_lib;
-   *   * If node[i].op is the name of one function in "library",
-   *     node[i] is deemed as a function call. Otherwise, node[i].op
-   *     must be a primitive operation supported by the runtime.
-   * Function call semantics:
-   *   * The callee may start execution as soon as some of its inputs
-   *     are ready. The caller may want to use Tuple() mechanism to
-   *     ensure all inputs are ready in the same time.
-   *   * The consumer of return values may start executing as soon as
-   *     the return values the consumer depends on are ready.  The
-   *     consumer may want to use Tuple() mechanism to ensure the
-   *     consumer does not start until all return values of the callee
-   *     function are ready.
-   * 
- * - * .tensorflow.FunctionDefLibrary library = 2; - */ - public org.tensorflow.proto.framework.FunctionDefLibraryOrBuilder getLibraryOrBuilder() { - return getLibrary(); - } - - 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 < node_.size(); i++) { - output.writeMessage(1, node_.get(i)); - } - if (library_ != null) { - output.writeMessage(2, getLibrary()); - } - if (version_ != 0) { - output.writeInt32(3, version_); - } - if (versions_ != null) { - output.writeMessage(4, getVersions()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < node_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, node_.get(i)); - } - if (library_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLibrary()); - } - if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, version_); - } - if (versions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getVersions()); - } - 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 org.tensorflow.proto.framework.GraphDef)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.GraphDef other = (org.tensorflow.proto.framework.GraphDef) obj; - - if (!getNodeList() - .equals(other.getNodeList())) return false; - if (hasVersions() != other.hasVersions()) return false; - if (hasVersions()) { - if (!getVersions() - .equals(other.getVersions())) return false; - } - if (getVersion() - != other.getVersion()) return false; - if (hasLibrary() != other.hasLibrary()) return false; - if (hasLibrary()) { - if (!getLibrary() - .equals(other.getLibrary())) 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 (getNodeCount() > 0) { - hash = (37 * hash) + NODE_FIELD_NUMBER; - hash = (53 * hash) + getNodeList().hashCode(); - } - if (hasVersions()) { - hash = (37 * hash) + VERSIONS_FIELD_NUMBER; - hash = (53 * hash) + getVersions().hashCode(); - } - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - if (hasLibrary()) { - hash = (37 * hash) + LIBRARY_FIELD_NUMBER; - hash = (53 * hash) + getLibrary().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.GraphDef parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphDef parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphDef parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphDef parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphDef parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphDef parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphDef parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphDef 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 org.tensorflow.proto.framework.GraphDef parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphDef 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 org.tensorflow.proto.framework.GraphDef parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphDef 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(org.tensorflow.proto.framework.GraphDef 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; - } - /** - *
-   * Represents the graph of operations
-   * 
- * - * Protobuf type {@code tensorflow.GraphDef} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.GraphDef) - org.tensorflow.proto.framework.GraphDefOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphProtos.internal_static_tensorflow_GraphDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphProtos.internal_static_tensorflow_GraphDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphDef.class, org.tensorflow.proto.framework.GraphDef.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.GraphDef.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNodeFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (nodeBuilder_ == null) { - node_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - nodeBuilder_.clear(); - } - if (versionsBuilder_ == null) { - versions_ = null; - } else { - versions_ = null; - versionsBuilder_ = null; - } - version_ = 0; - - if (libraryBuilder_ == null) { - library_ = null; - } else { - library_ = null; - libraryBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.GraphProtos.internal_static_tensorflow_GraphDef_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphDef getDefaultInstanceForType() { - return org.tensorflow.proto.framework.GraphDef.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphDef build() { - org.tensorflow.proto.framework.GraphDef result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphDef buildPartial() { - org.tensorflow.proto.framework.GraphDef result = new org.tensorflow.proto.framework.GraphDef(this); - int from_bitField0_ = bitField0_; - if (nodeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - node_ = java.util.Collections.unmodifiableList(node_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.node_ = node_; - } else { - result.node_ = nodeBuilder_.build(); - } - if (versionsBuilder_ == null) { - result.versions_ = versions_; - } else { - result.versions_ = versionsBuilder_.build(); - } - result.version_ = version_; - if (libraryBuilder_ == null) { - result.library_ = library_; - } else { - result.library_ = libraryBuilder_.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 org.tensorflow.proto.framework.GraphDef) { - return mergeFrom((org.tensorflow.proto.framework.GraphDef)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.GraphDef other) { - if (other == org.tensorflow.proto.framework.GraphDef.getDefaultInstance()) return this; - if (nodeBuilder_ == null) { - if (!other.node_.isEmpty()) { - if (node_.isEmpty()) { - node_ = other.node_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodeIsMutable(); - node_.addAll(other.node_); - } - onChanged(); - } - } else { - if (!other.node_.isEmpty()) { - if (nodeBuilder_.isEmpty()) { - nodeBuilder_.dispose(); - nodeBuilder_ = null; - node_ = other.node_; - bitField0_ = (bitField0_ & ~0x00000001); - nodeBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodeFieldBuilder() : null; - } else { - nodeBuilder_.addAllMessages(other.node_); - } - } - } - if (other.hasVersions()) { - mergeVersions(other.getVersions()); - } - if (other.getVersion() != 0) { - setVersion(other.getVersion()); - } - if (other.hasLibrary()) { - mergeLibrary(other.getLibrary()); - } - 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 { - org.tensorflow.proto.framework.GraphDef parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.GraphDef) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List node_ = - java.util.Collections.emptyList(); - private void ensureNodeIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - node_ = new java.util.ArrayList(node_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.NodeDef, org.tensorflow.proto.framework.NodeDef.Builder, org.tensorflow.proto.framework.NodeDefOrBuilder> nodeBuilder_; - - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public java.util.List getNodeList() { - if (nodeBuilder_ == null) { - return java.util.Collections.unmodifiableList(node_); - } else { - return nodeBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public int getNodeCount() { - if (nodeBuilder_ == null) { - return node_.size(); - } else { - return nodeBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public org.tensorflow.proto.framework.NodeDef getNode(int index) { - if (nodeBuilder_ == null) { - return node_.get(index); - } else { - return nodeBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public Builder setNode( - int index, org.tensorflow.proto.framework.NodeDef value) { - if (nodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeIsMutable(); - node_.set(index, value); - onChanged(); - } else { - nodeBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public Builder setNode( - int index, org.tensorflow.proto.framework.NodeDef.Builder builderForValue) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.set(index, builderForValue.build()); - onChanged(); - } else { - nodeBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public Builder addNode(org.tensorflow.proto.framework.NodeDef value) { - if (nodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeIsMutable(); - node_.add(value); - onChanged(); - } else { - nodeBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public Builder addNode( - int index, org.tensorflow.proto.framework.NodeDef value) { - if (nodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeIsMutable(); - node_.add(index, value); - onChanged(); - } else { - nodeBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public Builder addNode( - org.tensorflow.proto.framework.NodeDef.Builder builderForValue) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.add(builderForValue.build()); - onChanged(); - } else { - nodeBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public Builder addNode( - int index, org.tensorflow.proto.framework.NodeDef.Builder builderForValue) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.add(index, builderForValue.build()); - onChanged(); - } else { - nodeBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public Builder addAllNode( - java.lang.Iterable values) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, node_); - onChanged(); - } else { - nodeBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public Builder clearNode() { - if (nodeBuilder_ == null) { - node_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodeBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public Builder removeNode(int index) { - if (nodeBuilder_ == null) { - ensureNodeIsMutable(); - node_.remove(index); - onChanged(); - } else { - nodeBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public org.tensorflow.proto.framework.NodeDef.Builder getNodeBuilder( - int index) { - return getNodeFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public org.tensorflow.proto.framework.NodeDefOrBuilder getNodeOrBuilder( - int index) { - if (nodeBuilder_ == null) { - return node_.get(index); } else { - return nodeBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public java.util.List - getNodeOrBuilderList() { - if (nodeBuilder_ != null) { - return nodeBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(node_); - } - } - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public org.tensorflow.proto.framework.NodeDef.Builder addNodeBuilder() { - return getNodeFieldBuilder().addBuilder( - org.tensorflow.proto.framework.NodeDef.getDefaultInstance()); - } - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public org.tensorflow.proto.framework.NodeDef.Builder addNodeBuilder( - int index) { - return getNodeFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.NodeDef.getDefaultInstance()); - } - /** - * repeated .tensorflow.NodeDef node = 1; - */ - public java.util.List - getNodeBuilderList() { - return getNodeFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.NodeDef, org.tensorflow.proto.framework.NodeDef.Builder, org.tensorflow.proto.framework.NodeDefOrBuilder> - getNodeFieldBuilder() { - if (nodeBuilder_ == null) { - nodeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.NodeDef, org.tensorflow.proto.framework.NodeDef.Builder, org.tensorflow.proto.framework.NodeDefOrBuilder>( - node_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - node_ = null; - } - return nodeBuilder_; - } - - private org.tensorflow.proto.framework.VersionDef versions_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.VersionDef, org.tensorflow.proto.framework.VersionDef.Builder, org.tensorflow.proto.framework.VersionDefOrBuilder> versionsBuilder_; - /** - *
-     * Compatibility versions of the graph.  See core/public/version.h for version
-     * history.  The GraphDef version is distinct from the TensorFlow version, and
-     * each release of TensorFlow will support a range of GraphDef versions.
-     * 
- * - * .tensorflow.VersionDef versions = 4; - */ - public boolean hasVersions() { - return versionsBuilder_ != null || versions_ != null; - } - /** - *
-     * Compatibility versions of the graph.  See core/public/version.h for version
-     * history.  The GraphDef version is distinct from the TensorFlow version, and
-     * each release of TensorFlow will support a range of GraphDef versions.
-     * 
- * - * .tensorflow.VersionDef versions = 4; - */ - public org.tensorflow.proto.framework.VersionDef getVersions() { - if (versionsBuilder_ == null) { - return versions_ == null ? org.tensorflow.proto.framework.VersionDef.getDefaultInstance() : versions_; - } else { - return versionsBuilder_.getMessage(); - } - } - /** - *
-     * Compatibility versions of the graph.  See core/public/version.h for version
-     * history.  The GraphDef version is distinct from the TensorFlow version, and
-     * each release of TensorFlow will support a range of GraphDef versions.
-     * 
- * - * .tensorflow.VersionDef versions = 4; - */ - public Builder setVersions(org.tensorflow.proto.framework.VersionDef value) { - if (versionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - versions_ = value; - onChanged(); - } else { - versionsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Compatibility versions of the graph.  See core/public/version.h for version
-     * history.  The GraphDef version is distinct from the TensorFlow version, and
-     * each release of TensorFlow will support a range of GraphDef versions.
-     * 
- * - * .tensorflow.VersionDef versions = 4; - */ - public Builder setVersions( - org.tensorflow.proto.framework.VersionDef.Builder builderForValue) { - if (versionsBuilder_ == null) { - versions_ = builderForValue.build(); - onChanged(); - } else { - versionsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Compatibility versions of the graph.  See core/public/version.h for version
-     * history.  The GraphDef version is distinct from the TensorFlow version, and
-     * each release of TensorFlow will support a range of GraphDef versions.
-     * 
- * - * .tensorflow.VersionDef versions = 4; - */ - public Builder mergeVersions(org.tensorflow.proto.framework.VersionDef value) { - if (versionsBuilder_ == null) { - if (versions_ != null) { - versions_ = - org.tensorflow.proto.framework.VersionDef.newBuilder(versions_).mergeFrom(value).buildPartial(); - } else { - versions_ = value; - } - onChanged(); - } else { - versionsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Compatibility versions of the graph.  See core/public/version.h for version
-     * history.  The GraphDef version is distinct from the TensorFlow version, and
-     * each release of TensorFlow will support a range of GraphDef versions.
-     * 
- * - * .tensorflow.VersionDef versions = 4; - */ - public Builder clearVersions() { - if (versionsBuilder_ == null) { - versions_ = null; - onChanged(); - } else { - versions_ = null; - versionsBuilder_ = null; - } - - return this; - } - /** - *
-     * Compatibility versions of the graph.  See core/public/version.h for version
-     * history.  The GraphDef version is distinct from the TensorFlow version, and
-     * each release of TensorFlow will support a range of GraphDef versions.
-     * 
- * - * .tensorflow.VersionDef versions = 4; - */ - public org.tensorflow.proto.framework.VersionDef.Builder getVersionsBuilder() { - - onChanged(); - return getVersionsFieldBuilder().getBuilder(); - } - /** - *
-     * Compatibility versions of the graph.  See core/public/version.h for version
-     * history.  The GraphDef version is distinct from the TensorFlow version, and
-     * each release of TensorFlow will support a range of GraphDef versions.
-     * 
- * - * .tensorflow.VersionDef versions = 4; - */ - public org.tensorflow.proto.framework.VersionDefOrBuilder getVersionsOrBuilder() { - if (versionsBuilder_ != null) { - return versionsBuilder_.getMessageOrBuilder(); - } else { - return versions_ == null ? - org.tensorflow.proto.framework.VersionDef.getDefaultInstance() : versions_; - } - } - /** - *
-     * Compatibility versions of the graph.  See core/public/version.h for version
-     * history.  The GraphDef version is distinct from the TensorFlow version, and
-     * each release of TensorFlow will support a range of GraphDef versions.
-     * 
- * - * .tensorflow.VersionDef versions = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.VersionDef, org.tensorflow.proto.framework.VersionDef.Builder, org.tensorflow.proto.framework.VersionDefOrBuilder> - getVersionsFieldBuilder() { - if (versionsBuilder_ == null) { - versionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.VersionDef, org.tensorflow.proto.framework.VersionDef.Builder, org.tensorflow.proto.framework.VersionDefOrBuilder>( - getVersions(), - getParentForChildren(), - isClean()); - versions_ = null; - } - return versionsBuilder_; - } - - private int version_ ; - /** - *
-     * Deprecated single version field; use versions above instead.  Since all
-     * GraphDef changes before "versions" was introduced were forward
-     * compatible, this field is entirely ignored.
-     * 
- * - * int32 version = 3 [deprecated = true]; - */ - @java.lang.Deprecated public int getVersion() { - return version_; - } - /** - *
-     * Deprecated single version field; use versions above instead.  Since all
-     * GraphDef changes before "versions" was introduced were forward
-     * compatible, this field is entirely ignored.
-     * 
- * - * int32 version = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setVersion(int value) { - - version_ = value; - onChanged(); - return this; - } - /** - *
-     * Deprecated single version field; use versions above instead.  Since all
-     * GraphDef changes before "versions" was introduced were forward
-     * compatible, this field is entirely ignored.
-     * 
- * - * int32 version = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearVersion() { - - version_ = 0; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.FunctionDefLibrary library_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.FunctionDefLibrary, org.tensorflow.proto.framework.FunctionDefLibrary.Builder, org.tensorflow.proto.framework.FunctionDefLibraryOrBuilder> libraryBuilder_; - /** - *
-     * "library" provides user-defined functions.
-     * Naming:
-     *   * library.function.name are in a flat namespace.
-     *     NOTE: We may need to change it to be hierarchical to support
-     *     different orgs. E.g.,
-     *     { "/google/nn", { ... }},
-     *     { "/google/vision", { ... }}
-     *     { "/org_foo/module_bar", { ... }}
-     *     map<string, FunctionDefLib> named_lib;
-     *   * If node[i].op is the name of one function in "library",
-     *     node[i] is deemed as a function call. Otherwise, node[i].op
-     *     must be a primitive operation supported by the runtime.
-     * Function call semantics:
-     *   * The callee may start execution as soon as some of its inputs
-     *     are ready. The caller may want to use Tuple() mechanism to
-     *     ensure all inputs are ready in the same time.
-     *   * The consumer of return values may start executing as soon as
-     *     the return values the consumer depends on are ready.  The
-     *     consumer may want to use Tuple() mechanism to ensure the
-     *     consumer does not start until all return values of the callee
-     *     function are ready.
-     * 
- * - * .tensorflow.FunctionDefLibrary library = 2; - */ - public boolean hasLibrary() { - return libraryBuilder_ != null || library_ != null; - } - /** - *
-     * "library" provides user-defined functions.
-     * Naming:
-     *   * library.function.name are in a flat namespace.
-     *     NOTE: We may need to change it to be hierarchical to support
-     *     different orgs. E.g.,
-     *     { "/google/nn", { ... }},
-     *     { "/google/vision", { ... }}
-     *     { "/org_foo/module_bar", { ... }}
-     *     map<string, FunctionDefLib> named_lib;
-     *   * If node[i].op is the name of one function in "library",
-     *     node[i] is deemed as a function call. Otherwise, node[i].op
-     *     must be a primitive operation supported by the runtime.
-     * Function call semantics:
-     *   * The callee may start execution as soon as some of its inputs
-     *     are ready. The caller may want to use Tuple() mechanism to
-     *     ensure all inputs are ready in the same time.
-     *   * The consumer of return values may start executing as soon as
-     *     the return values the consumer depends on are ready.  The
-     *     consumer may want to use Tuple() mechanism to ensure the
-     *     consumer does not start until all return values of the callee
-     *     function are ready.
-     * 
- * - * .tensorflow.FunctionDefLibrary library = 2; - */ - public org.tensorflow.proto.framework.FunctionDefLibrary getLibrary() { - if (libraryBuilder_ == null) { - return library_ == null ? org.tensorflow.proto.framework.FunctionDefLibrary.getDefaultInstance() : library_; - } else { - return libraryBuilder_.getMessage(); - } - } - /** - *
-     * "library" provides user-defined functions.
-     * Naming:
-     *   * library.function.name are in a flat namespace.
-     *     NOTE: We may need to change it to be hierarchical to support
-     *     different orgs. E.g.,
-     *     { "/google/nn", { ... }},
-     *     { "/google/vision", { ... }}
-     *     { "/org_foo/module_bar", { ... }}
-     *     map<string, FunctionDefLib> named_lib;
-     *   * If node[i].op is the name of one function in "library",
-     *     node[i] is deemed as a function call. Otherwise, node[i].op
-     *     must be a primitive operation supported by the runtime.
-     * Function call semantics:
-     *   * The callee may start execution as soon as some of its inputs
-     *     are ready. The caller may want to use Tuple() mechanism to
-     *     ensure all inputs are ready in the same time.
-     *   * The consumer of return values may start executing as soon as
-     *     the return values the consumer depends on are ready.  The
-     *     consumer may want to use Tuple() mechanism to ensure the
-     *     consumer does not start until all return values of the callee
-     *     function are ready.
-     * 
- * - * .tensorflow.FunctionDefLibrary library = 2; - */ - public Builder setLibrary(org.tensorflow.proto.framework.FunctionDefLibrary value) { - if (libraryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - library_ = value; - onChanged(); - } else { - libraryBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * "library" provides user-defined functions.
-     * Naming:
-     *   * library.function.name are in a flat namespace.
-     *     NOTE: We may need to change it to be hierarchical to support
-     *     different orgs. E.g.,
-     *     { "/google/nn", { ... }},
-     *     { "/google/vision", { ... }}
-     *     { "/org_foo/module_bar", { ... }}
-     *     map<string, FunctionDefLib> named_lib;
-     *   * If node[i].op is the name of one function in "library",
-     *     node[i] is deemed as a function call. Otherwise, node[i].op
-     *     must be a primitive operation supported by the runtime.
-     * Function call semantics:
-     *   * The callee may start execution as soon as some of its inputs
-     *     are ready. The caller may want to use Tuple() mechanism to
-     *     ensure all inputs are ready in the same time.
-     *   * The consumer of return values may start executing as soon as
-     *     the return values the consumer depends on are ready.  The
-     *     consumer may want to use Tuple() mechanism to ensure the
-     *     consumer does not start until all return values of the callee
-     *     function are ready.
-     * 
- * - * .tensorflow.FunctionDefLibrary library = 2; - */ - public Builder setLibrary( - org.tensorflow.proto.framework.FunctionDefLibrary.Builder builderForValue) { - if (libraryBuilder_ == null) { - library_ = builderForValue.build(); - onChanged(); - } else { - libraryBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * "library" provides user-defined functions.
-     * Naming:
-     *   * library.function.name are in a flat namespace.
-     *     NOTE: We may need to change it to be hierarchical to support
-     *     different orgs. E.g.,
-     *     { "/google/nn", { ... }},
-     *     { "/google/vision", { ... }}
-     *     { "/org_foo/module_bar", { ... }}
-     *     map<string, FunctionDefLib> named_lib;
-     *   * If node[i].op is the name of one function in "library",
-     *     node[i] is deemed as a function call. Otherwise, node[i].op
-     *     must be a primitive operation supported by the runtime.
-     * Function call semantics:
-     *   * The callee may start execution as soon as some of its inputs
-     *     are ready. The caller may want to use Tuple() mechanism to
-     *     ensure all inputs are ready in the same time.
-     *   * The consumer of return values may start executing as soon as
-     *     the return values the consumer depends on are ready.  The
-     *     consumer may want to use Tuple() mechanism to ensure the
-     *     consumer does not start until all return values of the callee
-     *     function are ready.
-     * 
- * - * .tensorflow.FunctionDefLibrary library = 2; - */ - public Builder mergeLibrary(org.tensorflow.proto.framework.FunctionDefLibrary value) { - if (libraryBuilder_ == null) { - if (library_ != null) { - library_ = - org.tensorflow.proto.framework.FunctionDefLibrary.newBuilder(library_).mergeFrom(value).buildPartial(); - } else { - library_ = value; - } - onChanged(); - } else { - libraryBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * "library" provides user-defined functions.
-     * Naming:
-     *   * library.function.name are in a flat namespace.
-     *     NOTE: We may need to change it to be hierarchical to support
-     *     different orgs. E.g.,
-     *     { "/google/nn", { ... }},
-     *     { "/google/vision", { ... }}
-     *     { "/org_foo/module_bar", { ... }}
-     *     map<string, FunctionDefLib> named_lib;
-     *   * If node[i].op is the name of one function in "library",
-     *     node[i] is deemed as a function call. Otherwise, node[i].op
-     *     must be a primitive operation supported by the runtime.
-     * Function call semantics:
-     *   * The callee may start execution as soon as some of its inputs
-     *     are ready. The caller may want to use Tuple() mechanism to
-     *     ensure all inputs are ready in the same time.
-     *   * The consumer of return values may start executing as soon as
-     *     the return values the consumer depends on are ready.  The
-     *     consumer may want to use Tuple() mechanism to ensure the
-     *     consumer does not start until all return values of the callee
-     *     function are ready.
-     * 
- * - * .tensorflow.FunctionDefLibrary library = 2; - */ - public Builder clearLibrary() { - if (libraryBuilder_ == null) { - library_ = null; - onChanged(); - } else { - library_ = null; - libraryBuilder_ = null; - } - - return this; - } - /** - *
-     * "library" provides user-defined functions.
-     * Naming:
-     *   * library.function.name are in a flat namespace.
-     *     NOTE: We may need to change it to be hierarchical to support
-     *     different orgs. E.g.,
-     *     { "/google/nn", { ... }},
-     *     { "/google/vision", { ... }}
-     *     { "/org_foo/module_bar", { ... }}
-     *     map<string, FunctionDefLib> named_lib;
-     *   * If node[i].op is the name of one function in "library",
-     *     node[i] is deemed as a function call. Otherwise, node[i].op
-     *     must be a primitive operation supported by the runtime.
-     * Function call semantics:
-     *   * The callee may start execution as soon as some of its inputs
-     *     are ready. The caller may want to use Tuple() mechanism to
-     *     ensure all inputs are ready in the same time.
-     *   * The consumer of return values may start executing as soon as
-     *     the return values the consumer depends on are ready.  The
-     *     consumer may want to use Tuple() mechanism to ensure the
-     *     consumer does not start until all return values of the callee
-     *     function are ready.
-     * 
- * - * .tensorflow.FunctionDefLibrary library = 2; - */ - public org.tensorflow.proto.framework.FunctionDefLibrary.Builder getLibraryBuilder() { - - onChanged(); - return getLibraryFieldBuilder().getBuilder(); - } - /** - *
-     * "library" provides user-defined functions.
-     * Naming:
-     *   * library.function.name are in a flat namespace.
-     *     NOTE: We may need to change it to be hierarchical to support
-     *     different orgs. E.g.,
-     *     { "/google/nn", { ... }},
-     *     { "/google/vision", { ... }}
-     *     { "/org_foo/module_bar", { ... }}
-     *     map<string, FunctionDefLib> named_lib;
-     *   * If node[i].op is the name of one function in "library",
-     *     node[i] is deemed as a function call. Otherwise, node[i].op
-     *     must be a primitive operation supported by the runtime.
-     * Function call semantics:
-     *   * The callee may start execution as soon as some of its inputs
-     *     are ready. The caller may want to use Tuple() mechanism to
-     *     ensure all inputs are ready in the same time.
-     *   * The consumer of return values may start executing as soon as
-     *     the return values the consumer depends on are ready.  The
-     *     consumer may want to use Tuple() mechanism to ensure the
-     *     consumer does not start until all return values of the callee
-     *     function are ready.
-     * 
- * - * .tensorflow.FunctionDefLibrary library = 2; - */ - public org.tensorflow.proto.framework.FunctionDefLibraryOrBuilder getLibraryOrBuilder() { - if (libraryBuilder_ != null) { - return libraryBuilder_.getMessageOrBuilder(); - } else { - return library_ == null ? - org.tensorflow.proto.framework.FunctionDefLibrary.getDefaultInstance() : library_; - } - } - /** - *
-     * "library" provides user-defined functions.
-     * Naming:
-     *   * library.function.name are in a flat namespace.
-     *     NOTE: We may need to change it to be hierarchical to support
-     *     different orgs. E.g.,
-     *     { "/google/nn", { ... }},
-     *     { "/google/vision", { ... }}
-     *     { "/org_foo/module_bar", { ... }}
-     *     map<string, FunctionDefLib> named_lib;
-     *   * If node[i].op is the name of one function in "library",
-     *     node[i] is deemed as a function call. Otherwise, node[i].op
-     *     must be a primitive operation supported by the runtime.
-     * Function call semantics:
-     *   * The callee may start execution as soon as some of its inputs
-     *     are ready. The caller may want to use Tuple() mechanism to
-     *     ensure all inputs are ready in the same time.
-     *   * The consumer of return values may start executing as soon as
-     *     the return values the consumer depends on are ready.  The
-     *     consumer may want to use Tuple() mechanism to ensure the
-     *     consumer does not start until all return values of the callee
-     *     function are ready.
-     * 
- * - * .tensorflow.FunctionDefLibrary library = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.FunctionDefLibrary, org.tensorflow.proto.framework.FunctionDefLibrary.Builder, org.tensorflow.proto.framework.FunctionDefLibraryOrBuilder> - getLibraryFieldBuilder() { - if (libraryBuilder_ == null) { - libraryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.FunctionDefLibrary, org.tensorflow.proto.framework.FunctionDefLibrary.Builder, org.tensorflow.proto.framework.FunctionDefLibraryOrBuilder>( - getLibrary(), - getParentForChildren(), - isClean()); - library_ = null; - } - return libraryBuilder_; - } - @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:tensorflow.GraphDef) - } - - // @@protoc_insertion_point(class_scope:tensorflow.GraphDef) - private static final org.tensorflow.proto.framework.GraphDef DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.GraphDef(); - } - - public static org.tensorflow.proto.framework.GraphDef getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GraphDef parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GraphDef(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphDef getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphProtos.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphProtos.java deleted file mode 100644 index 43eba4ee9bd..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphProtos.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/graph.proto - -package org.tensorflow.proto.framework; - -public final class GraphProtos { - private GraphProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_GraphDef_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_GraphDef_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n%tensorflow/core/framework/graph.proto\022" + - "\ntensorflow\032(tensorflow/core/framework/f" + - "unction.proto\032(tensorflow/core/framework" + - "/node_def.proto\032(tensorflow/core/framewo" + - "rk/versions.proto\"\235\001\n\010GraphDef\022!\n\004node\030\001" + - " \003(\0132\023.tensorflow.NodeDef\022(\n\010versions\030\004 " + - "\001(\0132\026.tensorflow.VersionDef\022\023\n\007version\030\003" + - " \001(\005B\002\030\001\022/\n\007library\030\002 \001(\0132\036.tensorflow.F" + - "unctionDefLibraryB\200\001\n\036org.tensorflow.pro" + - "to.frameworkB\013GraphProtosP\001ZLgithub.com/" + - "tensorflow/tensorflow/tensorflow/go/core" + - "/framework/graph_go_proto\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.framework.FunctionProtos.getDescriptor(), - org.tensorflow.proto.framework.NodeProto.getDescriptor(), - org.tensorflow.proto.framework.VersionsProtos.getDescriptor(), - }); - internal_static_tensorflow_GraphDef_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tensorflow_GraphDef_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_GraphDef_descriptor, - new java.lang.String[] { "Node", "Versions", "Version", "Library", }); - org.tensorflow.proto.framework.FunctionProtos.getDescriptor(); - org.tensorflow.proto.framework.NodeProto.getDescriptor(); - org.tensorflow.proto.framework.VersionsProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferConstNodeInfo.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferConstNodeInfo.java deleted file mode 100644 index a1564a2090a..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferConstNodeInfo.java +++ /dev/null @@ -1,912 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/graph_transfer_info.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.GraphTransferConstNodeInfo} - */ -public final class GraphTransferConstNodeInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.GraphTransferConstNodeInfo) - GraphTransferConstNodeInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use GraphTransferConstNodeInfo.newBuilder() to construct. - private GraphTransferConstNodeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GraphTransferConstNodeInfo() { - name_ = ""; - shape_ = emptyLongList(); - data_ = com.google.protobuf.ByteString.EMPTY; - dtype_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GraphTransferConstNodeInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GraphTransferConstNodeInfo( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - - nodeId_ = input.readInt32(); - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - shape_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - shape_.addLong(input.readInt64()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - shape_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - shape_.addLong(input.readInt64()); - } - input.popLimit(limit); - break; - } - case 34: { - - data_ = input.readBytes(); - break; - } - case 40: { - int rawValue = input.readEnum(); - - dtype_ = rawValue; - 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)) { - shape_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferConstNodeInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferConstNodeInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphTransferConstNodeInfo.class, org.tensorflow.proto.framework.GraphTransferConstNodeInfo.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_ID_FIELD_NUMBER = 2; - private int nodeId_; - /** - * int32 node_id = 2; - */ - public int getNodeId() { - return nodeId_; - } - - public static final int SHAPE_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.LongList shape_; - /** - * repeated int64 shape = 3; - */ - public java.util.List - getShapeList() { - return shape_; - } - /** - * repeated int64 shape = 3; - */ - public int getShapeCount() { - return shape_.size(); - } - /** - * repeated int64 shape = 3; - */ - public long getShape(int index) { - return shape_.getLong(index); - } - private int shapeMemoizedSerializedSize = -1; - - public static final int DATA_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString data_; - /** - * bytes data = 4; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - public static final int DTYPE_FIELD_NUMBER = 5; - private int dtype_; - /** - * .tensorflow.DataType dtype = 5; - */ - public int getDtypeValue() { - return dtype_; - } - /** - * .tensorflow.DataType dtype = 5; - */ - public org.tensorflow.proto.framework.DataType getDtype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - - 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 { - getSerializedSize(); - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (nodeId_ != 0) { - output.writeInt32(2, nodeId_); - } - if (getShapeList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(shapeMemoizedSerializedSize); - } - for (int i = 0; i < shape_.size(); i++) { - output.writeInt64NoTag(shape_.getLong(i)); - } - if (!data_.isEmpty()) { - output.writeBytes(4, data_); - } - if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - output.writeEnum(5, dtype_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (nodeId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, nodeId_); - } - { - int dataSize = 0; - for (int i = 0; i < shape_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(shape_.getLong(i)); - } - size += dataSize; - if (!getShapeList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - shapeMemoizedSerializedSize = dataSize; - } - if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, data_); - } - if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, dtype_); - } - 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 org.tensorflow.proto.framework.GraphTransferConstNodeInfo)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.GraphTransferConstNodeInfo other = (org.tensorflow.proto.framework.GraphTransferConstNodeInfo) obj; - - if (!getName() - .equals(other.getName())) return false; - if (getNodeId() - != other.getNodeId()) return false; - if (!getShapeList() - .equals(other.getShapeList())) return false; - if (!getData() - .equals(other.getData())) return false; - if (dtype_ != other.dtype_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + NODE_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodeId(); - if (getShapeCount() > 0) { - hash = (37 * hash) + SHAPE_FIELD_NUMBER; - hash = (53 * hash) + getShapeList().hashCode(); - } - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - hash = (37 * hash) + DTYPE_FIELD_NUMBER; - hash = (53 * hash) + dtype_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.GraphTransferConstNodeInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferConstNodeInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferConstNodeInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferConstNodeInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferConstNodeInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferConstNodeInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferConstNodeInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferConstNodeInfo 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 org.tensorflow.proto.framework.GraphTransferConstNodeInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferConstNodeInfo 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 org.tensorflow.proto.framework.GraphTransferConstNodeInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferConstNodeInfo 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(org.tensorflow.proto.framework.GraphTransferConstNodeInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.GraphTransferConstNodeInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferConstNodeInfo) - org.tensorflow.proto.framework.GraphTransferConstNodeInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferConstNodeInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferConstNodeInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphTransferConstNodeInfo.class, org.tensorflow.proto.framework.GraphTransferConstNodeInfo.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.GraphTransferConstNodeInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - nodeId_ = 0; - - shape_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - data_ = com.google.protobuf.ByteString.EMPTY; - - dtype_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferConstNodeInfo_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferConstNodeInfo getDefaultInstanceForType() { - return org.tensorflow.proto.framework.GraphTransferConstNodeInfo.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferConstNodeInfo build() { - org.tensorflow.proto.framework.GraphTransferConstNodeInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferConstNodeInfo buildPartial() { - org.tensorflow.proto.framework.GraphTransferConstNodeInfo result = new org.tensorflow.proto.framework.GraphTransferConstNodeInfo(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.nodeId_ = nodeId_; - if (((bitField0_ & 0x00000001) != 0)) { - shape_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.shape_ = shape_; - result.data_ = data_; - result.dtype_ = dtype_; - 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 org.tensorflow.proto.framework.GraphTransferConstNodeInfo) { - return mergeFrom((org.tensorflow.proto.framework.GraphTransferConstNodeInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.GraphTransferConstNodeInfo other) { - if (other == org.tensorflow.proto.framework.GraphTransferConstNodeInfo.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getNodeId() != 0) { - setNodeId(other.getNodeId()); - } - if (!other.shape_.isEmpty()) { - if (shape_.isEmpty()) { - shape_ = other.shape_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureShapeIsMutable(); - shape_.addAll(other.shape_); - } - onChanged(); - } - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { - setData(other.getData()); - } - if (other.dtype_ != 0) { - setDtypeValue(other.getDtypeValue()); - } - 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 { - org.tensorflow.proto.framework.GraphTransferConstNodeInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.GraphTransferConstNodeInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int nodeId_ ; - /** - * int32 node_id = 2; - */ - public int getNodeId() { - return nodeId_; - } - /** - * int32 node_id = 2; - */ - public Builder setNodeId(int value) { - - nodeId_ = value; - onChanged(); - return this; - } - /** - * int32 node_id = 2; - */ - public Builder clearNodeId() { - - nodeId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList shape_ = emptyLongList(); - private void ensureShapeIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - shape_ = mutableCopy(shape_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated int64 shape = 3; - */ - public java.util.List - getShapeList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(shape_) : shape_; - } - /** - * repeated int64 shape = 3; - */ - public int getShapeCount() { - return shape_.size(); - } - /** - * repeated int64 shape = 3; - */ - public long getShape(int index) { - return shape_.getLong(index); - } - /** - * repeated int64 shape = 3; - */ - public Builder setShape( - int index, long value) { - ensureShapeIsMutable(); - shape_.setLong(index, value); - onChanged(); - return this; - } - /** - * repeated int64 shape = 3; - */ - public Builder addShape(long value) { - ensureShapeIsMutable(); - shape_.addLong(value); - onChanged(); - return this; - } - /** - * repeated int64 shape = 3; - */ - public Builder addAllShape( - java.lang.Iterable values) { - ensureShapeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, shape_); - onChanged(); - return this; - } - /** - * repeated int64 shape = 3; - */ - public Builder clearShape() { - shape_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes data = 4; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * bytes data = 4; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - data_ = value; - onChanged(); - return this; - } - /** - * bytes data = 4; - */ - public Builder clearData() { - - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - private int dtype_ = 0; - /** - * .tensorflow.DataType dtype = 5; - */ - public int getDtypeValue() { - return dtype_; - } - /** - * .tensorflow.DataType dtype = 5; - */ - public Builder setDtypeValue(int value) { - dtype_ = value; - onChanged(); - return this; - } - /** - * .tensorflow.DataType dtype = 5; - */ - public org.tensorflow.proto.framework.DataType getDtype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - /** - * .tensorflow.DataType dtype = 5; - */ - public Builder setDtype(org.tensorflow.proto.framework.DataType value) { - if (value == null) { - throw new NullPointerException(); - } - - dtype_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tensorflow.DataType dtype = 5; - */ - public Builder clearDtype() { - - dtype_ = 0; - 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:tensorflow.GraphTransferConstNodeInfo) - } - - // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferConstNodeInfo) - private static final org.tensorflow.proto.framework.GraphTransferConstNodeInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.GraphTransferConstNodeInfo(); - } - - public static org.tensorflow.proto.framework.GraphTransferConstNodeInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GraphTransferConstNodeInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GraphTransferConstNodeInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferConstNodeInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferConstNodeInfoOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferConstNodeInfoOrBuilder.java deleted file mode 100644 index ec0b9e60f90..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferConstNodeInfoOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/graph_transfer_info.proto - -package org.tensorflow.proto.framework; - -public interface GraphTransferConstNodeInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.GraphTransferConstNodeInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1; - */ - java.lang.String getName(); - /** - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * int32 node_id = 2; - */ - int getNodeId(); - - /** - * repeated int64 shape = 3; - */ - java.util.List getShapeList(); - /** - * repeated int64 shape = 3; - */ - int getShapeCount(); - /** - * repeated int64 shape = 3; - */ - long getShape(int index); - - /** - * bytes data = 4; - */ - com.google.protobuf.ByteString getData(); - - /** - * .tensorflow.DataType dtype = 5; - */ - int getDtypeValue(); - /** - * .tensorflow.DataType dtype = 5; - */ - org.tensorflow.proto.framework.DataType getDtype(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferGraphInputNodeInfo.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferGraphInputNodeInfo.java deleted file mode 100644 index b4d12c201b5..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferGraphInputNodeInfo.java +++ /dev/null @@ -1,794 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/graph_transfer_info.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.GraphTransferGraphInputNodeInfo} - */ -public final class GraphTransferGraphInputNodeInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.GraphTransferGraphInputNodeInfo) - GraphTransferGraphInputNodeInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use GraphTransferGraphInputNodeInfo.newBuilder() to construct. - private GraphTransferGraphInputNodeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GraphTransferGraphInputNodeInfo() { - name_ = ""; - shape_ = emptyLongList(); - dtype_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GraphTransferGraphInputNodeInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GraphTransferGraphInputNodeInfo( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - shape_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - shape_.addLong(input.readInt64()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - shape_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - shape_.addLong(input.readInt64()); - } - input.popLimit(limit); - break; - } - case 24: { - int rawValue = input.readEnum(); - - dtype_ = rawValue; - 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)) { - shape_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferGraphInputNodeInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferGraphInputNodeInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo.class, org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHAPE_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.LongList shape_; - /** - * repeated int64 shape = 2; - */ - public java.util.List - getShapeList() { - return shape_; - } - /** - * repeated int64 shape = 2; - */ - public int getShapeCount() { - return shape_.size(); - } - /** - * repeated int64 shape = 2; - */ - public long getShape(int index) { - return shape_.getLong(index); - } - private int shapeMemoizedSerializedSize = -1; - - public static final int DTYPE_FIELD_NUMBER = 3; - private int dtype_; - /** - * .tensorflow.DataType dtype = 3; - */ - public int getDtypeValue() { - return dtype_; - } - /** - * .tensorflow.DataType dtype = 3; - */ - public org.tensorflow.proto.framework.DataType getDtype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - - 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 { - getSerializedSize(); - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (getShapeList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(shapeMemoizedSerializedSize); - } - for (int i = 0; i < shape_.size(); i++) { - output.writeInt64NoTag(shape_.getLong(i)); - } - if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - output.writeEnum(3, dtype_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - { - int dataSize = 0; - for (int i = 0; i < shape_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(shape_.getLong(i)); - } - size += dataSize; - if (!getShapeList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - shapeMemoizedSerializedSize = dataSize; - } - if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, dtype_); - } - 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 org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo other = (org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getShapeList() - .equals(other.getShapeList())) return false; - if (dtype_ != other.dtype_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (getShapeCount() > 0) { - hash = (37 * hash) + SHAPE_FIELD_NUMBER; - hash = (53 * hash) + getShapeList().hashCode(); - } - hash = (37 * hash) + DTYPE_FIELD_NUMBER; - hash = (53 * hash) + dtype_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo 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 org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo 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 org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo 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(org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.GraphTransferGraphInputNodeInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferGraphInputNodeInfo) - org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferGraphInputNodeInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferGraphInputNodeInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo.class, org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - shape_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - dtype_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferGraphInputNodeInfo_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo getDefaultInstanceForType() { - return org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo build() { - org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo buildPartial() { - org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo result = new org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - if (((bitField0_ & 0x00000001) != 0)) { - shape_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.shape_ = shape_; - result.dtype_ = dtype_; - 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 org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo) { - return mergeFrom((org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo other) { - if (other == org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.shape_.isEmpty()) { - if (shape_.isEmpty()) { - shape_ = other.shape_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureShapeIsMutable(); - shape_.addAll(other.shape_); - } - onChanged(); - } - if (other.dtype_ != 0) { - setDtypeValue(other.getDtypeValue()); - } - 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 { - org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList shape_ = emptyLongList(); - private void ensureShapeIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - shape_ = mutableCopy(shape_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated int64 shape = 2; - */ - public java.util.List - getShapeList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(shape_) : shape_; - } - /** - * repeated int64 shape = 2; - */ - public int getShapeCount() { - return shape_.size(); - } - /** - * repeated int64 shape = 2; - */ - public long getShape(int index) { - return shape_.getLong(index); - } - /** - * repeated int64 shape = 2; - */ - public Builder setShape( - int index, long value) { - ensureShapeIsMutable(); - shape_.setLong(index, value); - onChanged(); - return this; - } - /** - * repeated int64 shape = 2; - */ - public Builder addShape(long value) { - ensureShapeIsMutable(); - shape_.addLong(value); - onChanged(); - return this; - } - /** - * repeated int64 shape = 2; - */ - public Builder addAllShape( - java.lang.Iterable values) { - ensureShapeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, shape_); - onChanged(); - return this; - } - /** - * repeated int64 shape = 2; - */ - public Builder clearShape() { - shape_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private int dtype_ = 0; - /** - * .tensorflow.DataType dtype = 3; - */ - public int getDtypeValue() { - return dtype_; - } - /** - * .tensorflow.DataType dtype = 3; - */ - public Builder setDtypeValue(int value) { - dtype_ = value; - onChanged(); - return this; - } - /** - * .tensorflow.DataType dtype = 3; - */ - public org.tensorflow.proto.framework.DataType getDtype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - /** - * .tensorflow.DataType dtype = 3; - */ - public Builder setDtype(org.tensorflow.proto.framework.DataType value) { - if (value == null) { - throw new NullPointerException(); - } - - dtype_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tensorflow.DataType dtype = 3; - */ - public Builder clearDtype() { - - dtype_ = 0; - 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:tensorflow.GraphTransferGraphInputNodeInfo) - } - - // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferGraphInputNodeInfo) - private static final org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo(); - } - - public static org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GraphTransferGraphInputNodeInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GraphTransferGraphInputNodeInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferGraphInputNodeInfoOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferGraphInputNodeInfoOrBuilder.java deleted file mode 100644 index c121353b111..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferGraphInputNodeInfoOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/graph_transfer_info.proto - -package org.tensorflow.proto.framework; - -public interface GraphTransferGraphInputNodeInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.GraphTransferGraphInputNodeInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1; - */ - java.lang.String getName(); - /** - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * repeated int64 shape = 2; - */ - java.util.List getShapeList(); - /** - * repeated int64 shape = 2; - */ - int getShapeCount(); - /** - * repeated int64 shape = 2; - */ - long getShape(int index); - - /** - * .tensorflow.DataType dtype = 3; - */ - int getDtypeValue(); - /** - * .tensorflow.DataType dtype = 3; - */ - org.tensorflow.proto.framework.DataType getDtype(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferGraphOutputNodeInfo.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferGraphOutputNodeInfo.java deleted file mode 100644 index 78bf270776e..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferGraphOutputNodeInfo.java +++ /dev/null @@ -1,794 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/graph_transfer_info.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.GraphTransferGraphOutputNodeInfo} - */ -public final class GraphTransferGraphOutputNodeInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.GraphTransferGraphOutputNodeInfo) - GraphTransferGraphOutputNodeInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use GraphTransferGraphOutputNodeInfo.newBuilder() to construct. - private GraphTransferGraphOutputNodeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GraphTransferGraphOutputNodeInfo() { - name_ = ""; - shape_ = emptyLongList(); - dtype_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GraphTransferGraphOutputNodeInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GraphTransferGraphOutputNodeInfo( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - shape_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - shape_.addLong(input.readInt64()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - shape_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - shape_.addLong(input.readInt64()); - } - input.popLimit(limit); - break; - } - case 24: { - int rawValue = input.readEnum(); - - dtype_ = rawValue; - 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)) { - shape_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferGraphOutputNodeInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferGraphOutputNodeInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo.class, org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHAPE_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.LongList shape_; - /** - * repeated int64 shape = 2; - */ - public java.util.List - getShapeList() { - return shape_; - } - /** - * repeated int64 shape = 2; - */ - public int getShapeCount() { - return shape_.size(); - } - /** - * repeated int64 shape = 2; - */ - public long getShape(int index) { - return shape_.getLong(index); - } - private int shapeMemoizedSerializedSize = -1; - - public static final int DTYPE_FIELD_NUMBER = 3; - private int dtype_; - /** - * .tensorflow.DataType dtype = 3; - */ - public int getDtypeValue() { - return dtype_; - } - /** - * .tensorflow.DataType dtype = 3; - */ - public org.tensorflow.proto.framework.DataType getDtype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - - 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 { - getSerializedSize(); - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (getShapeList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(shapeMemoizedSerializedSize); - } - for (int i = 0; i < shape_.size(); i++) { - output.writeInt64NoTag(shape_.getLong(i)); - } - if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - output.writeEnum(3, dtype_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - { - int dataSize = 0; - for (int i = 0; i < shape_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(shape_.getLong(i)); - } - size += dataSize; - if (!getShapeList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - shapeMemoizedSerializedSize = dataSize; - } - if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, dtype_); - } - 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 org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo other = (org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getShapeList() - .equals(other.getShapeList())) return false; - if (dtype_ != other.dtype_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (getShapeCount() > 0) { - hash = (37 * hash) + SHAPE_FIELD_NUMBER; - hash = (53 * hash) + getShapeList().hashCode(); - } - hash = (37 * hash) + DTYPE_FIELD_NUMBER; - hash = (53 * hash) + dtype_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo 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 org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo 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 org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo 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(org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.GraphTransferGraphOutputNodeInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferGraphOutputNodeInfo) - org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferGraphOutputNodeInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferGraphOutputNodeInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo.class, org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - shape_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - dtype_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferGraphOutputNodeInfo_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo getDefaultInstanceForType() { - return org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo build() { - org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo buildPartial() { - org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo result = new org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - if (((bitField0_ & 0x00000001) != 0)) { - shape_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.shape_ = shape_; - result.dtype_ = dtype_; - 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 org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo) { - return mergeFrom((org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo other) { - if (other == org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.shape_.isEmpty()) { - if (shape_.isEmpty()) { - shape_ = other.shape_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureShapeIsMutable(); - shape_.addAll(other.shape_); - } - onChanged(); - } - if (other.dtype_ != 0) { - setDtypeValue(other.getDtypeValue()); - } - 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 { - org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList shape_ = emptyLongList(); - private void ensureShapeIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - shape_ = mutableCopy(shape_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated int64 shape = 2; - */ - public java.util.List - getShapeList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(shape_) : shape_; - } - /** - * repeated int64 shape = 2; - */ - public int getShapeCount() { - return shape_.size(); - } - /** - * repeated int64 shape = 2; - */ - public long getShape(int index) { - return shape_.getLong(index); - } - /** - * repeated int64 shape = 2; - */ - public Builder setShape( - int index, long value) { - ensureShapeIsMutable(); - shape_.setLong(index, value); - onChanged(); - return this; - } - /** - * repeated int64 shape = 2; - */ - public Builder addShape(long value) { - ensureShapeIsMutable(); - shape_.addLong(value); - onChanged(); - return this; - } - /** - * repeated int64 shape = 2; - */ - public Builder addAllShape( - java.lang.Iterable values) { - ensureShapeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, shape_); - onChanged(); - return this; - } - /** - * repeated int64 shape = 2; - */ - public Builder clearShape() { - shape_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private int dtype_ = 0; - /** - * .tensorflow.DataType dtype = 3; - */ - public int getDtypeValue() { - return dtype_; - } - /** - * .tensorflow.DataType dtype = 3; - */ - public Builder setDtypeValue(int value) { - dtype_ = value; - onChanged(); - return this; - } - /** - * .tensorflow.DataType dtype = 3; - */ - public org.tensorflow.proto.framework.DataType getDtype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - /** - * .tensorflow.DataType dtype = 3; - */ - public Builder setDtype(org.tensorflow.proto.framework.DataType value) { - if (value == null) { - throw new NullPointerException(); - } - - dtype_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tensorflow.DataType dtype = 3; - */ - public Builder clearDtype() { - - dtype_ = 0; - 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:tensorflow.GraphTransferGraphOutputNodeInfo) - } - - // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferGraphOutputNodeInfo) - private static final org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo(); - } - - public static org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GraphTransferGraphOutputNodeInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GraphTransferGraphOutputNodeInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferGraphOutputNodeInfoOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferGraphOutputNodeInfoOrBuilder.java deleted file mode 100644 index 3fcf3f3ae7e..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferGraphOutputNodeInfoOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/graph_transfer_info.proto - -package org.tensorflow.proto.framework; - -public interface GraphTransferGraphOutputNodeInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.GraphTransferGraphOutputNodeInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1; - */ - java.lang.String getName(); - /** - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * repeated int64 shape = 2; - */ - java.util.List getShapeList(); - /** - * repeated int64 shape = 2; - */ - int getShapeCount(); - /** - * repeated int64 shape = 2; - */ - long getShape(int index); - - /** - * .tensorflow.DataType dtype = 3; - */ - int getDtypeValue(); - /** - * .tensorflow.DataType dtype = 3; - */ - org.tensorflow.proto.framework.DataType getDtype(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferInfo.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferInfo.java deleted file mode 100644 index f9d53390a8b..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferInfo.java +++ /dev/null @@ -1,2795 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/graph_transfer_info.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Protocol buffer representing a handle to a tensorflow resource. Handles are
- * not valid across executions, but can be serialized back and forth from within
- * a single run.
- * 
- * - * Protobuf type {@code tensorflow.GraphTransferInfo} - */ -public final class GraphTransferInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.GraphTransferInfo) - GraphTransferInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use GraphTransferInfo.newBuilder() to construct. - private GraphTransferInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GraphTransferInfo() { - nodeInfo_ = java.util.Collections.emptyList(); - constNodeInfo_ = java.util.Collections.emptyList(); - nodeInputInfo_ = java.util.Collections.emptyList(); - nodeOutputInfo_ = java.util.Collections.emptyList(); - graphInputNodeInfo_ = java.util.Collections.emptyList(); - graphOutputNodeInfo_ = java.util.Collections.emptyList(); - destination_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GraphTransferInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GraphTransferInfo( - 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)) { - nodeInfo_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nodeInfo_.add( - input.readMessage(org.tensorflow.proto.framework.GraphTransferNodeInfo.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - constNodeInfo_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - constNodeInfo_.add( - input.readMessage(org.tensorflow.proto.framework.GraphTransferConstNodeInfo.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - nodeInputInfo_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - nodeInputInfo_.add( - input.readMessage(org.tensorflow.proto.framework.GraphTransferNodeInputInfo.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - nodeOutputInfo_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - nodeOutputInfo_.add( - input.readMessage(org.tensorflow.proto.framework.GraphTransferNodeOutputInfo.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - graphInputNodeInfo_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - graphInputNodeInfo_.add( - input.readMessage(org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - graphOutputNodeInfo_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - graphOutputNodeInfo_.add( - input.readMessage(org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo.parser(), extensionRegistry)); - break; - } - case 56: { - int rawValue = input.readEnum(); - - destination_ = rawValue; - 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)) { - nodeInfo_ = java.util.Collections.unmodifiableList(nodeInfo_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - constNodeInfo_ = java.util.Collections.unmodifiableList(constNodeInfo_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - nodeInputInfo_ = java.util.Collections.unmodifiableList(nodeInputInfo_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - nodeOutputInfo_ = java.util.Collections.unmodifiableList(nodeOutputInfo_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - graphInputNodeInfo_ = java.util.Collections.unmodifiableList(graphInputNodeInfo_); - } - if (((mutable_bitField0_ & 0x00000020) != 0)) { - graphOutputNodeInfo_ = java.util.Collections.unmodifiableList(graphOutputNodeInfo_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphTransferInfo.class, org.tensorflow.proto.framework.GraphTransferInfo.Builder.class); - } - - /** - * Protobuf enum {@code tensorflow.GraphTransferInfo.Destination} - */ - public enum Destination - implements com.google.protobuf.ProtocolMessageEnum { - /** - * NOP = 0; - */ - NOP(0), - /** - * HEXAGON = 1; - */ - HEXAGON(1), - UNRECOGNIZED(-1), - ; - - /** - * NOP = 0; - */ - public static final int NOP_VALUE = 0; - /** - * HEXAGON = 1; - */ - public static final int HEXAGON_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Destination valueOf(int value) { - return forNumber(value); - } - - public static Destination forNumber(int value) { - switch (value) { - case 0: return NOP; - case 1: return HEXAGON; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Destination> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Destination findValueByNumber(int number) { - return Destination.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 org.tensorflow.proto.framework.GraphTransferInfo.getDescriptor().getEnumTypes().get(0); - } - - private static final Destination[] VALUES = values(); - - public static Destination 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 Destination(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:tensorflow.GraphTransferInfo.Destination) - } - - public static final int NODE_INFO_FIELD_NUMBER = 1; - private java.util.List nodeInfo_; - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public java.util.List getNodeInfoList() { - return nodeInfo_; - } - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public java.util.List - getNodeInfoOrBuilderList() { - return nodeInfo_; - } - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public int getNodeInfoCount() { - return nodeInfo_.size(); - } - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public org.tensorflow.proto.framework.GraphTransferNodeInfo getNodeInfo(int index) { - return nodeInfo_.get(index); - } - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public org.tensorflow.proto.framework.GraphTransferNodeInfoOrBuilder getNodeInfoOrBuilder( - int index) { - return nodeInfo_.get(index); - } - - public static final int CONST_NODE_INFO_FIELD_NUMBER = 2; - private java.util.List constNodeInfo_; - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public java.util.List getConstNodeInfoList() { - return constNodeInfo_; - } - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public java.util.List - getConstNodeInfoOrBuilderList() { - return constNodeInfo_; - } - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public int getConstNodeInfoCount() { - return constNodeInfo_.size(); - } - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public org.tensorflow.proto.framework.GraphTransferConstNodeInfo getConstNodeInfo(int index) { - return constNodeInfo_.get(index); - } - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public org.tensorflow.proto.framework.GraphTransferConstNodeInfoOrBuilder getConstNodeInfoOrBuilder( - int index) { - return constNodeInfo_.get(index); - } - - public static final int NODE_INPUT_INFO_FIELD_NUMBER = 3; - private java.util.List nodeInputInfo_; - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public java.util.List getNodeInputInfoList() { - return nodeInputInfo_; - } - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public java.util.List - getNodeInputInfoOrBuilderList() { - return nodeInputInfo_; - } - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public int getNodeInputInfoCount() { - return nodeInputInfo_.size(); - } - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public org.tensorflow.proto.framework.GraphTransferNodeInputInfo getNodeInputInfo(int index) { - return nodeInputInfo_.get(index); - } - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public org.tensorflow.proto.framework.GraphTransferNodeInputInfoOrBuilder getNodeInputInfoOrBuilder( - int index) { - return nodeInputInfo_.get(index); - } - - public static final int NODE_OUTPUT_INFO_FIELD_NUMBER = 4; - private java.util.List nodeOutputInfo_; - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public java.util.List getNodeOutputInfoList() { - return nodeOutputInfo_; - } - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public java.util.List - getNodeOutputInfoOrBuilderList() { - return nodeOutputInfo_; - } - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public int getNodeOutputInfoCount() { - return nodeOutputInfo_.size(); - } - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public org.tensorflow.proto.framework.GraphTransferNodeOutputInfo getNodeOutputInfo(int index) { - return nodeOutputInfo_.get(index); - } - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public org.tensorflow.proto.framework.GraphTransferNodeOutputInfoOrBuilder getNodeOutputInfoOrBuilder( - int index) { - return nodeOutputInfo_.get(index); - } - - public static final int GRAPH_INPUT_NODE_INFO_FIELD_NUMBER = 5; - private java.util.List graphInputNodeInfo_; - /** - *
-   * Input Node parameters of transferred graph
-   * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public java.util.List getGraphInputNodeInfoList() { - return graphInputNodeInfo_; - } - /** - *
-   * Input Node parameters of transferred graph
-   * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public java.util.List - getGraphInputNodeInfoOrBuilderList() { - return graphInputNodeInfo_; - } - /** - *
-   * Input Node parameters of transferred graph
-   * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public int getGraphInputNodeInfoCount() { - return graphInputNodeInfo_.size(); - } - /** - *
-   * Input Node parameters of transferred graph
-   * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo getGraphInputNodeInfo(int index) { - return graphInputNodeInfo_.get(index); - } - /** - *
-   * Input Node parameters of transferred graph
-   * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfoOrBuilder getGraphInputNodeInfoOrBuilder( - int index) { - return graphInputNodeInfo_.get(index); - } - - public static final int GRAPH_OUTPUT_NODE_INFO_FIELD_NUMBER = 6; - private java.util.List graphOutputNodeInfo_; - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public java.util.List getGraphOutputNodeInfoList() { - return graphOutputNodeInfo_; - } - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public java.util.List - getGraphOutputNodeInfoOrBuilderList() { - return graphOutputNodeInfo_; - } - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public int getGraphOutputNodeInfoCount() { - return graphOutputNodeInfo_.size(); - } - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo getGraphOutputNodeInfo(int index) { - return graphOutputNodeInfo_.get(index); - } - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfoOrBuilder getGraphOutputNodeInfoOrBuilder( - int index) { - return graphOutputNodeInfo_.get(index); - } - - public static final int DESTINATION_FIELD_NUMBER = 7; - private int destination_; - /** - *
-   * Destination of graph transfer
-   * 
- * - * .tensorflow.GraphTransferInfo.Destination destination = 7; - */ - public int getDestinationValue() { - return destination_; - } - /** - *
-   * Destination of graph transfer
-   * 
- * - * .tensorflow.GraphTransferInfo.Destination destination = 7; - */ - public org.tensorflow.proto.framework.GraphTransferInfo.Destination getDestination() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.GraphTransferInfo.Destination result = org.tensorflow.proto.framework.GraphTransferInfo.Destination.valueOf(destination_); - return result == null ? org.tensorflow.proto.framework.GraphTransferInfo.Destination.UNRECOGNIZED : result; - } - - 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 < nodeInfo_.size(); i++) { - output.writeMessage(1, nodeInfo_.get(i)); - } - for (int i = 0; i < constNodeInfo_.size(); i++) { - output.writeMessage(2, constNodeInfo_.get(i)); - } - for (int i = 0; i < nodeInputInfo_.size(); i++) { - output.writeMessage(3, nodeInputInfo_.get(i)); - } - for (int i = 0; i < nodeOutputInfo_.size(); i++) { - output.writeMessage(4, nodeOutputInfo_.get(i)); - } - for (int i = 0; i < graphInputNodeInfo_.size(); i++) { - output.writeMessage(5, graphInputNodeInfo_.get(i)); - } - for (int i = 0; i < graphOutputNodeInfo_.size(); i++) { - output.writeMessage(6, graphOutputNodeInfo_.get(i)); - } - if (destination_ != org.tensorflow.proto.framework.GraphTransferInfo.Destination.NOP.getNumber()) { - output.writeEnum(7, destination_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < nodeInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, nodeInfo_.get(i)); - } - for (int i = 0; i < constNodeInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, constNodeInfo_.get(i)); - } - for (int i = 0; i < nodeInputInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, nodeInputInfo_.get(i)); - } - for (int i = 0; i < nodeOutputInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, nodeOutputInfo_.get(i)); - } - for (int i = 0; i < graphInputNodeInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, graphInputNodeInfo_.get(i)); - } - for (int i = 0; i < graphOutputNodeInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, graphOutputNodeInfo_.get(i)); - } - if (destination_ != org.tensorflow.proto.framework.GraphTransferInfo.Destination.NOP.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, destination_); - } - 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 org.tensorflow.proto.framework.GraphTransferInfo)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.GraphTransferInfo other = (org.tensorflow.proto.framework.GraphTransferInfo) obj; - - if (!getNodeInfoList() - .equals(other.getNodeInfoList())) return false; - if (!getConstNodeInfoList() - .equals(other.getConstNodeInfoList())) return false; - if (!getNodeInputInfoList() - .equals(other.getNodeInputInfoList())) return false; - if (!getNodeOutputInfoList() - .equals(other.getNodeOutputInfoList())) return false; - if (!getGraphInputNodeInfoList() - .equals(other.getGraphInputNodeInfoList())) return false; - if (!getGraphOutputNodeInfoList() - .equals(other.getGraphOutputNodeInfoList())) return false; - if (destination_ != other.destination_) 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 (getNodeInfoCount() > 0) { - hash = (37 * hash) + NODE_INFO_FIELD_NUMBER; - hash = (53 * hash) + getNodeInfoList().hashCode(); - } - if (getConstNodeInfoCount() > 0) { - hash = (37 * hash) + CONST_NODE_INFO_FIELD_NUMBER; - hash = (53 * hash) + getConstNodeInfoList().hashCode(); - } - if (getNodeInputInfoCount() > 0) { - hash = (37 * hash) + NODE_INPUT_INFO_FIELD_NUMBER; - hash = (53 * hash) + getNodeInputInfoList().hashCode(); - } - if (getNodeOutputInfoCount() > 0) { - hash = (37 * hash) + NODE_OUTPUT_INFO_FIELD_NUMBER; - hash = (53 * hash) + getNodeOutputInfoList().hashCode(); - } - if (getGraphInputNodeInfoCount() > 0) { - hash = (37 * hash) + GRAPH_INPUT_NODE_INFO_FIELD_NUMBER; - hash = (53 * hash) + getGraphInputNodeInfoList().hashCode(); - } - if (getGraphOutputNodeInfoCount() > 0) { - hash = (37 * hash) + GRAPH_OUTPUT_NODE_INFO_FIELD_NUMBER; - hash = (53 * hash) + getGraphOutputNodeInfoList().hashCode(); - } - hash = (37 * hash) + DESTINATION_FIELD_NUMBER; - hash = (53 * hash) + destination_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.GraphTransferInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferInfo 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 org.tensorflow.proto.framework.GraphTransferInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferInfo 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 org.tensorflow.proto.framework.GraphTransferInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferInfo 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(org.tensorflow.proto.framework.GraphTransferInfo 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; - } - /** - *
-   * Protocol buffer representing a handle to a tensorflow resource. Handles are
-   * not valid across executions, but can be serialized back and forth from within
-   * a single run.
-   * 
- * - * Protobuf type {@code tensorflow.GraphTransferInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferInfo) - org.tensorflow.proto.framework.GraphTransferInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphTransferInfo.class, org.tensorflow.proto.framework.GraphTransferInfo.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.GraphTransferInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNodeInfoFieldBuilder(); - getConstNodeInfoFieldBuilder(); - getNodeInputInfoFieldBuilder(); - getNodeOutputInfoFieldBuilder(); - getGraphInputNodeInfoFieldBuilder(); - getGraphOutputNodeInfoFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (nodeInfoBuilder_ == null) { - nodeInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - nodeInfoBuilder_.clear(); - } - if (constNodeInfoBuilder_ == null) { - constNodeInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - constNodeInfoBuilder_.clear(); - } - if (nodeInputInfoBuilder_ == null) { - nodeInputInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - nodeInputInfoBuilder_.clear(); - } - if (nodeOutputInfoBuilder_ == null) { - nodeOutputInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - nodeOutputInfoBuilder_.clear(); - } - if (graphInputNodeInfoBuilder_ == null) { - graphInputNodeInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - graphInputNodeInfoBuilder_.clear(); - } - if (graphOutputNodeInfoBuilder_ == null) { - graphOutputNodeInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - graphOutputNodeInfoBuilder_.clear(); - } - destination_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferInfo getDefaultInstanceForType() { - return org.tensorflow.proto.framework.GraphTransferInfo.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferInfo build() { - org.tensorflow.proto.framework.GraphTransferInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferInfo buildPartial() { - org.tensorflow.proto.framework.GraphTransferInfo result = new org.tensorflow.proto.framework.GraphTransferInfo(this); - int from_bitField0_ = bitField0_; - if (nodeInfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodeInfo_ = java.util.Collections.unmodifiableList(nodeInfo_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodeInfo_ = nodeInfo_; - } else { - result.nodeInfo_ = nodeInfoBuilder_.build(); - } - if (constNodeInfoBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - constNodeInfo_ = java.util.Collections.unmodifiableList(constNodeInfo_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.constNodeInfo_ = constNodeInfo_; - } else { - result.constNodeInfo_ = constNodeInfoBuilder_.build(); - } - if (nodeInputInfoBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - nodeInputInfo_ = java.util.Collections.unmodifiableList(nodeInputInfo_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.nodeInputInfo_ = nodeInputInfo_; - } else { - result.nodeInputInfo_ = nodeInputInfoBuilder_.build(); - } - if (nodeOutputInfoBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - nodeOutputInfo_ = java.util.Collections.unmodifiableList(nodeOutputInfo_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.nodeOutputInfo_ = nodeOutputInfo_; - } else { - result.nodeOutputInfo_ = nodeOutputInfoBuilder_.build(); - } - if (graphInputNodeInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - graphInputNodeInfo_ = java.util.Collections.unmodifiableList(graphInputNodeInfo_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.graphInputNodeInfo_ = graphInputNodeInfo_; - } else { - result.graphInputNodeInfo_ = graphInputNodeInfoBuilder_.build(); - } - if (graphOutputNodeInfoBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - graphOutputNodeInfo_ = java.util.Collections.unmodifiableList(graphOutputNodeInfo_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.graphOutputNodeInfo_ = graphOutputNodeInfo_; - } else { - result.graphOutputNodeInfo_ = graphOutputNodeInfoBuilder_.build(); - } - result.destination_ = destination_; - 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 org.tensorflow.proto.framework.GraphTransferInfo) { - return mergeFrom((org.tensorflow.proto.framework.GraphTransferInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.GraphTransferInfo other) { - if (other == org.tensorflow.proto.framework.GraphTransferInfo.getDefaultInstance()) return this; - if (nodeInfoBuilder_ == null) { - if (!other.nodeInfo_.isEmpty()) { - if (nodeInfo_.isEmpty()) { - nodeInfo_ = other.nodeInfo_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodeInfoIsMutable(); - nodeInfo_.addAll(other.nodeInfo_); - } - onChanged(); - } - } else { - if (!other.nodeInfo_.isEmpty()) { - if (nodeInfoBuilder_.isEmpty()) { - nodeInfoBuilder_.dispose(); - nodeInfoBuilder_ = null; - nodeInfo_ = other.nodeInfo_; - bitField0_ = (bitField0_ & ~0x00000001); - nodeInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodeInfoFieldBuilder() : null; - } else { - nodeInfoBuilder_.addAllMessages(other.nodeInfo_); - } - } - } - if (constNodeInfoBuilder_ == null) { - if (!other.constNodeInfo_.isEmpty()) { - if (constNodeInfo_.isEmpty()) { - constNodeInfo_ = other.constNodeInfo_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureConstNodeInfoIsMutable(); - constNodeInfo_.addAll(other.constNodeInfo_); - } - onChanged(); - } - } else { - if (!other.constNodeInfo_.isEmpty()) { - if (constNodeInfoBuilder_.isEmpty()) { - constNodeInfoBuilder_.dispose(); - constNodeInfoBuilder_ = null; - constNodeInfo_ = other.constNodeInfo_; - bitField0_ = (bitField0_ & ~0x00000002); - constNodeInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConstNodeInfoFieldBuilder() : null; - } else { - constNodeInfoBuilder_.addAllMessages(other.constNodeInfo_); - } - } - } - if (nodeInputInfoBuilder_ == null) { - if (!other.nodeInputInfo_.isEmpty()) { - if (nodeInputInfo_.isEmpty()) { - nodeInputInfo_ = other.nodeInputInfo_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureNodeInputInfoIsMutable(); - nodeInputInfo_.addAll(other.nodeInputInfo_); - } - onChanged(); - } - } else { - if (!other.nodeInputInfo_.isEmpty()) { - if (nodeInputInfoBuilder_.isEmpty()) { - nodeInputInfoBuilder_.dispose(); - nodeInputInfoBuilder_ = null; - nodeInputInfo_ = other.nodeInputInfo_; - bitField0_ = (bitField0_ & ~0x00000004); - nodeInputInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodeInputInfoFieldBuilder() : null; - } else { - nodeInputInfoBuilder_.addAllMessages(other.nodeInputInfo_); - } - } - } - if (nodeOutputInfoBuilder_ == null) { - if (!other.nodeOutputInfo_.isEmpty()) { - if (nodeOutputInfo_.isEmpty()) { - nodeOutputInfo_ = other.nodeOutputInfo_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureNodeOutputInfoIsMutable(); - nodeOutputInfo_.addAll(other.nodeOutputInfo_); - } - onChanged(); - } - } else { - if (!other.nodeOutputInfo_.isEmpty()) { - if (nodeOutputInfoBuilder_.isEmpty()) { - nodeOutputInfoBuilder_.dispose(); - nodeOutputInfoBuilder_ = null; - nodeOutputInfo_ = other.nodeOutputInfo_; - bitField0_ = (bitField0_ & ~0x00000008); - nodeOutputInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodeOutputInfoFieldBuilder() : null; - } else { - nodeOutputInfoBuilder_.addAllMessages(other.nodeOutputInfo_); - } - } - } - if (graphInputNodeInfoBuilder_ == null) { - if (!other.graphInputNodeInfo_.isEmpty()) { - if (graphInputNodeInfo_.isEmpty()) { - graphInputNodeInfo_ = other.graphInputNodeInfo_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureGraphInputNodeInfoIsMutable(); - graphInputNodeInfo_.addAll(other.graphInputNodeInfo_); - } - onChanged(); - } - } else { - if (!other.graphInputNodeInfo_.isEmpty()) { - if (graphInputNodeInfoBuilder_.isEmpty()) { - graphInputNodeInfoBuilder_.dispose(); - graphInputNodeInfoBuilder_ = null; - graphInputNodeInfo_ = other.graphInputNodeInfo_; - bitField0_ = (bitField0_ & ~0x00000010); - graphInputNodeInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGraphInputNodeInfoFieldBuilder() : null; - } else { - graphInputNodeInfoBuilder_.addAllMessages(other.graphInputNodeInfo_); - } - } - } - if (graphOutputNodeInfoBuilder_ == null) { - if (!other.graphOutputNodeInfo_.isEmpty()) { - if (graphOutputNodeInfo_.isEmpty()) { - graphOutputNodeInfo_ = other.graphOutputNodeInfo_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureGraphOutputNodeInfoIsMutable(); - graphOutputNodeInfo_.addAll(other.graphOutputNodeInfo_); - } - onChanged(); - } - } else { - if (!other.graphOutputNodeInfo_.isEmpty()) { - if (graphOutputNodeInfoBuilder_.isEmpty()) { - graphOutputNodeInfoBuilder_.dispose(); - graphOutputNodeInfoBuilder_ = null; - graphOutputNodeInfo_ = other.graphOutputNodeInfo_; - bitField0_ = (bitField0_ & ~0x00000020); - graphOutputNodeInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGraphOutputNodeInfoFieldBuilder() : null; - } else { - graphOutputNodeInfoBuilder_.addAllMessages(other.graphOutputNodeInfo_); - } - } - } - if (other.destination_ != 0) { - setDestinationValue(other.getDestinationValue()); - } - 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 { - org.tensorflow.proto.framework.GraphTransferInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.GraphTransferInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List nodeInfo_ = - java.util.Collections.emptyList(); - private void ensureNodeInfoIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nodeInfo_ = new java.util.ArrayList(nodeInfo_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphTransferNodeInfo, org.tensorflow.proto.framework.GraphTransferNodeInfo.Builder, org.tensorflow.proto.framework.GraphTransferNodeInfoOrBuilder> nodeInfoBuilder_; - - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public java.util.List getNodeInfoList() { - if (nodeInfoBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodeInfo_); - } else { - return nodeInfoBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public int getNodeInfoCount() { - if (nodeInfoBuilder_ == null) { - return nodeInfo_.size(); - } else { - return nodeInfoBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public org.tensorflow.proto.framework.GraphTransferNodeInfo getNodeInfo(int index) { - if (nodeInfoBuilder_ == null) { - return nodeInfo_.get(index); - } else { - return nodeInfoBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public Builder setNodeInfo( - int index, org.tensorflow.proto.framework.GraphTransferNodeInfo value) { - if (nodeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeInfoIsMutable(); - nodeInfo_.set(index, value); - onChanged(); - } else { - nodeInfoBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public Builder setNodeInfo( - int index, org.tensorflow.proto.framework.GraphTransferNodeInfo.Builder builderForValue) { - if (nodeInfoBuilder_ == null) { - ensureNodeInfoIsMutable(); - nodeInfo_.set(index, builderForValue.build()); - onChanged(); - } else { - nodeInfoBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public Builder addNodeInfo(org.tensorflow.proto.framework.GraphTransferNodeInfo value) { - if (nodeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeInfoIsMutable(); - nodeInfo_.add(value); - onChanged(); - } else { - nodeInfoBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public Builder addNodeInfo( - int index, org.tensorflow.proto.framework.GraphTransferNodeInfo value) { - if (nodeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeInfoIsMutable(); - nodeInfo_.add(index, value); - onChanged(); - } else { - nodeInfoBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public Builder addNodeInfo( - org.tensorflow.proto.framework.GraphTransferNodeInfo.Builder builderForValue) { - if (nodeInfoBuilder_ == null) { - ensureNodeInfoIsMutable(); - nodeInfo_.add(builderForValue.build()); - onChanged(); - } else { - nodeInfoBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public Builder addNodeInfo( - int index, org.tensorflow.proto.framework.GraphTransferNodeInfo.Builder builderForValue) { - if (nodeInfoBuilder_ == null) { - ensureNodeInfoIsMutable(); - nodeInfo_.add(index, builderForValue.build()); - onChanged(); - } else { - nodeInfoBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public Builder addAllNodeInfo( - java.lang.Iterable values) { - if (nodeInfoBuilder_ == null) { - ensureNodeInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodeInfo_); - onChanged(); - } else { - nodeInfoBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public Builder clearNodeInfo() { - if (nodeInfoBuilder_ == null) { - nodeInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodeInfoBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public Builder removeNodeInfo(int index) { - if (nodeInfoBuilder_ == null) { - ensureNodeInfoIsMutable(); - nodeInfo_.remove(index); - onChanged(); - } else { - nodeInfoBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public org.tensorflow.proto.framework.GraphTransferNodeInfo.Builder getNodeInfoBuilder( - int index) { - return getNodeInfoFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public org.tensorflow.proto.framework.GraphTransferNodeInfoOrBuilder getNodeInfoOrBuilder( - int index) { - if (nodeInfoBuilder_ == null) { - return nodeInfo_.get(index); } else { - return nodeInfoBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public java.util.List - getNodeInfoOrBuilderList() { - if (nodeInfoBuilder_ != null) { - return nodeInfoBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodeInfo_); - } - } - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public org.tensorflow.proto.framework.GraphTransferNodeInfo.Builder addNodeInfoBuilder() { - return getNodeInfoFieldBuilder().addBuilder( - org.tensorflow.proto.framework.GraphTransferNodeInfo.getDefaultInstance()); - } - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public org.tensorflow.proto.framework.GraphTransferNodeInfo.Builder addNodeInfoBuilder( - int index) { - return getNodeInfoFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.GraphTransferNodeInfo.getDefaultInstance()); - } - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - public java.util.List - getNodeInfoBuilderList() { - return getNodeInfoFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphTransferNodeInfo, org.tensorflow.proto.framework.GraphTransferNodeInfo.Builder, org.tensorflow.proto.framework.GraphTransferNodeInfoOrBuilder> - getNodeInfoFieldBuilder() { - if (nodeInfoBuilder_ == null) { - nodeInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphTransferNodeInfo, org.tensorflow.proto.framework.GraphTransferNodeInfo.Builder, org.tensorflow.proto.framework.GraphTransferNodeInfoOrBuilder>( - nodeInfo_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - nodeInfo_ = null; - } - return nodeInfoBuilder_; - } - - private java.util.List constNodeInfo_ = - java.util.Collections.emptyList(); - private void ensureConstNodeInfoIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - constNodeInfo_ = new java.util.ArrayList(constNodeInfo_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphTransferConstNodeInfo, org.tensorflow.proto.framework.GraphTransferConstNodeInfo.Builder, org.tensorflow.proto.framework.GraphTransferConstNodeInfoOrBuilder> constNodeInfoBuilder_; - - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public java.util.List getConstNodeInfoList() { - if (constNodeInfoBuilder_ == null) { - return java.util.Collections.unmodifiableList(constNodeInfo_); - } else { - return constNodeInfoBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public int getConstNodeInfoCount() { - if (constNodeInfoBuilder_ == null) { - return constNodeInfo_.size(); - } else { - return constNodeInfoBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public org.tensorflow.proto.framework.GraphTransferConstNodeInfo getConstNodeInfo(int index) { - if (constNodeInfoBuilder_ == null) { - return constNodeInfo_.get(index); - } else { - return constNodeInfoBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public Builder setConstNodeInfo( - int index, org.tensorflow.proto.framework.GraphTransferConstNodeInfo value) { - if (constNodeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConstNodeInfoIsMutable(); - constNodeInfo_.set(index, value); - onChanged(); - } else { - constNodeInfoBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public Builder setConstNodeInfo( - int index, org.tensorflow.proto.framework.GraphTransferConstNodeInfo.Builder builderForValue) { - if (constNodeInfoBuilder_ == null) { - ensureConstNodeInfoIsMutable(); - constNodeInfo_.set(index, builderForValue.build()); - onChanged(); - } else { - constNodeInfoBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public Builder addConstNodeInfo(org.tensorflow.proto.framework.GraphTransferConstNodeInfo value) { - if (constNodeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConstNodeInfoIsMutable(); - constNodeInfo_.add(value); - onChanged(); - } else { - constNodeInfoBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public Builder addConstNodeInfo( - int index, org.tensorflow.proto.framework.GraphTransferConstNodeInfo value) { - if (constNodeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConstNodeInfoIsMutable(); - constNodeInfo_.add(index, value); - onChanged(); - } else { - constNodeInfoBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public Builder addConstNodeInfo( - org.tensorflow.proto.framework.GraphTransferConstNodeInfo.Builder builderForValue) { - if (constNodeInfoBuilder_ == null) { - ensureConstNodeInfoIsMutable(); - constNodeInfo_.add(builderForValue.build()); - onChanged(); - } else { - constNodeInfoBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public Builder addConstNodeInfo( - int index, org.tensorflow.proto.framework.GraphTransferConstNodeInfo.Builder builderForValue) { - if (constNodeInfoBuilder_ == null) { - ensureConstNodeInfoIsMutable(); - constNodeInfo_.add(index, builderForValue.build()); - onChanged(); - } else { - constNodeInfoBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public Builder addAllConstNodeInfo( - java.lang.Iterable values) { - if (constNodeInfoBuilder_ == null) { - ensureConstNodeInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, constNodeInfo_); - onChanged(); - } else { - constNodeInfoBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public Builder clearConstNodeInfo() { - if (constNodeInfoBuilder_ == null) { - constNodeInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - constNodeInfoBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public Builder removeConstNodeInfo(int index) { - if (constNodeInfoBuilder_ == null) { - ensureConstNodeInfoIsMutable(); - constNodeInfo_.remove(index); - onChanged(); - } else { - constNodeInfoBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public org.tensorflow.proto.framework.GraphTransferConstNodeInfo.Builder getConstNodeInfoBuilder( - int index) { - return getConstNodeInfoFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public org.tensorflow.proto.framework.GraphTransferConstNodeInfoOrBuilder getConstNodeInfoOrBuilder( - int index) { - if (constNodeInfoBuilder_ == null) { - return constNodeInfo_.get(index); } else { - return constNodeInfoBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public java.util.List - getConstNodeInfoOrBuilderList() { - if (constNodeInfoBuilder_ != null) { - return constNodeInfoBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(constNodeInfo_); - } - } - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public org.tensorflow.proto.framework.GraphTransferConstNodeInfo.Builder addConstNodeInfoBuilder() { - return getConstNodeInfoFieldBuilder().addBuilder( - org.tensorflow.proto.framework.GraphTransferConstNodeInfo.getDefaultInstance()); - } - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public org.tensorflow.proto.framework.GraphTransferConstNodeInfo.Builder addConstNodeInfoBuilder( - int index) { - return getConstNodeInfoFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.GraphTransferConstNodeInfo.getDefaultInstance()); - } - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - public java.util.List - getConstNodeInfoBuilderList() { - return getConstNodeInfoFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphTransferConstNodeInfo, org.tensorflow.proto.framework.GraphTransferConstNodeInfo.Builder, org.tensorflow.proto.framework.GraphTransferConstNodeInfoOrBuilder> - getConstNodeInfoFieldBuilder() { - if (constNodeInfoBuilder_ == null) { - constNodeInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphTransferConstNodeInfo, org.tensorflow.proto.framework.GraphTransferConstNodeInfo.Builder, org.tensorflow.proto.framework.GraphTransferConstNodeInfoOrBuilder>( - constNodeInfo_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - constNodeInfo_ = null; - } - return constNodeInfoBuilder_; - } - - private java.util.List nodeInputInfo_ = - java.util.Collections.emptyList(); - private void ensureNodeInputInfoIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - nodeInputInfo_ = new java.util.ArrayList(nodeInputInfo_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphTransferNodeInputInfo, org.tensorflow.proto.framework.GraphTransferNodeInputInfo.Builder, org.tensorflow.proto.framework.GraphTransferNodeInputInfoOrBuilder> nodeInputInfoBuilder_; - - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public java.util.List getNodeInputInfoList() { - if (nodeInputInfoBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodeInputInfo_); - } else { - return nodeInputInfoBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public int getNodeInputInfoCount() { - if (nodeInputInfoBuilder_ == null) { - return nodeInputInfo_.size(); - } else { - return nodeInputInfoBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public org.tensorflow.proto.framework.GraphTransferNodeInputInfo getNodeInputInfo(int index) { - if (nodeInputInfoBuilder_ == null) { - return nodeInputInfo_.get(index); - } else { - return nodeInputInfoBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public Builder setNodeInputInfo( - int index, org.tensorflow.proto.framework.GraphTransferNodeInputInfo value) { - if (nodeInputInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeInputInfoIsMutable(); - nodeInputInfo_.set(index, value); - onChanged(); - } else { - nodeInputInfoBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public Builder setNodeInputInfo( - int index, org.tensorflow.proto.framework.GraphTransferNodeInputInfo.Builder builderForValue) { - if (nodeInputInfoBuilder_ == null) { - ensureNodeInputInfoIsMutable(); - nodeInputInfo_.set(index, builderForValue.build()); - onChanged(); - } else { - nodeInputInfoBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public Builder addNodeInputInfo(org.tensorflow.proto.framework.GraphTransferNodeInputInfo value) { - if (nodeInputInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeInputInfoIsMutable(); - nodeInputInfo_.add(value); - onChanged(); - } else { - nodeInputInfoBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public Builder addNodeInputInfo( - int index, org.tensorflow.proto.framework.GraphTransferNodeInputInfo value) { - if (nodeInputInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeInputInfoIsMutable(); - nodeInputInfo_.add(index, value); - onChanged(); - } else { - nodeInputInfoBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public Builder addNodeInputInfo( - org.tensorflow.proto.framework.GraphTransferNodeInputInfo.Builder builderForValue) { - if (nodeInputInfoBuilder_ == null) { - ensureNodeInputInfoIsMutable(); - nodeInputInfo_.add(builderForValue.build()); - onChanged(); - } else { - nodeInputInfoBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public Builder addNodeInputInfo( - int index, org.tensorflow.proto.framework.GraphTransferNodeInputInfo.Builder builderForValue) { - if (nodeInputInfoBuilder_ == null) { - ensureNodeInputInfoIsMutable(); - nodeInputInfo_.add(index, builderForValue.build()); - onChanged(); - } else { - nodeInputInfoBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public Builder addAllNodeInputInfo( - java.lang.Iterable values) { - if (nodeInputInfoBuilder_ == null) { - ensureNodeInputInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodeInputInfo_); - onChanged(); - } else { - nodeInputInfoBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public Builder clearNodeInputInfo() { - if (nodeInputInfoBuilder_ == null) { - nodeInputInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - nodeInputInfoBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public Builder removeNodeInputInfo(int index) { - if (nodeInputInfoBuilder_ == null) { - ensureNodeInputInfoIsMutable(); - nodeInputInfo_.remove(index); - onChanged(); - } else { - nodeInputInfoBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public org.tensorflow.proto.framework.GraphTransferNodeInputInfo.Builder getNodeInputInfoBuilder( - int index) { - return getNodeInputInfoFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public org.tensorflow.proto.framework.GraphTransferNodeInputInfoOrBuilder getNodeInputInfoOrBuilder( - int index) { - if (nodeInputInfoBuilder_ == null) { - return nodeInputInfo_.get(index); } else { - return nodeInputInfoBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public java.util.List - getNodeInputInfoOrBuilderList() { - if (nodeInputInfoBuilder_ != null) { - return nodeInputInfoBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodeInputInfo_); - } - } - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public org.tensorflow.proto.framework.GraphTransferNodeInputInfo.Builder addNodeInputInfoBuilder() { - return getNodeInputInfoFieldBuilder().addBuilder( - org.tensorflow.proto.framework.GraphTransferNodeInputInfo.getDefaultInstance()); - } - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public org.tensorflow.proto.framework.GraphTransferNodeInputInfo.Builder addNodeInputInfoBuilder( - int index) { - return getNodeInputInfoFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.GraphTransferNodeInputInfo.getDefaultInstance()); - } - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - public java.util.List - getNodeInputInfoBuilderList() { - return getNodeInputInfoFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphTransferNodeInputInfo, org.tensorflow.proto.framework.GraphTransferNodeInputInfo.Builder, org.tensorflow.proto.framework.GraphTransferNodeInputInfoOrBuilder> - getNodeInputInfoFieldBuilder() { - if (nodeInputInfoBuilder_ == null) { - nodeInputInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphTransferNodeInputInfo, org.tensorflow.proto.framework.GraphTransferNodeInputInfo.Builder, org.tensorflow.proto.framework.GraphTransferNodeInputInfoOrBuilder>( - nodeInputInfo_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - nodeInputInfo_ = null; - } - return nodeInputInfoBuilder_; - } - - private java.util.List nodeOutputInfo_ = - java.util.Collections.emptyList(); - private void ensureNodeOutputInfoIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - nodeOutputInfo_ = new java.util.ArrayList(nodeOutputInfo_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphTransferNodeOutputInfo, org.tensorflow.proto.framework.GraphTransferNodeOutputInfo.Builder, org.tensorflow.proto.framework.GraphTransferNodeOutputInfoOrBuilder> nodeOutputInfoBuilder_; - - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public java.util.List getNodeOutputInfoList() { - if (nodeOutputInfoBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodeOutputInfo_); - } else { - return nodeOutputInfoBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public int getNodeOutputInfoCount() { - if (nodeOutputInfoBuilder_ == null) { - return nodeOutputInfo_.size(); - } else { - return nodeOutputInfoBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public org.tensorflow.proto.framework.GraphTransferNodeOutputInfo getNodeOutputInfo(int index) { - if (nodeOutputInfoBuilder_ == null) { - return nodeOutputInfo_.get(index); - } else { - return nodeOutputInfoBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public Builder setNodeOutputInfo( - int index, org.tensorflow.proto.framework.GraphTransferNodeOutputInfo value) { - if (nodeOutputInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeOutputInfoIsMutable(); - nodeOutputInfo_.set(index, value); - onChanged(); - } else { - nodeOutputInfoBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public Builder setNodeOutputInfo( - int index, org.tensorflow.proto.framework.GraphTransferNodeOutputInfo.Builder builderForValue) { - if (nodeOutputInfoBuilder_ == null) { - ensureNodeOutputInfoIsMutable(); - nodeOutputInfo_.set(index, builderForValue.build()); - onChanged(); - } else { - nodeOutputInfoBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public Builder addNodeOutputInfo(org.tensorflow.proto.framework.GraphTransferNodeOutputInfo value) { - if (nodeOutputInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeOutputInfoIsMutable(); - nodeOutputInfo_.add(value); - onChanged(); - } else { - nodeOutputInfoBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public Builder addNodeOutputInfo( - int index, org.tensorflow.proto.framework.GraphTransferNodeOutputInfo value) { - if (nodeOutputInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeOutputInfoIsMutable(); - nodeOutputInfo_.add(index, value); - onChanged(); - } else { - nodeOutputInfoBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public Builder addNodeOutputInfo( - org.tensorflow.proto.framework.GraphTransferNodeOutputInfo.Builder builderForValue) { - if (nodeOutputInfoBuilder_ == null) { - ensureNodeOutputInfoIsMutable(); - nodeOutputInfo_.add(builderForValue.build()); - onChanged(); - } else { - nodeOutputInfoBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public Builder addNodeOutputInfo( - int index, org.tensorflow.proto.framework.GraphTransferNodeOutputInfo.Builder builderForValue) { - if (nodeOutputInfoBuilder_ == null) { - ensureNodeOutputInfoIsMutable(); - nodeOutputInfo_.add(index, builderForValue.build()); - onChanged(); - } else { - nodeOutputInfoBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public Builder addAllNodeOutputInfo( - java.lang.Iterable values) { - if (nodeOutputInfoBuilder_ == null) { - ensureNodeOutputInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodeOutputInfo_); - onChanged(); - } else { - nodeOutputInfoBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public Builder clearNodeOutputInfo() { - if (nodeOutputInfoBuilder_ == null) { - nodeOutputInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - nodeOutputInfoBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public Builder removeNodeOutputInfo(int index) { - if (nodeOutputInfoBuilder_ == null) { - ensureNodeOutputInfoIsMutable(); - nodeOutputInfo_.remove(index); - onChanged(); - } else { - nodeOutputInfoBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public org.tensorflow.proto.framework.GraphTransferNodeOutputInfo.Builder getNodeOutputInfoBuilder( - int index) { - return getNodeOutputInfoFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public org.tensorflow.proto.framework.GraphTransferNodeOutputInfoOrBuilder getNodeOutputInfoOrBuilder( - int index) { - if (nodeOutputInfoBuilder_ == null) { - return nodeOutputInfo_.get(index); } else { - return nodeOutputInfoBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public java.util.List - getNodeOutputInfoOrBuilderList() { - if (nodeOutputInfoBuilder_ != null) { - return nodeOutputInfoBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodeOutputInfo_); - } - } - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public org.tensorflow.proto.framework.GraphTransferNodeOutputInfo.Builder addNodeOutputInfoBuilder() { - return getNodeOutputInfoFieldBuilder().addBuilder( - org.tensorflow.proto.framework.GraphTransferNodeOutputInfo.getDefaultInstance()); - } - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public org.tensorflow.proto.framework.GraphTransferNodeOutputInfo.Builder addNodeOutputInfoBuilder( - int index) { - return getNodeOutputInfoFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.GraphTransferNodeOutputInfo.getDefaultInstance()); - } - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - public java.util.List - getNodeOutputInfoBuilderList() { - return getNodeOutputInfoFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphTransferNodeOutputInfo, org.tensorflow.proto.framework.GraphTransferNodeOutputInfo.Builder, org.tensorflow.proto.framework.GraphTransferNodeOutputInfoOrBuilder> - getNodeOutputInfoFieldBuilder() { - if (nodeOutputInfoBuilder_ == null) { - nodeOutputInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphTransferNodeOutputInfo, org.tensorflow.proto.framework.GraphTransferNodeOutputInfo.Builder, org.tensorflow.proto.framework.GraphTransferNodeOutputInfoOrBuilder>( - nodeOutputInfo_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - nodeOutputInfo_ = null; - } - return nodeOutputInfoBuilder_; - } - - private java.util.List graphInputNodeInfo_ = - java.util.Collections.emptyList(); - private void ensureGraphInputNodeInfoIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - graphInputNodeInfo_ = new java.util.ArrayList(graphInputNodeInfo_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo, org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo.Builder, org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfoOrBuilder> graphInputNodeInfoBuilder_; - - /** - *
-     * Input Node parameters of transferred graph
-     * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public java.util.List getGraphInputNodeInfoList() { - if (graphInputNodeInfoBuilder_ == null) { - return java.util.Collections.unmodifiableList(graphInputNodeInfo_); - } else { - return graphInputNodeInfoBuilder_.getMessageList(); - } - } - /** - *
-     * Input Node parameters of transferred graph
-     * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public int getGraphInputNodeInfoCount() { - if (graphInputNodeInfoBuilder_ == null) { - return graphInputNodeInfo_.size(); - } else { - return graphInputNodeInfoBuilder_.getCount(); - } - } - /** - *
-     * Input Node parameters of transferred graph
-     * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo getGraphInputNodeInfo(int index) { - if (graphInputNodeInfoBuilder_ == null) { - return graphInputNodeInfo_.get(index); - } else { - return graphInputNodeInfoBuilder_.getMessage(index); - } - } - /** - *
-     * Input Node parameters of transferred graph
-     * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public Builder setGraphInputNodeInfo( - int index, org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo value) { - if (graphInputNodeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGraphInputNodeInfoIsMutable(); - graphInputNodeInfo_.set(index, value); - onChanged(); - } else { - graphInputNodeInfoBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Input Node parameters of transferred graph
-     * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public Builder setGraphInputNodeInfo( - int index, org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo.Builder builderForValue) { - if (graphInputNodeInfoBuilder_ == null) { - ensureGraphInputNodeInfoIsMutable(); - graphInputNodeInfo_.set(index, builderForValue.build()); - onChanged(); - } else { - graphInputNodeInfoBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Input Node parameters of transferred graph
-     * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public Builder addGraphInputNodeInfo(org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo value) { - if (graphInputNodeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGraphInputNodeInfoIsMutable(); - graphInputNodeInfo_.add(value); - onChanged(); - } else { - graphInputNodeInfoBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Input Node parameters of transferred graph
-     * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public Builder addGraphInputNodeInfo( - int index, org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo value) { - if (graphInputNodeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGraphInputNodeInfoIsMutable(); - graphInputNodeInfo_.add(index, value); - onChanged(); - } else { - graphInputNodeInfoBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Input Node parameters of transferred graph
-     * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public Builder addGraphInputNodeInfo( - org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo.Builder builderForValue) { - if (graphInputNodeInfoBuilder_ == null) { - ensureGraphInputNodeInfoIsMutable(); - graphInputNodeInfo_.add(builderForValue.build()); - onChanged(); - } else { - graphInputNodeInfoBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Input Node parameters of transferred graph
-     * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public Builder addGraphInputNodeInfo( - int index, org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo.Builder builderForValue) { - if (graphInputNodeInfoBuilder_ == null) { - ensureGraphInputNodeInfoIsMutable(); - graphInputNodeInfo_.add(index, builderForValue.build()); - onChanged(); - } else { - graphInputNodeInfoBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Input Node parameters of transferred graph
-     * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public Builder addAllGraphInputNodeInfo( - java.lang.Iterable values) { - if (graphInputNodeInfoBuilder_ == null) { - ensureGraphInputNodeInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, graphInputNodeInfo_); - onChanged(); - } else { - graphInputNodeInfoBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Input Node parameters of transferred graph
-     * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public Builder clearGraphInputNodeInfo() { - if (graphInputNodeInfoBuilder_ == null) { - graphInputNodeInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - graphInputNodeInfoBuilder_.clear(); - } - return this; - } - /** - *
-     * Input Node parameters of transferred graph
-     * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public Builder removeGraphInputNodeInfo(int index) { - if (graphInputNodeInfoBuilder_ == null) { - ensureGraphInputNodeInfoIsMutable(); - graphInputNodeInfo_.remove(index); - onChanged(); - } else { - graphInputNodeInfoBuilder_.remove(index); - } - return this; - } - /** - *
-     * Input Node parameters of transferred graph
-     * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo.Builder getGraphInputNodeInfoBuilder( - int index) { - return getGraphInputNodeInfoFieldBuilder().getBuilder(index); - } - /** - *
-     * Input Node parameters of transferred graph
-     * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfoOrBuilder getGraphInputNodeInfoOrBuilder( - int index) { - if (graphInputNodeInfoBuilder_ == null) { - return graphInputNodeInfo_.get(index); } else { - return graphInputNodeInfoBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Input Node parameters of transferred graph
-     * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public java.util.List - getGraphInputNodeInfoOrBuilderList() { - if (graphInputNodeInfoBuilder_ != null) { - return graphInputNodeInfoBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(graphInputNodeInfo_); - } - } - /** - *
-     * Input Node parameters of transferred graph
-     * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo.Builder addGraphInputNodeInfoBuilder() { - return getGraphInputNodeInfoFieldBuilder().addBuilder( - org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo.getDefaultInstance()); - } - /** - *
-     * Input Node parameters of transferred graph
-     * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo.Builder addGraphInputNodeInfoBuilder( - int index) { - return getGraphInputNodeInfoFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo.getDefaultInstance()); - } - /** - *
-     * Input Node parameters of transferred graph
-     * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - public java.util.List - getGraphInputNodeInfoBuilderList() { - return getGraphInputNodeInfoFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo, org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo.Builder, org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfoOrBuilder> - getGraphInputNodeInfoFieldBuilder() { - if (graphInputNodeInfoBuilder_ == null) { - graphInputNodeInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo, org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo.Builder, org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfoOrBuilder>( - graphInputNodeInfo_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - graphInputNodeInfo_ = null; - } - return graphInputNodeInfoBuilder_; - } - - private java.util.List graphOutputNodeInfo_ = - java.util.Collections.emptyList(); - private void ensureGraphOutputNodeInfoIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - graphOutputNodeInfo_ = new java.util.ArrayList(graphOutputNodeInfo_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo, org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo.Builder, org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfoOrBuilder> graphOutputNodeInfoBuilder_; - - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public java.util.List getGraphOutputNodeInfoList() { - if (graphOutputNodeInfoBuilder_ == null) { - return java.util.Collections.unmodifiableList(graphOutputNodeInfo_); - } else { - return graphOutputNodeInfoBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public int getGraphOutputNodeInfoCount() { - if (graphOutputNodeInfoBuilder_ == null) { - return graphOutputNodeInfo_.size(); - } else { - return graphOutputNodeInfoBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo getGraphOutputNodeInfo(int index) { - if (graphOutputNodeInfoBuilder_ == null) { - return graphOutputNodeInfo_.get(index); - } else { - return graphOutputNodeInfoBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public Builder setGraphOutputNodeInfo( - int index, org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo value) { - if (graphOutputNodeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGraphOutputNodeInfoIsMutable(); - graphOutputNodeInfo_.set(index, value); - onChanged(); - } else { - graphOutputNodeInfoBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public Builder setGraphOutputNodeInfo( - int index, org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo.Builder builderForValue) { - if (graphOutputNodeInfoBuilder_ == null) { - ensureGraphOutputNodeInfoIsMutable(); - graphOutputNodeInfo_.set(index, builderForValue.build()); - onChanged(); - } else { - graphOutputNodeInfoBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public Builder addGraphOutputNodeInfo(org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo value) { - if (graphOutputNodeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGraphOutputNodeInfoIsMutable(); - graphOutputNodeInfo_.add(value); - onChanged(); - } else { - graphOutputNodeInfoBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public Builder addGraphOutputNodeInfo( - int index, org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo value) { - if (graphOutputNodeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGraphOutputNodeInfoIsMutable(); - graphOutputNodeInfo_.add(index, value); - onChanged(); - } else { - graphOutputNodeInfoBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public Builder addGraphOutputNodeInfo( - org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo.Builder builderForValue) { - if (graphOutputNodeInfoBuilder_ == null) { - ensureGraphOutputNodeInfoIsMutable(); - graphOutputNodeInfo_.add(builderForValue.build()); - onChanged(); - } else { - graphOutputNodeInfoBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public Builder addGraphOutputNodeInfo( - int index, org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo.Builder builderForValue) { - if (graphOutputNodeInfoBuilder_ == null) { - ensureGraphOutputNodeInfoIsMutable(); - graphOutputNodeInfo_.add(index, builderForValue.build()); - onChanged(); - } else { - graphOutputNodeInfoBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public Builder addAllGraphOutputNodeInfo( - java.lang.Iterable values) { - if (graphOutputNodeInfoBuilder_ == null) { - ensureGraphOutputNodeInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, graphOutputNodeInfo_); - onChanged(); - } else { - graphOutputNodeInfoBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public Builder clearGraphOutputNodeInfo() { - if (graphOutputNodeInfoBuilder_ == null) { - graphOutputNodeInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - graphOutputNodeInfoBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public Builder removeGraphOutputNodeInfo(int index) { - if (graphOutputNodeInfoBuilder_ == null) { - ensureGraphOutputNodeInfoIsMutable(); - graphOutputNodeInfo_.remove(index); - onChanged(); - } else { - graphOutputNodeInfoBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo.Builder getGraphOutputNodeInfoBuilder( - int index) { - return getGraphOutputNodeInfoFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfoOrBuilder getGraphOutputNodeInfoOrBuilder( - int index) { - if (graphOutputNodeInfoBuilder_ == null) { - return graphOutputNodeInfo_.get(index); } else { - return graphOutputNodeInfoBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public java.util.List - getGraphOutputNodeInfoOrBuilderList() { - if (graphOutputNodeInfoBuilder_ != null) { - return graphOutputNodeInfoBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(graphOutputNodeInfo_); - } - } - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo.Builder addGraphOutputNodeInfoBuilder() { - return getGraphOutputNodeInfoFieldBuilder().addBuilder( - org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo.getDefaultInstance()); - } - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo.Builder addGraphOutputNodeInfoBuilder( - int index) { - return getGraphOutputNodeInfoFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo.getDefaultInstance()); - } - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - public java.util.List - getGraphOutputNodeInfoBuilderList() { - return getGraphOutputNodeInfoFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo, org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo.Builder, org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfoOrBuilder> - getGraphOutputNodeInfoFieldBuilder() { - if (graphOutputNodeInfoBuilder_ == null) { - graphOutputNodeInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo, org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo.Builder, org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfoOrBuilder>( - graphOutputNodeInfo_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - graphOutputNodeInfo_ = null; - } - return graphOutputNodeInfoBuilder_; - } - - private int destination_ = 0; - /** - *
-     * Destination of graph transfer
-     * 
- * - * .tensorflow.GraphTransferInfo.Destination destination = 7; - */ - public int getDestinationValue() { - return destination_; - } - /** - *
-     * Destination of graph transfer
-     * 
- * - * .tensorflow.GraphTransferInfo.Destination destination = 7; - */ - public Builder setDestinationValue(int value) { - destination_ = value; - onChanged(); - return this; - } - /** - *
-     * Destination of graph transfer
-     * 
- * - * .tensorflow.GraphTransferInfo.Destination destination = 7; - */ - public org.tensorflow.proto.framework.GraphTransferInfo.Destination getDestination() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.GraphTransferInfo.Destination result = org.tensorflow.proto.framework.GraphTransferInfo.Destination.valueOf(destination_); - return result == null ? org.tensorflow.proto.framework.GraphTransferInfo.Destination.UNRECOGNIZED : result; - } - /** - *
-     * Destination of graph transfer
-     * 
- * - * .tensorflow.GraphTransferInfo.Destination destination = 7; - */ - public Builder setDestination(org.tensorflow.proto.framework.GraphTransferInfo.Destination value) { - if (value == null) { - throw new NullPointerException(); - } - - destination_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Destination of graph transfer
-     * 
- * - * .tensorflow.GraphTransferInfo.Destination destination = 7; - */ - public Builder clearDestination() { - - destination_ = 0; - 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:tensorflow.GraphTransferInfo) - } - - // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferInfo) - private static final org.tensorflow.proto.framework.GraphTransferInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.GraphTransferInfo(); - } - - public static org.tensorflow.proto.framework.GraphTransferInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GraphTransferInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GraphTransferInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferInfoOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferInfoOrBuilder.java deleted file mode 100644 index d999e1d9d48..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferInfoOrBuilder.java +++ /dev/null @@ -1,190 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/graph_transfer_info.proto - -package org.tensorflow.proto.framework; - -public interface GraphTransferInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.GraphTransferInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - java.util.List - getNodeInfoList(); - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - org.tensorflow.proto.framework.GraphTransferNodeInfo getNodeInfo(int index); - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - int getNodeInfoCount(); - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - java.util.List - getNodeInfoOrBuilderList(); - /** - * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - */ - org.tensorflow.proto.framework.GraphTransferNodeInfoOrBuilder getNodeInfoOrBuilder( - int index); - - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - java.util.List - getConstNodeInfoList(); - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - org.tensorflow.proto.framework.GraphTransferConstNodeInfo getConstNodeInfo(int index); - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - int getConstNodeInfoCount(); - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - java.util.List - getConstNodeInfoOrBuilderList(); - /** - * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - */ - org.tensorflow.proto.framework.GraphTransferConstNodeInfoOrBuilder getConstNodeInfoOrBuilder( - int index); - - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - java.util.List - getNodeInputInfoList(); - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - org.tensorflow.proto.framework.GraphTransferNodeInputInfo getNodeInputInfo(int index); - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - int getNodeInputInfoCount(); - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - java.util.List - getNodeInputInfoOrBuilderList(); - /** - * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - */ - org.tensorflow.proto.framework.GraphTransferNodeInputInfoOrBuilder getNodeInputInfoOrBuilder( - int index); - - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - java.util.List - getNodeOutputInfoList(); - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - org.tensorflow.proto.framework.GraphTransferNodeOutputInfo getNodeOutputInfo(int index); - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - int getNodeOutputInfoCount(); - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - java.util.List - getNodeOutputInfoOrBuilderList(); - /** - * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - */ - org.tensorflow.proto.framework.GraphTransferNodeOutputInfoOrBuilder getNodeOutputInfoOrBuilder( - int index); - - /** - *
-   * Input Node parameters of transferred graph
-   * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - java.util.List - getGraphInputNodeInfoList(); - /** - *
-   * Input Node parameters of transferred graph
-   * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfo getGraphInputNodeInfo(int index); - /** - *
-   * Input Node parameters of transferred graph
-   * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - int getGraphInputNodeInfoCount(); - /** - *
-   * Input Node parameters of transferred graph
-   * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - java.util.List - getGraphInputNodeInfoOrBuilderList(); - /** - *
-   * Input Node parameters of transferred graph
-   * 
- * - * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - */ - org.tensorflow.proto.framework.GraphTransferGraphInputNodeInfoOrBuilder getGraphInputNodeInfoOrBuilder( - int index); - - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - java.util.List - getGraphOutputNodeInfoList(); - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfo getGraphOutputNodeInfo(int index); - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - int getGraphOutputNodeInfoCount(); - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - java.util.List - getGraphOutputNodeInfoOrBuilderList(); - /** - * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - */ - org.tensorflow.proto.framework.GraphTransferGraphOutputNodeInfoOrBuilder getGraphOutputNodeInfoOrBuilder( - int index); - - /** - *
-   * Destination of graph transfer
-   * 
- * - * .tensorflow.GraphTransferInfo.Destination destination = 7; - */ - int getDestinationValue(); - /** - *
-   * Destination of graph transfer
-   * 
- * - * .tensorflow.GraphTransferInfo.Destination destination = 7; - */ - org.tensorflow.proto.framework.GraphTransferInfo.Destination getDestination(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeInfo.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeInfo.java deleted file mode 100644 index d144359008c..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeInfo.java +++ /dev/null @@ -1,958 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/graph_transfer_info.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.GraphTransferNodeInfo} - */ -public final class GraphTransferNodeInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.GraphTransferNodeInfo) - GraphTransferNodeInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use GraphTransferNodeInfo.newBuilder() to construct. - private GraphTransferNodeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GraphTransferNodeInfo() { - name_ = ""; - typeName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GraphTransferNodeInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GraphTransferNodeInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - - nodeId_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - typeName_ = s; - break; - } - case 32: { - - socOpId_ = input.readInt32(); - break; - } - case 40: { - - paddingId_ = input.readInt32(); - break; - } - case 48: { - - inputCount_ = input.readInt32(); - break; - } - case 56: { - - outputCount_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphTransferNodeInfo.class, org.tensorflow.proto.framework.GraphTransferNodeInfo.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_ID_FIELD_NUMBER = 2; - private int nodeId_; - /** - * int32 node_id = 2; - */ - public int getNodeId() { - return nodeId_; - } - - public static final int TYPE_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object typeName_; - /** - * string type_name = 3; - */ - public java.lang.String getTypeName() { - java.lang.Object ref = typeName_; - 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(); - typeName_ = s; - return s; - } - } - /** - * string type_name = 3; - */ - public com.google.protobuf.ByteString - getTypeNameBytes() { - java.lang.Object ref = typeName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - typeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SOC_OP_ID_FIELD_NUMBER = 4; - private int socOpId_; - /** - * int32 soc_op_id = 4; - */ - public int getSocOpId() { - return socOpId_; - } - - public static final int PADDING_ID_FIELD_NUMBER = 5; - private int paddingId_; - /** - * int32 padding_id = 5; - */ - public int getPaddingId() { - return paddingId_; - } - - public static final int INPUT_COUNT_FIELD_NUMBER = 6; - private int inputCount_; - /** - * int32 input_count = 6; - */ - public int getInputCount() { - return inputCount_; - } - - public static final int OUTPUT_COUNT_FIELD_NUMBER = 7; - private int outputCount_; - /** - * int32 output_count = 7; - */ - public int getOutputCount() { - return outputCount_; - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (nodeId_ != 0) { - output.writeInt32(2, nodeId_); - } - if (!getTypeNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, typeName_); - } - if (socOpId_ != 0) { - output.writeInt32(4, socOpId_); - } - if (paddingId_ != 0) { - output.writeInt32(5, paddingId_); - } - if (inputCount_ != 0) { - output.writeInt32(6, inputCount_); - } - if (outputCount_ != 0) { - output.writeInt32(7, outputCount_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (nodeId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, nodeId_); - } - if (!getTypeNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, typeName_); - } - if (socOpId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, socOpId_); - } - if (paddingId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, paddingId_); - } - if (inputCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, inputCount_); - } - if (outputCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, outputCount_); - } - 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 org.tensorflow.proto.framework.GraphTransferNodeInfo)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.GraphTransferNodeInfo other = (org.tensorflow.proto.framework.GraphTransferNodeInfo) obj; - - if (!getName() - .equals(other.getName())) return false; - if (getNodeId() - != other.getNodeId()) return false; - if (!getTypeName() - .equals(other.getTypeName())) return false; - if (getSocOpId() - != other.getSocOpId()) return false; - if (getPaddingId() - != other.getPaddingId()) return false; - if (getInputCount() - != other.getInputCount()) return false; - if (getOutputCount() - != other.getOutputCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + NODE_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodeId(); - hash = (37 * hash) + TYPE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getTypeName().hashCode(); - hash = (37 * hash) + SOC_OP_ID_FIELD_NUMBER; - hash = (53 * hash) + getSocOpId(); - hash = (37 * hash) + PADDING_ID_FIELD_NUMBER; - hash = (53 * hash) + getPaddingId(); - hash = (37 * hash) + INPUT_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getInputCount(); - hash = (37 * hash) + OUTPUT_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getOutputCount(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.GraphTransferNodeInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInfo 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 org.tensorflow.proto.framework.GraphTransferNodeInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInfo 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 org.tensorflow.proto.framework.GraphTransferNodeInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInfo 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(org.tensorflow.proto.framework.GraphTransferNodeInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.GraphTransferNodeInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferNodeInfo) - org.tensorflow.proto.framework.GraphTransferNodeInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphTransferNodeInfo.class, org.tensorflow.proto.framework.GraphTransferNodeInfo.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.GraphTransferNodeInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - nodeId_ = 0; - - typeName_ = ""; - - socOpId_ = 0; - - paddingId_ = 0; - - inputCount_ = 0; - - outputCount_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInfo_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferNodeInfo getDefaultInstanceForType() { - return org.tensorflow.proto.framework.GraphTransferNodeInfo.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferNodeInfo build() { - org.tensorflow.proto.framework.GraphTransferNodeInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferNodeInfo buildPartial() { - org.tensorflow.proto.framework.GraphTransferNodeInfo result = new org.tensorflow.proto.framework.GraphTransferNodeInfo(this); - result.name_ = name_; - result.nodeId_ = nodeId_; - result.typeName_ = typeName_; - result.socOpId_ = socOpId_; - result.paddingId_ = paddingId_; - result.inputCount_ = inputCount_; - result.outputCount_ = outputCount_; - 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 org.tensorflow.proto.framework.GraphTransferNodeInfo) { - return mergeFrom((org.tensorflow.proto.framework.GraphTransferNodeInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.GraphTransferNodeInfo other) { - if (other == org.tensorflow.proto.framework.GraphTransferNodeInfo.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getNodeId() != 0) { - setNodeId(other.getNodeId()); - } - if (!other.getTypeName().isEmpty()) { - typeName_ = other.typeName_; - onChanged(); - } - if (other.getSocOpId() != 0) { - setSocOpId(other.getSocOpId()); - } - if (other.getPaddingId() != 0) { - setPaddingId(other.getPaddingId()); - } - if (other.getInputCount() != 0) { - setInputCount(other.getInputCount()); - } - if (other.getOutputCount() != 0) { - setOutputCount(other.getOutputCount()); - } - 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 { - org.tensorflow.proto.framework.GraphTransferNodeInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.GraphTransferNodeInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int nodeId_ ; - /** - * int32 node_id = 2; - */ - public int getNodeId() { - return nodeId_; - } - /** - * int32 node_id = 2; - */ - public Builder setNodeId(int value) { - - nodeId_ = value; - onChanged(); - return this; - } - /** - * int32 node_id = 2; - */ - public Builder clearNodeId() { - - nodeId_ = 0; - onChanged(); - return this; - } - - private java.lang.Object typeName_ = ""; - /** - * string type_name = 3; - */ - public java.lang.String getTypeName() { - java.lang.Object ref = typeName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - typeName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string type_name = 3; - */ - public com.google.protobuf.ByteString - getTypeNameBytes() { - java.lang.Object ref = typeName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - typeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string type_name = 3; - */ - public Builder setTypeName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - typeName_ = value; - onChanged(); - return this; - } - /** - * string type_name = 3; - */ - public Builder clearTypeName() { - - typeName_ = getDefaultInstance().getTypeName(); - onChanged(); - return this; - } - /** - * string type_name = 3; - */ - public Builder setTypeNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - typeName_ = value; - onChanged(); - return this; - } - - private int socOpId_ ; - /** - * int32 soc_op_id = 4; - */ - public int getSocOpId() { - return socOpId_; - } - /** - * int32 soc_op_id = 4; - */ - public Builder setSocOpId(int value) { - - socOpId_ = value; - onChanged(); - return this; - } - /** - * int32 soc_op_id = 4; - */ - public Builder clearSocOpId() { - - socOpId_ = 0; - onChanged(); - return this; - } - - private int paddingId_ ; - /** - * int32 padding_id = 5; - */ - public int getPaddingId() { - return paddingId_; - } - /** - * int32 padding_id = 5; - */ - public Builder setPaddingId(int value) { - - paddingId_ = value; - onChanged(); - return this; - } - /** - * int32 padding_id = 5; - */ - public Builder clearPaddingId() { - - paddingId_ = 0; - onChanged(); - return this; - } - - private int inputCount_ ; - /** - * int32 input_count = 6; - */ - public int getInputCount() { - return inputCount_; - } - /** - * int32 input_count = 6; - */ - public Builder setInputCount(int value) { - - inputCount_ = value; - onChanged(); - return this; - } - /** - * int32 input_count = 6; - */ - public Builder clearInputCount() { - - inputCount_ = 0; - onChanged(); - return this; - } - - private int outputCount_ ; - /** - * int32 output_count = 7; - */ - public int getOutputCount() { - return outputCount_; - } - /** - * int32 output_count = 7; - */ - public Builder setOutputCount(int value) { - - outputCount_ = value; - onChanged(); - return this; - } - /** - * int32 output_count = 7; - */ - public Builder clearOutputCount() { - - outputCount_ = 0; - 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:tensorflow.GraphTransferNodeInfo) - } - - // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferNodeInfo) - private static final org.tensorflow.proto.framework.GraphTransferNodeInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.GraphTransferNodeInfo(); - } - - public static org.tensorflow.proto.framework.GraphTransferNodeInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GraphTransferNodeInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GraphTransferNodeInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferNodeInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeInput.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeInput.java deleted file mode 100644 index 77ad6b87dc8..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeInput.java +++ /dev/null @@ -1,533 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/graph_transfer_info.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.GraphTransferNodeInput} - */ -public final class GraphTransferNodeInput extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.GraphTransferNodeInput) - GraphTransferNodeInputOrBuilder { -private static final long serialVersionUID = 0L; - // Use GraphTransferNodeInput.newBuilder() to construct. - private GraphTransferNodeInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GraphTransferNodeInput() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GraphTransferNodeInput(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GraphTransferNodeInput( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - nodeId_ = input.readInt32(); - break; - } - case 16: { - - outputPort_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInput_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInput_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphTransferNodeInput.class, org.tensorflow.proto.framework.GraphTransferNodeInput.Builder.class); - } - - public static final int NODE_ID_FIELD_NUMBER = 1; - private int nodeId_; - /** - * int32 node_id = 1; - */ - public int getNodeId() { - return nodeId_; - } - - public static final int OUTPUT_PORT_FIELD_NUMBER = 2; - private int outputPort_; - /** - * int32 output_port = 2; - */ - public int getOutputPort() { - return outputPort_; - } - - 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 (nodeId_ != 0) { - output.writeInt32(1, nodeId_); - } - if (outputPort_ != 0) { - output.writeInt32(2, outputPort_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nodeId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, nodeId_); - } - if (outputPort_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, outputPort_); - } - 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 org.tensorflow.proto.framework.GraphTransferNodeInput)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.GraphTransferNodeInput other = (org.tensorflow.proto.framework.GraphTransferNodeInput) obj; - - if (getNodeId() - != other.getNodeId()) return false; - if (getOutputPort() - != other.getOutputPort()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NODE_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodeId(); - hash = (37 * hash) + OUTPUT_PORT_FIELD_NUMBER; - hash = (53 * hash) + getOutputPort(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.GraphTransferNodeInput parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInput parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInput parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInput parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInput parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInput parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInput parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInput 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 org.tensorflow.proto.framework.GraphTransferNodeInput parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInput 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 org.tensorflow.proto.framework.GraphTransferNodeInput parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInput 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(org.tensorflow.proto.framework.GraphTransferNodeInput prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.GraphTransferNodeInput} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferNodeInput) - org.tensorflow.proto.framework.GraphTransferNodeInputOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInput_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInput_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphTransferNodeInput.class, org.tensorflow.proto.framework.GraphTransferNodeInput.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.GraphTransferNodeInput.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - nodeId_ = 0; - - outputPort_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInput_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferNodeInput getDefaultInstanceForType() { - return org.tensorflow.proto.framework.GraphTransferNodeInput.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferNodeInput build() { - org.tensorflow.proto.framework.GraphTransferNodeInput result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferNodeInput buildPartial() { - org.tensorflow.proto.framework.GraphTransferNodeInput result = new org.tensorflow.proto.framework.GraphTransferNodeInput(this); - result.nodeId_ = nodeId_; - result.outputPort_ = outputPort_; - 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 org.tensorflow.proto.framework.GraphTransferNodeInput) { - return mergeFrom((org.tensorflow.proto.framework.GraphTransferNodeInput)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.GraphTransferNodeInput other) { - if (other == org.tensorflow.proto.framework.GraphTransferNodeInput.getDefaultInstance()) return this; - if (other.getNodeId() != 0) { - setNodeId(other.getNodeId()); - } - if (other.getOutputPort() != 0) { - setOutputPort(other.getOutputPort()); - } - 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 { - org.tensorflow.proto.framework.GraphTransferNodeInput parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.GraphTransferNodeInput) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int nodeId_ ; - /** - * int32 node_id = 1; - */ - public int getNodeId() { - return nodeId_; - } - /** - * int32 node_id = 1; - */ - public Builder setNodeId(int value) { - - nodeId_ = value; - onChanged(); - return this; - } - /** - * int32 node_id = 1; - */ - public Builder clearNodeId() { - - nodeId_ = 0; - onChanged(); - return this; - } - - private int outputPort_ ; - /** - * int32 output_port = 2; - */ - public int getOutputPort() { - return outputPort_; - } - /** - * int32 output_port = 2; - */ - public Builder setOutputPort(int value) { - - outputPort_ = value; - onChanged(); - return this; - } - /** - * int32 output_port = 2; - */ - public Builder clearOutputPort() { - - outputPort_ = 0; - 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:tensorflow.GraphTransferNodeInput) - } - - // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferNodeInput) - private static final org.tensorflow.proto.framework.GraphTransferNodeInput DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.GraphTransferNodeInput(); - } - - public static org.tensorflow.proto.framework.GraphTransferNodeInput getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GraphTransferNodeInput parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GraphTransferNodeInput(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferNodeInput getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeInputInfo.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeInputInfo.java deleted file mode 100644 index 71d0552eacd..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeInputInfo.java +++ /dev/null @@ -1,822 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/graph_transfer_info.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.GraphTransferNodeInputInfo} - */ -public final class GraphTransferNodeInputInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.GraphTransferNodeInputInfo) - GraphTransferNodeInputInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use GraphTransferNodeInputInfo.newBuilder() to construct. - private GraphTransferNodeInputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GraphTransferNodeInputInfo() { - nodeInput_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GraphTransferNodeInputInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GraphTransferNodeInputInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - nodeId_ = input.readInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - nodeInput_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nodeInput_.add( - input.readMessage(org.tensorflow.proto.framework.GraphTransferNodeInput.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)) { - nodeInput_ = java.util.Collections.unmodifiableList(nodeInput_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInputInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInputInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphTransferNodeInputInfo.class, org.tensorflow.proto.framework.GraphTransferNodeInputInfo.Builder.class); - } - - public static final int NODE_ID_FIELD_NUMBER = 1; - private int nodeId_; - /** - * int32 node_id = 1; - */ - public int getNodeId() { - return nodeId_; - } - - public static final int NODE_INPUT_FIELD_NUMBER = 2; - private java.util.List nodeInput_; - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public java.util.List getNodeInputList() { - return nodeInput_; - } - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public java.util.List - getNodeInputOrBuilderList() { - return nodeInput_; - } - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public int getNodeInputCount() { - return nodeInput_.size(); - } - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public org.tensorflow.proto.framework.GraphTransferNodeInput getNodeInput(int index) { - return nodeInput_.get(index); - } - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public org.tensorflow.proto.framework.GraphTransferNodeInputOrBuilder getNodeInputOrBuilder( - int index) { - return nodeInput_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (nodeId_ != 0) { - output.writeInt32(1, nodeId_); - } - for (int i = 0; i < nodeInput_.size(); i++) { - output.writeMessage(2, nodeInput_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nodeId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, nodeId_); - } - for (int i = 0; i < nodeInput_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, nodeInput_.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 org.tensorflow.proto.framework.GraphTransferNodeInputInfo)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.GraphTransferNodeInputInfo other = (org.tensorflow.proto.framework.GraphTransferNodeInputInfo) obj; - - if (getNodeId() - != other.getNodeId()) return false; - if (!getNodeInputList() - .equals(other.getNodeInputList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NODE_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodeId(); - if (getNodeInputCount() > 0) { - hash = (37 * hash) + NODE_INPUT_FIELD_NUMBER; - hash = (53 * hash) + getNodeInputList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.GraphTransferNodeInputInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInputInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInputInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInputInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInputInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInputInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInputInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInputInfo 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 org.tensorflow.proto.framework.GraphTransferNodeInputInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInputInfo 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 org.tensorflow.proto.framework.GraphTransferNodeInputInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferNodeInputInfo 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(org.tensorflow.proto.framework.GraphTransferNodeInputInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.GraphTransferNodeInputInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferNodeInputInfo) - org.tensorflow.proto.framework.GraphTransferNodeInputInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInputInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInputInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphTransferNodeInputInfo.class, org.tensorflow.proto.framework.GraphTransferNodeInputInfo.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.GraphTransferNodeInputInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNodeInputFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - nodeId_ = 0; - - if (nodeInputBuilder_ == null) { - nodeInput_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - nodeInputBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInputInfo_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferNodeInputInfo getDefaultInstanceForType() { - return org.tensorflow.proto.framework.GraphTransferNodeInputInfo.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferNodeInputInfo build() { - org.tensorflow.proto.framework.GraphTransferNodeInputInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferNodeInputInfo buildPartial() { - org.tensorflow.proto.framework.GraphTransferNodeInputInfo result = new org.tensorflow.proto.framework.GraphTransferNodeInputInfo(this); - int from_bitField0_ = bitField0_; - result.nodeId_ = nodeId_; - if (nodeInputBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodeInput_ = java.util.Collections.unmodifiableList(nodeInput_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodeInput_ = nodeInput_; - } else { - result.nodeInput_ = nodeInputBuilder_.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 org.tensorflow.proto.framework.GraphTransferNodeInputInfo) { - return mergeFrom((org.tensorflow.proto.framework.GraphTransferNodeInputInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.GraphTransferNodeInputInfo other) { - if (other == org.tensorflow.proto.framework.GraphTransferNodeInputInfo.getDefaultInstance()) return this; - if (other.getNodeId() != 0) { - setNodeId(other.getNodeId()); - } - if (nodeInputBuilder_ == null) { - if (!other.nodeInput_.isEmpty()) { - if (nodeInput_.isEmpty()) { - nodeInput_ = other.nodeInput_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodeInputIsMutable(); - nodeInput_.addAll(other.nodeInput_); - } - onChanged(); - } - } else { - if (!other.nodeInput_.isEmpty()) { - if (nodeInputBuilder_.isEmpty()) { - nodeInputBuilder_.dispose(); - nodeInputBuilder_ = null; - nodeInput_ = other.nodeInput_; - bitField0_ = (bitField0_ & ~0x00000001); - nodeInputBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodeInputFieldBuilder() : null; - } else { - nodeInputBuilder_.addAllMessages(other.nodeInput_); - } - } - } - 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 { - org.tensorflow.proto.framework.GraphTransferNodeInputInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.GraphTransferNodeInputInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int nodeId_ ; - /** - * int32 node_id = 1; - */ - public int getNodeId() { - return nodeId_; - } - /** - * int32 node_id = 1; - */ - public Builder setNodeId(int value) { - - nodeId_ = value; - onChanged(); - return this; - } - /** - * int32 node_id = 1; - */ - public Builder clearNodeId() { - - nodeId_ = 0; - onChanged(); - return this; - } - - private java.util.List nodeInput_ = - java.util.Collections.emptyList(); - private void ensureNodeInputIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nodeInput_ = new java.util.ArrayList(nodeInput_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphTransferNodeInput, org.tensorflow.proto.framework.GraphTransferNodeInput.Builder, org.tensorflow.proto.framework.GraphTransferNodeInputOrBuilder> nodeInputBuilder_; - - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public java.util.List getNodeInputList() { - if (nodeInputBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodeInput_); - } else { - return nodeInputBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public int getNodeInputCount() { - if (nodeInputBuilder_ == null) { - return nodeInput_.size(); - } else { - return nodeInputBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public org.tensorflow.proto.framework.GraphTransferNodeInput getNodeInput(int index) { - if (nodeInputBuilder_ == null) { - return nodeInput_.get(index); - } else { - return nodeInputBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public Builder setNodeInput( - int index, org.tensorflow.proto.framework.GraphTransferNodeInput value) { - if (nodeInputBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeInputIsMutable(); - nodeInput_.set(index, value); - onChanged(); - } else { - nodeInputBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public Builder setNodeInput( - int index, org.tensorflow.proto.framework.GraphTransferNodeInput.Builder builderForValue) { - if (nodeInputBuilder_ == null) { - ensureNodeInputIsMutable(); - nodeInput_.set(index, builderForValue.build()); - onChanged(); - } else { - nodeInputBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public Builder addNodeInput(org.tensorflow.proto.framework.GraphTransferNodeInput value) { - if (nodeInputBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeInputIsMutable(); - nodeInput_.add(value); - onChanged(); - } else { - nodeInputBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public Builder addNodeInput( - int index, org.tensorflow.proto.framework.GraphTransferNodeInput value) { - if (nodeInputBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeInputIsMutable(); - nodeInput_.add(index, value); - onChanged(); - } else { - nodeInputBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public Builder addNodeInput( - org.tensorflow.proto.framework.GraphTransferNodeInput.Builder builderForValue) { - if (nodeInputBuilder_ == null) { - ensureNodeInputIsMutable(); - nodeInput_.add(builderForValue.build()); - onChanged(); - } else { - nodeInputBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public Builder addNodeInput( - int index, org.tensorflow.proto.framework.GraphTransferNodeInput.Builder builderForValue) { - if (nodeInputBuilder_ == null) { - ensureNodeInputIsMutable(); - nodeInput_.add(index, builderForValue.build()); - onChanged(); - } else { - nodeInputBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public Builder addAllNodeInput( - java.lang.Iterable values) { - if (nodeInputBuilder_ == null) { - ensureNodeInputIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodeInput_); - onChanged(); - } else { - nodeInputBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public Builder clearNodeInput() { - if (nodeInputBuilder_ == null) { - nodeInput_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodeInputBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public Builder removeNodeInput(int index) { - if (nodeInputBuilder_ == null) { - ensureNodeInputIsMutable(); - nodeInput_.remove(index); - onChanged(); - } else { - nodeInputBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public org.tensorflow.proto.framework.GraphTransferNodeInput.Builder getNodeInputBuilder( - int index) { - return getNodeInputFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public org.tensorflow.proto.framework.GraphTransferNodeInputOrBuilder getNodeInputOrBuilder( - int index) { - if (nodeInputBuilder_ == null) { - return nodeInput_.get(index); } else { - return nodeInputBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public java.util.List - getNodeInputOrBuilderList() { - if (nodeInputBuilder_ != null) { - return nodeInputBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodeInput_); - } - } - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public org.tensorflow.proto.framework.GraphTransferNodeInput.Builder addNodeInputBuilder() { - return getNodeInputFieldBuilder().addBuilder( - org.tensorflow.proto.framework.GraphTransferNodeInput.getDefaultInstance()); - } - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public org.tensorflow.proto.framework.GraphTransferNodeInput.Builder addNodeInputBuilder( - int index) { - return getNodeInputFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.GraphTransferNodeInput.getDefaultInstance()); - } - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - public java.util.List - getNodeInputBuilderList() { - return getNodeInputFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphTransferNodeInput, org.tensorflow.proto.framework.GraphTransferNodeInput.Builder, org.tensorflow.proto.framework.GraphTransferNodeInputOrBuilder> - getNodeInputFieldBuilder() { - if (nodeInputBuilder_ == null) { - nodeInputBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphTransferNodeInput, org.tensorflow.proto.framework.GraphTransferNodeInput.Builder, org.tensorflow.proto.framework.GraphTransferNodeInputOrBuilder>( - nodeInput_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - nodeInput_ = null; - } - return nodeInputBuilder_; - } - @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:tensorflow.GraphTransferNodeInputInfo) - } - - // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferNodeInputInfo) - private static final org.tensorflow.proto.framework.GraphTransferNodeInputInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.GraphTransferNodeInputInfo(); - } - - public static org.tensorflow.proto.framework.GraphTransferNodeInputInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GraphTransferNodeInputInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GraphTransferNodeInputInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferNodeInputInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeInputInfoOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeInputInfoOrBuilder.java deleted file mode 100644 index 552a182d67b..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeInputInfoOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/graph_transfer_info.proto - -package org.tensorflow.proto.framework; - -public interface GraphTransferNodeInputInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.GraphTransferNodeInputInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 node_id = 1; - */ - int getNodeId(); - - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - java.util.List - getNodeInputList(); - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - org.tensorflow.proto.framework.GraphTransferNodeInput getNodeInput(int index); - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - int getNodeInputCount(); - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - java.util.List - getNodeInputOrBuilderList(); - /** - * repeated .tensorflow.GraphTransferNodeInput node_input = 2; - */ - org.tensorflow.proto.framework.GraphTransferNodeInputOrBuilder getNodeInputOrBuilder( - int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeOutputInfo.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeOutputInfo.java deleted file mode 100644 index c39062bebdb..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeOutputInfo.java +++ /dev/null @@ -1,639 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/graph_transfer_info.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.GraphTransferNodeOutputInfo} - */ -public final class GraphTransferNodeOutputInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.GraphTransferNodeOutputInfo) - GraphTransferNodeOutputInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use GraphTransferNodeOutputInfo.newBuilder() to construct. - private GraphTransferNodeOutputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GraphTransferNodeOutputInfo() { - maxByteSize_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GraphTransferNodeOutputInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GraphTransferNodeOutputInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - nodeId_ = input.readInt32(); - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - maxByteSize_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - maxByteSize_.addInt(input.readInt32()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - maxByteSize_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - maxByteSize_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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)) { - maxByteSize_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeOutputInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeOutputInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphTransferNodeOutputInfo.class, org.tensorflow.proto.framework.GraphTransferNodeOutputInfo.Builder.class); - } - - public static final int NODE_ID_FIELD_NUMBER = 1; - private int nodeId_; - /** - * int32 node_id = 1; - */ - public int getNodeId() { - return nodeId_; - } - - public static final int MAX_BYTE_SIZE_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.IntList maxByteSize_; - /** - * repeated int32 max_byte_size = 2; - */ - public java.util.List - getMaxByteSizeList() { - return maxByteSize_; - } - /** - * repeated int32 max_byte_size = 2; - */ - public int getMaxByteSizeCount() { - return maxByteSize_.size(); - } - /** - * repeated int32 max_byte_size = 2; - */ - public int getMaxByteSize(int index) { - return maxByteSize_.getInt(index); - } - private int maxByteSizeMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (nodeId_ != 0) { - output.writeInt32(1, nodeId_); - } - if (getMaxByteSizeList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(maxByteSizeMemoizedSerializedSize); - } - for (int i = 0; i < maxByteSize_.size(); i++) { - output.writeInt32NoTag(maxByteSize_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nodeId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, nodeId_); - } - { - int dataSize = 0; - for (int i = 0; i < maxByteSize_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(maxByteSize_.getInt(i)); - } - size += dataSize; - if (!getMaxByteSizeList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - maxByteSizeMemoizedSerializedSize = dataSize; - } - 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 org.tensorflow.proto.framework.GraphTransferNodeOutputInfo)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.GraphTransferNodeOutputInfo other = (org.tensorflow.proto.framework.GraphTransferNodeOutputInfo) obj; - - if (getNodeId() - != other.getNodeId()) return false; - if (!getMaxByteSizeList() - .equals(other.getMaxByteSizeList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NODE_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodeId(); - if (getMaxByteSizeCount() > 0) { - hash = (37 * hash) + MAX_BYTE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getMaxByteSizeList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.GraphTransferNodeOutputInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferNodeOutputInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferNodeOutputInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferNodeOutputInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferNodeOutputInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.GraphTransferNodeOutputInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.GraphTransferNodeOutputInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferNodeOutputInfo 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 org.tensorflow.proto.framework.GraphTransferNodeOutputInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferNodeOutputInfo 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 org.tensorflow.proto.framework.GraphTransferNodeOutputInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.GraphTransferNodeOutputInfo 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(org.tensorflow.proto.framework.GraphTransferNodeOutputInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.GraphTransferNodeOutputInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferNodeOutputInfo) - org.tensorflow.proto.framework.GraphTransferNodeOutputInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeOutputInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeOutputInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphTransferNodeOutputInfo.class, org.tensorflow.proto.framework.GraphTransferNodeOutputInfo.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.GraphTransferNodeOutputInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - nodeId_ = 0; - - maxByteSize_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeOutputInfo_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferNodeOutputInfo getDefaultInstanceForType() { - return org.tensorflow.proto.framework.GraphTransferNodeOutputInfo.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferNodeOutputInfo build() { - org.tensorflow.proto.framework.GraphTransferNodeOutputInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferNodeOutputInfo buildPartial() { - org.tensorflow.proto.framework.GraphTransferNodeOutputInfo result = new org.tensorflow.proto.framework.GraphTransferNodeOutputInfo(this); - int from_bitField0_ = bitField0_; - result.nodeId_ = nodeId_; - if (((bitField0_ & 0x00000001) != 0)) { - maxByteSize_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.maxByteSize_ = maxByteSize_; - 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 org.tensorflow.proto.framework.GraphTransferNodeOutputInfo) { - return mergeFrom((org.tensorflow.proto.framework.GraphTransferNodeOutputInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.GraphTransferNodeOutputInfo other) { - if (other == org.tensorflow.proto.framework.GraphTransferNodeOutputInfo.getDefaultInstance()) return this; - if (other.getNodeId() != 0) { - setNodeId(other.getNodeId()); - } - if (!other.maxByteSize_.isEmpty()) { - if (maxByteSize_.isEmpty()) { - maxByteSize_ = other.maxByteSize_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureMaxByteSizeIsMutable(); - maxByteSize_.addAll(other.maxByteSize_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.GraphTransferNodeOutputInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.GraphTransferNodeOutputInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int nodeId_ ; - /** - * int32 node_id = 1; - */ - public int getNodeId() { - return nodeId_; - } - /** - * int32 node_id = 1; - */ - public Builder setNodeId(int value) { - - nodeId_ = value; - onChanged(); - return this; - } - /** - * int32 node_id = 1; - */ - public Builder clearNodeId() { - - nodeId_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList maxByteSize_ = emptyIntList(); - private void ensureMaxByteSizeIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - maxByteSize_ = mutableCopy(maxByteSize_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated int32 max_byte_size = 2; - */ - public java.util.List - getMaxByteSizeList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(maxByteSize_) : maxByteSize_; - } - /** - * repeated int32 max_byte_size = 2; - */ - public int getMaxByteSizeCount() { - return maxByteSize_.size(); - } - /** - * repeated int32 max_byte_size = 2; - */ - public int getMaxByteSize(int index) { - return maxByteSize_.getInt(index); - } - /** - * repeated int32 max_byte_size = 2; - */ - public Builder setMaxByteSize( - int index, int value) { - ensureMaxByteSizeIsMutable(); - maxByteSize_.setInt(index, value); - onChanged(); - return this; - } - /** - * repeated int32 max_byte_size = 2; - */ - public Builder addMaxByteSize(int value) { - ensureMaxByteSizeIsMutable(); - maxByteSize_.addInt(value); - onChanged(); - return this; - } - /** - * repeated int32 max_byte_size = 2; - */ - public Builder addAllMaxByteSize( - java.lang.Iterable values) { - ensureMaxByteSizeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, maxByteSize_); - onChanged(); - return this; - } - /** - * repeated int32 max_byte_size = 2; - */ - public Builder clearMaxByteSize() { - maxByteSize_ = emptyIntList(); - bitField0_ = (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:tensorflow.GraphTransferNodeOutputInfo) - } - - // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferNodeOutputInfo) - private static final org.tensorflow.proto.framework.GraphTransferNodeOutputInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.GraphTransferNodeOutputInfo(); - } - - public static org.tensorflow.proto.framework.GraphTransferNodeOutputInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GraphTransferNodeOutputInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GraphTransferNodeOutputInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.GraphTransferNodeOutputInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeOutputInfoOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeOutputInfoOrBuilder.java deleted file mode 100644 index 7721bc2dc6a..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeOutputInfoOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/graph_transfer_info.proto - -package org.tensorflow.proto.framework; - -public interface GraphTransferNodeOutputInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.GraphTransferNodeOutputInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 node_id = 1; - */ - int getNodeId(); - - /** - * repeated int32 max_byte_size = 2; - */ - java.util.List getMaxByteSizeList(); - /** - * repeated int32 max_byte_size = 2; - */ - int getMaxByteSizeCount(); - /** - * repeated int32 max_byte_size = 2; - */ - int getMaxByteSize(int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/HistogramProto.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/HistogramProto.java deleted file mode 100644 index e5e19354670..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/HistogramProto.java +++ /dev/null @@ -1,1120 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/summary.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Serialization format for histogram module in
- * core/lib/histogram/histogram.h
- * 
- * - * Protobuf type {@code tensorflow.HistogramProto} - */ -public final class HistogramProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.HistogramProto) - HistogramProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use HistogramProto.newBuilder() to construct. - private HistogramProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HistogramProto() { - bucketLimit_ = emptyDoubleList(); - bucket_ = emptyDoubleList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new HistogramProto(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HistogramProto( - 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 9: { - - min_ = input.readDouble(); - break; - } - case 17: { - - max_ = input.readDouble(); - break; - } - case 25: { - - num_ = input.readDouble(); - break; - } - case 33: { - - sum_ = input.readDouble(); - break; - } - case 41: { - - sumSquares_ = input.readDouble(); - break; - } - case 49: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - bucketLimit_ = newDoubleList(); - mutable_bitField0_ |= 0x00000001; - } - bucketLimit_.addDouble(input.readDouble()); - break; - } - case 50: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - bucketLimit_ = newDoubleList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - bucketLimit_.addDouble(input.readDouble()); - } - input.popLimit(limit); - break; - } - case 57: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - bucket_ = newDoubleList(); - mutable_bitField0_ |= 0x00000002; - } - bucket_.addDouble(input.readDouble()); - break; - } - case 58: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - bucket_ = newDoubleList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - bucket_.addDouble(input.readDouble()); - } - input.popLimit(limit); - 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)) { - bucketLimit_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - bucket_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SummaryProtos.internal_static_tensorflow_HistogramProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SummaryProtos.internal_static_tensorflow_HistogramProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.HistogramProto.class, org.tensorflow.proto.framework.HistogramProto.Builder.class); - } - - public static final int MIN_FIELD_NUMBER = 1; - private double min_; - /** - * double min = 1; - */ - public double getMin() { - return min_; - } - - public static final int MAX_FIELD_NUMBER = 2; - private double max_; - /** - * double max = 2; - */ - public double getMax() { - return max_; - } - - public static final int NUM_FIELD_NUMBER = 3; - private double num_; - /** - * double num = 3; - */ - public double getNum() { - return num_; - } - - public static final int SUM_FIELD_NUMBER = 4; - private double sum_; - /** - * double sum = 4; - */ - public double getSum() { - return sum_; - } - - public static final int SUM_SQUARES_FIELD_NUMBER = 5; - private double sumSquares_; - /** - * double sum_squares = 5; - */ - public double getSumSquares() { - return sumSquares_; - } - - public static final int BUCKET_LIMIT_FIELD_NUMBER = 6; - private com.google.protobuf.Internal.DoubleList bucketLimit_; - /** - *
-   * Parallel arrays encoding the bucket boundaries and the bucket values.
-   * bucket(i) is the count for the bucket i.  The range for
-   * a bucket is:
-   *   i == 0:  -DBL_MAX .. bucket_limit(0)
-   *   i != 0:  bucket_limit(i-1) .. bucket_limit(i)
-   * 
- * - * repeated double bucket_limit = 6 [packed = true]; - */ - public java.util.List - getBucketLimitList() { - return bucketLimit_; - } - /** - *
-   * Parallel arrays encoding the bucket boundaries and the bucket values.
-   * bucket(i) is the count for the bucket i.  The range for
-   * a bucket is:
-   *   i == 0:  -DBL_MAX .. bucket_limit(0)
-   *   i != 0:  bucket_limit(i-1) .. bucket_limit(i)
-   * 
- * - * repeated double bucket_limit = 6 [packed = true]; - */ - public int getBucketLimitCount() { - return bucketLimit_.size(); - } - /** - *
-   * Parallel arrays encoding the bucket boundaries and the bucket values.
-   * bucket(i) is the count for the bucket i.  The range for
-   * a bucket is:
-   *   i == 0:  -DBL_MAX .. bucket_limit(0)
-   *   i != 0:  bucket_limit(i-1) .. bucket_limit(i)
-   * 
- * - * repeated double bucket_limit = 6 [packed = true]; - */ - public double getBucketLimit(int index) { - return bucketLimit_.getDouble(index); - } - private int bucketLimitMemoizedSerializedSize = -1; - - public static final int BUCKET_FIELD_NUMBER = 7; - private com.google.protobuf.Internal.DoubleList bucket_; - /** - * repeated double bucket = 7 [packed = true]; - */ - public java.util.List - getBucketList() { - return bucket_; - } - /** - * repeated double bucket = 7 [packed = true]; - */ - public int getBucketCount() { - return bucket_.size(); - } - /** - * repeated double bucket = 7 [packed = true]; - */ - public double getBucket(int index) { - return bucket_.getDouble(index); - } - private int bucketMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (min_ != 0D) { - output.writeDouble(1, min_); - } - if (max_ != 0D) { - output.writeDouble(2, max_); - } - if (num_ != 0D) { - output.writeDouble(3, num_); - } - if (sum_ != 0D) { - output.writeDouble(4, sum_); - } - if (sumSquares_ != 0D) { - output.writeDouble(5, sumSquares_); - } - if (getBucketLimitList().size() > 0) { - output.writeUInt32NoTag(50); - output.writeUInt32NoTag(bucketLimitMemoizedSerializedSize); - } - for (int i = 0; i < bucketLimit_.size(); i++) { - output.writeDoubleNoTag(bucketLimit_.getDouble(i)); - } - if (getBucketList().size() > 0) { - output.writeUInt32NoTag(58); - output.writeUInt32NoTag(bucketMemoizedSerializedSize); - } - for (int i = 0; i < bucket_.size(); i++) { - output.writeDoubleNoTag(bucket_.getDouble(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (min_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, min_); - } - if (max_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, max_); - } - if (num_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, num_); - } - if (sum_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(4, sum_); - } - if (sumSquares_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(5, sumSquares_); - } - { - int dataSize = 0; - dataSize = 8 * getBucketLimitList().size(); - size += dataSize; - if (!getBucketLimitList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - bucketLimitMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - dataSize = 8 * getBucketList().size(); - size += dataSize; - if (!getBucketList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - bucketMemoizedSerializedSize = dataSize; - } - 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 org.tensorflow.proto.framework.HistogramProto)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.HistogramProto other = (org.tensorflow.proto.framework.HistogramProto) obj; - - if (java.lang.Double.doubleToLongBits(getMin()) - != java.lang.Double.doubleToLongBits( - other.getMin())) return false; - if (java.lang.Double.doubleToLongBits(getMax()) - != java.lang.Double.doubleToLongBits( - other.getMax())) return false; - if (java.lang.Double.doubleToLongBits(getNum()) - != java.lang.Double.doubleToLongBits( - other.getNum())) return false; - if (java.lang.Double.doubleToLongBits(getSum()) - != java.lang.Double.doubleToLongBits( - other.getSum())) return false; - if (java.lang.Double.doubleToLongBits(getSumSquares()) - != java.lang.Double.doubleToLongBits( - other.getSumSquares())) return false; - if (!getBucketLimitList() - .equals(other.getBucketLimitList())) return false; - if (!getBucketList() - .equals(other.getBucketList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MIN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMin())); - hash = (37 * hash) + MAX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMax())); - hash = (37 * hash) + NUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getNum())); - hash = (37 * hash) + SUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getSum())); - hash = (37 * hash) + SUM_SQUARES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getSumSquares())); - if (getBucketLimitCount() > 0) { - hash = (37 * hash) + BUCKET_LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getBucketLimitList().hashCode(); - } - if (getBucketCount() > 0) { - hash = (37 * hash) + BUCKET_FIELD_NUMBER; - hash = (53 * hash) + getBucketList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.HistogramProto parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.HistogramProto parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.HistogramProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.HistogramProto parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.HistogramProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.HistogramProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.HistogramProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.HistogramProto 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 org.tensorflow.proto.framework.HistogramProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.HistogramProto 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 org.tensorflow.proto.framework.HistogramProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.HistogramProto 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(org.tensorflow.proto.framework.HistogramProto 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; - } - /** - *
-   * Serialization format for histogram module in
-   * core/lib/histogram/histogram.h
-   * 
- * - * Protobuf type {@code tensorflow.HistogramProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.HistogramProto) - org.tensorflow.proto.framework.HistogramProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SummaryProtos.internal_static_tensorflow_HistogramProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SummaryProtos.internal_static_tensorflow_HistogramProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.HistogramProto.class, org.tensorflow.proto.framework.HistogramProto.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.HistogramProto.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - min_ = 0D; - - max_ = 0D; - - num_ = 0D; - - sum_ = 0D; - - sumSquares_ = 0D; - - bucketLimit_ = emptyDoubleList(); - bitField0_ = (bitField0_ & ~0x00000001); - bucket_ = emptyDoubleList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.SummaryProtos.internal_static_tensorflow_HistogramProto_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.HistogramProto getDefaultInstanceForType() { - return org.tensorflow.proto.framework.HistogramProto.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.HistogramProto build() { - org.tensorflow.proto.framework.HistogramProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.HistogramProto buildPartial() { - org.tensorflow.proto.framework.HistogramProto result = new org.tensorflow.proto.framework.HistogramProto(this); - int from_bitField0_ = bitField0_; - result.min_ = min_; - result.max_ = max_; - result.num_ = num_; - result.sum_ = sum_; - result.sumSquares_ = sumSquares_; - if (((bitField0_ & 0x00000001) != 0)) { - bucketLimit_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.bucketLimit_ = bucketLimit_; - if (((bitField0_ & 0x00000002) != 0)) { - bucket_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.bucket_ = bucket_; - 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 org.tensorflow.proto.framework.HistogramProto) { - return mergeFrom((org.tensorflow.proto.framework.HistogramProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.HistogramProto other) { - if (other == org.tensorflow.proto.framework.HistogramProto.getDefaultInstance()) return this; - if (other.getMin() != 0D) { - setMin(other.getMin()); - } - if (other.getMax() != 0D) { - setMax(other.getMax()); - } - if (other.getNum() != 0D) { - setNum(other.getNum()); - } - if (other.getSum() != 0D) { - setSum(other.getSum()); - } - if (other.getSumSquares() != 0D) { - setSumSquares(other.getSumSquares()); - } - if (!other.bucketLimit_.isEmpty()) { - if (bucketLimit_.isEmpty()) { - bucketLimit_ = other.bucketLimit_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBucketLimitIsMutable(); - bucketLimit_.addAll(other.bucketLimit_); - } - onChanged(); - } - if (!other.bucket_.isEmpty()) { - if (bucket_.isEmpty()) { - bucket_ = other.bucket_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureBucketIsMutable(); - bucket_.addAll(other.bucket_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.HistogramProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.HistogramProto) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private double min_ ; - /** - * double min = 1; - */ - public double getMin() { - return min_; - } - /** - * double min = 1; - */ - public Builder setMin(double value) { - - min_ = value; - onChanged(); - return this; - } - /** - * double min = 1; - */ - public Builder clearMin() { - - min_ = 0D; - onChanged(); - return this; - } - - private double max_ ; - /** - * double max = 2; - */ - public double getMax() { - return max_; - } - /** - * double max = 2; - */ - public Builder setMax(double value) { - - max_ = value; - onChanged(); - return this; - } - /** - * double max = 2; - */ - public Builder clearMax() { - - max_ = 0D; - onChanged(); - return this; - } - - private double num_ ; - /** - * double num = 3; - */ - public double getNum() { - return num_; - } - /** - * double num = 3; - */ - public Builder setNum(double value) { - - num_ = value; - onChanged(); - return this; - } - /** - * double num = 3; - */ - public Builder clearNum() { - - num_ = 0D; - onChanged(); - return this; - } - - private double sum_ ; - /** - * double sum = 4; - */ - public double getSum() { - return sum_; - } - /** - * double sum = 4; - */ - public Builder setSum(double value) { - - sum_ = value; - onChanged(); - return this; - } - /** - * double sum = 4; - */ - public Builder clearSum() { - - sum_ = 0D; - onChanged(); - return this; - } - - private double sumSquares_ ; - /** - * double sum_squares = 5; - */ - public double getSumSquares() { - return sumSquares_; - } - /** - * double sum_squares = 5; - */ - public Builder setSumSquares(double value) { - - sumSquares_ = value; - onChanged(); - return this; - } - /** - * double sum_squares = 5; - */ - public Builder clearSumSquares() { - - sumSquares_ = 0D; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.DoubleList bucketLimit_ = emptyDoubleList(); - private void ensureBucketLimitIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - bucketLimit_ = mutableCopy(bucketLimit_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * Parallel arrays encoding the bucket boundaries and the bucket values.
-     * bucket(i) is the count for the bucket i.  The range for
-     * a bucket is:
-     *   i == 0:  -DBL_MAX .. bucket_limit(0)
-     *   i != 0:  bucket_limit(i-1) .. bucket_limit(i)
-     * 
- * - * repeated double bucket_limit = 6 [packed = true]; - */ - public java.util.List - getBucketLimitList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(bucketLimit_) : bucketLimit_; - } - /** - *
-     * Parallel arrays encoding the bucket boundaries and the bucket values.
-     * bucket(i) is the count for the bucket i.  The range for
-     * a bucket is:
-     *   i == 0:  -DBL_MAX .. bucket_limit(0)
-     *   i != 0:  bucket_limit(i-1) .. bucket_limit(i)
-     * 
- * - * repeated double bucket_limit = 6 [packed = true]; - */ - public int getBucketLimitCount() { - return bucketLimit_.size(); - } - /** - *
-     * Parallel arrays encoding the bucket boundaries and the bucket values.
-     * bucket(i) is the count for the bucket i.  The range for
-     * a bucket is:
-     *   i == 0:  -DBL_MAX .. bucket_limit(0)
-     *   i != 0:  bucket_limit(i-1) .. bucket_limit(i)
-     * 
- * - * repeated double bucket_limit = 6 [packed = true]; - */ - public double getBucketLimit(int index) { - return bucketLimit_.getDouble(index); - } - /** - *
-     * Parallel arrays encoding the bucket boundaries and the bucket values.
-     * bucket(i) is the count for the bucket i.  The range for
-     * a bucket is:
-     *   i == 0:  -DBL_MAX .. bucket_limit(0)
-     *   i != 0:  bucket_limit(i-1) .. bucket_limit(i)
-     * 
- * - * repeated double bucket_limit = 6 [packed = true]; - */ - public Builder setBucketLimit( - int index, double value) { - ensureBucketLimitIsMutable(); - bucketLimit_.setDouble(index, value); - onChanged(); - return this; - } - /** - *
-     * Parallel arrays encoding the bucket boundaries and the bucket values.
-     * bucket(i) is the count for the bucket i.  The range for
-     * a bucket is:
-     *   i == 0:  -DBL_MAX .. bucket_limit(0)
-     *   i != 0:  bucket_limit(i-1) .. bucket_limit(i)
-     * 
- * - * repeated double bucket_limit = 6 [packed = true]; - */ - public Builder addBucketLimit(double value) { - ensureBucketLimitIsMutable(); - bucketLimit_.addDouble(value); - onChanged(); - return this; - } - /** - *
-     * Parallel arrays encoding the bucket boundaries and the bucket values.
-     * bucket(i) is the count for the bucket i.  The range for
-     * a bucket is:
-     *   i == 0:  -DBL_MAX .. bucket_limit(0)
-     *   i != 0:  bucket_limit(i-1) .. bucket_limit(i)
-     * 
- * - * repeated double bucket_limit = 6 [packed = true]; - */ - public Builder addAllBucketLimit( - java.lang.Iterable values) { - ensureBucketLimitIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, bucketLimit_); - onChanged(); - return this; - } - /** - *
-     * Parallel arrays encoding the bucket boundaries and the bucket values.
-     * bucket(i) is the count for the bucket i.  The range for
-     * a bucket is:
-     *   i == 0:  -DBL_MAX .. bucket_limit(0)
-     *   i != 0:  bucket_limit(i-1) .. bucket_limit(i)
-     * 
- * - * repeated double bucket_limit = 6 [packed = true]; - */ - public Builder clearBucketLimit() { - bucketLimit_ = emptyDoubleList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.DoubleList bucket_ = emptyDoubleList(); - private void ensureBucketIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - bucket_ = mutableCopy(bucket_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated double bucket = 7 [packed = true]; - */ - public java.util.List - getBucketList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(bucket_) : bucket_; - } - /** - * repeated double bucket = 7 [packed = true]; - */ - public int getBucketCount() { - return bucket_.size(); - } - /** - * repeated double bucket = 7 [packed = true]; - */ - public double getBucket(int index) { - return bucket_.getDouble(index); - } - /** - * repeated double bucket = 7 [packed = true]; - */ - public Builder setBucket( - int index, double value) { - ensureBucketIsMutable(); - bucket_.setDouble(index, value); - onChanged(); - return this; - } - /** - * repeated double bucket = 7 [packed = true]; - */ - public Builder addBucket(double value) { - ensureBucketIsMutable(); - bucket_.addDouble(value); - onChanged(); - return this; - } - /** - * repeated double bucket = 7 [packed = true]; - */ - public Builder addAllBucket( - java.lang.Iterable values) { - ensureBucketIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, bucket_); - onChanged(); - return this; - } - /** - * repeated double bucket = 7 [packed = true]; - */ - public Builder clearBucket() { - bucket_ = emptyDoubleList(); - bitField0_ = (bitField0_ & ~0x00000002); - 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:tensorflow.HistogramProto) - } - - // @@protoc_insertion_point(class_scope:tensorflow.HistogramProto) - private static final org.tensorflow.proto.framework.HistogramProto DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.HistogramProto(); - } - - public static org.tensorflow.proto.framework.HistogramProto getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HistogramProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HistogramProto(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.HistogramProto getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/InterconnectLink.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/InterconnectLink.java deleted file mode 100644 index 89fbd7a8dec..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/InterconnectLink.java +++ /dev/null @@ -1,660 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/device_attributes.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.InterconnectLink} - */ -public final class InterconnectLink extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.InterconnectLink) - InterconnectLinkOrBuilder { -private static final long serialVersionUID = 0L; - // Use InterconnectLink.newBuilder() to construct. - private InterconnectLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private InterconnectLink() { - type_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new InterconnectLink(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private InterconnectLink( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - deviceId_ = input.readInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - case 24: { - - strength_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.DeviceAttributesProtos.internal_static_tensorflow_InterconnectLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.DeviceAttributesProtos.internal_static_tensorflow_InterconnectLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.InterconnectLink.class, org.tensorflow.proto.framework.InterconnectLink.Builder.class); - } - - public static final int DEVICE_ID_FIELD_NUMBER = 1; - private int deviceId_; - /** - * int32 device_id = 1; - */ - public int getDeviceId() { - return deviceId_; - } - - public static final int TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object type_; - /** - * string type = 2; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - 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(); - type_ = s; - return s; - } - } - /** - * string type = 2; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STRENGTH_FIELD_NUMBER = 3; - private int strength_; - /** - * int32 strength = 3; - */ - public int getStrength() { - return strength_; - } - - 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 (deviceId_ != 0) { - output.writeInt32(1, deviceId_); - } - if (!getTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); - } - if (strength_ != 0) { - output.writeInt32(3, strength_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (deviceId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, deviceId_); - } - if (!getTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); - } - if (strength_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, strength_); - } - 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 org.tensorflow.proto.framework.InterconnectLink)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.InterconnectLink other = (org.tensorflow.proto.framework.InterconnectLink) obj; - - if (getDeviceId() - != other.getDeviceId()) return false; - if (!getType() - .equals(other.getType())) return false; - if (getStrength() - != other.getStrength()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DEVICE_ID_FIELD_NUMBER; - hash = (53 * hash) + getDeviceId(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - hash = (37 * hash) + STRENGTH_FIELD_NUMBER; - hash = (53 * hash) + getStrength(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.InterconnectLink parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.InterconnectLink parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.InterconnectLink parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.InterconnectLink parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.InterconnectLink parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.InterconnectLink parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.InterconnectLink parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.InterconnectLink 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 org.tensorflow.proto.framework.InterconnectLink parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.InterconnectLink 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 org.tensorflow.proto.framework.InterconnectLink parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.InterconnectLink 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(org.tensorflow.proto.framework.InterconnectLink prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.InterconnectLink} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.InterconnectLink) - org.tensorflow.proto.framework.InterconnectLinkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.DeviceAttributesProtos.internal_static_tensorflow_InterconnectLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.DeviceAttributesProtos.internal_static_tensorflow_InterconnectLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.InterconnectLink.class, org.tensorflow.proto.framework.InterconnectLink.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.InterconnectLink.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - deviceId_ = 0; - - type_ = ""; - - strength_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.DeviceAttributesProtos.internal_static_tensorflow_InterconnectLink_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.InterconnectLink getDefaultInstanceForType() { - return org.tensorflow.proto.framework.InterconnectLink.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.InterconnectLink build() { - org.tensorflow.proto.framework.InterconnectLink result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.InterconnectLink buildPartial() { - org.tensorflow.proto.framework.InterconnectLink result = new org.tensorflow.proto.framework.InterconnectLink(this); - result.deviceId_ = deviceId_; - result.type_ = type_; - result.strength_ = strength_; - 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 org.tensorflow.proto.framework.InterconnectLink) { - return mergeFrom((org.tensorflow.proto.framework.InterconnectLink)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.InterconnectLink other) { - if (other == org.tensorflow.proto.framework.InterconnectLink.getDefaultInstance()) return this; - if (other.getDeviceId() != 0) { - setDeviceId(other.getDeviceId()); - } - if (!other.getType().isEmpty()) { - type_ = other.type_; - onChanged(); - } - if (other.getStrength() != 0) { - setStrength(other.getStrength()); - } - 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 { - org.tensorflow.proto.framework.InterconnectLink parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.InterconnectLink) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int deviceId_ ; - /** - * int32 device_id = 1; - */ - public int getDeviceId() { - return deviceId_; - } - /** - * int32 device_id = 1; - */ - public Builder setDeviceId(int value) { - - deviceId_ = value; - onChanged(); - return this; - } - /** - * int32 device_id = 1; - */ - public Builder clearDeviceId() { - - deviceId_ = 0; - onChanged(); - return this; - } - - private java.lang.Object type_ = ""; - /** - * string type = 2; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string type = 2; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string type = 2; - */ - public Builder setType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value; - onChanged(); - return this; - } - /** - * string type = 2; - */ - public Builder clearType() { - - type_ = getDefaultInstance().getType(); - onChanged(); - return this; - } - /** - * string type = 2; - */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - type_ = value; - onChanged(); - return this; - } - - private int strength_ ; - /** - * int32 strength = 3; - */ - public int getStrength() { - return strength_; - } - /** - * int32 strength = 3; - */ - public Builder setStrength(int value) { - - strength_ = value; - onChanged(); - return this; - } - /** - * int32 strength = 3; - */ - public Builder clearStrength() { - - strength_ = 0; - 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:tensorflow.InterconnectLink) - } - - // @@protoc_insertion_point(class_scope:tensorflow.InterconnectLink) - private static final org.tensorflow.proto.framework.InterconnectLink DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.InterconnectLink(); - } - - public static org.tensorflow.proto.framework.InterconnectLink getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InterconnectLink parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InterconnectLink(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.InterconnectLink getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/KernelList.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/KernelList.java deleted file mode 100644 index 06c6e5a22f2..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/KernelList.java +++ /dev/null @@ -1,773 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/kernel_def.proto - -package org.tensorflow.proto.framework; - -/** - *
- * A collection of KernelDefs
- * 
- * - * Protobuf type {@code tensorflow.KernelList} - */ -public final class KernelList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.KernelList) - KernelListOrBuilder { -private static final long serialVersionUID = 0L; - // Use KernelList.newBuilder() to construct. - private KernelList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private KernelList() { - kernel_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new KernelList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private KernelList( - 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)) { - kernel_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - kernel_.add( - input.readMessage(org.tensorflow.proto.framework.KernelDef.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)) { - kernel_ = java.util.Collections.unmodifiableList(kernel_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.KernelDefProtos.internal_static_tensorflow_KernelList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.KernelDefProtos.internal_static_tensorflow_KernelList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.KernelList.class, org.tensorflow.proto.framework.KernelList.Builder.class); - } - - public static final int KERNEL_FIELD_NUMBER = 1; - private java.util.List kernel_; - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public java.util.List getKernelList() { - return kernel_; - } - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public java.util.List - getKernelOrBuilderList() { - return kernel_; - } - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public int getKernelCount() { - return kernel_.size(); - } - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public org.tensorflow.proto.framework.KernelDef getKernel(int index) { - return kernel_.get(index); - } - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public org.tensorflow.proto.framework.KernelDefOrBuilder getKernelOrBuilder( - int index) { - return kernel_.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 < kernel_.size(); i++) { - output.writeMessage(1, kernel_.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 < kernel_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, kernel_.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 org.tensorflow.proto.framework.KernelList)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.KernelList other = (org.tensorflow.proto.framework.KernelList) obj; - - if (!getKernelList() - .equals(other.getKernelList())) 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 (getKernelCount() > 0) { - hash = (37 * hash) + KERNEL_FIELD_NUMBER; - hash = (53 * hash) + getKernelList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.KernelList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.KernelList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.KernelList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.KernelList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.KernelList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.KernelList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.KernelList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.KernelList 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 org.tensorflow.proto.framework.KernelList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.KernelList 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 org.tensorflow.proto.framework.KernelList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.KernelList 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(org.tensorflow.proto.framework.KernelList 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; - } - /** - *
-   * A collection of KernelDefs
-   * 
- * - * Protobuf type {@code tensorflow.KernelList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.KernelList) - org.tensorflow.proto.framework.KernelListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.KernelDefProtos.internal_static_tensorflow_KernelList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.KernelDefProtos.internal_static_tensorflow_KernelList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.KernelList.class, org.tensorflow.proto.framework.KernelList.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.KernelList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getKernelFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (kernelBuilder_ == null) { - kernel_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - kernelBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.KernelDefProtos.internal_static_tensorflow_KernelList_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.KernelList getDefaultInstanceForType() { - return org.tensorflow.proto.framework.KernelList.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.KernelList build() { - org.tensorflow.proto.framework.KernelList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.KernelList buildPartial() { - org.tensorflow.proto.framework.KernelList result = new org.tensorflow.proto.framework.KernelList(this); - int from_bitField0_ = bitField0_; - if (kernelBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - kernel_ = java.util.Collections.unmodifiableList(kernel_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.kernel_ = kernel_; - } else { - result.kernel_ = kernelBuilder_.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 org.tensorflow.proto.framework.KernelList) { - return mergeFrom((org.tensorflow.proto.framework.KernelList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.KernelList other) { - if (other == org.tensorflow.proto.framework.KernelList.getDefaultInstance()) return this; - if (kernelBuilder_ == null) { - if (!other.kernel_.isEmpty()) { - if (kernel_.isEmpty()) { - kernel_ = other.kernel_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureKernelIsMutable(); - kernel_.addAll(other.kernel_); - } - onChanged(); - } - } else { - if (!other.kernel_.isEmpty()) { - if (kernelBuilder_.isEmpty()) { - kernelBuilder_.dispose(); - kernelBuilder_ = null; - kernel_ = other.kernel_; - bitField0_ = (bitField0_ & ~0x00000001); - kernelBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getKernelFieldBuilder() : null; - } else { - kernelBuilder_.addAllMessages(other.kernel_); - } - } - } - 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 { - org.tensorflow.proto.framework.KernelList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.KernelList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List kernel_ = - java.util.Collections.emptyList(); - private void ensureKernelIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - kernel_ = new java.util.ArrayList(kernel_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.KernelDef, org.tensorflow.proto.framework.KernelDef.Builder, org.tensorflow.proto.framework.KernelDefOrBuilder> kernelBuilder_; - - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public java.util.List getKernelList() { - if (kernelBuilder_ == null) { - return java.util.Collections.unmodifiableList(kernel_); - } else { - return kernelBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public int getKernelCount() { - if (kernelBuilder_ == null) { - return kernel_.size(); - } else { - return kernelBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public org.tensorflow.proto.framework.KernelDef getKernel(int index) { - if (kernelBuilder_ == null) { - return kernel_.get(index); - } else { - return kernelBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public Builder setKernel( - int index, org.tensorflow.proto.framework.KernelDef value) { - if (kernelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKernelIsMutable(); - kernel_.set(index, value); - onChanged(); - } else { - kernelBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public Builder setKernel( - int index, org.tensorflow.proto.framework.KernelDef.Builder builderForValue) { - if (kernelBuilder_ == null) { - ensureKernelIsMutable(); - kernel_.set(index, builderForValue.build()); - onChanged(); - } else { - kernelBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public Builder addKernel(org.tensorflow.proto.framework.KernelDef value) { - if (kernelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKernelIsMutable(); - kernel_.add(value); - onChanged(); - } else { - kernelBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public Builder addKernel( - int index, org.tensorflow.proto.framework.KernelDef value) { - if (kernelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKernelIsMutable(); - kernel_.add(index, value); - onChanged(); - } else { - kernelBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public Builder addKernel( - org.tensorflow.proto.framework.KernelDef.Builder builderForValue) { - if (kernelBuilder_ == null) { - ensureKernelIsMutable(); - kernel_.add(builderForValue.build()); - onChanged(); - } else { - kernelBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public Builder addKernel( - int index, org.tensorflow.proto.framework.KernelDef.Builder builderForValue) { - if (kernelBuilder_ == null) { - ensureKernelIsMutable(); - kernel_.add(index, builderForValue.build()); - onChanged(); - } else { - kernelBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public Builder addAllKernel( - java.lang.Iterable values) { - if (kernelBuilder_ == null) { - ensureKernelIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, kernel_); - onChanged(); - } else { - kernelBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public Builder clearKernel() { - if (kernelBuilder_ == null) { - kernel_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - kernelBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public Builder removeKernel(int index) { - if (kernelBuilder_ == null) { - ensureKernelIsMutable(); - kernel_.remove(index); - onChanged(); - } else { - kernelBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public org.tensorflow.proto.framework.KernelDef.Builder getKernelBuilder( - int index) { - return getKernelFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public org.tensorflow.proto.framework.KernelDefOrBuilder getKernelOrBuilder( - int index) { - if (kernelBuilder_ == null) { - return kernel_.get(index); } else { - return kernelBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public java.util.List - getKernelOrBuilderList() { - if (kernelBuilder_ != null) { - return kernelBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(kernel_); - } - } - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public org.tensorflow.proto.framework.KernelDef.Builder addKernelBuilder() { - return getKernelFieldBuilder().addBuilder( - org.tensorflow.proto.framework.KernelDef.getDefaultInstance()); - } - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public org.tensorflow.proto.framework.KernelDef.Builder addKernelBuilder( - int index) { - return getKernelFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.KernelDef.getDefaultInstance()); - } - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - public java.util.List - getKernelBuilderList() { - return getKernelFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.KernelDef, org.tensorflow.proto.framework.KernelDef.Builder, org.tensorflow.proto.framework.KernelDefOrBuilder> - getKernelFieldBuilder() { - if (kernelBuilder_ == null) { - kernelBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.KernelDef, org.tensorflow.proto.framework.KernelDef.Builder, org.tensorflow.proto.framework.KernelDefOrBuilder>( - kernel_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - kernel_ = null; - } - return kernelBuilder_; - } - @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:tensorflow.KernelList) - } - - // @@protoc_insertion_point(class_scope:tensorflow.KernelList) - private static final org.tensorflow.proto.framework.KernelList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.KernelList(); - } - - public static org.tensorflow.proto.framework.KernelList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KernelList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KernelList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.KernelList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/KernelListOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/KernelListOrBuilder.java deleted file mode 100644 index 31c95b5de9d..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/KernelListOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/kernel_def.proto - -package org.tensorflow.proto.framework; - -public interface KernelListOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.KernelList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - java.util.List - getKernelList(); - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - org.tensorflow.proto.framework.KernelDef getKernel(int index); - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - int getKernelCount(); - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - java.util.List - getKernelOrBuilderList(); - /** - * repeated .tensorflow.KernelDef kernel = 1; - */ - org.tensorflow.proto.framework.KernelDefOrBuilder getKernelOrBuilder( - int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ListValue.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ListValue.java deleted file mode 100644 index 56101ea237c..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ListValue.java +++ /dev/null @@ -1,773 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/struct.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Represents a Python list.
- * 
- * - * Protobuf type {@code tensorflow.ListValue} - */ -public final class ListValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.ListValue) - ListValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListValue.newBuilder() to construct. - private ListValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListValue() { - values_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListValue(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListValue( - 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)) { - values_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - values_.add( - input.readMessage(org.tensorflow.proto.framework.StructuredValue.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)) { - values_ = java.util.Collections.unmodifiableList(values_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_ListValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_ListValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ListValue.class, org.tensorflow.proto.framework.ListValue.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - private java.util.List values_; - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public java.util.List getValuesList() { - return values_; - } - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public java.util.List - getValuesOrBuilderList() { - return values_; - } - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public int getValuesCount() { - return values_.size(); - } - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public org.tensorflow.proto.framework.StructuredValue getValues(int index) { - return values_.get(index); - } - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public org.tensorflow.proto.framework.StructuredValueOrBuilder getValuesOrBuilder( - int index) { - return values_.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 < values_.size(); i++) { - output.writeMessage(1, values_.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 < values_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, values_.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 org.tensorflow.proto.framework.ListValue)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.ListValue other = (org.tensorflow.proto.framework.ListValue) obj; - - if (!getValuesList() - .equals(other.getValuesList())) 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 (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.ListValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ListValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ListValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ListValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ListValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ListValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ListValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ListValue 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 org.tensorflow.proto.framework.ListValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ListValue 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 org.tensorflow.proto.framework.ListValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ListValue 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(org.tensorflow.proto.framework.ListValue 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; - } - /** - *
-   * Represents a Python list.
-   * 
- * - * Protobuf type {@code tensorflow.ListValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.ListValue) - org.tensorflow.proto.framework.ListValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_ListValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_ListValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ListValue.class, org.tensorflow.proto.framework.ListValue.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.ListValue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getValuesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (valuesBuilder_ == null) { - values_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - valuesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_ListValue_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ListValue getDefaultInstanceForType() { - return org.tensorflow.proto.framework.ListValue.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.ListValue build() { - org.tensorflow.proto.framework.ListValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ListValue buildPartial() { - org.tensorflow.proto.framework.ListValue result = new org.tensorflow.proto.framework.ListValue(this); - int from_bitField0_ = bitField0_; - if (valuesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - values_ = java.util.Collections.unmodifiableList(values_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.values_ = values_; - } else { - result.values_ = valuesBuilder_.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 org.tensorflow.proto.framework.ListValue) { - return mergeFrom((org.tensorflow.proto.framework.ListValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.ListValue other) { - if (other == org.tensorflow.proto.framework.ListValue.getDefaultInstance()) return this; - if (valuesBuilder_ == null) { - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - } else { - if (!other.values_.isEmpty()) { - if (valuesBuilder_.isEmpty()) { - valuesBuilder_.dispose(); - valuesBuilder_ = null; - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - valuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValuesFieldBuilder() : null; - } else { - valuesBuilder_.addAllMessages(other.values_); - } - } - } - 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 { - org.tensorflow.proto.framework.ListValue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.ListValue) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List values_ = - java.util.Collections.emptyList(); - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - values_ = new java.util.ArrayList(values_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder> valuesBuilder_; - - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public java.util.List getValuesList() { - if (valuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(values_); - } else { - return valuesBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public int getValuesCount() { - if (valuesBuilder_ == null) { - return values_.size(); - } else { - return valuesBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public org.tensorflow.proto.framework.StructuredValue getValues(int index) { - if (valuesBuilder_ == null) { - return values_.get(index); - } else { - return valuesBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public Builder setValues( - int index, org.tensorflow.proto.framework.StructuredValue value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - } else { - valuesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public Builder setValues( - int index, org.tensorflow.proto.framework.StructuredValue.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.set(index, builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public Builder addValues(org.tensorflow.proto.framework.StructuredValue value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - } else { - valuesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public Builder addValues( - int index, org.tensorflow.proto.framework.StructuredValue value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(index, value); - onChanged(); - } else { - valuesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public Builder addValues( - org.tensorflow.proto.framework.StructuredValue.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public Builder addValues( - int index, org.tensorflow.proto.framework.StructuredValue.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(index, builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public Builder addAllValues( - java.lang.Iterable values) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - onChanged(); - } else { - valuesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public Builder clearValues() { - if (valuesBuilder_ == null) { - values_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - valuesBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public Builder removeValues(int index) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.remove(index); - onChanged(); - } else { - valuesBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public org.tensorflow.proto.framework.StructuredValue.Builder getValuesBuilder( - int index) { - return getValuesFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public org.tensorflow.proto.framework.StructuredValueOrBuilder getValuesOrBuilder( - int index) { - if (valuesBuilder_ == null) { - return values_.get(index); } else { - return valuesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public java.util.List - getValuesOrBuilderList() { - if (valuesBuilder_ != null) { - return valuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(values_); - } - } - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public org.tensorflow.proto.framework.StructuredValue.Builder addValuesBuilder() { - return getValuesFieldBuilder().addBuilder( - org.tensorflow.proto.framework.StructuredValue.getDefaultInstance()); - } - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public org.tensorflow.proto.framework.StructuredValue.Builder addValuesBuilder( - int index) { - return getValuesFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.StructuredValue.getDefaultInstance()); - } - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - public java.util.List - getValuesBuilderList() { - return getValuesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder> - getValuesFieldBuilder() { - if (valuesBuilder_ == null) { - valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder>( - values_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - values_ = null; - } - return valuesBuilder_; - } - @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:tensorflow.ListValue) - } - - // @@protoc_insertion_point(class_scope:tensorflow.ListValue) - private static final org.tensorflow.proto.framework.ListValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.ListValue(); - } - - public static org.tensorflow.proto.framework.ListValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListValue(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ListValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ListValueOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ListValueOrBuilder.java deleted file mode 100644 index e4b2d7076d9..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ListValueOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/struct.proto - -package org.tensorflow.proto.framework; - -public interface ListValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.ListValue) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - java.util.List - getValuesList(); - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - org.tensorflow.proto.framework.StructuredValue getValues(int index); - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - int getValuesCount(); - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - java.util.List - getValuesOrBuilderList(); - /** - * repeated .tensorflow.StructuredValue values = 1; - */ - org.tensorflow.proto.framework.StructuredValueOrBuilder getValuesOrBuilder( - int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/LocalLinks.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/LocalLinks.java deleted file mode 100644 index 2219a69600d..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/LocalLinks.java +++ /dev/null @@ -1,765 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/device_attributes.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.LocalLinks} - */ -public final class LocalLinks extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.LocalLinks) - LocalLinksOrBuilder { -private static final long serialVersionUID = 0L; - // Use LocalLinks.newBuilder() to construct. - private LocalLinks(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LocalLinks() { - link_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LocalLinks(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LocalLinks( - 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)) { - link_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - link_.add( - input.readMessage(org.tensorflow.proto.framework.InterconnectLink.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)) { - link_ = java.util.Collections.unmodifiableList(link_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.DeviceAttributesProtos.internal_static_tensorflow_LocalLinks_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.DeviceAttributesProtos.internal_static_tensorflow_LocalLinks_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.LocalLinks.class, org.tensorflow.proto.framework.LocalLinks.Builder.class); - } - - public static final int LINK_FIELD_NUMBER = 1; - private java.util.List link_; - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public java.util.List getLinkList() { - return link_; - } - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public java.util.List - getLinkOrBuilderList() { - return link_; - } - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public int getLinkCount() { - return link_.size(); - } - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public org.tensorflow.proto.framework.InterconnectLink getLink(int index) { - return link_.get(index); - } - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public org.tensorflow.proto.framework.InterconnectLinkOrBuilder getLinkOrBuilder( - int index) { - return link_.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 < link_.size(); i++) { - output.writeMessage(1, link_.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 < link_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, link_.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 org.tensorflow.proto.framework.LocalLinks)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.LocalLinks other = (org.tensorflow.proto.framework.LocalLinks) obj; - - if (!getLinkList() - .equals(other.getLinkList())) 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 (getLinkCount() > 0) { - hash = (37 * hash) + LINK_FIELD_NUMBER; - hash = (53 * hash) + getLinkList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.LocalLinks parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.LocalLinks parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.LocalLinks parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.LocalLinks parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.LocalLinks parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.LocalLinks parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.LocalLinks parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.LocalLinks 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 org.tensorflow.proto.framework.LocalLinks parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.LocalLinks 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 org.tensorflow.proto.framework.LocalLinks parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.LocalLinks 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(org.tensorflow.proto.framework.LocalLinks prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.LocalLinks} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.LocalLinks) - org.tensorflow.proto.framework.LocalLinksOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.DeviceAttributesProtos.internal_static_tensorflow_LocalLinks_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.DeviceAttributesProtos.internal_static_tensorflow_LocalLinks_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.LocalLinks.class, org.tensorflow.proto.framework.LocalLinks.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.LocalLinks.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLinkFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (linkBuilder_ == null) { - link_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - linkBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.DeviceAttributesProtos.internal_static_tensorflow_LocalLinks_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.LocalLinks getDefaultInstanceForType() { - return org.tensorflow.proto.framework.LocalLinks.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.LocalLinks build() { - org.tensorflow.proto.framework.LocalLinks result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.LocalLinks buildPartial() { - org.tensorflow.proto.framework.LocalLinks result = new org.tensorflow.proto.framework.LocalLinks(this); - int from_bitField0_ = bitField0_; - if (linkBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - link_ = java.util.Collections.unmodifiableList(link_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.link_ = link_; - } else { - result.link_ = linkBuilder_.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 org.tensorflow.proto.framework.LocalLinks) { - return mergeFrom((org.tensorflow.proto.framework.LocalLinks)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.LocalLinks other) { - if (other == org.tensorflow.proto.framework.LocalLinks.getDefaultInstance()) return this; - if (linkBuilder_ == null) { - if (!other.link_.isEmpty()) { - if (link_.isEmpty()) { - link_ = other.link_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLinkIsMutable(); - link_.addAll(other.link_); - } - onChanged(); - } - } else { - if (!other.link_.isEmpty()) { - if (linkBuilder_.isEmpty()) { - linkBuilder_.dispose(); - linkBuilder_ = null; - link_ = other.link_; - bitField0_ = (bitField0_ & ~0x00000001); - linkBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLinkFieldBuilder() : null; - } else { - linkBuilder_.addAllMessages(other.link_); - } - } - } - 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 { - org.tensorflow.proto.framework.LocalLinks parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.LocalLinks) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List link_ = - java.util.Collections.emptyList(); - private void ensureLinkIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - link_ = new java.util.ArrayList(link_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.InterconnectLink, org.tensorflow.proto.framework.InterconnectLink.Builder, org.tensorflow.proto.framework.InterconnectLinkOrBuilder> linkBuilder_; - - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public java.util.List getLinkList() { - if (linkBuilder_ == null) { - return java.util.Collections.unmodifiableList(link_); - } else { - return linkBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public int getLinkCount() { - if (linkBuilder_ == null) { - return link_.size(); - } else { - return linkBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public org.tensorflow.proto.framework.InterconnectLink getLink(int index) { - if (linkBuilder_ == null) { - return link_.get(index); - } else { - return linkBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public Builder setLink( - int index, org.tensorflow.proto.framework.InterconnectLink value) { - if (linkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLinkIsMutable(); - link_.set(index, value); - onChanged(); - } else { - linkBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public Builder setLink( - int index, org.tensorflow.proto.framework.InterconnectLink.Builder builderForValue) { - if (linkBuilder_ == null) { - ensureLinkIsMutable(); - link_.set(index, builderForValue.build()); - onChanged(); - } else { - linkBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public Builder addLink(org.tensorflow.proto.framework.InterconnectLink value) { - if (linkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLinkIsMutable(); - link_.add(value); - onChanged(); - } else { - linkBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public Builder addLink( - int index, org.tensorflow.proto.framework.InterconnectLink value) { - if (linkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLinkIsMutable(); - link_.add(index, value); - onChanged(); - } else { - linkBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public Builder addLink( - org.tensorflow.proto.framework.InterconnectLink.Builder builderForValue) { - if (linkBuilder_ == null) { - ensureLinkIsMutable(); - link_.add(builderForValue.build()); - onChanged(); - } else { - linkBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public Builder addLink( - int index, org.tensorflow.proto.framework.InterconnectLink.Builder builderForValue) { - if (linkBuilder_ == null) { - ensureLinkIsMutable(); - link_.add(index, builderForValue.build()); - onChanged(); - } else { - linkBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public Builder addAllLink( - java.lang.Iterable values) { - if (linkBuilder_ == null) { - ensureLinkIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, link_); - onChanged(); - } else { - linkBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public Builder clearLink() { - if (linkBuilder_ == null) { - link_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - linkBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public Builder removeLink(int index) { - if (linkBuilder_ == null) { - ensureLinkIsMutable(); - link_.remove(index); - onChanged(); - } else { - linkBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public org.tensorflow.proto.framework.InterconnectLink.Builder getLinkBuilder( - int index) { - return getLinkFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public org.tensorflow.proto.framework.InterconnectLinkOrBuilder getLinkOrBuilder( - int index) { - if (linkBuilder_ == null) { - return link_.get(index); } else { - return linkBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public java.util.List - getLinkOrBuilderList() { - if (linkBuilder_ != null) { - return linkBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(link_); - } - } - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public org.tensorflow.proto.framework.InterconnectLink.Builder addLinkBuilder() { - return getLinkFieldBuilder().addBuilder( - org.tensorflow.proto.framework.InterconnectLink.getDefaultInstance()); - } - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public org.tensorflow.proto.framework.InterconnectLink.Builder addLinkBuilder( - int index) { - return getLinkFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.InterconnectLink.getDefaultInstance()); - } - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - public java.util.List - getLinkBuilderList() { - return getLinkFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.InterconnectLink, org.tensorflow.proto.framework.InterconnectLink.Builder, org.tensorflow.proto.framework.InterconnectLinkOrBuilder> - getLinkFieldBuilder() { - if (linkBuilder_ == null) { - linkBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.InterconnectLink, org.tensorflow.proto.framework.InterconnectLink.Builder, org.tensorflow.proto.framework.InterconnectLinkOrBuilder>( - link_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - link_ = null; - } - return linkBuilder_; - } - @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:tensorflow.LocalLinks) - } - - // @@protoc_insertion_point(class_scope:tensorflow.LocalLinks) - private static final org.tensorflow.proto.framework.LocalLinks DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.LocalLinks(); - } - - public static org.tensorflow.proto.framework.LocalLinks getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocalLinks parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LocalLinks(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.LocalLinks getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/LocalLinksOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/LocalLinksOrBuilder.java deleted file mode 100644 index e1cd5854d3b..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/LocalLinksOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/device_attributes.proto - -package org.tensorflow.proto.framework; - -public interface LocalLinksOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.LocalLinks) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - java.util.List - getLinkList(); - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - org.tensorflow.proto.framework.InterconnectLink getLink(int index); - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - int getLinkCount(); - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - java.util.List - getLinkOrBuilderList(); - /** - * repeated .tensorflow.InterconnectLink link = 1; - */ - org.tensorflow.proto.framework.InterconnectLinkOrBuilder getLinkOrBuilder( - int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/LogNormalDistribution.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/LogNormalDistribution.java deleted file mode 100644 index 3164a04e0b7..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/LogNormalDistribution.java +++ /dev/null @@ -1,537 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/grappler/costs/op_performance_data.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.LogNormalDistribution} - */ -public final class LogNormalDistribution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.LogNormalDistribution) - LogNormalDistributionOrBuilder { -private static final long serialVersionUID = 0L; - // Use LogNormalDistribution.newBuilder() to construct. - private LogNormalDistribution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LogNormalDistribution() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LogNormalDistribution(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LogNormalDistribution( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 9: { - - mu_ = input.readDouble(); - break; - } - case 17: { - - sigma_ = input.readDouble(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_LogNormalDistribution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_LogNormalDistribution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.LogNormalDistribution.class, org.tensorflow.proto.framework.LogNormalDistribution.Builder.class); - } - - public static final int MU_FIELD_NUMBER = 1; - private double mu_; - /** - * double mu = 1; - */ - public double getMu() { - return mu_; - } - - public static final int SIGMA_FIELD_NUMBER = 2; - private double sigma_; - /** - * double sigma = 2; - */ - public double getSigma() { - return sigma_; - } - - 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 (mu_ != 0D) { - output.writeDouble(1, mu_); - } - if (sigma_ != 0D) { - output.writeDouble(2, sigma_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (mu_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, mu_); - } - if (sigma_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, sigma_); - } - 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 org.tensorflow.proto.framework.LogNormalDistribution)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.LogNormalDistribution other = (org.tensorflow.proto.framework.LogNormalDistribution) obj; - - if (java.lang.Double.doubleToLongBits(getMu()) - != java.lang.Double.doubleToLongBits( - other.getMu())) return false; - if (java.lang.Double.doubleToLongBits(getSigma()) - != java.lang.Double.doubleToLongBits( - other.getSigma())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MU_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMu())); - hash = (37 * hash) + SIGMA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getSigma())); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.LogNormalDistribution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.LogNormalDistribution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.LogNormalDistribution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.LogNormalDistribution parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.LogNormalDistribution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.LogNormalDistribution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.LogNormalDistribution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.LogNormalDistribution 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 org.tensorflow.proto.framework.LogNormalDistribution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.LogNormalDistribution 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 org.tensorflow.proto.framework.LogNormalDistribution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.LogNormalDistribution 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(org.tensorflow.proto.framework.LogNormalDistribution prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.LogNormalDistribution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.LogNormalDistribution) - org.tensorflow.proto.framework.LogNormalDistributionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_LogNormalDistribution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_LogNormalDistribution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.LogNormalDistribution.class, org.tensorflow.proto.framework.LogNormalDistribution.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.LogNormalDistribution.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - mu_ = 0D; - - sigma_ = 0D; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_LogNormalDistribution_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.LogNormalDistribution getDefaultInstanceForType() { - return org.tensorflow.proto.framework.LogNormalDistribution.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.LogNormalDistribution build() { - org.tensorflow.proto.framework.LogNormalDistribution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.LogNormalDistribution buildPartial() { - org.tensorflow.proto.framework.LogNormalDistribution result = new org.tensorflow.proto.framework.LogNormalDistribution(this); - result.mu_ = mu_; - result.sigma_ = sigma_; - 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 org.tensorflow.proto.framework.LogNormalDistribution) { - return mergeFrom((org.tensorflow.proto.framework.LogNormalDistribution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.LogNormalDistribution other) { - if (other == org.tensorflow.proto.framework.LogNormalDistribution.getDefaultInstance()) return this; - if (other.getMu() != 0D) { - setMu(other.getMu()); - } - if (other.getSigma() != 0D) { - setSigma(other.getSigma()); - } - 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 { - org.tensorflow.proto.framework.LogNormalDistribution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.LogNormalDistribution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private double mu_ ; - /** - * double mu = 1; - */ - public double getMu() { - return mu_; - } - /** - * double mu = 1; - */ - public Builder setMu(double value) { - - mu_ = value; - onChanged(); - return this; - } - /** - * double mu = 1; - */ - public Builder clearMu() { - - mu_ = 0D; - onChanged(); - return this; - } - - private double sigma_ ; - /** - * double sigma = 2; - */ - public double getSigma() { - return sigma_; - } - /** - * double sigma = 2; - */ - public Builder setSigma(double value) { - - sigma_ = value; - onChanged(); - return this; - } - /** - * double sigma = 2; - */ - public Builder clearSigma() { - - sigma_ = 0D; - 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:tensorflow.LogNormalDistribution) - } - - // @@protoc_insertion_point(class_scope:tensorflow.LogNormalDistribution) - private static final org.tensorflow.proto.framework.LogNormalDistribution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.LogNormalDistribution(); - } - - public static org.tensorflow.proto.framework.LogNormalDistribution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogNormalDistribution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LogNormalDistribution(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.LogNormalDistribution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/LogNormalDistributionOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/LogNormalDistributionOrBuilder.java deleted file mode 100644 index 367b5827180..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/LogNormalDistributionOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/grappler/costs/op_performance_data.proto - -package org.tensorflow.proto.framework; - -public interface LogNormalDistributionOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.LogNormalDistribution) - com.google.protobuf.MessageOrBuilder { - - /** - * double mu = 1; - */ - double getMu(); - - /** - * double sigma = 2; - */ - double getSigma(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogStep.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogStep.java deleted file mode 100644 index 73d400a36e0..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogStep.java +++ /dev/null @@ -1,648 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/log_memory.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.MemoryLogStep} - */ -public final class MemoryLogStep extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.MemoryLogStep) - MemoryLogStepOrBuilder { -private static final long serialVersionUID = 0L; - // Use MemoryLogStep.newBuilder() to construct. - private MemoryLogStep(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MemoryLogStep() { - handle_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MemoryLogStep(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MemoryLogStep( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - stepId_ = input.readInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - handle_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogStep_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogStep_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.MemoryLogStep.class, org.tensorflow.proto.framework.MemoryLogStep.Builder.class); - } - - public static final int STEP_ID_FIELD_NUMBER = 1; - private long stepId_; - /** - *
-   * Process-unique step id.
-   * 
- * - * int64 step_id = 1; - */ - public long getStepId() { - return stepId_; - } - - public static final int HANDLE_FIELD_NUMBER = 2; - private volatile java.lang.Object handle_; - /** - *
-   * Handle describing the feeds and fetches of the step.
-   * 
- * - * string handle = 2; - */ - public java.lang.String getHandle() { - java.lang.Object ref = handle_; - 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(); - handle_ = s; - return s; - } - } - /** - *
-   * Handle describing the feeds and fetches of the step.
-   * 
- * - * string handle = 2; - */ - public com.google.protobuf.ByteString - getHandleBytes() { - java.lang.Object ref = handle_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - handle_ = 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 (stepId_ != 0L) { - output.writeInt64(1, stepId_); - } - if (!getHandleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, handle_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (stepId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, stepId_); - } - if (!getHandleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, handle_); - } - 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 org.tensorflow.proto.framework.MemoryLogStep)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.MemoryLogStep other = (org.tensorflow.proto.framework.MemoryLogStep) obj; - - if (getStepId() - != other.getStepId()) return false; - if (!getHandle() - .equals(other.getHandle())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STEP_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getStepId()); - hash = (37 * hash) + HANDLE_FIELD_NUMBER; - hash = (53 * hash) + getHandle().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.MemoryLogStep parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.MemoryLogStep parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.MemoryLogStep parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.MemoryLogStep parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.MemoryLogStep parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.MemoryLogStep parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.MemoryLogStep parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.MemoryLogStep 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 org.tensorflow.proto.framework.MemoryLogStep parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.MemoryLogStep 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 org.tensorflow.proto.framework.MemoryLogStep parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.MemoryLogStep 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(org.tensorflow.proto.framework.MemoryLogStep prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.MemoryLogStep} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.MemoryLogStep) - org.tensorflow.proto.framework.MemoryLogStepOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogStep_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogStep_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.MemoryLogStep.class, org.tensorflow.proto.framework.MemoryLogStep.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.MemoryLogStep.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - stepId_ = 0L; - - handle_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogStep_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogStep getDefaultInstanceForType() { - return org.tensorflow.proto.framework.MemoryLogStep.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogStep build() { - org.tensorflow.proto.framework.MemoryLogStep result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogStep buildPartial() { - org.tensorflow.proto.framework.MemoryLogStep result = new org.tensorflow.proto.framework.MemoryLogStep(this); - result.stepId_ = stepId_; - result.handle_ = handle_; - 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 org.tensorflow.proto.framework.MemoryLogStep) { - return mergeFrom((org.tensorflow.proto.framework.MemoryLogStep)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.MemoryLogStep other) { - if (other == org.tensorflow.proto.framework.MemoryLogStep.getDefaultInstance()) return this; - if (other.getStepId() != 0L) { - setStepId(other.getStepId()); - } - if (!other.getHandle().isEmpty()) { - handle_ = other.handle_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.MemoryLogStep parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.MemoryLogStep) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long stepId_ ; - /** - *
-     * Process-unique step id.
-     * 
- * - * int64 step_id = 1; - */ - public long getStepId() { - return stepId_; - } - /** - *
-     * Process-unique step id.
-     * 
- * - * int64 step_id = 1; - */ - public Builder setStepId(long value) { - - stepId_ = value; - onChanged(); - return this; - } - /** - *
-     * Process-unique step id.
-     * 
- * - * int64 step_id = 1; - */ - public Builder clearStepId() { - - stepId_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object handle_ = ""; - /** - *
-     * Handle describing the feeds and fetches of the step.
-     * 
- * - * string handle = 2; - */ - public java.lang.String getHandle() { - java.lang.Object ref = handle_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - handle_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Handle describing the feeds and fetches of the step.
-     * 
- * - * string handle = 2; - */ - public com.google.protobuf.ByteString - getHandleBytes() { - java.lang.Object ref = handle_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - handle_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Handle describing the feeds and fetches of the step.
-     * 
- * - * string handle = 2; - */ - public Builder setHandle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - handle_ = value; - onChanged(); - return this; - } - /** - *
-     * Handle describing the feeds and fetches of the step.
-     * 
- * - * string handle = 2; - */ - public Builder clearHandle() { - - handle_ = getDefaultInstance().getHandle(); - onChanged(); - return this; - } - /** - *
-     * Handle describing the feeds and fetches of the step.
-     * 
- * - * string handle = 2; - */ - public Builder setHandleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - handle_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.MemoryLogStep) - } - - // @@protoc_insertion_point(class_scope:tensorflow.MemoryLogStep) - private static final org.tensorflow.proto.framework.MemoryLogStep DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.MemoryLogStep(); - } - - public static org.tensorflow.proto.framework.MemoryLogStep getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MemoryLogStep parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MemoryLogStep(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogStep getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogTensorAllocation.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogTensorAllocation.java deleted file mode 100644 index bf59aacf6ed..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogTensorAllocation.java +++ /dev/null @@ -1,884 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/log_memory.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.MemoryLogTensorAllocation} - */ -public final class MemoryLogTensorAllocation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.MemoryLogTensorAllocation) - MemoryLogTensorAllocationOrBuilder { -private static final long serialVersionUID = 0L; - // Use MemoryLogTensorAllocation.newBuilder() to construct. - private MemoryLogTensorAllocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MemoryLogTensorAllocation() { - kernelName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MemoryLogTensorAllocation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MemoryLogTensorAllocation( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - stepId_ = input.readInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - kernelName_ = s; - break; - } - case 26: { - org.tensorflow.proto.framework.TensorDescription.Builder subBuilder = null; - if (tensor_ != null) { - subBuilder = tensor_.toBuilder(); - } - tensor_ = input.readMessage(org.tensorflow.proto.framework.TensorDescription.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tensor_); - tensor_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorAllocation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorAllocation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.MemoryLogTensorAllocation.class, org.tensorflow.proto.framework.MemoryLogTensorAllocation.Builder.class); - } - - public static final int STEP_ID_FIELD_NUMBER = 1; - private long stepId_; - /** - *
-   * Process-unique step id.
-   * 
- * - * int64 step_id = 1; - */ - public long getStepId() { - return stepId_; - } - - public static final int KERNEL_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object kernelName_; - /** - *
-   * Name of the kernel making the allocation as set in GraphDef,
-   * e.g., "affine2/weights/Assign".
-   * 
- * - * string kernel_name = 2; - */ - public java.lang.String getKernelName() { - java.lang.Object ref = kernelName_; - 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(); - kernelName_ = s; - return s; - } - } - /** - *
-   * Name of the kernel making the allocation as set in GraphDef,
-   * e.g., "affine2/weights/Assign".
-   * 
- * - * string kernel_name = 2; - */ - public com.google.protobuf.ByteString - getKernelNameBytes() { - java.lang.Object ref = kernelName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kernelName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TENSOR_FIELD_NUMBER = 3; - private org.tensorflow.proto.framework.TensorDescription tensor_; - /** - *
-   * Allocated tensor details.
-   * 
- * - * .tensorflow.TensorDescription tensor = 3; - */ - public boolean hasTensor() { - return tensor_ != null; - } - /** - *
-   * Allocated tensor details.
-   * 
- * - * .tensorflow.TensorDescription tensor = 3; - */ - public org.tensorflow.proto.framework.TensorDescription getTensor() { - return tensor_ == null ? org.tensorflow.proto.framework.TensorDescription.getDefaultInstance() : tensor_; - } - /** - *
-   * Allocated tensor details.
-   * 
- * - * .tensorflow.TensorDescription tensor = 3; - */ - public org.tensorflow.proto.framework.TensorDescriptionOrBuilder getTensorOrBuilder() { - return getTensor(); - } - - 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 (stepId_ != 0L) { - output.writeInt64(1, stepId_); - } - if (!getKernelNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kernelName_); - } - if (tensor_ != null) { - output.writeMessage(3, getTensor()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (stepId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, stepId_); - } - if (!getKernelNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kernelName_); - } - if (tensor_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTensor()); - } - 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 org.tensorflow.proto.framework.MemoryLogTensorAllocation)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.MemoryLogTensorAllocation other = (org.tensorflow.proto.framework.MemoryLogTensorAllocation) obj; - - if (getStepId() - != other.getStepId()) return false; - if (!getKernelName() - .equals(other.getKernelName())) return false; - if (hasTensor() != other.hasTensor()) return false; - if (hasTensor()) { - if (!getTensor() - .equals(other.getTensor())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STEP_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getStepId()); - hash = (37 * hash) + KERNEL_NAME_FIELD_NUMBER; - hash = (53 * hash) + getKernelName().hashCode(); - if (hasTensor()) { - hash = (37 * hash) + TENSOR_FIELD_NUMBER; - hash = (53 * hash) + getTensor().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.MemoryLogTensorAllocation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.MemoryLogTensorAllocation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.MemoryLogTensorAllocation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.MemoryLogTensorAllocation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.MemoryLogTensorAllocation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.MemoryLogTensorAllocation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.MemoryLogTensorAllocation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.MemoryLogTensorAllocation 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 org.tensorflow.proto.framework.MemoryLogTensorAllocation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.MemoryLogTensorAllocation 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 org.tensorflow.proto.framework.MemoryLogTensorAllocation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.MemoryLogTensorAllocation 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(org.tensorflow.proto.framework.MemoryLogTensorAllocation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.MemoryLogTensorAllocation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.MemoryLogTensorAllocation) - org.tensorflow.proto.framework.MemoryLogTensorAllocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorAllocation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorAllocation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.MemoryLogTensorAllocation.class, org.tensorflow.proto.framework.MemoryLogTensorAllocation.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.MemoryLogTensorAllocation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - stepId_ = 0L; - - kernelName_ = ""; - - if (tensorBuilder_ == null) { - tensor_ = null; - } else { - tensor_ = null; - tensorBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorAllocation_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogTensorAllocation getDefaultInstanceForType() { - return org.tensorflow.proto.framework.MemoryLogTensorAllocation.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogTensorAllocation build() { - org.tensorflow.proto.framework.MemoryLogTensorAllocation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogTensorAllocation buildPartial() { - org.tensorflow.proto.framework.MemoryLogTensorAllocation result = new org.tensorflow.proto.framework.MemoryLogTensorAllocation(this); - result.stepId_ = stepId_; - result.kernelName_ = kernelName_; - if (tensorBuilder_ == null) { - result.tensor_ = tensor_; - } else { - result.tensor_ = tensorBuilder_.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 org.tensorflow.proto.framework.MemoryLogTensorAllocation) { - return mergeFrom((org.tensorflow.proto.framework.MemoryLogTensorAllocation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.MemoryLogTensorAllocation other) { - if (other == org.tensorflow.proto.framework.MemoryLogTensorAllocation.getDefaultInstance()) return this; - if (other.getStepId() != 0L) { - setStepId(other.getStepId()); - } - if (!other.getKernelName().isEmpty()) { - kernelName_ = other.kernelName_; - onChanged(); - } - if (other.hasTensor()) { - mergeTensor(other.getTensor()); - } - 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 { - org.tensorflow.proto.framework.MemoryLogTensorAllocation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.MemoryLogTensorAllocation) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long stepId_ ; - /** - *
-     * Process-unique step id.
-     * 
- * - * int64 step_id = 1; - */ - public long getStepId() { - return stepId_; - } - /** - *
-     * Process-unique step id.
-     * 
- * - * int64 step_id = 1; - */ - public Builder setStepId(long value) { - - stepId_ = value; - onChanged(); - return this; - } - /** - *
-     * Process-unique step id.
-     * 
- * - * int64 step_id = 1; - */ - public Builder clearStepId() { - - stepId_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object kernelName_ = ""; - /** - *
-     * Name of the kernel making the allocation as set in GraphDef,
-     * e.g., "affine2/weights/Assign".
-     * 
- * - * string kernel_name = 2; - */ - public java.lang.String getKernelName() { - java.lang.Object ref = kernelName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kernelName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Name of the kernel making the allocation as set in GraphDef,
-     * e.g., "affine2/weights/Assign".
-     * 
- * - * string kernel_name = 2; - */ - public com.google.protobuf.ByteString - getKernelNameBytes() { - java.lang.Object ref = kernelName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kernelName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Name of the kernel making the allocation as set in GraphDef,
-     * e.g., "affine2/weights/Assign".
-     * 
- * - * string kernel_name = 2; - */ - public Builder setKernelName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kernelName_ = value; - onChanged(); - return this; - } - /** - *
-     * Name of the kernel making the allocation as set in GraphDef,
-     * e.g., "affine2/weights/Assign".
-     * 
- * - * string kernel_name = 2; - */ - public Builder clearKernelName() { - - kernelName_ = getDefaultInstance().getKernelName(); - onChanged(); - return this; - } - /** - *
-     * Name of the kernel making the allocation as set in GraphDef,
-     * e.g., "affine2/weights/Assign".
-     * 
- * - * string kernel_name = 2; - */ - public Builder setKernelNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kernelName_ = value; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.TensorDescription tensor_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorDescription, org.tensorflow.proto.framework.TensorDescription.Builder, org.tensorflow.proto.framework.TensorDescriptionOrBuilder> tensorBuilder_; - /** - *
-     * Allocated tensor details.
-     * 
- * - * .tensorflow.TensorDescription tensor = 3; - */ - public boolean hasTensor() { - return tensorBuilder_ != null || tensor_ != null; - } - /** - *
-     * Allocated tensor details.
-     * 
- * - * .tensorflow.TensorDescription tensor = 3; - */ - public org.tensorflow.proto.framework.TensorDescription getTensor() { - if (tensorBuilder_ == null) { - return tensor_ == null ? org.tensorflow.proto.framework.TensorDescription.getDefaultInstance() : tensor_; - } else { - return tensorBuilder_.getMessage(); - } - } - /** - *
-     * Allocated tensor details.
-     * 
- * - * .tensorflow.TensorDescription tensor = 3; - */ - public Builder setTensor(org.tensorflow.proto.framework.TensorDescription value) { - if (tensorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tensor_ = value; - onChanged(); - } else { - tensorBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Allocated tensor details.
-     * 
- * - * .tensorflow.TensorDescription tensor = 3; - */ - public Builder setTensor( - org.tensorflow.proto.framework.TensorDescription.Builder builderForValue) { - if (tensorBuilder_ == null) { - tensor_ = builderForValue.build(); - onChanged(); - } else { - tensorBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Allocated tensor details.
-     * 
- * - * .tensorflow.TensorDescription tensor = 3; - */ - public Builder mergeTensor(org.tensorflow.proto.framework.TensorDescription value) { - if (tensorBuilder_ == null) { - if (tensor_ != null) { - tensor_ = - org.tensorflow.proto.framework.TensorDescription.newBuilder(tensor_).mergeFrom(value).buildPartial(); - } else { - tensor_ = value; - } - onChanged(); - } else { - tensorBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Allocated tensor details.
-     * 
- * - * .tensorflow.TensorDescription tensor = 3; - */ - public Builder clearTensor() { - if (tensorBuilder_ == null) { - tensor_ = null; - onChanged(); - } else { - tensor_ = null; - tensorBuilder_ = null; - } - - return this; - } - /** - *
-     * Allocated tensor details.
-     * 
- * - * .tensorflow.TensorDescription tensor = 3; - */ - public org.tensorflow.proto.framework.TensorDescription.Builder getTensorBuilder() { - - onChanged(); - return getTensorFieldBuilder().getBuilder(); - } - /** - *
-     * Allocated tensor details.
-     * 
- * - * .tensorflow.TensorDescription tensor = 3; - */ - public org.tensorflow.proto.framework.TensorDescriptionOrBuilder getTensorOrBuilder() { - if (tensorBuilder_ != null) { - return tensorBuilder_.getMessageOrBuilder(); - } else { - return tensor_ == null ? - org.tensorflow.proto.framework.TensorDescription.getDefaultInstance() : tensor_; - } - } - /** - *
-     * Allocated tensor details.
-     * 
- * - * .tensorflow.TensorDescription tensor = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorDescription, org.tensorflow.proto.framework.TensorDescription.Builder, org.tensorflow.proto.framework.TensorDescriptionOrBuilder> - getTensorFieldBuilder() { - if (tensorBuilder_ == null) { - tensorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorDescription, org.tensorflow.proto.framework.TensorDescription.Builder, org.tensorflow.proto.framework.TensorDescriptionOrBuilder>( - getTensor(), - getParentForChildren(), - isClean()); - tensor_ = null; - } - return tensorBuilder_; - } - @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:tensorflow.MemoryLogTensorAllocation) - } - - // @@protoc_insertion_point(class_scope:tensorflow.MemoryLogTensorAllocation) - private static final org.tensorflow.proto.framework.MemoryLogTensorAllocation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.MemoryLogTensorAllocation(); - } - - public static org.tensorflow.proto.framework.MemoryLogTensorAllocation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MemoryLogTensorAllocation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MemoryLogTensorAllocation(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogTensorAllocation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogTensorDeallocation.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogTensorDeallocation.java deleted file mode 100644 index f0061b53c50..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogTensorDeallocation.java +++ /dev/null @@ -1,652 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/log_memory.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.MemoryLogTensorDeallocation} - */ -public final class MemoryLogTensorDeallocation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.MemoryLogTensorDeallocation) - MemoryLogTensorDeallocationOrBuilder { -private static final long serialVersionUID = 0L; - // Use MemoryLogTensorDeallocation.newBuilder() to construct. - private MemoryLogTensorDeallocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MemoryLogTensorDeallocation() { - allocatorName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MemoryLogTensorDeallocation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MemoryLogTensorDeallocation( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - allocationId_ = input.readInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - allocatorName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorDeallocation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorDeallocation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.MemoryLogTensorDeallocation.class, org.tensorflow.proto.framework.MemoryLogTensorDeallocation.Builder.class); - } - - public static final int ALLOCATION_ID_FIELD_NUMBER = 1; - private long allocationId_; - /** - *
-   * Id of the tensor buffer being deallocated, used to match to a
-   * corresponding allocation.
-   * 
- * - * int64 allocation_id = 1; - */ - public long getAllocationId() { - return allocationId_; - } - - public static final int ALLOCATOR_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object allocatorName_; - /** - *
-   * Name of the allocator used.
-   * 
- * - * string allocator_name = 2; - */ - public java.lang.String getAllocatorName() { - java.lang.Object ref = allocatorName_; - 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(); - allocatorName_ = s; - return s; - } - } - /** - *
-   * Name of the allocator used.
-   * 
- * - * string allocator_name = 2; - */ - public com.google.protobuf.ByteString - getAllocatorNameBytes() { - java.lang.Object ref = allocatorName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - allocatorName_ = 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 (allocationId_ != 0L) { - output.writeInt64(1, allocationId_); - } - if (!getAllocatorNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, allocatorName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (allocationId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, allocationId_); - } - if (!getAllocatorNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, allocatorName_); - } - 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 org.tensorflow.proto.framework.MemoryLogTensorDeallocation)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.MemoryLogTensorDeallocation other = (org.tensorflow.proto.framework.MemoryLogTensorDeallocation) obj; - - if (getAllocationId() - != other.getAllocationId()) return false; - if (!getAllocatorName() - .equals(other.getAllocatorName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ALLOCATION_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAllocationId()); - hash = (37 * hash) + ALLOCATOR_NAME_FIELD_NUMBER; - hash = (53 * hash) + getAllocatorName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.MemoryLogTensorDeallocation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.MemoryLogTensorDeallocation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.MemoryLogTensorDeallocation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.MemoryLogTensorDeallocation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.MemoryLogTensorDeallocation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.MemoryLogTensorDeallocation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.MemoryLogTensorDeallocation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.MemoryLogTensorDeallocation 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 org.tensorflow.proto.framework.MemoryLogTensorDeallocation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.MemoryLogTensorDeallocation 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 org.tensorflow.proto.framework.MemoryLogTensorDeallocation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.MemoryLogTensorDeallocation 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(org.tensorflow.proto.framework.MemoryLogTensorDeallocation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.MemoryLogTensorDeallocation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.MemoryLogTensorDeallocation) - org.tensorflow.proto.framework.MemoryLogTensorDeallocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorDeallocation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorDeallocation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.MemoryLogTensorDeallocation.class, org.tensorflow.proto.framework.MemoryLogTensorDeallocation.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.MemoryLogTensorDeallocation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - allocationId_ = 0L; - - allocatorName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorDeallocation_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogTensorDeallocation getDefaultInstanceForType() { - return org.tensorflow.proto.framework.MemoryLogTensorDeallocation.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogTensorDeallocation build() { - org.tensorflow.proto.framework.MemoryLogTensorDeallocation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogTensorDeallocation buildPartial() { - org.tensorflow.proto.framework.MemoryLogTensorDeallocation result = new org.tensorflow.proto.framework.MemoryLogTensorDeallocation(this); - result.allocationId_ = allocationId_; - result.allocatorName_ = allocatorName_; - 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 org.tensorflow.proto.framework.MemoryLogTensorDeallocation) { - return mergeFrom((org.tensorflow.proto.framework.MemoryLogTensorDeallocation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.MemoryLogTensorDeallocation other) { - if (other == org.tensorflow.proto.framework.MemoryLogTensorDeallocation.getDefaultInstance()) return this; - if (other.getAllocationId() != 0L) { - setAllocationId(other.getAllocationId()); - } - if (!other.getAllocatorName().isEmpty()) { - allocatorName_ = other.allocatorName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.MemoryLogTensorDeallocation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.MemoryLogTensorDeallocation) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long allocationId_ ; - /** - *
-     * Id of the tensor buffer being deallocated, used to match to a
-     * corresponding allocation.
-     * 
- * - * int64 allocation_id = 1; - */ - public long getAllocationId() { - return allocationId_; - } - /** - *
-     * Id of the tensor buffer being deallocated, used to match to a
-     * corresponding allocation.
-     * 
- * - * int64 allocation_id = 1; - */ - public Builder setAllocationId(long value) { - - allocationId_ = value; - onChanged(); - return this; - } - /** - *
-     * Id of the tensor buffer being deallocated, used to match to a
-     * corresponding allocation.
-     * 
- * - * int64 allocation_id = 1; - */ - public Builder clearAllocationId() { - - allocationId_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object allocatorName_ = ""; - /** - *
-     * Name of the allocator used.
-     * 
- * - * string allocator_name = 2; - */ - public java.lang.String getAllocatorName() { - java.lang.Object ref = allocatorName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - allocatorName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Name of the allocator used.
-     * 
- * - * string allocator_name = 2; - */ - public com.google.protobuf.ByteString - getAllocatorNameBytes() { - java.lang.Object ref = allocatorName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - allocatorName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Name of the allocator used.
-     * 
- * - * string allocator_name = 2; - */ - public Builder setAllocatorName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - allocatorName_ = value; - onChanged(); - return this; - } - /** - *
-     * Name of the allocator used.
-     * 
- * - * string allocator_name = 2; - */ - public Builder clearAllocatorName() { - - allocatorName_ = getDefaultInstance().getAllocatorName(); - onChanged(); - return this; - } - /** - *
-     * Name of the allocator used.
-     * 
- * - * string allocator_name = 2; - */ - public Builder setAllocatorNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - allocatorName_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.MemoryLogTensorDeallocation) - } - - // @@protoc_insertion_point(class_scope:tensorflow.MemoryLogTensorDeallocation) - private static final org.tensorflow.proto.framework.MemoryLogTensorDeallocation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.MemoryLogTensorDeallocation(); - } - - public static org.tensorflow.proto.framework.MemoryLogTensorDeallocation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MemoryLogTensorDeallocation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MemoryLogTensorDeallocation(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogTensorDeallocation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogTensorOutput.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogTensorOutput.java deleted file mode 100644 index a8aaf7dc7d9..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogTensorOutput.java +++ /dev/null @@ -1,957 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/log_memory.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.MemoryLogTensorOutput} - */ -public final class MemoryLogTensorOutput extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.MemoryLogTensorOutput) - MemoryLogTensorOutputOrBuilder { -private static final long serialVersionUID = 0L; - // Use MemoryLogTensorOutput.newBuilder() to construct. - private MemoryLogTensorOutput(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MemoryLogTensorOutput() { - kernelName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MemoryLogTensorOutput(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MemoryLogTensorOutput( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - stepId_ = input.readInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - kernelName_ = s; - break; - } - case 24: { - - index_ = input.readInt32(); - break; - } - case 34: { - org.tensorflow.proto.framework.TensorDescription.Builder subBuilder = null; - if (tensor_ != null) { - subBuilder = tensor_.toBuilder(); - } - tensor_ = input.readMessage(org.tensorflow.proto.framework.TensorDescription.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tensor_); - tensor_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorOutput_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorOutput_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.MemoryLogTensorOutput.class, org.tensorflow.proto.framework.MemoryLogTensorOutput.Builder.class); - } - - public static final int STEP_ID_FIELD_NUMBER = 1; - private long stepId_; - /** - *
-   * Process-unique step id.
-   * 
- * - * int64 step_id = 1; - */ - public long getStepId() { - return stepId_; - } - - public static final int KERNEL_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object kernelName_; - /** - *
-   * Name of the kernel producing an output as set in GraphDef, e.g.,
-   * "affine2/weights/Assign".
-   * 
- * - * string kernel_name = 2; - */ - public java.lang.String getKernelName() { - java.lang.Object ref = kernelName_; - 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(); - kernelName_ = s; - return s; - } - } - /** - *
-   * Name of the kernel producing an output as set in GraphDef, e.g.,
-   * "affine2/weights/Assign".
-   * 
- * - * string kernel_name = 2; - */ - public com.google.protobuf.ByteString - getKernelNameBytes() { - java.lang.Object ref = kernelName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kernelName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INDEX_FIELD_NUMBER = 3; - private int index_; - /** - *
-   * Index of the output being set.
-   * 
- * - * int32 index = 3; - */ - public int getIndex() { - return index_; - } - - public static final int TENSOR_FIELD_NUMBER = 4; - private org.tensorflow.proto.framework.TensorDescription tensor_; - /** - *
-   * Output tensor details.
-   * 
- * - * .tensorflow.TensorDescription tensor = 4; - */ - public boolean hasTensor() { - return tensor_ != null; - } - /** - *
-   * Output tensor details.
-   * 
- * - * .tensorflow.TensorDescription tensor = 4; - */ - public org.tensorflow.proto.framework.TensorDescription getTensor() { - return tensor_ == null ? org.tensorflow.proto.framework.TensorDescription.getDefaultInstance() : tensor_; - } - /** - *
-   * Output tensor details.
-   * 
- * - * .tensorflow.TensorDescription tensor = 4; - */ - public org.tensorflow.proto.framework.TensorDescriptionOrBuilder getTensorOrBuilder() { - return getTensor(); - } - - 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 (stepId_ != 0L) { - output.writeInt64(1, stepId_); - } - if (!getKernelNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kernelName_); - } - if (index_ != 0) { - output.writeInt32(3, index_); - } - if (tensor_ != null) { - output.writeMessage(4, getTensor()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (stepId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, stepId_); - } - if (!getKernelNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kernelName_); - } - if (index_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, index_); - } - if (tensor_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTensor()); - } - 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 org.tensorflow.proto.framework.MemoryLogTensorOutput)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.MemoryLogTensorOutput other = (org.tensorflow.proto.framework.MemoryLogTensorOutput) obj; - - if (getStepId() - != other.getStepId()) return false; - if (!getKernelName() - .equals(other.getKernelName())) return false; - if (getIndex() - != other.getIndex()) return false; - if (hasTensor() != other.hasTensor()) return false; - if (hasTensor()) { - if (!getTensor() - .equals(other.getTensor())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STEP_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getStepId()); - hash = (37 * hash) + KERNEL_NAME_FIELD_NUMBER; - hash = (53 * hash) + getKernelName().hashCode(); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + getIndex(); - if (hasTensor()) { - hash = (37 * hash) + TENSOR_FIELD_NUMBER; - hash = (53 * hash) + getTensor().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.MemoryLogTensorOutput parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.MemoryLogTensorOutput parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.MemoryLogTensorOutput parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.MemoryLogTensorOutput parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.MemoryLogTensorOutput parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.MemoryLogTensorOutput parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.MemoryLogTensorOutput parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.MemoryLogTensorOutput 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 org.tensorflow.proto.framework.MemoryLogTensorOutput parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.MemoryLogTensorOutput 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 org.tensorflow.proto.framework.MemoryLogTensorOutput parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.MemoryLogTensorOutput 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(org.tensorflow.proto.framework.MemoryLogTensorOutput prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.MemoryLogTensorOutput} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.MemoryLogTensorOutput) - org.tensorflow.proto.framework.MemoryLogTensorOutputOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorOutput_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorOutput_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.MemoryLogTensorOutput.class, org.tensorflow.proto.framework.MemoryLogTensorOutput.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.MemoryLogTensorOutput.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - stepId_ = 0L; - - kernelName_ = ""; - - index_ = 0; - - if (tensorBuilder_ == null) { - tensor_ = null; - } else { - tensor_ = null; - tensorBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorOutput_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogTensorOutput getDefaultInstanceForType() { - return org.tensorflow.proto.framework.MemoryLogTensorOutput.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogTensorOutput build() { - org.tensorflow.proto.framework.MemoryLogTensorOutput result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogTensorOutput buildPartial() { - org.tensorflow.proto.framework.MemoryLogTensorOutput result = new org.tensorflow.proto.framework.MemoryLogTensorOutput(this); - result.stepId_ = stepId_; - result.kernelName_ = kernelName_; - result.index_ = index_; - if (tensorBuilder_ == null) { - result.tensor_ = tensor_; - } else { - result.tensor_ = tensorBuilder_.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 org.tensorflow.proto.framework.MemoryLogTensorOutput) { - return mergeFrom((org.tensorflow.proto.framework.MemoryLogTensorOutput)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.MemoryLogTensorOutput other) { - if (other == org.tensorflow.proto.framework.MemoryLogTensorOutput.getDefaultInstance()) return this; - if (other.getStepId() != 0L) { - setStepId(other.getStepId()); - } - if (!other.getKernelName().isEmpty()) { - kernelName_ = other.kernelName_; - onChanged(); - } - if (other.getIndex() != 0) { - setIndex(other.getIndex()); - } - if (other.hasTensor()) { - mergeTensor(other.getTensor()); - } - 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 { - org.tensorflow.proto.framework.MemoryLogTensorOutput parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.MemoryLogTensorOutput) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long stepId_ ; - /** - *
-     * Process-unique step id.
-     * 
- * - * int64 step_id = 1; - */ - public long getStepId() { - return stepId_; - } - /** - *
-     * Process-unique step id.
-     * 
- * - * int64 step_id = 1; - */ - public Builder setStepId(long value) { - - stepId_ = value; - onChanged(); - return this; - } - /** - *
-     * Process-unique step id.
-     * 
- * - * int64 step_id = 1; - */ - public Builder clearStepId() { - - stepId_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object kernelName_ = ""; - /** - *
-     * Name of the kernel producing an output as set in GraphDef, e.g.,
-     * "affine2/weights/Assign".
-     * 
- * - * string kernel_name = 2; - */ - public java.lang.String getKernelName() { - java.lang.Object ref = kernelName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kernelName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Name of the kernel producing an output as set in GraphDef, e.g.,
-     * "affine2/weights/Assign".
-     * 
- * - * string kernel_name = 2; - */ - public com.google.protobuf.ByteString - getKernelNameBytes() { - java.lang.Object ref = kernelName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kernelName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Name of the kernel producing an output as set in GraphDef, e.g.,
-     * "affine2/weights/Assign".
-     * 
- * - * string kernel_name = 2; - */ - public Builder setKernelName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kernelName_ = value; - onChanged(); - return this; - } - /** - *
-     * Name of the kernel producing an output as set in GraphDef, e.g.,
-     * "affine2/weights/Assign".
-     * 
- * - * string kernel_name = 2; - */ - public Builder clearKernelName() { - - kernelName_ = getDefaultInstance().getKernelName(); - onChanged(); - return this; - } - /** - *
-     * Name of the kernel producing an output as set in GraphDef, e.g.,
-     * "affine2/weights/Assign".
-     * 
- * - * string kernel_name = 2; - */ - public Builder setKernelNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kernelName_ = value; - onChanged(); - return this; - } - - private int index_ ; - /** - *
-     * Index of the output being set.
-     * 
- * - * int32 index = 3; - */ - public int getIndex() { - return index_; - } - /** - *
-     * Index of the output being set.
-     * 
- * - * int32 index = 3; - */ - public Builder setIndex(int value) { - - index_ = value; - onChanged(); - return this; - } - /** - *
-     * Index of the output being set.
-     * 
- * - * int32 index = 3; - */ - public Builder clearIndex() { - - index_ = 0; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.TensorDescription tensor_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorDescription, org.tensorflow.proto.framework.TensorDescription.Builder, org.tensorflow.proto.framework.TensorDescriptionOrBuilder> tensorBuilder_; - /** - *
-     * Output tensor details.
-     * 
- * - * .tensorflow.TensorDescription tensor = 4; - */ - public boolean hasTensor() { - return tensorBuilder_ != null || tensor_ != null; - } - /** - *
-     * Output tensor details.
-     * 
- * - * .tensorflow.TensorDescription tensor = 4; - */ - public org.tensorflow.proto.framework.TensorDescription getTensor() { - if (tensorBuilder_ == null) { - return tensor_ == null ? org.tensorflow.proto.framework.TensorDescription.getDefaultInstance() : tensor_; - } else { - return tensorBuilder_.getMessage(); - } - } - /** - *
-     * Output tensor details.
-     * 
- * - * .tensorflow.TensorDescription tensor = 4; - */ - public Builder setTensor(org.tensorflow.proto.framework.TensorDescription value) { - if (tensorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tensor_ = value; - onChanged(); - } else { - tensorBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Output tensor details.
-     * 
- * - * .tensorflow.TensorDescription tensor = 4; - */ - public Builder setTensor( - org.tensorflow.proto.framework.TensorDescription.Builder builderForValue) { - if (tensorBuilder_ == null) { - tensor_ = builderForValue.build(); - onChanged(); - } else { - tensorBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Output tensor details.
-     * 
- * - * .tensorflow.TensorDescription tensor = 4; - */ - public Builder mergeTensor(org.tensorflow.proto.framework.TensorDescription value) { - if (tensorBuilder_ == null) { - if (tensor_ != null) { - tensor_ = - org.tensorflow.proto.framework.TensorDescription.newBuilder(tensor_).mergeFrom(value).buildPartial(); - } else { - tensor_ = value; - } - onChanged(); - } else { - tensorBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Output tensor details.
-     * 
- * - * .tensorflow.TensorDescription tensor = 4; - */ - public Builder clearTensor() { - if (tensorBuilder_ == null) { - tensor_ = null; - onChanged(); - } else { - tensor_ = null; - tensorBuilder_ = null; - } - - return this; - } - /** - *
-     * Output tensor details.
-     * 
- * - * .tensorflow.TensorDescription tensor = 4; - */ - public org.tensorflow.proto.framework.TensorDescription.Builder getTensorBuilder() { - - onChanged(); - return getTensorFieldBuilder().getBuilder(); - } - /** - *
-     * Output tensor details.
-     * 
- * - * .tensorflow.TensorDescription tensor = 4; - */ - public org.tensorflow.proto.framework.TensorDescriptionOrBuilder getTensorOrBuilder() { - if (tensorBuilder_ != null) { - return tensorBuilder_.getMessageOrBuilder(); - } else { - return tensor_ == null ? - org.tensorflow.proto.framework.TensorDescription.getDefaultInstance() : tensor_; - } - } - /** - *
-     * Output tensor details.
-     * 
- * - * .tensorflow.TensorDescription tensor = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorDescription, org.tensorflow.proto.framework.TensorDescription.Builder, org.tensorflow.proto.framework.TensorDescriptionOrBuilder> - getTensorFieldBuilder() { - if (tensorBuilder_ == null) { - tensorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorDescription, org.tensorflow.proto.framework.TensorDescription.Builder, org.tensorflow.proto.framework.TensorDescriptionOrBuilder>( - getTensor(), - getParentForChildren(), - isClean()); - tensor_ = null; - } - return tensorBuilder_; - } - @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:tensorflow.MemoryLogTensorOutput) - } - - // @@protoc_insertion_point(class_scope:tensorflow.MemoryLogTensorOutput) - private static final org.tensorflow.proto.framework.MemoryLogTensorOutput DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.MemoryLogTensorOutput(); - } - - public static org.tensorflow.proto.framework.MemoryLogTensorOutput getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MemoryLogTensorOutput parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MemoryLogTensorOutput(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogTensorOutput getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryStats.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryStats.java deleted file mode 100644 index e351d0be2b0..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryStats.java +++ /dev/null @@ -1,981 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/step_stats.proto - -package org.tensorflow.proto.framework; - -/** - *
- * For memory tracking.
- * 
- * - * Protobuf type {@code tensorflow.MemoryStats} - */ -public final class MemoryStats extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.MemoryStats) - MemoryStatsOrBuilder { -private static final long serialVersionUID = 0L; - // Use MemoryStats.newBuilder() to construct. - private MemoryStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MemoryStats() { - persistentTensorAllocIds_ = emptyLongList(); - devicePersistentTensorAllocIds_ = emptyLongList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MemoryStats(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MemoryStats( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - tempMemorySize_ = input.readInt64(); - break; - } - case 16: { - - deviceTempMemorySize_ = input.readInt64(); - break; - } - case 24: { - - persistentMemorySize_ = input.readInt64(); - break; - } - case 32: { - - devicePersistentMemorySize_ = input.readInt64(); - break; - } - case 40: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - persistentTensorAllocIds_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - persistentTensorAllocIds_.addLong(input.readInt64()); - break; - } - case 42: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - persistentTensorAllocIds_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - persistentTensorAllocIds_.addLong(input.readInt64()); - } - input.popLimit(limit); - break; - } - case 48: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - devicePersistentTensorAllocIds_ = newLongList(); - mutable_bitField0_ |= 0x00000002; - } - devicePersistentTensorAllocIds_.addLong(input.readInt64()); - break; - } - case 50: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - devicePersistentTensorAllocIds_ = newLongList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - devicePersistentTensorAllocIds_.addLong(input.readInt64()); - } - input.popLimit(limit); - 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)) { - persistentTensorAllocIds_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - devicePersistentTensorAllocIds_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_MemoryStats_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_MemoryStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.MemoryStats.class, org.tensorflow.proto.framework.MemoryStats.Builder.class); - } - - public static final int TEMP_MEMORY_SIZE_FIELD_NUMBER = 1; - private long tempMemorySize_; - /** - * int64 temp_memory_size = 1; - */ - public long getTempMemorySize() { - return tempMemorySize_; - } - - public static final int PERSISTENT_MEMORY_SIZE_FIELD_NUMBER = 3; - private long persistentMemorySize_; - /** - * int64 persistent_memory_size = 3; - */ - public long getPersistentMemorySize() { - return persistentMemorySize_; - } - - public static final int PERSISTENT_TENSOR_ALLOC_IDS_FIELD_NUMBER = 5; - private com.google.protobuf.Internal.LongList persistentTensorAllocIds_; - /** - * repeated int64 persistent_tensor_alloc_ids = 5; - */ - public java.util.List - getPersistentTensorAllocIdsList() { - return persistentTensorAllocIds_; - } - /** - * repeated int64 persistent_tensor_alloc_ids = 5; - */ - public int getPersistentTensorAllocIdsCount() { - return persistentTensorAllocIds_.size(); - } - /** - * repeated int64 persistent_tensor_alloc_ids = 5; - */ - public long getPersistentTensorAllocIds(int index) { - return persistentTensorAllocIds_.getLong(index); - } - private int persistentTensorAllocIdsMemoizedSerializedSize = -1; - - public static final int DEVICE_TEMP_MEMORY_SIZE_FIELD_NUMBER = 2; - private long deviceTempMemorySize_; - /** - * int64 device_temp_memory_size = 2 [deprecated = true]; - */ - @java.lang.Deprecated public long getDeviceTempMemorySize() { - return deviceTempMemorySize_; - } - - public static final int DEVICE_PERSISTENT_MEMORY_SIZE_FIELD_NUMBER = 4; - private long devicePersistentMemorySize_; - /** - * int64 device_persistent_memory_size = 4 [deprecated = true]; - */ - @java.lang.Deprecated public long getDevicePersistentMemorySize() { - return devicePersistentMemorySize_; - } - - public static final int DEVICE_PERSISTENT_TENSOR_ALLOC_IDS_FIELD_NUMBER = 6; - private com.google.protobuf.Internal.LongList devicePersistentTensorAllocIds_; - /** - * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; - */ - @java.lang.Deprecated public java.util.List - getDevicePersistentTensorAllocIdsList() { - return devicePersistentTensorAllocIds_; - } - /** - * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; - */ - @java.lang.Deprecated public int getDevicePersistentTensorAllocIdsCount() { - return devicePersistentTensorAllocIds_.size(); - } - /** - * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; - */ - @java.lang.Deprecated public long getDevicePersistentTensorAllocIds(int index) { - return devicePersistentTensorAllocIds_.getLong(index); - } - private int devicePersistentTensorAllocIdsMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (tempMemorySize_ != 0L) { - output.writeInt64(1, tempMemorySize_); - } - if (deviceTempMemorySize_ != 0L) { - output.writeInt64(2, deviceTempMemorySize_); - } - if (persistentMemorySize_ != 0L) { - output.writeInt64(3, persistentMemorySize_); - } - if (devicePersistentMemorySize_ != 0L) { - output.writeInt64(4, devicePersistentMemorySize_); - } - if (getPersistentTensorAllocIdsList().size() > 0) { - output.writeUInt32NoTag(42); - output.writeUInt32NoTag(persistentTensorAllocIdsMemoizedSerializedSize); - } - for (int i = 0; i < persistentTensorAllocIds_.size(); i++) { - output.writeInt64NoTag(persistentTensorAllocIds_.getLong(i)); - } - if (getDevicePersistentTensorAllocIdsList().size() > 0) { - output.writeUInt32NoTag(50); - output.writeUInt32NoTag(devicePersistentTensorAllocIdsMemoizedSerializedSize); - } - for (int i = 0; i < devicePersistentTensorAllocIds_.size(); i++) { - output.writeInt64NoTag(devicePersistentTensorAllocIds_.getLong(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tempMemorySize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, tempMemorySize_); - } - if (deviceTempMemorySize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, deviceTempMemorySize_); - } - if (persistentMemorySize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, persistentMemorySize_); - } - if (devicePersistentMemorySize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, devicePersistentMemorySize_); - } - { - int dataSize = 0; - for (int i = 0; i < persistentTensorAllocIds_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(persistentTensorAllocIds_.getLong(i)); - } - size += dataSize; - if (!getPersistentTensorAllocIdsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - persistentTensorAllocIdsMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < devicePersistentTensorAllocIds_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(devicePersistentTensorAllocIds_.getLong(i)); - } - size += dataSize; - if (!getDevicePersistentTensorAllocIdsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - devicePersistentTensorAllocIdsMemoizedSerializedSize = dataSize; - } - 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 org.tensorflow.proto.framework.MemoryStats)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.MemoryStats other = (org.tensorflow.proto.framework.MemoryStats) obj; - - if (getTempMemorySize() - != other.getTempMemorySize()) return false; - if (getPersistentMemorySize() - != other.getPersistentMemorySize()) return false; - if (!getPersistentTensorAllocIdsList() - .equals(other.getPersistentTensorAllocIdsList())) return false; - if (getDeviceTempMemorySize() - != other.getDeviceTempMemorySize()) return false; - if (getDevicePersistentMemorySize() - != other.getDevicePersistentMemorySize()) return false; - if (!getDevicePersistentTensorAllocIdsList() - .equals(other.getDevicePersistentTensorAllocIdsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TEMP_MEMORY_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTempMemorySize()); - hash = (37 * hash) + PERSISTENT_MEMORY_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPersistentMemorySize()); - if (getPersistentTensorAllocIdsCount() > 0) { - hash = (37 * hash) + PERSISTENT_TENSOR_ALLOC_IDS_FIELD_NUMBER; - hash = (53 * hash) + getPersistentTensorAllocIdsList().hashCode(); - } - hash = (37 * hash) + DEVICE_TEMP_MEMORY_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDeviceTempMemorySize()); - hash = (37 * hash) + DEVICE_PERSISTENT_MEMORY_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDevicePersistentMemorySize()); - if (getDevicePersistentTensorAllocIdsCount() > 0) { - hash = (37 * hash) + DEVICE_PERSISTENT_TENSOR_ALLOC_IDS_FIELD_NUMBER; - hash = (53 * hash) + getDevicePersistentTensorAllocIdsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.MemoryStats parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.MemoryStats parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.MemoryStats parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.MemoryStats parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.MemoryStats parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.MemoryStats parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.MemoryStats parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.MemoryStats 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 org.tensorflow.proto.framework.MemoryStats parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.MemoryStats 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 org.tensorflow.proto.framework.MemoryStats parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.MemoryStats 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(org.tensorflow.proto.framework.MemoryStats 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; - } - /** - *
-   * For memory tracking.
-   * 
- * - * Protobuf type {@code tensorflow.MemoryStats} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.MemoryStats) - org.tensorflow.proto.framework.MemoryStatsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_MemoryStats_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_MemoryStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.MemoryStats.class, org.tensorflow.proto.framework.MemoryStats.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.MemoryStats.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - tempMemorySize_ = 0L; - - persistentMemorySize_ = 0L; - - persistentTensorAllocIds_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - deviceTempMemorySize_ = 0L; - - devicePersistentMemorySize_ = 0L; - - devicePersistentTensorAllocIds_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_MemoryStats_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.MemoryStats getDefaultInstanceForType() { - return org.tensorflow.proto.framework.MemoryStats.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.MemoryStats build() { - org.tensorflow.proto.framework.MemoryStats result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.MemoryStats buildPartial() { - org.tensorflow.proto.framework.MemoryStats result = new org.tensorflow.proto.framework.MemoryStats(this); - int from_bitField0_ = bitField0_; - result.tempMemorySize_ = tempMemorySize_; - result.persistentMemorySize_ = persistentMemorySize_; - if (((bitField0_ & 0x00000001) != 0)) { - persistentTensorAllocIds_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.persistentTensorAllocIds_ = persistentTensorAllocIds_; - result.deviceTempMemorySize_ = deviceTempMemorySize_; - result.devicePersistentMemorySize_ = devicePersistentMemorySize_; - if (((bitField0_ & 0x00000002) != 0)) { - devicePersistentTensorAllocIds_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.devicePersistentTensorAllocIds_ = devicePersistentTensorAllocIds_; - 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 org.tensorflow.proto.framework.MemoryStats) { - return mergeFrom((org.tensorflow.proto.framework.MemoryStats)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.MemoryStats other) { - if (other == org.tensorflow.proto.framework.MemoryStats.getDefaultInstance()) return this; - if (other.getTempMemorySize() != 0L) { - setTempMemorySize(other.getTempMemorySize()); - } - if (other.getPersistentMemorySize() != 0L) { - setPersistentMemorySize(other.getPersistentMemorySize()); - } - if (!other.persistentTensorAllocIds_.isEmpty()) { - if (persistentTensorAllocIds_.isEmpty()) { - persistentTensorAllocIds_ = other.persistentTensorAllocIds_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePersistentTensorAllocIdsIsMutable(); - persistentTensorAllocIds_.addAll(other.persistentTensorAllocIds_); - } - onChanged(); - } - if (other.getDeviceTempMemorySize() != 0L) { - setDeviceTempMemorySize(other.getDeviceTempMemorySize()); - } - if (other.getDevicePersistentMemorySize() != 0L) { - setDevicePersistentMemorySize(other.getDevicePersistentMemorySize()); - } - if (!other.devicePersistentTensorAllocIds_.isEmpty()) { - if (devicePersistentTensorAllocIds_.isEmpty()) { - devicePersistentTensorAllocIds_ = other.devicePersistentTensorAllocIds_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDevicePersistentTensorAllocIdsIsMutable(); - devicePersistentTensorAllocIds_.addAll(other.devicePersistentTensorAllocIds_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.MemoryStats parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.MemoryStats) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long tempMemorySize_ ; - /** - * int64 temp_memory_size = 1; - */ - public long getTempMemorySize() { - return tempMemorySize_; - } - /** - * int64 temp_memory_size = 1; - */ - public Builder setTempMemorySize(long value) { - - tempMemorySize_ = value; - onChanged(); - return this; - } - /** - * int64 temp_memory_size = 1; - */ - public Builder clearTempMemorySize() { - - tempMemorySize_ = 0L; - onChanged(); - return this; - } - - private long persistentMemorySize_ ; - /** - * int64 persistent_memory_size = 3; - */ - public long getPersistentMemorySize() { - return persistentMemorySize_; - } - /** - * int64 persistent_memory_size = 3; - */ - public Builder setPersistentMemorySize(long value) { - - persistentMemorySize_ = value; - onChanged(); - return this; - } - /** - * int64 persistent_memory_size = 3; - */ - public Builder clearPersistentMemorySize() { - - persistentMemorySize_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList persistentTensorAllocIds_ = emptyLongList(); - private void ensurePersistentTensorAllocIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - persistentTensorAllocIds_ = mutableCopy(persistentTensorAllocIds_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated int64 persistent_tensor_alloc_ids = 5; - */ - public java.util.List - getPersistentTensorAllocIdsList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(persistentTensorAllocIds_) : persistentTensorAllocIds_; - } - /** - * repeated int64 persistent_tensor_alloc_ids = 5; - */ - public int getPersistentTensorAllocIdsCount() { - return persistentTensorAllocIds_.size(); - } - /** - * repeated int64 persistent_tensor_alloc_ids = 5; - */ - public long getPersistentTensorAllocIds(int index) { - return persistentTensorAllocIds_.getLong(index); - } - /** - * repeated int64 persistent_tensor_alloc_ids = 5; - */ - public Builder setPersistentTensorAllocIds( - int index, long value) { - ensurePersistentTensorAllocIdsIsMutable(); - persistentTensorAllocIds_.setLong(index, value); - onChanged(); - return this; - } - /** - * repeated int64 persistent_tensor_alloc_ids = 5; - */ - public Builder addPersistentTensorAllocIds(long value) { - ensurePersistentTensorAllocIdsIsMutable(); - persistentTensorAllocIds_.addLong(value); - onChanged(); - return this; - } - /** - * repeated int64 persistent_tensor_alloc_ids = 5; - */ - public Builder addAllPersistentTensorAllocIds( - java.lang.Iterable values) { - ensurePersistentTensorAllocIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, persistentTensorAllocIds_); - onChanged(); - return this; - } - /** - * repeated int64 persistent_tensor_alloc_ids = 5; - */ - public Builder clearPersistentTensorAllocIds() { - persistentTensorAllocIds_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private long deviceTempMemorySize_ ; - /** - * int64 device_temp_memory_size = 2 [deprecated = true]; - */ - @java.lang.Deprecated public long getDeviceTempMemorySize() { - return deviceTempMemorySize_; - } - /** - * int64 device_temp_memory_size = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setDeviceTempMemorySize(long value) { - - deviceTempMemorySize_ = value; - onChanged(); - return this; - } - /** - * int64 device_temp_memory_size = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearDeviceTempMemorySize() { - - deviceTempMemorySize_ = 0L; - onChanged(); - return this; - } - - private long devicePersistentMemorySize_ ; - /** - * int64 device_persistent_memory_size = 4 [deprecated = true]; - */ - @java.lang.Deprecated public long getDevicePersistentMemorySize() { - return devicePersistentMemorySize_; - } - /** - * int64 device_persistent_memory_size = 4 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setDevicePersistentMemorySize(long value) { - - devicePersistentMemorySize_ = value; - onChanged(); - return this; - } - /** - * int64 device_persistent_memory_size = 4 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearDevicePersistentMemorySize() { - - devicePersistentMemorySize_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList devicePersistentTensorAllocIds_ = emptyLongList(); - private void ensureDevicePersistentTensorAllocIdsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - devicePersistentTensorAllocIds_ = mutableCopy(devicePersistentTensorAllocIds_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; - */ - @java.lang.Deprecated public java.util.List - getDevicePersistentTensorAllocIdsList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(devicePersistentTensorAllocIds_) : devicePersistentTensorAllocIds_; - } - /** - * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; - */ - @java.lang.Deprecated public int getDevicePersistentTensorAllocIdsCount() { - return devicePersistentTensorAllocIds_.size(); - } - /** - * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; - */ - @java.lang.Deprecated public long getDevicePersistentTensorAllocIds(int index) { - return devicePersistentTensorAllocIds_.getLong(index); - } - /** - * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setDevicePersistentTensorAllocIds( - int index, long value) { - ensureDevicePersistentTensorAllocIdsIsMutable(); - devicePersistentTensorAllocIds_.setLong(index, value); - onChanged(); - return this; - } - /** - * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; - */ - @java.lang.Deprecated public Builder addDevicePersistentTensorAllocIds(long value) { - ensureDevicePersistentTensorAllocIdsIsMutable(); - devicePersistentTensorAllocIds_.addLong(value); - onChanged(); - return this; - } - /** - * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; - */ - @java.lang.Deprecated public Builder addAllDevicePersistentTensorAllocIds( - java.lang.Iterable values) { - ensureDevicePersistentTensorAllocIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, devicePersistentTensorAllocIds_); - onChanged(); - return this; - } - /** - * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearDevicePersistentTensorAllocIds() { - devicePersistentTensorAllocIds_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000002); - 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:tensorflow.MemoryStats) - } - - // @@protoc_insertion_point(class_scope:tensorflow.MemoryStats) - private static final org.tensorflow.proto.framework.MemoryStats DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.MemoryStats(); - } - - public static org.tensorflow.proto.framework.MemoryStats getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MemoryStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MemoryStats(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.MemoryStats getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryStatsOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryStatsOrBuilder.java deleted file mode 100644 index db3c896352c..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryStatsOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/step_stats.proto - -package org.tensorflow.proto.framework; - -public interface MemoryStatsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.MemoryStats) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 temp_memory_size = 1; - */ - long getTempMemorySize(); - - /** - * int64 persistent_memory_size = 3; - */ - long getPersistentMemorySize(); - - /** - * repeated int64 persistent_tensor_alloc_ids = 5; - */ - java.util.List getPersistentTensorAllocIdsList(); - /** - * repeated int64 persistent_tensor_alloc_ids = 5; - */ - int getPersistentTensorAllocIdsCount(); - /** - * repeated int64 persistent_tensor_alloc_ids = 5; - */ - long getPersistentTensorAllocIds(int index); - - /** - * int64 device_temp_memory_size = 2 [deprecated = true]; - */ - @java.lang.Deprecated long getDeviceTempMemorySize(); - - /** - * int64 device_persistent_memory_size = 4 [deprecated = true]; - */ - @java.lang.Deprecated long getDevicePersistentMemorySize(); - - /** - * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; - */ - @java.lang.Deprecated java.util.List getDevicePersistentTensorAllocIdsList(); - /** - * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; - */ - @java.lang.Deprecated int getDevicePersistentTensorAllocIdsCount(); - /** - * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; - */ - @java.lang.Deprecated long getDevicePersistentTensorAllocIds(int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MetaGraphDefOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MetaGraphDefOrBuilder.java deleted file mode 100644 index ca9cf06f97b..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MetaGraphDefOrBuilder.java +++ /dev/null @@ -1,259 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/meta_graph.proto - -package org.tensorflow.proto.framework; - -public interface MetaGraphDefOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.MetaGraphDef) - com.google.protobuf.MessageOrBuilder { - - /** - * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; - */ - boolean hasMetaInfoDef(); - /** - * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; - */ - org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef getMetaInfoDef(); - /** - * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; - */ - org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDefOrBuilder getMetaInfoDefOrBuilder(); - - /** - *
-   * GraphDef.
-   * 
- * - * .tensorflow.GraphDef graph_def = 2; - */ - boolean hasGraphDef(); - /** - *
-   * GraphDef.
-   * 
- * - * .tensorflow.GraphDef graph_def = 2; - */ - org.tensorflow.proto.framework.GraphDef getGraphDef(); - /** - *
-   * GraphDef.
-   * 
- * - * .tensorflow.GraphDef graph_def = 2; - */ - org.tensorflow.proto.framework.GraphDefOrBuilder getGraphDefOrBuilder(); - - /** - *
-   * SaverDef.
-   * 
- * - * .tensorflow.SaverDef saver_def = 3; - */ - boolean hasSaverDef(); - /** - *
-   * SaverDef.
-   * 
- * - * .tensorflow.SaverDef saver_def = 3; - */ - org.tensorflow.proto.util.SaverDef getSaverDef(); - /** - *
-   * SaverDef.
-   * 
- * - * .tensorflow.SaverDef saver_def = 3; - */ - org.tensorflow.proto.util.SaverDefOrBuilder getSaverDefOrBuilder(); - - /** - *
-   * collection_def: Map from collection name to collections.
-   * See CollectionDef section for details.
-   * 
- * - * map<string, .tensorflow.CollectionDef> collection_def = 4; - */ - int getCollectionDefCount(); - /** - *
-   * collection_def: Map from collection name to collections.
-   * See CollectionDef section for details.
-   * 
- * - * map<string, .tensorflow.CollectionDef> collection_def = 4; - */ - boolean containsCollectionDef( - java.lang.String key); - /** - * Use {@link #getCollectionDefMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getCollectionDef(); - /** - *
-   * collection_def: Map from collection name to collections.
-   * See CollectionDef section for details.
-   * 
- * - * map<string, .tensorflow.CollectionDef> collection_def = 4; - */ - java.util.Map - getCollectionDefMap(); - /** - *
-   * collection_def: Map from collection name to collections.
-   * See CollectionDef section for details.
-   * 
- * - * map<string, .tensorflow.CollectionDef> collection_def = 4; - */ - - org.tensorflow.proto.framework.CollectionDef getCollectionDefOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.CollectionDef defaultValue); - /** - *
-   * collection_def: Map from collection name to collections.
-   * See CollectionDef section for details.
-   * 
- * - * map<string, .tensorflow.CollectionDef> collection_def = 4; - */ - - org.tensorflow.proto.framework.CollectionDef getCollectionDefOrThrow( - java.lang.String key); - - /** - *
-   * signature_def: Map from user supplied key for a signature to a single
-   * SignatureDef.
-   * 
- * - * map<string, .tensorflow.SignatureDef> signature_def = 5; - */ - int getSignatureDefCount(); - /** - *
-   * signature_def: Map from user supplied key for a signature to a single
-   * SignatureDef.
-   * 
- * - * map<string, .tensorflow.SignatureDef> signature_def = 5; - */ - boolean containsSignatureDef( - java.lang.String key); - /** - * Use {@link #getSignatureDefMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getSignatureDef(); - /** - *
-   * signature_def: Map from user supplied key for a signature to a single
-   * SignatureDef.
-   * 
- * - * map<string, .tensorflow.SignatureDef> signature_def = 5; - */ - java.util.Map - getSignatureDefMap(); - /** - *
-   * signature_def: Map from user supplied key for a signature to a single
-   * SignatureDef.
-   * 
- * - * map<string, .tensorflow.SignatureDef> signature_def = 5; - */ - - org.tensorflow.proto.framework.SignatureDef getSignatureDefOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.SignatureDef defaultValue); - /** - *
-   * signature_def: Map from user supplied key for a signature to a single
-   * SignatureDef.
-   * 
- * - * map<string, .tensorflow.SignatureDef> signature_def = 5; - */ - - org.tensorflow.proto.framework.SignatureDef getSignatureDefOrThrow( - java.lang.String key); - - /** - *
-   * Asset file def to be used with the defined graph.
-   * 
- * - * repeated .tensorflow.AssetFileDef asset_file_def = 6; - */ - java.util.List - getAssetFileDefList(); - /** - *
-   * Asset file def to be used with the defined graph.
-   * 
- * - * repeated .tensorflow.AssetFileDef asset_file_def = 6; - */ - org.tensorflow.proto.framework.AssetFileDef getAssetFileDef(int index); - /** - *
-   * Asset file def to be used with the defined graph.
-   * 
- * - * repeated .tensorflow.AssetFileDef asset_file_def = 6; - */ - int getAssetFileDefCount(); - /** - *
-   * Asset file def to be used with the defined graph.
-   * 
- * - * repeated .tensorflow.AssetFileDef asset_file_def = 6; - */ - java.util.List - getAssetFileDefOrBuilderList(); - /** - *
-   * Asset file def to be used with the defined graph.
-   * 
- * - * repeated .tensorflow.AssetFileDef asset_file_def = 6; - */ - org.tensorflow.proto.framework.AssetFileDefOrBuilder getAssetFileDefOrBuilder( - int index); - - /** - *
-   * Extra information about the structure of functions and stateful objects.
-   * 
- * - * .tensorflow.SavedObjectGraph object_graph_def = 7; - */ - boolean hasObjectGraphDef(); - /** - *
-   * Extra information about the structure of functions and stateful objects.
-   * 
- * - * .tensorflow.SavedObjectGraph object_graph_def = 7; - */ - org.tensorflow.proto.framework.SavedObjectGraph getObjectGraphDef(); - /** - *
-   * Extra information about the structure of functions and stateful objects.
-   * 
- * - * .tensorflow.SavedObjectGraph object_graph_def = 7; - */ - org.tensorflow.proto.framework.SavedObjectGraphOrBuilder getObjectGraphDefOrBuilder(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NameAttrList.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NameAttrList.java deleted file mode 100644 index a17b31f8aa1..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NameAttrList.java +++ /dev/null @@ -1,832 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/attr_value.proto - -package org.tensorflow.proto.framework; - -/** - *
- * A list of attr names and their values. The whole list is attached
- * with a string name.  E.g., MatMul[T=float].
- * 
- * - * Protobuf type {@code tensorflow.NameAttrList} - */ -public final class NameAttrList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.NameAttrList) - NameAttrListOrBuilder { -private static final long serialVersionUID = 0L; - // Use NameAttrList.newBuilder() to construct. - private NameAttrList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NameAttrList() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NameAttrList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NameAttrList( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - attr_ = com.google.protobuf.MapField.newMapField( - AttrDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - attr__ = input.readMessage( - AttrDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - attr_.getMutableMap().put( - attr__.getKey(), attr__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.AttrValueProtos.internal_static_tensorflow_NameAttrList_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetAttr(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.AttrValueProtos.internal_static_tensorflow_NameAttrList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.NameAttrList.class, org.tensorflow.proto.framework.NameAttrList.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ATTR_FIELD_NUMBER = 2; - private static final class AttrDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, org.tensorflow.proto.framework.AttrValue> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.tensorflow.proto.framework.AttrValueProtos.internal_static_tensorflow_NameAttrList_AttrEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.tensorflow.proto.framework.AttrValue.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.AttrValue> attr_; - private com.google.protobuf.MapField - internalGetAttr() { - if (attr_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AttrDefaultEntryHolder.defaultEntry); - } - return attr_; - } - - public int getAttrCount() { - return internalGetAttr().getMap().size(); - } - /** - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - public boolean containsAttr( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetAttr().getMap().containsKey(key); - } - /** - * Use {@link #getAttrMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getAttr() { - return getAttrMap(); - } - /** - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - public java.util.Map getAttrMap() { - return internalGetAttr().getMap(); - } - /** - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - public org.tensorflow.proto.framework.AttrValue getAttrOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.AttrValue defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttr().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - public org.tensorflow.proto.framework.AttrValue getAttrOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttr().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 { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAttr(), - AttrDefaultEntryHolder.defaultEntry, - 2); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - for (java.util.Map.Entry entry - : internalGetAttr().getMap().entrySet()) { - com.google.protobuf.MapEntry - attr__ = AttrDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, attr__); - } - 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 org.tensorflow.proto.framework.NameAttrList)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.NameAttrList other = (org.tensorflow.proto.framework.NameAttrList) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!internalGetAttr().equals( - other.internalGetAttr())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (!internalGetAttr().getMap().isEmpty()) { - hash = (37 * hash) + ATTR_FIELD_NUMBER; - hash = (53 * hash) + internalGetAttr().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.NameAttrList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.NameAttrList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.NameAttrList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.NameAttrList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.NameAttrList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.NameAttrList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.NameAttrList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.NameAttrList 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 org.tensorflow.proto.framework.NameAttrList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.NameAttrList 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 org.tensorflow.proto.framework.NameAttrList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.NameAttrList 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(org.tensorflow.proto.framework.NameAttrList 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; - } - /** - *
-   * A list of attr names and their values. The whole list is attached
-   * with a string name.  E.g., MatMul[T=float].
-   * 
- * - * Protobuf type {@code tensorflow.NameAttrList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.NameAttrList) - org.tensorflow.proto.framework.NameAttrListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.AttrValueProtos.internal_static_tensorflow_NameAttrList_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetAttr(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableAttr(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.AttrValueProtos.internal_static_tensorflow_NameAttrList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.NameAttrList.class, org.tensorflow.proto.framework.NameAttrList.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.NameAttrList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - internalGetMutableAttr().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.AttrValueProtos.internal_static_tensorflow_NameAttrList_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.NameAttrList getDefaultInstanceForType() { - return org.tensorflow.proto.framework.NameAttrList.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.NameAttrList build() { - org.tensorflow.proto.framework.NameAttrList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.NameAttrList buildPartial() { - org.tensorflow.proto.framework.NameAttrList result = new org.tensorflow.proto.framework.NameAttrList(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.attr_ = internalGetAttr(); - result.attr_.makeImmutable(); - 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 org.tensorflow.proto.framework.NameAttrList) { - return mergeFrom((org.tensorflow.proto.framework.NameAttrList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.NameAttrList other) { - if (other == org.tensorflow.proto.framework.NameAttrList.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - internalGetMutableAttr().mergeFrom( - other.internalGetAttr()); - 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 { - org.tensorflow.proto.framework.NameAttrList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.NameAttrList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.AttrValue> attr_; - private com.google.protobuf.MapField - internalGetAttr() { - if (attr_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AttrDefaultEntryHolder.defaultEntry); - } - return attr_; - } - private com.google.protobuf.MapField - internalGetMutableAttr() { - onChanged();; - if (attr_ == null) { - attr_ = com.google.protobuf.MapField.newMapField( - AttrDefaultEntryHolder.defaultEntry); - } - if (!attr_.isMutable()) { - attr_ = attr_.copy(); - } - return attr_; - } - - public int getAttrCount() { - return internalGetAttr().getMap().size(); - } - /** - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - public boolean containsAttr( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetAttr().getMap().containsKey(key); - } - /** - * Use {@link #getAttrMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getAttr() { - return getAttrMap(); - } - /** - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - public java.util.Map getAttrMap() { - return internalGetAttr().getMap(); - } - /** - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - public org.tensorflow.proto.framework.AttrValue getAttrOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.AttrValue defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttr().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - public org.tensorflow.proto.framework.AttrValue getAttrOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttr().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAttr() { - internalGetMutableAttr().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - public Builder removeAttr( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAttr().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableAttr() { - return internalGetMutableAttr().getMutableMap(); - } - /** - * map<string, .tensorflow.AttrValue> attr = 2; - */ - public Builder putAttr( - java.lang.String key, - org.tensorflow.proto.framework.AttrValue value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAttr().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - public Builder putAllAttr( - java.util.Map values) { - internalGetMutableAttr().getMutableMap() - .putAll(values); - 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:tensorflow.NameAttrList) - } - - // @@protoc_insertion_point(class_scope:tensorflow.NameAttrList) - private static final org.tensorflow.proto.framework.NameAttrList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.NameAttrList(); - } - - public static org.tensorflow.proto.framework.NameAttrList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NameAttrList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NameAttrList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.NameAttrList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NameAttrListOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NameAttrListOrBuilder.java deleted file mode 100644 index 293b4278408..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NameAttrListOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/attr_value.proto - -package org.tensorflow.proto.framework; - -public interface NameAttrListOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.NameAttrList) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1; - */ - java.lang.String getName(); - /** - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * map<string, .tensorflow.AttrValue> attr = 2; - */ - int getAttrCount(); - /** - * map<string, .tensorflow.AttrValue> attr = 2; - */ - boolean containsAttr( - java.lang.String key); - /** - * Use {@link #getAttrMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getAttr(); - /** - * map<string, .tensorflow.AttrValue> attr = 2; - */ - java.util.Map - getAttrMap(); - /** - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - org.tensorflow.proto.framework.AttrValue getAttrOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.AttrValue defaultValue); - /** - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - org.tensorflow.proto.framework.AttrValue getAttrOrThrow( - java.lang.String key); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NamedDevice.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NamedDevice.java deleted file mode 100644 index 02a1dc9f6c7..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NamedDevice.java +++ /dev/null @@ -1,727 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/device_properties.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.NamedDevice} - */ -public final class NamedDevice extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.NamedDevice) - NamedDeviceOrBuilder { -private static final long serialVersionUID = 0L; - // Use NamedDevice.newBuilder() to construct. - private NamedDevice(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedDevice() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NamedDevice(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedDevice( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - org.tensorflow.proto.framework.DeviceProperties.Builder subBuilder = null; - if (properties_ != null) { - subBuilder = properties_.toBuilder(); - } - properties_ = input.readMessage(org.tensorflow.proto.framework.DeviceProperties.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(properties_); - properties_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.DevicePropertiesProtos.internal_static_tensorflow_NamedDevice_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.DevicePropertiesProtos.internal_static_tensorflow_NamedDevice_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.NamedDevice.class, org.tensorflow.proto.framework.NamedDevice.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROPERTIES_FIELD_NUMBER = 2; - private org.tensorflow.proto.framework.DeviceProperties properties_; - /** - * .tensorflow.DeviceProperties properties = 2; - */ - public boolean hasProperties() { - return properties_ != null; - } - /** - * .tensorflow.DeviceProperties properties = 2; - */ - public org.tensorflow.proto.framework.DeviceProperties getProperties() { - return properties_ == null ? org.tensorflow.proto.framework.DeviceProperties.getDefaultInstance() : properties_; - } - /** - * .tensorflow.DeviceProperties properties = 2; - */ - public org.tensorflow.proto.framework.DevicePropertiesOrBuilder getPropertiesOrBuilder() { - return getProperties(); - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (properties_ != null) { - output.writeMessage(2, getProperties()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (properties_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getProperties()); - } - 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 org.tensorflow.proto.framework.NamedDevice)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.NamedDevice other = (org.tensorflow.proto.framework.NamedDevice) obj; - - if (!getName() - .equals(other.getName())) return false; - if (hasProperties() != other.hasProperties()) return false; - if (hasProperties()) { - if (!getProperties() - .equals(other.getProperties())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasProperties()) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + getProperties().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.NamedDevice parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.NamedDevice parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.NamedDevice parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.NamedDevice parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.NamedDevice parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.NamedDevice parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.NamedDevice parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.NamedDevice 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 org.tensorflow.proto.framework.NamedDevice parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.NamedDevice 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 org.tensorflow.proto.framework.NamedDevice parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.NamedDevice 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(org.tensorflow.proto.framework.NamedDevice prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.NamedDevice} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.NamedDevice) - org.tensorflow.proto.framework.NamedDeviceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.DevicePropertiesProtos.internal_static_tensorflow_NamedDevice_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.DevicePropertiesProtos.internal_static_tensorflow_NamedDevice_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.NamedDevice.class, org.tensorflow.proto.framework.NamedDevice.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.NamedDevice.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (propertiesBuilder_ == null) { - properties_ = null; - } else { - properties_ = null; - propertiesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.DevicePropertiesProtos.internal_static_tensorflow_NamedDevice_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.NamedDevice getDefaultInstanceForType() { - return org.tensorflow.proto.framework.NamedDevice.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.NamedDevice build() { - org.tensorflow.proto.framework.NamedDevice result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.NamedDevice buildPartial() { - org.tensorflow.proto.framework.NamedDevice result = new org.tensorflow.proto.framework.NamedDevice(this); - result.name_ = name_; - if (propertiesBuilder_ == null) { - result.properties_ = properties_; - } else { - result.properties_ = propertiesBuilder_.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 org.tensorflow.proto.framework.NamedDevice) { - return mergeFrom((org.tensorflow.proto.framework.NamedDevice)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.NamedDevice other) { - if (other == org.tensorflow.proto.framework.NamedDevice.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasProperties()) { - mergeProperties(other.getProperties()); - } - 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 { - org.tensorflow.proto.framework.NamedDevice parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.NamedDevice) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.DeviceProperties properties_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.DeviceProperties, org.tensorflow.proto.framework.DeviceProperties.Builder, org.tensorflow.proto.framework.DevicePropertiesOrBuilder> propertiesBuilder_; - /** - * .tensorflow.DeviceProperties properties = 2; - */ - public boolean hasProperties() { - return propertiesBuilder_ != null || properties_ != null; - } - /** - * .tensorflow.DeviceProperties properties = 2; - */ - public org.tensorflow.proto.framework.DeviceProperties getProperties() { - if (propertiesBuilder_ == null) { - return properties_ == null ? org.tensorflow.proto.framework.DeviceProperties.getDefaultInstance() : properties_; - } else { - return propertiesBuilder_.getMessage(); - } - } - /** - * .tensorflow.DeviceProperties properties = 2; - */ - public Builder setProperties(org.tensorflow.proto.framework.DeviceProperties value) { - if (propertiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - properties_ = value; - onChanged(); - } else { - propertiesBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.DeviceProperties properties = 2; - */ - public Builder setProperties( - org.tensorflow.proto.framework.DeviceProperties.Builder builderForValue) { - if (propertiesBuilder_ == null) { - properties_ = builderForValue.build(); - onChanged(); - } else { - propertiesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.DeviceProperties properties = 2; - */ - public Builder mergeProperties(org.tensorflow.proto.framework.DeviceProperties value) { - if (propertiesBuilder_ == null) { - if (properties_ != null) { - properties_ = - org.tensorflow.proto.framework.DeviceProperties.newBuilder(properties_).mergeFrom(value).buildPartial(); - } else { - properties_ = value; - } - onChanged(); - } else { - propertiesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.DeviceProperties properties = 2; - */ - public Builder clearProperties() { - if (propertiesBuilder_ == null) { - properties_ = null; - onChanged(); - } else { - properties_ = null; - propertiesBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.DeviceProperties properties = 2; - */ - public org.tensorflow.proto.framework.DeviceProperties.Builder getPropertiesBuilder() { - - onChanged(); - return getPropertiesFieldBuilder().getBuilder(); - } - /** - * .tensorflow.DeviceProperties properties = 2; - */ - public org.tensorflow.proto.framework.DevicePropertiesOrBuilder getPropertiesOrBuilder() { - if (propertiesBuilder_ != null) { - return propertiesBuilder_.getMessageOrBuilder(); - } else { - return properties_ == null ? - org.tensorflow.proto.framework.DeviceProperties.getDefaultInstance() : properties_; - } - } - /** - * .tensorflow.DeviceProperties properties = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.DeviceProperties, org.tensorflow.proto.framework.DeviceProperties.Builder, org.tensorflow.proto.framework.DevicePropertiesOrBuilder> - getPropertiesFieldBuilder() { - if (propertiesBuilder_ == null) { - propertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.DeviceProperties, org.tensorflow.proto.framework.DeviceProperties.Builder, org.tensorflow.proto.framework.DevicePropertiesOrBuilder>( - getProperties(), - getParentForChildren(), - isClean()); - properties_ = null; - } - return propertiesBuilder_; - } - @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:tensorflow.NamedDevice) - } - - // @@protoc_insertion_point(class_scope:tensorflow.NamedDevice) - private static final org.tensorflow.proto.framework.NamedDevice DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.NamedDevice(); - } - - public static org.tensorflow.proto.framework.NamedDevice getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedDevice parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedDevice(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.NamedDevice getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NamedDeviceOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NamedDeviceOrBuilder.java deleted file mode 100644 index 52eed19dd38..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NamedDeviceOrBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/device_properties.proto - -package org.tensorflow.proto.framework; - -public interface NamedDeviceOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.NamedDevice) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1; - */ - java.lang.String getName(); - /** - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * .tensorflow.DeviceProperties properties = 2; - */ - boolean hasProperties(); - /** - * .tensorflow.DeviceProperties properties = 2; - */ - org.tensorflow.proto.framework.DeviceProperties getProperties(); - /** - * .tensorflow.DeviceProperties properties = 2; - */ - org.tensorflow.proto.framework.DevicePropertiesOrBuilder getPropertiesOrBuilder(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NamedTensorProto.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NamedTensorProto.java deleted file mode 100644 index c5b5514e2e3..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NamedTensorProto.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/named_tensor.proto - -package org.tensorflow.proto.framework; - -/** - *
- * A pair of tensor name and tensor values.
- * 
- * - * Protobuf type {@code tensorflow.NamedTensorProto} - */ -public final class NamedTensorProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.NamedTensorProto) - NamedTensorProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use NamedTensorProto.newBuilder() to construct. - private NamedTensorProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedTensorProto() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NamedTensorProto(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedTensorProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - org.tensorflow.proto.framework.TensorProto.Builder subBuilder = null; - if (tensor_ != null) { - subBuilder = tensor_.toBuilder(); - } - tensor_ = input.readMessage(org.tensorflow.proto.framework.TensorProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tensor_); - tensor_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.NamedTensorProtos.internal_static_tensorflow_NamedTensorProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.NamedTensorProtos.internal_static_tensorflow_NamedTensorProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.NamedTensorProto.class, org.tensorflow.proto.framework.NamedTensorProto.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * Name of the tensor.
-   * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - *
-   * Name of the tensor.
-   * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TENSOR_FIELD_NUMBER = 2; - private org.tensorflow.proto.framework.TensorProto tensor_; - /** - *
-   * The client can populate a TensorProto using a tensorflow::Tensor`, or
-   * directly using the protobuf field accessors.
-   * The client specifies whether the returned tensor values should be
-   * filled tensor fields (float_val, int_val, etc.) or encoded in a
-   * compact form in tensor.tensor_content.
-   * 
- * - * .tensorflow.TensorProto tensor = 2; - */ - public boolean hasTensor() { - return tensor_ != null; - } - /** - *
-   * The client can populate a TensorProto using a tensorflow::Tensor`, or
-   * directly using the protobuf field accessors.
-   * The client specifies whether the returned tensor values should be
-   * filled tensor fields (float_val, int_val, etc.) or encoded in a
-   * compact form in tensor.tensor_content.
-   * 
- * - * .tensorflow.TensorProto tensor = 2; - */ - public org.tensorflow.proto.framework.TensorProto getTensor() { - return tensor_ == null ? org.tensorflow.proto.framework.TensorProto.getDefaultInstance() : tensor_; - } - /** - *
-   * The client can populate a TensorProto using a tensorflow::Tensor`, or
-   * directly using the protobuf field accessors.
-   * The client specifies whether the returned tensor values should be
-   * filled tensor fields (float_val, int_val, etc.) or encoded in a
-   * compact form in tensor.tensor_content.
-   * 
- * - * .tensorflow.TensorProto tensor = 2; - */ - public org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorOrBuilder() { - return getTensor(); - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (tensor_ != null) { - output.writeMessage(2, getTensor()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (tensor_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTensor()); - } - 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 org.tensorflow.proto.framework.NamedTensorProto)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.NamedTensorProto other = (org.tensorflow.proto.framework.NamedTensorProto) obj; - - if (!getName() - .equals(other.getName())) return false; - if (hasTensor() != other.hasTensor()) return false; - if (hasTensor()) { - if (!getTensor() - .equals(other.getTensor())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasTensor()) { - hash = (37 * hash) + TENSOR_FIELD_NUMBER; - hash = (53 * hash) + getTensor().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.NamedTensorProto parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.NamedTensorProto parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.NamedTensorProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.NamedTensorProto parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.NamedTensorProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.NamedTensorProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.NamedTensorProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.NamedTensorProto 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 org.tensorflow.proto.framework.NamedTensorProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.NamedTensorProto 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 org.tensorflow.proto.framework.NamedTensorProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.NamedTensorProto 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(org.tensorflow.proto.framework.NamedTensorProto 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; - } - /** - *
-   * A pair of tensor name and tensor values.
-   * 
- * - * Protobuf type {@code tensorflow.NamedTensorProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.NamedTensorProto) - org.tensorflow.proto.framework.NamedTensorProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.NamedTensorProtos.internal_static_tensorflow_NamedTensorProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.NamedTensorProtos.internal_static_tensorflow_NamedTensorProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.NamedTensorProto.class, org.tensorflow.proto.framework.NamedTensorProto.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.NamedTensorProto.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (tensorBuilder_ == null) { - tensor_ = null; - } else { - tensor_ = null; - tensorBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.NamedTensorProtos.internal_static_tensorflow_NamedTensorProto_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.NamedTensorProto getDefaultInstanceForType() { - return org.tensorflow.proto.framework.NamedTensorProto.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.NamedTensorProto build() { - org.tensorflow.proto.framework.NamedTensorProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.NamedTensorProto buildPartial() { - org.tensorflow.proto.framework.NamedTensorProto result = new org.tensorflow.proto.framework.NamedTensorProto(this); - result.name_ = name_; - if (tensorBuilder_ == null) { - result.tensor_ = tensor_; - } else { - result.tensor_ = tensorBuilder_.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 org.tensorflow.proto.framework.NamedTensorProto) { - return mergeFrom((org.tensorflow.proto.framework.NamedTensorProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.NamedTensorProto other) { - if (other == org.tensorflow.proto.framework.NamedTensorProto.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasTensor()) { - mergeTensor(other.getTensor()); - } - 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 { - org.tensorflow.proto.framework.NamedTensorProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.NamedTensorProto) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * Name of the tensor.
-     * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Name of the tensor.
-     * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Name of the tensor.
-     * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * Name of the tensor.
-     * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * Name of the tensor.
-     * 
- * - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.TensorProto tensor_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder> tensorBuilder_; - /** - *
-     * The client can populate a TensorProto using a tensorflow::Tensor`, or
-     * directly using the protobuf field accessors.
-     * The client specifies whether the returned tensor values should be
-     * filled tensor fields (float_val, int_val, etc.) or encoded in a
-     * compact form in tensor.tensor_content.
-     * 
- * - * .tensorflow.TensorProto tensor = 2; - */ - public boolean hasTensor() { - return tensorBuilder_ != null || tensor_ != null; - } - /** - *
-     * The client can populate a TensorProto using a tensorflow::Tensor`, or
-     * directly using the protobuf field accessors.
-     * The client specifies whether the returned tensor values should be
-     * filled tensor fields (float_val, int_val, etc.) or encoded in a
-     * compact form in tensor.tensor_content.
-     * 
- * - * .tensorflow.TensorProto tensor = 2; - */ - public org.tensorflow.proto.framework.TensorProto getTensor() { - if (tensorBuilder_ == null) { - return tensor_ == null ? org.tensorflow.proto.framework.TensorProto.getDefaultInstance() : tensor_; - } else { - return tensorBuilder_.getMessage(); - } - } - /** - *
-     * The client can populate a TensorProto using a tensorflow::Tensor`, or
-     * directly using the protobuf field accessors.
-     * The client specifies whether the returned tensor values should be
-     * filled tensor fields (float_val, int_val, etc.) or encoded in a
-     * compact form in tensor.tensor_content.
-     * 
- * - * .tensorflow.TensorProto tensor = 2; - */ - public Builder setTensor(org.tensorflow.proto.framework.TensorProto value) { - if (tensorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tensor_ = value; - onChanged(); - } else { - tensorBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The client can populate a TensorProto using a tensorflow::Tensor`, or
-     * directly using the protobuf field accessors.
-     * The client specifies whether the returned tensor values should be
-     * filled tensor fields (float_val, int_val, etc.) or encoded in a
-     * compact form in tensor.tensor_content.
-     * 
- * - * .tensorflow.TensorProto tensor = 2; - */ - public Builder setTensor( - org.tensorflow.proto.framework.TensorProto.Builder builderForValue) { - if (tensorBuilder_ == null) { - tensor_ = builderForValue.build(); - onChanged(); - } else { - tensorBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The client can populate a TensorProto using a tensorflow::Tensor`, or
-     * directly using the protobuf field accessors.
-     * The client specifies whether the returned tensor values should be
-     * filled tensor fields (float_val, int_val, etc.) or encoded in a
-     * compact form in tensor.tensor_content.
-     * 
- * - * .tensorflow.TensorProto tensor = 2; - */ - public Builder mergeTensor(org.tensorflow.proto.framework.TensorProto value) { - if (tensorBuilder_ == null) { - if (tensor_ != null) { - tensor_ = - org.tensorflow.proto.framework.TensorProto.newBuilder(tensor_).mergeFrom(value).buildPartial(); - } else { - tensor_ = value; - } - onChanged(); - } else { - tensorBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The client can populate a TensorProto using a tensorflow::Tensor`, or
-     * directly using the protobuf field accessors.
-     * The client specifies whether the returned tensor values should be
-     * filled tensor fields (float_val, int_val, etc.) or encoded in a
-     * compact form in tensor.tensor_content.
-     * 
- * - * .tensorflow.TensorProto tensor = 2; - */ - public Builder clearTensor() { - if (tensorBuilder_ == null) { - tensor_ = null; - onChanged(); - } else { - tensor_ = null; - tensorBuilder_ = null; - } - - return this; - } - /** - *
-     * The client can populate a TensorProto using a tensorflow::Tensor`, or
-     * directly using the protobuf field accessors.
-     * The client specifies whether the returned tensor values should be
-     * filled tensor fields (float_val, int_val, etc.) or encoded in a
-     * compact form in tensor.tensor_content.
-     * 
- * - * .tensorflow.TensorProto tensor = 2; - */ - public org.tensorflow.proto.framework.TensorProto.Builder getTensorBuilder() { - - onChanged(); - return getTensorFieldBuilder().getBuilder(); - } - /** - *
-     * The client can populate a TensorProto using a tensorflow::Tensor`, or
-     * directly using the protobuf field accessors.
-     * The client specifies whether the returned tensor values should be
-     * filled tensor fields (float_val, int_val, etc.) or encoded in a
-     * compact form in tensor.tensor_content.
-     * 
- * - * .tensorflow.TensorProto tensor = 2; - */ - public org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorOrBuilder() { - if (tensorBuilder_ != null) { - return tensorBuilder_.getMessageOrBuilder(); - } else { - return tensor_ == null ? - org.tensorflow.proto.framework.TensorProto.getDefaultInstance() : tensor_; - } - } - /** - *
-     * The client can populate a TensorProto using a tensorflow::Tensor`, or
-     * directly using the protobuf field accessors.
-     * The client specifies whether the returned tensor values should be
-     * filled tensor fields (float_val, int_val, etc.) or encoded in a
-     * compact form in tensor.tensor_content.
-     * 
- * - * .tensorflow.TensorProto tensor = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder> - getTensorFieldBuilder() { - if (tensorBuilder_ == null) { - tensorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder>( - getTensor(), - getParentForChildren(), - isClean()); - tensor_ = null; - } - return tensorBuilder_; - } - @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:tensorflow.NamedTensorProto) - } - - // @@protoc_insertion_point(class_scope:tensorflow.NamedTensorProto) - private static final org.tensorflow.proto.framework.NamedTensorProto DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.NamedTensorProto(); - } - - public static org.tensorflow.proto.framework.NamedTensorProto getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedTensorProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedTensorProto(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.NamedTensorProto getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NamedTupleValue.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NamedTupleValue.java deleted file mode 100644 index e1adfe3a508..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NamedTupleValue.java +++ /dev/null @@ -1,900 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/struct.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Represents Python's namedtuple.
- * 
- * - * Protobuf type {@code tensorflow.NamedTupleValue} - */ -public final class NamedTupleValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.NamedTupleValue) - NamedTupleValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use NamedTupleValue.newBuilder() to construct. - private NamedTupleValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedTupleValue() { - name_ = ""; - values_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NamedTupleValue(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedTupleValue( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - values_.add( - input.readMessage(org.tensorflow.proto.framework.PairValue.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)) { - values_ = java.util.Collections.unmodifiableList(values_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_NamedTupleValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_NamedTupleValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.NamedTupleValue.class, org.tensorflow.proto.framework.NamedTupleValue.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUES_FIELD_NUMBER = 2; - private java.util.List values_; - /** - * repeated .tensorflow.PairValue values = 2; - */ - public java.util.List getValuesList() { - return values_; - } - /** - * repeated .tensorflow.PairValue values = 2; - */ - public java.util.List - getValuesOrBuilderList() { - return values_; - } - /** - * repeated .tensorflow.PairValue values = 2; - */ - public int getValuesCount() { - return values_.size(); - } - /** - * repeated .tensorflow.PairValue values = 2; - */ - public org.tensorflow.proto.framework.PairValue getValues(int index) { - return values_.get(index); - } - /** - * repeated .tensorflow.PairValue values = 2; - */ - public org.tensorflow.proto.framework.PairValueOrBuilder getValuesOrBuilder( - int index) { - return values_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - for (int i = 0; i < values_.size(); i++) { - output.writeMessage(2, values_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - for (int i = 0; i < values_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, values_.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 org.tensorflow.proto.framework.NamedTupleValue)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.NamedTupleValue other = (org.tensorflow.proto.framework.NamedTupleValue) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getValuesList() - .equals(other.getValuesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.NamedTupleValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.NamedTupleValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.NamedTupleValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.NamedTupleValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.NamedTupleValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.NamedTupleValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.NamedTupleValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.NamedTupleValue 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 org.tensorflow.proto.framework.NamedTupleValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.NamedTupleValue 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 org.tensorflow.proto.framework.NamedTupleValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.NamedTupleValue 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(org.tensorflow.proto.framework.NamedTupleValue 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; - } - /** - *
-   * Represents Python's namedtuple.
-   * 
- * - * Protobuf type {@code tensorflow.NamedTupleValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.NamedTupleValue) - org.tensorflow.proto.framework.NamedTupleValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_NamedTupleValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_NamedTupleValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.NamedTupleValue.class, org.tensorflow.proto.framework.NamedTupleValue.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.NamedTupleValue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getValuesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (valuesBuilder_ == null) { - values_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - valuesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_NamedTupleValue_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.NamedTupleValue getDefaultInstanceForType() { - return org.tensorflow.proto.framework.NamedTupleValue.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.NamedTupleValue build() { - org.tensorflow.proto.framework.NamedTupleValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.NamedTupleValue buildPartial() { - org.tensorflow.proto.framework.NamedTupleValue result = new org.tensorflow.proto.framework.NamedTupleValue(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - if (valuesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - values_ = java.util.Collections.unmodifiableList(values_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.values_ = values_; - } else { - result.values_ = valuesBuilder_.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 org.tensorflow.proto.framework.NamedTupleValue) { - return mergeFrom((org.tensorflow.proto.framework.NamedTupleValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.NamedTupleValue other) { - if (other == org.tensorflow.proto.framework.NamedTupleValue.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (valuesBuilder_ == null) { - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - } else { - if (!other.values_.isEmpty()) { - if (valuesBuilder_.isEmpty()) { - valuesBuilder_.dispose(); - valuesBuilder_ = null; - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - valuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValuesFieldBuilder() : null; - } else { - valuesBuilder_.addAllMessages(other.values_); - } - } - } - 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 { - org.tensorflow.proto.framework.NamedTupleValue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.NamedTupleValue) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.util.List values_ = - java.util.Collections.emptyList(); - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - values_ = new java.util.ArrayList(values_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.PairValue, org.tensorflow.proto.framework.PairValue.Builder, org.tensorflow.proto.framework.PairValueOrBuilder> valuesBuilder_; - - /** - * repeated .tensorflow.PairValue values = 2; - */ - public java.util.List getValuesList() { - if (valuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(values_); - } else { - return valuesBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.PairValue values = 2; - */ - public int getValuesCount() { - if (valuesBuilder_ == null) { - return values_.size(); - } else { - return valuesBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.PairValue values = 2; - */ - public org.tensorflow.proto.framework.PairValue getValues(int index) { - if (valuesBuilder_ == null) { - return values_.get(index); - } else { - return valuesBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.PairValue values = 2; - */ - public Builder setValues( - int index, org.tensorflow.proto.framework.PairValue value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - } else { - valuesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.PairValue values = 2; - */ - public Builder setValues( - int index, org.tensorflow.proto.framework.PairValue.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.set(index, builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.PairValue values = 2; - */ - public Builder addValues(org.tensorflow.proto.framework.PairValue value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - } else { - valuesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.PairValue values = 2; - */ - public Builder addValues( - int index, org.tensorflow.proto.framework.PairValue value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(index, value); - onChanged(); - } else { - valuesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.PairValue values = 2; - */ - public Builder addValues( - org.tensorflow.proto.framework.PairValue.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.PairValue values = 2; - */ - public Builder addValues( - int index, org.tensorflow.proto.framework.PairValue.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(index, builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.PairValue values = 2; - */ - public Builder addAllValues( - java.lang.Iterable values) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - onChanged(); - } else { - valuesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.PairValue values = 2; - */ - public Builder clearValues() { - if (valuesBuilder_ == null) { - values_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - valuesBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.PairValue values = 2; - */ - public Builder removeValues(int index) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.remove(index); - onChanged(); - } else { - valuesBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.PairValue values = 2; - */ - public org.tensorflow.proto.framework.PairValue.Builder getValuesBuilder( - int index) { - return getValuesFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.PairValue values = 2; - */ - public org.tensorflow.proto.framework.PairValueOrBuilder getValuesOrBuilder( - int index) { - if (valuesBuilder_ == null) { - return values_.get(index); } else { - return valuesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.PairValue values = 2; - */ - public java.util.List - getValuesOrBuilderList() { - if (valuesBuilder_ != null) { - return valuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(values_); - } - } - /** - * repeated .tensorflow.PairValue values = 2; - */ - public org.tensorflow.proto.framework.PairValue.Builder addValuesBuilder() { - return getValuesFieldBuilder().addBuilder( - org.tensorflow.proto.framework.PairValue.getDefaultInstance()); - } - /** - * repeated .tensorflow.PairValue values = 2; - */ - public org.tensorflow.proto.framework.PairValue.Builder addValuesBuilder( - int index) { - return getValuesFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.PairValue.getDefaultInstance()); - } - /** - * repeated .tensorflow.PairValue values = 2; - */ - public java.util.List - getValuesBuilderList() { - return getValuesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.PairValue, org.tensorflow.proto.framework.PairValue.Builder, org.tensorflow.proto.framework.PairValueOrBuilder> - getValuesFieldBuilder() { - if (valuesBuilder_ == null) { - valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.PairValue, org.tensorflow.proto.framework.PairValue.Builder, org.tensorflow.proto.framework.PairValueOrBuilder>( - values_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - values_ = null; - } - return valuesBuilder_; - } - @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:tensorflow.NamedTupleValue) - } - - // @@protoc_insertion_point(class_scope:tensorflow.NamedTupleValue) - private static final org.tensorflow.proto.framework.NamedTupleValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.NamedTupleValue(); - } - - public static org.tensorflow.proto.framework.NamedTupleValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedTupleValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedTupleValue(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.NamedTupleValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NamedTupleValueOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NamedTupleValueOrBuilder.java deleted file mode 100644 index 6829f4aa2ab..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NamedTupleValueOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/struct.proto - -package org.tensorflow.proto.framework; - -public interface NamedTupleValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.NamedTupleValue) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1; - */ - java.lang.String getName(); - /** - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * repeated .tensorflow.PairValue values = 2; - */ - java.util.List - getValuesList(); - /** - * repeated .tensorflow.PairValue values = 2; - */ - org.tensorflow.proto.framework.PairValue getValues(int index); - /** - * repeated .tensorflow.PairValue values = 2; - */ - int getValuesCount(); - /** - * repeated .tensorflow.PairValue values = 2; - */ - java.util.List - getValuesOrBuilderList(); - /** - * repeated .tensorflow.PairValue values = 2; - */ - org.tensorflow.proto.framework.PairValueOrBuilder getValuesOrBuilder( - int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NodeExecStatsOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NodeExecStatsOrBuilder.java deleted file mode 100644 index 60be2e49270..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NodeExecStatsOrBuilder.java +++ /dev/null @@ -1,183 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/step_stats.proto - -package org.tensorflow.proto.framework; - -public interface NodeExecStatsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.NodeExecStats) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * TODO(tucker): Use some more compact form of node identity than
-   * the full string name.  Either all processes should agree on a
-   * global id (cost_id?) for each node, or we should use a hash of
-   * the name.
-   * 
- * - * string node_name = 1; - */ - java.lang.String getNodeName(); - /** - *
-   * TODO(tucker): Use some more compact form of node identity than
-   * the full string name.  Either all processes should agree on a
-   * global id (cost_id?) for each node, or we should use a hash of
-   * the name.
-   * 
- * - * string node_name = 1; - */ - com.google.protobuf.ByteString - getNodeNameBytes(); - - /** - * int64 all_start_micros = 2; - */ - long getAllStartMicros(); - - /** - * int64 op_start_rel_micros = 3; - */ - long getOpStartRelMicros(); - - /** - * int64 op_end_rel_micros = 4; - */ - long getOpEndRelMicros(); - - /** - * int64 all_end_rel_micros = 5; - */ - long getAllEndRelMicros(); - - /** - * repeated .tensorflow.AllocatorMemoryUsed memory = 6; - */ - java.util.List - getMemoryList(); - /** - * repeated .tensorflow.AllocatorMemoryUsed memory = 6; - */ - org.tensorflow.proto.framework.AllocatorMemoryUsed getMemory(int index); - /** - * repeated .tensorflow.AllocatorMemoryUsed memory = 6; - */ - int getMemoryCount(); - /** - * repeated .tensorflow.AllocatorMemoryUsed memory = 6; - */ - java.util.List - getMemoryOrBuilderList(); - /** - * repeated .tensorflow.AllocatorMemoryUsed memory = 6; - */ - org.tensorflow.proto.framework.AllocatorMemoryUsedOrBuilder getMemoryOrBuilder( - int index); - - /** - * repeated .tensorflow.NodeOutput output = 7; - */ - java.util.List - getOutputList(); - /** - * repeated .tensorflow.NodeOutput output = 7; - */ - org.tensorflow.proto.framework.NodeOutput getOutput(int index); - /** - * repeated .tensorflow.NodeOutput output = 7; - */ - int getOutputCount(); - /** - * repeated .tensorflow.NodeOutput output = 7; - */ - java.util.List - getOutputOrBuilderList(); - /** - * repeated .tensorflow.NodeOutput output = 7; - */ - org.tensorflow.proto.framework.NodeOutputOrBuilder getOutputOrBuilder( - int index); - - /** - * string timeline_label = 8; - */ - java.lang.String getTimelineLabel(); - /** - * string timeline_label = 8; - */ - com.google.protobuf.ByteString - getTimelineLabelBytes(); - - /** - * int64 scheduled_micros = 9; - */ - long getScheduledMicros(); - - /** - * uint32 thread_id = 10; - */ - int getThreadId(); - - /** - * repeated .tensorflow.AllocationDescription referenced_tensor = 11; - */ - java.util.List - getReferencedTensorList(); - /** - * repeated .tensorflow.AllocationDescription referenced_tensor = 11; - */ - org.tensorflow.proto.framework.AllocationDescription getReferencedTensor(int index); - /** - * repeated .tensorflow.AllocationDescription referenced_tensor = 11; - */ - int getReferencedTensorCount(); - /** - * repeated .tensorflow.AllocationDescription referenced_tensor = 11; - */ - java.util.List - getReferencedTensorOrBuilderList(); - /** - * repeated .tensorflow.AllocationDescription referenced_tensor = 11; - */ - org.tensorflow.proto.framework.AllocationDescriptionOrBuilder getReferencedTensorOrBuilder( - int index); - - /** - * .tensorflow.MemoryStats memory_stats = 12; - */ - boolean hasMemoryStats(); - /** - * .tensorflow.MemoryStats memory_stats = 12; - */ - org.tensorflow.proto.framework.MemoryStats getMemoryStats(); - /** - * .tensorflow.MemoryStats memory_stats = 12; - */ - org.tensorflow.proto.framework.MemoryStatsOrBuilder getMemoryStatsOrBuilder(); - - /** - * int64 all_start_nanos = 13; - */ - long getAllStartNanos(); - - /** - * int64 op_start_rel_nanos = 14; - */ - long getOpStartRelNanos(); - - /** - * int64 op_end_rel_nanos = 15; - */ - long getOpEndRelNanos(); - - /** - * int64 all_end_rel_nanos = 16; - */ - long getAllEndRelNanos(); - - /** - * int64 scheduled_nanos = 17; - */ - long getScheduledNanos(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NodeOutput.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NodeOutput.java deleted file mode 100644 index c6e38aaec46..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NodeOutput.java +++ /dev/null @@ -1,665 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/step_stats.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Output sizes recorded for a single execution of a graph node.
- * 
- * - * Protobuf type {@code tensorflow.NodeOutput} - */ -public final class NodeOutput extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.NodeOutput) - NodeOutputOrBuilder { -private static final long serialVersionUID = 0L; - // Use NodeOutput.newBuilder() to construct. - private NodeOutput(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeOutput() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NodeOutput(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeOutput( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - slot_ = input.readInt32(); - break; - } - case 26: { - org.tensorflow.proto.framework.TensorDescription.Builder subBuilder = null; - if (tensorDescription_ != null) { - subBuilder = tensorDescription_.toBuilder(); - } - tensorDescription_ = input.readMessage(org.tensorflow.proto.framework.TensorDescription.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tensorDescription_); - tensorDescription_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_NodeOutput_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_NodeOutput_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.NodeOutput.class, org.tensorflow.proto.framework.NodeOutput.Builder.class); - } - - public static final int SLOT_FIELD_NUMBER = 1; - private int slot_; - /** - * int32 slot = 1; - */ - public int getSlot() { - return slot_; - } - - public static final int TENSOR_DESCRIPTION_FIELD_NUMBER = 3; - private org.tensorflow.proto.framework.TensorDescription tensorDescription_; - /** - * .tensorflow.TensorDescription tensor_description = 3; - */ - public boolean hasTensorDescription() { - return tensorDescription_ != null; - } - /** - * .tensorflow.TensorDescription tensor_description = 3; - */ - public org.tensorflow.proto.framework.TensorDescription getTensorDescription() { - return tensorDescription_ == null ? org.tensorflow.proto.framework.TensorDescription.getDefaultInstance() : tensorDescription_; - } - /** - * .tensorflow.TensorDescription tensor_description = 3; - */ - public org.tensorflow.proto.framework.TensorDescriptionOrBuilder getTensorDescriptionOrBuilder() { - return getTensorDescription(); - } - - 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 (slot_ != 0) { - output.writeInt32(1, slot_); - } - if (tensorDescription_ != null) { - output.writeMessage(3, getTensorDescription()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (slot_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, slot_); - } - if (tensorDescription_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTensorDescription()); - } - 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 org.tensorflow.proto.framework.NodeOutput)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.NodeOutput other = (org.tensorflow.proto.framework.NodeOutput) obj; - - if (getSlot() - != other.getSlot()) return false; - if (hasTensorDescription() != other.hasTensorDescription()) return false; - if (hasTensorDescription()) { - if (!getTensorDescription() - .equals(other.getTensorDescription())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SLOT_FIELD_NUMBER; - hash = (53 * hash) + getSlot(); - if (hasTensorDescription()) { - hash = (37 * hash) + TENSOR_DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getTensorDescription().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.NodeOutput parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.NodeOutput parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.NodeOutput parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.NodeOutput parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.NodeOutput parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.NodeOutput parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.NodeOutput parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.NodeOutput 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 org.tensorflow.proto.framework.NodeOutput parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.NodeOutput 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 org.tensorflow.proto.framework.NodeOutput parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.NodeOutput 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(org.tensorflow.proto.framework.NodeOutput 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; - } - /** - *
-   * Output sizes recorded for a single execution of a graph node.
-   * 
- * - * Protobuf type {@code tensorflow.NodeOutput} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.NodeOutput) - org.tensorflow.proto.framework.NodeOutputOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_NodeOutput_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_NodeOutput_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.NodeOutput.class, org.tensorflow.proto.framework.NodeOutput.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.NodeOutput.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - slot_ = 0; - - if (tensorDescriptionBuilder_ == null) { - tensorDescription_ = null; - } else { - tensorDescription_ = null; - tensorDescriptionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_NodeOutput_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.NodeOutput getDefaultInstanceForType() { - return org.tensorflow.proto.framework.NodeOutput.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.NodeOutput build() { - org.tensorflow.proto.framework.NodeOutput result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.NodeOutput buildPartial() { - org.tensorflow.proto.framework.NodeOutput result = new org.tensorflow.proto.framework.NodeOutput(this); - result.slot_ = slot_; - if (tensorDescriptionBuilder_ == null) { - result.tensorDescription_ = tensorDescription_; - } else { - result.tensorDescription_ = tensorDescriptionBuilder_.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 org.tensorflow.proto.framework.NodeOutput) { - return mergeFrom((org.tensorflow.proto.framework.NodeOutput)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.NodeOutput other) { - if (other == org.tensorflow.proto.framework.NodeOutput.getDefaultInstance()) return this; - if (other.getSlot() != 0) { - setSlot(other.getSlot()); - } - if (other.hasTensorDescription()) { - mergeTensorDescription(other.getTensorDescription()); - } - 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 { - org.tensorflow.proto.framework.NodeOutput parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.NodeOutput) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int slot_ ; - /** - * int32 slot = 1; - */ - public int getSlot() { - return slot_; - } - /** - * int32 slot = 1; - */ - public Builder setSlot(int value) { - - slot_ = value; - onChanged(); - return this; - } - /** - * int32 slot = 1; - */ - public Builder clearSlot() { - - slot_ = 0; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.TensorDescription tensorDescription_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorDescription, org.tensorflow.proto.framework.TensorDescription.Builder, org.tensorflow.proto.framework.TensorDescriptionOrBuilder> tensorDescriptionBuilder_; - /** - * .tensorflow.TensorDescription tensor_description = 3; - */ - public boolean hasTensorDescription() { - return tensorDescriptionBuilder_ != null || tensorDescription_ != null; - } - /** - * .tensorflow.TensorDescription tensor_description = 3; - */ - public org.tensorflow.proto.framework.TensorDescription getTensorDescription() { - if (tensorDescriptionBuilder_ == null) { - return tensorDescription_ == null ? org.tensorflow.proto.framework.TensorDescription.getDefaultInstance() : tensorDescription_; - } else { - return tensorDescriptionBuilder_.getMessage(); - } - } - /** - * .tensorflow.TensorDescription tensor_description = 3; - */ - public Builder setTensorDescription(org.tensorflow.proto.framework.TensorDescription value) { - if (tensorDescriptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tensorDescription_ = value; - onChanged(); - } else { - tensorDescriptionBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.TensorDescription tensor_description = 3; - */ - public Builder setTensorDescription( - org.tensorflow.proto.framework.TensorDescription.Builder builderForValue) { - if (tensorDescriptionBuilder_ == null) { - tensorDescription_ = builderForValue.build(); - onChanged(); - } else { - tensorDescriptionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.TensorDescription tensor_description = 3; - */ - public Builder mergeTensorDescription(org.tensorflow.proto.framework.TensorDescription value) { - if (tensorDescriptionBuilder_ == null) { - if (tensorDescription_ != null) { - tensorDescription_ = - org.tensorflow.proto.framework.TensorDescription.newBuilder(tensorDescription_).mergeFrom(value).buildPartial(); - } else { - tensorDescription_ = value; - } - onChanged(); - } else { - tensorDescriptionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.TensorDescription tensor_description = 3; - */ - public Builder clearTensorDescription() { - if (tensorDescriptionBuilder_ == null) { - tensorDescription_ = null; - onChanged(); - } else { - tensorDescription_ = null; - tensorDescriptionBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.TensorDescription tensor_description = 3; - */ - public org.tensorflow.proto.framework.TensorDescription.Builder getTensorDescriptionBuilder() { - - onChanged(); - return getTensorDescriptionFieldBuilder().getBuilder(); - } - /** - * .tensorflow.TensorDescription tensor_description = 3; - */ - public org.tensorflow.proto.framework.TensorDescriptionOrBuilder getTensorDescriptionOrBuilder() { - if (tensorDescriptionBuilder_ != null) { - return tensorDescriptionBuilder_.getMessageOrBuilder(); - } else { - return tensorDescription_ == null ? - org.tensorflow.proto.framework.TensorDescription.getDefaultInstance() : tensorDescription_; - } - } - /** - * .tensorflow.TensorDescription tensor_description = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorDescription, org.tensorflow.proto.framework.TensorDescription.Builder, org.tensorflow.proto.framework.TensorDescriptionOrBuilder> - getTensorDescriptionFieldBuilder() { - if (tensorDescriptionBuilder_ == null) { - tensorDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorDescription, org.tensorflow.proto.framework.TensorDescription.Builder, org.tensorflow.proto.framework.TensorDescriptionOrBuilder>( - getTensorDescription(), - getParentForChildren(), - isClean()); - tensorDescription_ = null; - } - return tensorDescriptionBuilder_; - } - @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:tensorflow.NodeOutput) - } - - // @@protoc_insertion_point(class_scope:tensorflow.NodeOutput) - private static final org.tensorflow.proto.framework.NodeOutput DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.NodeOutput(); - } - - public static org.tensorflow.proto.framework.NodeOutput getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeOutput parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeOutput(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.NodeOutput getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NodeOutputOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NodeOutputOrBuilder.java deleted file mode 100644 index 940f8defed7..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NodeOutputOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/step_stats.proto - -package org.tensorflow.proto.framework; - -public interface NodeOutputOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.NodeOutput) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 slot = 1; - */ - int getSlot(); - - /** - * .tensorflow.TensorDescription tensor_description = 3; - */ - boolean hasTensorDescription(); - /** - * .tensorflow.TensorDescription tensor_description = 3; - */ - org.tensorflow.proto.framework.TensorDescription getTensorDescription(); - /** - * .tensorflow.TensorDescription tensor_description = 3; - */ - org.tensorflow.proto.framework.TensorDescriptionOrBuilder getTensorDescriptionOrBuilder(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NoneValue.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NoneValue.java deleted file mode 100644 index 7aaba25f2d2..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NoneValue.java +++ /dev/null @@ -1,427 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/struct.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Represents None.
- * 
- * - * Protobuf type {@code tensorflow.NoneValue} - */ -public final class NoneValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.NoneValue) - NoneValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use NoneValue.newBuilder() to construct. - private NoneValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NoneValue() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NoneValue(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NoneValue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_NoneValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_NoneValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.NoneValue.class, org.tensorflow.proto.framework.NoneValue.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 org.tensorflow.proto.framework.NoneValue)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.NoneValue other = (org.tensorflow.proto.framework.NoneValue) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.NoneValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.NoneValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.NoneValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.NoneValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.NoneValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.NoneValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.NoneValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.NoneValue 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 org.tensorflow.proto.framework.NoneValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.NoneValue 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 org.tensorflow.proto.framework.NoneValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.NoneValue 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(org.tensorflow.proto.framework.NoneValue 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; - } - /** - *
-   * Represents None.
-   * 
- * - * Protobuf type {@code tensorflow.NoneValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.NoneValue) - org.tensorflow.proto.framework.NoneValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_NoneValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_NoneValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.NoneValue.class, org.tensorflow.proto.framework.NoneValue.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.NoneValue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_NoneValue_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.NoneValue getDefaultInstanceForType() { - return org.tensorflow.proto.framework.NoneValue.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.NoneValue build() { - org.tensorflow.proto.framework.NoneValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.NoneValue buildPartial() { - org.tensorflow.proto.framework.NoneValue result = new org.tensorflow.proto.framework.NoneValue(this); - 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 org.tensorflow.proto.framework.NoneValue) { - return mergeFrom((org.tensorflow.proto.framework.NoneValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.NoneValue other) { - if (other == org.tensorflow.proto.framework.NoneValue.getDefaultInstance()) return this; - 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 { - org.tensorflow.proto.framework.NoneValue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.NoneValue) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:tensorflow.NoneValue) - } - - // @@protoc_insertion_point(class_scope:tensorflow.NoneValue) - private static final org.tensorflow.proto.framework.NoneValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.NoneValue(); - } - - public static org.tensorflow.proto.framework.NoneValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NoneValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NoneValue(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.NoneValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NoneValueOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NoneValueOrBuilder.java deleted file mode 100644 index 3d720d0c269..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NoneValueOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/struct.proto - -package org.tensorflow.proto.framework; - -public interface NoneValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.NoneValue) - com.google.protobuf.MessageOrBuilder { -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NormalDistribution.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NormalDistribution.java deleted file mode 100644 index 976cb57df20..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NormalDistribution.java +++ /dev/null @@ -1,537 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/grappler/costs/op_performance_data.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.NormalDistribution} - */ -public final class NormalDistribution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.NormalDistribution) - NormalDistributionOrBuilder { -private static final long serialVersionUID = 0L; - // Use NormalDistribution.newBuilder() to construct. - private NormalDistribution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NormalDistribution() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NormalDistribution(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NormalDistribution( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 9: { - - mu_ = input.readDouble(); - break; - } - case 17: { - - sigma_ = input.readDouble(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_NormalDistribution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_NormalDistribution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.NormalDistribution.class, org.tensorflow.proto.framework.NormalDistribution.Builder.class); - } - - public static final int MU_FIELD_NUMBER = 1; - private double mu_; - /** - * double mu = 1; - */ - public double getMu() { - return mu_; - } - - public static final int SIGMA_FIELD_NUMBER = 2; - private double sigma_; - /** - * double sigma = 2; - */ - public double getSigma() { - return sigma_; - } - - 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 (mu_ != 0D) { - output.writeDouble(1, mu_); - } - if (sigma_ != 0D) { - output.writeDouble(2, sigma_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (mu_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, mu_); - } - if (sigma_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, sigma_); - } - 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 org.tensorflow.proto.framework.NormalDistribution)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.NormalDistribution other = (org.tensorflow.proto.framework.NormalDistribution) obj; - - if (java.lang.Double.doubleToLongBits(getMu()) - != java.lang.Double.doubleToLongBits( - other.getMu())) return false; - if (java.lang.Double.doubleToLongBits(getSigma()) - != java.lang.Double.doubleToLongBits( - other.getSigma())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MU_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMu())); - hash = (37 * hash) + SIGMA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getSigma())); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.NormalDistribution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.NormalDistribution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.NormalDistribution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.NormalDistribution parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.NormalDistribution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.NormalDistribution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.NormalDistribution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.NormalDistribution 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 org.tensorflow.proto.framework.NormalDistribution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.NormalDistribution 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 org.tensorflow.proto.framework.NormalDistribution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.NormalDistribution 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(org.tensorflow.proto.framework.NormalDistribution prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.NormalDistribution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.NormalDistribution) - org.tensorflow.proto.framework.NormalDistributionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_NormalDistribution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_NormalDistribution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.NormalDistribution.class, org.tensorflow.proto.framework.NormalDistribution.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.NormalDistribution.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - mu_ = 0D; - - sigma_ = 0D; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_NormalDistribution_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.NormalDistribution getDefaultInstanceForType() { - return org.tensorflow.proto.framework.NormalDistribution.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.NormalDistribution build() { - org.tensorflow.proto.framework.NormalDistribution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.NormalDistribution buildPartial() { - org.tensorflow.proto.framework.NormalDistribution result = new org.tensorflow.proto.framework.NormalDistribution(this); - result.mu_ = mu_; - result.sigma_ = sigma_; - 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 org.tensorflow.proto.framework.NormalDistribution) { - return mergeFrom((org.tensorflow.proto.framework.NormalDistribution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.NormalDistribution other) { - if (other == org.tensorflow.proto.framework.NormalDistribution.getDefaultInstance()) return this; - if (other.getMu() != 0D) { - setMu(other.getMu()); - } - if (other.getSigma() != 0D) { - setSigma(other.getSigma()); - } - 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 { - org.tensorflow.proto.framework.NormalDistribution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.NormalDistribution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private double mu_ ; - /** - * double mu = 1; - */ - public double getMu() { - return mu_; - } - /** - * double mu = 1; - */ - public Builder setMu(double value) { - - mu_ = value; - onChanged(); - return this; - } - /** - * double mu = 1; - */ - public Builder clearMu() { - - mu_ = 0D; - onChanged(); - return this; - } - - private double sigma_ ; - /** - * double sigma = 2; - */ - public double getSigma() { - return sigma_; - } - /** - * double sigma = 2; - */ - public Builder setSigma(double value) { - - sigma_ = value; - onChanged(); - return this; - } - /** - * double sigma = 2; - */ - public Builder clearSigma() { - - sigma_ = 0D; - 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:tensorflow.NormalDistribution) - } - - // @@protoc_insertion_point(class_scope:tensorflow.NormalDistribution) - private static final org.tensorflow.proto.framework.NormalDistribution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.NormalDistribution(); - } - - public static org.tensorflow.proto.framework.NormalDistribution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NormalDistribution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NormalDistribution(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.NormalDistribution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NormalDistributionOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NormalDistributionOrBuilder.java deleted file mode 100644 index 4b2c75b1f24..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NormalDistributionOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/grappler/costs/op_performance_data.proto - -package org.tensorflow.proto.framework; - -public interface NormalDistributionOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.NormalDistribution) - com.google.protobuf.MessageOrBuilder { - - /** - * double mu = 1; - */ - double getMu(); - - /** - * double sigma = 2; - */ - double getSigma(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpDef.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpDef.java deleted file mode 100644 index ce9b08d33be..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpDef.java +++ /dev/null @@ -1,7207 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/op_def.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Defines an operation. A NodeDef in a GraphDef specifies an Op by
- * using the "op" field which should match the name of a OpDef.
- * LINT.IfChange
- * 
- * - * Protobuf type {@code tensorflow.OpDef} - */ -public final class OpDef extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.OpDef) - OpDefOrBuilder { -private static final long serialVersionUID = 0L; - // Use OpDef.newBuilder() to construct. - private OpDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OpDef() { - name_ = ""; - inputArg_ = java.util.Collections.emptyList(); - outputArg_ = java.util.Collections.emptyList(); - controlOutput_ = com.google.protobuf.LazyStringArrayList.EMPTY; - attr_ = java.util.Collections.emptyList(); - summary_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OpDef(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OpDef( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - inputArg_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - inputArg_.add( - input.readMessage(org.tensorflow.proto.framework.OpDef.ArgDef.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - outputArg_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - outputArg_.add( - input.readMessage(org.tensorflow.proto.framework.OpDef.ArgDef.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - attr_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - attr_.add( - input.readMessage(org.tensorflow.proto.framework.OpDef.AttrDef.parser(), extensionRegistry)); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - summary_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 66: { - org.tensorflow.proto.framework.OpDeprecation.Builder subBuilder = null; - if (deprecation_ != null) { - subBuilder = deprecation_.toBuilder(); - } - deprecation_ = input.readMessage(org.tensorflow.proto.framework.OpDeprecation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deprecation_); - deprecation_ = subBuilder.buildPartial(); - } - - break; - } - case 128: { - - isAggregate_ = input.readBool(); - break; - } - case 136: { - - isStateful_ = input.readBool(); - break; - } - case 144: { - - isCommutative_ = input.readBool(); - break; - } - case 152: { - - allowsUninitializedInput_ = input.readBool(); - break; - } - case 162: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - controlOutput_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - controlOutput_.add(s); - break; - } - case 168: { - - isDistributedCommunication_ = input.readBool(); - 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)) { - inputArg_ = java.util.Collections.unmodifiableList(inputArg_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - outputArg_ = java.util.Collections.unmodifiableList(outputArg_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - attr_ = java.util.Collections.unmodifiableList(attr_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - controlOutput_ = controlOutput_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.OpDef.class, org.tensorflow.proto.framework.OpDef.Builder.class); - } - - public interface ArgDefOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.OpDef.ArgDef) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
-     * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-     * Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
-     * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * Human readable description.
-     * 
- * - * string description = 2; - */ - java.lang.String getDescription(); - /** - *
-     * Human readable description.
-     * 
- * - * string description = 2; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-     * Describes the type of one or more tensors that are accepted/produced
-     * by this input/output arg.  The only legal combinations are:
-     * * For a single tensor: either the "type" field is set or the
-     *   "type_attr" field is set to the name of an attr with type "type".
-     * * For a sequence of tensors with the same type: the "number_attr"
-     *   field will be set to the name of an attr with type "int", and
-     *   either the "type" or "type_attr" field will be set as for
-     *   single tensors.
-     * * For a sequence of tensors, the "type_list_attr" field will be set
-     *   to the name of an attr with type "list(type)".
-     * 
- * - * .tensorflow.DataType type = 3; - */ - int getTypeValue(); - /** - *
-     * Describes the type of one or more tensors that are accepted/produced
-     * by this input/output arg.  The only legal combinations are:
-     * * For a single tensor: either the "type" field is set or the
-     *   "type_attr" field is set to the name of an attr with type "type".
-     * * For a sequence of tensors with the same type: the "number_attr"
-     *   field will be set to the name of an attr with type "int", and
-     *   either the "type" or "type_attr" field will be set as for
-     *   single tensors.
-     * * For a sequence of tensors, the "type_list_attr" field will be set
-     *   to the name of an attr with type "list(type)".
-     * 
- * - * .tensorflow.DataType type = 3; - */ - org.tensorflow.proto.framework.DataType getType(); - - /** - *
-     * if specified, attr must have type "type"
-     * 
- * - * string type_attr = 4; - */ - java.lang.String getTypeAttr(); - /** - *
-     * if specified, attr must have type "type"
-     * 
- * - * string type_attr = 4; - */ - com.google.protobuf.ByteString - getTypeAttrBytes(); - - /** - *
-     * if specified, attr must have type "int"
-     * 
- * - * string number_attr = 5; - */ - java.lang.String getNumberAttr(); - /** - *
-     * if specified, attr must have type "int"
-     * 
- * - * string number_attr = 5; - */ - com.google.protobuf.ByteString - getNumberAttrBytes(); - - /** - *
-     * If specified, attr must have type "list(type)", and none of
-     * type, type_attr, and number_attr may be specified.
-     * 
- * - * string type_list_attr = 6; - */ - java.lang.String getTypeListAttr(); - /** - *
-     * If specified, attr must have type "list(type)", and none of
-     * type, type_attr, and number_attr may be specified.
-     * 
- * - * string type_list_attr = 6; - */ - com.google.protobuf.ByteString - getTypeListAttrBytes(); - - /** - *
-     * The handle data for resource inputs.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - java.util.List - getHandleDataList(); - /** - *
-     * The handle data for resource inputs.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape getHandleData(int index); - /** - *
-     * The handle data for resource inputs.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - int getHandleDataCount(); - /** - *
-     * The handle data for resource inputs.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - java.util.List - getHandleDataOrBuilderList(); - /** - *
-     * The handle data for resource inputs.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShapeOrBuilder getHandleDataOrBuilder( - int index); - - /** - *
-     * For inputs: if true, the inputs are required to be refs.
-     *   By default, inputs can be either refs or non-refs.
-     * For outputs: if true, outputs are refs, otherwise they are not.
-     * 
- * - * bool is_ref = 16; - */ - boolean getIsRef(); - - /** - *
-     * Experimental. Full type declaration for this argument.
-     * The full type specification combines type, type_attr, type_list_attr,
-     * etc. into a unified representation.
-     * This declaration may contain non-concrete types (for example,
-     * Tensor<TypeVar<'T'>> is a valid type declaration.
-     * Note: this is a transient field. The long-term aim is to represent the
-     * entire OpDef as a single type: a callable. In that context, this field is
-     * just the type of a single argument.
-     * 
- * - * .tensorflow.FullTypeDef experimental_full_type = 17; - */ - boolean hasExperimentalFullType(); - /** - *
-     * Experimental. Full type declaration for this argument.
-     * The full type specification combines type, type_attr, type_list_attr,
-     * etc. into a unified representation.
-     * This declaration may contain non-concrete types (for example,
-     * Tensor<TypeVar<'T'>> is a valid type declaration.
-     * Note: this is a transient field. The long-term aim is to represent the
-     * entire OpDef as a single type: a callable. In that context, this field is
-     * just the type of a single argument.
-     * 
- * - * .tensorflow.FullTypeDef experimental_full_type = 17; - */ - org.tensorflow.proto.framework.FullTypeDef getExperimentalFullType(); - /** - *
-     * Experimental. Full type declaration for this argument.
-     * The full type specification combines type, type_attr, type_list_attr,
-     * etc. into a unified representation.
-     * This declaration may contain non-concrete types (for example,
-     * Tensor<TypeVar<'T'>> is a valid type declaration.
-     * Note: this is a transient field. The long-term aim is to represent the
-     * entire OpDef as a single type: a callable. In that context, this field is
-     * just the type of a single argument.
-     * 
- * - * .tensorflow.FullTypeDef experimental_full_type = 17; - */ - org.tensorflow.proto.framework.FullTypeDefOrBuilder getExperimentalFullTypeOrBuilder(); - } - /** - *
-   * For describing inputs and outputs.
-   * 
- * - * Protobuf type {@code tensorflow.OpDef.ArgDef} - */ - public static final class ArgDef extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.OpDef.ArgDef) - ArgDefOrBuilder { - private static final long serialVersionUID = 0L; - // Use ArgDef.newBuilder() to construct. - private ArgDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ArgDef() { - name_ = ""; - description_ = ""; - type_ = 0; - typeAttr_ = ""; - numberAttr_ = ""; - typeListAttr_ = ""; - handleData_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ArgDef(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ArgDef( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - typeAttr_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - numberAttr_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - typeListAttr_ = s; - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - handleData_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - handleData_.add( - input.readMessage(org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.parser(), extensionRegistry)); - break; - } - case 128: { - - isRef_ = input.readBool(); - break; - } - case 138: { - org.tensorflow.proto.framework.FullTypeDef.Builder subBuilder = null; - if (experimentalFullType_ != null) { - subBuilder = experimentalFullType_.toBuilder(); - } - experimentalFullType_ = input.readMessage(org.tensorflow.proto.framework.FullTypeDef.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(experimentalFullType_); - experimentalFullType_ = subBuilder.buildPartial(); - } - - 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)) { - handleData_ = java.util.Collections.unmodifiableList(handleData_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpDef_ArgDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpDef_ArgDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.OpDef.ArgDef.class, org.tensorflow.proto.framework.OpDef.ArgDef.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-     * Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
-     * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - *
-     * Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
-     * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - *
-     * Human readable description.
-     * 
- * - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-     * Human readable description.
-     * 
- * - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 3; - private int type_; - /** - *
-     * Describes the type of one or more tensors that are accepted/produced
-     * by this input/output arg.  The only legal combinations are:
-     * * For a single tensor: either the "type" field is set or the
-     *   "type_attr" field is set to the name of an attr with type "type".
-     * * For a sequence of tensors with the same type: the "number_attr"
-     *   field will be set to the name of an attr with type "int", and
-     *   either the "type" or "type_attr" field will be set as for
-     *   single tensors.
-     * * For a sequence of tensors, the "type_list_attr" field will be set
-     *   to the name of an attr with type "list(type)".
-     * 
- * - * .tensorflow.DataType type = 3; - */ - public int getTypeValue() { - return type_; - } - /** - *
-     * Describes the type of one or more tensors that are accepted/produced
-     * by this input/output arg.  The only legal combinations are:
-     * * For a single tensor: either the "type" field is set or the
-     *   "type_attr" field is set to the name of an attr with type "type".
-     * * For a sequence of tensors with the same type: the "number_attr"
-     *   field will be set to the name of an attr with type "int", and
-     *   either the "type" or "type_attr" field will be set as for
-     *   single tensors.
-     * * For a sequence of tensors, the "type_list_attr" field will be set
-     *   to the name of an attr with type "list(type)".
-     * 
- * - * .tensorflow.DataType type = 3; - */ - public org.tensorflow.proto.framework.DataType getType() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(type_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - - public static final int TYPE_ATTR_FIELD_NUMBER = 4; - private volatile java.lang.Object typeAttr_; - /** - *
-     * if specified, attr must have type "type"
-     * 
- * - * string type_attr = 4; - */ - public java.lang.String getTypeAttr() { - java.lang.Object ref = typeAttr_; - 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(); - typeAttr_ = s; - return s; - } - } - /** - *
-     * if specified, attr must have type "type"
-     * 
- * - * string type_attr = 4; - */ - public com.google.protobuf.ByteString - getTypeAttrBytes() { - java.lang.Object ref = typeAttr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - typeAttr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NUMBER_ATTR_FIELD_NUMBER = 5; - private volatile java.lang.Object numberAttr_; - /** - *
-     * if specified, attr must have type "int"
-     * 
- * - * string number_attr = 5; - */ - public java.lang.String getNumberAttr() { - java.lang.Object ref = numberAttr_; - 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(); - numberAttr_ = s; - return s; - } - } - /** - *
-     * if specified, attr must have type "int"
-     * 
- * - * string number_attr = 5; - */ - public com.google.protobuf.ByteString - getNumberAttrBytes() { - java.lang.Object ref = numberAttr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - numberAttr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_LIST_ATTR_FIELD_NUMBER = 6; - private volatile java.lang.Object typeListAttr_; - /** - *
-     * If specified, attr must have type "list(type)", and none of
-     * type, type_attr, and number_attr may be specified.
-     * 
- * - * string type_list_attr = 6; - */ - public java.lang.String getTypeListAttr() { - java.lang.Object ref = typeListAttr_; - 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(); - typeListAttr_ = s; - return s; - } - } - /** - *
-     * If specified, attr must have type "list(type)", and none of
-     * type, type_attr, and number_attr may be specified.
-     * 
- * - * string type_list_attr = 6; - */ - public com.google.protobuf.ByteString - getTypeListAttrBytes() { - java.lang.Object ref = typeListAttr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - typeListAttr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HANDLE_DATA_FIELD_NUMBER = 7; - private java.util.List handleData_; - /** - *
-     * The handle data for resource inputs.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public java.util.List getHandleDataList() { - return handleData_; - } - /** - *
-     * The handle data for resource inputs.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public java.util.List - getHandleDataOrBuilderList() { - return handleData_; - } - /** - *
-     * The handle data for resource inputs.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public int getHandleDataCount() { - return handleData_.size(); - } - /** - *
-     * The handle data for resource inputs.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape getHandleData(int index) { - return handleData_.get(index); - } - /** - *
-     * The handle data for resource inputs.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShapeOrBuilder getHandleDataOrBuilder( - int index) { - return handleData_.get(index); - } - - public static final int IS_REF_FIELD_NUMBER = 16; - private boolean isRef_; - /** - *
-     * For inputs: if true, the inputs are required to be refs.
-     *   By default, inputs can be either refs or non-refs.
-     * For outputs: if true, outputs are refs, otherwise they are not.
-     * 
- * - * bool is_ref = 16; - */ - public boolean getIsRef() { - return isRef_; - } - - public static final int EXPERIMENTAL_FULL_TYPE_FIELD_NUMBER = 17; - private org.tensorflow.proto.framework.FullTypeDef experimentalFullType_; - /** - *
-     * Experimental. Full type declaration for this argument.
-     * The full type specification combines type, type_attr, type_list_attr,
-     * etc. into a unified representation.
-     * This declaration may contain non-concrete types (for example,
-     * Tensor<TypeVar<'T'>> is a valid type declaration.
-     * Note: this is a transient field. The long-term aim is to represent the
-     * entire OpDef as a single type: a callable. In that context, this field is
-     * just the type of a single argument.
-     * 
- * - * .tensorflow.FullTypeDef experimental_full_type = 17; - */ - public boolean hasExperimentalFullType() { - return experimentalFullType_ != null; - } - /** - *
-     * Experimental. Full type declaration for this argument.
-     * The full type specification combines type, type_attr, type_list_attr,
-     * etc. into a unified representation.
-     * This declaration may contain non-concrete types (for example,
-     * Tensor<TypeVar<'T'>> is a valid type declaration.
-     * Note: this is a transient field. The long-term aim is to represent the
-     * entire OpDef as a single type: a callable. In that context, this field is
-     * just the type of a single argument.
-     * 
- * - * .tensorflow.FullTypeDef experimental_full_type = 17; - */ - public org.tensorflow.proto.framework.FullTypeDef getExperimentalFullType() { - return experimentalFullType_ == null ? org.tensorflow.proto.framework.FullTypeDef.getDefaultInstance() : experimentalFullType_; - } - /** - *
-     * Experimental. Full type declaration for this argument.
-     * The full type specification combines type, type_attr, type_list_attr,
-     * etc. into a unified representation.
-     * This declaration may contain non-concrete types (for example,
-     * Tensor<TypeVar<'T'>> is a valid type declaration.
-     * Note: this is a transient field. The long-term aim is to represent the
-     * entire OpDef as a single type: a callable. In that context, this field is
-     * just the type of a single argument.
-     * 
- * - * .tensorflow.FullTypeDef experimental_full_type = 17; - */ - public org.tensorflow.proto.framework.FullTypeDefOrBuilder getExperimentalFullTypeOrBuilder() { - return getExperimentalFullType(); - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - if (type_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - output.writeEnum(3, type_); - } - if (!getTypeAttrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, typeAttr_); - } - if (!getNumberAttrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, numberAttr_); - } - if (!getTypeListAttrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, typeListAttr_); - } - for (int i = 0; i < handleData_.size(); i++) { - output.writeMessage(7, handleData_.get(i)); - } - if (isRef_ != false) { - output.writeBool(16, isRef_); - } - if (experimentalFullType_ != null) { - output.writeMessage(17, getExperimentalFullType()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - if (type_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, type_); - } - if (!getTypeAttrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, typeAttr_); - } - if (!getNumberAttrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, numberAttr_); - } - if (!getTypeListAttrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, typeListAttr_); - } - for (int i = 0; i < handleData_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, handleData_.get(i)); - } - if (isRef_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(16, isRef_); - } - if (experimentalFullType_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getExperimentalFullType()); - } - 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 org.tensorflow.proto.framework.OpDef.ArgDef)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.OpDef.ArgDef other = (org.tensorflow.proto.framework.OpDef.ArgDef) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (type_ != other.type_) return false; - if (!getTypeAttr() - .equals(other.getTypeAttr())) return false; - if (!getNumberAttr() - .equals(other.getNumberAttr())) return false; - if (!getTypeListAttr() - .equals(other.getTypeListAttr())) return false; - if (!getHandleDataList() - .equals(other.getHandleDataList())) return false; - if (getIsRef() - != other.getIsRef()) return false; - if (hasExperimentalFullType() != other.hasExperimentalFullType()) return false; - if (hasExperimentalFullType()) { - if (!getExperimentalFullType() - .equals(other.getExperimentalFullType())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + TYPE_ATTR_FIELD_NUMBER; - hash = (53 * hash) + getTypeAttr().hashCode(); - hash = (37 * hash) + NUMBER_ATTR_FIELD_NUMBER; - hash = (53 * hash) + getNumberAttr().hashCode(); - hash = (37 * hash) + TYPE_LIST_ATTR_FIELD_NUMBER; - hash = (53 * hash) + getTypeListAttr().hashCode(); - if (getHandleDataCount() > 0) { - hash = (37 * hash) + HANDLE_DATA_FIELD_NUMBER; - hash = (53 * hash) + getHandleDataList().hashCode(); - } - hash = (37 * hash) + IS_REF_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsRef()); - if (hasExperimentalFullType()) { - hash = (37 * hash) + EXPERIMENTAL_FULL_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getExperimentalFullType().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.OpDef.ArgDef parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpDef.ArgDef parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpDef.ArgDef parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpDef.ArgDef parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpDef.ArgDef parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpDef.ArgDef parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpDef.ArgDef parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpDef.ArgDef 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 org.tensorflow.proto.framework.OpDef.ArgDef parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpDef.ArgDef 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 org.tensorflow.proto.framework.OpDef.ArgDef parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpDef.ArgDef 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(org.tensorflow.proto.framework.OpDef.ArgDef 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; - } - /** - *
-     * For describing inputs and outputs.
-     * 
- * - * Protobuf type {@code tensorflow.OpDef.ArgDef} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.OpDef.ArgDef) - org.tensorflow.proto.framework.OpDef.ArgDefOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpDef_ArgDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpDef_ArgDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.OpDef.ArgDef.class, org.tensorflow.proto.framework.OpDef.ArgDef.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.OpDef.ArgDef.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getHandleDataFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - description_ = ""; - - type_ = 0; - - typeAttr_ = ""; - - numberAttr_ = ""; - - typeListAttr_ = ""; - - if (handleDataBuilder_ == null) { - handleData_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - handleDataBuilder_.clear(); - } - isRef_ = false; - - if (experimentalFullTypeBuilder_ == null) { - experimentalFullType_ = null; - } else { - experimentalFullType_ = null; - experimentalFullTypeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpDef_ArgDef_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpDef.ArgDef getDefaultInstanceForType() { - return org.tensorflow.proto.framework.OpDef.ArgDef.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpDef.ArgDef build() { - org.tensorflow.proto.framework.OpDef.ArgDef result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpDef.ArgDef buildPartial() { - org.tensorflow.proto.framework.OpDef.ArgDef result = new org.tensorflow.proto.framework.OpDef.ArgDef(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.description_ = description_; - result.type_ = type_; - result.typeAttr_ = typeAttr_; - result.numberAttr_ = numberAttr_; - result.typeListAttr_ = typeListAttr_; - if (handleDataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - handleData_ = java.util.Collections.unmodifiableList(handleData_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.handleData_ = handleData_; - } else { - result.handleData_ = handleDataBuilder_.build(); - } - result.isRef_ = isRef_; - if (experimentalFullTypeBuilder_ == null) { - result.experimentalFullType_ = experimentalFullType_; - } else { - result.experimentalFullType_ = experimentalFullTypeBuilder_.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 org.tensorflow.proto.framework.OpDef.ArgDef) { - return mergeFrom((org.tensorflow.proto.framework.OpDef.ArgDef)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.OpDef.ArgDef other) { - if (other == org.tensorflow.proto.framework.OpDef.ArgDef.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (!other.getTypeAttr().isEmpty()) { - typeAttr_ = other.typeAttr_; - onChanged(); - } - if (!other.getNumberAttr().isEmpty()) { - numberAttr_ = other.numberAttr_; - onChanged(); - } - if (!other.getTypeListAttr().isEmpty()) { - typeListAttr_ = other.typeListAttr_; - onChanged(); - } - if (handleDataBuilder_ == null) { - if (!other.handleData_.isEmpty()) { - if (handleData_.isEmpty()) { - handleData_ = other.handleData_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureHandleDataIsMutable(); - handleData_.addAll(other.handleData_); - } - onChanged(); - } - } else { - if (!other.handleData_.isEmpty()) { - if (handleDataBuilder_.isEmpty()) { - handleDataBuilder_.dispose(); - handleDataBuilder_ = null; - handleData_ = other.handleData_; - bitField0_ = (bitField0_ & ~0x00000001); - handleDataBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getHandleDataFieldBuilder() : null; - } else { - handleDataBuilder_.addAllMessages(other.handleData_); - } - } - } - if (other.getIsRef() != false) { - setIsRef(other.getIsRef()); - } - if (other.hasExperimentalFullType()) { - mergeExperimentalFullType(other.getExperimentalFullType()); - } - 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 { - org.tensorflow.proto.framework.OpDef.ArgDef parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.OpDef.ArgDef) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-       * Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
-       * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
-       * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
-       * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
-       * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
-       * 
- * - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-       * Human readable description.
-       * 
- * - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Human readable description.
-       * 
- * - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Human readable description.
-       * 
- * - * string description = 2; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
-       * Human readable description.
-       * 
- * - * string description = 2; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-       * Human readable description.
-       * 
- * - * string description = 2; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private int type_ = 0; - /** - *
-       * Describes the type of one or more tensors that are accepted/produced
-       * by this input/output arg.  The only legal combinations are:
-       * * For a single tensor: either the "type" field is set or the
-       *   "type_attr" field is set to the name of an attr with type "type".
-       * * For a sequence of tensors with the same type: the "number_attr"
-       *   field will be set to the name of an attr with type "int", and
-       *   either the "type" or "type_attr" field will be set as for
-       *   single tensors.
-       * * For a sequence of tensors, the "type_list_attr" field will be set
-       *   to the name of an attr with type "list(type)".
-       * 
- * - * .tensorflow.DataType type = 3; - */ - public int getTypeValue() { - return type_; - } - /** - *
-       * Describes the type of one or more tensors that are accepted/produced
-       * by this input/output arg.  The only legal combinations are:
-       * * For a single tensor: either the "type" field is set or the
-       *   "type_attr" field is set to the name of an attr with type "type".
-       * * For a sequence of tensors with the same type: the "number_attr"
-       *   field will be set to the name of an attr with type "int", and
-       *   either the "type" or "type_attr" field will be set as for
-       *   single tensors.
-       * * For a sequence of tensors, the "type_list_attr" field will be set
-       *   to the name of an attr with type "list(type)".
-       * 
- * - * .tensorflow.DataType type = 3; - */ - public Builder setTypeValue(int value) { - type_ = value; - onChanged(); - return this; - } - /** - *
-       * Describes the type of one or more tensors that are accepted/produced
-       * by this input/output arg.  The only legal combinations are:
-       * * For a single tensor: either the "type" field is set or the
-       *   "type_attr" field is set to the name of an attr with type "type".
-       * * For a sequence of tensors with the same type: the "number_attr"
-       *   field will be set to the name of an attr with type "int", and
-       *   either the "type" or "type_attr" field will be set as for
-       *   single tensors.
-       * * For a sequence of tensors, the "type_list_attr" field will be set
-       *   to the name of an attr with type "list(type)".
-       * 
- * - * .tensorflow.DataType type = 3; - */ - public org.tensorflow.proto.framework.DataType getType() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(type_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - /** - *
-       * Describes the type of one or more tensors that are accepted/produced
-       * by this input/output arg.  The only legal combinations are:
-       * * For a single tensor: either the "type" field is set or the
-       *   "type_attr" field is set to the name of an attr with type "type".
-       * * For a sequence of tensors with the same type: the "number_attr"
-       *   field will be set to the name of an attr with type "int", and
-       *   either the "type" or "type_attr" field will be set as for
-       *   single tensors.
-       * * For a sequence of tensors, the "type_list_attr" field will be set
-       *   to the name of an attr with type "list(type)".
-       * 
- * - * .tensorflow.DataType type = 3; - */ - public Builder setType(org.tensorflow.proto.framework.DataType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Describes the type of one or more tensors that are accepted/produced
-       * by this input/output arg.  The only legal combinations are:
-       * * For a single tensor: either the "type" field is set or the
-       *   "type_attr" field is set to the name of an attr with type "type".
-       * * For a sequence of tensors with the same type: the "number_attr"
-       *   field will be set to the name of an attr with type "int", and
-       *   either the "type" or "type_attr" field will be set as for
-       *   single tensors.
-       * * For a sequence of tensors, the "type_list_attr" field will be set
-       *   to the name of an attr with type "list(type)".
-       * 
- * - * .tensorflow.DataType type = 3; - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private java.lang.Object typeAttr_ = ""; - /** - *
-       * if specified, attr must have type "type"
-       * 
- * - * string type_attr = 4; - */ - public java.lang.String getTypeAttr() { - java.lang.Object ref = typeAttr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - typeAttr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * if specified, attr must have type "type"
-       * 
- * - * string type_attr = 4; - */ - public com.google.protobuf.ByteString - getTypeAttrBytes() { - java.lang.Object ref = typeAttr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - typeAttr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * if specified, attr must have type "type"
-       * 
- * - * string type_attr = 4; - */ - public Builder setTypeAttr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - typeAttr_ = value; - onChanged(); - return this; - } - /** - *
-       * if specified, attr must have type "type"
-       * 
- * - * string type_attr = 4; - */ - public Builder clearTypeAttr() { - - typeAttr_ = getDefaultInstance().getTypeAttr(); - onChanged(); - return this; - } - /** - *
-       * if specified, attr must have type "type"
-       * 
- * - * string type_attr = 4; - */ - public Builder setTypeAttrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - typeAttr_ = value; - onChanged(); - return this; - } - - private java.lang.Object numberAttr_ = ""; - /** - *
-       * if specified, attr must have type "int"
-       * 
- * - * string number_attr = 5; - */ - public java.lang.String getNumberAttr() { - java.lang.Object ref = numberAttr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - numberAttr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * if specified, attr must have type "int"
-       * 
- * - * string number_attr = 5; - */ - public com.google.protobuf.ByteString - getNumberAttrBytes() { - java.lang.Object ref = numberAttr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - numberAttr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * if specified, attr must have type "int"
-       * 
- * - * string number_attr = 5; - */ - public Builder setNumberAttr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - numberAttr_ = value; - onChanged(); - return this; - } - /** - *
-       * if specified, attr must have type "int"
-       * 
- * - * string number_attr = 5; - */ - public Builder clearNumberAttr() { - - numberAttr_ = getDefaultInstance().getNumberAttr(); - onChanged(); - return this; - } - /** - *
-       * if specified, attr must have type "int"
-       * 
- * - * string number_attr = 5; - */ - public Builder setNumberAttrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - numberAttr_ = value; - onChanged(); - return this; - } - - private java.lang.Object typeListAttr_ = ""; - /** - *
-       * If specified, attr must have type "list(type)", and none of
-       * type, type_attr, and number_attr may be specified.
-       * 
- * - * string type_list_attr = 6; - */ - public java.lang.String getTypeListAttr() { - java.lang.Object ref = typeListAttr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - typeListAttr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * If specified, attr must have type "list(type)", and none of
-       * type, type_attr, and number_attr may be specified.
-       * 
- * - * string type_list_attr = 6; - */ - public com.google.protobuf.ByteString - getTypeListAttrBytes() { - java.lang.Object ref = typeListAttr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - typeListAttr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * If specified, attr must have type "list(type)", and none of
-       * type, type_attr, and number_attr may be specified.
-       * 
- * - * string type_list_attr = 6; - */ - public Builder setTypeListAttr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - typeListAttr_ = value; - onChanged(); - return this; - } - /** - *
-       * If specified, attr must have type "list(type)", and none of
-       * type, type_attr, and number_attr may be specified.
-       * 
- * - * string type_list_attr = 6; - */ - public Builder clearTypeListAttr() { - - typeListAttr_ = getDefaultInstance().getTypeListAttr(); - onChanged(); - return this; - } - /** - *
-       * If specified, attr must have type "list(type)", and none of
-       * type, type_attr, and number_attr may be specified.
-       * 
- * - * string type_list_attr = 6; - */ - public Builder setTypeListAttrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - typeListAttr_ = value; - onChanged(); - return this; - } - - private java.util.List handleData_ = - java.util.Collections.emptyList(); - private void ensureHandleDataIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - handleData_ = new java.util.ArrayList(handleData_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.Builder, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShapeOrBuilder> handleDataBuilder_; - - /** - *
-       * The handle data for resource inputs.
-       * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public java.util.List getHandleDataList() { - if (handleDataBuilder_ == null) { - return java.util.Collections.unmodifiableList(handleData_); - } else { - return handleDataBuilder_.getMessageList(); - } - } - /** - *
-       * The handle data for resource inputs.
-       * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public int getHandleDataCount() { - if (handleDataBuilder_ == null) { - return handleData_.size(); - } else { - return handleDataBuilder_.getCount(); - } - } - /** - *
-       * The handle data for resource inputs.
-       * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape getHandleData(int index) { - if (handleDataBuilder_ == null) { - return handleData_.get(index); - } else { - return handleDataBuilder_.getMessage(index); - } - } - /** - *
-       * The handle data for resource inputs.
-       * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public Builder setHandleData( - int index, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape value) { - if (handleDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHandleDataIsMutable(); - handleData_.set(index, value); - onChanged(); - } else { - handleDataBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The handle data for resource inputs.
-       * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public Builder setHandleData( - int index, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.Builder builderForValue) { - if (handleDataBuilder_ == null) { - ensureHandleDataIsMutable(); - handleData_.set(index, builderForValue.build()); - onChanged(); - } else { - handleDataBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The handle data for resource inputs.
-       * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public Builder addHandleData(org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape value) { - if (handleDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHandleDataIsMutable(); - handleData_.add(value); - onChanged(); - } else { - handleDataBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The handle data for resource inputs.
-       * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public Builder addHandleData( - int index, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape value) { - if (handleDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHandleDataIsMutable(); - handleData_.add(index, value); - onChanged(); - } else { - handleDataBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The handle data for resource inputs.
-       * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public Builder addHandleData( - org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.Builder builderForValue) { - if (handleDataBuilder_ == null) { - ensureHandleDataIsMutable(); - handleData_.add(builderForValue.build()); - onChanged(); - } else { - handleDataBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The handle data for resource inputs.
-       * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public Builder addHandleData( - int index, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.Builder builderForValue) { - if (handleDataBuilder_ == null) { - ensureHandleDataIsMutable(); - handleData_.add(index, builderForValue.build()); - onChanged(); - } else { - handleDataBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The handle data for resource inputs.
-       * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public Builder addAllHandleData( - java.lang.Iterable values) { - if (handleDataBuilder_ == null) { - ensureHandleDataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, handleData_); - onChanged(); - } else { - handleDataBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The handle data for resource inputs.
-       * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public Builder clearHandleData() { - if (handleDataBuilder_ == null) { - handleData_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - handleDataBuilder_.clear(); - } - return this; - } - /** - *
-       * The handle data for resource inputs.
-       * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public Builder removeHandleData(int index) { - if (handleDataBuilder_ == null) { - ensureHandleDataIsMutable(); - handleData_.remove(index); - onChanged(); - } else { - handleDataBuilder_.remove(index); - } - return this; - } - /** - *
-       * The handle data for resource inputs.
-       * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.Builder getHandleDataBuilder( - int index) { - return getHandleDataFieldBuilder().getBuilder(index); - } - /** - *
-       * The handle data for resource inputs.
-       * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShapeOrBuilder getHandleDataOrBuilder( - int index) { - if (handleDataBuilder_ == null) { - return handleData_.get(index); } else { - return handleDataBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The handle data for resource inputs.
-       * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public java.util.List - getHandleDataOrBuilderList() { - if (handleDataBuilder_ != null) { - return handleDataBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(handleData_); - } - } - /** - *
-       * The handle data for resource inputs.
-       * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.Builder addHandleDataBuilder() { - return getHandleDataFieldBuilder().addBuilder( - org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.getDefaultInstance()); - } - /** - *
-       * The handle data for resource inputs.
-       * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.Builder addHandleDataBuilder( - int index) { - return getHandleDataFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.getDefaultInstance()); - } - /** - *
-       * The handle data for resource inputs.
-       * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; - */ - public java.util.List - getHandleDataBuilderList() { - return getHandleDataFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.Builder, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShapeOrBuilder> - getHandleDataFieldBuilder() { - if (handleDataBuilder_ == null) { - handleDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.Builder, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShapeOrBuilder>( - handleData_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - handleData_ = null; - } - return handleDataBuilder_; - } - - private boolean isRef_ ; - /** - *
-       * For inputs: if true, the inputs are required to be refs.
-       *   By default, inputs can be either refs or non-refs.
-       * For outputs: if true, outputs are refs, otherwise they are not.
-       * 
- * - * bool is_ref = 16; - */ - public boolean getIsRef() { - return isRef_; - } - /** - *
-       * For inputs: if true, the inputs are required to be refs.
-       *   By default, inputs can be either refs or non-refs.
-       * For outputs: if true, outputs are refs, otherwise they are not.
-       * 
- * - * bool is_ref = 16; - */ - public Builder setIsRef(boolean value) { - - isRef_ = value; - onChanged(); - return this; - } - /** - *
-       * For inputs: if true, the inputs are required to be refs.
-       *   By default, inputs can be either refs or non-refs.
-       * For outputs: if true, outputs are refs, otherwise they are not.
-       * 
- * - * bool is_ref = 16; - */ - public Builder clearIsRef() { - - isRef_ = false; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.FullTypeDef experimentalFullType_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.FullTypeDef, org.tensorflow.proto.framework.FullTypeDef.Builder, org.tensorflow.proto.framework.FullTypeDefOrBuilder> experimentalFullTypeBuilder_; - /** - *
-       * Experimental. Full type declaration for this argument.
-       * The full type specification combines type, type_attr, type_list_attr,
-       * etc. into a unified representation.
-       * This declaration may contain non-concrete types (for example,
-       * Tensor<TypeVar<'T'>> is a valid type declaration.
-       * Note: this is a transient field. The long-term aim is to represent the
-       * entire OpDef as a single type: a callable. In that context, this field is
-       * just the type of a single argument.
-       * 
- * - * .tensorflow.FullTypeDef experimental_full_type = 17; - */ - public boolean hasExperimentalFullType() { - return experimentalFullTypeBuilder_ != null || experimentalFullType_ != null; - } - /** - *
-       * Experimental. Full type declaration for this argument.
-       * The full type specification combines type, type_attr, type_list_attr,
-       * etc. into a unified representation.
-       * This declaration may contain non-concrete types (for example,
-       * Tensor<TypeVar<'T'>> is a valid type declaration.
-       * Note: this is a transient field. The long-term aim is to represent the
-       * entire OpDef as a single type: a callable. In that context, this field is
-       * just the type of a single argument.
-       * 
- * - * .tensorflow.FullTypeDef experimental_full_type = 17; - */ - public org.tensorflow.proto.framework.FullTypeDef getExperimentalFullType() { - if (experimentalFullTypeBuilder_ == null) { - return experimentalFullType_ == null ? org.tensorflow.proto.framework.FullTypeDef.getDefaultInstance() : experimentalFullType_; - } else { - return experimentalFullTypeBuilder_.getMessage(); - } - } - /** - *
-       * Experimental. Full type declaration for this argument.
-       * The full type specification combines type, type_attr, type_list_attr,
-       * etc. into a unified representation.
-       * This declaration may contain non-concrete types (for example,
-       * Tensor<TypeVar<'T'>> is a valid type declaration.
-       * Note: this is a transient field. The long-term aim is to represent the
-       * entire OpDef as a single type: a callable. In that context, this field is
-       * just the type of a single argument.
-       * 
- * - * .tensorflow.FullTypeDef experimental_full_type = 17; - */ - public Builder setExperimentalFullType(org.tensorflow.proto.framework.FullTypeDef value) { - if (experimentalFullTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - experimentalFullType_ = value; - onChanged(); - } else { - experimentalFullTypeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Experimental. Full type declaration for this argument.
-       * The full type specification combines type, type_attr, type_list_attr,
-       * etc. into a unified representation.
-       * This declaration may contain non-concrete types (for example,
-       * Tensor<TypeVar<'T'>> is a valid type declaration.
-       * Note: this is a transient field. The long-term aim is to represent the
-       * entire OpDef as a single type: a callable. In that context, this field is
-       * just the type of a single argument.
-       * 
- * - * .tensorflow.FullTypeDef experimental_full_type = 17; - */ - public Builder setExperimentalFullType( - org.tensorflow.proto.framework.FullTypeDef.Builder builderForValue) { - if (experimentalFullTypeBuilder_ == null) { - experimentalFullType_ = builderForValue.build(); - onChanged(); - } else { - experimentalFullTypeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Experimental. Full type declaration for this argument.
-       * The full type specification combines type, type_attr, type_list_attr,
-       * etc. into a unified representation.
-       * This declaration may contain non-concrete types (for example,
-       * Tensor<TypeVar<'T'>> is a valid type declaration.
-       * Note: this is a transient field. The long-term aim is to represent the
-       * entire OpDef as a single type: a callable. In that context, this field is
-       * just the type of a single argument.
-       * 
- * - * .tensorflow.FullTypeDef experimental_full_type = 17; - */ - public Builder mergeExperimentalFullType(org.tensorflow.proto.framework.FullTypeDef value) { - if (experimentalFullTypeBuilder_ == null) { - if (experimentalFullType_ != null) { - experimentalFullType_ = - org.tensorflow.proto.framework.FullTypeDef.newBuilder(experimentalFullType_).mergeFrom(value).buildPartial(); - } else { - experimentalFullType_ = value; - } - onChanged(); - } else { - experimentalFullTypeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Experimental. Full type declaration for this argument.
-       * The full type specification combines type, type_attr, type_list_attr,
-       * etc. into a unified representation.
-       * This declaration may contain non-concrete types (for example,
-       * Tensor<TypeVar<'T'>> is a valid type declaration.
-       * Note: this is a transient field. The long-term aim is to represent the
-       * entire OpDef as a single type: a callable. In that context, this field is
-       * just the type of a single argument.
-       * 
- * - * .tensorflow.FullTypeDef experimental_full_type = 17; - */ - public Builder clearExperimentalFullType() { - if (experimentalFullTypeBuilder_ == null) { - experimentalFullType_ = null; - onChanged(); - } else { - experimentalFullType_ = null; - experimentalFullTypeBuilder_ = null; - } - - return this; - } - /** - *
-       * Experimental. Full type declaration for this argument.
-       * The full type specification combines type, type_attr, type_list_attr,
-       * etc. into a unified representation.
-       * This declaration may contain non-concrete types (for example,
-       * Tensor<TypeVar<'T'>> is a valid type declaration.
-       * Note: this is a transient field. The long-term aim is to represent the
-       * entire OpDef as a single type: a callable. In that context, this field is
-       * just the type of a single argument.
-       * 
- * - * .tensorflow.FullTypeDef experimental_full_type = 17; - */ - public org.tensorflow.proto.framework.FullTypeDef.Builder getExperimentalFullTypeBuilder() { - - onChanged(); - return getExperimentalFullTypeFieldBuilder().getBuilder(); - } - /** - *
-       * Experimental. Full type declaration for this argument.
-       * The full type specification combines type, type_attr, type_list_attr,
-       * etc. into a unified representation.
-       * This declaration may contain non-concrete types (for example,
-       * Tensor<TypeVar<'T'>> is a valid type declaration.
-       * Note: this is a transient field. The long-term aim is to represent the
-       * entire OpDef as a single type: a callable. In that context, this field is
-       * just the type of a single argument.
-       * 
- * - * .tensorflow.FullTypeDef experimental_full_type = 17; - */ - public org.tensorflow.proto.framework.FullTypeDefOrBuilder getExperimentalFullTypeOrBuilder() { - if (experimentalFullTypeBuilder_ != null) { - return experimentalFullTypeBuilder_.getMessageOrBuilder(); - } else { - return experimentalFullType_ == null ? - org.tensorflow.proto.framework.FullTypeDef.getDefaultInstance() : experimentalFullType_; - } - } - /** - *
-       * Experimental. Full type declaration for this argument.
-       * The full type specification combines type, type_attr, type_list_attr,
-       * etc. into a unified representation.
-       * This declaration may contain non-concrete types (for example,
-       * Tensor<TypeVar<'T'>> is a valid type declaration.
-       * Note: this is a transient field. The long-term aim is to represent the
-       * entire OpDef as a single type: a callable. In that context, this field is
-       * just the type of a single argument.
-       * 
- * - * .tensorflow.FullTypeDef experimental_full_type = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.FullTypeDef, org.tensorflow.proto.framework.FullTypeDef.Builder, org.tensorflow.proto.framework.FullTypeDefOrBuilder> - getExperimentalFullTypeFieldBuilder() { - if (experimentalFullTypeBuilder_ == null) { - experimentalFullTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.FullTypeDef, org.tensorflow.proto.framework.FullTypeDef.Builder, org.tensorflow.proto.framework.FullTypeDefOrBuilder>( - getExperimentalFullType(), - getParentForChildren(), - isClean()); - experimentalFullType_ = null; - } - return experimentalFullTypeBuilder_; - } - @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:tensorflow.OpDef.ArgDef) - } - - // @@protoc_insertion_point(class_scope:tensorflow.OpDef.ArgDef) - private static final org.tensorflow.proto.framework.OpDef.ArgDef DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.OpDef.ArgDef(); - } - - public static org.tensorflow.proto.framework.OpDef.ArgDef getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArgDef parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ArgDef(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpDef.ArgDef getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AttrDefOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.OpDef.AttrDef) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A descriptive name for the argument.  May be used, e.g. by the
-     * Python client, as a keyword argument name, and so should match
-     * the regexp "[a-z][a-z0-9_]+".
-     * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-     * A descriptive name for the argument.  May be used, e.g. by the
-     * Python client, as a keyword argument name, and so should match
-     * the regexp "[a-z][a-z0-9_]+".
-     * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * One of the type names from attr_value.proto ("string", "list(string)",
-     * "int", etc.).
-     * 
- * - * string type = 2; - */ - java.lang.String getType(); - /** - *
-     * One of the type names from attr_value.proto ("string", "list(string)",
-     * "int", etc.).
-     * 
- * - * string type = 2; - */ - com.google.protobuf.ByteString - getTypeBytes(); - - /** - *
-     * A reasonable default for this attribute if the user does not supply
-     * a value.  If not specified, the user must supply a value.
-     * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - boolean hasDefaultValue(); - /** - *
-     * A reasonable default for this attribute if the user does not supply
-     * a value.  If not specified, the user must supply a value.
-     * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - org.tensorflow.proto.framework.AttrValue getDefaultValue(); - /** - *
-     * A reasonable default for this attribute if the user does not supply
-     * a value.  If not specified, the user must supply a value.
-     * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - org.tensorflow.proto.framework.AttrValueOrBuilder getDefaultValueOrBuilder(); - - /** - *
-     * Human-readable description.
-     * 
- * - * string description = 4; - */ - java.lang.String getDescription(); - /** - *
-     * Human-readable description.
-     * 
- * - * string description = 4; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-     * For type == "int", this is a minimum value.  For "list(___)"
-     * types, this is the minimum length.
-     * 
- * - * bool has_minimum = 5; - */ - boolean getHasMinimum(); - - /** - * int64 minimum = 6; - */ - long getMinimum(); - - /** - *
-     * The set of allowed values.  Has type that is the "list" version
-     * of the "type" field above (uses the "list" field of AttrValue).
-     * If type == "type" or "list(type)" above, then the "type" field
-     * of "allowed_values.list" has the set of allowed DataTypes.
-     * If type == "string" or "list(string)", then the "s" field of
-     * "allowed_values.list" has the set of allowed strings.
-     * 
- * - * .tensorflow.AttrValue allowed_values = 7; - */ - boolean hasAllowedValues(); - /** - *
-     * The set of allowed values.  Has type that is the "list" version
-     * of the "type" field above (uses the "list" field of AttrValue).
-     * If type == "type" or "list(type)" above, then the "type" field
-     * of "allowed_values.list" has the set of allowed DataTypes.
-     * If type == "string" or "list(string)", then the "s" field of
-     * "allowed_values.list" has the set of allowed strings.
-     * 
- * - * .tensorflow.AttrValue allowed_values = 7; - */ - org.tensorflow.proto.framework.AttrValue getAllowedValues(); - /** - *
-     * The set of allowed values.  Has type that is the "list" version
-     * of the "type" field above (uses the "list" field of AttrValue).
-     * If type == "type" or "list(type)" above, then the "type" field
-     * of "allowed_values.list" has the set of allowed DataTypes.
-     * If type == "string" or "list(string)", then the "s" field of
-     * "allowed_values.list" has the set of allowed strings.
-     * 
- * - * .tensorflow.AttrValue allowed_values = 7; - */ - org.tensorflow.proto.framework.AttrValueOrBuilder getAllowedValuesOrBuilder(); - } - /** - *
-   * Description of the graph-construction-time configuration of this
-   * Op.  That is to say, this describes the attr fields that will
-   * be specified in the NodeDef.
-   * 
- * - * Protobuf type {@code tensorflow.OpDef.AttrDef} - */ - public static final class AttrDef extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.OpDef.AttrDef) - AttrDefOrBuilder { - private static final long serialVersionUID = 0L; - // Use AttrDef.newBuilder() to construct. - private AttrDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AttrDef() { - name_ = ""; - type_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AttrDef(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AttrDef( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - case 26: { - org.tensorflow.proto.framework.AttrValue.Builder subBuilder = null; - if (defaultValue_ != null) { - subBuilder = defaultValue_.toBuilder(); - } - defaultValue_ = input.readMessage(org.tensorflow.proto.framework.AttrValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(defaultValue_); - defaultValue_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 40: { - - hasMinimum_ = input.readBool(); - break; - } - case 48: { - - minimum_ = input.readInt64(); - break; - } - case 58: { - org.tensorflow.proto.framework.AttrValue.Builder subBuilder = null; - if (allowedValues_ != null) { - subBuilder = allowedValues_.toBuilder(); - } - allowedValues_ = input.readMessage(org.tensorflow.proto.framework.AttrValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(allowedValues_); - allowedValues_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpDef_AttrDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpDef_AttrDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.OpDef.AttrDef.class, org.tensorflow.proto.framework.OpDef.AttrDef.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-     * A descriptive name for the argument.  May be used, e.g. by the
-     * Python client, as a keyword argument name, and so should match
-     * the regexp "[a-z][a-z0-9_]+".
-     * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - *
-     * A descriptive name for the argument.  May be used, e.g. by the
-     * Python client, as a keyword argument name, and so should match
-     * the regexp "[a-z][a-z0-9_]+".
-     * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object type_; - /** - *
-     * One of the type names from attr_value.proto ("string", "list(string)",
-     * "int", etc.).
-     * 
- * - * string type = 2; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - 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(); - type_ = s; - return s; - } - } - /** - *
-     * One of the type names from attr_value.proto ("string", "list(string)",
-     * "int", etc.).
-     * 
- * - * string type = 2; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEFAULT_VALUE_FIELD_NUMBER = 3; - private org.tensorflow.proto.framework.AttrValue defaultValue_; - /** - *
-     * A reasonable default for this attribute if the user does not supply
-     * a value.  If not specified, the user must supply a value.
-     * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - public boolean hasDefaultValue() { - return defaultValue_ != null; - } - /** - *
-     * A reasonable default for this attribute if the user does not supply
-     * a value.  If not specified, the user must supply a value.
-     * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - public org.tensorflow.proto.framework.AttrValue getDefaultValue() { - return defaultValue_ == null ? org.tensorflow.proto.framework.AttrValue.getDefaultInstance() : defaultValue_; - } - /** - *
-     * A reasonable default for this attribute if the user does not supply
-     * a value.  If not specified, the user must supply a value.
-     * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - public org.tensorflow.proto.framework.AttrValueOrBuilder getDefaultValueOrBuilder() { - return getDefaultValue(); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 4; - private volatile java.lang.Object description_; - /** - *
-     * Human-readable description.
-     * 
- * - * string description = 4; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-     * Human-readable description.
-     * 
- * - * string description = 4; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HAS_MINIMUM_FIELD_NUMBER = 5; - private boolean hasMinimum_; - /** - *
-     * For type == "int", this is a minimum value.  For "list(___)"
-     * types, this is the minimum length.
-     * 
- * - * bool has_minimum = 5; - */ - public boolean getHasMinimum() { - return hasMinimum_; - } - - public static final int MINIMUM_FIELD_NUMBER = 6; - private long minimum_; - /** - * int64 minimum = 6; - */ - public long getMinimum() { - return minimum_; - } - - public static final int ALLOWED_VALUES_FIELD_NUMBER = 7; - private org.tensorflow.proto.framework.AttrValue allowedValues_; - /** - *
-     * The set of allowed values.  Has type that is the "list" version
-     * of the "type" field above (uses the "list" field of AttrValue).
-     * If type == "type" or "list(type)" above, then the "type" field
-     * of "allowed_values.list" has the set of allowed DataTypes.
-     * If type == "string" or "list(string)", then the "s" field of
-     * "allowed_values.list" has the set of allowed strings.
-     * 
- * - * .tensorflow.AttrValue allowed_values = 7; - */ - public boolean hasAllowedValues() { - return allowedValues_ != null; - } - /** - *
-     * The set of allowed values.  Has type that is the "list" version
-     * of the "type" field above (uses the "list" field of AttrValue).
-     * If type == "type" or "list(type)" above, then the "type" field
-     * of "allowed_values.list" has the set of allowed DataTypes.
-     * If type == "string" or "list(string)", then the "s" field of
-     * "allowed_values.list" has the set of allowed strings.
-     * 
- * - * .tensorflow.AttrValue allowed_values = 7; - */ - public org.tensorflow.proto.framework.AttrValue getAllowedValues() { - return allowedValues_ == null ? org.tensorflow.proto.framework.AttrValue.getDefaultInstance() : allowedValues_; - } - /** - *
-     * The set of allowed values.  Has type that is the "list" version
-     * of the "type" field above (uses the "list" field of AttrValue).
-     * If type == "type" or "list(type)" above, then the "type" field
-     * of "allowed_values.list" has the set of allowed DataTypes.
-     * If type == "string" or "list(string)", then the "s" field of
-     * "allowed_values.list" has the set of allowed strings.
-     * 
- * - * .tensorflow.AttrValue allowed_values = 7; - */ - public org.tensorflow.proto.framework.AttrValueOrBuilder getAllowedValuesOrBuilder() { - return getAllowedValues(); - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); - } - if (defaultValue_ != null) { - output.writeMessage(3, getDefaultValue()); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); - } - if (hasMinimum_ != false) { - output.writeBool(5, hasMinimum_); - } - if (minimum_ != 0L) { - output.writeInt64(6, minimum_); - } - if (allowedValues_ != null) { - output.writeMessage(7, getAllowedValues()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); - } - if (defaultValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDefaultValue()); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); - } - if (hasMinimum_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, hasMinimum_); - } - if (minimum_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, minimum_); - } - if (allowedValues_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getAllowedValues()); - } - 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 org.tensorflow.proto.framework.OpDef.AttrDef)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.OpDef.AttrDef other = (org.tensorflow.proto.framework.OpDef.AttrDef) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getType() - .equals(other.getType())) return false; - if (hasDefaultValue() != other.hasDefaultValue()) return false; - if (hasDefaultValue()) { - if (!getDefaultValue() - .equals(other.getDefaultValue())) return false; - } - if (!getDescription() - .equals(other.getDescription())) return false; - if (getHasMinimum() - != other.getHasMinimum()) return false; - if (getMinimum() - != other.getMinimum()) return false; - if (hasAllowedValues() != other.hasAllowedValues()) return false; - if (hasAllowedValues()) { - if (!getAllowedValues() - .equals(other.getAllowedValues())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - if (hasDefaultValue()) { - hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getDefaultValue().hashCode(); - } - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + HAS_MINIMUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHasMinimum()); - hash = (37 * hash) + MINIMUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinimum()); - if (hasAllowedValues()) { - hash = (37 * hash) + ALLOWED_VALUES_FIELD_NUMBER; - hash = (53 * hash) + getAllowedValues().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.OpDef.AttrDef parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpDef.AttrDef parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpDef.AttrDef parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpDef.AttrDef parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpDef.AttrDef parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpDef.AttrDef parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpDef.AttrDef parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpDef.AttrDef 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 org.tensorflow.proto.framework.OpDef.AttrDef parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpDef.AttrDef 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 org.tensorflow.proto.framework.OpDef.AttrDef parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpDef.AttrDef 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(org.tensorflow.proto.framework.OpDef.AttrDef 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; - } - /** - *
-     * Description of the graph-construction-time configuration of this
-     * Op.  That is to say, this describes the attr fields that will
-     * be specified in the NodeDef.
-     * 
- * - * Protobuf type {@code tensorflow.OpDef.AttrDef} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.OpDef.AttrDef) - org.tensorflow.proto.framework.OpDef.AttrDefOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpDef_AttrDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpDef_AttrDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.OpDef.AttrDef.class, org.tensorflow.proto.framework.OpDef.AttrDef.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.OpDef.AttrDef.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - type_ = ""; - - if (defaultValueBuilder_ == null) { - defaultValue_ = null; - } else { - defaultValue_ = null; - defaultValueBuilder_ = null; - } - description_ = ""; - - hasMinimum_ = false; - - minimum_ = 0L; - - if (allowedValuesBuilder_ == null) { - allowedValues_ = null; - } else { - allowedValues_ = null; - allowedValuesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpDef_AttrDef_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpDef.AttrDef getDefaultInstanceForType() { - return org.tensorflow.proto.framework.OpDef.AttrDef.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpDef.AttrDef build() { - org.tensorflow.proto.framework.OpDef.AttrDef result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpDef.AttrDef buildPartial() { - org.tensorflow.proto.framework.OpDef.AttrDef result = new org.tensorflow.proto.framework.OpDef.AttrDef(this); - result.name_ = name_; - result.type_ = type_; - if (defaultValueBuilder_ == null) { - result.defaultValue_ = defaultValue_; - } else { - result.defaultValue_ = defaultValueBuilder_.build(); - } - result.description_ = description_; - result.hasMinimum_ = hasMinimum_; - result.minimum_ = minimum_; - if (allowedValuesBuilder_ == null) { - result.allowedValues_ = allowedValues_; - } else { - result.allowedValues_ = allowedValuesBuilder_.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 org.tensorflow.proto.framework.OpDef.AttrDef) { - return mergeFrom((org.tensorflow.proto.framework.OpDef.AttrDef)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.OpDef.AttrDef other) { - if (other == org.tensorflow.proto.framework.OpDef.AttrDef.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getType().isEmpty()) { - type_ = other.type_; - onChanged(); - } - if (other.hasDefaultValue()) { - mergeDefaultValue(other.getDefaultValue()); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (other.getHasMinimum() != false) { - setHasMinimum(other.getHasMinimum()); - } - if (other.getMinimum() != 0L) { - setMinimum(other.getMinimum()); - } - if (other.hasAllowedValues()) { - mergeAllowedValues(other.getAllowedValues()); - } - 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 { - org.tensorflow.proto.framework.OpDef.AttrDef parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.OpDef.AttrDef) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * A descriptive name for the argument.  May be used, e.g. by the
-       * Python client, as a keyword argument name, and so should match
-       * the regexp "[a-z][a-z0-9_]+".
-       * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A descriptive name for the argument.  May be used, e.g. by the
-       * Python client, as a keyword argument name, and so should match
-       * the regexp "[a-z][a-z0-9_]+".
-       * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A descriptive name for the argument.  May be used, e.g. by the
-       * Python client, as a keyword argument name, and so should match
-       * the regexp "[a-z][a-z0-9_]+".
-       * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * A descriptive name for the argument.  May be used, e.g. by the
-       * Python client, as a keyword argument name, and so should match
-       * the regexp "[a-z][a-z0-9_]+".
-       * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * A descriptive name for the argument.  May be used, e.g. by the
-       * Python client, as a keyword argument name, and so should match
-       * the regexp "[a-z][a-z0-9_]+".
-       * 
- * - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object type_ = ""; - /** - *
-       * One of the type names from attr_value.proto ("string", "list(string)",
-       * "int", etc.).
-       * 
- * - * string type = 2; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * One of the type names from attr_value.proto ("string", "list(string)",
-       * "int", etc.).
-       * 
- * - * string type = 2; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * One of the type names from attr_value.proto ("string", "list(string)",
-       * "int", etc.).
-       * 
- * - * string type = 2; - */ - public Builder setType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value; - onChanged(); - return this; - } - /** - *
-       * One of the type names from attr_value.proto ("string", "list(string)",
-       * "int", etc.).
-       * 
- * - * string type = 2; - */ - public Builder clearType() { - - type_ = getDefaultInstance().getType(); - onChanged(); - return this; - } - /** - *
-       * One of the type names from attr_value.proto ("string", "list(string)",
-       * "int", etc.).
-       * 
- * - * string type = 2; - */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - type_ = value; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.AttrValue defaultValue_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.AttrValue, org.tensorflow.proto.framework.AttrValue.Builder, org.tensorflow.proto.framework.AttrValueOrBuilder> defaultValueBuilder_; - /** - *
-       * A reasonable default for this attribute if the user does not supply
-       * a value.  If not specified, the user must supply a value.
-       * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - public boolean hasDefaultValue() { - return defaultValueBuilder_ != null || defaultValue_ != null; - } - /** - *
-       * A reasonable default for this attribute if the user does not supply
-       * a value.  If not specified, the user must supply a value.
-       * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - public org.tensorflow.proto.framework.AttrValue getDefaultValue() { - if (defaultValueBuilder_ == null) { - return defaultValue_ == null ? org.tensorflow.proto.framework.AttrValue.getDefaultInstance() : defaultValue_; - } else { - return defaultValueBuilder_.getMessage(); - } - } - /** - *
-       * A reasonable default for this attribute if the user does not supply
-       * a value.  If not specified, the user must supply a value.
-       * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - public Builder setDefaultValue(org.tensorflow.proto.framework.AttrValue value) { - if (defaultValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - defaultValue_ = value; - onChanged(); - } else { - defaultValueBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A reasonable default for this attribute if the user does not supply
-       * a value.  If not specified, the user must supply a value.
-       * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - public Builder setDefaultValue( - org.tensorflow.proto.framework.AttrValue.Builder builderForValue) { - if (defaultValueBuilder_ == null) { - defaultValue_ = builderForValue.build(); - onChanged(); - } else { - defaultValueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A reasonable default for this attribute if the user does not supply
-       * a value.  If not specified, the user must supply a value.
-       * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - public Builder mergeDefaultValue(org.tensorflow.proto.framework.AttrValue value) { - if (defaultValueBuilder_ == null) { - if (defaultValue_ != null) { - defaultValue_ = - org.tensorflow.proto.framework.AttrValue.newBuilder(defaultValue_).mergeFrom(value).buildPartial(); - } else { - defaultValue_ = value; - } - onChanged(); - } else { - defaultValueBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A reasonable default for this attribute if the user does not supply
-       * a value.  If not specified, the user must supply a value.
-       * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - public Builder clearDefaultValue() { - if (defaultValueBuilder_ == null) { - defaultValue_ = null; - onChanged(); - } else { - defaultValue_ = null; - defaultValueBuilder_ = null; - } - - return this; - } - /** - *
-       * A reasonable default for this attribute if the user does not supply
-       * a value.  If not specified, the user must supply a value.
-       * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - public org.tensorflow.proto.framework.AttrValue.Builder getDefaultValueBuilder() { - - onChanged(); - return getDefaultValueFieldBuilder().getBuilder(); - } - /** - *
-       * A reasonable default for this attribute if the user does not supply
-       * a value.  If not specified, the user must supply a value.
-       * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - public org.tensorflow.proto.framework.AttrValueOrBuilder getDefaultValueOrBuilder() { - if (defaultValueBuilder_ != null) { - return defaultValueBuilder_.getMessageOrBuilder(); - } else { - return defaultValue_ == null ? - org.tensorflow.proto.framework.AttrValue.getDefaultInstance() : defaultValue_; - } - } - /** - *
-       * A reasonable default for this attribute if the user does not supply
-       * a value.  If not specified, the user must supply a value.
-       * 
- * - * .tensorflow.AttrValue default_value = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.AttrValue, org.tensorflow.proto.framework.AttrValue.Builder, org.tensorflow.proto.framework.AttrValueOrBuilder> - getDefaultValueFieldBuilder() { - if (defaultValueBuilder_ == null) { - defaultValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.AttrValue, org.tensorflow.proto.framework.AttrValue.Builder, org.tensorflow.proto.framework.AttrValueOrBuilder>( - getDefaultValue(), - getParentForChildren(), - isClean()); - defaultValue_ = null; - } - return defaultValueBuilder_; - } - - private java.lang.Object description_ = ""; - /** - *
-       * Human-readable description.
-       * 
- * - * string description = 4; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Human-readable description.
-       * 
- * - * string description = 4; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Human-readable description.
-       * 
- * - * string description = 4; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
-       * Human-readable description.
-       * 
- * - * string description = 4; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-       * Human-readable description.
-       * 
- * - * string description = 4; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private boolean hasMinimum_ ; - /** - *
-       * For type == "int", this is a minimum value.  For "list(___)"
-       * types, this is the minimum length.
-       * 
- * - * bool has_minimum = 5; - */ - public boolean getHasMinimum() { - return hasMinimum_; - } - /** - *
-       * For type == "int", this is a minimum value.  For "list(___)"
-       * types, this is the minimum length.
-       * 
- * - * bool has_minimum = 5; - */ - public Builder setHasMinimum(boolean value) { - - hasMinimum_ = value; - onChanged(); - return this; - } - /** - *
-       * For type == "int", this is a minimum value.  For "list(___)"
-       * types, this is the minimum length.
-       * 
- * - * bool has_minimum = 5; - */ - public Builder clearHasMinimum() { - - hasMinimum_ = false; - onChanged(); - return this; - } - - private long minimum_ ; - /** - * int64 minimum = 6; - */ - public long getMinimum() { - return minimum_; - } - /** - * int64 minimum = 6; - */ - public Builder setMinimum(long value) { - - minimum_ = value; - onChanged(); - return this; - } - /** - * int64 minimum = 6; - */ - public Builder clearMinimum() { - - minimum_ = 0L; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.AttrValue allowedValues_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.AttrValue, org.tensorflow.proto.framework.AttrValue.Builder, org.tensorflow.proto.framework.AttrValueOrBuilder> allowedValuesBuilder_; - /** - *
-       * The set of allowed values.  Has type that is the "list" version
-       * of the "type" field above (uses the "list" field of AttrValue).
-       * If type == "type" or "list(type)" above, then the "type" field
-       * of "allowed_values.list" has the set of allowed DataTypes.
-       * If type == "string" or "list(string)", then the "s" field of
-       * "allowed_values.list" has the set of allowed strings.
-       * 
- * - * .tensorflow.AttrValue allowed_values = 7; - */ - public boolean hasAllowedValues() { - return allowedValuesBuilder_ != null || allowedValues_ != null; - } - /** - *
-       * The set of allowed values.  Has type that is the "list" version
-       * of the "type" field above (uses the "list" field of AttrValue).
-       * If type == "type" or "list(type)" above, then the "type" field
-       * of "allowed_values.list" has the set of allowed DataTypes.
-       * If type == "string" or "list(string)", then the "s" field of
-       * "allowed_values.list" has the set of allowed strings.
-       * 
- * - * .tensorflow.AttrValue allowed_values = 7; - */ - public org.tensorflow.proto.framework.AttrValue getAllowedValues() { - if (allowedValuesBuilder_ == null) { - return allowedValues_ == null ? org.tensorflow.proto.framework.AttrValue.getDefaultInstance() : allowedValues_; - } else { - return allowedValuesBuilder_.getMessage(); - } - } - /** - *
-       * The set of allowed values.  Has type that is the "list" version
-       * of the "type" field above (uses the "list" field of AttrValue).
-       * If type == "type" or "list(type)" above, then the "type" field
-       * of "allowed_values.list" has the set of allowed DataTypes.
-       * If type == "string" or "list(string)", then the "s" field of
-       * "allowed_values.list" has the set of allowed strings.
-       * 
- * - * .tensorflow.AttrValue allowed_values = 7; - */ - public Builder setAllowedValues(org.tensorflow.proto.framework.AttrValue value) { - if (allowedValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - allowedValues_ = value; - onChanged(); - } else { - allowedValuesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The set of allowed values.  Has type that is the "list" version
-       * of the "type" field above (uses the "list" field of AttrValue).
-       * If type == "type" or "list(type)" above, then the "type" field
-       * of "allowed_values.list" has the set of allowed DataTypes.
-       * If type == "string" or "list(string)", then the "s" field of
-       * "allowed_values.list" has the set of allowed strings.
-       * 
- * - * .tensorflow.AttrValue allowed_values = 7; - */ - public Builder setAllowedValues( - org.tensorflow.proto.framework.AttrValue.Builder builderForValue) { - if (allowedValuesBuilder_ == null) { - allowedValues_ = builderForValue.build(); - onChanged(); - } else { - allowedValuesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The set of allowed values.  Has type that is the "list" version
-       * of the "type" field above (uses the "list" field of AttrValue).
-       * If type == "type" or "list(type)" above, then the "type" field
-       * of "allowed_values.list" has the set of allowed DataTypes.
-       * If type == "string" or "list(string)", then the "s" field of
-       * "allowed_values.list" has the set of allowed strings.
-       * 
- * - * .tensorflow.AttrValue allowed_values = 7; - */ - public Builder mergeAllowedValues(org.tensorflow.proto.framework.AttrValue value) { - if (allowedValuesBuilder_ == null) { - if (allowedValues_ != null) { - allowedValues_ = - org.tensorflow.proto.framework.AttrValue.newBuilder(allowedValues_).mergeFrom(value).buildPartial(); - } else { - allowedValues_ = value; - } - onChanged(); - } else { - allowedValuesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The set of allowed values.  Has type that is the "list" version
-       * of the "type" field above (uses the "list" field of AttrValue).
-       * If type == "type" or "list(type)" above, then the "type" field
-       * of "allowed_values.list" has the set of allowed DataTypes.
-       * If type == "string" or "list(string)", then the "s" field of
-       * "allowed_values.list" has the set of allowed strings.
-       * 
- * - * .tensorflow.AttrValue allowed_values = 7; - */ - public Builder clearAllowedValues() { - if (allowedValuesBuilder_ == null) { - allowedValues_ = null; - onChanged(); - } else { - allowedValues_ = null; - allowedValuesBuilder_ = null; - } - - return this; - } - /** - *
-       * The set of allowed values.  Has type that is the "list" version
-       * of the "type" field above (uses the "list" field of AttrValue).
-       * If type == "type" or "list(type)" above, then the "type" field
-       * of "allowed_values.list" has the set of allowed DataTypes.
-       * If type == "string" or "list(string)", then the "s" field of
-       * "allowed_values.list" has the set of allowed strings.
-       * 
- * - * .tensorflow.AttrValue allowed_values = 7; - */ - public org.tensorflow.proto.framework.AttrValue.Builder getAllowedValuesBuilder() { - - onChanged(); - return getAllowedValuesFieldBuilder().getBuilder(); - } - /** - *
-       * The set of allowed values.  Has type that is the "list" version
-       * of the "type" field above (uses the "list" field of AttrValue).
-       * If type == "type" or "list(type)" above, then the "type" field
-       * of "allowed_values.list" has the set of allowed DataTypes.
-       * If type == "string" or "list(string)", then the "s" field of
-       * "allowed_values.list" has the set of allowed strings.
-       * 
- * - * .tensorflow.AttrValue allowed_values = 7; - */ - public org.tensorflow.proto.framework.AttrValueOrBuilder getAllowedValuesOrBuilder() { - if (allowedValuesBuilder_ != null) { - return allowedValuesBuilder_.getMessageOrBuilder(); - } else { - return allowedValues_ == null ? - org.tensorflow.proto.framework.AttrValue.getDefaultInstance() : allowedValues_; - } - } - /** - *
-       * The set of allowed values.  Has type that is the "list" version
-       * of the "type" field above (uses the "list" field of AttrValue).
-       * If type == "type" or "list(type)" above, then the "type" field
-       * of "allowed_values.list" has the set of allowed DataTypes.
-       * If type == "string" or "list(string)", then the "s" field of
-       * "allowed_values.list" has the set of allowed strings.
-       * 
- * - * .tensorflow.AttrValue allowed_values = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.AttrValue, org.tensorflow.proto.framework.AttrValue.Builder, org.tensorflow.proto.framework.AttrValueOrBuilder> - getAllowedValuesFieldBuilder() { - if (allowedValuesBuilder_ == null) { - allowedValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.AttrValue, org.tensorflow.proto.framework.AttrValue.Builder, org.tensorflow.proto.framework.AttrValueOrBuilder>( - getAllowedValues(), - getParentForChildren(), - isClean()); - allowedValues_ = null; - } - return allowedValuesBuilder_; - } - @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:tensorflow.OpDef.AttrDef) - } - - // @@protoc_insertion_point(class_scope:tensorflow.OpDef.AttrDef) - private static final org.tensorflow.proto.framework.OpDef.AttrDef DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.OpDef.AttrDef(); - } - - public static org.tensorflow.proto.framework.OpDef.AttrDef getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AttrDef parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AttrDef(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpDef.AttrDef getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * Op names starting with an underscore are reserved for internal use.
-   * Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
-   * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - *
-   * Op names starting with an underscore are reserved for internal use.
-   * Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
-   * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INPUT_ARG_FIELD_NUMBER = 2; - private java.util.List inputArg_; - /** - *
-   * Description of the input(s).
-   * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public java.util.List getInputArgList() { - return inputArg_; - } - /** - *
-   * Description of the input(s).
-   * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public java.util.List - getInputArgOrBuilderList() { - return inputArg_; - } - /** - *
-   * Description of the input(s).
-   * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public int getInputArgCount() { - return inputArg_.size(); - } - /** - *
-   * Description of the input(s).
-   * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public org.tensorflow.proto.framework.OpDef.ArgDef getInputArg(int index) { - return inputArg_.get(index); - } - /** - *
-   * Description of the input(s).
-   * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public org.tensorflow.proto.framework.OpDef.ArgDefOrBuilder getInputArgOrBuilder( - int index) { - return inputArg_.get(index); - } - - public static final int OUTPUT_ARG_FIELD_NUMBER = 3; - private java.util.List outputArg_; - /** - *
-   * Description of the output(s).
-   * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public java.util.List getOutputArgList() { - return outputArg_; - } - /** - *
-   * Description of the output(s).
-   * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public java.util.List - getOutputArgOrBuilderList() { - return outputArg_; - } - /** - *
-   * Description of the output(s).
-   * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public int getOutputArgCount() { - return outputArg_.size(); - } - /** - *
-   * Description of the output(s).
-   * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public org.tensorflow.proto.framework.OpDef.ArgDef getOutputArg(int index) { - return outputArg_.get(index); - } - /** - *
-   * Description of the output(s).
-   * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public org.tensorflow.proto.framework.OpDef.ArgDefOrBuilder getOutputArgOrBuilder( - int index) { - return outputArg_.get(index); - } - - public static final int CONTROL_OUTPUT_FIELD_NUMBER = 20; - private com.google.protobuf.LazyStringList controlOutput_; - /** - *
-   * Named control outputs for this operation. Useful only for composite
-   * operations (i.e. functions) which want to name different control outputs.
-   * 
- * - * repeated string control_output = 20; - */ - public com.google.protobuf.ProtocolStringList - getControlOutputList() { - return controlOutput_; - } - /** - *
-   * Named control outputs for this operation. Useful only for composite
-   * operations (i.e. functions) which want to name different control outputs.
-   * 
- * - * repeated string control_output = 20; - */ - public int getControlOutputCount() { - return controlOutput_.size(); - } - /** - *
-   * Named control outputs for this operation. Useful only for composite
-   * operations (i.e. functions) which want to name different control outputs.
-   * 
- * - * repeated string control_output = 20; - */ - public java.lang.String getControlOutput(int index) { - return controlOutput_.get(index); - } - /** - *
-   * Named control outputs for this operation. Useful only for composite
-   * operations (i.e. functions) which want to name different control outputs.
-   * 
- * - * repeated string control_output = 20; - */ - public com.google.protobuf.ByteString - getControlOutputBytes(int index) { - return controlOutput_.getByteString(index); - } - - public static final int ATTR_FIELD_NUMBER = 4; - private java.util.List attr_; - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public java.util.List getAttrList() { - return attr_; - } - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public java.util.List - getAttrOrBuilderList() { - return attr_; - } - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public int getAttrCount() { - return attr_.size(); - } - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public org.tensorflow.proto.framework.OpDef.AttrDef getAttr(int index) { - return attr_.get(index); - } - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public org.tensorflow.proto.framework.OpDef.AttrDefOrBuilder getAttrOrBuilder( - int index) { - return attr_.get(index); - } - - public static final int DEPRECATION_FIELD_NUMBER = 8; - private org.tensorflow.proto.framework.OpDeprecation deprecation_; - /** - *
-   * Optional deprecation based on GraphDef versions.
-   * 
- * - * .tensorflow.OpDeprecation deprecation = 8; - */ - public boolean hasDeprecation() { - return deprecation_ != null; - } - /** - *
-   * Optional deprecation based on GraphDef versions.
-   * 
- * - * .tensorflow.OpDeprecation deprecation = 8; - */ - public org.tensorflow.proto.framework.OpDeprecation getDeprecation() { - return deprecation_ == null ? org.tensorflow.proto.framework.OpDeprecation.getDefaultInstance() : deprecation_; - } - /** - *
-   * Optional deprecation based on GraphDef versions.
-   * 
- * - * .tensorflow.OpDeprecation deprecation = 8; - */ - public org.tensorflow.proto.framework.OpDeprecationOrBuilder getDeprecationOrBuilder() { - return getDeprecation(); - } - - public static final int SUMMARY_FIELD_NUMBER = 5; - private volatile java.lang.Object summary_; - /** - *
-   * One-line human-readable description of what the Op does.
-   * 
- * - * string summary = 5; - */ - public java.lang.String getSummary() { - java.lang.Object ref = summary_; - 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(); - summary_ = s; - return s; - } - } - /** - *
-   * One-line human-readable description of what the Op does.
-   * 
- * - * string summary = 5; - */ - public com.google.protobuf.ByteString - getSummaryBytes() { - java.lang.Object ref = summary_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - summary_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 6; - private volatile java.lang.Object description_; - /** - *
-   * Additional, longer human-readable description of what the Op does.
-   * 
- * - * string description = 6; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-   * Additional, longer human-readable description of what the Op does.
-   * 
- * - * string description = 6; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IS_COMMUTATIVE_FIELD_NUMBER = 18; - private boolean isCommutative_; - /** - *
-   * True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
-   * 
- * - * bool is_commutative = 18; - */ - public boolean getIsCommutative() { - return isCommutative_; - } - - public static final int IS_AGGREGATE_FIELD_NUMBER = 16; - private boolean isAggregate_; - /** - *
-   * If is_aggregate is true, then this operation accepts N >= 2
-   * inputs and produces 1 output all of the same type.  Should be
-   * associative and commutative, and produce output with the same
-   * shape as the input.  The optimizer may replace an aggregate op
-   * taking input from multiple devices with a tree of aggregate ops
-   * that aggregate locally within each device (and possibly within
-   * groups of nearby devices) before communicating.
-   * TODO(josh11b): Implement that optimization.
-   * 
- * - * bool is_aggregate = 16; - */ - public boolean getIsAggregate() { - return isAggregate_; - } - - public static final int IS_STATEFUL_FIELD_NUMBER = 17; - private boolean isStateful_; - /** - *
-   * Ops are marked as stateful if their behavior depends on some state beyond
-   * their input tensors (e.g. variable reading op) or if they have
-   * a side-effect (e.g. printing or asserting ops). Equivalently, stateless ops
-   * must always produce the same output for the same input and have
-   * no side-effects.
-   * By default Ops may be moved between devices.  Stateful ops should
-   * either not be moved, or should only be moved if that state can also
-   * be moved (e.g. via some sort of save / restore).
-   * Stateful ops are guaranteed to never be optimized away by Common
-   * Subexpression Elimination (CSE).
-   * 
- * - * bool is_stateful = 17; - */ - public boolean getIsStateful() { - return isStateful_; - } - - public static final int ALLOWS_UNINITIALIZED_INPUT_FIELD_NUMBER = 19; - private boolean allowsUninitializedInput_; - /** - *
-   * By default, all inputs to an Op must be initialized Tensors.  Ops
-   * that may initialize tensors for the first time should set this
-   * field to true, to allow the Op to take an uninitialized Tensor as
-   * input.
-   * 
- * - * bool allows_uninitialized_input = 19; - */ - public boolean getAllowsUninitializedInput() { - return allowsUninitializedInput_; - } - - public static final int IS_DISTRIBUTED_COMMUNICATION_FIELD_NUMBER = 21; - private boolean isDistributedCommunication_; - /** - *
-   * Indicates whether the op implementation uses distributed communication.
-   * If True, the op is allowed to return errors for network disconnection and
-   * trigger TF network failure handling logics.
-   * 
- * - * bool is_distributed_communication = 21; - */ - public boolean getIsDistributedCommunication() { - return isDistributedCommunication_; - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - for (int i = 0; i < inputArg_.size(); i++) { - output.writeMessage(2, inputArg_.get(i)); - } - for (int i = 0; i < outputArg_.size(); i++) { - output.writeMessage(3, outputArg_.get(i)); - } - for (int i = 0; i < attr_.size(); i++) { - output.writeMessage(4, attr_.get(i)); - } - if (!getSummaryBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, summary_); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); - } - if (deprecation_ != null) { - output.writeMessage(8, getDeprecation()); - } - if (isAggregate_ != false) { - output.writeBool(16, isAggregate_); - } - if (isStateful_ != false) { - output.writeBool(17, isStateful_); - } - if (isCommutative_ != false) { - output.writeBool(18, isCommutative_); - } - if (allowsUninitializedInput_ != false) { - output.writeBool(19, allowsUninitializedInput_); - } - for (int i = 0; i < controlOutput_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 20, controlOutput_.getRaw(i)); - } - if (isDistributedCommunication_ != false) { - output.writeBool(21, isDistributedCommunication_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - for (int i = 0; i < inputArg_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, inputArg_.get(i)); - } - for (int i = 0; i < outputArg_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, outputArg_.get(i)); - } - for (int i = 0; i < attr_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, attr_.get(i)); - } - if (!getSummaryBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, summary_); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); - } - if (deprecation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDeprecation()); - } - if (isAggregate_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(16, isAggregate_); - } - if (isStateful_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(17, isStateful_); - } - if (isCommutative_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(18, isCommutative_); - } - if (allowsUninitializedInput_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(19, allowsUninitializedInput_); - } - { - int dataSize = 0; - for (int i = 0; i < controlOutput_.size(); i++) { - dataSize += computeStringSizeNoTag(controlOutput_.getRaw(i)); - } - size += dataSize; - size += 2 * getControlOutputList().size(); - } - if (isDistributedCommunication_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(21, isDistributedCommunication_); - } - 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 org.tensorflow.proto.framework.OpDef)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.OpDef other = (org.tensorflow.proto.framework.OpDef) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getInputArgList() - .equals(other.getInputArgList())) return false; - if (!getOutputArgList() - .equals(other.getOutputArgList())) return false; - if (!getControlOutputList() - .equals(other.getControlOutputList())) return false; - if (!getAttrList() - .equals(other.getAttrList())) return false; - if (hasDeprecation() != other.hasDeprecation()) return false; - if (hasDeprecation()) { - if (!getDeprecation() - .equals(other.getDeprecation())) return false; - } - if (!getSummary() - .equals(other.getSummary())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (getIsCommutative() - != other.getIsCommutative()) return false; - if (getIsAggregate() - != other.getIsAggregate()) return false; - if (getIsStateful() - != other.getIsStateful()) return false; - if (getAllowsUninitializedInput() - != other.getAllowsUninitializedInput()) return false; - if (getIsDistributedCommunication() - != other.getIsDistributedCommunication()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (getInputArgCount() > 0) { - hash = (37 * hash) + INPUT_ARG_FIELD_NUMBER; - hash = (53 * hash) + getInputArgList().hashCode(); - } - if (getOutputArgCount() > 0) { - hash = (37 * hash) + OUTPUT_ARG_FIELD_NUMBER; - hash = (53 * hash) + getOutputArgList().hashCode(); - } - if (getControlOutputCount() > 0) { - hash = (37 * hash) + CONTROL_OUTPUT_FIELD_NUMBER; - hash = (53 * hash) + getControlOutputList().hashCode(); - } - if (getAttrCount() > 0) { - hash = (37 * hash) + ATTR_FIELD_NUMBER; - hash = (53 * hash) + getAttrList().hashCode(); - } - if (hasDeprecation()) { - hash = (37 * hash) + DEPRECATION_FIELD_NUMBER; - hash = (53 * hash) + getDeprecation().hashCode(); - } - hash = (37 * hash) + SUMMARY_FIELD_NUMBER; - hash = (53 * hash) + getSummary().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + IS_COMMUTATIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsCommutative()); - hash = (37 * hash) + IS_AGGREGATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsAggregate()); - hash = (37 * hash) + IS_STATEFUL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsStateful()); - hash = (37 * hash) + ALLOWS_UNINITIALIZED_INPUT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowsUninitializedInput()); - hash = (37 * hash) + IS_DISTRIBUTED_COMMUNICATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsDistributedCommunication()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.OpDef parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpDef parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpDef parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpDef parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpDef parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpDef parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpDef parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpDef 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 org.tensorflow.proto.framework.OpDef parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpDef 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 org.tensorflow.proto.framework.OpDef parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpDef 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(org.tensorflow.proto.framework.OpDef 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; - } - /** - *
-   * Defines an operation. A NodeDef in a GraphDef specifies an Op by
-   * using the "op" field which should match the name of a OpDef.
-   * LINT.IfChange
-   * 
- * - * Protobuf type {@code tensorflow.OpDef} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.OpDef) - org.tensorflow.proto.framework.OpDefOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpDef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.OpDef.class, org.tensorflow.proto.framework.OpDef.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.OpDef.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getInputArgFieldBuilder(); - getOutputArgFieldBuilder(); - getAttrFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (inputArgBuilder_ == null) { - inputArg_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - inputArgBuilder_.clear(); - } - if (outputArgBuilder_ == null) { - outputArg_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - outputArgBuilder_.clear(); - } - controlOutput_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (attrBuilder_ == null) { - attr_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - attrBuilder_.clear(); - } - if (deprecationBuilder_ == null) { - deprecation_ = null; - } else { - deprecation_ = null; - deprecationBuilder_ = null; - } - summary_ = ""; - - description_ = ""; - - isCommutative_ = false; - - isAggregate_ = false; - - isStateful_ = false; - - allowsUninitializedInput_ = false; - - isDistributedCommunication_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpDef_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpDef getDefaultInstanceForType() { - return org.tensorflow.proto.framework.OpDef.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpDef build() { - org.tensorflow.proto.framework.OpDef result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpDef buildPartial() { - org.tensorflow.proto.framework.OpDef result = new org.tensorflow.proto.framework.OpDef(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - if (inputArgBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - inputArg_ = java.util.Collections.unmodifiableList(inputArg_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.inputArg_ = inputArg_; - } else { - result.inputArg_ = inputArgBuilder_.build(); - } - if (outputArgBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - outputArg_ = java.util.Collections.unmodifiableList(outputArg_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.outputArg_ = outputArg_; - } else { - result.outputArg_ = outputArgBuilder_.build(); - } - if (((bitField0_ & 0x00000004) != 0)) { - controlOutput_ = controlOutput_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.controlOutput_ = controlOutput_; - if (attrBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - attr_ = java.util.Collections.unmodifiableList(attr_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.attr_ = attr_; - } else { - result.attr_ = attrBuilder_.build(); - } - if (deprecationBuilder_ == null) { - result.deprecation_ = deprecation_; - } else { - result.deprecation_ = deprecationBuilder_.build(); - } - result.summary_ = summary_; - result.description_ = description_; - result.isCommutative_ = isCommutative_; - result.isAggregate_ = isAggregate_; - result.isStateful_ = isStateful_; - result.allowsUninitializedInput_ = allowsUninitializedInput_; - result.isDistributedCommunication_ = isDistributedCommunication_; - 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 org.tensorflow.proto.framework.OpDef) { - return mergeFrom((org.tensorflow.proto.framework.OpDef)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.OpDef other) { - if (other == org.tensorflow.proto.framework.OpDef.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (inputArgBuilder_ == null) { - if (!other.inputArg_.isEmpty()) { - if (inputArg_.isEmpty()) { - inputArg_ = other.inputArg_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInputArgIsMutable(); - inputArg_.addAll(other.inputArg_); - } - onChanged(); - } - } else { - if (!other.inputArg_.isEmpty()) { - if (inputArgBuilder_.isEmpty()) { - inputArgBuilder_.dispose(); - inputArgBuilder_ = null; - inputArg_ = other.inputArg_; - bitField0_ = (bitField0_ & ~0x00000001); - inputArgBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInputArgFieldBuilder() : null; - } else { - inputArgBuilder_.addAllMessages(other.inputArg_); - } - } - } - if (outputArgBuilder_ == null) { - if (!other.outputArg_.isEmpty()) { - if (outputArg_.isEmpty()) { - outputArg_ = other.outputArg_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureOutputArgIsMutable(); - outputArg_.addAll(other.outputArg_); - } - onChanged(); - } - } else { - if (!other.outputArg_.isEmpty()) { - if (outputArgBuilder_.isEmpty()) { - outputArgBuilder_.dispose(); - outputArgBuilder_ = null; - outputArg_ = other.outputArg_; - bitField0_ = (bitField0_ & ~0x00000002); - outputArgBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOutputArgFieldBuilder() : null; - } else { - outputArgBuilder_.addAllMessages(other.outputArg_); - } - } - } - if (!other.controlOutput_.isEmpty()) { - if (controlOutput_.isEmpty()) { - controlOutput_ = other.controlOutput_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureControlOutputIsMutable(); - controlOutput_.addAll(other.controlOutput_); - } - onChanged(); - } - if (attrBuilder_ == null) { - if (!other.attr_.isEmpty()) { - if (attr_.isEmpty()) { - attr_ = other.attr_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureAttrIsMutable(); - attr_.addAll(other.attr_); - } - onChanged(); - } - } else { - if (!other.attr_.isEmpty()) { - if (attrBuilder_.isEmpty()) { - attrBuilder_.dispose(); - attrBuilder_ = null; - attr_ = other.attr_; - bitField0_ = (bitField0_ & ~0x00000008); - attrBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAttrFieldBuilder() : null; - } else { - attrBuilder_.addAllMessages(other.attr_); - } - } - } - if (other.hasDeprecation()) { - mergeDeprecation(other.getDeprecation()); - } - if (!other.getSummary().isEmpty()) { - summary_ = other.summary_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (other.getIsCommutative() != false) { - setIsCommutative(other.getIsCommutative()); - } - if (other.getIsAggregate() != false) { - setIsAggregate(other.getIsAggregate()); - } - if (other.getIsStateful() != false) { - setIsStateful(other.getIsStateful()); - } - if (other.getAllowsUninitializedInput() != false) { - setAllowsUninitializedInput(other.getAllowsUninitializedInput()); - } - if (other.getIsDistributedCommunication() != false) { - setIsDistributedCommunication(other.getIsDistributedCommunication()); - } - 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 { - org.tensorflow.proto.framework.OpDef parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.OpDef) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Op names starting with an underscore are reserved for internal use.
-     * Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
-     * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Op names starting with an underscore are reserved for internal use.
-     * Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
-     * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Op names starting with an underscore are reserved for internal use.
-     * Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
-     * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * Op names starting with an underscore are reserved for internal use.
-     * Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
-     * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * Op names starting with an underscore are reserved for internal use.
-     * Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
-     * 
- * - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.util.List inputArg_ = - java.util.Collections.emptyList(); - private void ensureInputArgIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - inputArg_ = new java.util.ArrayList(inputArg_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.OpDef.ArgDef, org.tensorflow.proto.framework.OpDef.ArgDef.Builder, org.tensorflow.proto.framework.OpDef.ArgDefOrBuilder> inputArgBuilder_; - - /** - *
-     * Description of the input(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public java.util.List getInputArgList() { - if (inputArgBuilder_ == null) { - return java.util.Collections.unmodifiableList(inputArg_); - } else { - return inputArgBuilder_.getMessageList(); - } - } - /** - *
-     * Description of the input(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public int getInputArgCount() { - if (inputArgBuilder_ == null) { - return inputArg_.size(); - } else { - return inputArgBuilder_.getCount(); - } - } - /** - *
-     * Description of the input(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public org.tensorflow.proto.framework.OpDef.ArgDef getInputArg(int index) { - if (inputArgBuilder_ == null) { - return inputArg_.get(index); - } else { - return inputArgBuilder_.getMessage(index); - } - } - /** - *
-     * Description of the input(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public Builder setInputArg( - int index, org.tensorflow.proto.framework.OpDef.ArgDef value) { - if (inputArgBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputArgIsMutable(); - inputArg_.set(index, value); - onChanged(); - } else { - inputArgBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Description of the input(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public Builder setInputArg( - int index, org.tensorflow.proto.framework.OpDef.ArgDef.Builder builderForValue) { - if (inputArgBuilder_ == null) { - ensureInputArgIsMutable(); - inputArg_.set(index, builderForValue.build()); - onChanged(); - } else { - inputArgBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Description of the input(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public Builder addInputArg(org.tensorflow.proto.framework.OpDef.ArgDef value) { - if (inputArgBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputArgIsMutable(); - inputArg_.add(value); - onChanged(); - } else { - inputArgBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Description of the input(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public Builder addInputArg( - int index, org.tensorflow.proto.framework.OpDef.ArgDef value) { - if (inputArgBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputArgIsMutable(); - inputArg_.add(index, value); - onChanged(); - } else { - inputArgBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Description of the input(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public Builder addInputArg( - org.tensorflow.proto.framework.OpDef.ArgDef.Builder builderForValue) { - if (inputArgBuilder_ == null) { - ensureInputArgIsMutable(); - inputArg_.add(builderForValue.build()); - onChanged(); - } else { - inputArgBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Description of the input(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public Builder addInputArg( - int index, org.tensorflow.proto.framework.OpDef.ArgDef.Builder builderForValue) { - if (inputArgBuilder_ == null) { - ensureInputArgIsMutable(); - inputArg_.add(index, builderForValue.build()); - onChanged(); - } else { - inputArgBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Description of the input(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public Builder addAllInputArg( - java.lang.Iterable values) { - if (inputArgBuilder_ == null) { - ensureInputArgIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inputArg_); - onChanged(); - } else { - inputArgBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Description of the input(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public Builder clearInputArg() { - if (inputArgBuilder_ == null) { - inputArg_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - inputArgBuilder_.clear(); - } - return this; - } - /** - *
-     * Description of the input(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public Builder removeInputArg(int index) { - if (inputArgBuilder_ == null) { - ensureInputArgIsMutable(); - inputArg_.remove(index); - onChanged(); - } else { - inputArgBuilder_.remove(index); - } - return this; - } - /** - *
-     * Description of the input(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public org.tensorflow.proto.framework.OpDef.ArgDef.Builder getInputArgBuilder( - int index) { - return getInputArgFieldBuilder().getBuilder(index); - } - /** - *
-     * Description of the input(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public org.tensorflow.proto.framework.OpDef.ArgDefOrBuilder getInputArgOrBuilder( - int index) { - if (inputArgBuilder_ == null) { - return inputArg_.get(index); } else { - return inputArgBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Description of the input(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public java.util.List - getInputArgOrBuilderList() { - if (inputArgBuilder_ != null) { - return inputArgBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(inputArg_); - } - } - /** - *
-     * Description of the input(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public org.tensorflow.proto.framework.OpDef.ArgDef.Builder addInputArgBuilder() { - return getInputArgFieldBuilder().addBuilder( - org.tensorflow.proto.framework.OpDef.ArgDef.getDefaultInstance()); - } - /** - *
-     * Description of the input(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public org.tensorflow.proto.framework.OpDef.ArgDef.Builder addInputArgBuilder( - int index) { - return getInputArgFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.OpDef.ArgDef.getDefaultInstance()); - } - /** - *
-     * Description of the input(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - public java.util.List - getInputArgBuilderList() { - return getInputArgFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.OpDef.ArgDef, org.tensorflow.proto.framework.OpDef.ArgDef.Builder, org.tensorflow.proto.framework.OpDef.ArgDefOrBuilder> - getInputArgFieldBuilder() { - if (inputArgBuilder_ == null) { - inputArgBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.OpDef.ArgDef, org.tensorflow.proto.framework.OpDef.ArgDef.Builder, org.tensorflow.proto.framework.OpDef.ArgDefOrBuilder>( - inputArg_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - inputArg_ = null; - } - return inputArgBuilder_; - } - - private java.util.List outputArg_ = - java.util.Collections.emptyList(); - private void ensureOutputArgIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - outputArg_ = new java.util.ArrayList(outputArg_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.OpDef.ArgDef, org.tensorflow.proto.framework.OpDef.ArgDef.Builder, org.tensorflow.proto.framework.OpDef.ArgDefOrBuilder> outputArgBuilder_; - - /** - *
-     * Description of the output(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public java.util.List getOutputArgList() { - if (outputArgBuilder_ == null) { - return java.util.Collections.unmodifiableList(outputArg_); - } else { - return outputArgBuilder_.getMessageList(); - } - } - /** - *
-     * Description of the output(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public int getOutputArgCount() { - if (outputArgBuilder_ == null) { - return outputArg_.size(); - } else { - return outputArgBuilder_.getCount(); - } - } - /** - *
-     * Description of the output(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public org.tensorflow.proto.framework.OpDef.ArgDef getOutputArg(int index) { - if (outputArgBuilder_ == null) { - return outputArg_.get(index); - } else { - return outputArgBuilder_.getMessage(index); - } - } - /** - *
-     * Description of the output(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public Builder setOutputArg( - int index, org.tensorflow.proto.framework.OpDef.ArgDef value) { - if (outputArgBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputArgIsMutable(); - outputArg_.set(index, value); - onChanged(); - } else { - outputArgBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Description of the output(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public Builder setOutputArg( - int index, org.tensorflow.proto.framework.OpDef.ArgDef.Builder builderForValue) { - if (outputArgBuilder_ == null) { - ensureOutputArgIsMutable(); - outputArg_.set(index, builderForValue.build()); - onChanged(); - } else { - outputArgBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Description of the output(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public Builder addOutputArg(org.tensorflow.proto.framework.OpDef.ArgDef value) { - if (outputArgBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputArgIsMutable(); - outputArg_.add(value); - onChanged(); - } else { - outputArgBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Description of the output(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public Builder addOutputArg( - int index, org.tensorflow.proto.framework.OpDef.ArgDef value) { - if (outputArgBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputArgIsMutable(); - outputArg_.add(index, value); - onChanged(); - } else { - outputArgBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Description of the output(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public Builder addOutputArg( - org.tensorflow.proto.framework.OpDef.ArgDef.Builder builderForValue) { - if (outputArgBuilder_ == null) { - ensureOutputArgIsMutable(); - outputArg_.add(builderForValue.build()); - onChanged(); - } else { - outputArgBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Description of the output(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public Builder addOutputArg( - int index, org.tensorflow.proto.framework.OpDef.ArgDef.Builder builderForValue) { - if (outputArgBuilder_ == null) { - ensureOutputArgIsMutable(); - outputArg_.add(index, builderForValue.build()); - onChanged(); - } else { - outputArgBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Description of the output(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public Builder addAllOutputArg( - java.lang.Iterable values) { - if (outputArgBuilder_ == null) { - ensureOutputArgIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, outputArg_); - onChanged(); - } else { - outputArgBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Description of the output(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public Builder clearOutputArg() { - if (outputArgBuilder_ == null) { - outputArg_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - outputArgBuilder_.clear(); - } - return this; - } - /** - *
-     * Description of the output(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public Builder removeOutputArg(int index) { - if (outputArgBuilder_ == null) { - ensureOutputArgIsMutable(); - outputArg_.remove(index); - onChanged(); - } else { - outputArgBuilder_.remove(index); - } - return this; - } - /** - *
-     * Description of the output(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public org.tensorflow.proto.framework.OpDef.ArgDef.Builder getOutputArgBuilder( - int index) { - return getOutputArgFieldBuilder().getBuilder(index); - } - /** - *
-     * Description of the output(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public org.tensorflow.proto.framework.OpDef.ArgDefOrBuilder getOutputArgOrBuilder( - int index) { - if (outputArgBuilder_ == null) { - return outputArg_.get(index); } else { - return outputArgBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Description of the output(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public java.util.List - getOutputArgOrBuilderList() { - if (outputArgBuilder_ != null) { - return outputArgBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(outputArg_); - } - } - /** - *
-     * Description of the output(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public org.tensorflow.proto.framework.OpDef.ArgDef.Builder addOutputArgBuilder() { - return getOutputArgFieldBuilder().addBuilder( - org.tensorflow.proto.framework.OpDef.ArgDef.getDefaultInstance()); - } - /** - *
-     * Description of the output(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public org.tensorflow.proto.framework.OpDef.ArgDef.Builder addOutputArgBuilder( - int index) { - return getOutputArgFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.OpDef.ArgDef.getDefaultInstance()); - } - /** - *
-     * Description of the output(s).
-     * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - public java.util.List - getOutputArgBuilderList() { - return getOutputArgFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.OpDef.ArgDef, org.tensorflow.proto.framework.OpDef.ArgDef.Builder, org.tensorflow.proto.framework.OpDef.ArgDefOrBuilder> - getOutputArgFieldBuilder() { - if (outputArgBuilder_ == null) { - outputArgBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.OpDef.ArgDef, org.tensorflow.proto.framework.OpDef.ArgDef.Builder, org.tensorflow.proto.framework.OpDef.ArgDefOrBuilder>( - outputArg_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - outputArg_ = null; - } - return outputArgBuilder_; - } - - private com.google.protobuf.LazyStringList controlOutput_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureControlOutputIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - controlOutput_ = new com.google.protobuf.LazyStringArrayList(controlOutput_); - bitField0_ |= 0x00000004; - } - } - /** - *
-     * Named control outputs for this operation. Useful only for composite
-     * operations (i.e. functions) which want to name different control outputs.
-     * 
- * - * repeated string control_output = 20; - */ - public com.google.protobuf.ProtocolStringList - getControlOutputList() { - return controlOutput_.getUnmodifiableView(); - } - /** - *
-     * Named control outputs for this operation. Useful only for composite
-     * operations (i.e. functions) which want to name different control outputs.
-     * 
- * - * repeated string control_output = 20; - */ - public int getControlOutputCount() { - return controlOutput_.size(); - } - /** - *
-     * Named control outputs for this operation. Useful only for composite
-     * operations (i.e. functions) which want to name different control outputs.
-     * 
- * - * repeated string control_output = 20; - */ - public java.lang.String getControlOutput(int index) { - return controlOutput_.get(index); - } - /** - *
-     * Named control outputs for this operation. Useful only for composite
-     * operations (i.e. functions) which want to name different control outputs.
-     * 
- * - * repeated string control_output = 20; - */ - public com.google.protobuf.ByteString - getControlOutputBytes(int index) { - return controlOutput_.getByteString(index); - } - /** - *
-     * Named control outputs for this operation. Useful only for composite
-     * operations (i.e. functions) which want to name different control outputs.
-     * 
- * - * repeated string control_output = 20; - */ - public Builder setControlOutput( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureControlOutputIsMutable(); - controlOutput_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Named control outputs for this operation. Useful only for composite
-     * operations (i.e. functions) which want to name different control outputs.
-     * 
- * - * repeated string control_output = 20; - */ - public Builder addControlOutput( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureControlOutputIsMutable(); - controlOutput_.add(value); - onChanged(); - return this; - } - /** - *
-     * Named control outputs for this operation. Useful only for composite
-     * operations (i.e. functions) which want to name different control outputs.
-     * 
- * - * repeated string control_output = 20; - */ - public Builder addAllControlOutput( - java.lang.Iterable values) { - ensureControlOutputIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, controlOutput_); - onChanged(); - return this; - } - /** - *
-     * Named control outputs for this operation. Useful only for composite
-     * operations (i.e. functions) which want to name different control outputs.
-     * 
- * - * repeated string control_output = 20; - */ - public Builder clearControlOutput() { - controlOutput_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * Named control outputs for this operation. Useful only for composite
-     * operations (i.e. functions) which want to name different control outputs.
-     * 
- * - * repeated string control_output = 20; - */ - public Builder addControlOutputBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureControlOutputIsMutable(); - controlOutput_.add(value); - onChanged(); - return this; - } - - private java.util.List attr_ = - java.util.Collections.emptyList(); - private void ensureAttrIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - attr_ = new java.util.ArrayList(attr_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.OpDef.AttrDef, org.tensorflow.proto.framework.OpDef.AttrDef.Builder, org.tensorflow.proto.framework.OpDef.AttrDefOrBuilder> attrBuilder_; - - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public java.util.List getAttrList() { - if (attrBuilder_ == null) { - return java.util.Collections.unmodifiableList(attr_); - } else { - return attrBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public int getAttrCount() { - if (attrBuilder_ == null) { - return attr_.size(); - } else { - return attrBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public org.tensorflow.proto.framework.OpDef.AttrDef getAttr(int index) { - if (attrBuilder_ == null) { - return attr_.get(index); - } else { - return attrBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public Builder setAttr( - int index, org.tensorflow.proto.framework.OpDef.AttrDef value) { - if (attrBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAttrIsMutable(); - attr_.set(index, value); - onChanged(); - } else { - attrBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public Builder setAttr( - int index, org.tensorflow.proto.framework.OpDef.AttrDef.Builder builderForValue) { - if (attrBuilder_ == null) { - ensureAttrIsMutable(); - attr_.set(index, builderForValue.build()); - onChanged(); - } else { - attrBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public Builder addAttr(org.tensorflow.proto.framework.OpDef.AttrDef value) { - if (attrBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAttrIsMutable(); - attr_.add(value); - onChanged(); - } else { - attrBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public Builder addAttr( - int index, org.tensorflow.proto.framework.OpDef.AttrDef value) { - if (attrBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAttrIsMutable(); - attr_.add(index, value); - onChanged(); - } else { - attrBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public Builder addAttr( - org.tensorflow.proto.framework.OpDef.AttrDef.Builder builderForValue) { - if (attrBuilder_ == null) { - ensureAttrIsMutable(); - attr_.add(builderForValue.build()); - onChanged(); - } else { - attrBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public Builder addAttr( - int index, org.tensorflow.proto.framework.OpDef.AttrDef.Builder builderForValue) { - if (attrBuilder_ == null) { - ensureAttrIsMutable(); - attr_.add(index, builderForValue.build()); - onChanged(); - } else { - attrBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public Builder addAllAttr( - java.lang.Iterable values) { - if (attrBuilder_ == null) { - ensureAttrIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, attr_); - onChanged(); - } else { - attrBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public Builder clearAttr() { - if (attrBuilder_ == null) { - attr_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - attrBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public Builder removeAttr(int index) { - if (attrBuilder_ == null) { - ensureAttrIsMutable(); - attr_.remove(index); - onChanged(); - } else { - attrBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public org.tensorflow.proto.framework.OpDef.AttrDef.Builder getAttrBuilder( - int index) { - return getAttrFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public org.tensorflow.proto.framework.OpDef.AttrDefOrBuilder getAttrOrBuilder( - int index) { - if (attrBuilder_ == null) { - return attr_.get(index); } else { - return attrBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public java.util.List - getAttrOrBuilderList() { - if (attrBuilder_ != null) { - return attrBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(attr_); - } - } - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public org.tensorflow.proto.framework.OpDef.AttrDef.Builder addAttrBuilder() { - return getAttrFieldBuilder().addBuilder( - org.tensorflow.proto.framework.OpDef.AttrDef.getDefaultInstance()); - } - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public org.tensorflow.proto.framework.OpDef.AttrDef.Builder addAttrBuilder( - int index) { - return getAttrFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.OpDef.AttrDef.getDefaultInstance()); - } - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - public java.util.List - getAttrBuilderList() { - return getAttrFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.OpDef.AttrDef, org.tensorflow.proto.framework.OpDef.AttrDef.Builder, org.tensorflow.proto.framework.OpDef.AttrDefOrBuilder> - getAttrFieldBuilder() { - if (attrBuilder_ == null) { - attrBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.OpDef.AttrDef, org.tensorflow.proto.framework.OpDef.AttrDef.Builder, org.tensorflow.proto.framework.OpDef.AttrDefOrBuilder>( - attr_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - attr_ = null; - } - return attrBuilder_; - } - - private org.tensorflow.proto.framework.OpDeprecation deprecation_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.OpDeprecation, org.tensorflow.proto.framework.OpDeprecation.Builder, org.tensorflow.proto.framework.OpDeprecationOrBuilder> deprecationBuilder_; - /** - *
-     * Optional deprecation based on GraphDef versions.
-     * 
- * - * .tensorflow.OpDeprecation deprecation = 8; - */ - public boolean hasDeprecation() { - return deprecationBuilder_ != null || deprecation_ != null; - } - /** - *
-     * Optional deprecation based on GraphDef versions.
-     * 
- * - * .tensorflow.OpDeprecation deprecation = 8; - */ - public org.tensorflow.proto.framework.OpDeprecation getDeprecation() { - if (deprecationBuilder_ == null) { - return deprecation_ == null ? org.tensorflow.proto.framework.OpDeprecation.getDefaultInstance() : deprecation_; - } else { - return deprecationBuilder_.getMessage(); - } - } - /** - *
-     * Optional deprecation based on GraphDef versions.
-     * 
- * - * .tensorflow.OpDeprecation deprecation = 8; - */ - public Builder setDeprecation(org.tensorflow.proto.framework.OpDeprecation value) { - if (deprecationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deprecation_ = value; - onChanged(); - } else { - deprecationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Optional deprecation based on GraphDef versions.
-     * 
- * - * .tensorflow.OpDeprecation deprecation = 8; - */ - public Builder setDeprecation( - org.tensorflow.proto.framework.OpDeprecation.Builder builderForValue) { - if (deprecationBuilder_ == null) { - deprecation_ = builderForValue.build(); - onChanged(); - } else { - deprecationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Optional deprecation based on GraphDef versions.
-     * 
- * - * .tensorflow.OpDeprecation deprecation = 8; - */ - public Builder mergeDeprecation(org.tensorflow.proto.framework.OpDeprecation value) { - if (deprecationBuilder_ == null) { - if (deprecation_ != null) { - deprecation_ = - org.tensorflow.proto.framework.OpDeprecation.newBuilder(deprecation_).mergeFrom(value).buildPartial(); - } else { - deprecation_ = value; - } - onChanged(); - } else { - deprecationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Optional deprecation based on GraphDef versions.
-     * 
- * - * .tensorflow.OpDeprecation deprecation = 8; - */ - public Builder clearDeprecation() { - if (deprecationBuilder_ == null) { - deprecation_ = null; - onChanged(); - } else { - deprecation_ = null; - deprecationBuilder_ = null; - } - - return this; - } - /** - *
-     * Optional deprecation based on GraphDef versions.
-     * 
- * - * .tensorflow.OpDeprecation deprecation = 8; - */ - public org.tensorflow.proto.framework.OpDeprecation.Builder getDeprecationBuilder() { - - onChanged(); - return getDeprecationFieldBuilder().getBuilder(); - } - /** - *
-     * Optional deprecation based on GraphDef versions.
-     * 
- * - * .tensorflow.OpDeprecation deprecation = 8; - */ - public org.tensorflow.proto.framework.OpDeprecationOrBuilder getDeprecationOrBuilder() { - if (deprecationBuilder_ != null) { - return deprecationBuilder_.getMessageOrBuilder(); - } else { - return deprecation_ == null ? - org.tensorflow.proto.framework.OpDeprecation.getDefaultInstance() : deprecation_; - } - } - /** - *
-     * Optional deprecation based on GraphDef versions.
-     * 
- * - * .tensorflow.OpDeprecation deprecation = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.OpDeprecation, org.tensorflow.proto.framework.OpDeprecation.Builder, org.tensorflow.proto.framework.OpDeprecationOrBuilder> - getDeprecationFieldBuilder() { - if (deprecationBuilder_ == null) { - deprecationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.OpDeprecation, org.tensorflow.proto.framework.OpDeprecation.Builder, org.tensorflow.proto.framework.OpDeprecationOrBuilder>( - getDeprecation(), - getParentForChildren(), - isClean()); - deprecation_ = null; - } - return deprecationBuilder_; - } - - private java.lang.Object summary_ = ""; - /** - *
-     * One-line human-readable description of what the Op does.
-     * 
- * - * string summary = 5; - */ - public java.lang.String getSummary() { - java.lang.Object ref = summary_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - summary_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * One-line human-readable description of what the Op does.
-     * 
- * - * string summary = 5; - */ - public com.google.protobuf.ByteString - getSummaryBytes() { - java.lang.Object ref = summary_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - summary_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * One-line human-readable description of what the Op does.
-     * 
- * - * string summary = 5; - */ - public Builder setSummary( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - summary_ = value; - onChanged(); - return this; - } - /** - *
-     * One-line human-readable description of what the Op does.
-     * 
- * - * string summary = 5; - */ - public Builder clearSummary() { - - summary_ = getDefaultInstance().getSummary(); - onChanged(); - return this; - } - /** - *
-     * One-line human-readable description of what the Op does.
-     * 
- * - * string summary = 5; - */ - public Builder setSummaryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - summary_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-     * Additional, longer human-readable description of what the Op does.
-     * 
- * - * string description = 6; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Additional, longer human-readable description of what the Op does.
-     * 
- * - * string description = 6; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Additional, longer human-readable description of what the Op does.
-     * 
- * - * string description = 6; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
-     * Additional, longer human-readable description of what the Op does.
-     * 
- * - * string description = 6; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-     * Additional, longer human-readable description of what the Op does.
-     * 
- * - * string description = 6; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private boolean isCommutative_ ; - /** - *
-     * True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
-     * 
- * - * bool is_commutative = 18; - */ - public boolean getIsCommutative() { - return isCommutative_; - } - /** - *
-     * True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
-     * 
- * - * bool is_commutative = 18; - */ - public Builder setIsCommutative(boolean value) { - - isCommutative_ = value; - onChanged(); - return this; - } - /** - *
-     * True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
-     * 
- * - * bool is_commutative = 18; - */ - public Builder clearIsCommutative() { - - isCommutative_ = false; - onChanged(); - return this; - } - - private boolean isAggregate_ ; - /** - *
-     * If is_aggregate is true, then this operation accepts N >= 2
-     * inputs and produces 1 output all of the same type.  Should be
-     * associative and commutative, and produce output with the same
-     * shape as the input.  The optimizer may replace an aggregate op
-     * taking input from multiple devices with a tree of aggregate ops
-     * that aggregate locally within each device (and possibly within
-     * groups of nearby devices) before communicating.
-     * TODO(josh11b): Implement that optimization.
-     * 
- * - * bool is_aggregate = 16; - */ - public boolean getIsAggregate() { - return isAggregate_; - } - /** - *
-     * If is_aggregate is true, then this operation accepts N >= 2
-     * inputs and produces 1 output all of the same type.  Should be
-     * associative and commutative, and produce output with the same
-     * shape as the input.  The optimizer may replace an aggregate op
-     * taking input from multiple devices with a tree of aggregate ops
-     * that aggregate locally within each device (and possibly within
-     * groups of nearby devices) before communicating.
-     * TODO(josh11b): Implement that optimization.
-     * 
- * - * bool is_aggregate = 16; - */ - public Builder setIsAggregate(boolean value) { - - isAggregate_ = value; - onChanged(); - return this; - } - /** - *
-     * If is_aggregate is true, then this operation accepts N >= 2
-     * inputs and produces 1 output all of the same type.  Should be
-     * associative and commutative, and produce output with the same
-     * shape as the input.  The optimizer may replace an aggregate op
-     * taking input from multiple devices with a tree of aggregate ops
-     * that aggregate locally within each device (and possibly within
-     * groups of nearby devices) before communicating.
-     * TODO(josh11b): Implement that optimization.
-     * 
- * - * bool is_aggregate = 16; - */ - public Builder clearIsAggregate() { - - isAggregate_ = false; - onChanged(); - return this; - } - - private boolean isStateful_ ; - /** - *
-     * Ops are marked as stateful if their behavior depends on some state beyond
-     * their input tensors (e.g. variable reading op) or if they have
-     * a side-effect (e.g. printing or asserting ops). Equivalently, stateless ops
-     * must always produce the same output for the same input and have
-     * no side-effects.
-     * By default Ops may be moved between devices.  Stateful ops should
-     * either not be moved, or should only be moved if that state can also
-     * be moved (e.g. via some sort of save / restore).
-     * Stateful ops are guaranteed to never be optimized away by Common
-     * Subexpression Elimination (CSE).
-     * 
- * - * bool is_stateful = 17; - */ - public boolean getIsStateful() { - return isStateful_; - } - /** - *
-     * Ops are marked as stateful if their behavior depends on some state beyond
-     * their input tensors (e.g. variable reading op) or if they have
-     * a side-effect (e.g. printing or asserting ops). Equivalently, stateless ops
-     * must always produce the same output for the same input and have
-     * no side-effects.
-     * By default Ops may be moved between devices.  Stateful ops should
-     * either not be moved, or should only be moved if that state can also
-     * be moved (e.g. via some sort of save / restore).
-     * Stateful ops are guaranteed to never be optimized away by Common
-     * Subexpression Elimination (CSE).
-     * 
- * - * bool is_stateful = 17; - */ - public Builder setIsStateful(boolean value) { - - isStateful_ = value; - onChanged(); - return this; - } - /** - *
-     * Ops are marked as stateful if their behavior depends on some state beyond
-     * their input tensors (e.g. variable reading op) or if they have
-     * a side-effect (e.g. printing or asserting ops). Equivalently, stateless ops
-     * must always produce the same output for the same input and have
-     * no side-effects.
-     * By default Ops may be moved between devices.  Stateful ops should
-     * either not be moved, or should only be moved if that state can also
-     * be moved (e.g. via some sort of save / restore).
-     * Stateful ops are guaranteed to never be optimized away by Common
-     * Subexpression Elimination (CSE).
-     * 
- * - * bool is_stateful = 17; - */ - public Builder clearIsStateful() { - - isStateful_ = false; - onChanged(); - return this; - } - - private boolean allowsUninitializedInput_ ; - /** - *
-     * By default, all inputs to an Op must be initialized Tensors.  Ops
-     * that may initialize tensors for the first time should set this
-     * field to true, to allow the Op to take an uninitialized Tensor as
-     * input.
-     * 
- * - * bool allows_uninitialized_input = 19; - */ - public boolean getAllowsUninitializedInput() { - return allowsUninitializedInput_; - } - /** - *
-     * By default, all inputs to an Op must be initialized Tensors.  Ops
-     * that may initialize tensors for the first time should set this
-     * field to true, to allow the Op to take an uninitialized Tensor as
-     * input.
-     * 
- * - * bool allows_uninitialized_input = 19; - */ - public Builder setAllowsUninitializedInput(boolean value) { - - allowsUninitializedInput_ = value; - onChanged(); - return this; - } - /** - *
-     * By default, all inputs to an Op must be initialized Tensors.  Ops
-     * that may initialize tensors for the first time should set this
-     * field to true, to allow the Op to take an uninitialized Tensor as
-     * input.
-     * 
- * - * bool allows_uninitialized_input = 19; - */ - public Builder clearAllowsUninitializedInput() { - - allowsUninitializedInput_ = false; - onChanged(); - return this; - } - - private boolean isDistributedCommunication_ ; - /** - *
-     * Indicates whether the op implementation uses distributed communication.
-     * If True, the op is allowed to return errors for network disconnection and
-     * trigger TF network failure handling logics.
-     * 
- * - * bool is_distributed_communication = 21; - */ - public boolean getIsDistributedCommunication() { - return isDistributedCommunication_; - } - /** - *
-     * Indicates whether the op implementation uses distributed communication.
-     * If True, the op is allowed to return errors for network disconnection and
-     * trigger TF network failure handling logics.
-     * 
- * - * bool is_distributed_communication = 21; - */ - public Builder setIsDistributedCommunication(boolean value) { - - isDistributedCommunication_ = value; - onChanged(); - return this; - } - /** - *
-     * Indicates whether the op implementation uses distributed communication.
-     * If True, the op is allowed to return errors for network disconnection and
-     * trigger TF network failure handling logics.
-     * 
- * - * bool is_distributed_communication = 21; - */ - public Builder clearIsDistributedCommunication() { - - isDistributedCommunication_ = false; - 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:tensorflow.OpDef) - } - - // @@protoc_insertion_point(class_scope:tensorflow.OpDef) - private static final org.tensorflow.proto.framework.OpDef DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.OpDef(); - } - - public static org.tensorflow.proto.framework.OpDef getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OpDef parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OpDef(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpDef getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpDefOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpDefOrBuilder.java deleted file mode 100644 index 1e986459b37..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpDefOrBuilder.java +++ /dev/null @@ -1,307 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/op_def.proto - -package org.tensorflow.proto.framework; - -public interface OpDefOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.OpDef) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Op names starting with an underscore are reserved for internal use.
-   * Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
-   * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-   * Op names starting with an underscore are reserved for internal use.
-   * Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
-   * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Description of the input(s).
-   * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - java.util.List - getInputArgList(); - /** - *
-   * Description of the input(s).
-   * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - org.tensorflow.proto.framework.OpDef.ArgDef getInputArg(int index); - /** - *
-   * Description of the input(s).
-   * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - int getInputArgCount(); - /** - *
-   * Description of the input(s).
-   * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - java.util.List - getInputArgOrBuilderList(); - /** - *
-   * Description of the input(s).
-   * 
- * - * repeated .tensorflow.OpDef.ArgDef input_arg = 2; - */ - org.tensorflow.proto.framework.OpDef.ArgDefOrBuilder getInputArgOrBuilder( - int index); - - /** - *
-   * Description of the output(s).
-   * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - java.util.List - getOutputArgList(); - /** - *
-   * Description of the output(s).
-   * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - org.tensorflow.proto.framework.OpDef.ArgDef getOutputArg(int index); - /** - *
-   * Description of the output(s).
-   * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - int getOutputArgCount(); - /** - *
-   * Description of the output(s).
-   * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - java.util.List - getOutputArgOrBuilderList(); - /** - *
-   * Description of the output(s).
-   * 
- * - * repeated .tensorflow.OpDef.ArgDef output_arg = 3; - */ - org.tensorflow.proto.framework.OpDef.ArgDefOrBuilder getOutputArgOrBuilder( - int index); - - /** - *
-   * Named control outputs for this operation. Useful only for composite
-   * operations (i.e. functions) which want to name different control outputs.
-   * 
- * - * repeated string control_output = 20; - */ - java.util.List - getControlOutputList(); - /** - *
-   * Named control outputs for this operation. Useful only for composite
-   * operations (i.e. functions) which want to name different control outputs.
-   * 
- * - * repeated string control_output = 20; - */ - int getControlOutputCount(); - /** - *
-   * Named control outputs for this operation. Useful only for composite
-   * operations (i.e. functions) which want to name different control outputs.
-   * 
- * - * repeated string control_output = 20; - */ - java.lang.String getControlOutput(int index); - /** - *
-   * Named control outputs for this operation. Useful only for composite
-   * operations (i.e. functions) which want to name different control outputs.
-   * 
- * - * repeated string control_output = 20; - */ - com.google.protobuf.ByteString - getControlOutputBytes(int index); - - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - java.util.List - getAttrList(); - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - org.tensorflow.proto.framework.OpDef.AttrDef getAttr(int index); - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - int getAttrCount(); - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - java.util.List - getAttrOrBuilderList(); - /** - * repeated .tensorflow.OpDef.AttrDef attr = 4; - */ - org.tensorflow.proto.framework.OpDef.AttrDefOrBuilder getAttrOrBuilder( - int index); - - /** - *
-   * Optional deprecation based on GraphDef versions.
-   * 
- * - * .tensorflow.OpDeprecation deprecation = 8; - */ - boolean hasDeprecation(); - /** - *
-   * Optional deprecation based on GraphDef versions.
-   * 
- * - * .tensorflow.OpDeprecation deprecation = 8; - */ - org.tensorflow.proto.framework.OpDeprecation getDeprecation(); - /** - *
-   * Optional deprecation based on GraphDef versions.
-   * 
- * - * .tensorflow.OpDeprecation deprecation = 8; - */ - org.tensorflow.proto.framework.OpDeprecationOrBuilder getDeprecationOrBuilder(); - - /** - *
-   * One-line human-readable description of what the Op does.
-   * 
- * - * string summary = 5; - */ - java.lang.String getSummary(); - /** - *
-   * One-line human-readable description of what the Op does.
-   * 
- * - * string summary = 5; - */ - com.google.protobuf.ByteString - getSummaryBytes(); - - /** - *
-   * Additional, longer human-readable description of what the Op does.
-   * 
- * - * string description = 6; - */ - java.lang.String getDescription(); - /** - *
-   * Additional, longer human-readable description of what the Op does.
-   * 
- * - * string description = 6; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-   * True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
-   * 
- * - * bool is_commutative = 18; - */ - boolean getIsCommutative(); - - /** - *
-   * If is_aggregate is true, then this operation accepts N >= 2
-   * inputs and produces 1 output all of the same type.  Should be
-   * associative and commutative, and produce output with the same
-   * shape as the input.  The optimizer may replace an aggregate op
-   * taking input from multiple devices with a tree of aggregate ops
-   * that aggregate locally within each device (and possibly within
-   * groups of nearby devices) before communicating.
-   * TODO(josh11b): Implement that optimization.
-   * 
- * - * bool is_aggregate = 16; - */ - boolean getIsAggregate(); - - /** - *
-   * Ops are marked as stateful if their behavior depends on some state beyond
-   * their input tensors (e.g. variable reading op) or if they have
-   * a side-effect (e.g. printing or asserting ops). Equivalently, stateless ops
-   * must always produce the same output for the same input and have
-   * no side-effects.
-   * By default Ops may be moved between devices.  Stateful ops should
-   * either not be moved, or should only be moved if that state can also
-   * be moved (e.g. via some sort of save / restore).
-   * Stateful ops are guaranteed to never be optimized away by Common
-   * Subexpression Elimination (CSE).
-   * 
- * - * bool is_stateful = 17; - */ - boolean getIsStateful(); - - /** - *
-   * By default, all inputs to an Op must be initialized Tensors.  Ops
-   * that may initialize tensors for the first time should set this
-   * field to true, to allow the Op to take an uninitialized Tensor as
-   * input.
-   * 
- * - * bool allows_uninitialized_input = 19; - */ - boolean getAllowsUninitializedInput(); - - /** - *
-   * Indicates whether the op implementation uses distributed communication.
-   * If True, the op is allowed to return errors for network disconnection and
-   * trigger TF network failure handling logics.
-   * 
- * - * bool is_distributed_communication = 21; - */ - boolean getIsDistributedCommunication(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpDefProtos.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpDefProtos.java deleted file mode 100644 index 9fe8b27832c..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpDefProtos.java +++ /dev/null @@ -1,131 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/op_def.proto - -package org.tensorflow.proto.framework; - -public final class OpDefProtos { - private OpDefProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_OpDef_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_OpDef_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_OpDef_ArgDef_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_OpDef_ArgDef_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_OpDef_AttrDef_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_OpDef_AttrDef_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_OpDeprecation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_OpDeprecation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_OpList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_OpList_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n&tensorflow/core/framework/op_def.proto" + - "\022\ntensorflow\032*tensorflow/core/framework/" + - "attr_value.proto\032)tensorflow/core/framew" + - "ork/full_type.proto\032/tensorflow/core/fra" + - "mework/resource_handle.proto\032%tensorflow" + - "/core/framework/types.proto\"\363\006\n\005OpDef\022\014\n" + - "\004name\030\001 \001(\t\022+\n\tinput_arg\030\002 \003(\0132\030.tensorf" + - "low.OpDef.ArgDef\022,\n\noutput_arg\030\003 \003(\0132\030.t" + - "ensorflow.OpDef.ArgDef\022\026\n\016control_output" + - "\030\024 \003(\t\022\'\n\004attr\030\004 \003(\0132\031.tensorflow.OpDef." + - "AttrDef\022.\n\013deprecation\030\010 \001(\0132\031.tensorflo" + - "w.OpDeprecation\022\017\n\007summary\030\005 \001(\t\022\023\n\013desc" + - "ription\030\006 \001(\t\022\026\n\016is_commutative\030\022 \001(\010\022\024\n" + - "\014is_aggregate\030\020 \001(\010\022\023\n\013is_stateful\030\021 \001(\010" + - "\022\"\n\032allows_uninitialized_input\030\023 \001(\010\022$\n\034" + - "is_distributed_communication\030\025 \001(\010\032\234\002\n\006A" + - "rgDef\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t" + - "\022\"\n\004type\030\003 \001(\0162\024.tensorflow.DataType\022\021\n\t" + - "type_attr\030\004 \001(\t\022\023\n\013number_attr\030\005 \001(\t\022\026\n\016" + - "type_list_attr\030\006 \001(\t\022B\n\013handle_data\030\007 \003(" + - "\0132-.tensorflow.ResourceHandleProto.Dtype" + - "AndShape\022\016\n\006is_ref\030\020 \001(\010\0227\n\026experimental" + - "_full_type\030\021 \001(\0132\027.tensorflow.FullTypeDe" + - "f\032\275\001\n\007AttrDef\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002 \001(" + - "\t\022,\n\rdefault_value\030\003 \001(\0132\025.tensorflow.At" + - "trValue\022\023\n\013description\030\004 \001(\t\022\023\n\013has_mini" + - "mum\030\005 \001(\010\022\017\n\007minimum\030\006 \001(\003\022-\n\016allowed_va" + - "lues\030\007 \001(\0132\025.tensorflow.AttrValue\"5\n\rOpD" + - "eprecation\022\017\n\007version\030\001 \001(\005\022\023\n\013explanati" + - "on\030\002 \001(\t\"\'\n\006OpList\022\035\n\002op\030\001 \003(\0132\021.tensorf" + - "low.OpDefB\201\001\n\036org.tensorflow.proto.frame" + - "workB\013OpDefProtosP\001ZMgithub.com/tensorfl" + - "ow/tensorflow/tensorflow/go/core/framewo" + - "rk/op_def_go_proto\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.framework.AttrValueProtos.getDescriptor(), - org.tensorflow.proto.framework.FullTypeProtos.getDescriptor(), - org.tensorflow.proto.framework.ResourceHandle.getDescriptor(), - org.tensorflow.proto.framework.TypesProtos.getDescriptor(), - }); - internal_static_tensorflow_OpDef_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tensorflow_OpDef_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_OpDef_descriptor, - new java.lang.String[] { "Name", "InputArg", "OutputArg", "ControlOutput", "Attr", "Deprecation", "Summary", "Description", "IsCommutative", "IsAggregate", "IsStateful", "AllowsUninitializedInput", "IsDistributedCommunication", }); - internal_static_tensorflow_OpDef_ArgDef_descriptor = - internal_static_tensorflow_OpDef_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_OpDef_ArgDef_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_OpDef_ArgDef_descriptor, - new java.lang.String[] { "Name", "Description", "Type", "TypeAttr", "NumberAttr", "TypeListAttr", "HandleData", "IsRef", "ExperimentalFullType", }); - internal_static_tensorflow_OpDef_AttrDef_descriptor = - internal_static_tensorflow_OpDef_descriptor.getNestedTypes().get(1); - internal_static_tensorflow_OpDef_AttrDef_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_OpDef_AttrDef_descriptor, - new java.lang.String[] { "Name", "Type", "DefaultValue", "Description", "HasMinimum", "Minimum", "AllowedValues", }); - internal_static_tensorflow_OpDeprecation_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_tensorflow_OpDeprecation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_OpDeprecation_descriptor, - new java.lang.String[] { "Version", "Explanation", }); - internal_static_tensorflow_OpList_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_tensorflow_OpList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_OpList_descriptor, - new java.lang.String[] { "Op", }); - org.tensorflow.proto.framework.AttrValueProtos.getDescriptor(); - org.tensorflow.proto.framework.FullTypeProtos.getDescriptor(); - org.tensorflow.proto.framework.ResourceHandle.getDescriptor(); - org.tensorflow.proto.framework.TypesProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpDeprecation.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpDeprecation.java deleted file mode 100644 index f33a34c9052..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpDeprecation.java +++ /dev/null @@ -1,655 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/op_def.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Information about version-dependent deprecation of an op
- * 
- * - * Protobuf type {@code tensorflow.OpDeprecation} - */ -public final class OpDeprecation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.OpDeprecation) - OpDeprecationOrBuilder { -private static final long serialVersionUID = 0L; - // Use OpDeprecation.newBuilder() to construct. - private OpDeprecation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OpDeprecation() { - explanation_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OpDeprecation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OpDeprecation( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - version_ = input.readInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - explanation_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpDeprecation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpDeprecation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.OpDeprecation.class, org.tensorflow.proto.framework.OpDeprecation.Builder.class); - } - - public static final int VERSION_FIELD_NUMBER = 1; - private int version_; - /** - *
-   * First GraphDef version at which the op is disallowed.
-   * 
- * - * int32 version = 1; - */ - public int getVersion() { - return version_; - } - - public static final int EXPLANATION_FIELD_NUMBER = 2; - private volatile java.lang.Object explanation_; - /** - *
-   * Explanation of why it was deprecated and what to use instead.
-   * 
- * - * string explanation = 2; - */ - public java.lang.String getExplanation() { - java.lang.Object ref = explanation_; - 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(); - explanation_ = s; - return s; - } - } - /** - *
-   * Explanation of why it was deprecated and what to use instead.
-   * 
- * - * string explanation = 2; - */ - public com.google.protobuf.ByteString - getExplanationBytes() { - java.lang.Object ref = explanation_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - explanation_ = 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 (version_ != 0) { - output.writeInt32(1, version_); - } - if (!getExplanationBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, explanation_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (version_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, version_); - } - if (!getExplanationBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, explanation_); - } - 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 org.tensorflow.proto.framework.OpDeprecation)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.OpDeprecation other = (org.tensorflow.proto.framework.OpDeprecation) obj; - - if (getVersion() - != other.getVersion()) return false; - if (!getExplanation() - .equals(other.getExplanation())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - hash = (37 * hash) + EXPLANATION_FIELD_NUMBER; - hash = (53 * hash) + getExplanation().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.OpDeprecation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpDeprecation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpDeprecation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpDeprecation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpDeprecation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpDeprecation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpDeprecation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpDeprecation 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 org.tensorflow.proto.framework.OpDeprecation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpDeprecation 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 org.tensorflow.proto.framework.OpDeprecation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpDeprecation 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(org.tensorflow.proto.framework.OpDeprecation 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; - } - /** - *
-   * Information about version-dependent deprecation of an op
-   * 
- * - * Protobuf type {@code tensorflow.OpDeprecation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.OpDeprecation) - org.tensorflow.proto.framework.OpDeprecationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpDeprecation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpDeprecation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.OpDeprecation.class, org.tensorflow.proto.framework.OpDeprecation.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.OpDeprecation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - version_ = 0; - - explanation_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpDeprecation_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpDeprecation getDefaultInstanceForType() { - return org.tensorflow.proto.framework.OpDeprecation.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpDeprecation build() { - org.tensorflow.proto.framework.OpDeprecation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpDeprecation buildPartial() { - org.tensorflow.proto.framework.OpDeprecation result = new org.tensorflow.proto.framework.OpDeprecation(this); - result.version_ = version_; - result.explanation_ = explanation_; - 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 org.tensorflow.proto.framework.OpDeprecation) { - return mergeFrom((org.tensorflow.proto.framework.OpDeprecation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.OpDeprecation other) { - if (other == org.tensorflow.proto.framework.OpDeprecation.getDefaultInstance()) return this; - if (other.getVersion() != 0) { - setVersion(other.getVersion()); - } - if (!other.getExplanation().isEmpty()) { - explanation_ = other.explanation_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.OpDeprecation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.OpDeprecation) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int version_ ; - /** - *
-     * First GraphDef version at which the op is disallowed.
-     * 
- * - * int32 version = 1; - */ - public int getVersion() { - return version_; - } - /** - *
-     * First GraphDef version at which the op is disallowed.
-     * 
- * - * int32 version = 1; - */ - public Builder setVersion(int value) { - - version_ = value; - onChanged(); - return this; - } - /** - *
-     * First GraphDef version at which the op is disallowed.
-     * 
- * - * int32 version = 1; - */ - public Builder clearVersion() { - - version_ = 0; - onChanged(); - return this; - } - - private java.lang.Object explanation_ = ""; - /** - *
-     * Explanation of why it was deprecated and what to use instead.
-     * 
- * - * string explanation = 2; - */ - public java.lang.String getExplanation() { - java.lang.Object ref = explanation_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - explanation_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Explanation of why it was deprecated and what to use instead.
-     * 
- * - * string explanation = 2; - */ - public com.google.protobuf.ByteString - getExplanationBytes() { - java.lang.Object ref = explanation_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - explanation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Explanation of why it was deprecated and what to use instead.
-     * 
- * - * string explanation = 2; - */ - public Builder setExplanation( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - explanation_ = value; - onChanged(); - return this; - } - /** - *
-     * Explanation of why it was deprecated and what to use instead.
-     * 
- * - * string explanation = 2; - */ - public Builder clearExplanation() { - - explanation_ = getDefaultInstance().getExplanation(); - onChanged(); - return this; - } - /** - *
-     * Explanation of why it was deprecated and what to use instead.
-     * 
- * - * string explanation = 2; - */ - public Builder setExplanationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - explanation_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.OpDeprecation) - } - - // @@protoc_insertion_point(class_scope:tensorflow.OpDeprecation) - private static final org.tensorflow.proto.framework.OpDeprecation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.OpDeprecation(); - } - - public static org.tensorflow.proto.framework.OpDeprecation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OpDeprecation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OpDeprecation(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpDeprecation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpDeprecationOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpDeprecationOrBuilder.java deleted file mode 100644 index 3248db05508..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpDeprecationOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/op_def.proto - -package org.tensorflow.proto.framework; - -public interface OpDeprecationOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.OpDeprecation) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * First GraphDef version at which the op is disallowed.
-   * 
- * - * int32 version = 1; - */ - int getVersion(); - - /** - *
-   * Explanation of why it was deprecated and what to use instead.
-   * 
- * - * string explanation = 2; - */ - java.lang.String getExplanation(); - /** - *
-   * Explanation of why it was deprecated and what to use instead.
-   * 
- * - * string explanation = 2; - */ - com.google.protobuf.ByteString - getExplanationBytes(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpInfo.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpInfo.java deleted file mode 100644 index 860edaad590..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpInfo.java +++ /dev/null @@ -1,3048 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/grappler/costs/op_performance_data.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Description of an operation as well as the parameters expected to impact its
- * performance.
- * 
- * - * Protobuf type {@code tensorflow.OpInfo} - */ -public final class OpInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.OpInfo) - OpInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use OpInfo.newBuilder() to construct. - private OpInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OpInfo() { - op_ = ""; - inputs_ = java.util.Collections.emptyList(); - outputs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OpInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OpInfo( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - op_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - attr_ = com.google.protobuf.MapField.newMapField( - AttrDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - attr__ = input.readMessage( - AttrDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - attr_.getMutableMap().put( - attr__.getKey(), attr__.getValue()); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - inputs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - inputs_.add( - input.readMessage(org.tensorflow.proto.framework.OpInfo.TensorProperties.parser(), extensionRegistry)); - break; - } - case 34: { - org.tensorflow.proto.framework.DeviceProperties.Builder subBuilder = null; - if (device_ != null) { - subBuilder = device_.toBuilder(); - } - device_ = input.readMessage(org.tensorflow.proto.framework.DeviceProperties.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(device_); - device_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - outputs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - outputs_.add( - input.readMessage(org.tensorflow.proto.framework.OpInfo.TensorProperties.parser(), extensionRegistry)); - break; - } - case 50: { - org.tensorflow.proto.framework.SessionInfo.Builder subBuilder = null; - if (sessionInfo_ != null) { - subBuilder = sessionInfo_.toBuilder(); - } - sessionInfo_ = input.readMessage(org.tensorflow.proto.framework.SessionInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sessionInfo_); - sessionInfo_ = subBuilder.buildPartial(); - } - - 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_ & 0x00000002) != 0)) { - inputs_ = java.util.Collections.unmodifiableList(inputs_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - outputs_ = java.util.Collections.unmodifiableList(outputs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetAttr(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.OpInfo.class, org.tensorflow.proto.framework.OpInfo.Builder.class); - } - - public interface TensorPropertiesOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.OpInfo.TensorProperties) - com.google.protobuf.MessageOrBuilder { - - /** - * .tensorflow.DataType dtype = 1; - */ - int getDtypeValue(); - /** - * .tensorflow.DataType dtype = 1; - */ - org.tensorflow.proto.framework.DataType getDtype(); - - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - boolean hasShape(); - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - org.tensorflow.proto.framework.TensorShapeProto getShape(); - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder(); - - /** - * .tensorflow.TensorProto value = 3; - */ - boolean hasValue(); - /** - * .tensorflow.TensorProto value = 3; - */ - org.tensorflow.proto.framework.TensorProto getValue(); - /** - * .tensorflow.TensorProto value = 3; - */ - org.tensorflow.proto.framework.TensorProtoOrBuilder getValueOrBuilder(); - } - /** - *
-   * Input data types, shapes and values if known.
-   * 
- * - * Protobuf type {@code tensorflow.OpInfo.TensorProperties} - */ - public static final class TensorProperties extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.OpInfo.TensorProperties) - TensorPropertiesOrBuilder { - private static final long serialVersionUID = 0L; - // Use TensorProperties.newBuilder() to construct. - private TensorProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TensorProperties() { - dtype_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TensorProperties(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TensorProperties( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - dtype_ = rawValue; - break; - } - case 18: { - org.tensorflow.proto.framework.TensorShapeProto.Builder subBuilder = null; - if (shape_ != null) { - subBuilder = shape_.toBuilder(); - } - shape_ = input.readMessage(org.tensorflow.proto.framework.TensorShapeProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(shape_); - shape_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - org.tensorflow.proto.framework.TensorProto.Builder subBuilder = null; - if (value_ != null) { - subBuilder = value_.toBuilder(); - } - value_ = input.readMessage(org.tensorflow.proto.framework.TensorProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(value_); - value_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpInfo_TensorProperties_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpInfo_TensorProperties_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.OpInfo.TensorProperties.class, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder.class); - } - - public static final int DTYPE_FIELD_NUMBER = 1; - private int dtype_; - /** - * .tensorflow.DataType dtype = 1; - */ - public int getDtypeValue() { - return dtype_; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public org.tensorflow.proto.framework.DataType getDtype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - - public static final int SHAPE_FIELD_NUMBER = 2; - private org.tensorflow.proto.framework.TensorShapeProto shape_; - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public boolean hasShape() { - return shape_ != null; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProto getShape() { - return shape_ == null ? org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { - return getShape(); - } - - public static final int VALUE_FIELD_NUMBER = 3; - private org.tensorflow.proto.framework.TensorProto value_; - /** - * .tensorflow.TensorProto value = 3; - */ - public boolean hasValue() { - return value_ != null; - } - /** - * .tensorflow.TensorProto value = 3; - */ - public org.tensorflow.proto.framework.TensorProto getValue() { - return value_ == null ? org.tensorflow.proto.framework.TensorProto.getDefaultInstance() : value_; - } - /** - * .tensorflow.TensorProto value = 3; - */ - public org.tensorflow.proto.framework.TensorProtoOrBuilder getValueOrBuilder() { - return getValue(); - } - - 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 (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - output.writeEnum(1, dtype_); - } - if (shape_ != null) { - output.writeMessage(2, getShape()); - } - if (value_ != null) { - output.writeMessage(3, getValue()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, dtype_); - } - if (shape_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getShape()); - } - if (value_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getValue()); - } - 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 org.tensorflow.proto.framework.OpInfo.TensorProperties)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.OpInfo.TensorProperties other = (org.tensorflow.proto.framework.OpInfo.TensorProperties) obj; - - if (dtype_ != other.dtype_) return false; - if (hasShape() != other.hasShape()) return false; - if (hasShape()) { - if (!getShape() - .equals(other.getShape())) return false; - } - if (hasValue() != other.hasValue()) return false; - if (hasValue()) { - if (!getValue() - .equals(other.getValue())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DTYPE_FIELD_NUMBER; - hash = (53 * hash) + dtype_; - if (hasShape()) { - hash = (37 * hash) + SHAPE_FIELD_NUMBER; - hash = (53 * hash) + getShape().hashCode(); - } - if (hasValue()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.OpInfo.TensorProperties parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpInfo.TensorProperties parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpInfo.TensorProperties parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpInfo.TensorProperties parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpInfo.TensorProperties parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpInfo.TensorProperties parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpInfo.TensorProperties parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpInfo.TensorProperties 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 org.tensorflow.proto.framework.OpInfo.TensorProperties parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpInfo.TensorProperties 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 org.tensorflow.proto.framework.OpInfo.TensorProperties parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpInfo.TensorProperties 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(org.tensorflow.proto.framework.OpInfo.TensorProperties 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; - } - /** - *
-     * Input data types, shapes and values if known.
-     * 
- * - * Protobuf type {@code tensorflow.OpInfo.TensorProperties} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.OpInfo.TensorProperties) - org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpInfo_TensorProperties_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpInfo_TensorProperties_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.OpInfo.TensorProperties.class, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.OpInfo.TensorProperties.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - dtype_ = 0; - - if (shapeBuilder_ == null) { - shape_ = null; - } else { - shape_ = null; - shapeBuilder_ = null; - } - if (valueBuilder_ == null) { - value_ = null; - } else { - value_ = null; - valueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpInfo_TensorProperties_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpInfo.TensorProperties getDefaultInstanceForType() { - return org.tensorflow.proto.framework.OpInfo.TensorProperties.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpInfo.TensorProperties build() { - org.tensorflow.proto.framework.OpInfo.TensorProperties result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpInfo.TensorProperties buildPartial() { - org.tensorflow.proto.framework.OpInfo.TensorProperties result = new org.tensorflow.proto.framework.OpInfo.TensorProperties(this); - result.dtype_ = dtype_; - if (shapeBuilder_ == null) { - result.shape_ = shape_; - } else { - result.shape_ = shapeBuilder_.build(); - } - if (valueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = valueBuilder_.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 org.tensorflow.proto.framework.OpInfo.TensorProperties) { - return mergeFrom((org.tensorflow.proto.framework.OpInfo.TensorProperties)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.OpInfo.TensorProperties other) { - if (other == org.tensorflow.proto.framework.OpInfo.TensorProperties.getDefaultInstance()) return this; - if (other.dtype_ != 0) { - setDtypeValue(other.getDtypeValue()); - } - if (other.hasShape()) { - mergeShape(other.getShape()); - } - if (other.hasValue()) { - mergeValue(other.getValue()); - } - 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 { - org.tensorflow.proto.framework.OpInfo.TensorProperties parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.OpInfo.TensorProperties) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int dtype_ = 0; - /** - * .tensorflow.DataType dtype = 1; - */ - public int getDtypeValue() { - return dtype_; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public Builder setDtypeValue(int value) { - dtype_ = value; - onChanged(); - return this; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public org.tensorflow.proto.framework.DataType getDtype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public Builder setDtype(org.tensorflow.proto.framework.DataType value) { - if (value == null) { - throw new NullPointerException(); - } - - dtype_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public Builder clearDtype() { - - dtype_ = 0; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.TensorShapeProto shape_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> shapeBuilder_; - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public boolean hasShape() { - return shapeBuilder_ != null || shape_ != null; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProto getShape() { - if (shapeBuilder_ == null) { - return shape_ == null ? org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; - } else { - return shapeBuilder_.getMessage(); - } - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder setShape(org.tensorflow.proto.framework.TensorShapeProto value) { - if (shapeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - shape_ = value; - onChanged(); - } else { - shapeBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder setShape( - org.tensorflow.proto.framework.TensorShapeProto.Builder builderForValue) { - if (shapeBuilder_ == null) { - shape_ = builderForValue.build(); - onChanged(); - } else { - shapeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder mergeShape(org.tensorflow.proto.framework.TensorShapeProto value) { - if (shapeBuilder_ == null) { - if (shape_ != null) { - shape_ = - org.tensorflow.proto.framework.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial(); - } else { - shape_ = value; - } - onChanged(); - } else { - shapeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder clearShape() { - if (shapeBuilder_ == null) { - shape_ = null; - onChanged(); - } else { - shape_ = null; - shapeBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProto.Builder getShapeBuilder() { - - onChanged(); - return getShapeFieldBuilder().getBuilder(); - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { - if (shapeBuilder_ != null) { - return shapeBuilder_.getMessageOrBuilder(); - } else { - return shape_ == null ? - org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; - } - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> - getShapeFieldBuilder() { - if (shapeBuilder_ == null) { - shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder>( - getShape(), - getParentForChildren(), - isClean()); - shape_ = null; - } - return shapeBuilder_; - } - - private org.tensorflow.proto.framework.TensorProto value_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder> valueBuilder_; - /** - * .tensorflow.TensorProto value = 3; - */ - public boolean hasValue() { - return valueBuilder_ != null || value_ != null; - } - /** - * .tensorflow.TensorProto value = 3; - */ - public org.tensorflow.proto.framework.TensorProto getValue() { - if (valueBuilder_ == null) { - return value_ == null ? org.tensorflow.proto.framework.TensorProto.getDefaultInstance() : value_; - } else { - return valueBuilder_.getMessage(); - } - } - /** - * .tensorflow.TensorProto value = 3; - */ - public Builder setValue(org.tensorflow.proto.framework.TensorProto value) { - if (valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - valueBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.TensorProto value = 3; - */ - public Builder setValue( - org.tensorflow.proto.framework.TensorProto.Builder builderForValue) { - if (valueBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - valueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.TensorProto value = 3; - */ - public Builder mergeValue(org.tensorflow.proto.framework.TensorProto value) { - if (valueBuilder_ == null) { - if (value_ != null) { - value_ = - org.tensorflow.proto.framework.TensorProto.newBuilder(value_).mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - valueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.TensorProto value = 3; - */ - public Builder clearValue() { - if (valueBuilder_ == null) { - value_ = null; - onChanged(); - } else { - value_ = null; - valueBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.TensorProto value = 3; - */ - public org.tensorflow.proto.framework.TensorProto.Builder getValueBuilder() { - - onChanged(); - return getValueFieldBuilder().getBuilder(); - } - /** - * .tensorflow.TensorProto value = 3; - */ - public org.tensorflow.proto.framework.TensorProtoOrBuilder getValueOrBuilder() { - if (valueBuilder_ != null) { - return valueBuilder_.getMessageOrBuilder(); - } else { - return value_ == null ? - org.tensorflow.proto.framework.TensorProto.getDefaultInstance() : value_; - } - } - /** - * .tensorflow.TensorProto value = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder>( - getValue(), - getParentForChildren(), - isClean()); - value_ = null; - } - return valueBuilder_; - } - @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:tensorflow.OpInfo.TensorProperties) - } - - // @@protoc_insertion_point(class_scope:tensorflow.OpInfo.TensorProperties) - private static final org.tensorflow.proto.framework.OpInfo.TensorProperties DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.OpInfo.TensorProperties(); - } - - public static org.tensorflow.proto.framework.OpInfo.TensorProperties getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TensorProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TensorProperties(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpInfo.TensorProperties getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int OP_FIELD_NUMBER = 1; - private volatile java.lang.Object op_; - /** - *
-   * The operation name.  There may be custom parameters in attrs.
-   * 
- * - * string op = 1; - */ - public java.lang.String getOp() { - java.lang.Object ref = op_; - 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(); - op_ = s; - return s; - } - } - /** - *
-   * The operation name.  There may be custom parameters in attrs.
-   * 
- * - * string op = 1; - */ - public com.google.protobuf.ByteString - getOpBytes() { - java.lang.Object ref = op_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - op_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ATTR_FIELD_NUMBER = 2; - private static final class AttrDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, org.tensorflow.proto.framework.AttrValue> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpInfo_AttrEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.tensorflow.proto.framework.AttrValue.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.AttrValue> attr_; - private com.google.protobuf.MapField - internalGetAttr() { - if (attr_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AttrDefaultEntryHolder.defaultEntry); - } - return attr_; - } - - public int getAttrCount() { - return internalGetAttr().getMap().size(); - } - /** - *
-   * Custom parameters impacting the behavior of the op.
-   * 
- * - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - public boolean containsAttr( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetAttr().getMap().containsKey(key); - } - /** - * Use {@link #getAttrMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getAttr() { - return getAttrMap(); - } - /** - *
-   * Custom parameters impacting the behavior of the op.
-   * 
- * - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - public java.util.Map getAttrMap() { - return internalGetAttr().getMap(); - } - /** - *
-   * Custom parameters impacting the behavior of the op.
-   * 
- * - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - public org.tensorflow.proto.framework.AttrValue getAttrOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.AttrValue defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttr().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-   * Custom parameters impacting the behavior of the op.
-   * 
- * - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - public org.tensorflow.proto.framework.AttrValue getAttrOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttr().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int INPUTS_FIELD_NUMBER = 3; - private java.util.List inputs_; - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public java.util.List getInputsList() { - return inputs_; - } - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public java.util.List - getInputsOrBuilderList() { - return inputs_; - } - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public int getInputsCount() { - return inputs_.size(); - } - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public org.tensorflow.proto.framework.OpInfo.TensorProperties getInputs(int index) { - return inputs_.get(index); - } - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder getInputsOrBuilder( - int index) { - return inputs_.get(index); - } - - public static final int OUTPUTS_FIELD_NUMBER = 5; - private java.util.List outputs_; - /** - *
-   * Optional description of the op outputs
-   * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public java.util.List getOutputsList() { - return outputs_; - } - /** - *
-   * Optional description of the op outputs
-   * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public java.util.List - getOutputsOrBuilderList() { - return outputs_; - } - /** - *
-   * Optional description of the op outputs
-   * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public int getOutputsCount() { - return outputs_.size(); - } - /** - *
-   * Optional description of the op outputs
-   * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public org.tensorflow.proto.framework.OpInfo.TensorProperties getOutputs(int index) { - return outputs_.get(index); - } - /** - *
-   * Optional description of the op outputs
-   * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder getOutputsOrBuilder( - int index) { - return outputs_.get(index); - } - - public static final int DEVICE_FIELD_NUMBER = 4; - private org.tensorflow.proto.framework.DeviceProperties device_; - /** - *
-   * Device on which the operation is run.
-   * 
- * - * .tensorflow.DeviceProperties device = 4; - */ - public boolean hasDevice() { - return device_ != null; - } - /** - *
-   * Device on which the operation is run.
-   * 
- * - * .tensorflow.DeviceProperties device = 4; - */ - public org.tensorflow.proto.framework.DeviceProperties getDevice() { - return device_ == null ? org.tensorflow.proto.framework.DeviceProperties.getDefaultInstance() : device_; - } - /** - *
-   * Device on which the operation is run.
-   * 
- * - * .tensorflow.DeviceProperties device = 4; - */ - public org.tensorflow.proto.framework.DevicePropertiesOrBuilder getDeviceOrBuilder() { - return getDevice(); - } - - public static final int SESSION_INFO_FIELD_NUMBER = 6; - private org.tensorflow.proto.framework.SessionInfo sessionInfo_; - /** - *
-   * Information about the session configs.
-   * 
- * - * .tensorflow.SessionInfo session_info = 6; - */ - public boolean hasSessionInfo() { - return sessionInfo_ != null; - } - /** - *
-   * Information about the session configs.
-   * 
- * - * .tensorflow.SessionInfo session_info = 6; - */ - public org.tensorflow.proto.framework.SessionInfo getSessionInfo() { - return sessionInfo_ == null ? org.tensorflow.proto.framework.SessionInfo.getDefaultInstance() : sessionInfo_; - } - /** - *
-   * Information about the session configs.
-   * 
- * - * .tensorflow.SessionInfo session_info = 6; - */ - public org.tensorflow.proto.framework.SessionInfoOrBuilder getSessionInfoOrBuilder() { - return getSessionInfo(); - } - - 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 (!getOpBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, op_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAttr(), - AttrDefaultEntryHolder.defaultEntry, - 2); - for (int i = 0; i < inputs_.size(); i++) { - output.writeMessage(3, inputs_.get(i)); - } - if (device_ != null) { - output.writeMessage(4, getDevice()); - } - for (int i = 0; i < outputs_.size(); i++) { - output.writeMessage(5, outputs_.get(i)); - } - if (sessionInfo_ != null) { - output.writeMessage(6, getSessionInfo()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getOpBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, op_); - } - for (java.util.Map.Entry entry - : internalGetAttr().getMap().entrySet()) { - com.google.protobuf.MapEntry - attr__ = AttrDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, attr__); - } - for (int i = 0; i < inputs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, inputs_.get(i)); - } - if (device_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getDevice()); - } - for (int i = 0; i < outputs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, outputs_.get(i)); - } - if (sessionInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getSessionInfo()); - } - 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 org.tensorflow.proto.framework.OpInfo)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.OpInfo other = (org.tensorflow.proto.framework.OpInfo) obj; - - if (!getOp() - .equals(other.getOp())) return false; - if (!internalGetAttr().equals( - other.internalGetAttr())) return false; - if (!getInputsList() - .equals(other.getInputsList())) return false; - if (!getOutputsList() - .equals(other.getOutputsList())) return false; - if (hasDevice() != other.hasDevice()) return false; - if (hasDevice()) { - if (!getDevice() - .equals(other.getDevice())) return false; - } - if (hasSessionInfo() != other.hasSessionInfo()) return false; - if (hasSessionInfo()) { - if (!getSessionInfo() - .equals(other.getSessionInfo())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OP_FIELD_NUMBER; - hash = (53 * hash) + getOp().hashCode(); - if (!internalGetAttr().getMap().isEmpty()) { - hash = (37 * hash) + ATTR_FIELD_NUMBER; - hash = (53 * hash) + internalGetAttr().hashCode(); - } - if (getInputsCount() > 0) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputsList().hashCode(); - } - if (getOutputsCount() > 0) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputsList().hashCode(); - } - if (hasDevice()) { - hash = (37 * hash) + DEVICE_FIELD_NUMBER; - hash = (53 * hash) + getDevice().hashCode(); - } - if (hasSessionInfo()) { - hash = (37 * hash) + SESSION_INFO_FIELD_NUMBER; - hash = (53 * hash) + getSessionInfo().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.OpInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpInfo 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 org.tensorflow.proto.framework.OpInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpInfo 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 org.tensorflow.proto.framework.OpInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpInfo 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(org.tensorflow.proto.framework.OpInfo 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; - } - /** - *
-   * Description of an operation as well as the parameters expected to impact its
-   * performance.
-   * 
- * - * Protobuf type {@code tensorflow.OpInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.OpInfo) - org.tensorflow.proto.framework.OpInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetAttr(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableAttr(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.OpInfo.class, org.tensorflow.proto.framework.OpInfo.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.OpInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getInputsFieldBuilder(); - getOutputsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - op_ = ""; - - internalGetMutableAttr().clear(); - if (inputsBuilder_ == null) { - inputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - inputsBuilder_.clear(); - } - if (outputsBuilder_ == null) { - outputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - outputsBuilder_.clear(); - } - if (deviceBuilder_ == null) { - device_ = null; - } else { - device_ = null; - deviceBuilder_ = null; - } - if (sessionInfoBuilder_ == null) { - sessionInfo_ = null; - } else { - sessionInfo_ = null; - sessionInfoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpInfo_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpInfo getDefaultInstanceForType() { - return org.tensorflow.proto.framework.OpInfo.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpInfo build() { - org.tensorflow.proto.framework.OpInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpInfo buildPartial() { - org.tensorflow.proto.framework.OpInfo result = new org.tensorflow.proto.framework.OpInfo(this); - int from_bitField0_ = bitField0_; - result.op_ = op_; - result.attr_ = internalGetAttr(); - result.attr_.makeImmutable(); - if (inputsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - inputs_ = java.util.Collections.unmodifiableList(inputs_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (outputsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - outputs_ = java.util.Collections.unmodifiableList(outputs_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.build(); - } - if (deviceBuilder_ == null) { - result.device_ = device_; - } else { - result.device_ = deviceBuilder_.build(); - } - if (sessionInfoBuilder_ == null) { - result.sessionInfo_ = sessionInfo_; - } else { - result.sessionInfo_ = sessionInfoBuilder_.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 org.tensorflow.proto.framework.OpInfo) { - return mergeFrom((org.tensorflow.proto.framework.OpInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.OpInfo other) { - if (other == org.tensorflow.proto.framework.OpInfo.getDefaultInstance()) return this; - if (!other.getOp().isEmpty()) { - op_ = other.op_; - onChanged(); - } - internalGetMutableAttr().mergeFrom( - other.internalGetAttr()); - if (inputsBuilder_ == null) { - if (!other.inputs_.isEmpty()) { - if (inputs_.isEmpty()) { - inputs_ = other.inputs_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureInputsIsMutable(); - inputs_.addAll(other.inputs_); - } - onChanged(); - } - } else { - if (!other.inputs_.isEmpty()) { - if (inputsBuilder_.isEmpty()) { - inputsBuilder_.dispose(); - inputsBuilder_ = null; - inputs_ = other.inputs_; - bitField0_ = (bitField0_ & ~0x00000002); - inputsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInputsFieldBuilder() : null; - } else { - inputsBuilder_.addAllMessages(other.inputs_); - } - } - } - if (outputsBuilder_ == null) { - if (!other.outputs_.isEmpty()) { - if (outputs_.isEmpty()) { - outputs_ = other.outputs_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureOutputsIsMutable(); - outputs_.addAll(other.outputs_); - } - onChanged(); - } - } else { - if (!other.outputs_.isEmpty()) { - if (outputsBuilder_.isEmpty()) { - outputsBuilder_.dispose(); - outputsBuilder_ = null; - outputs_ = other.outputs_; - bitField0_ = (bitField0_ & ~0x00000004); - outputsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOutputsFieldBuilder() : null; - } else { - outputsBuilder_.addAllMessages(other.outputs_); - } - } - } - if (other.hasDevice()) { - mergeDevice(other.getDevice()); - } - if (other.hasSessionInfo()) { - mergeSessionInfo(other.getSessionInfo()); - } - 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 { - org.tensorflow.proto.framework.OpInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.OpInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object op_ = ""; - /** - *
-     * The operation name.  There may be custom parameters in attrs.
-     * 
- * - * string op = 1; - */ - public java.lang.String getOp() { - java.lang.Object ref = op_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - op_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The operation name.  There may be custom parameters in attrs.
-     * 
- * - * string op = 1; - */ - public com.google.protobuf.ByteString - getOpBytes() { - java.lang.Object ref = op_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - op_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The operation name.  There may be custom parameters in attrs.
-     * 
- * - * string op = 1; - */ - public Builder setOp( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - op_ = value; - onChanged(); - return this; - } - /** - *
-     * The operation name.  There may be custom parameters in attrs.
-     * 
- * - * string op = 1; - */ - public Builder clearOp() { - - op_ = getDefaultInstance().getOp(); - onChanged(); - return this; - } - /** - *
-     * The operation name.  There may be custom parameters in attrs.
-     * 
- * - * string op = 1; - */ - public Builder setOpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - op_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.AttrValue> attr_; - private com.google.protobuf.MapField - internalGetAttr() { - if (attr_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AttrDefaultEntryHolder.defaultEntry); - } - return attr_; - } - private com.google.protobuf.MapField - internalGetMutableAttr() { - onChanged();; - if (attr_ == null) { - attr_ = com.google.protobuf.MapField.newMapField( - AttrDefaultEntryHolder.defaultEntry); - } - if (!attr_.isMutable()) { - attr_ = attr_.copy(); - } - return attr_; - } - - public int getAttrCount() { - return internalGetAttr().getMap().size(); - } - /** - *
-     * Custom parameters impacting the behavior of the op.
-     * 
- * - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - public boolean containsAttr( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetAttr().getMap().containsKey(key); - } - /** - * Use {@link #getAttrMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getAttr() { - return getAttrMap(); - } - /** - *
-     * Custom parameters impacting the behavior of the op.
-     * 
- * - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - public java.util.Map getAttrMap() { - return internalGetAttr().getMap(); - } - /** - *
-     * Custom parameters impacting the behavior of the op.
-     * 
- * - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - public org.tensorflow.proto.framework.AttrValue getAttrOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.AttrValue defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttr().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Custom parameters impacting the behavior of the op.
-     * 
- * - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - public org.tensorflow.proto.framework.AttrValue getAttrOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttr().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAttr() { - internalGetMutableAttr().getMutableMap() - .clear(); - return this; - } - /** - *
-     * Custom parameters impacting the behavior of the op.
-     * 
- * - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - public Builder removeAttr( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAttr().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableAttr() { - return internalGetMutableAttr().getMutableMap(); - } - /** - *
-     * Custom parameters impacting the behavior of the op.
-     * 
- * - * map<string, .tensorflow.AttrValue> attr = 2; - */ - public Builder putAttr( - java.lang.String key, - org.tensorflow.proto.framework.AttrValue value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAttr().getMutableMap() - .put(key, value); - return this; - } - /** - *
-     * Custom parameters impacting the behavior of the op.
-     * 
- * - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - public Builder putAllAttr( - java.util.Map values) { - internalGetMutableAttr().getMutableMap() - .putAll(values); - return this; - } - - private java.util.List inputs_ = - java.util.Collections.emptyList(); - private void ensureInputsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - inputs_ = new java.util.ArrayList(inputs_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.OpInfo.TensorProperties, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder, org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder> inputsBuilder_; - - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public java.util.List getInputsList() { - if (inputsBuilder_ == null) { - return java.util.Collections.unmodifiableList(inputs_); - } else { - return inputsBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public int getInputsCount() { - if (inputsBuilder_ == null) { - return inputs_.size(); - } else { - return inputsBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public org.tensorflow.proto.framework.OpInfo.TensorProperties getInputs(int index) { - if (inputsBuilder_ == null) { - return inputs_.get(index); - } else { - return inputsBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public Builder setInputs( - int index, org.tensorflow.proto.framework.OpInfo.TensorProperties value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputsIsMutable(); - inputs_.set(index, value); - onChanged(); - } else { - inputsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public Builder setInputs( - int index, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder builderForValue) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.set(index, builderForValue.build()); - onChanged(); - } else { - inputsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public Builder addInputs(org.tensorflow.proto.framework.OpInfo.TensorProperties value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputsIsMutable(); - inputs_.add(value); - onChanged(); - } else { - inputsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public Builder addInputs( - int index, org.tensorflow.proto.framework.OpInfo.TensorProperties value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputsIsMutable(); - inputs_.add(index, value); - onChanged(); - } else { - inputsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public Builder addInputs( - org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder builderForValue) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.add(builderForValue.build()); - onChanged(); - } else { - inputsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public Builder addInputs( - int index, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder builderForValue) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.add(index, builderForValue.build()); - onChanged(); - } else { - inputsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public Builder addAllInputs( - java.lang.Iterable values) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inputs_); - onChanged(); - } else { - inputsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - inputsBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public Builder removeInputs(int index) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.remove(index); - onChanged(); - } else { - inputsBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder getInputsBuilder( - int index) { - return getInputsFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder getInputsOrBuilder( - int index) { - if (inputsBuilder_ == null) { - return inputs_.get(index); } else { - return inputsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public java.util.List - getInputsOrBuilderList() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(inputs_); - } - } - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder addInputsBuilder() { - return getInputsFieldBuilder().addBuilder( - org.tensorflow.proto.framework.OpInfo.TensorProperties.getDefaultInstance()); - } - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder addInputsBuilder( - int index) { - return getInputsFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.OpInfo.TensorProperties.getDefaultInstance()); - } - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - public java.util.List - getInputsBuilderList() { - return getInputsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.OpInfo.TensorProperties, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder, org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.OpInfo.TensorProperties, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder, org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder>( - inputs_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - - private java.util.List outputs_ = - java.util.Collections.emptyList(); - private void ensureOutputsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - outputs_ = new java.util.ArrayList(outputs_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.OpInfo.TensorProperties, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder, org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder> outputsBuilder_; - - /** - *
-     * Optional description of the op outputs
-     * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public java.util.List getOutputsList() { - if (outputsBuilder_ == null) { - return java.util.Collections.unmodifiableList(outputs_); - } else { - return outputsBuilder_.getMessageList(); - } - } - /** - *
-     * Optional description of the op outputs
-     * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public int getOutputsCount() { - if (outputsBuilder_ == null) { - return outputs_.size(); - } else { - return outputsBuilder_.getCount(); - } - } - /** - *
-     * Optional description of the op outputs
-     * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public org.tensorflow.proto.framework.OpInfo.TensorProperties getOutputs(int index) { - if (outputsBuilder_ == null) { - return outputs_.get(index); - } else { - return outputsBuilder_.getMessage(index); - } - } - /** - *
-     * Optional description of the op outputs
-     * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public Builder setOutputs( - int index, org.tensorflow.proto.framework.OpInfo.TensorProperties value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.set(index, value); - onChanged(); - } else { - outputsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Optional description of the op outputs
-     * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public Builder setOutputs( - int index, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.set(index, builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Optional description of the op outputs
-     * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public Builder addOutputs(org.tensorflow.proto.framework.OpInfo.TensorProperties value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.add(value); - onChanged(); - } else { - outputsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Optional description of the op outputs
-     * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public Builder addOutputs( - int index, org.tensorflow.proto.framework.OpInfo.TensorProperties value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.add(index, value); - onChanged(); - } else { - outputsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Optional description of the op outputs
-     * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public Builder addOutputs( - org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.add(builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Optional description of the op outputs
-     * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public Builder addOutputs( - int index, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.add(index, builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Optional description of the op outputs
-     * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public Builder addAllOutputs( - java.lang.Iterable values) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, outputs_); - onChanged(); - } else { - outputsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Optional description of the op outputs
-     * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - outputsBuilder_.clear(); - } - return this; - } - /** - *
-     * Optional description of the op outputs
-     * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public Builder removeOutputs(int index) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.remove(index); - onChanged(); - } else { - outputsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Optional description of the op outputs
-     * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder getOutputsBuilder( - int index) { - return getOutputsFieldBuilder().getBuilder(index); - } - /** - *
-     * Optional description of the op outputs
-     * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder getOutputsOrBuilder( - int index) { - if (outputsBuilder_ == null) { - return outputs_.get(index); } else { - return outputsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Optional description of the op outputs
-     * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public java.util.List - getOutputsOrBuilderList() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(outputs_); - } - } - /** - *
-     * Optional description of the op outputs
-     * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder addOutputsBuilder() { - return getOutputsFieldBuilder().addBuilder( - org.tensorflow.proto.framework.OpInfo.TensorProperties.getDefaultInstance()); - } - /** - *
-     * Optional description of the op outputs
-     * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder addOutputsBuilder( - int index) { - return getOutputsFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.OpInfo.TensorProperties.getDefaultInstance()); - } - /** - *
-     * Optional description of the op outputs
-     * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - public java.util.List - getOutputsBuilderList() { - return getOutputsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.OpInfo.TensorProperties, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder, org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.OpInfo.TensorProperties, org.tensorflow.proto.framework.OpInfo.TensorProperties.Builder, org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder>( - outputs_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - - private org.tensorflow.proto.framework.DeviceProperties device_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.DeviceProperties, org.tensorflow.proto.framework.DeviceProperties.Builder, org.tensorflow.proto.framework.DevicePropertiesOrBuilder> deviceBuilder_; - /** - *
-     * Device on which the operation is run.
-     * 
- * - * .tensorflow.DeviceProperties device = 4; - */ - public boolean hasDevice() { - return deviceBuilder_ != null || device_ != null; - } - /** - *
-     * Device on which the operation is run.
-     * 
- * - * .tensorflow.DeviceProperties device = 4; - */ - public org.tensorflow.proto.framework.DeviceProperties getDevice() { - if (deviceBuilder_ == null) { - return device_ == null ? org.tensorflow.proto.framework.DeviceProperties.getDefaultInstance() : device_; - } else { - return deviceBuilder_.getMessage(); - } - } - /** - *
-     * Device on which the operation is run.
-     * 
- * - * .tensorflow.DeviceProperties device = 4; - */ - public Builder setDevice(org.tensorflow.proto.framework.DeviceProperties value) { - if (deviceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - device_ = value; - onChanged(); - } else { - deviceBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Device on which the operation is run.
-     * 
- * - * .tensorflow.DeviceProperties device = 4; - */ - public Builder setDevice( - org.tensorflow.proto.framework.DeviceProperties.Builder builderForValue) { - if (deviceBuilder_ == null) { - device_ = builderForValue.build(); - onChanged(); - } else { - deviceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Device on which the operation is run.
-     * 
- * - * .tensorflow.DeviceProperties device = 4; - */ - public Builder mergeDevice(org.tensorflow.proto.framework.DeviceProperties value) { - if (deviceBuilder_ == null) { - if (device_ != null) { - device_ = - org.tensorflow.proto.framework.DeviceProperties.newBuilder(device_).mergeFrom(value).buildPartial(); - } else { - device_ = value; - } - onChanged(); - } else { - deviceBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Device on which the operation is run.
-     * 
- * - * .tensorflow.DeviceProperties device = 4; - */ - public Builder clearDevice() { - if (deviceBuilder_ == null) { - device_ = null; - onChanged(); - } else { - device_ = null; - deviceBuilder_ = null; - } - - return this; - } - /** - *
-     * Device on which the operation is run.
-     * 
- * - * .tensorflow.DeviceProperties device = 4; - */ - public org.tensorflow.proto.framework.DeviceProperties.Builder getDeviceBuilder() { - - onChanged(); - return getDeviceFieldBuilder().getBuilder(); - } - /** - *
-     * Device on which the operation is run.
-     * 
- * - * .tensorflow.DeviceProperties device = 4; - */ - public org.tensorflow.proto.framework.DevicePropertiesOrBuilder getDeviceOrBuilder() { - if (deviceBuilder_ != null) { - return deviceBuilder_.getMessageOrBuilder(); - } else { - return device_ == null ? - org.tensorflow.proto.framework.DeviceProperties.getDefaultInstance() : device_; - } - } - /** - *
-     * Device on which the operation is run.
-     * 
- * - * .tensorflow.DeviceProperties device = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.DeviceProperties, org.tensorflow.proto.framework.DeviceProperties.Builder, org.tensorflow.proto.framework.DevicePropertiesOrBuilder> - getDeviceFieldBuilder() { - if (deviceBuilder_ == null) { - deviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.DeviceProperties, org.tensorflow.proto.framework.DeviceProperties.Builder, org.tensorflow.proto.framework.DevicePropertiesOrBuilder>( - getDevice(), - getParentForChildren(), - isClean()); - device_ = null; - } - return deviceBuilder_; - } - - private org.tensorflow.proto.framework.SessionInfo sessionInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SessionInfo, org.tensorflow.proto.framework.SessionInfo.Builder, org.tensorflow.proto.framework.SessionInfoOrBuilder> sessionInfoBuilder_; - /** - *
-     * Information about the session configs.
-     * 
- * - * .tensorflow.SessionInfo session_info = 6; - */ - public boolean hasSessionInfo() { - return sessionInfoBuilder_ != null || sessionInfo_ != null; - } - /** - *
-     * Information about the session configs.
-     * 
- * - * .tensorflow.SessionInfo session_info = 6; - */ - public org.tensorflow.proto.framework.SessionInfo getSessionInfo() { - if (sessionInfoBuilder_ == null) { - return sessionInfo_ == null ? org.tensorflow.proto.framework.SessionInfo.getDefaultInstance() : sessionInfo_; - } else { - return sessionInfoBuilder_.getMessage(); - } - } - /** - *
-     * Information about the session configs.
-     * 
- * - * .tensorflow.SessionInfo session_info = 6; - */ - public Builder setSessionInfo(org.tensorflow.proto.framework.SessionInfo value) { - if (sessionInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sessionInfo_ = value; - onChanged(); - } else { - sessionInfoBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Information about the session configs.
-     * 
- * - * .tensorflow.SessionInfo session_info = 6; - */ - public Builder setSessionInfo( - org.tensorflow.proto.framework.SessionInfo.Builder builderForValue) { - if (sessionInfoBuilder_ == null) { - sessionInfo_ = builderForValue.build(); - onChanged(); - } else { - sessionInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Information about the session configs.
-     * 
- * - * .tensorflow.SessionInfo session_info = 6; - */ - public Builder mergeSessionInfo(org.tensorflow.proto.framework.SessionInfo value) { - if (sessionInfoBuilder_ == null) { - if (sessionInfo_ != null) { - sessionInfo_ = - org.tensorflow.proto.framework.SessionInfo.newBuilder(sessionInfo_).mergeFrom(value).buildPartial(); - } else { - sessionInfo_ = value; - } - onChanged(); - } else { - sessionInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Information about the session configs.
-     * 
- * - * .tensorflow.SessionInfo session_info = 6; - */ - public Builder clearSessionInfo() { - if (sessionInfoBuilder_ == null) { - sessionInfo_ = null; - onChanged(); - } else { - sessionInfo_ = null; - sessionInfoBuilder_ = null; - } - - return this; - } - /** - *
-     * Information about the session configs.
-     * 
- * - * .tensorflow.SessionInfo session_info = 6; - */ - public org.tensorflow.proto.framework.SessionInfo.Builder getSessionInfoBuilder() { - - onChanged(); - return getSessionInfoFieldBuilder().getBuilder(); - } - /** - *
-     * Information about the session configs.
-     * 
- * - * .tensorflow.SessionInfo session_info = 6; - */ - public org.tensorflow.proto.framework.SessionInfoOrBuilder getSessionInfoOrBuilder() { - if (sessionInfoBuilder_ != null) { - return sessionInfoBuilder_.getMessageOrBuilder(); - } else { - return sessionInfo_ == null ? - org.tensorflow.proto.framework.SessionInfo.getDefaultInstance() : sessionInfo_; - } - } - /** - *
-     * Information about the session configs.
-     * 
- * - * .tensorflow.SessionInfo session_info = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SessionInfo, org.tensorflow.proto.framework.SessionInfo.Builder, org.tensorflow.proto.framework.SessionInfoOrBuilder> - getSessionInfoFieldBuilder() { - if (sessionInfoBuilder_ == null) { - sessionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SessionInfo, org.tensorflow.proto.framework.SessionInfo.Builder, org.tensorflow.proto.framework.SessionInfoOrBuilder>( - getSessionInfo(), - getParentForChildren(), - isClean()); - sessionInfo_ = null; - } - return sessionInfoBuilder_; - } - @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:tensorflow.OpInfo) - } - - // @@protoc_insertion_point(class_scope:tensorflow.OpInfo) - private static final org.tensorflow.proto.framework.OpInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.OpInfo(); - } - - public static org.tensorflow.proto.framework.OpInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OpInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OpInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpInfoOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpInfoOrBuilder.java deleted file mode 100644 index 675799794a4..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpInfoOrBuilder.java +++ /dev/null @@ -1,199 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/grappler/costs/op_performance_data.proto - -package org.tensorflow.proto.framework; - -public interface OpInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.OpInfo) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The operation name.  There may be custom parameters in attrs.
-   * 
- * - * string op = 1; - */ - java.lang.String getOp(); - /** - *
-   * The operation name.  There may be custom parameters in attrs.
-   * 
- * - * string op = 1; - */ - com.google.protobuf.ByteString - getOpBytes(); - - /** - *
-   * Custom parameters impacting the behavior of the op.
-   * 
- * - * map<string, .tensorflow.AttrValue> attr = 2; - */ - int getAttrCount(); - /** - *
-   * Custom parameters impacting the behavior of the op.
-   * 
- * - * map<string, .tensorflow.AttrValue> attr = 2; - */ - boolean containsAttr( - java.lang.String key); - /** - * Use {@link #getAttrMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getAttr(); - /** - *
-   * Custom parameters impacting the behavior of the op.
-   * 
- * - * map<string, .tensorflow.AttrValue> attr = 2; - */ - java.util.Map - getAttrMap(); - /** - *
-   * Custom parameters impacting the behavior of the op.
-   * 
- * - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - org.tensorflow.proto.framework.AttrValue getAttrOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.AttrValue defaultValue); - /** - *
-   * Custom parameters impacting the behavior of the op.
-   * 
- * - * map<string, .tensorflow.AttrValue> attr = 2; - */ - - org.tensorflow.proto.framework.AttrValue getAttrOrThrow( - java.lang.String key); - - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - java.util.List - getInputsList(); - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - org.tensorflow.proto.framework.OpInfo.TensorProperties getInputs(int index); - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - int getInputsCount(); - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - java.util.List - getInputsOrBuilderList(); - /** - * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - */ - org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder getInputsOrBuilder( - int index); - - /** - *
-   * Optional description of the op outputs
-   * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - java.util.List - getOutputsList(); - /** - *
-   * Optional description of the op outputs
-   * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - org.tensorflow.proto.framework.OpInfo.TensorProperties getOutputs(int index); - /** - *
-   * Optional description of the op outputs
-   * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - int getOutputsCount(); - /** - *
-   * Optional description of the op outputs
-   * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - java.util.List - getOutputsOrBuilderList(); - /** - *
-   * Optional description of the op outputs
-   * 
- * - * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - */ - org.tensorflow.proto.framework.OpInfo.TensorPropertiesOrBuilder getOutputsOrBuilder( - int index); - - /** - *
-   * Device on which the operation is run.
-   * 
- * - * .tensorflow.DeviceProperties device = 4; - */ - boolean hasDevice(); - /** - *
-   * Device on which the operation is run.
-   * 
- * - * .tensorflow.DeviceProperties device = 4; - */ - org.tensorflow.proto.framework.DeviceProperties getDevice(); - /** - *
-   * Device on which the operation is run.
-   * 
- * - * .tensorflow.DeviceProperties device = 4; - */ - org.tensorflow.proto.framework.DevicePropertiesOrBuilder getDeviceOrBuilder(); - - /** - *
-   * Information about the session configs.
-   * 
- * - * .tensorflow.SessionInfo session_info = 6; - */ - boolean hasSessionInfo(); - /** - *
-   * Information about the session configs.
-   * 
- * - * .tensorflow.SessionInfo session_info = 6; - */ - org.tensorflow.proto.framework.SessionInfo getSessionInfo(); - /** - *
-   * Information about the session configs.
-   * 
- * - * .tensorflow.SessionInfo session_info = 6; - */ - org.tensorflow.proto.framework.SessionInfoOrBuilder getSessionInfoOrBuilder(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpList.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpList.java deleted file mode 100644 index 1be81195b29..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpList.java +++ /dev/null @@ -1,773 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/op_def.proto - -package org.tensorflow.proto.framework; - -/** - *
- * A collection of OpDefs
- * 
- * - * Protobuf type {@code tensorflow.OpList} - */ -public final class OpList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.OpList) - OpListOrBuilder { -private static final long serialVersionUID = 0L; - // Use OpList.newBuilder() to construct. - private OpList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OpList() { - op_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OpList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OpList( - 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)) { - op_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - op_.add( - input.readMessage(org.tensorflow.proto.framework.OpDef.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)) { - op_ = java.util.Collections.unmodifiableList(op_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.OpList.class, org.tensorflow.proto.framework.OpList.Builder.class); - } - - public static final int OP_FIELD_NUMBER = 1; - private java.util.List op_; - /** - * repeated .tensorflow.OpDef op = 1; - */ - public java.util.List getOpList() { - return op_; - } - /** - * repeated .tensorflow.OpDef op = 1; - */ - public java.util.List - getOpOrBuilderList() { - return op_; - } - /** - * repeated .tensorflow.OpDef op = 1; - */ - public int getOpCount() { - return op_.size(); - } - /** - * repeated .tensorflow.OpDef op = 1; - */ - public org.tensorflow.proto.framework.OpDef getOp(int index) { - return op_.get(index); - } - /** - * repeated .tensorflow.OpDef op = 1; - */ - public org.tensorflow.proto.framework.OpDefOrBuilder getOpOrBuilder( - int index) { - return op_.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 < op_.size(); i++) { - output.writeMessage(1, op_.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 < op_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, op_.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 org.tensorflow.proto.framework.OpList)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.OpList other = (org.tensorflow.proto.framework.OpList) obj; - - if (!getOpList() - .equals(other.getOpList())) 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 (getOpCount() > 0) { - hash = (37 * hash) + OP_FIELD_NUMBER; - hash = (53 * hash) + getOpList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.OpList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpList 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 org.tensorflow.proto.framework.OpList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpList 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 org.tensorflow.proto.framework.OpList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpList 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(org.tensorflow.proto.framework.OpList 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; - } - /** - *
-   * A collection of OpDefs
-   * 
- * - * Protobuf type {@code tensorflow.OpList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.OpList) - org.tensorflow.proto.framework.OpListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.OpList.class, org.tensorflow.proto.framework.OpList.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.OpList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getOpFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (opBuilder_ == null) { - op_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - opBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.OpDefProtos.internal_static_tensorflow_OpList_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpList getDefaultInstanceForType() { - return org.tensorflow.proto.framework.OpList.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpList build() { - org.tensorflow.proto.framework.OpList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpList buildPartial() { - org.tensorflow.proto.framework.OpList result = new org.tensorflow.proto.framework.OpList(this); - int from_bitField0_ = bitField0_; - if (opBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - op_ = java.util.Collections.unmodifiableList(op_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.op_ = op_; - } else { - result.op_ = opBuilder_.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 org.tensorflow.proto.framework.OpList) { - return mergeFrom((org.tensorflow.proto.framework.OpList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.OpList other) { - if (other == org.tensorflow.proto.framework.OpList.getDefaultInstance()) return this; - if (opBuilder_ == null) { - if (!other.op_.isEmpty()) { - if (op_.isEmpty()) { - op_ = other.op_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOpIsMutable(); - op_.addAll(other.op_); - } - onChanged(); - } - } else { - if (!other.op_.isEmpty()) { - if (opBuilder_.isEmpty()) { - opBuilder_.dispose(); - opBuilder_ = null; - op_ = other.op_; - bitField0_ = (bitField0_ & ~0x00000001); - opBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOpFieldBuilder() : null; - } else { - opBuilder_.addAllMessages(other.op_); - } - } - } - 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 { - org.tensorflow.proto.framework.OpList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.OpList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List op_ = - java.util.Collections.emptyList(); - private void ensureOpIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - op_ = new java.util.ArrayList(op_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.OpDef, org.tensorflow.proto.framework.OpDef.Builder, org.tensorflow.proto.framework.OpDefOrBuilder> opBuilder_; - - /** - * repeated .tensorflow.OpDef op = 1; - */ - public java.util.List getOpList() { - if (opBuilder_ == null) { - return java.util.Collections.unmodifiableList(op_); - } else { - return opBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.OpDef op = 1; - */ - public int getOpCount() { - if (opBuilder_ == null) { - return op_.size(); - } else { - return opBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.OpDef op = 1; - */ - public org.tensorflow.proto.framework.OpDef getOp(int index) { - if (opBuilder_ == null) { - return op_.get(index); - } else { - return opBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.OpDef op = 1; - */ - public Builder setOp( - int index, org.tensorflow.proto.framework.OpDef value) { - if (opBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOpIsMutable(); - op_.set(index, value); - onChanged(); - } else { - opBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.OpDef op = 1; - */ - public Builder setOp( - int index, org.tensorflow.proto.framework.OpDef.Builder builderForValue) { - if (opBuilder_ == null) { - ensureOpIsMutable(); - op_.set(index, builderForValue.build()); - onChanged(); - } else { - opBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.OpDef op = 1; - */ - public Builder addOp(org.tensorflow.proto.framework.OpDef value) { - if (opBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOpIsMutable(); - op_.add(value); - onChanged(); - } else { - opBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.OpDef op = 1; - */ - public Builder addOp( - int index, org.tensorflow.proto.framework.OpDef value) { - if (opBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOpIsMutable(); - op_.add(index, value); - onChanged(); - } else { - opBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.OpDef op = 1; - */ - public Builder addOp( - org.tensorflow.proto.framework.OpDef.Builder builderForValue) { - if (opBuilder_ == null) { - ensureOpIsMutable(); - op_.add(builderForValue.build()); - onChanged(); - } else { - opBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.OpDef op = 1; - */ - public Builder addOp( - int index, org.tensorflow.proto.framework.OpDef.Builder builderForValue) { - if (opBuilder_ == null) { - ensureOpIsMutable(); - op_.add(index, builderForValue.build()); - onChanged(); - } else { - opBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.OpDef op = 1; - */ - public Builder addAllOp( - java.lang.Iterable values) { - if (opBuilder_ == null) { - ensureOpIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, op_); - onChanged(); - } else { - opBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.OpDef op = 1; - */ - public Builder clearOp() { - if (opBuilder_ == null) { - op_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - opBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.OpDef op = 1; - */ - public Builder removeOp(int index) { - if (opBuilder_ == null) { - ensureOpIsMutable(); - op_.remove(index); - onChanged(); - } else { - opBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.OpDef op = 1; - */ - public org.tensorflow.proto.framework.OpDef.Builder getOpBuilder( - int index) { - return getOpFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.OpDef op = 1; - */ - public org.tensorflow.proto.framework.OpDefOrBuilder getOpOrBuilder( - int index) { - if (opBuilder_ == null) { - return op_.get(index); } else { - return opBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.OpDef op = 1; - */ - public java.util.List - getOpOrBuilderList() { - if (opBuilder_ != null) { - return opBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(op_); - } - } - /** - * repeated .tensorflow.OpDef op = 1; - */ - public org.tensorflow.proto.framework.OpDef.Builder addOpBuilder() { - return getOpFieldBuilder().addBuilder( - org.tensorflow.proto.framework.OpDef.getDefaultInstance()); - } - /** - * repeated .tensorflow.OpDef op = 1; - */ - public org.tensorflow.proto.framework.OpDef.Builder addOpBuilder( - int index) { - return getOpFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.OpDef.getDefaultInstance()); - } - /** - * repeated .tensorflow.OpDef op = 1; - */ - public java.util.List - getOpBuilderList() { - return getOpFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.OpDef, org.tensorflow.proto.framework.OpDef.Builder, org.tensorflow.proto.framework.OpDefOrBuilder> - getOpFieldBuilder() { - if (opBuilder_ == null) { - opBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.OpDef, org.tensorflow.proto.framework.OpDef.Builder, org.tensorflow.proto.framework.OpDefOrBuilder>( - op_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - op_ = null; - } - return opBuilder_; - } - @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:tensorflow.OpList) - } - - // @@protoc_insertion_point(class_scope:tensorflow.OpList) - private static final org.tensorflow.proto.framework.OpList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.OpList(); - } - - public static org.tensorflow.proto.framework.OpList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OpList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OpList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpListOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpListOrBuilder.java deleted file mode 100644 index a3fc1fa9856..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpListOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/op_def.proto - -package org.tensorflow.proto.framework; - -public interface OpListOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.OpList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .tensorflow.OpDef op = 1; - */ - java.util.List - getOpList(); - /** - * repeated .tensorflow.OpDef op = 1; - */ - org.tensorflow.proto.framework.OpDef getOp(int index); - /** - * repeated .tensorflow.OpDef op = 1; - */ - int getOpCount(); - /** - * repeated .tensorflow.OpDef op = 1; - */ - java.util.List - getOpOrBuilderList(); - /** - * repeated .tensorflow.OpDef op = 1; - */ - org.tensorflow.proto.framework.OpDefOrBuilder getOpOrBuilder( - int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpPerformance.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpPerformance.java deleted file mode 100644 index 0f25f95dff9..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpPerformance.java +++ /dev/null @@ -1,3074 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/grappler/costs/op_performance_data.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Performance data for tensorflow operations
- * 
- * - * Protobuf type {@code tensorflow.OpPerformance} - */ -public final class OpPerformance extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.OpPerformance) - OpPerformanceOrBuilder { -private static final long serialVersionUID = 0L; - // Use OpPerformance.newBuilder() to construct. - private OpPerformance(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OpPerformance() { - node_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OpPerformance(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OpPerformance( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.tensorflow.proto.framework.OpInfo.Builder subBuilder = null; - if (op_ != null) { - subBuilder = op_.toBuilder(); - } - op_ = input.readMessage(org.tensorflow.proto.framework.OpInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(op_); - op_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - temporaryMemorySize_ = input.readInt64(); - break; - } - case 24: { - - computeCost_ = input.readInt64(); - break; - } - case 33: { - - computeEfficiency_ = input.readDouble(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - node_ = s; - break; - } - case 48: { - - computeTime_ = input.readInt64(); - break; - } - case 56: { - - memoryTime_ = input.readInt64(); - break; - } - case 65: { - - memoryEfficiency_ = input.readDouble(); - break; - } - case 74: { - org.tensorflow.proto.framework.OpPerformance.OpMemory.Builder subBuilder = null; - if (opMemory_ != null) { - subBuilder = opMemory_.toBuilder(); - } - opMemory_ = input.readMessage(org.tensorflow.proto.framework.OpPerformance.OpMemory.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(opMemory_); - opMemory_ = subBuilder.buildPartial(); - } - - break; - } - case 82: { - org.tensorflow.proto.framework.NormalDistribution.Builder subBuilder = null; - if (executionTimeCase_ == 10) { - subBuilder = ((org.tensorflow.proto.framework.NormalDistribution) executionTime_).toBuilder(); - } - executionTime_ = - input.readMessage(org.tensorflow.proto.framework.NormalDistribution.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.NormalDistribution) executionTime_); - executionTime_ = subBuilder.buildPartial(); - } - executionTimeCase_ = 10; - break; - } - case 90: { - org.tensorflow.proto.framework.LogNormalDistribution.Builder subBuilder = null; - if (executionTimeCase_ == 11) { - subBuilder = ((org.tensorflow.proto.framework.LogNormalDistribution) executionTime_).toBuilder(); - } - executionTime_ = - input.readMessage(org.tensorflow.proto.framework.LogNormalDistribution.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.LogNormalDistribution) executionTime_); - executionTime_ = subBuilder.buildPartial(); - } - executionTimeCase_ = 11; - break; - } - case 98: { - org.tensorflow.proto.framework.SessionInfo.Builder subBuilder = null; - if (sessionInfo_ != null) { - subBuilder = sessionInfo_.toBuilder(); - } - sessionInfo_ = input.readMessage(org.tensorflow.proto.framework.SessionInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sessionInfo_); - sessionInfo_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpPerformance_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpPerformance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.OpPerformance.class, org.tensorflow.proto.framework.OpPerformance.Builder.class); - } - - public interface OpMemoryOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.OpPerformance.OpMemory) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The output information may have memory usage and output shapes.
-     * 
- * - * repeated int64 output_memory = 1; - */ - java.util.List getOutputMemoryList(); - /** - *
-     * The output information may have memory usage and output shapes.
-     * 
- * - * repeated int64 output_memory = 1; - */ - int getOutputMemoryCount(); - /** - *
-     * The output information may have memory usage and output shapes.
-     * 
- * - * repeated int64 output_memory = 1; - */ - long getOutputMemory(int index); - - /** - *
-     * Temp and persistent memory allocated by this node.
-     * 
- * - * int64 temp_memory = 2; - */ - long getTempMemory(); - - /** - * int64 persistent_memory = 4; - */ - long getPersistentMemory(); - - /** - * int64 device_temp_memory = 3 [deprecated = true]; - */ - @java.lang.Deprecated long getDeviceTempMemory(); - - /** - * int64 device_persistent_memory = 5 [deprecated = true]; - */ - @java.lang.Deprecated long getDevicePersistentMemory(); - } - /** - *
-   * Memory usage data for a tensorflow operation.
-   * 
- * - * Protobuf type {@code tensorflow.OpPerformance.OpMemory} - */ - public static final class OpMemory extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.OpPerformance.OpMemory) - OpMemoryOrBuilder { - private static final long serialVersionUID = 0L; - // Use OpMemory.newBuilder() to construct. - private OpMemory(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OpMemory() { - outputMemory_ = emptyLongList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OpMemory(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OpMemory( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - outputMemory_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - outputMemory_.addLong(input.readInt64()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - outputMemory_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - outputMemory_.addLong(input.readInt64()); - } - input.popLimit(limit); - break; - } - case 16: { - - tempMemory_ = input.readInt64(); - break; - } - case 24: { - - deviceTempMemory_ = input.readInt64(); - break; - } - case 32: { - - persistentMemory_ = input.readInt64(); - break; - } - case 40: { - - devicePersistentMemory_ = input.readInt64(); - 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)) { - outputMemory_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpPerformance_OpMemory_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpPerformance_OpMemory_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.OpPerformance.OpMemory.class, org.tensorflow.proto.framework.OpPerformance.OpMemory.Builder.class); - } - - public static final int OUTPUT_MEMORY_FIELD_NUMBER = 1; - private com.google.protobuf.Internal.LongList outputMemory_; - /** - *
-     * The output information may have memory usage and output shapes.
-     * 
- * - * repeated int64 output_memory = 1; - */ - public java.util.List - getOutputMemoryList() { - return outputMemory_; - } - /** - *
-     * The output information may have memory usage and output shapes.
-     * 
- * - * repeated int64 output_memory = 1; - */ - public int getOutputMemoryCount() { - return outputMemory_.size(); - } - /** - *
-     * The output information may have memory usage and output shapes.
-     * 
- * - * repeated int64 output_memory = 1; - */ - public long getOutputMemory(int index) { - return outputMemory_.getLong(index); - } - private int outputMemoryMemoizedSerializedSize = -1; - - public static final int TEMP_MEMORY_FIELD_NUMBER = 2; - private long tempMemory_; - /** - *
-     * Temp and persistent memory allocated by this node.
-     * 
- * - * int64 temp_memory = 2; - */ - public long getTempMemory() { - return tempMemory_; - } - - public static final int PERSISTENT_MEMORY_FIELD_NUMBER = 4; - private long persistentMemory_; - /** - * int64 persistent_memory = 4; - */ - public long getPersistentMemory() { - return persistentMemory_; - } - - public static final int DEVICE_TEMP_MEMORY_FIELD_NUMBER = 3; - private long deviceTempMemory_; - /** - * int64 device_temp_memory = 3 [deprecated = true]; - */ - @java.lang.Deprecated public long getDeviceTempMemory() { - return deviceTempMemory_; - } - - public static final int DEVICE_PERSISTENT_MEMORY_FIELD_NUMBER = 5; - private long devicePersistentMemory_; - /** - * int64 device_persistent_memory = 5 [deprecated = true]; - */ - @java.lang.Deprecated public long getDevicePersistentMemory() { - return devicePersistentMemory_; - } - - 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 { - getSerializedSize(); - if (getOutputMemoryList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(outputMemoryMemoizedSerializedSize); - } - for (int i = 0; i < outputMemory_.size(); i++) { - output.writeInt64NoTag(outputMemory_.getLong(i)); - } - if (tempMemory_ != 0L) { - output.writeInt64(2, tempMemory_); - } - if (deviceTempMemory_ != 0L) { - output.writeInt64(3, deviceTempMemory_); - } - if (persistentMemory_ != 0L) { - output.writeInt64(4, persistentMemory_); - } - if (devicePersistentMemory_ != 0L) { - output.writeInt64(5, devicePersistentMemory_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < outputMemory_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(outputMemory_.getLong(i)); - } - size += dataSize; - if (!getOutputMemoryList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - outputMemoryMemoizedSerializedSize = dataSize; - } - if (tempMemory_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, tempMemory_); - } - if (deviceTempMemory_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, deviceTempMemory_); - } - if (persistentMemory_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, persistentMemory_); - } - if (devicePersistentMemory_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, devicePersistentMemory_); - } - 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 org.tensorflow.proto.framework.OpPerformance.OpMemory)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.OpPerformance.OpMemory other = (org.tensorflow.proto.framework.OpPerformance.OpMemory) obj; - - if (!getOutputMemoryList() - .equals(other.getOutputMemoryList())) return false; - if (getTempMemory() - != other.getTempMemory()) return false; - if (getPersistentMemory() - != other.getPersistentMemory()) return false; - if (getDeviceTempMemory() - != other.getDeviceTempMemory()) return false; - if (getDevicePersistentMemory() - != other.getDevicePersistentMemory()) 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 (getOutputMemoryCount() > 0) { - hash = (37 * hash) + OUTPUT_MEMORY_FIELD_NUMBER; - hash = (53 * hash) + getOutputMemoryList().hashCode(); - } - hash = (37 * hash) + TEMP_MEMORY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTempMemory()); - hash = (37 * hash) + PERSISTENT_MEMORY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPersistentMemory()); - hash = (37 * hash) + DEVICE_TEMP_MEMORY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDeviceTempMemory()); - hash = (37 * hash) + DEVICE_PERSISTENT_MEMORY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDevicePersistentMemory()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.OpPerformance.OpMemory parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpPerformance.OpMemory parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpPerformance.OpMemory parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpPerformance.OpMemory parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpPerformance.OpMemory parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpPerformance.OpMemory parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpPerformance.OpMemory parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpPerformance.OpMemory 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 org.tensorflow.proto.framework.OpPerformance.OpMemory parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpPerformance.OpMemory 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 org.tensorflow.proto.framework.OpPerformance.OpMemory parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpPerformance.OpMemory 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(org.tensorflow.proto.framework.OpPerformance.OpMemory 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; - } - /** - *
-     * Memory usage data for a tensorflow operation.
-     * 
- * - * Protobuf type {@code tensorflow.OpPerformance.OpMemory} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.OpPerformance.OpMemory) - org.tensorflow.proto.framework.OpPerformance.OpMemoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpPerformance_OpMemory_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpPerformance_OpMemory_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.OpPerformance.OpMemory.class, org.tensorflow.proto.framework.OpPerformance.OpMemory.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.OpPerformance.OpMemory.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - outputMemory_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - tempMemory_ = 0L; - - persistentMemory_ = 0L; - - deviceTempMemory_ = 0L; - - devicePersistentMemory_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpPerformance_OpMemory_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpPerformance.OpMemory getDefaultInstanceForType() { - return org.tensorflow.proto.framework.OpPerformance.OpMemory.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpPerformance.OpMemory build() { - org.tensorflow.proto.framework.OpPerformance.OpMemory result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpPerformance.OpMemory buildPartial() { - org.tensorflow.proto.framework.OpPerformance.OpMemory result = new org.tensorflow.proto.framework.OpPerformance.OpMemory(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - outputMemory_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.outputMemory_ = outputMemory_; - result.tempMemory_ = tempMemory_; - result.persistentMemory_ = persistentMemory_; - result.deviceTempMemory_ = deviceTempMemory_; - result.devicePersistentMemory_ = devicePersistentMemory_; - 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 org.tensorflow.proto.framework.OpPerformance.OpMemory) { - return mergeFrom((org.tensorflow.proto.framework.OpPerformance.OpMemory)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.OpPerformance.OpMemory other) { - if (other == org.tensorflow.proto.framework.OpPerformance.OpMemory.getDefaultInstance()) return this; - if (!other.outputMemory_.isEmpty()) { - if (outputMemory_.isEmpty()) { - outputMemory_ = other.outputMemory_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOutputMemoryIsMutable(); - outputMemory_.addAll(other.outputMemory_); - } - onChanged(); - } - if (other.getTempMemory() != 0L) { - setTempMemory(other.getTempMemory()); - } - if (other.getPersistentMemory() != 0L) { - setPersistentMemory(other.getPersistentMemory()); - } - if (other.getDeviceTempMemory() != 0L) { - setDeviceTempMemory(other.getDeviceTempMemory()); - } - if (other.getDevicePersistentMemory() != 0L) { - setDevicePersistentMemory(other.getDevicePersistentMemory()); - } - 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 { - org.tensorflow.proto.framework.OpPerformance.OpMemory parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.OpPerformance.OpMemory) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.Internal.LongList outputMemory_ = emptyLongList(); - private void ensureOutputMemoryIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - outputMemory_ = mutableCopy(outputMemory_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * The output information may have memory usage and output shapes.
-       * 
- * - * repeated int64 output_memory = 1; - */ - public java.util.List - getOutputMemoryList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(outputMemory_) : outputMemory_; - } - /** - *
-       * The output information may have memory usage and output shapes.
-       * 
- * - * repeated int64 output_memory = 1; - */ - public int getOutputMemoryCount() { - return outputMemory_.size(); - } - /** - *
-       * The output information may have memory usage and output shapes.
-       * 
- * - * repeated int64 output_memory = 1; - */ - public long getOutputMemory(int index) { - return outputMemory_.getLong(index); - } - /** - *
-       * The output information may have memory usage and output shapes.
-       * 
- * - * repeated int64 output_memory = 1; - */ - public Builder setOutputMemory( - int index, long value) { - ensureOutputMemoryIsMutable(); - outputMemory_.setLong(index, value); - onChanged(); - return this; - } - /** - *
-       * The output information may have memory usage and output shapes.
-       * 
- * - * repeated int64 output_memory = 1; - */ - public Builder addOutputMemory(long value) { - ensureOutputMemoryIsMutable(); - outputMemory_.addLong(value); - onChanged(); - return this; - } - /** - *
-       * The output information may have memory usage and output shapes.
-       * 
- * - * repeated int64 output_memory = 1; - */ - public Builder addAllOutputMemory( - java.lang.Iterable values) { - ensureOutputMemoryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, outputMemory_); - onChanged(); - return this; - } - /** - *
-       * The output information may have memory usage and output shapes.
-       * 
- * - * repeated int64 output_memory = 1; - */ - public Builder clearOutputMemory() { - outputMemory_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private long tempMemory_ ; - /** - *
-       * Temp and persistent memory allocated by this node.
-       * 
- * - * int64 temp_memory = 2; - */ - public long getTempMemory() { - return tempMemory_; - } - /** - *
-       * Temp and persistent memory allocated by this node.
-       * 
- * - * int64 temp_memory = 2; - */ - public Builder setTempMemory(long value) { - - tempMemory_ = value; - onChanged(); - return this; - } - /** - *
-       * Temp and persistent memory allocated by this node.
-       * 
- * - * int64 temp_memory = 2; - */ - public Builder clearTempMemory() { - - tempMemory_ = 0L; - onChanged(); - return this; - } - - private long persistentMemory_ ; - /** - * int64 persistent_memory = 4; - */ - public long getPersistentMemory() { - return persistentMemory_; - } - /** - * int64 persistent_memory = 4; - */ - public Builder setPersistentMemory(long value) { - - persistentMemory_ = value; - onChanged(); - return this; - } - /** - * int64 persistent_memory = 4; - */ - public Builder clearPersistentMemory() { - - persistentMemory_ = 0L; - onChanged(); - return this; - } - - private long deviceTempMemory_ ; - /** - * int64 device_temp_memory = 3 [deprecated = true]; - */ - @java.lang.Deprecated public long getDeviceTempMemory() { - return deviceTempMemory_; - } - /** - * int64 device_temp_memory = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setDeviceTempMemory(long value) { - - deviceTempMemory_ = value; - onChanged(); - return this; - } - /** - * int64 device_temp_memory = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearDeviceTempMemory() { - - deviceTempMemory_ = 0L; - onChanged(); - return this; - } - - private long devicePersistentMemory_ ; - /** - * int64 device_persistent_memory = 5 [deprecated = true]; - */ - @java.lang.Deprecated public long getDevicePersistentMemory() { - return devicePersistentMemory_; - } - /** - * int64 device_persistent_memory = 5 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setDevicePersistentMemory(long value) { - - devicePersistentMemory_ = value; - onChanged(); - return this; - } - /** - * int64 device_persistent_memory = 5 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearDevicePersistentMemory() { - - devicePersistentMemory_ = 0L; - 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:tensorflow.OpPerformance.OpMemory) - } - - // @@protoc_insertion_point(class_scope:tensorflow.OpPerformance.OpMemory) - private static final org.tensorflow.proto.framework.OpPerformance.OpMemory DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.OpPerformance.OpMemory(); - } - - public static org.tensorflow.proto.framework.OpPerformance.OpMemory getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OpMemory parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OpMemory(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpPerformance.OpMemory getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int executionTimeCase_ = 0; - private java.lang.Object executionTime_; - public enum ExecutionTimeCase - implements com.google.protobuf.Internal.EnumLite { - EXECUTION_TIME_NORMAL(10), - EXECUTION_TIME_LOG_NORMAL(11), - EXECUTIONTIME_NOT_SET(0); - private final int value; - private ExecutionTimeCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ExecutionTimeCase valueOf(int value) { - return forNumber(value); - } - - public static ExecutionTimeCase forNumber(int value) { - switch (value) { - case 10: return EXECUTION_TIME_NORMAL; - case 11: return EXECUTION_TIME_LOG_NORMAL; - case 0: return EXECUTIONTIME_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ExecutionTimeCase - getExecutionTimeCase() { - return ExecutionTimeCase.forNumber( - executionTimeCase_); - } - - public static final int OP_FIELD_NUMBER = 1; - private org.tensorflow.proto.framework.OpInfo op_; - /** - *
-   * The op
-   * 
- * - * .tensorflow.OpInfo op = 1; - */ - public boolean hasOp() { - return op_ != null; - } - /** - *
-   * The op
-   * 
- * - * .tensorflow.OpInfo op = 1; - */ - public org.tensorflow.proto.framework.OpInfo getOp() { - return op_ == null ? org.tensorflow.proto.framework.OpInfo.getDefaultInstance() : op_; - } - /** - *
-   * The op
-   * 
- * - * .tensorflow.OpInfo op = 1; - */ - public org.tensorflow.proto.framework.OpInfoOrBuilder getOpOrBuilder() { - return getOp(); - } - - public static final int SESSION_INFO_FIELD_NUMBER = 12; - private org.tensorflow.proto.framework.SessionInfo sessionInfo_; - /** - *
-   * Information about the session configs.
-   * 
- * - * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasSessionInfo() { - return sessionInfo_ != null; - } - /** - *
-   * Information about the session configs.
-   * 
- * - * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; - */ - @java.lang.Deprecated public org.tensorflow.proto.framework.SessionInfo getSessionInfo() { - return sessionInfo_ == null ? org.tensorflow.proto.framework.SessionInfo.getDefaultInstance() : sessionInfo_; - } - /** - *
-   * Information about the session configs.
-   * 
- * - * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; - */ - @java.lang.Deprecated public org.tensorflow.proto.framework.SessionInfoOrBuilder getSessionInfoOrBuilder() { - return getSessionInfo(); - } - - public static final int NODE_FIELD_NUMBER = 5; - private volatile java.lang.Object node_; - /** - *
-   * The node name (optional). Makes it easier to associate the performance data
-   * with a specific graph node.
-   * 
- * - * string node = 5; - */ - public java.lang.String getNode() { - java.lang.Object ref = node_; - 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(); - node_ = s; - return s; - } - } - /** - *
-   * The node name (optional). Makes it easier to associate the performance data
-   * with a specific graph node.
-   * 
- * - * string node = 5; - */ - public com.google.protobuf.ByteString - getNodeBytes() { - java.lang.Object ref = node_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - node_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TEMPORARY_MEMORY_SIZE_FIELD_NUMBER = 2; - private long temporaryMemorySize_; - /** - *
-   * Temporary memory used by this node (in bytes).
-   * 
- * - * int64 temporary_memory_size = 2; - */ - public long getTemporaryMemorySize() { - return temporaryMemorySize_; - } - - public static final int COMPUTE_COST_FIELD_NUMBER = 3; - private long computeCost_; - /** - *
-   * Time it takes to run the op (in nanoseconds).
-   * 
- * - * int64 compute_cost = 3; - */ - public long getComputeCost() { - return computeCost_; - } - - public static final int COMPUTE_TIME_FIELD_NUMBER = 6; - private long computeTime_; - /** - *
-   * Analytical compute cost (in nanoseconds).
-   * 
- * - * int64 compute_time = 6; - */ - public long getComputeTime() { - return computeTime_; - } - - public static final int MEMORY_TIME_FIELD_NUMBER = 7; - private long memoryTime_; - /** - *
-   * Analytical memory access cost (in nanoseconds).
-   * 
- * - * int64 memory_time = 7; - */ - public long getMemoryTime() { - return memoryTime_; - } - - public static final int COMPUTE_EFFICIENCY_FIELD_NUMBER = 4; - private double computeEfficiency_; - /** - *
-   * Percentage of theoretical compute performance.
-   * 
- * - * double compute_efficiency = 4; - */ - public double getComputeEfficiency() { - return computeEfficiency_; - } - - public static final int MEMORY_EFFICIENCY_FIELD_NUMBER = 8; - private double memoryEfficiency_; - /** - *
-   * Percentage of theoretical memory performance.
-   * 
- * - * double memory_efficiency = 8; - */ - public double getMemoryEfficiency() { - return memoryEfficiency_; - } - - public static final int EXECUTION_TIME_NORMAL_FIELD_NUMBER = 10; - /** - * .tensorflow.NormalDistribution execution_time_normal = 10; - */ - public boolean hasExecutionTimeNormal() { - return executionTimeCase_ == 10; - } - /** - * .tensorflow.NormalDistribution execution_time_normal = 10; - */ - public org.tensorflow.proto.framework.NormalDistribution getExecutionTimeNormal() { - if (executionTimeCase_ == 10) { - return (org.tensorflow.proto.framework.NormalDistribution) executionTime_; - } - return org.tensorflow.proto.framework.NormalDistribution.getDefaultInstance(); - } - /** - * .tensorflow.NormalDistribution execution_time_normal = 10; - */ - public org.tensorflow.proto.framework.NormalDistributionOrBuilder getExecutionTimeNormalOrBuilder() { - if (executionTimeCase_ == 10) { - return (org.tensorflow.proto.framework.NormalDistribution) executionTime_; - } - return org.tensorflow.proto.framework.NormalDistribution.getDefaultInstance(); - } - - public static final int EXECUTION_TIME_LOG_NORMAL_FIELD_NUMBER = 11; - /** - * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; - */ - public boolean hasExecutionTimeLogNormal() { - return executionTimeCase_ == 11; - } - /** - * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; - */ - public org.tensorflow.proto.framework.LogNormalDistribution getExecutionTimeLogNormal() { - if (executionTimeCase_ == 11) { - return (org.tensorflow.proto.framework.LogNormalDistribution) executionTime_; - } - return org.tensorflow.proto.framework.LogNormalDistribution.getDefaultInstance(); - } - /** - * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; - */ - public org.tensorflow.proto.framework.LogNormalDistributionOrBuilder getExecutionTimeLogNormalOrBuilder() { - if (executionTimeCase_ == 11) { - return (org.tensorflow.proto.framework.LogNormalDistribution) executionTime_; - } - return org.tensorflow.proto.framework.LogNormalDistribution.getDefaultInstance(); - } - - public static final int OP_MEMORY_FIELD_NUMBER = 9; - private org.tensorflow.proto.framework.OpPerformance.OpMemory opMemory_; - /** - * .tensorflow.OpPerformance.OpMemory op_memory = 9; - */ - public boolean hasOpMemory() { - return opMemory_ != null; - } - /** - * .tensorflow.OpPerformance.OpMemory op_memory = 9; - */ - public org.tensorflow.proto.framework.OpPerformance.OpMemory getOpMemory() { - return opMemory_ == null ? org.tensorflow.proto.framework.OpPerformance.OpMemory.getDefaultInstance() : opMemory_; - } - /** - * .tensorflow.OpPerformance.OpMemory op_memory = 9; - */ - public org.tensorflow.proto.framework.OpPerformance.OpMemoryOrBuilder getOpMemoryOrBuilder() { - return getOpMemory(); - } - - 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 (op_ != null) { - output.writeMessage(1, getOp()); - } - if (temporaryMemorySize_ != 0L) { - output.writeInt64(2, temporaryMemorySize_); - } - if (computeCost_ != 0L) { - output.writeInt64(3, computeCost_); - } - if (computeEfficiency_ != 0D) { - output.writeDouble(4, computeEfficiency_); - } - if (!getNodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, node_); - } - if (computeTime_ != 0L) { - output.writeInt64(6, computeTime_); - } - if (memoryTime_ != 0L) { - output.writeInt64(7, memoryTime_); - } - if (memoryEfficiency_ != 0D) { - output.writeDouble(8, memoryEfficiency_); - } - if (opMemory_ != null) { - output.writeMessage(9, getOpMemory()); - } - if (executionTimeCase_ == 10) { - output.writeMessage(10, (org.tensorflow.proto.framework.NormalDistribution) executionTime_); - } - if (executionTimeCase_ == 11) { - output.writeMessage(11, (org.tensorflow.proto.framework.LogNormalDistribution) executionTime_); - } - if (sessionInfo_ != null) { - output.writeMessage(12, getSessionInfo()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (op_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOp()); - } - if (temporaryMemorySize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, temporaryMemorySize_); - } - if (computeCost_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, computeCost_); - } - if (computeEfficiency_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(4, computeEfficiency_); - } - if (!getNodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, node_); - } - if (computeTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, computeTime_); - } - if (memoryTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, memoryTime_); - } - if (memoryEfficiency_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(8, memoryEfficiency_); - } - if (opMemory_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getOpMemory()); - } - if (executionTimeCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (org.tensorflow.proto.framework.NormalDistribution) executionTime_); - } - if (executionTimeCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (org.tensorflow.proto.framework.LogNormalDistribution) executionTime_); - } - if (sessionInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getSessionInfo()); - } - 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 org.tensorflow.proto.framework.OpPerformance)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.OpPerformance other = (org.tensorflow.proto.framework.OpPerformance) obj; - - if (hasOp() != other.hasOp()) return false; - if (hasOp()) { - if (!getOp() - .equals(other.getOp())) return false; - } - if (hasSessionInfo() != other.hasSessionInfo()) return false; - if (hasSessionInfo()) { - if (!getSessionInfo() - .equals(other.getSessionInfo())) return false; - } - if (!getNode() - .equals(other.getNode())) return false; - if (getTemporaryMemorySize() - != other.getTemporaryMemorySize()) return false; - if (getComputeCost() - != other.getComputeCost()) return false; - if (getComputeTime() - != other.getComputeTime()) return false; - if (getMemoryTime() - != other.getMemoryTime()) return false; - if (java.lang.Double.doubleToLongBits(getComputeEfficiency()) - != java.lang.Double.doubleToLongBits( - other.getComputeEfficiency())) return false; - if (java.lang.Double.doubleToLongBits(getMemoryEfficiency()) - != java.lang.Double.doubleToLongBits( - other.getMemoryEfficiency())) return false; - if (hasOpMemory() != other.hasOpMemory()) return false; - if (hasOpMemory()) { - if (!getOpMemory() - .equals(other.getOpMemory())) return false; - } - if (!getExecutionTimeCase().equals(other.getExecutionTimeCase())) return false; - switch (executionTimeCase_) { - case 10: - if (!getExecutionTimeNormal() - .equals(other.getExecutionTimeNormal())) return false; - break; - case 11: - if (!getExecutionTimeLogNormal() - .equals(other.getExecutionTimeLogNormal())) return false; - break; - case 0: - default: - } - 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 (hasOp()) { - hash = (37 * hash) + OP_FIELD_NUMBER; - hash = (53 * hash) + getOp().hashCode(); - } - if (hasSessionInfo()) { - hash = (37 * hash) + SESSION_INFO_FIELD_NUMBER; - hash = (53 * hash) + getSessionInfo().hashCode(); - } - hash = (37 * hash) + NODE_FIELD_NUMBER; - hash = (53 * hash) + getNode().hashCode(); - hash = (37 * hash) + TEMPORARY_MEMORY_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTemporaryMemorySize()); - hash = (37 * hash) + COMPUTE_COST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getComputeCost()); - hash = (37 * hash) + COMPUTE_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getComputeTime()); - hash = (37 * hash) + MEMORY_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMemoryTime()); - hash = (37 * hash) + COMPUTE_EFFICIENCY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getComputeEfficiency())); - hash = (37 * hash) + MEMORY_EFFICIENCY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMemoryEfficiency())); - if (hasOpMemory()) { - hash = (37 * hash) + OP_MEMORY_FIELD_NUMBER; - hash = (53 * hash) + getOpMemory().hashCode(); - } - switch (executionTimeCase_) { - case 10: - hash = (37 * hash) + EXECUTION_TIME_NORMAL_FIELD_NUMBER; - hash = (53 * hash) + getExecutionTimeNormal().hashCode(); - break; - case 11: - hash = (37 * hash) + EXECUTION_TIME_LOG_NORMAL_FIELD_NUMBER; - hash = (53 * hash) + getExecutionTimeLogNormal().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.OpPerformance parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpPerformance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpPerformance parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpPerformance parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpPerformance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpPerformance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpPerformance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpPerformance 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 org.tensorflow.proto.framework.OpPerformance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpPerformance 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 org.tensorflow.proto.framework.OpPerformance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpPerformance 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(org.tensorflow.proto.framework.OpPerformance 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; - } - /** - *
-   * Performance data for tensorflow operations
-   * 
- * - * Protobuf type {@code tensorflow.OpPerformance} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.OpPerformance) - org.tensorflow.proto.framework.OpPerformanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpPerformance_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpPerformance_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.OpPerformance.class, org.tensorflow.proto.framework.OpPerformance.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.OpPerformance.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (opBuilder_ == null) { - op_ = null; - } else { - op_ = null; - opBuilder_ = null; - } - if (sessionInfoBuilder_ == null) { - sessionInfo_ = null; - } else { - sessionInfo_ = null; - sessionInfoBuilder_ = null; - } - node_ = ""; - - temporaryMemorySize_ = 0L; - - computeCost_ = 0L; - - computeTime_ = 0L; - - memoryTime_ = 0L; - - computeEfficiency_ = 0D; - - memoryEfficiency_ = 0D; - - if (opMemoryBuilder_ == null) { - opMemory_ = null; - } else { - opMemory_ = null; - opMemoryBuilder_ = null; - } - executionTimeCase_ = 0; - executionTime_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpPerformance_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpPerformance getDefaultInstanceForType() { - return org.tensorflow.proto.framework.OpPerformance.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpPerformance build() { - org.tensorflow.proto.framework.OpPerformance result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpPerformance buildPartial() { - org.tensorflow.proto.framework.OpPerformance result = new org.tensorflow.proto.framework.OpPerformance(this); - if (opBuilder_ == null) { - result.op_ = op_; - } else { - result.op_ = opBuilder_.build(); - } - if (sessionInfoBuilder_ == null) { - result.sessionInfo_ = sessionInfo_; - } else { - result.sessionInfo_ = sessionInfoBuilder_.build(); - } - result.node_ = node_; - result.temporaryMemorySize_ = temporaryMemorySize_; - result.computeCost_ = computeCost_; - result.computeTime_ = computeTime_; - result.memoryTime_ = memoryTime_; - result.computeEfficiency_ = computeEfficiency_; - result.memoryEfficiency_ = memoryEfficiency_; - if (executionTimeCase_ == 10) { - if (executionTimeNormalBuilder_ == null) { - result.executionTime_ = executionTime_; - } else { - result.executionTime_ = executionTimeNormalBuilder_.build(); - } - } - if (executionTimeCase_ == 11) { - if (executionTimeLogNormalBuilder_ == null) { - result.executionTime_ = executionTime_; - } else { - result.executionTime_ = executionTimeLogNormalBuilder_.build(); - } - } - if (opMemoryBuilder_ == null) { - result.opMemory_ = opMemory_; - } else { - result.opMemory_ = opMemoryBuilder_.build(); - } - result.executionTimeCase_ = executionTimeCase_; - 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 org.tensorflow.proto.framework.OpPerformance) { - return mergeFrom((org.tensorflow.proto.framework.OpPerformance)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.OpPerformance other) { - if (other == org.tensorflow.proto.framework.OpPerformance.getDefaultInstance()) return this; - if (other.hasOp()) { - mergeOp(other.getOp()); - } - if (other.hasSessionInfo()) { - mergeSessionInfo(other.getSessionInfo()); - } - if (!other.getNode().isEmpty()) { - node_ = other.node_; - onChanged(); - } - if (other.getTemporaryMemorySize() != 0L) { - setTemporaryMemorySize(other.getTemporaryMemorySize()); - } - if (other.getComputeCost() != 0L) { - setComputeCost(other.getComputeCost()); - } - if (other.getComputeTime() != 0L) { - setComputeTime(other.getComputeTime()); - } - if (other.getMemoryTime() != 0L) { - setMemoryTime(other.getMemoryTime()); - } - if (other.getComputeEfficiency() != 0D) { - setComputeEfficiency(other.getComputeEfficiency()); - } - if (other.getMemoryEfficiency() != 0D) { - setMemoryEfficiency(other.getMemoryEfficiency()); - } - if (other.hasOpMemory()) { - mergeOpMemory(other.getOpMemory()); - } - switch (other.getExecutionTimeCase()) { - case EXECUTION_TIME_NORMAL: { - mergeExecutionTimeNormal(other.getExecutionTimeNormal()); - break; - } - case EXECUTION_TIME_LOG_NORMAL: { - mergeExecutionTimeLogNormal(other.getExecutionTimeLogNormal()); - break; - } - case EXECUTIONTIME_NOT_SET: { - break; - } - } - 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 { - org.tensorflow.proto.framework.OpPerformance parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.OpPerformance) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int executionTimeCase_ = 0; - private java.lang.Object executionTime_; - public ExecutionTimeCase - getExecutionTimeCase() { - return ExecutionTimeCase.forNumber( - executionTimeCase_); - } - - public Builder clearExecutionTime() { - executionTimeCase_ = 0; - executionTime_ = null; - onChanged(); - return this; - } - - - private org.tensorflow.proto.framework.OpInfo op_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.OpInfo, org.tensorflow.proto.framework.OpInfo.Builder, org.tensorflow.proto.framework.OpInfoOrBuilder> opBuilder_; - /** - *
-     * The op
-     * 
- * - * .tensorflow.OpInfo op = 1; - */ - public boolean hasOp() { - return opBuilder_ != null || op_ != null; - } - /** - *
-     * The op
-     * 
- * - * .tensorflow.OpInfo op = 1; - */ - public org.tensorflow.proto.framework.OpInfo getOp() { - if (opBuilder_ == null) { - return op_ == null ? org.tensorflow.proto.framework.OpInfo.getDefaultInstance() : op_; - } else { - return opBuilder_.getMessage(); - } - } - /** - *
-     * The op
-     * 
- * - * .tensorflow.OpInfo op = 1; - */ - public Builder setOp(org.tensorflow.proto.framework.OpInfo value) { - if (opBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - op_ = value; - onChanged(); - } else { - opBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The op
-     * 
- * - * .tensorflow.OpInfo op = 1; - */ - public Builder setOp( - org.tensorflow.proto.framework.OpInfo.Builder builderForValue) { - if (opBuilder_ == null) { - op_ = builderForValue.build(); - onChanged(); - } else { - opBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The op
-     * 
- * - * .tensorflow.OpInfo op = 1; - */ - public Builder mergeOp(org.tensorflow.proto.framework.OpInfo value) { - if (opBuilder_ == null) { - if (op_ != null) { - op_ = - org.tensorflow.proto.framework.OpInfo.newBuilder(op_).mergeFrom(value).buildPartial(); - } else { - op_ = value; - } - onChanged(); - } else { - opBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The op
-     * 
- * - * .tensorflow.OpInfo op = 1; - */ - public Builder clearOp() { - if (opBuilder_ == null) { - op_ = null; - onChanged(); - } else { - op_ = null; - opBuilder_ = null; - } - - return this; - } - /** - *
-     * The op
-     * 
- * - * .tensorflow.OpInfo op = 1; - */ - public org.tensorflow.proto.framework.OpInfo.Builder getOpBuilder() { - - onChanged(); - return getOpFieldBuilder().getBuilder(); - } - /** - *
-     * The op
-     * 
- * - * .tensorflow.OpInfo op = 1; - */ - public org.tensorflow.proto.framework.OpInfoOrBuilder getOpOrBuilder() { - if (opBuilder_ != null) { - return opBuilder_.getMessageOrBuilder(); - } else { - return op_ == null ? - org.tensorflow.proto.framework.OpInfo.getDefaultInstance() : op_; - } - } - /** - *
-     * The op
-     * 
- * - * .tensorflow.OpInfo op = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.OpInfo, org.tensorflow.proto.framework.OpInfo.Builder, org.tensorflow.proto.framework.OpInfoOrBuilder> - getOpFieldBuilder() { - if (opBuilder_ == null) { - opBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.OpInfo, org.tensorflow.proto.framework.OpInfo.Builder, org.tensorflow.proto.framework.OpInfoOrBuilder>( - getOp(), - getParentForChildren(), - isClean()); - op_ = null; - } - return opBuilder_; - } - - private org.tensorflow.proto.framework.SessionInfo sessionInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SessionInfo, org.tensorflow.proto.framework.SessionInfo.Builder, org.tensorflow.proto.framework.SessionInfoOrBuilder> sessionInfoBuilder_; - /** - *
-     * Information about the session configs.
-     * 
- * - * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasSessionInfo() { - return sessionInfoBuilder_ != null || sessionInfo_ != null; - } - /** - *
-     * Information about the session configs.
-     * 
- * - * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; - */ - @java.lang.Deprecated public org.tensorflow.proto.framework.SessionInfo getSessionInfo() { - if (sessionInfoBuilder_ == null) { - return sessionInfo_ == null ? org.tensorflow.proto.framework.SessionInfo.getDefaultInstance() : sessionInfo_; - } else { - return sessionInfoBuilder_.getMessage(); - } - } - /** - *
-     * Information about the session configs.
-     * 
- * - * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setSessionInfo(org.tensorflow.proto.framework.SessionInfo value) { - if (sessionInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sessionInfo_ = value; - onChanged(); - } else { - sessionInfoBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Information about the session configs.
-     * 
- * - * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setSessionInfo( - org.tensorflow.proto.framework.SessionInfo.Builder builderForValue) { - if (sessionInfoBuilder_ == null) { - sessionInfo_ = builderForValue.build(); - onChanged(); - } else { - sessionInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Information about the session configs.
-     * 
- * - * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeSessionInfo(org.tensorflow.proto.framework.SessionInfo value) { - if (sessionInfoBuilder_ == null) { - if (sessionInfo_ != null) { - sessionInfo_ = - org.tensorflow.proto.framework.SessionInfo.newBuilder(sessionInfo_).mergeFrom(value).buildPartial(); - } else { - sessionInfo_ = value; - } - onChanged(); - } else { - sessionInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Information about the session configs.
-     * 
- * - * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearSessionInfo() { - if (sessionInfoBuilder_ == null) { - sessionInfo_ = null; - onChanged(); - } else { - sessionInfo_ = null; - sessionInfoBuilder_ = null; - } - - return this; - } - /** - *
-     * Information about the session configs.
-     * 
- * - * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; - */ - @java.lang.Deprecated public org.tensorflow.proto.framework.SessionInfo.Builder getSessionInfoBuilder() { - - onChanged(); - return getSessionInfoFieldBuilder().getBuilder(); - } - /** - *
-     * Information about the session configs.
-     * 
- * - * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; - */ - @java.lang.Deprecated public org.tensorflow.proto.framework.SessionInfoOrBuilder getSessionInfoOrBuilder() { - if (sessionInfoBuilder_ != null) { - return sessionInfoBuilder_.getMessageOrBuilder(); - } else { - return sessionInfo_ == null ? - org.tensorflow.proto.framework.SessionInfo.getDefaultInstance() : sessionInfo_; - } - } - /** - *
-     * Information about the session configs.
-     * 
- * - * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SessionInfo, org.tensorflow.proto.framework.SessionInfo.Builder, org.tensorflow.proto.framework.SessionInfoOrBuilder> - getSessionInfoFieldBuilder() { - if (sessionInfoBuilder_ == null) { - sessionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SessionInfo, org.tensorflow.proto.framework.SessionInfo.Builder, org.tensorflow.proto.framework.SessionInfoOrBuilder>( - getSessionInfo(), - getParentForChildren(), - isClean()); - sessionInfo_ = null; - } - return sessionInfoBuilder_; - } - - private java.lang.Object node_ = ""; - /** - *
-     * The node name (optional). Makes it easier to associate the performance data
-     * with a specific graph node.
-     * 
- * - * string node = 5; - */ - public java.lang.String getNode() { - java.lang.Object ref = node_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - node_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The node name (optional). Makes it easier to associate the performance data
-     * with a specific graph node.
-     * 
- * - * string node = 5; - */ - public com.google.protobuf.ByteString - getNodeBytes() { - java.lang.Object ref = node_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - node_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The node name (optional). Makes it easier to associate the performance data
-     * with a specific graph node.
-     * 
- * - * string node = 5; - */ - public Builder setNode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - node_ = value; - onChanged(); - return this; - } - /** - *
-     * The node name (optional). Makes it easier to associate the performance data
-     * with a specific graph node.
-     * 
- * - * string node = 5; - */ - public Builder clearNode() { - - node_ = getDefaultInstance().getNode(); - onChanged(); - return this; - } - /** - *
-     * The node name (optional). Makes it easier to associate the performance data
-     * with a specific graph node.
-     * 
- * - * string node = 5; - */ - public Builder setNodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - node_ = value; - onChanged(); - return this; - } - - private long temporaryMemorySize_ ; - /** - *
-     * Temporary memory used by this node (in bytes).
-     * 
- * - * int64 temporary_memory_size = 2; - */ - public long getTemporaryMemorySize() { - return temporaryMemorySize_; - } - /** - *
-     * Temporary memory used by this node (in bytes).
-     * 
- * - * int64 temporary_memory_size = 2; - */ - public Builder setTemporaryMemorySize(long value) { - - temporaryMemorySize_ = value; - onChanged(); - return this; - } - /** - *
-     * Temporary memory used by this node (in bytes).
-     * 
- * - * int64 temporary_memory_size = 2; - */ - public Builder clearTemporaryMemorySize() { - - temporaryMemorySize_ = 0L; - onChanged(); - return this; - } - - private long computeCost_ ; - /** - *
-     * Time it takes to run the op (in nanoseconds).
-     * 
- * - * int64 compute_cost = 3; - */ - public long getComputeCost() { - return computeCost_; - } - /** - *
-     * Time it takes to run the op (in nanoseconds).
-     * 
- * - * int64 compute_cost = 3; - */ - public Builder setComputeCost(long value) { - - computeCost_ = value; - onChanged(); - return this; - } - /** - *
-     * Time it takes to run the op (in nanoseconds).
-     * 
- * - * int64 compute_cost = 3; - */ - public Builder clearComputeCost() { - - computeCost_ = 0L; - onChanged(); - return this; - } - - private long computeTime_ ; - /** - *
-     * Analytical compute cost (in nanoseconds).
-     * 
- * - * int64 compute_time = 6; - */ - public long getComputeTime() { - return computeTime_; - } - /** - *
-     * Analytical compute cost (in nanoseconds).
-     * 
- * - * int64 compute_time = 6; - */ - public Builder setComputeTime(long value) { - - computeTime_ = value; - onChanged(); - return this; - } - /** - *
-     * Analytical compute cost (in nanoseconds).
-     * 
- * - * int64 compute_time = 6; - */ - public Builder clearComputeTime() { - - computeTime_ = 0L; - onChanged(); - return this; - } - - private long memoryTime_ ; - /** - *
-     * Analytical memory access cost (in nanoseconds).
-     * 
- * - * int64 memory_time = 7; - */ - public long getMemoryTime() { - return memoryTime_; - } - /** - *
-     * Analytical memory access cost (in nanoseconds).
-     * 
- * - * int64 memory_time = 7; - */ - public Builder setMemoryTime(long value) { - - memoryTime_ = value; - onChanged(); - return this; - } - /** - *
-     * Analytical memory access cost (in nanoseconds).
-     * 
- * - * int64 memory_time = 7; - */ - public Builder clearMemoryTime() { - - memoryTime_ = 0L; - onChanged(); - return this; - } - - private double computeEfficiency_ ; - /** - *
-     * Percentage of theoretical compute performance.
-     * 
- * - * double compute_efficiency = 4; - */ - public double getComputeEfficiency() { - return computeEfficiency_; - } - /** - *
-     * Percentage of theoretical compute performance.
-     * 
- * - * double compute_efficiency = 4; - */ - public Builder setComputeEfficiency(double value) { - - computeEfficiency_ = value; - onChanged(); - return this; - } - /** - *
-     * Percentage of theoretical compute performance.
-     * 
- * - * double compute_efficiency = 4; - */ - public Builder clearComputeEfficiency() { - - computeEfficiency_ = 0D; - onChanged(); - return this; - } - - private double memoryEfficiency_ ; - /** - *
-     * Percentage of theoretical memory performance.
-     * 
- * - * double memory_efficiency = 8; - */ - public double getMemoryEfficiency() { - return memoryEfficiency_; - } - /** - *
-     * Percentage of theoretical memory performance.
-     * 
- * - * double memory_efficiency = 8; - */ - public Builder setMemoryEfficiency(double value) { - - memoryEfficiency_ = value; - onChanged(); - return this; - } - /** - *
-     * Percentage of theoretical memory performance.
-     * 
- * - * double memory_efficiency = 8; - */ - public Builder clearMemoryEfficiency() { - - memoryEfficiency_ = 0D; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.NormalDistribution, org.tensorflow.proto.framework.NormalDistribution.Builder, org.tensorflow.proto.framework.NormalDistributionOrBuilder> executionTimeNormalBuilder_; - /** - * .tensorflow.NormalDistribution execution_time_normal = 10; - */ - public boolean hasExecutionTimeNormal() { - return executionTimeCase_ == 10; - } - /** - * .tensorflow.NormalDistribution execution_time_normal = 10; - */ - public org.tensorflow.proto.framework.NormalDistribution getExecutionTimeNormal() { - if (executionTimeNormalBuilder_ == null) { - if (executionTimeCase_ == 10) { - return (org.tensorflow.proto.framework.NormalDistribution) executionTime_; - } - return org.tensorflow.proto.framework.NormalDistribution.getDefaultInstance(); - } else { - if (executionTimeCase_ == 10) { - return executionTimeNormalBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.NormalDistribution.getDefaultInstance(); - } - } - /** - * .tensorflow.NormalDistribution execution_time_normal = 10; - */ - public Builder setExecutionTimeNormal(org.tensorflow.proto.framework.NormalDistribution value) { - if (executionTimeNormalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionTime_ = value; - onChanged(); - } else { - executionTimeNormalBuilder_.setMessage(value); - } - executionTimeCase_ = 10; - return this; - } - /** - * .tensorflow.NormalDistribution execution_time_normal = 10; - */ - public Builder setExecutionTimeNormal( - org.tensorflow.proto.framework.NormalDistribution.Builder builderForValue) { - if (executionTimeNormalBuilder_ == null) { - executionTime_ = builderForValue.build(); - onChanged(); - } else { - executionTimeNormalBuilder_.setMessage(builderForValue.build()); - } - executionTimeCase_ = 10; - return this; - } - /** - * .tensorflow.NormalDistribution execution_time_normal = 10; - */ - public Builder mergeExecutionTimeNormal(org.tensorflow.proto.framework.NormalDistribution value) { - if (executionTimeNormalBuilder_ == null) { - if (executionTimeCase_ == 10 && - executionTime_ != org.tensorflow.proto.framework.NormalDistribution.getDefaultInstance()) { - executionTime_ = org.tensorflow.proto.framework.NormalDistribution.newBuilder((org.tensorflow.proto.framework.NormalDistribution) executionTime_) - .mergeFrom(value).buildPartial(); - } else { - executionTime_ = value; - } - onChanged(); - } else { - if (executionTimeCase_ == 10) { - executionTimeNormalBuilder_.mergeFrom(value); - } - executionTimeNormalBuilder_.setMessage(value); - } - executionTimeCase_ = 10; - return this; - } - /** - * .tensorflow.NormalDistribution execution_time_normal = 10; - */ - public Builder clearExecutionTimeNormal() { - if (executionTimeNormalBuilder_ == null) { - if (executionTimeCase_ == 10) { - executionTimeCase_ = 0; - executionTime_ = null; - onChanged(); - } - } else { - if (executionTimeCase_ == 10) { - executionTimeCase_ = 0; - executionTime_ = null; - } - executionTimeNormalBuilder_.clear(); - } - return this; - } - /** - * .tensorflow.NormalDistribution execution_time_normal = 10; - */ - public org.tensorflow.proto.framework.NormalDistribution.Builder getExecutionTimeNormalBuilder() { - return getExecutionTimeNormalFieldBuilder().getBuilder(); - } - /** - * .tensorflow.NormalDistribution execution_time_normal = 10; - */ - public org.tensorflow.proto.framework.NormalDistributionOrBuilder getExecutionTimeNormalOrBuilder() { - if ((executionTimeCase_ == 10) && (executionTimeNormalBuilder_ != null)) { - return executionTimeNormalBuilder_.getMessageOrBuilder(); - } else { - if (executionTimeCase_ == 10) { - return (org.tensorflow.proto.framework.NormalDistribution) executionTime_; - } - return org.tensorflow.proto.framework.NormalDistribution.getDefaultInstance(); - } - } - /** - * .tensorflow.NormalDistribution execution_time_normal = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.NormalDistribution, org.tensorflow.proto.framework.NormalDistribution.Builder, org.tensorflow.proto.framework.NormalDistributionOrBuilder> - getExecutionTimeNormalFieldBuilder() { - if (executionTimeNormalBuilder_ == null) { - if (!(executionTimeCase_ == 10)) { - executionTime_ = org.tensorflow.proto.framework.NormalDistribution.getDefaultInstance(); - } - executionTimeNormalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.NormalDistribution, org.tensorflow.proto.framework.NormalDistribution.Builder, org.tensorflow.proto.framework.NormalDistributionOrBuilder>( - (org.tensorflow.proto.framework.NormalDistribution) executionTime_, - getParentForChildren(), - isClean()); - executionTime_ = null; - } - executionTimeCase_ = 10; - onChanged();; - return executionTimeNormalBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.LogNormalDistribution, org.tensorflow.proto.framework.LogNormalDistribution.Builder, org.tensorflow.proto.framework.LogNormalDistributionOrBuilder> executionTimeLogNormalBuilder_; - /** - * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; - */ - public boolean hasExecutionTimeLogNormal() { - return executionTimeCase_ == 11; - } - /** - * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; - */ - public org.tensorflow.proto.framework.LogNormalDistribution getExecutionTimeLogNormal() { - if (executionTimeLogNormalBuilder_ == null) { - if (executionTimeCase_ == 11) { - return (org.tensorflow.proto.framework.LogNormalDistribution) executionTime_; - } - return org.tensorflow.proto.framework.LogNormalDistribution.getDefaultInstance(); - } else { - if (executionTimeCase_ == 11) { - return executionTimeLogNormalBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.LogNormalDistribution.getDefaultInstance(); - } - } - /** - * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; - */ - public Builder setExecutionTimeLogNormal(org.tensorflow.proto.framework.LogNormalDistribution value) { - if (executionTimeLogNormalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionTime_ = value; - onChanged(); - } else { - executionTimeLogNormalBuilder_.setMessage(value); - } - executionTimeCase_ = 11; - return this; - } - /** - * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; - */ - public Builder setExecutionTimeLogNormal( - org.tensorflow.proto.framework.LogNormalDistribution.Builder builderForValue) { - if (executionTimeLogNormalBuilder_ == null) { - executionTime_ = builderForValue.build(); - onChanged(); - } else { - executionTimeLogNormalBuilder_.setMessage(builderForValue.build()); - } - executionTimeCase_ = 11; - return this; - } - /** - * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; - */ - public Builder mergeExecutionTimeLogNormal(org.tensorflow.proto.framework.LogNormalDistribution value) { - if (executionTimeLogNormalBuilder_ == null) { - if (executionTimeCase_ == 11 && - executionTime_ != org.tensorflow.proto.framework.LogNormalDistribution.getDefaultInstance()) { - executionTime_ = org.tensorflow.proto.framework.LogNormalDistribution.newBuilder((org.tensorflow.proto.framework.LogNormalDistribution) executionTime_) - .mergeFrom(value).buildPartial(); - } else { - executionTime_ = value; - } - onChanged(); - } else { - if (executionTimeCase_ == 11) { - executionTimeLogNormalBuilder_.mergeFrom(value); - } - executionTimeLogNormalBuilder_.setMessage(value); - } - executionTimeCase_ = 11; - return this; - } - /** - * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; - */ - public Builder clearExecutionTimeLogNormal() { - if (executionTimeLogNormalBuilder_ == null) { - if (executionTimeCase_ == 11) { - executionTimeCase_ = 0; - executionTime_ = null; - onChanged(); - } - } else { - if (executionTimeCase_ == 11) { - executionTimeCase_ = 0; - executionTime_ = null; - } - executionTimeLogNormalBuilder_.clear(); - } - return this; - } - /** - * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; - */ - public org.tensorflow.proto.framework.LogNormalDistribution.Builder getExecutionTimeLogNormalBuilder() { - return getExecutionTimeLogNormalFieldBuilder().getBuilder(); - } - /** - * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; - */ - public org.tensorflow.proto.framework.LogNormalDistributionOrBuilder getExecutionTimeLogNormalOrBuilder() { - if ((executionTimeCase_ == 11) && (executionTimeLogNormalBuilder_ != null)) { - return executionTimeLogNormalBuilder_.getMessageOrBuilder(); - } else { - if (executionTimeCase_ == 11) { - return (org.tensorflow.proto.framework.LogNormalDistribution) executionTime_; - } - return org.tensorflow.proto.framework.LogNormalDistribution.getDefaultInstance(); - } - } - /** - * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.LogNormalDistribution, org.tensorflow.proto.framework.LogNormalDistribution.Builder, org.tensorflow.proto.framework.LogNormalDistributionOrBuilder> - getExecutionTimeLogNormalFieldBuilder() { - if (executionTimeLogNormalBuilder_ == null) { - if (!(executionTimeCase_ == 11)) { - executionTime_ = org.tensorflow.proto.framework.LogNormalDistribution.getDefaultInstance(); - } - executionTimeLogNormalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.LogNormalDistribution, org.tensorflow.proto.framework.LogNormalDistribution.Builder, org.tensorflow.proto.framework.LogNormalDistributionOrBuilder>( - (org.tensorflow.proto.framework.LogNormalDistribution) executionTime_, - getParentForChildren(), - isClean()); - executionTime_ = null; - } - executionTimeCase_ = 11; - onChanged();; - return executionTimeLogNormalBuilder_; - } - - private org.tensorflow.proto.framework.OpPerformance.OpMemory opMemory_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.OpPerformance.OpMemory, org.tensorflow.proto.framework.OpPerformance.OpMemory.Builder, org.tensorflow.proto.framework.OpPerformance.OpMemoryOrBuilder> opMemoryBuilder_; - /** - * .tensorflow.OpPerformance.OpMemory op_memory = 9; - */ - public boolean hasOpMemory() { - return opMemoryBuilder_ != null || opMemory_ != null; - } - /** - * .tensorflow.OpPerformance.OpMemory op_memory = 9; - */ - public org.tensorflow.proto.framework.OpPerformance.OpMemory getOpMemory() { - if (opMemoryBuilder_ == null) { - return opMemory_ == null ? org.tensorflow.proto.framework.OpPerformance.OpMemory.getDefaultInstance() : opMemory_; - } else { - return opMemoryBuilder_.getMessage(); - } - } - /** - * .tensorflow.OpPerformance.OpMemory op_memory = 9; - */ - public Builder setOpMemory(org.tensorflow.proto.framework.OpPerformance.OpMemory value) { - if (opMemoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - opMemory_ = value; - onChanged(); - } else { - opMemoryBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.OpPerformance.OpMemory op_memory = 9; - */ - public Builder setOpMemory( - org.tensorflow.proto.framework.OpPerformance.OpMemory.Builder builderForValue) { - if (opMemoryBuilder_ == null) { - opMemory_ = builderForValue.build(); - onChanged(); - } else { - opMemoryBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.OpPerformance.OpMemory op_memory = 9; - */ - public Builder mergeOpMemory(org.tensorflow.proto.framework.OpPerformance.OpMemory value) { - if (opMemoryBuilder_ == null) { - if (opMemory_ != null) { - opMemory_ = - org.tensorflow.proto.framework.OpPerformance.OpMemory.newBuilder(opMemory_).mergeFrom(value).buildPartial(); - } else { - opMemory_ = value; - } - onChanged(); - } else { - opMemoryBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.OpPerformance.OpMemory op_memory = 9; - */ - public Builder clearOpMemory() { - if (opMemoryBuilder_ == null) { - opMemory_ = null; - onChanged(); - } else { - opMemory_ = null; - opMemoryBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.OpPerformance.OpMemory op_memory = 9; - */ - public org.tensorflow.proto.framework.OpPerformance.OpMemory.Builder getOpMemoryBuilder() { - - onChanged(); - return getOpMemoryFieldBuilder().getBuilder(); - } - /** - * .tensorflow.OpPerformance.OpMemory op_memory = 9; - */ - public org.tensorflow.proto.framework.OpPerformance.OpMemoryOrBuilder getOpMemoryOrBuilder() { - if (opMemoryBuilder_ != null) { - return opMemoryBuilder_.getMessageOrBuilder(); - } else { - return opMemory_ == null ? - org.tensorflow.proto.framework.OpPerformance.OpMemory.getDefaultInstance() : opMemory_; - } - } - /** - * .tensorflow.OpPerformance.OpMemory op_memory = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.OpPerformance.OpMemory, org.tensorflow.proto.framework.OpPerformance.OpMemory.Builder, org.tensorflow.proto.framework.OpPerformance.OpMemoryOrBuilder> - getOpMemoryFieldBuilder() { - if (opMemoryBuilder_ == null) { - opMemoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.OpPerformance.OpMemory, org.tensorflow.proto.framework.OpPerformance.OpMemory.Builder, org.tensorflow.proto.framework.OpPerformance.OpMemoryOrBuilder>( - getOpMemory(), - getParentForChildren(), - isClean()); - opMemory_ = null; - } - return opMemoryBuilder_; - } - @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:tensorflow.OpPerformance) - } - - // @@protoc_insertion_point(class_scope:tensorflow.OpPerformance) - private static final org.tensorflow.proto.framework.OpPerformance DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.OpPerformance(); - } - - public static org.tensorflow.proto.framework.OpPerformance getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OpPerformance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OpPerformance(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpPerformance getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpPerformanceDataProtos.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpPerformanceDataProtos.java deleted file mode 100644 index 4c3fcec5afa..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpPerformanceDataProtos.java +++ /dev/null @@ -1,186 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/grappler/costs/op_performance_data.proto - -package org.tensorflow.proto.framework; - -public final class OpPerformanceDataProtos { - private OpPerformanceDataProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_SessionInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_SessionInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_OpInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_OpInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_OpInfo_AttrEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_OpInfo_AttrEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_OpInfo_TensorProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_OpInfo_TensorProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_NormalDistribution_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_NormalDistribution_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_LogNormalDistribution_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_LogNormalDistribution_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_OpPerformance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_OpPerformance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_OpPerformance_OpMemory_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_OpPerformance_OpMemory_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_OpPerformanceList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_OpPerformanceList_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n8tensorflow/core/grappler/costs/op_perf" + - "ormance_data.proto\022\ntensorflow\032&tensorfl" + - "ow/core/framework/tensor.proto\032,tensorfl" + - "ow/core/framework/tensor_shape.proto\032%te" + - "nsorflow/core/framework/types.proto\032*ten" + - "sorflow/core/framework/attr_value.proto\032" + - "0tensorflow/core/protobuf/device_propert" + - "ies.proto\"+\n\013SessionInfo\022\034\n\024intra_op_par" + - "allelism\030\001 \001(\003\"\333\003\n\006OpInfo\022\n\n\002op\030\001 \001(\t\022*\n" + - "\004attr\030\002 \003(\0132\034.tensorflow.OpInfo.AttrEntr" + - "y\0223\n\006inputs\030\003 \003(\0132#.tensorflow.OpInfo.Te" + - "nsorProperties\0224\n\007outputs\030\005 \003(\0132#.tensor" + - "flow.OpInfo.TensorProperties\022,\n\006device\030\004" + - " \001(\0132\034.tensorflow.DeviceProperties\022-\n\014se" + - "ssion_info\030\006 \001(\0132\027.tensorflow.SessionInf" + - "o\032B\n\tAttrEntry\022\013\n\003key\030\001 \001(\t\022$\n\005value\030\002 \001" + - "(\0132\025.tensorflow.AttrValue:\0028\001\032\214\001\n\020Tensor" + - "Properties\022#\n\005dtype\030\001 \001(\0162\024.tensorflow.D" + - "ataType\022+\n\005shape\030\002 \001(\0132\034.tensorflow.Tens" + - "orShapeProto\022&\n\005value\030\003 \001(\0132\027.tensorflow" + - ".TensorProto\"/\n\022NormalDistribution\022\n\n\002mu" + - "\030\001 \001(\001\022\r\n\005sigma\030\002 \001(\001\"2\n\025LogNormalDistri" + - "bution\022\n\n\002mu\030\001 \001(\001\022\r\n\005sigma\030\002 \001(\001\"\363\004\n\rOp" + - "Performance\022\036\n\002op\030\001 \001(\0132\022.tensorflow.OpI" + - "nfo\0221\n\014session_info\030\014 \001(\0132\027.tensorflow.S" + - "essionInfoB\002\030\001\022\014\n\004node\030\005 \001(\t\022\035\n\025temporar" + - "y_memory_size\030\002 \001(\003\022\024\n\014compute_cost\030\003 \001(" + - "\003\022\024\n\014compute_time\030\006 \001(\003\022\023\n\013memory_time\030\007" + - " \001(\003\022\032\n\022compute_efficiency\030\004 \001(\001\022\031\n\021memo" + - "ry_efficiency\030\010 \001(\001\022?\n\025execution_time_no" + - "rmal\030\n \001(\0132\036.tensorflow.NormalDistributi" + - "onH\000\022F\n\031execution_time_log_normal\030\013 \001(\0132" + - "!.tensorflow.LogNormalDistributionH\000\0225\n\t" + - "op_memory\030\t \001(\0132\".tensorflow.OpPerforman" + - "ce.OpMemory\032\227\001\n\010OpMemory\022\025\n\routput_memor" + - "y\030\001 \003(\003\022\023\n\013temp_memory\030\002 \001(\003\022\031\n\021persiste" + - "nt_memory\030\004 \001(\003\022\036\n\022device_temp_memory\030\003 " + - "\001(\003B\002\030\001\022$\n\030device_persistent_memory\030\005 \001(" + - "\003B\002\030\001B\020\n\016execution_time\"F\n\021OpPerformance" + - "List\0221\n\016op_performance\030\001 \003(\0132\031.tensorflo" + - "w.OpPerformanceB>\n\036org.tensorflow.proto." + - "frameworkB\027OpPerformanceDataProtosP\001\370\001\001b" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.framework.TensorProtos.getDescriptor(), - org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(), - org.tensorflow.proto.framework.TypesProtos.getDescriptor(), - org.tensorflow.proto.framework.AttrValueProtos.getDescriptor(), - org.tensorflow.proto.framework.DevicePropertiesProtos.getDescriptor(), - }); - internal_static_tensorflow_SessionInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tensorflow_SessionInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_SessionInfo_descriptor, - new java.lang.String[] { "IntraOpParallelism", }); - internal_static_tensorflow_OpInfo_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_tensorflow_OpInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_OpInfo_descriptor, - new java.lang.String[] { "Op", "Attr", "Inputs", "Outputs", "Device", "SessionInfo", }); - internal_static_tensorflow_OpInfo_AttrEntry_descriptor = - internal_static_tensorflow_OpInfo_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_OpInfo_AttrEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_OpInfo_AttrEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_tensorflow_OpInfo_TensorProperties_descriptor = - internal_static_tensorflow_OpInfo_descriptor.getNestedTypes().get(1); - internal_static_tensorflow_OpInfo_TensorProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_OpInfo_TensorProperties_descriptor, - new java.lang.String[] { "Dtype", "Shape", "Value", }); - internal_static_tensorflow_NormalDistribution_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_tensorflow_NormalDistribution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_NormalDistribution_descriptor, - new java.lang.String[] { "Mu", "Sigma", }); - internal_static_tensorflow_LogNormalDistribution_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_tensorflow_LogNormalDistribution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_LogNormalDistribution_descriptor, - new java.lang.String[] { "Mu", "Sigma", }); - internal_static_tensorflow_OpPerformance_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_tensorflow_OpPerformance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_OpPerformance_descriptor, - new java.lang.String[] { "Op", "SessionInfo", "Node", "TemporaryMemorySize", "ComputeCost", "ComputeTime", "MemoryTime", "ComputeEfficiency", "MemoryEfficiency", "ExecutionTimeNormal", "ExecutionTimeLogNormal", "OpMemory", "ExecutionTime", }); - internal_static_tensorflow_OpPerformance_OpMemory_descriptor = - internal_static_tensorflow_OpPerformance_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_OpPerformance_OpMemory_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_OpPerformance_OpMemory_descriptor, - new java.lang.String[] { "OutputMemory", "TempMemory", "PersistentMemory", "DeviceTempMemory", "DevicePersistentMemory", }); - internal_static_tensorflow_OpPerformanceList_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_tensorflow_OpPerformanceList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_OpPerformanceList_descriptor, - new java.lang.String[] { "OpPerformance", }); - org.tensorflow.proto.framework.TensorProtos.getDescriptor(); - org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(); - org.tensorflow.proto.framework.TypesProtos.getDescriptor(); - org.tensorflow.proto.framework.AttrValueProtos.getDescriptor(); - org.tensorflow.proto.framework.DevicePropertiesProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpPerformanceList.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpPerformanceList.java deleted file mode 100644 index 0b09d450f2d..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpPerformanceList.java +++ /dev/null @@ -1,773 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/grappler/costs/op_performance_data.proto - -package org.tensorflow.proto.framework; - -/** - *
- * A collection of OpPerformance data points.
- * 
- * - * Protobuf type {@code tensorflow.OpPerformanceList} - */ -public final class OpPerformanceList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.OpPerformanceList) - OpPerformanceListOrBuilder { -private static final long serialVersionUID = 0L; - // Use OpPerformanceList.newBuilder() to construct. - private OpPerformanceList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OpPerformanceList() { - opPerformance_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OpPerformanceList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OpPerformanceList( - 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)) { - opPerformance_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - opPerformance_.add( - input.readMessage(org.tensorflow.proto.framework.OpPerformance.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)) { - opPerformance_ = java.util.Collections.unmodifiableList(opPerformance_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpPerformanceList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpPerformanceList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.OpPerformanceList.class, org.tensorflow.proto.framework.OpPerformanceList.Builder.class); - } - - public static final int OP_PERFORMANCE_FIELD_NUMBER = 1; - private java.util.List opPerformance_; - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public java.util.List getOpPerformanceList() { - return opPerformance_; - } - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public java.util.List - getOpPerformanceOrBuilderList() { - return opPerformance_; - } - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public int getOpPerformanceCount() { - return opPerformance_.size(); - } - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public org.tensorflow.proto.framework.OpPerformance getOpPerformance(int index) { - return opPerformance_.get(index); - } - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public org.tensorflow.proto.framework.OpPerformanceOrBuilder getOpPerformanceOrBuilder( - int index) { - return opPerformance_.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 < opPerformance_.size(); i++) { - output.writeMessage(1, opPerformance_.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 < opPerformance_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, opPerformance_.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 org.tensorflow.proto.framework.OpPerformanceList)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.OpPerformanceList other = (org.tensorflow.proto.framework.OpPerformanceList) obj; - - if (!getOpPerformanceList() - .equals(other.getOpPerformanceList())) 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 (getOpPerformanceCount() > 0) { - hash = (37 * hash) + OP_PERFORMANCE_FIELD_NUMBER; - hash = (53 * hash) + getOpPerformanceList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.OpPerformanceList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpPerformanceList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpPerformanceList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpPerformanceList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpPerformanceList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.OpPerformanceList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.OpPerformanceList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpPerformanceList 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 org.tensorflow.proto.framework.OpPerformanceList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpPerformanceList 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 org.tensorflow.proto.framework.OpPerformanceList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.OpPerformanceList 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(org.tensorflow.proto.framework.OpPerformanceList 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; - } - /** - *
-   * A collection of OpPerformance data points.
-   * 
- * - * Protobuf type {@code tensorflow.OpPerformanceList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.OpPerformanceList) - org.tensorflow.proto.framework.OpPerformanceListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpPerformanceList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpPerformanceList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.OpPerformanceList.class, org.tensorflow.proto.framework.OpPerformanceList.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.OpPerformanceList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getOpPerformanceFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (opPerformanceBuilder_ == null) { - opPerformance_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - opPerformanceBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_OpPerformanceList_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpPerformanceList getDefaultInstanceForType() { - return org.tensorflow.proto.framework.OpPerformanceList.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpPerformanceList build() { - org.tensorflow.proto.framework.OpPerformanceList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpPerformanceList buildPartial() { - org.tensorflow.proto.framework.OpPerformanceList result = new org.tensorflow.proto.framework.OpPerformanceList(this); - int from_bitField0_ = bitField0_; - if (opPerformanceBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - opPerformance_ = java.util.Collections.unmodifiableList(opPerformance_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.opPerformance_ = opPerformance_; - } else { - result.opPerformance_ = opPerformanceBuilder_.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 org.tensorflow.proto.framework.OpPerformanceList) { - return mergeFrom((org.tensorflow.proto.framework.OpPerformanceList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.OpPerformanceList other) { - if (other == org.tensorflow.proto.framework.OpPerformanceList.getDefaultInstance()) return this; - if (opPerformanceBuilder_ == null) { - if (!other.opPerformance_.isEmpty()) { - if (opPerformance_.isEmpty()) { - opPerformance_ = other.opPerformance_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOpPerformanceIsMutable(); - opPerformance_.addAll(other.opPerformance_); - } - onChanged(); - } - } else { - if (!other.opPerformance_.isEmpty()) { - if (opPerformanceBuilder_.isEmpty()) { - opPerformanceBuilder_.dispose(); - opPerformanceBuilder_ = null; - opPerformance_ = other.opPerformance_; - bitField0_ = (bitField0_ & ~0x00000001); - opPerformanceBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOpPerformanceFieldBuilder() : null; - } else { - opPerformanceBuilder_.addAllMessages(other.opPerformance_); - } - } - } - 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 { - org.tensorflow.proto.framework.OpPerformanceList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.OpPerformanceList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List opPerformance_ = - java.util.Collections.emptyList(); - private void ensureOpPerformanceIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - opPerformance_ = new java.util.ArrayList(opPerformance_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.OpPerformance, org.tensorflow.proto.framework.OpPerformance.Builder, org.tensorflow.proto.framework.OpPerformanceOrBuilder> opPerformanceBuilder_; - - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public java.util.List getOpPerformanceList() { - if (opPerformanceBuilder_ == null) { - return java.util.Collections.unmodifiableList(opPerformance_); - } else { - return opPerformanceBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public int getOpPerformanceCount() { - if (opPerformanceBuilder_ == null) { - return opPerformance_.size(); - } else { - return opPerformanceBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public org.tensorflow.proto.framework.OpPerformance getOpPerformance(int index) { - if (opPerformanceBuilder_ == null) { - return opPerformance_.get(index); - } else { - return opPerformanceBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public Builder setOpPerformance( - int index, org.tensorflow.proto.framework.OpPerformance value) { - if (opPerformanceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOpPerformanceIsMutable(); - opPerformance_.set(index, value); - onChanged(); - } else { - opPerformanceBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public Builder setOpPerformance( - int index, org.tensorflow.proto.framework.OpPerformance.Builder builderForValue) { - if (opPerformanceBuilder_ == null) { - ensureOpPerformanceIsMutable(); - opPerformance_.set(index, builderForValue.build()); - onChanged(); - } else { - opPerformanceBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public Builder addOpPerformance(org.tensorflow.proto.framework.OpPerformance value) { - if (opPerformanceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOpPerformanceIsMutable(); - opPerformance_.add(value); - onChanged(); - } else { - opPerformanceBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public Builder addOpPerformance( - int index, org.tensorflow.proto.framework.OpPerformance value) { - if (opPerformanceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOpPerformanceIsMutable(); - opPerformance_.add(index, value); - onChanged(); - } else { - opPerformanceBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public Builder addOpPerformance( - org.tensorflow.proto.framework.OpPerformance.Builder builderForValue) { - if (opPerformanceBuilder_ == null) { - ensureOpPerformanceIsMutable(); - opPerformance_.add(builderForValue.build()); - onChanged(); - } else { - opPerformanceBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public Builder addOpPerformance( - int index, org.tensorflow.proto.framework.OpPerformance.Builder builderForValue) { - if (opPerformanceBuilder_ == null) { - ensureOpPerformanceIsMutable(); - opPerformance_.add(index, builderForValue.build()); - onChanged(); - } else { - opPerformanceBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public Builder addAllOpPerformance( - java.lang.Iterable values) { - if (opPerformanceBuilder_ == null) { - ensureOpPerformanceIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, opPerformance_); - onChanged(); - } else { - opPerformanceBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public Builder clearOpPerformance() { - if (opPerformanceBuilder_ == null) { - opPerformance_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - opPerformanceBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public Builder removeOpPerformance(int index) { - if (opPerformanceBuilder_ == null) { - ensureOpPerformanceIsMutable(); - opPerformance_.remove(index); - onChanged(); - } else { - opPerformanceBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public org.tensorflow.proto.framework.OpPerformance.Builder getOpPerformanceBuilder( - int index) { - return getOpPerformanceFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public org.tensorflow.proto.framework.OpPerformanceOrBuilder getOpPerformanceOrBuilder( - int index) { - if (opPerformanceBuilder_ == null) { - return opPerformance_.get(index); } else { - return opPerformanceBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public java.util.List - getOpPerformanceOrBuilderList() { - if (opPerformanceBuilder_ != null) { - return opPerformanceBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(opPerformance_); - } - } - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public org.tensorflow.proto.framework.OpPerformance.Builder addOpPerformanceBuilder() { - return getOpPerformanceFieldBuilder().addBuilder( - org.tensorflow.proto.framework.OpPerformance.getDefaultInstance()); - } - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public org.tensorflow.proto.framework.OpPerformance.Builder addOpPerformanceBuilder( - int index) { - return getOpPerformanceFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.OpPerformance.getDefaultInstance()); - } - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - public java.util.List - getOpPerformanceBuilderList() { - return getOpPerformanceFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.OpPerformance, org.tensorflow.proto.framework.OpPerformance.Builder, org.tensorflow.proto.framework.OpPerformanceOrBuilder> - getOpPerformanceFieldBuilder() { - if (opPerformanceBuilder_ == null) { - opPerformanceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.OpPerformance, org.tensorflow.proto.framework.OpPerformance.Builder, org.tensorflow.proto.framework.OpPerformanceOrBuilder>( - opPerformance_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - opPerformance_ = null; - } - return opPerformanceBuilder_; - } - @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:tensorflow.OpPerformanceList) - } - - // @@protoc_insertion_point(class_scope:tensorflow.OpPerformanceList) - private static final org.tensorflow.proto.framework.OpPerformanceList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.OpPerformanceList(); - } - - public static org.tensorflow.proto.framework.OpPerformanceList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OpPerformanceList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OpPerformanceList(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.OpPerformanceList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpPerformanceListOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpPerformanceListOrBuilder.java deleted file mode 100644 index 9944ba70599..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpPerformanceListOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/grappler/costs/op_performance_data.proto - -package org.tensorflow.proto.framework; - -public interface OpPerformanceListOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.OpPerformanceList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - java.util.List - getOpPerformanceList(); - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - org.tensorflow.proto.framework.OpPerformance getOpPerformance(int index); - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - int getOpPerformanceCount(); - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - java.util.List - getOpPerformanceOrBuilderList(); - /** - * repeated .tensorflow.OpPerformance op_performance = 1; - */ - org.tensorflow.proto.framework.OpPerformanceOrBuilder getOpPerformanceOrBuilder( - int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpPerformanceOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpPerformanceOrBuilder.java deleted file mode 100644 index 513d2706c18..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OpPerformanceOrBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/grappler/costs/op_performance_data.proto - -package org.tensorflow.proto.framework; - -public interface OpPerformanceOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.OpPerformance) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The op
-   * 
- * - * .tensorflow.OpInfo op = 1; - */ - boolean hasOp(); - /** - *
-   * The op
-   * 
- * - * .tensorflow.OpInfo op = 1; - */ - org.tensorflow.proto.framework.OpInfo getOp(); - /** - *
-   * The op
-   * 
- * - * .tensorflow.OpInfo op = 1; - */ - org.tensorflow.proto.framework.OpInfoOrBuilder getOpOrBuilder(); - - /** - *
-   * Information about the session configs.
-   * 
- * - * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasSessionInfo(); - /** - *
-   * Information about the session configs.
-   * 
- * - * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; - */ - @java.lang.Deprecated org.tensorflow.proto.framework.SessionInfo getSessionInfo(); - /** - *
-   * Information about the session configs.
-   * 
- * - * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; - */ - @java.lang.Deprecated org.tensorflow.proto.framework.SessionInfoOrBuilder getSessionInfoOrBuilder(); - - /** - *
-   * The node name (optional). Makes it easier to associate the performance data
-   * with a specific graph node.
-   * 
- * - * string node = 5; - */ - java.lang.String getNode(); - /** - *
-   * The node name (optional). Makes it easier to associate the performance data
-   * with a specific graph node.
-   * 
- * - * string node = 5; - */ - com.google.protobuf.ByteString - getNodeBytes(); - - /** - *
-   * Temporary memory used by this node (in bytes).
-   * 
- * - * int64 temporary_memory_size = 2; - */ - long getTemporaryMemorySize(); - - /** - *
-   * Time it takes to run the op (in nanoseconds).
-   * 
- * - * int64 compute_cost = 3; - */ - long getComputeCost(); - - /** - *
-   * Analytical compute cost (in nanoseconds).
-   * 
- * - * int64 compute_time = 6; - */ - long getComputeTime(); - - /** - *
-   * Analytical memory access cost (in nanoseconds).
-   * 
- * - * int64 memory_time = 7; - */ - long getMemoryTime(); - - /** - *
-   * Percentage of theoretical compute performance.
-   * 
- * - * double compute_efficiency = 4; - */ - double getComputeEfficiency(); - - /** - *
-   * Percentage of theoretical memory performance.
-   * 
- * - * double memory_efficiency = 8; - */ - double getMemoryEfficiency(); - - /** - * .tensorflow.NormalDistribution execution_time_normal = 10; - */ - boolean hasExecutionTimeNormal(); - /** - * .tensorflow.NormalDistribution execution_time_normal = 10; - */ - org.tensorflow.proto.framework.NormalDistribution getExecutionTimeNormal(); - /** - * .tensorflow.NormalDistribution execution_time_normal = 10; - */ - org.tensorflow.proto.framework.NormalDistributionOrBuilder getExecutionTimeNormalOrBuilder(); - - /** - * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; - */ - boolean hasExecutionTimeLogNormal(); - /** - * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; - */ - org.tensorflow.proto.framework.LogNormalDistribution getExecutionTimeLogNormal(); - /** - * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; - */ - org.tensorflow.proto.framework.LogNormalDistributionOrBuilder getExecutionTimeLogNormalOrBuilder(); - - /** - * .tensorflow.OpPerformance.OpMemory op_memory = 9; - */ - boolean hasOpMemory(); - /** - * .tensorflow.OpPerformance.OpMemory op_memory = 9; - */ - org.tensorflow.proto.framework.OpPerformance.OpMemory getOpMemory(); - /** - * .tensorflow.OpPerformance.OpMemory op_memory = 9; - */ - org.tensorflow.proto.framework.OpPerformance.OpMemoryOrBuilder getOpMemoryOrBuilder(); - - public org.tensorflow.proto.framework.OpPerformance.ExecutionTimeCase getExecutionTimeCase(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/PairValue.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/PairValue.java deleted file mode 100644 index f9972971b17..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/PairValue.java +++ /dev/null @@ -1,735 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/struct.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Represents a (key, value) pair.
- * 
- * - * Protobuf type {@code tensorflow.PairValue} - */ -public final class PairValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.PairValue) - PairValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use PairValue.newBuilder() to construct. - private PairValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PairValue() { - key_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PairValue(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PairValue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 18: { - org.tensorflow.proto.framework.StructuredValue.Builder subBuilder = null; - if (value_ != null) { - subBuilder = value_.toBuilder(); - } - value_ = input.readMessage(org.tensorflow.proto.framework.StructuredValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(value_); - value_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_PairValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_PairValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.PairValue.class, org.tensorflow.proto.framework.PairValue.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - 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(); - key_ = s; - return s; - } - } - /** - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUE_FIELD_NUMBER = 2; - private org.tensorflow.proto.framework.StructuredValue value_; - /** - * .tensorflow.StructuredValue value = 2; - */ - public boolean hasValue() { - return value_ != null; - } - /** - * .tensorflow.StructuredValue value = 2; - */ - public org.tensorflow.proto.framework.StructuredValue getValue() { - return value_ == null ? org.tensorflow.proto.framework.StructuredValue.getDefaultInstance() : value_; - } - /** - * .tensorflow.StructuredValue value = 2; - */ - public org.tensorflow.proto.framework.StructuredValueOrBuilder getValueOrBuilder() { - return getValue(); - } - - 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 (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (value_ != null) { - output.writeMessage(2, getValue()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (value_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getValue()); - } - 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 org.tensorflow.proto.framework.PairValue)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.PairValue other = (org.tensorflow.proto.framework.PairValue) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (hasValue() != other.hasValue()) return false; - if (hasValue()) { - if (!getValue() - .equals(other.getValue())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - if (hasValue()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.PairValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.PairValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.PairValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.PairValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.PairValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.PairValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.PairValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.PairValue 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 org.tensorflow.proto.framework.PairValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.PairValue 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 org.tensorflow.proto.framework.PairValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.PairValue 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(org.tensorflow.proto.framework.PairValue 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; - } - /** - *
-   * Represents a (key, value) pair.
-   * 
- * - * Protobuf type {@code tensorflow.PairValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.PairValue) - org.tensorflow.proto.framework.PairValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_PairValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_PairValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.PairValue.class, org.tensorflow.proto.framework.PairValue.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.PairValue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = ""; - - if (valueBuilder_ == null) { - value_ = null; - } else { - value_ = null; - valueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_PairValue_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.PairValue getDefaultInstanceForType() { - return org.tensorflow.proto.framework.PairValue.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.PairValue build() { - org.tensorflow.proto.framework.PairValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.PairValue buildPartial() { - org.tensorflow.proto.framework.PairValue result = new org.tensorflow.proto.framework.PairValue(this); - result.key_ = key_; - if (valueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = valueBuilder_.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 org.tensorflow.proto.framework.PairValue) { - return mergeFrom((org.tensorflow.proto.framework.PairValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.PairValue other) { - if (other == org.tensorflow.proto.framework.PairValue.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (other.hasValue()) { - mergeValue(other.getValue()); - } - 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 { - org.tensorflow.proto.framework.PairValue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.PairValue) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object key_ = ""; - /** - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * string key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.StructuredValue value_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder> valueBuilder_; - /** - * .tensorflow.StructuredValue value = 2; - */ - public boolean hasValue() { - return valueBuilder_ != null || value_ != null; - } - /** - * .tensorflow.StructuredValue value = 2; - */ - public org.tensorflow.proto.framework.StructuredValue getValue() { - if (valueBuilder_ == null) { - return value_ == null ? org.tensorflow.proto.framework.StructuredValue.getDefaultInstance() : value_; - } else { - return valueBuilder_.getMessage(); - } - } - /** - * .tensorflow.StructuredValue value = 2; - */ - public Builder setValue(org.tensorflow.proto.framework.StructuredValue value) { - if (valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - valueBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.StructuredValue value = 2; - */ - public Builder setValue( - org.tensorflow.proto.framework.StructuredValue.Builder builderForValue) { - if (valueBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - valueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.StructuredValue value = 2; - */ - public Builder mergeValue(org.tensorflow.proto.framework.StructuredValue value) { - if (valueBuilder_ == null) { - if (value_ != null) { - value_ = - org.tensorflow.proto.framework.StructuredValue.newBuilder(value_).mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - valueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.StructuredValue value = 2; - */ - public Builder clearValue() { - if (valueBuilder_ == null) { - value_ = null; - onChanged(); - } else { - value_ = null; - valueBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.StructuredValue value = 2; - */ - public org.tensorflow.proto.framework.StructuredValue.Builder getValueBuilder() { - - onChanged(); - return getValueFieldBuilder().getBuilder(); - } - /** - * .tensorflow.StructuredValue value = 2; - */ - public org.tensorflow.proto.framework.StructuredValueOrBuilder getValueOrBuilder() { - if (valueBuilder_ != null) { - return valueBuilder_.getMessageOrBuilder(); - } else { - return value_ == null ? - org.tensorflow.proto.framework.StructuredValue.getDefaultInstance() : value_; - } - } - /** - * .tensorflow.StructuredValue value = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder>( - getValue(), - getParentForChildren(), - isClean()); - value_ = null; - } - return valueBuilder_; - } - @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:tensorflow.PairValue) - } - - // @@protoc_insertion_point(class_scope:tensorflow.PairValue) - private static final org.tensorflow.proto.framework.PairValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.PairValue(); - } - - public static org.tensorflow.proto.framework.PairValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PairValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PairValue(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.PairValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/PairValueOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/PairValueOrBuilder.java deleted file mode 100644 index 0e35d82c1af..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/PairValueOrBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/struct.proto - -package org.tensorflow.proto.framework; - -public interface PairValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.PairValue) - com.google.protobuf.MessageOrBuilder { - - /** - * string key = 1; - */ - java.lang.String getKey(); - /** - * string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * .tensorflow.StructuredValue value = 2; - */ - boolean hasValue(); - /** - * .tensorflow.StructuredValue value = 2; - */ - org.tensorflow.proto.framework.StructuredValue getValue(); - /** - * .tensorflow.StructuredValue value = 2; - */ - org.tensorflow.proto.framework.StructuredValueOrBuilder getValueOrBuilder(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/QueueRunnerDefOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/QueueRunnerDefOrBuilder.java deleted file mode 100644 index 61a20e767a3..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/QueueRunnerDefOrBuilder.java +++ /dev/null @@ -1,145 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/queue_runner.proto - -package org.tensorflow.proto.framework; - -public interface QueueRunnerDefOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.QueueRunnerDef) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Queue name.
-   * 
- * - * string queue_name = 1; - */ - java.lang.String getQueueName(); - /** - *
-   * Queue name.
-   * 
- * - * string queue_name = 1; - */ - com.google.protobuf.ByteString - getQueueNameBytes(); - - /** - *
-   * A list of enqueue operations.
-   * 
- * - * repeated string enqueue_op_name = 2; - */ - java.util.List - getEnqueueOpNameList(); - /** - *
-   * A list of enqueue operations.
-   * 
- * - * repeated string enqueue_op_name = 2; - */ - int getEnqueueOpNameCount(); - /** - *
-   * A list of enqueue operations.
-   * 
- * - * repeated string enqueue_op_name = 2; - */ - java.lang.String getEnqueueOpName(int index); - /** - *
-   * A list of enqueue operations.
-   * 
- * - * repeated string enqueue_op_name = 2; - */ - com.google.protobuf.ByteString - getEnqueueOpNameBytes(int index); - - /** - *
-   * The operation to run to close the queue.
-   * 
- * - * string close_op_name = 3; - */ - java.lang.String getCloseOpName(); - /** - *
-   * The operation to run to close the queue.
-   * 
- * - * string close_op_name = 3; - */ - com.google.protobuf.ByteString - getCloseOpNameBytes(); - - /** - *
-   * The operation to run to cancel the queue.
-   * 
- * - * string cancel_op_name = 4; - */ - java.lang.String getCancelOpName(); - /** - *
-   * The operation to run to cancel the queue.
-   * 
- * - * string cancel_op_name = 4; - */ - com.google.protobuf.ByteString - getCancelOpNameBytes(); - - /** - *
-   * A list of exception types considered to signal a safely closed queue
-   * if raised during enqueue operations.
-   * 
- * - * repeated .tensorflow.error.Code queue_closed_exception_types = 5; - */ - java.util.List getQueueClosedExceptionTypesList(); - /** - *
-   * A list of exception types considered to signal a safely closed queue
-   * if raised during enqueue operations.
-   * 
- * - * repeated .tensorflow.error.Code queue_closed_exception_types = 5; - */ - int getQueueClosedExceptionTypesCount(); - /** - *
-   * A list of exception types considered to signal a safely closed queue
-   * if raised during enqueue operations.
-   * 
- * - * repeated .tensorflow.error.Code queue_closed_exception_types = 5; - */ - org.tensorflow.proto.framework.Code getQueueClosedExceptionTypes(int index); - /** - *
-   * A list of exception types considered to signal a safely closed queue
-   * if raised during enqueue operations.
-   * 
- * - * repeated .tensorflow.error.Code queue_closed_exception_types = 5; - */ - java.util.List - getQueueClosedExceptionTypesValueList(); - /** - *
-   * A list of exception types considered to signal a safely closed queue
-   * if raised during enqueue operations.
-   * 
- * - * repeated .tensorflow.error.Code queue_closed_exception_types = 5; - */ - int getQueueClosedExceptionTypesValue(int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RPCOptions.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RPCOptions.java deleted file mode 100644 index 10aae53345a..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RPCOptions.java +++ /dev/null @@ -1,998 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/config.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.RPCOptions} - */ -public final class RPCOptions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.RPCOptions) - RPCOptionsOrBuilder { -private static final long serialVersionUID = 0L; - // Use RPCOptions.newBuilder() to construct. - private RPCOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RPCOptions() { - compressionAlgorithm_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RPCOptions(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RPCOptions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - useRpcForInprocessMaster_ = input.readBool(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - compressionAlgorithm_ = s; - break; - } - case 24: { - - compressionLevel_ = input.readInt32(); - break; - } - case 32: { - - cacheRpcResponse_ = input.readBool(); - break; - } - case 40: { - - disableSessionConnectionSharing_ = input.readBool(); - break; - } - case 48: { - - numChannelsPerTarget_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RPCOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RPCOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.RPCOptions.class, org.tensorflow.proto.framework.RPCOptions.Builder.class); - } - - public static final int USE_RPC_FOR_INPROCESS_MASTER_FIELD_NUMBER = 1; - private boolean useRpcForInprocessMaster_; - /** - *
-   * If true, always use RPC to contact the session target.
-   * If false (the default option), TensorFlow may use an optimized
-   * transport for client-master communication that avoids the RPC
-   * stack. This option is primarily for used testing the RPC stack.
-   * 
- * - * bool use_rpc_for_inprocess_master = 1; - */ - public boolean getUseRpcForInprocessMaster() { - return useRpcForInprocessMaster_; - } - - public static final int COMPRESSION_ALGORITHM_FIELD_NUMBER = 2; - private volatile java.lang.Object compressionAlgorithm_; - /** - *
-   * The compression algorithm to be used. One of "deflate", "gzip".
-   * 
- * - * string compression_algorithm = 2; - */ - public java.lang.String getCompressionAlgorithm() { - java.lang.Object ref = compressionAlgorithm_; - 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(); - compressionAlgorithm_ = s; - return s; - } - } - /** - *
-   * The compression algorithm to be used. One of "deflate", "gzip".
-   * 
- * - * string compression_algorithm = 2; - */ - public com.google.protobuf.ByteString - getCompressionAlgorithmBytes() { - java.lang.Object ref = compressionAlgorithm_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - compressionAlgorithm_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COMPRESSION_LEVEL_FIELD_NUMBER = 3; - private int compressionLevel_; - /** - *
-   * If compression_algorithm is set, the compression level to be used.
-   * From 0 (no compression), up to 3.
-   * 
- * - * int32 compression_level = 3; - */ - public int getCompressionLevel() { - return compressionLevel_; - } - - public static final int CACHE_RPC_RESPONSE_FIELD_NUMBER = 4; - private boolean cacheRpcResponse_; - /** - *
-   * Setting cache_rpc_response to true will enable sender side caching of
-   * response for RecvTensorAsync and RecvBufAsync to allow receiver to retry
-   * requests . This is only necessary when the network fabric is experiencing a
-   * significant error rate.  Without it we'll fail a step on an network error,
-   * while with it we'll be able to complete long steps (like complex
-   * initializations) in the face of some network errors during RecvTensor.
-   * 
- * - * bool cache_rpc_response = 4; - */ - public boolean getCacheRpcResponse() { - return cacheRpcResponse_; - } - - public static final int DISABLE_SESSION_CONNECTION_SHARING_FIELD_NUMBER = 5; - private boolean disableSessionConnectionSharing_; - /** - *
-   * Disables TCP connection sharing when opening a new RPC channel.
-   * 
- * - * bool disable_session_connection_sharing = 5; - */ - public boolean getDisableSessionConnectionSharing() { - return disableSessionConnectionSharing_; - } - - public static final int NUM_CHANNELS_PER_TARGET_FIELD_NUMBER = 6; - private int numChannelsPerTarget_; - /** - *
-   * Setting num_channels_per_target > 0 allows uses of multiple channels to
-   * communicate to the same target. This can be used to improve the aggregate
-   * throughput on high speed links (e.g 100G) where single connection is not
-   * sufficient to maximize link utilization. Note that a single RPC only goes
-   * on a single channel, this only helps in situations where there are multiple
-   * transfers to the same target overlapping in time.
-   * 
- * - * int32 num_channels_per_target = 6; - */ - public int getNumChannelsPerTarget() { - return numChannelsPerTarget_; - } - - 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 (useRpcForInprocessMaster_ != false) { - output.writeBool(1, useRpcForInprocessMaster_); - } - if (!getCompressionAlgorithmBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, compressionAlgorithm_); - } - if (compressionLevel_ != 0) { - output.writeInt32(3, compressionLevel_); - } - if (cacheRpcResponse_ != false) { - output.writeBool(4, cacheRpcResponse_); - } - if (disableSessionConnectionSharing_ != false) { - output.writeBool(5, disableSessionConnectionSharing_); - } - if (numChannelsPerTarget_ != 0) { - output.writeInt32(6, numChannelsPerTarget_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (useRpcForInprocessMaster_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, useRpcForInprocessMaster_); - } - if (!getCompressionAlgorithmBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, compressionAlgorithm_); - } - if (compressionLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, compressionLevel_); - } - if (cacheRpcResponse_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, cacheRpcResponse_); - } - if (disableSessionConnectionSharing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, disableSessionConnectionSharing_); - } - if (numChannelsPerTarget_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, numChannelsPerTarget_); - } - 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 org.tensorflow.proto.framework.RPCOptions)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.RPCOptions other = (org.tensorflow.proto.framework.RPCOptions) obj; - - if (getUseRpcForInprocessMaster() - != other.getUseRpcForInprocessMaster()) return false; - if (!getCompressionAlgorithm() - .equals(other.getCompressionAlgorithm())) return false; - if (getCompressionLevel() - != other.getCompressionLevel()) return false; - if (getCacheRpcResponse() - != other.getCacheRpcResponse()) return false; - if (getDisableSessionConnectionSharing() - != other.getDisableSessionConnectionSharing()) return false; - if (getNumChannelsPerTarget() - != other.getNumChannelsPerTarget()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + USE_RPC_FOR_INPROCESS_MASTER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUseRpcForInprocessMaster()); - hash = (37 * hash) + COMPRESSION_ALGORITHM_FIELD_NUMBER; - hash = (53 * hash) + getCompressionAlgorithm().hashCode(); - hash = (37 * hash) + COMPRESSION_LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getCompressionLevel(); - hash = (37 * hash) + CACHE_RPC_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCacheRpcResponse()); - hash = (37 * hash) + DISABLE_SESSION_CONNECTION_SHARING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisableSessionConnectionSharing()); - hash = (37 * hash) + NUM_CHANNELS_PER_TARGET_FIELD_NUMBER; - hash = (53 * hash) + getNumChannelsPerTarget(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.RPCOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RPCOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RPCOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RPCOptions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RPCOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RPCOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RPCOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RPCOptions 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 org.tensorflow.proto.framework.RPCOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RPCOptions 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 org.tensorflow.proto.framework.RPCOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RPCOptions 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(org.tensorflow.proto.framework.RPCOptions prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.RPCOptions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.RPCOptions) - org.tensorflow.proto.framework.RPCOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RPCOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RPCOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.RPCOptions.class, org.tensorflow.proto.framework.RPCOptions.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.RPCOptions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - useRpcForInprocessMaster_ = false; - - compressionAlgorithm_ = ""; - - compressionLevel_ = 0; - - cacheRpcResponse_ = false; - - disableSessionConnectionSharing_ = false; - - numChannelsPerTarget_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RPCOptions_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RPCOptions getDefaultInstanceForType() { - return org.tensorflow.proto.framework.RPCOptions.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.RPCOptions build() { - org.tensorflow.proto.framework.RPCOptions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RPCOptions buildPartial() { - org.tensorflow.proto.framework.RPCOptions result = new org.tensorflow.proto.framework.RPCOptions(this); - result.useRpcForInprocessMaster_ = useRpcForInprocessMaster_; - result.compressionAlgorithm_ = compressionAlgorithm_; - result.compressionLevel_ = compressionLevel_; - result.cacheRpcResponse_ = cacheRpcResponse_; - result.disableSessionConnectionSharing_ = disableSessionConnectionSharing_; - result.numChannelsPerTarget_ = numChannelsPerTarget_; - 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 org.tensorflow.proto.framework.RPCOptions) { - return mergeFrom((org.tensorflow.proto.framework.RPCOptions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.RPCOptions other) { - if (other == org.tensorflow.proto.framework.RPCOptions.getDefaultInstance()) return this; - if (other.getUseRpcForInprocessMaster() != false) { - setUseRpcForInprocessMaster(other.getUseRpcForInprocessMaster()); - } - if (!other.getCompressionAlgorithm().isEmpty()) { - compressionAlgorithm_ = other.compressionAlgorithm_; - onChanged(); - } - if (other.getCompressionLevel() != 0) { - setCompressionLevel(other.getCompressionLevel()); - } - if (other.getCacheRpcResponse() != false) { - setCacheRpcResponse(other.getCacheRpcResponse()); - } - if (other.getDisableSessionConnectionSharing() != false) { - setDisableSessionConnectionSharing(other.getDisableSessionConnectionSharing()); - } - if (other.getNumChannelsPerTarget() != 0) { - setNumChannelsPerTarget(other.getNumChannelsPerTarget()); - } - 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 { - org.tensorflow.proto.framework.RPCOptions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.RPCOptions) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean useRpcForInprocessMaster_ ; - /** - *
-     * If true, always use RPC to contact the session target.
-     * If false (the default option), TensorFlow may use an optimized
-     * transport for client-master communication that avoids the RPC
-     * stack. This option is primarily for used testing the RPC stack.
-     * 
- * - * bool use_rpc_for_inprocess_master = 1; - */ - public boolean getUseRpcForInprocessMaster() { - return useRpcForInprocessMaster_; - } - /** - *
-     * If true, always use RPC to contact the session target.
-     * If false (the default option), TensorFlow may use an optimized
-     * transport for client-master communication that avoids the RPC
-     * stack. This option is primarily for used testing the RPC stack.
-     * 
- * - * bool use_rpc_for_inprocess_master = 1; - */ - public Builder setUseRpcForInprocessMaster(boolean value) { - - useRpcForInprocessMaster_ = value; - onChanged(); - return this; - } - /** - *
-     * If true, always use RPC to contact the session target.
-     * If false (the default option), TensorFlow may use an optimized
-     * transport for client-master communication that avoids the RPC
-     * stack. This option is primarily for used testing the RPC stack.
-     * 
- * - * bool use_rpc_for_inprocess_master = 1; - */ - public Builder clearUseRpcForInprocessMaster() { - - useRpcForInprocessMaster_ = false; - onChanged(); - return this; - } - - private java.lang.Object compressionAlgorithm_ = ""; - /** - *
-     * The compression algorithm to be used. One of "deflate", "gzip".
-     * 
- * - * string compression_algorithm = 2; - */ - public java.lang.String getCompressionAlgorithm() { - java.lang.Object ref = compressionAlgorithm_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - compressionAlgorithm_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The compression algorithm to be used. One of "deflate", "gzip".
-     * 
- * - * string compression_algorithm = 2; - */ - public com.google.protobuf.ByteString - getCompressionAlgorithmBytes() { - java.lang.Object ref = compressionAlgorithm_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - compressionAlgorithm_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The compression algorithm to be used. One of "deflate", "gzip".
-     * 
- * - * string compression_algorithm = 2; - */ - public Builder setCompressionAlgorithm( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - compressionAlgorithm_ = value; - onChanged(); - return this; - } - /** - *
-     * The compression algorithm to be used. One of "deflate", "gzip".
-     * 
- * - * string compression_algorithm = 2; - */ - public Builder clearCompressionAlgorithm() { - - compressionAlgorithm_ = getDefaultInstance().getCompressionAlgorithm(); - onChanged(); - return this; - } - /** - *
-     * The compression algorithm to be used. One of "deflate", "gzip".
-     * 
- * - * string compression_algorithm = 2; - */ - public Builder setCompressionAlgorithmBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - compressionAlgorithm_ = value; - onChanged(); - return this; - } - - private int compressionLevel_ ; - /** - *
-     * If compression_algorithm is set, the compression level to be used.
-     * From 0 (no compression), up to 3.
-     * 
- * - * int32 compression_level = 3; - */ - public int getCompressionLevel() { - return compressionLevel_; - } - /** - *
-     * If compression_algorithm is set, the compression level to be used.
-     * From 0 (no compression), up to 3.
-     * 
- * - * int32 compression_level = 3; - */ - public Builder setCompressionLevel(int value) { - - compressionLevel_ = value; - onChanged(); - return this; - } - /** - *
-     * If compression_algorithm is set, the compression level to be used.
-     * From 0 (no compression), up to 3.
-     * 
- * - * int32 compression_level = 3; - */ - public Builder clearCompressionLevel() { - - compressionLevel_ = 0; - onChanged(); - return this; - } - - private boolean cacheRpcResponse_ ; - /** - *
-     * Setting cache_rpc_response to true will enable sender side caching of
-     * response for RecvTensorAsync and RecvBufAsync to allow receiver to retry
-     * requests . This is only necessary when the network fabric is experiencing a
-     * significant error rate.  Without it we'll fail a step on an network error,
-     * while with it we'll be able to complete long steps (like complex
-     * initializations) in the face of some network errors during RecvTensor.
-     * 
- * - * bool cache_rpc_response = 4; - */ - public boolean getCacheRpcResponse() { - return cacheRpcResponse_; - } - /** - *
-     * Setting cache_rpc_response to true will enable sender side caching of
-     * response for RecvTensorAsync and RecvBufAsync to allow receiver to retry
-     * requests . This is only necessary when the network fabric is experiencing a
-     * significant error rate.  Without it we'll fail a step on an network error,
-     * while with it we'll be able to complete long steps (like complex
-     * initializations) in the face of some network errors during RecvTensor.
-     * 
- * - * bool cache_rpc_response = 4; - */ - public Builder setCacheRpcResponse(boolean value) { - - cacheRpcResponse_ = value; - onChanged(); - return this; - } - /** - *
-     * Setting cache_rpc_response to true will enable sender side caching of
-     * response for RecvTensorAsync and RecvBufAsync to allow receiver to retry
-     * requests . This is only necessary when the network fabric is experiencing a
-     * significant error rate.  Without it we'll fail a step on an network error,
-     * while with it we'll be able to complete long steps (like complex
-     * initializations) in the face of some network errors during RecvTensor.
-     * 
- * - * bool cache_rpc_response = 4; - */ - public Builder clearCacheRpcResponse() { - - cacheRpcResponse_ = false; - onChanged(); - return this; - } - - private boolean disableSessionConnectionSharing_ ; - /** - *
-     * Disables TCP connection sharing when opening a new RPC channel.
-     * 
- * - * bool disable_session_connection_sharing = 5; - */ - public boolean getDisableSessionConnectionSharing() { - return disableSessionConnectionSharing_; - } - /** - *
-     * Disables TCP connection sharing when opening a new RPC channel.
-     * 
- * - * bool disable_session_connection_sharing = 5; - */ - public Builder setDisableSessionConnectionSharing(boolean value) { - - disableSessionConnectionSharing_ = value; - onChanged(); - return this; - } - /** - *
-     * Disables TCP connection sharing when opening a new RPC channel.
-     * 
- * - * bool disable_session_connection_sharing = 5; - */ - public Builder clearDisableSessionConnectionSharing() { - - disableSessionConnectionSharing_ = false; - onChanged(); - return this; - } - - private int numChannelsPerTarget_ ; - /** - *
-     * Setting num_channels_per_target > 0 allows uses of multiple channels to
-     * communicate to the same target. This can be used to improve the aggregate
-     * throughput on high speed links (e.g 100G) where single connection is not
-     * sufficient to maximize link utilization. Note that a single RPC only goes
-     * on a single channel, this only helps in situations where there are multiple
-     * transfers to the same target overlapping in time.
-     * 
- * - * int32 num_channels_per_target = 6; - */ - public int getNumChannelsPerTarget() { - return numChannelsPerTarget_; - } - /** - *
-     * Setting num_channels_per_target > 0 allows uses of multiple channels to
-     * communicate to the same target. This can be used to improve the aggregate
-     * throughput on high speed links (e.g 100G) where single connection is not
-     * sufficient to maximize link utilization. Note that a single RPC only goes
-     * on a single channel, this only helps in situations where there are multiple
-     * transfers to the same target overlapping in time.
-     * 
- * - * int32 num_channels_per_target = 6; - */ - public Builder setNumChannelsPerTarget(int value) { - - numChannelsPerTarget_ = value; - onChanged(); - return this; - } - /** - *
-     * Setting num_channels_per_target > 0 allows uses of multiple channels to
-     * communicate to the same target. This can be used to improve the aggregate
-     * throughput on high speed links (e.g 100G) where single connection is not
-     * sufficient to maximize link utilization. Note that a single RPC only goes
-     * on a single channel, this only helps in situations where there are multiple
-     * transfers to the same target overlapping in time.
-     * 
- * - * int32 num_channels_per_target = 6; - */ - public Builder clearNumChannelsPerTarget() { - - numChannelsPerTarget_ = 0; - 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:tensorflow.RPCOptions) - } - - // @@protoc_insertion_point(class_scope:tensorflow.RPCOptions) - private static final org.tensorflow.proto.framework.RPCOptions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.RPCOptions(); - } - - public static org.tensorflow.proto.framework.RPCOptions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RPCOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RPCOptions(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RPCOptions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RPCOptionsOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RPCOptionsOrBuilder.java deleted file mode 100644 index f1309265632..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RPCOptionsOrBuilder.java +++ /dev/null @@ -1,86 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/config.proto - -package org.tensorflow.proto.framework; - -public interface RPCOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.RPCOptions) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * If true, always use RPC to contact the session target.
-   * If false (the default option), TensorFlow may use an optimized
-   * transport for client-master communication that avoids the RPC
-   * stack. This option is primarily for used testing the RPC stack.
-   * 
- * - * bool use_rpc_for_inprocess_master = 1; - */ - boolean getUseRpcForInprocessMaster(); - - /** - *
-   * The compression algorithm to be used. One of "deflate", "gzip".
-   * 
- * - * string compression_algorithm = 2; - */ - java.lang.String getCompressionAlgorithm(); - /** - *
-   * The compression algorithm to be used. One of "deflate", "gzip".
-   * 
- * - * string compression_algorithm = 2; - */ - com.google.protobuf.ByteString - getCompressionAlgorithmBytes(); - - /** - *
-   * If compression_algorithm is set, the compression level to be used.
-   * From 0 (no compression), up to 3.
-   * 
- * - * int32 compression_level = 3; - */ - int getCompressionLevel(); - - /** - *
-   * Setting cache_rpc_response to true will enable sender side caching of
-   * response for RecvTensorAsync and RecvBufAsync to allow receiver to retry
-   * requests . This is only necessary when the network fabric is experiencing a
-   * significant error rate.  Without it we'll fail a step on an network error,
-   * while with it we'll be able to complete long steps (like complex
-   * initializations) in the face of some network errors during RecvTensor.
-   * 
- * - * bool cache_rpc_response = 4; - */ - boolean getCacheRpcResponse(); - - /** - *
-   * Disables TCP connection sharing when opening a new RPC channel.
-   * 
- * - * bool disable_session_connection_sharing = 5; - */ - boolean getDisableSessionConnectionSharing(); - - /** - *
-   * Setting num_channels_per_target > 0 allows uses of multiple channels to
-   * communicate to the same target. This can be used to improve the aggregate
-   * throughput on high speed links (e.g 100G) where single connection is not
-   * sufficient to maximize link utilization. Note that a single RPC only goes
-   * on a single channel, this only helps in situations where there are multiple
-   * transfers to the same target overlapping in time.
-   * 
- * - * int32 num_channels_per_target = 6; - */ - int getNumChannelsPerTarget(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ReaderBaseState.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ReaderBaseState.java deleted file mode 100644 index 4602bd786a5..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ReaderBaseState.java +++ /dev/null @@ -1,664 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/reader_base.proto - -package org.tensorflow.proto.framework; - -/** - *
- * For serializing and restoring the state of ReaderBase, see
- * reader_base.h for details.
- * 
- * - * Protobuf type {@code tensorflow.ReaderBaseState} - */ -public final class ReaderBaseState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.ReaderBaseState) - ReaderBaseStateOrBuilder { -private static final long serialVersionUID = 0L; - // Use ReaderBaseState.newBuilder() to construct. - private ReaderBaseState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReaderBaseState() { - currentWork_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReaderBaseState(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReaderBaseState( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - workStarted_ = input.readInt64(); - break; - } - case 16: { - - workFinished_ = input.readInt64(); - break; - } - case 24: { - - numRecordsProduced_ = input.readInt64(); - break; - } - case 34: { - - currentWork_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ReaderBaseProtos.internal_static_tensorflow_ReaderBaseState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ReaderBaseProtos.internal_static_tensorflow_ReaderBaseState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ReaderBaseState.class, org.tensorflow.proto.framework.ReaderBaseState.Builder.class); - } - - public static final int WORK_STARTED_FIELD_NUMBER = 1; - private long workStarted_; - /** - * int64 work_started = 1; - */ - public long getWorkStarted() { - return workStarted_; - } - - public static final int WORK_FINISHED_FIELD_NUMBER = 2; - private long workFinished_; - /** - * int64 work_finished = 2; - */ - public long getWorkFinished() { - return workFinished_; - } - - public static final int NUM_RECORDS_PRODUCED_FIELD_NUMBER = 3; - private long numRecordsProduced_; - /** - * int64 num_records_produced = 3; - */ - public long getNumRecordsProduced() { - return numRecordsProduced_; - } - - public static final int CURRENT_WORK_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString currentWork_; - /** - * bytes current_work = 4; - */ - public com.google.protobuf.ByteString getCurrentWork() { - return currentWork_; - } - - 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 (workStarted_ != 0L) { - output.writeInt64(1, workStarted_); - } - if (workFinished_ != 0L) { - output.writeInt64(2, workFinished_); - } - if (numRecordsProduced_ != 0L) { - output.writeInt64(3, numRecordsProduced_); - } - if (!currentWork_.isEmpty()) { - output.writeBytes(4, currentWork_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workStarted_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, workStarted_); - } - if (workFinished_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, workFinished_); - } - if (numRecordsProduced_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, numRecordsProduced_); - } - if (!currentWork_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, currentWork_); - } - 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 org.tensorflow.proto.framework.ReaderBaseState)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.ReaderBaseState other = (org.tensorflow.proto.framework.ReaderBaseState) obj; - - if (getWorkStarted() - != other.getWorkStarted()) return false; - if (getWorkFinished() - != other.getWorkFinished()) return false; - if (getNumRecordsProduced() - != other.getNumRecordsProduced()) return false; - if (!getCurrentWork() - .equals(other.getCurrentWork())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + WORK_STARTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getWorkStarted()); - hash = (37 * hash) + WORK_FINISHED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getWorkFinished()); - hash = (37 * hash) + NUM_RECORDS_PRODUCED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNumRecordsProduced()); - hash = (37 * hash) + CURRENT_WORK_FIELD_NUMBER; - hash = (53 * hash) + getCurrentWork().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.ReaderBaseState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ReaderBaseState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ReaderBaseState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ReaderBaseState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ReaderBaseState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ReaderBaseState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ReaderBaseState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ReaderBaseState 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 org.tensorflow.proto.framework.ReaderBaseState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ReaderBaseState 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 org.tensorflow.proto.framework.ReaderBaseState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ReaderBaseState 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(org.tensorflow.proto.framework.ReaderBaseState 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; - } - /** - *
-   * For serializing and restoring the state of ReaderBase, see
-   * reader_base.h for details.
-   * 
- * - * Protobuf type {@code tensorflow.ReaderBaseState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.ReaderBaseState) - org.tensorflow.proto.framework.ReaderBaseStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ReaderBaseProtos.internal_static_tensorflow_ReaderBaseState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ReaderBaseProtos.internal_static_tensorflow_ReaderBaseState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ReaderBaseState.class, org.tensorflow.proto.framework.ReaderBaseState.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.ReaderBaseState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - workStarted_ = 0L; - - workFinished_ = 0L; - - numRecordsProduced_ = 0L; - - currentWork_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.ReaderBaseProtos.internal_static_tensorflow_ReaderBaseState_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ReaderBaseState getDefaultInstanceForType() { - return org.tensorflow.proto.framework.ReaderBaseState.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.ReaderBaseState build() { - org.tensorflow.proto.framework.ReaderBaseState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ReaderBaseState buildPartial() { - org.tensorflow.proto.framework.ReaderBaseState result = new org.tensorflow.proto.framework.ReaderBaseState(this); - result.workStarted_ = workStarted_; - result.workFinished_ = workFinished_; - result.numRecordsProduced_ = numRecordsProduced_; - result.currentWork_ = currentWork_; - 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 org.tensorflow.proto.framework.ReaderBaseState) { - return mergeFrom((org.tensorflow.proto.framework.ReaderBaseState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.ReaderBaseState other) { - if (other == org.tensorflow.proto.framework.ReaderBaseState.getDefaultInstance()) return this; - if (other.getWorkStarted() != 0L) { - setWorkStarted(other.getWorkStarted()); - } - if (other.getWorkFinished() != 0L) { - setWorkFinished(other.getWorkFinished()); - } - if (other.getNumRecordsProduced() != 0L) { - setNumRecordsProduced(other.getNumRecordsProduced()); - } - if (other.getCurrentWork() != com.google.protobuf.ByteString.EMPTY) { - setCurrentWork(other.getCurrentWork()); - } - 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 { - org.tensorflow.proto.framework.ReaderBaseState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.ReaderBaseState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long workStarted_ ; - /** - * int64 work_started = 1; - */ - public long getWorkStarted() { - return workStarted_; - } - /** - * int64 work_started = 1; - */ - public Builder setWorkStarted(long value) { - - workStarted_ = value; - onChanged(); - return this; - } - /** - * int64 work_started = 1; - */ - public Builder clearWorkStarted() { - - workStarted_ = 0L; - onChanged(); - return this; - } - - private long workFinished_ ; - /** - * int64 work_finished = 2; - */ - public long getWorkFinished() { - return workFinished_; - } - /** - * int64 work_finished = 2; - */ - public Builder setWorkFinished(long value) { - - workFinished_ = value; - onChanged(); - return this; - } - /** - * int64 work_finished = 2; - */ - public Builder clearWorkFinished() { - - workFinished_ = 0L; - onChanged(); - return this; - } - - private long numRecordsProduced_ ; - /** - * int64 num_records_produced = 3; - */ - public long getNumRecordsProduced() { - return numRecordsProduced_; - } - /** - * int64 num_records_produced = 3; - */ - public Builder setNumRecordsProduced(long value) { - - numRecordsProduced_ = value; - onChanged(); - return this; - } - /** - * int64 num_records_produced = 3; - */ - public Builder clearNumRecordsProduced() { - - numRecordsProduced_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString currentWork_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes current_work = 4; - */ - public com.google.protobuf.ByteString getCurrentWork() { - return currentWork_; - } - /** - * bytes current_work = 4; - */ - public Builder setCurrentWork(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - currentWork_ = value; - onChanged(); - return this; - } - /** - * bytes current_work = 4; - */ - public Builder clearCurrentWork() { - - currentWork_ = getDefaultInstance().getCurrentWork(); - 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:tensorflow.ReaderBaseState) - } - - // @@protoc_insertion_point(class_scope:tensorflow.ReaderBaseState) - private static final org.tensorflow.proto.framework.ReaderBaseState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.ReaderBaseState(); - } - - public static org.tensorflow.proto.framework.ReaderBaseState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReaderBaseState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReaderBaseState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ReaderBaseState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RegisteredGradient.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RegisteredGradient.java deleted file mode 100644 index edb975087bf..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RegisteredGradient.java +++ /dev/null @@ -1,743 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/function.proto - -package org.tensorflow.proto.framework; - -/** - *
- * RegisteredGradient stores a gradient function that is registered in the
- * gradients library and used in the ops of a function in the function library.
- * Unlike GradientDef, these gradients are identified by op type, and not
- * directly linked to any function.
- * 
- * - * Protobuf type {@code tensorflow.RegisteredGradient} - */ -public final class RegisteredGradient extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.RegisteredGradient) - RegisteredGradientOrBuilder { -private static final long serialVersionUID = 0L; - // Use RegisteredGradient.newBuilder() to construct. - private RegisteredGradient(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RegisteredGradient() { - gradientFunc_ = ""; - registeredOpType_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RegisteredGradient(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RegisteredGradient( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - gradientFunc_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - registeredOpType_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_RegisteredGradient_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_RegisteredGradient_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.RegisteredGradient.class, org.tensorflow.proto.framework.RegisteredGradient.Builder.class); - } - - public static final int GRADIENT_FUNC_FIELD_NUMBER = 1; - private volatile java.lang.Object gradientFunc_; - /** - *
-   * The gradient function's name.
-   * 
- * - * string gradient_func = 1; - */ - public java.lang.String getGradientFunc() { - java.lang.Object ref = gradientFunc_; - 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(); - gradientFunc_ = s; - return s; - } - } - /** - *
-   * The gradient function's name.
-   * 
- * - * string gradient_func = 1; - */ - public com.google.protobuf.ByteString - getGradientFuncBytes() { - java.lang.Object ref = gradientFunc_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gradientFunc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGISTERED_OP_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object registeredOpType_; - /** - *
-   * The gradient function's registered op type.
-   * 
- * - * string registered_op_type = 2; - */ - public java.lang.String getRegisteredOpType() { - java.lang.Object ref = registeredOpType_; - 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(); - registeredOpType_ = s; - return s; - } - } - /** - *
-   * The gradient function's registered op type.
-   * 
- * - * string registered_op_type = 2; - */ - public com.google.protobuf.ByteString - getRegisteredOpTypeBytes() { - java.lang.Object ref = registeredOpType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - registeredOpType_ = 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 (!getGradientFuncBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gradientFunc_); - } - if (!getRegisteredOpTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, registeredOpType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getGradientFuncBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gradientFunc_); - } - if (!getRegisteredOpTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, registeredOpType_); - } - 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 org.tensorflow.proto.framework.RegisteredGradient)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.RegisteredGradient other = (org.tensorflow.proto.framework.RegisteredGradient) obj; - - if (!getGradientFunc() - .equals(other.getGradientFunc())) return false; - if (!getRegisteredOpType() - .equals(other.getRegisteredOpType())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GRADIENT_FUNC_FIELD_NUMBER; - hash = (53 * hash) + getGradientFunc().hashCode(); - hash = (37 * hash) + REGISTERED_OP_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getRegisteredOpType().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.RegisteredGradient parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RegisteredGradient parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RegisteredGradient parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RegisteredGradient parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RegisteredGradient parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RegisteredGradient parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RegisteredGradient parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RegisteredGradient 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 org.tensorflow.proto.framework.RegisteredGradient parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RegisteredGradient 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 org.tensorflow.proto.framework.RegisteredGradient parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RegisteredGradient 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(org.tensorflow.proto.framework.RegisteredGradient 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; - } - /** - *
-   * RegisteredGradient stores a gradient function that is registered in the
-   * gradients library and used in the ops of a function in the function library.
-   * Unlike GradientDef, these gradients are identified by op type, and not
-   * directly linked to any function.
-   * 
- * - * Protobuf type {@code tensorflow.RegisteredGradient} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.RegisteredGradient) - org.tensorflow.proto.framework.RegisteredGradientOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_RegisteredGradient_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_RegisteredGradient_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.RegisteredGradient.class, org.tensorflow.proto.framework.RegisteredGradient.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.RegisteredGradient.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - gradientFunc_ = ""; - - registeredOpType_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_RegisteredGradient_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RegisteredGradient getDefaultInstanceForType() { - return org.tensorflow.proto.framework.RegisteredGradient.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.RegisteredGradient build() { - org.tensorflow.proto.framework.RegisteredGradient result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RegisteredGradient buildPartial() { - org.tensorflow.proto.framework.RegisteredGradient result = new org.tensorflow.proto.framework.RegisteredGradient(this); - result.gradientFunc_ = gradientFunc_; - result.registeredOpType_ = registeredOpType_; - 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 org.tensorflow.proto.framework.RegisteredGradient) { - return mergeFrom((org.tensorflow.proto.framework.RegisteredGradient)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.RegisteredGradient other) { - if (other == org.tensorflow.proto.framework.RegisteredGradient.getDefaultInstance()) return this; - if (!other.getGradientFunc().isEmpty()) { - gradientFunc_ = other.gradientFunc_; - onChanged(); - } - if (!other.getRegisteredOpType().isEmpty()) { - registeredOpType_ = other.registeredOpType_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.RegisteredGradient parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.RegisteredGradient) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object gradientFunc_ = ""; - /** - *
-     * The gradient function's name.
-     * 
- * - * string gradient_func = 1; - */ - public java.lang.String getGradientFunc() { - java.lang.Object ref = gradientFunc_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gradientFunc_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The gradient function's name.
-     * 
- * - * string gradient_func = 1; - */ - public com.google.protobuf.ByteString - getGradientFuncBytes() { - java.lang.Object ref = gradientFunc_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gradientFunc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The gradient function's name.
-     * 
- * - * string gradient_func = 1; - */ - public Builder setGradientFunc( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gradientFunc_ = value; - onChanged(); - return this; - } - /** - *
-     * The gradient function's name.
-     * 
- * - * string gradient_func = 1; - */ - public Builder clearGradientFunc() { - - gradientFunc_ = getDefaultInstance().getGradientFunc(); - onChanged(); - return this; - } - /** - *
-     * The gradient function's name.
-     * 
- * - * string gradient_func = 1; - */ - public Builder setGradientFuncBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gradientFunc_ = value; - onChanged(); - return this; - } - - private java.lang.Object registeredOpType_ = ""; - /** - *
-     * The gradient function's registered op type.
-     * 
- * - * string registered_op_type = 2; - */ - public java.lang.String getRegisteredOpType() { - java.lang.Object ref = registeredOpType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registeredOpType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The gradient function's registered op type.
-     * 
- * - * string registered_op_type = 2; - */ - public com.google.protobuf.ByteString - getRegisteredOpTypeBytes() { - java.lang.Object ref = registeredOpType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - registeredOpType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The gradient function's registered op type.
-     * 
- * - * string registered_op_type = 2; - */ - public Builder setRegisteredOpType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - registeredOpType_ = value; - onChanged(); - return this; - } - /** - *
-     * The gradient function's registered op type.
-     * 
- * - * string registered_op_type = 2; - */ - public Builder clearRegisteredOpType() { - - registeredOpType_ = getDefaultInstance().getRegisteredOpType(); - onChanged(); - return this; - } - /** - *
-     * The gradient function's registered op type.
-     * 
- * - * string registered_op_type = 2; - */ - public Builder setRegisteredOpTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - registeredOpType_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.RegisteredGradient) - } - - // @@protoc_insertion_point(class_scope:tensorflow.RegisteredGradient) - private static final org.tensorflow.proto.framework.RegisteredGradient DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.RegisteredGradient(); - } - - public static org.tensorflow.proto.framework.RegisteredGradient getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RegisteredGradient parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RegisteredGradient(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RegisteredGradient getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RegisteredSaver.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RegisteredSaver.java deleted file mode 100644 index 9b5429016c6..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RegisteredSaver.java +++ /dev/null @@ -1,729 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/trackable_object_graph.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.RegisteredSaver} - */ -public final class RegisteredSaver extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.RegisteredSaver) - RegisteredSaverOrBuilder { -private static final long serialVersionUID = 0L; - // Use RegisteredSaver.newBuilder() to construct. - private RegisteredSaver(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RegisteredSaver() { - name_ = ""; - objectName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RegisteredSaver(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RegisteredSaver( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - objectName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.TrackableObjectGraphProtos.internal_static_tensorflow_RegisteredSaver_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.TrackableObjectGraphProtos.internal_static_tensorflow_RegisteredSaver_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.RegisteredSaver.class, org.tensorflow.proto.framework.RegisteredSaver.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * The name of the registered saver/restore function.
-   * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - *
-   * The name of the registered saver/restore function.
-   * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OBJECT_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object objectName_; - /** - *
-   * Unique auto-generated name of the object.
-   * 
- * - * string object_name = 2; - */ - public java.lang.String getObjectName() { - java.lang.Object ref = objectName_; - 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(); - objectName_ = s; - return s; - } - } - /** - *
-   * Unique auto-generated name of the object.
-   * 
- * - * string object_name = 2; - */ - public com.google.protobuf.ByteString - getObjectNameBytes() { - java.lang.Object ref = objectName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - objectName_ = 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getObjectNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, objectName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getObjectNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, objectName_); - } - 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 org.tensorflow.proto.framework.RegisteredSaver)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.RegisteredSaver other = (org.tensorflow.proto.framework.RegisteredSaver) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getObjectName() - .equals(other.getObjectName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + OBJECT_NAME_FIELD_NUMBER; - hash = (53 * hash) + getObjectName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.RegisteredSaver parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RegisteredSaver parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RegisteredSaver parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RegisteredSaver parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RegisteredSaver parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RegisteredSaver parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RegisteredSaver parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RegisteredSaver 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 org.tensorflow.proto.framework.RegisteredSaver parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RegisteredSaver 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 org.tensorflow.proto.framework.RegisteredSaver parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RegisteredSaver 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(org.tensorflow.proto.framework.RegisteredSaver prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.RegisteredSaver} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.RegisteredSaver) - org.tensorflow.proto.framework.RegisteredSaverOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.TrackableObjectGraphProtos.internal_static_tensorflow_RegisteredSaver_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.TrackableObjectGraphProtos.internal_static_tensorflow_RegisteredSaver_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.RegisteredSaver.class, org.tensorflow.proto.framework.RegisteredSaver.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.RegisteredSaver.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - objectName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.TrackableObjectGraphProtos.internal_static_tensorflow_RegisteredSaver_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RegisteredSaver getDefaultInstanceForType() { - return org.tensorflow.proto.framework.RegisteredSaver.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.RegisteredSaver build() { - org.tensorflow.proto.framework.RegisteredSaver result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RegisteredSaver buildPartial() { - org.tensorflow.proto.framework.RegisteredSaver result = new org.tensorflow.proto.framework.RegisteredSaver(this); - result.name_ = name_; - result.objectName_ = objectName_; - 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 org.tensorflow.proto.framework.RegisteredSaver) { - return mergeFrom((org.tensorflow.proto.framework.RegisteredSaver)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.RegisteredSaver other) { - if (other == org.tensorflow.proto.framework.RegisteredSaver.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getObjectName().isEmpty()) { - objectName_ = other.objectName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.RegisteredSaver parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.RegisteredSaver) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * The name of the registered saver/restore function.
-     * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name of the registered saver/restore function.
-     * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name of the registered saver/restore function.
-     * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of the registered saver/restore function.
-     * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * The name of the registered saver/restore function.
-     * 
- * - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object objectName_ = ""; - /** - *
-     * Unique auto-generated name of the object.
-     * 
- * - * string object_name = 2; - */ - public java.lang.String getObjectName() { - java.lang.Object ref = objectName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - objectName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Unique auto-generated name of the object.
-     * 
- * - * string object_name = 2; - */ - public com.google.protobuf.ByteString - getObjectNameBytes() { - java.lang.Object ref = objectName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - objectName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Unique auto-generated name of the object.
-     * 
- * - * string object_name = 2; - */ - public Builder setObjectName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - objectName_ = value; - onChanged(); - return this; - } - /** - *
-     * Unique auto-generated name of the object.
-     * 
- * - * string object_name = 2; - */ - public Builder clearObjectName() { - - objectName_ = getDefaultInstance().getObjectName(); - onChanged(); - return this; - } - /** - *
-     * Unique auto-generated name of the object.
-     * 
- * - * string object_name = 2; - */ - public Builder setObjectNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - objectName_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.RegisteredSaver) - } - - // @@protoc_insertion_point(class_scope:tensorflow.RegisteredSaver) - private static final org.tensorflow.proto.framework.RegisteredSaver DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.RegisteredSaver(); - } - - public static org.tensorflow.proto.framework.RegisteredSaver getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RegisteredSaver parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RegisteredSaver(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RegisteredSaver getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RegisteredSaverOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RegisteredSaverOrBuilder.java deleted file mode 100644 index a80190ac3de..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RegisteredSaverOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/trackable_object_graph.proto - -package org.tensorflow.proto.framework; - -public interface RegisteredSaverOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.RegisteredSaver) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The name of the registered saver/restore function.
-   * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-   * The name of the registered saver/restore function.
-   * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Unique auto-generated name of the object.
-   * 
- * - * string object_name = 2; - */ - java.lang.String getObjectName(); - /** - *
-   * Unique auto-generated name of the object.
-   * 
- * - * string object_name = 2; - */ - com.google.protobuf.ByteString - getObjectNameBytes(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ResourceDtypeAndShape.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ResourceDtypeAndShape.java deleted file mode 100644 index 2586a7e626a..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ResourceDtypeAndShape.java +++ /dev/null @@ -1,685 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/remote_tensor_handle.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.eager.ResourceDtypeAndShape} - */ -public final class ResourceDtypeAndShape extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.eager.ResourceDtypeAndShape) - ResourceDtypeAndShapeOrBuilder { -private static final long serialVersionUID = 0L; - // Use ResourceDtypeAndShape.newBuilder() to construct. - private ResourceDtypeAndShape(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResourceDtypeAndShape() { - dtype_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ResourceDtypeAndShape(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResourceDtypeAndShape( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - dtype_ = rawValue; - break; - } - case 18: { - org.tensorflow.proto.framework.TensorShapeProto.Builder subBuilder = null; - if (shape_ != null) { - subBuilder = shape_.toBuilder(); - } - shape_ = input.readMessage(org.tensorflow.proto.framework.TensorShapeProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(shape_); - shape_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.RemoteTensorHandleProtos.internal_static_tensorflow_eager_ResourceDtypeAndShape_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.RemoteTensorHandleProtos.internal_static_tensorflow_eager_ResourceDtypeAndShape_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ResourceDtypeAndShape.class, org.tensorflow.proto.framework.ResourceDtypeAndShape.Builder.class); - } - - public static final int DTYPE_FIELD_NUMBER = 1; - private int dtype_; - /** - * .tensorflow.DataType dtype = 1; - */ - public int getDtypeValue() { - return dtype_; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public org.tensorflow.proto.framework.DataType getDtype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - - public static final int SHAPE_FIELD_NUMBER = 2; - private org.tensorflow.proto.framework.TensorShapeProto shape_; - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public boolean hasShape() { - return shape_ != null; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProto getShape() { - return shape_ == null ? org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { - return getShape(); - } - - 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 (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - output.writeEnum(1, dtype_); - } - if (shape_ != null) { - output.writeMessage(2, getShape()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, dtype_); - } - if (shape_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getShape()); - } - 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 org.tensorflow.proto.framework.ResourceDtypeAndShape)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.ResourceDtypeAndShape other = (org.tensorflow.proto.framework.ResourceDtypeAndShape) obj; - - if (dtype_ != other.dtype_) return false; - if (hasShape() != other.hasShape()) return false; - if (hasShape()) { - if (!getShape() - .equals(other.getShape())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DTYPE_FIELD_NUMBER; - hash = (53 * hash) + dtype_; - if (hasShape()) { - hash = (37 * hash) + SHAPE_FIELD_NUMBER; - hash = (53 * hash) + getShape().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.ResourceDtypeAndShape parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ResourceDtypeAndShape parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ResourceDtypeAndShape parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ResourceDtypeAndShape parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ResourceDtypeAndShape parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ResourceDtypeAndShape parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ResourceDtypeAndShape parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ResourceDtypeAndShape 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 org.tensorflow.proto.framework.ResourceDtypeAndShape parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ResourceDtypeAndShape 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 org.tensorflow.proto.framework.ResourceDtypeAndShape parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ResourceDtypeAndShape 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(org.tensorflow.proto.framework.ResourceDtypeAndShape prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.eager.ResourceDtypeAndShape} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.eager.ResourceDtypeAndShape) - org.tensorflow.proto.framework.ResourceDtypeAndShapeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.RemoteTensorHandleProtos.internal_static_tensorflow_eager_ResourceDtypeAndShape_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.RemoteTensorHandleProtos.internal_static_tensorflow_eager_ResourceDtypeAndShape_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ResourceDtypeAndShape.class, org.tensorflow.proto.framework.ResourceDtypeAndShape.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.ResourceDtypeAndShape.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - dtype_ = 0; - - if (shapeBuilder_ == null) { - shape_ = null; - } else { - shape_ = null; - shapeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.RemoteTensorHandleProtos.internal_static_tensorflow_eager_ResourceDtypeAndShape_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ResourceDtypeAndShape getDefaultInstanceForType() { - return org.tensorflow.proto.framework.ResourceDtypeAndShape.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.ResourceDtypeAndShape build() { - org.tensorflow.proto.framework.ResourceDtypeAndShape result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ResourceDtypeAndShape buildPartial() { - org.tensorflow.proto.framework.ResourceDtypeAndShape result = new org.tensorflow.proto.framework.ResourceDtypeAndShape(this); - result.dtype_ = dtype_; - if (shapeBuilder_ == null) { - result.shape_ = shape_; - } else { - result.shape_ = shapeBuilder_.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 org.tensorflow.proto.framework.ResourceDtypeAndShape) { - return mergeFrom((org.tensorflow.proto.framework.ResourceDtypeAndShape)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.ResourceDtypeAndShape other) { - if (other == org.tensorflow.proto.framework.ResourceDtypeAndShape.getDefaultInstance()) return this; - if (other.dtype_ != 0) { - setDtypeValue(other.getDtypeValue()); - } - if (other.hasShape()) { - mergeShape(other.getShape()); - } - 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 { - org.tensorflow.proto.framework.ResourceDtypeAndShape parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.ResourceDtypeAndShape) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int dtype_ = 0; - /** - * .tensorflow.DataType dtype = 1; - */ - public int getDtypeValue() { - return dtype_; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public Builder setDtypeValue(int value) { - dtype_ = value; - onChanged(); - return this; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public org.tensorflow.proto.framework.DataType getDtype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public Builder setDtype(org.tensorflow.proto.framework.DataType value) { - if (value == null) { - throw new NullPointerException(); - } - - dtype_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public Builder clearDtype() { - - dtype_ = 0; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.TensorShapeProto shape_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> shapeBuilder_; - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public boolean hasShape() { - return shapeBuilder_ != null || shape_ != null; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProto getShape() { - if (shapeBuilder_ == null) { - return shape_ == null ? org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; - } else { - return shapeBuilder_.getMessage(); - } - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder setShape(org.tensorflow.proto.framework.TensorShapeProto value) { - if (shapeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - shape_ = value; - onChanged(); - } else { - shapeBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder setShape( - org.tensorflow.proto.framework.TensorShapeProto.Builder builderForValue) { - if (shapeBuilder_ == null) { - shape_ = builderForValue.build(); - onChanged(); - } else { - shapeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder mergeShape(org.tensorflow.proto.framework.TensorShapeProto value) { - if (shapeBuilder_ == null) { - if (shape_ != null) { - shape_ = - org.tensorflow.proto.framework.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial(); - } else { - shape_ = value; - } - onChanged(); - } else { - shapeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder clearShape() { - if (shapeBuilder_ == null) { - shape_ = null; - onChanged(); - } else { - shape_ = null; - shapeBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProto.Builder getShapeBuilder() { - - onChanged(); - return getShapeFieldBuilder().getBuilder(); - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { - if (shapeBuilder_ != null) { - return shapeBuilder_.getMessageOrBuilder(); - } else { - return shape_ == null ? - org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; - } - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> - getShapeFieldBuilder() { - if (shapeBuilder_ == null) { - shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder>( - getShape(), - getParentForChildren(), - isClean()); - shape_ = null; - } - return shapeBuilder_; - } - @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:tensorflow.eager.ResourceDtypeAndShape) - } - - // @@protoc_insertion_point(class_scope:tensorflow.eager.ResourceDtypeAndShape) - private static final org.tensorflow.proto.framework.ResourceDtypeAndShape DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.ResourceDtypeAndShape(); - } - - public static org.tensorflow.proto.framework.ResourceDtypeAndShape getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceDtypeAndShape parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceDtypeAndShape(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ResourceDtypeAndShape getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ResourceDtypeAndShapeOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ResourceDtypeAndShapeOrBuilder.java deleted file mode 100644 index 67ab4da1b8d..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ResourceDtypeAndShapeOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/remote_tensor_handle.proto - -package org.tensorflow.proto.framework; - -public interface ResourceDtypeAndShapeOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.eager.ResourceDtypeAndShape) - com.google.protobuf.MessageOrBuilder { - - /** - * .tensorflow.DataType dtype = 1; - */ - int getDtypeValue(); - /** - * .tensorflow.DataType dtype = 1; - */ - org.tensorflow.proto.framework.DataType getDtype(); - - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - boolean hasShape(); - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - org.tensorflow.proto.framework.TensorShapeProto getShape(); - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ResourceHandle.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ResourceHandle.java deleted file mode 100644 index 5a96505f0eb..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ResourceHandle.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/resource_handle.proto - -package org.tensorflow.proto.framework; - -public final class ResourceHandle { - private ResourceHandle() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_ResourceHandleProto_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_ResourceHandleProto_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_ResourceHandleProto_DtypeAndShape_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_ResourceHandleProto_DtypeAndShape_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n/tensorflow/core/framework/resource_han" + - "dle.proto\022\ntensorflow\032,tensorflow/core/f" + - "ramework/tensor_shape.proto\032%tensorflow/" + - "core/framework/types.proto\"\245\002\n\023ResourceH" + - "andleProto\022\016\n\006device\030\001 \001(\t\022\021\n\tcontainer\030" + - "\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\021\n\thash_code\030\004 \001(\004\022\027" + - "\n\017maybe_type_name\030\005 \001(\t\022H\n\021dtypes_and_sh" + - "apes\030\006 \003(\0132-.tensorflow.ResourceHandlePr" + - "oto.DtypeAndShape\032a\n\rDtypeAndShape\022#\n\005dt" + - "ype\030\001 \001(\0162\024.tensorflow.DataType\022+\n\005shape" + - "\030\002 \001(\0132\034.tensorflow.TensorShapeProtoJ\004\010\007" + - "\020\010B\215\001\n\036org.tensorflow.proto.frameworkB\016R" + - "esourceHandleP\001ZVgithub.com/tensorflow/t" + - "ensorflow/tensorflow/go/core/framework/r" + - "esource_handle_go_proto\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(), - org.tensorflow.proto.framework.TypesProtos.getDescriptor(), - }); - internal_static_tensorflow_ResourceHandleProto_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tensorflow_ResourceHandleProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_ResourceHandleProto_descriptor, - new java.lang.String[] { "Device", "Container", "Name", "HashCode", "MaybeTypeName", "DtypesAndShapes", }); - internal_static_tensorflow_ResourceHandleProto_DtypeAndShape_descriptor = - internal_static_tensorflow_ResourceHandleProto_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_ResourceHandleProto_DtypeAndShape_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_ResourceHandleProto_DtypeAndShape_descriptor, - new java.lang.String[] { "Dtype", "Shape", }); - org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(); - org.tensorflow.proto.framework.TypesProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ResourceHandleProto.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ResourceHandleProto.java deleted file mode 100644 index 3d31206b794..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ResourceHandleProto.java +++ /dev/null @@ -1,2288 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/resource_handle.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Protocol buffer representing a handle to a tensorflow resource. Handles are
- * not valid across executions, but can be serialized back and forth from within
- * a single run.
- * 
- * - * Protobuf type {@code tensorflow.ResourceHandleProto} - */ -public final class ResourceHandleProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.ResourceHandleProto) - ResourceHandleProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use ResourceHandleProto.newBuilder() to construct. - private ResourceHandleProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResourceHandleProto() { - device_ = ""; - container_ = ""; - name_ = ""; - maybeTypeName_ = ""; - dtypesAndShapes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ResourceHandleProto(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResourceHandleProto( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - device_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - container_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 32: { - - hashCode_ = input.readUInt64(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - maybeTypeName_ = s; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dtypesAndShapes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - dtypesAndShapes_.add( - input.readMessage(org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.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)) { - dtypesAndShapes_ = java.util.Collections.unmodifiableList(dtypesAndShapes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ResourceHandle.internal_static_tensorflow_ResourceHandleProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ResourceHandle.internal_static_tensorflow_ResourceHandleProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ResourceHandleProto.class, org.tensorflow.proto.framework.ResourceHandleProto.Builder.class); - } - - public interface DtypeAndShapeOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.ResourceHandleProto.DtypeAndShape) - com.google.protobuf.MessageOrBuilder { - - /** - * .tensorflow.DataType dtype = 1; - */ - int getDtypeValue(); - /** - * .tensorflow.DataType dtype = 1; - */ - org.tensorflow.proto.framework.DataType getDtype(); - - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - boolean hasShape(); - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - org.tensorflow.proto.framework.TensorShapeProto getShape(); - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder(); - } - /** - *
-   * Protocol buffer representing a pair of (data type, tensor shape).
-   * 
- * - * Protobuf type {@code tensorflow.ResourceHandleProto.DtypeAndShape} - */ - public static final class DtypeAndShape extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.ResourceHandleProto.DtypeAndShape) - DtypeAndShapeOrBuilder { - private static final long serialVersionUID = 0L; - // Use DtypeAndShape.newBuilder() to construct. - private DtypeAndShape(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DtypeAndShape() { - dtype_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DtypeAndShape(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DtypeAndShape( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - dtype_ = rawValue; - break; - } - case 18: { - org.tensorflow.proto.framework.TensorShapeProto.Builder subBuilder = null; - if (shape_ != null) { - subBuilder = shape_.toBuilder(); - } - shape_ = input.readMessage(org.tensorflow.proto.framework.TensorShapeProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(shape_); - shape_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ResourceHandle.internal_static_tensorflow_ResourceHandleProto_DtypeAndShape_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ResourceHandle.internal_static_tensorflow_ResourceHandleProto_DtypeAndShape_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.class, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.Builder.class); - } - - public static final int DTYPE_FIELD_NUMBER = 1; - private int dtype_; - /** - * .tensorflow.DataType dtype = 1; - */ - public int getDtypeValue() { - return dtype_; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public org.tensorflow.proto.framework.DataType getDtype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - - public static final int SHAPE_FIELD_NUMBER = 2; - private org.tensorflow.proto.framework.TensorShapeProto shape_; - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public boolean hasShape() { - return shape_ != null; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProto getShape() { - return shape_ == null ? org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { - return getShape(); - } - - 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 (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - output.writeEnum(1, dtype_); - } - if (shape_ != null) { - output.writeMessage(2, getShape()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, dtype_); - } - if (shape_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getShape()); - } - 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 org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape other = (org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape) obj; - - if (dtype_ != other.dtype_) return false; - if (hasShape() != other.hasShape()) return false; - if (hasShape()) { - if (!getShape() - .equals(other.getShape())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DTYPE_FIELD_NUMBER; - hash = (53 * hash) + dtype_; - if (hasShape()) { - hash = (37 * hash) + SHAPE_FIELD_NUMBER; - hash = (53 * hash) + getShape().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape 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 org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape 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 org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape 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(org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape 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; - } - /** - *
-     * Protocol buffer representing a pair of (data type, tensor shape).
-     * 
- * - * Protobuf type {@code tensorflow.ResourceHandleProto.DtypeAndShape} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.ResourceHandleProto.DtypeAndShape) - org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShapeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ResourceHandle.internal_static_tensorflow_ResourceHandleProto_DtypeAndShape_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ResourceHandle.internal_static_tensorflow_ResourceHandleProto_DtypeAndShape_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.class, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - dtype_ = 0; - - if (shapeBuilder_ == null) { - shape_ = null; - } else { - shape_ = null; - shapeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.ResourceHandle.internal_static_tensorflow_ResourceHandleProto_DtypeAndShape_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape getDefaultInstanceForType() { - return org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape build() { - org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape buildPartial() { - org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape result = new org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape(this); - result.dtype_ = dtype_; - if (shapeBuilder_ == null) { - result.shape_ = shape_; - } else { - result.shape_ = shapeBuilder_.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 org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape) { - return mergeFrom((org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape other) { - if (other == org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.getDefaultInstance()) return this; - if (other.dtype_ != 0) { - setDtypeValue(other.getDtypeValue()); - } - if (other.hasShape()) { - mergeShape(other.getShape()); - } - 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 { - org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int dtype_ = 0; - /** - * .tensorflow.DataType dtype = 1; - */ - public int getDtypeValue() { - return dtype_; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public Builder setDtypeValue(int value) { - dtype_ = value; - onChanged(); - return this; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public org.tensorflow.proto.framework.DataType getDtype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public Builder setDtype(org.tensorflow.proto.framework.DataType value) { - if (value == null) { - throw new NullPointerException(); - } - - dtype_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public Builder clearDtype() { - - dtype_ = 0; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.TensorShapeProto shape_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> shapeBuilder_; - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public boolean hasShape() { - return shapeBuilder_ != null || shape_ != null; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProto getShape() { - if (shapeBuilder_ == null) { - return shape_ == null ? org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; - } else { - return shapeBuilder_.getMessage(); - } - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder setShape(org.tensorflow.proto.framework.TensorShapeProto value) { - if (shapeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - shape_ = value; - onChanged(); - } else { - shapeBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder setShape( - org.tensorflow.proto.framework.TensorShapeProto.Builder builderForValue) { - if (shapeBuilder_ == null) { - shape_ = builderForValue.build(); - onChanged(); - } else { - shapeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder mergeShape(org.tensorflow.proto.framework.TensorShapeProto value) { - if (shapeBuilder_ == null) { - if (shape_ != null) { - shape_ = - org.tensorflow.proto.framework.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial(); - } else { - shape_ = value; - } - onChanged(); - } else { - shapeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder clearShape() { - if (shapeBuilder_ == null) { - shape_ = null; - onChanged(); - } else { - shape_ = null; - shapeBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProto.Builder getShapeBuilder() { - - onChanged(); - return getShapeFieldBuilder().getBuilder(); - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { - if (shapeBuilder_ != null) { - return shapeBuilder_.getMessageOrBuilder(); - } else { - return shape_ == null ? - org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; - } - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> - getShapeFieldBuilder() { - if (shapeBuilder_ == null) { - shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder>( - getShape(), - getParentForChildren(), - isClean()); - shape_ = null; - } - return shapeBuilder_; - } - @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:tensorflow.ResourceHandleProto.DtypeAndShape) - } - - // @@protoc_insertion_point(class_scope:tensorflow.ResourceHandleProto.DtypeAndShape) - private static final org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape(); - } - - public static org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DtypeAndShape parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DtypeAndShape(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int DEVICE_FIELD_NUMBER = 1; - private volatile java.lang.Object device_; - /** - *
-   * Unique name for the device containing the resource.
-   * 
- * - * string device = 1; - */ - public java.lang.String getDevice() { - java.lang.Object ref = device_; - 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(); - device_ = s; - return s; - } - } - /** - *
-   * Unique name for the device containing the resource.
-   * 
- * - * string device = 1; - */ - public com.google.protobuf.ByteString - getDeviceBytes() { - java.lang.Object ref = device_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - device_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONTAINER_FIELD_NUMBER = 2; - private volatile java.lang.Object container_; - /** - *
-   * Container in which this resource is placed.
-   * 
- * - * string container = 2; - */ - public java.lang.String getContainer() { - java.lang.Object ref = container_; - 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(); - container_ = s; - return s; - } - } - /** - *
-   * Container in which this resource is placed.
-   * 
- * - * string container = 2; - */ - public com.google.protobuf.ByteString - getContainerBytes() { - java.lang.Object ref = container_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - container_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object name_; - /** - *
-   * Unique name of this resource.
-   * 
- * - * string name = 3; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - *
-   * Unique name of this resource.
-   * 
- * - * string name = 3; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HASH_CODE_FIELD_NUMBER = 4; - private long hashCode_; - /** - *
-   * Hash code for the type of the resource. Is only valid in the same device
-   * and in the same execution.
-   * 
- * - * uint64 hash_code = 4; - */ - public long getHashCode() { - return hashCode_; - } - - public static final int MAYBE_TYPE_NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object maybeTypeName_; - /** - *
-   * For debug-only, the name of the type pointed to by this handle, if
-   * available.
-   * 
- * - * string maybe_type_name = 5; - */ - public java.lang.String getMaybeTypeName() { - java.lang.Object ref = maybeTypeName_; - 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(); - maybeTypeName_ = s; - return s; - } - } - /** - *
-   * For debug-only, the name of the type pointed to by this handle, if
-   * available.
-   * 
- * - * string maybe_type_name = 5; - */ - public com.google.protobuf.ByteString - getMaybeTypeNameBytes() { - java.lang.Object ref = maybeTypeName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - maybeTypeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DTYPES_AND_SHAPES_FIELD_NUMBER = 6; - private java.util.List dtypesAndShapes_; - /** - *
-   * Data types and shapes for the underlying resource.
-   * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public java.util.List getDtypesAndShapesList() { - return dtypesAndShapes_; - } - /** - *
-   * Data types and shapes for the underlying resource.
-   * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public java.util.List - getDtypesAndShapesOrBuilderList() { - return dtypesAndShapes_; - } - /** - *
-   * Data types and shapes for the underlying resource.
-   * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public int getDtypesAndShapesCount() { - return dtypesAndShapes_.size(); - } - /** - *
-   * Data types and shapes for the underlying resource.
-   * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape getDtypesAndShapes(int index) { - return dtypesAndShapes_.get(index); - } - /** - *
-   * Data types and shapes for the underlying resource.
-   * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShapeOrBuilder getDtypesAndShapesOrBuilder( - int index) { - return dtypesAndShapes_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!getDeviceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, device_); - } - if (!getContainerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, container_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); - } - if (hashCode_ != 0L) { - output.writeUInt64(4, hashCode_); - } - if (!getMaybeTypeNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, maybeTypeName_); - } - for (int i = 0; i < dtypesAndShapes_.size(); i++) { - output.writeMessage(6, dtypesAndShapes_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDeviceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, device_); - } - if (!getContainerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, container_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); - } - if (hashCode_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, hashCode_); - } - if (!getMaybeTypeNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, maybeTypeName_); - } - for (int i = 0; i < dtypesAndShapes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, dtypesAndShapes_.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 org.tensorflow.proto.framework.ResourceHandleProto)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.ResourceHandleProto other = (org.tensorflow.proto.framework.ResourceHandleProto) obj; - - if (!getDevice() - .equals(other.getDevice())) return false; - if (!getContainer() - .equals(other.getContainer())) return false; - if (!getName() - .equals(other.getName())) return false; - if (getHashCode() - != other.getHashCode()) return false; - if (!getMaybeTypeName() - .equals(other.getMaybeTypeName())) return false; - if (!getDtypesAndShapesList() - .equals(other.getDtypesAndShapesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DEVICE_FIELD_NUMBER; - hash = (53 * hash) + getDevice().hashCode(); - hash = (37 * hash) + CONTAINER_FIELD_NUMBER; - hash = (53 * hash) + getContainer().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + HASH_CODE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHashCode()); - hash = (37 * hash) + MAYBE_TYPE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getMaybeTypeName().hashCode(); - if (getDtypesAndShapesCount() > 0) { - hash = (37 * hash) + DTYPES_AND_SHAPES_FIELD_NUMBER; - hash = (53 * hash) + getDtypesAndShapesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.ResourceHandleProto parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ResourceHandleProto parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ResourceHandleProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ResourceHandleProto parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ResourceHandleProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ResourceHandleProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ResourceHandleProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ResourceHandleProto 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 org.tensorflow.proto.framework.ResourceHandleProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ResourceHandleProto 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 org.tensorflow.proto.framework.ResourceHandleProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ResourceHandleProto 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(org.tensorflow.proto.framework.ResourceHandleProto 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; - } - /** - *
-   * Protocol buffer representing a handle to a tensorflow resource. Handles are
-   * not valid across executions, but can be serialized back and forth from within
-   * a single run.
-   * 
- * - * Protobuf type {@code tensorflow.ResourceHandleProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.ResourceHandleProto) - org.tensorflow.proto.framework.ResourceHandleProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ResourceHandle.internal_static_tensorflow_ResourceHandleProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ResourceHandle.internal_static_tensorflow_ResourceHandleProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ResourceHandleProto.class, org.tensorflow.proto.framework.ResourceHandleProto.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.ResourceHandleProto.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDtypesAndShapesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - device_ = ""; - - container_ = ""; - - name_ = ""; - - hashCode_ = 0L; - - maybeTypeName_ = ""; - - if (dtypesAndShapesBuilder_ == null) { - dtypesAndShapes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - dtypesAndShapesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.ResourceHandle.internal_static_tensorflow_ResourceHandleProto_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ResourceHandleProto getDefaultInstanceForType() { - return org.tensorflow.proto.framework.ResourceHandleProto.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.ResourceHandleProto build() { - org.tensorflow.proto.framework.ResourceHandleProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ResourceHandleProto buildPartial() { - org.tensorflow.proto.framework.ResourceHandleProto result = new org.tensorflow.proto.framework.ResourceHandleProto(this); - int from_bitField0_ = bitField0_; - result.device_ = device_; - result.container_ = container_; - result.name_ = name_; - result.hashCode_ = hashCode_; - result.maybeTypeName_ = maybeTypeName_; - if (dtypesAndShapesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dtypesAndShapes_ = java.util.Collections.unmodifiableList(dtypesAndShapes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dtypesAndShapes_ = dtypesAndShapes_; - } else { - result.dtypesAndShapes_ = dtypesAndShapesBuilder_.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 org.tensorflow.proto.framework.ResourceHandleProto) { - return mergeFrom((org.tensorflow.proto.framework.ResourceHandleProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.ResourceHandleProto other) { - if (other == org.tensorflow.proto.framework.ResourceHandleProto.getDefaultInstance()) return this; - if (!other.getDevice().isEmpty()) { - device_ = other.device_; - onChanged(); - } - if (!other.getContainer().isEmpty()) { - container_ = other.container_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getHashCode() != 0L) { - setHashCode(other.getHashCode()); - } - if (!other.getMaybeTypeName().isEmpty()) { - maybeTypeName_ = other.maybeTypeName_; - onChanged(); - } - if (dtypesAndShapesBuilder_ == null) { - if (!other.dtypesAndShapes_.isEmpty()) { - if (dtypesAndShapes_.isEmpty()) { - dtypesAndShapes_ = other.dtypesAndShapes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDtypesAndShapesIsMutable(); - dtypesAndShapes_.addAll(other.dtypesAndShapes_); - } - onChanged(); - } - } else { - if (!other.dtypesAndShapes_.isEmpty()) { - if (dtypesAndShapesBuilder_.isEmpty()) { - dtypesAndShapesBuilder_.dispose(); - dtypesAndShapesBuilder_ = null; - dtypesAndShapes_ = other.dtypesAndShapes_; - bitField0_ = (bitField0_ & ~0x00000001); - dtypesAndShapesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDtypesAndShapesFieldBuilder() : null; - } else { - dtypesAndShapesBuilder_.addAllMessages(other.dtypesAndShapes_); - } - } - } - 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 { - org.tensorflow.proto.framework.ResourceHandleProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.ResourceHandleProto) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object device_ = ""; - /** - *
-     * Unique name for the device containing the resource.
-     * 
- * - * string device = 1; - */ - public java.lang.String getDevice() { - java.lang.Object ref = device_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - device_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Unique name for the device containing the resource.
-     * 
- * - * string device = 1; - */ - public com.google.protobuf.ByteString - getDeviceBytes() { - java.lang.Object ref = device_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - device_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Unique name for the device containing the resource.
-     * 
- * - * string device = 1; - */ - public Builder setDevice( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - device_ = value; - onChanged(); - return this; - } - /** - *
-     * Unique name for the device containing the resource.
-     * 
- * - * string device = 1; - */ - public Builder clearDevice() { - - device_ = getDefaultInstance().getDevice(); - onChanged(); - return this; - } - /** - *
-     * Unique name for the device containing the resource.
-     * 
- * - * string device = 1; - */ - public Builder setDeviceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - device_ = value; - onChanged(); - return this; - } - - private java.lang.Object container_ = ""; - /** - *
-     * Container in which this resource is placed.
-     * 
- * - * string container = 2; - */ - public java.lang.String getContainer() { - java.lang.Object ref = container_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - container_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Container in which this resource is placed.
-     * 
- * - * string container = 2; - */ - public com.google.protobuf.ByteString - getContainerBytes() { - java.lang.Object ref = container_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - container_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Container in which this resource is placed.
-     * 
- * - * string container = 2; - */ - public Builder setContainer( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - container_ = value; - onChanged(); - return this; - } - /** - *
-     * Container in which this resource is placed.
-     * 
- * - * string container = 2; - */ - public Builder clearContainer() { - - container_ = getDefaultInstance().getContainer(); - onChanged(); - return this; - } - /** - *
-     * Container in which this resource is placed.
-     * 
- * - * string container = 2; - */ - public Builder setContainerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - container_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * Unique name of this resource.
-     * 
- * - * string name = 3; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Unique name of this resource.
-     * 
- * - * string name = 3; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Unique name of this resource.
-     * 
- * - * string name = 3; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * Unique name of this resource.
-     * 
- * - * string name = 3; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * Unique name of this resource.
-     * 
- * - * string name = 3; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private long hashCode_ ; - /** - *
-     * Hash code for the type of the resource. Is only valid in the same device
-     * and in the same execution.
-     * 
- * - * uint64 hash_code = 4; - */ - public long getHashCode() { - return hashCode_; - } - /** - *
-     * Hash code for the type of the resource. Is only valid in the same device
-     * and in the same execution.
-     * 
- * - * uint64 hash_code = 4; - */ - public Builder setHashCode(long value) { - - hashCode_ = value; - onChanged(); - return this; - } - /** - *
-     * Hash code for the type of the resource. Is only valid in the same device
-     * and in the same execution.
-     * 
- * - * uint64 hash_code = 4; - */ - public Builder clearHashCode() { - - hashCode_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object maybeTypeName_ = ""; - /** - *
-     * For debug-only, the name of the type pointed to by this handle, if
-     * available.
-     * 
- * - * string maybe_type_name = 5; - */ - public java.lang.String getMaybeTypeName() { - java.lang.Object ref = maybeTypeName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - maybeTypeName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * For debug-only, the name of the type pointed to by this handle, if
-     * available.
-     * 
- * - * string maybe_type_name = 5; - */ - public com.google.protobuf.ByteString - getMaybeTypeNameBytes() { - java.lang.Object ref = maybeTypeName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - maybeTypeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * For debug-only, the name of the type pointed to by this handle, if
-     * available.
-     * 
- * - * string maybe_type_name = 5; - */ - public Builder setMaybeTypeName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - maybeTypeName_ = value; - onChanged(); - return this; - } - /** - *
-     * For debug-only, the name of the type pointed to by this handle, if
-     * available.
-     * 
- * - * string maybe_type_name = 5; - */ - public Builder clearMaybeTypeName() { - - maybeTypeName_ = getDefaultInstance().getMaybeTypeName(); - onChanged(); - return this; - } - /** - *
-     * For debug-only, the name of the type pointed to by this handle, if
-     * available.
-     * 
- * - * string maybe_type_name = 5; - */ - public Builder setMaybeTypeNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - maybeTypeName_ = value; - onChanged(); - return this; - } - - private java.util.List dtypesAndShapes_ = - java.util.Collections.emptyList(); - private void ensureDtypesAndShapesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dtypesAndShapes_ = new java.util.ArrayList(dtypesAndShapes_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.Builder, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShapeOrBuilder> dtypesAndShapesBuilder_; - - /** - *
-     * Data types and shapes for the underlying resource.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public java.util.List getDtypesAndShapesList() { - if (dtypesAndShapesBuilder_ == null) { - return java.util.Collections.unmodifiableList(dtypesAndShapes_); - } else { - return dtypesAndShapesBuilder_.getMessageList(); - } - } - /** - *
-     * Data types and shapes for the underlying resource.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public int getDtypesAndShapesCount() { - if (dtypesAndShapesBuilder_ == null) { - return dtypesAndShapes_.size(); - } else { - return dtypesAndShapesBuilder_.getCount(); - } - } - /** - *
-     * Data types and shapes for the underlying resource.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape getDtypesAndShapes(int index) { - if (dtypesAndShapesBuilder_ == null) { - return dtypesAndShapes_.get(index); - } else { - return dtypesAndShapesBuilder_.getMessage(index); - } - } - /** - *
-     * Data types and shapes for the underlying resource.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public Builder setDtypesAndShapes( - int index, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape value) { - if (dtypesAndShapesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDtypesAndShapesIsMutable(); - dtypesAndShapes_.set(index, value); - onChanged(); - } else { - dtypesAndShapesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Data types and shapes for the underlying resource.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public Builder setDtypesAndShapes( - int index, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.Builder builderForValue) { - if (dtypesAndShapesBuilder_ == null) { - ensureDtypesAndShapesIsMutable(); - dtypesAndShapes_.set(index, builderForValue.build()); - onChanged(); - } else { - dtypesAndShapesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Data types and shapes for the underlying resource.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public Builder addDtypesAndShapes(org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape value) { - if (dtypesAndShapesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDtypesAndShapesIsMutable(); - dtypesAndShapes_.add(value); - onChanged(); - } else { - dtypesAndShapesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Data types and shapes for the underlying resource.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public Builder addDtypesAndShapes( - int index, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape value) { - if (dtypesAndShapesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDtypesAndShapesIsMutable(); - dtypesAndShapes_.add(index, value); - onChanged(); - } else { - dtypesAndShapesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Data types and shapes for the underlying resource.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public Builder addDtypesAndShapes( - org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.Builder builderForValue) { - if (dtypesAndShapesBuilder_ == null) { - ensureDtypesAndShapesIsMutable(); - dtypesAndShapes_.add(builderForValue.build()); - onChanged(); - } else { - dtypesAndShapesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Data types and shapes for the underlying resource.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public Builder addDtypesAndShapes( - int index, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.Builder builderForValue) { - if (dtypesAndShapesBuilder_ == null) { - ensureDtypesAndShapesIsMutable(); - dtypesAndShapes_.add(index, builderForValue.build()); - onChanged(); - } else { - dtypesAndShapesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Data types and shapes for the underlying resource.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public Builder addAllDtypesAndShapes( - java.lang.Iterable values) { - if (dtypesAndShapesBuilder_ == null) { - ensureDtypesAndShapesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dtypesAndShapes_); - onChanged(); - } else { - dtypesAndShapesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Data types and shapes for the underlying resource.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public Builder clearDtypesAndShapes() { - if (dtypesAndShapesBuilder_ == null) { - dtypesAndShapes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dtypesAndShapesBuilder_.clear(); - } - return this; - } - /** - *
-     * Data types and shapes for the underlying resource.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public Builder removeDtypesAndShapes(int index) { - if (dtypesAndShapesBuilder_ == null) { - ensureDtypesAndShapesIsMutable(); - dtypesAndShapes_.remove(index); - onChanged(); - } else { - dtypesAndShapesBuilder_.remove(index); - } - return this; - } - /** - *
-     * Data types and shapes for the underlying resource.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.Builder getDtypesAndShapesBuilder( - int index) { - return getDtypesAndShapesFieldBuilder().getBuilder(index); - } - /** - *
-     * Data types and shapes for the underlying resource.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShapeOrBuilder getDtypesAndShapesOrBuilder( - int index) { - if (dtypesAndShapesBuilder_ == null) { - return dtypesAndShapes_.get(index); } else { - return dtypesAndShapesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Data types and shapes for the underlying resource.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public java.util.List - getDtypesAndShapesOrBuilderList() { - if (dtypesAndShapesBuilder_ != null) { - return dtypesAndShapesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dtypesAndShapes_); - } - } - /** - *
-     * Data types and shapes for the underlying resource.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.Builder addDtypesAndShapesBuilder() { - return getDtypesAndShapesFieldBuilder().addBuilder( - org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.getDefaultInstance()); - } - /** - *
-     * Data types and shapes for the underlying resource.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.Builder addDtypesAndShapesBuilder( - int index) { - return getDtypesAndShapesFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.getDefaultInstance()); - } - /** - *
-     * Data types and shapes for the underlying resource.
-     * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - public java.util.List - getDtypesAndShapesBuilderList() { - return getDtypesAndShapesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.Builder, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShapeOrBuilder> - getDtypesAndShapesFieldBuilder() { - if (dtypesAndShapesBuilder_ == null) { - dtypesAndShapesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape.Builder, org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShapeOrBuilder>( - dtypesAndShapes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - dtypesAndShapes_ = null; - } - return dtypesAndShapesBuilder_; - } - @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:tensorflow.ResourceHandleProto) - } - - // @@protoc_insertion_point(class_scope:tensorflow.ResourceHandleProto) - private static final org.tensorflow.proto.framework.ResourceHandleProto DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.ResourceHandleProto(); - } - - public static org.tensorflow.proto.framework.ResourceHandleProto getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceHandleProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceHandleProto(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ResourceHandleProto getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ResourceHandleProtoOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ResourceHandleProtoOrBuilder.java deleted file mode 100644 index 461b2de1dba..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ResourceHandleProtoOrBuilder.java +++ /dev/null @@ -1,137 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/resource_handle.proto - -package org.tensorflow.proto.framework; - -public interface ResourceHandleProtoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.ResourceHandleProto) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Unique name for the device containing the resource.
-   * 
- * - * string device = 1; - */ - java.lang.String getDevice(); - /** - *
-   * Unique name for the device containing the resource.
-   * 
- * - * string device = 1; - */ - com.google.protobuf.ByteString - getDeviceBytes(); - - /** - *
-   * Container in which this resource is placed.
-   * 
- * - * string container = 2; - */ - java.lang.String getContainer(); - /** - *
-   * Container in which this resource is placed.
-   * 
- * - * string container = 2; - */ - com.google.protobuf.ByteString - getContainerBytes(); - - /** - *
-   * Unique name of this resource.
-   * 
- * - * string name = 3; - */ - java.lang.String getName(); - /** - *
-   * Unique name of this resource.
-   * 
- * - * string name = 3; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Hash code for the type of the resource. Is only valid in the same device
-   * and in the same execution.
-   * 
- * - * uint64 hash_code = 4; - */ - long getHashCode(); - - /** - *
-   * For debug-only, the name of the type pointed to by this handle, if
-   * available.
-   * 
- * - * string maybe_type_name = 5; - */ - java.lang.String getMaybeTypeName(); - /** - *
-   * For debug-only, the name of the type pointed to by this handle, if
-   * available.
-   * 
- * - * string maybe_type_name = 5; - */ - com.google.protobuf.ByteString - getMaybeTypeNameBytes(); - - /** - *
-   * Data types and shapes for the underlying resource.
-   * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - java.util.List - getDtypesAndShapesList(); - /** - *
-   * Data types and shapes for the underlying resource.
-   * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShape getDtypesAndShapes(int index); - /** - *
-   * Data types and shapes for the underlying resource.
-   * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - int getDtypesAndShapesCount(); - /** - *
-   * Data types and shapes for the underlying resource.
-   * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - java.util.List - getDtypesAndShapesOrBuilderList(); - /** - *
-   * Data types and shapes for the underlying resource.
-   * 
- * - * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; - */ - org.tensorflow.proto.framework.ResourceHandleProto.DtypeAndShapeOrBuilder getDtypesAndShapesOrBuilder( - int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RewriterConfig.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RewriterConfig.java deleted file mode 100644 index c913d96225b..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RewriterConfig.java +++ /dev/null @@ -1,7015 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/rewriter_config.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Graph rewriting is experimental and subject to change, not covered by any
- * API stability guarantees.
- * 
- * - * Protobuf type {@code tensorflow.RewriterConfig} - */ -public final class RewriterConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.RewriterConfig) - RewriterConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use RewriterConfig.newBuilder() to construct. - private RewriterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RewriterConfig() { - cpuLayoutConversion_ = 0; - layoutOptimizer_ = 0; - constantFolding_ = 0; - shapeOptimization_ = 0; - remapping_ = 0; - commonSubgraphElimination_ = 0; - arithmeticOptimization_ = 0; - dependencyOptimization_ = 0; - loopOptimization_ = 0; - functionOptimization_ = 0; - debugStripper_ = 0; - scopedAllocatorOptimization_ = 0; - pinToHostOptimization_ = 0; - implementationSelector_ = 0; - autoMixedPrecision_ = 0; - autoMixedPrecisionMkl_ = 0; - autoMixedPrecisionOnednnBfloat16_ = 0; - autoMixedPrecisionCpu_ = 0; - usePluginOptimizers_ = 0; - experimentalConditionalCodeMotion_ = 0; - metaOptimizerIterations_ = 0; - memoryOptimization_ = 0; - memoryOptimizerTargetNodeNameScope_ = ""; - optimizers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - customOptimizers_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RewriterConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RewriterConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - layoutOptimizer_ = rawValue; - break; - } - case 16: { - - disableModelPruning_ = input.readBool(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - constantFolding_ = rawValue; - break; - } - case 32: { - int rawValue = input.readEnum(); - - memoryOptimization_ = rawValue; - break; - } - case 42: { - org.tensorflow.proto.framework.AutoParallelOptions.Builder subBuilder = null; - if (autoParallel_ != null) { - subBuilder = autoParallel_.toBuilder(); - } - autoParallel_ = input.readMessage(org.tensorflow.proto.framework.AutoParallelOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(autoParallel_); - autoParallel_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - memoryOptimizerTargetNodeNameScope_ = s; - break; - } - case 56: { - int rawValue = input.readEnum(); - - arithmeticOptimization_ = rawValue; - break; - } - case 64: { - int rawValue = input.readEnum(); - - dependencyOptimization_ = rawValue; - break; - } - case 72: { - int rawValue = input.readEnum(); - - loopOptimization_ = rawValue; - break; - } - case 80: { - int rawValue = input.readEnum(); - - functionOptimization_ = rawValue; - break; - } - case 88: { - int rawValue = input.readEnum(); - - debugStripper_ = rawValue; - break; - } - case 96: { - int rawValue = input.readEnum(); - - metaOptimizerIterations_ = rawValue; - break; - } - case 104: { - int rawValue = input.readEnum(); - - shapeOptimization_ = rawValue; - break; - } - case 112: { - int rawValue = input.readEnum(); - - remapping_ = rawValue; - break; - } - case 120: { - int rawValue = input.readEnum(); - - scopedAllocatorOptimization_ = rawValue; - break; - } - case 130: { - org.tensorflow.proto.framework.ScopedAllocatorOptions.Builder subBuilder = null; - if (scopedAllocatorOpts_ != null) { - subBuilder = scopedAllocatorOpts_.toBuilder(); - } - scopedAllocatorOpts_ = input.readMessage(org.tensorflow.proto.framework.ScopedAllocatorOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scopedAllocatorOpts_); - scopedAllocatorOpts_ = subBuilder.buildPartial(); - } - - break; - } - case 136: { - - minGraphNodes_ = input.readInt32(); - break; - } - case 144: { - int rawValue = input.readEnum(); - - pinToHostOptimization_ = rawValue; - break; - } - case 152: { - - disableMetaOptimizer_ = input.readBool(); - break; - } - case 160: { - - metaOptimizerTimeoutMs_ = input.readInt64(); - break; - } - case 168: { - - failOnOptimizerErrors_ = input.readBool(); - break; - } - case 176: { - int rawValue = input.readEnum(); - - implementationSelector_ = rawValue; - break; - } - case 184: { - int rawValue = input.readEnum(); - - autoMixedPrecision_ = rawValue; - break; - } - case 192: { - int rawValue = input.readEnum(); - - commonSubgraphElimination_ = rawValue; - break; - } - case 200: { - int rawValue = input.readEnum(); - - autoMixedPrecisionMkl_ = rawValue; - break; - } - case 208: { - - experimentalDisableCompressedTensorOptimization_ = input.readBool(); - break; - } - case 216: { - - experimentalDisableFoldingQuantizationEmulation_ = input.readBool(); - break; - } - case 224: { - int rawValue = input.readEnum(); - - usePluginOptimizers_ = rawValue; - break; - } - case 232: { - int rawValue = input.readEnum(); - - autoMixedPrecisionCpu_ = rawValue; - break; - } - case 240: { - int rawValue = input.readEnum(); - - experimentalConditionalCodeMotion_ = rawValue; - break; - } - case 248: { - int rawValue = input.readEnum(); - - autoMixedPrecisionOnednnBfloat16_ = rawValue; - break; - } - case 400: { - int rawValue = input.readEnum(); - - cpuLayoutConversion_ = rawValue; - break; - } - case 802: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - optimizers_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - optimizers_.add(s); - break; - } - case 1602: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - customOptimizers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - customOptimizers_.add( - input.readMessage(org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer.parser(), extensionRegistry)); - break; - } - case 2402: { - org.tensorflow.proto.framework.VerifierConfig.Builder subBuilder = null; - if (interOptimizerVerifierConfig_ != null) { - subBuilder = interOptimizerVerifierConfig_.toBuilder(); - } - interOptimizerVerifierConfig_ = input.readMessage(org.tensorflow.proto.framework.VerifierConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(interOptimizerVerifierConfig_); - interOptimizerVerifierConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 2410: { - org.tensorflow.proto.framework.VerifierConfig.Builder subBuilder = null; - if (postOptimizationVerifierConfig_ != null) { - subBuilder = postOptimizationVerifierConfig_.toBuilder(); - } - postOptimizationVerifierConfig_ = input.readMessage(org.tensorflow.proto.framework.VerifierConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(postOptimizationVerifierConfig_); - postOptimizationVerifierConfig_ = subBuilder.buildPartial(); - } - - 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)) { - optimizers_ = optimizers_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - customOptimizers_ = java.util.Collections.unmodifiableList(customOptimizers_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.RewriterConfigProtos.internal_static_tensorflow_RewriterConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.RewriterConfigProtos.internal_static_tensorflow_RewriterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.RewriterConfig.class, org.tensorflow.proto.framework.RewriterConfig.Builder.class); - } - - /** - * Protobuf enum {@code tensorflow.RewriterConfig.Toggle} - */ - public enum Toggle - implements com.google.protobuf.ProtocolMessageEnum { - /** - * DEFAULT = 0; - */ - DEFAULT(0), - /** - * ON = 1; - */ - ON(1), - /** - * OFF = 2; - */ - OFF(2), - /** - *
-     * Enable some aggressive optimizations that use assumptions that TF graphs
-     * may break. For example, assume the shape of a placeholder matches its
-     * actual feed.
-     * 
- * - * AGGRESSIVE = 3; - */ - AGGRESSIVE(3), - /** - *
-     * Run MLIR pass if there's one implemented in TFG, do nothing otherwise.
-     * I.e., if there's no corresponding TFG pass, it's an OFF. This is supposed
-     * to be mapped with `ON` and there's no `AGGRESSIVE` in MLIR pass now.
-     * 
- * - * EXPERIMENTAL_MLIR = 4; - */ - EXPERIMENTAL_MLIR(4), - /** - *
-     * Run both MLIR and Grappler passes consecutively and MLIR pass will come
-     * first.
-     * 
- * - * EXPERIMENTAL_BOTH = 5; - */ - EXPERIMENTAL_BOTH(5), - UNRECOGNIZED(-1), - ; - - /** - * DEFAULT = 0; - */ - public static final int DEFAULT_VALUE = 0; - /** - * ON = 1; - */ - public static final int ON_VALUE = 1; - /** - * OFF = 2; - */ - public static final int OFF_VALUE = 2; - /** - *
-     * Enable some aggressive optimizations that use assumptions that TF graphs
-     * may break. For example, assume the shape of a placeholder matches its
-     * actual feed.
-     * 
- * - * AGGRESSIVE = 3; - */ - public static final int AGGRESSIVE_VALUE = 3; - /** - *
-     * Run MLIR pass if there's one implemented in TFG, do nothing otherwise.
-     * I.e., if there's no corresponding TFG pass, it's an OFF. This is supposed
-     * to be mapped with `ON` and there's no `AGGRESSIVE` in MLIR pass now.
-     * 
- * - * EXPERIMENTAL_MLIR = 4; - */ - public static final int EXPERIMENTAL_MLIR_VALUE = 4; - /** - *
-     * Run both MLIR and Grappler passes consecutively and MLIR pass will come
-     * first.
-     * 
- * - * EXPERIMENTAL_BOTH = 5; - */ - public static final int EXPERIMENTAL_BOTH_VALUE = 5; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Toggle valueOf(int value) { - return forNumber(value); - } - - public static Toggle forNumber(int value) { - switch (value) { - case 0: return DEFAULT; - case 1: return ON; - case 2: return OFF; - case 3: return AGGRESSIVE; - case 4: return EXPERIMENTAL_MLIR; - case 5: return EXPERIMENTAL_BOTH; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Toggle> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Toggle findValueByNumber(int number) { - return Toggle.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 org.tensorflow.proto.framework.RewriterConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final Toggle[] VALUES = values(); - - public static Toggle 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 Toggle(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:tensorflow.RewriterConfig.Toggle) - } - - /** - *
-   * Enum for layout conversion between NCHW and NHWC on CPU. Default is OFF.
-   * 
- * - * Protobuf enum {@code tensorflow.RewriterConfig.CpuLayout} - */ - public enum CpuLayout - implements com.google.protobuf.ProtocolMessageEnum { - /** - * NO_CONVERSION_ON_CPU = 0; - */ - NO_CONVERSION_ON_CPU(0), - /** - * NCHW_TO_NHWC = 1; - */ - NCHW_TO_NHWC(1), - /** - * NHWC_TO_NCHW = 2; - */ - NHWC_TO_NCHW(2), - UNRECOGNIZED(-1), - ; - - /** - * NO_CONVERSION_ON_CPU = 0; - */ - public static final int NO_CONVERSION_ON_CPU_VALUE = 0; - /** - * NCHW_TO_NHWC = 1; - */ - public static final int NCHW_TO_NHWC_VALUE = 1; - /** - * NHWC_TO_NCHW = 2; - */ - public static final int NHWC_TO_NCHW_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static CpuLayout valueOf(int value) { - return forNumber(value); - } - - public static CpuLayout forNumber(int value) { - switch (value) { - case 0: return NO_CONVERSION_ON_CPU; - case 1: return NCHW_TO_NHWC; - case 2: return NHWC_TO_NCHW; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - CpuLayout> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CpuLayout findValueByNumber(int number) { - return CpuLayout.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 org.tensorflow.proto.framework.RewriterConfig.getDescriptor().getEnumTypes().get(1); - } - - private static final CpuLayout[] VALUES = values(); - - public static CpuLayout 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 CpuLayout(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:tensorflow.RewriterConfig.CpuLayout) - } - - /** - *
-   * Enum controlling the number of times to run optimizers. The default is to
-   * run them twice.
-   * 
- * - * Protobuf enum {@code tensorflow.RewriterConfig.NumIterationsType} - */ - public enum NumIterationsType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * DEFAULT_NUM_ITERS = 0; - */ - DEFAULT_NUM_ITERS(0), - /** - * ONE = 1; - */ - ONE(1), - /** - * TWO = 2; - */ - TWO(2), - UNRECOGNIZED(-1), - ; - - /** - * DEFAULT_NUM_ITERS = 0; - */ - public static final int DEFAULT_NUM_ITERS_VALUE = 0; - /** - * ONE = 1; - */ - public static final int ONE_VALUE = 1; - /** - * TWO = 2; - */ - public static final int TWO_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; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static NumIterationsType valueOf(int value) { - return forNumber(value); - } - - public static NumIterationsType forNumber(int value) { - switch (value) { - case 0: return DEFAULT_NUM_ITERS; - case 1: return ONE; - case 2: return TWO; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - NumIterationsType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public NumIterationsType findValueByNumber(int number) { - return NumIterationsType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 org.tensorflow.proto.framework.RewriterConfig.getDescriptor().getEnumTypes().get(2); - } - - private static final NumIterationsType[] VALUES = values(); - - public static NumIterationsType 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 NumIterationsType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:tensorflow.RewriterConfig.NumIterationsType) - } - - /** - * Protobuf enum {@code tensorflow.RewriterConfig.MemOptType} - */ - public enum MemOptType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * The default setting (SCHEDULING and SWAPPING HEURISTICS only)
-     * 
- * - * DEFAULT_MEM_OPT = 0; - */ - DEFAULT_MEM_OPT(0), - /** - *
-     * Disabled in the meta-optimizer.
-     * 
- * - * NO_MEM_OPT = 1; - */ - NO_MEM_OPT(1), - /** - *
-     * Driven by manual op-level annotations.
-     * 
- * - * MANUAL = 2; - */ - MANUAL(2), - /** - *
-     * Swapping heuristic will move a tensor from the GPU to the CPU and move
-     * it back when needed to reduce peak memory usage.
-     * 
- * - * SWAPPING_HEURISTICS = 4; - */ - SWAPPING_HEURISTICS(4), - /** - *
-     * Recomputation heuristics will recompute ops (such as Relu activation)
-     * during backprop instead of storing them, reducing peak memory usage.
-     * 
- * - * RECOMPUTATION_HEURISTICS = 5; - */ - RECOMPUTATION_HEURISTICS(5), - /** - *
-     * Scheduling will split big ops such as AddN and try to enforce a schedule
-     * of the new computations that decreases peak memory usage.
-     * 
- * - * SCHEDULING_HEURISTICS = 6; - */ - SCHEDULING_HEURISTICS(6), - /** - *
-     * Use any combination of swapping and recomputation heuristics.
-     * 
- * - * HEURISTICS = 3; - */ - HEURISTICS(3), - UNRECOGNIZED(-1), - ; - - /** - *
-     * The default setting (SCHEDULING and SWAPPING HEURISTICS only)
-     * 
- * - * DEFAULT_MEM_OPT = 0; - */ - public static final int DEFAULT_MEM_OPT_VALUE = 0; - /** - *
-     * Disabled in the meta-optimizer.
-     * 
- * - * NO_MEM_OPT = 1; - */ - public static final int NO_MEM_OPT_VALUE = 1; - /** - *
-     * Driven by manual op-level annotations.
-     * 
- * - * MANUAL = 2; - */ - public static final int MANUAL_VALUE = 2; - /** - *
-     * Swapping heuristic will move a tensor from the GPU to the CPU and move
-     * it back when needed to reduce peak memory usage.
-     * 
- * - * SWAPPING_HEURISTICS = 4; - */ - public static final int SWAPPING_HEURISTICS_VALUE = 4; - /** - *
-     * Recomputation heuristics will recompute ops (such as Relu activation)
-     * during backprop instead of storing them, reducing peak memory usage.
-     * 
- * - * RECOMPUTATION_HEURISTICS = 5; - */ - public static final int RECOMPUTATION_HEURISTICS_VALUE = 5; - /** - *
-     * Scheduling will split big ops such as AddN and try to enforce a schedule
-     * of the new computations that decreases peak memory usage.
-     * 
- * - * SCHEDULING_HEURISTICS = 6; - */ - public static final int SCHEDULING_HEURISTICS_VALUE = 6; - /** - *
-     * Use any combination of swapping and recomputation heuristics.
-     * 
- * - * HEURISTICS = 3; - */ - public static final int HEURISTICS_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MemOptType valueOf(int value) { - return forNumber(value); - } - - public static MemOptType forNumber(int value) { - switch (value) { - case 0: return DEFAULT_MEM_OPT; - case 1: return NO_MEM_OPT; - case 2: return MANUAL; - case 4: return SWAPPING_HEURISTICS; - case 5: return RECOMPUTATION_HEURISTICS; - case 6: return SCHEDULING_HEURISTICS; - case 3: return HEURISTICS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MemOptType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MemOptType findValueByNumber(int number) { - return MemOptType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 org.tensorflow.proto.framework.RewriterConfig.getDescriptor().getEnumTypes().get(3); - } - - private static final MemOptType[] VALUES = values(); - - public static MemOptType 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 MemOptType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:tensorflow.RewriterConfig.MemOptType) - } - - public interface CustomGraphOptimizerOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.RewriterConfig.CustomGraphOptimizer) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1; - */ - java.lang.String getName(); - /** - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * map<string, .tensorflow.AttrValue> parameter_map = 2; - */ - int getParameterMapCount(); - /** - * map<string, .tensorflow.AttrValue> parameter_map = 2; - */ - boolean containsParameterMap( - java.lang.String key); - /** - * Use {@link #getParameterMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getParameterMap(); - /** - * map<string, .tensorflow.AttrValue> parameter_map = 2; - */ - java.util.Map - getParameterMapMap(); - /** - * map<string, .tensorflow.AttrValue> parameter_map = 2; - */ - - org.tensorflow.proto.framework.AttrValue getParameterMapOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.AttrValue defaultValue); - /** - * map<string, .tensorflow.AttrValue> parameter_map = 2; - */ - - org.tensorflow.proto.framework.AttrValue getParameterMapOrThrow( - java.lang.String key); - } - /** - *
-   * Message to describe custom graph optimizer and its parameters
-   * 
- * - * Protobuf type {@code tensorflow.RewriterConfig.CustomGraphOptimizer} - */ - public static final class CustomGraphOptimizer extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.RewriterConfig.CustomGraphOptimizer) - CustomGraphOptimizerOrBuilder { - private static final long serialVersionUID = 0L; - // Use CustomGraphOptimizer.newBuilder() to construct. - private CustomGraphOptimizer(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CustomGraphOptimizer() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CustomGraphOptimizer(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CustomGraphOptimizer( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - parameterMap_ = com.google.protobuf.MapField.newMapField( - ParameterMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - parameterMap__ = input.readMessage( - ParameterMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - parameterMap_.getMutableMap().put( - parameterMap__.getKey(), parameterMap__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.RewriterConfigProtos.internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetParameterMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.RewriterConfigProtos.internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer.class, org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARAMETER_MAP_FIELD_NUMBER = 2; - private static final class ParameterMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, org.tensorflow.proto.framework.AttrValue> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.tensorflow.proto.framework.RewriterConfigProtos.internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_ParameterMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.tensorflow.proto.framework.AttrValue.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.AttrValue> parameterMap_; - private com.google.protobuf.MapField - internalGetParameterMap() { - if (parameterMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParameterMapDefaultEntryHolder.defaultEntry); - } - return parameterMap_; - } - - public int getParameterMapCount() { - return internalGetParameterMap().getMap().size(); - } - /** - * map<string, .tensorflow.AttrValue> parameter_map = 2; - */ - - public boolean containsParameterMap( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetParameterMap().getMap().containsKey(key); - } - /** - * Use {@link #getParameterMapMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getParameterMap() { - return getParameterMapMap(); - } - /** - * map<string, .tensorflow.AttrValue> parameter_map = 2; - */ - - public java.util.Map getParameterMapMap() { - return internalGetParameterMap().getMap(); - } - /** - * map<string, .tensorflow.AttrValue> parameter_map = 2; - */ - - public org.tensorflow.proto.framework.AttrValue getParameterMapOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.AttrValue defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameterMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .tensorflow.AttrValue> parameter_map = 2; - */ - - public org.tensorflow.proto.framework.AttrValue getParameterMapOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameterMap().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 { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetParameterMap(), - ParameterMapDefaultEntryHolder.defaultEntry, - 2); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - for (java.util.Map.Entry entry - : internalGetParameterMap().getMap().entrySet()) { - com.google.protobuf.MapEntry - parameterMap__ = ParameterMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, parameterMap__); - } - 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 org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer other = (org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!internalGetParameterMap().equals( - other.internalGetParameterMap())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (!internalGetParameterMap().getMap().isEmpty()) { - hash = (37 * hash) + PARAMETER_MAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetParameterMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer 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 org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer 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 org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer 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(org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer 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; - } - /** - *
-     * Message to describe custom graph optimizer and its parameters
-     * 
- * - * Protobuf type {@code tensorflow.RewriterConfig.CustomGraphOptimizer} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.RewriterConfig.CustomGraphOptimizer) - org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.RewriterConfigProtos.internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetParameterMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableParameterMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.RewriterConfigProtos.internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer.class, org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - internalGetMutableParameterMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.RewriterConfigProtos.internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer getDefaultInstanceForType() { - return org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer build() { - org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer buildPartial() { - org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer result = new org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.parameterMap_ = internalGetParameterMap(); - result.parameterMap_.makeImmutable(); - 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 org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer) { - return mergeFrom((org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer other) { - if (other == org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - internalGetMutableParameterMap().mergeFrom( - other.internalGetParameterMap()); - 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 { - org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.AttrValue> parameterMap_; - private com.google.protobuf.MapField - internalGetParameterMap() { - if (parameterMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParameterMapDefaultEntryHolder.defaultEntry); - } - return parameterMap_; - } - private com.google.protobuf.MapField - internalGetMutableParameterMap() { - onChanged();; - if (parameterMap_ == null) { - parameterMap_ = com.google.protobuf.MapField.newMapField( - ParameterMapDefaultEntryHolder.defaultEntry); - } - if (!parameterMap_.isMutable()) { - parameterMap_ = parameterMap_.copy(); - } - return parameterMap_; - } - - public int getParameterMapCount() { - return internalGetParameterMap().getMap().size(); - } - /** - * map<string, .tensorflow.AttrValue> parameter_map = 2; - */ - - public boolean containsParameterMap( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetParameterMap().getMap().containsKey(key); - } - /** - * Use {@link #getParameterMapMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getParameterMap() { - return getParameterMapMap(); - } - /** - * map<string, .tensorflow.AttrValue> parameter_map = 2; - */ - - public java.util.Map getParameterMapMap() { - return internalGetParameterMap().getMap(); - } - /** - * map<string, .tensorflow.AttrValue> parameter_map = 2; - */ - - public org.tensorflow.proto.framework.AttrValue getParameterMapOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.AttrValue defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameterMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .tensorflow.AttrValue> parameter_map = 2; - */ - - public org.tensorflow.proto.framework.AttrValue getParameterMapOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameterMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearParameterMap() { - internalGetMutableParameterMap().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .tensorflow.AttrValue> parameter_map = 2; - */ - - public Builder removeParameterMap( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableParameterMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableParameterMap() { - return internalGetMutableParameterMap().getMutableMap(); - } - /** - * map<string, .tensorflow.AttrValue> parameter_map = 2; - */ - public Builder putParameterMap( - java.lang.String key, - org.tensorflow.proto.framework.AttrValue value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableParameterMap().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .tensorflow.AttrValue> parameter_map = 2; - */ - - public Builder putAllParameterMap( - java.util.Map values) { - internalGetMutableParameterMap().getMutableMap() - .putAll(values); - 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:tensorflow.RewriterConfig.CustomGraphOptimizer) - } - - // @@protoc_insertion_point(class_scope:tensorflow.RewriterConfig.CustomGraphOptimizer) - private static final org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer(); - } - - public static org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomGraphOptimizer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomGraphOptimizer(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int CPU_LAYOUT_CONVERSION_FIELD_NUMBER = 50; - private int cpuLayoutConversion_; - /** - *
-   * CPU Conversion settings between NHCW and NCHW.
-   * 
- * - * .tensorflow.RewriterConfig.CpuLayout cpu_layout_conversion = 50; - */ - public int getCpuLayoutConversionValue() { - return cpuLayoutConversion_; - } - /** - *
-   * CPU Conversion settings between NHCW and NCHW.
-   * 
- * - * .tensorflow.RewriterConfig.CpuLayout cpu_layout_conversion = 50; - */ - public org.tensorflow.proto.framework.RewriterConfig.CpuLayout getCpuLayoutConversion() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.CpuLayout result = org.tensorflow.proto.framework.RewriterConfig.CpuLayout.valueOf(cpuLayoutConversion_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.CpuLayout.UNRECOGNIZED : result; - } - - public static final int LAYOUT_OPTIMIZER_FIELD_NUMBER = 1; - private int layoutOptimizer_; - /** - *
-   * Optimize tensor layouts (default is ON)
-   * e.g. This will try to use NCHW layout on GPU which is faster.
-   * 
- * - * .tensorflow.RewriterConfig.Toggle layout_optimizer = 1; - */ - public int getLayoutOptimizerValue() { - return layoutOptimizer_; - } - /** - *
-   * Optimize tensor layouts (default is ON)
-   * e.g. This will try to use NCHW layout on GPU which is faster.
-   * 
- * - * .tensorflow.RewriterConfig.Toggle layout_optimizer = 1; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getLayoutOptimizer() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(layoutOptimizer_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - - public static final int CONSTANT_FOLDING_FIELD_NUMBER = 3; - private int constantFolding_; - /** - *
-   * Fold constants (default is ON)
-   * Statically infer the value of tensors when possible, and materialize the
-   * result using constants.
-   * 
- * - * .tensorflow.RewriterConfig.Toggle constant_folding = 3; - */ - public int getConstantFoldingValue() { - return constantFolding_; - } - /** - *
-   * Fold constants (default is ON)
-   * Statically infer the value of tensors when possible, and materialize the
-   * result using constants.
-   * 
- * - * .tensorflow.RewriterConfig.Toggle constant_folding = 3; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getConstantFolding() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(constantFolding_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - - public static final int SHAPE_OPTIMIZATION_FIELD_NUMBER = 13; - private int shapeOptimization_; - /** - *
-   * Shape optimizations (default is ON)
-   * Simplify computations made on shapes.
-   * 
- * - * .tensorflow.RewriterConfig.Toggle shape_optimization = 13; - */ - public int getShapeOptimizationValue() { - return shapeOptimization_; - } - /** - *
-   * Shape optimizations (default is ON)
-   * Simplify computations made on shapes.
-   * 
- * - * .tensorflow.RewriterConfig.Toggle shape_optimization = 13; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getShapeOptimization() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(shapeOptimization_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - - public static final int REMAPPING_FIELD_NUMBER = 14; - private int remapping_; - /** - *
-   * Remapping (default is ON)
-   * Remap subgraphs onto more efficient implementations.
-   * 
- * - * .tensorflow.RewriterConfig.Toggle remapping = 14; - */ - public int getRemappingValue() { - return remapping_; - } - /** - *
-   * Remapping (default is ON)
-   * Remap subgraphs onto more efficient implementations.
-   * 
- * - * .tensorflow.RewriterConfig.Toggle remapping = 14; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getRemapping() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(remapping_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - - public static final int COMMON_SUBGRAPH_ELIMINATION_FIELD_NUMBER = 24; - private int commonSubgraphElimination_; - /** - *
-   * Common subgraph elimination (default is ON)
-   * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
-   * 
- * - * .tensorflow.RewriterConfig.Toggle common_subgraph_elimination = 24; - */ - public int getCommonSubgraphEliminationValue() { - return commonSubgraphElimination_; - } - /** - *
-   * Common subgraph elimination (default is ON)
-   * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
-   * 
- * - * .tensorflow.RewriterConfig.Toggle common_subgraph_elimination = 24; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getCommonSubgraphElimination() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(commonSubgraphElimination_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - - public static final int ARITHMETIC_OPTIMIZATION_FIELD_NUMBER = 7; - private int arithmeticOptimization_; - /** - *
-   * Arithmetic optimizations (default is ON)
-   * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
-   * 
- * - * .tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7; - */ - public int getArithmeticOptimizationValue() { - return arithmeticOptimization_; - } - /** - *
-   * Arithmetic optimizations (default is ON)
-   * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
-   * 
- * - * .tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getArithmeticOptimization() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(arithmeticOptimization_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - - public static final int DEPENDENCY_OPTIMIZATION_FIELD_NUMBER = 8; - private int dependencyOptimization_; - /** - *
-   * Control dependency optimizations (default is ON).
-   * Remove redundant control dependencies, which may enable other optimization.
-   * 
- * - * .tensorflow.RewriterConfig.Toggle dependency_optimization = 8; - */ - public int getDependencyOptimizationValue() { - return dependencyOptimization_; - } - /** - *
-   * Control dependency optimizations (default is ON).
-   * Remove redundant control dependencies, which may enable other optimization.
-   * 
- * - * .tensorflow.RewriterConfig.Toggle dependency_optimization = 8; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getDependencyOptimization() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(dependencyOptimization_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - - public static final int LOOP_OPTIMIZATION_FIELD_NUMBER = 9; - private int loopOptimization_; - /** - *
-   * Loop optimizations (default is ON).
-   * 
- * - * .tensorflow.RewriterConfig.Toggle loop_optimization = 9; - */ - public int getLoopOptimizationValue() { - return loopOptimization_; - } - /** - *
-   * Loop optimizations (default is ON).
-   * 
- * - * .tensorflow.RewriterConfig.Toggle loop_optimization = 9; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getLoopOptimization() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(loopOptimization_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - - public static final int FUNCTION_OPTIMIZATION_FIELD_NUMBER = 10; - private int functionOptimization_; - /** - *
-   * Function optimizations (default is ON).
-   * 
- * - * .tensorflow.RewriterConfig.Toggle function_optimization = 10; - */ - public int getFunctionOptimizationValue() { - return functionOptimization_; - } - /** - *
-   * Function optimizations (default is ON).
-   * 
- * - * .tensorflow.RewriterConfig.Toggle function_optimization = 10; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getFunctionOptimization() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(functionOptimization_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - - public static final int DEBUG_STRIPPER_FIELD_NUMBER = 11; - private int debugStripper_; - /** - *
-   * Strips debug-related nodes from the graph (off by default).
-   * 
- * - * .tensorflow.RewriterConfig.Toggle debug_stripper = 11; - */ - public int getDebugStripperValue() { - return debugStripper_; - } - /** - *
-   * Strips debug-related nodes from the graph (off by default).
-   * 
- * - * .tensorflow.RewriterConfig.Toggle debug_stripper = 11; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getDebugStripper() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(debugStripper_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - - public static final int DISABLE_MODEL_PRUNING_FIELD_NUMBER = 2; - private boolean disableModelPruning_; - /** - *
-   * If true, don't remove unnecessary ops from the graph
-   * 
- * - * bool disable_model_pruning = 2; - */ - public boolean getDisableModelPruning() { - return disableModelPruning_; - } - - public static final int SCOPED_ALLOCATOR_OPTIMIZATION_FIELD_NUMBER = 15; - private int scopedAllocatorOptimization_; - /** - *
-   * Try to allocate some independent Op outputs contiguously in order to
-   * merge or eliminate downstream Ops (off by default).
-   * 
- * - * .tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15; - */ - public int getScopedAllocatorOptimizationValue() { - return scopedAllocatorOptimization_; - } - /** - *
-   * Try to allocate some independent Op outputs contiguously in order to
-   * merge or eliminate downstream Ops (off by default).
-   * 
- * - * .tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getScopedAllocatorOptimization() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(scopedAllocatorOptimization_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - - public static final int PIN_TO_HOST_OPTIMIZATION_FIELD_NUMBER = 18; - private int pinToHostOptimization_; - /** - *
-   * Force small ops onto the CPU (default is OFF).
-   * 
- * - * .tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18; - */ - public int getPinToHostOptimizationValue() { - return pinToHostOptimization_; - } - /** - *
-   * Force small ops onto the CPU (default is OFF).
-   * 
- * - * .tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getPinToHostOptimization() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(pinToHostOptimization_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - - public static final int IMPLEMENTATION_SELECTOR_FIELD_NUMBER = 22; - private int implementationSelector_; - /** - *
-   * Enable the swap of kernel implementations based on the device placement
-   * (default is ON).
-   * 
- * - * .tensorflow.RewriterConfig.Toggle implementation_selector = 22; - */ - public int getImplementationSelectorValue() { - return implementationSelector_; - } - /** - *
-   * Enable the swap of kernel implementations based on the device placement
-   * (default is ON).
-   * 
- * - * .tensorflow.RewriterConfig.Toggle implementation_selector = 22; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getImplementationSelector() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(implementationSelector_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - - public static final int AUTO_MIXED_PRECISION_FIELD_NUMBER = 23; - private int autoMixedPrecision_; - /** - *
-   * Optimize data types for CUDA (default is OFF).
-   * This will try to use float16 on GPU which is faster.
-   * Note that this can change the numerical stability of the graph and may
-   * require the use of loss scaling to maintain model convergence.
-   * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision = 23; - */ - public int getAutoMixedPrecisionValue() { - return autoMixedPrecision_; - } - /** - *
-   * Optimize data types for CUDA (default is OFF).
-   * This will try to use float16 on GPU which is faster.
-   * Note that this can change the numerical stability of the graph and may
-   * require the use of loss scaling to maintain model convergence.
-   * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision = 23; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getAutoMixedPrecision() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(autoMixedPrecision_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - - public static final int AUTO_MIXED_PRECISION_MKL_FIELD_NUMBER = 25; - private int autoMixedPrecisionMkl_; - /** - *
-   * Optimize data types for oneDNN (default is OFF).
-   * This will try to use bfloat16 on CPUs, which is faster.
-   * Note that this can change the numerical stability of the graph.
-   * Note: this is deprecated.
-   * It is replaced by auto_mixed_precision_onednn_bfloat16
-   * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_mkl = 25; - */ - public int getAutoMixedPrecisionMklValue() { - return autoMixedPrecisionMkl_; - } - /** - *
-   * Optimize data types for oneDNN (default is OFF).
-   * This will try to use bfloat16 on CPUs, which is faster.
-   * Note that this can change the numerical stability of the graph.
-   * Note: this is deprecated.
-   * It is replaced by auto_mixed_precision_onednn_bfloat16
-   * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_mkl = 25; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getAutoMixedPrecisionMkl() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(autoMixedPrecisionMkl_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - - public static final int AUTO_MIXED_PRECISION_ONEDNN_BFLOAT16_FIELD_NUMBER = 31; - private int autoMixedPrecisionOnednnBfloat16_; - /** - *
-   * Optimize data types for oneDNN (default is OFF).
-   * This will try to use bfloat16 on CPUs, which is faster.
-   * Note that this can change the numerical stability of the graph.
-   * Note: this is equivalent to the deprecated option auto_mixed_precision_mkl
-   * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_onednn_bfloat16 = 31; - */ - public int getAutoMixedPrecisionOnednnBfloat16Value() { - return autoMixedPrecisionOnednnBfloat16_; - } - /** - *
-   * Optimize data types for oneDNN (default is OFF).
-   * This will try to use bfloat16 on CPUs, which is faster.
-   * Note that this can change the numerical stability of the graph.
-   * Note: this is equivalent to the deprecated option auto_mixed_precision_mkl
-   * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_onednn_bfloat16 = 31; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getAutoMixedPrecisionOnednnBfloat16() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(autoMixedPrecisionOnednnBfloat16_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - - public static final int AUTO_MIXED_PRECISION_CPU_FIELD_NUMBER = 29; - private int autoMixedPrecisionCpu_; - /** - *
-   * Emulate a model using data type float16 on CPU (default is OFF).
-   * This will try to emulate the float16 inputs and outputs of an operator
-   * on CPU to have better correlation with float16 on GPU; however the
-   * computation in the operator is based on float32.
-   * Note that this can change the numerical stability of the graph.
-   * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_cpu = 29; - */ - public int getAutoMixedPrecisionCpuValue() { - return autoMixedPrecisionCpu_; - } - /** - *
-   * Emulate a model using data type float16 on CPU (default is OFF).
-   * This will try to emulate the float16 inputs and outputs of an operator
-   * on CPU to have better correlation with float16 on GPU; however the
-   * computation in the operator is based on float32.
-   * Note that this can change the numerical stability of the graph.
-   * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_cpu = 29; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getAutoMixedPrecisionCpu() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(autoMixedPrecisionCpu_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - - public static final int DISABLE_META_OPTIMIZER_FIELD_NUMBER = 19; - private boolean disableMetaOptimizer_; - /** - *
-   * Disable the entire meta optimizer (off by default).
-   * 
- * - * bool disable_meta_optimizer = 19; - */ - public boolean getDisableMetaOptimizer() { - return disableMetaOptimizer_; - } - - public static final int USE_PLUGIN_OPTIMIZERS_FIELD_NUMBER = 28; - private int usePluginOptimizers_; - /** - *
-   * Optimizers registered by plugin (default is ON)
-   * 
- * - * .tensorflow.RewriterConfig.Toggle use_plugin_optimizers = 28; - */ - public int getUsePluginOptimizersValue() { - return usePluginOptimizers_; - } - /** - *
-   * Optimizers registered by plugin (default is ON)
-   * 
- * - * .tensorflow.RewriterConfig.Toggle use_plugin_optimizers = 28; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getUsePluginOptimizers() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(usePluginOptimizers_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - - public static final int EXPERIMENTAL_CONDITIONAL_CODE_MOTION_FIELD_NUMBER = 30; - private int experimentalConditionalCodeMotion_; - /** - *
-   * Conditional code motion (default is ON).
-   * 
- * - * .tensorflow.RewriterConfig.Toggle experimental_conditional_code_motion = 30; - */ - public int getExperimentalConditionalCodeMotionValue() { - return experimentalConditionalCodeMotion_; - } - /** - *
-   * Conditional code motion (default is ON).
-   * 
- * - * .tensorflow.RewriterConfig.Toggle experimental_conditional_code_motion = 30; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getExperimentalConditionalCodeMotion() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(experimentalConditionalCodeMotion_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - - public static final int META_OPTIMIZER_ITERATIONS_FIELD_NUMBER = 12; - private int metaOptimizerIterations_; - /** - *
-   * Controls how many times we run the optimizers in meta optimizer (default
-   * is once).
-   * 
- * - * .tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12; - */ - public int getMetaOptimizerIterationsValue() { - return metaOptimizerIterations_; - } - /** - *
-   * Controls how many times we run the optimizers in meta optimizer (default
-   * is once).
-   * 
- * - * .tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12; - */ - public org.tensorflow.proto.framework.RewriterConfig.NumIterationsType getMetaOptimizerIterations() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.NumIterationsType result = org.tensorflow.proto.framework.RewriterConfig.NumIterationsType.valueOf(metaOptimizerIterations_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.NumIterationsType.UNRECOGNIZED : result; - } - - public static final int MIN_GRAPH_NODES_FIELD_NUMBER = 17; - private int minGraphNodes_; - /** - *
-   * The minimum number of nodes in a graph to optimizer. For smaller graphs,
-   * optimization is skipped.
-   * 0 means the system picks an appropriate number.
-   * < 0 means do not skip optimization.
-   * 
- * - * int32 min_graph_nodes = 17; - */ - public int getMinGraphNodes() { - return minGraphNodes_; - } - - public static final int EXPERIMENTAL_DISABLE_COMPRESSED_TENSOR_OPTIMIZATION_FIELD_NUMBER = 26; - private boolean experimentalDisableCompressedTensorOptimization_; - /** - *
-   * Disable optimizations that assume compressed tensors. Note that this flag
-   * is experimental and may be removed in the future.
-   * 
- * - * bool experimental_disable_compressed_tensor_optimization = 26; - */ - public boolean getExperimentalDisableCompressedTensorOptimization() { - return experimentalDisableCompressedTensorOptimization_; - } - - public static final int EXPERIMENTAL_DISABLE_FOLDING_QUANTIZATION_EMULATION_FIELD_NUMBER = 27; - private boolean experimentalDisableFoldingQuantizationEmulation_; - /** - *
-   * Disable folding quantization emulation ops such as FakeQuantWithMinMax* and
-   * QuantizeAndDequantize*. Some compilers (e.g. the TF-to-tflite converter)
-   * have to extract quantization configs (e.g. min/max range, number of bits,
-   * and per-channel) from the quantization emulation ops. Note that this flag
-   * is experimental and may be removed in the future. See b/174138564 for more
-   * details.
-   * 
- * - * bool experimental_disable_folding_quantization_emulation = 27; - */ - public boolean getExperimentalDisableFoldingQuantizationEmulation() { - return experimentalDisableFoldingQuantizationEmulation_; - } - - public static final int MEMORY_OPTIMIZATION_FIELD_NUMBER = 4; - private int memoryOptimization_; - /** - *
-   * Configures memory optimization passes through the meta-optimizer. Has no
-   * effect on manually requested memory optimization passes in the optimizers
-   * field.
-   * 
- * - * .tensorflow.RewriterConfig.MemOptType memory_optimization = 4; - */ - public int getMemoryOptimizationValue() { - return memoryOptimization_; - } - /** - *
-   * Configures memory optimization passes through the meta-optimizer. Has no
-   * effect on manually requested memory optimization passes in the optimizers
-   * field.
-   * 
- * - * .tensorflow.RewriterConfig.MemOptType memory_optimization = 4; - */ - public org.tensorflow.proto.framework.RewriterConfig.MemOptType getMemoryOptimization() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.MemOptType result = org.tensorflow.proto.framework.RewriterConfig.MemOptType.valueOf(memoryOptimization_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.MemOptType.UNRECOGNIZED : result; - } - - public static final int MEMORY_OPTIMIZER_TARGET_NODE_NAME_SCOPE_FIELD_NUMBER = 6; - private volatile java.lang.Object memoryOptimizerTargetNodeNameScope_; - /** - *
-   * A node name scope for node names which are valid outputs of recomputations.
-   * Inputs to nodes that match this scope may be recomputed (subject either to
-   * manual annotation of those input nodes or to manual annotation and
-   * heuristics depending on memory_optimization), but the nodes themselves will
-   * not be recomputed. This matches any sub-scopes as well, meaning the scope
-   * can appear not just as a top-level scope. For example, if the value is
-   * "gradients/", the default, it will match node name "gradients/foo",
-   * "foo/gradients/bar", but not "foo_gradients/"
-   * 
- * - * string memory_optimizer_target_node_name_scope = 6; - */ - public java.lang.String getMemoryOptimizerTargetNodeNameScope() { - java.lang.Object ref = memoryOptimizerTargetNodeNameScope_; - 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(); - memoryOptimizerTargetNodeNameScope_ = s; - return s; - } - } - /** - *
-   * A node name scope for node names which are valid outputs of recomputations.
-   * Inputs to nodes that match this scope may be recomputed (subject either to
-   * manual annotation of those input nodes or to manual annotation and
-   * heuristics depending on memory_optimization), but the nodes themselves will
-   * not be recomputed. This matches any sub-scopes as well, meaning the scope
-   * can appear not just as a top-level scope. For example, if the value is
-   * "gradients/", the default, it will match node name "gradients/foo",
-   * "foo/gradients/bar", but not "foo_gradients/"
-   * 
- * - * string memory_optimizer_target_node_name_scope = 6; - */ - public com.google.protobuf.ByteString - getMemoryOptimizerTargetNodeNameScopeBytes() { - java.lang.Object ref = memoryOptimizerTargetNodeNameScope_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - memoryOptimizerTargetNodeNameScope_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int META_OPTIMIZER_TIMEOUT_MS_FIELD_NUMBER = 20; - private long metaOptimizerTimeoutMs_; - /** - *
-   * Maximum number of milliseconds to spend optimizing a single graph before
-   * timing out. If less than or equal to 0 (default value) the optimizer will
-   * never time out.
-   * 
- * - * int64 meta_optimizer_timeout_ms = 20; - */ - public long getMetaOptimizerTimeoutMs() { - return metaOptimizerTimeoutMs_; - } - - public static final int AUTO_PARALLEL_FIELD_NUMBER = 5; - private org.tensorflow.proto.framework.AutoParallelOptions autoParallel_; - /** - *
-   * Configures AutoParallel optimization passes either through the
-   * meta-optimizer or when manually specified through the optimizers field.
-   * 
- * - * .tensorflow.AutoParallelOptions auto_parallel = 5; - */ - public boolean hasAutoParallel() { - return autoParallel_ != null; - } - /** - *
-   * Configures AutoParallel optimization passes either through the
-   * meta-optimizer or when manually specified through the optimizers field.
-   * 
- * - * .tensorflow.AutoParallelOptions auto_parallel = 5; - */ - public org.tensorflow.proto.framework.AutoParallelOptions getAutoParallel() { - return autoParallel_ == null ? org.tensorflow.proto.framework.AutoParallelOptions.getDefaultInstance() : autoParallel_; - } - /** - *
-   * Configures AutoParallel optimization passes either through the
-   * meta-optimizer or when manually specified through the optimizers field.
-   * 
- * - * .tensorflow.AutoParallelOptions auto_parallel = 5; - */ - public org.tensorflow.proto.framework.AutoParallelOptionsOrBuilder getAutoParallelOrBuilder() { - return getAutoParallel(); - } - - public static final int FAIL_ON_OPTIMIZER_ERRORS_FIELD_NUMBER = 21; - private boolean failOnOptimizerErrors_; - /** - *
-   * If true, any optimization pass failing will cause the MetaOptimizer to
-   * stop with an error. By default - or when set to false, failing passes are
-   * skipped silently.
-   * 
- * - * bool fail_on_optimizer_errors = 21; - */ - public boolean getFailOnOptimizerErrors() { - return failOnOptimizerErrors_; - } - - public static final int SCOPED_ALLOCATOR_OPTS_FIELD_NUMBER = 16; - private org.tensorflow.proto.framework.ScopedAllocatorOptions scopedAllocatorOpts_; - /** - * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; - */ - public boolean hasScopedAllocatorOpts() { - return scopedAllocatorOpts_ != null; - } - /** - * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; - */ - public org.tensorflow.proto.framework.ScopedAllocatorOptions getScopedAllocatorOpts() { - return scopedAllocatorOpts_ == null ? org.tensorflow.proto.framework.ScopedAllocatorOptions.getDefaultInstance() : scopedAllocatorOpts_; - } - /** - * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; - */ - public org.tensorflow.proto.framework.ScopedAllocatorOptionsOrBuilder getScopedAllocatorOptsOrBuilder() { - return getScopedAllocatorOpts(); - } - - public static final int OPTIMIZERS_FIELD_NUMBER = 100; - private com.google.protobuf.LazyStringList optimizers_; - /** - *
-   * If non-empty, will use this as an alternative way to specify a list of
-   * optimizations to turn on and the order of the optimizations (replacing the
-   * meta-optimizer).
-   * Of the RewriterConfig options, only the AutoParallel configuration options
-   * (the auto_parallel field) apply to manually requested optimization passes
-   * ("autoparallel"). Memory optimization passes ("memory") invoked here are
-   * not configurable (in contrast to memory optimization passes through the
-   * meta-optimizer) and act only on manual op annotations.
-   * Custom optimizers (see custom_optimizers) that are not part of this
-   * schedule will be run after - in the order that they were specified.
-   * 
- * - * repeated string optimizers = 100; - */ - public com.google.protobuf.ProtocolStringList - getOptimizersList() { - return optimizers_; - } - /** - *
-   * If non-empty, will use this as an alternative way to specify a list of
-   * optimizations to turn on and the order of the optimizations (replacing the
-   * meta-optimizer).
-   * Of the RewriterConfig options, only the AutoParallel configuration options
-   * (the auto_parallel field) apply to manually requested optimization passes
-   * ("autoparallel"). Memory optimization passes ("memory") invoked here are
-   * not configurable (in contrast to memory optimization passes through the
-   * meta-optimizer) and act only on manual op annotations.
-   * Custom optimizers (see custom_optimizers) that are not part of this
-   * schedule will be run after - in the order that they were specified.
-   * 
- * - * repeated string optimizers = 100; - */ - public int getOptimizersCount() { - return optimizers_.size(); - } - /** - *
-   * If non-empty, will use this as an alternative way to specify a list of
-   * optimizations to turn on and the order of the optimizations (replacing the
-   * meta-optimizer).
-   * Of the RewriterConfig options, only the AutoParallel configuration options
-   * (the auto_parallel field) apply to manually requested optimization passes
-   * ("autoparallel"). Memory optimization passes ("memory") invoked here are
-   * not configurable (in contrast to memory optimization passes through the
-   * meta-optimizer) and act only on manual op annotations.
-   * Custom optimizers (see custom_optimizers) that are not part of this
-   * schedule will be run after - in the order that they were specified.
-   * 
- * - * repeated string optimizers = 100; - */ - public java.lang.String getOptimizers(int index) { - return optimizers_.get(index); - } - /** - *
-   * If non-empty, will use this as an alternative way to specify a list of
-   * optimizations to turn on and the order of the optimizations (replacing the
-   * meta-optimizer).
-   * Of the RewriterConfig options, only the AutoParallel configuration options
-   * (the auto_parallel field) apply to manually requested optimization passes
-   * ("autoparallel"). Memory optimization passes ("memory") invoked here are
-   * not configurable (in contrast to memory optimization passes through the
-   * meta-optimizer) and act only on manual op annotations.
-   * Custom optimizers (see custom_optimizers) that are not part of this
-   * schedule will be run after - in the order that they were specified.
-   * 
- * - * repeated string optimizers = 100; - */ - public com.google.protobuf.ByteString - getOptimizersBytes(int index) { - return optimizers_.getByteString(index); - } - - public static final int CUSTOM_OPTIMIZERS_FIELD_NUMBER = 200; - private java.util.List customOptimizers_; - /** - *
-   * list of CustomGraphOptimizers to apply.
-   * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public java.util.List getCustomOptimizersList() { - return customOptimizers_; - } - /** - *
-   * list of CustomGraphOptimizers to apply.
-   * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public java.util.List - getCustomOptimizersOrBuilderList() { - return customOptimizers_; - } - /** - *
-   * list of CustomGraphOptimizers to apply.
-   * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public int getCustomOptimizersCount() { - return customOptimizers_.size(); - } - /** - *
-   * list of CustomGraphOptimizers to apply.
-   * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer getCustomOptimizers(int index) { - return customOptimizers_.get(index); - } - /** - *
-   * list of CustomGraphOptimizers to apply.
-   * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizerOrBuilder getCustomOptimizersOrBuilder( - int index) { - return customOptimizers_.get(index); - } - - public static final int INTER_OPTIMIZER_VERIFIER_CONFIG_FIELD_NUMBER = 300; - private org.tensorflow.proto.framework.VerifierConfig interOptimizerVerifierConfig_; - /** - *
-   * VerifierConfig specifying the verifiers to be run after every optimizer.
-   * 
- * - * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; - */ - public boolean hasInterOptimizerVerifierConfig() { - return interOptimizerVerifierConfig_ != null; - } - /** - *
-   * VerifierConfig specifying the verifiers to be run after every optimizer.
-   * 
- * - * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; - */ - public org.tensorflow.proto.framework.VerifierConfig getInterOptimizerVerifierConfig() { - return interOptimizerVerifierConfig_ == null ? org.tensorflow.proto.framework.VerifierConfig.getDefaultInstance() : interOptimizerVerifierConfig_; - } - /** - *
-   * VerifierConfig specifying the verifiers to be run after every optimizer.
-   * 
- * - * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; - */ - public org.tensorflow.proto.framework.VerifierConfigOrBuilder getInterOptimizerVerifierConfigOrBuilder() { - return getInterOptimizerVerifierConfig(); - } - - public static final int POST_OPTIMIZATION_VERIFIER_CONFIG_FIELD_NUMBER = 301; - private org.tensorflow.proto.framework.VerifierConfig postOptimizationVerifierConfig_; - /** - *
-   * VerifierConfig specifying the verifiers to be run at the end, after all
-   * optimizers have run.
-   * 
- * - * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; - */ - public boolean hasPostOptimizationVerifierConfig() { - return postOptimizationVerifierConfig_ != null; - } - /** - *
-   * VerifierConfig specifying the verifiers to be run at the end, after all
-   * optimizers have run.
-   * 
- * - * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; - */ - public org.tensorflow.proto.framework.VerifierConfig getPostOptimizationVerifierConfig() { - return postOptimizationVerifierConfig_ == null ? org.tensorflow.proto.framework.VerifierConfig.getDefaultInstance() : postOptimizationVerifierConfig_; - } - /** - *
-   * VerifierConfig specifying the verifiers to be run at the end, after all
-   * optimizers have run.
-   * 
- * - * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; - */ - public org.tensorflow.proto.framework.VerifierConfigOrBuilder getPostOptimizationVerifierConfigOrBuilder() { - return getPostOptimizationVerifierConfig(); - } - - 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 (layoutOptimizer_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - output.writeEnum(1, layoutOptimizer_); - } - if (disableModelPruning_ != false) { - output.writeBool(2, disableModelPruning_); - } - if (constantFolding_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - output.writeEnum(3, constantFolding_); - } - if (memoryOptimization_ != org.tensorflow.proto.framework.RewriterConfig.MemOptType.DEFAULT_MEM_OPT.getNumber()) { - output.writeEnum(4, memoryOptimization_); - } - if (autoParallel_ != null) { - output.writeMessage(5, getAutoParallel()); - } - if (!getMemoryOptimizerTargetNodeNameScopeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, memoryOptimizerTargetNodeNameScope_); - } - if (arithmeticOptimization_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - output.writeEnum(7, arithmeticOptimization_); - } - if (dependencyOptimization_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - output.writeEnum(8, dependencyOptimization_); - } - if (loopOptimization_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - output.writeEnum(9, loopOptimization_); - } - if (functionOptimization_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - output.writeEnum(10, functionOptimization_); - } - if (debugStripper_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - output.writeEnum(11, debugStripper_); - } - if (metaOptimizerIterations_ != org.tensorflow.proto.framework.RewriterConfig.NumIterationsType.DEFAULT_NUM_ITERS.getNumber()) { - output.writeEnum(12, metaOptimizerIterations_); - } - if (shapeOptimization_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - output.writeEnum(13, shapeOptimization_); - } - if (remapping_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - output.writeEnum(14, remapping_); - } - if (scopedAllocatorOptimization_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - output.writeEnum(15, scopedAllocatorOptimization_); - } - if (scopedAllocatorOpts_ != null) { - output.writeMessage(16, getScopedAllocatorOpts()); - } - if (minGraphNodes_ != 0) { - output.writeInt32(17, minGraphNodes_); - } - if (pinToHostOptimization_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - output.writeEnum(18, pinToHostOptimization_); - } - if (disableMetaOptimizer_ != false) { - output.writeBool(19, disableMetaOptimizer_); - } - if (metaOptimizerTimeoutMs_ != 0L) { - output.writeInt64(20, metaOptimizerTimeoutMs_); - } - if (failOnOptimizerErrors_ != false) { - output.writeBool(21, failOnOptimizerErrors_); - } - if (implementationSelector_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - output.writeEnum(22, implementationSelector_); - } - if (autoMixedPrecision_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - output.writeEnum(23, autoMixedPrecision_); - } - if (commonSubgraphElimination_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - output.writeEnum(24, commonSubgraphElimination_); - } - if (autoMixedPrecisionMkl_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - output.writeEnum(25, autoMixedPrecisionMkl_); - } - if (experimentalDisableCompressedTensorOptimization_ != false) { - output.writeBool(26, experimentalDisableCompressedTensorOptimization_); - } - if (experimentalDisableFoldingQuantizationEmulation_ != false) { - output.writeBool(27, experimentalDisableFoldingQuantizationEmulation_); - } - if (usePluginOptimizers_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - output.writeEnum(28, usePluginOptimizers_); - } - if (autoMixedPrecisionCpu_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - output.writeEnum(29, autoMixedPrecisionCpu_); - } - if (experimentalConditionalCodeMotion_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - output.writeEnum(30, experimentalConditionalCodeMotion_); - } - if (autoMixedPrecisionOnednnBfloat16_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - output.writeEnum(31, autoMixedPrecisionOnednnBfloat16_); - } - if (cpuLayoutConversion_ != org.tensorflow.proto.framework.RewriterConfig.CpuLayout.NO_CONVERSION_ON_CPU.getNumber()) { - output.writeEnum(50, cpuLayoutConversion_); - } - for (int i = 0; i < optimizers_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 100, optimizers_.getRaw(i)); - } - for (int i = 0; i < customOptimizers_.size(); i++) { - output.writeMessage(200, customOptimizers_.get(i)); - } - if (interOptimizerVerifierConfig_ != null) { - output.writeMessage(300, getInterOptimizerVerifierConfig()); - } - if (postOptimizationVerifierConfig_ != null) { - output.writeMessage(301, getPostOptimizationVerifierConfig()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (layoutOptimizer_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, layoutOptimizer_); - } - if (disableModelPruning_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, disableModelPruning_); - } - if (constantFolding_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, constantFolding_); - } - if (memoryOptimization_ != org.tensorflow.proto.framework.RewriterConfig.MemOptType.DEFAULT_MEM_OPT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, memoryOptimization_); - } - if (autoParallel_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getAutoParallel()); - } - if (!getMemoryOptimizerTargetNodeNameScopeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, memoryOptimizerTargetNodeNameScope_); - } - if (arithmeticOptimization_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, arithmeticOptimization_); - } - if (dependencyOptimization_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, dependencyOptimization_); - } - if (loopOptimization_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, loopOptimization_); - } - if (functionOptimization_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, functionOptimization_); - } - if (debugStripper_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, debugStripper_); - } - if (metaOptimizerIterations_ != org.tensorflow.proto.framework.RewriterConfig.NumIterationsType.DEFAULT_NUM_ITERS.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(12, metaOptimizerIterations_); - } - if (shapeOptimization_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(13, shapeOptimization_); - } - if (remapping_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(14, remapping_); - } - if (scopedAllocatorOptimization_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, scopedAllocatorOptimization_); - } - if (scopedAllocatorOpts_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getScopedAllocatorOpts()); - } - if (minGraphNodes_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(17, minGraphNodes_); - } - if (pinToHostOptimization_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(18, pinToHostOptimization_); - } - if (disableMetaOptimizer_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(19, disableMetaOptimizer_); - } - if (metaOptimizerTimeoutMs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(20, metaOptimizerTimeoutMs_); - } - if (failOnOptimizerErrors_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(21, failOnOptimizerErrors_); - } - if (implementationSelector_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(22, implementationSelector_); - } - if (autoMixedPrecision_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(23, autoMixedPrecision_); - } - if (commonSubgraphElimination_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(24, commonSubgraphElimination_); - } - if (autoMixedPrecisionMkl_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(25, autoMixedPrecisionMkl_); - } - if (experimentalDisableCompressedTensorOptimization_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(26, experimentalDisableCompressedTensorOptimization_); - } - if (experimentalDisableFoldingQuantizationEmulation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(27, experimentalDisableFoldingQuantizationEmulation_); - } - if (usePluginOptimizers_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(28, usePluginOptimizers_); - } - if (autoMixedPrecisionCpu_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(29, autoMixedPrecisionCpu_); - } - if (experimentalConditionalCodeMotion_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(30, experimentalConditionalCodeMotion_); - } - if (autoMixedPrecisionOnednnBfloat16_ != org.tensorflow.proto.framework.RewriterConfig.Toggle.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(31, autoMixedPrecisionOnednnBfloat16_); - } - if (cpuLayoutConversion_ != org.tensorflow.proto.framework.RewriterConfig.CpuLayout.NO_CONVERSION_ON_CPU.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(50, cpuLayoutConversion_); - } - { - int dataSize = 0; - for (int i = 0; i < optimizers_.size(); i++) { - dataSize += computeStringSizeNoTag(optimizers_.getRaw(i)); - } - size += dataSize; - size += 2 * getOptimizersList().size(); - } - for (int i = 0; i < customOptimizers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(200, customOptimizers_.get(i)); - } - if (interOptimizerVerifierConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(300, getInterOptimizerVerifierConfig()); - } - if (postOptimizationVerifierConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(301, getPostOptimizationVerifierConfig()); - } - 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 org.tensorflow.proto.framework.RewriterConfig)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.RewriterConfig other = (org.tensorflow.proto.framework.RewriterConfig) obj; - - if (cpuLayoutConversion_ != other.cpuLayoutConversion_) return false; - if (layoutOptimizer_ != other.layoutOptimizer_) return false; - if (constantFolding_ != other.constantFolding_) return false; - if (shapeOptimization_ != other.shapeOptimization_) return false; - if (remapping_ != other.remapping_) return false; - if (commonSubgraphElimination_ != other.commonSubgraphElimination_) return false; - if (arithmeticOptimization_ != other.arithmeticOptimization_) return false; - if (dependencyOptimization_ != other.dependencyOptimization_) return false; - if (loopOptimization_ != other.loopOptimization_) return false; - if (functionOptimization_ != other.functionOptimization_) return false; - if (debugStripper_ != other.debugStripper_) return false; - if (getDisableModelPruning() - != other.getDisableModelPruning()) return false; - if (scopedAllocatorOptimization_ != other.scopedAllocatorOptimization_) return false; - if (pinToHostOptimization_ != other.pinToHostOptimization_) return false; - if (implementationSelector_ != other.implementationSelector_) return false; - if (autoMixedPrecision_ != other.autoMixedPrecision_) return false; - if (autoMixedPrecisionMkl_ != other.autoMixedPrecisionMkl_) return false; - if (autoMixedPrecisionOnednnBfloat16_ != other.autoMixedPrecisionOnednnBfloat16_) return false; - if (autoMixedPrecisionCpu_ != other.autoMixedPrecisionCpu_) return false; - if (getDisableMetaOptimizer() - != other.getDisableMetaOptimizer()) return false; - if (usePluginOptimizers_ != other.usePluginOptimizers_) return false; - if (experimentalConditionalCodeMotion_ != other.experimentalConditionalCodeMotion_) return false; - if (metaOptimizerIterations_ != other.metaOptimizerIterations_) return false; - if (getMinGraphNodes() - != other.getMinGraphNodes()) return false; - if (getExperimentalDisableCompressedTensorOptimization() - != other.getExperimentalDisableCompressedTensorOptimization()) return false; - if (getExperimentalDisableFoldingQuantizationEmulation() - != other.getExperimentalDisableFoldingQuantizationEmulation()) return false; - if (memoryOptimization_ != other.memoryOptimization_) return false; - if (!getMemoryOptimizerTargetNodeNameScope() - .equals(other.getMemoryOptimizerTargetNodeNameScope())) return false; - if (getMetaOptimizerTimeoutMs() - != other.getMetaOptimizerTimeoutMs()) return false; - if (hasAutoParallel() != other.hasAutoParallel()) return false; - if (hasAutoParallel()) { - if (!getAutoParallel() - .equals(other.getAutoParallel())) return false; - } - if (getFailOnOptimizerErrors() - != other.getFailOnOptimizerErrors()) return false; - if (hasScopedAllocatorOpts() != other.hasScopedAllocatorOpts()) return false; - if (hasScopedAllocatorOpts()) { - if (!getScopedAllocatorOpts() - .equals(other.getScopedAllocatorOpts())) return false; - } - if (!getOptimizersList() - .equals(other.getOptimizersList())) return false; - if (!getCustomOptimizersList() - .equals(other.getCustomOptimizersList())) return false; - if (hasInterOptimizerVerifierConfig() != other.hasInterOptimizerVerifierConfig()) return false; - if (hasInterOptimizerVerifierConfig()) { - if (!getInterOptimizerVerifierConfig() - .equals(other.getInterOptimizerVerifierConfig())) return false; - } - if (hasPostOptimizationVerifierConfig() != other.hasPostOptimizationVerifierConfig()) return false; - if (hasPostOptimizationVerifierConfig()) { - if (!getPostOptimizationVerifierConfig() - .equals(other.getPostOptimizationVerifierConfig())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CPU_LAYOUT_CONVERSION_FIELD_NUMBER; - hash = (53 * hash) + cpuLayoutConversion_; - hash = (37 * hash) + LAYOUT_OPTIMIZER_FIELD_NUMBER; - hash = (53 * hash) + layoutOptimizer_; - hash = (37 * hash) + CONSTANT_FOLDING_FIELD_NUMBER; - hash = (53 * hash) + constantFolding_; - hash = (37 * hash) + SHAPE_OPTIMIZATION_FIELD_NUMBER; - hash = (53 * hash) + shapeOptimization_; - hash = (37 * hash) + REMAPPING_FIELD_NUMBER; - hash = (53 * hash) + remapping_; - hash = (37 * hash) + COMMON_SUBGRAPH_ELIMINATION_FIELD_NUMBER; - hash = (53 * hash) + commonSubgraphElimination_; - hash = (37 * hash) + ARITHMETIC_OPTIMIZATION_FIELD_NUMBER; - hash = (53 * hash) + arithmeticOptimization_; - hash = (37 * hash) + DEPENDENCY_OPTIMIZATION_FIELD_NUMBER; - hash = (53 * hash) + dependencyOptimization_; - hash = (37 * hash) + LOOP_OPTIMIZATION_FIELD_NUMBER; - hash = (53 * hash) + loopOptimization_; - hash = (37 * hash) + FUNCTION_OPTIMIZATION_FIELD_NUMBER; - hash = (53 * hash) + functionOptimization_; - hash = (37 * hash) + DEBUG_STRIPPER_FIELD_NUMBER; - hash = (53 * hash) + debugStripper_; - hash = (37 * hash) + DISABLE_MODEL_PRUNING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisableModelPruning()); - hash = (37 * hash) + SCOPED_ALLOCATOR_OPTIMIZATION_FIELD_NUMBER; - hash = (53 * hash) + scopedAllocatorOptimization_; - hash = (37 * hash) + PIN_TO_HOST_OPTIMIZATION_FIELD_NUMBER; - hash = (53 * hash) + pinToHostOptimization_; - hash = (37 * hash) + IMPLEMENTATION_SELECTOR_FIELD_NUMBER; - hash = (53 * hash) + implementationSelector_; - hash = (37 * hash) + AUTO_MIXED_PRECISION_FIELD_NUMBER; - hash = (53 * hash) + autoMixedPrecision_; - hash = (37 * hash) + AUTO_MIXED_PRECISION_MKL_FIELD_NUMBER; - hash = (53 * hash) + autoMixedPrecisionMkl_; - hash = (37 * hash) + AUTO_MIXED_PRECISION_ONEDNN_BFLOAT16_FIELD_NUMBER; - hash = (53 * hash) + autoMixedPrecisionOnednnBfloat16_; - hash = (37 * hash) + AUTO_MIXED_PRECISION_CPU_FIELD_NUMBER; - hash = (53 * hash) + autoMixedPrecisionCpu_; - hash = (37 * hash) + DISABLE_META_OPTIMIZER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisableMetaOptimizer()); - hash = (37 * hash) + USE_PLUGIN_OPTIMIZERS_FIELD_NUMBER; - hash = (53 * hash) + usePluginOptimizers_; - hash = (37 * hash) + EXPERIMENTAL_CONDITIONAL_CODE_MOTION_FIELD_NUMBER; - hash = (53 * hash) + experimentalConditionalCodeMotion_; - hash = (37 * hash) + META_OPTIMIZER_ITERATIONS_FIELD_NUMBER; - hash = (53 * hash) + metaOptimizerIterations_; - hash = (37 * hash) + MIN_GRAPH_NODES_FIELD_NUMBER; - hash = (53 * hash) + getMinGraphNodes(); - hash = (37 * hash) + EXPERIMENTAL_DISABLE_COMPRESSED_TENSOR_OPTIMIZATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getExperimentalDisableCompressedTensorOptimization()); - hash = (37 * hash) + EXPERIMENTAL_DISABLE_FOLDING_QUANTIZATION_EMULATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getExperimentalDisableFoldingQuantizationEmulation()); - hash = (37 * hash) + MEMORY_OPTIMIZATION_FIELD_NUMBER; - hash = (53 * hash) + memoryOptimization_; - hash = (37 * hash) + MEMORY_OPTIMIZER_TARGET_NODE_NAME_SCOPE_FIELD_NUMBER; - hash = (53 * hash) + getMemoryOptimizerTargetNodeNameScope().hashCode(); - hash = (37 * hash) + META_OPTIMIZER_TIMEOUT_MS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMetaOptimizerTimeoutMs()); - if (hasAutoParallel()) { - hash = (37 * hash) + AUTO_PARALLEL_FIELD_NUMBER; - hash = (53 * hash) + getAutoParallel().hashCode(); - } - hash = (37 * hash) + FAIL_ON_OPTIMIZER_ERRORS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFailOnOptimizerErrors()); - if (hasScopedAllocatorOpts()) { - hash = (37 * hash) + SCOPED_ALLOCATOR_OPTS_FIELD_NUMBER; - hash = (53 * hash) + getScopedAllocatorOpts().hashCode(); - } - if (getOptimizersCount() > 0) { - hash = (37 * hash) + OPTIMIZERS_FIELD_NUMBER; - hash = (53 * hash) + getOptimizersList().hashCode(); - } - if (getCustomOptimizersCount() > 0) { - hash = (37 * hash) + CUSTOM_OPTIMIZERS_FIELD_NUMBER; - hash = (53 * hash) + getCustomOptimizersList().hashCode(); - } - if (hasInterOptimizerVerifierConfig()) { - hash = (37 * hash) + INTER_OPTIMIZER_VERIFIER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getInterOptimizerVerifierConfig().hashCode(); - } - if (hasPostOptimizationVerifierConfig()) { - hash = (37 * hash) + POST_OPTIMIZATION_VERIFIER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getPostOptimizationVerifierConfig().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.RewriterConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RewriterConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RewriterConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RewriterConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RewriterConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RewriterConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RewriterConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RewriterConfig 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 org.tensorflow.proto.framework.RewriterConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RewriterConfig 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 org.tensorflow.proto.framework.RewriterConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RewriterConfig 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(org.tensorflow.proto.framework.RewriterConfig 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; - } - /** - *
-   * Graph rewriting is experimental and subject to change, not covered by any
-   * API stability guarantees.
-   * 
- * - * Protobuf type {@code tensorflow.RewriterConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.RewriterConfig) - org.tensorflow.proto.framework.RewriterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.RewriterConfigProtos.internal_static_tensorflow_RewriterConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.RewriterConfigProtos.internal_static_tensorflow_RewriterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.RewriterConfig.class, org.tensorflow.proto.framework.RewriterConfig.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.RewriterConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getCustomOptimizersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - cpuLayoutConversion_ = 0; - - layoutOptimizer_ = 0; - - constantFolding_ = 0; - - shapeOptimization_ = 0; - - remapping_ = 0; - - commonSubgraphElimination_ = 0; - - arithmeticOptimization_ = 0; - - dependencyOptimization_ = 0; - - loopOptimization_ = 0; - - functionOptimization_ = 0; - - debugStripper_ = 0; - - disableModelPruning_ = false; - - scopedAllocatorOptimization_ = 0; - - pinToHostOptimization_ = 0; - - implementationSelector_ = 0; - - autoMixedPrecision_ = 0; - - autoMixedPrecisionMkl_ = 0; - - autoMixedPrecisionOnednnBfloat16_ = 0; - - autoMixedPrecisionCpu_ = 0; - - disableMetaOptimizer_ = false; - - usePluginOptimizers_ = 0; - - experimentalConditionalCodeMotion_ = 0; - - metaOptimizerIterations_ = 0; - - minGraphNodes_ = 0; - - experimentalDisableCompressedTensorOptimization_ = false; - - experimentalDisableFoldingQuantizationEmulation_ = false; - - memoryOptimization_ = 0; - - memoryOptimizerTargetNodeNameScope_ = ""; - - metaOptimizerTimeoutMs_ = 0L; - - if (autoParallelBuilder_ == null) { - autoParallel_ = null; - } else { - autoParallel_ = null; - autoParallelBuilder_ = null; - } - failOnOptimizerErrors_ = false; - - if (scopedAllocatorOptsBuilder_ == null) { - scopedAllocatorOpts_ = null; - } else { - scopedAllocatorOpts_ = null; - scopedAllocatorOptsBuilder_ = null; - } - optimizers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (customOptimizersBuilder_ == null) { - customOptimizers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - customOptimizersBuilder_.clear(); - } - if (interOptimizerVerifierConfigBuilder_ == null) { - interOptimizerVerifierConfig_ = null; - } else { - interOptimizerVerifierConfig_ = null; - interOptimizerVerifierConfigBuilder_ = null; - } - if (postOptimizationVerifierConfigBuilder_ == null) { - postOptimizationVerifierConfig_ = null; - } else { - postOptimizationVerifierConfig_ = null; - postOptimizationVerifierConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.RewriterConfigProtos.internal_static_tensorflow_RewriterConfig_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RewriterConfig getDefaultInstanceForType() { - return org.tensorflow.proto.framework.RewriterConfig.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.RewriterConfig build() { - org.tensorflow.proto.framework.RewriterConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RewriterConfig buildPartial() { - org.tensorflow.proto.framework.RewriterConfig result = new org.tensorflow.proto.framework.RewriterConfig(this); - int from_bitField0_ = bitField0_; - result.cpuLayoutConversion_ = cpuLayoutConversion_; - result.layoutOptimizer_ = layoutOptimizer_; - result.constantFolding_ = constantFolding_; - result.shapeOptimization_ = shapeOptimization_; - result.remapping_ = remapping_; - result.commonSubgraphElimination_ = commonSubgraphElimination_; - result.arithmeticOptimization_ = arithmeticOptimization_; - result.dependencyOptimization_ = dependencyOptimization_; - result.loopOptimization_ = loopOptimization_; - result.functionOptimization_ = functionOptimization_; - result.debugStripper_ = debugStripper_; - result.disableModelPruning_ = disableModelPruning_; - result.scopedAllocatorOptimization_ = scopedAllocatorOptimization_; - result.pinToHostOptimization_ = pinToHostOptimization_; - result.implementationSelector_ = implementationSelector_; - result.autoMixedPrecision_ = autoMixedPrecision_; - result.autoMixedPrecisionMkl_ = autoMixedPrecisionMkl_; - result.autoMixedPrecisionOnednnBfloat16_ = autoMixedPrecisionOnednnBfloat16_; - result.autoMixedPrecisionCpu_ = autoMixedPrecisionCpu_; - result.disableMetaOptimizer_ = disableMetaOptimizer_; - result.usePluginOptimizers_ = usePluginOptimizers_; - result.experimentalConditionalCodeMotion_ = experimentalConditionalCodeMotion_; - result.metaOptimizerIterations_ = metaOptimizerIterations_; - result.minGraphNodes_ = minGraphNodes_; - result.experimentalDisableCompressedTensorOptimization_ = experimentalDisableCompressedTensorOptimization_; - result.experimentalDisableFoldingQuantizationEmulation_ = experimentalDisableFoldingQuantizationEmulation_; - result.memoryOptimization_ = memoryOptimization_; - result.memoryOptimizerTargetNodeNameScope_ = memoryOptimizerTargetNodeNameScope_; - result.metaOptimizerTimeoutMs_ = metaOptimizerTimeoutMs_; - if (autoParallelBuilder_ == null) { - result.autoParallel_ = autoParallel_; - } else { - result.autoParallel_ = autoParallelBuilder_.build(); - } - result.failOnOptimizerErrors_ = failOnOptimizerErrors_; - if (scopedAllocatorOptsBuilder_ == null) { - result.scopedAllocatorOpts_ = scopedAllocatorOpts_; - } else { - result.scopedAllocatorOpts_ = scopedAllocatorOptsBuilder_.build(); - } - if (((bitField0_ & 0x00000001) != 0)) { - optimizers_ = optimizers_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.optimizers_ = optimizers_; - if (customOptimizersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - customOptimizers_ = java.util.Collections.unmodifiableList(customOptimizers_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.customOptimizers_ = customOptimizers_; - } else { - result.customOptimizers_ = customOptimizersBuilder_.build(); - } - if (interOptimizerVerifierConfigBuilder_ == null) { - result.interOptimizerVerifierConfig_ = interOptimizerVerifierConfig_; - } else { - result.interOptimizerVerifierConfig_ = interOptimizerVerifierConfigBuilder_.build(); - } - if (postOptimizationVerifierConfigBuilder_ == null) { - result.postOptimizationVerifierConfig_ = postOptimizationVerifierConfig_; - } else { - result.postOptimizationVerifierConfig_ = postOptimizationVerifierConfigBuilder_.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 org.tensorflow.proto.framework.RewriterConfig) { - return mergeFrom((org.tensorflow.proto.framework.RewriterConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.RewriterConfig other) { - if (other == org.tensorflow.proto.framework.RewriterConfig.getDefaultInstance()) return this; - if (other.cpuLayoutConversion_ != 0) { - setCpuLayoutConversionValue(other.getCpuLayoutConversionValue()); - } - if (other.layoutOptimizer_ != 0) { - setLayoutOptimizerValue(other.getLayoutOptimizerValue()); - } - if (other.constantFolding_ != 0) { - setConstantFoldingValue(other.getConstantFoldingValue()); - } - if (other.shapeOptimization_ != 0) { - setShapeOptimizationValue(other.getShapeOptimizationValue()); - } - if (other.remapping_ != 0) { - setRemappingValue(other.getRemappingValue()); - } - if (other.commonSubgraphElimination_ != 0) { - setCommonSubgraphEliminationValue(other.getCommonSubgraphEliminationValue()); - } - if (other.arithmeticOptimization_ != 0) { - setArithmeticOptimizationValue(other.getArithmeticOptimizationValue()); - } - if (other.dependencyOptimization_ != 0) { - setDependencyOptimizationValue(other.getDependencyOptimizationValue()); - } - if (other.loopOptimization_ != 0) { - setLoopOptimizationValue(other.getLoopOptimizationValue()); - } - if (other.functionOptimization_ != 0) { - setFunctionOptimizationValue(other.getFunctionOptimizationValue()); - } - if (other.debugStripper_ != 0) { - setDebugStripperValue(other.getDebugStripperValue()); - } - if (other.getDisableModelPruning() != false) { - setDisableModelPruning(other.getDisableModelPruning()); - } - if (other.scopedAllocatorOptimization_ != 0) { - setScopedAllocatorOptimizationValue(other.getScopedAllocatorOptimizationValue()); - } - if (other.pinToHostOptimization_ != 0) { - setPinToHostOptimizationValue(other.getPinToHostOptimizationValue()); - } - if (other.implementationSelector_ != 0) { - setImplementationSelectorValue(other.getImplementationSelectorValue()); - } - if (other.autoMixedPrecision_ != 0) { - setAutoMixedPrecisionValue(other.getAutoMixedPrecisionValue()); - } - if (other.autoMixedPrecisionMkl_ != 0) { - setAutoMixedPrecisionMklValue(other.getAutoMixedPrecisionMklValue()); - } - if (other.autoMixedPrecisionOnednnBfloat16_ != 0) { - setAutoMixedPrecisionOnednnBfloat16Value(other.getAutoMixedPrecisionOnednnBfloat16Value()); - } - if (other.autoMixedPrecisionCpu_ != 0) { - setAutoMixedPrecisionCpuValue(other.getAutoMixedPrecisionCpuValue()); - } - if (other.getDisableMetaOptimizer() != false) { - setDisableMetaOptimizer(other.getDisableMetaOptimizer()); - } - if (other.usePluginOptimizers_ != 0) { - setUsePluginOptimizersValue(other.getUsePluginOptimizersValue()); - } - if (other.experimentalConditionalCodeMotion_ != 0) { - setExperimentalConditionalCodeMotionValue(other.getExperimentalConditionalCodeMotionValue()); - } - if (other.metaOptimizerIterations_ != 0) { - setMetaOptimizerIterationsValue(other.getMetaOptimizerIterationsValue()); - } - if (other.getMinGraphNodes() != 0) { - setMinGraphNodes(other.getMinGraphNodes()); - } - if (other.getExperimentalDisableCompressedTensorOptimization() != false) { - setExperimentalDisableCompressedTensorOptimization(other.getExperimentalDisableCompressedTensorOptimization()); - } - if (other.getExperimentalDisableFoldingQuantizationEmulation() != false) { - setExperimentalDisableFoldingQuantizationEmulation(other.getExperimentalDisableFoldingQuantizationEmulation()); - } - if (other.memoryOptimization_ != 0) { - setMemoryOptimizationValue(other.getMemoryOptimizationValue()); - } - if (!other.getMemoryOptimizerTargetNodeNameScope().isEmpty()) { - memoryOptimizerTargetNodeNameScope_ = other.memoryOptimizerTargetNodeNameScope_; - onChanged(); - } - if (other.getMetaOptimizerTimeoutMs() != 0L) { - setMetaOptimizerTimeoutMs(other.getMetaOptimizerTimeoutMs()); - } - if (other.hasAutoParallel()) { - mergeAutoParallel(other.getAutoParallel()); - } - if (other.getFailOnOptimizerErrors() != false) { - setFailOnOptimizerErrors(other.getFailOnOptimizerErrors()); - } - if (other.hasScopedAllocatorOpts()) { - mergeScopedAllocatorOpts(other.getScopedAllocatorOpts()); - } - if (!other.optimizers_.isEmpty()) { - if (optimizers_.isEmpty()) { - optimizers_ = other.optimizers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOptimizersIsMutable(); - optimizers_.addAll(other.optimizers_); - } - onChanged(); - } - if (customOptimizersBuilder_ == null) { - if (!other.customOptimizers_.isEmpty()) { - if (customOptimizers_.isEmpty()) { - customOptimizers_ = other.customOptimizers_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureCustomOptimizersIsMutable(); - customOptimizers_.addAll(other.customOptimizers_); - } - onChanged(); - } - } else { - if (!other.customOptimizers_.isEmpty()) { - if (customOptimizersBuilder_.isEmpty()) { - customOptimizersBuilder_.dispose(); - customOptimizersBuilder_ = null; - customOptimizers_ = other.customOptimizers_; - bitField0_ = (bitField0_ & ~0x00000002); - customOptimizersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCustomOptimizersFieldBuilder() : null; - } else { - customOptimizersBuilder_.addAllMessages(other.customOptimizers_); - } - } - } - if (other.hasInterOptimizerVerifierConfig()) { - mergeInterOptimizerVerifierConfig(other.getInterOptimizerVerifierConfig()); - } - if (other.hasPostOptimizationVerifierConfig()) { - mergePostOptimizationVerifierConfig(other.getPostOptimizationVerifierConfig()); - } - 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 { - org.tensorflow.proto.framework.RewriterConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.RewriterConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int cpuLayoutConversion_ = 0; - /** - *
-     * CPU Conversion settings between NHCW and NCHW.
-     * 
- * - * .tensorflow.RewriterConfig.CpuLayout cpu_layout_conversion = 50; - */ - public int getCpuLayoutConversionValue() { - return cpuLayoutConversion_; - } - /** - *
-     * CPU Conversion settings between NHCW and NCHW.
-     * 
- * - * .tensorflow.RewriterConfig.CpuLayout cpu_layout_conversion = 50; - */ - public Builder setCpuLayoutConversionValue(int value) { - cpuLayoutConversion_ = value; - onChanged(); - return this; - } - /** - *
-     * CPU Conversion settings between NHCW and NCHW.
-     * 
- * - * .tensorflow.RewriterConfig.CpuLayout cpu_layout_conversion = 50; - */ - public org.tensorflow.proto.framework.RewriterConfig.CpuLayout getCpuLayoutConversion() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.CpuLayout result = org.tensorflow.proto.framework.RewriterConfig.CpuLayout.valueOf(cpuLayoutConversion_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.CpuLayout.UNRECOGNIZED : result; - } - /** - *
-     * CPU Conversion settings between NHCW and NCHW.
-     * 
- * - * .tensorflow.RewriterConfig.CpuLayout cpu_layout_conversion = 50; - */ - public Builder setCpuLayoutConversion(org.tensorflow.proto.framework.RewriterConfig.CpuLayout value) { - if (value == null) { - throw new NullPointerException(); - } - - cpuLayoutConversion_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * CPU Conversion settings between NHCW and NCHW.
-     * 
- * - * .tensorflow.RewriterConfig.CpuLayout cpu_layout_conversion = 50; - */ - public Builder clearCpuLayoutConversion() { - - cpuLayoutConversion_ = 0; - onChanged(); - return this; - } - - private int layoutOptimizer_ = 0; - /** - *
-     * Optimize tensor layouts (default is ON)
-     * e.g. This will try to use NCHW layout on GPU which is faster.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle layout_optimizer = 1; - */ - public int getLayoutOptimizerValue() { - return layoutOptimizer_; - } - /** - *
-     * Optimize tensor layouts (default is ON)
-     * e.g. This will try to use NCHW layout on GPU which is faster.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle layout_optimizer = 1; - */ - public Builder setLayoutOptimizerValue(int value) { - layoutOptimizer_ = value; - onChanged(); - return this; - } - /** - *
-     * Optimize tensor layouts (default is ON)
-     * e.g. This will try to use NCHW layout on GPU which is faster.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle layout_optimizer = 1; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getLayoutOptimizer() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(layoutOptimizer_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - /** - *
-     * Optimize tensor layouts (default is ON)
-     * e.g. This will try to use NCHW layout on GPU which is faster.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle layout_optimizer = 1; - */ - public Builder setLayoutOptimizer(org.tensorflow.proto.framework.RewriterConfig.Toggle value) { - if (value == null) { - throw new NullPointerException(); - } - - layoutOptimizer_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Optimize tensor layouts (default is ON)
-     * e.g. This will try to use NCHW layout on GPU which is faster.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle layout_optimizer = 1; - */ - public Builder clearLayoutOptimizer() { - - layoutOptimizer_ = 0; - onChanged(); - return this; - } - - private int constantFolding_ = 0; - /** - *
-     * Fold constants (default is ON)
-     * Statically infer the value of tensors when possible, and materialize the
-     * result using constants.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle constant_folding = 3; - */ - public int getConstantFoldingValue() { - return constantFolding_; - } - /** - *
-     * Fold constants (default is ON)
-     * Statically infer the value of tensors when possible, and materialize the
-     * result using constants.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle constant_folding = 3; - */ - public Builder setConstantFoldingValue(int value) { - constantFolding_ = value; - onChanged(); - return this; - } - /** - *
-     * Fold constants (default is ON)
-     * Statically infer the value of tensors when possible, and materialize the
-     * result using constants.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle constant_folding = 3; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getConstantFolding() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(constantFolding_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - /** - *
-     * Fold constants (default is ON)
-     * Statically infer the value of tensors when possible, and materialize the
-     * result using constants.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle constant_folding = 3; - */ - public Builder setConstantFolding(org.tensorflow.proto.framework.RewriterConfig.Toggle value) { - if (value == null) { - throw new NullPointerException(); - } - - constantFolding_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Fold constants (default is ON)
-     * Statically infer the value of tensors when possible, and materialize the
-     * result using constants.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle constant_folding = 3; - */ - public Builder clearConstantFolding() { - - constantFolding_ = 0; - onChanged(); - return this; - } - - private int shapeOptimization_ = 0; - /** - *
-     * Shape optimizations (default is ON)
-     * Simplify computations made on shapes.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle shape_optimization = 13; - */ - public int getShapeOptimizationValue() { - return shapeOptimization_; - } - /** - *
-     * Shape optimizations (default is ON)
-     * Simplify computations made on shapes.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle shape_optimization = 13; - */ - public Builder setShapeOptimizationValue(int value) { - shapeOptimization_ = value; - onChanged(); - return this; - } - /** - *
-     * Shape optimizations (default is ON)
-     * Simplify computations made on shapes.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle shape_optimization = 13; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getShapeOptimization() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(shapeOptimization_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - /** - *
-     * Shape optimizations (default is ON)
-     * Simplify computations made on shapes.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle shape_optimization = 13; - */ - public Builder setShapeOptimization(org.tensorflow.proto.framework.RewriterConfig.Toggle value) { - if (value == null) { - throw new NullPointerException(); - } - - shapeOptimization_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Shape optimizations (default is ON)
-     * Simplify computations made on shapes.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle shape_optimization = 13; - */ - public Builder clearShapeOptimization() { - - shapeOptimization_ = 0; - onChanged(); - return this; - } - - private int remapping_ = 0; - /** - *
-     * Remapping (default is ON)
-     * Remap subgraphs onto more efficient implementations.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle remapping = 14; - */ - public int getRemappingValue() { - return remapping_; - } - /** - *
-     * Remapping (default is ON)
-     * Remap subgraphs onto more efficient implementations.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle remapping = 14; - */ - public Builder setRemappingValue(int value) { - remapping_ = value; - onChanged(); - return this; - } - /** - *
-     * Remapping (default is ON)
-     * Remap subgraphs onto more efficient implementations.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle remapping = 14; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getRemapping() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(remapping_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - /** - *
-     * Remapping (default is ON)
-     * Remap subgraphs onto more efficient implementations.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle remapping = 14; - */ - public Builder setRemapping(org.tensorflow.proto.framework.RewriterConfig.Toggle value) { - if (value == null) { - throw new NullPointerException(); - } - - remapping_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Remapping (default is ON)
-     * Remap subgraphs onto more efficient implementations.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle remapping = 14; - */ - public Builder clearRemapping() { - - remapping_ = 0; - onChanged(); - return this; - } - - private int commonSubgraphElimination_ = 0; - /** - *
-     * Common subgraph elimination (default is ON)
-     * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle common_subgraph_elimination = 24; - */ - public int getCommonSubgraphEliminationValue() { - return commonSubgraphElimination_; - } - /** - *
-     * Common subgraph elimination (default is ON)
-     * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle common_subgraph_elimination = 24; - */ - public Builder setCommonSubgraphEliminationValue(int value) { - commonSubgraphElimination_ = value; - onChanged(); - return this; - } - /** - *
-     * Common subgraph elimination (default is ON)
-     * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle common_subgraph_elimination = 24; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getCommonSubgraphElimination() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(commonSubgraphElimination_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - /** - *
-     * Common subgraph elimination (default is ON)
-     * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle common_subgraph_elimination = 24; - */ - public Builder setCommonSubgraphElimination(org.tensorflow.proto.framework.RewriterConfig.Toggle value) { - if (value == null) { - throw new NullPointerException(); - } - - commonSubgraphElimination_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Common subgraph elimination (default is ON)
-     * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle common_subgraph_elimination = 24; - */ - public Builder clearCommonSubgraphElimination() { - - commonSubgraphElimination_ = 0; - onChanged(); - return this; - } - - private int arithmeticOptimization_ = 0; - /** - *
-     * Arithmetic optimizations (default is ON)
-     * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7; - */ - public int getArithmeticOptimizationValue() { - return arithmeticOptimization_; - } - /** - *
-     * Arithmetic optimizations (default is ON)
-     * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7; - */ - public Builder setArithmeticOptimizationValue(int value) { - arithmeticOptimization_ = value; - onChanged(); - return this; - } - /** - *
-     * Arithmetic optimizations (default is ON)
-     * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getArithmeticOptimization() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(arithmeticOptimization_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - /** - *
-     * Arithmetic optimizations (default is ON)
-     * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7; - */ - public Builder setArithmeticOptimization(org.tensorflow.proto.framework.RewriterConfig.Toggle value) { - if (value == null) { - throw new NullPointerException(); - } - - arithmeticOptimization_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Arithmetic optimizations (default is ON)
-     * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7; - */ - public Builder clearArithmeticOptimization() { - - arithmeticOptimization_ = 0; - onChanged(); - return this; - } - - private int dependencyOptimization_ = 0; - /** - *
-     * Control dependency optimizations (default is ON).
-     * Remove redundant control dependencies, which may enable other optimization.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle dependency_optimization = 8; - */ - public int getDependencyOptimizationValue() { - return dependencyOptimization_; - } - /** - *
-     * Control dependency optimizations (default is ON).
-     * Remove redundant control dependencies, which may enable other optimization.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle dependency_optimization = 8; - */ - public Builder setDependencyOptimizationValue(int value) { - dependencyOptimization_ = value; - onChanged(); - return this; - } - /** - *
-     * Control dependency optimizations (default is ON).
-     * Remove redundant control dependencies, which may enable other optimization.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle dependency_optimization = 8; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getDependencyOptimization() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(dependencyOptimization_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - /** - *
-     * Control dependency optimizations (default is ON).
-     * Remove redundant control dependencies, which may enable other optimization.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle dependency_optimization = 8; - */ - public Builder setDependencyOptimization(org.tensorflow.proto.framework.RewriterConfig.Toggle value) { - if (value == null) { - throw new NullPointerException(); - } - - dependencyOptimization_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Control dependency optimizations (default is ON).
-     * Remove redundant control dependencies, which may enable other optimization.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle dependency_optimization = 8; - */ - public Builder clearDependencyOptimization() { - - dependencyOptimization_ = 0; - onChanged(); - return this; - } - - private int loopOptimization_ = 0; - /** - *
-     * Loop optimizations (default is ON).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle loop_optimization = 9; - */ - public int getLoopOptimizationValue() { - return loopOptimization_; - } - /** - *
-     * Loop optimizations (default is ON).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle loop_optimization = 9; - */ - public Builder setLoopOptimizationValue(int value) { - loopOptimization_ = value; - onChanged(); - return this; - } - /** - *
-     * Loop optimizations (default is ON).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle loop_optimization = 9; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getLoopOptimization() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(loopOptimization_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - /** - *
-     * Loop optimizations (default is ON).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle loop_optimization = 9; - */ - public Builder setLoopOptimization(org.tensorflow.proto.framework.RewriterConfig.Toggle value) { - if (value == null) { - throw new NullPointerException(); - } - - loopOptimization_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Loop optimizations (default is ON).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle loop_optimization = 9; - */ - public Builder clearLoopOptimization() { - - loopOptimization_ = 0; - onChanged(); - return this; - } - - private int functionOptimization_ = 0; - /** - *
-     * Function optimizations (default is ON).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle function_optimization = 10; - */ - public int getFunctionOptimizationValue() { - return functionOptimization_; - } - /** - *
-     * Function optimizations (default is ON).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle function_optimization = 10; - */ - public Builder setFunctionOptimizationValue(int value) { - functionOptimization_ = value; - onChanged(); - return this; - } - /** - *
-     * Function optimizations (default is ON).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle function_optimization = 10; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getFunctionOptimization() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(functionOptimization_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - /** - *
-     * Function optimizations (default is ON).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle function_optimization = 10; - */ - public Builder setFunctionOptimization(org.tensorflow.proto.framework.RewriterConfig.Toggle value) { - if (value == null) { - throw new NullPointerException(); - } - - functionOptimization_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Function optimizations (default is ON).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle function_optimization = 10; - */ - public Builder clearFunctionOptimization() { - - functionOptimization_ = 0; - onChanged(); - return this; - } - - private int debugStripper_ = 0; - /** - *
-     * Strips debug-related nodes from the graph (off by default).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle debug_stripper = 11; - */ - public int getDebugStripperValue() { - return debugStripper_; - } - /** - *
-     * Strips debug-related nodes from the graph (off by default).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle debug_stripper = 11; - */ - public Builder setDebugStripperValue(int value) { - debugStripper_ = value; - onChanged(); - return this; - } - /** - *
-     * Strips debug-related nodes from the graph (off by default).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle debug_stripper = 11; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getDebugStripper() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(debugStripper_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - /** - *
-     * Strips debug-related nodes from the graph (off by default).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle debug_stripper = 11; - */ - public Builder setDebugStripper(org.tensorflow.proto.framework.RewriterConfig.Toggle value) { - if (value == null) { - throw new NullPointerException(); - } - - debugStripper_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Strips debug-related nodes from the graph (off by default).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle debug_stripper = 11; - */ - public Builder clearDebugStripper() { - - debugStripper_ = 0; - onChanged(); - return this; - } - - private boolean disableModelPruning_ ; - /** - *
-     * If true, don't remove unnecessary ops from the graph
-     * 
- * - * bool disable_model_pruning = 2; - */ - public boolean getDisableModelPruning() { - return disableModelPruning_; - } - /** - *
-     * If true, don't remove unnecessary ops from the graph
-     * 
- * - * bool disable_model_pruning = 2; - */ - public Builder setDisableModelPruning(boolean value) { - - disableModelPruning_ = value; - onChanged(); - return this; - } - /** - *
-     * If true, don't remove unnecessary ops from the graph
-     * 
- * - * bool disable_model_pruning = 2; - */ - public Builder clearDisableModelPruning() { - - disableModelPruning_ = false; - onChanged(); - return this; - } - - private int scopedAllocatorOptimization_ = 0; - /** - *
-     * Try to allocate some independent Op outputs contiguously in order to
-     * merge or eliminate downstream Ops (off by default).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15; - */ - public int getScopedAllocatorOptimizationValue() { - return scopedAllocatorOptimization_; - } - /** - *
-     * Try to allocate some independent Op outputs contiguously in order to
-     * merge or eliminate downstream Ops (off by default).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15; - */ - public Builder setScopedAllocatorOptimizationValue(int value) { - scopedAllocatorOptimization_ = value; - onChanged(); - return this; - } - /** - *
-     * Try to allocate some independent Op outputs contiguously in order to
-     * merge or eliminate downstream Ops (off by default).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getScopedAllocatorOptimization() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(scopedAllocatorOptimization_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - /** - *
-     * Try to allocate some independent Op outputs contiguously in order to
-     * merge or eliminate downstream Ops (off by default).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15; - */ - public Builder setScopedAllocatorOptimization(org.tensorflow.proto.framework.RewriterConfig.Toggle value) { - if (value == null) { - throw new NullPointerException(); - } - - scopedAllocatorOptimization_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Try to allocate some independent Op outputs contiguously in order to
-     * merge or eliminate downstream Ops (off by default).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15; - */ - public Builder clearScopedAllocatorOptimization() { - - scopedAllocatorOptimization_ = 0; - onChanged(); - return this; - } - - private int pinToHostOptimization_ = 0; - /** - *
-     * Force small ops onto the CPU (default is OFF).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18; - */ - public int getPinToHostOptimizationValue() { - return pinToHostOptimization_; - } - /** - *
-     * Force small ops onto the CPU (default is OFF).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18; - */ - public Builder setPinToHostOptimizationValue(int value) { - pinToHostOptimization_ = value; - onChanged(); - return this; - } - /** - *
-     * Force small ops onto the CPU (default is OFF).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getPinToHostOptimization() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(pinToHostOptimization_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - /** - *
-     * Force small ops onto the CPU (default is OFF).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18; - */ - public Builder setPinToHostOptimization(org.tensorflow.proto.framework.RewriterConfig.Toggle value) { - if (value == null) { - throw new NullPointerException(); - } - - pinToHostOptimization_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Force small ops onto the CPU (default is OFF).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18; - */ - public Builder clearPinToHostOptimization() { - - pinToHostOptimization_ = 0; - onChanged(); - return this; - } - - private int implementationSelector_ = 0; - /** - *
-     * Enable the swap of kernel implementations based on the device placement
-     * (default is ON).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle implementation_selector = 22; - */ - public int getImplementationSelectorValue() { - return implementationSelector_; - } - /** - *
-     * Enable the swap of kernel implementations based on the device placement
-     * (default is ON).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle implementation_selector = 22; - */ - public Builder setImplementationSelectorValue(int value) { - implementationSelector_ = value; - onChanged(); - return this; - } - /** - *
-     * Enable the swap of kernel implementations based on the device placement
-     * (default is ON).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle implementation_selector = 22; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getImplementationSelector() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(implementationSelector_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - /** - *
-     * Enable the swap of kernel implementations based on the device placement
-     * (default is ON).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle implementation_selector = 22; - */ - public Builder setImplementationSelector(org.tensorflow.proto.framework.RewriterConfig.Toggle value) { - if (value == null) { - throw new NullPointerException(); - } - - implementationSelector_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Enable the swap of kernel implementations based on the device placement
-     * (default is ON).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle implementation_selector = 22; - */ - public Builder clearImplementationSelector() { - - implementationSelector_ = 0; - onChanged(); - return this; - } - - private int autoMixedPrecision_ = 0; - /** - *
-     * Optimize data types for CUDA (default is OFF).
-     * This will try to use float16 on GPU which is faster.
-     * Note that this can change the numerical stability of the graph and may
-     * require the use of loss scaling to maintain model convergence.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision = 23; - */ - public int getAutoMixedPrecisionValue() { - return autoMixedPrecision_; - } - /** - *
-     * Optimize data types for CUDA (default is OFF).
-     * This will try to use float16 on GPU which is faster.
-     * Note that this can change the numerical stability of the graph and may
-     * require the use of loss scaling to maintain model convergence.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision = 23; - */ - public Builder setAutoMixedPrecisionValue(int value) { - autoMixedPrecision_ = value; - onChanged(); - return this; - } - /** - *
-     * Optimize data types for CUDA (default is OFF).
-     * This will try to use float16 on GPU which is faster.
-     * Note that this can change the numerical stability of the graph and may
-     * require the use of loss scaling to maintain model convergence.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision = 23; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getAutoMixedPrecision() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(autoMixedPrecision_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - /** - *
-     * Optimize data types for CUDA (default is OFF).
-     * This will try to use float16 on GPU which is faster.
-     * Note that this can change the numerical stability of the graph and may
-     * require the use of loss scaling to maintain model convergence.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision = 23; - */ - public Builder setAutoMixedPrecision(org.tensorflow.proto.framework.RewriterConfig.Toggle value) { - if (value == null) { - throw new NullPointerException(); - } - - autoMixedPrecision_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Optimize data types for CUDA (default is OFF).
-     * This will try to use float16 on GPU which is faster.
-     * Note that this can change the numerical stability of the graph and may
-     * require the use of loss scaling to maintain model convergence.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision = 23; - */ - public Builder clearAutoMixedPrecision() { - - autoMixedPrecision_ = 0; - onChanged(); - return this; - } - - private int autoMixedPrecisionMkl_ = 0; - /** - *
-     * Optimize data types for oneDNN (default is OFF).
-     * This will try to use bfloat16 on CPUs, which is faster.
-     * Note that this can change the numerical stability of the graph.
-     * Note: this is deprecated.
-     * It is replaced by auto_mixed_precision_onednn_bfloat16
-     * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_mkl = 25; - */ - public int getAutoMixedPrecisionMklValue() { - return autoMixedPrecisionMkl_; - } - /** - *
-     * Optimize data types for oneDNN (default is OFF).
-     * This will try to use bfloat16 on CPUs, which is faster.
-     * Note that this can change the numerical stability of the graph.
-     * Note: this is deprecated.
-     * It is replaced by auto_mixed_precision_onednn_bfloat16
-     * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_mkl = 25; - */ - public Builder setAutoMixedPrecisionMklValue(int value) { - autoMixedPrecisionMkl_ = value; - onChanged(); - return this; - } - /** - *
-     * Optimize data types for oneDNN (default is OFF).
-     * This will try to use bfloat16 on CPUs, which is faster.
-     * Note that this can change the numerical stability of the graph.
-     * Note: this is deprecated.
-     * It is replaced by auto_mixed_precision_onednn_bfloat16
-     * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_mkl = 25; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getAutoMixedPrecisionMkl() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(autoMixedPrecisionMkl_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - /** - *
-     * Optimize data types for oneDNN (default is OFF).
-     * This will try to use bfloat16 on CPUs, which is faster.
-     * Note that this can change the numerical stability of the graph.
-     * Note: this is deprecated.
-     * It is replaced by auto_mixed_precision_onednn_bfloat16
-     * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_mkl = 25; - */ - public Builder setAutoMixedPrecisionMkl(org.tensorflow.proto.framework.RewriterConfig.Toggle value) { - if (value == null) { - throw new NullPointerException(); - } - - autoMixedPrecisionMkl_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Optimize data types for oneDNN (default is OFF).
-     * This will try to use bfloat16 on CPUs, which is faster.
-     * Note that this can change the numerical stability of the graph.
-     * Note: this is deprecated.
-     * It is replaced by auto_mixed_precision_onednn_bfloat16
-     * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_mkl = 25; - */ - public Builder clearAutoMixedPrecisionMkl() { - - autoMixedPrecisionMkl_ = 0; - onChanged(); - return this; - } - - private int autoMixedPrecisionOnednnBfloat16_ = 0; - /** - *
-     * Optimize data types for oneDNN (default is OFF).
-     * This will try to use bfloat16 on CPUs, which is faster.
-     * Note that this can change the numerical stability of the graph.
-     * Note: this is equivalent to the deprecated option auto_mixed_precision_mkl
-     * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_onednn_bfloat16 = 31; - */ - public int getAutoMixedPrecisionOnednnBfloat16Value() { - return autoMixedPrecisionOnednnBfloat16_; - } - /** - *
-     * Optimize data types for oneDNN (default is OFF).
-     * This will try to use bfloat16 on CPUs, which is faster.
-     * Note that this can change the numerical stability of the graph.
-     * Note: this is equivalent to the deprecated option auto_mixed_precision_mkl
-     * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_onednn_bfloat16 = 31; - */ - public Builder setAutoMixedPrecisionOnednnBfloat16Value(int value) { - autoMixedPrecisionOnednnBfloat16_ = value; - onChanged(); - return this; - } - /** - *
-     * Optimize data types for oneDNN (default is OFF).
-     * This will try to use bfloat16 on CPUs, which is faster.
-     * Note that this can change the numerical stability of the graph.
-     * Note: this is equivalent to the deprecated option auto_mixed_precision_mkl
-     * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_onednn_bfloat16 = 31; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getAutoMixedPrecisionOnednnBfloat16() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(autoMixedPrecisionOnednnBfloat16_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - /** - *
-     * Optimize data types for oneDNN (default is OFF).
-     * This will try to use bfloat16 on CPUs, which is faster.
-     * Note that this can change the numerical stability of the graph.
-     * Note: this is equivalent to the deprecated option auto_mixed_precision_mkl
-     * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_onednn_bfloat16 = 31; - */ - public Builder setAutoMixedPrecisionOnednnBfloat16(org.tensorflow.proto.framework.RewriterConfig.Toggle value) { - if (value == null) { - throw new NullPointerException(); - } - - autoMixedPrecisionOnednnBfloat16_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Optimize data types for oneDNN (default is OFF).
-     * This will try to use bfloat16 on CPUs, which is faster.
-     * Note that this can change the numerical stability of the graph.
-     * Note: this is equivalent to the deprecated option auto_mixed_precision_mkl
-     * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_onednn_bfloat16 = 31; - */ - public Builder clearAutoMixedPrecisionOnednnBfloat16() { - - autoMixedPrecisionOnednnBfloat16_ = 0; - onChanged(); - return this; - } - - private int autoMixedPrecisionCpu_ = 0; - /** - *
-     * Emulate a model using data type float16 on CPU (default is OFF).
-     * This will try to emulate the float16 inputs and outputs of an operator
-     * on CPU to have better correlation with float16 on GPU; however the
-     * computation in the operator is based on float32.
-     * Note that this can change the numerical stability of the graph.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_cpu = 29; - */ - public int getAutoMixedPrecisionCpuValue() { - return autoMixedPrecisionCpu_; - } - /** - *
-     * Emulate a model using data type float16 on CPU (default is OFF).
-     * This will try to emulate the float16 inputs and outputs of an operator
-     * on CPU to have better correlation with float16 on GPU; however the
-     * computation in the operator is based on float32.
-     * Note that this can change the numerical stability of the graph.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_cpu = 29; - */ - public Builder setAutoMixedPrecisionCpuValue(int value) { - autoMixedPrecisionCpu_ = value; - onChanged(); - return this; - } - /** - *
-     * Emulate a model using data type float16 on CPU (default is OFF).
-     * This will try to emulate the float16 inputs and outputs of an operator
-     * on CPU to have better correlation with float16 on GPU; however the
-     * computation in the operator is based on float32.
-     * Note that this can change the numerical stability of the graph.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_cpu = 29; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getAutoMixedPrecisionCpu() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(autoMixedPrecisionCpu_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - /** - *
-     * Emulate a model using data type float16 on CPU (default is OFF).
-     * This will try to emulate the float16 inputs and outputs of an operator
-     * on CPU to have better correlation with float16 on GPU; however the
-     * computation in the operator is based on float32.
-     * Note that this can change the numerical stability of the graph.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_cpu = 29; - */ - public Builder setAutoMixedPrecisionCpu(org.tensorflow.proto.framework.RewriterConfig.Toggle value) { - if (value == null) { - throw new NullPointerException(); - } - - autoMixedPrecisionCpu_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Emulate a model using data type float16 on CPU (default is OFF).
-     * This will try to emulate the float16 inputs and outputs of an operator
-     * on CPU to have better correlation with float16 on GPU; however the
-     * computation in the operator is based on float32.
-     * Note that this can change the numerical stability of the graph.
-     * 
- * - * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_cpu = 29; - */ - public Builder clearAutoMixedPrecisionCpu() { - - autoMixedPrecisionCpu_ = 0; - onChanged(); - return this; - } - - private boolean disableMetaOptimizer_ ; - /** - *
-     * Disable the entire meta optimizer (off by default).
-     * 
- * - * bool disable_meta_optimizer = 19; - */ - public boolean getDisableMetaOptimizer() { - return disableMetaOptimizer_; - } - /** - *
-     * Disable the entire meta optimizer (off by default).
-     * 
- * - * bool disable_meta_optimizer = 19; - */ - public Builder setDisableMetaOptimizer(boolean value) { - - disableMetaOptimizer_ = value; - onChanged(); - return this; - } - /** - *
-     * Disable the entire meta optimizer (off by default).
-     * 
- * - * bool disable_meta_optimizer = 19; - */ - public Builder clearDisableMetaOptimizer() { - - disableMetaOptimizer_ = false; - onChanged(); - return this; - } - - private int usePluginOptimizers_ = 0; - /** - *
-     * Optimizers registered by plugin (default is ON)
-     * 
- * - * .tensorflow.RewriterConfig.Toggle use_plugin_optimizers = 28; - */ - public int getUsePluginOptimizersValue() { - return usePluginOptimizers_; - } - /** - *
-     * Optimizers registered by plugin (default is ON)
-     * 
- * - * .tensorflow.RewriterConfig.Toggle use_plugin_optimizers = 28; - */ - public Builder setUsePluginOptimizersValue(int value) { - usePluginOptimizers_ = value; - onChanged(); - return this; - } - /** - *
-     * Optimizers registered by plugin (default is ON)
-     * 
- * - * .tensorflow.RewriterConfig.Toggle use_plugin_optimizers = 28; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getUsePluginOptimizers() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(usePluginOptimizers_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - /** - *
-     * Optimizers registered by plugin (default is ON)
-     * 
- * - * .tensorflow.RewriterConfig.Toggle use_plugin_optimizers = 28; - */ - public Builder setUsePluginOptimizers(org.tensorflow.proto.framework.RewriterConfig.Toggle value) { - if (value == null) { - throw new NullPointerException(); - } - - usePluginOptimizers_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Optimizers registered by plugin (default is ON)
-     * 
- * - * .tensorflow.RewriterConfig.Toggle use_plugin_optimizers = 28; - */ - public Builder clearUsePluginOptimizers() { - - usePluginOptimizers_ = 0; - onChanged(); - return this; - } - - private int experimentalConditionalCodeMotion_ = 0; - /** - *
-     * Conditional code motion (default is ON).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle experimental_conditional_code_motion = 30; - */ - public int getExperimentalConditionalCodeMotionValue() { - return experimentalConditionalCodeMotion_; - } - /** - *
-     * Conditional code motion (default is ON).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle experimental_conditional_code_motion = 30; - */ - public Builder setExperimentalConditionalCodeMotionValue(int value) { - experimentalConditionalCodeMotion_ = value; - onChanged(); - return this; - } - /** - *
-     * Conditional code motion (default is ON).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle experimental_conditional_code_motion = 30; - */ - public org.tensorflow.proto.framework.RewriterConfig.Toggle getExperimentalConditionalCodeMotion() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.Toggle result = org.tensorflow.proto.framework.RewriterConfig.Toggle.valueOf(experimentalConditionalCodeMotion_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.Toggle.UNRECOGNIZED : result; - } - /** - *
-     * Conditional code motion (default is ON).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle experimental_conditional_code_motion = 30; - */ - public Builder setExperimentalConditionalCodeMotion(org.tensorflow.proto.framework.RewriterConfig.Toggle value) { - if (value == null) { - throw new NullPointerException(); - } - - experimentalConditionalCodeMotion_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Conditional code motion (default is ON).
-     * 
- * - * .tensorflow.RewriterConfig.Toggle experimental_conditional_code_motion = 30; - */ - public Builder clearExperimentalConditionalCodeMotion() { - - experimentalConditionalCodeMotion_ = 0; - onChanged(); - return this; - } - - private int metaOptimizerIterations_ = 0; - /** - *
-     * Controls how many times we run the optimizers in meta optimizer (default
-     * is once).
-     * 
- * - * .tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12; - */ - public int getMetaOptimizerIterationsValue() { - return metaOptimizerIterations_; - } - /** - *
-     * Controls how many times we run the optimizers in meta optimizer (default
-     * is once).
-     * 
- * - * .tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12; - */ - public Builder setMetaOptimizerIterationsValue(int value) { - metaOptimizerIterations_ = value; - onChanged(); - return this; - } - /** - *
-     * Controls how many times we run the optimizers in meta optimizer (default
-     * is once).
-     * 
- * - * .tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12; - */ - public org.tensorflow.proto.framework.RewriterConfig.NumIterationsType getMetaOptimizerIterations() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.NumIterationsType result = org.tensorflow.proto.framework.RewriterConfig.NumIterationsType.valueOf(metaOptimizerIterations_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.NumIterationsType.UNRECOGNIZED : result; - } - /** - *
-     * Controls how many times we run the optimizers in meta optimizer (default
-     * is once).
-     * 
- * - * .tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12; - */ - public Builder setMetaOptimizerIterations(org.tensorflow.proto.framework.RewriterConfig.NumIterationsType value) { - if (value == null) { - throw new NullPointerException(); - } - - metaOptimizerIterations_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Controls how many times we run the optimizers in meta optimizer (default
-     * is once).
-     * 
- * - * .tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12; - */ - public Builder clearMetaOptimizerIterations() { - - metaOptimizerIterations_ = 0; - onChanged(); - return this; - } - - private int minGraphNodes_ ; - /** - *
-     * The minimum number of nodes in a graph to optimizer. For smaller graphs,
-     * optimization is skipped.
-     * 0 means the system picks an appropriate number.
-     * < 0 means do not skip optimization.
-     * 
- * - * int32 min_graph_nodes = 17; - */ - public int getMinGraphNodes() { - return minGraphNodes_; - } - /** - *
-     * The minimum number of nodes in a graph to optimizer. For smaller graphs,
-     * optimization is skipped.
-     * 0 means the system picks an appropriate number.
-     * < 0 means do not skip optimization.
-     * 
- * - * int32 min_graph_nodes = 17; - */ - public Builder setMinGraphNodes(int value) { - - minGraphNodes_ = value; - onChanged(); - return this; - } - /** - *
-     * The minimum number of nodes in a graph to optimizer. For smaller graphs,
-     * optimization is skipped.
-     * 0 means the system picks an appropriate number.
-     * < 0 means do not skip optimization.
-     * 
- * - * int32 min_graph_nodes = 17; - */ - public Builder clearMinGraphNodes() { - - minGraphNodes_ = 0; - onChanged(); - return this; - } - - private boolean experimentalDisableCompressedTensorOptimization_ ; - /** - *
-     * Disable optimizations that assume compressed tensors. Note that this flag
-     * is experimental and may be removed in the future.
-     * 
- * - * bool experimental_disable_compressed_tensor_optimization = 26; - */ - public boolean getExperimentalDisableCompressedTensorOptimization() { - return experimentalDisableCompressedTensorOptimization_; - } - /** - *
-     * Disable optimizations that assume compressed tensors. Note that this flag
-     * is experimental and may be removed in the future.
-     * 
- * - * bool experimental_disable_compressed_tensor_optimization = 26; - */ - public Builder setExperimentalDisableCompressedTensorOptimization(boolean value) { - - experimentalDisableCompressedTensorOptimization_ = value; - onChanged(); - return this; - } - /** - *
-     * Disable optimizations that assume compressed tensors. Note that this flag
-     * is experimental and may be removed in the future.
-     * 
- * - * bool experimental_disable_compressed_tensor_optimization = 26; - */ - public Builder clearExperimentalDisableCompressedTensorOptimization() { - - experimentalDisableCompressedTensorOptimization_ = false; - onChanged(); - return this; - } - - private boolean experimentalDisableFoldingQuantizationEmulation_ ; - /** - *
-     * Disable folding quantization emulation ops such as FakeQuantWithMinMax* and
-     * QuantizeAndDequantize*. Some compilers (e.g. the TF-to-tflite converter)
-     * have to extract quantization configs (e.g. min/max range, number of bits,
-     * and per-channel) from the quantization emulation ops. Note that this flag
-     * is experimental and may be removed in the future. See b/174138564 for more
-     * details.
-     * 
- * - * bool experimental_disable_folding_quantization_emulation = 27; - */ - public boolean getExperimentalDisableFoldingQuantizationEmulation() { - return experimentalDisableFoldingQuantizationEmulation_; - } - /** - *
-     * Disable folding quantization emulation ops such as FakeQuantWithMinMax* and
-     * QuantizeAndDequantize*. Some compilers (e.g. the TF-to-tflite converter)
-     * have to extract quantization configs (e.g. min/max range, number of bits,
-     * and per-channel) from the quantization emulation ops. Note that this flag
-     * is experimental and may be removed in the future. See b/174138564 for more
-     * details.
-     * 
- * - * bool experimental_disable_folding_quantization_emulation = 27; - */ - public Builder setExperimentalDisableFoldingQuantizationEmulation(boolean value) { - - experimentalDisableFoldingQuantizationEmulation_ = value; - onChanged(); - return this; - } - /** - *
-     * Disable folding quantization emulation ops such as FakeQuantWithMinMax* and
-     * QuantizeAndDequantize*. Some compilers (e.g. the TF-to-tflite converter)
-     * have to extract quantization configs (e.g. min/max range, number of bits,
-     * and per-channel) from the quantization emulation ops. Note that this flag
-     * is experimental and may be removed in the future. See b/174138564 for more
-     * details.
-     * 
- * - * bool experimental_disable_folding_quantization_emulation = 27; - */ - public Builder clearExperimentalDisableFoldingQuantizationEmulation() { - - experimentalDisableFoldingQuantizationEmulation_ = false; - onChanged(); - return this; - } - - private int memoryOptimization_ = 0; - /** - *
-     * Configures memory optimization passes through the meta-optimizer. Has no
-     * effect on manually requested memory optimization passes in the optimizers
-     * field.
-     * 
- * - * .tensorflow.RewriterConfig.MemOptType memory_optimization = 4; - */ - public int getMemoryOptimizationValue() { - return memoryOptimization_; - } - /** - *
-     * Configures memory optimization passes through the meta-optimizer. Has no
-     * effect on manually requested memory optimization passes in the optimizers
-     * field.
-     * 
- * - * .tensorflow.RewriterConfig.MemOptType memory_optimization = 4; - */ - public Builder setMemoryOptimizationValue(int value) { - memoryOptimization_ = value; - onChanged(); - return this; - } - /** - *
-     * Configures memory optimization passes through the meta-optimizer. Has no
-     * effect on manually requested memory optimization passes in the optimizers
-     * field.
-     * 
- * - * .tensorflow.RewriterConfig.MemOptType memory_optimization = 4; - */ - public org.tensorflow.proto.framework.RewriterConfig.MemOptType getMemoryOptimization() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RewriterConfig.MemOptType result = org.tensorflow.proto.framework.RewriterConfig.MemOptType.valueOf(memoryOptimization_); - return result == null ? org.tensorflow.proto.framework.RewriterConfig.MemOptType.UNRECOGNIZED : result; - } - /** - *
-     * Configures memory optimization passes through the meta-optimizer. Has no
-     * effect on manually requested memory optimization passes in the optimizers
-     * field.
-     * 
- * - * .tensorflow.RewriterConfig.MemOptType memory_optimization = 4; - */ - public Builder setMemoryOptimization(org.tensorflow.proto.framework.RewriterConfig.MemOptType value) { - if (value == null) { - throw new NullPointerException(); - } - - memoryOptimization_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Configures memory optimization passes through the meta-optimizer. Has no
-     * effect on manually requested memory optimization passes in the optimizers
-     * field.
-     * 
- * - * .tensorflow.RewriterConfig.MemOptType memory_optimization = 4; - */ - public Builder clearMemoryOptimization() { - - memoryOptimization_ = 0; - onChanged(); - return this; - } - - private java.lang.Object memoryOptimizerTargetNodeNameScope_ = ""; - /** - *
-     * A node name scope for node names which are valid outputs of recomputations.
-     * Inputs to nodes that match this scope may be recomputed (subject either to
-     * manual annotation of those input nodes or to manual annotation and
-     * heuristics depending on memory_optimization), but the nodes themselves will
-     * not be recomputed. This matches any sub-scopes as well, meaning the scope
-     * can appear not just as a top-level scope. For example, if the value is
-     * "gradients/", the default, it will match node name "gradients/foo",
-     * "foo/gradients/bar", but not "foo_gradients/"
-     * 
- * - * string memory_optimizer_target_node_name_scope = 6; - */ - public java.lang.String getMemoryOptimizerTargetNodeNameScope() { - java.lang.Object ref = memoryOptimizerTargetNodeNameScope_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - memoryOptimizerTargetNodeNameScope_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A node name scope for node names which are valid outputs of recomputations.
-     * Inputs to nodes that match this scope may be recomputed (subject either to
-     * manual annotation of those input nodes or to manual annotation and
-     * heuristics depending on memory_optimization), but the nodes themselves will
-     * not be recomputed. This matches any sub-scopes as well, meaning the scope
-     * can appear not just as a top-level scope. For example, if the value is
-     * "gradients/", the default, it will match node name "gradients/foo",
-     * "foo/gradients/bar", but not "foo_gradients/"
-     * 
- * - * string memory_optimizer_target_node_name_scope = 6; - */ - public com.google.protobuf.ByteString - getMemoryOptimizerTargetNodeNameScopeBytes() { - java.lang.Object ref = memoryOptimizerTargetNodeNameScope_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - memoryOptimizerTargetNodeNameScope_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A node name scope for node names which are valid outputs of recomputations.
-     * Inputs to nodes that match this scope may be recomputed (subject either to
-     * manual annotation of those input nodes or to manual annotation and
-     * heuristics depending on memory_optimization), but the nodes themselves will
-     * not be recomputed. This matches any sub-scopes as well, meaning the scope
-     * can appear not just as a top-level scope. For example, if the value is
-     * "gradients/", the default, it will match node name "gradients/foo",
-     * "foo/gradients/bar", but not "foo_gradients/"
-     * 
- * - * string memory_optimizer_target_node_name_scope = 6; - */ - public Builder setMemoryOptimizerTargetNodeNameScope( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - memoryOptimizerTargetNodeNameScope_ = value; - onChanged(); - return this; - } - /** - *
-     * A node name scope for node names which are valid outputs of recomputations.
-     * Inputs to nodes that match this scope may be recomputed (subject either to
-     * manual annotation of those input nodes or to manual annotation and
-     * heuristics depending on memory_optimization), but the nodes themselves will
-     * not be recomputed. This matches any sub-scopes as well, meaning the scope
-     * can appear not just as a top-level scope. For example, if the value is
-     * "gradients/", the default, it will match node name "gradients/foo",
-     * "foo/gradients/bar", but not "foo_gradients/"
-     * 
- * - * string memory_optimizer_target_node_name_scope = 6; - */ - public Builder clearMemoryOptimizerTargetNodeNameScope() { - - memoryOptimizerTargetNodeNameScope_ = getDefaultInstance().getMemoryOptimizerTargetNodeNameScope(); - onChanged(); - return this; - } - /** - *
-     * A node name scope for node names which are valid outputs of recomputations.
-     * Inputs to nodes that match this scope may be recomputed (subject either to
-     * manual annotation of those input nodes or to manual annotation and
-     * heuristics depending on memory_optimization), but the nodes themselves will
-     * not be recomputed. This matches any sub-scopes as well, meaning the scope
-     * can appear not just as a top-level scope. For example, if the value is
-     * "gradients/", the default, it will match node name "gradients/foo",
-     * "foo/gradients/bar", but not "foo_gradients/"
-     * 
- * - * string memory_optimizer_target_node_name_scope = 6; - */ - public Builder setMemoryOptimizerTargetNodeNameScopeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - memoryOptimizerTargetNodeNameScope_ = value; - onChanged(); - return this; - } - - private long metaOptimizerTimeoutMs_ ; - /** - *
-     * Maximum number of milliseconds to spend optimizing a single graph before
-     * timing out. If less than or equal to 0 (default value) the optimizer will
-     * never time out.
-     * 
- * - * int64 meta_optimizer_timeout_ms = 20; - */ - public long getMetaOptimizerTimeoutMs() { - return metaOptimizerTimeoutMs_; - } - /** - *
-     * Maximum number of milliseconds to spend optimizing a single graph before
-     * timing out. If less than or equal to 0 (default value) the optimizer will
-     * never time out.
-     * 
- * - * int64 meta_optimizer_timeout_ms = 20; - */ - public Builder setMetaOptimizerTimeoutMs(long value) { - - metaOptimizerTimeoutMs_ = value; - onChanged(); - return this; - } - /** - *
-     * Maximum number of milliseconds to spend optimizing a single graph before
-     * timing out. If less than or equal to 0 (default value) the optimizer will
-     * never time out.
-     * 
- * - * int64 meta_optimizer_timeout_ms = 20; - */ - public Builder clearMetaOptimizerTimeoutMs() { - - metaOptimizerTimeoutMs_ = 0L; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.AutoParallelOptions autoParallel_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.AutoParallelOptions, org.tensorflow.proto.framework.AutoParallelOptions.Builder, org.tensorflow.proto.framework.AutoParallelOptionsOrBuilder> autoParallelBuilder_; - /** - *
-     * Configures AutoParallel optimization passes either through the
-     * meta-optimizer or when manually specified through the optimizers field.
-     * 
- * - * .tensorflow.AutoParallelOptions auto_parallel = 5; - */ - public boolean hasAutoParallel() { - return autoParallelBuilder_ != null || autoParallel_ != null; - } - /** - *
-     * Configures AutoParallel optimization passes either through the
-     * meta-optimizer or when manually specified through the optimizers field.
-     * 
- * - * .tensorflow.AutoParallelOptions auto_parallel = 5; - */ - public org.tensorflow.proto.framework.AutoParallelOptions getAutoParallel() { - if (autoParallelBuilder_ == null) { - return autoParallel_ == null ? org.tensorflow.proto.framework.AutoParallelOptions.getDefaultInstance() : autoParallel_; - } else { - return autoParallelBuilder_.getMessage(); - } - } - /** - *
-     * Configures AutoParallel optimization passes either through the
-     * meta-optimizer or when manually specified through the optimizers field.
-     * 
- * - * .tensorflow.AutoParallelOptions auto_parallel = 5; - */ - public Builder setAutoParallel(org.tensorflow.proto.framework.AutoParallelOptions value) { - if (autoParallelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autoParallel_ = value; - onChanged(); - } else { - autoParallelBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Configures AutoParallel optimization passes either through the
-     * meta-optimizer or when manually specified through the optimizers field.
-     * 
- * - * .tensorflow.AutoParallelOptions auto_parallel = 5; - */ - public Builder setAutoParallel( - org.tensorflow.proto.framework.AutoParallelOptions.Builder builderForValue) { - if (autoParallelBuilder_ == null) { - autoParallel_ = builderForValue.build(); - onChanged(); - } else { - autoParallelBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Configures AutoParallel optimization passes either through the
-     * meta-optimizer or when manually specified through the optimizers field.
-     * 
- * - * .tensorflow.AutoParallelOptions auto_parallel = 5; - */ - public Builder mergeAutoParallel(org.tensorflow.proto.framework.AutoParallelOptions value) { - if (autoParallelBuilder_ == null) { - if (autoParallel_ != null) { - autoParallel_ = - org.tensorflow.proto.framework.AutoParallelOptions.newBuilder(autoParallel_).mergeFrom(value).buildPartial(); - } else { - autoParallel_ = value; - } - onChanged(); - } else { - autoParallelBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Configures AutoParallel optimization passes either through the
-     * meta-optimizer or when manually specified through the optimizers field.
-     * 
- * - * .tensorflow.AutoParallelOptions auto_parallel = 5; - */ - public Builder clearAutoParallel() { - if (autoParallelBuilder_ == null) { - autoParallel_ = null; - onChanged(); - } else { - autoParallel_ = null; - autoParallelBuilder_ = null; - } - - return this; - } - /** - *
-     * Configures AutoParallel optimization passes either through the
-     * meta-optimizer or when manually specified through the optimizers field.
-     * 
- * - * .tensorflow.AutoParallelOptions auto_parallel = 5; - */ - public org.tensorflow.proto.framework.AutoParallelOptions.Builder getAutoParallelBuilder() { - - onChanged(); - return getAutoParallelFieldBuilder().getBuilder(); - } - /** - *
-     * Configures AutoParallel optimization passes either through the
-     * meta-optimizer or when manually specified through the optimizers field.
-     * 
- * - * .tensorflow.AutoParallelOptions auto_parallel = 5; - */ - public org.tensorflow.proto.framework.AutoParallelOptionsOrBuilder getAutoParallelOrBuilder() { - if (autoParallelBuilder_ != null) { - return autoParallelBuilder_.getMessageOrBuilder(); - } else { - return autoParallel_ == null ? - org.tensorflow.proto.framework.AutoParallelOptions.getDefaultInstance() : autoParallel_; - } - } - /** - *
-     * Configures AutoParallel optimization passes either through the
-     * meta-optimizer or when manually specified through the optimizers field.
-     * 
- * - * .tensorflow.AutoParallelOptions auto_parallel = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.AutoParallelOptions, org.tensorflow.proto.framework.AutoParallelOptions.Builder, org.tensorflow.proto.framework.AutoParallelOptionsOrBuilder> - getAutoParallelFieldBuilder() { - if (autoParallelBuilder_ == null) { - autoParallelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.AutoParallelOptions, org.tensorflow.proto.framework.AutoParallelOptions.Builder, org.tensorflow.proto.framework.AutoParallelOptionsOrBuilder>( - getAutoParallel(), - getParentForChildren(), - isClean()); - autoParallel_ = null; - } - return autoParallelBuilder_; - } - - private boolean failOnOptimizerErrors_ ; - /** - *
-     * If true, any optimization pass failing will cause the MetaOptimizer to
-     * stop with an error. By default - or when set to false, failing passes are
-     * skipped silently.
-     * 
- * - * bool fail_on_optimizer_errors = 21; - */ - public boolean getFailOnOptimizerErrors() { - return failOnOptimizerErrors_; - } - /** - *
-     * If true, any optimization pass failing will cause the MetaOptimizer to
-     * stop with an error. By default - or when set to false, failing passes are
-     * skipped silently.
-     * 
- * - * bool fail_on_optimizer_errors = 21; - */ - public Builder setFailOnOptimizerErrors(boolean value) { - - failOnOptimizerErrors_ = value; - onChanged(); - return this; - } - /** - *
-     * If true, any optimization pass failing will cause the MetaOptimizer to
-     * stop with an error. By default - or when set to false, failing passes are
-     * skipped silently.
-     * 
- * - * bool fail_on_optimizer_errors = 21; - */ - public Builder clearFailOnOptimizerErrors() { - - failOnOptimizerErrors_ = false; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.ScopedAllocatorOptions scopedAllocatorOpts_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.ScopedAllocatorOptions, org.tensorflow.proto.framework.ScopedAllocatorOptions.Builder, org.tensorflow.proto.framework.ScopedAllocatorOptionsOrBuilder> scopedAllocatorOptsBuilder_; - /** - * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; - */ - public boolean hasScopedAllocatorOpts() { - return scopedAllocatorOptsBuilder_ != null || scopedAllocatorOpts_ != null; - } - /** - * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; - */ - public org.tensorflow.proto.framework.ScopedAllocatorOptions getScopedAllocatorOpts() { - if (scopedAllocatorOptsBuilder_ == null) { - return scopedAllocatorOpts_ == null ? org.tensorflow.proto.framework.ScopedAllocatorOptions.getDefaultInstance() : scopedAllocatorOpts_; - } else { - return scopedAllocatorOptsBuilder_.getMessage(); - } - } - /** - * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; - */ - public Builder setScopedAllocatorOpts(org.tensorflow.proto.framework.ScopedAllocatorOptions value) { - if (scopedAllocatorOptsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scopedAllocatorOpts_ = value; - onChanged(); - } else { - scopedAllocatorOptsBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; - */ - public Builder setScopedAllocatorOpts( - org.tensorflow.proto.framework.ScopedAllocatorOptions.Builder builderForValue) { - if (scopedAllocatorOptsBuilder_ == null) { - scopedAllocatorOpts_ = builderForValue.build(); - onChanged(); - } else { - scopedAllocatorOptsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; - */ - public Builder mergeScopedAllocatorOpts(org.tensorflow.proto.framework.ScopedAllocatorOptions value) { - if (scopedAllocatorOptsBuilder_ == null) { - if (scopedAllocatorOpts_ != null) { - scopedAllocatorOpts_ = - org.tensorflow.proto.framework.ScopedAllocatorOptions.newBuilder(scopedAllocatorOpts_).mergeFrom(value).buildPartial(); - } else { - scopedAllocatorOpts_ = value; - } - onChanged(); - } else { - scopedAllocatorOptsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; - */ - public Builder clearScopedAllocatorOpts() { - if (scopedAllocatorOptsBuilder_ == null) { - scopedAllocatorOpts_ = null; - onChanged(); - } else { - scopedAllocatorOpts_ = null; - scopedAllocatorOptsBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; - */ - public org.tensorflow.proto.framework.ScopedAllocatorOptions.Builder getScopedAllocatorOptsBuilder() { - - onChanged(); - return getScopedAllocatorOptsFieldBuilder().getBuilder(); - } - /** - * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; - */ - public org.tensorflow.proto.framework.ScopedAllocatorOptionsOrBuilder getScopedAllocatorOptsOrBuilder() { - if (scopedAllocatorOptsBuilder_ != null) { - return scopedAllocatorOptsBuilder_.getMessageOrBuilder(); - } else { - return scopedAllocatorOpts_ == null ? - org.tensorflow.proto.framework.ScopedAllocatorOptions.getDefaultInstance() : scopedAllocatorOpts_; - } - } - /** - * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.ScopedAllocatorOptions, org.tensorflow.proto.framework.ScopedAllocatorOptions.Builder, org.tensorflow.proto.framework.ScopedAllocatorOptionsOrBuilder> - getScopedAllocatorOptsFieldBuilder() { - if (scopedAllocatorOptsBuilder_ == null) { - scopedAllocatorOptsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.ScopedAllocatorOptions, org.tensorflow.proto.framework.ScopedAllocatorOptions.Builder, org.tensorflow.proto.framework.ScopedAllocatorOptionsOrBuilder>( - getScopedAllocatorOpts(), - getParentForChildren(), - isClean()); - scopedAllocatorOpts_ = null; - } - return scopedAllocatorOptsBuilder_; - } - - private com.google.protobuf.LazyStringList optimizers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureOptimizersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - optimizers_ = new com.google.protobuf.LazyStringArrayList(optimizers_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * If non-empty, will use this as an alternative way to specify a list of
-     * optimizations to turn on and the order of the optimizations (replacing the
-     * meta-optimizer).
-     * Of the RewriterConfig options, only the AutoParallel configuration options
-     * (the auto_parallel field) apply to manually requested optimization passes
-     * ("autoparallel"). Memory optimization passes ("memory") invoked here are
-     * not configurable (in contrast to memory optimization passes through the
-     * meta-optimizer) and act only on manual op annotations.
-     * Custom optimizers (see custom_optimizers) that are not part of this
-     * schedule will be run after - in the order that they were specified.
-     * 
- * - * repeated string optimizers = 100; - */ - public com.google.protobuf.ProtocolStringList - getOptimizersList() { - return optimizers_.getUnmodifiableView(); - } - /** - *
-     * If non-empty, will use this as an alternative way to specify a list of
-     * optimizations to turn on and the order of the optimizations (replacing the
-     * meta-optimizer).
-     * Of the RewriterConfig options, only the AutoParallel configuration options
-     * (the auto_parallel field) apply to manually requested optimization passes
-     * ("autoparallel"). Memory optimization passes ("memory") invoked here are
-     * not configurable (in contrast to memory optimization passes through the
-     * meta-optimizer) and act only on manual op annotations.
-     * Custom optimizers (see custom_optimizers) that are not part of this
-     * schedule will be run after - in the order that they were specified.
-     * 
- * - * repeated string optimizers = 100; - */ - public int getOptimizersCount() { - return optimizers_.size(); - } - /** - *
-     * If non-empty, will use this as an alternative way to specify a list of
-     * optimizations to turn on and the order of the optimizations (replacing the
-     * meta-optimizer).
-     * Of the RewriterConfig options, only the AutoParallel configuration options
-     * (the auto_parallel field) apply to manually requested optimization passes
-     * ("autoparallel"). Memory optimization passes ("memory") invoked here are
-     * not configurable (in contrast to memory optimization passes through the
-     * meta-optimizer) and act only on manual op annotations.
-     * Custom optimizers (see custom_optimizers) that are not part of this
-     * schedule will be run after - in the order that they were specified.
-     * 
- * - * repeated string optimizers = 100; - */ - public java.lang.String getOptimizers(int index) { - return optimizers_.get(index); - } - /** - *
-     * If non-empty, will use this as an alternative way to specify a list of
-     * optimizations to turn on and the order of the optimizations (replacing the
-     * meta-optimizer).
-     * Of the RewriterConfig options, only the AutoParallel configuration options
-     * (the auto_parallel field) apply to manually requested optimization passes
-     * ("autoparallel"). Memory optimization passes ("memory") invoked here are
-     * not configurable (in contrast to memory optimization passes through the
-     * meta-optimizer) and act only on manual op annotations.
-     * Custom optimizers (see custom_optimizers) that are not part of this
-     * schedule will be run after - in the order that they were specified.
-     * 
- * - * repeated string optimizers = 100; - */ - public com.google.protobuf.ByteString - getOptimizersBytes(int index) { - return optimizers_.getByteString(index); - } - /** - *
-     * If non-empty, will use this as an alternative way to specify a list of
-     * optimizations to turn on and the order of the optimizations (replacing the
-     * meta-optimizer).
-     * Of the RewriterConfig options, only the AutoParallel configuration options
-     * (the auto_parallel field) apply to manually requested optimization passes
-     * ("autoparallel"). Memory optimization passes ("memory") invoked here are
-     * not configurable (in contrast to memory optimization passes through the
-     * meta-optimizer) and act only on manual op annotations.
-     * Custom optimizers (see custom_optimizers) that are not part of this
-     * schedule will be run after - in the order that they were specified.
-     * 
- * - * repeated string optimizers = 100; - */ - public Builder setOptimizers( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptimizersIsMutable(); - optimizers_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * If non-empty, will use this as an alternative way to specify a list of
-     * optimizations to turn on and the order of the optimizations (replacing the
-     * meta-optimizer).
-     * Of the RewriterConfig options, only the AutoParallel configuration options
-     * (the auto_parallel field) apply to manually requested optimization passes
-     * ("autoparallel"). Memory optimization passes ("memory") invoked here are
-     * not configurable (in contrast to memory optimization passes through the
-     * meta-optimizer) and act only on manual op annotations.
-     * Custom optimizers (see custom_optimizers) that are not part of this
-     * schedule will be run after - in the order that they were specified.
-     * 
- * - * repeated string optimizers = 100; - */ - public Builder addOptimizers( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOptimizersIsMutable(); - optimizers_.add(value); - onChanged(); - return this; - } - /** - *
-     * If non-empty, will use this as an alternative way to specify a list of
-     * optimizations to turn on and the order of the optimizations (replacing the
-     * meta-optimizer).
-     * Of the RewriterConfig options, only the AutoParallel configuration options
-     * (the auto_parallel field) apply to manually requested optimization passes
-     * ("autoparallel"). Memory optimization passes ("memory") invoked here are
-     * not configurable (in contrast to memory optimization passes through the
-     * meta-optimizer) and act only on manual op annotations.
-     * Custom optimizers (see custom_optimizers) that are not part of this
-     * schedule will be run after - in the order that they were specified.
-     * 
- * - * repeated string optimizers = 100; - */ - public Builder addAllOptimizers( - java.lang.Iterable values) { - ensureOptimizersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, optimizers_); - onChanged(); - return this; - } - /** - *
-     * If non-empty, will use this as an alternative way to specify a list of
-     * optimizations to turn on and the order of the optimizations (replacing the
-     * meta-optimizer).
-     * Of the RewriterConfig options, only the AutoParallel configuration options
-     * (the auto_parallel field) apply to manually requested optimization passes
-     * ("autoparallel"). Memory optimization passes ("memory") invoked here are
-     * not configurable (in contrast to memory optimization passes through the
-     * meta-optimizer) and act only on manual op annotations.
-     * Custom optimizers (see custom_optimizers) that are not part of this
-     * schedule will be run after - in the order that they were specified.
-     * 
- * - * repeated string optimizers = 100; - */ - public Builder clearOptimizers() { - optimizers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * If non-empty, will use this as an alternative way to specify a list of
-     * optimizations to turn on and the order of the optimizations (replacing the
-     * meta-optimizer).
-     * Of the RewriterConfig options, only the AutoParallel configuration options
-     * (the auto_parallel field) apply to manually requested optimization passes
-     * ("autoparallel"). Memory optimization passes ("memory") invoked here are
-     * not configurable (in contrast to memory optimization passes through the
-     * meta-optimizer) and act only on manual op annotations.
-     * Custom optimizers (see custom_optimizers) that are not part of this
-     * schedule will be run after - in the order that they were specified.
-     * 
- * - * repeated string optimizers = 100; - */ - public Builder addOptimizersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureOptimizersIsMutable(); - optimizers_.add(value); - onChanged(); - return this; - } - - private java.util.List customOptimizers_ = - java.util.Collections.emptyList(); - private void ensureCustomOptimizersIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - customOptimizers_ = new java.util.ArrayList(customOptimizers_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer, org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer.Builder, org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizerOrBuilder> customOptimizersBuilder_; - - /** - *
-     * list of CustomGraphOptimizers to apply.
-     * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public java.util.List getCustomOptimizersList() { - if (customOptimizersBuilder_ == null) { - return java.util.Collections.unmodifiableList(customOptimizers_); - } else { - return customOptimizersBuilder_.getMessageList(); - } - } - /** - *
-     * list of CustomGraphOptimizers to apply.
-     * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public int getCustomOptimizersCount() { - if (customOptimizersBuilder_ == null) { - return customOptimizers_.size(); - } else { - return customOptimizersBuilder_.getCount(); - } - } - /** - *
-     * list of CustomGraphOptimizers to apply.
-     * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer getCustomOptimizers(int index) { - if (customOptimizersBuilder_ == null) { - return customOptimizers_.get(index); - } else { - return customOptimizersBuilder_.getMessage(index); - } - } - /** - *
-     * list of CustomGraphOptimizers to apply.
-     * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public Builder setCustomOptimizers( - int index, org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer value) { - if (customOptimizersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCustomOptimizersIsMutable(); - customOptimizers_.set(index, value); - onChanged(); - } else { - customOptimizersBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * list of CustomGraphOptimizers to apply.
-     * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public Builder setCustomOptimizers( - int index, org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer.Builder builderForValue) { - if (customOptimizersBuilder_ == null) { - ensureCustomOptimizersIsMutable(); - customOptimizers_.set(index, builderForValue.build()); - onChanged(); - } else { - customOptimizersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * list of CustomGraphOptimizers to apply.
-     * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public Builder addCustomOptimizers(org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer value) { - if (customOptimizersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCustomOptimizersIsMutable(); - customOptimizers_.add(value); - onChanged(); - } else { - customOptimizersBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * list of CustomGraphOptimizers to apply.
-     * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public Builder addCustomOptimizers( - int index, org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer value) { - if (customOptimizersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCustomOptimizersIsMutable(); - customOptimizers_.add(index, value); - onChanged(); - } else { - customOptimizersBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * list of CustomGraphOptimizers to apply.
-     * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public Builder addCustomOptimizers( - org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer.Builder builderForValue) { - if (customOptimizersBuilder_ == null) { - ensureCustomOptimizersIsMutable(); - customOptimizers_.add(builderForValue.build()); - onChanged(); - } else { - customOptimizersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * list of CustomGraphOptimizers to apply.
-     * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public Builder addCustomOptimizers( - int index, org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer.Builder builderForValue) { - if (customOptimizersBuilder_ == null) { - ensureCustomOptimizersIsMutable(); - customOptimizers_.add(index, builderForValue.build()); - onChanged(); - } else { - customOptimizersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * list of CustomGraphOptimizers to apply.
-     * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public Builder addAllCustomOptimizers( - java.lang.Iterable values) { - if (customOptimizersBuilder_ == null) { - ensureCustomOptimizersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, customOptimizers_); - onChanged(); - } else { - customOptimizersBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * list of CustomGraphOptimizers to apply.
-     * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public Builder clearCustomOptimizers() { - if (customOptimizersBuilder_ == null) { - customOptimizers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - customOptimizersBuilder_.clear(); - } - return this; - } - /** - *
-     * list of CustomGraphOptimizers to apply.
-     * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public Builder removeCustomOptimizers(int index) { - if (customOptimizersBuilder_ == null) { - ensureCustomOptimizersIsMutable(); - customOptimizers_.remove(index); - onChanged(); - } else { - customOptimizersBuilder_.remove(index); - } - return this; - } - /** - *
-     * list of CustomGraphOptimizers to apply.
-     * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer.Builder getCustomOptimizersBuilder( - int index) { - return getCustomOptimizersFieldBuilder().getBuilder(index); - } - /** - *
-     * list of CustomGraphOptimizers to apply.
-     * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizerOrBuilder getCustomOptimizersOrBuilder( - int index) { - if (customOptimizersBuilder_ == null) { - return customOptimizers_.get(index); } else { - return customOptimizersBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * list of CustomGraphOptimizers to apply.
-     * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public java.util.List - getCustomOptimizersOrBuilderList() { - if (customOptimizersBuilder_ != null) { - return customOptimizersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(customOptimizers_); - } - } - /** - *
-     * list of CustomGraphOptimizers to apply.
-     * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer.Builder addCustomOptimizersBuilder() { - return getCustomOptimizersFieldBuilder().addBuilder( - org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer.getDefaultInstance()); - } - /** - *
-     * list of CustomGraphOptimizers to apply.
-     * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer.Builder addCustomOptimizersBuilder( - int index) { - return getCustomOptimizersFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer.getDefaultInstance()); - } - /** - *
-     * list of CustomGraphOptimizers to apply.
-     * 
- * - * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; - */ - public java.util.List - getCustomOptimizersBuilderList() { - return getCustomOptimizersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer, org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer.Builder, org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizerOrBuilder> - getCustomOptimizersFieldBuilder() { - if (customOptimizersBuilder_ == null) { - customOptimizersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer, org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer.Builder, org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizerOrBuilder>( - customOptimizers_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - customOptimizers_ = null; - } - return customOptimizersBuilder_; - } - - private org.tensorflow.proto.framework.VerifierConfig interOptimizerVerifierConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.VerifierConfig, org.tensorflow.proto.framework.VerifierConfig.Builder, org.tensorflow.proto.framework.VerifierConfigOrBuilder> interOptimizerVerifierConfigBuilder_; - /** - *
-     * VerifierConfig specifying the verifiers to be run after every optimizer.
-     * 
- * - * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; - */ - public boolean hasInterOptimizerVerifierConfig() { - return interOptimizerVerifierConfigBuilder_ != null || interOptimizerVerifierConfig_ != null; - } - /** - *
-     * VerifierConfig specifying the verifiers to be run after every optimizer.
-     * 
- * - * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; - */ - public org.tensorflow.proto.framework.VerifierConfig getInterOptimizerVerifierConfig() { - if (interOptimizerVerifierConfigBuilder_ == null) { - return interOptimizerVerifierConfig_ == null ? org.tensorflow.proto.framework.VerifierConfig.getDefaultInstance() : interOptimizerVerifierConfig_; - } else { - return interOptimizerVerifierConfigBuilder_.getMessage(); - } - } - /** - *
-     * VerifierConfig specifying the verifiers to be run after every optimizer.
-     * 
- * - * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; - */ - public Builder setInterOptimizerVerifierConfig(org.tensorflow.proto.framework.VerifierConfig value) { - if (interOptimizerVerifierConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - interOptimizerVerifierConfig_ = value; - onChanged(); - } else { - interOptimizerVerifierConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * VerifierConfig specifying the verifiers to be run after every optimizer.
-     * 
- * - * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; - */ - public Builder setInterOptimizerVerifierConfig( - org.tensorflow.proto.framework.VerifierConfig.Builder builderForValue) { - if (interOptimizerVerifierConfigBuilder_ == null) { - interOptimizerVerifierConfig_ = builderForValue.build(); - onChanged(); - } else { - interOptimizerVerifierConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * VerifierConfig specifying the verifiers to be run after every optimizer.
-     * 
- * - * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; - */ - public Builder mergeInterOptimizerVerifierConfig(org.tensorflow.proto.framework.VerifierConfig value) { - if (interOptimizerVerifierConfigBuilder_ == null) { - if (interOptimizerVerifierConfig_ != null) { - interOptimizerVerifierConfig_ = - org.tensorflow.proto.framework.VerifierConfig.newBuilder(interOptimizerVerifierConfig_).mergeFrom(value).buildPartial(); - } else { - interOptimizerVerifierConfig_ = value; - } - onChanged(); - } else { - interOptimizerVerifierConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * VerifierConfig specifying the verifiers to be run after every optimizer.
-     * 
- * - * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; - */ - public Builder clearInterOptimizerVerifierConfig() { - if (interOptimizerVerifierConfigBuilder_ == null) { - interOptimizerVerifierConfig_ = null; - onChanged(); - } else { - interOptimizerVerifierConfig_ = null; - interOptimizerVerifierConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * VerifierConfig specifying the verifiers to be run after every optimizer.
-     * 
- * - * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; - */ - public org.tensorflow.proto.framework.VerifierConfig.Builder getInterOptimizerVerifierConfigBuilder() { - - onChanged(); - return getInterOptimizerVerifierConfigFieldBuilder().getBuilder(); - } - /** - *
-     * VerifierConfig specifying the verifiers to be run after every optimizer.
-     * 
- * - * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; - */ - public org.tensorflow.proto.framework.VerifierConfigOrBuilder getInterOptimizerVerifierConfigOrBuilder() { - if (interOptimizerVerifierConfigBuilder_ != null) { - return interOptimizerVerifierConfigBuilder_.getMessageOrBuilder(); - } else { - return interOptimizerVerifierConfig_ == null ? - org.tensorflow.proto.framework.VerifierConfig.getDefaultInstance() : interOptimizerVerifierConfig_; - } - } - /** - *
-     * VerifierConfig specifying the verifiers to be run after every optimizer.
-     * 
- * - * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.VerifierConfig, org.tensorflow.proto.framework.VerifierConfig.Builder, org.tensorflow.proto.framework.VerifierConfigOrBuilder> - getInterOptimizerVerifierConfigFieldBuilder() { - if (interOptimizerVerifierConfigBuilder_ == null) { - interOptimizerVerifierConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.VerifierConfig, org.tensorflow.proto.framework.VerifierConfig.Builder, org.tensorflow.proto.framework.VerifierConfigOrBuilder>( - getInterOptimizerVerifierConfig(), - getParentForChildren(), - isClean()); - interOptimizerVerifierConfig_ = null; - } - return interOptimizerVerifierConfigBuilder_; - } - - private org.tensorflow.proto.framework.VerifierConfig postOptimizationVerifierConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.VerifierConfig, org.tensorflow.proto.framework.VerifierConfig.Builder, org.tensorflow.proto.framework.VerifierConfigOrBuilder> postOptimizationVerifierConfigBuilder_; - /** - *
-     * VerifierConfig specifying the verifiers to be run at the end, after all
-     * optimizers have run.
-     * 
- * - * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; - */ - public boolean hasPostOptimizationVerifierConfig() { - return postOptimizationVerifierConfigBuilder_ != null || postOptimizationVerifierConfig_ != null; - } - /** - *
-     * VerifierConfig specifying the verifiers to be run at the end, after all
-     * optimizers have run.
-     * 
- * - * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; - */ - public org.tensorflow.proto.framework.VerifierConfig getPostOptimizationVerifierConfig() { - if (postOptimizationVerifierConfigBuilder_ == null) { - return postOptimizationVerifierConfig_ == null ? org.tensorflow.proto.framework.VerifierConfig.getDefaultInstance() : postOptimizationVerifierConfig_; - } else { - return postOptimizationVerifierConfigBuilder_.getMessage(); - } - } - /** - *
-     * VerifierConfig specifying the verifiers to be run at the end, after all
-     * optimizers have run.
-     * 
- * - * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; - */ - public Builder setPostOptimizationVerifierConfig(org.tensorflow.proto.framework.VerifierConfig value) { - if (postOptimizationVerifierConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - postOptimizationVerifierConfig_ = value; - onChanged(); - } else { - postOptimizationVerifierConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * VerifierConfig specifying the verifiers to be run at the end, after all
-     * optimizers have run.
-     * 
- * - * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; - */ - public Builder setPostOptimizationVerifierConfig( - org.tensorflow.proto.framework.VerifierConfig.Builder builderForValue) { - if (postOptimizationVerifierConfigBuilder_ == null) { - postOptimizationVerifierConfig_ = builderForValue.build(); - onChanged(); - } else { - postOptimizationVerifierConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * VerifierConfig specifying the verifiers to be run at the end, after all
-     * optimizers have run.
-     * 
- * - * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; - */ - public Builder mergePostOptimizationVerifierConfig(org.tensorflow.proto.framework.VerifierConfig value) { - if (postOptimizationVerifierConfigBuilder_ == null) { - if (postOptimizationVerifierConfig_ != null) { - postOptimizationVerifierConfig_ = - org.tensorflow.proto.framework.VerifierConfig.newBuilder(postOptimizationVerifierConfig_).mergeFrom(value).buildPartial(); - } else { - postOptimizationVerifierConfig_ = value; - } - onChanged(); - } else { - postOptimizationVerifierConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * VerifierConfig specifying the verifiers to be run at the end, after all
-     * optimizers have run.
-     * 
- * - * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; - */ - public Builder clearPostOptimizationVerifierConfig() { - if (postOptimizationVerifierConfigBuilder_ == null) { - postOptimizationVerifierConfig_ = null; - onChanged(); - } else { - postOptimizationVerifierConfig_ = null; - postOptimizationVerifierConfigBuilder_ = null; - } - - return this; - } - /** - *
-     * VerifierConfig specifying the verifiers to be run at the end, after all
-     * optimizers have run.
-     * 
- * - * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; - */ - public org.tensorflow.proto.framework.VerifierConfig.Builder getPostOptimizationVerifierConfigBuilder() { - - onChanged(); - return getPostOptimizationVerifierConfigFieldBuilder().getBuilder(); - } - /** - *
-     * VerifierConfig specifying the verifiers to be run at the end, after all
-     * optimizers have run.
-     * 
- * - * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; - */ - public org.tensorflow.proto.framework.VerifierConfigOrBuilder getPostOptimizationVerifierConfigOrBuilder() { - if (postOptimizationVerifierConfigBuilder_ != null) { - return postOptimizationVerifierConfigBuilder_.getMessageOrBuilder(); - } else { - return postOptimizationVerifierConfig_ == null ? - org.tensorflow.proto.framework.VerifierConfig.getDefaultInstance() : postOptimizationVerifierConfig_; - } - } - /** - *
-     * VerifierConfig specifying the verifiers to be run at the end, after all
-     * optimizers have run.
-     * 
- * - * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.VerifierConfig, org.tensorflow.proto.framework.VerifierConfig.Builder, org.tensorflow.proto.framework.VerifierConfigOrBuilder> - getPostOptimizationVerifierConfigFieldBuilder() { - if (postOptimizationVerifierConfigBuilder_ == null) { - postOptimizationVerifierConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.VerifierConfig, org.tensorflow.proto.framework.VerifierConfig.Builder, org.tensorflow.proto.framework.VerifierConfigOrBuilder>( - getPostOptimizationVerifierConfig(), - getParentForChildren(), - isClean()); - postOptimizationVerifierConfig_ = null; - } - return postOptimizationVerifierConfigBuilder_; - } - @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:tensorflow.RewriterConfig) - } - - // @@protoc_insertion_point(class_scope:tensorflow.RewriterConfig) - private static final org.tensorflow.proto.framework.RewriterConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.RewriterConfig(); - } - - public static org.tensorflow.proto.framework.RewriterConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RewriterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RewriterConfig(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RewriterConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RewriterConfigProtos.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RewriterConfigProtos.java deleted file mode 100644 index 5266443bee9..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RewriterConfigProtos.java +++ /dev/null @@ -1,174 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/rewriter_config.proto - -package org.tensorflow.proto.framework; - -public final class RewriterConfigProtos { - private RewriterConfigProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_AutoParallelOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_AutoParallelOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_ScopedAllocatorOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_ScopedAllocatorOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_RewriterConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_RewriterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_ParameterMapEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_ParameterMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n.tensorflow/core/protobuf/rewriter_conf" + - "ig.proto\022\ntensorflow\032*tensorflow/core/fr" + - "amework/attr_value.proto\032.tensorflow/cor" + - "e/protobuf/verifier_config.proto\";\n\023Auto" + - "ParallelOptions\022\016\n\006enable\030\001 \001(\010\022\024\n\014num_r" + - "eplicas\030\002 \001(\005\"+\n\026ScopedAllocatorOptions\022" + - "\021\n\tenable_op\030\001 \003(\t\"\366\025\n\016RewriterConfig\022C\n" + - "\025cpu_layout_conversion\0302 \001(\0162$.tensorflo" + - "w.RewriterConfig.CpuLayout\022;\n\020layout_opt" + - "imizer\030\001 \001(\0162!.tensorflow.RewriterConfig" + - ".Toggle\022;\n\020constant_folding\030\003 \001(\0162!.tens" + - "orflow.RewriterConfig.Toggle\022=\n\022shape_op" + - "timization\030\r \001(\0162!.tensorflow.RewriterCo" + - "nfig.Toggle\0224\n\tremapping\030\016 \001(\0162!.tensorf" + - "low.RewriterConfig.Toggle\022F\n\033common_subg" + - "raph_elimination\030\030 \001(\0162!.tensorflow.Rewr" + - "iterConfig.Toggle\022B\n\027arithmetic_optimiza" + - "tion\030\007 \001(\0162!.tensorflow.RewriterConfig.T" + - "oggle\022B\n\027dependency_optimization\030\010 \001(\0162!" + - ".tensorflow.RewriterConfig.Toggle\022<\n\021loo" + - "p_optimization\030\t \001(\0162!.tensorflow.Rewrit" + - "erConfig.Toggle\022@\n\025function_optimization" + - "\030\n \001(\0162!.tensorflow.RewriterConfig.Toggl" + - "e\0229\n\016debug_stripper\030\013 \001(\0162!.tensorflow.R" + - "ewriterConfig.Toggle\022\035\n\025disable_model_pr" + - "uning\030\002 \001(\010\022H\n\035scoped_allocator_optimiza" + - "tion\030\017 \001(\0162!.tensorflow.RewriterConfig.T" + - "oggle\022C\n\030pin_to_host_optimization\030\022 \001(\0162" + - "!.tensorflow.RewriterConfig.Toggle\022B\n\027im" + - "plementation_selector\030\026 \001(\0162!.tensorflow" + - ".RewriterConfig.Toggle\022?\n\024auto_mixed_pre" + - "cision\030\027 \001(\0162!.tensorflow.RewriterConfig" + - ".Toggle\022C\n\030auto_mixed_precision_mkl\030\031 \001(" + - "\0162!.tensorflow.RewriterConfig.Toggle\022O\n$" + - "auto_mixed_precision_onednn_bfloat16\030\037 \001" + - "(\0162!.tensorflow.RewriterConfig.Toggle\022C\n" + - "\030auto_mixed_precision_cpu\030\035 \001(\0162!.tensor" + - "flow.RewriterConfig.Toggle\022\036\n\026disable_me" + - "ta_optimizer\030\023 \001(\010\022@\n\025use_plugin_optimiz" + - "ers\030\034 \001(\0162!.tensorflow.RewriterConfig.To" + - "ggle\022O\n$experimental_conditional_code_mo" + - "tion\030\036 \001(\0162!.tensorflow.RewriterConfig.T" + - "oggle\022O\n\031meta_optimizer_iterations\030\014 \001(\016" + - "2,.tensorflow.RewriterConfig.NumIteratio" + - "nsType\022\027\n\017min_graph_nodes\030\021 \001(\005\022;\n3exper" + - "imental_disable_compressed_tensor_optimi" + - "zation\030\032 \001(\010\022;\n3experimental_disable_fol" + - "ding_quantization_emulation\030\033 \001(\010\022B\n\023mem" + - "ory_optimization\030\004 \001(\0162%.tensorflow.Rewr" + - "iterConfig.MemOptType\022/\n\'memory_optimize" + - "r_target_node_name_scope\030\006 \001(\t\022!\n\031meta_o" + - "ptimizer_timeout_ms\030\024 \001(\003\0226\n\rauto_parall" + - "el\030\005 \001(\0132\037.tensorflow.AutoParallelOption" + - "s\022 \n\030fail_on_optimizer_errors\030\025 \001(\010\022A\n\025s" + - "coped_allocator_opts\030\020 \001(\0132\".tensorflow." + - "ScopedAllocatorOptions\022\022\n\noptimizers\030d \003" + - "(\t\022K\n\021custom_optimizers\030\310\001 \003(\0132/.tensorf" + - "low.RewriterConfig.CustomGraphOptimizer\022" + - "D\n\037inter_optimizer_verifier_config\030\254\002 \001(" + - "\0132\032.tensorflow.VerifierConfig\022F\n!post_op" + - "timization_verifier_config\030\255\002 \001(\0132\032.tens" + - "orflow.VerifierConfig\032\312\001\n\024CustomGraphOpt" + - "imizer\022\014\n\004name\030\001 \001(\t\022X\n\rparameter_map\030\002 " + - "\003(\0132A.tensorflow.RewriterConfig.CustomGr" + - "aphOptimizer.ParameterMapEntry\032J\n\021Parame" + - "terMapEntry\022\013\n\003key\030\001 \001(\t\022$\n\005value\030\002 \001(\0132" + - "\025.tensorflow.AttrValue:\0028\001\"d\n\006Toggle\022\013\n\007" + - "DEFAULT\020\000\022\006\n\002ON\020\001\022\007\n\003OFF\020\002\022\016\n\nAGGRESSIVE" + - "\020\003\022\025\n\021EXPERIMENTAL_MLIR\020\004\022\025\n\021EXPERIMENTA" + - "L_BOTH\020\005\"I\n\tCpuLayout\022\030\n\024NO_CONVERSION_O" + - "N_CPU\020\000\022\020\n\014NCHW_TO_NHWC\020\001\022\020\n\014NHWC_TO_NCH" + - "W\020\002\"<\n\021NumIterationsType\022\025\n\021DEFAULT_NUM_" + - "ITERS\020\000\022\007\n\003ONE\020\001\022\007\n\003TWO\020\002\"\237\001\n\nMemOptType" + - "\022\023\n\017DEFAULT_MEM_OPT\020\000\022\016\n\nNO_MEM_OPT\020\001\022\n\n" + - "\006MANUAL\020\002\022\027\n\023SWAPPING_HEURISTICS\020\004\022\034\n\030RE" + - "COMPUTATION_HEURISTICS\020\005\022\031\n\025SCHEDULING_H" + - "EURISTICS\020\006\022\016\n\nHEURISTICS\020\003B\222\001\n\036org.tens" + - "orflow.proto.frameworkB\024RewriterConfigPr" + - "otosP\001ZUgithub.com/tensorflow/tensorflow" + - "/tensorflow/go/core/protobuf/for_core_pr" + - "otos_go_proto\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.framework.AttrValueProtos.getDescriptor(), - org.tensorflow.proto.framework.VerifierConfigProtos.getDescriptor(), - }); - internal_static_tensorflow_AutoParallelOptions_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tensorflow_AutoParallelOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_AutoParallelOptions_descriptor, - new java.lang.String[] { "Enable", "NumReplicas", }); - internal_static_tensorflow_ScopedAllocatorOptions_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_tensorflow_ScopedAllocatorOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_ScopedAllocatorOptions_descriptor, - new java.lang.String[] { "EnableOp", }); - internal_static_tensorflow_RewriterConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_tensorflow_RewriterConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_RewriterConfig_descriptor, - new java.lang.String[] { "CpuLayoutConversion", "LayoutOptimizer", "ConstantFolding", "ShapeOptimization", "Remapping", "CommonSubgraphElimination", "ArithmeticOptimization", "DependencyOptimization", "LoopOptimization", "FunctionOptimization", "DebugStripper", "DisableModelPruning", "ScopedAllocatorOptimization", "PinToHostOptimization", "ImplementationSelector", "AutoMixedPrecision", "AutoMixedPrecisionMkl", "AutoMixedPrecisionOnednnBfloat16", "AutoMixedPrecisionCpu", "DisableMetaOptimizer", "UsePluginOptimizers", "ExperimentalConditionalCodeMotion", "MetaOptimizerIterations", "MinGraphNodes", "ExperimentalDisableCompressedTensorOptimization", "ExperimentalDisableFoldingQuantizationEmulation", "MemoryOptimization", "MemoryOptimizerTargetNodeNameScope", "MetaOptimizerTimeoutMs", "AutoParallel", "FailOnOptimizerErrors", "ScopedAllocatorOpts", "Optimizers", "CustomOptimizers", "InterOptimizerVerifierConfig", "PostOptimizationVerifierConfig", }); - internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_descriptor = - internal_static_tensorflow_RewriterConfig_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_descriptor, - new java.lang.String[] { "Name", "ParameterMap", }); - internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_ParameterMapEntry_descriptor = - internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_ParameterMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_ParameterMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - org.tensorflow.proto.framework.AttrValueProtos.getDescriptor(); - org.tensorflow.proto.framework.VerifierConfigProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RunOptions.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RunOptions.java deleted file mode 100644 index 9ccdb06d2b6..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RunOptions.java +++ /dev/null @@ -1,2708 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/config.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Options for a single Run() call.
- * 
- * - * Protobuf type {@code tensorflow.RunOptions} - */ -public final class RunOptions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.RunOptions) - RunOptionsOrBuilder { -private static final long serialVersionUID = 0L; - // Use RunOptions.newBuilder() to construct. - private RunOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RunOptions() { - traceLevel_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RunOptions(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RunOptions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - traceLevel_ = rawValue; - break; - } - case 16: { - - timeoutInMs_ = input.readInt64(); - break; - } - case 24: { - - interOpThreadPool_ = input.readInt32(); - break; - } - case 40: { - - outputPartitionGraphs_ = input.readBool(); - break; - } - case 50: { - org.tensorflow.proto.framework.DebugOptions.Builder subBuilder = null; - if (debugOptions_ != null) { - subBuilder = debugOptions_.toBuilder(); - } - debugOptions_ = input.readMessage(org.tensorflow.proto.framework.DebugOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(debugOptions_); - debugOptions_ = subBuilder.buildPartial(); - } - - break; - } - case 56: { - - reportTensorAllocationsUponOom_ = input.readBool(); - break; - } - case 66: { - org.tensorflow.proto.framework.RunOptions.Experimental.Builder subBuilder = null; - if (experimental_ != null) { - subBuilder = experimental_.toBuilder(); - } - experimental_ = input.readMessage(org.tensorflow.proto.framework.RunOptions.Experimental.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(experimental_); - experimental_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.RunOptions.class, org.tensorflow.proto.framework.RunOptions.Builder.class); - } - - /** - *
-   * TODO(pbar) Turn this into a TraceOptions proto which allows
-   * tracing to be controlled in a more orthogonal manner?
-   * 
- * - * Protobuf enum {@code tensorflow.RunOptions.TraceLevel} - */ - public enum TraceLevel - implements com.google.protobuf.ProtocolMessageEnum { - /** - * NO_TRACE = 0; - */ - NO_TRACE(0), - /** - * SOFTWARE_TRACE = 1; - */ - SOFTWARE_TRACE(1), - /** - * HARDWARE_TRACE = 2; - */ - HARDWARE_TRACE(2), - /** - * FULL_TRACE = 3; - */ - FULL_TRACE(3), - UNRECOGNIZED(-1), - ; - - /** - * NO_TRACE = 0; - */ - public static final int NO_TRACE_VALUE = 0; - /** - * SOFTWARE_TRACE = 1; - */ - public static final int SOFTWARE_TRACE_VALUE = 1; - /** - * HARDWARE_TRACE = 2; - */ - public static final int HARDWARE_TRACE_VALUE = 2; - /** - * FULL_TRACE = 3; - */ - public static final int FULL_TRACE_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TraceLevel valueOf(int value) { - return forNumber(value); - } - - public static TraceLevel forNumber(int value) { - switch (value) { - case 0: return NO_TRACE; - case 1: return SOFTWARE_TRACE; - case 2: return HARDWARE_TRACE; - case 3: return FULL_TRACE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - TraceLevel> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TraceLevel findValueByNumber(int number) { - return TraceLevel.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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 org.tensorflow.proto.framework.RunOptions.getDescriptor().getEnumTypes().get(0); - } - - private static final TraceLevel[] VALUES = values(); - - public static TraceLevel 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 TraceLevel(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:tensorflow.RunOptions.TraceLevel) - } - - public interface ExperimentalOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.RunOptions.Experimental) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * If non-zero, declares that this graph is going to use collective
-     * ops and must synchronize step_ids with any other graph with this
-     * same group_key value (in a distributed computation where tasks
-     * run disjoint graphs).
-     * 
- * - * int64 collective_graph_key = 1; - */ - long getCollectiveGraphKey(); - - /** - *
-     * If true, then operations (using the inter-op pool) across all
-     * session::run() calls will be centrally scheduled, optimizing for (median
-     * and tail) latency.
-     * Consider using this option for CPU-bound workloads like inference.
-     * 
- * - * bool use_run_handler_pool = 2; - */ - boolean getUseRunHandlerPool(); - - /** - * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; - */ - boolean hasRunHandlerPoolOptions(); - /** - * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; - */ - org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions getRunHandlerPoolOptions(); - /** - * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; - */ - org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptionsOrBuilder getRunHandlerPoolOptionsOrBuilder(); - } - /** - *
-   * Everything inside Experimental is subject to change and is not subject
-   * to API stability guarantees in
-   * https://www.tensorflow.org/guide/version_compat.
-   * 
- * - * Protobuf type {@code tensorflow.RunOptions.Experimental} - */ - public static final class Experimental extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.RunOptions.Experimental) - ExperimentalOrBuilder { - private static final long serialVersionUID = 0L; - // Use Experimental.newBuilder() to construct. - private Experimental(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Experimental() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Experimental(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Experimental( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - collectiveGraphKey_ = input.readInt64(); - break; - } - case 16: { - - useRunHandlerPool_ = input.readBool(); - break; - } - case 26: { - org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions.Builder subBuilder = null; - if (runHandlerPoolOptions_ != null) { - subBuilder = runHandlerPoolOptions_.toBuilder(); - } - runHandlerPoolOptions_ = input.readMessage(org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(runHandlerPoolOptions_); - runHandlerPoolOptions_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunOptions_Experimental_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunOptions_Experimental_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.RunOptions.Experimental.class, org.tensorflow.proto.framework.RunOptions.Experimental.Builder.class); - } - - public interface RunHandlerPoolOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.RunOptions.Experimental.RunHandlerPoolOptions) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * Priority of the request. The run handler thread pool will schedule ops
-       * based on the priority number. The larger number means higher priority.
-       * 
- * - * int64 priority = 1; - */ - long getPriority(); - } - /** - *
-     * Options for run handler thread pool.
-     * 
- * - * Protobuf type {@code tensorflow.RunOptions.Experimental.RunHandlerPoolOptions} - */ - public static final class RunHandlerPoolOptions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.RunOptions.Experimental.RunHandlerPoolOptions) - RunHandlerPoolOptionsOrBuilder { - private static final long serialVersionUID = 0L; - // Use RunHandlerPoolOptions.newBuilder() to construct. - private RunHandlerPoolOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RunHandlerPoolOptions() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RunHandlerPoolOptions(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RunHandlerPoolOptions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - priority_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunOptions_Experimental_RunHandlerPoolOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunOptions_Experimental_RunHandlerPoolOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions.class, org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions.Builder.class); - } - - public static final int PRIORITY_FIELD_NUMBER = 1; - private long priority_; - /** - *
-       * Priority of the request. The run handler thread pool will schedule ops
-       * based on the priority number. The larger number means higher priority.
-       * 
- * - * int64 priority = 1; - */ - public long getPriority() { - return priority_; - } - - 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 (priority_ != 0L) { - output.writeInt64(1, priority_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (priority_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, priority_); - } - 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 org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions other = (org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions) obj; - - if (getPriority() - != other.getPriority()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PRIORITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPriority()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions 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 org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions 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 org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions 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(org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions 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; - } - /** - *
-       * Options for run handler thread pool.
-       * 
- * - * Protobuf type {@code tensorflow.RunOptions.Experimental.RunHandlerPoolOptions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.RunOptions.Experimental.RunHandlerPoolOptions) - org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunOptions_Experimental_RunHandlerPoolOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunOptions_Experimental_RunHandlerPoolOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions.class, org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - priority_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunOptions_Experimental_RunHandlerPoolOptions_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions getDefaultInstanceForType() { - return org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions build() { - org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions buildPartial() { - org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions result = new org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions(this); - result.priority_ = priority_; - 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 org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions) { - return mergeFrom((org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions other) { - if (other == org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions.getDefaultInstance()) return this; - if (other.getPriority() != 0L) { - setPriority(other.getPriority()); - } - 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 { - org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long priority_ ; - /** - *
-         * Priority of the request. The run handler thread pool will schedule ops
-         * based on the priority number. The larger number means higher priority.
-         * 
- * - * int64 priority = 1; - */ - public long getPriority() { - return priority_; - } - /** - *
-         * Priority of the request. The run handler thread pool will schedule ops
-         * based on the priority number. The larger number means higher priority.
-         * 
- * - * int64 priority = 1; - */ - public Builder setPriority(long value) { - - priority_ = value; - onChanged(); - return this; - } - /** - *
-         * Priority of the request. The run handler thread pool will schedule ops
-         * based on the priority number. The larger number means higher priority.
-         * 
- * - * int64 priority = 1; - */ - public Builder clearPriority() { - - priority_ = 0L; - 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:tensorflow.RunOptions.Experimental.RunHandlerPoolOptions) - } - - // @@protoc_insertion_point(class_scope:tensorflow.RunOptions.Experimental.RunHandlerPoolOptions) - private static final org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions(); - } - - public static org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunHandlerPoolOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunHandlerPoolOptions(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int COLLECTIVE_GRAPH_KEY_FIELD_NUMBER = 1; - private long collectiveGraphKey_; - /** - *
-     * If non-zero, declares that this graph is going to use collective
-     * ops and must synchronize step_ids with any other graph with this
-     * same group_key value (in a distributed computation where tasks
-     * run disjoint graphs).
-     * 
- * - * int64 collective_graph_key = 1; - */ - public long getCollectiveGraphKey() { - return collectiveGraphKey_; - } - - public static final int USE_RUN_HANDLER_POOL_FIELD_NUMBER = 2; - private boolean useRunHandlerPool_; - /** - *
-     * If true, then operations (using the inter-op pool) across all
-     * session::run() calls will be centrally scheduled, optimizing for (median
-     * and tail) latency.
-     * Consider using this option for CPU-bound workloads like inference.
-     * 
- * - * bool use_run_handler_pool = 2; - */ - public boolean getUseRunHandlerPool() { - return useRunHandlerPool_; - } - - public static final int RUN_HANDLER_POOL_OPTIONS_FIELD_NUMBER = 3; - private org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions runHandlerPoolOptions_; - /** - * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; - */ - public boolean hasRunHandlerPoolOptions() { - return runHandlerPoolOptions_ != null; - } - /** - * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; - */ - public org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions getRunHandlerPoolOptions() { - return runHandlerPoolOptions_ == null ? org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions.getDefaultInstance() : runHandlerPoolOptions_; - } - /** - * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; - */ - public org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptionsOrBuilder getRunHandlerPoolOptionsOrBuilder() { - return getRunHandlerPoolOptions(); - } - - 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 (collectiveGraphKey_ != 0L) { - output.writeInt64(1, collectiveGraphKey_); - } - if (useRunHandlerPool_ != false) { - output.writeBool(2, useRunHandlerPool_); - } - if (runHandlerPoolOptions_ != null) { - output.writeMessage(3, getRunHandlerPoolOptions()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (collectiveGraphKey_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, collectiveGraphKey_); - } - if (useRunHandlerPool_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, useRunHandlerPool_); - } - if (runHandlerPoolOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRunHandlerPoolOptions()); - } - 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 org.tensorflow.proto.framework.RunOptions.Experimental)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.RunOptions.Experimental other = (org.tensorflow.proto.framework.RunOptions.Experimental) obj; - - if (getCollectiveGraphKey() - != other.getCollectiveGraphKey()) return false; - if (getUseRunHandlerPool() - != other.getUseRunHandlerPool()) return false; - if (hasRunHandlerPoolOptions() != other.hasRunHandlerPoolOptions()) return false; - if (hasRunHandlerPoolOptions()) { - if (!getRunHandlerPoolOptions() - .equals(other.getRunHandlerPoolOptions())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COLLECTIVE_GRAPH_KEY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCollectiveGraphKey()); - hash = (37 * hash) + USE_RUN_HANDLER_POOL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUseRunHandlerPool()); - if (hasRunHandlerPoolOptions()) { - hash = (37 * hash) + RUN_HANDLER_POOL_OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getRunHandlerPoolOptions().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.RunOptions.Experimental parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RunOptions.Experimental parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RunOptions.Experimental parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RunOptions.Experimental parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RunOptions.Experimental parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RunOptions.Experimental parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RunOptions.Experimental parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RunOptions.Experimental 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 org.tensorflow.proto.framework.RunOptions.Experimental parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RunOptions.Experimental 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 org.tensorflow.proto.framework.RunOptions.Experimental parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RunOptions.Experimental 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(org.tensorflow.proto.framework.RunOptions.Experimental 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; - } - /** - *
-     * Everything inside Experimental is subject to change and is not subject
-     * to API stability guarantees in
-     * https://www.tensorflow.org/guide/version_compat.
-     * 
- * - * Protobuf type {@code tensorflow.RunOptions.Experimental} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.RunOptions.Experimental) - org.tensorflow.proto.framework.RunOptions.ExperimentalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunOptions_Experimental_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunOptions_Experimental_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.RunOptions.Experimental.class, org.tensorflow.proto.framework.RunOptions.Experimental.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.RunOptions.Experimental.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - collectiveGraphKey_ = 0L; - - useRunHandlerPool_ = false; - - if (runHandlerPoolOptionsBuilder_ == null) { - runHandlerPoolOptions_ = null; - } else { - runHandlerPoolOptions_ = null; - runHandlerPoolOptionsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunOptions_Experimental_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RunOptions.Experimental getDefaultInstanceForType() { - return org.tensorflow.proto.framework.RunOptions.Experimental.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.RunOptions.Experimental build() { - org.tensorflow.proto.framework.RunOptions.Experimental result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RunOptions.Experimental buildPartial() { - org.tensorflow.proto.framework.RunOptions.Experimental result = new org.tensorflow.proto.framework.RunOptions.Experimental(this); - result.collectiveGraphKey_ = collectiveGraphKey_; - result.useRunHandlerPool_ = useRunHandlerPool_; - if (runHandlerPoolOptionsBuilder_ == null) { - result.runHandlerPoolOptions_ = runHandlerPoolOptions_; - } else { - result.runHandlerPoolOptions_ = runHandlerPoolOptionsBuilder_.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 org.tensorflow.proto.framework.RunOptions.Experimental) { - return mergeFrom((org.tensorflow.proto.framework.RunOptions.Experimental)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.RunOptions.Experimental other) { - if (other == org.tensorflow.proto.framework.RunOptions.Experimental.getDefaultInstance()) return this; - if (other.getCollectiveGraphKey() != 0L) { - setCollectiveGraphKey(other.getCollectiveGraphKey()); - } - if (other.getUseRunHandlerPool() != false) { - setUseRunHandlerPool(other.getUseRunHandlerPool()); - } - if (other.hasRunHandlerPoolOptions()) { - mergeRunHandlerPoolOptions(other.getRunHandlerPoolOptions()); - } - 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 { - org.tensorflow.proto.framework.RunOptions.Experimental parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.RunOptions.Experimental) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long collectiveGraphKey_ ; - /** - *
-       * If non-zero, declares that this graph is going to use collective
-       * ops and must synchronize step_ids with any other graph with this
-       * same group_key value (in a distributed computation where tasks
-       * run disjoint graphs).
-       * 
- * - * int64 collective_graph_key = 1; - */ - public long getCollectiveGraphKey() { - return collectiveGraphKey_; - } - /** - *
-       * If non-zero, declares that this graph is going to use collective
-       * ops and must synchronize step_ids with any other graph with this
-       * same group_key value (in a distributed computation where tasks
-       * run disjoint graphs).
-       * 
- * - * int64 collective_graph_key = 1; - */ - public Builder setCollectiveGraphKey(long value) { - - collectiveGraphKey_ = value; - onChanged(); - return this; - } - /** - *
-       * If non-zero, declares that this graph is going to use collective
-       * ops and must synchronize step_ids with any other graph with this
-       * same group_key value (in a distributed computation where tasks
-       * run disjoint graphs).
-       * 
- * - * int64 collective_graph_key = 1; - */ - public Builder clearCollectiveGraphKey() { - - collectiveGraphKey_ = 0L; - onChanged(); - return this; - } - - private boolean useRunHandlerPool_ ; - /** - *
-       * If true, then operations (using the inter-op pool) across all
-       * session::run() calls will be centrally scheduled, optimizing for (median
-       * and tail) latency.
-       * Consider using this option for CPU-bound workloads like inference.
-       * 
- * - * bool use_run_handler_pool = 2; - */ - public boolean getUseRunHandlerPool() { - return useRunHandlerPool_; - } - /** - *
-       * If true, then operations (using the inter-op pool) across all
-       * session::run() calls will be centrally scheduled, optimizing for (median
-       * and tail) latency.
-       * Consider using this option for CPU-bound workloads like inference.
-       * 
- * - * bool use_run_handler_pool = 2; - */ - public Builder setUseRunHandlerPool(boolean value) { - - useRunHandlerPool_ = value; - onChanged(); - return this; - } - /** - *
-       * If true, then operations (using the inter-op pool) across all
-       * session::run() calls will be centrally scheduled, optimizing for (median
-       * and tail) latency.
-       * Consider using this option for CPU-bound workloads like inference.
-       * 
- * - * bool use_run_handler_pool = 2; - */ - public Builder clearUseRunHandlerPool() { - - useRunHandlerPool_ = false; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions runHandlerPoolOptions_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions, org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions.Builder, org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptionsOrBuilder> runHandlerPoolOptionsBuilder_; - /** - * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; - */ - public boolean hasRunHandlerPoolOptions() { - return runHandlerPoolOptionsBuilder_ != null || runHandlerPoolOptions_ != null; - } - /** - * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; - */ - public org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions getRunHandlerPoolOptions() { - if (runHandlerPoolOptionsBuilder_ == null) { - return runHandlerPoolOptions_ == null ? org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions.getDefaultInstance() : runHandlerPoolOptions_; - } else { - return runHandlerPoolOptionsBuilder_.getMessage(); - } - } - /** - * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; - */ - public Builder setRunHandlerPoolOptions(org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions value) { - if (runHandlerPoolOptionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - runHandlerPoolOptions_ = value; - onChanged(); - } else { - runHandlerPoolOptionsBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; - */ - public Builder setRunHandlerPoolOptions( - org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions.Builder builderForValue) { - if (runHandlerPoolOptionsBuilder_ == null) { - runHandlerPoolOptions_ = builderForValue.build(); - onChanged(); - } else { - runHandlerPoolOptionsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; - */ - public Builder mergeRunHandlerPoolOptions(org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions value) { - if (runHandlerPoolOptionsBuilder_ == null) { - if (runHandlerPoolOptions_ != null) { - runHandlerPoolOptions_ = - org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions.newBuilder(runHandlerPoolOptions_).mergeFrom(value).buildPartial(); - } else { - runHandlerPoolOptions_ = value; - } - onChanged(); - } else { - runHandlerPoolOptionsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; - */ - public Builder clearRunHandlerPoolOptions() { - if (runHandlerPoolOptionsBuilder_ == null) { - runHandlerPoolOptions_ = null; - onChanged(); - } else { - runHandlerPoolOptions_ = null; - runHandlerPoolOptionsBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; - */ - public org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions.Builder getRunHandlerPoolOptionsBuilder() { - - onChanged(); - return getRunHandlerPoolOptionsFieldBuilder().getBuilder(); - } - /** - * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; - */ - public org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptionsOrBuilder getRunHandlerPoolOptionsOrBuilder() { - if (runHandlerPoolOptionsBuilder_ != null) { - return runHandlerPoolOptionsBuilder_.getMessageOrBuilder(); - } else { - return runHandlerPoolOptions_ == null ? - org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions.getDefaultInstance() : runHandlerPoolOptions_; - } - } - /** - * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions, org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions.Builder, org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptionsOrBuilder> - getRunHandlerPoolOptionsFieldBuilder() { - if (runHandlerPoolOptionsBuilder_ == null) { - runHandlerPoolOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions, org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptions.Builder, org.tensorflow.proto.framework.RunOptions.Experimental.RunHandlerPoolOptionsOrBuilder>( - getRunHandlerPoolOptions(), - getParentForChildren(), - isClean()); - runHandlerPoolOptions_ = null; - } - return runHandlerPoolOptionsBuilder_; - } - @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:tensorflow.RunOptions.Experimental) - } - - // @@protoc_insertion_point(class_scope:tensorflow.RunOptions.Experimental) - private static final org.tensorflow.proto.framework.RunOptions.Experimental DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.RunOptions.Experimental(); - } - - public static org.tensorflow.proto.framework.RunOptions.Experimental getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Experimental parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Experimental(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RunOptions.Experimental getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int TRACE_LEVEL_FIELD_NUMBER = 1; - private int traceLevel_; - /** - * .tensorflow.RunOptions.TraceLevel trace_level = 1; - */ - public int getTraceLevelValue() { - return traceLevel_; - } - /** - * .tensorflow.RunOptions.TraceLevel trace_level = 1; - */ - public org.tensorflow.proto.framework.RunOptions.TraceLevel getTraceLevel() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RunOptions.TraceLevel result = org.tensorflow.proto.framework.RunOptions.TraceLevel.valueOf(traceLevel_); - return result == null ? org.tensorflow.proto.framework.RunOptions.TraceLevel.UNRECOGNIZED : result; - } - - public static final int TIMEOUT_IN_MS_FIELD_NUMBER = 2; - private long timeoutInMs_; - /** - *
-   * Time to wait for operation to complete in milliseconds.
-   * 
- * - * int64 timeout_in_ms = 2; - */ - public long getTimeoutInMs() { - return timeoutInMs_; - } - - public static final int INTER_OP_THREAD_POOL_FIELD_NUMBER = 3; - private int interOpThreadPool_; - /** - *
-   * The thread pool to use, if session_inter_op_thread_pool is configured.
-   * To use the caller thread set this to -1 - this uses the caller thread
-   * to execute Session::Run() and thus avoids a context switch. Using the
-   * caller thread to execute Session::Run() should be done ONLY for simple
-   * graphs, where the overhead of an additional context switch is
-   * comparable with the overhead of Session::Run().
-   * 
- * - * int32 inter_op_thread_pool = 3; - */ - public int getInterOpThreadPool() { - return interOpThreadPool_; - } - - public static final int OUTPUT_PARTITION_GRAPHS_FIELD_NUMBER = 5; - private boolean outputPartitionGraphs_; - /** - *
-   * Whether the partition graph(s) executed by the executor(s) should be
-   * outputted via RunMetadata.
-   * 
- * - * bool output_partition_graphs = 5; - */ - public boolean getOutputPartitionGraphs() { - return outputPartitionGraphs_; - } - - public static final int DEBUG_OPTIONS_FIELD_NUMBER = 6; - private org.tensorflow.proto.framework.DebugOptions debugOptions_; - /** - *
-   * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
-   * 
- * - * .tensorflow.DebugOptions debug_options = 6; - */ - public boolean hasDebugOptions() { - return debugOptions_ != null; - } - /** - *
-   * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
-   * 
- * - * .tensorflow.DebugOptions debug_options = 6; - */ - public org.tensorflow.proto.framework.DebugOptions getDebugOptions() { - return debugOptions_ == null ? org.tensorflow.proto.framework.DebugOptions.getDefaultInstance() : debugOptions_; - } - /** - *
-   * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
-   * 
- * - * .tensorflow.DebugOptions debug_options = 6; - */ - public org.tensorflow.proto.framework.DebugOptionsOrBuilder getDebugOptionsOrBuilder() { - return getDebugOptions(); - } - - public static final int REPORT_TENSOR_ALLOCATIONS_UPON_OOM_FIELD_NUMBER = 7; - private boolean reportTensorAllocationsUponOom_; - /** - *
-   * When enabled, causes tensor allocation information to be included in
-   * the error message when the Run() call fails because the allocator ran
-   * out of memory (OOM).
-   * Enabling this option can slow down the Run() call.
-   * 
- * - * bool report_tensor_allocations_upon_oom = 7; - */ - public boolean getReportTensorAllocationsUponOom() { - return reportTensorAllocationsUponOom_; - } - - public static final int EXPERIMENTAL_FIELD_NUMBER = 8; - private org.tensorflow.proto.framework.RunOptions.Experimental experimental_; - /** - * .tensorflow.RunOptions.Experimental experimental = 8; - */ - public boolean hasExperimental() { - return experimental_ != null; - } - /** - * .tensorflow.RunOptions.Experimental experimental = 8; - */ - public org.tensorflow.proto.framework.RunOptions.Experimental getExperimental() { - return experimental_ == null ? org.tensorflow.proto.framework.RunOptions.Experimental.getDefaultInstance() : experimental_; - } - /** - * .tensorflow.RunOptions.Experimental experimental = 8; - */ - public org.tensorflow.proto.framework.RunOptions.ExperimentalOrBuilder getExperimentalOrBuilder() { - return getExperimental(); - } - - 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 (traceLevel_ != org.tensorflow.proto.framework.RunOptions.TraceLevel.NO_TRACE.getNumber()) { - output.writeEnum(1, traceLevel_); - } - if (timeoutInMs_ != 0L) { - output.writeInt64(2, timeoutInMs_); - } - if (interOpThreadPool_ != 0) { - output.writeInt32(3, interOpThreadPool_); - } - if (outputPartitionGraphs_ != false) { - output.writeBool(5, outputPartitionGraphs_); - } - if (debugOptions_ != null) { - output.writeMessage(6, getDebugOptions()); - } - if (reportTensorAllocationsUponOom_ != false) { - output.writeBool(7, reportTensorAllocationsUponOom_); - } - if (experimental_ != null) { - output.writeMessage(8, getExperimental()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (traceLevel_ != org.tensorflow.proto.framework.RunOptions.TraceLevel.NO_TRACE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, traceLevel_); - } - if (timeoutInMs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, timeoutInMs_); - } - if (interOpThreadPool_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, interOpThreadPool_); - } - if (outputPartitionGraphs_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, outputPartitionGraphs_); - } - if (debugOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getDebugOptions()); - } - if (reportTensorAllocationsUponOom_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, reportTensorAllocationsUponOom_); - } - if (experimental_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getExperimental()); - } - 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 org.tensorflow.proto.framework.RunOptions)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.RunOptions other = (org.tensorflow.proto.framework.RunOptions) obj; - - if (traceLevel_ != other.traceLevel_) return false; - if (getTimeoutInMs() - != other.getTimeoutInMs()) return false; - if (getInterOpThreadPool() - != other.getInterOpThreadPool()) return false; - if (getOutputPartitionGraphs() - != other.getOutputPartitionGraphs()) return false; - if (hasDebugOptions() != other.hasDebugOptions()) return false; - if (hasDebugOptions()) { - if (!getDebugOptions() - .equals(other.getDebugOptions())) return false; - } - if (getReportTensorAllocationsUponOom() - != other.getReportTensorAllocationsUponOom()) return false; - if (hasExperimental() != other.hasExperimental()) return false; - if (hasExperimental()) { - if (!getExperimental() - .equals(other.getExperimental())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TRACE_LEVEL_FIELD_NUMBER; - hash = (53 * hash) + traceLevel_; - hash = (37 * hash) + TIMEOUT_IN_MS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimeoutInMs()); - hash = (37 * hash) + INTER_OP_THREAD_POOL_FIELD_NUMBER; - hash = (53 * hash) + getInterOpThreadPool(); - hash = (37 * hash) + OUTPUT_PARTITION_GRAPHS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getOutputPartitionGraphs()); - if (hasDebugOptions()) { - hash = (37 * hash) + DEBUG_OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getDebugOptions().hashCode(); - } - hash = (37 * hash) + REPORT_TENSOR_ALLOCATIONS_UPON_OOM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReportTensorAllocationsUponOom()); - if (hasExperimental()) { - hash = (37 * hash) + EXPERIMENTAL_FIELD_NUMBER; - hash = (53 * hash) + getExperimental().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.RunOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RunOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RunOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RunOptions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RunOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.RunOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.RunOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RunOptions 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 org.tensorflow.proto.framework.RunOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RunOptions 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 org.tensorflow.proto.framework.RunOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.RunOptions 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(org.tensorflow.proto.framework.RunOptions 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; - } - /** - *
-   * Options for a single Run() call.
-   * 
- * - * Protobuf type {@code tensorflow.RunOptions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.RunOptions) - org.tensorflow.proto.framework.RunOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.RunOptions.class, org.tensorflow.proto.framework.RunOptions.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.RunOptions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - traceLevel_ = 0; - - timeoutInMs_ = 0L; - - interOpThreadPool_ = 0; - - outputPartitionGraphs_ = false; - - if (debugOptionsBuilder_ == null) { - debugOptions_ = null; - } else { - debugOptions_ = null; - debugOptionsBuilder_ = null; - } - reportTensorAllocationsUponOom_ = false; - - if (experimentalBuilder_ == null) { - experimental_ = null; - } else { - experimental_ = null; - experimentalBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunOptions_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RunOptions getDefaultInstanceForType() { - return org.tensorflow.proto.framework.RunOptions.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.RunOptions build() { - org.tensorflow.proto.framework.RunOptions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RunOptions buildPartial() { - org.tensorflow.proto.framework.RunOptions result = new org.tensorflow.proto.framework.RunOptions(this); - result.traceLevel_ = traceLevel_; - result.timeoutInMs_ = timeoutInMs_; - result.interOpThreadPool_ = interOpThreadPool_; - result.outputPartitionGraphs_ = outputPartitionGraphs_; - if (debugOptionsBuilder_ == null) { - result.debugOptions_ = debugOptions_; - } else { - result.debugOptions_ = debugOptionsBuilder_.build(); - } - result.reportTensorAllocationsUponOom_ = reportTensorAllocationsUponOom_; - if (experimentalBuilder_ == null) { - result.experimental_ = experimental_; - } else { - result.experimental_ = experimentalBuilder_.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 org.tensorflow.proto.framework.RunOptions) { - return mergeFrom((org.tensorflow.proto.framework.RunOptions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.RunOptions other) { - if (other == org.tensorflow.proto.framework.RunOptions.getDefaultInstance()) return this; - if (other.traceLevel_ != 0) { - setTraceLevelValue(other.getTraceLevelValue()); - } - if (other.getTimeoutInMs() != 0L) { - setTimeoutInMs(other.getTimeoutInMs()); - } - if (other.getInterOpThreadPool() != 0) { - setInterOpThreadPool(other.getInterOpThreadPool()); - } - if (other.getOutputPartitionGraphs() != false) { - setOutputPartitionGraphs(other.getOutputPartitionGraphs()); - } - if (other.hasDebugOptions()) { - mergeDebugOptions(other.getDebugOptions()); - } - if (other.getReportTensorAllocationsUponOom() != false) { - setReportTensorAllocationsUponOom(other.getReportTensorAllocationsUponOom()); - } - if (other.hasExperimental()) { - mergeExperimental(other.getExperimental()); - } - 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 { - org.tensorflow.proto.framework.RunOptions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.RunOptions) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int traceLevel_ = 0; - /** - * .tensorflow.RunOptions.TraceLevel trace_level = 1; - */ - public int getTraceLevelValue() { - return traceLevel_; - } - /** - * .tensorflow.RunOptions.TraceLevel trace_level = 1; - */ - public Builder setTraceLevelValue(int value) { - traceLevel_ = value; - onChanged(); - return this; - } - /** - * .tensorflow.RunOptions.TraceLevel trace_level = 1; - */ - public org.tensorflow.proto.framework.RunOptions.TraceLevel getTraceLevel() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.RunOptions.TraceLevel result = org.tensorflow.proto.framework.RunOptions.TraceLevel.valueOf(traceLevel_); - return result == null ? org.tensorflow.proto.framework.RunOptions.TraceLevel.UNRECOGNIZED : result; - } - /** - * .tensorflow.RunOptions.TraceLevel trace_level = 1; - */ - public Builder setTraceLevel(org.tensorflow.proto.framework.RunOptions.TraceLevel value) { - if (value == null) { - throw new NullPointerException(); - } - - traceLevel_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tensorflow.RunOptions.TraceLevel trace_level = 1; - */ - public Builder clearTraceLevel() { - - traceLevel_ = 0; - onChanged(); - return this; - } - - private long timeoutInMs_ ; - /** - *
-     * Time to wait for operation to complete in milliseconds.
-     * 
- * - * int64 timeout_in_ms = 2; - */ - public long getTimeoutInMs() { - return timeoutInMs_; - } - /** - *
-     * Time to wait for operation to complete in milliseconds.
-     * 
- * - * int64 timeout_in_ms = 2; - */ - public Builder setTimeoutInMs(long value) { - - timeoutInMs_ = value; - onChanged(); - return this; - } - /** - *
-     * Time to wait for operation to complete in milliseconds.
-     * 
- * - * int64 timeout_in_ms = 2; - */ - public Builder clearTimeoutInMs() { - - timeoutInMs_ = 0L; - onChanged(); - return this; - } - - private int interOpThreadPool_ ; - /** - *
-     * The thread pool to use, if session_inter_op_thread_pool is configured.
-     * To use the caller thread set this to -1 - this uses the caller thread
-     * to execute Session::Run() and thus avoids a context switch. Using the
-     * caller thread to execute Session::Run() should be done ONLY for simple
-     * graphs, where the overhead of an additional context switch is
-     * comparable with the overhead of Session::Run().
-     * 
- * - * int32 inter_op_thread_pool = 3; - */ - public int getInterOpThreadPool() { - return interOpThreadPool_; - } - /** - *
-     * The thread pool to use, if session_inter_op_thread_pool is configured.
-     * To use the caller thread set this to -1 - this uses the caller thread
-     * to execute Session::Run() and thus avoids a context switch. Using the
-     * caller thread to execute Session::Run() should be done ONLY for simple
-     * graphs, where the overhead of an additional context switch is
-     * comparable with the overhead of Session::Run().
-     * 
- * - * int32 inter_op_thread_pool = 3; - */ - public Builder setInterOpThreadPool(int value) { - - interOpThreadPool_ = value; - onChanged(); - return this; - } - /** - *
-     * The thread pool to use, if session_inter_op_thread_pool is configured.
-     * To use the caller thread set this to -1 - this uses the caller thread
-     * to execute Session::Run() and thus avoids a context switch. Using the
-     * caller thread to execute Session::Run() should be done ONLY for simple
-     * graphs, where the overhead of an additional context switch is
-     * comparable with the overhead of Session::Run().
-     * 
- * - * int32 inter_op_thread_pool = 3; - */ - public Builder clearInterOpThreadPool() { - - interOpThreadPool_ = 0; - onChanged(); - return this; - } - - private boolean outputPartitionGraphs_ ; - /** - *
-     * Whether the partition graph(s) executed by the executor(s) should be
-     * outputted via RunMetadata.
-     * 
- * - * bool output_partition_graphs = 5; - */ - public boolean getOutputPartitionGraphs() { - return outputPartitionGraphs_; - } - /** - *
-     * Whether the partition graph(s) executed by the executor(s) should be
-     * outputted via RunMetadata.
-     * 
- * - * bool output_partition_graphs = 5; - */ - public Builder setOutputPartitionGraphs(boolean value) { - - outputPartitionGraphs_ = value; - onChanged(); - return this; - } - /** - *
-     * Whether the partition graph(s) executed by the executor(s) should be
-     * outputted via RunMetadata.
-     * 
- * - * bool output_partition_graphs = 5; - */ - public Builder clearOutputPartitionGraphs() { - - outputPartitionGraphs_ = false; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.DebugOptions debugOptions_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.DebugOptions, org.tensorflow.proto.framework.DebugOptions.Builder, org.tensorflow.proto.framework.DebugOptionsOrBuilder> debugOptionsBuilder_; - /** - *
-     * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
-     * 
- * - * .tensorflow.DebugOptions debug_options = 6; - */ - public boolean hasDebugOptions() { - return debugOptionsBuilder_ != null || debugOptions_ != null; - } - /** - *
-     * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
-     * 
- * - * .tensorflow.DebugOptions debug_options = 6; - */ - public org.tensorflow.proto.framework.DebugOptions getDebugOptions() { - if (debugOptionsBuilder_ == null) { - return debugOptions_ == null ? org.tensorflow.proto.framework.DebugOptions.getDefaultInstance() : debugOptions_; - } else { - return debugOptionsBuilder_.getMessage(); - } - } - /** - *
-     * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
-     * 
- * - * .tensorflow.DebugOptions debug_options = 6; - */ - public Builder setDebugOptions(org.tensorflow.proto.framework.DebugOptions value) { - if (debugOptionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - debugOptions_ = value; - onChanged(); - } else { - debugOptionsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
-     * 
- * - * .tensorflow.DebugOptions debug_options = 6; - */ - public Builder setDebugOptions( - org.tensorflow.proto.framework.DebugOptions.Builder builderForValue) { - if (debugOptionsBuilder_ == null) { - debugOptions_ = builderForValue.build(); - onChanged(); - } else { - debugOptionsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
-     * 
- * - * .tensorflow.DebugOptions debug_options = 6; - */ - public Builder mergeDebugOptions(org.tensorflow.proto.framework.DebugOptions value) { - if (debugOptionsBuilder_ == null) { - if (debugOptions_ != null) { - debugOptions_ = - org.tensorflow.proto.framework.DebugOptions.newBuilder(debugOptions_).mergeFrom(value).buildPartial(); - } else { - debugOptions_ = value; - } - onChanged(); - } else { - debugOptionsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
-     * 
- * - * .tensorflow.DebugOptions debug_options = 6; - */ - public Builder clearDebugOptions() { - if (debugOptionsBuilder_ == null) { - debugOptions_ = null; - onChanged(); - } else { - debugOptions_ = null; - debugOptionsBuilder_ = null; - } - - return this; - } - /** - *
-     * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
-     * 
- * - * .tensorflow.DebugOptions debug_options = 6; - */ - public org.tensorflow.proto.framework.DebugOptions.Builder getDebugOptionsBuilder() { - - onChanged(); - return getDebugOptionsFieldBuilder().getBuilder(); - } - /** - *
-     * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
-     * 
- * - * .tensorflow.DebugOptions debug_options = 6; - */ - public org.tensorflow.proto.framework.DebugOptionsOrBuilder getDebugOptionsOrBuilder() { - if (debugOptionsBuilder_ != null) { - return debugOptionsBuilder_.getMessageOrBuilder(); - } else { - return debugOptions_ == null ? - org.tensorflow.proto.framework.DebugOptions.getDefaultInstance() : debugOptions_; - } - } - /** - *
-     * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
-     * 
- * - * .tensorflow.DebugOptions debug_options = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.DebugOptions, org.tensorflow.proto.framework.DebugOptions.Builder, org.tensorflow.proto.framework.DebugOptionsOrBuilder> - getDebugOptionsFieldBuilder() { - if (debugOptionsBuilder_ == null) { - debugOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.DebugOptions, org.tensorflow.proto.framework.DebugOptions.Builder, org.tensorflow.proto.framework.DebugOptionsOrBuilder>( - getDebugOptions(), - getParentForChildren(), - isClean()); - debugOptions_ = null; - } - return debugOptionsBuilder_; - } - - private boolean reportTensorAllocationsUponOom_ ; - /** - *
-     * When enabled, causes tensor allocation information to be included in
-     * the error message when the Run() call fails because the allocator ran
-     * out of memory (OOM).
-     * Enabling this option can slow down the Run() call.
-     * 
- * - * bool report_tensor_allocations_upon_oom = 7; - */ - public boolean getReportTensorAllocationsUponOom() { - return reportTensorAllocationsUponOom_; - } - /** - *
-     * When enabled, causes tensor allocation information to be included in
-     * the error message when the Run() call fails because the allocator ran
-     * out of memory (OOM).
-     * Enabling this option can slow down the Run() call.
-     * 
- * - * bool report_tensor_allocations_upon_oom = 7; - */ - public Builder setReportTensorAllocationsUponOom(boolean value) { - - reportTensorAllocationsUponOom_ = value; - onChanged(); - return this; - } - /** - *
-     * When enabled, causes tensor allocation information to be included in
-     * the error message when the Run() call fails because the allocator ran
-     * out of memory (OOM).
-     * Enabling this option can slow down the Run() call.
-     * 
- * - * bool report_tensor_allocations_upon_oom = 7; - */ - public Builder clearReportTensorAllocationsUponOom() { - - reportTensorAllocationsUponOom_ = false; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.RunOptions.Experimental experimental_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.RunOptions.Experimental, org.tensorflow.proto.framework.RunOptions.Experimental.Builder, org.tensorflow.proto.framework.RunOptions.ExperimentalOrBuilder> experimentalBuilder_; - /** - * .tensorflow.RunOptions.Experimental experimental = 8; - */ - public boolean hasExperimental() { - return experimentalBuilder_ != null || experimental_ != null; - } - /** - * .tensorflow.RunOptions.Experimental experimental = 8; - */ - public org.tensorflow.proto.framework.RunOptions.Experimental getExperimental() { - if (experimentalBuilder_ == null) { - return experimental_ == null ? org.tensorflow.proto.framework.RunOptions.Experimental.getDefaultInstance() : experimental_; - } else { - return experimentalBuilder_.getMessage(); - } - } - /** - * .tensorflow.RunOptions.Experimental experimental = 8; - */ - public Builder setExperimental(org.tensorflow.proto.framework.RunOptions.Experimental value) { - if (experimentalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - experimental_ = value; - onChanged(); - } else { - experimentalBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.RunOptions.Experimental experimental = 8; - */ - public Builder setExperimental( - org.tensorflow.proto.framework.RunOptions.Experimental.Builder builderForValue) { - if (experimentalBuilder_ == null) { - experimental_ = builderForValue.build(); - onChanged(); - } else { - experimentalBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.RunOptions.Experimental experimental = 8; - */ - public Builder mergeExperimental(org.tensorflow.proto.framework.RunOptions.Experimental value) { - if (experimentalBuilder_ == null) { - if (experimental_ != null) { - experimental_ = - org.tensorflow.proto.framework.RunOptions.Experimental.newBuilder(experimental_).mergeFrom(value).buildPartial(); - } else { - experimental_ = value; - } - onChanged(); - } else { - experimentalBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.RunOptions.Experimental experimental = 8; - */ - public Builder clearExperimental() { - if (experimentalBuilder_ == null) { - experimental_ = null; - onChanged(); - } else { - experimental_ = null; - experimentalBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.RunOptions.Experimental experimental = 8; - */ - public org.tensorflow.proto.framework.RunOptions.Experimental.Builder getExperimentalBuilder() { - - onChanged(); - return getExperimentalFieldBuilder().getBuilder(); - } - /** - * .tensorflow.RunOptions.Experimental experimental = 8; - */ - public org.tensorflow.proto.framework.RunOptions.ExperimentalOrBuilder getExperimentalOrBuilder() { - if (experimentalBuilder_ != null) { - return experimentalBuilder_.getMessageOrBuilder(); - } else { - return experimental_ == null ? - org.tensorflow.proto.framework.RunOptions.Experimental.getDefaultInstance() : experimental_; - } - } - /** - * .tensorflow.RunOptions.Experimental experimental = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.RunOptions.Experimental, org.tensorflow.proto.framework.RunOptions.Experimental.Builder, org.tensorflow.proto.framework.RunOptions.ExperimentalOrBuilder> - getExperimentalFieldBuilder() { - if (experimentalBuilder_ == null) { - experimentalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.RunOptions.Experimental, org.tensorflow.proto.framework.RunOptions.Experimental.Builder, org.tensorflow.proto.framework.RunOptions.ExperimentalOrBuilder>( - getExperimental(), - getParentForChildren(), - isClean()); - experimental_ = null; - } - return experimentalBuilder_; - } - @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:tensorflow.RunOptions) - } - - // @@protoc_insertion_point(class_scope:tensorflow.RunOptions) - private static final org.tensorflow.proto.framework.RunOptions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.RunOptions(); - } - - public static org.tensorflow.proto.framework.RunOptions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunOptions(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.RunOptions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SaveableObject.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SaveableObject.java deleted file mode 100644 index 6a4731f2e49..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SaveableObject.java +++ /dev/null @@ -1,553 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.SaveableObject} - */ -public final class SaveableObject extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.SaveableObject) - SaveableObjectOrBuilder { -private static final long serialVersionUID = 0L; - // Use SaveableObject.newBuilder() to construct. - private SaveableObject(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SaveableObject() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SaveableObject(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SaveableObject( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 16: { - - saveFunction_ = input.readInt32(); - break; - } - case 24: { - - restoreFunction_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SaveableObject_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SaveableObject_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SaveableObject.class, org.tensorflow.proto.framework.SaveableObject.Builder.class); - } - - public static final int SAVE_FUNCTION_FIELD_NUMBER = 2; - private int saveFunction_; - /** - *
-   * Node ids of concrete functions for saving and loading from a checkpoint.
-   * These functions save and restore directly from tensors.
-   * 
- * - * int32 save_function = 2; - */ - public int getSaveFunction() { - return saveFunction_; - } - - public static final int RESTORE_FUNCTION_FIELD_NUMBER = 3; - private int restoreFunction_; - /** - * int32 restore_function = 3; - */ - public int getRestoreFunction() { - return restoreFunction_; - } - - 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 (saveFunction_ != 0) { - output.writeInt32(2, saveFunction_); - } - if (restoreFunction_ != 0) { - output.writeInt32(3, restoreFunction_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (saveFunction_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, saveFunction_); - } - if (restoreFunction_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, restoreFunction_); - } - 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 org.tensorflow.proto.framework.SaveableObject)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.SaveableObject other = (org.tensorflow.proto.framework.SaveableObject) obj; - - if (getSaveFunction() - != other.getSaveFunction()) return false; - if (getRestoreFunction() - != other.getRestoreFunction()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SAVE_FUNCTION_FIELD_NUMBER; - hash = (53 * hash) + getSaveFunction(); - hash = (37 * hash) + RESTORE_FUNCTION_FIELD_NUMBER; - hash = (53 * hash) + getRestoreFunction(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.SaveableObject parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SaveableObject parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SaveableObject parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SaveableObject parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SaveableObject parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SaveableObject parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SaveableObject parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SaveableObject 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 org.tensorflow.proto.framework.SaveableObject parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SaveableObject 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 org.tensorflow.proto.framework.SaveableObject parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SaveableObject 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(org.tensorflow.proto.framework.SaveableObject prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.SaveableObject} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.SaveableObject) - org.tensorflow.proto.framework.SaveableObjectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SaveableObject_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SaveableObject_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SaveableObject.class, org.tensorflow.proto.framework.SaveableObject.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.SaveableObject.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - saveFunction_ = 0; - - restoreFunction_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SaveableObject_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SaveableObject getDefaultInstanceForType() { - return org.tensorflow.proto.framework.SaveableObject.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.SaveableObject build() { - org.tensorflow.proto.framework.SaveableObject result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SaveableObject buildPartial() { - org.tensorflow.proto.framework.SaveableObject result = new org.tensorflow.proto.framework.SaveableObject(this); - result.saveFunction_ = saveFunction_; - result.restoreFunction_ = restoreFunction_; - 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 org.tensorflow.proto.framework.SaveableObject) { - return mergeFrom((org.tensorflow.proto.framework.SaveableObject)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.SaveableObject other) { - if (other == org.tensorflow.proto.framework.SaveableObject.getDefaultInstance()) return this; - if (other.getSaveFunction() != 0) { - setSaveFunction(other.getSaveFunction()); - } - if (other.getRestoreFunction() != 0) { - setRestoreFunction(other.getRestoreFunction()); - } - 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 { - org.tensorflow.proto.framework.SaveableObject parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.SaveableObject) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int saveFunction_ ; - /** - *
-     * Node ids of concrete functions for saving and loading from a checkpoint.
-     * These functions save and restore directly from tensors.
-     * 
- * - * int32 save_function = 2; - */ - public int getSaveFunction() { - return saveFunction_; - } - /** - *
-     * Node ids of concrete functions for saving and loading from a checkpoint.
-     * These functions save and restore directly from tensors.
-     * 
- * - * int32 save_function = 2; - */ - public Builder setSaveFunction(int value) { - - saveFunction_ = value; - onChanged(); - return this; - } - /** - *
-     * Node ids of concrete functions for saving and loading from a checkpoint.
-     * These functions save and restore directly from tensors.
-     * 
- * - * int32 save_function = 2; - */ - public Builder clearSaveFunction() { - - saveFunction_ = 0; - onChanged(); - return this; - } - - private int restoreFunction_ ; - /** - * int32 restore_function = 3; - */ - public int getRestoreFunction() { - return restoreFunction_; - } - /** - * int32 restore_function = 3; - */ - public Builder setRestoreFunction(int value) { - - restoreFunction_ = value; - onChanged(); - return this; - } - /** - * int32 restore_function = 3; - */ - public Builder clearRestoreFunction() { - - restoreFunction_ = 0; - 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:tensorflow.SaveableObject) - } - - // @@protoc_insertion_point(class_scope:tensorflow.SaveableObject) - private static final org.tensorflow.proto.framework.SaveableObject DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.SaveableObject(); - } - - public static org.tensorflow.proto.framework.SaveableObject getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SaveableObject parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SaveableObject(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SaveableObject getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SaveableObjectOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SaveableObjectOrBuilder.java deleted file mode 100644 index beacb40747e..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SaveableObjectOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -public interface SaveableObjectOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.SaveableObject) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Node ids of concrete functions for saving and loading from a checkpoint.
-   * These functions save and restore directly from tensors.
-   * 
- * - * int32 save_function = 2; - */ - int getSaveFunction(); - - /** - * int32 restore_function = 3; - */ - int getRestoreFunction(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedAsset.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedAsset.java deleted file mode 100644 index 2558719f7c3..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedAsset.java +++ /dev/null @@ -1,514 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -/** - *
- * A SavedAsset points to an asset in the MetaGraph.
- * When bound to a function this object evaluates to a tensor with the absolute
- * filename. Users should not depend on a particular part of the filename to
- * remain stable (e.g. basename could be changed).
- * 
- * - * Protobuf type {@code tensorflow.SavedAsset} - */ -public final class SavedAsset extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.SavedAsset) - SavedAssetOrBuilder { -private static final long serialVersionUID = 0L; - // Use SavedAsset.newBuilder() to construct. - private SavedAsset(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SavedAsset() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SavedAsset(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SavedAsset( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - assetFileDefIndex_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedAsset_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedAsset_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SavedAsset.class, org.tensorflow.proto.framework.SavedAsset.Builder.class); - } - - public static final int ASSET_FILE_DEF_INDEX_FIELD_NUMBER = 1; - private int assetFileDefIndex_; - /** - *
-   * Index into `MetaGraphDef.asset_file_def[]` that describes the Asset.
-   * Only the field `AssetFileDef.filename` is used. Other fields, such as
-   * `AssetFileDef.tensor_info`, MUST be ignored.
-   * 
- * - * int32 asset_file_def_index = 1; - */ - public int getAssetFileDefIndex() { - return assetFileDefIndex_; - } - - 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 (assetFileDefIndex_ != 0) { - output.writeInt32(1, assetFileDefIndex_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (assetFileDefIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, assetFileDefIndex_); - } - 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 org.tensorflow.proto.framework.SavedAsset)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.SavedAsset other = (org.tensorflow.proto.framework.SavedAsset) obj; - - if (getAssetFileDefIndex() - != other.getAssetFileDefIndex()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ASSET_FILE_DEF_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getAssetFileDefIndex(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.SavedAsset parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedAsset parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedAsset parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedAsset parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedAsset parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedAsset parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedAsset parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedAsset 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 org.tensorflow.proto.framework.SavedAsset parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedAsset 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 org.tensorflow.proto.framework.SavedAsset parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedAsset 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(org.tensorflow.proto.framework.SavedAsset 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; - } - /** - *
-   * A SavedAsset points to an asset in the MetaGraph.
-   * When bound to a function this object evaluates to a tensor with the absolute
-   * filename. Users should not depend on a particular part of the filename to
-   * remain stable (e.g. basename could be changed).
-   * 
- * - * Protobuf type {@code tensorflow.SavedAsset} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.SavedAsset) - org.tensorflow.proto.framework.SavedAssetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedAsset_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedAsset_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SavedAsset.class, org.tensorflow.proto.framework.SavedAsset.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.SavedAsset.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - assetFileDefIndex_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedAsset_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedAsset getDefaultInstanceForType() { - return org.tensorflow.proto.framework.SavedAsset.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedAsset build() { - org.tensorflow.proto.framework.SavedAsset result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedAsset buildPartial() { - org.tensorflow.proto.framework.SavedAsset result = new org.tensorflow.proto.framework.SavedAsset(this); - result.assetFileDefIndex_ = assetFileDefIndex_; - 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 org.tensorflow.proto.framework.SavedAsset) { - return mergeFrom((org.tensorflow.proto.framework.SavedAsset)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.SavedAsset other) { - if (other == org.tensorflow.proto.framework.SavedAsset.getDefaultInstance()) return this; - if (other.getAssetFileDefIndex() != 0) { - setAssetFileDefIndex(other.getAssetFileDefIndex()); - } - 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 { - org.tensorflow.proto.framework.SavedAsset parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.SavedAsset) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int assetFileDefIndex_ ; - /** - *
-     * Index into `MetaGraphDef.asset_file_def[]` that describes the Asset.
-     * Only the field `AssetFileDef.filename` is used. Other fields, such as
-     * `AssetFileDef.tensor_info`, MUST be ignored.
-     * 
- * - * int32 asset_file_def_index = 1; - */ - public int getAssetFileDefIndex() { - return assetFileDefIndex_; - } - /** - *
-     * Index into `MetaGraphDef.asset_file_def[]` that describes the Asset.
-     * Only the field `AssetFileDef.filename` is used. Other fields, such as
-     * `AssetFileDef.tensor_info`, MUST be ignored.
-     * 
- * - * int32 asset_file_def_index = 1; - */ - public Builder setAssetFileDefIndex(int value) { - - assetFileDefIndex_ = value; - onChanged(); - return this; - } - /** - *
-     * Index into `MetaGraphDef.asset_file_def[]` that describes the Asset.
-     * Only the field `AssetFileDef.filename` is used. Other fields, such as
-     * `AssetFileDef.tensor_info`, MUST be ignored.
-     * 
- * - * int32 asset_file_def_index = 1; - */ - public Builder clearAssetFileDefIndex() { - - assetFileDefIndex_ = 0; - 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:tensorflow.SavedAsset) - } - - // @@protoc_insertion_point(class_scope:tensorflow.SavedAsset) - private static final org.tensorflow.proto.framework.SavedAsset DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.SavedAsset(); - } - - public static org.tensorflow.proto.framework.SavedAsset getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SavedAsset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SavedAsset(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedAsset getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedAssetOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedAssetOrBuilder.java deleted file mode 100644 index a12a5ff6ad0..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedAssetOrBuilder.java +++ /dev/null @@ -1,20 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -public interface SavedAssetOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.SavedAsset) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Index into `MetaGraphDef.asset_file_def[]` that describes the Asset.
-   * Only the field `AssetFileDef.filename` is used. Other fields, such as
-   * `AssetFileDef.tensor_info`, MUST be ignored.
-   * 
- * - * int32 asset_file_def_index = 1; - */ - int getAssetFileDefIndex(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedBareConcreteFunction.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedBareConcreteFunction.java deleted file mode 100644 index 84ac9936dcd..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedBareConcreteFunction.java +++ /dev/null @@ -1,1162 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.SavedBareConcreteFunction} - */ -public final class SavedBareConcreteFunction extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.SavedBareConcreteFunction) - SavedBareConcreteFunctionOrBuilder { -private static final long serialVersionUID = 0L; - // Use SavedBareConcreteFunction.newBuilder() to construct. - private SavedBareConcreteFunction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SavedBareConcreteFunction() { - concreteFunctionName_ = ""; - argumentKeywords_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SavedBareConcreteFunction(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SavedBareConcreteFunction( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - concreteFunctionName_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - argumentKeywords_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - argumentKeywords_.add(s); - break; - } - case 24: { - - allowedPositionalArguments_ = input.readInt64(); - break; - } - case 34: { - org.tensorflow.proto.framework.FunctionSpec.Builder subBuilder = null; - if (functionSpec_ != null) { - subBuilder = functionSpec_.toBuilder(); - } - functionSpec_ = input.readMessage(org.tensorflow.proto.framework.FunctionSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(functionSpec_); - functionSpec_ = subBuilder.buildPartial(); - } - - 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)) { - argumentKeywords_ = argumentKeywords_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedBareConcreteFunction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedBareConcreteFunction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SavedBareConcreteFunction.class, org.tensorflow.proto.framework.SavedBareConcreteFunction.Builder.class); - } - - public static final int CONCRETE_FUNCTION_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object concreteFunctionName_; - /** - *
-   * Identifies a SavedConcreteFunction.
-   * 
- * - * string concrete_function_name = 1; - */ - public java.lang.String getConcreteFunctionName() { - java.lang.Object ref = concreteFunctionName_; - 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(); - concreteFunctionName_ = s; - return s; - } - } - /** - *
-   * Identifies a SavedConcreteFunction.
-   * 
- * - * string concrete_function_name = 1; - */ - public com.google.protobuf.ByteString - getConcreteFunctionNameBytes() { - java.lang.Object ref = concreteFunctionName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - concreteFunctionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ARGUMENT_KEYWORDS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList argumentKeywords_; - /** - *
-   * A sequence of unique strings, one per Tensor argument.
-   * 
- * - * repeated string argument_keywords = 2; - */ - public com.google.protobuf.ProtocolStringList - getArgumentKeywordsList() { - return argumentKeywords_; - } - /** - *
-   * A sequence of unique strings, one per Tensor argument.
-   * 
- * - * repeated string argument_keywords = 2; - */ - public int getArgumentKeywordsCount() { - return argumentKeywords_.size(); - } - /** - *
-   * A sequence of unique strings, one per Tensor argument.
-   * 
- * - * repeated string argument_keywords = 2; - */ - public java.lang.String getArgumentKeywords(int index) { - return argumentKeywords_.get(index); - } - /** - *
-   * A sequence of unique strings, one per Tensor argument.
-   * 
- * - * repeated string argument_keywords = 2; - */ - public com.google.protobuf.ByteString - getArgumentKeywordsBytes(int index) { - return argumentKeywords_.getByteString(index); - } - - public static final int ALLOWED_POSITIONAL_ARGUMENTS_FIELD_NUMBER = 3; - private long allowedPositionalArguments_; - /** - *
-   * The prefix of `argument_keywords` which may be identified by position.
-   * 
- * - * int64 allowed_positional_arguments = 3; - */ - public long getAllowedPositionalArguments() { - return allowedPositionalArguments_; - } - - public static final int FUNCTION_SPEC_FIELD_NUMBER = 4; - private org.tensorflow.proto.framework.FunctionSpec functionSpec_; - /** - *
-   * The spec of the function that this ConcreteFunction is traced from. This
-   * allows the ConcreteFunction to be called with nest structure inputs. This
-   * field may not be populated. If this field is absent, the concrete function
-   * can only be called with flat inputs.
-   * TODO(b/169361281): support calling saved ConcreteFunction with structured
-   * inputs in C++ SavedModel API.
-   * 
- * - * .tensorflow.FunctionSpec function_spec = 4; - */ - public boolean hasFunctionSpec() { - return functionSpec_ != null; - } - /** - *
-   * The spec of the function that this ConcreteFunction is traced from. This
-   * allows the ConcreteFunction to be called with nest structure inputs. This
-   * field may not be populated. If this field is absent, the concrete function
-   * can only be called with flat inputs.
-   * TODO(b/169361281): support calling saved ConcreteFunction with structured
-   * inputs in C++ SavedModel API.
-   * 
- * - * .tensorflow.FunctionSpec function_spec = 4; - */ - public org.tensorflow.proto.framework.FunctionSpec getFunctionSpec() { - return functionSpec_ == null ? org.tensorflow.proto.framework.FunctionSpec.getDefaultInstance() : functionSpec_; - } - /** - *
-   * The spec of the function that this ConcreteFunction is traced from. This
-   * allows the ConcreteFunction to be called with nest structure inputs. This
-   * field may not be populated. If this field is absent, the concrete function
-   * can only be called with flat inputs.
-   * TODO(b/169361281): support calling saved ConcreteFunction with structured
-   * inputs in C++ SavedModel API.
-   * 
- * - * .tensorflow.FunctionSpec function_spec = 4; - */ - public org.tensorflow.proto.framework.FunctionSpecOrBuilder getFunctionSpecOrBuilder() { - return getFunctionSpec(); - } - - 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 (!getConcreteFunctionNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, concreteFunctionName_); - } - for (int i = 0; i < argumentKeywords_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, argumentKeywords_.getRaw(i)); - } - if (allowedPositionalArguments_ != 0L) { - output.writeInt64(3, allowedPositionalArguments_); - } - if (functionSpec_ != null) { - output.writeMessage(4, getFunctionSpec()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getConcreteFunctionNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, concreteFunctionName_); - } - { - int dataSize = 0; - for (int i = 0; i < argumentKeywords_.size(); i++) { - dataSize += computeStringSizeNoTag(argumentKeywords_.getRaw(i)); - } - size += dataSize; - size += 1 * getArgumentKeywordsList().size(); - } - if (allowedPositionalArguments_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, allowedPositionalArguments_); - } - if (functionSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getFunctionSpec()); - } - 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 org.tensorflow.proto.framework.SavedBareConcreteFunction)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.SavedBareConcreteFunction other = (org.tensorflow.proto.framework.SavedBareConcreteFunction) obj; - - if (!getConcreteFunctionName() - .equals(other.getConcreteFunctionName())) return false; - if (!getArgumentKeywordsList() - .equals(other.getArgumentKeywordsList())) return false; - if (getAllowedPositionalArguments() - != other.getAllowedPositionalArguments()) return false; - if (hasFunctionSpec() != other.hasFunctionSpec()) return false; - if (hasFunctionSpec()) { - if (!getFunctionSpec() - .equals(other.getFunctionSpec())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONCRETE_FUNCTION_NAME_FIELD_NUMBER; - hash = (53 * hash) + getConcreteFunctionName().hashCode(); - if (getArgumentKeywordsCount() > 0) { - hash = (37 * hash) + ARGUMENT_KEYWORDS_FIELD_NUMBER; - hash = (53 * hash) + getArgumentKeywordsList().hashCode(); - } - hash = (37 * hash) + ALLOWED_POSITIONAL_ARGUMENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAllowedPositionalArguments()); - if (hasFunctionSpec()) { - hash = (37 * hash) + FUNCTION_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getFunctionSpec().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.SavedBareConcreteFunction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedBareConcreteFunction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedBareConcreteFunction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedBareConcreteFunction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedBareConcreteFunction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedBareConcreteFunction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedBareConcreteFunction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedBareConcreteFunction 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 org.tensorflow.proto.framework.SavedBareConcreteFunction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedBareConcreteFunction 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 org.tensorflow.proto.framework.SavedBareConcreteFunction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedBareConcreteFunction 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(org.tensorflow.proto.framework.SavedBareConcreteFunction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.SavedBareConcreteFunction} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.SavedBareConcreteFunction) - org.tensorflow.proto.framework.SavedBareConcreteFunctionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedBareConcreteFunction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedBareConcreteFunction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SavedBareConcreteFunction.class, org.tensorflow.proto.framework.SavedBareConcreteFunction.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.SavedBareConcreteFunction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - concreteFunctionName_ = ""; - - argumentKeywords_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - allowedPositionalArguments_ = 0L; - - if (functionSpecBuilder_ == null) { - functionSpec_ = null; - } else { - functionSpec_ = null; - functionSpecBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedBareConcreteFunction_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedBareConcreteFunction getDefaultInstanceForType() { - return org.tensorflow.proto.framework.SavedBareConcreteFunction.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedBareConcreteFunction build() { - org.tensorflow.proto.framework.SavedBareConcreteFunction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedBareConcreteFunction buildPartial() { - org.tensorflow.proto.framework.SavedBareConcreteFunction result = new org.tensorflow.proto.framework.SavedBareConcreteFunction(this); - int from_bitField0_ = bitField0_; - result.concreteFunctionName_ = concreteFunctionName_; - if (((bitField0_ & 0x00000001) != 0)) { - argumentKeywords_ = argumentKeywords_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.argumentKeywords_ = argumentKeywords_; - result.allowedPositionalArguments_ = allowedPositionalArguments_; - if (functionSpecBuilder_ == null) { - result.functionSpec_ = functionSpec_; - } else { - result.functionSpec_ = functionSpecBuilder_.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 org.tensorflow.proto.framework.SavedBareConcreteFunction) { - return mergeFrom((org.tensorflow.proto.framework.SavedBareConcreteFunction)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.SavedBareConcreteFunction other) { - if (other == org.tensorflow.proto.framework.SavedBareConcreteFunction.getDefaultInstance()) return this; - if (!other.getConcreteFunctionName().isEmpty()) { - concreteFunctionName_ = other.concreteFunctionName_; - onChanged(); - } - if (!other.argumentKeywords_.isEmpty()) { - if (argumentKeywords_.isEmpty()) { - argumentKeywords_ = other.argumentKeywords_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureArgumentKeywordsIsMutable(); - argumentKeywords_.addAll(other.argumentKeywords_); - } - onChanged(); - } - if (other.getAllowedPositionalArguments() != 0L) { - setAllowedPositionalArguments(other.getAllowedPositionalArguments()); - } - if (other.hasFunctionSpec()) { - mergeFunctionSpec(other.getFunctionSpec()); - } - 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 { - org.tensorflow.proto.framework.SavedBareConcreteFunction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.SavedBareConcreteFunction) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object concreteFunctionName_ = ""; - /** - *
-     * Identifies a SavedConcreteFunction.
-     * 
- * - * string concrete_function_name = 1; - */ - public java.lang.String getConcreteFunctionName() { - java.lang.Object ref = concreteFunctionName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - concreteFunctionName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Identifies a SavedConcreteFunction.
-     * 
- * - * string concrete_function_name = 1; - */ - public com.google.protobuf.ByteString - getConcreteFunctionNameBytes() { - java.lang.Object ref = concreteFunctionName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - concreteFunctionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Identifies a SavedConcreteFunction.
-     * 
- * - * string concrete_function_name = 1; - */ - public Builder setConcreteFunctionName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - concreteFunctionName_ = value; - onChanged(); - return this; - } - /** - *
-     * Identifies a SavedConcreteFunction.
-     * 
- * - * string concrete_function_name = 1; - */ - public Builder clearConcreteFunctionName() { - - concreteFunctionName_ = getDefaultInstance().getConcreteFunctionName(); - onChanged(); - return this; - } - /** - *
-     * Identifies a SavedConcreteFunction.
-     * 
- * - * string concrete_function_name = 1; - */ - public Builder setConcreteFunctionNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - concreteFunctionName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList argumentKeywords_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureArgumentKeywordsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - argumentKeywords_ = new com.google.protobuf.LazyStringArrayList(argumentKeywords_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * A sequence of unique strings, one per Tensor argument.
-     * 
- * - * repeated string argument_keywords = 2; - */ - public com.google.protobuf.ProtocolStringList - getArgumentKeywordsList() { - return argumentKeywords_.getUnmodifiableView(); - } - /** - *
-     * A sequence of unique strings, one per Tensor argument.
-     * 
- * - * repeated string argument_keywords = 2; - */ - public int getArgumentKeywordsCount() { - return argumentKeywords_.size(); - } - /** - *
-     * A sequence of unique strings, one per Tensor argument.
-     * 
- * - * repeated string argument_keywords = 2; - */ - public java.lang.String getArgumentKeywords(int index) { - return argumentKeywords_.get(index); - } - /** - *
-     * A sequence of unique strings, one per Tensor argument.
-     * 
- * - * repeated string argument_keywords = 2; - */ - public com.google.protobuf.ByteString - getArgumentKeywordsBytes(int index) { - return argumentKeywords_.getByteString(index); - } - /** - *
-     * A sequence of unique strings, one per Tensor argument.
-     * 
- * - * repeated string argument_keywords = 2; - */ - public Builder setArgumentKeywords( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgumentKeywordsIsMutable(); - argumentKeywords_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * A sequence of unique strings, one per Tensor argument.
-     * 
- * - * repeated string argument_keywords = 2; - */ - public Builder addArgumentKeywords( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgumentKeywordsIsMutable(); - argumentKeywords_.add(value); - onChanged(); - return this; - } - /** - *
-     * A sequence of unique strings, one per Tensor argument.
-     * 
- * - * repeated string argument_keywords = 2; - */ - public Builder addAllArgumentKeywords( - java.lang.Iterable values) { - ensureArgumentKeywordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, argumentKeywords_); - onChanged(); - return this; - } - /** - *
-     * A sequence of unique strings, one per Tensor argument.
-     * 
- * - * repeated string argument_keywords = 2; - */ - public Builder clearArgumentKeywords() { - argumentKeywords_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * A sequence of unique strings, one per Tensor argument.
-     * 
- * - * repeated string argument_keywords = 2; - */ - public Builder addArgumentKeywordsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArgumentKeywordsIsMutable(); - argumentKeywords_.add(value); - onChanged(); - return this; - } - - private long allowedPositionalArguments_ ; - /** - *
-     * The prefix of `argument_keywords` which may be identified by position.
-     * 
- * - * int64 allowed_positional_arguments = 3; - */ - public long getAllowedPositionalArguments() { - return allowedPositionalArguments_; - } - /** - *
-     * The prefix of `argument_keywords` which may be identified by position.
-     * 
- * - * int64 allowed_positional_arguments = 3; - */ - public Builder setAllowedPositionalArguments(long value) { - - allowedPositionalArguments_ = value; - onChanged(); - return this; - } - /** - *
-     * The prefix of `argument_keywords` which may be identified by position.
-     * 
- * - * int64 allowed_positional_arguments = 3; - */ - public Builder clearAllowedPositionalArguments() { - - allowedPositionalArguments_ = 0L; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.FunctionSpec functionSpec_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.FunctionSpec, org.tensorflow.proto.framework.FunctionSpec.Builder, org.tensorflow.proto.framework.FunctionSpecOrBuilder> functionSpecBuilder_; - /** - *
-     * The spec of the function that this ConcreteFunction is traced from. This
-     * allows the ConcreteFunction to be called with nest structure inputs. This
-     * field may not be populated. If this field is absent, the concrete function
-     * can only be called with flat inputs.
-     * TODO(b/169361281): support calling saved ConcreteFunction with structured
-     * inputs in C++ SavedModel API.
-     * 
- * - * .tensorflow.FunctionSpec function_spec = 4; - */ - public boolean hasFunctionSpec() { - return functionSpecBuilder_ != null || functionSpec_ != null; - } - /** - *
-     * The spec of the function that this ConcreteFunction is traced from. This
-     * allows the ConcreteFunction to be called with nest structure inputs. This
-     * field may not be populated. If this field is absent, the concrete function
-     * can only be called with flat inputs.
-     * TODO(b/169361281): support calling saved ConcreteFunction with structured
-     * inputs in C++ SavedModel API.
-     * 
- * - * .tensorflow.FunctionSpec function_spec = 4; - */ - public org.tensorflow.proto.framework.FunctionSpec getFunctionSpec() { - if (functionSpecBuilder_ == null) { - return functionSpec_ == null ? org.tensorflow.proto.framework.FunctionSpec.getDefaultInstance() : functionSpec_; - } else { - return functionSpecBuilder_.getMessage(); - } - } - /** - *
-     * The spec of the function that this ConcreteFunction is traced from. This
-     * allows the ConcreteFunction to be called with nest structure inputs. This
-     * field may not be populated. If this field is absent, the concrete function
-     * can only be called with flat inputs.
-     * TODO(b/169361281): support calling saved ConcreteFunction with structured
-     * inputs in C++ SavedModel API.
-     * 
- * - * .tensorflow.FunctionSpec function_spec = 4; - */ - public Builder setFunctionSpec(org.tensorflow.proto.framework.FunctionSpec value) { - if (functionSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - functionSpec_ = value; - onChanged(); - } else { - functionSpecBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The spec of the function that this ConcreteFunction is traced from. This
-     * allows the ConcreteFunction to be called with nest structure inputs. This
-     * field may not be populated. If this field is absent, the concrete function
-     * can only be called with flat inputs.
-     * TODO(b/169361281): support calling saved ConcreteFunction with structured
-     * inputs in C++ SavedModel API.
-     * 
- * - * .tensorflow.FunctionSpec function_spec = 4; - */ - public Builder setFunctionSpec( - org.tensorflow.proto.framework.FunctionSpec.Builder builderForValue) { - if (functionSpecBuilder_ == null) { - functionSpec_ = builderForValue.build(); - onChanged(); - } else { - functionSpecBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The spec of the function that this ConcreteFunction is traced from. This
-     * allows the ConcreteFunction to be called with nest structure inputs. This
-     * field may not be populated. If this field is absent, the concrete function
-     * can only be called with flat inputs.
-     * TODO(b/169361281): support calling saved ConcreteFunction with structured
-     * inputs in C++ SavedModel API.
-     * 
- * - * .tensorflow.FunctionSpec function_spec = 4; - */ - public Builder mergeFunctionSpec(org.tensorflow.proto.framework.FunctionSpec value) { - if (functionSpecBuilder_ == null) { - if (functionSpec_ != null) { - functionSpec_ = - org.tensorflow.proto.framework.FunctionSpec.newBuilder(functionSpec_).mergeFrom(value).buildPartial(); - } else { - functionSpec_ = value; - } - onChanged(); - } else { - functionSpecBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The spec of the function that this ConcreteFunction is traced from. This
-     * allows the ConcreteFunction to be called with nest structure inputs. This
-     * field may not be populated. If this field is absent, the concrete function
-     * can only be called with flat inputs.
-     * TODO(b/169361281): support calling saved ConcreteFunction with structured
-     * inputs in C++ SavedModel API.
-     * 
- * - * .tensorflow.FunctionSpec function_spec = 4; - */ - public Builder clearFunctionSpec() { - if (functionSpecBuilder_ == null) { - functionSpec_ = null; - onChanged(); - } else { - functionSpec_ = null; - functionSpecBuilder_ = null; - } - - return this; - } - /** - *
-     * The spec of the function that this ConcreteFunction is traced from. This
-     * allows the ConcreteFunction to be called with nest structure inputs. This
-     * field may not be populated. If this field is absent, the concrete function
-     * can only be called with flat inputs.
-     * TODO(b/169361281): support calling saved ConcreteFunction with structured
-     * inputs in C++ SavedModel API.
-     * 
- * - * .tensorflow.FunctionSpec function_spec = 4; - */ - public org.tensorflow.proto.framework.FunctionSpec.Builder getFunctionSpecBuilder() { - - onChanged(); - return getFunctionSpecFieldBuilder().getBuilder(); - } - /** - *
-     * The spec of the function that this ConcreteFunction is traced from. This
-     * allows the ConcreteFunction to be called with nest structure inputs. This
-     * field may not be populated. If this field is absent, the concrete function
-     * can only be called with flat inputs.
-     * TODO(b/169361281): support calling saved ConcreteFunction with structured
-     * inputs in C++ SavedModel API.
-     * 
- * - * .tensorflow.FunctionSpec function_spec = 4; - */ - public org.tensorflow.proto.framework.FunctionSpecOrBuilder getFunctionSpecOrBuilder() { - if (functionSpecBuilder_ != null) { - return functionSpecBuilder_.getMessageOrBuilder(); - } else { - return functionSpec_ == null ? - org.tensorflow.proto.framework.FunctionSpec.getDefaultInstance() : functionSpec_; - } - } - /** - *
-     * The spec of the function that this ConcreteFunction is traced from. This
-     * allows the ConcreteFunction to be called with nest structure inputs. This
-     * field may not be populated. If this field is absent, the concrete function
-     * can only be called with flat inputs.
-     * TODO(b/169361281): support calling saved ConcreteFunction with structured
-     * inputs in C++ SavedModel API.
-     * 
- * - * .tensorflow.FunctionSpec function_spec = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.FunctionSpec, org.tensorflow.proto.framework.FunctionSpec.Builder, org.tensorflow.proto.framework.FunctionSpecOrBuilder> - getFunctionSpecFieldBuilder() { - if (functionSpecBuilder_ == null) { - functionSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.FunctionSpec, org.tensorflow.proto.framework.FunctionSpec.Builder, org.tensorflow.proto.framework.FunctionSpecOrBuilder>( - getFunctionSpec(), - getParentForChildren(), - isClean()); - functionSpec_ = null; - } - return functionSpecBuilder_; - } - @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:tensorflow.SavedBareConcreteFunction) - } - - // @@protoc_insertion_point(class_scope:tensorflow.SavedBareConcreteFunction) - private static final org.tensorflow.proto.framework.SavedBareConcreteFunction DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.SavedBareConcreteFunction(); - } - - public static org.tensorflow.proto.framework.SavedBareConcreteFunction getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SavedBareConcreteFunction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SavedBareConcreteFunction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedBareConcreteFunction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedBareConcreteFunctionOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedBareConcreteFunctionOrBuilder.java deleted file mode 100644 index 8cb7224059b..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedBareConcreteFunctionOrBuilder.java +++ /dev/null @@ -1,111 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -public interface SavedBareConcreteFunctionOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.SavedBareConcreteFunction) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Identifies a SavedConcreteFunction.
-   * 
- * - * string concrete_function_name = 1; - */ - java.lang.String getConcreteFunctionName(); - /** - *
-   * Identifies a SavedConcreteFunction.
-   * 
- * - * string concrete_function_name = 1; - */ - com.google.protobuf.ByteString - getConcreteFunctionNameBytes(); - - /** - *
-   * A sequence of unique strings, one per Tensor argument.
-   * 
- * - * repeated string argument_keywords = 2; - */ - java.util.List - getArgumentKeywordsList(); - /** - *
-   * A sequence of unique strings, one per Tensor argument.
-   * 
- * - * repeated string argument_keywords = 2; - */ - int getArgumentKeywordsCount(); - /** - *
-   * A sequence of unique strings, one per Tensor argument.
-   * 
- * - * repeated string argument_keywords = 2; - */ - java.lang.String getArgumentKeywords(int index); - /** - *
-   * A sequence of unique strings, one per Tensor argument.
-   * 
- * - * repeated string argument_keywords = 2; - */ - com.google.protobuf.ByteString - getArgumentKeywordsBytes(int index); - - /** - *
-   * The prefix of `argument_keywords` which may be identified by position.
-   * 
- * - * int64 allowed_positional_arguments = 3; - */ - long getAllowedPositionalArguments(); - - /** - *
-   * The spec of the function that this ConcreteFunction is traced from. This
-   * allows the ConcreteFunction to be called with nest structure inputs. This
-   * field may not be populated. If this field is absent, the concrete function
-   * can only be called with flat inputs.
-   * TODO(b/169361281): support calling saved ConcreteFunction with structured
-   * inputs in C++ SavedModel API.
-   * 
- * - * .tensorflow.FunctionSpec function_spec = 4; - */ - boolean hasFunctionSpec(); - /** - *
-   * The spec of the function that this ConcreteFunction is traced from. This
-   * allows the ConcreteFunction to be called with nest structure inputs. This
-   * field may not be populated. If this field is absent, the concrete function
-   * can only be called with flat inputs.
-   * TODO(b/169361281): support calling saved ConcreteFunction with structured
-   * inputs in C++ SavedModel API.
-   * 
- * - * .tensorflow.FunctionSpec function_spec = 4; - */ - org.tensorflow.proto.framework.FunctionSpec getFunctionSpec(); - /** - *
-   * The spec of the function that this ConcreteFunction is traced from. This
-   * allows the ConcreteFunction to be called with nest structure inputs. This
-   * field may not be populated. If this field is absent, the concrete function
-   * can only be called with flat inputs.
-   * TODO(b/169361281): support calling saved ConcreteFunction with structured
-   * inputs in C++ SavedModel API.
-   * 
- * - * .tensorflow.FunctionSpec function_spec = 4; - */ - org.tensorflow.proto.framework.FunctionSpecOrBuilder getFunctionSpecOrBuilder(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedConcreteFunction.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedConcreteFunction.java deleted file mode 100644 index 12db201a9b8..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedConcreteFunction.java +++ /dev/null @@ -1,1086 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Stores low-level information about a concrete function. Referenced in either
- * a SavedFunction or a SavedBareConcreteFunction.
- * 
- * - * Protobuf type {@code tensorflow.SavedConcreteFunction} - */ -public final class SavedConcreteFunction extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.SavedConcreteFunction) - SavedConcreteFunctionOrBuilder { -private static final long serialVersionUID = 0L; - // Use SavedConcreteFunction.newBuilder() to construct. - private SavedConcreteFunction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SavedConcreteFunction() { - boundInputs_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SavedConcreteFunction(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SavedConcreteFunction( - 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 16: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - boundInputs_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - boundInputs_.addInt(input.readInt32()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - boundInputs_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - boundInputs_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } - case 26: { - org.tensorflow.proto.framework.StructuredValue.Builder subBuilder = null; - if (canonicalizedInputSignature_ != null) { - subBuilder = canonicalizedInputSignature_.toBuilder(); - } - canonicalizedInputSignature_ = input.readMessage(org.tensorflow.proto.framework.StructuredValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(canonicalizedInputSignature_); - canonicalizedInputSignature_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - org.tensorflow.proto.framework.StructuredValue.Builder subBuilder = null; - if (outputSignature_ != null) { - subBuilder = outputSignature_.toBuilder(); - } - outputSignature_ = input.readMessage(org.tensorflow.proto.framework.StructuredValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputSignature_); - outputSignature_ = subBuilder.buildPartial(); - } - - 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)) { - boundInputs_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedConcreteFunction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedConcreteFunction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SavedConcreteFunction.class, org.tensorflow.proto.framework.SavedConcreteFunction.Builder.class); - } - - public static final int BOUND_INPUTS_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.IntList boundInputs_; - /** - * repeated int32 bound_inputs = 2; - */ - public java.util.List - getBoundInputsList() { - return boundInputs_; - } - /** - * repeated int32 bound_inputs = 2; - */ - public int getBoundInputsCount() { - return boundInputs_.size(); - } - /** - * repeated int32 bound_inputs = 2; - */ - public int getBoundInputs(int index) { - return boundInputs_.getInt(index); - } - private int boundInputsMemoizedSerializedSize = -1; - - public static final int CANONICALIZED_INPUT_SIGNATURE_FIELD_NUMBER = 3; - private org.tensorflow.proto.framework.StructuredValue canonicalizedInputSignature_; - /** - *
-   * Input in canonicalized form that was received to create this concrete
-   * function.
-   * 
- * - * .tensorflow.StructuredValue canonicalized_input_signature = 3; - */ - public boolean hasCanonicalizedInputSignature() { - return canonicalizedInputSignature_ != null; - } - /** - *
-   * Input in canonicalized form that was received to create this concrete
-   * function.
-   * 
- * - * .tensorflow.StructuredValue canonicalized_input_signature = 3; - */ - public org.tensorflow.proto.framework.StructuredValue getCanonicalizedInputSignature() { - return canonicalizedInputSignature_ == null ? org.tensorflow.proto.framework.StructuredValue.getDefaultInstance() : canonicalizedInputSignature_; - } - /** - *
-   * Input in canonicalized form that was received to create this concrete
-   * function.
-   * 
- * - * .tensorflow.StructuredValue canonicalized_input_signature = 3; - */ - public org.tensorflow.proto.framework.StructuredValueOrBuilder getCanonicalizedInputSignatureOrBuilder() { - return getCanonicalizedInputSignature(); - } - - public static final int OUTPUT_SIGNATURE_FIELD_NUMBER = 4; - private org.tensorflow.proto.framework.StructuredValue outputSignature_; - /** - *
-   * Output that was the return value of this function after replacing all
-   * Tensors with TensorSpecs. This can be an arbitrary nested function and will
-   * be used to reconstruct the full structure from pure tensors.
-   * 
- * - * .tensorflow.StructuredValue output_signature = 4; - */ - public boolean hasOutputSignature() { - return outputSignature_ != null; - } - /** - *
-   * Output that was the return value of this function after replacing all
-   * Tensors with TensorSpecs. This can be an arbitrary nested function and will
-   * be used to reconstruct the full structure from pure tensors.
-   * 
- * - * .tensorflow.StructuredValue output_signature = 4; - */ - public org.tensorflow.proto.framework.StructuredValue getOutputSignature() { - return outputSignature_ == null ? org.tensorflow.proto.framework.StructuredValue.getDefaultInstance() : outputSignature_; - } - /** - *
-   * Output that was the return value of this function after replacing all
-   * Tensors with TensorSpecs. This can be an arbitrary nested function and will
-   * be used to reconstruct the full structure from pure tensors.
-   * 
- * - * .tensorflow.StructuredValue output_signature = 4; - */ - public org.tensorflow.proto.framework.StructuredValueOrBuilder getOutputSignatureOrBuilder() { - return getOutputSignature(); - } - - 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 { - getSerializedSize(); - if (getBoundInputsList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(boundInputsMemoizedSerializedSize); - } - for (int i = 0; i < boundInputs_.size(); i++) { - output.writeInt32NoTag(boundInputs_.getInt(i)); - } - if (canonicalizedInputSignature_ != null) { - output.writeMessage(3, getCanonicalizedInputSignature()); - } - if (outputSignature_ != null) { - output.writeMessage(4, getOutputSignature()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < boundInputs_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(boundInputs_.getInt(i)); - } - size += dataSize; - if (!getBoundInputsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - boundInputsMemoizedSerializedSize = dataSize; - } - if (canonicalizedInputSignature_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCanonicalizedInputSignature()); - } - if (outputSignature_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getOutputSignature()); - } - 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 org.tensorflow.proto.framework.SavedConcreteFunction)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.SavedConcreteFunction other = (org.tensorflow.proto.framework.SavedConcreteFunction) obj; - - if (!getBoundInputsList() - .equals(other.getBoundInputsList())) return false; - if (hasCanonicalizedInputSignature() != other.hasCanonicalizedInputSignature()) return false; - if (hasCanonicalizedInputSignature()) { - if (!getCanonicalizedInputSignature() - .equals(other.getCanonicalizedInputSignature())) return false; - } - if (hasOutputSignature() != other.hasOutputSignature()) return false; - if (hasOutputSignature()) { - if (!getOutputSignature() - .equals(other.getOutputSignature())) 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 (getBoundInputsCount() > 0) { - hash = (37 * hash) + BOUND_INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getBoundInputsList().hashCode(); - } - if (hasCanonicalizedInputSignature()) { - hash = (37 * hash) + CANONICALIZED_INPUT_SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getCanonicalizedInputSignature().hashCode(); - } - if (hasOutputSignature()) { - hash = (37 * hash) + OUTPUT_SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getOutputSignature().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.SavedConcreteFunction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedConcreteFunction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedConcreteFunction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedConcreteFunction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedConcreteFunction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedConcreteFunction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedConcreteFunction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedConcreteFunction 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 org.tensorflow.proto.framework.SavedConcreteFunction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedConcreteFunction 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 org.tensorflow.proto.framework.SavedConcreteFunction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedConcreteFunction 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(org.tensorflow.proto.framework.SavedConcreteFunction 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; - } - /** - *
-   * Stores low-level information about a concrete function. Referenced in either
-   * a SavedFunction or a SavedBareConcreteFunction.
-   * 
- * - * Protobuf type {@code tensorflow.SavedConcreteFunction} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.SavedConcreteFunction) - org.tensorflow.proto.framework.SavedConcreteFunctionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedConcreteFunction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedConcreteFunction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SavedConcreteFunction.class, org.tensorflow.proto.framework.SavedConcreteFunction.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.SavedConcreteFunction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - boundInputs_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - if (canonicalizedInputSignatureBuilder_ == null) { - canonicalizedInputSignature_ = null; - } else { - canonicalizedInputSignature_ = null; - canonicalizedInputSignatureBuilder_ = null; - } - if (outputSignatureBuilder_ == null) { - outputSignature_ = null; - } else { - outputSignature_ = null; - outputSignatureBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedConcreteFunction_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedConcreteFunction getDefaultInstanceForType() { - return org.tensorflow.proto.framework.SavedConcreteFunction.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedConcreteFunction build() { - org.tensorflow.proto.framework.SavedConcreteFunction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedConcreteFunction buildPartial() { - org.tensorflow.proto.framework.SavedConcreteFunction result = new org.tensorflow.proto.framework.SavedConcreteFunction(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - boundInputs_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.boundInputs_ = boundInputs_; - if (canonicalizedInputSignatureBuilder_ == null) { - result.canonicalizedInputSignature_ = canonicalizedInputSignature_; - } else { - result.canonicalizedInputSignature_ = canonicalizedInputSignatureBuilder_.build(); - } - if (outputSignatureBuilder_ == null) { - result.outputSignature_ = outputSignature_; - } else { - result.outputSignature_ = outputSignatureBuilder_.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 org.tensorflow.proto.framework.SavedConcreteFunction) { - return mergeFrom((org.tensorflow.proto.framework.SavedConcreteFunction)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.SavedConcreteFunction other) { - if (other == org.tensorflow.proto.framework.SavedConcreteFunction.getDefaultInstance()) return this; - if (!other.boundInputs_.isEmpty()) { - if (boundInputs_.isEmpty()) { - boundInputs_ = other.boundInputs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBoundInputsIsMutable(); - boundInputs_.addAll(other.boundInputs_); - } - onChanged(); - } - if (other.hasCanonicalizedInputSignature()) { - mergeCanonicalizedInputSignature(other.getCanonicalizedInputSignature()); - } - if (other.hasOutputSignature()) { - mergeOutputSignature(other.getOutputSignature()); - } - 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 { - org.tensorflow.proto.framework.SavedConcreteFunction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.SavedConcreteFunction) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.Internal.IntList boundInputs_ = emptyIntList(); - private void ensureBoundInputsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - boundInputs_ = mutableCopy(boundInputs_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated int32 bound_inputs = 2; - */ - public java.util.List - getBoundInputsList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(boundInputs_) : boundInputs_; - } - /** - * repeated int32 bound_inputs = 2; - */ - public int getBoundInputsCount() { - return boundInputs_.size(); - } - /** - * repeated int32 bound_inputs = 2; - */ - public int getBoundInputs(int index) { - return boundInputs_.getInt(index); - } - /** - * repeated int32 bound_inputs = 2; - */ - public Builder setBoundInputs( - int index, int value) { - ensureBoundInputsIsMutable(); - boundInputs_.setInt(index, value); - onChanged(); - return this; - } - /** - * repeated int32 bound_inputs = 2; - */ - public Builder addBoundInputs(int value) { - ensureBoundInputsIsMutable(); - boundInputs_.addInt(value); - onChanged(); - return this; - } - /** - * repeated int32 bound_inputs = 2; - */ - public Builder addAllBoundInputs( - java.lang.Iterable values) { - ensureBoundInputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, boundInputs_); - onChanged(); - return this; - } - /** - * repeated int32 bound_inputs = 2; - */ - public Builder clearBoundInputs() { - boundInputs_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.StructuredValue canonicalizedInputSignature_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder> canonicalizedInputSignatureBuilder_; - /** - *
-     * Input in canonicalized form that was received to create this concrete
-     * function.
-     * 
- * - * .tensorflow.StructuredValue canonicalized_input_signature = 3; - */ - public boolean hasCanonicalizedInputSignature() { - return canonicalizedInputSignatureBuilder_ != null || canonicalizedInputSignature_ != null; - } - /** - *
-     * Input in canonicalized form that was received to create this concrete
-     * function.
-     * 
- * - * .tensorflow.StructuredValue canonicalized_input_signature = 3; - */ - public org.tensorflow.proto.framework.StructuredValue getCanonicalizedInputSignature() { - if (canonicalizedInputSignatureBuilder_ == null) { - return canonicalizedInputSignature_ == null ? org.tensorflow.proto.framework.StructuredValue.getDefaultInstance() : canonicalizedInputSignature_; - } else { - return canonicalizedInputSignatureBuilder_.getMessage(); - } - } - /** - *
-     * Input in canonicalized form that was received to create this concrete
-     * function.
-     * 
- * - * .tensorflow.StructuredValue canonicalized_input_signature = 3; - */ - public Builder setCanonicalizedInputSignature(org.tensorflow.proto.framework.StructuredValue value) { - if (canonicalizedInputSignatureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - canonicalizedInputSignature_ = value; - onChanged(); - } else { - canonicalizedInputSignatureBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Input in canonicalized form that was received to create this concrete
-     * function.
-     * 
- * - * .tensorflow.StructuredValue canonicalized_input_signature = 3; - */ - public Builder setCanonicalizedInputSignature( - org.tensorflow.proto.framework.StructuredValue.Builder builderForValue) { - if (canonicalizedInputSignatureBuilder_ == null) { - canonicalizedInputSignature_ = builderForValue.build(); - onChanged(); - } else { - canonicalizedInputSignatureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Input in canonicalized form that was received to create this concrete
-     * function.
-     * 
- * - * .tensorflow.StructuredValue canonicalized_input_signature = 3; - */ - public Builder mergeCanonicalizedInputSignature(org.tensorflow.proto.framework.StructuredValue value) { - if (canonicalizedInputSignatureBuilder_ == null) { - if (canonicalizedInputSignature_ != null) { - canonicalizedInputSignature_ = - org.tensorflow.proto.framework.StructuredValue.newBuilder(canonicalizedInputSignature_).mergeFrom(value).buildPartial(); - } else { - canonicalizedInputSignature_ = value; - } - onChanged(); - } else { - canonicalizedInputSignatureBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Input in canonicalized form that was received to create this concrete
-     * function.
-     * 
- * - * .tensorflow.StructuredValue canonicalized_input_signature = 3; - */ - public Builder clearCanonicalizedInputSignature() { - if (canonicalizedInputSignatureBuilder_ == null) { - canonicalizedInputSignature_ = null; - onChanged(); - } else { - canonicalizedInputSignature_ = null; - canonicalizedInputSignatureBuilder_ = null; - } - - return this; - } - /** - *
-     * Input in canonicalized form that was received to create this concrete
-     * function.
-     * 
- * - * .tensorflow.StructuredValue canonicalized_input_signature = 3; - */ - public org.tensorflow.proto.framework.StructuredValue.Builder getCanonicalizedInputSignatureBuilder() { - - onChanged(); - return getCanonicalizedInputSignatureFieldBuilder().getBuilder(); - } - /** - *
-     * Input in canonicalized form that was received to create this concrete
-     * function.
-     * 
- * - * .tensorflow.StructuredValue canonicalized_input_signature = 3; - */ - public org.tensorflow.proto.framework.StructuredValueOrBuilder getCanonicalizedInputSignatureOrBuilder() { - if (canonicalizedInputSignatureBuilder_ != null) { - return canonicalizedInputSignatureBuilder_.getMessageOrBuilder(); - } else { - return canonicalizedInputSignature_ == null ? - org.tensorflow.proto.framework.StructuredValue.getDefaultInstance() : canonicalizedInputSignature_; - } - } - /** - *
-     * Input in canonicalized form that was received to create this concrete
-     * function.
-     * 
- * - * .tensorflow.StructuredValue canonicalized_input_signature = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder> - getCanonicalizedInputSignatureFieldBuilder() { - if (canonicalizedInputSignatureBuilder_ == null) { - canonicalizedInputSignatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder>( - getCanonicalizedInputSignature(), - getParentForChildren(), - isClean()); - canonicalizedInputSignature_ = null; - } - return canonicalizedInputSignatureBuilder_; - } - - private org.tensorflow.proto.framework.StructuredValue outputSignature_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder> outputSignatureBuilder_; - /** - *
-     * Output that was the return value of this function after replacing all
-     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
-     * be used to reconstruct the full structure from pure tensors.
-     * 
- * - * .tensorflow.StructuredValue output_signature = 4; - */ - public boolean hasOutputSignature() { - return outputSignatureBuilder_ != null || outputSignature_ != null; - } - /** - *
-     * Output that was the return value of this function after replacing all
-     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
-     * be used to reconstruct the full structure from pure tensors.
-     * 
- * - * .tensorflow.StructuredValue output_signature = 4; - */ - public org.tensorflow.proto.framework.StructuredValue getOutputSignature() { - if (outputSignatureBuilder_ == null) { - return outputSignature_ == null ? org.tensorflow.proto.framework.StructuredValue.getDefaultInstance() : outputSignature_; - } else { - return outputSignatureBuilder_.getMessage(); - } - } - /** - *
-     * Output that was the return value of this function after replacing all
-     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
-     * be used to reconstruct the full structure from pure tensors.
-     * 
- * - * .tensorflow.StructuredValue output_signature = 4; - */ - public Builder setOutputSignature(org.tensorflow.proto.framework.StructuredValue value) { - if (outputSignatureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputSignature_ = value; - onChanged(); - } else { - outputSignatureBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Output that was the return value of this function after replacing all
-     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
-     * be used to reconstruct the full structure from pure tensors.
-     * 
- * - * .tensorflow.StructuredValue output_signature = 4; - */ - public Builder setOutputSignature( - org.tensorflow.proto.framework.StructuredValue.Builder builderForValue) { - if (outputSignatureBuilder_ == null) { - outputSignature_ = builderForValue.build(); - onChanged(); - } else { - outputSignatureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Output that was the return value of this function after replacing all
-     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
-     * be used to reconstruct the full structure from pure tensors.
-     * 
- * - * .tensorflow.StructuredValue output_signature = 4; - */ - public Builder mergeOutputSignature(org.tensorflow.proto.framework.StructuredValue value) { - if (outputSignatureBuilder_ == null) { - if (outputSignature_ != null) { - outputSignature_ = - org.tensorflow.proto.framework.StructuredValue.newBuilder(outputSignature_).mergeFrom(value).buildPartial(); - } else { - outputSignature_ = value; - } - onChanged(); - } else { - outputSignatureBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Output that was the return value of this function after replacing all
-     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
-     * be used to reconstruct the full structure from pure tensors.
-     * 
- * - * .tensorflow.StructuredValue output_signature = 4; - */ - public Builder clearOutputSignature() { - if (outputSignatureBuilder_ == null) { - outputSignature_ = null; - onChanged(); - } else { - outputSignature_ = null; - outputSignatureBuilder_ = null; - } - - return this; - } - /** - *
-     * Output that was the return value of this function after replacing all
-     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
-     * be used to reconstruct the full structure from pure tensors.
-     * 
- * - * .tensorflow.StructuredValue output_signature = 4; - */ - public org.tensorflow.proto.framework.StructuredValue.Builder getOutputSignatureBuilder() { - - onChanged(); - return getOutputSignatureFieldBuilder().getBuilder(); - } - /** - *
-     * Output that was the return value of this function after replacing all
-     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
-     * be used to reconstruct the full structure from pure tensors.
-     * 
- * - * .tensorflow.StructuredValue output_signature = 4; - */ - public org.tensorflow.proto.framework.StructuredValueOrBuilder getOutputSignatureOrBuilder() { - if (outputSignatureBuilder_ != null) { - return outputSignatureBuilder_.getMessageOrBuilder(); - } else { - return outputSignature_ == null ? - org.tensorflow.proto.framework.StructuredValue.getDefaultInstance() : outputSignature_; - } - } - /** - *
-     * Output that was the return value of this function after replacing all
-     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
-     * be used to reconstruct the full structure from pure tensors.
-     * 
- * - * .tensorflow.StructuredValue output_signature = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder> - getOutputSignatureFieldBuilder() { - if (outputSignatureBuilder_ == null) { - outputSignatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.StructuredValue, org.tensorflow.proto.framework.StructuredValue.Builder, org.tensorflow.proto.framework.StructuredValueOrBuilder>( - getOutputSignature(), - getParentForChildren(), - isClean()); - outputSignature_ = null; - } - return outputSignatureBuilder_; - } - @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:tensorflow.SavedConcreteFunction) - } - - // @@protoc_insertion_point(class_scope:tensorflow.SavedConcreteFunction) - private static final org.tensorflow.proto.framework.SavedConcreteFunction DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.SavedConcreteFunction(); - } - - public static org.tensorflow.proto.framework.SavedConcreteFunction getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SavedConcreteFunction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SavedConcreteFunction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedConcreteFunction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedConcreteFunctionOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedConcreteFunctionOrBuilder.java deleted file mode 100644 index 69a21056bac..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedConcreteFunctionOrBuilder.java +++ /dev/null @@ -1,81 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -public interface SavedConcreteFunctionOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.SavedConcreteFunction) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 bound_inputs = 2; - */ - java.util.List getBoundInputsList(); - /** - * repeated int32 bound_inputs = 2; - */ - int getBoundInputsCount(); - /** - * repeated int32 bound_inputs = 2; - */ - int getBoundInputs(int index); - - /** - *
-   * Input in canonicalized form that was received to create this concrete
-   * function.
-   * 
- * - * .tensorflow.StructuredValue canonicalized_input_signature = 3; - */ - boolean hasCanonicalizedInputSignature(); - /** - *
-   * Input in canonicalized form that was received to create this concrete
-   * function.
-   * 
- * - * .tensorflow.StructuredValue canonicalized_input_signature = 3; - */ - org.tensorflow.proto.framework.StructuredValue getCanonicalizedInputSignature(); - /** - *
-   * Input in canonicalized form that was received to create this concrete
-   * function.
-   * 
- * - * .tensorflow.StructuredValue canonicalized_input_signature = 3; - */ - org.tensorflow.proto.framework.StructuredValueOrBuilder getCanonicalizedInputSignatureOrBuilder(); - - /** - *
-   * Output that was the return value of this function after replacing all
-   * Tensors with TensorSpecs. This can be an arbitrary nested function and will
-   * be used to reconstruct the full structure from pure tensors.
-   * 
- * - * .tensorflow.StructuredValue output_signature = 4; - */ - boolean hasOutputSignature(); - /** - *
-   * Output that was the return value of this function after replacing all
-   * Tensors with TensorSpecs. This can be an arbitrary nested function and will
-   * be used to reconstruct the full structure from pure tensors.
-   * 
- * - * .tensorflow.StructuredValue output_signature = 4; - */ - org.tensorflow.proto.framework.StructuredValue getOutputSignature(); - /** - *
-   * Output that was the return value of this function after replacing all
-   * Tensors with TensorSpecs. This can be an arbitrary nested function and will
-   * be used to reconstruct the full structure from pure tensors.
-   * 
- * - * .tensorflow.StructuredValue output_signature = 4; - */ - org.tensorflow.proto.framework.StructuredValueOrBuilder getOutputSignatureOrBuilder(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedConstant.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedConstant.java deleted file mode 100644 index 4ba709c9c98..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedConstant.java +++ /dev/null @@ -1,574 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.SavedConstant} - */ -public final class SavedConstant extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.SavedConstant) - SavedConstantOrBuilder { -private static final long serialVersionUID = 0L; - // Use SavedConstant.newBuilder() to construct. - private SavedConstant(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SavedConstant() { - operation_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SavedConstant(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SavedConstant( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - operation_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedConstant_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedConstant_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SavedConstant.class, org.tensorflow.proto.framework.SavedConstant.Builder.class); - } - - public static final int OPERATION_FIELD_NUMBER = 1; - private volatile java.lang.Object operation_; - /** - *
-   * An Operation name for a ConstantOp in this SavedObjectGraph's MetaGraph.
-   * 
- * - * string operation = 1; - */ - public java.lang.String getOperation() { - java.lang.Object ref = operation_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operation_ = s; - return s; - } - } - /** - *
-   * An Operation name for a ConstantOp in this SavedObjectGraph's MetaGraph.
-   * 
- * - * string operation = 1; - */ - public com.google.protobuf.ByteString - getOperationBytes() { - java.lang.Object ref = operation_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - operation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getOperationBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operation_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getOperationBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, operation_); - } - 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 org.tensorflow.proto.framework.SavedConstant)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.SavedConstant other = (org.tensorflow.proto.framework.SavedConstant) obj; - - if (!getOperation() - .equals(other.getOperation())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OPERATION_FIELD_NUMBER; - hash = (53 * hash) + getOperation().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.SavedConstant parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedConstant parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedConstant parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedConstant parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedConstant parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedConstant parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedConstant parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedConstant 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 org.tensorflow.proto.framework.SavedConstant parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedConstant 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 org.tensorflow.proto.framework.SavedConstant parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedConstant 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(org.tensorflow.proto.framework.SavedConstant prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.SavedConstant} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.SavedConstant) - org.tensorflow.proto.framework.SavedConstantOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedConstant_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedConstant_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SavedConstant.class, org.tensorflow.proto.framework.SavedConstant.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.SavedConstant.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - operation_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedConstant_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedConstant getDefaultInstanceForType() { - return org.tensorflow.proto.framework.SavedConstant.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedConstant build() { - org.tensorflow.proto.framework.SavedConstant result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedConstant buildPartial() { - org.tensorflow.proto.framework.SavedConstant result = new org.tensorflow.proto.framework.SavedConstant(this); - result.operation_ = operation_; - 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 org.tensorflow.proto.framework.SavedConstant) { - return mergeFrom((org.tensorflow.proto.framework.SavedConstant)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.SavedConstant other) { - if (other == org.tensorflow.proto.framework.SavedConstant.getDefaultInstance()) return this; - if (!other.getOperation().isEmpty()) { - operation_ = other.operation_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.SavedConstant parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.SavedConstant) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object operation_ = ""; - /** - *
-     * An Operation name for a ConstantOp in this SavedObjectGraph's MetaGraph.
-     * 
- * - * string operation = 1; - */ - public java.lang.String getOperation() { - java.lang.Object ref = operation_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operation_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * An Operation name for a ConstantOp in this SavedObjectGraph's MetaGraph.
-     * 
- * - * string operation = 1; - */ - public com.google.protobuf.ByteString - getOperationBytes() { - java.lang.Object ref = operation_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - operation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * An Operation name for a ConstantOp in this SavedObjectGraph's MetaGraph.
-     * 
- * - * string operation = 1; - */ - public Builder setOperation( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - operation_ = value; - onChanged(); - return this; - } - /** - *
-     * An Operation name for a ConstantOp in this SavedObjectGraph's MetaGraph.
-     * 
- * - * string operation = 1; - */ - public Builder clearOperation() { - - operation_ = getDefaultInstance().getOperation(); - onChanged(); - return this; - } - /** - *
-     * An Operation name for a ConstantOp in this SavedObjectGraph's MetaGraph.
-     * 
- * - * string operation = 1; - */ - public Builder setOperationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - operation_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.SavedConstant) - } - - // @@protoc_insertion_point(class_scope:tensorflow.SavedConstant) - private static final org.tensorflow.proto.framework.SavedConstant DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.SavedConstant(); - } - - public static org.tensorflow.proto.framework.SavedConstant getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SavedConstant parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SavedConstant(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedConstant getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedConstantOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedConstantOrBuilder.java deleted file mode 100644 index ed435bc83ba..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedConstantOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -public interface SavedConstantOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.SavedConstant) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * An Operation name for a ConstantOp in this SavedObjectGraph's MetaGraph.
-   * 
- * - * string operation = 1; - */ - java.lang.String getOperation(); - /** - *
-   * An Operation name for a ConstantOp in this SavedObjectGraph's MetaGraph.
-   * 
- * - * string operation = 1; - */ - com.google.protobuf.ByteString - getOperationBytes(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedFunction.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedFunction.java deleted file mode 100644 index d873063784e..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedFunction.java +++ /dev/null @@ -1,781 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -/** - *
- * A function with multiple signatures, possibly with non-Tensor arguments.
- * 
- * - * Protobuf type {@code tensorflow.SavedFunction} - */ -public final class SavedFunction extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.SavedFunction) - SavedFunctionOrBuilder { -private static final long serialVersionUID = 0L; - // Use SavedFunction.newBuilder() to construct. - private SavedFunction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SavedFunction() { - concreteFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SavedFunction(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SavedFunction( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - concreteFunctions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - concreteFunctions_.add(s); - break; - } - case 18: { - org.tensorflow.proto.framework.FunctionSpec.Builder subBuilder = null; - if (functionSpec_ != null) { - subBuilder = functionSpec_.toBuilder(); - } - functionSpec_ = input.readMessage(org.tensorflow.proto.framework.FunctionSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(functionSpec_); - functionSpec_ = subBuilder.buildPartial(); - } - - 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)) { - concreteFunctions_ = concreteFunctions_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedFunction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedFunction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SavedFunction.class, org.tensorflow.proto.framework.SavedFunction.Builder.class); - } - - public static final int CONCRETE_FUNCTIONS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList concreteFunctions_; - /** - * repeated string concrete_functions = 1; - */ - public com.google.protobuf.ProtocolStringList - getConcreteFunctionsList() { - return concreteFunctions_; - } - /** - * repeated string concrete_functions = 1; - */ - public int getConcreteFunctionsCount() { - return concreteFunctions_.size(); - } - /** - * repeated string concrete_functions = 1; - */ - public java.lang.String getConcreteFunctions(int index) { - return concreteFunctions_.get(index); - } - /** - * repeated string concrete_functions = 1; - */ - public com.google.protobuf.ByteString - getConcreteFunctionsBytes(int index) { - return concreteFunctions_.getByteString(index); - } - - public static final int FUNCTION_SPEC_FIELD_NUMBER = 2; - private org.tensorflow.proto.framework.FunctionSpec functionSpec_; - /** - * .tensorflow.FunctionSpec function_spec = 2; - */ - public boolean hasFunctionSpec() { - return functionSpec_ != null; - } - /** - * .tensorflow.FunctionSpec function_spec = 2; - */ - public org.tensorflow.proto.framework.FunctionSpec getFunctionSpec() { - return functionSpec_ == null ? org.tensorflow.proto.framework.FunctionSpec.getDefaultInstance() : functionSpec_; - } - /** - * .tensorflow.FunctionSpec function_spec = 2; - */ - public org.tensorflow.proto.framework.FunctionSpecOrBuilder getFunctionSpecOrBuilder() { - return getFunctionSpec(); - } - - 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 < concreteFunctions_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, concreteFunctions_.getRaw(i)); - } - if (functionSpec_ != null) { - output.writeMessage(2, getFunctionSpec()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < concreteFunctions_.size(); i++) { - dataSize += computeStringSizeNoTag(concreteFunctions_.getRaw(i)); - } - size += dataSize; - size += 1 * getConcreteFunctionsList().size(); - } - if (functionSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFunctionSpec()); - } - 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 org.tensorflow.proto.framework.SavedFunction)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.SavedFunction other = (org.tensorflow.proto.framework.SavedFunction) obj; - - if (!getConcreteFunctionsList() - .equals(other.getConcreteFunctionsList())) return false; - if (hasFunctionSpec() != other.hasFunctionSpec()) return false; - if (hasFunctionSpec()) { - if (!getFunctionSpec() - .equals(other.getFunctionSpec())) 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 (getConcreteFunctionsCount() > 0) { - hash = (37 * hash) + CONCRETE_FUNCTIONS_FIELD_NUMBER; - hash = (53 * hash) + getConcreteFunctionsList().hashCode(); - } - if (hasFunctionSpec()) { - hash = (37 * hash) + FUNCTION_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getFunctionSpec().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.SavedFunction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedFunction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedFunction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedFunction parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedFunction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedFunction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedFunction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedFunction 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 org.tensorflow.proto.framework.SavedFunction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedFunction 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 org.tensorflow.proto.framework.SavedFunction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedFunction 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(org.tensorflow.proto.framework.SavedFunction 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; - } - /** - *
-   * A function with multiple signatures, possibly with non-Tensor arguments.
-   * 
- * - * Protobuf type {@code tensorflow.SavedFunction} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.SavedFunction) - org.tensorflow.proto.framework.SavedFunctionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedFunction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedFunction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SavedFunction.class, org.tensorflow.proto.framework.SavedFunction.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.SavedFunction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - concreteFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (functionSpecBuilder_ == null) { - functionSpec_ = null; - } else { - functionSpec_ = null; - functionSpecBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedFunction_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedFunction getDefaultInstanceForType() { - return org.tensorflow.proto.framework.SavedFunction.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedFunction build() { - org.tensorflow.proto.framework.SavedFunction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedFunction buildPartial() { - org.tensorflow.proto.framework.SavedFunction result = new org.tensorflow.proto.framework.SavedFunction(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - concreteFunctions_ = concreteFunctions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.concreteFunctions_ = concreteFunctions_; - if (functionSpecBuilder_ == null) { - result.functionSpec_ = functionSpec_; - } else { - result.functionSpec_ = functionSpecBuilder_.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 org.tensorflow.proto.framework.SavedFunction) { - return mergeFrom((org.tensorflow.proto.framework.SavedFunction)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.SavedFunction other) { - if (other == org.tensorflow.proto.framework.SavedFunction.getDefaultInstance()) return this; - if (!other.concreteFunctions_.isEmpty()) { - if (concreteFunctions_.isEmpty()) { - concreteFunctions_ = other.concreteFunctions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureConcreteFunctionsIsMutable(); - concreteFunctions_.addAll(other.concreteFunctions_); - } - onChanged(); - } - if (other.hasFunctionSpec()) { - mergeFunctionSpec(other.getFunctionSpec()); - } - 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 { - org.tensorflow.proto.framework.SavedFunction parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.SavedFunction) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList concreteFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureConcreteFunctionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - concreteFunctions_ = new com.google.protobuf.LazyStringArrayList(concreteFunctions_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string concrete_functions = 1; - */ - public com.google.protobuf.ProtocolStringList - getConcreteFunctionsList() { - return concreteFunctions_.getUnmodifiableView(); - } - /** - * repeated string concrete_functions = 1; - */ - public int getConcreteFunctionsCount() { - return concreteFunctions_.size(); - } - /** - * repeated string concrete_functions = 1; - */ - public java.lang.String getConcreteFunctions(int index) { - return concreteFunctions_.get(index); - } - /** - * repeated string concrete_functions = 1; - */ - public com.google.protobuf.ByteString - getConcreteFunctionsBytes(int index) { - return concreteFunctions_.getByteString(index); - } - /** - * repeated string concrete_functions = 1; - */ - public Builder setConcreteFunctions( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureConcreteFunctionsIsMutable(); - concreteFunctions_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string concrete_functions = 1; - */ - public Builder addConcreteFunctions( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureConcreteFunctionsIsMutable(); - concreteFunctions_.add(value); - onChanged(); - return this; - } - /** - * repeated string concrete_functions = 1; - */ - public Builder addAllConcreteFunctions( - java.lang.Iterable values) { - ensureConcreteFunctionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, concreteFunctions_); - onChanged(); - return this; - } - /** - * repeated string concrete_functions = 1; - */ - public Builder clearConcreteFunctions() { - concreteFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string concrete_functions = 1; - */ - public Builder addConcreteFunctionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureConcreteFunctionsIsMutable(); - concreteFunctions_.add(value); - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.FunctionSpec functionSpec_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.FunctionSpec, org.tensorflow.proto.framework.FunctionSpec.Builder, org.tensorflow.proto.framework.FunctionSpecOrBuilder> functionSpecBuilder_; - /** - * .tensorflow.FunctionSpec function_spec = 2; - */ - public boolean hasFunctionSpec() { - return functionSpecBuilder_ != null || functionSpec_ != null; - } - /** - * .tensorflow.FunctionSpec function_spec = 2; - */ - public org.tensorflow.proto.framework.FunctionSpec getFunctionSpec() { - if (functionSpecBuilder_ == null) { - return functionSpec_ == null ? org.tensorflow.proto.framework.FunctionSpec.getDefaultInstance() : functionSpec_; - } else { - return functionSpecBuilder_.getMessage(); - } - } - /** - * .tensorflow.FunctionSpec function_spec = 2; - */ - public Builder setFunctionSpec(org.tensorflow.proto.framework.FunctionSpec value) { - if (functionSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - functionSpec_ = value; - onChanged(); - } else { - functionSpecBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.FunctionSpec function_spec = 2; - */ - public Builder setFunctionSpec( - org.tensorflow.proto.framework.FunctionSpec.Builder builderForValue) { - if (functionSpecBuilder_ == null) { - functionSpec_ = builderForValue.build(); - onChanged(); - } else { - functionSpecBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.FunctionSpec function_spec = 2; - */ - public Builder mergeFunctionSpec(org.tensorflow.proto.framework.FunctionSpec value) { - if (functionSpecBuilder_ == null) { - if (functionSpec_ != null) { - functionSpec_ = - org.tensorflow.proto.framework.FunctionSpec.newBuilder(functionSpec_).mergeFrom(value).buildPartial(); - } else { - functionSpec_ = value; - } - onChanged(); - } else { - functionSpecBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.FunctionSpec function_spec = 2; - */ - public Builder clearFunctionSpec() { - if (functionSpecBuilder_ == null) { - functionSpec_ = null; - onChanged(); - } else { - functionSpec_ = null; - functionSpecBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.FunctionSpec function_spec = 2; - */ - public org.tensorflow.proto.framework.FunctionSpec.Builder getFunctionSpecBuilder() { - - onChanged(); - return getFunctionSpecFieldBuilder().getBuilder(); - } - /** - * .tensorflow.FunctionSpec function_spec = 2; - */ - public org.tensorflow.proto.framework.FunctionSpecOrBuilder getFunctionSpecOrBuilder() { - if (functionSpecBuilder_ != null) { - return functionSpecBuilder_.getMessageOrBuilder(); - } else { - return functionSpec_ == null ? - org.tensorflow.proto.framework.FunctionSpec.getDefaultInstance() : functionSpec_; - } - } - /** - * .tensorflow.FunctionSpec function_spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.FunctionSpec, org.tensorflow.proto.framework.FunctionSpec.Builder, org.tensorflow.proto.framework.FunctionSpecOrBuilder> - getFunctionSpecFieldBuilder() { - if (functionSpecBuilder_ == null) { - functionSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.FunctionSpec, org.tensorflow.proto.framework.FunctionSpec.Builder, org.tensorflow.proto.framework.FunctionSpecOrBuilder>( - getFunctionSpec(), - getParentForChildren(), - isClean()); - functionSpec_ = null; - } - return functionSpecBuilder_; - } - @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:tensorflow.SavedFunction) - } - - // @@protoc_insertion_point(class_scope:tensorflow.SavedFunction) - private static final org.tensorflow.proto.framework.SavedFunction DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.SavedFunction(); - } - - public static org.tensorflow.proto.framework.SavedFunction getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SavedFunction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SavedFunction(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedFunction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedFunctionOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedFunctionOrBuilder.java deleted file mode 100644 index 19b27a54fb3..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedFunctionOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -public interface SavedFunctionOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.SavedFunction) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string concrete_functions = 1; - */ - java.util.List - getConcreteFunctionsList(); - /** - * repeated string concrete_functions = 1; - */ - int getConcreteFunctionsCount(); - /** - * repeated string concrete_functions = 1; - */ - java.lang.String getConcreteFunctions(int index); - /** - * repeated string concrete_functions = 1; - */ - com.google.protobuf.ByteString - getConcreteFunctionsBytes(int index); - - /** - * .tensorflow.FunctionSpec function_spec = 2; - */ - boolean hasFunctionSpec(); - /** - * .tensorflow.FunctionSpec function_spec = 2; - */ - org.tensorflow.proto.framework.FunctionSpec getFunctionSpec(); - /** - * .tensorflow.FunctionSpec function_spec = 2; - */ - org.tensorflow.proto.framework.FunctionSpecOrBuilder getFunctionSpecOrBuilder(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedModel.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedModel.java deleted file mode 100644 index ac25416e31a..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedModel.java +++ /dev/null @@ -1,949 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_model.proto - -package org.tensorflow.proto.framework; - -/** - *
- * SavedModel is the high level serialization format for TensorFlow Models.
- * See [todo: doc links, similar to session_bundle] for more information.
- * 
- * - * Protobuf type {@code tensorflow.SavedModel} - */ -public final class SavedModel extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.SavedModel) - SavedModelOrBuilder { -private static final long serialVersionUID = 0L; - // Use SavedModel.newBuilder() to construct. - private SavedModel(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SavedModel() { - metaGraphs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SavedModel(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SavedModel( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - savedModelSchemaVersion_ = input.readInt64(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - metaGraphs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - metaGraphs_.add( - input.readMessage(org.tensorflow.proto.framework.MetaGraphDef.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)) { - metaGraphs_ = java.util.Collections.unmodifiableList(metaGraphs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedModelProtos.internal_static_tensorflow_SavedModel_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedModelProtos.internal_static_tensorflow_SavedModel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SavedModel.class, org.tensorflow.proto.framework.SavedModel.Builder.class); - } - - public static final int SAVED_MODEL_SCHEMA_VERSION_FIELD_NUMBER = 1; - private long savedModelSchemaVersion_; - /** - *
-   * The schema version of the SavedModel instance. Used for versioning when
-   * making future changes to the specification/implementation. Initial value
-   * at release will be 1.
-   * 
- * - * int64 saved_model_schema_version = 1; - */ - public long getSavedModelSchemaVersion() { - return savedModelSchemaVersion_; - } - - public static final int META_GRAPHS_FIELD_NUMBER = 2; - private java.util.List metaGraphs_; - /** - *
-   * One or more MetaGraphs.
-   * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public java.util.List getMetaGraphsList() { - return metaGraphs_; - } - /** - *
-   * One or more MetaGraphs.
-   * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public java.util.List - getMetaGraphsOrBuilderList() { - return metaGraphs_; - } - /** - *
-   * One or more MetaGraphs.
-   * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public int getMetaGraphsCount() { - return metaGraphs_.size(); - } - /** - *
-   * One or more MetaGraphs.
-   * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public org.tensorflow.proto.framework.MetaGraphDef getMetaGraphs(int index) { - return metaGraphs_.get(index); - } - /** - *
-   * One or more MetaGraphs.
-   * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public org.tensorflow.proto.framework.MetaGraphDefOrBuilder getMetaGraphsOrBuilder( - int index) { - return metaGraphs_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (savedModelSchemaVersion_ != 0L) { - output.writeInt64(1, savedModelSchemaVersion_); - } - for (int i = 0; i < metaGraphs_.size(); i++) { - output.writeMessage(2, metaGraphs_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (savedModelSchemaVersion_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, savedModelSchemaVersion_); - } - for (int i = 0; i < metaGraphs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, metaGraphs_.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 org.tensorflow.proto.framework.SavedModel)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.SavedModel other = (org.tensorflow.proto.framework.SavedModel) obj; - - if (getSavedModelSchemaVersion() - != other.getSavedModelSchemaVersion()) return false; - if (!getMetaGraphsList() - .equals(other.getMetaGraphsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SAVED_MODEL_SCHEMA_VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSavedModelSchemaVersion()); - if (getMetaGraphsCount() > 0) { - hash = (37 * hash) + META_GRAPHS_FIELD_NUMBER; - hash = (53 * hash) + getMetaGraphsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.SavedModel parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedModel parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedModel parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedModel parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedModel parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedModel parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedModel parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedModel 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 org.tensorflow.proto.framework.SavedModel parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedModel 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 org.tensorflow.proto.framework.SavedModel parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedModel 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(org.tensorflow.proto.framework.SavedModel 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; - } - /** - *
-   * SavedModel is the high level serialization format for TensorFlow Models.
-   * See [todo: doc links, similar to session_bundle] for more information.
-   * 
- * - * Protobuf type {@code tensorflow.SavedModel} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.SavedModel) - org.tensorflow.proto.framework.SavedModelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedModelProtos.internal_static_tensorflow_SavedModel_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedModelProtos.internal_static_tensorflow_SavedModel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SavedModel.class, org.tensorflow.proto.framework.SavedModel.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.SavedModel.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getMetaGraphsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - savedModelSchemaVersion_ = 0L; - - if (metaGraphsBuilder_ == null) { - metaGraphs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - metaGraphsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.SavedModelProtos.internal_static_tensorflow_SavedModel_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedModel getDefaultInstanceForType() { - return org.tensorflow.proto.framework.SavedModel.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedModel build() { - org.tensorflow.proto.framework.SavedModel result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedModel buildPartial() { - org.tensorflow.proto.framework.SavedModel result = new org.tensorflow.proto.framework.SavedModel(this); - int from_bitField0_ = bitField0_; - result.savedModelSchemaVersion_ = savedModelSchemaVersion_; - if (metaGraphsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - metaGraphs_ = java.util.Collections.unmodifiableList(metaGraphs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.metaGraphs_ = metaGraphs_; - } else { - result.metaGraphs_ = metaGraphsBuilder_.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 org.tensorflow.proto.framework.SavedModel) { - return mergeFrom((org.tensorflow.proto.framework.SavedModel)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.SavedModel other) { - if (other == org.tensorflow.proto.framework.SavedModel.getDefaultInstance()) return this; - if (other.getSavedModelSchemaVersion() != 0L) { - setSavedModelSchemaVersion(other.getSavedModelSchemaVersion()); - } - if (metaGraphsBuilder_ == null) { - if (!other.metaGraphs_.isEmpty()) { - if (metaGraphs_.isEmpty()) { - metaGraphs_ = other.metaGraphs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureMetaGraphsIsMutable(); - metaGraphs_.addAll(other.metaGraphs_); - } - onChanged(); - } - } else { - if (!other.metaGraphs_.isEmpty()) { - if (metaGraphsBuilder_.isEmpty()) { - metaGraphsBuilder_.dispose(); - metaGraphsBuilder_ = null; - metaGraphs_ = other.metaGraphs_; - bitField0_ = (bitField0_ & ~0x00000001); - metaGraphsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMetaGraphsFieldBuilder() : null; - } else { - metaGraphsBuilder_.addAllMessages(other.metaGraphs_); - } - } - } - 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 { - org.tensorflow.proto.framework.SavedModel parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.SavedModel) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long savedModelSchemaVersion_ ; - /** - *
-     * The schema version of the SavedModel instance. Used for versioning when
-     * making future changes to the specification/implementation. Initial value
-     * at release will be 1.
-     * 
- * - * int64 saved_model_schema_version = 1; - */ - public long getSavedModelSchemaVersion() { - return savedModelSchemaVersion_; - } - /** - *
-     * The schema version of the SavedModel instance. Used for versioning when
-     * making future changes to the specification/implementation. Initial value
-     * at release will be 1.
-     * 
- * - * int64 saved_model_schema_version = 1; - */ - public Builder setSavedModelSchemaVersion(long value) { - - savedModelSchemaVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * The schema version of the SavedModel instance. Used for versioning when
-     * making future changes to the specification/implementation. Initial value
-     * at release will be 1.
-     * 
- * - * int64 saved_model_schema_version = 1; - */ - public Builder clearSavedModelSchemaVersion() { - - savedModelSchemaVersion_ = 0L; - onChanged(); - return this; - } - - private java.util.List metaGraphs_ = - java.util.Collections.emptyList(); - private void ensureMetaGraphsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - metaGraphs_ = new java.util.ArrayList(metaGraphs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.MetaGraphDef, org.tensorflow.proto.framework.MetaGraphDef.Builder, org.tensorflow.proto.framework.MetaGraphDefOrBuilder> metaGraphsBuilder_; - - /** - *
-     * One or more MetaGraphs.
-     * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public java.util.List getMetaGraphsList() { - if (metaGraphsBuilder_ == null) { - return java.util.Collections.unmodifiableList(metaGraphs_); - } else { - return metaGraphsBuilder_.getMessageList(); - } - } - /** - *
-     * One or more MetaGraphs.
-     * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public int getMetaGraphsCount() { - if (metaGraphsBuilder_ == null) { - return metaGraphs_.size(); - } else { - return metaGraphsBuilder_.getCount(); - } - } - /** - *
-     * One or more MetaGraphs.
-     * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public org.tensorflow.proto.framework.MetaGraphDef getMetaGraphs(int index) { - if (metaGraphsBuilder_ == null) { - return metaGraphs_.get(index); - } else { - return metaGraphsBuilder_.getMessage(index); - } - } - /** - *
-     * One or more MetaGraphs.
-     * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public Builder setMetaGraphs( - int index, org.tensorflow.proto.framework.MetaGraphDef value) { - if (metaGraphsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetaGraphsIsMutable(); - metaGraphs_.set(index, value); - onChanged(); - } else { - metaGraphsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * One or more MetaGraphs.
-     * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public Builder setMetaGraphs( - int index, org.tensorflow.proto.framework.MetaGraphDef.Builder builderForValue) { - if (metaGraphsBuilder_ == null) { - ensureMetaGraphsIsMutable(); - metaGraphs_.set(index, builderForValue.build()); - onChanged(); - } else { - metaGraphsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * One or more MetaGraphs.
-     * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public Builder addMetaGraphs(org.tensorflow.proto.framework.MetaGraphDef value) { - if (metaGraphsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetaGraphsIsMutable(); - metaGraphs_.add(value); - onChanged(); - } else { - metaGraphsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * One or more MetaGraphs.
-     * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public Builder addMetaGraphs( - int index, org.tensorflow.proto.framework.MetaGraphDef value) { - if (metaGraphsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetaGraphsIsMutable(); - metaGraphs_.add(index, value); - onChanged(); - } else { - metaGraphsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * One or more MetaGraphs.
-     * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public Builder addMetaGraphs( - org.tensorflow.proto.framework.MetaGraphDef.Builder builderForValue) { - if (metaGraphsBuilder_ == null) { - ensureMetaGraphsIsMutable(); - metaGraphs_.add(builderForValue.build()); - onChanged(); - } else { - metaGraphsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * One or more MetaGraphs.
-     * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public Builder addMetaGraphs( - int index, org.tensorflow.proto.framework.MetaGraphDef.Builder builderForValue) { - if (metaGraphsBuilder_ == null) { - ensureMetaGraphsIsMutable(); - metaGraphs_.add(index, builderForValue.build()); - onChanged(); - } else { - metaGraphsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * One or more MetaGraphs.
-     * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public Builder addAllMetaGraphs( - java.lang.Iterable values) { - if (metaGraphsBuilder_ == null) { - ensureMetaGraphsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metaGraphs_); - onChanged(); - } else { - metaGraphsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * One or more MetaGraphs.
-     * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public Builder clearMetaGraphs() { - if (metaGraphsBuilder_ == null) { - metaGraphs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - metaGraphsBuilder_.clear(); - } - return this; - } - /** - *
-     * One or more MetaGraphs.
-     * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public Builder removeMetaGraphs(int index) { - if (metaGraphsBuilder_ == null) { - ensureMetaGraphsIsMutable(); - metaGraphs_.remove(index); - onChanged(); - } else { - metaGraphsBuilder_.remove(index); - } - return this; - } - /** - *
-     * One or more MetaGraphs.
-     * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public org.tensorflow.proto.framework.MetaGraphDef.Builder getMetaGraphsBuilder( - int index) { - return getMetaGraphsFieldBuilder().getBuilder(index); - } - /** - *
-     * One or more MetaGraphs.
-     * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public org.tensorflow.proto.framework.MetaGraphDefOrBuilder getMetaGraphsOrBuilder( - int index) { - if (metaGraphsBuilder_ == null) { - return metaGraphs_.get(index); } else { - return metaGraphsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * One or more MetaGraphs.
-     * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public java.util.List - getMetaGraphsOrBuilderList() { - if (metaGraphsBuilder_ != null) { - return metaGraphsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metaGraphs_); - } - } - /** - *
-     * One or more MetaGraphs.
-     * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public org.tensorflow.proto.framework.MetaGraphDef.Builder addMetaGraphsBuilder() { - return getMetaGraphsFieldBuilder().addBuilder( - org.tensorflow.proto.framework.MetaGraphDef.getDefaultInstance()); - } - /** - *
-     * One or more MetaGraphs.
-     * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public org.tensorflow.proto.framework.MetaGraphDef.Builder addMetaGraphsBuilder( - int index) { - return getMetaGraphsFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.MetaGraphDef.getDefaultInstance()); - } - /** - *
-     * One or more MetaGraphs.
-     * 
- * - * repeated .tensorflow.MetaGraphDef meta_graphs = 2; - */ - public java.util.List - getMetaGraphsBuilderList() { - return getMetaGraphsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.MetaGraphDef, org.tensorflow.proto.framework.MetaGraphDef.Builder, org.tensorflow.proto.framework.MetaGraphDefOrBuilder> - getMetaGraphsFieldBuilder() { - if (metaGraphsBuilder_ == null) { - metaGraphsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.MetaGraphDef, org.tensorflow.proto.framework.MetaGraphDef.Builder, org.tensorflow.proto.framework.MetaGraphDefOrBuilder>( - metaGraphs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - metaGraphs_ = null; - } - return metaGraphsBuilder_; - } - @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:tensorflow.SavedModel) - } - - // @@protoc_insertion_point(class_scope:tensorflow.SavedModel) - private static final org.tensorflow.proto.framework.SavedModel DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.SavedModel(); - } - - public static org.tensorflow.proto.framework.SavedModel getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SavedModel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SavedModel(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedModel getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedObject.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedObject.java deleted file mode 100644 index 24844cf5363..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedObject.java +++ /dev/null @@ -1,4536 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.SavedObject} - */ -public final class SavedObject extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.SavedObject) - SavedObjectOrBuilder { -private static final long serialVersionUID = 0L; - // Use SavedObject.newBuilder() to construct. - private SavedObject(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SavedObject() { - children_ = java.util.Collections.emptyList(); - dependencies_ = java.util.Collections.emptyList(); - slotVariables_ = java.util.Collections.emptyList(); - registeredName_ = ""; - registeredSaver_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SavedObject(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SavedObject( - 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)) { - children_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - children_.add( - input.readMessage(org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - slotVariables_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - slotVariables_.add( - input.readMessage(org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReference.parser(), extensionRegistry)); - break; - } - case 34: { - org.tensorflow.proto.framework.SavedUserObject.Builder subBuilder = null; - if (kindCase_ == 4) { - subBuilder = ((org.tensorflow.proto.framework.SavedUserObject) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.framework.SavedUserObject.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.SavedUserObject) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 4; - break; - } - case 42: { - org.tensorflow.proto.framework.SavedAsset.Builder subBuilder = null; - if (kindCase_ == 5) { - subBuilder = ((org.tensorflow.proto.framework.SavedAsset) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.framework.SavedAsset.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.SavedAsset) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 5; - break; - } - case 50: { - org.tensorflow.proto.framework.SavedFunction.Builder subBuilder = null; - if (kindCase_ == 6) { - subBuilder = ((org.tensorflow.proto.framework.SavedFunction) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.framework.SavedFunction.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.SavedFunction) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 6; - break; - } - case 58: { - org.tensorflow.proto.framework.SavedVariable.Builder subBuilder = null; - if (kindCase_ == 7) { - subBuilder = ((org.tensorflow.proto.framework.SavedVariable) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.framework.SavedVariable.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.SavedVariable) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 7; - break; - } - case 66: { - org.tensorflow.proto.framework.SavedBareConcreteFunction.Builder subBuilder = null; - if (kindCase_ == 8) { - subBuilder = ((org.tensorflow.proto.framework.SavedBareConcreteFunction) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.framework.SavedBareConcreteFunction.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.SavedBareConcreteFunction) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 8; - break; - } - case 74: { - org.tensorflow.proto.framework.SavedConstant.Builder subBuilder = null; - if (kindCase_ == 9) { - subBuilder = ((org.tensorflow.proto.framework.SavedConstant) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.framework.SavedConstant.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.SavedConstant) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 9; - break; - } - case 82: { - org.tensorflow.proto.framework.SavedResource.Builder subBuilder = null; - if (kindCase_ == 10) { - subBuilder = ((org.tensorflow.proto.framework.SavedResource) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.framework.SavedResource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.SavedResource) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 10; - break; - } - case 90: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - saveableObjects_ = com.google.protobuf.MapField.newMapField( - SaveableObjectsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; - } - com.google.protobuf.MapEntry - saveableObjects__ = input.readMessage( - SaveableObjectsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - saveableObjects_.getMutableMap().put( - saveableObjects__.getKey(), saveableObjects__.getValue()); - break; - } - case 98: { - org.tensorflow.proto.framework.CapturedTensor.Builder subBuilder = null; - if (kindCase_ == 12) { - subBuilder = ((org.tensorflow.proto.framework.CapturedTensor) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.framework.CapturedTensor.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.CapturedTensor) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 12; - break; - } - case 106: { - java.lang.String s = input.readStringRequireUtf8(); - - registeredName_ = s; - break; - } - case 114: { - com.google.protobuf.Any.Builder subBuilder = null; - if (serializedUserProto_ != null) { - subBuilder = serializedUserProto_.toBuilder(); - } - serializedUserProto_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(serializedUserProto_); - serializedUserProto_ = subBuilder.buildPartial(); - } - - break; - } - case 122: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - dependencies_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - dependencies_.add( - input.readMessage(org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.parser(), extensionRegistry)); - break; - } - case 130: { - java.lang.String s = input.readStringRequireUtf8(); - - registeredSaver_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - children_ = java.util.Collections.unmodifiableList(children_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - slotVariables_ = java.util.Collections.unmodifiableList(slotVariables_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - dependencies_ = java.util.Collections.unmodifiableList(dependencies_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedObject_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 11: - return internalGetSaveableObjects(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedObject_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SavedObject.class, org.tensorflow.proto.framework.SavedObject.Builder.class); - } - - private int kindCase_ = 0; - private java.lang.Object kind_; - public enum KindCase - implements com.google.protobuf.Internal.EnumLite { - USER_OBJECT(4), - ASSET(5), - FUNCTION(6), - VARIABLE(7), - BARE_CONCRETE_FUNCTION(8), - CONSTANT(9), - RESOURCE(10), - CAPTURED_TENSOR(12), - KIND_NOT_SET(0); - private final int value; - private KindCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static KindCase valueOf(int value) { - return forNumber(value); - } - - public static KindCase forNumber(int value) { - switch (value) { - case 4: return USER_OBJECT; - case 5: return ASSET; - case 6: return FUNCTION; - case 7: return VARIABLE; - case 8: return BARE_CONCRETE_FUNCTION; - case 9: return CONSTANT; - case 10: return RESOURCE; - case 12: return CAPTURED_TENSOR; - case 0: return KIND_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public KindCase - getKindCase() { - return KindCase.forNumber( - kindCase_); - } - - public static final int CHILDREN_FIELD_NUMBER = 1; - private java.util.List children_; - /** - *
-   * Objects which this object depends on: named edges in the dependency
-   * graph.
-   * Note: All kinds of SavedObject may have children, except
-   * "constant" and "captured_tensor".
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public java.util.List getChildrenList() { - return children_; - } - /** - *
-   * Objects which this object depends on: named edges in the dependency
-   * graph.
-   * Note: All kinds of SavedObject may have children, except
-   * "constant" and "captured_tensor".
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public java.util.List - getChildrenOrBuilderList() { - return children_; - } - /** - *
-   * Objects which this object depends on: named edges in the dependency
-   * graph.
-   * Note: All kinds of SavedObject may have children, except
-   * "constant" and "captured_tensor".
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public int getChildrenCount() { - return children_.size(); - } - /** - *
-   * Objects which this object depends on: named edges in the dependency
-   * graph.
-   * Note: All kinds of SavedObject may have children, except
-   * "constant" and "captured_tensor".
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference getChildren(int index) { - return children_.get(index); - } - /** - *
-   * Objects which this object depends on: named edges in the dependency
-   * graph.
-   * Note: All kinds of SavedObject may have children, except
-   * "constant" and "captured_tensor".
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder getChildrenOrBuilder( - int index) { - return children_.get(index); - } - - public static final int DEPENDENCIES_FIELD_NUMBER = 15; - private java.util.List dependencies_; - /** - *
-   * Ordered list of dependencies that must be loaded before this object.
-   * SavedModel loads with the bottom-up approach, by first creating all objects
-   * (in the order defined by the dependencies), then connecting the edges.
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public java.util.List getDependenciesList() { - return dependencies_; - } - /** - *
-   * Ordered list of dependencies that must be loaded before this object.
-   * SavedModel loads with the bottom-up approach, by first creating all objects
-   * (in the order defined by the dependencies), then connecting the edges.
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public java.util.List - getDependenciesOrBuilderList() { - return dependencies_; - } - /** - *
-   * Ordered list of dependencies that must be loaded before this object.
-   * SavedModel loads with the bottom-up approach, by first creating all objects
-   * (in the order defined by the dependencies), then connecting the edges.
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public int getDependenciesCount() { - return dependencies_.size(); - } - /** - *
-   * Ordered list of dependencies that must be loaded before this object.
-   * SavedModel loads with the bottom-up approach, by first creating all objects
-   * (in the order defined by the dependencies), then connecting the edges.
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference getDependencies(int index) { - return dependencies_.get(index); - } - /** - *
-   * Ordered list of dependencies that must be loaded before this object.
-   * SavedModel loads with the bottom-up approach, by first creating all objects
-   * (in the order defined by the dependencies), then connecting the edges.
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder getDependenciesOrBuilder( - int index) { - return dependencies_.get(index); - } - - public static final int SLOT_VARIABLES_FIELD_NUMBER = 3; - private java.util.List slotVariables_; - /** - *
-   * Slot variables owned by this object. This describes the three-way
-   * (optimizer, variable, slot variable) relationship; none of the three
-   * depend on the others directly.
-   * Note: currently only valid if kind == "user_object".
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public java.util.List getSlotVariablesList() { - return slotVariables_; - } - /** - *
-   * Slot variables owned by this object. This describes the three-way
-   * (optimizer, variable, slot variable) relationship; none of the three
-   * depend on the others directly.
-   * Note: currently only valid if kind == "user_object".
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public java.util.List - getSlotVariablesOrBuilderList() { - return slotVariables_; - } - /** - *
-   * Slot variables owned by this object. This describes the three-way
-   * (optimizer, variable, slot variable) relationship; none of the three
-   * depend on the others directly.
-   * Note: currently only valid if kind == "user_object".
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public int getSlotVariablesCount() { - return slotVariables_.size(); - } - /** - *
-   * Slot variables owned by this object. This describes the three-way
-   * (optimizer, variable, slot variable) relationship; none of the three
-   * depend on the others directly.
-   * Note: currently only valid if kind == "user_object".
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReference getSlotVariables(int index) { - return slotVariables_.get(index); - } - /** - *
-   * Slot variables owned by this object. This describes the three-way
-   * (optimizer, variable, slot variable) relationship; none of the three
-   * depend on the others directly.
-   * Note: currently only valid if kind == "user_object".
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder getSlotVariablesOrBuilder( - int index) { - return slotVariables_.get(index); - } - - public static final int USER_OBJECT_FIELD_NUMBER = 4; - /** - * .tensorflow.SavedUserObject user_object = 4; - */ - public boolean hasUserObject() { - return kindCase_ == 4; - } - /** - * .tensorflow.SavedUserObject user_object = 4; - */ - public org.tensorflow.proto.framework.SavedUserObject getUserObject() { - if (kindCase_ == 4) { - return (org.tensorflow.proto.framework.SavedUserObject) kind_; - } - return org.tensorflow.proto.framework.SavedUserObject.getDefaultInstance(); - } - /** - * .tensorflow.SavedUserObject user_object = 4; - */ - public org.tensorflow.proto.framework.SavedUserObjectOrBuilder getUserObjectOrBuilder() { - if (kindCase_ == 4) { - return (org.tensorflow.proto.framework.SavedUserObject) kind_; - } - return org.tensorflow.proto.framework.SavedUserObject.getDefaultInstance(); - } - - public static final int ASSET_FIELD_NUMBER = 5; - /** - * .tensorflow.SavedAsset asset = 5; - */ - public boolean hasAsset() { - return kindCase_ == 5; - } - /** - * .tensorflow.SavedAsset asset = 5; - */ - public org.tensorflow.proto.framework.SavedAsset getAsset() { - if (kindCase_ == 5) { - return (org.tensorflow.proto.framework.SavedAsset) kind_; - } - return org.tensorflow.proto.framework.SavedAsset.getDefaultInstance(); - } - /** - * .tensorflow.SavedAsset asset = 5; - */ - public org.tensorflow.proto.framework.SavedAssetOrBuilder getAssetOrBuilder() { - if (kindCase_ == 5) { - return (org.tensorflow.proto.framework.SavedAsset) kind_; - } - return org.tensorflow.proto.framework.SavedAsset.getDefaultInstance(); - } - - public static final int FUNCTION_FIELD_NUMBER = 6; - /** - * .tensorflow.SavedFunction function = 6; - */ - public boolean hasFunction() { - return kindCase_ == 6; - } - /** - * .tensorflow.SavedFunction function = 6; - */ - public org.tensorflow.proto.framework.SavedFunction getFunction() { - if (kindCase_ == 6) { - return (org.tensorflow.proto.framework.SavedFunction) kind_; - } - return org.tensorflow.proto.framework.SavedFunction.getDefaultInstance(); - } - /** - * .tensorflow.SavedFunction function = 6; - */ - public org.tensorflow.proto.framework.SavedFunctionOrBuilder getFunctionOrBuilder() { - if (kindCase_ == 6) { - return (org.tensorflow.proto.framework.SavedFunction) kind_; - } - return org.tensorflow.proto.framework.SavedFunction.getDefaultInstance(); - } - - public static final int VARIABLE_FIELD_NUMBER = 7; - /** - * .tensorflow.SavedVariable variable = 7; - */ - public boolean hasVariable() { - return kindCase_ == 7; - } - /** - * .tensorflow.SavedVariable variable = 7; - */ - public org.tensorflow.proto.framework.SavedVariable getVariable() { - if (kindCase_ == 7) { - return (org.tensorflow.proto.framework.SavedVariable) kind_; - } - return org.tensorflow.proto.framework.SavedVariable.getDefaultInstance(); - } - /** - * .tensorflow.SavedVariable variable = 7; - */ - public org.tensorflow.proto.framework.SavedVariableOrBuilder getVariableOrBuilder() { - if (kindCase_ == 7) { - return (org.tensorflow.proto.framework.SavedVariable) kind_; - } - return org.tensorflow.proto.framework.SavedVariable.getDefaultInstance(); - } - - public static final int BARE_CONCRETE_FUNCTION_FIELD_NUMBER = 8; - /** - * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; - */ - public boolean hasBareConcreteFunction() { - return kindCase_ == 8; - } - /** - * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; - */ - public org.tensorflow.proto.framework.SavedBareConcreteFunction getBareConcreteFunction() { - if (kindCase_ == 8) { - return (org.tensorflow.proto.framework.SavedBareConcreteFunction) kind_; - } - return org.tensorflow.proto.framework.SavedBareConcreteFunction.getDefaultInstance(); - } - /** - * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; - */ - public org.tensorflow.proto.framework.SavedBareConcreteFunctionOrBuilder getBareConcreteFunctionOrBuilder() { - if (kindCase_ == 8) { - return (org.tensorflow.proto.framework.SavedBareConcreteFunction) kind_; - } - return org.tensorflow.proto.framework.SavedBareConcreteFunction.getDefaultInstance(); - } - - public static final int CONSTANT_FIELD_NUMBER = 9; - /** - * .tensorflow.SavedConstant constant = 9; - */ - public boolean hasConstant() { - return kindCase_ == 9; - } - /** - * .tensorflow.SavedConstant constant = 9; - */ - public org.tensorflow.proto.framework.SavedConstant getConstant() { - if (kindCase_ == 9) { - return (org.tensorflow.proto.framework.SavedConstant) kind_; - } - return org.tensorflow.proto.framework.SavedConstant.getDefaultInstance(); - } - /** - * .tensorflow.SavedConstant constant = 9; - */ - public org.tensorflow.proto.framework.SavedConstantOrBuilder getConstantOrBuilder() { - if (kindCase_ == 9) { - return (org.tensorflow.proto.framework.SavedConstant) kind_; - } - return org.tensorflow.proto.framework.SavedConstant.getDefaultInstance(); - } - - public static final int RESOURCE_FIELD_NUMBER = 10; - /** - * .tensorflow.SavedResource resource = 10; - */ - public boolean hasResource() { - return kindCase_ == 10; - } - /** - * .tensorflow.SavedResource resource = 10; - */ - public org.tensorflow.proto.framework.SavedResource getResource() { - if (kindCase_ == 10) { - return (org.tensorflow.proto.framework.SavedResource) kind_; - } - return org.tensorflow.proto.framework.SavedResource.getDefaultInstance(); - } - /** - * .tensorflow.SavedResource resource = 10; - */ - public org.tensorflow.proto.framework.SavedResourceOrBuilder getResourceOrBuilder() { - if (kindCase_ == 10) { - return (org.tensorflow.proto.framework.SavedResource) kind_; - } - return org.tensorflow.proto.framework.SavedResource.getDefaultInstance(); - } - - public static final int CAPTURED_TENSOR_FIELD_NUMBER = 12; - /** - * .tensorflow.CapturedTensor captured_tensor = 12; - */ - public boolean hasCapturedTensor() { - return kindCase_ == 12; - } - /** - * .tensorflow.CapturedTensor captured_tensor = 12; - */ - public org.tensorflow.proto.framework.CapturedTensor getCapturedTensor() { - if (kindCase_ == 12) { - return (org.tensorflow.proto.framework.CapturedTensor) kind_; - } - return org.tensorflow.proto.framework.CapturedTensor.getDefaultInstance(); - } - /** - * .tensorflow.CapturedTensor captured_tensor = 12; - */ - public org.tensorflow.proto.framework.CapturedTensorOrBuilder getCapturedTensorOrBuilder() { - if (kindCase_ == 12) { - return (org.tensorflow.proto.framework.CapturedTensor) kind_; - } - return org.tensorflow.proto.framework.CapturedTensor.getDefaultInstance(); - } - - public static final int SAVEABLE_OBJECTS_FIELD_NUMBER = 11; - private static final class SaveableObjectsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, org.tensorflow.proto.framework.SaveableObject> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedObject_SaveableObjectsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.tensorflow.proto.framework.SaveableObject.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.SaveableObject> saveableObjects_; - private com.google.protobuf.MapField - internalGetSaveableObjects() { - if (saveableObjects_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SaveableObjectsDefaultEntryHolder.defaultEntry); - } - return saveableObjects_; - } - - public int getSaveableObjectsCount() { - return internalGetSaveableObjects().getMap().size(); - } - /** - *
-   * Stores the functions used to save and restore this object. At most one of
-   * `saveable_objects` or `registered_saver` is defined for each SavedObject.
-   * See the comment below for the difference between SaveableObject and
-   * registered savers.
-   * 
- * - * map<string, .tensorflow.SaveableObject> saveable_objects = 11; - */ - - public boolean containsSaveableObjects( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetSaveableObjects().getMap().containsKey(key); - } - /** - * Use {@link #getSaveableObjectsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getSaveableObjects() { - return getSaveableObjectsMap(); - } - /** - *
-   * Stores the functions used to save and restore this object. At most one of
-   * `saveable_objects` or `registered_saver` is defined for each SavedObject.
-   * See the comment below for the difference between SaveableObject and
-   * registered savers.
-   * 
- * - * map<string, .tensorflow.SaveableObject> saveable_objects = 11; - */ - - public java.util.Map getSaveableObjectsMap() { - return internalGetSaveableObjects().getMap(); - } - /** - *
-   * Stores the functions used to save and restore this object. At most one of
-   * `saveable_objects` or `registered_saver` is defined for each SavedObject.
-   * See the comment below for the difference between SaveableObject and
-   * registered savers.
-   * 
- * - * map<string, .tensorflow.SaveableObject> saveable_objects = 11; - */ - - public org.tensorflow.proto.framework.SaveableObject getSaveableObjectsOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.SaveableObject defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetSaveableObjects().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-   * Stores the functions used to save and restore this object. At most one of
-   * `saveable_objects` or `registered_saver` is defined for each SavedObject.
-   * See the comment below for the difference between SaveableObject and
-   * registered savers.
-   * 
- * - * map<string, .tensorflow.SaveableObject> saveable_objects = 11; - */ - - public org.tensorflow.proto.framework.SaveableObject getSaveableObjectsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetSaveableObjects().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int REGISTERED_NAME_FIELD_NUMBER = 13; - private volatile java.lang.Object registeredName_; - /** - *
-   * The name of the registered class of the form "{package}.{class_name}".
-   * This field is used to search for the registered class at loading time.
-   * 
- * - * string registered_name = 13; - */ - public java.lang.String getRegisteredName() { - java.lang.Object ref = registeredName_; - 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(); - registeredName_ = s; - return s; - } - } - /** - *
-   * The name of the registered class of the form "{package}.{class_name}".
-   * This field is used to search for the registered class at loading time.
-   * 
- * - * string registered_name = 13; - */ - public com.google.protobuf.ByteString - getRegisteredNameBytes() { - java.lang.Object ref = registeredName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - registeredName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERIALIZED_USER_PROTO_FIELD_NUMBER = 14; - private com.google.protobuf.Any serializedUserProto_; - /** - *
-   * The user-generated proto storing metadata for this object, to be passed to
-   * the registered classes's _deserialize_from_proto method when this object is
-   * loaded from the SavedModel.
-   * 
- * - * .google.protobuf.Any serialized_user_proto = 14; - */ - public boolean hasSerializedUserProto() { - return serializedUserProto_ != null; - } - /** - *
-   * The user-generated proto storing metadata for this object, to be passed to
-   * the registered classes's _deserialize_from_proto method when this object is
-   * loaded from the SavedModel.
-   * 
- * - * .google.protobuf.Any serialized_user_proto = 14; - */ - public com.google.protobuf.Any getSerializedUserProto() { - return serializedUserProto_ == null ? com.google.protobuf.Any.getDefaultInstance() : serializedUserProto_; - } - /** - *
-   * The user-generated proto storing metadata for this object, to be passed to
-   * the registered classes's _deserialize_from_proto method when this object is
-   * loaded from the SavedModel.
-   * 
- * - * .google.protobuf.Any serialized_user_proto = 14; - */ - public com.google.protobuf.AnyOrBuilder getSerializedUserProtoOrBuilder() { - return getSerializedUserProto(); - } - - public static final int REGISTERED_SAVER_FIELD_NUMBER = 16; - private volatile java.lang.Object registeredSaver_; - /** - *
-   * String name of the registered saver. At most one of `saveable_objects` or
-   * `registered_saver` is defined for each SavedObject.
-   * 
- * - * string registered_saver = 16; - */ - public java.lang.String getRegisteredSaver() { - java.lang.Object ref = registeredSaver_; - 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(); - registeredSaver_ = s; - return s; - } - } - /** - *
-   * String name of the registered saver. At most one of `saveable_objects` or
-   * `registered_saver` is defined for each SavedObject.
-   * 
- * - * string registered_saver = 16; - */ - public com.google.protobuf.ByteString - getRegisteredSaverBytes() { - java.lang.Object ref = registeredSaver_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - registeredSaver_ = 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 { - for (int i = 0; i < children_.size(); i++) { - output.writeMessage(1, children_.get(i)); - } - for (int i = 0; i < slotVariables_.size(); i++) { - output.writeMessage(3, slotVariables_.get(i)); - } - if (kindCase_ == 4) { - output.writeMessage(4, (org.tensorflow.proto.framework.SavedUserObject) kind_); - } - if (kindCase_ == 5) { - output.writeMessage(5, (org.tensorflow.proto.framework.SavedAsset) kind_); - } - if (kindCase_ == 6) { - output.writeMessage(6, (org.tensorflow.proto.framework.SavedFunction) kind_); - } - if (kindCase_ == 7) { - output.writeMessage(7, (org.tensorflow.proto.framework.SavedVariable) kind_); - } - if (kindCase_ == 8) { - output.writeMessage(8, (org.tensorflow.proto.framework.SavedBareConcreteFunction) kind_); - } - if (kindCase_ == 9) { - output.writeMessage(9, (org.tensorflow.proto.framework.SavedConstant) kind_); - } - if (kindCase_ == 10) { - output.writeMessage(10, (org.tensorflow.proto.framework.SavedResource) kind_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetSaveableObjects(), - SaveableObjectsDefaultEntryHolder.defaultEntry, - 11); - if (kindCase_ == 12) { - output.writeMessage(12, (org.tensorflow.proto.framework.CapturedTensor) kind_); - } - if (!getRegisteredNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, registeredName_); - } - if (serializedUserProto_ != null) { - output.writeMessage(14, getSerializedUserProto()); - } - for (int i = 0; i < dependencies_.size(); i++) { - output.writeMessage(15, dependencies_.get(i)); - } - if (!getRegisteredSaverBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, registeredSaver_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < children_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, children_.get(i)); - } - for (int i = 0; i < slotVariables_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, slotVariables_.get(i)); - } - if (kindCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (org.tensorflow.proto.framework.SavedUserObject) kind_); - } - if (kindCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (org.tensorflow.proto.framework.SavedAsset) kind_); - } - if (kindCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (org.tensorflow.proto.framework.SavedFunction) kind_); - } - if (kindCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (org.tensorflow.proto.framework.SavedVariable) kind_); - } - if (kindCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (org.tensorflow.proto.framework.SavedBareConcreteFunction) kind_); - } - if (kindCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (org.tensorflow.proto.framework.SavedConstant) kind_); - } - if (kindCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (org.tensorflow.proto.framework.SavedResource) kind_); - } - for (java.util.Map.Entry entry - : internalGetSaveableObjects().getMap().entrySet()) { - com.google.protobuf.MapEntry - saveableObjects__ = SaveableObjectsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, saveableObjects__); - } - if (kindCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (org.tensorflow.proto.framework.CapturedTensor) kind_); - } - if (!getRegisteredNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, registeredName_); - } - if (serializedUserProto_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getSerializedUserProto()); - } - for (int i = 0; i < dependencies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, dependencies_.get(i)); - } - if (!getRegisteredSaverBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, registeredSaver_); - } - 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 org.tensorflow.proto.framework.SavedObject)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.SavedObject other = (org.tensorflow.proto.framework.SavedObject) obj; - - if (!getChildrenList() - .equals(other.getChildrenList())) return false; - if (!getDependenciesList() - .equals(other.getDependenciesList())) return false; - if (!getSlotVariablesList() - .equals(other.getSlotVariablesList())) return false; - if (!internalGetSaveableObjects().equals( - other.internalGetSaveableObjects())) return false; - if (!getRegisteredName() - .equals(other.getRegisteredName())) return false; - if (hasSerializedUserProto() != other.hasSerializedUserProto()) return false; - if (hasSerializedUserProto()) { - if (!getSerializedUserProto() - .equals(other.getSerializedUserProto())) return false; - } - if (!getRegisteredSaver() - .equals(other.getRegisteredSaver())) return false; - if (!getKindCase().equals(other.getKindCase())) return false; - switch (kindCase_) { - case 4: - if (!getUserObject() - .equals(other.getUserObject())) return false; - break; - case 5: - if (!getAsset() - .equals(other.getAsset())) return false; - break; - case 6: - if (!getFunction() - .equals(other.getFunction())) return false; - break; - case 7: - if (!getVariable() - .equals(other.getVariable())) return false; - break; - case 8: - if (!getBareConcreteFunction() - .equals(other.getBareConcreteFunction())) return false; - break; - case 9: - if (!getConstant() - .equals(other.getConstant())) return false; - break; - case 10: - if (!getResource() - .equals(other.getResource())) return false; - break; - case 12: - if (!getCapturedTensor() - .equals(other.getCapturedTensor())) return false; - break; - case 0: - default: - } - 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 (getChildrenCount() > 0) { - hash = (37 * hash) + CHILDREN_FIELD_NUMBER; - hash = (53 * hash) + getChildrenList().hashCode(); - } - if (getDependenciesCount() > 0) { - hash = (37 * hash) + DEPENDENCIES_FIELD_NUMBER; - hash = (53 * hash) + getDependenciesList().hashCode(); - } - if (getSlotVariablesCount() > 0) { - hash = (37 * hash) + SLOT_VARIABLES_FIELD_NUMBER; - hash = (53 * hash) + getSlotVariablesList().hashCode(); - } - if (!internalGetSaveableObjects().getMap().isEmpty()) { - hash = (37 * hash) + SAVEABLE_OBJECTS_FIELD_NUMBER; - hash = (53 * hash) + internalGetSaveableObjects().hashCode(); - } - hash = (37 * hash) + REGISTERED_NAME_FIELD_NUMBER; - hash = (53 * hash) + getRegisteredName().hashCode(); - if (hasSerializedUserProto()) { - hash = (37 * hash) + SERIALIZED_USER_PROTO_FIELD_NUMBER; - hash = (53 * hash) + getSerializedUserProto().hashCode(); - } - hash = (37 * hash) + REGISTERED_SAVER_FIELD_NUMBER; - hash = (53 * hash) + getRegisteredSaver().hashCode(); - switch (kindCase_) { - case 4: - hash = (37 * hash) + USER_OBJECT_FIELD_NUMBER; - hash = (53 * hash) + getUserObject().hashCode(); - break; - case 5: - hash = (37 * hash) + ASSET_FIELD_NUMBER; - hash = (53 * hash) + getAsset().hashCode(); - break; - case 6: - hash = (37 * hash) + FUNCTION_FIELD_NUMBER; - hash = (53 * hash) + getFunction().hashCode(); - break; - case 7: - hash = (37 * hash) + VARIABLE_FIELD_NUMBER; - hash = (53 * hash) + getVariable().hashCode(); - break; - case 8: - hash = (37 * hash) + BARE_CONCRETE_FUNCTION_FIELD_NUMBER; - hash = (53 * hash) + getBareConcreteFunction().hashCode(); - break; - case 9: - hash = (37 * hash) + CONSTANT_FIELD_NUMBER; - hash = (53 * hash) + getConstant().hashCode(); - break; - case 10: - hash = (37 * hash) + RESOURCE_FIELD_NUMBER; - hash = (53 * hash) + getResource().hashCode(); - break; - case 12: - hash = (37 * hash) + CAPTURED_TENSOR_FIELD_NUMBER; - hash = (53 * hash) + getCapturedTensor().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.SavedObject parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedObject parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedObject parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedObject parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedObject parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedObject parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedObject parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedObject 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 org.tensorflow.proto.framework.SavedObject parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedObject 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 org.tensorflow.proto.framework.SavedObject parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedObject 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(org.tensorflow.proto.framework.SavedObject prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.SavedObject} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.SavedObject) - org.tensorflow.proto.framework.SavedObjectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedObject_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 11: - return internalGetSaveableObjects(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 11: - return internalGetMutableSaveableObjects(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedObject_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SavedObject.class, org.tensorflow.proto.framework.SavedObject.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.SavedObject.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getChildrenFieldBuilder(); - getDependenciesFieldBuilder(); - getSlotVariablesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (childrenBuilder_ == null) { - children_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - childrenBuilder_.clear(); - } - if (dependenciesBuilder_ == null) { - dependencies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - dependenciesBuilder_.clear(); - } - if (slotVariablesBuilder_ == null) { - slotVariables_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - slotVariablesBuilder_.clear(); - } - internalGetMutableSaveableObjects().clear(); - registeredName_ = ""; - - if (serializedUserProtoBuilder_ == null) { - serializedUserProto_ = null; - } else { - serializedUserProto_ = null; - serializedUserProtoBuilder_ = null; - } - registeredSaver_ = ""; - - kindCase_ = 0; - kind_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedObject_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedObject getDefaultInstanceForType() { - return org.tensorflow.proto.framework.SavedObject.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedObject build() { - org.tensorflow.proto.framework.SavedObject result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedObject buildPartial() { - org.tensorflow.proto.framework.SavedObject result = new org.tensorflow.proto.framework.SavedObject(this); - int from_bitField0_ = bitField0_; - if (childrenBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - children_ = java.util.Collections.unmodifiableList(children_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.children_ = children_; - } else { - result.children_ = childrenBuilder_.build(); - } - if (dependenciesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - dependencies_ = java.util.Collections.unmodifiableList(dependencies_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.dependencies_ = dependencies_; - } else { - result.dependencies_ = dependenciesBuilder_.build(); - } - if (slotVariablesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - slotVariables_ = java.util.Collections.unmodifiableList(slotVariables_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.slotVariables_ = slotVariables_; - } else { - result.slotVariables_ = slotVariablesBuilder_.build(); - } - if (kindCase_ == 4) { - if (userObjectBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = userObjectBuilder_.build(); - } - } - if (kindCase_ == 5) { - if (assetBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = assetBuilder_.build(); - } - } - if (kindCase_ == 6) { - if (functionBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = functionBuilder_.build(); - } - } - if (kindCase_ == 7) { - if (variableBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = variableBuilder_.build(); - } - } - if (kindCase_ == 8) { - if (bareConcreteFunctionBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = bareConcreteFunctionBuilder_.build(); - } - } - if (kindCase_ == 9) { - if (constantBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = constantBuilder_.build(); - } - } - if (kindCase_ == 10) { - if (resourceBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = resourceBuilder_.build(); - } - } - if (kindCase_ == 12) { - if (capturedTensorBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = capturedTensorBuilder_.build(); - } - } - result.saveableObjects_ = internalGetSaveableObjects(); - result.saveableObjects_.makeImmutable(); - result.registeredName_ = registeredName_; - if (serializedUserProtoBuilder_ == null) { - result.serializedUserProto_ = serializedUserProto_; - } else { - result.serializedUserProto_ = serializedUserProtoBuilder_.build(); - } - result.registeredSaver_ = registeredSaver_; - result.kindCase_ = kindCase_; - 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 org.tensorflow.proto.framework.SavedObject) { - return mergeFrom((org.tensorflow.proto.framework.SavedObject)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.SavedObject other) { - if (other == org.tensorflow.proto.framework.SavedObject.getDefaultInstance()) return this; - if (childrenBuilder_ == null) { - if (!other.children_.isEmpty()) { - if (children_.isEmpty()) { - children_ = other.children_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureChildrenIsMutable(); - children_.addAll(other.children_); - } - onChanged(); - } - } else { - if (!other.children_.isEmpty()) { - if (childrenBuilder_.isEmpty()) { - childrenBuilder_.dispose(); - childrenBuilder_ = null; - children_ = other.children_; - bitField0_ = (bitField0_ & ~0x00000001); - childrenBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChildrenFieldBuilder() : null; - } else { - childrenBuilder_.addAllMessages(other.children_); - } - } - } - if (dependenciesBuilder_ == null) { - if (!other.dependencies_.isEmpty()) { - if (dependencies_.isEmpty()) { - dependencies_ = other.dependencies_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDependenciesIsMutable(); - dependencies_.addAll(other.dependencies_); - } - onChanged(); - } - } else { - if (!other.dependencies_.isEmpty()) { - if (dependenciesBuilder_.isEmpty()) { - dependenciesBuilder_.dispose(); - dependenciesBuilder_ = null; - dependencies_ = other.dependencies_; - bitField0_ = (bitField0_ & ~0x00000002); - dependenciesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDependenciesFieldBuilder() : null; - } else { - dependenciesBuilder_.addAllMessages(other.dependencies_); - } - } - } - if (slotVariablesBuilder_ == null) { - if (!other.slotVariables_.isEmpty()) { - if (slotVariables_.isEmpty()) { - slotVariables_ = other.slotVariables_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureSlotVariablesIsMutable(); - slotVariables_.addAll(other.slotVariables_); - } - onChanged(); - } - } else { - if (!other.slotVariables_.isEmpty()) { - if (slotVariablesBuilder_.isEmpty()) { - slotVariablesBuilder_.dispose(); - slotVariablesBuilder_ = null; - slotVariables_ = other.slotVariables_; - bitField0_ = (bitField0_ & ~0x00000004); - slotVariablesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSlotVariablesFieldBuilder() : null; - } else { - slotVariablesBuilder_.addAllMessages(other.slotVariables_); - } - } - } - internalGetMutableSaveableObjects().mergeFrom( - other.internalGetSaveableObjects()); - if (!other.getRegisteredName().isEmpty()) { - registeredName_ = other.registeredName_; - onChanged(); - } - if (other.hasSerializedUserProto()) { - mergeSerializedUserProto(other.getSerializedUserProto()); - } - if (!other.getRegisteredSaver().isEmpty()) { - registeredSaver_ = other.registeredSaver_; - onChanged(); - } - switch (other.getKindCase()) { - case USER_OBJECT: { - mergeUserObject(other.getUserObject()); - break; - } - case ASSET: { - mergeAsset(other.getAsset()); - break; - } - case FUNCTION: { - mergeFunction(other.getFunction()); - break; - } - case VARIABLE: { - mergeVariable(other.getVariable()); - break; - } - case BARE_CONCRETE_FUNCTION: { - mergeBareConcreteFunction(other.getBareConcreteFunction()); - break; - } - case CONSTANT: { - mergeConstant(other.getConstant()); - break; - } - case RESOURCE: { - mergeResource(other.getResource()); - break; - } - case CAPTURED_TENSOR: { - mergeCapturedTensor(other.getCapturedTensor()); - break; - } - case KIND_NOT_SET: { - break; - } - } - 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 { - org.tensorflow.proto.framework.SavedObject parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.SavedObject) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int kindCase_ = 0; - private java.lang.Object kind_; - public KindCase - getKindCase() { - return KindCase.forNumber( - kindCase_); - } - - public Builder clearKind() { - kindCase_ = 0; - kind_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.util.List children_ = - java.util.Collections.emptyList(); - private void ensureChildrenIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - children_ = new java.util.ArrayList(children_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.Builder, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder> childrenBuilder_; - - /** - *
-     * Objects which this object depends on: named edges in the dependency
-     * graph.
-     * Note: All kinds of SavedObject may have children, except
-     * "constant" and "captured_tensor".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public java.util.List getChildrenList() { - if (childrenBuilder_ == null) { - return java.util.Collections.unmodifiableList(children_); - } else { - return childrenBuilder_.getMessageList(); - } - } - /** - *
-     * Objects which this object depends on: named edges in the dependency
-     * graph.
-     * Note: All kinds of SavedObject may have children, except
-     * "constant" and "captured_tensor".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public int getChildrenCount() { - if (childrenBuilder_ == null) { - return children_.size(); - } else { - return childrenBuilder_.getCount(); - } - } - /** - *
-     * Objects which this object depends on: named edges in the dependency
-     * graph.
-     * Note: All kinds of SavedObject may have children, except
-     * "constant" and "captured_tensor".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference getChildren(int index) { - if (childrenBuilder_ == null) { - return children_.get(index); - } else { - return childrenBuilder_.getMessage(index); - } - } - /** - *
-     * Objects which this object depends on: named edges in the dependency
-     * graph.
-     * Note: All kinds of SavedObject may have children, except
-     * "constant" and "captured_tensor".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public Builder setChildren( - int index, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference value) { - if (childrenBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChildrenIsMutable(); - children_.set(index, value); - onChanged(); - } else { - childrenBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Objects which this object depends on: named edges in the dependency
-     * graph.
-     * Note: All kinds of SavedObject may have children, except
-     * "constant" and "captured_tensor".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public Builder setChildren( - int index, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.Builder builderForValue) { - if (childrenBuilder_ == null) { - ensureChildrenIsMutable(); - children_.set(index, builderForValue.build()); - onChanged(); - } else { - childrenBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Objects which this object depends on: named edges in the dependency
-     * graph.
-     * Note: All kinds of SavedObject may have children, except
-     * "constant" and "captured_tensor".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public Builder addChildren(org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference value) { - if (childrenBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChildrenIsMutable(); - children_.add(value); - onChanged(); - } else { - childrenBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Objects which this object depends on: named edges in the dependency
-     * graph.
-     * Note: All kinds of SavedObject may have children, except
-     * "constant" and "captured_tensor".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public Builder addChildren( - int index, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference value) { - if (childrenBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChildrenIsMutable(); - children_.add(index, value); - onChanged(); - } else { - childrenBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Objects which this object depends on: named edges in the dependency
-     * graph.
-     * Note: All kinds of SavedObject may have children, except
-     * "constant" and "captured_tensor".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public Builder addChildren( - org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.Builder builderForValue) { - if (childrenBuilder_ == null) { - ensureChildrenIsMutable(); - children_.add(builderForValue.build()); - onChanged(); - } else { - childrenBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Objects which this object depends on: named edges in the dependency
-     * graph.
-     * Note: All kinds of SavedObject may have children, except
-     * "constant" and "captured_tensor".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public Builder addChildren( - int index, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.Builder builderForValue) { - if (childrenBuilder_ == null) { - ensureChildrenIsMutable(); - children_.add(index, builderForValue.build()); - onChanged(); - } else { - childrenBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Objects which this object depends on: named edges in the dependency
-     * graph.
-     * Note: All kinds of SavedObject may have children, except
-     * "constant" and "captured_tensor".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public Builder addAllChildren( - java.lang.Iterable values) { - if (childrenBuilder_ == null) { - ensureChildrenIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, children_); - onChanged(); - } else { - childrenBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Objects which this object depends on: named edges in the dependency
-     * graph.
-     * Note: All kinds of SavedObject may have children, except
-     * "constant" and "captured_tensor".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public Builder clearChildren() { - if (childrenBuilder_ == null) { - children_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - childrenBuilder_.clear(); - } - return this; - } - /** - *
-     * Objects which this object depends on: named edges in the dependency
-     * graph.
-     * Note: All kinds of SavedObject may have children, except
-     * "constant" and "captured_tensor".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public Builder removeChildren(int index) { - if (childrenBuilder_ == null) { - ensureChildrenIsMutable(); - children_.remove(index); - onChanged(); - } else { - childrenBuilder_.remove(index); - } - return this; - } - /** - *
-     * Objects which this object depends on: named edges in the dependency
-     * graph.
-     * Note: All kinds of SavedObject may have children, except
-     * "constant" and "captured_tensor".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.Builder getChildrenBuilder( - int index) { - return getChildrenFieldBuilder().getBuilder(index); - } - /** - *
-     * Objects which this object depends on: named edges in the dependency
-     * graph.
-     * Note: All kinds of SavedObject may have children, except
-     * "constant" and "captured_tensor".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder getChildrenOrBuilder( - int index) { - if (childrenBuilder_ == null) { - return children_.get(index); } else { - return childrenBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Objects which this object depends on: named edges in the dependency
-     * graph.
-     * Note: All kinds of SavedObject may have children, except
-     * "constant" and "captured_tensor".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public java.util.List - getChildrenOrBuilderList() { - if (childrenBuilder_ != null) { - return childrenBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(children_); - } - } - /** - *
-     * Objects which this object depends on: named edges in the dependency
-     * graph.
-     * Note: All kinds of SavedObject may have children, except
-     * "constant" and "captured_tensor".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.Builder addChildrenBuilder() { - return getChildrenFieldBuilder().addBuilder( - org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.getDefaultInstance()); - } - /** - *
-     * Objects which this object depends on: named edges in the dependency
-     * graph.
-     * Note: All kinds of SavedObject may have children, except
-     * "constant" and "captured_tensor".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.Builder addChildrenBuilder( - int index) { - return getChildrenFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.getDefaultInstance()); - } - /** - *
-     * Objects which this object depends on: named edges in the dependency
-     * graph.
-     * Note: All kinds of SavedObject may have children, except
-     * "constant" and "captured_tensor".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - public java.util.List - getChildrenBuilderList() { - return getChildrenFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.Builder, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder> - getChildrenFieldBuilder() { - if (childrenBuilder_ == null) { - childrenBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.Builder, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder>( - children_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - children_ = null; - } - return childrenBuilder_; - } - - private java.util.List dependencies_ = - java.util.Collections.emptyList(); - private void ensureDependenciesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - dependencies_ = new java.util.ArrayList(dependencies_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.Builder, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder> dependenciesBuilder_; - - /** - *
-     * Ordered list of dependencies that must be loaded before this object.
-     * SavedModel loads with the bottom-up approach, by first creating all objects
-     * (in the order defined by the dependencies), then connecting the edges.
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public java.util.List getDependenciesList() { - if (dependenciesBuilder_ == null) { - return java.util.Collections.unmodifiableList(dependencies_); - } else { - return dependenciesBuilder_.getMessageList(); - } - } - /** - *
-     * Ordered list of dependencies that must be loaded before this object.
-     * SavedModel loads with the bottom-up approach, by first creating all objects
-     * (in the order defined by the dependencies), then connecting the edges.
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public int getDependenciesCount() { - if (dependenciesBuilder_ == null) { - return dependencies_.size(); - } else { - return dependenciesBuilder_.getCount(); - } - } - /** - *
-     * Ordered list of dependencies that must be loaded before this object.
-     * SavedModel loads with the bottom-up approach, by first creating all objects
-     * (in the order defined by the dependencies), then connecting the edges.
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference getDependencies(int index) { - if (dependenciesBuilder_ == null) { - return dependencies_.get(index); - } else { - return dependenciesBuilder_.getMessage(index); - } - } - /** - *
-     * Ordered list of dependencies that must be loaded before this object.
-     * SavedModel loads with the bottom-up approach, by first creating all objects
-     * (in the order defined by the dependencies), then connecting the edges.
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public Builder setDependencies( - int index, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference value) { - if (dependenciesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDependenciesIsMutable(); - dependencies_.set(index, value); - onChanged(); - } else { - dependenciesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Ordered list of dependencies that must be loaded before this object.
-     * SavedModel loads with the bottom-up approach, by first creating all objects
-     * (in the order defined by the dependencies), then connecting the edges.
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public Builder setDependencies( - int index, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.Builder builderForValue) { - if (dependenciesBuilder_ == null) { - ensureDependenciesIsMutable(); - dependencies_.set(index, builderForValue.build()); - onChanged(); - } else { - dependenciesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Ordered list of dependencies that must be loaded before this object.
-     * SavedModel loads with the bottom-up approach, by first creating all objects
-     * (in the order defined by the dependencies), then connecting the edges.
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public Builder addDependencies(org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference value) { - if (dependenciesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDependenciesIsMutable(); - dependencies_.add(value); - onChanged(); - } else { - dependenciesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Ordered list of dependencies that must be loaded before this object.
-     * SavedModel loads with the bottom-up approach, by first creating all objects
-     * (in the order defined by the dependencies), then connecting the edges.
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public Builder addDependencies( - int index, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference value) { - if (dependenciesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDependenciesIsMutable(); - dependencies_.add(index, value); - onChanged(); - } else { - dependenciesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Ordered list of dependencies that must be loaded before this object.
-     * SavedModel loads with the bottom-up approach, by first creating all objects
-     * (in the order defined by the dependencies), then connecting the edges.
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public Builder addDependencies( - org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.Builder builderForValue) { - if (dependenciesBuilder_ == null) { - ensureDependenciesIsMutable(); - dependencies_.add(builderForValue.build()); - onChanged(); - } else { - dependenciesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Ordered list of dependencies that must be loaded before this object.
-     * SavedModel loads with the bottom-up approach, by first creating all objects
-     * (in the order defined by the dependencies), then connecting the edges.
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public Builder addDependencies( - int index, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.Builder builderForValue) { - if (dependenciesBuilder_ == null) { - ensureDependenciesIsMutable(); - dependencies_.add(index, builderForValue.build()); - onChanged(); - } else { - dependenciesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Ordered list of dependencies that must be loaded before this object.
-     * SavedModel loads with the bottom-up approach, by first creating all objects
-     * (in the order defined by the dependencies), then connecting the edges.
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public Builder addAllDependencies( - java.lang.Iterable values) { - if (dependenciesBuilder_ == null) { - ensureDependenciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dependencies_); - onChanged(); - } else { - dependenciesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Ordered list of dependencies that must be loaded before this object.
-     * SavedModel loads with the bottom-up approach, by first creating all objects
-     * (in the order defined by the dependencies), then connecting the edges.
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public Builder clearDependencies() { - if (dependenciesBuilder_ == null) { - dependencies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - dependenciesBuilder_.clear(); - } - return this; - } - /** - *
-     * Ordered list of dependencies that must be loaded before this object.
-     * SavedModel loads with the bottom-up approach, by first creating all objects
-     * (in the order defined by the dependencies), then connecting the edges.
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public Builder removeDependencies(int index) { - if (dependenciesBuilder_ == null) { - ensureDependenciesIsMutable(); - dependencies_.remove(index); - onChanged(); - } else { - dependenciesBuilder_.remove(index); - } - return this; - } - /** - *
-     * Ordered list of dependencies that must be loaded before this object.
-     * SavedModel loads with the bottom-up approach, by first creating all objects
-     * (in the order defined by the dependencies), then connecting the edges.
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.Builder getDependenciesBuilder( - int index) { - return getDependenciesFieldBuilder().getBuilder(index); - } - /** - *
-     * Ordered list of dependencies that must be loaded before this object.
-     * SavedModel loads with the bottom-up approach, by first creating all objects
-     * (in the order defined by the dependencies), then connecting the edges.
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder getDependenciesOrBuilder( - int index) { - if (dependenciesBuilder_ == null) { - return dependencies_.get(index); } else { - return dependenciesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Ordered list of dependencies that must be loaded before this object.
-     * SavedModel loads with the bottom-up approach, by first creating all objects
-     * (in the order defined by the dependencies), then connecting the edges.
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public java.util.List - getDependenciesOrBuilderList() { - if (dependenciesBuilder_ != null) { - return dependenciesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dependencies_); - } - } - /** - *
-     * Ordered list of dependencies that must be loaded before this object.
-     * SavedModel loads with the bottom-up approach, by first creating all objects
-     * (in the order defined by the dependencies), then connecting the edges.
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.Builder addDependenciesBuilder() { - return getDependenciesFieldBuilder().addBuilder( - org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.getDefaultInstance()); - } - /** - *
-     * Ordered list of dependencies that must be loaded before this object.
-     * SavedModel loads with the bottom-up approach, by first creating all objects
-     * (in the order defined by the dependencies), then connecting the edges.
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.Builder addDependenciesBuilder( - int index) { - return getDependenciesFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.getDefaultInstance()); - } - /** - *
-     * Ordered list of dependencies that must be loaded before this object.
-     * SavedModel loads with the bottom-up approach, by first creating all objects
-     * (in the order defined by the dependencies), then connecting the edges.
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - public java.util.List - getDependenciesBuilderList() { - return getDependenciesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.Builder, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder> - getDependenciesFieldBuilder() { - if (dependenciesBuilder_ == null) { - dependenciesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference.Builder, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder>( - dependencies_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - dependencies_ = null; - } - return dependenciesBuilder_; - } - - private java.util.List slotVariables_ = - java.util.Collections.emptyList(); - private void ensureSlotVariablesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - slotVariables_ = new java.util.ArrayList(slotVariables_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReference, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder> slotVariablesBuilder_; - - /** - *
-     * Slot variables owned by this object. This describes the three-way
-     * (optimizer, variable, slot variable) relationship; none of the three
-     * depend on the others directly.
-     * Note: currently only valid if kind == "user_object".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public java.util.List getSlotVariablesList() { - if (slotVariablesBuilder_ == null) { - return java.util.Collections.unmodifiableList(slotVariables_); - } else { - return slotVariablesBuilder_.getMessageList(); - } - } - /** - *
-     * Slot variables owned by this object. This describes the three-way
-     * (optimizer, variable, slot variable) relationship; none of the three
-     * depend on the others directly.
-     * Note: currently only valid if kind == "user_object".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public int getSlotVariablesCount() { - if (slotVariablesBuilder_ == null) { - return slotVariables_.size(); - } else { - return slotVariablesBuilder_.getCount(); - } - } - /** - *
-     * Slot variables owned by this object. This describes the three-way
-     * (optimizer, variable, slot variable) relationship; none of the three
-     * depend on the others directly.
-     * Note: currently only valid if kind == "user_object".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReference getSlotVariables(int index) { - if (slotVariablesBuilder_ == null) { - return slotVariables_.get(index); - } else { - return slotVariablesBuilder_.getMessage(index); - } - } - /** - *
-     * Slot variables owned by this object. This describes the three-way
-     * (optimizer, variable, slot variable) relationship; none of the three
-     * depend on the others directly.
-     * Note: currently only valid if kind == "user_object".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public Builder setSlotVariables( - int index, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReference value) { - if (slotVariablesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSlotVariablesIsMutable(); - slotVariables_.set(index, value); - onChanged(); - } else { - slotVariablesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Slot variables owned by this object. This describes the three-way
-     * (optimizer, variable, slot variable) relationship; none of the three
-     * depend on the others directly.
-     * Note: currently only valid if kind == "user_object".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public Builder setSlotVariables( - int index, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder builderForValue) { - if (slotVariablesBuilder_ == null) { - ensureSlotVariablesIsMutable(); - slotVariables_.set(index, builderForValue.build()); - onChanged(); - } else { - slotVariablesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Slot variables owned by this object. This describes the three-way
-     * (optimizer, variable, slot variable) relationship; none of the three
-     * depend on the others directly.
-     * Note: currently only valid if kind == "user_object".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public Builder addSlotVariables(org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReference value) { - if (slotVariablesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSlotVariablesIsMutable(); - slotVariables_.add(value); - onChanged(); - } else { - slotVariablesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Slot variables owned by this object. This describes the three-way
-     * (optimizer, variable, slot variable) relationship; none of the three
-     * depend on the others directly.
-     * Note: currently only valid if kind == "user_object".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public Builder addSlotVariables( - int index, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReference value) { - if (slotVariablesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSlotVariablesIsMutable(); - slotVariables_.add(index, value); - onChanged(); - } else { - slotVariablesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Slot variables owned by this object. This describes the three-way
-     * (optimizer, variable, slot variable) relationship; none of the three
-     * depend on the others directly.
-     * Note: currently only valid if kind == "user_object".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public Builder addSlotVariables( - org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder builderForValue) { - if (slotVariablesBuilder_ == null) { - ensureSlotVariablesIsMutable(); - slotVariables_.add(builderForValue.build()); - onChanged(); - } else { - slotVariablesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Slot variables owned by this object. This describes the three-way
-     * (optimizer, variable, slot variable) relationship; none of the three
-     * depend on the others directly.
-     * Note: currently only valid if kind == "user_object".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public Builder addSlotVariables( - int index, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder builderForValue) { - if (slotVariablesBuilder_ == null) { - ensureSlotVariablesIsMutable(); - slotVariables_.add(index, builderForValue.build()); - onChanged(); - } else { - slotVariablesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Slot variables owned by this object. This describes the three-way
-     * (optimizer, variable, slot variable) relationship; none of the three
-     * depend on the others directly.
-     * Note: currently only valid if kind == "user_object".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public Builder addAllSlotVariables( - java.lang.Iterable values) { - if (slotVariablesBuilder_ == null) { - ensureSlotVariablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, slotVariables_); - onChanged(); - } else { - slotVariablesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Slot variables owned by this object. This describes the three-way
-     * (optimizer, variable, slot variable) relationship; none of the three
-     * depend on the others directly.
-     * Note: currently only valid if kind == "user_object".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public Builder clearSlotVariables() { - if (slotVariablesBuilder_ == null) { - slotVariables_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - slotVariablesBuilder_.clear(); - } - return this; - } - /** - *
-     * Slot variables owned by this object. This describes the three-way
-     * (optimizer, variable, slot variable) relationship; none of the three
-     * depend on the others directly.
-     * Note: currently only valid if kind == "user_object".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public Builder removeSlotVariables(int index) { - if (slotVariablesBuilder_ == null) { - ensureSlotVariablesIsMutable(); - slotVariables_.remove(index); - onChanged(); - } else { - slotVariablesBuilder_.remove(index); - } - return this; - } - /** - *
-     * Slot variables owned by this object. This describes the three-way
-     * (optimizer, variable, slot variable) relationship; none of the three
-     * depend on the others directly.
-     * Note: currently only valid if kind == "user_object".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder getSlotVariablesBuilder( - int index) { - return getSlotVariablesFieldBuilder().getBuilder(index); - } - /** - *
-     * Slot variables owned by this object. This describes the three-way
-     * (optimizer, variable, slot variable) relationship; none of the three
-     * depend on the others directly.
-     * Note: currently only valid if kind == "user_object".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder getSlotVariablesOrBuilder( - int index) { - if (slotVariablesBuilder_ == null) { - return slotVariables_.get(index); } else { - return slotVariablesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Slot variables owned by this object. This describes the three-way
-     * (optimizer, variable, slot variable) relationship; none of the three
-     * depend on the others directly.
-     * Note: currently only valid if kind == "user_object".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public java.util.List - getSlotVariablesOrBuilderList() { - if (slotVariablesBuilder_ != null) { - return slotVariablesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(slotVariables_); - } - } - /** - *
-     * Slot variables owned by this object. This describes the three-way
-     * (optimizer, variable, slot variable) relationship; none of the three
-     * depend on the others directly.
-     * Note: currently only valid if kind == "user_object".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder addSlotVariablesBuilder() { - return getSlotVariablesFieldBuilder().addBuilder( - org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReference.getDefaultInstance()); - } - /** - *
-     * Slot variables owned by this object. This describes the three-way
-     * (optimizer, variable, slot variable) relationship; none of the three
-     * depend on the others directly.
-     * Note: currently only valid if kind == "user_object".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder addSlotVariablesBuilder( - int index) { - return getSlotVariablesFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReference.getDefaultInstance()); - } - /** - *
-     * Slot variables owned by this object. This describes the three-way
-     * (optimizer, variable, slot variable) relationship; none of the three
-     * depend on the others directly.
-     * Note: currently only valid if kind == "user_object".
-     * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - public java.util.List - getSlotVariablesBuilderList() { - return getSlotVariablesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReference, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder> - getSlotVariablesFieldBuilder() { - if (slotVariablesBuilder_ == null) { - slotVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReference, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder, org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder>( - slotVariables_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - slotVariables_ = null; - } - return slotVariablesBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedUserObject, org.tensorflow.proto.framework.SavedUserObject.Builder, org.tensorflow.proto.framework.SavedUserObjectOrBuilder> userObjectBuilder_; - /** - * .tensorflow.SavedUserObject user_object = 4; - */ - public boolean hasUserObject() { - return kindCase_ == 4; - } - /** - * .tensorflow.SavedUserObject user_object = 4; - */ - public org.tensorflow.proto.framework.SavedUserObject getUserObject() { - if (userObjectBuilder_ == null) { - if (kindCase_ == 4) { - return (org.tensorflow.proto.framework.SavedUserObject) kind_; - } - return org.tensorflow.proto.framework.SavedUserObject.getDefaultInstance(); - } else { - if (kindCase_ == 4) { - return userObjectBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.SavedUserObject.getDefaultInstance(); - } - } - /** - * .tensorflow.SavedUserObject user_object = 4; - */ - public Builder setUserObject(org.tensorflow.proto.framework.SavedUserObject value) { - if (userObjectBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - userObjectBuilder_.setMessage(value); - } - kindCase_ = 4; - return this; - } - /** - * .tensorflow.SavedUserObject user_object = 4; - */ - public Builder setUserObject( - org.tensorflow.proto.framework.SavedUserObject.Builder builderForValue) { - if (userObjectBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - userObjectBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 4; - return this; - } - /** - * .tensorflow.SavedUserObject user_object = 4; - */ - public Builder mergeUserObject(org.tensorflow.proto.framework.SavedUserObject value) { - if (userObjectBuilder_ == null) { - if (kindCase_ == 4 && - kind_ != org.tensorflow.proto.framework.SavedUserObject.getDefaultInstance()) { - kind_ = org.tensorflow.proto.framework.SavedUserObject.newBuilder((org.tensorflow.proto.framework.SavedUserObject) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 4) { - userObjectBuilder_.mergeFrom(value); - } - userObjectBuilder_.setMessage(value); - } - kindCase_ = 4; - return this; - } - /** - * .tensorflow.SavedUserObject user_object = 4; - */ - public Builder clearUserObject() { - if (userObjectBuilder_ == null) { - if (kindCase_ == 4) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 4) { - kindCase_ = 0; - kind_ = null; - } - userObjectBuilder_.clear(); - } - return this; - } - /** - * .tensorflow.SavedUserObject user_object = 4; - */ - public org.tensorflow.proto.framework.SavedUserObject.Builder getUserObjectBuilder() { - return getUserObjectFieldBuilder().getBuilder(); - } - /** - * .tensorflow.SavedUserObject user_object = 4; - */ - public org.tensorflow.proto.framework.SavedUserObjectOrBuilder getUserObjectOrBuilder() { - if ((kindCase_ == 4) && (userObjectBuilder_ != null)) { - return userObjectBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 4) { - return (org.tensorflow.proto.framework.SavedUserObject) kind_; - } - return org.tensorflow.proto.framework.SavedUserObject.getDefaultInstance(); - } - } - /** - * .tensorflow.SavedUserObject user_object = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedUserObject, org.tensorflow.proto.framework.SavedUserObject.Builder, org.tensorflow.proto.framework.SavedUserObjectOrBuilder> - getUserObjectFieldBuilder() { - if (userObjectBuilder_ == null) { - if (!(kindCase_ == 4)) { - kind_ = org.tensorflow.proto.framework.SavedUserObject.getDefaultInstance(); - } - userObjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedUserObject, org.tensorflow.proto.framework.SavedUserObject.Builder, org.tensorflow.proto.framework.SavedUserObjectOrBuilder>( - (org.tensorflow.proto.framework.SavedUserObject) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 4; - onChanged();; - return userObjectBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedAsset, org.tensorflow.proto.framework.SavedAsset.Builder, org.tensorflow.proto.framework.SavedAssetOrBuilder> assetBuilder_; - /** - * .tensorflow.SavedAsset asset = 5; - */ - public boolean hasAsset() { - return kindCase_ == 5; - } - /** - * .tensorflow.SavedAsset asset = 5; - */ - public org.tensorflow.proto.framework.SavedAsset getAsset() { - if (assetBuilder_ == null) { - if (kindCase_ == 5) { - return (org.tensorflow.proto.framework.SavedAsset) kind_; - } - return org.tensorflow.proto.framework.SavedAsset.getDefaultInstance(); - } else { - if (kindCase_ == 5) { - return assetBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.SavedAsset.getDefaultInstance(); - } - } - /** - * .tensorflow.SavedAsset asset = 5; - */ - public Builder setAsset(org.tensorflow.proto.framework.SavedAsset value) { - if (assetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - assetBuilder_.setMessage(value); - } - kindCase_ = 5; - return this; - } - /** - * .tensorflow.SavedAsset asset = 5; - */ - public Builder setAsset( - org.tensorflow.proto.framework.SavedAsset.Builder builderForValue) { - if (assetBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - assetBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 5; - return this; - } - /** - * .tensorflow.SavedAsset asset = 5; - */ - public Builder mergeAsset(org.tensorflow.proto.framework.SavedAsset value) { - if (assetBuilder_ == null) { - if (kindCase_ == 5 && - kind_ != org.tensorflow.proto.framework.SavedAsset.getDefaultInstance()) { - kind_ = org.tensorflow.proto.framework.SavedAsset.newBuilder((org.tensorflow.proto.framework.SavedAsset) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 5) { - assetBuilder_.mergeFrom(value); - } - assetBuilder_.setMessage(value); - } - kindCase_ = 5; - return this; - } - /** - * .tensorflow.SavedAsset asset = 5; - */ - public Builder clearAsset() { - if (assetBuilder_ == null) { - if (kindCase_ == 5) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 5) { - kindCase_ = 0; - kind_ = null; - } - assetBuilder_.clear(); - } - return this; - } - /** - * .tensorflow.SavedAsset asset = 5; - */ - public org.tensorflow.proto.framework.SavedAsset.Builder getAssetBuilder() { - return getAssetFieldBuilder().getBuilder(); - } - /** - * .tensorflow.SavedAsset asset = 5; - */ - public org.tensorflow.proto.framework.SavedAssetOrBuilder getAssetOrBuilder() { - if ((kindCase_ == 5) && (assetBuilder_ != null)) { - return assetBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 5) { - return (org.tensorflow.proto.framework.SavedAsset) kind_; - } - return org.tensorflow.proto.framework.SavedAsset.getDefaultInstance(); - } - } - /** - * .tensorflow.SavedAsset asset = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedAsset, org.tensorflow.proto.framework.SavedAsset.Builder, org.tensorflow.proto.framework.SavedAssetOrBuilder> - getAssetFieldBuilder() { - if (assetBuilder_ == null) { - if (!(kindCase_ == 5)) { - kind_ = org.tensorflow.proto.framework.SavedAsset.getDefaultInstance(); - } - assetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedAsset, org.tensorflow.proto.framework.SavedAsset.Builder, org.tensorflow.proto.framework.SavedAssetOrBuilder>( - (org.tensorflow.proto.framework.SavedAsset) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 5; - onChanged();; - return assetBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedFunction, org.tensorflow.proto.framework.SavedFunction.Builder, org.tensorflow.proto.framework.SavedFunctionOrBuilder> functionBuilder_; - /** - * .tensorflow.SavedFunction function = 6; - */ - public boolean hasFunction() { - return kindCase_ == 6; - } - /** - * .tensorflow.SavedFunction function = 6; - */ - public org.tensorflow.proto.framework.SavedFunction getFunction() { - if (functionBuilder_ == null) { - if (kindCase_ == 6) { - return (org.tensorflow.proto.framework.SavedFunction) kind_; - } - return org.tensorflow.proto.framework.SavedFunction.getDefaultInstance(); - } else { - if (kindCase_ == 6) { - return functionBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.SavedFunction.getDefaultInstance(); - } - } - /** - * .tensorflow.SavedFunction function = 6; - */ - public Builder setFunction(org.tensorflow.proto.framework.SavedFunction value) { - if (functionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - functionBuilder_.setMessage(value); - } - kindCase_ = 6; - return this; - } - /** - * .tensorflow.SavedFunction function = 6; - */ - public Builder setFunction( - org.tensorflow.proto.framework.SavedFunction.Builder builderForValue) { - if (functionBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - functionBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 6; - return this; - } - /** - * .tensorflow.SavedFunction function = 6; - */ - public Builder mergeFunction(org.tensorflow.proto.framework.SavedFunction value) { - if (functionBuilder_ == null) { - if (kindCase_ == 6 && - kind_ != org.tensorflow.proto.framework.SavedFunction.getDefaultInstance()) { - kind_ = org.tensorflow.proto.framework.SavedFunction.newBuilder((org.tensorflow.proto.framework.SavedFunction) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 6) { - functionBuilder_.mergeFrom(value); - } - functionBuilder_.setMessage(value); - } - kindCase_ = 6; - return this; - } - /** - * .tensorflow.SavedFunction function = 6; - */ - public Builder clearFunction() { - if (functionBuilder_ == null) { - if (kindCase_ == 6) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 6) { - kindCase_ = 0; - kind_ = null; - } - functionBuilder_.clear(); - } - return this; - } - /** - * .tensorflow.SavedFunction function = 6; - */ - public org.tensorflow.proto.framework.SavedFunction.Builder getFunctionBuilder() { - return getFunctionFieldBuilder().getBuilder(); - } - /** - * .tensorflow.SavedFunction function = 6; - */ - public org.tensorflow.proto.framework.SavedFunctionOrBuilder getFunctionOrBuilder() { - if ((kindCase_ == 6) && (functionBuilder_ != null)) { - return functionBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 6) { - return (org.tensorflow.proto.framework.SavedFunction) kind_; - } - return org.tensorflow.proto.framework.SavedFunction.getDefaultInstance(); - } - } - /** - * .tensorflow.SavedFunction function = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedFunction, org.tensorflow.proto.framework.SavedFunction.Builder, org.tensorflow.proto.framework.SavedFunctionOrBuilder> - getFunctionFieldBuilder() { - if (functionBuilder_ == null) { - if (!(kindCase_ == 6)) { - kind_ = org.tensorflow.proto.framework.SavedFunction.getDefaultInstance(); - } - functionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedFunction, org.tensorflow.proto.framework.SavedFunction.Builder, org.tensorflow.proto.framework.SavedFunctionOrBuilder>( - (org.tensorflow.proto.framework.SavedFunction) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 6; - onChanged();; - return functionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedVariable, org.tensorflow.proto.framework.SavedVariable.Builder, org.tensorflow.proto.framework.SavedVariableOrBuilder> variableBuilder_; - /** - * .tensorflow.SavedVariable variable = 7; - */ - public boolean hasVariable() { - return kindCase_ == 7; - } - /** - * .tensorflow.SavedVariable variable = 7; - */ - public org.tensorflow.proto.framework.SavedVariable getVariable() { - if (variableBuilder_ == null) { - if (kindCase_ == 7) { - return (org.tensorflow.proto.framework.SavedVariable) kind_; - } - return org.tensorflow.proto.framework.SavedVariable.getDefaultInstance(); - } else { - if (kindCase_ == 7) { - return variableBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.SavedVariable.getDefaultInstance(); - } - } - /** - * .tensorflow.SavedVariable variable = 7; - */ - public Builder setVariable(org.tensorflow.proto.framework.SavedVariable value) { - if (variableBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - variableBuilder_.setMessage(value); - } - kindCase_ = 7; - return this; - } - /** - * .tensorflow.SavedVariable variable = 7; - */ - public Builder setVariable( - org.tensorflow.proto.framework.SavedVariable.Builder builderForValue) { - if (variableBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - variableBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 7; - return this; - } - /** - * .tensorflow.SavedVariable variable = 7; - */ - public Builder mergeVariable(org.tensorflow.proto.framework.SavedVariable value) { - if (variableBuilder_ == null) { - if (kindCase_ == 7 && - kind_ != org.tensorflow.proto.framework.SavedVariable.getDefaultInstance()) { - kind_ = org.tensorflow.proto.framework.SavedVariable.newBuilder((org.tensorflow.proto.framework.SavedVariable) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 7) { - variableBuilder_.mergeFrom(value); - } - variableBuilder_.setMessage(value); - } - kindCase_ = 7; - return this; - } - /** - * .tensorflow.SavedVariable variable = 7; - */ - public Builder clearVariable() { - if (variableBuilder_ == null) { - if (kindCase_ == 7) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 7) { - kindCase_ = 0; - kind_ = null; - } - variableBuilder_.clear(); - } - return this; - } - /** - * .tensorflow.SavedVariable variable = 7; - */ - public org.tensorflow.proto.framework.SavedVariable.Builder getVariableBuilder() { - return getVariableFieldBuilder().getBuilder(); - } - /** - * .tensorflow.SavedVariable variable = 7; - */ - public org.tensorflow.proto.framework.SavedVariableOrBuilder getVariableOrBuilder() { - if ((kindCase_ == 7) && (variableBuilder_ != null)) { - return variableBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 7) { - return (org.tensorflow.proto.framework.SavedVariable) kind_; - } - return org.tensorflow.proto.framework.SavedVariable.getDefaultInstance(); - } - } - /** - * .tensorflow.SavedVariable variable = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedVariable, org.tensorflow.proto.framework.SavedVariable.Builder, org.tensorflow.proto.framework.SavedVariableOrBuilder> - getVariableFieldBuilder() { - if (variableBuilder_ == null) { - if (!(kindCase_ == 7)) { - kind_ = org.tensorflow.proto.framework.SavedVariable.getDefaultInstance(); - } - variableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedVariable, org.tensorflow.proto.framework.SavedVariable.Builder, org.tensorflow.proto.framework.SavedVariableOrBuilder>( - (org.tensorflow.proto.framework.SavedVariable) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 7; - onChanged();; - return variableBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedBareConcreteFunction, org.tensorflow.proto.framework.SavedBareConcreteFunction.Builder, org.tensorflow.proto.framework.SavedBareConcreteFunctionOrBuilder> bareConcreteFunctionBuilder_; - /** - * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; - */ - public boolean hasBareConcreteFunction() { - return kindCase_ == 8; - } - /** - * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; - */ - public org.tensorflow.proto.framework.SavedBareConcreteFunction getBareConcreteFunction() { - if (bareConcreteFunctionBuilder_ == null) { - if (kindCase_ == 8) { - return (org.tensorflow.proto.framework.SavedBareConcreteFunction) kind_; - } - return org.tensorflow.proto.framework.SavedBareConcreteFunction.getDefaultInstance(); - } else { - if (kindCase_ == 8) { - return bareConcreteFunctionBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.SavedBareConcreteFunction.getDefaultInstance(); - } - } - /** - * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; - */ - public Builder setBareConcreteFunction(org.tensorflow.proto.framework.SavedBareConcreteFunction value) { - if (bareConcreteFunctionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - bareConcreteFunctionBuilder_.setMessage(value); - } - kindCase_ = 8; - return this; - } - /** - * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; - */ - public Builder setBareConcreteFunction( - org.tensorflow.proto.framework.SavedBareConcreteFunction.Builder builderForValue) { - if (bareConcreteFunctionBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - bareConcreteFunctionBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 8; - return this; - } - /** - * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; - */ - public Builder mergeBareConcreteFunction(org.tensorflow.proto.framework.SavedBareConcreteFunction value) { - if (bareConcreteFunctionBuilder_ == null) { - if (kindCase_ == 8 && - kind_ != org.tensorflow.proto.framework.SavedBareConcreteFunction.getDefaultInstance()) { - kind_ = org.tensorflow.proto.framework.SavedBareConcreteFunction.newBuilder((org.tensorflow.proto.framework.SavedBareConcreteFunction) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 8) { - bareConcreteFunctionBuilder_.mergeFrom(value); - } - bareConcreteFunctionBuilder_.setMessage(value); - } - kindCase_ = 8; - return this; - } - /** - * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; - */ - public Builder clearBareConcreteFunction() { - if (bareConcreteFunctionBuilder_ == null) { - if (kindCase_ == 8) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 8) { - kindCase_ = 0; - kind_ = null; - } - bareConcreteFunctionBuilder_.clear(); - } - return this; - } - /** - * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; - */ - public org.tensorflow.proto.framework.SavedBareConcreteFunction.Builder getBareConcreteFunctionBuilder() { - return getBareConcreteFunctionFieldBuilder().getBuilder(); - } - /** - * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; - */ - public org.tensorflow.proto.framework.SavedBareConcreteFunctionOrBuilder getBareConcreteFunctionOrBuilder() { - if ((kindCase_ == 8) && (bareConcreteFunctionBuilder_ != null)) { - return bareConcreteFunctionBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 8) { - return (org.tensorflow.proto.framework.SavedBareConcreteFunction) kind_; - } - return org.tensorflow.proto.framework.SavedBareConcreteFunction.getDefaultInstance(); - } - } - /** - * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedBareConcreteFunction, org.tensorflow.proto.framework.SavedBareConcreteFunction.Builder, org.tensorflow.proto.framework.SavedBareConcreteFunctionOrBuilder> - getBareConcreteFunctionFieldBuilder() { - if (bareConcreteFunctionBuilder_ == null) { - if (!(kindCase_ == 8)) { - kind_ = org.tensorflow.proto.framework.SavedBareConcreteFunction.getDefaultInstance(); - } - bareConcreteFunctionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedBareConcreteFunction, org.tensorflow.proto.framework.SavedBareConcreteFunction.Builder, org.tensorflow.proto.framework.SavedBareConcreteFunctionOrBuilder>( - (org.tensorflow.proto.framework.SavedBareConcreteFunction) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 8; - onChanged();; - return bareConcreteFunctionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedConstant, org.tensorflow.proto.framework.SavedConstant.Builder, org.tensorflow.proto.framework.SavedConstantOrBuilder> constantBuilder_; - /** - * .tensorflow.SavedConstant constant = 9; - */ - public boolean hasConstant() { - return kindCase_ == 9; - } - /** - * .tensorflow.SavedConstant constant = 9; - */ - public org.tensorflow.proto.framework.SavedConstant getConstant() { - if (constantBuilder_ == null) { - if (kindCase_ == 9) { - return (org.tensorflow.proto.framework.SavedConstant) kind_; - } - return org.tensorflow.proto.framework.SavedConstant.getDefaultInstance(); - } else { - if (kindCase_ == 9) { - return constantBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.SavedConstant.getDefaultInstance(); - } - } - /** - * .tensorflow.SavedConstant constant = 9; - */ - public Builder setConstant(org.tensorflow.proto.framework.SavedConstant value) { - if (constantBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - constantBuilder_.setMessage(value); - } - kindCase_ = 9; - return this; - } - /** - * .tensorflow.SavedConstant constant = 9; - */ - public Builder setConstant( - org.tensorflow.proto.framework.SavedConstant.Builder builderForValue) { - if (constantBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - constantBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 9; - return this; - } - /** - * .tensorflow.SavedConstant constant = 9; - */ - public Builder mergeConstant(org.tensorflow.proto.framework.SavedConstant value) { - if (constantBuilder_ == null) { - if (kindCase_ == 9 && - kind_ != org.tensorflow.proto.framework.SavedConstant.getDefaultInstance()) { - kind_ = org.tensorflow.proto.framework.SavedConstant.newBuilder((org.tensorflow.proto.framework.SavedConstant) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 9) { - constantBuilder_.mergeFrom(value); - } - constantBuilder_.setMessage(value); - } - kindCase_ = 9; - return this; - } - /** - * .tensorflow.SavedConstant constant = 9; - */ - public Builder clearConstant() { - if (constantBuilder_ == null) { - if (kindCase_ == 9) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 9) { - kindCase_ = 0; - kind_ = null; - } - constantBuilder_.clear(); - } - return this; - } - /** - * .tensorflow.SavedConstant constant = 9; - */ - public org.tensorflow.proto.framework.SavedConstant.Builder getConstantBuilder() { - return getConstantFieldBuilder().getBuilder(); - } - /** - * .tensorflow.SavedConstant constant = 9; - */ - public org.tensorflow.proto.framework.SavedConstantOrBuilder getConstantOrBuilder() { - if ((kindCase_ == 9) && (constantBuilder_ != null)) { - return constantBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 9) { - return (org.tensorflow.proto.framework.SavedConstant) kind_; - } - return org.tensorflow.proto.framework.SavedConstant.getDefaultInstance(); - } - } - /** - * .tensorflow.SavedConstant constant = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedConstant, org.tensorflow.proto.framework.SavedConstant.Builder, org.tensorflow.proto.framework.SavedConstantOrBuilder> - getConstantFieldBuilder() { - if (constantBuilder_ == null) { - if (!(kindCase_ == 9)) { - kind_ = org.tensorflow.proto.framework.SavedConstant.getDefaultInstance(); - } - constantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedConstant, org.tensorflow.proto.framework.SavedConstant.Builder, org.tensorflow.proto.framework.SavedConstantOrBuilder>( - (org.tensorflow.proto.framework.SavedConstant) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 9; - onChanged();; - return constantBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedResource, org.tensorflow.proto.framework.SavedResource.Builder, org.tensorflow.proto.framework.SavedResourceOrBuilder> resourceBuilder_; - /** - * .tensorflow.SavedResource resource = 10; - */ - public boolean hasResource() { - return kindCase_ == 10; - } - /** - * .tensorflow.SavedResource resource = 10; - */ - public org.tensorflow.proto.framework.SavedResource getResource() { - if (resourceBuilder_ == null) { - if (kindCase_ == 10) { - return (org.tensorflow.proto.framework.SavedResource) kind_; - } - return org.tensorflow.proto.framework.SavedResource.getDefaultInstance(); - } else { - if (kindCase_ == 10) { - return resourceBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.SavedResource.getDefaultInstance(); - } - } - /** - * .tensorflow.SavedResource resource = 10; - */ - public Builder setResource(org.tensorflow.proto.framework.SavedResource value) { - if (resourceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - resourceBuilder_.setMessage(value); - } - kindCase_ = 10; - return this; - } - /** - * .tensorflow.SavedResource resource = 10; - */ - public Builder setResource( - org.tensorflow.proto.framework.SavedResource.Builder builderForValue) { - if (resourceBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - resourceBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 10; - return this; - } - /** - * .tensorflow.SavedResource resource = 10; - */ - public Builder mergeResource(org.tensorflow.proto.framework.SavedResource value) { - if (resourceBuilder_ == null) { - if (kindCase_ == 10 && - kind_ != org.tensorflow.proto.framework.SavedResource.getDefaultInstance()) { - kind_ = org.tensorflow.proto.framework.SavedResource.newBuilder((org.tensorflow.proto.framework.SavedResource) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 10) { - resourceBuilder_.mergeFrom(value); - } - resourceBuilder_.setMessage(value); - } - kindCase_ = 10; - return this; - } - /** - * .tensorflow.SavedResource resource = 10; - */ - public Builder clearResource() { - if (resourceBuilder_ == null) { - if (kindCase_ == 10) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 10) { - kindCase_ = 0; - kind_ = null; - } - resourceBuilder_.clear(); - } - return this; - } - /** - * .tensorflow.SavedResource resource = 10; - */ - public org.tensorflow.proto.framework.SavedResource.Builder getResourceBuilder() { - return getResourceFieldBuilder().getBuilder(); - } - /** - * .tensorflow.SavedResource resource = 10; - */ - public org.tensorflow.proto.framework.SavedResourceOrBuilder getResourceOrBuilder() { - if ((kindCase_ == 10) && (resourceBuilder_ != null)) { - return resourceBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 10) { - return (org.tensorflow.proto.framework.SavedResource) kind_; - } - return org.tensorflow.proto.framework.SavedResource.getDefaultInstance(); - } - } - /** - * .tensorflow.SavedResource resource = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedResource, org.tensorflow.proto.framework.SavedResource.Builder, org.tensorflow.proto.framework.SavedResourceOrBuilder> - getResourceFieldBuilder() { - if (resourceBuilder_ == null) { - if (!(kindCase_ == 10)) { - kind_ = org.tensorflow.proto.framework.SavedResource.getDefaultInstance(); - } - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedResource, org.tensorflow.proto.framework.SavedResource.Builder, org.tensorflow.proto.framework.SavedResourceOrBuilder>( - (org.tensorflow.proto.framework.SavedResource) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 10; - onChanged();; - return resourceBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CapturedTensor, org.tensorflow.proto.framework.CapturedTensor.Builder, org.tensorflow.proto.framework.CapturedTensorOrBuilder> capturedTensorBuilder_; - /** - * .tensorflow.CapturedTensor captured_tensor = 12; - */ - public boolean hasCapturedTensor() { - return kindCase_ == 12; - } - /** - * .tensorflow.CapturedTensor captured_tensor = 12; - */ - public org.tensorflow.proto.framework.CapturedTensor getCapturedTensor() { - if (capturedTensorBuilder_ == null) { - if (kindCase_ == 12) { - return (org.tensorflow.proto.framework.CapturedTensor) kind_; - } - return org.tensorflow.proto.framework.CapturedTensor.getDefaultInstance(); - } else { - if (kindCase_ == 12) { - return capturedTensorBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.CapturedTensor.getDefaultInstance(); - } - } - /** - * .tensorflow.CapturedTensor captured_tensor = 12; - */ - public Builder setCapturedTensor(org.tensorflow.proto.framework.CapturedTensor value) { - if (capturedTensorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - capturedTensorBuilder_.setMessage(value); - } - kindCase_ = 12; - return this; - } - /** - * .tensorflow.CapturedTensor captured_tensor = 12; - */ - public Builder setCapturedTensor( - org.tensorflow.proto.framework.CapturedTensor.Builder builderForValue) { - if (capturedTensorBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - capturedTensorBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 12; - return this; - } - /** - * .tensorflow.CapturedTensor captured_tensor = 12; - */ - public Builder mergeCapturedTensor(org.tensorflow.proto.framework.CapturedTensor value) { - if (capturedTensorBuilder_ == null) { - if (kindCase_ == 12 && - kind_ != org.tensorflow.proto.framework.CapturedTensor.getDefaultInstance()) { - kind_ = org.tensorflow.proto.framework.CapturedTensor.newBuilder((org.tensorflow.proto.framework.CapturedTensor) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 12) { - capturedTensorBuilder_.mergeFrom(value); - } - capturedTensorBuilder_.setMessage(value); - } - kindCase_ = 12; - return this; - } - /** - * .tensorflow.CapturedTensor captured_tensor = 12; - */ - public Builder clearCapturedTensor() { - if (capturedTensorBuilder_ == null) { - if (kindCase_ == 12) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 12) { - kindCase_ = 0; - kind_ = null; - } - capturedTensorBuilder_.clear(); - } - return this; - } - /** - * .tensorflow.CapturedTensor captured_tensor = 12; - */ - public org.tensorflow.proto.framework.CapturedTensor.Builder getCapturedTensorBuilder() { - return getCapturedTensorFieldBuilder().getBuilder(); - } - /** - * .tensorflow.CapturedTensor captured_tensor = 12; - */ - public org.tensorflow.proto.framework.CapturedTensorOrBuilder getCapturedTensorOrBuilder() { - if ((kindCase_ == 12) && (capturedTensorBuilder_ != null)) { - return capturedTensorBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 12) { - return (org.tensorflow.proto.framework.CapturedTensor) kind_; - } - return org.tensorflow.proto.framework.CapturedTensor.getDefaultInstance(); - } - } - /** - * .tensorflow.CapturedTensor captured_tensor = 12; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CapturedTensor, org.tensorflow.proto.framework.CapturedTensor.Builder, org.tensorflow.proto.framework.CapturedTensorOrBuilder> - getCapturedTensorFieldBuilder() { - if (capturedTensorBuilder_ == null) { - if (!(kindCase_ == 12)) { - kind_ = org.tensorflow.proto.framework.CapturedTensor.getDefaultInstance(); - } - capturedTensorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CapturedTensor, org.tensorflow.proto.framework.CapturedTensor.Builder, org.tensorflow.proto.framework.CapturedTensorOrBuilder>( - (org.tensorflow.proto.framework.CapturedTensor) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 12; - onChanged();; - return capturedTensorBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.SaveableObject> saveableObjects_; - private com.google.protobuf.MapField - internalGetSaveableObjects() { - if (saveableObjects_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SaveableObjectsDefaultEntryHolder.defaultEntry); - } - return saveableObjects_; - } - private com.google.protobuf.MapField - internalGetMutableSaveableObjects() { - onChanged();; - if (saveableObjects_ == null) { - saveableObjects_ = com.google.protobuf.MapField.newMapField( - SaveableObjectsDefaultEntryHolder.defaultEntry); - } - if (!saveableObjects_.isMutable()) { - saveableObjects_ = saveableObjects_.copy(); - } - return saveableObjects_; - } - - public int getSaveableObjectsCount() { - return internalGetSaveableObjects().getMap().size(); - } - /** - *
-     * Stores the functions used to save and restore this object. At most one of
-     * `saveable_objects` or `registered_saver` is defined for each SavedObject.
-     * See the comment below for the difference between SaveableObject and
-     * registered savers.
-     * 
- * - * map<string, .tensorflow.SaveableObject> saveable_objects = 11; - */ - - public boolean containsSaveableObjects( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetSaveableObjects().getMap().containsKey(key); - } - /** - * Use {@link #getSaveableObjectsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getSaveableObjects() { - return getSaveableObjectsMap(); - } - /** - *
-     * Stores the functions used to save and restore this object. At most one of
-     * `saveable_objects` or `registered_saver` is defined for each SavedObject.
-     * See the comment below for the difference between SaveableObject and
-     * registered savers.
-     * 
- * - * map<string, .tensorflow.SaveableObject> saveable_objects = 11; - */ - - public java.util.Map getSaveableObjectsMap() { - return internalGetSaveableObjects().getMap(); - } - /** - *
-     * Stores the functions used to save and restore this object. At most one of
-     * `saveable_objects` or `registered_saver` is defined for each SavedObject.
-     * See the comment below for the difference between SaveableObject and
-     * registered savers.
-     * 
- * - * map<string, .tensorflow.SaveableObject> saveable_objects = 11; - */ - - public org.tensorflow.proto.framework.SaveableObject getSaveableObjectsOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.SaveableObject defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetSaveableObjects().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Stores the functions used to save and restore this object. At most one of
-     * `saveable_objects` or `registered_saver` is defined for each SavedObject.
-     * See the comment below for the difference between SaveableObject and
-     * registered savers.
-     * 
- * - * map<string, .tensorflow.SaveableObject> saveable_objects = 11; - */ - - public org.tensorflow.proto.framework.SaveableObject getSaveableObjectsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetSaveableObjects().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearSaveableObjects() { - internalGetMutableSaveableObjects().getMutableMap() - .clear(); - return this; - } - /** - *
-     * Stores the functions used to save and restore this object. At most one of
-     * `saveable_objects` or `registered_saver` is defined for each SavedObject.
-     * See the comment below for the difference between SaveableObject and
-     * registered savers.
-     * 
- * - * map<string, .tensorflow.SaveableObject> saveable_objects = 11; - */ - - public Builder removeSaveableObjects( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableSaveableObjects().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableSaveableObjects() { - return internalGetMutableSaveableObjects().getMutableMap(); - } - /** - *
-     * Stores the functions used to save and restore this object. At most one of
-     * `saveable_objects` or `registered_saver` is defined for each SavedObject.
-     * See the comment below for the difference between SaveableObject and
-     * registered savers.
-     * 
- * - * map<string, .tensorflow.SaveableObject> saveable_objects = 11; - */ - public Builder putSaveableObjects( - java.lang.String key, - org.tensorflow.proto.framework.SaveableObject value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableSaveableObjects().getMutableMap() - .put(key, value); - return this; - } - /** - *
-     * Stores the functions used to save and restore this object. At most one of
-     * `saveable_objects` or `registered_saver` is defined for each SavedObject.
-     * See the comment below for the difference between SaveableObject and
-     * registered savers.
-     * 
- * - * map<string, .tensorflow.SaveableObject> saveable_objects = 11; - */ - - public Builder putAllSaveableObjects( - java.util.Map values) { - internalGetMutableSaveableObjects().getMutableMap() - .putAll(values); - return this; - } - - private java.lang.Object registeredName_ = ""; - /** - *
-     * The name of the registered class of the form "{package}.{class_name}".
-     * This field is used to search for the registered class at loading time.
-     * 
- * - * string registered_name = 13; - */ - public java.lang.String getRegisteredName() { - java.lang.Object ref = registeredName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registeredName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name of the registered class of the form "{package}.{class_name}".
-     * This field is used to search for the registered class at loading time.
-     * 
- * - * string registered_name = 13; - */ - public com.google.protobuf.ByteString - getRegisteredNameBytes() { - java.lang.Object ref = registeredName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - registeredName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name of the registered class of the form "{package}.{class_name}".
-     * This field is used to search for the registered class at loading time.
-     * 
- * - * string registered_name = 13; - */ - public Builder setRegisteredName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - registeredName_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of the registered class of the form "{package}.{class_name}".
-     * This field is used to search for the registered class at loading time.
-     * 
- * - * string registered_name = 13; - */ - public Builder clearRegisteredName() { - - registeredName_ = getDefaultInstance().getRegisteredName(); - onChanged(); - return this; - } - /** - *
-     * The name of the registered class of the form "{package}.{class_name}".
-     * This field is used to search for the registered class at loading time.
-     * 
- * - * string registered_name = 13; - */ - public Builder setRegisteredNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - registeredName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Any serializedUserProto_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> serializedUserProtoBuilder_; - /** - *
-     * The user-generated proto storing metadata for this object, to be passed to
-     * the registered classes's _deserialize_from_proto method when this object is
-     * loaded from the SavedModel.
-     * 
- * - * .google.protobuf.Any serialized_user_proto = 14; - */ - public boolean hasSerializedUserProto() { - return serializedUserProtoBuilder_ != null || serializedUserProto_ != null; - } - /** - *
-     * The user-generated proto storing metadata for this object, to be passed to
-     * the registered classes's _deserialize_from_proto method when this object is
-     * loaded from the SavedModel.
-     * 
- * - * .google.protobuf.Any serialized_user_proto = 14; - */ - public com.google.protobuf.Any getSerializedUserProto() { - if (serializedUserProtoBuilder_ == null) { - return serializedUserProto_ == null ? com.google.protobuf.Any.getDefaultInstance() : serializedUserProto_; - } else { - return serializedUserProtoBuilder_.getMessage(); - } - } - /** - *
-     * The user-generated proto storing metadata for this object, to be passed to
-     * the registered classes's _deserialize_from_proto method when this object is
-     * loaded from the SavedModel.
-     * 
- * - * .google.protobuf.Any serialized_user_proto = 14; - */ - public Builder setSerializedUserProto(com.google.protobuf.Any value) { - if (serializedUserProtoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - serializedUserProto_ = value; - onChanged(); - } else { - serializedUserProtoBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The user-generated proto storing metadata for this object, to be passed to
-     * the registered classes's _deserialize_from_proto method when this object is
-     * loaded from the SavedModel.
-     * 
- * - * .google.protobuf.Any serialized_user_proto = 14; - */ - public Builder setSerializedUserProto( - com.google.protobuf.Any.Builder builderForValue) { - if (serializedUserProtoBuilder_ == null) { - serializedUserProto_ = builderForValue.build(); - onChanged(); - } else { - serializedUserProtoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The user-generated proto storing metadata for this object, to be passed to
-     * the registered classes's _deserialize_from_proto method when this object is
-     * loaded from the SavedModel.
-     * 
- * - * .google.protobuf.Any serialized_user_proto = 14; - */ - public Builder mergeSerializedUserProto(com.google.protobuf.Any value) { - if (serializedUserProtoBuilder_ == null) { - if (serializedUserProto_ != null) { - serializedUserProto_ = - com.google.protobuf.Any.newBuilder(serializedUserProto_).mergeFrom(value).buildPartial(); - } else { - serializedUserProto_ = value; - } - onChanged(); - } else { - serializedUserProtoBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The user-generated proto storing metadata for this object, to be passed to
-     * the registered classes's _deserialize_from_proto method when this object is
-     * loaded from the SavedModel.
-     * 
- * - * .google.protobuf.Any serialized_user_proto = 14; - */ - public Builder clearSerializedUserProto() { - if (serializedUserProtoBuilder_ == null) { - serializedUserProto_ = null; - onChanged(); - } else { - serializedUserProto_ = null; - serializedUserProtoBuilder_ = null; - } - - return this; - } - /** - *
-     * The user-generated proto storing metadata for this object, to be passed to
-     * the registered classes's _deserialize_from_proto method when this object is
-     * loaded from the SavedModel.
-     * 
- * - * .google.protobuf.Any serialized_user_proto = 14; - */ - public com.google.protobuf.Any.Builder getSerializedUserProtoBuilder() { - - onChanged(); - return getSerializedUserProtoFieldBuilder().getBuilder(); - } - /** - *
-     * The user-generated proto storing metadata for this object, to be passed to
-     * the registered classes's _deserialize_from_proto method when this object is
-     * loaded from the SavedModel.
-     * 
- * - * .google.protobuf.Any serialized_user_proto = 14; - */ - public com.google.protobuf.AnyOrBuilder getSerializedUserProtoOrBuilder() { - if (serializedUserProtoBuilder_ != null) { - return serializedUserProtoBuilder_.getMessageOrBuilder(); - } else { - return serializedUserProto_ == null ? - com.google.protobuf.Any.getDefaultInstance() : serializedUserProto_; - } - } - /** - *
-     * The user-generated proto storing metadata for this object, to be passed to
-     * the registered classes's _deserialize_from_proto method when this object is
-     * loaded from the SavedModel.
-     * 
- * - * .google.protobuf.Any serialized_user_proto = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getSerializedUserProtoFieldBuilder() { - if (serializedUserProtoBuilder_ == null) { - serializedUserProtoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getSerializedUserProto(), - getParentForChildren(), - isClean()); - serializedUserProto_ = null; - } - return serializedUserProtoBuilder_; - } - - private java.lang.Object registeredSaver_ = ""; - /** - *
-     * String name of the registered saver. At most one of `saveable_objects` or
-     * `registered_saver` is defined for each SavedObject.
-     * 
- * - * string registered_saver = 16; - */ - public java.lang.String getRegisteredSaver() { - java.lang.Object ref = registeredSaver_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - registeredSaver_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * String name of the registered saver. At most one of `saveable_objects` or
-     * `registered_saver` is defined for each SavedObject.
-     * 
- * - * string registered_saver = 16; - */ - public com.google.protobuf.ByteString - getRegisteredSaverBytes() { - java.lang.Object ref = registeredSaver_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - registeredSaver_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * String name of the registered saver. At most one of `saveable_objects` or
-     * `registered_saver` is defined for each SavedObject.
-     * 
- * - * string registered_saver = 16; - */ - public Builder setRegisteredSaver( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - registeredSaver_ = value; - onChanged(); - return this; - } - /** - *
-     * String name of the registered saver. At most one of `saveable_objects` or
-     * `registered_saver` is defined for each SavedObject.
-     * 
- * - * string registered_saver = 16; - */ - public Builder clearRegisteredSaver() { - - registeredSaver_ = getDefaultInstance().getRegisteredSaver(); - onChanged(); - return this; - } - /** - *
-     * String name of the registered saver. At most one of `saveable_objects` or
-     * `registered_saver` is defined for each SavedObject.
-     * 
- * - * string registered_saver = 16; - */ - public Builder setRegisteredSaverBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - registeredSaver_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.SavedObject) - } - - // @@protoc_insertion_point(class_scope:tensorflow.SavedObject) - private static final org.tensorflow.proto.framework.SavedObject DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.SavedObject(); - } - - public static org.tensorflow.proto.framework.SavedObject getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SavedObject parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SavedObject(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedObject getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedObjectGraph.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedObjectGraph.java deleted file mode 100644 index 40a1e497db4..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedObjectGraph.java +++ /dev/null @@ -1,1231 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.SavedObjectGraph} - */ -public final class SavedObjectGraph extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.SavedObjectGraph) - SavedObjectGraphOrBuilder { -private static final long serialVersionUID = 0L; - // Use SavedObjectGraph.newBuilder() to construct. - private SavedObjectGraph(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SavedObjectGraph() { - nodes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SavedObjectGraph(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SavedObjectGraph( - 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)) { - nodes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nodes_.add( - input.readMessage(org.tensorflow.proto.framework.SavedObject.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - concreteFunctions_ = com.google.protobuf.MapField.newMapField( - ConcreteFunctionsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - concreteFunctions__ = input.readMessage( - ConcreteFunctionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - concreteFunctions_.getMutableMap().put( - concreteFunctions__.getKey(), concreteFunctions__.getValue()); - 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)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedObjectGraph_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetConcreteFunctions(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedObjectGraph_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SavedObjectGraph.class, org.tensorflow.proto.framework.SavedObjectGraph.Builder.class); - } - - public static final int NODES_FIELD_NUMBER = 1; - private java.util.List nodes_; - /** - *
-   * Flattened list of objects in the object graph.
-   * The position of the object in this list indicates its id.
-   * Nodes[0] is considered the root node.
-   * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public java.util.List getNodesList() { - return nodes_; - } - /** - *
-   * Flattened list of objects in the object graph.
-   * The position of the object in this list indicates its id.
-   * Nodes[0] is considered the root node.
-   * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public java.util.List - getNodesOrBuilderList() { - return nodes_; - } - /** - *
-   * Flattened list of objects in the object graph.
-   * The position of the object in this list indicates its id.
-   * Nodes[0] is considered the root node.
-   * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public int getNodesCount() { - return nodes_.size(); - } - /** - *
-   * Flattened list of objects in the object graph.
-   * The position of the object in this list indicates its id.
-   * Nodes[0] is considered the root node.
-   * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public org.tensorflow.proto.framework.SavedObject getNodes(int index) { - return nodes_.get(index); - } - /** - *
-   * Flattened list of objects in the object graph.
-   * The position of the object in this list indicates its id.
-   * Nodes[0] is considered the root node.
-   * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public org.tensorflow.proto.framework.SavedObjectOrBuilder getNodesOrBuilder( - int index) { - return nodes_.get(index); - } - - public static final int CONCRETE_FUNCTIONS_FIELD_NUMBER = 2; - private static final class ConcreteFunctionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, org.tensorflow.proto.framework.SavedConcreteFunction> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedObjectGraph_ConcreteFunctionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.tensorflow.proto.framework.SavedConcreteFunction.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.SavedConcreteFunction> concreteFunctions_; - private com.google.protobuf.MapField - internalGetConcreteFunctions() { - if (concreteFunctions_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ConcreteFunctionsDefaultEntryHolder.defaultEntry); - } - return concreteFunctions_; - } - - public int getConcreteFunctionsCount() { - return internalGetConcreteFunctions().getMap().size(); - } - /** - *
-   * Information about captures and output structures in concrete functions.
-   * Referenced from SavedBareConcreteFunction and SavedFunction.
-   * 
- * - * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; - */ - - public boolean containsConcreteFunctions( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetConcreteFunctions().getMap().containsKey(key); - } - /** - * Use {@link #getConcreteFunctionsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getConcreteFunctions() { - return getConcreteFunctionsMap(); - } - /** - *
-   * Information about captures and output structures in concrete functions.
-   * Referenced from SavedBareConcreteFunction and SavedFunction.
-   * 
- * - * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; - */ - - public java.util.Map getConcreteFunctionsMap() { - return internalGetConcreteFunctions().getMap(); - } - /** - *
-   * Information about captures and output structures in concrete functions.
-   * Referenced from SavedBareConcreteFunction and SavedFunction.
-   * 
- * - * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; - */ - - public org.tensorflow.proto.framework.SavedConcreteFunction getConcreteFunctionsOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.SavedConcreteFunction defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetConcreteFunctions().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-   * Information about captures and output structures in concrete functions.
-   * Referenced from SavedBareConcreteFunction and SavedFunction.
-   * 
- * - * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; - */ - - public org.tensorflow.proto.framework.SavedConcreteFunction getConcreteFunctionsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetConcreteFunctions().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 { - for (int i = 0; i < nodes_.size(); i++) { - output.writeMessage(1, nodes_.get(i)); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetConcreteFunctions(), - ConcreteFunctionsDefaultEntryHolder.defaultEntry, - 2); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < nodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, nodes_.get(i)); - } - for (java.util.Map.Entry entry - : internalGetConcreteFunctions().getMap().entrySet()) { - com.google.protobuf.MapEntry - concreteFunctions__ = ConcreteFunctionsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, concreteFunctions__); - } - 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 org.tensorflow.proto.framework.SavedObjectGraph)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.SavedObjectGraph other = (org.tensorflow.proto.framework.SavedObjectGraph) obj; - - if (!getNodesList() - .equals(other.getNodesList())) return false; - if (!internalGetConcreteFunctions().equals( - other.internalGetConcreteFunctions())) 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 (getNodesCount() > 0) { - hash = (37 * hash) + NODES_FIELD_NUMBER; - hash = (53 * hash) + getNodesList().hashCode(); - } - if (!internalGetConcreteFunctions().getMap().isEmpty()) { - hash = (37 * hash) + CONCRETE_FUNCTIONS_FIELD_NUMBER; - hash = (53 * hash) + internalGetConcreteFunctions().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.SavedObjectGraph parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedObjectGraph parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedObjectGraph parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedObjectGraph parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedObjectGraph parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedObjectGraph parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedObjectGraph parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedObjectGraph 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 org.tensorflow.proto.framework.SavedObjectGraph parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedObjectGraph 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 org.tensorflow.proto.framework.SavedObjectGraph parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedObjectGraph 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(org.tensorflow.proto.framework.SavedObjectGraph prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.SavedObjectGraph} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.SavedObjectGraph) - org.tensorflow.proto.framework.SavedObjectGraphOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedObjectGraph_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetConcreteFunctions(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableConcreteFunctions(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedObjectGraph_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SavedObjectGraph.class, org.tensorflow.proto.framework.SavedObjectGraph.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.SavedObjectGraph.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNodesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - nodesBuilder_.clear(); - } - internalGetMutableConcreteFunctions().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedObjectGraph_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedObjectGraph getDefaultInstanceForType() { - return org.tensorflow.proto.framework.SavedObjectGraph.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedObjectGraph build() { - org.tensorflow.proto.framework.SavedObjectGraph result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedObjectGraph buildPartial() { - org.tensorflow.proto.framework.SavedObjectGraph result = new org.tensorflow.proto.framework.SavedObjectGraph(this); - int from_bitField0_ = bitField0_; - if (nodesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodes_ = nodes_; - } else { - result.nodes_ = nodesBuilder_.build(); - } - result.concreteFunctions_ = internalGetConcreteFunctions(); - result.concreteFunctions_.makeImmutable(); - 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 org.tensorflow.proto.framework.SavedObjectGraph) { - return mergeFrom((org.tensorflow.proto.framework.SavedObjectGraph)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.SavedObjectGraph other) { - if (other == org.tensorflow.proto.framework.SavedObjectGraph.getDefaultInstance()) return this; - if (nodesBuilder_ == null) { - if (!other.nodes_.isEmpty()) { - if (nodes_.isEmpty()) { - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodesIsMutable(); - nodes_.addAll(other.nodes_); - } - onChanged(); - } - } else { - if (!other.nodes_.isEmpty()) { - if (nodesBuilder_.isEmpty()) { - nodesBuilder_.dispose(); - nodesBuilder_ = null; - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000001); - nodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodesFieldBuilder() : null; - } else { - nodesBuilder_.addAllMessages(other.nodes_); - } - } - } - internalGetMutableConcreteFunctions().mergeFrom( - other.internalGetConcreteFunctions()); - 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 { - org.tensorflow.proto.framework.SavedObjectGraph parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.SavedObjectGraph) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List nodes_ = - java.util.Collections.emptyList(); - private void ensureNodesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nodes_ = new java.util.ArrayList(nodes_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.SavedObject, org.tensorflow.proto.framework.SavedObject.Builder, org.tensorflow.proto.framework.SavedObjectOrBuilder> nodesBuilder_; - - /** - *
-     * Flattened list of objects in the object graph.
-     * The position of the object in this list indicates its id.
-     * Nodes[0] is considered the root node.
-     * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public java.util.List getNodesList() { - if (nodesBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodes_); - } else { - return nodesBuilder_.getMessageList(); - } - } - /** - *
-     * Flattened list of objects in the object graph.
-     * The position of the object in this list indicates its id.
-     * Nodes[0] is considered the root node.
-     * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public int getNodesCount() { - if (nodesBuilder_ == null) { - return nodes_.size(); - } else { - return nodesBuilder_.getCount(); - } - } - /** - *
-     * Flattened list of objects in the object graph.
-     * The position of the object in this list indicates its id.
-     * Nodes[0] is considered the root node.
-     * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public org.tensorflow.proto.framework.SavedObject getNodes(int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); - } else { - return nodesBuilder_.getMessage(index); - } - } - /** - *
-     * Flattened list of objects in the object graph.
-     * The position of the object in this list indicates its id.
-     * Nodes[0] is considered the root node.
-     * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public Builder setNodes( - int index, org.tensorflow.proto.framework.SavedObject value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.set(index, value); - onChanged(); - } else { - nodesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Flattened list of objects in the object graph.
-     * The position of the object in this list indicates its id.
-     * Nodes[0] is considered the root node.
-     * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public Builder setNodes( - int index, org.tensorflow.proto.framework.SavedObject.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.set(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Flattened list of objects in the object graph.
-     * The position of the object in this list indicates its id.
-     * Nodes[0] is considered the root node.
-     * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public Builder addNodes(org.tensorflow.proto.framework.SavedObject value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(value); - onChanged(); - } else { - nodesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Flattened list of objects in the object graph.
-     * The position of the object in this list indicates its id.
-     * Nodes[0] is considered the root node.
-     * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public Builder addNodes( - int index, org.tensorflow.proto.framework.SavedObject value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(index, value); - onChanged(); - } else { - nodesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Flattened list of objects in the object graph.
-     * The position of the object in this list indicates its id.
-     * Nodes[0] is considered the root node.
-     * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public Builder addNodes( - org.tensorflow.proto.framework.SavedObject.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Flattened list of objects in the object graph.
-     * The position of the object in this list indicates its id.
-     * Nodes[0] is considered the root node.
-     * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public Builder addNodes( - int index, org.tensorflow.proto.framework.SavedObject.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Flattened list of objects in the object graph.
-     * The position of the object in this list indicates its id.
-     * Nodes[0] is considered the root node.
-     * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public Builder addAllNodes( - java.lang.Iterable values) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodes_); - onChanged(); - } else { - nodesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Flattened list of objects in the object graph.
-     * The position of the object in this list indicates its id.
-     * Nodes[0] is considered the root node.
-     * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public Builder clearNodes() { - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodesBuilder_.clear(); - } - return this; - } - /** - *
-     * Flattened list of objects in the object graph.
-     * The position of the object in this list indicates its id.
-     * Nodes[0] is considered the root node.
-     * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public Builder removeNodes(int index) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.remove(index); - onChanged(); - } else { - nodesBuilder_.remove(index); - } - return this; - } - /** - *
-     * Flattened list of objects in the object graph.
-     * The position of the object in this list indicates its id.
-     * Nodes[0] is considered the root node.
-     * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public org.tensorflow.proto.framework.SavedObject.Builder getNodesBuilder( - int index) { - return getNodesFieldBuilder().getBuilder(index); - } - /** - *
-     * Flattened list of objects in the object graph.
-     * The position of the object in this list indicates its id.
-     * Nodes[0] is considered the root node.
-     * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public org.tensorflow.proto.framework.SavedObjectOrBuilder getNodesOrBuilder( - int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); } else { - return nodesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Flattened list of objects in the object graph.
-     * The position of the object in this list indicates its id.
-     * Nodes[0] is considered the root node.
-     * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public java.util.List - getNodesOrBuilderList() { - if (nodesBuilder_ != null) { - return nodesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodes_); - } - } - /** - *
-     * Flattened list of objects in the object graph.
-     * The position of the object in this list indicates its id.
-     * Nodes[0] is considered the root node.
-     * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public org.tensorflow.proto.framework.SavedObject.Builder addNodesBuilder() { - return getNodesFieldBuilder().addBuilder( - org.tensorflow.proto.framework.SavedObject.getDefaultInstance()); - } - /** - *
-     * Flattened list of objects in the object graph.
-     * The position of the object in this list indicates its id.
-     * Nodes[0] is considered the root node.
-     * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public org.tensorflow.proto.framework.SavedObject.Builder addNodesBuilder( - int index) { - return getNodesFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.SavedObject.getDefaultInstance()); - } - /** - *
-     * Flattened list of objects in the object graph.
-     * The position of the object in this list indicates its id.
-     * Nodes[0] is considered the root node.
-     * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - public java.util.List - getNodesBuilderList() { - return getNodesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.SavedObject, org.tensorflow.proto.framework.SavedObject.Builder, org.tensorflow.proto.framework.SavedObjectOrBuilder> - getNodesFieldBuilder() { - if (nodesBuilder_ == null) { - nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.SavedObject, org.tensorflow.proto.framework.SavedObject.Builder, org.tensorflow.proto.framework.SavedObjectOrBuilder>( - nodes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - nodes_ = null; - } - return nodesBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.SavedConcreteFunction> concreteFunctions_; - private com.google.protobuf.MapField - internalGetConcreteFunctions() { - if (concreteFunctions_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ConcreteFunctionsDefaultEntryHolder.defaultEntry); - } - return concreteFunctions_; - } - private com.google.protobuf.MapField - internalGetMutableConcreteFunctions() { - onChanged();; - if (concreteFunctions_ == null) { - concreteFunctions_ = com.google.protobuf.MapField.newMapField( - ConcreteFunctionsDefaultEntryHolder.defaultEntry); - } - if (!concreteFunctions_.isMutable()) { - concreteFunctions_ = concreteFunctions_.copy(); - } - return concreteFunctions_; - } - - public int getConcreteFunctionsCount() { - return internalGetConcreteFunctions().getMap().size(); - } - /** - *
-     * Information about captures and output structures in concrete functions.
-     * Referenced from SavedBareConcreteFunction and SavedFunction.
-     * 
- * - * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; - */ - - public boolean containsConcreteFunctions( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetConcreteFunctions().getMap().containsKey(key); - } - /** - * Use {@link #getConcreteFunctionsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getConcreteFunctions() { - return getConcreteFunctionsMap(); - } - /** - *
-     * Information about captures and output structures in concrete functions.
-     * Referenced from SavedBareConcreteFunction and SavedFunction.
-     * 
- * - * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; - */ - - public java.util.Map getConcreteFunctionsMap() { - return internalGetConcreteFunctions().getMap(); - } - /** - *
-     * Information about captures and output structures in concrete functions.
-     * Referenced from SavedBareConcreteFunction and SavedFunction.
-     * 
- * - * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; - */ - - public org.tensorflow.proto.framework.SavedConcreteFunction getConcreteFunctionsOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.SavedConcreteFunction defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetConcreteFunctions().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Information about captures and output structures in concrete functions.
-     * Referenced from SavedBareConcreteFunction and SavedFunction.
-     * 
- * - * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; - */ - - public org.tensorflow.proto.framework.SavedConcreteFunction getConcreteFunctionsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetConcreteFunctions().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearConcreteFunctions() { - internalGetMutableConcreteFunctions().getMutableMap() - .clear(); - return this; - } - /** - *
-     * Information about captures and output structures in concrete functions.
-     * Referenced from SavedBareConcreteFunction and SavedFunction.
-     * 
- * - * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; - */ - - public Builder removeConcreteFunctions( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableConcreteFunctions().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableConcreteFunctions() { - return internalGetMutableConcreteFunctions().getMutableMap(); - } - /** - *
-     * Information about captures and output structures in concrete functions.
-     * Referenced from SavedBareConcreteFunction and SavedFunction.
-     * 
- * - * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; - */ - public Builder putConcreteFunctions( - java.lang.String key, - org.tensorflow.proto.framework.SavedConcreteFunction value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableConcreteFunctions().getMutableMap() - .put(key, value); - return this; - } - /** - *
-     * Information about captures and output structures in concrete functions.
-     * Referenced from SavedBareConcreteFunction and SavedFunction.
-     * 
- * - * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; - */ - - public Builder putAllConcreteFunctions( - java.util.Map values) { - internalGetMutableConcreteFunctions().getMutableMap() - .putAll(values); - 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:tensorflow.SavedObjectGraph) - } - - // @@protoc_insertion_point(class_scope:tensorflow.SavedObjectGraph) - private static final org.tensorflow.proto.framework.SavedObjectGraph DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.SavedObjectGraph(); - } - - public static org.tensorflow.proto.framework.SavedObjectGraph getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SavedObjectGraph parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SavedObjectGraph(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedObjectGraph getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedObjectGraphOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedObjectGraphOrBuilder.java deleted file mode 100644 index 3d80fbc1306..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedObjectGraphOrBuilder.java +++ /dev/null @@ -1,122 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -public interface SavedObjectGraphOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.SavedObjectGraph) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Flattened list of objects in the object graph.
-   * The position of the object in this list indicates its id.
-   * Nodes[0] is considered the root node.
-   * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - java.util.List - getNodesList(); - /** - *
-   * Flattened list of objects in the object graph.
-   * The position of the object in this list indicates its id.
-   * Nodes[0] is considered the root node.
-   * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - org.tensorflow.proto.framework.SavedObject getNodes(int index); - /** - *
-   * Flattened list of objects in the object graph.
-   * The position of the object in this list indicates its id.
-   * Nodes[0] is considered the root node.
-   * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - int getNodesCount(); - /** - *
-   * Flattened list of objects in the object graph.
-   * The position of the object in this list indicates its id.
-   * Nodes[0] is considered the root node.
-   * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - java.util.List - getNodesOrBuilderList(); - /** - *
-   * Flattened list of objects in the object graph.
-   * The position of the object in this list indicates its id.
-   * Nodes[0] is considered the root node.
-   * 
- * - * repeated .tensorflow.SavedObject nodes = 1; - */ - org.tensorflow.proto.framework.SavedObjectOrBuilder getNodesOrBuilder( - int index); - - /** - *
-   * Information about captures and output structures in concrete functions.
-   * Referenced from SavedBareConcreteFunction and SavedFunction.
-   * 
- * - * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; - */ - int getConcreteFunctionsCount(); - /** - *
-   * Information about captures and output structures in concrete functions.
-   * Referenced from SavedBareConcreteFunction and SavedFunction.
-   * 
- * - * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; - */ - boolean containsConcreteFunctions( - java.lang.String key); - /** - * Use {@link #getConcreteFunctionsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getConcreteFunctions(); - /** - *
-   * Information about captures and output structures in concrete functions.
-   * Referenced from SavedBareConcreteFunction and SavedFunction.
-   * 
- * - * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; - */ - java.util.Map - getConcreteFunctionsMap(); - /** - *
-   * Information about captures and output structures in concrete functions.
-   * Referenced from SavedBareConcreteFunction and SavedFunction.
-   * 
- * - * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; - */ - - org.tensorflow.proto.framework.SavedConcreteFunction getConcreteFunctionsOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.SavedConcreteFunction defaultValue); - /** - *
-   * Information about captures and output structures in concrete functions.
-   * Referenced from SavedBareConcreteFunction and SavedFunction.
-   * 
- * - * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; - */ - - org.tensorflow.proto.framework.SavedConcreteFunction getConcreteFunctionsOrThrow( - java.lang.String key); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedObjectGraphProtos.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedObjectGraphProtos.java deleted file mode 100644 index 44d1f9dc740..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedObjectGraphProtos.java +++ /dev/null @@ -1,291 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -public final class SavedObjectGraphProtos { - private SavedObjectGraphProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_SavedObjectGraph_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_SavedObjectGraph_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_SavedObjectGraph_ConcreteFunctionsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_SavedObjectGraph_ConcreteFunctionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_SavedObject_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_SavedObject_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_SavedObject_SaveableObjectsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_SavedObject_SaveableObjectsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_SavedUserObject_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_SavedUserObject_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_SavedAsset_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_SavedAsset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_SavedFunction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_SavedFunction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_CapturedTensor_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_CapturedTensor_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_SavedConcreteFunction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_SavedConcreteFunction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_SavedBareConcreteFunction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_SavedBareConcreteFunction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_SavedConstant_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_SavedConstant_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_SavedVariable_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_SavedVariable_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_FunctionSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_FunctionSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_SavedResource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_SavedResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_SaveableObject_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_SaveableObject_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1tensorflow/core/protobuf/saved_object_" + - "graph.proto\022\ntensorflow\032\031google/protobuf" + - "/any.proto\032,tensorflow/core/framework/te" + - "nsor_shape.proto\032%tensorflow/core/framew" + - "ork/types.proto\032(tensorflow/core/framewo" + - "rk/variable.proto\032(tensorflow/core/frame" + - "work/versions.proto\032%tensorflow/core/pro" + - "tobuf/struct.proto\0325tensorflow/core/prot" + - "obuf/trackable_object_graph.proto\"\350\001\n\020Sa" + - "vedObjectGraph\022&\n\005nodes\030\001 \003(\0132\027.tensorfl" + - "ow.SavedObject\022O\n\022concrete_functions\030\002 \003" + - "(\01323.tensorflow.SavedObjectGraph.Concret" + - "eFunctionsEntry\032[\n\026ConcreteFunctionsEntr" + - "y\022\013\n\003key\030\001 \001(\t\0220\n\005value\030\002 \001(\0132!.tensorfl" + - "ow.SavedConcreteFunction:\0028\001\"\320\007\n\013SavedOb" + - "ject\022R\n\010children\030\001 \003(\0132@.tensorflow.Trac" + - "kableObjectGraph.TrackableObject.ObjectR" + - "eference\022V\n\014dependencies\030\017 \003(\0132@.tensorf" + - "low.TrackableObjectGraph.TrackableObject" + - ".ObjectReference\022^\n\016slot_variables\030\003 \003(\013" + - "2F.tensorflow.TrackableObjectGraph.Track" + - "ableObject.SlotVariableReference\0222\n\013user" + - "_object\030\004 \001(\0132\033.tensorflow.SavedUserObje" + - "ctH\000\022\'\n\005asset\030\005 \001(\0132\026.tensorflow.SavedAs" + - "setH\000\022-\n\010function\030\006 \001(\0132\031.tensorflow.Sav" + - "edFunctionH\000\022-\n\010variable\030\007 \001(\0132\031.tensorf" + - "low.SavedVariableH\000\022G\n\026bare_concrete_fun" + - "ction\030\010 \001(\0132%.tensorflow.SavedBareConcre" + - "teFunctionH\000\022-\n\010constant\030\t \001(\0132\031.tensorf" + - "low.SavedConstantH\000\022-\n\010resource\030\n \001(\0132\031." + - "tensorflow.SavedResourceH\000\0225\n\017captured_t" + - "ensor\030\014 \001(\0132\032.tensorflow.CapturedTensorH" + - "\000\022F\n\020saveable_objects\030\013 \003(\0132,.tensorflow" + - ".SavedObject.SaveableObjectsEntry\022\027\n\017reg" + - "istered_name\030\r \001(\t\0223\n\025serialized_user_pr" + - "oto\030\016 \001(\0132\024.google.protobuf.Any\022\030\n\020regis" + - "tered_saver\030\020 \001(\t\032R\n\024SaveableObjectsEntr" + - "y\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.tensorfl" + - "ow.SaveableObject:\0028\001B\006\n\004kindJ\004\010\002\020\003R\natt" + - "ributes\"d\n\017SavedUserObject\022\022\n\nidentifier" + - "\030\001 \001(\t\022\'\n\007version\030\002 \001(\0132\026.tensorflow.Ver" + - "sionDef\022\024\n\010metadata\030\003 \001(\tB\002\030\001\"*\n\nSavedAs" + - "set\022\034\n\024asset_file_def_index\030\001 \001(\005\"\\\n\rSav" + - "edFunction\022\032\n\022concrete_functions\030\001 \003(\t\022/" + - "\n\rfunction_spec\030\002 \001(\0132\030.tensorflow.Funct" + - "ionSpec\"9\n\016CapturedTensor\022\014\n\004name\030\001 \001(\t\022" + - "\031\n\021concrete_function\030\002 \001(\t\"\250\001\n\025SavedConc" + - "reteFunction\022\024\n\014bound_inputs\030\002 \003(\005\022B\n\035ca" + - "nonicalized_input_signature\030\003 \001(\0132\033.tens" + - "orflow.StructuredValue\0225\n\020output_signatu" + - "re\030\004 \001(\0132\033.tensorflow.StructuredValue\"\255\001" + - "\n\031SavedBareConcreteFunction\022\036\n\026concrete_" + - "function_name\030\001 \001(\t\022\031\n\021argument_keywords" + - "\030\002 \003(\t\022$\n\034allowed_positional_arguments\030\003" + - " \001(\003\022/\n\rfunction_spec\030\004 \001(\0132\030.tensorflow" + - ".FunctionSpec\"\"\n\rSavedConstant\022\021\n\toperat" + - "ion\030\001 \001(\t\"\327\002\n\rSavedVariable\022#\n\005dtype\030\001 \001" + - "(\0162\024.tensorflow.DataType\022+\n\005shape\030\002 \001(\0132" + - "\034.tensorflow.TensorShapeProto\022\021\n\ttrainab" + - "le\030\003 \001(\010\022<\n\017synchronization\030\004 \001(\0162#.tens" + - "orflow.VariableSynchronization\0224\n\013aggreg" + - "ation\030\005 \001(\0162\037.tensorflow.VariableAggrega" + - "tion\022\014\n\004name\030\006 \001(\t\022\016\n\006device\030\007 \001(\t\022O\n,ex" + - "perimental_distributed_variable_componen" + - "ts\030\010 \003(\0132\031.tensorflow.SavedVariable\"\373\001\n\014" + - "FunctionSpec\0220\n\013fullargspec\030\001 \001(\0132\033.tens" + - "orflow.StructuredValue\022\021\n\tis_method\030\002 \001(" + - "\010\0224\n\017input_signature\030\005 \001(\0132\033.tensorflow." + - "StructuredValue\0228\n\013jit_compile\030\006 \001(\0162#.t" + - "ensorflow.FunctionSpec.JitCompile\"*\n\nJit" + - "Compile\022\013\n\007DEFAULT\020\000\022\006\n\002ON\020\001\022\007\n\003OFF\020\002J\004\010" + - "\003\020\004J\004\010\004\020\005\"\037\n\rSavedResource\022\016\n\006device\030\001 \001" + - "(\t\"A\n\016SaveableObject\022\025\n\rsave_function\030\002 " + - "\001(\005\022\030\n\020restore_function\030\003 \001(\005B\224\001\n\036org.te" + - "nsorflow.proto.frameworkB\026SavedObjectGra" + - "phProtosP\001ZUgithub.com/tensorflow/tensor" + - "flow/tensorflow/go/core/protobuf/for_cor" + - "e_protos_go_proto\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.AnyProto.getDescriptor(), - org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(), - org.tensorflow.proto.framework.TypesProtos.getDescriptor(), - org.tensorflow.proto.framework.VariableProtos.getDescriptor(), - org.tensorflow.proto.framework.VersionsProtos.getDescriptor(), - org.tensorflow.proto.framework.StructProtos.getDescriptor(), - org.tensorflow.proto.framework.TrackableObjectGraphProtos.getDescriptor(), - }); - internal_static_tensorflow_SavedObjectGraph_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tensorflow_SavedObjectGraph_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_SavedObjectGraph_descriptor, - new java.lang.String[] { "Nodes", "ConcreteFunctions", }); - internal_static_tensorflow_SavedObjectGraph_ConcreteFunctionsEntry_descriptor = - internal_static_tensorflow_SavedObjectGraph_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_SavedObjectGraph_ConcreteFunctionsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_SavedObjectGraph_ConcreteFunctionsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_tensorflow_SavedObject_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_tensorflow_SavedObject_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_SavedObject_descriptor, - new java.lang.String[] { "Children", "Dependencies", "SlotVariables", "UserObject", "Asset", "Function", "Variable", "BareConcreteFunction", "Constant", "Resource", "CapturedTensor", "SaveableObjects", "RegisteredName", "SerializedUserProto", "RegisteredSaver", "Kind", }); - internal_static_tensorflow_SavedObject_SaveableObjectsEntry_descriptor = - internal_static_tensorflow_SavedObject_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_SavedObject_SaveableObjectsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_SavedObject_SaveableObjectsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_tensorflow_SavedUserObject_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_tensorflow_SavedUserObject_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_SavedUserObject_descriptor, - new java.lang.String[] { "Identifier", "Version", "Metadata", }); - internal_static_tensorflow_SavedAsset_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_tensorflow_SavedAsset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_SavedAsset_descriptor, - new java.lang.String[] { "AssetFileDefIndex", }); - internal_static_tensorflow_SavedFunction_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_tensorflow_SavedFunction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_SavedFunction_descriptor, - new java.lang.String[] { "ConcreteFunctions", "FunctionSpec", }); - internal_static_tensorflow_CapturedTensor_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_tensorflow_CapturedTensor_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_CapturedTensor_descriptor, - new java.lang.String[] { "Name", "ConcreteFunction", }); - internal_static_tensorflow_SavedConcreteFunction_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_tensorflow_SavedConcreteFunction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_SavedConcreteFunction_descriptor, - new java.lang.String[] { "BoundInputs", "CanonicalizedInputSignature", "OutputSignature", }); - internal_static_tensorflow_SavedBareConcreteFunction_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_tensorflow_SavedBareConcreteFunction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_SavedBareConcreteFunction_descriptor, - new java.lang.String[] { "ConcreteFunctionName", "ArgumentKeywords", "AllowedPositionalArguments", "FunctionSpec", }); - internal_static_tensorflow_SavedConstant_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_tensorflow_SavedConstant_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_SavedConstant_descriptor, - new java.lang.String[] { "Operation", }); - internal_static_tensorflow_SavedVariable_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_tensorflow_SavedVariable_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_SavedVariable_descriptor, - new java.lang.String[] { "Dtype", "Shape", "Trainable", "Synchronization", "Aggregation", "Name", "Device", "ExperimentalDistributedVariableComponents", }); - internal_static_tensorflow_FunctionSpec_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_tensorflow_FunctionSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_FunctionSpec_descriptor, - new java.lang.String[] { "Fullargspec", "IsMethod", "InputSignature", "JitCompile", }); - internal_static_tensorflow_SavedResource_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_tensorflow_SavedResource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_SavedResource_descriptor, - new java.lang.String[] { "Device", }); - internal_static_tensorflow_SaveableObject_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_tensorflow_SaveableObject_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_SaveableObject_descriptor, - new java.lang.String[] { "SaveFunction", "RestoreFunction", }); - com.google.protobuf.AnyProto.getDescriptor(); - org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(); - org.tensorflow.proto.framework.TypesProtos.getDescriptor(); - org.tensorflow.proto.framework.VariableProtos.getDescriptor(); - org.tensorflow.proto.framework.VersionsProtos.getDescriptor(); - org.tensorflow.proto.framework.StructProtos.getDescriptor(); - org.tensorflow.proto.framework.TrackableObjectGraphProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedObjectOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedObjectOrBuilder.java deleted file mode 100644 index 5510b39b161..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedObjectOrBuilder.java +++ /dev/null @@ -1,427 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -public interface SavedObjectOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.SavedObject) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Objects which this object depends on: named edges in the dependency
-   * graph.
-   * Note: All kinds of SavedObject may have children, except
-   * "constant" and "captured_tensor".
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - java.util.List - getChildrenList(); - /** - *
-   * Objects which this object depends on: named edges in the dependency
-   * graph.
-   * Note: All kinds of SavedObject may have children, except
-   * "constant" and "captured_tensor".
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference getChildren(int index); - /** - *
-   * Objects which this object depends on: named edges in the dependency
-   * graph.
-   * Note: All kinds of SavedObject may have children, except
-   * "constant" and "captured_tensor".
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - int getChildrenCount(); - /** - *
-   * Objects which this object depends on: named edges in the dependency
-   * graph.
-   * Note: All kinds of SavedObject may have children, except
-   * "constant" and "captured_tensor".
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - java.util.List - getChildrenOrBuilderList(); - /** - *
-   * Objects which this object depends on: named edges in the dependency
-   * graph.
-   * Note: All kinds of SavedObject may have children, except
-   * "constant" and "captured_tensor".
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; - */ - org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder getChildrenOrBuilder( - int index); - - /** - *
-   * Ordered list of dependencies that must be loaded before this object.
-   * SavedModel loads with the bottom-up approach, by first creating all objects
-   * (in the order defined by the dependencies), then connecting the edges.
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - java.util.List - getDependenciesList(); - /** - *
-   * Ordered list of dependencies that must be loaded before this object.
-   * SavedModel loads with the bottom-up approach, by first creating all objects
-   * (in the order defined by the dependencies), then connecting the edges.
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReference getDependencies(int index); - /** - *
-   * Ordered list of dependencies that must be loaded before this object.
-   * SavedModel loads with the bottom-up approach, by first creating all objects
-   * (in the order defined by the dependencies), then connecting the edges.
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - int getDependenciesCount(); - /** - *
-   * Ordered list of dependencies that must be loaded before this object.
-   * SavedModel loads with the bottom-up approach, by first creating all objects
-   * (in the order defined by the dependencies), then connecting the edges.
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - java.util.List - getDependenciesOrBuilderList(); - /** - *
-   * Ordered list of dependencies that must be loaded before this object.
-   * SavedModel loads with the bottom-up approach, by first creating all objects
-   * (in the order defined by the dependencies), then connecting the edges.
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; - */ - org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder getDependenciesOrBuilder( - int index); - - /** - *
-   * Slot variables owned by this object. This describes the three-way
-   * (optimizer, variable, slot variable) relationship; none of the three
-   * depend on the others directly.
-   * Note: currently only valid if kind == "user_object".
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - java.util.List - getSlotVariablesList(); - /** - *
-   * Slot variables owned by this object. This describes the three-way
-   * (optimizer, variable, slot variable) relationship; none of the three
-   * depend on the others directly.
-   * Note: currently only valid if kind == "user_object".
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReference getSlotVariables(int index); - /** - *
-   * Slot variables owned by this object. This describes the three-way
-   * (optimizer, variable, slot variable) relationship; none of the three
-   * depend on the others directly.
-   * Note: currently only valid if kind == "user_object".
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - int getSlotVariablesCount(); - /** - *
-   * Slot variables owned by this object. This describes the three-way
-   * (optimizer, variable, slot variable) relationship; none of the three
-   * depend on the others directly.
-   * Note: currently only valid if kind == "user_object".
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - java.util.List - getSlotVariablesOrBuilderList(); - /** - *
-   * Slot variables owned by this object. This describes the three-way
-   * (optimizer, variable, slot variable) relationship; none of the three
-   * depend on the others directly.
-   * Note: currently only valid if kind == "user_object".
-   * 
- * - * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; - */ - org.tensorflow.proto.framework.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder getSlotVariablesOrBuilder( - int index); - - /** - * .tensorflow.SavedUserObject user_object = 4; - */ - boolean hasUserObject(); - /** - * .tensorflow.SavedUserObject user_object = 4; - */ - org.tensorflow.proto.framework.SavedUserObject getUserObject(); - /** - * .tensorflow.SavedUserObject user_object = 4; - */ - org.tensorflow.proto.framework.SavedUserObjectOrBuilder getUserObjectOrBuilder(); - - /** - * .tensorflow.SavedAsset asset = 5; - */ - boolean hasAsset(); - /** - * .tensorflow.SavedAsset asset = 5; - */ - org.tensorflow.proto.framework.SavedAsset getAsset(); - /** - * .tensorflow.SavedAsset asset = 5; - */ - org.tensorflow.proto.framework.SavedAssetOrBuilder getAssetOrBuilder(); - - /** - * .tensorflow.SavedFunction function = 6; - */ - boolean hasFunction(); - /** - * .tensorflow.SavedFunction function = 6; - */ - org.tensorflow.proto.framework.SavedFunction getFunction(); - /** - * .tensorflow.SavedFunction function = 6; - */ - org.tensorflow.proto.framework.SavedFunctionOrBuilder getFunctionOrBuilder(); - - /** - * .tensorflow.SavedVariable variable = 7; - */ - boolean hasVariable(); - /** - * .tensorflow.SavedVariable variable = 7; - */ - org.tensorflow.proto.framework.SavedVariable getVariable(); - /** - * .tensorflow.SavedVariable variable = 7; - */ - org.tensorflow.proto.framework.SavedVariableOrBuilder getVariableOrBuilder(); - - /** - * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; - */ - boolean hasBareConcreteFunction(); - /** - * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; - */ - org.tensorflow.proto.framework.SavedBareConcreteFunction getBareConcreteFunction(); - /** - * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; - */ - org.tensorflow.proto.framework.SavedBareConcreteFunctionOrBuilder getBareConcreteFunctionOrBuilder(); - - /** - * .tensorflow.SavedConstant constant = 9; - */ - boolean hasConstant(); - /** - * .tensorflow.SavedConstant constant = 9; - */ - org.tensorflow.proto.framework.SavedConstant getConstant(); - /** - * .tensorflow.SavedConstant constant = 9; - */ - org.tensorflow.proto.framework.SavedConstantOrBuilder getConstantOrBuilder(); - - /** - * .tensorflow.SavedResource resource = 10; - */ - boolean hasResource(); - /** - * .tensorflow.SavedResource resource = 10; - */ - org.tensorflow.proto.framework.SavedResource getResource(); - /** - * .tensorflow.SavedResource resource = 10; - */ - org.tensorflow.proto.framework.SavedResourceOrBuilder getResourceOrBuilder(); - - /** - * .tensorflow.CapturedTensor captured_tensor = 12; - */ - boolean hasCapturedTensor(); - /** - * .tensorflow.CapturedTensor captured_tensor = 12; - */ - org.tensorflow.proto.framework.CapturedTensor getCapturedTensor(); - /** - * .tensorflow.CapturedTensor captured_tensor = 12; - */ - org.tensorflow.proto.framework.CapturedTensorOrBuilder getCapturedTensorOrBuilder(); - - /** - *
-   * Stores the functions used to save and restore this object. At most one of
-   * `saveable_objects` or `registered_saver` is defined for each SavedObject.
-   * See the comment below for the difference between SaveableObject and
-   * registered savers.
-   * 
- * - * map<string, .tensorflow.SaveableObject> saveable_objects = 11; - */ - int getSaveableObjectsCount(); - /** - *
-   * Stores the functions used to save and restore this object. At most one of
-   * `saveable_objects` or `registered_saver` is defined for each SavedObject.
-   * See the comment below for the difference between SaveableObject and
-   * registered savers.
-   * 
- * - * map<string, .tensorflow.SaveableObject> saveable_objects = 11; - */ - boolean containsSaveableObjects( - java.lang.String key); - /** - * Use {@link #getSaveableObjectsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getSaveableObjects(); - /** - *
-   * Stores the functions used to save and restore this object. At most one of
-   * `saveable_objects` or `registered_saver` is defined for each SavedObject.
-   * See the comment below for the difference between SaveableObject and
-   * registered savers.
-   * 
- * - * map<string, .tensorflow.SaveableObject> saveable_objects = 11; - */ - java.util.Map - getSaveableObjectsMap(); - /** - *
-   * Stores the functions used to save and restore this object. At most one of
-   * `saveable_objects` or `registered_saver` is defined for each SavedObject.
-   * See the comment below for the difference between SaveableObject and
-   * registered savers.
-   * 
- * - * map<string, .tensorflow.SaveableObject> saveable_objects = 11; - */ - - org.tensorflow.proto.framework.SaveableObject getSaveableObjectsOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.SaveableObject defaultValue); - /** - *
-   * Stores the functions used to save and restore this object. At most one of
-   * `saveable_objects` or `registered_saver` is defined for each SavedObject.
-   * See the comment below for the difference between SaveableObject and
-   * registered savers.
-   * 
- * - * map<string, .tensorflow.SaveableObject> saveable_objects = 11; - */ - - org.tensorflow.proto.framework.SaveableObject getSaveableObjectsOrThrow( - java.lang.String key); - - /** - *
-   * The name of the registered class of the form "{package}.{class_name}".
-   * This field is used to search for the registered class at loading time.
-   * 
- * - * string registered_name = 13; - */ - java.lang.String getRegisteredName(); - /** - *
-   * The name of the registered class of the form "{package}.{class_name}".
-   * This field is used to search for the registered class at loading time.
-   * 
- * - * string registered_name = 13; - */ - com.google.protobuf.ByteString - getRegisteredNameBytes(); - - /** - *
-   * The user-generated proto storing metadata for this object, to be passed to
-   * the registered classes's _deserialize_from_proto method when this object is
-   * loaded from the SavedModel.
-   * 
- * - * .google.protobuf.Any serialized_user_proto = 14; - */ - boolean hasSerializedUserProto(); - /** - *
-   * The user-generated proto storing metadata for this object, to be passed to
-   * the registered classes's _deserialize_from_proto method when this object is
-   * loaded from the SavedModel.
-   * 
- * - * .google.protobuf.Any serialized_user_proto = 14; - */ - com.google.protobuf.Any getSerializedUserProto(); - /** - *
-   * The user-generated proto storing metadata for this object, to be passed to
-   * the registered classes's _deserialize_from_proto method when this object is
-   * loaded from the SavedModel.
-   * 
- * - * .google.protobuf.Any serialized_user_proto = 14; - */ - com.google.protobuf.AnyOrBuilder getSerializedUserProtoOrBuilder(); - - /** - *
-   * String name of the registered saver. At most one of `saveable_objects` or
-   * `registered_saver` is defined for each SavedObject.
-   * 
- * - * string registered_saver = 16; - */ - java.lang.String getRegisteredSaver(); - /** - *
-   * String name of the registered saver. At most one of `saveable_objects` or
-   * `registered_saver` is defined for each SavedObject.
-   * 
- * - * string registered_saver = 16; - */ - com.google.protobuf.ByteString - getRegisteredSaverBytes(); - - public org.tensorflow.proto.framework.SavedObject.KindCase getKindCase(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedResource.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedResource.java deleted file mode 100644 index b45f7ff73a9..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedResource.java +++ /dev/null @@ -1,600 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -/** - *
- * A SavedResource represents a TF object that holds state during its lifetime.
- * An object of this type can have a reference to a:
- * create_resource() and an initialize() function.
- * 
- * - * Protobuf type {@code tensorflow.SavedResource} - */ -public final class SavedResource extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.SavedResource) - SavedResourceOrBuilder { -private static final long serialVersionUID = 0L; - // Use SavedResource.newBuilder() to construct. - private SavedResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SavedResource() { - device_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SavedResource(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SavedResource( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - device_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedResource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedResource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SavedResource.class, org.tensorflow.proto.framework.SavedResource.Builder.class); - } - - public static final int DEVICE_FIELD_NUMBER = 1; - private volatile java.lang.Object device_; - /** - *
-   * A device specification indicating a required placement for the resource
-   * creation function, e.g. "CPU". An empty string allows the user to select a
-   * device.
-   * 
- * - * string device = 1; - */ - public java.lang.String getDevice() { - java.lang.Object ref = device_; - 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(); - device_ = s; - return s; - } - } - /** - *
-   * A device specification indicating a required placement for the resource
-   * creation function, e.g. "CPU". An empty string allows the user to select a
-   * device.
-   * 
- * - * string device = 1; - */ - public com.google.protobuf.ByteString - getDeviceBytes() { - java.lang.Object ref = device_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - device_ = 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 (!getDeviceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, device_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDeviceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, device_); - } - 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 org.tensorflow.proto.framework.SavedResource)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.SavedResource other = (org.tensorflow.proto.framework.SavedResource) obj; - - if (!getDevice() - .equals(other.getDevice())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DEVICE_FIELD_NUMBER; - hash = (53 * hash) + getDevice().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.SavedResource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedResource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedResource parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedResource parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedResource parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedResource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedResource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedResource 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 org.tensorflow.proto.framework.SavedResource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedResource 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 org.tensorflow.proto.framework.SavedResource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedResource 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(org.tensorflow.proto.framework.SavedResource 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; - } - /** - *
-   * A SavedResource represents a TF object that holds state during its lifetime.
-   * An object of this type can have a reference to a:
-   * create_resource() and an initialize() function.
-   * 
- * - * Protobuf type {@code tensorflow.SavedResource} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.SavedResource) - org.tensorflow.proto.framework.SavedResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedResource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedResource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SavedResource.class, org.tensorflow.proto.framework.SavedResource.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.SavedResource.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - device_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedResource_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedResource getDefaultInstanceForType() { - return org.tensorflow.proto.framework.SavedResource.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedResource build() { - org.tensorflow.proto.framework.SavedResource result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedResource buildPartial() { - org.tensorflow.proto.framework.SavedResource result = new org.tensorflow.proto.framework.SavedResource(this); - result.device_ = device_; - 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 org.tensorflow.proto.framework.SavedResource) { - return mergeFrom((org.tensorflow.proto.framework.SavedResource)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.SavedResource other) { - if (other == org.tensorflow.proto.framework.SavedResource.getDefaultInstance()) return this; - if (!other.getDevice().isEmpty()) { - device_ = other.device_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.SavedResource parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.SavedResource) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object device_ = ""; - /** - *
-     * A device specification indicating a required placement for the resource
-     * creation function, e.g. "CPU". An empty string allows the user to select a
-     * device.
-     * 
- * - * string device = 1; - */ - public java.lang.String getDevice() { - java.lang.Object ref = device_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - device_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A device specification indicating a required placement for the resource
-     * creation function, e.g. "CPU". An empty string allows the user to select a
-     * device.
-     * 
- * - * string device = 1; - */ - public com.google.protobuf.ByteString - getDeviceBytes() { - java.lang.Object ref = device_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - device_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A device specification indicating a required placement for the resource
-     * creation function, e.g. "CPU". An empty string allows the user to select a
-     * device.
-     * 
- * - * string device = 1; - */ - public Builder setDevice( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - device_ = value; - onChanged(); - return this; - } - /** - *
-     * A device specification indicating a required placement for the resource
-     * creation function, e.g. "CPU". An empty string allows the user to select a
-     * device.
-     * 
- * - * string device = 1; - */ - public Builder clearDevice() { - - device_ = getDefaultInstance().getDevice(); - onChanged(); - return this; - } - /** - *
-     * A device specification indicating a required placement for the resource
-     * creation function, e.g. "CPU". An empty string allows the user to select a
-     * device.
-     * 
- * - * string device = 1; - */ - public Builder setDeviceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - device_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.SavedResource) - } - - // @@protoc_insertion_point(class_scope:tensorflow.SavedResource) - private static final org.tensorflow.proto.framework.SavedResource DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.SavedResource(); - } - - public static org.tensorflow.proto.framework.SavedResource getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SavedResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SavedResource(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedResource getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedResourceOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedResourceOrBuilder.java deleted file mode 100644 index 5d78c2eea9b..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedResourceOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -public interface SavedResourceOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.SavedResource) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A device specification indicating a required placement for the resource
-   * creation function, e.g. "CPU". An empty string allows the user to select a
-   * device.
-   * 
- * - * string device = 1; - */ - java.lang.String getDevice(); - /** - *
-   * A device specification indicating a required placement for the resource
-   * creation function, e.g. "CPU". An empty string allows the user to select a
-   * device.
-   * 
- * - * string device = 1; - */ - com.google.protobuf.ByteString - getDeviceBytes(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedUserObject.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedUserObject.java deleted file mode 100644 index 3a9b3868396..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedUserObject.java +++ /dev/null @@ -1,995 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -/** - *
- * A SavedUserObject is an object (in the object-oriented language of the
- * TensorFlow program) of some user- or framework-defined class other than
- * those handled specifically by the other kinds of SavedObjects.
- * This object cannot be evaluated as a tensor, and therefore cannot be bound
- * to an input of a function.
- * 
- * - * Protobuf type {@code tensorflow.SavedUserObject} - */ -public final class SavedUserObject extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.SavedUserObject) - SavedUserObjectOrBuilder { -private static final long serialVersionUID = 0L; - // Use SavedUserObject.newBuilder() to construct. - private SavedUserObject(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SavedUserObject() { - identifier_ = ""; - metadata_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SavedUserObject(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SavedUserObject( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - identifier_ = s; - break; - } - case 18: { - org.tensorflow.proto.framework.VersionDef.Builder subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = input.readMessage(org.tensorflow.proto.framework.VersionDef.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - metadata_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedUserObject_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedUserObject_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SavedUserObject.class, org.tensorflow.proto.framework.SavedUserObject.Builder.class); - } - - public static final int IDENTIFIER_FIELD_NUMBER = 1; - private volatile java.lang.Object identifier_; - /** - *
-   * Corresponds to a registration of the type to use in the loading program.
-   * 
- * - * string identifier = 1; - */ - public java.lang.String getIdentifier() { - java.lang.Object ref = identifier_; - 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(); - identifier_ = s; - return s; - } - } - /** - *
-   * Corresponds to a registration of the type to use in the loading program.
-   * 
- * - * string identifier = 1; - */ - public com.google.protobuf.ByteString - getIdentifierBytes() { - java.lang.Object ref = identifier_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 2; - private org.tensorflow.proto.framework.VersionDef version_; - /** - *
-   * Version information from the producer of this SavedUserObject.
-   * 
- * - * .tensorflow.VersionDef version = 2; - */ - public boolean hasVersion() { - return version_ != null; - } - /** - *
-   * Version information from the producer of this SavedUserObject.
-   * 
- * - * .tensorflow.VersionDef version = 2; - */ - public org.tensorflow.proto.framework.VersionDef getVersion() { - return version_ == null ? org.tensorflow.proto.framework.VersionDef.getDefaultInstance() : version_; - } - /** - *
-   * Version information from the producer of this SavedUserObject.
-   * 
- * - * .tensorflow.VersionDef version = 2; - */ - public org.tensorflow.proto.framework.VersionDefOrBuilder getVersionOrBuilder() { - return getVersion(); - } - - public static final int METADATA_FIELD_NUMBER = 3; - private volatile java.lang.Object metadata_; - /** - *
-   * Metadata for deserializing this object.
-   * Deprecated! At the time of deprecation, Keras was the only user of this
-   * field, and its saving and loading code will be updated shortly.
-   * Please save your application-specific metadata to a separate file.
-   * 
- * - * string metadata = 3 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getMetadata() { - java.lang.Object ref = metadata_; - 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(); - metadata_ = s; - return s; - } - } - /** - *
-   * Metadata for deserializing this object.
-   * Deprecated! At the time of deprecation, Keras was the only user of this
-   * field, and its saving and loading code will be updated shortly.
-   * Please save your application-specific metadata to a separate file.
-   * 
- * - * string metadata = 3 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getMetadataBytes() { - java.lang.Object ref = metadata_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metadata_ = 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 (!getIdentifierBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identifier_); - } - if (version_ != null) { - output.writeMessage(2, getVersion()); - } - if (!getMetadataBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, metadata_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdentifierBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, identifier_); - } - if (version_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getVersion()); - } - if (!getMetadataBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, metadata_); - } - 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 org.tensorflow.proto.framework.SavedUserObject)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.SavedUserObject other = (org.tensorflow.proto.framework.SavedUserObject) obj; - - if (!getIdentifier() - .equals(other.getIdentifier())) return false; - if (hasVersion() != other.hasVersion()) return false; - if (hasVersion()) { - if (!getVersion() - .equals(other.getVersion())) return false; - } - if (!getMetadata() - .equals(other.getMetadata())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER; - hash = (53 * hash) + getIdentifier().hashCode(); - if (hasVersion()) { - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - } - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.SavedUserObject parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedUserObject parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedUserObject parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedUserObject parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedUserObject parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedUserObject parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedUserObject parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedUserObject 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 org.tensorflow.proto.framework.SavedUserObject parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedUserObject 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 org.tensorflow.proto.framework.SavedUserObject parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedUserObject 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(org.tensorflow.proto.framework.SavedUserObject 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; - } - /** - *
-   * A SavedUserObject is an object (in the object-oriented language of the
-   * TensorFlow program) of some user- or framework-defined class other than
-   * those handled specifically by the other kinds of SavedObjects.
-   * This object cannot be evaluated as a tensor, and therefore cannot be bound
-   * to an input of a function.
-   * 
- * - * Protobuf type {@code tensorflow.SavedUserObject} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.SavedUserObject) - org.tensorflow.proto.framework.SavedUserObjectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedUserObject_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedUserObject_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SavedUserObject.class, org.tensorflow.proto.framework.SavedUserObject.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.SavedUserObject.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - identifier_ = ""; - - if (versionBuilder_ == null) { - version_ = null; - } else { - version_ = null; - versionBuilder_ = null; - } - metadata_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedUserObject_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedUserObject getDefaultInstanceForType() { - return org.tensorflow.proto.framework.SavedUserObject.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedUserObject build() { - org.tensorflow.proto.framework.SavedUserObject result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedUserObject buildPartial() { - org.tensorflow.proto.framework.SavedUserObject result = new org.tensorflow.proto.framework.SavedUserObject(this); - result.identifier_ = identifier_; - if (versionBuilder_ == null) { - result.version_ = version_; - } else { - result.version_ = versionBuilder_.build(); - } - result.metadata_ = metadata_; - 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 org.tensorflow.proto.framework.SavedUserObject) { - return mergeFrom((org.tensorflow.proto.framework.SavedUserObject)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.SavedUserObject other) { - if (other == org.tensorflow.proto.framework.SavedUserObject.getDefaultInstance()) return this; - if (!other.getIdentifier().isEmpty()) { - identifier_ = other.identifier_; - onChanged(); - } - if (other.hasVersion()) { - mergeVersion(other.getVersion()); - } - if (!other.getMetadata().isEmpty()) { - metadata_ = other.metadata_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.SavedUserObject parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.SavedUserObject) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object identifier_ = ""; - /** - *
-     * Corresponds to a registration of the type to use in the loading program.
-     * 
- * - * string identifier = 1; - */ - public java.lang.String getIdentifier() { - java.lang.Object ref = identifier_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identifier_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Corresponds to a registration of the type to use in the loading program.
-     * 
- * - * string identifier = 1; - */ - public com.google.protobuf.ByteString - getIdentifierBytes() { - java.lang.Object ref = identifier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - identifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Corresponds to a registration of the type to use in the loading program.
-     * 
- * - * string identifier = 1; - */ - public Builder setIdentifier( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - identifier_ = value; - onChanged(); - return this; - } - /** - *
-     * Corresponds to a registration of the type to use in the loading program.
-     * 
- * - * string identifier = 1; - */ - public Builder clearIdentifier() { - - identifier_ = getDefaultInstance().getIdentifier(); - onChanged(); - return this; - } - /** - *
-     * Corresponds to a registration of the type to use in the loading program.
-     * 
- * - * string identifier = 1; - */ - public Builder setIdentifierBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - identifier_ = value; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.VersionDef version_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.VersionDef, org.tensorflow.proto.framework.VersionDef.Builder, org.tensorflow.proto.framework.VersionDefOrBuilder> versionBuilder_; - /** - *
-     * Version information from the producer of this SavedUserObject.
-     * 
- * - * .tensorflow.VersionDef version = 2; - */ - public boolean hasVersion() { - return versionBuilder_ != null || version_ != null; - } - /** - *
-     * Version information from the producer of this SavedUserObject.
-     * 
- * - * .tensorflow.VersionDef version = 2; - */ - public org.tensorflow.proto.framework.VersionDef getVersion() { - if (versionBuilder_ == null) { - return version_ == null ? org.tensorflow.proto.framework.VersionDef.getDefaultInstance() : version_; - } else { - return versionBuilder_.getMessage(); - } - } - /** - *
-     * Version information from the producer of this SavedUserObject.
-     * 
- * - * .tensorflow.VersionDef version = 2; - */ - public Builder setVersion(org.tensorflow.proto.framework.VersionDef value) { - if (versionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - version_ = value; - onChanged(); - } else { - versionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Version information from the producer of this SavedUserObject.
-     * 
- * - * .tensorflow.VersionDef version = 2; - */ - public Builder setVersion( - org.tensorflow.proto.framework.VersionDef.Builder builderForValue) { - if (versionBuilder_ == null) { - version_ = builderForValue.build(); - onChanged(); - } else { - versionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Version information from the producer of this SavedUserObject.
-     * 
- * - * .tensorflow.VersionDef version = 2; - */ - public Builder mergeVersion(org.tensorflow.proto.framework.VersionDef value) { - if (versionBuilder_ == null) { - if (version_ != null) { - version_ = - org.tensorflow.proto.framework.VersionDef.newBuilder(version_).mergeFrom(value).buildPartial(); - } else { - version_ = value; - } - onChanged(); - } else { - versionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Version information from the producer of this SavedUserObject.
-     * 
- * - * .tensorflow.VersionDef version = 2; - */ - public Builder clearVersion() { - if (versionBuilder_ == null) { - version_ = null; - onChanged(); - } else { - version_ = null; - versionBuilder_ = null; - } - - return this; - } - /** - *
-     * Version information from the producer of this SavedUserObject.
-     * 
- * - * .tensorflow.VersionDef version = 2; - */ - public org.tensorflow.proto.framework.VersionDef.Builder getVersionBuilder() { - - onChanged(); - return getVersionFieldBuilder().getBuilder(); - } - /** - *
-     * Version information from the producer of this SavedUserObject.
-     * 
- * - * .tensorflow.VersionDef version = 2; - */ - public org.tensorflow.proto.framework.VersionDefOrBuilder getVersionOrBuilder() { - if (versionBuilder_ != null) { - return versionBuilder_.getMessageOrBuilder(); - } else { - return version_ == null ? - org.tensorflow.proto.framework.VersionDef.getDefaultInstance() : version_; - } - } - /** - *
-     * Version information from the producer of this SavedUserObject.
-     * 
- * - * .tensorflow.VersionDef version = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.VersionDef, org.tensorflow.proto.framework.VersionDef.Builder, org.tensorflow.proto.framework.VersionDefOrBuilder> - getVersionFieldBuilder() { - if (versionBuilder_ == null) { - versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.VersionDef, org.tensorflow.proto.framework.VersionDef.Builder, org.tensorflow.proto.framework.VersionDefOrBuilder>( - getVersion(), - getParentForChildren(), - isClean()); - version_ = null; - } - return versionBuilder_; - } - - private java.lang.Object metadata_ = ""; - /** - *
-     * Metadata for deserializing this object.
-     * Deprecated! At the time of deprecation, Keras was the only user of this
-     * field, and its saving and loading code will be updated shortly.
-     * Please save your application-specific metadata to a separate file.
-     * 
- * - * string metadata = 3 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getMetadata() { - java.lang.Object ref = metadata_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metadata_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Metadata for deserializing this object.
-     * Deprecated! At the time of deprecation, Keras was the only user of this
-     * field, and its saving and loading code will be updated shortly.
-     * Please save your application-specific metadata to a separate file.
-     * 
- * - * string metadata = 3 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getMetadataBytes() { - java.lang.Object ref = metadata_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metadata_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Metadata for deserializing this object.
-     * Deprecated! At the time of deprecation, Keras was the only user of this
-     * field, and its saving and loading code will be updated shortly.
-     * Please save your application-specific metadata to a separate file.
-     * 
- * - * string metadata = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setMetadata( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - metadata_ = value; - onChanged(); - return this; - } - /** - *
-     * Metadata for deserializing this object.
-     * Deprecated! At the time of deprecation, Keras was the only user of this
-     * field, and its saving and loading code will be updated shortly.
-     * Please save your application-specific metadata to a separate file.
-     * 
- * - * string metadata = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearMetadata() { - - metadata_ = getDefaultInstance().getMetadata(); - onChanged(); - return this; - } - /** - *
-     * Metadata for deserializing this object.
-     * Deprecated! At the time of deprecation, Keras was the only user of this
-     * field, and its saving and loading code will be updated shortly.
-     * Please save your application-specific metadata to a separate file.
-     * 
- * - * string metadata = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setMetadataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - metadata_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.SavedUserObject) - } - - // @@protoc_insertion_point(class_scope:tensorflow.SavedUserObject) - private static final org.tensorflow.proto.framework.SavedUserObject DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.SavedUserObject(); - } - - public static org.tensorflow.proto.framework.SavedUserObject getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SavedUserObject parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SavedUserObject(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedUserObject getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedUserObjectOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedUserObjectOrBuilder.java deleted file mode 100644 index 71af4c08b68..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedUserObjectOrBuilder.java +++ /dev/null @@ -1,76 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -public interface SavedUserObjectOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.SavedUserObject) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Corresponds to a registration of the type to use in the loading program.
-   * 
- * - * string identifier = 1; - */ - java.lang.String getIdentifier(); - /** - *
-   * Corresponds to a registration of the type to use in the loading program.
-   * 
- * - * string identifier = 1; - */ - com.google.protobuf.ByteString - getIdentifierBytes(); - - /** - *
-   * Version information from the producer of this SavedUserObject.
-   * 
- * - * .tensorflow.VersionDef version = 2; - */ - boolean hasVersion(); - /** - *
-   * Version information from the producer of this SavedUserObject.
-   * 
- * - * .tensorflow.VersionDef version = 2; - */ - org.tensorflow.proto.framework.VersionDef getVersion(); - /** - *
-   * Version information from the producer of this SavedUserObject.
-   * 
- * - * .tensorflow.VersionDef version = 2; - */ - org.tensorflow.proto.framework.VersionDefOrBuilder getVersionOrBuilder(); - - /** - *
-   * Metadata for deserializing this object.
-   * Deprecated! At the time of deprecation, Keras was the only user of this
-   * field, and its saving and loading code will be updated shortly.
-   * Please save your application-specific metadata to a separate file.
-   * 
- * - * string metadata = 3 [deprecated = true]; - */ - @java.lang.Deprecated java.lang.String getMetadata(); - /** - *
-   * Metadata for deserializing this object.
-   * Deprecated! At the time of deprecation, Keras was the only user of this
-   * field, and its saving and loading code will be updated shortly.
-   * Please save your application-specific metadata to a separate file.
-   * 
- * - * string metadata = 3 [deprecated = true]; - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getMetadataBytes(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedVariable.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedVariable.java deleted file mode 100644 index d42893242d7..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedVariable.java +++ /dev/null @@ -1,1684 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Represents a Variable that is initialized by loading the contents from the
- * checkpoint.
- * 
- * - * Protobuf type {@code tensorflow.SavedVariable} - */ -public final class SavedVariable extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.SavedVariable) - SavedVariableOrBuilder { -private static final long serialVersionUID = 0L; - // Use SavedVariable.newBuilder() to construct. - private SavedVariable(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SavedVariable() { - dtype_ = 0; - synchronization_ = 0; - aggregation_ = 0; - name_ = ""; - device_ = ""; - experimentalDistributedVariableComponents_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SavedVariable(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SavedVariable( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - dtype_ = rawValue; - break; - } - case 18: { - org.tensorflow.proto.framework.TensorShapeProto.Builder subBuilder = null; - if (shape_ != null) { - subBuilder = shape_.toBuilder(); - } - shape_ = input.readMessage(org.tensorflow.proto.framework.TensorShapeProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(shape_); - shape_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - trainable_ = input.readBool(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - synchronization_ = rawValue; - break; - } - case 40: { - int rawValue = input.readEnum(); - - aggregation_ = rawValue; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - device_ = s; - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - experimentalDistributedVariableComponents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - experimentalDistributedVariableComponents_.add( - input.readMessage(org.tensorflow.proto.framework.SavedVariable.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)) { - experimentalDistributedVariableComponents_ = java.util.Collections.unmodifiableList(experimentalDistributedVariableComponents_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedVariable_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedVariable_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SavedVariable.class, org.tensorflow.proto.framework.SavedVariable.Builder.class); - } - - public static final int DTYPE_FIELD_NUMBER = 1; - private int dtype_; - /** - * .tensorflow.DataType dtype = 1; - */ - public int getDtypeValue() { - return dtype_; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public org.tensorflow.proto.framework.DataType getDtype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - - public static final int SHAPE_FIELD_NUMBER = 2; - private org.tensorflow.proto.framework.TensorShapeProto shape_; - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public boolean hasShape() { - return shape_ != null; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProto getShape() { - return shape_ == null ? org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { - return getShape(); - } - - public static final int TRAINABLE_FIELD_NUMBER = 3; - private boolean trainable_; - /** - * bool trainable = 3; - */ - public boolean getTrainable() { - return trainable_; - } - - public static final int SYNCHRONIZATION_FIELD_NUMBER = 4; - private int synchronization_; - /** - * .tensorflow.VariableSynchronization synchronization = 4; - */ - public int getSynchronizationValue() { - return synchronization_; - } - /** - * .tensorflow.VariableSynchronization synchronization = 4; - */ - public org.tensorflow.proto.framework.VariableSynchronization getSynchronization() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.VariableSynchronization result = org.tensorflow.proto.framework.VariableSynchronization.valueOf(synchronization_); - return result == null ? org.tensorflow.proto.framework.VariableSynchronization.UNRECOGNIZED : result; - } - - public static final int AGGREGATION_FIELD_NUMBER = 5; - private int aggregation_; - /** - * .tensorflow.VariableAggregation aggregation = 5; - */ - public int getAggregationValue() { - return aggregation_; - } - /** - * .tensorflow.VariableAggregation aggregation = 5; - */ - public org.tensorflow.proto.framework.VariableAggregation getAggregation() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.VariableAggregation result = org.tensorflow.proto.framework.VariableAggregation.valueOf(aggregation_); - return result == null ? org.tensorflow.proto.framework.VariableAggregation.UNRECOGNIZED : result; - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - * string name = 6; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - * string name = 6; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEVICE_FIELD_NUMBER = 7; - private volatile java.lang.Object device_; - /** - * string device = 7; - */ - public java.lang.String getDevice() { - java.lang.Object ref = device_; - 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(); - device_ = s; - return s; - } - } - /** - * string device = 7; - */ - public com.google.protobuf.ByteString - getDeviceBytes() { - java.lang.Object ref = device_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - device_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXPERIMENTAL_DISTRIBUTED_VARIABLE_COMPONENTS_FIELD_NUMBER = 8; - private java.util.List experimentalDistributedVariableComponents_; - /** - *
-   * List of component variables for a distributed variable.
-   * When this field is non-empty, the SavedVariable will be assumed
-   * to be a distributed variable defined by the components listed here.
-   * This is only supported by experimental loaders at the moment.
-   * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public java.util.List getExperimentalDistributedVariableComponentsList() { - return experimentalDistributedVariableComponents_; - } - /** - *
-   * List of component variables for a distributed variable.
-   * When this field is non-empty, the SavedVariable will be assumed
-   * to be a distributed variable defined by the components listed here.
-   * This is only supported by experimental loaders at the moment.
-   * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public java.util.List - getExperimentalDistributedVariableComponentsOrBuilderList() { - return experimentalDistributedVariableComponents_; - } - /** - *
-   * List of component variables for a distributed variable.
-   * When this field is non-empty, the SavedVariable will be assumed
-   * to be a distributed variable defined by the components listed here.
-   * This is only supported by experimental loaders at the moment.
-   * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public int getExperimentalDistributedVariableComponentsCount() { - return experimentalDistributedVariableComponents_.size(); - } - /** - *
-   * List of component variables for a distributed variable.
-   * When this field is non-empty, the SavedVariable will be assumed
-   * to be a distributed variable defined by the components listed here.
-   * This is only supported by experimental loaders at the moment.
-   * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public org.tensorflow.proto.framework.SavedVariable getExperimentalDistributedVariableComponents(int index) { - return experimentalDistributedVariableComponents_.get(index); - } - /** - *
-   * List of component variables for a distributed variable.
-   * When this field is non-empty, the SavedVariable will be assumed
-   * to be a distributed variable defined by the components listed here.
-   * This is only supported by experimental loaders at the moment.
-   * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public org.tensorflow.proto.framework.SavedVariableOrBuilder getExperimentalDistributedVariableComponentsOrBuilder( - int index) { - return experimentalDistributedVariableComponents_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - output.writeEnum(1, dtype_); - } - if (shape_ != null) { - output.writeMessage(2, getShape()); - } - if (trainable_ != false) { - output.writeBool(3, trainable_); - } - if (synchronization_ != org.tensorflow.proto.framework.VariableSynchronization.VARIABLE_SYNCHRONIZATION_AUTO.getNumber()) { - output.writeEnum(4, synchronization_); - } - if (aggregation_ != org.tensorflow.proto.framework.VariableAggregation.VARIABLE_AGGREGATION_NONE.getNumber()) { - output.writeEnum(5, aggregation_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - if (!getDeviceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, device_); - } - for (int i = 0; i < experimentalDistributedVariableComponents_.size(); i++) { - output.writeMessage(8, experimentalDistributedVariableComponents_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, dtype_); - } - if (shape_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getShape()); - } - if (trainable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, trainable_); - } - if (synchronization_ != org.tensorflow.proto.framework.VariableSynchronization.VARIABLE_SYNCHRONIZATION_AUTO.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, synchronization_); - } - if (aggregation_ != org.tensorflow.proto.framework.VariableAggregation.VARIABLE_AGGREGATION_NONE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, aggregation_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); - } - if (!getDeviceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, device_); - } - for (int i = 0; i < experimentalDistributedVariableComponents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, experimentalDistributedVariableComponents_.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 org.tensorflow.proto.framework.SavedVariable)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.SavedVariable other = (org.tensorflow.proto.framework.SavedVariable) obj; - - if (dtype_ != other.dtype_) return false; - if (hasShape() != other.hasShape()) return false; - if (hasShape()) { - if (!getShape() - .equals(other.getShape())) return false; - } - if (getTrainable() - != other.getTrainable()) return false; - if (synchronization_ != other.synchronization_) return false; - if (aggregation_ != other.aggregation_) return false; - if (!getName() - .equals(other.getName())) return false; - if (!getDevice() - .equals(other.getDevice())) return false; - if (!getExperimentalDistributedVariableComponentsList() - .equals(other.getExperimentalDistributedVariableComponentsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DTYPE_FIELD_NUMBER; - hash = (53 * hash) + dtype_; - if (hasShape()) { - hash = (37 * hash) + SHAPE_FIELD_NUMBER; - hash = (53 * hash) + getShape().hashCode(); - } - hash = (37 * hash) + TRAINABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getTrainable()); - hash = (37 * hash) + SYNCHRONIZATION_FIELD_NUMBER; - hash = (53 * hash) + synchronization_; - hash = (37 * hash) + AGGREGATION_FIELD_NUMBER; - hash = (53 * hash) + aggregation_; - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + DEVICE_FIELD_NUMBER; - hash = (53 * hash) + getDevice().hashCode(); - if (getExperimentalDistributedVariableComponentsCount() > 0) { - hash = (37 * hash) + EXPERIMENTAL_DISTRIBUTED_VARIABLE_COMPONENTS_FIELD_NUMBER; - hash = (53 * hash) + getExperimentalDistributedVariableComponentsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.SavedVariable parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedVariable parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedVariable parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedVariable parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedVariable parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SavedVariable parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SavedVariable parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedVariable 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 org.tensorflow.proto.framework.SavedVariable parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedVariable 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 org.tensorflow.proto.framework.SavedVariable parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SavedVariable 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(org.tensorflow.proto.framework.SavedVariable 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; - } - /** - *
-   * Represents a Variable that is initialized by loading the contents from the
-   * checkpoint.
-   * 
- * - * Protobuf type {@code tensorflow.SavedVariable} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.SavedVariable) - org.tensorflow.proto.framework.SavedVariableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedVariable_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedVariable_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SavedVariable.class, org.tensorflow.proto.framework.SavedVariable.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.SavedVariable.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getExperimentalDistributedVariableComponentsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - dtype_ = 0; - - if (shapeBuilder_ == null) { - shape_ = null; - } else { - shape_ = null; - shapeBuilder_ = null; - } - trainable_ = false; - - synchronization_ = 0; - - aggregation_ = 0; - - name_ = ""; - - device_ = ""; - - if (experimentalDistributedVariableComponentsBuilder_ == null) { - experimentalDistributedVariableComponents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - experimentalDistributedVariableComponentsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.SavedObjectGraphProtos.internal_static_tensorflow_SavedVariable_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedVariable getDefaultInstanceForType() { - return org.tensorflow.proto.framework.SavedVariable.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedVariable build() { - org.tensorflow.proto.framework.SavedVariable result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedVariable buildPartial() { - org.tensorflow.proto.framework.SavedVariable result = new org.tensorflow.proto.framework.SavedVariable(this); - int from_bitField0_ = bitField0_; - result.dtype_ = dtype_; - if (shapeBuilder_ == null) { - result.shape_ = shape_; - } else { - result.shape_ = shapeBuilder_.build(); - } - result.trainable_ = trainable_; - result.synchronization_ = synchronization_; - result.aggregation_ = aggregation_; - result.name_ = name_; - result.device_ = device_; - if (experimentalDistributedVariableComponentsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - experimentalDistributedVariableComponents_ = java.util.Collections.unmodifiableList(experimentalDistributedVariableComponents_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.experimentalDistributedVariableComponents_ = experimentalDistributedVariableComponents_; - } else { - result.experimentalDistributedVariableComponents_ = experimentalDistributedVariableComponentsBuilder_.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 org.tensorflow.proto.framework.SavedVariable) { - return mergeFrom((org.tensorflow.proto.framework.SavedVariable)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.SavedVariable other) { - if (other == org.tensorflow.proto.framework.SavedVariable.getDefaultInstance()) return this; - if (other.dtype_ != 0) { - setDtypeValue(other.getDtypeValue()); - } - if (other.hasShape()) { - mergeShape(other.getShape()); - } - if (other.getTrainable() != false) { - setTrainable(other.getTrainable()); - } - if (other.synchronization_ != 0) { - setSynchronizationValue(other.getSynchronizationValue()); - } - if (other.aggregation_ != 0) { - setAggregationValue(other.getAggregationValue()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getDevice().isEmpty()) { - device_ = other.device_; - onChanged(); - } - if (experimentalDistributedVariableComponentsBuilder_ == null) { - if (!other.experimentalDistributedVariableComponents_.isEmpty()) { - if (experimentalDistributedVariableComponents_.isEmpty()) { - experimentalDistributedVariableComponents_ = other.experimentalDistributedVariableComponents_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureExperimentalDistributedVariableComponentsIsMutable(); - experimentalDistributedVariableComponents_.addAll(other.experimentalDistributedVariableComponents_); - } - onChanged(); - } - } else { - if (!other.experimentalDistributedVariableComponents_.isEmpty()) { - if (experimentalDistributedVariableComponentsBuilder_.isEmpty()) { - experimentalDistributedVariableComponentsBuilder_.dispose(); - experimentalDistributedVariableComponentsBuilder_ = null; - experimentalDistributedVariableComponents_ = other.experimentalDistributedVariableComponents_; - bitField0_ = (bitField0_ & ~0x00000001); - experimentalDistributedVariableComponentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExperimentalDistributedVariableComponentsFieldBuilder() : null; - } else { - experimentalDistributedVariableComponentsBuilder_.addAllMessages(other.experimentalDistributedVariableComponents_); - } - } - } - 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 { - org.tensorflow.proto.framework.SavedVariable parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.SavedVariable) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int dtype_ = 0; - /** - * .tensorflow.DataType dtype = 1; - */ - public int getDtypeValue() { - return dtype_; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public Builder setDtypeValue(int value) { - dtype_ = value; - onChanged(); - return this; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public org.tensorflow.proto.framework.DataType getDtype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public Builder setDtype(org.tensorflow.proto.framework.DataType value) { - if (value == null) { - throw new NullPointerException(); - } - - dtype_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tensorflow.DataType dtype = 1; - */ - public Builder clearDtype() { - - dtype_ = 0; - onChanged(); - return this; - } - - private org.tensorflow.proto.framework.TensorShapeProto shape_; - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> shapeBuilder_; - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public boolean hasShape() { - return shapeBuilder_ != null || shape_ != null; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProto getShape() { - if (shapeBuilder_ == null) { - return shape_ == null ? org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; - } else { - return shapeBuilder_.getMessage(); - } - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder setShape(org.tensorflow.proto.framework.TensorShapeProto value) { - if (shapeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - shape_ = value; - onChanged(); - } else { - shapeBuilder_.setMessage(value); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder setShape( - org.tensorflow.proto.framework.TensorShapeProto.Builder builderForValue) { - if (shapeBuilder_ == null) { - shape_ = builderForValue.build(); - onChanged(); - } else { - shapeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder mergeShape(org.tensorflow.proto.framework.TensorShapeProto value) { - if (shapeBuilder_ == null) { - if (shape_ != null) { - shape_ = - org.tensorflow.proto.framework.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial(); - } else { - shape_ = value; - } - onChanged(); - } else { - shapeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public Builder clearShape() { - if (shapeBuilder_ == null) { - shape_ = null; - onChanged(); - } else { - shape_ = null; - shapeBuilder_ = null; - } - - return this; - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProto.Builder getShapeBuilder() { - - onChanged(); - return getShapeFieldBuilder().getBuilder(); - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { - if (shapeBuilder_ != null) { - return shapeBuilder_.getMessageOrBuilder(); - } else { - return shape_ == null ? - org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; - } - } - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> - getShapeFieldBuilder() { - if (shapeBuilder_ == null) { - shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder>( - getShape(), - getParentForChildren(), - isClean()); - shape_ = null; - } - return shapeBuilder_; - } - - private boolean trainable_ ; - /** - * bool trainable = 3; - */ - public boolean getTrainable() { - return trainable_; - } - /** - * bool trainable = 3; - */ - public Builder setTrainable(boolean value) { - - trainable_ = value; - onChanged(); - return this; - } - /** - * bool trainable = 3; - */ - public Builder clearTrainable() { - - trainable_ = false; - onChanged(); - return this; - } - - private int synchronization_ = 0; - /** - * .tensorflow.VariableSynchronization synchronization = 4; - */ - public int getSynchronizationValue() { - return synchronization_; - } - /** - * .tensorflow.VariableSynchronization synchronization = 4; - */ - public Builder setSynchronizationValue(int value) { - synchronization_ = value; - onChanged(); - return this; - } - /** - * .tensorflow.VariableSynchronization synchronization = 4; - */ - public org.tensorflow.proto.framework.VariableSynchronization getSynchronization() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.VariableSynchronization result = org.tensorflow.proto.framework.VariableSynchronization.valueOf(synchronization_); - return result == null ? org.tensorflow.proto.framework.VariableSynchronization.UNRECOGNIZED : result; - } - /** - * .tensorflow.VariableSynchronization synchronization = 4; - */ - public Builder setSynchronization(org.tensorflow.proto.framework.VariableSynchronization value) { - if (value == null) { - throw new NullPointerException(); - } - - synchronization_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tensorflow.VariableSynchronization synchronization = 4; - */ - public Builder clearSynchronization() { - - synchronization_ = 0; - onChanged(); - return this; - } - - private int aggregation_ = 0; - /** - * .tensorflow.VariableAggregation aggregation = 5; - */ - public int getAggregationValue() { - return aggregation_; - } - /** - * .tensorflow.VariableAggregation aggregation = 5; - */ - public Builder setAggregationValue(int value) { - aggregation_ = value; - onChanged(); - return this; - } - /** - * .tensorflow.VariableAggregation aggregation = 5; - */ - public org.tensorflow.proto.framework.VariableAggregation getAggregation() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.VariableAggregation result = org.tensorflow.proto.framework.VariableAggregation.valueOf(aggregation_); - return result == null ? org.tensorflow.proto.framework.VariableAggregation.UNRECOGNIZED : result; - } - /** - * .tensorflow.VariableAggregation aggregation = 5; - */ - public Builder setAggregation(org.tensorflow.proto.framework.VariableAggregation value) { - if (value == null) { - throw new NullPointerException(); - } - - aggregation_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tensorflow.VariableAggregation aggregation = 5; - */ - public Builder clearAggregation() { - - aggregation_ = 0; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 6; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 6; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 6; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 6; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 6; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object device_ = ""; - /** - * string device = 7; - */ - public java.lang.String getDevice() { - java.lang.Object ref = device_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - device_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string device = 7; - */ - public com.google.protobuf.ByteString - getDeviceBytes() { - java.lang.Object ref = device_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - device_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string device = 7; - */ - public Builder setDevice( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - device_ = value; - onChanged(); - return this; - } - /** - * string device = 7; - */ - public Builder clearDevice() { - - device_ = getDefaultInstance().getDevice(); - onChanged(); - return this; - } - /** - * string device = 7; - */ - public Builder setDeviceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - device_ = value; - onChanged(); - return this; - } - - private java.util.List experimentalDistributedVariableComponents_ = - java.util.Collections.emptyList(); - private void ensureExperimentalDistributedVariableComponentsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - experimentalDistributedVariableComponents_ = new java.util.ArrayList(experimentalDistributedVariableComponents_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.SavedVariable, org.tensorflow.proto.framework.SavedVariable.Builder, org.tensorflow.proto.framework.SavedVariableOrBuilder> experimentalDistributedVariableComponentsBuilder_; - - /** - *
-     * List of component variables for a distributed variable.
-     * When this field is non-empty, the SavedVariable will be assumed
-     * to be a distributed variable defined by the components listed here.
-     * This is only supported by experimental loaders at the moment.
-     * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public java.util.List getExperimentalDistributedVariableComponentsList() { - if (experimentalDistributedVariableComponentsBuilder_ == null) { - return java.util.Collections.unmodifiableList(experimentalDistributedVariableComponents_); - } else { - return experimentalDistributedVariableComponentsBuilder_.getMessageList(); - } - } - /** - *
-     * List of component variables for a distributed variable.
-     * When this field is non-empty, the SavedVariable will be assumed
-     * to be a distributed variable defined by the components listed here.
-     * This is only supported by experimental loaders at the moment.
-     * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public int getExperimentalDistributedVariableComponentsCount() { - if (experimentalDistributedVariableComponentsBuilder_ == null) { - return experimentalDistributedVariableComponents_.size(); - } else { - return experimentalDistributedVariableComponentsBuilder_.getCount(); - } - } - /** - *
-     * List of component variables for a distributed variable.
-     * When this field is non-empty, the SavedVariable will be assumed
-     * to be a distributed variable defined by the components listed here.
-     * This is only supported by experimental loaders at the moment.
-     * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public org.tensorflow.proto.framework.SavedVariable getExperimentalDistributedVariableComponents(int index) { - if (experimentalDistributedVariableComponentsBuilder_ == null) { - return experimentalDistributedVariableComponents_.get(index); - } else { - return experimentalDistributedVariableComponentsBuilder_.getMessage(index); - } - } - /** - *
-     * List of component variables for a distributed variable.
-     * When this field is non-empty, the SavedVariable will be assumed
-     * to be a distributed variable defined by the components listed here.
-     * This is only supported by experimental loaders at the moment.
-     * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public Builder setExperimentalDistributedVariableComponents( - int index, org.tensorflow.proto.framework.SavedVariable value) { - if (experimentalDistributedVariableComponentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExperimentalDistributedVariableComponentsIsMutable(); - experimentalDistributedVariableComponents_.set(index, value); - onChanged(); - } else { - experimentalDistributedVariableComponentsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of component variables for a distributed variable.
-     * When this field is non-empty, the SavedVariable will be assumed
-     * to be a distributed variable defined by the components listed here.
-     * This is only supported by experimental loaders at the moment.
-     * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public Builder setExperimentalDistributedVariableComponents( - int index, org.tensorflow.proto.framework.SavedVariable.Builder builderForValue) { - if (experimentalDistributedVariableComponentsBuilder_ == null) { - ensureExperimentalDistributedVariableComponentsIsMutable(); - experimentalDistributedVariableComponents_.set(index, builderForValue.build()); - onChanged(); - } else { - experimentalDistributedVariableComponentsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of component variables for a distributed variable.
-     * When this field is non-empty, the SavedVariable will be assumed
-     * to be a distributed variable defined by the components listed here.
-     * This is only supported by experimental loaders at the moment.
-     * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public Builder addExperimentalDistributedVariableComponents(org.tensorflow.proto.framework.SavedVariable value) { - if (experimentalDistributedVariableComponentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExperimentalDistributedVariableComponentsIsMutable(); - experimentalDistributedVariableComponents_.add(value); - onChanged(); - } else { - experimentalDistributedVariableComponentsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of component variables for a distributed variable.
-     * When this field is non-empty, the SavedVariable will be assumed
-     * to be a distributed variable defined by the components listed here.
-     * This is only supported by experimental loaders at the moment.
-     * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public Builder addExperimentalDistributedVariableComponents( - int index, org.tensorflow.proto.framework.SavedVariable value) { - if (experimentalDistributedVariableComponentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExperimentalDistributedVariableComponentsIsMutable(); - experimentalDistributedVariableComponents_.add(index, value); - onChanged(); - } else { - experimentalDistributedVariableComponentsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of component variables for a distributed variable.
-     * When this field is non-empty, the SavedVariable will be assumed
-     * to be a distributed variable defined by the components listed here.
-     * This is only supported by experimental loaders at the moment.
-     * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public Builder addExperimentalDistributedVariableComponents( - org.tensorflow.proto.framework.SavedVariable.Builder builderForValue) { - if (experimentalDistributedVariableComponentsBuilder_ == null) { - ensureExperimentalDistributedVariableComponentsIsMutable(); - experimentalDistributedVariableComponents_.add(builderForValue.build()); - onChanged(); - } else { - experimentalDistributedVariableComponentsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of component variables for a distributed variable.
-     * When this field is non-empty, the SavedVariable will be assumed
-     * to be a distributed variable defined by the components listed here.
-     * This is only supported by experimental loaders at the moment.
-     * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public Builder addExperimentalDistributedVariableComponents( - int index, org.tensorflow.proto.framework.SavedVariable.Builder builderForValue) { - if (experimentalDistributedVariableComponentsBuilder_ == null) { - ensureExperimentalDistributedVariableComponentsIsMutable(); - experimentalDistributedVariableComponents_.add(index, builderForValue.build()); - onChanged(); - } else { - experimentalDistributedVariableComponentsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of component variables for a distributed variable.
-     * When this field is non-empty, the SavedVariable will be assumed
-     * to be a distributed variable defined by the components listed here.
-     * This is only supported by experimental loaders at the moment.
-     * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public Builder addAllExperimentalDistributedVariableComponents( - java.lang.Iterable values) { - if (experimentalDistributedVariableComponentsBuilder_ == null) { - ensureExperimentalDistributedVariableComponentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, experimentalDistributedVariableComponents_); - onChanged(); - } else { - experimentalDistributedVariableComponentsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of component variables for a distributed variable.
-     * When this field is non-empty, the SavedVariable will be assumed
-     * to be a distributed variable defined by the components listed here.
-     * This is only supported by experimental loaders at the moment.
-     * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public Builder clearExperimentalDistributedVariableComponents() { - if (experimentalDistributedVariableComponentsBuilder_ == null) { - experimentalDistributedVariableComponents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - experimentalDistributedVariableComponentsBuilder_.clear(); - } - return this; - } - /** - *
-     * List of component variables for a distributed variable.
-     * When this field is non-empty, the SavedVariable will be assumed
-     * to be a distributed variable defined by the components listed here.
-     * This is only supported by experimental loaders at the moment.
-     * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public Builder removeExperimentalDistributedVariableComponents(int index) { - if (experimentalDistributedVariableComponentsBuilder_ == null) { - ensureExperimentalDistributedVariableComponentsIsMutable(); - experimentalDistributedVariableComponents_.remove(index); - onChanged(); - } else { - experimentalDistributedVariableComponentsBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of component variables for a distributed variable.
-     * When this field is non-empty, the SavedVariable will be assumed
-     * to be a distributed variable defined by the components listed here.
-     * This is only supported by experimental loaders at the moment.
-     * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public org.tensorflow.proto.framework.SavedVariable.Builder getExperimentalDistributedVariableComponentsBuilder( - int index) { - return getExperimentalDistributedVariableComponentsFieldBuilder().getBuilder(index); - } - /** - *
-     * List of component variables for a distributed variable.
-     * When this field is non-empty, the SavedVariable will be assumed
-     * to be a distributed variable defined by the components listed here.
-     * This is only supported by experimental loaders at the moment.
-     * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public org.tensorflow.proto.framework.SavedVariableOrBuilder getExperimentalDistributedVariableComponentsOrBuilder( - int index) { - if (experimentalDistributedVariableComponentsBuilder_ == null) { - return experimentalDistributedVariableComponents_.get(index); } else { - return experimentalDistributedVariableComponentsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of component variables for a distributed variable.
-     * When this field is non-empty, the SavedVariable will be assumed
-     * to be a distributed variable defined by the components listed here.
-     * This is only supported by experimental loaders at the moment.
-     * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public java.util.List - getExperimentalDistributedVariableComponentsOrBuilderList() { - if (experimentalDistributedVariableComponentsBuilder_ != null) { - return experimentalDistributedVariableComponentsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(experimentalDistributedVariableComponents_); - } - } - /** - *
-     * List of component variables for a distributed variable.
-     * When this field is non-empty, the SavedVariable will be assumed
-     * to be a distributed variable defined by the components listed here.
-     * This is only supported by experimental loaders at the moment.
-     * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public org.tensorflow.proto.framework.SavedVariable.Builder addExperimentalDistributedVariableComponentsBuilder() { - return getExperimentalDistributedVariableComponentsFieldBuilder().addBuilder( - org.tensorflow.proto.framework.SavedVariable.getDefaultInstance()); - } - /** - *
-     * List of component variables for a distributed variable.
-     * When this field is non-empty, the SavedVariable will be assumed
-     * to be a distributed variable defined by the components listed here.
-     * This is only supported by experimental loaders at the moment.
-     * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public org.tensorflow.proto.framework.SavedVariable.Builder addExperimentalDistributedVariableComponentsBuilder( - int index) { - return getExperimentalDistributedVariableComponentsFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.SavedVariable.getDefaultInstance()); - } - /** - *
-     * List of component variables for a distributed variable.
-     * When this field is non-empty, the SavedVariable will be assumed
-     * to be a distributed variable defined by the components listed here.
-     * This is only supported by experimental loaders at the moment.
-     * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - public java.util.List - getExperimentalDistributedVariableComponentsBuilderList() { - return getExperimentalDistributedVariableComponentsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.SavedVariable, org.tensorflow.proto.framework.SavedVariable.Builder, org.tensorflow.proto.framework.SavedVariableOrBuilder> - getExperimentalDistributedVariableComponentsFieldBuilder() { - if (experimentalDistributedVariableComponentsBuilder_ == null) { - experimentalDistributedVariableComponentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.SavedVariable, org.tensorflow.proto.framework.SavedVariable.Builder, org.tensorflow.proto.framework.SavedVariableOrBuilder>( - experimentalDistributedVariableComponents_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - experimentalDistributedVariableComponents_ = null; - } - return experimentalDistributedVariableComponentsBuilder_; - } - @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:tensorflow.SavedVariable) - } - - // @@protoc_insertion_point(class_scope:tensorflow.SavedVariable) - private static final org.tensorflow.proto.framework.SavedVariable DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.SavedVariable(); - } - - public static org.tensorflow.proto.framework.SavedVariable getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SavedVariable parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SavedVariable(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SavedVariable getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedVariableOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedVariableOrBuilder.java deleted file mode 100644 index b16be7224e4..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedVariableOrBuilder.java +++ /dev/null @@ -1,133 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/saved_object_graph.proto - -package org.tensorflow.proto.framework; - -public interface SavedVariableOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.SavedVariable) - com.google.protobuf.MessageOrBuilder { - - /** - * .tensorflow.DataType dtype = 1; - */ - int getDtypeValue(); - /** - * .tensorflow.DataType dtype = 1; - */ - org.tensorflow.proto.framework.DataType getDtype(); - - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - boolean hasShape(); - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - org.tensorflow.proto.framework.TensorShapeProto getShape(); - /** - * .tensorflow.TensorShapeProto shape = 2; - */ - org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder(); - - /** - * bool trainable = 3; - */ - boolean getTrainable(); - - /** - * .tensorflow.VariableSynchronization synchronization = 4; - */ - int getSynchronizationValue(); - /** - * .tensorflow.VariableSynchronization synchronization = 4; - */ - org.tensorflow.proto.framework.VariableSynchronization getSynchronization(); - - /** - * .tensorflow.VariableAggregation aggregation = 5; - */ - int getAggregationValue(); - /** - * .tensorflow.VariableAggregation aggregation = 5; - */ - org.tensorflow.proto.framework.VariableAggregation getAggregation(); - - /** - * string name = 6; - */ - java.lang.String getName(); - /** - * string name = 6; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * string device = 7; - */ - java.lang.String getDevice(); - /** - * string device = 7; - */ - com.google.protobuf.ByteString - getDeviceBytes(); - - /** - *
-   * List of component variables for a distributed variable.
-   * When this field is non-empty, the SavedVariable will be assumed
-   * to be a distributed variable defined by the components listed here.
-   * This is only supported by experimental loaders at the moment.
-   * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - java.util.List - getExperimentalDistributedVariableComponentsList(); - /** - *
-   * List of component variables for a distributed variable.
-   * When this field is non-empty, the SavedVariable will be assumed
-   * to be a distributed variable defined by the components listed here.
-   * This is only supported by experimental loaders at the moment.
-   * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - org.tensorflow.proto.framework.SavedVariable getExperimentalDistributedVariableComponents(int index); - /** - *
-   * List of component variables for a distributed variable.
-   * When this field is non-empty, the SavedVariable will be assumed
-   * to be a distributed variable defined by the components listed here.
-   * This is only supported by experimental loaders at the moment.
-   * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - int getExperimentalDistributedVariableComponentsCount(); - /** - *
-   * List of component variables for a distributed variable.
-   * When this field is non-empty, the SavedVariable will be assumed
-   * to be a distributed variable defined by the components listed here.
-   * This is only supported by experimental loaders at the moment.
-   * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - java.util.List - getExperimentalDistributedVariableComponentsOrBuilderList(); - /** - *
-   * List of component variables for a distributed variable.
-   * When this field is non-empty, the SavedVariable will be assumed
-   * to be a distributed variable defined by the components listed here.
-   * This is only supported by experimental loaders at the moment.
-   * 
- * - * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; - */ - org.tensorflow.proto.framework.SavedVariableOrBuilder getExperimentalDistributedVariableComponentsOrBuilder( - int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ScopedAllocatorOptions.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ScopedAllocatorOptions.java deleted file mode 100644 index 37bf6f9c4d1..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ScopedAllocatorOptions.java +++ /dev/null @@ -1,644 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/rewriter_config.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.ScopedAllocatorOptions} - */ -public final class ScopedAllocatorOptions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.ScopedAllocatorOptions) - ScopedAllocatorOptionsOrBuilder { -private static final long serialVersionUID = 0L; - // Use ScopedAllocatorOptions.newBuilder() to construct. - private ScopedAllocatorOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ScopedAllocatorOptions() { - enableOp_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ScopedAllocatorOptions(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ScopedAllocatorOptions( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - enableOp_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - enableOp_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - enableOp_ = enableOp_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.RewriterConfigProtos.internal_static_tensorflow_ScopedAllocatorOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.RewriterConfigProtos.internal_static_tensorflow_ScopedAllocatorOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ScopedAllocatorOptions.class, org.tensorflow.proto.framework.ScopedAllocatorOptions.Builder.class); - } - - public static final int ENABLE_OP_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList enableOp_; - /** - *
-   * If present, only perform optimization for these ops.
-   * 
- * - * repeated string enable_op = 1; - */ - public com.google.protobuf.ProtocolStringList - getEnableOpList() { - return enableOp_; - } - /** - *
-   * If present, only perform optimization for these ops.
-   * 
- * - * repeated string enable_op = 1; - */ - public int getEnableOpCount() { - return enableOp_.size(); - } - /** - *
-   * If present, only perform optimization for these ops.
-   * 
- * - * repeated string enable_op = 1; - */ - public java.lang.String getEnableOp(int index) { - return enableOp_.get(index); - } - /** - *
-   * If present, only perform optimization for these ops.
-   * 
- * - * repeated string enable_op = 1; - */ - public com.google.protobuf.ByteString - getEnableOpBytes(int index) { - return enableOp_.getByteString(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 < enableOp_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, enableOp_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < enableOp_.size(); i++) { - dataSize += computeStringSizeNoTag(enableOp_.getRaw(i)); - } - size += dataSize; - size += 1 * getEnableOpList().size(); - } - 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 org.tensorflow.proto.framework.ScopedAllocatorOptions)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.ScopedAllocatorOptions other = (org.tensorflow.proto.framework.ScopedAllocatorOptions) obj; - - if (!getEnableOpList() - .equals(other.getEnableOpList())) 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 (getEnableOpCount() > 0) { - hash = (37 * hash) + ENABLE_OP_FIELD_NUMBER; - hash = (53 * hash) + getEnableOpList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.ScopedAllocatorOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ScopedAllocatorOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ScopedAllocatorOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ScopedAllocatorOptions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ScopedAllocatorOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.ScopedAllocatorOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.ScopedAllocatorOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ScopedAllocatorOptions 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 org.tensorflow.proto.framework.ScopedAllocatorOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ScopedAllocatorOptions 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 org.tensorflow.proto.framework.ScopedAllocatorOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.ScopedAllocatorOptions 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(org.tensorflow.proto.framework.ScopedAllocatorOptions prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.ScopedAllocatorOptions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.ScopedAllocatorOptions) - org.tensorflow.proto.framework.ScopedAllocatorOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.RewriterConfigProtos.internal_static_tensorflow_ScopedAllocatorOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.RewriterConfigProtos.internal_static_tensorflow_ScopedAllocatorOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ScopedAllocatorOptions.class, org.tensorflow.proto.framework.ScopedAllocatorOptions.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.ScopedAllocatorOptions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - enableOp_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.RewriterConfigProtos.internal_static_tensorflow_ScopedAllocatorOptions_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ScopedAllocatorOptions getDefaultInstanceForType() { - return org.tensorflow.proto.framework.ScopedAllocatorOptions.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.ScopedAllocatorOptions build() { - org.tensorflow.proto.framework.ScopedAllocatorOptions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ScopedAllocatorOptions buildPartial() { - org.tensorflow.proto.framework.ScopedAllocatorOptions result = new org.tensorflow.proto.framework.ScopedAllocatorOptions(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - enableOp_ = enableOp_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.enableOp_ = enableOp_; - 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 org.tensorflow.proto.framework.ScopedAllocatorOptions) { - return mergeFrom((org.tensorflow.proto.framework.ScopedAllocatorOptions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.ScopedAllocatorOptions other) { - if (other == org.tensorflow.proto.framework.ScopedAllocatorOptions.getDefaultInstance()) return this; - if (!other.enableOp_.isEmpty()) { - if (enableOp_.isEmpty()) { - enableOp_ = other.enableOp_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEnableOpIsMutable(); - enableOp_.addAll(other.enableOp_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.ScopedAllocatorOptions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.ScopedAllocatorOptions) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList enableOp_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureEnableOpIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - enableOp_ = new com.google.protobuf.LazyStringArrayList(enableOp_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * If present, only perform optimization for these ops.
-     * 
- * - * repeated string enable_op = 1; - */ - public com.google.protobuf.ProtocolStringList - getEnableOpList() { - return enableOp_.getUnmodifiableView(); - } - /** - *
-     * If present, only perform optimization for these ops.
-     * 
- * - * repeated string enable_op = 1; - */ - public int getEnableOpCount() { - return enableOp_.size(); - } - /** - *
-     * If present, only perform optimization for these ops.
-     * 
- * - * repeated string enable_op = 1; - */ - public java.lang.String getEnableOp(int index) { - return enableOp_.get(index); - } - /** - *
-     * If present, only perform optimization for these ops.
-     * 
- * - * repeated string enable_op = 1; - */ - public com.google.protobuf.ByteString - getEnableOpBytes(int index) { - return enableOp_.getByteString(index); - } - /** - *
-     * If present, only perform optimization for these ops.
-     * 
- * - * repeated string enable_op = 1; - */ - public Builder setEnableOp( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnableOpIsMutable(); - enableOp_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * If present, only perform optimization for these ops.
-     * 
- * - * repeated string enable_op = 1; - */ - public Builder addEnableOp( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnableOpIsMutable(); - enableOp_.add(value); - onChanged(); - return this; - } - /** - *
-     * If present, only perform optimization for these ops.
-     * 
- * - * repeated string enable_op = 1; - */ - public Builder addAllEnableOp( - java.lang.Iterable values) { - ensureEnableOpIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, enableOp_); - onChanged(); - return this; - } - /** - *
-     * If present, only perform optimization for these ops.
-     * 
- * - * repeated string enable_op = 1; - */ - public Builder clearEnableOp() { - enableOp_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * If present, only perform optimization for these ops.
-     * 
- * - * repeated string enable_op = 1; - */ - public Builder addEnableOpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureEnableOpIsMutable(); - enableOp_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.ScopedAllocatorOptions) - } - - // @@protoc_insertion_point(class_scope:tensorflow.ScopedAllocatorOptions) - private static final org.tensorflow.proto.framework.ScopedAllocatorOptions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.ScopedAllocatorOptions(); - } - - public static org.tensorflow.proto.framework.ScopedAllocatorOptions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScopedAllocatorOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScopedAllocatorOptions(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.ScopedAllocatorOptions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SerializedDType.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SerializedDType.java deleted file mode 100644 index 5d4d9c2ae24..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SerializedDType.java +++ /dev/null @@ -1,512 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/types.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Represents a serialized tf.dtypes.Dtype
- * 
- * - * Protobuf type {@code tensorflow.SerializedDType} - */ -public final class SerializedDType extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.SerializedDType) - SerializedDTypeOrBuilder { -private static final long serialVersionUID = 0L; - // Use SerializedDType.newBuilder() to construct. - private SerializedDType(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SerializedDType() { - datatype_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SerializedDType(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SerializedDType( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - datatype_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.TypesProtos.internal_static_tensorflow_SerializedDType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.TypesProtos.internal_static_tensorflow_SerializedDType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SerializedDType.class, org.tensorflow.proto.framework.SerializedDType.Builder.class); - } - - public static final int DATATYPE_FIELD_NUMBER = 1; - private int datatype_; - /** - * .tensorflow.DataType datatype = 1; - */ - public int getDatatypeValue() { - return datatype_; - } - /** - * .tensorflow.DataType datatype = 1; - */ - public org.tensorflow.proto.framework.DataType getDatatype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(datatype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - - 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 (datatype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - output.writeEnum(1, datatype_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (datatype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, datatype_); - } - 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 org.tensorflow.proto.framework.SerializedDType)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.SerializedDType other = (org.tensorflow.proto.framework.SerializedDType) obj; - - if (datatype_ != other.datatype_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATATYPE_FIELD_NUMBER; - hash = (53 * hash) + datatype_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.SerializedDType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SerializedDType parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SerializedDType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SerializedDType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SerializedDType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SerializedDType parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SerializedDType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SerializedDType 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 org.tensorflow.proto.framework.SerializedDType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SerializedDType 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 org.tensorflow.proto.framework.SerializedDType parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SerializedDType 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(org.tensorflow.proto.framework.SerializedDType 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; - } - /** - *
-   * Represents a serialized tf.dtypes.Dtype
-   * 
- * - * Protobuf type {@code tensorflow.SerializedDType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.SerializedDType) - org.tensorflow.proto.framework.SerializedDTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.TypesProtos.internal_static_tensorflow_SerializedDType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.TypesProtos.internal_static_tensorflow_SerializedDType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SerializedDType.class, org.tensorflow.proto.framework.SerializedDType.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.SerializedDType.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - datatype_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.TypesProtos.internal_static_tensorflow_SerializedDType_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SerializedDType getDefaultInstanceForType() { - return org.tensorflow.proto.framework.SerializedDType.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.SerializedDType build() { - org.tensorflow.proto.framework.SerializedDType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SerializedDType buildPartial() { - org.tensorflow.proto.framework.SerializedDType result = new org.tensorflow.proto.framework.SerializedDType(this); - result.datatype_ = datatype_; - 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 org.tensorflow.proto.framework.SerializedDType) { - return mergeFrom((org.tensorflow.proto.framework.SerializedDType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.SerializedDType other) { - if (other == org.tensorflow.proto.framework.SerializedDType.getDefaultInstance()) return this; - if (other.datatype_ != 0) { - setDatatypeValue(other.getDatatypeValue()); - } - 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 { - org.tensorflow.proto.framework.SerializedDType parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.SerializedDType) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int datatype_ = 0; - /** - * .tensorflow.DataType datatype = 1; - */ - public int getDatatypeValue() { - return datatype_; - } - /** - * .tensorflow.DataType datatype = 1; - */ - public Builder setDatatypeValue(int value) { - datatype_ = value; - onChanged(); - return this; - } - /** - * .tensorflow.DataType datatype = 1; - */ - public org.tensorflow.proto.framework.DataType getDatatype() { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(datatype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - /** - * .tensorflow.DataType datatype = 1; - */ - public Builder setDatatype(org.tensorflow.proto.framework.DataType value) { - if (value == null) { - throw new NullPointerException(); - } - - datatype_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .tensorflow.DataType datatype = 1; - */ - public Builder clearDatatype() { - - datatype_ = 0; - 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:tensorflow.SerializedDType) - } - - // @@protoc_insertion_point(class_scope:tensorflow.SerializedDType) - private static final org.tensorflow.proto.framework.SerializedDType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.SerializedDType(); - } - - public static org.tensorflow.proto.framework.SerializedDType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SerializedDType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SerializedDType(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SerializedDType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SerializedDTypeOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SerializedDTypeOrBuilder.java deleted file mode 100644 index f11506f0f83..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SerializedDTypeOrBuilder.java +++ /dev/null @@ -1,18 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/types.proto - -package org.tensorflow.proto.framework; - -public interface SerializedDTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.SerializedDType) - com.google.protobuf.MessageOrBuilder { - - /** - * .tensorflow.DataType datatype = 1; - */ - int getDatatypeValue(); - /** - * .tensorflow.DataType datatype = 1; - */ - org.tensorflow.proto.framework.DataType getDatatype(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SessionInfo.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SessionInfo.java deleted file mode 100644 index f44e0f0e52d..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SessionInfo.java +++ /dev/null @@ -1,485 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/grappler/costs/op_performance_data.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Description of the session when an op is run.
- * 
- * - * Protobuf type {@code tensorflow.SessionInfo} - */ -public final class SessionInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.SessionInfo) - SessionInfoOrBuilder { -private static final long serialVersionUID = 0L; - // Use SessionInfo.newBuilder() to construct. - private SessionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SessionInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SessionInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SessionInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - intraOpParallelism_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_SessionInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_SessionInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SessionInfo.class, org.tensorflow.proto.framework.SessionInfo.Builder.class); - } - - public static final int INTRA_OP_PARALLELISM_FIELD_NUMBER = 1; - private long intraOpParallelism_; - /** - * int64 intra_op_parallelism = 1; - */ - public long getIntraOpParallelism() { - return intraOpParallelism_; - } - - 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 (intraOpParallelism_ != 0L) { - output.writeInt64(1, intraOpParallelism_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (intraOpParallelism_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, intraOpParallelism_); - } - 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 org.tensorflow.proto.framework.SessionInfo)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.SessionInfo other = (org.tensorflow.proto.framework.SessionInfo) obj; - - if (getIntraOpParallelism() - != other.getIntraOpParallelism()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INTRA_OP_PARALLELISM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIntraOpParallelism()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.SessionInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SessionInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SessionInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SessionInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SessionInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SessionInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SessionInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SessionInfo 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 org.tensorflow.proto.framework.SessionInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SessionInfo 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 org.tensorflow.proto.framework.SessionInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SessionInfo 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(org.tensorflow.proto.framework.SessionInfo 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; - } - /** - *
-   * Description of the session when an op is run.
-   * 
- * - * Protobuf type {@code tensorflow.SessionInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.SessionInfo) - org.tensorflow.proto.framework.SessionInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_SessionInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_SessionInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SessionInfo.class, org.tensorflow.proto.framework.SessionInfo.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.SessionInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - intraOpParallelism_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.OpPerformanceDataProtos.internal_static_tensorflow_SessionInfo_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SessionInfo getDefaultInstanceForType() { - return org.tensorflow.proto.framework.SessionInfo.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.SessionInfo build() { - org.tensorflow.proto.framework.SessionInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SessionInfo buildPartial() { - org.tensorflow.proto.framework.SessionInfo result = new org.tensorflow.proto.framework.SessionInfo(this); - result.intraOpParallelism_ = intraOpParallelism_; - 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 org.tensorflow.proto.framework.SessionInfo) { - return mergeFrom((org.tensorflow.proto.framework.SessionInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.SessionInfo other) { - if (other == org.tensorflow.proto.framework.SessionInfo.getDefaultInstance()) return this; - if (other.getIntraOpParallelism() != 0L) { - setIntraOpParallelism(other.getIntraOpParallelism()); - } - 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 { - org.tensorflow.proto.framework.SessionInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.SessionInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long intraOpParallelism_ ; - /** - * int64 intra_op_parallelism = 1; - */ - public long getIntraOpParallelism() { - return intraOpParallelism_; - } - /** - * int64 intra_op_parallelism = 1; - */ - public Builder setIntraOpParallelism(long value) { - - intraOpParallelism_ = value; - onChanged(); - return this; - } - /** - * int64 intra_op_parallelism = 1; - */ - public Builder clearIntraOpParallelism() { - - intraOpParallelism_ = 0L; - 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:tensorflow.SessionInfo) - } - - // @@protoc_insertion_point(class_scope:tensorflow.SessionInfo) - private static final org.tensorflow.proto.framework.SessionInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.SessionInfo(); - } - - public static org.tensorflow.proto.framework.SessionInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SessionInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SessionInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SessionInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SessionInfoOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SessionInfoOrBuilder.java deleted file mode 100644 index 43181b82317..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SessionInfoOrBuilder.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/grappler/costs/op_performance_data.proto - -package org.tensorflow.proto.framework; - -public interface SessionInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.SessionInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 intra_op_parallelism = 1; - */ - long getIntraOpParallelism(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SessionMetadata.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SessionMetadata.java deleted file mode 100644 index a825437b468..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SessionMetadata.java +++ /dev/null @@ -1,636 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/config.proto - -package org.tensorflow.proto.framework; - -/** - *
- * Metadata about the session.
- * This can be used by the runtime and the Ops for debugging, monitoring, etc.
- * The (name, version) tuple is expected to be a unique identifier for
- * sessions within the same process.
- * NOTE: This is currently used and propagated only by the direct session.
- * 
- * - * Protobuf type {@code tensorflow.SessionMetadata} - */ -public final class SessionMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.SessionMetadata) - SessionMetadataOrBuilder { -private static final long serialVersionUID = 0L; - // Use SessionMetadata.newBuilder() to construct. - private SessionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SessionMetadata() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SessionMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SessionMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - - version_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_SessionMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_SessionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SessionMetadata.class, org.tensorflow.proto.framework.SessionMetadata.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - 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(); - name_ = s; - return s; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 2; - private long version_; - /** - *
-   * The version is optional. If set, needs to be >= 0.
-   * 
- * - * int64 version = 2; - */ - public long getVersion() { - return version_; - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (version_ != 0L) { - output.writeInt64(2, version_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (version_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, version_); - } - 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 org.tensorflow.proto.framework.SessionMetadata)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.SessionMetadata other = (org.tensorflow.proto.framework.SessionMetadata) obj; - - if (!getName() - .equals(other.getName())) return false; - if (getVersion() - != other.getVersion()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVersion()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.SessionMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SessionMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SessionMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SessionMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SessionMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SessionMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SessionMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SessionMetadata 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 org.tensorflow.proto.framework.SessionMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SessionMetadata 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 org.tensorflow.proto.framework.SessionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SessionMetadata 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(org.tensorflow.proto.framework.SessionMetadata 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; - } - /** - *
-   * Metadata about the session.
-   * This can be used by the runtime and the Ops for debugging, monitoring, etc.
-   * The (name, version) tuple is expected to be a unique identifier for
-   * sessions within the same process.
-   * NOTE: This is currently used and propagated only by the direct session.
-   * 
- * - * Protobuf type {@code tensorflow.SessionMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.SessionMetadata) - org.tensorflow.proto.framework.SessionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_SessionMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_SessionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SessionMetadata.class, org.tensorflow.proto.framework.SessionMetadata.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.SessionMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - version_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_SessionMetadata_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SessionMetadata getDefaultInstanceForType() { - return org.tensorflow.proto.framework.SessionMetadata.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.SessionMetadata build() { - org.tensorflow.proto.framework.SessionMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SessionMetadata buildPartial() { - org.tensorflow.proto.framework.SessionMetadata result = new org.tensorflow.proto.framework.SessionMetadata(this); - result.name_ = name_; - result.version_ = version_; - 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 org.tensorflow.proto.framework.SessionMetadata) { - return mergeFrom((org.tensorflow.proto.framework.SessionMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.SessionMetadata other) { - if (other == org.tensorflow.proto.framework.SessionMetadata.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getVersion() != 0L) { - setVersion(other.getVersion()); - } - 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 { - org.tensorflow.proto.framework.SessionMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.SessionMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private long version_ ; - /** - *
-     * The version is optional. If set, needs to be >= 0.
-     * 
- * - * int64 version = 2; - */ - public long getVersion() { - return version_; - } - /** - *
-     * The version is optional. If set, needs to be >= 0.
-     * 
- * - * int64 version = 2; - */ - public Builder setVersion(long value) { - - version_ = value; - onChanged(); - return this; - } - /** - *
-     * The version is optional. If set, needs to be >= 0.
-     * 
- * - * int64 version = 2; - */ - public Builder clearVersion() { - - version_ = 0L; - 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:tensorflow.SessionMetadata) - } - - // @@protoc_insertion_point(class_scope:tensorflow.SessionMetadata) - private static final org.tensorflow.proto.framework.SessionMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.SessionMetadata(); - } - - public static org.tensorflow.proto.framework.SessionMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SessionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SessionMetadata(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SessionMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SignatureDef.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SignatureDef.java deleted file mode 100644 index 73e8cf42672..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SignatureDef.java +++ /dev/null @@ -1,1339 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/meta_graph.proto - -package org.tensorflow.proto.framework; - -/** - *
- * SignatureDef defines the signature of a computation supported by a TensorFlow
- * graph.
- * For example, a model with two loss computations, sharing a single input,
- * might have the following signature_def map, in a MetaGraphDef message.
- * Note that across the two SignatureDefs "loss_A" and "loss_B", the input key,
- * output key, and method_name are identical, and will be used by system(s) that
- * implement or rely upon this particular loss method. The output tensor names
- * differ, demonstrating how different outputs can exist for the same method.
- * signature_def {
- *   key: "loss_A"
- *   value {
- *     inputs {
- *       key: "input"
- *       value {
- *         name: "input:0"
- *         dtype: DT_STRING
- *         tensor_shape: ...
- *       }
- *     }
- *     outputs {
- *       key: "loss_output"
- *       value {
- *         name: "loss_output_A:0"
- *         dtype: DT_FLOAT
- *         tensor_shape: ...
- *       }
- *     }
- *     method_name: "some/package/compute_loss"
- *   }
- *   ...
- * }
- * signature_def {
- *   key: "loss_B"
- *   value {
- *     inputs {
- *       key: "input"
- *       value {
- *         name: "input:0"
- *         dtype: DT_STRING
- *         tensor_shape: ...
- *       }
- *     }
- *     outputs {
- *       key: "loss_output"
- *       value {
- *         name: "loss_output_B:0"
- *         dtype: DT_FLOAT
- *         tensor_shape: ...
- *       }
- *     }
- *     method_name: "some/package/compute_loss"
- *   }
- *   ...
- * }
- * 
- * - * Protobuf type {@code tensorflow.SignatureDef} - */ -public final class SignatureDef extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.SignatureDef) - SignatureDefOrBuilder { -private static final long serialVersionUID = 0L; - // Use SignatureDef.newBuilder() to construct. - private SignatureDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SignatureDef() { - methodName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SignatureDef(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignatureDef( - 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)) { - inputs_ = com.google.protobuf.MapField.newMapField( - InputsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - inputs__ = input.readMessage( - InputsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - inputs_.getMutableMap().put( - inputs__.getKey(), inputs__.getValue()); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - outputs_ = com.google.protobuf.MapField.newMapField( - OutputsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - outputs__ = input.readMessage( - OutputsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - outputs_.getMutableMap().put( - outputs__.getKey(), outputs__.getValue()); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - methodName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_SignatureDef_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetInputs(); - case 2: - return internalGetOutputs(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_SignatureDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SignatureDef.class, org.tensorflow.proto.framework.SignatureDef.Builder.class); - } - - public static final int INPUTS_FIELD_NUMBER = 1; - private static final class InputsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, org.tensorflow.proto.framework.TensorInfo> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_SignatureDef_InputsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.tensorflow.proto.framework.TensorInfo.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.TensorInfo> inputs_; - private com.google.protobuf.MapField - internalGetInputs() { - if (inputs_ == null) { - return com.google.protobuf.MapField.emptyMapField( - InputsDefaultEntryHolder.defaultEntry); - } - return inputs_; - } - - public int getInputsCount() { - return internalGetInputs().getMap().size(); - } - /** - *
-   * Named input parameters.
-   * 
- * - * map<string, .tensorflow.TensorInfo> inputs = 1; - */ - - public boolean containsInputs( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetInputs().getMap().containsKey(key); - } - /** - * Use {@link #getInputsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getInputs() { - return getInputsMap(); - } - /** - *
-   * Named input parameters.
-   * 
- * - * map<string, .tensorflow.TensorInfo> inputs = 1; - */ - - public java.util.Map getInputsMap() { - return internalGetInputs().getMap(); - } - /** - *
-   * Named input parameters.
-   * 
- * - * map<string, .tensorflow.TensorInfo> inputs = 1; - */ - - public org.tensorflow.proto.framework.TensorInfo getInputsOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.TensorInfo defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetInputs().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-   * Named input parameters.
-   * 
- * - * map<string, .tensorflow.TensorInfo> inputs = 1; - */ - - public org.tensorflow.proto.framework.TensorInfo getInputsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetInputs().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int OUTPUTS_FIELD_NUMBER = 2; - private static final class OutputsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, org.tensorflow.proto.framework.TensorInfo> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_SignatureDef_OutputsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.tensorflow.proto.framework.TensorInfo.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.TensorInfo> outputs_; - private com.google.protobuf.MapField - internalGetOutputs() { - if (outputs_ == null) { - return com.google.protobuf.MapField.emptyMapField( - OutputsDefaultEntryHolder.defaultEntry); - } - return outputs_; - } - - public int getOutputsCount() { - return internalGetOutputs().getMap().size(); - } - /** - *
-   * Named output parameters.
-   * 
- * - * map<string, .tensorflow.TensorInfo> outputs = 2; - */ - - public boolean containsOutputs( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetOutputs().getMap().containsKey(key); - } - /** - * Use {@link #getOutputsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getOutputs() { - return getOutputsMap(); - } - /** - *
-   * Named output parameters.
-   * 
- * - * map<string, .tensorflow.TensorInfo> outputs = 2; - */ - - public java.util.Map getOutputsMap() { - return internalGetOutputs().getMap(); - } - /** - *
-   * Named output parameters.
-   * 
- * - * map<string, .tensorflow.TensorInfo> outputs = 2; - */ - - public org.tensorflow.proto.framework.TensorInfo getOutputsOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.TensorInfo defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetOutputs().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-   * Named output parameters.
-   * 
- * - * map<string, .tensorflow.TensorInfo> outputs = 2; - */ - - public org.tensorflow.proto.framework.TensorInfo getOutputsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetOutputs().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int METHOD_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object methodName_; - /** - *
-   * Extensible method_name information enabling third-party users to mark a
-   * SignatureDef as supporting a particular method. This enables producers and
-   * consumers of SignatureDefs, e.g. a model definition library and a serving
-   * library to have a clear hand-off regarding the semantics of a computation.
-   * Note that multiple SignatureDefs in a single MetaGraphDef may have the same
-   * method_name. This is commonly used to support multi-headed computation,
-   * where a single graph computation may return multiple results.
-   * 
- * - * string method_name = 3; - */ - public java.lang.String getMethodName() { - java.lang.Object ref = methodName_; - 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(); - methodName_ = s; - return s; - } - } - /** - *
-   * Extensible method_name information enabling third-party users to mark a
-   * SignatureDef as supporting a particular method. This enables producers and
-   * consumers of SignatureDefs, e.g. a model definition library and a serving
-   * library to have a clear hand-off regarding the semantics of a computation.
-   * Note that multiple SignatureDefs in a single MetaGraphDef may have the same
-   * method_name. This is commonly used to support multi-headed computation,
-   * where a single graph computation may return multiple results.
-   * 
- * - * string method_name = 3; - */ - public com.google.protobuf.ByteString - getMethodNameBytes() { - java.lang.Object ref = methodName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - methodName_ = 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetInputs(), - InputsDefaultEntryHolder.defaultEntry, - 1); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetOutputs(), - OutputsDefaultEntryHolder.defaultEntry, - 2); - if (!getMethodNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, methodName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetInputs().getMap().entrySet()) { - com.google.protobuf.MapEntry - inputs__ = InputsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, inputs__); - } - for (java.util.Map.Entry entry - : internalGetOutputs().getMap().entrySet()) { - com.google.protobuf.MapEntry - outputs__ = OutputsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, outputs__); - } - if (!getMethodNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, methodName_); - } - 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 org.tensorflow.proto.framework.SignatureDef)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.SignatureDef other = (org.tensorflow.proto.framework.SignatureDef) obj; - - if (!internalGetInputs().equals( - other.internalGetInputs())) return false; - if (!internalGetOutputs().equals( - other.internalGetOutputs())) return false; - if (!getMethodName() - .equals(other.getMethodName())) 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 (!internalGetInputs().getMap().isEmpty()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + internalGetInputs().hashCode(); - } - if (!internalGetOutputs().getMap().isEmpty()) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + internalGetOutputs().hashCode(); - } - hash = (37 * hash) + METHOD_NAME_FIELD_NUMBER; - hash = (53 * hash) + getMethodName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.SignatureDef parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SignatureDef parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SignatureDef parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SignatureDef parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SignatureDef parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.SignatureDef parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.SignatureDef parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SignatureDef 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 org.tensorflow.proto.framework.SignatureDef parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SignatureDef 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 org.tensorflow.proto.framework.SignatureDef parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.SignatureDef 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(org.tensorflow.proto.framework.SignatureDef 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; - } - /** - *
-   * SignatureDef defines the signature of a computation supported by a TensorFlow
-   * graph.
-   * For example, a model with two loss computations, sharing a single input,
-   * might have the following signature_def map, in a MetaGraphDef message.
-   * Note that across the two SignatureDefs "loss_A" and "loss_B", the input key,
-   * output key, and method_name are identical, and will be used by system(s) that
-   * implement or rely upon this particular loss method. The output tensor names
-   * differ, demonstrating how different outputs can exist for the same method.
-   * signature_def {
-   *   key: "loss_A"
-   *   value {
-   *     inputs {
-   *       key: "input"
-   *       value {
-   *         name: "input:0"
-   *         dtype: DT_STRING
-   *         tensor_shape: ...
-   *       }
-   *     }
-   *     outputs {
-   *       key: "loss_output"
-   *       value {
-   *         name: "loss_output_A:0"
-   *         dtype: DT_FLOAT
-   *         tensor_shape: ...
-   *       }
-   *     }
-   *     method_name: "some/package/compute_loss"
-   *   }
-   *   ...
-   * }
-   * signature_def {
-   *   key: "loss_B"
-   *   value {
-   *     inputs {
-   *       key: "input"
-   *       value {
-   *         name: "input:0"
-   *         dtype: DT_STRING
-   *         tensor_shape: ...
-   *       }
-   *     }
-   *     outputs {
-   *       key: "loss_output"
-   *       value {
-   *         name: "loss_output_B:0"
-   *         dtype: DT_FLOAT
-   *         tensor_shape: ...
-   *       }
-   *     }
-   *     method_name: "some/package/compute_loss"
-   *   }
-   *   ...
-   * }
-   * 
- * - * Protobuf type {@code tensorflow.SignatureDef} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.SignatureDef) - org.tensorflow.proto.framework.SignatureDefOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_SignatureDef_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetInputs(); - case 2: - return internalGetOutputs(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableInputs(); - case 2: - return internalGetMutableOutputs(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_SignatureDef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SignatureDef.class, org.tensorflow.proto.framework.SignatureDef.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.SignatureDef.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableInputs().clear(); - internalGetMutableOutputs().clear(); - methodName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_SignatureDef_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SignatureDef getDefaultInstanceForType() { - return org.tensorflow.proto.framework.SignatureDef.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.SignatureDef build() { - org.tensorflow.proto.framework.SignatureDef result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SignatureDef buildPartial() { - org.tensorflow.proto.framework.SignatureDef result = new org.tensorflow.proto.framework.SignatureDef(this); - int from_bitField0_ = bitField0_; - result.inputs_ = internalGetInputs(); - result.inputs_.makeImmutable(); - result.outputs_ = internalGetOutputs(); - result.outputs_.makeImmutable(); - result.methodName_ = methodName_; - 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 org.tensorflow.proto.framework.SignatureDef) { - return mergeFrom((org.tensorflow.proto.framework.SignatureDef)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.SignatureDef other) { - if (other == org.tensorflow.proto.framework.SignatureDef.getDefaultInstance()) return this; - internalGetMutableInputs().mergeFrom( - other.internalGetInputs()); - internalGetMutableOutputs().mergeFrom( - other.internalGetOutputs()); - if (!other.getMethodName().isEmpty()) { - methodName_ = other.methodName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.SignatureDef parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.SignatureDef) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.TensorInfo> inputs_; - private com.google.protobuf.MapField - internalGetInputs() { - if (inputs_ == null) { - return com.google.protobuf.MapField.emptyMapField( - InputsDefaultEntryHolder.defaultEntry); - } - return inputs_; - } - private com.google.protobuf.MapField - internalGetMutableInputs() { - onChanged();; - if (inputs_ == null) { - inputs_ = com.google.protobuf.MapField.newMapField( - InputsDefaultEntryHolder.defaultEntry); - } - if (!inputs_.isMutable()) { - inputs_ = inputs_.copy(); - } - return inputs_; - } - - public int getInputsCount() { - return internalGetInputs().getMap().size(); - } - /** - *
-     * Named input parameters.
-     * 
- * - * map<string, .tensorflow.TensorInfo> inputs = 1; - */ - - public boolean containsInputs( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetInputs().getMap().containsKey(key); - } - /** - * Use {@link #getInputsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getInputs() { - return getInputsMap(); - } - /** - *
-     * Named input parameters.
-     * 
- * - * map<string, .tensorflow.TensorInfo> inputs = 1; - */ - - public java.util.Map getInputsMap() { - return internalGetInputs().getMap(); - } - /** - *
-     * Named input parameters.
-     * 
- * - * map<string, .tensorflow.TensorInfo> inputs = 1; - */ - - public org.tensorflow.proto.framework.TensorInfo getInputsOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.TensorInfo defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetInputs().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Named input parameters.
-     * 
- * - * map<string, .tensorflow.TensorInfo> inputs = 1; - */ - - public org.tensorflow.proto.framework.TensorInfo getInputsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetInputs().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearInputs() { - internalGetMutableInputs().getMutableMap() - .clear(); - return this; - } - /** - *
-     * Named input parameters.
-     * 
- * - * map<string, .tensorflow.TensorInfo> inputs = 1; - */ - - public Builder removeInputs( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableInputs().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableInputs() { - return internalGetMutableInputs().getMutableMap(); - } - /** - *
-     * Named input parameters.
-     * 
- * - * map<string, .tensorflow.TensorInfo> inputs = 1; - */ - public Builder putInputs( - java.lang.String key, - org.tensorflow.proto.framework.TensorInfo value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableInputs().getMutableMap() - .put(key, value); - return this; - } - /** - *
-     * Named input parameters.
-     * 
- * - * map<string, .tensorflow.TensorInfo> inputs = 1; - */ - - public Builder putAllInputs( - java.util.Map values) { - internalGetMutableInputs().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.TensorInfo> outputs_; - private com.google.protobuf.MapField - internalGetOutputs() { - if (outputs_ == null) { - return com.google.protobuf.MapField.emptyMapField( - OutputsDefaultEntryHolder.defaultEntry); - } - return outputs_; - } - private com.google.protobuf.MapField - internalGetMutableOutputs() { - onChanged();; - if (outputs_ == null) { - outputs_ = com.google.protobuf.MapField.newMapField( - OutputsDefaultEntryHolder.defaultEntry); - } - if (!outputs_.isMutable()) { - outputs_ = outputs_.copy(); - } - return outputs_; - } - - public int getOutputsCount() { - return internalGetOutputs().getMap().size(); - } - /** - *
-     * Named output parameters.
-     * 
- * - * map<string, .tensorflow.TensorInfo> outputs = 2; - */ - - public boolean containsOutputs( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetOutputs().getMap().containsKey(key); - } - /** - * Use {@link #getOutputsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getOutputs() { - return getOutputsMap(); - } - /** - *
-     * Named output parameters.
-     * 
- * - * map<string, .tensorflow.TensorInfo> outputs = 2; - */ - - public java.util.Map getOutputsMap() { - return internalGetOutputs().getMap(); - } - /** - *
-     * Named output parameters.
-     * 
- * - * map<string, .tensorflow.TensorInfo> outputs = 2; - */ - - public org.tensorflow.proto.framework.TensorInfo getOutputsOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.TensorInfo defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetOutputs().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Named output parameters.
-     * 
- * - * map<string, .tensorflow.TensorInfo> outputs = 2; - */ - - public org.tensorflow.proto.framework.TensorInfo getOutputsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetOutputs().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearOutputs() { - internalGetMutableOutputs().getMutableMap() - .clear(); - return this; - } - /** - *
-     * Named output parameters.
-     * 
- * - * map<string, .tensorflow.TensorInfo> outputs = 2; - */ - - public Builder removeOutputs( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableOutputs().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableOutputs() { - return internalGetMutableOutputs().getMutableMap(); - } - /** - *
-     * Named output parameters.
-     * 
- * - * map<string, .tensorflow.TensorInfo> outputs = 2; - */ - public Builder putOutputs( - java.lang.String key, - org.tensorflow.proto.framework.TensorInfo value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableOutputs().getMutableMap() - .put(key, value); - return this; - } - /** - *
-     * Named output parameters.
-     * 
- * - * map<string, .tensorflow.TensorInfo> outputs = 2; - */ - - public Builder putAllOutputs( - java.util.Map values) { - internalGetMutableOutputs().getMutableMap() - .putAll(values); - return this; - } - - private java.lang.Object methodName_ = ""; - /** - *
-     * Extensible method_name information enabling third-party users to mark a
-     * SignatureDef as supporting a particular method. This enables producers and
-     * consumers of SignatureDefs, e.g. a model definition library and a serving
-     * library to have a clear hand-off regarding the semantics of a computation.
-     * Note that multiple SignatureDefs in a single MetaGraphDef may have the same
-     * method_name. This is commonly used to support multi-headed computation,
-     * where a single graph computation may return multiple results.
-     * 
- * - * string method_name = 3; - */ - public java.lang.String getMethodName() { - java.lang.Object ref = methodName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - methodName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Extensible method_name information enabling third-party users to mark a
-     * SignatureDef as supporting a particular method. This enables producers and
-     * consumers of SignatureDefs, e.g. a model definition library and a serving
-     * library to have a clear hand-off regarding the semantics of a computation.
-     * Note that multiple SignatureDefs in a single MetaGraphDef may have the same
-     * method_name. This is commonly used to support multi-headed computation,
-     * where a single graph computation may return multiple results.
-     * 
- * - * string method_name = 3; - */ - public com.google.protobuf.ByteString - getMethodNameBytes() { - java.lang.Object ref = methodName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - methodName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Extensible method_name information enabling third-party users to mark a
-     * SignatureDef as supporting a particular method. This enables producers and
-     * consumers of SignatureDefs, e.g. a model definition library and a serving
-     * library to have a clear hand-off regarding the semantics of a computation.
-     * Note that multiple SignatureDefs in a single MetaGraphDef may have the same
-     * method_name. This is commonly used to support multi-headed computation,
-     * where a single graph computation may return multiple results.
-     * 
- * - * string method_name = 3; - */ - public Builder setMethodName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - methodName_ = value; - onChanged(); - return this; - } - /** - *
-     * Extensible method_name information enabling third-party users to mark a
-     * SignatureDef as supporting a particular method. This enables producers and
-     * consumers of SignatureDefs, e.g. a model definition library and a serving
-     * library to have a clear hand-off regarding the semantics of a computation.
-     * Note that multiple SignatureDefs in a single MetaGraphDef may have the same
-     * method_name. This is commonly used to support multi-headed computation,
-     * where a single graph computation may return multiple results.
-     * 
- * - * string method_name = 3; - */ - public Builder clearMethodName() { - - methodName_ = getDefaultInstance().getMethodName(); - onChanged(); - return this; - } - /** - *
-     * Extensible method_name information enabling third-party users to mark a
-     * SignatureDef as supporting a particular method. This enables producers and
-     * consumers of SignatureDefs, e.g. a model definition library and a serving
-     * library to have a clear hand-off regarding the semantics of a computation.
-     * Note that multiple SignatureDefs in a single MetaGraphDef may have the same
-     * method_name. This is commonly used to support multi-headed computation,
-     * where a single graph computation may return multiple results.
-     * 
- * - * string method_name = 3; - */ - public Builder setMethodNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - methodName_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.SignatureDef) - } - - // @@protoc_insertion_point(class_scope:tensorflow.SignatureDef) - private static final org.tensorflow.proto.framework.SignatureDef DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.SignatureDef(); - } - - public static org.tensorflow.proto.framework.SignatureDef getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignatureDef parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignatureDef(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.SignatureDef getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SignatureDefOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SignatureDefOrBuilder.java deleted file mode 100644 index e9234adf5f7..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SignatureDefOrBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/meta_graph.proto - -package org.tensorflow.proto.framework; - -public interface SignatureDefOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.SignatureDef) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Named input parameters.
-   * 
- * - * map<string, .tensorflow.TensorInfo> inputs = 1; - */ - int getInputsCount(); - /** - *
-   * Named input parameters.
-   * 
- * - * map<string, .tensorflow.TensorInfo> inputs = 1; - */ - boolean containsInputs( - java.lang.String key); - /** - * Use {@link #getInputsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getInputs(); - /** - *
-   * Named input parameters.
-   * 
- * - * map<string, .tensorflow.TensorInfo> inputs = 1; - */ - java.util.Map - getInputsMap(); - /** - *
-   * Named input parameters.
-   * 
- * - * map<string, .tensorflow.TensorInfo> inputs = 1; - */ - - org.tensorflow.proto.framework.TensorInfo getInputsOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.TensorInfo defaultValue); - /** - *
-   * Named input parameters.
-   * 
- * - * map<string, .tensorflow.TensorInfo> inputs = 1; - */ - - org.tensorflow.proto.framework.TensorInfo getInputsOrThrow( - java.lang.String key); - - /** - *
-   * Named output parameters.
-   * 
- * - * map<string, .tensorflow.TensorInfo> outputs = 2; - */ - int getOutputsCount(); - /** - *
-   * Named output parameters.
-   * 
- * - * map<string, .tensorflow.TensorInfo> outputs = 2; - */ - boolean containsOutputs( - java.lang.String key); - /** - * Use {@link #getOutputsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getOutputs(); - /** - *
-   * Named output parameters.
-   * 
- * - * map<string, .tensorflow.TensorInfo> outputs = 2; - */ - java.util.Map - getOutputsMap(); - /** - *
-   * Named output parameters.
-   * 
- * - * map<string, .tensorflow.TensorInfo> outputs = 2; - */ - - org.tensorflow.proto.framework.TensorInfo getOutputsOrDefault( - java.lang.String key, - org.tensorflow.proto.framework.TensorInfo defaultValue); - /** - *
-   * Named output parameters.
-   * 
- * - * map<string, .tensorflow.TensorInfo> outputs = 2; - */ - - org.tensorflow.proto.framework.TensorInfo getOutputsOrThrow( - java.lang.String key); - - /** - *
-   * Extensible method_name information enabling third-party users to mark a
-   * SignatureDef as supporting a particular method. This enables producers and
-   * consumers of SignatureDefs, e.g. a model definition library and a serving
-   * library to have a clear hand-off regarding the semantics of a computation.
-   * Note that multiple SignatureDefs in a single MetaGraphDef may have the same
-   * method_name. This is commonly used to support multi-headed computation,
-   * where a single graph computation may return multiple results.
-   * 
- * - * string method_name = 3; - */ - java.lang.String getMethodName(); - /** - *
-   * Extensible method_name information enabling third-party users to mark a
-   * SignatureDef as supporting a particular method. This enables producers and
-   * consumers of SignatureDefs, e.g. a model definition library and a serving
-   * library to have a clear hand-off regarding the semantics of a computation.
-   * Note that multiple SignatureDefs in a single MetaGraphDef may have the same
-   * method_name. This is commonly used to support multi-headed computation,
-   * where a single graph computation may return multiple results.
-   * 
- * - * string method_name = 3; - */ - com.google.protobuf.ByteString - getMethodNameBytes(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/StepStats.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/StepStats.java deleted file mode 100644 index 01a979698bd..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/StepStats.java +++ /dev/null @@ -1,765 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/step_stats.proto - -package org.tensorflow.proto.framework; - -/** - * Protobuf type {@code tensorflow.StepStats} - */ -public final class StepStats extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.StepStats) - StepStatsOrBuilder { -private static final long serialVersionUID = 0L; - // Use StepStats.newBuilder() to construct. - private StepStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StepStats() { - devStats_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StepStats(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StepStats( - 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)) { - devStats_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - devStats_.add( - input.readMessage(org.tensorflow.proto.framework.DeviceStepStats.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)) { - devStats_ = java.util.Collections.unmodifiableList(devStats_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_StepStats_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_StepStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.StepStats.class, org.tensorflow.proto.framework.StepStats.Builder.class); - } - - public static final int DEV_STATS_FIELD_NUMBER = 1; - private java.util.List devStats_; - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public java.util.List getDevStatsList() { - return devStats_; - } - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public java.util.List - getDevStatsOrBuilderList() { - return devStats_; - } - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public int getDevStatsCount() { - return devStats_.size(); - } - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public org.tensorflow.proto.framework.DeviceStepStats getDevStats(int index) { - return devStats_.get(index); - } - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public org.tensorflow.proto.framework.DeviceStepStatsOrBuilder getDevStatsOrBuilder( - int index) { - return devStats_.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 < devStats_.size(); i++) { - output.writeMessage(1, devStats_.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 < devStats_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, devStats_.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 org.tensorflow.proto.framework.StepStats)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.StepStats other = (org.tensorflow.proto.framework.StepStats) obj; - - if (!getDevStatsList() - .equals(other.getDevStatsList())) 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 (getDevStatsCount() > 0) { - hash = (37 * hash) + DEV_STATS_FIELD_NUMBER; - hash = (53 * hash) + getDevStatsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.StepStats parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.StepStats parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.StepStats parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.StepStats parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.StepStats parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.StepStats parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.StepStats parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.StepStats 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 org.tensorflow.proto.framework.StepStats parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.StepStats 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 org.tensorflow.proto.framework.StepStats parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.StepStats 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(org.tensorflow.proto.framework.StepStats prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.StepStats} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.StepStats) - org.tensorflow.proto.framework.StepStatsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_StepStats_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_StepStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.StepStats.class, org.tensorflow.proto.framework.StepStats.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.StepStats.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDevStatsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (devStatsBuilder_ == null) { - devStats_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - devStatsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_StepStats_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.StepStats getDefaultInstanceForType() { - return org.tensorflow.proto.framework.StepStats.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.StepStats build() { - org.tensorflow.proto.framework.StepStats result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.StepStats buildPartial() { - org.tensorflow.proto.framework.StepStats result = new org.tensorflow.proto.framework.StepStats(this); - int from_bitField0_ = bitField0_; - if (devStatsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - devStats_ = java.util.Collections.unmodifiableList(devStats_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.devStats_ = devStats_; - } else { - result.devStats_ = devStatsBuilder_.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 org.tensorflow.proto.framework.StepStats) { - return mergeFrom((org.tensorflow.proto.framework.StepStats)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.StepStats other) { - if (other == org.tensorflow.proto.framework.StepStats.getDefaultInstance()) return this; - if (devStatsBuilder_ == null) { - if (!other.devStats_.isEmpty()) { - if (devStats_.isEmpty()) { - devStats_ = other.devStats_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDevStatsIsMutable(); - devStats_.addAll(other.devStats_); - } - onChanged(); - } - } else { - if (!other.devStats_.isEmpty()) { - if (devStatsBuilder_.isEmpty()) { - devStatsBuilder_.dispose(); - devStatsBuilder_ = null; - devStats_ = other.devStats_; - bitField0_ = (bitField0_ & ~0x00000001); - devStatsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDevStatsFieldBuilder() : null; - } else { - devStatsBuilder_.addAllMessages(other.devStats_); - } - } - } - 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 { - org.tensorflow.proto.framework.StepStats parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.StepStats) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List devStats_ = - java.util.Collections.emptyList(); - private void ensureDevStatsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - devStats_ = new java.util.ArrayList(devStats_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.DeviceStepStats, org.tensorflow.proto.framework.DeviceStepStats.Builder, org.tensorflow.proto.framework.DeviceStepStatsOrBuilder> devStatsBuilder_; - - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public java.util.List getDevStatsList() { - if (devStatsBuilder_ == null) { - return java.util.Collections.unmodifiableList(devStats_); - } else { - return devStatsBuilder_.getMessageList(); - } - } - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public int getDevStatsCount() { - if (devStatsBuilder_ == null) { - return devStats_.size(); - } else { - return devStatsBuilder_.getCount(); - } - } - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public org.tensorflow.proto.framework.DeviceStepStats getDevStats(int index) { - if (devStatsBuilder_ == null) { - return devStats_.get(index); - } else { - return devStatsBuilder_.getMessage(index); - } - } - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public Builder setDevStats( - int index, org.tensorflow.proto.framework.DeviceStepStats value) { - if (devStatsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDevStatsIsMutable(); - devStats_.set(index, value); - onChanged(); - } else { - devStatsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public Builder setDevStats( - int index, org.tensorflow.proto.framework.DeviceStepStats.Builder builderForValue) { - if (devStatsBuilder_ == null) { - ensureDevStatsIsMutable(); - devStats_.set(index, builderForValue.build()); - onChanged(); - } else { - devStatsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public Builder addDevStats(org.tensorflow.proto.framework.DeviceStepStats value) { - if (devStatsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDevStatsIsMutable(); - devStats_.add(value); - onChanged(); - } else { - devStatsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public Builder addDevStats( - int index, org.tensorflow.proto.framework.DeviceStepStats value) { - if (devStatsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDevStatsIsMutable(); - devStats_.add(index, value); - onChanged(); - } else { - devStatsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public Builder addDevStats( - org.tensorflow.proto.framework.DeviceStepStats.Builder builderForValue) { - if (devStatsBuilder_ == null) { - ensureDevStatsIsMutable(); - devStats_.add(builderForValue.build()); - onChanged(); - } else { - devStatsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public Builder addDevStats( - int index, org.tensorflow.proto.framework.DeviceStepStats.Builder builderForValue) { - if (devStatsBuilder_ == null) { - ensureDevStatsIsMutable(); - devStats_.add(index, builderForValue.build()); - onChanged(); - } else { - devStatsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public Builder addAllDevStats( - java.lang.Iterable values) { - if (devStatsBuilder_ == null) { - ensureDevStatsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, devStats_); - onChanged(); - } else { - devStatsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public Builder clearDevStats() { - if (devStatsBuilder_ == null) { - devStats_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - devStatsBuilder_.clear(); - } - return this; - } - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public Builder removeDevStats(int index) { - if (devStatsBuilder_ == null) { - ensureDevStatsIsMutable(); - devStats_.remove(index); - onChanged(); - } else { - devStatsBuilder_.remove(index); - } - return this; - } - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public org.tensorflow.proto.framework.DeviceStepStats.Builder getDevStatsBuilder( - int index) { - return getDevStatsFieldBuilder().getBuilder(index); - } - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public org.tensorflow.proto.framework.DeviceStepStatsOrBuilder getDevStatsOrBuilder( - int index) { - if (devStatsBuilder_ == null) { - return devStats_.get(index); } else { - return devStatsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public java.util.List - getDevStatsOrBuilderList() { - if (devStatsBuilder_ != null) { - return devStatsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(devStats_); - } - } - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public org.tensorflow.proto.framework.DeviceStepStats.Builder addDevStatsBuilder() { - return getDevStatsFieldBuilder().addBuilder( - org.tensorflow.proto.framework.DeviceStepStats.getDefaultInstance()); - } - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public org.tensorflow.proto.framework.DeviceStepStats.Builder addDevStatsBuilder( - int index) { - return getDevStatsFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.DeviceStepStats.getDefaultInstance()); - } - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - public java.util.List - getDevStatsBuilderList() { - return getDevStatsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.DeviceStepStats, org.tensorflow.proto.framework.DeviceStepStats.Builder, org.tensorflow.proto.framework.DeviceStepStatsOrBuilder> - getDevStatsFieldBuilder() { - if (devStatsBuilder_ == null) { - devStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.DeviceStepStats, org.tensorflow.proto.framework.DeviceStepStats.Builder, org.tensorflow.proto.framework.DeviceStepStatsOrBuilder>( - devStats_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - devStats_ = null; - } - return devStatsBuilder_; - } - @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:tensorflow.StepStats) - } - - // @@protoc_insertion_point(class_scope:tensorflow.StepStats) - private static final org.tensorflow.proto.framework.StepStats DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.StepStats(); - } - - public static org.tensorflow.proto.framework.StepStats getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StepStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StepStats(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.StepStats getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/StepStatsOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/StepStatsOrBuilder.java deleted file mode 100644 index bb7cdf41046..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/StepStatsOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/step_stats.proto - -package org.tensorflow.proto.framework; - -public interface StepStatsOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.StepStats) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - java.util.List - getDevStatsList(); - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - org.tensorflow.proto.framework.DeviceStepStats getDevStats(int index); - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - int getDevStatsCount(); - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - java.util.List - getDevStatsOrBuilderList(); - /** - * repeated .tensorflow.DeviceStepStats dev_stats = 1; - */ - org.tensorflow.proto.framework.DeviceStepStatsOrBuilder getDevStatsOrBuilder( - int index); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/StructProtos.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/StructProtos.java deleted file mode 100644 index eb4febd9720..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/StructProtos.java +++ /dev/null @@ -1,217 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/struct.proto - -package org.tensorflow.proto.framework; - -public final class StructProtos { - private StructProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_StructuredValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_StructuredValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_NoneValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_NoneValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_ListValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_ListValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_TupleValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_TupleValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_DictValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_DictValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_DictValue_FieldsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_DictValue_FieldsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_PairValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_PairValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_NamedTupleValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_NamedTupleValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_TensorSpecProto_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_TensorSpecProto_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_BoundedTensorSpecProto_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_BoundedTensorSpecProto_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tensorflow_TypeSpecProto_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tensorflow_TypeSpecProto_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n%tensorflow/core/protobuf/struct.proto\022" + - "\ntensorflow\032&tensorflow/core/framework/t" + - "ensor.proto\032,tensorflow/core/framework/t" + - "ensor_shape.proto\032%tensorflow/core/frame" + - "work/types.proto\"\220\005\n\017StructuredValue\022+\n\n" + - "none_value\030\001 \001(\0132\025.tensorflow.NoneValueH" + - "\000\022\027\n\rfloat64_value\030\013 \001(\001H\000\022\025\n\013int64_valu" + - "e\030\014 \001(\022H\000\022\026\n\014string_value\030\r \001(\tH\000\022\024\n\nboo" + - "l_value\030\016 \001(\010H\000\022:\n\022tensor_shape_value\030\037 " + - "\001(\0132\034.tensorflow.TensorShapeProtoH\000\0222\n\022t" + - "ensor_dtype_value\030 \001(\0162\024.tensorflow.Dat" + - "aTypeH\000\0228\n\021tensor_spec_value\030! \001(\0132\033.ten" + - "sorflow.TensorSpecProtoH\000\0224\n\017type_spec_v" + - "alue\030\" \001(\0132\031.tensorflow.TypeSpecProtoH\000\022" + - "G\n\031bounded_tensor_spec_value\030# \001(\0132\".ten" + - "sorflow.BoundedTensorSpecProtoH\000\022+\n\nlist" + - "_value\0303 \001(\0132\025.tensorflow.ListValueH\000\022-\n" + - "\013tuple_value\0304 \001(\0132\026.tensorflow.TupleVal" + - "ueH\000\022+\n\ndict_value\0305 \001(\0132\025.tensorflow.Di" + - "ctValueH\000\0228\n\021named_tuple_value\0306 \001(\0132\033.t" + - "ensorflow.NamedTupleValueH\000B\006\n\004kind\"\013\n\tN" + - "oneValue\"8\n\tListValue\022+\n\006values\030\001 \003(\0132\033." + - "tensorflow.StructuredValue\"9\n\nTupleValue" + - "\022+\n\006values\030\001 \003(\0132\033.tensorflow.Structured" + - "Value\"\212\001\n\tDictValue\0221\n\006fields\030\001 \003(\0132!.te" + - "nsorflow.DictValue.FieldsEntry\032J\n\013Fields" + - "Entry\022\013\n\003key\030\001 \001(\t\022*\n\005value\030\002 \001(\0132\033.tens" + - "orflow.StructuredValue:\0028\001\"D\n\tPairValue\022" + - "\013\n\003key\030\001 \001(\t\022*\n\005value\030\002 \001(\0132\033.tensorflow" + - ".StructuredValue\"F\n\017NamedTupleValue\022\014\n\004n" + - "ame\030\001 \001(\t\022%\n\006values\030\002 \003(\0132\025.tensorflow.P" + - "airValue\"q\n\017TensorSpecProto\022\014\n\004name\030\001 \001(" + - "\t\022+\n\005shape\030\002 \001(\0132\034.tensorflow.TensorShap" + - "eProto\022#\n\005dtype\030\003 \001(\0162\024.tensorflow.DataT" + - "ype\"\314\001\n\026BoundedTensorSpecProto\022\014\n\004name\030\001" + - " \001(\t\022+\n\005shape\030\002 \001(\0132\034.tensorflow.TensorS" + - "hapeProto\022#\n\005dtype\030\003 \001(\0162\024.tensorflow.Da" + - "taType\022(\n\007minimum\030\004 \001(\0132\027.tensorflow.Ten" + - "sorProto\022(\n\007maximum\030\005 \001(\0132\027.tensorflow.T" + - "ensorProto\"\370\003\n\rTypeSpecProto\022@\n\017type_spe" + - "c_class\030\001 \001(\0162\'.tensorflow.TypeSpecProto" + - ".TypeSpecClass\022/\n\ntype_state\030\002 \001(\0132\033.ten" + - "sorflow.StructuredValue\022\034\n\024type_spec_cla" + - "ss_name\030\003 \001(\t\022\033\n\023num_flat_components\030\004 \001" + - "(\005\"\270\002\n\rTypeSpecClass\022\013\n\007UNKNOWN\020\000\022\026\n\022SPA" + - "RSE_TENSOR_SPEC\020\001\022\027\n\023INDEXED_SLICES_SPEC" + - "\020\002\022\026\n\022RAGGED_TENSOR_SPEC\020\003\022\025\n\021TENSOR_ARR" + - "AY_SPEC\020\004\022\025\n\021DATA_DATASET_SPEC\020\005\022\026\n\022DATA" + - "_ITERATOR_SPEC\020\006\022\021\n\rOPTIONAL_SPEC\020\007\022\024\n\020P" + - "ER_REPLICA_SPEC\020\010\022\021\n\rVARIABLE_SPEC\020\t\022\026\n\022" + - "ROW_PARTITION_SPEC\020\n\022\030\n\024REGISTERED_TYPE_" + - "SPEC\020\014\022\027\n\023EXTENSION_TYPE_SPEC\020\r\"\004\010\013\020\013B\207\001" + - "\n\036org.tensorflow.proto.frameworkB\014Struct" + - "ProtosP\001ZUgithub.com/tensorflow/tensorfl" + - "ow/tensorflow/go/core/protobuf/for_core_" + - "protos_go_protob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.framework.TensorProtos.getDescriptor(), - org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(), - org.tensorflow.proto.framework.TypesProtos.getDescriptor(), - }); - internal_static_tensorflow_StructuredValue_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tensorflow_StructuredValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_StructuredValue_descriptor, - new java.lang.String[] { "NoneValue", "Float64Value", "Int64Value", "StringValue", "BoolValue", "TensorShapeValue", "TensorDtypeValue", "TensorSpecValue", "TypeSpecValue", "BoundedTensorSpecValue", "ListValue", "TupleValue", "DictValue", "NamedTupleValue", "Kind", }); - internal_static_tensorflow_NoneValue_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_tensorflow_NoneValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_NoneValue_descriptor, - new java.lang.String[] { }); - internal_static_tensorflow_ListValue_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_tensorflow_ListValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_ListValue_descriptor, - new java.lang.String[] { "Values", }); - internal_static_tensorflow_TupleValue_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_tensorflow_TupleValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_TupleValue_descriptor, - new java.lang.String[] { "Values", }); - internal_static_tensorflow_DictValue_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_tensorflow_DictValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_DictValue_descriptor, - new java.lang.String[] { "Fields", }); - internal_static_tensorflow_DictValue_FieldsEntry_descriptor = - internal_static_tensorflow_DictValue_descriptor.getNestedTypes().get(0); - internal_static_tensorflow_DictValue_FieldsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_DictValue_FieldsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_tensorflow_PairValue_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_tensorflow_PairValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_PairValue_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_tensorflow_NamedTupleValue_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_tensorflow_NamedTupleValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_NamedTupleValue_descriptor, - new java.lang.String[] { "Name", "Values", }); - internal_static_tensorflow_TensorSpecProto_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_tensorflow_TensorSpecProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_TensorSpecProto_descriptor, - new java.lang.String[] { "Name", "Shape", "Dtype", }); - internal_static_tensorflow_BoundedTensorSpecProto_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_tensorflow_BoundedTensorSpecProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_BoundedTensorSpecProto_descriptor, - new java.lang.String[] { "Name", "Shape", "Dtype", "Minimum", "Maximum", }); - internal_static_tensorflow_TypeSpecProto_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_tensorflow_TypeSpecProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tensorflow_TypeSpecProto_descriptor, - new java.lang.String[] { "TypeSpecClass", "TypeState", "TypeSpecClassName", "NumFlatComponents", }); - org.tensorflow.proto.framework.TensorProtos.getDescriptor(); - org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(); - org.tensorflow.proto.framework.TypesProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/StructuredValue.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/StructuredValue.java deleted file mode 100644 index 327e919c2ab..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/StructuredValue.java +++ /dev/null @@ -1,3423 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/struct.proto - -package org.tensorflow.proto.framework; - -/** - *
- * `StructuredValue` represents a dynamically typed value representing various
- * data structures that are inspired by Python data structures typically used in
- * TensorFlow functions as inputs and outputs.
- * For example when saving a Layer there may be a `training` argument. If the
- * user passes a boolean True/False, that switches between two concrete
- * TensorFlow functions. In order to switch between them in the same way after
- * loading the SavedModel, we need to represent "True" and "False".
- * A more advanced example might be a function which takes a list of
- * dictionaries mapping from strings to Tensors. In order to map from
- * user-specified arguments `[{"a": tf.constant(1.)}, {"q": tf.constant(3.)}]`
- * after load to the right saved TensorFlow function, we need to represent the
- * nested structure and the strings, recording that we have a trace for anything
- * matching `[{"a": tf.TensorSpec(None, tf.float32)}, {"q": tf.TensorSpec([],
- * tf.float64)}]` as an example.
- * Likewise functions may return nested structures of Tensors, for example
- * returning a dictionary mapping from strings to Tensors. In order for the
- * loaded function to return the same structure we need to serialize it.
- * This is an ergonomic aid for working with loaded SavedModels, not a promise
- * to serialize all possible function signatures. For example we do not expect
- * to pickle generic Python objects, and ideally we'd stay language-agnostic.
- * 
- * - * Protobuf type {@code tensorflow.StructuredValue} - */ -public final class StructuredValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.StructuredValue) - StructuredValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use StructuredValue.newBuilder() to construct. - private StructuredValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StructuredValue() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StructuredValue(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StructuredValue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - org.tensorflow.proto.framework.NoneValue.Builder subBuilder = null; - if (kindCase_ == 1) { - subBuilder = ((org.tensorflow.proto.framework.NoneValue) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.framework.NoneValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.NoneValue) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 1; - break; - } - case 89: { - kindCase_ = 11; - kind_ = input.readDouble(); - break; - } - case 96: { - kindCase_ = 12; - kind_ = input.readSInt64(); - break; - } - case 106: { - java.lang.String s = input.readStringRequireUtf8(); - kindCase_ = 13; - kind_ = s; - break; - } - case 112: { - kindCase_ = 14; - kind_ = input.readBool(); - break; - } - case 250: { - org.tensorflow.proto.framework.TensorShapeProto.Builder subBuilder = null; - if (kindCase_ == 31) { - subBuilder = ((org.tensorflow.proto.framework.TensorShapeProto) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.framework.TensorShapeProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.TensorShapeProto) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 31; - break; - } - case 256: { - int rawValue = input.readEnum(); - kindCase_ = 32; - kind_ = rawValue; - break; - } - case 266: { - org.tensorflow.proto.framework.TensorSpecProto.Builder subBuilder = null; - if (kindCase_ == 33) { - subBuilder = ((org.tensorflow.proto.framework.TensorSpecProto) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.framework.TensorSpecProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.TensorSpecProto) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 33; - break; - } - case 274: { - org.tensorflow.proto.framework.TypeSpecProto.Builder subBuilder = null; - if (kindCase_ == 34) { - subBuilder = ((org.tensorflow.proto.framework.TypeSpecProto) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.framework.TypeSpecProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.TypeSpecProto) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 34; - break; - } - case 282: { - org.tensorflow.proto.framework.BoundedTensorSpecProto.Builder subBuilder = null; - if (kindCase_ == 35) { - subBuilder = ((org.tensorflow.proto.framework.BoundedTensorSpecProto) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.framework.BoundedTensorSpecProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.BoundedTensorSpecProto) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 35; - break; - } - case 410: { - org.tensorflow.proto.framework.ListValue.Builder subBuilder = null; - if (kindCase_ == 51) { - subBuilder = ((org.tensorflow.proto.framework.ListValue) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.framework.ListValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.ListValue) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 51; - break; - } - case 418: { - org.tensorflow.proto.framework.TupleValue.Builder subBuilder = null; - if (kindCase_ == 52) { - subBuilder = ((org.tensorflow.proto.framework.TupleValue) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.framework.TupleValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.TupleValue) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 52; - break; - } - case 426: { - org.tensorflow.proto.framework.DictValue.Builder subBuilder = null; - if (kindCase_ == 53) { - subBuilder = ((org.tensorflow.proto.framework.DictValue) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.framework.DictValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.DictValue) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 53; - break; - } - case 434: { - org.tensorflow.proto.framework.NamedTupleValue.Builder subBuilder = null; - if (kindCase_ == 54) { - subBuilder = ((org.tensorflow.proto.framework.NamedTupleValue) kind_).toBuilder(); - } - kind_ = - input.readMessage(org.tensorflow.proto.framework.NamedTupleValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((org.tensorflow.proto.framework.NamedTupleValue) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 54; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_StructuredValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_StructuredValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.StructuredValue.class, org.tensorflow.proto.framework.StructuredValue.Builder.class); - } - - private int kindCase_ = 0; - private java.lang.Object kind_; - public enum KindCase - implements com.google.protobuf.Internal.EnumLite { - NONE_VALUE(1), - FLOAT64_VALUE(11), - INT64_VALUE(12), - STRING_VALUE(13), - BOOL_VALUE(14), - TENSOR_SHAPE_VALUE(31), - TENSOR_DTYPE_VALUE(32), - TENSOR_SPEC_VALUE(33), - TYPE_SPEC_VALUE(34), - BOUNDED_TENSOR_SPEC_VALUE(35), - LIST_VALUE(51), - TUPLE_VALUE(52), - DICT_VALUE(53), - NAMED_TUPLE_VALUE(54), - KIND_NOT_SET(0); - private final int value; - private KindCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static KindCase valueOf(int value) { - return forNumber(value); - } - - public static KindCase forNumber(int value) { - switch (value) { - case 1: return NONE_VALUE; - case 11: return FLOAT64_VALUE; - case 12: return INT64_VALUE; - case 13: return STRING_VALUE; - case 14: return BOOL_VALUE; - case 31: return TENSOR_SHAPE_VALUE; - case 32: return TENSOR_DTYPE_VALUE; - case 33: return TENSOR_SPEC_VALUE; - case 34: return TYPE_SPEC_VALUE; - case 35: return BOUNDED_TENSOR_SPEC_VALUE; - case 51: return LIST_VALUE; - case 52: return TUPLE_VALUE; - case 53: return DICT_VALUE; - case 54: return NAMED_TUPLE_VALUE; - case 0: return KIND_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public KindCase - getKindCase() { - return KindCase.forNumber( - kindCase_); - } - - public static final int NONE_VALUE_FIELD_NUMBER = 1; - /** - *
-   * Represents None.
-   * 
- * - * .tensorflow.NoneValue none_value = 1; - */ - public boolean hasNoneValue() { - return kindCase_ == 1; - } - /** - *
-   * Represents None.
-   * 
- * - * .tensorflow.NoneValue none_value = 1; - */ - public org.tensorflow.proto.framework.NoneValue getNoneValue() { - if (kindCase_ == 1) { - return (org.tensorflow.proto.framework.NoneValue) kind_; - } - return org.tensorflow.proto.framework.NoneValue.getDefaultInstance(); - } - /** - *
-   * Represents None.
-   * 
- * - * .tensorflow.NoneValue none_value = 1; - */ - public org.tensorflow.proto.framework.NoneValueOrBuilder getNoneValueOrBuilder() { - if (kindCase_ == 1) { - return (org.tensorflow.proto.framework.NoneValue) kind_; - } - return org.tensorflow.proto.framework.NoneValue.getDefaultInstance(); - } - - public static final int FLOAT64_VALUE_FIELD_NUMBER = 11; - /** - *
-   * Represents a double-precision floating-point value (a Python `float`).
-   * 
- * - * double float64_value = 11; - */ - public double getFloat64Value() { - if (kindCase_ == 11) { - return (java.lang.Double) kind_; - } - return 0D; - } - - public static final int INT64_VALUE_FIELD_NUMBER = 12; - /** - *
-   * Represents a signed integer value, limited to 64 bits.
-   * Larger values from Python's arbitrary-precision integers are unsupported.
-   * 
- * - * sint64 int64_value = 12; - */ - public long getInt64Value() { - if (kindCase_ == 12) { - return (java.lang.Long) kind_; - } - return 0L; - } - - public static final int STRING_VALUE_FIELD_NUMBER = 13; - /** - *
-   * Represents a string of Unicode characters stored in a Python `str`.
-   * In Python 3, this is exactly what type `str` is.
-   * In Python 2, this is the UTF-8 encoding of the characters.
-   * For strings with ASCII characters only (as often used in TensorFlow code)
-   * there is effectively no difference between the language versions.
-   * The obsolescent `unicode` type of Python 2 is not supported here.
-   * 
- * - * string string_value = 13; - */ - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (kindCase_ == 13) { - ref = kind_; - } - 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(); - if (kindCase_ == 13) { - kind_ = s; - } - return s; - } - } - /** - *
-   * Represents a string of Unicode characters stored in a Python `str`.
-   * In Python 3, this is exactly what type `str` is.
-   * In Python 2, this is the UTF-8 encoding of the characters.
-   * For strings with ASCII characters only (as often used in TensorFlow code)
-   * there is effectively no difference between the language versions.
-   * The obsolescent `unicode` type of Python 2 is not supported here.
-   * 
- * - * string string_value = 13; - */ - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = ""; - if (kindCase_ == 13) { - ref = kind_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (kindCase_ == 13) { - kind_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BOOL_VALUE_FIELD_NUMBER = 14; - /** - *
-   * Represents a boolean value.
-   * 
- * - * bool bool_value = 14; - */ - public boolean getBoolValue() { - if (kindCase_ == 14) { - return (java.lang.Boolean) kind_; - } - return false; - } - - public static final int TENSOR_SHAPE_VALUE_FIELD_NUMBER = 31; - /** - *
-   * Represents a TensorShape.
-   * 
- * - * .tensorflow.TensorShapeProto tensor_shape_value = 31; - */ - public boolean hasTensorShapeValue() { - return kindCase_ == 31; - } - /** - *
-   * Represents a TensorShape.
-   * 
- * - * .tensorflow.TensorShapeProto tensor_shape_value = 31; - */ - public org.tensorflow.proto.framework.TensorShapeProto getTensorShapeValue() { - if (kindCase_ == 31) { - return (org.tensorflow.proto.framework.TensorShapeProto) kind_; - } - return org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance(); - } - /** - *
-   * Represents a TensorShape.
-   * 
- * - * .tensorflow.TensorShapeProto tensor_shape_value = 31; - */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getTensorShapeValueOrBuilder() { - if (kindCase_ == 31) { - return (org.tensorflow.proto.framework.TensorShapeProto) kind_; - } - return org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance(); - } - - public static final int TENSOR_DTYPE_VALUE_FIELD_NUMBER = 32; - /** - *
-   * Represents an enum value for dtype.
-   * 
- * - * .tensorflow.DataType tensor_dtype_value = 32; - */ - public int getTensorDtypeValueValue() { - if (kindCase_ == 32) { - return (java.lang.Integer) kind_; - } - return 0; - } - /** - *
-   * Represents an enum value for dtype.
-   * 
- * - * .tensorflow.DataType tensor_dtype_value = 32; - */ - public org.tensorflow.proto.framework.DataType getTensorDtypeValue() { - if (kindCase_ == 32) { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf( - (java.lang.Integer) kind_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - return org.tensorflow.proto.framework.DataType.DT_INVALID; - } - - public static final int TENSOR_SPEC_VALUE_FIELD_NUMBER = 33; - /** - *
-   * Represents a value for tf.TensorSpec.
-   * 
- * - * .tensorflow.TensorSpecProto tensor_spec_value = 33; - */ - public boolean hasTensorSpecValue() { - return kindCase_ == 33; - } - /** - *
-   * Represents a value for tf.TensorSpec.
-   * 
- * - * .tensorflow.TensorSpecProto tensor_spec_value = 33; - */ - public org.tensorflow.proto.framework.TensorSpecProto getTensorSpecValue() { - if (kindCase_ == 33) { - return (org.tensorflow.proto.framework.TensorSpecProto) kind_; - } - return org.tensorflow.proto.framework.TensorSpecProto.getDefaultInstance(); - } - /** - *
-   * Represents a value for tf.TensorSpec.
-   * 
- * - * .tensorflow.TensorSpecProto tensor_spec_value = 33; - */ - public org.tensorflow.proto.framework.TensorSpecProtoOrBuilder getTensorSpecValueOrBuilder() { - if (kindCase_ == 33) { - return (org.tensorflow.proto.framework.TensorSpecProto) kind_; - } - return org.tensorflow.proto.framework.TensorSpecProto.getDefaultInstance(); - } - - public static final int TYPE_SPEC_VALUE_FIELD_NUMBER = 34; - /** - *
-   * Represents a value for tf.TypeSpec.
-   * 
- * - * .tensorflow.TypeSpecProto type_spec_value = 34; - */ - public boolean hasTypeSpecValue() { - return kindCase_ == 34; - } - /** - *
-   * Represents a value for tf.TypeSpec.
-   * 
- * - * .tensorflow.TypeSpecProto type_spec_value = 34; - */ - public org.tensorflow.proto.framework.TypeSpecProto getTypeSpecValue() { - if (kindCase_ == 34) { - return (org.tensorflow.proto.framework.TypeSpecProto) kind_; - } - return org.tensorflow.proto.framework.TypeSpecProto.getDefaultInstance(); - } - /** - *
-   * Represents a value for tf.TypeSpec.
-   * 
- * - * .tensorflow.TypeSpecProto type_spec_value = 34; - */ - public org.tensorflow.proto.framework.TypeSpecProtoOrBuilder getTypeSpecValueOrBuilder() { - if (kindCase_ == 34) { - return (org.tensorflow.proto.framework.TypeSpecProto) kind_; - } - return org.tensorflow.proto.framework.TypeSpecProto.getDefaultInstance(); - } - - public static final int BOUNDED_TENSOR_SPEC_VALUE_FIELD_NUMBER = 35; - /** - *
-   * Represents a value for tf.BoundedTensorSpec.
-   * 
- * - * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; - */ - public boolean hasBoundedTensorSpecValue() { - return kindCase_ == 35; - } - /** - *
-   * Represents a value for tf.BoundedTensorSpec.
-   * 
- * - * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; - */ - public org.tensorflow.proto.framework.BoundedTensorSpecProto getBoundedTensorSpecValue() { - if (kindCase_ == 35) { - return (org.tensorflow.proto.framework.BoundedTensorSpecProto) kind_; - } - return org.tensorflow.proto.framework.BoundedTensorSpecProto.getDefaultInstance(); - } - /** - *
-   * Represents a value for tf.BoundedTensorSpec.
-   * 
- * - * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; - */ - public org.tensorflow.proto.framework.BoundedTensorSpecProtoOrBuilder getBoundedTensorSpecValueOrBuilder() { - if (kindCase_ == 35) { - return (org.tensorflow.proto.framework.BoundedTensorSpecProto) kind_; - } - return org.tensorflow.proto.framework.BoundedTensorSpecProto.getDefaultInstance(); - } - - public static final int LIST_VALUE_FIELD_NUMBER = 51; - /** - *
-   * Represents a list of `Value`.
-   * 
- * - * .tensorflow.ListValue list_value = 51; - */ - public boolean hasListValue() { - return kindCase_ == 51; - } - /** - *
-   * Represents a list of `Value`.
-   * 
- * - * .tensorflow.ListValue list_value = 51; - */ - public org.tensorflow.proto.framework.ListValue getListValue() { - if (kindCase_ == 51) { - return (org.tensorflow.proto.framework.ListValue) kind_; - } - return org.tensorflow.proto.framework.ListValue.getDefaultInstance(); - } - /** - *
-   * Represents a list of `Value`.
-   * 
- * - * .tensorflow.ListValue list_value = 51; - */ - public org.tensorflow.proto.framework.ListValueOrBuilder getListValueOrBuilder() { - if (kindCase_ == 51) { - return (org.tensorflow.proto.framework.ListValue) kind_; - } - return org.tensorflow.proto.framework.ListValue.getDefaultInstance(); - } - - public static final int TUPLE_VALUE_FIELD_NUMBER = 52; - /** - *
-   * Represents a tuple of `Value`.
-   * 
- * - * .tensorflow.TupleValue tuple_value = 52; - */ - public boolean hasTupleValue() { - return kindCase_ == 52; - } - /** - *
-   * Represents a tuple of `Value`.
-   * 
- * - * .tensorflow.TupleValue tuple_value = 52; - */ - public org.tensorflow.proto.framework.TupleValue getTupleValue() { - if (kindCase_ == 52) { - return (org.tensorflow.proto.framework.TupleValue) kind_; - } - return org.tensorflow.proto.framework.TupleValue.getDefaultInstance(); - } - /** - *
-   * Represents a tuple of `Value`.
-   * 
- * - * .tensorflow.TupleValue tuple_value = 52; - */ - public org.tensorflow.proto.framework.TupleValueOrBuilder getTupleValueOrBuilder() { - if (kindCase_ == 52) { - return (org.tensorflow.proto.framework.TupleValue) kind_; - } - return org.tensorflow.proto.framework.TupleValue.getDefaultInstance(); - } - - public static final int DICT_VALUE_FIELD_NUMBER = 53; - /** - *
-   * Represents a dict `Value`.
-   * 
- * - * .tensorflow.DictValue dict_value = 53; - */ - public boolean hasDictValue() { - return kindCase_ == 53; - } - /** - *
-   * Represents a dict `Value`.
-   * 
- * - * .tensorflow.DictValue dict_value = 53; - */ - public org.tensorflow.proto.framework.DictValue getDictValue() { - if (kindCase_ == 53) { - return (org.tensorflow.proto.framework.DictValue) kind_; - } - return org.tensorflow.proto.framework.DictValue.getDefaultInstance(); - } - /** - *
-   * Represents a dict `Value`.
-   * 
- * - * .tensorflow.DictValue dict_value = 53; - */ - public org.tensorflow.proto.framework.DictValueOrBuilder getDictValueOrBuilder() { - if (kindCase_ == 53) { - return (org.tensorflow.proto.framework.DictValue) kind_; - } - return org.tensorflow.proto.framework.DictValue.getDefaultInstance(); - } - - public static final int NAMED_TUPLE_VALUE_FIELD_NUMBER = 54; - /** - *
-   * Represents Python's namedtuple.
-   * 
- * - * .tensorflow.NamedTupleValue named_tuple_value = 54; - */ - public boolean hasNamedTupleValue() { - return kindCase_ == 54; - } - /** - *
-   * Represents Python's namedtuple.
-   * 
- * - * .tensorflow.NamedTupleValue named_tuple_value = 54; - */ - public org.tensorflow.proto.framework.NamedTupleValue getNamedTupleValue() { - if (kindCase_ == 54) { - return (org.tensorflow.proto.framework.NamedTupleValue) kind_; - } - return org.tensorflow.proto.framework.NamedTupleValue.getDefaultInstance(); - } - /** - *
-   * Represents Python's namedtuple.
-   * 
- * - * .tensorflow.NamedTupleValue named_tuple_value = 54; - */ - public org.tensorflow.proto.framework.NamedTupleValueOrBuilder getNamedTupleValueOrBuilder() { - if (kindCase_ == 54) { - return (org.tensorflow.proto.framework.NamedTupleValue) kind_; - } - return org.tensorflow.proto.framework.NamedTupleValue.getDefaultInstance(); - } - - 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 (kindCase_ == 1) { - output.writeMessage(1, (org.tensorflow.proto.framework.NoneValue) kind_); - } - if (kindCase_ == 11) { - output.writeDouble( - 11, (double)((java.lang.Double) kind_)); - } - if (kindCase_ == 12) { - output.writeSInt64( - 12, (long)((java.lang.Long) kind_)); - } - if (kindCase_ == 13) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, kind_); - } - if (kindCase_ == 14) { - output.writeBool( - 14, (boolean)((java.lang.Boolean) kind_)); - } - if (kindCase_ == 31) { - output.writeMessage(31, (org.tensorflow.proto.framework.TensorShapeProto) kind_); - } - if (kindCase_ == 32) { - output.writeEnum(32, ((java.lang.Integer) kind_)); - } - if (kindCase_ == 33) { - output.writeMessage(33, (org.tensorflow.proto.framework.TensorSpecProto) kind_); - } - if (kindCase_ == 34) { - output.writeMessage(34, (org.tensorflow.proto.framework.TypeSpecProto) kind_); - } - if (kindCase_ == 35) { - output.writeMessage(35, (org.tensorflow.proto.framework.BoundedTensorSpecProto) kind_); - } - if (kindCase_ == 51) { - output.writeMessage(51, (org.tensorflow.proto.framework.ListValue) kind_); - } - if (kindCase_ == 52) { - output.writeMessage(52, (org.tensorflow.proto.framework.TupleValue) kind_); - } - if (kindCase_ == 53) { - output.writeMessage(53, (org.tensorflow.proto.framework.DictValue) kind_); - } - if (kindCase_ == 54) { - output.writeMessage(54, (org.tensorflow.proto.framework.NamedTupleValue) kind_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (kindCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (org.tensorflow.proto.framework.NoneValue) kind_); - } - if (kindCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize( - 11, (double)((java.lang.Double) kind_)); - } - if (kindCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size( - 12, (long)((java.lang.Long) kind_)); - } - if (kindCase_ == 13) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, kind_); - } - if (kindCase_ == 14) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 14, (boolean)((java.lang.Boolean) kind_)); - } - if (kindCase_ == 31) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(31, (org.tensorflow.proto.framework.TensorShapeProto) kind_); - } - if (kindCase_ == 32) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(32, ((java.lang.Integer) kind_)); - } - if (kindCase_ == 33) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(33, (org.tensorflow.proto.framework.TensorSpecProto) kind_); - } - if (kindCase_ == 34) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(34, (org.tensorflow.proto.framework.TypeSpecProto) kind_); - } - if (kindCase_ == 35) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(35, (org.tensorflow.proto.framework.BoundedTensorSpecProto) kind_); - } - if (kindCase_ == 51) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(51, (org.tensorflow.proto.framework.ListValue) kind_); - } - if (kindCase_ == 52) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(52, (org.tensorflow.proto.framework.TupleValue) kind_); - } - if (kindCase_ == 53) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(53, (org.tensorflow.proto.framework.DictValue) kind_); - } - if (kindCase_ == 54) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(54, (org.tensorflow.proto.framework.NamedTupleValue) kind_); - } - 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 org.tensorflow.proto.framework.StructuredValue)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.StructuredValue other = (org.tensorflow.proto.framework.StructuredValue) obj; - - if (!getKindCase().equals(other.getKindCase())) return false; - switch (kindCase_) { - case 1: - if (!getNoneValue() - .equals(other.getNoneValue())) return false; - break; - case 11: - if (java.lang.Double.doubleToLongBits(getFloat64Value()) - != java.lang.Double.doubleToLongBits( - other.getFloat64Value())) return false; - break; - case 12: - if (getInt64Value() - != other.getInt64Value()) return false; - break; - case 13: - if (!getStringValue() - .equals(other.getStringValue())) return false; - break; - case 14: - if (getBoolValue() - != other.getBoolValue()) return false; - break; - case 31: - if (!getTensorShapeValue() - .equals(other.getTensorShapeValue())) return false; - break; - case 32: - if (getTensorDtypeValueValue() - != other.getTensorDtypeValueValue()) return false; - break; - case 33: - if (!getTensorSpecValue() - .equals(other.getTensorSpecValue())) return false; - break; - case 34: - if (!getTypeSpecValue() - .equals(other.getTypeSpecValue())) return false; - break; - case 35: - if (!getBoundedTensorSpecValue() - .equals(other.getBoundedTensorSpecValue())) return false; - break; - case 51: - if (!getListValue() - .equals(other.getListValue())) return false; - break; - case 52: - if (!getTupleValue() - .equals(other.getTupleValue())) return false; - break; - case 53: - if (!getDictValue() - .equals(other.getDictValue())) return false; - break; - case 54: - if (!getNamedTupleValue() - .equals(other.getNamedTupleValue())) return false; - break; - case 0: - default: - } - 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(); - switch (kindCase_) { - case 1: - hash = (37 * hash) + NONE_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getNoneValue().hashCode(); - break; - case 11: - hash = (37 * hash) + FLOAT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getFloat64Value())); - break; - case 12: - hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInt64Value()); - break; - case 13: - hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getStringValue().hashCode(); - break; - case 14: - hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBoolValue()); - break; - case 31: - hash = (37 * hash) + TENSOR_SHAPE_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getTensorShapeValue().hashCode(); - break; - case 32: - hash = (37 * hash) + TENSOR_DTYPE_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getTensorDtypeValueValue(); - break; - case 33: - hash = (37 * hash) + TENSOR_SPEC_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getTensorSpecValue().hashCode(); - break; - case 34: - hash = (37 * hash) + TYPE_SPEC_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getTypeSpecValue().hashCode(); - break; - case 35: - hash = (37 * hash) + BOUNDED_TENSOR_SPEC_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getBoundedTensorSpecValue().hashCode(); - break; - case 51: - hash = (37 * hash) + LIST_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getListValue().hashCode(); - break; - case 52: - hash = (37 * hash) + TUPLE_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getTupleValue().hashCode(); - break; - case 53: - hash = (37 * hash) + DICT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getDictValue().hashCode(); - break; - case 54: - hash = (37 * hash) + NAMED_TUPLE_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getNamedTupleValue().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.StructuredValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.StructuredValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.StructuredValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.StructuredValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.StructuredValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.StructuredValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.StructuredValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.StructuredValue 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 org.tensorflow.proto.framework.StructuredValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.StructuredValue 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 org.tensorflow.proto.framework.StructuredValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.StructuredValue 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(org.tensorflow.proto.framework.StructuredValue 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; - } - /** - *
-   * `StructuredValue` represents a dynamically typed value representing various
-   * data structures that are inspired by Python data structures typically used in
-   * TensorFlow functions as inputs and outputs.
-   * For example when saving a Layer there may be a `training` argument. If the
-   * user passes a boolean True/False, that switches between two concrete
-   * TensorFlow functions. In order to switch between them in the same way after
-   * loading the SavedModel, we need to represent "True" and "False".
-   * A more advanced example might be a function which takes a list of
-   * dictionaries mapping from strings to Tensors. In order to map from
-   * user-specified arguments `[{"a": tf.constant(1.)}, {"q": tf.constant(3.)}]`
-   * after load to the right saved TensorFlow function, we need to represent the
-   * nested structure and the strings, recording that we have a trace for anything
-   * matching `[{"a": tf.TensorSpec(None, tf.float32)}, {"q": tf.TensorSpec([],
-   * tf.float64)}]` as an example.
-   * Likewise functions may return nested structures of Tensors, for example
-   * returning a dictionary mapping from strings to Tensors. In order for the
-   * loaded function to return the same structure we need to serialize it.
-   * This is an ergonomic aid for working with loaded SavedModels, not a promise
-   * to serialize all possible function signatures. For example we do not expect
-   * to pickle generic Python objects, and ideally we'd stay language-agnostic.
-   * 
- * - * Protobuf type {@code tensorflow.StructuredValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.StructuredValue) - org.tensorflow.proto.framework.StructuredValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_StructuredValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_StructuredValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.StructuredValue.class, org.tensorflow.proto.framework.StructuredValue.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.StructuredValue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - kindCase_ = 0; - kind_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.StructProtos.internal_static_tensorflow_StructuredValue_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.StructuredValue getDefaultInstanceForType() { - return org.tensorflow.proto.framework.StructuredValue.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.StructuredValue build() { - org.tensorflow.proto.framework.StructuredValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.StructuredValue buildPartial() { - org.tensorflow.proto.framework.StructuredValue result = new org.tensorflow.proto.framework.StructuredValue(this); - if (kindCase_ == 1) { - if (noneValueBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = noneValueBuilder_.build(); - } - } - if (kindCase_ == 11) { - result.kind_ = kind_; - } - if (kindCase_ == 12) { - result.kind_ = kind_; - } - if (kindCase_ == 13) { - result.kind_ = kind_; - } - if (kindCase_ == 14) { - result.kind_ = kind_; - } - if (kindCase_ == 31) { - if (tensorShapeValueBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = tensorShapeValueBuilder_.build(); - } - } - if (kindCase_ == 32) { - result.kind_ = kind_; - } - if (kindCase_ == 33) { - if (tensorSpecValueBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = tensorSpecValueBuilder_.build(); - } - } - if (kindCase_ == 34) { - if (typeSpecValueBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = typeSpecValueBuilder_.build(); - } - } - if (kindCase_ == 35) { - if (boundedTensorSpecValueBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = boundedTensorSpecValueBuilder_.build(); - } - } - if (kindCase_ == 51) { - if (listValueBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = listValueBuilder_.build(); - } - } - if (kindCase_ == 52) { - if (tupleValueBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = tupleValueBuilder_.build(); - } - } - if (kindCase_ == 53) { - if (dictValueBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = dictValueBuilder_.build(); - } - } - if (kindCase_ == 54) { - if (namedTupleValueBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = namedTupleValueBuilder_.build(); - } - } - result.kindCase_ = kindCase_; - 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 org.tensorflow.proto.framework.StructuredValue) { - return mergeFrom((org.tensorflow.proto.framework.StructuredValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.StructuredValue other) { - if (other == org.tensorflow.proto.framework.StructuredValue.getDefaultInstance()) return this; - switch (other.getKindCase()) { - case NONE_VALUE: { - mergeNoneValue(other.getNoneValue()); - break; - } - case FLOAT64_VALUE: { - setFloat64Value(other.getFloat64Value()); - break; - } - case INT64_VALUE: { - setInt64Value(other.getInt64Value()); - break; - } - case STRING_VALUE: { - kindCase_ = 13; - kind_ = other.kind_; - onChanged(); - break; - } - case BOOL_VALUE: { - setBoolValue(other.getBoolValue()); - break; - } - case TENSOR_SHAPE_VALUE: { - mergeTensorShapeValue(other.getTensorShapeValue()); - break; - } - case TENSOR_DTYPE_VALUE: { - setTensorDtypeValueValue(other.getTensorDtypeValueValue()); - break; - } - case TENSOR_SPEC_VALUE: { - mergeTensorSpecValue(other.getTensorSpecValue()); - break; - } - case TYPE_SPEC_VALUE: { - mergeTypeSpecValue(other.getTypeSpecValue()); - break; - } - case BOUNDED_TENSOR_SPEC_VALUE: { - mergeBoundedTensorSpecValue(other.getBoundedTensorSpecValue()); - break; - } - case LIST_VALUE: { - mergeListValue(other.getListValue()); - break; - } - case TUPLE_VALUE: { - mergeTupleValue(other.getTupleValue()); - break; - } - case DICT_VALUE: { - mergeDictValue(other.getDictValue()); - break; - } - case NAMED_TUPLE_VALUE: { - mergeNamedTupleValue(other.getNamedTupleValue()); - break; - } - case KIND_NOT_SET: { - break; - } - } - 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 { - org.tensorflow.proto.framework.StructuredValue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.StructuredValue) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int kindCase_ = 0; - private java.lang.Object kind_; - public KindCase - getKindCase() { - return KindCase.forNumber( - kindCase_); - } - - public Builder clearKind() { - kindCase_ = 0; - kind_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.NoneValue, org.tensorflow.proto.framework.NoneValue.Builder, org.tensorflow.proto.framework.NoneValueOrBuilder> noneValueBuilder_; - /** - *
-     * Represents None.
-     * 
- * - * .tensorflow.NoneValue none_value = 1; - */ - public boolean hasNoneValue() { - return kindCase_ == 1; - } - /** - *
-     * Represents None.
-     * 
- * - * .tensorflow.NoneValue none_value = 1; - */ - public org.tensorflow.proto.framework.NoneValue getNoneValue() { - if (noneValueBuilder_ == null) { - if (kindCase_ == 1) { - return (org.tensorflow.proto.framework.NoneValue) kind_; - } - return org.tensorflow.proto.framework.NoneValue.getDefaultInstance(); - } else { - if (kindCase_ == 1) { - return noneValueBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.NoneValue.getDefaultInstance(); - } - } - /** - *
-     * Represents None.
-     * 
- * - * .tensorflow.NoneValue none_value = 1; - */ - public Builder setNoneValue(org.tensorflow.proto.framework.NoneValue value) { - if (noneValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - noneValueBuilder_.setMessage(value); - } - kindCase_ = 1; - return this; - } - /** - *
-     * Represents None.
-     * 
- * - * .tensorflow.NoneValue none_value = 1; - */ - public Builder setNoneValue( - org.tensorflow.proto.framework.NoneValue.Builder builderForValue) { - if (noneValueBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - noneValueBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 1; - return this; - } - /** - *
-     * Represents None.
-     * 
- * - * .tensorflow.NoneValue none_value = 1; - */ - public Builder mergeNoneValue(org.tensorflow.proto.framework.NoneValue value) { - if (noneValueBuilder_ == null) { - if (kindCase_ == 1 && - kind_ != org.tensorflow.proto.framework.NoneValue.getDefaultInstance()) { - kind_ = org.tensorflow.proto.framework.NoneValue.newBuilder((org.tensorflow.proto.framework.NoneValue) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 1) { - noneValueBuilder_.mergeFrom(value); - } - noneValueBuilder_.setMessage(value); - } - kindCase_ = 1; - return this; - } - /** - *
-     * Represents None.
-     * 
- * - * .tensorflow.NoneValue none_value = 1; - */ - public Builder clearNoneValue() { - if (noneValueBuilder_ == null) { - if (kindCase_ == 1) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 1) { - kindCase_ = 0; - kind_ = null; - } - noneValueBuilder_.clear(); - } - return this; - } - /** - *
-     * Represents None.
-     * 
- * - * .tensorflow.NoneValue none_value = 1; - */ - public org.tensorflow.proto.framework.NoneValue.Builder getNoneValueBuilder() { - return getNoneValueFieldBuilder().getBuilder(); - } - /** - *
-     * Represents None.
-     * 
- * - * .tensorflow.NoneValue none_value = 1; - */ - public org.tensorflow.proto.framework.NoneValueOrBuilder getNoneValueOrBuilder() { - if ((kindCase_ == 1) && (noneValueBuilder_ != null)) { - return noneValueBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 1) { - return (org.tensorflow.proto.framework.NoneValue) kind_; - } - return org.tensorflow.proto.framework.NoneValue.getDefaultInstance(); - } - } - /** - *
-     * Represents None.
-     * 
- * - * .tensorflow.NoneValue none_value = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.NoneValue, org.tensorflow.proto.framework.NoneValue.Builder, org.tensorflow.proto.framework.NoneValueOrBuilder> - getNoneValueFieldBuilder() { - if (noneValueBuilder_ == null) { - if (!(kindCase_ == 1)) { - kind_ = org.tensorflow.proto.framework.NoneValue.getDefaultInstance(); - } - noneValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.NoneValue, org.tensorflow.proto.framework.NoneValue.Builder, org.tensorflow.proto.framework.NoneValueOrBuilder>( - (org.tensorflow.proto.framework.NoneValue) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 1; - onChanged();; - return noneValueBuilder_; - } - - /** - *
-     * Represents a double-precision floating-point value (a Python `float`).
-     * 
- * - * double float64_value = 11; - */ - public double getFloat64Value() { - if (kindCase_ == 11) { - return (java.lang.Double) kind_; - } - return 0D; - } - /** - *
-     * Represents a double-precision floating-point value (a Python `float`).
-     * 
- * - * double float64_value = 11; - */ - public Builder setFloat64Value(double value) { - kindCase_ = 11; - kind_ = value; - onChanged(); - return this; - } - /** - *
-     * Represents a double-precision floating-point value (a Python `float`).
-     * 
- * - * double float64_value = 11; - */ - public Builder clearFloat64Value() { - if (kindCase_ == 11) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * Represents a signed integer value, limited to 64 bits.
-     * Larger values from Python's arbitrary-precision integers are unsupported.
-     * 
- * - * sint64 int64_value = 12; - */ - public long getInt64Value() { - if (kindCase_ == 12) { - return (java.lang.Long) kind_; - } - return 0L; - } - /** - *
-     * Represents a signed integer value, limited to 64 bits.
-     * Larger values from Python's arbitrary-precision integers are unsupported.
-     * 
- * - * sint64 int64_value = 12; - */ - public Builder setInt64Value(long value) { - kindCase_ = 12; - kind_ = value; - onChanged(); - return this; - } - /** - *
-     * Represents a signed integer value, limited to 64 bits.
-     * Larger values from Python's arbitrary-precision integers are unsupported.
-     * 
- * - * sint64 int64_value = 12; - */ - public Builder clearInt64Value() { - if (kindCase_ == 12) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * Represents a string of Unicode characters stored in a Python `str`.
-     * In Python 3, this is exactly what type `str` is.
-     * In Python 2, this is the UTF-8 encoding of the characters.
-     * For strings with ASCII characters only (as often used in TensorFlow code)
-     * there is effectively no difference between the language versions.
-     * The obsolescent `unicode` type of Python 2 is not supported here.
-     * 
- * - * string string_value = 13; - */ - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (kindCase_ == 13) { - ref = kind_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (kindCase_ == 13) { - kind_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Represents a string of Unicode characters stored in a Python `str`.
-     * In Python 3, this is exactly what type `str` is.
-     * In Python 2, this is the UTF-8 encoding of the characters.
-     * For strings with ASCII characters only (as often used in TensorFlow code)
-     * there is effectively no difference between the language versions.
-     * The obsolescent `unicode` type of Python 2 is not supported here.
-     * 
- * - * string string_value = 13; - */ - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = ""; - if (kindCase_ == 13) { - ref = kind_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (kindCase_ == 13) { - kind_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Represents a string of Unicode characters stored in a Python `str`.
-     * In Python 3, this is exactly what type `str` is.
-     * In Python 2, this is the UTF-8 encoding of the characters.
-     * For strings with ASCII characters only (as often used in TensorFlow code)
-     * there is effectively no difference between the language versions.
-     * The obsolescent `unicode` type of Python 2 is not supported here.
-     * 
- * - * string string_value = 13; - */ - public Builder setStringValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - kindCase_ = 13; - kind_ = value; - onChanged(); - return this; - } - /** - *
-     * Represents a string of Unicode characters stored in a Python `str`.
-     * In Python 3, this is exactly what type `str` is.
-     * In Python 2, this is the UTF-8 encoding of the characters.
-     * For strings with ASCII characters only (as often used in TensorFlow code)
-     * there is effectively no difference between the language versions.
-     * The obsolescent `unicode` type of Python 2 is not supported here.
-     * 
- * - * string string_value = 13; - */ - public Builder clearStringValue() { - if (kindCase_ == 13) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - return this; - } - /** - *
-     * Represents a string of Unicode characters stored in a Python `str`.
-     * In Python 3, this is exactly what type `str` is.
-     * In Python 2, this is the UTF-8 encoding of the characters.
-     * For strings with ASCII characters only (as often used in TensorFlow code)
-     * there is effectively no difference between the language versions.
-     * The obsolescent `unicode` type of Python 2 is not supported here.
-     * 
- * - * string string_value = 13; - */ - public Builder setStringValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - kindCase_ = 13; - kind_ = value; - onChanged(); - return this; - } - - /** - *
-     * Represents a boolean value.
-     * 
- * - * bool bool_value = 14; - */ - public boolean getBoolValue() { - if (kindCase_ == 14) { - return (java.lang.Boolean) kind_; - } - return false; - } - /** - *
-     * Represents a boolean value.
-     * 
- * - * bool bool_value = 14; - */ - public Builder setBoolValue(boolean value) { - kindCase_ = 14; - kind_ = value; - onChanged(); - return this; - } - /** - *
-     * Represents a boolean value.
-     * 
- * - * bool bool_value = 14; - */ - public Builder clearBoolValue() { - if (kindCase_ == 14) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> tensorShapeValueBuilder_; - /** - *
-     * Represents a TensorShape.
-     * 
- * - * .tensorflow.TensorShapeProto tensor_shape_value = 31; - */ - public boolean hasTensorShapeValue() { - return kindCase_ == 31; - } - /** - *
-     * Represents a TensorShape.
-     * 
- * - * .tensorflow.TensorShapeProto tensor_shape_value = 31; - */ - public org.tensorflow.proto.framework.TensorShapeProto getTensorShapeValue() { - if (tensorShapeValueBuilder_ == null) { - if (kindCase_ == 31) { - return (org.tensorflow.proto.framework.TensorShapeProto) kind_; - } - return org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance(); - } else { - if (kindCase_ == 31) { - return tensorShapeValueBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance(); - } - } - /** - *
-     * Represents a TensorShape.
-     * 
- * - * .tensorflow.TensorShapeProto tensor_shape_value = 31; - */ - public Builder setTensorShapeValue(org.tensorflow.proto.framework.TensorShapeProto value) { - if (tensorShapeValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - tensorShapeValueBuilder_.setMessage(value); - } - kindCase_ = 31; - return this; - } - /** - *
-     * Represents a TensorShape.
-     * 
- * - * .tensorflow.TensorShapeProto tensor_shape_value = 31; - */ - public Builder setTensorShapeValue( - org.tensorflow.proto.framework.TensorShapeProto.Builder builderForValue) { - if (tensorShapeValueBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - tensorShapeValueBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 31; - return this; - } - /** - *
-     * Represents a TensorShape.
-     * 
- * - * .tensorflow.TensorShapeProto tensor_shape_value = 31; - */ - public Builder mergeTensorShapeValue(org.tensorflow.proto.framework.TensorShapeProto value) { - if (tensorShapeValueBuilder_ == null) { - if (kindCase_ == 31 && - kind_ != org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance()) { - kind_ = org.tensorflow.proto.framework.TensorShapeProto.newBuilder((org.tensorflow.proto.framework.TensorShapeProto) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 31) { - tensorShapeValueBuilder_.mergeFrom(value); - } - tensorShapeValueBuilder_.setMessage(value); - } - kindCase_ = 31; - return this; - } - /** - *
-     * Represents a TensorShape.
-     * 
- * - * .tensorflow.TensorShapeProto tensor_shape_value = 31; - */ - public Builder clearTensorShapeValue() { - if (tensorShapeValueBuilder_ == null) { - if (kindCase_ == 31) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 31) { - kindCase_ = 0; - kind_ = null; - } - tensorShapeValueBuilder_.clear(); - } - return this; - } - /** - *
-     * Represents a TensorShape.
-     * 
- * - * .tensorflow.TensorShapeProto tensor_shape_value = 31; - */ - public org.tensorflow.proto.framework.TensorShapeProto.Builder getTensorShapeValueBuilder() { - return getTensorShapeValueFieldBuilder().getBuilder(); - } - /** - *
-     * Represents a TensorShape.
-     * 
- * - * .tensorflow.TensorShapeProto tensor_shape_value = 31; - */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getTensorShapeValueOrBuilder() { - if ((kindCase_ == 31) && (tensorShapeValueBuilder_ != null)) { - return tensorShapeValueBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 31) { - return (org.tensorflow.proto.framework.TensorShapeProto) kind_; - } - return org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance(); - } - } - /** - *
-     * Represents a TensorShape.
-     * 
- * - * .tensorflow.TensorShapeProto tensor_shape_value = 31; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> - getTensorShapeValueFieldBuilder() { - if (tensorShapeValueBuilder_ == null) { - if (!(kindCase_ == 31)) { - kind_ = org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance(); - } - tensorShapeValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder>( - (org.tensorflow.proto.framework.TensorShapeProto) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 31; - onChanged();; - return tensorShapeValueBuilder_; - } - - /** - *
-     * Represents an enum value for dtype.
-     * 
- * - * .tensorflow.DataType tensor_dtype_value = 32; - */ - public int getTensorDtypeValueValue() { - if (kindCase_ == 32) { - return ((java.lang.Integer) kind_).intValue(); - } - return 0; - } - /** - *
-     * Represents an enum value for dtype.
-     * 
- * - * .tensorflow.DataType tensor_dtype_value = 32; - */ - public Builder setTensorDtypeValueValue(int value) { - kindCase_ = 32; - kind_ = value; - onChanged(); - return this; - } - /** - *
-     * Represents an enum value for dtype.
-     * 
- * - * .tensorflow.DataType tensor_dtype_value = 32; - */ - public org.tensorflow.proto.framework.DataType getTensorDtypeValue() { - if (kindCase_ == 32) { - @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf( - (java.lang.Integer) kind_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; - } - return org.tensorflow.proto.framework.DataType.DT_INVALID; - } - /** - *
-     * Represents an enum value for dtype.
-     * 
- * - * .tensorflow.DataType tensor_dtype_value = 32; - */ - public Builder setTensorDtypeValue(org.tensorflow.proto.framework.DataType value) { - if (value == null) { - throw new NullPointerException(); - } - kindCase_ = 32; - kind_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Represents an enum value for dtype.
-     * 
- * - * .tensorflow.DataType tensor_dtype_value = 32; - */ - public Builder clearTensorDtypeValue() { - if (kindCase_ == 32) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorSpecProto, org.tensorflow.proto.framework.TensorSpecProto.Builder, org.tensorflow.proto.framework.TensorSpecProtoOrBuilder> tensorSpecValueBuilder_; - /** - *
-     * Represents a value for tf.TensorSpec.
-     * 
- * - * .tensorflow.TensorSpecProto tensor_spec_value = 33; - */ - public boolean hasTensorSpecValue() { - return kindCase_ == 33; - } - /** - *
-     * Represents a value for tf.TensorSpec.
-     * 
- * - * .tensorflow.TensorSpecProto tensor_spec_value = 33; - */ - public org.tensorflow.proto.framework.TensorSpecProto getTensorSpecValue() { - if (tensorSpecValueBuilder_ == null) { - if (kindCase_ == 33) { - return (org.tensorflow.proto.framework.TensorSpecProto) kind_; - } - return org.tensorflow.proto.framework.TensorSpecProto.getDefaultInstance(); - } else { - if (kindCase_ == 33) { - return tensorSpecValueBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.TensorSpecProto.getDefaultInstance(); - } - } - /** - *
-     * Represents a value for tf.TensorSpec.
-     * 
- * - * .tensorflow.TensorSpecProto tensor_spec_value = 33; - */ - public Builder setTensorSpecValue(org.tensorflow.proto.framework.TensorSpecProto value) { - if (tensorSpecValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - tensorSpecValueBuilder_.setMessage(value); - } - kindCase_ = 33; - return this; - } - /** - *
-     * Represents a value for tf.TensorSpec.
-     * 
- * - * .tensorflow.TensorSpecProto tensor_spec_value = 33; - */ - public Builder setTensorSpecValue( - org.tensorflow.proto.framework.TensorSpecProto.Builder builderForValue) { - if (tensorSpecValueBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - tensorSpecValueBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 33; - return this; - } - /** - *
-     * Represents a value for tf.TensorSpec.
-     * 
- * - * .tensorflow.TensorSpecProto tensor_spec_value = 33; - */ - public Builder mergeTensorSpecValue(org.tensorflow.proto.framework.TensorSpecProto value) { - if (tensorSpecValueBuilder_ == null) { - if (kindCase_ == 33 && - kind_ != org.tensorflow.proto.framework.TensorSpecProto.getDefaultInstance()) { - kind_ = org.tensorflow.proto.framework.TensorSpecProto.newBuilder((org.tensorflow.proto.framework.TensorSpecProto) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 33) { - tensorSpecValueBuilder_.mergeFrom(value); - } - tensorSpecValueBuilder_.setMessage(value); - } - kindCase_ = 33; - return this; - } - /** - *
-     * Represents a value for tf.TensorSpec.
-     * 
- * - * .tensorflow.TensorSpecProto tensor_spec_value = 33; - */ - public Builder clearTensorSpecValue() { - if (tensorSpecValueBuilder_ == null) { - if (kindCase_ == 33) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 33) { - kindCase_ = 0; - kind_ = null; - } - tensorSpecValueBuilder_.clear(); - } - return this; - } - /** - *
-     * Represents a value for tf.TensorSpec.
-     * 
- * - * .tensorflow.TensorSpecProto tensor_spec_value = 33; - */ - public org.tensorflow.proto.framework.TensorSpecProto.Builder getTensorSpecValueBuilder() { - return getTensorSpecValueFieldBuilder().getBuilder(); - } - /** - *
-     * Represents a value for tf.TensorSpec.
-     * 
- * - * .tensorflow.TensorSpecProto tensor_spec_value = 33; - */ - public org.tensorflow.proto.framework.TensorSpecProtoOrBuilder getTensorSpecValueOrBuilder() { - if ((kindCase_ == 33) && (tensorSpecValueBuilder_ != null)) { - return tensorSpecValueBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 33) { - return (org.tensorflow.proto.framework.TensorSpecProto) kind_; - } - return org.tensorflow.proto.framework.TensorSpecProto.getDefaultInstance(); - } - } - /** - *
-     * Represents a value for tf.TensorSpec.
-     * 
- * - * .tensorflow.TensorSpecProto tensor_spec_value = 33; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorSpecProto, org.tensorflow.proto.framework.TensorSpecProto.Builder, org.tensorflow.proto.framework.TensorSpecProtoOrBuilder> - getTensorSpecValueFieldBuilder() { - if (tensorSpecValueBuilder_ == null) { - if (!(kindCase_ == 33)) { - kind_ = org.tensorflow.proto.framework.TensorSpecProto.getDefaultInstance(); - } - tensorSpecValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorSpecProto, org.tensorflow.proto.framework.TensorSpecProto.Builder, org.tensorflow.proto.framework.TensorSpecProtoOrBuilder>( - (org.tensorflow.proto.framework.TensorSpecProto) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 33; - onChanged();; - return tensorSpecValueBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TypeSpecProto, org.tensorflow.proto.framework.TypeSpecProto.Builder, org.tensorflow.proto.framework.TypeSpecProtoOrBuilder> typeSpecValueBuilder_; - /** - *
-     * Represents a value for tf.TypeSpec.
-     * 
- * - * .tensorflow.TypeSpecProto type_spec_value = 34; - */ - public boolean hasTypeSpecValue() { - return kindCase_ == 34; - } - /** - *
-     * Represents a value for tf.TypeSpec.
-     * 
- * - * .tensorflow.TypeSpecProto type_spec_value = 34; - */ - public org.tensorflow.proto.framework.TypeSpecProto getTypeSpecValue() { - if (typeSpecValueBuilder_ == null) { - if (kindCase_ == 34) { - return (org.tensorflow.proto.framework.TypeSpecProto) kind_; - } - return org.tensorflow.proto.framework.TypeSpecProto.getDefaultInstance(); - } else { - if (kindCase_ == 34) { - return typeSpecValueBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.TypeSpecProto.getDefaultInstance(); - } - } - /** - *
-     * Represents a value for tf.TypeSpec.
-     * 
- * - * .tensorflow.TypeSpecProto type_spec_value = 34; - */ - public Builder setTypeSpecValue(org.tensorflow.proto.framework.TypeSpecProto value) { - if (typeSpecValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - typeSpecValueBuilder_.setMessage(value); - } - kindCase_ = 34; - return this; - } - /** - *
-     * Represents a value for tf.TypeSpec.
-     * 
- * - * .tensorflow.TypeSpecProto type_spec_value = 34; - */ - public Builder setTypeSpecValue( - org.tensorflow.proto.framework.TypeSpecProto.Builder builderForValue) { - if (typeSpecValueBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - typeSpecValueBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 34; - return this; - } - /** - *
-     * Represents a value for tf.TypeSpec.
-     * 
- * - * .tensorflow.TypeSpecProto type_spec_value = 34; - */ - public Builder mergeTypeSpecValue(org.tensorflow.proto.framework.TypeSpecProto value) { - if (typeSpecValueBuilder_ == null) { - if (kindCase_ == 34 && - kind_ != org.tensorflow.proto.framework.TypeSpecProto.getDefaultInstance()) { - kind_ = org.tensorflow.proto.framework.TypeSpecProto.newBuilder((org.tensorflow.proto.framework.TypeSpecProto) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 34) { - typeSpecValueBuilder_.mergeFrom(value); - } - typeSpecValueBuilder_.setMessage(value); - } - kindCase_ = 34; - return this; - } - /** - *
-     * Represents a value for tf.TypeSpec.
-     * 
- * - * .tensorflow.TypeSpecProto type_spec_value = 34; - */ - public Builder clearTypeSpecValue() { - if (typeSpecValueBuilder_ == null) { - if (kindCase_ == 34) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 34) { - kindCase_ = 0; - kind_ = null; - } - typeSpecValueBuilder_.clear(); - } - return this; - } - /** - *
-     * Represents a value for tf.TypeSpec.
-     * 
- * - * .tensorflow.TypeSpecProto type_spec_value = 34; - */ - public org.tensorflow.proto.framework.TypeSpecProto.Builder getTypeSpecValueBuilder() { - return getTypeSpecValueFieldBuilder().getBuilder(); - } - /** - *
-     * Represents a value for tf.TypeSpec.
-     * 
- * - * .tensorflow.TypeSpecProto type_spec_value = 34; - */ - public org.tensorflow.proto.framework.TypeSpecProtoOrBuilder getTypeSpecValueOrBuilder() { - if ((kindCase_ == 34) && (typeSpecValueBuilder_ != null)) { - return typeSpecValueBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 34) { - return (org.tensorflow.proto.framework.TypeSpecProto) kind_; - } - return org.tensorflow.proto.framework.TypeSpecProto.getDefaultInstance(); - } - } - /** - *
-     * Represents a value for tf.TypeSpec.
-     * 
- * - * .tensorflow.TypeSpecProto type_spec_value = 34; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TypeSpecProto, org.tensorflow.proto.framework.TypeSpecProto.Builder, org.tensorflow.proto.framework.TypeSpecProtoOrBuilder> - getTypeSpecValueFieldBuilder() { - if (typeSpecValueBuilder_ == null) { - if (!(kindCase_ == 34)) { - kind_ = org.tensorflow.proto.framework.TypeSpecProto.getDefaultInstance(); - } - typeSpecValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TypeSpecProto, org.tensorflow.proto.framework.TypeSpecProto.Builder, org.tensorflow.proto.framework.TypeSpecProtoOrBuilder>( - (org.tensorflow.proto.framework.TypeSpecProto) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 34; - onChanged();; - return typeSpecValueBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.BoundedTensorSpecProto, org.tensorflow.proto.framework.BoundedTensorSpecProto.Builder, org.tensorflow.proto.framework.BoundedTensorSpecProtoOrBuilder> boundedTensorSpecValueBuilder_; - /** - *
-     * Represents a value for tf.BoundedTensorSpec.
-     * 
- * - * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; - */ - public boolean hasBoundedTensorSpecValue() { - return kindCase_ == 35; - } - /** - *
-     * Represents a value for tf.BoundedTensorSpec.
-     * 
- * - * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; - */ - public org.tensorflow.proto.framework.BoundedTensorSpecProto getBoundedTensorSpecValue() { - if (boundedTensorSpecValueBuilder_ == null) { - if (kindCase_ == 35) { - return (org.tensorflow.proto.framework.BoundedTensorSpecProto) kind_; - } - return org.tensorflow.proto.framework.BoundedTensorSpecProto.getDefaultInstance(); - } else { - if (kindCase_ == 35) { - return boundedTensorSpecValueBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.BoundedTensorSpecProto.getDefaultInstance(); - } - } - /** - *
-     * Represents a value for tf.BoundedTensorSpec.
-     * 
- * - * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; - */ - public Builder setBoundedTensorSpecValue(org.tensorflow.proto.framework.BoundedTensorSpecProto value) { - if (boundedTensorSpecValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - boundedTensorSpecValueBuilder_.setMessage(value); - } - kindCase_ = 35; - return this; - } - /** - *
-     * Represents a value for tf.BoundedTensorSpec.
-     * 
- * - * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; - */ - public Builder setBoundedTensorSpecValue( - org.tensorflow.proto.framework.BoundedTensorSpecProto.Builder builderForValue) { - if (boundedTensorSpecValueBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - boundedTensorSpecValueBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 35; - return this; - } - /** - *
-     * Represents a value for tf.BoundedTensorSpec.
-     * 
- * - * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; - */ - public Builder mergeBoundedTensorSpecValue(org.tensorflow.proto.framework.BoundedTensorSpecProto value) { - if (boundedTensorSpecValueBuilder_ == null) { - if (kindCase_ == 35 && - kind_ != org.tensorflow.proto.framework.BoundedTensorSpecProto.getDefaultInstance()) { - kind_ = org.tensorflow.proto.framework.BoundedTensorSpecProto.newBuilder((org.tensorflow.proto.framework.BoundedTensorSpecProto) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 35) { - boundedTensorSpecValueBuilder_.mergeFrom(value); - } - boundedTensorSpecValueBuilder_.setMessage(value); - } - kindCase_ = 35; - return this; - } - /** - *
-     * Represents a value for tf.BoundedTensorSpec.
-     * 
- * - * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; - */ - public Builder clearBoundedTensorSpecValue() { - if (boundedTensorSpecValueBuilder_ == null) { - if (kindCase_ == 35) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 35) { - kindCase_ = 0; - kind_ = null; - } - boundedTensorSpecValueBuilder_.clear(); - } - return this; - } - /** - *
-     * Represents a value for tf.BoundedTensorSpec.
-     * 
- * - * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; - */ - public org.tensorflow.proto.framework.BoundedTensorSpecProto.Builder getBoundedTensorSpecValueBuilder() { - return getBoundedTensorSpecValueFieldBuilder().getBuilder(); - } - /** - *
-     * Represents a value for tf.BoundedTensorSpec.
-     * 
- * - * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; - */ - public org.tensorflow.proto.framework.BoundedTensorSpecProtoOrBuilder getBoundedTensorSpecValueOrBuilder() { - if ((kindCase_ == 35) && (boundedTensorSpecValueBuilder_ != null)) { - return boundedTensorSpecValueBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 35) { - return (org.tensorflow.proto.framework.BoundedTensorSpecProto) kind_; - } - return org.tensorflow.proto.framework.BoundedTensorSpecProto.getDefaultInstance(); - } - } - /** - *
-     * Represents a value for tf.BoundedTensorSpec.
-     * 
- * - * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.BoundedTensorSpecProto, org.tensorflow.proto.framework.BoundedTensorSpecProto.Builder, org.tensorflow.proto.framework.BoundedTensorSpecProtoOrBuilder> - getBoundedTensorSpecValueFieldBuilder() { - if (boundedTensorSpecValueBuilder_ == null) { - if (!(kindCase_ == 35)) { - kind_ = org.tensorflow.proto.framework.BoundedTensorSpecProto.getDefaultInstance(); - } - boundedTensorSpecValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.BoundedTensorSpecProto, org.tensorflow.proto.framework.BoundedTensorSpecProto.Builder, org.tensorflow.proto.framework.BoundedTensorSpecProtoOrBuilder>( - (org.tensorflow.proto.framework.BoundedTensorSpecProto) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 35; - onChanged();; - return boundedTensorSpecValueBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.ListValue, org.tensorflow.proto.framework.ListValue.Builder, org.tensorflow.proto.framework.ListValueOrBuilder> listValueBuilder_; - /** - *
-     * Represents a list of `Value`.
-     * 
- * - * .tensorflow.ListValue list_value = 51; - */ - public boolean hasListValue() { - return kindCase_ == 51; - } - /** - *
-     * Represents a list of `Value`.
-     * 
- * - * .tensorflow.ListValue list_value = 51; - */ - public org.tensorflow.proto.framework.ListValue getListValue() { - if (listValueBuilder_ == null) { - if (kindCase_ == 51) { - return (org.tensorflow.proto.framework.ListValue) kind_; - } - return org.tensorflow.proto.framework.ListValue.getDefaultInstance(); - } else { - if (kindCase_ == 51) { - return listValueBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.ListValue.getDefaultInstance(); - } - } - /** - *
-     * Represents a list of `Value`.
-     * 
- * - * .tensorflow.ListValue list_value = 51; - */ - public Builder setListValue(org.tensorflow.proto.framework.ListValue value) { - if (listValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - listValueBuilder_.setMessage(value); - } - kindCase_ = 51; - return this; - } - /** - *
-     * Represents a list of `Value`.
-     * 
- * - * .tensorflow.ListValue list_value = 51; - */ - public Builder setListValue( - org.tensorflow.proto.framework.ListValue.Builder builderForValue) { - if (listValueBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - listValueBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 51; - return this; - } - /** - *
-     * Represents a list of `Value`.
-     * 
- * - * .tensorflow.ListValue list_value = 51; - */ - public Builder mergeListValue(org.tensorflow.proto.framework.ListValue value) { - if (listValueBuilder_ == null) { - if (kindCase_ == 51 && - kind_ != org.tensorflow.proto.framework.ListValue.getDefaultInstance()) { - kind_ = org.tensorflow.proto.framework.ListValue.newBuilder((org.tensorflow.proto.framework.ListValue) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 51) { - listValueBuilder_.mergeFrom(value); - } - listValueBuilder_.setMessage(value); - } - kindCase_ = 51; - return this; - } - /** - *
-     * Represents a list of `Value`.
-     * 
- * - * .tensorflow.ListValue list_value = 51; - */ - public Builder clearListValue() { - if (listValueBuilder_ == null) { - if (kindCase_ == 51) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 51) { - kindCase_ = 0; - kind_ = null; - } - listValueBuilder_.clear(); - } - return this; - } - /** - *
-     * Represents a list of `Value`.
-     * 
- * - * .tensorflow.ListValue list_value = 51; - */ - public org.tensorflow.proto.framework.ListValue.Builder getListValueBuilder() { - return getListValueFieldBuilder().getBuilder(); - } - /** - *
-     * Represents a list of `Value`.
-     * 
- * - * .tensorflow.ListValue list_value = 51; - */ - public org.tensorflow.proto.framework.ListValueOrBuilder getListValueOrBuilder() { - if ((kindCase_ == 51) && (listValueBuilder_ != null)) { - return listValueBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 51) { - return (org.tensorflow.proto.framework.ListValue) kind_; - } - return org.tensorflow.proto.framework.ListValue.getDefaultInstance(); - } - } - /** - *
-     * Represents a list of `Value`.
-     * 
- * - * .tensorflow.ListValue list_value = 51; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.ListValue, org.tensorflow.proto.framework.ListValue.Builder, org.tensorflow.proto.framework.ListValueOrBuilder> - getListValueFieldBuilder() { - if (listValueBuilder_ == null) { - if (!(kindCase_ == 51)) { - kind_ = org.tensorflow.proto.framework.ListValue.getDefaultInstance(); - } - listValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.ListValue, org.tensorflow.proto.framework.ListValue.Builder, org.tensorflow.proto.framework.ListValueOrBuilder>( - (org.tensorflow.proto.framework.ListValue) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 51; - onChanged();; - return listValueBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TupleValue, org.tensorflow.proto.framework.TupleValue.Builder, org.tensorflow.proto.framework.TupleValueOrBuilder> tupleValueBuilder_; - /** - *
-     * Represents a tuple of `Value`.
-     * 
- * - * .tensorflow.TupleValue tuple_value = 52; - */ - public boolean hasTupleValue() { - return kindCase_ == 52; - } - /** - *
-     * Represents a tuple of `Value`.
-     * 
- * - * .tensorflow.TupleValue tuple_value = 52; - */ - public org.tensorflow.proto.framework.TupleValue getTupleValue() { - if (tupleValueBuilder_ == null) { - if (kindCase_ == 52) { - return (org.tensorflow.proto.framework.TupleValue) kind_; - } - return org.tensorflow.proto.framework.TupleValue.getDefaultInstance(); - } else { - if (kindCase_ == 52) { - return tupleValueBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.TupleValue.getDefaultInstance(); - } - } - /** - *
-     * Represents a tuple of `Value`.
-     * 
- * - * .tensorflow.TupleValue tuple_value = 52; - */ - public Builder setTupleValue(org.tensorflow.proto.framework.TupleValue value) { - if (tupleValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - tupleValueBuilder_.setMessage(value); - } - kindCase_ = 52; - return this; - } - /** - *
-     * Represents a tuple of `Value`.
-     * 
- * - * .tensorflow.TupleValue tuple_value = 52; - */ - public Builder setTupleValue( - org.tensorflow.proto.framework.TupleValue.Builder builderForValue) { - if (tupleValueBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - tupleValueBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 52; - return this; - } - /** - *
-     * Represents a tuple of `Value`.
-     * 
- * - * .tensorflow.TupleValue tuple_value = 52; - */ - public Builder mergeTupleValue(org.tensorflow.proto.framework.TupleValue value) { - if (tupleValueBuilder_ == null) { - if (kindCase_ == 52 && - kind_ != org.tensorflow.proto.framework.TupleValue.getDefaultInstance()) { - kind_ = org.tensorflow.proto.framework.TupleValue.newBuilder((org.tensorflow.proto.framework.TupleValue) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 52) { - tupleValueBuilder_.mergeFrom(value); - } - tupleValueBuilder_.setMessage(value); - } - kindCase_ = 52; - return this; - } - /** - *
-     * Represents a tuple of `Value`.
-     * 
- * - * .tensorflow.TupleValue tuple_value = 52; - */ - public Builder clearTupleValue() { - if (tupleValueBuilder_ == null) { - if (kindCase_ == 52) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 52) { - kindCase_ = 0; - kind_ = null; - } - tupleValueBuilder_.clear(); - } - return this; - } - /** - *
-     * Represents a tuple of `Value`.
-     * 
- * - * .tensorflow.TupleValue tuple_value = 52; - */ - public org.tensorflow.proto.framework.TupleValue.Builder getTupleValueBuilder() { - return getTupleValueFieldBuilder().getBuilder(); - } - /** - *
-     * Represents a tuple of `Value`.
-     * 
- * - * .tensorflow.TupleValue tuple_value = 52; - */ - public org.tensorflow.proto.framework.TupleValueOrBuilder getTupleValueOrBuilder() { - if ((kindCase_ == 52) && (tupleValueBuilder_ != null)) { - return tupleValueBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 52) { - return (org.tensorflow.proto.framework.TupleValue) kind_; - } - return org.tensorflow.proto.framework.TupleValue.getDefaultInstance(); - } - } - /** - *
-     * Represents a tuple of `Value`.
-     * 
- * - * .tensorflow.TupleValue tuple_value = 52; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TupleValue, org.tensorflow.proto.framework.TupleValue.Builder, org.tensorflow.proto.framework.TupleValueOrBuilder> - getTupleValueFieldBuilder() { - if (tupleValueBuilder_ == null) { - if (!(kindCase_ == 52)) { - kind_ = org.tensorflow.proto.framework.TupleValue.getDefaultInstance(); - } - tupleValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TupleValue, org.tensorflow.proto.framework.TupleValue.Builder, org.tensorflow.proto.framework.TupleValueOrBuilder>( - (org.tensorflow.proto.framework.TupleValue) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 52; - onChanged();; - return tupleValueBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.DictValue, org.tensorflow.proto.framework.DictValue.Builder, org.tensorflow.proto.framework.DictValueOrBuilder> dictValueBuilder_; - /** - *
-     * Represents a dict `Value`.
-     * 
- * - * .tensorflow.DictValue dict_value = 53; - */ - public boolean hasDictValue() { - return kindCase_ == 53; - } - /** - *
-     * Represents a dict `Value`.
-     * 
- * - * .tensorflow.DictValue dict_value = 53; - */ - public org.tensorflow.proto.framework.DictValue getDictValue() { - if (dictValueBuilder_ == null) { - if (kindCase_ == 53) { - return (org.tensorflow.proto.framework.DictValue) kind_; - } - return org.tensorflow.proto.framework.DictValue.getDefaultInstance(); - } else { - if (kindCase_ == 53) { - return dictValueBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.DictValue.getDefaultInstance(); - } - } - /** - *
-     * Represents a dict `Value`.
-     * 
- * - * .tensorflow.DictValue dict_value = 53; - */ - public Builder setDictValue(org.tensorflow.proto.framework.DictValue value) { - if (dictValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - dictValueBuilder_.setMessage(value); - } - kindCase_ = 53; - return this; - } - /** - *
-     * Represents a dict `Value`.
-     * 
- * - * .tensorflow.DictValue dict_value = 53; - */ - public Builder setDictValue( - org.tensorflow.proto.framework.DictValue.Builder builderForValue) { - if (dictValueBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - dictValueBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 53; - return this; - } - /** - *
-     * Represents a dict `Value`.
-     * 
- * - * .tensorflow.DictValue dict_value = 53; - */ - public Builder mergeDictValue(org.tensorflow.proto.framework.DictValue value) { - if (dictValueBuilder_ == null) { - if (kindCase_ == 53 && - kind_ != org.tensorflow.proto.framework.DictValue.getDefaultInstance()) { - kind_ = org.tensorflow.proto.framework.DictValue.newBuilder((org.tensorflow.proto.framework.DictValue) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 53) { - dictValueBuilder_.mergeFrom(value); - } - dictValueBuilder_.setMessage(value); - } - kindCase_ = 53; - return this; - } - /** - *
-     * Represents a dict `Value`.
-     * 
- * - * .tensorflow.DictValue dict_value = 53; - */ - public Builder clearDictValue() { - if (dictValueBuilder_ == null) { - if (kindCase_ == 53) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 53) { - kindCase_ = 0; - kind_ = null; - } - dictValueBuilder_.clear(); - } - return this; - } - /** - *
-     * Represents a dict `Value`.
-     * 
- * - * .tensorflow.DictValue dict_value = 53; - */ - public org.tensorflow.proto.framework.DictValue.Builder getDictValueBuilder() { - return getDictValueFieldBuilder().getBuilder(); - } - /** - *
-     * Represents a dict `Value`.
-     * 
- * - * .tensorflow.DictValue dict_value = 53; - */ - public org.tensorflow.proto.framework.DictValueOrBuilder getDictValueOrBuilder() { - if ((kindCase_ == 53) && (dictValueBuilder_ != null)) { - return dictValueBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 53) { - return (org.tensorflow.proto.framework.DictValue) kind_; - } - return org.tensorflow.proto.framework.DictValue.getDefaultInstance(); - } - } - /** - *
-     * Represents a dict `Value`.
-     * 
- * - * .tensorflow.DictValue dict_value = 53; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.DictValue, org.tensorflow.proto.framework.DictValue.Builder, org.tensorflow.proto.framework.DictValueOrBuilder> - getDictValueFieldBuilder() { - if (dictValueBuilder_ == null) { - if (!(kindCase_ == 53)) { - kind_ = org.tensorflow.proto.framework.DictValue.getDefaultInstance(); - } - dictValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.DictValue, org.tensorflow.proto.framework.DictValue.Builder, org.tensorflow.proto.framework.DictValueOrBuilder>( - (org.tensorflow.proto.framework.DictValue) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 53; - onChanged();; - return dictValueBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.NamedTupleValue, org.tensorflow.proto.framework.NamedTupleValue.Builder, org.tensorflow.proto.framework.NamedTupleValueOrBuilder> namedTupleValueBuilder_; - /** - *
-     * Represents Python's namedtuple.
-     * 
- * - * .tensorflow.NamedTupleValue named_tuple_value = 54; - */ - public boolean hasNamedTupleValue() { - return kindCase_ == 54; - } - /** - *
-     * Represents Python's namedtuple.
-     * 
- * - * .tensorflow.NamedTupleValue named_tuple_value = 54; - */ - public org.tensorflow.proto.framework.NamedTupleValue getNamedTupleValue() { - if (namedTupleValueBuilder_ == null) { - if (kindCase_ == 54) { - return (org.tensorflow.proto.framework.NamedTupleValue) kind_; - } - return org.tensorflow.proto.framework.NamedTupleValue.getDefaultInstance(); - } else { - if (kindCase_ == 54) { - return namedTupleValueBuilder_.getMessage(); - } - return org.tensorflow.proto.framework.NamedTupleValue.getDefaultInstance(); - } - } - /** - *
-     * Represents Python's namedtuple.
-     * 
- * - * .tensorflow.NamedTupleValue named_tuple_value = 54; - */ - public Builder setNamedTupleValue(org.tensorflow.proto.framework.NamedTupleValue value) { - if (namedTupleValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - namedTupleValueBuilder_.setMessage(value); - } - kindCase_ = 54; - return this; - } - /** - *
-     * Represents Python's namedtuple.
-     * 
- * - * .tensorflow.NamedTupleValue named_tuple_value = 54; - */ - public Builder setNamedTupleValue( - org.tensorflow.proto.framework.NamedTupleValue.Builder builderForValue) { - if (namedTupleValueBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - namedTupleValueBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 54; - return this; - } - /** - *
-     * Represents Python's namedtuple.
-     * 
- * - * .tensorflow.NamedTupleValue named_tuple_value = 54; - */ - public Builder mergeNamedTupleValue(org.tensorflow.proto.framework.NamedTupleValue value) { - if (namedTupleValueBuilder_ == null) { - if (kindCase_ == 54 && - kind_ != org.tensorflow.proto.framework.NamedTupleValue.getDefaultInstance()) { - kind_ = org.tensorflow.proto.framework.NamedTupleValue.newBuilder((org.tensorflow.proto.framework.NamedTupleValue) kind_) - .mergeFrom(value).buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 54) { - namedTupleValueBuilder_.mergeFrom(value); - } - namedTupleValueBuilder_.setMessage(value); - } - kindCase_ = 54; - return this; - } - /** - *
-     * Represents Python's namedtuple.
-     * 
- * - * .tensorflow.NamedTupleValue named_tuple_value = 54; - */ - public Builder clearNamedTupleValue() { - if (namedTupleValueBuilder_ == null) { - if (kindCase_ == 54) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 54) { - kindCase_ = 0; - kind_ = null; - } - namedTupleValueBuilder_.clear(); - } - return this; - } - /** - *
-     * Represents Python's namedtuple.
-     * 
- * - * .tensorflow.NamedTupleValue named_tuple_value = 54; - */ - public org.tensorflow.proto.framework.NamedTupleValue.Builder getNamedTupleValueBuilder() { - return getNamedTupleValueFieldBuilder().getBuilder(); - } - /** - *
-     * Represents Python's namedtuple.
-     * 
- * - * .tensorflow.NamedTupleValue named_tuple_value = 54; - */ - public org.tensorflow.proto.framework.NamedTupleValueOrBuilder getNamedTupleValueOrBuilder() { - if ((kindCase_ == 54) && (namedTupleValueBuilder_ != null)) { - return namedTupleValueBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 54) { - return (org.tensorflow.proto.framework.NamedTupleValue) kind_; - } - return org.tensorflow.proto.framework.NamedTupleValue.getDefaultInstance(); - } - } - /** - *
-     * Represents Python's namedtuple.
-     * 
- * - * .tensorflow.NamedTupleValue named_tuple_value = 54; - */ - private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.NamedTupleValue, org.tensorflow.proto.framework.NamedTupleValue.Builder, org.tensorflow.proto.framework.NamedTupleValueOrBuilder> - getNamedTupleValueFieldBuilder() { - if (namedTupleValueBuilder_ == null) { - if (!(kindCase_ == 54)) { - kind_ = org.tensorflow.proto.framework.NamedTupleValue.getDefaultInstance(); - } - namedTupleValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.NamedTupleValue, org.tensorflow.proto.framework.NamedTupleValue.Builder, org.tensorflow.proto.framework.NamedTupleValueOrBuilder>( - (org.tensorflow.proto.framework.NamedTupleValue) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 54; - onChanged();; - return namedTupleValueBuilder_; - } - @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:tensorflow.StructuredValue) - } - - // @@protoc_insertion_point(class_scope:tensorflow.StructuredValue) - private static final org.tensorflow.proto.framework.StructuredValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.StructuredValue(); - } - - public static org.tensorflow.proto.framework.StructuredValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StructuredValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StructuredValue(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.StructuredValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/StructuredValueOrBuilder.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/StructuredValueOrBuilder.java deleted file mode 100644 index 3ffb498eb22..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/StructuredValueOrBuilder.java +++ /dev/null @@ -1,309 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/protobuf/struct.proto - -package org.tensorflow.proto.framework; - -public interface StructuredValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.StructuredValue) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Represents None.
-   * 
- * - * .tensorflow.NoneValue none_value = 1; - */ - boolean hasNoneValue(); - /** - *
-   * Represents None.
-   * 
- * - * .tensorflow.NoneValue none_value = 1; - */ - org.tensorflow.proto.framework.NoneValue getNoneValue(); - /** - *
-   * Represents None.
-   * 
- * - * .tensorflow.NoneValue none_value = 1; - */ - org.tensorflow.proto.framework.NoneValueOrBuilder getNoneValueOrBuilder(); - - /** - *
-   * Represents a double-precision floating-point value (a Python `float`).
-   * 
- * - * double float64_value = 11; - */ - double getFloat64Value(); - - /** - *
-   * Represents a signed integer value, limited to 64 bits.
-   * Larger values from Python's arbitrary-precision integers are unsupported.
-   * 
- * - * sint64 int64_value = 12; - */ - long getInt64Value(); - - /** - *
-   * Represents a string of Unicode characters stored in a Python `str`.
-   * In Python 3, this is exactly what type `str` is.
-   * In Python 2, this is the UTF-8 encoding of the characters.
-   * For strings with ASCII characters only (as often used in TensorFlow code)
-   * there is effectively no difference between the language versions.
-   * The obsolescent `unicode` type of Python 2 is not supported here.
-   * 
- * - * string string_value = 13; - */ - java.lang.String getStringValue(); - /** - *
-   * Represents a string of Unicode characters stored in a Python `str`.
-   * In Python 3, this is exactly what type `str` is.
-   * In Python 2, this is the UTF-8 encoding of the characters.
-   * For strings with ASCII characters only (as often used in TensorFlow code)
-   * there is effectively no difference between the language versions.
-   * The obsolescent `unicode` type of Python 2 is not supported here.
-   * 
- * - * string string_value = 13; - */ - com.google.protobuf.ByteString - getStringValueBytes(); - - /** - *
-   * Represents a boolean value.
-   * 
- * - * bool bool_value = 14; - */ - boolean getBoolValue(); - - /** - *
-   * Represents a TensorShape.
-   * 
- * - * .tensorflow.TensorShapeProto tensor_shape_value = 31; - */ - boolean hasTensorShapeValue(); - /** - *
-   * Represents a TensorShape.
-   * 
- * - * .tensorflow.TensorShapeProto tensor_shape_value = 31; - */ - org.tensorflow.proto.framework.TensorShapeProto getTensorShapeValue(); - /** - *
-   * Represents a TensorShape.
-   * 
- * - * .tensorflow.TensorShapeProto tensor_shape_value = 31; - */ - org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getTensorShapeValueOrBuilder(); - - /** - *
-   * Represents an enum value for dtype.
-   * 
- * - * .tensorflow.DataType tensor_dtype_value = 32; - */ - int getTensorDtypeValueValue(); - /** - *
-   * Represents an enum value for dtype.
-   * 
- * - * .tensorflow.DataType tensor_dtype_value = 32; - */ - org.tensorflow.proto.framework.DataType getTensorDtypeValue(); - - /** - *
-   * Represents a value for tf.TensorSpec.
-   * 
- * - * .tensorflow.TensorSpecProto tensor_spec_value = 33; - */ - boolean hasTensorSpecValue(); - /** - *
-   * Represents a value for tf.TensorSpec.
-   * 
- * - * .tensorflow.TensorSpecProto tensor_spec_value = 33; - */ - org.tensorflow.proto.framework.TensorSpecProto getTensorSpecValue(); - /** - *
-   * Represents a value for tf.TensorSpec.
-   * 
- * - * .tensorflow.TensorSpecProto tensor_spec_value = 33; - */ - org.tensorflow.proto.framework.TensorSpecProtoOrBuilder getTensorSpecValueOrBuilder(); - - /** - *
-   * Represents a value for tf.TypeSpec.
-   * 
- * - * .tensorflow.TypeSpecProto type_spec_value = 34; - */ - boolean hasTypeSpecValue(); - /** - *
-   * Represents a value for tf.TypeSpec.
-   * 
- * - * .tensorflow.TypeSpecProto type_spec_value = 34; - */ - org.tensorflow.proto.framework.TypeSpecProto getTypeSpecValue(); - /** - *
-   * Represents a value for tf.TypeSpec.
-   * 
- * - * .tensorflow.TypeSpecProto type_spec_value = 34; - */ - org.tensorflow.proto.framework.TypeSpecProtoOrBuilder getTypeSpecValueOrBuilder(); - - /** - *
-   * Represents a value for tf.BoundedTensorSpec.
-   * 
- * - * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; - */ - boolean hasBoundedTensorSpecValue(); - /** - *
-   * Represents a value for tf.BoundedTensorSpec.
-   * 
- * - * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; - */ - org.tensorflow.proto.framework.BoundedTensorSpecProto getBoundedTensorSpecValue(); - /** - *
-   * Represents a value for tf.BoundedTensorSpec.
-   * 
- * - * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; - */ - org.tensorflow.proto.framework.BoundedTensorSpecProtoOrBuilder getBoundedTensorSpecValueOrBuilder(); - - /** - *
-   * Represents a list of `Value`.
-   * 
- * - * .tensorflow.ListValue list_value = 51; - */ - boolean hasListValue(); - /** - *
-   * Represents a list of `Value`.
-   * 
- * - * .tensorflow.ListValue list_value = 51; - */ - org.tensorflow.proto.framework.ListValue getListValue(); - /** - *
-   * Represents a list of `Value`.
-   * 
- * - * .tensorflow.ListValue list_value = 51; - */ - org.tensorflow.proto.framework.ListValueOrBuilder getListValueOrBuilder(); - - /** - *
-   * Represents a tuple of `Value`.
-   * 
- * - * .tensorflow.TupleValue tuple_value = 52; - */ - boolean hasTupleValue(); - /** - *
-   * Represents a tuple of `Value`.
-   * 
- * - * .tensorflow.TupleValue tuple_value = 52; - */ - org.tensorflow.proto.framework.TupleValue getTupleValue(); - /** - *
-   * Represents a tuple of `Value`.
-   * 
- * - * .tensorflow.TupleValue tuple_value = 52; - */ - org.tensorflow.proto.framework.TupleValueOrBuilder getTupleValueOrBuilder(); - - /** - *
-   * Represents a dict `Value`.
-   * 
- * - * .tensorflow.DictValue dict_value = 53; - */ - boolean hasDictValue(); - /** - *
-   * Represents a dict `Value`.
-   * 
- * - * .tensorflow.DictValue dict_value = 53; - */ - org.tensorflow.proto.framework.DictValue getDictValue(); - /** - *
-   * Represents a dict `Value`.
-   * 
- * - * .tensorflow.DictValue dict_value = 53; - */ - org.tensorflow.proto.framework.DictValueOrBuilder getDictValueOrBuilder(); - - /** - *
-   * Represents Python's namedtuple.
-   * 
- * - * .tensorflow.NamedTupleValue named_tuple_value = 54; - */ - boolean hasNamedTupleValue(); - /** - *
-   * Represents Python's namedtuple.
-   * 
- * - * .tensorflow.NamedTupleValue named_tuple_value = 54; - */ - org.tensorflow.proto.framework.NamedTupleValue getNamedTupleValue(); - /** - *
-   * Represents Python's namedtuple.
-   * 
- * - * .tensorflow.NamedTupleValue named_tuple_value = 54; - */ - org.tensorflow.proto.framework.NamedTupleValueOrBuilder getNamedTupleValueOrBuilder(); - - public org.tensorflow.proto.framework.StructuredValue.KindCase getKindCase(); -} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/Summary.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/Summary.java deleted file mode 100644 index 19c5c6664a3..00000000000 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/Summary.java +++ /dev/null @@ -1,4725 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/summary.proto - -package org.tensorflow.proto.framework; - -/** - *
- * A Summary is a set of named values to be displayed by the
- * visualizer.
- * Summaries are produced regularly during training, as controlled by
- * the "summary_interval_secs" attribute of the training operation.
- * Summaries are also produced at the end of an evaluation.
- * 
- * - * Protobuf type {@code tensorflow.Summary} - */ -public final class Summary extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.Summary) - SummaryOrBuilder { -private static final long serialVersionUID = 0L; - // Use Summary.newBuilder() to construct. - private Summary(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Summary() { - value_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Summary(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Summary( - 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)) { - value_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - value_.add( - input.readMessage(org.tensorflow.proto.framework.Summary.Value.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)) { - value_ = java.util.Collections.unmodifiableList(value_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SummaryProtos.internal_static_tensorflow_Summary_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SummaryProtos.internal_static_tensorflow_Summary_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.Summary.class, org.tensorflow.proto.framework.Summary.Builder.class); - } - - public interface ImageOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.Summary.Image) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Dimensions of the image.
-     * 
- * - * int32 height = 1; - */ - int getHeight(); - - /** - * int32 width = 2; - */ - int getWidth(); - - /** - *
-     * Valid colorspace values are
-     *   1 - grayscale
-     *   2 - grayscale + alpha
-     *   3 - RGB
-     *   4 - RGBA
-     *   5 - DIGITAL_YUV
-     *   6 - BGRA
-     * 
- * - * int32 colorspace = 3; - */ - int getColorspace(); - - /** - *
-     * Image data in encoded format.  All image formats supported by
-     * image_codec::CoderUtil can be stored here.
-     * 
- * - * bytes encoded_image_string = 4; - */ - com.google.protobuf.ByteString getEncodedImageString(); - } - /** - * Protobuf type {@code tensorflow.Summary.Image} - */ - public static final class Image extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.Summary.Image) - ImageOrBuilder { - private static final long serialVersionUID = 0L; - // Use Image.newBuilder() to construct. - private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Image() { - encodedImageString_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Image(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Image( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - height_ = input.readInt32(); - break; - } - case 16: { - - width_ = input.readInt32(); - break; - } - case 24: { - - colorspace_ = input.readInt32(); - break; - } - case 34: { - - encodedImageString_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SummaryProtos.internal_static_tensorflow_Summary_Image_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SummaryProtos.internal_static_tensorflow_Summary_Image_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.Summary.Image.class, org.tensorflow.proto.framework.Summary.Image.Builder.class); - } - - public static final int HEIGHT_FIELD_NUMBER = 1; - private int height_; - /** - *
-     * Dimensions of the image.
-     * 
- * - * int32 height = 1; - */ - public int getHeight() { - return height_; - } - - public static final int WIDTH_FIELD_NUMBER = 2; - private int width_; - /** - * int32 width = 2; - */ - public int getWidth() { - return width_; - } - - public static final int COLORSPACE_FIELD_NUMBER = 3; - private int colorspace_; - /** - *
-     * Valid colorspace values are
-     *   1 - grayscale
-     *   2 - grayscale + alpha
-     *   3 - RGB
-     *   4 - RGBA
-     *   5 - DIGITAL_YUV
-     *   6 - BGRA
-     * 
- * - * int32 colorspace = 3; - */ - public int getColorspace() { - return colorspace_; - } - - public static final int ENCODED_IMAGE_STRING_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString encodedImageString_; - /** - *
-     * Image data in encoded format.  All image formats supported by
-     * image_codec::CoderUtil can be stored here.
-     * 
- * - * bytes encoded_image_string = 4; - */ - public com.google.protobuf.ByteString getEncodedImageString() { - return encodedImageString_; - } - - 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 (height_ != 0) { - output.writeInt32(1, height_); - } - if (width_ != 0) { - output.writeInt32(2, width_); - } - if (colorspace_ != 0) { - output.writeInt32(3, colorspace_); - } - if (!encodedImageString_.isEmpty()) { - output.writeBytes(4, encodedImageString_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (height_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, height_); - } - if (width_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, width_); - } - if (colorspace_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, colorspace_); - } - if (!encodedImageString_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, encodedImageString_); - } - 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 org.tensorflow.proto.framework.Summary.Image)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.Summary.Image other = (org.tensorflow.proto.framework.Summary.Image) obj; - - if (getHeight() - != other.getHeight()) return false; - if (getWidth() - != other.getWidth()) return false; - if (getColorspace() - != other.getColorspace()) return false; - if (!getEncodedImageString() - .equals(other.getEncodedImageString())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getHeight(); - hash = (37 * hash) + WIDTH_FIELD_NUMBER; - hash = (53 * hash) + getWidth(); - hash = (37 * hash) + COLORSPACE_FIELD_NUMBER; - hash = (53 * hash) + getColorspace(); - hash = (37 * hash) + ENCODED_IMAGE_STRING_FIELD_NUMBER; - hash = (53 * hash) + getEncodedImageString().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.Summary.Image parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.Summary.Image parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.Summary.Image parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.Summary.Image parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.Summary.Image parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.Summary.Image parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.Summary.Image parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.Summary.Image 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 org.tensorflow.proto.framework.Summary.Image parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.Summary.Image 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 org.tensorflow.proto.framework.Summary.Image parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.Summary.Image 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(org.tensorflow.proto.framework.Summary.Image prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.Summary.Image} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.Summary.Image) - org.tensorflow.proto.framework.Summary.ImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SummaryProtos.internal_static_tensorflow_Summary_Image_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SummaryProtos.internal_static_tensorflow_Summary_Image_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.Summary.Image.class, org.tensorflow.proto.framework.Summary.Image.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.Summary.Image.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - height_ = 0; - - width_ = 0; - - colorspace_ = 0; - - encodedImageString_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.SummaryProtos.internal_static_tensorflow_Summary_Image_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.Summary.Image getDefaultInstanceForType() { - return org.tensorflow.proto.framework.Summary.Image.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.Summary.Image build() { - org.tensorflow.proto.framework.Summary.Image result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.Summary.Image buildPartial() { - org.tensorflow.proto.framework.Summary.Image result = new org.tensorflow.proto.framework.Summary.Image(this); - result.height_ = height_; - result.width_ = width_; - result.colorspace_ = colorspace_; - result.encodedImageString_ = encodedImageString_; - 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 org.tensorflow.proto.framework.Summary.Image) { - return mergeFrom((org.tensorflow.proto.framework.Summary.Image)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.Summary.Image other) { - if (other == org.tensorflow.proto.framework.Summary.Image.getDefaultInstance()) return this; - if (other.getHeight() != 0) { - setHeight(other.getHeight()); - } - if (other.getWidth() != 0) { - setWidth(other.getWidth()); - } - if (other.getColorspace() != 0) { - setColorspace(other.getColorspace()); - } - if (other.getEncodedImageString() != com.google.protobuf.ByteString.EMPTY) { - setEncodedImageString(other.getEncodedImageString()); - } - 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 { - org.tensorflow.proto.framework.Summary.Image parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.Summary.Image) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int height_ ; - /** - *
-       * Dimensions of the image.
-       * 
- * - * int32 height = 1; - */ - public int getHeight() { - return height_; - } - /** - *
-       * Dimensions of the image.
-       * 
- * - * int32 height = 1; - */ - public Builder setHeight(int value) { - - height_ = value; - onChanged(); - return this; - } - /** - *
-       * Dimensions of the image.
-       * 
- * - * int32 height = 1; - */ - public Builder clearHeight() { - - height_ = 0; - onChanged(); - return this; - } - - private int width_ ; - /** - * int32 width = 2; - */ - public int getWidth() { - return width_; - } - /** - * int32 width = 2; - */ - public Builder setWidth(int value) { - - width_ = value; - onChanged(); - return this; - } - /** - * int32 width = 2; - */ - public Builder clearWidth() { - - width_ = 0; - onChanged(); - return this; - } - - private int colorspace_ ; - /** - *
-       * Valid colorspace values are
-       *   1 - grayscale
-       *   2 - grayscale + alpha
-       *   3 - RGB
-       *   4 - RGBA
-       *   5 - DIGITAL_YUV
-       *   6 - BGRA
-       * 
- * - * int32 colorspace = 3; - */ - public int getColorspace() { - return colorspace_; - } - /** - *
-       * Valid colorspace values are
-       *   1 - grayscale
-       *   2 - grayscale + alpha
-       *   3 - RGB
-       *   4 - RGBA
-       *   5 - DIGITAL_YUV
-       *   6 - BGRA
-       * 
- * - * int32 colorspace = 3; - */ - public Builder setColorspace(int value) { - - colorspace_ = value; - onChanged(); - return this; - } - /** - *
-       * Valid colorspace values are
-       *   1 - grayscale
-       *   2 - grayscale + alpha
-       *   3 - RGB
-       *   4 - RGBA
-       *   5 - DIGITAL_YUV
-       *   6 - BGRA
-       * 
- * - * int32 colorspace = 3; - */ - public Builder clearColorspace() { - - colorspace_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString encodedImageString_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * Image data in encoded format.  All image formats supported by
-       * image_codec::CoderUtil can be stored here.
-       * 
- * - * bytes encoded_image_string = 4; - */ - public com.google.protobuf.ByteString getEncodedImageString() { - return encodedImageString_; - } - /** - *
-       * Image data in encoded format.  All image formats supported by
-       * image_codec::CoderUtil can be stored here.
-       * 
- * - * bytes encoded_image_string = 4; - */ - public Builder setEncodedImageString(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - encodedImageString_ = value; - onChanged(); - return this; - } - /** - *
-       * Image data in encoded format.  All image formats supported by
-       * image_codec::CoderUtil can be stored here.
-       * 
- * - * bytes encoded_image_string = 4; - */ - public Builder clearEncodedImageString() { - - encodedImageString_ = getDefaultInstance().getEncodedImageString(); - 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:tensorflow.Summary.Image) - } - - // @@protoc_insertion_point(class_scope:tensorflow.Summary.Image) - private static final org.tensorflow.proto.framework.Summary.Image DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.Summary.Image(); - } - - public static org.tensorflow.proto.framework.Summary.Image getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Image parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Image(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public org.tensorflow.proto.framework.Summary.Image getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AudioOrBuilder extends - // @@protoc_insertion_point(interface_extends:tensorflow.Summary.Audio) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Sample rate of the audio in Hz.
-     * 
- * - * float sample_rate = 1; - */ - float getSampleRate(); - - /** - *
-     * Number of channels of audio.
-     * 
- * - * int64 num_channels = 2; - */ - long getNumChannels(); - - /** - *
-     * Length of the audio in frames (samples per channel).
-     * 
- * - * int64 length_frames = 3; - */ - long getLengthFrames(); - - /** - *
-     * Encoded audio data and its associated RFC 2045 content type (e.g.
-     * "audio/wav").
-     * 
- * - * bytes encoded_audio_string = 4; - */ - com.google.protobuf.ByteString getEncodedAudioString(); - - /** - * string content_type = 5; - */ - java.lang.String getContentType(); - /** - * string content_type = 5; - */ - com.google.protobuf.ByteString - getContentTypeBytes(); - } - /** - * Protobuf type {@code tensorflow.Summary.Audio} - */ - public static final class Audio extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tensorflow.Summary.Audio) - AudioOrBuilder { - private static final long serialVersionUID = 0L; - // Use Audio.newBuilder() to construct. - private Audio(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Audio() { - encodedAudioString_ = com.google.protobuf.ByteString.EMPTY; - contentType_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Audio(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Audio( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 13: { - - sampleRate_ = input.readFloat(); - break; - } - case 16: { - - numChannels_ = input.readInt64(); - break; - } - case 24: { - - lengthFrames_ = input.readInt64(); - break; - } - case 34: { - - encodedAudioString_ = input.readBytes(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - contentType_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SummaryProtos.internal_static_tensorflow_Summary_Audio_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SummaryProtos.internal_static_tensorflow_Summary_Audio_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.Summary.Audio.class, org.tensorflow.proto.framework.Summary.Audio.Builder.class); - } - - public static final int SAMPLE_RATE_FIELD_NUMBER = 1; - private float sampleRate_; - /** - *
-     * Sample rate of the audio in Hz.
-     * 
- * - * float sample_rate = 1; - */ - public float getSampleRate() { - return sampleRate_; - } - - public static final int NUM_CHANNELS_FIELD_NUMBER = 2; - private long numChannels_; - /** - *
-     * Number of channels of audio.
-     * 
- * - * int64 num_channels = 2; - */ - public long getNumChannels() { - return numChannels_; - } - - public static final int LENGTH_FRAMES_FIELD_NUMBER = 3; - private long lengthFrames_; - /** - *
-     * Length of the audio in frames (samples per channel).
-     * 
- * - * int64 length_frames = 3; - */ - public long getLengthFrames() { - return lengthFrames_; - } - - public static final int ENCODED_AUDIO_STRING_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString encodedAudioString_; - /** - *
-     * Encoded audio data and its associated RFC 2045 content type (e.g.
-     * "audio/wav").
-     * 
- * - * bytes encoded_audio_string = 4; - */ - public com.google.protobuf.ByteString getEncodedAudioString() { - return encodedAudioString_; - } - - public static final int CONTENT_TYPE_FIELD_NUMBER = 5; - private volatile java.lang.Object contentType_; - /** - * string content_type = 5; - */ - public java.lang.String getContentType() { - java.lang.Object ref = contentType_; - 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(); - contentType_ = s; - return s; - } - } - /** - * string content_type = 5; - */ - public com.google.protobuf.ByteString - getContentTypeBytes() { - java.lang.Object ref = contentType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contentType_ = 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 (sampleRate_ != 0F) { - output.writeFloat(1, sampleRate_); - } - if (numChannels_ != 0L) { - output.writeInt64(2, numChannels_); - } - if (lengthFrames_ != 0L) { - output.writeInt64(3, lengthFrames_); - } - if (!encodedAudioString_.isEmpty()) { - output.writeBytes(4, encodedAudioString_); - } - if (!getContentTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, contentType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sampleRate_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, sampleRate_); - } - if (numChannels_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, numChannels_); - } - if (lengthFrames_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, lengthFrames_); - } - if (!encodedAudioString_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, encodedAudioString_); - } - if (!getContentTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, contentType_); - } - 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 org.tensorflow.proto.framework.Summary.Audio)) { - return super.equals(obj); - } - org.tensorflow.proto.framework.Summary.Audio other = (org.tensorflow.proto.framework.Summary.Audio) obj; - - if (java.lang.Float.floatToIntBits(getSampleRate()) - != java.lang.Float.floatToIntBits( - other.getSampleRate())) return false; - if (getNumChannels() - != other.getNumChannels()) return false; - if (getLengthFrames() - != other.getLengthFrames()) return false; - if (!getEncodedAudioString() - .equals(other.getEncodedAudioString())) return false; - if (!getContentType() - .equals(other.getContentType())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SAMPLE_RATE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getSampleRate()); - hash = (37 * hash) + NUM_CHANNELS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNumChannels()); - hash = (37 * hash) + LENGTH_FRAMES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLengthFrames()); - hash = (37 * hash) + ENCODED_AUDIO_STRING_FIELD_NUMBER; - hash = (53 * hash) + getEncodedAudioString().hashCode(); - hash = (37 * hash) + CONTENT_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getContentType().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.tensorflow.proto.framework.Summary.Audio parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.Summary.Audio parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.Summary.Audio parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.Summary.Audio parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.Summary.Audio parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.tensorflow.proto.framework.Summary.Audio parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.tensorflow.proto.framework.Summary.Audio parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.Summary.Audio 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 org.tensorflow.proto.framework.Summary.Audio parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.Summary.Audio 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 org.tensorflow.proto.framework.Summary.Audio parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.tensorflow.proto.framework.Summary.Audio 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(org.tensorflow.proto.framework.Summary.Audio prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tensorflow.Summary.Audio} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tensorflow.Summary.Audio) - org.tensorflow.proto.framework.Summary.AudioOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.tensorflow.proto.framework.SummaryProtos.internal_static_tensorflow_Summary_Audio_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.SummaryProtos.internal_static_tensorflow_Summary_Audio_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.Summary.Audio.class, org.tensorflow.proto.framework.Summary.Audio.Builder.class); - } - - // Construct using org.tensorflow.proto.framework.Summary.Audio.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sampleRate_ = 0F; - - numChannels_ = 0L; - - lengthFrames_ = 0L; - - encodedAudioString_ = com.google.protobuf.ByteString.EMPTY; - - contentType_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.tensorflow.proto.framework.SummaryProtos.internal_static_tensorflow_Summary_Audio_descriptor; - } - - @java.lang.Override - public org.tensorflow.proto.framework.Summary.Audio getDefaultInstanceForType() { - return org.tensorflow.proto.framework.Summary.Audio.getDefaultInstance(); - } - - @java.lang.Override - public org.tensorflow.proto.framework.Summary.Audio build() { - org.tensorflow.proto.framework.Summary.Audio result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.tensorflow.proto.framework.Summary.Audio buildPartial() { - org.tensorflow.proto.framework.Summary.Audio result = new org.tensorflow.proto.framework.Summary.Audio(this); - result.sampleRate_ = sampleRate_; - result.numChannels_ = numChannels_; - result.lengthFrames_ = lengthFrames_; - result.encodedAudioString_ = encodedAudioString_; - result.contentType_ = contentType_; - 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 org.tensorflow.proto.framework.Summary.Audio) { - return mergeFrom((org.tensorflow.proto.framework.Summary.Audio)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.tensorflow.proto.framework.Summary.Audio other) { - if (other == org.tensorflow.proto.framework.Summary.Audio.getDefaultInstance()) return this; - if (other.getSampleRate() != 0F) { - setSampleRate(other.getSampleRate()); - } - if (other.getNumChannels() != 0L) { - setNumChannels(other.getNumChannels()); - } - if (other.getLengthFrames() != 0L) { - setLengthFrames(other.getLengthFrames()); - } - if (other.getEncodedAudioString() != com.google.protobuf.ByteString.EMPTY) { - setEncodedAudioString(other.getEncodedAudioString()); - } - if (!other.getContentType().isEmpty()) { - contentType_ = other.contentType_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.tensorflow.proto.framework.Summary.Audio parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.Summary.Audio) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private float sampleRate_ ; - /** - *
-       * Sample rate of the audio in Hz.
-       * 
- * - * float sample_rate = 1; - */ - public float getSampleRate() { - return sampleRate_; - } - /** - *
-       * Sample rate of the audio in Hz.
-       * 
- * - * float sample_rate = 1; - */ - public Builder setSampleRate(float value) { - - sampleRate_ = value; - onChanged(); - return this; - } - /** - *
-       * Sample rate of the audio in Hz.
-       * 
- * - * float sample_rate = 1; - */ - public Builder clearSampleRate() { - - sampleRate_ = 0F; - onChanged(); - return this; - } - - private long numChannels_ ; - /** - *
-       * Number of channels of audio.
-       * 
- * - * int64 num_channels = 2; - */ - public long getNumChannels() { - return numChannels_; - } - /** - *
-       * Number of channels of audio.
-       * 
- * - * int64 num_channels = 2; - */ - public Builder setNumChannels(long value) { - - numChannels_ = value; - onChanged(); - return this; - } - /** - *
-       * Number of channels of audio.
-       * 
- * - * int64 num_channels = 2; - */ - public Builder clearNumChannels() { - - numChannels_ = 0L; - onChanged(); - return this; - } - - private long lengthFrames_ ; - /** - *
-       * Length of the audio in frames (samples per channel).
-       * 
- * - * int64 length_frames = 3; - */ - public long getLengthFrames() { - return lengthFrames_; - } - /** - *
-       * Length of the audio in frames (samples per channel).
-       * 
- * - * int64 length_frames = 3; - */ - public Builder setLengthFrames(long value) { - - lengthFrames_ = value; - onChanged(); - return this; - } - /** - *
-       * Length of the audio in frames (samples per channel).
-       * 
- * - * int64 length_frames = 3; - */ - public Builder clearLengthFrames() { - - lengthFrames_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString encodedAudioString_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * Encoded audio data and its associated RFC 2045 content type (e.g.
-       * "audio/wav").
-       * 
- * - * bytes encoded_audio_string = 4; - */ - public com.google.protobuf.ByteString getEncodedAudioString() { - return encodedAudioString_; - } - /** - *
-       * Encoded audio data and its associated RFC 2045 content type (e.g.
-       * "audio/wav").
-       * 
- * - * bytes encoded_audio_string = 4; - */ - public Builder setEncodedAudioString(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - encodedAudioString_ = value; - onChanged(); - return this; - } - /** - *
-       * Encoded audio data and its associated RFC 2045 content type (e.g.
-       * "audio/wav").
-       * 
- * - * bytes encoded_audio_string = 4; - */ - public Builder clearEncodedAudioString() { - - encodedAudioString_ = getDefaultInstance().getEncodedAudioString(); - onChanged(); - return this; - } - - private java.lang.Object contentType_ = ""; - /** - * string content_type = 5; - */ - public java.lang.String getContentType() { - java.lang.Object ref = contentType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contentType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string content_type = 5; - */ - public com.google.protobuf.ByteString - getContentTypeBytes() { - java.lang.Object ref = contentType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contentType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string content_type = 5; - */ - public Builder setContentType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - contentType_ = value; - onChanged(); - return this; - } - /** - * string content_type = 5; - */ - public Builder clearContentType() { - - contentType_ = getDefaultInstance().getContentType(); - onChanged(); - return this; - } - /** - * string content_type = 5; - */ - public Builder setContentTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - contentType_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tensorflow.Summary.Audio) - } - - // @@protoc_insertion_point(class_scope:tensorflow.Summary.Audio) - private static final org.tensorflow.proto.framework.Summary.Audio DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.Summary.Audio(); - } - - public static org.tensorflow.proto.framework.Summary.Audio getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser
* * int64 requested_bytes = 1; + * @return The requestedBytes. */ long getRequestedBytes(); @@ -22,6 +23,7 @@ public interface AllocationDescriptionOrBuilder extends *
* * int64 allocated_bytes = 2; + * @return The allocatedBytes. */ long getAllocatedBytes(); @@ -31,6 +33,7 @@ public interface AllocationDescriptionOrBuilder extends * * * string allocator_name = 3; + * @return The allocatorName. */ java.lang.String getAllocatorName(); /** @@ -39,6 +42,7 @@ public interface AllocationDescriptionOrBuilder extends * * * string allocator_name = 3; + * @return The bytes for allocatorName. */ com.google.protobuf.ByteString getAllocatorNameBytes(); @@ -49,6 +53,7 @@ public interface AllocationDescriptionOrBuilder extends * * * int64 allocation_id = 4; + * @return The allocationId. */ long getAllocationId(); @@ -58,6 +63,7 @@ public interface AllocationDescriptionOrBuilder extends * * * bool has_single_reference = 5; + * @return The hasSingleReference. */ boolean getHasSingleReference(); @@ -67,6 +73,7 @@ public interface AllocationDescriptionOrBuilder extends * * * uint64 ptr = 6; + * @return The ptr. */ long getPtr(); } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AllocationDescriptionProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AllocationDescriptionProtos.java similarity index 87% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AllocationDescriptionProtos.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AllocationDescriptionProtos.java index f3af7b380fc..bf746192c95 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AllocationDescriptionProtos.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AllocationDescriptionProtos.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/allocation_description.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public final class AllocationDescriptionProtos { private AllocationDescriptionProtos() {} @@ -33,12 +33,11 @@ public static void registerAllExtensions( "ionDescription\022\027\n\017requested_bytes\030\001 \001(\003\022" + "\027\n\017allocated_bytes\030\002 \001(\003\022\026\n\016allocator_na" + "me\030\003 \001(\t\022\025\n\rallocation_id\030\004 \001(\003\022\034\n\024has_s" + - "ingle_reference\030\005 \001(\010\022\013\n\003ptr\030\006 \001(\004B\241\001\n\036o" + - "rg.tensorflow.proto.frameworkB\033Allocatio" + - "nDescriptionProtosP\001Z]github.com/tensorf" + - "low/tensorflow/tensorflow/go/core/framew" + - "ork/allocation_description_go_proto\370\001\001b\006" + - "proto3" + "ingle_reference\030\005 \001(\010\022\013\n\003ptr\030\006 \001(\004B\227\001\n\024o" + + "rg.tensorflow.protoB\033AllocationDescripti" + + "onProtosP\001Z]github.com/tensorflow/tensor" + + "flow/tensorflow/go/core/framework/alloca" + + "tion_description_go_proto\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AllocationRecord.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AllocationRecord.java new file mode 100644 index 00000000000..0da9249630b --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AllocationRecord.java @@ -0,0 +1,571 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/step_stats.proto + +package org.tensorflow.proto; + +/** + *
+ * An allocation/de-allocation operation performed by the allocator.
+ * 
+ * + * Protobuf type {@code tensorflow.AllocationRecord} + */ +public final class AllocationRecord extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.AllocationRecord) + AllocationRecordOrBuilder { +private static final long serialVersionUID = 0L; + // Use AllocationRecord.newBuilder() to construct. + private AllocationRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AllocationRecord() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AllocationRecord(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_AllocationRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_AllocationRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.AllocationRecord.class, org.tensorflow.proto.AllocationRecord.Builder.class); + } + + public static final int ALLOC_MICROS_FIELD_NUMBER = 1; + private long allocMicros_; + /** + *
+   * The timestamp of the operation.
+   * 
+ * + * int64 alloc_micros = 1; + * @return The allocMicros. + */ + @java.lang.Override + public long getAllocMicros() { + return allocMicros_; + } + + public static final int ALLOC_BYTES_FIELD_NUMBER = 2; + private long allocBytes_; + /** + *
+   * Number of bytes allocated, or de-allocated if negative.
+   * 
+ * + * int64 alloc_bytes = 2; + * @return The allocBytes. + */ + @java.lang.Override + public long getAllocBytes() { + return allocBytes_; + } + + 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 (allocMicros_ != 0L) { + output.writeInt64(1, allocMicros_); + } + if (allocBytes_ != 0L) { + output.writeInt64(2, allocBytes_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (allocMicros_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, allocMicros_); + } + if (allocBytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, allocBytes_); + } + 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 org.tensorflow.proto.AllocationRecord)) { + return super.equals(obj); + } + org.tensorflow.proto.AllocationRecord other = (org.tensorflow.proto.AllocationRecord) obj; + + if (getAllocMicros() + != other.getAllocMicros()) return false; + if (getAllocBytes() + != other.getAllocBytes()) 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) + ALLOC_MICROS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAllocMicros()); + hash = (37 * hash) + ALLOC_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAllocBytes()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.AllocationRecord parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.AllocationRecord parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.AllocationRecord parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.AllocationRecord parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.AllocationRecord parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.AllocationRecord parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.AllocationRecord parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.AllocationRecord 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 org.tensorflow.proto.AllocationRecord parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.AllocationRecord 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 org.tensorflow.proto.AllocationRecord parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.AllocationRecord 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(org.tensorflow.proto.AllocationRecord 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; + } + /** + *
+   * An allocation/de-allocation operation performed by the allocator.
+   * 
+ * + * Protobuf type {@code tensorflow.AllocationRecord} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.AllocationRecord) + org.tensorflow.proto.AllocationRecordOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_AllocationRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_AllocationRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.AllocationRecord.class, org.tensorflow.proto.AllocationRecord.Builder.class); + } + + // Construct using org.tensorflow.proto.AllocationRecord.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + allocMicros_ = 0L; + + allocBytes_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_AllocationRecord_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.AllocationRecord getDefaultInstanceForType() { + return org.tensorflow.proto.AllocationRecord.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.AllocationRecord build() { + org.tensorflow.proto.AllocationRecord result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.AllocationRecord buildPartial() { + org.tensorflow.proto.AllocationRecord result = new org.tensorflow.proto.AllocationRecord(this); + result.allocMicros_ = allocMicros_; + result.allocBytes_ = allocBytes_; + 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 org.tensorflow.proto.AllocationRecord) { + return mergeFrom((org.tensorflow.proto.AllocationRecord)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.AllocationRecord other) { + if (other == org.tensorflow.proto.AllocationRecord.getDefaultInstance()) return this; + if (other.getAllocMicros() != 0L) { + setAllocMicros(other.getAllocMicros()); + } + if (other.getAllocBytes() != 0L) { + setAllocBytes(other.getAllocBytes()); + } + 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: { + allocMicros_ = input.readInt64(); + + break; + } // case 8 + case 16: { + allocBytes_ = input.readInt64(); + + break; + } // case 16 + 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 long allocMicros_ ; + /** + *
+     * The timestamp of the operation.
+     * 
+ * + * int64 alloc_micros = 1; + * @return The allocMicros. + */ + @java.lang.Override + public long getAllocMicros() { + return allocMicros_; + } + /** + *
+     * The timestamp of the operation.
+     * 
+ * + * int64 alloc_micros = 1; + * @param value The allocMicros to set. + * @return This builder for chaining. + */ + public Builder setAllocMicros(long value) { + + allocMicros_ = value; + onChanged(); + return this; + } + /** + *
+     * The timestamp of the operation.
+     * 
+ * + * int64 alloc_micros = 1; + * @return This builder for chaining. + */ + public Builder clearAllocMicros() { + + allocMicros_ = 0L; + onChanged(); + return this; + } + + private long allocBytes_ ; + /** + *
+     * Number of bytes allocated, or de-allocated if negative.
+     * 
+ * + * int64 alloc_bytes = 2; + * @return The allocBytes. + */ + @java.lang.Override + public long getAllocBytes() { + return allocBytes_; + } + /** + *
+     * Number of bytes allocated, or de-allocated if negative.
+     * 
+ * + * int64 alloc_bytes = 2; + * @param value The allocBytes to set. + * @return This builder for chaining. + */ + public Builder setAllocBytes(long value) { + + allocBytes_ = value; + onChanged(); + return this; + } + /** + *
+     * Number of bytes allocated, or de-allocated if negative.
+     * 
+ * + * int64 alloc_bytes = 2; + * @return This builder for chaining. + */ + public Builder clearAllocBytes() { + + allocBytes_ = 0L; + 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:tensorflow.AllocationRecord) + } + + // @@protoc_insertion_point(class_scope:tensorflow.AllocationRecord) + private static final org.tensorflow.proto.AllocationRecord DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.AllocationRecord(); + } + + public static org.tensorflow.proto.AllocationRecord getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllocationRecord 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 org.tensorflow.proto.AllocationRecord getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AllocationRecordOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AllocationRecordOrBuilder.java similarity index 87% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AllocationRecordOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AllocationRecordOrBuilder.java index c6c5dd502da..08fdb9d2c7a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AllocationRecordOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AllocationRecordOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/step_stats.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface AllocationRecordOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.AllocationRecord) @@ -13,6 +13,7 @@ public interface AllocationRecordOrBuilder extends * * * int64 alloc_micros = 1; + * @return The allocMicros. */ long getAllocMicros(); @@ -22,6 +23,7 @@ public interface AllocationRecordOrBuilder extends * * * int64 alloc_bytes = 2; + * @return The allocBytes. */ long getAllocBytes(); } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AllocatorMemoryUsed.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AllocatorMemoryUsed.java similarity index 76% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AllocatorMemoryUsed.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AllocatorMemoryUsed.java index 3cb33266367..4439abfc23d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AllocatorMemoryUsed.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AllocatorMemoryUsed.java @@ -1,12 +1,12 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/step_stats.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; /** * Protobuf type {@code tensorflow.AllocatorMemoryUsed} */ -public final class AllocatorMemoryUsed extends +public final class AllocatorMemoryUsed extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.AllocatorMemoryUsed) AllocatorMemoryUsedOrBuilder { @@ -32,100 +32,26 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private AllocatorMemoryUsed( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - allocatorName_ = s; - break; - } - case 16: { - - totalBytes_ = input.readInt64(); - break; - } - case 24: { - - peakBytes_ = input.readInt64(); - break; - } - case 32: { - - liveBytes_ = input.readInt64(); - break; - } - case 40: { - - allocatorBytesInUse_ = input.readInt64(); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - allocationRecords_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - allocationRecords_.add( - input.readMessage(org.tensorflow.proto.framework.AllocationRecord.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)) { - allocationRecords_ = java.util.Collections.unmodifiableList(allocationRecords_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_AllocatorMemoryUsed_descriptor; + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_AllocatorMemoryUsed_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_AllocatorMemoryUsed_fieldAccessorTable + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_AllocatorMemoryUsed_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.AllocatorMemoryUsed.class, org.tensorflow.proto.framework.AllocatorMemoryUsed.Builder.class); + org.tensorflow.proto.AllocatorMemoryUsed.class, org.tensorflow.proto.AllocatorMemoryUsed.Builder.class); } public static final int ALLOCATOR_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object allocatorName_; /** * string allocator_name = 1; + * @return The allocatorName. */ + @java.lang.Override public java.lang.String getAllocatorName() { java.lang.Object ref = allocatorName_; if (ref instanceof java.lang.String) { @@ -140,7 +66,9 @@ public java.lang.String getAllocatorName() { } /** * string allocator_name = 1; + * @return The bytes for allocatorName. */ + @java.lang.Override public com.google.protobuf.ByteString getAllocatorNameBytes() { java.lang.Object ref = allocatorName_; @@ -163,7 +91,9 @@ public java.lang.String getAllocatorName() { * * * int64 total_bytes = 2; + * @return The totalBytes. */ + @java.lang.Override public long getTotalBytes() { return totalBytes_; } @@ -172,7 +102,9 @@ public long getTotalBytes() { private long peakBytes_; /** * int64 peak_bytes = 3; + * @return The peakBytes. */ + @java.lang.Override public long getPeakBytes() { return peakBytes_; } @@ -185,13 +117,15 @@ public long getPeakBytes() { * * * int64 live_bytes = 4; + * @return The liveBytes. */ + @java.lang.Override public long getLiveBytes() { return liveBytes_; } public static final int ALLOCATION_RECORDS_FIELD_NUMBER = 6; - private java.util.List allocationRecords_; + private java.util.List allocationRecords_; /** *
    * The allocation and deallocation timeline.
@@ -199,7 +133,8 @@ public long getLiveBytes() {
    *
    * repeated .tensorflow.AllocationRecord allocation_records = 6;
    */
-  public java.util.List getAllocationRecordsList() {
+  @java.lang.Override
+  public java.util.List getAllocationRecordsList() {
     return allocationRecords_;
   }
   /**
@@ -209,7 +144,8 @@ public java.util.List getAlloca
    *
    * repeated .tensorflow.AllocationRecord allocation_records = 6;
    */
-  public java.util.List 
+  @java.lang.Override
+  public java.util.List 
       getAllocationRecordsOrBuilderList() {
     return allocationRecords_;
   }
@@ -220,6 +156,7 @@ public java.util.List getAlloca
    *
    * repeated .tensorflow.AllocationRecord allocation_records = 6;
    */
+  @java.lang.Override
   public int getAllocationRecordsCount() {
     return allocationRecords_.size();
   }
@@ -230,7 +167,8 @@ public int getAllocationRecordsCount() {
    *
    * repeated .tensorflow.AllocationRecord allocation_records = 6;
    */
-  public org.tensorflow.proto.framework.AllocationRecord getAllocationRecords(int index) {
+  @java.lang.Override
+  public org.tensorflow.proto.AllocationRecord getAllocationRecords(int index) {
     return allocationRecords_.get(index);
   }
   /**
@@ -240,7 +178,8 @@ public org.tensorflow.proto.framework.AllocationRecord getAllocationRecords(int
    *
    * repeated .tensorflow.AllocationRecord allocation_records = 6;
    */
-  public org.tensorflow.proto.framework.AllocationRecordOrBuilder getAllocationRecordsOrBuilder(
+  @java.lang.Override
+  public org.tensorflow.proto.AllocationRecordOrBuilder getAllocationRecordsOrBuilder(
       int index) {
     return allocationRecords_.get(index);
   }
@@ -254,7 +193,9 @@ public org.tensorflow.proto.framework.AllocationRecordOrBuilder getAllocationRec
    * 
* * int64 allocator_bytes_in_use = 5; + * @return The allocatorBytesInUse. */ + @java.lang.Override public long getAllocatorBytesInUse() { return allocatorBytesInUse_; } @@ -273,7 +214,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getAllocatorNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allocatorName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allocatorName_); } if (totalBytes_ != 0L) { @@ -291,7 +232,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < allocationRecords_.size(); i++) { output.writeMessage(6, allocationRecords_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -300,7 +241,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getAllocatorNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allocatorName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, allocatorName_); } if (totalBytes_ != 0L) { @@ -323,7 +264,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, allocationRecords_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -333,10 +274,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.AllocatorMemoryUsed)) { + if (!(obj instanceof org.tensorflow.proto.AllocatorMemoryUsed)) { return super.equals(obj); } - org.tensorflow.proto.framework.AllocatorMemoryUsed other = (org.tensorflow.proto.framework.AllocatorMemoryUsed) obj; + org.tensorflow.proto.AllocatorMemoryUsed other = (org.tensorflow.proto.AllocatorMemoryUsed) obj; if (!getAllocatorName() .equals(other.getAllocatorName())) return false; @@ -350,7 +291,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getAllocationRecordsList())) return false; if (getAllocatorBytesInUse() != other.getAllocatorBytesInUse()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -379,74 +320,74 @@ public int hashCode() { hash = (37 * hash) + ALLOCATOR_BYTES_IN_USE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAllocatorBytesInUse()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.AllocatorMemoryUsed parseFrom( + public static org.tensorflow.proto.AllocatorMemoryUsed parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.AllocatorMemoryUsed parseFrom( + public static org.tensorflow.proto.AllocatorMemoryUsed parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.AllocatorMemoryUsed parseFrom( + public static org.tensorflow.proto.AllocatorMemoryUsed parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.AllocatorMemoryUsed parseFrom( + public static org.tensorflow.proto.AllocatorMemoryUsed parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.AllocatorMemoryUsed parseFrom(byte[] data) + public static org.tensorflow.proto.AllocatorMemoryUsed parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.AllocatorMemoryUsed parseFrom( + public static org.tensorflow.proto.AllocatorMemoryUsed parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.AllocatorMemoryUsed parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.AllocatorMemoryUsed parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.AllocatorMemoryUsed parseFrom( + public static org.tensorflow.proto.AllocatorMemoryUsed 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 org.tensorflow.proto.framework.AllocatorMemoryUsed parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.AllocatorMemoryUsed parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.AllocatorMemoryUsed parseDelimitedFrom( + public static org.tensorflow.proto.AllocatorMemoryUsed 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 org.tensorflow.proto.framework.AllocatorMemoryUsed parseFrom( + public static org.tensorflow.proto.AllocatorMemoryUsed parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.AllocatorMemoryUsed parseFrom( + public static org.tensorflow.proto.AllocatorMemoryUsed parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -459,7 +400,7 @@ public static org.tensorflow.proto.framework.AllocatorMemoryUsed parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.AllocatorMemoryUsed prototype) { + public static Builder newBuilder(org.tensorflow.proto.AllocatorMemoryUsed prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -480,35 +421,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.AllocatorMemoryUsed) - org.tensorflow.proto.framework.AllocatorMemoryUsedOrBuilder { + org.tensorflow.proto.AllocatorMemoryUsedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_AllocatorMemoryUsed_descriptor; + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_AllocatorMemoryUsed_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_AllocatorMemoryUsed_fieldAccessorTable + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_AllocatorMemoryUsed_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.AllocatorMemoryUsed.class, org.tensorflow.proto.framework.AllocatorMemoryUsed.Builder.class); + org.tensorflow.proto.AllocatorMemoryUsed.class, org.tensorflow.proto.AllocatorMemoryUsed.Builder.class); } - // Construct using org.tensorflow.proto.framework.AllocatorMemoryUsed.newBuilder() + // Construct using org.tensorflow.proto.AllocatorMemoryUsed.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAllocationRecordsFieldBuilder(); - } + } @java.lang.Override public Builder clear() { @@ -523,10 +458,11 @@ public Builder clear() { if (allocationRecordsBuilder_ == null) { allocationRecords_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + allocationRecords_ = null; allocationRecordsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); allocatorBytesInUse_ = 0L; return this; @@ -535,17 +471,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_AllocatorMemoryUsed_descriptor; + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_AllocatorMemoryUsed_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.AllocatorMemoryUsed getDefaultInstanceForType() { - return org.tensorflow.proto.framework.AllocatorMemoryUsed.getDefaultInstance(); + public org.tensorflow.proto.AllocatorMemoryUsed getDefaultInstanceForType() { + return org.tensorflow.proto.AllocatorMemoryUsed.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.AllocatorMemoryUsed build() { - org.tensorflow.proto.framework.AllocatorMemoryUsed result = buildPartial(); + public org.tensorflow.proto.AllocatorMemoryUsed build() { + org.tensorflow.proto.AllocatorMemoryUsed result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -553,8 +489,8 @@ public org.tensorflow.proto.framework.AllocatorMemoryUsed build() { } @java.lang.Override - public org.tensorflow.proto.framework.AllocatorMemoryUsed buildPartial() { - org.tensorflow.proto.framework.AllocatorMemoryUsed result = new org.tensorflow.proto.framework.AllocatorMemoryUsed(this); + public org.tensorflow.proto.AllocatorMemoryUsed buildPartial() { + org.tensorflow.proto.AllocatorMemoryUsed result = new org.tensorflow.proto.AllocatorMemoryUsed(this); int from_bitField0_ = bitField0_; result.allocatorName_ = allocatorName_; result.totalBytes_ = totalBytes_; @@ -608,16 +544,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.AllocatorMemoryUsed) { - return mergeFrom((org.tensorflow.proto.framework.AllocatorMemoryUsed)other); + if (other instanceof org.tensorflow.proto.AllocatorMemoryUsed) { + return mergeFrom((org.tensorflow.proto.AllocatorMemoryUsed)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.AllocatorMemoryUsed other) { - if (other == org.tensorflow.proto.framework.AllocatorMemoryUsed.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.AllocatorMemoryUsed other) { + if (other == org.tensorflow.proto.AllocatorMemoryUsed.getDefaultInstance()) return this; if (!other.getAllocatorName().isEmpty()) { allocatorName_ = other.allocatorName_; onChanged(); @@ -660,7 +596,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.AllocatorMemoryUsed othe if (other.getAllocatorBytesInUse() != 0L) { setAllocatorBytesInUse(other.getAllocatorBytesInUse()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -675,17 +611,68 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.AllocatorMemoryUsed parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + allocatorName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + totalBytes_ = input.readInt64(); + + break; + } // case 16 + case 24: { + peakBytes_ = input.readInt64(); + + break; + } // case 24 + case 32: { + liveBytes_ = input.readInt64(); + + break; + } // case 32 + case 40: { + allocatorBytesInUse_ = input.readInt64(); + + break; + } // case 40 + case 50: { + org.tensorflow.proto.AllocationRecord m = + input.readMessage( + org.tensorflow.proto.AllocationRecord.parser(), + extensionRegistry); + if (allocationRecordsBuilder_ == null) { + ensureAllocationRecordsIsMutable(); + allocationRecords_.add(m); + } else { + allocationRecordsBuilder_.addMessage(m); + } + break; + } // case 50 + 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) { - parsedMessage = (org.tensorflow.proto.framework.AllocatorMemoryUsed) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -693,6 +680,7 @@ public Builder mergeFrom( private java.lang.Object allocatorName_ = ""; /** * string allocator_name = 1; + * @return The allocatorName. */ public java.lang.String getAllocatorName() { java.lang.Object ref = allocatorName_; @@ -708,6 +696,7 @@ public java.lang.String getAllocatorName() { } /** * string allocator_name = 1; + * @return The bytes for allocatorName. */ public com.google.protobuf.ByteString getAllocatorNameBytes() { @@ -724,6 +713,8 @@ public java.lang.String getAllocatorName() { } /** * string allocator_name = 1; + * @param value The allocatorName to set. + * @return This builder for chaining. */ public Builder setAllocatorName( java.lang.String value) { @@ -737,6 +728,7 @@ public Builder setAllocatorName( } /** * string allocator_name = 1; + * @return This builder for chaining. */ public Builder clearAllocatorName() { @@ -746,6 +738,8 @@ public Builder clearAllocatorName() { } /** * string allocator_name = 1; + * @param value The bytes for allocatorName to set. + * @return This builder for chaining. */ public Builder setAllocatorNameBytes( com.google.protobuf.ByteString value) { @@ -766,7 +760,9 @@ public Builder setAllocatorNameBytes( * * * int64 total_bytes = 2; + * @return The totalBytes. */ + @java.lang.Override public long getTotalBytes() { return totalBytes_; } @@ -776,6 +772,8 @@ public long getTotalBytes() { * * * int64 total_bytes = 2; + * @param value The totalBytes to set. + * @return This builder for chaining. */ public Builder setTotalBytes(long value) { @@ -789,6 +787,7 @@ public Builder setTotalBytes(long value) { * * * int64 total_bytes = 2; + * @return This builder for chaining. */ public Builder clearTotalBytes() { @@ -800,12 +799,16 @@ public Builder clearTotalBytes() { private long peakBytes_ ; /** * int64 peak_bytes = 3; + * @return The peakBytes. */ + @java.lang.Override public long getPeakBytes() { return peakBytes_; } /** * int64 peak_bytes = 3; + * @param value The peakBytes to set. + * @return This builder for chaining. */ public Builder setPeakBytes(long value) { @@ -815,6 +818,7 @@ public Builder setPeakBytes(long value) { } /** * int64 peak_bytes = 3; + * @return This builder for chaining. */ public Builder clearPeakBytes() { @@ -830,7 +834,9 @@ public Builder clearPeakBytes() { * * * int64 live_bytes = 4; + * @return The liveBytes. */ + @java.lang.Override public long getLiveBytes() { return liveBytes_; } @@ -840,6 +846,8 @@ public long getLiveBytes() { * * * int64 live_bytes = 4; + * @param value The liveBytes to set. + * @return This builder for chaining. */ public Builder setLiveBytes(long value) { @@ -853,6 +861,7 @@ public Builder setLiveBytes(long value) { * * * int64 live_bytes = 4; + * @return This builder for chaining. */ public Builder clearLiveBytes() { @@ -861,17 +870,17 @@ public Builder clearLiveBytes() { return this; } - private java.util.List allocationRecords_ = + private java.util.List allocationRecords_ = java.util.Collections.emptyList(); private void ensureAllocationRecordsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - allocationRecords_ = new java.util.ArrayList(allocationRecords_); + allocationRecords_ = new java.util.ArrayList(allocationRecords_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.AllocationRecord, org.tensorflow.proto.framework.AllocationRecord.Builder, org.tensorflow.proto.framework.AllocationRecordOrBuilder> allocationRecordsBuilder_; + org.tensorflow.proto.AllocationRecord, org.tensorflow.proto.AllocationRecord.Builder, org.tensorflow.proto.AllocationRecordOrBuilder> allocationRecordsBuilder_; /** *
@@ -880,7 +889,7 @@ private void ensureAllocationRecordsIsMutable() {
      *
      * repeated .tensorflow.AllocationRecord allocation_records = 6;
      */
-    public java.util.List getAllocationRecordsList() {
+    public java.util.List getAllocationRecordsList() {
       if (allocationRecordsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(allocationRecords_);
       } else {
@@ -908,7 +917,7 @@ public int getAllocationRecordsCount() {
      *
      * repeated .tensorflow.AllocationRecord allocation_records = 6;
      */
-    public org.tensorflow.proto.framework.AllocationRecord getAllocationRecords(int index) {
+    public org.tensorflow.proto.AllocationRecord getAllocationRecords(int index) {
       if (allocationRecordsBuilder_ == null) {
         return allocationRecords_.get(index);
       } else {
@@ -923,7 +932,7 @@ public org.tensorflow.proto.framework.AllocationRecord getAllocationRecords(int
      * repeated .tensorflow.AllocationRecord allocation_records = 6;
      */
     public Builder setAllocationRecords(
-        int index, org.tensorflow.proto.framework.AllocationRecord value) {
+        int index, org.tensorflow.proto.AllocationRecord value) {
       if (allocationRecordsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -944,7 +953,7 @@ public Builder setAllocationRecords(
      * repeated .tensorflow.AllocationRecord allocation_records = 6;
      */
     public Builder setAllocationRecords(
-        int index, org.tensorflow.proto.framework.AllocationRecord.Builder builderForValue) {
+        int index, org.tensorflow.proto.AllocationRecord.Builder builderForValue) {
       if (allocationRecordsBuilder_ == null) {
         ensureAllocationRecordsIsMutable();
         allocationRecords_.set(index, builderForValue.build());
@@ -961,7 +970,7 @@ public Builder setAllocationRecords(
      *
      * repeated .tensorflow.AllocationRecord allocation_records = 6;
      */
-    public Builder addAllocationRecords(org.tensorflow.proto.framework.AllocationRecord value) {
+    public Builder addAllocationRecords(org.tensorflow.proto.AllocationRecord value) {
       if (allocationRecordsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -982,7 +991,7 @@ public Builder addAllocationRecords(org.tensorflow.proto.framework.AllocationRec
      * repeated .tensorflow.AllocationRecord allocation_records = 6;
      */
     public Builder addAllocationRecords(
-        int index, org.tensorflow.proto.framework.AllocationRecord value) {
+        int index, org.tensorflow.proto.AllocationRecord value) {
       if (allocationRecordsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1003,7 +1012,7 @@ public Builder addAllocationRecords(
      * repeated .tensorflow.AllocationRecord allocation_records = 6;
      */
     public Builder addAllocationRecords(
-        org.tensorflow.proto.framework.AllocationRecord.Builder builderForValue) {
+        org.tensorflow.proto.AllocationRecord.Builder builderForValue) {
       if (allocationRecordsBuilder_ == null) {
         ensureAllocationRecordsIsMutable();
         allocationRecords_.add(builderForValue.build());
@@ -1021,7 +1030,7 @@ public Builder addAllocationRecords(
      * repeated .tensorflow.AllocationRecord allocation_records = 6;
      */
     public Builder addAllocationRecords(
-        int index, org.tensorflow.proto.framework.AllocationRecord.Builder builderForValue) {
+        int index, org.tensorflow.proto.AllocationRecord.Builder builderForValue) {
       if (allocationRecordsBuilder_ == null) {
         ensureAllocationRecordsIsMutable();
         allocationRecords_.add(index, builderForValue.build());
@@ -1039,7 +1048,7 @@ public Builder addAllocationRecords(
      * repeated .tensorflow.AllocationRecord allocation_records = 6;
      */
     public Builder addAllAllocationRecords(
-        java.lang.Iterable values) {
+        java.lang.Iterable values) {
       if (allocationRecordsBuilder_ == null) {
         ensureAllocationRecordsIsMutable();
         com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -1091,7 +1100,7 @@ public Builder removeAllocationRecords(int index) {
      *
      * repeated .tensorflow.AllocationRecord allocation_records = 6;
      */
-    public org.tensorflow.proto.framework.AllocationRecord.Builder getAllocationRecordsBuilder(
+    public org.tensorflow.proto.AllocationRecord.Builder getAllocationRecordsBuilder(
         int index) {
       return getAllocationRecordsFieldBuilder().getBuilder(index);
     }
@@ -1102,7 +1111,7 @@ public org.tensorflow.proto.framework.AllocationRecord.Builder getAllocationReco
      *
      * repeated .tensorflow.AllocationRecord allocation_records = 6;
      */
-    public org.tensorflow.proto.framework.AllocationRecordOrBuilder getAllocationRecordsOrBuilder(
+    public org.tensorflow.proto.AllocationRecordOrBuilder getAllocationRecordsOrBuilder(
         int index) {
       if (allocationRecordsBuilder_ == null) {
         return allocationRecords_.get(index);  } else {
@@ -1116,7 +1125,7 @@ public org.tensorflow.proto.framework.AllocationRecordOrBuilder getAllocationRec
      *
      * repeated .tensorflow.AllocationRecord allocation_records = 6;
      */
-    public java.util.List 
+    public java.util.List 
          getAllocationRecordsOrBuilderList() {
       if (allocationRecordsBuilder_ != null) {
         return allocationRecordsBuilder_.getMessageOrBuilderList();
@@ -1131,9 +1140,9 @@ public org.tensorflow.proto.framework.AllocationRecordOrBuilder getAllocationRec
      *
      * repeated .tensorflow.AllocationRecord allocation_records = 6;
      */
-    public org.tensorflow.proto.framework.AllocationRecord.Builder addAllocationRecordsBuilder() {
+    public org.tensorflow.proto.AllocationRecord.Builder addAllocationRecordsBuilder() {
       return getAllocationRecordsFieldBuilder().addBuilder(
-          org.tensorflow.proto.framework.AllocationRecord.getDefaultInstance());
+          org.tensorflow.proto.AllocationRecord.getDefaultInstance());
     }
     /**
      * 
@@ -1142,10 +1151,10 @@ public org.tensorflow.proto.framework.AllocationRecord.Builder addAllocationReco
      *
      * repeated .tensorflow.AllocationRecord allocation_records = 6;
      */
-    public org.tensorflow.proto.framework.AllocationRecord.Builder addAllocationRecordsBuilder(
+    public org.tensorflow.proto.AllocationRecord.Builder addAllocationRecordsBuilder(
         int index) {
       return getAllocationRecordsFieldBuilder().addBuilder(
-          index, org.tensorflow.proto.framework.AllocationRecord.getDefaultInstance());
+          index, org.tensorflow.proto.AllocationRecord.getDefaultInstance());
     }
     /**
      * 
@@ -1154,16 +1163,16 @@ public org.tensorflow.proto.framework.AllocationRecord.Builder addAllocationReco
      *
      * repeated .tensorflow.AllocationRecord allocation_records = 6;
      */
-    public java.util.List 
+    public java.util.List 
          getAllocationRecordsBuilderList() {
       return getAllocationRecordsFieldBuilder().getBuilderList();
     }
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        org.tensorflow.proto.framework.AllocationRecord, org.tensorflow.proto.framework.AllocationRecord.Builder, org.tensorflow.proto.framework.AllocationRecordOrBuilder> 
+        org.tensorflow.proto.AllocationRecord, org.tensorflow.proto.AllocationRecord.Builder, org.tensorflow.proto.AllocationRecordOrBuilder> 
         getAllocationRecordsFieldBuilder() {
       if (allocationRecordsBuilder_ == null) {
         allocationRecordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            org.tensorflow.proto.framework.AllocationRecord, org.tensorflow.proto.framework.AllocationRecord.Builder, org.tensorflow.proto.framework.AllocationRecordOrBuilder>(
+            org.tensorflow.proto.AllocationRecord, org.tensorflow.proto.AllocationRecord.Builder, org.tensorflow.proto.AllocationRecordOrBuilder>(
                 allocationRecords_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1181,7 +1190,9 @@ public org.tensorflow.proto.framework.AllocationRecord.Builder addAllocationReco
      * 
* * int64 allocator_bytes_in_use = 5; + * @return The allocatorBytesInUse. */ + @java.lang.Override public long getAllocatorBytesInUse() { return allocatorBytesInUse_; } @@ -1192,6 +1203,8 @@ public long getAllocatorBytesInUse() { *
* * int64 allocator_bytes_in_use = 5; + * @param value The allocatorBytesInUse to set. + * @return This builder for chaining. */ public Builder setAllocatorBytesInUse(long value) { @@ -1206,6 +1219,7 @@ public Builder setAllocatorBytesInUse(long value) { *
* * int64 allocator_bytes_in_use = 5; + * @return This builder for chaining. */ public Builder clearAllocatorBytesInUse() { @@ -1230,12 +1244,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.AllocatorMemoryUsed) - private static final org.tensorflow.proto.framework.AllocatorMemoryUsed DEFAULT_INSTANCE; + private static final org.tensorflow.proto.AllocatorMemoryUsed DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.AllocatorMemoryUsed(); + DEFAULT_INSTANCE = new org.tensorflow.proto.AllocatorMemoryUsed(); } - public static org.tensorflow.proto.framework.AllocatorMemoryUsed getDefaultInstance() { + public static org.tensorflow.proto.AllocatorMemoryUsed getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1246,7 +1260,18 @@ public AllocatorMemoryUsed parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AllocatorMemoryUsed(input, extensionRegistry); + 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(); } }; @@ -1260,7 +1285,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.AllocatorMemoryUsed getDefaultInstanceForType() { + public org.tensorflow.proto.AllocatorMemoryUsed getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AllocatorMemoryUsedOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AllocatorMemoryUsedOrBuilder.java similarity index 80% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AllocatorMemoryUsedOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AllocatorMemoryUsedOrBuilder.java index 44dc47fa31d..3b2bf3ec5f5 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AllocatorMemoryUsedOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AllocatorMemoryUsedOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/step_stats.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface AllocatorMemoryUsedOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.AllocatorMemoryUsed) @@ -9,10 +9,12 @@ public interface AllocatorMemoryUsedOrBuilder extends /** * string allocator_name = 1; + * @return The allocatorName. */ java.lang.String getAllocatorName(); /** * string allocator_name = 1; + * @return The bytes for allocatorName. */ com.google.protobuf.ByteString getAllocatorNameBytes(); @@ -23,11 +25,13 @@ public interface AllocatorMemoryUsedOrBuilder extends * * * int64 total_bytes = 2; + * @return The totalBytes. */ long getTotalBytes(); /** * int64 peak_bytes = 3; + * @return The peakBytes. */ long getPeakBytes(); @@ -37,6 +41,7 @@ public interface AllocatorMemoryUsedOrBuilder extends * * * int64 live_bytes = 4; + * @return The liveBytes. */ long getLiveBytes(); @@ -47,7 +52,7 @@ public interface AllocatorMemoryUsedOrBuilder extends * * repeated .tensorflow.AllocationRecord allocation_records = 6; */ - java.util.List + java.util.List getAllocationRecordsList(); /** *
@@ -56,7 +61,7 @@ public interface AllocatorMemoryUsedOrBuilder extends
    *
    * repeated .tensorflow.AllocationRecord allocation_records = 6;
    */
-  org.tensorflow.proto.framework.AllocationRecord getAllocationRecords(int index);
+  org.tensorflow.proto.AllocationRecord getAllocationRecords(int index);
   /**
    * 
    * The allocation and deallocation timeline.
@@ -72,7 +77,7 @@ public interface AllocatorMemoryUsedOrBuilder extends
    *
    * repeated .tensorflow.AllocationRecord allocation_records = 6;
    */
-  java.util.List 
+  java.util.List 
       getAllocationRecordsOrBuilderList();
   /**
    * 
@@ -81,7 +86,7 @@ public interface AllocatorMemoryUsedOrBuilder extends
    *
    * repeated .tensorflow.AllocationRecord allocation_records = 6;
    */
-  org.tensorflow.proto.framework.AllocationRecordOrBuilder getAllocationRecordsOrBuilder(
+  org.tensorflow.proto.AllocationRecordOrBuilder getAllocationRecordsOrBuilder(
       int index);
 
   /**
@@ -91,6 +96,7 @@ org.tensorflow.proto.framework.AllocationRecordOrBuilder getAllocationRecordsOrB
    * 
* * int64 allocator_bytes_in_use = 5; + * @return The allocatorBytesInUse. */ long getAllocatorBytesInUse(); } diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ApiDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ApiDef.java new file mode 100644 index 00000000000..441f276d544 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ApiDef.java @@ -0,0 +1,6460 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/api_def.proto + +package org.tensorflow.proto; + +/** + *
+ * Used to specify and override the default API & behavior in the
+ * generated code for client languages, from what you would get from
+ * the OpDef alone. There will be a set of ApiDefs that are common
+ * to all client languages, and another set per client language.
+ * The per-client-language ApiDefs will inherit values from the
+ * common ApiDefs which it can either replace or modify.
+ * We separate the API definition from the OpDef so we can evolve the
+ * API while remaining backwards compatible when interpreting old
+ * graphs.  Overrides go in an "api_def.pbtxt" file with a text-format
+ * ApiDefs message.
+ * WARNING: Be *very* careful changing the API for any existing op --
+ * you can change the semantics of existing code.  These changes may
+ * need to wait until a major release of TensorFlow to avoid breaking
+ * our compatibility promises.
+ * 
+ * + * Protobuf type {@code tensorflow.ApiDef} + */ +public final class ApiDef extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.ApiDef) + ApiDefOrBuilder { +private static final long serialVersionUID = 0L; + // Use ApiDef.newBuilder() to construct. + private ApiDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ApiDef() { + graphOpName_ = ""; + deprecationMessage_ = ""; + visibility_ = 0; + endpoint_ = java.util.Collections.emptyList(); + inArg_ = java.util.Collections.emptyList(); + outArg_ = java.util.Collections.emptyList(); + argOrder_ = com.google.protobuf.LazyStringArrayList.EMPTY; + attr_ = java.util.Collections.emptyList(); + summary_ = ""; + description_ = ""; + descriptionPrefix_ = ""; + descriptionSuffix_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ApiDef(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ApiDef.class, org.tensorflow.proto.ApiDef.Builder.class); + } + + /** + * Protobuf enum {@code tensorflow.ApiDef.Visibility} + */ + public enum Visibility + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Normally this is "VISIBLE" unless you are inheriting a
+     * different value from another ApiDef.
+     * 
+ * + * DEFAULT_VISIBILITY = 0; + */ + DEFAULT_VISIBILITY(0), + /** + *
+     * Publicly visible in the API.
+     * 
+ * + * VISIBLE = 1; + */ + VISIBLE(1), + /** + *
+     * Do not include this op in the generated API. If visibility is
+     * set to 'SKIP', other fields are ignored for this op.
+     * 
+ * + * SKIP = 2; + */ + SKIP(2), + /** + *
+     * Hide this op by putting it into an internal namespace (or whatever
+     * is appropriate in the target language).
+     * 
+ * + * HIDDEN = 3; + */ + HIDDEN(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Normally this is "VISIBLE" unless you are inheriting a
+     * different value from another ApiDef.
+     * 
+ * + * DEFAULT_VISIBILITY = 0; + */ + public static final int DEFAULT_VISIBILITY_VALUE = 0; + /** + *
+     * Publicly visible in the API.
+     * 
+ * + * VISIBLE = 1; + */ + public static final int VISIBLE_VALUE = 1; + /** + *
+     * Do not include this op in the generated API. If visibility is
+     * set to 'SKIP', other fields are ignored for this op.
+     * 
+ * + * SKIP = 2; + */ + public static final int SKIP_VALUE = 2; + /** + *
+     * Hide this op by putting it into an internal namespace (or whatever
+     * is appropriate in the target language).
+     * 
+ * + * HIDDEN = 3; + */ + public static final int HIDDEN_VALUE = 3; + + + 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 Visibility 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 Visibility forNumber(int value) { + switch (value) { + case 0: return DEFAULT_VISIBILITY; + case 1: return VISIBLE; + case 2: return SKIP; + case 3: return HIDDEN; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Visibility> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Visibility findValueByNumber(int number) { + return Visibility.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 org.tensorflow.proto.ApiDef.getDescriptor().getEnumTypes().get(0); + } + + private static final Visibility[] VALUES = values(); + + public static Visibility 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 Visibility(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:tensorflow.ApiDef.Visibility) + } + + public interface EndpointOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.ApiDef.Endpoint) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name should be either like "CamelCaseName" or
+     * "Package.CamelCaseName". Client-language-specific ApiDefs may
+     * use a snake_case convention instead of CamelCase.
+     * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * Name should be either like "CamelCaseName" or
+     * "Package.CamelCaseName". Client-language-specific ApiDefs may
+     * use a snake_case convention instead of CamelCase.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Set if this endpoint is deprecated. If set to true, a message suggesting
+     * to use a non-deprecated endpoint instead will be printed. If all
+     * endpoints are deprecated, set deprecation_message in ApiDef instead.
+     * 
+ * + * bool deprecated = 3; + * @return The deprecated. + */ + boolean getDeprecated(); + + /** + *
+     * Major version when an endpoint will be deleted. For e.g. set this
+     * value to 2 if endpoint should be removed in TensorFlow 2.0 and
+     * deprecated in versions before that.
+     * 
+ * + * int32 deprecation_version = 4; + * @return The deprecationVersion. + */ + int getDeprecationVersion(); + } + /** + *
+   * If you specify any endpoint, this will replace all of the
+   * inherited endpoints.  The first endpoint should be the
+   * "canonical" endpoint, and should not be deprecated (unless all
+   * endpoints are deprecated).
+   * 
+ * + * Protobuf type {@code tensorflow.ApiDef.Endpoint} + */ + public static final class Endpoint extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.ApiDef.Endpoint) + EndpointOrBuilder { + private static final long serialVersionUID = 0L; + // Use Endpoint.newBuilder() to construct. + private Endpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Endpoint() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Endpoint(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDef_Endpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDef_Endpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ApiDef.Endpoint.class, org.tensorflow.proto.ApiDef.Endpoint.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * Name should be either like "CamelCaseName" or
+     * "Package.CamelCaseName". Client-language-specific ApiDefs may
+     * use a snake_case convention instead of CamelCase.
+     * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+     * Name should be either like "CamelCaseName" or
+     * "Package.CamelCaseName". Client-language-specific ApiDefs may
+     * use a snake_case convention instead of CamelCase.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPRECATED_FIELD_NUMBER = 3; + private boolean deprecated_; + /** + *
+     * Set if this endpoint is deprecated. If set to true, a message suggesting
+     * to use a non-deprecated endpoint instead will be printed. If all
+     * endpoints are deprecated, set deprecation_message in ApiDef instead.
+     * 
+ * + * bool deprecated = 3; + * @return The deprecated. + */ + @java.lang.Override + public boolean getDeprecated() { + return deprecated_; + } + + public static final int DEPRECATION_VERSION_FIELD_NUMBER = 4; + private int deprecationVersion_; + /** + *
+     * Major version when an endpoint will be deleted. For e.g. set this
+     * value to 2 if endpoint should be removed in TensorFlow 2.0 and
+     * deprecated in versions before that.
+     * 
+ * + * int32 deprecation_version = 4; + * @return The deprecationVersion. + */ + @java.lang.Override + public int getDeprecationVersion() { + return deprecationVersion_; + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (deprecated_ != false) { + output.writeBool(3, deprecated_); + } + if (deprecationVersion_ != 0) { + output.writeInt32(4, deprecationVersion_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (deprecated_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, deprecated_); + } + if (deprecationVersion_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, deprecationVersion_); + } + 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 org.tensorflow.proto.ApiDef.Endpoint)) { + return super.equals(obj); + } + org.tensorflow.proto.ApiDef.Endpoint other = (org.tensorflow.proto.ApiDef.Endpoint) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getDeprecated() + != other.getDeprecated()) return false; + if (getDeprecationVersion() + != other.getDeprecationVersion()) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDeprecated()); + hash = (37 * hash) + DEPRECATION_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDeprecationVersion(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.ApiDef.Endpoint parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ApiDef.Endpoint parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ApiDef.Endpoint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ApiDef.Endpoint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ApiDef.Endpoint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ApiDef.Endpoint parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ApiDef.Endpoint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ApiDef.Endpoint 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 org.tensorflow.proto.ApiDef.Endpoint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ApiDef.Endpoint 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 org.tensorflow.proto.ApiDef.Endpoint parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ApiDef.Endpoint 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(org.tensorflow.proto.ApiDef.Endpoint 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; + } + /** + *
+     * If you specify any endpoint, this will replace all of the
+     * inherited endpoints.  The first endpoint should be the
+     * "canonical" endpoint, and should not be deprecated (unless all
+     * endpoints are deprecated).
+     * 
+ * + * Protobuf type {@code tensorflow.ApiDef.Endpoint} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.ApiDef.Endpoint) + org.tensorflow.proto.ApiDef.EndpointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDef_Endpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDef_Endpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ApiDef.Endpoint.class, org.tensorflow.proto.ApiDef.Endpoint.Builder.class); + } + + // Construct using org.tensorflow.proto.ApiDef.Endpoint.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + deprecated_ = false; + + deprecationVersion_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDef_Endpoint_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.ApiDef.Endpoint getDefaultInstanceForType() { + return org.tensorflow.proto.ApiDef.Endpoint.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.ApiDef.Endpoint build() { + org.tensorflow.proto.ApiDef.Endpoint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.ApiDef.Endpoint buildPartial() { + org.tensorflow.proto.ApiDef.Endpoint result = new org.tensorflow.proto.ApiDef.Endpoint(this); + result.name_ = name_; + result.deprecated_ = deprecated_; + result.deprecationVersion_ = deprecationVersion_; + 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 org.tensorflow.proto.ApiDef.Endpoint) { + return mergeFrom((org.tensorflow.proto.ApiDef.Endpoint)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.ApiDef.Endpoint other) { + if (other == org.tensorflow.proto.ApiDef.Endpoint.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getDeprecated() != false) { + setDeprecated(other.getDeprecated()); + } + if (other.getDeprecationVersion() != 0) { + setDeprecationVersion(other.getDeprecationVersion()); + } + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 24: { + deprecated_ = input.readBool(); + + break; + } // case 24 + case 32: { + deprecationVersion_ = input.readInt32(); + + break; + } // case 32 + 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 java.lang.Object name_ = ""; + /** + *
+       * Name should be either like "CamelCaseName" or
+       * "Package.CamelCaseName". Client-language-specific ApiDefs may
+       * use a snake_case convention instead of CamelCase.
+       * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name should be either like "CamelCaseName" or
+       * "Package.CamelCaseName". Client-language-specific ApiDefs may
+       * use a snake_case convention instead of CamelCase.
+       * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name should be either like "CamelCaseName" or
+       * "Package.CamelCaseName". Client-language-specific ApiDefs may
+       * use a snake_case convention instead of CamelCase.
+       * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Name should be either like "CamelCaseName" or
+       * "Package.CamelCaseName". Client-language-specific ApiDefs may
+       * use a snake_case convention instead of CamelCase.
+       * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Name should be either like "CamelCaseName" or
+       * "Package.CamelCaseName". Client-language-specific ApiDefs may
+       * use a snake_case convention instead of CamelCase.
+       * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private boolean deprecated_ ; + /** + *
+       * Set if this endpoint is deprecated. If set to true, a message suggesting
+       * to use a non-deprecated endpoint instead will be printed. If all
+       * endpoints are deprecated, set deprecation_message in ApiDef instead.
+       * 
+ * + * bool deprecated = 3; + * @return The deprecated. + */ + @java.lang.Override + public boolean getDeprecated() { + return deprecated_; + } + /** + *
+       * Set if this endpoint is deprecated. If set to true, a message suggesting
+       * to use a non-deprecated endpoint instead will be printed. If all
+       * endpoints are deprecated, set deprecation_message in ApiDef instead.
+       * 
+ * + * bool deprecated = 3; + * @param value The deprecated to set. + * @return This builder for chaining. + */ + public Builder setDeprecated(boolean value) { + + deprecated_ = value; + onChanged(); + return this; + } + /** + *
+       * Set if this endpoint is deprecated. If set to true, a message suggesting
+       * to use a non-deprecated endpoint instead will be printed. If all
+       * endpoints are deprecated, set deprecation_message in ApiDef instead.
+       * 
+ * + * bool deprecated = 3; + * @return This builder for chaining. + */ + public Builder clearDeprecated() { + + deprecated_ = false; + onChanged(); + return this; + } + + private int deprecationVersion_ ; + /** + *
+       * Major version when an endpoint will be deleted. For e.g. set this
+       * value to 2 if endpoint should be removed in TensorFlow 2.0 and
+       * deprecated in versions before that.
+       * 
+ * + * int32 deprecation_version = 4; + * @return The deprecationVersion. + */ + @java.lang.Override + public int getDeprecationVersion() { + return deprecationVersion_; + } + /** + *
+       * Major version when an endpoint will be deleted. For e.g. set this
+       * value to 2 if endpoint should be removed in TensorFlow 2.0 and
+       * deprecated in versions before that.
+       * 
+ * + * int32 deprecation_version = 4; + * @param value The deprecationVersion to set. + * @return This builder for chaining. + */ + public Builder setDeprecationVersion(int value) { + + deprecationVersion_ = value; + onChanged(); + return this; + } + /** + *
+       * Major version when an endpoint will be deleted. For e.g. set this
+       * value to 2 if endpoint should be removed in TensorFlow 2.0 and
+       * deprecated in versions before that.
+       * 
+ * + * int32 deprecation_version = 4; + * @return This builder for chaining. + */ + public Builder clearDeprecationVersion() { + + deprecationVersion_ = 0; + 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:tensorflow.ApiDef.Endpoint) + } + + // @@protoc_insertion_point(class_scope:tensorflow.ApiDef.Endpoint) + private static final org.tensorflow.proto.ApiDef.Endpoint DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.ApiDef.Endpoint(); + } + + public static org.tensorflow.proto.ApiDef.Endpoint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Endpoint 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 org.tensorflow.proto.ApiDef.Endpoint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ArgOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.ApiDef.Arg) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Change the name used to access this arg in the API from what
+     * is used in the GraphDef.  Note that these names in `backticks`
+     * will also be replaced in the summary & description fields.
+     * 
+ * + * string rename_to = 2; + * @return The renameTo. + */ + java.lang.String getRenameTo(); + /** + *
+     * Change the name used to access this arg in the API from what
+     * is used in the GraphDef.  Note that these names in `backticks`
+     * will also be replaced in the summary & description fields.
+     * 
+ * + * string rename_to = 2; + * @return The bytes for renameTo. + */ + com.google.protobuf.ByteString + getRenameToBytes(); + + /** + *
+     * Note: this will replace any inherited arg doc. There is no
+     * current way of modifying arg descriptions (other than replacing
+     * them entirely) as can be done with op descriptions.
+     * 
+ * + * string description = 3; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+     * Note: this will replace any inherited arg doc. There is no
+     * current way of modifying arg descriptions (other than replacing
+     * them entirely) as can be done with op descriptions.
+     * 
+ * + * string description = 3; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + } + /** + * Protobuf type {@code tensorflow.ApiDef.Arg} + */ + public static final class Arg extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.ApiDef.Arg) + ArgOrBuilder { + private static final long serialVersionUID = 0L; + // Use Arg.newBuilder() to construct. + private Arg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Arg() { + name_ = ""; + renameTo_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Arg(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDef_Arg_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDef_Arg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ApiDef.Arg.class, org.tensorflow.proto.ApiDef.Arg.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RENAME_TO_FIELD_NUMBER = 2; + private volatile java.lang.Object renameTo_; + /** + *
+     * Change the name used to access this arg in the API from what
+     * is used in the GraphDef.  Note that these names in `backticks`
+     * will also be replaced in the summary & description fields.
+     * 
+ * + * string rename_to = 2; + * @return The renameTo. + */ + @java.lang.Override + public java.lang.String getRenameTo() { + java.lang.Object ref = renameTo_; + 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(); + renameTo_ = s; + return s; + } + } + /** + *
+     * Change the name used to access this arg in the API from what
+     * is used in the GraphDef.  Note that these names in `backticks`
+     * will also be replaced in the summary & description fields.
+     * 
+ * + * string rename_to = 2; + * @return The bytes for renameTo. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRenameToBytes() { + java.lang.Object ref = renameTo_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + renameTo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; + /** + *
+     * Note: this will replace any inherited arg doc. There is no
+     * current way of modifying arg descriptions (other than replacing
+     * them entirely) as can be done with op descriptions.
+     * 
+ * + * string description = 3; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+     * Note: this will replace any inherited arg doc. There is no
+     * current way of modifying arg descriptions (other than replacing
+     * them entirely) as can be done with op descriptions.
+     * 
+ * + * string description = 3; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(renameTo_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, renameTo_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(renameTo_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, renameTo_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + 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 org.tensorflow.proto.ApiDef.Arg)) { + return super.equals(obj); + } + org.tensorflow.proto.ApiDef.Arg other = (org.tensorflow.proto.ApiDef.Arg) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getRenameTo() + .equals(other.getRenameTo())) return false; + if (!getDescription() + .equals(other.getDescription())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + RENAME_TO_FIELD_NUMBER; + hash = (53 * hash) + getRenameTo().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.ApiDef.Arg parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ApiDef.Arg parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ApiDef.Arg parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ApiDef.Arg parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ApiDef.Arg parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ApiDef.Arg parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ApiDef.Arg parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ApiDef.Arg 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 org.tensorflow.proto.ApiDef.Arg parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ApiDef.Arg 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 org.tensorflow.proto.ApiDef.Arg parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ApiDef.Arg 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(org.tensorflow.proto.ApiDef.Arg prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.ApiDef.Arg} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.ApiDef.Arg) + org.tensorflow.proto.ApiDef.ArgOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDef_Arg_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDef_Arg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ApiDef.Arg.class, org.tensorflow.proto.ApiDef.Arg.Builder.class); + } + + // Construct using org.tensorflow.proto.ApiDef.Arg.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + renameTo_ = ""; + + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDef_Arg_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.ApiDef.Arg getDefaultInstanceForType() { + return org.tensorflow.proto.ApiDef.Arg.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.ApiDef.Arg build() { + org.tensorflow.proto.ApiDef.Arg result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.ApiDef.Arg buildPartial() { + org.tensorflow.proto.ApiDef.Arg result = new org.tensorflow.proto.ApiDef.Arg(this); + result.name_ = name_; + result.renameTo_ = renameTo_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.tensorflow.proto.ApiDef.Arg) { + return mergeFrom((org.tensorflow.proto.ApiDef.Arg)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.ApiDef.Arg other) { + if (other == org.tensorflow.proto.ApiDef.Arg.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRenameTo().isEmpty()) { + renameTo_ = other.renameTo_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + renameTo_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 26 + 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 java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object renameTo_ = ""; + /** + *
+       * Change the name used to access this arg in the API from what
+       * is used in the GraphDef.  Note that these names in `backticks`
+       * will also be replaced in the summary & description fields.
+       * 
+ * + * string rename_to = 2; + * @return The renameTo. + */ + public java.lang.String getRenameTo() { + java.lang.Object ref = renameTo_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + renameTo_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Change the name used to access this arg in the API from what
+       * is used in the GraphDef.  Note that these names in `backticks`
+       * will also be replaced in the summary & description fields.
+       * 
+ * + * string rename_to = 2; + * @return The bytes for renameTo. + */ + public com.google.protobuf.ByteString + getRenameToBytes() { + java.lang.Object ref = renameTo_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + renameTo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Change the name used to access this arg in the API from what
+       * is used in the GraphDef.  Note that these names in `backticks`
+       * will also be replaced in the summary & description fields.
+       * 
+ * + * string rename_to = 2; + * @param value The renameTo to set. + * @return This builder for chaining. + */ + public Builder setRenameTo( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + renameTo_ = value; + onChanged(); + return this; + } + /** + *
+       * Change the name used to access this arg in the API from what
+       * is used in the GraphDef.  Note that these names in `backticks`
+       * will also be replaced in the summary & description fields.
+       * 
+ * + * string rename_to = 2; + * @return This builder for chaining. + */ + public Builder clearRenameTo() { + + renameTo_ = getDefaultInstance().getRenameTo(); + onChanged(); + return this; + } + /** + *
+       * Change the name used to access this arg in the API from what
+       * is used in the GraphDef.  Note that these names in `backticks`
+       * will also be replaced in the summary & description fields.
+       * 
+ * + * string rename_to = 2; + * @param value The bytes for renameTo to set. + * @return This builder for chaining. + */ + public Builder setRenameToBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + renameTo_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+       * Note: this will replace any inherited arg doc. There is no
+       * current way of modifying arg descriptions (other than replacing
+       * them entirely) as can be done with op descriptions.
+       * 
+ * + * string description = 3; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Note: this will replace any inherited arg doc. There is no
+       * current way of modifying arg descriptions (other than replacing
+       * them entirely) as can be done with op descriptions.
+       * 
+ * + * string description = 3; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Note: this will replace any inherited arg doc. There is no
+       * current way of modifying arg descriptions (other than replacing
+       * them entirely) as can be done with op descriptions.
+       * 
+ * + * string description = 3; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+       * Note: this will replace any inherited arg doc. There is no
+       * current way of modifying arg descriptions (other than replacing
+       * them entirely) as can be done with op descriptions.
+       * 
+ * + * string description = 3; + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+       * Note: this will replace any inherited arg doc. There is no
+       * current way of modifying arg descriptions (other than replacing
+       * them entirely) as can be done with op descriptions.
+       * 
+ * + * string description = 3; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.ApiDef.Arg) + } + + // @@protoc_insertion_point(class_scope:tensorflow.ApiDef.Arg) + private static final org.tensorflow.proto.ApiDef.Arg DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.ApiDef.Arg(); + } + + public static org.tensorflow.proto.ApiDef.Arg getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Arg 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 org.tensorflow.proto.ApiDef.Arg getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AttrOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.ApiDef.Attr) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Change the name used to access this attr in the API from what
+     * is used in the GraphDef.  Note that these names in `backticks`
+     * will also be replaced in the summary & description fields.
+     * 
+ * + * string rename_to = 2; + * @return The renameTo. + */ + java.lang.String getRenameTo(); + /** + *
+     * Change the name used to access this attr in the API from what
+     * is used in the GraphDef.  Note that these names in `backticks`
+     * will also be replaced in the summary & description fields.
+     * 
+ * + * string rename_to = 2; + * @return The bytes for renameTo. + */ + com.google.protobuf.ByteString + getRenameToBytes(); + + /** + *
+     * Specify a new default value to use for this attr.  This default
+     * will be used when creating new graphs, as opposed to the
+     * default in the OpDef, which will be used when interpreting old
+     * GraphDefs.
+     * 
+ * + * .tensorflow.AttrValue default_value = 3; + * @return Whether the defaultValue field is set. + */ + boolean hasDefaultValue(); + /** + *
+     * Specify a new default value to use for this attr.  This default
+     * will be used when creating new graphs, as opposed to the
+     * default in the OpDef, which will be used when interpreting old
+     * GraphDefs.
+     * 
+ * + * .tensorflow.AttrValue default_value = 3; + * @return The defaultValue. + */ + org.tensorflow.proto.AttrValue getDefaultValue(); + /** + *
+     * Specify a new default value to use for this attr.  This default
+     * will be used when creating new graphs, as opposed to the
+     * default in the OpDef, which will be used when interpreting old
+     * GraphDefs.
+     * 
+ * + * .tensorflow.AttrValue default_value = 3; + */ + org.tensorflow.proto.AttrValueOrBuilder getDefaultValueOrBuilder(); + + /** + *
+     * Note: this will replace any inherited attr doc, there is no current
+     * way of modifying attr descriptions as can be done with op descriptions.
+     * 
+ * + * string description = 4; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+     * Note: this will replace any inherited attr doc, there is no current
+     * way of modifying attr descriptions as can be done with op descriptions.
+     * 
+ * + * string description = 4; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + } + /** + *
+   * Description of the graph-construction-time configuration of this
+   * Op.  That is to say, this describes the attr fields that will
+   * be specified in the NodeDef.
+   * 
+ * + * Protobuf type {@code tensorflow.ApiDef.Attr} + */ + public static final class Attr extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.ApiDef.Attr) + AttrOrBuilder { + private static final long serialVersionUID = 0L; + // Use Attr.newBuilder() to construct. + private Attr(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Attr() { + name_ = ""; + renameTo_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Attr(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDef_Attr_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDef_Attr_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ApiDef.Attr.class, org.tensorflow.proto.ApiDef.Attr.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RENAME_TO_FIELD_NUMBER = 2; + private volatile java.lang.Object renameTo_; + /** + *
+     * Change the name used to access this attr in the API from what
+     * is used in the GraphDef.  Note that these names in `backticks`
+     * will also be replaced in the summary & description fields.
+     * 
+ * + * string rename_to = 2; + * @return The renameTo. + */ + @java.lang.Override + public java.lang.String getRenameTo() { + java.lang.Object ref = renameTo_; + 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(); + renameTo_ = s; + return s; + } + } + /** + *
+     * Change the name used to access this attr in the API from what
+     * is used in the GraphDef.  Note that these names in `backticks`
+     * will also be replaced in the summary & description fields.
+     * 
+ * + * string rename_to = 2; + * @return The bytes for renameTo. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRenameToBytes() { + java.lang.Object ref = renameTo_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + renameTo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFAULT_VALUE_FIELD_NUMBER = 3; + private org.tensorflow.proto.AttrValue defaultValue_; + /** + *
+     * Specify a new default value to use for this attr.  This default
+     * will be used when creating new graphs, as opposed to the
+     * default in the OpDef, which will be used when interpreting old
+     * GraphDefs.
+     * 
+ * + * .tensorflow.AttrValue default_value = 3; + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return defaultValue_ != null; + } + /** + *
+     * Specify a new default value to use for this attr.  This default
+     * will be used when creating new graphs, as opposed to the
+     * default in the OpDef, which will be used when interpreting old
+     * GraphDefs.
+     * 
+ * + * .tensorflow.AttrValue default_value = 3; + * @return The defaultValue. + */ + @java.lang.Override + public org.tensorflow.proto.AttrValue getDefaultValue() { + return defaultValue_ == null ? org.tensorflow.proto.AttrValue.getDefaultInstance() : defaultValue_; + } + /** + *
+     * Specify a new default value to use for this attr.  This default
+     * will be used when creating new graphs, as opposed to the
+     * default in the OpDef, which will be used when interpreting old
+     * GraphDefs.
+     * 
+ * + * .tensorflow.AttrValue default_value = 3; + */ + @java.lang.Override + public org.tensorflow.proto.AttrValueOrBuilder getDefaultValueOrBuilder() { + return getDefaultValue(); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + private volatile java.lang.Object description_; + /** + *
+     * Note: this will replace any inherited attr doc, there is no current
+     * way of modifying attr descriptions as can be done with op descriptions.
+     * 
+ * + * string description = 4; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+     * Note: this will replace any inherited attr doc, there is no current
+     * way of modifying attr descriptions as can be done with op descriptions.
+     * 
+ * + * string description = 4; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(renameTo_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, renameTo_); + } + if (defaultValue_ != null) { + output.writeMessage(3, getDefaultValue()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(renameTo_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, renameTo_); + } + if (defaultValue_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDefaultValue()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + 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 org.tensorflow.proto.ApiDef.Attr)) { + return super.equals(obj); + } + org.tensorflow.proto.ApiDef.Attr other = (org.tensorflow.proto.ApiDef.Attr) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getRenameTo() + .equals(other.getRenameTo())) return false; + if (hasDefaultValue() != other.hasDefaultValue()) return false; + if (hasDefaultValue()) { + if (!getDefaultValue() + .equals(other.getDefaultValue())) return false; + } + if (!getDescription() + .equals(other.getDescription())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + RENAME_TO_FIELD_NUMBER; + hash = (53 * hash) + getRenameTo().hashCode(); + if (hasDefaultValue()) { + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultValue().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.ApiDef.Attr parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ApiDef.Attr parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ApiDef.Attr parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ApiDef.Attr parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ApiDef.Attr parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ApiDef.Attr parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ApiDef.Attr parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ApiDef.Attr 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 org.tensorflow.proto.ApiDef.Attr parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ApiDef.Attr 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 org.tensorflow.proto.ApiDef.Attr parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ApiDef.Attr 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(org.tensorflow.proto.ApiDef.Attr 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; + } + /** + *
+     * Description of the graph-construction-time configuration of this
+     * Op.  That is to say, this describes the attr fields that will
+     * be specified in the NodeDef.
+     * 
+ * + * Protobuf type {@code tensorflow.ApiDef.Attr} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.ApiDef.Attr) + org.tensorflow.proto.ApiDef.AttrOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDef_Attr_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDef_Attr_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ApiDef.Attr.class, org.tensorflow.proto.ApiDef.Attr.Builder.class); + } + + // Construct using org.tensorflow.proto.ApiDef.Attr.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + renameTo_ = ""; + + if (defaultValueBuilder_ == null) { + defaultValue_ = null; + } else { + defaultValue_ = null; + defaultValueBuilder_ = null; + } + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDef_Attr_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.ApiDef.Attr getDefaultInstanceForType() { + return org.tensorflow.proto.ApiDef.Attr.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.ApiDef.Attr build() { + org.tensorflow.proto.ApiDef.Attr result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.ApiDef.Attr buildPartial() { + org.tensorflow.proto.ApiDef.Attr result = new org.tensorflow.proto.ApiDef.Attr(this); + result.name_ = name_; + result.renameTo_ = renameTo_; + if (defaultValueBuilder_ == null) { + result.defaultValue_ = defaultValue_; + } else { + result.defaultValue_ = defaultValueBuilder_.build(); + } + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.tensorflow.proto.ApiDef.Attr) { + return mergeFrom((org.tensorflow.proto.ApiDef.Attr)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.ApiDef.Attr other) { + if (other == org.tensorflow.proto.ApiDef.Attr.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRenameTo().isEmpty()) { + renameTo_ = other.renameTo_; + onChanged(); + } + if (other.hasDefaultValue()) { + mergeDefaultValue(other.getDefaultValue()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + renameTo_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getDefaultValueFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 34 + 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 java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object renameTo_ = ""; + /** + *
+       * Change the name used to access this attr in the API from what
+       * is used in the GraphDef.  Note that these names in `backticks`
+       * will also be replaced in the summary & description fields.
+       * 
+ * + * string rename_to = 2; + * @return The renameTo. + */ + public java.lang.String getRenameTo() { + java.lang.Object ref = renameTo_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + renameTo_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Change the name used to access this attr in the API from what
+       * is used in the GraphDef.  Note that these names in `backticks`
+       * will also be replaced in the summary & description fields.
+       * 
+ * + * string rename_to = 2; + * @return The bytes for renameTo. + */ + public com.google.protobuf.ByteString + getRenameToBytes() { + java.lang.Object ref = renameTo_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + renameTo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Change the name used to access this attr in the API from what
+       * is used in the GraphDef.  Note that these names in `backticks`
+       * will also be replaced in the summary & description fields.
+       * 
+ * + * string rename_to = 2; + * @param value The renameTo to set. + * @return This builder for chaining. + */ + public Builder setRenameTo( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + renameTo_ = value; + onChanged(); + return this; + } + /** + *
+       * Change the name used to access this attr in the API from what
+       * is used in the GraphDef.  Note that these names in `backticks`
+       * will also be replaced in the summary & description fields.
+       * 
+ * + * string rename_to = 2; + * @return This builder for chaining. + */ + public Builder clearRenameTo() { + + renameTo_ = getDefaultInstance().getRenameTo(); + onChanged(); + return this; + } + /** + *
+       * Change the name used to access this attr in the API from what
+       * is used in the GraphDef.  Note that these names in `backticks`
+       * will also be replaced in the summary & description fields.
+       * 
+ * + * string rename_to = 2; + * @param value The bytes for renameTo to set. + * @return This builder for chaining. + */ + public Builder setRenameToBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + renameTo_ = value; + onChanged(); + return this; + } + + private org.tensorflow.proto.AttrValue defaultValue_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.AttrValue, org.tensorflow.proto.AttrValue.Builder, org.tensorflow.proto.AttrValueOrBuilder> defaultValueBuilder_; + /** + *
+       * Specify a new default value to use for this attr.  This default
+       * will be used when creating new graphs, as opposed to the
+       * default in the OpDef, which will be used when interpreting old
+       * GraphDefs.
+       * 
+ * + * .tensorflow.AttrValue default_value = 3; + * @return Whether the defaultValue field is set. + */ + public boolean hasDefaultValue() { + return defaultValueBuilder_ != null || defaultValue_ != null; + } + /** + *
+       * Specify a new default value to use for this attr.  This default
+       * will be used when creating new graphs, as opposed to the
+       * default in the OpDef, which will be used when interpreting old
+       * GraphDefs.
+       * 
+ * + * .tensorflow.AttrValue default_value = 3; + * @return The defaultValue. + */ + public org.tensorflow.proto.AttrValue getDefaultValue() { + if (defaultValueBuilder_ == null) { + return defaultValue_ == null ? org.tensorflow.proto.AttrValue.getDefaultInstance() : defaultValue_; + } else { + return defaultValueBuilder_.getMessage(); + } + } + /** + *
+       * Specify a new default value to use for this attr.  This default
+       * will be used when creating new graphs, as opposed to the
+       * default in the OpDef, which will be used when interpreting old
+       * GraphDefs.
+       * 
+ * + * .tensorflow.AttrValue default_value = 3; + */ + public Builder setDefaultValue(org.tensorflow.proto.AttrValue value) { + if (defaultValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultValue_ = value; + onChanged(); + } else { + defaultValueBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Specify a new default value to use for this attr.  This default
+       * will be used when creating new graphs, as opposed to the
+       * default in the OpDef, which will be used when interpreting old
+       * GraphDefs.
+       * 
+ * + * .tensorflow.AttrValue default_value = 3; + */ + public Builder setDefaultValue( + org.tensorflow.proto.AttrValue.Builder builderForValue) { + if (defaultValueBuilder_ == null) { + defaultValue_ = builderForValue.build(); + onChanged(); + } else { + defaultValueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Specify a new default value to use for this attr.  This default
+       * will be used when creating new graphs, as opposed to the
+       * default in the OpDef, which will be used when interpreting old
+       * GraphDefs.
+       * 
+ * + * .tensorflow.AttrValue default_value = 3; + */ + public Builder mergeDefaultValue(org.tensorflow.proto.AttrValue value) { + if (defaultValueBuilder_ == null) { + if (defaultValue_ != null) { + defaultValue_ = + org.tensorflow.proto.AttrValue.newBuilder(defaultValue_).mergeFrom(value).buildPartial(); + } else { + defaultValue_ = value; + } + onChanged(); + } else { + defaultValueBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Specify a new default value to use for this attr.  This default
+       * will be used when creating new graphs, as opposed to the
+       * default in the OpDef, which will be used when interpreting old
+       * GraphDefs.
+       * 
+ * + * .tensorflow.AttrValue default_value = 3; + */ + public Builder clearDefaultValue() { + if (defaultValueBuilder_ == null) { + defaultValue_ = null; + onChanged(); + } else { + defaultValue_ = null; + defaultValueBuilder_ = null; + } + + return this; + } + /** + *
+       * Specify a new default value to use for this attr.  This default
+       * will be used when creating new graphs, as opposed to the
+       * default in the OpDef, which will be used when interpreting old
+       * GraphDefs.
+       * 
+ * + * .tensorflow.AttrValue default_value = 3; + */ + public org.tensorflow.proto.AttrValue.Builder getDefaultValueBuilder() { + + onChanged(); + return getDefaultValueFieldBuilder().getBuilder(); + } + /** + *
+       * Specify a new default value to use for this attr.  This default
+       * will be used when creating new graphs, as opposed to the
+       * default in the OpDef, which will be used when interpreting old
+       * GraphDefs.
+       * 
+ * + * .tensorflow.AttrValue default_value = 3; + */ + public org.tensorflow.proto.AttrValueOrBuilder getDefaultValueOrBuilder() { + if (defaultValueBuilder_ != null) { + return defaultValueBuilder_.getMessageOrBuilder(); + } else { + return defaultValue_ == null ? + org.tensorflow.proto.AttrValue.getDefaultInstance() : defaultValue_; + } + } + /** + *
+       * Specify a new default value to use for this attr.  This default
+       * will be used when creating new graphs, as opposed to the
+       * default in the OpDef, which will be used when interpreting old
+       * GraphDefs.
+       * 
+ * + * .tensorflow.AttrValue default_value = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.AttrValue, org.tensorflow.proto.AttrValue.Builder, org.tensorflow.proto.AttrValueOrBuilder> + getDefaultValueFieldBuilder() { + if (defaultValueBuilder_ == null) { + defaultValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.AttrValue, org.tensorflow.proto.AttrValue.Builder, org.tensorflow.proto.AttrValueOrBuilder>( + getDefaultValue(), + getParentForChildren(), + isClean()); + defaultValue_ = null; + } + return defaultValueBuilder_; + } + + private java.lang.Object description_ = ""; + /** + *
+       * Note: this will replace any inherited attr doc, there is no current
+       * way of modifying attr descriptions as can be done with op descriptions.
+       * 
+ * + * string description = 4; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Note: this will replace any inherited attr doc, there is no current
+       * way of modifying attr descriptions as can be done with op descriptions.
+       * 
+ * + * string description = 4; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Note: this will replace any inherited attr doc, there is no current
+       * way of modifying attr descriptions as can be done with op descriptions.
+       * 
+ * + * string description = 4; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+       * Note: this will replace any inherited attr doc, there is no current
+       * way of modifying attr descriptions as can be done with op descriptions.
+       * 
+ * + * string description = 4; + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+       * Note: this will replace any inherited attr doc, there is no current
+       * way of modifying attr descriptions as can be done with op descriptions.
+       * 
+ * + * string description = 4; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.ApiDef.Attr) + } + + // @@protoc_insertion_point(class_scope:tensorflow.ApiDef.Attr) + private static final org.tensorflow.proto.ApiDef.Attr DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.ApiDef.Attr(); + } + + public static org.tensorflow.proto.ApiDef.Attr getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Attr 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 org.tensorflow.proto.ApiDef.Attr getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int GRAPH_OP_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object graphOpName_; + /** + *
+   * Name of the op (in the OpDef) to specify the API for.
+   * 
+ * + * string graph_op_name = 1; + * @return The graphOpName. + */ + @java.lang.Override + public java.lang.String getGraphOpName() { + java.lang.Object ref = graphOpName_; + 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(); + graphOpName_ = s; + return s; + } + } + /** + *
+   * Name of the op (in the OpDef) to specify the API for.
+   * 
+ * + * string graph_op_name = 1; + * @return The bytes for graphOpName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getGraphOpNameBytes() { + java.lang.Object ref = graphOpName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + graphOpName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPRECATION_MESSAGE_FIELD_NUMBER = 12; + private volatile java.lang.Object deprecationMessage_; + /** + *
+   * If this op is deprecated, set deprecation message to the message
+   * that should be logged when this op is used.
+   * The message should indicate alternative op to use, if any.
+   * 
+ * + * string deprecation_message = 12; + * @return The deprecationMessage. + */ + @java.lang.Override + public java.lang.String getDeprecationMessage() { + java.lang.Object ref = deprecationMessage_; + 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(); + deprecationMessage_ = s; + return s; + } + } + /** + *
+   * If this op is deprecated, set deprecation message to the message
+   * that should be logged when this op is used.
+   * The message should indicate alternative op to use, if any.
+   * 
+ * + * string deprecation_message = 12; + * @return The bytes for deprecationMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDeprecationMessageBytes() { + java.lang.Object ref = deprecationMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deprecationMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPRECATION_VERSION_FIELD_NUMBER = 13; + private int deprecationVersion_; + /** + *
+   * Major version when the op will be deleted. For e.g. set this
+   * value to 2 if op API should be removed in TensorFlow 2.0 and
+   * deprecated in versions before that.
+   * 
+ * + * int32 deprecation_version = 13; + * @return The deprecationVersion. + */ + @java.lang.Override + public int getDeprecationVersion() { + return deprecationVersion_; + } + + public static final int VISIBILITY_FIELD_NUMBER = 2; + private int visibility_; + /** + * .tensorflow.ApiDef.Visibility visibility = 2; + * @return The enum numeric value on the wire for visibility. + */ + @java.lang.Override public int getVisibilityValue() { + return visibility_; + } + /** + * .tensorflow.ApiDef.Visibility visibility = 2; + * @return The visibility. + */ + @java.lang.Override public org.tensorflow.proto.ApiDef.Visibility getVisibility() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.ApiDef.Visibility result = org.tensorflow.proto.ApiDef.Visibility.valueOf(visibility_); + return result == null ? org.tensorflow.proto.ApiDef.Visibility.UNRECOGNIZED : result; + } + + public static final int ENDPOINT_FIELD_NUMBER = 3; + private java.util.List endpoint_; + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + @java.lang.Override + public java.util.List getEndpointList() { + return endpoint_; + } + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + @java.lang.Override + public java.util.List + getEndpointOrBuilderList() { + return endpoint_; + } + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + @java.lang.Override + public int getEndpointCount() { + return endpoint_.size(); + } + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + @java.lang.Override + public org.tensorflow.proto.ApiDef.Endpoint getEndpoint(int index) { + return endpoint_.get(index); + } + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + @java.lang.Override + public org.tensorflow.proto.ApiDef.EndpointOrBuilder getEndpointOrBuilder( + int index) { + return endpoint_.get(index); + } + + public static final int IN_ARG_FIELD_NUMBER = 4; + private java.util.List inArg_; + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + @java.lang.Override + public java.util.List getInArgList() { + return inArg_; + } + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + @java.lang.Override + public java.util.List + getInArgOrBuilderList() { + return inArg_; + } + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + @java.lang.Override + public int getInArgCount() { + return inArg_.size(); + } + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + @java.lang.Override + public org.tensorflow.proto.ApiDef.Arg getInArg(int index) { + return inArg_.get(index); + } + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + @java.lang.Override + public org.tensorflow.proto.ApiDef.ArgOrBuilder getInArgOrBuilder( + int index) { + return inArg_.get(index); + } + + public static final int OUT_ARG_FIELD_NUMBER = 5; + private java.util.List outArg_; + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + @java.lang.Override + public java.util.List getOutArgList() { + return outArg_; + } + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + @java.lang.Override + public java.util.List + getOutArgOrBuilderList() { + return outArg_; + } + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + @java.lang.Override + public int getOutArgCount() { + return outArg_.size(); + } + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + @java.lang.Override + public org.tensorflow.proto.ApiDef.Arg getOutArg(int index) { + return outArg_.get(index); + } + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + @java.lang.Override + public org.tensorflow.proto.ApiDef.ArgOrBuilder getOutArgOrBuilder( + int index) { + return outArg_.get(index); + } + + public static final int ARG_ORDER_FIELD_NUMBER = 11; + private com.google.protobuf.LazyStringList argOrder_; + /** + *
+   * List of original in_arg names to specify new argument order.
+   * Length of arg_order should be either empty to keep current order
+   * or match size of in_arg.
+   * 
+ * + * repeated string arg_order = 11; + * @return A list containing the argOrder. + */ + public com.google.protobuf.ProtocolStringList + getArgOrderList() { + return argOrder_; + } + /** + *
+   * List of original in_arg names to specify new argument order.
+   * Length of arg_order should be either empty to keep current order
+   * or match size of in_arg.
+   * 
+ * + * repeated string arg_order = 11; + * @return The count of argOrder. + */ + public int getArgOrderCount() { + return argOrder_.size(); + } + /** + *
+   * List of original in_arg names to specify new argument order.
+   * Length of arg_order should be either empty to keep current order
+   * or match size of in_arg.
+   * 
+ * + * repeated string arg_order = 11; + * @param index The index of the element to return. + * @return The argOrder at the given index. + */ + public java.lang.String getArgOrder(int index) { + return argOrder_.get(index); + } + /** + *
+   * List of original in_arg names to specify new argument order.
+   * Length of arg_order should be either empty to keep current order
+   * or match size of in_arg.
+   * 
+ * + * repeated string arg_order = 11; + * @param index The index of the value to return. + * @return The bytes of the argOrder at the given index. + */ + public com.google.protobuf.ByteString + getArgOrderBytes(int index) { + return argOrder_.getByteString(index); + } + + public static final int ATTR_FIELD_NUMBER = 6; + private java.util.List attr_; + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + @java.lang.Override + public java.util.List getAttrList() { + return attr_; + } + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + @java.lang.Override + public java.util.List + getAttrOrBuilderList() { + return attr_; + } + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + @java.lang.Override + public int getAttrCount() { + return attr_.size(); + } + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + @java.lang.Override + public org.tensorflow.proto.ApiDef.Attr getAttr(int index) { + return attr_.get(index); + } + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + @java.lang.Override + public org.tensorflow.proto.ApiDef.AttrOrBuilder getAttrOrBuilder( + int index) { + return attr_.get(index); + } + + public static final int SUMMARY_FIELD_NUMBER = 7; + private volatile java.lang.Object summary_; + /** + *
+   * One-line human-readable description of what the Op does.
+   * 
+ * + * string summary = 7; + * @return The summary. + */ + @java.lang.Override + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + 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(); + summary_ = s; + return s; + } + } + /** + *
+   * One-line human-readable description of what the Op does.
+   * 
+ * + * string summary = 7; + * @return The bytes for summary. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + summary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 8; + private volatile java.lang.Object description_; + /** + *
+   * Additional, longer human-readable description of what the Op does.
+   * 
+ * + * string description = 8; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+   * Additional, longer human-readable description of what the Op does.
+   * 
+ * + * string description = 8; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_PREFIX_FIELD_NUMBER = 9; + private volatile java.lang.Object descriptionPrefix_; + /** + *
+   * Modify an existing/inherited description by adding text to the beginning
+   * or end.
+   * 
+ * + * string description_prefix = 9; + * @return The descriptionPrefix. + */ + @java.lang.Override + public java.lang.String getDescriptionPrefix() { + java.lang.Object ref = descriptionPrefix_; + 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(); + descriptionPrefix_ = s; + return s; + } + } + /** + *
+   * Modify an existing/inherited description by adding text to the beginning
+   * or end.
+   * 
+ * + * string description_prefix = 9; + * @return The bytes for descriptionPrefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionPrefixBytes() { + java.lang.Object ref = descriptionPrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + descriptionPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_SUFFIX_FIELD_NUMBER = 10; + private volatile java.lang.Object descriptionSuffix_; + /** + * string description_suffix = 10; + * @return The descriptionSuffix. + */ + @java.lang.Override + public java.lang.String getDescriptionSuffix() { + java.lang.Object ref = descriptionSuffix_; + 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(); + descriptionSuffix_ = s; + return s; + } + } + /** + * string description_suffix = 10; + * @return The bytes for descriptionSuffix. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionSuffixBytes() { + java.lang.Object ref = descriptionSuffix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + descriptionSuffix_ = 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(graphOpName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, graphOpName_); + } + if (visibility_ != org.tensorflow.proto.ApiDef.Visibility.DEFAULT_VISIBILITY.getNumber()) { + output.writeEnum(2, visibility_); + } + for (int i = 0; i < endpoint_.size(); i++) { + output.writeMessage(3, endpoint_.get(i)); + } + for (int i = 0; i < inArg_.size(); i++) { + output.writeMessage(4, inArg_.get(i)); + } + for (int i = 0; i < outArg_.size(); i++) { + output.writeMessage(5, outArg_.get(i)); + } + for (int i = 0; i < attr_.size(); i++) { + output.writeMessage(6, attr_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, summary_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(descriptionPrefix_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, descriptionPrefix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(descriptionSuffix_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, descriptionSuffix_); + } + for (int i = 0; i < argOrder_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, argOrder_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deprecationMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, deprecationMessage_); + } + if (deprecationVersion_ != 0) { + output.writeInt32(13, deprecationVersion_); + } + 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(graphOpName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, graphOpName_); + } + if (visibility_ != org.tensorflow.proto.ApiDef.Visibility.DEFAULT_VISIBILITY.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, visibility_); + } + for (int i = 0; i < endpoint_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, endpoint_.get(i)); + } + for (int i = 0; i < inArg_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, inArg_.get(i)); + } + for (int i = 0; i < outArg_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, outArg_.get(i)); + } + for (int i = 0; i < attr_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, attr_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, summary_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(descriptionPrefix_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, descriptionPrefix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(descriptionSuffix_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, descriptionSuffix_); + } + { + int dataSize = 0; + for (int i = 0; i < argOrder_.size(); i++) { + dataSize += computeStringSizeNoTag(argOrder_.getRaw(i)); + } + size += dataSize; + size += 1 * getArgOrderList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deprecationMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, deprecationMessage_); + } + if (deprecationVersion_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(13, deprecationVersion_); + } + 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 org.tensorflow.proto.ApiDef)) { + return super.equals(obj); + } + org.tensorflow.proto.ApiDef other = (org.tensorflow.proto.ApiDef) obj; + + if (!getGraphOpName() + .equals(other.getGraphOpName())) return false; + if (!getDeprecationMessage() + .equals(other.getDeprecationMessage())) return false; + if (getDeprecationVersion() + != other.getDeprecationVersion()) return false; + if (visibility_ != other.visibility_) return false; + if (!getEndpointList() + .equals(other.getEndpointList())) return false; + if (!getInArgList() + .equals(other.getInArgList())) return false; + if (!getOutArgList() + .equals(other.getOutArgList())) return false; + if (!getArgOrderList() + .equals(other.getArgOrderList())) return false; + if (!getAttrList() + .equals(other.getAttrList())) return false; + if (!getSummary() + .equals(other.getSummary())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getDescriptionPrefix() + .equals(other.getDescriptionPrefix())) return false; + if (!getDescriptionSuffix() + .equals(other.getDescriptionSuffix())) 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) + GRAPH_OP_NAME_FIELD_NUMBER; + hash = (53 * hash) + getGraphOpName().hashCode(); + hash = (37 * hash) + DEPRECATION_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getDeprecationMessage().hashCode(); + hash = (37 * hash) + DEPRECATION_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDeprecationVersion(); + hash = (37 * hash) + VISIBILITY_FIELD_NUMBER; + hash = (53 * hash) + visibility_; + if (getEndpointCount() > 0) { + hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getEndpointList().hashCode(); + } + if (getInArgCount() > 0) { + hash = (37 * hash) + IN_ARG_FIELD_NUMBER; + hash = (53 * hash) + getInArgList().hashCode(); + } + if (getOutArgCount() > 0) { + hash = (37 * hash) + OUT_ARG_FIELD_NUMBER; + hash = (53 * hash) + getOutArgList().hashCode(); + } + if (getArgOrderCount() > 0) { + hash = (37 * hash) + ARG_ORDER_FIELD_NUMBER; + hash = (53 * hash) + getArgOrderList().hashCode(); + } + if (getAttrCount() > 0) { + hash = (37 * hash) + ATTR_FIELD_NUMBER; + hash = (53 * hash) + getAttrList().hashCode(); + } + hash = (37 * hash) + SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getSummary().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + DESCRIPTION_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getDescriptionPrefix().hashCode(); + hash = (37 * hash) + DESCRIPTION_SUFFIX_FIELD_NUMBER; + hash = (53 * hash) + getDescriptionSuffix().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.ApiDef parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ApiDef parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ApiDef parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ApiDef parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ApiDef parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ApiDef parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ApiDef parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ApiDef 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 org.tensorflow.proto.ApiDef parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ApiDef 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 org.tensorflow.proto.ApiDef parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ApiDef 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(org.tensorflow.proto.ApiDef 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; + } + /** + *
+   * Used to specify and override the default API & behavior in the
+   * generated code for client languages, from what you would get from
+   * the OpDef alone. There will be a set of ApiDefs that are common
+   * to all client languages, and another set per client language.
+   * The per-client-language ApiDefs will inherit values from the
+   * common ApiDefs which it can either replace or modify.
+   * We separate the API definition from the OpDef so we can evolve the
+   * API while remaining backwards compatible when interpreting old
+   * graphs.  Overrides go in an "api_def.pbtxt" file with a text-format
+   * ApiDefs message.
+   * WARNING: Be *very* careful changing the API for any existing op --
+   * you can change the semantics of existing code.  These changes may
+   * need to wait until a major release of TensorFlow to avoid breaking
+   * our compatibility promises.
+   * 
+ * + * Protobuf type {@code tensorflow.ApiDef} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.ApiDef) + org.tensorflow.proto.ApiDefOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ApiDef.class, org.tensorflow.proto.ApiDef.Builder.class); + } + + // Construct using org.tensorflow.proto.ApiDef.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + graphOpName_ = ""; + + deprecationMessage_ = ""; + + deprecationVersion_ = 0; + + visibility_ = 0; + + if (endpointBuilder_ == null) { + endpoint_ = java.util.Collections.emptyList(); + } else { + endpoint_ = null; + endpointBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (inArgBuilder_ == null) { + inArg_ = java.util.Collections.emptyList(); + } else { + inArg_ = null; + inArgBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (outArgBuilder_ == null) { + outArg_ = java.util.Collections.emptyList(); + } else { + outArg_ = null; + outArgBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + argOrder_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + if (attrBuilder_ == null) { + attr_ = java.util.Collections.emptyList(); + } else { + attr_ = null; + attrBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + summary_ = ""; + + description_ = ""; + + descriptionPrefix_ = ""; + + descriptionSuffix_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDef_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.ApiDef getDefaultInstanceForType() { + return org.tensorflow.proto.ApiDef.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.ApiDef build() { + org.tensorflow.proto.ApiDef result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.ApiDef buildPartial() { + org.tensorflow.proto.ApiDef result = new org.tensorflow.proto.ApiDef(this); + int from_bitField0_ = bitField0_; + result.graphOpName_ = graphOpName_; + result.deprecationMessage_ = deprecationMessage_; + result.deprecationVersion_ = deprecationVersion_; + result.visibility_ = visibility_; + if (endpointBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + endpoint_ = java.util.Collections.unmodifiableList(endpoint_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.endpoint_ = endpoint_; + } else { + result.endpoint_ = endpointBuilder_.build(); + } + if (inArgBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + inArg_ = java.util.Collections.unmodifiableList(inArg_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.inArg_ = inArg_; + } else { + result.inArg_ = inArgBuilder_.build(); + } + if (outArgBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + outArg_ = java.util.Collections.unmodifiableList(outArg_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.outArg_ = outArg_; + } else { + result.outArg_ = outArgBuilder_.build(); + } + if (((bitField0_ & 0x00000008) != 0)) { + argOrder_ = argOrder_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.argOrder_ = argOrder_; + if (attrBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + attr_ = java.util.Collections.unmodifiableList(attr_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.attr_ = attr_; + } else { + result.attr_ = attrBuilder_.build(); + } + result.summary_ = summary_; + result.description_ = description_; + result.descriptionPrefix_ = descriptionPrefix_; + result.descriptionSuffix_ = descriptionSuffix_; + 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 org.tensorflow.proto.ApiDef) { + return mergeFrom((org.tensorflow.proto.ApiDef)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.ApiDef other) { + if (other == org.tensorflow.proto.ApiDef.getDefaultInstance()) return this; + if (!other.getGraphOpName().isEmpty()) { + graphOpName_ = other.graphOpName_; + onChanged(); + } + if (!other.getDeprecationMessage().isEmpty()) { + deprecationMessage_ = other.deprecationMessage_; + onChanged(); + } + if (other.getDeprecationVersion() != 0) { + setDeprecationVersion(other.getDeprecationVersion()); + } + if (other.visibility_ != 0) { + setVisibilityValue(other.getVisibilityValue()); + } + if (endpointBuilder_ == null) { + if (!other.endpoint_.isEmpty()) { + if (endpoint_.isEmpty()) { + endpoint_ = other.endpoint_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEndpointIsMutable(); + endpoint_.addAll(other.endpoint_); + } + onChanged(); + } + } else { + if (!other.endpoint_.isEmpty()) { + if (endpointBuilder_.isEmpty()) { + endpointBuilder_.dispose(); + endpointBuilder_ = null; + endpoint_ = other.endpoint_; + bitField0_ = (bitField0_ & ~0x00000001); + endpointBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEndpointFieldBuilder() : null; + } else { + endpointBuilder_.addAllMessages(other.endpoint_); + } + } + } + if (inArgBuilder_ == null) { + if (!other.inArg_.isEmpty()) { + if (inArg_.isEmpty()) { + inArg_ = other.inArg_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInArgIsMutable(); + inArg_.addAll(other.inArg_); + } + onChanged(); + } + } else { + if (!other.inArg_.isEmpty()) { + if (inArgBuilder_.isEmpty()) { + inArgBuilder_.dispose(); + inArgBuilder_ = null; + inArg_ = other.inArg_; + bitField0_ = (bitField0_ & ~0x00000002); + inArgBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInArgFieldBuilder() : null; + } else { + inArgBuilder_.addAllMessages(other.inArg_); + } + } + } + if (outArgBuilder_ == null) { + if (!other.outArg_.isEmpty()) { + if (outArg_.isEmpty()) { + outArg_ = other.outArg_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureOutArgIsMutable(); + outArg_.addAll(other.outArg_); + } + onChanged(); + } + } else { + if (!other.outArg_.isEmpty()) { + if (outArgBuilder_.isEmpty()) { + outArgBuilder_.dispose(); + outArgBuilder_ = null; + outArg_ = other.outArg_; + bitField0_ = (bitField0_ & ~0x00000004); + outArgBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOutArgFieldBuilder() : null; + } else { + outArgBuilder_.addAllMessages(other.outArg_); + } + } + } + if (!other.argOrder_.isEmpty()) { + if (argOrder_.isEmpty()) { + argOrder_ = other.argOrder_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureArgOrderIsMutable(); + argOrder_.addAll(other.argOrder_); + } + onChanged(); + } + if (attrBuilder_ == null) { + if (!other.attr_.isEmpty()) { + if (attr_.isEmpty()) { + attr_ = other.attr_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureAttrIsMutable(); + attr_.addAll(other.attr_); + } + onChanged(); + } + } else { + if (!other.attr_.isEmpty()) { + if (attrBuilder_.isEmpty()) { + attrBuilder_.dispose(); + attrBuilder_ = null; + attr_ = other.attr_; + bitField0_ = (bitField0_ & ~0x00000010); + attrBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAttrFieldBuilder() : null; + } else { + attrBuilder_.addAllMessages(other.attr_); + } + } + } + if (!other.getSummary().isEmpty()) { + summary_ = other.summary_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (!other.getDescriptionPrefix().isEmpty()) { + descriptionPrefix_ = other.descriptionPrefix_; + onChanged(); + } + if (!other.getDescriptionSuffix().isEmpty()) { + descriptionSuffix_ = other.descriptionSuffix_; + 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: { + graphOpName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + visibility_ = input.readEnum(); + + break; + } // case 16 + case 26: { + org.tensorflow.proto.ApiDef.Endpoint m = + input.readMessage( + org.tensorflow.proto.ApiDef.Endpoint.parser(), + extensionRegistry); + if (endpointBuilder_ == null) { + ensureEndpointIsMutable(); + endpoint_.add(m); + } else { + endpointBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + org.tensorflow.proto.ApiDef.Arg m = + input.readMessage( + org.tensorflow.proto.ApiDef.Arg.parser(), + extensionRegistry); + if (inArgBuilder_ == null) { + ensureInArgIsMutable(); + inArg_.add(m); + } else { + inArgBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + org.tensorflow.proto.ApiDef.Arg m = + input.readMessage( + org.tensorflow.proto.ApiDef.Arg.parser(), + extensionRegistry); + if (outArgBuilder_ == null) { + ensureOutArgIsMutable(); + outArg_.add(m); + } else { + outArgBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: { + org.tensorflow.proto.ApiDef.Attr m = + input.readMessage( + org.tensorflow.proto.ApiDef.Attr.parser(), + extensionRegistry); + if (attrBuilder_ == null) { + ensureAttrIsMutable(); + attr_.add(m); + } else { + attrBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: { + summary_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: { + descriptionPrefix_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 82: { + descriptionSuffix_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + ensureArgOrderIsMutable(); + argOrder_.add(s); + break; + } // case 90 + case 98: { + deprecationMessage_ = input.readStringRequireUtf8(); + + break; + } // case 98 + case 104: { + deprecationVersion_ = input.readInt32(); + + break; + } // case 104 + 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 graphOpName_ = ""; + /** + *
+     * Name of the op (in the OpDef) to specify the API for.
+     * 
+ * + * string graph_op_name = 1; + * @return The graphOpName. + */ + public java.lang.String getGraphOpName() { + java.lang.Object ref = graphOpName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + graphOpName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Name of the op (in the OpDef) to specify the API for.
+     * 
+ * + * string graph_op_name = 1; + * @return The bytes for graphOpName. + */ + public com.google.protobuf.ByteString + getGraphOpNameBytes() { + java.lang.Object ref = graphOpName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + graphOpName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Name of the op (in the OpDef) to specify the API for.
+     * 
+ * + * string graph_op_name = 1; + * @param value The graphOpName to set. + * @return This builder for chaining. + */ + public Builder setGraphOpName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + graphOpName_ = value; + onChanged(); + return this; + } + /** + *
+     * Name of the op (in the OpDef) to specify the API for.
+     * 
+ * + * string graph_op_name = 1; + * @return This builder for chaining. + */ + public Builder clearGraphOpName() { + + graphOpName_ = getDefaultInstance().getGraphOpName(); + onChanged(); + return this; + } + /** + *
+     * Name of the op (in the OpDef) to specify the API for.
+     * 
+ * + * string graph_op_name = 1; + * @param value The bytes for graphOpName to set. + * @return This builder for chaining. + */ + public Builder setGraphOpNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + graphOpName_ = value; + onChanged(); + return this; + } + + private java.lang.Object deprecationMessage_ = ""; + /** + *
+     * If this op is deprecated, set deprecation message to the message
+     * that should be logged when this op is used.
+     * The message should indicate alternative op to use, if any.
+     * 
+ * + * string deprecation_message = 12; + * @return The deprecationMessage. + */ + public java.lang.String getDeprecationMessage() { + java.lang.Object ref = deprecationMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deprecationMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * If this op is deprecated, set deprecation message to the message
+     * that should be logged when this op is used.
+     * The message should indicate alternative op to use, if any.
+     * 
+ * + * string deprecation_message = 12; + * @return The bytes for deprecationMessage. + */ + public com.google.protobuf.ByteString + getDeprecationMessageBytes() { + java.lang.Object ref = deprecationMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deprecationMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * If this op is deprecated, set deprecation message to the message
+     * that should be logged when this op is used.
+     * The message should indicate alternative op to use, if any.
+     * 
+ * + * string deprecation_message = 12; + * @param value The deprecationMessage to set. + * @return This builder for chaining. + */ + public Builder setDeprecationMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deprecationMessage_ = value; + onChanged(); + return this; + } + /** + *
+     * If this op is deprecated, set deprecation message to the message
+     * that should be logged when this op is used.
+     * The message should indicate alternative op to use, if any.
+     * 
+ * + * string deprecation_message = 12; + * @return This builder for chaining. + */ + public Builder clearDeprecationMessage() { + + deprecationMessage_ = getDefaultInstance().getDeprecationMessage(); + onChanged(); + return this; + } + /** + *
+     * If this op is deprecated, set deprecation message to the message
+     * that should be logged when this op is used.
+     * The message should indicate alternative op to use, if any.
+     * 
+ * + * string deprecation_message = 12; + * @param value The bytes for deprecationMessage to set. + * @return This builder for chaining. + */ + public Builder setDeprecationMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deprecationMessage_ = value; + onChanged(); + return this; + } + + private int deprecationVersion_ ; + /** + *
+     * Major version when the op will be deleted. For e.g. set this
+     * value to 2 if op API should be removed in TensorFlow 2.0 and
+     * deprecated in versions before that.
+     * 
+ * + * int32 deprecation_version = 13; + * @return The deprecationVersion. + */ + @java.lang.Override + public int getDeprecationVersion() { + return deprecationVersion_; + } + /** + *
+     * Major version when the op will be deleted. For e.g. set this
+     * value to 2 if op API should be removed in TensorFlow 2.0 and
+     * deprecated in versions before that.
+     * 
+ * + * int32 deprecation_version = 13; + * @param value The deprecationVersion to set. + * @return This builder for chaining. + */ + public Builder setDeprecationVersion(int value) { + + deprecationVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * Major version when the op will be deleted. For e.g. set this
+     * value to 2 if op API should be removed in TensorFlow 2.0 and
+     * deprecated in versions before that.
+     * 
+ * + * int32 deprecation_version = 13; + * @return This builder for chaining. + */ + public Builder clearDeprecationVersion() { + + deprecationVersion_ = 0; + onChanged(); + return this; + } + + private int visibility_ = 0; + /** + * .tensorflow.ApiDef.Visibility visibility = 2; + * @return The enum numeric value on the wire for visibility. + */ + @java.lang.Override public int getVisibilityValue() { + return visibility_; + } + /** + * .tensorflow.ApiDef.Visibility visibility = 2; + * @param value The enum numeric value on the wire for visibility to set. + * @return This builder for chaining. + */ + public Builder setVisibilityValue(int value) { + + visibility_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.ApiDef.Visibility visibility = 2; + * @return The visibility. + */ + @java.lang.Override + public org.tensorflow.proto.ApiDef.Visibility getVisibility() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.ApiDef.Visibility result = org.tensorflow.proto.ApiDef.Visibility.valueOf(visibility_); + return result == null ? org.tensorflow.proto.ApiDef.Visibility.UNRECOGNIZED : result; + } + /** + * .tensorflow.ApiDef.Visibility visibility = 2; + * @param value The visibility to set. + * @return This builder for chaining. + */ + public Builder setVisibility(org.tensorflow.proto.ApiDef.Visibility value) { + if (value == null) { + throw new NullPointerException(); + } + + visibility_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.ApiDef.Visibility visibility = 2; + * @return This builder for chaining. + */ + public Builder clearVisibility() { + + visibility_ = 0; + onChanged(); + return this; + } + + private java.util.List endpoint_ = + java.util.Collections.emptyList(); + private void ensureEndpointIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + endpoint_ = new java.util.ArrayList(endpoint_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ApiDef.Endpoint, org.tensorflow.proto.ApiDef.Endpoint.Builder, org.tensorflow.proto.ApiDef.EndpointOrBuilder> endpointBuilder_; + + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + public java.util.List getEndpointList() { + if (endpointBuilder_ == null) { + return java.util.Collections.unmodifiableList(endpoint_); + } else { + return endpointBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + public int getEndpointCount() { + if (endpointBuilder_ == null) { + return endpoint_.size(); + } else { + return endpointBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + public org.tensorflow.proto.ApiDef.Endpoint getEndpoint(int index) { + if (endpointBuilder_ == null) { + return endpoint_.get(index); + } else { + return endpointBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + public Builder setEndpoint( + int index, org.tensorflow.proto.ApiDef.Endpoint value) { + if (endpointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEndpointIsMutable(); + endpoint_.set(index, value); + onChanged(); + } else { + endpointBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + public Builder setEndpoint( + int index, org.tensorflow.proto.ApiDef.Endpoint.Builder builderForValue) { + if (endpointBuilder_ == null) { + ensureEndpointIsMutable(); + endpoint_.set(index, builderForValue.build()); + onChanged(); + } else { + endpointBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + public Builder addEndpoint(org.tensorflow.proto.ApiDef.Endpoint value) { + if (endpointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEndpointIsMutable(); + endpoint_.add(value); + onChanged(); + } else { + endpointBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + public Builder addEndpoint( + int index, org.tensorflow.proto.ApiDef.Endpoint value) { + if (endpointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEndpointIsMutable(); + endpoint_.add(index, value); + onChanged(); + } else { + endpointBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + public Builder addEndpoint( + org.tensorflow.proto.ApiDef.Endpoint.Builder builderForValue) { + if (endpointBuilder_ == null) { + ensureEndpointIsMutable(); + endpoint_.add(builderForValue.build()); + onChanged(); + } else { + endpointBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + public Builder addEndpoint( + int index, org.tensorflow.proto.ApiDef.Endpoint.Builder builderForValue) { + if (endpointBuilder_ == null) { + ensureEndpointIsMutable(); + endpoint_.add(index, builderForValue.build()); + onChanged(); + } else { + endpointBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + public Builder addAllEndpoint( + java.lang.Iterable values) { + if (endpointBuilder_ == null) { + ensureEndpointIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, endpoint_); + onChanged(); + } else { + endpointBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + public Builder clearEndpoint() { + if (endpointBuilder_ == null) { + endpoint_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + endpointBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + public Builder removeEndpoint(int index) { + if (endpointBuilder_ == null) { + ensureEndpointIsMutable(); + endpoint_.remove(index); + onChanged(); + } else { + endpointBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + public org.tensorflow.proto.ApiDef.Endpoint.Builder getEndpointBuilder( + int index) { + return getEndpointFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + public org.tensorflow.proto.ApiDef.EndpointOrBuilder getEndpointOrBuilder( + int index) { + if (endpointBuilder_ == null) { + return endpoint_.get(index); } else { + return endpointBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + public java.util.List + getEndpointOrBuilderList() { + if (endpointBuilder_ != null) { + return endpointBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(endpoint_); + } + } + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + public org.tensorflow.proto.ApiDef.Endpoint.Builder addEndpointBuilder() { + return getEndpointFieldBuilder().addBuilder( + org.tensorflow.proto.ApiDef.Endpoint.getDefaultInstance()); + } + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + public org.tensorflow.proto.ApiDef.Endpoint.Builder addEndpointBuilder( + int index) { + return getEndpointFieldBuilder().addBuilder( + index, org.tensorflow.proto.ApiDef.Endpoint.getDefaultInstance()); + } + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + public java.util.List + getEndpointBuilderList() { + return getEndpointFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ApiDef.Endpoint, org.tensorflow.proto.ApiDef.Endpoint.Builder, org.tensorflow.proto.ApiDef.EndpointOrBuilder> + getEndpointFieldBuilder() { + if (endpointBuilder_ == null) { + endpointBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ApiDef.Endpoint, org.tensorflow.proto.ApiDef.Endpoint.Builder, org.tensorflow.proto.ApiDef.EndpointOrBuilder>( + endpoint_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + endpoint_ = null; + } + return endpointBuilder_; + } + + private java.util.List inArg_ = + java.util.Collections.emptyList(); + private void ensureInArgIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + inArg_ = new java.util.ArrayList(inArg_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ApiDef.Arg, org.tensorflow.proto.ApiDef.Arg.Builder, org.tensorflow.proto.ApiDef.ArgOrBuilder> inArgBuilder_; + + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + public java.util.List getInArgList() { + if (inArgBuilder_ == null) { + return java.util.Collections.unmodifiableList(inArg_); + } else { + return inArgBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + public int getInArgCount() { + if (inArgBuilder_ == null) { + return inArg_.size(); + } else { + return inArgBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + public org.tensorflow.proto.ApiDef.Arg getInArg(int index) { + if (inArgBuilder_ == null) { + return inArg_.get(index); + } else { + return inArgBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + public Builder setInArg( + int index, org.tensorflow.proto.ApiDef.Arg value) { + if (inArgBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInArgIsMutable(); + inArg_.set(index, value); + onChanged(); + } else { + inArgBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + public Builder setInArg( + int index, org.tensorflow.proto.ApiDef.Arg.Builder builderForValue) { + if (inArgBuilder_ == null) { + ensureInArgIsMutable(); + inArg_.set(index, builderForValue.build()); + onChanged(); + } else { + inArgBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + public Builder addInArg(org.tensorflow.proto.ApiDef.Arg value) { + if (inArgBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInArgIsMutable(); + inArg_.add(value); + onChanged(); + } else { + inArgBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + public Builder addInArg( + int index, org.tensorflow.proto.ApiDef.Arg value) { + if (inArgBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInArgIsMutable(); + inArg_.add(index, value); + onChanged(); + } else { + inArgBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + public Builder addInArg( + org.tensorflow.proto.ApiDef.Arg.Builder builderForValue) { + if (inArgBuilder_ == null) { + ensureInArgIsMutable(); + inArg_.add(builderForValue.build()); + onChanged(); + } else { + inArgBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + public Builder addInArg( + int index, org.tensorflow.proto.ApiDef.Arg.Builder builderForValue) { + if (inArgBuilder_ == null) { + ensureInArgIsMutable(); + inArg_.add(index, builderForValue.build()); + onChanged(); + } else { + inArgBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + public Builder addAllInArg( + java.lang.Iterable values) { + if (inArgBuilder_ == null) { + ensureInArgIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inArg_); + onChanged(); + } else { + inArgBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + public Builder clearInArg() { + if (inArgBuilder_ == null) { + inArg_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + inArgBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + public Builder removeInArg(int index) { + if (inArgBuilder_ == null) { + ensureInArgIsMutable(); + inArg_.remove(index); + onChanged(); + } else { + inArgBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + public org.tensorflow.proto.ApiDef.Arg.Builder getInArgBuilder( + int index) { + return getInArgFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + public org.tensorflow.proto.ApiDef.ArgOrBuilder getInArgOrBuilder( + int index) { + if (inArgBuilder_ == null) { + return inArg_.get(index); } else { + return inArgBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + public java.util.List + getInArgOrBuilderList() { + if (inArgBuilder_ != null) { + return inArgBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inArg_); + } + } + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + public org.tensorflow.proto.ApiDef.Arg.Builder addInArgBuilder() { + return getInArgFieldBuilder().addBuilder( + org.tensorflow.proto.ApiDef.Arg.getDefaultInstance()); + } + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + public org.tensorflow.proto.ApiDef.Arg.Builder addInArgBuilder( + int index) { + return getInArgFieldBuilder().addBuilder( + index, org.tensorflow.proto.ApiDef.Arg.getDefaultInstance()); + } + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + public java.util.List + getInArgBuilderList() { + return getInArgFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ApiDef.Arg, org.tensorflow.proto.ApiDef.Arg.Builder, org.tensorflow.proto.ApiDef.ArgOrBuilder> + getInArgFieldBuilder() { + if (inArgBuilder_ == null) { + inArgBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ApiDef.Arg, org.tensorflow.proto.ApiDef.Arg.Builder, org.tensorflow.proto.ApiDef.ArgOrBuilder>( + inArg_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + inArg_ = null; + } + return inArgBuilder_; + } + + private java.util.List outArg_ = + java.util.Collections.emptyList(); + private void ensureOutArgIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + outArg_ = new java.util.ArrayList(outArg_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ApiDef.Arg, org.tensorflow.proto.ApiDef.Arg.Builder, org.tensorflow.proto.ApiDef.ArgOrBuilder> outArgBuilder_; + + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + public java.util.List getOutArgList() { + if (outArgBuilder_ == null) { + return java.util.Collections.unmodifiableList(outArg_); + } else { + return outArgBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + public int getOutArgCount() { + if (outArgBuilder_ == null) { + return outArg_.size(); + } else { + return outArgBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + public org.tensorflow.proto.ApiDef.Arg getOutArg(int index) { + if (outArgBuilder_ == null) { + return outArg_.get(index); + } else { + return outArgBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + public Builder setOutArg( + int index, org.tensorflow.proto.ApiDef.Arg value) { + if (outArgBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutArgIsMutable(); + outArg_.set(index, value); + onChanged(); + } else { + outArgBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + public Builder setOutArg( + int index, org.tensorflow.proto.ApiDef.Arg.Builder builderForValue) { + if (outArgBuilder_ == null) { + ensureOutArgIsMutable(); + outArg_.set(index, builderForValue.build()); + onChanged(); + } else { + outArgBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + public Builder addOutArg(org.tensorflow.proto.ApiDef.Arg value) { + if (outArgBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutArgIsMutable(); + outArg_.add(value); + onChanged(); + } else { + outArgBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + public Builder addOutArg( + int index, org.tensorflow.proto.ApiDef.Arg value) { + if (outArgBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutArgIsMutable(); + outArg_.add(index, value); + onChanged(); + } else { + outArgBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + public Builder addOutArg( + org.tensorflow.proto.ApiDef.Arg.Builder builderForValue) { + if (outArgBuilder_ == null) { + ensureOutArgIsMutable(); + outArg_.add(builderForValue.build()); + onChanged(); + } else { + outArgBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + public Builder addOutArg( + int index, org.tensorflow.proto.ApiDef.Arg.Builder builderForValue) { + if (outArgBuilder_ == null) { + ensureOutArgIsMutable(); + outArg_.add(index, builderForValue.build()); + onChanged(); + } else { + outArgBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + public Builder addAllOutArg( + java.lang.Iterable values) { + if (outArgBuilder_ == null) { + ensureOutArgIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outArg_); + onChanged(); + } else { + outArgBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + public Builder clearOutArg() { + if (outArgBuilder_ == null) { + outArg_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + outArgBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + public Builder removeOutArg(int index) { + if (outArgBuilder_ == null) { + ensureOutArgIsMutable(); + outArg_.remove(index); + onChanged(); + } else { + outArgBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + public org.tensorflow.proto.ApiDef.Arg.Builder getOutArgBuilder( + int index) { + return getOutArgFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + public org.tensorflow.proto.ApiDef.ArgOrBuilder getOutArgOrBuilder( + int index) { + if (outArgBuilder_ == null) { + return outArg_.get(index); } else { + return outArgBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + public java.util.List + getOutArgOrBuilderList() { + if (outArgBuilder_ != null) { + return outArgBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outArg_); + } + } + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + public org.tensorflow.proto.ApiDef.Arg.Builder addOutArgBuilder() { + return getOutArgFieldBuilder().addBuilder( + org.tensorflow.proto.ApiDef.Arg.getDefaultInstance()); + } + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + public org.tensorflow.proto.ApiDef.Arg.Builder addOutArgBuilder( + int index) { + return getOutArgFieldBuilder().addBuilder( + index, org.tensorflow.proto.ApiDef.Arg.getDefaultInstance()); + } + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + public java.util.List + getOutArgBuilderList() { + return getOutArgFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ApiDef.Arg, org.tensorflow.proto.ApiDef.Arg.Builder, org.tensorflow.proto.ApiDef.ArgOrBuilder> + getOutArgFieldBuilder() { + if (outArgBuilder_ == null) { + outArgBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ApiDef.Arg, org.tensorflow.proto.ApiDef.Arg.Builder, org.tensorflow.proto.ApiDef.ArgOrBuilder>( + outArg_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + outArg_ = null; + } + return outArgBuilder_; + } + + private com.google.protobuf.LazyStringList argOrder_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArgOrderIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + argOrder_ = new com.google.protobuf.LazyStringArrayList(argOrder_); + bitField0_ |= 0x00000008; + } + } + /** + *
+     * List of original in_arg names to specify new argument order.
+     * Length of arg_order should be either empty to keep current order
+     * or match size of in_arg.
+     * 
+ * + * repeated string arg_order = 11; + * @return A list containing the argOrder. + */ + public com.google.protobuf.ProtocolStringList + getArgOrderList() { + return argOrder_.getUnmodifiableView(); + } + /** + *
+     * List of original in_arg names to specify new argument order.
+     * Length of arg_order should be either empty to keep current order
+     * or match size of in_arg.
+     * 
+ * + * repeated string arg_order = 11; + * @return The count of argOrder. + */ + public int getArgOrderCount() { + return argOrder_.size(); + } + /** + *
+     * List of original in_arg names to specify new argument order.
+     * Length of arg_order should be either empty to keep current order
+     * or match size of in_arg.
+     * 
+ * + * repeated string arg_order = 11; + * @param index The index of the element to return. + * @return The argOrder at the given index. + */ + public java.lang.String getArgOrder(int index) { + return argOrder_.get(index); + } + /** + *
+     * List of original in_arg names to specify new argument order.
+     * Length of arg_order should be either empty to keep current order
+     * or match size of in_arg.
+     * 
+ * + * repeated string arg_order = 11; + * @param index The index of the value to return. + * @return The bytes of the argOrder at the given index. + */ + public com.google.protobuf.ByteString + getArgOrderBytes(int index) { + return argOrder_.getByteString(index); + } + /** + *
+     * List of original in_arg names to specify new argument order.
+     * Length of arg_order should be either empty to keep current order
+     * or match size of in_arg.
+     * 
+ * + * repeated string arg_order = 11; + * @param index The index to set the value at. + * @param value The argOrder to set. + * @return This builder for chaining. + */ + public Builder setArgOrder( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgOrderIsMutable(); + argOrder_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * List of original in_arg names to specify new argument order.
+     * Length of arg_order should be either empty to keep current order
+     * or match size of in_arg.
+     * 
+ * + * repeated string arg_order = 11; + * @param value The argOrder to add. + * @return This builder for chaining. + */ + public Builder addArgOrder( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgOrderIsMutable(); + argOrder_.add(value); + onChanged(); + return this; + } + /** + *
+     * List of original in_arg names to specify new argument order.
+     * Length of arg_order should be either empty to keep current order
+     * or match size of in_arg.
+     * 
+ * + * repeated string arg_order = 11; + * @param values The argOrder to add. + * @return This builder for chaining. + */ + public Builder addAllArgOrder( + java.lang.Iterable values) { + ensureArgOrderIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, argOrder_); + onChanged(); + return this; + } + /** + *
+     * List of original in_arg names to specify new argument order.
+     * Length of arg_order should be either empty to keep current order
+     * or match size of in_arg.
+     * 
+ * + * repeated string arg_order = 11; + * @return This builder for chaining. + */ + public Builder clearArgOrder() { + argOrder_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * List of original in_arg names to specify new argument order.
+     * Length of arg_order should be either empty to keep current order
+     * or match size of in_arg.
+     * 
+ * + * repeated string arg_order = 11; + * @param value The bytes of the argOrder to add. + * @return This builder for chaining. + */ + public Builder addArgOrderBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureArgOrderIsMutable(); + argOrder_.add(value); + onChanged(); + return this; + } + + private java.util.List attr_ = + java.util.Collections.emptyList(); + private void ensureAttrIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + attr_ = new java.util.ArrayList(attr_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ApiDef.Attr, org.tensorflow.proto.ApiDef.Attr.Builder, org.tensorflow.proto.ApiDef.AttrOrBuilder> attrBuilder_; + + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + public java.util.List getAttrList() { + if (attrBuilder_ == null) { + return java.util.Collections.unmodifiableList(attr_); + } else { + return attrBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + public int getAttrCount() { + if (attrBuilder_ == null) { + return attr_.size(); + } else { + return attrBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + public org.tensorflow.proto.ApiDef.Attr getAttr(int index) { + if (attrBuilder_ == null) { + return attr_.get(index); + } else { + return attrBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + public Builder setAttr( + int index, org.tensorflow.proto.ApiDef.Attr value) { + if (attrBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttrIsMutable(); + attr_.set(index, value); + onChanged(); + } else { + attrBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + public Builder setAttr( + int index, org.tensorflow.proto.ApiDef.Attr.Builder builderForValue) { + if (attrBuilder_ == null) { + ensureAttrIsMutable(); + attr_.set(index, builderForValue.build()); + onChanged(); + } else { + attrBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + public Builder addAttr(org.tensorflow.proto.ApiDef.Attr value) { + if (attrBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttrIsMutable(); + attr_.add(value); + onChanged(); + } else { + attrBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + public Builder addAttr( + int index, org.tensorflow.proto.ApiDef.Attr value) { + if (attrBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttrIsMutable(); + attr_.add(index, value); + onChanged(); + } else { + attrBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + public Builder addAttr( + org.tensorflow.proto.ApiDef.Attr.Builder builderForValue) { + if (attrBuilder_ == null) { + ensureAttrIsMutable(); + attr_.add(builderForValue.build()); + onChanged(); + } else { + attrBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + public Builder addAttr( + int index, org.tensorflow.proto.ApiDef.Attr.Builder builderForValue) { + if (attrBuilder_ == null) { + ensureAttrIsMutable(); + attr_.add(index, builderForValue.build()); + onChanged(); + } else { + attrBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + public Builder addAllAttr( + java.lang.Iterable values) { + if (attrBuilder_ == null) { + ensureAttrIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, attr_); + onChanged(); + } else { + attrBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + public Builder clearAttr() { + if (attrBuilder_ == null) { + attr_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + attrBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + public Builder removeAttr(int index) { + if (attrBuilder_ == null) { + ensureAttrIsMutable(); + attr_.remove(index); + onChanged(); + } else { + attrBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + public org.tensorflow.proto.ApiDef.Attr.Builder getAttrBuilder( + int index) { + return getAttrFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + public org.tensorflow.proto.ApiDef.AttrOrBuilder getAttrOrBuilder( + int index) { + if (attrBuilder_ == null) { + return attr_.get(index); } else { + return attrBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + public java.util.List + getAttrOrBuilderList() { + if (attrBuilder_ != null) { + return attrBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(attr_); + } + } + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + public org.tensorflow.proto.ApiDef.Attr.Builder addAttrBuilder() { + return getAttrFieldBuilder().addBuilder( + org.tensorflow.proto.ApiDef.Attr.getDefaultInstance()); + } + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + public org.tensorflow.proto.ApiDef.Attr.Builder addAttrBuilder( + int index) { + return getAttrFieldBuilder().addBuilder( + index, org.tensorflow.proto.ApiDef.Attr.getDefaultInstance()); + } + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + public java.util.List + getAttrBuilderList() { + return getAttrFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ApiDef.Attr, org.tensorflow.proto.ApiDef.Attr.Builder, org.tensorflow.proto.ApiDef.AttrOrBuilder> + getAttrFieldBuilder() { + if (attrBuilder_ == null) { + attrBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ApiDef.Attr, org.tensorflow.proto.ApiDef.Attr.Builder, org.tensorflow.proto.ApiDef.AttrOrBuilder>( + attr_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + attr_ = null; + } + return attrBuilder_; + } + + private java.lang.Object summary_ = ""; + /** + *
+     * One-line human-readable description of what the Op does.
+     * 
+ * + * string summary = 7; + * @return The summary. + */ + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summary_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * One-line human-readable description of what the Op does.
+     * 
+ * + * string summary = 7; + * @return The bytes for summary. + */ + public com.google.protobuf.ByteString + getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + summary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * One-line human-readable description of what the Op does.
+     * 
+ * + * string summary = 7; + * @param value The summary to set. + * @return This builder for chaining. + */ + public Builder setSummary( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + summary_ = value; + onChanged(); + return this; + } + /** + *
+     * One-line human-readable description of what the Op does.
+     * 
+ * + * string summary = 7; + * @return This builder for chaining. + */ + public Builder clearSummary() { + + summary_ = getDefaultInstance().getSummary(); + onChanged(); + return this; + } + /** + *
+     * One-line human-readable description of what the Op does.
+     * 
+ * + * string summary = 7; + * @param value The bytes for summary to set. + * @return This builder for chaining. + */ + public Builder setSummaryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + summary_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+     * Additional, longer human-readable description of what the Op does.
+     * 
+ * + * string description = 8; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Additional, longer human-readable description of what the Op does.
+     * 
+ * + * string description = 8; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Additional, longer human-readable description of what the Op does.
+     * 
+ * + * string description = 8; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+     * Additional, longer human-readable description of what the Op does.
+     * 
+ * + * string description = 8; + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+     * Additional, longer human-readable description of what the Op does.
+     * 
+ * + * string description = 8; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private java.lang.Object descriptionPrefix_ = ""; + /** + *
+     * Modify an existing/inherited description by adding text to the beginning
+     * or end.
+     * 
+ * + * string description_prefix = 9; + * @return The descriptionPrefix. + */ + public java.lang.String getDescriptionPrefix() { + java.lang.Object ref = descriptionPrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + descriptionPrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Modify an existing/inherited description by adding text to the beginning
+     * or end.
+     * 
+ * + * string description_prefix = 9; + * @return The bytes for descriptionPrefix. + */ + public com.google.protobuf.ByteString + getDescriptionPrefixBytes() { + java.lang.Object ref = descriptionPrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + descriptionPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Modify an existing/inherited description by adding text to the beginning
+     * or end.
+     * 
+ * + * string description_prefix = 9; + * @param value The descriptionPrefix to set. + * @return This builder for chaining. + */ + public Builder setDescriptionPrefix( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + descriptionPrefix_ = value; + onChanged(); + return this; + } + /** + *
+     * Modify an existing/inherited description by adding text to the beginning
+     * or end.
+     * 
+ * + * string description_prefix = 9; + * @return This builder for chaining. + */ + public Builder clearDescriptionPrefix() { + + descriptionPrefix_ = getDefaultInstance().getDescriptionPrefix(); + onChanged(); + return this; + } + /** + *
+     * Modify an existing/inherited description by adding text to the beginning
+     * or end.
+     * 
+ * + * string description_prefix = 9; + * @param value The bytes for descriptionPrefix to set. + * @return This builder for chaining. + */ + public Builder setDescriptionPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + descriptionPrefix_ = value; + onChanged(); + return this; + } + + private java.lang.Object descriptionSuffix_ = ""; + /** + * string description_suffix = 10; + * @return The descriptionSuffix. + */ + public java.lang.String getDescriptionSuffix() { + java.lang.Object ref = descriptionSuffix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + descriptionSuffix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string description_suffix = 10; + * @return The bytes for descriptionSuffix. + */ + public com.google.protobuf.ByteString + getDescriptionSuffixBytes() { + java.lang.Object ref = descriptionSuffix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + descriptionSuffix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string description_suffix = 10; + * @param value The descriptionSuffix to set. + * @return This builder for chaining. + */ + public Builder setDescriptionSuffix( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + descriptionSuffix_ = value; + onChanged(); + return this; + } + /** + * string description_suffix = 10; + * @return This builder for chaining. + */ + public Builder clearDescriptionSuffix() { + + descriptionSuffix_ = getDefaultInstance().getDescriptionSuffix(); + onChanged(); + return this; + } + /** + * string description_suffix = 10; + * @param value The bytes for descriptionSuffix to set. + * @return This builder for chaining. + */ + public Builder setDescriptionSuffixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + descriptionSuffix_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.ApiDef) + } + + // @@protoc_insertion_point(class_scope:tensorflow.ApiDef) + private static final org.tensorflow.proto.ApiDef DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.ApiDef(); + } + + public static org.tensorflow.proto.ApiDef getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApiDef 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 org.tensorflow.proto.ApiDef getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ApiDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ApiDefOrBuilder.java new file mode 100644 index 00000000000..388d57e8cd5 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ApiDefOrBuilder.java @@ -0,0 +1,295 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/api_def.proto + +package org.tensorflow.proto; + +public interface ApiDefOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.ApiDef) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Name of the op (in the OpDef) to specify the API for.
+   * 
+ * + * string graph_op_name = 1; + * @return The graphOpName. + */ + java.lang.String getGraphOpName(); + /** + *
+   * Name of the op (in the OpDef) to specify the API for.
+   * 
+ * + * string graph_op_name = 1; + * @return The bytes for graphOpName. + */ + com.google.protobuf.ByteString + getGraphOpNameBytes(); + + /** + *
+   * If this op is deprecated, set deprecation message to the message
+   * that should be logged when this op is used.
+   * The message should indicate alternative op to use, if any.
+   * 
+ * + * string deprecation_message = 12; + * @return The deprecationMessage. + */ + java.lang.String getDeprecationMessage(); + /** + *
+   * If this op is deprecated, set deprecation message to the message
+   * that should be logged when this op is used.
+   * The message should indicate alternative op to use, if any.
+   * 
+ * + * string deprecation_message = 12; + * @return The bytes for deprecationMessage. + */ + com.google.protobuf.ByteString + getDeprecationMessageBytes(); + + /** + *
+   * Major version when the op will be deleted. For e.g. set this
+   * value to 2 if op API should be removed in TensorFlow 2.0 and
+   * deprecated in versions before that.
+   * 
+ * + * int32 deprecation_version = 13; + * @return The deprecationVersion. + */ + int getDeprecationVersion(); + + /** + * .tensorflow.ApiDef.Visibility visibility = 2; + * @return The enum numeric value on the wire for visibility. + */ + int getVisibilityValue(); + /** + * .tensorflow.ApiDef.Visibility visibility = 2; + * @return The visibility. + */ + org.tensorflow.proto.ApiDef.Visibility getVisibility(); + + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + java.util.List + getEndpointList(); + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + org.tensorflow.proto.ApiDef.Endpoint getEndpoint(int index); + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + int getEndpointCount(); + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + java.util.List + getEndpointOrBuilderList(); + /** + * repeated .tensorflow.ApiDef.Endpoint endpoint = 3; + */ + org.tensorflow.proto.ApiDef.EndpointOrBuilder getEndpointOrBuilder( + int index); + + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + java.util.List + getInArgList(); + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + org.tensorflow.proto.ApiDef.Arg getInArg(int index); + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + int getInArgCount(); + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + java.util.List + getInArgOrBuilderList(); + /** + * repeated .tensorflow.ApiDef.Arg in_arg = 4; + */ + org.tensorflow.proto.ApiDef.ArgOrBuilder getInArgOrBuilder( + int index); + + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + java.util.List + getOutArgList(); + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + org.tensorflow.proto.ApiDef.Arg getOutArg(int index); + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + int getOutArgCount(); + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + java.util.List + getOutArgOrBuilderList(); + /** + * repeated .tensorflow.ApiDef.Arg out_arg = 5; + */ + org.tensorflow.proto.ApiDef.ArgOrBuilder getOutArgOrBuilder( + int index); + + /** + *
+   * List of original in_arg names to specify new argument order.
+   * Length of arg_order should be either empty to keep current order
+   * or match size of in_arg.
+   * 
+ * + * repeated string arg_order = 11; + * @return A list containing the argOrder. + */ + java.util.List + getArgOrderList(); + /** + *
+   * List of original in_arg names to specify new argument order.
+   * Length of arg_order should be either empty to keep current order
+   * or match size of in_arg.
+   * 
+ * + * repeated string arg_order = 11; + * @return The count of argOrder. + */ + int getArgOrderCount(); + /** + *
+   * List of original in_arg names to specify new argument order.
+   * Length of arg_order should be either empty to keep current order
+   * or match size of in_arg.
+   * 
+ * + * repeated string arg_order = 11; + * @param index The index of the element to return. + * @return The argOrder at the given index. + */ + java.lang.String getArgOrder(int index); + /** + *
+   * List of original in_arg names to specify new argument order.
+   * Length of arg_order should be either empty to keep current order
+   * or match size of in_arg.
+   * 
+ * + * repeated string arg_order = 11; + * @param index The index of the value to return. + * @return The bytes of the argOrder at the given index. + */ + com.google.protobuf.ByteString + getArgOrderBytes(int index); + + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + java.util.List + getAttrList(); + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + org.tensorflow.proto.ApiDef.Attr getAttr(int index); + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + int getAttrCount(); + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + java.util.List + getAttrOrBuilderList(); + /** + * repeated .tensorflow.ApiDef.Attr attr = 6; + */ + org.tensorflow.proto.ApiDef.AttrOrBuilder getAttrOrBuilder( + int index); + + /** + *
+   * One-line human-readable description of what the Op does.
+   * 
+ * + * string summary = 7; + * @return The summary. + */ + java.lang.String getSummary(); + /** + *
+   * One-line human-readable description of what the Op does.
+   * 
+ * + * string summary = 7; + * @return The bytes for summary. + */ + com.google.protobuf.ByteString + getSummaryBytes(); + + /** + *
+   * Additional, longer human-readable description of what the Op does.
+   * 
+ * + * string description = 8; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+   * Additional, longer human-readable description of what the Op does.
+   * 
+ * + * string description = 8; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+   * Modify an existing/inherited description by adding text to the beginning
+   * or end.
+   * 
+ * + * string description_prefix = 9; + * @return The descriptionPrefix. + */ + java.lang.String getDescriptionPrefix(); + /** + *
+   * Modify an existing/inherited description by adding text to the beginning
+   * or end.
+   * 
+ * + * string description_prefix = 9; + * @return The bytes for descriptionPrefix. + */ + com.google.protobuf.ByteString + getDescriptionPrefixBytes(); + + /** + * string description_suffix = 10; + * @return The descriptionSuffix. + */ + java.lang.String getDescriptionSuffix(); + /** + * string description_suffix = 10; + * @return The bytes for descriptionSuffix. + */ + com.google.protobuf.ByteString + getDescriptionSuffixBytes(); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ApiDefProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ApiDefProtos.java new file mode 100644 index 00000000000..6c02e1f3125 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ApiDefProtos.java @@ -0,0 +1,117 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/api_def.proto + +package org.tensorflow.proto; + +public final class ApiDefProtos { + private ApiDefProtos() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_ApiDef_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_ApiDef_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_ApiDef_Endpoint_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_ApiDef_Endpoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_ApiDef_Arg_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_ApiDef_Arg_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_ApiDef_Attr_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_ApiDef_Attr_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_ApiDefs_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_ApiDefs_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'tensorflow/core/framework/api_def.prot" + + "o\022\ntensorflow\032*tensorflow/core/framework" + + "/attr_value.proto\"\341\005\n\006ApiDef\022\025\n\rgraph_op" + + "_name\030\001 \001(\t\022\033\n\023deprecation_message\030\014 \001(\t" + + "\022\033\n\023deprecation_version\030\r \001(\005\0221\n\nvisibil" + + "ity\030\002 \001(\0162\035.tensorflow.ApiDef.Visibility" + + "\022-\n\010endpoint\030\003 \003(\0132\033.tensorflow.ApiDef.E" + + "ndpoint\022&\n\006in_arg\030\004 \003(\0132\026.tensorflow.Api" + + "Def.Arg\022\'\n\007out_arg\030\005 \003(\0132\026.tensorflow.Ap" + + "iDef.Arg\022\021\n\targ_order\030\013 \003(\t\022%\n\004attr\030\006 \003(" + + "\0132\027.tensorflow.ApiDef.Attr\022\017\n\007summary\030\007 " + + "\001(\t\022\023\n\013description\030\010 \001(\t\022\032\n\022description_" + + "prefix\030\t \001(\t\022\032\n\022description_suffix\030\n \001(\t" + + "\032I\n\010Endpoint\022\014\n\004name\030\001 \001(\t\022\022\n\ndeprecated" + + "\030\003 \001(\010\022\033\n\023deprecation_version\030\004 \001(\005\032;\n\003A" + + "rg\022\014\n\004name\030\001 \001(\t\022\021\n\trename_to\030\002 \001(\t\022\023\n\013d" + + "escription\030\003 \001(\t\032j\n\004Attr\022\014\n\004name\030\001 \001(\t\022\021" + + "\n\trename_to\030\002 \001(\t\022,\n\rdefault_value\030\003 \001(\013" + + "2\025.tensorflow.AttrValue\022\023\n\013description\030\004" + + " \001(\t\"G\n\nVisibility\022\026\n\022DEFAULT_VISIBILITY" + + "\020\000\022\013\n\007VISIBLE\020\001\022\010\n\004SKIP\020\002\022\n\n\006HIDDEN\020\003\")\n" + + "\007ApiDefs\022\036\n\002op\030\001 \003(\0132\022.tensorflow.ApiDef" + + "By\n\024org.tensorflow.protoB\014ApiDefProtosP\001" + + "ZNgithub.com/tensorflow/tensorflow/tenso" + + "rflow/go/core/framework/api_def_go_proto" + + "\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + org.tensorflow.proto.AttrValueProtos.getDescriptor(), + }); + internal_static_tensorflow_ApiDef_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_ApiDef_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_ApiDef_descriptor, + new java.lang.String[] { "GraphOpName", "DeprecationMessage", "DeprecationVersion", "Visibility", "Endpoint", "InArg", "OutArg", "ArgOrder", "Attr", "Summary", "Description", "DescriptionPrefix", "DescriptionSuffix", }); + internal_static_tensorflow_ApiDef_Endpoint_descriptor = + internal_static_tensorflow_ApiDef_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_ApiDef_Endpoint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_ApiDef_Endpoint_descriptor, + new java.lang.String[] { "Name", "Deprecated", "DeprecationVersion", }); + internal_static_tensorflow_ApiDef_Arg_descriptor = + internal_static_tensorflow_ApiDef_descriptor.getNestedTypes().get(1); + internal_static_tensorflow_ApiDef_Arg_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_ApiDef_Arg_descriptor, + new java.lang.String[] { "Name", "RenameTo", "Description", }); + internal_static_tensorflow_ApiDef_Attr_descriptor = + internal_static_tensorflow_ApiDef_descriptor.getNestedTypes().get(2); + internal_static_tensorflow_ApiDef_Attr_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_ApiDef_Attr_descriptor, + new java.lang.String[] { "Name", "RenameTo", "DefaultValue", "Description", }); + internal_static_tensorflow_ApiDefs_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_tensorflow_ApiDefs_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_ApiDefs_descriptor, + new java.lang.String[] { "Op", }); + org.tensorflow.proto.AttrValueProtos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ApiDefs.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ApiDefs.java new file mode 100644 index 00000000000..5df4db339f7 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ApiDefs.java @@ -0,0 +1,752 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/api_def.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.ApiDefs} + */ +public final class ApiDefs extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.ApiDefs) + ApiDefsOrBuilder { +private static final long serialVersionUID = 0L; + // Use ApiDefs.newBuilder() to construct. + private ApiDefs(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ApiDefs() { + op_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ApiDefs(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDefs_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDefs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ApiDefs.class, org.tensorflow.proto.ApiDefs.Builder.class); + } + + public static final int OP_FIELD_NUMBER = 1; + private java.util.List op_; + /** + * repeated .tensorflow.ApiDef op = 1; + */ + @java.lang.Override + public java.util.List getOpList() { + return op_; + } + /** + * repeated .tensorflow.ApiDef op = 1; + */ + @java.lang.Override + public java.util.List + getOpOrBuilderList() { + return op_; + } + /** + * repeated .tensorflow.ApiDef op = 1; + */ + @java.lang.Override + public int getOpCount() { + return op_.size(); + } + /** + * repeated .tensorflow.ApiDef op = 1; + */ + @java.lang.Override + public org.tensorflow.proto.ApiDef getOp(int index) { + return op_.get(index); + } + /** + * repeated .tensorflow.ApiDef op = 1; + */ + @java.lang.Override + public org.tensorflow.proto.ApiDefOrBuilder getOpOrBuilder( + int index) { + return op_.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 < op_.size(); i++) { + output.writeMessage(1, op_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < op_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, op_.get(i)); + } + 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 org.tensorflow.proto.ApiDefs)) { + return super.equals(obj); + } + org.tensorflow.proto.ApiDefs other = (org.tensorflow.proto.ApiDefs) obj; + + if (!getOpList() + .equals(other.getOpList())) 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 (getOpCount() > 0) { + hash = (37 * hash) + OP_FIELD_NUMBER; + hash = (53 * hash) + getOpList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.ApiDefs parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ApiDefs parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ApiDefs parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ApiDefs parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ApiDefs parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ApiDefs parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ApiDefs parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ApiDefs 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 org.tensorflow.proto.ApiDefs parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ApiDefs 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 org.tensorflow.proto.ApiDefs parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ApiDefs 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(org.tensorflow.proto.ApiDefs prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.ApiDefs} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.ApiDefs) + org.tensorflow.proto.ApiDefsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDefs_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDefs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ApiDefs.class, org.tensorflow.proto.ApiDefs.Builder.class); + } + + // Construct using org.tensorflow.proto.ApiDefs.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (opBuilder_ == null) { + op_ = java.util.Collections.emptyList(); + } else { + op_ = null; + opBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.ApiDefProtos.internal_static_tensorflow_ApiDefs_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.ApiDefs getDefaultInstanceForType() { + return org.tensorflow.proto.ApiDefs.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.ApiDefs build() { + org.tensorflow.proto.ApiDefs result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.ApiDefs buildPartial() { + org.tensorflow.proto.ApiDefs result = new org.tensorflow.proto.ApiDefs(this); + int from_bitField0_ = bitField0_; + if (opBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + op_ = java.util.Collections.unmodifiableList(op_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.op_ = op_; + } else { + result.op_ = opBuilder_.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 org.tensorflow.proto.ApiDefs) { + return mergeFrom((org.tensorflow.proto.ApiDefs)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.ApiDefs other) { + if (other == org.tensorflow.proto.ApiDefs.getDefaultInstance()) return this; + if (opBuilder_ == null) { + if (!other.op_.isEmpty()) { + if (op_.isEmpty()) { + op_ = other.op_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOpIsMutable(); + op_.addAll(other.op_); + } + onChanged(); + } + } else { + if (!other.op_.isEmpty()) { + if (opBuilder_.isEmpty()) { + opBuilder_.dispose(); + opBuilder_ = null; + op_ = other.op_; + bitField0_ = (bitField0_ & ~0x00000001); + opBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOpFieldBuilder() : null; + } else { + opBuilder_.addAllMessages(other.op_); + } + } + } + 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: { + org.tensorflow.proto.ApiDef m = + input.readMessage( + org.tensorflow.proto.ApiDef.parser(), + extensionRegistry); + if (opBuilder_ == null) { + ensureOpIsMutable(); + op_.add(m); + } else { + opBuilder_.addMessage(m); + } + 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.util.List op_ = + java.util.Collections.emptyList(); + private void ensureOpIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + op_ = new java.util.ArrayList(op_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ApiDef, org.tensorflow.proto.ApiDef.Builder, org.tensorflow.proto.ApiDefOrBuilder> opBuilder_; + + /** + * repeated .tensorflow.ApiDef op = 1; + */ + public java.util.List getOpList() { + if (opBuilder_ == null) { + return java.util.Collections.unmodifiableList(op_); + } else { + return opBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.ApiDef op = 1; + */ + public int getOpCount() { + if (opBuilder_ == null) { + return op_.size(); + } else { + return opBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.ApiDef op = 1; + */ + public org.tensorflow.proto.ApiDef getOp(int index) { + if (opBuilder_ == null) { + return op_.get(index); + } else { + return opBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.ApiDef op = 1; + */ + public Builder setOp( + int index, org.tensorflow.proto.ApiDef value) { + if (opBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOpIsMutable(); + op_.set(index, value); + onChanged(); + } else { + opBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.ApiDef op = 1; + */ + public Builder setOp( + int index, org.tensorflow.proto.ApiDef.Builder builderForValue) { + if (opBuilder_ == null) { + ensureOpIsMutable(); + op_.set(index, builderForValue.build()); + onChanged(); + } else { + opBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.ApiDef op = 1; + */ + public Builder addOp(org.tensorflow.proto.ApiDef value) { + if (opBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOpIsMutable(); + op_.add(value); + onChanged(); + } else { + opBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.ApiDef op = 1; + */ + public Builder addOp( + int index, org.tensorflow.proto.ApiDef value) { + if (opBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOpIsMutable(); + op_.add(index, value); + onChanged(); + } else { + opBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.ApiDef op = 1; + */ + public Builder addOp( + org.tensorflow.proto.ApiDef.Builder builderForValue) { + if (opBuilder_ == null) { + ensureOpIsMutable(); + op_.add(builderForValue.build()); + onChanged(); + } else { + opBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.ApiDef op = 1; + */ + public Builder addOp( + int index, org.tensorflow.proto.ApiDef.Builder builderForValue) { + if (opBuilder_ == null) { + ensureOpIsMutable(); + op_.add(index, builderForValue.build()); + onChanged(); + } else { + opBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.ApiDef op = 1; + */ + public Builder addAllOp( + java.lang.Iterable values) { + if (opBuilder_ == null) { + ensureOpIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, op_); + onChanged(); + } else { + opBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.ApiDef op = 1; + */ + public Builder clearOp() { + if (opBuilder_ == null) { + op_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + opBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.ApiDef op = 1; + */ + public Builder removeOp(int index) { + if (opBuilder_ == null) { + ensureOpIsMutable(); + op_.remove(index); + onChanged(); + } else { + opBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.ApiDef op = 1; + */ + public org.tensorflow.proto.ApiDef.Builder getOpBuilder( + int index) { + return getOpFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.ApiDef op = 1; + */ + public org.tensorflow.proto.ApiDefOrBuilder getOpOrBuilder( + int index) { + if (opBuilder_ == null) { + return op_.get(index); } else { + return opBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.ApiDef op = 1; + */ + public java.util.List + getOpOrBuilderList() { + if (opBuilder_ != null) { + return opBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(op_); + } + } + /** + * repeated .tensorflow.ApiDef op = 1; + */ + public org.tensorflow.proto.ApiDef.Builder addOpBuilder() { + return getOpFieldBuilder().addBuilder( + org.tensorflow.proto.ApiDef.getDefaultInstance()); + } + /** + * repeated .tensorflow.ApiDef op = 1; + */ + public org.tensorflow.proto.ApiDef.Builder addOpBuilder( + int index) { + return getOpFieldBuilder().addBuilder( + index, org.tensorflow.proto.ApiDef.getDefaultInstance()); + } + /** + * repeated .tensorflow.ApiDef op = 1; + */ + public java.util.List + getOpBuilderList() { + return getOpFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ApiDef, org.tensorflow.proto.ApiDef.Builder, org.tensorflow.proto.ApiDefOrBuilder> + getOpFieldBuilder() { + if (opBuilder_ == null) { + opBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ApiDef, org.tensorflow.proto.ApiDef.Builder, org.tensorflow.proto.ApiDefOrBuilder>( + op_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + op_ = null; + } + return opBuilder_; + } + @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:tensorflow.ApiDefs) + } + + // @@protoc_insertion_point(class_scope:tensorflow.ApiDefs) + private static final org.tensorflow.proto.ApiDefs DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.ApiDefs(); + } + + public static org.tensorflow.proto.ApiDefs getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApiDefs 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 org.tensorflow.proto.ApiDefs getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ApiDefsOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ApiDefsOrBuilder.java new file mode 100644 index 00000000000..32127066fdd --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ApiDefsOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/api_def.proto + +package org.tensorflow.proto; + +public interface ApiDefsOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.ApiDefs) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .tensorflow.ApiDef op = 1; + */ + java.util.List + getOpList(); + /** + * repeated .tensorflow.ApiDef op = 1; + */ + org.tensorflow.proto.ApiDef getOp(int index); + /** + * repeated .tensorflow.ApiDef op = 1; + */ + int getOpCount(); + /** + * repeated .tensorflow.ApiDef op = 1; + */ + java.util.List + getOpOrBuilderList(); + /** + * repeated .tensorflow.ApiDef op = 1; + */ + org.tensorflow.proto.ApiDefOrBuilder getOpOrBuilder( + int index); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AssetFileDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AssetFileDef.java new file mode 100644 index 00000000000..a2f10f0252a --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AssetFileDef.java @@ -0,0 +1,820 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/meta_graph.proto + +package org.tensorflow.proto; + +/** + *
+ * An asset file def for a single file or a set of sharded files with the same
+ * name.
+ * 
+ * + * Protobuf type {@code tensorflow.AssetFileDef} + */ +public final class AssetFileDef extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.AssetFileDef) + AssetFileDefOrBuilder { +private static final long serialVersionUID = 0L; + // Use AssetFileDef.newBuilder() to construct. + private AssetFileDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AssetFileDef() { + filename_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AssetFileDef(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_AssetFileDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_AssetFileDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.AssetFileDef.class, org.tensorflow.proto.AssetFileDef.Builder.class); + } + + public static final int TENSOR_INFO_FIELD_NUMBER = 1; + private org.tensorflow.proto.TensorInfo tensorInfo_; + /** + *
+   * The tensor to bind the asset filename to.
+   * 
+ * + * .tensorflow.TensorInfo tensor_info = 1; + * @return Whether the tensorInfo field is set. + */ + @java.lang.Override + public boolean hasTensorInfo() { + return tensorInfo_ != null; + } + /** + *
+   * The tensor to bind the asset filename to.
+   * 
+ * + * .tensorflow.TensorInfo tensor_info = 1; + * @return The tensorInfo. + */ + @java.lang.Override + public org.tensorflow.proto.TensorInfo getTensorInfo() { + return tensorInfo_ == null ? org.tensorflow.proto.TensorInfo.getDefaultInstance() : tensorInfo_; + } + /** + *
+   * The tensor to bind the asset filename to.
+   * 
+ * + * .tensorflow.TensorInfo tensor_info = 1; + */ + @java.lang.Override + public org.tensorflow.proto.TensorInfoOrBuilder getTensorInfoOrBuilder() { + return getTensorInfo(); + } + + public static final int FILENAME_FIELD_NUMBER = 2; + private volatile java.lang.Object filename_; + /** + *
+   * The filename within an assets directory. Note: does not include the path
+   * prefix, i.e. directories. For an asset at /tmp/path/vocab.txt, the filename
+   * would be "vocab.txt".
+   * 
+ * + * string filename = 2; + * @return The filename. + */ + @java.lang.Override + public java.lang.String getFilename() { + java.lang.Object ref = filename_; + 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(); + filename_ = s; + return s; + } + } + /** + *
+   * The filename within an assets directory. Note: does not include the path
+   * prefix, i.e. directories. For an asset at /tmp/path/vocab.txt, the filename
+   * would be "vocab.txt".
+   * 
+ * + * string filename = 2; + * @return The bytes for filename. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFilenameBytes() { + java.lang.Object ref = filename_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filename_ = 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 (tensorInfo_ != null) { + output.writeMessage(1, getTensorInfo()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filename_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filename_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (tensorInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTensorInfo()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filename_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filename_); + } + 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 org.tensorflow.proto.AssetFileDef)) { + return super.equals(obj); + } + org.tensorflow.proto.AssetFileDef other = (org.tensorflow.proto.AssetFileDef) obj; + + if (hasTensorInfo() != other.hasTensorInfo()) return false; + if (hasTensorInfo()) { + if (!getTensorInfo() + .equals(other.getTensorInfo())) return false; + } + if (!getFilename() + .equals(other.getFilename())) 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 (hasTensorInfo()) { + hash = (37 * hash) + TENSOR_INFO_FIELD_NUMBER; + hash = (53 * hash) + getTensorInfo().hashCode(); + } + hash = (37 * hash) + FILENAME_FIELD_NUMBER; + hash = (53 * hash) + getFilename().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.AssetFileDef parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.AssetFileDef parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.AssetFileDef parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.AssetFileDef parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.AssetFileDef parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.AssetFileDef parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.AssetFileDef parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.AssetFileDef 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 org.tensorflow.proto.AssetFileDef parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.AssetFileDef 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 org.tensorflow.proto.AssetFileDef parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.AssetFileDef 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(org.tensorflow.proto.AssetFileDef 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; + } + /** + *
+   * An asset file def for a single file or a set of sharded files with the same
+   * name.
+   * 
+ * + * Protobuf type {@code tensorflow.AssetFileDef} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.AssetFileDef) + org.tensorflow.proto.AssetFileDefOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_AssetFileDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_AssetFileDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.AssetFileDef.class, org.tensorflow.proto.AssetFileDef.Builder.class); + } + + // Construct using org.tensorflow.proto.AssetFileDef.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (tensorInfoBuilder_ == null) { + tensorInfo_ = null; + } else { + tensorInfo_ = null; + tensorInfoBuilder_ = null; + } + filename_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_AssetFileDef_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.AssetFileDef getDefaultInstanceForType() { + return org.tensorflow.proto.AssetFileDef.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.AssetFileDef build() { + org.tensorflow.proto.AssetFileDef result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.AssetFileDef buildPartial() { + org.tensorflow.proto.AssetFileDef result = new org.tensorflow.proto.AssetFileDef(this); + if (tensorInfoBuilder_ == null) { + result.tensorInfo_ = tensorInfo_; + } else { + result.tensorInfo_ = tensorInfoBuilder_.build(); + } + result.filename_ = filename_; + 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 org.tensorflow.proto.AssetFileDef) { + return mergeFrom((org.tensorflow.proto.AssetFileDef)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.AssetFileDef other) { + if (other == org.tensorflow.proto.AssetFileDef.getDefaultInstance()) return this; + if (other.hasTensorInfo()) { + mergeTensorInfo(other.getTensorInfo()); + } + if (!other.getFilename().isEmpty()) { + filename_ = other.filename_; + 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: { + input.readMessage( + getTensorInfoFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + filename_ = input.readStringRequireUtf8(); + + 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 org.tensorflow.proto.TensorInfo tensorInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorInfo, org.tensorflow.proto.TensorInfo.Builder, org.tensorflow.proto.TensorInfoOrBuilder> tensorInfoBuilder_; + /** + *
+     * The tensor to bind the asset filename to.
+     * 
+ * + * .tensorflow.TensorInfo tensor_info = 1; + * @return Whether the tensorInfo field is set. + */ + public boolean hasTensorInfo() { + return tensorInfoBuilder_ != null || tensorInfo_ != null; + } + /** + *
+     * The tensor to bind the asset filename to.
+     * 
+ * + * .tensorflow.TensorInfo tensor_info = 1; + * @return The tensorInfo. + */ + public org.tensorflow.proto.TensorInfo getTensorInfo() { + if (tensorInfoBuilder_ == null) { + return tensorInfo_ == null ? org.tensorflow.proto.TensorInfo.getDefaultInstance() : tensorInfo_; + } else { + return tensorInfoBuilder_.getMessage(); + } + } + /** + *
+     * The tensor to bind the asset filename to.
+     * 
+ * + * .tensorflow.TensorInfo tensor_info = 1; + */ + public Builder setTensorInfo(org.tensorflow.proto.TensorInfo value) { + if (tensorInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tensorInfo_ = value; + onChanged(); + } else { + tensorInfoBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The tensor to bind the asset filename to.
+     * 
+ * + * .tensorflow.TensorInfo tensor_info = 1; + */ + public Builder setTensorInfo( + org.tensorflow.proto.TensorInfo.Builder builderForValue) { + if (tensorInfoBuilder_ == null) { + tensorInfo_ = builderForValue.build(); + onChanged(); + } else { + tensorInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The tensor to bind the asset filename to.
+     * 
+ * + * .tensorflow.TensorInfo tensor_info = 1; + */ + public Builder mergeTensorInfo(org.tensorflow.proto.TensorInfo value) { + if (tensorInfoBuilder_ == null) { + if (tensorInfo_ != null) { + tensorInfo_ = + org.tensorflow.proto.TensorInfo.newBuilder(tensorInfo_).mergeFrom(value).buildPartial(); + } else { + tensorInfo_ = value; + } + onChanged(); + } else { + tensorInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The tensor to bind the asset filename to.
+     * 
+ * + * .tensorflow.TensorInfo tensor_info = 1; + */ + public Builder clearTensorInfo() { + if (tensorInfoBuilder_ == null) { + tensorInfo_ = null; + onChanged(); + } else { + tensorInfo_ = null; + tensorInfoBuilder_ = null; + } + + return this; + } + /** + *
+     * The tensor to bind the asset filename to.
+     * 
+ * + * .tensorflow.TensorInfo tensor_info = 1; + */ + public org.tensorflow.proto.TensorInfo.Builder getTensorInfoBuilder() { + + onChanged(); + return getTensorInfoFieldBuilder().getBuilder(); + } + /** + *
+     * The tensor to bind the asset filename to.
+     * 
+ * + * .tensorflow.TensorInfo tensor_info = 1; + */ + public org.tensorflow.proto.TensorInfoOrBuilder getTensorInfoOrBuilder() { + if (tensorInfoBuilder_ != null) { + return tensorInfoBuilder_.getMessageOrBuilder(); + } else { + return tensorInfo_ == null ? + org.tensorflow.proto.TensorInfo.getDefaultInstance() : tensorInfo_; + } + } + /** + *
+     * The tensor to bind the asset filename to.
+     * 
+ * + * .tensorflow.TensorInfo tensor_info = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorInfo, org.tensorflow.proto.TensorInfo.Builder, org.tensorflow.proto.TensorInfoOrBuilder> + getTensorInfoFieldBuilder() { + if (tensorInfoBuilder_ == null) { + tensorInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorInfo, org.tensorflow.proto.TensorInfo.Builder, org.tensorflow.proto.TensorInfoOrBuilder>( + getTensorInfo(), + getParentForChildren(), + isClean()); + tensorInfo_ = null; + } + return tensorInfoBuilder_; + } + + private java.lang.Object filename_ = ""; + /** + *
+     * The filename within an assets directory. Note: does not include the path
+     * prefix, i.e. directories. For an asset at /tmp/path/vocab.txt, the filename
+     * would be "vocab.txt".
+     * 
+ * + * string filename = 2; + * @return The filename. + */ + public java.lang.String getFilename() { + java.lang.Object ref = filename_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filename_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The filename within an assets directory. Note: does not include the path
+     * prefix, i.e. directories. For an asset at /tmp/path/vocab.txt, the filename
+     * would be "vocab.txt".
+     * 
+ * + * string filename = 2; + * @return The bytes for filename. + */ + public com.google.protobuf.ByteString + getFilenameBytes() { + java.lang.Object ref = filename_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filename_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The filename within an assets directory. Note: does not include the path
+     * prefix, i.e. directories. For an asset at /tmp/path/vocab.txt, the filename
+     * would be "vocab.txt".
+     * 
+ * + * string filename = 2; + * @param value The filename to set. + * @return This builder for chaining. + */ + public Builder setFilename( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filename_ = value; + onChanged(); + return this; + } + /** + *
+     * The filename within an assets directory. Note: does not include the path
+     * prefix, i.e. directories. For an asset at /tmp/path/vocab.txt, the filename
+     * would be "vocab.txt".
+     * 
+ * + * string filename = 2; + * @return This builder for chaining. + */ + public Builder clearFilename() { + + filename_ = getDefaultInstance().getFilename(); + onChanged(); + return this; + } + /** + *
+     * The filename within an assets directory. Note: does not include the path
+     * prefix, i.e. directories. For an asset at /tmp/path/vocab.txt, the filename
+     * would be "vocab.txt".
+     * 
+ * + * string filename = 2; + * @param value The bytes for filename to set. + * @return This builder for chaining. + */ + public Builder setFilenameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filename_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.AssetFileDef) + } + + // @@protoc_insertion_point(class_scope:tensorflow.AssetFileDef) + private static final org.tensorflow.proto.AssetFileDef DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.AssetFileDef(); + } + + public static org.tensorflow.proto.AssetFileDef getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssetFileDef 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 org.tensorflow.proto.AssetFileDef getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AssetFileDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AssetFileDefOrBuilder.java similarity index 82% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AssetFileDefOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AssetFileDefOrBuilder.java index dd8ec09799f..48bf1b57107 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AssetFileDefOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AssetFileDefOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/meta_graph.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface AssetFileDefOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.AssetFileDef) @@ -13,6 +13,7 @@ public interface AssetFileDefOrBuilder extends *
* * .tensorflow.TensorInfo tensor_info = 1; + * @return Whether the tensorInfo field is set. */ boolean hasTensorInfo(); /** @@ -21,8 +22,9 @@ public interface AssetFileDefOrBuilder extends *
* * .tensorflow.TensorInfo tensor_info = 1; + * @return The tensorInfo. */ - org.tensorflow.proto.framework.TensorInfo getTensorInfo(); + org.tensorflow.proto.TensorInfo getTensorInfo(); /** *
    * The tensor to bind the asset filename to.
@@ -30,7 +32,7 @@ public interface AssetFileDefOrBuilder extends
    *
    * .tensorflow.TensorInfo tensor_info = 1;
    */
-  org.tensorflow.proto.framework.TensorInfoOrBuilder getTensorInfoOrBuilder();
+  org.tensorflow.proto.TensorInfoOrBuilder getTensorInfoOrBuilder();
 
   /**
    * 
@@ -40,6 +42,7 @@ public interface AssetFileDefOrBuilder extends
    * 
* * string filename = 2; + * @return The filename. */ java.lang.String getFilename(); /** @@ -50,6 +53,7 @@ public interface AssetFileDefOrBuilder extends *
* * string filename = 2; + * @return The bytes for filename. */ com.google.protobuf.ByteString getFilenameBytes(); diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AttrValue.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AttrValue.java new file mode 100644 index 00000000000..db04fce38a7 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AttrValue.java @@ -0,0 +1,5636 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/attr_value.proto + +package org.tensorflow.proto; + +/** + *
+ * Protocol buffer representing the value for an attr used to configure an Op.
+ * Comment indicates the corresponding attr type.  Only the field matching the
+ * attr type may be filled.
+ * 
+ * + * Protobuf type {@code tensorflow.AttrValue} + */ +public final class AttrValue extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.AttrValue) + AttrValueOrBuilder { +private static final long serialVersionUID = 0L; + // Use AttrValue.newBuilder() to construct. + private AttrValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AttrValue() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AttrValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.AttrValueProtos.internal_static_tensorflow_AttrValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.AttrValueProtos.internal_static_tensorflow_AttrValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.AttrValue.class, org.tensorflow.proto.AttrValue.Builder.class); + } + + public interface ListValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.AttrValue.ListValue) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * "list(string)"
+     * 
+ * + * repeated bytes s = 2; + * @return A list containing the s. + */ + java.util.List getSList(); + /** + *
+     * "list(string)"
+     * 
+ * + * repeated bytes s = 2; + * @return The count of s. + */ + int getSCount(); + /** + *
+     * "list(string)"
+     * 
+ * + * repeated bytes s = 2; + * @param index The index of the element to return. + * @return The s at the given index. + */ + com.google.protobuf.ByteString getS(int index); + + /** + *
+     * "list(int)"
+     * 
+ * + * repeated int64 i = 3 [packed = true]; + * @return A list containing the i. + */ + java.util.List getIList(); + /** + *
+     * "list(int)"
+     * 
+ * + * repeated int64 i = 3 [packed = true]; + * @return The count of i. + */ + int getICount(); + /** + *
+     * "list(int)"
+     * 
+ * + * repeated int64 i = 3 [packed = true]; + * @param index The index of the element to return. + * @return The i at the given index. + */ + long getI(int index); + + /** + *
+     * "list(float)"
+     * 
+ * + * repeated float f = 4 [packed = true]; + * @return A list containing the f. + */ + java.util.List getFList(); + /** + *
+     * "list(float)"
+     * 
+ * + * repeated float f = 4 [packed = true]; + * @return The count of f. + */ + int getFCount(); + /** + *
+     * "list(float)"
+     * 
+ * + * repeated float f = 4 [packed = true]; + * @param index The index of the element to return. + * @return The f at the given index. + */ + float getF(int index); + + /** + *
+     * "list(bool)"
+     * 
+ * + * repeated bool b = 5 [packed = true]; + * @return A list containing the b. + */ + java.util.List getBList(); + /** + *
+     * "list(bool)"
+     * 
+ * + * repeated bool b = 5 [packed = true]; + * @return The count of b. + */ + int getBCount(); + /** + *
+     * "list(bool)"
+     * 
+ * + * repeated bool b = 5 [packed = true]; + * @param index The index of the element to return. + * @return The b at the given index. + */ + boolean getB(int index); + + /** + *
+     * "list(type)"
+     * 
+ * + * repeated .tensorflow.DataType type = 6 [packed = true]; + * @return A list containing the type. + */ + java.util.List getTypeList(); + /** + *
+     * "list(type)"
+     * 
+ * + * repeated .tensorflow.DataType type = 6 [packed = true]; + * @return The count of type. + */ + int getTypeCount(); + /** + *
+     * "list(type)"
+     * 
+ * + * repeated .tensorflow.DataType type = 6 [packed = true]; + * @param index The index of the element to return. + * @return The type at the given index. + */ + org.tensorflow.proto.DataType getType(int index); + /** + *
+     * "list(type)"
+     * 
+ * + * repeated .tensorflow.DataType type = 6 [packed = true]; + * @return A list containing the enum numeric values on the wire for type. + */ + java.util.List + getTypeValueList(); + /** + *
+     * "list(type)"
+     * 
+ * + * repeated .tensorflow.DataType type = 6 [packed = true]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of type at the given index. + */ + int getTypeValue(int index); + + /** + *
+     * "list(shape)"
+     * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + java.util.List + getShapeList(); + /** + *
+     * "list(shape)"
+     * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + org.tensorflow.proto.TensorShapeProto getShape(int index); + /** + *
+     * "list(shape)"
+     * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + int getShapeCount(); + /** + *
+     * "list(shape)"
+     * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + java.util.List + getShapeOrBuilderList(); + /** + *
+     * "list(shape)"
+     * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder( + int index); + + /** + *
+     * "list(tensor)"
+     * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + java.util.List + getTensorList(); + /** + *
+     * "list(tensor)"
+     * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + org.tensorflow.proto.TensorProto getTensor(int index); + /** + *
+     * "list(tensor)"
+     * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + int getTensorCount(); + /** + *
+     * "list(tensor)"
+     * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + java.util.List + getTensorOrBuilderList(); + /** + *
+     * "list(tensor)"
+     * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + org.tensorflow.proto.TensorProtoOrBuilder getTensorOrBuilder( + int index); + + /** + *
+     * "list(attr)"
+     * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + java.util.List + getFuncList(); + /** + *
+     * "list(attr)"
+     * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + org.tensorflow.proto.NameAttrList getFunc(int index); + /** + *
+     * "list(attr)"
+     * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + int getFuncCount(); + /** + *
+     * "list(attr)"
+     * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + java.util.List + getFuncOrBuilderList(); + /** + *
+     * "list(attr)"
+     * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + org.tensorflow.proto.NameAttrListOrBuilder getFuncOrBuilder( + int index); + } + /** + *
+   * LINT.IfChange
+   * 
+ * + * Protobuf type {@code tensorflow.AttrValue.ListValue} + */ + public static final class ListValue extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.AttrValue.ListValue) + ListValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListValue.newBuilder() to construct. + private ListValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListValue() { + s_ = java.util.Collections.emptyList(); + i_ = emptyLongList(); + f_ = emptyFloatList(); + b_ = emptyBooleanList(); + type_ = java.util.Collections.emptyList(); + shape_ = java.util.Collections.emptyList(); + tensor_ = java.util.Collections.emptyList(); + func_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.AttrValueProtos.internal_static_tensorflow_AttrValue_ListValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.AttrValueProtos.internal_static_tensorflow_AttrValue_ListValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.AttrValue.ListValue.class, org.tensorflow.proto.AttrValue.ListValue.Builder.class); + } + + public static final int S_FIELD_NUMBER = 2; + private java.util.List s_; + /** + *
+     * "list(string)"
+     * 
+ * + * repeated bytes s = 2; + * @return A list containing the s. + */ + @java.lang.Override + public java.util.List + getSList() { + return s_; + } + /** + *
+     * "list(string)"
+     * 
+ * + * repeated bytes s = 2; + * @return The count of s. + */ + public int getSCount() { + return s_.size(); + } + /** + *
+     * "list(string)"
+     * 
+ * + * repeated bytes s = 2; + * @param index The index of the element to return. + * @return The s at the given index. + */ + public com.google.protobuf.ByteString getS(int index) { + return s_.get(index); + } + + public static final int I_FIELD_NUMBER = 3; + private com.google.protobuf.Internal.LongList i_; + /** + *
+     * "list(int)"
+     * 
+ * + * repeated int64 i = 3 [packed = true]; + * @return A list containing the i. + */ + @java.lang.Override + public java.util.List + getIList() { + return i_; + } + /** + *
+     * "list(int)"
+     * 
+ * + * repeated int64 i = 3 [packed = true]; + * @return The count of i. + */ + public int getICount() { + return i_.size(); + } + /** + *
+     * "list(int)"
+     * 
+ * + * repeated int64 i = 3 [packed = true]; + * @param index The index of the element to return. + * @return The i at the given index. + */ + public long getI(int index) { + return i_.getLong(index); + } + private int iMemoizedSerializedSize = -1; + + public static final int F_FIELD_NUMBER = 4; + private com.google.protobuf.Internal.FloatList f_; + /** + *
+     * "list(float)"
+     * 
+ * + * repeated float f = 4 [packed = true]; + * @return A list containing the f. + */ + @java.lang.Override + public java.util.List + getFList() { + return f_; + } + /** + *
+     * "list(float)"
+     * 
+ * + * repeated float f = 4 [packed = true]; + * @return The count of f. + */ + public int getFCount() { + return f_.size(); + } + /** + *
+     * "list(float)"
+     * 
+ * + * repeated float f = 4 [packed = true]; + * @param index The index of the element to return. + * @return The f at the given index. + */ + public float getF(int index) { + return f_.getFloat(index); + } + private int fMemoizedSerializedSize = -1; + + public static final int B_FIELD_NUMBER = 5; + private com.google.protobuf.Internal.BooleanList b_; + /** + *
+     * "list(bool)"
+     * 
+ * + * repeated bool b = 5 [packed = true]; + * @return A list containing the b. + */ + @java.lang.Override + public java.util.List + getBList() { + return b_; + } + /** + *
+     * "list(bool)"
+     * 
+ * + * repeated bool b = 5 [packed = true]; + * @return The count of b. + */ + public int getBCount() { + return b_.size(); + } + /** + *
+     * "list(bool)"
+     * 
+ * + * repeated bool b = 5 [packed = true]; + * @param index The index of the element to return. + * @return The b at the given index. + */ + public boolean getB(int index) { + return b_.getBoolean(index); + } + private int bMemoizedSerializedSize = -1; + + public static final int TYPE_FIELD_NUMBER = 6; + private java.util.List type_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, org.tensorflow.proto.DataType> type_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, org.tensorflow.proto.DataType>() { + public org.tensorflow.proto.DataType convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(from); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + }; + /** + *
+     * "list(type)"
+     * 
+ * + * repeated .tensorflow.DataType type = 6 [packed = true]; + * @return A list containing the type. + */ + @java.lang.Override + public java.util.List getTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, org.tensorflow.proto.DataType>(type_, type_converter_); + } + /** + *
+     * "list(type)"
+     * 
+ * + * repeated .tensorflow.DataType type = 6 [packed = true]; + * @return The count of type. + */ + @java.lang.Override + public int getTypeCount() { + return type_.size(); + } + /** + *
+     * "list(type)"
+     * 
+ * + * repeated .tensorflow.DataType type = 6 [packed = true]; + * @param index The index of the element to return. + * @return The type at the given index. + */ + @java.lang.Override + public org.tensorflow.proto.DataType getType(int index) { + return type_converter_.convert(type_.get(index)); + } + /** + *
+     * "list(type)"
+     * 
+ * + * repeated .tensorflow.DataType type = 6 [packed = true]; + * @return A list containing the enum numeric values on the wire for type. + */ + @java.lang.Override + public java.util.List + getTypeValueList() { + return type_; + } + /** + *
+     * "list(type)"
+     * 
+ * + * repeated .tensorflow.DataType type = 6 [packed = true]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of type at the given index. + */ + @java.lang.Override + public int getTypeValue(int index) { + return type_.get(index); + } + private int typeMemoizedSerializedSize; + + public static final int SHAPE_FIELD_NUMBER = 7; + private java.util.List shape_; + /** + *
+     * "list(shape)"
+     * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + @java.lang.Override + public java.util.List getShapeList() { + return shape_; + } + /** + *
+     * "list(shape)"
+     * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + @java.lang.Override + public java.util.List + getShapeOrBuilderList() { + return shape_; + } + /** + *
+     * "list(shape)"
+     * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + @java.lang.Override + public int getShapeCount() { + return shape_.size(); + } + /** + *
+     * "list(shape)"
+     * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto getShape(int index) { + return shape_.get(index); + } + /** + *
+     * "list(shape)"
+     * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder( + int index) { + return shape_.get(index); + } + + public static final int TENSOR_FIELD_NUMBER = 8; + private java.util.List tensor_; + /** + *
+     * "list(tensor)"
+     * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + @java.lang.Override + public java.util.List getTensorList() { + return tensor_; + } + /** + *
+     * "list(tensor)"
+     * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + @java.lang.Override + public java.util.List + getTensorOrBuilderList() { + return tensor_; + } + /** + *
+     * "list(tensor)"
+     * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + @java.lang.Override + public int getTensorCount() { + return tensor_.size(); + } + /** + *
+     * "list(tensor)"
+     * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + @java.lang.Override + public org.tensorflow.proto.TensorProto getTensor(int index) { + return tensor_.get(index); + } + /** + *
+     * "list(tensor)"
+     * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + @java.lang.Override + public org.tensorflow.proto.TensorProtoOrBuilder getTensorOrBuilder( + int index) { + return tensor_.get(index); + } + + public static final int FUNC_FIELD_NUMBER = 9; + private java.util.List func_; + /** + *
+     * "list(attr)"
+     * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + @java.lang.Override + public java.util.List getFuncList() { + return func_; + } + /** + *
+     * "list(attr)"
+     * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + @java.lang.Override + public java.util.List + getFuncOrBuilderList() { + return func_; + } + /** + *
+     * "list(attr)"
+     * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + @java.lang.Override + public int getFuncCount() { + return func_.size(); + } + /** + *
+     * "list(attr)"
+     * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + @java.lang.Override + public org.tensorflow.proto.NameAttrList getFunc(int index) { + return func_.get(index); + } + /** + *
+     * "list(attr)"
+     * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + @java.lang.Override + public org.tensorflow.proto.NameAttrListOrBuilder getFuncOrBuilder( + int index) { + return func_.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 { + getSerializedSize(); + for (int i = 0; i < s_.size(); i++) { + output.writeBytes(2, s_.get(i)); + } + if (getIList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(iMemoizedSerializedSize); + } + for (int i = 0; i < i_.size(); i++) { + output.writeInt64NoTag(i_.getLong(i)); + } + if (getFList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(fMemoizedSerializedSize); + } + for (int i = 0; i < f_.size(); i++) { + output.writeFloatNoTag(f_.getFloat(i)); + } + if (getBList().size() > 0) { + output.writeUInt32NoTag(42); + output.writeUInt32NoTag(bMemoizedSerializedSize); + } + for (int i = 0; i < b_.size(); i++) { + output.writeBoolNoTag(b_.getBoolean(i)); + } + if (getTypeList().size() > 0) { + output.writeUInt32NoTag(50); + output.writeUInt32NoTag(typeMemoizedSerializedSize); + } + for (int i = 0; i < type_.size(); i++) { + output.writeEnumNoTag(type_.get(i)); + } + for (int i = 0; i < shape_.size(); i++) { + output.writeMessage(7, shape_.get(i)); + } + for (int i = 0; i < tensor_.size(); i++) { + output.writeMessage(8, tensor_.get(i)); + } + for (int i = 0; i < func_.size(); i++) { + output.writeMessage(9, func_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < s_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(s_.get(i)); + } + size += dataSize; + size += 1 * getSList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < i_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(i_.getLong(i)); + } + size += dataSize; + if (!getIList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + iMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 4 * getFList().size(); + size += dataSize; + if (!getFList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + fMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 1 * getBList().size(); + size += dataSize; + if (!getBList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + bMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < type_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(type_.get(i)); + } + size += dataSize; + if (!getTypeList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }typeMemoizedSerializedSize = dataSize; + } + for (int i = 0; i < shape_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, shape_.get(i)); + } + for (int i = 0; i < tensor_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, tensor_.get(i)); + } + for (int i = 0; i < func_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, func_.get(i)); + } + 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 org.tensorflow.proto.AttrValue.ListValue)) { + return super.equals(obj); + } + org.tensorflow.proto.AttrValue.ListValue other = (org.tensorflow.proto.AttrValue.ListValue) obj; + + if (!getSList() + .equals(other.getSList())) return false; + if (!getIList() + .equals(other.getIList())) return false; + if (!getFList() + .equals(other.getFList())) return false; + if (!getBList() + .equals(other.getBList())) return false; + if (!type_.equals(other.type_)) return false; + if (!getShapeList() + .equals(other.getShapeList())) return false; + if (!getTensorList() + .equals(other.getTensorList())) return false; + if (!getFuncList() + .equals(other.getFuncList())) 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 (getSCount() > 0) { + hash = (37 * hash) + S_FIELD_NUMBER; + hash = (53 * hash) + getSList().hashCode(); + } + if (getICount() > 0) { + hash = (37 * hash) + I_FIELD_NUMBER; + hash = (53 * hash) + getIList().hashCode(); + } + if (getFCount() > 0) { + hash = (37 * hash) + F_FIELD_NUMBER; + hash = (53 * hash) + getFList().hashCode(); + } + if (getBCount() > 0) { + hash = (37 * hash) + B_FIELD_NUMBER; + hash = (53 * hash) + getBList().hashCode(); + } + if (getTypeCount() > 0) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_.hashCode(); + } + if (getShapeCount() > 0) { + hash = (37 * hash) + SHAPE_FIELD_NUMBER; + hash = (53 * hash) + getShapeList().hashCode(); + } + if (getTensorCount() > 0) { + hash = (37 * hash) + TENSOR_FIELD_NUMBER; + hash = (53 * hash) + getTensorList().hashCode(); + } + if (getFuncCount() > 0) { + hash = (37 * hash) + FUNC_FIELD_NUMBER; + hash = (53 * hash) + getFuncList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.AttrValue.ListValue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.AttrValue.ListValue parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.AttrValue.ListValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.AttrValue.ListValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.AttrValue.ListValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.AttrValue.ListValue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.AttrValue.ListValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.AttrValue.ListValue 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 org.tensorflow.proto.AttrValue.ListValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.AttrValue.ListValue 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 org.tensorflow.proto.AttrValue.ListValue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.AttrValue.ListValue 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(org.tensorflow.proto.AttrValue.ListValue 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; + } + /** + *
+     * LINT.IfChange
+     * 
+ * + * Protobuf type {@code tensorflow.AttrValue.ListValue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.AttrValue.ListValue) + org.tensorflow.proto.AttrValue.ListValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.AttrValueProtos.internal_static_tensorflow_AttrValue_ListValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.AttrValueProtos.internal_static_tensorflow_AttrValue_ListValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.AttrValue.ListValue.class, org.tensorflow.proto.AttrValue.ListValue.Builder.class); + } + + // Construct using org.tensorflow.proto.AttrValue.ListValue.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + s_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + i_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000002); + f_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000004); + b_ = emptyBooleanList(); + bitField0_ = (bitField0_ & ~0x00000008); + type_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + if (shapeBuilder_ == null) { + shape_ = java.util.Collections.emptyList(); + } else { + shape_ = null; + shapeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (tensorBuilder_ == null) { + tensor_ = java.util.Collections.emptyList(); + } else { + tensor_ = null; + tensorBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + if (funcBuilder_ == null) { + func_ = java.util.Collections.emptyList(); + } else { + func_ = null; + funcBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.AttrValueProtos.internal_static_tensorflow_AttrValue_ListValue_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.AttrValue.ListValue getDefaultInstanceForType() { + return org.tensorflow.proto.AttrValue.ListValue.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.AttrValue.ListValue build() { + org.tensorflow.proto.AttrValue.ListValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.AttrValue.ListValue buildPartial() { + org.tensorflow.proto.AttrValue.ListValue result = new org.tensorflow.proto.AttrValue.ListValue(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + s_ = java.util.Collections.unmodifiableList(s_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.s_ = s_; + if (((bitField0_ & 0x00000002) != 0)) { + i_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.i_ = i_; + if (((bitField0_ & 0x00000004) != 0)) { + f_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.f_ = f_; + if (((bitField0_ & 0x00000008) != 0)) { + b_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.b_ = b_; + if (((bitField0_ & 0x00000010) != 0)) { + type_ = java.util.Collections.unmodifiableList(type_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.type_ = type_; + if (shapeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + shape_ = java.util.Collections.unmodifiableList(shape_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.shape_ = shape_; + } else { + result.shape_ = shapeBuilder_.build(); + } + if (tensorBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + tensor_ = java.util.Collections.unmodifiableList(tensor_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.tensor_ = tensor_; + } else { + result.tensor_ = tensorBuilder_.build(); + } + if (funcBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + func_ = java.util.Collections.unmodifiableList(func_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.func_ = func_; + } else { + result.func_ = funcBuilder_.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 org.tensorflow.proto.AttrValue.ListValue) { + return mergeFrom((org.tensorflow.proto.AttrValue.ListValue)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.AttrValue.ListValue other) { + if (other == org.tensorflow.proto.AttrValue.ListValue.getDefaultInstance()) return this; + if (!other.s_.isEmpty()) { + if (s_.isEmpty()) { + s_ = other.s_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSIsMutable(); + s_.addAll(other.s_); + } + onChanged(); + } + if (!other.i_.isEmpty()) { + if (i_.isEmpty()) { + i_ = other.i_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureIIsMutable(); + i_.addAll(other.i_); + } + onChanged(); + } + if (!other.f_.isEmpty()) { + if (f_.isEmpty()) { + f_ = other.f_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFIsMutable(); + f_.addAll(other.f_); + } + onChanged(); + } + if (!other.b_.isEmpty()) { + if (b_.isEmpty()) { + b_ = other.b_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureBIsMutable(); + b_.addAll(other.b_); + } + onChanged(); + } + if (!other.type_.isEmpty()) { + if (type_.isEmpty()) { + type_ = other.type_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureTypeIsMutable(); + type_.addAll(other.type_); + } + onChanged(); + } + if (shapeBuilder_ == null) { + if (!other.shape_.isEmpty()) { + if (shape_.isEmpty()) { + shape_ = other.shape_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureShapeIsMutable(); + shape_.addAll(other.shape_); + } + onChanged(); + } + } else { + if (!other.shape_.isEmpty()) { + if (shapeBuilder_.isEmpty()) { + shapeBuilder_.dispose(); + shapeBuilder_ = null; + shape_ = other.shape_; + bitField0_ = (bitField0_ & ~0x00000020); + shapeBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getShapeFieldBuilder() : null; + } else { + shapeBuilder_.addAllMessages(other.shape_); + } + } + } + if (tensorBuilder_ == null) { + if (!other.tensor_.isEmpty()) { + if (tensor_.isEmpty()) { + tensor_ = other.tensor_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureTensorIsMutable(); + tensor_.addAll(other.tensor_); + } + onChanged(); + } + } else { + if (!other.tensor_.isEmpty()) { + if (tensorBuilder_.isEmpty()) { + tensorBuilder_.dispose(); + tensorBuilder_ = null; + tensor_ = other.tensor_; + bitField0_ = (bitField0_ & ~0x00000040); + tensorBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTensorFieldBuilder() : null; + } else { + tensorBuilder_.addAllMessages(other.tensor_); + } + } + } + if (funcBuilder_ == null) { + if (!other.func_.isEmpty()) { + if (func_.isEmpty()) { + func_ = other.func_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureFuncIsMutable(); + func_.addAll(other.func_); + } + onChanged(); + } + } else { + if (!other.func_.isEmpty()) { + if (funcBuilder_.isEmpty()) { + funcBuilder_.dispose(); + funcBuilder_ = null; + func_ = other.func_; + bitField0_ = (bitField0_ & ~0x00000080); + funcBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFuncFieldBuilder() : null; + } else { + funcBuilder_.addAllMessages(other.func_); + } + } + } + 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 18: { + com.google.protobuf.ByteString v = input.readBytes(); + ensureSIsMutable(); + s_.add(v); + break; + } // case 18 + case 24: { + long v = input.readInt64(); + ensureIIsMutable(); + i_.addLong(v); + break; + } // case 24 + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureIIsMutable(); + while (input.getBytesUntilLimit() > 0) { + i_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 26 + case 37: { + float v = input.readFloat(); + ensureFIsMutable(); + f_.addFloat(v); + break; + } // case 37 + case 34: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureFIsMutable(); + while (input.getBytesUntilLimit() > 0) { + f_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } // case 34 + case 40: { + boolean v = input.readBool(); + ensureBIsMutable(); + b_.addBoolean(v); + break; + } // case 40 + case 42: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureBIsMutable(); + while (input.getBytesUntilLimit() > 0) { + b_.addBoolean(input.readBool()); + } + input.popLimit(limit); + break; + } // case 42 + case 48: { + int tmpRaw = input.readEnum(); + ensureTypeIsMutable(); + type_.add(tmpRaw); + break; + } // case 48 + case 50: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureTypeIsMutable(); + type_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 50 + case 58: { + org.tensorflow.proto.TensorShapeProto m = + input.readMessage( + org.tensorflow.proto.TensorShapeProto.parser(), + extensionRegistry); + if (shapeBuilder_ == null) { + ensureShapeIsMutable(); + shape_.add(m); + } else { + shapeBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: { + org.tensorflow.proto.TensorProto m = + input.readMessage( + org.tensorflow.proto.TensorProto.parser(), + extensionRegistry); + if (tensorBuilder_ == null) { + ensureTensorIsMutable(); + tensor_.add(m); + } else { + tensorBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: { + org.tensorflow.proto.NameAttrList m = + input.readMessage( + org.tensorflow.proto.NameAttrList.parser(), + extensionRegistry); + if (funcBuilder_ == null) { + ensureFuncIsMutable(); + func_.add(m); + } else { + funcBuilder_.addMessage(m); + } + 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 java.util.List s_ = java.util.Collections.emptyList(); + private void ensureSIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + s_ = new java.util.ArrayList(s_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * "list(string)"
+       * 
+ * + * repeated bytes s = 2; + * @return A list containing the s. + */ + public java.util.List + getSList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(s_) : s_; + } + /** + *
+       * "list(string)"
+       * 
+ * + * repeated bytes s = 2; + * @return The count of s. + */ + public int getSCount() { + return s_.size(); + } + /** + *
+       * "list(string)"
+       * 
+ * + * repeated bytes s = 2; + * @param index The index of the element to return. + * @return The s at the given index. + */ + public com.google.protobuf.ByteString getS(int index) { + return s_.get(index); + } + /** + *
+       * "list(string)"
+       * 
+ * + * repeated bytes s = 2; + * @param index The index to set the value at. + * @param value The s to set. + * @return This builder for chaining. + */ + public Builder setS( + int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSIsMutable(); + s_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * "list(string)"
+       * 
+ * + * repeated bytes s = 2; + * @param value The s to add. + * @return This builder for chaining. + */ + public Builder addS(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSIsMutable(); + s_.add(value); + onChanged(); + return this; + } + /** + *
+       * "list(string)"
+       * 
+ * + * repeated bytes s = 2; + * @param values The s to add. + * @return This builder for chaining. + */ + public Builder addAllS( + java.lang.Iterable values) { + ensureSIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, s_); + onChanged(); + return this; + } + /** + *
+       * "list(string)"
+       * 
+ * + * repeated bytes s = 2; + * @return This builder for chaining. + */ + public Builder clearS() { + s_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.LongList i_ = emptyLongList(); + private void ensureIIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + i_ = mutableCopy(i_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * "list(int)"
+       * 
+ * + * repeated int64 i = 3 [packed = true]; + * @return A list containing the i. + */ + public java.util.List + getIList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(i_) : i_; + } + /** + *
+       * "list(int)"
+       * 
+ * + * repeated int64 i = 3 [packed = true]; + * @return The count of i. + */ + public int getICount() { + return i_.size(); + } + /** + *
+       * "list(int)"
+       * 
+ * + * repeated int64 i = 3 [packed = true]; + * @param index The index of the element to return. + * @return The i at the given index. + */ + public long getI(int index) { + return i_.getLong(index); + } + /** + *
+       * "list(int)"
+       * 
+ * + * repeated int64 i = 3 [packed = true]; + * @param index The index to set the value at. + * @param value The i to set. + * @return This builder for chaining. + */ + public Builder setI( + int index, long value) { + ensureIIsMutable(); + i_.setLong(index, value); + onChanged(); + return this; + } + /** + *
+       * "list(int)"
+       * 
+ * + * repeated int64 i = 3 [packed = true]; + * @param value The i to add. + * @return This builder for chaining. + */ + public Builder addI(long value) { + ensureIIsMutable(); + i_.addLong(value); + onChanged(); + return this; + } + /** + *
+       * "list(int)"
+       * 
+ * + * repeated int64 i = 3 [packed = true]; + * @param values The i to add. + * @return This builder for chaining. + */ + public Builder addAllI( + java.lang.Iterable values) { + ensureIIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, i_); + onChanged(); + return this; + } + /** + *
+       * "list(int)"
+       * 
+ * + * repeated int64 i = 3 [packed = true]; + * @return This builder for chaining. + */ + public Builder clearI() { + i_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.FloatList f_ = emptyFloatList(); + private void ensureFIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + f_ = mutableCopy(f_); + bitField0_ |= 0x00000004; + } + } + /** + *
+       * "list(float)"
+       * 
+ * + * repeated float f = 4 [packed = true]; + * @return A list containing the f. + */ + public java.util.List + getFList() { + return ((bitField0_ & 0x00000004) != 0) ? + java.util.Collections.unmodifiableList(f_) : f_; + } + /** + *
+       * "list(float)"
+       * 
+ * + * repeated float f = 4 [packed = true]; + * @return The count of f. + */ + public int getFCount() { + return f_.size(); + } + /** + *
+       * "list(float)"
+       * 
+ * + * repeated float f = 4 [packed = true]; + * @param index The index of the element to return. + * @return The f at the given index. + */ + public float getF(int index) { + return f_.getFloat(index); + } + /** + *
+       * "list(float)"
+       * 
+ * + * repeated float f = 4 [packed = true]; + * @param index The index to set the value at. + * @param value The f to set. + * @return This builder for chaining. + */ + public Builder setF( + int index, float value) { + ensureFIsMutable(); + f_.setFloat(index, value); + onChanged(); + return this; + } + /** + *
+       * "list(float)"
+       * 
+ * + * repeated float f = 4 [packed = true]; + * @param value The f to add. + * @return This builder for chaining. + */ + public Builder addF(float value) { + ensureFIsMutable(); + f_.addFloat(value); + onChanged(); + return this; + } + /** + *
+       * "list(float)"
+       * 
+ * + * repeated float f = 4 [packed = true]; + * @param values The f to add. + * @return This builder for chaining. + */ + public Builder addAllF( + java.lang.Iterable values) { + ensureFIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, f_); + onChanged(); + return this; + } + /** + *
+       * "list(float)"
+       * 
+ * + * repeated float f = 4 [packed = true]; + * @return This builder for chaining. + */ + public Builder clearF() { + f_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.BooleanList b_ = emptyBooleanList(); + private void ensureBIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + b_ = mutableCopy(b_); + bitField0_ |= 0x00000008; + } + } + /** + *
+       * "list(bool)"
+       * 
+ * + * repeated bool b = 5 [packed = true]; + * @return A list containing the b. + */ + public java.util.List + getBList() { + return ((bitField0_ & 0x00000008) != 0) ? + java.util.Collections.unmodifiableList(b_) : b_; + } + /** + *
+       * "list(bool)"
+       * 
+ * + * repeated bool b = 5 [packed = true]; + * @return The count of b. + */ + public int getBCount() { + return b_.size(); + } + /** + *
+       * "list(bool)"
+       * 
+ * + * repeated bool b = 5 [packed = true]; + * @param index The index of the element to return. + * @return The b at the given index. + */ + public boolean getB(int index) { + return b_.getBoolean(index); + } + /** + *
+       * "list(bool)"
+       * 
+ * + * repeated bool b = 5 [packed = true]; + * @param index The index to set the value at. + * @param value The b to set. + * @return This builder for chaining. + */ + public Builder setB( + int index, boolean value) { + ensureBIsMutable(); + b_.setBoolean(index, value); + onChanged(); + return this; + } + /** + *
+       * "list(bool)"
+       * 
+ * + * repeated bool b = 5 [packed = true]; + * @param value The b to add. + * @return This builder for chaining. + */ + public Builder addB(boolean value) { + ensureBIsMutable(); + b_.addBoolean(value); + onChanged(); + return this; + } + /** + *
+       * "list(bool)"
+       * 
+ * + * repeated bool b = 5 [packed = true]; + * @param values The b to add. + * @return This builder for chaining. + */ + public Builder addAllB( + java.lang.Iterable values) { + ensureBIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, b_); + onChanged(); + return this; + } + /** + *
+       * "list(bool)"
+       * 
+ * + * repeated bool b = 5 [packed = true]; + * @return This builder for chaining. + */ + public Builder clearB() { + b_ = emptyBooleanList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + private java.util.List type_ = + java.util.Collections.emptyList(); + private void ensureTypeIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + type_ = new java.util.ArrayList(type_); + bitField0_ |= 0x00000010; + } + } + /** + *
+       * "list(type)"
+       * 
+ * + * repeated .tensorflow.DataType type = 6 [packed = true]; + * @return A list containing the type. + */ + public java.util.List getTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, org.tensorflow.proto.DataType>(type_, type_converter_); + } + /** + *
+       * "list(type)"
+       * 
+ * + * repeated .tensorflow.DataType type = 6 [packed = true]; + * @return The count of type. + */ + public int getTypeCount() { + return type_.size(); + } + /** + *
+       * "list(type)"
+       * 
+ * + * repeated .tensorflow.DataType type = 6 [packed = true]; + * @param index The index of the element to return. + * @return The type at the given index. + */ + public org.tensorflow.proto.DataType getType(int index) { + return type_converter_.convert(type_.get(index)); + } + /** + *
+       * "list(type)"
+       * 
+ * + * repeated .tensorflow.DataType type = 6 [packed = true]; + * @param index The index to set the value at. + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + int index, org.tensorflow.proto.DataType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeIsMutable(); + type_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * "list(type)"
+       * 
+ * + * repeated .tensorflow.DataType type = 6 [packed = true]; + * @param value The type to add. + * @return This builder for chaining. + */ + public Builder addType(org.tensorflow.proto.DataType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeIsMutable(); + type_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * "list(type)"
+       * 
+ * + * repeated .tensorflow.DataType type = 6 [packed = true]; + * @param values The type to add. + * @return This builder for chaining. + */ + public Builder addAllType( + java.lang.Iterable values) { + ensureTypeIsMutable(); + for (org.tensorflow.proto.DataType value : values) { + type_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+       * "list(type)"
+       * 
+ * + * repeated .tensorflow.DataType type = 6 [packed = true]; + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+       * "list(type)"
+       * 
+ * + * repeated .tensorflow.DataType type = 6 [packed = true]; + * @return A list containing the enum numeric values on the wire for type. + */ + public java.util.List + getTypeValueList() { + return java.util.Collections.unmodifiableList(type_); + } + /** + *
+       * "list(type)"
+       * 
+ * + * repeated .tensorflow.DataType type = 6 [packed = true]; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of type at the given index. + */ + public int getTypeValue(int index) { + return type_.get(index); + } + /** + *
+       * "list(type)"
+       * 
+ * + * repeated .tensorflow.DataType type = 6 [packed = true]; + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue( + int index, int value) { + ensureTypeIsMutable(); + type_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * "list(type)"
+       * 
+ * + * repeated .tensorflow.DataType type = 6 [packed = true]; + * @param value The enum numeric value on the wire for type to add. + * @return This builder for chaining. + */ + public Builder addTypeValue(int value) { + ensureTypeIsMutable(); + type_.add(value); + onChanged(); + return this; + } + /** + *
+       * "list(type)"
+       * 
+ * + * repeated .tensorflow.DataType type = 6 [packed = true]; + * @param values The enum numeric values on the wire for type to add. + * @return This builder for chaining. + */ + public Builder addAllTypeValue( + java.lang.Iterable values) { + ensureTypeIsMutable(); + for (int value : values) { + type_.add(value); + } + onChanged(); + return this; + } + + private java.util.List shape_ = + java.util.Collections.emptyList(); + private void ensureShapeIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + shape_ = new java.util.ArrayList(shape_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> shapeBuilder_; + + /** + *
+       * "list(shape)"
+       * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + public java.util.List getShapeList() { + if (shapeBuilder_ == null) { + return java.util.Collections.unmodifiableList(shape_); + } else { + return shapeBuilder_.getMessageList(); + } + } + /** + *
+       * "list(shape)"
+       * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + public int getShapeCount() { + if (shapeBuilder_ == null) { + return shape_.size(); + } else { + return shapeBuilder_.getCount(); + } + } + /** + *
+       * "list(shape)"
+       * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + public org.tensorflow.proto.TensorShapeProto getShape(int index) { + if (shapeBuilder_ == null) { + return shape_.get(index); + } else { + return shapeBuilder_.getMessage(index); + } + } + /** + *
+       * "list(shape)"
+       * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + public Builder setShape( + int index, org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShapeIsMutable(); + shape_.set(index, value); + onChanged(); + } else { + shapeBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * "list(shape)"
+       * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + public Builder setShape( + int index, org.tensorflow.proto.TensorShapeProto.Builder builderForValue) { + if (shapeBuilder_ == null) { + ensureShapeIsMutable(); + shape_.set(index, builderForValue.build()); + onChanged(); + } else { + shapeBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * "list(shape)"
+       * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + public Builder addShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShapeIsMutable(); + shape_.add(value); + onChanged(); + } else { + shapeBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * "list(shape)"
+       * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + public Builder addShape( + int index, org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShapeIsMutable(); + shape_.add(index, value); + onChanged(); + } else { + shapeBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * "list(shape)"
+       * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + public Builder addShape( + org.tensorflow.proto.TensorShapeProto.Builder builderForValue) { + if (shapeBuilder_ == null) { + ensureShapeIsMutable(); + shape_.add(builderForValue.build()); + onChanged(); + } else { + shapeBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * "list(shape)"
+       * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + public Builder addShape( + int index, org.tensorflow.proto.TensorShapeProto.Builder builderForValue) { + if (shapeBuilder_ == null) { + ensureShapeIsMutable(); + shape_.add(index, builderForValue.build()); + onChanged(); + } else { + shapeBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * "list(shape)"
+       * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + public Builder addAllShape( + java.lang.Iterable values) { + if (shapeBuilder_ == null) { + ensureShapeIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, shape_); + onChanged(); + } else { + shapeBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * "list(shape)"
+       * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + public Builder clearShape() { + if (shapeBuilder_ == null) { + shape_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + shapeBuilder_.clear(); + } + return this; + } + /** + *
+       * "list(shape)"
+       * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + public Builder removeShape(int index) { + if (shapeBuilder_ == null) { + ensureShapeIsMutable(); + shape_.remove(index); + onChanged(); + } else { + shapeBuilder_.remove(index); + } + return this; + } + /** + *
+       * "list(shape)"
+       * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + public org.tensorflow.proto.TensorShapeProto.Builder getShapeBuilder( + int index) { + return getShapeFieldBuilder().getBuilder(index); + } + /** + *
+       * "list(shape)"
+       * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder( + int index) { + if (shapeBuilder_ == null) { + return shape_.get(index); } else { + return shapeBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * "list(shape)"
+       * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + public java.util.List + getShapeOrBuilderList() { + if (shapeBuilder_ != null) { + return shapeBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(shape_); + } + } + /** + *
+       * "list(shape)"
+       * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + public org.tensorflow.proto.TensorShapeProto.Builder addShapeBuilder() { + return getShapeFieldBuilder().addBuilder( + org.tensorflow.proto.TensorShapeProto.getDefaultInstance()); + } + /** + *
+       * "list(shape)"
+       * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + public org.tensorflow.proto.TensorShapeProto.Builder addShapeBuilder( + int index) { + return getShapeFieldBuilder().addBuilder( + index, org.tensorflow.proto.TensorShapeProto.getDefaultInstance()); + } + /** + *
+       * "list(shape)"
+       * 
+ * + * repeated .tensorflow.TensorShapeProto shape = 7; + */ + public java.util.List + getShapeBuilderList() { + return getShapeFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> + getShapeFieldBuilder() { + if (shapeBuilder_ == null) { + shapeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder>( + shape_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + shape_ = null; + } + return shapeBuilder_; + } + + private java.util.List tensor_ = + java.util.Collections.emptyList(); + private void ensureTensorIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + tensor_ = new java.util.ArrayList(tensor_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> tensorBuilder_; + + /** + *
+       * "list(tensor)"
+       * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + public java.util.List getTensorList() { + if (tensorBuilder_ == null) { + return java.util.Collections.unmodifiableList(tensor_); + } else { + return tensorBuilder_.getMessageList(); + } + } + /** + *
+       * "list(tensor)"
+       * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + public int getTensorCount() { + if (tensorBuilder_ == null) { + return tensor_.size(); + } else { + return tensorBuilder_.getCount(); + } + } + /** + *
+       * "list(tensor)"
+       * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + public org.tensorflow.proto.TensorProto getTensor(int index) { + if (tensorBuilder_ == null) { + return tensor_.get(index); + } else { + return tensorBuilder_.getMessage(index); + } + } + /** + *
+       * "list(tensor)"
+       * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + public Builder setTensor( + int index, org.tensorflow.proto.TensorProto value) { + if (tensorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorIsMutable(); + tensor_.set(index, value); + onChanged(); + } else { + tensorBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * "list(tensor)"
+       * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + public Builder setTensor( + int index, org.tensorflow.proto.TensorProto.Builder builderForValue) { + if (tensorBuilder_ == null) { + ensureTensorIsMutable(); + tensor_.set(index, builderForValue.build()); + onChanged(); + } else { + tensorBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * "list(tensor)"
+       * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + public Builder addTensor(org.tensorflow.proto.TensorProto value) { + if (tensorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorIsMutable(); + tensor_.add(value); + onChanged(); + } else { + tensorBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * "list(tensor)"
+       * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + public Builder addTensor( + int index, org.tensorflow.proto.TensorProto value) { + if (tensorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorIsMutable(); + tensor_.add(index, value); + onChanged(); + } else { + tensorBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * "list(tensor)"
+       * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + public Builder addTensor( + org.tensorflow.proto.TensorProto.Builder builderForValue) { + if (tensorBuilder_ == null) { + ensureTensorIsMutable(); + tensor_.add(builderForValue.build()); + onChanged(); + } else { + tensorBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * "list(tensor)"
+       * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + public Builder addTensor( + int index, org.tensorflow.proto.TensorProto.Builder builderForValue) { + if (tensorBuilder_ == null) { + ensureTensorIsMutable(); + tensor_.add(index, builderForValue.build()); + onChanged(); + } else { + tensorBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * "list(tensor)"
+       * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + public Builder addAllTensor( + java.lang.Iterable values) { + if (tensorBuilder_ == null) { + ensureTensorIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tensor_); + onChanged(); + } else { + tensorBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * "list(tensor)"
+       * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + public Builder clearTensor() { + if (tensorBuilder_ == null) { + tensor_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + tensorBuilder_.clear(); + } + return this; + } + /** + *
+       * "list(tensor)"
+       * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + public Builder removeTensor(int index) { + if (tensorBuilder_ == null) { + ensureTensorIsMutable(); + tensor_.remove(index); + onChanged(); + } else { + tensorBuilder_.remove(index); + } + return this; + } + /** + *
+       * "list(tensor)"
+       * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + public org.tensorflow.proto.TensorProto.Builder getTensorBuilder( + int index) { + return getTensorFieldBuilder().getBuilder(index); + } + /** + *
+       * "list(tensor)"
+       * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + public org.tensorflow.proto.TensorProtoOrBuilder getTensorOrBuilder( + int index) { + if (tensorBuilder_ == null) { + return tensor_.get(index); } else { + return tensorBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * "list(tensor)"
+       * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + public java.util.List + getTensorOrBuilderList() { + if (tensorBuilder_ != null) { + return tensorBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tensor_); + } + } + /** + *
+       * "list(tensor)"
+       * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + public org.tensorflow.proto.TensorProto.Builder addTensorBuilder() { + return getTensorFieldBuilder().addBuilder( + org.tensorflow.proto.TensorProto.getDefaultInstance()); + } + /** + *
+       * "list(tensor)"
+       * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + public org.tensorflow.proto.TensorProto.Builder addTensorBuilder( + int index) { + return getTensorFieldBuilder().addBuilder( + index, org.tensorflow.proto.TensorProto.getDefaultInstance()); + } + /** + *
+       * "list(tensor)"
+       * 
+ * + * repeated .tensorflow.TensorProto tensor = 8; + */ + public java.util.List + getTensorBuilderList() { + return getTensorFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> + getTensorFieldBuilder() { + if (tensorBuilder_ == null) { + tensorBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder>( + tensor_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + tensor_ = null; + } + return tensorBuilder_; + } + + private java.util.List func_ = + java.util.Collections.emptyList(); + private void ensureFuncIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + func_ = new java.util.ArrayList(func_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.NameAttrList, org.tensorflow.proto.NameAttrList.Builder, org.tensorflow.proto.NameAttrListOrBuilder> funcBuilder_; + + /** + *
+       * "list(attr)"
+       * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + public java.util.List getFuncList() { + if (funcBuilder_ == null) { + return java.util.Collections.unmodifiableList(func_); + } else { + return funcBuilder_.getMessageList(); + } + } + /** + *
+       * "list(attr)"
+       * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + public int getFuncCount() { + if (funcBuilder_ == null) { + return func_.size(); + } else { + return funcBuilder_.getCount(); + } + } + /** + *
+       * "list(attr)"
+       * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + public org.tensorflow.proto.NameAttrList getFunc(int index) { + if (funcBuilder_ == null) { + return func_.get(index); + } else { + return funcBuilder_.getMessage(index); + } + } + /** + *
+       * "list(attr)"
+       * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + public Builder setFunc( + int index, org.tensorflow.proto.NameAttrList value) { + if (funcBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFuncIsMutable(); + func_.set(index, value); + onChanged(); + } else { + funcBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * "list(attr)"
+       * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + public Builder setFunc( + int index, org.tensorflow.proto.NameAttrList.Builder builderForValue) { + if (funcBuilder_ == null) { + ensureFuncIsMutable(); + func_.set(index, builderForValue.build()); + onChanged(); + } else { + funcBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * "list(attr)"
+       * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + public Builder addFunc(org.tensorflow.proto.NameAttrList value) { + if (funcBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFuncIsMutable(); + func_.add(value); + onChanged(); + } else { + funcBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * "list(attr)"
+       * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + public Builder addFunc( + int index, org.tensorflow.proto.NameAttrList value) { + if (funcBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFuncIsMutable(); + func_.add(index, value); + onChanged(); + } else { + funcBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * "list(attr)"
+       * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + public Builder addFunc( + org.tensorflow.proto.NameAttrList.Builder builderForValue) { + if (funcBuilder_ == null) { + ensureFuncIsMutable(); + func_.add(builderForValue.build()); + onChanged(); + } else { + funcBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * "list(attr)"
+       * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + public Builder addFunc( + int index, org.tensorflow.proto.NameAttrList.Builder builderForValue) { + if (funcBuilder_ == null) { + ensureFuncIsMutable(); + func_.add(index, builderForValue.build()); + onChanged(); + } else { + funcBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * "list(attr)"
+       * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + public Builder addAllFunc( + java.lang.Iterable values) { + if (funcBuilder_ == null) { + ensureFuncIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, func_); + onChanged(); + } else { + funcBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * "list(attr)"
+       * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + public Builder clearFunc() { + if (funcBuilder_ == null) { + func_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + funcBuilder_.clear(); + } + return this; + } + /** + *
+       * "list(attr)"
+       * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + public Builder removeFunc(int index) { + if (funcBuilder_ == null) { + ensureFuncIsMutable(); + func_.remove(index); + onChanged(); + } else { + funcBuilder_.remove(index); + } + return this; + } + /** + *
+       * "list(attr)"
+       * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + public org.tensorflow.proto.NameAttrList.Builder getFuncBuilder( + int index) { + return getFuncFieldBuilder().getBuilder(index); + } + /** + *
+       * "list(attr)"
+       * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + public org.tensorflow.proto.NameAttrListOrBuilder getFuncOrBuilder( + int index) { + if (funcBuilder_ == null) { + return func_.get(index); } else { + return funcBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * "list(attr)"
+       * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + public java.util.List + getFuncOrBuilderList() { + if (funcBuilder_ != null) { + return funcBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(func_); + } + } + /** + *
+       * "list(attr)"
+       * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + public org.tensorflow.proto.NameAttrList.Builder addFuncBuilder() { + return getFuncFieldBuilder().addBuilder( + org.tensorflow.proto.NameAttrList.getDefaultInstance()); + } + /** + *
+       * "list(attr)"
+       * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + public org.tensorflow.proto.NameAttrList.Builder addFuncBuilder( + int index) { + return getFuncFieldBuilder().addBuilder( + index, org.tensorflow.proto.NameAttrList.getDefaultInstance()); + } + /** + *
+       * "list(attr)"
+       * 
+ * + * repeated .tensorflow.NameAttrList func = 9; + */ + public java.util.List + getFuncBuilderList() { + return getFuncFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.NameAttrList, org.tensorflow.proto.NameAttrList.Builder, org.tensorflow.proto.NameAttrListOrBuilder> + getFuncFieldBuilder() { + if (funcBuilder_ == null) { + funcBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.NameAttrList, org.tensorflow.proto.NameAttrList.Builder, org.tensorflow.proto.NameAttrListOrBuilder>( + func_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + func_ = null; + } + return funcBuilder_; + } + @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:tensorflow.AttrValue.ListValue) + } + + // @@protoc_insertion_point(class_scope:tensorflow.AttrValue.ListValue) + private static final org.tensorflow.proto.AttrValue.ListValue DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.AttrValue.ListValue(); + } + + public static org.tensorflow.proto.AttrValue.ListValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListValue 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 org.tensorflow.proto.AttrValue.ListValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + S(2), + I(3), + F(4), + B(5), + TYPE(6), + SHAPE(7), + TENSOR(8), + LIST(1), + FUNC(10), + PLACEHOLDER(9), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 2: return S; + case 3: return I; + case 4: return F; + case 5: return B; + case 6: return TYPE; + case 7: return SHAPE; + case 8: return TENSOR; + case 1: return LIST; + case 10: return FUNC; + case 9: return PLACEHOLDER; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public static final int S_FIELD_NUMBER = 2; + /** + *
+   * "string"
+   * 
+ * + * bytes s = 2; + * @return Whether the s field is set. + */ + @java.lang.Override + public boolean hasS() { + return valueCase_ == 2; + } + /** + *
+   * "string"
+   * 
+ * + * bytes s = 2; + * @return The s. + */ + @java.lang.Override + public com.google.protobuf.ByteString getS() { + if (valueCase_ == 2) { + return (com.google.protobuf.ByteString) value_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int I_FIELD_NUMBER = 3; + /** + *
+   * "int"
+   * 
+ * + * int64 i = 3; + * @return Whether the i field is set. + */ + @java.lang.Override + public boolean hasI() { + return valueCase_ == 3; + } + /** + *
+   * "int"
+   * 
+ * + * int64 i = 3; + * @return The i. + */ + @java.lang.Override + public long getI() { + if (valueCase_ == 3) { + return (java.lang.Long) value_; + } + return 0L; + } + + public static final int F_FIELD_NUMBER = 4; + /** + *
+   * "float"
+   * 
+ * + * float f = 4; + * @return Whether the f field is set. + */ + @java.lang.Override + public boolean hasF() { + return valueCase_ == 4; + } + /** + *
+   * "float"
+   * 
+ * + * float f = 4; + * @return The f. + */ + @java.lang.Override + public float getF() { + if (valueCase_ == 4) { + return (java.lang.Float) value_; + } + return 0F; + } + + public static final int B_FIELD_NUMBER = 5; + /** + *
+   * "bool"
+   * 
+ * + * bool b = 5; + * @return Whether the b field is set. + */ + @java.lang.Override + public boolean hasB() { + return valueCase_ == 5; + } + /** + *
+   * "bool"
+   * 
+ * + * bool b = 5; + * @return The b. + */ + @java.lang.Override + public boolean getB() { + if (valueCase_ == 5) { + return (java.lang.Boolean) value_; + } + return false; + } + + public static final int TYPE_FIELD_NUMBER = 6; + /** + *
+   * "type"
+   * 
+ * + * .tensorflow.DataType type = 6; + * @return Whether the type field is set. + */ + public boolean hasType() { + return valueCase_ == 6; + } + /** + *
+   * "type"
+   * 
+ * + * .tensorflow.DataType type = 6; + * @return The enum numeric value on the wire for type. + */ + public int getTypeValue() { + if (valueCase_ == 6) { + return (java.lang.Integer) value_; + } + return 0; + } + /** + *
+   * "type"
+   * 
+ * + * .tensorflow.DataType type = 6; + * @return The type. + */ + public org.tensorflow.proto.DataType getType() { + if (valueCase_ == 6) { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf( + (java.lang.Integer) value_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + return org.tensorflow.proto.DataType.DT_INVALID; + } + + public static final int SHAPE_FIELD_NUMBER = 7; + /** + *
+   * "shape"
+   * 
+ * + * .tensorflow.TensorShapeProto shape = 7; + * @return Whether the shape field is set. + */ + @java.lang.Override + public boolean hasShape() { + return valueCase_ == 7; + } + /** + *
+   * "shape"
+   * 
+ * + * .tensorflow.TensorShapeProto shape = 7; + * @return The shape. + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto getShape() { + if (valueCase_ == 7) { + return (org.tensorflow.proto.TensorShapeProto) value_; + } + return org.tensorflow.proto.TensorShapeProto.getDefaultInstance(); + } + /** + *
+   * "shape"
+   * 
+ * + * .tensorflow.TensorShapeProto shape = 7; + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { + if (valueCase_ == 7) { + return (org.tensorflow.proto.TensorShapeProto) value_; + } + return org.tensorflow.proto.TensorShapeProto.getDefaultInstance(); + } + + public static final int TENSOR_FIELD_NUMBER = 8; + /** + *
+   * "tensor"
+   * 
+ * + * .tensorflow.TensorProto tensor = 8; + * @return Whether the tensor field is set. + */ + @java.lang.Override + public boolean hasTensor() { + return valueCase_ == 8; + } + /** + *
+   * "tensor"
+   * 
+ * + * .tensorflow.TensorProto tensor = 8; + * @return The tensor. + */ + @java.lang.Override + public org.tensorflow.proto.TensorProto getTensor() { + if (valueCase_ == 8) { + return (org.tensorflow.proto.TensorProto) value_; + } + return org.tensorflow.proto.TensorProto.getDefaultInstance(); + } + /** + *
+   * "tensor"
+   * 
+ * + * .tensorflow.TensorProto tensor = 8; + */ + @java.lang.Override + public org.tensorflow.proto.TensorProtoOrBuilder getTensorOrBuilder() { + if (valueCase_ == 8) { + return (org.tensorflow.proto.TensorProto) value_; + } + return org.tensorflow.proto.TensorProto.getDefaultInstance(); + } + + public static final int LIST_FIELD_NUMBER = 1; + /** + *
+   * any "list(...)"
+   * 
+ * + * .tensorflow.AttrValue.ListValue list = 1; + * @return Whether the list field is set. + */ + @java.lang.Override + public boolean hasList() { + return valueCase_ == 1; + } + /** + *
+   * any "list(...)"
+   * 
+ * + * .tensorflow.AttrValue.ListValue list = 1; + * @return The list. + */ + @java.lang.Override + public org.tensorflow.proto.AttrValue.ListValue getList() { + if (valueCase_ == 1) { + return (org.tensorflow.proto.AttrValue.ListValue) value_; + } + return org.tensorflow.proto.AttrValue.ListValue.getDefaultInstance(); + } + /** + *
+   * any "list(...)"
+   * 
+ * + * .tensorflow.AttrValue.ListValue list = 1; + */ + @java.lang.Override + public org.tensorflow.proto.AttrValue.ListValueOrBuilder getListOrBuilder() { + if (valueCase_ == 1) { + return (org.tensorflow.proto.AttrValue.ListValue) value_; + } + return org.tensorflow.proto.AttrValue.ListValue.getDefaultInstance(); + } + + public static final int FUNC_FIELD_NUMBER = 10; + /** + *
+   * "func" represents a function. func.name is a function's name or
+   * a primitive op's name. func.attr.first is the name of an attr
+   * defined for that function. func.attr.second is the value for
+   * that attr in the instantiation.
+   * 
+ * + * .tensorflow.NameAttrList func = 10; + * @return Whether the func field is set. + */ + @java.lang.Override + public boolean hasFunc() { + return valueCase_ == 10; + } + /** + *
+   * "func" represents a function. func.name is a function's name or
+   * a primitive op's name. func.attr.first is the name of an attr
+   * defined for that function. func.attr.second is the value for
+   * that attr in the instantiation.
+   * 
+ * + * .tensorflow.NameAttrList func = 10; + * @return The func. + */ + @java.lang.Override + public org.tensorflow.proto.NameAttrList getFunc() { + if (valueCase_ == 10) { + return (org.tensorflow.proto.NameAttrList) value_; + } + return org.tensorflow.proto.NameAttrList.getDefaultInstance(); + } + /** + *
+   * "func" represents a function. func.name is a function's name or
+   * a primitive op's name. func.attr.first is the name of an attr
+   * defined for that function. func.attr.second is the value for
+   * that attr in the instantiation.
+   * 
+ * + * .tensorflow.NameAttrList func = 10; + */ + @java.lang.Override + public org.tensorflow.proto.NameAttrListOrBuilder getFuncOrBuilder() { + if (valueCase_ == 10) { + return (org.tensorflow.proto.NameAttrList) value_; + } + return org.tensorflow.proto.NameAttrList.getDefaultInstance(); + } + + public static final int PLACEHOLDER_FIELD_NUMBER = 9; + /** + *
+   * This is a placeholder only used in nodes defined inside a
+   * function.  It indicates the attr value will be supplied when
+   * the function is instantiated.  For example, let us suppose a
+   * node "N" in function "FN". "N" has an attr "A" with value
+   * placeholder = "foo". When FN is instantiated with attr "foo"
+   * set to "bar", the instantiated node N's attr A will have been
+   * given the value "bar".
+   * 
+ * + * string placeholder = 9; + * @return Whether the placeholder field is set. + */ + public boolean hasPlaceholder() { + return valueCase_ == 9; + } + /** + *
+   * This is a placeholder only used in nodes defined inside a
+   * function.  It indicates the attr value will be supplied when
+   * the function is instantiated.  For example, let us suppose a
+   * node "N" in function "FN". "N" has an attr "A" with value
+   * placeholder = "foo". When FN is instantiated with attr "foo"
+   * set to "bar", the instantiated node N's attr A will have been
+   * given the value "bar".
+   * 
+ * + * string placeholder = 9; + * @return The placeholder. + */ + public java.lang.String getPlaceholder() { + java.lang.Object ref = ""; + if (valueCase_ == 9) { + ref = value_; + } + 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(); + if (valueCase_ == 9) { + value_ = s; + } + return s; + } + } + /** + *
+   * This is a placeholder only used in nodes defined inside a
+   * function.  It indicates the attr value will be supplied when
+   * the function is instantiated.  For example, let us suppose a
+   * node "N" in function "FN". "N" has an attr "A" with value
+   * placeholder = "foo". When FN is instantiated with attr "foo"
+   * set to "bar", the instantiated node N's attr A will have been
+   * given the value "bar".
+   * 
+ * + * string placeholder = 9; + * @return The bytes for placeholder. + */ + public com.google.protobuf.ByteString + getPlaceholderBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 9) { + ref = value_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valueCase_ == 9) { + value_ = 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 (valueCase_ == 1) { + output.writeMessage(1, (org.tensorflow.proto.AttrValue.ListValue) value_); + } + if (valueCase_ == 2) { + output.writeBytes( + 2, (com.google.protobuf.ByteString) value_); + } + if (valueCase_ == 3) { + output.writeInt64( + 3, (long)((java.lang.Long) value_)); + } + if (valueCase_ == 4) { + output.writeFloat( + 4, (float)((java.lang.Float) value_)); + } + if (valueCase_ == 5) { + output.writeBool( + 5, (boolean)((java.lang.Boolean) value_)); + } + if (valueCase_ == 6) { + output.writeEnum(6, ((java.lang.Integer) value_)); + } + if (valueCase_ == 7) { + output.writeMessage(7, (org.tensorflow.proto.TensorShapeProto) value_); + } + if (valueCase_ == 8) { + output.writeMessage(8, (org.tensorflow.proto.TensorProto) value_); + } + if (valueCase_ == 9) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, value_); + } + if (valueCase_ == 10) { + output.writeMessage(10, (org.tensorflow.proto.NameAttrList) value_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (org.tensorflow.proto.AttrValue.ListValue) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 2, (com.google.protobuf.ByteString) value_); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 3, (long)((java.lang.Long) value_)); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize( + 4, (float)((java.lang.Float) value_)); + } + if (valueCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 5, (boolean)((java.lang.Boolean) value_)); + } + if (valueCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, ((java.lang.Integer) value_)); + } + if (valueCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (org.tensorflow.proto.TensorShapeProto) value_); + } + if (valueCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (org.tensorflow.proto.TensorProto) value_); + } + if (valueCase_ == 9) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, value_); + } + if (valueCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (org.tensorflow.proto.NameAttrList) value_); + } + 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 org.tensorflow.proto.AttrValue)) { + return super.equals(obj); + } + org.tensorflow.proto.AttrValue other = (org.tensorflow.proto.AttrValue) obj; + + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 2: + if (!getS() + .equals(other.getS())) return false; + break; + case 3: + if (getI() + != other.getI()) return false; + break; + case 4: + if (java.lang.Float.floatToIntBits(getF()) + != java.lang.Float.floatToIntBits( + other.getF())) return false; + break; + case 5: + if (getB() + != other.getB()) return false; + break; + case 6: + if (getTypeValue() + != other.getTypeValue()) return false; + break; + case 7: + if (!getShape() + .equals(other.getShape())) return false; + break; + case 8: + if (!getTensor() + .equals(other.getTensor())) return false; + break; + case 1: + if (!getList() + .equals(other.getList())) return false; + break; + case 10: + if (!getFunc() + .equals(other.getFunc())) return false; + break; + case 9: + if (!getPlaceholder() + .equals(other.getPlaceholder())) return false; + break; + case 0: + default: + } + 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(); + switch (valueCase_) { + case 2: + hash = (37 * hash) + S_FIELD_NUMBER; + hash = (53 * hash) + getS().hashCode(); + break; + case 3: + hash = (37 * hash) + I_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getI()); + break; + case 4: + hash = (37 * hash) + F_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getF()); + break; + case 5: + hash = (37 * hash) + B_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getB()); + break; + case 6: + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getTypeValue(); + break; + case 7: + hash = (37 * hash) + SHAPE_FIELD_NUMBER; + hash = (53 * hash) + getShape().hashCode(); + break; + case 8: + hash = (37 * hash) + TENSOR_FIELD_NUMBER; + hash = (53 * hash) + getTensor().hashCode(); + break; + case 1: + hash = (37 * hash) + LIST_FIELD_NUMBER; + hash = (53 * hash) + getList().hashCode(); + break; + case 10: + hash = (37 * hash) + FUNC_FIELD_NUMBER; + hash = (53 * hash) + getFunc().hashCode(); + break; + case 9: + hash = (37 * hash) + PLACEHOLDER_FIELD_NUMBER; + hash = (53 * hash) + getPlaceholder().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.AttrValue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.AttrValue parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.AttrValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.AttrValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.AttrValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.AttrValue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.AttrValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.AttrValue 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 org.tensorflow.proto.AttrValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.AttrValue 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 org.tensorflow.proto.AttrValue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.AttrValue 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(org.tensorflow.proto.AttrValue 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; + } + /** + *
+   * Protocol buffer representing the value for an attr used to configure an Op.
+   * Comment indicates the corresponding attr type.  Only the field matching the
+   * attr type may be filled.
+   * 
+ * + * Protobuf type {@code tensorflow.AttrValue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.AttrValue) + org.tensorflow.proto.AttrValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.AttrValueProtos.internal_static_tensorflow_AttrValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.AttrValueProtos.internal_static_tensorflow_AttrValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.AttrValue.class, org.tensorflow.proto.AttrValue.Builder.class); + } + + // Construct using org.tensorflow.proto.AttrValue.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (shapeBuilder_ != null) { + shapeBuilder_.clear(); + } + if (tensorBuilder_ != null) { + tensorBuilder_.clear(); + } + if (listBuilder_ != null) { + listBuilder_.clear(); + } + if (funcBuilder_ != null) { + funcBuilder_.clear(); + } + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.AttrValueProtos.internal_static_tensorflow_AttrValue_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.AttrValue getDefaultInstanceForType() { + return org.tensorflow.proto.AttrValue.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.AttrValue build() { + org.tensorflow.proto.AttrValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.AttrValue buildPartial() { + org.tensorflow.proto.AttrValue result = new org.tensorflow.proto.AttrValue(this); + if (valueCase_ == 2) { + result.value_ = value_; + } + if (valueCase_ == 3) { + result.value_ = value_; + } + if (valueCase_ == 4) { + result.value_ = value_; + } + if (valueCase_ == 5) { + result.value_ = value_; + } + if (valueCase_ == 6) { + result.value_ = value_; + } + if (valueCase_ == 7) { + if (shapeBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = shapeBuilder_.build(); + } + } + if (valueCase_ == 8) { + if (tensorBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = tensorBuilder_.build(); + } + } + if (valueCase_ == 1) { + if (listBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = listBuilder_.build(); + } + } + if (valueCase_ == 10) { + if (funcBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = funcBuilder_.build(); + } + } + if (valueCase_ == 9) { + result.value_ = value_; + } + result.valueCase_ = valueCase_; + 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 org.tensorflow.proto.AttrValue) { + return mergeFrom((org.tensorflow.proto.AttrValue)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.AttrValue other) { + if (other == org.tensorflow.proto.AttrValue.getDefaultInstance()) return this; + switch (other.getValueCase()) { + case S: { + setS(other.getS()); + break; + } + case I: { + setI(other.getI()); + break; + } + case F: { + setF(other.getF()); + break; + } + case B: { + setB(other.getB()); + break; + } + case TYPE: { + setTypeValue(other.getTypeValue()); + break; + } + case SHAPE: { + mergeShape(other.getShape()); + break; + } + case TENSOR: { + mergeTensor(other.getTensor()); + break; + } + case LIST: { + mergeList(other.getList()); + break; + } + case FUNC: { + mergeFunc(other.getFunc()); + break; + } + case PLACEHOLDER: { + valueCase_ = 9; + value_ = other.value_; + onChanged(); + break; + } + case VALUE_NOT_SET: { + break; + } + } + 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( + getListFieldBuilder().getBuilder(), + extensionRegistry); + valueCase_ = 1; + break; + } // case 10 + case 18: { + value_ = input.readBytes(); + valueCase_ = 2; + break; + } // case 18 + case 24: { + value_ = input.readInt64(); + valueCase_ = 3; + break; + } // case 24 + case 37: { + value_ = input.readFloat(); + valueCase_ = 4; + break; + } // case 37 + case 40: { + value_ = input.readBool(); + valueCase_ = 5; + break; + } // case 40 + case 48: { + int rawValue = input.readEnum(); + valueCase_ = 6; + value_ = rawValue; + break; + } // case 48 + case 58: { + input.readMessage( + getShapeFieldBuilder().getBuilder(), + extensionRegistry); + valueCase_ = 7; + break; + } // case 58 + case 66: { + input.readMessage( + getTensorFieldBuilder().getBuilder(), + extensionRegistry); + valueCase_ = 8; + break; + } // case 66 + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 9; + value_ = s; + break; + } // case 74 + case 82: { + input.readMessage( + getFuncFieldBuilder().getBuilder(), + extensionRegistry); + valueCase_ = 10; + break; + } // case 82 + 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 valueCase_ = 0; + private java.lang.Object value_; + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + + /** + *
+     * "string"
+     * 
+ * + * bytes s = 2; + * @return Whether the s field is set. + */ + public boolean hasS() { + return valueCase_ == 2; + } + /** + *
+     * "string"
+     * 
+ * + * bytes s = 2; + * @return The s. + */ + public com.google.protobuf.ByteString getS() { + if (valueCase_ == 2) { + return (com.google.protobuf.ByteString) value_; + } + return com.google.protobuf.ByteString.EMPTY; + } + /** + *
+     * "string"
+     * 
+ * + * bytes s = 2; + * @param value The s to set. + * @return This builder for chaining. + */ + public Builder setS(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + valueCase_ = 2; + value_ = value; + onChanged(); + return this; + } + /** + *
+     * "string"
+     * 
+ * + * bytes s = 2; + * @return This builder for chaining. + */ + public Builder clearS() { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + *
+     * "int"
+     * 
+ * + * int64 i = 3; + * @return Whether the i field is set. + */ + public boolean hasI() { + return valueCase_ == 3; + } + /** + *
+     * "int"
+     * 
+ * + * int64 i = 3; + * @return The i. + */ + public long getI() { + if (valueCase_ == 3) { + return (java.lang.Long) value_; + } + return 0L; + } + /** + *
+     * "int"
+     * 
+ * + * int64 i = 3; + * @param value The i to set. + * @return This builder for chaining. + */ + public Builder setI(long value) { + valueCase_ = 3; + value_ = value; + onChanged(); + return this; + } + /** + *
+     * "int"
+     * 
+ * + * int64 i = 3; + * @return This builder for chaining. + */ + public Builder clearI() { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + *
+     * "float"
+     * 
+ * + * float f = 4; + * @return Whether the f field is set. + */ + public boolean hasF() { + return valueCase_ == 4; + } + /** + *
+     * "float"
+     * 
+ * + * float f = 4; + * @return The f. + */ + public float getF() { + if (valueCase_ == 4) { + return (java.lang.Float) value_; + } + return 0F; + } + /** + *
+     * "float"
+     * 
+ * + * float f = 4; + * @param value The f to set. + * @return This builder for chaining. + */ + public Builder setF(float value) { + valueCase_ = 4; + value_ = value; + onChanged(); + return this; + } + /** + *
+     * "float"
+     * 
+ * + * float f = 4; + * @return This builder for chaining. + */ + public Builder clearF() { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + *
+     * "bool"
+     * 
+ * + * bool b = 5; + * @return Whether the b field is set. + */ + public boolean hasB() { + return valueCase_ == 5; + } + /** + *
+     * "bool"
+     * 
+ * + * bool b = 5; + * @return The b. + */ + public boolean getB() { + if (valueCase_ == 5) { + return (java.lang.Boolean) value_; + } + return false; + } + /** + *
+     * "bool"
+     * 
+ * + * bool b = 5; + * @param value The b to set. + * @return This builder for chaining. + */ + public Builder setB(boolean value) { + valueCase_ = 5; + value_ = value; + onChanged(); + return this; + } + /** + *
+     * "bool"
+     * 
+ * + * bool b = 5; + * @return This builder for chaining. + */ + public Builder clearB() { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + *
+     * "type"
+     * 
+ * + * .tensorflow.DataType type = 6; + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return valueCase_ == 6; + } + /** + *
+     * "type"
+     * 
+ * + * .tensorflow.DataType type = 6; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + if (valueCase_ == 6) { + return ((java.lang.Integer) value_).intValue(); + } + return 0; + } + /** + *
+     * "type"
+     * 
+ * + * .tensorflow.DataType type = 6; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + valueCase_ = 6; + value_ = value; + onChanged(); + return this; + } + /** + *
+     * "type"
+     * 
+ * + * .tensorflow.DataType type = 6; + * @return The type. + */ + @java.lang.Override + public org.tensorflow.proto.DataType getType() { + if (valueCase_ == 6) { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf( + (java.lang.Integer) value_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + return org.tensorflow.proto.DataType.DT_INVALID; + } + /** + *
+     * "type"
+     * 
+ * + * .tensorflow.DataType type = 6; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(org.tensorflow.proto.DataType value) { + if (value == null) { + throw new NullPointerException(); + } + valueCase_ = 6; + value_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * "type"
+     * 
+ * + * .tensorflow.DataType type = 6; + * @return This builder for chaining. + */ + public Builder clearType() { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> shapeBuilder_; + /** + *
+     * "shape"
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 7; + * @return Whether the shape field is set. + */ + @java.lang.Override + public boolean hasShape() { + return valueCase_ == 7; + } + /** + *
+     * "shape"
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 7; + * @return The shape. + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto getShape() { + if (shapeBuilder_ == null) { + if (valueCase_ == 7) { + return (org.tensorflow.proto.TensorShapeProto) value_; + } + return org.tensorflow.proto.TensorShapeProto.getDefaultInstance(); + } else { + if (valueCase_ == 7) { + return shapeBuilder_.getMessage(); + } + return org.tensorflow.proto.TensorShapeProto.getDefaultInstance(); + } + } + /** + *
+     * "shape"
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 7; + */ + public Builder setShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + shapeBuilder_.setMessage(value); + } + valueCase_ = 7; + return this; + } + /** + *
+     * "shape"
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 7; + */ + public Builder setShape( + org.tensorflow.proto.TensorShapeProto.Builder builderForValue) { + if (shapeBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + shapeBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 7; + return this; + } + /** + *
+     * "shape"
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 7; + */ + public Builder mergeShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (valueCase_ == 7 && + value_ != org.tensorflow.proto.TensorShapeProto.getDefaultInstance()) { + value_ = org.tensorflow.proto.TensorShapeProto.newBuilder((org.tensorflow.proto.TensorShapeProto) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 7) { + shapeBuilder_.mergeFrom(value); + } else { + shapeBuilder_.setMessage(value); + } + } + valueCase_ = 7; + return this; + } + /** + *
+     * "shape"
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 7; + */ + public Builder clearShape() { + if (shapeBuilder_ == null) { + if (valueCase_ == 7) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 7) { + valueCase_ = 0; + value_ = null; + } + shapeBuilder_.clear(); + } + return this; + } + /** + *
+     * "shape"
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 7; + */ + public org.tensorflow.proto.TensorShapeProto.Builder getShapeBuilder() { + return getShapeFieldBuilder().getBuilder(); + } + /** + *
+     * "shape"
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 7; + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { + if ((valueCase_ == 7) && (shapeBuilder_ != null)) { + return shapeBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 7) { + return (org.tensorflow.proto.TensorShapeProto) value_; + } + return org.tensorflow.proto.TensorShapeProto.getDefaultInstance(); + } + } + /** + *
+     * "shape"
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> + getShapeFieldBuilder() { + if (shapeBuilder_ == null) { + if (!(valueCase_ == 7)) { + value_ = org.tensorflow.proto.TensorShapeProto.getDefaultInstance(); + } + shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder>( + (org.tensorflow.proto.TensorShapeProto) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 7; + onChanged();; + return shapeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> tensorBuilder_; + /** + *
+     * "tensor"
+     * 
+ * + * .tensorflow.TensorProto tensor = 8; + * @return Whether the tensor field is set. + */ + @java.lang.Override + public boolean hasTensor() { + return valueCase_ == 8; + } + /** + *
+     * "tensor"
+     * 
+ * + * .tensorflow.TensorProto tensor = 8; + * @return The tensor. + */ + @java.lang.Override + public org.tensorflow.proto.TensorProto getTensor() { + if (tensorBuilder_ == null) { + if (valueCase_ == 8) { + return (org.tensorflow.proto.TensorProto) value_; + } + return org.tensorflow.proto.TensorProto.getDefaultInstance(); + } else { + if (valueCase_ == 8) { + return tensorBuilder_.getMessage(); + } + return org.tensorflow.proto.TensorProto.getDefaultInstance(); + } + } + /** + *
+     * "tensor"
+     * 
+ * + * .tensorflow.TensorProto tensor = 8; + */ + public Builder setTensor(org.tensorflow.proto.TensorProto value) { + if (tensorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + tensorBuilder_.setMessage(value); + } + valueCase_ = 8; + return this; + } + /** + *
+     * "tensor"
+     * 
+ * + * .tensorflow.TensorProto tensor = 8; + */ + public Builder setTensor( + org.tensorflow.proto.TensorProto.Builder builderForValue) { + if (tensorBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + tensorBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 8; + return this; + } + /** + *
+     * "tensor"
+     * 
+ * + * .tensorflow.TensorProto tensor = 8; + */ + public Builder mergeTensor(org.tensorflow.proto.TensorProto value) { + if (tensorBuilder_ == null) { + if (valueCase_ == 8 && + value_ != org.tensorflow.proto.TensorProto.getDefaultInstance()) { + value_ = org.tensorflow.proto.TensorProto.newBuilder((org.tensorflow.proto.TensorProto) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 8) { + tensorBuilder_.mergeFrom(value); + } else { + tensorBuilder_.setMessage(value); + } + } + valueCase_ = 8; + return this; + } + /** + *
+     * "tensor"
+     * 
+ * + * .tensorflow.TensorProto tensor = 8; + */ + public Builder clearTensor() { + if (tensorBuilder_ == null) { + if (valueCase_ == 8) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 8) { + valueCase_ = 0; + value_ = null; + } + tensorBuilder_.clear(); + } + return this; + } + /** + *
+     * "tensor"
+     * 
+ * + * .tensorflow.TensorProto tensor = 8; + */ + public org.tensorflow.proto.TensorProto.Builder getTensorBuilder() { + return getTensorFieldBuilder().getBuilder(); + } + /** + *
+     * "tensor"
+     * 
+ * + * .tensorflow.TensorProto tensor = 8; + */ + @java.lang.Override + public org.tensorflow.proto.TensorProtoOrBuilder getTensorOrBuilder() { + if ((valueCase_ == 8) && (tensorBuilder_ != null)) { + return tensorBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 8) { + return (org.tensorflow.proto.TensorProto) value_; + } + return org.tensorflow.proto.TensorProto.getDefaultInstance(); + } + } + /** + *
+     * "tensor"
+     * 
+ * + * .tensorflow.TensorProto tensor = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> + getTensorFieldBuilder() { + if (tensorBuilder_ == null) { + if (!(valueCase_ == 8)) { + value_ = org.tensorflow.proto.TensorProto.getDefaultInstance(); + } + tensorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder>( + (org.tensorflow.proto.TensorProto) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 8; + onChanged();; + return tensorBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.AttrValue.ListValue, org.tensorflow.proto.AttrValue.ListValue.Builder, org.tensorflow.proto.AttrValue.ListValueOrBuilder> listBuilder_; + /** + *
+     * any "list(...)"
+     * 
+ * + * .tensorflow.AttrValue.ListValue list = 1; + * @return Whether the list field is set. + */ + @java.lang.Override + public boolean hasList() { + return valueCase_ == 1; + } + /** + *
+     * any "list(...)"
+     * 
+ * + * .tensorflow.AttrValue.ListValue list = 1; + * @return The list. + */ + @java.lang.Override + public org.tensorflow.proto.AttrValue.ListValue getList() { + if (listBuilder_ == null) { + if (valueCase_ == 1) { + return (org.tensorflow.proto.AttrValue.ListValue) value_; + } + return org.tensorflow.proto.AttrValue.ListValue.getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return listBuilder_.getMessage(); + } + return org.tensorflow.proto.AttrValue.ListValue.getDefaultInstance(); + } + } + /** + *
+     * any "list(...)"
+     * 
+ * + * .tensorflow.AttrValue.ListValue list = 1; + */ + public Builder setList(org.tensorflow.proto.AttrValue.ListValue value) { + if (listBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + listBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + *
+     * any "list(...)"
+     * 
+ * + * .tensorflow.AttrValue.ListValue list = 1; + */ + public Builder setList( + org.tensorflow.proto.AttrValue.ListValue.Builder builderForValue) { + if (listBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + listBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + /** + *
+     * any "list(...)"
+     * 
+ * + * .tensorflow.AttrValue.ListValue list = 1; + */ + public Builder mergeList(org.tensorflow.proto.AttrValue.ListValue value) { + if (listBuilder_ == null) { + if (valueCase_ == 1 && + value_ != org.tensorflow.proto.AttrValue.ListValue.getDefaultInstance()) { + value_ = org.tensorflow.proto.AttrValue.ListValue.newBuilder((org.tensorflow.proto.AttrValue.ListValue) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + listBuilder_.mergeFrom(value); + } else { + listBuilder_.setMessage(value); + } + } + valueCase_ = 1; + return this; + } + /** + *
+     * any "list(...)"
+     * 
+ * + * .tensorflow.AttrValue.ListValue list = 1; + */ + public Builder clearList() { + if (listBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + listBuilder_.clear(); + } + return this; + } + /** + *
+     * any "list(...)"
+     * 
+ * + * .tensorflow.AttrValue.ListValue list = 1; + */ + public org.tensorflow.proto.AttrValue.ListValue.Builder getListBuilder() { + return getListFieldBuilder().getBuilder(); + } + /** + *
+     * any "list(...)"
+     * 
+ * + * .tensorflow.AttrValue.ListValue list = 1; + */ + @java.lang.Override + public org.tensorflow.proto.AttrValue.ListValueOrBuilder getListOrBuilder() { + if ((valueCase_ == 1) && (listBuilder_ != null)) { + return listBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (org.tensorflow.proto.AttrValue.ListValue) value_; + } + return org.tensorflow.proto.AttrValue.ListValue.getDefaultInstance(); + } + } + /** + *
+     * any "list(...)"
+     * 
+ * + * .tensorflow.AttrValue.ListValue list = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.AttrValue.ListValue, org.tensorflow.proto.AttrValue.ListValue.Builder, org.tensorflow.proto.AttrValue.ListValueOrBuilder> + getListFieldBuilder() { + if (listBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = org.tensorflow.proto.AttrValue.ListValue.getDefaultInstance(); + } + listBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.AttrValue.ListValue, org.tensorflow.proto.AttrValue.ListValue.Builder, org.tensorflow.proto.AttrValue.ListValueOrBuilder>( + (org.tensorflow.proto.AttrValue.ListValue) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged();; + return listBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.NameAttrList, org.tensorflow.proto.NameAttrList.Builder, org.tensorflow.proto.NameAttrListOrBuilder> funcBuilder_; + /** + *
+     * "func" represents a function. func.name is a function's name or
+     * a primitive op's name. func.attr.first is the name of an attr
+     * defined for that function. func.attr.second is the value for
+     * that attr in the instantiation.
+     * 
+ * + * .tensorflow.NameAttrList func = 10; + * @return Whether the func field is set. + */ + @java.lang.Override + public boolean hasFunc() { + return valueCase_ == 10; + } + /** + *
+     * "func" represents a function. func.name is a function's name or
+     * a primitive op's name. func.attr.first is the name of an attr
+     * defined for that function. func.attr.second is the value for
+     * that attr in the instantiation.
+     * 
+ * + * .tensorflow.NameAttrList func = 10; + * @return The func. + */ + @java.lang.Override + public org.tensorflow.proto.NameAttrList getFunc() { + if (funcBuilder_ == null) { + if (valueCase_ == 10) { + return (org.tensorflow.proto.NameAttrList) value_; + } + return org.tensorflow.proto.NameAttrList.getDefaultInstance(); + } else { + if (valueCase_ == 10) { + return funcBuilder_.getMessage(); + } + return org.tensorflow.proto.NameAttrList.getDefaultInstance(); + } + } + /** + *
+     * "func" represents a function. func.name is a function's name or
+     * a primitive op's name. func.attr.first is the name of an attr
+     * defined for that function. func.attr.second is the value for
+     * that attr in the instantiation.
+     * 
+ * + * .tensorflow.NameAttrList func = 10; + */ + public Builder setFunc(org.tensorflow.proto.NameAttrList value) { + if (funcBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + funcBuilder_.setMessage(value); + } + valueCase_ = 10; + return this; + } + /** + *
+     * "func" represents a function. func.name is a function's name or
+     * a primitive op's name. func.attr.first is the name of an attr
+     * defined for that function. func.attr.second is the value for
+     * that attr in the instantiation.
+     * 
+ * + * .tensorflow.NameAttrList func = 10; + */ + public Builder setFunc( + org.tensorflow.proto.NameAttrList.Builder builderForValue) { + if (funcBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + funcBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 10; + return this; + } + /** + *
+     * "func" represents a function. func.name is a function's name or
+     * a primitive op's name. func.attr.first is the name of an attr
+     * defined for that function. func.attr.second is the value for
+     * that attr in the instantiation.
+     * 
+ * + * .tensorflow.NameAttrList func = 10; + */ + public Builder mergeFunc(org.tensorflow.proto.NameAttrList value) { + if (funcBuilder_ == null) { + if (valueCase_ == 10 && + value_ != org.tensorflow.proto.NameAttrList.getDefaultInstance()) { + value_ = org.tensorflow.proto.NameAttrList.newBuilder((org.tensorflow.proto.NameAttrList) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 10) { + funcBuilder_.mergeFrom(value); + } else { + funcBuilder_.setMessage(value); + } + } + valueCase_ = 10; + return this; + } + /** + *
+     * "func" represents a function. func.name is a function's name or
+     * a primitive op's name. func.attr.first is the name of an attr
+     * defined for that function. func.attr.second is the value for
+     * that attr in the instantiation.
+     * 
+ * + * .tensorflow.NameAttrList func = 10; + */ + public Builder clearFunc() { + if (funcBuilder_ == null) { + if (valueCase_ == 10) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 10) { + valueCase_ = 0; + value_ = null; + } + funcBuilder_.clear(); + } + return this; + } + /** + *
+     * "func" represents a function. func.name is a function's name or
+     * a primitive op's name. func.attr.first is the name of an attr
+     * defined for that function. func.attr.second is the value for
+     * that attr in the instantiation.
+     * 
+ * + * .tensorflow.NameAttrList func = 10; + */ + public org.tensorflow.proto.NameAttrList.Builder getFuncBuilder() { + return getFuncFieldBuilder().getBuilder(); + } + /** + *
+     * "func" represents a function. func.name is a function's name or
+     * a primitive op's name. func.attr.first is the name of an attr
+     * defined for that function. func.attr.second is the value for
+     * that attr in the instantiation.
+     * 
+ * + * .tensorflow.NameAttrList func = 10; + */ + @java.lang.Override + public org.tensorflow.proto.NameAttrListOrBuilder getFuncOrBuilder() { + if ((valueCase_ == 10) && (funcBuilder_ != null)) { + return funcBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 10) { + return (org.tensorflow.proto.NameAttrList) value_; + } + return org.tensorflow.proto.NameAttrList.getDefaultInstance(); + } + } + /** + *
+     * "func" represents a function. func.name is a function's name or
+     * a primitive op's name. func.attr.first is the name of an attr
+     * defined for that function. func.attr.second is the value for
+     * that attr in the instantiation.
+     * 
+ * + * .tensorflow.NameAttrList func = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.NameAttrList, org.tensorflow.proto.NameAttrList.Builder, org.tensorflow.proto.NameAttrListOrBuilder> + getFuncFieldBuilder() { + if (funcBuilder_ == null) { + if (!(valueCase_ == 10)) { + value_ = org.tensorflow.proto.NameAttrList.getDefaultInstance(); + } + funcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.NameAttrList, org.tensorflow.proto.NameAttrList.Builder, org.tensorflow.proto.NameAttrListOrBuilder>( + (org.tensorflow.proto.NameAttrList) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 10; + onChanged();; + return funcBuilder_; + } + + /** + *
+     * This is a placeholder only used in nodes defined inside a
+     * function.  It indicates the attr value will be supplied when
+     * the function is instantiated.  For example, let us suppose a
+     * node "N" in function "FN". "N" has an attr "A" with value
+     * placeholder = "foo". When FN is instantiated with attr "foo"
+     * set to "bar", the instantiated node N's attr A will have been
+     * given the value "bar".
+     * 
+ * + * string placeholder = 9; + * @return Whether the placeholder field is set. + */ + @java.lang.Override + public boolean hasPlaceholder() { + return valueCase_ == 9; + } + /** + *
+     * This is a placeholder only used in nodes defined inside a
+     * function.  It indicates the attr value will be supplied when
+     * the function is instantiated.  For example, let us suppose a
+     * node "N" in function "FN". "N" has an attr "A" with value
+     * placeholder = "foo". When FN is instantiated with attr "foo"
+     * set to "bar", the instantiated node N's attr A will have been
+     * given the value "bar".
+     * 
+ * + * string placeholder = 9; + * @return The placeholder. + */ + @java.lang.Override + public java.lang.String getPlaceholder() { + java.lang.Object ref = ""; + if (valueCase_ == 9) { + ref = value_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueCase_ == 9) { + value_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * This is a placeholder only used in nodes defined inside a
+     * function.  It indicates the attr value will be supplied when
+     * the function is instantiated.  For example, let us suppose a
+     * node "N" in function "FN". "N" has an attr "A" with value
+     * placeholder = "foo". When FN is instantiated with attr "foo"
+     * set to "bar", the instantiated node N's attr A will have been
+     * given the value "bar".
+     * 
+ * + * string placeholder = 9; + * @return The bytes for placeholder. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPlaceholderBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 9) { + ref = value_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valueCase_ == 9) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * This is a placeholder only used in nodes defined inside a
+     * function.  It indicates the attr value will be supplied when
+     * the function is instantiated.  For example, let us suppose a
+     * node "N" in function "FN". "N" has an attr "A" with value
+     * placeholder = "foo". When FN is instantiated with attr "foo"
+     * set to "bar", the instantiated node N's attr A will have been
+     * given the value "bar".
+     * 
+ * + * string placeholder = 9; + * @param value The placeholder to set. + * @return This builder for chaining. + */ + public Builder setPlaceholder( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + valueCase_ = 9; + value_ = value; + onChanged(); + return this; + } + /** + *
+     * This is a placeholder only used in nodes defined inside a
+     * function.  It indicates the attr value will be supplied when
+     * the function is instantiated.  For example, let us suppose a
+     * node "N" in function "FN". "N" has an attr "A" with value
+     * placeholder = "foo". When FN is instantiated with attr "foo"
+     * set to "bar", the instantiated node N's attr A will have been
+     * given the value "bar".
+     * 
+ * + * string placeholder = 9; + * @return This builder for chaining. + */ + public Builder clearPlaceholder() { + if (valueCase_ == 9) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + /** + *
+     * This is a placeholder only used in nodes defined inside a
+     * function.  It indicates the attr value will be supplied when
+     * the function is instantiated.  For example, let us suppose a
+     * node "N" in function "FN". "N" has an attr "A" with value
+     * placeholder = "foo". When FN is instantiated with attr "foo"
+     * set to "bar", the instantiated node N's attr A will have been
+     * given the value "bar".
+     * 
+ * + * string placeholder = 9; + * @param value The bytes for placeholder to set. + * @return This builder for chaining. + */ + public Builder setPlaceholderBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + valueCase_ = 9; + value_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.AttrValue) + } + + // @@protoc_insertion_point(class_scope:tensorflow.AttrValue) + private static final org.tensorflow.proto.AttrValue DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.AttrValue(); + } + + public static org.tensorflow.proto.AttrValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttrValue 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 org.tensorflow.proto.AttrValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AttrValueOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AttrValueOrBuilder.java new file mode 100644 index 00000000000..5dc778e642e --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AttrValueOrBuilder.java @@ -0,0 +1,279 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/attr_value.proto + +package org.tensorflow.proto; + +public interface AttrValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.AttrValue) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * "string"
+   * 
+ * + * bytes s = 2; + * @return Whether the s field is set. + */ + boolean hasS(); + /** + *
+   * "string"
+   * 
+ * + * bytes s = 2; + * @return The s. + */ + com.google.protobuf.ByteString getS(); + + /** + *
+   * "int"
+   * 
+ * + * int64 i = 3; + * @return Whether the i field is set. + */ + boolean hasI(); + /** + *
+   * "int"
+   * 
+ * + * int64 i = 3; + * @return The i. + */ + long getI(); + + /** + *
+   * "float"
+   * 
+ * + * float f = 4; + * @return Whether the f field is set. + */ + boolean hasF(); + /** + *
+   * "float"
+   * 
+ * + * float f = 4; + * @return The f. + */ + float getF(); + + /** + *
+   * "bool"
+   * 
+ * + * bool b = 5; + * @return Whether the b field is set. + */ + boolean hasB(); + /** + *
+   * "bool"
+   * 
+ * + * bool b = 5; + * @return The b. + */ + boolean getB(); + + /** + *
+   * "type"
+   * 
+ * + * .tensorflow.DataType type = 6; + * @return Whether the type field is set. + */ + boolean hasType(); + /** + *
+   * "type"
+   * 
+ * + * .tensorflow.DataType type = 6; + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + *
+   * "type"
+   * 
+ * + * .tensorflow.DataType type = 6; + * @return The type. + */ + org.tensorflow.proto.DataType getType(); + + /** + *
+   * "shape"
+   * 
+ * + * .tensorflow.TensorShapeProto shape = 7; + * @return Whether the shape field is set. + */ + boolean hasShape(); + /** + *
+   * "shape"
+   * 
+ * + * .tensorflow.TensorShapeProto shape = 7; + * @return The shape. + */ + org.tensorflow.proto.TensorShapeProto getShape(); + /** + *
+   * "shape"
+   * 
+ * + * .tensorflow.TensorShapeProto shape = 7; + */ + org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder(); + + /** + *
+   * "tensor"
+   * 
+ * + * .tensorflow.TensorProto tensor = 8; + * @return Whether the tensor field is set. + */ + boolean hasTensor(); + /** + *
+   * "tensor"
+   * 
+ * + * .tensorflow.TensorProto tensor = 8; + * @return The tensor. + */ + org.tensorflow.proto.TensorProto getTensor(); + /** + *
+   * "tensor"
+   * 
+ * + * .tensorflow.TensorProto tensor = 8; + */ + org.tensorflow.proto.TensorProtoOrBuilder getTensorOrBuilder(); + + /** + *
+   * any "list(...)"
+   * 
+ * + * .tensorflow.AttrValue.ListValue list = 1; + * @return Whether the list field is set. + */ + boolean hasList(); + /** + *
+   * any "list(...)"
+   * 
+ * + * .tensorflow.AttrValue.ListValue list = 1; + * @return The list. + */ + org.tensorflow.proto.AttrValue.ListValue getList(); + /** + *
+   * any "list(...)"
+   * 
+ * + * .tensorflow.AttrValue.ListValue list = 1; + */ + org.tensorflow.proto.AttrValue.ListValueOrBuilder getListOrBuilder(); + + /** + *
+   * "func" represents a function. func.name is a function's name or
+   * a primitive op's name. func.attr.first is the name of an attr
+   * defined for that function. func.attr.second is the value for
+   * that attr in the instantiation.
+   * 
+ * + * .tensorflow.NameAttrList func = 10; + * @return Whether the func field is set. + */ + boolean hasFunc(); + /** + *
+   * "func" represents a function. func.name is a function's name or
+   * a primitive op's name. func.attr.first is the name of an attr
+   * defined for that function. func.attr.second is the value for
+   * that attr in the instantiation.
+   * 
+ * + * .tensorflow.NameAttrList func = 10; + * @return The func. + */ + org.tensorflow.proto.NameAttrList getFunc(); + /** + *
+   * "func" represents a function. func.name is a function's name or
+   * a primitive op's name. func.attr.first is the name of an attr
+   * defined for that function. func.attr.second is the value for
+   * that attr in the instantiation.
+   * 
+ * + * .tensorflow.NameAttrList func = 10; + */ + org.tensorflow.proto.NameAttrListOrBuilder getFuncOrBuilder(); + + /** + *
+   * This is a placeholder only used in nodes defined inside a
+   * function.  It indicates the attr value will be supplied when
+   * the function is instantiated.  For example, let us suppose a
+   * node "N" in function "FN". "N" has an attr "A" with value
+   * placeholder = "foo". When FN is instantiated with attr "foo"
+   * set to "bar", the instantiated node N's attr A will have been
+   * given the value "bar".
+   * 
+ * + * string placeholder = 9; + * @return Whether the placeholder field is set. + */ + boolean hasPlaceholder(); + /** + *
+   * This is a placeholder only used in nodes defined inside a
+   * function.  It indicates the attr value will be supplied when
+   * the function is instantiated.  For example, let us suppose a
+   * node "N" in function "FN". "N" has an attr "A" with value
+   * placeholder = "foo". When FN is instantiated with attr "foo"
+   * set to "bar", the instantiated node N's attr A will have been
+   * given the value "bar".
+   * 
+ * + * string placeholder = 9; + * @return The placeholder. + */ + java.lang.String getPlaceholder(); + /** + *
+   * This is a placeholder only used in nodes defined inside a
+   * function.  It indicates the attr value will be supplied when
+   * the function is instantiated.  For example, let us suppose a
+   * node "N" in function "FN". "N" has an attr "A" with value
+   * placeholder = "foo". When FN is instantiated with attr "foo"
+   * set to "bar", the instantiated node N's attr A will have been
+   * given the value "bar".
+   * 
+ * + * string placeholder = 9; + * @return The bytes for placeholder. + */ + com.google.protobuf.ByteString + getPlaceholderBytes(); + + public org.tensorflow.proto.AttrValue.ValueCase getValueCase(); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AttrValueProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AttrValueProtos.java new file mode 100644 index 00000000000..e444e942611 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AttrValueProtos.java @@ -0,0 +1,110 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/attr_value.proto + +package org.tensorflow.proto; + +public final class AttrValueProtos { + private AttrValueProtos() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_AttrValue_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_AttrValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_AttrValue_ListValue_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_AttrValue_ListValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_NameAttrList_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_NameAttrList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_NameAttrList_AttrEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_NameAttrList_AttrEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n*tensorflow/core/framework/attr_value.p" + + "roto\022\ntensorflow\032&tensorflow/core/framew" + + "ork/tensor.proto\032,tensorflow/core/framew" + + "ork/tensor_shape.proto\032%tensorflow/core/" + + "framework/types.proto\"\246\004\n\tAttrValue\022\013\n\001s" + + "\030\002 \001(\014H\000\022\013\n\001i\030\003 \001(\003H\000\022\013\n\001f\030\004 \001(\002H\000\022\013\n\001b\030" + + "\005 \001(\010H\000\022$\n\004type\030\006 \001(\0162\024.tensorflow.DataT" + + "ypeH\000\022-\n\005shape\030\007 \001(\0132\034.tensorflow.Tensor" + + "ShapeProtoH\000\022)\n\006tensor\030\010 \001(\0132\027.tensorflo" + + "w.TensorProtoH\000\022/\n\004list\030\001 \001(\0132\037.tensorfl" + + "ow.AttrValue.ListValueH\000\022(\n\004func\030\n \001(\0132\030" + + ".tensorflow.NameAttrListH\000\022\025\n\013placeholde" + + "r\030\t \001(\tH\000\032\351\001\n\tListValue\022\t\n\001s\030\002 \003(\014\022\r\n\001i\030" + + "\003 \003(\003B\002\020\001\022\r\n\001f\030\004 \003(\002B\002\020\001\022\r\n\001b\030\005 \003(\010B\002\020\001\022" + + "&\n\004type\030\006 \003(\0162\024.tensorflow.DataTypeB\002\020\001\022" + + "+\n\005shape\030\007 \003(\0132\034.tensorflow.TensorShapeP" + + "roto\022\'\n\006tensor\030\010 \003(\0132\027.tensorflow.Tensor" + + "Proto\022&\n\004func\030\t \003(\0132\030.tensorflow.NameAtt" + + "rListB\007\n\005value\"\222\001\n\014NameAttrList\022\014\n\004name\030" + + "\001 \001(\t\0220\n\004attr\030\002 \003(\0132\".tensorflow.NameAtt" + + "rList.AttrEntry\032B\n\tAttrEntry\022\013\n\003key\030\001 \001(" + + "\t\022$\n\005value\030\002 \001(\0132\025.tensorflow.AttrValue:" + + "\0028\001B\177\n\024org.tensorflow.protoB\017AttrValuePr" + + "otosP\001ZQgithub.com/tensorflow/tensorflow" + + "/tensorflow/go/core/framework/attr_value" + + "_go_proto\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + org.tensorflow.proto.TensorProtos.getDescriptor(), + org.tensorflow.proto.TensorShapeProtos.getDescriptor(), + org.tensorflow.proto.TypesProtos.getDescriptor(), + }); + internal_static_tensorflow_AttrValue_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_AttrValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_AttrValue_descriptor, + new java.lang.String[] { "S", "I", "F", "B", "Type", "Shape", "Tensor", "List", "Func", "Placeholder", "Value", }); + internal_static_tensorflow_AttrValue_ListValue_descriptor = + internal_static_tensorflow_AttrValue_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_AttrValue_ListValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_AttrValue_ListValue_descriptor, + new java.lang.String[] { "S", "I", "F", "B", "Type", "Shape", "Tensor", "Func", }); + internal_static_tensorflow_NameAttrList_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_tensorflow_NameAttrList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_NameAttrList_descriptor, + new java.lang.String[] { "Name", "Attr", }); + internal_static_tensorflow_NameAttrList_AttrEntry_descriptor = + internal_static_tensorflow_NameAttrList_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_NameAttrList_AttrEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_NameAttrList_AttrEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + org.tensorflow.proto.TensorProtos.getDescriptor(); + org.tensorflow.proto.TensorShapeProtos.getDescriptor(); + org.tensorflow.proto.TypesProtos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AutoParallelOptions.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AutoParallelOptions.java new file mode 100644 index 00000000000..18506fb1b87 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AutoParallelOptions.java @@ -0,0 +1,530 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/rewriter_config.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.AutoParallelOptions} + */ +public final class AutoParallelOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.AutoParallelOptions) + AutoParallelOptionsOrBuilder { +private static final long serialVersionUID = 0L; + // Use AutoParallelOptions.newBuilder() to construct. + private AutoParallelOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AutoParallelOptions() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AutoParallelOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.RewriterConfigProtos.internal_static_tensorflow_AutoParallelOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.RewriterConfigProtos.internal_static_tensorflow_AutoParallelOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.AutoParallelOptions.class, org.tensorflow.proto.AutoParallelOptions.Builder.class); + } + + public static final int ENABLE_FIELD_NUMBER = 1; + private boolean enable_; + /** + * bool enable = 1; + * @return The enable. + */ + @java.lang.Override + public boolean getEnable() { + return enable_; + } + + public static final int NUM_REPLICAS_FIELD_NUMBER = 2; + private int numReplicas_; + /** + * int32 num_replicas = 2; + * @return The numReplicas. + */ + @java.lang.Override + public int getNumReplicas() { + return numReplicas_; + } + + 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 (enable_ != false) { + output.writeBool(1, enable_); + } + if (numReplicas_ != 0) { + output.writeInt32(2, numReplicas_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enable_); + } + if (numReplicas_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, numReplicas_); + } + 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 org.tensorflow.proto.AutoParallelOptions)) { + return super.equals(obj); + } + org.tensorflow.proto.AutoParallelOptions other = (org.tensorflow.proto.AutoParallelOptions) obj; + + if (getEnable() + != other.getEnable()) return false; + if (getNumReplicas() + != other.getNumReplicas()) 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) + ENABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnable()); + hash = (37 * hash) + NUM_REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getNumReplicas(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.AutoParallelOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.AutoParallelOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.AutoParallelOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.AutoParallelOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.AutoParallelOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.AutoParallelOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.AutoParallelOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.AutoParallelOptions 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 org.tensorflow.proto.AutoParallelOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.AutoParallelOptions 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 org.tensorflow.proto.AutoParallelOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.AutoParallelOptions 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(org.tensorflow.proto.AutoParallelOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.AutoParallelOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.AutoParallelOptions) + org.tensorflow.proto.AutoParallelOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.RewriterConfigProtos.internal_static_tensorflow_AutoParallelOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.RewriterConfigProtos.internal_static_tensorflow_AutoParallelOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.AutoParallelOptions.class, org.tensorflow.proto.AutoParallelOptions.Builder.class); + } + + // Construct using org.tensorflow.proto.AutoParallelOptions.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + enable_ = false; + + numReplicas_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.RewriterConfigProtos.internal_static_tensorflow_AutoParallelOptions_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.AutoParallelOptions getDefaultInstanceForType() { + return org.tensorflow.proto.AutoParallelOptions.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.AutoParallelOptions build() { + org.tensorflow.proto.AutoParallelOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.AutoParallelOptions buildPartial() { + org.tensorflow.proto.AutoParallelOptions result = new org.tensorflow.proto.AutoParallelOptions(this); + result.enable_ = enable_; + result.numReplicas_ = numReplicas_; + 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 org.tensorflow.proto.AutoParallelOptions) { + return mergeFrom((org.tensorflow.proto.AutoParallelOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.AutoParallelOptions other) { + if (other == org.tensorflow.proto.AutoParallelOptions.getDefaultInstance()) return this; + if (other.getEnable() != false) { + setEnable(other.getEnable()); + } + if (other.getNumReplicas() != 0) { + setNumReplicas(other.getNumReplicas()); + } + 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: { + enable_ = input.readBool(); + + break; + } // case 8 + case 16: { + numReplicas_ = input.readInt32(); + + break; + } // case 16 + 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 boolean enable_ ; + /** + * bool enable = 1; + * @return The enable. + */ + @java.lang.Override + public boolean getEnable() { + return enable_; + } + /** + * bool enable = 1; + * @param value The enable to set. + * @return This builder for chaining. + */ + public Builder setEnable(boolean value) { + + enable_ = value; + onChanged(); + return this; + } + /** + * bool enable = 1; + * @return This builder for chaining. + */ + public Builder clearEnable() { + + enable_ = false; + onChanged(); + return this; + } + + private int numReplicas_ ; + /** + * int32 num_replicas = 2; + * @return The numReplicas. + */ + @java.lang.Override + public int getNumReplicas() { + return numReplicas_; + } + /** + * int32 num_replicas = 2; + * @param value The numReplicas to set. + * @return This builder for chaining. + */ + public Builder setNumReplicas(int value) { + + numReplicas_ = value; + onChanged(); + return this; + } + /** + * int32 num_replicas = 2; + * @return This builder for chaining. + */ + public Builder clearNumReplicas() { + + numReplicas_ = 0; + 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:tensorflow.AutoParallelOptions) + } + + // @@protoc_insertion_point(class_scope:tensorflow.AutoParallelOptions) + private static final org.tensorflow.proto.AutoParallelOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.AutoParallelOptions(); + } + + public static org.tensorflow.proto.AutoParallelOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutoParallelOptions 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 org.tensorflow.proto.AutoParallelOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AutoParallelOptionsOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AutoParallelOptionsOrBuilder.java similarity index 84% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AutoParallelOptionsOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AutoParallelOptionsOrBuilder.java index 0b954c6477c..e673fb4ec6a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/AutoParallelOptionsOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AutoParallelOptionsOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/rewriter_config.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface AutoParallelOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.AutoParallelOptions) @@ -9,11 +9,13 @@ public interface AutoParallelOptionsOrBuilder extends /** * bool enable = 1; + * @return The enable. */ boolean getEnable(); /** * int32 num_replicas = 2; + * @return The numReplicas. */ int getNumReplicas(); } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/AvailableDeviceInfo.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AvailableDeviceInfo.java similarity index 75% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/AvailableDeviceInfo.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AvailableDeviceInfo.java index c80f9c4ff64..00271872352 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/AvailableDeviceInfo.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AvailableDeviceInfo.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/util/test_log.proto +// source: tensorflow/tsl/protobuf/test_log.proto -package org.tensorflow.proto.util.testlog; +package org.tensorflow.proto; /** *
@@ -10,7 +10,7 @@
  *
  * Protobuf type {@code tensorflow.AvailableDeviceInfo}
  */
-public  final class AvailableDeviceInfo extends
+public final class AvailableDeviceInfo extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.AvailableDeviceInfo)
     AvailableDeviceInfoOrBuilder {
@@ -37,77 +37,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private AvailableDeviceInfo(
-      com.google.protobuf.CodedInputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws com.google.protobuf.InvalidProtocolBufferException {
-    this();
-    if (extensionRegistry == null) {
-      throw new java.lang.NullPointerException();
-    }
-    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
-        com.google.protobuf.UnknownFieldSet.newBuilder();
-    try {
-      boolean done = false;
-      while (!done) {
-        int tag = input.readTag();
-        switch (tag) {
-          case 0:
-            done = true;
-            break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            type_ = s;
-            break;
-          }
-          case 24: {
-
-            memoryLimit_ = input.readInt64();
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            physicalDescription_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
-        }
-      }
-    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-      throw e.setUnfinishedMessage(this);
-    } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
-    } finally {
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_AvailableDeviceInfo_descriptor;
+    return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_AvailableDeviceInfo_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_AvailableDeviceInfo_fieldAccessorTable
+    return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_AvailableDeviceInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.util.testlog.AvailableDeviceInfo.class, org.tensorflow.proto.util.testlog.AvailableDeviceInfo.Builder.class);
+            org.tensorflow.proto.AvailableDeviceInfo.class, org.tensorflow.proto.AvailableDeviceInfo.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
@@ -118,7 +58,9 @@ private AvailableDeviceInfo(
    * 
* * string name = 1; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -137,7 +79,9 @@ public java.lang.String getName() { * * * string name = 1; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -160,7 +104,9 @@ public java.lang.String getName() { * * * string type = 2; + * @return The type. */ + @java.lang.Override public java.lang.String getType() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { @@ -179,7 +125,9 @@ public java.lang.String getType() { * * * string type = 2; + * @return The bytes for type. */ + @java.lang.Override public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; @@ -202,7 +150,9 @@ public java.lang.String getType() { * * * int64 memory_limit = 3; + * @return The memoryLimit. */ + @java.lang.Override public long getMemoryLimit() { return memoryLimit_; } @@ -215,7 +165,9 @@ public long getMemoryLimit() { * * * string physical_description = 4; + * @return The physicalDescription. */ + @java.lang.Override public java.lang.String getPhysicalDescription() { java.lang.Object ref = physicalDescription_; if (ref instanceof java.lang.String) { @@ -234,7 +186,9 @@ public java.lang.String getPhysicalDescription() { * * * string physical_description = 4; + * @return The bytes for physicalDescription. */ + @java.lang.Override public com.google.protobuf.ByteString getPhysicalDescriptionBytes() { java.lang.Object ref = physicalDescription_; @@ -263,19 +217,19 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); } if (memoryLimit_ != 0L) { output.writeInt64(3, memoryLimit_); } - if (!getPhysicalDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(physicalDescription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, physicalDescription_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -284,20 +238,20 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); } if (memoryLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, memoryLimit_); } - if (!getPhysicalDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(physicalDescription_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, physicalDescription_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -307,10 +261,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.util.testlog.AvailableDeviceInfo)) { + if (!(obj instanceof org.tensorflow.proto.AvailableDeviceInfo)) { return super.equals(obj); } - org.tensorflow.proto.util.testlog.AvailableDeviceInfo other = (org.tensorflow.proto.util.testlog.AvailableDeviceInfo) obj; + org.tensorflow.proto.AvailableDeviceInfo other = (org.tensorflow.proto.AvailableDeviceInfo) obj; if (!getName() .equals(other.getName())) return false; @@ -320,7 +274,7 @@ public boolean equals(final java.lang.Object obj) { != other.getMemoryLimit()) return false; if (!getPhysicalDescription() .equals(other.getPhysicalDescription())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -340,74 +294,74 @@ public int hashCode() { getMemoryLimit()); hash = (37 * hash) + PHYSICAL_DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getPhysicalDescription().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.util.testlog.AvailableDeviceInfo parseFrom( + public static org.tensorflow.proto.AvailableDeviceInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.AvailableDeviceInfo parseFrom( + public static org.tensorflow.proto.AvailableDeviceInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.AvailableDeviceInfo parseFrom( + public static org.tensorflow.proto.AvailableDeviceInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.AvailableDeviceInfo parseFrom( + public static org.tensorflow.proto.AvailableDeviceInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.AvailableDeviceInfo parseFrom(byte[] data) + public static org.tensorflow.proto.AvailableDeviceInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.AvailableDeviceInfo parseFrom( + public static org.tensorflow.proto.AvailableDeviceInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.AvailableDeviceInfo parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.AvailableDeviceInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.AvailableDeviceInfo parseFrom( + public static org.tensorflow.proto.AvailableDeviceInfo 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 org.tensorflow.proto.util.testlog.AvailableDeviceInfo parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.AvailableDeviceInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.AvailableDeviceInfo parseDelimitedFrom( + public static org.tensorflow.proto.AvailableDeviceInfo 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 org.tensorflow.proto.util.testlog.AvailableDeviceInfo parseFrom( + public static org.tensorflow.proto.AvailableDeviceInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.AvailableDeviceInfo parseFrom( + public static org.tensorflow.proto.AvailableDeviceInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -420,7 +374,7 @@ public static org.tensorflow.proto.util.testlog.AvailableDeviceInfo parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.util.testlog.AvailableDeviceInfo prototype) { + public static Builder newBuilder(org.tensorflow.proto.AvailableDeviceInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -445,34 +399,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.AvailableDeviceInfo) - org.tensorflow.proto.util.testlog.AvailableDeviceInfoOrBuilder { + org.tensorflow.proto.AvailableDeviceInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_AvailableDeviceInfo_descriptor; + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_AvailableDeviceInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_AvailableDeviceInfo_fieldAccessorTable + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_AvailableDeviceInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.util.testlog.AvailableDeviceInfo.class, org.tensorflow.proto.util.testlog.AvailableDeviceInfo.Builder.class); + org.tensorflow.proto.AvailableDeviceInfo.class, org.tensorflow.proto.AvailableDeviceInfo.Builder.class); } - // Construct using org.tensorflow.proto.util.testlog.AvailableDeviceInfo.newBuilder() + // Construct using org.tensorflow.proto.AvailableDeviceInfo.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -491,17 +440,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_AvailableDeviceInfo_descriptor; + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_AvailableDeviceInfo_descriptor; } @java.lang.Override - public org.tensorflow.proto.util.testlog.AvailableDeviceInfo getDefaultInstanceForType() { - return org.tensorflow.proto.util.testlog.AvailableDeviceInfo.getDefaultInstance(); + public org.tensorflow.proto.AvailableDeviceInfo getDefaultInstanceForType() { + return org.tensorflow.proto.AvailableDeviceInfo.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.util.testlog.AvailableDeviceInfo build() { - org.tensorflow.proto.util.testlog.AvailableDeviceInfo result = buildPartial(); + public org.tensorflow.proto.AvailableDeviceInfo build() { + org.tensorflow.proto.AvailableDeviceInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -509,8 +458,8 @@ public org.tensorflow.proto.util.testlog.AvailableDeviceInfo build() { } @java.lang.Override - public org.tensorflow.proto.util.testlog.AvailableDeviceInfo buildPartial() { - org.tensorflow.proto.util.testlog.AvailableDeviceInfo result = new org.tensorflow.proto.util.testlog.AvailableDeviceInfo(this); + public org.tensorflow.proto.AvailableDeviceInfo buildPartial() { + org.tensorflow.proto.AvailableDeviceInfo result = new org.tensorflow.proto.AvailableDeviceInfo(this); result.name_ = name_; result.type_ = type_; result.memoryLimit_ = memoryLimit_; @@ -553,16 +502,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.util.testlog.AvailableDeviceInfo) { - return mergeFrom((org.tensorflow.proto.util.testlog.AvailableDeviceInfo)other); + if (other instanceof org.tensorflow.proto.AvailableDeviceInfo) { + return mergeFrom((org.tensorflow.proto.AvailableDeviceInfo)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.util.testlog.AvailableDeviceInfo other) { - if (other == org.tensorflow.proto.util.testlog.AvailableDeviceInfo.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.AvailableDeviceInfo other) { + if (other == org.tensorflow.proto.AvailableDeviceInfo.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -578,7 +527,7 @@ public Builder mergeFrom(org.tensorflow.proto.util.testlog.AvailableDeviceInfo o physicalDescription_ = other.physicalDescription_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -593,17 +542,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.util.testlog.AvailableDeviceInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + type_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + memoryLimit_ = input.readInt64(); + + break; + } // case 24 + case 34: { + physicalDescription_ = input.readStringRequireUtf8(); + + break; + } // case 34 + 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) { - parsedMessage = (org.tensorflow.proto.util.testlog.AvailableDeviceInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -614,6 +596,7 @@ public Builder mergeFrom( * * * string name = 1; + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -633,6 +616,7 @@ public java.lang.String getName() { * * * string name = 1; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -653,6 +637,8 @@ public java.lang.String getName() { * * * string name = 1; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { @@ -670,6 +656,7 @@ public Builder setName( * * * string name = 1; + * @return This builder for chaining. */ public Builder clearName() { @@ -683,6 +670,8 @@ public Builder clearName() { * * * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { @@ -703,6 +692,7 @@ public Builder setNameBytes( * * * string type = 2; + * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; @@ -722,6 +712,7 @@ public java.lang.String getType() { * * * string type = 2; + * @return The bytes for type. */ public com.google.protobuf.ByteString getTypeBytes() { @@ -742,6 +733,8 @@ public java.lang.String getType() { * * * string type = 2; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType( java.lang.String value) { @@ -759,6 +752,7 @@ public Builder setType( * * * string type = 2; + * @return This builder for chaining. */ public Builder clearType() { @@ -772,6 +766,8 @@ public Builder clearType() { * * * string type = 2; + * @param value The bytes for type to set. + * @return This builder for chaining. */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { @@ -792,7 +788,9 @@ public Builder setTypeBytes( * * * int64 memory_limit = 3; + * @return The memoryLimit. */ + @java.lang.Override public long getMemoryLimit() { return memoryLimit_; } @@ -802,6 +800,8 @@ public long getMemoryLimit() { * * * int64 memory_limit = 3; + * @param value The memoryLimit to set. + * @return This builder for chaining. */ public Builder setMemoryLimit(long value) { @@ -815,6 +815,7 @@ public Builder setMemoryLimit(long value) { * * * int64 memory_limit = 3; + * @return This builder for chaining. */ public Builder clearMemoryLimit() { @@ -830,6 +831,7 @@ public Builder clearMemoryLimit() { * * * string physical_description = 4; + * @return The physicalDescription. */ public java.lang.String getPhysicalDescription() { java.lang.Object ref = physicalDescription_; @@ -849,6 +851,7 @@ public java.lang.String getPhysicalDescription() { * * * string physical_description = 4; + * @return The bytes for physicalDescription. */ public com.google.protobuf.ByteString getPhysicalDescriptionBytes() { @@ -869,6 +872,8 @@ public java.lang.String getPhysicalDescription() { * * * string physical_description = 4; + * @param value The physicalDescription to set. + * @return This builder for chaining. */ public Builder setPhysicalDescription( java.lang.String value) { @@ -886,6 +891,7 @@ public Builder setPhysicalDescription( * * * string physical_description = 4; + * @return This builder for chaining. */ public Builder clearPhysicalDescription() { @@ -899,6 +905,8 @@ public Builder clearPhysicalDescription() { * * * string physical_description = 4; + * @param value The bytes for physicalDescription to set. + * @return This builder for chaining. */ public Builder setPhysicalDescriptionBytes( com.google.protobuf.ByteString value) { @@ -928,12 +936,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.AvailableDeviceInfo) - private static final org.tensorflow.proto.util.testlog.AvailableDeviceInfo DEFAULT_INSTANCE; + private static final org.tensorflow.proto.AvailableDeviceInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.util.testlog.AvailableDeviceInfo(); + DEFAULT_INSTANCE = new org.tensorflow.proto.AvailableDeviceInfo(); } - public static org.tensorflow.proto.util.testlog.AvailableDeviceInfo getDefaultInstance() { + public static org.tensorflow.proto.AvailableDeviceInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -944,7 +952,18 @@ public AvailableDeviceInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AvailableDeviceInfo(input, extensionRegistry); + 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(); } }; @@ -958,7 +977,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.util.testlog.AvailableDeviceInfo getDefaultInstanceForType() { + public org.tensorflow.proto.AvailableDeviceInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/AvailableDeviceInfoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AvailableDeviceInfoOrBuilder.java similarity index 81% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/AvailableDeviceInfoOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AvailableDeviceInfoOrBuilder.java index 138fcf086ef..d45d0fe1578 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/AvailableDeviceInfoOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/AvailableDeviceInfoOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/util/test_log.proto +// source: tensorflow/tsl/protobuf/test_log.proto -package org.tensorflow.proto.util.testlog; +package org.tensorflow.proto; public interface AvailableDeviceInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.AvailableDeviceInfo) @@ -13,6 +13,7 @@ public interface AvailableDeviceInfoOrBuilder extends * * * string name = 1; + * @return The name. */ java.lang.String getName(); /** @@ -21,6 +22,7 @@ public interface AvailableDeviceInfoOrBuilder extends * * * string name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -31,6 +33,7 @@ public interface AvailableDeviceInfoOrBuilder extends * * * string type = 2; + * @return The type. */ java.lang.String getType(); /** @@ -39,6 +42,7 @@ public interface AvailableDeviceInfoOrBuilder extends * * * string type = 2; + * @return The bytes for type. */ com.google.protobuf.ByteString getTypeBytes(); @@ -49,6 +53,7 @@ public interface AvailableDeviceInfoOrBuilder extends * * * int64 memory_limit = 3; + * @return The memoryLimit. */ long getMemoryLimit(); @@ -58,6 +63,7 @@ public interface AvailableDeviceInfoOrBuilder extends * * * string physical_description = 4; + * @return The physicalDescription. */ java.lang.String getPhysicalDescription(); /** @@ -66,6 +72,7 @@ public interface AvailableDeviceInfoOrBuilder extends * * * string physical_description = 4; + * @return The bytes for physicalDescription. */ com.google.protobuf.ByteString getPhysicalDescriptionBytes(); diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BenchmarkEntries.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BenchmarkEntries.java new file mode 100644 index 00000000000..ec7feaee0dc --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BenchmarkEntries.java @@ -0,0 +1,752 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/tsl/protobuf/test_log.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.BenchmarkEntries} + */ +public final class BenchmarkEntries extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.BenchmarkEntries) + BenchmarkEntriesOrBuilder { +private static final long serialVersionUID = 0L; + // Use BenchmarkEntries.newBuilder() to construct. + private BenchmarkEntries(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BenchmarkEntries() { + entry_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BenchmarkEntries(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_BenchmarkEntries_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_BenchmarkEntries_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.BenchmarkEntries.class, org.tensorflow.proto.BenchmarkEntries.Builder.class); + } + + public static final int ENTRY_FIELD_NUMBER = 1; + private java.util.List entry_; + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + @java.lang.Override + public java.util.List getEntryList() { + return entry_; + } + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + @java.lang.Override + public java.util.List + getEntryOrBuilderList() { + return entry_; + } + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + @java.lang.Override + public int getEntryCount() { + return entry_.size(); + } + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + @java.lang.Override + public org.tensorflow.proto.BenchmarkEntry getEntry(int index) { + return entry_.get(index); + } + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + @java.lang.Override + public org.tensorflow.proto.BenchmarkEntryOrBuilder getEntryOrBuilder( + int index) { + return entry_.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 < entry_.size(); i++) { + output.writeMessage(1, entry_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entry_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, entry_.get(i)); + } + 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 org.tensorflow.proto.BenchmarkEntries)) { + return super.equals(obj); + } + org.tensorflow.proto.BenchmarkEntries other = (org.tensorflow.proto.BenchmarkEntries) obj; + + if (!getEntryList() + .equals(other.getEntryList())) 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 (getEntryCount() > 0) { + hash = (37 * hash) + ENTRY_FIELD_NUMBER; + hash = (53 * hash) + getEntryList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.BenchmarkEntries parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BenchmarkEntries parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BenchmarkEntries parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BenchmarkEntries parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BenchmarkEntries parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BenchmarkEntries parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BenchmarkEntries parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BenchmarkEntries 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 org.tensorflow.proto.BenchmarkEntries parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BenchmarkEntries 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 org.tensorflow.proto.BenchmarkEntries parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BenchmarkEntries 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(org.tensorflow.proto.BenchmarkEntries prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.BenchmarkEntries} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.BenchmarkEntries) + org.tensorflow.proto.BenchmarkEntriesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_BenchmarkEntries_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_BenchmarkEntries_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.BenchmarkEntries.class, org.tensorflow.proto.BenchmarkEntries.Builder.class); + } + + // Construct using org.tensorflow.proto.BenchmarkEntries.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (entryBuilder_ == null) { + entry_ = java.util.Collections.emptyList(); + } else { + entry_ = null; + entryBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_BenchmarkEntries_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.BenchmarkEntries getDefaultInstanceForType() { + return org.tensorflow.proto.BenchmarkEntries.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.BenchmarkEntries build() { + org.tensorflow.proto.BenchmarkEntries result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.BenchmarkEntries buildPartial() { + org.tensorflow.proto.BenchmarkEntries result = new org.tensorflow.proto.BenchmarkEntries(this); + int from_bitField0_ = bitField0_; + if (entryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + entry_ = java.util.Collections.unmodifiableList(entry_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entry_ = entry_; + } else { + result.entry_ = entryBuilder_.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 org.tensorflow.proto.BenchmarkEntries) { + return mergeFrom((org.tensorflow.proto.BenchmarkEntries)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.BenchmarkEntries other) { + if (other == org.tensorflow.proto.BenchmarkEntries.getDefaultInstance()) return this; + if (entryBuilder_ == null) { + if (!other.entry_.isEmpty()) { + if (entry_.isEmpty()) { + entry_ = other.entry_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntryIsMutable(); + entry_.addAll(other.entry_); + } + onChanged(); + } + } else { + if (!other.entry_.isEmpty()) { + if (entryBuilder_.isEmpty()) { + entryBuilder_.dispose(); + entryBuilder_ = null; + entry_ = other.entry_; + bitField0_ = (bitField0_ & ~0x00000001); + entryBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEntryFieldBuilder() : null; + } else { + entryBuilder_.addAllMessages(other.entry_); + } + } + } + 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: { + org.tensorflow.proto.BenchmarkEntry m = + input.readMessage( + org.tensorflow.proto.BenchmarkEntry.parser(), + extensionRegistry); + if (entryBuilder_ == null) { + ensureEntryIsMutable(); + entry_.add(m); + } else { + entryBuilder_.addMessage(m); + } + 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.util.List entry_ = + java.util.Collections.emptyList(); + private void ensureEntryIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + entry_ = new java.util.ArrayList(entry_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.BenchmarkEntry, org.tensorflow.proto.BenchmarkEntry.Builder, org.tensorflow.proto.BenchmarkEntryOrBuilder> entryBuilder_; + + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + public java.util.List getEntryList() { + if (entryBuilder_ == null) { + return java.util.Collections.unmodifiableList(entry_); + } else { + return entryBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + public int getEntryCount() { + if (entryBuilder_ == null) { + return entry_.size(); + } else { + return entryBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + public org.tensorflow.proto.BenchmarkEntry getEntry(int index) { + if (entryBuilder_ == null) { + return entry_.get(index); + } else { + return entryBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + public Builder setEntry( + int index, org.tensorflow.proto.BenchmarkEntry value) { + if (entryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntryIsMutable(); + entry_.set(index, value); + onChanged(); + } else { + entryBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + public Builder setEntry( + int index, org.tensorflow.proto.BenchmarkEntry.Builder builderForValue) { + if (entryBuilder_ == null) { + ensureEntryIsMutable(); + entry_.set(index, builderForValue.build()); + onChanged(); + } else { + entryBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + public Builder addEntry(org.tensorflow.proto.BenchmarkEntry value) { + if (entryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntryIsMutable(); + entry_.add(value); + onChanged(); + } else { + entryBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + public Builder addEntry( + int index, org.tensorflow.proto.BenchmarkEntry value) { + if (entryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntryIsMutable(); + entry_.add(index, value); + onChanged(); + } else { + entryBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + public Builder addEntry( + org.tensorflow.proto.BenchmarkEntry.Builder builderForValue) { + if (entryBuilder_ == null) { + ensureEntryIsMutable(); + entry_.add(builderForValue.build()); + onChanged(); + } else { + entryBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + public Builder addEntry( + int index, org.tensorflow.proto.BenchmarkEntry.Builder builderForValue) { + if (entryBuilder_ == null) { + ensureEntryIsMutable(); + entry_.add(index, builderForValue.build()); + onChanged(); + } else { + entryBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + public Builder addAllEntry( + java.lang.Iterable values) { + if (entryBuilder_ == null) { + ensureEntryIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entry_); + onChanged(); + } else { + entryBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + public Builder clearEntry() { + if (entryBuilder_ == null) { + entry_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entryBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + public Builder removeEntry(int index) { + if (entryBuilder_ == null) { + ensureEntryIsMutable(); + entry_.remove(index); + onChanged(); + } else { + entryBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + public org.tensorflow.proto.BenchmarkEntry.Builder getEntryBuilder( + int index) { + return getEntryFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + public org.tensorflow.proto.BenchmarkEntryOrBuilder getEntryOrBuilder( + int index) { + if (entryBuilder_ == null) { + return entry_.get(index); } else { + return entryBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + public java.util.List + getEntryOrBuilderList() { + if (entryBuilder_ != null) { + return entryBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entry_); + } + } + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + public org.tensorflow.proto.BenchmarkEntry.Builder addEntryBuilder() { + return getEntryFieldBuilder().addBuilder( + org.tensorflow.proto.BenchmarkEntry.getDefaultInstance()); + } + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + public org.tensorflow.proto.BenchmarkEntry.Builder addEntryBuilder( + int index) { + return getEntryFieldBuilder().addBuilder( + index, org.tensorflow.proto.BenchmarkEntry.getDefaultInstance()); + } + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + public java.util.List + getEntryBuilderList() { + return getEntryFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.BenchmarkEntry, org.tensorflow.proto.BenchmarkEntry.Builder, org.tensorflow.proto.BenchmarkEntryOrBuilder> + getEntryFieldBuilder() { + if (entryBuilder_ == null) { + entryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.BenchmarkEntry, org.tensorflow.proto.BenchmarkEntry.Builder, org.tensorflow.proto.BenchmarkEntryOrBuilder>( + entry_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + entry_ = null; + } + return entryBuilder_; + } + @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:tensorflow.BenchmarkEntries) + } + + // @@protoc_insertion_point(class_scope:tensorflow.BenchmarkEntries) + private static final org.tensorflow.proto.BenchmarkEntries DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.BenchmarkEntries(); + } + + public static org.tensorflow.proto.BenchmarkEntries getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BenchmarkEntries 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 org.tensorflow.proto.BenchmarkEntries getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BenchmarkEntriesOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BenchmarkEntriesOrBuilder.java new file mode 100644 index 00000000000..4dbcf288d60 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BenchmarkEntriesOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/tsl/protobuf/test_log.proto + +package org.tensorflow.proto; + +public interface BenchmarkEntriesOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.BenchmarkEntries) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + java.util.List + getEntryList(); + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + org.tensorflow.proto.BenchmarkEntry getEntry(int index); + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + int getEntryCount(); + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + java.util.List + getEntryOrBuilderList(); + /** + * repeated .tensorflow.BenchmarkEntry entry = 1; + */ + org.tensorflow.proto.BenchmarkEntryOrBuilder getEntryOrBuilder( + int index); +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/BenchmarkEntry.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BenchmarkEntry.java similarity index 76% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/BenchmarkEntry.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BenchmarkEntry.java index b83843aa744..5be24abea1b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/BenchmarkEntry.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BenchmarkEntry.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/util/test_log.proto +// source: tensorflow/tsl/protobuf/test_log.proto -package org.tensorflow.proto.util.testlog; +package org.tensorflow.proto; /** *
@@ -15,7 +15,7 @@
  *
  * Protobuf type {@code tensorflow.BenchmarkEntry}
  */
-public  final class BenchmarkEntry extends
+public final class BenchmarkEntry extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.BenchmarkEntry)
     BenchmarkEntryOrBuilder {
@@ -41,98 +41,9 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private BenchmarkEntry(
-      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: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 16: {
-
-            iters_ = input.readInt64();
-            break;
-          }
-          case 25: {
-
-            cpuTime_ = input.readDouble();
-            break;
-          }
-          case 33: {
-
-            wallTime_ = input.readDouble();
-            break;
-          }
-          case 41: {
-
-            throughput_ = input.readDouble();
-            break;
-          }
-          case 50: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              extras_ = com.google.protobuf.MapField.newMapField(
-                  ExtrasDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
-            }
-            com.google.protobuf.MapEntry
-            extras__ = input.readMessage(
-                ExtrasDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            extras_.getMutableMap().put(
-                extras__.getKey(), extras__.getValue());
-            break;
-          }
-          case 58: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              metrics_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
-            }
-            metrics_.add(
-                input.readMessage(org.tensorflow.proto.util.testlog.MetricEntry.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_ & 0x00000002) != 0)) {
-        metrics_ = java.util.Collections.unmodifiableList(metrics_);
-      }
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_BenchmarkEntry_descriptor;
+    return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_BenchmarkEntry_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
@@ -150,9 +61,9 @@ protected com.google.protobuf.MapField internalGetMapField(
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_BenchmarkEntry_fieldAccessorTable
+    return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_BenchmarkEntry_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.util.testlog.BenchmarkEntry.class, org.tensorflow.proto.util.testlog.BenchmarkEntry.Builder.class);
+            org.tensorflow.proto.BenchmarkEntry.class, org.tensorflow.proto.BenchmarkEntry.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
@@ -164,7 +75,9 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -184,7 +97,9 @@ public java.lang.String getName() { * * * string name = 1; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -207,7 +122,9 @@ public java.lang.String getName() { * * * int64 iters = 2; + * @return The iters. */ + @java.lang.Override public long getIters() { return iters_; } @@ -220,7 +137,9 @@ public long getIters() { * * * double cpu_time = 3; + * @return The cpuTime. */ + @java.lang.Override public double getCpuTime() { return cpuTime_; } @@ -233,7 +152,9 @@ public double getCpuTime() { * * * double wall_time = 4; + * @return The wallTime. */ + @java.lang.Override public double getWallTime() { return wallTime_; } @@ -246,7 +167,9 @@ public double getWallTime() { * * * double throughput = 5; + * @return The throughput. */ + @java.lang.Override public double getThroughput() { return throughput_; } @@ -254,18 +177,18 @@ public double getThroughput() { public static final int EXTRAS_FIELD_NUMBER = 6; private static final class ExtrasDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, org.tensorflow.proto.util.testlog.EntryValue> defaultEntry = + java.lang.String, org.tensorflow.proto.EntryValue> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_BenchmarkEntry_ExtrasEntry_descriptor, + .newDefaultInstance( + org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_BenchmarkEntry_ExtrasEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.tensorflow.proto.util.testlog.EntryValue.getDefaultInstance()); + org.tensorflow.proto.EntryValue.getDefaultInstance()); } private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.util.testlog.EntryValue> extras_; - private com.google.protobuf.MapField + java.lang.String, org.tensorflow.proto.EntryValue> extras_; + private com.google.protobuf.MapField internalGetExtras() { if (extras_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -285,16 +208,18 @@ public int getExtrasCount() { * map<string, .tensorflow.EntryValue> extras = 6; */ + @java.lang.Override public boolean containsExtras( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } return internalGetExtras().getMap().containsKey(key); } /** * Use {@link #getExtrasMap()} instead. */ + @java.lang.Override @java.lang.Deprecated - public java.util.Map getExtras() { + public java.util.Map getExtras() { return getExtrasMap(); } /** @@ -304,8 +229,9 @@ public java.util.Mapmap<string, .tensorflow.EntryValue> extras = 6; */ + @java.lang.Override - public java.util.Map getExtrasMap() { + public java.util.Map getExtrasMap() { return internalGetExtras().getMap(); } /** @@ -315,12 +241,13 @@ public java.util.Mapmap<string, .tensorflow.EntryValue> extras = 6; */ + @java.lang.Override - public org.tensorflow.proto.util.testlog.EntryValue getExtrasOrDefault( + public org.tensorflow.proto.EntryValue getExtrasOrDefault( java.lang.String key, - org.tensorflow.proto.util.testlog.EntryValue defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = + org.tensorflow.proto.EntryValue defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetExtras().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @@ -331,11 +258,12 @@ public org.tensorflow.proto.util.testlog.EntryValue getExtrasOrDefault( * * map<string, .tensorflow.EntryValue> extras = 6; */ + @java.lang.Override - public org.tensorflow.proto.util.testlog.EntryValue getExtrasOrThrow( + public org.tensorflow.proto.EntryValue getExtrasOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetExtras().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); @@ -344,7 +272,7 @@ public org.tensorflow.proto.util.testlog.EntryValue getExtrasOrThrow( } public static final int METRICS_FIELD_NUMBER = 7; - private java.util.List metrics_; + private java.util.List metrics_; /** *
    * Metric name, value and expected range. This can include accuracy metrics
@@ -353,7 +281,8 @@ public org.tensorflow.proto.util.testlog.EntryValue getExtrasOrThrow(
    *
    * repeated .tensorflow.MetricEntry metrics = 7;
    */
-  public java.util.List getMetricsList() {
+  @java.lang.Override
+  public java.util.List getMetricsList() {
     return metrics_;
   }
   /**
@@ -364,7 +293,8 @@ public java.util.List getMetricsL
    *
    * repeated .tensorflow.MetricEntry metrics = 7;
    */
-  public java.util.List 
+  @java.lang.Override
+  public java.util.List 
       getMetricsOrBuilderList() {
     return metrics_;
   }
@@ -376,6 +306,7 @@ public java.util.List getMetricsL
    *
    * repeated .tensorflow.MetricEntry metrics = 7;
    */
+  @java.lang.Override
   public int getMetricsCount() {
     return metrics_.size();
   }
@@ -387,7 +318,8 @@ public int getMetricsCount() {
    *
    * repeated .tensorflow.MetricEntry metrics = 7;
    */
-  public org.tensorflow.proto.util.testlog.MetricEntry getMetrics(int index) {
+  @java.lang.Override
+  public org.tensorflow.proto.MetricEntry getMetrics(int index) {
     return metrics_.get(index);
   }
   /**
@@ -398,7 +330,8 @@ public org.tensorflow.proto.util.testlog.MetricEntry getMetrics(int index) {
    *
    * repeated .tensorflow.MetricEntry metrics = 7;
    */
-  public org.tensorflow.proto.util.testlog.MetricEntryOrBuilder getMetricsOrBuilder(
+  @java.lang.Override
+  public org.tensorflow.proto.MetricEntryOrBuilder getMetricsOrBuilder(
       int index) {
     return metrics_.get(index);
   }
@@ -417,19 +350,19 @@ public final boolean isInitialized() {
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output)
                       throws java.io.IOException {
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
     if (iters_ != 0L) {
       output.writeInt64(2, iters_);
     }
-    if (cpuTime_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(cpuTime_) != 0) {
       output.writeDouble(3, cpuTime_);
     }
-    if (wallTime_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(wallTime_) != 0) {
       output.writeDouble(4, wallTime_);
     }
-    if (throughput_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(throughput_) != 0) {
       output.writeDouble(5, throughput_);
     }
     com.google.protobuf.GeneratedMessageV3
@@ -441,7 +374,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     for (int i = 0; i < metrics_.size(); i++) {
       output.writeMessage(7, metrics_.get(i));
     }
-    unknownFields.writeTo(output);
+    getUnknownFields().writeTo(output);
   }
 
   @java.lang.Override
@@ -450,28 +383,28 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (iters_ != 0L) {
       size += com.google.protobuf.CodedOutputStream
         .computeInt64Size(2, iters_);
     }
-    if (cpuTime_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(cpuTime_) != 0) {
       size += com.google.protobuf.CodedOutputStream
         .computeDoubleSize(3, cpuTime_);
     }
-    if (wallTime_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(wallTime_) != 0) {
       size += com.google.protobuf.CodedOutputStream
         .computeDoubleSize(4, wallTime_);
     }
-    if (throughput_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(throughput_) != 0) {
       size += com.google.protobuf.CodedOutputStream
         .computeDoubleSize(5, throughput_);
     }
-    for (java.util.Map.Entry entry
+    for (java.util.Map.Entry entry
          : internalGetExtras().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
+      com.google.protobuf.MapEntry
       extras__ = ExtrasDefaultEntryHolder.defaultEntry.newBuilderForType()
           .setKey(entry.getKey())
           .setValue(entry.getValue())
@@ -483,7 +416,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
         .computeMessageSize(7, metrics_.get(i));
     }
-    size += unknownFields.getSerializedSize();
+    size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
     return size;
   }
@@ -493,10 +426,10 @@ public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
      return true;
     }
-    if (!(obj instanceof org.tensorflow.proto.util.testlog.BenchmarkEntry)) {
+    if (!(obj instanceof org.tensorflow.proto.BenchmarkEntry)) {
       return super.equals(obj);
     }
-    org.tensorflow.proto.util.testlog.BenchmarkEntry other = (org.tensorflow.proto.util.testlog.BenchmarkEntry) obj;
+    org.tensorflow.proto.BenchmarkEntry other = (org.tensorflow.proto.BenchmarkEntry) obj;
 
     if (!getName()
         .equals(other.getName())) return false;
@@ -515,7 +448,7 @@ public boolean equals(final java.lang.Object obj) {
         other.internalGetExtras())) return false;
     if (!getMetricsList()
         .equals(other.getMetricsList())) return false;
-    if (!unknownFields.equals(other.unknownFields)) return false;
+    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
 
@@ -548,74 +481,74 @@ public int hashCode() {
       hash = (37 * hash) + METRICS_FIELD_NUMBER;
       hash = (53 * hash) + getMetricsList().hashCode();
     }
-    hash = (29 * hash) + unknownFields.hashCode();
+    hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
     return hash;
   }
 
-  public static org.tensorflow.proto.util.testlog.BenchmarkEntry parseFrom(
+  public static org.tensorflow.proto.BenchmarkEntry parseFrom(
       java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.util.testlog.BenchmarkEntry parseFrom(
+  public static org.tensorflow.proto.BenchmarkEntry parseFrom(
       java.nio.ByteBuffer data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.util.testlog.BenchmarkEntry parseFrom(
+  public static org.tensorflow.proto.BenchmarkEntry parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.util.testlog.BenchmarkEntry parseFrom(
+  public static org.tensorflow.proto.BenchmarkEntry parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.util.testlog.BenchmarkEntry parseFrom(byte[] data)
+  public static org.tensorflow.proto.BenchmarkEntry parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.util.testlog.BenchmarkEntry parseFrom(
+  public static org.tensorflow.proto.BenchmarkEntry parseFrom(
       byte[] data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.util.testlog.BenchmarkEntry parseFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.BenchmarkEntry parseFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.util.testlog.BenchmarkEntry parseFrom(
+  public static org.tensorflow.proto.BenchmarkEntry 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 org.tensorflow.proto.util.testlog.BenchmarkEntry parseDelimitedFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.BenchmarkEntry parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.util.testlog.BenchmarkEntry parseDelimitedFrom(
+  public static org.tensorflow.proto.BenchmarkEntry 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 org.tensorflow.proto.util.testlog.BenchmarkEntry parseFrom(
+  public static org.tensorflow.proto.BenchmarkEntry parseFrom(
       com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.util.testlog.BenchmarkEntry parseFrom(
+  public static org.tensorflow.proto.BenchmarkEntry parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
@@ -628,7 +561,7 @@ public static org.tensorflow.proto.util.testlog.BenchmarkEntry parseFrom(
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(org.tensorflow.proto.util.testlog.BenchmarkEntry prototype) {
+  public static Builder newBuilder(org.tensorflow.proto.BenchmarkEntry prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
   @java.lang.Override
@@ -658,10 +591,10 @@ protected Builder newBuilderForType(
   public static final class Builder extends
       com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:tensorflow.BenchmarkEntry)
-      org.tensorflow.proto.util.testlog.BenchmarkEntryOrBuilder {
+      org.tensorflow.proto.BenchmarkEntryOrBuilder {
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_BenchmarkEntry_descriptor;
+      return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_BenchmarkEntry_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
@@ -689,26 +622,20 @@ protected com.google.protobuf.MapField internalGetMutableMapField(
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_BenchmarkEntry_fieldAccessorTable
+      return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_BenchmarkEntry_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              org.tensorflow.proto.util.testlog.BenchmarkEntry.class, org.tensorflow.proto.util.testlog.BenchmarkEntry.Builder.class);
+              org.tensorflow.proto.BenchmarkEntry.class, org.tensorflow.proto.BenchmarkEntry.Builder.class);
     }
 
-    // Construct using org.tensorflow.proto.util.testlog.BenchmarkEntry.newBuilder()
+    // Construct using org.tensorflow.proto.BenchmarkEntry.newBuilder()
     private Builder() {
-      maybeForceBuilderInitialization();
+
     }
 
     private Builder(
         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-      maybeForceBuilderInitialization();
-    }
-    private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-        getMetricsFieldBuilder();
-      }
+
     }
     @java.lang.Override
     public Builder clear() {
@@ -726,27 +653,28 @@ public Builder clear() {
       internalGetMutableExtras().clear();
       if (metricsBuilder_ == null) {
         metrics_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000002);
       } else {
+        metrics_ = null;
         metricsBuilder_.clear();
       }
+      bitField0_ = (bitField0_ & ~0x00000002);
       return this;
     }
 
     @java.lang.Override
     public com.google.protobuf.Descriptors.Descriptor
         getDescriptorForType() {
-      return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_BenchmarkEntry_descriptor;
+      return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_BenchmarkEntry_descriptor;
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.util.testlog.BenchmarkEntry getDefaultInstanceForType() {
-      return org.tensorflow.proto.util.testlog.BenchmarkEntry.getDefaultInstance();
+    public org.tensorflow.proto.BenchmarkEntry getDefaultInstanceForType() {
+      return org.tensorflow.proto.BenchmarkEntry.getDefaultInstance();
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.util.testlog.BenchmarkEntry build() {
-      org.tensorflow.proto.util.testlog.BenchmarkEntry result = buildPartial();
+    public org.tensorflow.proto.BenchmarkEntry build() {
+      org.tensorflow.proto.BenchmarkEntry result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -754,8 +682,8 @@ public org.tensorflow.proto.util.testlog.BenchmarkEntry build() {
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.util.testlog.BenchmarkEntry buildPartial() {
-      org.tensorflow.proto.util.testlog.BenchmarkEntry result = new org.tensorflow.proto.util.testlog.BenchmarkEntry(this);
+    public org.tensorflow.proto.BenchmarkEntry buildPartial() {
+      org.tensorflow.proto.BenchmarkEntry result = new org.tensorflow.proto.BenchmarkEntry(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.iters_ = iters_;
@@ -811,16 +739,16 @@ public Builder addRepeatedField(
     }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof org.tensorflow.proto.util.testlog.BenchmarkEntry) {
-        return mergeFrom((org.tensorflow.proto.util.testlog.BenchmarkEntry)other);
+      if (other instanceof org.tensorflow.proto.BenchmarkEntry) {
+        return mergeFrom((org.tensorflow.proto.BenchmarkEntry)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(org.tensorflow.proto.util.testlog.BenchmarkEntry other) {
-      if (other == org.tensorflow.proto.util.testlog.BenchmarkEntry.getDefaultInstance()) return this;
+    public Builder mergeFrom(org.tensorflow.proto.BenchmarkEntry other) {
+      if (other == org.tensorflow.proto.BenchmarkEntry.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -865,7 +793,7 @@ public Builder mergeFrom(org.tensorflow.proto.util.testlog.BenchmarkEntry other)
           }
         }
       }
-      this.mergeUnknownFields(other.unknownFields);
+      this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
     }
@@ -880,17 +808,76 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      org.tensorflow.proto.util.testlog.BenchmarkEntry parsedMessage = null;
+      if (extensionRegistry == null) {
+        throw new java.lang.NullPointerException();
+      }
       try {
-        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+        boolean done = false;
+        while (!done) {
+          int tag = input.readTag();
+          switch (tag) {
+            case 0:
+              done = true;
+              break;
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 16: {
+              iters_ = input.readInt64();
+
+              break;
+            } // case 16
+            case 25: {
+              cpuTime_ = input.readDouble();
+
+              break;
+            } // case 25
+            case 33: {
+              wallTime_ = input.readDouble();
+
+              break;
+            } // case 33
+            case 41: {
+              throughput_ = input.readDouble();
+
+              break;
+            } // case 41
+            case 50: {
+              com.google.protobuf.MapEntry
+              extras__ = input.readMessage(
+                  ExtrasDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableExtras().getMutableMap().put(
+                  extras__.getKey(), extras__.getValue());
+              break;
+            } // case 50
+            case 58: {
+              org.tensorflow.proto.MetricEntry m =
+                  input.readMessage(
+                      org.tensorflow.proto.MetricEntry.parser(),
+                      extensionRegistry);
+              if (metricsBuilder_ == null) {
+                ensureMetricsIsMutable();
+                metrics_.add(m);
+              } else {
+                metricsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 58
+            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) {
-        parsedMessage = (org.tensorflow.proto.util.testlog.BenchmarkEntry) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
-        if (parsedMessage != null) {
-          mergeFrom(parsedMessage);
-        }
-      }
+        onChanged();
+      } // finally
       return this;
     }
     private int bitField0_;
@@ -903,6 +890,7 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -923,6 +911,7 @@ public java.lang.String getName() { * * * string name = 1; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -944,6 +933,8 @@ public java.lang.String getName() { * * * string name = 1; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { @@ -962,6 +953,7 @@ public Builder setName( * * * string name = 1; + * @return This builder for chaining. */ public Builder clearName() { @@ -976,6 +968,8 @@ public Builder clearName() { * * * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { @@ -996,7 +990,9 @@ public Builder setNameBytes( * * * int64 iters = 2; + * @return The iters. */ + @java.lang.Override public long getIters() { return iters_; } @@ -1006,6 +1002,8 @@ public long getIters() { * * * int64 iters = 2; + * @param value The iters to set. + * @return This builder for chaining. */ public Builder setIters(long value) { @@ -1019,6 +1017,7 @@ public Builder setIters(long value) { * * * int64 iters = 2; + * @return This builder for chaining. */ public Builder clearIters() { @@ -1034,7 +1033,9 @@ public Builder clearIters() { * * * double cpu_time = 3; + * @return The cpuTime. */ + @java.lang.Override public double getCpuTime() { return cpuTime_; } @@ -1044,6 +1045,8 @@ public double getCpuTime() { * * * double cpu_time = 3; + * @param value The cpuTime to set. + * @return This builder for chaining. */ public Builder setCpuTime(double value) { @@ -1057,6 +1060,7 @@ public Builder setCpuTime(double value) { * * * double cpu_time = 3; + * @return This builder for chaining. */ public Builder clearCpuTime() { @@ -1072,7 +1076,9 @@ public Builder clearCpuTime() { * * * double wall_time = 4; + * @return The wallTime. */ + @java.lang.Override public double getWallTime() { return wallTime_; } @@ -1082,6 +1088,8 @@ public double getWallTime() { * * * double wall_time = 4; + * @param value The wallTime to set. + * @return This builder for chaining. */ public Builder setWallTime(double value) { @@ -1095,6 +1103,7 @@ public Builder setWallTime(double value) { * * * double wall_time = 4; + * @return This builder for chaining. */ public Builder clearWallTime() { @@ -1110,7 +1119,9 @@ public Builder clearWallTime() { * * * double throughput = 5; + * @return The throughput. */ + @java.lang.Override public double getThroughput() { return throughput_; } @@ -1120,6 +1131,8 @@ public double getThroughput() { * * * double throughput = 5; + * @param value The throughput to set. + * @return This builder for chaining. */ public Builder setThroughput(double value) { @@ -1133,6 +1146,7 @@ public Builder setThroughput(double value) { * * * double throughput = 5; + * @return This builder for chaining. */ public Builder clearThroughput() { @@ -1142,8 +1156,8 @@ public Builder clearThroughput() { } private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.util.testlog.EntryValue> extras_; - private com.google.protobuf.MapField + java.lang.String, org.tensorflow.proto.EntryValue> extras_; + private com.google.protobuf.MapField internalGetExtras() { if (extras_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -1151,7 +1165,7 @@ public Builder clearThroughput() { } return extras_; } - private com.google.protobuf.MapField + private com.google.protobuf.MapField internalGetMutableExtras() { onChanged();; if (extras_ == null) { @@ -1175,16 +1189,18 @@ public int getExtrasCount() { * map<string, .tensorflow.EntryValue> extras = 6; */ + @java.lang.Override public boolean containsExtras( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } return internalGetExtras().getMap().containsKey(key); } /** * Use {@link #getExtrasMap()} instead. */ + @java.lang.Override @java.lang.Deprecated - public java.util.Map getExtras() { + public java.util.Map getExtras() { return getExtrasMap(); } /** @@ -1194,8 +1210,9 @@ public java.util.Mapmap<string, .tensorflow.EntryValue> extras = 6; */ + @java.lang.Override - public java.util.Map getExtrasMap() { + public java.util.Map getExtrasMap() { return internalGetExtras().getMap(); } /** @@ -1205,12 +1222,13 @@ public java.util.Mapmap<string, .tensorflow.EntryValue> extras = 6; */ + @java.lang.Override - public org.tensorflow.proto.util.testlog.EntryValue getExtrasOrDefault( + public org.tensorflow.proto.EntryValue getExtrasOrDefault( java.lang.String key, - org.tensorflow.proto.util.testlog.EntryValue defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = + org.tensorflow.proto.EntryValue defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetExtras().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @@ -1221,11 +1239,12 @@ public org.tensorflow.proto.util.testlog.EntryValue getExtrasOrDefault( * * map<string, .tensorflow.EntryValue> extras = 6; */ + @java.lang.Override - public org.tensorflow.proto.util.testlog.EntryValue getExtrasOrThrow( + public org.tensorflow.proto.EntryValue getExtrasOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetExtras().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); @@ -1248,7 +1267,7 @@ public Builder clearExtras() { public Builder removeExtras( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } internalGetMutableExtras().getMutableMap() .remove(key); return this; @@ -1257,7 +1276,7 @@ public Builder removeExtras( * Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map + public java.util.Map getMutableExtras() { return internalGetMutableExtras().getMutableMap(); } @@ -1270,9 +1289,12 @@ public Builder removeExtras( */ public Builder putExtras( java.lang.String key, - org.tensorflow.proto.util.testlog.EntryValue value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } + org.tensorflow.proto.EntryValue value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + internalGetMutableExtras().getMutableMap() .put(key, value); return this; @@ -1286,23 +1308,23 @@ public Builder putExtras( */ public Builder putAllExtras( - java.util.Map values) { + java.util.Map values) { internalGetMutableExtras().getMutableMap() .putAll(values); return this; } - private java.util.List metrics_ = + private java.util.List metrics_ = java.util.Collections.emptyList(); private void ensureMetricsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - metrics_ = new java.util.ArrayList(metrics_); + metrics_ = new java.util.ArrayList(metrics_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.util.testlog.MetricEntry, org.tensorflow.proto.util.testlog.MetricEntry.Builder, org.tensorflow.proto.util.testlog.MetricEntryOrBuilder> metricsBuilder_; + org.tensorflow.proto.MetricEntry, org.tensorflow.proto.MetricEntry.Builder, org.tensorflow.proto.MetricEntryOrBuilder> metricsBuilder_; /** *
@@ -1312,7 +1334,7 @@ private void ensureMetricsIsMutable() {
      *
      * repeated .tensorflow.MetricEntry metrics = 7;
      */
-    public java.util.List getMetricsList() {
+    public java.util.List getMetricsList() {
       if (metricsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(metrics_);
       } else {
@@ -1342,7 +1364,7 @@ public int getMetricsCount() {
      *
      * repeated .tensorflow.MetricEntry metrics = 7;
      */
-    public org.tensorflow.proto.util.testlog.MetricEntry getMetrics(int index) {
+    public org.tensorflow.proto.MetricEntry getMetrics(int index) {
       if (metricsBuilder_ == null) {
         return metrics_.get(index);
       } else {
@@ -1358,7 +1380,7 @@ public org.tensorflow.proto.util.testlog.MetricEntry getMetrics(int index) {
      * repeated .tensorflow.MetricEntry metrics = 7;
      */
     public Builder setMetrics(
-        int index, org.tensorflow.proto.util.testlog.MetricEntry value) {
+        int index, org.tensorflow.proto.MetricEntry value) {
       if (metricsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1380,7 +1402,7 @@ public Builder setMetrics(
      * repeated .tensorflow.MetricEntry metrics = 7;
      */
     public Builder setMetrics(
-        int index, org.tensorflow.proto.util.testlog.MetricEntry.Builder builderForValue) {
+        int index, org.tensorflow.proto.MetricEntry.Builder builderForValue) {
       if (metricsBuilder_ == null) {
         ensureMetricsIsMutable();
         metrics_.set(index, builderForValue.build());
@@ -1398,7 +1420,7 @@ public Builder setMetrics(
      *
      * repeated .tensorflow.MetricEntry metrics = 7;
      */
-    public Builder addMetrics(org.tensorflow.proto.util.testlog.MetricEntry value) {
+    public Builder addMetrics(org.tensorflow.proto.MetricEntry value) {
       if (metricsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1420,7 +1442,7 @@ public Builder addMetrics(org.tensorflow.proto.util.testlog.MetricEntry value) {
      * repeated .tensorflow.MetricEntry metrics = 7;
      */
     public Builder addMetrics(
-        int index, org.tensorflow.proto.util.testlog.MetricEntry value) {
+        int index, org.tensorflow.proto.MetricEntry value) {
       if (metricsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1442,7 +1464,7 @@ public Builder addMetrics(
      * repeated .tensorflow.MetricEntry metrics = 7;
      */
     public Builder addMetrics(
-        org.tensorflow.proto.util.testlog.MetricEntry.Builder builderForValue) {
+        org.tensorflow.proto.MetricEntry.Builder builderForValue) {
       if (metricsBuilder_ == null) {
         ensureMetricsIsMutable();
         metrics_.add(builderForValue.build());
@@ -1461,7 +1483,7 @@ public Builder addMetrics(
      * repeated .tensorflow.MetricEntry metrics = 7;
      */
     public Builder addMetrics(
-        int index, org.tensorflow.proto.util.testlog.MetricEntry.Builder builderForValue) {
+        int index, org.tensorflow.proto.MetricEntry.Builder builderForValue) {
       if (metricsBuilder_ == null) {
         ensureMetricsIsMutable();
         metrics_.add(index, builderForValue.build());
@@ -1480,7 +1502,7 @@ public Builder addMetrics(
      * repeated .tensorflow.MetricEntry metrics = 7;
      */
     public Builder addAllMetrics(
-        java.lang.Iterable values) {
+        java.lang.Iterable values) {
       if (metricsBuilder_ == null) {
         ensureMetricsIsMutable();
         com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -1535,7 +1557,7 @@ public Builder removeMetrics(int index) {
      *
      * repeated .tensorflow.MetricEntry metrics = 7;
      */
-    public org.tensorflow.proto.util.testlog.MetricEntry.Builder getMetricsBuilder(
+    public org.tensorflow.proto.MetricEntry.Builder getMetricsBuilder(
         int index) {
       return getMetricsFieldBuilder().getBuilder(index);
     }
@@ -1547,7 +1569,7 @@ public org.tensorflow.proto.util.testlog.MetricEntry.Builder getMetricsBuilder(
      *
      * repeated .tensorflow.MetricEntry metrics = 7;
      */
-    public org.tensorflow.proto.util.testlog.MetricEntryOrBuilder getMetricsOrBuilder(
+    public org.tensorflow.proto.MetricEntryOrBuilder getMetricsOrBuilder(
         int index) {
       if (metricsBuilder_ == null) {
         return metrics_.get(index);  } else {
@@ -1562,7 +1584,7 @@ public org.tensorflow.proto.util.testlog.MetricEntryOrBuilder getMetricsOrBuilde
      *
      * repeated .tensorflow.MetricEntry metrics = 7;
      */
-    public java.util.List 
+    public java.util.List 
          getMetricsOrBuilderList() {
       if (metricsBuilder_ != null) {
         return metricsBuilder_.getMessageOrBuilderList();
@@ -1578,9 +1600,9 @@ public org.tensorflow.proto.util.testlog.MetricEntryOrBuilder getMetricsOrBuilde
      *
      * repeated .tensorflow.MetricEntry metrics = 7;
      */
-    public org.tensorflow.proto.util.testlog.MetricEntry.Builder addMetricsBuilder() {
+    public org.tensorflow.proto.MetricEntry.Builder addMetricsBuilder() {
       return getMetricsFieldBuilder().addBuilder(
-          org.tensorflow.proto.util.testlog.MetricEntry.getDefaultInstance());
+          org.tensorflow.proto.MetricEntry.getDefaultInstance());
     }
     /**
      * 
@@ -1590,10 +1612,10 @@ public org.tensorflow.proto.util.testlog.MetricEntry.Builder addMetricsBuilder()
      *
      * repeated .tensorflow.MetricEntry metrics = 7;
      */
-    public org.tensorflow.proto.util.testlog.MetricEntry.Builder addMetricsBuilder(
+    public org.tensorflow.proto.MetricEntry.Builder addMetricsBuilder(
         int index) {
       return getMetricsFieldBuilder().addBuilder(
-          index, org.tensorflow.proto.util.testlog.MetricEntry.getDefaultInstance());
+          index, org.tensorflow.proto.MetricEntry.getDefaultInstance());
     }
     /**
      * 
@@ -1603,16 +1625,16 @@ public org.tensorflow.proto.util.testlog.MetricEntry.Builder addMetricsBuilder(
      *
      * repeated .tensorflow.MetricEntry metrics = 7;
      */
-    public java.util.List 
+    public java.util.List 
          getMetricsBuilderList() {
       return getMetricsFieldBuilder().getBuilderList();
     }
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        org.tensorflow.proto.util.testlog.MetricEntry, org.tensorflow.proto.util.testlog.MetricEntry.Builder, org.tensorflow.proto.util.testlog.MetricEntryOrBuilder> 
+        org.tensorflow.proto.MetricEntry, org.tensorflow.proto.MetricEntry.Builder, org.tensorflow.proto.MetricEntryOrBuilder> 
         getMetricsFieldBuilder() {
       if (metricsBuilder_ == null) {
         metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            org.tensorflow.proto.util.testlog.MetricEntry, org.tensorflow.proto.util.testlog.MetricEntry.Builder, org.tensorflow.proto.util.testlog.MetricEntryOrBuilder>(
+            org.tensorflow.proto.MetricEntry, org.tensorflow.proto.MetricEntry.Builder, org.tensorflow.proto.MetricEntryOrBuilder>(
                 metrics_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -1638,12 +1660,12 @@ public final Builder mergeUnknownFields(
   }
 
   // @@protoc_insertion_point(class_scope:tensorflow.BenchmarkEntry)
-  private static final org.tensorflow.proto.util.testlog.BenchmarkEntry DEFAULT_INSTANCE;
+  private static final org.tensorflow.proto.BenchmarkEntry DEFAULT_INSTANCE;
   static {
-    DEFAULT_INSTANCE = new org.tensorflow.proto.util.testlog.BenchmarkEntry();
+    DEFAULT_INSTANCE = new org.tensorflow.proto.BenchmarkEntry();
   }
 
-  public static org.tensorflow.proto.util.testlog.BenchmarkEntry getDefaultInstance() {
+  public static org.tensorflow.proto.BenchmarkEntry getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
@@ -1654,7 +1676,18 @@ public BenchmarkEntry parsePartialFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
-      return new BenchmarkEntry(input, extensionRegistry);
+      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();
     }
   };
 
@@ -1668,7 +1701,7 @@ public com.google.protobuf.Parser getParserForType() {
   }
 
   @java.lang.Override
-  public org.tensorflow.proto.util.testlog.BenchmarkEntry getDefaultInstanceForType() {
+  public org.tensorflow.proto.BenchmarkEntry getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/BenchmarkEntryOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BenchmarkEntryOrBuilder.java
similarity index 81%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/BenchmarkEntryOrBuilder.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BenchmarkEntryOrBuilder.java
index 475b3e31b7c..a7c021f890f 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/BenchmarkEntryOrBuilder.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BenchmarkEntryOrBuilder.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: tensorflow/core/util/test_log.proto
+// source: tensorflow/tsl/protobuf/test_log.proto
 
-package org.tensorflow.proto.util.testlog;
+package org.tensorflow.proto;
 
 public interface BenchmarkEntryOrBuilder extends
     // @@protoc_insertion_point(interface_extends:tensorflow.BenchmarkEntry)
@@ -14,6 +14,7 @@ public interface BenchmarkEntryOrBuilder extends
    * 
* * string name = 1; + * @return The name. */ java.lang.String getName(); /** @@ -23,6 +24,7 @@ public interface BenchmarkEntryOrBuilder extends *
* * string name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -33,6 +35,7 @@ public interface BenchmarkEntryOrBuilder extends *
* * int64 iters = 2; + * @return The iters. */ long getIters(); @@ -42,6 +45,7 @@ public interface BenchmarkEntryOrBuilder extends * * * double cpu_time = 3; + * @return The cpuTime. */ double getCpuTime(); @@ -51,6 +55,7 @@ public interface BenchmarkEntryOrBuilder extends * * * double wall_time = 4; + * @return The wallTime. */ double getWallTime(); @@ -60,6 +65,7 @@ public interface BenchmarkEntryOrBuilder extends * * * double throughput = 5; + * @return The throughput. */ double getThroughput(); @@ -84,7 +90,7 @@ boolean containsExtras( * Use {@link #getExtrasMap()} instead. */ @java.lang.Deprecated - java.util.Map + java.util.Map getExtras(); /** *
@@ -93,7 +99,7 @@ boolean containsExtras(
    *
    * map<string, .tensorflow.EntryValue> extras = 6;
    */
-  java.util.Map
+  java.util.Map
   getExtrasMap();
   /**
    * 
@@ -103,9 +109,11 @@ boolean containsExtras(
    * map<string, .tensorflow.EntryValue> extras = 6;
    */
 
-  org.tensorflow.proto.util.testlog.EntryValue getExtrasOrDefault(
+  /* nullable */
+org.tensorflow.proto.EntryValue getExtrasOrDefault(
       java.lang.String key,
-      org.tensorflow.proto.util.testlog.EntryValue defaultValue);
+      /* nullable */
+org.tensorflow.proto.EntryValue defaultValue);
   /**
    * 
    * Generic map from result key to value.
@@ -114,7 +122,7 @@ org.tensorflow.proto.util.testlog.EntryValue getExtrasOrDefault(
    * map<string, .tensorflow.EntryValue> extras = 6;
    */
 
-  org.tensorflow.proto.util.testlog.EntryValue getExtrasOrThrow(
+  org.tensorflow.proto.EntryValue getExtrasOrThrow(
       java.lang.String key);
 
   /**
@@ -125,7 +133,7 @@ org.tensorflow.proto.util.testlog.EntryValue getExtrasOrThrow(
    *
    * repeated .tensorflow.MetricEntry metrics = 7;
    */
-  java.util.List 
+  java.util.List 
       getMetricsList();
   /**
    * 
@@ -135,7 +143,7 @@ org.tensorflow.proto.util.testlog.EntryValue getExtrasOrThrow(
    *
    * repeated .tensorflow.MetricEntry metrics = 7;
    */
-  org.tensorflow.proto.util.testlog.MetricEntry getMetrics(int index);
+  org.tensorflow.proto.MetricEntry getMetrics(int index);
   /**
    * 
    * Metric name, value and expected range. This can include accuracy metrics
@@ -153,7 +161,7 @@ org.tensorflow.proto.util.testlog.EntryValue getExtrasOrThrow(
    *
    * repeated .tensorflow.MetricEntry metrics = 7;
    */
-  java.util.List 
+  java.util.List 
       getMetricsOrBuilderList();
   /**
    * 
@@ -163,6 +171,6 @@ org.tensorflow.proto.util.testlog.EntryValue getExtrasOrThrow(
    *
    * repeated .tensorflow.MetricEntry metrics = 7;
    */
-  org.tensorflow.proto.util.testlog.MetricEntryOrBuilder getMetricsOrBuilder(
+  org.tensorflow.proto.MetricEntryOrBuilder getMetricsOrBuilder(
       int index);
 }
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BfcMemoryMap.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BfcMemoryMap.java
new file mode 100644
index 00000000000..3149c695bf6
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BfcMemoryMap.java
@@ -0,0 +1,5154 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/tsl/protobuf/bfc_memory_map.proto
+
+package org.tensorflow.proto;
+
+public final class BfcMemoryMap {
+  private BfcMemoryMap() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  public interface MemAllocatorStatsOrBuilder extends
+      // @@protoc_insertion_point(interface_extends:tensorflow.MemAllocatorStats)
+      com.google.protobuf.MessageOrBuilder {
+
+    /**
+     * int64 num_allocs = 1;
+     * @return The numAllocs.
+     */
+    long getNumAllocs();
+
+    /**
+     * int64 bytes_in_use = 2;
+     * @return The bytesInUse.
+     */
+    long getBytesInUse();
+
+    /**
+     * int64 peak_bytes_in_use = 3;
+     * @return The peakBytesInUse.
+     */
+    long getPeakBytesInUse();
+
+    /**
+     * int64 largest_alloc_size = 4;
+     * @return The largestAllocSize.
+     */
+    long getLargestAllocSize();
+
+    /**
+     * float fragmentation_metric = 5;
+     * @return The fragmentationMetric.
+     */
+    float getFragmentationMetric();
+  }
+  /**
+   * 
+   * Some of the data from AllocatorStats
+   * 
+ * + * Protobuf type {@code tensorflow.MemAllocatorStats} + */ + public static final class MemAllocatorStats extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.MemAllocatorStats) + MemAllocatorStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use MemAllocatorStats.newBuilder() to construct. + private MemAllocatorStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MemAllocatorStats() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MemAllocatorStats(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_MemAllocatorStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_MemAllocatorStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats.class, org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats.Builder.class); + } + + public static final int NUM_ALLOCS_FIELD_NUMBER = 1; + private long numAllocs_; + /** + * int64 num_allocs = 1; + * @return The numAllocs. + */ + @java.lang.Override + public long getNumAllocs() { + return numAllocs_; + } + + public static final int BYTES_IN_USE_FIELD_NUMBER = 2; + private long bytesInUse_; + /** + * int64 bytes_in_use = 2; + * @return The bytesInUse. + */ + @java.lang.Override + public long getBytesInUse() { + return bytesInUse_; + } + + public static final int PEAK_BYTES_IN_USE_FIELD_NUMBER = 3; + private long peakBytesInUse_; + /** + * int64 peak_bytes_in_use = 3; + * @return The peakBytesInUse. + */ + @java.lang.Override + public long getPeakBytesInUse() { + return peakBytesInUse_; + } + + public static final int LARGEST_ALLOC_SIZE_FIELD_NUMBER = 4; + private long largestAllocSize_; + /** + * int64 largest_alloc_size = 4; + * @return The largestAllocSize. + */ + @java.lang.Override + public long getLargestAllocSize() { + return largestAllocSize_; + } + + public static final int FRAGMENTATION_METRIC_FIELD_NUMBER = 5; + private float fragmentationMetric_; + /** + * float fragmentation_metric = 5; + * @return The fragmentationMetric. + */ + @java.lang.Override + public float getFragmentationMetric() { + return fragmentationMetric_; + } + + 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 (numAllocs_ != 0L) { + output.writeInt64(1, numAllocs_); + } + if (bytesInUse_ != 0L) { + output.writeInt64(2, bytesInUse_); + } + if (peakBytesInUse_ != 0L) { + output.writeInt64(3, peakBytesInUse_); + } + if (largestAllocSize_ != 0L) { + output.writeInt64(4, largestAllocSize_); + } + if (java.lang.Float.floatToRawIntBits(fragmentationMetric_) != 0) { + output.writeFloat(5, fragmentationMetric_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (numAllocs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, numAllocs_); + } + if (bytesInUse_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, bytesInUse_); + } + if (peakBytesInUse_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, peakBytesInUse_); + } + if (largestAllocSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, largestAllocSize_); + } + if (java.lang.Float.floatToRawIntBits(fragmentationMetric_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, fragmentationMetric_); + } + 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 org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats)) { + return super.equals(obj); + } + org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats other = (org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats) obj; + + if (getNumAllocs() + != other.getNumAllocs()) return false; + if (getBytesInUse() + != other.getBytesInUse()) return false; + if (getPeakBytesInUse() + != other.getPeakBytesInUse()) return false; + if (getLargestAllocSize() + != other.getLargestAllocSize()) return false; + if (java.lang.Float.floatToIntBits(getFragmentationMetric()) + != java.lang.Float.floatToIntBits( + other.getFragmentationMetric())) 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) + NUM_ALLOCS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNumAllocs()); + hash = (37 * hash) + BYTES_IN_USE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBytesInUse()); + hash = (37 * hash) + PEAK_BYTES_IN_USE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPeakBytesInUse()); + hash = (37 * hash) + LARGEST_ALLOC_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLargestAllocSize()); + hash = (37 * hash) + FRAGMENTATION_METRIC_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getFragmentationMetric()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats 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 org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats 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 org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats 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(org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats 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; + } + /** + *
+     * Some of the data from AllocatorStats
+     * 
+ * + * Protobuf type {@code tensorflow.MemAllocatorStats} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.MemAllocatorStats) + org.tensorflow.proto.BfcMemoryMap.MemAllocatorStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_MemAllocatorStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_MemAllocatorStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats.class, org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats.Builder.class); + } + + // Construct using org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + numAllocs_ = 0L; + + bytesInUse_ = 0L; + + peakBytesInUse_ = 0L; + + largestAllocSize_ = 0L; + + fragmentationMetric_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_MemAllocatorStats_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats getDefaultInstanceForType() { + return org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats build() { + org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats buildPartial() { + org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats result = new org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats(this); + result.numAllocs_ = numAllocs_; + result.bytesInUse_ = bytesInUse_; + result.peakBytesInUse_ = peakBytesInUse_; + result.largestAllocSize_ = largestAllocSize_; + result.fragmentationMetric_ = fragmentationMetric_; + 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 org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats) { + return mergeFrom((org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats other) { + if (other == org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats.getDefaultInstance()) return this; + if (other.getNumAllocs() != 0L) { + setNumAllocs(other.getNumAllocs()); + } + if (other.getBytesInUse() != 0L) { + setBytesInUse(other.getBytesInUse()); + } + if (other.getPeakBytesInUse() != 0L) { + setPeakBytesInUse(other.getPeakBytesInUse()); + } + if (other.getLargestAllocSize() != 0L) { + setLargestAllocSize(other.getLargestAllocSize()); + } + if (other.getFragmentationMetric() != 0F) { + setFragmentationMetric(other.getFragmentationMetric()); + } + 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: { + numAllocs_ = input.readInt64(); + + break; + } // case 8 + case 16: { + bytesInUse_ = input.readInt64(); + + break; + } // case 16 + case 24: { + peakBytesInUse_ = input.readInt64(); + + break; + } // case 24 + case 32: { + largestAllocSize_ = input.readInt64(); + + break; + } // case 32 + case 45: { + fragmentationMetric_ = input.readFloat(); + + break; + } // case 45 + 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 long numAllocs_ ; + /** + * int64 num_allocs = 1; + * @return The numAllocs. + */ + @java.lang.Override + public long getNumAllocs() { + return numAllocs_; + } + /** + * int64 num_allocs = 1; + * @param value The numAllocs to set. + * @return This builder for chaining. + */ + public Builder setNumAllocs(long value) { + + numAllocs_ = value; + onChanged(); + return this; + } + /** + * int64 num_allocs = 1; + * @return This builder for chaining. + */ + public Builder clearNumAllocs() { + + numAllocs_ = 0L; + onChanged(); + return this; + } + + private long bytesInUse_ ; + /** + * int64 bytes_in_use = 2; + * @return The bytesInUse. + */ + @java.lang.Override + public long getBytesInUse() { + return bytesInUse_; + } + /** + * int64 bytes_in_use = 2; + * @param value The bytesInUse to set. + * @return This builder for chaining. + */ + public Builder setBytesInUse(long value) { + + bytesInUse_ = value; + onChanged(); + return this; + } + /** + * int64 bytes_in_use = 2; + * @return This builder for chaining. + */ + public Builder clearBytesInUse() { + + bytesInUse_ = 0L; + onChanged(); + return this; + } + + private long peakBytesInUse_ ; + /** + * int64 peak_bytes_in_use = 3; + * @return The peakBytesInUse. + */ + @java.lang.Override + public long getPeakBytesInUse() { + return peakBytesInUse_; + } + /** + * int64 peak_bytes_in_use = 3; + * @param value The peakBytesInUse to set. + * @return This builder for chaining. + */ + public Builder setPeakBytesInUse(long value) { + + peakBytesInUse_ = value; + onChanged(); + return this; + } + /** + * int64 peak_bytes_in_use = 3; + * @return This builder for chaining. + */ + public Builder clearPeakBytesInUse() { + + peakBytesInUse_ = 0L; + onChanged(); + return this; + } + + private long largestAllocSize_ ; + /** + * int64 largest_alloc_size = 4; + * @return The largestAllocSize. + */ + @java.lang.Override + public long getLargestAllocSize() { + return largestAllocSize_; + } + /** + * int64 largest_alloc_size = 4; + * @param value The largestAllocSize to set. + * @return This builder for chaining. + */ + public Builder setLargestAllocSize(long value) { + + largestAllocSize_ = value; + onChanged(); + return this; + } + /** + * int64 largest_alloc_size = 4; + * @return This builder for chaining. + */ + public Builder clearLargestAllocSize() { + + largestAllocSize_ = 0L; + onChanged(); + return this; + } + + private float fragmentationMetric_ ; + /** + * float fragmentation_metric = 5; + * @return The fragmentationMetric. + */ + @java.lang.Override + public float getFragmentationMetric() { + return fragmentationMetric_; + } + /** + * float fragmentation_metric = 5; + * @param value The fragmentationMetric to set. + * @return This builder for chaining. + */ + public Builder setFragmentationMetric(float value) { + + fragmentationMetric_ = value; + onChanged(); + return this; + } + /** + * float fragmentation_metric = 5; + * @return This builder for chaining. + */ + public Builder clearFragmentationMetric() { + + fragmentationMetric_ = 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:tensorflow.MemAllocatorStats) + } + + // @@protoc_insertion_point(class_scope:tensorflow.MemAllocatorStats) + private static final org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats(); + } + + public static org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemAllocatorStats 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 org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MemChunkOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.MemChunk) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 address = 1; + * @return The address. + */ + long getAddress(); + + /** + * int64 size = 2; + * @return The size. + */ + long getSize(); + + /** + * int64 requested_size = 3; + * @return The requestedSize. + */ + long getRequestedSize(); + + /** + * int32 bin = 4; + * @return The bin. + */ + int getBin(); + + /** + * string op_name = 5; + * @return The opName. + */ + java.lang.String getOpName(); + /** + * string op_name = 5; + * @return The bytes for opName. + */ + com.google.protobuf.ByteString + getOpNameBytes(); + + /** + * uint64 freed_at_count = 6; + * @return The freedAtCount. + */ + long getFreedAtCount(); + + /** + * uint64 action_count = 7; + * @return The actionCount. + */ + long getActionCount(); + + /** + * bool in_use = 8; + * @return The inUse. + */ + boolean getInUse(); + + /** + * uint64 step_id = 9; + * @return The stepId. + */ + long getStepId(); + } + /** + * Protobuf type {@code tensorflow.MemChunk} + */ + public static final class MemChunk extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.MemChunk) + MemChunkOrBuilder { + private static final long serialVersionUID = 0L; + // Use MemChunk.newBuilder() to construct. + private MemChunk(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MemChunk() { + opName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MemChunk(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_MemChunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_MemChunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.BfcMemoryMap.MemChunk.class, org.tensorflow.proto.BfcMemoryMap.MemChunk.Builder.class); + } + + public static final int ADDRESS_FIELD_NUMBER = 1; + private long address_; + /** + * uint64 address = 1; + * @return The address. + */ + @java.lang.Override + public long getAddress() { + return address_; + } + + public static final int SIZE_FIELD_NUMBER = 2; + private long size_; + /** + * int64 size = 2; + * @return The size. + */ + @java.lang.Override + public long getSize() { + return size_; + } + + public static final int REQUESTED_SIZE_FIELD_NUMBER = 3; + private long requestedSize_; + /** + * int64 requested_size = 3; + * @return The requestedSize. + */ + @java.lang.Override + public long getRequestedSize() { + return requestedSize_; + } + + public static final int BIN_FIELD_NUMBER = 4; + private int bin_; + /** + * int32 bin = 4; + * @return The bin. + */ + @java.lang.Override + public int getBin() { + return bin_; + } + + public static final int OP_NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object opName_; + /** + * string op_name = 5; + * @return The opName. + */ + @java.lang.Override + public java.lang.String getOpName() { + java.lang.Object ref = opName_; + 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(); + opName_ = s; + return s; + } + } + /** + * string op_name = 5; + * @return The bytes for opName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOpNameBytes() { + java.lang.Object ref = opName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + opName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FREED_AT_COUNT_FIELD_NUMBER = 6; + private long freedAtCount_; + /** + * uint64 freed_at_count = 6; + * @return The freedAtCount. + */ + @java.lang.Override + public long getFreedAtCount() { + return freedAtCount_; + } + + public static final int ACTION_COUNT_FIELD_NUMBER = 7; + private long actionCount_; + /** + * uint64 action_count = 7; + * @return The actionCount. + */ + @java.lang.Override + public long getActionCount() { + return actionCount_; + } + + public static final int IN_USE_FIELD_NUMBER = 8; + private boolean inUse_; + /** + * bool in_use = 8; + * @return The inUse. + */ + @java.lang.Override + public boolean getInUse() { + return inUse_; + } + + public static final int STEP_ID_FIELD_NUMBER = 9; + private long stepId_; + /** + * uint64 step_id = 9; + * @return The stepId. + */ + @java.lang.Override + public long getStepId() { + return stepId_; + } + + 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 (address_ != 0L) { + output.writeUInt64(1, address_); + } + if (size_ != 0L) { + output.writeInt64(2, size_); + } + if (requestedSize_ != 0L) { + output.writeInt64(3, requestedSize_); + } + if (bin_ != 0) { + output.writeInt32(4, bin_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(opName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, opName_); + } + if (freedAtCount_ != 0L) { + output.writeUInt64(6, freedAtCount_); + } + if (actionCount_ != 0L) { + output.writeUInt64(7, actionCount_); + } + if (inUse_ != false) { + output.writeBool(8, inUse_); + } + if (stepId_ != 0L) { + output.writeUInt64(9, stepId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (address_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, address_); + } + if (size_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, size_); + } + if (requestedSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, requestedSize_); + } + if (bin_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, bin_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(opName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, opName_); + } + if (freedAtCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(6, freedAtCount_); + } + if (actionCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(7, actionCount_); + } + if (inUse_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, inUse_); + } + if (stepId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(9, stepId_); + } + 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 org.tensorflow.proto.BfcMemoryMap.MemChunk)) { + return super.equals(obj); + } + org.tensorflow.proto.BfcMemoryMap.MemChunk other = (org.tensorflow.proto.BfcMemoryMap.MemChunk) obj; + + if (getAddress() + != other.getAddress()) return false; + if (getSize() + != other.getSize()) return false; + if (getRequestedSize() + != other.getRequestedSize()) return false; + if (getBin() + != other.getBin()) return false; + if (!getOpName() + .equals(other.getOpName())) return false; + if (getFreedAtCount() + != other.getFreedAtCount()) return false; + if (getActionCount() + != other.getActionCount()) return false; + if (getInUse() + != other.getInUse()) return false; + if (getStepId() + != other.getStepId()) 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) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAddress()); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSize()); + hash = (37 * hash) + REQUESTED_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestedSize()); + hash = (37 * hash) + BIN_FIELD_NUMBER; + hash = (53 * hash) + getBin(); + hash = (37 * hash) + OP_NAME_FIELD_NUMBER; + hash = (53 * hash) + getOpName().hashCode(); + hash = (37 * hash) + FREED_AT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFreedAtCount()); + hash = (37 * hash) + ACTION_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getActionCount()); + hash = (37 * hash) + IN_USE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInUse()); + hash = (37 * hash) + STEP_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStepId()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.BfcMemoryMap.MemChunk parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BfcMemoryMap.MemChunk parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BfcMemoryMap.MemChunk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BfcMemoryMap.MemChunk parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BfcMemoryMap.MemChunk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BfcMemoryMap.MemChunk parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BfcMemoryMap.MemChunk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BfcMemoryMap.MemChunk 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 org.tensorflow.proto.BfcMemoryMap.MemChunk parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BfcMemoryMap.MemChunk 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 org.tensorflow.proto.BfcMemoryMap.MemChunk parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BfcMemoryMap.MemChunk 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(org.tensorflow.proto.BfcMemoryMap.MemChunk prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.MemChunk} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.MemChunk) + org.tensorflow.proto.BfcMemoryMap.MemChunkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_MemChunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_MemChunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.BfcMemoryMap.MemChunk.class, org.tensorflow.proto.BfcMemoryMap.MemChunk.Builder.class); + } + + // Construct using org.tensorflow.proto.BfcMemoryMap.MemChunk.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + address_ = 0L; + + size_ = 0L; + + requestedSize_ = 0L; + + bin_ = 0; + + opName_ = ""; + + freedAtCount_ = 0L; + + actionCount_ = 0L; + + inUse_ = false; + + stepId_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_MemChunk_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.MemChunk getDefaultInstanceForType() { + return org.tensorflow.proto.BfcMemoryMap.MemChunk.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.MemChunk build() { + org.tensorflow.proto.BfcMemoryMap.MemChunk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.MemChunk buildPartial() { + org.tensorflow.proto.BfcMemoryMap.MemChunk result = new org.tensorflow.proto.BfcMemoryMap.MemChunk(this); + result.address_ = address_; + result.size_ = size_; + result.requestedSize_ = requestedSize_; + result.bin_ = bin_; + result.opName_ = opName_; + result.freedAtCount_ = freedAtCount_; + result.actionCount_ = actionCount_; + result.inUse_ = inUse_; + result.stepId_ = stepId_; + 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 org.tensorflow.proto.BfcMemoryMap.MemChunk) { + return mergeFrom((org.tensorflow.proto.BfcMemoryMap.MemChunk)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.BfcMemoryMap.MemChunk other) { + if (other == org.tensorflow.proto.BfcMemoryMap.MemChunk.getDefaultInstance()) return this; + if (other.getAddress() != 0L) { + setAddress(other.getAddress()); + } + if (other.getSize() != 0L) { + setSize(other.getSize()); + } + if (other.getRequestedSize() != 0L) { + setRequestedSize(other.getRequestedSize()); + } + if (other.getBin() != 0) { + setBin(other.getBin()); + } + if (!other.getOpName().isEmpty()) { + opName_ = other.opName_; + onChanged(); + } + if (other.getFreedAtCount() != 0L) { + setFreedAtCount(other.getFreedAtCount()); + } + if (other.getActionCount() != 0L) { + setActionCount(other.getActionCount()); + } + if (other.getInUse() != false) { + setInUse(other.getInUse()); + } + if (other.getStepId() != 0L) { + setStepId(other.getStepId()); + } + 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: { + address_ = input.readUInt64(); + + break; + } // case 8 + case 16: { + size_ = input.readInt64(); + + break; + } // case 16 + case 24: { + requestedSize_ = input.readInt64(); + + break; + } // case 24 + case 32: { + bin_ = input.readInt32(); + + break; + } // case 32 + case 42: { + opName_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: { + freedAtCount_ = input.readUInt64(); + + break; + } // case 48 + case 56: { + actionCount_ = input.readUInt64(); + + break; + } // case 56 + case 64: { + inUse_ = input.readBool(); + + break; + } // case 64 + case 72: { + stepId_ = input.readUInt64(); + + break; + } // case 72 + 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 long address_ ; + /** + * uint64 address = 1; + * @return The address. + */ + @java.lang.Override + public long getAddress() { + return address_; + } + /** + * uint64 address = 1; + * @param value The address to set. + * @return This builder for chaining. + */ + public Builder setAddress(long value) { + + address_ = value; + onChanged(); + return this; + } + /** + * uint64 address = 1; + * @return This builder for chaining. + */ + public Builder clearAddress() { + + address_ = 0L; + onChanged(); + return this; + } + + private long size_ ; + /** + * int64 size = 2; + * @return The size. + */ + @java.lang.Override + public long getSize() { + return size_; + } + /** + * int64 size = 2; + * @param value The size to set. + * @return This builder for chaining. + */ + public Builder setSize(long value) { + + size_ = value; + onChanged(); + return this; + } + /** + * int64 size = 2; + * @return This builder for chaining. + */ + public Builder clearSize() { + + size_ = 0L; + onChanged(); + return this; + } + + private long requestedSize_ ; + /** + * int64 requested_size = 3; + * @return The requestedSize. + */ + @java.lang.Override + public long getRequestedSize() { + return requestedSize_; + } + /** + * int64 requested_size = 3; + * @param value The requestedSize to set. + * @return This builder for chaining. + */ + public Builder setRequestedSize(long value) { + + requestedSize_ = value; + onChanged(); + return this; + } + /** + * int64 requested_size = 3; + * @return This builder for chaining. + */ + public Builder clearRequestedSize() { + + requestedSize_ = 0L; + onChanged(); + return this; + } + + private int bin_ ; + /** + * int32 bin = 4; + * @return The bin. + */ + @java.lang.Override + public int getBin() { + return bin_; + } + /** + * int32 bin = 4; + * @param value The bin to set. + * @return This builder for chaining. + */ + public Builder setBin(int value) { + + bin_ = value; + onChanged(); + return this; + } + /** + * int32 bin = 4; + * @return This builder for chaining. + */ + public Builder clearBin() { + + bin_ = 0; + onChanged(); + return this; + } + + private java.lang.Object opName_ = ""; + /** + * string op_name = 5; + * @return The opName. + */ + public java.lang.String getOpName() { + java.lang.Object ref = opName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + opName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string op_name = 5; + * @return The bytes for opName. + */ + public com.google.protobuf.ByteString + getOpNameBytes() { + java.lang.Object ref = opName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + opName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string op_name = 5; + * @param value The opName to set. + * @return This builder for chaining. + */ + public Builder setOpName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + opName_ = value; + onChanged(); + return this; + } + /** + * string op_name = 5; + * @return This builder for chaining. + */ + public Builder clearOpName() { + + opName_ = getDefaultInstance().getOpName(); + onChanged(); + return this; + } + /** + * string op_name = 5; + * @param value The bytes for opName to set. + * @return This builder for chaining. + */ + public Builder setOpNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + opName_ = value; + onChanged(); + return this; + } + + private long freedAtCount_ ; + /** + * uint64 freed_at_count = 6; + * @return The freedAtCount. + */ + @java.lang.Override + public long getFreedAtCount() { + return freedAtCount_; + } + /** + * uint64 freed_at_count = 6; + * @param value The freedAtCount to set. + * @return This builder for chaining. + */ + public Builder setFreedAtCount(long value) { + + freedAtCount_ = value; + onChanged(); + return this; + } + /** + * uint64 freed_at_count = 6; + * @return This builder for chaining. + */ + public Builder clearFreedAtCount() { + + freedAtCount_ = 0L; + onChanged(); + return this; + } + + private long actionCount_ ; + /** + * uint64 action_count = 7; + * @return The actionCount. + */ + @java.lang.Override + public long getActionCount() { + return actionCount_; + } + /** + * uint64 action_count = 7; + * @param value The actionCount to set. + * @return This builder for chaining. + */ + public Builder setActionCount(long value) { + + actionCount_ = value; + onChanged(); + return this; + } + /** + * uint64 action_count = 7; + * @return This builder for chaining. + */ + public Builder clearActionCount() { + + actionCount_ = 0L; + onChanged(); + return this; + } + + private boolean inUse_ ; + /** + * bool in_use = 8; + * @return The inUse. + */ + @java.lang.Override + public boolean getInUse() { + return inUse_; + } + /** + * bool in_use = 8; + * @param value The inUse to set. + * @return This builder for chaining. + */ + public Builder setInUse(boolean value) { + + inUse_ = value; + onChanged(); + return this; + } + /** + * bool in_use = 8; + * @return This builder for chaining. + */ + public Builder clearInUse() { + + inUse_ = false; + onChanged(); + return this; + } + + private long stepId_ ; + /** + * uint64 step_id = 9; + * @return The stepId. + */ + @java.lang.Override + public long getStepId() { + return stepId_; + } + /** + * uint64 step_id = 9; + * @param value The stepId to set. + * @return This builder for chaining. + */ + public Builder setStepId(long value) { + + stepId_ = value; + onChanged(); + return this; + } + /** + * uint64 step_id = 9; + * @return This builder for chaining. + */ + public Builder clearStepId() { + + stepId_ = 0L; + 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:tensorflow.MemChunk) + } + + // @@protoc_insertion_point(class_scope:tensorflow.MemChunk) + private static final org.tensorflow.proto.BfcMemoryMap.MemChunk DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.BfcMemoryMap.MemChunk(); + } + + public static org.tensorflow.proto.BfcMemoryMap.MemChunk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemChunk 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 org.tensorflow.proto.BfcMemoryMap.MemChunk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BinSummaryOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.BinSummary) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 bin = 1; + * @return The bin. + */ + int getBin(); + + /** + * int64 total_bytes_in_use = 2; + * @return The totalBytesInUse. + */ + long getTotalBytesInUse(); + + /** + * int64 total_bytes_in_bin = 3; + * @return The totalBytesInBin. + */ + long getTotalBytesInBin(); + + /** + * int64 total_chunks_in_use = 4; + * @return The totalChunksInUse. + */ + long getTotalChunksInUse(); + + /** + * int64 total_chunks_in_bin = 5; + * @return The totalChunksInBin. + */ + long getTotalChunksInBin(); + } + /** + * Protobuf type {@code tensorflow.BinSummary} + */ + public static final class BinSummary extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.BinSummary) + BinSummaryOrBuilder { + private static final long serialVersionUID = 0L; + // Use BinSummary.newBuilder() to construct. + private BinSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BinSummary() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BinSummary(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_BinSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_BinSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.BfcMemoryMap.BinSummary.class, org.tensorflow.proto.BfcMemoryMap.BinSummary.Builder.class); + } + + public static final int BIN_FIELD_NUMBER = 1; + private int bin_; + /** + * int32 bin = 1; + * @return The bin. + */ + @java.lang.Override + public int getBin() { + return bin_; + } + + public static final int TOTAL_BYTES_IN_USE_FIELD_NUMBER = 2; + private long totalBytesInUse_; + /** + * int64 total_bytes_in_use = 2; + * @return The totalBytesInUse. + */ + @java.lang.Override + public long getTotalBytesInUse() { + return totalBytesInUse_; + } + + public static final int TOTAL_BYTES_IN_BIN_FIELD_NUMBER = 3; + private long totalBytesInBin_; + /** + * int64 total_bytes_in_bin = 3; + * @return The totalBytesInBin. + */ + @java.lang.Override + public long getTotalBytesInBin() { + return totalBytesInBin_; + } + + public static final int TOTAL_CHUNKS_IN_USE_FIELD_NUMBER = 4; + private long totalChunksInUse_; + /** + * int64 total_chunks_in_use = 4; + * @return The totalChunksInUse. + */ + @java.lang.Override + public long getTotalChunksInUse() { + return totalChunksInUse_; + } + + public static final int TOTAL_CHUNKS_IN_BIN_FIELD_NUMBER = 5; + private long totalChunksInBin_; + /** + * int64 total_chunks_in_bin = 5; + * @return The totalChunksInBin. + */ + @java.lang.Override + public long getTotalChunksInBin() { + return totalChunksInBin_; + } + + 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 (bin_ != 0) { + output.writeInt32(1, bin_); + } + if (totalBytesInUse_ != 0L) { + output.writeInt64(2, totalBytesInUse_); + } + if (totalBytesInBin_ != 0L) { + output.writeInt64(3, totalBytesInBin_); + } + if (totalChunksInUse_ != 0L) { + output.writeInt64(4, totalChunksInUse_); + } + if (totalChunksInBin_ != 0L) { + output.writeInt64(5, totalChunksInBin_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (bin_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, bin_); + } + if (totalBytesInUse_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, totalBytesInUse_); + } + if (totalBytesInBin_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, totalBytesInBin_); + } + if (totalChunksInUse_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, totalChunksInUse_); + } + if (totalChunksInBin_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, totalChunksInBin_); + } + 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 org.tensorflow.proto.BfcMemoryMap.BinSummary)) { + return super.equals(obj); + } + org.tensorflow.proto.BfcMemoryMap.BinSummary other = (org.tensorflow.proto.BfcMemoryMap.BinSummary) obj; + + if (getBin() + != other.getBin()) return false; + if (getTotalBytesInUse() + != other.getTotalBytesInUse()) return false; + if (getTotalBytesInBin() + != other.getTotalBytesInBin()) return false; + if (getTotalChunksInUse() + != other.getTotalChunksInUse()) return false; + if (getTotalChunksInBin() + != other.getTotalChunksInBin()) 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) + BIN_FIELD_NUMBER; + hash = (53 * hash) + getBin(); + hash = (37 * hash) + TOTAL_BYTES_IN_USE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalBytesInUse()); + hash = (37 * hash) + TOTAL_BYTES_IN_BIN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalBytesInBin()); + hash = (37 * hash) + TOTAL_CHUNKS_IN_USE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalChunksInUse()); + hash = (37 * hash) + TOTAL_CHUNKS_IN_BIN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalChunksInBin()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.BfcMemoryMap.BinSummary parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BfcMemoryMap.BinSummary parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BfcMemoryMap.BinSummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BfcMemoryMap.BinSummary parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BfcMemoryMap.BinSummary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BfcMemoryMap.BinSummary parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BfcMemoryMap.BinSummary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BfcMemoryMap.BinSummary 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 org.tensorflow.proto.BfcMemoryMap.BinSummary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BfcMemoryMap.BinSummary 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 org.tensorflow.proto.BfcMemoryMap.BinSummary parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BfcMemoryMap.BinSummary 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(org.tensorflow.proto.BfcMemoryMap.BinSummary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.BinSummary} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.BinSummary) + org.tensorflow.proto.BfcMemoryMap.BinSummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_BinSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_BinSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.BfcMemoryMap.BinSummary.class, org.tensorflow.proto.BfcMemoryMap.BinSummary.Builder.class); + } + + // Construct using org.tensorflow.proto.BfcMemoryMap.BinSummary.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bin_ = 0; + + totalBytesInUse_ = 0L; + + totalBytesInBin_ = 0L; + + totalChunksInUse_ = 0L; + + totalChunksInBin_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_BinSummary_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.BinSummary getDefaultInstanceForType() { + return org.tensorflow.proto.BfcMemoryMap.BinSummary.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.BinSummary build() { + org.tensorflow.proto.BfcMemoryMap.BinSummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.BinSummary buildPartial() { + org.tensorflow.proto.BfcMemoryMap.BinSummary result = new org.tensorflow.proto.BfcMemoryMap.BinSummary(this); + result.bin_ = bin_; + result.totalBytesInUse_ = totalBytesInUse_; + result.totalBytesInBin_ = totalBytesInBin_; + result.totalChunksInUse_ = totalChunksInUse_; + result.totalChunksInBin_ = totalChunksInBin_; + 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 org.tensorflow.proto.BfcMemoryMap.BinSummary) { + return mergeFrom((org.tensorflow.proto.BfcMemoryMap.BinSummary)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.BfcMemoryMap.BinSummary other) { + if (other == org.tensorflow.proto.BfcMemoryMap.BinSummary.getDefaultInstance()) return this; + if (other.getBin() != 0) { + setBin(other.getBin()); + } + if (other.getTotalBytesInUse() != 0L) { + setTotalBytesInUse(other.getTotalBytesInUse()); + } + if (other.getTotalBytesInBin() != 0L) { + setTotalBytesInBin(other.getTotalBytesInBin()); + } + if (other.getTotalChunksInUse() != 0L) { + setTotalChunksInUse(other.getTotalChunksInUse()); + } + if (other.getTotalChunksInBin() != 0L) { + setTotalChunksInBin(other.getTotalChunksInBin()); + } + 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: { + bin_ = input.readInt32(); + + break; + } // case 8 + case 16: { + totalBytesInUse_ = input.readInt64(); + + break; + } // case 16 + case 24: { + totalBytesInBin_ = input.readInt64(); + + break; + } // case 24 + case 32: { + totalChunksInUse_ = input.readInt64(); + + break; + } // case 32 + case 40: { + totalChunksInBin_ = input.readInt64(); + + break; + } // case 40 + 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 bin_ ; + /** + * int32 bin = 1; + * @return The bin. + */ + @java.lang.Override + public int getBin() { + return bin_; + } + /** + * int32 bin = 1; + * @param value The bin to set. + * @return This builder for chaining. + */ + public Builder setBin(int value) { + + bin_ = value; + onChanged(); + return this; + } + /** + * int32 bin = 1; + * @return This builder for chaining. + */ + public Builder clearBin() { + + bin_ = 0; + onChanged(); + return this; + } + + private long totalBytesInUse_ ; + /** + * int64 total_bytes_in_use = 2; + * @return The totalBytesInUse. + */ + @java.lang.Override + public long getTotalBytesInUse() { + return totalBytesInUse_; + } + /** + * int64 total_bytes_in_use = 2; + * @param value The totalBytesInUse to set. + * @return This builder for chaining. + */ + public Builder setTotalBytesInUse(long value) { + + totalBytesInUse_ = value; + onChanged(); + return this; + } + /** + * int64 total_bytes_in_use = 2; + * @return This builder for chaining. + */ + public Builder clearTotalBytesInUse() { + + totalBytesInUse_ = 0L; + onChanged(); + return this; + } + + private long totalBytesInBin_ ; + /** + * int64 total_bytes_in_bin = 3; + * @return The totalBytesInBin. + */ + @java.lang.Override + public long getTotalBytesInBin() { + return totalBytesInBin_; + } + /** + * int64 total_bytes_in_bin = 3; + * @param value The totalBytesInBin to set. + * @return This builder for chaining. + */ + public Builder setTotalBytesInBin(long value) { + + totalBytesInBin_ = value; + onChanged(); + return this; + } + /** + * int64 total_bytes_in_bin = 3; + * @return This builder for chaining. + */ + public Builder clearTotalBytesInBin() { + + totalBytesInBin_ = 0L; + onChanged(); + return this; + } + + private long totalChunksInUse_ ; + /** + * int64 total_chunks_in_use = 4; + * @return The totalChunksInUse. + */ + @java.lang.Override + public long getTotalChunksInUse() { + return totalChunksInUse_; + } + /** + * int64 total_chunks_in_use = 4; + * @param value The totalChunksInUse to set. + * @return This builder for chaining. + */ + public Builder setTotalChunksInUse(long value) { + + totalChunksInUse_ = value; + onChanged(); + return this; + } + /** + * int64 total_chunks_in_use = 4; + * @return This builder for chaining. + */ + public Builder clearTotalChunksInUse() { + + totalChunksInUse_ = 0L; + onChanged(); + return this; + } + + private long totalChunksInBin_ ; + /** + * int64 total_chunks_in_bin = 5; + * @return The totalChunksInBin. + */ + @java.lang.Override + public long getTotalChunksInBin() { + return totalChunksInBin_; + } + /** + * int64 total_chunks_in_bin = 5; + * @param value The totalChunksInBin to set. + * @return This builder for chaining. + */ + public Builder setTotalChunksInBin(long value) { + + totalChunksInBin_ = value; + onChanged(); + return this; + } + /** + * int64 total_chunks_in_bin = 5; + * @return This builder for chaining. + */ + public Builder clearTotalChunksInBin() { + + totalChunksInBin_ = 0L; + 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:tensorflow.BinSummary) + } + + // @@protoc_insertion_point(class_scope:tensorflow.BinSummary) + private static final org.tensorflow.proto.BfcMemoryMap.BinSummary DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.BfcMemoryMap.BinSummary(); + } + + public static org.tensorflow.proto.BfcMemoryMap.BinSummary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BinSummary 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 org.tensorflow.proto.BfcMemoryMap.BinSummary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SnapShotOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.SnapShot) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 action_count = 1; + * @return The actionCount. + */ + long getActionCount(); + + /** + * int64 size = 2; + * @return The size. + */ + long getSize(); + } + /** + * Protobuf type {@code tensorflow.SnapShot} + */ + public static final class SnapShot extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SnapShot) + SnapShotOrBuilder { + private static final long serialVersionUID = 0L; + // Use SnapShot.newBuilder() to construct. + private SnapShot(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SnapShot() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SnapShot(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_SnapShot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_SnapShot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.BfcMemoryMap.SnapShot.class, org.tensorflow.proto.BfcMemoryMap.SnapShot.Builder.class); + } + + public static final int ACTION_COUNT_FIELD_NUMBER = 1; + private long actionCount_; + /** + * uint64 action_count = 1; + * @return The actionCount. + */ + @java.lang.Override + public long getActionCount() { + return actionCount_; + } + + public static final int SIZE_FIELD_NUMBER = 2; + private long size_; + /** + * int64 size = 2; + * @return The size. + */ + @java.lang.Override + public long getSize() { + return size_; + } + + 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 (actionCount_ != 0L) { + output.writeUInt64(1, actionCount_); + } + if (size_ != 0L) { + output.writeInt64(2, size_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (actionCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, actionCount_); + } + if (size_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, size_); + } + 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 org.tensorflow.proto.BfcMemoryMap.SnapShot)) { + return super.equals(obj); + } + org.tensorflow.proto.BfcMemoryMap.SnapShot other = (org.tensorflow.proto.BfcMemoryMap.SnapShot) obj; + + if (getActionCount() + != other.getActionCount()) return false; + if (getSize() + != other.getSize()) 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) + ACTION_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getActionCount()); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSize()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.BfcMemoryMap.SnapShot parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BfcMemoryMap.SnapShot parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BfcMemoryMap.SnapShot parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BfcMemoryMap.SnapShot parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BfcMemoryMap.SnapShot parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BfcMemoryMap.SnapShot parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BfcMemoryMap.SnapShot parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BfcMemoryMap.SnapShot 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 org.tensorflow.proto.BfcMemoryMap.SnapShot parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BfcMemoryMap.SnapShot 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 org.tensorflow.proto.BfcMemoryMap.SnapShot parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BfcMemoryMap.SnapShot 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(org.tensorflow.proto.BfcMemoryMap.SnapShot prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.SnapShot} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SnapShot) + org.tensorflow.proto.BfcMemoryMap.SnapShotOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_SnapShot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_SnapShot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.BfcMemoryMap.SnapShot.class, org.tensorflow.proto.BfcMemoryMap.SnapShot.Builder.class); + } + + // Construct using org.tensorflow.proto.BfcMemoryMap.SnapShot.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + actionCount_ = 0L; + + size_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_SnapShot_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.SnapShot getDefaultInstanceForType() { + return org.tensorflow.proto.BfcMemoryMap.SnapShot.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.SnapShot build() { + org.tensorflow.proto.BfcMemoryMap.SnapShot result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.SnapShot buildPartial() { + org.tensorflow.proto.BfcMemoryMap.SnapShot result = new org.tensorflow.proto.BfcMemoryMap.SnapShot(this); + result.actionCount_ = actionCount_; + result.size_ = size_; + 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 org.tensorflow.proto.BfcMemoryMap.SnapShot) { + return mergeFrom((org.tensorflow.proto.BfcMemoryMap.SnapShot)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.BfcMemoryMap.SnapShot other) { + if (other == org.tensorflow.proto.BfcMemoryMap.SnapShot.getDefaultInstance()) return this; + if (other.getActionCount() != 0L) { + setActionCount(other.getActionCount()); + } + if (other.getSize() != 0L) { + setSize(other.getSize()); + } + 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: { + actionCount_ = input.readUInt64(); + + break; + } // case 8 + case 16: { + size_ = input.readInt64(); + + break; + } // case 16 + 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 long actionCount_ ; + /** + * uint64 action_count = 1; + * @return The actionCount. + */ + @java.lang.Override + public long getActionCount() { + return actionCount_; + } + /** + * uint64 action_count = 1; + * @param value The actionCount to set. + * @return This builder for chaining. + */ + public Builder setActionCount(long value) { + + actionCount_ = value; + onChanged(); + return this; + } + /** + * uint64 action_count = 1; + * @return This builder for chaining. + */ + public Builder clearActionCount() { + + actionCount_ = 0L; + onChanged(); + return this; + } + + private long size_ ; + /** + * int64 size = 2; + * @return The size. + */ + @java.lang.Override + public long getSize() { + return size_; + } + /** + * int64 size = 2; + * @param value The size to set. + * @return This builder for chaining. + */ + public Builder setSize(long value) { + + size_ = value; + onChanged(); + return this; + } + /** + * int64 size = 2; + * @return This builder for chaining. + */ + public Builder clearSize() { + + size_ = 0L; + 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:tensorflow.SnapShot) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SnapShot) + private static final org.tensorflow.proto.BfcMemoryMap.SnapShot DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.BfcMemoryMap.SnapShot(); + } + + public static org.tensorflow.proto.BfcMemoryMap.SnapShot getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnapShot 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 org.tensorflow.proto.BfcMemoryMap.SnapShot getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MemoryDumpOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.MemoryDump) + com.google.protobuf.MessageOrBuilder { + + /** + * string allocator_name = 1; + * @return The allocatorName. + */ + java.lang.String getAllocatorName(); + /** + * string allocator_name = 1; + * @return The bytes for allocatorName. + */ + com.google.protobuf.ByteString + getAllocatorNameBytes(); + + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + java.util.List + getBinSummaryList(); + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + org.tensorflow.proto.BfcMemoryMap.BinSummary getBinSummary(int index); + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + int getBinSummaryCount(); + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + java.util.List + getBinSummaryOrBuilderList(); + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + org.tensorflow.proto.BfcMemoryMap.BinSummaryOrBuilder getBinSummaryOrBuilder( + int index); + + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + java.util.List + getChunkList(); + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + org.tensorflow.proto.BfcMemoryMap.MemChunk getChunk(int index); + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + int getChunkCount(); + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + java.util.List + getChunkOrBuilderList(); + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + org.tensorflow.proto.BfcMemoryMap.MemChunkOrBuilder getChunkOrBuilder( + int index); + + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + java.util.List + getSnapShotList(); + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + org.tensorflow.proto.BfcMemoryMap.SnapShot getSnapShot(int index); + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + int getSnapShotCount(); + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + java.util.List + getSnapShotOrBuilderList(); + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + org.tensorflow.proto.BfcMemoryMap.SnapShotOrBuilder getSnapShotOrBuilder( + int index); + + /** + * .tensorflow.MemAllocatorStats stats = 5; + * @return Whether the stats field is set. + */ + boolean hasStats(); + /** + * .tensorflow.MemAllocatorStats stats = 5; + * @return The stats. + */ + org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats getStats(); + /** + * .tensorflow.MemAllocatorStats stats = 5; + */ + org.tensorflow.proto.BfcMemoryMap.MemAllocatorStatsOrBuilder getStatsOrBuilder(); + } + /** + * Protobuf type {@code tensorflow.MemoryDump} + */ + public static final class MemoryDump extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.MemoryDump) + MemoryDumpOrBuilder { + private static final long serialVersionUID = 0L; + // Use MemoryDump.newBuilder() to construct. + private MemoryDump(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MemoryDump() { + allocatorName_ = ""; + binSummary_ = java.util.Collections.emptyList(); + chunk_ = java.util.Collections.emptyList(); + snapShot_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MemoryDump(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_MemoryDump_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_MemoryDump_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.BfcMemoryMap.MemoryDump.class, org.tensorflow.proto.BfcMemoryMap.MemoryDump.Builder.class); + } + + public static final int ALLOCATOR_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object allocatorName_; + /** + * string allocator_name = 1; + * @return The allocatorName. + */ + @java.lang.Override + public java.lang.String getAllocatorName() { + java.lang.Object ref = allocatorName_; + 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(); + allocatorName_ = s; + return s; + } + } + /** + * string allocator_name = 1; + * @return The bytes for allocatorName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAllocatorNameBytes() { + java.lang.Object ref = allocatorName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + allocatorName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BIN_SUMMARY_FIELD_NUMBER = 2; + private java.util.List binSummary_; + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + @java.lang.Override + public java.util.List getBinSummaryList() { + return binSummary_; + } + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + @java.lang.Override + public java.util.List + getBinSummaryOrBuilderList() { + return binSummary_; + } + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + @java.lang.Override + public int getBinSummaryCount() { + return binSummary_.size(); + } + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.BinSummary getBinSummary(int index) { + return binSummary_.get(index); + } + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.BinSummaryOrBuilder getBinSummaryOrBuilder( + int index) { + return binSummary_.get(index); + } + + public static final int CHUNK_FIELD_NUMBER = 3; + private java.util.List chunk_; + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + @java.lang.Override + public java.util.List getChunkList() { + return chunk_; + } + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + @java.lang.Override + public java.util.List + getChunkOrBuilderList() { + return chunk_; + } + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + @java.lang.Override + public int getChunkCount() { + return chunk_.size(); + } + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.MemChunk getChunk(int index) { + return chunk_.get(index); + } + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.MemChunkOrBuilder getChunkOrBuilder( + int index) { + return chunk_.get(index); + } + + public static final int SNAP_SHOT_FIELD_NUMBER = 4; + private java.util.List snapShot_; + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + @java.lang.Override + public java.util.List getSnapShotList() { + return snapShot_; + } + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + @java.lang.Override + public java.util.List + getSnapShotOrBuilderList() { + return snapShot_; + } + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + @java.lang.Override + public int getSnapShotCount() { + return snapShot_.size(); + } + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.SnapShot getSnapShot(int index) { + return snapShot_.get(index); + } + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.SnapShotOrBuilder getSnapShotOrBuilder( + int index) { + return snapShot_.get(index); + } + + public static final int STATS_FIELD_NUMBER = 5; + private org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats stats_; + /** + * .tensorflow.MemAllocatorStats stats = 5; + * @return Whether the stats field is set. + */ + @java.lang.Override + public boolean hasStats() { + return stats_ != null; + } + /** + * .tensorflow.MemAllocatorStats stats = 5; + * @return The stats. + */ + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats getStats() { + return stats_ == null ? org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats.getDefaultInstance() : stats_; + } + /** + * .tensorflow.MemAllocatorStats stats = 5; + */ + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.MemAllocatorStatsOrBuilder getStatsOrBuilder() { + return getStats(); + } + + 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(allocatorName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allocatorName_); + } + for (int i = 0; i < binSummary_.size(); i++) { + output.writeMessage(2, binSummary_.get(i)); + } + for (int i = 0; i < chunk_.size(); i++) { + output.writeMessage(3, chunk_.get(i)); + } + for (int i = 0; i < snapShot_.size(); i++) { + output.writeMessage(4, snapShot_.get(i)); + } + if (stats_ != null) { + output.writeMessage(5, getStats()); + } + 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(allocatorName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, allocatorName_); + } + for (int i = 0; i < binSummary_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, binSummary_.get(i)); + } + for (int i = 0; i < chunk_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, chunk_.get(i)); + } + for (int i = 0; i < snapShot_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, snapShot_.get(i)); + } + if (stats_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getStats()); + } + 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 org.tensorflow.proto.BfcMemoryMap.MemoryDump)) { + return super.equals(obj); + } + org.tensorflow.proto.BfcMemoryMap.MemoryDump other = (org.tensorflow.proto.BfcMemoryMap.MemoryDump) obj; + + if (!getAllocatorName() + .equals(other.getAllocatorName())) return false; + if (!getBinSummaryList() + .equals(other.getBinSummaryList())) return false; + if (!getChunkList() + .equals(other.getChunkList())) return false; + if (!getSnapShotList() + .equals(other.getSnapShotList())) return false; + if (hasStats() != other.hasStats()) return false; + if (hasStats()) { + if (!getStats() + .equals(other.getStats())) 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) + ALLOCATOR_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAllocatorName().hashCode(); + if (getBinSummaryCount() > 0) { + hash = (37 * hash) + BIN_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getBinSummaryList().hashCode(); + } + if (getChunkCount() > 0) { + hash = (37 * hash) + CHUNK_FIELD_NUMBER; + hash = (53 * hash) + getChunkList().hashCode(); + } + if (getSnapShotCount() > 0) { + hash = (37 * hash) + SNAP_SHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapShotList().hashCode(); + } + if (hasStats()) { + hash = (37 * hash) + STATS_FIELD_NUMBER; + hash = (53 * hash) + getStats().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.BfcMemoryMap.MemoryDump parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BfcMemoryMap.MemoryDump parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BfcMemoryMap.MemoryDump parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BfcMemoryMap.MemoryDump parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BfcMemoryMap.MemoryDump parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BfcMemoryMap.MemoryDump parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BfcMemoryMap.MemoryDump parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BfcMemoryMap.MemoryDump 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 org.tensorflow.proto.BfcMemoryMap.MemoryDump parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BfcMemoryMap.MemoryDump 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 org.tensorflow.proto.BfcMemoryMap.MemoryDump parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BfcMemoryMap.MemoryDump 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(org.tensorflow.proto.BfcMemoryMap.MemoryDump prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.MemoryDump} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.MemoryDump) + org.tensorflow.proto.BfcMemoryMap.MemoryDumpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_MemoryDump_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_MemoryDump_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.BfcMemoryMap.MemoryDump.class, org.tensorflow.proto.BfcMemoryMap.MemoryDump.Builder.class); + } + + // Construct using org.tensorflow.proto.BfcMemoryMap.MemoryDump.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + allocatorName_ = ""; + + if (binSummaryBuilder_ == null) { + binSummary_ = java.util.Collections.emptyList(); + } else { + binSummary_ = null; + binSummaryBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (chunkBuilder_ == null) { + chunk_ = java.util.Collections.emptyList(); + } else { + chunk_ = null; + chunkBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (snapShotBuilder_ == null) { + snapShot_ = java.util.Collections.emptyList(); + } else { + snapShot_ = null; + snapShotBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (statsBuilder_ == null) { + stats_ = null; + } else { + stats_ = null; + statsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.BfcMemoryMap.internal_static_tensorflow_MemoryDump_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.MemoryDump getDefaultInstanceForType() { + return org.tensorflow.proto.BfcMemoryMap.MemoryDump.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.MemoryDump build() { + org.tensorflow.proto.BfcMemoryMap.MemoryDump result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.BfcMemoryMap.MemoryDump buildPartial() { + org.tensorflow.proto.BfcMemoryMap.MemoryDump result = new org.tensorflow.proto.BfcMemoryMap.MemoryDump(this); + int from_bitField0_ = bitField0_; + result.allocatorName_ = allocatorName_; + if (binSummaryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + binSummary_ = java.util.Collections.unmodifiableList(binSummary_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.binSummary_ = binSummary_; + } else { + result.binSummary_ = binSummaryBuilder_.build(); + } + if (chunkBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + chunk_ = java.util.Collections.unmodifiableList(chunk_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.chunk_ = chunk_; + } else { + result.chunk_ = chunkBuilder_.build(); + } + if (snapShotBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + snapShot_ = java.util.Collections.unmodifiableList(snapShot_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.snapShot_ = snapShot_; + } else { + result.snapShot_ = snapShotBuilder_.build(); + } + if (statsBuilder_ == null) { + result.stats_ = stats_; + } else { + result.stats_ = statsBuilder_.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 org.tensorflow.proto.BfcMemoryMap.MemoryDump) { + return mergeFrom((org.tensorflow.proto.BfcMemoryMap.MemoryDump)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.BfcMemoryMap.MemoryDump other) { + if (other == org.tensorflow.proto.BfcMemoryMap.MemoryDump.getDefaultInstance()) return this; + if (!other.getAllocatorName().isEmpty()) { + allocatorName_ = other.allocatorName_; + onChanged(); + } + if (binSummaryBuilder_ == null) { + if (!other.binSummary_.isEmpty()) { + if (binSummary_.isEmpty()) { + binSummary_ = other.binSummary_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBinSummaryIsMutable(); + binSummary_.addAll(other.binSummary_); + } + onChanged(); + } + } else { + if (!other.binSummary_.isEmpty()) { + if (binSummaryBuilder_.isEmpty()) { + binSummaryBuilder_.dispose(); + binSummaryBuilder_ = null; + binSummary_ = other.binSummary_; + bitField0_ = (bitField0_ & ~0x00000001); + binSummaryBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBinSummaryFieldBuilder() : null; + } else { + binSummaryBuilder_.addAllMessages(other.binSummary_); + } + } + } + if (chunkBuilder_ == null) { + if (!other.chunk_.isEmpty()) { + if (chunk_.isEmpty()) { + chunk_ = other.chunk_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureChunkIsMutable(); + chunk_.addAll(other.chunk_); + } + onChanged(); + } + } else { + if (!other.chunk_.isEmpty()) { + if (chunkBuilder_.isEmpty()) { + chunkBuilder_.dispose(); + chunkBuilder_ = null; + chunk_ = other.chunk_; + bitField0_ = (bitField0_ & ~0x00000002); + chunkBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getChunkFieldBuilder() : null; + } else { + chunkBuilder_.addAllMessages(other.chunk_); + } + } + } + if (snapShotBuilder_ == null) { + if (!other.snapShot_.isEmpty()) { + if (snapShot_.isEmpty()) { + snapShot_ = other.snapShot_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSnapShotIsMutable(); + snapShot_.addAll(other.snapShot_); + } + onChanged(); + } + } else { + if (!other.snapShot_.isEmpty()) { + if (snapShotBuilder_.isEmpty()) { + snapShotBuilder_.dispose(); + snapShotBuilder_ = null; + snapShot_ = other.snapShot_; + bitField0_ = (bitField0_ & ~0x00000004); + snapShotBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSnapShotFieldBuilder() : null; + } else { + snapShotBuilder_.addAllMessages(other.snapShot_); + } + } + } + if (other.hasStats()) { + mergeStats(other.getStats()); + } + 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: { + allocatorName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + org.tensorflow.proto.BfcMemoryMap.BinSummary m = + input.readMessage( + org.tensorflow.proto.BfcMemoryMap.BinSummary.parser(), + extensionRegistry); + if (binSummaryBuilder_ == null) { + ensureBinSummaryIsMutable(); + binSummary_.add(m); + } else { + binSummaryBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + org.tensorflow.proto.BfcMemoryMap.MemChunk m = + input.readMessage( + org.tensorflow.proto.BfcMemoryMap.MemChunk.parser(), + extensionRegistry); + if (chunkBuilder_ == null) { + ensureChunkIsMutable(); + chunk_.add(m); + } else { + chunkBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + org.tensorflow.proto.BfcMemoryMap.SnapShot m = + input.readMessage( + org.tensorflow.proto.BfcMemoryMap.SnapShot.parser(), + extensionRegistry); + if (snapShotBuilder_ == null) { + ensureSnapShotIsMutable(); + snapShot_.add(m); + } else { + snapShotBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + input.readMessage( + getStatsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object allocatorName_ = ""; + /** + * string allocator_name = 1; + * @return The allocatorName. + */ + public java.lang.String getAllocatorName() { + java.lang.Object ref = allocatorName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allocatorName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string allocator_name = 1; + * @return The bytes for allocatorName. + */ + public com.google.protobuf.ByteString + getAllocatorNameBytes() { + java.lang.Object ref = allocatorName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + allocatorName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string allocator_name = 1; + * @param value The allocatorName to set. + * @return This builder for chaining. + */ + public Builder setAllocatorName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + allocatorName_ = value; + onChanged(); + return this; + } + /** + * string allocator_name = 1; + * @return This builder for chaining. + */ + public Builder clearAllocatorName() { + + allocatorName_ = getDefaultInstance().getAllocatorName(); + onChanged(); + return this; + } + /** + * string allocator_name = 1; + * @param value The bytes for allocatorName to set. + * @return This builder for chaining. + */ + public Builder setAllocatorNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + allocatorName_ = value; + onChanged(); + return this; + } + + private java.util.List binSummary_ = + java.util.Collections.emptyList(); + private void ensureBinSummaryIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + binSummary_ = new java.util.ArrayList(binSummary_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.BfcMemoryMap.BinSummary, org.tensorflow.proto.BfcMemoryMap.BinSummary.Builder, org.tensorflow.proto.BfcMemoryMap.BinSummaryOrBuilder> binSummaryBuilder_; + + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + public java.util.List getBinSummaryList() { + if (binSummaryBuilder_ == null) { + return java.util.Collections.unmodifiableList(binSummary_); + } else { + return binSummaryBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + public int getBinSummaryCount() { + if (binSummaryBuilder_ == null) { + return binSummary_.size(); + } else { + return binSummaryBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + public org.tensorflow.proto.BfcMemoryMap.BinSummary getBinSummary(int index) { + if (binSummaryBuilder_ == null) { + return binSummary_.get(index); + } else { + return binSummaryBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + public Builder setBinSummary( + int index, org.tensorflow.proto.BfcMemoryMap.BinSummary value) { + if (binSummaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBinSummaryIsMutable(); + binSummary_.set(index, value); + onChanged(); + } else { + binSummaryBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + public Builder setBinSummary( + int index, org.tensorflow.proto.BfcMemoryMap.BinSummary.Builder builderForValue) { + if (binSummaryBuilder_ == null) { + ensureBinSummaryIsMutable(); + binSummary_.set(index, builderForValue.build()); + onChanged(); + } else { + binSummaryBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + public Builder addBinSummary(org.tensorflow.proto.BfcMemoryMap.BinSummary value) { + if (binSummaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBinSummaryIsMutable(); + binSummary_.add(value); + onChanged(); + } else { + binSummaryBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + public Builder addBinSummary( + int index, org.tensorflow.proto.BfcMemoryMap.BinSummary value) { + if (binSummaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBinSummaryIsMutable(); + binSummary_.add(index, value); + onChanged(); + } else { + binSummaryBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + public Builder addBinSummary( + org.tensorflow.proto.BfcMemoryMap.BinSummary.Builder builderForValue) { + if (binSummaryBuilder_ == null) { + ensureBinSummaryIsMutable(); + binSummary_.add(builderForValue.build()); + onChanged(); + } else { + binSummaryBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + public Builder addBinSummary( + int index, org.tensorflow.proto.BfcMemoryMap.BinSummary.Builder builderForValue) { + if (binSummaryBuilder_ == null) { + ensureBinSummaryIsMutable(); + binSummary_.add(index, builderForValue.build()); + onChanged(); + } else { + binSummaryBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + public Builder addAllBinSummary( + java.lang.Iterable values) { + if (binSummaryBuilder_ == null) { + ensureBinSummaryIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, binSummary_); + onChanged(); + } else { + binSummaryBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + public Builder clearBinSummary() { + if (binSummaryBuilder_ == null) { + binSummary_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + binSummaryBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + public Builder removeBinSummary(int index) { + if (binSummaryBuilder_ == null) { + ensureBinSummaryIsMutable(); + binSummary_.remove(index); + onChanged(); + } else { + binSummaryBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + public org.tensorflow.proto.BfcMemoryMap.BinSummary.Builder getBinSummaryBuilder( + int index) { + return getBinSummaryFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + public org.tensorflow.proto.BfcMemoryMap.BinSummaryOrBuilder getBinSummaryOrBuilder( + int index) { + if (binSummaryBuilder_ == null) { + return binSummary_.get(index); } else { + return binSummaryBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + public java.util.List + getBinSummaryOrBuilderList() { + if (binSummaryBuilder_ != null) { + return binSummaryBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(binSummary_); + } + } + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + public org.tensorflow.proto.BfcMemoryMap.BinSummary.Builder addBinSummaryBuilder() { + return getBinSummaryFieldBuilder().addBuilder( + org.tensorflow.proto.BfcMemoryMap.BinSummary.getDefaultInstance()); + } + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + public org.tensorflow.proto.BfcMemoryMap.BinSummary.Builder addBinSummaryBuilder( + int index) { + return getBinSummaryFieldBuilder().addBuilder( + index, org.tensorflow.proto.BfcMemoryMap.BinSummary.getDefaultInstance()); + } + /** + * repeated .tensorflow.BinSummary bin_summary = 2; + */ + public java.util.List + getBinSummaryBuilderList() { + return getBinSummaryFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.BfcMemoryMap.BinSummary, org.tensorflow.proto.BfcMemoryMap.BinSummary.Builder, org.tensorflow.proto.BfcMemoryMap.BinSummaryOrBuilder> + getBinSummaryFieldBuilder() { + if (binSummaryBuilder_ == null) { + binSummaryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.BfcMemoryMap.BinSummary, org.tensorflow.proto.BfcMemoryMap.BinSummary.Builder, org.tensorflow.proto.BfcMemoryMap.BinSummaryOrBuilder>( + binSummary_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + binSummary_ = null; + } + return binSummaryBuilder_; + } + + private java.util.List chunk_ = + java.util.Collections.emptyList(); + private void ensureChunkIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + chunk_ = new java.util.ArrayList(chunk_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.BfcMemoryMap.MemChunk, org.tensorflow.proto.BfcMemoryMap.MemChunk.Builder, org.tensorflow.proto.BfcMemoryMap.MemChunkOrBuilder> chunkBuilder_; + + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + public java.util.List getChunkList() { + if (chunkBuilder_ == null) { + return java.util.Collections.unmodifiableList(chunk_); + } else { + return chunkBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + public int getChunkCount() { + if (chunkBuilder_ == null) { + return chunk_.size(); + } else { + return chunkBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + public org.tensorflow.proto.BfcMemoryMap.MemChunk getChunk(int index) { + if (chunkBuilder_ == null) { + return chunk_.get(index); + } else { + return chunkBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + public Builder setChunk( + int index, org.tensorflow.proto.BfcMemoryMap.MemChunk value) { + if (chunkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChunkIsMutable(); + chunk_.set(index, value); + onChanged(); + } else { + chunkBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + public Builder setChunk( + int index, org.tensorflow.proto.BfcMemoryMap.MemChunk.Builder builderForValue) { + if (chunkBuilder_ == null) { + ensureChunkIsMutable(); + chunk_.set(index, builderForValue.build()); + onChanged(); + } else { + chunkBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + public Builder addChunk(org.tensorflow.proto.BfcMemoryMap.MemChunk value) { + if (chunkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChunkIsMutable(); + chunk_.add(value); + onChanged(); + } else { + chunkBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + public Builder addChunk( + int index, org.tensorflow.proto.BfcMemoryMap.MemChunk value) { + if (chunkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChunkIsMutable(); + chunk_.add(index, value); + onChanged(); + } else { + chunkBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + public Builder addChunk( + org.tensorflow.proto.BfcMemoryMap.MemChunk.Builder builderForValue) { + if (chunkBuilder_ == null) { + ensureChunkIsMutable(); + chunk_.add(builderForValue.build()); + onChanged(); + } else { + chunkBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + public Builder addChunk( + int index, org.tensorflow.proto.BfcMemoryMap.MemChunk.Builder builderForValue) { + if (chunkBuilder_ == null) { + ensureChunkIsMutable(); + chunk_.add(index, builderForValue.build()); + onChanged(); + } else { + chunkBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + public Builder addAllChunk( + java.lang.Iterable values) { + if (chunkBuilder_ == null) { + ensureChunkIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, chunk_); + onChanged(); + } else { + chunkBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + public Builder clearChunk() { + if (chunkBuilder_ == null) { + chunk_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + chunkBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + public Builder removeChunk(int index) { + if (chunkBuilder_ == null) { + ensureChunkIsMutable(); + chunk_.remove(index); + onChanged(); + } else { + chunkBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + public org.tensorflow.proto.BfcMemoryMap.MemChunk.Builder getChunkBuilder( + int index) { + return getChunkFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + public org.tensorflow.proto.BfcMemoryMap.MemChunkOrBuilder getChunkOrBuilder( + int index) { + if (chunkBuilder_ == null) { + return chunk_.get(index); } else { + return chunkBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + public java.util.List + getChunkOrBuilderList() { + if (chunkBuilder_ != null) { + return chunkBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(chunk_); + } + } + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + public org.tensorflow.proto.BfcMemoryMap.MemChunk.Builder addChunkBuilder() { + return getChunkFieldBuilder().addBuilder( + org.tensorflow.proto.BfcMemoryMap.MemChunk.getDefaultInstance()); + } + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + public org.tensorflow.proto.BfcMemoryMap.MemChunk.Builder addChunkBuilder( + int index) { + return getChunkFieldBuilder().addBuilder( + index, org.tensorflow.proto.BfcMemoryMap.MemChunk.getDefaultInstance()); + } + /** + * repeated .tensorflow.MemChunk chunk = 3; + */ + public java.util.List + getChunkBuilderList() { + return getChunkFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.BfcMemoryMap.MemChunk, org.tensorflow.proto.BfcMemoryMap.MemChunk.Builder, org.tensorflow.proto.BfcMemoryMap.MemChunkOrBuilder> + getChunkFieldBuilder() { + if (chunkBuilder_ == null) { + chunkBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.BfcMemoryMap.MemChunk, org.tensorflow.proto.BfcMemoryMap.MemChunk.Builder, org.tensorflow.proto.BfcMemoryMap.MemChunkOrBuilder>( + chunk_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + chunk_ = null; + } + return chunkBuilder_; + } + + private java.util.List snapShot_ = + java.util.Collections.emptyList(); + private void ensureSnapShotIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + snapShot_ = new java.util.ArrayList(snapShot_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.BfcMemoryMap.SnapShot, org.tensorflow.proto.BfcMemoryMap.SnapShot.Builder, org.tensorflow.proto.BfcMemoryMap.SnapShotOrBuilder> snapShotBuilder_; + + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + public java.util.List getSnapShotList() { + if (snapShotBuilder_ == null) { + return java.util.Collections.unmodifiableList(snapShot_); + } else { + return snapShotBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + public int getSnapShotCount() { + if (snapShotBuilder_ == null) { + return snapShot_.size(); + } else { + return snapShotBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + public org.tensorflow.proto.BfcMemoryMap.SnapShot getSnapShot(int index) { + if (snapShotBuilder_ == null) { + return snapShot_.get(index); + } else { + return snapShotBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + public Builder setSnapShot( + int index, org.tensorflow.proto.BfcMemoryMap.SnapShot value) { + if (snapShotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSnapShotIsMutable(); + snapShot_.set(index, value); + onChanged(); + } else { + snapShotBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + public Builder setSnapShot( + int index, org.tensorflow.proto.BfcMemoryMap.SnapShot.Builder builderForValue) { + if (snapShotBuilder_ == null) { + ensureSnapShotIsMutable(); + snapShot_.set(index, builderForValue.build()); + onChanged(); + } else { + snapShotBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + public Builder addSnapShot(org.tensorflow.proto.BfcMemoryMap.SnapShot value) { + if (snapShotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSnapShotIsMutable(); + snapShot_.add(value); + onChanged(); + } else { + snapShotBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + public Builder addSnapShot( + int index, org.tensorflow.proto.BfcMemoryMap.SnapShot value) { + if (snapShotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSnapShotIsMutable(); + snapShot_.add(index, value); + onChanged(); + } else { + snapShotBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + public Builder addSnapShot( + org.tensorflow.proto.BfcMemoryMap.SnapShot.Builder builderForValue) { + if (snapShotBuilder_ == null) { + ensureSnapShotIsMutable(); + snapShot_.add(builderForValue.build()); + onChanged(); + } else { + snapShotBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + public Builder addSnapShot( + int index, org.tensorflow.proto.BfcMemoryMap.SnapShot.Builder builderForValue) { + if (snapShotBuilder_ == null) { + ensureSnapShotIsMutable(); + snapShot_.add(index, builderForValue.build()); + onChanged(); + } else { + snapShotBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + public Builder addAllSnapShot( + java.lang.Iterable values) { + if (snapShotBuilder_ == null) { + ensureSnapShotIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, snapShot_); + onChanged(); + } else { + snapShotBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + public Builder clearSnapShot() { + if (snapShotBuilder_ == null) { + snapShot_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + snapShotBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + public Builder removeSnapShot(int index) { + if (snapShotBuilder_ == null) { + ensureSnapShotIsMutable(); + snapShot_.remove(index); + onChanged(); + } else { + snapShotBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + public org.tensorflow.proto.BfcMemoryMap.SnapShot.Builder getSnapShotBuilder( + int index) { + return getSnapShotFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + public org.tensorflow.proto.BfcMemoryMap.SnapShotOrBuilder getSnapShotOrBuilder( + int index) { + if (snapShotBuilder_ == null) { + return snapShot_.get(index); } else { + return snapShotBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + public java.util.List + getSnapShotOrBuilderList() { + if (snapShotBuilder_ != null) { + return snapShotBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(snapShot_); + } + } + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + public org.tensorflow.proto.BfcMemoryMap.SnapShot.Builder addSnapShotBuilder() { + return getSnapShotFieldBuilder().addBuilder( + org.tensorflow.proto.BfcMemoryMap.SnapShot.getDefaultInstance()); + } + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + public org.tensorflow.proto.BfcMemoryMap.SnapShot.Builder addSnapShotBuilder( + int index) { + return getSnapShotFieldBuilder().addBuilder( + index, org.tensorflow.proto.BfcMemoryMap.SnapShot.getDefaultInstance()); + } + /** + * repeated .tensorflow.SnapShot snap_shot = 4; + */ + public java.util.List + getSnapShotBuilderList() { + return getSnapShotFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.BfcMemoryMap.SnapShot, org.tensorflow.proto.BfcMemoryMap.SnapShot.Builder, org.tensorflow.proto.BfcMemoryMap.SnapShotOrBuilder> + getSnapShotFieldBuilder() { + if (snapShotBuilder_ == null) { + snapShotBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.BfcMemoryMap.SnapShot, org.tensorflow.proto.BfcMemoryMap.SnapShot.Builder, org.tensorflow.proto.BfcMemoryMap.SnapShotOrBuilder>( + snapShot_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + snapShot_ = null; + } + return snapShotBuilder_; + } + + private org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats stats_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats, org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats.Builder, org.tensorflow.proto.BfcMemoryMap.MemAllocatorStatsOrBuilder> statsBuilder_; + /** + * .tensorflow.MemAllocatorStats stats = 5; + * @return Whether the stats field is set. + */ + public boolean hasStats() { + return statsBuilder_ != null || stats_ != null; + } + /** + * .tensorflow.MemAllocatorStats stats = 5; + * @return The stats. + */ + public org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats getStats() { + if (statsBuilder_ == null) { + return stats_ == null ? org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats.getDefaultInstance() : stats_; + } else { + return statsBuilder_.getMessage(); + } + } + /** + * .tensorflow.MemAllocatorStats stats = 5; + */ + public Builder setStats(org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats value) { + if (statsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stats_ = value; + onChanged(); + } else { + statsBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.MemAllocatorStats stats = 5; + */ + public Builder setStats( + org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats.Builder builderForValue) { + if (statsBuilder_ == null) { + stats_ = builderForValue.build(); + onChanged(); + } else { + statsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.MemAllocatorStats stats = 5; + */ + public Builder mergeStats(org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats value) { + if (statsBuilder_ == null) { + if (stats_ != null) { + stats_ = + org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats.newBuilder(stats_).mergeFrom(value).buildPartial(); + } else { + stats_ = value; + } + onChanged(); + } else { + statsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.MemAllocatorStats stats = 5; + */ + public Builder clearStats() { + if (statsBuilder_ == null) { + stats_ = null; + onChanged(); + } else { + stats_ = null; + statsBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.MemAllocatorStats stats = 5; + */ + public org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats.Builder getStatsBuilder() { + + onChanged(); + return getStatsFieldBuilder().getBuilder(); + } + /** + * .tensorflow.MemAllocatorStats stats = 5; + */ + public org.tensorflow.proto.BfcMemoryMap.MemAllocatorStatsOrBuilder getStatsOrBuilder() { + if (statsBuilder_ != null) { + return statsBuilder_.getMessageOrBuilder(); + } else { + return stats_ == null ? + org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats.getDefaultInstance() : stats_; + } + } + /** + * .tensorflow.MemAllocatorStats stats = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats, org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats.Builder, org.tensorflow.proto.BfcMemoryMap.MemAllocatorStatsOrBuilder> + getStatsFieldBuilder() { + if (statsBuilder_ == null) { + statsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats, org.tensorflow.proto.BfcMemoryMap.MemAllocatorStats.Builder, org.tensorflow.proto.BfcMemoryMap.MemAllocatorStatsOrBuilder>( + getStats(), + getParentForChildren(), + isClean()); + stats_ = null; + } + return statsBuilder_; + } + @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:tensorflow.MemoryDump) + } + + // @@protoc_insertion_point(class_scope:tensorflow.MemoryDump) + private static final org.tensorflow.proto.BfcMemoryMap.MemoryDump DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.BfcMemoryMap.MemoryDump(); + } + + public static org.tensorflow.proto.BfcMemoryMap.MemoryDump getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemoryDump 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 org.tensorflow.proto.BfcMemoryMap.MemoryDump getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_MemAllocatorStats_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_MemAllocatorStats_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_MemChunk_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_MemChunk_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_BinSummary_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_BinSummary_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_SnapShot_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_SnapShot_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_MemoryDump_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_MemoryDump_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,tensorflow/tsl/protobuf/bfc_memory_map" + + ".proto\022\ntensorflow\"\222\001\n\021MemAllocatorStats" + + "\022\022\n\nnum_allocs\030\001 \001(\003\022\024\n\014bytes_in_use\030\002 \001" + + "(\003\022\031\n\021peak_bytes_in_use\030\003 \001(\003\022\032\n\022largest" + + "_alloc_size\030\004 \001(\003\022\034\n\024fragmentation_metri" + + "c\030\005 \001(\002\"\256\001\n\010MemChunk\022\017\n\007address\030\001 \001(\004\022\014\n" + + "\004size\030\002 \001(\003\022\026\n\016requested_size\030\003 \001(\003\022\013\n\003b" + + "in\030\004 \001(\005\022\017\n\007op_name\030\005 \001(\t\022\026\n\016freed_at_co" + + "unt\030\006 \001(\004\022\024\n\014action_count\030\007 \001(\004\022\016\n\006in_us" + + "e\030\010 \001(\010\022\017\n\007step_id\030\t \001(\004\"\213\001\n\nBinSummary\022" + + "\013\n\003bin\030\001 \001(\005\022\032\n\022total_bytes_in_use\030\002 \001(\003" + + "\022\032\n\022total_bytes_in_bin\030\003 \001(\003\022\033\n\023total_ch" + + "unks_in_use\030\004 \001(\003\022\033\n\023total_chunks_in_bin" + + "\030\005 \001(\003\".\n\010SnapShot\022\024\n\014action_count\030\001 \001(\004" + + "\022\014\n\004size\030\002 \001(\003\"\315\001\n\nMemoryDump\022\026\n\016allocat" + + "or_name\030\001 \001(\t\022+\n\013bin_summary\030\002 \003(\0132\026.ten" + + "sorflow.BinSummary\022#\n\005chunk\030\003 \003(\0132\024.tens" + + "orflow.MemChunk\022\'\n\tsnap_shot\030\004 \003(\0132\024.ten" + + "sorflow.SnapShot\022,\n\005stats\030\005 \001(\0132\035.tensor" + + "flow.MemAllocatorStatsBV\n\024org.tensorflow" + + ".protoZ>github.com/google/tsl/tsl/go/pro" + + "tobuf/for_core_protos_go_protob\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_tensorflow_MemAllocatorStats_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_MemAllocatorStats_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_MemAllocatorStats_descriptor, + new java.lang.String[] { "NumAllocs", "BytesInUse", "PeakBytesInUse", "LargestAllocSize", "FragmentationMetric", }); + internal_static_tensorflow_MemChunk_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_tensorflow_MemChunk_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_MemChunk_descriptor, + new java.lang.String[] { "Address", "Size", "RequestedSize", "Bin", "OpName", "FreedAtCount", "ActionCount", "InUse", "StepId", }); + internal_static_tensorflow_BinSummary_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_tensorflow_BinSummary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_BinSummary_descriptor, + new java.lang.String[] { "Bin", "TotalBytesInUse", "TotalBytesInBin", "TotalChunksInUse", "TotalChunksInBin", }); + internal_static_tensorflow_SnapShot_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_tensorflow_SnapShot_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_SnapShot_descriptor, + new java.lang.String[] { "ActionCount", "Size", }); + internal_static_tensorflow_MemoryDump_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_tensorflow_MemoryDump_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_MemoryDump_descriptor, + new java.lang.String[] { "AllocatorName", "BinSummary", "Chunk", "SnapShot", "Stats", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/BuildConfiguration.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BuildConfiguration.java similarity index 75% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/BuildConfiguration.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BuildConfiguration.java index 8d571429f4f..2f582531b18 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/BuildConfiguration.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BuildConfiguration.java @@ -1,12 +1,12 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/util/test_log.proto +// source: tensorflow/tsl/protobuf/test_log.proto -package org.tensorflow.proto.util.testlog; +package org.tensorflow.proto; /** * Protobuf type {@code tensorflow.BuildConfiguration} */ -public final class BuildConfiguration extends +public final class BuildConfiguration extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.BuildConfiguration) BuildConfigurationOrBuilder { @@ -33,85 +33,17 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private BuildConfiguration( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - mode_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - ccFlags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - ccFlags_.add(s); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - opts_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - opts_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - ccFlags_ = ccFlags_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - opts_ = opts_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_BuildConfiguration_descriptor; + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_BuildConfiguration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_BuildConfiguration_fieldAccessorTable + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_BuildConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.util.testlog.BuildConfiguration.class, org.tensorflow.proto.util.testlog.BuildConfiguration.Builder.class); + org.tensorflow.proto.BuildConfiguration.class, org.tensorflow.proto.BuildConfiguration.Builder.class); } public static final int MODE_FIELD_NUMBER = 1; @@ -122,7 +54,9 @@ private BuildConfiguration( *
* * string mode = 1; + * @return The mode. */ + @java.lang.Override public java.lang.String getMode() { java.lang.Object ref = mode_; if (ref instanceof java.lang.String) { @@ -141,7 +75,9 @@ public java.lang.String getMode() { *
* * string mode = 1; + * @return The bytes for mode. */ + @java.lang.Override public com.google.protobuf.ByteString getModeBytes() { java.lang.Object ref = mode_; @@ -164,6 +100,7 @@ public java.lang.String getMode() { *
* * repeated string cc_flags = 2; + * @return A list containing the ccFlags. */ public com.google.protobuf.ProtocolStringList getCcFlagsList() { @@ -175,6 +112,7 @@ public java.lang.String getMode() { *
* * repeated string cc_flags = 2; + * @return The count of ccFlags. */ public int getCcFlagsCount() { return ccFlags_.size(); @@ -185,6 +123,8 @@ public int getCcFlagsCount() { *
* * repeated string cc_flags = 2; + * @param index The index of the element to return. + * @return The ccFlags at the given index. */ public java.lang.String getCcFlags(int index) { return ccFlags_.get(index); @@ -195,6 +135,8 @@ public java.lang.String getCcFlags(int index) { *
* * repeated string cc_flags = 2; + * @param index The index of the value to return. + * @return The bytes of the ccFlags at the given index. */ public com.google.protobuf.ByteString getCcFlagsBytes(int index) { @@ -209,6 +151,7 @@ public java.lang.String getCcFlags(int index) { * * * repeated string opts = 3; + * @return A list containing the opts. */ public com.google.protobuf.ProtocolStringList getOptsList() { @@ -220,6 +163,7 @@ public java.lang.String getCcFlags(int index) { * * * repeated string opts = 3; + * @return The count of opts. */ public int getOptsCount() { return opts_.size(); @@ -230,6 +174,8 @@ public int getOptsCount() { * * * repeated string opts = 3; + * @param index The index of the element to return. + * @return The opts at the given index. */ public java.lang.String getOpts(int index) { return opts_.get(index); @@ -240,6 +186,8 @@ public java.lang.String getOpts(int index) { * * * repeated string opts = 3; + * @param index The index of the value to return. + * @return The bytes of the opts at the given index. */ public com.google.protobuf.ByteString getOptsBytes(int index) { @@ -260,7 +208,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getModeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mode_); } for (int i = 0; i < ccFlags_.size(); i++) { @@ -269,7 +217,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < opts_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, opts_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -278,7 +226,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getModeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mode_); } { @@ -297,7 +245,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getOptsList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -307,10 +255,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.util.testlog.BuildConfiguration)) { + if (!(obj instanceof org.tensorflow.proto.BuildConfiguration)) { return super.equals(obj); } - org.tensorflow.proto.util.testlog.BuildConfiguration other = (org.tensorflow.proto.util.testlog.BuildConfiguration) obj; + org.tensorflow.proto.BuildConfiguration other = (org.tensorflow.proto.BuildConfiguration) obj; if (!getMode() .equals(other.getMode())) return false; @@ -318,7 +266,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCcFlagsList())) return false; if (!getOptsList() .equals(other.getOptsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,74 +287,74 @@ public int hashCode() { hash = (37 * hash) + OPTS_FIELD_NUMBER; hash = (53 * hash) + getOptsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.util.testlog.BuildConfiguration parseFrom( + public static org.tensorflow.proto.BuildConfiguration parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.BuildConfiguration parseFrom( + public static org.tensorflow.proto.BuildConfiguration parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.BuildConfiguration parseFrom( + public static org.tensorflow.proto.BuildConfiguration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.BuildConfiguration parseFrom( + public static org.tensorflow.proto.BuildConfiguration parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.BuildConfiguration parseFrom(byte[] data) + public static org.tensorflow.proto.BuildConfiguration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.BuildConfiguration parseFrom( + public static org.tensorflow.proto.BuildConfiguration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.BuildConfiguration parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.BuildConfiguration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.BuildConfiguration parseFrom( + public static org.tensorflow.proto.BuildConfiguration 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 org.tensorflow.proto.util.testlog.BuildConfiguration parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.BuildConfiguration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.BuildConfiguration parseDelimitedFrom( + public static org.tensorflow.proto.BuildConfiguration 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 org.tensorflow.proto.util.testlog.BuildConfiguration parseFrom( + public static org.tensorflow.proto.BuildConfiguration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.BuildConfiguration parseFrom( + public static org.tensorflow.proto.BuildConfiguration parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -419,7 +367,7 @@ public static org.tensorflow.proto.util.testlog.BuildConfiguration parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.util.testlog.BuildConfiguration prototype) { + public static Builder newBuilder(org.tensorflow.proto.BuildConfiguration prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -440,34 +388,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.BuildConfiguration) - org.tensorflow.proto.util.testlog.BuildConfigurationOrBuilder { + org.tensorflow.proto.BuildConfigurationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_BuildConfiguration_descriptor; + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_BuildConfiguration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_BuildConfiguration_fieldAccessorTable + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_BuildConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.util.testlog.BuildConfiguration.class, org.tensorflow.proto.util.testlog.BuildConfiguration.Builder.class); + org.tensorflow.proto.BuildConfiguration.class, org.tensorflow.proto.BuildConfiguration.Builder.class); } - // Construct using org.tensorflow.proto.util.testlog.BuildConfiguration.newBuilder() + // Construct using org.tensorflow.proto.BuildConfiguration.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -484,17 +427,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_BuildConfiguration_descriptor; + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_BuildConfiguration_descriptor; } @java.lang.Override - public org.tensorflow.proto.util.testlog.BuildConfiguration getDefaultInstanceForType() { - return org.tensorflow.proto.util.testlog.BuildConfiguration.getDefaultInstance(); + public org.tensorflow.proto.BuildConfiguration getDefaultInstanceForType() { + return org.tensorflow.proto.BuildConfiguration.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.util.testlog.BuildConfiguration build() { - org.tensorflow.proto.util.testlog.BuildConfiguration result = buildPartial(); + public org.tensorflow.proto.BuildConfiguration build() { + org.tensorflow.proto.BuildConfiguration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -502,8 +445,8 @@ public org.tensorflow.proto.util.testlog.BuildConfiguration build() { } @java.lang.Override - public org.tensorflow.proto.util.testlog.BuildConfiguration buildPartial() { - org.tensorflow.proto.util.testlog.BuildConfiguration result = new org.tensorflow.proto.util.testlog.BuildConfiguration(this); + public org.tensorflow.proto.BuildConfiguration buildPartial() { + org.tensorflow.proto.BuildConfiguration result = new org.tensorflow.proto.BuildConfiguration(this); int from_bitField0_ = bitField0_; result.mode_ = mode_; if (((bitField0_ & 0x00000001) != 0)) { @@ -554,16 +497,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.util.testlog.BuildConfiguration) { - return mergeFrom((org.tensorflow.proto.util.testlog.BuildConfiguration)other); + if (other instanceof org.tensorflow.proto.BuildConfiguration) { + return mergeFrom((org.tensorflow.proto.BuildConfiguration)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.util.testlog.BuildConfiguration other) { - if (other == org.tensorflow.proto.util.testlog.BuildConfiguration.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.BuildConfiguration other) { + if (other == org.tensorflow.proto.BuildConfiguration.getDefaultInstance()) return this; if (!other.getMode().isEmpty()) { mode_ = other.mode_; onChanged(); @@ -588,7 +531,7 @@ public Builder mergeFrom(org.tensorflow.proto.util.testlog.BuildConfiguration ot } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -603,17 +546,47 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.util.testlog.BuildConfiguration parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + mode_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureCcFlagsIsMutable(); + ccFlags_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureOptsIsMutable(); + opts_.add(s); + break; + } // case 26 + 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) { - parsedMessage = (org.tensorflow.proto.util.testlog.BuildConfiguration) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -625,6 +598,7 @@ public Builder mergeFrom( * * * string mode = 1; + * @return The mode. */ public java.lang.String getMode() { java.lang.Object ref = mode_; @@ -644,6 +618,7 @@ public java.lang.String getMode() { * * * string mode = 1; + * @return The bytes for mode. */ public com.google.protobuf.ByteString getModeBytes() { @@ -664,6 +639,8 @@ public java.lang.String getMode() { * * * string mode = 1; + * @param value The mode to set. + * @return This builder for chaining. */ public Builder setMode( java.lang.String value) { @@ -681,6 +658,7 @@ public Builder setMode( * * * string mode = 1; + * @return This builder for chaining. */ public Builder clearMode() { @@ -694,6 +672,8 @@ public Builder clearMode() { * * * string mode = 1; + * @param value The bytes for mode to set. + * @return This builder for chaining. */ public Builder setModeBytes( com.google.protobuf.ByteString value) { @@ -720,6 +700,7 @@ private void ensureCcFlagsIsMutable() { * * * repeated string cc_flags = 2; + * @return A list containing the ccFlags. */ public com.google.protobuf.ProtocolStringList getCcFlagsList() { @@ -731,6 +712,7 @@ private void ensureCcFlagsIsMutable() { * * * repeated string cc_flags = 2; + * @return The count of ccFlags. */ public int getCcFlagsCount() { return ccFlags_.size(); @@ -741,6 +723,8 @@ public int getCcFlagsCount() { * * * repeated string cc_flags = 2; + * @param index The index of the element to return. + * @return The ccFlags at the given index. */ public java.lang.String getCcFlags(int index) { return ccFlags_.get(index); @@ -751,6 +735,8 @@ public java.lang.String getCcFlags(int index) { * * * repeated string cc_flags = 2; + * @param index The index of the value to return. + * @return The bytes of the ccFlags at the given index. */ public com.google.protobuf.ByteString getCcFlagsBytes(int index) { @@ -762,6 +748,9 @@ public java.lang.String getCcFlags(int index) { * * * repeated string cc_flags = 2; + * @param index The index to set the value at. + * @param value The ccFlags to set. + * @return This builder for chaining. */ public Builder setCcFlags( int index, java.lang.String value) { @@ -779,6 +768,8 @@ public Builder setCcFlags( * * * repeated string cc_flags = 2; + * @param value The ccFlags to add. + * @return This builder for chaining. */ public Builder addCcFlags( java.lang.String value) { @@ -796,6 +787,8 @@ public Builder addCcFlags( * * * repeated string cc_flags = 2; + * @param values The ccFlags to add. + * @return This builder for chaining. */ public Builder addAllCcFlags( java.lang.Iterable values) { @@ -811,6 +804,7 @@ public Builder addAllCcFlags( * * * repeated string cc_flags = 2; + * @return This builder for chaining. */ public Builder clearCcFlags() { ccFlags_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -824,6 +818,8 @@ public Builder clearCcFlags() { * * * repeated string cc_flags = 2; + * @param value The bytes of the ccFlags to add. + * @return This builder for chaining. */ public Builder addCcFlagsBytes( com.google.protobuf.ByteString value) { @@ -850,6 +846,7 @@ private void ensureOptsIsMutable() { * * * repeated string opts = 3; + * @return A list containing the opts. */ public com.google.protobuf.ProtocolStringList getOptsList() { @@ -861,6 +858,7 @@ private void ensureOptsIsMutable() { * * * repeated string opts = 3; + * @return The count of opts. */ public int getOptsCount() { return opts_.size(); @@ -871,6 +869,8 @@ public int getOptsCount() { * * * repeated string opts = 3; + * @param index The index of the element to return. + * @return The opts at the given index. */ public java.lang.String getOpts(int index) { return opts_.get(index); @@ -881,6 +881,8 @@ public java.lang.String getOpts(int index) { * * * repeated string opts = 3; + * @param index The index of the value to return. + * @return The bytes of the opts at the given index. */ public com.google.protobuf.ByteString getOptsBytes(int index) { @@ -892,6 +894,9 @@ public java.lang.String getOpts(int index) { * * * repeated string opts = 3; + * @param index The index to set the value at. + * @param value The opts to set. + * @return This builder for chaining. */ public Builder setOpts( int index, java.lang.String value) { @@ -909,6 +914,8 @@ public Builder setOpts( * * * repeated string opts = 3; + * @param value The opts to add. + * @return This builder for chaining. */ public Builder addOpts( java.lang.String value) { @@ -926,6 +933,8 @@ public Builder addOpts( * * * repeated string opts = 3; + * @param values The opts to add. + * @return This builder for chaining. */ public Builder addAllOpts( java.lang.Iterable values) { @@ -941,6 +950,7 @@ public Builder addAllOpts( * * * repeated string opts = 3; + * @return This builder for chaining. */ public Builder clearOpts() { opts_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -954,6 +964,8 @@ public Builder clearOpts() { * * * repeated string opts = 3; + * @param value The bytes of the opts to add. + * @return This builder for chaining. */ public Builder addOptsBytes( com.google.protobuf.ByteString value) { @@ -983,12 +995,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.BuildConfiguration) - private static final org.tensorflow.proto.util.testlog.BuildConfiguration DEFAULT_INSTANCE; + private static final org.tensorflow.proto.BuildConfiguration DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.util.testlog.BuildConfiguration(); + DEFAULT_INSTANCE = new org.tensorflow.proto.BuildConfiguration(); } - public static org.tensorflow.proto.util.testlog.BuildConfiguration getDefaultInstance() { + public static org.tensorflow.proto.BuildConfiguration getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -999,7 +1011,18 @@ public BuildConfiguration parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new BuildConfiguration(input, extensionRegistry); + 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(); } }; @@ -1013,7 +1036,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.util.testlog.BuildConfiguration getDefaultInstanceForType() { + public org.tensorflow.proto.BuildConfiguration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BuildConfigurationOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BuildConfigurationOrBuilder.java new file mode 100644 index 00000000000..1308bca9598 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BuildConfigurationOrBuilder.java @@ -0,0 +1,111 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/tsl/protobuf/test_log.proto + +package org.tensorflow.proto; + +public interface BuildConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.BuildConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * opt, dbg, etc
+   * 
+ * + * string mode = 1; + * @return The mode. + */ + java.lang.String getMode(); + /** + *
+   * opt, dbg, etc
+   * 
+ * + * string mode = 1; + * @return The bytes for mode. + */ + com.google.protobuf.ByteString + getModeBytes(); + + /** + *
+   * CC compiler flags, if known
+   * 
+ * + * repeated string cc_flags = 2; + * @return A list containing the ccFlags. + */ + java.util.List + getCcFlagsList(); + /** + *
+   * CC compiler flags, if known
+   * 
+ * + * repeated string cc_flags = 2; + * @return The count of ccFlags. + */ + int getCcFlagsCount(); + /** + *
+   * CC compiler flags, if known
+   * 
+ * + * repeated string cc_flags = 2; + * @param index The index of the element to return. + * @return The ccFlags at the given index. + */ + java.lang.String getCcFlags(int index); + /** + *
+   * CC compiler flags, if known
+   * 
+ * + * repeated string cc_flags = 2; + * @param index The index of the value to return. + * @return The bytes of the ccFlags at the given index. + */ + com.google.protobuf.ByteString + getCcFlagsBytes(int index); + + /** + *
+   * Bazel compilation options, if known
+   * 
+ * + * repeated string opts = 3; + * @return A list containing the opts. + */ + java.util.List + getOptsList(); + /** + *
+   * Bazel compilation options, if known
+   * 
+ * + * repeated string opts = 3; + * @return The count of opts. + */ + int getOptsCount(); + /** + *
+   * Bazel compilation options, if known
+   * 
+ * + * repeated string opts = 3; + * @param index The index of the element to return. + * @return The opts at the given index. + */ + java.lang.String getOpts(int index); + /** + *
+   * Bazel compilation options, if known
+   * 
+ * + * repeated string opts = 3; + * @param index The index of the value to return. + * @return The bytes of the opts at the given index. + */ + com.google.protobuf.ByteString + getOptsBytes(int index); +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/BundleEntryProto.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BundleEntryProto.java similarity index 75% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/BundleEntryProto.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BundleEntryProto.java index a74911cdde6..ff5e9404343 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/BundleEntryProto.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BundleEntryProto.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/tensor_bundle.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; /** *
@@ -10,7 +10,7 @@
  *
  * Protobuf type {@code tensorflow.BundleEntryProto}
  */
-public  final class BundleEntryProto extends
+public final class BundleEntryProto extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.BundleEntryProto)
     BundleEntryProtoOrBuilder {
@@ -36,106 +36,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private BundleEntryProto(
-      com.google.protobuf.CodedInputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws com.google.protobuf.InvalidProtocolBufferException {
-    this();
-    if (extensionRegistry == null) {
-      throw new java.lang.NullPointerException();
-    }
-    int mutable_bitField0_ = 0;
-    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
-        com.google.protobuf.UnknownFieldSet.newBuilder();
-    try {
-      boolean done = false;
-      while (!done) {
-        int tag = input.readTag();
-        switch (tag) {
-          case 0:
-            done = true;
-            break;
-          case 8: {
-            int rawValue = input.readEnum();
-
-            dtype_ = rawValue;
-            break;
-          }
-          case 18: {
-            org.tensorflow.proto.framework.TensorShapeProto.Builder subBuilder = null;
-            if (shape_ != null) {
-              subBuilder = shape_.toBuilder();
-            }
-            shape_ = input.readMessage(org.tensorflow.proto.framework.TensorShapeProto.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(shape_);
-              shape_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 24: {
-
-            shardId_ = input.readInt32();
-            break;
-          }
-          case 32: {
-
-            offset_ = input.readInt64();
-            break;
-          }
-          case 40: {
-
-            size_ = input.readInt64();
-            break;
-          }
-          case 53: {
-
-            crc32C_ = input.readFixed32();
-            break;
-          }
-          case 58: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              slices_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            slices_.add(
-                input.readMessage(org.tensorflow.proto.framework.TensorSliceProto.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)) {
-        slices_ = java.util.Collections.unmodifiableList(slices_);
-      }
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.util.TensorBundleProtos.internal_static_tensorflow_BundleEntryProto_descriptor;
+    return org.tensorflow.proto.TensorBundleProtos.internal_static_tensorflow_BundleEntryProto_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.util.TensorBundleProtos.internal_static_tensorflow_BundleEntryProto_fieldAccessorTable
+    return org.tensorflow.proto.TensorBundleProtos.internal_static_tensorflow_BundleEntryProto_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.util.BundleEntryProto.class, org.tensorflow.proto.util.BundleEntryProto.Builder.class);
+            org.tensorflow.proto.BundleEntryProto.class, org.tensorflow.proto.BundleEntryProto.Builder.class);
   }
 
   public static final int DTYPE_FIELD_NUMBER = 1;
@@ -146,8 +57,9 @@ private BundleEntryProto(
    * 
* * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. */ - public int getDtypeValue() { + @java.lang.Override public int getDtypeValue() { return dtype_; } /** @@ -156,31 +68,37 @@ public int getDtypeValue() { * * * .tensorflow.DataType dtype = 1; + * @return The dtype. */ - public org.tensorflow.proto.framework.DataType getDtype() { + @java.lang.Override public org.tensorflow.proto.DataType getDtype() { @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; } public static final int SHAPE_FIELD_NUMBER = 2; - private org.tensorflow.proto.framework.TensorShapeProto shape_; + private org.tensorflow.proto.TensorShapeProto shape_; /** * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. */ + @java.lang.Override public boolean hasShape() { return shape_ != null; } /** * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. */ - public org.tensorflow.proto.framework.TensorShapeProto getShape() { - return shape_ == null ? org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto getShape() { + return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; } /** * .tensorflow.TensorShapeProto shape = 2; */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { + @java.lang.Override + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { return getShape(); } @@ -193,7 +111,9 @@ public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilde * * * int32 shard_id = 3; + * @return The shardId. */ + @java.lang.Override public int getShardId() { return shardId_; } @@ -202,7 +122,9 @@ public int getShardId() { private long offset_; /** * int64 offset = 4; + * @return The offset. */ + @java.lang.Override public long getOffset() { return offset_; } @@ -211,7 +133,9 @@ public long getOffset() { private long size_; /** * int64 size = 5; + * @return The size. */ + @java.lang.Override public long getSize() { return size_; } @@ -224,13 +148,15 @@ public long getSize() { * * * fixed32 crc32c = 6; + * @return The crc32c. */ + @java.lang.Override public int getCrc32C() { return crc32C_; } public static final int SLICES_FIELD_NUMBER = 7; - private java.util.List slices_; + private java.util.List slices_; /** *
    * Iff present, this entry represents a partitioned tensor.  The previous
@@ -243,7 +169,8 @@ public int getCrc32C() {
    *
    * repeated .tensorflow.TensorSliceProto slices = 7;
    */
-  public java.util.List getSlicesList() {
+  @java.lang.Override
+  public java.util.List getSlicesList() {
     return slices_;
   }
   /**
@@ -258,7 +185,8 @@ public java.util.List getSlices
    *
    * repeated .tensorflow.TensorSliceProto slices = 7;
    */
-  public java.util.List 
+  @java.lang.Override
+  public java.util.List 
       getSlicesOrBuilderList() {
     return slices_;
   }
@@ -274,6 +202,7 @@ public java.util.List getSlices
    *
    * repeated .tensorflow.TensorSliceProto slices = 7;
    */
+  @java.lang.Override
   public int getSlicesCount() {
     return slices_.size();
   }
@@ -289,7 +218,8 @@ public int getSlicesCount() {
    *
    * repeated .tensorflow.TensorSliceProto slices = 7;
    */
-  public org.tensorflow.proto.framework.TensorSliceProto getSlices(int index) {
+  @java.lang.Override
+  public org.tensorflow.proto.TensorSliceProto getSlices(int index) {
     return slices_.get(index);
   }
   /**
@@ -304,7 +234,8 @@ public org.tensorflow.proto.framework.TensorSliceProto getSlices(int index) {
    *
    * repeated .tensorflow.TensorSliceProto slices = 7;
    */
-  public org.tensorflow.proto.framework.TensorSliceProtoOrBuilder getSlicesOrBuilder(
+  @java.lang.Override
+  public org.tensorflow.proto.TensorSliceProtoOrBuilder getSlicesOrBuilder(
       int index) {
     return slices_.get(index);
   }
@@ -323,7 +254,7 @@ public final boolean isInitialized() {
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output)
                       throws java.io.IOException {
-    if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) {
+    if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) {
       output.writeEnum(1, dtype_);
     }
     if (shape_ != null) {
@@ -344,7 +275,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     for (int i = 0; i < slices_.size(); i++) {
       output.writeMessage(7, slices_.get(i));
     }
-    unknownFields.writeTo(output);
+    getUnknownFields().writeTo(output);
   }
 
   @java.lang.Override
@@ -353,7 +284,7 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) {
+    if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) {
       size += com.google.protobuf.CodedOutputStream
         .computeEnumSize(1, dtype_);
     }
@@ -381,7 +312,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
         .computeMessageSize(7, slices_.get(i));
     }
-    size += unknownFields.getSerializedSize();
+    size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
     return size;
   }
@@ -391,10 +322,10 @@ public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
      return true;
     }
-    if (!(obj instanceof org.tensorflow.proto.util.BundleEntryProto)) {
+    if (!(obj instanceof org.tensorflow.proto.BundleEntryProto)) {
       return super.equals(obj);
     }
-    org.tensorflow.proto.util.BundleEntryProto other = (org.tensorflow.proto.util.BundleEntryProto) obj;
+    org.tensorflow.proto.BundleEntryProto other = (org.tensorflow.proto.BundleEntryProto) obj;
 
     if (dtype_ != other.dtype_) return false;
     if (hasShape() != other.hasShape()) return false;
@@ -412,7 +343,7 @@ public boolean equals(final java.lang.Object obj) {
         != other.getCrc32C()) return false;
     if (!getSlicesList()
         .equals(other.getSlicesList())) return false;
-    if (!unknownFields.equals(other.unknownFields)) return false;
+    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
 
@@ -443,74 +374,74 @@ public int hashCode() {
       hash = (37 * hash) + SLICES_FIELD_NUMBER;
       hash = (53 * hash) + getSlicesList().hashCode();
     }
-    hash = (29 * hash) + unknownFields.hashCode();
+    hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
     return hash;
   }
 
-  public static org.tensorflow.proto.util.BundleEntryProto parseFrom(
+  public static org.tensorflow.proto.BundleEntryProto parseFrom(
       java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.util.BundleEntryProto parseFrom(
+  public static org.tensorflow.proto.BundleEntryProto parseFrom(
       java.nio.ByteBuffer data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.util.BundleEntryProto parseFrom(
+  public static org.tensorflow.proto.BundleEntryProto parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.util.BundleEntryProto parseFrom(
+  public static org.tensorflow.proto.BundleEntryProto parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.util.BundleEntryProto parseFrom(byte[] data)
+  public static org.tensorflow.proto.BundleEntryProto parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.util.BundleEntryProto parseFrom(
+  public static org.tensorflow.proto.BundleEntryProto parseFrom(
       byte[] data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.util.BundleEntryProto parseFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.BundleEntryProto parseFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.util.BundleEntryProto parseFrom(
+  public static org.tensorflow.proto.BundleEntryProto 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 org.tensorflow.proto.util.BundleEntryProto parseDelimitedFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.BundleEntryProto parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.util.BundleEntryProto parseDelimitedFrom(
+  public static org.tensorflow.proto.BundleEntryProto 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 org.tensorflow.proto.util.BundleEntryProto parseFrom(
+  public static org.tensorflow.proto.BundleEntryProto parseFrom(
       com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.util.BundleEntryProto parseFrom(
+  public static org.tensorflow.proto.BundleEntryProto parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
@@ -523,7 +454,7 @@ public static org.tensorflow.proto.util.BundleEntryProto parseFrom(
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(org.tensorflow.proto.util.BundleEntryProto prototype) {
+  public static Builder newBuilder(org.tensorflow.proto.BundleEntryProto prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
   @java.lang.Override
@@ -548,35 +479,29 @@ protected Builder newBuilderForType(
   public static final class Builder extends
       com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:tensorflow.BundleEntryProto)
-      org.tensorflow.proto.util.BundleEntryProtoOrBuilder {
+      org.tensorflow.proto.BundleEntryProtoOrBuilder {
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return org.tensorflow.proto.util.TensorBundleProtos.internal_static_tensorflow_BundleEntryProto_descriptor;
+      return org.tensorflow.proto.TensorBundleProtos.internal_static_tensorflow_BundleEntryProto_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return org.tensorflow.proto.util.TensorBundleProtos.internal_static_tensorflow_BundleEntryProto_fieldAccessorTable
+      return org.tensorflow.proto.TensorBundleProtos.internal_static_tensorflow_BundleEntryProto_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              org.tensorflow.proto.util.BundleEntryProto.class, org.tensorflow.proto.util.BundleEntryProto.Builder.class);
+              org.tensorflow.proto.BundleEntryProto.class, org.tensorflow.proto.BundleEntryProto.Builder.class);
     }
 
-    // Construct using org.tensorflow.proto.util.BundleEntryProto.newBuilder()
+    // Construct using org.tensorflow.proto.BundleEntryProto.newBuilder()
     private Builder() {
-      maybeForceBuilderInitialization();
+
     }
 
     private Builder(
         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-      maybeForceBuilderInitialization();
-    }
-    private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-        getSlicesFieldBuilder();
-      }
+
     }
     @java.lang.Override
     public Builder clear() {
@@ -599,27 +524,28 @@ public Builder clear() {
 
       if (slicesBuilder_ == null) {
         slices_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000001);
       } else {
+        slices_ = null;
         slicesBuilder_.clear();
       }
+      bitField0_ = (bitField0_ & ~0x00000001);
       return this;
     }
 
     @java.lang.Override
     public com.google.protobuf.Descriptors.Descriptor
         getDescriptorForType() {
-      return org.tensorflow.proto.util.TensorBundleProtos.internal_static_tensorflow_BundleEntryProto_descriptor;
+      return org.tensorflow.proto.TensorBundleProtos.internal_static_tensorflow_BundleEntryProto_descriptor;
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.util.BundleEntryProto getDefaultInstanceForType() {
-      return org.tensorflow.proto.util.BundleEntryProto.getDefaultInstance();
+    public org.tensorflow.proto.BundleEntryProto getDefaultInstanceForType() {
+      return org.tensorflow.proto.BundleEntryProto.getDefaultInstance();
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.util.BundleEntryProto build() {
-      org.tensorflow.proto.util.BundleEntryProto result = buildPartial();
+    public org.tensorflow.proto.BundleEntryProto build() {
+      org.tensorflow.proto.BundleEntryProto result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -627,8 +553,8 @@ public org.tensorflow.proto.util.BundleEntryProto build() {
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.util.BundleEntryProto buildPartial() {
-      org.tensorflow.proto.util.BundleEntryProto result = new org.tensorflow.proto.util.BundleEntryProto(this);
+    public org.tensorflow.proto.BundleEntryProto buildPartial() {
+      org.tensorflow.proto.BundleEntryProto result = new org.tensorflow.proto.BundleEntryProto(this);
       int from_bitField0_ = bitField0_;
       result.dtype_ = dtype_;
       if (shapeBuilder_ == null) {
@@ -687,16 +613,16 @@ public Builder addRepeatedField(
     }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof org.tensorflow.proto.util.BundleEntryProto) {
-        return mergeFrom((org.tensorflow.proto.util.BundleEntryProto)other);
+      if (other instanceof org.tensorflow.proto.BundleEntryProto) {
+        return mergeFrom((org.tensorflow.proto.BundleEntryProto)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(org.tensorflow.proto.util.BundleEntryProto other) {
-      if (other == org.tensorflow.proto.util.BundleEntryProto.getDefaultInstance()) return this;
+    public Builder mergeFrom(org.tensorflow.proto.BundleEntryProto other) {
+      if (other == org.tensorflow.proto.BundleEntryProto.getDefaultInstance()) return this;
       if (other.dtype_ != 0) {
         setDtypeValue(other.getDtypeValue());
       }
@@ -741,7 +667,7 @@ public Builder mergeFrom(org.tensorflow.proto.util.BundleEntryProto other) {
           }
         }
       }
-      this.mergeUnknownFields(other.unknownFields);
+      this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
     }
@@ -756,17 +682,75 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      org.tensorflow.proto.util.BundleEntryProto parsedMessage = null;
+      if (extensionRegistry == null) {
+        throw new java.lang.NullPointerException();
+      }
       try {
-        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+        boolean done = false;
+        while (!done) {
+          int tag = input.readTag();
+          switch (tag) {
+            case 0:
+              done = true;
+              break;
+            case 8: {
+              dtype_ = input.readEnum();
+
+              break;
+            } // case 8
+            case 18: {
+              input.readMessage(
+                  getShapeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 18
+            case 24: {
+              shardId_ = input.readInt32();
+
+              break;
+            } // case 24
+            case 32: {
+              offset_ = input.readInt64();
+
+              break;
+            } // case 32
+            case 40: {
+              size_ = input.readInt64();
+
+              break;
+            } // case 40
+            case 53: {
+              crc32C_ = input.readFixed32();
+
+              break;
+            } // case 53
+            case 58: {
+              org.tensorflow.proto.TensorSliceProto m =
+                  input.readMessage(
+                      org.tensorflow.proto.TensorSliceProto.parser(),
+                      extensionRegistry);
+              if (slicesBuilder_ == null) {
+                ensureSlicesIsMutable();
+                slices_.add(m);
+              } else {
+                slicesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 58
+            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) {
-        parsedMessage = (org.tensorflow.proto.util.BundleEntryProto) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
-        if (parsedMessage != null) {
-          mergeFrom(parsedMessage);
-        }
-      }
+        onChanged();
+      } // finally
       return this;
     }
     private int bitField0_;
@@ -778,8 +762,9 @@ public Builder mergeFrom(
      * 
* * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. */ - public int getDtypeValue() { + @java.lang.Override public int getDtypeValue() { return dtype_; } /** @@ -788,8 +773,11 @@ public int getDtypeValue() { * * * .tensorflow.DataType dtype = 1; + * @param value The enum numeric value on the wire for dtype to set. + * @return This builder for chaining. */ public Builder setDtypeValue(int value) { + dtype_ = value; onChanged(); return this; @@ -800,11 +788,13 @@ public Builder setDtypeValue(int value) { * * * .tensorflow.DataType dtype = 1; + * @return The dtype. */ - public org.tensorflow.proto.framework.DataType getDtype() { + @java.lang.Override + public org.tensorflow.proto.DataType getDtype() { @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; } /** *
@@ -812,8 +802,10 @@ public org.tensorflow.proto.framework.DataType getDtype() {
      * 
* * .tensorflow.DataType dtype = 1; + * @param value The dtype to set. + * @return This builder for chaining. */ - public Builder setDtype(org.tensorflow.proto.framework.DataType value) { + public Builder setDtype(org.tensorflow.proto.DataType value) { if (value == null) { throw new NullPointerException(); } @@ -828,6 +820,7 @@ public Builder setDtype(org.tensorflow.proto.framework.DataType value) { * * * .tensorflow.DataType dtype = 1; + * @return This builder for chaining. */ public Builder clearDtype() { @@ -836,21 +829,23 @@ public Builder clearDtype() { return this; } - private org.tensorflow.proto.framework.TensorShapeProto shape_; + private org.tensorflow.proto.TensorShapeProto shape_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> shapeBuilder_; + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> shapeBuilder_; /** * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. */ public boolean hasShape() { return shapeBuilder_ != null || shape_ != null; } /** * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. */ - public org.tensorflow.proto.framework.TensorShapeProto getShape() { + public org.tensorflow.proto.TensorShapeProto getShape() { if (shapeBuilder_ == null) { - return shape_ == null ? org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; + return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; } else { return shapeBuilder_.getMessage(); } @@ -858,7 +853,7 @@ public org.tensorflow.proto.framework.TensorShapeProto getShape() { /** * .tensorflow.TensorShapeProto shape = 2; */ - public Builder setShape(org.tensorflow.proto.framework.TensorShapeProto value) { + public Builder setShape(org.tensorflow.proto.TensorShapeProto value) { if (shapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -875,7 +870,7 @@ public Builder setShape(org.tensorflow.proto.framework.TensorShapeProto value) { * .tensorflow.TensorShapeProto shape = 2; */ public Builder setShape( - org.tensorflow.proto.framework.TensorShapeProto.Builder builderForValue) { + org.tensorflow.proto.TensorShapeProto.Builder builderForValue) { if (shapeBuilder_ == null) { shape_ = builderForValue.build(); onChanged(); @@ -888,11 +883,11 @@ public Builder setShape( /** * .tensorflow.TensorShapeProto shape = 2; */ - public Builder mergeShape(org.tensorflow.proto.framework.TensorShapeProto value) { + public Builder mergeShape(org.tensorflow.proto.TensorShapeProto value) { if (shapeBuilder_ == null) { if (shape_ != null) { shape_ = - org.tensorflow.proto.framework.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial(); } else { shape_ = value; } @@ -920,7 +915,7 @@ public Builder clearShape() { /** * .tensorflow.TensorShapeProto shape = 2; */ - public org.tensorflow.proto.framework.TensorShapeProto.Builder getShapeBuilder() { + public org.tensorflow.proto.TensorShapeProto.Builder getShapeBuilder() { onChanged(); return getShapeFieldBuilder().getBuilder(); @@ -928,23 +923,23 @@ public org.tensorflow.proto.framework.TensorShapeProto.Builder getShapeBuilder() /** * .tensorflow.TensorShapeProto shape = 2; */ - public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder() { + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { if (shapeBuilder_ != null) { return shapeBuilder_.getMessageOrBuilder(); } else { return shape_ == null ? - org.tensorflow.proto.framework.TensorShapeProto.getDefaultInstance() : shape_; + org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; } } /** * .tensorflow.TensorShapeProto shape = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder> + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> getShapeFieldBuilder() { if (shapeBuilder_ == null) { shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorShapeProto, org.tensorflow.proto.framework.TensorShapeProto.Builder, org.tensorflow.proto.framework.TensorShapeProtoOrBuilder>( + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder>( getShape(), getParentForChildren(), isClean()); @@ -961,7 +956,9 @@ public org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilde * * * int32 shard_id = 3; + * @return The shardId. */ + @java.lang.Override public int getShardId() { return shardId_; } @@ -972,6 +969,8 @@ public int getShardId() { * * * int32 shard_id = 3; + * @param value The shardId to set. + * @return This builder for chaining. */ public Builder setShardId(int value) { @@ -986,6 +985,7 @@ public Builder setShardId(int value) { * * * int32 shard_id = 3; + * @return This builder for chaining. */ public Builder clearShardId() { @@ -997,12 +997,16 @@ public Builder clearShardId() { private long offset_ ; /** * int64 offset = 4; + * @return The offset. */ + @java.lang.Override public long getOffset() { return offset_; } /** * int64 offset = 4; + * @param value The offset to set. + * @return This builder for chaining. */ public Builder setOffset(long value) { @@ -1012,6 +1016,7 @@ public Builder setOffset(long value) { } /** * int64 offset = 4; + * @return This builder for chaining. */ public Builder clearOffset() { @@ -1023,12 +1028,16 @@ public Builder clearOffset() { private long size_ ; /** * int64 size = 5; + * @return The size. */ + @java.lang.Override public long getSize() { return size_; } /** * int64 size = 5; + * @param value The size to set. + * @return This builder for chaining. */ public Builder setSize(long value) { @@ -1038,6 +1047,7 @@ public Builder setSize(long value) { } /** * int64 size = 5; + * @return This builder for chaining. */ public Builder clearSize() { @@ -1053,7 +1063,9 @@ public Builder clearSize() { * * * fixed32 crc32c = 6; + * @return The crc32c. */ + @java.lang.Override public int getCrc32C() { return crc32C_; } @@ -1063,6 +1075,8 @@ public int getCrc32C() { * * * fixed32 crc32c = 6; + * @param value The crc32c to set. + * @return This builder for chaining. */ public Builder setCrc32C(int value) { @@ -1076,6 +1090,7 @@ public Builder setCrc32C(int value) { * * * fixed32 crc32c = 6; + * @return This builder for chaining. */ public Builder clearCrc32C() { @@ -1084,17 +1099,17 @@ public Builder clearCrc32C() { return this; } - private java.util.List slices_ = + private java.util.List slices_ = java.util.Collections.emptyList(); private void ensureSlicesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - slices_ = new java.util.ArrayList(slices_); + slices_ = new java.util.ArrayList(slices_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.TensorSliceProto, org.tensorflow.proto.framework.TensorSliceProto.Builder, org.tensorflow.proto.framework.TensorSliceProtoOrBuilder> slicesBuilder_; + org.tensorflow.proto.TensorSliceProto, org.tensorflow.proto.TensorSliceProto.Builder, org.tensorflow.proto.TensorSliceProtoOrBuilder> slicesBuilder_; /** *
@@ -1108,7 +1123,7 @@ private void ensureSlicesIsMutable() {
      *
      * repeated .tensorflow.TensorSliceProto slices = 7;
      */
-    public java.util.List getSlicesList() {
+    public java.util.List getSlicesList() {
       if (slicesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(slices_);
       } else {
@@ -1146,7 +1161,7 @@ public int getSlicesCount() {
      *
      * repeated .tensorflow.TensorSliceProto slices = 7;
      */
-    public org.tensorflow.proto.framework.TensorSliceProto getSlices(int index) {
+    public org.tensorflow.proto.TensorSliceProto getSlices(int index) {
       if (slicesBuilder_ == null) {
         return slices_.get(index);
       } else {
@@ -1166,7 +1181,7 @@ public org.tensorflow.proto.framework.TensorSliceProto getSlices(int index) {
      * repeated .tensorflow.TensorSliceProto slices = 7;
      */
     public Builder setSlices(
-        int index, org.tensorflow.proto.framework.TensorSliceProto value) {
+        int index, org.tensorflow.proto.TensorSliceProto value) {
       if (slicesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1192,7 +1207,7 @@ public Builder setSlices(
      * repeated .tensorflow.TensorSliceProto slices = 7;
      */
     public Builder setSlices(
-        int index, org.tensorflow.proto.framework.TensorSliceProto.Builder builderForValue) {
+        int index, org.tensorflow.proto.TensorSliceProto.Builder builderForValue) {
       if (slicesBuilder_ == null) {
         ensureSlicesIsMutable();
         slices_.set(index, builderForValue.build());
@@ -1214,7 +1229,7 @@ public Builder setSlices(
      *
      * repeated .tensorflow.TensorSliceProto slices = 7;
      */
-    public Builder addSlices(org.tensorflow.proto.framework.TensorSliceProto value) {
+    public Builder addSlices(org.tensorflow.proto.TensorSliceProto value) {
       if (slicesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1240,7 +1255,7 @@ public Builder addSlices(org.tensorflow.proto.framework.TensorSliceProto value)
      * repeated .tensorflow.TensorSliceProto slices = 7;
      */
     public Builder addSlices(
-        int index, org.tensorflow.proto.framework.TensorSliceProto value) {
+        int index, org.tensorflow.proto.TensorSliceProto value) {
       if (slicesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1266,7 +1281,7 @@ public Builder addSlices(
      * repeated .tensorflow.TensorSliceProto slices = 7;
      */
     public Builder addSlices(
-        org.tensorflow.proto.framework.TensorSliceProto.Builder builderForValue) {
+        org.tensorflow.proto.TensorSliceProto.Builder builderForValue) {
       if (slicesBuilder_ == null) {
         ensureSlicesIsMutable();
         slices_.add(builderForValue.build());
@@ -1289,7 +1304,7 @@ public Builder addSlices(
      * repeated .tensorflow.TensorSliceProto slices = 7;
      */
     public Builder addSlices(
-        int index, org.tensorflow.proto.framework.TensorSliceProto.Builder builderForValue) {
+        int index, org.tensorflow.proto.TensorSliceProto.Builder builderForValue) {
       if (slicesBuilder_ == null) {
         ensureSlicesIsMutable();
         slices_.add(index, builderForValue.build());
@@ -1312,7 +1327,7 @@ public Builder addSlices(
      * repeated .tensorflow.TensorSliceProto slices = 7;
      */
     public Builder addAllSlices(
-        java.lang.Iterable values) {
+        java.lang.Iterable values) {
       if (slicesBuilder_ == null) {
         ensureSlicesIsMutable();
         com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -1379,7 +1394,7 @@ public Builder removeSlices(int index) {
      *
      * repeated .tensorflow.TensorSliceProto slices = 7;
      */
-    public org.tensorflow.proto.framework.TensorSliceProto.Builder getSlicesBuilder(
+    public org.tensorflow.proto.TensorSliceProto.Builder getSlicesBuilder(
         int index) {
       return getSlicesFieldBuilder().getBuilder(index);
     }
@@ -1395,7 +1410,7 @@ public org.tensorflow.proto.framework.TensorSliceProto.Builder getSlicesBuilder(
      *
      * repeated .tensorflow.TensorSliceProto slices = 7;
      */
-    public org.tensorflow.proto.framework.TensorSliceProtoOrBuilder getSlicesOrBuilder(
+    public org.tensorflow.proto.TensorSliceProtoOrBuilder getSlicesOrBuilder(
         int index) {
       if (slicesBuilder_ == null) {
         return slices_.get(index);  } else {
@@ -1414,7 +1429,7 @@ public org.tensorflow.proto.framework.TensorSliceProtoOrBuilder getSlicesOrBuild
      *
      * repeated .tensorflow.TensorSliceProto slices = 7;
      */
-    public java.util.List 
+    public java.util.List 
          getSlicesOrBuilderList() {
       if (slicesBuilder_ != null) {
         return slicesBuilder_.getMessageOrBuilderList();
@@ -1434,9 +1449,9 @@ public org.tensorflow.proto.framework.TensorSliceProtoOrBuilder getSlicesOrBuild
      *
      * repeated .tensorflow.TensorSliceProto slices = 7;
      */
-    public org.tensorflow.proto.framework.TensorSliceProto.Builder addSlicesBuilder() {
+    public org.tensorflow.proto.TensorSliceProto.Builder addSlicesBuilder() {
       return getSlicesFieldBuilder().addBuilder(
-          org.tensorflow.proto.framework.TensorSliceProto.getDefaultInstance());
+          org.tensorflow.proto.TensorSliceProto.getDefaultInstance());
     }
     /**
      * 
@@ -1450,10 +1465,10 @@ public org.tensorflow.proto.framework.TensorSliceProto.Builder addSlicesBuilder(
      *
      * repeated .tensorflow.TensorSliceProto slices = 7;
      */
-    public org.tensorflow.proto.framework.TensorSliceProto.Builder addSlicesBuilder(
+    public org.tensorflow.proto.TensorSliceProto.Builder addSlicesBuilder(
         int index) {
       return getSlicesFieldBuilder().addBuilder(
-          index, org.tensorflow.proto.framework.TensorSliceProto.getDefaultInstance());
+          index, org.tensorflow.proto.TensorSliceProto.getDefaultInstance());
     }
     /**
      * 
@@ -1467,16 +1482,16 @@ public org.tensorflow.proto.framework.TensorSliceProto.Builder addSlicesBuilder(
      *
      * repeated .tensorflow.TensorSliceProto slices = 7;
      */
-    public java.util.List 
+    public java.util.List 
          getSlicesBuilderList() {
       return getSlicesFieldBuilder().getBuilderList();
     }
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        org.tensorflow.proto.framework.TensorSliceProto, org.tensorflow.proto.framework.TensorSliceProto.Builder, org.tensorflow.proto.framework.TensorSliceProtoOrBuilder> 
+        org.tensorflow.proto.TensorSliceProto, org.tensorflow.proto.TensorSliceProto.Builder, org.tensorflow.proto.TensorSliceProtoOrBuilder> 
         getSlicesFieldBuilder() {
       if (slicesBuilder_ == null) {
         slicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            org.tensorflow.proto.framework.TensorSliceProto, org.tensorflow.proto.framework.TensorSliceProto.Builder, org.tensorflow.proto.framework.TensorSliceProtoOrBuilder>(
+            org.tensorflow.proto.TensorSliceProto, org.tensorflow.proto.TensorSliceProto.Builder, org.tensorflow.proto.TensorSliceProtoOrBuilder>(
                 slices_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1502,12 +1517,12 @@ public final Builder mergeUnknownFields(
   }
 
   // @@protoc_insertion_point(class_scope:tensorflow.BundleEntryProto)
-  private static final org.tensorflow.proto.util.BundleEntryProto DEFAULT_INSTANCE;
+  private static final org.tensorflow.proto.BundleEntryProto DEFAULT_INSTANCE;
   static {
-    DEFAULT_INSTANCE = new org.tensorflow.proto.util.BundleEntryProto();
+    DEFAULT_INSTANCE = new org.tensorflow.proto.BundleEntryProto();
   }
 
-  public static org.tensorflow.proto.util.BundleEntryProto getDefaultInstance() {
+  public static org.tensorflow.proto.BundleEntryProto getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
@@ -1518,7 +1533,18 @@ public BundleEntryProto parsePartialFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
-      return new BundleEntryProto(input, extensionRegistry);
+      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();
     }
   };
 
@@ -1532,7 +1558,7 @@ public com.google.protobuf.Parser getParserForType() {
   }
 
   @java.lang.Override
-  public org.tensorflow.proto.util.BundleEntryProto getDefaultInstanceForType() {
+  public org.tensorflow.proto.BundleEntryProto getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/BundleEntryProtoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BundleEntryProtoOrBuilder.java
similarity index 83%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/BundleEntryProtoOrBuilder.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BundleEntryProtoOrBuilder.java
index a95ca5d54e6..cd69bb75b99 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/BundleEntryProtoOrBuilder.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BundleEntryProtoOrBuilder.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/protobuf/tensor_bundle.proto
 
-package org.tensorflow.proto.util;
+package org.tensorflow.proto;
 
 public interface BundleEntryProtoOrBuilder extends
     // @@protoc_insertion_point(interface_extends:tensorflow.BundleEntryProto)
@@ -13,6 +13,7 @@ public interface BundleEntryProtoOrBuilder extends
    * 
* * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. */ int getDtypeValue(); /** @@ -21,21 +22,24 @@ public interface BundleEntryProtoOrBuilder extends *
* * .tensorflow.DataType dtype = 1; + * @return The dtype. */ - org.tensorflow.proto.framework.DataType getDtype(); + org.tensorflow.proto.DataType getDtype(); /** * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. */ boolean hasShape(); /** * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. */ - org.tensorflow.proto.framework.TensorShapeProto getShape(); + org.tensorflow.proto.TensorShapeProto getShape(); /** * .tensorflow.TensorShapeProto shape = 2; */ - org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder(); + org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder(); /** *
@@ -44,16 +48,19 @@ public interface BundleEntryProtoOrBuilder extends
    * 
* * int32 shard_id = 3; + * @return The shardId. */ int getShardId(); /** * int64 offset = 4; + * @return The offset. */ long getOffset(); /** * int64 size = 5; + * @return The size. */ long getSize(); @@ -63,6 +70,7 @@ public interface BundleEntryProtoOrBuilder extends *
* * fixed32 crc32c = 6; + * @return The crc32c. */ int getCrc32C(); @@ -78,7 +86,7 @@ public interface BundleEntryProtoOrBuilder extends * * repeated .tensorflow.TensorSliceProto slices = 7; */ - java.util.List + java.util.List getSlicesList(); /** *
@@ -92,7 +100,7 @@ public interface BundleEntryProtoOrBuilder extends
    *
    * repeated .tensorflow.TensorSliceProto slices = 7;
    */
-  org.tensorflow.proto.framework.TensorSliceProto getSlices(int index);
+  org.tensorflow.proto.TensorSliceProto getSlices(int index);
   /**
    * 
    * Iff present, this entry represents a partitioned tensor.  The previous
@@ -118,7 +126,7 @@ public interface BundleEntryProtoOrBuilder extends
    *
    * repeated .tensorflow.TensorSliceProto slices = 7;
    */
-  java.util.List 
+  java.util.List 
       getSlicesOrBuilderList();
   /**
    * 
@@ -132,6 +140,6 @@ public interface BundleEntryProtoOrBuilder extends
    *
    * repeated .tensorflow.TensorSliceProto slices = 7;
    */
-  org.tensorflow.proto.framework.TensorSliceProtoOrBuilder getSlicesOrBuilder(
+  org.tensorflow.proto.TensorSliceProtoOrBuilder getSlicesOrBuilder(
       int index);
 }
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BundleHeaderProto.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BundleHeaderProto.java
new file mode 100644
index 00000000000..e3ed86bdef5
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BundleHeaderProto.java
@@ -0,0 +1,939 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/protobuf/tensor_bundle.proto
+
+package org.tensorflow.proto;
+
+/**
+ * 
+ * Special header that is associated with a bundle.
+ * TODO(zongheng,zhifengc): maybe in the future, we can add information about
+ * which binary produced this checkpoint, timestamp, etc. Sometime, these can be
+ * valuable debugging information. And if needed, these can be used as defensive
+ * information ensuring reader (binary version) of the checkpoint and the writer
+ * (binary version) must match within certain range, etc.
+ * 
+ * + * Protobuf type {@code tensorflow.BundleHeaderProto} + */ +public final class BundleHeaderProto extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.BundleHeaderProto) + BundleHeaderProtoOrBuilder { +private static final long serialVersionUID = 0L; + // Use BundleHeaderProto.newBuilder() to construct. + private BundleHeaderProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BundleHeaderProto() { + endianness_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BundleHeaderProto(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TensorBundleProtos.internal_static_tensorflow_BundleHeaderProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TensorBundleProtos.internal_static_tensorflow_BundleHeaderProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.BundleHeaderProto.class, org.tensorflow.proto.BundleHeaderProto.Builder.class); + } + + /** + *
+   * An enum indicating the endianness of the platform that produced this
+   * bundle.  A bundle can only be read by a platform with matching endianness.
+   * Defaults to LITTLE, as most modern platforms are little-endian.
+   * Affects the binary tensor data bytes only, not the metadata in protobufs.
+   * 
+ * + * Protobuf enum {@code tensorflow.BundleHeaderProto.Endianness} + */ + public enum Endianness + implements com.google.protobuf.ProtocolMessageEnum { + /** + * LITTLE = 0; + */ + LITTLE(0), + /** + * BIG = 1; + */ + BIG(1), + UNRECOGNIZED(-1), + ; + + /** + * LITTLE = 0; + */ + public static final int LITTLE_VALUE = 0; + /** + * BIG = 1; + */ + public static final int BIG_VALUE = 1; + + + 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 Endianness 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 Endianness forNumber(int value) { + switch (value) { + case 0: return LITTLE; + case 1: return BIG; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Endianness> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Endianness findValueByNumber(int number) { + return Endianness.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 org.tensorflow.proto.BundleHeaderProto.getDescriptor().getEnumTypes().get(0); + } + + private static final Endianness[] VALUES = values(); + + public static Endianness 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 Endianness(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:tensorflow.BundleHeaderProto.Endianness) + } + + public static final int NUM_SHARDS_FIELD_NUMBER = 1; + private int numShards_; + /** + *
+   * Number of data files in the bundle.
+   * 
+ * + * int32 num_shards = 1; + * @return The numShards. + */ + @java.lang.Override + public int getNumShards() { + return numShards_; + } + + public static final int ENDIANNESS_FIELD_NUMBER = 2; + private int endianness_; + /** + * .tensorflow.BundleHeaderProto.Endianness endianness = 2; + * @return The enum numeric value on the wire for endianness. + */ + @java.lang.Override public int getEndiannessValue() { + return endianness_; + } + /** + * .tensorflow.BundleHeaderProto.Endianness endianness = 2; + * @return The endianness. + */ + @java.lang.Override public org.tensorflow.proto.BundleHeaderProto.Endianness getEndianness() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.BundleHeaderProto.Endianness result = org.tensorflow.proto.BundleHeaderProto.Endianness.valueOf(endianness_); + return result == null ? org.tensorflow.proto.BundleHeaderProto.Endianness.UNRECOGNIZED : result; + } + + public static final int VERSION_FIELD_NUMBER = 3; + private org.tensorflow.proto.VersionDef version_; + /** + *
+   * Versioning of the tensor bundle format.
+   * 
+ * + * .tensorflow.VersionDef version = 3; + * @return Whether the version field is set. + */ + @java.lang.Override + public boolean hasVersion() { + return version_ != null; + } + /** + *
+   * Versioning of the tensor bundle format.
+   * 
+ * + * .tensorflow.VersionDef version = 3; + * @return The version. + */ + @java.lang.Override + public org.tensorflow.proto.VersionDef getVersion() { + return version_ == null ? org.tensorflow.proto.VersionDef.getDefaultInstance() : version_; + } + /** + *
+   * Versioning of the tensor bundle format.
+   * 
+ * + * .tensorflow.VersionDef version = 3; + */ + @java.lang.Override + public org.tensorflow.proto.VersionDefOrBuilder getVersionOrBuilder() { + return getVersion(); + } + + 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 (numShards_ != 0) { + output.writeInt32(1, numShards_); + } + if (endianness_ != org.tensorflow.proto.BundleHeaderProto.Endianness.LITTLE.getNumber()) { + output.writeEnum(2, endianness_); + } + if (version_ != null) { + output.writeMessage(3, getVersion()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (numShards_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, numShards_); + } + if (endianness_ != org.tensorflow.proto.BundleHeaderProto.Endianness.LITTLE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, endianness_); + } + if (version_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getVersion()); + } + 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 org.tensorflow.proto.BundleHeaderProto)) { + return super.equals(obj); + } + org.tensorflow.proto.BundleHeaderProto other = (org.tensorflow.proto.BundleHeaderProto) obj; + + if (getNumShards() + != other.getNumShards()) return false; + if (endianness_ != other.endianness_) return false; + if (hasVersion() != other.hasVersion()) return false; + if (hasVersion()) { + if (!getVersion() + .equals(other.getVersion())) 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) + NUM_SHARDS_FIELD_NUMBER; + hash = (53 * hash) + getNumShards(); + hash = (37 * hash) + ENDIANNESS_FIELD_NUMBER; + hash = (53 * hash) + endianness_; + if (hasVersion()) { + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.BundleHeaderProto parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BundleHeaderProto parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BundleHeaderProto parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BundleHeaderProto parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BundleHeaderProto parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BundleHeaderProto parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BundleHeaderProto parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BundleHeaderProto 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 org.tensorflow.proto.BundleHeaderProto parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BundleHeaderProto 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 org.tensorflow.proto.BundleHeaderProto parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BundleHeaderProto 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(org.tensorflow.proto.BundleHeaderProto 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; + } + /** + *
+   * Special header that is associated with a bundle.
+   * TODO(zongheng,zhifengc): maybe in the future, we can add information about
+   * which binary produced this checkpoint, timestamp, etc. Sometime, these can be
+   * valuable debugging information. And if needed, these can be used as defensive
+   * information ensuring reader (binary version) of the checkpoint and the writer
+   * (binary version) must match within certain range, etc.
+   * 
+ * + * Protobuf type {@code tensorflow.BundleHeaderProto} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.BundleHeaderProto) + org.tensorflow.proto.BundleHeaderProtoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TensorBundleProtos.internal_static_tensorflow_BundleHeaderProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TensorBundleProtos.internal_static_tensorflow_BundleHeaderProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.BundleHeaderProto.class, org.tensorflow.proto.BundleHeaderProto.Builder.class); + } + + // Construct using org.tensorflow.proto.BundleHeaderProto.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + numShards_ = 0; + + endianness_ = 0; + + if (versionBuilder_ == null) { + version_ = null; + } else { + version_ = null; + versionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.TensorBundleProtos.internal_static_tensorflow_BundleHeaderProto_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.BundleHeaderProto getDefaultInstanceForType() { + return org.tensorflow.proto.BundleHeaderProto.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.BundleHeaderProto build() { + org.tensorflow.proto.BundleHeaderProto result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.BundleHeaderProto buildPartial() { + org.tensorflow.proto.BundleHeaderProto result = new org.tensorflow.proto.BundleHeaderProto(this); + result.numShards_ = numShards_; + result.endianness_ = endianness_; + if (versionBuilder_ == null) { + result.version_ = version_; + } else { + result.version_ = versionBuilder_.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 org.tensorflow.proto.BundleHeaderProto) { + return mergeFrom((org.tensorflow.proto.BundleHeaderProto)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.BundleHeaderProto other) { + if (other == org.tensorflow.proto.BundleHeaderProto.getDefaultInstance()) return this; + if (other.getNumShards() != 0) { + setNumShards(other.getNumShards()); + } + if (other.endianness_ != 0) { + setEndiannessValue(other.getEndiannessValue()); + } + if (other.hasVersion()) { + mergeVersion(other.getVersion()); + } + 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: { + numShards_ = input.readInt32(); + + break; + } // case 8 + case 16: { + endianness_ = input.readEnum(); + + break; + } // case 16 + case 26: { + input.readMessage( + getVersionFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + 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 numShards_ ; + /** + *
+     * Number of data files in the bundle.
+     * 
+ * + * int32 num_shards = 1; + * @return The numShards. + */ + @java.lang.Override + public int getNumShards() { + return numShards_; + } + /** + *
+     * Number of data files in the bundle.
+     * 
+ * + * int32 num_shards = 1; + * @param value The numShards to set. + * @return This builder for chaining. + */ + public Builder setNumShards(int value) { + + numShards_ = value; + onChanged(); + return this; + } + /** + *
+     * Number of data files in the bundle.
+     * 
+ * + * int32 num_shards = 1; + * @return This builder for chaining. + */ + public Builder clearNumShards() { + + numShards_ = 0; + onChanged(); + return this; + } + + private int endianness_ = 0; + /** + * .tensorflow.BundleHeaderProto.Endianness endianness = 2; + * @return The enum numeric value on the wire for endianness. + */ + @java.lang.Override public int getEndiannessValue() { + return endianness_; + } + /** + * .tensorflow.BundleHeaderProto.Endianness endianness = 2; + * @param value The enum numeric value on the wire for endianness to set. + * @return This builder for chaining. + */ + public Builder setEndiannessValue(int value) { + + endianness_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.BundleHeaderProto.Endianness endianness = 2; + * @return The endianness. + */ + @java.lang.Override + public org.tensorflow.proto.BundleHeaderProto.Endianness getEndianness() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.BundleHeaderProto.Endianness result = org.tensorflow.proto.BundleHeaderProto.Endianness.valueOf(endianness_); + return result == null ? org.tensorflow.proto.BundleHeaderProto.Endianness.UNRECOGNIZED : result; + } + /** + * .tensorflow.BundleHeaderProto.Endianness endianness = 2; + * @param value The endianness to set. + * @return This builder for chaining. + */ + public Builder setEndianness(org.tensorflow.proto.BundleHeaderProto.Endianness value) { + if (value == null) { + throw new NullPointerException(); + } + + endianness_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.BundleHeaderProto.Endianness endianness = 2; + * @return This builder for chaining. + */ + public Builder clearEndianness() { + + endianness_ = 0; + onChanged(); + return this; + } + + private org.tensorflow.proto.VersionDef version_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VersionDef, org.tensorflow.proto.VersionDef.Builder, org.tensorflow.proto.VersionDefOrBuilder> versionBuilder_; + /** + *
+     * Versioning of the tensor bundle format.
+     * 
+ * + * .tensorflow.VersionDef version = 3; + * @return Whether the version field is set. + */ + public boolean hasVersion() { + return versionBuilder_ != null || version_ != null; + } + /** + *
+     * Versioning of the tensor bundle format.
+     * 
+ * + * .tensorflow.VersionDef version = 3; + * @return The version. + */ + public org.tensorflow.proto.VersionDef getVersion() { + if (versionBuilder_ == null) { + return version_ == null ? org.tensorflow.proto.VersionDef.getDefaultInstance() : version_; + } else { + return versionBuilder_.getMessage(); + } + } + /** + *
+     * Versioning of the tensor bundle format.
+     * 
+ * + * .tensorflow.VersionDef version = 3; + */ + public Builder setVersion(org.tensorflow.proto.VersionDef value) { + if (versionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + version_ = value; + onChanged(); + } else { + versionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Versioning of the tensor bundle format.
+     * 
+ * + * .tensorflow.VersionDef version = 3; + */ + public Builder setVersion( + org.tensorflow.proto.VersionDef.Builder builderForValue) { + if (versionBuilder_ == null) { + version_ = builderForValue.build(); + onChanged(); + } else { + versionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Versioning of the tensor bundle format.
+     * 
+ * + * .tensorflow.VersionDef version = 3; + */ + public Builder mergeVersion(org.tensorflow.proto.VersionDef value) { + if (versionBuilder_ == null) { + if (version_ != null) { + version_ = + org.tensorflow.proto.VersionDef.newBuilder(version_).mergeFrom(value).buildPartial(); + } else { + version_ = value; + } + onChanged(); + } else { + versionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Versioning of the tensor bundle format.
+     * 
+ * + * .tensorflow.VersionDef version = 3; + */ + public Builder clearVersion() { + if (versionBuilder_ == null) { + version_ = null; + onChanged(); + } else { + version_ = null; + versionBuilder_ = null; + } + + return this; + } + /** + *
+     * Versioning of the tensor bundle format.
+     * 
+ * + * .tensorflow.VersionDef version = 3; + */ + public org.tensorflow.proto.VersionDef.Builder getVersionBuilder() { + + onChanged(); + return getVersionFieldBuilder().getBuilder(); + } + /** + *
+     * Versioning of the tensor bundle format.
+     * 
+ * + * .tensorflow.VersionDef version = 3; + */ + public org.tensorflow.proto.VersionDefOrBuilder getVersionOrBuilder() { + if (versionBuilder_ != null) { + return versionBuilder_.getMessageOrBuilder(); + } else { + return version_ == null ? + org.tensorflow.proto.VersionDef.getDefaultInstance() : version_; + } + } + /** + *
+     * Versioning of the tensor bundle format.
+     * 
+ * + * .tensorflow.VersionDef version = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VersionDef, org.tensorflow.proto.VersionDef.Builder, org.tensorflow.proto.VersionDefOrBuilder> + getVersionFieldBuilder() { + if (versionBuilder_ == null) { + versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VersionDef, org.tensorflow.proto.VersionDef.Builder, org.tensorflow.proto.VersionDefOrBuilder>( + getVersion(), + getParentForChildren(), + isClean()); + version_ = null; + } + return versionBuilder_; + } + @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:tensorflow.BundleHeaderProto) + } + + // @@protoc_insertion_point(class_scope:tensorflow.BundleHeaderProto) + private static final org.tensorflow.proto.BundleHeaderProto DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.BundleHeaderProto(); + } + + public static org.tensorflow.proto.BundleHeaderProto getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BundleHeaderProto 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 org.tensorflow.proto.BundleHeaderProto getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BundleHeaderProtoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BundleHeaderProtoOrBuilder.java new file mode 100644 index 00000000000..9ab9de7026e --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BundleHeaderProtoOrBuilder.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/tensor_bundle.proto + +package org.tensorflow.proto; + +public interface BundleHeaderProtoOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.BundleHeaderProto) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Number of data files in the bundle.
+   * 
+ * + * int32 num_shards = 1; + * @return The numShards. + */ + int getNumShards(); + + /** + * .tensorflow.BundleHeaderProto.Endianness endianness = 2; + * @return The enum numeric value on the wire for endianness. + */ + int getEndiannessValue(); + /** + * .tensorflow.BundleHeaderProto.Endianness endianness = 2; + * @return The endianness. + */ + org.tensorflow.proto.BundleHeaderProto.Endianness getEndianness(); + + /** + *
+   * Versioning of the tensor bundle format.
+   * 
+ * + * .tensorflow.VersionDef version = 3; + * @return Whether the version field is set. + */ + boolean hasVersion(); + /** + *
+   * Versioning of the tensor bundle format.
+   * 
+ * + * .tensorflow.VersionDef version = 3; + * @return The version. + */ + org.tensorflow.proto.VersionDef getVersion(); + /** + *
+   * Versioning of the tensor bundle format.
+   * 
+ * + * .tensorflow.VersionDef version = 3; + */ + org.tensorflow.proto.VersionDefOrBuilder getVersionOrBuilder(); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BytesList.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BytesList.java new file mode 100644 index 00000000000..e14a7d27419 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BytesList.java @@ -0,0 +1,567 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/example/feature.proto + +package org.tensorflow.proto; + +/** + *
+ * LINT.IfChange
+ * Containers to hold repeated fundamental values.
+ * 
+ * + * Protobuf type {@code tensorflow.BytesList} + */ +public final class BytesList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.BytesList) + BytesListOrBuilder { +private static final long serialVersionUID = 0L; + // Use BytesList.newBuilder() to construct. + private BytesList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BytesList() { + value_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BytesList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_BytesList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_BytesList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.BytesList.class, org.tensorflow.proto.BytesList.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private java.util.List value_; + /** + * repeated bytes value = 1; + * @return A list containing the value. + */ + @java.lang.Override + public java.util.List + getValueList() { + return value_; + } + /** + * repeated bytes value = 1; + * @return The count of value. + */ + public int getValueCount() { + return value_.size(); + } + /** + * repeated bytes value = 1; + * @param index The index of the element to return. + * @return The value at the given index. + */ + public com.google.protobuf.ByteString getValue(int index) { + return value_.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 < value_.size(); i++) { + output.writeBytes(1, value_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < value_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(value_.get(i)); + } + size += dataSize; + size += 1 * getValueList().size(); + } + 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 org.tensorflow.proto.BytesList)) { + return super.equals(obj); + } + org.tensorflow.proto.BytesList other = (org.tensorflow.proto.BytesList) obj; + + if (!getValueList() + .equals(other.getValueList())) 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 (getValueCount() > 0) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValueList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.BytesList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BytesList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BytesList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BytesList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BytesList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.BytesList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.BytesList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BytesList 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 org.tensorflow.proto.BytesList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BytesList 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 org.tensorflow.proto.BytesList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.BytesList 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(org.tensorflow.proto.BytesList 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; + } + /** + *
+   * LINT.IfChange
+   * Containers to hold repeated fundamental values.
+   * 
+ * + * Protobuf type {@code tensorflow.BytesList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.BytesList) + org.tensorflow.proto.BytesListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_BytesList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_BytesList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.BytesList.class, org.tensorflow.proto.BytesList.Builder.class); + } + + // Construct using org.tensorflow.proto.BytesList.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + value_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_BytesList_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.BytesList getDefaultInstanceForType() { + return org.tensorflow.proto.BytesList.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.BytesList build() { + org.tensorflow.proto.BytesList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.BytesList buildPartial() { + org.tensorflow.proto.BytesList result = new org.tensorflow.proto.BytesList(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + value_ = java.util.Collections.unmodifiableList(value_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.value_ = value_; + 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 org.tensorflow.proto.BytesList) { + return mergeFrom((org.tensorflow.proto.BytesList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.BytesList other) { + if (other == org.tensorflow.proto.BytesList.getDefaultInstance()) return this; + if (!other.value_.isEmpty()) { + if (value_.isEmpty()) { + value_ = other.value_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValueIsMutable(); + value_.addAll(other.value_); + } + 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: { + com.google.protobuf.ByteString v = input.readBytes(); + ensureValueIsMutable(); + value_.add(v); + 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.util.List value_ = java.util.Collections.emptyList(); + private void ensureValueIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + value_ = new java.util.ArrayList(value_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated bytes value = 1; + * @return A list containing the value. + */ + public java.util.List + getValueList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(value_) : value_; + } + /** + * repeated bytes value = 1; + * @return The count of value. + */ + public int getValueCount() { + return value_.size(); + } + /** + * repeated bytes value = 1; + * @param index The index of the element to return. + * @return The value at the given index. + */ + public com.google.protobuf.ByteString getValue(int index) { + return value_.get(index); + } + /** + * repeated bytes value = 1; + * @param index The index to set the value at. + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue( + int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueIsMutable(); + value_.set(index, value); + onChanged(); + return this; + } + /** + * repeated bytes value = 1; + * @param value The value to add. + * @return This builder for chaining. + */ + public Builder addValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueIsMutable(); + value_.add(value); + onChanged(); + return this; + } + /** + * repeated bytes value = 1; + * @param values The value to add. + * @return This builder for chaining. + */ + public Builder addAllValue( + java.lang.Iterable values) { + ensureValueIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, value_); + onChanged(); + return this; + } + /** + * repeated bytes value = 1; + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = java.util.Collections.emptyList(); + bitField0_ = (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:tensorflow.BytesList) + } + + // @@protoc_insertion_point(class_scope:tensorflow.BytesList) + private static final org.tensorflow.proto.BytesList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.BytesList(); + } + + public static org.tensorflow.proto.BytesList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BytesList 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 org.tensorflow.proto.BytesList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BytesListOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BytesListOrBuilder.java new file mode 100644 index 00000000000..355201bf884 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/BytesListOrBuilder.java @@ -0,0 +1,26 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/example/feature.proto + +package org.tensorflow.proto; + +public interface BytesListOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.BytesList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated bytes value = 1; + * @return A list containing the value. + */ + java.util.List getValueList(); + /** + * repeated bytes value = 1; + * @return The count of value. + */ + int getValueCount(); + /** + * repeated bytes value = 1; + * @param index The index of the element to return. + * @return The value at the given index. + */ + com.google.protobuf.ByteString getValue(int index); +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/CPUInfo.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CPUInfo.java similarity index 79% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/CPUInfo.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CPUInfo.java index b4ae942f481..d114bcb96f3 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/CPUInfo.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CPUInfo.java @@ -1,12 +1,12 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/util/test_log.proto +// source: tensorflow/tsl/protobuf/test_log.proto -package org.tensorflow.proto.util.testlog; +package org.tensorflow.proto; /** * Protobuf type {@code tensorflow.CPUInfo} */ -public final class CPUInfo extends +public final class CPUInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.CPUInfo) CPUInfoOrBuilder { @@ -32,87 +32,9 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private CPUInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - numCores_ = input.readInt64(); - break; - } - case 16: { - - numCoresAllowed_ = input.readInt64(); - break; - } - case 25: { - - mhzPerCpu_ = input.readDouble(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - cpuInfo_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - cpuGovernor_ = s; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - cacheSize_ = com.google.protobuf.MapField.newMapField( - CacheSizeDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - cacheSize__ = input.readMessage( - CacheSizeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - cacheSize_.getMutableMap().put( - cacheSize__.getKey(), cacheSize__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_CPUInfo_descriptor; + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_CPUInfo_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -130,16 +52,18 @@ protected com.google.protobuf.MapField internalGetMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_CPUInfo_fieldAccessorTable + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_CPUInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.util.testlog.CPUInfo.class, org.tensorflow.proto.util.testlog.CPUInfo.Builder.class); + org.tensorflow.proto.CPUInfo.class, org.tensorflow.proto.CPUInfo.Builder.class); } public static final int NUM_CORES_FIELD_NUMBER = 1; private long numCores_; /** * int64 num_cores = 1; + * @return The numCores. */ + @java.lang.Override public long getNumCores() { return numCores_; } @@ -148,7 +72,9 @@ public long getNumCores() { private long numCoresAllowed_; /** * int64 num_cores_allowed = 2; + * @return The numCoresAllowed. */ + @java.lang.Override public long getNumCoresAllowed() { return numCoresAllowed_; } @@ -161,7 +87,9 @@ public long getNumCoresAllowed() { *
* * double mhz_per_cpu = 3; + * @return The mhzPerCpu. */ + @java.lang.Override public double getMhzPerCpu() { return mhzPerCpu_; } @@ -175,7 +103,9 @@ public double getMhzPerCpu() { *
* * string cpu_info = 4; + * @return The cpuInfo. */ + @java.lang.Override public java.lang.String getCpuInfo() { java.lang.Object ref = cpuInfo_; if (ref instanceof java.lang.String) { @@ -195,7 +125,9 @@ public java.lang.String getCpuInfo() { *
* * string cpu_info = 4; + * @return The bytes for cpuInfo. */ + @java.lang.Override public com.google.protobuf.ByteString getCpuInfoBytes() { java.lang.Object ref = cpuInfo_; @@ -219,7 +151,9 @@ public java.lang.String getCpuInfo() { * * * string cpu_governor = 5; + * @return The cpuGovernor. */ + @java.lang.Override public java.lang.String getCpuGovernor() { java.lang.Object ref = cpuGovernor_; if (ref instanceof java.lang.String) { @@ -239,7 +173,9 @@ public java.lang.String getCpuGovernor() { * * * string cpu_governor = 5; + * @return The bytes for cpuGovernor. */ + @java.lang.Override public com.google.protobuf.ByteString getCpuGovernorBytes() { java.lang.Object ref = cpuGovernor_; @@ -260,7 +196,7 @@ private static final class CacheSizeDefaultEntryHolder { java.lang.String, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( - org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_CPUInfo_CacheSizeEntry_descriptor, + org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_CPUInfo_CacheSizeEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT64, @@ -288,14 +224,16 @@ public int getCacheSizeCount() { * map<string, int64> cache_size = 6; */ + @java.lang.Override public boolean containsCacheSize( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } return internalGetCacheSize().getMap().containsKey(key); } /** * Use {@link #getCacheSizeMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getCacheSize() { return getCacheSizeMap(); @@ -307,6 +245,7 @@ public java.util.Map getCacheSize() { * * map<string, int64> cache_size = 6; */ + @java.lang.Override public java.util.Map getCacheSizeMap() { return internalGetCacheSize().getMap(); @@ -318,11 +257,12 @@ public java.util.Map getCacheSizeMap() { * * map<string, int64> cache_size = 6; */ + @java.lang.Override public long getCacheSizeOrDefault( java.lang.String key, long defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCacheSize().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -334,10 +274,11 @@ public long getCacheSizeOrDefault( * * map<string, int64> cache_size = 6; */ + @java.lang.Override public long getCacheSizeOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCacheSize().getMap(); if (!map.containsKey(key)) { @@ -366,13 +307,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (numCoresAllowed_ != 0L) { output.writeInt64(2, numCoresAllowed_); } - if (mhzPerCpu_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(mhzPerCpu_) != 0) { output.writeDouble(3, mhzPerCpu_); } - if (!getCpuInfoBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuInfo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, cpuInfo_); } - if (!getCpuGovernorBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuGovernor_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, cpuGovernor_); } com.google.protobuf.GeneratedMessageV3 @@ -381,7 +322,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) internalGetCacheSize(), CacheSizeDefaultEntryHolder.defaultEntry, 6); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -398,14 +339,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, numCoresAllowed_); } - if (mhzPerCpu_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(mhzPerCpu_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, mhzPerCpu_); } - if (!getCpuInfoBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuInfo_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, cpuInfo_); } - if (!getCpuGovernorBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuGovernor_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, cpuGovernor_); } for (java.util.Map.Entry entry @@ -418,7 +359,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, cacheSize__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -428,10 +369,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.util.testlog.CPUInfo)) { + if (!(obj instanceof org.tensorflow.proto.CPUInfo)) { return super.equals(obj); } - org.tensorflow.proto.util.testlog.CPUInfo other = (org.tensorflow.proto.util.testlog.CPUInfo) obj; + org.tensorflow.proto.CPUInfo other = (org.tensorflow.proto.CPUInfo) obj; if (getNumCores() != other.getNumCores()) return false; @@ -446,7 +387,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCpuGovernor())) return false; if (!internalGetCacheSize().equals( other.internalGetCacheSize())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -474,74 +415,74 @@ public int hashCode() { hash = (37 * hash) + CACHE_SIZE_FIELD_NUMBER; hash = (53 * hash) + internalGetCacheSize().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.util.testlog.CPUInfo parseFrom( + public static org.tensorflow.proto.CPUInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.CPUInfo parseFrom( + public static org.tensorflow.proto.CPUInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.CPUInfo parseFrom( + public static org.tensorflow.proto.CPUInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.CPUInfo parseFrom( + public static org.tensorflow.proto.CPUInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.CPUInfo parseFrom(byte[] data) + public static org.tensorflow.proto.CPUInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.CPUInfo parseFrom( + public static org.tensorflow.proto.CPUInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.CPUInfo parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.CPUInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.CPUInfo parseFrom( + public static org.tensorflow.proto.CPUInfo 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 org.tensorflow.proto.util.testlog.CPUInfo parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.CPUInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.CPUInfo parseDelimitedFrom( + public static org.tensorflow.proto.CPUInfo 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 org.tensorflow.proto.util.testlog.CPUInfo parseFrom( + public static org.tensorflow.proto.CPUInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.CPUInfo parseFrom( + public static org.tensorflow.proto.CPUInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -554,7 +495,7 @@ public static org.tensorflow.proto.util.testlog.CPUInfo parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.util.testlog.CPUInfo prototype) { + public static Builder newBuilder(org.tensorflow.proto.CPUInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -575,10 +516,10 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.CPUInfo) - org.tensorflow.proto.util.testlog.CPUInfoOrBuilder { + org.tensorflow.proto.CPUInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_CPUInfo_descriptor; + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_CPUInfo_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -606,25 +547,20 @@ protected com.google.protobuf.MapField internalGetMutableMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_CPUInfo_fieldAccessorTable + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_CPUInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.util.testlog.CPUInfo.class, org.tensorflow.proto.util.testlog.CPUInfo.Builder.class); + org.tensorflow.proto.CPUInfo.class, org.tensorflow.proto.CPUInfo.Builder.class); } - // Construct using org.tensorflow.proto.util.testlog.CPUInfo.newBuilder() + // Construct using org.tensorflow.proto.CPUInfo.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -646,17 +582,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_CPUInfo_descriptor; + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_CPUInfo_descriptor; } @java.lang.Override - public org.tensorflow.proto.util.testlog.CPUInfo getDefaultInstanceForType() { - return org.tensorflow.proto.util.testlog.CPUInfo.getDefaultInstance(); + public org.tensorflow.proto.CPUInfo getDefaultInstanceForType() { + return org.tensorflow.proto.CPUInfo.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.util.testlog.CPUInfo build() { - org.tensorflow.proto.util.testlog.CPUInfo result = buildPartial(); + public org.tensorflow.proto.CPUInfo build() { + org.tensorflow.proto.CPUInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -664,8 +600,8 @@ public org.tensorflow.proto.util.testlog.CPUInfo build() { } @java.lang.Override - public org.tensorflow.proto.util.testlog.CPUInfo buildPartial() { - org.tensorflow.proto.util.testlog.CPUInfo result = new org.tensorflow.proto.util.testlog.CPUInfo(this); + public org.tensorflow.proto.CPUInfo buildPartial() { + org.tensorflow.proto.CPUInfo result = new org.tensorflow.proto.CPUInfo(this); int from_bitField0_ = bitField0_; result.numCores_ = numCores_; result.numCoresAllowed_ = numCoresAllowed_; @@ -712,16 +648,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.util.testlog.CPUInfo) { - return mergeFrom((org.tensorflow.proto.util.testlog.CPUInfo)other); + if (other instanceof org.tensorflow.proto.CPUInfo) { + return mergeFrom((org.tensorflow.proto.CPUInfo)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.util.testlog.CPUInfo other) { - if (other == org.tensorflow.proto.util.testlog.CPUInfo.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.CPUInfo other) { + if (other == org.tensorflow.proto.CPUInfo.getDefaultInstance()) return this; if (other.getNumCores() != 0L) { setNumCores(other.getNumCores()); } @@ -741,7 +677,7 @@ public Builder mergeFrom(org.tensorflow.proto.util.testlog.CPUInfo other) { } internalGetMutableCacheSize().mergeFrom( other.internalGetCacheSize()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -756,17 +692,63 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.util.testlog.CPUInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + numCores_ = input.readInt64(); + + break; + } // case 8 + case 16: { + numCoresAllowed_ = input.readInt64(); + + break; + } // case 16 + case 25: { + mhzPerCpu_ = input.readDouble(); + + break; + } // case 25 + case 34: { + cpuInfo_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + cpuGovernor_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + cacheSize__ = input.readMessage( + CacheSizeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableCacheSize().getMutableMap().put( + cacheSize__.getKey(), cacheSize__.getValue()); + break; + } // case 50 + 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) { - parsedMessage = (org.tensorflow.proto.util.testlog.CPUInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -774,12 +756,16 @@ public Builder mergeFrom( private long numCores_ ; /** * int64 num_cores = 1; + * @return The numCores. */ + @java.lang.Override public long getNumCores() { return numCores_; } /** * int64 num_cores = 1; + * @param value The numCores to set. + * @return This builder for chaining. */ public Builder setNumCores(long value) { @@ -789,6 +775,7 @@ public Builder setNumCores(long value) { } /** * int64 num_cores = 1; + * @return This builder for chaining. */ public Builder clearNumCores() { @@ -800,12 +787,16 @@ public Builder clearNumCores() { private long numCoresAllowed_ ; /** * int64 num_cores_allowed = 2; + * @return The numCoresAllowed. */ + @java.lang.Override public long getNumCoresAllowed() { return numCoresAllowed_; } /** * int64 num_cores_allowed = 2; + * @param value The numCoresAllowed to set. + * @return This builder for chaining. */ public Builder setNumCoresAllowed(long value) { @@ -815,6 +806,7 @@ public Builder setNumCoresAllowed(long value) { } /** * int64 num_cores_allowed = 2; + * @return This builder for chaining. */ public Builder clearNumCoresAllowed() { @@ -830,7 +822,9 @@ public Builder clearNumCoresAllowed() { * * * double mhz_per_cpu = 3; + * @return The mhzPerCpu. */ + @java.lang.Override public double getMhzPerCpu() { return mhzPerCpu_; } @@ -840,6 +834,8 @@ public double getMhzPerCpu() { * * * double mhz_per_cpu = 3; + * @param value The mhzPerCpu to set. + * @return This builder for chaining. */ public Builder setMhzPerCpu(double value) { @@ -853,6 +849,7 @@ public Builder setMhzPerCpu(double value) { * * * double mhz_per_cpu = 3; + * @return This builder for chaining. */ public Builder clearMhzPerCpu() { @@ -869,6 +866,7 @@ public Builder clearMhzPerCpu() { * * * string cpu_info = 4; + * @return The cpuInfo. */ public java.lang.String getCpuInfo() { java.lang.Object ref = cpuInfo_; @@ -889,6 +887,7 @@ public java.lang.String getCpuInfo() { * * * string cpu_info = 4; + * @return The bytes for cpuInfo. */ public com.google.protobuf.ByteString getCpuInfoBytes() { @@ -910,6 +909,8 @@ public java.lang.String getCpuInfo() { * * * string cpu_info = 4; + * @param value The cpuInfo to set. + * @return This builder for chaining. */ public Builder setCpuInfo( java.lang.String value) { @@ -928,6 +929,7 @@ public Builder setCpuInfo( * * * string cpu_info = 4; + * @return This builder for chaining. */ public Builder clearCpuInfo() { @@ -942,6 +944,8 @@ public Builder clearCpuInfo() { * * * string cpu_info = 4; + * @param value The bytes for cpuInfo to set. + * @return This builder for chaining. */ public Builder setCpuInfoBytes( com.google.protobuf.ByteString value) { @@ -963,6 +967,7 @@ public Builder setCpuInfoBytes( * * * string cpu_governor = 5; + * @return The cpuGovernor. */ public java.lang.String getCpuGovernor() { java.lang.Object ref = cpuGovernor_; @@ -983,6 +988,7 @@ public java.lang.String getCpuGovernor() { * * * string cpu_governor = 5; + * @return The bytes for cpuGovernor. */ public com.google.protobuf.ByteString getCpuGovernorBytes() { @@ -1004,6 +1010,8 @@ public java.lang.String getCpuGovernor() { * * * string cpu_governor = 5; + * @param value The cpuGovernor to set. + * @return This builder for chaining. */ public Builder setCpuGovernor( java.lang.String value) { @@ -1022,6 +1030,7 @@ public Builder setCpuGovernor( * * * string cpu_governor = 5; + * @return This builder for chaining. */ public Builder clearCpuGovernor() { @@ -1036,6 +1045,8 @@ public Builder clearCpuGovernor() { * * * string cpu_governor = 5; + * @param value The bytes for cpuGovernor to set. + * @return This builder for chaining. */ public Builder setCpuGovernorBytes( com.google.protobuf.ByteString value) { @@ -1083,14 +1094,16 @@ public int getCacheSizeCount() { * map<string, int64> cache_size = 6; */ + @java.lang.Override public boolean containsCacheSize( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } return internalGetCacheSize().getMap().containsKey(key); } /** * Use {@link #getCacheSizeMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getCacheSize() { return getCacheSizeMap(); @@ -1102,6 +1115,7 @@ public java.util.Map getCacheSize() { * * map<string, int64> cache_size = 6; */ + @java.lang.Override public java.util.Map getCacheSizeMap() { return internalGetCacheSize().getMap(); @@ -1113,11 +1127,12 @@ public java.util.Map getCacheSizeMap() { * * map<string, int64> cache_size = 6; */ + @java.lang.Override public long getCacheSizeOrDefault( java.lang.String key, long defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCacheSize().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1129,10 +1144,11 @@ public long getCacheSizeOrDefault( * * map<string, int64> cache_size = 6; */ + @java.lang.Override public long getCacheSizeOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCacheSize().getMap(); if (!map.containsKey(key)) { @@ -1156,7 +1172,7 @@ public Builder clearCacheSize() { public Builder removeCacheSize( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } internalGetMutableCacheSize().getMutableMap() .remove(key); return this; @@ -1179,7 +1195,7 @@ public Builder removeCacheSize( public Builder putCacheSize( java.lang.String key, long value) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } internalGetMutableCacheSize().getMutableMap() .put(key, value); @@ -1216,12 +1232,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.CPUInfo) - private static final org.tensorflow.proto.util.testlog.CPUInfo DEFAULT_INSTANCE; + private static final org.tensorflow.proto.CPUInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.util.testlog.CPUInfo(); + DEFAULT_INSTANCE = new org.tensorflow.proto.CPUInfo(); } - public static org.tensorflow.proto.util.testlog.CPUInfo getDefaultInstance() { + public static org.tensorflow.proto.CPUInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1232,7 +1248,18 @@ public CPUInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CPUInfo(input, extensionRegistry); + 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(); } }; @@ -1246,7 +1273,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.util.testlog.CPUInfo getDefaultInstanceForType() { + public org.tensorflow.proto.CPUInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/CPUInfoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CPUInfoOrBuilder.java similarity index 90% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/CPUInfoOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CPUInfoOrBuilder.java index be5a9556f41..153e94c0ff1 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/CPUInfoOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CPUInfoOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/util/test_log.proto +// source: tensorflow/tsl/protobuf/test_log.proto -package org.tensorflow.proto.util.testlog; +package org.tensorflow.proto; public interface CPUInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.CPUInfo) @@ -9,11 +9,13 @@ public interface CPUInfoOrBuilder extends /** * int64 num_cores = 1; + * @return The numCores. */ long getNumCores(); /** * int64 num_cores_allowed = 2; + * @return The numCoresAllowed. */ long getNumCoresAllowed(); @@ -23,6 +25,7 @@ public interface CPUInfoOrBuilder extends * * * double mhz_per_cpu = 3; + * @return The mhzPerCpu. */ double getMhzPerCpu(); @@ -33,6 +36,7 @@ public interface CPUInfoOrBuilder extends * * * string cpu_info = 4; + * @return The cpuInfo. */ java.lang.String getCpuInfo(); /** @@ -42,6 +46,7 @@ public interface CPUInfoOrBuilder extends * * * string cpu_info = 4; + * @return The bytes for cpuInfo. */ com.google.protobuf.ByteString getCpuInfoBytes(); @@ -53,6 +58,7 @@ public interface CPUInfoOrBuilder extends * * * string cpu_governor = 5; + * @return The cpuGovernor. */ java.lang.String getCpuGovernor(); /** @@ -62,6 +68,7 @@ public interface CPUInfoOrBuilder extends * * * string cpu_governor = 5; + * @return The bytes for cpuGovernor. */ com.google.protobuf.ByteString getCpuGovernorBytes(); diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CallableOptions.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CallableOptions.java similarity index 84% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CallableOptions.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CallableOptions.java index 1128fdc60f8..905344c6072 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CallableOptions.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CallableOptions.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/config.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; /** *
@@ -12,7 +12,7 @@
  *
  * Protobuf type {@code tensorflow.CallableOptions}
  */
-public  final class CallableOptions extends
+public final class CallableOptions extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.CallableOptions)
     CallableOptionsOrBuilder {
@@ -40,139 +40,9 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private CallableOptions(
-      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: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              feed_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            feed_.add(s);
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              fetch_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
-            }
-            fetch_.add(s);
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              target_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000004;
-            }
-            target_.add(s);
-            break;
-          }
-          case 34: {
-            org.tensorflow.proto.framework.RunOptions.Builder subBuilder = null;
-            if (runOptions_ != null) {
-              subBuilder = runOptions_.toBuilder();
-            }
-            runOptions_ = input.readMessage(org.tensorflow.proto.framework.RunOptions.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(runOptions_);
-              runOptions_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-              tensorConnection_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000008;
-            }
-            tensorConnection_.add(
-                input.readMessage(org.tensorflow.proto.framework.TensorConnection.parser(), extensionRegistry));
-            break;
-          }
-          case 50: {
-            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
-              feedDevices_ = com.google.protobuf.MapField.newMapField(
-                  FeedDevicesDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000010;
-            }
-            com.google.protobuf.MapEntry
-            feedDevices__ = input.readMessage(
-                FeedDevicesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            feedDevices_.getMutableMap().put(
-                feedDevices__.getKey(), feedDevices__.getValue());
-            break;
-          }
-          case 58: {
-            if (!((mutable_bitField0_ & 0x00000020) != 0)) {
-              fetchDevices_ = com.google.protobuf.MapField.newMapField(
-                  FetchDevicesDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000020;
-            }
-            com.google.protobuf.MapEntry
-            fetchDevices__ = input.readMessage(
-                FetchDevicesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            fetchDevices_.getMutableMap().put(
-                fetchDevices__.getKey(), fetchDevices__.getValue());
-            break;
-          }
-          case 64: {
-
-            fetchSkipSync_ = input.readBool();
-            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)) {
-        feed_ = feed_.getUnmodifiableView();
-      }
-      if (((mutable_bitField0_ & 0x00000002) != 0)) {
-        fetch_ = fetch_.getUnmodifiableView();
-      }
-      if (((mutable_bitField0_ & 0x00000004) != 0)) {
-        target_ = target_.getUnmodifiableView();
-      }
-      if (((mutable_bitField0_ & 0x00000008) != 0)) {
-        tensorConnection_ = java.util.Collections.unmodifiableList(tensorConnection_);
-      }
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_CallableOptions_descriptor;
+    return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_CallableOptions_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
@@ -192,9 +62,9 @@ protected com.google.protobuf.MapField internalGetMapField(
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_CallableOptions_fieldAccessorTable
+    return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_CallableOptions_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.framework.CallableOptions.class, org.tensorflow.proto.framework.CallableOptions.Builder.class);
+            org.tensorflow.proto.CallableOptions.class, org.tensorflow.proto.CallableOptions.Builder.class);
   }
 
   public static final int FEED_FIELD_NUMBER = 1;
@@ -205,6 +75,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * repeated string feed = 1; + * @return A list containing the feed. */ public com.google.protobuf.ProtocolStringList getFeedList() { @@ -216,6 +87,7 @@ protected com.google.protobuf.MapField internalGetMapField( * * * repeated string feed = 1; + * @return The count of feed. */ public int getFeedCount() { return feed_.size(); @@ -226,6 +98,8 @@ public int getFeedCount() { * * * repeated string feed = 1; + * @param index The index of the element to return. + * @return The feed at the given index. */ public java.lang.String getFeed(int index) { return feed_.get(index); @@ -236,6 +110,8 @@ public java.lang.String getFeed(int index) { * * * repeated string feed = 1; + * @param index The index of the value to return. + * @return The bytes of the feed at the given index. */ public com.google.protobuf.ByteString getFeedBytes(int index) { @@ -252,6 +128,7 @@ public java.lang.String getFeed(int index) { * * * repeated string fetch = 2; + * @return A list containing the fetch. */ public com.google.protobuf.ProtocolStringList getFetchList() { @@ -265,6 +142,7 @@ public java.lang.String getFeed(int index) { * * * repeated string fetch = 2; + * @return The count of fetch. */ public int getFetchCount() { return fetch_.size(); @@ -277,6 +155,8 @@ public int getFetchCount() { * * * repeated string fetch = 2; + * @param index The index of the element to return. + * @return The fetch at the given index. */ public java.lang.String getFetch(int index) { return fetch_.get(index); @@ -289,6 +169,8 @@ public java.lang.String getFetch(int index) { * * * repeated string fetch = 2; + * @param index The index of the value to return. + * @return The bytes of the fetch at the given index. */ public com.google.protobuf.ByteString getFetchBytes(int index) { @@ -304,6 +186,7 @@ public java.lang.String getFetch(int index) { * * * repeated string target = 3; + * @return A list containing the target. */ public com.google.protobuf.ProtocolStringList getTargetList() { @@ -316,6 +199,7 @@ public java.lang.String getFetch(int index) { * * * repeated string target = 3; + * @return The count of target. */ public int getTargetCount() { return target_.size(); @@ -327,6 +211,8 @@ public int getTargetCount() { * * * repeated string target = 3; + * @param index The index of the element to return. + * @return The target at the given index. */ public java.lang.String getTarget(int index) { return target_.get(index); @@ -338,6 +224,8 @@ public java.lang.String getTarget(int index) { * * * repeated string target = 3; + * @param index The index of the value to return. + * @return The bytes of the target at the given index. */ public com.google.protobuf.ByteString getTargetBytes(int index) { @@ -345,14 +233,16 @@ public java.lang.String getTarget(int index) { } public static final int RUN_OPTIONS_FIELD_NUMBER = 4; - private org.tensorflow.proto.framework.RunOptions runOptions_; + private org.tensorflow.proto.RunOptions runOptions_; /** *
    * Options that will be applied to each run.
    * 
* * .tensorflow.RunOptions run_options = 4; + * @return Whether the runOptions field is set. */ + @java.lang.Override public boolean hasRunOptions() { return runOptions_ != null; } @@ -362,9 +252,11 @@ public boolean hasRunOptions() { * * * .tensorflow.RunOptions run_options = 4; + * @return The runOptions. */ - public org.tensorflow.proto.framework.RunOptions getRunOptions() { - return runOptions_ == null ? org.tensorflow.proto.framework.RunOptions.getDefaultInstance() : runOptions_; + @java.lang.Override + public org.tensorflow.proto.RunOptions getRunOptions() { + return runOptions_ == null ? org.tensorflow.proto.RunOptions.getDefaultInstance() : runOptions_; } /** *
@@ -373,12 +265,13 @@ public org.tensorflow.proto.framework.RunOptions getRunOptions() {
    *
    * .tensorflow.RunOptions run_options = 4;
    */
-  public org.tensorflow.proto.framework.RunOptionsOrBuilder getRunOptionsOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.RunOptionsOrBuilder getRunOptionsOrBuilder() {
     return getRunOptions();
   }
 
   public static final int TENSOR_CONNECTION_FIELD_NUMBER = 5;
-  private java.util.List tensorConnection_;
+  private java.util.List tensorConnection_;
   /**
    * 
    * Tensors to be connected in the callable. Each TensorConnection denotes
@@ -388,7 +281,8 @@ public org.tensorflow.proto.framework.RunOptionsOrBuilder getRunOptionsOrBuilder
    *
    * repeated .tensorflow.TensorConnection tensor_connection = 5;
    */
-  public java.util.List getTensorConnectionList() {
+  @java.lang.Override
+  public java.util.List getTensorConnectionList() {
     return tensorConnection_;
   }
   /**
@@ -400,7 +294,8 @@ public java.util.List getTensor
    *
    * repeated .tensorflow.TensorConnection tensor_connection = 5;
    */
-  public java.util.List 
+  @java.lang.Override
+  public java.util.List 
       getTensorConnectionOrBuilderList() {
     return tensorConnection_;
   }
@@ -413,6 +308,7 @@ public java.util.List getTensor
    *
    * repeated .tensorflow.TensorConnection tensor_connection = 5;
    */
+  @java.lang.Override
   public int getTensorConnectionCount() {
     return tensorConnection_.size();
   }
@@ -425,7 +321,8 @@ public int getTensorConnectionCount() {
    *
    * repeated .tensorflow.TensorConnection tensor_connection = 5;
    */
-  public org.tensorflow.proto.framework.TensorConnection getTensorConnection(int index) {
+  @java.lang.Override
+  public org.tensorflow.proto.TensorConnection getTensorConnection(int index) {
     return tensorConnection_.get(index);
   }
   /**
@@ -437,7 +334,8 @@ public org.tensorflow.proto.framework.TensorConnection getTensorConnection(int i
    *
    * repeated .tensorflow.TensorConnection tensor_connection = 5;
    */
-  public org.tensorflow.proto.framework.TensorConnectionOrBuilder getTensorConnectionOrBuilder(
+  @java.lang.Override
+  public org.tensorflow.proto.TensorConnectionOrBuilder getTensorConnectionOrBuilder(
       int index) {
     return tensorConnection_.get(index);
   }
@@ -448,7 +346,7 @@ private static final class FeedDevicesDefaultEntryHolder {
         java.lang.String, java.lang.String> defaultEntry =
             com.google.protobuf.MapEntry
             .newDefaultInstance(
-                org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_CallableOptions_FeedDevicesEntry_descriptor, 
+                org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_CallableOptions_FeedDevicesEntry_descriptor, 
                 com.google.protobuf.WireFormat.FieldType.STRING,
                 "",
                 com.google.protobuf.WireFormat.FieldType.STRING,
@@ -511,14 +409,16 @@ public int getFeedDevicesCount() {
    * map<string, string> feed_devices = 6;
    */
 
+  @java.lang.Override
   public boolean containsFeedDevices(
       java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetFeedDevices().getMap().containsKey(key);
   }
   /**
    * Use {@link #getFeedDevicesMap()} instead.
    */
+  @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getFeedDevices() {
     return getFeedDevicesMap();
@@ -565,6 +465,7 @@ public java.util.Map getFeedDevices() {
    *
    * map<string, string> feed_devices = 6;
    */
+  @java.lang.Override
 
   public java.util.Map getFeedDevicesMap() {
     return internalGetFeedDevices().getMap();
@@ -611,11 +512,12 @@ public java.util.Map getFeedDevicesMap() {
    *
    * map<string, string> feed_devices = 6;
    */
+  @java.lang.Override
 
   public java.lang.String getFeedDevicesOrDefault(
       java.lang.String key,
       java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetFeedDevices().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -662,10 +564,11 @@ public java.lang.String getFeedDevicesOrDefault(
    *
    * map<string, string> feed_devices = 6;
    */
+  @java.lang.Override
 
   public java.lang.String getFeedDevicesOrThrow(
       java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetFeedDevices().getMap();
     if (!map.containsKey(key)) {
@@ -680,7 +583,7 @@ private static final class FetchDevicesDefaultEntryHolder {
         java.lang.String, java.lang.String> defaultEntry =
             com.google.protobuf.MapEntry
             .newDefaultInstance(
-                org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_CallableOptions_FetchDevicesEntry_descriptor, 
+                org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_CallableOptions_FetchDevicesEntry_descriptor, 
                 com.google.protobuf.WireFormat.FieldType.STRING,
                 "",
                 com.google.protobuf.WireFormat.FieldType.STRING,
@@ -704,14 +607,16 @@ public int getFetchDevicesCount() {
    * map<string, string> fetch_devices = 7;
    */
 
+  @java.lang.Override
   public boolean containsFetchDevices(
       java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetFetchDevices().getMap().containsKey(key);
   }
   /**
    * Use {@link #getFetchDevicesMap()} instead.
    */
+  @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getFetchDevices() {
     return getFetchDevicesMap();
@@ -719,6 +624,7 @@ public java.util.Map getFetchDevices() {
   /**
    * map<string, string> fetch_devices = 7;
    */
+  @java.lang.Override
 
   public java.util.Map getFetchDevicesMap() {
     return internalGetFetchDevices().getMap();
@@ -726,11 +632,12 @@ public java.util.Map getFetchDevicesMap() {
   /**
    * map<string, string> fetch_devices = 7;
    */
+  @java.lang.Override
 
   public java.lang.String getFetchDevicesOrDefault(
       java.lang.String key,
       java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetFetchDevices().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -738,10 +645,11 @@ public java.lang.String getFetchDevicesOrDefault(
   /**
    * map<string, string> fetch_devices = 7;
    */
+  @java.lang.Override
 
   public java.lang.String getFetchDevicesOrThrow(
       java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetFetchDevices().getMap();
     if (!map.containsKey(key)) {
@@ -766,7 +674,9 @@ public java.lang.String getFetchDevicesOrThrow(
    * 
* * bool fetch_skip_sync = 8; + * @return The fetchSkipSync. */ + @java.lang.Override public boolean getFetchSkipSync() { return fetchSkipSync_; } @@ -815,7 +725,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (fetchSkipSync_ != false) { output.writeBool(8, fetchSkipSync_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -880,7 +790,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, fetchSkipSync_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -890,10 +800,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.CallableOptions)) { + if (!(obj instanceof org.tensorflow.proto.CallableOptions)) { return super.equals(obj); } - org.tensorflow.proto.framework.CallableOptions other = (org.tensorflow.proto.framework.CallableOptions) obj; + org.tensorflow.proto.CallableOptions other = (org.tensorflow.proto.CallableOptions) obj; if (!getFeedList() .equals(other.getFeedList())) return false; @@ -914,7 +824,7 @@ public boolean equals(final java.lang.Object obj) { other.internalGetFetchDevices())) return false; if (getFetchSkipSync() != other.getFetchSkipSync()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -956,74 +866,74 @@ public int hashCode() { hash = (37 * hash) + FETCH_SKIP_SYNC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getFetchSkipSync()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.CallableOptions parseFrom( + public static org.tensorflow.proto.CallableOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.CallableOptions parseFrom( + public static org.tensorflow.proto.CallableOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.CallableOptions parseFrom( + public static org.tensorflow.proto.CallableOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.CallableOptions parseFrom( + public static org.tensorflow.proto.CallableOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.CallableOptions parseFrom(byte[] data) + public static org.tensorflow.proto.CallableOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.CallableOptions parseFrom( + public static org.tensorflow.proto.CallableOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.CallableOptions parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.CallableOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.CallableOptions parseFrom( + public static org.tensorflow.proto.CallableOptions 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 org.tensorflow.proto.framework.CallableOptions parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.CallableOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.CallableOptions parseDelimitedFrom( + public static org.tensorflow.proto.CallableOptions 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 org.tensorflow.proto.framework.CallableOptions parseFrom( + public static org.tensorflow.proto.CallableOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.CallableOptions parseFrom( + public static org.tensorflow.proto.CallableOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1036,7 +946,7 @@ public static org.tensorflow.proto.framework.CallableOptions parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.CallableOptions prototype) { + public static Builder newBuilder(org.tensorflow.proto.CallableOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1063,10 +973,10 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.CallableOptions) - org.tensorflow.proto.framework.CallableOptionsOrBuilder { + org.tensorflow.proto.CallableOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_CallableOptions_descriptor; + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_CallableOptions_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -1098,26 +1008,20 @@ protected com.google.protobuf.MapField internalGetMutableMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_CallableOptions_fieldAccessorTable + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_CallableOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.CallableOptions.class, org.tensorflow.proto.framework.CallableOptions.Builder.class); + org.tensorflow.proto.CallableOptions.class, org.tensorflow.proto.CallableOptions.Builder.class); } - // Construct using org.tensorflow.proto.framework.CallableOptions.newBuilder() + // Construct using org.tensorflow.proto.CallableOptions.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTensorConnectionFieldBuilder(); - } + } @java.lang.Override public Builder clear() { @@ -1136,10 +1040,11 @@ public Builder clear() { } if (tensorConnectionBuilder_ == null) { tensorConnection_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); } else { + tensorConnection_ = null; tensorConnectionBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableFeedDevices().clear(); internalGetMutableFetchDevices().clear(); fetchSkipSync_ = false; @@ -1150,17 +1055,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_CallableOptions_descriptor; + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_CallableOptions_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.CallableOptions getDefaultInstanceForType() { - return org.tensorflow.proto.framework.CallableOptions.getDefaultInstance(); + public org.tensorflow.proto.CallableOptions getDefaultInstanceForType() { + return org.tensorflow.proto.CallableOptions.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.CallableOptions build() { - org.tensorflow.proto.framework.CallableOptions result = buildPartial(); + public org.tensorflow.proto.CallableOptions build() { + org.tensorflow.proto.CallableOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1168,8 +1073,8 @@ public org.tensorflow.proto.framework.CallableOptions build() { } @java.lang.Override - public org.tensorflow.proto.framework.CallableOptions buildPartial() { - org.tensorflow.proto.framework.CallableOptions result = new org.tensorflow.proto.framework.CallableOptions(this); + public org.tensorflow.proto.CallableOptions buildPartial() { + org.tensorflow.proto.CallableOptions result = new org.tensorflow.proto.CallableOptions(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { feed_ = feed_.getUnmodifiableView(); @@ -1243,16 +1148,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.CallableOptions) { - return mergeFrom((org.tensorflow.proto.framework.CallableOptions)other); + if (other instanceof org.tensorflow.proto.CallableOptions) { + return mergeFrom((org.tensorflow.proto.CallableOptions)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.CallableOptions other) { - if (other == org.tensorflow.proto.framework.CallableOptions.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.CallableOptions other) { + if (other == org.tensorflow.proto.CallableOptions.getDefaultInstance()) return this; if (!other.feed_.isEmpty()) { if (feed_.isEmpty()) { feed_ = other.feed_; @@ -1319,7 +1224,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.CallableOptions other) { if (other.getFetchSkipSync() != false) { setFetchSkipSync(other.getFetchSkipSync()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1334,17 +1239,89 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.CallableOptions parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureFeedIsMutable(); + feed_.add(s); + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureFetchIsMutable(); + fetch_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetIsMutable(); + target_.add(s); + break; + } // case 26 + case 34: { + input.readMessage( + getRunOptionsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + org.tensorflow.proto.TensorConnection m = + input.readMessage( + org.tensorflow.proto.TensorConnection.parser(), + extensionRegistry); + if (tensorConnectionBuilder_ == null) { + ensureTensorConnectionIsMutable(); + tensorConnection_.add(m); + } else { + tensorConnectionBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + feedDevices__ = input.readMessage( + FeedDevicesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableFeedDevices().getMutableMap().put( + feedDevices__.getKey(), feedDevices__.getValue()); + break; + } // case 50 + case 58: { + com.google.protobuf.MapEntry + fetchDevices__ = input.readMessage( + FetchDevicesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableFetchDevices().getMutableMap().put( + fetchDevices__.getKey(), fetchDevices__.getValue()); + break; + } // case 58 + case 64: { + fetchSkipSync_ = input.readBool(); + + break; + } // case 64 + 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) { - parsedMessage = (org.tensorflow.proto.framework.CallableOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1362,6 +1339,7 @@ private void ensureFeedIsMutable() { *
* * repeated string feed = 1; + * @return A list containing the feed. */ public com.google.protobuf.ProtocolStringList getFeedList() { @@ -1373,6 +1351,7 @@ private void ensureFeedIsMutable() { * * * repeated string feed = 1; + * @return The count of feed. */ public int getFeedCount() { return feed_.size(); @@ -1383,6 +1362,8 @@ public int getFeedCount() { * * * repeated string feed = 1; + * @param index The index of the element to return. + * @return The feed at the given index. */ public java.lang.String getFeed(int index) { return feed_.get(index); @@ -1393,6 +1374,8 @@ public java.lang.String getFeed(int index) { * * * repeated string feed = 1; + * @param index The index of the value to return. + * @return The bytes of the feed at the given index. */ public com.google.protobuf.ByteString getFeedBytes(int index) { @@ -1404,6 +1387,9 @@ public java.lang.String getFeed(int index) { * * * repeated string feed = 1; + * @param index The index to set the value at. + * @param value The feed to set. + * @return This builder for chaining. */ public Builder setFeed( int index, java.lang.String value) { @@ -1421,6 +1407,8 @@ public Builder setFeed( * * * repeated string feed = 1; + * @param value The feed to add. + * @return This builder for chaining. */ public Builder addFeed( java.lang.String value) { @@ -1438,6 +1426,8 @@ public Builder addFeed( * * * repeated string feed = 1; + * @param values The feed to add. + * @return This builder for chaining. */ public Builder addAllFeed( java.lang.Iterable values) { @@ -1453,6 +1443,7 @@ public Builder addAllFeed( * * * repeated string feed = 1; + * @return This builder for chaining. */ public Builder clearFeed() { feed_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1466,6 +1457,8 @@ public Builder clearFeed() { * * * repeated string feed = 1; + * @param value The bytes of the feed to add. + * @return This builder for chaining. */ public Builder addFeedBytes( com.google.protobuf.ByteString value) { @@ -1494,6 +1487,7 @@ private void ensureFetchIsMutable() { * * * repeated string fetch = 2; + * @return A list containing the fetch. */ public com.google.protobuf.ProtocolStringList getFetchList() { @@ -1507,6 +1501,7 @@ private void ensureFetchIsMutable() { * * * repeated string fetch = 2; + * @return The count of fetch. */ public int getFetchCount() { return fetch_.size(); @@ -1519,6 +1514,8 @@ public int getFetchCount() { * * * repeated string fetch = 2; + * @param index The index of the element to return. + * @return The fetch at the given index. */ public java.lang.String getFetch(int index) { return fetch_.get(index); @@ -1531,6 +1528,8 @@ public java.lang.String getFetch(int index) { * * * repeated string fetch = 2; + * @param index The index of the value to return. + * @return The bytes of the fetch at the given index. */ public com.google.protobuf.ByteString getFetchBytes(int index) { @@ -1544,6 +1543,9 @@ public java.lang.String getFetch(int index) { * * * repeated string fetch = 2; + * @param index The index to set the value at. + * @param value The fetch to set. + * @return This builder for chaining. */ public Builder setFetch( int index, java.lang.String value) { @@ -1563,6 +1565,8 @@ public Builder setFetch( * * * repeated string fetch = 2; + * @param value The fetch to add. + * @return This builder for chaining. */ public Builder addFetch( java.lang.String value) { @@ -1582,6 +1586,8 @@ public Builder addFetch( * * * repeated string fetch = 2; + * @param values The fetch to add. + * @return This builder for chaining. */ public Builder addAllFetch( java.lang.Iterable values) { @@ -1599,6 +1605,7 @@ public Builder addAllFetch( * * * repeated string fetch = 2; + * @return This builder for chaining. */ public Builder clearFetch() { fetch_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1614,6 +1621,8 @@ public Builder clearFetch() { * * * repeated string fetch = 2; + * @param value The bytes of the fetch to add. + * @return This builder for chaining. */ public Builder addFetchBytes( com.google.protobuf.ByteString value) { @@ -1641,6 +1650,7 @@ private void ensureTargetIsMutable() { * * * repeated string target = 3; + * @return A list containing the target. */ public com.google.protobuf.ProtocolStringList getTargetList() { @@ -1653,6 +1663,7 @@ private void ensureTargetIsMutable() { * * * repeated string target = 3; + * @return The count of target. */ public int getTargetCount() { return target_.size(); @@ -1664,6 +1675,8 @@ public int getTargetCount() { * * * repeated string target = 3; + * @param index The index of the element to return. + * @return The target at the given index. */ public java.lang.String getTarget(int index) { return target_.get(index); @@ -1675,6 +1688,8 @@ public java.lang.String getTarget(int index) { * * * repeated string target = 3; + * @param index The index of the value to return. + * @return The bytes of the target at the given index. */ public com.google.protobuf.ByteString getTargetBytes(int index) { @@ -1687,6 +1702,9 @@ public java.lang.String getTarget(int index) { * * * repeated string target = 3; + * @param index The index to set the value at. + * @param value The target to set. + * @return This builder for chaining. */ public Builder setTarget( int index, java.lang.String value) { @@ -1705,6 +1723,8 @@ public Builder setTarget( * * * repeated string target = 3; + * @param value The target to add. + * @return This builder for chaining. */ public Builder addTarget( java.lang.String value) { @@ -1723,6 +1743,8 @@ public Builder addTarget( * * * repeated string target = 3; + * @param values The target to add. + * @return This builder for chaining. */ public Builder addAllTarget( java.lang.Iterable values) { @@ -1739,6 +1761,7 @@ public Builder addAllTarget( * * * repeated string target = 3; + * @return This builder for chaining. */ public Builder clearTarget() { target_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1753,6 +1776,8 @@ public Builder clearTarget() { * * * repeated string target = 3; + * @param value The bytes of the target to add. + * @return This builder for chaining. */ public Builder addTargetBytes( com.google.protobuf.ByteString value) { @@ -1766,15 +1791,16 @@ public Builder addTargetBytes( return this; } - private org.tensorflow.proto.framework.RunOptions runOptions_; + private org.tensorflow.proto.RunOptions runOptions_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.RunOptions, org.tensorflow.proto.framework.RunOptions.Builder, org.tensorflow.proto.framework.RunOptionsOrBuilder> runOptionsBuilder_; + org.tensorflow.proto.RunOptions, org.tensorflow.proto.RunOptions.Builder, org.tensorflow.proto.RunOptionsOrBuilder> runOptionsBuilder_; /** *
      * Options that will be applied to each run.
      * 
* * .tensorflow.RunOptions run_options = 4; + * @return Whether the runOptions field is set. */ public boolean hasRunOptions() { return runOptionsBuilder_ != null || runOptions_ != null; @@ -1785,10 +1811,11 @@ public boolean hasRunOptions() { * * * .tensorflow.RunOptions run_options = 4; + * @return The runOptions. */ - public org.tensorflow.proto.framework.RunOptions getRunOptions() { + public org.tensorflow.proto.RunOptions getRunOptions() { if (runOptionsBuilder_ == null) { - return runOptions_ == null ? org.tensorflow.proto.framework.RunOptions.getDefaultInstance() : runOptions_; + return runOptions_ == null ? org.tensorflow.proto.RunOptions.getDefaultInstance() : runOptions_; } else { return runOptionsBuilder_.getMessage(); } @@ -1800,7 +1827,7 @@ public org.tensorflow.proto.framework.RunOptions getRunOptions() { * * .tensorflow.RunOptions run_options = 4; */ - public Builder setRunOptions(org.tensorflow.proto.framework.RunOptions value) { + public Builder setRunOptions(org.tensorflow.proto.RunOptions value) { if (runOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1821,7 +1848,7 @@ public Builder setRunOptions(org.tensorflow.proto.framework.RunOptions value) { * .tensorflow.RunOptions run_options = 4; */ public Builder setRunOptions( - org.tensorflow.proto.framework.RunOptions.Builder builderForValue) { + org.tensorflow.proto.RunOptions.Builder builderForValue) { if (runOptionsBuilder_ == null) { runOptions_ = builderForValue.build(); onChanged(); @@ -1838,11 +1865,11 @@ public Builder setRunOptions( * * .tensorflow.RunOptions run_options = 4; */ - public Builder mergeRunOptions(org.tensorflow.proto.framework.RunOptions value) { + public Builder mergeRunOptions(org.tensorflow.proto.RunOptions value) { if (runOptionsBuilder_ == null) { if (runOptions_ != null) { runOptions_ = - org.tensorflow.proto.framework.RunOptions.newBuilder(runOptions_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.RunOptions.newBuilder(runOptions_).mergeFrom(value).buildPartial(); } else { runOptions_ = value; } @@ -1878,7 +1905,7 @@ public Builder clearRunOptions() { * * .tensorflow.RunOptions run_options = 4; */ - public org.tensorflow.proto.framework.RunOptions.Builder getRunOptionsBuilder() { + public org.tensorflow.proto.RunOptions.Builder getRunOptionsBuilder() { onChanged(); return getRunOptionsFieldBuilder().getBuilder(); @@ -1890,12 +1917,12 @@ public org.tensorflow.proto.framework.RunOptions.Builder getRunOptionsBuilder() * * .tensorflow.RunOptions run_options = 4; */ - public org.tensorflow.proto.framework.RunOptionsOrBuilder getRunOptionsOrBuilder() { + public org.tensorflow.proto.RunOptionsOrBuilder getRunOptionsOrBuilder() { if (runOptionsBuilder_ != null) { return runOptionsBuilder_.getMessageOrBuilder(); } else { return runOptions_ == null ? - org.tensorflow.proto.framework.RunOptions.getDefaultInstance() : runOptions_; + org.tensorflow.proto.RunOptions.getDefaultInstance() : runOptions_; } } /** @@ -1906,11 +1933,11 @@ public org.tensorflow.proto.framework.RunOptionsOrBuilder getRunOptionsOrBuilder * .tensorflow.RunOptions run_options = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.RunOptions, org.tensorflow.proto.framework.RunOptions.Builder, org.tensorflow.proto.framework.RunOptionsOrBuilder> + org.tensorflow.proto.RunOptions, org.tensorflow.proto.RunOptions.Builder, org.tensorflow.proto.RunOptionsOrBuilder> getRunOptionsFieldBuilder() { if (runOptionsBuilder_ == null) { runOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.RunOptions, org.tensorflow.proto.framework.RunOptions.Builder, org.tensorflow.proto.framework.RunOptionsOrBuilder>( + org.tensorflow.proto.RunOptions, org.tensorflow.proto.RunOptions.Builder, org.tensorflow.proto.RunOptionsOrBuilder>( getRunOptions(), getParentForChildren(), isClean()); @@ -1919,17 +1946,17 @@ public org.tensorflow.proto.framework.RunOptionsOrBuilder getRunOptionsOrBuilder return runOptionsBuilder_; } - private java.util.List tensorConnection_ = + private java.util.List tensorConnection_ = java.util.Collections.emptyList(); private void ensureTensorConnectionIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - tensorConnection_ = new java.util.ArrayList(tensorConnection_); + tensorConnection_ = new java.util.ArrayList(tensorConnection_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.TensorConnection, org.tensorflow.proto.framework.TensorConnection.Builder, org.tensorflow.proto.framework.TensorConnectionOrBuilder> tensorConnectionBuilder_; + org.tensorflow.proto.TensorConnection, org.tensorflow.proto.TensorConnection.Builder, org.tensorflow.proto.TensorConnectionOrBuilder> tensorConnectionBuilder_; /** *
@@ -1940,7 +1967,7 @@ private void ensureTensorConnectionIsMutable() {
      *
      * repeated .tensorflow.TensorConnection tensor_connection = 5;
      */
-    public java.util.List getTensorConnectionList() {
+    public java.util.List getTensorConnectionList() {
       if (tensorConnectionBuilder_ == null) {
         return java.util.Collections.unmodifiableList(tensorConnection_);
       } else {
@@ -1972,7 +1999,7 @@ public int getTensorConnectionCount() {
      *
      * repeated .tensorflow.TensorConnection tensor_connection = 5;
      */
-    public org.tensorflow.proto.framework.TensorConnection getTensorConnection(int index) {
+    public org.tensorflow.proto.TensorConnection getTensorConnection(int index) {
       if (tensorConnectionBuilder_ == null) {
         return tensorConnection_.get(index);
       } else {
@@ -1989,7 +2016,7 @@ public org.tensorflow.proto.framework.TensorConnection getTensorConnection(int i
      * repeated .tensorflow.TensorConnection tensor_connection = 5;
      */
     public Builder setTensorConnection(
-        int index, org.tensorflow.proto.framework.TensorConnection value) {
+        int index, org.tensorflow.proto.TensorConnection value) {
       if (tensorConnectionBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2012,7 +2039,7 @@ public Builder setTensorConnection(
      * repeated .tensorflow.TensorConnection tensor_connection = 5;
      */
     public Builder setTensorConnection(
-        int index, org.tensorflow.proto.framework.TensorConnection.Builder builderForValue) {
+        int index, org.tensorflow.proto.TensorConnection.Builder builderForValue) {
       if (tensorConnectionBuilder_ == null) {
         ensureTensorConnectionIsMutable();
         tensorConnection_.set(index, builderForValue.build());
@@ -2031,7 +2058,7 @@ public Builder setTensorConnection(
      *
      * repeated .tensorflow.TensorConnection tensor_connection = 5;
      */
-    public Builder addTensorConnection(org.tensorflow.proto.framework.TensorConnection value) {
+    public Builder addTensorConnection(org.tensorflow.proto.TensorConnection value) {
       if (tensorConnectionBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2054,7 +2081,7 @@ public Builder addTensorConnection(org.tensorflow.proto.framework.TensorConnecti
      * repeated .tensorflow.TensorConnection tensor_connection = 5;
      */
     public Builder addTensorConnection(
-        int index, org.tensorflow.proto.framework.TensorConnection value) {
+        int index, org.tensorflow.proto.TensorConnection value) {
       if (tensorConnectionBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2077,7 +2104,7 @@ public Builder addTensorConnection(
      * repeated .tensorflow.TensorConnection tensor_connection = 5;
      */
     public Builder addTensorConnection(
-        org.tensorflow.proto.framework.TensorConnection.Builder builderForValue) {
+        org.tensorflow.proto.TensorConnection.Builder builderForValue) {
       if (tensorConnectionBuilder_ == null) {
         ensureTensorConnectionIsMutable();
         tensorConnection_.add(builderForValue.build());
@@ -2097,7 +2124,7 @@ public Builder addTensorConnection(
      * repeated .tensorflow.TensorConnection tensor_connection = 5;
      */
     public Builder addTensorConnection(
-        int index, org.tensorflow.proto.framework.TensorConnection.Builder builderForValue) {
+        int index, org.tensorflow.proto.TensorConnection.Builder builderForValue) {
       if (tensorConnectionBuilder_ == null) {
         ensureTensorConnectionIsMutable();
         tensorConnection_.add(index, builderForValue.build());
@@ -2117,7 +2144,7 @@ public Builder addTensorConnection(
      * repeated .tensorflow.TensorConnection tensor_connection = 5;
      */
     public Builder addAllTensorConnection(
-        java.lang.Iterable values) {
+        java.lang.Iterable values) {
       if (tensorConnectionBuilder_ == null) {
         ensureTensorConnectionIsMutable();
         com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -2175,7 +2202,7 @@ public Builder removeTensorConnection(int index) {
      *
      * repeated .tensorflow.TensorConnection tensor_connection = 5;
      */
-    public org.tensorflow.proto.framework.TensorConnection.Builder getTensorConnectionBuilder(
+    public org.tensorflow.proto.TensorConnection.Builder getTensorConnectionBuilder(
         int index) {
       return getTensorConnectionFieldBuilder().getBuilder(index);
     }
@@ -2188,7 +2215,7 @@ public org.tensorflow.proto.framework.TensorConnection.Builder getTensorConnecti
      *
      * repeated .tensorflow.TensorConnection tensor_connection = 5;
      */
-    public org.tensorflow.proto.framework.TensorConnectionOrBuilder getTensorConnectionOrBuilder(
+    public org.tensorflow.proto.TensorConnectionOrBuilder getTensorConnectionOrBuilder(
         int index) {
       if (tensorConnectionBuilder_ == null) {
         return tensorConnection_.get(index);  } else {
@@ -2204,7 +2231,7 @@ public org.tensorflow.proto.framework.TensorConnectionOrBuilder getTensorConnect
      *
      * repeated .tensorflow.TensorConnection tensor_connection = 5;
      */
-    public java.util.List 
+    public java.util.List 
          getTensorConnectionOrBuilderList() {
       if (tensorConnectionBuilder_ != null) {
         return tensorConnectionBuilder_.getMessageOrBuilderList();
@@ -2221,9 +2248,9 @@ public org.tensorflow.proto.framework.TensorConnectionOrBuilder getTensorConnect
      *
      * repeated .tensorflow.TensorConnection tensor_connection = 5;
      */
-    public org.tensorflow.proto.framework.TensorConnection.Builder addTensorConnectionBuilder() {
+    public org.tensorflow.proto.TensorConnection.Builder addTensorConnectionBuilder() {
       return getTensorConnectionFieldBuilder().addBuilder(
-          org.tensorflow.proto.framework.TensorConnection.getDefaultInstance());
+          org.tensorflow.proto.TensorConnection.getDefaultInstance());
     }
     /**
      * 
@@ -2234,10 +2261,10 @@ public org.tensorflow.proto.framework.TensorConnection.Builder addTensorConnecti
      *
      * repeated .tensorflow.TensorConnection tensor_connection = 5;
      */
-    public org.tensorflow.proto.framework.TensorConnection.Builder addTensorConnectionBuilder(
+    public org.tensorflow.proto.TensorConnection.Builder addTensorConnectionBuilder(
         int index) {
       return getTensorConnectionFieldBuilder().addBuilder(
-          index, org.tensorflow.proto.framework.TensorConnection.getDefaultInstance());
+          index, org.tensorflow.proto.TensorConnection.getDefaultInstance());
     }
     /**
      * 
@@ -2248,16 +2275,16 @@ public org.tensorflow.proto.framework.TensorConnection.Builder addTensorConnecti
      *
      * repeated .tensorflow.TensorConnection tensor_connection = 5;
      */
-    public java.util.List 
+    public java.util.List 
          getTensorConnectionBuilderList() {
       return getTensorConnectionFieldBuilder().getBuilderList();
     }
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        org.tensorflow.proto.framework.TensorConnection, org.tensorflow.proto.framework.TensorConnection.Builder, org.tensorflow.proto.framework.TensorConnectionOrBuilder> 
+        org.tensorflow.proto.TensorConnection, org.tensorflow.proto.TensorConnection.Builder, org.tensorflow.proto.TensorConnectionOrBuilder> 
         getTensorConnectionFieldBuilder() {
       if (tensorConnectionBuilder_ == null) {
         tensorConnectionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            org.tensorflow.proto.framework.TensorConnection, org.tensorflow.proto.framework.TensorConnection.Builder, org.tensorflow.proto.framework.TensorConnectionOrBuilder>(
+            org.tensorflow.proto.TensorConnection, org.tensorflow.proto.TensorConnection.Builder, org.tensorflow.proto.TensorConnectionOrBuilder>(
                 tensorConnection_,
                 ((bitField0_ & 0x00000008) != 0),
                 getParentForChildren(),
@@ -2336,14 +2363,16 @@ public int getFeedDevicesCount() {
      * map<string, string> feed_devices = 6;
      */
 
+    @java.lang.Override
     public boolean containsFeedDevices(
         java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetFeedDevices().getMap().containsKey(key);
     }
     /**
      * Use {@link #getFeedDevicesMap()} instead.
      */
+    @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getFeedDevices() {
       return getFeedDevicesMap();
@@ -2390,6 +2419,7 @@ public java.util.Map getFeedDevices() {
      *
      * map<string, string> feed_devices = 6;
      */
+    @java.lang.Override
 
     public java.util.Map getFeedDevicesMap() {
       return internalGetFeedDevices().getMap();
@@ -2436,11 +2466,12 @@ public java.util.Map getFeedDevicesMap() {
      *
      * map<string, string> feed_devices = 6;
      */
+    @java.lang.Override
 
     public java.lang.String getFeedDevicesOrDefault(
         java.lang.String key,
         java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetFeedDevices().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -2487,10 +2518,11 @@ public java.lang.String getFeedDevicesOrDefault(
      *
      * map<string, string> feed_devices = 6;
      */
+    @java.lang.Override
 
     public java.lang.String getFeedDevicesOrThrow(
         java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetFeedDevices().getMap();
       if (!map.containsKey(key)) {
@@ -2549,7 +2581,7 @@ public Builder clearFeedDevices() {
 
     public Builder removeFeedDevices(
         java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
       internalGetMutableFeedDevices().getMutableMap()
           .remove(key);
       return this;
@@ -2607,8 +2639,11 @@ public Builder removeFeedDevices(
     public Builder putFeedDevices(
         java.lang.String key,
         java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) {
+  throw new NullPointerException("map value");
+}
+
       internalGetMutableFeedDevices().getMutableMap()
           .put(key, value);
       return this;
@@ -2693,14 +2728,16 @@ public int getFetchDevicesCount() {
      * map<string, string> fetch_devices = 7;
      */
 
+    @java.lang.Override
     public boolean containsFetchDevices(
         java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetFetchDevices().getMap().containsKey(key);
     }
     /**
      * Use {@link #getFetchDevicesMap()} instead.
      */
+    @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getFetchDevices() {
       return getFetchDevicesMap();
@@ -2708,6 +2745,7 @@ public java.util.Map getFetchDevices() {
     /**
      * map<string, string> fetch_devices = 7;
      */
+    @java.lang.Override
 
     public java.util.Map getFetchDevicesMap() {
       return internalGetFetchDevices().getMap();
@@ -2715,11 +2753,12 @@ public java.util.Map getFetchDevicesMap() {
     /**
      * map<string, string> fetch_devices = 7;
      */
+    @java.lang.Override
 
     public java.lang.String getFetchDevicesOrDefault(
         java.lang.String key,
         java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetFetchDevices().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -2727,10 +2766,11 @@ public java.lang.String getFetchDevicesOrDefault(
     /**
      * map<string, string> fetch_devices = 7;
      */
+    @java.lang.Override
 
     public java.lang.String getFetchDevicesOrThrow(
         java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetFetchDevices().getMap();
       if (!map.containsKey(key)) {
@@ -2750,7 +2790,7 @@ public Builder clearFetchDevices() {
 
     public Builder removeFetchDevices(
         java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
       internalGetMutableFetchDevices().getMutableMap()
           .remove(key);
       return this;
@@ -2769,8 +2809,11 @@ public Builder removeFetchDevices(
     public Builder putFetchDevices(
         java.lang.String key,
         java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) {
+  throw new NullPointerException("map value");
+}
+
       internalGetMutableFetchDevices().getMutableMap()
           .put(key, value);
       return this;
@@ -2801,7 +2844,9 @@ public Builder putAllFetchDevices(
      * 
* * bool fetch_skip_sync = 8; + * @return The fetchSkipSync. */ + @java.lang.Override public boolean getFetchSkipSync() { return fetchSkipSync_; } @@ -2819,6 +2864,8 @@ public boolean getFetchSkipSync() { *
* * bool fetch_skip_sync = 8; + * @param value The fetchSkipSync to set. + * @return This builder for chaining. */ public Builder setFetchSkipSync(boolean value) { @@ -2840,6 +2887,7 @@ public Builder setFetchSkipSync(boolean value) { *
* * bool fetch_skip_sync = 8; + * @return This builder for chaining. */ public Builder clearFetchSkipSync() { @@ -2864,12 +2912,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.CallableOptions) - private static final org.tensorflow.proto.framework.CallableOptions DEFAULT_INSTANCE; + private static final org.tensorflow.proto.CallableOptions DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.CallableOptions(); + DEFAULT_INSTANCE = new org.tensorflow.proto.CallableOptions(); } - public static org.tensorflow.proto.framework.CallableOptions getDefaultInstance() { + public static org.tensorflow.proto.CallableOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -2880,7 +2928,18 @@ public CallableOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CallableOptions(input, extensionRegistry); + 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(); } }; @@ -2894,7 +2953,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.CallableOptions getDefaultInstanceForType() { + public org.tensorflow.proto.CallableOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CallableOptionsOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CallableOptionsOrBuilder.java similarity index 91% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CallableOptionsOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CallableOptionsOrBuilder.java index d65852d4843..ac1a0b53857 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CallableOptionsOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CallableOptionsOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/config.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface CallableOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.CallableOptions) @@ -13,6 +13,7 @@ public interface CallableOptionsOrBuilder extends * * * repeated string feed = 1; + * @return A list containing the feed. */ java.util.List getFeedList(); @@ -22,6 +23,7 @@ public interface CallableOptionsOrBuilder extends * * * repeated string feed = 1; + * @return The count of feed. */ int getFeedCount(); /** @@ -30,6 +32,8 @@ public interface CallableOptionsOrBuilder extends * * * repeated string feed = 1; + * @param index The index of the element to return. + * @return The feed at the given index. */ java.lang.String getFeed(int index); /** @@ -38,6 +42,8 @@ public interface CallableOptionsOrBuilder extends * * * repeated string feed = 1; + * @param index The index of the value to return. + * @return The bytes of the feed at the given index. */ com.google.protobuf.ByteString getFeedBytes(int index); @@ -50,6 +56,7 @@ public interface CallableOptionsOrBuilder extends * * * repeated string fetch = 2; + * @return A list containing the fetch. */ java.util.List getFetchList(); @@ -61,6 +68,7 @@ public interface CallableOptionsOrBuilder extends * * * repeated string fetch = 2; + * @return The count of fetch. */ int getFetchCount(); /** @@ -71,6 +79,8 @@ public interface CallableOptionsOrBuilder extends * * * repeated string fetch = 2; + * @param index The index of the element to return. + * @return The fetch at the given index. */ java.lang.String getFetch(int index); /** @@ -81,6 +91,8 @@ public interface CallableOptionsOrBuilder extends * * * repeated string fetch = 2; + * @param index The index of the value to return. + * @return The bytes of the fetch at the given index. */ com.google.protobuf.ByteString getFetchBytes(int index); @@ -92,6 +104,7 @@ public interface CallableOptionsOrBuilder extends * * * repeated string target = 3; + * @return A list containing the target. */ java.util.List getTargetList(); @@ -102,6 +115,7 @@ public interface CallableOptionsOrBuilder extends * * * repeated string target = 3; + * @return The count of target. */ int getTargetCount(); /** @@ -111,6 +125,8 @@ public interface CallableOptionsOrBuilder extends * * * repeated string target = 3; + * @param index The index of the element to return. + * @return The target at the given index. */ java.lang.String getTarget(int index); /** @@ -120,6 +136,8 @@ public interface CallableOptionsOrBuilder extends * * * repeated string target = 3; + * @param index The index of the value to return. + * @return The bytes of the target at the given index. */ com.google.protobuf.ByteString getTargetBytes(int index); @@ -130,6 +148,7 @@ public interface CallableOptionsOrBuilder extends * * * .tensorflow.RunOptions run_options = 4; + * @return Whether the runOptions field is set. */ boolean hasRunOptions(); /** @@ -138,8 +157,9 @@ public interface CallableOptionsOrBuilder extends * * * .tensorflow.RunOptions run_options = 4; + * @return The runOptions. */ - org.tensorflow.proto.framework.RunOptions getRunOptions(); + org.tensorflow.proto.RunOptions getRunOptions(); /** *
    * Options that will be applied to each run.
@@ -147,7 +167,7 @@ public interface CallableOptionsOrBuilder extends
    *
    * .tensorflow.RunOptions run_options = 4;
    */
-  org.tensorflow.proto.framework.RunOptionsOrBuilder getRunOptionsOrBuilder();
+  org.tensorflow.proto.RunOptionsOrBuilder getRunOptionsOrBuilder();
 
   /**
    * 
@@ -158,7 +178,7 @@ public interface CallableOptionsOrBuilder extends
    *
    * repeated .tensorflow.TensorConnection tensor_connection = 5;
    */
-  java.util.List 
+  java.util.List 
       getTensorConnectionList();
   /**
    * 
@@ -169,7 +189,7 @@ public interface CallableOptionsOrBuilder extends
    *
    * repeated .tensorflow.TensorConnection tensor_connection = 5;
    */
-  org.tensorflow.proto.framework.TensorConnection getTensorConnection(int index);
+  org.tensorflow.proto.TensorConnection getTensorConnection(int index);
   /**
    * 
    * Tensors to be connected in the callable. Each TensorConnection denotes
@@ -189,7 +209,7 @@ public interface CallableOptionsOrBuilder extends
    *
    * repeated .tensorflow.TensorConnection tensor_connection = 5;
    */
-  java.util.List 
+  java.util.List 
       getTensorConnectionOrBuilderList();
   /**
    * 
@@ -200,7 +220,7 @@ public interface CallableOptionsOrBuilder extends
    *
    * repeated .tensorflow.TensorConnection tensor_connection = 5;
    */
-  org.tensorflow.proto.framework.TensorConnectionOrBuilder getTensorConnectionOrBuilder(
+  org.tensorflow.proto.TensorConnectionOrBuilder getTensorConnectionOrBuilder(
       int index);
 
   /**
@@ -383,9 +403,11 @@ boolean containsFeedDevices(
    * map<string, string> feed_devices = 6;
    */
 
-  java.lang.String getFeedDevicesOrDefault(
+  /* nullable */
+java.lang.String getFeedDevicesOrDefault(
       java.lang.String key,
-      java.lang.String defaultValue);
+      /* nullable */
+java.lang.String defaultValue);
   /**
    * 
    * The Tensor objects fed in the callable and fetched from the callable
@@ -456,9 +478,11 @@ boolean containsFetchDevices(
    * map<string, string> fetch_devices = 7;
    */
 
-  java.lang.String getFetchDevicesOrDefault(
+  /* nullable */
+java.lang.String getFetchDevicesOrDefault(
       java.lang.String key,
-      java.lang.String defaultValue);
+      /* nullable */
+java.lang.String defaultValue);
   /**
    * map<string, string> fetch_devices = 7;
    */
@@ -480,6 +504,7 @@ java.lang.String getFetchDevicesOrThrow(
    * 
* * bool fetch_skip_sync = 8; + * @return The fetchSkipSync. */ boolean getFetchSkipSync(); } diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ClusterDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ClusterDef.java new file mode 100644 index 00000000000..054c2fc4b0b --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ClusterDef.java @@ -0,0 +1,852 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/cluster.proto + +package org.tensorflow.proto; + +/** + *
+ * Defines a TensorFlow cluster as a set of jobs.
+ * 
+ * + * Protobuf type {@code tensorflow.ClusterDef} + */ +public final class ClusterDef extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.ClusterDef) + ClusterDefOrBuilder { +private static final long serialVersionUID = 0L; + // Use ClusterDef.newBuilder() to construct. + private ClusterDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ClusterDef() { + job_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClusterDef(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ClusterProtos.internal_static_tensorflow_ClusterDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ClusterProtos.internal_static_tensorflow_ClusterDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ClusterDef.class, org.tensorflow.proto.ClusterDef.Builder.class); + } + + public static final int JOB_FIELD_NUMBER = 1; + private java.util.List job_; + /** + *
+   * The jobs that comprise the cluster.
+   * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + @java.lang.Override + public java.util.List getJobList() { + return job_; + } + /** + *
+   * The jobs that comprise the cluster.
+   * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + @java.lang.Override + public java.util.List + getJobOrBuilderList() { + return job_; + } + /** + *
+   * The jobs that comprise the cluster.
+   * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + @java.lang.Override + public int getJobCount() { + return job_.size(); + } + /** + *
+   * The jobs that comprise the cluster.
+   * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + @java.lang.Override + public org.tensorflow.proto.JobDef getJob(int index) { + return job_.get(index); + } + /** + *
+   * The jobs that comprise the cluster.
+   * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + @java.lang.Override + public org.tensorflow.proto.JobDefOrBuilder getJobOrBuilder( + int index) { + return job_.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 < job_.size(); i++) { + output.writeMessage(1, job_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < job_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, job_.get(i)); + } + 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 org.tensorflow.proto.ClusterDef)) { + return super.equals(obj); + } + org.tensorflow.proto.ClusterDef other = (org.tensorflow.proto.ClusterDef) obj; + + if (!getJobList() + .equals(other.getJobList())) 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 (getJobCount() > 0) { + hash = (37 * hash) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJobList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.ClusterDef parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ClusterDef parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ClusterDef parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ClusterDef parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ClusterDef parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ClusterDef parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ClusterDef parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ClusterDef 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 org.tensorflow.proto.ClusterDef parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ClusterDef 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 org.tensorflow.proto.ClusterDef parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ClusterDef 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(org.tensorflow.proto.ClusterDef 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; + } + /** + *
+   * Defines a TensorFlow cluster as a set of jobs.
+   * 
+ * + * Protobuf type {@code tensorflow.ClusterDef} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.ClusterDef) + org.tensorflow.proto.ClusterDefOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ClusterProtos.internal_static_tensorflow_ClusterDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ClusterProtos.internal_static_tensorflow_ClusterDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ClusterDef.class, org.tensorflow.proto.ClusterDef.Builder.class); + } + + // Construct using org.tensorflow.proto.ClusterDef.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (jobBuilder_ == null) { + job_ = java.util.Collections.emptyList(); + } else { + job_ = null; + jobBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.ClusterProtos.internal_static_tensorflow_ClusterDef_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.ClusterDef getDefaultInstanceForType() { + return org.tensorflow.proto.ClusterDef.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.ClusterDef build() { + org.tensorflow.proto.ClusterDef result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.ClusterDef buildPartial() { + org.tensorflow.proto.ClusterDef result = new org.tensorflow.proto.ClusterDef(this); + int from_bitField0_ = bitField0_; + if (jobBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + job_ = java.util.Collections.unmodifiableList(job_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.job_ = job_; + } else { + result.job_ = jobBuilder_.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 org.tensorflow.proto.ClusterDef) { + return mergeFrom((org.tensorflow.proto.ClusterDef)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.ClusterDef other) { + if (other == org.tensorflow.proto.ClusterDef.getDefaultInstance()) return this; + if (jobBuilder_ == null) { + if (!other.job_.isEmpty()) { + if (job_.isEmpty()) { + job_ = other.job_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureJobIsMutable(); + job_.addAll(other.job_); + } + onChanged(); + } + } else { + if (!other.job_.isEmpty()) { + if (jobBuilder_.isEmpty()) { + jobBuilder_.dispose(); + jobBuilder_ = null; + job_ = other.job_; + bitField0_ = (bitField0_ & ~0x00000001); + jobBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getJobFieldBuilder() : null; + } else { + jobBuilder_.addAllMessages(other.job_); + } + } + } + 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: { + org.tensorflow.proto.JobDef m = + input.readMessage( + org.tensorflow.proto.JobDef.parser(), + extensionRegistry); + if (jobBuilder_ == null) { + ensureJobIsMutable(); + job_.add(m); + } else { + jobBuilder_.addMessage(m); + } + 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.util.List job_ = + java.util.Collections.emptyList(); + private void ensureJobIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + job_ = new java.util.ArrayList(job_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.JobDef, org.tensorflow.proto.JobDef.Builder, org.tensorflow.proto.JobDefOrBuilder> jobBuilder_; + + /** + *
+     * The jobs that comprise the cluster.
+     * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + public java.util.List getJobList() { + if (jobBuilder_ == null) { + return java.util.Collections.unmodifiableList(job_); + } else { + return jobBuilder_.getMessageList(); + } + } + /** + *
+     * The jobs that comprise the cluster.
+     * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + public int getJobCount() { + if (jobBuilder_ == null) { + return job_.size(); + } else { + return jobBuilder_.getCount(); + } + } + /** + *
+     * The jobs that comprise the cluster.
+     * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + public org.tensorflow.proto.JobDef getJob(int index) { + if (jobBuilder_ == null) { + return job_.get(index); + } else { + return jobBuilder_.getMessage(index); + } + } + /** + *
+     * The jobs that comprise the cluster.
+     * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + public Builder setJob( + int index, org.tensorflow.proto.JobDef value) { + if (jobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobIsMutable(); + job_.set(index, value); + onChanged(); + } else { + jobBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The jobs that comprise the cluster.
+     * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + public Builder setJob( + int index, org.tensorflow.proto.JobDef.Builder builderForValue) { + if (jobBuilder_ == null) { + ensureJobIsMutable(); + job_.set(index, builderForValue.build()); + onChanged(); + } else { + jobBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The jobs that comprise the cluster.
+     * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + public Builder addJob(org.tensorflow.proto.JobDef value) { + if (jobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobIsMutable(); + job_.add(value); + onChanged(); + } else { + jobBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The jobs that comprise the cluster.
+     * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + public Builder addJob( + int index, org.tensorflow.proto.JobDef value) { + if (jobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobIsMutable(); + job_.add(index, value); + onChanged(); + } else { + jobBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The jobs that comprise the cluster.
+     * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + public Builder addJob( + org.tensorflow.proto.JobDef.Builder builderForValue) { + if (jobBuilder_ == null) { + ensureJobIsMutable(); + job_.add(builderForValue.build()); + onChanged(); + } else { + jobBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The jobs that comprise the cluster.
+     * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + public Builder addJob( + int index, org.tensorflow.proto.JobDef.Builder builderForValue) { + if (jobBuilder_ == null) { + ensureJobIsMutable(); + job_.add(index, builderForValue.build()); + onChanged(); + } else { + jobBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The jobs that comprise the cluster.
+     * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + public Builder addAllJob( + java.lang.Iterable values) { + if (jobBuilder_ == null) { + ensureJobIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, job_); + onChanged(); + } else { + jobBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The jobs that comprise the cluster.
+     * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + public Builder clearJob() { + if (jobBuilder_ == null) { + job_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + jobBuilder_.clear(); + } + return this; + } + /** + *
+     * The jobs that comprise the cluster.
+     * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + public Builder removeJob(int index) { + if (jobBuilder_ == null) { + ensureJobIsMutable(); + job_.remove(index); + onChanged(); + } else { + jobBuilder_.remove(index); + } + return this; + } + /** + *
+     * The jobs that comprise the cluster.
+     * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + public org.tensorflow.proto.JobDef.Builder getJobBuilder( + int index) { + return getJobFieldBuilder().getBuilder(index); + } + /** + *
+     * The jobs that comprise the cluster.
+     * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + public org.tensorflow.proto.JobDefOrBuilder getJobOrBuilder( + int index) { + if (jobBuilder_ == null) { + return job_.get(index); } else { + return jobBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The jobs that comprise the cluster.
+     * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + public java.util.List + getJobOrBuilderList() { + if (jobBuilder_ != null) { + return jobBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(job_); + } + } + /** + *
+     * The jobs that comprise the cluster.
+     * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + public org.tensorflow.proto.JobDef.Builder addJobBuilder() { + return getJobFieldBuilder().addBuilder( + org.tensorflow.proto.JobDef.getDefaultInstance()); + } + /** + *
+     * The jobs that comprise the cluster.
+     * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + public org.tensorflow.proto.JobDef.Builder addJobBuilder( + int index) { + return getJobFieldBuilder().addBuilder( + index, org.tensorflow.proto.JobDef.getDefaultInstance()); + } + /** + *
+     * The jobs that comprise the cluster.
+     * 
+ * + * repeated .tensorflow.JobDef job = 1; + */ + public java.util.List + getJobBuilderList() { + return getJobFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.JobDef, org.tensorflow.proto.JobDef.Builder, org.tensorflow.proto.JobDefOrBuilder> + getJobFieldBuilder() { + if (jobBuilder_ == null) { + jobBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.JobDef, org.tensorflow.proto.JobDef.Builder, org.tensorflow.proto.JobDefOrBuilder>( + job_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + job_ = null; + } + return jobBuilder_; + } + @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:tensorflow.ClusterDef) + } + + // @@protoc_insertion_point(class_scope:tensorflow.ClusterDef) + private static final org.tensorflow.proto.ClusterDef DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.ClusterDef(); + } + + public static org.tensorflow.proto.ClusterDef getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterDef 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 org.tensorflow.proto.ClusterDef getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ClusterDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ClusterDefOrBuilder.java similarity index 77% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ClusterDefOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ClusterDefOrBuilder.java index 8cecd262cc2..4e6a591a34c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ClusterDefOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ClusterDefOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/cluster.proto -package org.tensorflow.proto.distruntime; +package org.tensorflow.proto; public interface ClusterDefOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.ClusterDef) @@ -14,7 +14,7 @@ public interface ClusterDefOrBuilder extends * * repeated .tensorflow.JobDef job = 1; */ - java.util.List + java.util.List getJobList(); /** *
@@ -23,7 +23,7 @@ public interface ClusterDefOrBuilder extends
    *
    * repeated .tensorflow.JobDef job = 1;
    */
-  org.tensorflow.proto.distruntime.JobDef getJob(int index);
+  org.tensorflow.proto.JobDef getJob(int index);
   /**
    * 
    * The jobs that comprise the cluster.
@@ -39,7 +39,7 @@ public interface ClusterDefOrBuilder extends
    *
    * repeated .tensorflow.JobDef job = 1;
    */
-  java.util.List 
+  java.util.List 
       getJobOrBuilderList();
   /**
    * 
@@ -48,6 +48,6 @@ public interface ClusterDefOrBuilder extends
    *
    * repeated .tensorflow.JobDef job = 1;
    */
-  org.tensorflow.proto.distruntime.JobDefOrBuilder getJobOrBuilder(
+  org.tensorflow.proto.JobDefOrBuilder getJobOrBuilder(
       int index);
 }
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ClusterDeviceFilters.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ClusterDeviceFilters.java
new file mode 100644
index 00000000000..3453537c484
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ClusterDeviceFilters.java
@@ -0,0 +1,760 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/protobuf/device_filters.proto
+
+package org.tensorflow.proto;
+
+/**
+ * 
+ * Defines the device filters for jobs in a cluster.
+ * 
+ * + * Protobuf type {@code tensorflow.ClusterDeviceFilters} + */ +public final class ClusterDeviceFilters extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.ClusterDeviceFilters) + ClusterDeviceFiltersOrBuilder { +private static final long serialVersionUID = 0L; + // Use ClusterDeviceFilters.newBuilder() to construct. + private ClusterDeviceFilters(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ClusterDeviceFilters() { + jobs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClusterDeviceFilters(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DeviceFiltersProtos.internal_static_tensorflow_ClusterDeviceFilters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DeviceFiltersProtos.internal_static_tensorflow_ClusterDeviceFilters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ClusterDeviceFilters.class, org.tensorflow.proto.ClusterDeviceFilters.Builder.class); + } + + public static final int JOBS_FIELD_NUMBER = 1; + private java.util.List jobs_; + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + @java.lang.Override + public java.util.List getJobsList() { + return jobs_; + } + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + @java.lang.Override + public java.util.List + getJobsOrBuilderList() { + return jobs_; + } + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + @java.lang.Override + public int getJobsCount() { + return jobs_.size(); + } + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + @java.lang.Override + public org.tensorflow.proto.JobDeviceFilters getJobs(int index) { + return jobs_.get(index); + } + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + @java.lang.Override + public org.tensorflow.proto.JobDeviceFiltersOrBuilder getJobsOrBuilder( + int index) { + return jobs_.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 < jobs_.size(); i++) { + output.writeMessage(1, jobs_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < jobs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, jobs_.get(i)); + } + 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 org.tensorflow.proto.ClusterDeviceFilters)) { + return super.equals(obj); + } + org.tensorflow.proto.ClusterDeviceFilters other = (org.tensorflow.proto.ClusterDeviceFilters) obj; + + if (!getJobsList() + .equals(other.getJobsList())) 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 (getJobsCount() > 0) { + hash = (37 * hash) + JOBS_FIELD_NUMBER; + hash = (53 * hash) + getJobsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.ClusterDeviceFilters parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ClusterDeviceFilters parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ClusterDeviceFilters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ClusterDeviceFilters parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ClusterDeviceFilters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ClusterDeviceFilters parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ClusterDeviceFilters parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ClusterDeviceFilters 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 org.tensorflow.proto.ClusterDeviceFilters parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ClusterDeviceFilters 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 org.tensorflow.proto.ClusterDeviceFilters parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ClusterDeviceFilters 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(org.tensorflow.proto.ClusterDeviceFilters 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; + } + /** + *
+   * Defines the device filters for jobs in a cluster.
+   * 
+ * + * Protobuf type {@code tensorflow.ClusterDeviceFilters} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.ClusterDeviceFilters) + org.tensorflow.proto.ClusterDeviceFiltersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DeviceFiltersProtos.internal_static_tensorflow_ClusterDeviceFilters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DeviceFiltersProtos.internal_static_tensorflow_ClusterDeviceFilters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ClusterDeviceFilters.class, org.tensorflow.proto.ClusterDeviceFilters.Builder.class); + } + + // Construct using org.tensorflow.proto.ClusterDeviceFilters.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (jobsBuilder_ == null) { + jobs_ = java.util.Collections.emptyList(); + } else { + jobs_ = null; + jobsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.DeviceFiltersProtos.internal_static_tensorflow_ClusterDeviceFilters_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.ClusterDeviceFilters getDefaultInstanceForType() { + return org.tensorflow.proto.ClusterDeviceFilters.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.ClusterDeviceFilters build() { + org.tensorflow.proto.ClusterDeviceFilters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.ClusterDeviceFilters buildPartial() { + org.tensorflow.proto.ClusterDeviceFilters result = new org.tensorflow.proto.ClusterDeviceFilters(this); + int from_bitField0_ = bitField0_; + if (jobsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + jobs_ = java.util.Collections.unmodifiableList(jobs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.jobs_ = jobs_; + } else { + result.jobs_ = jobsBuilder_.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 org.tensorflow.proto.ClusterDeviceFilters) { + return mergeFrom((org.tensorflow.proto.ClusterDeviceFilters)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.ClusterDeviceFilters other) { + if (other == org.tensorflow.proto.ClusterDeviceFilters.getDefaultInstance()) return this; + if (jobsBuilder_ == null) { + if (!other.jobs_.isEmpty()) { + if (jobs_.isEmpty()) { + jobs_ = other.jobs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureJobsIsMutable(); + jobs_.addAll(other.jobs_); + } + onChanged(); + } + } else { + if (!other.jobs_.isEmpty()) { + if (jobsBuilder_.isEmpty()) { + jobsBuilder_.dispose(); + jobsBuilder_ = null; + jobs_ = other.jobs_; + bitField0_ = (bitField0_ & ~0x00000001); + jobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getJobsFieldBuilder() : null; + } else { + jobsBuilder_.addAllMessages(other.jobs_); + } + } + } + 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: { + org.tensorflow.proto.JobDeviceFilters m = + input.readMessage( + org.tensorflow.proto.JobDeviceFilters.parser(), + extensionRegistry); + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(m); + } else { + jobsBuilder_.addMessage(m); + } + 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.util.List jobs_ = + java.util.Collections.emptyList(); + private void ensureJobsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + jobs_ = new java.util.ArrayList(jobs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.JobDeviceFilters, org.tensorflow.proto.JobDeviceFilters.Builder, org.tensorflow.proto.JobDeviceFiltersOrBuilder> jobsBuilder_; + + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + public java.util.List getJobsList() { + if (jobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(jobs_); + } else { + return jobsBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + public int getJobsCount() { + if (jobsBuilder_ == null) { + return jobs_.size(); + } else { + return jobsBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + public org.tensorflow.proto.JobDeviceFilters getJobs(int index) { + if (jobsBuilder_ == null) { + return jobs_.get(index); + } else { + return jobsBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + public Builder setJobs( + int index, org.tensorflow.proto.JobDeviceFilters value) { + if (jobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.set(index, value); + onChanged(); + } else { + jobsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + public Builder setJobs( + int index, org.tensorflow.proto.JobDeviceFilters.Builder builderForValue) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.set(index, builderForValue.build()); + onChanged(); + } else { + jobsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + public Builder addJobs(org.tensorflow.proto.JobDeviceFilters value) { + if (jobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.add(value); + onChanged(); + } else { + jobsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + public Builder addJobs( + int index, org.tensorflow.proto.JobDeviceFilters value) { + if (jobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureJobsIsMutable(); + jobs_.add(index, value); + onChanged(); + } else { + jobsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + public Builder addJobs( + org.tensorflow.proto.JobDeviceFilters.Builder builderForValue) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(builderForValue.build()); + onChanged(); + } else { + jobsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + public Builder addJobs( + int index, org.tensorflow.proto.JobDeviceFilters.Builder builderForValue) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.add(index, builderForValue.build()); + onChanged(); + } else { + jobsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + public Builder addAllJobs( + java.lang.Iterable values) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, jobs_); + onChanged(); + } else { + jobsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + public Builder clearJobs() { + if (jobsBuilder_ == null) { + jobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + jobsBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + public Builder removeJobs(int index) { + if (jobsBuilder_ == null) { + ensureJobsIsMutable(); + jobs_.remove(index); + onChanged(); + } else { + jobsBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + public org.tensorflow.proto.JobDeviceFilters.Builder getJobsBuilder( + int index) { + return getJobsFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + public org.tensorflow.proto.JobDeviceFiltersOrBuilder getJobsOrBuilder( + int index) { + if (jobsBuilder_ == null) { + return jobs_.get(index); } else { + return jobsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + public java.util.List + getJobsOrBuilderList() { + if (jobsBuilder_ != null) { + return jobsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(jobs_); + } + } + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + public org.tensorflow.proto.JobDeviceFilters.Builder addJobsBuilder() { + return getJobsFieldBuilder().addBuilder( + org.tensorflow.proto.JobDeviceFilters.getDefaultInstance()); + } + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + public org.tensorflow.proto.JobDeviceFilters.Builder addJobsBuilder( + int index) { + return getJobsFieldBuilder().addBuilder( + index, org.tensorflow.proto.JobDeviceFilters.getDefaultInstance()); + } + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + public java.util.List + getJobsBuilderList() { + return getJobsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.JobDeviceFilters, org.tensorflow.proto.JobDeviceFilters.Builder, org.tensorflow.proto.JobDeviceFiltersOrBuilder> + getJobsFieldBuilder() { + if (jobsBuilder_ == null) { + jobsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.JobDeviceFilters, org.tensorflow.proto.JobDeviceFilters.Builder, org.tensorflow.proto.JobDeviceFiltersOrBuilder>( + jobs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + jobs_ = null; + } + return jobsBuilder_; + } + @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:tensorflow.ClusterDeviceFilters) + } + + // @@protoc_insertion_point(class_scope:tensorflow.ClusterDeviceFilters) + private static final org.tensorflow.proto.ClusterDeviceFilters DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.ClusterDeviceFilters(); + } + + public static org.tensorflow.proto.ClusterDeviceFilters getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterDeviceFilters 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 org.tensorflow.proto.ClusterDeviceFilters getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ClusterDeviceFiltersOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ClusterDeviceFiltersOrBuilder.java new file mode 100644 index 00000000000..b05c17dceb4 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ClusterDeviceFiltersOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/device_filters.proto + +package org.tensorflow.proto; + +public interface ClusterDeviceFiltersOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.ClusterDeviceFilters) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + java.util.List + getJobsList(); + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + org.tensorflow.proto.JobDeviceFilters getJobs(int index); + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + int getJobsCount(); + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + java.util.List + getJobsOrBuilderList(); + /** + * repeated .tensorflow.JobDeviceFilters jobs = 1; + */ + org.tensorflow.proto.JobDeviceFiltersOrBuilder getJobsOrBuilder( + int index); +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ClusterProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ClusterProtos.java similarity index 91% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ClusterProtos.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ClusterProtos.java index af37d726925..1b46df68749 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ClusterProtos.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ClusterProtos.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/cluster.proto -package org.tensorflow.proto.distruntime; +package org.tensorflow.proto; public final class ClusterProtos { private ClusterProtos() {} @@ -43,11 +43,10 @@ public static void registerAllExtensions( "tasks\030\002 \003(\0132\035.tensorflow.JobDef.TasksEnt" + "ry\032,\n\nTasksEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002" + " \001(\t:\0028\001\"-\n\nClusterDef\022\037\n\003job\030\001 \003(\0132\022.te" + - "nsorflow.JobDefB\215\001\n org.tensorflow.proto" + - ".distruntimeB\rClusterProtosP\001ZUgithub.co" + - "m/tensorflow/tensorflow/tensorflow/go/co" + - "re/protobuf/for_core_protos_go_proto\370\001\001b" + - "\006proto3" + "nsorflow.JobDefB\201\001\n\024org.tensorflow.proto" + + "B\rClusterProtosP\001ZUgithub.com/tensorflow" + + "/tensorflow/tensorflow/go/core/protobuf/" + + "for_core_protos_go_proto\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/CodeLocation.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CodeLocation.java similarity index 76% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/CodeLocation.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CodeLocation.java index 28d856a52f3..14591ad3812 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/CodeLocation.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CodeLocation.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug_event.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; /** *
@@ -12,7 +12,7 @@
  *
  * Protobuf type {@code tensorflow.CodeLocation}
  */
-public  final class CodeLocation extends
+public final class CodeLocation extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.CodeLocation)
     CodeLocationOrBuilder {
@@ -38,73 +38,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private CodeLocation(
-      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: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            hostName_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              stackFrameIds_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            stackFrameIds_.add(s);
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
-        }
-      }
-    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-      throw e.setUnfinishedMessage(this);
-    } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
-    } finally {
-      if (((mutable_bitField0_ & 0x00000001) != 0)) {
-        stackFrameIds_ = stackFrameIds_.getUnmodifiableView();
-      }
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_CodeLocation_descriptor;
+    return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_CodeLocation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_CodeLocation_fieldAccessorTable
+    return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_CodeLocation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.util.CodeLocation.class, org.tensorflow.proto.util.CodeLocation.Builder.class);
+            org.tensorflow.proto.CodeLocation.class, org.tensorflow.proto.CodeLocation.Builder.class);
   }
 
   public static final int HOST_NAME_FIELD_NUMBER = 1;
@@ -115,7 +59,9 @@ private CodeLocation(
    * 
* * string host_name = 1; + * @return The hostName. */ + @java.lang.Override public java.lang.String getHostName() { java.lang.Object ref = hostName_; if (ref instanceof java.lang.String) { @@ -134,7 +80,9 @@ public java.lang.String getHostName() { *
* * string host_name = 1; + * @return The bytes for hostName. */ + @java.lang.Override public com.google.protobuf.ByteString getHostNameBytes() { java.lang.Object ref = hostName_; @@ -159,6 +107,7 @@ public java.lang.String getHostName() { *
* * repeated string stack_frame_ids = 2; + * @return A list containing the stackFrameIds. */ public com.google.protobuf.ProtocolStringList getStackFrameIdsList() { @@ -172,6 +121,7 @@ public java.lang.String getHostName() { *
* * repeated string stack_frame_ids = 2; + * @return The count of stackFrameIds. */ public int getStackFrameIdsCount() { return stackFrameIds_.size(); @@ -184,6 +134,8 @@ public int getStackFrameIdsCount() { *
* * repeated string stack_frame_ids = 2; + * @param index The index of the element to return. + * @return The stackFrameIds at the given index. */ public java.lang.String getStackFrameIds(int index) { return stackFrameIds_.get(index); @@ -196,6 +148,8 @@ public java.lang.String getStackFrameIds(int index) { *
* * repeated string stack_frame_ids = 2; + * @param index The index of the value to return. + * @return The bytes of the stackFrameIds at the given index. */ public com.google.protobuf.ByteString getStackFrameIdsBytes(int index) { @@ -216,13 +170,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getHostNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostName_); } for (int i = 0; i < stackFrameIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, stackFrameIds_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -231,7 +185,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getHostNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostName_); } { @@ -242,7 +196,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getStackFrameIdsList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -252,16 +206,16 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.util.CodeLocation)) { + if (!(obj instanceof org.tensorflow.proto.CodeLocation)) { return super.equals(obj); } - org.tensorflow.proto.util.CodeLocation other = (org.tensorflow.proto.util.CodeLocation) obj; + org.tensorflow.proto.CodeLocation other = (org.tensorflow.proto.CodeLocation) obj; if (!getHostName() .equals(other.getHostName())) return false; if (!getStackFrameIdsList() .equals(other.getStackFrameIdsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -278,74 +232,74 @@ public int hashCode() { hash = (37 * hash) + STACK_FRAME_IDS_FIELD_NUMBER; hash = (53 * hash) + getStackFrameIdsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.util.CodeLocation parseFrom( + public static org.tensorflow.proto.CodeLocation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.CodeLocation parseFrom( + public static org.tensorflow.proto.CodeLocation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.CodeLocation parseFrom( + public static org.tensorflow.proto.CodeLocation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.CodeLocation parseFrom( + public static org.tensorflow.proto.CodeLocation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.CodeLocation parseFrom(byte[] data) + public static org.tensorflow.proto.CodeLocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.CodeLocation parseFrom( + public static org.tensorflow.proto.CodeLocation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.CodeLocation parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.CodeLocation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.CodeLocation parseFrom( + public static org.tensorflow.proto.CodeLocation 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 org.tensorflow.proto.util.CodeLocation parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.CodeLocation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.CodeLocation parseDelimitedFrom( + public static org.tensorflow.proto.CodeLocation 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 org.tensorflow.proto.util.CodeLocation parseFrom( + public static org.tensorflow.proto.CodeLocation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.CodeLocation parseFrom( + public static org.tensorflow.proto.CodeLocation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -358,7 +312,7 @@ public static org.tensorflow.proto.util.CodeLocation parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.util.CodeLocation prototype) { + public static Builder newBuilder(org.tensorflow.proto.CodeLocation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -385,34 +339,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.CodeLocation) - org.tensorflow.proto.util.CodeLocationOrBuilder { + org.tensorflow.proto.CodeLocationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_CodeLocation_descriptor; + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_CodeLocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_CodeLocation_fieldAccessorTable + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_CodeLocation_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.util.CodeLocation.class, org.tensorflow.proto.util.CodeLocation.Builder.class); + org.tensorflow.proto.CodeLocation.class, org.tensorflow.proto.CodeLocation.Builder.class); } - // Construct using org.tensorflow.proto.util.CodeLocation.newBuilder() + // Construct using org.tensorflow.proto.CodeLocation.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -427,17 +376,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_CodeLocation_descriptor; + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_CodeLocation_descriptor; } @java.lang.Override - public org.tensorflow.proto.util.CodeLocation getDefaultInstanceForType() { - return org.tensorflow.proto.util.CodeLocation.getDefaultInstance(); + public org.tensorflow.proto.CodeLocation getDefaultInstanceForType() { + return org.tensorflow.proto.CodeLocation.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.util.CodeLocation build() { - org.tensorflow.proto.util.CodeLocation result = buildPartial(); + public org.tensorflow.proto.CodeLocation build() { + org.tensorflow.proto.CodeLocation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -445,8 +394,8 @@ public org.tensorflow.proto.util.CodeLocation build() { } @java.lang.Override - public org.tensorflow.proto.util.CodeLocation buildPartial() { - org.tensorflow.proto.util.CodeLocation result = new org.tensorflow.proto.util.CodeLocation(this); + public org.tensorflow.proto.CodeLocation buildPartial() { + org.tensorflow.proto.CodeLocation result = new org.tensorflow.proto.CodeLocation(this); int from_bitField0_ = bitField0_; result.hostName_ = hostName_; if (((bitField0_ & 0x00000001) != 0)) { @@ -492,16 +441,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.util.CodeLocation) { - return mergeFrom((org.tensorflow.proto.util.CodeLocation)other); + if (other instanceof org.tensorflow.proto.CodeLocation) { + return mergeFrom((org.tensorflow.proto.CodeLocation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.util.CodeLocation other) { - if (other == org.tensorflow.proto.util.CodeLocation.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.CodeLocation other) { + if (other == org.tensorflow.proto.CodeLocation.getDefaultInstance()) return this; if (!other.getHostName().isEmpty()) { hostName_ = other.hostName_; onChanged(); @@ -516,7 +465,7 @@ public Builder mergeFrom(org.tensorflow.proto.util.CodeLocation other) { } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -531,17 +480,41 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.util.CodeLocation parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + hostName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureStackFrameIdsIsMutable(); + stackFrameIds_.add(s); + 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) { - parsedMessage = (org.tensorflow.proto.util.CodeLocation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -553,6 +526,7 @@ public Builder mergeFrom( *
* * string host_name = 1; + * @return The hostName. */ public java.lang.String getHostName() { java.lang.Object ref = hostName_; @@ -572,6 +546,7 @@ public java.lang.String getHostName() { *
* * string host_name = 1; + * @return The bytes for hostName. */ public com.google.protobuf.ByteString getHostNameBytes() { @@ -592,6 +567,8 @@ public java.lang.String getHostName() { *
* * string host_name = 1; + * @param value The hostName to set. + * @return This builder for chaining. */ public Builder setHostName( java.lang.String value) { @@ -609,6 +586,7 @@ public Builder setHostName( * * * string host_name = 1; + * @return This builder for chaining. */ public Builder clearHostName() { @@ -622,6 +600,8 @@ public Builder clearHostName() { * * * string host_name = 1; + * @param value The bytes for hostName to set. + * @return This builder for chaining. */ public Builder setHostNameBytes( com.google.protobuf.ByteString value) { @@ -650,6 +630,7 @@ private void ensureStackFrameIdsIsMutable() { * * * repeated string stack_frame_ids = 2; + * @return A list containing the stackFrameIds. */ public com.google.protobuf.ProtocolStringList getStackFrameIdsList() { @@ -663,6 +644,7 @@ private void ensureStackFrameIdsIsMutable() { * * * repeated string stack_frame_ids = 2; + * @return The count of stackFrameIds. */ public int getStackFrameIdsCount() { return stackFrameIds_.size(); @@ -675,6 +657,8 @@ public int getStackFrameIdsCount() { * * * repeated string stack_frame_ids = 2; + * @param index The index of the element to return. + * @return The stackFrameIds at the given index. */ public java.lang.String getStackFrameIds(int index) { return stackFrameIds_.get(index); @@ -687,6 +671,8 @@ public java.lang.String getStackFrameIds(int index) { * * * repeated string stack_frame_ids = 2; + * @param index The index of the value to return. + * @return The bytes of the stackFrameIds at the given index. */ public com.google.protobuf.ByteString getStackFrameIdsBytes(int index) { @@ -700,6 +686,9 @@ public java.lang.String getStackFrameIds(int index) { * * * repeated string stack_frame_ids = 2; + * @param index The index to set the value at. + * @param value The stackFrameIds to set. + * @return This builder for chaining. */ public Builder setStackFrameIds( int index, java.lang.String value) { @@ -719,6 +708,8 @@ public Builder setStackFrameIds( * * * repeated string stack_frame_ids = 2; + * @param value The stackFrameIds to add. + * @return This builder for chaining. */ public Builder addStackFrameIds( java.lang.String value) { @@ -738,6 +729,8 @@ public Builder addStackFrameIds( * * * repeated string stack_frame_ids = 2; + * @param values The stackFrameIds to add. + * @return This builder for chaining. */ public Builder addAllStackFrameIds( java.lang.Iterable values) { @@ -755,6 +748,7 @@ public Builder addAllStackFrameIds( * * * repeated string stack_frame_ids = 2; + * @return This builder for chaining. */ public Builder clearStackFrameIds() { stackFrameIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -770,6 +764,8 @@ public Builder clearStackFrameIds() { * * * repeated string stack_frame_ids = 2; + * @param value The bytes of the stackFrameIds to add. + * @return This builder for chaining. */ public Builder addStackFrameIdsBytes( com.google.protobuf.ByteString value) { @@ -799,12 +795,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.CodeLocation) - private static final org.tensorflow.proto.util.CodeLocation DEFAULT_INSTANCE; + private static final org.tensorflow.proto.CodeLocation DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.util.CodeLocation(); + DEFAULT_INSTANCE = new org.tensorflow.proto.CodeLocation(); } - public static org.tensorflow.proto.util.CodeLocation getDefaultInstance() { + public static org.tensorflow.proto.CodeLocation getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -815,7 +811,18 @@ public CodeLocation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CodeLocation(input, extensionRegistry); + 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(); } }; @@ -829,7 +836,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.util.CodeLocation getDefaultInstanceForType() { + public org.tensorflow.proto.CodeLocation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/CodeLocationOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CodeLocationOrBuilder.java similarity index 82% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/CodeLocationOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CodeLocationOrBuilder.java index b75306258be..74c15d03196 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/CodeLocationOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CodeLocationOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug_event.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; public interface CodeLocationOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.CodeLocation) @@ -13,6 +13,7 @@ public interface CodeLocationOrBuilder extends * * * string host_name = 1; + * @return The hostName. */ java.lang.String getHostName(); /** @@ -21,6 +22,7 @@ public interface CodeLocationOrBuilder extends * * * string host_name = 1; + * @return The bytes for hostName. */ com.google.protobuf.ByteString getHostNameBytes(); @@ -33,6 +35,7 @@ public interface CodeLocationOrBuilder extends * * * repeated string stack_frame_ids = 2; + * @return A list containing the stackFrameIds. */ java.util.List getStackFrameIdsList(); @@ -44,6 +47,7 @@ public interface CodeLocationOrBuilder extends * * * repeated string stack_frame_ids = 2; + * @return The count of stackFrameIds. */ int getStackFrameIdsCount(); /** @@ -54,6 +58,8 @@ public interface CodeLocationOrBuilder extends * * * repeated string stack_frame_ids = 2; + * @param index The index of the element to return. + * @return The stackFrameIds at the given index. */ java.lang.String getStackFrameIds(int index); /** @@ -64,6 +70,8 @@ public interface CodeLocationOrBuilder extends * * * repeated string stack_frame_ids = 2; + * @param index The index of the value to return. + * @return The bytes of the stackFrameIds at the given index. */ com.google.protobuf.ByteString getStackFrameIdsBytes(int index); diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CollectionDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CollectionDef.java new file mode 100644 index 00000000000..6644d97f6ce --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CollectionDef.java @@ -0,0 +1,4853 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/meta_graph.proto + +package org.tensorflow.proto; + +/** + *
+ * CollectionDef should cover most collections.
+ * To add a user-defined collection, do one of the following:
+ * 1. For simple data types, such as string, int, float:
+ *      tf.add_to_collection("your_collection_name", your_simple_value)
+ *    strings will be stored as bytes_list.
+ * 2. For Protobuf types, there are three ways to add them:
+ *    1) tf.add_to_collection("your_collection_name",
+ *         your_proto.SerializeToString())
+ *       collection_def {
+ *         key: "user_defined_bytes_collection"
+ *         value {
+ *           bytes_list {
+ *             value: "queue_name: \"test_queue\"\n"
+ *           }
+ *         }
+ *       }
+ *  or
+ *    2) tf.add_to_collection("your_collection_name", str(your_proto))
+ *       collection_def {
+ *         key: "user_defined_string_collection"
+ *         value {
+ *          bytes_list {
+ *             value: "\n\ntest_queue"
+ *           }
+ *         }
+ *       }
+ *  or
+ *    3) any_buf = any_pb2.Any()
+ *       tf.add_to_collection("your_collection_name",
+ *         any_buf.Pack(your_proto))
+ *       collection_def {
+ *         key: "user_defined_any_collection"
+ *         value {
+ *           any_list {
+ *             value {
+ *               type_url: "type.googleapis.com/tensorflow.QueueRunnerDef"
+ *               value: "\n\ntest_queue"
+ *             }
+ *           }
+ *         }
+ *       }
+ * 3. For Python objects, implement to_proto() and from_proto(), and register
+ *    them in the following manner:
+ *    ops.register_proto_function("your_collection_name",
+ *                                proto_type,
+ *                                to_proto=YourPythonObject.to_proto,
+ *                                from_proto=YourPythonObject.from_proto)
+ *    These functions will be invoked to serialize and de-serialize the
+ *    collection. For example,
+ *    ops.register_proto_function(ops.GraphKeys.GLOBAL_VARIABLES,
+ *                                proto_type=variable_pb2.VariableDef,
+ *                                to_proto=Variable.to_proto,
+ *                                from_proto=Variable.from_proto)
+ * 
+ * + * Protobuf type {@code tensorflow.CollectionDef} + */ +public final class CollectionDef extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef) + CollectionDefOrBuilder { +private static final long serialVersionUID = 0L; + // Use CollectionDef.newBuilder() to construct. + private CollectionDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CollectionDef() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CollectionDef(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CollectionDef.class, org.tensorflow.proto.CollectionDef.Builder.class); + } + + public interface NodeListOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.CollectionDef.NodeList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string value = 1; + * @return A list containing the value. + */ + java.util.List + getValueList(); + /** + * repeated string value = 1; + * @return The count of value. + */ + int getValueCount(); + /** + * repeated string value = 1; + * @param index The index of the element to return. + * @return The value at the given index. + */ + java.lang.String getValue(int index); + /** + * repeated string value = 1; + * @param index The index of the value to return. + * @return The bytes of the value at the given index. + */ + com.google.protobuf.ByteString + getValueBytes(int index); + } + /** + *
+   * NodeList is used for collecting nodes in graph. For example
+   * collection_def {
+   *   key: "summaries"
+   *   value {
+   *     node_list {
+   *       value: "input_producer/ScalarSummary:0"
+   *       value: "shuffle_batch/ScalarSummary:0"
+   *       value: "ImageSummary:0"
+   *     }
+   *   }
+   * 
+ * + * Protobuf type {@code tensorflow.CollectionDef.NodeList} + */ + public static final class NodeList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef.NodeList) + NodeListOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeList.newBuilder() to construct. + private NodeList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeList() { + value_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodeList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_NodeList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_NodeList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CollectionDef.NodeList.class, org.tensorflow.proto.CollectionDef.NodeList.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList value_; + /** + * repeated string value = 1; + * @return A list containing the value. + */ + public com.google.protobuf.ProtocolStringList + getValueList() { + return value_; + } + /** + * repeated string value = 1; + * @return The count of value. + */ + public int getValueCount() { + return value_.size(); + } + /** + * repeated string value = 1; + * @param index The index of the element to return. + * @return The value at the given index. + */ + public java.lang.String getValue(int index) { + return value_.get(index); + } + /** + * repeated string value = 1; + * @param index The index of the value to return. + * @return The bytes of the value at the given index. + */ + public com.google.protobuf.ByteString + getValueBytes(int index) { + return value_.getByteString(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 < value_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < value_.size(); i++) { + dataSize += computeStringSizeNoTag(value_.getRaw(i)); + } + size += dataSize; + size += 1 * getValueList().size(); + } + 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 org.tensorflow.proto.CollectionDef.NodeList)) { + return super.equals(obj); + } + org.tensorflow.proto.CollectionDef.NodeList other = (org.tensorflow.proto.CollectionDef.NodeList) obj; + + if (!getValueList() + .equals(other.getValueList())) 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 (getValueCount() > 0) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValueList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.CollectionDef.NodeList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CollectionDef.NodeList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CollectionDef.NodeList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CollectionDef.NodeList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CollectionDef.NodeList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CollectionDef.NodeList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CollectionDef.NodeList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CollectionDef.NodeList 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 org.tensorflow.proto.CollectionDef.NodeList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CollectionDef.NodeList 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 org.tensorflow.proto.CollectionDef.NodeList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CollectionDef.NodeList 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(org.tensorflow.proto.CollectionDef.NodeList 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; + } + /** + *
+     * NodeList is used for collecting nodes in graph. For example
+     * collection_def {
+     *   key: "summaries"
+     *   value {
+     *     node_list {
+     *       value: "input_producer/ScalarSummary:0"
+     *       value: "shuffle_batch/ScalarSummary:0"
+     *       value: "ImageSummary:0"
+     *     }
+     *   }
+     * 
+ * + * Protobuf type {@code tensorflow.CollectionDef.NodeList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef.NodeList) + org.tensorflow.proto.CollectionDef.NodeListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_NodeList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_NodeList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CollectionDef.NodeList.class, org.tensorflow.proto.CollectionDef.NodeList.Builder.class); + } + + // Construct using org.tensorflow.proto.CollectionDef.NodeList.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + value_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_NodeList_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.CollectionDef.NodeList getDefaultInstanceForType() { + return org.tensorflow.proto.CollectionDef.NodeList.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.CollectionDef.NodeList build() { + org.tensorflow.proto.CollectionDef.NodeList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.CollectionDef.NodeList buildPartial() { + org.tensorflow.proto.CollectionDef.NodeList result = new org.tensorflow.proto.CollectionDef.NodeList(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + value_ = value_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.value_ = value_; + 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 org.tensorflow.proto.CollectionDef.NodeList) { + return mergeFrom((org.tensorflow.proto.CollectionDef.NodeList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.CollectionDef.NodeList other) { + if (other == org.tensorflow.proto.CollectionDef.NodeList.getDefaultInstance()) return this; + if (!other.value_.isEmpty()) { + if (value_.isEmpty()) { + value_ = other.value_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValueIsMutable(); + value_.addAll(other.value_); + } + 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: { + java.lang.String s = input.readStringRequireUtf8(); + ensureValueIsMutable(); + value_.add(s); + 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.protobuf.LazyStringList value_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureValueIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + value_ = new com.google.protobuf.LazyStringArrayList(value_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string value = 1; + * @return A list containing the value. + */ + public com.google.protobuf.ProtocolStringList + getValueList() { + return value_.getUnmodifiableView(); + } + /** + * repeated string value = 1; + * @return The count of value. + */ + public int getValueCount() { + return value_.size(); + } + /** + * repeated string value = 1; + * @param index The index of the element to return. + * @return The value at the given index. + */ + public java.lang.String getValue(int index) { + return value_.get(index); + } + /** + * repeated string value = 1; + * @param index The index of the value to return. + * @return The bytes of the value at the given index. + */ + public com.google.protobuf.ByteString + getValueBytes(int index) { + return value_.getByteString(index); + } + /** + * repeated string value = 1; + * @param index The index to set the value at. + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueIsMutable(); + value_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string value = 1; + * @param value The value to add. + * @return This builder for chaining. + */ + public Builder addValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueIsMutable(); + value_.add(value); + onChanged(); + return this; + } + /** + * repeated string value = 1; + * @param values The value to add. + * @return This builder for chaining. + */ + public Builder addAllValue( + java.lang.Iterable values) { + ensureValueIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, value_); + onChanged(); + return this; + } + /** + * repeated string value = 1; + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string value = 1; + * @param value The bytes of the value to add. + * @return This builder for chaining. + */ + public Builder addValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValueIsMutable(); + value_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.CollectionDef.NodeList) + } + + // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef.NodeList) + private static final org.tensorflow.proto.CollectionDef.NodeList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.CollectionDef.NodeList(); + } + + public static org.tensorflow.proto.CollectionDef.NodeList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeList 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 org.tensorflow.proto.CollectionDef.NodeList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BytesListOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.CollectionDef.BytesList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated bytes value = 1; + * @return A list containing the value. + */ + java.util.List getValueList(); + /** + * repeated bytes value = 1; + * @return The count of value. + */ + int getValueCount(); + /** + * repeated bytes value = 1; + * @param index The index of the element to return. + * @return The value at the given index. + */ + com.google.protobuf.ByteString getValue(int index); + } + /** + *
+   * BytesList is used for collecting strings and serialized protobufs. For
+   * example:
+   * collection_def {
+   *   key: "trainable_variables"
+   *   value {
+   *     bytes_list {
+   *       value: "\n\017conv1/weights:0\022\024conv1/weights/Assign
+   *              \032\024conv1/weights/read:0"
+   *       value: "\n\016conv1/biases:0\022\023conv1/biases/Assign\032
+   *              \023conv1/biases/read:0"
+   *     }
+   *   }
+   * }
+   * 
+ * + * Protobuf type {@code tensorflow.CollectionDef.BytesList} + */ + public static final class BytesList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef.BytesList) + BytesListOrBuilder { + private static final long serialVersionUID = 0L; + // Use BytesList.newBuilder() to construct. + private BytesList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BytesList() { + value_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BytesList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_BytesList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_BytesList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CollectionDef.BytesList.class, org.tensorflow.proto.CollectionDef.BytesList.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private java.util.List value_; + /** + * repeated bytes value = 1; + * @return A list containing the value. + */ + @java.lang.Override + public java.util.List + getValueList() { + return value_; + } + /** + * repeated bytes value = 1; + * @return The count of value. + */ + public int getValueCount() { + return value_.size(); + } + /** + * repeated bytes value = 1; + * @param index The index of the element to return. + * @return The value at the given index. + */ + public com.google.protobuf.ByteString getValue(int index) { + return value_.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 < value_.size(); i++) { + output.writeBytes(1, value_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < value_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(value_.get(i)); + } + size += dataSize; + size += 1 * getValueList().size(); + } + 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 org.tensorflow.proto.CollectionDef.BytesList)) { + return super.equals(obj); + } + org.tensorflow.proto.CollectionDef.BytesList other = (org.tensorflow.proto.CollectionDef.BytesList) obj; + + if (!getValueList() + .equals(other.getValueList())) 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 (getValueCount() > 0) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValueList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.CollectionDef.BytesList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CollectionDef.BytesList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CollectionDef.BytesList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CollectionDef.BytesList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CollectionDef.BytesList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CollectionDef.BytesList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CollectionDef.BytesList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CollectionDef.BytesList 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 org.tensorflow.proto.CollectionDef.BytesList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CollectionDef.BytesList 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 org.tensorflow.proto.CollectionDef.BytesList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CollectionDef.BytesList 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(org.tensorflow.proto.CollectionDef.BytesList 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; + } + /** + *
+     * BytesList is used for collecting strings and serialized protobufs. For
+     * example:
+     * collection_def {
+     *   key: "trainable_variables"
+     *   value {
+     *     bytes_list {
+     *       value: "\n\017conv1/weights:0\022\024conv1/weights/Assign
+     *              \032\024conv1/weights/read:0"
+     *       value: "\n\016conv1/biases:0\022\023conv1/biases/Assign\032
+     *              \023conv1/biases/read:0"
+     *     }
+     *   }
+     * }
+     * 
+ * + * Protobuf type {@code tensorflow.CollectionDef.BytesList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef.BytesList) + org.tensorflow.proto.CollectionDef.BytesListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_BytesList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_BytesList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CollectionDef.BytesList.class, org.tensorflow.proto.CollectionDef.BytesList.Builder.class); + } + + // Construct using org.tensorflow.proto.CollectionDef.BytesList.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + value_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_BytesList_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.CollectionDef.BytesList getDefaultInstanceForType() { + return org.tensorflow.proto.CollectionDef.BytesList.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.CollectionDef.BytesList build() { + org.tensorflow.proto.CollectionDef.BytesList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.CollectionDef.BytesList buildPartial() { + org.tensorflow.proto.CollectionDef.BytesList result = new org.tensorflow.proto.CollectionDef.BytesList(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + value_ = java.util.Collections.unmodifiableList(value_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.value_ = value_; + 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 org.tensorflow.proto.CollectionDef.BytesList) { + return mergeFrom((org.tensorflow.proto.CollectionDef.BytesList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.CollectionDef.BytesList other) { + if (other == org.tensorflow.proto.CollectionDef.BytesList.getDefaultInstance()) return this; + if (!other.value_.isEmpty()) { + if (value_.isEmpty()) { + value_ = other.value_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValueIsMutable(); + value_.addAll(other.value_); + } + 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: { + com.google.protobuf.ByteString v = input.readBytes(); + ensureValueIsMutable(); + value_.add(v); + 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.util.List value_ = java.util.Collections.emptyList(); + private void ensureValueIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + value_ = new java.util.ArrayList(value_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated bytes value = 1; + * @return A list containing the value. + */ + public java.util.List + getValueList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(value_) : value_; + } + /** + * repeated bytes value = 1; + * @return The count of value. + */ + public int getValueCount() { + return value_.size(); + } + /** + * repeated bytes value = 1; + * @param index The index of the element to return. + * @return The value at the given index. + */ + public com.google.protobuf.ByteString getValue(int index) { + return value_.get(index); + } + /** + * repeated bytes value = 1; + * @param index The index to set the value at. + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue( + int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueIsMutable(); + value_.set(index, value); + onChanged(); + return this; + } + /** + * repeated bytes value = 1; + * @param value The value to add. + * @return This builder for chaining. + */ + public Builder addValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueIsMutable(); + value_.add(value); + onChanged(); + return this; + } + /** + * repeated bytes value = 1; + * @param values The value to add. + * @return This builder for chaining. + */ + public Builder addAllValue( + java.lang.Iterable values) { + ensureValueIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, value_); + onChanged(); + return this; + } + /** + * repeated bytes value = 1; + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = java.util.Collections.emptyList(); + bitField0_ = (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:tensorflow.CollectionDef.BytesList) + } + + // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef.BytesList) + private static final org.tensorflow.proto.CollectionDef.BytesList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.CollectionDef.BytesList(); + } + + public static org.tensorflow.proto.CollectionDef.BytesList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BytesList 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 org.tensorflow.proto.CollectionDef.BytesList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface Int64ListOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.CollectionDef.Int64List) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated int64 value = 1 [packed = true]; + * @return A list containing the value. + */ + java.util.List getValueList(); + /** + * repeated int64 value = 1 [packed = true]; + * @return The count of value. + */ + int getValueCount(); + /** + * repeated int64 value = 1 [packed = true]; + * @param index The index of the element to return. + * @return The value at the given index. + */ + long getValue(int index); + } + /** + *
+   * Int64List is used for collecting int, int64 and long values.
+   * 
+ * + * Protobuf type {@code tensorflow.CollectionDef.Int64List} + */ + public static final class Int64List extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef.Int64List) + Int64ListOrBuilder { + private static final long serialVersionUID = 0L; + // Use Int64List.newBuilder() to construct. + private Int64List(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Int64List() { + value_ = emptyLongList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Int64List(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_Int64List_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_Int64List_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CollectionDef.Int64List.class, org.tensorflow.proto.CollectionDef.Int64List.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private com.google.protobuf.Internal.LongList value_; + /** + * repeated int64 value = 1 [packed = true]; + * @return A list containing the value. + */ + @java.lang.Override + public java.util.List + getValueList() { + return value_; + } + /** + * repeated int64 value = 1 [packed = true]; + * @return The count of value. + */ + public int getValueCount() { + return value_.size(); + } + /** + * repeated int64 value = 1 [packed = true]; + * @param index The index of the element to return. + * @return The value at the given index. + */ + public long getValue(int index) { + return value_.getLong(index); + } + private int valueMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (getValueList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(valueMemoizedSerializedSize); + } + for (int i = 0; i < value_.size(); i++) { + output.writeInt64NoTag(value_.getLong(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < value_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(value_.getLong(i)); + } + size += dataSize; + if (!getValueList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + valueMemoizedSerializedSize = dataSize; + } + 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 org.tensorflow.proto.CollectionDef.Int64List)) { + return super.equals(obj); + } + org.tensorflow.proto.CollectionDef.Int64List other = (org.tensorflow.proto.CollectionDef.Int64List) obj; + + if (!getValueList() + .equals(other.getValueList())) 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 (getValueCount() > 0) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValueList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.CollectionDef.Int64List parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CollectionDef.Int64List parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CollectionDef.Int64List parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CollectionDef.Int64List parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CollectionDef.Int64List parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CollectionDef.Int64List parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CollectionDef.Int64List parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CollectionDef.Int64List 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 org.tensorflow.proto.CollectionDef.Int64List parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CollectionDef.Int64List 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 org.tensorflow.proto.CollectionDef.Int64List parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CollectionDef.Int64List 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(org.tensorflow.proto.CollectionDef.Int64List 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; + } + /** + *
+     * Int64List is used for collecting int, int64 and long values.
+     * 
+ * + * Protobuf type {@code tensorflow.CollectionDef.Int64List} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef.Int64List) + org.tensorflow.proto.CollectionDef.Int64ListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_Int64List_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_Int64List_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CollectionDef.Int64List.class, org.tensorflow.proto.CollectionDef.Int64List.Builder.class); + } + + // Construct using org.tensorflow.proto.CollectionDef.Int64List.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + value_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_Int64List_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.CollectionDef.Int64List getDefaultInstanceForType() { + return org.tensorflow.proto.CollectionDef.Int64List.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.CollectionDef.Int64List build() { + org.tensorflow.proto.CollectionDef.Int64List result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.CollectionDef.Int64List buildPartial() { + org.tensorflow.proto.CollectionDef.Int64List result = new org.tensorflow.proto.CollectionDef.Int64List(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + value_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.value_ = value_; + 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 org.tensorflow.proto.CollectionDef.Int64List) { + return mergeFrom((org.tensorflow.proto.CollectionDef.Int64List)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.CollectionDef.Int64List other) { + if (other == org.tensorflow.proto.CollectionDef.Int64List.getDefaultInstance()) return this; + if (!other.value_.isEmpty()) { + if (value_.isEmpty()) { + value_ = other.value_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValueIsMutable(); + value_.addAll(other.value_); + } + 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 8: { + long v = input.readInt64(); + ensureValueIsMutable(); + value_.addLong(v); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureValueIsMutable(); + while (input.getBytesUntilLimit() > 0) { + value_.addLong(input.readInt64()); + } + input.popLimit(limit); + 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.protobuf.Internal.LongList value_ = emptyLongList(); + private void ensureValueIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + value_ = mutableCopy(value_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated int64 value = 1 [packed = true]; + * @return A list containing the value. + */ + public java.util.List + getValueList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(value_) : value_; + } + /** + * repeated int64 value = 1 [packed = true]; + * @return The count of value. + */ + public int getValueCount() { + return value_.size(); + } + /** + * repeated int64 value = 1 [packed = true]; + * @param index The index of the element to return. + * @return The value at the given index. + */ + public long getValue(int index) { + return value_.getLong(index); + } + /** + * repeated int64 value = 1 [packed = true]; + * @param index The index to set the value at. + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue( + int index, long value) { + ensureValueIsMutable(); + value_.setLong(index, value); + onChanged(); + return this; + } + /** + * repeated int64 value = 1 [packed = true]; + * @param value The value to add. + * @return This builder for chaining. + */ + public Builder addValue(long value) { + ensureValueIsMutable(); + value_.addLong(value); + onChanged(); + return this; + } + /** + * repeated int64 value = 1 [packed = true]; + * @param values The value to add. + * @return This builder for chaining. + */ + public Builder addAllValue( + java.lang.Iterable values) { + ensureValueIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, value_); + onChanged(); + return this; + } + /** + * repeated int64 value = 1 [packed = true]; + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = emptyLongList(); + bitField0_ = (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:tensorflow.CollectionDef.Int64List) + } + + // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef.Int64List) + private static final org.tensorflow.proto.CollectionDef.Int64List DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.CollectionDef.Int64List(); + } + + public static org.tensorflow.proto.CollectionDef.Int64List getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Int64List 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 org.tensorflow.proto.CollectionDef.Int64List getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FloatListOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.CollectionDef.FloatList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated float value = 1 [packed = true]; + * @return A list containing the value. + */ + java.util.List getValueList(); + /** + * repeated float value = 1 [packed = true]; + * @return The count of value. + */ + int getValueCount(); + /** + * repeated float value = 1 [packed = true]; + * @param index The index of the element to return. + * @return The value at the given index. + */ + float getValue(int index); + } + /** + *
+   * FloatList is used for collecting float values.
+   * 
+ * + * Protobuf type {@code tensorflow.CollectionDef.FloatList} + */ + public static final class FloatList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef.FloatList) + FloatListOrBuilder { + private static final long serialVersionUID = 0L; + // Use FloatList.newBuilder() to construct. + private FloatList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FloatList() { + value_ = emptyFloatList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FloatList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_FloatList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_FloatList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CollectionDef.FloatList.class, org.tensorflow.proto.CollectionDef.FloatList.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private com.google.protobuf.Internal.FloatList value_; + /** + * repeated float value = 1 [packed = true]; + * @return A list containing the value. + */ + @java.lang.Override + public java.util.List + getValueList() { + return value_; + } + /** + * repeated float value = 1 [packed = true]; + * @return The count of value. + */ + public int getValueCount() { + return value_.size(); + } + /** + * repeated float value = 1 [packed = true]; + * @param index The index of the element to return. + * @return The value at the given index. + */ + public float getValue(int index) { + return value_.getFloat(index); + } + private int valueMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (getValueList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(valueMemoizedSerializedSize); + } + for (int i = 0; i < value_.size(); i++) { + output.writeFloatNoTag(value_.getFloat(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + dataSize = 4 * getValueList().size(); + size += dataSize; + if (!getValueList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + valueMemoizedSerializedSize = dataSize; + } + 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 org.tensorflow.proto.CollectionDef.FloatList)) { + return super.equals(obj); + } + org.tensorflow.proto.CollectionDef.FloatList other = (org.tensorflow.proto.CollectionDef.FloatList) obj; + + if (!getValueList() + .equals(other.getValueList())) 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 (getValueCount() > 0) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValueList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.CollectionDef.FloatList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CollectionDef.FloatList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CollectionDef.FloatList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CollectionDef.FloatList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CollectionDef.FloatList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CollectionDef.FloatList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CollectionDef.FloatList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CollectionDef.FloatList 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 org.tensorflow.proto.CollectionDef.FloatList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CollectionDef.FloatList 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 org.tensorflow.proto.CollectionDef.FloatList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CollectionDef.FloatList 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(org.tensorflow.proto.CollectionDef.FloatList 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; + } + /** + *
+     * FloatList is used for collecting float values.
+     * 
+ * + * Protobuf type {@code tensorflow.CollectionDef.FloatList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef.FloatList) + org.tensorflow.proto.CollectionDef.FloatListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_FloatList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_FloatList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CollectionDef.FloatList.class, org.tensorflow.proto.CollectionDef.FloatList.Builder.class); + } + + // Construct using org.tensorflow.proto.CollectionDef.FloatList.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + value_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_FloatList_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.CollectionDef.FloatList getDefaultInstanceForType() { + return org.tensorflow.proto.CollectionDef.FloatList.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.CollectionDef.FloatList build() { + org.tensorflow.proto.CollectionDef.FloatList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.CollectionDef.FloatList buildPartial() { + org.tensorflow.proto.CollectionDef.FloatList result = new org.tensorflow.proto.CollectionDef.FloatList(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + value_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.value_ = value_; + 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 org.tensorflow.proto.CollectionDef.FloatList) { + return mergeFrom((org.tensorflow.proto.CollectionDef.FloatList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.CollectionDef.FloatList other) { + if (other == org.tensorflow.proto.CollectionDef.FloatList.getDefaultInstance()) return this; + if (!other.value_.isEmpty()) { + if (value_.isEmpty()) { + value_ = other.value_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValueIsMutable(); + value_.addAll(other.value_); + } + 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 13: { + float v = input.readFloat(); + ensureValueIsMutable(); + value_.addFloat(v); + break; + } // case 13 + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureValueIsMutable(); + while (input.getBytesUntilLimit() > 0) { + value_.addFloat(input.readFloat()); + } + input.popLimit(limit); + 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.protobuf.Internal.FloatList value_ = emptyFloatList(); + private void ensureValueIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + value_ = mutableCopy(value_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated float value = 1 [packed = true]; + * @return A list containing the value. + */ + public java.util.List + getValueList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(value_) : value_; + } + /** + * repeated float value = 1 [packed = true]; + * @return The count of value. + */ + public int getValueCount() { + return value_.size(); + } + /** + * repeated float value = 1 [packed = true]; + * @param index The index of the element to return. + * @return The value at the given index. + */ + public float getValue(int index) { + return value_.getFloat(index); + } + /** + * repeated float value = 1 [packed = true]; + * @param index The index to set the value at. + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue( + int index, float value) { + ensureValueIsMutable(); + value_.setFloat(index, value); + onChanged(); + return this; + } + /** + * repeated float value = 1 [packed = true]; + * @param value The value to add. + * @return This builder for chaining. + */ + public Builder addValue(float value) { + ensureValueIsMutable(); + value_.addFloat(value); + onChanged(); + return this; + } + /** + * repeated float value = 1 [packed = true]; + * @param values The value to add. + * @return This builder for chaining. + */ + public Builder addAllValue( + java.lang.Iterable values) { + ensureValueIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, value_); + onChanged(); + return this; + } + /** + * repeated float value = 1 [packed = true]; + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = emptyFloatList(); + bitField0_ = (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:tensorflow.CollectionDef.FloatList) + } + + // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef.FloatList) + private static final org.tensorflow.proto.CollectionDef.FloatList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.CollectionDef.FloatList(); + } + + public static org.tensorflow.proto.CollectionDef.FloatList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FloatList 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 org.tensorflow.proto.CollectionDef.FloatList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AnyListOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.CollectionDef.AnyList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .google.protobuf.Any value = 1; + */ + java.util.List + getValueList(); + /** + * repeated .google.protobuf.Any value = 1; + */ + com.google.protobuf.Any getValue(int index); + /** + * repeated .google.protobuf.Any value = 1; + */ + int getValueCount(); + /** + * repeated .google.protobuf.Any value = 1; + */ + java.util.List + getValueOrBuilderList(); + /** + * repeated .google.protobuf.Any value = 1; + */ + com.google.protobuf.AnyOrBuilder getValueOrBuilder( + int index); + } + /** + *
+   * AnyList is used for collecting Any protos.
+   * 
+ * + * Protobuf type {@code tensorflow.CollectionDef.AnyList} + */ + public static final class AnyList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef.AnyList) + AnyListOrBuilder { + private static final long serialVersionUID = 0L; + // Use AnyList.newBuilder() to construct. + private AnyList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AnyList() { + value_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AnyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_AnyList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_AnyList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CollectionDef.AnyList.class, org.tensorflow.proto.CollectionDef.AnyList.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private java.util.List value_; + /** + * repeated .google.protobuf.Any value = 1; + */ + @java.lang.Override + public java.util.List getValueList() { + return value_; + } + /** + * repeated .google.protobuf.Any value = 1; + */ + @java.lang.Override + public java.util.List + getValueOrBuilderList() { + return value_; + } + /** + * repeated .google.protobuf.Any value = 1; + */ + @java.lang.Override + public int getValueCount() { + return value_.size(); + } + /** + * repeated .google.protobuf.Any value = 1; + */ + @java.lang.Override + public com.google.protobuf.Any getValue(int index) { + return value_.get(index); + } + /** + * repeated .google.protobuf.Any value = 1; + */ + @java.lang.Override + public com.google.protobuf.AnyOrBuilder getValueOrBuilder( + int index) { + return value_.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 < value_.size(); i++) { + output.writeMessage(1, value_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < value_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, value_.get(i)); + } + 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 org.tensorflow.proto.CollectionDef.AnyList)) { + return super.equals(obj); + } + org.tensorflow.proto.CollectionDef.AnyList other = (org.tensorflow.proto.CollectionDef.AnyList) obj; + + if (!getValueList() + .equals(other.getValueList())) 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 (getValueCount() > 0) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValueList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.CollectionDef.AnyList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CollectionDef.AnyList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CollectionDef.AnyList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CollectionDef.AnyList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CollectionDef.AnyList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CollectionDef.AnyList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CollectionDef.AnyList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CollectionDef.AnyList 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 org.tensorflow.proto.CollectionDef.AnyList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CollectionDef.AnyList 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 org.tensorflow.proto.CollectionDef.AnyList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CollectionDef.AnyList 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(org.tensorflow.proto.CollectionDef.AnyList 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; + } + /** + *
+     * AnyList is used for collecting Any protos.
+     * 
+ * + * Protobuf type {@code tensorflow.CollectionDef.AnyList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef.AnyList) + org.tensorflow.proto.CollectionDef.AnyListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_AnyList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_AnyList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CollectionDef.AnyList.class, org.tensorflow.proto.CollectionDef.AnyList.Builder.class); + } + + // Construct using org.tensorflow.proto.CollectionDef.AnyList.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (valueBuilder_ == null) { + value_ = java.util.Collections.emptyList(); + } else { + value_ = null; + valueBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_AnyList_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.CollectionDef.AnyList getDefaultInstanceForType() { + return org.tensorflow.proto.CollectionDef.AnyList.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.CollectionDef.AnyList build() { + org.tensorflow.proto.CollectionDef.AnyList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.CollectionDef.AnyList buildPartial() { + org.tensorflow.proto.CollectionDef.AnyList result = new org.tensorflow.proto.CollectionDef.AnyList(this); + int from_bitField0_ = bitField0_; + if (valueBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + value_ = java.util.Collections.unmodifiableList(value_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.value_ = value_; + } else { + result.value_ = valueBuilder_.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 org.tensorflow.proto.CollectionDef.AnyList) { + return mergeFrom((org.tensorflow.proto.CollectionDef.AnyList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.CollectionDef.AnyList other) { + if (other == org.tensorflow.proto.CollectionDef.AnyList.getDefaultInstance()) return this; + if (valueBuilder_ == null) { + if (!other.value_.isEmpty()) { + if (value_.isEmpty()) { + value_ = other.value_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValueIsMutable(); + value_.addAll(other.value_); + } + onChanged(); + } + } else { + if (!other.value_.isEmpty()) { + if (valueBuilder_.isEmpty()) { + valueBuilder_.dispose(); + valueBuilder_ = null; + value_ = other.value_; + bitField0_ = (bitField0_ & ~0x00000001); + valueBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValueFieldBuilder() : null; + } else { + valueBuilder_.addAllMessages(other.value_); + } + } + } + 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.Any m = + input.readMessage( + com.google.protobuf.Any.parser(), + extensionRegistry); + if (valueBuilder_ == null) { + ensureValueIsMutable(); + value_.add(m); + } else { + valueBuilder_.addMessage(m); + } + 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.util.List value_ = + java.util.Collections.emptyList(); + private void ensureValueIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + value_ = new java.util.ArrayList(value_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> valueBuilder_; + + /** + * repeated .google.protobuf.Any value = 1; + */ + public java.util.List getValueList() { + if (valueBuilder_ == null) { + return java.util.Collections.unmodifiableList(value_); + } else { + return valueBuilder_.getMessageList(); + } + } + /** + * repeated .google.protobuf.Any value = 1; + */ + public int getValueCount() { + if (valueBuilder_ == null) { + return value_.size(); + } else { + return valueBuilder_.getCount(); + } + } + /** + * repeated .google.protobuf.Any value = 1; + */ + public com.google.protobuf.Any getValue(int index) { + if (valueBuilder_ == null) { + return value_.get(index); + } else { + return valueBuilder_.getMessage(index); + } + } + /** + * repeated .google.protobuf.Any value = 1; + */ + public Builder setValue( + int index, com.google.protobuf.Any value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueIsMutable(); + value_.set(index, value); + onChanged(); + } else { + valueBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .google.protobuf.Any value = 1; + */ + public Builder setValue( + int index, com.google.protobuf.Any.Builder builderForValue) { + if (valueBuilder_ == null) { + ensureValueIsMutable(); + value_.set(index, builderForValue.build()); + onChanged(); + } else { + valueBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .google.protobuf.Any value = 1; + */ + public Builder addValue(com.google.protobuf.Any value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueIsMutable(); + value_.add(value); + onChanged(); + } else { + valueBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .google.protobuf.Any value = 1; + */ + public Builder addValue( + int index, com.google.protobuf.Any value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueIsMutable(); + value_.add(index, value); + onChanged(); + } else { + valueBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .google.protobuf.Any value = 1; + */ + public Builder addValue( + com.google.protobuf.Any.Builder builderForValue) { + if (valueBuilder_ == null) { + ensureValueIsMutable(); + value_.add(builderForValue.build()); + onChanged(); + } else { + valueBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .google.protobuf.Any value = 1; + */ + public Builder addValue( + int index, com.google.protobuf.Any.Builder builderForValue) { + if (valueBuilder_ == null) { + ensureValueIsMutable(); + value_.add(index, builderForValue.build()); + onChanged(); + } else { + valueBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .google.protobuf.Any value = 1; + */ + public Builder addAllValue( + java.lang.Iterable values) { + if (valueBuilder_ == null) { + ensureValueIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, value_); + onChanged(); + } else { + valueBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .google.protobuf.Any value = 1; + */ + public Builder clearValue() { + if (valueBuilder_ == null) { + value_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + valueBuilder_.clear(); + } + return this; + } + /** + * repeated .google.protobuf.Any value = 1; + */ + public Builder removeValue(int index) { + if (valueBuilder_ == null) { + ensureValueIsMutable(); + value_.remove(index); + onChanged(); + } else { + valueBuilder_.remove(index); + } + return this; + } + /** + * repeated .google.protobuf.Any value = 1; + */ + public com.google.protobuf.Any.Builder getValueBuilder( + int index) { + return getValueFieldBuilder().getBuilder(index); + } + /** + * repeated .google.protobuf.Any value = 1; + */ + public com.google.protobuf.AnyOrBuilder getValueOrBuilder( + int index) { + if (valueBuilder_ == null) { + return value_.get(index); } else { + return valueBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .google.protobuf.Any value = 1; + */ + public java.util.List + getValueOrBuilderList() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(value_); + } + } + /** + * repeated .google.protobuf.Any value = 1; + */ + public com.google.protobuf.Any.Builder addValueBuilder() { + return getValueFieldBuilder().addBuilder( + com.google.protobuf.Any.getDefaultInstance()); + } + /** + * repeated .google.protobuf.Any value = 1; + */ + public com.google.protobuf.Any.Builder addValueBuilder( + int index) { + return getValueFieldBuilder().addBuilder( + index, com.google.protobuf.Any.getDefaultInstance()); + } + /** + * repeated .google.protobuf.Any value = 1; + */ + public java.util.List + getValueBuilderList() { + return getValueFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( + value_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + value_ = null; + } + return valueBuilder_; + } + @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:tensorflow.CollectionDef.AnyList) + } + + // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef.AnyList) + private static final org.tensorflow.proto.CollectionDef.AnyList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.CollectionDef.AnyList(); + } + + public static org.tensorflow.proto.CollectionDef.AnyList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnyList 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 org.tensorflow.proto.CollectionDef.AnyList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int kindCase_ = 0; + private java.lang.Object kind_; + public enum KindCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + NODE_LIST(1), + BYTES_LIST(2), + INT64_LIST(3), + FLOAT_LIST(4), + ANY_LIST(5), + KIND_NOT_SET(0); + private final int value; + private KindCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static KindCase valueOf(int value) { + return forNumber(value); + } + + public static KindCase forNumber(int value) { + switch (value) { + case 1: return NODE_LIST; + case 2: return BYTES_LIST; + case 3: return INT64_LIST; + case 4: return FLOAT_LIST; + case 5: return ANY_LIST; + case 0: return KIND_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); + } + + public static final int NODE_LIST_FIELD_NUMBER = 1; + /** + * .tensorflow.CollectionDef.NodeList node_list = 1; + * @return Whether the nodeList field is set. + */ + @java.lang.Override + public boolean hasNodeList() { + return kindCase_ == 1; + } + /** + * .tensorflow.CollectionDef.NodeList node_list = 1; + * @return The nodeList. + */ + @java.lang.Override + public org.tensorflow.proto.CollectionDef.NodeList getNodeList() { + if (kindCase_ == 1) { + return (org.tensorflow.proto.CollectionDef.NodeList) kind_; + } + return org.tensorflow.proto.CollectionDef.NodeList.getDefaultInstance(); + } + /** + * .tensorflow.CollectionDef.NodeList node_list = 1; + */ + @java.lang.Override + public org.tensorflow.proto.CollectionDef.NodeListOrBuilder getNodeListOrBuilder() { + if (kindCase_ == 1) { + return (org.tensorflow.proto.CollectionDef.NodeList) kind_; + } + return org.tensorflow.proto.CollectionDef.NodeList.getDefaultInstance(); + } + + public static final int BYTES_LIST_FIELD_NUMBER = 2; + /** + * .tensorflow.CollectionDef.BytesList bytes_list = 2; + * @return Whether the bytesList field is set. + */ + @java.lang.Override + public boolean hasBytesList() { + return kindCase_ == 2; + } + /** + * .tensorflow.CollectionDef.BytesList bytes_list = 2; + * @return The bytesList. + */ + @java.lang.Override + public org.tensorflow.proto.CollectionDef.BytesList getBytesList() { + if (kindCase_ == 2) { + return (org.tensorflow.proto.CollectionDef.BytesList) kind_; + } + return org.tensorflow.proto.CollectionDef.BytesList.getDefaultInstance(); + } + /** + * .tensorflow.CollectionDef.BytesList bytes_list = 2; + */ + @java.lang.Override + public org.tensorflow.proto.CollectionDef.BytesListOrBuilder getBytesListOrBuilder() { + if (kindCase_ == 2) { + return (org.tensorflow.proto.CollectionDef.BytesList) kind_; + } + return org.tensorflow.proto.CollectionDef.BytesList.getDefaultInstance(); + } + + public static final int INT64_LIST_FIELD_NUMBER = 3; + /** + * .tensorflow.CollectionDef.Int64List int64_list = 3; + * @return Whether the int64List field is set. + */ + @java.lang.Override + public boolean hasInt64List() { + return kindCase_ == 3; + } + /** + * .tensorflow.CollectionDef.Int64List int64_list = 3; + * @return The int64List. + */ + @java.lang.Override + public org.tensorflow.proto.CollectionDef.Int64List getInt64List() { + if (kindCase_ == 3) { + return (org.tensorflow.proto.CollectionDef.Int64List) kind_; + } + return org.tensorflow.proto.CollectionDef.Int64List.getDefaultInstance(); + } + /** + * .tensorflow.CollectionDef.Int64List int64_list = 3; + */ + @java.lang.Override + public org.tensorflow.proto.CollectionDef.Int64ListOrBuilder getInt64ListOrBuilder() { + if (kindCase_ == 3) { + return (org.tensorflow.proto.CollectionDef.Int64List) kind_; + } + return org.tensorflow.proto.CollectionDef.Int64List.getDefaultInstance(); + } + + public static final int FLOAT_LIST_FIELD_NUMBER = 4; + /** + * .tensorflow.CollectionDef.FloatList float_list = 4; + * @return Whether the floatList field is set. + */ + @java.lang.Override + public boolean hasFloatList() { + return kindCase_ == 4; + } + /** + * .tensorflow.CollectionDef.FloatList float_list = 4; + * @return The floatList. + */ + @java.lang.Override + public org.tensorflow.proto.CollectionDef.FloatList getFloatList() { + if (kindCase_ == 4) { + return (org.tensorflow.proto.CollectionDef.FloatList) kind_; + } + return org.tensorflow.proto.CollectionDef.FloatList.getDefaultInstance(); + } + /** + * .tensorflow.CollectionDef.FloatList float_list = 4; + */ + @java.lang.Override + public org.tensorflow.proto.CollectionDef.FloatListOrBuilder getFloatListOrBuilder() { + if (kindCase_ == 4) { + return (org.tensorflow.proto.CollectionDef.FloatList) kind_; + } + return org.tensorflow.proto.CollectionDef.FloatList.getDefaultInstance(); + } + + public static final int ANY_LIST_FIELD_NUMBER = 5; + /** + * .tensorflow.CollectionDef.AnyList any_list = 5; + * @return Whether the anyList field is set. + */ + @java.lang.Override + public boolean hasAnyList() { + return kindCase_ == 5; + } + /** + * .tensorflow.CollectionDef.AnyList any_list = 5; + * @return The anyList. + */ + @java.lang.Override + public org.tensorflow.proto.CollectionDef.AnyList getAnyList() { + if (kindCase_ == 5) { + return (org.tensorflow.proto.CollectionDef.AnyList) kind_; + } + return org.tensorflow.proto.CollectionDef.AnyList.getDefaultInstance(); + } + /** + * .tensorflow.CollectionDef.AnyList any_list = 5; + */ + @java.lang.Override + public org.tensorflow.proto.CollectionDef.AnyListOrBuilder getAnyListOrBuilder() { + if (kindCase_ == 5) { + return (org.tensorflow.proto.CollectionDef.AnyList) kind_; + } + return org.tensorflow.proto.CollectionDef.AnyList.getDefaultInstance(); + } + + 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 (kindCase_ == 1) { + output.writeMessage(1, (org.tensorflow.proto.CollectionDef.NodeList) kind_); + } + if (kindCase_ == 2) { + output.writeMessage(2, (org.tensorflow.proto.CollectionDef.BytesList) kind_); + } + if (kindCase_ == 3) { + output.writeMessage(3, (org.tensorflow.proto.CollectionDef.Int64List) kind_); + } + if (kindCase_ == 4) { + output.writeMessage(4, (org.tensorflow.proto.CollectionDef.FloatList) kind_); + } + if (kindCase_ == 5) { + output.writeMessage(5, (org.tensorflow.proto.CollectionDef.AnyList) kind_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (kindCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (org.tensorflow.proto.CollectionDef.NodeList) kind_); + } + if (kindCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (org.tensorflow.proto.CollectionDef.BytesList) kind_); + } + if (kindCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (org.tensorflow.proto.CollectionDef.Int64List) kind_); + } + if (kindCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (org.tensorflow.proto.CollectionDef.FloatList) kind_); + } + if (kindCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (org.tensorflow.proto.CollectionDef.AnyList) kind_); + } + 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 org.tensorflow.proto.CollectionDef)) { + return super.equals(obj); + } + org.tensorflow.proto.CollectionDef other = (org.tensorflow.proto.CollectionDef) obj; + + if (!getKindCase().equals(other.getKindCase())) return false; + switch (kindCase_) { + case 1: + if (!getNodeList() + .equals(other.getNodeList())) return false; + break; + case 2: + if (!getBytesList() + .equals(other.getBytesList())) return false; + break; + case 3: + if (!getInt64List() + .equals(other.getInt64List())) return false; + break; + case 4: + if (!getFloatList() + .equals(other.getFloatList())) return false; + break; + case 5: + if (!getAnyList() + .equals(other.getAnyList())) return false; + break; + case 0: + default: + } + 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(); + switch (kindCase_) { + case 1: + hash = (37 * hash) + NODE_LIST_FIELD_NUMBER; + hash = (53 * hash) + getNodeList().hashCode(); + break; + case 2: + hash = (37 * hash) + BYTES_LIST_FIELD_NUMBER; + hash = (53 * hash) + getBytesList().hashCode(); + break; + case 3: + hash = (37 * hash) + INT64_LIST_FIELD_NUMBER; + hash = (53 * hash) + getInt64List().hashCode(); + break; + case 4: + hash = (37 * hash) + FLOAT_LIST_FIELD_NUMBER; + hash = (53 * hash) + getFloatList().hashCode(); + break; + case 5: + hash = (37 * hash) + ANY_LIST_FIELD_NUMBER; + hash = (53 * hash) + getAnyList().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.CollectionDef parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CollectionDef parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CollectionDef parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CollectionDef parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CollectionDef parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CollectionDef parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CollectionDef parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CollectionDef 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 org.tensorflow.proto.CollectionDef parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CollectionDef 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 org.tensorflow.proto.CollectionDef parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CollectionDef 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(org.tensorflow.proto.CollectionDef 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; + } + /** + *
+   * CollectionDef should cover most collections.
+   * To add a user-defined collection, do one of the following:
+   * 1. For simple data types, such as string, int, float:
+   *      tf.add_to_collection("your_collection_name", your_simple_value)
+   *    strings will be stored as bytes_list.
+   * 2. For Protobuf types, there are three ways to add them:
+   *    1) tf.add_to_collection("your_collection_name",
+   *         your_proto.SerializeToString())
+   *       collection_def {
+   *         key: "user_defined_bytes_collection"
+   *         value {
+   *           bytes_list {
+   *             value: "queue_name: \"test_queue\"\n"
+   *           }
+   *         }
+   *       }
+   *  or
+   *    2) tf.add_to_collection("your_collection_name", str(your_proto))
+   *       collection_def {
+   *         key: "user_defined_string_collection"
+   *         value {
+   *          bytes_list {
+   *             value: "\n\ntest_queue"
+   *           }
+   *         }
+   *       }
+   *  or
+   *    3) any_buf = any_pb2.Any()
+   *       tf.add_to_collection("your_collection_name",
+   *         any_buf.Pack(your_proto))
+   *       collection_def {
+   *         key: "user_defined_any_collection"
+   *         value {
+   *           any_list {
+   *             value {
+   *               type_url: "type.googleapis.com/tensorflow.QueueRunnerDef"
+   *               value: "\n\ntest_queue"
+   *             }
+   *           }
+   *         }
+   *       }
+   * 3. For Python objects, implement to_proto() and from_proto(), and register
+   *    them in the following manner:
+   *    ops.register_proto_function("your_collection_name",
+   *                                proto_type,
+   *                                to_proto=YourPythonObject.to_proto,
+   *                                from_proto=YourPythonObject.from_proto)
+   *    These functions will be invoked to serialize and de-serialize the
+   *    collection. For example,
+   *    ops.register_proto_function(ops.GraphKeys.GLOBAL_VARIABLES,
+   *                                proto_type=variable_pb2.VariableDef,
+   *                                to_proto=Variable.to_proto,
+   *                                from_proto=Variable.from_proto)
+   * 
+ * + * Protobuf type {@code tensorflow.CollectionDef} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef) + org.tensorflow.proto.CollectionDefOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CollectionDef.class, org.tensorflow.proto.CollectionDef.Builder.class); + } + + // Construct using org.tensorflow.proto.CollectionDef.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (nodeListBuilder_ != null) { + nodeListBuilder_.clear(); + } + if (bytesListBuilder_ != null) { + bytesListBuilder_.clear(); + } + if (int64ListBuilder_ != null) { + int64ListBuilder_.clear(); + } + if (floatListBuilder_ != null) { + floatListBuilder_.clear(); + } + if (anyListBuilder_ != null) { + anyListBuilder_.clear(); + } + kindCase_ = 0; + kind_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_CollectionDef_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.CollectionDef getDefaultInstanceForType() { + return org.tensorflow.proto.CollectionDef.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.CollectionDef build() { + org.tensorflow.proto.CollectionDef result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.CollectionDef buildPartial() { + org.tensorflow.proto.CollectionDef result = new org.tensorflow.proto.CollectionDef(this); + if (kindCase_ == 1) { + if (nodeListBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = nodeListBuilder_.build(); + } + } + if (kindCase_ == 2) { + if (bytesListBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = bytesListBuilder_.build(); + } + } + if (kindCase_ == 3) { + if (int64ListBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = int64ListBuilder_.build(); + } + } + if (kindCase_ == 4) { + if (floatListBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = floatListBuilder_.build(); + } + } + if (kindCase_ == 5) { + if (anyListBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = anyListBuilder_.build(); + } + } + result.kindCase_ = kindCase_; + 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 org.tensorflow.proto.CollectionDef) { + return mergeFrom((org.tensorflow.proto.CollectionDef)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.CollectionDef other) { + if (other == org.tensorflow.proto.CollectionDef.getDefaultInstance()) return this; + switch (other.getKindCase()) { + case NODE_LIST: { + mergeNodeList(other.getNodeList()); + break; + } + case BYTES_LIST: { + mergeBytesList(other.getBytesList()); + break; + } + case INT64_LIST: { + mergeInt64List(other.getInt64List()); + break; + } + case FLOAT_LIST: { + mergeFloatList(other.getFloatList()); + break; + } + case ANY_LIST: { + mergeAnyList(other.getAnyList()); + break; + } + case KIND_NOT_SET: { + break; + } + } + 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( + getNodeListFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getBytesListFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getInt64ListFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getFloatListFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getAnyListFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 5; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int kindCase_ = 0; + private java.lang.Object kind_; + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); + } + + public Builder clearKind() { + kindCase_ = 0; + kind_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.CollectionDef.NodeList, org.tensorflow.proto.CollectionDef.NodeList.Builder, org.tensorflow.proto.CollectionDef.NodeListOrBuilder> nodeListBuilder_; + /** + * .tensorflow.CollectionDef.NodeList node_list = 1; + * @return Whether the nodeList field is set. + */ + @java.lang.Override + public boolean hasNodeList() { + return kindCase_ == 1; + } + /** + * .tensorflow.CollectionDef.NodeList node_list = 1; + * @return The nodeList. + */ + @java.lang.Override + public org.tensorflow.proto.CollectionDef.NodeList getNodeList() { + if (nodeListBuilder_ == null) { + if (kindCase_ == 1) { + return (org.tensorflow.proto.CollectionDef.NodeList) kind_; + } + return org.tensorflow.proto.CollectionDef.NodeList.getDefaultInstance(); + } else { + if (kindCase_ == 1) { + return nodeListBuilder_.getMessage(); + } + return org.tensorflow.proto.CollectionDef.NodeList.getDefaultInstance(); + } + } + /** + * .tensorflow.CollectionDef.NodeList node_list = 1; + */ + public Builder setNodeList(org.tensorflow.proto.CollectionDef.NodeList value) { + if (nodeListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + nodeListBuilder_.setMessage(value); + } + kindCase_ = 1; + return this; + } + /** + * .tensorflow.CollectionDef.NodeList node_list = 1; + */ + public Builder setNodeList( + org.tensorflow.proto.CollectionDef.NodeList.Builder builderForValue) { + if (nodeListBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + nodeListBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 1; + return this; + } + /** + * .tensorflow.CollectionDef.NodeList node_list = 1; + */ + public Builder mergeNodeList(org.tensorflow.proto.CollectionDef.NodeList value) { + if (nodeListBuilder_ == null) { + if (kindCase_ == 1 && + kind_ != org.tensorflow.proto.CollectionDef.NodeList.getDefaultInstance()) { + kind_ = org.tensorflow.proto.CollectionDef.NodeList.newBuilder((org.tensorflow.proto.CollectionDef.NodeList) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 1) { + nodeListBuilder_.mergeFrom(value); + } else { + nodeListBuilder_.setMessage(value); + } + } + kindCase_ = 1; + return this; + } + /** + * .tensorflow.CollectionDef.NodeList node_list = 1; + */ + public Builder clearNodeList() { + if (nodeListBuilder_ == null) { + if (kindCase_ == 1) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 1) { + kindCase_ = 0; + kind_ = null; + } + nodeListBuilder_.clear(); + } + return this; + } + /** + * .tensorflow.CollectionDef.NodeList node_list = 1; + */ + public org.tensorflow.proto.CollectionDef.NodeList.Builder getNodeListBuilder() { + return getNodeListFieldBuilder().getBuilder(); + } + /** + * .tensorflow.CollectionDef.NodeList node_list = 1; + */ + @java.lang.Override + public org.tensorflow.proto.CollectionDef.NodeListOrBuilder getNodeListOrBuilder() { + if ((kindCase_ == 1) && (nodeListBuilder_ != null)) { + return nodeListBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 1) { + return (org.tensorflow.proto.CollectionDef.NodeList) kind_; + } + return org.tensorflow.proto.CollectionDef.NodeList.getDefaultInstance(); + } + } + /** + * .tensorflow.CollectionDef.NodeList node_list = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.CollectionDef.NodeList, org.tensorflow.proto.CollectionDef.NodeList.Builder, org.tensorflow.proto.CollectionDef.NodeListOrBuilder> + getNodeListFieldBuilder() { + if (nodeListBuilder_ == null) { + if (!(kindCase_ == 1)) { + kind_ = org.tensorflow.proto.CollectionDef.NodeList.getDefaultInstance(); + } + nodeListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.CollectionDef.NodeList, org.tensorflow.proto.CollectionDef.NodeList.Builder, org.tensorflow.proto.CollectionDef.NodeListOrBuilder>( + (org.tensorflow.proto.CollectionDef.NodeList) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 1; + onChanged();; + return nodeListBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.CollectionDef.BytesList, org.tensorflow.proto.CollectionDef.BytesList.Builder, org.tensorflow.proto.CollectionDef.BytesListOrBuilder> bytesListBuilder_; + /** + * .tensorflow.CollectionDef.BytesList bytes_list = 2; + * @return Whether the bytesList field is set. + */ + @java.lang.Override + public boolean hasBytesList() { + return kindCase_ == 2; + } + /** + * .tensorflow.CollectionDef.BytesList bytes_list = 2; + * @return The bytesList. + */ + @java.lang.Override + public org.tensorflow.proto.CollectionDef.BytesList getBytesList() { + if (bytesListBuilder_ == null) { + if (kindCase_ == 2) { + return (org.tensorflow.proto.CollectionDef.BytesList) kind_; + } + return org.tensorflow.proto.CollectionDef.BytesList.getDefaultInstance(); + } else { + if (kindCase_ == 2) { + return bytesListBuilder_.getMessage(); + } + return org.tensorflow.proto.CollectionDef.BytesList.getDefaultInstance(); + } + } + /** + * .tensorflow.CollectionDef.BytesList bytes_list = 2; + */ + public Builder setBytesList(org.tensorflow.proto.CollectionDef.BytesList value) { + if (bytesListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + bytesListBuilder_.setMessage(value); + } + kindCase_ = 2; + return this; + } + /** + * .tensorflow.CollectionDef.BytesList bytes_list = 2; + */ + public Builder setBytesList( + org.tensorflow.proto.CollectionDef.BytesList.Builder builderForValue) { + if (bytesListBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + bytesListBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 2; + return this; + } + /** + * .tensorflow.CollectionDef.BytesList bytes_list = 2; + */ + public Builder mergeBytesList(org.tensorflow.proto.CollectionDef.BytesList value) { + if (bytesListBuilder_ == null) { + if (kindCase_ == 2 && + kind_ != org.tensorflow.proto.CollectionDef.BytesList.getDefaultInstance()) { + kind_ = org.tensorflow.proto.CollectionDef.BytesList.newBuilder((org.tensorflow.proto.CollectionDef.BytesList) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 2) { + bytesListBuilder_.mergeFrom(value); + } else { + bytesListBuilder_.setMessage(value); + } + } + kindCase_ = 2; + return this; + } + /** + * .tensorflow.CollectionDef.BytesList bytes_list = 2; + */ + public Builder clearBytesList() { + if (bytesListBuilder_ == null) { + if (kindCase_ == 2) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 2) { + kindCase_ = 0; + kind_ = null; + } + bytesListBuilder_.clear(); + } + return this; + } + /** + * .tensorflow.CollectionDef.BytesList bytes_list = 2; + */ + public org.tensorflow.proto.CollectionDef.BytesList.Builder getBytesListBuilder() { + return getBytesListFieldBuilder().getBuilder(); + } + /** + * .tensorflow.CollectionDef.BytesList bytes_list = 2; + */ + @java.lang.Override + public org.tensorflow.proto.CollectionDef.BytesListOrBuilder getBytesListOrBuilder() { + if ((kindCase_ == 2) && (bytesListBuilder_ != null)) { + return bytesListBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 2) { + return (org.tensorflow.proto.CollectionDef.BytesList) kind_; + } + return org.tensorflow.proto.CollectionDef.BytesList.getDefaultInstance(); + } + } + /** + * .tensorflow.CollectionDef.BytesList bytes_list = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.CollectionDef.BytesList, org.tensorflow.proto.CollectionDef.BytesList.Builder, org.tensorflow.proto.CollectionDef.BytesListOrBuilder> + getBytesListFieldBuilder() { + if (bytesListBuilder_ == null) { + if (!(kindCase_ == 2)) { + kind_ = org.tensorflow.proto.CollectionDef.BytesList.getDefaultInstance(); + } + bytesListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.CollectionDef.BytesList, org.tensorflow.proto.CollectionDef.BytesList.Builder, org.tensorflow.proto.CollectionDef.BytesListOrBuilder>( + (org.tensorflow.proto.CollectionDef.BytesList) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 2; + onChanged();; + return bytesListBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.CollectionDef.Int64List, org.tensorflow.proto.CollectionDef.Int64List.Builder, org.tensorflow.proto.CollectionDef.Int64ListOrBuilder> int64ListBuilder_; + /** + * .tensorflow.CollectionDef.Int64List int64_list = 3; + * @return Whether the int64List field is set. + */ + @java.lang.Override + public boolean hasInt64List() { + return kindCase_ == 3; + } + /** + * .tensorflow.CollectionDef.Int64List int64_list = 3; + * @return The int64List. + */ + @java.lang.Override + public org.tensorflow.proto.CollectionDef.Int64List getInt64List() { + if (int64ListBuilder_ == null) { + if (kindCase_ == 3) { + return (org.tensorflow.proto.CollectionDef.Int64List) kind_; + } + return org.tensorflow.proto.CollectionDef.Int64List.getDefaultInstance(); + } else { + if (kindCase_ == 3) { + return int64ListBuilder_.getMessage(); + } + return org.tensorflow.proto.CollectionDef.Int64List.getDefaultInstance(); + } + } + /** + * .tensorflow.CollectionDef.Int64List int64_list = 3; + */ + public Builder setInt64List(org.tensorflow.proto.CollectionDef.Int64List value) { + if (int64ListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + int64ListBuilder_.setMessage(value); + } + kindCase_ = 3; + return this; + } + /** + * .tensorflow.CollectionDef.Int64List int64_list = 3; + */ + public Builder setInt64List( + org.tensorflow.proto.CollectionDef.Int64List.Builder builderForValue) { + if (int64ListBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + int64ListBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 3; + return this; + } + /** + * .tensorflow.CollectionDef.Int64List int64_list = 3; + */ + public Builder mergeInt64List(org.tensorflow.proto.CollectionDef.Int64List value) { + if (int64ListBuilder_ == null) { + if (kindCase_ == 3 && + kind_ != org.tensorflow.proto.CollectionDef.Int64List.getDefaultInstance()) { + kind_ = org.tensorflow.proto.CollectionDef.Int64List.newBuilder((org.tensorflow.proto.CollectionDef.Int64List) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 3) { + int64ListBuilder_.mergeFrom(value); + } else { + int64ListBuilder_.setMessage(value); + } + } + kindCase_ = 3; + return this; + } + /** + * .tensorflow.CollectionDef.Int64List int64_list = 3; + */ + public Builder clearInt64List() { + if (int64ListBuilder_ == null) { + if (kindCase_ == 3) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 3) { + kindCase_ = 0; + kind_ = null; + } + int64ListBuilder_.clear(); + } + return this; + } + /** + * .tensorflow.CollectionDef.Int64List int64_list = 3; + */ + public org.tensorflow.proto.CollectionDef.Int64List.Builder getInt64ListBuilder() { + return getInt64ListFieldBuilder().getBuilder(); + } + /** + * .tensorflow.CollectionDef.Int64List int64_list = 3; + */ + @java.lang.Override + public org.tensorflow.proto.CollectionDef.Int64ListOrBuilder getInt64ListOrBuilder() { + if ((kindCase_ == 3) && (int64ListBuilder_ != null)) { + return int64ListBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 3) { + return (org.tensorflow.proto.CollectionDef.Int64List) kind_; + } + return org.tensorflow.proto.CollectionDef.Int64List.getDefaultInstance(); + } + } + /** + * .tensorflow.CollectionDef.Int64List int64_list = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.CollectionDef.Int64List, org.tensorflow.proto.CollectionDef.Int64List.Builder, org.tensorflow.proto.CollectionDef.Int64ListOrBuilder> + getInt64ListFieldBuilder() { + if (int64ListBuilder_ == null) { + if (!(kindCase_ == 3)) { + kind_ = org.tensorflow.proto.CollectionDef.Int64List.getDefaultInstance(); + } + int64ListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.CollectionDef.Int64List, org.tensorflow.proto.CollectionDef.Int64List.Builder, org.tensorflow.proto.CollectionDef.Int64ListOrBuilder>( + (org.tensorflow.proto.CollectionDef.Int64List) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 3; + onChanged();; + return int64ListBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.CollectionDef.FloatList, org.tensorflow.proto.CollectionDef.FloatList.Builder, org.tensorflow.proto.CollectionDef.FloatListOrBuilder> floatListBuilder_; + /** + * .tensorflow.CollectionDef.FloatList float_list = 4; + * @return Whether the floatList field is set. + */ + @java.lang.Override + public boolean hasFloatList() { + return kindCase_ == 4; + } + /** + * .tensorflow.CollectionDef.FloatList float_list = 4; + * @return The floatList. + */ + @java.lang.Override + public org.tensorflow.proto.CollectionDef.FloatList getFloatList() { + if (floatListBuilder_ == null) { + if (kindCase_ == 4) { + return (org.tensorflow.proto.CollectionDef.FloatList) kind_; + } + return org.tensorflow.proto.CollectionDef.FloatList.getDefaultInstance(); + } else { + if (kindCase_ == 4) { + return floatListBuilder_.getMessage(); + } + return org.tensorflow.proto.CollectionDef.FloatList.getDefaultInstance(); + } + } + /** + * .tensorflow.CollectionDef.FloatList float_list = 4; + */ + public Builder setFloatList(org.tensorflow.proto.CollectionDef.FloatList value) { + if (floatListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + floatListBuilder_.setMessage(value); + } + kindCase_ = 4; + return this; + } + /** + * .tensorflow.CollectionDef.FloatList float_list = 4; + */ + public Builder setFloatList( + org.tensorflow.proto.CollectionDef.FloatList.Builder builderForValue) { + if (floatListBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + floatListBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 4; + return this; + } + /** + * .tensorflow.CollectionDef.FloatList float_list = 4; + */ + public Builder mergeFloatList(org.tensorflow.proto.CollectionDef.FloatList value) { + if (floatListBuilder_ == null) { + if (kindCase_ == 4 && + kind_ != org.tensorflow.proto.CollectionDef.FloatList.getDefaultInstance()) { + kind_ = org.tensorflow.proto.CollectionDef.FloatList.newBuilder((org.tensorflow.proto.CollectionDef.FloatList) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 4) { + floatListBuilder_.mergeFrom(value); + } else { + floatListBuilder_.setMessage(value); + } + } + kindCase_ = 4; + return this; + } + /** + * .tensorflow.CollectionDef.FloatList float_list = 4; + */ + public Builder clearFloatList() { + if (floatListBuilder_ == null) { + if (kindCase_ == 4) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 4) { + kindCase_ = 0; + kind_ = null; + } + floatListBuilder_.clear(); + } + return this; + } + /** + * .tensorflow.CollectionDef.FloatList float_list = 4; + */ + public org.tensorflow.proto.CollectionDef.FloatList.Builder getFloatListBuilder() { + return getFloatListFieldBuilder().getBuilder(); + } + /** + * .tensorflow.CollectionDef.FloatList float_list = 4; + */ + @java.lang.Override + public org.tensorflow.proto.CollectionDef.FloatListOrBuilder getFloatListOrBuilder() { + if ((kindCase_ == 4) && (floatListBuilder_ != null)) { + return floatListBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 4) { + return (org.tensorflow.proto.CollectionDef.FloatList) kind_; + } + return org.tensorflow.proto.CollectionDef.FloatList.getDefaultInstance(); + } + } + /** + * .tensorflow.CollectionDef.FloatList float_list = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.CollectionDef.FloatList, org.tensorflow.proto.CollectionDef.FloatList.Builder, org.tensorflow.proto.CollectionDef.FloatListOrBuilder> + getFloatListFieldBuilder() { + if (floatListBuilder_ == null) { + if (!(kindCase_ == 4)) { + kind_ = org.tensorflow.proto.CollectionDef.FloatList.getDefaultInstance(); + } + floatListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.CollectionDef.FloatList, org.tensorflow.proto.CollectionDef.FloatList.Builder, org.tensorflow.proto.CollectionDef.FloatListOrBuilder>( + (org.tensorflow.proto.CollectionDef.FloatList) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 4; + onChanged();; + return floatListBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.CollectionDef.AnyList, org.tensorflow.proto.CollectionDef.AnyList.Builder, org.tensorflow.proto.CollectionDef.AnyListOrBuilder> anyListBuilder_; + /** + * .tensorflow.CollectionDef.AnyList any_list = 5; + * @return Whether the anyList field is set. + */ + @java.lang.Override + public boolean hasAnyList() { + return kindCase_ == 5; + } + /** + * .tensorflow.CollectionDef.AnyList any_list = 5; + * @return The anyList. + */ + @java.lang.Override + public org.tensorflow.proto.CollectionDef.AnyList getAnyList() { + if (anyListBuilder_ == null) { + if (kindCase_ == 5) { + return (org.tensorflow.proto.CollectionDef.AnyList) kind_; + } + return org.tensorflow.proto.CollectionDef.AnyList.getDefaultInstance(); + } else { + if (kindCase_ == 5) { + return anyListBuilder_.getMessage(); + } + return org.tensorflow.proto.CollectionDef.AnyList.getDefaultInstance(); + } + } + /** + * .tensorflow.CollectionDef.AnyList any_list = 5; + */ + public Builder setAnyList(org.tensorflow.proto.CollectionDef.AnyList value) { + if (anyListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + anyListBuilder_.setMessage(value); + } + kindCase_ = 5; + return this; + } + /** + * .tensorflow.CollectionDef.AnyList any_list = 5; + */ + public Builder setAnyList( + org.tensorflow.proto.CollectionDef.AnyList.Builder builderForValue) { + if (anyListBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + anyListBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 5; + return this; + } + /** + * .tensorflow.CollectionDef.AnyList any_list = 5; + */ + public Builder mergeAnyList(org.tensorflow.proto.CollectionDef.AnyList value) { + if (anyListBuilder_ == null) { + if (kindCase_ == 5 && + kind_ != org.tensorflow.proto.CollectionDef.AnyList.getDefaultInstance()) { + kind_ = org.tensorflow.proto.CollectionDef.AnyList.newBuilder((org.tensorflow.proto.CollectionDef.AnyList) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 5) { + anyListBuilder_.mergeFrom(value); + } else { + anyListBuilder_.setMessage(value); + } + } + kindCase_ = 5; + return this; + } + /** + * .tensorflow.CollectionDef.AnyList any_list = 5; + */ + public Builder clearAnyList() { + if (anyListBuilder_ == null) { + if (kindCase_ == 5) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 5) { + kindCase_ = 0; + kind_ = null; + } + anyListBuilder_.clear(); + } + return this; + } + /** + * .tensorflow.CollectionDef.AnyList any_list = 5; + */ + public org.tensorflow.proto.CollectionDef.AnyList.Builder getAnyListBuilder() { + return getAnyListFieldBuilder().getBuilder(); + } + /** + * .tensorflow.CollectionDef.AnyList any_list = 5; + */ + @java.lang.Override + public org.tensorflow.proto.CollectionDef.AnyListOrBuilder getAnyListOrBuilder() { + if ((kindCase_ == 5) && (anyListBuilder_ != null)) { + return anyListBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 5) { + return (org.tensorflow.proto.CollectionDef.AnyList) kind_; + } + return org.tensorflow.proto.CollectionDef.AnyList.getDefaultInstance(); + } + } + /** + * .tensorflow.CollectionDef.AnyList any_list = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.CollectionDef.AnyList, org.tensorflow.proto.CollectionDef.AnyList.Builder, org.tensorflow.proto.CollectionDef.AnyListOrBuilder> + getAnyListFieldBuilder() { + if (anyListBuilder_ == null) { + if (!(kindCase_ == 5)) { + kind_ = org.tensorflow.proto.CollectionDef.AnyList.getDefaultInstance(); + } + anyListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.CollectionDef.AnyList, org.tensorflow.proto.CollectionDef.AnyList.Builder, org.tensorflow.proto.CollectionDef.AnyListOrBuilder>( + (org.tensorflow.proto.CollectionDef.AnyList) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 5; + onChanged();; + return anyListBuilder_; + } + @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:tensorflow.CollectionDef) + } + + // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef) + private static final org.tensorflow.proto.CollectionDef DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.CollectionDef(); + } + + public static org.tensorflow.proto.CollectionDef getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CollectionDef 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 org.tensorflow.proto.CollectionDef getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CollectionDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CollectionDefOrBuilder.java new file mode 100644 index 00000000000..dafdcb0f648 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CollectionDefOrBuilder.java @@ -0,0 +1,86 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/meta_graph.proto + +package org.tensorflow.proto; + +public interface CollectionDefOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.CollectionDef) + com.google.protobuf.MessageOrBuilder { + + /** + * .tensorflow.CollectionDef.NodeList node_list = 1; + * @return Whether the nodeList field is set. + */ + boolean hasNodeList(); + /** + * .tensorflow.CollectionDef.NodeList node_list = 1; + * @return The nodeList. + */ + org.tensorflow.proto.CollectionDef.NodeList getNodeList(); + /** + * .tensorflow.CollectionDef.NodeList node_list = 1; + */ + org.tensorflow.proto.CollectionDef.NodeListOrBuilder getNodeListOrBuilder(); + + /** + * .tensorflow.CollectionDef.BytesList bytes_list = 2; + * @return Whether the bytesList field is set. + */ + boolean hasBytesList(); + /** + * .tensorflow.CollectionDef.BytesList bytes_list = 2; + * @return The bytesList. + */ + org.tensorflow.proto.CollectionDef.BytesList getBytesList(); + /** + * .tensorflow.CollectionDef.BytesList bytes_list = 2; + */ + org.tensorflow.proto.CollectionDef.BytesListOrBuilder getBytesListOrBuilder(); + + /** + * .tensorflow.CollectionDef.Int64List int64_list = 3; + * @return Whether the int64List field is set. + */ + boolean hasInt64List(); + /** + * .tensorflow.CollectionDef.Int64List int64_list = 3; + * @return The int64List. + */ + org.tensorflow.proto.CollectionDef.Int64List getInt64List(); + /** + * .tensorflow.CollectionDef.Int64List int64_list = 3; + */ + org.tensorflow.proto.CollectionDef.Int64ListOrBuilder getInt64ListOrBuilder(); + + /** + * .tensorflow.CollectionDef.FloatList float_list = 4; + * @return Whether the floatList field is set. + */ + boolean hasFloatList(); + /** + * .tensorflow.CollectionDef.FloatList float_list = 4; + * @return The floatList. + */ + org.tensorflow.proto.CollectionDef.FloatList getFloatList(); + /** + * .tensorflow.CollectionDef.FloatList float_list = 4; + */ + org.tensorflow.proto.CollectionDef.FloatListOrBuilder getFloatListOrBuilder(); + + /** + * .tensorflow.CollectionDef.AnyList any_list = 5; + * @return Whether the anyList field is set. + */ + boolean hasAnyList(); + /** + * .tensorflow.CollectionDef.AnyList any_list = 5; + * @return The anyList. + */ + org.tensorflow.proto.CollectionDef.AnyList getAnyList(); + /** + * .tensorflow.CollectionDef.AnyList any_list = 5; + */ + org.tensorflow.proto.CollectionDef.AnyListOrBuilder getAnyListOrBuilder(); + + public org.tensorflow.proto.CollectionDef.KindCase getKindCase(); +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/CommitId.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CommitId.java similarity index 75% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/CommitId.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CommitId.java index beac981e730..3485498598e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/CommitId.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CommitId.java @@ -1,12 +1,12 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/util/test_log.proto +// source: tensorflow/tsl/protobuf/test_log.proto -package org.tensorflow.proto.util.testlog; +package org.tensorflow.proto; /** * Protobuf type {@code tensorflow.CommitId} */ -public final class CommitId extends +public final class CommitId extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.CommitId) CommitIdOrBuilder { @@ -31,82 +31,24 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private CommitId( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - kindCase_ = 1; - kind_ = input.readInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - kindCase_ = 2; - kind_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - snapshot_ = s; - break; - } - case 32: { - - pendingChangelist_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_CommitId_descriptor; + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_CommitId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_CommitId_fieldAccessorTable + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_CommitId_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.util.testlog.CommitId.class, org.tensorflow.proto.util.testlog.CommitId.Builder.class); + org.tensorflow.proto.CommitId.class, org.tensorflow.proto.CommitId.Builder.class); } private int kindCase_ = 0; private java.lang.Object kind_; public enum KindCase - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { CHANGELIST(1), HASH(2), KIND_NOT_SET(0); @@ -115,6 +57,8 @@ private KindCase(int value) { this.value = value; } /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -148,7 +92,21 @@ public int getNumber() { * * * int64 changelist = 1; + * @return Whether the changelist field is set. */ + @java.lang.Override + public boolean hasChangelist() { + return kindCase_ == 1; + } + /** + *
+   * Submitted changelist.
+   * 
+ * + * int64 changelist = 1; + * @return The changelist. + */ + @java.lang.Override public long getChangelist() { if (kindCase_ == 1) { return (java.lang.Long) kind_; @@ -159,6 +117,14 @@ public long getChangelist() { public static final int HASH_FIELD_NUMBER = 2; /** * string hash = 2; + * @return Whether the hash field is set. + */ + public boolean hasHash() { + return kindCase_ == 2; + } + /** + * string hash = 2; + * @return The hash. */ public java.lang.String getHash() { java.lang.Object ref = ""; @@ -179,6 +145,7 @@ public java.lang.String getHash() { } /** * string hash = 2; + * @return The bytes for hash. */ public com.google.protobuf.ByteString getHashBytes() { @@ -208,7 +175,9 @@ public java.lang.String getHash() { * * * string snapshot = 3; + * @return The snapshot. */ + @java.lang.Override public java.lang.String getSnapshot() { java.lang.Object ref = snapshot_; if (ref instanceof java.lang.String) { @@ -228,7 +197,9 @@ public java.lang.String getSnapshot() { * * * string snapshot = 3; + * @return The bytes for snapshot. */ + @java.lang.Override public com.google.protobuf.ByteString getSnapshotBytes() { java.lang.Object ref = snapshot_; @@ -251,7 +222,9 @@ public java.lang.String getSnapshot() { * * * int64 pending_changelist = 4; + * @return The pendingChangelist. */ + @java.lang.Override public long getPendingChangelist() { return pendingChangelist_; } @@ -277,13 +250,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (kindCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kind_); } - if (!getSnapshotBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshot_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, snapshot_); } if (pendingChangelist_ != 0L) { output.writeInt64(4, pendingChangelist_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -300,14 +273,14 @@ public int getSerializedSize() { if (kindCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kind_); } - if (!getSnapshotBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshot_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, snapshot_); } if (pendingChangelist_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, pendingChangelist_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -317,10 +290,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.util.testlog.CommitId)) { + if (!(obj instanceof org.tensorflow.proto.CommitId)) { return super.equals(obj); } - org.tensorflow.proto.util.testlog.CommitId other = (org.tensorflow.proto.util.testlog.CommitId) obj; + org.tensorflow.proto.CommitId other = (org.tensorflow.proto.CommitId) obj; if (!getSnapshot() .equals(other.getSnapshot())) return false; @@ -339,7 +312,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -368,74 +341,74 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.util.testlog.CommitId parseFrom( + public static org.tensorflow.proto.CommitId parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.CommitId parseFrom( + public static org.tensorflow.proto.CommitId parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.CommitId parseFrom( + public static org.tensorflow.proto.CommitId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.CommitId parseFrom( + public static org.tensorflow.proto.CommitId parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.CommitId parseFrom(byte[] data) + public static org.tensorflow.proto.CommitId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.CommitId parseFrom( + public static org.tensorflow.proto.CommitId parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.CommitId parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.CommitId parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.CommitId parseFrom( + public static org.tensorflow.proto.CommitId 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 org.tensorflow.proto.util.testlog.CommitId parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.CommitId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.CommitId parseDelimitedFrom( + public static org.tensorflow.proto.CommitId 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 org.tensorflow.proto.util.testlog.CommitId parseFrom( + public static org.tensorflow.proto.CommitId parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.CommitId parseFrom( + public static org.tensorflow.proto.CommitId parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -448,7 +421,7 @@ public static org.tensorflow.proto.util.testlog.CommitId parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.util.testlog.CommitId prototype) { + public static Builder newBuilder(org.tensorflow.proto.CommitId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -469,34 +442,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.CommitId) - org.tensorflow.proto.util.testlog.CommitIdOrBuilder { + org.tensorflow.proto.CommitIdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_CommitId_descriptor; + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_CommitId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_CommitId_fieldAccessorTable + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_CommitId_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.util.testlog.CommitId.class, org.tensorflow.proto.util.testlog.CommitId.Builder.class); + org.tensorflow.proto.CommitId.class, org.tensorflow.proto.CommitId.Builder.class); } - // Construct using org.tensorflow.proto.util.testlog.CommitId.newBuilder() + // Construct using org.tensorflow.proto.CommitId.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -513,17 +481,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_CommitId_descriptor; + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_CommitId_descriptor; } @java.lang.Override - public org.tensorflow.proto.util.testlog.CommitId getDefaultInstanceForType() { - return org.tensorflow.proto.util.testlog.CommitId.getDefaultInstance(); + public org.tensorflow.proto.CommitId getDefaultInstanceForType() { + return org.tensorflow.proto.CommitId.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.util.testlog.CommitId build() { - org.tensorflow.proto.util.testlog.CommitId result = buildPartial(); + public org.tensorflow.proto.CommitId build() { + org.tensorflow.proto.CommitId result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -531,8 +499,8 @@ public org.tensorflow.proto.util.testlog.CommitId build() { } @java.lang.Override - public org.tensorflow.proto.util.testlog.CommitId buildPartial() { - org.tensorflow.proto.util.testlog.CommitId result = new org.tensorflow.proto.util.testlog.CommitId(this); + public org.tensorflow.proto.CommitId buildPartial() { + org.tensorflow.proto.CommitId result = new org.tensorflow.proto.CommitId(this); if (kindCase_ == 1) { result.kind_ = kind_; } @@ -580,16 +548,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.util.testlog.CommitId) { - return mergeFrom((org.tensorflow.proto.util.testlog.CommitId)other); + if (other instanceof org.tensorflow.proto.CommitId) { + return mergeFrom((org.tensorflow.proto.CommitId)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.util.testlog.CommitId other) { - if (other == org.tensorflow.proto.util.testlog.CommitId.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.CommitId other) { + if (other == org.tensorflow.proto.CommitId.getDefaultInstance()) return this; if (!other.getSnapshot().isEmpty()) { snapshot_ = other.snapshot_; onChanged(); @@ -612,7 +580,7 @@ public Builder mergeFrom(org.tensorflow.proto.util.testlog.CommitId other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -627,17 +595,51 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.util.testlog.CommitId parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + kind_ = input.readInt64(); + kindCase_ = 1; + break; + } // case 8 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + kindCase_ = 2; + kind_ = s; + break; + } // case 18 + case 26: { + snapshot_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + pendingChangelist_ = input.readInt64(); + + break; + } // case 32 + 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) { - parsedMessage = (org.tensorflow.proto.util.testlog.CommitId) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int kindCase_ = 0; @@ -662,6 +664,18 @@ public Builder clearKind() { * * * int64 changelist = 1; + * @return Whether the changelist field is set. + */ + public boolean hasChangelist() { + return kindCase_ == 1; + } + /** + *
+     * Submitted changelist.
+     * 
+ * + * int64 changelist = 1; + * @return The changelist. */ public long getChangelist() { if (kindCase_ == 1) { @@ -675,6 +689,8 @@ public long getChangelist() { * * * int64 changelist = 1; + * @param value The changelist to set. + * @return This builder for chaining. */ public Builder setChangelist(long value) { kindCase_ = 1; @@ -688,6 +704,7 @@ public Builder setChangelist(long value) { * * * int64 changelist = 1; + * @return This builder for chaining. */ public Builder clearChangelist() { if (kindCase_ == 1) { @@ -700,7 +717,17 @@ public Builder clearChangelist() { /** * string hash = 2; + * @return Whether the hash field is set. + */ + @java.lang.Override + public boolean hasHash() { + return kindCase_ == 2; + } + /** + * string hash = 2; + * @return The hash. */ + @java.lang.Override public java.lang.String getHash() { java.lang.Object ref = ""; if (kindCase_ == 2) { @@ -720,7 +747,9 @@ public java.lang.String getHash() { } /** * string hash = 2; + * @return The bytes for hash. */ + @java.lang.Override public com.google.protobuf.ByteString getHashBytes() { java.lang.Object ref = ""; @@ -741,6 +770,8 @@ public java.lang.String getHash() { } /** * string hash = 2; + * @param value The hash to set. + * @return This builder for chaining. */ public Builder setHash( java.lang.String value) { @@ -754,6 +785,7 @@ public Builder setHash( } /** * string hash = 2; + * @return This builder for chaining. */ public Builder clearHash() { if (kindCase_ == 2) { @@ -765,6 +797,8 @@ public Builder clearHash() { } /** * string hash = 2; + * @param value The bytes for hash to set. + * @return This builder for chaining. */ public Builder setHashBytes( com.google.protobuf.ByteString value) { @@ -786,6 +820,7 @@ public Builder setHashBytes( * * * string snapshot = 3; + * @return The snapshot. */ public java.lang.String getSnapshot() { java.lang.Object ref = snapshot_; @@ -806,6 +841,7 @@ public java.lang.String getSnapshot() { * * * string snapshot = 3; + * @return The bytes for snapshot. */ public com.google.protobuf.ByteString getSnapshotBytes() { @@ -827,6 +863,8 @@ public java.lang.String getSnapshot() { * * * string snapshot = 3; + * @param value The snapshot to set. + * @return This builder for chaining. */ public Builder setSnapshot( java.lang.String value) { @@ -845,6 +883,7 @@ public Builder setSnapshot( * * * string snapshot = 3; + * @return This builder for chaining. */ public Builder clearSnapshot() { @@ -859,6 +898,8 @@ public Builder clearSnapshot() { * * * string snapshot = 3; + * @param value The bytes for snapshot to set. + * @return This builder for chaining. */ public Builder setSnapshotBytes( com.google.protobuf.ByteString value) { @@ -879,7 +920,9 @@ public Builder setSnapshotBytes( * * * int64 pending_changelist = 4; + * @return The pendingChangelist. */ + @java.lang.Override public long getPendingChangelist() { return pendingChangelist_; } @@ -889,6 +932,8 @@ public long getPendingChangelist() { * * * int64 pending_changelist = 4; + * @param value The pendingChangelist to set. + * @return This builder for chaining. */ public Builder setPendingChangelist(long value) { @@ -902,6 +947,7 @@ public Builder setPendingChangelist(long value) { * * * int64 pending_changelist = 4; + * @return This builder for chaining. */ public Builder clearPendingChangelist() { @@ -926,12 +972,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.CommitId) - private static final org.tensorflow.proto.util.testlog.CommitId DEFAULT_INSTANCE; + private static final org.tensorflow.proto.CommitId DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.util.testlog.CommitId(); + DEFAULT_INSTANCE = new org.tensorflow.proto.CommitId(); } - public static org.tensorflow.proto.util.testlog.CommitId getDefaultInstance() { + public static org.tensorflow.proto.CommitId getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -942,7 +988,18 @@ public CommitId parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CommitId(input, extensionRegistry); + 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(); } }; @@ -956,7 +1013,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.util.testlog.CommitId getDefaultInstanceForType() { + public org.tensorflow.proto.CommitId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CommitIdOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CommitIdOrBuilder.java new file mode 100644 index 00000000000..2cfb7455076 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CommitIdOrBuilder.java @@ -0,0 +1,79 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/tsl/protobuf/test_log.proto + +package org.tensorflow.proto; + +public interface CommitIdOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.CommitId) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Submitted changelist.
+   * 
+ * + * int64 changelist = 1; + * @return Whether the changelist field is set. + */ + boolean hasChangelist(); + /** + *
+   * Submitted changelist.
+   * 
+ * + * int64 changelist = 1; + * @return The changelist. + */ + long getChangelist(); + + /** + * string hash = 2; + * @return Whether the hash field is set. + */ + boolean hasHash(); + /** + * string hash = 2; + * @return The hash. + */ + java.lang.String getHash(); + /** + * string hash = 2; + * @return The bytes for hash. + */ + com.google.protobuf.ByteString + getHashBytes(); + + /** + *
+   * Hash of intermediate change between hash/changelist and what was tested.
+   * Not used if the build is from a commit without modifications.
+   * 
+ * + * string snapshot = 3; + * @return The snapshot. + */ + java.lang.String getSnapshot(); + /** + *
+   * Hash of intermediate change between hash/changelist and what was tested.
+   * Not used if the build is from a commit without modifications.
+   * 
+ * + * string snapshot = 3; + * @return The bytes for snapshot. + */ + com.google.protobuf.ByteString + getSnapshotBytes(); + + /** + *
+   * Changelist tested if the change list is not already submitted.
+   * 
+ * + * int64 pending_changelist = 4; + * @return The pendingChangelist. + */ + long getPendingChangelist(); + + public org.tensorflow.proto.CommitId.KindCase getKindCase(); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CompositeTensorVariant.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CompositeTensorVariant.java new file mode 100644 index 00000000000..a2630d9ac0e --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CompositeTensorVariant.java @@ -0,0 +1,666 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/composite_tensor_variant.proto + +package org.tensorflow.proto; + +public final class CompositeTensorVariant { + private CompositeTensorVariant() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface CompositeTensorVariantMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.CompositeTensorVariantMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * .tensorflow.TypeSpecProto type_spec_proto = 1; + * @return Whether the typeSpecProto field is set. + */ + boolean hasTypeSpecProto(); + /** + * .tensorflow.TypeSpecProto type_spec_proto = 1; + * @return The typeSpecProto. + */ + org.tensorflow.proto.Struct.TypeSpecProto getTypeSpecProto(); + /** + * .tensorflow.TypeSpecProto type_spec_proto = 1; + */ + org.tensorflow.proto.Struct.TypeSpecProtoOrBuilder getTypeSpecProtoOrBuilder(); + } + /** + *
+   * Metadata for CompositeTensorVariant, used when serializing as Variant.
+   * We define a new message here (rather than directly using TypeSpecProto for
+   * the metadata string) to retain flexibility to change the metadata encoding
+   * to support additional features.
+   * 
+ * + * Protobuf type {@code tensorflow.CompositeTensorVariantMetadata} + */ + public static final class CompositeTensorVariantMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.CompositeTensorVariantMetadata) + CompositeTensorVariantMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompositeTensorVariantMetadata.newBuilder() to construct. + private CompositeTensorVariantMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompositeTensorVariantMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CompositeTensorVariantMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.CompositeTensorVariant.internal_static_tensorflow_CompositeTensorVariantMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.CompositeTensorVariant.internal_static_tensorflow_CompositeTensorVariantMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata.class, org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata.Builder.class); + } + + public static final int TYPE_SPEC_PROTO_FIELD_NUMBER = 1; + private org.tensorflow.proto.Struct.TypeSpecProto typeSpecProto_; + /** + * .tensorflow.TypeSpecProto type_spec_proto = 1; + * @return Whether the typeSpecProto field is set. + */ + @java.lang.Override + public boolean hasTypeSpecProto() { + return typeSpecProto_ != null; + } + /** + * .tensorflow.TypeSpecProto type_spec_proto = 1; + * @return The typeSpecProto. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.TypeSpecProto getTypeSpecProto() { + return typeSpecProto_ == null ? org.tensorflow.proto.Struct.TypeSpecProto.getDefaultInstance() : typeSpecProto_; + } + /** + * .tensorflow.TypeSpecProto type_spec_proto = 1; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.TypeSpecProtoOrBuilder getTypeSpecProtoOrBuilder() { + return getTypeSpecProto(); + } + + 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 (typeSpecProto_ != null) { + output.writeMessage(1, getTypeSpecProto()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeSpecProto_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTypeSpecProto()); + } + 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 org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata)) { + return super.equals(obj); + } + org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata other = (org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata) obj; + + if (hasTypeSpecProto() != other.hasTypeSpecProto()) return false; + if (hasTypeSpecProto()) { + if (!getTypeSpecProto() + .equals(other.getTypeSpecProto())) 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 (hasTypeSpecProto()) { + hash = (37 * hash) + TYPE_SPEC_PROTO_FIELD_NUMBER; + hash = (53 * hash) + getTypeSpecProto().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata 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 org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata 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 org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata 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(org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata 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; + } + /** + *
+     * Metadata for CompositeTensorVariant, used when serializing as Variant.
+     * We define a new message here (rather than directly using TypeSpecProto for
+     * the metadata string) to retain flexibility to change the metadata encoding
+     * to support additional features.
+     * 
+ * + * Protobuf type {@code tensorflow.CompositeTensorVariantMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.CompositeTensorVariantMetadata) + org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.CompositeTensorVariant.internal_static_tensorflow_CompositeTensorVariantMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.CompositeTensorVariant.internal_static_tensorflow_CompositeTensorVariantMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata.class, org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata.Builder.class); + } + + // Construct using org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (typeSpecProtoBuilder_ == null) { + typeSpecProto_ = null; + } else { + typeSpecProto_ = null; + typeSpecProtoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.CompositeTensorVariant.internal_static_tensorflow_CompositeTensorVariantMetadata_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata getDefaultInstanceForType() { + return org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata build() { + org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata buildPartial() { + org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata result = new org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata(this); + if (typeSpecProtoBuilder_ == null) { + result.typeSpecProto_ = typeSpecProto_; + } else { + result.typeSpecProto_ = typeSpecProtoBuilder_.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 org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata) { + return mergeFrom((org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata other) { + if (other == org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata.getDefaultInstance()) return this; + if (other.hasTypeSpecProto()) { + mergeTypeSpecProto(other.getTypeSpecProto()); + } + 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( + getTypeSpecProtoFieldBuilder().getBuilder(), + extensionRegistry); + + 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 org.tensorflow.proto.Struct.TypeSpecProto typeSpecProto_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.TypeSpecProto, org.tensorflow.proto.Struct.TypeSpecProto.Builder, org.tensorflow.proto.Struct.TypeSpecProtoOrBuilder> typeSpecProtoBuilder_; + /** + * .tensorflow.TypeSpecProto type_spec_proto = 1; + * @return Whether the typeSpecProto field is set. + */ + public boolean hasTypeSpecProto() { + return typeSpecProtoBuilder_ != null || typeSpecProto_ != null; + } + /** + * .tensorflow.TypeSpecProto type_spec_proto = 1; + * @return The typeSpecProto. + */ + public org.tensorflow.proto.Struct.TypeSpecProto getTypeSpecProto() { + if (typeSpecProtoBuilder_ == null) { + return typeSpecProto_ == null ? org.tensorflow.proto.Struct.TypeSpecProto.getDefaultInstance() : typeSpecProto_; + } else { + return typeSpecProtoBuilder_.getMessage(); + } + } + /** + * .tensorflow.TypeSpecProto type_spec_proto = 1; + */ + public Builder setTypeSpecProto(org.tensorflow.proto.Struct.TypeSpecProto value) { + if (typeSpecProtoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + typeSpecProto_ = value; + onChanged(); + } else { + typeSpecProtoBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.TypeSpecProto type_spec_proto = 1; + */ + public Builder setTypeSpecProto( + org.tensorflow.proto.Struct.TypeSpecProto.Builder builderForValue) { + if (typeSpecProtoBuilder_ == null) { + typeSpecProto_ = builderForValue.build(); + onChanged(); + } else { + typeSpecProtoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.TypeSpecProto type_spec_proto = 1; + */ + public Builder mergeTypeSpecProto(org.tensorflow.proto.Struct.TypeSpecProto value) { + if (typeSpecProtoBuilder_ == null) { + if (typeSpecProto_ != null) { + typeSpecProto_ = + org.tensorflow.proto.Struct.TypeSpecProto.newBuilder(typeSpecProto_).mergeFrom(value).buildPartial(); + } else { + typeSpecProto_ = value; + } + onChanged(); + } else { + typeSpecProtoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.TypeSpecProto type_spec_proto = 1; + */ + public Builder clearTypeSpecProto() { + if (typeSpecProtoBuilder_ == null) { + typeSpecProto_ = null; + onChanged(); + } else { + typeSpecProto_ = null; + typeSpecProtoBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.TypeSpecProto type_spec_proto = 1; + */ + public org.tensorflow.proto.Struct.TypeSpecProto.Builder getTypeSpecProtoBuilder() { + + onChanged(); + return getTypeSpecProtoFieldBuilder().getBuilder(); + } + /** + * .tensorflow.TypeSpecProto type_spec_proto = 1; + */ + public org.tensorflow.proto.Struct.TypeSpecProtoOrBuilder getTypeSpecProtoOrBuilder() { + if (typeSpecProtoBuilder_ != null) { + return typeSpecProtoBuilder_.getMessageOrBuilder(); + } else { + return typeSpecProto_ == null ? + org.tensorflow.proto.Struct.TypeSpecProto.getDefaultInstance() : typeSpecProto_; + } + } + /** + * .tensorflow.TypeSpecProto type_spec_proto = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.TypeSpecProto, org.tensorflow.proto.Struct.TypeSpecProto.Builder, org.tensorflow.proto.Struct.TypeSpecProtoOrBuilder> + getTypeSpecProtoFieldBuilder() { + if (typeSpecProtoBuilder_ == null) { + typeSpecProtoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.TypeSpecProto, org.tensorflow.proto.Struct.TypeSpecProto.Builder, org.tensorflow.proto.Struct.TypeSpecProtoOrBuilder>( + getTypeSpecProto(), + getParentForChildren(), + isClean()); + typeSpecProto_ = null; + } + return typeSpecProtoBuilder_; + } + @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:tensorflow.CompositeTensorVariantMetadata) + } + + // @@protoc_insertion_point(class_scope:tensorflow.CompositeTensorVariantMetadata) + private static final org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata(); + } + + public static org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompositeTensorVariantMetadata 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 org.tensorflow.proto.CompositeTensorVariant.CompositeTensorVariantMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_CompositeTensorVariantMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_CompositeTensorVariantMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n7tensorflow/core/protobuf/composite_ten" + + "sor_variant.proto\022\ntensorflow\032%tensorflo" + + "w/core/protobuf/struct.proto\"T\n\036Composit" + + "eTensorVariantMetadata\0222\n\017type_spec_prot" + + "o\030\001 \001(\0132\031.tensorflow.TypeSpecProtoBm\n\024or" + + "g.tensorflow.protoZUgithub.com/tensorflo" + + "w/tensorflow/tensorflow/go/core/protobuf" + + "/for_core_protos_go_protob\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + org.tensorflow.proto.Struct.getDescriptor(), + }); + internal_static_tensorflow_CompositeTensorVariantMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_CompositeTensorVariantMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_CompositeTensorVariantMetadata_descriptor, + new java.lang.String[] { "TypeSpecProto", }); + org.tensorflow.proto.Struct.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CondContextDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CondContextDef.java similarity index 76% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CondContextDef.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CondContextDef.java index 3ab6d340e10..e985c3683cc 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CondContextDef.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CondContextDef.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/control_flow.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; /** *
@@ -10,7 +10,7 @@
  *
  * Protobuf type {@code tensorflow.CondContextDef}
  */
-public  final class CondContextDef extends
+public final class CondContextDef extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.CondContextDef)
     CondContextDefOrBuilder {
@@ -38,103 +38,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private CondContextDef(
-      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: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            contextName_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            predName_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            pivotName_ = s;
-            break;
-          }
-          case 32: {
-
-            branch_ = input.readInt32();
-            break;
-          }
-          case 42: {
-            org.tensorflow.proto.framework.ValuesDef.Builder subBuilder = null;
-            if (valuesDef_ != null) {
-              subBuilder = valuesDef_.toBuilder();
-            }
-            valuesDef_ = input.readMessage(org.tensorflow.proto.framework.ValuesDef.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(valuesDef_);
-              valuesDef_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 50: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              nestedContexts_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            nestedContexts_.add(
-                input.readMessage(org.tensorflow.proto.framework.ControlFlowContextDef.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)) {
-        nestedContexts_ = java.util.Collections.unmodifiableList(nestedContexts_);
-      }
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.framework.ControlFlowProtos.internal_static_tensorflow_CondContextDef_descriptor;
+    return org.tensorflow.proto.ControlFlowProtos.internal_static_tensorflow_CondContextDef_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.framework.ControlFlowProtos.internal_static_tensorflow_CondContextDef_fieldAccessorTable
+    return org.tensorflow.proto.ControlFlowProtos.internal_static_tensorflow_CondContextDef_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.framework.CondContextDef.class, org.tensorflow.proto.framework.CondContextDef.Builder.class);
+            org.tensorflow.proto.CondContextDef.class, org.tensorflow.proto.CondContextDef.Builder.class);
   }
 
   public static final int CONTEXT_NAME_FIELD_NUMBER = 1;
@@ -145,7 +59,9 @@ private CondContextDef(
    * 
* * string context_name = 1; + * @return The contextName. */ + @java.lang.Override public java.lang.String getContextName() { java.lang.Object ref = contextName_; if (ref instanceof java.lang.String) { @@ -164,7 +80,9 @@ public java.lang.String getContextName() { * * * string context_name = 1; + * @return The bytes for contextName. */ + @java.lang.Override public com.google.protobuf.ByteString getContextNameBytes() { java.lang.Object ref = contextName_; @@ -187,7 +105,9 @@ public java.lang.String getContextName() { * * * string pred_name = 2; + * @return The predName. */ + @java.lang.Override public java.lang.String getPredName() { java.lang.Object ref = predName_; if (ref instanceof java.lang.String) { @@ -206,7 +126,9 @@ public java.lang.String getPredName() { * * * string pred_name = 2; + * @return The bytes for predName. */ + @java.lang.Override public com.google.protobuf.ByteString getPredNameBytes() { java.lang.Object ref = predName_; @@ -229,7 +151,9 @@ public java.lang.String getPredName() { * * * string pivot_name = 3; + * @return The pivotName. */ + @java.lang.Override public java.lang.String getPivotName() { java.lang.Object ref = pivotName_; if (ref instanceof java.lang.String) { @@ -248,7 +172,9 @@ public java.lang.String getPivotName() { * * * string pivot_name = 3; + * @return The bytes for pivotName. */ + @java.lang.Override public com.google.protobuf.ByteString getPivotNameBytes() { java.lang.Object ref = pivotName_; @@ -271,20 +197,24 @@ public java.lang.String getPivotName() { * * * int32 branch = 4; + * @return The branch. */ + @java.lang.Override public int getBranch() { return branch_; } public static final int VALUES_DEF_FIELD_NUMBER = 5; - private org.tensorflow.proto.framework.ValuesDef valuesDef_; + private org.tensorflow.proto.ValuesDef valuesDef_; /** *
    * Values and external values in control flow context.
    * 
* * .tensorflow.ValuesDef values_def = 5; + * @return Whether the valuesDef field is set. */ + @java.lang.Override public boolean hasValuesDef() { return valuesDef_ != null; } @@ -294,9 +224,11 @@ public boolean hasValuesDef() { * * * .tensorflow.ValuesDef values_def = 5; + * @return The valuesDef. */ - public org.tensorflow.proto.framework.ValuesDef getValuesDef() { - return valuesDef_ == null ? org.tensorflow.proto.framework.ValuesDef.getDefaultInstance() : valuesDef_; + @java.lang.Override + public org.tensorflow.proto.ValuesDef getValuesDef() { + return valuesDef_ == null ? org.tensorflow.proto.ValuesDef.getDefaultInstance() : valuesDef_; } /** *
@@ -305,12 +237,13 @@ public org.tensorflow.proto.framework.ValuesDef getValuesDef() {
    *
    * .tensorflow.ValuesDef values_def = 5;
    */
-  public org.tensorflow.proto.framework.ValuesDefOrBuilder getValuesDefOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.ValuesDefOrBuilder getValuesDefOrBuilder() {
     return getValuesDef();
   }
 
   public static final int NESTED_CONTEXTS_FIELD_NUMBER = 6;
-  private java.util.List nestedContexts_;
+  private java.util.List nestedContexts_;
   /**
    * 
    * Contexts contained inside this context (e.g. nested conds).
@@ -318,7 +251,8 @@ public org.tensorflow.proto.framework.ValuesDefOrBuilder getValuesDefOrBuilder()
    *
    * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
    */
-  public java.util.List getNestedContextsList() {
+  @java.lang.Override
+  public java.util.List getNestedContextsList() {
     return nestedContexts_;
   }
   /**
@@ -328,7 +262,8 @@ public java.util.List getN
    *
    * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
    */
-  public java.util.List 
+  @java.lang.Override
+  public java.util.List 
       getNestedContextsOrBuilderList() {
     return nestedContexts_;
   }
@@ -339,6 +274,7 @@ public java.util.List getN
    *
    * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
    */
+  @java.lang.Override
   public int getNestedContextsCount() {
     return nestedContexts_.size();
   }
@@ -349,7 +285,8 @@ public int getNestedContextsCount() {
    *
    * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
    */
-  public org.tensorflow.proto.framework.ControlFlowContextDef getNestedContexts(int index) {
+  @java.lang.Override
+  public org.tensorflow.proto.ControlFlowContextDef getNestedContexts(int index) {
     return nestedContexts_.get(index);
   }
   /**
@@ -359,7 +296,8 @@ public org.tensorflow.proto.framework.ControlFlowContextDef getNestedContexts(in
    *
    * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
    */
-  public org.tensorflow.proto.framework.ControlFlowContextDefOrBuilder getNestedContextsOrBuilder(
+  @java.lang.Override
+  public org.tensorflow.proto.ControlFlowContextDefOrBuilder getNestedContextsOrBuilder(
       int index) {
     return nestedContexts_.get(index);
   }
@@ -378,13 +316,13 @@ public final boolean isInitialized() {
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output)
                       throws java.io.IOException {
-    if (!getContextNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contextName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contextName_);
     }
-    if (!getPredNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(predName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, predName_);
     }
-    if (!getPivotNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pivotName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pivotName_);
     }
     if (branch_ != 0) {
@@ -396,7 +334,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     for (int i = 0; i < nestedContexts_.size(); i++) {
       output.writeMessage(6, nestedContexts_.get(i));
     }
-    unknownFields.writeTo(output);
+    getUnknownFields().writeTo(output);
   }
 
   @java.lang.Override
@@ -405,13 +343,13 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getContextNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contextName_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contextName_);
     }
-    if (!getPredNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(predName_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, predName_);
     }
-    if (!getPivotNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pivotName_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pivotName_);
     }
     if (branch_ != 0) {
@@ -426,7 +364,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
         .computeMessageSize(6, nestedContexts_.get(i));
     }
-    size += unknownFields.getSerializedSize();
+    size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
     return size;
   }
@@ -436,10 +374,10 @@ public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
      return true;
     }
-    if (!(obj instanceof org.tensorflow.proto.framework.CondContextDef)) {
+    if (!(obj instanceof org.tensorflow.proto.CondContextDef)) {
       return super.equals(obj);
     }
-    org.tensorflow.proto.framework.CondContextDef other = (org.tensorflow.proto.framework.CondContextDef) obj;
+    org.tensorflow.proto.CondContextDef other = (org.tensorflow.proto.CondContextDef) obj;
 
     if (!getContextName()
         .equals(other.getContextName())) return false;
@@ -456,7 +394,7 @@ public boolean equals(final java.lang.Object obj) {
     }
     if (!getNestedContextsList()
         .equals(other.getNestedContextsList())) return false;
-    if (!unknownFields.equals(other.unknownFields)) return false;
+    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
 
@@ -483,74 +421,74 @@ public int hashCode() {
       hash = (37 * hash) + NESTED_CONTEXTS_FIELD_NUMBER;
       hash = (53 * hash) + getNestedContextsList().hashCode();
     }
-    hash = (29 * hash) + unknownFields.hashCode();
+    hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
     return hash;
   }
 
-  public static org.tensorflow.proto.framework.CondContextDef parseFrom(
+  public static org.tensorflow.proto.CondContextDef parseFrom(
       java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.CondContextDef parseFrom(
+  public static org.tensorflow.proto.CondContextDef parseFrom(
       java.nio.ByteBuffer data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.CondContextDef parseFrom(
+  public static org.tensorflow.proto.CondContextDef parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.CondContextDef parseFrom(
+  public static org.tensorflow.proto.CondContextDef parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.CondContextDef parseFrom(byte[] data)
+  public static org.tensorflow.proto.CondContextDef parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.CondContextDef parseFrom(
+  public static org.tensorflow.proto.CondContextDef parseFrom(
       byte[] data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.CondContextDef parseFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.CondContextDef parseFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.CondContextDef parseFrom(
+  public static org.tensorflow.proto.CondContextDef 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 org.tensorflow.proto.framework.CondContextDef parseDelimitedFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.CondContextDef parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.CondContextDef parseDelimitedFrom(
+  public static org.tensorflow.proto.CondContextDef 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 org.tensorflow.proto.framework.CondContextDef parseFrom(
+  public static org.tensorflow.proto.CondContextDef parseFrom(
       com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.CondContextDef parseFrom(
+  public static org.tensorflow.proto.CondContextDef parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
@@ -563,7 +501,7 @@ public static org.tensorflow.proto.framework.CondContextDef parseFrom(
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(org.tensorflow.proto.framework.CondContextDef prototype) {
+  public static Builder newBuilder(org.tensorflow.proto.CondContextDef prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
   @java.lang.Override
@@ -588,35 +526,29 @@ protected Builder newBuilderForType(
   public static final class Builder extends
       com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:tensorflow.CondContextDef)
-      org.tensorflow.proto.framework.CondContextDefOrBuilder {
+      org.tensorflow.proto.CondContextDefOrBuilder {
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return org.tensorflow.proto.framework.ControlFlowProtos.internal_static_tensorflow_CondContextDef_descriptor;
+      return org.tensorflow.proto.ControlFlowProtos.internal_static_tensorflow_CondContextDef_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return org.tensorflow.proto.framework.ControlFlowProtos.internal_static_tensorflow_CondContextDef_fieldAccessorTable
+      return org.tensorflow.proto.ControlFlowProtos.internal_static_tensorflow_CondContextDef_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              org.tensorflow.proto.framework.CondContextDef.class, org.tensorflow.proto.framework.CondContextDef.Builder.class);
+              org.tensorflow.proto.CondContextDef.class, org.tensorflow.proto.CondContextDef.Builder.class);
     }
 
-    // Construct using org.tensorflow.proto.framework.CondContextDef.newBuilder()
+    // Construct using org.tensorflow.proto.CondContextDef.newBuilder()
     private Builder() {
-      maybeForceBuilderInitialization();
+
     }
 
     private Builder(
         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-      maybeForceBuilderInitialization();
-    }
-    private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-        getNestedContextsFieldBuilder();
-      }
+
     }
     @java.lang.Override
     public Builder clear() {
@@ -637,27 +569,28 @@ public Builder clear() {
       }
       if (nestedContextsBuilder_ == null) {
         nestedContexts_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000001);
       } else {
+        nestedContexts_ = null;
         nestedContextsBuilder_.clear();
       }
+      bitField0_ = (bitField0_ & ~0x00000001);
       return this;
     }
 
     @java.lang.Override
     public com.google.protobuf.Descriptors.Descriptor
         getDescriptorForType() {
-      return org.tensorflow.proto.framework.ControlFlowProtos.internal_static_tensorflow_CondContextDef_descriptor;
+      return org.tensorflow.proto.ControlFlowProtos.internal_static_tensorflow_CondContextDef_descriptor;
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.CondContextDef getDefaultInstanceForType() {
-      return org.tensorflow.proto.framework.CondContextDef.getDefaultInstance();
+    public org.tensorflow.proto.CondContextDef getDefaultInstanceForType() {
+      return org.tensorflow.proto.CondContextDef.getDefaultInstance();
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.CondContextDef build() {
-      org.tensorflow.proto.framework.CondContextDef result = buildPartial();
+    public org.tensorflow.proto.CondContextDef build() {
+      org.tensorflow.proto.CondContextDef result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -665,8 +598,8 @@ public org.tensorflow.proto.framework.CondContextDef build() {
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.CondContextDef buildPartial() {
-      org.tensorflow.proto.framework.CondContextDef result = new org.tensorflow.proto.framework.CondContextDef(this);
+    public org.tensorflow.proto.CondContextDef buildPartial() {
+      org.tensorflow.proto.CondContextDef result = new org.tensorflow.proto.CondContextDef(this);
       int from_bitField0_ = bitField0_;
       result.contextName_ = contextName_;
       result.predName_ = predName_;
@@ -724,16 +657,16 @@ public Builder addRepeatedField(
     }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof org.tensorflow.proto.framework.CondContextDef) {
-        return mergeFrom((org.tensorflow.proto.framework.CondContextDef)other);
+      if (other instanceof org.tensorflow.proto.CondContextDef) {
+        return mergeFrom((org.tensorflow.proto.CondContextDef)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(org.tensorflow.proto.framework.CondContextDef other) {
-      if (other == org.tensorflow.proto.framework.CondContextDef.getDefaultInstance()) return this;
+    public Builder mergeFrom(org.tensorflow.proto.CondContextDef other) {
+      if (other == org.tensorflow.proto.CondContextDef.getDefaultInstance()) return this;
       if (!other.getContextName().isEmpty()) {
         contextName_ = other.contextName_;
         onChanged();
@@ -778,7 +711,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.CondContextDef other) {
           }
         }
       }
-      this.mergeUnknownFields(other.unknownFields);
+      this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
     }
@@ -793,17 +726,70 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      org.tensorflow.proto.framework.CondContextDef parsedMessage = null;
+      if (extensionRegistry == null) {
+        throw new java.lang.NullPointerException();
+      }
       try {
-        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+        boolean done = false;
+        while (!done) {
+          int tag = input.readTag();
+          switch (tag) {
+            case 0:
+              done = true;
+              break;
+            case 10: {
+              contextName_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 18: {
+              predName_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 18
+            case 26: {
+              pivotName_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 26
+            case 32: {
+              branch_ = input.readInt32();
+
+              break;
+            } // case 32
+            case 42: {
+              input.readMessage(
+                  getValuesDefFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 42
+            case 50: {
+              org.tensorflow.proto.ControlFlowContextDef m =
+                  input.readMessage(
+                      org.tensorflow.proto.ControlFlowContextDef.parser(),
+                      extensionRegistry);
+              if (nestedContextsBuilder_ == null) {
+                ensureNestedContextsIsMutable();
+                nestedContexts_.add(m);
+              } else {
+                nestedContextsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 50
+            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) {
-        parsedMessage = (org.tensorflow.proto.framework.CondContextDef) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
-        if (parsedMessage != null) {
-          mergeFrom(parsedMessage);
-        }
-      }
+        onChanged();
+      } // finally
       return this;
     }
     private int bitField0_;
@@ -815,6 +801,7 @@ public Builder mergeFrom(
      * 
* * string context_name = 1; + * @return The contextName. */ public java.lang.String getContextName() { java.lang.Object ref = contextName_; @@ -834,6 +821,7 @@ public java.lang.String getContextName() { *
* * string context_name = 1; + * @return The bytes for contextName. */ public com.google.protobuf.ByteString getContextNameBytes() { @@ -854,6 +842,8 @@ public java.lang.String getContextName() { * * * string context_name = 1; + * @param value The contextName to set. + * @return This builder for chaining. */ public Builder setContextName( java.lang.String value) { @@ -871,6 +861,7 @@ public Builder setContextName( * * * string context_name = 1; + * @return This builder for chaining. */ public Builder clearContextName() { @@ -884,6 +875,8 @@ public Builder clearContextName() { * * * string context_name = 1; + * @param value The bytes for contextName to set. + * @return This builder for chaining. */ public Builder setContextNameBytes( com.google.protobuf.ByteString value) { @@ -904,6 +897,7 @@ public Builder setContextNameBytes( * * * string pred_name = 2; + * @return The predName. */ public java.lang.String getPredName() { java.lang.Object ref = predName_; @@ -923,6 +917,7 @@ public java.lang.String getPredName() { * * * string pred_name = 2; + * @return The bytes for predName. */ public com.google.protobuf.ByteString getPredNameBytes() { @@ -943,6 +938,8 @@ public java.lang.String getPredName() { * * * string pred_name = 2; + * @param value The predName to set. + * @return This builder for chaining. */ public Builder setPredName( java.lang.String value) { @@ -960,6 +957,7 @@ public Builder setPredName( * * * string pred_name = 2; + * @return This builder for chaining. */ public Builder clearPredName() { @@ -973,6 +971,8 @@ public Builder clearPredName() { * * * string pred_name = 2; + * @param value The bytes for predName to set. + * @return This builder for chaining. */ public Builder setPredNameBytes( com.google.protobuf.ByteString value) { @@ -993,6 +993,7 @@ public Builder setPredNameBytes( * * * string pivot_name = 3; + * @return The pivotName. */ public java.lang.String getPivotName() { java.lang.Object ref = pivotName_; @@ -1012,6 +1013,7 @@ public java.lang.String getPivotName() { * * * string pivot_name = 3; + * @return The bytes for pivotName. */ public com.google.protobuf.ByteString getPivotNameBytes() { @@ -1032,6 +1034,8 @@ public java.lang.String getPivotName() { * * * string pivot_name = 3; + * @param value The pivotName to set. + * @return This builder for chaining. */ public Builder setPivotName( java.lang.String value) { @@ -1049,6 +1053,7 @@ public Builder setPivotName( * * * string pivot_name = 3; + * @return This builder for chaining. */ public Builder clearPivotName() { @@ -1062,6 +1067,8 @@ public Builder clearPivotName() { * * * string pivot_name = 3; + * @param value The bytes for pivotName to set. + * @return This builder for chaining. */ public Builder setPivotNameBytes( com.google.protobuf.ByteString value) { @@ -1082,7 +1089,9 @@ public Builder setPivotNameBytes( * * * int32 branch = 4; + * @return The branch. */ + @java.lang.Override public int getBranch() { return branch_; } @@ -1092,6 +1101,8 @@ public int getBranch() { * * * int32 branch = 4; + * @param value The branch to set. + * @return This builder for chaining. */ public Builder setBranch(int value) { @@ -1105,6 +1116,7 @@ public Builder setBranch(int value) { * * * int32 branch = 4; + * @return This builder for chaining. */ public Builder clearBranch() { @@ -1113,15 +1125,16 @@ public Builder clearBranch() { return this; } - private org.tensorflow.proto.framework.ValuesDef valuesDef_; + private org.tensorflow.proto.ValuesDef valuesDef_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.ValuesDef, org.tensorflow.proto.framework.ValuesDef.Builder, org.tensorflow.proto.framework.ValuesDefOrBuilder> valuesDefBuilder_; + org.tensorflow.proto.ValuesDef, org.tensorflow.proto.ValuesDef.Builder, org.tensorflow.proto.ValuesDefOrBuilder> valuesDefBuilder_; /** *
      * Values and external values in control flow context.
      * 
* * .tensorflow.ValuesDef values_def = 5; + * @return Whether the valuesDef field is set. */ public boolean hasValuesDef() { return valuesDefBuilder_ != null || valuesDef_ != null; @@ -1132,10 +1145,11 @@ public boolean hasValuesDef() { * * * .tensorflow.ValuesDef values_def = 5; + * @return The valuesDef. */ - public org.tensorflow.proto.framework.ValuesDef getValuesDef() { + public org.tensorflow.proto.ValuesDef getValuesDef() { if (valuesDefBuilder_ == null) { - return valuesDef_ == null ? org.tensorflow.proto.framework.ValuesDef.getDefaultInstance() : valuesDef_; + return valuesDef_ == null ? org.tensorflow.proto.ValuesDef.getDefaultInstance() : valuesDef_; } else { return valuesDefBuilder_.getMessage(); } @@ -1147,7 +1161,7 @@ public org.tensorflow.proto.framework.ValuesDef getValuesDef() { * * .tensorflow.ValuesDef values_def = 5; */ - public Builder setValuesDef(org.tensorflow.proto.framework.ValuesDef value) { + public Builder setValuesDef(org.tensorflow.proto.ValuesDef value) { if (valuesDefBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1168,7 +1182,7 @@ public Builder setValuesDef(org.tensorflow.proto.framework.ValuesDef value) { * .tensorflow.ValuesDef values_def = 5; */ public Builder setValuesDef( - org.tensorflow.proto.framework.ValuesDef.Builder builderForValue) { + org.tensorflow.proto.ValuesDef.Builder builderForValue) { if (valuesDefBuilder_ == null) { valuesDef_ = builderForValue.build(); onChanged(); @@ -1185,11 +1199,11 @@ public Builder setValuesDef( * * .tensorflow.ValuesDef values_def = 5; */ - public Builder mergeValuesDef(org.tensorflow.proto.framework.ValuesDef value) { + public Builder mergeValuesDef(org.tensorflow.proto.ValuesDef value) { if (valuesDefBuilder_ == null) { if (valuesDef_ != null) { valuesDef_ = - org.tensorflow.proto.framework.ValuesDef.newBuilder(valuesDef_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.ValuesDef.newBuilder(valuesDef_).mergeFrom(value).buildPartial(); } else { valuesDef_ = value; } @@ -1225,7 +1239,7 @@ public Builder clearValuesDef() { * * .tensorflow.ValuesDef values_def = 5; */ - public org.tensorflow.proto.framework.ValuesDef.Builder getValuesDefBuilder() { + public org.tensorflow.proto.ValuesDef.Builder getValuesDefBuilder() { onChanged(); return getValuesDefFieldBuilder().getBuilder(); @@ -1237,12 +1251,12 @@ public org.tensorflow.proto.framework.ValuesDef.Builder getValuesDefBuilder() { * * .tensorflow.ValuesDef values_def = 5; */ - public org.tensorflow.proto.framework.ValuesDefOrBuilder getValuesDefOrBuilder() { + public org.tensorflow.proto.ValuesDefOrBuilder getValuesDefOrBuilder() { if (valuesDefBuilder_ != null) { return valuesDefBuilder_.getMessageOrBuilder(); } else { return valuesDef_ == null ? - org.tensorflow.proto.framework.ValuesDef.getDefaultInstance() : valuesDef_; + org.tensorflow.proto.ValuesDef.getDefaultInstance() : valuesDef_; } } /** @@ -1253,11 +1267,11 @@ public org.tensorflow.proto.framework.ValuesDefOrBuilder getValuesDefOrBuilder() * .tensorflow.ValuesDef values_def = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.ValuesDef, org.tensorflow.proto.framework.ValuesDef.Builder, org.tensorflow.proto.framework.ValuesDefOrBuilder> + org.tensorflow.proto.ValuesDef, org.tensorflow.proto.ValuesDef.Builder, org.tensorflow.proto.ValuesDefOrBuilder> getValuesDefFieldBuilder() { if (valuesDefBuilder_ == null) { valuesDefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.ValuesDef, org.tensorflow.proto.framework.ValuesDef.Builder, org.tensorflow.proto.framework.ValuesDefOrBuilder>( + org.tensorflow.proto.ValuesDef, org.tensorflow.proto.ValuesDef.Builder, org.tensorflow.proto.ValuesDefOrBuilder>( getValuesDef(), getParentForChildren(), isClean()); @@ -1266,17 +1280,17 @@ public org.tensorflow.proto.framework.ValuesDefOrBuilder getValuesDefOrBuilder() return valuesDefBuilder_; } - private java.util.List nestedContexts_ = + private java.util.List nestedContexts_ = java.util.Collections.emptyList(); private void ensureNestedContextsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - nestedContexts_ = new java.util.ArrayList(nestedContexts_); + nestedContexts_ = new java.util.ArrayList(nestedContexts_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ControlFlowContextDef, org.tensorflow.proto.framework.ControlFlowContextDef.Builder, org.tensorflow.proto.framework.ControlFlowContextDefOrBuilder> nestedContextsBuilder_; + org.tensorflow.proto.ControlFlowContextDef, org.tensorflow.proto.ControlFlowContextDef.Builder, org.tensorflow.proto.ControlFlowContextDefOrBuilder> nestedContextsBuilder_; /** *
@@ -1285,7 +1299,7 @@ private void ensureNestedContextsIsMutable() {
      *
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      */
-    public java.util.List getNestedContextsList() {
+    public java.util.List getNestedContextsList() {
       if (nestedContextsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(nestedContexts_);
       } else {
@@ -1313,7 +1327,7 @@ public int getNestedContextsCount() {
      *
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      */
-    public org.tensorflow.proto.framework.ControlFlowContextDef getNestedContexts(int index) {
+    public org.tensorflow.proto.ControlFlowContextDef getNestedContexts(int index) {
       if (nestedContextsBuilder_ == null) {
         return nestedContexts_.get(index);
       } else {
@@ -1328,7 +1342,7 @@ public org.tensorflow.proto.framework.ControlFlowContextDef getNestedContexts(in
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      */
     public Builder setNestedContexts(
-        int index, org.tensorflow.proto.framework.ControlFlowContextDef value) {
+        int index, org.tensorflow.proto.ControlFlowContextDef value) {
       if (nestedContextsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1349,7 +1363,7 @@ public Builder setNestedContexts(
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      */
     public Builder setNestedContexts(
-        int index, org.tensorflow.proto.framework.ControlFlowContextDef.Builder builderForValue) {
+        int index, org.tensorflow.proto.ControlFlowContextDef.Builder builderForValue) {
       if (nestedContextsBuilder_ == null) {
         ensureNestedContextsIsMutable();
         nestedContexts_.set(index, builderForValue.build());
@@ -1366,7 +1380,7 @@ public Builder setNestedContexts(
      *
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      */
-    public Builder addNestedContexts(org.tensorflow.proto.framework.ControlFlowContextDef value) {
+    public Builder addNestedContexts(org.tensorflow.proto.ControlFlowContextDef value) {
       if (nestedContextsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1387,7 +1401,7 @@ public Builder addNestedContexts(org.tensorflow.proto.framework.ControlFlowConte
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      */
     public Builder addNestedContexts(
-        int index, org.tensorflow.proto.framework.ControlFlowContextDef value) {
+        int index, org.tensorflow.proto.ControlFlowContextDef value) {
       if (nestedContextsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1408,7 +1422,7 @@ public Builder addNestedContexts(
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      */
     public Builder addNestedContexts(
-        org.tensorflow.proto.framework.ControlFlowContextDef.Builder builderForValue) {
+        org.tensorflow.proto.ControlFlowContextDef.Builder builderForValue) {
       if (nestedContextsBuilder_ == null) {
         ensureNestedContextsIsMutable();
         nestedContexts_.add(builderForValue.build());
@@ -1426,7 +1440,7 @@ public Builder addNestedContexts(
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      */
     public Builder addNestedContexts(
-        int index, org.tensorflow.proto.framework.ControlFlowContextDef.Builder builderForValue) {
+        int index, org.tensorflow.proto.ControlFlowContextDef.Builder builderForValue) {
       if (nestedContextsBuilder_ == null) {
         ensureNestedContextsIsMutable();
         nestedContexts_.add(index, builderForValue.build());
@@ -1444,7 +1458,7 @@ public Builder addNestedContexts(
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      */
     public Builder addAllNestedContexts(
-        java.lang.Iterable values) {
+        java.lang.Iterable values) {
       if (nestedContextsBuilder_ == null) {
         ensureNestedContextsIsMutable();
         com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -1496,7 +1510,7 @@ public Builder removeNestedContexts(int index) {
      *
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      */
-    public org.tensorflow.proto.framework.ControlFlowContextDef.Builder getNestedContextsBuilder(
+    public org.tensorflow.proto.ControlFlowContextDef.Builder getNestedContextsBuilder(
         int index) {
       return getNestedContextsFieldBuilder().getBuilder(index);
     }
@@ -1507,7 +1521,7 @@ public org.tensorflow.proto.framework.ControlFlowContextDef.Builder getNestedCon
      *
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      */
-    public org.tensorflow.proto.framework.ControlFlowContextDefOrBuilder getNestedContextsOrBuilder(
+    public org.tensorflow.proto.ControlFlowContextDefOrBuilder getNestedContextsOrBuilder(
         int index) {
       if (nestedContextsBuilder_ == null) {
         return nestedContexts_.get(index);  } else {
@@ -1521,7 +1535,7 @@ public org.tensorflow.proto.framework.ControlFlowContextDefOrBuilder getNestedCo
      *
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      */
-    public java.util.List 
+    public java.util.List 
          getNestedContextsOrBuilderList() {
       if (nestedContextsBuilder_ != null) {
         return nestedContextsBuilder_.getMessageOrBuilderList();
@@ -1536,9 +1550,9 @@ public org.tensorflow.proto.framework.ControlFlowContextDefOrBuilder getNestedCo
      *
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      */
-    public org.tensorflow.proto.framework.ControlFlowContextDef.Builder addNestedContextsBuilder() {
+    public org.tensorflow.proto.ControlFlowContextDef.Builder addNestedContextsBuilder() {
       return getNestedContextsFieldBuilder().addBuilder(
-          org.tensorflow.proto.framework.ControlFlowContextDef.getDefaultInstance());
+          org.tensorflow.proto.ControlFlowContextDef.getDefaultInstance());
     }
     /**
      * 
@@ -1547,10 +1561,10 @@ public org.tensorflow.proto.framework.ControlFlowContextDef.Builder addNestedCon
      *
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      */
-    public org.tensorflow.proto.framework.ControlFlowContextDef.Builder addNestedContextsBuilder(
+    public org.tensorflow.proto.ControlFlowContextDef.Builder addNestedContextsBuilder(
         int index) {
       return getNestedContextsFieldBuilder().addBuilder(
-          index, org.tensorflow.proto.framework.ControlFlowContextDef.getDefaultInstance());
+          index, org.tensorflow.proto.ControlFlowContextDef.getDefaultInstance());
     }
     /**
      * 
@@ -1559,16 +1573,16 @@ public org.tensorflow.proto.framework.ControlFlowContextDef.Builder addNestedCon
      *
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      */
-    public java.util.List 
+    public java.util.List 
          getNestedContextsBuilderList() {
       return getNestedContextsFieldBuilder().getBuilderList();
     }
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        org.tensorflow.proto.framework.ControlFlowContextDef, org.tensorflow.proto.framework.ControlFlowContextDef.Builder, org.tensorflow.proto.framework.ControlFlowContextDefOrBuilder> 
+        org.tensorflow.proto.ControlFlowContextDef, org.tensorflow.proto.ControlFlowContextDef.Builder, org.tensorflow.proto.ControlFlowContextDefOrBuilder> 
         getNestedContextsFieldBuilder() {
       if (nestedContextsBuilder_ == null) {
         nestedContextsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            org.tensorflow.proto.framework.ControlFlowContextDef, org.tensorflow.proto.framework.ControlFlowContextDef.Builder, org.tensorflow.proto.framework.ControlFlowContextDefOrBuilder>(
+            org.tensorflow.proto.ControlFlowContextDef, org.tensorflow.proto.ControlFlowContextDef.Builder, org.tensorflow.proto.ControlFlowContextDefOrBuilder>(
                 nestedContexts_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1594,12 +1608,12 @@ public final Builder mergeUnknownFields(
   }
 
   // @@protoc_insertion_point(class_scope:tensorflow.CondContextDef)
-  private static final org.tensorflow.proto.framework.CondContextDef DEFAULT_INSTANCE;
+  private static final org.tensorflow.proto.CondContextDef DEFAULT_INSTANCE;
   static {
-    DEFAULT_INSTANCE = new org.tensorflow.proto.framework.CondContextDef();
+    DEFAULT_INSTANCE = new org.tensorflow.proto.CondContextDef();
   }
 
-  public static org.tensorflow.proto.framework.CondContextDef getDefaultInstance() {
+  public static org.tensorflow.proto.CondContextDef getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
@@ -1610,7 +1624,18 @@ public CondContextDef parsePartialFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
-      return new CondContextDef(input, extensionRegistry);
+      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();
     }
   };
 
@@ -1624,7 +1649,7 @@ public com.google.protobuf.Parser getParserForType() {
   }
 
   @java.lang.Override
-  public org.tensorflow.proto.framework.CondContextDef getDefaultInstanceForType() {
+  public org.tensorflow.proto.CondContextDef getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CondContextDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CondContextDefOrBuilder.java
similarity index 79%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CondContextDefOrBuilder.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CondContextDefOrBuilder.java
index 1dcdef5fd71..c995a5f46a1 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CondContextDefOrBuilder.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CondContextDefOrBuilder.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/protobuf/control_flow.proto
 
-package org.tensorflow.proto.framework;
+package org.tensorflow.proto;
 
 public interface CondContextDefOrBuilder extends
     // @@protoc_insertion_point(interface_extends:tensorflow.CondContextDef)
@@ -13,6 +13,7 @@ public interface CondContextDefOrBuilder extends
    * 
* * string context_name = 1; + * @return The contextName. */ java.lang.String getContextName(); /** @@ -21,6 +22,7 @@ public interface CondContextDefOrBuilder extends *
* * string context_name = 1; + * @return The bytes for contextName. */ com.google.protobuf.ByteString getContextNameBytes(); @@ -31,6 +33,7 @@ public interface CondContextDefOrBuilder extends *
* * string pred_name = 2; + * @return The predName. */ java.lang.String getPredName(); /** @@ -39,6 +42,7 @@ public interface CondContextDefOrBuilder extends * * * string pred_name = 2; + * @return The bytes for predName. */ com.google.protobuf.ByteString getPredNameBytes(); @@ -49,6 +53,7 @@ public interface CondContextDefOrBuilder extends * * * string pivot_name = 3; + * @return The pivotName. */ java.lang.String getPivotName(); /** @@ -57,6 +62,7 @@ public interface CondContextDefOrBuilder extends * * * string pivot_name = 3; + * @return The bytes for pivotName. */ com.google.protobuf.ByteString getPivotNameBytes(); @@ -67,6 +73,7 @@ public interface CondContextDefOrBuilder extends * * * int32 branch = 4; + * @return The branch. */ int getBranch(); @@ -76,6 +83,7 @@ public interface CondContextDefOrBuilder extends * * * .tensorflow.ValuesDef values_def = 5; + * @return Whether the valuesDef field is set. */ boolean hasValuesDef(); /** @@ -84,8 +92,9 @@ public interface CondContextDefOrBuilder extends * * * .tensorflow.ValuesDef values_def = 5; + * @return The valuesDef. */ - org.tensorflow.proto.framework.ValuesDef getValuesDef(); + org.tensorflow.proto.ValuesDef getValuesDef(); /** *
    * Values and external values in control flow context.
@@ -93,7 +102,7 @@ public interface CondContextDefOrBuilder extends
    *
    * .tensorflow.ValuesDef values_def = 5;
    */
-  org.tensorflow.proto.framework.ValuesDefOrBuilder getValuesDefOrBuilder();
+  org.tensorflow.proto.ValuesDefOrBuilder getValuesDefOrBuilder();
 
   /**
    * 
@@ -102,7 +111,7 @@ public interface CondContextDefOrBuilder extends
    *
    * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
    */
-  java.util.List 
+  java.util.List 
       getNestedContextsList();
   /**
    * 
@@ -111,7 +120,7 @@ public interface CondContextDefOrBuilder extends
    *
    * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
    */
-  org.tensorflow.proto.framework.ControlFlowContextDef getNestedContexts(int index);
+  org.tensorflow.proto.ControlFlowContextDef getNestedContexts(int index);
   /**
    * 
    * Contexts contained inside this context (e.g. nested conds).
@@ -127,7 +136,7 @@ public interface CondContextDefOrBuilder extends
    *
    * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
    */
-  java.util.List 
+  java.util.List 
       getNestedContextsOrBuilderList();
   /**
    * 
@@ -136,6 +145,6 @@ public interface CondContextDefOrBuilder extends
    *
    * repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
    */
-  org.tensorflow.proto.framework.ControlFlowContextDefOrBuilder getNestedContextsOrBuilder(
+  org.tensorflow.proto.ControlFlowContextDefOrBuilder getNestedContextsOrBuilder(
       int index);
 }
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ConfigProto.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ConfigProto.java
similarity index 81%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ConfigProto.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ConfigProto.java
index 26d02e5342b..b2bc54c6b2c 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ConfigProto.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ConfigProto.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/protobuf/config.proto
 
-package org.tensorflow.proto.framework;
+package org.tensorflow.proto;
 
 /**
  * 
@@ -11,7 +11,7 @@
  *
  * Protobuf type {@code tensorflow.ConfigProto}
  */
-public  final class ConfigProto extends
+public final class ConfigProto extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.ConfigProto)
     ConfigProtoOrBuilder {
@@ -37,194 +37,9 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private ConfigProto(
-      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)) {
-              deviceCount_ = com.google.protobuf.MapField.newMapField(
-                  DeviceCountDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
-            }
-            com.google.protobuf.MapEntry
-            deviceCount__ = input.readMessage(
-                DeviceCountDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            deviceCount_.getMutableMap().put(
-                deviceCount__.getKey(), deviceCount__.getValue());
-            break;
-          }
-          case 16: {
-
-            intraOpParallelismThreads_ = input.readInt32();
-            break;
-          }
-          case 24: {
-
-            placementPeriod_ = input.readInt32();
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              deviceFilters_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000004;
-            }
-            deviceFilters_.add(s);
-            break;
-          }
-          case 40: {
-
-            interOpParallelismThreads_ = input.readInt32();
-            break;
-          }
-          case 50: {
-            org.tensorflow.proto.framework.GPUOptions.Builder subBuilder = null;
-            if (gpuOptions_ != null) {
-              subBuilder = gpuOptions_.toBuilder();
-            }
-            gpuOptions_ = input.readMessage(org.tensorflow.proto.framework.GPUOptions.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(gpuOptions_);
-              gpuOptions_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 56: {
-
-            allowSoftPlacement_ = input.readBool();
-            break;
-          }
-          case 64: {
-
-            logDevicePlacement_ = input.readBool();
-            break;
-          }
-          case 72: {
-
-            usePerSessionThreads_ = input.readBool();
-            break;
-          }
-          case 82: {
-            org.tensorflow.proto.framework.GraphOptions.Builder subBuilder = null;
-            if (graphOptions_ != null) {
-              subBuilder = graphOptions_.toBuilder();
-            }
-            graphOptions_ = input.readMessage(org.tensorflow.proto.framework.GraphOptions.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(graphOptions_);
-              graphOptions_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 88: {
-
-            operationTimeoutInMs_ = input.readInt64();
-            break;
-          }
-          case 98: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              sessionInterOpThreadPool_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
-            }
-            sessionInterOpThreadPool_.add(
-                input.readMessage(org.tensorflow.proto.framework.ThreadPoolOptionProto.parser(), extensionRegistry));
-            break;
-          }
-          case 106: {
-            org.tensorflow.proto.framework.RPCOptions.Builder subBuilder = null;
-            if (rpcOptions_ != null) {
-              subBuilder = rpcOptions_.toBuilder();
-            }
-            rpcOptions_ = input.readMessage(org.tensorflow.proto.framework.RPCOptions.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(rpcOptions_);
-              rpcOptions_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 114: {
-            org.tensorflow.proto.distruntime.ClusterDef.Builder subBuilder = null;
-            if (clusterDef_ != null) {
-              subBuilder = clusterDef_.toBuilder();
-            }
-            clusterDef_ = input.readMessage(org.tensorflow.proto.distruntime.ClusterDef.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(clusterDef_);
-              clusterDef_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 120: {
-
-            isolateSessionState_ = input.readBool();
-            break;
-          }
-          case 130: {
-            org.tensorflow.proto.framework.ConfigProto.Experimental.Builder subBuilder = null;
-            if (experimental_ != null) {
-              subBuilder = experimental_.toBuilder();
-            }
-            experimental_ = input.readMessage(org.tensorflow.proto.framework.ConfigProto.Experimental.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(experimental_);
-              experimental_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 136: {
-
-            shareClusterDevicesInSession_ = input.readBool();
-            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_ & 0x00000004) != 0)) {
-        deviceFilters_ = deviceFilters_.getUnmodifiableView();
-      }
-      if (((mutable_bitField0_ & 0x00000002) != 0)) {
-        sessionInterOpThreadPool_ = java.util.Collections.unmodifiableList(sessionInterOpThreadPool_);
-      }
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_ConfigProto_descriptor;
+    return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_ConfigProto_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
@@ -242,9 +57,9 @@ protected com.google.protobuf.MapField internalGetMapField(
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_ConfigProto_fieldAccessorTable
+    return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_ConfigProto_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.framework.ConfigProto.class, org.tensorflow.proto.framework.ConfigProto.Builder.class);
+            org.tensorflow.proto.ConfigProto.class, org.tensorflow.proto.ConfigProto.Builder.class);
   }
 
   public interface ExperimentalOrBuilder extends
@@ -257,6 +72,7 @@ public interface ExperimentalOrBuilder extends
      * 
* * string collective_group_leader = 1; + * @return The collectiveGroupLeader. */ java.lang.String getCollectiveGroupLeader(); /** @@ -265,6 +81,7 @@ public interface ExperimentalOrBuilder extends *
* * string collective_group_leader = 1; + * @return The bytes for collectiveGroupLeader. */ com.google.protobuf.ByteString getCollectiveGroupLeaderBytes(); @@ -276,6 +93,7 @@ public interface ExperimentalOrBuilder extends *
* * string executor_type = 3; + * @return The executorType. */ java.lang.String getExecutorType(); /** @@ -285,6 +103,7 @@ public interface ExperimentalOrBuilder extends *
* * string executor_type = 3; + * @return The bytes for executorType. */ com.google.protobuf.ByteString getExecutorTypeBytes(); @@ -297,6 +116,7 @@ public interface ExperimentalOrBuilder extends *
* * int32 recv_buf_max_chunk = 4; + * @return The recvBufMaxChunk. */ int getRecvBufMaxChunk(); @@ -308,6 +128,7 @@ public interface ExperimentalOrBuilder extends *
* * bool use_numa_affinity = 5; + * @return The useNumaAffinity. */ boolean getUseNumaAffinity(); @@ -318,6 +139,7 @@ public interface ExperimentalOrBuilder extends * * * bool collective_deterministic_sequential_execution = 6; + * @return The collectiveDeterministicSequentialExecution. */ boolean getCollectiveDeterministicSequentialExecution(); @@ -328,6 +150,7 @@ public interface ExperimentalOrBuilder extends * * * bool collective_nccl = 7; + * @return The collectiveNccl. */ boolean getCollectiveNccl(); @@ -353,6 +176,7 @@ public interface ExperimentalOrBuilder extends * * * bool share_session_state_in_clusterspec_propagation = 8; + * @return The shareSessionStateInClusterspecPropagation. */ boolean getShareSessionStateInClusterspecPropagation(); @@ -365,6 +189,7 @@ public interface ExperimentalOrBuilder extends * * * bool disable_thread_spinning = 9; + * @return The disableThreadSpinning. */ boolean getDisableThreadSpinning(); @@ -375,6 +200,7 @@ public interface ExperimentalOrBuilder extends * * * bool share_cluster_devices_in_session = 10; + * @return The shareClusterDevicesInSession. */ boolean getShareClusterDevicesInSession(); @@ -383,10 +209,12 @@ public interface ExperimentalOrBuilder extends * Metadata about the session. * If set, this can be used by the runtime and the Ops for debugging, * monitoring, etc. - * NOTE: This is currently used and propagated only by the direct session. + * NOTE: This is currently used and propagated only by the direct session + * and EagerContext. * * * .tensorflow.SessionMetadata session_metadata = 11; + * @return Whether the sessionMetadata field is set. */ boolean hasSessionMetadata(); /** @@ -394,23 +222,26 @@ public interface ExperimentalOrBuilder extends * Metadata about the session. * If set, this can be used by the runtime and the Ops for debugging, * monitoring, etc. - * NOTE: This is currently used and propagated only by the direct session. + * NOTE: This is currently used and propagated only by the direct session + * and EagerContext. * * * .tensorflow.SessionMetadata session_metadata = 11; + * @return The sessionMetadata. */ - org.tensorflow.proto.framework.SessionMetadata getSessionMetadata(); + org.tensorflow.proto.SessionMetadata getSessionMetadata(); /** *
      * Metadata about the session.
      * If set, this can be used by the runtime and the Ops for debugging,
      * monitoring, etc.
-     * NOTE: This is currently used and propagated only by the direct session.
+     * NOTE: This is currently used and propagated only by the direct session
+     * and EagerContext.
      * 
* * .tensorflow.SessionMetadata session_metadata = 11; */ - org.tensorflow.proto.framework.SessionMetadataOrBuilder getSessionMetadataOrBuilder(); + org.tensorflow.proto.SessionMetadataOrBuilder getSessionMetadataOrBuilder(); /** *
@@ -422,16 +253,15 @@ public interface ExperimentalOrBuilder extends
      * 
* * bool optimize_for_static_graph = 12; + * @return The optimizeForStaticGraph. */ boolean getOptimizeForStaticGraph(); /** *
-     * This field will eventually be deprecated and replaced by
-     * mlir_bridge_rollout (b/166038521).
-     * Whether to enable the MLIR-based TF->XLA bridge.
-     * This is a replacement to the existing bridge, and not ready for
-     * production usage yet.
+     * Whether to enable the MLIR-based TF->XLA bridge. This is only used if set
+     * to true. Default value or false is ignored. Use mlir_bridge_rollout for
+     * finer control.
      * If this option is set to true when a session is created, MLIR is used to
      * perform the set of graph transformations to put the graph in a form that
      * can be executed with delegation of some computations to an accelerator.
@@ -442,29 +272,28 @@ public interface ExperimentalOrBuilder extends
      * 
* * bool enable_mlir_bridge = 13; + * @return The enableMlirBridge. */ boolean getEnableMlirBridge(); /** *
-     * This field is underdevelopment, for now use enable_mlir_bridge
-     * (b/166038521).
      * Whether to enable the MLIR-based TF->XLA bridge.
      * 
* * .tensorflow.ConfigProto.Experimental.MlirBridgeRollout mlir_bridge_rollout = 17; + * @return The enum numeric value on the wire for mlirBridgeRollout. */ int getMlirBridgeRolloutValue(); /** *
-     * This field is underdevelopment, for now use enable_mlir_bridge
-     * (b/166038521).
      * Whether to enable the MLIR-based TF->XLA bridge.
      * 
* * .tensorflow.ConfigProto.Experimental.MlirBridgeRollout mlir_bridge_rollout = 17; + * @return The mlirBridgeRollout. */ - org.tensorflow.proto.framework.ConfigProto.Experimental.MlirBridgeRollout getMlirBridgeRollout(); + org.tensorflow.proto.ConfigProto.Experimental.MlirBridgeRollout getMlirBridgeRollout(); /** *
@@ -475,6 +304,7 @@ public interface ExperimentalOrBuilder extends
      * 
* * bool enable_mlir_graph_optimization = 16; + * @return The enableMlirGraphOptimization. */ boolean getEnableMlirGraphOptimization(); @@ -487,6 +317,7 @@ public interface ExperimentalOrBuilder extends * * * bool disable_output_partition_graphs = 14; + * @return The disableOutputPartitionGraphs. */ boolean getDisableOutputPartitionGraphs(); @@ -499,6 +330,7 @@ public interface ExperimentalOrBuilder extends * * * int64 xla_fusion_autotuner_thresh = 15; + * @return The xlaFusionAutotunerThresh. */ long getXlaFusionAutotunerThresh(); @@ -508,6 +340,7 @@ public interface ExperimentalOrBuilder extends * * * bool use_tfrt = 18; + * @return The useTfrt. */ boolean getUseTfrt(); @@ -519,6 +352,7 @@ public interface ExperimentalOrBuilder extends * * * bool disable_functional_ops_lowering = 21; + * @return The disableFunctionalOpsLowering. */ boolean getDisableFunctionalOpsLowering(); @@ -529,6 +363,7 @@ public interface ExperimentalOrBuilder extends * * * bool xla_prefer_single_graph_cluster = 22; + * @return The xlaPreferSingleGraphCluster. */ boolean getXlaPreferSingleGraphCluster(); @@ -538,6 +373,7 @@ public interface ExperimentalOrBuilder extends * * * .tensorflow.CoordinationServiceConfig coordination_config = 23; + * @return Whether the coordinationConfig field is set. */ boolean hasCoordinationConfig(); /** @@ -546,8 +382,9 @@ public interface ExperimentalOrBuilder extends * * * .tensorflow.CoordinationServiceConfig coordination_config = 23; + * @return The coordinationConfig. */ - org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig getCoordinationConfig(); + org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig getCoordinationConfig(); /** *
      * Distributed coordination service configurations.
@@ -555,7 +392,23 @@ public interface ExperimentalOrBuilder extends
      *
      * .tensorflow.CoordinationServiceConfig coordination_config = 23;
      */
-    org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfigOrBuilder getCoordinationConfigOrBuilder();
+    org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfigOrBuilder getCoordinationConfigOrBuilder();
+
+    /**
+     * 
+     * If true, the session will treat the graph as being non-static for
+     * optimization purposes.
+     * If this option is set to true when a session is created, the full
+     * GraphDef will be retained to enable calls to Session::Extend().
+     * Calling Extend() without setting this flag will result in errors.
+     * This option is meant to replace `optimize_for_static_graph` and it
+     * aims to negate its value.
+     * 
+ * + * bool disable_optimize_for_static_graph = 24; + * @return The disableOptimizeForStaticGraph. + */ + boolean getDisableOptimizeForStaticGraph(); } /** *
@@ -566,7 +419,7 @@ public interface ExperimentalOrBuilder extends
    *
    * Protobuf type {@code tensorflow.ConfigProto.Experimental}
    */
-  public  static final class Experimental extends
+  public static final class Experimental extends
       com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:tensorflow.ConfigProto.Experimental)
       ExperimentalOrBuilder {
@@ -593,173 +446,17 @@ protected java.lang.Object newInstance(
     getUnknownFields() {
       return this.unknownFields;
     }
-    private Experimental(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      this();
-      if (extensionRegistry == null) {
-        throw new java.lang.NullPointerException();
-      }
-      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
-          com.google.protobuf.UnknownFieldSet.newBuilder();
-      try {
-        boolean done = false;
-        while (!done) {
-          int tag = input.readTag();
-          switch (tag) {
-            case 0:
-              done = true;
-              break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              collectiveGroupLeader_ = s;
-              break;
-            }
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              executorType_ = s;
-              break;
-            }
-            case 32: {
-
-              recvBufMaxChunk_ = input.readInt32();
-              break;
-            }
-            case 40: {
-
-              useNumaAffinity_ = input.readBool();
-              break;
-            }
-            case 48: {
-
-              collectiveDeterministicSequentialExecution_ = input.readBool();
-              break;
-            }
-            case 56: {
-
-              collectiveNccl_ = input.readBool();
-              break;
-            }
-            case 64: {
-
-              shareSessionStateInClusterspecPropagation_ = input.readBool();
-              break;
-            }
-            case 72: {
-
-              disableThreadSpinning_ = input.readBool();
-              break;
-            }
-            case 80: {
-
-              shareClusterDevicesInSession_ = input.readBool();
-              break;
-            }
-            case 90: {
-              org.tensorflow.proto.framework.SessionMetadata.Builder subBuilder = null;
-              if (sessionMetadata_ != null) {
-                subBuilder = sessionMetadata_.toBuilder();
-              }
-              sessionMetadata_ = input.readMessage(org.tensorflow.proto.framework.SessionMetadata.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(sessionMetadata_);
-                sessionMetadata_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-            case 96: {
-
-              optimizeForStaticGraph_ = input.readBool();
-              break;
-            }
-            case 104: {
-
-              enableMlirBridge_ = input.readBool();
-              break;
-            }
-            case 112: {
-
-              disableOutputPartitionGraphs_ = input.readBool();
-              break;
-            }
-            case 120: {
-
-              xlaFusionAutotunerThresh_ = input.readInt64();
-              break;
-            }
-            case 128: {
-
-              enableMlirGraphOptimization_ = input.readBool();
-              break;
-            }
-            case 136: {
-              int rawValue = input.readEnum();
-
-              mlirBridgeRollout_ = rawValue;
-              break;
-            }
-            case 144: {
-
-              useTfrt_ = input.readBool();
-              break;
-            }
-            case 168: {
-
-              disableFunctionalOpsLowering_ = input.readBool();
-              break;
-            }
-            case 176: {
-
-              xlaPreferSingleGraphCluster_ = input.readBool();
-              break;
-            }
-            case 186: {
-              org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig.Builder subBuilder = null;
-              if (coordinationConfig_ != null) {
-                subBuilder = coordinationConfig_.toBuilder();
-              }
-              coordinationConfig_ = input.readMessage(org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(coordinationConfig_);
-                coordinationConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
-            }
-          }
-        }
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(this);
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
-      } finally {
-        this.unknownFields = unknownFields.build();
-        makeExtensionsImmutable();
-      }
-    }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_ConfigProto_Experimental_descriptor;
+      return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_ConfigProto_Experimental_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_ConfigProto_Experimental_fieldAccessorTable
+      return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_ConfigProto_Experimental_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              org.tensorflow.proto.framework.ConfigProto.Experimental.class, org.tensorflow.proto.framework.ConfigProto.Experimental.Builder.class);
+              org.tensorflow.proto.ConfigProto.Experimental.class, org.tensorflow.proto.ConfigProto.Experimental.Builder.class);
     }
 
     /**
@@ -796,30 +493,6 @@ public enum MlirBridgeRollout
        * MLIR_BRIDGE_ROLLOUT_DISABLED = 2;
        */
       MLIR_BRIDGE_ROLLOUT_DISABLED(2),
-      /**
-       * 
-       * Enable the MLIR bridge on a per graph basis based on an analysis of
-       * the features used in the graph. If the features used by the graph are
-       * supported by the MLIR bridge, the MLIR bridge will be used to run the
-       * graph.
-       * 
- * - * MLIR_BRIDGE_ROLLOUT_SAFE_MODE_ENABLED = 3; - */ - MLIR_BRIDGE_ROLLOUT_SAFE_MODE_ENABLED(3), - /** - *
-       * Enable the MLIR bridge in a fallback mode on a per graph basis based
-       * on an analysis of the features used in the graph.
-       * Running the MLIR bridge in the fallback mode means that it is
-       * executed and it commits all the changes to the TF graph in case
-       * of success. And it does not in case of failures and let the old bridge
-       * to process the TF graph.
-       * 
- * - * MLIR_BRIDGE_ROLLOUT_SAFE_MODE_FALLBACK_ENABLED = 4; - */ - MLIR_BRIDGE_ROLLOUT_SAFE_MODE_FALLBACK_ENABLED(4), UNRECOGNIZED(-1), ; @@ -848,30 +521,6 @@ public enum MlirBridgeRollout * MLIR_BRIDGE_ROLLOUT_DISABLED = 2; */ public static final int MLIR_BRIDGE_ROLLOUT_DISABLED_VALUE = 2; - /** - *
-       * Enable the MLIR bridge on a per graph basis based on an analysis of
-       * the features used in the graph. If the features used by the graph are
-       * supported by the MLIR bridge, the MLIR bridge will be used to run the
-       * graph.
-       * 
- * - * MLIR_BRIDGE_ROLLOUT_SAFE_MODE_ENABLED = 3; - */ - public static final int MLIR_BRIDGE_ROLLOUT_SAFE_MODE_ENABLED_VALUE = 3; - /** - *
-       * Enable the MLIR bridge in a fallback mode on a per graph basis based
-       * on an analysis of the features used in the graph.
-       * Running the MLIR bridge in the fallback mode means that it is
-       * executed and it commits all the changes to the TF graph in case
-       * of success. And it does not in case of failures and let the old bridge
-       * to process the TF graph.
-       * 
- * - * MLIR_BRIDGE_ROLLOUT_SAFE_MODE_FALLBACK_ENABLED = 4; - */ - public static final int MLIR_BRIDGE_ROLLOUT_SAFE_MODE_FALLBACK_ENABLED_VALUE = 4; public final int getNumber() { @@ -883,6 +532,8 @@ public final int getNumber() { } /** + * @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 @@ -890,13 +541,15 @@ public static MlirBridgeRollout 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 MlirBridgeRollout forNumber(int value) { switch (value) { case 0: return MLIR_BRIDGE_ROLLOUT_UNSPECIFIED; case 1: return MLIR_BRIDGE_ROLLOUT_ENABLED; case 2: return MLIR_BRIDGE_ROLLOUT_DISABLED; - case 3: return MLIR_BRIDGE_ROLLOUT_SAFE_MODE_ENABLED; - case 4: return MLIR_BRIDGE_ROLLOUT_SAFE_MODE_FALLBACK_ENABLED; default: return null; } } @@ -915,6 +568,10 @@ public MlirBridgeRollout findValueByNumber(int 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 @@ -923,7 +580,7 @@ public MlirBridgeRollout findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return org.tensorflow.proto.framework.ConfigProto.Experimental.getDescriptor().getEnumTypes().get(0); + return org.tensorflow.proto.ConfigProto.Experimental.getDescriptor().getEnumTypes().get(0); } private static final MlirBridgeRollout[] VALUES = values(); @@ -957,7 +614,9 @@ private MlirBridgeRollout(int value) { *
* * string collective_group_leader = 1; + * @return The collectiveGroupLeader. */ + @java.lang.Override public java.lang.String getCollectiveGroupLeader() { java.lang.Object ref = collectiveGroupLeader_; if (ref instanceof java.lang.String) { @@ -976,7 +635,9 @@ public java.lang.String getCollectiveGroupLeader() { *
* * string collective_group_leader = 1; + * @return The bytes for collectiveGroupLeader. */ + @java.lang.Override public com.google.protobuf.ByteString getCollectiveGroupLeaderBytes() { java.lang.Object ref = collectiveGroupLeader_; @@ -1000,7 +661,9 @@ public java.lang.String getCollectiveGroupLeader() { * * * string executor_type = 3; + * @return The executorType. */ + @java.lang.Override public java.lang.String getExecutorType() { java.lang.Object ref = executorType_; if (ref instanceof java.lang.String) { @@ -1020,7 +683,9 @@ public java.lang.String getExecutorType() { * * * string executor_type = 3; + * @return The bytes for executorType. */ + @java.lang.Override public com.google.protobuf.ByteString getExecutorTypeBytes() { java.lang.Object ref = executorType_; @@ -1045,7 +710,9 @@ public java.lang.String getExecutorType() { * * * int32 recv_buf_max_chunk = 4; + * @return The recvBufMaxChunk. */ + @java.lang.Override public int getRecvBufMaxChunk() { return recvBufMaxChunk_; } @@ -1060,7 +727,9 @@ public int getRecvBufMaxChunk() { * * * bool use_numa_affinity = 5; + * @return The useNumaAffinity. */ + @java.lang.Override public boolean getUseNumaAffinity() { return useNumaAffinity_; } @@ -1074,7 +743,9 @@ public boolean getUseNumaAffinity() { * * * bool collective_deterministic_sequential_execution = 6; + * @return The collectiveDeterministicSequentialExecution. */ + @java.lang.Override public boolean getCollectiveDeterministicSequentialExecution() { return collectiveDeterministicSequentialExecution_; } @@ -1088,7 +759,9 @@ public boolean getCollectiveDeterministicSequentialExecution() { * * * bool collective_nccl = 7; + * @return The collectiveNccl. */ + @java.lang.Override public boolean getCollectiveNccl() { return collectiveNccl_; } @@ -1117,7 +790,9 @@ public boolean getCollectiveNccl() { * * * bool share_session_state_in_clusterspec_propagation = 8; + * @return The shareSessionStateInClusterspecPropagation. */ + @java.lang.Override public boolean getShareSessionStateInClusterspecPropagation() { return shareSessionStateInClusterspecPropagation_; } @@ -1133,7 +808,9 @@ public boolean getShareSessionStateInClusterspecPropagation() { * * * bool disable_thread_spinning = 9; + * @return The disableThreadSpinning. */ + @java.lang.Override public boolean getDisableThreadSpinning() { return disableThreadSpinning_; } @@ -1147,23 +824,28 @@ public boolean getDisableThreadSpinning() { * * * bool share_cluster_devices_in_session = 10; + * @return The shareClusterDevicesInSession. */ + @java.lang.Override public boolean getShareClusterDevicesInSession() { return shareClusterDevicesInSession_; } public static final int SESSION_METADATA_FIELD_NUMBER = 11; - private org.tensorflow.proto.framework.SessionMetadata sessionMetadata_; + private org.tensorflow.proto.SessionMetadata sessionMetadata_; /** *
      * Metadata about the session.
      * If set, this can be used by the runtime and the Ops for debugging,
      * monitoring, etc.
-     * NOTE: This is currently used and propagated only by the direct session.
+     * NOTE: This is currently used and propagated only by the direct session
+     * and EagerContext.
      * 
* * .tensorflow.SessionMetadata session_metadata = 11; + * @return Whether the sessionMetadata field is set. */ + @java.lang.Override public boolean hasSessionMetadata() { return sessionMetadata_ != null; } @@ -1172,25 +854,30 @@ public boolean hasSessionMetadata() { * Metadata about the session. * If set, this can be used by the runtime and the Ops for debugging, * monitoring, etc. - * NOTE: This is currently used and propagated only by the direct session. + * NOTE: This is currently used and propagated only by the direct session + * and EagerContext. * * * .tensorflow.SessionMetadata session_metadata = 11; + * @return The sessionMetadata. */ - public org.tensorflow.proto.framework.SessionMetadata getSessionMetadata() { - return sessionMetadata_ == null ? org.tensorflow.proto.framework.SessionMetadata.getDefaultInstance() : sessionMetadata_; + @java.lang.Override + public org.tensorflow.proto.SessionMetadata getSessionMetadata() { + return sessionMetadata_ == null ? org.tensorflow.proto.SessionMetadata.getDefaultInstance() : sessionMetadata_; } /** *
      * Metadata about the session.
      * If set, this can be used by the runtime and the Ops for debugging,
      * monitoring, etc.
-     * NOTE: This is currently used and propagated only by the direct session.
+     * NOTE: This is currently used and propagated only by the direct session
+     * and EagerContext.
      * 
* * .tensorflow.SessionMetadata session_metadata = 11; */ - public org.tensorflow.proto.framework.SessionMetadataOrBuilder getSessionMetadataOrBuilder() { + @java.lang.Override + public org.tensorflow.proto.SessionMetadataOrBuilder getSessionMetadataOrBuilder() { return getSessionMetadata(); } @@ -1206,7 +893,9 @@ public org.tensorflow.proto.framework.SessionMetadataOrBuilder getSessionMetadat * * * bool optimize_for_static_graph = 12; + * @return The optimizeForStaticGraph. */ + @java.lang.Override public boolean getOptimizeForStaticGraph() { return optimizeForStaticGraph_; } @@ -1215,11 +904,9 @@ public boolean getOptimizeForStaticGraph() { private boolean enableMlirBridge_; /** *
-     * This field will eventually be deprecated and replaced by
-     * mlir_bridge_rollout (b/166038521).
-     * Whether to enable the MLIR-based TF->XLA bridge.
-     * This is a replacement to the existing bridge, and not ready for
-     * production usage yet.
+     * Whether to enable the MLIR-based TF->XLA bridge. This is only used if set
+     * to true. Default value or false is ignored. Use mlir_bridge_rollout for
+     * finer control.
      * If this option is set to true when a session is created, MLIR is used to
      * perform the set of graph transformations to put the graph in a form that
      * can be executed with delegation of some computations to an accelerator.
@@ -1230,7 +917,9 @@ public boolean getOptimizeForStaticGraph() {
      * 
* * bool enable_mlir_bridge = 13; + * @return The enableMlirBridge. */ + @java.lang.Override public boolean getEnableMlirBridge() { return enableMlirBridge_; } @@ -1239,29 +928,27 @@ public boolean getEnableMlirBridge() { private int mlirBridgeRollout_; /** *
-     * This field is underdevelopment, for now use enable_mlir_bridge
-     * (b/166038521).
      * Whether to enable the MLIR-based TF->XLA bridge.
      * 
* * .tensorflow.ConfigProto.Experimental.MlirBridgeRollout mlir_bridge_rollout = 17; + * @return The enum numeric value on the wire for mlirBridgeRollout. */ - public int getMlirBridgeRolloutValue() { + @java.lang.Override public int getMlirBridgeRolloutValue() { return mlirBridgeRollout_; } /** *
-     * This field is underdevelopment, for now use enable_mlir_bridge
-     * (b/166038521).
      * Whether to enable the MLIR-based TF->XLA bridge.
      * 
* * .tensorflow.ConfigProto.Experimental.MlirBridgeRollout mlir_bridge_rollout = 17; + * @return The mlirBridgeRollout. */ - public org.tensorflow.proto.framework.ConfigProto.Experimental.MlirBridgeRollout getMlirBridgeRollout() { + @java.lang.Override public org.tensorflow.proto.ConfigProto.Experimental.MlirBridgeRollout getMlirBridgeRollout() { @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.ConfigProto.Experimental.MlirBridgeRollout result = org.tensorflow.proto.framework.ConfigProto.Experimental.MlirBridgeRollout.valueOf(mlirBridgeRollout_); - return result == null ? org.tensorflow.proto.framework.ConfigProto.Experimental.MlirBridgeRollout.UNRECOGNIZED : result; + org.tensorflow.proto.ConfigProto.Experimental.MlirBridgeRollout result = org.tensorflow.proto.ConfigProto.Experimental.MlirBridgeRollout.valueOf(mlirBridgeRollout_); + return result == null ? org.tensorflow.proto.ConfigProto.Experimental.MlirBridgeRollout.UNRECOGNIZED : result; } public static final int ENABLE_MLIR_GRAPH_OPTIMIZATION_FIELD_NUMBER = 16; @@ -1275,7 +962,9 @@ public org.tensorflow.proto.framework.ConfigProto.Experimental.MlirBridgeRollout * * * bool enable_mlir_graph_optimization = 16; + * @return The enableMlirGraphOptimization. */ + @java.lang.Override public boolean getEnableMlirGraphOptimization() { return enableMlirGraphOptimization_; } @@ -1291,7 +980,9 @@ public boolean getEnableMlirGraphOptimization() { * * * bool disable_output_partition_graphs = 14; + * @return The disableOutputPartitionGraphs. */ + @java.lang.Override public boolean getDisableOutputPartitionGraphs() { return disableOutputPartitionGraphs_; } @@ -1307,7 +998,9 @@ public boolean getDisableOutputPartitionGraphs() { * * * int64 xla_fusion_autotuner_thresh = 15; + * @return The xlaFusionAutotunerThresh. */ + @java.lang.Override public long getXlaFusionAutotunerThresh() { return xlaFusionAutotunerThresh_; } @@ -1320,7 +1013,9 @@ public long getXlaFusionAutotunerThresh() { * * * bool use_tfrt = 18; + * @return The useTfrt. */ + @java.lang.Override public boolean getUseTfrt() { return useTfrt_; } @@ -1335,7 +1030,9 @@ public boolean getUseTfrt() { * * * bool disable_functional_ops_lowering = 21; + * @return The disableFunctionalOpsLowering. */ + @java.lang.Override public boolean getDisableFunctionalOpsLowering() { return disableFunctionalOpsLowering_; } @@ -1349,20 +1046,24 @@ public boolean getDisableFunctionalOpsLowering() { * * * bool xla_prefer_single_graph_cluster = 22; + * @return The xlaPreferSingleGraphCluster. */ + @java.lang.Override public boolean getXlaPreferSingleGraphCluster() { return xlaPreferSingleGraphCluster_; } public static final int COORDINATION_CONFIG_FIELD_NUMBER = 23; - private org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig coordinationConfig_; + private org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig coordinationConfig_; /** *
      * Distributed coordination service configurations.
      * 
* * .tensorflow.CoordinationServiceConfig coordination_config = 23; + * @return Whether the coordinationConfig field is set. */ + @java.lang.Override public boolean hasCoordinationConfig() { return coordinationConfig_ != null; } @@ -1372,9 +1073,11 @@ public boolean hasCoordinationConfig() { * * * .tensorflow.CoordinationServiceConfig coordination_config = 23; + * @return The coordinationConfig. */ - public org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig getCoordinationConfig() { - return coordinationConfig_ == null ? org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig.getDefaultInstance() : coordinationConfig_; + @java.lang.Override + public org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig getCoordinationConfig() { + return coordinationConfig_ == null ? org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig.getDefaultInstance() : coordinationConfig_; } /** *
@@ -1383,10 +1086,32 @@ public org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceCo
      *
      * .tensorflow.CoordinationServiceConfig coordination_config = 23;
      */
-    public org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfigOrBuilder getCoordinationConfigOrBuilder() {
+    @java.lang.Override
+    public org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfigOrBuilder getCoordinationConfigOrBuilder() {
       return getCoordinationConfig();
     }
 
+    public static final int DISABLE_OPTIMIZE_FOR_STATIC_GRAPH_FIELD_NUMBER = 24;
+    private boolean disableOptimizeForStaticGraph_;
+    /**
+     * 
+     * If true, the session will treat the graph as being non-static for
+     * optimization purposes.
+     * If this option is set to true when a session is created, the full
+     * GraphDef will be retained to enable calls to Session::Extend().
+     * Calling Extend() without setting this flag will result in errors.
+     * This option is meant to replace `optimize_for_static_graph` and it
+     * aims to negate its value.
+     * 
+ * + * bool disable_optimize_for_static_graph = 24; + * @return The disableOptimizeForStaticGraph. + */ + @java.lang.Override + public boolean getDisableOptimizeForStaticGraph() { + return disableOptimizeForStaticGraph_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -1401,10 +1126,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getCollectiveGroupLeaderBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectiveGroupLeader_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, collectiveGroupLeader_); } - if (!getExecutorTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executorType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, executorType_); } if (recvBufMaxChunk_ != 0) { @@ -1446,7 +1171,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (enableMlirGraphOptimization_ != false) { output.writeBool(16, enableMlirGraphOptimization_); } - if (mlirBridgeRollout_ != org.tensorflow.proto.framework.ConfigProto.Experimental.MlirBridgeRollout.MLIR_BRIDGE_ROLLOUT_UNSPECIFIED.getNumber()) { + if (mlirBridgeRollout_ != org.tensorflow.proto.ConfigProto.Experimental.MlirBridgeRollout.MLIR_BRIDGE_ROLLOUT_UNSPECIFIED.getNumber()) { output.writeEnum(17, mlirBridgeRollout_); } if (useTfrt_ != false) { @@ -1461,7 +1186,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (coordinationConfig_ != null) { output.writeMessage(23, getCoordinationConfig()); } - unknownFields.writeTo(output); + if (disableOptimizeForStaticGraph_ != false) { + output.writeBool(24, disableOptimizeForStaticGraph_); + } + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1470,10 +1198,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getCollectiveGroupLeaderBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectiveGroupLeader_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, collectiveGroupLeader_); } - if (!getExecutorTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executorType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, executorType_); } if (recvBufMaxChunk_ != 0) { @@ -1528,7 +1256,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(16, enableMlirGraphOptimization_); } - if (mlirBridgeRollout_ != org.tensorflow.proto.framework.ConfigProto.Experimental.MlirBridgeRollout.MLIR_BRIDGE_ROLLOUT_UNSPECIFIED.getNumber()) { + if (mlirBridgeRollout_ != org.tensorflow.proto.ConfigProto.Experimental.MlirBridgeRollout.MLIR_BRIDGE_ROLLOUT_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(17, mlirBridgeRollout_); } @@ -1548,7 +1276,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(23, getCoordinationConfig()); } - size += unknownFields.getSerializedSize(); + if (disableOptimizeForStaticGraph_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(24, disableOptimizeForStaticGraph_); + } + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1558,10 +1290,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.ConfigProto.Experimental)) { + if (!(obj instanceof org.tensorflow.proto.ConfigProto.Experimental)) { return super.equals(obj); } - org.tensorflow.proto.framework.ConfigProto.Experimental other = (org.tensorflow.proto.framework.ConfigProto.Experimental) obj; + org.tensorflow.proto.ConfigProto.Experimental other = (org.tensorflow.proto.ConfigProto.Experimental) obj; if (!getCollectiveGroupLeader() .equals(other.getCollectiveGroupLeader())) return false; @@ -1608,7 +1340,9 @@ public boolean equals(final java.lang.Object obj) { if (!getCoordinationConfig() .equals(other.getCoordinationConfig())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (getDisableOptimizeForStaticGraph() + != other.getDisableOptimizeForStaticGraph()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1677,74 +1411,77 @@ public int hashCode() { hash = (37 * hash) + COORDINATION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getCoordinationConfig().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (37 * hash) + DISABLE_OPTIMIZE_FOR_STATIC_GRAPH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisableOptimizeForStaticGraph()); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.ConfigProto.Experimental parseFrom( + public static org.tensorflow.proto.ConfigProto.Experimental parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.ConfigProto.Experimental parseFrom( + public static org.tensorflow.proto.ConfigProto.Experimental parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.ConfigProto.Experimental parseFrom( + public static org.tensorflow.proto.ConfigProto.Experimental parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.ConfigProto.Experimental parseFrom( + public static org.tensorflow.proto.ConfigProto.Experimental parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.ConfigProto.Experimental parseFrom(byte[] data) + public static org.tensorflow.proto.ConfigProto.Experimental parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.ConfigProto.Experimental parseFrom( + public static org.tensorflow.proto.ConfigProto.Experimental parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.ConfigProto.Experimental parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.ConfigProto.Experimental parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.ConfigProto.Experimental parseFrom( + public static org.tensorflow.proto.ConfigProto.Experimental 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 org.tensorflow.proto.framework.ConfigProto.Experimental parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.ConfigProto.Experimental parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.ConfigProto.Experimental parseDelimitedFrom( + public static org.tensorflow.proto.ConfigProto.Experimental 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 org.tensorflow.proto.framework.ConfigProto.Experimental parseFrom( + public static org.tensorflow.proto.ConfigProto.Experimental parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.ConfigProto.Experimental parseFrom( + public static org.tensorflow.proto.ConfigProto.Experimental parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1757,7 +1494,7 @@ public static org.tensorflow.proto.framework.ConfigProto.Experimental parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.ConfigProto.Experimental prototype) { + public static Builder newBuilder(org.tensorflow.proto.ConfigProto.Experimental prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1784,34 +1521,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.ConfigProto.Experimental) - org.tensorflow.proto.framework.ConfigProto.ExperimentalOrBuilder { + org.tensorflow.proto.ConfigProto.ExperimentalOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_ConfigProto_Experimental_descriptor; + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_ConfigProto_Experimental_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_ConfigProto_Experimental_fieldAccessorTable + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_ConfigProto_Experimental_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ConfigProto.Experimental.class, org.tensorflow.proto.framework.ConfigProto.Experimental.Builder.class); + org.tensorflow.proto.ConfigProto.Experimental.class, org.tensorflow.proto.ConfigProto.Experimental.Builder.class); } - // Construct using org.tensorflow.proto.framework.ConfigProto.Experimental.newBuilder() + // Construct using org.tensorflow.proto.ConfigProto.Experimental.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -1864,23 +1596,25 @@ public Builder clear() { coordinationConfig_ = null; coordinationConfigBuilder_ = null; } + disableOptimizeForStaticGraph_ = false; + return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_ConfigProto_Experimental_descriptor; + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_ConfigProto_Experimental_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.ConfigProto.Experimental getDefaultInstanceForType() { - return org.tensorflow.proto.framework.ConfigProto.Experimental.getDefaultInstance(); + public org.tensorflow.proto.ConfigProto.Experimental getDefaultInstanceForType() { + return org.tensorflow.proto.ConfigProto.Experimental.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.ConfigProto.Experimental build() { - org.tensorflow.proto.framework.ConfigProto.Experimental result = buildPartial(); + public org.tensorflow.proto.ConfigProto.Experimental build() { + org.tensorflow.proto.ConfigProto.Experimental result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1888,8 +1622,8 @@ public org.tensorflow.proto.framework.ConfigProto.Experimental build() { } @java.lang.Override - public org.tensorflow.proto.framework.ConfigProto.Experimental buildPartial() { - org.tensorflow.proto.framework.ConfigProto.Experimental result = new org.tensorflow.proto.framework.ConfigProto.Experimental(this); + public org.tensorflow.proto.ConfigProto.Experimental buildPartial() { + org.tensorflow.proto.ConfigProto.Experimental result = new org.tensorflow.proto.ConfigProto.Experimental(this); result.collectiveGroupLeader_ = collectiveGroupLeader_; result.executorType_ = executorType_; result.recvBufMaxChunk_ = recvBufMaxChunk_; @@ -1918,6 +1652,7 @@ public org.tensorflow.proto.framework.ConfigProto.Experimental buildPartial() { } else { result.coordinationConfig_ = coordinationConfigBuilder_.build(); } + result.disableOptimizeForStaticGraph_ = disableOptimizeForStaticGraph_; onBuilt(); return result; } @@ -1956,16 +1691,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.ConfigProto.Experimental) { - return mergeFrom((org.tensorflow.proto.framework.ConfigProto.Experimental)other); + if (other instanceof org.tensorflow.proto.ConfigProto.Experimental) { + return mergeFrom((org.tensorflow.proto.ConfigProto.Experimental)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.ConfigProto.Experimental other) { - if (other == org.tensorflow.proto.framework.ConfigProto.Experimental.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.ConfigProto.Experimental other) { + if (other == org.tensorflow.proto.ConfigProto.Experimental.getDefaultInstance()) return this; if (!other.getCollectiveGroupLeader().isEmpty()) { collectiveGroupLeader_ = other.collectiveGroupLeader_; onChanged(); @@ -2028,7 +1763,10 @@ public Builder mergeFrom(org.tensorflow.proto.framework.ConfigProto.Experimental if (other.hasCoordinationConfig()) { mergeCoordinationConfig(other.getCoordinationConfig()); } - this.mergeUnknownFields(other.unknownFields); + if (other.getDisableOptimizeForStaticGraph() != false) { + setDisableOptimizeForStaticGraph(other.getDisableOptimizeForStaticGraph()); + } + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2043,17 +1781,139 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.ConfigProto.Experimental parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + collectiveGroupLeader_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 26: { + executorType_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + recvBufMaxChunk_ = input.readInt32(); + + break; + } // case 32 + case 40: { + useNumaAffinity_ = input.readBool(); + + break; + } // case 40 + case 48: { + collectiveDeterministicSequentialExecution_ = input.readBool(); + + break; + } // case 48 + case 56: { + collectiveNccl_ = input.readBool(); + + break; + } // case 56 + case 64: { + shareSessionStateInClusterspecPropagation_ = input.readBool(); + + break; + } // case 64 + case 72: { + disableThreadSpinning_ = input.readBool(); + + break; + } // case 72 + case 80: { + shareClusterDevicesInSession_ = input.readBool(); + + break; + } // case 80 + case 90: { + input.readMessage( + getSessionMetadataFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 90 + case 96: { + optimizeForStaticGraph_ = input.readBool(); + + break; + } // case 96 + case 104: { + enableMlirBridge_ = input.readBool(); + + break; + } // case 104 + case 112: { + disableOutputPartitionGraphs_ = input.readBool(); + + break; + } // case 112 + case 120: { + xlaFusionAutotunerThresh_ = input.readInt64(); + + break; + } // case 120 + case 128: { + enableMlirGraphOptimization_ = input.readBool(); + + break; + } // case 128 + case 136: { + mlirBridgeRollout_ = input.readEnum(); + + break; + } // case 136 + case 144: { + useTfrt_ = input.readBool(); + + break; + } // case 144 + case 168: { + disableFunctionalOpsLowering_ = input.readBool(); + + break; + } // case 168 + case 176: { + xlaPreferSingleGraphCluster_ = input.readBool(); + + break; + } // case 176 + case 186: { + input.readMessage( + getCoordinationConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 186 + case 192: { + disableOptimizeForStaticGraph_ = input.readBool(); + + break; + } // case 192 + 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) { - parsedMessage = (org.tensorflow.proto.framework.ConfigProto.Experimental) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2064,6 +1924,7 @@ public Builder mergeFrom( *
* * string collective_group_leader = 1; + * @return The collectiveGroupLeader. */ public java.lang.String getCollectiveGroupLeader() { java.lang.Object ref = collectiveGroupLeader_; @@ -2083,6 +1944,7 @@ public java.lang.String getCollectiveGroupLeader() { * * * string collective_group_leader = 1; + * @return The bytes for collectiveGroupLeader. */ public com.google.protobuf.ByteString getCollectiveGroupLeaderBytes() { @@ -2103,6 +1965,8 @@ public java.lang.String getCollectiveGroupLeader() { * * * string collective_group_leader = 1; + * @param value The collectiveGroupLeader to set. + * @return This builder for chaining. */ public Builder setCollectiveGroupLeader( java.lang.String value) { @@ -2120,6 +1984,7 @@ public Builder setCollectiveGroupLeader( * * * string collective_group_leader = 1; + * @return This builder for chaining. */ public Builder clearCollectiveGroupLeader() { @@ -2133,6 +1998,8 @@ public Builder clearCollectiveGroupLeader() { * * * string collective_group_leader = 1; + * @param value The bytes for collectiveGroupLeader to set. + * @return This builder for chaining. */ public Builder setCollectiveGroupLeaderBytes( com.google.protobuf.ByteString value) { @@ -2154,6 +2021,7 @@ public Builder setCollectiveGroupLeaderBytes( * * * string executor_type = 3; + * @return The executorType. */ public java.lang.String getExecutorType() { java.lang.Object ref = executorType_; @@ -2174,6 +2042,7 @@ public java.lang.String getExecutorType() { * * * string executor_type = 3; + * @return The bytes for executorType. */ public com.google.protobuf.ByteString getExecutorTypeBytes() { @@ -2195,6 +2064,8 @@ public java.lang.String getExecutorType() { * * * string executor_type = 3; + * @param value The executorType to set. + * @return This builder for chaining. */ public Builder setExecutorType( java.lang.String value) { @@ -2213,6 +2084,7 @@ public Builder setExecutorType( * * * string executor_type = 3; + * @return This builder for chaining. */ public Builder clearExecutorType() { @@ -2227,6 +2099,8 @@ public Builder clearExecutorType() { * * * string executor_type = 3; + * @param value The bytes for executorType to set. + * @return This builder for chaining. */ public Builder setExecutorTypeBytes( com.google.protobuf.ByteString value) { @@ -2249,7 +2123,9 @@ public Builder setExecutorTypeBytes( * * * int32 recv_buf_max_chunk = 4; + * @return The recvBufMaxChunk. */ + @java.lang.Override public int getRecvBufMaxChunk() { return recvBufMaxChunk_; } @@ -2261,6 +2137,8 @@ public int getRecvBufMaxChunk() { * * * int32 recv_buf_max_chunk = 4; + * @param value The recvBufMaxChunk to set. + * @return This builder for chaining. */ public Builder setRecvBufMaxChunk(int value) { @@ -2276,6 +2154,7 @@ public Builder setRecvBufMaxChunk(int value) { * * * int32 recv_buf_max_chunk = 4; + * @return This builder for chaining. */ public Builder clearRecvBufMaxChunk() { @@ -2293,7 +2172,9 @@ public Builder clearRecvBufMaxChunk() { * * * bool use_numa_affinity = 5; + * @return The useNumaAffinity. */ + @java.lang.Override public boolean getUseNumaAffinity() { return useNumaAffinity_; } @@ -2305,6 +2186,8 @@ public boolean getUseNumaAffinity() { * * * bool use_numa_affinity = 5; + * @param value The useNumaAffinity to set. + * @return This builder for chaining. */ public Builder setUseNumaAffinity(boolean value) { @@ -2320,6 +2203,7 @@ public Builder setUseNumaAffinity(boolean value) { * * * bool use_numa_affinity = 5; + * @return This builder for chaining. */ public Builder clearUseNumaAffinity() { @@ -2336,7 +2220,9 @@ public Builder clearUseNumaAffinity() { * * * bool collective_deterministic_sequential_execution = 6; + * @return The collectiveDeterministicSequentialExecution. */ + @java.lang.Override public boolean getCollectiveDeterministicSequentialExecution() { return collectiveDeterministicSequentialExecution_; } @@ -2347,6 +2233,8 @@ public boolean getCollectiveDeterministicSequentialExecution() { * * * bool collective_deterministic_sequential_execution = 6; + * @param value The collectiveDeterministicSequentialExecution to set. + * @return This builder for chaining. */ public Builder setCollectiveDeterministicSequentialExecution(boolean value) { @@ -2361,6 +2249,7 @@ public Builder setCollectiveDeterministicSequentialExecution(boolean value) { * * * bool collective_deterministic_sequential_execution = 6; + * @return This builder for chaining. */ public Builder clearCollectiveDeterministicSequentialExecution() { @@ -2377,7 +2266,9 @@ public Builder clearCollectiveDeterministicSequentialExecution() { * * * bool collective_nccl = 7; + * @return The collectiveNccl. */ + @java.lang.Override public boolean getCollectiveNccl() { return collectiveNccl_; } @@ -2388,6 +2279,8 @@ public boolean getCollectiveNccl() { * * * bool collective_nccl = 7; + * @param value The collectiveNccl to set. + * @return This builder for chaining. */ public Builder setCollectiveNccl(boolean value) { @@ -2402,6 +2295,7 @@ public Builder setCollectiveNccl(boolean value) { * * * bool collective_nccl = 7; + * @return This builder for chaining. */ public Builder clearCollectiveNccl() { @@ -2433,7 +2327,9 @@ public Builder clearCollectiveNccl() { * * * bool share_session_state_in_clusterspec_propagation = 8; + * @return The shareSessionStateInClusterspecPropagation. */ + @java.lang.Override public boolean getShareSessionStateInClusterspecPropagation() { return shareSessionStateInClusterspecPropagation_; } @@ -2459,6 +2355,8 @@ public boolean getShareSessionStateInClusterspecPropagation() { * * * bool share_session_state_in_clusterspec_propagation = 8; + * @param value The shareSessionStateInClusterspecPropagation to set. + * @return This builder for chaining. */ public Builder setShareSessionStateInClusterspecPropagation(boolean value) { @@ -2488,6 +2386,7 @@ public Builder setShareSessionStateInClusterspecPropagation(boolean value) { * * * bool share_session_state_in_clusterspec_propagation = 8; + * @return This builder for chaining. */ public Builder clearShareSessionStateInClusterspecPropagation() { @@ -2506,7 +2405,9 @@ public Builder clearShareSessionStateInClusterspecPropagation() { * * * bool disable_thread_spinning = 9; + * @return The disableThreadSpinning. */ + @java.lang.Override public boolean getDisableThreadSpinning() { return disableThreadSpinning_; } @@ -2519,6 +2420,8 @@ public boolean getDisableThreadSpinning() { * * * bool disable_thread_spinning = 9; + * @param value The disableThreadSpinning to set. + * @return This builder for chaining. */ public Builder setDisableThreadSpinning(boolean value) { @@ -2535,6 +2438,7 @@ public Builder setDisableThreadSpinning(boolean value) { * * * bool disable_thread_spinning = 9; + * @return This builder for chaining. */ public Builder clearDisableThreadSpinning() { @@ -2551,7 +2455,9 @@ public Builder clearDisableThreadSpinning() { * * * bool share_cluster_devices_in_session = 10; + * @return The shareClusterDevicesInSession. */ + @java.lang.Override public boolean getShareClusterDevicesInSession() { return shareClusterDevicesInSession_; } @@ -2562,6 +2468,8 @@ public boolean getShareClusterDevicesInSession() { * * * bool share_cluster_devices_in_session = 10; + * @param value The shareClusterDevicesInSession to set. + * @return This builder for chaining. */ public Builder setShareClusterDevicesInSession(boolean value) { @@ -2576,6 +2484,7 @@ public Builder setShareClusterDevicesInSession(boolean value) { * * * bool share_cluster_devices_in_session = 10; + * @return This builder for chaining. */ public Builder clearShareClusterDevicesInSession() { @@ -2584,18 +2493,20 @@ public Builder clearShareClusterDevicesInSession() { return this; } - private org.tensorflow.proto.framework.SessionMetadata sessionMetadata_; + private org.tensorflow.proto.SessionMetadata sessionMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SessionMetadata, org.tensorflow.proto.framework.SessionMetadata.Builder, org.tensorflow.proto.framework.SessionMetadataOrBuilder> sessionMetadataBuilder_; + org.tensorflow.proto.SessionMetadata, org.tensorflow.proto.SessionMetadata.Builder, org.tensorflow.proto.SessionMetadataOrBuilder> sessionMetadataBuilder_; /** *
        * Metadata about the session.
        * If set, this can be used by the runtime and the Ops for debugging,
        * monitoring, etc.
-       * NOTE: This is currently used and propagated only by the direct session.
+       * NOTE: This is currently used and propagated only by the direct session
+       * and EagerContext.
        * 
* * .tensorflow.SessionMetadata session_metadata = 11; + * @return Whether the sessionMetadata field is set. */ public boolean hasSessionMetadata() { return sessionMetadataBuilder_ != null || sessionMetadata_ != null; @@ -2605,14 +2516,16 @@ public boolean hasSessionMetadata() { * Metadata about the session. * If set, this can be used by the runtime and the Ops for debugging, * monitoring, etc. - * NOTE: This is currently used and propagated only by the direct session. + * NOTE: This is currently used and propagated only by the direct session + * and EagerContext. * * * .tensorflow.SessionMetadata session_metadata = 11; + * @return The sessionMetadata. */ - public org.tensorflow.proto.framework.SessionMetadata getSessionMetadata() { + public org.tensorflow.proto.SessionMetadata getSessionMetadata() { if (sessionMetadataBuilder_ == null) { - return sessionMetadata_ == null ? org.tensorflow.proto.framework.SessionMetadata.getDefaultInstance() : sessionMetadata_; + return sessionMetadata_ == null ? org.tensorflow.proto.SessionMetadata.getDefaultInstance() : sessionMetadata_; } else { return sessionMetadataBuilder_.getMessage(); } @@ -2622,12 +2535,13 @@ public org.tensorflow.proto.framework.SessionMetadata getSessionMetadata() { * Metadata about the session. * If set, this can be used by the runtime and the Ops for debugging, * monitoring, etc. - * NOTE: This is currently used and propagated only by the direct session. + * NOTE: This is currently used and propagated only by the direct session + * and EagerContext. * * * .tensorflow.SessionMetadata session_metadata = 11; */ - public Builder setSessionMetadata(org.tensorflow.proto.framework.SessionMetadata value) { + public Builder setSessionMetadata(org.tensorflow.proto.SessionMetadata value) { if (sessionMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2645,13 +2559,14 @@ public Builder setSessionMetadata(org.tensorflow.proto.framework.SessionMetadata * Metadata about the session. * If set, this can be used by the runtime and the Ops for debugging, * monitoring, etc. - * NOTE: This is currently used and propagated only by the direct session. + * NOTE: This is currently used and propagated only by the direct session + * and EagerContext. * * * .tensorflow.SessionMetadata session_metadata = 11; */ public Builder setSessionMetadata( - org.tensorflow.proto.framework.SessionMetadata.Builder builderForValue) { + org.tensorflow.proto.SessionMetadata.Builder builderForValue) { if (sessionMetadataBuilder_ == null) { sessionMetadata_ = builderForValue.build(); onChanged(); @@ -2666,16 +2581,17 @@ public Builder setSessionMetadata( * Metadata about the session. * If set, this can be used by the runtime and the Ops for debugging, * monitoring, etc. - * NOTE: This is currently used and propagated only by the direct session. + * NOTE: This is currently used and propagated only by the direct session + * and EagerContext. * * * .tensorflow.SessionMetadata session_metadata = 11; */ - public Builder mergeSessionMetadata(org.tensorflow.proto.framework.SessionMetadata value) { + public Builder mergeSessionMetadata(org.tensorflow.proto.SessionMetadata value) { if (sessionMetadataBuilder_ == null) { if (sessionMetadata_ != null) { sessionMetadata_ = - org.tensorflow.proto.framework.SessionMetadata.newBuilder(sessionMetadata_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.SessionMetadata.newBuilder(sessionMetadata_).mergeFrom(value).buildPartial(); } else { sessionMetadata_ = value; } @@ -2691,7 +2607,8 @@ public Builder mergeSessionMetadata(org.tensorflow.proto.framework.SessionMetada * Metadata about the session. * If set, this can be used by the runtime and the Ops for debugging, * monitoring, etc. - * NOTE: This is currently used and propagated only by the direct session. + * NOTE: This is currently used and propagated only by the direct session + * and EagerContext. * * * .tensorflow.SessionMetadata session_metadata = 11; @@ -2712,12 +2629,13 @@ public Builder clearSessionMetadata() { * Metadata about the session. * If set, this can be used by the runtime and the Ops for debugging, * monitoring, etc. - * NOTE: This is currently used and propagated only by the direct session. + * NOTE: This is currently used and propagated only by the direct session + * and EagerContext. * * * .tensorflow.SessionMetadata session_metadata = 11; */ - public org.tensorflow.proto.framework.SessionMetadata.Builder getSessionMetadataBuilder() { + public org.tensorflow.proto.SessionMetadata.Builder getSessionMetadataBuilder() { onChanged(); return getSessionMetadataFieldBuilder().getBuilder(); @@ -2727,17 +2645,18 @@ public org.tensorflow.proto.framework.SessionMetadata.Builder getSessionMetadata * Metadata about the session. * If set, this can be used by the runtime and the Ops for debugging, * monitoring, etc. - * NOTE: This is currently used and propagated only by the direct session. + * NOTE: This is currently used and propagated only by the direct session + * and EagerContext. * * * .tensorflow.SessionMetadata session_metadata = 11; */ - public org.tensorflow.proto.framework.SessionMetadataOrBuilder getSessionMetadataOrBuilder() { + public org.tensorflow.proto.SessionMetadataOrBuilder getSessionMetadataOrBuilder() { if (sessionMetadataBuilder_ != null) { return sessionMetadataBuilder_.getMessageOrBuilder(); } else { return sessionMetadata_ == null ? - org.tensorflow.proto.framework.SessionMetadata.getDefaultInstance() : sessionMetadata_; + org.tensorflow.proto.SessionMetadata.getDefaultInstance() : sessionMetadata_; } } /** @@ -2745,17 +2664,18 @@ public org.tensorflow.proto.framework.SessionMetadataOrBuilder getSessionMetadat * Metadata about the session. * If set, this can be used by the runtime and the Ops for debugging, * monitoring, etc. - * NOTE: This is currently used and propagated only by the direct session. + * NOTE: This is currently used and propagated only by the direct session + * and EagerContext. * * * .tensorflow.SessionMetadata session_metadata = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SessionMetadata, org.tensorflow.proto.framework.SessionMetadata.Builder, org.tensorflow.proto.framework.SessionMetadataOrBuilder> + org.tensorflow.proto.SessionMetadata, org.tensorflow.proto.SessionMetadata.Builder, org.tensorflow.proto.SessionMetadataOrBuilder> getSessionMetadataFieldBuilder() { if (sessionMetadataBuilder_ == null) { sessionMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SessionMetadata, org.tensorflow.proto.framework.SessionMetadata.Builder, org.tensorflow.proto.framework.SessionMetadataOrBuilder>( + org.tensorflow.proto.SessionMetadata, org.tensorflow.proto.SessionMetadata.Builder, org.tensorflow.proto.SessionMetadataOrBuilder>( getSessionMetadata(), getParentForChildren(), isClean()); @@ -2775,7 +2695,9 @@ public org.tensorflow.proto.framework.SessionMetadataOrBuilder getSessionMetadat * * * bool optimize_for_static_graph = 12; + * @return The optimizeForStaticGraph. */ + @java.lang.Override public boolean getOptimizeForStaticGraph() { return optimizeForStaticGraph_; } @@ -2789,6 +2711,8 @@ public boolean getOptimizeForStaticGraph() { * * * bool optimize_for_static_graph = 12; + * @param value The optimizeForStaticGraph to set. + * @return This builder for chaining. */ public Builder setOptimizeForStaticGraph(boolean value) { @@ -2806,6 +2730,7 @@ public Builder setOptimizeForStaticGraph(boolean value) { * * * bool optimize_for_static_graph = 12; + * @return This builder for chaining. */ public Builder clearOptimizeForStaticGraph() { @@ -2817,11 +2742,9 @@ public Builder clearOptimizeForStaticGraph() { private boolean enableMlirBridge_ ; /** *
-       * This field will eventually be deprecated and replaced by
-       * mlir_bridge_rollout (b/166038521).
-       * Whether to enable the MLIR-based TF->XLA bridge.
-       * This is a replacement to the existing bridge, and not ready for
-       * production usage yet.
+       * Whether to enable the MLIR-based TF->XLA bridge. This is only used if set
+       * to true. Default value or false is ignored. Use mlir_bridge_rollout for
+       * finer control.
        * If this option is set to true when a session is created, MLIR is used to
        * perform the set of graph transformations to put the graph in a form that
        * can be executed with delegation of some computations to an accelerator.
@@ -2832,17 +2755,17 @@ public Builder clearOptimizeForStaticGraph() {
        * 
* * bool enable_mlir_bridge = 13; + * @return The enableMlirBridge. */ + @java.lang.Override public boolean getEnableMlirBridge() { return enableMlirBridge_; } /** *
-       * This field will eventually be deprecated and replaced by
-       * mlir_bridge_rollout (b/166038521).
-       * Whether to enable the MLIR-based TF->XLA bridge.
-       * This is a replacement to the existing bridge, and not ready for
-       * production usage yet.
+       * Whether to enable the MLIR-based TF->XLA bridge. This is only used if set
+       * to true. Default value or false is ignored. Use mlir_bridge_rollout for
+       * finer control.
        * If this option is set to true when a session is created, MLIR is used to
        * perform the set of graph transformations to put the graph in a form that
        * can be executed with delegation of some computations to an accelerator.
@@ -2853,6 +2776,8 @@ public boolean getEnableMlirBridge() {
        * 
* * bool enable_mlir_bridge = 13; + * @param value The enableMlirBridge to set. + * @return This builder for chaining. */ public Builder setEnableMlirBridge(boolean value) { @@ -2862,11 +2787,9 @@ public Builder setEnableMlirBridge(boolean value) { } /** *
-       * This field will eventually be deprecated and replaced by
-       * mlir_bridge_rollout (b/166038521).
-       * Whether to enable the MLIR-based TF->XLA bridge.
-       * This is a replacement to the existing bridge, and not ready for
-       * production usage yet.
+       * Whether to enable the MLIR-based TF->XLA bridge. This is only used if set
+       * to true. Default value or false is ignored. Use mlir_bridge_rollout for
+       * finer control.
        * If this option is set to true when a session is created, MLIR is used to
        * perform the set of graph transformations to put the graph in a form that
        * can be executed with delegation of some computations to an accelerator.
@@ -2877,6 +2800,7 @@ public Builder setEnableMlirBridge(boolean value) {
        * 
* * bool enable_mlir_bridge = 13; + * @return This builder for chaining. */ public Builder clearEnableMlirBridge() { @@ -2888,54 +2812,54 @@ public Builder clearEnableMlirBridge() { private int mlirBridgeRollout_ = 0; /** *
-       * This field is underdevelopment, for now use enable_mlir_bridge
-       * (b/166038521).
        * Whether to enable the MLIR-based TF->XLA bridge.
        * 
* * .tensorflow.ConfigProto.Experimental.MlirBridgeRollout mlir_bridge_rollout = 17; + * @return The enum numeric value on the wire for mlirBridgeRollout. */ - public int getMlirBridgeRolloutValue() { + @java.lang.Override public int getMlirBridgeRolloutValue() { return mlirBridgeRollout_; } /** *
-       * This field is underdevelopment, for now use enable_mlir_bridge
-       * (b/166038521).
        * Whether to enable the MLIR-based TF->XLA bridge.
        * 
* * .tensorflow.ConfigProto.Experimental.MlirBridgeRollout mlir_bridge_rollout = 17; + * @param value The enum numeric value on the wire for mlirBridgeRollout to set. + * @return This builder for chaining. */ public Builder setMlirBridgeRolloutValue(int value) { + mlirBridgeRollout_ = value; onChanged(); return this; } /** *
-       * This field is underdevelopment, for now use enable_mlir_bridge
-       * (b/166038521).
        * Whether to enable the MLIR-based TF->XLA bridge.
        * 
* * .tensorflow.ConfigProto.Experimental.MlirBridgeRollout mlir_bridge_rollout = 17; + * @return The mlirBridgeRollout. */ - public org.tensorflow.proto.framework.ConfigProto.Experimental.MlirBridgeRollout getMlirBridgeRollout() { + @java.lang.Override + public org.tensorflow.proto.ConfigProto.Experimental.MlirBridgeRollout getMlirBridgeRollout() { @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.ConfigProto.Experimental.MlirBridgeRollout result = org.tensorflow.proto.framework.ConfigProto.Experimental.MlirBridgeRollout.valueOf(mlirBridgeRollout_); - return result == null ? org.tensorflow.proto.framework.ConfigProto.Experimental.MlirBridgeRollout.UNRECOGNIZED : result; + org.tensorflow.proto.ConfigProto.Experimental.MlirBridgeRollout result = org.tensorflow.proto.ConfigProto.Experimental.MlirBridgeRollout.valueOf(mlirBridgeRollout_); + return result == null ? org.tensorflow.proto.ConfigProto.Experimental.MlirBridgeRollout.UNRECOGNIZED : result; } /** *
-       * This field is underdevelopment, for now use enable_mlir_bridge
-       * (b/166038521).
        * Whether to enable the MLIR-based TF->XLA bridge.
        * 
* * .tensorflow.ConfigProto.Experimental.MlirBridgeRollout mlir_bridge_rollout = 17; + * @param value The mlirBridgeRollout to set. + * @return This builder for chaining. */ - public Builder setMlirBridgeRollout(org.tensorflow.proto.framework.ConfigProto.Experimental.MlirBridgeRollout value) { + public Builder setMlirBridgeRollout(org.tensorflow.proto.ConfigProto.Experimental.MlirBridgeRollout value) { if (value == null) { throw new NullPointerException(); } @@ -2946,12 +2870,11 @@ public Builder setMlirBridgeRollout(org.tensorflow.proto.framework.ConfigProto.E } /** *
-       * This field is underdevelopment, for now use enable_mlir_bridge
-       * (b/166038521).
        * Whether to enable the MLIR-based TF->XLA bridge.
        * 
* * .tensorflow.ConfigProto.Experimental.MlirBridgeRollout mlir_bridge_rollout = 17; + * @return This builder for chaining. */ public Builder clearMlirBridgeRollout() { @@ -2970,7 +2893,9 @@ public Builder clearMlirBridgeRollout() { * * * bool enable_mlir_graph_optimization = 16; + * @return The enableMlirGraphOptimization. */ + @java.lang.Override public boolean getEnableMlirGraphOptimization() { return enableMlirGraphOptimization_; } @@ -2983,6 +2908,8 @@ public boolean getEnableMlirGraphOptimization() { * * * bool enable_mlir_graph_optimization = 16; + * @param value The enableMlirGraphOptimization to set. + * @return This builder for chaining. */ public Builder setEnableMlirGraphOptimization(boolean value) { @@ -2999,6 +2926,7 @@ public Builder setEnableMlirGraphOptimization(boolean value) { * * * bool enable_mlir_graph_optimization = 16; + * @return This builder for chaining. */ public Builder clearEnableMlirGraphOptimization() { @@ -3017,7 +2945,9 @@ public Builder clearEnableMlirGraphOptimization() { * * * bool disable_output_partition_graphs = 14; + * @return The disableOutputPartitionGraphs. */ + @java.lang.Override public boolean getDisableOutputPartitionGraphs() { return disableOutputPartitionGraphs_; } @@ -3030,6 +2960,8 @@ public boolean getDisableOutputPartitionGraphs() { * * * bool disable_output_partition_graphs = 14; + * @param value The disableOutputPartitionGraphs to set. + * @return This builder for chaining. */ public Builder setDisableOutputPartitionGraphs(boolean value) { @@ -3046,6 +2978,7 @@ public Builder setDisableOutputPartitionGraphs(boolean value) { * * * bool disable_output_partition_graphs = 14; + * @return This builder for chaining. */ public Builder clearDisableOutputPartitionGraphs() { @@ -3064,7 +2997,9 @@ public Builder clearDisableOutputPartitionGraphs() { * * * int64 xla_fusion_autotuner_thresh = 15; + * @return The xlaFusionAutotunerThresh. */ + @java.lang.Override public long getXlaFusionAutotunerThresh() { return xlaFusionAutotunerThresh_; } @@ -3077,6 +3012,8 @@ public long getXlaFusionAutotunerThresh() { * * * int64 xla_fusion_autotuner_thresh = 15; + * @param value The xlaFusionAutotunerThresh to set. + * @return This builder for chaining. */ public Builder setXlaFusionAutotunerThresh(long value) { @@ -3093,6 +3030,7 @@ public Builder setXlaFusionAutotunerThresh(long value) { * * * int64 xla_fusion_autotuner_thresh = 15; + * @return This builder for chaining. */ public Builder clearXlaFusionAutotunerThresh() { @@ -3108,7 +3046,9 @@ public Builder clearXlaFusionAutotunerThresh() { * * * bool use_tfrt = 18; + * @return The useTfrt. */ + @java.lang.Override public boolean getUseTfrt() { return useTfrt_; } @@ -3118,6 +3058,8 @@ public boolean getUseTfrt() { * * * bool use_tfrt = 18; + * @param value The useTfrt to set. + * @return This builder for chaining. */ public Builder setUseTfrt(boolean value) { @@ -3131,6 +3073,7 @@ public Builder setUseTfrt(boolean value) { * * * bool use_tfrt = 18; + * @return This builder for chaining. */ public Builder clearUseTfrt() { @@ -3148,7 +3091,9 @@ public Builder clearUseTfrt() { * * * bool disable_functional_ops_lowering = 21; + * @return The disableFunctionalOpsLowering. */ + @java.lang.Override public boolean getDisableFunctionalOpsLowering() { return disableFunctionalOpsLowering_; } @@ -3160,6 +3105,8 @@ public boolean getDisableFunctionalOpsLowering() { * * * bool disable_functional_ops_lowering = 21; + * @param value The disableFunctionalOpsLowering to set. + * @return This builder for chaining. */ public Builder setDisableFunctionalOpsLowering(boolean value) { @@ -3175,6 +3122,7 @@ public Builder setDisableFunctionalOpsLowering(boolean value) { * * * bool disable_functional_ops_lowering = 21; + * @return This builder for chaining. */ public Builder clearDisableFunctionalOpsLowering() { @@ -3191,7 +3139,9 @@ public Builder clearDisableFunctionalOpsLowering() { * * * bool xla_prefer_single_graph_cluster = 22; + * @return The xlaPreferSingleGraphCluster. */ + @java.lang.Override public boolean getXlaPreferSingleGraphCluster() { return xlaPreferSingleGraphCluster_; } @@ -3202,6 +3152,8 @@ public boolean getXlaPreferSingleGraphCluster() { * * * bool xla_prefer_single_graph_cluster = 22; + * @param value The xlaPreferSingleGraphCluster to set. + * @return This builder for chaining. */ public Builder setXlaPreferSingleGraphCluster(boolean value) { @@ -3216,6 +3168,7 @@ public Builder setXlaPreferSingleGraphCluster(boolean value) { * * * bool xla_prefer_single_graph_cluster = 22; + * @return This builder for chaining. */ public Builder clearXlaPreferSingleGraphCluster() { @@ -3224,15 +3177,16 @@ public Builder clearXlaPreferSingleGraphCluster() { return this; } - private org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig coordinationConfig_; + private org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig coordinationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig, org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig.Builder, org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfigOrBuilder> coordinationConfigBuilder_; + org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig, org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig.Builder, org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfigOrBuilder> coordinationConfigBuilder_; /** *
        * Distributed coordination service configurations.
        * 
* * .tensorflow.CoordinationServiceConfig coordination_config = 23; + * @return Whether the coordinationConfig field is set. */ public boolean hasCoordinationConfig() { return coordinationConfigBuilder_ != null || coordinationConfig_ != null; @@ -3243,10 +3197,11 @@ public boolean hasCoordinationConfig() { * * * .tensorflow.CoordinationServiceConfig coordination_config = 23; + * @return The coordinationConfig. */ - public org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig getCoordinationConfig() { + public org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig getCoordinationConfig() { if (coordinationConfigBuilder_ == null) { - return coordinationConfig_ == null ? org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig.getDefaultInstance() : coordinationConfig_; + return coordinationConfig_ == null ? org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig.getDefaultInstance() : coordinationConfig_; } else { return coordinationConfigBuilder_.getMessage(); } @@ -3258,7 +3213,7 @@ public org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceCo * * .tensorflow.CoordinationServiceConfig coordination_config = 23; */ - public Builder setCoordinationConfig(org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig value) { + public Builder setCoordinationConfig(org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig value) { if (coordinationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3279,7 +3234,7 @@ public Builder setCoordinationConfig(org.tensorflow.proto.distruntime.Coordinati * .tensorflow.CoordinationServiceConfig coordination_config = 23; */ public Builder setCoordinationConfig( - org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig.Builder builderForValue) { + org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig.Builder builderForValue) { if (coordinationConfigBuilder_ == null) { coordinationConfig_ = builderForValue.build(); onChanged(); @@ -3296,11 +3251,11 @@ public Builder setCoordinationConfig( * * .tensorflow.CoordinationServiceConfig coordination_config = 23; */ - public Builder mergeCoordinationConfig(org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig value) { + public Builder mergeCoordinationConfig(org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig value) { if (coordinationConfigBuilder_ == null) { if (coordinationConfig_ != null) { coordinationConfig_ = - org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig.newBuilder(coordinationConfig_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig.newBuilder(coordinationConfig_).mergeFrom(value).buildPartial(); } else { coordinationConfig_ = value; } @@ -3336,7 +3291,7 @@ public Builder clearCoordinationConfig() { * * .tensorflow.CoordinationServiceConfig coordination_config = 23; */ - public org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig.Builder getCoordinationConfigBuilder() { + public org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig.Builder getCoordinationConfigBuilder() { onChanged(); return getCoordinationConfigFieldBuilder().getBuilder(); @@ -3348,12 +3303,12 @@ public org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceCo * * .tensorflow.CoordinationServiceConfig coordination_config = 23; */ - public org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfigOrBuilder getCoordinationConfigOrBuilder() { + public org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfigOrBuilder getCoordinationConfigOrBuilder() { if (coordinationConfigBuilder_ != null) { return coordinationConfigBuilder_.getMessageOrBuilder(); } else { return coordinationConfig_ == null ? - org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig.getDefaultInstance() : coordinationConfig_; + org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig.getDefaultInstance() : coordinationConfig_; } } /** @@ -3364,11 +3319,11 @@ public org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceCo * .tensorflow.CoordinationServiceConfig coordination_config = 23; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig, org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig.Builder, org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfigOrBuilder> + org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig, org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig.Builder, org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfigOrBuilder> getCoordinationConfigFieldBuilder() { if (coordinationConfigBuilder_ == null) { coordinationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig, org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfig.Builder, org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceConfigOrBuilder>( + org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig, org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig.Builder, org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfigOrBuilder>( getCoordinationConfig(), getParentForChildren(), isClean()); @@ -3376,6 +3331,67 @@ public org.tensorflow.proto.distruntime.CoordinationConfig.CoordinationServiceCo } return coordinationConfigBuilder_; } + + private boolean disableOptimizeForStaticGraph_ ; + /** + *
+       * If true, the session will treat the graph as being non-static for
+       * optimization purposes.
+       * If this option is set to true when a session is created, the full
+       * GraphDef will be retained to enable calls to Session::Extend().
+       * Calling Extend() without setting this flag will result in errors.
+       * This option is meant to replace `optimize_for_static_graph` and it
+       * aims to negate its value.
+       * 
+ * + * bool disable_optimize_for_static_graph = 24; + * @return The disableOptimizeForStaticGraph. + */ + @java.lang.Override + public boolean getDisableOptimizeForStaticGraph() { + return disableOptimizeForStaticGraph_; + } + /** + *
+       * If true, the session will treat the graph as being non-static for
+       * optimization purposes.
+       * If this option is set to true when a session is created, the full
+       * GraphDef will be retained to enable calls to Session::Extend().
+       * Calling Extend() without setting this flag will result in errors.
+       * This option is meant to replace `optimize_for_static_graph` and it
+       * aims to negate its value.
+       * 
+ * + * bool disable_optimize_for_static_graph = 24; + * @param value The disableOptimizeForStaticGraph to set. + * @return This builder for chaining. + */ + public Builder setDisableOptimizeForStaticGraph(boolean value) { + + disableOptimizeForStaticGraph_ = value; + onChanged(); + return this; + } + /** + *
+       * If true, the session will treat the graph as being non-static for
+       * optimization purposes.
+       * If this option is set to true when a session is created, the full
+       * GraphDef will be retained to enable calls to Session::Extend().
+       * Calling Extend() without setting this flag will result in errors.
+       * This option is meant to replace `optimize_for_static_graph` and it
+       * aims to negate its value.
+       * 
+ * + * bool disable_optimize_for_static_graph = 24; + * @return This builder for chaining. + */ + public Builder clearDisableOptimizeForStaticGraph() { + + disableOptimizeForStaticGraph_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3393,12 +3409,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.ConfigProto.Experimental) - private static final org.tensorflow.proto.framework.ConfigProto.Experimental DEFAULT_INSTANCE; + private static final org.tensorflow.proto.ConfigProto.Experimental DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.ConfigProto.Experimental(); + DEFAULT_INSTANCE = new org.tensorflow.proto.ConfigProto.Experimental(); } - public static org.tensorflow.proto.framework.ConfigProto.Experimental getDefaultInstance() { + public static org.tensorflow.proto.ConfigProto.Experimental getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -3409,7 +3425,18 @@ public Experimental parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Experimental(input, extensionRegistry); + 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(); } }; @@ -3423,7 +3450,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.ConfigProto.Experimental getDefaultInstanceForType() { + public org.tensorflow.proto.ConfigProto.Experimental getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -3435,7 +3462,7 @@ private static final class DeviceCountDefaultEntryHolder { java.lang.String, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( - org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_ConfigProto_DeviceCountEntry_descriptor, + org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_ConfigProto_DeviceCountEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT32, @@ -3466,14 +3493,16 @@ public int getDeviceCountCount() { * map<string, int32> device_count = 1; */ + @java.lang.Override public boolean containsDeviceCount( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } return internalGetDeviceCount().getMap().containsKey(key); } /** * Use {@link #getDeviceCountMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getDeviceCount() { return getDeviceCountMap(); @@ -3488,6 +3517,7 @@ public java.util.Map getDeviceCount() { * * map<string, int32> device_count = 1; */ + @java.lang.Override public java.util.Map getDeviceCountMap() { return internalGetDeviceCount().getMap(); @@ -3502,11 +3532,12 @@ public java.util.Map getDeviceCountMap() { * * map<string, int32> device_count = 1; */ + @java.lang.Override public int getDeviceCountOrDefault( java.lang.String key, int defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetDeviceCount().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -3521,10 +3552,11 @@ public int getDeviceCountOrDefault( * * map<string, int32> device_count = 1; */ + @java.lang.Override public int getDeviceCountOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetDeviceCount().getMap(); if (!map.containsKey(key)) { @@ -3552,7 +3584,9 @@ public int getDeviceCountOrThrow( * * * int32 intra_op_parallelism_threads = 2; + * @return The intraOpParallelismThreads. */ + @java.lang.Override public int getIntraOpParallelismThreads() { return intraOpParallelismThreads_; } @@ -3571,7 +3605,9 @@ public int getIntraOpParallelismThreads() { * * * int32 inter_op_parallelism_threads = 5; + * @return The interOpParallelismThreads. */ + @java.lang.Override public int getInterOpParallelismThreads() { return interOpParallelismThreads_; } @@ -3590,13 +3626,15 @@ public int getInterOpParallelismThreads() { * * * bool use_per_session_threads = 9; + * @return The usePerSessionThreads. */ + @java.lang.Override public boolean getUsePerSessionThreads() { return usePerSessionThreads_; } public static final int SESSION_INTER_OP_THREAD_POOL_FIELD_NUMBER = 12; - private java.util.List sessionInterOpThreadPool_; + private java.util.List sessionInterOpThreadPool_; /** *
    * This option is experimental - it may be replaced with a different mechanism
@@ -3620,7 +3658,8 @@ public boolean getUsePerSessionThreads() {
    *
    * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
    */
-  public java.util.List getSessionInterOpThreadPoolList() {
+  @java.lang.Override
+  public java.util.List getSessionInterOpThreadPoolList() {
     return sessionInterOpThreadPool_;
   }
   /**
@@ -3646,7 +3685,8 @@ public java.util.List getS
    *
    * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
    */
-  public java.util.List 
+  @java.lang.Override
+  public java.util.List 
       getSessionInterOpThreadPoolOrBuilderList() {
     return sessionInterOpThreadPool_;
   }
@@ -3673,6 +3713,7 @@ public java.util.List getS
    *
    * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
    */
+  @java.lang.Override
   public int getSessionInterOpThreadPoolCount() {
     return sessionInterOpThreadPool_.size();
   }
@@ -3699,7 +3740,8 @@ public int getSessionInterOpThreadPoolCount() {
    *
    * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
    */
-  public org.tensorflow.proto.framework.ThreadPoolOptionProto getSessionInterOpThreadPool(int index) {
+  @java.lang.Override
+  public org.tensorflow.proto.ThreadPoolOptionProto getSessionInterOpThreadPool(int index) {
     return sessionInterOpThreadPool_.get(index);
   }
   /**
@@ -3725,7 +3767,8 @@ public org.tensorflow.proto.framework.ThreadPoolOptionProto getSessionInterOpThr
    *
    * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
    */
-  public org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpThreadPoolOrBuilder(
+  @java.lang.Override
+  public org.tensorflow.proto.ThreadPoolOptionProtoOrBuilder getSessionInterOpThreadPoolOrBuilder(
       int index) {
     return sessionInterOpThreadPool_.get(index);
   }
@@ -3740,7 +3783,9 @@ public org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionI
    * 
* * int32 placement_period = 3; + * @return The placementPeriod. */ + @java.lang.Override public int getPlacementPeriod() { return placementPeriod_; } @@ -3755,6 +3800,7 @@ public int getPlacementPeriod() { * * * repeated string device_filters = 4; + * @return A list containing the deviceFilters. */ public com.google.protobuf.ProtocolStringList getDeviceFiltersList() { @@ -3768,6 +3814,7 @@ public int getPlacementPeriod() { * * * repeated string device_filters = 4; + * @return The count of deviceFilters. */ public int getDeviceFiltersCount() { return deviceFilters_.size(); @@ -3780,6 +3827,8 @@ public int getDeviceFiltersCount() { * * * repeated string device_filters = 4; + * @param index The index of the element to return. + * @return The deviceFilters at the given index. */ public java.lang.String getDeviceFilters(int index) { return deviceFilters_.get(index); @@ -3792,6 +3841,8 @@ public java.lang.String getDeviceFilters(int index) { * * * repeated string device_filters = 4; + * @param index The index of the value to return. + * @return The bytes of the deviceFilters at the given index. */ public com.google.protobuf.ByteString getDeviceFiltersBytes(int index) { @@ -3799,14 +3850,16 @@ public java.lang.String getDeviceFilters(int index) { } public static final int GPU_OPTIONS_FIELD_NUMBER = 6; - private org.tensorflow.proto.framework.GPUOptions gpuOptions_; + private org.tensorflow.proto.GPUOptions gpuOptions_; /** *
    * Options that apply to all GPUs.
    * 
* * .tensorflow.GPUOptions gpu_options = 6; + * @return Whether the gpuOptions field is set. */ + @java.lang.Override public boolean hasGpuOptions() { return gpuOptions_ != null; } @@ -3816,9 +3869,11 @@ public boolean hasGpuOptions() { * * * .tensorflow.GPUOptions gpu_options = 6; + * @return The gpuOptions. */ - public org.tensorflow.proto.framework.GPUOptions getGpuOptions() { - return gpuOptions_ == null ? org.tensorflow.proto.framework.GPUOptions.getDefaultInstance() : gpuOptions_; + @java.lang.Override + public org.tensorflow.proto.GPUOptions getGpuOptions() { + return gpuOptions_ == null ? org.tensorflow.proto.GPUOptions.getDefaultInstance() : gpuOptions_; } /** *
@@ -3827,7 +3882,8 @@ public org.tensorflow.proto.framework.GPUOptions getGpuOptions() {
    *
    * .tensorflow.GPUOptions gpu_options = 6;
    */
-  public org.tensorflow.proto.framework.GPUOptionsOrBuilder getGpuOptionsOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.GPUOptionsOrBuilder getGpuOptionsOrBuilder() {
     return getGpuOptions();
   }
 
@@ -3845,7 +3901,9 @@ public org.tensorflow.proto.framework.GPUOptionsOrBuilder getGpuOptionsOrBuilder
    * 
* * bool allow_soft_placement = 7; + * @return The allowSoftPlacement. */ + @java.lang.Override public boolean getAllowSoftPlacement() { return allowSoftPlacement_; } @@ -3858,20 +3916,24 @@ public boolean getAllowSoftPlacement() { * * * bool log_device_placement = 8; + * @return The logDevicePlacement. */ + @java.lang.Override public boolean getLogDevicePlacement() { return logDevicePlacement_; } public static final int GRAPH_OPTIONS_FIELD_NUMBER = 10; - private org.tensorflow.proto.framework.GraphOptions graphOptions_; + private org.tensorflow.proto.GraphOptions graphOptions_; /** *
    * Options that apply to all graphs.
    * 
* * .tensorflow.GraphOptions graph_options = 10; + * @return Whether the graphOptions field is set. */ + @java.lang.Override public boolean hasGraphOptions() { return graphOptions_ != null; } @@ -3881,9 +3943,11 @@ public boolean hasGraphOptions() { * * * .tensorflow.GraphOptions graph_options = 10; + * @return The graphOptions. */ - public org.tensorflow.proto.framework.GraphOptions getGraphOptions() { - return graphOptions_ == null ? org.tensorflow.proto.framework.GraphOptions.getDefaultInstance() : graphOptions_; + @java.lang.Override + public org.tensorflow.proto.GraphOptions getGraphOptions() { + return graphOptions_ == null ? org.tensorflow.proto.GraphOptions.getDefaultInstance() : graphOptions_; } /** *
@@ -3892,7 +3956,8 @@ public org.tensorflow.proto.framework.GraphOptions getGraphOptions() {
    *
    * .tensorflow.GraphOptions graph_options = 10;
    */
-  public org.tensorflow.proto.framework.GraphOptionsOrBuilder getGraphOptionsOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.GraphOptionsOrBuilder getGraphOptionsOrBuilder() {
     return getGraphOptions();
   }
 
@@ -3906,20 +3971,24 @@ public org.tensorflow.proto.framework.GraphOptionsOrBuilder getGraphOptionsOrBui
    * 
* * int64 operation_timeout_in_ms = 11; + * @return The operationTimeoutInMs. */ + @java.lang.Override public long getOperationTimeoutInMs() { return operationTimeoutInMs_; } public static final int RPC_OPTIONS_FIELD_NUMBER = 13; - private org.tensorflow.proto.framework.RPCOptions rpcOptions_; + private org.tensorflow.proto.RpcOptions.RPCOptions rpcOptions_; /** *
    * Options that apply when this session uses the distributed runtime.
    * 
* * .tensorflow.RPCOptions rpc_options = 13; + * @return Whether the rpcOptions field is set. */ + @java.lang.Override public boolean hasRpcOptions() { return rpcOptions_ != null; } @@ -3929,9 +3998,11 @@ public boolean hasRpcOptions() { * * * .tensorflow.RPCOptions rpc_options = 13; + * @return The rpcOptions. */ - public org.tensorflow.proto.framework.RPCOptions getRpcOptions() { - return rpcOptions_ == null ? org.tensorflow.proto.framework.RPCOptions.getDefaultInstance() : rpcOptions_; + @java.lang.Override + public org.tensorflow.proto.RpcOptions.RPCOptions getRpcOptions() { + return rpcOptions_ == null ? org.tensorflow.proto.RpcOptions.RPCOptions.getDefaultInstance() : rpcOptions_; } /** *
@@ -3940,19 +4011,22 @@ public org.tensorflow.proto.framework.RPCOptions getRpcOptions() {
    *
    * .tensorflow.RPCOptions rpc_options = 13;
    */
-  public org.tensorflow.proto.framework.RPCOptionsOrBuilder getRpcOptionsOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.RpcOptions.RPCOptionsOrBuilder getRpcOptionsOrBuilder() {
     return getRpcOptions();
   }
 
   public static final int CLUSTER_DEF_FIELD_NUMBER = 14;
-  private org.tensorflow.proto.distruntime.ClusterDef clusterDef_;
+  private org.tensorflow.proto.ClusterDef clusterDef_;
   /**
    * 
    * Optional list of all workers to use in this session.
    * 
* * .tensorflow.ClusterDef cluster_def = 14; + * @return Whether the clusterDef field is set. */ + @java.lang.Override public boolean hasClusterDef() { return clusterDef_ != null; } @@ -3962,9 +4036,11 @@ public boolean hasClusterDef() { *
* * .tensorflow.ClusterDef cluster_def = 14; + * @return The clusterDef. */ - public org.tensorflow.proto.distruntime.ClusterDef getClusterDef() { - return clusterDef_ == null ? org.tensorflow.proto.distruntime.ClusterDef.getDefaultInstance() : clusterDef_; + @java.lang.Override + public org.tensorflow.proto.ClusterDef getClusterDef() { + return clusterDef_ == null ? org.tensorflow.proto.ClusterDef.getDefaultInstance() : clusterDef_; } /** *
@@ -3973,7 +4049,8 @@ public org.tensorflow.proto.distruntime.ClusterDef getClusterDef() {
    *
    * .tensorflow.ClusterDef cluster_def = 14;
    */
-  public org.tensorflow.proto.distruntime.ClusterDefOrBuilder getClusterDefOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.ClusterDefOrBuilder getClusterDefOrBuilder() {
     return getClusterDef();
   }
 
@@ -3987,7 +4064,9 @@ public org.tensorflow.proto.distruntime.ClusterDefOrBuilder getClusterDefOrBuild
    * 
* * bool isolate_session_state = 15; + * @return The isolateSessionState. */ + @java.lang.Override public boolean getIsolateSessionState() { return isolateSessionState_; } @@ -4003,29 +4082,36 @@ public boolean getIsolateSessionState() { * * * bool share_cluster_devices_in_session = 17; + * @return The shareClusterDevicesInSession. */ + @java.lang.Override public boolean getShareClusterDevicesInSession() { return shareClusterDevicesInSession_; } public static final int EXPERIMENTAL_FIELD_NUMBER = 16; - private org.tensorflow.proto.framework.ConfigProto.Experimental experimental_; + private org.tensorflow.proto.ConfigProto.Experimental experimental_; /** * .tensorflow.ConfigProto.Experimental experimental = 16; + * @return Whether the experimental field is set. */ + @java.lang.Override public boolean hasExperimental() { return experimental_ != null; } /** * .tensorflow.ConfigProto.Experimental experimental = 16; + * @return The experimental. */ - public org.tensorflow.proto.framework.ConfigProto.Experimental getExperimental() { - return experimental_ == null ? org.tensorflow.proto.framework.ConfigProto.Experimental.getDefaultInstance() : experimental_; + @java.lang.Override + public org.tensorflow.proto.ConfigProto.Experimental getExperimental() { + return experimental_ == null ? org.tensorflow.proto.ConfigProto.Experimental.getDefaultInstance() : experimental_; } /** * .tensorflow.ConfigProto.Experimental experimental = 16; */ - public org.tensorflow.proto.framework.ConfigProto.ExperimentalOrBuilder getExperimentalOrBuilder() { + @java.lang.Override + public org.tensorflow.proto.ConfigProto.ExperimentalOrBuilder getExperimentalOrBuilder() { return getExperimental(); } @@ -4097,7 +4183,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (shareClusterDevicesInSession_ != false) { output.writeBool(17, shareClusterDevicesInSession_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -4184,7 +4270,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(17, shareClusterDevicesInSession_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -4194,10 +4280,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.ConfigProto)) { + if (!(obj instanceof org.tensorflow.proto.ConfigProto)) { return super.equals(obj); } - org.tensorflow.proto.framework.ConfigProto other = (org.tensorflow.proto.framework.ConfigProto) obj; + org.tensorflow.proto.ConfigProto other = (org.tensorflow.proto.ConfigProto) obj; if (!internalGetDeviceCount().equals( other.internalGetDeviceCount())) return false; @@ -4248,7 +4334,7 @@ public boolean equals(final java.lang.Object obj) { if (!getExperimental() .equals(other.getExperimental())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4315,74 +4401,74 @@ public int hashCode() { hash = (37 * hash) + EXPERIMENTAL_FIELD_NUMBER; hash = (53 * hash) + getExperimental().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.ConfigProto parseFrom( + public static org.tensorflow.proto.ConfigProto parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.ConfigProto parseFrom( + public static org.tensorflow.proto.ConfigProto parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.ConfigProto parseFrom( + public static org.tensorflow.proto.ConfigProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.ConfigProto parseFrom( + public static org.tensorflow.proto.ConfigProto parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.ConfigProto parseFrom(byte[] data) + public static org.tensorflow.proto.ConfigProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.ConfigProto parseFrom( + public static org.tensorflow.proto.ConfigProto parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.ConfigProto parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.ConfigProto parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.ConfigProto parseFrom( + public static org.tensorflow.proto.ConfigProto 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 org.tensorflow.proto.framework.ConfigProto parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.ConfigProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.ConfigProto parseDelimitedFrom( + public static org.tensorflow.proto.ConfigProto 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 org.tensorflow.proto.framework.ConfigProto parseFrom( + public static org.tensorflow.proto.ConfigProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.ConfigProto parseFrom( + public static org.tensorflow.proto.ConfigProto parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -4395,7 +4481,7 @@ public static org.tensorflow.proto.framework.ConfigProto parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.ConfigProto prototype) { + public static Builder newBuilder(org.tensorflow.proto.ConfigProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -4421,10 +4507,10 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.ConfigProto) - org.tensorflow.proto.framework.ConfigProtoOrBuilder { + org.tensorflow.proto.ConfigProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_ConfigProto_descriptor; + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_ConfigProto_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -4452,26 +4538,20 @@ protected com.google.protobuf.MapField internalGetMutableMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_ConfigProto_fieldAccessorTable + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_ConfigProto_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ConfigProto.class, org.tensorflow.proto.framework.ConfigProto.Builder.class); + org.tensorflow.proto.ConfigProto.class, org.tensorflow.proto.ConfigProto.Builder.class); } - // Construct using org.tensorflow.proto.framework.ConfigProto.newBuilder() + // Construct using org.tensorflow.proto.ConfigProto.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSessionInterOpThreadPoolFieldBuilder(); - } + } @java.lang.Override public Builder clear() { @@ -4485,10 +4565,11 @@ public Builder clear() { if (sessionInterOpThreadPoolBuilder_ == null) { sessionInterOpThreadPool_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + sessionInterOpThreadPool_ = null; sessionInterOpThreadPoolBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); placementPeriod_ = 0; deviceFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -4539,17 +4620,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_ConfigProto_descriptor; + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_ConfigProto_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.ConfigProto getDefaultInstanceForType() { - return org.tensorflow.proto.framework.ConfigProto.getDefaultInstance(); + public org.tensorflow.proto.ConfigProto getDefaultInstanceForType() { + return org.tensorflow.proto.ConfigProto.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.ConfigProto build() { - org.tensorflow.proto.framework.ConfigProto result = buildPartial(); + public org.tensorflow.proto.ConfigProto build() { + org.tensorflow.proto.ConfigProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4557,8 +4638,8 @@ public org.tensorflow.proto.framework.ConfigProto build() { } @java.lang.Override - public org.tensorflow.proto.framework.ConfigProto buildPartial() { - org.tensorflow.proto.framework.ConfigProto result = new org.tensorflow.proto.framework.ConfigProto(this); + public org.tensorflow.proto.ConfigProto buildPartial() { + org.tensorflow.proto.ConfigProto result = new org.tensorflow.proto.ConfigProto(this); int from_bitField0_ = bitField0_; result.deviceCount_ = internalGetDeviceCount(); result.deviceCount_.makeImmutable(); @@ -4648,16 +4729,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.ConfigProto) { - return mergeFrom((org.tensorflow.proto.framework.ConfigProto)other); + if (other instanceof org.tensorflow.proto.ConfigProto) { + return mergeFrom((org.tensorflow.proto.ConfigProto)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.ConfigProto other) { - if (other == org.tensorflow.proto.framework.ConfigProto.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.ConfigProto other) { + if (other == org.tensorflow.proto.ConfigProto.getDefaultInstance()) return this; internalGetMutableDeviceCount().mergeFrom( other.internalGetDeviceCount()); if (other.getIntraOpParallelismThreads() != 0) { @@ -4738,7 +4819,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.ConfigProto other) { if (other.hasExperimental()) { mergeExperimental(other.getExperimental()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -4753,17 +4834,137 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.ConfigProto parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.MapEntry + deviceCount__ = input.readMessage( + DeviceCountDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableDeviceCount().getMutableMap().put( + deviceCount__.getKey(), deviceCount__.getValue()); + break; + } // case 10 + case 16: { + intraOpParallelismThreads_ = input.readInt32(); + + break; + } // case 16 + case 24: { + placementPeriod_ = input.readInt32(); + + break; + } // case 24 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureDeviceFiltersIsMutable(); + deviceFilters_.add(s); + break; + } // case 34 + case 40: { + interOpParallelismThreads_ = input.readInt32(); + + break; + } // case 40 + case 50: { + input.readMessage( + getGpuOptionsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + case 56: { + allowSoftPlacement_ = input.readBool(); + + break; + } // case 56 + case 64: { + logDevicePlacement_ = input.readBool(); + + break; + } // case 64 + case 72: { + usePerSessionThreads_ = input.readBool(); + + break; + } // case 72 + case 82: { + input.readMessage( + getGraphOptionsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 82 + case 88: { + operationTimeoutInMs_ = input.readInt64(); + + break; + } // case 88 + case 98: { + org.tensorflow.proto.ThreadPoolOptionProto m = + input.readMessage( + org.tensorflow.proto.ThreadPoolOptionProto.parser(), + extensionRegistry); + if (sessionInterOpThreadPoolBuilder_ == null) { + ensureSessionInterOpThreadPoolIsMutable(); + sessionInterOpThreadPool_.add(m); + } else { + sessionInterOpThreadPoolBuilder_.addMessage(m); + } + break; + } // case 98 + case 106: { + input.readMessage( + getRpcOptionsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 106 + case 114: { + input.readMessage( + getClusterDefFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 114 + case 120: { + isolateSessionState_ = input.readBool(); + + break; + } // case 120 + case 130: { + input.readMessage( + getExperimentalFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 130 + case 136: { + shareClusterDevicesInSession_ = input.readBool(); + + break; + } // case 136 + 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) { - parsedMessage = (org.tensorflow.proto.framework.ConfigProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -4805,14 +5006,16 @@ public int getDeviceCountCount() { * map<string, int32> device_count = 1; */ + @java.lang.Override public boolean containsDeviceCount( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } return internalGetDeviceCount().getMap().containsKey(key); } /** * Use {@link #getDeviceCountMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getDeviceCount() { return getDeviceCountMap(); @@ -4827,6 +5030,7 @@ public java.util.Map getDeviceCount() { * * map<string, int32> device_count = 1; */ + @java.lang.Override public java.util.Map getDeviceCountMap() { return internalGetDeviceCount().getMap(); @@ -4841,11 +5045,12 @@ public java.util.Map getDeviceCountMap() { * * map<string, int32> device_count = 1; */ + @java.lang.Override public int getDeviceCountOrDefault( java.lang.String key, int defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetDeviceCount().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -4860,10 +5065,11 @@ public int getDeviceCountOrDefault( * * map<string, int32> device_count = 1; */ + @java.lang.Override public int getDeviceCountOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetDeviceCount().getMap(); if (!map.containsKey(key)) { @@ -4890,7 +5096,7 @@ public Builder clearDeviceCount() { public Builder removeDeviceCount( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } internalGetMutableDeviceCount().getMutableMap() .remove(key); return this; @@ -4916,7 +5122,7 @@ public Builder removeDeviceCount( public Builder putDeviceCount( java.lang.String key, int value) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } internalGetMutableDeviceCount().getMutableMap() .put(key, value); @@ -4958,7 +5164,9 @@ public Builder putAllDeviceCount( * * * int32 intra_op_parallelism_threads = 2; + * @return The intraOpParallelismThreads. */ + @java.lang.Override public int getIntraOpParallelismThreads() { return intraOpParallelismThreads_; } @@ -4979,6 +5187,8 @@ public int getIntraOpParallelismThreads() { * * * int32 intra_op_parallelism_threads = 2; + * @param value The intraOpParallelismThreads to set. + * @return This builder for chaining. */ public Builder setIntraOpParallelismThreads(int value) { @@ -5003,6 +5213,7 @@ public Builder setIntraOpParallelismThreads(int value) { * * * int32 intra_op_parallelism_threads = 2; + * @return This builder for chaining. */ public Builder clearIntraOpParallelismThreads() { @@ -5024,7 +5235,9 @@ public Builder clearIntraOpParallelismThreads() { * * * int32 inter_op_parallelism_threads = 5; + * @return The interOpParallelismThreads. */ + @java.lang.Override public int getInterOpParallelismThreads() { return interOpParallelismThreads_; } @@ -5040,6 +5253,8 @@ public int getInterOpParallelismThreads() { * * * int32 inter_op_parallelism_threads = 5; + * @param value The interOpParallelismThreads to set. + * @return This builder for chaining. */ public Builder setInterOpParallelismThreads(int value) { @@ -5059,6 +5274,7 @@ public Builder setInterOpParallelismThreads(int value) { * * * int32 inter_op_parallelism_threads = 5; + * @return This builder for chaining. */ public Builder clearInterOpParallelismThreads() { @@ -5080,7 +5296,9 @@ public Builder clearInterOpParallelismThreads() { * * * bool use_per_session_threads = 9; + * @return The usePerSessionThreads. */ + @java.lang.Override public boolean getUsePerSessionThreads() { return usePerSessionThreads_; } @@ -5096,6 +5314,8 @@ public boolean getUsePerSessionThreads() { * * * bool use_per_session_threads = 9; + * @param value The usePerSessionThreads to set. + * @return This builder for chaining. */ public Builder setUsePerSessionThreads(boolean value) { @@ -5115,6 +5335,7 @@ public Builder setUsePerSessionThreads(boolean value) { * * * bool use_per_session_threads = 9; + * @return This builder for chaining. */ public Builder clearUsePerSessionThreads() { @@ -5123,17 +5344,17 @@ public Builder clearUsePerSessionThreads() { return this; } - private java.util.List sessionInterOpThreadPool_ = + private java.util.List sessionInterOpThreadPool_ = java.util.Collections.emptyList(); private void ensureSessionInterOpThreadPoolIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - sessionInterOpThreadPool_ = new java.util.ArrayList(sessionInterOpThreadPool_); + sessionInterOpThreadPool_ = new java.util.ArrayList(sessionInterOpThreadPool_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ThreadPoolOptionProto, org.tensorflow.proto.framework.ThreadPoolOptionProto.Builder, org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder> sessionInterOpThreadPoolBuilder_; + org.tensorflow.proto.ThreadPoolOptionProto, org.tensorflow.proto.ThreadPoolOptionProto.Builder, org.tensorflow.proto.ThreadPoolOptionProtoOrBuilder> sessionInterOpThreadPoolBuilder_; /** *
@@ -5158,7 +5379,7 @@ private void ensureSessionInterOpThreadPoolIsMutable() {
      *
      * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
      */
-    public java.util.List getSessionInterOpThreadPoolList() {
+    public java.util.List getSessionInterOpThreadPoolList() {
       if (sessionInterOpThreadPoolBuilder_ == null) {
         return java.util.Collections.unmodifiableList(sessionInterOpThreadPool_);
       } else {
@@ -5218,7 +5439,7 @@ public int getSessionInterOpThreadPoolCount() {
      *
      * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
      */
-    public org.tensorflow.proto.framework.ThreadPoolOptionProto getSessionInterOpThreadPool(int index) {
+    public org.tensorflow.proto.ThreadPoolOptionProto getSessionInterOpThreadPool(int index) {
       if (sessionInterOpThreadPoolBuilder_ == null) {
         return sessionInterOpThreadPool_.get(index);
       } else {
@@ -5249,7 +5470,7 @@ public org.tensorflow.proto.framework.ThreadPoolOptionProto getSessionInterOpThr
      * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
      */
     public Builder setSessionInterOpThreadPool(
-        int index, org.tensorflow.proto.framework.ThreadPoolOptionProto value) {
+        int index, org.tensorflow.proto.ThreadPoolOptionProto value) {
       if (sessionInterOpThreadPoolBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -5286,7 +5507,7 @@ public Builder setSessionInterOpThreadPool(
      * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
      */
     public Builder setSessionInterOpThreadPool(
-        int index, org.tensorflow.proto.framework.ThreadPoolOptionProto.Builder builderForValue) {
+        int index, org.tensorflow.proto.ThreadPoolOptionProto.Builder builderForValue) {
       if (sessionInterOpThreadPoolBuilder_ == null) {
         ensureSessionInterOpThreadPoolIsMutable();
         sessionInterOpThreadPool_.set(index, builderForValue.build());
@@ -5319,7 +5540,7 @@ public Builder setSessionInterOpThreadPool(
      *
      * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
      */
-    public Builder addSessionInterOpThreadPool(org.tensorflow.proto.framework.ThreadPoolOptionProto value) {
+    public Builder addSessionInterOpThreadPool(org.tensorflow.proto.ThreadPoolOptionProto value) {
       if (sessionInterOpThreadPoolBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -5356,7 +5577,7 @@ public Builder addSessionInterOpThreadPool(org.tensorflow.proto.framework.Thread
      * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
      */
     public Builder addSessionInterOpThreadPool(
-        int index, org.tensorflow.proto.framework.ThreadPoolOptionProto value) {
+        int index, org.tensorflow.proto.ThreadPoolOptionProto value) {
       if (sessionInterOpThreadPoolBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -5393,7 +5614,7 @@ public Builder addSessionInterOpThreadPool(
      * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
      */
     public Builder addSessionInterOpThreadPool(
-        org.tensorflow.proto.framework.ThreadPoolOptionProto.Builder builderForValue) {
+        org.tensorflow.proto.ThreadPoolOptionProto.Builder builderForValue) {
       if (sessionInterOpThreadPoolBuilder_ == null) {
         ensureSessionInterOpThreadPoolIsMutable();
         sessionInterOpThreadPool_.add(builderForValue.build());
@@ -5427,7 +5648,7 @@ public Builder addSessionInterOpThreadPool(
      * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
      */
     public Builder addSessionInterOpThreadPool(
-        int index, org.tensorflow.proto.framework.ThreadPoolOptionProto.Builder builderForValue) {
+        int index, org.tensorflow.proto.ThreadPoolOptionProto.Builder builderForValue) {
       if (sessionInterOpThreadPoolBuilder_ == null) {
         ensureSessionInterOpThreadPoolIsMutable();
         sessionInterOpThreadPool_.add(index, builderForValue.build());
@@ -5461,7 +5682,7 @@ public Builder addSessionInterOpThreadPool(
      * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
      */
     public Builder addAllSessionInterOpThreadPool(
-        java.lang.Iterable values) {
+        java.lang.Iterable values) {
       if (sessionInterOpThreadPoolBuilder_ == null) {
         ensureSessionInterOpThreadPoolIsMutable();
         com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -5561,7 +5782,7 @@ public Builder removeSessionInterOpThreadPool(int index) {
      *
      * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
      */
-    public org.tensorflow.proto.framework.ThreadPoolOptionProto.Builder getSessionInterOpThreadPoolBuilder(
+    public org.tensorflow.proto.ThreadPoolOptionProto.Builder getSessionInterOpThreadPoolBuilder(
         int index) {
       return getSessionInterOpThreadPoolFieldBuilder().getBuilder(index);
     }
@@ -5588,7 +5809,7 @@ public org.tensorflow.proto.framework.ThreadPoolOptionProto.Builder getSessionIn
      *
      * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
      */
-    public org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpThreadPoolOrBuilder(
+    public org.tensorflow.proto.ThreadPoolOptionProtoOrBuilder getSessionInterOpThreadPoolOrBuilder(
         int index) {
       if (sessionInterOpThreadPoolBuilder_ == null) {
         return sessionInterOpThreadPool_.get(index);  } else {
@@ -5618,7 +5839,7 @@ public org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionI
      *
      * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
      */
-    public java.util.List 
+    public java.util.List 
          getSessionInterOpThreadPoolOrBuilderList() {
       if (sessionInterOpThreadPoolBuilder_ != null) {
         return sessionInterOpThreadPoolBuilder_.getMessageOrBuilderList();
@@ -5649,9 +5870,9 @@ public org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionI
      *
      * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
      */
-    public org.tensorflow.proto.framework.ThreadPoolOptionProto.Builder addSessionInterOpThreadPoolBuilder() {
+    public org.tensorflow.proto.ThreadPoolOptionProto.Builder addSessionInterOpThreadPoolBuilder() {
       return getSessionInterOpThreadPoolFieldBuilder().addBuilder(
-          org.tensorflow.proto.framework.ThreadPoolOptionProto.getDefaultInstance());
+          org.tensorflow.proto.ThreadPoolOptionProto.getDefaultInstance());
     }
     /**
      * 
@@ -5676,10 +5897,10 @@ public org.tensorflow.proto.framework.ThreadPoolOptionProto.Builder addSessionIn
      *
      * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
      */
-    public org.tensorflow.proto.framework.ThreadPoolOptionProto.Builder addSessionInterOpThreadPoolBuilder(
+    public org.tensorflow.proto.ThreadPoolOptionProto.Builder addSessionInterOpThreadPoolBuilder(
         int index) {
       return getSessionInterOpThreadPoolFieldBuilder().addBuilder(
-          index, org.tensorflow.proto.framework.ThreadPoolOptionProto.getDefaultInstance());
+          index, org.tensorflow.proto.ThreadPoolOptionProto.getDefaultInstance());
     }
     /**
      * 
@@ -5704,16 +5925,16 @@ public org.tensorflow.proto.framework.ThreadPoolOptionProto.Builder addSessionIn
      *
      * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
      */
-    public java.util.List 
+    public java.util.List 
          getSessionInterOpThreadPoolBuilderList() {
       return getSessionInterOpThreadPoolFieldBuilder().getBuilderList();
     }
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        org.tensorflow.proto.framework.ThreadPoolOptionProto, org.tensorflow.proto.framework.ThreadPoolOptionProto.Builder, org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder> 
+        org.tensorflow.proto.ThreadPoolOptionProto, org.tensorflow.proto.ThreadPoolOptionProto.Builder, org.tensorflow.proto.ThreadPoolOptionProtoOrBuilder> 
         getSessionInterOpThreadPoolFieldBuilder() {
       if (sessionInterOpThreadPoolBuilder_ == null) {
         sessionInterOpThreadPoolBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            org.tensorflow.proto.framework.ThreadPoolOptionProto, org.tensorflow.proto.framework.ThreadPoolOptionProto.Builder, org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder>(
+            org.tensorflow.proto.ThreadPoolOptionProto, org.tensorflow.proto.ThreadPoolOptionProto.Builder, org.tensorflow.proto.ThreadPoolOptionProtoOrBuilder>(
                 sessionInterOpThreadPool_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -5732,7 +5953,9 @@ public org.tensorflow.proto.framework.ThreadPoolOptionProto.Builder addSessionIn
      * 
* * int32 placement_period = 3; + * @return The placementPeriod. */ + @java.lang.Override public int getPlacementPeriod() { return placementPeriod_; } @@ -5744,6 +5967,8 @@ public int getPlacementPeriod() { *
* * int32 placement_period = 3; + * @param value The placementPeriod to set. + * @return This builder for chaining. */ public Builder setPlacementPeriod(int value) { @@ -5759,6 +5984,7 @@ public Builder setPlacementPeriod(int value) { *
* * int32 placement_period = 3; + * @return This builder for chaining. */ public Builder clearPlacementPeriod() { @@ -5782,6 +6008,7 @@ private void ensureDeviceFiltersIsMutable() { * * * repeated string device_filters = 4; + * @return A list containing the deviceFilters. */ public com.google.protobuf.ProtocolStringList getDeviceFiltersList() { @@ -5795,6 +6022,7 @@ private void ensureDeviceFiltersIsMutable() { * * * repeated string device_filters = 4; + * @return The count of deviceFilters. */ public int getDeviceFiltersCount() { return deviceFilters_.size(); @@ -5807,6 +6035,8 @@ public int getDeviceFiltersCount() { * * * repeated string device_filters = 4; + * @param index The index of the element to return. + * @return The deviceFilters at the given index. */ public java.lang.String getDeviceFilters(int index) { return deviceFilters_.get(index); @@ -5819,6 +6049,8 @@ public java.lang.String getDeviceFilters(int index) { * * * repeated string device_filters = 4; + * @param index The index of the value to return. + * @return The bytes of the deviceFilters at the given index. */ public com.google.protobuf.ByteString getDeviceFiltersBytes(int index) { @@ -5832,6 +6064,9 @@ public java.lang.String getDeviceFilters(int index) { * * * repeated string device_filters = 4; + * @param index The index to set the value at. + * @param value The deviceFilters to set. + * @return This builder for chaining. */ public Builder setDeviceFilters( int index, java.lang.String value) { @@ -5851,6 +6086,8 @@ public Builder setDeviceFilters( * * * repeated string device_filters = 4; + * @param value The deviceFilters to add. + * @return This builder for chaining. */ public Builder addDeviceFilters( java.lang.String value) { @@ -5870,6 +6107,8 @@ public Builder addDeviceFilters( * * * repeated string device_filters = 4; + * @param values The deviceFilters to add. + * @return This builder for chaining. */ public Builder addAllDeviceFilters( java.lang.Iterable values) { @@ -5887,6 +6126,7 @@ public Builder addAllDeviceFilters( * * * repeated string device_filters = 4; + * @return This builder for chaining. */ public Builder clearDeviceFilters() { deviceFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -5902,6 +6142,8 @@ public Builder clearDeviceFilters() { * * * repeated string device_filters = 4; + * @param value The bytes of the deviceFilters to add. + * @return This builder for chaining. */ public Builder addDeviceFiltersBytes( com.google.protobuf.ByteString value) { @@ -5915,15 +6157,16 @@ public Builder addDeviceFiltersBytes( return this; } - private org.tensorflow.proto.framework.GPUOptions gpuOptions_; + private org.tensorflow.proto.GPUOptions gpuOptions_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.GPUOptions, org.tensorflow.proto.framework.GPUOptions.Builder, org.tensorflow.proto.framework.GPUOptionsOrBuilder> gpuOptionsBuilder_; + org.tensorflow.proto.GPUOptions, org.tensorflow.proto.GPUOptions.Builder, org.tensorflow.proto.GPUOptionsOrBuilder> gpuOptionsBuilder_; /** *
      * Options that apply to all GPUs.
      * 
* * .tensorflow.GPUOptions gpu_options = 6; + * @return Whether the gpuOptions field is set. */ public boolean hasGpuOptions() { return gpuOptionsBuilder_ != null || gpuOptions_ != null; @@ -5934,10 +6177,11 @@ public boolean hasGpuOptions() { * * * .tensorflow.GPUOptions gpu_options = 6; + * @return The gpuOptions. */ - public org.tensorflow.proto.framework.GPUOptions getGpuOptions() { + public org.tensorflow.proto.GPUOptions getGpuOptions() { if (gpuOptionsBuilder_ == null) { - return gpuOptions_ == null ? org.tensorflow.proto.framework.GPUOptions.getDefaultInstance() : gpuOptions_; + return gpuOptions_ == null ? org.tensorflow.proto.GPUOptions.getDefaultInstance() : gpuOptions_; } else { return gpuOptionsBuilder_.getMessage(); } @@ -5949,7 +6193,7 @@ public org.tensorflow.proto.framework.GPUOptions getGpuOptions() { * * .tensorflow.GPUOptions gpu_options = 6; */ - public Builder setGpuOptions(org.tensorflow.proto.framework.GPUOptions value) { + public Builder setGpuOptions(org.tensorflow.proto.GPUOptions value) { if (gpuOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5970,7 +6214,7 @@ public Builder setGpuOptions(org.tensorflow.proto.framework.GPUOptions value) { * .tensorflow.GPUOptions gpu_options = 6; */ public Builder setGpuOptions( - org.tensorflow.proto.framework.GPUOptions.Builder builderForValue) { + org.tensorflow.proto.GPUOptions.Builder builderForValue) { if (gpuOptionsBuilder_ == null) { gpuOptions_ = builderForValue.build(); onChanged(); @@ -5987,11 +6231,11 @@ public Builder setGpuOptions( * * .tensorflow.GPUOptions gpu_options = 6; */ - public Builder mergeGpuOptions(org.tensorflow.proto.framework.GPUOptions value) { + public Builder mergeGpuOptions(org.tensorflow.proto.GPUOptions value) { if (gpuOptionsBuilder_ == null) { if (gpuOptions_ != null) { gpuOptions_ = - org.tensorflow.proto.framework.GPUOptions.newBuilder(gpuOptions_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.GPUOptions.newBuilder(gpuOptions_).mergeFrom(value).buildPartial(); } else { gpuOptions_ = value; } @@ -6027,7 +6271,7 @@ public Builder clearGpuOptions() { * * .tensorflow.GPUOptions gpu_options = 6; */ - public org.tensorflow.proto.framework.GPUOptions.Builder getGpuOptionsBuilder() { + public org.tensorflow.proto.GPUOptions.Builder getGpuOptionsBuilder() { onChanged(); return getGpuOptionsFieldBuilder().getBuilder(); @@ -6039,12 +6283,12 @@ public org.tensorflow.proto.framework.GPUOptions.Builder getGpuOptionsBuilder() * * .tensorflow.GPUOptions gpu_options = 6; */ - public org.tensorflow.proto.framework.GPUOptionsOrBuilder getGpuOptionsOrBuilder() { + public org.tensorflow.proto.GPUOptionsOrBuilder getGpuOptionsOrBuilder() { if (gpuOptionsBuilder_ != null) { return gpuOptionsBuilder_.getMessageOrBuilder(); } else { return gpuOptions_ == null ? - org.tensorflow.proto.framework.GPUOptions.getDefaultInstance() : gpuOptions_; + org.tensorflow.proto.GPUOptions.getDefaultInstance() : gpuOptions_; } } /** @@ -6055,11 +6299,11 @@ public org.tensorflow.proto.framework.GPUOptionsOrBuilder getGpuOptionsOrBuilder * .tensorflow.GPUOptions gpu_options = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.GPUOptions, org.tensorflow.proto.framework.GPUOptions.Builder, org.tensorflow.proto.framework.GPUOptionsOrBuilder> + org.tensorflow.proto.GPUOptions, org.tensorflow.proto.GPUOptions.Builder, org.tensorflow.proto.GPUOptionsOrBuilder> getGpuOptionsFieldBuilder() { if (gpuOptionsBuilder_ == null) { gpuOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.GPUOptions, org.tensorflow.proto.framework.GPUOptions.Builder, org.tensorflow.proto.framework.GPUOptionsOrBuilder>( + org.tensorflow.proto.GPUOptions, org.tensorflow.proto.GPUOptions.Builder, org.tensorflow.proto.GPUOptionsOrBuilder>( getGpuOptions(), getParentForChildren(), isClean()); @@ -6081,7 +6325,9 @@ public org.tensorflow.proto.framework.GPUOptionsOrBuilder getGpuOptionsOrBuilder * * * bool allow_soft_placement = 7; + * @return The allowSoftPlacement. */ + @java.lang.Override public boolean getAllowSoftPlacement() { return allowSoftPlacement_; } @@ -6097,6 +6343,8 @@ public boolean getAllowSoftPlacement() { * * * bool allow_soft_placement = 7; + * @param value The allowSoftPlacement to set. + * @return This builder for chaining. */ public Builder setAllowSoftPlacement(boolean value) { @@ -6116,6 +6364,7 @@ public Builder setAllowSoftPlacement(boolean value) { * * * bool allow_soft_placement = 7; + * @return This builder for chaining. */ public Builder clearAllowSoftPlacement() { @@ -6131,7 +6380,9 @@ public Builder clearAllowSoftPlacement() { * * * bool log_device_placement = 8; + * @return The logDevicePlacement. */ + @java.lang.Override public boolean getLogDevicePlacement() { return logDevicePlacement_; } @@ -6141,6 +6392,8 @@ public boolean getLogDevicePlacement() { * * * bool log_device_placement = 8; + * @param value The logDevicePlacement to set. + * @return This builder for chaining. */ public Builder setLogDevicePlacement(boolean value) { @@ -6154,6 +6407,7 @@ public Builder setLogDevicePlacement(boolean value) { * * * bool log_device_placement = 8; + * @return This builder for chaining. */ public Builder clearLogDevicePlacement() { @@ -6162,15 +6416,16 @@ public Builder clearLogDevicePlacement() { return this; } - private org.tensorflow.proto.framework.GraphOptions graphOptions_; + private org.tensorflow.proto.GraphOptions graphOptions_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.GraphOptions, org.tensorflow.proto.framework.GraphOptions.Builder, org.tensorflow.proto.framework.GraphOptionsOrBuilder> graphOptionsBuilder_; + org.tensorflow.proto.GraphOptions, org.tensorflow.proto.GraphOptions.Builder, org.tensorflow.proto.GraphOptionsOrBuilder> graphOptionsBuilder_; /** *
      * Options that apply to all graphs.
      * 
* * .tensorflow.GraphOptions graph_options = 10; + * @return Whether the graphOptions field is set. */ public boolean hasGraphOptions() { return graphOptionsBuilder_ != null || graphOptions_ != null; @@ -6181,10 +6436,11 @@ public boolean hasGraphOptions() { * * * .tensorflow.GraphOptions graph_options = 10; + * @return The graphOptions. */ - public org.tensorflow.proto.framework.GraphOptions getGraphOptions() { + public org.tensorflow.proto.GraphOptions getGraphOptions() { if (graphOptionsBuilder_ == null) { - return graphOptions_ == null ? org.tensorflow.proto.framework.GraphOptions.getDefaultInstance() : graphOptions_; + return graphOptions_ == null ? org.tensorflow.proto.GraphOptions.getDefaultInstance() : graphOptions_; } else { return graphOptionsBuilder_.getMessage(); } @@ -6196,7 +6452,7 @@ public org.tensorflow.proto.framework.GraphOptions getGraphOptions() { * * .tensorflow.GraphOptions graph_options = 10; */ - public Builder setGraphOptions(org.tensorflow.proto.framework.GraphOptions value) { + public Builder setGraphOptions(org.tensorflow.proto.GraphOptions value) { if (graphOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6217,7 +6473,7 @@ public Builder setGraphOptions(org.tensorflow.proto.framework.GraphOptions value * .tensorflow.GraphOptions graph_options = 10; */ public Builder setGraphOptions( - org.tensorflow.proto.framework.GraphOptions.Builder builderForValue) { + org.tensorflow.proto.GraphOptions.Builder builderForValue) { if (graphOptionsBuilder_ == null) { graphOptions_ = builderForValue.build(); onChanged(); @@ -6234,11 +6490,11 @@ public Builder setGraphOptions( * * .tensorflow.GraphOptions graph_options = 10; */ - public Builder mergeGraphOptions(org.tensorflow.proto.framework.GraphOptions value) { + public Builder mergeGraphOptions(org.tensorflow.proto.GraphOptions value) { if (graphOptionsBuilder_ == null) { if (graphOptions_ != null) { graphOptions_ = - org.tensorflow.proto.framework.GraphOptions.newBuilder(graphOptions_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.GraphOptions.newBuilder(graphOptions_).mergeFrom(value).buildPartial(); } else { graphOptions_ = value; } @@ -6274,7 +6530,7 @@ public Builder clearGraphOptions() { * * .tensorflow.GraphOptions graph_options = 10; */ - public org.tensorflow.proto.framework.GraphOptions.Builder getGraphOptionsBuilder() { + public org.tensorflow.proto.GraphOptions.Builder getGraphOptionsBuilder() { onChanged(); return getGraphOptionsFieldBuilder().getBuilder(); @@ -6286,12 +6542,12 @@ public org.tensorflow.proto.framework.GraphOptions.Builder getGraphOptionsBuilde * * .tensorflow.GraphOptions graph_options = 10; */ - public org.tensorflow.proto.framework.GraphOptionsOrBuilder getGraphOptionsOrBuilder() { + public org.tensorflow.proto.GraphOptionsOrBuilder getGraphOptionsOrBuilder() { if (graphOptionsBuilder_ != null) { return graphOptionsBuilder_.getMessageOrBuilder(); } else { return graphOptions_ == null ? - org.tensorflow.proto.framework.GraphOptions.getDefaultInstance() : graphOptions_; + org.tensorflow.proto.GraphOptions.getDefaultInstance() : graphOptions_; } } /** @@ -6302,11 +6558,11 @@ public org.tensorflow.proto.framework.GraphOptionsOrBuilder getGraphOptionsOrBui * .tensorflow.GraphOptions graph_options = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.GraphOptions, org.tensorflow.proto.framework.GraphOptions.Builder, org.tensorflow.proto.framework.GraphOptionsOrBuilder> + org.tensorflow.proto.GraphOptions, org.tensorflow.proto.GraphOptions.Builder, org.tensorflow.proto.GraphOptionsOrBuilder> getGraphOptionsFieldBuilder() { if (graphOptionsBuilder_ == null) { graphOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.GraphOptions, org.tensorflow.proto.framework.GraphOptions.Builder, org.tensorflow.proto.framework.GraphOptionsOrBuilder>( + org.tensorflow.proto.GraphOptions, org.tensorflow.proto.GraphOptions.Builder, org.tensorflow.proto.GraphOptionsOrBuilder>( getGraphOptions(), getParentForChildren(), isClean()); @@ -6324,7 +6580,9 @@ public org.tensorflow.proto.framework.GraphOptionsOrBuilder getGraphOptionsOrBui * * * int64 operation_timeout_in_ms = 11; + * @return The operationTimeoutInMs. */ + @java.lang.Override public long getOperationTimeoutInMs() { return operationTimeoutInMs_; } @@ -6336,6 +6594,8 @@ public long getOperationTimeoutInMs() { * * * int64 operation_timeout_in_ms = 11; + * @param value The operationTimeoutInMs to set. + * @return This builder for chaining. */ public Builder setOperationTimeoutInMs(long value) { @@ -6351,6 +6611,7 @@ public Builder setOperationTimeoutInMs(long value) { * * * int64 operation_timeout_in_ms = 11; + * @return This builder for chaining. */ public Builder clearOperationTimeoutInMs() { @@ -6359,15 +6620,16 @@ public Builder clearOperationTimeoutInMs() { return this; } - private org.tensorflow.proto.framework.RPCOptions rpcOptions_; + private org.tensorflow.proto.RpcOptions.RPCOptions rpcOptions_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.RPCOptions, org.tensorflow.proto.framework.RPCOptions.Builder, org.tensorflow.proto.framework.RPCOptionsOrBuilder> rpcOptionsBuilder_; + org.tensorflow.proto.RpcOptions.RPCOptions, org.tensorflow.proto.RpcOptions.RPCOptions.Builder, org.tensorflow.proto.RpcOptions.RPCOptionsOrBuilder> rpcOptionsBuilder_; /** *
      * Options that apply when this session uses the distributed runtime.
      * 
* * .tensorflow.RPCOptions rpc_options = 13; + * @return Whether the rpcOptions field is set. */ public boolean hasRpcOptions() { return rpcOptionsBuilder_ != null || rpcOptions_ != null; @@ -6378,10 +6640,11 @@ public boolean hasRpcOptions() { * * * .tensorflow.RPCOptions rpc_options = 13; + * @return The rpcOptions. */ - public org.tensorflow.proto.framework.RPCOptions getRpcOptions() { + public org.tensorflow.proto.RpcOptions.RPCOptions getRpcOptions() { if (rpcOptionsBuilder_ == null) { - return rpcOptions_ == null ? org.tensorflow.proto.framework.RPCOptions.getDefaultInstance() : rpcOptions_; + return rpcOptions_ == null ? org.tensorflow.proto.RpcOptions.RPCOptions.getDefaultInstance() : rpcOptions_; } else { return rpcOptionsBuilder_.getMessage(); } @@ -6393,7 +6656,7 @@ public org.tensorflow.proto.framework.RPCOptions getRpcOptions() { * * .tensorflow.RPCOptions rpc_options = 13; */ - public Builder setRpcOptions(org.tensorflow.proto.framework.RPCOptions value) { + public Builder setRpcOptions(org.tensorflow.proto.RpcOptions.RPCOptions value) { if (rpcOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6414,7 +6677,7 @@ public Builder setRpcOptions(org.tensorflow.proto.framework.RPCOptions value) { * .tensorflow.RPCOptions rpc_options = 13; */ public Builder setRpcOptions( - org.tensorflow.proto.framework.RPCOptions.Builder builderForValue) { + org.tensorflow.proto.RpcOptions.RPCOptions.Builder builderForValue) { if (rpcOptionsBuilder_ == null) { rpcOptions_ = builderForValue.build(); onChanged(); @@ -6431,11 +6694,11 @@ public Builder setRpcOptions( * * .tensorflow.RPCOptions rpc_options = 13; */ - public Builder mergeRpcOptions(org.tensorflow.proto.framework.RPCOptions value) { + public Builder mergeRpcOptions(org.tensorflow.proto.RpcOptions.RPCOptions value) { if (rpcOptionsBuilder_ == null) { if (rpcOptions_ != null) { rpcOptions_ = - org.tensorflow.proto.framework.RPCOptions.newBuilder(rpcOptions_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.RpcOptions.RPCOptions.newBuilder(rpcOptions_).mergeFrom(value).buildPartial(); } else { rpcOptions_ = value; } @@ -6471,7 +6734,7 @@ public Builder clearRpcOptions() { * * .tensorflow.RPCOptions rpc_options = 13; */ - public org.tensorflow.proto.framework.RPCOptions.Builder getRpcOptionsBuilder() { + public org.tensorflow.proto.RpcOptions.RPCOptions.Builder getRpcOptionsBuilder() { onChanged(); return getRpcOptionsFieldBuilder().getBuilder(); @@ -6483,12 +6746,12 @@ public org.tensorflow.proto.framework.RPCOptions.Builder getRpcOptionsBuilder() * * .tensorflow.RPCOptions rpc_options = 13; */ - public org.tensorflow.proto.framework.RPCOptionsOrBuilder getRpcOptionsOrBuilder() { + public org.tensorflow.proto.RpcOptions.RPCOptionsOrBuilder getRpcOptionsOrBuilder() { if (rpcOptionsBuilder_ != null) { return rpcOptionsBuilder_.getMessageOrBuilder(); } else { return rpcOptions_ == null ? - org.tensorflow.proto.framework.RPCOptions.getDefaultInstance() : rpcOptions_; + org.tensorflow.proto.RpcOptions.RPCOptions.getDefaultInstance() : rpcOptions_; } } /** @@ -6499,11 +6762,11 @@ public org.tensorflow.proto.framework.RPCOptionsOrBuilder getRpcOptionsOrBuilder * .tensorflow.RPCOptions rpc_options = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.RPCOptions, org.tensorflow.proto.framework.RPCOptions.Builder, org.tensorflow.proto.framework.RPCOptionsOrBuilder> + org.tensorflow.proto.RpcOptions.RPCOptions, org.tensorflow.proto.RpcOptions.RPCOptions.Builder, org.tensorflow.proto.RpcOptions.RPCOptionsOrBuilder> getRpcOptionsFieldBuilder() { if (rpcOptionsBuilder_ == null) { rpcOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.RPCOptions, org.tensorflow.proto.framework.RPCOptions.Builder, org.tensorflow.proto.framework.RPCOptionsOrBuilder>( + org.tensorflow.proto.RpcOptions.RPCOptions, org.tensorflow.proto.RpcOptions.RPCOptions.Builder, org.tensorflow.proto.RpcOptions.RPCOptionsOrBuilder>( getRpcOptions(), getParentForChildren(), isClean()); @@ -6512,15 +6775,16 @@ public org.tensorflow.proto.framework.RPCOptionsOrBuilder getRpcOptionsOrBuilder return rpcOptionsBuilder_; } - private org.tensorflow.proto.distruntime.ClusterDef clusterDef_; + private org.tensorflow.proto.ClusterDef clusterDef_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.distruntime.ClusterDef, org.tensorflow.proto.distruntime.ClusterDef.Builder, org.tensorflow.proto.distruntime.ClusterDefOrBuilder> clusterDefBuilder_; + org.tensorflow.proto.ClusterDef, org.tensorflow.proto.ClusterDef.Builder, org.tensorflow.proto.ClusterDefOrBuilder> clusterDefBuilder_; /** *
      * Optional list of all workers to use in this session.
      * 
* * .tensorflow.ClusterDef cluster_def = 14; + * @return Whether the clusterDef field is set. */ public boolean hasClusterDef() { return clusterDefBuilder_ != null || clusterDef_ != null; @@ -6531,10 +6795,11 @@ public boolean hasClusterDef() { * * * .tensorflow.ClusterDef cluster_def = 14; + * @return The clusterDef. */ - public org.tensorflow.proto.distruntime.ClusterDef getClusterDef() { + public org.tensorflow.proto.ClusterDef getClusterDef() { if (clusterDefBuilder_ == null) { - return clusterDef_ == null ? org.tensorflow.proto.distruntime.ClusterDef.getDefaultInstance() : clusterDef_; + return clusterDef_ == null ? org.tensorflow.proto.ClusterDef.getDefaultInstance() : clusterDef_; } else { return clusterDefBuilder_.getMessage(); } @@ -6546,7 +6811,7 @@ public org.tensorflow.proto.distruntime.ClusterDef getClusterDef() { * * .tensorflow.ClusterDef cluster_def = 14; */ - public Builder setClusterDef(org.tensorflow.proto.distruntime.ClusterDef value) { + public Builder setClusterDef(org.tensorflow.proto.ClusterDef value) { if (clusterDefBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6567,7 +6832,7 @@ public Builder setClusterDef(org.tensorflow.proto.distruntime.ClusterDef value) * .tensorflow.ClusterDef cluster_def = 14; */ public Builder setClusterDef( - org.tensorflow.proto.distruntime.ClusterDef.Builder builderForValue) { + org.tensorflow.proto.ClusterDef.Builder builderForValue) { if (clusterDefBuilder_ == null) { clusterDef_ = builderForValue.build(); onChanged(); @@ -6584,11 +6849,11 @@ public Builder setClusterDef( * * .tensorflow.ClusterDef cluster_def = 14; */ - public Builder mergeClusterDef(org.tensorflow.proto.distruntime.ClusterDef value) { + public Builder mergeClusterDef(org.tensorflow.proto.ClusterDef value) { if (clusterDefBuilder_ == null) { if (clusterDef_ != null) { clusterDef_ = - org.tensorflow.proto.distruntime.ClusterDef.newBuilder(clusterDef_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.ClusterDef.newBuilder(clusterDef_).mergeFrom(value).buildPartial(); } else { clusterDef_ = value; } @@ -6624,7 +6889,7 @@ public Builder clearClusterDef() { * * .tensorflow.ClusterDef cluster_def = 14; */ - public org.tensorflow.proto.distruntime.ClusterDef.Builder getClusterDefBuilder() { + public org.tensorflow.proto.ClusterDef.Builder getClusterDefBuilder() { onChanged(); return getClusterDefFieldBuilder().getBuilder(); @@ -6636,12 +6901,12 @@ public org.tensorflow.proto.distruntime.ClusterDef.Builder getClusterDefBuilder( * * .tensorflow.ClusterDef cluster_def = 14; */ - public org.tensorflow.proto.distruntime.ClusterDefOrBuilder getClusterDefOrBuilder() { + public org.tensorflow.proto.ClusterDefOrBuilder getClusterDefOrBuilder() { if (clusterDefBuilder_ != null) { return clusterDefBuilder_.getMessageOrBuilder(); } else { return clusterDef_ == null ? - org.tensorflow.proto.distruntime.ClusterDef.getDefaultInstance() : clusterDef_; + org.tensorflow.proto.ClusterDef.getDefaultInstance() : clusterDef_; } } /** @@ -6652,11 +6917,11 @@ public org.tensorflow.proto.distruntime.ClusterDefOrBuilder getClusterDefOrBuild * .tensorflow.ClusterDef cluster_def = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.distruntime.ClusterDef, org.tensorflow.proto.distruntime.ClusterDef.Builder, org.tensorflow.proto.distruntime.ClusterDefOrBuilder> + org.tensorflow.proto.ClusterDef, org.tensorflow.proto.ClusterDef.Builder, org.tensorflow.proto.ClusterDefOrBuilder> getClusterDefFieldBuilder() { if (clusterDefBuilder_ == null) { clusterDefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.distruntime.ClusterDef, org.tensorflow.proto.distruntime.ClusterDef.Builder, org.tensorflow.proto.distruntime.ClusterDefOrBuilder>( + org.tensorflow.proto.ClusterDef, org.tensorflow.proto.ClusterDef.Builder, org.tensorflow.proto.ClusterDefOrBuilder>( getClusterDef(), getParentForChildren(), isClean()); @@ -6674,7 +6939,9 @@ public org.tensorflow.proto.distruntime.ClusterDefOrBuilder getClusterDefOrBuild * * * bool isolate_session_state = 15; + * @return The isolateSessionState. */ + @java.lang.Override public boolean getIsolateSessionState() { return isolateSessionState_; } @@ -6686,6 +6953,8 @@ public boolean getIsolateSessionState() { * * * bool isolate_session_state = 15; + * @param value The isolateSessionState to set. + * @return This builder for chaining. */ public Builder setIsolateSessionState(boolean value) { @@ -6701,6 +6970,7 @@ public Builder setIsolateSessionState(boolean value) { * * * bool isolate_session_state = 15; + * @return This builder for chaining. */ public Builder clearIsolateSessionState() { @@ -6719,7 +6989,9 @@ public Builder clearIsolateSessionState() { * * * bool share_cluster_devices_in_session = 17; + * @return The shareClusterDevicesInSession. */ + @java.lang.Override public boolean getShareClusterDevicesInSession() { return shareClusterDevicesInSession_; } @@ -6732,6 +7004,8 @@ public boolean getShareClusterDevicesInSession() { * * * bool share_cluster_devices_in_session = 17; + * @param value The shareClusterDevicesInSession to set. + * @return This builder for chaining. */ public Builder setShareClusterDevicesInSession(boolean value) { @@ -6748,6 +7022,7 @@ public Builder setShareClusterDevicesInSession(boolean value) { * * * bool share_cluster_devices_in_session = 17; + * @return This builder for chaining. */ public Builder clearShareClusterDevicesInSession() { @@ -6756,21 +7031,23 @@ public Builder clearShareClusterDevicesInSession() { return this; } - private org.tensorflow.proto.framework.ConfigProto.Experimental experimental_; + private org.tensorflow.proto.ConfigProto.Experimental experimental_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.ConfigProto.Experimental, org.tensorflow.proto.framework.ConfigProto.Experimental.Builder, org.tensorflow.proto.framework.ConfigProto.ExperimentalOrBuilder> experimentalBuilder_; + org.tensorflow.proto.ConfigProto.Experimental, org.tensorflow.proto.ConfigProto.Experimental.Builder, org.tensorflow.proto.ConfigProto.ExperimentalOrBuilder> experimentalBuilder_; /** * .tensorflow.ConfigProto.Experimental experimental = 16; + * @return Whether the experimental field is set. */ public boolean hasExperimental() { return experimentalBuilder_ != null || experimental_ != null; } /** * .tensorflow.ConfigProto.Experimental experimental = 16; + * @return The experimental. */ - public org.tensorflow.proto.framework.ConfigProto.Experimental getExperimental() { + public org.tensorflow.proto.ConfigProto.Experimental getExperimental() { if (experimentalBuilder_ == null) { - return experimental_ == null ? org.tensorflow.proto.framework.ConfigProto.Experimental.getDefaultInstance() : experimental_; + return experimental_ == null ? org.tensorflow.proto.ConfigProto.Experimental.getDefaultInstance() : experimental_; } else { return experimentalBuilder_.getMessage(); } @@ -6778,7 +7055,7 @@ public org.tensorflow.proto.framework.ConfigProto.Experimental getExperimental() /** * .tensorflow.ConfigProto.Experimental experimental = 16; */ - public Builder setExperimental(org.tensorflow.proto.framework.ConfigProto.Experimental value) { + public Builder setExperimental(org.tensorflow.proto.ConfigProto.Experimental value) { if (experimentalBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6795,7 +7072,7 @@ public Builder setExperimental(org.tensorflow.proto.framework.ConfigProto.Experi * .tensorflow.ConfigProto.Experimental experimental = 16; */ public Builder setExperimental( - org.tensorflow.proto.framework.ConfigProto.Experimental.Builder builderForValue) { + org.tensorflow.proto.ConfigProto.Experimental.Builder builderForValue) { if (experimentalBuilder_ == null) { experimental_ = builderForValue.build(); onChanged(); @@ -6808,11 +7085,11 @@ public Builder setExperimental( /** * .tensorflow.ConfigProto.Experimental experimental = 16; */ - public Builder mergeExperimental(org.tensorflow.proto.framework.ConfigProto.Experimental value) { + public Builder mergeExperimental(org.tensorflow.proto.ConfigProto.Experimental value) { if (experimentalBuilder_ == null) { if (experimental_ != null) { experimental_ = - org.tensorflow.proto.framework.ConfigProto.Experimental.newBuilder(experimental_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.ConfigProto.Experimental.newBuilder(experimental_).mergeFrom(value).buildPartial(); } else { experimental_ = value; } @@ -6840,7 +7117,7 @@ public Builder clearExperimental() { /** * .tensorflow.ConfigProto.Experimental experimental = 16; */ - public org.tensorflow.proto.framework.ConfigProto.Experimental.Builder getExperimentalBuilder() { + public org.tensorflow.proto.ConfigProto.Experimental.Builder getExperimentalBuilder() { onChanged(); return getExperimentalFieldBuilder().getBuilder(); @@ -6848,23 +7125,23 @@ public org.tensorflow.proto.framework.ConfigProto.Experimental.Builder getExperi /** * .tensorflow.ConfigProto.Experimental experimental = 16; */ - public org.tensorflow.proto.framework.ConfigProto.ExperimentalOrBuilder getExperimentalOrBuilder() { + public org.tensorflow.proto.ConfigProto.ExperimentalOrBuilder getExperimentalOrBuilder() { if (experimentalBuilder_ != null) { return experimentalBuilder_.getMessageOrBuilder(); } else { return experimental_ == null ? - org.tensorflow.proto.framework.ConfigProto.Experimental.getDefaultInstance() : experimental_; + org.tensorflow.proto.ConfigProto.Experimental.getDefaultInstance() : experimental_; } } /** * .tensorflow.ConfigProto.Experimental experimental = 16; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.ConfigProto.Experimental, org.tensorflow.proto.framework.ConfigProto.Experimental.Builder, org.tensorflow.proto.framework.ConfigProto.ExperimentalOrBuilder> + org.tensorflow.proto.ConfigProto.Experimental, org.tensorflow.proto.ConfigProto.Experimental.Builder, org.tensorflow.proto.ConfigProto.ExperimentalOrBuilder> getExperimentalFieldBuilder() { if (experimentalBuilder_ == null) { experimentalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.ConfigProto.Experimental, org.tensorflow.proto.framework.ConfigProto.Experimental.Builder, org.tensorflow.proto.framework.ConfigProto.ExperimentalOrBuilder>( + org.tensorflow.proto.ConfigProto.Experimental, org.tensorflow.proto.ConfigProto.Experimental.Builder, org.tensorflow.proto.ConfigProto.ExperimentalOrBuilder>( getExperimental(), getParentForChildren(), isClean()); @@ -6889,12 +7166,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.ConfigProto) - private static final org.tensorflow.proto.framework.ConfigProto DEFAULT_INSTANCE; + private static final org.tensorflow.proto.ConfigProto DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.ConfigProto(); + DEFAULT_INSTANCE = new org.tensorflow.proto.ConfigProto(); } - public static org.tensorflow.proto.framework.ConfigProto getDefaultInstance() { + public static org.tensorflow.proto.ConfigProto getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -6905,7 +7182,18 @@ public ConfigProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigProto(input, extensionRegistry); + 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(); } }; @@ -6919,7 +7207,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.ConfigProto getDefaultInstanceForType() { + public org.tensorflow.proto.ConfigProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ConfigProtoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ConfigProtoOrBuilder.java similarity index 88% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ConfigProtoOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ConfigProtoOrBuilder.java index 3b83aa99dea..d158b44e08f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ConfigProtoOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ConfigProtoOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/config.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface ConfigProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.ConfigProto) @@ -93,6 +93,7 @@ int getDeviceCountOrThrow( * * * int32 intra_op_parallelism_threads = 2; + * @return The intraOpParallelismThreads. */ int getIntraOpParallelismThreads(); @@ -108,6 +109,7 @@ int getDeviceCountOrThrow( * * * int32 inter_op_parallelism_threads = 5; + * @return The interOpParallelismThreads. */ int getInterOpParallelismThreads(); @@ -123,6 +125,7 @@ int getDeviceCountOrThrow( * * * bool use_per_session_threads = 9; + * @return The usePerSessionThreads. */ boolean getUsePerSessionThreads(); @@ -149,7 +152,7 @@ int getDeviceCountOrThrow( * * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12; */ - java.util.List + java.util.List getSessionInterOpThreadPoolList(); /** *
@@ -174,7 +177,7 @@ int getDeviceCountOrThrow(
    *
    * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
    */
-  org.tensorflow.proto.framework.ThreadPoolOptionProto getSessionInterOpThreadPool(int index);
+  org.tensorflow.proto.ThreadPoolOptionProto getSessionInterOpThreadPool(int index);
   /**
    * 
    * This option is experimental - it may be replaced with a different mechanism
@@ -222,7 +225,7 @@ int getDeviceCountOrThrow(
    *
    * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
    */
-  java.util.List 
+  java.util.List 
       getSessionInterOpThreadPoolOrBuilderList();
   /**
    * 
@@ -247,7 +250,7 @@ int getDeviceCountOrThrow(
    *
    * repeated .tensorflow.ThreadPoolOptionProto session_inter_op_thread_pool = 12;
    */
-  org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpThreadPoolOrBuilder(
+  org.tensorflow.proto.ThreadPoolOptionProtoOrBuilder getSessionInterOpThreadPoolOrBuilder(
       int index);
 
   /**
@@ -258,6 +261,7 @@ org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpT
    * 
* * int32 placement_period = 3; + * @return The placementPeriod. */ int getPlacementPeriod(); @@ -269,6 +273,7 @@ org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpT *
* * repeated string device_filters = 4; + * @return A list containing the deviceFilters. */ java.util.List getDeviceFiltersList(); @@ -280,6 +285,7 @@ org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpT *
* * repeated string device_filters = 4; + * @return The count of deviceFilters. */ int getDeviceFiltersCount(); /** @@ -290,6 +296,8 @@ org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpT * * * repeated string device_filters = 4; + * @param index The index of the element to return. + * @return The deviceFilters at the given index. */ java.lang.String getDeviceFilters(int index); /** @@ -300,6 +308,8 @@ org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpT * * * repeated string device_filters = 4; + * @param index The index of the value to return. + * @return The bytes of the deviceFilters at the given index. */ com.google.protobuf.ByteString getDeviceFiltersBytes(int index); @@ -310,6 +320,7 @@ org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpT * * * .tensorflow.GPUOptions gpu_options = 6; + * @return Whether the gpuOptions field is set. */ boolean hasGpuOptions(); /** @@ -318,8 +329,9 @@ org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpT * * * .tensorflow.GPUOptions gpu_options = 6; + * @return The gpuOptions. */ - org.tensorflow.proto.framework.GPUOptions getGpuOptions(); + org.tensorflow.proto.GPUOptions getGpuOptions(); /** *
    * Options that apply to all GPUs.
@@ -327,7 +339,7 @@ org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpT
    *
    * .tensorflow.GPUOptions gpu_options = 6;
    */
-  org.tensorflow.proto.framework.GPUOptionsOrBuilder getGpuOptionsOrBuilder();
+  org.tensorflow.proto.GPUOptionsOrBuilder getGpuOptionsOrBuilder();
 
   /**
    * 
@@ -341,6 +353,7 @@ org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpT
    * 
* * bool allow_soft_placement = 7; + * @return The allowSoftPlacement. */ boolean getAllowSoftPlacement(); @@ -350,6 +363,7 @@ org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpT *
* * bool log_device_placement = 8; + * @return The logDevicePlacement. */ boolean getLogDevicePlacement(); @@ -359,6 +373,7 @@ org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpT * * * .tensorflow.GraphOptions graph_options = 10; + * @return Whether the graphOptions field is set. */ boolean hasGraphOptions(); /** @@ -367,8 +382,9 @@ org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpT * * * .tensorflow.GraphOptions graph_options = 10; + * @return The graphOptions. */ - org.tensorflow.proto.framework.GraphOptions getGraphOptions(); + org.tensorflow.proto.GraphOptions getGraphOptions(); /** *
    * Options that apply to all graphs.
@@ -376,7 +392,7 @@ org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpT
    *
    * .tensorflow.GraphOptions graph_options = 10;
    */
-  org.tensorflow.proto.framework.GraphOptionsOrBuilder getGraphOptionsOrBuilder();
+  org.tensorflow.proto.GraphOptionsOrBuilder getGraphOptionsOrBuilder();
 
   /**
    * 
@@ -386,6 +402,7 @@ org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpT
    * 
* * int64 operation_timeout_in_ms = 11; + * @return The operationTimeoutInMs. */ long getOperationTimeoutInMs(); @@ -395,6 +412,7 @@ org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpT *
* * .tensorflow.RPCOptions rpc_options = 13; + * @return Whether the rpcOptions field is set. */ boolean hasRpcOptions(); /** @@ -403,8 +421,9 @@ org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpT * * * .tensorflow.RPCOptions rpc_options = 13; + * @return The rpcOptions. */ - org.tensorflow.proto.framework.RPCOptions getRpcOptions(); + org.tensorflow.proto.RpcOptions.RPCOptions getRpcOptions(); /** *
    * Options that apply when this session uses the distributed runtime.
@@ -412,7 +431,7 @@ org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpT
    *
    * .tensorflow.RPCOptions rpc_options = 13;
    */
-  org.tensorflow.proto.framework.RPCOptionsOrBuilder getRpcOptionsOrBuilder();
+  org.tensorflow.proto.RpcOptions.RPCOptionsOrBuilder getRpcOptionsOrBuilder();
 
   /**
    * 
@@ -420,6 +439,7 @@ org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpT
    * 
* * .tensorflow.ClusterDef cluster_def = 14; + * @return Whether the clusterDef field is set. */ boolean hasClusterDef(); /** @@ -428,8 +448,9 @@ org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpT *
* * .tensorflow.ClusterDef cluster_def = 14; + * @return The clusterDef. */ - org.tensorflow.proto.distruntime.ClusterDef getClusterDef(); + org.tensorflow.proto.ClusterDef getClusterDef(); /** *
    * Optional list of all workers to use in this session.
@@ -437,7 +458,7 @@ org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpT
    *
    * .tensorflow.ClusterDef cluster_def = 14;
    */
-  org.tensorflow.proto.distruntime.ClusterDefOrBuilder getClusterDefOrBuilder();
+  org.tensorflow.proto.ClusterDefOrBuilder getClusterDefOrBuilder();
 
   /**
    * 
@@ -447,6 +468,7 @@ org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpT
    * 
* * bool isolate_session_state = 15; + * @return The isolateSessionState. */ boolean getIsolateSessionState(); @@ -459,19 +481,22 @@ org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder getSessionInterOpT *
* * bool share_cluster_devices_in_session = 17; + * @return The shareClusterDevicesInSession. */ boolean getShareClusterDevicesInSession(); /** * .tensorflow.ConfigProto.Experimental experimental = 16; + * @return Whether the experimental field is set. */ boolean hasExperimental(); /** * .tensorflow.ConfigProto.Experimental experimental = 16; + * @return The experimental. */ - org.tensorflow.proto.framework.ConfigProto.Experimental getExperimental(); + org.tensorflow.proto.ConfigProto.Experimental getExperimental(); /** * .tensorflow.ConfigProto.Experimental experimental = 16; */ - org.tensorflow.proto.framework.ConfigProto.ExperimentalOrBuilder getExperimentalOrBuilder(); + org.tensorflow.proto.ConfigProto.ExperimentalOrBuilder getExperimentalOrBuilder(); } diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ConfigProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ConfigProtos.java new file mode 100644 index 00000000000..b7b734de841 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ConfigProtos.java @@ -0,0 +1,405 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/config.proto + +package org.tensorflow.proto; + +public final class ConfigProtos { + private ConfigProtos() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_GPUOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_GPUOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_GPUOptions_Experimental_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_GPUOptions_Experimental_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_GPUOptions_Experimental_VirtualDevices_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_GPUOptions_Experimental_VirtualDevices_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_OptimizerOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_OptimizerOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_GraphOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_GraphOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_ThreadPoolOptionProto_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_ThreadPoolOptionProto_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_SessionMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_SessionMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_ConfigProto_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_ConfigProto_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_ConfigProto_DeviceCountEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_ConfigProto_DeviceCountEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_ConfigProto_Experimental_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_ConfigProto_Experimental_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_RunOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_RunOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_RunOptions_Experimental_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_RunOptions_Experimental_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_RunOptions_Experimental_RunHandlerPoolOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_RunOptions_Experimental_RunHandlerPoolOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_RunMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_RunMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_RunMetadata_FunctionGraphs_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_RunMetadata_FunctionGraphs_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_TensorConnection_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_TensorConnection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_CallableOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_CallableOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_CallableOptions_FeedDevicesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_CallableOptions_FeedDevicesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_CallableOptions_FetchDevicesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_CallableOptions_FetchDevicesEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n%tensorflow/core/protobuf/config.proto\022" + + "\ntensorflow\032*tensorflow/core/framework/c" + + "ost_graph.proto\032%tensorflow/core/framewo" + + "rk/graph.proto\032*tensorflow/core/framewor" + + "k/step_stats.proto\032&tensorflow/core/prot" + + "obuf/cluster.proto\032$tensorflow/core/prot" + + "obuf/debug.proto\032.tensorflow/core/protob" + + "uf/rewriter_config.proto\032*tensorflow/cor" + + "e/protobuf/rpc_options.proto\0321tensorflow" + + "/tsl/protobuf/coordination_config.proto\"" + + "\237\007\n\nGPUOptions\022\'\n\037per_process_gpu_memory" + + "_fraction\030\001 \001(\001\022\024\n\014allow_growth\030\004 \001(\010\022\026\n" + + "\016allocator_type\030\002 \001(\t\022\037\n\027deferred_deleti" + + "on_bytes\030\003 \001(\003\022\033\n\023visible_device_list\030\005 " + + "\001(\t\022\"\n\032polling_active_delay_usecs\030\006 \001(\005\022" + + "$\n\034polling_inactive_delay_msecs\030\007 \001(\005\022\034\n" + + "\024force_gpu_compatible\030\010 \001(\010\0229\n\014experimen" + + "tal\030\t \001(\0132#.tensorflow.GPUOptions.Experi" + + "mental\032\330\004\n\014Experimental\022K\n\017virtual_devic" + + "es\030\001 \003(\01322.tensorflow.GPUOptions.Experim" + + "ental.VirtualDevices\022\032\n\022use_unified_memo" + + "ry\030\002 \001(\010\022#\n\033num_dev_to_dev_copy_streams\030" + + "\003 \001(\005\022\035\n\025collective_ring_order\030\004 \001(\t\022\035\n\025" + + "timestamped_allocator\030\005 \001(\010\022#\n\033kernel_tr" + + "acker_max_interval\030\007 \001(\005\022 \n\030kernel_track" + + "er_max_bytes\030\010 \001(\005\022\"\n\032kernel_tracker_max" + + "_pending\030\t \001(\005\022\'\n\037internal_fragmentation" + + "_fraction\030\n \001(\001\022\035\n\025use_cuda_malloc_async" + + "\030\013 \001(\010\022,\n$disallow_retry_on_allocation_f" + + "ailure\030\014 \001(\010\022 \n\030gpu_host_mem_limit_in_mb" + + "\030\r \001(\002\022$\n\034gpu_host_mem_disallow_growth\030\016" + + " \001(\010\032S\n\016VirtualDevices\022\027\n\017memory_limit_m" + + "b\030\001 \003(\002\022\020\n\010priority\030\002 \003(\005\022\026\n\016device_ordi" + + "nal\030\003 \003(\005\"\235\003\n\020OptimizerOptions\022+\n#do_com" + + "mon_subexpression_elimination\030\001 \001(\010\022\033\n\023d" + + "o_constant_folding\030\002 \001(\010\022$\n\034max_folded_c" + + "onstant_in_bytes\030\006 \001(\003\022\034\n\024do_function_in" + + "lining\030\004 \001(\010\0225\n\topt_level\030\003 \001(\0162\".tensor" + + "flow.OptimizerOptions.Level\022E\n\020global_ji" + + "t_level\030\005 \001(\0162+.tensorflow.OptimizerOpti" + + "ons.GlobalJitLevel\022\026\n\016cpu_global_jit\030\007 \001" + + "(\010\" \n\005Level\022\006\n\002L1\020\000\022\017\n\002L0\020\377\377\377\377\377\377\377\377\377\001\"C\n\016" + + "GlobalJitLevel\022\013\n\007DEFAULT\020\000\022\020\n\003OFF\020\377\377\377\377\377" + + "\377\377\377\377\001\022\010\n\004ON_1\020\001\022\010\n\004ON_2\020\002\"\356\002\n\014GraphOptio" + + "ns\022\036\n\026enable_recv_scheduling\030\002 \001(\010\0227\n\021op" + + "timizer_options\030\003 \001(\0132\034.tensorflow.Optim" + + "izerOptions\022\030\n\020build_cost_model\030\004 \001(\003\022\036\n" + + "\026build_cost_model_after\030\t \001(\003\022\024\n\014infer_s" + + "hapes\030\005 \001(\010\022\032\n\022place_pruned_graph\030\006 \001(\010\022" + + " \n\030enable_bfloat16_sendrecv\030\007 \001(\010\022\025\n\rtim" + + "eline_step\030\010 \001(\005\0223\n\017rewrite_options\030\n \001(" + + "\0132\032.tensorflow.RewriterConfigJ\004\010\001\020\002R%ski" + + "p_common_subexpression_elimination\"A\n\025Th" + + "readPoolOptionProto\022\023\n\013num_threads\030\001 \001(\005" + + "\022\023\n\013global_name\030\002 \001(\t\"0\n\017SessionMetadata" + + "\022\014\n\004name\030\001 \001(\t\022\017\n\007version\030\002 \001(\003\"\343\016\n\013Conf" + + "igProto\022>\n\014device_count\030\001 \003(\0132(.tensorfl" + + "ow.ConfigProto.DeviceCountEntry\022$\n\034intra" + + "_op_parallelism_threads\030\002 \001(\005\022$\n\034inter_o" + + "p_parallelism_threads\030\005 \001(\005\022\037\n\027use_per_s" + + "ession_threads\030\t \001(\010\022G\n\034session_inter_op" + + "_thread_pool\030\014 \003(\0132!.tensorflow.ThreadPo" + + "olOptionProto\022\030\n\020placement_period\030\003 \001(\005\022" + + "\026\n\016device_filters\030\004 \003(\t\022+\n\013gpu_options\030\006" + + " \001(\0132\026.tensorflow.GPUOptions\022\034\n\024allow_so" + + "ft_placement\030\007 \001(\010\022\034\n\024log_device_placeme" + + "nt\030\010 \001(\010\022/\n\rgraph_options\030\n \001(\0132\030.tensor" + + "flow.GraphOptions\022\037\n\027operation_timeout_i" + + "n_ms\030\013 \001(\003\022+\n\013rpc_options\030\r \001(\0132\026.tensor" + + "flow.RPCOptions\022+\n\013cluster_def\030\016 \001(\0132\026.t" + + "ensorflow.ClusterDef\022\035\n\025isolate_session_" + + "state\030\017 \001(\010\022(\n share_cluster_devices_in_" + + "session\030\021 \001(\010\022:\n\014experimental\030\020 \001(\0132$.te" + + "nsorflow.ConfigProto.Experimental\0322\n\020Dev" + + "iceCountEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\005:\0028\001\032\335\010\n\014Experimental\022\037\n\027collective_gro" + + "up_leader\030\001 \001(\t\022\025\n\rexecutor_type\030\003 \001(\t\022\032" + + "\n\022recv_buf_max_chunk\030\004 \001(\005\022\031\n\021use_numa_a" + + "ffinity\030\005 \001(\010\0225\n-collective_deterministi" + + "c_sequential_execution\030\006 \001(\010\022\027\n\017collecti" + + "ve_nccl\030\007 \001(\010\0226\n.share_session_state_in_" + + "clusterspec_propagation\030\010 \001(\010\022\037\n\027disable" + + "_thread_spinning\030\t \001(\010\022(\n share_cluster_" + + "devices_in_session\030\n \001(\010\0225\n\020session_meta" + + "data\030\013 \001(\0132\033.tensorflow.SessionMetadata\022" + + "!\n\031optimize_for_static_graph\030\014 \001(\010\022\032\n\022en" + + "able_mlir_bridge\030\r \001(\010\022S\n\023mlir_bridge_ro" + + "llout\030\021 \001(\01626.tensorflow.ConfigProto.Exp" + + "erimental.MlirBridgeRollout\022&\n\036enable_ml" + + "ir_graph_optimization\030\020 \001(\010\022\'\n\037disable_o" + + "utput_partition_graphs\030\016 \001(\010\022#\n\033xla_fusi" + + "on_autotuner_thresh\030\017 \001(\003\022\020\n\010use_tfrt\030\022 " + + "\001(\010\022\'\n\037disable_functional_ops_lowering\030\025" + + " \001(\010\022\'\n\037xla_prefer_single_graph_cluster\030" + + "\026 \001(\010\022B\n\023coordination_config\030\027 \001(\0132%.ten" + + "sorflow.CoordinationServiceConfig\022)\n!dis" + + "able_optimize_for_static_graph\030\030 \001(\010\"\336\001\n" + + "\021MlirBridgeRollout\022#\n\037MLIR_BRIDGE_ROLLOU" + + "T_UNSPECIFIED\020\000\022\037\n\033MLIR_BRIDGE_ROLLOUT_E" + + "NABLED\020\001\022 \n\034MLIR_BRIDGE_ROLLOUT_DISABLED" + + "\020\002\"\004\010\003\020\003\"\004\010\004\020\004*%MLIR_BRIDGE_ROLLOUT_SAFE" + + "_MODE_ENABLED*.MLIR_BRIDGE_ROLLOUT_SAFE_" + + "MODE_FALLBACK_ENABLEDJ\004\010\002\020\003J\004\010\023\020\024J\004\010\024\020\025J" + + "\004\010\031\020\032\"\341\004\n\nRunOptions\0226\n\013trace_level\030\001 \001(" + + "\0162!.tensorflow.RunOptions.TraceLevel\022\025\n\r" + + "timeout_in_ms\030\002 \001(\003\022\034\n\024inter_op_thread_p" + + "ool\030\003 \001(\005\022\037\n\027output_partition_graphs\030\005 \001" + + "(\010\022/\n\rdebug_options\030\006 \001(\0132\030.tensorflow.D" + + "ebugOptions\022*\n\"report_tensor_allocations" + + "_upon_oom\030\007 \001(\010\0229\n\014experimental\030\010 \001(\0132#." + + "tensorflow.RunOptions.Experimental\032\322\001\n\014E" + + "xperimental\022\034\n\024collective_graph_key\030\001 \001(" + + "\003\022\034\n\024use_run_handler_pool\030\002 \001(\010\022[\n\030run_h" + + "andler_pool_options\030\003 \001(\01329.tensorflow.R" + + "unOptions.Experimental.RunHandlerPoolOpt" + + "ions\032)\n\025RunHandlerPoolOptions\022\020\n\010priorit" + + "y\030\001 \001(\003\"R\n\nTraceLevel\022\014\n\010NO_TRACE\020\000\022\022\n\016S" + + "OFTWARE_TRACE\020\001\022\022\n\016HARDWARE_TRACE\020\002\022\016\n\nF" + + "ULL_TRACE\020\003J\004\010\004\020\005\"\276\003\n\013RunMetadata\022)\n\nste" + + "p_stats\030\001 \001(\0132\025.tensorflow.StepStats\022,\n\n" + + "cost_graph\030\002 \001(\0132\030.tensorflow.CostGraphD" + + "ef\022.\n\020partition_graphs\030\003 \003(\0132\024.tensorflo" + + "w.GraphDef\022?\n\017function_graphs\030\004 \003(\0132&.te" + + "nsorflow.RunMetadata.FunctionGraphs\0225\n\020s" + + "ession_metadata\030\005 \001(\0132\033.tensorflow.Sessi" + + "onMetadata\032\255\001\n\016FunctionGraphs\022.\n\020partiti" + + "on_graphs\030\001 \003(\0132\024.tensorflow.GraphDef\0224\n" + + "\026pre_optimization_graph\030\002 \001(\0132\024.tensorfl" + + "ow.GraphDef\0225\n\027post_optimization_graph\030\003" + + " \001(\0132\024.tensorflow.GraphDef\":\n\020TensorConn" + + "ection\022\023\n\013from_tensor\030\001 \001(\t\022\021\n\tto_tensor" + + "\030\002 \001(\t\"\260\003\n\017CallableOptions\022\014\n\004feed\030\001 \003(\t" + + "\022\r\n\005fetch\030\002 \003(\t\022\016\n\006target\030\003 \003(\t\022+\n\013run_o" + + "ptions\030\004 \001(\0132\026.tensorflow.RunOptions\0227\n\021" + + "tensor_connection\030\005 \003(\0132\034.tensorflow.Ten" + + "sorConnection\022B\n\014feed_devices\030\006 \003(\0132,.te" + + "nsorflow.CallableOptions.FeedDevicesEntr" + + "y\022D\n\rfetch_devices\030\007 \003(\0132-.tensorflow.Ca" + + "llableOptions.FetchDevicesEntry\022\027\n\017fetch" + + "_skip_sync\030\010 \001(\010\0322\n\020FeedDevicesEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0323\n\021FetchDev" + + "icesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001B\200\001\n\024org.tensorflow.protoB\014ConfigProtos" + + "P\001ZUgithub.com/tensorflow/tensorflow/ten" + + "sorflow/go/core/protobuf/for_core_protos" + + "_go_proto\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + org.tensorflow.proto.CostGraphProtos.getDescriptor(), + org.tensorflow.proto.GraphProtos.getDescriptor(), + org.tensorflow.proto.StepStatsProtos.getDescriptor(), + org.tensorflow.proto.ClusterProtos.getDescriptor(), + org.tensorflow.proto.DebugProtos.getDescriptor(), + org.tensorflow.proto.RewriterConfigProtos.getDescriptor(), + org.tensorflow.proto.dummy.RpcOptions.getDescriptor(), + org.tensorflow.proto.CoordinationConfig.getDescriptor(), + }); + internal_static_tensorflow_GPUOptions_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_GPUOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_GPUOptions_descriptor, + new java.lang.String[] { "PerProcessGpuMemoryFraction", "AllowGrowth", "AllocatorType", "DeferredDeletionBytes", "VisibleDeviceList", "PollingActiveDelayUsecs", "PollingInactiveDelayMsecs", "ForceGpuCompatible", "Experimental", }); + internal_static_tensorflow_GPUOptions_Experimental_descriptor = + internal_static_tensorflow_GPUOptions_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_GPUOptions_Experimental_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_GPUOptions_Experimental_descriptor, + new java.lang.String[] { "VirtualDevices", "UseUnifiedMemory", "NumDevToDevCopyStreams", "CollectiveRingOrder", "TimestampedAllocator", "KernelTrackerMaxInterval", "KernelTrackerMaxBytes", "KernelTrackerMaxPending", "InternalFragmentationFraction", "UseCudaMallocAsync", "DisallowRetryOnAllocationFailure", "GpuHostMemLimitInMb", "GpuHostMemDisallowGrowth", }); + internal_static_tensorflow_GPUOptions_Experimental_VirtualDevices_descriptor = + internal_static_tensorflow_GPUOptions_Experimental_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_GPUOptions_Experimental_VirtualDevices_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_GPUOptions_Experimental_VirtualDevices_descriptor, + new java.lang.String[] { "MemoryLimitMb", "Priority", "DeviceOrdinal", }); + internal_static_tensorflow_OptimizerOptions_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_tensorflow_OptimizerOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_OptimizerOptions_descriptor, + new java.lang.String[] { "DoCommonSubexpressionElimination", "DoConstantFolding", "MaxFoldedConstantInBytes", "DoFunctionInlining", "OptLevel", "GlobalJitLevel", "CpuGlobalJit", }); + internal_static_tensorflow_GraphOptions_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_tensorflow_GraphOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_GraphOptions_descriptor, + new java.lang.String[] { "EnableRecvScheduling", "OptimizerOptions", "BuildCostModel", "BuildCostModelAfter", "InferShapes", "PlacePrunedGraph", "EnableBfloat16Sendrecv", "TimelineStep", "RewriteOptions", }); + internal_static_tensorflow_ThreadPoolOptionProto_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_tensorflow_ThreadPoolOptionProto_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_ThreadPoolOptionProto_descriptor, + new java.lang.String[] { "NumThreads", "GlobalName", }); + internal_static_tensorflow_SessionMetadata_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_tensorflow_SessionMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_SessionMetadata_descriptor, + new java.lang.String[] { "Name", "Version", }); + internal_static_tensorflow_ConfigProto_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_tensorflow_ConfigProto_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_ConfigProto_descriptor, + new java.lang.String[] { "DeviceCount", "IntraOpParallelismThreads", "InterOpParallelismThreads", "UsePerSessionThreads", "SessionInterOpThreadPool", "PlacementPeriod", "DeviceFilters", "GpuOptions", "AllowSoftPlacement", "LogDevicePlacement", "GraphOptions", "OperationTimeoutInMs", "RpcOptions", "ClusterDef", "IsolateSessionState", "ShareClusterDevicesInSession", "Experimental", }); + internal_static_tensorflow_ConfigProto_DeviceCountEntry_descriptor = + internal_static_tensorflow_ConfigProto_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_ConfigProto_DeviceCountEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_ConfigProto_DeviceCountEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_tensorflow_ConfigProto_Experimental_descriptor = + internal_static_tensorflow_ConfigProto_descriptor.getNestedTypes().get(1); + internal_static_tensorflow_ConfigProto_Experimental_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_ConfigProto_Experimental_descriptor, + new java.lang.String[] { "CollectiveGroupLeader", "ExecutorType", "RecvBufMaxChunk", "UseNumaAffinity", "CollectiveDeterministicSequentialExecution", "CollectiveNccl", "ShareSessionStateInClusterspecPropagation", "DisableThreadSpinning", "ShareClusterDevicesInSession", "SessionMetadata", "OptimizeForStaticGraph", "EnableMlirBridge", "MlirBridgeRollout", "EnableMlirGraphOptimization", "DisableOutputPartitionGraphs", "XlaFusionAutotunerThresh", "UseTfrt", "DisableFunctionalOpsLowering", "XlaPreferSingleGraphCluster", "CoordinationConfig", "DisableOptimizeForStaticGraph", }); + internal_static_tensorflow_RunOptions_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_tensorflow_RunOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_RunOptions_descriptor, + new java.lang.String[] { "TraceLevel", "TimeoutInMs", "InterOpThreadPool", "OutputPartitionGraphs", "DebugOptions", "ReportTensorAllocationsUponOom", "Experimental", }); + internal_static_tensorflow_RunOptions_Experimental_descriptor = + internal_static_tensorflow_RunOptions_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_RunOptions_Experimental_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_RunOptions_Experimental_descriptor, + new java.lang.String[] { "CollectiveGraphKey", "UseRunHandlerPool", "RunHandlerPoolOptions", }); + internal_static_tensorflow_RunOptions_Experimental_RunHandlerPoolOptions_descriptor = + internal_static_tensorflow_RunOptions_Experimental_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_RunOptions_Experimental_RunHandlerPoolOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_RunOptions_Experimental_RunHandlerPoolOptions_descriptor, + new java.lang.String[] { "Priority", }); + internal_static_tensorflow_RunMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_tensorflow_RunMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_RunMetadata_descriptor, + new java.lang.String[] { "StepStats", "CostGraph", "PartitionGraphs", "FunctionGraphs", "SessionMetadata", }); + internal_static_tensorflow_RunMetadata_FunctionGraphs_descriptor = + internal_static_tensorflow_RunMetadata_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_RunMetadata_FunctionGraphs_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_RunMetadata_FunctionGraphs_descriptor, + new java.lang.String[] { "PartitionGraphs", "PreOptimizationGraph", "PostOptimizationGraph", }); + internal_static_tensorflow_TensorConnection_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_tensorflow_TensorConnection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_TensorConnection_descriptor, + new java.lang.String[] { "FromTensor", "ToTensor", }); + internal_static_tensorflow_CallableOptions_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_tensorflow_CallableOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_CallableOptions_descriptor, + new java.lang.String[] { "Feed", "Fetch", "Target", "RunOptions", "TensorConnection", "FeedDevices", "FetchDevices", "FetchSkipSync", }); + internal_static_tensorflow_CallableOptions_FeedDevicesEntry_descriptor = + internal_static_tensorflow_CallableOptions_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_CallableOptions_FeedDevicesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_CallableOptions_FeedDevicesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_tensorflow_CallableOptions_FetchDevicesEntry_descriptor = + internal_static_tensorflow_CallableOptions_descriptor.getNestedTypes().get(1); + internal_static_tensorflow_CallableOptions_FetchDevicesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_CallableOptions_FetchDevicesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + org.tensorflow.proto.CostGraphProtos.getDescriptor(); + org.tensorflow.proto.GraphProtos.getDescriptor(); + org.tensorflow.proto.StepStatsProtos.getDescriptor(); + org.tensorflow.proto.ClusterProtos.getDescriptor(); + org.tensorflow.proto.DebugProtos.getDescriptor(); + org.tensorflow.proto.RewriterConfigProtos.getDescriptor(); + org.tensorflow.proto.dummy.RpcOptions.getDescriptor(); + org.tensorflow.proto.CoordinationConfig.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ControlFlowContextDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ControlFlowContextDef.java new file mode 100644 index 00000000000..ed69b95f087 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ControlFlowContextDef.java @@ -0,0 +1,902 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/control_flow.proto + +package org.tensorflow.proto; + +/** + *
+ * Container for any kind of control flow context. Any other control flow
+ * contexts that are added below should also be added here.
+ * 
+ * + * Protobuf type {@code tensorflow.ControlFlowContextDef} + */ +public final class ControlFlowContextDef extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.ControlFlowContextDef) + ControlFlowContextDefOrBuilder { +private static final long serialVersionUID = 0L; + // Use ControlFlowContextDef.newBuilder() to construct. + private ControlFlowContextDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ControlFlowContextDef() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ControlFlowContextDef(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ControlFlowProtos.internal_static_tensorflow_ControlFlowContextDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ControlFlowProtos.internal_static_tensorflow_ControlFlowContextDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ControlFlowContextDef.class, org.tensorflow.proto.ControlFlowContextDef.Builder.class); + } + + private int ctxtCase_ = 0; + private java.lang.Object ctxt_; + public enum CtxtCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + COND_CTXT(1), + WHILE_CTXT(2), + CTXT_NOT_SET(0); + private final int value; + private CtxtCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CtxtCase valueOf(int value) { + return forNumber(value); + } + + public static CtxtCase forNumber(int value) { + switch (value) { + case 1: return COND_CTXT; + case 2: return WHILE_CTXT; + case 0: return CTXT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public CtxtCase + getCtxtCase() { + return CtxtCase.forNumber( + ctxtCase_); + } + + public static final int COND_CTXT_FIELD_NUMBER = 1; + /** + * .tensorflow.CondContextDef cond_ctxt = 1; + * @return Whether the condCtxt field is set. + */ + @java.lang.Override + public boolean hasCondCtxt() { + return ctxtCase_ == 1; + } + /** + * .tensorflow.CondContextDef cond_ctxt = 1; + * @return The condCtxt. + */ + @java.lang.Override + public org.tensorflow.proto.CondContextDef getCondCtxt() { + if (ctxtCase_ == 1) { + return (org.tensorflow.proto.CondContextDef) ctxt_; + } + return org.tensorflow.proto.CondContextDef.getDefaultInstance(); + } + /** + * .tensorflow.CondContextDef cond_ctxt = 1; + */ + @java.lang.Override + public org.tensorflow.proto.CondContextDefOrBuilder getCondCtxtOrBuilder() { + if (ctxtCase_ == 1) { + return (org.tensorflow.proto.CondContextDef) ctxt_; + } + return org.tensorflow.proto.CondContextDef.getDefaultInstance(); + } + + public static final int WHILE_CTXT_FIELD_NUMBER = 2; + /** + * .tensorflow.WhileContextDef while_ctxt = 2; + * @return Whether the whileCtxt field is set. + */ + @java.lang.Override + public boolean hasWhileCtxt() { + return ctxtCase_ == 2; + } + /** + * .tensorflow.WhileContextDef while_ctxt = 2; + * @return The whileCtxt. + */ + @java.lang.Override + public org.tensorflow.proto.WhileContextDef getWhileCtxt() { + if (ctxtCase_ == 2) { + return (org.tensorflow.proto.WhileContextDef) ctxt_; + } + return org.tensorflow.proto.WhileContextDef.getDefaultInstance(); + } + /** + * .tensorflow.WhileContextDef while_ctxt = 2; + */ + @java.lang.Override + public org.tensorflow.proto.WhileContextDefOrBuilder getWhileCtxtOrBuilder() { + if (ctxtCase_ == 2) { + return (org.tensorflow.proto.WhileContextDef) ctxt_; + } + return org.tensorflow.proto.WhileContextDef.getDefaultInstance(); + } + + 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 (ctxtCase_ == 1) { + output.writeMessage(1, (org.tensorflow.proto.CondContextDef) ctxt_); + } + if (ctxtCase_ == 2) { + output.writeMessage(2, (org.tensorflow.proto.WhileContextDef) ctxt_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (ctxtCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (org.tensorflow.proto.CondContextDef) ctxt_); + } + if (ctxtCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (org.tensorflow.proto.WhileContextDef) ctxt_); + } + 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 org.tensorflow.proto.ControlFlowContextDef)) { + return super.equals(obj); + } + org.tensorflow.proto.ControlFlowContextDef other = (org.tensorflow.proto.ControlFlowContextDef) obj; + + if (!getCtxtCase().equals(other.getCtxtCase())) return false; + switch (ctxtCase_) { + case 1: + if (!getCondCtxt() + .equals(other.getCondCtxt())) return false; + break; + case 2: + if (!getWhileCtxt() + .equals(other.getWhileCtxt())) return false; + break; + case 0: + default: + } + 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(); + switch (ctxtCase_) { + case 1: + hash = (37 * hash) + COND_CTXT_FIELD_NUMBER; + hash = (53 * hash) + getCondCtxt().hashCode(); + break; + case 2: + hash = (37 * hash) + WHILE_CTXT_FIELD_NUMBER; + hash = (53 * hash) + getWhileCtxt().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.ControlFlowContextDef parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ControlFlowContextDef parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ControlFlowContextDef parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ControlFlowContextDef parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ControlFlowContextDef parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ControlFlowContextDef parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ControlFlowContextDef parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ControlFlowContextDef 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 org.tensorflow.proto.ControlFlowContextDef parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ControlFlowContextDef 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 org.tensorflow.proto.ControlFlowContextDef parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ControlFlowContextDef 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(org.tensorflow.proto.ControlFlowContextDef 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; + } + /** + *
+   * Container for any kind of control flow context. Any other control flow
+   * contexts that are added below should also be added here.
+   * 
+ * + * Protobuf type {@code tensorflow.ControlFlowContextDef} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.ControlFlowContextDef) + org.tensorflow.proto.ControlFlowContextDefOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ControlFlowProtos.internal_static_tensorflow_ControlFlowContextDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ControlFlowProtos.internal_static_tensorflow_ControlFlowContextDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ControlFlowContextDef.class, org.tensorflow.proto.ControlFlowContextDef.Builder.class); + } + + // Construct using org.tensorflow.proto.ControlFlowContextDef.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (condCtxtBuilder_ != null) { + condCtxtBuilder_.clear(); + } + if (whileCtxtBuilder_ != null) { + whileCtxtBuilder_.clear(); + } + ctxtCase_ = 0; + ctxt_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.ControlFlowProtos.internal_static_tensorflow_ControlFlowContextDef_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.ControlFlowContextDef getDefaultInstanceForType() { + return org.tensorflow.proto.ControlFlowContextDef.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.ControlFlowContextDef build() { + org.tensorflow.proto.ControlFlowContextDef result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.ControlFlowContextDef buildPartial() { + org.tensorflow.proto.ControlFlowContextDef result = new org.tensorflow.proto.ControlFlowContextDef(this); + if (ctxtCase_ == 1) { + if (condCtxtBuilder_ == null) { + result.ctxt_ = ctxt_; + } else { + result.ctxt_ = condCtxtBuilder_.build(); + } + } + if (ctxtCase_ == 2) { + if (whileCtxtBuilder_ == null) { + result.ctxt_ = ctxt_; + } else { + result.ctxt_ = whileCtxtBuilder_.build(); + } + } + result.ctxtCase_ = ctxtCase_; + 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 org.tensorflow.proto.ControlFlowContextDef) { + return mergeFrom((org.tensorflow.proto.ControlFlowContextDef)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.ControlFlowContextDef other) { + if (other == org.tensorflow.proto.ControlFlowContextDef.getDefaultInstance()) return this; + switch (other.getCtxtCase()) { + case COND_CTXT: { + mergeCondCtxt(other.getCondCtxt()); + break; + } + case WHILE_CTXT: { + mergeWhileCtxt(other.getWhileCtxt()); + break; + } + case CTXT_NOT_SET: { + break; + } + } + 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( + getCondCtxtFieldBuilder().getBuilder(), + extensionRegistry); + ctxtCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getWhileCtxtFieldBuilder().getBuilder(), + extensionRegistry); + ctxtCase_ = 2; + 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 ctxtCase_ = 0; + private java.lang.Object ctxt_; + public CtxtCase + getCtxtCase() { + return CtxtCase.forNumber( + ctxtCase_); + } + + public Builder clearCtxt() { + ctxtCase_ = 0; + ctxt_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.CondContextDef, org.tensorflow.proto.CondContextDef.Builder, org.tensorflow.proto.CondContextDefOrBuilder> condCtxtBuilder_; + /** + * .tensorflow.CondContextDef cond_ctxt = 1; + * @return Whether the condCtxt field is set. + */ + @java.lang.Override + public boolean hasCondCtxt() { + return ctxtCase_ == 1; + } + /** + * .tensorflow.CondContextDef cond_ctxt = 1; + * @return The condCtxt. + */ + @java.lang.Override + public org.tensorflow.proto.CondContextDef getCondCtxt() { + if (condCtxtBuilder_ == null) { + if (ctxtCase_ == 1) { + return (org.tensorflow.proto.CondContextDef) ctxt_; + } + return org.tensorflow.proto.CondContextDef.getDefaultInstance(); + } else { + if (ctxtCase_ == 1) { + return condCtxtBuilder_.getMessage(); + } + return org.tensorflow.proto.CondContextDef.getDefaultInstance(); + } + } + /** + * .tensorflow.CondContextDef cond_ctxt = 1; + */ + public Builder setCondCtxt(org.tensorflow.proto.CondContextDef value) { + if (condCtxtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ctxt_ = value; + onChanged(); + } else { + condCtxtBuilder_.setMessage(value); + } + ctxtCase_ = 1; + return this; + } + /** + * .tensorflow.CondContextDef cond_ctxt = 1; + */ + public Builder setCondCtxt( + org.tensorflow.proto.CondContextDef.Builder builderForValue) { + if (condCtxtBuilder_ == null) { + ctxt_ = builderForValue.build(); + onChanged(); + } else { + condCtxtBuilder_.setMessage(builderForValue.build()); + } + ctxtCase_ = 1; + return this; + } + /** + * .tensorflow.CondContextDef cond_ctxt = 1; + */ + public Builder mergeCondCtxt(org.tensorflow.proto.CondContextDef value) { + if (condCtxtBuilder_ == null) { + if (ctxtCase_ == 1 && + ctxt_ != org.tensorflow.proto.CondContextDef.getDefaultInstance()) { + ctxt_ = org.tensorflow.proto.CondContextDef.newBuilder((org.tensorflow.proto.CondContextDef) ctxt_) + .mergeFrom(value).buildPartial(); + } else { + ctxt_ = value; + } + onChanged(); + } else { + if (ctxtCase_ == 1) { + condCtxtBuilder_.mergeFrom(value); + } else { + condCtxtBuilder_.setMessage(value); + } + } + ctxtCase_ = 1; + return this; + } + /** + * .tensorflow.CondContextDef cond_ctxt = 1; + */ + public Builder clearCondCtxt() { + if (condCtxtBuilder_ == null) { + if (ctxtCase_ == 1) { + ctxtCase_ = 0; + ctxt_ = null; + onChanged(); + } + } else { + if (ctxtCase_ == 1) { + ctxtCase_ = 0; + ctxt_ = null; + } + condCtxtBuilder_.clear(); + } + return this; + } + /** + * .tensorflow.CondContextDef cond_ctxt = 1; + */ + public org.tensorflow.proto.CondContextDef.Builder getCondCtxtBuilder() { + return getCondCtxtFieldBuilder().getBuilder(); + } + /** + * .tensorflow.CondContextDef cond_ctxt = 1; + */ + @java.lang.Override + public org.tensorflow.proto.CondContextDefOrBuilder getCondCtxtOrBuilder() { + if ((ctxtCase_ == 1) && (condCtxtBuilder_ != null)) { + return condCtxtBuilder_.getMessageOrBuilder(); + } else { + if (ctxtCase_ == 1) { + return (org.tensorflow.proto.CondContextDef) ctxt_; + } + return org.tensorflow.proto.CondContextDef.getDefaultInstance(); + } + } + /** + * .tensorflow.CondContextDef cond_ctxt = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.CondContextDef, org.tensorflow.proto.CondContextDef.Builder, org.tensorflow.proto.CondContextDefOrBuilder> + getCondCtxtFieldBuilder() { + if (condCtxtBuilder_ == null) { + if (!(ctxtCase_ == 1)) { + ctxt_ = org.tensorflow.proto.CondContextDef.getDefaultInstance(); + } + condCtxtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.CondContextDef, org.tensorflow.proto.CondContextDef.Builder, org.tensorflow.proto.CondContextDefOrBuilder>( + (org.tensorflow.proto.CondContextDef) ctxt_, + getParentForChildren(), + isClean()); + ctxt_ = null; + } + ctxtCase_ = 1; + onChanged();; + return condCtxtBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.WhileContextDef, org.tensorflow.proto.WhileContextDef.Builder, org.tensorflow.proto.WhileContextDefOrBuilder> whileCtxtBuilder_; + /** + * .tensorflow.WhileContextDef while_ctxt = 2; + * @return Whether the whileCtxt field is set. + */ + @java.lang.Override + public boolean hasWhileCtxt() { + return ctxtCase_ == 2; + } + /** + * .tensorflow.WhileContextDef while_ctxt = 2; + * @return The whileCtxt. + */ + @java.lang.Override + public org.tensorflow.proto.WhileContextDef getWhileCtxt() { + if (whileCtxtBuilder_ == null) { + if (ctxtCase_ == 2) { + return (org.tensorflow.proto.WhileContextDef) ctxt_; + } + return org.tensorflow.proto.WhileContextDef.getDefaultInstance(); + } else { + if (ctxtCase_ == 2) { + return whileCtxtBuilder_.getMessage(); + } + return org.tensorflow.proto.WhileContextDef.getDefaultInstance(); + } + } + /** + * .tensorflow.WhileContextDef while_ctxt = 2; + */ + public Builder setWhileCtxt(org.tensorflow.proto.WhileContextDef value) { + if (whileCtxtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ctxt_ = value; + onChanged(); + } else { + whileCtxtBuilder_.setMessage(value); + } + ctxtCase_ = 2; + return this; + } + /** + * .tensorflow.WhileContextDef while_ctxt = 2; + */ + public Builder setWhileCtxt( + org.tensorflow.proto.WhileContextDef.Builder builderForValue) { + if (whileCtxtBuilder_ == null) { + ctxt_ = builderForValue.build(); + onChanged(); + } else { + whileCtxtBuilder_.setMessage(builderForValue.build()); + } + ctxtCase_ = 2; + return this; + } + /** + * .tensorflow.WhileContextDef while_ctxt = 2; + */ + public Builder mergeWhileCtxt(org.tensorflow.proto.WhileContextDef value) { + if (whileCtxtBuilder_ == null) { + if (ctxtCase_ == 2 && + ctxt_ != org.tensorflow.proto.WhileContextDef.getDefaultInstance()) { + ctxt_ = org.tensorflow.proto.WhileContextDef.newBuilder((org.tensorflow.proto.WhileContextDef) ctxt_) + .mergeFrom(value).buildPartial(); + } else { + ctxt_ = value; + } + onChanged(); + } else { + if (ctxtCase_ == 2) { + whileCtxtBuilder_.mergeFrom(value); + } else { + whileCtxtBuilder_.setMessage(value); + } + } + ctxtCase_ = 2; + return this; + } + /** + * .tensorflow.WhileContextDef while_ctxt = 2; + */ + public Builder clearWhileCtxt() { + if (whileCtxtBuilder_ == null) { + if (ctxtCase_ == 2) { + ctxtCase_ = 0; + ctxt_ = null; + onChanged(); + } + } else { + if (ctxtCase_ == 2) { + ctxtCase_ = 0; + ctxt_ = null; + } + whileCtxtBuilder_.clear(); + } + return this; + } + /** + * .tensorflow.WhileContextDef while_ctxt = 2; + */ + public org.tensorflow.proto.WhileContextDef.Builder getWhileCtxtBuilder() { + return getWhileCtxtFieldBuilder().getBuilder(); + } + /** + * .tensorflow.WhileContextDef while_ctxt = 2; + */ + @java.lang.Override + public org.tensorflow.proto.WhileContextDefOrBuilder getWhileCtxtOrBuilder() { + if ((ctxtCase_ == 2) && (whileCtxtBuilder_ != null)) { + return whileCtxtBuilder_.getMessageOrBuilder(); + } else { + if (ctxtCase_ == 2) { + return (org.tensorflow.proto.WhileContextDef) ctxt_; + } + return org.tensorflow.proto.WhileContextDef.getDefaultInstance(); + } + } + /** + * .tensorflow.WhileContextDef while_ctxt = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.WhileContextDef, org.tensorflow.proto.WhileContextDef.Builder, org.tensorflow.proto.WhileContextDefOrBuilder> + getWhileCtxtFieldBuilder() { + if (whileCtxtBuilder_ == null) { + if (!(ctxtCase_ == 2)) { + ctxt_ = org.tensorflow.proto.WhileContextDef.getDefaultInstance(); + } + whileCtxtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.WhileContextDef, org.tensorflow.proto.WhileContextDef.Builder, org.tensorflow.proto.WhileContextDefOrBuilder>( + (org.tensorflow.proto.WhileContextDef) ctxt_, + getParentForChildren(), + isClean()); + ctxt_ = null; + } + ctxtCase_ = 2; + onChanged();; + return whileCtxtBuilder_; + } + @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:tensorflow.ControlFlowContextDef) + } + + // @@protoc_insertion_point(class_scope:tensorflow.ControlFlowContextDef) + private static final org.tensorflow.proto.ControlFlowContextDef DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.ControlFlowContextDef(); + } + + public static org.tensorflow.proto.ControlFlowContextDef getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ControlFlowContextDef 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 org.tensorflow.proto.ControlFlowContextDef getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ControlFlowContextDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ControlFlowContextDefOrBuilder.java new file mode 100644 index 00000000000..39955a15626 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ControlFlowContextDefOrBuilder.java @@ -0,0 +1,41 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/control_flow.proto + +package org.tensorflow.proto; + +public interface ControlFlowContextDefOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.ControlFlowContextDef) + com.google.protobuf.MessageOrBuilder { + + /** + * .tensorflow.CondContextDef cond_ctxt = 1; + * @return Whether the condCtxt field is set. + */ + boolean hasCondCtxt(); + /** + * .tensorflow.CondContextDef cond_ctxt = 1; + * @return The condCtxt. + */ + org.tensorflow.proto.CondContextDef getCondCtxt(); + /** + * .tensorflow.CondContextDef cond_ctxt = 1; + */ + org.tensorflow.proto.CondContextDefOrBuilder getCondCtxtOrBuilder(); + + /** + * .tensorflow.WhileContextDef while_ctxt = 2; + * @return Whether the whileCtxt field is set. + */ + boolean hasWhileCtxt(); + /** + * .tensorflow.WhileContextDef while_ctxt = 2; + * @return The whileCtxt. + */ + org.tensorflow.proto.WhileContextDef getWhileCtxt(); + /** + * .tensorflow.WhileContextDef while_ctxt = 2; + */ + org.tensorflow.proto.WhileContextDefOrBuilder getWhileCtxtOrBuilder(); + + public org.tensorflow.proto.ControlFlowContextDef.CtxtCase getCtxtCase(); +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ControlFlowProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ControlFlowProtos.java similarity index 95% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ControlFlowProtos.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ControlFlowProtos.java index 0177c3eae88..c0bc5688853 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ControlFlowProtos.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ControlFlowProtos.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/control_flow.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public final class ControlFlowProtos { private ControlFlowProtos() {} @@ -71,10 +71,10 @@ public static void registerAllExtensions( "\001(\0132\025.tensorflow.ValuesDef\022\037\n\027maximum_it" + "erations_name\030\013 \001(\t\022:\n\017nested_contexts\030\014" + " \003(\0132!.tensorflow.ControlFlowContextDefB" + - "\217\001\n\036org.tensorflow.proto.frameworkB\021Cont" + - "rolFlowProtosP\001ZUgithub.com/tensorflow/t" + - "ensorflow/tensorflow/go/core/protobuf/fo" + - "r_core_protos_go_proto\370\001\001b\006proto3" + "\205\001\n\024org.tensorflow.protoB\021ControlFlowPro" + + "tosP\001ZUgithub.com/tensorflow/tensorflow/" + + "tensorflow/go/core/protobuf/for_core_pro" + + "tos_go_proto\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CoordinationConfig.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CoordinationConfig.java new file mode 100644 index 00000000000..fc041fc448e --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CoordinationConfig.java @@ -0,0 +1,2814 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/tsl/protobuf/coordination_config.proto + +package org.tensorflow.proto; + +public final class CoordinationConfig { + private CoordinationConfig() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface CoordinatedJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.CoordinatedJob) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * int32 num_tasks = 2; + * @return The numTasks. + */ + int getNumTasks(); + } + /** + *
+   * Represents a job type and the number of tasks under this job.
+   * For example, ("worker", 20) implies that there will be 20 worker tasks.
+   * 
+ * + * Protobuf type {@code tensorflow.CoordinatedJob} + */ + public static final class CoordinatedJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.CoordinatedJob) + CoordinatedJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use CoordinatedJob.newBuilder() to construct. + private CoordinatedJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CoordinatedJob() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CoordinatedJob(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.CoordinationConfig.internal_static_tensorflow_CoordinatedJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.CoordinationConfig.internal_static_tensorflow_CoordinatedJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CoordinationConfig.CoordinatedJob.class, org.tensorflow.proto.CoordinationConfig.CoordinatedJob.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NUM_TASKS_FIELD_NUMBER = 2; + private int numTasks_; + /** + * int32 num_tasks = 2; + * @return The numTasks. + */ + @java.lang.Override + public int getNumTasks() { + return numTasks_; + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (numTasks_ != 0) { + output.writeInt32(2, numTasks_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (numTasks_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, numTasks_); + } + 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 org.tensorflow.proto.CoordinationConfig.CoordinatedJob)) { + return super.equals(obj); + } + org.tensorflow.proto.CoordinationConfig.CoordinatedJob other = (org.tensorflow.proto.CoordinationConfig.CoordinatedJob) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getNumTasks() + != other.getNumTasks()) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + NUM_TASKS_FIELD_NUMBER; + hash = (53 * hash) + getNumTasks(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.CoordinationConfig.CoordinatedJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CoordinationConfig.CoordinatedJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CoordinationConfig.CoordinatedJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CoordinationConfig.CoordinatedJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CoordinationConfig.CoordinatedJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CoordinationConfig.CoordinatedJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CoordinationConfig.CoordinatedJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CoordinationConfig.CoordinatedJob 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 org.tensorflow.proto.CoordinationConfig.CoordinatedJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CoordinationConfig.CoordinatedJob 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 org.tensorflow.proto.CoordinationConfig.CoordinatedJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CoordinationConfig.CoordinatedJob 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(org.tensorflow.proto.CoordinationConfig.CoordinatedJob 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; + } + /** + *
+     * Represents a job type and the number of tasks under this job.
+     * For example, ("worker", 20) implies that there will be 20 worker tasks.
+     * 
+ * + * Protobuf type {@code tensorflow.CoordinatedJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.CoordinatedJob) + org.tensorflow.proto.CoordinationConfig.CoordinatedJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.CoordinationConfig.internal_static_tensorflow_CoordinatedJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.CoordinationConfig.internal_static_tensorflow_CoordinatedJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CoordinationConfig.CoordinatedJob.class, org.tensorflow.proto.CoordinationConfig.CoordinatedJob.Builder.class); + } + + // Construct using org.tensorflow.proto.CoordinationConfig.CoordinatedJob.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + numTasks_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.CoordinationConfig.internal_static_tensorflow_CoordinatedJob_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.CoordinationConfig.CoordinatedJob getDefaultInstanceForType() { + return org.tensorflow.proto.CoordinationConfig.CoordinatedJob.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.CoordinationConfig.CoordinatedJob build() { + org.tensorflow.proto.CoordinationConfig.CoordinatedJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.CoordinationConfig.CoordinatedJob buildPartial() { + org.tensorflow.proto.CoordinationConfig.CoordinatedJob result = new org.tensorflow.proto.CoordinationConfig.CoordinatedJob(this); + result.name_ = name_; + result.numTasks_ = numTasks_; + 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 org.tensorflow.proto.CoordinationConfig.CoordinatedJob) { + return mergeFrom((org.tensorflow.proto.CoordinationConfig.CoordinatedJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.CoordinationConfig.CoordinatedJob other) { + if (other == org.tensorflow.proto.CoordinationConfig.CoordinatedJob.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getNumTasks() != 0) { + setNumTasks(other.getNumTasks()); + } + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + numTasks_ = input.readInt32(); + + break; + } // case 16 + 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 java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int numTasks_ ; + /** + * int32 num_tasks = 2; + * @return The numTasks. + */ + @java.lang.Override + public int getNumTasks() { + return numTasks_; + } + /** + * int32 num_tasks = 2; + * @param value The numTasks to set. + * @return This builder for chaining. + */ + public Builder setNumTasks(int value) { + + numTasks_ = value; + onChanged(); + return this; + } + /** + * int32 num_tasks = 2; + * @return This builder for chaining. + */ + public Builder clearNumTasks() { + + numTasks_ = 0; + 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:tensorflow.CoordinatedJob) + } + + // @@protoc_insertion_point(class_scope:tensorflow.CoordinatedJob) + private static final org.tensorflow.proto.CoordinationConfig.CoordinatedJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.CoordinationConfig.CoordinatedJob(); + } + + public static org.tensorflow.proto.CoordinationConfig.CoordinatedJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CoordinatedJob 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 org.tensorflow.proto.CoordinationConfig.CoordinatedJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CoordinationServiceConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.CoordinationServiceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Type of coordination service implementation to enable.
+     * For example, setting the service type as "standalone" starts a service
+     * instance on the leader task to provide the coordination services such as
+     * heartbeats and consistent key-value store.
+     * 
+ * + * string service_type = 1; + * @return The serviceType. + */ + java.lang.String getServiceType(); + /** + *
+     * Type of coordination service implementation to enable.
+     * For example, setting the service type as "standalone" starts a service
+     * instance on the leader task to provide the coordination services such as
+     * heartbeats and consistent key-value store.
+     * 
+ * + * string service_type = 1; + * @return The bytes for serviceType. + */ + com.google.protobuf.ByteString + getServiceTypeBytes(); + + /** + *
+     * Address where the coordination service instance is hosted.
+     * 
+ * + * string service_leader = 2; + * @return The serviceLeader. + */ + java.lang.String getServiceLeader(); + /** + *
+     * Address where the coordination service instance is hosted.
+     * 
+ * + * string service_leader = 2; + * @return The bytes for serviceLeader. + */ + com.google.protobuf.ByteString + getServiceLeaderBytes(); + + /** + *
+     * Whether to enable the health check mechanism.
+     * 
+ * + * bool enable_health_check = 3; + * @return The enableHealthCheck. + */ + boolean getEnableHealthCheck(); + + /** + *
+     * Maximum wait time for all members in the cluster to be registered.
+     * 
+ * + * int64 cluster_register_timeout_in_ms = 4; + * @return The clusterRegisterTimeoutInMs. + */ + long getClusterRegisterTimeoutInMs(); + + /** + *
+     * Heartbeat timeout, if a task does not record heartbeat in this time
+     * window, it will be considered disconnected.
+     * Note: This is also used as a grace period to accept any heartbeats after
+     * the agent has disconnected, to account for the lag time between the service
+     * recording the state change and the agent stopping heartbeats.
+     * 
+ * + * int64 heartbeat_timeout_in_ms = 5; + * @return The heartbeatTimeoutInMs. + */ + long getHeartbeatTimeoutInMs(); + + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + java.util.List + getCoordinatedJobListList(); + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + org.tensorflow.proto.CoordinationConfig.CoordinatedJob getCoordinatedJobList(int index); + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + int getCoordinatedJobListCount(); + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + java.util.List + getCoordinatedJobListOrBuilderList(); + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + org.tensorflow.proto.CoordinationConfig.CoordinatedJobOrBuilder getCoordinatedJobListOrBuilder( + int index); + + /** + *
+     * Denotes how long to wait for all coordination agents to reach the barriers
+     * (after the first shutdown request) before disconnecting together. If
+     * set to 0, no barrier is imposed upon shutdown and each worker can
+     * disconnect individually.
+     * 
+ * + * int64 shutdown_barrier_timeout_in_ms = 7; + * @return The shutdownBarrierTimeoutInMs. + */ + long getShutdownBarrierTimeoutInMs(); + + /** + *
+     * If set, agents do not make an explicit Shutdown() call. Service will only
+     * find out about the disconnecte agent via stale heartbeats. Used for
+     * testing.
+     * 
+ * + * bool agent_destruction_without_shutdown = 8; + * @return The agentDestructionWithoutShutdown. + */ + boolean getAgentDestructionWithoutShutdown(); + + /** + *
+     * The list of jobs which are recoverable. If a task in this list fails,
+     * it will not propagate error to other tasks.
+     * If empty, no jobs will be recoverable and every task failure will cause
+     * error propagation to other tasks.
+     * 
+ * + * repeated string recoverable_jobs = 9; + * @return A list containing the recoverableJobs. + */ + java.util.List + getRecoverableJobsList(); + /** + *
+     * The list of jobs which are recoverable. If a task in this list fails,
+     * it will not propagate error to other tasks.
+     * If empty, no jobs will be recoverable and every task failure will cause
+     * error propagation to other tasks.
+     * 
+ * + * repeated string recoverable_jobs = 9; + * @return The count of recoverableJobs. + */ + int getRecoverableJobsCount(); + /** + *
+     * The list of jobs which are recoverable. If a task in this list fails,
+     * it will not propagate error to other tasks.
+     * If empty, no jobs will be recoverable and every task failure will cause
+     * error propagation to other tasks.
+     * 
+ * + * repeated string recoverable_jobs = 9; + * @param index The index of the element to return. + * @return The recoverableJobs at the given index. + */ + java.lang.String getRecoverableJobs(int index); + /** + *
+     * The list of jobs which are recoverable. If a task in this list fails,
+     * it will not propagate error to other tasks.
+     * If empty, no jobs will be recoverable and every task failure will cause
+     * error propagation to other tasks.
+     * 
+ * + * repeated string recoverable_jobs = 9; + * @param index The index of the value to return. + * @return The bytes of the recoverableJobs at the given index. + */ + com.google.protobuf.ByteString + getRecoverableJobsBytes(int index); + + /** + *
+     * If a task restarts with a new incarnation, we may allow it to reconnect
+     * silently. This is useful when we know that a task can immediately resume
+     * work upon re-connecting to the service.
+     * 
+ * + * bool allow_new_incarnation_to_reconnect = 11; + * @return The allowNewIncarnationToReconnect. + */ + boolean getAllowNewIncarnationToReconnect(); + } + /** + *
+   * Coordination service configuration parameters.
+   * The system picks appropriate values for fields that are not set.
+   * 
+ * + * Protobuf type {@code tensorflow.CoordinationServiceConfig} + */ + public static final class CoordinationServiceConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.CoordinationServiceConfig) + CoordinationServiceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use CoordinationServiceConfig.newBuilder() to construct. + private CoordinationServiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CoordinationServiceConfig() { + serviceType_ = ""; + serviceLeader_ = ""; + coordinatedJobList_ = java.util.Collections.emptyList(); + recoverableJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CoordinationServiceConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.CoordinationConfig.internal_static_tensorflow_CoordinationServiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.CoordinationConfig.internal_static_tensorflow_CoordinationServiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig.class, org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig.Builder.class); + } + + public static final int SERVICE_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object serviceType_; + /** + *
+     * Type of coordination service implementation to enable.
+     * For example, setting the service type as "standalone" starts a service
+     * instance on the leader task to provide the coordination services such as
+     * heartbeats and consistent key-value store.
+     * 
+ * + * string service_type = 1; + * @return The serviceType. + */ + @java.lang.Override + public java.lang.String getServiceType() { + java.lang.Object ref = serviceType_; + 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(); + serviceType_ = s; + return s; + } + } + /** + *
+     * Type of coordination service implementation to enable.
+     * For example, setting the service type as "standalone" starts a service
+     * instance on the leader task to provide the coordination services such as
+     * heartbeats and consistent key-value store.
+     * 
+ * + * string service_type = 1; + * @return The bytes for serviceType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getServiceTypeBytes() { + java.lang.Object ref = serviceType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_LEADER_FIELD_NUMBER = 2; + private volatile java.lang.Object serviceLeader_; + /** + *
+     * Address where the coordination service instance is hosted.
+     * 
+ * + * string service_leader = 2; + * @return The serviceLeader. + */ + @java.lang.Override + public java.lang.String getServiceLeader() { + java.lang.Object ref = serviceLeader_; + 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(); + serviceLeader_ = s; + return s; + } + } + /** + *
+     * Address where the coordination service instance is hosted.
+     * 
+ * + * string service_leader = 2; + * @return The bytes for serviceLeader. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getServiceLeaderBytes() { + java.lang.Object ref = serviceLeader_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceLeader_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_HEALTH_CHECK_FIELD_NUMBER = 3; + private boolean enableHealthCheck_; + /** + *
+     * Whether to enable the health check mechanism.
+     * 
+ * + * bool enable_health_check = 3; + * @return The enableHealthCheck. + */ + @java.lang.Override + public boolean getEnableHealthCheck() { + return enableHealthCheck_; + } + + public static final int CLUSTER_REGISTER_TIMEOUT_IN_MS_FIELD_NUMBER = 4; + private long clusterRegisterTimeoutInMs_; + /** + *
+     * Maximum wait time for all members in the cluster to be registered.
+     * 
+ * + * int64 cluster_register_timeout_in_ms = 4; + * @return The clusterRegisterTimeoutInMs. + */ + @java.lang.Override + public long getClusterRegisterTimeoutInMs() { + return clusterRegisterTimeoutInMs_; + } + + public static final int HEARTBEAT_TIMEOUT_IN_MS_FIELD_NUMBER = 5; + private long heartbeatTimeoutInMs_; + /** + *
+     * Heartbeat timeout, if a task does not record heartbeat in this time
+     * window, it will be considered disconnected.
+     * Note: This is also used as a grace period to accept any heartbeats after
+     * the agent has disconnected, to account for the lag time between the service
+     * recording the state change and the agent stopping heartbeats.
+     * 
+ * + * int64 heartbeat_timeout_in_ms = 5; + * @return The heartbeatTimeoutInMs. + */ + @java.lang.Override + public long getHeartbeatTimeoutInMs() { + return heartbeatTimeoutInMs_; + } + + public static final int COORDINATED_JOB_LIST_FIELD_NUMBER = 10; + private java.util.List coordinatedJobList_; + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + @java.lang.Override + public java.util.List getCoordinatedJobListList() { + return coordinatedJobList_; + } + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + @java.lang.Override + public java.util.List + getCoordinatedJobListOrBuilderList() { + return coordinatedJobList_; + } + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + @java.lang.Override + public int getCoordinatedJobListCount() { + return coordinatedJobList_.size(); + } + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + @java.lang.Override + public org.tensorflow.proto.CoordinationConfig.CoordinatedJob getCoordinatedJobList(int index) { + return coordinatedJobList_.get(index); + } + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + @java.lang.Override + public org.tensorflow.proto.CoordinationConfig.CoordinatedJobOrBuilder getCoordinatedJobListOrBuilder( + int index) { + return coordinatedJobList_.get(index); + } + + public static final int SHUTDOWN_BARRIER_TIMEOUT_IN_MS_FIELD_NUMBER = 7; + private long shutdownBarrierTimeoutInMs_; + /** + *
+     * Denotes how long to wait for all coordination agents to reach the barriers
+     * (after the first shutdown request) before disconnecting together. If
+     * set to 0, no barrier is imposed upon shutdown and each worker can
+     * disconnect individually.
+     * 
+ * + * int64 shutdown_barrier_timeout_in_ms = 7; + * @return The shutdownBarrierTimeoutInMs. + */ + @java.lang.Override + public long getShutdownBarrierTimeoutInMs() { + return shutdownBarrierTimeoutInMs_; + } + + public static final int AGENT_DESTRUCTION_WITHOUT_SHUTDOWN_FIELD_NUMBER = 8; + private boolean agentDestructionWithoutShutdown_; + /** + *
+     * If set, agents do not make an explicit Shutdown() call. Service will only
+     * find out about the disconnecte agent via stale heartbeats. Used for
+     * testing.
+     * 
+ * + * bool agent_destruction_without_shutdown = 8; + * @return The agentDestructionWithoutShutdown. + */ + @java.lang.Override + public boolean getAgentDestructionWithoutShutdown() { + return agentDestructionWithoutShutdown_; + } + + public static final int RECOVERABLE_JOBS_FIELD_NUMBER = 9; + private com.google.protobuf.LazyStringList recoverableJobs_; + /** + *
+     * The list of jobs which are recoverable. If a task in this list fails,
+     * it will not propagate error to other tasks.
+     * If empty, no jobs will be recoverable and every task failure will cause
+     * error propagation to other tasks.
+     * 
+ * + * repeated string recoverable_jobs = 9; + * @return A list containing the recoverableJobs. + */ + public com.google.protobuf.ProtocolStringList + getRecoverableJobsList() { + return recoverableJobs_; + } + /** + *
+     * The list of jobs which are recoverable. If a task in this list fails,
+     * it will not propagate error to other tasks.
+     * If empty, no jobs will be recoverable and every task failure will cause
+     * error propagation to other tasks.
+     * 
+ * + * repeated string recoverable_jobs = 9; + * @return The count of recoverableJobs. + */ + public int getRecoverableJobsCount() { + return recoverableJobs_.size(); + } + /** + *
+     * The list of jobs which are recoverable. If a task in this list fails,
+     * it will not propagate error to other tasks.
+     * If empty, no jobs will be recoverable and every task failure will cause
+     * error propagation to other tasks.
+     * 
+ * + * repeated string recoverable_jobs = 9; + * @param index The index of the element to return. + * @return The recoverableJobs at the given index. + */ + public java.lang.String getRecoverableJobs(int index) { + return recoverableJobs_.get(index); + } + /** + *
+     * The list of jobs which are recoverable. If a task in this list fails,
+     * it will not propagate error to other tasks.
+     * If empty, no jobs will be recoverable and every task failure will cause
+     * error propagation to other tasks.
+     * 
+ * + * repeated string recoverable_jobs = 9; + * @param index The index of the value to return. + * @return The bytes of the recoverableJobs at the given index. + */ + public com.google.protobuf.ByteString + getRecoverableJobsBytes(int index) { + return recoverableJobs_.getByteString(index); + } + + public static final int ALLOW_NEW_INCARNATION_TO_RECONNECT_FIELD_NUMBER = 11; + private boolean allowNewIncarnationToReconnect_; + /** + *
+     * If a task restarts with a new incarnation, we may allow it to reconnect
+     * silently. This is useful when we know that a task can immediately resume
+     * work upon re-connecting to the service.
+     * 
+ * + * bool allow_new_incarnation_to_reconnect = 11; + * @return The allowNewIncarnationToReconnect. + */ + @java.lang.Override + public boolean getAllowNewIncarnationToReconnect() { + return allowNewIncarnationToReconnect_; + } + + 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(serviceType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceLeader_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceLeader_); + } + if (enableHealthCheck_ != false) { + output.writeBool(3, enableHealthCheck_); + } + if (clusterRegisterTimeoutInMs_ != 0L) { + output.writeInt64(4, clusterRegisterTimeoutInMs_); + } + if (heartbeatTimeoutInMs_ != 0L) { + output.writeInt64(5, heartbeatTimeoutInMs_); + } + if (shutdownBarrierTimeoutInMs_ != 0L) { + output.writeInt64(7, shutdownBarrierTimeoutInMs_); + } + if (agentDestructionWithoutShutdown_ != false) { + output.writeBool(8, agentDestructionWithoutShutdown_); + } + for (int i = 0; i < recoverableJobs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, recoverableJobs_.getRaw(i)); + } + for (int i = 0; i < coordinatedJobList_.size(); i++) { + output.writeMessage(10, coordinatedJobList_.get(i)); + } + if (allowNewIncarnationToReconnect_ != false) { + output.writeBool(11, allowNewIncarnationToReconnect_); + } + 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(serviceType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceLeader_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceLeader_); + } + if (enableHealthCheck_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, enableHealthCheck_); + } + if (clusterRegisterTimeoutInMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, clusterRegisterTimeoutInMs_); + } + if (heartbeatTimeoutInMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, heartbeatTimeoutInMs_); + } + if (shutdownBarrierTimeoutInMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, shutdownBarrierTimeoutInMs_); + } + if (agentDestructionWithoutShutdown_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, agentDestructionWithoutShutdown_); + } + { + int dataSize = 0; + for (int i = 0; i < recoverableJobs_.size(); i++) { + dataSize += computeStringSizeNoTag(recoverableJobs_.getRaw(i)); + } + size += dataSize; + size += 1 * getRecoverableJobsList().size(); + } + for (int i = 0; i < coordinatedJobList_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, coordinatedJobList_.get(i)); + } + if (allowNewIncarnationToReconnect_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(11, allowNewIncarnationToReconnect_); + } + 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 org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig)) { + return super.equals(obj); + } + org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig other = (org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig) obj; + + if (!getServiceType() + .equals(other.getServiceType())) return false; + if (!getServiceLeader() + .equals(other.getServiceLeader())) return false; + if (getEnableHealthCheck() + != other.getEnableHealthCheck()) return false; + if (getClusterRegisterTimeoutInMs() + != other.getClusterRegisterTimeoutInMs()) return false; + if (getHeartbeatTimeoutInMs() + != other.getHeartbeatTimeoutInMs()) return false; + if (!getCoordinatedJobListList() + .equals(other.getCoordinatedJobListList())) return false; + if (getShutdownBarrierTimeoutInMs() + != other.getShutdownBarrierTimeoutInMs()) return false; + if (getAgentDestructionWithoutShutdown() + != other.getAgentDestructionWithoutShutdown()) return false; + if (!getRecoverableJobsList() + .equals(other.getRecoverableJobsList())) return false; + if (getAllowNewIncarnationToReconnect() + != other.getAllowNewIncarnationToReconnect()) 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) + SERVICE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getServiceType().hashCode(); + hash = (37 * hash) + SERVICE_LEADER_FIELD_NUMBER; + hash = (53 * hash) + getServiceLeader().hashCode(); + hash = (37 * hash) + ENABLE_HEALTH_CHECK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableHealthCheck()); + hash = (37 * hash) + CLUSTER_REGISTER_TIMEOUT_IN_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getClusterRegisterTimeoutInMs()); + hash = (37 * hash) + HEARTBEAT_TIMEOUT_IN_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getHeartbeatTimeoutInMs()); + if (getCoordinatedJobListCount() > 0) { + hash = (37 * hash) + COORDINATED_JOB_LIST_FIELD_NUMBER; + hash = (53 * hash) + getCoordinatedJobListList().hashCode(); + } + hash = (37 * hash) + SHUTDOWN_BARRIER_TIMEOUT_IN_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getShutdownBarrierTimeoutInMs()); + hash = (37 * hash) + AGENT_DESTRUCTION_WITHOUT_SHUTDOWN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAgentDestructionWithoutShutdown()); + if (getRecoverableJobsCount() > 0) { + hash = (37 * hash) + RECOVERABLE_JOBS_FIELD_NUMBER; + hash = (53 * hash) + getRecoverableJobsList().hashCode(); + } + hash = (37 * hash) + ALLOW_NEW_INCARNATION_TO_RECONNECT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowNewIncarnationToReconnect()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig 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 org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig 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 org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig 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(org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig 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; + } + /** + *
+     * Coordination service configuration parameters.
+     * The system picks appropriate values for fields that are not set.
+     * 
+ * + * Protobuf type {@code tensorflow.CoordinationServiceConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.CoordinationServiceConfig) + org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.CoordinationConfig.internal_static_tensorflow_CoordinationServiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.CoordinationConfig.internal_static_tensorflow_CoordinationServiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig.class, org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig.Builder.class); + } + + // Construct using org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + serviceType_ = ""; + + serviceLeader_ = ""; + + enableHealthCheck_ = false; + + clusterRegisterTimeoutInMs_ = 0L; + + heartbeatTimeoutInMs_ = 0L; + + if (coordinatedJobListBuilder_ == null) { + coordinatedJobList_ = java.util.Collections.emptyList(); + } else { + coordinatedJobList_ = null; + coordinatedJobListBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + shutdownBarrierTimeoutInMs_ = 0L; + + agentDestructionWithoutShutdown_ = false; + + recoverableJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + allowNewIncarnationToReconnect_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.CoordinationConfig.internal_static_tensorflow_CoordinationServiceConfig_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig getDefaultInstanceForType() { + return org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig build() { + org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig buildPartial() { + org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig result = new org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig(this); + int from_bitField0_ = bitField0_; + result.serviceType_ = serviceType_; + result.serviceLeader_ = serviceLeader_; + result.enableHealthCheck_ = enableHealthCheck_; + result.clusterRegisterTimeoutInMs_ = clusterRegisterTimeoutInMs_; + result.heartbeatTimeoutInMs_ = heartbeatTimeoutInMs_; + if (coordinatedJobListBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + coordinatedJobList_ = java.util.Collections.unmodifiableList(coordinatedJobList_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.coordinatedJobList_ = coordinatedJobList_; + } else { + result.coordinatedJobList_ = coordinatedJobListBuilder_.build(); + } + result.shutdownBarrierTimeoutInMs_ = shutdownBarrierTimeoutInMs_; + result.agentDestructionWithoutShutdown_ = agentDestructionWithoutShutdown_; + if (((bitField0_ & 0x00000002) != 0)) { + recoverableJobs_ = recoverableJobs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.recoverableJobs_ = recoverableJobs_; + result.allowNewIncarnationToReconnect_ = allowNewIncarnationToReconnect_; + 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 org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig) { + return mergeFrom((org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig other) { + if (other == org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig.getDefaultInstance()) return this; + if (!other.getServiceType().isEmpty()) { + serviceType_ = other.serviceType_; + onChanged(); + } + if (!other.getServiceLeader().isEmpty()) { + serviceLeader_ = other.serviceLeader_; + onChanged(); + } + if (other.getEnableHealthCheck() != false) { + setEnableHealthCheck(other.getEnableHealthCheck()); + } + if (other.getClusterRegisterTimeoutInMs() != 0L) { + setClusterRegisterTimeoutInMs(other.getClusterRegisterTimeoutInMs()); + } + if (other.getHeartbeatTimeoutInMs() != 0L) { + setHeartbeatTimeoutInMs(other.getHeartbeatTimeoutInMs()); + } + if (coordinatedJobListBuilder_ == null) { + if (!other.coordinatedJobList_.isEmpty()) { + if (coordinatedJobList_.isEmpty()) { + coordinatedJobList_ = other.coordinatedJobList_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCoordinatedJobListIsMutable(); + coordinatedJobList_.addAll(other.coordinatedJobList_); + } + onChanged(); + } + } else { + if (!other.coordinatedJobList_.isEmpty()) { + if (coordinatedJobListBuilder_.isEmpty()) { + coordinatedJobListBuilder_.dispose(); + coordinatedJobListBuilder_ = null; + coordinatedJobList_ = other.coordinatedJobList_; + bitField0_ = (bitField0_ & ~0x00000001); + coordinatedJobListBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCoordinatedJobListFieldBuilder() : null; + } else { + coordinatedJobListBuilder_.addAllMessages(other.coordinatedJobList_); + } + } + } + if (other.getShutdownBarrierTimeoutInMs() != 0L) { + setShutdownBarrierTimeoutInMs(other.getShutdownBarrierTimeoutInMs()); + } + if (other.getAgentDestructionWithoutShutdown() != false) { + setAgentDestructionWithoutShutdown(other.getAgentDestructionWithoutShutdown()); + } + if (!other.recoverableJobs_.isEmpty()) { + if (recoverableJobs_.isEmpty()) { + recoverableJobs_ = other.recoverableJobs_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRecoverableJobsIsMutable(); + recoverableJobs_.addAll(other.recoverableJobs_); + } + onChanged(); + } + if (other.getAllowNewIncarnationToReconnect() != false) { + setAllowNewIncarnationToReconnect(other.getAllowNewIncarnationToReconnect()); + } + 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: { + serviceType_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + serviceLeader_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + enableHealthCheck_ = input.readBool(); + + break; + } // case 24 + case 32: { + clusterRegisterTimeoutInMs_ = input.readInt64(); + + break; + } // case 32 + case 40: { + heartbeatTimeoutInMs_ = input.readInt64(); + + break; + } // case 40 + case 56: { + shutdownBarrierTimeoutInMs_ = input.readInt64(); + + break; + } // case 56 + case 64: { + agentDestructionWithoutShutdown_ = input.readBool(); + + break; + } // case 64 + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRecoverableJobsIsMutable(); + recoverableJobs_.add(s); + break; + } // case 74 + case 82: { + org.tensorflow.proto.CoordinationConfig.CoordinatedJob m = + input.readMessage( + org.tensorflow.proto.CoordinationConfig.CoordinatedJob.parser(), + extensionRegistry); + if (coordinatedJobListBuilder_ == null) { + ensureCoordinatedJobListIsMutable(); + coordinatedJobList_.add(m); + } else { + coordinatedJobListBuilder_.addMessage(m); + } + break; + } // case 82 + case 88: { + allowNewIncarnationToReconnect_ = input.readBool(); + + break; + } // case 88 + 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 serviceType_ = ""; + /** + *
+       * Type of coordination service implementation to enable.
+       * For example, setting the service type as "standalone" starts a service
+       * instance on the leader task to provide the coordination services such as
+       * heartbeats and consistent key-value store.
+       * 
+ * + * string service_type = 1; + * @return The serviceType. + */ + public java.lang.String getServiceType() { + java.lang.Object ref = serviceType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Type of coordination service implementation to enable.
+       * For example, setting the service type as "standalone" starts a service
+       * instance on the leader task to provide the coordination services such as
+       * heartbeats and consistent key-value store.
+       * 
+ * + * string service_type = 1; + * @return The bytes for serviceType. + */ + public com.google.protobuf.ByteString + getServiceTypeBytes() { + java.lang.Object ref = serviceType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Type of coordination service implementation to enable.
+       * For example, setting the service type as "standalone" starts a service
+       * instance on the leader task to provide the coordination services such as
+       * heartbeats and consistent key-value store.
+       * 
+ * + * string service_type = 1; + * @param value The serviceType to set. + * @return This builder for chaining. + */ + public Builder setServiceType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceType_ = value; + onChanged(); + return this; + } + /** + *
+       * Type of coordination service implementation to enable.
+       * For example, setting the service type as "standalone" starts a service
+       * instance on the leader task to provide the coordination services such as
+       * heartbeats and consistent key-value store.
+       * 
+ * + * string service_type = 1; + * @return This builder for chaining. + */ + public Builder clearServiceType() { + + serviceType_ = getDefaultInstance().getServiceType(); + onChanged(); + return this; + } + /** + *
+       * Type of coordination service implementation to enable.
+       * For example, setting the service type as "standalone" starts a service
+       * instance on the leader task to provide the coordination services such as
+       * heartbeats and consistent key-value store.
+       * 
+ * + * string service_type = 1; + * @param value The bytes for serviceType to set. + * @return This builder for chaining. + */ + public Builder setServiceTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceType_ = value; + onChanged(); + return this; + } + + private java.lang.Object serviceLeader_ = ""; + /** + *
+       * Address where the coordination service instance is hosted.
+       * 
+ * + * string service_leader = 2; + * @return The serviceLeader. + */ + public java.lang.String getServiceLeader() { + java.lang.Object ref = serviceLeader_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceLeader_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Address where the coordination service instance is hosted.
+       * 
+ * + * string service_leader = 2; + * @return The bytes for serviceLeader. + */ + public com.google.protobuf.ByteString + getServiceLeaderBytes() { + java.lang.Object ref = serviceLeader_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceLeader_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Address where the coordination service instance is hosted.
+       * 
+ * + * string service_leader = 2; + * @param value The serviceLeader to set. + * @return This builder for chaining. + */ + public Builder setServiceLeader( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceLeader_ = value; + onChanged(); + return this; + } + /** + *
+       * Address where the coordination service instance is hosted.
+       * 
+ * + * string service_leader = 2; + * @return This builder for chaining. + */ + public Builder clearServiceLeader() { + + serviceLeader_ = getDefaultInstance().getServiceLeader(); + onChanged(); + return this; + } + /** + *
+       * Address where the coordination service instance is hosted.
+       * 
+ * + * string service_leader = 2; + * @param value The bytes for serviceLeader to set. + * @return This builder for chaining. + */ + public Builder setServiceLeaderBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceLeader_ = value; + onChanged(); + return this; + } + + private boolean enableHealthCheck_ ; + /** + *
+       * Whether to enable the health check mechanism.
+       * 
+ * + * bool enable_health_check = 3; + * @return The enableHealthCheck. + */ + @java.lang.Override + public boolean getEnableHealthCheck() { + return enableHealthCheck_; + } + /** + *
+       * Whether to enable the health check mechanism.
+       * 
+ * + * bool enable_health_check = 3; + * @param value The enableHealthCheck to set. + * @return This builder for chaining. + */ + public Builder setEnableHealthCheck(boolean value) { + + enableHealthCheck_ = value; + onChanged(); + return this; + } + /** + *
+       * Whether to enable the health check mechanism.
+       * 
+ * + * bool enable_health_check = 3; + * @return This builder for chaining. + */ + public Builder clearEnableHealthCheck() { + + enableHealthCheck_ = false; + onChanged(); + return this; + } + + private long clusterRegisterTimeoutInMs_ ; + /** + *
+       * Maximum wait time for all members in the cluster to be registered.
+       * 
+ * + * int64 cluster_register_timeout_in_ms = 4; + * @return The clusterRegisterTimeoutInMs. + */ + @java.lang.Override + public long getClusterRegisterTimeoutInMs() { + return clusterRegisterTimeoutInMs_; + } + /** + *
+       * Maximum wait time for all members in the cluster to be registered.
+       * 
+ * + * int64 cluster_register_timeout_in_ms = 4; + * @param value The clusterRegisterTimeoutInMs to set. + * @return This builder for chaining. + */ + public Builder setClusterRegisterTimeoutInMs(long value) { + + clusterRegisterTimeoutInMs_ = value; + onChanged(); + return this; + } + /** + *
+       * Maximum wait time for all members in the cluster to be registered.
+       * 
+ * + * int64 cluster_register_timeout_in_ms = 4; + * @return This builder for chaining. + */ + public Builder clearClusterRegisterTimeoutInMs() { + + clusterRegisterTimeoutInMs_ = 0L; + onChanged(); + return this; + } + + private long heartbeatTimeoutInMs_ ; + /** + *
+       * Heartbeat timeout, if a task does not record heartbeat in this time
+       * window, it will be considered disconnected.
+       * Note: This is also used as a grace period to accept any heartbeats after
+       * the agent has disconnected, to account for the lag time between the service
+       * recording the state change and the agent stopping heartbeats.
+       * 
+ * + * int64 heartbeat_timeout_in_ms = 5; + * @return The heartbeatTimeoutInMs. + */ + @java.lang.Override + public long getHeartbeatTimeoutInMs() { + return heartbeatTimeoutInMs_; + } + /** + *
+       * Heartbeat timeout, if a task does not record heartbeat in this time
+       * window, it will be considered disconnected.
+       * Note: This is also used as a grace period to accept any heartbeats after
+       * the agent has disconnected, to account for the lag time between the service
+       * recording the state change and the agent stopping heartbeats.
+       * 
+ * + * int64 heartbeat_timeout_in_ms = 5; + * @param value The heartbeatTimeoutInMs to set. + * @return This builder for chaining. + */ + public Builder setHeartbeatTimeoutInMs(long value) { + + heartbeatTimeoutInMs_ = value; + onChanged(); + return this; + } + /** + *
+       * Heartbeat timeout, if a task does not record heartbeat in this time
+       * window, it will be considered disconnected.
+       * Note: This is also used as a grace period to accept any heartbeats after
+       * the agent has disconnected, to account for the lag time between the service
+       * recording the state change and the agent stopping heartbeats.
+       * 
+ * + * int64 heartbeat_timeout_in_ms = 5; + * @return This builder for chaining. + */ + public Builder clearHeartbeatTimeoutInMs() { + + heartbeatTimeoutInMs_ = 0L; + onChanged(); + return this; + } + + private java.util.List coordinatedJobList_ = + java.util.Collections.emptyList(); + private void ensureCoordinatedJobListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + coordinatedJobList_ = new java.util.ArrayList(coordinatedJobList_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.CoordinationConfig.CoordinatedJob, org.tensorflow.proto.CoordinationConfig.CoordinatedJob.Builder, org.tensorflow.proto.CoordinationConfig.CoordinatedJobOrBuilder> coordinatedJobListBuilder_; + + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + public java.util.List getCoordinatedJobListList() { + if (coordinatedJobListBuilder_ == null) { + return java.util.Collections.unmodifiableList(coordinatedJobList_); + } else { + return coordinatedJobListBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + public int getCoordinatedJobListCount() { + if (coordinatedJobListBuilder_ == null) { + return coordinatedJobList_.size(); + } else { + return coordinatedJobListBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + public org.tensorflow.proto.CoordinationConfig.CoordinatedJob getCoordinatedJobList(int index) { + if (coordinatedJobListBuilder_ == null) { + return coordinatedJobList_.get(index); + } else { + return coordinatedJobListBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + public Builder setCoordinatedJobList( + int index, org.tensorflow.proto.CoordinationConfig.CoordinatedJob value) { + if (coordinatedJobListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCoordinatedJobListIsMutable(); + coordinatedJobList_.set(index, value); + onChanged(); + } else { + coordinatedJobListBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + public Builder setCoordinatedJobList( + int index, org.tensorflow.proto.CoordinationConfig.CoordinatedJob.Builder builderForValue) { + if (coordinatedJobListBuilder_ == null) { + ensureCoordinatedJobListIsMutable(); + coordinatedJobList_.set(index, builderForValue.build()); + onChanged(); + } else { + coordinatedJobListBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + public Builder addCoordinatedJobList(org.tensorflow.proto.CoordinationConfig.CoordinatedJob value) { + if (coordinatedJobListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCoordinatedJobListIsMutable(); + coordinatedJobList_.add(value); + onChanged(); + } else { + coordinatedJobListBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + public Builder addCoordinatedJobList( + int index, org.tensorflow.proto.CoordinationConfig.CoordinatedJob value) { + if (coordinatedJobListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCoordinatedJobListIsMutable(); + coordinatedJobList_.add(index, value); + onChanged(); + } else { + coordinatedJobListBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + public Builder addCoordinatedJobList( + org.tensorflow.proto.CoordinationConfig.CoordinatedJob.Builder builderForValue) { + if (coordinatedJobListBuilder_ == null) { + ensureCoordinatedJobListIsMutable(); + coordinatedJobList_.add(builderForValue.build()); + onChanged(); + } else { + coordinatedJobListBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + public Builder addCoordinatedJobList( + int index, org.tensorflow.proto.CoordinationConfig.CoordinatedJob.Builder builderForValue) { + if (coordinatedJobListBuilder_ == null) { + ensureCoordinatedJobListIsMutable(); + coordinatedJobList_.add(index, builderForValue.build()); + onChanged(); + } else { + coordinatedJobListBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + public Builder addAllCoordinatedJobList( + java.lang.Iterable values) { + if (coordinatedJobListBuilder_ == null) { + ensureCoordinatedJobListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, coordinatedJobList_); + onChanged(); + } else { + coordinatedJobListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + public Builder clearCoordinatedJobList() { + if (coordinatedJobListBuilder_ == null) { + coordinatedJobList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + coordinatedJobListBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + public Builder removeCoordinatedJobList(int index) { + if (coordinatedJobListBuilder_ == null) { + ensureCoordinatedJobListIsMutable(); + coordinatedJobList_.remove(index); + onChanged(); + } else { + coordinatedJobListBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + public org.tensorflow.proto.CoordinationConfig.CoordinatedJob.Builder getCoordinatedJobListBuilder( + int index) { + return getCoordinatedJobListFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + public org.tensorflow.proto.CoordinationConfig.CoordinatedJobOrBuilder getCoordinatedJobListOrBuilder( + int index) { + if (coordinatedJobListBuilder_ == null) { + return coordinatedJobList_.get(index); } else { + return coordinatedJobListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + public java.util.List + getCoordinatedJobListOrBuilderList() { + if (coordinatedJobListBuilder_ != null) { + return coordinatedJobListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(coordinatedJobList_); + } + } + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + public org.tensorflow.proto.CoordinationConfig.CoordinatedJob.Builder addCoordinatedJobListBuilder() { + return getCoordinatedJobListFieldBuilder().addBuilder( + org.tensorflow.proto.CoordinationConfig.CoordinatedJob.getDefaultInstance()); + } + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + public org.tensorflow.proto.CoordinationConfig.CoordinatedJob.Builder addCoordinatedJobListBuilder( + int index) { + return getCoordinatedJobListFieldBuilder().addBuilder( + index, org.tensorflow.proto.CoordinationConfig.CoordinatedJob.getDefaultInstance()); + } + /** + * repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; + */ + public java.util.List + getCoordinatedJobListBuilderList() { + return getCoordinatedJobListFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.CoordinationConfig.CoordinatedJob, org.tensorflow.proto.CoordinationConfig.CoordinatedJob.Builder, org.tensorflow.proto.CoordinationConfig.CoordinatedJobOrBuilder> + getCoordinatedJobListFieldBuilder() { + if (coordinatedJobListBuilder_ == null) { + coordinatedJobListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.CoordinationConfig.CoordinatedJob, org.tensorflow.proto.CoordinationConfig.CoordinatedJob.Builder, org.tensorflow.proto.CoordinationConfig.CoordinatedJobOrBuilder>( + coordinatedJobList_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + coordinatedJobList_ = null; + } + return coordinatedJobListBuilder_; + } + + private long shutdownBarrierTimeoutInMs_ ; + /** + *
+       * Denotes how long to wait for all coordination agents to reach the barriers
+       * (after the first shutdown request) before disconnecting together. If
+       * set to 0, no barrier is imposed upon shutdown and each worker can
+       * disconnect individually.
+       * 
+ * + * int64 shutdown_barrier_timeout_in_ms = 7; + * @return The shutdownBarrierTimeoutInMs. + */ + @java.lang.Override + public long getShutdownBarrierTimeoutInMs() { + return shutdownBarrierTimeoutInMs_; + } + /** + *
+       * Denotes how long to wait for all coordination agents to reach the barriers
+       * (after the first shutdown request) before disconnecting together. If
+       * set to 0, no barrier is imposed upon shutdown and each worker can
+       * disconnect individually.
+       * 
+ * + * int64 shutdown_barrier_timeout_in_ms = 7; + * @param value The shutdownBarrierTimeoutInMs to set. + * @return This builder for chaining. + */ + public Builder setShutdownBarrierTimeoutInMs(long value) { + + shutdownBarrierTimeoutInMs_ = value; + onChanged(); + return this; + } + /** + *
+       * Denotes how long to wait for all coordination agents to reach the barriers
+       * (after the first shutdown request) before disconnecting together. If
+       * set to 0, no barrier is imposed upon shutdown and each worker can
+       * disconnect individually.
+       * 
+ * + * int64 shutdown_barrier_timeout_in_ms = 7; + * @return This builder for chaining. + */ + public Builder clearShutdownBarrierTimeoutInMs() { + + shutdownBarrierTimeoutInMs_ = 0L; + onChanged(); + return this; + } + + private boolean agentDestructionWithoutShutdown_ ; + /** + *
+       * If set, agents do not make an explicit Shutdown() call. Service will only
+       * find out about the disconnecte agent via stale heartbeats. Used for
+       * testing.
+       * 
+ * + * bool agent_destruction_without_shutdown = 8; + * @return The agentDestructionWithoutShutdown. + */ + @java.lang.Override + public boolean getAgentDestructionWithoutShutdown() { + return agentDestructionWithoutShutdown_; + } + /** + *
+       * If set, agents do not make an explicit Shutdown() call. Service will only
+       * find out about the disconnecte agent via stale heartbeats. Used for
+       * testing.
+       * 
+ * + * bool agent_destruction_without_shutdown = 8; + * @param value The agentDestructionWithoutShutdown to set. + * @return This builder for chaining. + */ + public Builder setAgentDestructionWithoutShutdown(boolean value) { + + agentDestructionWithoutShutdown_ = value; + onChanged(); + return this; + } + /** + *
+       * If set, agents do not make an explicit Shutdown() call. Service will only
+       * find out about the disconnecte agent via stale heartbeats. Used for
+       * testing.
+       * 
+ * + * bool agent_destruction_without_shutdown = 8; + * @return This builder for chaining. + */ + public Builder clearAgentDestructionWithoutShutdown() { + + agentDestructionWithoutShutdown_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList recoverableJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRecoverableJobsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + recoverableJobs_ = new com.google.protobuf.LazyStringArrayList(recoverableJobs_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * The list of jobs which are recoverable. If a task in this list fails,
+       * it will not propagate error to other tasks.
+       * If empty, no jobs will be recoverable and every task failure will cause
+       * error propagation to other tasks.
+       * 
+ * + * repeated string recoverable_jobs = 9; + * @return A list containing the recoverableJobs. + */ + public com.google.protobuf.ProtocolStringList + getRecoverableJobsList() { + return recoverableJobs_.getUnmodifiableView(); + } + /** + *
+       * The list of jobs which are recoverable. If a task in this list fails,
+       * it will not propagate error to other tasks.
+       * If empty, no jobs will be recoverable and every task failure will cause
+       * error propagation to other tasks.
+       * 
+ * + * repeated string recoverable_jobs = 9; + * @return The count of recoverableJobs. + */ + public int getRecoverableJobsCount() { + return recoverableJobs_.size(); + } + /** + *
+       * The list of jobs which are recoverable. If a task in this list fails,
+       * it will not propagate error to other tasks.
+       * If empty, no jobs will be recoverable and every task failure will cause
+       * error propagation to other tasks.
+       * 
+ * + * repeated string recoverable_jobs = 9; + * @param index The index of the element to return. + * @return The recoverableJobs at the given index. + */ + public java.lang.String getRecoverableJobs(int index) { + return recoverableJobs_.get(index); + } + /** + *
+       * The list of jobs which are recoverable. If a task in this list fails,
+       * it will not propagate error to other tasks.
+       * If empty, no jobs will be recoverable and every task failure will cause
+       * error propagation to other tasks.
+       * 
+ * + * repeated string recoverable_jobs = 9; + * @param index The index of the value to return. + * @return The bytes of the recoverableJobs at the given index. + */ + public com.google.protobuf.ByteString + getRecoverableJobsBytes(int index) { + return recoverableJobs_.getByteString(index); + } + /** + *
+       * The list of jobs which are recoverable. If a task in this list fails,
+       * it will not propagate error to other tasks.
+       * If empty, no jobs will be recoverable and every task failure will cause
+       * error propagation to other tasks.
+       * 
+ * + * repeated string recoverable_jobs = 9; + * @param index The index to set the value at. + * @param value The recoverableJobs to set. + * @return This builder for chaining. + */ + public Builder setRecoverableJobs( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecoverableJobsIsMutable(); + recoverableJobs_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * The list of jobs which are recoverable. If a task in this list fails,
+       * it will not propagate error to other tasks.
+       * If empty, no jobs will be recoverable and every task failure will cause
+       * error propagation to other tasks.
+       * 
+ * + * repeated string recoverable_jobs = 9; + * @param value The recoverableJobs to add. + * @return This builder for chaining. + */ + public Builder addRecoverableJobs( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecoverableJobsIsMutable(); + recoverableJobs_.add(value); + onChanged(); + return this; + } + /** + *
+       * The list of jobs which are recoverable. If a task in this list fails,
+       * it will not propagate error to other tasks.
+       * If empty, no jobs will be recoverable and every task failure will cause
+       * error propagation to other tasks.
+       * 
+ * + * repeated string recoverable_jobs = 9; + * @param values The recoverableJobs to add. + * @return This builder for chaining. + */ + public Builder addAllRecoverableJobs( + java.lang.Iterable values) { + ensureRecoverableJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recoverableJobs_); + onChanged(); + return this; + } + /** + *
+       * The list of jobs which are recoverable. If a task in this list fails,
+       * it will not propagate error to other tasks.
+       * If empty, no jobs will be recoverable and every task failure will cause
+       * error propagation to other tasks.
+       * 
+ * + * repeated string recoverable_jobs = 9; + * @return This builder for chaining. + */ + public Builder clearRecoverableJobs() { + recoverableJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * The list of jobs which are recoverable. If a task in this list fails,
+       * it will not propagate error to other tasks.
+       * If empty, no jobs will be recoverable and every task failure will cause
+       * error propagation to other tasks.
+       * 
+ * + * repeated string recoverable_jobs = 9; + * @param value The bytes of the recoverableJobs to add. + * @return This builder for chaining. + */ + public Builder addRecoverableJobsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRecoverableJobsIsMutable(); + recoverableJobs_.add(value); + onChanged(); + return this; + } + + private boolean allowNewIncarnationToReconnect_ ; + /** + *
+       * If a task restarts with a new incarnation, we may allow it to reconnect
+       * silently. This is useful when we know that a task can immediately resume
+       * work upon re-connecting to the service.
+       * 
+ * + * bool allow_new_incarnation_to_reconnect = 11; + * @return The allowNewIncarnationToReconnect. + */ + @java.lang.Override + public boolean getAllowNewIncarnationToReconnect() { + return allowNewIncarnationToReconnect_; + } + /** + *
+       * If a task restarts with a new incarnation, we may allow it to reconnect
+       * silently. This is useful when we know that a task can immediately resume
+       * work upon re-connecting to the service.
+       * 
+ * + * bool allow_new_incarnation_to_reconnect = 11; + * @param value The allowNewIncarnationToReconnect to set. + * @return This builder for chaining. + */ + public Builder setAllowNewIncarnationToReconnect(boolean value) { + + allowNewIncarnationToReconnect_ = value; + onChanged(); + return this; + } + /** + *
+       * If a task restarts with a new incarnation, we may allow it to reconnect
+       * silently. This is useful when we know that a task can immediately resume
+       * work upon re-connecting to the service.
+       * 
+ * + * bool allow_new_incarnation_to_reconnect = 11; + * @return This builder for chaining. + */ + public Builder clearAllowNewIncarnationToReconnect() { + + allowNewIncarnationToReconnect_ = false; + 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:tensorflow.CoordinationServiceConfig) + } + + // @@protoc_insertion_point(class_scope:tensorflow.CoordinationServiceConfig) + private static final org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig(); + } + + public static org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CoordinationServiceConfig 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 org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_CoordinatedJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_CoordinatedJob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_CoordinationServiceConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_CoordinationServiceConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1tensorflow/tsl/protobuf/coordination_c" + + "onfig.proto\022\ntensorflow\"1\n\016CoordinatedJo" + + "b\022\014\n\004name\030\001 \001(\t\022\021\n\tnum_tasks\030\002 \001(\005\"\211\003\n\031C" + + "oordinationServiceConfig\022\024\n\014service_type" + + "\030\001 \001(\t\022\026\n\016service_leader\030\002 \001(\t\022\033\n\023enable" + + "_health_check\030\003 \001(\010\022&\n\036cluster_register_" + + "timeout_in_ms\030\004 \001(\003\022\037\n\027heartbeat_timeout" + + "_in_ms\030\005 \001(\003\0228\n\024coordinated_job_list\030\n \003" + + "(\0132\032.tensorflow.CoordinatedJob\022&\n\036shutdo" + + "wn_barrier_timeout_in_ms\030\007 \001(\003\022*\n\"agent_" + + "destruction_without_shutdown\030\010 \001(\010\022\030\n\020re" + + "coverable_jobs\030\t \003(\t\022*\n\"allow_new_incarn" + + "ation_to_reconnect\030\013 \001(\010J\004\010\006\020\007Bm\n\024org.te" + + "nsorflow.protoZUgithub.com/tensorflow/te" + + "nsorflow/tensorflow/go/core/protobuf/for" + + "_core_protos_go_protob\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_tensorflow_CoordinatedJob_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_CoordinatedJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_CoordinatedJob_descriptor, + new java.lang.String[] { "Name", "NumTasks", }); + internal_static_tensorflow_CoordinationServiceConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_tensorflow_CoordinationServiceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_CoordinationServiceConfig_descriptor, + new java.lang.String[] { "ServiceType", "ServiceLeader", "EnableHealthCheck", "ClusterRegisterTimeoutInMs", "HeartbeatTimeoutInMs", "CoordinatedJobList", "ShutdownBarrierTimeoutInMs", "AgentDestructionWithoutShutdown", "RecoverableJobs", "AllowNewIncarnationToReconnect", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CostGraphDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CostGraphDef.java new file mode 100644 index 00000000000..7bfab8fad21 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CostGraphDef.java @@ -0,0 +1,5971 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/cost_graph.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.CostGraphDef} + */ +public final class CostGraphDef extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.CostGraphDef) + CostGraphDefOrBuilder { +private static final long serialVersionUID = 0L; + // Use CostGraphDef.newBuilder() to construct. + private CostGraphDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CostGraphDef() { + node_ = java.util.Collections.emptyList(); + cost_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CostGraphDef(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CostGraphDef.class, org.tensorflow.proto.CostGraphDef.Builder.class); + } + + public interface NodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.CostGraphDef.Node) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The name of the node. Names are globally unique.
+     * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * The name of the node. Names are globally unique.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * The device of the node. Can be empty if the node is mapped to the
+     * default partition or partitioning hasn't been run yet.
+     * 
+ * + * string device = 2; + * @return The device. + */ + java.lang.String getDevice(); + /** + *
+     * The device of the node. Can be empty if the node is mapped to the
+     * default partition or partitioning hasn't been run yet.
+     * 
+ * + * string device = 2; + * @return The bytes for device. + */ + com.google.protobuf.ByteString + getDeviceBytes(); + + /** + *
+     * The id of the node. Node ids are only unique inside a partition.
+     * 
+ * + * int32 id = 3; + * @return The id. + */ + int getId(); + + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + java.util.List + getInputInfoList(); + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + org.tensorflow.proto.CostGraphDef.Node.InputInfo getInputInfo(int index); + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + int getInputInfoCount(); + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + java.util.List + getInputInfoOrBuilderList(); + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + org.tensorflow.proto.CostGraphDef.Node.InputInfoOrBuilder getInputInfoOrBuilder( + int index); + + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + java.util.List + getOutputInfoList(); + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + org.tensorflow.proto.CostGraphDef.Node.OutputInfo getOutputInfo(int index); + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + int getOutputInfoCount(); + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + java.util.List + getOutputInfoOrBuilderList(); + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + org.tensorflow.proto.CostGraphDef.Node.OutputInfoOrBuilder getOutputInfoOrBuilder( + int index); + + /** + *
+     * Temporary memory used by this node.
+     * 
+ * + * int64 temporary_memory_size = 6; + * @return The temporaryMemorySize. + */ + long getTemporaryMemorySize(); + + /** + *
+     * Persistent memory used by this node.
+     * 
+ * + * int64 persistent_memory_size = 12; + * @return The persistentMemorySize. + */ + long getPersistentMemorySize(); + + /** + * int64 host_temp_memory_size = 10 [deprecated = true]; + * @deprecated tensorflow.CostGraphDef.Node.host_temp_memory_size is deprecated. + * See tensorflow/core/framework/cost_graph.proto;l=51 + * @return The hostTempMemorySize. + */ + @java.lang.Deprecated long getHostTempMemorySize(); + + /** + * int64 device_temp_memory_size = 11 [deprecated = true]; + * @deprecated tensorflow.CostGraphDef.Node.device_temp_memory_size is deprecated. + * See tensorflow/core/framework/cost_graph.proto;l=52 + * @return The deviceTempMemorySize. + */ + @java.lang.Deprecated long getDeviceTempMemorySize(); + + /** + * int64 device_persistent_memory_size = 16 [deprecated = true]; + * @deprecated tensorflow.CostGraphDef.Node.device_persistent_memory_size is deprecated. + * See tensorflow/core/framework/cost_graph.proto;l=53 + * @return The devicePersistentMemorySize. + */ + @java.lang.Deprecated long getDevicePersistentMemorySize(); + + /** + *
+     * Estimate of the computational cost of this node, in microseconds.
+     * 
+ * + * int64 compute_cost = 9; + * @return The computeCost. + */ + long getComputeCost(); + + /** + *
+     * Analytical estimate of the computational cost of this node, in
+     * microseconds.
+     * 
+ * + * int64 compute_time = 14; + * @return The computeTime. + */ + long getComputeTime(); + + /** + *
+     * Analytical estimate of the memory access cost of this node, in
+     * microseconds.
+     * 
+ * + * int64 memory_time = 15; + * @return The memoryTime. + */ + long getMemoryTime(); + + /** + *
+     * If true, the output is permanent: it can't be discarded, because this
+     * node is part of the "final output". Nodes may depend on final nodes.
+     * 
+ * + * bool is_final = 7; + * @return The isFinal. + */ + boolean getIsFinal(); + + /** + *
+     * Ids of the control inputs for this node.
+     * 
+ * + * repeated int32 control_input = 8; + * @return A list containing the controlInput. + */ + java.util.List getControlInputList(); + /** + *
+     * Ids of the control inputs for this node.
+     * 
+ * + * repeated int32 control_input = 8; + * @return The count of controlInput. + */ + int getControlInputCount(); + /** + *
+     * Ids of the control inputs for this node.
+     * 
+ * + * repeated int32 control_input = 8; + * @param index The index of the element to return. + * @return The controlInput at the given index. + */ + int getControlInput(int index); + + /** + *
+     * Are the costs inaccurate?
+     * 
+ * + * bool inaccurate = 17; + * @return The inaccurate. + */ + boolean getInaccurate(); + } + /** + * Protobuf type {@code tensorflow.CostGraphDef.Node} + */ + public static final class Node extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.CostGraphDef.Node) + NodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use Node.newBuilder() to construct. + private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Node() { + name_ = ""; + device_ = ""; + inputInfo_ = java.util.Collections.emptyList(); + outputInfo_ = java.util.Collections.emptyList(); + controlInput_ = emptyIntList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Node(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CostGraphDef.Node.class, org.tensorflow.proto.CostGraphDef.Node.Builder.class); + } + + public interface InputInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.CostGraphDef.Node.InputInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 preceding_node = 1; + * @return The precedingNode. + */ + int getPrecedingNode(); + + /** + * int32 preceding_port = 2; + * @return The precedingPort. + */ + int getPrecedingPort(); + } + /** + *
+     * Inputs of this node. They must be executed before this node can be
+     * executed. An input is a particular output of another node, specified
+     * by the node id and the output index.
+     * 
+ * + * Protobuf type {@code tensorflow.CostGraphDef.Node.InputInfo} + */ + public static final class InputInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.CostGraphDef.Node.InputInfo) + InputInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use InputInfo.newBuilder() to construct. + private InputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private InputInfo() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InputInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_InputInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_InputInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CostGraphDef.Node.InputInfo.class, org.tensorflow.proto.CostGraphDef.Node.InputInfo.Builder.class); + } + + public static final int PRECEDING_NODE_FIELD_NUMBER = 1; + private int precedingNode_; + /** + * int32 preceding_node = 1; + * @return The precedingNode. + */ + @java.lang.Override + public int getPrecedingNode() { + return precedingNode_; + } + + public static final int PRECEDING_PORT_FIELD_NUMBER = 2; + private int precedingPort_; + /** + * int32 preceding_port = 2; + * @return The precedingPort. + */ + @java.lang.Override + public int getPrecedingPort() { + return precedingPort_; + } + + 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 (precedingNode_ != 0) { + output.writeInt32(1, precedingNode_); + } + if (precedingPort_ != 0) { + output.writeInt32(2, precedingPort_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (precedingNode_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, precedingNode_); + } + if (precedingPort_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, precedingPort_); + } + 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 org.tensorflow.proto.CostGraphDef.Node.InputInfo)) { + return super.equals(obj); + } + org.tensorflow.proto.CostGraphDef.Node.InputInfo other = (org.tensorflow.proto.CostGraphDef.Node.InputInfo) obj; + + if (getPrecedingNode() + != other.getPrecedingNode()) return false; + if (getPrecedingPort() + != other.getPrecedingPort()) 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) + PRECEDING_NODE_FIELD_NUMBER; + hash = (53 * hash) + getPrecedingNode(); + hash = (37 * hash) + PRECEDING_PORT_FIELD_NUMBER; + hash = (53 * hash) + getPrecedingPort(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.CostGraphDef.Node.InputInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CostGraphDef.Node.InputInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CostGraphDef.Node.InputInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CostGraphDef.Node.InputInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CostGraphDef.Node.InputInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CostGraphDef.Node.InputInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CostGraphDef.Node.InputInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CostGraphDef.Node.InputInfo 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 org.tensorflow.proto.CostGraphDef.Node.InputInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CostGraphDef.Node.InputInfo 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 org.tensorflow.proto.CostGraphDef.Node.InputInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CostGraphDef.Node.InputInfo 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(org.tensorflow.proto.CostGraphDef.Node.InputInfo 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; + } + /** + *
+       * Inputs of this node. They must be executed before this node can be
+       * executed. An input is a particular output of another node, specified
+       * by the node id and the output index.
+       * 
+ * + * Protobuf type {@code tensorflow.CostGraphDef.Node.InputInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.CostGraphDef.Node.InputInfo) + org.tensorflow.proto.CostGraphDef.Node.InputInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_InputInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_InputInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CostGraphDef.Node.InputInfo.class, org.tensorflow.proto.CostGraphDef.Node.InputInfo.Builder.class); + } + + // Construct using org.tensorflow.proto.CostGraphDef.Node.InputInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + precedingNode_ = 0; + + precedingPort_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_InputInfo_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.CostGraphDef.Node.InputInfo getDefaultInstanceForType() { + return org.tensorflow.proto.CostGraphDef.Node.InputInfo.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.CostGraphDef.Node.InputInfo build() { + org.tensorflow.proto.CostGraphDef.Node.InputInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.CostGraphDef.Node.InputInfo buildPartial() { + org.tensorflow.proto.CostGraphDef.Node.InputInfo result = new org.tensorflow.proto.CostGraphDef.Node.InputInfo(this); + result.precedingNode_ = precedingNode_; + result.precedingPort_ = precedingPort_; + 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 org.tensorflow.proto.CostGraphDef.Node.InputInfo) { + return mergeFrom((org.tensorflow.proto.CostGraphDef.Node.InputInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.CostGraphDef.Node.InputInfo other) { + if (other == org.tensorflow.proto.CostGraphDef.Node.InputInfo.getDefaultInstance()) return this; + if (other.getPrecedingNode() != 0) { + setPrecedingNode(other.getPrecedingNode()); + } + if (other.getPrecedingPort() != 0) { + setPrecedingPort(other.getPrecedingPort()); + } + 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: { + precedingNode_ = input.readInt32(); + + break; + } // case 8 + case 16: { + precedingPort_ = input.readInt32(); + + break; + } // case 16 + 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 precedingNode_ ; + /** + * int32 preceding_node = 1; + * @return The precedingNode. + */ + @java.lang.Override + public int getPrecedingNode() { + return precedingNode_; + } + /** + * int32 preceding_node = 1; + * @param value The precedingNode to set. + * @return This builder for chaining. + */ + public Builder setPrecedingNode(int value) { + + precedingNode_ = value; + onChanged(); + return this; + } + /** + * int32 preceding_node = 1; + * @return This builder for chaining. + */ + public Builder clearPrecedingNode() { + + precedingNode_ = 0; + onChanged(); + return this; + } + + private int precedingPort_ ; + /** + * int32 preceding_port = 2; + * @return The precedingPort. + */ + @java.lang.Override + public int getPrecedingPort() { + return precedingPort_; + } + /** + * int32 preceding_port = 2; + * @param value The precedingPort to set. + * @return This builder for chaining. + */ + public Builder setPrecedingPort(int value) { + + precedingPort_ = value; + onChanged(); + return this; + } + /** + * int32 preceding_port = 2; + * @return This builder for chaining. + */ + public Builder clearPrecedingPort() { + + precedingPort_ = 0; + 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:tensorflow.CostGraphDef.Node.InputInfo) + } + + // @@protoc_insertion_point(class_scope:tensorflow.CostGraphDef.Node.InputInfo) + private static final org.tensorflow.proto.CostGraphDef.Node.InputInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.CostGraphDef.Node.InputInfo(); + } + + public static org.tensorflow.proto.CostGraphDef.Node.InputInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputInfo 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 org.tensorflow.proto.CostGraphDef.Node.InputInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OutputInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.CostGraphDef.Node.OutputInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 size = 1; + * @return The size. + */ + long getSize(); + + /** + *
+       * If >= 0, the output is an alias of an input. Note that an alias input
+       * may itself be an alias. The algorithm will therefore need to follow
+       * those pointers.
+       * 
+ * + * int64 alias_input_port = 2; + * @return The aliasInputPort. + */ + long getAliasInputPort(); + + /** + * .tensorflow.TensorShapeProto shape = 3; + * @return Whether the shape field is set. + */ + boolean hasShape(); + /** + * .tensorflow.TensorShapeProto shape = 3; + * @return The shape. + */ + org.tensorflow.proto.TensorShapeProto getShape(); + /** + * .tensorflow.TensorShapeProto shape = 3; + */ + org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder(); + + /** + * .tensorflow.DataType dtype = 4; + * @return The enum numeric value on the wire for dtype. + */ + int getDtypeValue(); + /** + * .tensorflow.DataType dtype = 4; + * @return The dtype. + */ + org.tensorflow.proto.DataType getDtype(); + } + /** + *
+     * Outputs of this node.
+     * 
+ * + * Protobuf type {@code tensorflow.CostGraphDef.Node.OutputInfo} + */ + public static final class OutputInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.CostGraphDef.Node.OutputInfo) + OutputInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use OutputInfo.newBuilder() to construct. + private OutputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OutputInfo() { + dtype_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OutputInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_OutputInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_OutputInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CostGraphDef.Node.OutputInfo.class, org.tensorflow.proto.CostGraphDef.Node.OutputInfo.Builder.class); + } + + public static final int SIZE_FIELD_NUMBER = 1; + private long size_; + /** + * int64 size = 1; + * @return The size. + */ + @java.lang.Override + public long getSize() { + return size_; + } + + public static final int ALIAS_INPUT_PORT_FIELD_NUMBER = 2; + private long aliasInputPort_; + /** + *
+       * If >= 0, the output is an alias of an input. Note that an alias input
+       * may itself be an alias. The algorithm will therefore need to follow
+       * those pointers.
+       * 
+ * + * int64 alias_input_port = 2; + * @return The aliasInputPort. + */ + @java.lang.Override + public long getAliasInputPort() { + return aliasInputPort_; + } + + public static final int SHAPE_FIELD_NUMBER = 3; + private org.tensorflow.proto.TensorShapeProto shape_; + /** + * .tensorflow.TensorShapeProto shape = 3; + * @return Whether the shape field is set. + */ + @java.lang.Override + public boolean hasShape() { + return shape_ != null; + } + /** + * .tensorflow.TensorShapeProto shape = 3; + * @return The shape. + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto getShape() { + return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } + /** + * .tensorflow.TensorShapeProto shape = 3; + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { + return getShape(); + } + + public static final int DTYPE_FIELD_NUMBER = 4; + private int dtype_; + /** + * .tensorflow.DataType dtype = 4; + * @return The enum numeric value on the wire for dtype. + */ + @java.lang.Override public int getDtypeValue() { + return dtype_; + } + /** + * .tensorflow.DataType dtype = 4; + * @return The dtype. + */ + @java.lang.Override public org.tensorflow.proto.DataType getDtype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + + 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 (size_ != 0L) { + output.writeInt64(1, size_); + } + if (aliasInputPort_ != 0L) { + output.writeInt64(2, aliasInputPort_); + } + if (shape_ != null) { + output.writeMessage(3, getShape()); + } + if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + output.writeEnum(4, dtype_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (size_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, size_); + } + if (aliasInputPort_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, aliasInputPort_); + } + if (shape_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getShape()); + } + if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, dtype_); + } + 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 org.tensorflow.proto.CostGraphDef.Node.OutputInfo)) { + return super.equals(obj); + } + org.tensorflow.proto.CostGraphDef.Node.OutputInfo other = (org.tensorflow.proto.CostGraphDef.Node.OutputInfo) obj; + + if (getSize() + != other.getSize()) return false; + if (getAliasInputPort() + != other.getAliasInputPort()) return false; + if (hasShape() != other.hasShape()) return false; + if (hasShape()) { + if (!getShape() + .equals(other.getShape())) return false; + } + if (dtype_ != other.dtype_) 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) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSize()); + hash = (37 * hash) + ALIAS_INPUT_PORT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAliasInputPort()); + if (hasShape()) { + hash = (37 * hash) + SHAPE_FIELD_NUMBER; + hash = (53 * hash) + getShape().hashCode(); + } + hash = (37 * hash) + DTYPE_FIELD_NUMBER; + hash = (53 * hash) + dtype_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.CostGraphDef.Node.OutputInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CostGraphDef.Node.OutputInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CostGraphDef.Node.OutputInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CostGraphDef.Node.OutputInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CostGraphDef.Node.OutputInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CostGraphDef.Node.OutputInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CostGraphDef.Node.OutputInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CostGraphDef.Node.OutputInfo 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 org.tensorflow.proto.CostGraphDef.Node.OutputInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CostGraphDef.Node.OutputInfo 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 org.tensorflow.proto.CostGraphDef.Node.OutputInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CostGraphDef.Node.OutputInfo 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(org.tensorflow.proto.CostGraphDef.Node.OutputInfo 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; + } + /** + *
+       * Outputs of this node.
+       * 
+ * + * Protobuf type {@code tensorflow.CostGraphDef.Node.OutputInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.CostGraphDef.Node.OutputInfo) + org.tensorflow.proto.CostGraphDef.Node.OutputInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_OutputInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_OutputInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CostGraphDef.Node.OutputInfo.class, org.tensorflow.proto.CostGraphDef.Node.OutputInfo.Builder.class); + } + + // Construct using org.tensorflow.proto.CostGraphDef.Node.OutputInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + size_ = 0L; + + aliasInputPort_ = 0L; + + if (shapeBuilder_ == null) { + shape_ = null; + } else { + shape_ = null; + shapeBuilder_ = null; + } + dtype_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_OutputInfo_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.CostGraphDef.Node.OutputInfo getDefaultInstanceForType() { + return org.tensorflow.proto.CostGraphDef.Node.OutputInfo.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.CostGraphDef.Node.OutputInfo build() { + org.tensorflow.proto.CostGraphDef.Node.OutputInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.CostGraphDef.Node.OutputInfo buildPartial() { + org.tensorflow.proto.CostGraphDef.Node.OutputInfo result = new org.tensorflow.proto.CostGraphDef.Node.OutputInfo(this); + result.size_ = size_; + result.aliasInputPort_ = aliasInputPort_; + if (shapeBuilder_ == null) { + result.shape_ = shape_; + } else { + result.shape_ = shapeBuilder_.build(); + } + result.dtype_ = dtype_; + 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 org.tensorflow.proto.CostGraphDef.Node.OutputInfo) { + return mergeFrom((org.tensorflow.proto.CostGraphDef.Node.OutputInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.CostGraphDef.Node.OutputInfo other) { + if (other == org.tensorflow.proto.CostGraphDef.Node.OutputInfo.getDefaultInstance()) return this; + if (other.getSize() != 0L) { + setSize(other.getSize()); + } + if (other.getAliasInputPort() != 0L) { + setAliasInputPort(other.getAliasInputPort()); + } + if (other.hasShape()) { + mergeShape(other.getShape()); + } + if (other.dtype_ != 0) { + setDtypeValue(other.getDtypeValue()); + } + 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: { + size_ = input.readInt64(); + + break; + } // case 8 + case 16: { + aliasInputPort_ = input.readInt64(); + + break; + } // case 16 + case 26: { + input.readMessage( + getShapeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 32: { + dtype_ = input.readEnum(); + + break; + } // case 32 + 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 long size_ ; + /** + * int64 size = 1; + * @return The size. + */ + @java.lang.Override + public long getSize() { + return size_; + } + /** + * int64 size = 1; + * @param value The size to set. + * @return This builder for chaining. + */ + public Builder setSize(long value) { + + size_ = value; + onChanged(); + return this; + } + /** + * int64 size = 1; + * @return This builder for chaining. + */ + public Builder clearSize() { + + size_ = 0L; + onChanged(); + return this; + } + + private long aliasInputPort_ ; + /** + *
+         * If >= 0, the output is an alias of an input. Note that an alias input
+         * may itself be an alias. The algorithm will therefore need to follow
+         * those pointers.
+         * 
+ * + * int64 alias_input_port = 2; + * @return The aliasInputPort. + */ + @java.lang.Override + public long getAliasInputPort() { + return aliasInputPort_; + } + /** + *
+         * If >= 0, the output is an alias of an input. Note that an alias input
+         * may itself be an alias. The algorithm will therefore need to follow
+         * those pointers.
+         * 
+ * + * int64 alias_input_port = 2; + * @param value The aliasInputPort to set. + * @return This builder for chaining. + */ + public Builder setAliasInputPort(long value) { + + aliasInputPort_ = value; + onChanged(); + return this; + } + /** + *
+         * If >= 0, the output is an alias of an input. Note that an alias input
+         * may itself be an alias. The algorithm will therefore need to follow
+         * those pointers.
+         * 
+ * + * int64 alias_input_port = 2; + * @return This builder for chaining. + */ + public Builder clearAliasInputPort() { + + aliasInputPort_ = 0L; + onChanged(); + return this; + } + + private org.tensorflow.proto.TensorShapeProto shape_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> shapeBuilder_; + /** + * .tensorflow.TensorShapeProto shape = 3; + * @return Whether the shape field is set. + */ + public boolean hasShape() { + return shapeBuilder_ != null || shape_ != null; + } + /** + * .tensorflow.TensorShapeProto shape = 3; + * @return The shape. + */ + public org.tensorflow.proto.TensorShapeProto getShape() { + if (shapeBuilder_ == null) { + return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } else { + return shapeBuilder_.getMessage(); + } + } + /** + * .tensorflow.TensorShapeProto shape = 3; + */ + public Builder setShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shape_ = value; + onChanged(); + } else { + shapeBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 3; + */ + public Builder setShape( + org.tensorflow.proto.TensorShapeProto.Builder builderForValue) { + if (shapeBuilder_ == null) { + shape_ = builderForValue.build(); + onChanged(); + } else { + shapeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 3; + */ + public Builder mergeShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (shape_ != null) { + shape_ = + org.tensorflow.proto.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial(); + } else { + shape_ = value; + } + onChanged(); + } else { + shapeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 3; + */ + public Builder clearShape() { + if (shapeBuilder_ == null) { + shape_ = null; + onChanged(); + } else { + shape_ = null; + shapeBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 3; + */ + public org.tensorflow.proto.TensorShapeProto.Builder getShapeBuilder() { + + onChanged(); + return getShapeFieldBuilder().getBuilder(); + } + /** + * .tensorflow.TensorShapeProto shape = 3; + */ + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { + if (shapeBuilder_ != null) { + return shapeBuilder_.getMessageOrBuilder(); + } else { + return shape_ == null ? + org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } + } + /** + * .tensorflow.TensorShapeProto shape = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> + getShapeFieldBuilder() { + if (shapeBuilder_ == null) { + shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder>( + getShape(), + getParentForChildren(), + isClean()); + shape_ = null; + } + return shapeBuilder_; + } + + private int dtype_ = 0; + /** + * .tensorflow.DataType dtype = 4; + * @return The enum numeric value on the wire for dtype. + */ + @java.lang.Override public int getDtypeValue() { + return dtype_; + } + /** + * .tensorflow.DataType dtype = 4; + * @param value The enum numeric value on the wire for dtype to set. + * @return This builder for chaining. + */ + public Builder setDtypeValue(int value) { + + dtype_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.DataType dtype = 4; + * @return The dtype. + */ + @java.lang.Override + public org.tensorflow.proto.DataType getDtype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + /** + * .tensorflow.DataType dtype = 4; + * @param value The dtype to set. + * @return This builder for chaining. + */ + public Builder setDtype(org.tensorflow.proto.DataType value) { + if (value == null) { + throw new NullPointerException(); + } + + dtype_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.DataType dtype = 4; + * @return This builder for chaining. + */ + public Builder clearDtype() { + + dtype_ = 0; + 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:tensorflow.CostGraphDef.Node.OutputInfo) + } + + // @@protoc_insertion_point(class_scope:tensorflow.CostGraphDef.Node.OutputInfo) + private static final org.tensorflow.proto.CostGraphDef.Node.OutputInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.CostGraphDef.Node.OutputInfo(); + } + + public static org.tensorflow.proto.CostGraphDef.Node.OutputInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputInfo 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 org.tensorflow.proto.CostGraphDef.Node.OutputInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * The name of the node. Names are globally unique.
+     * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+     * The name of the node. Names are globally unique.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEVICE_FIELD_NUMBER = 2; + private volatile java.lang.Object device_; + /** + *
+     * The device of the node. Can be empty if the node is mapped to the
+     * default partition or partitioning hasn't been run yet.
+     * 
+ * + * string device = 2; + * @return The device. + */ + @java.lang.Override + public java.lang.String getDevice() { + java.lang.Object ref = device_; + 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(); + device_ = s; + return s; + } + } + /** + *
+     * The device of the node. Can be empty if the node is mapped to the
+     * default partition or partitioning hasn't been run yet.
+     * 
+ * + * string device = 2; + * @return The bytes for device. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDeviceBytes() { + java.lang.Object ref = device_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + device_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 3; + private int id_; + /** + *
+     * The id of the node. Node ids are only unique inside a partition.
+     * 
+ * + * int32 id = 3; + * @return The id. + */ + @java.lang.Override + public int getId() { + return id_; + } + + public static final int INPUT_INFO_FIELD_NUMBER = 4; + private java.util.List inputInfo_; + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + @java.lang.Override + public java.util.List getInputInfoList() { + return inputInfo_; + } + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + @java.lang.Override + public java.util.List + getInputInfoOrBuilderList() { + return inputInfo_; + } + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + @java.lang.Override + public int getInputInfoCount() { + return inputInfo_.size(); + } + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + @java.lang.Override + public org.tensorflow.proto.CostGraphDef.Node.InputInfo getInputInfo(int index) { + return inputInfo_.get(index); + } + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + @java.lang.Override + public org.tensorflow.proto.CostGraphDef.Node.InputInfoOrBuilder getInputInfoOrBuilder( + int index) { + return inputInfo_.get(index); + } + + public static final int OUTPUT_INFO_FIELD_NUMBER = 5; + private java.util.List outputInfo_; + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + @java.lang.Override + public java.util.List getOutputInfoList() { + return outputInfo_; + } + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + @java.lang.Override + public java.util.List + getOutputInfoOrBuilderList() { + return outputInfo_; + } + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + @java.lang.Override + public int getOutputInfoCount() { + return outputInfo_.size(); + } + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + @java.lang.Override + public org.tensorflow.proto.CostGraphDef.Node.OutputInfo getOutputInfo(int index) { + return outputInfo_.get(index); + } + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + @java.lang.Override + public org.tensorflow.proto.CostGraphDef.Node.OutputInfoOrBuilder getOutputInfoOrBuilder( + int index) { + return outputInfo_.get(index); + } + + public static final int TEMPORARY_MEMORY_SIZE_FIELD_NUMBER = 6; + private long temporaryMemorySize_; + /** + *
+     * Temporary memory used by this node.
+     * 
+ * + * int64 temporary_memory_size = 6; + * @return The temporaryMemorySize. + */ + @java.lang.Override + public long getTemporaryMemorySize() { + return temporaryMemorySize_; + } + + public static final int PERSISTENT_MEMORY_SIZE_FIELD_NUMBER = 12; + private long persistentMemorySize_; + /** + *
+     * Persistent memory used by this node.
+     * 
+ * + * int64 persistent_memory_size = 12; + * @return The persistentMemorySize. + */ + @java.lang.Override + public long getPersistentMemorySize() { + return persistentMemorySize_; + } + + public static final int HOST_TEMP_MEMORY_SIZE_FIELD_NUMBER = 10; + private long hostTempMemorySize_; + /** + * int64 host_temp_memory_size = 10 [deprecated = true]; + * @deprecated tensorflow.CostGraphDef.Node.host_temp_memory_size is deprecated. + * See tensorflow/core/framework/cost_graph.proto;l=51 + * @return The hostTempMemorySize. + */ + @java.lang.Override + @java.lang.Deprecated public long getHostTempMemorySize() { + return hostTempMemorySize_; + } + + public static final int DEVICE_TEMP_MEMORY_SIZE_FIELD_NUMBER = 11; + private long deviceTempMemorySize_; + /** + * int64 device_temp_memory_size = 11 [deprecated = true]; + * @deprecated tensorflow.CostGraphDef.Node.device_temp_memory_size is deprecated. + * See tensorflow/core/framework/cost_graph.proto;l=52 + * @return The deviceTempMemorySize. + */ + @java.lang.Override + @java.lang.Deprecated public long getDeviceTempMemorySize() { + return deviceTempMemorySize_; + } + + public static final int DEVICE_PERSISTENT_MEMORY_SIZE_FIELD_NUMBER = 16; + private long devicePersistentMemorySize_; + /** + * int64 device_persistent_memory_size = 16 [deprecated = true]; + * @deprecated tensorflow.CostGraphDef.Node.device_persistent_memory_size is deprecated. + * See tensorflow/core/framework/cost_graph.proto;l=53 + * @return The devicePersistentMemorySize. + */ + @java.lang.Override + @java.lang.Deprecated public long getDevicePersistentMemorySize() { + return devicePersistentMemorySize_; + } + + public static final int COMPUTE_COST_FIELD_NUMBER = 9; + private long computeCost_; + /** + *
+     * Estimate of the computational cost of this node, in microseconds.
+     * 
+ * + * int64 compute_cost = 9; + * @return The computeCost. + */ + @java.lang.Override + public long getComputeCost() { + return computeCost_; + } + + public static final int COMPUTE_TIME_FIELD_NUMBER = 14; + private long computeTime_; + /** + *
+     * Analytical estimate of the computational cost of this node, in
+     * microseconds.
+     * 
+ * + * int64 compute_time = 14; + * @return The computeTime. + */ + @java.lang.Override + public long getComputeTime() { + return computeTime_; + } + + public static final int MEMORY_TIME_FIELD_NUMBER = 15; + private long memoryTime_; + /** + *
+     * Analytical estimate of the memory access cost of this node, in
+     * microseconds.
+     * 
+ * + * int64 memory_time = 15; + * @return The memoryTime. + */ + @java.lang.Override + public long getMemoryTime() { + return memoryTime_; + } + + public static final int IS_FINAL_FIELD_NUMBER = 7; + private boolean isFinal_; + /** + *
+     * If true, the output is permanent: it can't be discarded, because this
+     * node is part of the "final output". Nodes may depend on final nodes.
+     * 
+ * + * bool is_final = 7; + * @return The isFinal. + */ + @java.lang.Override + public boolean getIsFinal() { + return isFinal_; + } + + public static final int CONTROL_INPUT_FIELD_NUMBER = 8; + private com.google.protobuf.Internal.IntList controlInput_; + /** + *
+     * Ids of the control inputs for this node.
+     * 
+ * + * repeated int32 control_input = 8; + * @return A list containing the controlInput. + */ + @java.lang.Override + public java.util.List + getControlInputList() { + return controlInput_; + } + /** + *
+     * Ids of the control inputs for this node.
+     * 
+ * + * repeated int32 control_input = 8; + * @return The count of controlInput. + */ + public int getControlInputCount() { + return controlInput_.size(); + } + /** + *
+     * Ids of the control inputs for this node.
+     * 
+ * + * repeated int32 control_input = 8; + * @param index The index of the element to return. + * @return The controlInput at the given index. + */ + public int getControlInput(int index) { + return controlInput_.getInt(index); + } + private int controlInputMemoizedSerializedSize = -1; + + public static final int INACCURATE_FIELD_NUMBER = 17; + private boolean inaccurate_; + /** + *
+     * Are the costs inaccurate?
+     * 
+ * + * bool inaccurate = 17; + * @return The inaccurate. + */ + @java.lang.Override + public boolean getInaccurate() { + return inaccurate_; + } + + 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 { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(device_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, device_); + } + if (id_ != 0) { + output.writeInt32(3, id_); + } + for (int i = 0; i < inputInfo_.size(); i++) { + output.writeMessage(4, inputInfo_.get(i)); + } + for (int i = 0; i < outputInfo_.size(); i++) { + output.writeMessage(5, outputInfo_.get(i)); + } + if (temporaryMemorySize_ != 0L) { + output.writeInt64(6, temporaryMemorySize_); + } + if (isFinal_ != false) { + output.writeBool(7, isFinal_); + } + if (getControlInputList().size() > 0) { + output.writeUInt32NoTag(66); + output.writeUInt32NoTag(controlInputMemoizedSerializedSize); + } + for (int i = 0; i < controlInput_.size(); i++) { + output.writeInt32NoTag(controlInput_.getInt(i)); + } + if (computeCost_ != 0L) { + output.writeInt64(9, computeCost_); + } + if (hostTempMemorySize_ != 0L) { + output.writeInt64(10, hostTempMemorySize_); + } + if (deviceTempMemorySize_ != 0L) { + output.writeInt64(11, deviceTempMemorySize_); + } + if (persistentMemorySize_ != 0L) { + output.writeInt64(12, persistentMemorySize_); + } + if (computeTime_ != 0L) { + output.writeInt64(14, computeTime_); + } + if (memoryTime_ != 0L) { + output.writeInt64(15, memoryTime_); + } + if (devicePersistentMemorySize_ != 0L) { + output.writeInt64(16, devicePersistentMemorySize_); + } + if (inaccurate_ != false) { + output.writeBool(17, inaccurate_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(device_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, device_); + } + if (id_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, id_); + } + for (int i = 0; i < inputInfo_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, inputInfo_.get(i)); + } + for (int i = 0; i < outputInfo_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, outputInfo_.get(i)); + } + if (temporaryMemorySize_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, temporaryMemorySize_); + } + if (isFinal_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, isFinal_); + } + { + int dataSize = 0; + for (int i = 0; i < controlInput_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(controlInput_.getInt(i)); + } + size += dataSize; + if (!getControlInputList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + controlInputMemoizedSerializedSize = dataSize; + } + if (computeCost_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, computeCost_); + } + if (hostTempMemorySize_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(10, hostTempMemorySize_); + } + if (deviceTempMemorySize_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(11, deviceTempMemorySize_); + } + if (persistentMemorySize_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(12, persistentMemorySize_); + } + if (computeTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(14, computeTime_); + } + if (memoryTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(15, memoryTime_); + } + if (devicePersistentMemorySize_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(16, devicePersistentMemorySize_); + } + if (inaccurate_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(17, inaccurate_); + } + 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 org.tensorflow.proto.CostGraphDef.Node)) { + return super.equals(obj); + } + org.tensorflow.proto.CostGraphDef.Node other = (org.tensorflow.proto.CostGraphDef.Node) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDevice() + .equals(other.getDevice())) return false; + if (getId() + != other.getId()) return false; + if (!getInputInfoList() + .equals(other.getInputInfoList())) return false; + if (!getOutputInfoList() + .equals(other.getOutputInfoList())) return false; + if (getTemporaryMemorySize() + != other.getTemporaryMemorySize()) return false; + if (getPersistentMemorySize() + != other.getPersistentMemorySize()) return false; + if (getHostTempMemorySize() + != other.getHostTempMemorySize()) return false; + if (getDeviceTempMemorySize() + != other.getDeviceTempMemorySize()) return false; + if (getDevicePersistentMemorySize() + != other.getDevicePersistentMemorySize()) return false; + if (getComputeCost() + != other.getComputeCost()) return false; + if (getComputeTime() + != other.getComputeTime()) return false; + if (getMemoryTime() + != other.getMemoryTime()) return false; + if (getIsFinal() + != other.getIsFinal()) return false; + if (!getControlInputList() + .equals(other.getControlInputList())) return false; + if (getInaccurate() + != other.getInaccurate()) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DEVICE_FIELD_NUMBER; + hash = (53 * hash) + getDevice().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId(); + if (getInputInfoCount() > 0) { + hash = (37 * hash) + INPUT_INFO_FIELD_NUMBER; + hash = (53 * hash) + getInputInfoList().hashCode(); + } + if (getOutputInfoCount() > 0) { + hash = (37 * hash) + OUTPUT_INFO_FIELD_NUMBER; + hash = (53 * hash) + getOutputInfoList().hashCode(); + } + hash = (37 * hash) + TEMPORARY_MEMORY_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTemporaryMemorySize()); + hash = (37 * hash) + PERSISTENT_MEMORY_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPersistentMemorySize()); + hash = (37 * hash) + HOST_TEMP_MEMORY_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getHostTempMemorySize()); + hash = (37 * hash) + DEVICE_TEMP_MEMORY_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDeviceTempMemorySize()); + hash = (37 * hash) + DEVICE_PERSISTENT_MEMORY_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDevicePersistentMemorySize()); + hash = (37 * hash) + COMPUTE_COST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getComputeCost()); + hash = (37 * hash) + COMPUTE_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getComputeTime()); + hash = (37 * hash) + MEMORY_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemoryTime()); + hash = (37 * hash) + IS_FINAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinal()); + if (getControlInputCount() > 0) { + hash = (37 * hash) + CONTROL_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getControlInputList().hashCode(); + } + hash = (37 * hash) + INACCURATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInaccurate()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.CostGraphDef.Node parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CostGraphDef.Node parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CostGraphDef.Node parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CostGraphDef.Node parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CostGraphDef.Node parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CostGraphDef.Node parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CostGraphDef.Node parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CostGraphDef.Node 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 org.tensorflow.proto.CostGraphDef.Node parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CostGraphDef.Node 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 org.tensorflow.proto.CostGraphDef.Node parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CostGraphDef.Node 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(org.tensorflow.proto.CostGraphDef.Node prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.CostGraphDef.Node} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.CostGraphDef.Node) + org.tensorflow.proto.CostGraphDef.NodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CostGraphDef.Node.class, org.tensorflow.proto.CostGraphDef.Node.Builder.class); + } + + // Construct using org.tensorflow.proto.CostGraphDef.Node.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + device_ = ""; + + id_ = 0; + + if (inputInfoBuilder_ == null) { + inputInfo_ = java.util.Collections.emptyList(); + } else { + inputInfo_ = null; + inputInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (outputInfoBuilder_ == null) { + outputInfo_ = java.util.Collections.emptyList(); + } else { + outputInfo_ = null; + outputInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + temporaryMemorySize_ = 0L; + + persistentMemorySize_ = 0L; + + hostTempMemorySize_ = 0L; + + deviceTempMemorySize_ = 0L; + + devicePersistentMemorySize_ = 0L; + + computeCost_ = 0L; + + computeTime_ = 0L; + + memoryTime_ = 0L; + + isFinal_ = false; + + controlInput_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000004); + inaccurate_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_Node_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.CostGraphDef.Node getDefaultInstanceForType() { + return org.tensorflow.proto.CostGraphDef.Node.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.CostGraphDef.Node build() { + org.tensorflow.proto.CostGraphDef.Node result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.CostGraphDef.Node buildPartial() { + org.tensorflow.proto.CostGraphDef.Node result = new org.tensorflow.proto.CostGraphDef.Node(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.device_ = device_; + result.id_ = id_; + if (inputInfoBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + inputInfo_ = java.util.Collections.unmodifiableList(inputInfo_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.inputInfo_ = inputInfo_; + } else { + result.inputInfo_ = inputInfoBuilder_.build(); + } + if (outputInfoBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + outputInfo_ = java.util.Collections.unmodifiableList(outputInfo_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.outputInfo_ = outputInfo_; + } else { + result.outputInfo_ = outputInfoBuilder_.build(); + } + result.temporaryMemorySize_ = temporaryMemorySize_; + result.persistentMemorySize_ = persistentMemorySize_; + result.hostTempMemorySize_ = hostTempMemorySize_; + result.deviceTempMemorySize_ = deviceTempMemorySize_; + result.devicePersistentMemorySize_ = devicePersistentMemorySize_; + result.computeCost_ = computeCost_; + result.computeTime_ = computeTime_; + result.memoryTime_ = memoryTime_; + result.isFinal_ = isFinal_; + if (((bitField0_ & 0x00000004) != 0)) { + controlInput_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.controlInput_ = controlInput_; + result.inaccurate_ = inaccurate_; + 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 org.tensorflow.proto.CostGraphDef.Node) { + return mergeFrom((org.tensorflow.proto.CostGraphDef.Node)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.CostGraphDef.Node other) { + if (other == org.tensorflow.proto.CostGraphDef.Node.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDevice().isEmpty()) { + device_ = other.device_; + onChanged(); + } + if (other.getId() != 0) { + setId(other.getId()); + } + if (inputInfoBuilder_ == null) { + if (!other.inputInfo_.isEmpty()) { + if (inputInfo_.isEmpty()) { + inputInfo_ = other.inputInfo_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInputInfoIsMutable(); + inputInfo_.addAll(other.inputInfo_); + } + onChanged(); + } + } else { + if (!other.inputInfo_.isEmpty()) { + if (inputInfoBuilder_.isEmpty()) { + inputInfoBuilder_.dispose(); + inputInfoBuilder_ = null; + inputInfo_ = other.inputInfo_; + bitField0_ = (bitField0_ & ~0x00000001); + inputInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputInfoFieldBuilder() : null; + } else { + inputInfoBuilder_.addAllMessages(other.inputInfo_); + } + } + } + if (outputInfoBuilder_ == null) { + if (!other.outputInfo_.isEmpty()) { + if (outputInfo_.isEmpty()) { + outputInfo_ = other.outputInfo_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureOutputInfoIsMutable(); + outputInfo_.addAll(other.outputInfo_); + } + onChanged(); + } + } else { + if (!other.outputInfo_.isEmpty()) { + if (outputInfoBuilder_.isEmpty()) { + outputInfoBuilder_.dispose(); + outputInfoBuilder_ = null; + outputInfo_ = other.outputInfo_; + bitField0_ = (bitField0_ & ~0x00000002); + outputInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOutputInfoFieldBuilder() : null; + } else { + outputInfoBuilder_.addAllMessages(other.outputInfo_); + } + } + } + if (other.getTemporaryMemorySize() != 0L) { + setTemporaryMemorySize(other.getTemporaryMemorySize()); + } + if (other.getPersistentMemorySize() != 0L) { + setPersistentMemorySize(other.getPersistentMemorySize()); + } + if (other.getHostTempMemorySize() != 0L) { + setHostTempMemorySize(other.getHostTempMemorySize()); + } + if (other.getDeviceTempMemorySize() != 0L) { + setDeviceTempMemorySize(other.getDeviceTempMemorySize()); + } + if (other.getDevicePersistentMemorySize() != 0L) { + setDevicePersistentMemorySize(other.getDevicePersistentMemorySize()); + } + if (other.getComputeCost() != 0L) { + setComputeCost(other.getComputeCost()); + } + if (other.getComputeTime() != 0L) { + setComputeTime(other.getComputeTime()); + } + if (other.getMemoryTime() != 0L) { + setMemoryTime(other.getMemoryTime()); + } + if (other.getIsFinal() != false) { + setIsFinal(other.getIsFinal()); + } + if (!other.controlInput_.isEmpty()) { + if (controlInput_.isEmpty()) { + controlInput_ = other.controlInput_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureControlInputIsMutable(); + controlInput_.addAll(other.controlInput_); + } + onChanged(); + } + if (other.getInaccurate() != false) { + setInaccurate(other.getInaccurate()); + } + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + device_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + id_ = input.readInt32(); + + break; + } // case 24 + case 34: { + org.tensorflow.proto.CostGraphDef.Node.InputInfo m = + input.readMessage( + org.tensorflow.proto.CostGraphDef.Node.InputInfo.parser(), + extensionRegistry); + if (inputInfoBuilder_ == null) { + ensureInputInfoIsMutable(); + inputInfo_.add(m); + } else { + inputInfoBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + org.tensorflow.proto.CostGraphDef.Node.OutputInfo m = + input.readMessage( + org.tensorflow.proto.CostGraphDef.Node.OutputInfo.parser(), + extensionRegistry); + if (outputInfoBuilder_ == null) { + ensureOutputInfoIsMutable(); + outputInfo_.add(m); + } else { + outputInfoBuilder_.addMessage(m); + } + break; + } // case 42 + case 48: { + temporaryMemorySize_ = input.readInt64(); + + break; + } // case 48 + case 56: { + isFinal_ = input.readBool(); + + break; + } // case 56 + case 64: { + int v = input.readInt32(); + ensureControlInputIsMutable(); + controlInput_.addInt(v); + break; + } // case 64 + case 66: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureControlInputIsMutable(); + while (input.getBytesUntilLimit() > 0) { + controlInput_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 66 + case 72: { + computeCost_ = input.readInt64(); + + break; + } // case 72 + case 80: { + hostTempMemorySize_ = input.readInt64(); + + break; + } // case 80 + case 88: { + deviceTempMemorySize_ = input.readInt64(); + + break; + } // case 88 + case 96: { + persistentMemorySize_ = input.readInt64(); + + break; + } // case 96 + case 112: { + computeTime_ = input.readInt64(); + + break; + } // case 112 + case 120: { + memoryTime_ = input.readInt64(); + + break; + } // case 120 + case 128: { + devicePersistentMemorySize_ = input.readInt64(); + + break; + } // case 128 + case 136: { + inaccurate_ = input.readBool(); + + break; + } // case 136 + 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 name_ = ""; + /** + *
+       * The name of the node. Names are globally unique.
+       * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The name of the node. Names are globally unique.
+       * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The name of the node. Names are globally unique.
+       * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * The name of the node. Names are globally unique.
+       * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * The name of the node. Names are globally unique.
+       * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object device_ = ""; + /** + *
+       * The device of the node. Can be empty if the node is mapped to the
+       * default partition or partitioning hasn't been run yet.
+       * 
+ * + * string device = 2; + * @return The device. + */ + public java.lang.String getDevice() { + java.lang.Object ref = device_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + device_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The device of the node. Can be empty if the node is mapped to the
+       * default partition or partitioning hasn't been run yet.
+       * 
+ * + * string device = 2; + * @return The bytes for device. + */ + public com.google.protobuf.ByteString + getDeviceBytes() { + java.lang.Object ref = device_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + device_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The device of the node. Can be empty if the node is mapped to the
+       * default partition or partitioning hasn't been run yet.
+       * 
+ * + * string device = 2; + * @param value The device to set. + * @return This builder for chaining. + */ + public Builder setDevice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + device_ = value; + onChanged(); + return this; + } + /** + *
+       * The device of the node. Can be empty if the node is mapped to the
+       * default partition or partitioning hasn't been run yet.
+       * 
+ * + * string device = 2; + * @return This builder for chaining. + */ + public Builder clearDevice() { + + device_ = getDefaultInstance().getDevice(); + onChanged(); + return this; + } + /** + *
+       * The device of the node. Can be empty if the node is mapped to the
+       * default partition or partitioning hasn't been run yet.
+       * 
+ * + * string device = 2; + * @param value The bytes for device to set. + * @return This builder for chaining. + */ + public Builder setDeviceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + device_ = value; + onChanged(); + return this; + } + + private int id_ ; + /** + *
+       * The id of the node. Node ids are only unique inside a partition.
+       * 
+ * + * int32 id = 3; + * @return The id. + */ + @java.lang.Override + public int getId() { + return id_; + } + /** + *
+       * The id of the node. Node ids are only unique inside a partition.
+       * 
+ * + * int32 id = 3; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(int value) { + + id_ = value; + onChanged(); + return this; + } + /** + *
+       * The id of the node. Node ids are only unique inside a partition.
+       * 
+ * + * int32 id = 3; + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = 0; + onChanged(); + return this; + } + + private java.util.List inputInfo_ = + java.util.Collections.emptyList(); + private void ensureInputInfoIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + inputInfo_ = new java.util.ArrayList(inputInfo_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.CostGraphDef.Node.InputInfo, org.tensorflow.proto.CostGraphDef.Node.InputInfo.Builder, org.tensorflow.proto.CostGraphDef.Node.InputInfoOrBuilder> inputInfoBuilder_; + + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + public java.util.List getInputInfoList() { + if (inputInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputInfo_); + } else { + return inputInfoBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + public int getInputInfoCount() { + if (inputInfoBuilder_ == null) { + return inputInfo_.size(); + } else { + return inputInfoBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + public org.tensorflow.proto.CostGraphDef.Node.InputInfo getInputInfo(int index) { + if (inputInfoBuilder_ == null) { + return inputInfo_.get(index); + } else { + return inputInfoBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + public Builder setInputInfo( + int index, org.tensorflow.proto.CostGraphDef.Node.InputInfo value) { + if (inputInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputInfoIsMutable(); + inputInfo_.set(index, value); + onChanged(); + } else { + inputInfoBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + public Builder setInputInfo( + int index, org.tensorflow.proto.CostGraphDef.Node.InputInfo.Builder builderForValue) { + if (inputInfoBuilder_ == null) { + ensureInputInfoIsMutable(); + inputInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + inputInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + public Builder addInputInfo(org.tensorflow.proto.CostGraphDef.Node.InputInfo value) { + if (inputInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputInfoIsMutable(); + inputInfo_.add(value); + onChanged(); + } else { + inputInfoBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + public Builder addInputInfo( + int index, org.tensorflow.proto.CostGraphDef.Node.InputInfo value) { + if (inputInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputInfoIsMutable(); + inputInfo_.add(index, value); + onChanged(); + } else { + inputInfoBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + public Builder addInputInfo( + org.tensorflow.proto.CostGraphDef.Node.InputInfo.Builder builderForValue) { + if (inputInfoBuilder_ == null) { + ensureInputInfoIsMutable(); + inputInfo_.add(builderForValue.build()); + onChanged(); + } else { + inputInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + public Builder addInputInfo( + int index, org.tensorflow.proto.CostGraphDef.Node.InputInfo.Builder builderForValue) { + if (inputInfoBuilder_ == null) { + ensureInputInfoIsMutable(); + inputInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + inputInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + public Builder addAllInputInfo( + java.lang.Iterable values) { + if (inputInfoBuilder_ == null) { + ensureInputInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputInfo_); + onChanged(); + } else { + inputInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + public Builder clearInputInfo() { + if (inputInfoBuilder_ == null) { + inputInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + inputInfoBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + public Builder removeInputInfo(int index) { + if (inputInfoBuilder_ == null) { + ensureInputInfoIsMutable(); + inputInfo_.remove(index); + onChanged(); + } else { + inputInfoBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + public org.tensorflow.proto.CostGraphDef.Node.InputInfo.Builder getInputInfoBuilder( + int index) { + return getInputInfoFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + public org.tensorflow.proto.CostGraphDef.Node.InputInfoOrBuilder getInputInfoOrBuilder( + int index) { + if (inputInfoBuilder_ == null) { + return inputInfo_.get(index); } else { + return inputInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + public java.util.List + getInputInfoOrBuilderList() { + if (inputInfoBuilder_ != null) { + return inputInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputInfo_); + } + } + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + public org.tensorflow.proto.CostGraphDef.Node.InputInfo.Builder addInputInfoBuilder() { + return getInputInfoFieldBuilder().addBuilder( + org.tensorflow.proto.CostGraphDef.Node.InputInfo.getDefaultInstance()); + } + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + public org.tensorflow.proto.CostGraphDef.Node.InputInfo.Builder addInputInfoBuilder( + int index) { + return getInputInfoFieldBuilder().addBuilder( + index, org.tensorflow.proto.CostGraphDef.Node.InputInfo.getDefaultInstance()); + } + /** + * repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; + */ + public java.util.List + getInputInfoBuilderList() { + return getInputInfoFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.CostGraphDef.Node.InputInfo, org.tensorflow.proto.CostGraphDef.Node.InputInfo.Builder, org.tensorflow.proto.CostGraphDef.Node.InputInfoOrBuilder> + getInputInfoFieldBuilder() { + if (inputInfoBuilder_ == null) { + inputInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.CostGraphDef.Node.InputInfo, org.tensorflow.proto.CostGraphDef.Node.InputInfo.Builder, org.tensorflow.proto.CostGraphDef.Node.InputInfoOrBuilder>( + inputInfo_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + inputInfo_ = null; + } + return inputInfoBuilder_; + } + + private java.util.List outputInfo_ = + java.util.Collections.emptyList(); + private void ensureOutputInfoIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + outputInfo_ = new java.util.ArrayList(outputInfo_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.CostGraphDef.Node.OutputInfo, org.tensorflow.proto.CostGraphDef.Node.OutputInfo.Builder, org.tensorflow.proto.CostGraphDef.Node.OutputInfoOrBuilder> outputInfoBuilder_; + + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + public java.util.List getOutputInfoList() { + if (outputInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputInfo_); + } else { + return outputInfoBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + public int getOutputInfoCount() { + if (outputInfoBuilder_ == null) { + return outputInfo_.size(); + } else { + return outputInfoBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + public org.tensorflow.proto.CostGraphDef.Node.OutputInfo getOutputInfo(int index) { + if (outputInfoBuilder_ == null) { + return outputInfo_.get(index); + } else { + return outputInfoBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + public Builder setOutputInfo( + int index, org.tensorflow.proto.CostGraphDef.Node.OutputInfo value) { + if (outputInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputInfoIsMutable(); + outputInfo_.set(index, value); + onChanged(); + } else { + outputInfoBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + public Builder setOutputInfo( + int index, org.tensorflow.proto.CostGraphDef.Node.OutputInfo.Builder builderForValue) { + if (outputInfoBuilder_ == null) { + ensureOutputInfoIsMutable(); + outputInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + outputInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + public Builder addOutputInfo(org.tensorflow.proto.CostGraphDef.Node.OutputInfo value) { + if (outputInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputInfoIsMutable(); + outputInfo_.add(value); + onChanged(); + } else { + outputInfoBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + public Builder addOutputInfo( + int index, org.tensorflow.proto.CostGraphDef.Node.OutputInfo value) { + if (outputInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputInfoIsMutable(); + outputInfo_.add(index, value); + onChanged(); + } else { + outputInfoBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + public Builder addOutputInfo( + org.tensorflow.proto.CostGraphDef.Node.OutputInfo.Builder builderForValue) { + if (outputInfoBuilder_ == null) { + ensureOutputInfoIsMutable(); + outputInfo_.add(builderForValue.build()); + onChanged(); + } else { + outputInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + public Builder addOutputInfo( + int index, org.tensorflow.proto.CostGraphDef.Node.OutputInfo.Builder builderForValue) { + if (outputInfoBuilder_ == null) { + ensureOutputInfoIsMutable(); + outputInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + outputInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + public Builder addAllOutputInfo( + java.lang.Iterable values) { + if (outputInfoBuilder_ == null) { + ensureOutputInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outputInfo_); + onChanged(); + } else { + outputInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + public Builder clearOutputInfo() { + if (outputInfoBuilder_ == null) { + outputInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + outputInfoBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + public Builder removeOutputInfo(int index) { + if (outputInfoBuilder_ == null) { + ensureOutputInfoIsMutable(); + outputInfo_.remove(index); + onChanged(); + } else { + outputInfoBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + public org.tensorflow.proto.CostGraphDef.Node.OutputInfo.Builder getOutputInfoBuilder( + int index) { + return getOutputInfoFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + public org.tensorflow.proto.CostGraphDef.Node.OutputInfoOrBuilder getOutputInfoOrBuilder( + int index) { + if (outputInfoBuilder_ == null) { + return outputInfo_.get(index); } else { + return outputInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + public java.util.List + getOutputInfoOrBuilderList() { + if (outputInfoBuilder_ != null) { + return outputInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputInfo_); + } + } + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + public org.tensorflow.proto.CostGraphDef.Node.OutputInfo.Builder addOutputInfoBuilder() { + return getOutputInfoFieldBuilder().addBuilder( + org.tensorflow.proto.CostGraphDef.Node.OutputInfo.getDefaultInstance()); + } + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + public org.tensorflow.proto.CostGraphDef.Node.OutputInfo.Builder addOutputInfoBuilder( + int index) { + return getOutputInfoFieldBuilder().addBuilder( + index, org.tensorflow.proto.CostGraphDef.Node.OutputInfo.getDefaultInstance()); + } + /** + * repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; + */ + public java.util.List + getOutputInfoBuilderList() { + return getOutputInfoFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.CostGraphDef.Node.OutputInfo, org.tensorflow.proto.CostGraphDef.Node.OutputInfo.Builder, org.tensorflow.proto.CostGraphDef.Node.OutputInfoOrBuilder> + getOutputInfoFieldBuilder() { + if (outputInfoBuilder_ == null) { + outputInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.CostGraphDef.Node.OutputInfo, org.tensorflow.proto.CostGraphDef.Node.OutputInfo.Builder, org.tensorflow.proto.CostGraphDef.Node.OutputInfoOrBuilder>( + outputInfo_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + outputInfo_ = null; + } + return outputInfoBuilder_; + } + + private long temporaryMemorySize_ ; + /** + *
+       * Temporary memory used by this node.
+       * 
+ * + * int64 temporary_memory_size = 6; + * @return The temporaryMemorySize. + */ + @java.lang.Override + public long getTemporaryMemorySize() { + return temporaryMemorySize_; + } + /** + *
+       * Temporary memory used by this node.
+       * 
+ * + * int64 temporary_memory_size = 6; + * @param value The temporaryMemorySize to set. + * @return This builder for chaining. + */ + public Builder setTemporaryMemorySize(long value) { + + temporaryMemorySize_ = value; + onChanged(); + return this; + } + /** + *
+       * Temporary memory used by this node.
+       * 
+ * + * int64 temporary_memory_size = 6; + * @return This builder for chaining. + */ + public Builder clearTemporaryMemorySize() { + + temporaryMemorySize_ = 0L; + onChanged(); + return this; + } + + private long persistentMemorySize_ ; + /** + *
+       * Persistent memory used by this node.
+       * 
+ * + * int64 persistent_memory_size = 12; + * @return The persistentMemorySize. + */ + @java.lang.Override + public long getPersistentMemorySize() { + return persistentMemorySize_; + } + /** + *
+       * Persistent memory used by this node.
+       * 
+ * + * int64 persistent_memory_size = 12; + * @param value The persistentMemorySize to set. + * @return This builder for chaining. + */ + public Builder setPersistentMemorySize(long value) { + + persistentMemorySize_ = value; + onChanged(); + return this; + } + /** + *
+       * Persistent memory used by this node.
+       * 
+ * + * int64 persistent_memory_size = 12; + * @return This builder for chaining. + */ + public Builder clearPersistentMemorySize() { + + persistentMemorySize_ = 0L; + onChanged(); + return this; + } + + private long hostTempMemorySize_ ; + /** + * int64 host_temp_memory_size = 10 [deprecated = true]; + * @deprecated tensorflow.CostGraphDef.Node.host_temp_memory_size is deprecated. + * See tensorflow/core/framework/cost_graph.proto;l=51 + * @return The hostTempMemorySize. + */ + @java.lang.Override + @java.lang.Deprecated public long getHostTempMemorySize() { + return hostTempMemorySize_; + } + /** + * int64 host_temp_memory_size = 10 [deprecated = true]; + * @deprecated tensorflow.CostGraphDef.Node.host_temp_memory_size is deprecated. + * See tensorflow/core/framework/cost_graph.proto;l=51 + * @param value The hostTempMemorySize to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setHostTempMemorySize(long value) { + + hostTempMemorySize_ = value; + onChanged(); + return this; + } + /** + * int64 host_temp_memory_size = 10 [deprecated = true]; + * @deprecated tensorflow.CostGraphDef.Node.host_temp_memory_size is deprecated. + * See tensorflow/core/framework/cost_graph.proto;l=51 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearHostTempMemorySize() { + + hostTempMemorySize_ = 0L; + onChanged(); + return this; + } + + private long deviceTempMemorySize_ ; + /** + * int64 device_temp_memory_size = 11 [deprecated = true]; + * @deprecated tensorflow.CostGraphDef.Node.device_temp_memory_size is deprecated. + * See tensorflow/core/framework/cost_graph.proto;l=52 + * @return The deviceTempMemorySize. + */ + @java.lang.Override + @java.lang.Deprecated public long getDeviceTempMemorySize() { + return deviceTempMemorySize_; + } + /** + * int64 device_temp_memory_size = 11 [deprecated = true]; + * @deprecated tensorflow.CostGraphDef.Node.device_temp_memory_size is deprecated. + * See tensorflow/core/framework/cost_graph.proto;l=52 + * @param value The deviceTempMemorySize to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setDeviceTempMemorySize(long value) { + + deviceTempMemorySize_ = value; + onChanged(); + return this; + } + /** + * int64 device_temp_memory_size = 11 [deprecated = true]; + * @deprecated tensorflow.CostGraphDef.Node.device_temp_memory_size is deprecated. + * See tensorflow/core/framework/cost_graph.proto;l=52 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearDeviceTempMemorySize() { + + deviceTempMemorySize_ = 0L; + onChanged(); + return this; + } + + private long devicePersistentMemorySize_ ; + /** + * int64 device_persistent_memory_size = 16 [deprecated = true]; + * @deprecated tensorflow.CostGraphDef.Node.device_persistent_memory_size is deprecated. + * See tensorflow/core/framework/cost_graph.proto;l=53 + * @return The devicePersistentMemorySize. + */ + @java.lang.Override + @java.lang.Deprecated public long getDevicePersistentMemorySize() { + return devicePersistentMemorySize_; + } + /** + * int64 device_persistent_memory_size = 16 [deprecated = true]; + * @deprecated tensorflow.CostGraphDef.Node.device_persistent_memory_size is deprecated. + * See tensorflow/core/framework/cost_graph.proto;l=53 + * @param value The devicePersistentMemorySize to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setDevicePersistentMemorySize(long value) { + + devicePersistentMemorySize_ = value; + onChanged(); + return this; + } + /** + * int64 device_persistent_memory_size = 16 [deprecated = true]; + * @deprecated tensorflow.CostGraphDef.Node.device_persistent_memory_size is deprecated. + * See tensorflow/core/framework/cost_graph.proto;l=53 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearDevicePersistentMemorySize() { + + devicePersistentMemorySize_ = 0L; + onChanged(); + return this; + } + + private long computeCost_ ; + /** + *
+       * Estimate of the computational cost of this node, in microseconds.
+       * 
+ * + * int64 compute_cost = 9; + * @return The computeCost. + */ + @java.lang.Override + public long getComputeCost() { + return computeCost_; + } + /** + *
+       * Estimate of the computational cost of this node, in microseconds.
+       * 
+ * + * int64 compute_cost = 9; + * @param value The computeCost to set. + * @return This builder for chaining. + */ + public Builder setComputeCost(long value) { + + computeCost_ = value; + onChanged(); + return this; + } + /** + *
+       * Estimate of the computational cost of this node, in microseconds.
+       * 
+ * + * int64 compute_cost = 9; + * @return This builder for chaining. + */ + public Builder clearComputeCost() { + + computeCost_ = 0L; + onChanged(); + return this; + } + + private long computeTime_ ; + /** + *
+       * Analytical estimate of the computational cost of this node, in
+       * microseconds.
+       * 
+ * + * int64 compute_time = 14; + * @return The computeTime. + */ + @java.lang.Override + public long getComputeTime() { + return computeTime_; + } + /** + *
+       * Analytical estimate of the computational cost of this node, in
+       * microseconds.
+       * 
+ * + * int64 compute_time = 14; + * @param value The computeTime to set. + * @return This builder for chaining. + */ + public Builder setComputeTime(long value) { + + computeTime_ = value; + onChanged(); + return this; + } + /** + *
+       * Analytical estimate of the computational cost of this node, in
+       * microseconds.
+       * 
+ * + * int64 compute_time = 14; + * @return This builder for chaining. + */ + public Builder clearComputeTime() { + + computeTime_ = 0L; + onChanged(); + return this; + } + + private long memoryTime_ ; + /** + *
+       * Analytical estimate of the memory access cost of this node, in
+       * microseconds.
+       * 
+ * + * int64 memory_time = 15; + * @return The memoryTime. + */ + @java.lang.Override + public long getMemoryTime() { + return memoryTime_; + } + /** + *
+       * Analytical estimate of the memory access cost of this node, in
+       * microseconds.
+       * 
+ * + * int64 memory_time = 15; + * @param value The memoryTime to set. + * @return This builder for chaining. + */ + public Builder setMemoryTime(long value) { + + memoryTime_ = value; + onChanged(); + return this; + } + /** + *
+       * Analytical estimate of the memory access cost of this node, in
+       * microseconds.
+       * 
+ * + * int64 memory_time = 15; + * @return This builder for chaining. + */ + public Builder clearMemoryTime() { + + memoryTime_ = 0L; + onChanged(); + return this; + } + + private boolean isFinal_ ; + /** + *
+       * If true, the output is permanent: it can't be discarded, because this
+       * node is part of the "final output". Nodes may depend on final nodes.
+       * 
+ * + * bool is_final = 7; + * @return The isFinal. + */ + @java.lang.Override + public boolean getIsFinal() { + return isFinal_; + } + /** + *
+       * If true, the output is permanent: it can't be discarded, because this
+       * node is part of the "final output". Nodes may depend on final nodes.
+       * 
+ * + * bool is_final = 7; + * @param value The isFinal to set. + * @return This builder for chaining. + */ + public Builder setIsFinal(boolean value) { + + isFinal_ = value; + onChanged(); + return this; + } + /** + *
+       * If true, the output is permanent: it can't be discarded, because this
+       * node is part of the "final output". Nodes may depend on final nodes.
+       * 
+ * + * bool is_final = 7; + * @return This builder for chaining. + */ + public Builder clearIsFinal() { + + isFinal_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList controlInput_ = emptyIntList(); + private void ensureControlInputIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + controlInput_ = mutableCopy(controlInput_); + bitField0_ |= 0x00000004; + } + } + /** + *
+       * Ids of the control inputs for this node.
+       * 
+ * + * repeated int32 control_input = 8; + * @return A list containing the controlInput. + */ + public java.util.List + getControlInputList() { + return ((bitField0_ & 0x00000004) != 0) ? + java.util.Collections.unmodifiableList(controlInput_) : controlInput_; + } + /** + *
+       * Ids of the control inputs for this node.
+       * 
+ * + * repeated int32 control_input = 8; + * @return The count of controlInput. + */ + public int getControlInputCount() { + return controlInput_.size(); + } + /** + *
+       * Ids of the control inputs for this node.
+       * 
+ * + * repeated int32 control_input = 8; + * @param index The index of the element to return. + * @return The controlInput at the given index. + */ + public int getControlInput(int index) { + return controlInput_.getInt(index); + } + /** + *
+       * Ids of the control inputs for this node.
+       * 
+ * + * repeated int32 control_input = 8; + * @param index The index to set the value at. + * @param value The controlInput to set. + * @return This builder for chaining. + */ + public Builder setControlInput( + int index, int value) { + ensureControlInputIsMutable(); + controlInput_.setInt(index, value); + onChanged(); + return this; + } + /** + *
+       * Ids of the control inputs for this node.
+       * 
+ * + * repeated int32 control_input = 8; + * @param value The controlInput to add. + * @return This builder for chaining. + */ + public Builder addControlInput(int value) { + ensureControlInputIsMutable(); + controlInput_.addInt(value); + onChanged(); + return this; + } + /** + *
+       * Ids of the control inputs for this node.
+       * 
+ * + * repeated int32 control_input = 8; + * @param values The controlInput to add. + * @return This builder for chaining. + */ + public Builder addAllControlInput( + java.lang.Iterable values) { + ensureControlInputIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, controlInput_); + onChanged(); + return this; + } + /** + *
+       * Ids of the control inputs for this node.
+       * 
+ * + * repeated int32 control_input = 8; + * @return This builder for chaining. + */ + public Builder clearControlInput() { + controlInput_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + private boolean inaccurate_ ; + /** + *
+       * Are the costs inaccurate?
+       * 
+ * + * bool inaccurate = 17; + * @return The inaccurate. + */ + @java.lang.Override + public boolean getInaccurate() { + return inaccurate_; + } + /** + *
+       * Are the costs inaccurate?
+       * 
+ * + * bool inaccurate = 17; + * @param value The inaccurate to set. + * @return This builder for chaining. + */ + public Builder setInaccurate(boolean value) { + + inaccurate_ = value; + onChanged(); + return this; + } + /** + *
+       * Are the costs inaccurate?
+       * 
+ * + * bool inaccurate = 17; + * @return This builder for chaining. + */ + public Builder clearInaccurate() { + + inaccurate_ = false; + 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:tensorflow.CostGraphDef.Node) + } + + // @@protoc_insertion_point(class_scope:tensorflow.CostGraphDef.Node) + private static final org.tensorflow.proto.CostGraphDef.Node DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.CostGraphDef.Node(); + } + + public static org.tensorflow.proto.CostGraphDef.Node getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Node 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 org.tensorflow.proto.CostGraphDef.Node getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AggregatedCostOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.CostGraphDef.AggregatedCost) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Aggregated cost value.
+     * 
+ * + * float cost = 1; + * @return The cost. + */ + float getCost(); + + /** + *
+     * Aggregated cost dimension (e.g. 'memory', 'compute', 'network').
+     * 
+ * + * string dimension = 2; + * @return The dimension. + */ + java.lang.String getDimension(); + /** + *
+     * Aggregated cost dimension (e.g. 'memory', 'compute', 'network').
+     * 
+ * + * string dimension = 2; + * @return The bytes for dimension. + */ + com.google.protobuf.ByteString + getDimensionBytes(); + } + /** + *
+   * Total cost of this graph, typically used for balancing decisions.
+   * 
+ * + * Protobuf type {@code tensorflow.CostGraphDef.AggregatedCost} + */ + public static final class AggregatedCost extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.CostGraphDef.AggregatedCost) + AggregatedCostOrBuilder { + private static final long serialVersionUID = 0L; + // Use AggregatedCost.newBuilder() to construct. + private AggregatedCost(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AggregatedCost() { + dimension_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AggregatedCost(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_AggregatedCost_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_AggregatedCost_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CostGraphDef.AggregatedCost.class, org.tensorflow.proto.CostGraphDef.AggregatedCost.Builder.class); + } + + public static final int COST_FIELD_NUMBER = 1; + private float cost_; + /** + *
+     * Aggregated cost value.
+     * 
+ * + * float cost = 1; + * @return The cost. + */ + @java.lang.Override + public float getCost() { + return cost_; + } + + public static final int DIMENSION_FIELD_NUMBER = 2; + private volatile java.lang.Object dimension_; + /** + *
+     * Aggregated cost dimension (e.g. 'memory', 'compute', 'network').
+     * 
+ * + * string dimension = 2; + * @return The dimension. + */ + @java.lang.Override + public java.lang.String getDimension() { + java.lang.Object ref = dimension_; + 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(); + dimension_ = s; + return s; + } + } + /** + *
+     * Aggregated cost dimension (e.g. 'memory', 'compute', 'network').
+     * 
+ * + * string dimension = 2; + * @return The bytes for dimension. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDimensionBytes() { + java.lang.Object ref = dimension_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dimension_ = 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 (java.lang.Float.floatToRawIntBits(cost_) != 0) { + output.writeFloat(1, cost_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimension_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dimension_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Float.floatToRawIntBits(cost_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, cost_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimension_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dimension_); + } + 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 org.tensorflow.proto.CostGraphDef.AggregatedCost)) { + return super.equals(obj); + } + org.tensorflow.proto.CostGraphDef.AggregatedCost other = (org.tensorflow.proto.CostGraphDef.AggregatedCost) obj; + + if (java.lang.Float.floatToIntBits(getCost()) + != java.lang.Float.floatToIntBits( + other.getCost())) return false; + if (!getDimension() + .equals(other.getDimension())) 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) + COST_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getCost()); + hash = (37 * hash) + DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + getDimension().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.CostGraphDef.AggregatedCost parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CostGraphDef.AggregatedCost parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CostGraphDef.AggregatedCost parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CostGraphDef.AggregatedCost parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CostGraphDef.AggregatedCost parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CostGraphDef.AggregatedCost parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CostGraphDef.AggregatedCost parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CostGraphDef.AggregatedCost 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 org.tensorflow.proto.CostGraphDef.AggregatedCost parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CostGraphDef.AggregatedCost 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 org.tensorflow.proto.CostGraphDef.AggregatedCost parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CostGraphDef.AggregatedCost 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(org.tensorflow.proto.CostGraphDef.AggregatedCost 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; + } + /** + *
+     * Total cost of this graph, typically used for balancing decisions.
+     * 
+ * + * Protobuf type {@code tensorflow.CostGraphDef.AggregatedCost} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.CostGraphDef.AggregatedCost) + org.tensorflow.proto.CostGraphDef.AggregatedCostOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_AggregatedCost_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_AggregatedCost_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CostGraphDef.AggregatedCost.class, org.tensorflow.proto.CostGraphDef.AggregatedCost.Builder.class); + } + + // Construct using org.tensorflow.proto.CostGraphDef.AggregatedCost.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + cost_ = 0F; + + dimension_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_AggregatedCost_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.CostGraphDef.AggregatedCost getDefaultInstanceForType() { + return org.tensorflow.proto.CostGraphDef.AggregatedCost.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.CostGraphDef.AggregatedCost build() { + org.tensorflow.proto.CostGraphDef.AggregatedCost result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.CostGraphDef.AggregatedCost buildPartial() { + org.tensorflow.proto.CostGraphDef.AggregatedCost result = new org.tensorflow.proto.CostGraphDef.AggregatedCost(this); + result.cost_ = cost_; + result.dimension_ = dimension_; + 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 org.tensorflow.proto.CostGraphDef.AggregatedCost) { + return mergeFrom((org.tensorflow.proto.CostGraphDef.AggregatedCost)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.CostGraphDef.AggregatedCost other) { + if (other == org.tensorflow.proto.CostGraphDef.AggregatedCost.getDefaultInstance()) return this; + if (other.getCost() != 0F) { + setCost(other.getCost()); + } + if (!other.getDimension().isEmpty()) { + dimension_ = other.dimension_; + 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 13: { + cost_ = input.readFloat(); + + break; + } // case 13 + case 18: { + dimension_ = input.readStringRequireUtf8(); + + 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 float cost_ ; + /** + *
+       * Aggregated cost value.
+       * 
+ * + * float cost = 1; + * @return The cost. + */ + @java.lang.Override + public float getCost() { + return cost_; + } + /** + *
+       * Aggregated cost value.
+       * 
+ * + * float cost = 1; + * @param value The cost to set. + * @return This builder for chaining. + */ + public Builder setCost(float value) { + + cost_ = value; + onChanged(); + return this; + } + /** + *
+       * Aggregated cost value.
+       * 
+ * + * float cost = 1; + * @return This builder for chaining. + */ + public Builder clearCost() { + + cost_ = 0F; + onChanged(); + return this; + } + + private java.lang.Object dimension_ = ""; + /** + *
+       * Aggregated cost dimension (e.g. 'memory', 'compute', 'network').
+       * 
+ * + * string dimension = 2; + * @return The dimension. + */ + public java.lang.String getDimension() { + java.lang.Object ref = dimension_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dimension_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Aggregated cost dimension (e.g. 'memory', 'compute', 'network').
+       * 
+ * + * string dimension = 2; + * @return The bytes for dimension. + */ + public com.google.protobuf.ByteString + getDimensionBytes() { + java.lang.Object ref = dimension_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dimension_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Aggregated cost dimension (e.g. 'memory', 'compute', 'network').
+       * 
+ * + * string dimension = 2; + * @param value The dimension to set. + * @return This builder for chaining. + */ + public Builder setDimension( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dimension_ = value; + onChanged(); + return this; + } + /** + *
+       * Aggregated cost dimension (e.g. 'memory', 'compute', 'network').
+       * 
+ * + * string dimension = 2; + * @return This builder for chaining. + */ + public Builder clearDimension() { + + dimension_ = getDefaultInstance().getDimension(); + onChanged(); + return this; + } + /** + *
+       * Aggregated cost dimension (e.g. 'memory', 'compute', 'network').
+       * 
+ * + * string dimension = 2; + * @param value The bytes for dimension to set. + * @return This builder for chaining. + */ + public Builder setDimensionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dimension_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.CostGraphDef.AggregatedCost) + } + + // @@protoc_insertion_point(class_scope:tensorflow.CostGraphDef.AggregatedCost) + private static final org.tensorflow.proto.CostGraphDef.AggregatedCost DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.CostGraphDef.AggregatedCost(); + } + + public static org.tensorflow.proto.CostGraphDef.AggregatedCost getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AggregatedCost 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 org.tensorflow.proto.CostGraphDef.AggregatedCost getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int NODE_FIELD_NUMBER = 1; + private java.util.List node_; + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + @java.lang.Override + public java.util.List getNodeList() { + return node_; + } + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + @java.lang.Override + public java.util.List + getNodeOrBuilderList() { + return node_; + } + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + @java.lang.Override + public int getNodeCount() { + return node_.size(); + } + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + @java.lang.Override + public org.tensorflow.proto.CostGraphDef.Node getNode(int index) { + return node_.get(index); + } + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + @java.lang.Override + public org.tensorflow.proto.CostGraphDef.NodeOrBuilder getNodeOrBuilder( + int index) { + return node_.get(index); + } + + public static final int COST_FIELD_NUMBER = 2; + private java.util.List cost_; + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + @java.lang.Override + public java.util.List getCostList() { + return cost_; + } + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + @java.lang.Override + public java.util.List + getCostOrBuilderList() { + return cost_; + } + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + @java.lang.Override + public int getCostCount() { + return cost_.size(); + } + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + @java.lang.Override + public org.tensorflow.proto.CostGraphDef.AggregatedCost getCost(int index) { + return cost_.get(index); + } + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + @java.lang.Override + public org.tensorflow.proto.CostGraphDef.AggregatedCostOrBuilder getCostOrBuilder( + int index) { + return cost_.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 < node_.size(); i++) { + output.writeMessage(1, node_.get(i)); + } + for (int i = 0; i < cost_.size(); i++) { + output.writeMessage(2, cost_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < node_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, node_.get(i)); + } + for (int i = 0; i < cost_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, cost_.get(i)); + } + 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 org.tensorflow.proto.CostGraphDef)) { + return super.equals(obj); + } + org.tensorflow.proto.CostGraphDef other = (org.tensorflow.proto.CostGraphDef) obj; + + if (!getNodeList() + .equals(other.getNodeList())) return false; + if (!getCostList() + .equals(other.getCostList())) 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 (getNodeCount() > 0) { + hash = (37 * hash) + NODE_FIELD_NUMBER; + hash = (53 * hash) + getNodeList().hashCode(); + } + if (getCostCount() > 0) { + hash = (37 * hash) + COST_FIELD_NUMBER; + hash = (53 * hash) + getCostList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.CostGraphDef parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CostGraphDef parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CostGraphDef parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CostGraphDef parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CostGraphDef parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.CostGraphDef parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.CostGraphDef parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CostGraphDef 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 org.tensorflow.proto.CostGraphDef parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CostGraphDef 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 org.tensorflow.proto.CostGraphDef parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.CostGraphDef 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(org.tensorflow.proto.CostGraphDef prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.CostGraphDef} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.CostGraphDef) + org.tensorflow.proto.CostGraphDefOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.CostGraphDef.class, org.tensorflow.proto.CostGraphDef.Builder.class); + } + + // Construct using org.tensorflow.proto.CostGraphDef.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (nodeBuilder_ == null) { + node_ = java.util.Collections.emptyList(); + } else { + node_ = null; + nodeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (costBuilder_ == null) { + cost_ = java.util.Collections.emptyList(); + } else { + cost_ = null; + costBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.CostGraphProtos.internal_static_tensorflow_CostGraphDef_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.CostGraphDef getDefaultInstanceForType() { + return org.tensorflow.proto.CostGraphDef.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.CostGraphDef build() { + org.tensorflow.proto.CostGraphDef result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.CostGraphDef buildPartial() { + org.tensorflow.proto.CostGraphDef result = new org.tensorflow.proto.CostGraphDef(this); + int from_bitField0_ = bitField0_; + if (nodeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + node_ = java.util.Collections.unmodifiableList(node_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.node_ = node_; + } else { + result.node_ = nodeBuilder_.build(); + } + if (costBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + cost_ = java.util.Collections.unmodifiableList(cost_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.cost_ = cost_; + } else { + result.cost_ = costBuilder_.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 org.tensorflow.proto.CostGraphDef) { + return mergeFrom((org.tensorflow.proto.CostGraphDef)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.CostGraphDef other) { + if (other == org.tensorflow.proto.CostGraphDef.getDefaultInstance()) return this; + if (nodeBuilder_ == null) { + if (!other.node_.isEmpty()) { + if (node_.isEmpty()) { + node_ = other.node_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodeIsMutable(); + node_.addAll(other.node_); + } + onChanged(); + } + } else { + if (!other.node_.isEmpty()) { + if (nodeBuilder_.isEmpty()) { + nodeBuilder_.dispose(); + nodeBuilder_ = null; + node_ = other.node_; + bitField0_ = (bitField0_ & ~0x00000001); + nodeBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodeFieldBuilder() : null; + } else { + nodeBuilder_.addAllMessages(other.node_); + } + } + } + if (costBuilder_ == null) { + if (!other.cost_.isEmpty()) { + if (cost_.isEmpty()) { + cost_ = other.cost_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCostIsMutable(); + cost_.addAll(other.cost_); + } + onChanged(); + } + } else { + if (!other.cost_.isEmpty()) { + if (costBuilder_.isEmpty()) { + costBuilder_.dispose(); + costBuilder_ = null; + cost_ = other.cost_; + bitField0_ = (bitField0_ & ~0x00000002); + costBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCostFieldBuilder() : null; + } else { + costBuilder_.addAllMessages(other.cost_); + } + } + } + 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: { + org.tensorflow.proto.CostGraphDef.Node m = + input.readMessage( + org.tensorflow.proto.CostGraphDef.Node.parser(), + extensionRegistry); + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.add(m); + } else { + nodeBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + org.tensorflow.proto.CostGraphDef.AggregatedCost m = + input.readMessage( + org.tensorflow.proto.CostGraphDef.AggregatedCost.parser(), + extensionRegistry); + if (costBuilder_ == null) { + ensureCostIsMutable(); + cost_.add(m); + } else { + costBuilder_.addMessage(m); + } + 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 java.util.List node_ = + java.util.Collections.emptyList(); + private void ensureNodeIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + node_ = new java.util.ArrayList(node_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.CostGraphDef.Node, org.tensorflow.proto.CostGraphDef.Node.Builder, org.tensorflow.proto.CostGraphDef.NodeOrBuilder> nodeBuilder_; + + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + public java.util.List getNodeList() { + if (nodeBuilder_ == null) { + return java.util.Collections.unmodifiableList(node_); + } else { + return nodeBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + public int getNodeCount() { + if (nodeBuilder_ == null) { + return node_.size(); + } else { + return nodeBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + public org.tensorflow.proto.CostGraphDef.Node getNode(int index) { + if (nodeBuilder_ == null) { + return node_.get(index); + } else { + return nodeBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + public Builder setNode( + int index, org.tensorflow.proto.CostGraphDef.Node value) { + if (nodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeIsMutable(); + node_.set(index, value); + onChanged(); + } else { + nodeBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + public Builder setNode( + int index, org.tensorflow.proto.CostGraphDef.Node.Builder builderForValue) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.set(index, builderForValue.build()); + onChanged(); + } else { + nodeBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + public Builder addNode(org.tensorflow.proto.CostGraphDef.Node value) { + if (nodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeIsMutable(); + node_.add(value); + onChanged(); + } else { + nodeBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + public Builder addNode( + int index, org.tensorflow.proto.CostGraphDef.Node value) { + if (nodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeIsMutable(); + node_.add(index, value); + onChanged(); + } else { + nodeBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + public Builder addNode( + org.tensorflow.proto.CostGraphDef.Node.Builder builderForValue) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.add(builderForValue.build()); + onChanged(); + } else { + nodeBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + public Builder addNode( + int index, org.tensorflow.proto.CostGraphDef.Node.Builder builderForValue) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.add(index, builderForValue.build()); + onChanged(); + } else { + nodeBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + public Builder addAllNode( + java.lang.Iterable values) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, node_); + onChanged(); + } else { + nodeBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + public Builder clearNode() { + if (nodeBuilder_ == null) { + node_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodeBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + public Builder removeNode(int index) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.remove(index); + onChanged(); + } else { + nodeBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + public org.tensorflow.proto.CostGraphDef.Node.Builder getNodeBuilder( + int index) { + return getNodeFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + public org.tensorflow.proto.CostGraphDef.NodeOrBuilder getNodeOrBuilder( + int index) { + if (nodeBuilder_ == null) { + return node_.get(index); } else { + return nodeBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + public java.util.List + getNodeOrBuilderList() { + if (nodeBuilder_ != null) { + return nodeBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(node_); + } + } + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + public org.tensorflow.proto.CostGraphDef.Node.Builder addNodeBuilder() { + return getNodeFieldBuilder().addBuilder( + org.tensorflow.proto.CostGraphDef.Node.getDefaultInstance()); + } + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + public org.tensorflow.proto.CostGraphDef.Node.Builder addNodeBuilder( + int index) { + return getNodeFieldBuilder().addBuilder( + index, org.tensorflow.proto.CostGraphDef.Node.getDefaultInstance()); + } + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + public java.util.List + getNodeBuilderList() { + return getNodeFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.CostGraphDef.Node, org.tensorflow.proto.CostGraphDef.Node.Builder, org.tensorflow.proto.CostGraphDef.NodeOrBuilder> + getNodeFieldBuilder() { + if (nodeBuilder_ == null) { + nodeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.CostGraphDef.Node, org.tensorflow.proto.CostGraphDef.Node.Builder, org.tensorflow.proto.CostGraphDef.NodeOrBuilder>( + node_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + node_ = null; + } + return nodeBuilder_; + } + + private java.util.List cost_ = + java.util.Collections.emptyList(); + private void ensureCostIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + cost_ = new java.util.ArrayList(cost_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.CostGraphDef.AggregatedCost, org.tensorflow.proto.CostGraphDef.AggregatedCost.Builder, org.tensorflow.proto.CostGraphDef.AggregatedCostOrBuilder> costBuilder_; + + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + public java.util.List getCostList() { + if (costBuilder_ == null) { + return java.util.Collections.unmodifiableList(cost_); + } else { + return costBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + public int getCostCount() { + if (costBuilder_ == null) { + return cost_.size(); + } else { + return costBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + public org.tensorflow.proto.CostGraphDef.AggregatedCost getCost(int index) { + if (costBuilder_ == null) { + return cost_.get(index); + } else { + return costBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + public Builder setCost( + int index, org.tensorflow.proto.CostGraphDef.AggregatedCost value) { + if (costBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCostIsMutable(); + cost_.set(index, value); + onChanged(); + } else { + costBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + public Builder setCost( + int index, org.tensorflow.proto.CostGraphDef.AggregatedCost.Builder builderForValue) { + if (costBuilder_ == null) { + ensureCostIsMutable(); + cost_.set(index, builderForValue.build()); + onChanged(); + } else { + costBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + public Builder addCost(org.tensorflow.proto.CostGraphDef.AggregatedCost value) { + if (costBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCostIsMutable(); + cost_.add(value); + onChanged(); + } else { + costBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + public Builder addCost( + int index, org.tensorflow.proto.CostGraphDef.AggregatedCost value) { + if (costBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCostIsMutable(); + cost_.add(index, value); + onChanged(); + } else { + costBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + public Builder addCost( + org.tensorflow.proto.CostGraphDef.AggregatedCost.Builder builderForValue) { + if (costBuilder_ == null) { + ensureCostIsMutable(); + cost_.add(builderForValue.build()); + onChanged(); + } else { + costBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + public Builder addCost( + int index, org.tensorflow.proto.CostGraphDef.AggregatedCost.Builder builderForValue) { + if (costBuilder_ == null) { + ensureCostIsMutable(); + cost_.add(index, builderForValue.build()); + onChanged(); + } else { + costBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + public Builder addAllCost( + java.lang.Iterable values) { + if (costBuilder_ == null) { + ensureCostIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cost_); + onChanged(); + } else { + costBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + public Builder clearCost() { + if (costBuilder_ == null) { + cost_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + costBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + public Builder removeCost(int index) { + if (costBuilder_ == null) { + ensureCostIsMutable(); + cost_.remove(index); + onChanged(); + } else { + costBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + public org.tensorflow.proto.CostGraphDef.AggregatedCost.Builder getCostBuilder( + int index) { + return getCostFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + public org.tensorflow.proto.CostGraphDef.AggregatedCostOrBuilder getCostOrBuilder( + int index) { + if (costBuilder_ == null) { + return cost_.get(index); } else { + return costBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + public java.util.List + getCostOrBuilderList() { + if (costBuilder_ != null) { + return costBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cost_); + } + } + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + public org.tensorflow.proto.CostGraphDef.AggregatedCost.Builder addCostBuilder() { + return getCostFieldBuilder().addBuilder( + org.tensorflow.proto.CostGraphDef.AggregatedCost.getDefaultInstance()); + } + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + public org.tensorflow.proto.CostGraphDef.AggregatedCost.Builder addCostBuilder( + int index) { + return getCostFieldBuilder().addBuilder( + index, org.tensorflow.proto.CostGraphDef.AggregatedCost.getDefaultInstance()); + } + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + public java.util.List + getCostBuilderList() { + return getCostFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.CostGraphDef.AggregatedCost, org.tensorflow.proto.CostGraphDef.AggregatedCost.Builder, org.tensorflow.proto.CostGraphDef.AggregatedCostOrBuilder> + getCostFieldBuilder() { + if (costBuilder_ == null) { + costBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.CostGraphDef.AggregatedCost, org.tensorflow.proto.CostGraphDef.AggregatedCost.Builder, org.tensorflow.proto.CostGraphDef.AggregatedCostOrBuilder>( + cost_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + cost_ = null; + } + return costBuilder_; + } + @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:tensorflow.CostGraphDef) + } + + // @@protoc_insertion_point(class_scope:tensorflow.CostGraphDef) + private static final org.tensorflow.proto.CostGraphDef DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.CostGraphDef(); + } + + public static org.tensorflow.proto.CostGraphDef getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CostGraphDef 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 org.tensorflow.proto.CostGraphDef getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CostGraphDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CostGraphDefOrBuilder.java new file mode 100644 index 00000000000..cbb8c3fdd3f --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CostGraphDefOrBuilder.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/cost_graph.proto + +package org.tensorflow.proto; + +public interface CostGraphDefOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.CostGraphDef) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + java.util.List + getNodeList(); + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + org.tensorflow.proto.CostGraphDef.Node getNode(int index); + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + int getNodeCount(); + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + java.util.List + getNodeOrBuilderList(); + /** + * repeated .tensorflow.CostGraphDef.Node node = 1; + */ + org.tensorflow.proto.CostGraphDef.NodeOrBuilder getNodeOrBuilder( + int index); + + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + java.util.List + getCostList(); + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + org.tensorflow.proto.CostGraphDef.AggregatedCost getCost(int index); + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + int getCostCount(); + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + java.util.List + getCostOrBuilderList(); + /** + * repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2; + */ + org.tensorflow.proto.CostGraphDef.AggregatedCostOrBuilder getCostOrBuilder( + int index); +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CostGraphProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CostGraphProtos.java similarity index 92% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CostGraphProtos.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CostGraphProtos.java index b115a24c302..917ad9e0f2a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/CostGraphProtos.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/CostGraphProtos.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/cost_graph.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public final class CostGraphProtos { private CostGraphProtos() {} @@ -72,17 +72,17 @@ public static void registerAllExtensions( "ut_port\030\002 \001(\003\022+\n\005shape\030\003 \001(\0132\034.tensorflo" + "w.TensorShapeProto\022#\n\005dtype\030\004 \001(\0162\024.tens" + "orflow.DataType\0321\n\016AggregatedCost\022\014\n\004cos" + - "t\030\001 \001(\002\022\021\n\tdimension\030\002 \001(\tB\211\001\n\036org.tenso" + - "rflow.proto.frameworkB\017CostGraphProtosP\001" + - "ZQgithub.com/tensorflow/tensorflow/tenso" + - "rflow/go/core/framework/cost_graph_go_pr" + - "oto\370\001\001b\006proto3" + "t\030\001 \001(\002\022\021\n\tdimension\030\002 \001(\tB\177\n\024org.tensor" + + "flow.protoB\017CostGraphProtosP\001ZQgithub.co" + + "m/tensorflow/tensorflow/tensorflow/go/co" + + "re/framework/cost_graph_go_proto\370\001\001b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(), - org.tensorflow.proto.framework.TypesProtos.getDescriptor(), + org.tensorflow.proto.TensorShapeProtos.getDescriptor(), + org.tensorflow.proto.TypesProtos.getDescriptor(), }); internal_static_tensorflow_CostGraphDef_descriptor = getDescriptor().getMessageTypes().get(0); @@ -114,8 +114,8 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_CostGraphDef_AggregatedCost_descriptor, new java.lang.String[] { "Cost", "Dimension", }); - org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(); - org.tensorflow.proto.framework.TypesProtos.getDescriptor(); + org.tensorflow.proto.TensorShapeProtos.getDescriptor(); + org.tensorflow.proto.TypesProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DataClass.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DataClass.java similarity index 89% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DataClass.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DataClass.java index eb7123c795d..206e3647457 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DataClass.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DataClass.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/summary.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; /** * Protobuf enum {@code tensorflow.DataClass} @@ -98,6 +98,8 @@ public final int getNumber() { } /** + * @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 @@ -105,6 +107,10 @@ public static DataClass 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 DataClass forNumber(int value) { switch (value) { case 0: return DATA_CLASS_UNKNOWN; @@ -129,6 +135,10 @@ public DataClass findValueByNumber(int 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 @@ -137,7 +147,7 @@ public DataClass findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return org.tensorflow.proto.framework.SummaryProtos.getDescriptor().getEnumTypes().get(0); + return org.tensorflow.proto.SummaryProtos.getDescriptor().getEnumTypes().get(0); } private static final DataClass[] VALUES = values(); diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DataType.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DataType.java new file mode 100644 index 00000000000..507dfb52335 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DataType.java @@ -0,0 +1,679 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/types.proto + +package org.tensorflow.proto; + +/** + *
+ * (== suppress_warning documentation-presence ==)
+ * LINT.IfChange
+ * 
+ * + * Protobuf enum {@code tensorflow.DataType} + */ +public enum DataType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * Not a legal value for DataType.  Used to indicate a DataType field
+   * has not been set.
+   * 
+ * + * DT_INVALID = 0; + */ + DT_INVALID(0), + /** + *
+   * Data types that all computation devices are expected to be
+   * capable to support.
+   * 
+ * + * DT_FLOAT = 1; + */ + DT_FLOAT(1), + /** + * DT_DOUBLE = 2; + */ + DT_DOUBLE(2), + /** + * DT_INT32 = 3; + */ + DT_INT32(3), + /** + * DT_UINT8 = 4; + */ + DT_UINT8(4), + /** + * DT_INT16 = 5; + */ + DT_INT16(5), + /** + * DT_INT8 = 6; + */ + DT_INT8(6), + /** + * DT_STRING = 7; + */ + DT_STRING(7), + /** + *
+   * Single-precision complex
+   * 
+ * + * DT_COMPLEX64 = 8; + */ + DT_COMPLEX64(8), + /** + * DT_INT64 = 9; + */ + DT_INT64(9), + /** + * DT_BOOL = 10; + */ + DT_BOOL(10), + /** + *
+   * Quantized int8
+   * 
+ * + * DT_QINT8 = 11; + */ + DT_QINT8(11), + /** + *
+   * Quantized uint8
+   * 
+ * + * DT_QUINT8 = 12; + */ + DT_QUINT8(12), + /** + *
+   * Quantized int32
+   * 
+ * + * DT_QINT32 = 13; + */ + DT_QINT32(13), + /** + *
+   * Float32 truncated to 16 bits.
+   * 
+ * + * DT_BFLOAT16 = 14; + */ + DT_BFLOAT16(14), + /** + *
+   * Quantized int16
+   * 
+ * + * DT_QINT16 = 15; + */ + DT_QINT16(15), + /** + *
+   * Quantized uint16
+   * 
+ * + * DT_QUINT16 = 16; + */ + DT_QUINT16(16), + /** + * DT_UINT16 = 17; + */ + DT_UINT16(17), + /** + *
+   * Double-precision complex
+   * 
+ * + * DT_COMPLEX128 = 18; + */ + DT_COMPLEX128(18), + /** + * DT_HALF = 19; + */ + DT_HALF(19), + /** + * DT_RESOURCE = 20; + */ + DT_RESOURCE(20), + /** + *
+   * Arbitrary C++ data types
+   * 
+ * + * DT_VARIANT = 21; + */ + DT_VARIANT(21), + /** + * DT_UINT32 = 22; + */ + DT_UINT32(22), + /** + * DT_UINT64 = 23; + */ + DT_UINT64(23), + /** + *
+   * 5 exponent bits, 2 mantissa bits.
+   * 
+ * + * DT_FLOAT8_E5M2 = 24; + */ + DT_FLOAT8_E5M2(24), + /** + *
+   * 4 exponent bits, 3 mantissa bits, finite-only, with
+   * 
+ * + * DT_FLOAT8_E4M3FN = 25; + */ + DT_FLOAT8_E4M3FN(25), + /** + *
+   * Do not use!  These are only for TF1's obsolete reference Variables.
+   * Every enum above should have a corresponding value below (verified by
+   * types_test).
+   * 
+ * + * DT_FLOAT_REF = 101; + */ + DT_FLOAT_REF(101), + /** + * DT_DOUBLE_REF = 102; + */ + DT_DOUBLE_REF(102), + /** + * DT_INT32_REF = 103; + */ + DT_INT32_REF(103), + /** + * DT_UINT8_REF = 104; + */ + DT_UINT8_REF(104), + /** + * DT_INT16_REF = 105; + */ + DT_INT16_REF(105), + /** + * DT_INT8_REF = 106; + */ + DT_INT8_REF(106), + /** + * DT_STRING_REF = 107; + */ + DT_STRING_REF(107), + /** + * DT_COMPLEX64_REF = 108; + */ + DT_COMPLEX64_REF(108), + /** + * DT_INT64_REF = 109; + */ + DT_INT64_REF(109), + /** + * DT_BOOL_REF = 110; + */ + DT_BOOL_REF(110), + /** + * DT_QINT8_REF = 111; + */ + DT_QINT8_REF(111), + /** + * DT_QUINT8_REF = 112; + */ + DT_QUINT8_REF(112), + /** + * DT_QINT32_REF = 113; + */ + DT_QINT32_REF(113), + /** + * DT_BFLOAT16_REF = 114; + */ + DT_BFLOAT16_REF(114), + /** + * DT_QINT16_REF = 115; + */ + DT_QINT16_REF(115), + /** + * DT_QUINT16_REF = 116; + */ + DT_QUINT16_REF(116), + /** + * DT_UINT16_REF = 117; + */ + DT_UINT16_REF(117), + /** + * DT_COMPLEX128_REF = 118; + */ + DT_COMPLEX128_REF(118), + /** + * DT_HALF_REF = 119; + */ + DT_HALF_REF(119), + /** + * DT_RESOURCE_REF = 120; + */ + DT_RESOURCE_REF(120), + /** + * DT_VARIANT_REF = 121; + */ + DT_VARIANT_REF(121), + /** + * DT_UINT32_REF = 122; + */ + DT_UINT32_REF(122), + /** + * DT_UINT64_REF = 123; + */ + DT_UINT64_REF(123), + /** + * DT_FLOAT8_E5M2_REF = 124; + */ + DT_FLOAT8_E5M2_REF(124), + /** + * DT_FLOAT8_E4M3FN_REF = 125; + */ + DT_FLOAT8_E4M3FN_REF(125), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Not a legal value for DataType.  Used to indicate a DataType field
+   * has not been set.
+   * 
+ * + * DT_INVALID = 0; + */ + public static final int DT_INVALID_VALUE = 0; + /** + *
+   * Data types that all computation devices are expected to be
+   * capable to support.
+   * 
+ * + * DT_FLOAT = 1; + */ + public static final int DT_FLOAT_VALUE = 1; + /** + * DT_DOUBLE = 2; + */ + public static final int DT_DOUBLE_VALUE = 2; + /** + * DT_INT32 = 3; + */ + public static final int DT_INT32_VALUE = 3; + /** + * DT_UINT8 = 4; + */ + public static final int DT_UINT8_VALUE = 4; + /** + * DT_INT16 = 5; + */ + public static final int DT_INT16_VALUE = 5; + /** + * DT_INT8 = 6; + */ + public static final int DT_INT8_VALUE = 6; + /** + * DT_STRING = 7; + */ + public static final int DT_STRING_VALUE = 7; + /** + *
+   * Single-precision complex
+   * 
+ * + * DT_COMPLEX64 = 8; + */ + public static final int DT_COMPLEX64_VALUE = 8; + /** + * DT_INT64 = 9; + */ + public static final int DT_INT64_VALUE = 9; + /** + * DT_BOOL = 10; + */ + public static final int DT_BOOL_VALUE = 10; + /** + *
+   * Quantized int8
+   * 
+ * + * DT_QINT8 = 11; + */ + public static final int DT_QINT8_VALUE = 11; + /** + *
+   * Quantized uint8
+   * 
+ * + * DT_QUINT8 = 12; + */ + public static final int DT_QUINT8_VALUE = 12; + /** + *
+   * Quantized int32
+   * 
+ * + * DT_QINT32 = 13; + */ + public static final int DT_QINT32_VALUE = 13; + /** + *
+   * Float32 truncated to 16 bits.
+   * 
+ * + * DT_BFLOAT16 = 14; + */ + public static final int DT_BFLOAT16_VALUE = 14; + /** + *
+   * Quantized int16
+   * 
+ * + * DT_QINT16 = 15; + */ + public static final int DT_QINT16_VALUE = 15; + /** + *
+   * Quantized uint16
+   * 
+ * + * DT_QUINT16 = 16; + */ + public static final int DT_QUINT16_VALUE = 16; + /** + * DT_UINT16 = 17; + */ + public static final int DT_UINT16_VALUE = 17; + /** + *
+   * Double-precision complex
+   * 
+ * + * DT_COMPLEX128 = 18; + */ + public static final int DT_COMPLEX128_VALUE = 18; + /** + * DT_HALF = 19; + */ + public static final int DT_HALF_VALUE = 19; + /** + * DT_RESOURCE = 20; + */ + public static final int DT_RESOURCE_VALUE = 20; + /** + *
+   * Arbitrary C++ data types
+   * 
+ * + * DT_VARIANT = 21; + */ + public static final int DT_VARIANT_VALUE = 21; + /** + * DT_UINT32 = 22; + */ + public static final int DT_UINT32_VALUE = 22; + /** + * DT_UINT64 = 23; + */ + public static final int DT_UINT64_VALUE = 23; + /** + *
+   * 5 exponent bits, 2 mantissa bits.
+   * 
+ * + * DT_FLOAT8_E5M2 = 24; + */ + public static final int DT_FLOAT8_E5M2_VALUE = 24; + /** + *
+   * 4 exponent bits, 3 mantissa bits, finite-only, with
+   * 
+ * + * DT_FLOAT8_E4M3FN = 25; + */ + public static final int DT_FLOAT8_E4M3FN_VALUE = 25; + /** + *
+   * Do not use!  These are only for TF1's obsolete reference Variables.
+   * Every enum above should have a corresponding value below (verified by
+   * types_test).
+   * 
+ * + * DT_FLOAT_REF = 101; + */ + public static final int DT_FLOAT_REF_VALUE = 101; + /** + * DT_DOUBLE_REF = 102; + */ + public static final int DT_DOUBLE_REF_VALUE = 102; + /** + * DT_INT32_REF = 103; + */ + public static final int DT_INT32_REF_VALUE = 103; + /** + * DT_UINT8_REF = 104; + */ + public static final int DT_UINT8_REF_VALUE = 104; + /** + * DT_INT16_REF = 105; + */ + public static final int DT_INT16_REF_VALUE = 105; + /** + * DT_INT8_REF = 106; + */ + public static final int DT_INT8_REF_VALUE = 106; + /** + * DT_STRING_REF = 107; + */ + public static final int DT_STRING_REF_VALUE = 107; + /** + * DT_COMPLEX64_REF = 108; + */ + public static final int DT_COMPLEX64_REF_VALUE = 108; + /** + * DT_INT64_REF = 109; + */ + public static final int DT_INT64_REF_VALUE = 109; + /** + * DT_BOOL_REF = 110; + */ + public static final int DT_BOOL_REF_VALUE = 110; + /** + * DT_QINT8_REF = 111; + */ + public static final int DT_QINT8_REF_VALUE = 111; + /** + * DT_QUINT8_REF = 112; + */ + public static final int DT_QUINT8_REF_VALUE = 112; + /** + * DT_QINT32_REF = 113; + */ + public static final int DT_QINT32_REF_VALUE = 113; + /** + * DT_BFLOAT16_REF = 114; + */ + public static final int DT_BFLOAT16_REF_VALUE = 114; + /** + * DT_QINT16_REF = 115; + */ + public static final int DT_QINT16_REF_VALUE = 115; + /** + * DT_QUINT16_REF = 116; + */ + public static final int DT_QUINT16_REF_VALUE = 116; + /** + * DT_UINT16_REF = 117; + */ + public static final int DT_UINT16_REF_VALUE = 117; + /** + * DT_COMPLEX128_REF = 118; + */ + public static final int DT_COMPLEX128_REF_VALUE = 118; + /** + * DT_HALF_REF = 119; + */ + public static final int DT_HALF_REF_VALUE = 119; + /** + * DT_RESOURCE_REF = 120; + */ + public static final int DT_RESOURCE_REF_VALUE = 120; + /** + * DT_VARIANT_REF = 121; + */ + public static final int DT_VARIANT_REF_VALUE = 121; + /** + * DT_UINT32_REF = 122; + */ + public static final int DT_UINT32_REF_VALUE = 122; + /** + * DT_UINT64_REF = 123; + */ + public static final int DT_UINT64_REF_VALUE = 123; + /** + * DT_FLOAT8_E5M2_REF = 124; + */ + public static final int DT_FLOAT8_E5M2_REF_VALUE = 124; + /** + * DT_FLOAT8_E4M3FN_REF = 125; + */ + public static final int DT_FLOAT8_E4M3FN_REF_VALUE = 125; + + + 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 DT_INVALID; + case 1: return DT_FLOAT; + case 2: return DT_DOUBLE; + case 3: return DT_INT32; + case 4: return DT_UINT8; + case 5: return DT_INT16; + case 6: return DT_INT8; + case 7: return DT_STRING; + case 8: return DT_COMPLEX64; + case 9: return DT_INT64; + case 10: return DT_BOOL; + case 11: return DT_QINT8; + case 12: return DT_QUINT8; + case 13: return DT_QINT32; + case 14: return DT_BFLOAT16; + case 15: return DT_QINT16; + case 16: return DT_QUINT16; + case 17: return DT_UINT16; + case 18: return DT_COMPLEX128; + case 19: return DT_HALF; + case 20: return DT_RESOURCE; + case 21: return DT_VARIANT; + case 22: return DT_UINT32; + case 23: return DT_UINT64; + case 24: return DT_FLOAT8_E5M2; + case 25: return DT_FLOAT8_E4M3FN; + case 101: return DT_FLOAT_REF; + case 102: return DT_DOUBLE_REF; + case 103: return DT_INT32_REF; + case 104: return DT_UINT8_REF; + case 105: return DT_INT16_REF; + case 106: return DT_INT8_REF; + case 107: return DT_STRING_REF; + case 108: return DT_COMPLEX64_REF; + case 109: return DT_INT64_REF; + case 110: return DT_BOOL_REF; + case 111: return DT_QINT8_REF; + case 112: return DT_QUINT8_REF; + case 113: return DT_QINT32_REF; + case 114: return DT_BFLOAT16_REF; + case 115: return DT_QINT16_REF; + case 116: return DT_QUINT16_REF; + case 117: return DT_UINT16_REF; + case 118: return DT_COMPLEX128_REF; + case 119: return DT_HALF_REF; + case 120: return DT_RESOURCE_REF; + case 121: return DT_VARIANT_REF; + case 122: return DT_UINT32_REF; + case 123: return DT_UINT64_REF; + case 124: return DT_FLOAT8_E5M2_REF; + case 125: return DT_FLOAT8_E4M3FN_REF; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + DataType> 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 org.tensorflow.proto.TypesProtos.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:tensorflow.DataType) +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugEvent.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugEvent.java new file mode 100644 index 00000000000..3abf7ccad39 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugEvent.java @@ -0,0 +1,2974 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/debug_event.proto + +package org.tensorflow.proto; + +/** + *
+ * An Event related to the debugging of a TensorFlow program.
+ * 
+ * + * Protobuf type {@code tensorflow.DebugEvent} + */ +public final class DebugEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.DebugEvent) + DebugEventOrBuilder { +private static final long serialVersionUID = 0L; + // Use DebugEvent.newBuilder() to construct. + private DebugEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DebugEvent() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DebugEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_DebugEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_DebugEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.DebugEvent.class, org.tensorflow.proto.DebugEvent.Builder.class); + } + + private int whatCase_ = 0; + private java.lang.Object what_; + public enum WhatCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DEBUG_METADATA(3), + SOURCE_FILE(4), + STACK_FRAME_WITH_ID(6), + GRAPH_OP_CREATION(7), + DEBUGGED_GRAPH(8), + EXECUTION(9), + GRAPH_EXECUTION_TRACE(10), + GRAPH_ID(11), + DEBUGGED_DEVICE(12), + WHAT_NOT_SET(0); + private final int value; + private WhatCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static WhatCase valueOf(int value) { + return forNumber(value); + } + + public static WhatCase forNumber(int value) { + switch (value) { + case 3: return DEBUG_METADATA; + case 4: return SOURCE_FILE; + case 6: return STACK_FRAME_WITH_ID; + case 7: return GRAPH_OP_CREATION; + case 8: return DEBUGGED_GRAPH; + case 9: return EXECUTION; + case 10: return GRAPH_EXECUTION_TRACE; + case 11: return GRAPH_ID; + case 12: return DEBUGGED_DEVICE; + case 0: return WHAT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public WhatCase + getWhatCase() { + return WhatCase.forNumber( + whatCase_); + } + + public static final int WALL_TIME_FIELD_NUMBER = 1; + private double wallTime_; + /** + *
+   * Timestamp in seconds (with microsecond precision).
+   * 
+ * + * double wall_time = 1; + * @return The wallTime. + */ + @java.lang.Override + public double getWallTime() { + return wallTime_; + } + + public static final int STEP_FIELD_NUMBER = 2; + private long step_; + /** + *
+   * Step of training (if available).
+   * 
+ * + * int64 step = 2; + * @return The step. + */ + @java.lang.Override + public long getStep() { + return step_; + } + + public static final int DEBUG_METADATA_FIELD_NUMBER = 3; + /** + *
+   * Metadata related to this debugging data.
+   * 
+ * + * .tensorflow.DebugMetadata debug_metadata = 3; + * @return Whether the debugMetadata field is set. + */ + @java.lang.Override + public boolean hasDebugMetadata() { + return whatCase_ == 3; + } + /** + *
+   * Metadata related to this debugging data.
+   * 
+ * + * .tensorflow.DebugMetadata debug_metadata = 3; + * @return The debugMetadata. + */ + @java.lang.Override + public org.tensorflow.proto.DebugMetadata getDebugMetadata() { + if (whatCase_ == 3) { + return (org.tensorflow.proto.DebugMetadata) what_; + } + return org.tensorflow.proto.DebugMetadata.getDefaultInstance(); + } + /** + *
+   * Metadata related to this debugging data.
+   * 
+ * + * .tensorflow.DebugMetadata debug_metadata = 3; + */ + @java.lang.Override + public org.tensorflow.proto.DebugMetadataOrBuilder getDebugMetadataOrBuilder() { + if (whatCase_ == 3) { + return (org.tensorflow.proto.DebugMetadata) what_; + } + return org.tensorflow.proto.DebugMetadata.getDefaultInstance(); + } + + public static final int SOURCE_FILE_FIELD_NUMBER = 4; + /** + *
+   * The content of a source file.
+   * 
+ * + * .tensorflow.SourceFile source_file = 4; + * @return Whether the sourceFile field is set. + */ + @java.lang.Override + public boolean hasSourceFile() { + return whatCase_ == 4; + } + /** + *
+   * The content of a source file.
+   * 
+ * + * .tensorflow.SourceFile source_file = 4; + * @return The sourceFile. + */ + @java.lang.Override + public org.tensorflow.proto.SourceFile getSourceFile() { + if (whatCase_ == 4) { + return (org.tensorflow.proto.SourceFile) what_; + } + return org.tensorflow.proto.SourceFile.getDefaultInstance(); + } + /** + *
+   * The content of a source file.
+   * 
+ * + * .tensorflow.SourceFile source_file = 4; + */ + @java.lang.Override + public org.tensorflow.proto.SourceFileOrBuilder getSourceFileOrBuilder() { + if (whatCase_ == 4) { + return (org.tensorflow.proto.SourceFile) what_; + } + return org.tensorflow.proto.SourceFile.getDefaultInstance(); + } + + public static final int STACK_FRAME_WITH_ID_FIELD_NUMBER = 6; + /** + *
+   * A stack frame (filename, line number and column number, function name and
+   * code string) with ID.
+   * 
+ * + * .tensorflow.StackFrameWithId stack_frame_with_id = 6; + * @return Whether the stackFrameWithId field is set. + */ + @java.lang.Override + public boolean hasStackFrameWithId() { + return whatCase_ == 6; + } + /** + *
+   * A stack frame (filename, line number and column number, function name and
+   * code string) with ID.
+   * 
+ * + * .tensorflow.StackFrameWithId stack_frame_with_id = 6; + * @return The stackFrameWithId. + */ + @java.lang.Override + public org.tensorflow.proto.StackFrameWithId getStackFrameWithId() { + if (whatCase_ == 6) { + return (org.tensorflow.proto.StackFrameWithId) what_; + } + return org.tensorflow.proto.StackFrameWithId.getDefaultInstance(); + } + /** + *
+   * A stack frame (filename, line number and column number, function name and
+   * code string) with ID.
+   * 
+ * + * .tensorflow.StackFrameWithId stack_frame_with_id = 6; + */ + @java.lang.Override + public org.tensorflow.proto.StackFrameWithIdOrBuilder getStackFrameWithIdOrBuilder() { + if (whatCase_ == 6) { + return (org.tensorflow.proto.StackFrameWithId) what_; + } + return org.tensorflow.proto.StackFrameWithId.getDefaultInstance(); + } + + public static final int GRAPH_OP_CREATION_FIELD_NUMBER = 7; + /** + *
+   * The creation of an op within a graph (e.g., a FuncGraph compiled from
+   * a Python function).
+   * 
+ * + * .tensorflow.GraphOpCreation graph_op_creation = 7; + * @return Whether the graphOpCreation field is set. + */ + @java.lang.Override + public boolean hasGraphOpCreation() { + return whatCase_ == 7; + } + /** + *
+   * The creation of an op within a graph (e.g., a FuncGraph compiled from
+   * a Python function).
+   * 
+ * + * .tensorflow.GraphOpCreation graph_op_creation = 7; + * @return The graphOpCreation. + */ + @java.lang.Override + public org.tensorflow.proto.GraphOpCreation getGraphOpCreation() { + if (whatCase_ == 7) { + return (org.tensorflow.proto.GraphOpCreation) what_; + } + return org.tensorflow.proto.GraphOpCreation.getDefaultInstance(); + } + /** + *
+   * The creation of an op within a graph (e.g., a FuncGraph compiled from
+   * a Python function).
+   * 
+ * + * .tensorflow.GraphOpCreation graph_op_creation = 7; + */ + @java.lang.Override + public org.tensorflow.proto.GraphOpCreationOrBuilder getGraphOpCreationOrBuilder() { + if (whatCase_ == 7) { + return (org.tensorflow.proto.GraphOpCreation) what_; + } + return org.tensorflow.proto.GraphOpCreation.getDefaultInstance(); + } + + public static final int DEBUGGED_GRAPH_FIELD_NUMBER = 8; + /** + *
+   * Information about a debugged graph.
+   * 
+ * + * .tensorflow.DebuggedGraph debugged_graph = 8; + * @return Whether the debuggedGraph field is set. + */ + @java.lang.Override + public boolean hasDebuggedGraph() { + return whatCase_ == 8; + } + /** + *
+   * Information about a debugged graph.
+   * 
+ * + * .tensorflow.DebuggedGraph debugged_graph = 8; + * @return The debuggedGraph. + */ + @java.lang.Override + public org.tensorflow.proto.DebuggedGraph getDebuggedGraph() { + if (whatCase_ == 8) { + return (org.tensorflow.proto.DebuggedGraph) what_; + } + return org.tensorflow.proto.DebuggedGraph.getDefaultInstance(); + } + /** + *
+   * Information about a debugged graph.
+   * 
+ * + * .tensorflow.DebuggedGraph debugged_graph = 8; + */ + @java.lang.Override + public org.tensorflow.proto.DebuggedGraphOrBuilder getDebuggedGraphOrBuilder() { + if (whatCase_ == 8) { + return (org.tensorflow.proto.DebuggedGraph) what_; + } + return org.tensorflow.proto.DebuggedGraph.getDefaultInstance(); + } + + public static final int EXECUTION_FIELD_NUMBER = 9; + /** + *
+   * Execution of an op or a Graph (e.g., a tf.function).
+   * 
+ * + * .tensorflow.Execution execution = 9; + * @return Whether the execution field is set. + */ + @java.lang.Override + public boolean hasExecution() { + return whatCase_ == 9; + } + /** + *
+   * Execution of an op or a Graph (e.g., a tf.function).
+   * 
+ * + * .tensorflow.Execution execution = 9; + * @return The execution. + */ + @java.lang.Override + public org.tensorflow.proto.Execution getExecution() { + if (whatCase_ == 9) { + return (org.tensorflow.proto.Execution) what_; + } + return org.tensorflow.proto.Execution.getDefaultInstance(); + } + /** + *
+   * Execution of an op or a Graph (e.g., a tf.function).
+   * 
+ * + * .tensorflow.Execution execution = 9; + */ + @java.lang.Override + public org.tensorflow.proto.ExecutionOrBuilder getExecutionOrBuilder() { + if (whatCase_ == 9) { + return (org.tensorflow.proto.Execution) what_; + } + return org.tensorflow.proto.Execution.getDefaultInstance(); + } + + public static final int GRAPH_EXECUTION_TRACE_FIELD_NUMBER = 10; + /** + *
+   * A graph execution trace: Contains information about the intermediate
+   * tensors computed during the graph execution.
+   * 
+ * + * .tensorflow.GraphExecutionTrace graph_execution_trace = 10; + * @return Whether the graphExecutionTrace field is set. + */ + @java.lang.Override + public boolean hasGraphExecutionTrace() { + return whatCase_ == 10; + } + /** + *
+   * A graph execution trace: Contains information about the intermediate
+   * tensors computed during the graph execution.
+   * 
+ * + * .tensorflow.GraphExecutionTrace graph_execution_trace = 10; + * @return The graphExecutionTrace. + */ + @java.lang.Override + public org.tensorflow.proto.GraphExecutionTrace getGraphExecutionTrace() { + if (whatCase_ == 10) { + return (org.tensorflow.proto.GraphExecutionTrace) what_; + } + return org.tensorflow.proto.GraphExecutionTrace.getDefaultInstance(); + } + /** + *
+   * A graph execution trace: Contains information about the intermediate
+   * tensors computed during the graph execution.
+   * 
+ * + * .tensorflow.GraphExecutionTrace graph_execution_trace = 10; + */ + @java.lang.Override + public org.tensorflow.proto.GraphExecutionTraceOrBuilder getGraphExecutionTraceOrBuilder() { + if (whatCase_ == 10) { + return (org.tensorflow.proto.GraphExecutionTrace) what_; + } + return org.tensorflow.proto.GraphExecutionTrace.getDefaultInstance(); + } + + public static final int GRAPH_ID_FIELD_NUMBER = 11; + /** + *
+   * The ID of the graph (i.e., FuncGraph) executed here: applicable only
+   * to the execution of a FuncGraph.
+   * 
+ * + * string graph_id = 11; + * @return Whether the graphId field is set. + */ + public boolean hasGraphId() { + return whatCase_ == 11; + } + /** + *
+   * The ID of the graph (i.e., FuncGraph) executed here: applicable only
+   * to the execution of a FuncGraph.
+   * 
+ * + * string graph_id = 11; + * @return The graphId. + */ + public java.lang.String getGraphId() { + java.lang.Object ref = ""; + if (whatCase_ == 11) { + ref = what_; + } + 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(); + if (whatCase_ == 11) { + what_ = s; + } + return s; + } + } + /** + *
+   * The ID of the graph (i.e., FuncGraph) executed here: applicable only
+   * to the execution of a FuncGraph.
+   * 
+ * + * string graph_id = 11; + * @return The bytes for graphId. + */ + public com.google.protobuf.ByteString + getGraphIdBytes() { + java.lang.Object ref = ""; + if (whatCase_ == 11) { + ref = what_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (whatCase_ == 11) { + what_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEBUGGED_DEVICE_FIELD_NUMBER = 12; + /** + *
+   * A device on which debugger-instrumented ops and/or tensors reside.
+   * 
+ * + * .tensorflow.DebuggedDevice debugged_device = 12; + * @return Whether the debuggedDevice field is set. + */ + @java.lang.Override + public boolean hasDebuggedDevice() { + return whatCase_ == 12; + } + /** + *
+   * A device on which debugger-instrumented ops and/or tensors reside.
+   * 
+ * + * .tensorflow.DebuggedDevice debugged_device = 12; + * @return The debuggedDevice. + */ + @java.lang.Override + public org.tensorflow.proto.DebuggedDevice getDebuggedDevice() { + if (whatCase_ == 12) { + return (org.tensorflow.proto.DebuggedDevice) what_; + } + return org.tensorflow.proto.DebuggedDevice.getDefaultInstance(); + } + /** + *
+   * A device on which debugger-instrumented ops and/or tensors reside.
+   * 
+ * + * .tensorflow.DebuggedDevice debugged_device = 12; + */ + @java.lang.Override + public org.tensorflow.proto.DebuggedDeviceOrBuilder getDebuggedDeviceOrBuilder() { + if (whatCase_ == 12) { + return (org.tensorflow.proto.DebuggedDevice) what_; + } + return org.tensorflow.proto.DebuggedDevice.getDefaultInstance(); + } + + 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 (java.lang.Double.doubleToRawLongBits(wallTime_) != 0) { + output.writeDouble(1, wallTime_); + } + if (step_ != 0L) { + output.writeInt64(2, step_); + } + if (whatCase_ == 3) { + output.writeMessage(3, (org.tensorflow.proto.DebugMetadata) what_); + } + if (whatCase_ == 4) { + output.writeMessage(4, (org.tensorflow.proto.SourceFile) what_); + } + if (whatCase_ == 6) { + output.writeMessage(6, (org.tensorflow.proto.StackFrameWithId) what_); + } + if (whatCase_ == 7) { + output.writeMessage(7, (org.tensorflow.proto.GraphOpCreation) what_); + } + if (whatCase_ == 8) { + output.writeMessage(8, (org.tensorflow.proto.DebuggedGraph) what_); + } + if (whatCase_ == 9) { + output.writeMessage(9, (org.tensorflow.proto.Execution) what_); + } + if (whatCase_ == 10) { + output.writeMessage(10, (org.tensorflow.proto.GraphExecutionTrace) what_); + } + if (whatCase_ == 11) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, what_); + } + if (whatCase_ == 12) { + output.writeMessage(12, (org.tensorflow.proto.DebuggedDevice) what_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Double.doubleToRawLongBits(wallTime_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, wallTime_); + } + if (step_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, step_); + } + if (whatCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (org.tensorflow.proto.DebugMetadata) what_); + } + if (whatCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (org.tensorflow.proto.SourceFile) what_); + } + if (whatCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (org.tensorflow.proto.StackFrameWithId) what_); + } + if (whatCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (org.tensorflow.proto.GraphOpCreation) what_); + } + if (whatCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (org.tensorflow.proto.DebuggedGraph) what_); + } + if (whatCase_ == 9) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (org.tensorflow.proto.Execution) what_); + } + if (whatCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (org.tensorflow.proto.GraphExecutionTrace) what_); + } + if (whatCase_ == 11) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, what_); + } + if (whatCase_ == 12) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, (org.tensorflow.proto.DebuggedDevice) what_); + } + 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 org.tensorflow.proto.DebugEvent)) { + return super.equals(obj); + } + org.tensorflow.proto.DebugEvent other = (org.tensorflow.proto.DebugEvent) obj; + + if (java.lang.Double.doubleToLongBits(getWallTime()) + != java.lang.Double.doubleToLongBits( + other.getWallTime())) return false; + if (getStep() + != other.getStep()) return false; + if (!getWhatCase().equals(other.getWhatCase())) return false; + switch (whatCase_) { + case 3: + if (!getDebugMetadata() + .equals(other.getDebugMetadata())) return false; + break; + case 4: + if (!getSourceFile() + .equals(other.getSourceFile())) return false; + break; + case 6: + if (!getStackFrameWithId() + .equals(other.getStackFrameWithId())) return false; + break; + case 7: + if (!getGraphOpCreation() + .equals(other.getGraphOpCreation())) return false; + break; + case 8: + if (!getDebuggedGraph() + .equals(other.getDebuggedGraph())) return false; + break; + case 9: + if (!getExecution() + .equals(other.getExecution())) return false; + break; + case 10: + if (!getGraphExecutionTrace() + .equals(other.getGraphExecutionTrace())) return false; + break; + case 11: + if (!getGraphId() + .equals(other.getGraphId())) return false; + break; + case 12: + if (!getDebuggedDevice() + .equals(other.getDebuggedDevice())) return false; + break; + case 0: + default: + } + 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) + WALL_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getWallTime())); + hash = (37 * hash) + STEP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStep()); + switch (whatCase_) { + case 3: + hash = (37 * hash) + DEBUG_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getDebugMetadata().hashCode(); + break; + case 4: + hash = (37 * hash) + SOURCE_FILE_FIELD_NUMBER; + hash = (53 * hash) + getSourceFile().hashCode(); + break; + case 6: + hash = (37 * hash) + STACK_FRAME_WITH_ID_FIELD_NUMBER; + hash = (53 * hash) + getStackFrameWithId().hashCode(); + break; + case 7: + hash = (37 * hash) + GRAPH_OP_CREATION_FIELD_NUMBER; + hash = (53 * hash) + getGraphOpCreation().hashCode(); + break; + case 8: + hash = (37 * hash) + DEBUGGED_GRAPH_FIELD_NUMBER; + hash = (53 * hash) + getDebuggedGraph().hashCode(); + break; + case 9: + hash = (37 * hash) + EXECUTION_FIELD_NUMBER; + hash = (53 * hash) + getExecution().hashCode(); + break; + case 10: + hash = (37 * hash) + GRAPH_EXECUTION_TRACE_FIELD_NUMBER; + hash = (53 * hash) + getGraphExecutionTrace().hashCode(); + break; + case 11: + hash = (37 * hash) + GRAPH_ID_FIELD_NUMBER; + hash = (53 * hash) + getGraphId().hashCode(); + break; + case 12: + hash = (37 * hash) + DEBUGGED_DEVICE_FIELD_NUMBER; + hash = (53 * hash) + getDebuggedDevice().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.DebugEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.DebugEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.DebugEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.DebugEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.DebugEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.DebugEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.DebugEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.DebugEvent 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 org.tensorflow.proto.DebugEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.DebugEvent 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 org.tensorflow.proto.DebugEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.DebugEvent 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(org.tensorflow.proto.DebugEvent 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; + } + /** + *
+   * An Event related to the debugging of a TensorFlow program.
+   * 
+ * + * Protobuf type {@code tensorflow.DebugEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.DebugEvent) + org.tensorflow.proto.DebugEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_DebugEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_DebugEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.DebugEvent.class, org.tensorflow.proto.DebugEvent.Builder.class); + } + + // Construct using org.tensorflow.proto.DebugEvent.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + wallTime_ = 0D; + + step_ = 0L; + + if (debugMetadataBuilder_ != null) { + debugMetadataBuilder_.clear(); + } + if (sourceFileBuilder_ != null) { + sourceFileBuilder_.clear(); + } + if (stackFrameWithIdBuilder_ != null) { + stackFrameWithIdBuilder_.clear(); + } + if (graphOpCreationBuilder_ != null) { + graphOpCreationBuilder_.clear(); + } + if (debuggedGraphBuilder_ != null) { + debuggedGraphBuilder_.clear(); + } + if (executionBuilder_ != null) { + executionBuilder_.clear(); + } + if (graphExecutionTraceBuilder_ != null) { + graphExecutionTraceBuilder_.clear(); + } + if (debuggedDeviceBuilder_ != null) { + debuggedDeviceBuilder_.clear(); + } + whatCase_ = 0; + what_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_DebugEvent_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.DebugEvent getDefaultInstanceForType() { + return org.tensorflow.proto.DebugEvent.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.DebugEvent build() { + org.tensorflow.proto.DebugEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.DebugEvent buildPartial() { + org.tensorflow.proto.DebugEvent result = new org.tensorflow.proto.DebugEvent(this); + result.wallTime_ = wallTime_; + result.step_ = step_; + if (whatCase_ == 3) { + if (debugMetadataBuilder_ == null) { + result.what_ = what_; + } else { + result.what_ = debugMetadataBuilder_.build(); + } + } + if (whatCase_ == 4) { + if (sourceFileBuilder_ == null) { + result.what_ = what_; + } else { + result.what_ = sourceFileBuilder_.build(); + } + } + if (whatCase_ == 6) { + if (stackFrameWithIdBuilder_ == null) { + result.what_ = what_; + } else { + result.what_ = stackFrameWithIdBuilder_.build(); + } + } + if (whatCase_ == 7) { + if (graphOpCreationBuilder_ == null) { + result.what_ = what_; + } else { + result.what_ = graphOpCreationBuilder_.build(); + } + } + if (whatCase_ == 8) { + if (debuggedGraphBuilder_ == null) { + result.what_ = what_; + } else { + result.what_ = debuggedGraphBuilder_.build(); + } + } + if (whatCase_ == 9) { + if (executionBuilder_ == null) { + result.what_ = what_; + } else { + result.what_ = executionBuilder_.build(); + } + } + if (whatCase_ == 10) { + if (graphExecutionTraceBuilder_ == null) { + result.what_ = what_; + } else { + result.what_ = graphExecutionTraceBuilder_.build(); + } + } + if (whatCase_ == 11) { + result.what_ = what_; + } + if (whatCase_ == 12) { + if (debuggedDeviceBuilder_ == null) { + result.what_ = what_; + } else { + result.what_ = debuggedDeviceBuilder_.build(); + } + } + result.whatCase_ = whatCase_; + 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 org.tensorflow.proto.DebugEvent) { + return mergeFrom((org.tensorflow.proto.DebugEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.DebugEvent other) { + if (other == org.tensorflow.proto.DebugEvent.getDefaultInstance()) return this; + if (other.getWallTime() != 0D) { + setWallTime(other.getWallTime()); + } + if (other.getStep() != 0L) { + setStep(other.getStep()); + } + switch (other.getWhatCase()) { + case DEBUG_METADATA: { + mergeDebugMetadata(other.getDebugMetadata()); + break; + } + case SOURCE_FILE: { + mergeSourceFile(other.getSourceFile()); + break; + } + case STACK_FRAME_WITH_ID: { + mergeStackFrameWithId(other.getStackFrameWithId()); + break; + } + case GRAPH_OP_CREATION: { + mergeGraphOpCreation(other.getGraphOpCreation()); + break; + } + case DEBUGGED_GRAPH: { + mergeDebuggedGraph(other.getDebuggedGraph()); + break; + } + case EXECUTION: { + mergeExecution(other.getExecution()); + break; + } + case GRAPH_EXECUTION_TRACE: { + mergeGraphExecutionTrace(other.getGraphExecutionTrace()); + break; + } + case GRAPH_ID: { + whatCase_ = 11; + what_ = other.what_; + onChanged(); + break; + } + case DEBUGGED_DEVICE: { + mergeDebuggedDevice(other.getDebuggedDevice()); + break; + } + case WHAT_NOT_SET: { + break; + } + } + 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 9: { + wallTime_ = input.readDouble(); + + break; + } // case 9 + case 16: { + step_ = input.readInt64(); + + break; + } // case 16 + case 26: { + input.readMessage( + getDebugMetadataFieldBuilder().getBuilder(), + extensionRegistry); + whatCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getSourceFileFieldBuilder().getBuilder(), + extensionRegistry); + whatCase_ = 4; + break; + } // case 34 + case 50: { + input.readMessage( + getStackFrameWithIdFieldBuilder().getBuilder(), + extensionRegistry); + whatCase_ = 6; + break; + } // case 50 + case 58: { + input.readMessage( + getGraphOpCreationFieldBuilder().getBuilder(), + extensionRegistry); + whatCase_ = 7; + break; + } // case 58 + case 66: { + input.readMessage( + getDebuggedGraphFieldBuilder().getBuilder(), + extensionRegistry); + whatCase_ = 8; + break; + } // case 66 + case 74: { + input.readMessage( + getExecutionFieldBuilder().getBuilder(), + extensionRegistry); + whatCase_ = 9; + break; + } // case 74 + case 82: { + input.readMessage( + getGraphExecutionTraceFieldBuilder().getBuilder(), + extensionRegistry); + whatCase_ = 10; + break; + } // case 82 + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + whatCase_ = 11; + what_ = s; + break; + } // case 90 + case 98: { + input.readMessage( + getDebuggedDeviceFieldBuilder().getBuilder(), + extensionRegistry); + whatCase_ = 12; + break; + } // case 98 + 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 whatCase_ = 0; + private java.lang.Object what_; + public WhatCase + getWhatCase() { + return WhatCase.forNumber( + whatCase_); + } + + public Builder clearWhat() { + whatCase_ = 0; + what_ = null; + onChanged(); + return this; + } + + + private double wallTime_ ; + /** + *
+     * Timestamp in seconds (with microsecond precision).
+     * 
+ * + * double wall_time = 1; + * @return The wallTime. + */ + @java.lang.Override + public double getWallTime() { + return wallTime_; + } + /** + *
+     * Timestamp in seconds (with microsecond precision).
+     * 
+ * + * double wall_time = 1; + * @param value The wallTime to set. + * @return This builder for chaining. + */ + public Builder setWallTime(double value) { + + wallTime_ = value; + onChanged(); + return this; + } + /** + *
+     * Timestamp in seconds (with microsecond precision).
+     * 
+ * + * double wall_time = 1; + * @return This builder for chaining. + */ + public Builder clearWallTime() { + + wallTime_ = 0D; + onChanged(); + return this; + } + + private long step_ ; + /** + *
+     * Step of training (if available).
+     * 
+ * + * int64 step = 2; + * @return The step. + */ + @java.lang.Override + public long getStep() { + return step_; + } + /** + *
+     * Step of training (if available).
+     * 
+ * + * int64 step = 2; + * @param value The step to set. + * @return This builder for chaining. + */ + public Builder setStep(long value) { + + step_ = value; + onChanged(); + return this; + } + /** + *
+     * Step of training (if available).
+     * 
+ * + * int64 step = 2; + * @return This builder for chaining. + */ + public Builder clearStep() { + + step_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.DebugMetadata, org.tensorflow.proto.DebugMetadata.Builder, org.tensorflow.proto.DebugMetadataOrBuilder> debugMetadataBuilder_; + /** + *
+     * Metadata related to this debugging data.
+     * 
+ * + * .tensorflow.DebugMetadata debug_metadata = 3; + * @return Whether the debugMetadata field is set. + */ + @java.lang.Override + public boolean hasDebugMetadata() { + return whatCase_ == 3; + } + /** + *
+     * Metadata related to this debugging data.
+     * 
+ * + * .tensorflow.DebugMetadata debug_metadata = 3; + * @return The debugMetadata. + */ + @java.lang.Override + public org.tensorflow.proto.DebugMetadata getDebugMetadata() { + if (debugMetadataBuilder_ == null) { + if (whatCase_ == 3) { + return (org.tensorflow.proto.DebugMetadata) what_; + } + return org.tensorflow.proto.DebugMetadata.getDefaultInstance(); + } else { + if (whatCase_ == 3) { + return debugMetadataBuilder_.getMessage(); + } + return org.tensorflow.proto.DebugMetadata.getDefaultInstance(); + } + } + /** + *
+     * Metadata related to this debugging data.
+     * 
+ * + * .tensorflow.DebugMetadata debug_metadata = 3; + */ + public Builder setDebugMetadata(org.tensorflow.proto.DebugMetadata value) { + if (debugMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + what_ = value; + onChanged(); + } else { + debugMetadataBuilder_.setMessage(value); + } + whatCase_ = 3; + return this; + } + /** + *
+     * Metadata related to this debugging data.
+     * 
+ * + * .tensorflow.DebugMetadata debug_metadata = 3; + */ + public Builder setDebugMetadata( + org.tensorflow.proto.DebugMetadata.Builder builderForValue) { + if (debugMetadataBuilder_ == null) { + what_ = builderForValue.build(); + onChanged(); + } else { + debugMetadataBuilder_.setMessage(builderForValue.build()); + } + whatCase_ = 3; + return this; + } + /** + *
+     * Metadata related to this debugging data.
+     * 
+ * + * .tensorflow.DebugMetadata debug_metadata = 3; + */ + public Builder mergeDebugMetadata(org.tensorflow.proto.DebugMetadata value) { + if (debugMetadataBuilder_ == null) { + if (whatCase_ == 3 && + what_ != org.tensorflow.proto.DebugMetadata.getDefaultInstance()) { + what_ = org.tensorflow.proto.DebugMetadata.newBuilder((org.tensorflow.proto.DebugMetadata) what_) + .mergeFrom(value).buildPartial(); + } else { + what_ = value; + } + onChanged(); + } else { + if (whatCase_ == 3) { + debugMetadataBuilder_.mergeFrom(value); + } else { + debugMetadataBuilder_.setMessage(value); + } + } + whatCase_ = 3; + return this; + } + /** + *
+     * Metadata related to this debugging data.
+     * 
+ * + * .tensorflow.DebugMetadata debug_metadata = 3; + */ + public Builder clearDebugMetadata() { + if (debugMetadataBuilder_ == null) { + if (whatCase_ == 3) { + whatCase_ = 0; + what_ = null; + onChanged(); + } + } else { + if (whatCase_ == 3) { + whatCase_ = 0; + what_ = null; + } + debugMetadataBuilder_.clear(); + } + return this; + } + /** + *
+     * Metadata related to this debugging data.
+     * 
+ * + * .tensorflow.DebugMetadata debug_metadata = 3; + */ + public org.tensorflow.proto.DebugMetadata.Builder getDebugMetadataBuilder() { + return getDebugMetadataFieldBuilder().getBuilder(); + } + /** + *
+     * Metadata related to this debugging data.
+     * 
+ * + * .tensorflow.DebugMetadata debug_metadata = 3; + */ + @java.lang.Override + public org.tensorflow.proto.DebugMetadataOrBuilder getDebugMetadataOrBuilder() { + if ((whatCase_ == 3) && (debugMetadataBuilder_ != null)) { + return debugMetadataBuilder_.getMessageOrBuilder(); + } else { + if (whatCase_ == 3) { + return (org.tensorflow.proto.DebugMetadata) what_; + } + return org.tensorflow.proto.DebugMetadata.getDefaultInstance(); + } + } + /** + *
+     * Metadata related to this debugging data.
+     * 
+ * + * .tensorflow.DebugMetadata debug_metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.DebugMetadata, org.tensorflow.proto.DebugMetadata.Builder, org.tensorflow.proto.DebugMetadataOrBuilder> + getDebugMetadataFieldBuilder() { + if (debugMetadataBuilder_ == null) { + if (!(whatCase_ == 3)) { + what_ = org.tensorflow.proto.DebugMetadata.getDefaultInstance(); + } + debugMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.DebugMetadata, org.tensorflow.proto.DebugMetadata.Builder, org.tensorflow.proto.DebugMetadataOrBuilder>( + (org.tensorflow.proto.DebugMetadata) what_, + getParentForChildren(), + isClean()); + what_ = null; + } + whatCase_ = 3; + onChanged();; + return debugMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SourceFile, org.tensorflow.proto.SourceFile.Builder, org.tensorflow.proto.SourceFileOrBuilder> sourceFileBuilder_; + /** + *
+     * The content of a source file.
+     * 
+ * + * .tensorflow.SourceFile source_file = 4; + * @return Whether the sourceFile field is set. + */ + @java.lang.Override + public boolean hasSourceFile() { + return whatCase_ == 4; + } + /** + *
+     * The content of a source file.
+     * 
+ * + * .tensorflow.SourceFile source_file = 4; + * @return The sourceFile. + */ + @java.lang.Override + public org.tensorflow.proto.SourceFile getSourceFile() { + if (sourceFileBuilder_ == null) { + if (whatCase_ == 4) { + return (org.tensorflow.proto.SourceFile) what_; + } + return org.tensorflow.proto.SourceFile.getDefaultInstance(); + } else { + if (whatCase_ == 4) { + return sourceFileBuilder_.getMessage(); + } + return org.tensorflow.proto.SourceFile.getDefaultInstance(); + } + } + /** + *
+     * The content of a source file.
+     * 
+ * + * .tensorflow.SourceFile source_file = 4; + */ + public Builder setSourceFile(org.tensorflow.proto.SourceFile value) { + if (sourceFileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + what_ = value; + onChanged(); + } else { + sourceFileBuilder_.setMessage(value); + } + whatCase_ = 4; + return this; + } + /** + *
+     * The content of a source file.
+     * 
+ * + * .tensorflow.SourceFile source_file = 4; + */ + public Builder setSourceFile( + org.tensorflow.proto.SourceFile.Builder builderForValue) { + if (sourceFileBuilder_ == null) { + what_ = builderForValue.build(); + onChanged(); + } else { + sourceFileBuilder_.setMessage(builderForValue.build()); + } + whatCase_ = 4; + return this; + } + /** + *
+     * The content of a source file.
+     * 
+ * + * .tensorflow.SourceFile source_file = 4; + */ + public Builder mergeSourceFile(org.tensorflow.proto.SourceFile value) { + if (sourceFileBuilder_ == null) { + if (whatCase_ == 4 && + what_ != org.tensorflow.proto.SourceFile.getDefaultInstance()) { + what_ = org.tensorflow.proto.SourceFile.newBuilder((org.tensorflow.proto.SourceFile) what_) + .mergeFrom(value).buildPartial(); + } else { + what_ = value; + } + onChanged(); + } else { + if (whatCase_ == 4) { + sourceFileBuilder_.mergeFrom(value); + } else { + sourceFileBuilder_.setMessage(value); + } + } + whatCase_ = 4; + return this; + } + /** + *
+     * The content of a source file.
+     * 
+ * + * .tensorflow.SourceFile source_file = 4; + */ + public Builder clearSourceFile() { + if (sourceFileBuilder_ == null) { + if (whatCase_ == 4) { + whatCase_ = 0; + what_ = null; + onChanged(); + } + } else { + if (whatCase_ == 4) { + whatCase_ = 0; + what_ = null; + } + sourceFileBuilder_.clear(); + } + return this; + } + /** + *
+     * The content of a source file.
+     * 
+ * + * .tensorflow.SourceFile source_file = 4; + */ + public org.tensorflow.proto.SourceFile.Builder getSourceFileBuilder() { + return getSourceFileFieldBuilder().getBuilder(); + } + /** + *
+     * The content of a source file.
+     * 
+ * + * .tensorflow.SourceFile source_file = 4; + */ + @java.lang.Override + public org.tensorflow.proto.SourceFileOrBuilder getSourceFileOrBuilder() { + if ((whatCase_ == 4) && (sourceFileBuilder_ != null)) { + return sourceFileBuilder_.getMessageOrBuilder(); + } else { + if (whatCase_ == 4) { + return (org.tensorflow.proto.SourceFile) what_; + } + return org.tensorflow.proto.SourceFile.getDefaultInstance(); + } + } + /** + *
+     * The content of a source file.
+     * 
+ * + * .tensorflow.SourceFile source_file = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SourceFile, org.tensorflow.proto.SourceFile.Builder, org.tensorflow.proto.SourceFileOrBuilder> + getSourceFileFieldBuilder() { + if (sourceFileBuilder_ == null) { + if (!(whatCase_ == 4)) { + what_ = org.tensorflow.proto.SourceFile.getDefaultInstance(); + } + sourceFileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SourceFile, org.tensorflow.proto.SourceFile.Builder, org.tensorflow.proto.SourceFileOrBuilder>( + (org.tensorflow.proto.SourceFile) what_, + getParentForChildren(), + isClean()); + what_ = null; + } + whatCase_ = 4; + onChanged();; + return sourceFileBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.StackFrameWithId, org.tensorflow.proto.StackFrameWithId.Builder, org.tensorflow.proto.StackFrameWithIdOrBuilder> stackFrameWithIdBuilder_; + /** + *
+     * A stack frame (filename, line number and column number, function name and
+     * code string) with ID.
+     * 
+ * + * .tensorflow.StackFrameWithId stack_frame_with_id = 6; + * @return Whether the stackFrameWithId field is set. + */ + @java.lang.Override + public boolean hasStackFrameWithId() { + return whatCase_ == 6; + } + /** + *
+     * A stack frame (filename, line number and column number, function name and
+     * code string) with ID.
+     * 
+ * + * .tensorflow.StackFrameWithId stack_frame_with_id = 6; + * @return The stackFrameWithId. + */ + @java.lang.Override + public org.tensorflow.proto.StackFrameWithId getStackFrameWithId() { + if (stackFrameWithIdBuilder_ == null) { + if (whatCase_ == 6) { + return (org.tensorflow.proto.StackFrameWithId) what_; + } + return org.tensorflow.proto.StackFrameWithId.getDefaultInstance(); + } else { + if (whatCase_ == 6) { + return stackFrameWithIdBuilder_.getMessage(); + } + return org.tensorflow.proto.StackFrameWithId.getDefaultInstance(); + } + } + /** + *
+     * A stack frame (filename, line number and column number, function name and
+     * code string) with ID.
+     * 
+ * + * .tensorflow.StackFrameWithId stack_frame_with_id = 6; + */ + public Builder setStackFrameWithId(org.tensorflow.proto.StackFrameWithId value) { + if (stackFrameWithIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + what_ = value; + onChanged(); + } else { + stackFrameWithIdBuilder_.setMessage(value); + } + whatCase_ = 6; + return this; + } + /** + *
+     * A stack frame (filename, line number and column number, function name and
+     * code string) with ID.
+     * 
+ * + * .tensorflow.StackFrameWithId stack_frame_with_id = 6; + */ + public Builder setStackFrameWithId( + org.tensorflow.proto.StackFrameWithId.Builder builderForValue) { + if (stackFrameWithIdBuilder_ == null) { + what_ = builderForValue.build(); + onChanged(); + } else { + stackFrameWithIdBuilder_.setMessage(builderForValue.build()); + } + whatCase_ = 6; + return this; + } + /** + *
+     * A stack frame (filename, line number and column number, function name and
+     * code string) with ID.
+     * 
+ * + * .tensorflow.StackFrameWithId stack_frame_with_id = 6; + */ + public Builder mergeStackFrameWithId(org.tensorflow.proto.StackFrameWithId value) { + if (stackFrameWithIdBuilder_ == null) { + if (whatCase_ == 6 && + what_ != org.tensorflow.proto.StackFrameWithId.getDefaultInstance()) { + what_ = org.tensorflow.proto.StackFrameWithId.newBuilder((org.tensorflow.proto.StackFrameWithId) what_) + .mergeFrom(value).buildPartial(); + } else { + what_ = value; + } + onChanged(); + } else { + if (whatCase_ == 6) { + stackFrameWithIdBuilder_.mergeFrom(value); + } else { + stackFrameWithIdBuilder_.setMessage(value); + } + } + whatCase_ = 6; + return this; + } + /** + *
+     * A stack frame (filename, line number and column number, function name and
+     * code string) with ID.
+     * 
+ * + * .tensorflow.StackFrameWithId stack_frame_with_id = 6; + */ + public Builder clearStackFrameWithId() { + if (stackFrameWithIdBuilder_ == null) { + if (whatCase_ == 6) { + whatCase_ = 0; + what_ = null; + onChanged(); + } + } else { + if (whatCase_ == 6) { + whatCase_ = 0; + what_ = null; + } + stackFrameWithIdBuilder_.clear(); + } + return this; + } + /** + *
+     * A stack frame (filename, line number and column number, function name and
+     * code string) with ID.
+     * 
+ * + * .tensorflow.StackFrameWithId stack_frame_with_id = 6; + */ + public org.tensorflow.proto.StackFrameWithId.Builder getStackFrameWithIdBuilder() { + return getStackFrameWithIdFieldBuilder().getBuilder(); + } + /** + *
+     * A stack frame (filename, line number and column number, function name and
+     * code string) with ID.
+     * 
+ * + * .tensorflow.StackFrameWithId stack_frame_with_id = 6; + */ + @java.lang.Override + public org.tensorflow.proto.StackFrameWithIdOrBuilder getStackFrameWithIdOrBuilder() { + if ((whatCase_ == 6) && (stackFrameWithIdBuilder_ != null)) { + return stackFrameWithIdBuilder_.getMessageOrBuilder(); + } else { + if (whatCase_ == 6) { + return (org.tensorflow.proto.StackFrameWithId) what_; + } + return org.tensorflow.proto.StackFrameWithId.getDefaultInstance(); + } + } + /** + *
+     * A stack frame (filename, line number and column number, function name and
+     * code string) with ID.
+     * 
+ * + * .tensorflow.StackFrameWithId stack_frame_with_id = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.StackFrameWithId, org.tensorflow.proto.StackFrameWithId.Builder, org.tensorflow.proto.StackFrameWithIdOrBuilder> + getStackFrameWithIdFieldBuilder() { + if (stackFrameWithIdBuilder_ == null) { + if (!(whatCase_ == 6)) { + what_ = org.tensorflow.proto.StackFrameWithId.getDefaultInstance(); + } + stackFrameWithIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.StackFrameWithId, org.tensorflow.proto.StackFrameWithId.Builder, org.tensorflow.proto.StackFrameWithIdOrBuilder>( + (org.tensorflow.proto.StackFrameWithId) what_, + getParentForChildren(), + isClean()); + what_ = null; + } + whatCase_ = 6; + onChanged();; + return stackFrameWithIdBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.GraphOpCreation, org.tensorflow.proto.GraphOpCreation.Builder, org.tensorflow.proto.GraphOpCreationOrBuilder> graphOpCreationBuilder_; + /** + *
+     * The creation of an op within a graph (e.g., a FuncGraph compiled from
+     * a Python function).
+     * 
+ * + * .tensorflow.GraphOpCreation graph_op_creation = 7; + * @return Whether the graphOpCreation field is set. + */ + @java.lang.Override + public boolean hasGraphOpCreation() { + return whatCase_ == 7; + } + /** + *
+     * The creation of an op within a graph (e.g., a FuncGraph compiled from
+     * a Python function).
+     * 
+ * + * .tensorflow.GraphOpCreation graph_op_creation = 7; + * @return The graphOpCreation. + */ + @java.lang.Override + public org.tensorflow.proto.GraphOpCreation getGraphOpCreation() { + if (graphOpCreationBuilder_ == null) { + if (whatCase_ == 7) { + return (org.tensorflow.proto.GraphOpCreation) what_; + } + return org.tensorflow.proto.GraphOpCreation.getDefaultInstance(); + } else { + if (whatCase_ == 7) { + return graphOpCreationBuilder_.getMessage(); + } + return org.tensorflow.proto.GraphOpCreation.getDefaultInstance(); + } + } + /** + *
+     * The creation of an op within a graph (e.g., a FuncGraph compiled from
+     * a Python function).
+     * 
+ * + * .tensorflow.GraphOpCreation graph_op_creation = 7; + */ + public Builder setGraphOpCreation(org.tensorflow.proto.GraphOpCreation value) { + if (graphOpCreationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + what_ = value; + onChanged(); + } else { + graphOpCreationBuilder_.setMessage(value); + } + whatCase_ = 7; + return this; + } + /** + *
+     * The creation of an op within a graph (e.g., a FuncGraph compiled from
+     * a Python function).
+     * 
+ * + * .tensorflow.GraphOpCreation graph_op_creation = 7; + */ + public Builder setGraphOpCreation( + org.tensorflow.proto.GraphOpCreation.Builder builderForValue) { + if (graphOpCreationBuilder_ == null) { + what_ = builderForValue.build(); + onChanged(); + } else { + graphOpCreationBuilder_.setMessage(builderForValue.build()); + } + whatCase_ = 7; + return this; + } + /** + *
+     * The creation of an op within a graph (e.g., a FuncGraph compiled from
+     * a Python function).
+     * 
+ * + * .tensorflow.GraphOpCreation graph_op_creation = 7; + */ + public Builder mergeGraphOpCreation(org.tensorflow.proto.GraphOpCreation value) { + if (graphOpCreationBuilder_ == null) { + if (whatCase_ == 7 && + what_ != org.tensorflow.proto.GraphOpCreation.getDefaultInstance()) { + what_ = org.tensorflow.proto.GraphOpCreation.newBuilder((org.tensorflow.proto.GraphOpCreation) what_) + .mergeFrom(value).buildPartial(); + } else { + what_ = value; + } + onChanged(); + } else { + if (whatCase_ == 7) { + graphOpCreationBuilder_.mergeFrom(value); + } else { + graphOpCreationBuilder_.setMessage(value); + } + } + whatCase_ = 7; + return this; + } + /** + *
+     * The creation of an op within a graph (e.g., a FuncGraph compiled from
+     * a Python function).
+     * 
+ * + * .tensorflow.GraphOpCreation graph_op_creation = 7; + */ + public Builder clearGraphOpCreation() { + if (graphOpCreationBuilder_ == null) { + if (whatCase_ == 7) { + whatCase_ = 0; + what_ = null; + onChanged(); + } + } else { + if (whatCase_ == 7) { + whatCase_ = 0; + what_ = null; + } + graphOpCreationBuilder_.clear(); + } + return this; + } + /** + *
+     * The creation of an op within a graph (e.g., a FuncGraph compiled from
+     * a Python function).
+     * 
+ * + * .tensorflow.GraphOpCreation graph_op_creation = 7; + */ + public org.tensorflow.proto.GraphOpCreation.Builder getGraphOpCreationBuilder() { + return getGraphOpCreationFieldBuilder().getBuilder(); + } + /** + *
+     * The creation of an op within a graph (e.g., a FuncGraph compiled from
+     * a Python function).
+     * 
+ * + * .tensorflow.GraphOpCreation graph_op_creation = 7; + */ + @java.lang.Override + public org.tensorflow.proto.GraphOpCreationOrBuilder getGraphOpCreationOrBuilder() { + if ((whatCase_ == 7) && (graphOpCreationBuilder_ != null)) { + return graphOpCreationBuilder_.getMessageOrBuilder(); + } else { + if (whatCase_ == 7) { + return (org.tensorflow.proto.GraphOpCreation) what_; + } + return org.tensorflow.proto.GraphOpCreation.getDefaultInstance(); + } + } + /** + *
+     * The creation of an op within a graph (e.g., a FuncGraph compiled from
+     * a Python function).
+     * 
+ * + * .tensorflow.GraphOpCreation graph_op_creation = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.GraphOpCreation, org.tensorflow.proto.GraphOpCreation.Builder, org.tensorflow.proto.GraphOpCreationOrBuilder> + getGraphOpCreationFieldBuilder() { + if (graphOpCreationBuilder_ == null) { + if (!(whatCase_ == 7)) { + what_ = org.tensorflow.proto.GraphOpCreation.getDefaultInstance(); + } + graphOpCreationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.GraphOpCreation, org.tensorflow.proto.GraphOpCreation.Builder, org.tensorflow.proto.GraphOpCreationOrBuilder>( + (org.tensorflow.proto.GraphOpCreation) what_, + getParentForChildren(), + isClean()); + what_ = null; + } + whatCase_ = 7; + onChanged();; + return graphOpCreationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.DebuggedGraph, org.tensorflow.proto.DebuggedGraph.Builder, org.tensorflow.proto.DebuggedGraphOrBuilder> debuggedGraphBuilder_; + /** + *
+     * Information about a debugged graph.
+     * 
+ * + * .tensorflow.DebuggedGraph debugged_graph = 8; + * @return Whether the debuggedGraph field is set. + */ + @java.lang.Override + public boolean hasDebuggedGraph() { + return whatCase_ == 8; + } + /** + *
+     * Information about a debugged graph.
+     * 
+ * + * .tensorflow.DebuggedGraph debugged_graph = 8; + * @return The debuggedGraph. + */ + @java.lang.Override + public org.tensorflow.proto.DebuggedGraph getDebuggedGraph() { + if (debuggedGraphBuilder_ == null) { + if (whatCase_ == 8) { + return (org.tensorflow.proto.DebuggedGraph) what_; + } + return org.tensorflow.proto.DebuggedGraph.getDefaultInstance(); + } else { + if (whatCase_ == 8) { + return debuggedGraphBuilder_.getMessage(); + } + return org.tensorflow.proto.DebuggedGraph.getDefaultInstance(); + } + } + /** + *
+     * Information about a debugged graph.
+     * 
+ * + * .tensorflow.DebuggedGraph debugged_graph = 8; + */ + public Builder setDebuggedGraph(org.tensorflow.proto.DebuggedGraph value) { + if (debuggedGraphBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + what_ = value; + onChanged(); + } else { + debuggedGraphBuilder_.setMessage(value); + } + whatCase_ = 8; + return this; + } + /** + *
+     * Information about a debugged graph.
+     * 
+ * + * .tensorflow.DebuggedGraph debugged_graph = 8; + */ + public Builder setDebuggedGraph( + org.tensorflow.proto.DebuggedGraph.Builder builderForValue) { + if (debuggedGraphBuilder_ == null) { + what_ = builderForValue.build(); + onChanged(); + } else { + debuggedGraphBuilder_.setMessage(builderForValue.build()); + } + whatCase_ = 8; + return this; + } + /** + *
+     * Information about a debugged graph.
+     * 
+ * + * .tensorflow.DebuggedGraph debugged_graph = 8; + */ + public Builder mergeDebuggedGraph(org.tensorflow.proto.DebuggedGraph value) { + if (debuggedGraphBuilder_ == null) { + if (whatCase_ == 8 && + what_ != org.tensorflow.proto.DebuggedGraph.getDefaultInstance()) { + what_ = org.tensorflow.proto.DebuggedGraph.newBuilder((org.tensorflow.proto.DebuggedGraph) what_) + .mergeFrom(value).buildPartial(); + } else { + what_ = value; + } + onChanged(); + } else { + if (whatCase_ == 8) { + debuggedGraphBuilder_.mergeFrom(value); + } else { + debuggedGraphBuilder_.setMessage(value); + } + } + whatCase_ = 8; + return this; + } + /** + *
+     * Information about a debugged graph.
+     * 
+ * + * .tensorflow.DebuggedGraph debugged_graph = 8; + */ + public Builder clearDebuggedGraph() { + if (debuggedGraphBuilder_ == null) { + if (whatCase_ == 8) { + whatCase_ = 0; + what_ = null; + onChanged(); + } + } else { + if (whatCase_ == 8) { + whatCase_ = 0; + what_ = null; + } + debuggedGraphBuilder_.clear(); + } + return this; + } + /** + *
+     * Information about a debugged graph.
+     * 
+ * + * .tensorflow.DebuggedGraph debugged_graph = 8; + */ + public org.tensorflow.proto.DebuggedGraph.Builder getDebuggedGraphBuilder() { + return getDebuggedGraphFieldBuilder().getBuilder(); + } + /** + *
+     * Information about a debugged graph.
+     * 
+ * + * .tensorflow.DebuggedGraph debugged_graph = 8; + */ + @java.lang.Override + public org.tensorflow.proto.DebuggedGraphOrBuilder getDebuggedGraphOrBuilder() { + if ((whatCase_ == 8) && (debuggedGraphBuilder_ != null)) { + return debuggedGraphBuilder_.getMessageOrBuilder(); + } else { + if (whatCase_ == 8) { + return (org.tensorflow.proto.DebuggedGraph) what_; + } + return org.tensorflow.proto.DebuggedGraph.getDefaultInstance(); + } + } + /** + *
+     * Information about a debugged graph.
+     * 
+ * + * .tensorflow.DebuggedGraph debugged_graph = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.DebuggedGraph, org.tensorflow.proto.DebuggedGraph.Builder, org.tensorflow.proto.DebuggedGraphOrBuilder> + getDebuggedGraphFieldBuilder() { + if (debuggedGraphBuilder_ == null) { + if (!(whatCase_ == 8)) { + what_ = org.tensorflow.proto.DebuggedGraph.getDefaultInstance(); + } + debuggedGraphBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.DebuggedGraph, org.tensorflow.proto.DebuggedGraph.Builder, org.tensorflow.proto.DebuggedGraphOrBuilder>( + (org.tensorflow.proto.DebuggedGraph) what_, + getParentForChildren(), + isClean()); + what_ = null; + } + whatCase_ = 8; + onChanged();; + return debuggedGraphBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Execution, org.tensorflow.proto.Execution.Builder, org.tensorflow.proto.ExecutionOrBuilder> executionBuilder_; + /** + *
+     * Execution of an op or a Graph (e.g., a tf.function).
+     * 
+ * + * .tensorflow.Execution execution = 9; + * @return Whether the execution field is set. + */ + @java.lang.Override + public boolean hasExecution() { + return whatCase_ == 9; + } + /** + *
+     * Execution of an op or a Graph (e.g., a tf.function).
+     * 
+ * + * .tensorflow.Execution execution = 9; + * @return The execution. + */ + @java.lang.Override + public org.tensorflow.proto.Execution getExecution() { + if (executionBuilder_ == null) { + if (whatCase_ == 9) { + return (org.tensorflow.proto.Execution) what_; + } + return org.tensorflow.proto.Execution.getDefaultInstance(); + } else { + if (whatCase_ == 9) { + return executionBuilder_.getMessage(); + } + return org.tensorflow.proto.Execution.getDefaultInstance(); + } + } + /** + *
+     * Execution of an op or a Graph (e.g., a tf.function).
+     * 
+ * + * .tensorflow.Execution execution = 9; + */ + public Builder setExecution(org.tensorflow.proto.Execution value) { + if (executionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + what_ = value; + onChanged(); + } else { + executionBuilder_.setMessage(value); + } + whatCase_ = 9; + return this; + } + /** + *
+     * Execution of an op or a Graph (e.g., a tf.function).
+     * 
+ * + * .tensorflow.Execution execution = 9; + */ + public Builder setExecution( + org.tensorflow.proto.Execution.Builder builderForValue) { + if (executionBuilder_ == null) { + what_ = builderForValue.build(); + onChanged(); + } else { + executionBuilder_.setMessage(builderForValue.build()); + } + whatCase_ = 9; + return this; + } + /** + *
+     * Execution of an op or a Graph (e.g., a tf.function).
+     * 
+ * + * .tensorflow.Execution execution = 9; + */ + public Builder mergeExecution(org.tensorflow.proto.Execution value) { + if (executionBuilder_ == null) { + if (whatCase_ == 9 && + what_ != org.tensorflow.proto.Execution.getDefaultInstance()) { + what_ = org.tensorflow.proto.Execution.newBuilder((org.tensorflow.proto.Execution) what_) + .mergeFrom(value).buildPartial(); + } else { + what_ = value; + } + onChanged(); + } else { + if (whatCase_ == 9) { + executionBuilder_.mergeFrom(value); + } else { + executionBuilder_.setMessage(value); + } + } + whatCase_ = 9; + return this; + } + /** + *
+     * Execution of an op or a Graph (e.g., a tf.function).
+     * 
+ * + * .tensorflow.Execution execution = 9; + */ + public Builder clearExecution() { + if (executionBuilder_ == null) { + if (whatCase_ == 9) { + whatCase_ = 0; + what_ = null; + onChanged(); + } + } else { + if (whatCase_ == 9) { + whatCase_ = 0; + what_ = null; + } + executionBuilder_.clear(); + } + return this; + } + /** + *
+     * Execution of an op or a Graph (e.g., a tf.function).
+     * 
+ * + * .tensorflow.Execution execution = 9; + */ + public org.tensorflow.proto.Execution.Builder getExecutionBuilder() { + return getExecutionFieldBuilder().getBuilder(); + } + /** + *
+     * Execution of an op or a Graph (e.g., a tf.function).
+     * 
+ * + * .tensorflow.Execution execution = 9; + */ + @java.lang.Override + public org.tensorflow.proto.ExecutionOrBuilder getExecutionOrBuilder() { + if ((whatCase_ == 9) && (executionBuilder_ != null)) { + return executionBuilder_.getMessageOrBuilder(); + } else { + if (whatCase_ == 9) { + return (org.tensorflow.proto.Execution) what_; + } + return org.tensorflow.proto.Execution.getDefaultInstance(); + } + } + /** + *
+     * Execution of an op or a Graph (e.g., a tf.function).
+     * 
+ * + * .tensorflow.Execution execution = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Execution, org.tensorflow.proto.Execution.Builder, org.tensorflow.proto.ExecutionOrBuilder> + getExecutionFieldBuilder() { + if (executionBuilder_ == null) { + if (!(whatCase_ == 9)) { + what_ = org.tensorflow.proto.Execution.getDefaultInstance(); + } + executionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Execution, org.tensorflow.proto.Execution.Builder, org.tensorflow.proto.ExecutionOrBuilder>( + (org.tensorflow.proto.Execution) what_, + getParentForChildren(), + isClean()); + what_ = null; + } + whatCase_ = 9; + onChanged();; + return executionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.GraphExecutionTrace, org.tensorflow.proto.GraphExecutionTrace.Builder, org.tensorflow.proto.GraphExecutionTraceOrBuilder> graphExecutionTraceBuilder_; + /** + *
+     * A graph execution trace: Contains information about the intermediate
+     * tensors computed during the graph execution.
+     * 
+ * + * .tensorflow.GraphExecutionTrace graph_execution_trace = 10; + * @return Whether the graphExecutionTrace field is set. + */ + @java.lang.Override + public boolean hasGraphExecutionTrace() { + return whatCase_ == 10; + } + /** + *
+     * A graph execution trace: Contains information about the intermediate
+     * tensors computed during the graph execution.
+     * 
+ * + * .tensorflow.GraphExecutionTrace graph_execution_trace = 10; + * @return The graphExecutionTrace. + */ + @java.lang.Override + public org.tensorflow.proto.GraphExecutionTrace getGraphExecutionTrace() { + if (graphExecutionTraceBuilder_ == null) { + if (whatCase_ == 10) { + return (org.tensorflow.proto.GraphExecutionTrace) what_; + } + return org.tensorflow.proto.GraphExecutionTrace.getDefaultInstance(); + } else { + if (whatCase_ == 10) { + return graphExecutionTraceBuilder_.getMessage(); + } + return org.tensorflow.proto.GraphExecutionTrace.getDefaultInstance(); + } + } + /** + *
+     * A graph execution trace: Contains information about the intermediate
+     * tensors computed during the graph execution.
+     * 
+ * + * .tensorflow.GraphExecutionTrace graph_execution_trace = 10; + */ + public Builder setGraphExecutionTrace(org.tensorflow.proto.GraphExecutionTrace value) { + if (graphExecutionTraceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + what_ = value; + onChanged(); + } else { + graphExecutionTraceBuilder_.setMessage(value); + } + whatCase_ = 10; + return this; + } + /** + *
+     * A graph execution trace: Contains information about the intermediate
+     * tensors computed during the graph execution.
+     * 
+ * + * .tensorflow.GraphExecutionTrace graph_execution_trace = 10; + */ + public Builder setGraphExecutionTrace( + org.tensorflow.proto.GraphExecutionTrace.Builder builderForValue) { + if (graphExecutionTraceBuilder_ == null) { + what_ = builderForValue.build(); + onChanged(); + } else { + graphExecutionTraceBuilder_.setMessage(builderForValue.build()); + } + whatCase_ = 10; + return this; + } + /** + *
+     * A graph execution trace: Contains information about the intermediate
+     * tensors computed during the graph execution.
+     * 
+ * + * .tensorflow.GraphExecutionTrace graph_execution_trace = 10; + */ + public Builder mergeGraphExecutionTrace(org.tensorflow.proto.GraphExecutionTrace value) { + if (graphExecutionTraceBuilder_ == null) { + if (whatCase_ == 10 && + what_ != org.tensorflow.proto.GraphExecutionTrace.getDefaultInstance()) { + what_ = org.tensorflow.proto.GraphExecutionTrace.newBuilder((org.tensorflow.proto.GraphExecutionTrace) what_) + .mergeFrom(value).buildPartial(); + } else { + what_ = value; + } + onChanged(); + } else { + if (whatCase_ == 10) { + graphExecutionTraceBuilder_.mergeFrom(value); + } else { + graphExecutionTraceBuilder_.setMessage(value); + } + } + whatCase_ = 10; + return this; + } + /** + *
+     * A graph execution trace: Contains information about the intermediate
+     * tensors computed during the graph execution.
+     * 
+ * + * .tensorflow.GraphExecutionTrace graph_execution_trace = 10; + */ + public Builder clearGraphExecutionTrace() { + if (graphExecutionTraceBuilder_ == null) { + if (whatCase_ == 10) { + whatCase_ = 0; + what_ = null; + onChanged(); + } + } else { + if (whatCase_ == 10) { + whatCase_ = 0; + what_ = null; + } + graphExecutionTraceBuilder_.clear(); + } + return this; + } + /** + *
+     * A graph execution trace: Contains information about the intermediate
+     * tensors computed during the graph execution.
+     * 
+ * + * .tensorflow.GraphExecutionTrace graph_execution_trace = 10; + */ + public org.tensorflow.proto.GraphExecutionTrace.Builder getGraphExecutionTraceBuilder() { + return getGraphExecutionTraceFieldBuilder().getBuilder(); + } + /** + *
+     * A graph execution trace: Contains information about the intermediate
+     * tensors computed during the graph execution.
+     * 
+ * + * .tensorflow.GraphExecutionTrace graph_execution_trace = 10; + */ + @java.lang.Override + public org.tensorflow.proto.GraphExecutionTraceOrBuilder getGraphExecutionTraceOrBuilder() { + if ((whatCase_ == 10) && (graphExecutionTraceBuilder_ != null)) { + return graphExecutionTraceBuilder_.getMessageOrBuilder(); + } else { + if (whatCase_ == 10) { + return (org.tensorflow.proto.GraphExecutionTrace) what_; + } + return org.tensorflow.proto.GraphExecutionTrace.getDefaultInstance(); + } + } + /** + *
+     * A graph execution trace: Contains information about the intermediate
+     * tensors computed during the graph execution.
+     * 
+ * + * .tensorflow.GraphExecutionTrace graph_execution_trace = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.GraphExecutionTrace, org.tensorflow.proto.GraphExecutionTrace.Builder, org.tensorflow.proto.GraphExecutionTraceOrBuilder> + getGraphExecutionTraceFieldBuilder() { + if (graphExecutionTraceBuilder_ == null) { + if (!(whatCase_ == 10)) { + what_ = org.tensorflow.proto.GraphExecutionTrace.getDefaultInstance(); + } + graphExecutionTraceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.GraphExecutionTrace, org.tensorflow.proto.GraphExecutionTrace.Builder, org.tensorflow.proto.GraphExecutionTraceOrBuilder>( + (org.tensorflow.proto.GraphExecutionTrace) what_, + getParentForChildren(), + isClean()); + what_ = null; + } + whatCase_ = 10; + onChanged();; + return graphExecutionTraceBuilder_; + } + + /** + *
+     * The ID of the graph (i.e., FuncGraph) executed here: applicable only
+     * to the execution of a FuncGraph.
+     * 
+ * + * string graph_id = 11; + * @return Whether the graphId field is set. + */ + @java.lang.Override + public boolean hasGraphId() { + return whatCase_ == 11; + } + /** + *
+     * The ID of the graph (i.e., FuncGraph) executed here: applicable only
+     * to the execution of a FuncGraph.
+     * 
+ * + * string graph_id = 11; + * @return The graphId. + */ + @java.lang.Override + public java.lang.String getGraphId() { + java.lang.Object ref = ""; + if (whatCase_ == 11) { + ref = what_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (whatCase_ == 11) { + what_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The ID of the graph (i.e., FuncGraph) executed here: applicable only
+     * to the execution of a FuncGraph.
+     * 
+ * + * string graph_id = 11; + * @return The bytes for graphId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getGraphIdBytes() { + java.lang.Object ref = ""; + if (whatCase_ == 11) { + ref = what_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (whatCase_ == 11) { + what_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The ID of the graph (i.e., FuncGraph) executed here: applicable only
+     * to the execution of a FuncGraph.
+     * 
+ * + * string graph_id = 11; + * @param value The graphId to set. + * @return This builder for chaining. + */ + public Builder setGraphId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + whatCase_ = 11; + what_ = value; + onChanged(); + return this; + } + /** + *
+     * The ID of the graph (i.e., FuncGraph) executed here: applicable only
+     * to the execution of a FuncGraph.
+     * 
+ * + * string graph_id = 11; + * @return This builder for chaining. + */ + public Builder clearGraphId() { + if (whatCase_ == 11) { + whatCase_ = 0; + what_ = null; + onChanged(); + } + return this; + } + /** + *
+     * The ID of the graph (i.e., FuncGraph) executed here: applicable only
+     * to the execution of a FuncGraph.
+     * 
+ * + * string graph_id = 11; + * @param value The bytes for graphId to set. + * @return This builder for chaining. + */ + public Builder setGraphIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + whatCase_ = 11; + what_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.DebuggedDevice, org.tensorflow.proto.DebuggedDevice.Builder, org.tensorflow.proto.DebuggedDeviceOrBuilder> debuggedDeviceBuilder_; + /** + *
+     * A device on which debugger-instrumented ops and/or tensors reside.
+     * 
+ * + * .tensorflow.DebuggedDevice debugged_device = 12; + * @return Whether the debuggedDevice field is set. + */ + @java.lang.Override + public boolean hasDebuggedDevice() { + return whatCase_ == 12; + } + /** + *
+     * A device on which debugger-instrumented ops and/or tensors reside.
+     * 
+ * + * .tensorflow.DebuggedDevice debugged_device = 12; + * @return The debuggedDevice. + */ + @java.lang.Override + public org.tensorflow.proto.DebuggedDevice getDebuggedDevice() { + if (debuggedDeviceBuilder_ == null) { + if (whatCase_ == 12) { + return (org.tensorflow.proto.DebuggedDevice) what_; + } + return org.tensorflow.proto.DebuggedDevice.getDefaultInstance(); + } else { + if (whatCase_ == 12) { + return debuggedDeviceBuilder_.getMessage(); + } + return org.tensorflow.proto.DebuggedDevice.getDefaultInstance(); + } + } + /** + *
+     * A device on which debugger-instrumented ops and/or tensors reside.
+     * 
+ * + * .tensorflow.DebuggedDevice debugged_device = 12; + */ + public Builder setDebuggedDevice(org.tensorflow.proto.DebuggedDevice value) { + if (debuggedDeviceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + what_ = value; + onChanged(); + } else { + debuggedDeviceBuilder_.setMessage(value); + } + whatCase_ = 12; + return this; + } + /** + *
+     * A device on which debugger-instrumented ops and/or tensors reside.
+     * 
+ * + * .tensorflow.DebuggedDevice debugged_device = 12; + */ + public Builder setDebuggedDevice( + org.tensorflow.proto.DebuggedDevice.Builder builderForValue) { + if (debuggedDeviceBuilder_ == null) { + what_ = builderForValue.build(); + onChanged(); + } else { + debuggedDeviceBuilder_.setMessage(builderForValue.build()); + } + whatCase_ = 12; + return this; + } + /** + *
+     * A device on which debugger-instrumented ops and/or tensors reside.
+     * 
+ * + * .tensorflow.DebuggedDevice debugged_device = 12; + */ + public Builder mergeDebuggedDevice(org.tensorflow.proto.DebuggedDevice value) { + if (debuggedDeviceBuilder_ == null) { + if (whatCase_ == 12 && + what_ != org.tensorflow.proto.DebuggedDevice.getDefaultInstance()) { + what_ = org.tensorflow.proto.DebuggedDevice.newBuilder((org.tensorflow.proto.DebuggedDevice) what_) + .mergeFrom(value).buildPartial(); + } else { + what_ = value; + } + onChanged(); + } else { + if (whatCase_ == 12) { + debuggedDeviceBuilder_.mergeFrom(value); + } else { + debuggedDeviceBuilder_.setMessage(value); + } + } + whatCase_ = 12; + return this; + } + /** + *
+     * A device on which debugger-instrumented ops and/or tensors reside.
+     * 
+ * + * .tensorflow.DebuggedDevice debugged_device = 12; + */ + public Builder clearDebuggedDevice() { + if (debuggedDeviceBuilder_ == null) { + if (whatCase_ == 12) { + whatCase_ = 0; + what_ = null; + onChanged(); + } + } else { + if (whatCase_ == 12) { + whatCase_ = 0; + what_ = null; + } + debuggedDeviceBuilder_.clear(); + } + return this; + } + /** + *
+     * A device on which debugger-instrumented ops and/or tensors reside.
+     * 
+ * + * .tensorflow.DebuggedDevice debugged_device = 12; + */ + public org.tensorflow.proto.DebuggedDevice.Builder getDebuggedDeviceBuilder() { + return getDebuggedDeviceFieldBuilder().getBuilder(); + } + /** + *
+     * A device on which debugger-instrumented ops and/or tensors reside.
+     * 
+ * + * .tensorflow.DebuggedDevice debugged_device = 12; + */ + @java.lang.Override + public org.tensorflow.proto.DebuggedDeviceOrBuilder getDebuggedDeviceOrBuilder() { + if ((whatCase_ == 12) && (debuggedDeviceBuilder_ != null)) { + return debuggedDeviceBuilder_.getMessageOrBuilder(); + } else { + if (whatCase_ == 12) { + return (org.tensorflow.proto.DebuggedDevice) what_; + } + return org.tensorflow.proto.DebuggedDevice.getDefaultInstance(); + } + } + /** + *
+     * A device on which debugger-instrumented ops and/or tensors reside.
+     * 
+ * + * .tensorflow.DebuggedDevice debugged_device = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.DebuggedDevice, org.tensorflow.proto.DebuggedDevice.Builder, org.tensorflow.proto.DebuggedDeviceOrBuilder> + getDebuggedDeviceFieldBuilder() { + if (debuggedDeviceBuilder_ == null) { + if (!(whatCase_ == 12)) { + what_ = org.tensorflow.proto.DebuggedDevice.getDefaultInstance(); + } + debuggedDeviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.DebuggedDevice, org.tensorflow.proto.DebuggedDevice.Builder, org.tensorflow.proto.DebuggedDeviceOrBuilder>( + (org.tensorflow.proto.DebuggedDevice) what_, + getParentForChildren(), + isClean()); + what_ = null; + } + whatCase_ = 12; + onChanged();; + return debuggedDeviceBuilder_; + } + @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:tensorflow.DebugEvent) + } + + // @@protoc_insertion_point(class_scope:tensorflow.DebugEvent) + private static final org.tensorflow.proto.DebugEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.DebugEvent(); + } + + public static org.tensorflow.proto.DebugEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DebugEvent 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 org.tensorflow.proto.DebugEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugEventOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugEventOrBuilder.java new file mode 100644 index 00000000000..b50c80cb5bd --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugEventOrBuilder.java @@ -0,0 +1,288 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/debug_event.proto + +package org.tensorflow.proto; + +public interface DebugEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.DebugEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Timestamp in seconds (with microsecond precision).
+   * 
+ * + * double wall_time = 1; + * @return The wallTime. + */ + double getWallTime(); + + /** + *
+   * Step of training (if available).
+   * 
+ * + * int64 step = 2; + * @return The step. + */ + long getStep(); + + /** + *
+   * Metadata related to this debugging data.
+   * 
+ * + * .tensorflow.DebugMetadata debug_metadata = 3; + * @return Whether the debugMetadata field is set. + */ + boolean hasDebugMetadata(); + /** + *
+   * Metadata related to this debugging data.
+   * 
+ * + * .tensorflow.DebugMetadata debug_metadata = 3; + * @return The debugMetadata. + */ + org.tensorflow.proto.DebugMetadata getDebugMetadata(); + /** + *
+   * Metadata related to this debugging data.
+   * 
+ * + * .tensorflow.DebugMetadata debug_metadata = 3; + */ + org.tensorflow.proto.DebugMetadataOrBuilder getDebugMetadataOrBuilder(); + + /** + *
+   * The content of a source file.
+   * 
+ * + * .tensorflow.SourceFile source_file = 4; + * @return Whether the sourceFile field is set. + */ + boolean hasSourceFile(); + /** + *
+   * The content of a source file.
+   * 
+ * + * .tensorflow.SourceFile source_file = 4; + * @return The sourceFile. + */ + org.tensorflow.proto.SourceFile getSourceFile(); + /** + *
+   * The content of a source file.
+   * 
+ * + * .tensorflow.SourceFile source_file = 4; + */ + org.tensorflow.proto.SourceFileOrBuilder getSourceFileOrBuilder(); + + /** + *
+   * A stack frame (filename, line number and column number, function name and
+   * code string) with ID.
+   * 
+ * + * .tensorflow.StackFrameWithId stack_frame_with_id = 6; + * @return Whether the stackFrameWithId field is set. + */ + boolean hasStackFrameWithId(); + /** + *
+   * A stack frame (filename, line number and column number, function name and
+   * code string) with ID.
+   * 
+ * + * .tensorflow.StackFrameWithId stack_frame_with_id = 6; + * @return The stackFrameWithId. + */ + org.tensorflow.proto.StackFrameWithId getStackFrameWithId(); + /** + *
+   * A stack frame (filename, line number and column number, function name and
+   * code string) with ID.
+   * 
+ * + * .tensorflow.StackFrameWithId stack_frame_with_id = 6; + */ + org.tensorflow.proto.StackFrameWithIdOrBuilder getStackFrameWithIdOrBuilder(); + + /** + *
+   * The creation of an op within a graph (e.g., a FuncGraph compiled from
+   * a Python function).
+   * 
+ * + * .tensorflow.GraphOpCreation graph_op_creation = 7; + * @return Whether the graphOpCreation field is set. + */ + boolean hasGraphOpCreation(); + /** + *
+   * The creation of an op within a graph (e.g., a FuncGraph compiled from
+   * a Python function).
+   * 
+ * + * .tensorflow.GraphOpCreation graph_op_creation = 7; + * @return The graphOpCreation. + */ + org.tensorflow.proto.GraphOpCreation getGraphOpCreation(); + /** + *
+   * The creation of an op within a graph (e.g., a FuncGraph compiled from
+   * a Python function).
+   * 
+ * + * .tensorflow.GraphOpCreation graph_op_creation = 7; + */ + org.tensorflow.proto.GraphOpCreationOrBuilder getGraphOpCreationOrBuilder(); + + /** + *
+   * Information about a debugged graph.
+   * 
+ * + * .tensorflow.DebuggedGraph debugged_graph = 8; + * @return Whether the debuggedGraph field is set. + */ + boolean hasDebuggedGraph(); + /** + *
+   * Information about a debugged graph.
+   * 
+ * + * .tensorflow.DebuggedGraph debugged_graph = 8; + * @return The debuggedGraph. + */ + org.tensorflow.proto.DebuggedGraph getDebuggedGraph(); + /** + *
+   * Information about a debugged graph.
+   * 
+ * + * .tensorflow.DebuggedGraph debugged_graph = 8; + */ + org.tensorflow.proto.DebuggedGraphOrBuilder getDebuggedGraphOrBuilder(); + + /** + *
+   * Execution of an op or a Graph (e.g., a tf.function).
+   * 
+ * + * .tensorflow.Execution execution = 9; + * @return Whether the execution field is set. + */ + boolean hasExecution(); + /** + *
+   * Execution of an op or a Graph (e.g., a tf.function).
+   * 
+ * + * .tensorflow.Execution execution = 9; + * @return The execution. + */ + org.tensorflow.proto.Execution getExecution(); + /** + *
+   * Execution of an op or a Graph (e.g., a tf.function).
+   * 
+ * + * .tensorflow.Execution execution = 9; + */ + org.tensorflow.proto.ExecutionOrBuilder getExecutionOrBuilder(); + + /** + *
+   * A graph execution trace: Contains information about the intermediate
+   * tensors computed during the graph execution.
+   * 
+ * + * .tensorflow.GraphExecutionTrace graph_execution_trace = 10; + * @return Whether the graphExecutionTrace field is set. + */ + boolean hasGraphExecutionTrace(); + /** + *
+   * A graph execution trace: Contains information about the intermediate
+   * tensors computed during the graph execution.
+   * 
+ * + * .tensorflow.GraphExecutionTrace graph_execution_trace = 10; + * @return The graphExecutionTrace. + */ + org.tensorflow.proto.GraphExecutionTrace getGraphExecutionTrace(); + /** + *
+   * A graph execution trace: Contains information about the intermediate
+   * tensors computed during the graph execution.
+   * 
+ * + * .tensorflow.GraphExecutionTrace graph_execution_trace = 10; + */ + org.tensorflow.proto.GraphExecutionTraceOrBuilder getGraphExecutionTraceOrBuilder(); + + /** + *
+   * The ID of the graph (i.e., FuncGraph) executed here: applicable only
+   * to the execution of a FuncGraph.
+   * 
+ * + * string graph_id = 11; + * @return Whether the graphId field is set. + */ + boolean hasGraphId(); + /** + *
+   * The ID of the graph (i.e., FuncGraph) executed here: applicable only
+   * to the execution of a FuncGraph.
+   * 
+ * + * string graph_id = 11; + * @return The graphId. + */ + java.lang.String getGraphId(); + /** + *
+   * The ID of the graph (i.e., FuncGraph) executed here: applicable only
+   * to the execution of a FuncGraph.
+   * 
+ * + * string graph_id = 11; + * @return The bytes for graphId. + */ + com.google.protobuf.ByteString + getGraphIdBytes(); + + /** + *
+   * A device on which debugger-instrumented ops and/or tensors reside.
+   * 
+ * + * .tensorflow.DebuggedDevice debugged_device = 12; + * @return Whether the debuggedDevice field is set. + */ + boolean hasDebuggedDevice(); + /** + *
+   * A device on which debugger-instrumented ops and/or tensors reside.
+   * 
+ * + * .tensorflow.DebuggedDevice debugged_device = 12; + * @return The debuggedDevice. + */ + org.tensorflow.proto.DebuggedDevice getDebuggedDevice(); + /** + *
+   * A device on which debugger-instrumented ops and/or tensors reside.
+   * 
+ * + * .tensorflow.DebuggedDevice debugged_device = 12; + */ + org.tensorflow.proto.DebuggedDeviceOrBuilder getDebuggedDeviceOrBuilder(); + + public org.tensorflow.proto.DebugEvent.WhatCase getWhatCase(); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugEventProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugEventProtos.java new file mode 100644 index 00000000000..76475865cbd --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugEventProtos.java @@ -0,0 +1,205 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/debug_event.proto + +package org.tensorflow.proto; + +public final class DebugEventProtos { + private DebugEventProtos() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_DebugEvent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_DebugEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_DebugMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_DebugMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_SourceFile_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_SourceFile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_StackFrameWithId_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_StackFrameWithId_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_CodeLocation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_CodeLocation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_GraphOpCreation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_GraphOpCreation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_DebuggedGraph_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_DebuggedGraph_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_DebuggedDevice_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_DebuggedDevice_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_Execution_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_Execution_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_GraphExecutionTrace_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_GraphExecutionTrace_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n*tensorflow/core/protobuf/debug_event.p" + + "roto\022\ntensorflow\0320tensorflow/core/framew" + + "ork/graph_debug_info.proto\032&tensorflow/c" + + "ore/framework/tensor.proto\"\376\003\n\nDebugEven" + + "t\022\021\n\twall_time\030\001 \001(\001\022\014\n\004step\030\002 \001(\003\0223\n\016de" + + "bug_metadata\030\003 \001(\0132\031.tensorflow.DebugMet" + + "adataH\000\022-\n\013source_file\030\004 \001(\0132\026.tensorflo" + + "w.SourceFileH\000\022;\n\023stack_frame_with_id\030\006 " + + "\001(\0132\034.tensorflow.StackFrameWithIdH\000\0228\n\021g" + + "raph_op_creation\030\007 \001(\0132\033.tensorflow.Grap" + + "hOpCreationH\000\0223\n\016debugged_graph\030\010 \001(\0132\031." + + "tensorflow.DebuggedGraphH\000\022*\n\texecution\030" + + "\t \001(\0132\025.tensorflow.ExecutionH\000\022@\n\025graph_" + + "execution_trace\030\n \001(\0132\037.tensorflow.Graph" + + "ExecutionTraceH\000\022\022\n\010graph_id\030\013 \001(\tH\000\0225\n\017" + + "debugged_device\030\014 \001(\0132\032.tensorflow.Debug" + + "gedDeviceH\000B\006\n\004what\"W\n\rDebugMetadata\022\032\n\022" + + "tensorflow_version\030\001 \001(\t\022\024\n\014file_version" + + "\030\002 \001(\t\022\024\n\014tfdbg_run_id\030\003 \001(\t\"A\n\nSourceFi" + + "le\022\021\n\tfile_path\030\001 \001(\t\022\021\n\thost_name\030\002 \001(\t" + + "\022\r\n\005lines\030\003 \003(\t\"]\n\020StackFrameWithId\022\n\n\002i" + + "d\030\001 \001(\t\022=\n\rfile_line_col\030\002 \001(\0132&.tensorf" + + "low.GraphDebugInfo.FileLineCol\":\n\014CodeLo" + + "cation\022\021\n\thost_name\030\001 \001(\t\022\027\n\017stack_frame" + + "_ids\030\002 \003(\t\"\344\001\n\017GraphOpCreation\022\017\n\007op_typ" + + "e\030\001 \001(\t\022\017\n\007op_name\030\002 \001(\t\022\022\n\ngraph_name\030\003" + + " \001(\t\022\020\n\010graph_id\030\004 \001(\t\022\023\n\013device_name\030\005 " + + "\001(\t\022\023\n\013input_names\030\006 \003(\t\022\023\n\013num_outputs\030" + + "\007 \001(\005\022/\n\rcode_location\030\010 \001(\0132\030.tensorflo" + + "w.CodeLocation\022\031\n\021output_tensor_ids\030\t \003(" + + "\005\"\245\001\n\rDebuggedGraph\022\020\n\010graph_id\030\001 \001(\t\022\022\n" + + "\ngraph_name\030\002 \001(\t\022\030\n\020instrumented_ops\030\003 " + + "\003(\t\022\032\n\022original_graph_def\030\004 \001(\014\022\036\n\026instr" + + "umented_graph_def\030\005 \001(\014\022\030\n\020outer_context" + + "_id\030\006 \001(\t\"8\n\016DebuggedDevice\022\023\n\013device_na" + + "me\030\001 \001(\t\022\021\n\tdevice_id\030\002 \001(\005\"\263\002\n\tExecutio" + + "n\022\017\n\007op_type\030\001 \001(\t\022\023\n\013num_outputs\030\002 \001(\005\022" + + "\020\n\010graph_id\030\003 \001(\t\022\030\n\020input_tensor_ids\030\004 " + + "\003(\003\022\031\n\021output_tensor_ids\030\005 \003(\003\0226\n\021tensor" + + "_debug_mode\030\006 \001(\0162\033.tensorflow.TensorDeb" + + "ugMode\022.\n\rtensor_protos\030\007 \003(\0132\027.tensorfl" + + "ow.TensorProto\022/\n\rcode_location\030\010 \001(\0132\030." + + "tensorflow.CodeLocation\022 \n\030output_tensor" + + "_device_ids\030\t \003(\005\"\321\001\n\023GraphExecutionTrac" + + "e\022\030\n\020tfdbg_context_id\030\001 \001(\t\022\017\n\007op_name\030\002" + + " \001(\t\022\023\n\013output_slot\030\003 \001(\005\0226\n\021tensor_debu" + + "g_mode\030\004 \001(\0162\033.tensorflow.TensorDebugMod" + + "e\022-\n\014tensor_proto\030\005 \001(\0132\027.tensorflow.Ten" + + "sorProto\022\023\n\013device_name\030\006 \001(\t*\266\001\n\017Tensor" + + "DebugMode\022\017\n\013UNSPECIFIED\020\000\022\r\n\tNO_TENSOR\020" + + "\001\022\017\n\013CURT_HEALTH\020\002\022\022\n\016CONCISE_HEALTH\020\003\022\017" + + "\n\013FULL_HEALTH\020\004\022\t\n\005SHAPE\020\005\022\021\n\rFULL_NUMER" + + "ICS\020\006\022\017\n\013FULL_TENSOR\020\007\022\036\n\032REDUCE_INF_NAN" + + "_THREE_SLOTS\020\010B\204\001\n\024org.tensorflow.protoB" + + "\020DebugEventProtosP\001ZUgithub.com/tensorfl" + + "ow/tensorflow/tensorflow/go/core/protobu" + + "f/for_core_protos_go_proto\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + org.tensorflow.proto.GraphDebugInfoProtos.getDescriptor(), + org.tensorflow.proto.TensorProtos.getDescriptor(), + }); + internal_static_tensorflow_DebugEvent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_DebugEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_DebugEvent_descriptor, + new java.lang.String[] { "WallTime", "Step", "DebugMetadata", "SourceFile", "StackFrameWithId", "GraphOpCreation", "DebuggedGraph", "Execution", "GraphExecutionTrace", "GraphId", "DebuggedDevice", "What", }); + internal_static_tensorflow_DebugMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_tensorflow_DebugMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_DebugMetadata_descriptor, + new java.lang.String[] { "TensorflowVersion", "FileVersion", "TfdbgRunId", }); + internal_static_tensorflow_SourceFile_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_tensorflow_SourceFile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_SourceFile_descriptor, + new java.lang.String[] { "FilePath", "HostName", "Lines", }); + internal_static_tensorflow_StackFrameWithId_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_tensorflow_StackFrameWithId_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_StackFrameWithId_descriptor, + new java.lang.String[] { "Id", "FileLineCol", }); + internal_static_tensorflow_CodeLocation_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_tensorflow_CodeLocation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_CodeLocation_descriptor, + new java.lang.String[] { "HostName", "StackFrameIds", }); + internal_static_tensorflow_GraphOpCreation_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_tensorflow_GraphOpCreation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_GraphOpCreation_descriptor, + new java.lang.String[] { "OpType", "OpName", "GraphName", "GraphId", "DeviceName", "InputNames", "NumOutputs", "CodeLocation", "OutputTensorIds", }); + internal_static_tensorflow_DebuggedGraph_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_tensorflow_DebuggedGraph_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_DebuggedGraph_descriptor, + new java.lang.String[] { "GraphId", "GraphName", "InstrumentedOps", "OriginalGraphDef", "InstrumentedGraphDef", "OuterContextId", }); + internal_static_tensorflow_DebuggedDevice_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_tensorflow_DebuggedDevice_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_DebuggedDevice_descriptor, + new java.lang.String[] { "DeviceName", "DeviceId", }); + internal_static_tensorflow_Execution_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_tensorflow_Execution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_Execution_descriptor, + new java.lang.String[] { "OpType", "NumOutputs", "GraphId", "InputTensorIds", "OutputTensorIds", "TensorDebugMode", "TensorProtos", "CodeLocation", "OutputTensorDeviceIds", }); + internal_static_tensorflow_GraphExecutionTrace_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_tensorflow_GraphExecutionTrace_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_GraphExecutionTrace_descriptor, + new java.lang.String[] { "TfdbgContextId", "OpName", "OutputSlot", "TensorDebugMode", "TensorProto", "DeviceName", }); + org.tensorflow.proto.GraphDebugInfoProtos.getDescriptor(); + org.tensorflow.proto.TensorProtos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/DebugMetadata.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugMetadata.java similarity index 77% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/DebugMetadata.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugMetadata.java index e0679182c6e..5011c29198b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/DebugMetadata.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugMetadata.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug_event.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; /** *
@@ -10,7 +10,7 @@
  *
  * Protobuf type {@code tensorflow.DebugMetadata}
  */
-public  final class DebugMetadata extends
+public final class DebugMetadata extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.DebugMetadata)
     DebugMetadataOrBuilder {
@@ -37,72 +37,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private DebugMetadata(
-      com.google.protobuf.CodedInputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws com.google.protobuf.InvalidProtocolBufferException {
-    this();
-    if (extensionRegistry == null) {
-      throw new java.lang.NullPointerException();
-    }
-    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
-        com.google.protobuf.UnknownFieldSet.newBuilder();
-    try {
-      boolean done = false;
-      while (!done) {
-        int tag = input.readTag();
-        switch (tag) {
-          case 0:
-            done = true;
-            break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            tensorflowVersion_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            fileVersion_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            tfdbgRunId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
-        }
-      }
-    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-      throw e.setUnfinishedMessage(this);
-    } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
-    } finally {
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_DebugMetadata_descriptor;
+    return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_DebugMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_DebugMetadata_fieldAccessorTable
+    return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_DebugMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.util.DebugMetadata.class, org.tensorflow.proto.util.DebugMetadata.Builder.class);
+            org.tensorflow.proto.DebugMetadata.class, org.tensorflow.proto.DebugMetadata.Builder.class);
   }
 
   public static final int TENSORFLOW_VERSION_FIELD_NUMBER = 1;
@@ -113,7 +58,9 @@ private DebugMetadata(
    * 
* * string tensorflow_version = 1; + * @return The tensorflowVersion. */ + @java.lang.Override public java.lang.String getTensorflowVersion() { java.lang.Object ref = tensorflowVersion_; if (ref instanceof java.lang.String) { @@ -132,7 +79,9 @@ public java.lang.String getTensorflowVersion() { * * * string tensorflow_version = 1; + * @return The bytes for tensorflowVersion. */ + @java.lang.Override public com.google.protobuf.ByteString getTensorflowVersionBytes() { java.lang.Object ref = tensorflowVersion_; @@ -156,7 +105,9 @@ public java.lang.String getTensorflowVersion() { * * * string file_version = 2; + * @return The fileVersion. */ + @java.lang.Override public java.lang.String getFileVersion() { java.lang.Object ref = fileVersion_; if (ref instanceof java.lang.String) { @@ -176,7 +127,9 @@ public java.lang.String getFileVersion() { * * * string file_version = 2; + * @return The bytes for fileVersion. */ + @java.lang.Override public com.google.protobuf.ByteString getFileVersionBytes() { java.lang.Object ref = fileVersion_; @@ -202,7 +155,9 @@ public java.lang.String getFileVersion() { * * * string tfdbg_run_id = 3; + * @return The tfdbgRunId. */ + @java.lang.Override public java.lang.String getTfdbgRunId() { java.lang.Object ref = tfdbgRunId_; if (ref instanceof java.lang.String) { @@ -224,7 +179,9 @@ public java.lang.String getTfdbgRunId() { * * * string tfdbg_run_id = 3; + * @return The bytes for tfdbgRunId. */ + @java.lang.Override public com.google.protobuf.ByteString getTfdbgRunIdBytes() { java.lang.Object ref = tfdbgRunId_; @@ -253,16 +210,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTensorflowVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tensorflowVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tensorflowVersion_); } - if (!getFileVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fileVersion_); } - if (!getTfdbgRunIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tfdbgRunId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tfdbgRunId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -271,16 +228,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTensorflowVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tensorflowVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tensorflowVersion_); } - if (!getFileVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fileVersion_); } - if (!getTfdbgRunIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tfdbgRunId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tfdbgRunId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -290,10 +247,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.util.DebugMetadata)) { + if (!(obj instanceof org.tensorflow.proto.DebugMetadata)) { return super.equals(obj); } - org.tensorflow.proto.util.DebugMetadata other = (org.tensorflow.proto.util.DebugMetadata) obj; + org.tensorflow.proto.DebugMetadata other = (org.tensorflow.proto.DebugMetadata) obj; if (!getTensorflowVersion() .equals(other.getTensorflowVersion())) return false; @@ -301,7 +258,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getFileVersion())) return false; if (!getTfdbgRunId() .equals(other.getTfdbgRunId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -318,74 +275,74 @@ public int hashCode() { hash = (53 * hash) + getFileVersion().hashCode(); hash = (37 * hash) + TFDBG_RUN_ID_FIELD_NUMBER; hash = (53 * hash) + getTfdbgRunId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.util.DebugMetadata parseFrom( + public static org.tensorflow.proto.DebugMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.DebugMetadata parseFrom( + public static org.tensorflow.proto.DebugMetadata parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.DebugMetadata parseFrom( + public static org.tensorflow.proto.DebugMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.DebugMetadata parseFrom( + public static org.tensorflow.proto.DebugMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.DebugMetadata parseFrom(byte[] data) + public static org.tensorflow.proto.DebugMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.DebugMetadata parseFrom( + public static org.tensorflow.proto.DebugMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.DebugMetadata parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.DebugMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.DebugMetadata parseFrom( + public static org.tensorflow.proto.DebugMetadata 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 org.tensorflow.proto.util.DebugMetadata parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.DebugMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.DebugMetadata parseDelimitedFrom( + public static org.tensorflow.proto.DebugMetadata 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 org.tensorflow.proto.util.DebugMetadata parseFrom( + public static org.tensorflow.proto.DebugMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.DebugMetadata parseFrom( + public static org.tensorflow.proto.DebugMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -398,7 +355,7 @@ public static org.tensorflow.proto.util.DebugMetadata parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.util.DebugMetadata prototype) { + public static Builder newBuilder(org.tensorflow.proto.DebugMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -423,34 +380,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.DebugMetadata) - org.tensorflow.proto.util.DebugMetadataOrBuilder { + org.tensorflow.proto.DebugMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_DebugMetadata_descriptor; + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_DebugMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_DebugMetadata_fieldAccessorTable + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_DebugMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.util.DebugMetadata.class, org.tensorflow.proto.util.DebugMetadata.Builder.class); + org.tensorflow.proto.DebugMetadata.class, org.tensorflow.proto.DebugMetadata.Builder.class); } - // Construct using org.tensorflow.proto.util.DebugMetadata.newBuilder() + // Construct using org.tensorflow.proto.DebugMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -467,17 +419,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_DebugMetadata_descriptor; + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_DebugMetadata_descriptor; } @java.lang.Override - public org.tensorflow.proto.util.DebugMetadata getDefaultInstanceForType() { - return org.tensorflow.proto.util.DebugMetadata.getDefaultInstance(); + public org.tensorflow.proto.DebugMetadata getDefaultInstanceForType() { + return org.tensorflow.proto.DebugMetadata.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.util.DebugMetadata build() { - org.tensorflow.proto.util.DebugMetadata result = buildPartial(); + public org.tensorflow.proto.DebugMetadata build() { + org.tensorflow.proto.DebugMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -485,8 +437,8 @@ public org.tensorflow.proto.util.DebugMetadata build() { } @java.lang.Override - public org.tensorflow.proto.util.DebugMetadata buildPartial() { - org.tensorflow.proto.util.DebugMetadata result = new org.tensorflow.proto.util.DebugMetadata(this); + public org.tensorflow.proto.DebugMetadata buildPartial() { + org.tensorflow.proto.DebugMetadata result = new org.tensorflow.proto.DebugMetadata(this); result.tensorflowVersion_ = tensorflowVersion_; result.fileVersion_ = fileVersion_; result.tfdbgRunId_ = tfdbgRunId_; @@ -528,16 +480,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.util.DebugMetadata) { - return mergeFrom((org.tensorflow.proto.util.DebugMetadata)other); + if (other instanceof org.tensorflow.proto.DebugMetadata) { + return mergeFrom((org.tensorflow.proto.DebugMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.util.DebugMetadata other) { - if (other == org.tensorflow.proto.util.DebugMetadata.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.DebugMetadata other) { + if (other == org.tensorflow.proto.DebugMetadata.getDefaultInstance()) return this; if (!other.getTensorflowVersion().isEmpty()) { tensorflowVersion_ = other.tensorflowVersion_; onChanged(); @@ -550,7 +502,7 @@ public Builder mergeFrom(org.tensorflow.proto.util.DebugMetadata other) { tfdbgRunId_ = other.tfdbgRunId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -565,17 +517,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.util.DebugMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + tensorflowVersion_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + fileVersion_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + tfdbgRunId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + 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) { - parsedMessage = (org.tensorflow.proto.util.DebugMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -586,6 +566,7 @@ public Builder mergeFrom( * * * string tensorflow_version = 1; + * @return The tensorflowVersion. */ public java.lang.String getTensorflowVersion() { java.lang.Object ref = tensorflowVersion_; @@ -605,6 +586,7 @@ public java.lang.String getTensorflowVersion() { * * * string tensorflow_version = 1; + * @return The bytes for tensorflowVersion. */ public com.google.protobuf.ByteString getTensorflowVersionBytes() { @@ -625,6 +607,8 @@ public java.lang.String getTensorflowVersion() { * * * string tensorflow_version = 1; + * @param value The tensorflowVersion to set. + * @return This builder for chaining. */ public Builder setTensorflowVersion( java.lang.String value) { @@ -642,6 +626,7 @@ public Builder setTensorflowVersion( * * * string tensorflow_version = 1; + * @return This builder for chaining. */ public Builder clearTensorflowVersion() { @@ -655,6 +640,8 @@ public Builder clearTensorflowVersion() { * * * string tensorflow_version = 1; + * @param value The bytes for tensorflowVersion to set. + * @return This builder for chaining. */ public Builder setTensorflowVersionBytes( com.google.protobuf.ByteString value) { @@ -676,6 +663,7 @@ public Builder setTensorflowVersionBytes( * * * string file_version = 2; + * @return The fileVersion. */ public java.lang.String getFileVersion() { java.lang.Object ref = fileVersion_; @@ -696,6 +684,7 @@ public java.lang.String getFileVersion() { * * * string file_version = 2; + * @return The bytes for fileVersion. */ public com.google.protobuf.ByteString getFileVersionBytes() { @@ -717,6 +706,8 @@ public java.lang.String getFileVersion() { * * * string file_version = 2; + * @param value The fileVersion to set. + * @return This builder for chaining. */ public Builder setFileVersion( java.lang.String value) { @@ -735,6 +726,7 @@ public Builder setFileVersion( * * * string file_version = 2; + * @return This builder for chaining. */ public Builder clearFileVersion() { @@ -749,6 +741,8 @@ public Builder clearFileVersion() { * * * string file_version = 2; + * @param value The bytes for fileVersion to set. + * @return This builder for chaining. */ public Builder setFileVersionBytes( com.google.protobuf.ByteString value) { @@ -772,6 +766,7 @@ public Builder setFileVersionBytes( * * * string tfdbg_run_id = 3; + * @return The tfdbgRunId. */ public java.lang.String getTfdbgRunId() { java.lang.Object ref = tfdbgRunId_; @@ -794,6 +789,7 @@ public java.lang.String getTfdbgRunId() { * * * string tfdbg_run_id = 3; + * @return The bytes for tfdbgRunId. */ public com.google.protobuf.ByteString getTfdbgRunIdBytes() { @@ -817,6 +813,8 @@ public java.lang.String getTfdbgRunId() { * * * string tfdbg_run_id = 3; + * @param value The tfdbgRunId to set. + * @return This builder for chaining. */ public Builder setTfdbgRunId( java.lang.String value) { @@ -837,6 +835,7 @@ public Builder setTfdbgRunId( * * * string tfdbg_run_id = 3; + * @return This builder for chaining. */ public Builder clearTfdbgRunId() { @@ -853,6 +852,8 @@ public Builder clearTfdbgRunId() { * * * string tfdbg_run_id = 3; + * @param value The bytes for tfdbgRunId to set. + * @return This builder for chaining. */ public Builder setTfdbgRunIdBytes( com.google.protobuf.ByteString value) { @@ -882,12 +883,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.DebugMetadata) - private static final org.tensorflow.proto.util.DebugMetadata DEFAULT_INSTANCE; + private static final org.tensorflow.proto.DebugMetadata DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.util.DebugMetadata(); + DEFAULT_INSTANCE = new org.tensorflow.proto.DebugMetadata(); } - public static org.tensorflow.proto.util.DebugMetadata getDefaultInstance() { + public static org.tensorflow.proto.DebugMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -898,7 +899,18 @@ public DebugMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DebugMetadata(input, extensionRegistry); + 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(); } }; @@ -912,7 +924,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.util.DebugMetadata getDefaultInstanceForType() { + public org.tensorflow.proto.DebugMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/DebugMetadataOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugMetadataOrBuilder.java similarity index 87% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/DebugMetadataOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugMetadataOrBuilder.java index 91015599f7d..cc682b4fa75 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/DebugMetadataOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugMetadataOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug_event.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; public interface DebugMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.DebugMetadata) @@ -13,6 +13,7 @@ public interface DebugMetadataOrBuilder extends * * * string tensorflow_version = 1; + * @return The tensorflowVersion. */ java.lang.String getTensorflowVersion(); /** @@ -21,6 +22,7 @@ public interface DebugMetadataOrBuilder extends * * * string tensorflow_version = 1; + * @return The bytes for tensorflowVersion. */ com.google.protobuf.ByteString getTensorflowVersionBytes(); @@ -32,6 +34,7 @@ public interface DebugMetadataOrBuilder extends * * * string file_version = 2; + * @return The fileVersion. */ java.lang.String getFileVersion(); /** @@ -41,6 +44,7 @@ public interface DebugMetadataOrBuilder extends * * * string file_version = 2; + * @return The bytes for fileVersion. */ com.google.protobuf.ByteString getFileVersionBytes(); @@ -54,6 +58,7 @@ public interface DebugMetadataOrBuilder extends * * * string tfdbg_run_id = 3; + * @return The tfdbgRunId. */ java.lang.String getTfdbgRunId(); /** @@ -65,6 +70,7 @@ public interface DebugMetadataOrBuilder extends * * * string tfdbg_run_id = 3; + * @return The bytes for tfdbgRunId. */ com.google.protobuf.ByteString getTfdbgRunIdBytes(); diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugOptions.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugOptions.java new file mode 100644 index 00000000000..2505c073620 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugOptions.java @@ -0,0 +1,1034 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/debug.proto + +package org.tensorflow.proto; + +/** + *
+ * Options for initializing DebuggerState in TensorFlow Debugger (tfdbg).
+ * 
+ * + * Protobuf type {@code tensorflow.DebugOptions} + */ +public final class DebugOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.DebugOptions) + DebugOptionsOrBuilder { +private static final long serialVersionUID = 0L; + // Use DebugOptions.newBuilder() to construct. + private DebugOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DebugOptions() { + debugTensorWatchOpts_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DebugOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DebugProtos.internal_static_tensorflow_DebugOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DebugProtos.internal_static_tensorflow_DebugOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.DebugOptions.class, org.tensorflow.proto.DebugOptions.Builder.class); + } + + public static final int DEBUG_TENSOR_WATCH_OPTS_FIELD_NUMBER = 4; + private java.util.List debugTensorWatchOpts_; + /** + *
+   * Debugging options
+   * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + @java.lang.Override + public java.util.List getDebugTensorWatchOptsList() { + return debugTensorWatchOpts_; + } + /** + *
+   * Debugging options
+   * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + @java.lang.Override + public java.util.List + getDebugTensorWatchOptsOrBuilderList() { + return debugTensorWatchOpts_; + } + /** + *
+   * Debugging options
+   * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + @java.lang.Override + public int getDebugTensorWatchOptsCount() { + return debugTensorWatchOpts_.size(); + } + /** + *
+   * Debugging options
+   * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + @java.lang.Override + public org.tensorflow.proto.DebugTensorWatch getDebugTensorWatchOpts(int index) { + return debugTensorWatchOpts_.get(index); + } + /** + *
+   * Debugging options
+   * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + @java.lang.Override + public org.tensorflow.proto.DebugTensorWatchOrBuilder getDebugTensorWatchOptsOrBuilder( + int index) { + return debugTensorWatchOpts_.get(index); + } + + public static final int GLOBAL_STEP_FIELD_NUMBER = 10; + private long globalStep_; + /** + *
+   * Caller-specified global step count.
+   * Note that this is distinct from the session run count and the executor
+   * step count.
+   * 
+ * + * int64 global_step = 10; + * @return The globalStep. + */ + @java.lang.Override + public long getGlobalStep() { + return globalStep_; + } + + public static final int RESET_DISK_BYTE_USAGE_FIELD_NUMBER = 11; + private boolean resetDiskByteUsage_; + /** + *
+   * Whether the total disk usage of tfdbg is to be reset to zero
+   * in this Session.run call. This is used by wrappers and hooks
+   * such as the local CLI ones to indicate that the dumped tensors
+   * are cleaned up from the disk after each Session.run.
+   * 
+ * + * bool reset_disk_byte_usage = 11; + * @return The resetDiskByteUsage. + */ + @java.lang.Override + public boolean getResetDiskByteUsage() { + return resetDiskByteUsage_; + } + + 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 < debugTensorWatchOpts_.size(); i++) { + output.writeMessage(4, debugTensorWatchOpts_.get(i)); + } + if (globalStep_ != 0L) { + output.writeInt64(10, globalStep_); + } + if (resetDiskByteUsage_ != false) { + output.writeBool(11, resetDiskByteUsage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < debugTensorWatchOpts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, debugTensorWatchOpts_.get(i)); + } + if (globalStep_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(10, globalStep_); + } + if (resetDiskByteUsage_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(11, resetDiskByteUsage_); + } + 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 org.tensorflow.proto.DebugOptions)) { + return super.equals(obj); + } + org.tensorflow.proto.DebugOptions other = (org.tensorflow.proto.DebugOptions) obj; + + if (!getDebugTensorWatchOptsList() + .equals(other.getDebugTensorWatchOptsList())) return false; + if (getGlobalStep() + != other.getGlobalStep()) return false; + if (getResetDiskByteUsage() + != other.getResetDiskByteUsage()) 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 (getDebugTensorWatchOptsCount() > 0) { + hash = (37 * hash) + DEBUG_TENSOR_WATCH_OPTS_FIELD_NUMBER; + hash = (53 * hash) + getDebugTensorWatchOptsList().hashCode(); + } + hash = (37 * hash) + GLOBAL_STEP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getGlobalStep()); + hash = (37 * hash) + RESET_DISK_BYTE_USAGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getResetDiskByteUsage()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.DebugOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.DebugOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.DebugOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.DebugOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.DebugOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.DebugOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.DebugOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.DebugOptions 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 org.tensorflow.proto.DebugOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.DebugOptions 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 org.tensorflow.proto.DebugOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.DebugOptions 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(org.tensorflow.proto.DebugOptions 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; + } + /** + *
+   * Options for initializing DebuggerState in TensorFlow Debugger (tfdbg).
+   * 
+ * + * Protobuf type {@code tensorflow.DebugOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.DebugOptions) + org.tensorflow.proto.DebugOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DebugProtos.internal_static_tensorflow_DebugOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DebugProtos.internal_static_tensorflow_DebugOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.DebugOptions.class, org.tensorflow.proto.DebugOptions.Builder.class); + } + + // Construct using org.tensorflow.proto.DebugOptions.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (debugTensorWatchOptsBuilder_ == null) { + debugTensorWatchOpts_ = java.util.Collections.emptyList(); + } else { + debugTensorWatchOpts_ = null; + debugTensorWatchOptsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + globalStep_ = 0L; + + resetDiskByteUsage_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.DebugProtos.internal_static_tensorflow_DebugOptions_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.DebugOptions getDefaultInstanceForType() { + return org.tensorflow.proto.DebugOptions.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.DebugOptions build() { + org.tensorflow.proto.DebugOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.DebugOptions buildPartial() { + org.tensorflow.proto.DebugOptions result = new org.tensorflow.proto.DebugOptions(this); + int from_bitField0_ = bitField0_; + if (debugTensorWatchOptsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + debugTensorWatchOpts_ = java.util.Collections.unmodifiableList(debugTensorWatchOpts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.debugTensorWatchOpts_ = debugTensorWatchOpts_; + } else { + result.debugTensorWatchOpts_ = debugTensorWatchOptsBuilder_.build(); + } + result.globalStep_ = globalStep_; + result.resetDiskByteUsage_ = resetDiskByteUsage_; + 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 org.tensorflow.proto.DebugOptions) { + return mergeFrom((org.tensorflow.proto.DebugOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.DebugOptions other) { + if (other == org.tensorflow.proto.DebugOptions.getDefaultInstance()) return this; + if (debugTensorWatchOptsBuilder_ == null) { + if (!other.debugTensorWatchOpts_.isEmpty()) { + if (debugTensorWatchOpts_.isEmpty()) { + debugTensorWatchOpts_ = other.debugTensorWatchOpts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDebugTensorWatchOptsIsMutable(); + debugTensorWatchOpts_.addAll(other.debugTensorWatchOpts_); + } + onChanged(); + } + } else { + if (!other.debugTensorWatchOpts_.isEmpty()) { + if (debugTensorWatchOptsBuilder_.isEmpty()) { + debugTensorWatchOptsBuilder_.dispose(); + debugTensorWatchOptsBuilder_ = null; + debugTensorWatchOpts_ = other.debugTensorWatchOpts_; + bitField0_ = (bitField0_ & ~0x00000001); + debugTensorWatchOptsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDebugTensorWatchOptsFieldBuilder() : null; + } else { + debugTensorWatchOptsBuilder_.addAllMessages(other.debugTensorWatchOpts_); + } + } + } + if (other.getGlobalStep() != 0L) { + setGlobalStep(other.getGlobalStep()); + } + if (other.getResetDiskByteUsage() != false) { + setResetDiskByteUsage(other.getResetDiskByteUsage()); + } + 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 34: { + org.tensorflow.proto.DebugTensorWatch m = + input.readMessage( + org.tensorflow.proto.DebugTensorWatch.parser(), + extensionRegistry); + if (debugTensorWatchOptsBuilder_ == null) { + ensureDebugTensorWatchOptsIsMutable(); + debugTensorWatchOpts_.add(m); + } else { + debugTensorWatchOptsBuilder_.addMessage(m); + } + break; + } // case 34 + case 80: { + globalStep_ = input.readInt64(); + + break; + } // case 80 + case 88: { + resetDiskByteUsage_ = input.readBool(); + + break; + } // case 88 + 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.util.List debugTensorWatchOpts_ = + java.util.Collections.emptyList(); + private void ensureDebugTensorWatchOptsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + debugTensorWatchOpts_ = new java.util.ArrayList(debugTensorWatchOpts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.DebugTensorWatch, org.tensorflow.proto.DebugTensorWatch.Builder, org.tensorflow.proto.DebugTensorWatchOrBuilder> debugTensorWatchOptsBuilder_; + + /** + *
+     * Debugging options
+     * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + public java.util.List getDebugTensorWatchOptsList() { + if (debugTensorWatchOptsBuilder_ == null) { + return java.util.Collections.unmodifiableList(debugTensorWatchOpts_); + } else { + return debugTensorWatchOptsBuilder_.getMessageList(); + } + } + /** + *
+     * Debugging options
+     * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + public int getDebugTensorWatchOptsCount() { + if (debugTensorWatchOptsBuilder_ == null) { + return debugTensorWatchOpts_.size(); + } else { + return debugTensorWatchOptsBuilder_.getCount(); + } + } + /** + *
+     * Debugging options
+     * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + public org.tensorflow.proto.DebugTensorWatch getDebugTensorWatchOpts(int index) { + if (debugTensorWatchOptsBuilder_ == null) { + return debugTensorWatchOpts_.get(index); + } else { + return debugTensorWatchOptsBuilder_.getMessage(index); + } + } + /** + *
+     * Debugging options
+     * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + public Builder setDebugTensorWatchOpts( + int index, org.tensorflow.proto.DebugTensorWatch value) { + if (debugTensorWatchOptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDebugTensorWatchOptsIsMutable(); + debugTensorWatchOpts_.set(index, value); + onChanged(); + } else { + debugTensorWatchOptsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Debugging options
+     * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + public Builder setDebugTensorWatchOpts( + int index, org.tensorflow.proto.DebugTensorWatch.Builder builderForValue) { + if (debugTensorWatchOptsBuilder_ == null) { + ensureDebugTensorWatchOptsIsMutable(); + debugTensorWatchOpts_.set(index, builderForValue.build()); + onChanged(); + } else { + debugTensorWatchOptsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Debugging options
+     * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + public Builder addDebugTensorWatchOpts(org.tensorflow.proto.DebugTensorWatch value) { + if (debugTensorWatchOptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDebugTensorWatchOptsIsMutable(); + debugTensorWatchOpts_.add(value); + onChanged(); + } else { + debugTensorWatchOptsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Debugging options
+     * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + public Builder addDebugTensorWatchOpts( + int index, org.tensorflow.proto.DebugTensorWatch value) { + if (debugTensorWatchOptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDebugTensorWatchOptsIsMutable(); + debugTensorWatchOpts_.add(index, value); + onChanged(); + } else { + debugTensorWatchOptsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Debugging options
+     * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + public Builder addDebugTensorWatchOpts( + org.tensorflow.proto.DebugTensorWatch.Builder builderForValue) { + if (debugTensorWatchOptsBuilder_ == null) { + ensureDebugTensorWatchOptsIsMutable(); + debugTensorWatchOpts_.add(builderForValue.build()); + onChanged(); + } else { + debugTensorWatchOptsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Debugging options
+     * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + public Builder addDebugTensorWatchOpts( + int index, org.tensorflow.proto.DebugTensorWatch.Builder builderForValue) { + if (debugTensorWatchOptsBuilder_ == null) { + ensureDebugTensorWatchOptsIsMutable(); + debugTensorWatchOpts_.add(index, builderForValue.build()); + onChanged(); + } else { + debugTensorWatchOptsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Debugging options
+     * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + public Builder addAllDebugTensorWatchOpts( + java.lang.Iterable values) { + if (debugTensorWatchOptsBuilder_ == null) { + ensureDebugTensorWatchOptsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, debugTensorWatchOpts_); + onChanged(); + } else { + debugTensorWatchOptsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Debugging options
+     * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + public Builder clearDebugTensorWatchOpts() { + if (debugTensorWatchOptsBuilder_ == null) { + debugTensorWatchOpts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + debugTensorWatchOptsBuilder_.clear(); + } + return this; + } + /** + *
+     * Debugging options
+     * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + public Builder removeDebugTensorWatchOpts(int index) { + if (debugTensorWatchOptsBuilder_ == null) { + ensureDebugTensorWatchOptsIsMutable(); + debugTensorWatchOpts_.remove(index); + onChanged(); + } else { + debugTensorWatchOptsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Debugging options
+     * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + public org.tensorflow.proto.DebugTensorWatch.Builder getDebugTensorWatchOptsBuilder( + int index) { + return getDebugTensorWatchOptsFieldBuilder().getBuilder(index); + } + /** + *
+     * Debugging options
+     * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + public org.tensorflow.proto.DebugTensorWatchOrBuilder getDebugTensorWatchOptsOrBuilder( + int index) { + if (debugTensorWatchOptsBuilder_ == null) { + return debugTensorWatchOpts_.get(index); } else { + return debugTensorWatchOptsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Debugging options
+     * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + public java.util.List + getDebugTensorWatchOptsOrBuilderList() { + if (debugTensorWatchOptsBuilder_ != null) { + return debugTensorWatchOptsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(debugTensorWatchOpts_); + } + } + /** + *
+     * Debugging options
+     * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + public org.tensorflow.proto.DebugTensorWatch.Builder addDebugTensorWatchOptsBuilder() { + return getDebugTensorWatchOptsFieldBuilder().addBuilder( + org.tensorflow.proto.DebugTensorWatch.getDefaultInstance()); + } + /** + *
+     * Debugging options
+     * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + public org.tensorflow.proto.DebugTensorWatch.Builder addDebugTensorWatchOptsBuilder( + int index) { + return getDebugTensorWatchOptsFieldBuilder().addBuilder( + index, org.tensorflow.proto.DebugTensorWatch.getDefaultInstance()); + } + /** + *
+     * Debugging options
+     * 
+ * + * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; + */ + public java.util.List + getDebugTensorWatchOptsBuilderList() { + return getDebugTensorWatchOptsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.DebugTensorWatch, org.tensorflow.proto.DebugTensorWatch.Builder, org.tensorflow.proto.DebugTensorWatchOrBuilder> + getDebugTensorWatchOptsFieldBuilder() { + if (debugTensorWatchOptsBuilder_ == null) { + debugTensorWatchOptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.DebugTensorWatch, org.tensorflow.proto.DebugTensorWatch.Builder, org.tensorflow.proto.DebugTensorWatchOrBuilder>( + debugTensorWatchOpts_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + debugTensorWatchOpts_ = null; + } + return debugTensorWatchOptsBuilder_; + } + + private long globalStep_ ; + /** + *
+     * Caller-specified global step count.
+     * Note that this is distinct from the session run count and the executor
+     * step count.
+     * 
+ * + * int64 global_step = 10; + * @return The globalStep. + */ + @java.lang.Override + public long getGlobalStep() { + return globalStep_; + } + /** + *
+     * Caller-specified global step count.
+     * Note that this is distinct from the session run count and the executor
+     * step count.
+     * 
+ * + * int64 global_step = 10; + * @param value The globalStep to set. + * @return This builder for chaining. + */ + public Builder setGlobalStep(long value) { + + globalStep_ = value; + onChanged(); + return this; + } + /** + *
+     * Caller-specified global step count.
+     * Note that this is distinct from the session run count and the executor
+     * step count.
+     * 
+ * + * int64 global_step = 10; + * @return This builder for chaining. + */ + public Builder clearGlobalStep() { + + globalStep_ = 0L; + onChanged(); + return this; + } + + private boolean resetDiskByteUsage_ ; + /** + *
+     * Whether the total disk usage of tfdbg is to be reset to zero
+     * in this Session.run call. This is used by wrappers and hooks
+     * such as the local CLI ones to indicate that the dumped tensors
+     * are cleaned up from the disk after each Session.run.
+     * 
+ * + * bool reset_disk_byte_usage = 11; + * @return The resetDiskByteUsage. + */ + @java.lang.Override + public boolean getResetDiskByteUsage() { + return resetDiskByteUsage_; + } + /** + *
+     * Whether the total disk usage of tfdbg is to be reset to zero
+     * in this Session.run call. This is used by wrappers and hooks
+     * such as the local CLI ones to indicate that the dumped tensors
+     * are cleaned up from the disk after each Session.run.
+     * 
+ * + * bool reset_disk_byte_usage = 11; + * @param value The resetDiskByteUsage to set. + * @return This builder for chaining. + */ + public Builder setResetDiskByteUsage(boolean value) { + + resetDiskByteUsage_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether the total disk usage of tfdbg is to be reset to zero
+     * in this Session.run call. This is used by wrappers and hooks
+     * such as the local CLI ones to indicate that the dumped tensors
+     * are cleaned up from the disk after each Session.run.
+     * 
+ * + * bool reset_disk_byte_usage = 11; + * @return This builder for chaining. + */ + public Builder clearResetDiskByteUsage() { + + resetDiskByteUsage_ = false; + 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:tensorflow.DebugOptions) + } + + // @@protoc_insertion_point(class_scope:tensorflow.DebugOptions) + private static final org.tensorflow.proto.DebugOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.DebugOptions(); + } + + public static org.tensorflow.proto.DebugOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DebugOptions 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 org.tensorflow.proto.DebugOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebugOptionsOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugOptionsOrBuilder.java similarity index 82% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebugOptionsOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugOptionsOrBuilder.java index 65f0407737a..6ab43626e54 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebugOptionsOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugOptionsOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface DebugOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.DebugOptions) @@ -14,7 +14,7 @@ public interface DebugOptionsOrBuilder extends * * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4; */ - java.util.List + java.util.List getDebugTensorWatchOptsList(); /** *
@@ -23,7 +23,7 @@ public interface DebugOptionsOrBuilder extends
    *
    * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
    */
-  org.tensorflow.proto.framework.DebugTensorWatch getDebugTensorWatchOpts(int index);
+  org.tensorflow.proto.DebugTensorWatch getDebugTensorWatchOpts(int index);
   /**
    * 
    * Debugging options
@@ -39,7 +39,7 @@ public interface DebugOptionsOrBuilder extends
    *
    * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
    */
-  java.util.List 
+  java.util.List 
       getDebugTensorWatchOptsOrBuilderList();
   /**
    * 
@@ -48,7 +48,7 @@ public interface DebugOptionsOrBuilder extends
    *
    * repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
    */
-  org.tensorflow.proto.framework.DebugTensorWatchOrBuilder getDebugTensorWatchOptsOrBuilder(
+  org.tensorflow.proto.DebugTensorWatchOrBuilder getDebugTensorWatchOptsOrBuilder(
       int index);
 
   /**
@@ -59,6 +59,7 @@ org.tensorflow.proto.framework.DebugTensorWatchOrBuilder getDebugTensorWatchOpts
    * 
* * int64 global_step = 10; + * @return The globalStep. */ long getGlobalStep(); @@ -71,6 +72,7 @@ org.tensorflow.proto.framework.DebugTensorWatchOrBuilder getDebugTensorWatchOpts *
* * bool reset_disk_byte_usage = 11; + * @return The resetDiskByteUsage. */ boolean getResetDiskByteUsage(); } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebugProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugProtos.java similarity index 93% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebugProtos.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugProtos.java index 300d8a92351..59e7c11fbef 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebugProtos.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugProtos.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public final class DebugProtos { private DebugProtos() {} @@ -55,11 +55,11 @@ public static void registerAllExtensions( "\001(\t\022\021\n\tfile_path\030\002 \001(\t\022\025\n\rlast_modified\030" + "\003 \001(\003\022\r\n\005bytes\030\004 \001(\003\022\r\n\005lines\030\005 \003(\t\"K\n\023D" + "ebuggedSourceFiles\0224\n\014source_files\030\001 \003(\013" + - "2\036.tensorflow.DebuggedSourceFileB\211\001\n\036org" + - ".tensorflow.proto.frameworkB\013DebugProtos" + - "P\001ZUgithub.com/tensorflow/tensorflow/ten" + - "sorflow/go/core/protobuf/for_core_protos" + - "_go_proto\370\001\001b\006proto3" + "2\036.tensorflow.DebuggedSourceFileB\177\n\024org." + + "tensorflow.protoB\013DebugProtosP\001ZUgithub." + + "com/tensorflow/tensorflow/tensorflow/go/" + + "core/protobuf/for_core_protos_go_proto\370\001" + + "\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebugTensorWatch.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugTensorWatch.java similarity index 83% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebugTensorWatch.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugTensorWatch.java index 6536f3402fc..660f78682c7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebugTensorWatch.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugTensorWatch.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; /** *
@@ -10,7 +10,7 @@
  *
  * Protobuf type {@code tensorflow.DebugTensorWatch}
  */
-public  final class DebugTensorWatch extends
+public final class DebugTensorWatch extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.DebugTensorWatch)
     DebugTensorWatchOrBuilder {
@@ -37,95 +37,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private DebugTensorWatch(
-      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: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            nodeName_ = s;
-            break;
-          }
-          case 16: {
-
-            outputSlot_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              debugOps_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            debugOps_.add(s);
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              debugUrls_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
-            }
-            debugUrls_.add(s);
-            break;
-          }
-          case 40: {
-
-            tolerateDebugOpCreationFailures_ = input.readBool();
-            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)) {
-        debugOps_ = debugOps_.getUnmodifiableView();
-      }
-      if (((mutable_bitField0_ & 0x00000002) != 0)) {
-        debugUrls_ = debugUrls_.getUnmodifiableView();
-      }
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.framework.DebugProtos.internal_static_tensorflow_DebugTensorWatch_descriptor;
+    return org.tensorflow.proto.DebugProtos.internal_static_tensorflow_DebugTensorWatch_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.framework.DebugProtos.internal_static_tensorflow_DebugTensorWatch_fieldAccessorTable
+    return org.tensorflow.proto.DebugProtos.internal_static_tensorflow_DebugTensorWatch_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.framework.DebugTensorWatch.class, org.tensorflow.proto.framework.DebugTensorWatch.Builder.class);
+            org.tensorflow.proto.DebugTensorWatch.class, org.tensorflow.proto.DebugTensorWatch.Builder.class);
   }
 
   public static final int NODE_NAME_FIELD_NUMBER = 1;
@@ -138,7 +60,9 @@ private DebugTensorWatch(
    * 
* * string node_name = 1; + * @return The nodeName. */ + @java.lang.Override public java.lang.String getNodeName() { java.lang.Object ref = nodeName_; if (ref instanceof java.lang.String) { @@ -159,7 +83,9 @@ public java.lang.String getNodeName() { *
* * string node_name = 1; + * @return The bytes for nodeName. */ + @java.lang.Override public com.google.protobuf.ByteString getNodeNameBytes() { java.lang.Object ref = nodeName_; @@ -186,7 +112,9 @@ public java.lang.String getNodeName() { * * * int32 output_slot = 2; + * @return The outputSlot. */ + @java.lang.Override public int getOutputSlot() { return outputSlot_; } @@ -201,6 +129,7 @@ public int getOutputSlot() { * * * repeated string debug_ops = 3; + * @return A list containing the debugOps. */ public com.google.protobuf.ProtocolStringList getDebugOpsList() { @@ -214,6 +143,7 @@ public int getOutputSlot() { * * * repeated string debug_ops = 3; + * @return The count of debugOps. */ public int getDebugOpsCount() { return debugOps_.size(); @@ -226,6 +156,8 @@ public int getDebugOpsCount() { * * * repeated string debug_ops = 3; + * @param index The index of the element to return. + * @return The debugOps at the given index. */ public java.lang.String getDebugOps(int index) { return debugOps_.get(index); @@ -238,6 +170,8 @@ public java.lang.String getDebugOps(int index) { * * * repeated string debug_ops = 3; + * @param index The index of the value to return. + * @return The bytes of the debugOps at the given index. */ public com.google.protobuf.ByteString getDebugOpsBytes(int index) { @@ -268,6 +202,7 @@ public java.lang.String getDebugOps(int index) { * * * repeated string debug_urls = 4; + * @return A list containing the debugUrls. */ public com.google.protobuf.ProtocolStringList getDebugUrlsList() { @@ -295,6 +230,7 @@ public java.lang.String getDebugOps(int index) { * * * repeated string debug_urls = 4; + * @return The count of debugUrls. */ public int getDebugUrlsCount() { return debugUrls_.size(); @@ -321,6 +257,8 @@ public int getDebugUrlsCount() { * * * repeated string debug_urls = 4; + * @param index The index of the element to return. + * @return The debugUrls at the given index. */ public java.lang.String getDebugUrls(int index) { return debugUrls_.get(index); @@ -347,6 +285,8 @@ public java.lang.String getDebugUrls(int index) { * * * repeated string debug_urls = 4; + * @param index The index of the value to return. + * @return The bytes of the debugUrls at the given index. */ public com.google.protobuf.ByteString getDebugUrlsBytes(int index) { @@ -362,7 +302,9 @@ public java.lang.String getDebugUrls(int index) { * * * bool tolerate_debug_op_creation_failures = 5; + * @return The tolerateDebugOpCreationFailures. */ + @java.lang.Override public boolean getTolerateDebugOpCreationFailures() { return tolerateDebugOpCreationFailures_; } @@ -381,7 +323,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNodeNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeName_); } if (outputSlot_ != 0) { @@ -396,7 +338,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (tolerateDebugOpCreationFailures_ != false) { output.writeBool(5, tolerateDebugOpCreationFailures_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -405,7 +347,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNodeNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeName_); } if (outputSlot_ != 0) { @@ -432,7 +374,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, tolerateDebugOpCreationFailures_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -442,10 +384,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.DebugTensorWatch)) { + if (!(obj instanceof org.tensorflow.proto.DebugTensorWatch)) { return super.equals(obj); } - org.tensorflow.proto.framework.DebugTensorWatch other = (org.tensorflow.proto.framework.DebugTensorWatch) obj; + org.tensorflow.proto.DebugTensorWatch other = (org.tensorflow.proto.DebugTensorWatch) obj; if (!getNodeName() .equals(other.getNodeName())) return false; @@ -457,7 +399,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getDebugUrlsList())) return false; if (getTolerateDebugOpCreationFailures() != other.getTolerateDebugOpCreationFailures()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -483,74 +425,74 @@ public int hashCode() { hash = (37 * hash) + TOLERATE_DEBUG_OP_CREATION_FAILURES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTolerateDebugOpCreationFailures()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.DebugTensorWatch parseFrom( + public static org.tensorflow.proto.DebugTensorWatch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.DebugTensorWatch parseFrom( + public static org.tensorflow.proto.DebugTensorWatch parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.DebugTensorWatch parseFrom( + public static org.tensorflow.proto.DebugTensorWatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.DebugTensorWatch parseFrom( + public static org.tensorflow.proto.DebugTensorWatch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.DebugTensorWatch parseFrom(byte[] data) + public static org.tensorflow.proto.DebugTensorWatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.DebugTensorWatch parseFrom( + public static org.tensorflow.proto.DebugTensorWatch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.DebugTensorWatch parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.DebugTensorWatch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.DebugTensorWatch parseFrom( + public static org.tensorflow.proto.DebugTensorWatch 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 org.tensorflow.proto.framework.DebugTensorWatch parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.DebugTensorWatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.DebugTensorWatch parseDelimitedFrom( + public static org.tensorflow.proto.DebugTensorWatch 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 org.tensorflow.proto.framework.DebugTensorWatch parseFrom( + public static org.tensorflow.proto.DebugTensorWatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.DebugTensorWatch parseFrom( + public static org.tensorflow.proto.DebugTensorWatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -563,7 +505,7 @@ public static org.tensorflow.proto.framework.DebugTensorWatch parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.DebugTensorWatch prototype) { + public static Builder newBuilder(org.tensorflow.proto.DebugTensorWatch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -588,34 +530,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.DebugTensorWatch) - org.tensorflow.proto.framework.DebugTensorWatchOrBuilder { + org.tensorflow.proto.DebugTensorWatchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.DebugProtos.internal_static_tensorflow_DebugTensorWatch_descriptor; + return org.tensorflow.proto.DebugProtos.internal_static_tensorflow_DebugTensorWatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.DebugProtos.internal_static_tensorflow_DebugTensorWatch_fieldAccessorTable + return org.tensorflow.proto.DebugProtos.internal_static_tensorflow_DebugTensorWatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.DebugTensorWatch.class, org.tensorflow.proto.framework.DebugTensorWatch.Builder.class); + org.tensorflow.proto.DebugTensorWatch.class, org.tensorflow.proto.DebugTensorWatch.Builder.class); } - // Construct using org.tensorflow.proto.framework.DebugTensorWatch.newBuilder() + // Construct using org.tensorflow.proto.DebugTensorWatch.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -636,17 +573,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.DebugProtos.internal_static_tensorflow_DebugTensorWatch_descriptor; + return org.tensorflow.proto.DebugProtos.internal_static_tensorflow_DebugTensorWatch_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.DebugTensorWatch getDefaultInstanceForType() { - return org.tensorflow.proto.framework.DebugTensorWatch.getDefaultInstance(); + public org.tensorflow.proto.DebugTensorWatch getDefaultInstanceForType() { + return org.tensorflow.proto.DebugTensorWatch.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.DebugTensorWatch build() { - org.tensorflow.proto.framework.DebugTensorWatch result = buildPartial(); + public org.tensorflow.proto.DebugTensorWatch build() { + org.tensorflow.proto.DebugTensorWatch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -654,8 +591,8 @@ public org.tensorflow.proto.framework.DebugTensorWatch build() { } @java.lang.Override - public org.tensorflow.proto.framework.DebugTensorWatch buildPartial() { - org.tensorflow.proto.framework.DebugTensorWatch result = new org.tensorflow.proto.framework.DebugTensorWatch(this); + public org.tensorflow.proto.DebugTensorWatch buildPartial() { + org.tensorflow.proto.DebugTensorWatch result = new org.tensorflow.proto.DebugTensorWatch(this); int from_bitField0_ = bitField0_; result.nodeName_ = nodeName_; result.outputSlot_ = outputSlot_; @@ -708,16 +645,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.DebugTensorWatch) { - return mergeFrom((org.tensorflow.proto.framework.DebugTensorWatch)other); + if (other instanceof org.tensorflow.proto.DebugTensorWatch) { + return mergeFrom((org.tensorflow.proto.DebugTensorWatch)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.DebugTensorWatch other) { - if (other == org.tensorflow.proto.framework.DebugTensorWatch.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.DebugTensorWatch other) { + if (other == org.tensorflow.proto.DebugTensorWatch.getDefaultInstance()) return this; if (!other.getNodeName().isEmpty()) { nodeName_ = other.nodeName_; onChanged(); @@ -748,7 +685,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.DebugTensorWatch other) if (other.getTolerateDebugOpCreationFailures() != false) { setTolerateDebugOpCreationFailures(other.getTolerateDebugOpCreationFailures()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -763,17 +700,57 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.DebugTensorWatch parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + nodeName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + outputSlot_ = input.readInt32(); + + break; + } // case 16 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureDebugOpsIsMutable(); + debugOps_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureDebugUrlsIsMutable(); + debugUrls_.add(s); + break; + } // case 34 + case 40: { + tolerateDebugOpCreationFailures_ = input.readBool(); + + break; + } // case 40 + 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) { - parsedMessage = (org.tensorflow.proto.framework.DebugTensorWatch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -787,6 +764,7 @@ public Builder mergeFrom( * * * string node_name = 1; + * @return The nodeName. */ public java.lang.String getNodeName() { java.lang.Object ref = nodeName_; @@ -808,6 +786,7 @@ public java.lang.String getNodeName() { * * * string node_name = 1; + * @return The bytes for nodeName. */ public com.google.protobuf.ByteString getNodeNameBytes() { @@ -830,6 +809,8 @@ public java.lang.String getNodeName() { * * * string node_name = 1; + * @param value The nodeName to set. + * @return This builder for chaining. */ public Builder setNodeName( java.lang.String value) { @@ -849,6 +830,7 @@ public Builder setNodeName( * * * string node_name = 1; + * @return This builder for chaining. */ public Builder clearNodeName() { @@ -864,6 +846,8 @@ public Builder clearNodeName() { * * * string node_name = 1; + * @param value The bytes for nodeName to set. + * @return This builder for chaining. */ public Builder setNodeNameBytes( com.google.protobuf.ByteString value) { @@ -888,7 +872,9 @@ public Builder setNodeNameBytes( * * * int32 output_slot = 2; + * @return The outputSlot. */ + @java.lang.Override public int getOutputSlot() { return outputSlot_; } @@ -902,6 +888,8 @@ public int getOutputSlot() { * * * int32 output_slot = 2; + * @param value The outputSlot to set. + * @return This builder for chaining. */ public Builder setOutputSlot(int value) { @@ -919,6 +907,7 @@ public Builder setOutputSlot(int value) { * * * int32 output_slot = 2; + * @return This builder for chaining. */ public Builder clearOutputSlot() { @@ -942,6 +931,7 @@ private void ensureDebugOpsIsMutable() { * * * repeated string debug_ops = 3; + * @return A list containing the debugOps. */ public com.google.protobuf.ProtocolStringList getDebugOpsList() { @@ -955,6 +945,7 @@ private void ensureDebugOpsIsMutable() { * * * repeated string debug_ops = 3; + * @return The count of debugOps. */ public int getDebugOpsCount() { return debugOps_.size(); @@ -967,6 +958,8 @@ public int getDebugOpsCount() { * * * repeated string debug_ops = 3; + * @param index The index of the element to return. + * @return The debugOps at the given index. */ public java.lang.String getDebugOps(int index) { return debugOps_.get(index); @@ -979,6 +972,8 @@ public java.lang.String getDebugOps(int index) { * * * repeated string debug_ops = 3; + * @param index The index of the value to return. + * @return The bytes of the debugOps at the given index. */ public com.google.protobuf.ByteString getDebugOpsBytes(int index) { @@ -992,6 +987,9 @@ public java.lang.String getDebugOps(int index) { * * * repeated string debug_ops = 3; + * @param index The index to set the value at. + * @param value The debugOps to set. + * @return This builder for chaining. */ public Builder setDebugOps( int index, java.lang.String value) { @@ -1011,6 +1009,8 @@ public Builder setDebugOps( * * * repeated string debug_ops = 3; + * @param value The debugOps to add. + * @return This builder for chaining. */ public Builder addDebugOps( java.lang.String value) { @@ -1030,6 +1030,8 @@ public Builder addDebugOps( * * * repeated string debug_ops = 3; + * @param values The debugOps to add. + * @return This builder for chaining. */ public Builder addAllDebugOps( java.lang.Iterable values) { @@ -1047,6 +1049,7 @@ public Builder addAllDebugOps( * * * repeated string debug_ops = 3; + * @return This builder for chaining. */ public Builder clearDebugOps() { debugOps_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1062,6 +1065,8 @@ public Builder clearDebugOps() { * * * repeated string debug_ops = 3; + * @param value The bytes of the debugOps to add. + * @return This builder for chaining. */ public Builder addDebugOpsBytes( com.google.protobuf.ByteString value) { @@ -1104,6 +1109,7 @@ private void ensureDebugUrlsIsMutable() { * * * repeated string debug_urls = 4; + * @return A list containing the debugUrls. */ public com.google.protobuf.ProtocolStringList getDebugUrlsList() { @@ -1131,6 +1137,7 @@ private void ensureDebugUrlsIsMutable() { * * * repeated string debug_urls = 4; + * @return The count of debugUrls. */ public int getDebugUrlsCount() { return debugUrls_.size(); @@ -1157,6 +1164,8 @@ public int getDebugUrlsCount() { * * * repeated string debug_urls = 4; + * @param index The index of the element to return. + * @return The debugUrls at the given index. */ public java.lang.String getDebugUrls(int index) { return debugUrls_.get(index); @@ -1183,6 +1192,8 @@ public java.lang.String getDebugUrls(int index) { * * * repeated string debug_urls = 4; + * @param index The index of the value to return. + * @return The bytes of the debugUrls at the given index. */ public com.google.protobuf.ByteString getDebugUrlsBytes(int index) { @@ -1210,6 +1221,9 @@ public java.lang.String getDebugUrls(int index) { * * * repeated string debug_urls = 4; + * @param index The index to set the value at. + * @param value The debugUrls to set. + * @return This builder for chaining. */ public Builder setDebugUrls( int index, java.lang.String value) { @@ -1243,6 +1257,8 @@ public Builder setDebugUrls( * * * repeated string debug_urls = 4; + * @param value The debugUrls to add. + * @return This builder for chaining. */ public Builder addDebugUrls( java.lang.String value) { @@ -1276,6 +1292,8 @@ public Builder addDebugUrls( * * * repeated string debug_urls = 4; + * @param values The debugUrls to add. + * @return This builder for chaining. */ public Builder addAllDebugUrls( java.lang.Iterable values) { @@ -1307,6 +1325,7 @@ public Builder addAllDebugUrls( * * * repeated string debug_urls = 4; + * @return This builder for chaining. */ public Builder clearDebugUrls() { debugUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1336,6 +1355,8 @@ public Builder clearDebugUrls() { * * * repeated string debug_urls = 4; + * @param value The bytes of the debugUrls to add. + * @return This builder for chaining. */ public Builder addDebugUrlsBytes( com.google.protobuf.ByteString value) { @@ -1357,7 +1378,9 @@ public Builder addDebugUrlsBytes( * * * bool tolerate_debug_op_creation_failures = 5; + * @return The tolerateDebugOpCreationFailures. */ + @java.lang.Override public boolean getTolerateDebugOpCreationFailures() { return tolerateDebugOpCreationFailures_; } @@ -1368,6 +1391,8 @@ public boolean getTolerateDebugOpCreationFailures() { * * * bool tolerate_debug_op_creation_failures = 5; + * @param value The tolerateDebugOpCreationFailures to set. + * @return This builder for chaining. */ public Builder setTolerateDebugOpCreationFailures(boolean value) { @@ -1382,6 +1407,7 @@ public Builder setTolerateDebugOpCreationFailures(boolean value) { * * * bool tolerate_debug_op_creation_failures = 5; + * @return This builder for chaining. */ public Builder clearTolerateDebugOpCreationFailures() { @@ -1406,12 +1432,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.DebugTensorWatch) - private static final org.tensorflow.proto.framework.DebugTensorWatch DEFAULT_INSTANCE; + private static final org.tensorflow.proto.DebugTensorWatch DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.DebugTensorWatch(); + DEFAULT_INSTANCE = new org.tensorflow.proto.DebugTensorWatch(); } - public static org.tensorflow.proto.framework.DebugTensorWatch getDefaultInstance() { + public static org.tensorflow.proto.DebugTensorWatch getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1422,7 +1448,18 @@ public DebugTensorWatch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DebugTensorWatch(input, extensionRegistry); + 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(); } }; @@ -1436,7 +1473,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.DebugTensorWatch getDefaultInstanceForType() { + public org.tensorflow.proto.DebugTensorWatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebugTensorWatchOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugTensorWatchOrBuilder.java similarity index 90% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebugTensorWatchOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugTensorWatchOrBuilder.java index cce3536c5d1..8d7323db209 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebugTensorWatchOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebugTensorWatchOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface DebugTensorWatchOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.DebugTensorWatch) @@ -15,6 +15,7 @@ public interface DebugTensorWatchOrBuilder extends * * * string node_name = 1; + * @return The nodeName. */ java.lang.String getNodeName(); /** @@ -25,6 +26,7 @@ public interface DebugTensorWatchOrBuilder extends * * * string node_name = 1; + * @return The bytes for nodeName. */ com.google.protobuf.ByteString getNodeNameBytes(); @@ -39,6 +41,7 @@ public interface DebugTensorWatchOrBuilder extends * * * int32 output_slot = 2; + * @return The outputSlot. */ int getOutputSlot(); @@ -50,6 +53,7 @@ public interface DebugTensorWatchOrBuilder extends * * * repeated string debug_ops = 3; + * @return A list containing the debugOps. */ java.util.List getDebugOpsList(); @@ -61,6 +65,7 @@ public interface DebugTensorWatchOrBuilder extends * * * repeated string debug_ops = 3; + * @return The count of debugOps. */ int getDebugOpsCount(); /** @@ -71,6 +76,8 @@ public interface DebugTensorWatchOrBuilder extends * * * repeated string debug_ops = 3; + * @param index The index of the element to return. + * @return The debugOps at the given index. */ java.lang.String getDebugOps(int index); /** @@ -81,6 +88,8 @@ public interface DebugTensorWatchOrBuilder extends * * * repeated string debug_ops = 3; + * @param index The index of the value to return. + * @return The bytes of the debugOps at the given index. */ com.google.protobuf.ByteString getDebugOpsBytes(int index); @@ -107,6 +116,7 @@ public interface DebugTensorWatchOrBuilder extends * * * repeated string debug_urls = 4; + * @return A list containing the debugUrls. */ java.util.List getDebugUrlsList(); @@ -132,6 +142,7 @@ public interface DebugTensorWatchOrBuilder extends * * * repeated string debug_urls = 4; + * @return The count of debugUrls. */ int getDebugUrlsCount(); /** @@ -156,6 +167,8 @@ public interface DebugTensorWatchOrBuilder extends * * * repeated string debug_urls = 4; + * @param index The index of the element to return. + * @return The debugUrls at the given index. */ java.lang.String getDebugUrls(int index); /** @@ -180,6 +193,8 @@ public interface DebugTensorWatchOrBuilder extends * * * repeated string debug_urls = 4; + * @param index The index of the value to return. + * @return The bytes of the debugUrls at the given index. */ com.google.protobuf.ByteString getDebugUrlsBytes(int index); @@ -191,6 +206,7 @@ public interface DebugTensorWatchOrBuilder extends * * * bool tolerate_debug_op_creation_failures = 5; + * @return The tolerateDebugOpCreationFailures. */ boolean getTolerateDebugOpCreationFailures(); } diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedDevice.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedDevice.java new file mode 100644 index 00000000000..c71b3e7eb99 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedDevice.java @@ -0,0 +1,666 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/debug_event.proto + +package org.tensorflow.proto; + +/** + *
+ * A device on which ops and/or tensors are instrumented by the debugger.
+ * 
+ * + * Protobuf type {@code tensorflow.DebuggedDevice} + */ +public final class DebuggedDevice extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.DebuggedDevice) + DebuggedDeviceOrBuilder { +private static final long serialVersionUID = 0L; + // Use DebuggedDevice.newBuilder() to construct. + private DebuggedDevice(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DebuggedDevice() { + deviceName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DebuggedDevice(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_DebuggedDevice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_DebuggedDevice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.DebuggedDevice.class, org.tensorflow.proto.DebuggedDevice.Builder.class); + } + + public static final int DEVICE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object deviceName_; + /** + *
+   * Name of the device.
+   * 
+ * + * string device_name = 1; + * @return The deviceName. + */ + @java.lang.Override + public java.lang.String getDeviceName() { + java.lang.Object ref = deviceName_; + 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(); + deviceName_ = s; + return s; + } + } + /** + *
+   * Name of the device.
+   * 
+ * + * string device_name = 1; + * @return The bytes for deviceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDeviceNameBytes() { + java.lang.Object ref = deviceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEVICE_ID_FIELD_NUMBER = 2; + private int deviceId_; + /** + *
+   * A debugger-generated ID for the device. Guaranteed to be unique within
+   * the scope of the debugged TensorFlow program, including single-host and
+   * multi-host settings.
+   * TODO(cais): Test the uniqueness guarantee in multi-host settings.
+   * 
+ * + * int32 device_id = 2; + * @return The deviceId. + */ + @java.lang.Override + public int getDeviceId() { + return deviceId_; + } + + 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(deviceName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceName_); + } + if (deviceId_ != 0) { + output.writeInt32(2, deviceId_); + } + 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(deviceName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceName_); + } + if (deviceId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, deviceId_); + } + 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 org.tensorflow.proto.DebuggedDevice)) { + return super.equals(obj); + } + org.tensorflow.proto.DebuggedDevice other = (org.tensorflow.proto.DebuggedDevice) obj; + + if (!getDeviceName() + .equals(other.getDeviceName())) return false; + if (getDeviceId() + != other.getDeviceId()) 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) + DEVICE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDeviceName().hashCode(); + hash = (37 * hash) + DEVICE_ID_FIELD_NUMBER; + hash = (53 * hash) + getDeviceId(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.DebuggedDevice parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.DebuggedDevice parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.DebuggedDevice parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.DebuggedDevice parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.DebuggedDevice parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.DebuggedDevice parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.DebuggedDevice parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.DebuggedDevice 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 org.tensorflow.proto.DebuggedDevice parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.DebuggedDevice 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 org.tensorflow.proto.DebuggedDevice parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.DebuggedDevice 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(org.tensorflow.proto.DebuggedDevice 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; + } + /** + *
+   * A device on which ops and/or tensors are instrumented by the debugger.
+   * 
+ * + * Protobuf type {@code tensorflow.DebuggedDevice} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.DebuggedDevice) + org.tensorflow.proto.DebuggedDeviceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_DebuggedDevice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_DebuggedDevice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.DebuggedDevice.class, org.tensorflow.proto.DebuggedDevice.Builder.class); + } + + // Construct using org.tensorflow.proto.DebuggedDevice.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + deviceName_ = ""; + + deviceId_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_DebuggedDevice_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.DebuggedDevice getDefaultInstanceForType() { + return org.tensorflow.proto.DebuggedDevice.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.DebuggedDevice build() { + org.tensorflow.proto.DebuggedDevice result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.DebuggedDevice buildPartial() { + org.tensorflow.proto.DebuggedDevice result = new org.tensorflow.proto.DebuggedDevice(this); + result.deviceName_ = deviceName_; + result.deviceId_ = deviceId_; + 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 org.tensorflow.proto.DebuggedDevice) { + return mergeFrom((org.tensorflow.proto.DebuggedDevice)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.DebuggedDevice other) { + if (other == org.tensorflow.proto.DebuggedDevice.getDefaultInstance()) return this; + if (!other.getDeviceName().isEmpty()) { + deviceName_ = other.deviceName_; + onChanged(); + } + if (other.getDeviceId() != 0) { + setDeviceId(other.getDeviceId()); + } + 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: { + deviceName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + deviceId_ = input.readInt32(); + + break; + } // case 16 + 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 java.lang.Object deviceName_ = ""; + /** + *
+     * Name of the device.
+     * 
+ * + * string device_name = 1; + * @return The deviceName. + */ + public java.lang.String getDeviceName() { + java.lang.Object ref = deviceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Name of the device.
+     * 
+ * + * string device_name = 1; + * @return The bytes for deviceName. + */ + public com.google.protobuf.ByteString + getDeviceNameBytes() { + java.lang.Object ref = deviceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Name of the device.
+     * 
+ * + * string device_name = 1; + * @param value The deviceName to set. + * @return This builder for chaining. + */ + public Builder setDeviceName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deviceName_ = value; + onChanged(); + return this; + } + /** + *
+     * Name of the device.
+     * 
+ * + * string device_name = 1; + * @return This builder for chaining. + */ + public Builder clearDeviceName() { + + deviceName_ = getDefaultInstance().getDeviceName(); + onChanged(); + return this; + } + /** + *
+     * Name of the device.
+     * 
+ * + * string device_name = 1; + * @param value The bytes for deviceName to set. + * @return This builder for chaining. + */ + public Builder setDeviceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deviceName_ = value; + onChanged(); + return this; + } + + private int deviceId_ ; + /** + *
+     * A debugger-generated ID for the device. Guaranteed to be unique within
+     * the scope of the debugged TensorFlow program, including single-host and
+     * multi-host settings.
+     * TODO(cais): Test the uniqueness guarantee in multi-host settings.
+     * 
+ * + * int32 device_id = 2; + * @return The deviceId. + */ + @java.lang.Override + public int getDeviceId() { + return deviceId_; + } + /** + *
+     * A debugger-generated ID for the device. Guaranteed to be unique within
+     * the scope of the debugged TensorFlow program, including single-host and
+     * multi-host settings.
+     * TODO(cais): Test the uniqueness guarantee in multi-host settings.
+     * 
+ * + * int32 device_id = 2; + * @param value The deviceId to set. + * @return This builder for chaining. + */ + public Builder setDeviceId(int value) { + + deviceId_ = value; + onChanged(); + return this; + } + /** + *
+     * A debugger-generated ID for the device. Guaranteed to be unique within
+     * the scope of the debugged TensorFlow program, including single-host and
+     * multi-host settings.
+     * TODO(cais): Test the uniqueness guarantee in multi-host settings.
+     * 
+ * + * int32 device_id = 2; + * @return This builder for chaining. + */ + public Builder clearDeviceId() { + + deviceId_ = 0; + 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:tensorflow.DebuggedDevice) + } + + // @@protoc_insertion_point(class_scope:tensorflow.DebuggedDevice) + private static final org.tensorflow.proto.DebuggedDevice DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.DebuggedDevice(); + } + + public static org.tensorflow.proto.DebuggedDevice getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DebuggedDevice 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 org.tensorflow.proto.DebuggedDevice getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/DebuggedDeviceOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedDeviceOrBuilder.java similarity index 88% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/DebuggedDeviceOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedDeviceOrBuilder.java index 3915849b3ae..2b24df1e4df 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/DebuggedDeviceOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedDeviceOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug_event.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; public interface DebuggedDeviceOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.DebuggedDevice) @@ -13,6 +13,7 @@ public interface DebuggedDeviceOrBuilder extends * * * string device_name = 1; + * @return The deviceName. */ java.lang.String getDeviceName(); /** @@ -21,6 +22,7 @@ public interface DebuggedDeviceOrBuilder extends * * * string device_name = 1; + * @return The bytes for deviceName. */ com.google.protobuf.ByteString getDeviceNameBytes(); @@ -34,6 +36,7 @@ public interface DebuggedDeviceOrBuilder extends * * * int32 device_id = 2; + * @return The deviceId. */ int getDeviceId(); } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/DebuggedGraph.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedGraph.java similarity index 79% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/DebuggedGraph.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedGraph.java index 6fa3e5adcff..f5fd44da761 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/DebuggedGraph.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedGraph.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug_event.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; /** *
@@ -10,7 +10,7 @@
  *
  * Protobuf type {@code tensorflow.DebuggedGraph}
  */
-public  final class DebuggedGraph extends
+public final class DebuggedGraph extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.DebuggedGraph)
     DebuggedGraphOrBuilder {
@@ -40,95 +40,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private DebuggedGraph(
-      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: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            graphId_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            graphName_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              instrumentedOps_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            instrumentedOps_.add(s);
-            break;
-          }
-          case 34: {
-
-            originalGraphDef_ = input.readBytes();
-            break;
-          }
-          case 42: {
-
-            instrumentedGraphDef_ = input.readBytes();
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            outerContextId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
-        }
-      }
-    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-      throw e.setUnfinishedMessage(this);
-    } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
-    } finally {
-      if (((mutable_bitField0_ & 0x00000001) != 0)) {
-        instrumentedOps_ = instrumentedOps_.getUnmodifiableView();
-      }
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_DebuggedGraph_descriptor;
+    return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_DebuggedGraph_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_DebuggedGraph_fieldAccessorTable
+    return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_DebuggedGraph_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.util.DebuggedGraph.class, org.tensorflow.proto.util.DebuggedGraph.Builder.class);
+            org.tensorflow.proto.DebuggedGraph.class, org.tensorflow.proto.DebuggedGraph.Builder.class);
   }
 
   public static final int GRAPH_ID_FIELD_NUMBER = 1;
@@ -140,7 +62,9 @@ private DebuggedGraph(
    * 
* * string graph_id = 1; + * @return The graphId. */ + @java.lang.Override public java.lang.String getGraphId() { java.lang.Object ref = graphId_; if (ref instanceof java.lang.String) { @@ -160,7 +84,9 @@ public java.lang.String getGraphId() { * * * string graph_id = 1; + * @return The bytes for graphId. */ + @java.lang.Override public com.google.protobuf.ByteString getGraphIdBytes() { java.lang.Object ref = graphId_; @@ -183,7 +109,9 @@ public java.lang.String getGraphId() { * * * string graph_name = 2; + * @return The graphName. */ + @java.lang.Override public java.lang.String getGraphName() { java.lang.Object ref = graphName_; if (ref instanceof java.lang.String) { @@ -202,7 +130,9 @@ public java.lang.String getGraphName() { * * * string graph_name = 2; + * @return The bytes for graphName. */ + @java.lang.Override public com.google.protobuf.ByteString getGraphNameBytes() { java.lang.Object ref = graphName_; @@ -226,6 +156,7 @@ public java.lang.String getGraphName() { * * * repeated string instrumented_ops = 3; + * @return A list containing the instrumentedOps. */ public com.google.protobuf.ProtocolStringList getInstrumentedOpsList() { @@ -238,6 +169,7 @@ public java.lang.String getGraphName() { * * * repeated string instrumented_ops = 3; + * @return The count of instrumentedOps. */ public int getInstrumentedOpsCount() { return instrumentedOps_.size(); @@ -249,6 +181,8 @@ public int getInstrumentedOpsCount() { * * * repeated string instrumented_ops = 3; + * @param index The index of the element to return. + * @return The instrumentedOps at the given index. */ public java.lang.String getInstrumentedOps(int index) { return instrumentedOps_.get(index); @@ -260,6 +194,8 @@ public java.lang.String getInstrumentedOps(int index) { * * * repeated string instrumented_ops = 3; + * @param index The index of the value to return. + * @return The bytes of the instrumentedOps at the given index. */ public com.google.protobuf.ByteString getInstrumentedOpsBytes(int index) { @@ -274,7 +210,9 @@ public java.lang.String getInstrumentedOps(int index) { * * * bytes original_graph_def = 4; + * @return The originalGraphDef. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalGraphDef() { return originalGraphDef_; } @@ -288,7 +226,9 @@ public com.google.protobuf.ByteString getOriginalGraphDef() { * * * bytes instrumented_graph_def = 5; + * @return The instrumentedGraphDef. */ + @java.lang.Override public com.google.protobuf.ByteString getInstrumentedGraphDef() { return instrumentedGraphDef_; } @@ -301,7 +241,9 @@ public com.google.protobuf.ByteString getInstrumentedGraphDef() { * * * string outer_context_id = 6; + * @return The outerContextId. */ + @java.lang.Override public java.lang.String getOuterContextId() { java.lang.Object ref = outerContextId_; if (ref instanceof java.lang.String) { @@ -320,7 +262,9 @@ public java.lang.String getOuterContextId() { * * * string outer_context_id = 6; + * @return The bytes for outerContextId. */ + @java.lang.Override public com.google.protobuf.ByteString getOuterContextIdBytes() { java.lang.Object ref = outerContextId_; @@ -349,10 +293,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getGraphIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(graphId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, graphId_); } - if (!getGraphNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(graphName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, graphName_); } for (int i = 0; i < instrumentedOps_.size(); i++) { @@ -364,10 +308,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!instrumentedGraphDef_.isEmpty()) { output.writeBytes(5, instrumentedGraphDef_); } - if (!getOuterContextIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outerContextId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, outerContextId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -376,10 +320,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getGraphIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(graphId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, graphId_); } - if (!getGraphNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(graphName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, graphName_); } { @@ -398,10 +342,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, instrumentedGraphDef_); } - if (!getOuterContextIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outerContextId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, outerContextId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -411,10 +355,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.util.DebuggedGraph)) { + if (!(obj instanceof org.tensorflow.proto.DebuggedGraph)) { return super.equals(obj); } - org.tensorflow.proto.util.DebuggedGraph other = (org.tensorflow.proto.util.DebuggedGraph) obj; + org.tensorflow.proto.DebuggedGraph other = (org.tensorflow.proto.DebuggedGraph) obj; if (!getGraphId() .equals(other.getGraphId())) return false; @@ -428,7 +372,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getInstrumentedGraphDef())) return false; if (!getOuterContextId() .equals(other.getOuterContextId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -453,74 +397,74 @@ public int hashCode() { hash = (53 * hash) + getInstrumentedGraphDef().hashCode(); hash = (37 * hash) + OUTER_CONTEXT_ID_FIELD_NUMBER; hash = (53 * hash) + getOuterContextId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.util.DebuggedGraph parseFrom( + public static org.tensorflow.proto.DebuggedGraph parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.DebuggedGraph parseFrom( + public static org.tensorflow.proto.DebuggedGraph parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.DebuggedGraph parseFrom( + public static org.tensorflow.proto.DebuggedGraph parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.DebuggedGraph parseFrom( + public static org.tensorflow.proto.DebuggedGraph parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.DebuggedGraph parseFrom(byte[] data) + public static org.tensorflow.proto.DebuggedGraph parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.DebuggedGraph parseFrom( + public static org.tensorflow.proto.DebuggedGraph parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.DebuggedGraph parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.DebuggedGraph parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.DebuggedGraph parseFrom( + public static org.tensorflow.proto.DebuggedGraph 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 org.tensorflow.proto.util.DebuggedGraph parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.DebuggedGraph parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.DebuggedGraph parseDelimitedFrom( + public static org.tensorflow.proto.DebuggedGraph 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 org.tensorflow.proto.util.DebuggedGraph parseFrom( + public static org.tensorflow.proto.DebuggedGraph parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.DebuggedGraph parseFrom( + public static org.tensorflow.proto.DebuggedGraph parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -533,7 +477,7 @@ public static org.tensorflow.proto.util.DebuggedGraph parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.util.DebuggedGraph prototype) { + public static Builder newBuilder(org.tensorflow.proto.DebuggedGraph prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -558,34 +502,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.DebuggedGraph) - org.tensorflow.proto.util.DebuggedGraphOrBuilder { + org.tensorflow.proto.DebuggedGraphOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_DebuggedGraph_descriptor; + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_DebuggedGraph_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_DebuggedGraph_fieldAccessorTable + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_DebuggedGraph_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.util.DebuggedGraph.class, org.tensorflow.proto.util.DebuggedGraph.Builder.class); + org.tensorflow.proto.DebuggedGraph.class, org.tensorflow.proto.DebuggedGraph.Builder.class); } - // Construct using org.tensorflow.proto.util.DebuggedGraph.newBuilder() + // Construct using org.tensorflow.proto.DebuggedGraph.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -608,17 +547,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_DebuggedGraph_descriptor; + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_DebuggedGraph_descriptor; } @java.lang.Override - public org.tensorflow.proto.util.DebuggedGraph getDefaultInstanceForType() { - return org.tensorflow.proto.util.DebuggedGraph.getDefaultInstance(); + public org.tensorflow.proto.DebuggedGraph getDefaultInstanceForType() { + return org.tensorflow.proto.DebuggedGraph.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.util.DebuggedGraph build() { - org.tensorflow.proto.util.DebuggedGraph result = buildPartial(); + public org.tensorflow.proto.DebuggedGraph build() { + org.tensorflow.proto.DebuggedGraph result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -626,8 +565,8 @@ public org.tensorflow.proto.util.DebuggedGraph build() { } @java.lang.Override - public org.tensorflow.proto.util.DebuggedGraph buildPartial() { - org.tensorflow.proto.util.DebuggedGraph result = new org.tensorflow.proto.util.DebuggedGraph(this); + public org.tensorflow.proto.DebuggedGraph buildPartial() { + org.tensorflow.proto.DebuggedGraph result = new org.tensorflow.proto.DebuggedGraph(this); int from_bitField0_ = bitField0_; result.graphId_ = graphId_; result.graphName_ = graphName_; @@ -677,16 +616,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.util.DebuggedGraph) { - return mergeFrom((org.tensorflow.proto.util.DebuggedGraph)other); + if (other instanceof org.tensorflow.proto.DebuggedGraph) { + return mergeFrom((org.tensorflow.proto.DebuggedGraph)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.util.DebuggedGraph other) { - if (other == org.tensorflow.proto.util.DebuggedGraph.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.DebuggedGraph other) { + if (other == org.tensorflow.proto.DebuggedGraph.getDefaultInstance()) return this; if (!other.getGraphId().isEmpty()) { graphId_ = other.graphId_; onChanged(); @@ -715,7 +654,7 @@ public Builder mergeFrom(org.tensorflow.proto.util.DebuggedGraph other) { outerContextId_ = other.outerContextId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -730,17 +669,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.util.DebuggedGraph parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + graphId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + graphName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstrumentedOpsIsMutable(); + instrumentedOps_.add(s); + break; + } // case 26 + case 34: { + originalGraphDef_ = input.readBytes(); + + break; + } // case 34 + case 42: { + instrumentedGraphDef_ = input.readBytes(); + + break; + } // case 42 + case 50: { + outerContextId_ = input.readStringRequireUtf8(); + + break; + } // case 50 + 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) { - parsedMessage = (org.tensorflow.proto.util.DebuggedGraph) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -753,6 +736,7 @@ public Builder mergeFrom( * * * string graph_id = 1; + * @return The graphId. */ public java.lang.String getGraphId() { java.lang.Object ref = graphId_; @@ -773,6 +757,7 @@ public java.lang.String getGraphId() { * * * string graph_id = 1; + * @return The bytes for graphId. */ public com.google.protobuf.ByteString getGraphIdBytes() { @@ -794,6 +779,8 @@ public java.lang.String getGraphId() { * * * string graph_id = 1; + * @param value The graphId to set. + * @return This builder for chaining. */ public Builder setGraphId( java.lang.String value) { @@ -812,6 +799,7 @@ public Builder setGraphId( * * * string graph_id = 1; + * @return This builder for chaining. */ public Builder clearGraphId() { @@ -826,6 +814,8 @@ public Builder clearGraphId() { * * * string graph_id = 1; + * @param value The bytes for graphId to set. + * @return This builder for chaining. */ public Builder setGraphIdBytes( com.google.protobuf.ByteString value) { @@ -846,6 +836,7 @@ public Builder setGraphIdBytes( * * * string graph_name = 2; + * @return The graphName. */ public java.lang.String getGraphName() { java.lang.Object ref = graphName_; @@ -865,6 +856,7 @@ public java.lang.String getGraphName() { * * * string graph_name = 2; + * @return The bytes for graphName. */ public com.google.protobuf.ByteString getGraphNameBytes() { @@ -885,6 +877,8 @@ public java.lang.String getGraphName() { * * * string graph_name = 2; + * @param value The graphName to set. + * @return This builder for chaining. */ public Builder setGraphName( java.lang.String value) { @@ -902,6 +896,7 @@ public Builder setGraphName( * * * string graph_name = 2; + * @return This builder for chaining. */ public Builder clearGraphName() { @@ -915,6 +910,8 @@ public Builder clearGraphName() { * * * string graph_name = 2; + * @param value The bytes for graphName to set. + * @return This builder for chaining. */ public Builder setGraphNameBytes( com.google.protobuf.ByteString value) { @@ -942,6 +939,7 @@ private void ensureInstrumentedOpsIsMutable() { * * * repeated string instrumented_ops = 3; + * @return A list containing the instrumentedOps. */ public com.google.protobuf.ProtocolStringList getInstrumentedOpsList() { @@ -954,6 +952,7 @@ private void ensureInstrumentedOpsIsMutable() { * * * repeated string instrumented_ops = 3; + * @return The count of instrumentedOps. */ public int getInstrumentedOpsCount() { return instrumentedOps_.size(); @@ -965,6 +964,8 @@ public int getInstrumentedOpsCount() { * * * repeated string instrumented_ops = 3; + * @param index The index of the element to return. + * @return The instrumentedOps at the given index. */ public java.lang.String getInstrumentedOps(int index) { return instrumentedOps_.get(index); @@ -976,6 +977,8 @@ public java.lang.String getInstrumentedOps(int index) { * * * repeated string instrumented_ops = 3; + * @param index The index of the value to return. + * @return The bytes of the instrumentedOps at the given index. */ public com.google.protobuf.ByteString getInstrumentedOpsBytes(int index) { @@ -988,6 +991,9 @@ public java.lang.String getInstrumentedOps(int index) { * * * repeated string instrumented_ops = 3; + * @param index The index to set the value at. + * @param value The instrumentedOps to set. + * @return This builder for chaining. */ public Builder setInstrumentedOps( int index, java.lang.String value) { @@ -1006,6 +1012,8 @@ public Builder setInstrumentedOps( * * * repeated string instrumented_ops = 3; + * @param value The instrumentedOps to add. + * @return This builder for chaining. */ public Builder addInstrumentedOps( java.lang.String value) { @@ -1024,6 +1032,8 @@ public Builder addInstrumentedOps( * * * repeated string instrumented_ops = 3; + * @param values The instrumentedOps to add. + * @return This builder for chaining. */ public Builder addAllInstrumentedOps( java.lang.Iterable values) { @@ -1040,6 +1050,7 @@ public Builder addAllInstrumentedOps( * * * repeated string instrumented_ops = 3; + * @return This builder for chaining. */ public Builder clearInstrumentedOps() { instrumentedOps_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1054,6 +1065,8 @@ public Builder clearInstrumentedOps() { * * * repeated string instrumented_ops = 3; + * @param value The bytes of the instrumentedOps to add. + * @return This builder for chaining. */ public Builder addInstrumentedOpsBytes( com.google.protobuf.ByteString value) { @@ -1074,7 +1087,9 @@ public Builder addInstrumentedOpsBytes( * * * bytes original_graph_def = 4; + * @return The originalGraphDef. */ + @java.lang.Override public com.google.protobuf.ByteString getOriginalGraphDef() { return originalGraphDef_; } @@ -1084,6 +1099,8 @@ public com.google.protobuf.ByteString getOriginalGraphDef() { * * * bytes original_graph_def = 4; + * @param value The originalGraphDef to set. + * @return This builder for chaining. */ public Builder setOriginalGraphDef(com.google.protobuf.ByteString value) { if (value == null) { @@ -1100,6 +1117,7 @@ public Builder setOriginalGraphDef(com.google.protobuf.ByteString value) { * * * bytes original_graph_def = 4; + * @return This builder for chaining. */ public Builder clearOriginalGraphDef() { @@ -1116,7 +1134,9 @@ public Builder clearOriginalGraphDef() { * * * bytes instrumented_graph_def = 5; + * @return The instrumentedGraphDef. */ + @java.lang.Override public com.google.protobuf.ByteString getInstrumentedGraphDef() { return instrumentedGraphDef_; } @@ -1127,6 +1147,8 @@ public com.google.protobuf.ByteString getInstrumentedGraphDef() { * * * bytes instrumented_graph_def = 5; + * @param value The instrumentedGraphDef to set. + * @return This builder for chaining. */ public Builder setInstrumentedGraphDef(com.google.protobuf.ByteString value) { if (value == null) { @@ -1144,6 +1166,7 @@ public Builder setInstrumentedGraphDef(com.google.protobuf.ByteString value) { * * * bytes instrumented_graph_def = 5; + * @return This builder for chaining. */ public Builder clearInstrumentedGraphDef() { @@ -1159,6 +1182,7 @@ public Builder clearInstrumentedGraphDef() { * * * string outer_context_id = 6; + * @return The outerContextId. */ public java.lang.String getOuterContextId() { java.lang.Object ref = outerContextId_; @@ -1178,6 +1202,7 @@ public java.lang.String getOuterContextId() { * * * string outer_context_id = 6; + * @return The bytes for outerContextId. */ public com.google.protobuf.ByteString getOuterContextIdBytes() { @@ -1198,6 +1223,8 @@ public java.lang.String getOuterContextId() { * * * string outer_context_id = 6; + * @param value The outerContextId to set. + * @return This builder for chaining. */ public Builder setOuterContextId( java.lang.String value) { @@ -1215,6 +1242,7 @@ public Builder setOuterContextId( * * * string outer_context_id = 6; + * @return This builder for chaining. */ public Builder clearOuterContextId() { @@ -1228,6 +1256,8 @@ public Builder clearOuterContextId() { * * * string outer_context_id = 6; + * @param value The bytes for outerContextId to set. + * @return This builder for chaining. */ public Builder setOuterContextIdBytes( com.google.protobuf.ByteString value) { @@ -1257,12 +1287,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.DebuggedGraph) - private static final org.tensorflow.proto.util.DebuggedGraph DEFAULT_INSTANCE; + private static final org.tensorflow.proto.DebuggedGraph DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.util.DebuggedGraph(); + DEFAULT_INSTANCE = new org.tensorflow.proto.DebuggedGraph(); } - public static org.tensorflow.proto.util.DebuggedGraph getDefaultInstance() { + public static org.tensorflow.proto.DebuggedGraph getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1273,7 +1303,18 @@ public DebuggedGraph parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DebuggedGraph(input, extensionRegistry); + 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(); } }; @@ -1287,7 +1328,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.util.DebuggedGraph getDefaultInstanceForType() { + public org.tensorflow.proto.DebuggedGraph getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/DebuggedGraphOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedGraphOrBuilder.java similarity index 82% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/DebuggedGraphOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedGraphOrBuilder.java index c5f78a334e6..4118e356516 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/DebuggedGraphOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedGraphOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug_event.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; public interface DebuggedGraphOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.DebuggedGraph) @@ -14,6 +14,7 @@ public interface DebuggedGraphOrBuilder extends * * * string graph_id = 1; + * @return The graphId. */ java.lang.String getGraphId(); /** @@ -23,6 +24,7 @@ public interface DebuggedGraphOrBuilder extends * * * string graph_id = 1; + * @return The bytes for graphId. */ com.google.protobuf.ByteString getGraphIdBytes(); @@ -33,6 +35,7 @@ public interface DebuggedGraphOrBuilder extends * * * string graph_name = 2; + * @return The graphName. */ java.lang.String getGraphName(); /** @@ -41,6 +44,7 @@ public interface DebuggedGraphOrBuilder extends * * * string graph_name = 2; + * @return The bytes for graphName. */ com.google.protobuf.ByteString getGraphNameBytes(); @@ -52,6 +56,7 @@ public interface DebuggedGraphOrBuilder extends * * * repeated string instrumented_ops = 3; + * @return A list containing the instrumentedOps. */ java.util.List getInstrumentedOpsList(); @@ -62,6 +67,7 @@ public interface DebuggedGraphOrBuilder extends * * * repeated string instrumented_ops = 3; + * @return The count of instrumentedOps. */ int getInstrumentedOpsCount(); /** @@ -71,6 +77,8 @@ public interface DebuggedGraphOrBuilder extends * * * repeated string instrumented_ops = 3; + * @param index The index of the element to return. + * @return The instrumentedOps at the given index. */ java.lang.String getInstrumentedOps(int index); /** @@ -80,6 +88,8 @@ public interface DebuggedGraphOrBuilder extends * * * repeated string instrumented_ops = 3; + * @param index The index of the value to return. + * @return The bytes of the instrumentedOps at the given index. */ com.google.protobuf.ByteString getInstrumentedOpsBytes(int index); @@ -90,6 +100,7 @@ public interface DebuggedGraphOrBuilder extends * * * bytes original_graph_def = 4; + * @return The originalGraphDef. */ com.google.protobuf.ByteString getOriginalGraphDef(); @@ -100,6 +111,7 @@ public interface DebuggedGraphOrBuilder extends * * * bytes instrumented_graph_def = 5; + * @return The instrumentedGraphDef. */ com.google.protobuf.ByteString getInstrumentedGraphDef(); @@ -109,6 +121,7 @@ public interface DebuggedGraphOrBuilder extends * * * string outer_context_id = 6; + * @return The outerContextId. */ java.lang.String getOuterContextId(); /** @@ -117,6 +130,7 @@ public interface DebuggedGraphOrBuilder extends * * * string outer_context_id = 6; + * @return The bytes for outerContextId. */ com.google.protobuf.ByteString getOuterContextIdBytes(); diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebuggedSourceFile.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedSourceFile.java similarity index 76% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebuggedSourceFile.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedSourceFile.java index d0752d9022b..77ac7451f3e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebuggedSourceFile.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedSourceFile.java @@ -1,12 +1,12 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; /** * Protobuf type {@code tensorflow.DebuggedSourceFile} */ -public final class DebuggedSourceFile extends +public final class DebuggedSourceFile extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.DebuggedSourceFile) DebuggedSourceFileOrBuilder { @@ -33,89 +33,17 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private DebuggedSourceFile( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - host_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - filePath_ = s; - break; - } - case 24: { - - lastModified_ = input.readInt64(); - break; - } - case 32: { - - bytes_ = input.readInt64(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - lines_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - lines_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - lines_ = lines_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.DebugProtos.internal_static_tensorflow_DebuggedSourceFile_descriptor; + return org.tensorflow.proto.DebugProtos.internal_static_tensorflow_DebuggedSourceFile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.DebugProtos.internal_static_tensorflow_DebuggedSourceFile_fieldAccessorTable + return org.tensorflow.proto.DebugProtos.internal_static_tensorflow_DebuggedSourceFile_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.DebuggedSourceFile.class, org.tensorflow.proto.framework.DebuggedSourceFile.Builder.class); + org.tensorflow.proto.DebuggedSourceFile.class, org.tensorflow.proto.DebuggedSourceFile.Builder.class); } public static final int HOST_FIELD_NUMBER = 1; @@ -126,7 +54,9 @@ private DebuggedSourceFile( * * * string host = 1; + * @return The host. */ + @java.lang.Override public java.lang.String getHost() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { @@ -145,7 +75,9 @@ public java.lang.String getHost() { * * * string host = 1; + * @return The bytes for host. */ + @java.lang.Override public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; @@ -168,7 +100,9 @@ public java.lang.String getHost() { * * * string file_path = 2; + * @return The filePath. */ + @java.lang.Override public java.lang.String getFilePath() { java.lang.Object ref = filePath_; if (ref instanceof java.lang.String) { @@ -187,7 +121,9 @@ public java.lang.String getFilePath() { * * * string file_path = 2; + * @return The bytes for filePath. */ + @java.lang.Override public com.google.protobuf.ByteString getFilePathBytes() { java.lang.Object ref = filePath_; @@ -210,7 +146,9 @@ public java.lang.String getFilePath() { * * * int64 last_modified = 3; + * @return The lastModified. */ + @java.lang.Override public long getLastModified() { return lastModified_; } @@ -223,7 +161,9 @@ public long getLastModified() { * * * int64 bytes = 4; + * @return The bytes. */ + @java.lang.Override public long getBytes() { return bytes_; } @@ -236,6 +176,7 @@ public long getBytes() { * * * repeated string lines = 5; + * @return A list containing the lines. */ public com.google.protobuf.ProtocolStringList getLinesList() { @@ -247,6 +188,7 @@ public long getBytes() { * * * repeated string lines = 5; + * @return The count of lines. */ public int getLinesCount() { return lines_.size(); @@ -257,6 +199,8 @@ public int getLinesCount() { * * * repeated string lines = 5; + * @param index The index of the element to return. + * @return The lines at the given index. */ public java.lang.String getLines(int index) { return lines_.get(index); @@ -267,6 +211,8 @@ public java.lang.String getLines(int index) { * * * repeated string lines = 5; + * @param index The index of the value to return. + * @return The bytes of the lines at the given index. */ public com.google.protobuf.ByteString getLinesBytes(int index) { @@ -287,10 +233,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getHostBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, host_); } - if (!getFilePathBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filePath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filePath_); } if (lastModified_ != 0L) { @@ -302,7 +248,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < lines_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, lines_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -311,10 +257,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getHostBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, host_); } - if (!getFilePathBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filePath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filePath_); } if (lastModified_ != 0L) { @@ -333,7 +279,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getLinesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -343,10 +289,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.DebuggedSourceFile)) { + if (!(obj instanceof org.tensorflow.proto.DebuggedSourceFile)) { return super.equals(obj); } - org.tensorflow.proto.framework.DebuggedSourceFile other = (org.tensorflow.proto.framework.DebuggedSourceFile) obj; + org.tensorflow.proto.DebuggedSourceFile other = (org.tensorflow.proto.DebuggedSourceFile) obj; if (!getHost() .equals(other.getHost())) return false; @@ -358,7 +304,7 @@ public boolean equals(final java.lang.Object obj) { != other.getBytes()) return false; if (!getLinesList() .equals(other.getLinesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -383,74 +329,74 @@ public int hashCode() { hash = (37 * hash) + LINES_FIELD_NUMBER; hash = (53 * hash) + getLinesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.DebuggedSourceFile parseFrom( + public static org.tensorflow.proto.DebuggedSourceFile parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.DebuggedSourceFile parseFrom( + public static org.tensorflow.proto.DebuggedSourceFile parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.DebuggedSourceFile parseFrom( + public static org.tensorflow.proto.DebuggedSourceFile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.DebuggedSourceFile parseFrom( + public static org.tensorflow.proto.DebuggedSourceFile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.DebuggedSourceFile parseFrom(byte[] data) + public static org.tensorflow.proto.DebuggedSourceFile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.DebuggedSourceFile parseFrom( + public static org.tensorflow.proto.DebuggedSourceFile parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.DebuggedSourceFile parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.DebuggedSourceFile parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.DebuggedSourceFile parseFrom( + public static org.tensorflow.proto.DebuggedSourceFile 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 org.tensorflow.proto.framework.DebuggedSourceFile parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.DebuggedSourceFile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.DebuggedSourceFile parseDelimitedFrom( + public static org.tensorflow.proto.DebuggedSourceFile 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 org.tensorflow.proto.framework.DebuggedSourceFile parseFrom( + public static org.tensorflow.proto.DebuggedSourceFile parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.DebuggedSourceFile parseFrom( + public static org.tensorflow.proto.DebuggedSourceFile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -463,7 +409,7 @@ public static org.tensorflow.proto.framework.DebuggedSourceFile parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.DebuggedSourceFile prototype) { + public static Builder newBuilder(org.tensorflow.proto.DebuggedSourceFile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -484,34 +430,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.DebuggedSourceFile) - org.tensorflow.proto.framework.DebuggedSourceFileOrBuilder { + org.tensorflow.proto.DebuggedSourceFileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.DebugProtos.internal_static_tensorflow_DebuggedSourceFile_descriptor; + return org.tensorflow.proto.DebugProtos.internal_static_tensorflow_DebuggedSourceFile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.DebugProtos.internal_static_tensorflow_DebuggedSourceFile_fieldAccessorTable + return org.tensorflow.proto.DebugProtos.internal_static_tensorflow_DebuggedSourceFile_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.DebuggedSourceFile.class, org.tensorflow.proto.framework.DebuggedSourceFile.Builder.class); + org.tensorflow.proto.DebuggedSourceFile.class, org.tensorflow.proto.DebuggedSourceFile.Builder.class); } - // Construct using org.tensorflow.proto.framework.DebuggedSourceFile.newBuilder() + // Construct using org.tensorflow.proto.DebuggedSourceFile.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -532,17 +473,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.DebugProtos.internal_static_tensorflow_DebuggedSourceFile_descriptor; + return org.tensorflow.proto.DebugProtos.internal_static_tensorflow_DebuggedSourceFile_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.DebuggedSourceFile getDefaultInstanceForType() { - return org.tensorflow.proto.framework.DebuggedSourceFile.getDefaultInstance(); + public org.tensorflow.proto.DebuggedSourceFile getDefaultInstanceForType() { + return org.tensorflow.proto.DebuggedSourceFile.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.DebuggedSourceFile build() { - org.tensorflow.proto.framework.DebuggedSourceFile result = buildPartial(); + public org.tensorflow.proto.DebuggedSourceFile build() { + org.tensorflow.proto.DebuggedSourceFile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -550,8 +491,8 @@ public org.tensorflow.proto.framework.DebuggedSourceFile build() { } @java.lang.Override - public org.tensorflow.proto.framework.DebuggedSourceFile buildPartial() { - org.tensorflow.proto.framework.DebuggedSourceFile result = new org.tensorflow.proto.framework.DebuggedSourceFile(this); + public org.tensorflow.proto.DebuggedSourceFile buildPartial() { + org.tensorflow.proto.DebuggedSourceFile result = new org.tensorflow.proto.DebuggedSourceFile(this); int from_bitField0_ = bitField0_; result.host_ = host_; result.filePath_ = filePath_; @@ -600,16 +541,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.DebuggedSourceFile) { - return mergeFrom((org.tensorflow.proto.framework.DebuggedSourceFile)other); + if (other instanceof org.tensorflow.proto.DebuggedSourceFile) { + return mergeFrom((org.tensorflow.proto.DebuggedSourceFile)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.DebuggedSourceFile other) { - if (other == org.tensorflow.proto.framework.DebuggedSourceFile.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.DebuggedSourceFile other) { + if (other == org.tensorflow.proto.DebuggedSourceFile.getDefaultInstance()) return this; if (!other.getHost().isEmpty()) { host_ = other.host_; onChanged(); @@ -634,7 +575,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.DebuggedSourceFile other } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -649,17 +590,56 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.DebuggedSourceFile parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + host_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + filePath_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + lastModified_ = input.readInt64(); + + break; + } // case 24 + case 32: { + bytes_ = input.readInt64(); + + break; + } // case 32 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLinesIsMutable(); + lines_.add(s); + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.DebuggedSourceFile) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -671,6 +651,7 @@ public Builder mergeFrom( * * * string host = 1; + * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; @@ -690,6 +671,7 @@ public java.lang.String getHost() { * * * string host = 1; + * @return The bytes for host. */ public com.google.protobuf.ByteString getHostBytes() { @@ -710,6 +692,8 @@ public java.lang.String getHost() { * * * string host = 1; + * @param value The host to set. + * @return This builder for chaining. */ public Builder setHost( java.lang.String value) { @@ -727,6 +711,7 @@ public Builder setHost( * * * string host = 1; + * @return This builder for chaining. */ public Builder clearHost() { @@ -740,6 +725,8 @@ public Builder clearHost() { * * * string host = 1; + * @param value The bytes for host to set. + * @return This builder for chaining. */ public Builder setHostBytes( com.google.protobuf.ByteString value) { @@ -760,6 +747,7 @@ public Builder setHostBytes( * * * string file_path = 2; + * @return The filePath. */ public java.lang.String getFilePath() { java.lang.Object ref = filePath_; @@ -779,6 +767,7 @@ public java.lang.String getFilePath() { * * * string file_path = 2; + * @return The bytes for filePath. */ public com.google.protobuf.ByteString getFilePathBytes() { @@ -799,6 +788,8 @@ public java.lang.String getFilePath() { * * * string file_path = 2; + * @param value The filePath to set. + * @return This builder for chaining. */ public Builder setFilePath( java.lang.String value) { @@ -816,6 +807,7 @@ public Builder setFilePath( * * * string file_path = 2; + * @return This builder for chaining. */ public Builder clearFilePath() { @@ -829,6 +821,8 @@ public Builder clearFilePath() { * * * string file_path = 2; + * @param value The bytes for filePath to set. + * @return This builder for chaining. */ public Builder setFilePathBytes( com.google.protobuf.ByteString value) { @@ -849,7 +843,9 @@ public Builder setFilePathBytes( * * * int64 last_modified = 3; + * @return The lastModified. */ + @java.lang.Override public long getLastModified() { return lastModified_; } @@ -859,6 +855,8 @@ public long getLastModified() { * * * int64 last_modified = 3; + * @param value The lastModified to set. + * @return This builder for chaining. */ public Builder setLastModified(long value) { @@ -872,6 +870,7 @@ public Builder setLastModified(long value) { * * * int64 last_modified = 3; + * @return This builder for chaining. */ public Builder clearLastModified() { @@ -887,7 +886,9 @@ public Builder clearLastModified() { * * * int64 bytes = 4; + * @return The bytes. */ + @java.lang.Override public long getBytes() { return bytes_; } @@ -897,6 +898,8 @@ public long getBytes() { * * * int64 bytes = 4; + * @param value The bytes to set. + * @return This builder for chaining. */ public Builder setBytes(long value) { @@ -910,6 +913,7 @@ public Builder setBytes(long value) { * * * int64 bytes = 4; + * @return This builder for chaining. */ public Builder clearBytes() { @@ -931,6 +935,7 @@ private void ensureLinesIsMutable() { * * * repeated string lines = 5; + * @return A list containing the lines. */ public com.google.protobuf.ProtocolStringList getLinesList() { @@ -942,6 +947,7 @@ private void ensureLinesIsMutable() { * * * repeated string lines = 5; + * @return The count of lines. */ public int getLinesCount() { return lines_.size(); @@ -952,6 +958,8 @@ public int getLinesCount() { * * * repeated string lines = 5; + * @param index The index of the element to return. + * @return The lines at the given index. */ public java.lang.String getLines(int index) { return lines_.get(index); @@ -962,6 +970,8 @@ public java.lang.String getLines(int index) { * * * repeated string lines = 5; + * @param index The index of the value to return. + * @return The bytes of the lines at the given index. */ public com.google.protobuf.ByteString getLinesBytes(int index) { @@ -973,6 +983,9 @@ public java.lang.String getLines(int index) { * * * repeated string lines = 5; + * @param index The index to set the value at. + * @param value The lines to set. + * @return This builder for chaining. */ public Builder setLines( int index, java.lang.String value) { @@ -990,6 +1003,8 @@ public Builder setLines( * * * repeated string lines = 5; + * @param value The lines to add. + * @return This builder for chaining. */ public Builder addLines( java.lang.String value) { @@ -1007,6 +1022,8 @@ public Builder addLines( * * * repeated string lines = 5; + * @param values The lines to add. + * @return This builder for chaining. */ public Builder addAllLines( java.lang.Iterable values) { @@ -1022,6 +1039,7 @@ public Builder addAllLines( * * * repeated string lines = 5; + * @return This builder for chaining. */ public Builder clearLines() { lines_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1035,6 +1053,8 @@ public Builder clearLines() { * * * repeated string lines = 5; + * @param value The bytes of the lines to add. + * @return This builder for chaining. */ public Builder addLinesBytes( com.google.protobuf.ByteString value) { @@ -1064,12 +1084,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.DebuggedSourceFile) - private static final org.tensorflow.proto.framework.DebuggedSourceFile DEFAULT_INSTANCE; + private static final org.tensorflow.proto.DebuggedSourceFile DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.DebuggedSourceFile(); + DEFAULT_INSTANCE = new org.tensorflow.proto.DebuggedSourceFile(); } - public static org.tensorflow.proto.framework.DebuggedSourceFile getDefaultInstance() { + public static org.tensorflow.proto.DebuggedSourceFile getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1080,7 +1100,18 @@ public DebuggedSourceFile parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DebuggedSourceFile(input, extensionRegistry); + 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(); } }; @@ -1094,7 +1125,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.DebuggedSourceFile getDefaultInstanceForType() { + public org.tensorflow.proto.DebuggedSourceFile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebuggedSourceFileOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedSourceFileOrBuilder.java similarity index 80% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebuggedSourceFileOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedSourceFileOrBuilder.java index 1a855dc8a07..dd46e4ec55d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebuggedSourceFileOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedSourceFileOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface DebuggedSourceFileOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.DebuggedSourceFile) @@ -13,6 +13,7 @@ public interface DebuggedSourceFileOrBuilder extends * * * string host = 1; + * @return The host. */ java.lang.String getHost(); /** @@ -21,6 +22,7 @@ public interface DebuggedSourceFileOrBuilder extends * * * string host = 1; + * @return The bytes for host. */ com.google.protobuf.ByteString getHostBytes(); @@ -31,6 +33,7 @@ public interface DebuggedSourceFileOrBuilder extends * * * string file_path = 2; + * @return The filePath. */ java.lang.String getFilePath(); /** @@ -39,6 +42,7 @@ public interface DebuggedSourceFileOrBuilder extends * * * string file_path = 2; + * @return The bytes for filePath. */ com.google.protobuf.ByteString getFilePathBytes(); @@ -49,6 +53,7 @@ public interface DebuggedSourceFileOrBuilder extends * * * int64 last_modified = 3; + * @return The lastModified. */ long getLastModified(); @@ -58,6 +63,7 @@ public interface DebuggedSourceFileOrBuilder extends * * * int64 bytes = 4; + * @return The bytes. */ long getBytes(); @@ -67,6 +73,7 @@ public interface DebuggedSourceFileOrBuilder extends * * * repeated string lines = 5; + * @return A list containing the lines. */ java.util.List getLinesList(); @@ -76,6 +83,7 @@ public interface DebuggedSourceFileOrBuilder extends * * * repeated string lines = 5; + * @return The count of lines. */ int getLinesCount(); /** @@ -84,6 +92,8 @@ public interface DebuggedSourceFileOrBuilder extends * * * repeated string lines = 5; + * @param index The index of the element to return. + * @return The lines at the given index. */ java.lang.String getLines(int index); /** @@ -92,6 +102,8 @@ public interface DebuggedSourceFileOrBuilder extends * * * repeated string lines = 5; + * @param index The index of the value to return. + * @return The bytes of the lines at the given index. */ com.google.protobuf.ByteString getLinesBytes(int index); diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedSourceFiles.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedSourceFiles.java new file mode 100644 index 00000000000..e4591aba13f --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedSourceFiles.java @@ -0,0 +1,844 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/debug.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.DebuggedSourceFiles} + */ +public final class DebuggedSourceFiles extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.DebuggedSourceFiles) + DebuggedSourceFilesOrBuilder { +private static final long serialVersionUID = 0L; + // Use DebuggedSourceFiles.newBuilder() to construct. + private DebuggedSourceFiles(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DebuggedSourceFiles() { + sourceFiles_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DebuggedSourceFiles(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DebugProtos.internal_static_tensorflow_DebuggedSourceFiles_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DebugProtos.internal_static_tensorflow_DebuggedSourceFiles_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.DebuggedSourceFiles.class, org.tensorflow.proto.DebuggedSourceFiles.Builder.class); + } + + public static final int SOURCE_FILES_FIELD_NUMBER = 1; + private java.util.List sourceFiles_; + /** + *
+   * A collection of source code files.
+   * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + @java.lang.Override + public java.util.List getSourceFilesList() { + return sourceFiles_; + } + /** + *
+   * A collection of source code files.
+   * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + @java.lang.Override + public java.util.List + getSourceFilesOrBuilderList() { + return sourceFiles_; + } + /** + *
+   * A collection of source code files.
+   * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + @java.lang.Override + public int getSourceFilesCount() { + return sourceFiles_.size(); + } + /** + *
+   * A collection of source code files.
+   * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + @java.lang.Override + public org.tensorflow.proto.DebuggedSourceFile getSourceFiles(int index) { + return sourceFiles_.get(index); + } + /** + *
+   * A collection of source code files.
+   * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + @java.lang.Override + public org.tensorflow.proto.DebuggedSourceFileOrBuilder getSourceFilesOrBuilder( + int index) { + return sourceFiles_.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 < sourceFiles_.size(); i++) { + output.writeMessage(1, sourceFiles_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < sourceFiles_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, sourceFiles_.get(i)); + } + 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 org.tensorflow.proto.DebuggedSourceFiles)) { + return super.equals(obj); + } + org.tensorflow.proto.DebuggedSourceFiles other = (org.tensorflow.proto.DebuggedSourceFiles) obj; + + if (!getSourceFilesList() + .equals(other.getSourceFilesList())) 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 (getSourceFilesCount() > 0) { + hash = (37 * hash) + SOURCE_FILES_FIELD_NUMBER; + hash = (53 * hash) + getSourceFilesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.DebuggedSourceFiles parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.DebuggedSourceFiles parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.DebuggedSourceFiles parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.DebuggedSourceFiles parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.DebuggedSourceFiles parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.DebuggedSourceFiles parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.DebuggedSourceFiles parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.DebuggedSourceFiles 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 org.tensorflow.proto.DebuggedSourceFiles parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.DebuggedSourceFiles 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 org.tensorflow.proto.DebuggedSourceFiles parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.DebuggedSourceFiles 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(org.tensorflow.proto.DebuggedSourceFiles prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.DebuggedSourceFiles} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.DebuggedSourceFiles) + org.tensorflow.proto.DebuggedSourceFilesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DebugProtos.internal_static_tensorflow_DebuggedSourceFiles_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DebugProtos.internal_static_tensorflow_DebuggedSourceFiles_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.DebuggedSourceFiles.class, org.tensorflow.proto.DebuggedSourceFiles.Builder.class); + } + + // Construct using org.tensorflow.proto.DebuggedSourceFiles.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (sourceFilesBuilder_ == null) { + sourceFiles_ = java.util.Collections.emptyList(); + } else { + sourceFiles_ = null; + sourceFilesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.DebugProtos.internal_static_tensorflow_DebuggedSourceFiles_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.DebuggedSourceFiles getDefaultInstanceForType() { + return org.tensorflow.proto.DebuggedSourceFiles.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.DebuggedSourceFiles build() { + org.tensorflow.proto.DebuggedSourceFiles result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.DebuggedSourceFiles buildPartial() { + org.tensorflow.proto.DebuggedSourceFiles result = new org.tensorflow.proto.DebuggedSourceFiles(this); + int from_bitField0_ = bitField0_; + if (sourceFilesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sourceFiles_ = java.util.Collections.unmodifiableList(sourceFiles_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sourceFiles_ = sourceFiles_; + } else { + result.sourceFiles_ = sourceFilesBuilder_.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 org.tensorflow.proto.DebuggedSourceFiles) { + return mergeFrom((org.tensorflow.proto.DebuggedSourceFiles)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.DebuggedSourceFiles other) { + if (other == org.tensorflow.proto.DebuggedSourceFiles.getDefaultInstance()) return this; + if (sourceFilesBuilder_ == null) { + if (!other.sourceFiles_.isEmpty()) { + if (sourceFiles_.isEmpty()) { + sourceFiles_ = other.sourceFiles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSourceFilesIsMutable(); + sourceFiles_.addAll(other.sourceFiles_); + } + onChanged(); + } + } else { + if (!other.sourceFiles_.isEmpty()) { + if (sourceFilesBuilder_.isEmpty()) { + sourceFilesBuilder_.dispose(); + sourceFilesBuilder_ = null; + sourceFiles_ = other.sourceFiles_; + bitField0_ = (bitField0_ & ~0x00000001); + sourceFilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSourceFilesFieldBuilder() : null; + } else { + sourceFilesBuilder_.addAllMessages(other.sourceFiles_); + } + } + } + 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: { + org.tensorflow.proto.DebuggedSourceFile m = + input.readMessage( + org.tensorflow.proto.DebuggedSourceFile.parser(), + extensionRegistry); + if (sourceFilesBuilder_ == null) { + ensureSourceFilesIsMutable(); + sourceFiles_.add(m); + } else { + sourceFilesBuilder_.addMessage(m); + } + 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.util.List sourceFiles_ = + java.util.Collections.emptyList(); + private void ensureSourceFilesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sourceFiles_ = new java.util.ArrayList(sourceFiles_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.DebuggedSourceFile, org.tensorflow.proto.DebuggedSourceFile.Builder, org.tensorflow.proto.DebuggedSourceFileOrBuilder> sourceFilesBuilder_; + + /** + *
+     * A collection of source code files.
+     * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + public java.util.List getSourceFilesList() { + if (sourceFilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sourceFiles_); + } else { + return sourceFilesBuilder_.getMessageList(); + } + } + /** + *
+     * A collection of source code files.
+     * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + public int getSourceFilesCount() { + if (sourceFilesBuilder_ == null) { + return sourceFiles_.size(); + } else { + return sourceFilesBuilder_.getCount(); + } + } + /** + *
+     * A collection of source code files.
+     * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + public org.tensorflow.proto.DebuggedSourceFile getSourceFiles(int index) { + if (sourceFilesBuilder_ == null) { + return sourceFiles_.get(index); + } else { + return sourceFilesBuilder_.getMessage(index); + } + } + /** + *
+     * A collection of source code files.
+     * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + public Builder setSourceFiles( + int index, org.tensorflow.proto.DebuggedSourceFile value) { + if (sourceFilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceFilesIsMutable(); + sourceFiles_.set(index, value); + onChanged(); + } else { + sourceFilesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A collection of source code files.
+     * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + public Builder setSourceFiles( + int index, org.tensorflow.proto.DebuggedSourceFile.Builder builderForValue) { + if (sourceFilesBuilder_ == null) { + ensureSourceFilesIsMutable(); + sourceFiles_.set(index, builderForValue.build()); + onChanged(); + } else { + sourceFilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A collection of source code files.
+     * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + public Builder addSourceFiles(org.tensorflow.proto.DebuggedSourceFile value) { + if (sourceFilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceFilesIsMutable(); + sourceFiles_.add(value); + onChanged(); + } else { + sourceFilesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A collection of source code files.
+     * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + public Builder addSourceFiles( + int index, org.tensorflow.proto.DebuggedSourceFile value) { + if (sourceFilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceFilesIsMutable(); + sourceFiles_.add(index, value); + onChanged(); + } else { + sourceFilesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A collection of source code files.
+     * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + public Builder addSourceFiles( + org.tensorflow.proto.DebuggedSourceFile.Builder builderForValue) { + if (sourceFilesBuilder_ == null) { + ensureSourceFilesIsMutable(); + sourceFiles_.add(builderForValue.build()); + onChanged(); + } else { + sourceFilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A collection of source code files.
+     * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + public Builder addSourceFiles( + int index, org.tensorflow.proto.DebuggedSourceFile.Builder builderForValue) { + if (sourceFilesBuilder_ == null) { + ensureSourceFilesIsMutable(); + sourceFiles_.add(index, builderForValue.build()); + onChanged(); + } else { + sourceFilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A collection of source code files.
+     * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + public Builder addAllSourceFiles( + java.lang.Iterable values) { + if (sourceFilesBuilder_ == null) { + ensureSourceFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sourceFiles_); + onChanged(); + } else { + sourceFilesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A collection of source code files.
+     * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + public Builder clearSourceFiles() { + if (sourceFilesBuilder_ == null) { + sourceFiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sourceFilesBuilder_.clear(); + } + return this; + } + /** + *
+     * A collection of source code files.
+     * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + public Builder removeSourceFiles(int index) { + if (sourceFilesBuilder_ == null) { + ensureSourceFilesIsMutable(); + sourceFiles_.remove(index); + onChanged(); + } else { + sourceFilesBuilder_.remove(index); + } + return this; + } + /** + *
+     * A collection of source code files.
+     * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + public org.tensorflow.proto.DebuggedSourceFile.Builder getSourceFilesBuilder( + int index) { + return getSourceFilesFieldBuilder().getBuilder(index); + } + /** + *
+     * A collection of source code files.
+     * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + public org.tensorflow.proto.DebuggedSourceFileOrBuilder getSourceFilesOrBuilder( + int index) { + if (sourceFilesBuilder_ == null) { + return sourceFiles_.get(index); } else { + return sourceFilesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A collection of source code files.
+     * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + public java.util.List + getSourceFilesOrBuilderList() { + if (sourceFilesBuilder_ != null) { + return sourceFilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sourceFiles_); + } + } + /** + *
+     * A collection of source code files.
+     * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + public org.tensorflow.proto.DebuggedSourceFile.Builder addSourceFilesBuilder() { + return getSourceFilesFieldBuilder().addBuilder( + org.tensorflow.proto.DebuggedSourceFile.getDefaultInstance()); + } + /** + *
+     * A collection of source code files.
+     * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + public org.tensorflow.proto.DebuggedSourceFile.Builder addSourceFilesBuilder( + int index) { + return getSourceFilesFieldBuilder().addBuilder( + index, org.tensorflow.proto.DebuggedSourceFile.getDefaultInstance()); + } + /** + *
+     * A collection of source code files.
+     * 
+ * + * repeated .tensorflow.DebuggedSourceFile source_files = 1; + */ + public java.util.List + getSourceFilesBuilderList() { + return getSourceFilesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.DebuggedSourceFile, org.tensorflow.proto.DebuggedSourceFile.Builder, org.tensorflow.proto.DebuggedSourceFileOrBuilder> + getSourceFilesFieldBuilder() { + if (sourceFilesBuilder_ == null) { + sourceFilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.DebuggedSourceFile, org.tensorflow.proto.DebuggedSourceFile.Builder, org.tensorflow.proto.DebuggedSourceFileOrBuilder>( + sourceFiles_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + sourceFiles_ = null; + } + return sourceFilesBuilder_; + } + @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:tensorflow.DebuggedSourceFiles) + } + + // @@protoc_insertion_point(class_scope:tensorflow.DebuggedSourceFiles) + private static final org.tensorflow.proto.DebuggedSourceFiles DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.DebuggedSourceFiles(); + } + + public static org.tensorflow.proto.DebuggedSourceFiles getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DebuggedSourceFiles 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 org.tensorflow.proto.DebuggedSourceFiles getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebuggedSourceFilesOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedSourceFilesOrBuilder.java similarity index 76% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebuggedSourceFilesOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedSourceFilesOrBuilder.java index 3afc8e4f78f..d1371fa0576 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DebuggedSourceFilesOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DebuggedSourceFilesOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface DebuggedSourceFilesOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.DebuggedSourceFiles) @@ -14,7 +14,7 @@ public interface DebuggedSourceFilesOrBuilder extends * * repeated .tensorflow.DebuggedSourceFile source_files = 1; */ - java.util.List + java.util.List getSourceFilesList(); /** *
@@ -23,7 +23,7 @@ public interface DebuggedSourceFilesOrBuilder extends
    *
    * repeated .tensorflow.DebuggedSourceFile source_files = 1;
    */
-  org.tensorflow.proto.framework.DebuggedSourceFile getSourceFiles(int index);
+  org.tensorflow.proto.DebuggedSourceFile getSourceFiles(int index);
   /**
    * 
    * A collection of source code files.
@@ -39,7 +39,7 @@ public interface DebuggedSourceFilesOrBuilder extends
    *
    * repeated .tensorflow.DebuggedSourceFile source_files = 1;
    */
-  java.util.List 
+  java.util.List 
       getSourceFilesOrBuilderList();
   /**
    * 
@@ -48,6 +48,6 @@ public interface DebuggedSourceFilesOrBuilder extends
    *
    * repeated .tensorflow.DebuggedSourceFile source_files = 1;
    */
-  org.tensorflow.proto.framework.DebuggedSourceFileOrBuilder getSourceFilesOrBuilder(
+  org.tensorflow.proto.DebuggedSourceFileOrBuilder getSourceFilesOrBuilder(
       int index);
 }
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceAttributes.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceAttributes.java
similarity index 77%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceAttributes.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceAttributes.java
index 88a956395be..44e03666490 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceAttributes.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceAttributes.java
@@ -1,12 +1,12 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/framework/device_attributes.proto
 
-package org.tensorflow.proto.framework;
+package org.tensorflow.proto;
 
 /**
  * Protobuf type {@code tensorflow.DeviceAttributes}
  */
-public  final class DeviceAttributes extends
+public final class DeviceAttributes extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.DeviceAttributes)
     DeviceAttributesOrBuilder {
@@ -33,100 +33,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private DeviceAttributes(
-      com.google.protobuf.CodedInputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws com.google.protobuf.InvalidProtocolBufferException {
-    this();
-    if (extensionRegistry == null) {
-      throw new java.lang.NullPointerException();
-    }
-    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
-        com.google.protobuf.UnknownFieldSet.newBuilder();
-    try {
-      boolean done = false;
-      while (!done) {
-        int tag = input.readTag();
-        switch (tag) {
-          case 0:
-            done = true;
-            break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            deviceType_ = s;
-            break;
-          }
-          case 32: {
-
-            memoryLimit_ = input.readInt64();
-            break;
-          }
-          case 42: {
-            org.tensorflow.proto.framework.DeviceLocality.Builder subBuilder = null;
-            if (locality_ != null) {
-              subBuilder = locality_.toBuilder();
-            }
-            locality_ = input.readMessage(org.tensorflow.proto.framework.DeviceLocality.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(locality_);
-              locality_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 49: {
-
-            incarnation_ = input.readFixed64();
-            break;
-          }
-          case 58: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            physicalDeviceDesc_ = s;
-            break;
-          }
-          case 64: {
-
-            xlaGlobalId_ = input.readInt64();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
-        }
-      }
-    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-      throw e.setUnfinishedMessage(this);
-    } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
-    } finally {
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.framework.DeviceAttributesProtos.internal_static_tensorflow_DeviceAttributes_descriptor;
+    return org.tensorflow.proto.DeviceAttributesProtos.internal_static_tensorflow_DeviceAttributes_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.framework.DeviceAttributesProtos.internal_static_tensorflow_DeviceAttributes_fieldAccessorTable
+    return org.tensorflow.proto.DeviceAttributesProtos.internal_static_tensorflow_DeviceAttributes_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.framework.DeviceAttributes.class, org.tensorflow.proto.framework.DeviceAttributes.Builder.class);
+            org.tensorflow.proto.DeviceAttributes.class, org.tensorflow.proto.DeviceAttributes.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
@@ -137,7 +54,9 @@ private DeviceAttributes(
    * 
* * string name = 1; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -156,7 +75,9 @@ public java.lang.String getName() { *
* * string name = 1; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -179,7 +100,9 @@ public java.lang.String getName() { *
* * string device_type = 2; + * @return The deviceType. */ + @java.lang.Override public java.lang.String getDeviceType() { java.lang.Object ref = deviceType_; if (ref instanceof java.lang.String) { @@ -198,7 +121,9 @@ public java.lang.String getDeviceType() { * * * string device_type = 2; + * @return The bytes for deviceType. */ + @java.lang.Override public com.google.protobuf.ByteString getDeviceTypeBytes() { java.lang.Object ref = deviceType_; @@ -221,13 +146,15 @@ public java.lang.String getDeviceType() { * * * int64 memory_limit = 4; + * @return The memoryLimit. */ + @java.lang.Override public long getMemoryLimit() { return memoryLimit_; } public static final int LOCALITY_FIELD_NUMBER = 5; - private org.tensorflow.proto.framework.DeviceLocality locality_; + private org.tensorflow.proto.DeviceLocality locality_; /** *
    * Platform-specific data about device that may be useful
@@ -235,7 +162,9 @@ public long getMemoryLimit() {
    * 
* * .tensorflow.DeviceLocality locality = 5; + * @return Whether the locality field is set. */ + @java.lang.Override public boolean hasLocality() { return locality_ != null; } @@ -246,9 +175,11 @@ public boolean hasLocality() { * * * .tensorflow.DeviceLocality locality = 5; + * @return The locality. */ - public org.tensorflow.proto.framework.DeviceLocality getLocality() { - return locality_ == null ? org.tensorflow.proto.framework.DeviceLocality.getDefaultInstance() : locality_; + @java.lang.Override + public org.tensorflow.proto.DeviceLocality getLocality() { + return locality_ == null ? org.tensorflow.proto.DeviceLocality.getDefaultInstance() : locality_; } /** *
@@ -258,7 +189,8 @@ public org.tensorflow.proto.framework.DeviceLocality getLocality() {
    *
    * .tensorflow.DeviceLocality locality = 5;
    */
-  public org.tensorflow.proto.framework.DeviceLocalityOrBuilder getLocalityOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.DeviceLocalityOrBuilder getLocalityOrBuilder() {
     return getLocality();
   }
 
@@ -271,7 +203,9 @@ public org.tensorflow.proto.framework.DeviceLocalityOrBuilder getLocalityOrBuild
    * 
* * fixed64 incarnation = 6; + * @return The incarnation. */ + @java.lang.Override public long getIncarnation() { return incarnation_; } @@ -284,7 +218,9 @@ public long getIncarnation() { * * * string physical_device_desc = 7; + * @return The physicalDeviceDesc. */ + @java.lang.Override public java.lang.String getPhysicalDeviceDesc() { java.lang.Object ref = physicalDeviceDesc_; if (ref instanceof java.lang.String) { @@ -303,7 +239,9 @@ public java.lang.String getPhysicalDeviceDesc() { * * * string physical_device_desc = 7; + * @return The bytes for physicalDeviceDesc. */ + @java.lang.Override public com.google.protobuf.ByteString getPhysicalDeviceDescBytes() { java.lang.Object ref = physicalDeviceDesc_; @@ -328,7 +266,9 @@ public java.lang.String getPhysicalDeviceDesc() { * * * int64 xla_global_id = 8; + * @return The xlaGlobalId. */ + @java.lang.Override public long getXlaGlobalId() { return xlaGlobalId_; } @@ -347,10 +287,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDeviceTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deviceType_); } if (memoryLimit_ != 0L) { @@ -362,13 +302,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (incarnation_ != 0L) { output.writeFixed64(6, incarnation_); } - if (!getPhysicalDeviceDescBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(physicalDeviceDesc_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, physicalDeviceDesc_); } if (xlaGlobalId_ != 0L) { output.writeInt64(8, xlaGlobalId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -377,10 +317,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDeviceTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deviceType_); } if (memoryLimit_ != 0L) { @@ -395,14 +335,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeFixed64Size(6, incarnation_); } - if (!getPhysicalDeviceDescBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(physicalDeviceDesc_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, physicalDeviceDesc_); } if (xlaGlobalId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, xlaGlobalId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -412,10 +352,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.DeviceAttributes)) { + if (!(obj instanceof org.tensorflow.proto.DeviceAttributes)) { return super.equals(obj); } - org.tensorflow.proto.framework.DeviceAttributes other = (org.tensorflow.proto.framework.DeviceAttributes) obj; + org.tensorflow.proto.DeviceAttributes other = (org.tensorflow.proto.DeviceAttributes) obj; if (!getName() .equals(other.getName())) return false; @@ -434,7 +374,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getPhysicalDeviceDesc())) return false; if (getXlaGlobalId() != other.getXlaGlobalId()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -464,74 +404,74 @@ public int hashCode() { hash = (37 * hash) + XLA_GLOBAL_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getXlaGlobalId()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.DeviceAttributes parseFrom( + public static org.tensorflow.proto.DeviceAttributes parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.DeviceAttributes parseFrom( + public static org.tensorflow.proto.DeviceAttributes parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.DeviceAttributes parseFrom( + public static org.tensorflow.proto.DeviceAttributes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.DeviceAttributes parseFrom( + public static org.tensorflow.proto.DeviceAttributes parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.DeviceAttributes parseFrom(byte[] data) + public static org.tensorflow.proto.DeviceAttributes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.DeviceAttributes parseFrom( + public static org.tensorflow.proto.DeviceAttributes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.DeviceAttributes parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.DeviceAttributes parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.DeviceAttributes parseFrom( + public static org.tensorflow.proto.DeviceAttributes 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 org.tensorflow.proto.framework.DeviceAttributes parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.DeviceAttributes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.DeviceAttributes parseDelimitedFrom( + public static org.tensorflow.proto.DeviceAttributes 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 org.tensorflow.proto.framework.DeviceAttributes parseFrom( + public static org.tensorflow.proto.DeviceAttributes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.DeviceAttributes parseFrom( + public static org.tensorflow.proto.DeviceAttributes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -544,7 +484,7 @@ public static org.tensorflow.proto.framework.DeviceAttributes parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.DeviceAttributes prototype) { + public static Builder newBuilder(org.tensorflow.proto.DeviceAttributes prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -565,34 +505,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.DeviceAttributes) - org.tensorflow.proto.framework.DeviceAttributesOrBuilder { + org.tensorflow.proto.DeviceAttributesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.DeviceAttributesProtos.internal_static_tensorflow_DeviceAttributes_descriptor; + return org.tensorflow.proto.DeviceAttributesProtos.internal_static_tensorflow_DeviceAttributes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.DeviceAttributesProtos.internal_static_tensorflow_DeviceAttributes_fieldAccessorTable + return org.tensorflow.proto.DeviceAttributesProtos.internal_static_tensorflow_DeviceAttributes_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.DeviceAttributes.class, org.tensorflow.proto.framework.DeviceAttributes.Builder.class); + org.tensorflow.proto.DeviceAttributes.class, org.tensorflow.proto.DeviceAttributes.Builder.class); } - // Construct using org.tensorflow.proto.framework.DeviceAttributes.newBuilder() + // Construct using org.tensorflow.proto.DeviceAttributes.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -621,17 +556,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.DeviceAttributesProtos.internal_static_tensorflow_DeviceAttributes_descriptor; + return org.tensorflow.proto.DeviceAttributesProtos.internal_static_tensorflow_DeviceAttributes_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.DeviceAttributes getDefaultInstanceForType() { - return org.tensorflow.proto.framework.DeviceAttributes.getDefaultInstance(); + public org.tensorflow.proto.DeviceAttributes getDefaultInstanceForType() { + return org.tensorflow.proto.DeviceAttributes.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.DeviceAttributes build() { - org.tensorflow.proto.framework.DeviceAttributes result = buildPartial(); + public org.tensorflow.proto.DeviceAttributes build() { + org.tensorflow.proto.DeviceAttributes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -639,8 +574,8 @@ public org.tensorflow.proto.framework.DeviceAttributes build() { } @java.lang.Override - public org.tensorflow.proto.framework.DeviceAttributes buildPartial() { - org.tensorflow.proto.framework.DeviceAttributes result = new org.tensorflow.proto.framework.DeviceAttributes(this); + public org.tensorflow.proto.DeviceAttributes buildPartial() { + org.tensorflow.proto.DeviceAttributes result = new org.tensorflow.proto.DeviceAttributes(this); result.name_ = name_; result.deviceType_ = deviceType_; result.memoryLimit_ = memoryLimit_; @@ -690,16 +625,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.DeviceAttributes) { - return mergeFrom((org.tensorflow.proto.framework.DeviceAttributes)other); + if (other instanceof org.tensorflow.proto.DeviceAttributes) { + return mergeFrom((org.tensorflow.proto.DeviceAttributes)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.DeviceAttributes other) { - if (other == org.tensorflow.proto.framework.DeviceAttributes.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.DeviceAttributes other) { + if (other == org.tensorflow.proto.DeviceAttributes.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -724,7 +659,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.DeviceAttributes other) if (other.getXlaGlobalId() != 0L) { setXlaGlobalId(other.getXlaGlobalId()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -739,17 +674,67 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.DeviceAttributes parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + deviceType_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 32: { + memoryLimit_ = input.readInt64(); + + break; + } // case 32 + case 42: { + input.readMessage( + getLocalityFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + case 49: { + incarnation_ = input.readFixed64(); + + break; + } // case 49 + case 58: { + physicalDeviceDesc_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 64: { + xlaGlobalId_ = input.readInt64(); + + break; + } // case 64 + 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) { - parsedMessage = (org.tensorflow.proto.framework.DeviceAttributes) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -760,6 +745,7 @@ public Builder mergeFrom( * * * string name = 1; + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -779,6 +765,7 @@ public java.lang.String getName() { * * * string name = 1; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -799,6 +786,8 @@ public java.lang.String getName() { * * * string name = 1; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { @@ -816,6 +805,7 @@ public Builder setName( * * * string name = 1; + * @return This builder for chaining. */ public Builder clearName() { @@ -829,6 +819,8 @@ public Builder clearName() { * * * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { @@ -849,6 +841,7 @@ public Builder setNameBytes( * * * string device_type = 2; + * @return The deviceType. */ public java.lang.String getDeviceType() { java.lang.Object ref = deviceType_; @@ -868,6 +861,7 @@ public java.lang.String getDeviceType() { * * * string device_type = 2; + * @return The bytes for deviceType. */ public com.google.protobuf.ByteString getDeviceTypeBytes() { @@ -888,6 +882,8 @@ public java.lang.String getDeviceType() { * * * string device_type = 2; + * @param value The deviceType to set. + * @return This builder for chaining. */ public Builder setDeviceType( java.lang.String value) { @@ -905,6 +901,7 @@ public Builder setDeviceType( * * * string device_type = 2; + * @return This builder for chaining. */ public Builder clearDeviceType() { @@ -918,6 +915,8 @@ public Builder clearDeviceType() { * * * string device_type = 2; + * @param value The bytes for deviceType to set. + * @return This builder for chaining. */ public Builder setDeviceTypeBytes( com.google.protobuf.ByteString value) { @@ -938,7 +937,9 @@ public Builder setDeviceTypeBytes( * * * int64 memory_limit = 4; + * @return The memoryLimit. */ + @java.lang.Override public long getMemoryLimit() { return memoryLimit_; } @@ -948,6 +949,8 @@ public long getMemoryLimit() { * * * int64 memory_limit = 4; + * @param value The memoryLimit to set. + * @return This builder for chaining. */ public Builder setMemoryLimit(long value) { @@ -961,6 +964,7 @@ public Builder setMemoryLimit(long value) { * * * int64 memory_limit = 4; + * @return This builder for chaining. */ public Builder clearMemoryLimit() { @@ -969,9 +973,9 @@ public Builder clearMemoryLimit() { return this; } - private org.tensorflow.proto.framework.DeviceLocality locality_; + private org.tensorflow.proto.DeviceLocality locality_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.DeviceLocality, org.tensorflow.proto.framework.DeviceLocality.Builder, org.tensorflow.proto.framework.DeviceLocalityOrBuilder> localityBuilder_; + org.tensorflow.proto.DeviceLocality, org.tensorflow.proto.DeviceLocality.Builder, org.tensorflow.proto.DeviceLocalityOrBuilder> localityBuilder_; /** *
      * Platform-specific data about device that may be useful
@@ -979,6 +983,7 @@ public Builder clearMemoryLimit() {
      * 
* * .tensorflow.DeviceLocality locality = 5; + * @return Whether the locality field is set. */ public boolean hasLocality() { return localityBuilder_ != null || locality_ != null; @@ -990,10 +995,11 @@ public boolean hasLocality() { * * * .tensorflow.DeviceLocality locality = 5; + * @return The locality. */ - public org.tensorflow.proto.framework.DeviceLocality getLocality() { + public org.tensorflow.proto.DeviceLocality getLocality() { if (localityBuilder_ == null) { - return locality_ == null ? org.tensorflow.proto.framework.DeviceLocality.getDefaultInstance() : locality_; + return locality_ == null ? org.tensorflow.proto.DeviceLocality.getDefaultInstance() : locality_; } else { return localityBuilder_.getMessage(); } @@ -1006,7 +1012,7 @@ public org.tensorflow.proto.framework.DeviceLocality getLocality() { * * .tensorflow.DeviceLocality locality = 5; */ - public Builder setLocality(org.tensorflow.proto.framework.DeviceLocality value) { + public Builder setLocality(org.tensorflow.proto.DeviceLocality value) { if (localityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1028,7 +1034,7 @@ public Builder setLocality(org.tensorflow.proto.framework.DeviceLocality value) * .tensorflow.DeviceLocality locality = 5; */ public Builder setLocality( - org.tensorflow.proto.framework.DeviceLocality.Builder builderForValue) { + org.tensorflow.proto.DeviceLocality.Builder builderForValue) { if (localityBuilder_ == null) { locality_ = builderForValue.build(); onChanged(); @@ -1046,11 +1052,11 @@ public Builder setLocality( * * .tensorflow.DeviceLocality locality = 5; */ - public Builder mergeLocality(org.tensorflow.proto.framework.DeviceLocality value) { + public Builder mergeLocality(org.tensorflow.proto.DeviceLocality value) { if (localityBuilder_ == null) { if (locality_ != null) { locality_ = - org.tensorflow.proto.framework.DeviceLocality.newBuilder(locality_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.DeviceLocality.newBuilder(locality_).mergeFrom(value).buildPartial(); } else { locality_ = value; } @@ -1088,7 +1094,7 @@ public Builder clearLocality() { * * .tensorflow.DeviceLocality locality = 5; */ - public org.tensorflow.proto.framework.DeviceLocality.Builder getLocalityBuilder() { + public org.tensorflow.proto.DeviceLocality.Builder getLocalityBuilder() { onChanged(); return getLocalityFieldBuilder().getBuilder(); @@ -1101,12 +1107,12 @@ public org.tensorflow.proto.framework.DeviceLocality.Builder getLocalityBuilder( * * .tensorflow.DeviceLocality locality = 5; */ - public org.tensorflow.proto.framework.DeviceLocalityOrBuilder getLocalityOrBuilder() { + public org.tensorflow.proto.DeviceLocalityOrBuilder getLocalityOrBuilder() { if (localityBuilder_ != null) { return localityBuilder_.getMessageOrBuilder(); } else { return locality_ == null ? - org.tensorflow.proto.framework.DeviceLocality.getDefaultInstance() : locality_; + org.tensorflow.proto.DeviceLocality.getDefaultInstance() : locality_; } } /** @@ -1118,11 +1124,11 @@ public org.tensorflow.proto.framework.DeviceLocalityOrBuilder getLocalityOrBuild * .tensorflow.DeviceLocality locality = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.DeviceLocality, org.tensorflow.proto.framework.DeviceLocality.Builder, org.tensorflow.proto.framework.DeviceLocalityOrBuilder> + org.tensorflow.proto.DeviceLocality, org.tensorflow.proto.DeviceLocality.Builder, org.tensorflow.proto.DeviceLocalityOrBuilder> getLocalityFieldBuilder() { if (localityBuilder_ == null) { localityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.DeviceLocality, org.tensorflow.proto.framework.DeviceLocality.Builder, org.tensorflow.proto.framework.DeviceLocalityOrBuilder>( + org.tensorflow.proto.DeviceLocality, org.tensorflow.proto.DeviceLocality.Builder, org.tensorflow.proto.DeviceLocalityOrBuilder>( getLocality(), getParentForChildren(), isClean()); @@ -1139,7 +1145,9 @@ public org.tensorflow.proto.framework.DeviceLocalityOrBuilder getLocalityOrBuild * * * fixed64 incarnation = 6; + * @return The incarnation. */ + @java.lang.Override public long getIncarnation() { return incarnation_; } @@ -1150,6 +1158,8 @@ public long getIncarnation() { * * * fixed64 incarnation = 6; + * @param value The incarnation to set. + * @return This builder for chaining. */ public Builder setIncarnation(long value) { @@ -1164,6 +1174,7 @@ public Builder setIncarnation(long value) { * * * fixed64 incarnation = 6; + * @return This builder for chaining. */ public Builder clearIncarnation() { @@ -1179,6 +1190,7 @@ public Builder clearIncarnation() { * * * string physical_device_desc = 7; + * @return The physicalDeviceDesc. */ public java.lang.String getPhysicalDeviceDesc() { java.lang.Object ref = physicalDeviceDesc_; @@ -1198,6 +1210,7 @@ public java.lang.String getPhysicalDeviceDesc() { * * * string physical_device_desc = 7; + * @return The bytes for physicalDeviceDesc. */ public com.google.protobuf.ByteString getPhysicalDeviceDescBytes() { @@ -1218,6 +1231,8 @@ public java.lang.String getPhysicalDeviceDesc() { * * * string physical_device_desc = 7; + * @param value The physicalDeviceDesc to set. + * @return This builder for chaining. */ public Builder setPhysicalDeviceDesc( java.lang.String value) { @@ -1235,6 +1250,7 @@ public Builder setPhysicalDeviceDesc( * * * string physical_device_desc = 7; + * @return This builder for chaining. */ public Builder clearPhysicalDeviceDesc() { @@ -1248,6 +1264,8 @@ public Builder clearPhysicalDeviceDesc() { * * * string physical_device_desc = 7; + * @param value The bytes for physicalDeviceDesc to set. + * @return This builder for chaining. */ public Builder setPhysicalDeviceDescBytes( com.google.protobuf.ByteString value) { @@ -1270,7 +1288,9 @@ public Builder setPhysicalDeviceDescBytes( * * * int64 xla_global_id = 8; + * @return The xlaGlobalId. */ + @java.lang.Override public long getXlaGlobalId() { return xlaGlobalId_; } @@ -1282,6 +1302,8 @@ public long getXlaGlobalId() { * * * int64 xla_global_id = 8; + * @param value The xlaGlobalId to set. + * @return This builder for chaining. */ public Builder setXlaGlobalId(long value) { @@ -1297,6 +1319,7 @@ public Builder setXlaGlobalId(long value) { * * * int64 xla_global_id = 8; + * @return This builder for chaining. */ public Builder clearXlaGlobalId() { @@ -1321,12 +1344,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.DeviceAttributes) - private static final org.tensorflow.proto.framework.DeviceAttributes DEFAULT_INSTANCE; + private static final org.tensorflow.proto.DeviceAttributes DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.DeviceAttributes(); + DEFAULT_INSTANCE = new org.tensorflow.proto.DeviceAttributes(); } - public static org.tensorflow.proto.framework.DeviceAttributes getDefaultInstance() { + public static org.tensorflow.proto.DeviceAttributes getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1337,7 +1360,18 @@ public DeviceAttributes parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeviceAttributes(input, extensionRegistry); + 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(); } }; @@ -1351,7 +1385,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.DeviceAttributes getDefaultInstanceForType() { + public org.tensorflow.proto.DeviceAttributes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceAttributesOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceAttributesOrBuilder.java similarity index 83% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceAttributesOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceAttributesOrBuilder.java index 565e6c205ad..df70f5dc31d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceAttributesOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceAttributesOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/device_attributes.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface DeviceAttributesOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.DeviceAttributes) @@ -13,6 +13,7 @@ public interface DeviceAttributesOrBuilder extends * * * string name = 1; + * @return The name. */ java.lang.String getName(); /** @@ -21,6 +22,7 @@ public interface DeviceAttributesOrBuilder extends * * * string name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -31,6 +33,7 @@ public interface DeviceAttributesOrBuilder extends * * * string device_type = 2; + * @return The deviceType. */ java.lang.String getDeviceType(); /** @@ -39,6 +42,7 @@ public interface DeviceAttributesOrBuilder extends * * * string device_type = 2; + * @return The bytes for deviceType. */ com.google.protobuf.ByteString getDeviceTypeBytes(); @@ -49,6 +53,7 @@ public interface DeviceAttributesOrBuilder extends * * * int64 memory_limit = 4; + * @return The memoryLimit. */ long getMemoryLimit(); @@ -59,6 +64,7 @@ public interface DeviceAttributesOrBuilder extends * * * .tensorflow.DeviceLocality locality = 5; + * @return Whether the locality field is set. */ boolean hasLocality(); /** @@ -68,8 +74,9 @@ public interface DeviceAttributesOrBuilder extends * * * .tensorflow.DeviceLocality locality = 5; + * @return The locality. */ - org.tensorflow.proto.framework.DeviceLocality getLocality(); + org.tensorflow.proto.DeviceLocality getLocality(); /** *
    * Platform-specific data about device that may be useful
@@ -78,7 +85,7 @@ public interface DeviceAttributesOrBuilder extends
    *
    * .tensorflow.DeviceLocality locality = 5;
    */
-  org.tensorflow.proto.framework.DeviceLocalityOrBuilder getLocalityOrBuilder();
+  org.tensorflow.proto.DeviceLocalityOrBuilder getLocalityOrBuilder();
 
   /**
    * 
@@ -87,6 +94,7 @@ public interface DeviceAttributesOrBuilder extends
    * 
* * fixed64 incarnation = 6; + * @return The incarnation. */ long getIncarnation(); @@ -96,6 +104,7 @@ public interface DeviceAttributesOrBuilder extends *
* * string physical_device_desc = 7; + * @return The physicalDeviceDesc. */ java.lang.String getPhysicalDeviceDesc(); /** @@ -104,6 +113,7 @@ public interface DeviceAttributesOrBuilder extends * * * string physical_device_desc = 7; + * @return The bytes for physicalDeviceDesc. */ com.google.protobuf.ByteString getPhysicalDeviceDescBytes(); @@ -116,6 +126,7 @@ public interface DeviceAttributesOrBuilder extends * * * int64 xla_global_id = 8; + * @return The xlaGlobalId. */ long getXlaGlobalId(); } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceAttributesProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceAttributesProtos.java similarity index 94% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceAttributesProtos.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceAttributesProtos.java index a9f2039c3a7..235a1bc6bed 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceAttributesProtos.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceAttributesProtos.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/device_attributes.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public final class DeviceAttributesProtos { private DeviceAttributesProtos() {} @@ -55,11 +55,10 @@ public static void registerAllExtensions( "(\003\022,\n\010locality\030\005 \001(\0132\032.tensorflow.Device" + "Locality\022\023\n\013incarnation\030\006 \001(\006\022\034\n\024physica" + "l_device_desc\030\007 \001(\t\022\025\n\rxla_global_id\030\010 \001" + - "(\003B\227\001\n\036org.tensorflow.proto.frameworkB\026D" + - "eviceAttributesProtosP\001ZXgithub.com/tens" + - "orflow/tensorflow/tensorflow/go/core/fra" + - "mework/device_attributes_go_proto\370\001\001b\006pr" + - "oto3" + "(\003B\215\001\n\024org.tensorflow.protoB\026DeviceAttri" + + "butesProtosP\001ZXgithub.com/tensorflow/ten" + + "sorflow/tensorflow/go/core/framework/dev" + + "ice_attributes_go_proto\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/DeviceFiltersProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceFiltersProtos.java similarity index 93% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/DeviceFiltersProtos.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceFiltersProtos.java index bd1b5639915..a3c1b43b4df 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/DeviceFiltersProtos.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceFiltersProtos.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/device_filters.proto -package org.tensorflow.proto.distruntime; +package org.tensorflow.proto; public final class DeviceFiltersProtos { private DeviceFiltersProtos() {} @@ -51,11 +51,11 @@ public static void registerAllExtensions( "asksEntry\022\013\n\003key\030\001 \001(\005\022,\n\005value\030\002 \001(\0132\035." + "tensorflow.TaskDeviceFilters:\0028\001\"B\n\024Clus" + "terDeviceFilters\022*\n\004jobs\030\001 \003(\0132\034.tensorf" + - "low.JobDeviceFiltersB\223\001\n org.tensorflow." + - "proto.distruntimeB\023DeviceFiltersProtosP\001" + - "ZUgithub.com/tensorflow/tensorflow/tenso" + - "rflow/go/core/protobuf/for_core_protos_g" + - "o_proto\370\001\001b\006proto3" + "low.JobDeviceFiltersB\207\001\n\024org.tensorflow." + + "protoB\023DeviceFiltersProtosP\001ZUgithub.com" + + "/tensorflow/tensorflow/tensorflow/go/cor" + + "e/protobuf/for_core_protos_go_proto\370\001\001b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceLocality.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceLocality.java new file mode 100644 index 00000000000..3634671971a --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceLocality.java @@ -0,0 +1,795 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/device_attributes.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.DeviceLocality} + */ +public final class DeviceLocality extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.DeviceLocality) + DeviceLocalityOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeviceLocality.newBuilder() to construct. + private DeviceLocality(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceLocality() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeviceLocality(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DeviceAttributesProtos.internal_static_tensorflow_DeviceLocality_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DeviceAttributesProtos.internal_static_tensorflow_DeviceLocality_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.DeviceLocality.class, org.tensorflow.proto.DeviceLocality.Builder.class); + } + + public static final int BUS_ID_FIELD_NUMBER = 1; + private int busId_; + /** + *
+   * Optional bus locality of device.  Default value of 0 means
+   * no specific locality.  Specific localities are indexed from 1.
+   * 
+ * + * int32 bus_id = 1; + * @return The busId. + */ + @java.lang.Override + public int getBusId() { + return busId_; + } + + public static final int NUMA_NODE_FIELD_NUMBER = 2; + private int numaNode_; + /** + *
+   * Optional NUMA locality of device.
+   * 
+ * + * int32 numa_node = 2; + * @return The numaNode. + */ + @java.lang.Override + public int getNumaNode() { + return numaNode_; + } + + public static final int LINKS_FIELD_NUMBER = 3; + private org.tensorflow.proto.LocalLinks links_; + /** + *
+   * Optional local interconnect links to other devices.
+   * 
+ * + * .tensorflow.LocalLinks links = 3; + * @return Whether the links field is set. + */ + @java.lang.Override + public boolean hasLinks() { + return links_ != null; + } + /** + *
+   * Optional local interconnect links to other devices.
+   * 
+ * + * .tensorflow.LocalLinks links = 3; + * @return The links. + */ + @java.lang.Override + public org.tensorflow.proto.LocalLinks getLinks() { + return links_ == null ? org.tensorflow.proto.LocalLinks.getDefaultInstance() : links_; + } + /** + *
+   * Optional local interconnect links to other devices.
+   * 
+ * + * .tensorflow.LocalLinks links = 3; + */ + @java.lang.Override + public org.tensorflow.proto.LocalLinksOrBuilder getLinksOrBuilder() { + return getLinks(); + } + + 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 (busId_ != 0) { + output.writeInt32(1, busId_); + } + if (numaNode_ != 0) { + output.writeInt32(2, numaNode_); + } + if (links_ != null) { + output.writeMessage(3, getLinks()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (busId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, busId_); + } + if (numaNode_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, numaNode_); + } + if (links_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getLinks()); + } + 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 org.tensorflow.proto.DeviceLocality)) { + return super.equals(obj); + } + org.tensorflow.proto.DeviceLocality other = (org.tensorflow.proto.DeviceLocality) obj; + + if (getBusId() + != other.getBusId()) return false; + if (getNumaNode() + != other.getNumaNode()) return false; + if (hasLinks() != other.hasLinks()) return false; + if (hasLinks()) { + if (!getLinks() + .equals(other.getLinks())) 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) + BUS_ID_FIELD_NUMBER; + hash = (53 * hash) + getBusId(); + hash = (37 * hash) + NUMA_NODE_FIELD_NUMBER; + hash = (53 * hash) + getNumaNode(); + if (hasLinks()) { + hash = (37 * hash) + LINKS_FIELD_NUMBER; + hash = (53 * hash) + getLinks().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.DeviceLocality parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.DeviceLocality parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.DeviceLocality parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.DeviceLocality parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.DeviceLocality parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.DeviceLocality parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.DeviceLocality parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.DeviceLocality 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 org.tensorflow.proto.DeviceLocality parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.DeviceLocality 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 org.tensorflow.proto.DeviceLocality parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.DeviceLocality 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(org.tensorflow.proto.DeviceLocality prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.DeviceLocality} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.DeviceLocality) + org.tensorflow.proto.DeviceLocalityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DeviceAttributesProtos.internal_static_tensorflow_DeviceLocality_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DeviceAttributesProtos.internal_static_tensorflow_DeviceLocality_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.DeviceLocality.class, org.tensorflow.proto.DeviceLocality.Builder.class); + } + + // Construct using org.tensorflow.proto.DeviceLocality.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + busId_ = 0; + + numaNode_ = 0; + + if (linksBuilder_ == null) { + links_ = null; + } else { + links_ = null; + linksBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.DeviceAttributesProtos.internal_static_tensorflow_DeviceLocality_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.DeviceLocality getDefaultInstanceForType() { + return org.tensorflow.proto.DeviceLocality.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.DeviceLocality build() { + org.tensorflow.proto.DeviceLocality result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.DeviceLocality buildPartial() { + org.tensorflow.proto.DeviceLocality result = new org.tensorflow.proto.DeviceLocality(this); + result.busId_ = busId_; + result.numaNode_ = numaNode_; + if (linksBuilder_ == null) { + result.links_ = links_; + } else { + result.links_ = linksBuilder_.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 org.tensorflow.proto.DeviceLocality) { + return mergeFrom((org.tensorflow.proto.DeviceLocality)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.DeviceLocality other) { + if (other == org.tensorflow.proto.DeviceLocality.getDefaultInstance()) return this; + if (other.getBusId() != 0) { + setBusId(other.getBusId()); + } + if (other.getNumaNode() != 0) { + setNumaNode(other.getNumaNode()); + } + if (other.hasLinks()) { + mergeLinks(other.getLinks()); + } + 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: { + busId_ = input.readInt32(); + + break; + } // case 8 + case 16: { + numaNode_ = input.readInt32(); + + break; + } // case 16 + case 26: { + input.readMessage( + getLinksFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + 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 busId_ ; + /** + *
+     * Optional bus locality of device.  Default value of 0 means
+     * no specific locality.  Specific localities are indexed from 1.
+     * 
+ * + * int32 bus_id = 1; + * @return The busId. + */ + @java.lang.Override + public int getBusId() { + return busId_; + } + /** + *
+     * Optional bus locality of device.  Default value of 0 means
+     * no specific locality.  Specific localities are indexed from 1.
+     * 
+ * + * int32 bus_id = 1; + * @param value The busId to set. + * @return This builder for chaining. + */ + public Builder setBusId(int value) { + + busId_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional bus locality of device.  Default value of 0 means
+     * no specific locality.  Specific localities are indexed from 1.
+     * 
+ * + * int32 bus_id = 1; + * @return This builder for chaining. + */ + public Builder clearBusId() { + + busId_ = 0; + onChanged(); + return this; + } + + private int numaNode_ ; + /** + *
+     * Optional NUMA locality of device.
+     * 
+ * + * int32 numa_node = 2; + * @return The numaNode. + */ + @java.lang.Override + public int getNumaNode() { + return numaNode_; + } + /** + *
+     * Optional NUMA locality of device.
+     * 
+ * + * int32 numa_node = 2; + * @param value The numaNode to set. + * @return This builder for chaining. + */ + public Builder setNumaNode(int value) { + + numaNode_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional NUMA locality of device.
+     * 
+ * + * int32 numa_node = 2; + * @return This builder for chaining. + */ + public Builder clearNumaNode() { + + numaNode_ = 0; + onChanged(); + return this; + } + + private org.tensorflow.proto.LocalLinks links_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.LocalLinks, org.tensorflow.proto.LocalLinks.Builder, org.tensorflow.proto.LocalLinksOrBuilder> linksBuilder_; + /** + *
+     * Optional local interconnect links to other devices.
+     * 
+ * + * .tensorflow.LocalLinks links = 3; + * @return Whether the links field is set. + */ + public boolean hasLinks() { + return linksBuilder_ != null || links_ != null; + } + /** + *
+     * Optional local interconnect links to other devices.
+     * 
+ * + * .tensorflow.LocalLinks links = 3; + * @return The links. + */ + public org.tensorflow.proto.LocalLinks getLinks() { + if (linksBuilder_ == null) { + return links_ == null ? org.tensorflow.proto.LocalLinks.getDefaultInstance() : links_; + } else { + return linksBuilder_.getMessage(); + } + } + /** + *
+     * Optional local interconnect links to other devices.
+     * 
+ * + * .tensorflow.LocalLinks links = 3; + */ + public Builder setLinks(org.tensorflow.proto.LocalLinks value) { + if (linksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + links_ = value; + onChanged(); + } else { + linksBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Optional local interconnect links to other devices.
+     * 
+ * + * .tensorflow.LocalLinks links = 3; + */ + public Builder setLinks( + org.tensorflow.proto.LocalLinks.Builder builderForValue) { + if (linksBuilder_ == null) { + links_ = builderForValue.build(); + onChanged(); + } else { + linksBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Optional local interconnect links to other devices.
+     * 
+ * + * .tensorflow.LocalLinks links = 3; + */ + public Builder mergeLinks(org.tensorflow.proto.LocalLinks value) { + if (linksBuilder_ == null) { + if (links_ != null) { + links_ = + org.tensorflow.proto.LocalLinks.newBuilder(links_).mergeFrom(value).buildPartial(); + } else { + links_ = value; + } + onChanged(); + } else { + linksBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Optional local interconnect links to other devices.
+     * 
+ * + * .tensorflow.LocalLinks links = 3; + */ + public Builder clearLinks() { + if (linksBuilder_ == null) { + links_ = null; + onChanged(); + } else { + links_ = null; + linksBuilder_ = null; + } + + return this; + } + /** + *
+     * Optional local interconnect links to other devices.
+     * 
+ * + * .tensorflow.LocalLinks links = 3; + */ + public org.tensorflow.proto.LocalLinks.Builder getLinksBuilder() { + + onChanged(); + return getLinksFieldBuilder().getBuilder(); + } + /** + *
+     * Optional local interconnect links to other devices.
+     * 
+ * + * .tensorflow.LocalLinks links = 3; + */ + public org.tensorflow.proto.LocalLinksOrBuilder getLinksOrBuilder() { + if (linksBuilder_ != null) { + return linksBuilder_.getMessageOrBuilder(); + } else { + return links_ == null ? + org.tensorflow.proto.LocalLinks.getDefaultInstance() : links_; + } + } + /** + *
+     * Optional local interconnect links to other devices.
+     * 
+ * + * .tensorflow.LocalLinks links = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.LocalLinks, org.tensorflow.proto.LocalLinks.Builder, org.tensorflow.proto.LocalLinksOrBuilder> + getLinksFieldBuilder() { + if (linksBuilder_ == null) { + linksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.LocalLinks, org.tensorflow.proto.LocalLinks.Builder, org.tensorflow.proto.LocalLinksOrBuilder>( + getLinks(), + getParentForChildren(), + isClean()); + links_ = null; + } + return linksBuilder_; + } + @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:tensorflow.DeviceLocality) + } + + // @@protoc_insertion_point(class_scope:tensorflow.DeviceLocality) + private static final org.tensorflow.proto.DeviceLocality DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.DeviceLocality(); + } + + public static org.tensorflow.proto.DeviceLocality getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceLocality 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 org.tensorflow.proto.DeviceLocality getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceLocalityOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceLocalityOrBuilder.java similarity index 81% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceLocalityOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceLocalityOrBuilder.java index cfb7b2c5287..5f5e16d0ee1 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceLocalityOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceLocalityOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/device_attributes.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface DeviceLocalityOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.DeviceLocality) @@ -14,6 +14,7 @@ public interface DeviceLocalityOrBuilder extends * * * int32 bus_id = 1; + * @return The busId. */ int getBusId(); @@ -23,6 +24,7 @@ public interface DeviceLocalityOrBuilder extends * * * int32 numa_node = 2; + * @return The numaNode. */ int getNumaNode(); @@ -32,6 +34,7 @@ public interface DeviceLocalityOrBuilder extends * * * .tensorflow.LocalLinks links = 3; + * @return Whether the links field is set. */ boolean hasLinks(); /** @@ -40,8 +43,9 @@ public interface DeviceLocalityOrBuilder extends * * * .tensorflow.LocalLinks links = 3; + * @return The links. */ - org.tensorflow.proto.framework.LocalLinks getLinks(); + org.tensorflow.proto.LocalLinks getLinks(); /** *
    * Optional local interconnect links to other devices.
@@ -49,5 +53,5 @@ public interface DeviceLocalityOrBuilder extends
    *
    * .tensorflow.LocalLinks links = 3;
    */
-  org.tensorflow.proto.framework.LocalLinksOrBuilder getLinksOrBuilder();
+  org.tensorflow.proto.LocalLinksOrBuilder getLinksOrBuilder();
 }
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DevicePropertiesProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DevicePropertiesProtos.java
new file mode 100644
index 00000000000..2ab281f964d
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DevicePropertiesProtos.java
@@ -0,0 +1,3009 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/protobuf/device_properties.proto
+
+package org.tensorflow.proto;
+
+public final class DevicePropertiesProtos {
+  private DevicePropertiesProtos() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  public interface DevicePropertiesOrBuilder extends
+      // @@protoc_insertion_point(interface_extends:tensorflow.DeviceProperties)
+      com.google.protobuf.MessageOrBuilder {
+
+    /**
+     * 
+     * Device type (CPU, GPU, ...)
+     * 
+ * + * string type = 1; + * @return The type. + */ + java.lang.String getType(); + /** + *
+     * Device type (CPU, GPU, ...)
+     * 
+ * + * string type = 1; + * @return The bytes for type. + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + *
+     * Vendor (Intel, nvidia, ...)
+     * 
+ * + * string vendor = 2; + * @return The vendor. + */ + java.lang.String getVendor(); + /** + *
+     * Vendor (Intel, nvidia, ...)
+     * 
+ * + * string vendor = 2; + * @return The bytes for vendor. + */ + com.google.protobuf.ByteString + getVendorBytes(); + + /** + *
+     * Model (Haswell, K40, ...)
+     * 
+ * + * string model = 3; + * @return The model. + */ + java.lang.String getModel(); + /** + *
+     * Model (Haswell, K40, ...)
+     * 
+ * + * string model = 3; + * @return The bytes for model. + */ + com.google.protobuf.ByteString + getModelBytes(); + + /** + *
+     * Core Frequency in Mhz
+     * 
+ * + * int64 frequency = 4; + * @return The frequency. + */ + long getFrequency(); + + /** + *
+     * Number of cores
+     * 
+ * + * int64 num_cores = 5; + * @return The numCores. + */ + long getNumCores(); + + /** + *
+     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
+     * cudnn 5.1)
+     * 
+ * + * map<string, string> environment = 6; + */ + int getEnvironmentCount(); + /** + *
+     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
+     * cudnn 5.1)
+     * 
+ * + * map<string, string> environment = 6; + */ + boolean containsEnvironment( + java.lang.String key); + /** + * Use {@link #getEnvironmentMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getEnvironment(); + /** + *
+     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
+     * cudnn 5.1)
+     * 
+ * + * map<string, string> environment = 6; + */ + java.util.Map + getEnvironmentMap(); + /** + *
+     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
+     * cudnn 5.1)
+     * 
+ * + * map<string, string> environment = 6; + */ + + /* nullable */ +java.lang.String getEnvironmentOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
+     * cudnn 5.1)
+     * 
+ * + * map<string, string> environment = 6; + */ + + java.lang.String getEnvironmentOrThrow( + java.lang.String key); + + /** + *
+     * Number of registers per core.
+     * 
+ * + * int64 num_registers = 7; + * @return The numRegisters. + */ + long getNumRegisters(); + + /** + *
+     * L1 cache size in bytes
+     * 
+ * + * int64 l1_cache_size = 8; + * @return The l1CacheSize. + */ + long getL1CacheSize(); + + /** + *
+     * L2 cache size in bytes
+     * 
+ * + * int64 l2_cache_size = 9; + * @return The l2CacheSize. + */ + long getL2CacheSize(); + + /** + *
+     * L3 cache size in bytes
+     * 
+ * + * int64 l3_cache_size = 10; + * @return The l3CacheSize. + */ + long getL3CacheSize(); + + /** + *
+     * Shared memory size per multiprocessor in bytes. This field is
+     * applicable to GPUs only.
+     * 
+ * + * int64 shared_memory_size_per_multiprocessor = 11; + * @return The sharedMemorySizePerMultiprocessor. + */ + long getSharedMemorySizePerMultiprocessor(); + + /** + *
+     * Memory size in bytes
+     * 
+ * + * int64 memory_size = 12; + * @return The memorySize. + */ + long getMemorySize(); + + /** + *
+     * Memory bandwidth in KB/s
+     * 
+ * + * int64 bandwidth = 13; + * @return The bandwidth. + */ + long getBandwidth(); + } + /** + * Protobuf type {@code tensorflow.DeviceProperties} + */ + public static final class DeviceProperties extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.DeviceProperties) + DevicePropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceProperties.newBuilder() to construct. + private DeviceProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceProperties() { + type_ = ""; + vendor_ = ""; + model_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeviceProperties(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DevicePropertiesProtos.internal_static_tensorflow_DeviceProperties_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 6: + return internalGetEnvironment(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DevicePropertiesProtos.internal_static_tensorflow_DeviceProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.class, org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object type_; + /** + *
+     * Device type (CPU, GPU, ...)
+     * 
+ * + * string type = 1; + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + 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(); + type_ = s; + return s; + } + } + /** + *
+     * Device type (CPU, GPU, ...)
+     * 
+ * + * string type = 1; + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VENDOR_FIELD_NUMBER = 2; + private volatile java.lang.Object vendor_; + /** + *
+     * Vendor (Intel, nvidia, ...)
+     * 
+ * + * string vendor = 2; + * @return The vendor. + */ + @java.lang.Override + public java.lang.String getVendor() { + java.lang.Object ref = vendor_; + 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(); + vendor_ = s; + return s; + } + } + /** + *
+     * Vendor (Intel, nvidia, ...)
+     * 
+ * + * string vendor = 2; + * @return The bytes for vendor. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVendorBytes() { + java.lang.Object ref = vendor_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vendor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_FIELD_NUMBER = 3; + private volatile java.lang.Object model_; + /** + *
+     * Model (Haswell, K40, ...)
+     * 
+ * + * string model = 3; + * @return The model. + */ + @java.lang.Override + public java.lang.String getModel() { + java.lang.Object ref = model_; + 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(); + model_ = s; + return s; + } + } + /** + *
+     * Model (Haswell, K40, ...)
+     * 
+ * + * string model = 3; + * @return The bytes for model. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FREQUENCY_FIELD_NUMBER = 4; + private long frequency_; + /** + *
+     * Core Frequency in Mhz
+     * 
+ * + * int64 frequency = 4; + * @return The frequency. + */ + @java.lang.Override + public long getFrequency() { + return frequency_; + } + + public static final int NUM_CORES_FIELD_NUMBER = 5; + private long numCores_; + /** + *
+     * Number of cores
+     * 
+ * + * int64 num_cores = 5; + * @return The numCores. + */ + @java.lang.Override + public long getNumCores() { + return numCores_; + } + + public static final int ENVIRONMENT_FIELD_NUMBER = 6; + private static final class EnvironmentDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.tensorflow.proto.DevicePropertiesProtos.internal_static_tensorflow_DeviceProperties_EnvironmentEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> environment_; + private com.google.protobuf.MapField + internalGetEnvironment() { + if (environment_ == null) { + return com.google.protobuf.MapField.emptyMapField( + EnvironmentDefaultEntryHolder.defaultEntry); + } + return environment_; + } + + public int getEnvironmentCount() { + return internalGetEnvironment().getMap().size(); + } + /** + *
+     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
+     * cudnn 5.1)
+     * 
+ * + * map<string, string> environment = 6; + */ + + @java.lang.Override + public boolean containsEnvironment( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetEnvironment().getMap().containsKey(key); + } + /** + * Use {@link #getEnvironmentMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getEnvironment() { + return getEnvironmentMap(); + } + /** + *
+     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
+     * cudnn 5.1)
+     * 
+ * + * map<string, string> environment = 6; + */ + @java.lang.Override + + public java.util.Map getEnvironmentMap() { + return internalGetEnvironment().getMap(); + } + /** + *
+     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
+     * cudnn 5.1)
+     * 
+ * + * map<string, string> environment = 6; + */ + @java.lang.Override + + public java.lang.String getEnvironmentOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnvironment().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Version of the tools and libraries used with this device (e.g. gcc 4.9,
+     * cudnn 5.1)
+     * 
+ * + * map<string, string> environment = 6; + */ + @java.lang.Override + + public java.lang.String getEnvironmentOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnvironment().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int NUM_REGISTERS_FIELD_NUMBER = 7; + private long numRegisters_; + /** + *
+     * Number of registers per core.
+     * 
+ * + * int64 num_registers = 7; + * @return The numRegisters. + */ + @java.lang.Override + public long getNumRegisters() { + return numRegisters_; + } + + public static final int L1_CACHE_SIZE_FIELD_NUMBER = 8; + private long l1CacheSize_; + /** + *
+     * L1 cache size in bytes
+     * 
+ * + * int64 l1_cache_size = 8; + * @return The l1CacheSize. + */ + @java.lang.Override + public long getL1CacheSize() { + return l1CacheSize_; + } + + public static final int L2_CACHE_SIZE_FIELD_NUMBER = 9; + private long l2CacheSize_; + /** + *
+     * L2 cache size in bytes
+     * 
+ * + * int64 l2_cache_size = 9; + * @return The l2CacheSize. + */ + @java.lang.Override + public long getL2CacheSize() { + return l2CacheSize_; + } + + public static final int L3_CACHE_SIZE_FIELD_NUMBER = 10; + private long l3CacheSize_; + /** + *
+     * L3 cache size in bytes
+     * 
+ * + * int64 l3_cache_size = 10; + * @return The l3CacheSize. + */ + @java.lang.Override + public long getL3CacheSize() { + return l3CacheSize_; + } + + public static final int SHARED_MEMORY_SIZE_PER_MULTIPROCESSOR_FIELD_NUMBER = 11; + private long sharedMemorySizePerMultiprocessor_; + /** + *
+     * Shared memory size per multiprocessor in bytes. This field is
+     * applicable to GPUs only.
+     * 
+ * + * int64 shared_memory_size_per_multiprocessor = 11; + * @return The sharedMemorySizePerMultiprocessor. + */ + @java.lang.Override + public long getSharedMemorySizePerMultiprocessor() { + return sharedMemorySizePerMultiprocessor_; + } + + public static final int MEMORY_SIZE_FIELD_NUMBER = 12; + private long memorySize_; + /** + *
+     * Memory size in bytes
+     * 
+ * + * int64 memory_size = 12; + * @return The memorySize. + */ + @java.lang.Override + public long getMemorySize() { + return memorySize_; + } + + public static final int BANDWIDTH_FIELD_NUMBER = 13; + private long bandwidth_; + /** + *
+     * Memory bandwidth in KB/s
+     * 
+ * + * int64 bandwidth = 13; + * @return The bandwidth. + */ + @java.lang.Override + public long getBandwidth() { + return bandwidth_; + } + + 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(type_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vendor_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vendor_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_); + } + if (frequency_ != 0L) { + output.writeInt64(4, frequency_); + } + if (numCores_ != 0L) { + output.writeInt64(5, numCores_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetEnvironment(), + EnvironmentDefaultEntryHolder.defaultEntry, + 6); + if (numRegisters_ != 0L) { + output.writeInt64(7, numRegisters_); + } + if (l1CacheSize_ != 0L) { + output.writeInt64(8, l1CacheSize_); + } + if (l2CacheSize_ != 0L) { + output.writeInt64(9, l2CacheSize_); + } + if (l3CacheSize_ != 0L) { + output.writeInt64(10, l3CacheSize_); + } + if (sharedMemorySizePerMultiprocessor_ != 0L) { + output.writeInt64(11, sharedMemorySizePerMultiprocessor_); + } + if (memorySize_ != 0L) { + output.writeInt64(12, memorySize_); + } + if (bandwidth_ != 0L) { + output.writeInt64(13, bandwidth_); + } + 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(type_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vendor_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vendor_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); + } + if (frequency_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, frequency_); + } + if (numCores_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, numCores_); + } + for (java.util.Map.Entry entry + : internalGetEnvironment().getMap().entrySet()) { + com.google.protobuf.MapEntry + environment__ = EnvironmentDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, environment__); + } + if (numRegisters_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, numRegisters_); + } + if (l1CacheSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, l1CacheSize_); + } + if (l2CacheSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, l2CacheSize_); + } + if (l3CacheSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(10, l3CacheSize_); + } + if (sharedMemorySizePerMultiprocessor_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(11, sharedMemorySizePerMultiprocessor_); + } + if (memorySize_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(12, memorySize_); + } + if (bandwidth_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(13, bandwidth_); + } + 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 org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties)) { + return super.equals(obj); + } + org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties other = (org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties) obj; + + if (!getType() + .equals(other.getType())) return false; + if (!getVendor() + .equals(other.getVendor())) return false; + if (!getModel() + .equals(other.getModel())) return false; + if (getFrequency() + != other.getFrequency()) return false; + if (getNumCores() + != other.getNumCores()) return false; + if (!internalGetEnvironment().equals( + other.internalGetEnvironment())) return false; + if (getNumRegisters() + != other.getNumRegisters()) return false; + if (getL1CacheSize() + != other.getL1CacheSize()) return false; + if (getL2CacheSize() + != other.getL2CacheSize()) return false; + if (getL3CacheSize() + != other.getL3CacheSize()) return false; + if (getSharedMemorySizePerMultiprocessor() + != other.getSharedMemorySizePerMultiprocessor()) return false; + if (getMemorySize() + != other.getMemorySize()) return false; + if (getBandwidth() + != other.getBandwidth()) 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_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (37 * hash) + VENDOR_FIELD_NUMBER; + hash = (53 * hash) + getVendor().hashCode(); + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + hash = (37 * hash) + FREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFrequency()); + hash = (37 * hash) + NUM_CORES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNumCores()); + if (!internalGetEnvironment().getMap().isEmpty()) { + hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; + hash = (53 * hash) + internalGetEnvironment().hashCode(); + } + hash = (37 * hash) + NUM_REGISTERS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNumRegisters()); + hash = (37 * hash) + L1_CACHE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getL1CacheSize()); + hash = (37 * hash) + L2_CACHE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getL2CacheSize()); + hash = (37 * hash) + L3_CACHE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getL3CacheSize()); + hash = (37 * hash) + SHARED_MEMORY_SIZE_PER_MULTIPROCESSOR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSharedMemorySizePerMultiprocessor()); + hash = (37 * hash) + MEMORY_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemorySize()); + hash = (37 * hash) + BANDWIDTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBandwidth()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties 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 org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties 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 org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties 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(org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.DeviceProperties} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.DeviceProperties) + org.tensorflow.proto.DevicePropertiesProtos.DevicePropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DevicePropertiesProtos.internal_static_tensorflow_DeviceProperties_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 6: + return internalGetEnvironment(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 6: + return internalGetMutableEnvironment(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DevicePropertiesProtos.internal_static_tensorflow_DeviceProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.class, org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.Builder.class); + } + + // Construct using org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = ""; + + vendor_ = ""; + + model_ = ""; + + frequency_ = 0L; + + numCores_ = 0L; + + internalGetMutableEnvironment().clear(); + numRegisters_ = 0L; + + l1CacheSize_ = 0L; + + l2CacheSize_ = 0L; + + l3CacheSize_ = 0L; + + sharedMemorySizePerMultiprocessor_ = 0L; + + memorySize_ = 0L; + + bandwidth_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.DevicePropertiesProtos.internal_static_tensorflow_DeviceProperties_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties getDefaultInstanceForType() { + return org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties build() { + org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties buildPartial() { + org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties result = new org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties(this); + int from_bitField0_ = bitField0_; + result.type_ = type_; + result.vendor_ = vendor_; + result.model_ = model_; + result.frequency_ = frequency_; + result.numCores_ = numCores_; + result.environment_ = internalGetEnvironment(); + result.environment_.makeImmutable(); + result.numRegisters_ = numRegisters_; + result.l1CacheSize_ = l1CacheSize_; + result.l2CacheSize_ = l2CacheSize_; + result.l3CacheSize_ = l3CacheSize_; + result.sharedMemorySizePerMultiprocessor_ = sharedMemorySizePerMultiprocessor_; + result.memorySize_ = memorySize_; + result.bandwidth_ = bandwidth_; + 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 org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties) { + return mergeFrom((org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties other) { + if (other == org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.getDefaultInstance()) return this; + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + if (!other.getVendor().isEmpty()) { + vendor_ = other.vendor_; + onChanged(); + } + if (!other.getModel().isEmpty()) { + model_ = other.model_; + onChanged(); + } + if (other.getFrequency() != 0L) { + setFrequency(other.getFrequency()); + } + if (other.getNumCores() != 0L) { + setNumCores(other.getNumCores()); + } + internalGetMutableEnvironment().mergeFrom( + other.internalGetEnvironment()); + if (other.getNumRegisters() != 0L) { + setNumRegisters(other.getNumRegisters()); + } + if (other.getL1CacheSize() != 0L) { + setL1CacheSize(other.getL1CacheSize()); + } + if (other.getL2CacheSize() != 0L) { + setL2CacheSize(other.getL2CacheSize()); + } + if (other.getL3CacheSize() != 0L) { + setL3CacheSize(other.getL3CacheSize()); + } + if (other.getSharedMemorySizePerMultiprocessor() != 0L) { + setSharedMemorySizePerMultiprocessor(other.getSharedMemorySizePerMultiprocessor()); + } + if (other.getMemorySize() != 0L) { + setMemorySize(other.getMemorySize()); + } + if (other.getBandwidth() != 0L) { + setBandwidth(other.getBandwidth()); + } + 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: { + type_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + vendor_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + model_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + frequency_ = input.readInt64(); + + break; + } // case 32 + case 40: { + numCores_ = input.readInt64(); + + break; + } // case 40 + case 50: { + com.google.protobuf.MapEntry + environment__ = input.readMessage( + EnvironmentDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableEnvironment().getMutableMap().put( + environment__.getKey(), environment__.getValue()); + break; + } // case 50 + case 56: { + numRegisters_ = input.readInt64(); + + break; + } // case 56 + case 64: { + l1CacheSize_ = input.readInt64(); + + break; + } // case 64 + case 72: { + l2CacheSize_ = input.readInt64(); + + break; + } // case 72 + case 80: { + l3CacheSize_ = input.readInt64(); + + break; + } // case 80 + case 88: { + sharedMemorySizePerMultiprocessor_ = input.readInt64(); + + break; + } // case 88 + case 96: { + memorySize_ = input.readInt64(); + + break; + } // case 96 + case 104: { + bandwidth_ = input.readInt64(); + + break; + } // case 104 + 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 type_ = ""; + /** + *
+       * Device type (CPU, GPU, ...)
+       * 
+ * + * string type = 1; + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Device type (CPU, GPU, ...)
+       * 
+ * + * string type = 1; + * @return The bytes for type. + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Device type (CPU, GPU, ...)
+       * 
+ * + * string type = 1; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value; + onChanged(); + return this; + } + /** + *
+       * Device type (CPU, GPU, ...)
+       * 
+ * + * string type = 1; + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + *
+       * Device type (CPU, GPU, ...)
+       * 
+ * + * string type = 1; + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + type_ = value; + onChanged(); + return this; + } + + private java.lang.Object vendor_ = ""; + /** + *
+       * Vendor (Intel, nvidia, ...)
+       * 
+ * + * string vendor = 2; + * @return The vendor. + */ + public java.lang.String getVendor() { + java.lang.Object ref = vendor_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vendor_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Vendor (Intel, nvidia, ...)
+       * 
+ * + * string vendor = 2; + * @return The bytes for vendor. + */ + public com.google.protobuf.ByteString + getVendorBytes() { + java.lang.Object ref = vendor_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vendor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Vendor (Intel, nvidia, ...)
+       * 
+ * + * string vendor = 2; + * @param value The vendor to set. + * @return This builder for chaining. + */ + public Builder setVendor( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + vendor_ = value; + onChanged(); + return this; + } + /** + *
+       * Vendor (Intel, nvidia, ...)
+       * 
+ * + * string vendor = 2; + * @return This builder for chaining. + */ + public Builder clearVendor() { + + vendor_ = getDefaultInstance().getVendor(); + onChanged(); + return this; + } + /** + *
+       * Vendor (Intel, nvidia, ...)
+       * 
+ * + * string vendor = 2; + * @param value The bytes for vendor to set. + * @return This builder for chaining. + */ + public Builder setVendorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + vendor_ = value; + onChanged(); + return this; + } + + private java.lang.Object model_ = ""; + /** + *
+       * Model (Haswell, K40, ...)
+       * 
+ * + * string model = 3; + * @return The model. + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Model (Haswell, K40, ...)
+       * 
+ * + * string model = 3; + * @return The bytes for model. + */ + public com.google.protobuf.ByteString + getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Model (Haswell, K40, ...)
+       * 
+ * + * string model = 3; + * @param value The model to set. + * @return This builder for chaining. + */ + public Builder setModel( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + model_ = value; + onChanged(); + return this; + } + /** + *
+       * Model (Haswell, K40, ...)
+       * 
+ * + * string model = 3; + * @return This builder for chaining. + */ + public Builder clearModel() { + + model_ = getDefaultInstance().getModel(); + onChanged(); + return this; + } + /** + *
+       * Model (Haswell, K40, ...)
+       * 
+ * + * string model = 3; + * @param value The bytes for model to set. + * @return This builder for chaining. + */ + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + model_ = value; + onChanged(); + return this; + } + + private long frequency_ ; + /** + *
+       * Core Frequency in Mhz
+       * 
+ * + * int64 frequency = 4; + * @return The frequency. + */ + @java.lang.Override + public long getFrequency() { + return frequency_; + } + /** + *
+       * Core Frequency in Mhz
+       * 
+ * + * int64 frequency = 4; + * @param value The frequency to set. + * @return This builder for chaining. + */ + public Builder setFrequency(long value) { + + frequency_ = value; + onChanged(); + return this; + } + /** + *
+       * Core Frequency in Mhz
+       * 
+ * + * int64 frequency = 4; + * @return This builder for chaining. + */ + public Builder clearFrequency() { + + frequency_ = 0L; + onChanged(); + return this; + } + + private long numCores_ ; + /** + *
+       * Number of cores
+       * 
+ * + * int64 num_cores = 5; + * @return The numCores. + */ + @java.lang.Override + public long getNumCores() { + return numCores_; + } + /** + *
+       * Number of cores
+       * 
+ * + * int64 num_cores = 5; + * @param value The numCores to set. + * @return This builder for chaining. + */ + public Builder setNumCores(long value) { + + numCores_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of cores
+       * 
+ * + * int64 num_cores = 5; + * @return This builder for chaining. + */ + public Builder clearNumCores() { + + numCores_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> environment_; + private com.google.protobuf.MapField + internalGetEnvironment() { + if (environment_ == null) { + return com.google.protobuf.MapField.emptyMapField( + EnvironmentDefaultEntryHolder.defaultEntry); + } + return environment_; + } + private com.google.protobuf.MapField + internalGetMutableEnvironment() { + onChanged();; + if (environment_ == null) { + environment_ = com.google.protobuf.MapField.newMapField( + EnvironmentDefaultEntryHolder.defaultEntry); + } + if (!environment_.isMutable()) { + environment_ = environment_.copy(); + } + return environment_; + } + + public int getEnvironmentCount() { + return internalGetEnvironment().getMap().size(); + } + /** + *
+       * Version of the tools and libraries used with this device (e.g. gcc 4.9,
+       * cudnn 5.1)
+       * 
+ * + * map<string, string> environment = 6; + */ + + @java.lang.Override + public boolean containsEnvironment( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetEnvironment().getMap().containsKey(key); + } + /** + * Use {@link #getEnvironmentMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getEnvironment() { + return getEnvironmentMap(); + } + /** + *
+       * Version of the tools and libraries used with this device (e.g. gcc 4.9,
+       * cudnn 5.1)
+       * 
+ * + * map<string, string> environment = 6; + */ + @java.lang.Override + + public java.util.Map getEnvironmentMap() { + return internalGetEnvironment().getMap(); + } + /** + *
+       * Version of the tools and libraries used with this device (e.g. gcc 4.9,
+       * cudnn 5.1)
+       * 
+ * + * map<string, string> environment = 6; + */ + @java.lang.Override + + public java.lang.String getEnvironmentOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnvironment().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Version of the tools and libraries used with this device (e.g. gcc 4.9,
+       * cudnn 5.1)
+       * 
+ * + * map<string, string> environment = 6; + */ + @java.lang.Override + + public java.lang.String getEnvironmentOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnvironment().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearEnvironment() { + internalGetMutableEnvironment().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Version of the tools and libraries used with this device (e.g. gcc 4.9,
+       * cudnn 5.1)
+       * 
+ * + * map<string, string> environment = 6; + */ + + public Builder removeEnvironment( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableEnvironment().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableEnvironment() { + return internalGetMutableEnvironment().getMutableMap(); + } + /** + *
+       * Version of the tools and libraries used with this device (e.g. gcc 4.9,
+       * cudnn 5.1)
+       * 
+ * + * map<string, string> environment = 6; + */ + public Builder putEnvironment( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableEnvironment().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Version of the tools and libraries used with this device (e.g. gcc 4.9,
+       * cudnn 5.1)
+       * 
+ * + * map<string, string> environment = 6; + */ + + public Builder putAllEnvironment( + java.util.Map values) { + internalGetMutableEnvironment().getMutableMap() + .putAll(values); + return this; + } + + private long numRegisters_ ; + /** + *
+       * Number of registers per core.
+       * 
+ * + * int64 num_registers = 7; + * @return The numRegisters. + */ + @java.lang.Override + public long getNumRegisters() { + return numRegisters_; + } + /** + *
+       * Number of registers per core.
+       * 
+ * + * int64 num_registers = 7; + * @param value The numRegisters to set. + * @return This builder for chaining. + */ + public Builder setNumRegisters(long value) { + + numRegisters_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of registers per core.
+       * 
+ * + * int64 num_registers = 7; + * @return This builder for chaining. + */ + public Builder clearNumRegisters() { + + numRegisters_ = 0L; + onChanged(); + return this; + } + + private long l1CacheSize_ ; + /** + *
+       * L1 cache size in bytes
+       * 
+ * + * int64 l1_cache_size = 8; + * @return The l1CacheSize. + */ + @java.lang.Override + public long getL1CacheSize() { + return l1CacheSize_; + } + /** + *
+       * L1 cache size in bytes
+       * 
+ * + * int64 l1_cache_size = 8; + * @param value The l1CacheSize to set. + * @return This builder for chaining. + */ + public Builder setL1CacheSize(long value) { + + l1CacheSize_ = value; + onChanged(); + return this; + } + /** + *
+       * L1 cache size in bytes
+       * 
+ * + * int64 l1_cache_size = 8; + * @return This builder for chaining. + */ + public Builder clearL1CacheSize() { + + l1CacheSize_ = 0L; + onChanged(); + return this; + } + + private long l2CacheSize_ ; + /** + *
+       * L2 cache size in bytes
+       * 
+ * + * int64 l2_cache_size = 9; + * @return The l2CacheSize. + */ + @java.lang.Override + public long getL2CacheSize() { + return l2CacheSize_; + } + /** + *
+       * L2 cache size in bytes
+       * 
+ * + * int64 l2_cache_size = 9; + * @param value The l2CacheSize to set. + * @return This builder for chaining. + */ + public Builder setL2CacheSize(long value) { + + l2CacheSize_ = value; + onChanged(); + return this; + } + /** + *
+       * L2 cache size in bytes
+       * 
+ * + * int64 l2_cache_size = 9; + * @return This builder for chaining. + */ + public Builder clearL2CacheSize() { + + l2CacheSize_ = 0L; + onChanged(); + return this; + } + + private long l3CacheSize_ ; + /** + *
+       * L3 cache size in bytes
+       * 
+ * + * int64 l3_cache_size = 10; + * @return The l3CacheSize. + */ + @java.lang.Override + public long getL3CacheSize() { + return l3CacheSize_; + } + /** + *
+       * L3 cache size in bytes
+       * 
+ * + * int64 l3_cache_size = 10; + * @param value The l3CacheSize to set. + * @return This builder for chaining. + */ + public Builder setL3CacheSize(long value) { + + l3CacheSize_ = value; + onChanged(); + return this; + } + /** + *
+       * L3 cache size in bytes
+       * 
+ * + * int64 l3_cache_size = 10; + * @return This builder for chaining. + */ + public Builder clearL3CacheSize() { + + l3CacheSize_ = 0L; + onChanged(); + return this; + } + + private long sharedMemorySizePerMultiprocessor_ ; + /** + *
+       * Shared memory size per multiprocessor in bytes. This field is
+       * applicable to GPUs only.
+       * 
+ * + * int64 shared_memory_size_per_multiprocessor = 11; + * @return The sharedMemorySizePerMultiprocessor. + */ + @java.lang.Override + public long getSharedMemorySizePerMultiprocessor() { + return sharedMemorySizePerMultiprocessor_; + } + /** + *
+       * Shared memory size per multiprocessor in bytes. This field is
+       * applicable to GPUs only.
+       * 
+ * + * int64 shared_memory_size_per_multiprocessor = 11; + * @param value The sharedMemorySizePerMultiprocessor to set. + * @return This builder for chaining. + */ + public Builder setSharedMemorySizePerMultiprocessor(long value) { + + sharedMemorySizePerMultiprocessor_ = value; + onChanged(); + return this; + } + /** + *
+       * Shared memory size per multiprocessor in bytes. This field is
+       * applicable to GPUs only.
+       * 
+ * + * int64 shared_memory_size_per_multiprocessor = 11; + * @return This builder for chaining. + */ + public Builder clearSharedMemorySizePerMultiprocessor() { + + sharedMemorySizePerMultiprocessor_ = 0L; + onChanged(); + return this; + } + + private long memorySize_ ; + /** + *
+       * Memory size in bytes
+       * 
+ * + * int64 memory_size = 12; + * @return The memorySize. + */ + @java.lang.Override + public long getMemorySize() { + return memorySize_; + } + /** + *
+       * Memory size in bytes
+       * 
+ * + * int64 memory_size = 12; + * @param value The memorySize to set. + * @return This builder for chaining. + */ + public Builder setMemorySize(long value) { + + memorySize_ = value; + onChanged(); + return this; + } + /** + *
+       * Memory size in bytes
+       * 
+ * + * int64 memory_size = 12; + * @return This builder for chaining. + */ + public Builder clearMemorySize() { + + memorySize_ = 0L; + onChanged(); + return this; + } + + private long bandwidth_ ; + /** + *
+       * Memory bandwidth in KB/s
+       * 
+ * + * int64 bandwidth = 13; + * @return The bandwidth. + */ + @java.lang.Override + public long getBandwidth() { + return bandwidth_; + } + /** + *
+       * Memory bandwidth in KB/s
+       * 
+ * + * int64 bandwidth = 13; + * @param value The bandwidth to set. + * @return This builder for chaining. + */ + public Builder setBandwidth(long value) { + + bandwidth_ = value; + onChanged(); + return this; + } + /** + *
+       * Memory bandwidth in KB/s
+       * 
+ * + * int64 bandwidth = 13; + * @return This builder for chaining. + */ + public Builder clearBandwidth() { + + bandwidth_ = 0L; + 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:tensorflow.DeviceProperties) + } + + // @@protoc_insertion_point(class_scope:tensorflow.DeviceProperties) + private static final org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties(); + } + + public static org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceProperties 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 org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedDeviceOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.NamedDevice) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * .tensorflow.DeviceProperties properties = 2; + * @return Whether the properties field is set. + */ + boolean hasProperties(); + /** + * .tensorflow.DeviceProperties properties = 2; + * @return The properties. + */ + org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties getProperties(); + /** + * .tensorflow.DeviceProperties properties = 2; + */ + org.tensorflow.proto.DevicePropertiesProtos.DevicePropertiesOrBuilder getPropertiesOrBuilder(); + } + /** + * Protobuf type {@code tensorflow.NamedDevice} + */ + public static final class NamedDevice extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.NamedDevice) + NamedDeviceOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedDevice.newBuilder() to construct. + private NamedDevice(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedDevice() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NamedDevice(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DevicePropertiesProtos.internal_static_tensorflow_NamedDevice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DevicePropertiesProtos.internal_static_tensorflow_NamedDevice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.DevicePropertiesProtos.NamedDevice.class, org.tensorflow.proto.DevicePropertiesProtos.NamedDevice.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTIES_FIELD_NUMBER = 2; + private org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties properties_; + /** + * .tensorflow.DeviceProperties properties = 2; + * @return Whether the properties field is set. + */ + @java.lang.Override + public boolean hasProperties() { + return properties_ != null; + } + /** + * .tensorflow.DeviceProperties properties = 2; + * @return The properties. + */ + @java.lang.Override + public org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties getProperties() { + return properties_ == null ? org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.getDefaultInstance() : properties_; + } + /** + * .tensorflow.DeviceProperties properties = 2; + */ + @java.lang.Override + public org.tensorflow.proto.DevicePropertiesProtos.DevicePropertiesOrBuilder getPropertiesOrBuilder() { + return getProperties(); + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (properties_ != null) { + output.writeMessage(2, getProperties()); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (properties_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getProperties()); + } + 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 org.tensorflow.proto.DevicePropertiesProtos.NamedDevice)) { + return super.equals(obj); + } + org.tensorflow.proto.DevicePropertiesProtos.NamedDevice other = (org.tensorflow.proto.DevicePropertiesProtos.NamedDevice) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasProperties() != other.hasProperties()) return false; + if (hasProperties()) { + if (!getProperties() + .equals(other.getProperties())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasProperties()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getProperties().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.DevicePropertiesProtos.NamedDevice parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.DevicePropertiesProtos.NamedDevice parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.DevicePropertiesProtos.NamedDevice parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.DevicePropertiesProtos.NamedDevice parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.DevicePropertiesProtos.NamedDevice parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.DevicePropertiesProtos.NamedDevice parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.DevicePropertiesProtos.NamedDevice parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.DevicePropertiesProtos.NamedDevice 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 org.tensorflow.proto.DevicePropertiesProtos.NamedDevice parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.DevicePropertiesProtos.NamedDevice 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 org.tensorflow.proto.DevicePropertiesProtos.NamedDevice parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.DevicePropertiesProtos.NamedDevice 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(org.tensorflow.proto.DevicePropertiesProtos.NamedDevice prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.NamedDevice} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.NamedDevice) + org.tensorflow.proto.DevicePropertiesProtos.NamedDeviceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DevicePropertiesProtos.internal_static_tensorflow_NamedDevice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DevicePropertiesProtos.internal_static_tensorflow_NamedDevice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.DevicePropertiesProtos.NamedDevice.class, org.tensorflow.proto.DevicePropertiesProtos.NamedDevice.Builder.class); + } + + // Construct using org.tensorflow.proto.DevicePropertiesProtos.NamedDevice.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (propertiesBuilder_ == null) { + properties_ = null; + } else { + properties_ = null; + propertiesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.DevicePropertiesProtos.internal_static_tensorflow_NamedDevice_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.DevicePropertiesProtos.NamedDevice getDefaultInstanceForType() { + return org.tensorflow.proto.DevicePropertiesProtos.NamedDevice.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.DevicePropertiesProtos.NamedDevice build() { + org.tensorflow.proto.DevicePropertiesProtos.NamedDevice result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.DevicePropertiesProtos.NamedDevice buildPartial() { + org.tensorflow.proto.DevicePropertiesProtos.NamedDevice result = new org.tensorflow.proto.DevicePropertiesProtos.NamedDevice(this); + result.name_ = name_; + if (propertiesBuilder_ == null) { + result.properties_ = properties_; + } else { + result.properties_ = propertiesBuilder_.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 org.tensorflow.proto.DevicePropertiesProtos.NamedDevice) { + return mergeFrom((org.tensorflow.proto.DevicePropertiesProtos.NamedDevice)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.DevicePropertiesProtos.NamedDevice other) { + if (other == org.tensorflow.proto.DevicePropertiesProtos.NamedDevice.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasProperties()) { + mergeProperties(other.getProperties()); + } + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getPropertiesFieldBuilder().getBuilder(), + extensionRegistry); + + 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 java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties properties_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties, org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.Builder, org.tensorflow.proto.DevicePropertiesProtos.DevicePropertiesOrBuilder> propertiesBuilder_; + /** + * .tensorflow.DeviceProperties properties = 2; + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return propertiesBuilder_ != null || properties_ != null; + } + /** + * .tensorflow.DeviceProperties properties = 2; + * @return The properties. + */ + public org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties getProperties() { + if (propertiesBuilder_ == null) { + return properties_ == null ? org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.getDefaultInstance() : properties_; + } else { + return propertiesBuilder_.getMessage(); + } + } + /** + * .tensorflow.DeviceProperties properties = 2; + */ + public Builder setProperties(org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + onChanged(); + } else { + propertiesBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.DeviceProperties properties = 2; + */ + public Builder setProperties( + org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.Builder builderForValue) { + if (propertiesBuilder_ == null) { + properties_ = builderForValue.build(); + onChanged(); + } else { + propertiesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.DeviceProperties properties = 2; + */ + public Builder mergeProperties(org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties value) { + if (propertiesBuilder_ == null) { + if (properties_ != null) { + properties_ = + org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.newBuilder(properties_).mergeFrom(value).buildPartial(); + } else { + properties_ = value; + } + onChanged(); + } else { + propertiesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.DeviceProperties properties = 2; + */ + public Builder clearProperties() { + if (propertiesBuilder_ == null) { + properties_ = null; + onChanged(); + } else { + properties_ = null; + propertiesBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.DeviceProperties properties = 2; + */ + public org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.Builder getPropertiesBuilder() { + + onChanged(); + return getPropertiesFieldBuilder().getBuilder(); + } + /** + * .tensorflow.DeviceProperties properties = 2; + */ + public org.tensorflow.proto.DevicePropertiesProtos.DevicePropertiesOrBuilder getPropertiesOrBuilder() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilder(); + } else { + return properties_ == null ? + org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.getDefaultInstance() : properties_; + } + } + /** + * .tensorflow.DeviceProperties properties = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties, org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.Builder, org.tensorflow.proto.DevicePropertiesProtos.DevicePropertiesOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties, org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.Builder, org.tensorflow.proto.DevicePropertiesProtos.DevicePropertiesOrBuilder>( + getProperties(), + getParentForChildren(), + isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + @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:tensorflow.NamedDevice) + } + + // @@protoc_insertion_point(class_scope:tensorflow.NamedDevice) + private static final org.tensorflow.proto.DevicePropertiesProtos.NamedDevice DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.DevicePropertiesProtos.NamedDevice(); + } + + public static org.tensorflow.proto.DevicePropertiesProtos.NamedDevice getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedDevice 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 org.tensorflow.proto.DevicePropertiesProtos.NamedDevice getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_DeviceProperties_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_DeviceProperties_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_DeviceProperties_EnvironmentEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_DeviceProperties_EnvironmentEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_NamedDevice_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_NamedDevice_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0tensorflow/core/protobuf/device_proper" + + "ties.proto\022\ntensorflow\"\220\003\n\020DevicePropert" + + "ies\022\014\n\004type\030\001 \001(\t\022\016\n\006vendor\030\002 \001(\t\022\r\n\005mod" + + "el\030\003 \001(\t\022\021\n\tfrequency\030\004 \001(\003\022\021\n\tnum_cores" + + "\030\005 \001(\003\022B\n\013environment\030\006 \003(\0132-.tensorflow" + + ".DeviceProperties.EnvironmentEntry\022\025\n\rnu" + + "m_registers\030\007 \001(\003\022\025\n\rl1_cache_size\030\010 \001(\003" + + "\022\025\n\rl2_cache_size\030\t \001(\003\022\025\n\rl3_cache_size" + + "\030\n \001(\003\022-\n%shared_memory_size_per_multipr" + + "ocessor\030\013 \001(\003\022\023\n\013memory_size\030\014 \001(\003\022\021\n\tba" + + "ndwidth\030\r \001(\003\0322\n\020EnvironmentEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"M\n\013NamedDevice" + + "\022\014\n\004name\030\001 \001(\t\0220\n\nproperties\030\002 \001(\0132\034.ten" + + "sorflow.DevicePropertiesB\210\001\n\024org.tensorf" + + "low.protoB\026DevicePropertiesProtosZUgithu" + + "b.com/tensorflow/tensorflow/tensorflow/g" + + "o/core/protobuf/for_core_protos_go_proto" + + "\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_tensorflow_DeviceProperties_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_DeviceProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_DeviceProperties_descriptor, + new java.lang.String[] { "Type", "Vendor", "Model", "Frequency", "NumCores", "Environment", "NumRegisters", "L1CacheSize", "L2CacheSize", "L3CacheSize", "SharedMemorySizePerMultiprocessor", "MemorySize", "Bandwidth", }); + internal_static_tensorflow_DeviceProperties_EnvironmentEntry_descriptor = + internal_static_tensorflow_DeviceProperties_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_DeviceProperties_EnvironmentEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_DeviceProperties_EnvironmentEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_tensorflow_NamedDevice_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_tensorflow_NamedDevice_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_NamedDevice_descriptor, + new java.lang.String[] { "Name", "Properties", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceStepStats.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceStepStats.java similarity index 75% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceStepStats.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceStepStats.java index 8da65e2b3d5..9a419a9c426 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceStepStats.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceStepStats.java @@ -1,12 +1,12 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/step_stats.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; /** * Protobuf type {@code tensorflow.DeviceStepStats} */ -public final class DeviceStepStats extends +public final class DeviceStepStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.DeviceStepStats) DeviceStepStatsOrBuilder { @@ -32,78 +32,9 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private DeviceStepStats( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - device_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - nodeStats_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nodeStats_.add( - input.readMessage(org.tensorflow.proto.framework.NodeExecStats.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - threadNames_ = com.google.protobuf.MapField.newMapField( - ThreadNamesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - threadNames__ = input.readMessage( - ThreadNamesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - threadNames_.getMutableMap().put( - threadNames__.getKey(), threadNames__.getValue()); - 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)) { - nodeStats_ = java.util.Collections.unmodifiableList(nodeStats_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_DeviceStepStats_descriptor; + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_DeviceStepStats_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -121,16 +52,18 @@ protected com.google.protobuf.MapField internalGetMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_DeviceStepStats_fieldAccessorTable + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_DeviceStepStats_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.DeviceStepStats.class, org.tensorflow.proto.framework.DeviceStepStats.Builder.class); + org.tensorflow.proto.DeviceStepStats.class, org.tensorflow.proto.DeviceStepStats.Builder.class); } public static final int DEVICE_FIELD_NUMBER = 1; private volatile java.lang.Object device_; /** * string device = 1; + * @return The device. */ + @java.lang.Override public java.lang.String getDevice() { java.lang.Object ref = device_; if (ref instanceof java.lang.String) { @@ -145,7 +78,9 @@ public java.lang.String getDevice() { } /** * string device = 1; + * @return The bytes for device. */ + @java.lang.Override public com.google.protobuf.ByteString getDeviceBytes() { java.lang.Object ref = device_; @@ -161,36 +96,41 @@ public java.lang.String getDevice() { } public static final int NODE_STATS_FIELD_NUMBER = 2; - private java.util.List nodeStats_; + private java.util.List nodeStats_; /** * repeated .tensorflow.NodeExecStats node_stats = 2; */ - public java.util.List getNodeStatsList() { + @java.lang.Override + public java.util.List getNodeStatsList() { return nodeStats_; } /** * repeated .tensorflow.NodeExecStats node_stats = 2; */ - public java.util.List + @java.lang.Override + public java.util.List getNodeStatsOrBuilderList() { return nodeStats_; } /** * repeated .tensorflow.NodeExecStats node_stats = 2; */ + @java.lang.Override public int getNodeStatsCount() { return nodeStats_.size(); } /** * repeated .tensorflow.NodeExecStats node_stats = 2; */ - public org.tensorflow.proto.framework.NodeExecStats getNodeStats(int index) { + @java.lang.Override + public org.tensorflow.proto.NodeExecStats getNodeStats(int index) { return nodeStats_.get(index); } /** * repeated .tensorflow.NodeExecStats node_stats = 2; */ - public org.tensorflow.proto.framework.NodeExecStatsOrBuilder getNodeStatsOrBuilder( + @java.lang.Override + public org.tensorflow.proto.NodeExecStatsOrBuilder getNodeStatsOrBuilder( int index) { return nodeStats_.get(index); } @@ -201,7 +141,7 @@ private static final class ThreadNamesDefaultEntryHolder { java.lang.Integer, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( - org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_DeviceStepStats_ThreadNamesEntry_descriptor, + org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_DeviceStepStats_ThreadNamesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.UINT32, 0, com.google.protobuf.WireFormat.FieldType.STRING, @@ -229,6 +169,7 @@ public int getThreadNamesCount() { * map<uint32, string> thread_names = 3; */ + @java.lang.Override public boolean containsThreadNames( int key) { @@ -237,6 +178,7 @@ public boolean containsThreadNames( /** * Use {@link #getThreadNamesMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getThreadNames() { return getThreadNamesMap(); @@ -248,6 +190,7 @@ public java.util.Map getThreadNames() { * * map<uint32, string> thread_names = 3; */ + @java.lang.Override public java.util.Map getThreadNamesMap() { return internalGetThreadNames().getMap(); @@ -259,6 +202,7 @@ public java.util.Map getThreadNamesMap() { * * map<uint32, string> thread_names = 3; */ + @java.lang.Override public java.lang.String getThreadNamesOrDefault( int key, @@ -275,6 +219,7 @@ public java.lang.String getThreadNamesOrDefault( * * map<uint32, string> thread_names = 3; */ + @java.lang.Override public java.lang.String getThreadNamesOrThrow( int key) { @@ -301,7 +246,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDeviceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(device_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, device_); } for (int i = 0; i < nodeStats_.size(); i++) { @@ -313,7 +258,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) internalGetThreadNames(), ThreadNamesDefaultEntryHolder.defaultEntry, 3); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -322,7 +267,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getDeviceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(device_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, device_); } for (int i = 0; i < nodeStats_.size(); i++) { @@ -339,7 +284,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, threadNames__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -349,10 +294,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.DeviceStepStats)) { + if (!(obj instanceof org.tensorflow.proto.DeviceStepStats)) { return super.equals(obj); } - org.tensorflow.proto.framework.DeviceStepStats other = (org.tensorflow.proto.framework.DeviceStepStats) obj; + org.tensorflow.proto.DeviceStepStats other = (org.tensorflow.proto.DeviceStepStats) obj; if (!getDevice() .equals(other.getDevice())) return false; @@ -360,7 +305,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getNodeStatsList())) return false; if (!internalGetThreadNames().equals( other.internalGetThreadNames())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -381,74 +326,74 @@ public int hashCode() { hash = (37 * hash) + THREAD_NAMES_FIELD_NUMBER; hash = (53 * hash) + internalGetThreadNames().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.DeviceStepStats parseFrom( + public static org.tensorflow.proto.DeviceStepStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.DeviceStepStats parseFrom( + public static org.tensorflow.proto.DeviceStepStats parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.DeviceStepStats parseFrom( + public static org.tensorflow.proto.DeviceStepStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.DeviceStepStats parseFrom( + public static org.tensorflow.proto.DeviceStepStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.DeviceStepStats parseFrom(byte[] data) + public static org.tensorflow.proto.DeviceStepStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.DeviceStepStats parseFrom( + public static org.tensorflow.proto.DeviceStepStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.DeviceStepStats parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.DeviceStepStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.DeviceStepStats parseFrom( + public static org.tensorflow.proto.DeviceStepStats 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 org.tensorflow.proto.framework.DeviceStepStats parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.DeviceStepStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.DeviceStepStats parseDelimitedFrom( + public static org.tensorflow.proto.DeviceStepStats 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 org.tensorflow.proto.framework.DeviceStepStats parseFrom( + public static org.tensorflow.proto.DeviceStepStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.DeviceStepStats parseFrom( + public static org.tensorflow.proto.DeviceStepStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -461,7 +406,7 @@ public static org.tensorflow.proto.framework.DeviceStepStats parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.DeviceStepStats prototype) { + public static Builder newBuilder(org.tensorflow.proto.DeviceStepStats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -482,10 +427,10 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.DeviceStepStats) - org.tensorflow.proto.framework.DeviceStepStatsOrBuilder { + org.tensorflow.proto.DeviceStepStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_DeviceStepStats_descriptor; + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_DeviceStepStats_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -513,26 +458,20 @@ protected com.google.protobuf.MapField internalGetMutableMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_DeviceStepStats_fieldAccessorTable + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_DeviceStepStats_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.DeviceStepStats.class, org.tensorflow.proto.framework.DeviceStepStats.Builder.class); + org.tensorflow.proto.DeviceStepStats.class, org.tensorflow.proto.DeviceStepStats.Builder.class); } - // Construct using org.tensorflow.proto.framework.DeviceStepStats.newBuilder() + // Construct using org.tensorflow.proto.DeviceStepStats.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNodeStatsFieldBuilder(); - } + } @java.lang.Override public Builder clear() { @@ -541,10 +480,11 @@ public Builder clear() { if (nodeStatsBuilder_ == null) { nodeStats_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + nodeStats_ = null; nodeStatsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableThreadNames().clear(); return this; } @@ -552,17 +492,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_DeviceStepStats_descriptor; + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_DeviceStepStats_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.DeviceStepStats getDefaultInstanceForType() { - return org.tensorflow.proto.framework.DeviceStepStats.getDefaultInstance(); + public org.tensorflow.proto.DeviceStepStats getDefaultInstanceForType() { + return org.tensorflow.proto.DeviceStepStats.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.DeviceStepStats build() { - org.tensorflow.proto.framework.DeviceStepStats result = buildPartial(); + public org.tensorflow.proto.DeviceStepStats build() { + org.tensorflow.proto.DeviceStepStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -570,8 +510,8 @@ public org.tensorflow.proto.framework.DeviceStepStats build() { } @java.lang.Override - public org.tensorflow.proto.framework.DeviceStepStats buildPartial() { - org.tensorflow.proto.framework.DeviceStepStats result = new org.tensorflow.proto.framework.DeviceStepStats(this); + public org.tensorflow.proto.DeviceStepStats buildPartial() { + org.tensorflow.proto.DeviceStepStats result = new org.tensorflow.proto.DeviceStepStats(this); int from_bitField0_ = bitField0_; result.device_ = device_; if (nodeStatsBuilder_ == null) { @@ -623,16 +563,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.DeviceStepStats) { - return mergeFrom((org.tensorflow.proto.framework.DeviceStepStats)other); + if (other instanceof org.tensorflow.proto.DeviceStepStats) { + return mergeFrom((org.tensorflow.proto.DeviceStepStats)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.DeviceStepStats other) { - if (other == org.tensorflow.proto.framework.DeviceStepStats.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.DeviceStepStats other) { + if (other == org.tensorflow.proto.DeviceStepStats.getDefaultInstance()) return this; if (!other.getDevice().isEmpty()) { device_ = other.device_; onChanged(); @@ -665,7 +605,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.DeviceStepStats other) { } internalGetMutableThreadNames().mergeFrom( other.internalGetThreadNames()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -680,17 +620,56 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.DeviceStepStats parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + device_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + org.tensorflow.proto.NodeExecStats m = + input.readMessage( + org.tensorflow.proto.NodeExecStats.parser(), + extensionRegistry); + if (nodeStatsBuilder_ == null) { + ensureNodeStatsIsMutable(); + nodeStats_.add(m); + } else { + nodeStatsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + com.google.protobuf.MapEntry + threadNames__ = input.readMessage( + ThreadNamesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableThreadNames().getMutableMap().put( + threadNames__.getKey(), threadNames__.getValue()); + break; + } // case 26 + 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) { - parsedMessage = (org.tensorflow.proto.framework.DeviceStepStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -698,6 +677,7 @@ public Builder mergeFrom( private java.lang.Object device_ = ""; /** * string device = 1; + * @return The device. */ public java.lang.String getDevice() { java.lang.Object ref = device_; @@ -713,6 +693,7 @@ public java.lang.String getDevice() { } /** * string device = 1; + * @return The bytes for device. */ public com.google.protobuf.ByteString getDeviceBytes() { @@ -729,6 +710,8 @@ public java.lang.String getDevice() { } /** * string device = 1; + * @param value The device to set. + * @return This builder for chaining. */ public Builder setDevice( java.lang.String value) { @@ -742,6 +725,7 @@ public Builder setDevice( } /** * string device = 1; + * @return This builder for chaining. */ public Builder clearDevice() { @@ -751,6 +735,8 @@ public Builder clearDevice() { } /** * string device = 1; + * @param value The bytes for device to set. + * @return This builder for chaining. */ public Builder setDeviceBytes( com.google.protobuf.ByteString value) { @@ -764,22 +750,22 @@ public Builder setDeviceBytes( return this; } - private java.util.List nodeStats_ = + private java.util.List nodeStats_ = java.util.Collections.emptyList(); private void ensureNodeStatsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - nodeStats_ = new java.util.ArrayList(nodeStats_); + nodeStats_ = new java.util.ArrayList(nodeStats_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.NodeExecStats, org.tensorflow.proto.framework.NodeExecStats.Builder, org.tensorflow.proto.framework.NodeExecStatsOrBuilder> nodeStatsBuilder_; + org.tensorflow.proto.NodeExecStats, org.tensorflow.proto.NodeExecStats.Builder, org.tensorflow.proto.NodeExecStatsOrBuilder> nodeStatsBuilder_; /** * repeated .tensorflow.NodeExecStats node_stats = 2; */ - public java.util.List getNodeStatsList() { + public java.util.List getNodeStatsList() { if (nodeStatsBuilder_ == null) { return java.util.Collections.unmodifiableList(nodeStats_); } else { @@ -799,7 +785,7 @@ public int getNodeStatsCount() { /** * repeated .tensorflow.NodeExecStats node_stats = 2; */ - public org.tensorflow.proto.framework.NodeExecStats getNodeStats(int index) { + public org.tensorflow.proto.NodeExecStats getNodeStats(int index) { if (nodeStatsBuilder_ == null) { return nodeStats_.get(index); } else { @@ -810,7 +796,7 @@ public org.tensorflow.proto.framework.NodeExecStats getNodeStats(int index) { * repeated .tensorflow.NodeExecStats node_stats = 2; */ public Builder setNodeStats( - int index, org.tensorflow.proto.framework.NodeExecStats value) { + int index, org.tensorflow.proto.NodeExecStats value) { if (nodeStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -827,7 +813,7 @@ public Builder setNodeStats( * repeated .tensorflow.NodeExecStats node_stats = 2; */ public Builder setNodeStats( - int index, org.tensorflow.proto.framework.NodeExecStats.Builder builderForValue) { + int index, org.tensorflow.proto.NodeExecStats.Builder builderForValue) { if (nodeStatsBuilder_ == null) { ensureNodeStatsIsMutable(); nodeStats_.set(index, builderForValue.build()); @@ -840,7 +826,7 @@ public Builder setNodeStats( /** * repeated .tensorflow.NodeExecStats node_stats = 2; */ - public Builder addNodeStats(org.tensorflow.proto.framework.NodeExecStats value) { + public Builder addNodeStats(org.tensorflow.proto.NodeExecStats value) { if (nodeStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -857,7 +843,7 @@ public Builder addNodeStats(org.tensorflow.proto.framework.NodeExecStats value) * repeated .tensorflow.NodeExecStats node_stats = 2; */ public Builder addNodeStats( - int index, org.tensorflow.proto.framework.NodeExecStats value) { + int index, org.tensorflow.proto.NodeExecStats value) { if (nodeStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -874,7 +860,7 @@ public Builder addNodeStats( * repeated .tensorflow.NodeExecStats node_stats = 2; */ public Builder addNodeStats( - org.tensorflow.proto.framework.NodeExecStats.Builder builderForValue) { + org.tensorflow.proto.NodeExecStats.Builder builderForValue) { if (nodeStatsBuilder_ == null) { ensureNodeStatsIsMutable(); nodeStats_.add(builderForValue.build()); @@ -888,7 +874,7 @@ public Builder addNodeStats( * repeated .tensorflow.NodeExecStats node_stats = 2; */ public Builder addNodeStats( - int index, org.tensorflow.proto.framework.NodeExecStats.Builder builderForValue) { + int index, org.tensorflow.proto.NodeExecStats.Builder builderForValue) { if (nodeStatsBuilder_ == null) { ensureNodeStatsIsMutable(); nodeStats_.add(index, builderForValue.build()); @@ -902,7 +888,7 @@ public Builder addNodeStats( * repeated .tensorflow.NodeExecStats node_stats = 2; */ public Builder addAllNodeStats( - java.lang.Iterable values) { + java.lang.Iterable values) { if (nodeStatsBuilder_ == null) { ensureNodeStatsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -942,14 +928,14 @@ public Builder removeNodeStats(int index) { /** * repeated .tensorflow.NodeExecStats node_stats = 2; */ - public org.tensorflow.proto.framework.NodeExecStats.Builder getNodeStatsBuilder( + public org.tensorflow.proto.NodeExecStats.Builder getNodeStatsBuilder( int index) { return getNodeStatsFieldBuilder().getBuilder(index); } /** * repeated .tensorflow.NodeExecStats node_stats = 2; */ - public org.tensorflow.proto.framework.NodeExecStatsOrBuilder getNodeStatsOrBuilder( + public org.tensorflow.proto.NodeExecStatsOrBuilder getNodeStatsOrBuilder( int index) { if (nodeStatsBuilder_ == null) { return nodeStats_.get(index); } else { @@ -959,7 +945,7 @@ public org.tensorflow.proto.framework.NodeExecStatsOrBuilder getNodeStatsOrBuild /** * repeated .tensorflow.NodeExecStats node_stats = 2; */ - public java.util.List + public java.util.List getNodeStatsOrBuilderList() { if (nodeStatsBuilder_ != null) { return nodeStatsBuilder_.getMessageOrBuilderList(); @@ -970,31 +956,31 @@ public org.tensorflow.proto.framework.NodeExecStatsOrBuilder getNodeStatsOrBuild /** * repeated .tensorflow.NodeExecStats node_stats = 2; */ - public org.tensorflow.proto.framework.NodeExecStats.Builder addNodeStatsBuilder() { + public org.tensorflow.proto.NodeExecStats.Builder addNodeStatsBuilder() { return getNodeStatsFieldBuilder().addBuilder( - org.tensorflow.proto.framework.NodeExecStats.getDefaultInstance()); + org.tensorflow.proto.NodeExecStats.getDefaultInstance()); } /** * repeated .tensorflow.NodeExecStats node_stats = 2; */ - public org.tensorflow.proto.framework.NodeExecStats.Builder addNodeStatsBuilder( + public org.tensorflow.proto.NodeExecStats.Builder addNodeStatsBuilder( int index) { return getNodeStatsFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.NodeExecStats.getDefaultInstance()); + index, org.tensorflow.proto.NodeExecStats.getDefaultInstance()); } /** * repeated .tensorflow.NodeExecStats node_stats = 2; */ - public java.util.List + public java.util.List getNodeStatsBuilderList() { return getNodeStatsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.NodeExecStats, org.tensorflow.proto.framework.NodeExecStats.Builder, org.tensorflow.proto.framework.NodeExecStatsOrBuilder> + org.tensorflow.proto.NodeExecStats, org.tensorflow.proto.NodeExecStats.Builder, org.tensorflow.proto.NodeExecStatsOrBuilder> getNodeStatsFieldBuilder() { if (nodeStatsBuilder_ == null) { nodeStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.NodeExecStats, org.tensorflow.proto.framework.NodeExecStats.Builder, org.tensorflow.proto.framework.NodeExecStatsOrBuilder>( + org.tensorflow.proto.NodeExecStats, org.tensorflow.proto.NodeExecStats.Builder, org.tensorflow.proto.NodeExecStatsOrBuilder>( nodeStats_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1038,6 +1024,7 @@ public int getThreadNamesCount() { * map<uint32, string> thread_names = 3; */ + @java.lang.Override public boolean containsThreadNames( int key) { @@ -1046,6 +1033,7 @@ public boolean containsThreadNames( /** * Use {@link #getThreadNamesMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getThreadNames() { return getThreadNamesMap(); @@ -1057,6 +1045,7 @@ public java.util.Map getThreadNames() { * * map<uint32, string> thread_names = 3; */ + @java.lang.Override public java.util.Map getThreadNamesMap() { return internalGetThreadNames().getMap(); @@ -1068,6 +1057,7 @@ public java.util.Map getThreadNamesMap() { * * map<uint32, string> thread_names = 3; */ + @java.lang.Override public java.lang.String getThreadNamesOrDefault( int key, @@ -1084,6 +1074,7 @@ public java.lang.String getThreadNamesOrDefault( * * map<uint32, string> thread_names = 3; */ + @java.lang.Override public java.lang.String getThreadNamesOrThrow( int key) { @@ -1135,7 +1126,10 @@ public Builder putThreadNames( int key, java.lang.String value) { - if (value == null) { throw new java.lang.NullPointerException(); } + if (value == null) { + throw new NullPointerException("map value"); +} + internalGetMutableThreadNames().getMutableMap() .put(key, value); return this; @@ -1171,12 +1165,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.DeviceStepStats) - private static final org.tensorflow.proto.framework.DeviceStepStats DEFAULT_INSTANCE; + private static final org.tensorflow.proto.DeviceStepStats DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.DeviceStepStats(); + DEFAULT_INSTANCE = new org.tensorflow.proto.DeviceStepStats(); } - public static org.tensorflow.proto.framework.DeviceStepStats getDefaultInstance() { + public static org.tensorflow.proto.DeviceStepStats getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1187,7 +1181,18 @@ public DeviceStepStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeviceStepStats(input, extensionRegistry); + 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(); } }; @@ -1201,7 +1206,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.DeviceStepStats getDefaultInstanceForType() { + public org.tensorflow.proto.DeviceStepStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceStepStatsOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceStepStatsOrBuilder.java similarity index 81% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceStepStatsOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceStepStatsOrBuilder.java index d53ab25f2e0..e96f3715f39 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/DeviceStepStatsOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/DeviceStepStatsOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/step_stats.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface DeviceStepStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.DeviceStepStats) @@ -9,10 +9,12 @@ public interface DeviceStepStatsOrBuilder extends /** * string device = 1; + * @return The device. */ java.lang.String getDevice(); /** * string device = 1; + * @return The bytes for device. */ com.google.protobuf.ByteString getDeviceBytes(); @@ -20,12 +22,12 @@ public interface DeviceStepStatsOrBuilder extends /** * repeated .tensorflow.NodeExecStats node_stats = 2; */ - java.util.List + java.util.List getNodeStatsList(); /** * repeated .tensorflow.NodeExecStats node_stats = 2; */ - org.tensorflow.proto.framework.NodeExecStats getNodeStats(int index); + org.tensorflow.proto.NodeExecStats getNodeStats(int index); /** * repeated .tensorflow.NodeExecStats node_stats = 2; */ @@ -33,12 +35,12 @@ public interface DeviceStepStatsOrBuilder extends /** * repeated .tensorflow.NodeExecStats node_stats = 2; */ - java.util.List + java.util.List getNodeStatsOrBuilderList(); /** * repeated .tensorflow.NodeExecStats node_stats = 2; */ - org.tensorflow.proto.framework.NodeExecStatsOrBuilder getNodeStatsOrBuilder( + org.tensorflow.proto.NodeExecStatsOrBuilder getNodeStatsOrBuilder( int index); /** @@ -81,9 +83,11 @@ boolean containsThreadNames( * map<uint32, string> thread_names = 3; */ - java.lang.String getThreadNamesOrDefault( + /* nullable */ +java.lang.String getThreadNamesOrDefault( int key, - java.lang.String defaultValue); + /* nullable */ +java.lang.String defaultValue); /** *
    * Its key is thread id.
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/EntryValue.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/EntryValue.java
new file mode 100644
index 00000000000..457172f2c55
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/EntryValue.java
@@ -0,0 +1,745 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/tsl/protobuf/test_log.proto
+
+package org.tensorflow.proto;
+
+/**
+ * Protobuf type {@code tensorflow.EntryValue}
+ */
+public final class EntryValue extends
+    com.google.protobuf.GeneratedMessageV3 implements
+    // @@protoc_insertion_point(message_implements:tensorflow.EntryValue)
+    EntryValueOrBuilder {
+private static final long serialVersionUID = 0L;
+  // Use EntryValue.newBuilder() to construct.
+  private EntryValue(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    super(builder);
+  }
+  private EntryValue() {
+  }
+
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
+    return new EntryValue();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
+    return this.unknownFields;
+  }
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_EntryValue_descriptor;
+  }
+
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internalGetFieldAccessorTable() {
+    return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_EntryValue_fieldAccessorTable
+        .ensureFieldAccessorsInitialized(
+            org.tensorflow.proto.EntryValue.class, org.tensorflow.proto.EntryValue.Builder.class);
+  }
+
+  private int kindCase_ = 0;
+  private java.lang.Object kind_;
+  public enum KindCase
+      implements com.google.protobuf.Internal.EnumLite,
+          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+    DOUBLE_VALUE(1),
+    STRING_VALUE(2),
+    KIND_NOT_SET(0);
+    private final int value;
+    private KindCase(int value) {
+      this.value = value;
+    }
+    /**
+     * @param value The number of the enum to look for.
+     * @return The enum associated with the given number.
+     * @deprecated Use {@link #forNumber(int)} instead.
+     */
+    @java.lang.Deprecated
+    public static KindCase valueOf(int value) {
+      return forNumber(value);
+    }
+
+    public static KindCase forNumber(int value) {
+      switch (value) {
+        case 1: return DOUBLE_VALUE;
+        case 2: return STRING_VALUE;
+        case 0: return KIND_NOT_SET;
+        default: return null;
+      }
+    }
+    public int getNumber() {
+      return this.value;
+    }
+  };
+
+  public KindCase
+  getKindCase() {
+    return KindCase.forNumber(
+        kindCase_);
+  }
+
+  public static final int DOUBLE_VALUE_FIELD_NUMBER = 1;
+  /**
+   * double double_value = 1;
+   * @return Whether the doubleValue field is set.
+   */
+  @java.lang.Override
+  public boolean hasDoubleValue() {
+    return kindCase_ == 1;
+  }
+  /**
+   * double double_value = 1;
+   * @return The doubleValue.
+   */
+  @java.lang.Override
+  public double getDoubleValue() {
+    if (kindCase_ == 1) {
+      return (java.lang.Double) kind_;
+    }
+    return 0D;
+  }
+
+  public static final int STRING_VALUE_FIELD_NUMBER = 2;
+  /**
+   * string string_value = 2;
+   * @return Whether the stringValue field is set.
+   */
+  public boolean hasStringValue() {
+    return kindCase_ == 2;
+  }
+  /**
+   * string string_value = 2;
+   * @return The stringValue.
+   */
+  public java.lang.String getStringValue() {
+    java.lang.Object ref = "";
+    if (kindCase_ == 2) {
+      ref = kind_;
+    }
+    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();
+      if (kindCase_ == 2) {
+        kind_ = s;
+      }
+      return s;
+    }
+  }
+  /**
+   * string string_value = 2;
+   * @return The bytes for stringValue.
+   */
+  public com.google.protobuf.ByteString
+      getStringValueBytes() {
+    java.lang.Object ref = "";
+    if (kindCase_ == 2) {
+      ref = kind_;
+    }
+    if (ref instanceof java.lang.String) {
+      com.google.protobuf.ByteString b = 
+          com.google.protobuf.ByteString.copyFromUtf8(
+              (java.lang.String) ref);
+      if (kindCase_ == 2) {
+        kind_ = 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 (kindCase_ == 1) {
+      output.writeDouble(
+          1, (double)((java.lang.Double) kind_));
+    }
+    if (kindCase_ == 2) {
+      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kind_);
+    }
+    getUnknownFields().writeTo(output);
+  }
+
+  @java.lang.Override
+  public int getSerializedSize() {
+    int size = memoizedSize;
+    if (size != -1) return size;
+
+    size = 0;
+    if (kindCase_ == 1) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeDoubleSize(
+            1, (double)((java.lang.Double) kind_));
+    }
+    if (kindCase_ == 2) {
+      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kind_);
+    }
+    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 org.tensorflow.proto.EntryValue)) {
+      return super.equals(obj);
+    }
+    org.tensorflow.proto.EntryValue other = (org.tensorflow.proto.EntryValue) obj;
+
+    if (!getKindCase().equals(other.getKindCase())) return false;
+    switch (kindCase_) {
+      case 1:
+        if (java.lang.Double.doubleToLongBits(getDoubleValue())
+            != java.lang.Double.doubleToLongBits(
+                other.getDoubleValue())) return false;
+        break;
+      case 2:
+        if (!getStringValue()
+            .equals(other.getStringValue())) return false;
+        break;
+      case 0:
+      default:
+    }
+    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();
+    switch (kindCase_) {
+      case 1:
+        hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER;
+        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+            java.lang.Double.doubleToLongBits(getDoubleValue()));
+        break;
+      case 2:
+        hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER;
+        hash = (53 * hash) + getStringValue().hashCode();
+        break;
+      case 0:
+      default:
+    }
+    hash = (29 * hash) + getUnknownFields().hashCode();
+    memoizedHashCode = hash;
+    return hash;
+  }
+
+  public static org.tensorflow.proto.EntryValue parseFrom(
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.EntryValue parseFrom(
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.EntryValue parseFrom(
+      com.google.protobuf.ByteString data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.EntryValue parseFrom(
+      com.google.protobuf.ByteString data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.EntryValue parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.EntryValue parseFrom(
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.EntryValue parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.EntryValue 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 org.tensorflow.proto.EntryValue parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.EntryValue 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 org.tensorflow.proto.EntryValue parseFrom(
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.EntryValue 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(org.tensorflow.proto.EntryValue prototype) {
+    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+  }
+  @java.lang.Override
+  public Builder toBuilder() {
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
+  }
+
+  @java.lang.Override
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    Builder builder = new Builder(parent);
+    return builder;
+  }
+  /**
+   * Protobuf type {@code tensorflow.EntryValue}
+   */
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
+      // @@protoc_insertion_point(builder_implements:tensorflow.EntryValue)
+      org.tensorflow.proto.EntryValueOrBuilder {
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_EntryValue_descriptor;
+    }
+
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+        internalGetFieldAccessorTable() {
+      return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_EntryValue_fieldAccessorTable
+          .ensureFieldAccessorsInitialized(
+              org.tensorflow.proto.EntryValue.class, org.tensorflow.proto.EntryValue.Builder.class);
+    }
+
+    // Construct using org.tensorflow.proto.EntryValue.newBuilder()
+    private Builder() {
+
+    }
+
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
+    @java.lang.Override
+    public Builder clear() {
+      super.clear();
+      kindCase_ = 0;
+      kind_ = null;
+      return this;
+    }
+
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_EntryValue_descriptor;
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.EntryValue getDefaultInstanceForType() {
+      return org.tensorflow.proto.EntryValue.getDefaultInstance();
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.EntryValue build() {
+      org.tensorflow.proto.EntryValue result = buildPartial();
+      if (!result.isInitialized()) {
+        throw newUninitializedMessageException(result);
+      }
+      return result;
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.EntryValue buildPartial() {
+      org.tensorflow.proto.EntryValue result = new org.tensorflow.proto.EntryValue(this);
+      if (kindCase_ == 1) {
+        result.kind_ = kind_;
+      }
+      if (kindCase_ == 2) {
+        result.kind_ = kind_;
+      }
+      result.kindCase_ = kindCase_;
+      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 org.tensorflow.proto.EntryValue) {
+        return mergeFrom((org.tensorflow.proto.EntryValue)other);
+      } else {
+        super.mergeFrom(other);
+        return this;
+      }
+    }
+
+    public Builder mergeFrom(org.tensorflow.proto.EntryValue other) {
+      if (other == org.tensorflow.proto.EntryValue.getDefaultInstance()) return this;
+      switch (other.getKindCase()) {
+        case DOUBLE_VALUE: {
+          setDoubleValue(other.getDoubleValue());
+          break;
+        }
+        case STRING_VALUE: {
+          kindCase_ = 2;
+          kind_ = other.kind_;
+          onChanged();
+          break;
+        }
+        case KIND_NOT_SET: {
+          break;
+        }
+      }
+      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 9: {
+              kind_ = input.readDouble();
+              kindCase_ = 1;
+              break;
+            } // case 9
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              kindCase_ = 2;
+              kind_ = s;
+              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 kindCase_ = 0;
+    private java.lang.Object kind_;
+    public KindCase
+        getKindCase() {
+      return KindCase.forNumber(
+          kindCase_);
+    }
+
+    public Builder clearKind() {
+      kindCase_ = 0;
+      kind_ = null;
+      onChanged();
+      return this;
+    }
+
+
+    /**
+     * double double_value = 1;
+     * @return Whether the doubleValue field is set.
+     */
+    public boolean hasDoubleValue() {
+      return kindCase_ == 1;
+    }
+    /**
+     * double double_value = 1;
+     * @return The doubleValue.
+     */
+    public double getDoubleValue() {
+      if (kindCase_ == 1) {
+        return (java.lang.Double) kind_;
+      }
+      return 0D;
+    }
+    /**
+     * double double_value = 1;
+     * @param value The doubleValue to set.
+     * @return This builder for chaining.
+     */
+    public Builder setDoubleValue(double value) {
+      kindCase_ = 1;
+      kind_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * double double_value = 1;
+     * @return This builder for chaining.
+     */
+    public Builder clearDoubleValue() {
+      if (kindCase_ == 1) {
+        kindCase_ = 0;
+        kind_ = null;
+        onChanged();
+      }
+      return this;
+    }
+
+    /**
+     * string string_value = 2;
+     * @return Whether the stringValue field is set.
+     */
+    @java.lang.Override
+    public boolean hasStringValue() {
+      return kindCase_ == 2;
+    }
+    /**
+     * string string_value = 2;
+     * @return The stringValue.
+     */
+    @java.lang.Override
+    public java.lang.String getStringValue() {
+      java.lang.Object ref = "";
+      if (kindCase_ == 2) {
+        ref = kind_;
+      }
+      if (!(ref instanceof java.lang.String)) {
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
+        java.lang.String s = bs.toStringUtf8();
+        if (kindCase_ == 2) {
+          kind_ = s;
+        }
+        return s;
+      } else {
+        return (java.lang.String) ref;
+      }
+    }
+    /**
+     * string string_value = 2;
+     * @return The bytes for stringValue.
+     */
+    @java.lang.Override
+    public com.google.protobuf.ByteString
+        getStringValueBytes() {
+      java.lang.Object ref = "";
+      if (kindCase_ == 2) {
+        ref = kind_;
+      }
+      if (ref instanceof String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        if (kindCase_ == 2) {
+          kind_ = b;
+        }
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+    /**
+     * string string_value = 2;
+     * @param value The stringValue to set.
+     * @return This builder for chaining.
+     */
+    public Builder setStringValue(
+        java.lang.String value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  kindCase_ = 2;
+      kind_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * string string_value = 2;
+     * @return This builder for chaining.
+     */
+    public Builder clearStringValue() {
+      if (kindCase_ == 2) {
+        kindCase_ = 0;
+        kind_ = null;
+        onChanged();
+      }
+      return this;
+    }
+    /**
+     * string string_value = 2;
+     * @param value The bytes for stringValue to set.
+     * @return This builder for chaining.
+     */
+    public Builder setStringValueBytes(
+        com.google.protobuf.ByteString value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  checkByteStringIsUtf8(value);
+      kindCase_ = 2;
+      kind_ = value;
+      onChanged();
+      return this;
+    }
+    @java.lang.Override
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
+      return super.setUnknownFields(unknownFields);
+    }
+
+    @java.lang.Override
+    public final Builder mergeUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
+      return super.mergeUnknownFields(unknownFields);
+    }
+
+
+    // @@protoc_insertion_point(builder_scope:tensorflow.EntryValue)
+  }
+
+  // @@protoc_insertion_point(class_scope:tensorflow.EntryValue)
+  private static final org.tensorflow.proto.EntryValue DEFAULT_INSTANCE;
+  static {
+    DEFAULT_INSTANCE = new org.tensorflow.proto.EntryValue();
+  }
+
+  public static org.tensorflow.proto.EntryValue getDefaultInstance() {
+    return DEFAULT_INSTANCE;
+  }
+
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public EntryValue 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 org.tensorflow.proto.EntryValue getDefaultInstanceForType() {
+    return DEFAULT_INSTANCE;
+  }
+
+}
+
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/EntryValueOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/EntryValueOrBuilder.java
new file mode 100644
index 00000000000..a3d53d1abfe
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/EntryValueOrBuilder.java
@@ -0,0 +1,39 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/tsl/protobuf/test_log.proto
+
+package org.tensorflow.proto;
+
+public interface EntryValueOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:tensorflow.EntryValue)
+    com.google.protobuf.MessageOrBuilder {
+
+  /**
+   * double double_value = 1;
+   * @return Whether the doubleValue field is set.
+   */
+  boolean hasDoubleValue();
+  /**
+   * double double_value = 1;
+   * @return The doubleValue.
+   */
+  double getDoubleValue();
+
+  /**
+   * string string_value = 2;
+   * @return Whether the stringValue field is set.
+   */
+  boolean hasStringValue();
+  /**
+   * string string_value = 2;
+   * @return The stringValue.
+   */
+  java.lang.String getStringValue();
+  /**
+   * string string_value = 2;
+   * @return The bytes for stringValue.
+   */
+  com.google.protobuf.ByteString
+      getStringValueBytes();
+
+  public org.tensorflow.proto.EntryValue.KindCase getKindCase();
+}
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Event.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Event.java
new file mode 100644
index 00000000000..d0e1a0b2115
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Event.java
@@ -0,0 +1,2436 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/util/event.proto
+
+package org.tensorflow.proto;
+
+/**
+ * 
+ * Protocol buffer representing an event that happened during
+ * the execution of a Brain model.
+ * 
+ * + * Protobuf type {@code tensorflow.Event} + */ +public final class Event extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.Event) + EventOrBuilder { +private static final long serialVersionUID = 0L; + // Use Event.newBuilder() to construct. + private Event(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Event() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Event(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_Event_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_Event_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Event.class, org.tensorflow.proto.Event.Builder.class); + } + + private int whatCase_ = 0; + private java.lang.Object what_; + public enum WhatCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FILE_VERSION(3), + GRAPH_DEF(4), + SUMMARY(5), + @java.lang.Deprecated LOG_MESSAGE(6), + SESSION_LOG(7), + TAGGED_RUN_METADATA(8), + META_GRAPH_DEF(9), + WHAT_NOT_SET(0); + private final int value; + private WhatCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static WhatCase valueOf(int value) { + return forNumber(value); + } + + public static WhatCase forNumber(int value) { + switch (value) { + case 3: return FILE_VERSION; + case 4: return GRAPH_DEF; + case 5: return SUMMARY; + case 6: return LOG_MESSAGE; + case 7: return SESSION_LOG; + case 8: return TAGGED_RUN_METADATA; + case 9: return META_GRAPH_DEF; + case 0: return WHAT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public WhatCase + getWhatCase() { + return WhatCase.forNumber( + whatCase_); + } + + public static final int WALL_TIME_FIELD_NUMBER = 1; + private double wallTime_; + /** + *
+   * Timestamp of the event.
+   * 
+ * + * double wall_time = 1; + * @return The wallTime. + */ + @java.lang.Override + public double getWallTime() { + return wallTime_; + } + + public static final int STEP_FIELD_NUMBER = 2; + private long step_; + /** + *
+   * Global step of the event.
+   * 
+ * + * int64 step = 2; + * @return The step. + */ + @java.lang.Override + public long getStep() { + return step_; + } + + public static final int FILE_VERSION_FIELD_NUMBER = 3; + /** + *
+   * An event file was started, with the specified version.
+   * This is use to identify the contents of the record IO files
+   * easily.  Current version is "brain.Event:2".  All versions
+   * start with "brain.Event:".
+   * 
+ * + * string file_version = 3; + * @return Whether the fileVersion field is set. + */ + public boolean hasFileVersion() { + return whatCase_ == 3; + } + /** + *
+   * An event file was started, with the specified version.
+   * This is use to identify the contents of the record IO files
+   * easily.  Current version is "brain.Event:2".  All versions
+   * start with "brain.Event:".
+   * 
+ * + * string file_version = 3; + * @return The fileVersion. + */ + public java.lang.String getFileVersion() { + java.lang.Object ref = ""; + if (whatCase_ == 3) { + ref = what_; + } + 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(); + if (whatCase_ == 3) { + what_ = s; + } + return s; + } + } + /** + *
+   * An event file was started, with the specified version.
+   * This is use to identify the contents of the record IO files
+   * easily.  Current version is "brain.Event:2".  All versions
+   * start with "brain.Event:".
+   * 
+ * + * string file_version = 3; + * @return The bytes for fileVersion. + */ + public com.google.protobuf.ByteString + getFileVersionBytes() { + java.lang.Object ref = ""; + if (whatCase_ == 3) { + ref = what_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (whatCase_ == 3) { + what_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GRAPH_DEF_FIELD_NUMBER = 4; + /** + *
+   * An encoded version of a GraphDef.
+   * 
+ * + * bytes graph_def = 4; + * @return Whether the graphDef field is set. + */ + @java.lang.Override + public boolean hasGraphDef() { + return whatCase_ == 4; + } + /** + *
+   * An encoded version of a GraphDef.
+   * 
+ * + * bytes graph_def = 4; + * @return The graphDef. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGraphDef() { + if (whatCase_ == 4) { + return (com.google.protobuf.ByteString) what_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int SUMMARY_FIELD_NUMBER = 5; + /** + *
+   * A summary was generated.
+   * 
+ * + * .tensorflow.Summary summary = 5; + * @return Whether the summary field is set. + */ + @java.lang.Override + public boolean hasSummary() { + return whatCase_ == 5; + } + /** + *
+   * A summary was generated.
+   * 
+ * + * .tensorflow.Summary summary = 5; + * @return The summary. + */ + @java.lang.Override + public org.tensorflow.proto.Summary getSummary() { + if (whatCase_ == 5) { + return (org.tensorflow.proto.Summary) what_; + } + return org.tensorflow.proto.Summary.getDefaultInstance(); + } + /** + *
+   * A summary was generated.
+   * 
+ * + * .tensorflow.Summary summary = 5; + */ + @java.lang.Override + public org.tensorflow.proto.SummaryOrBuilder getSummaryOrBuilder() { + if (whatCase_ == 5) { + return (org.tensorflow.proto.Summary) what_; + } + return org.tensorflow.proto.Summary.getDefaultInstance(); + } + + public static final int LOG_MESSAGE_FIELD_NUMBER = 6; + /** + *
+   * The user output a log message. This was theoretically used by the defunct
+   * tensorboard_logging module, which has since been removed; this field is
+   * now deprecated and should not be used.
+   * 
+ * + * .tensorflow.LogMessage log_message = 6 [deprecated = true]; + * @deprecated tensorflow.Event.log_message is deprecated. + * See tensorflow/core/util/event.proto;l=33 + * @return Whether the logMessage field is set. + */ + @java.lang.Override + @java.lang.Deprecated public boolean hasLogMessage() { + return whatCase_ == 6; + } + /** + *
+   * The user output a log message. This was theoretically used by the defunct
+   * tensorboard_logging module, which has since been removed; this field is
+   * now deprecated and should not be used.
+   * 
+ * + * .tensorflow.LogMessage log_message = 6 [deprecated = true]; + * @deprecated tensorflow.Event.log_message is deprecated. + * See tensorflow/core/util/event.proto;l=33 + * @return The logMessage. + */ + @java.lang.Override + @java.lang.Deprecated public org.tensorflow.proto.LogMessage getLogMessage() { + if (whatCase_ == 6) { + return (org.tensorflow.proto.LogMessage) what_; + } + return org.tensorflow.proto.LogMessage.getDefaultInstance(); + } + /** + *
+   * The user output a log message. This was theoretically used by the defunct
+   * tensorboard_logging module, which has since been removed; this field is
+   * now deprecated and should not be used.
+   * 
+ * + * .tensorflow.LogMessage log_message = 6 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public org.tensorflow.proto.LogMessageOrBuilder getLogMessageOrBuilder() { + if (whatCase_ == 6) { + return (org.tensorflow.proto.LogMessage) what_; + } + return org.tensorflow.proto.LogMessage.getDefaultInstance(); + } + + public static final int SESSION_LOG_FIELD_NUMBER = 7; + /** + *
+   * The state of the session which can be used for restarting after crashes.
+   * 
+ * + * .tensorflow.SessionLog session_log = 7; + * @return Whether the sessionLog field is set. + */ + @java.lang.Override + public boolean hasSessionLog() { + return whatCase_ == 7; + } + /** + *
+   * The state of the session which can be used for restarting after crashes.
+   * 
+ * + * .tensorflow.SessionLog session_log = 7; + * @return The sessionLog. + */ + @java.lang.Override + public org.tensorflow.proto.SessionLog getSessionLog() { + if (whatCase_ == 7) { + return (org.tensorflow.proto.SessionLog) what_; + } + return org.tensorflow.proto.SessionLog.getDefaultInstance(); + } + /** + *
+   * The state of the session which can be used for restarting after crashes.
+   * 
+ * + * .tensorflow.SessionLog session_log = 7; + */ + @java.lang.Override + public org.tensorflow.proto.SessionLogOrBuilder getSessionLogOrBuilder() { + if (whatCase_ == 7) { + return (org.tensorflow.proto.SessionLog) what_; + } + return org.tensorflow.proto.SessionLog.getDefaultInstance(); + } + + public static final int TAGGED_RUN_METADATA_FIELD_NUMBER = 8; + /** + *
+   * The metadata returned by running a session.run() call.
+   * 
+ * + * .tensorflow.TaggedRunMetadata tagged_run_metadata = 8; + * @return Whether the taggedRunMetadata field is set. + */ + @java.lang.Override + public boolean hasTaggedRunMetadata() { + return whatCase_ == 8; + } + /** + *
+   * The metadata returned by running a session.run() call.
+   * 
+ * + * .tensorflow.TaggedRunMetadata tagged_run_metadata = 8; + * @return The taggedRunMetadata. + */ + @java.lang.Override + public org.tensorflow.proto.TaggedRunMetadata getTaggedRunMetadata() { + if (whatCase_ == 8) { + return (org.tensorflow.proto.TaggedRunMetadata) what_; + } + return org.tensorflow.proto.TaggedRunMetadata.getDefaultInstance(); + } + /** + *
+   * The metadata returned by running a session.run() call.
+   * 
+ * + * .tensorflow.TaggedRunMetadata tagged_run_metadata = 8; + */ + @java.lang.Override + public org.tensorflow.proto.TaggedRunMetadataOrBuilder getTaggedRunMetadataOrBuilder() { + if (whatCase_ == 8) { + return (org.tensorflow.proto.TaggedRunMetadata) what_; + } + return org.tensorflow.proto.TaggedRunMetadata.getDefaultInstance(); + } + + public static final int META_GRAPH_DEF_FIELD_NUMBER = 9; + /** + *
+   * An encoded version of a MetaGraphDef.
+   * 
+ * + * bytes meta_graph_def = 9; + * @return Whether the metaGraphDef field is set. + */ + @java.lang.Override + public boolean hasMetaGraphDef() { + return whatCase_ == 9; + } + /** + *
+   * An encoded version of a MetaGraphDef.
+   * 
+ * + * bytes meta_graph_def = 9; + * @return The metaGraphDef. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetaGraphDef() { + if (whatCase_ == 9) { + return (com.google.protobuf.ByteString) what_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int SOURCE_METADATA_FIELD_NUMBER = 10; + private org.tensorflow.proto.SourceMetadata sourceMetadata_; + /** + *
+   * Information of the source that writes the events, this is only logged in
+   * the very first event along with the `file_version` field.
+   * 
+ * + * .tensorflow.SourceMetadata source_metadata = 10; + * @return Whether the sourceMetadata field is set. + */ + @java.lang.Override + public boolean hasSourceMetadata() { + return sourceMetadata_ != null; + } + /** + *
+   * Information of the source that writes the events, this is only logged in
+   * the very first event along with the `file_version` field.
+   * 
+ * + * .tensorflow.SourceMetadata source_metadata = 10; + * @return The sourceMetadata. + */ + @java.lang.Override + public org.tensorflow.proto.SourceMetadata getSourceMetadata() { + return sourceMetadata_ == null ? org.tensorflow.proto.SourceMetadata.getDefaultInstance() : sourceMetadata_; + } + /** + *
+   * Information of the source that writes the events, this is only logged in
+   * the very first event along with the `file_version` field.
+   * 
+ * + * .tensorflow.SourceMetadata source_metadata = 10; + */ + @java.lang.Override + public org.tensorflow.proto.SourceMetadataOrBuilder getSourceMetadataOrBuilder() { + return getSourceMetadata(); + } + + 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 (java.lang.Double.doubleToRawLongBits(wallTime_) != 0) { + output.writeDouble(1, wallTime_); + } + if (step_ != 0L) { + output.writeInt64(2, step_); + } + if (whatCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, what_); + } + if (whatCase_ == 4) { + output.writeBytes( + 4, (com.google.protobuf.ByteString) what_); + } + if (whatCase_ == 5) { + output.writeMessage(5, (org.tensorflow.proto.Summary) what_); + } + if (whatCase_ == 6) { + output.writeMessage(6, (org.tensorflow.proto.LogMessage) what_); + } + if (whatCase_ == 7) { + output.writeMessage(7, (org.tensorflow.proto.SessionLog) what_); + } + if (whatCase_ == 8) { + output.writeMessage(8, (org.tensorflow.proto.TaggedRunMetadata) what_); + } + if (whatCase_ == 9) { + output.writeBytes( + 9, (com.google.protobuf.ByteString) what_); + } + if (sourceMetadata_ != null) { + output.writeMessage(10, getSourceMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Double.doubleToRawLongBits(wallTime_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, wallTime_); + } + if (step_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, step_); + } + if (whatCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, what_); + } + if (whatCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 4, (com.google.protobuf.ByteString) what_); + } + if (whatCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (org.tensorflow.proto.Summary) what_); + } + if (whatCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (org.tensorflow.proto.LogMessage) what_); + } + if (whatCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (org.tensorflow.proto.SessionLog) what_); + } + if (whatCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (org.tensorflow.proto.TaggedRunMetadata) what_); + } + if (whatCase_ == 9) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 9, (com.google.protobuf.ByteString) what_); + } + if (sourceMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getSourceMetadata()); + } + 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 org.tensorflow.proto.Event)) { + return super.equals(obj); + } + org.tensorflow.proto.Event other = (org.tensorflow.proto.Event) obj; + + if (java.lang.Double.doubleToLongBits(getWallTime()) + != java.lang.Double.doubleToLongBits( + other.getWallTime())) return false; + if (getStep() + != other.getStep()) return false; + if (hasSourceMetadata() != other.hasSourceMetadata()) return false; + if (hasSourceMetadata()) { + if (!getSourceMetadata() + .equals(other.getSourceMetadata())) return false; + } + if (!getWhatCase().equals(other.getWhatCase())) return false; + switch (whatCase_) { + case 3: + if (!getFileVersion() + .equals(other.getFileVersion())) return false; + break; + case 4: + if (!getGraphDef() + .equals(other.getGraphDef())) return false; + break; + case 5: + if (!getSummary() + .equals(other.getSummary())) return false; + break; + case 6: + if (!getLogMessage() + .equals(other.getLogMessage())) return false; + break; + case 7: + if (!getSessionLog() + .equals(other.getSessionLog())) return false; + break; + case 8: + if (!getTaggedRunMetadata() + .equals(other.getTaggedRunMetadata())) return false; + break; + case 9: + if (!getMetaGraphDef() + .equals(other.getMetaGraphDef())) return false; + break; + case 0: + default: + } + 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) + WALL_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getWallTime())); + hash = (37 * hash) + STEP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStep()); + if (hasSourceMetadata()) { + hash = (37 * hash) + SOURCE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getSourceMetadata().hashCode(); + } + switch (whatCase_) { + case 3: + hash = (37 * hash) + FILE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getFileVersion().hashCode(); + break; + case 4: + hash = (37 * hash) + GRAPH_DEF_FIELD_NUMBER; + hash = (53 * hash) + getGraphDef().hashCode(); + break; + case 5: + hash = (37 * hash) + SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getSummary().hashCode(); + break; + case 6: + hash = (37 * hash) + LOG_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getLogMessage().hashCode(); + break; + case 7: + hash = (37 * hash) + SESSION_LOG_FIELD_NUMBER; + hash = (53 * hash) + getSessionLog().hashCode(); + break; + case 8: + hash = (37 * hash) + TAGGED_RUN_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTaggedRunMetadata().hashCode(); + break; + case 9: + hash = (37 * hash) + META_GRAPH_DEF_FIELD_NUMBER; + hash = (53 * hash) + getMetaGraphDef().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.Event parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Event parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Event parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Event parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Event parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Event parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Event parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Event 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 org.tensorflow.proto.Event parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Event 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 org.tensorflow.proto.Event parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Event 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(org.tensorflow.proto.Event 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; + } + /** + *
+   * Protocol buffer representing an event that happened during
+   * the execution of a Brain model.
+   * 
+ * + * Protobuf type {@code tensorflow.Event} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.Event) + org.tensorflow.proto.EventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_Event_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_Event_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Event.class, org.tensorflow.proto.Event.Builder.class); + } + + // Construct using org.tensorflow.proto.Event.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + wallTime_ = 0D; + + step_ = 0L; + + if (summaryBuilder_ != null) { + summaryBuilder_.clear(); + } + if (logMessageBuilder_ != null) { + logMessageBuilder_.clear(); + } + if (sessionLogBuilder_ != null) { + sessionLogBuilder_.clear(); + } + if (taggedRunMetadataBuilder_ != null) { + taggedRunMetadataBuilder_.clear(); + } + if (sourceMetadataBuilder_ == null) { + sourceMetadata_ = null; + } else { + sourceMetadata_ = null; + sourceMetadataBuilder_ = null; + } + whatCase_ = 0; + what_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_Event_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.Event getDefaultInstanceForType() { + return org.tensorflow.proto.Event.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.Event build() { + org.tensorflow.proto.Event result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.Event buildPartial() { + org.tensorflow.proto.Event result = new org.tensorflow.proto.Event(this); + result.wallTime_ = wallTime_; + result.step_ = step_; + if (whatCase_ == 3) { + result.what_ = what_; + } + if (whatCase_ == 4) { + result.what_ = what_; + } + if (whatCase_ == 5) { + if (summaryBuilder_ == null) { + result.what_ = what_; + } else { + result.what_ = summaryBuilder_.build(); + } + } + if (whatCase_ == 6) { + if (logMessageBuilder_ == null) { + result.what_ = what_; + } else { + result.what_ = logMessageBuilder_.build(); + } + } + if (whatCase_ == 7) { + if (sessionLogBuilder_ == null) { + result.what_ = what_; + } else { + result.what_ = sessionLogBuilder_.build(); + } + } + if (whatCase_ == 8) { + if (taggedRunMetadataBuilder_ == null) { + result.what_ = what_; + } else { + result.what_ = taggedRunMetadataBuilder_.build(); + } + } + if (whatCase_ == 9) { + result.what_ = what_; + } + if (sourceMetadataBuilder_ == null) { + result.sourceMetadata_ = sourceMetadata_; + } else { + result.sourceMetadata_ = sourceMetadataBuilder_.build(); + } + result.whatCase_ = whatCase_; + 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 org.tensorflow.proto.Event) { + return mergeFrom((org.tensorflow.proto.Event)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.Event other) { + if (other == org.tensorflow.proto.Event.getDefaultInstance()) return this; + if (other.getWallTime() != 0D) { + setWallTime(other.getWallTime()); + } + if (other.getStep() != 0L) { + setStep(other.getStep()); + } + if (other.hasSourceMetadata()) { + mergeSourceMetadata(other.getSourceMetadata()); + } + switch (other.getWhatCase()) { + case FILE_VERSION: { + whatCase_ = 3; + what_ = other.what_; + onChanged(); + break; + } + case GRAPH_DEF: { + setGraphDef(other.getGraphDef()); + break; + } + case SUMMARY: { + mergeSummary(other.getSummary()); + break; + } + case LOG_MESSAGE: { + mergeLogMessage(other.getLogMessage()); + break; + } + case SESSION_LOG: { + mergeSessionLog(other.getSessionLog()); + break; + } + case TAGGED_RUN_METADATA: { + mergeTaggedRunMetadata(other.getTaggedRunMetadata()); + break; + } + case META_GRAPH_DEF: { + setMetaGraphDef(other.getMetaGraphDef()); + break; + } + case WHAT_NOT_SET: { + break; + } + } + 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 9: { + wallTime_ = input.readDouble(); + + break; + } // case 9 + case 16: { + step_ = input.readInt64(); + + break; + } // case 16 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + whatCase_ = 3; + what_ = s; + break; + } // case 26 + case 34: { + what_ = input.readBytes(); + whatCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getSummaryFieldBuilder().getBuilder(), + extensionRegistry); + whatCase_ = 5; + break; + } // case 42 + case 50: { + input.readMessage( + getLogMessageFieldBuilder().getBuilder(), + extensionRegistry); + whatCase_ = 6; + break; + } // case 50 + case 58: { + input.readMessage( + getSessionLogFieldBuilder().getBuilder(), + extensionRegistry); + whatCase_ = 7; + break; + } // case 58 + case 66: { + input.readMessage( + getTaggedRunMetadataFieldBuilder().getBuilder(), + extensionRegistry); + whatCase_ = 8; + break; + } // case 66 + case 74: { + what_ = input.readBytes(); + whatCase_ = 9; + break; + } // case 74 + case 82: { + input.readMessage( + getSourceMetadataFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 82 + 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 whatCase_ = 0; + private java.lang.Object what_; + public WhatCase + getWhatCase() { + return WhatCase.forNumber( + whatCase_); + } + + public Builder clearWhat() { + whatCase_ = 0; + what_ = null; + onChanged(); + return this; + } + + + private double wallTime_ ; + /** + *
+     * Timestamp of the event.
+     * 
+ * + * double wall_time = 1; + * @return The wallTime. + */ + @java.lang.Override + public double getWallTime() { + return wallTime_; + } + /** + *
+     * Timestamp of the event.
+     * 
+ * + * double wall_time = 1; + * @param value The wallTime to set. + * @return This builder for chaining. + */ + public Builder setWallTime(double value) { + + wallTime_ = value; + onChanged(); + return this; + } + /** + *
+     * Timestamp of the event.
+     * 
+ * + * double wall_time = 1; + * @return This builder for chaining. + */ + public Builder clearWallTime() { + + wallTime_ = 0D; + onChanged(); + return this; + } + + private long step_ ; + /** + *
+     * Global step of the event.
+     * 
+ * + * int64 step = 2; + * @return The step. + */ + @java.lang.Override + public long getStep() { + return step_; + } + /** + *
+     * Global step of the event.
+     * 
+ * + * int64 step = 2; + * @param value The step to set. + * @return This builder for chaining. + */ + public Builder setStep(long value) { + + step_ = value; + onChanged(); + return this; + } + /** + *
+     * Global step of the event.
+     * 
+ * + * int64 step = 2; + * @return This builder for chaining. + */ + public Builder clearStep() { + + step_ = 0L; + onChanged(); + return this; + } + + /** + *
+     * An event file was started, with the specified version.
+     * This is use to identify the contents of the record IO files
+     * easily.  Current version is "brain.Event:2".  All versions
+     * start with "brain.Event:".
+     * 
+ * + * string file_version = 3; + * @return Whether the fileVersion field is set. + */ + @java.lang.Override + public boolean hasFileVersion() { + return whatCase_ == 3; + } + /** + *
+     * An event file was started, with the specified version.
+     * This is use to identify the contents of the record IO files
+     * easily.  Current version is "brain.Event:2".  All versions
+     * start with "brain.Event:".
+     * 
+ * + * string file_version = 3; + * @return The fileVersion. + */ + @java.lang.Override + public java.lang.String getFileVersion() { + java.lang.Object ref = ""; + if (whatCase_ == 3) { + ref = what_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (whatCase_ == 3) { + what_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * An event file was started, with the specified version.
+     * This is use to identify the contents of the record IO files
+     * easily.  Current version is "brain.Event:2".  All versions
+     * start with "brain.Event:".
+     * 
+ * + * string file_version = 3; + * @return The bytes for fileVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFileVersionBytes() { + java.lang.Object ref = ""; + if (whatCase_ == 3) { + ref = what_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (whatCase_ == 3) { + what_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * An event file was started, with the specified version.
+     * This is use to identify the contents of the record IO files
+     * easily.  Current version is "brain.Event:2".  All versions
+     * start with "brain.Event:".
+     * 
+ * + * string file_version = 3; + * @param value The fileVersion to set. + * @return This builder for chaining. + */ + public Builder setFileVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + whatCase_ = 3; + what_ = value; + onChanged(); + return this; + } + /** + *
+     * An event file was started, with the specified version.
+     * This is use to identify the contents of the record IO files
+     * easily.  Current version is "brain.Event:2".  All versions
+     * start with "brain.Event:".
+     * 
+ * + * string file_version = 3; + * @return This builder for chaining. + */ + public Builder clearFileVersion() { + if (whatCase_ == 3) { + whatCase_ = 0; + what_ = null; + onChanged(); + } + return this; + } + /** + *
+     * An event file was started, with the specified version.
+     * This is use to identify the contents of the record IO files
+     * easily.  Current version is "brain.Event:2".  All versions
+     * start with "brain.Event:".
+     * 
+ * + * string file_version = 3; + * @param value The bytes for fileVersion to set. + * @return This builder for chaining. + */ + public Builder setFileVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + whatCase_ = 3; + what_ = value; + onChanged(); + return this; + } + + /** + *
+     * An encoded version of a GraphDef.
+     * 
+ * + * bytes graph_def = 4; + * @return Whether the graphDef field is set. + */ + public boolean hasGraphDef() { + return whatCase_ == 4; + } + /** + *
+     * An encoded version of a GraphDef.
+     * 
+ * + * bytes graph_def = 4; + * @return The graphDef. + */ + public com.google.protobuf.ByteString getGraphDef() { + if (whatCase_ == 4) { + return (com.google.protobuf.ByteString) what_; + } + return com.google.protobuf.ByteString.EMPTY; + } + /** + *
+     * An encoded version of a GraphDef.
+     * 
+ * + * bytes graph_def = 4; + * @param value The graphDef to set. + * @return This builder for chaining. + */ + public Builder setGraphDef(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + whatCase_ = 4; + what_ = value; + onChanged(); + return this; + } + /** + *
+     * An encoded version of a GraphDef.
+     * 
+ * + * bytes graph_def = 4; + * @return This builder for chaining. + */ + public Builder clearGraphDef() { + if (whatCase_ == 4) { + whatCase_ = 0; + what_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Summary, org.tensorflow.proto.Summary.Builder, org.tensorflow.proto.SummaryOrBuilder> summaryBuilder_; + /** + *
+     * A summary was generated.
+     * 
+ * + * .tensorflow.Summary summary = 5; + * @return Whether the summary field is set. + */ + @java.lang.Override + public boolean hasSummary() { + return whatCase_ == 5; + } + /** + *
+     * A summary was generated.
+     * 
+ * + * .tensorflow.Summary summary = 5; + * @return The summary. + */ + @java.lang.Override + public org.tensorflow.proto.Summary getSummary() { + if (summaryBuilder_ == null) { + if (whatCase_ == 5) { + return (org.tensorflow.proto.Summary) what_; + } + return org.tensorflow.proto.Summary.getDefaultInstance(); + } else { + if (whatCase_ == 5) { + return summaryBuilder_.getMessage(); + } + return org.tensorflow.proto.Summary.getDefaultInstance(); + } + } + /** + *
+     * A summary was generated.
+     * 
+ * + * .tensorflow.Summary summary = 5; + */ + public Builder setSummary(org.tensorflow.proto.Summary value) { + if (summaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + what_ = value; + onChanged(); + } else { + summaryBuilder_.setMessage(value); + } + whatCase_ = 5; + return this; + } + /** + *
+     * A summary was generated.
+     * 
+ * + * .tensorflow.Summary summary = 5; + */ + public Builder setSummary( + org.tensorflow.proto.Summary.Builder builderForValue) { + if (summaryBuilder_ == null) { + what_ = builderForValue.build(); + onChanged(); + } else { + summaryBuilder_.setMessage(builderForValue.build()); + } + whatCase_ = 5; + return this; + } + /** + *
+     * A summary was generated.
+     * 
+ * + * .tensorflow.Summary summary = 5; + */ + public Builder mergeSummary(org.tensorflow.proto.Summary value) { + if (summaryBuilder_ == null) { + if (whatCase_ == 5 && + what_ != org.tensorflow.proto.Summary.getDefaultInstance()) { + what_ = org.tensorflow.proto.Summary.newBuilder((org.tensorflow.proto.Summary) what_) + .mergeFrom(value).buildPartial(); + } else { + what_ = value; + } + onChanged(); + } else { + if (whatCase_ == 5) { + summaryBuilder_.mergeFrom(value); + } else { + summaryBuilder_.setMessage(value); + } + } + whatCase_ = 5; + return this; + } + /** + *
+     * A summary was generated.
+     * 
+ * + * .tensorflow.Summary summary = 5; + */ + public Builder clearSummary() { + if (summaryBuilder_ == null) { + if (whatCase_ == 5) { + whatCase_ = 0; + what_ = null; + onChanged(); + } + } else { + if (whatCase_ == 5) { + whatCase_ = 0; + what_ = null; + } + summaryBuilder_.clear(); + } + return this; + } + /** + *
+     * A summary was generated.
+     * 
+ * + * .tensorflow.Summary summary = 5; + */ + public org.tensorflow.proto.Summary.Builder getSummaryBuilder() { + return getSummaryFieldBuilder().getBuilder(); + } + /** + *
+     * A summary was generated.
+     * 
+ * + * .tensorflow.Summary summary = 5; + */ + @java.lang.Override + public org.tensorflow.proto.SummaryOrBuilder getSummaryOrBuilder() { + if ((whatCase_ == 5) && (summaryBuilder_ != null)) { + return summaryBuilder_.getMessageOrBuilder(); + } else { + if (whatCase_ == 5) { + return (org.tensorflow.proto.Summary) what_; + } + return org.tensorflow.proto.Summary.getDefaultInstance(); + } + } + /** + *
+     * A summary was generated.
+     * 
+ * + * .tensorflow.Summary summary = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Summary, org.tensorflow.proto.Summary.Builder, org.tensorflow.proto.SummaryOrBuilder> + getSummaryFieldBuilder() { + if (summaryBuilder_ == null) { + if (!(whatCase_ == 5)) { + what_ = org.tensorflow.proto.Summary.getDefaultInstance(); + } + summaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Summary, org.tensorflow.proto.Summary.Builder, org.tensorflow.proto.SummaryOrBuilder>( + (org.tensorflow.proto.Summary) what_, + getParentForChildren(), + isClean()); + what_ = null; + } + whatCase_ = 5; + onChanged();; + return summaryBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.LogMessage, org.tensorflow.proto.LogMessage.Builder, org.tensorflow.proto.LogMessageOrBuilder> logMessageBuilder_; + /** + *
+     * The user output a log message. This was theoretically used by the defunct
+     * tensorboard_logging module, which has since been removed; this field is
+     * now deprecated and should not be used.
+     * 
+ * + * .tensorflow.LogMessage log_message = 6 [deprecated = true]; + * @deprecated tensorflow.Event.log_message is deprecated. + * See tensorflow/core/util/event.proto;l=33 + * @return Whether the logMessage field is set. + */ + @java.lang.Override + @java.lang.Deprecated public boolean hasLogMessage() { + return whatCase_ == 6; + } + /** + *
+     * The user output a log message. This was theoretically used by the defunct
+     * tensorboard_logging module, which has since been removed; this field is
+     * now deprecated and should not be used.
+     * 
+ * + * .tensorflow.LogMessage log_message = 6 [deprecated = true]; + * @deprecated tensorflow.Event.log_message is deprecated. + * See tensorflow/core/util/event.proto;l=33 + * @return The logMessage. + */ + @java.lang.Override + @java.lang.Deprecated public org.tensorflow.proto.LogMessage getLogMessage() { + if (logMessageBuilder_ == null) { + if (whatCase_ == 6) { + return (org.tensorflow.proto.LogMessage) what_; + } + return org.tensorflow.proto.LogMessage.getDefaultInstance(); + } else { + if (whatCase_ == 6) { + return logMessageBuilder_.getMessage(); + } + return org.tensorflow.proto.LogMessage.getDefaultInstance(); + } + } + /** + *
+     * The user output a log message. This was theoretically used by the defunct
+     * tensorboard_logging module, which has since been removed; this field is
+     * now deprecated and should not be used.
+     * 
+ * + * .tensorflow.LogMessage log_message = 6 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setLogMessage(org.tensorflow.proto.LogMessage value) { + if (logMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + what_ = value; + onChanged(); + } else { + logMessageBuilder_.setMessage(value); + } + whatCase_ = 6; + return this; + } + /** + *
+     * The user output a log message. This was theoretically used by the defunct
+     * tensorboard_logging module, which has since been removed; this field is
+     * now deprecated and should not be used.
+     * 
+ * + * .tensorflow.LogMessage log_message = 6 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setLogMessage( + org.tensorflow.proto.LogMessage.Builder builderForValue) { + if (logMessageBuilder_ == null) { + what_ = builderForValue.build(); + onChanged(); + } else { + logMessageBuilder_.setMessage(builderForValue.build()); + } + whatCase_ = 6; + return this; + } + /** + *
+     * The user output a log message. This was theoretically used by the defunct
+     * tensorboard_logging module, which has since been removed; this field is
+     * now deprecated and should not be used.
+     * 
+ * + * .tensorflow.LogMessage log_message = 6 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeLogMessage(org.tensorflow.proto.LogMessage value) { + if (logMessageBuilder_ == null) { + if (whatCase_ == 6 && + what_ != org.tensorflow.proto.LogMessage.getDefaultInstance()) { + what_ = org.tensorflow.proto.LogMessage.newBuilder((org.tensorflow.proto.LogMessage) what_) + .mergeFrom(value).buildPartial(); + } else { + what_ = value; + } + onChanged(); + } else { + if (whatCase_ == 6) { + logMessageBuilder_.mergeFrom(value); + } else { + logMessageBuilder_.setMessage(value); + } + } + whatCase_ = 6; + return this; + } + /** + *
+     * The user output a log message. This was theoretically used by the defunct
+     * tensorboard_logging module, which has since been removed; this field is
+     * now deprecated and should not be used.
+     * 
+ * + * .tensorflow.LogMessage log_message = 6 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearLogMessage() { + if (logMessageBuilder_ == null) { + if (whatCase_ == 6) { + whatCase_ = 0; + what_ = null; + onChanged(); + } + } else { + if (whatCase_ == 6) { + whatCase_ = 0; + what_ = null; + } + logMessageBuilder_.clear(); + } + return this; + } + /** + *
+     * The user output a log message. This was theoretically used by the defunct
+     * tensorboard_logging module, which has since been removed; this field is
+     * now deprecated and should not be used.
+     * 
+ * + * .tensorflow.LogMessage log_message = 6 [deprecated = true]; + */ + @java.lang.Deprecated public org.tensorflow.proto.LogMessage.Builder getLogMessageBuilder() { + return getLogMessageFieldBuilder().getBuilder(); + } + /** + *
+     * The user output a log message. This was theoretically used by the defunct
+     * tensorboard_logging module, which has since been removed; this field is
+     * now deprecated and should not be used.
+     * 
+ * + * .tensorflow.LogMessage log_message = 6 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public org.tensorflow.proto.LogMessageOrBuilder getLogMessageOrBuilder() { + if ((whatCase_ == 6) && (logMessageBuilder_ != null)) { + return logMessageBuilder_.getMessageOrBuilder(); + } else { + if (whatCase_ == 6) { + return (org.tensorflow.proto.LogMessage) what_; + } + return org.tensorflow.proto.LogMessage.getDefaultInstance(); + } + } + /** + *
+     * The user output a log message. This was theoretically used by the defunct
+     * tensorboard_logging module, which has since been removed; this field is
+     * now deprecated and should not be used.
+     * 
+ * + * .tensorflow.LogMessage log_message = 6 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.LogMessage, org.tensorflow.proto.LogMessage.Builder, org.tensorflow.proto.LogMessageOrBuilder> + getLogMessageFieldBuilder() { + if (logMessageBuilder_ == null) { + if (!(whatCase_ == 6)) { + what_ = org.tensorflow.proto.LogMessage.getDefaultInstance(); + } + logMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.LogMessage, org.tensorflow.proto.LogMessage.Builder, org.tensorflow.proto.LogMessageOrBuilder>( + (org.tensorflow.proto.LogMessage) what_, + getParentForChildren(), + isClean()); + what_ = null; + } + whatCase_ = 6; + onChanged();; + return logMessageBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SessionLog, org.tensorflow.proto.SessionLog.Builder, org.tensorflow.proto.SessionLogOrBuilder> sessionLogBuilder_; + /** + *
+     * The state of the session which can be used for restarting after crashes.
+     * 
+ * + * .tensorflow.SessionLog session_log = 7; + * @return Whether the sessionLog field is set. + */ + @java.lang.Override + public boolean hasSessionLog() { + return whatCase_ == 7; + } + /** + *
+     * The state of the session which can be used for restarting after crashes.
+     * 
+ * + * .tensorflow.SessionLog session_log = 7; + * @return The sessionLog. + */ + @java.lang.Override + public org.tensorflow.proto.SessionLog getSessionLog() { + if (sessionLogBuilder_ == null) { + if (whatCase_ == 7) { + return (org.tensorflow.proto.SessionLog) what_; + } + return org.tensorflow.proto.SessionLog.getDefaultInstance(); + } else { + if (whatCase_ == 7) { + return sessionLogBuilder_.getMessage(); + } + return org.tensorflow.proto.SessionLog.getDefaultInstance(); + } + } + /** + *
+     * The state of the session which can be used for restarting after crashes.
+     * 
+ * + * .tensorflow.SessionLog session_log = 7; + */ + public Builder setSessionLog(org.tensorflow.proto.SessionLog value) { + if (sessionLogBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + what_ = value; + onChanged(); + } else { + sessionLogBuilder_.setMessage(value); + } + whatCase_ = 7; + return this; + } + /** + *
+     * The state of the session which can be used for restarting after crashes.
+     * 
+ * + * .tensorflow.SessionLog session_log = 7; + */ + public Builder setSessionLog( + org.tensorflow.proto.SessionLog.Builder builderForValue) { + if (sessionLogBuilder_ == null) { + what_ = builderForValue.build(); + onChanged(); + } else { + sessionLogBuilder_.setMessage(builderForValue.build()); + } + whatCase_ = 7; + return this; + } + /** + *
+     * The state of the session which can be used for restarting after crashes.
+     * 
+ * + * .tensorflow.SessionLog session_log = 7; + */ + public Builder mergeSessionLog(org.tensorflow.proto.SessionLog value) { + if (sessionLogBuilder_ == null) { + if (whatCase_ == 7 && + what_ != org.tensorflow.proto.SessionLog.getDefaultInstance()) { + what_ = org.tensorflow.proto.SessionLog.newBuilder((org.tensorflow.proto.SessionLog) what_) + .mergeFrom(value).buildPartial(); + } else { + what_ = value; + } + onChanged(); + } else { + if (whatCase_ == 7) { + sessionLogBuilder_.mergeFrom(value); + } else { + sessionLogBuilder_.setMessage(value); + } + } + whatCase_ = 7; + return this; + } + /** + *
+     * The state of the session which can be used for restarting after crashes.
+     * 
+ * + * .tensorflow.SessionLog session_log = 7; + */ + public Builder clearSessionLog() { + if (sessionLogBuilder_ == null) { + if (whatCase_ == 7) { + whatCase_ = 0; + what_ = null; + onChanged(); + } + } else { + if (whatCase_ == 7) { + whatCase_ = 0; + what_ = null; + } + sessionLogBuilder_.clear(); + } + return this; + } + /** + *
+     * The state of the session which can be used for restarting after crashes.
+     * 
+ * + * .tensorflow.SessionLog session_log = 7; + */ + public org.tensorflow.proto.SessionLog.Builder getSessionLogBuilder() { + return getSessionLogFieldBuilder().getBuilder(); + } + /** + *
+     * The state of the session which can be used for restarting after crashes.
+     * 
+ * + * .tensorflow.SessionLog session_log = 7; + */ + @java.lang.Override + public org.tensorflow.proto.SessionLogOrBuilder getSessionLogOrBuilder() { + if ((whatCase_ == 7) && (sessionLogBuilder_ != null)) { + return sessionLogBuilder_.getMessageOrBuilder(); + } else { + if (whatCase_ == 7) { + return (org.tensorflow.proto.SessionLog) what_; + } + return org.tensorflow.proto.SessionLog.getDefaultInstance(); + } + } + /** + *
+     * The state of the session which can be used for restarting after crashes.
+     * 
+ * + * .tensorflow.SessionLog session_log = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SessionLog, org.tensorflow.proto.SessionLog.Builder, org.tensorflow.proto.SessionLogOrBuilder> + getSessionLogFieldBuilder() { + if (sessionLogBuilder_ == null) { + if (!(whatCase_ == 7)) { + what_ = org.tensorflow.proto.SessionLog.getDefaultInstance(); + } + sessionLogBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SessionLog, org.tensorflow.proto.SessionLog.Builder, org.tensorflow.proto.SessionLogOrBuilder>( + (org.tensorflow.proto.SessionLog) what_, + getParentForChildren(), + isClean()); + what_ = null; + } + whatCase_ = 7; + onChanged();; + return sessionLogBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TaggedRunMetadata, org.tensorflow.proto.TaggedRunMetadata.Builder, org.tensorflow.proto.TaggedRunMetadataOrBuilder> taggedRunMetadataBuilder_; + /** + *
+     * The metadata returned by running a session.run() call.
+     * 
+ * + * .tensorflow.TaggedRunMetadata tagged_run_metadata = 8; + * @return Whether the taggedRunMetadata field is set. + */ + @java.lang.Override + public boolean hasTaggedRunMetadata() { + return whatCase_ == 8; + } + /** + *
+     * The metadata returned by running a session.run() call.
+     * 
+ * + * .tensorflow.TaggedRunMetadata tagged_run_metadata = 8; + * @return The taggedRunMetadata. + */ + @java.lang.Override + public org.tensorflow.proto.TaggedRunMetadata getTaggedRunMetadata() { + if (taggedRunMetadataBuilder_ == null) { + if (whatCase_ == 8) { + return (org.tensorflow.proto.TaggedRunMetadata) what_; + } + return org.tensorflow.proto.TaggedRunMetadata.getDefaultInstance(); + } else { + if (whatCase_ == 8) { + return taggedRunMetadataBuilder_.getMessage(); + } + return org.tensorflow.proto.TaggedRunMetadata.getDefaultInstance(); + } + } + /** + *
+     * The metadata returned by running a session.run() call.
+     * 
+ * + * .tensorflow.TaggedRunMetadata tagged_run_metadata = 8; + */ + public Builder setTaggedRunMetadata(org.tensorflow.proto.TaggedRunMetadata value) { + if (taggedRunMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + what_ = value; + onChanged(); + } else { + taggedRunMetadataBuilder_.setMessage(value); + } + whatCase_ = 8; + return this; + } + /** + *
+     * The metadata returned by running a session.run() call.
+     * 
+ * + * .tensorflow.TaggedRunMetadata tagged_run_metadata = 8; + */ + public Builder setTaggedRunMetadata( + org.tensorflow.proto.TaggedRunMetadata.Builder builderForValue) { + if (taggedRunMetadataBuilder_ == null) { + what_ = builderForValue.build(); + onChanged(); + } else { + taggedRunMetadataBuilder_.setMessage(builderForValue.build()); + } + whatCase_ = 8; + return this; + } + /** + *
+     * The metadata returned by running a session.run() call.
+     * 
+ * + * .tensorflow.TaggedRunMetadata tagged_run_metadata = 8; + */ + public Builder mergeTaggedRunMetadata(org.tensorflow.proto.TaggedRunMetadata value) { + if (taggedRunMetadataBuilder_ == null) { + if (whatCase_ == 8 && + what_ != org.tensorflow.proto.TaggedRunMetadata.getDefaultInstance()) { + what_ = org.tensorflow.proto.TaggedRunMetadata.newBuilder((org.tensorflow.proto.TaggedRunMetadata) what_) + .mergeFrom(value).buildPartial(); + } else { + what_ = value; + } + onChanged(); + } else { + if (whatCase_ == 8) { + taggedRunMetadataBuilder_.mergeFrom(value); + } else { + taggedRunMetadataBuilder_.setMessage(value); + } + } + whatCase_ = 8; + return this; + } + /** + *
+     * The metadata returned by running a session.run() call.
+     * 
+ * + * .tensorflow.TaggedRunMetadata tagged_run_metadata = 8; + */ + public Builder clearTaggedRunMetadata() { + if (taggedRunMetadataBuilder_ == null) { + if (whatCase_ == 8) { + whatCase_ = 0; + what_ = null; + onChanged(); + } + } else { + if (whatCase_ == 8) { + whatCase_ = 0; + what_ = null; + } + taggedRunMetadataBuilder_.clear(); + } + return this; + } + /** + *
+     * The metadata returned by running a session.run() call.
+     * 
+ * + * .tensorflow.TaggedRunMetadata tagged_run_metadata = 8; + */ + public org.tensorflow.proto.TaggedRunMetadata.Builder getTaggedRunMetadataBuilder() { + return getTaggedRunMetadataFieldBuilder().getBuilder(); + } + /** + *
+     * The metadata returned by running a session.run() call.
+     * 
+ * + * .tensorflow.TaggedRunMetadata tagged_run_metadata = 8; + */ + @java.lang.Override + public org.tensorflow.proto.TaggedRunMetadataOrBuilder getTaggedRunMetadataOrBuilder() { + if ((whatCase_ == 8) && (taggedRunMetadataBuilder_ != null)) { + return taggedRunMetadataBuilder_.getMessageOrBuilder(); + } else { + if (whatCase_ == 8) { + return (org.tensorflow.proto.TaggedRunMetadata) what_; + } + return org.tensorflow.proto.TaggedRunMetadata.getDefaultInstance(); + } + } + /** + *
+     * The metadata returned by running a session.run() call.
+     * 
+ * + * .tensorflow.TaggedRunMetadata tagged_run_metadata = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TaggedRunMetadata, org.tensorflow.proto.TaggedRunMetadata.Builder, org.tensorflow.proto.TaggedRunMetadataOrBuilder> + getTaggedRunMetadataFieldBuilder() { + if (taggedRunMetadataBuilder_ == null) { + if (!(whatCase_ == 8)) { + what_ = org.tensorflow.proto.TaggedRunMetadata.getDefaultInstance(); + } + taggedRunMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TaggedRunMetadata, org.tensorflow.proto.TaggedRunMetadata.Builder, org.tensorflow.proto.TaggedRunMetadataOrBuilder>( + (org.tensorflow.proto.TaggedRunMetadata) what_, + getParentForChildren(), + isClean()); + what_ = null; + } + whatCase_ = 8; + onChanged();; + return taggedRunMetadataBuilder_; + } + + /** + *
+     * An encoded version of a MetaGraphDef.
+     * 
+ * + * bytes meta_graph_def = 9; + * @return Whether the metaGraphDef field is set. + */ + public boolean hasMetaGraphDef() { + return whatCase_ == 9; + } + /** + *
+     * An encoded version of a MetaGraphDef.
+     * 
+ * + * bytes meta_graph_def = 9; + * @return The metaGraphDef. + */ + public com.google.protobuf.ByteString getMetaGraphDef() { + if (whatCase_ == 9) { + return (com.google.protobuf.ByteString) what_; + } + return com.google.protobuf.ByteString.EMPTY; + } + /** + *
+     * An encoded version of a MetaGraphDef.
+     * 
+ * + * bytes meta_graph_def = 9; + * @param value The metaGraphDef to set. + * @return This builder for chaining. + */ + public Builder setMetaGraphDef(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + whatCase_ = 9; + what_ = value; + onChanged(); + return this; + } + /** + *
+     * An encoded version of a MetaGraphDef.
+     * 
+ * + * bytes meta_graph_def = 9; + * @return This builder for chaining. + */ + public Builder clearMetaGraphDef() { + if (whatCase_ == 9) { + whatCase_ = 0; + what_ = null; + onChanged(); + } + return this; + } + + private org.tensorflow.proto.SourceMetadata sourceMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SourceMetadata, org.tensorflow.proto.SourceMetadata.Builder, org.tensorflow.proto.SourceMetadataOrBuilder> sourceMetadataBuilder_; + /** + *
+     * Information of the source that writes the events, this is only logged in
+     * the very first event along with the `file_version` field.
+     * 
+ * + * .tensorflow.SourceMetadata source_metadata = 10; + * @return Whether the sourceMetadata field is set. + */ + public boolean hasSourceMetadata() { + return sourceMetadataBuilder_ != null || sourceMetadata_ != null; + } + /** + *
+     * Information of the source that writes the events, this is only logged in
+     * the very first event along with the `file_version` field.
+     * 
+ * + * .tensorflow.SourceMetadata source_metadata = 10; + * @return The sourceMetadata. + */ + public org.tensorflow.proto.SourceMetadata getSourceMetadata() { + if (sourceMetadataBuilder_ == null) { + return sourceMetadata_ == null ? org.tensorflow.proto.SourceMetadata.getDefaultInstance() : sourceMetadata_; + } else { + return sourceMetadataBuilder_.getMessage(); + } + } + /** + *
+     * Information of the source that writes the events, this is only logged in
+     * the very first event along with the `file_version` field.
+     * 
+ * + * .tensorflow.SourceMetadata source_metadata = 10; + */ + public Builder setSourceMetadata(org.tensorflow.proto.SourceMetadata value) { + if (sourceMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceMetadata_ = value; + onChanged(); + } else { + sourceMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Information of the source that writes the events, this is only logged in
+     * the very first event along with the `file_version` field.
+     * 
+ * + * .tensorflow.SourceMetadata source_metadata = 10; + */ + public Builder setSourceMetadata( + org.tensorflow.proto.SourceMetadata.Builder builderForValue) { + if (sourceMetadataBuilder_ == null) { + sourceMetadata_ = builderForValue.build(); + onChanged(); + } else { + sourceMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Information of the source that writes the events, this is only logged in
+     * the very first event along with the `file_version` field.
+     * 
+ * + * .tensorflow.SourceMetadata source_metadata = 10; + */ + public Builder mergeSourceMetadata(org.tensorflow.proto.SourceMetadata value) { + if (sourceMetadataBuilder_ == null) { + if (sourceMetadata_ != null) { + sourceMetadata_ = + org.tensorflow.proto.SourceMetadata.newBuilder(sourceMetadata_).mergeFrom(value).buildPartial(); + } else { + sourceMetadata_ = value; + } + onChanged(); + } else { + sourceMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Information of the source that writes the events, this is only logged in
+     * the very first event along with the `file_version` field.
+     * 
+ * + * .tensorflow.SourceMetadata source_metadata = 10; + */ + public Builder clearSourceMetadata() { + if (sourceMetadataBuilder_ == null) { + sourceMetadata_ = null; + onChanged(); + } else { + sourceMetadata_ = null; + sourceMetadataBuilder_ = null; + } + + return this; + } + /** + *
+     * Information of the source that writes the events, this is only logged in
+     * the very first event along with the `file_version` field.
+     * 
+ * + * .tensorflow.SourceMetadata source_metadata = 10; + */ + public org.tensorflow.proto.SourceMetadata.Builder getSourceMetadataBuilder() { + + onChanged(); + return getSourceMetadataFieldBuilder().getBuilder(); + } + /** + *
+     * Information of the source that writes the events, this is only logged in
+     * the very first event along with the `file_version` field.
+     * 
+ * + * .tensorflow.SourceMetadata source_metadata = 10; + */ + public org.tensorflow.proto.SourceMetadataOrBuilder getSourceMetadataOrBuilder() { + if (sourceMetadataBuilder_ != null) { + return sourceMetadataBuilder_.getMessageOrBuilder(); + } else { + return sourceMetadata_ == null ? + org.tensorflow.proto.SourceMetadata.getDefaultInstance() : sourceMetadata_; + } + } + /** + *
+     * Information of the source that writes the events, this is only logged in
+     * the very first event along with the `file_version` field.
+     * 
+ * + * .tensorflow.SourceMetadata source_metadata = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SourceMetadata, org.tensorflow.proto.SourceMetadata.Builder, org.tensorflow.proto.SourceMetadataOrBuilder> + getSourceMetadataFieldBuilder() { + if (sourceMetadataBuilder_ == null) { + sourceMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SourceMetadata, org.tensorflow.proto.SourceMetadata.Builder, org.tensorflow.proto.SourceMetadataOrBuilder>( + getSourceMetadata(), + getParentForChildren(), + isClean()); + sourceMetadata_ = null; + } + return sourceMetadataBuilder_; + } + @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:tensorflow.Event) + } + + // @@protoc_insertion_point(class_scope:tensorflow.Event) + private static final org.tensorflow.proto.Event DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.Event(); + } + + public static org.tensorflow.proto.Event getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Event 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 org.tensorflow.proto.Event getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/EventOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/EventOrBuilder.java new file mode 100644 index 00000000000..8c2a174ef1e --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/EventOrBuilder.java @@ -0,0 +1,255 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/util/event.proto + +package org.tensorflow.proto; + +public interface EventOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.Event) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Timestamp of the event.
+   * 
+ * + * double wall_time = 1; + * @return The wallTime. + */ + double getWallTime(); + + /** + *
+   * Global step of the event.
+   * 
+ * + * int64 step = 2; + * @return The step. + */ + long getStep(); + + /** + *
+   * An event file was started, with the specified version.
+   * This is use to identify the contents of the record IO files
+   * easily.  Current version is "brain.Event:2".  All versions
+   * start with "brain.Event:".
+   * 
+ * + * string file_version = 3; + * @return Whether the fileVersion field is set. + */ + boolean hasFileVersion(); + /** + *
+   * An event file was started, with the specified version.
+   * This is use to identify the contents of the record IO files
+   * easily.  Current version is "brain.Event:2".  All versions
+   * start with "brain.Event:".
+   * 
+ * + * string file_version = 3; + * @return The fileVersion. + */ + java.lang.String getFileVersion(); + /** + *
+   * An event file was started, with the specified version.
+   * This is use to identify the contents of the record IO files
+   * easily.  Current version is "brain.Event:2".  All versions
+   * start with "brain.Event:".
+   * 
+ * + * string file_version = 3; + * @return The bytes for fileVersion. + */ + com.google.protobuf.ByteString + getFileVersionBytes(); + + /** + *
+   * An encoded version of a GraphDef.
+   * 
+ * + * bytes graph_def = 4; + * @return Whether the graphDef field is set. + */ + boolean hasGraphDef(); + /** + *
+   * An encoded version of a GraphDef.
+   * 
+ * + * bytes graph_def = 4; + * @return The graphDef. + */ + com.google.protobuf.ByteString getGraphDef(); + + /** + *
+   * A summary was generated.
+   * 
+ * + * .tensorflow.Summary summary = 5; + * @return Whether the summary field is set. + */ + boolean hasSummary(); + /** + *
+   * A summary was generated.
+   * 
+ * + * .tensorflow.Summary summary = 5; + * @return The summary. + */ + org.tensorflow.proto.Summary getSummary(); + /** + *
+   * A summary was generated.
+   * 
+ * + * .tensorflow.Summary summary = 5; + */ + org.tensorflow.proto.SummaryOrBuilder getSummaryOrBuilder(); + + /** + *
+   * The user output a log message. This was theoretically used by the defunct
+   * tensorboard_logging module, which has since been removed; this field is
+   * now deprecated and should not be used.
+   * 
+ * + * .tensorflow.LogMessage log_message = 6 [deprecated = true]; + * @deprecated tensorflow.Event.log_message is deprecated. + * See tensorflow/core/util/event.proto;l=33 + * @return Whether the logMessage field is set. + */ + @java.lang.Deprecated boolean hasLogMessage(); + /** + *
+   * The user output a log message. This was theoretically used by the defunct
+   * tensorboard_logging module, which has since been removed; this field is
+   * now deprecated and should not be used.
+   * 
+ * + * .tensorflow.LogMessage log_message = 6 [deprecated = true]; + * @deprecated tensorflow.Event.log_message is deprecated. + * See tensorflow/core/util/event.proto;l=33 + * @return The logMessage. + */ + @java.lang.Deprecated org.tensorflow.proto.LogMessage getLogMessage(); + /** + *
+   * The user output a log message. This was theoretically used by the defunct
+   * tensorboard_logging module, which has since been removed; this field is
+   * now deprecated and should not be used.
+   * 
+ * + * .tensorflow.LogMessage log_message = 6 [deprecated = true]; + */ + @java.lang.Deprecated org.tensorflow.proto.LogMessageOrBuilder getLogMessageOrBuilder(); + + /** + *
+   * The state of the session which can be used for restarting after crashes.
+   * 
+ * + * .tensorflow.SessionLog session_log = 7; + * @return Whether the sessionLog field is set. + */ + boolean hasSessionLog(); + /** + *
+   * The state of the session which can be used for restarting after crashes.
+   * 
+ * + * .tensorflow.SessionLog session_log = 7; + * @return The sessionLog. + */ + org.tensorflow.proto.SessionLog getSessionLog(); + /** + *
+   * The state of the session which can be used for restarting after crashes.
+   * 
+ * + * .tensorflow.SessionLog session_log = 7; + */ + org.tensorflow.proto.SessionLogOrBuilder getSessionLogOrBuilder(); + + /** + *
+   * The metadata returned by running a session.run() call.
+   * 
+ * + * .tensorflow.TaggedRunMetadata tagged_run_metadata = 8; + * @return Whether the taggedRunMetadata field is set. + */ + boolean hasTaggedRunMetadata(); + /** + *
+   * The metadata returned by running a session.run() call.
+   * 
+ * + * .tensorflow.TaggedRunMetadata tagged_run_metadata = 8; + * @return The taggedRunMetadata. + */ + org.tensorflow.proto.TaggedRunMetadata getTaggedRunMetadata(); + /** + *
+   * The metadata returned by running a session.run() call.
+   * 
+ * + * .tensorflow.TaggedRunMetadata tagged_run_metadata = 8; + */ + org.tensorflow.proto.TaggedRunMetadataOrBuilder getTaggedRunMetadataOrBuilder(); + + /** + *
+   * An encoded version of a MetaGraphDef.
+   * 
+ * + * bytes meta_graph_def = 9; + * @return Whether the metaGraphDef field is set. + */ + boolean hasMetaGraphDef(); + /** + *
+   * An encoded version of a MetaGraphDef.
+   * 
+ * + * bytes meta_graph_def = 9; + * @return The metaGraphDef. + */ + com.google.protobuf.ByteString getMetaGraphDef(); + + /** + *
+   * Information of the source that writes the events, this is only logged in
+   * the very first event along with the `file_version` field.
+   * 
+ * + * .tensorflow.SourceMetadata source_metadata = 10; + * @return Whether the sourceMetadata field is set. + */ + boolean hasSourceMetadata(); + /** + *
+   * Information of the source that writes the events, this is only logged in
+   * the very first event along with the `file_version` field.
+   * 
+ * + * .tensorflow.SourceMetadata source_metadata = 10; + * @return The sourceMetadata. + */ + org.tensorflow.proto.SourceMetadata getSourceMetadata(); + /** + *
+   * Information of the source that writes the events, this is only logged in
+   * the very first event along with the `file_version` field.
+   * 
+ * + * .tensorflow.SourceMetadata source_metadata = 10; + */ + org.tensorflow.proto.SourceMetadataOrBuilder getSourceMetadataOrBuilder(); + + public org.tensorflow.proto.Event.WhatCase getWhatCase(); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/EventProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/EventProtos.java new file mode 100644 index 00000000000..d6e4f4e9898 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/EventProtos.java @@ -0,0 +1,176 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/util/event.proto + +package org.tensorflow.proto; + +public final class EventProtos { + private EventProtos() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_Event_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_Event_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_SourceMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_SourceMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_LogMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_LogMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_SessionLog_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_SessionLog_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_TaggedRunMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_TaggedRunMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_WatchdogConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_WatchdogConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_RequestedExitCode_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_RequestedExitCode_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_WorkerHeartbeatRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_WorkerHeartbeatRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_WorkerHeartbeatResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_WorkerHeartbeatResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n tensorflow/core/util/event.proto\022\ntens" + + "orflow\032\'tensorflow/core/framework/summar" + + "y.proto\"\364\002\n\005Event\022\021\n\twall_time\030\001 \001(\001\022\014\n\004" + + "step\030\002 \001(\003\022\026\n\014file_version\030\003 \001(\tH\000\022\023\n\tgr" + + "aph_def\030\004 \001(\014H\000\022&\n\007summary\030\005 \001(\0132\023.tenso" + + "rflow.SummaryH\000\0221\n\013log_message\030\006 \001(\0132\026.t" + + "ensorflow.LogMessageB\002\030\001H\000\022-\n\013session_lo" + + "g\030\007 \001(\0132\026.tensorflow.SessionLogH\000\022<\n\023tag" + + "ged_run_metadata\030\010 \001(\0132\035.tensorflow.Tagg" + + "edRunMetadataH\000\022\030\n\016meta_graph_def\030\t \001(\014H" + + "\000\0223\n\017source_metadata\030\n \001(\0132\032.tensorflow." + + "SourceMetadataB\006\n\004what\" \n\016SourceMetadata" + + "\022\016\n\006writer\030\001 \001(\t\"\241\001\n\nLogMessage\022+\n\005level" + + "\030\001 \001(\0162\034.tensorflow.LogMessage.Level\022\017\n\007" + + "message\030\002 \001(\t\"Q\n\005Level\022\013\n\007UNKNOWN\020\000\022\r\n\tD" + + "EBUGGING\020\n\022\010\n\004INFO\020\024\022\010\n\004WARN\020\036\022\t\n\005ERROR\020" + + "(\022\t\n\005FATAL\0202\032\002\030\001:\002\030\001\"\266\001\n\nSessionLog\0224\n\006s" + + "tatus\030\001 \001(\0162$.tensorflow.SessionLog.Sess" + + "ionStatus\022\027\n\017checkpoint_path\030\002 \001(\t\022\013\n\003ms" + + "g\030\003 \001(\t\"L\n\rSessionStatus\022\026\n\022STATUS_UNSPE" + + "CIFIED\020\000\022\t\n\005START\020\001\022\010\n\004STOP\020\002\022\016\n\nCHECKPO" + + "INT\020\003\"6\n\021TaggedRunMetadata\022\013\n\003tag\030\001 \001(\t\022" + + "\024\n\014run_metadata\030\002 \001(\014\"$\n\016WatchdogConfig\022" + + "\022\n\ntimeout_ms\030\001 \001(\003\"&\n\021RequestedExitCode" + + "\022\021\n\texit_code\030\001 \001(\005\"\266\001\n\026WorkerHeartbeatR" + + "equest\0225\n\rshutdown_mode\030\001 \001(\0162\036.tensorfl" + + "ow.WorkerShutdownMode\0223\n\017watchdog_config" + + "\030\002 \001(\0132\032.tensorflow.WatchdogConfig\0220\n\tex" + + "it_code\030\003 \001(\0132\035.tensorflow.RequestedExit" + + "Code\"\203\001\n\027WorkerHeartbeatResponse\022/\n\rheal" + + "th_status\030\001 \001(\0162\030.tensorflow.WorkerHealt" + + "h\022%\n\nworker_log\030\002 \003(\0132\021.tensorflow.Event" + + "\022\020\n\010hostname\030\003 \001(\t*[\n\014WorkerHealth\022\006\n\002OK" + + "\020\000\022\034\n\030RECEIVED_SHUTDOWN_SIGNAL\020\001\022\022\n\016INTE" + + "RNAL_ERROR\020\002\022\021\n\rSHUTTING_DOWN\020\003*k\n\022Worke" + + "rShutdownMode\022\013\n\007DEFAULT\020\000\022\022\n\016NOT_CONFIG" + + "URED\020\001\022\030\n\024WAIT_FOR_COORDINATOR\020\002\022\032\n\026SHUT" + + "DOWN_AFTER_TIMEOUT\020\003Bq\n\024org.tensorflow.p" + + "rotoB\013EventProtosP\001ZGgithub.com/tensorfl" + + "ow/tensorflow/tensorflow/go/core/util/ev" + + "ent_go_proto\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + org.tensorflow.proto.SummaryProtos.getDescriptor(), + }); + internal_static_tensorflow_Event_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_Event_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_Event_descriptor, + new java.lang.String[] { "WallTime", "Step", "FileVersion", "GraphDef", "Summary", "LogMessage", "SessionLog", "TaggedRunMetadata", "MetaGraphDef", "SourceMetadata", "What", }); + internal_static_tensorflow_SourceMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_tensorflow_SourceMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_SourceMetadata_descriptor, + new java.lang.String[] { "Writer", }); + internal_static_tensorflow_LogMessage_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_tensorflow_LogMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_LogMessage_descriptor, + new java.lang.String[] { "Level", "Message", }); + internal_static_tensorflow_SessionLog_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_tensorflow_SessionLog_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_SessionLog_descriptor, + new java.lang.String[] { "Status", "CheckpointPath", "Msg", }); + internal_static_tensorflow_TaggedRunMetadata_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_tensorflow_TaggedRunMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_TaggedRunMetadata_descriptor, + new java.lang.String[] { "Tag", "RunMetadata", }); + internal_static_tensorflow_WatchdogConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_tensorflow_WatchdogConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_WatchdogConfig_descriptor, + new java.lang.String[] { "TimeoutMs", }); + internal_static_tensorflow_RequestedExitCode_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_tensorflow_RequestedExitCode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_RequestedExitCode_descriptor, + new java.lang.String[] { "ExitCode", }); + internal_static_tensorflow_WorkerHeartbeatRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_tensorflow_WorkerHeartbeatRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_WorkerHeartbeatRequest_descriptor, + new java.lang.String[] { "ShutdownMode", "WatchdogConfig", "ExitCode", }); + internal_static_tensorflow_WorkerHeartbeatResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_tensorflow_WorkerHeartbeatResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_WorkerHeartbeatResponse_descriptor, + new java.lang.String[] { "HealthStatus", "WorkerLog", "Hostname", }); + org.tensorflow.proto.SummaryProtos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Example.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Example.java new file mode 100644 index 00000000000..914933575bb --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Example.java @@ -0,0 +1,583 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/example/example.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.Example} + */ +public final class Example extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.Example) + ExampleOrBuilder { +private static final long serialVersionUID = 0L; + // Use Example.newBuilder() to construct. + private Example(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Example() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Example(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ExampleProtos.internal_static_tensorflow_Example_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ExampleProtos.internal_static_tensorflow_Example_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Example.class, org.tensorflow.proto.Example.Builder.class); + } + + public static final int FEATURES_FIELD_NUMBER = 1; + private org.tensorflow.proto.Features features_; + /** + * .tensorflow.Features features = 1; + * @return Whether the features field is set. + */ + @java.lang.Override + public boolean hasFeatures() { + return features_ != null; + } + /** + * .tensorflow.Features features = 1; + * @return The features. + */ + @java.lang.Override + public org.tensorflow.proto.Features getFeatures() { + return features_ == null ? org.tensorflow.proto.Features.getDefaultInstance() : features_; + } + /** + * .tensorflow.Features features = 1; + */ + @java.lang.Override + public org.tensorflow.proto.FeaturesOrBuilder getFeaturesOrBuilder() { + return getFeatures(); + } + + 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 (features_ != null) { + output.writeMessage(1, getFeatures()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (features_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getFeatures()); + } + 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 org.tensorflow.proto.Example)) { + return super.equals(obj); + } + org.tensorflow.proto.Example other = (org.tensorflow.proto.Example) obj; + + if (hasFeatures() != other.hasFeatures()) return false; + if (hasFeatures()) { + if (!getFeatures() + .equals(other.getFeatures())) 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 (hasFeatures()) { + hash = (37 * hash) + FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getFeatures().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.Example parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Example parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Example parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Example parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Example parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Example parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Example parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Example 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 org.tensorflow.proto.Example parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Example 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 org.tensorflow.proto.Example parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Example 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(org.tensorflow.proto.Example prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.Example} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.Example) + org.tensorflow.proto.ExampleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ExampleProtos.internal_static_tensorflow_Example_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ExampleProtos.internal_static_tensorflow_Example_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Example.class, org.tensorflow.proto.Example.Builder.class); + } + + // Construct using org.tensorflow.proto.Example.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (featuresBuilder_ == null) { + features_ = null; + } else { + features_ = null; + featuresBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.ExampleProtos.internal_static_tensorflow_Example_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.Example getDefaultInstanceForType() { + return org.tensorflow.proto.Example.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.Example build() { + org.tensorflow.proto.Example result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.Example buildPartial() { + org.tensorflow.proto.Example result = new org.tensorflow.proto.Example(this); + if (featuresBuilder_ == null) { + result.features_ = features_; + } else { + result.features_ = featuresBuilder_.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 org.tensorflow.proto.Example) { + return mergeFrom((org.tensorflow.proto.Example)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.Example other) { + if (other == org.tensorflow.proto.Example.getDefaultInstance()) return this; + if (other.hasFeatures()) { + mergeFeatures(other.getFeatures()); + } + 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( + getFeaturesFieldBuilder().getBuilder(), + extensionRegistry); + + 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 org.tensorflow.proto.Features features_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Features, org.tensorflow.proto.Features.Builder, org.tensorflow.proto.FeaturesOrBuilder> featuresBuilder_; + /** + * .tensorflow.Features features = 1; + * @return Whether the features field is set. + */ + public boolean hasFeatures() { + return featuresBuilder_ != null || features_ != null; + } + /** + * .tensorflow.Features features = 1; + * @return The features. + */ + public org.tensorflow.proto.Features getFeatures() { + if (featuresBuilder_ == null) { + return features_ == null ? org.tensorflow.proto.Features.getDefaultInstance() : features_; + } else { + return featuresBuilder_.getMessage(); + } + } + /** + * .tensorflow.Features features = 1; + */ + public Builder setFeatures(org.tensorflow.proto.Features value) { + if (featuresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + features_ = value; + onChanged(); + } else { + featuresBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.Features features = 1; + */ + public Builder setFeatures( + org.tensorflow.proto.Features.Builder builderForValue) { + if (featuresBuilder_ == null) { + features_ = builderForValue.build(); + onChanged(); + } else { + featuresBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.Features features = 1; + */ + public Builder mergeFeatures(org.tensorflow.proto.Features value) { + if (featuresBuilder_ == null) { + if (features_ != null) { + features_ = + org.tensorflow.proto.Features.newBuilder(features_).mergeFrom(value).buildPartial(); + } else { + features_ = value; + } + onChanged(); + } else { + featuresBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.Features features = 1; + */ + public Builder clearFeatures() { + if (featuresBuilder_ == null) { + features_ = null; + onChanged(); + } else { + features_ = null; + featuresBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.Features features = 1; + */ + public org.tensorflow.proto.Features.Builder getFeaturesBuilder() { + + onChanged(); + return getFeaturesFieldBuilder().getBuilder(); + } + /** + * .tensorflow.Features features = 1; + */ + public org.tensorflow.proto.FeaturesOrBuilder getFeaturesOrBuilder() { + if (featuresBuilder_ != null) { + return featuresBuilder_.getMessageOrBuilder(); + } else { + return features_ == null ? + org.tensorflow.proto.Features.getDefaultInstance() : features_; + } + } + /** + * .tensorflow.Features features = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Features, org.tensorflow.proto.Features.Builder, org.tensorflow.proto.FeaturesOrBuilder> + getFeaturesFieldBuilder() { + if (featuresBuilder_ == null) { + featuresBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Features, org.tensorflow.proto.Features.Builder, org.tensorflow.proto.FeaturesOrBuilder>( + getFeatures(), + getParentForChildren(), + isClean()); + features_ = null; + } + return featuresBuilder_; + } + @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:tensorflow.Example) + } + + // @@protoc_insertion_point(class_scope:tensorflow.Example) + private static final org.tensorflow.proto.Example DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.Example(); + } + + public static org.tensorflow.proto.Example getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Example 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 org.tensorflow.proto.Example getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ExampleOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ExampleOrBuilder.java new file mode 100644 index 00000000000..d886f35527c --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ExampleOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/example/example.proto + +package org.tensorflow.proto; + +public interface ExampleOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.Example) + com.google.protobuf.MessageOrBuilder { + + /** + * .tensorflow.Features features = 1; + * @return Whether the features field is set. + */ + boolean hasFeatures(); + /** + * .tensorflow.Features features = 1; + * @return The features. + */ + org.tensorflow.proto.Features getFeatures(); + /** + * .tensorflow.Features features = 1; + */ + org.tensorflow.proto.FeaturesOrBuilder getFeaturesOrBuilder(); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ExampleParserConfiguration.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ExampleParserConfiguration.java new file mode 100644 index 00000000000..9a9e5a51d51 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ExampleParserConfiguration.java @@ -0,0 +1,684 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/example/example_parser_configuration.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.ExampleParserConfiguration} + */ +public final class ExampleParserConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.ExampleParserConfiguration) + ExampleParserConfigurationOrBuilder { +private static final long serialVersionUID = 0L; + // Use ExampleParserConfiguration.newBuilder() to construct. + private ExampleParserConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExampleParserConfiguration() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ExampleParserConfiguration(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ExampleParserConfigurationProtos.internal_static_tensorflow_ExampleParserConfiguration_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetFeatureMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ExampleParserConfigurationProtos.internal_static_tensorflow_ExampleParserConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ExampleParserConfiguration.class, org.tensorflow.proto.ExampleParserConfiguration.Builder.class); + } + + public static final int FEATURE_MAP_FIELD_NUMBER = 1; + private static final class FeatureMapDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, org.tensorflow.proto.FeatureConfiguration> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.tensorflow.proto.ExampleParserConfigurationProtos.internal_static_tensorflow_ExampleParserConfiguration_FeatureMapEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + org.tensorflow.proto.FeatureConfiguration.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, org.tensorflow.proto.FeatureConfiguration> featureMap_; + private com.google.protobuf.MapField + internalGetFeatureMap() { + if (featureMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FeatureMapDefaultEntryHolder.defaultEntry); + } + return featureMap_; + } + + public int getFeatureMapCount() { + return internalGetFeatureMap().getMap().size(); + } + /** + * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; + */ + + @java.lang.Override + public boolean containsFeatureMap( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetFeatureMap().getMap().containsKey(key); + } + /** + * Use {@link #getFeatureMapMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFeatureMap() { + return getFeatureMapMap(); + } + /** + * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; + */ + @java.lang.Override + + public java.util.Map getFeatureMapMap() { + return internalGetFeatureMap().getMap(); + } + /** + * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.FeatureConfiguration getFeatureMapOrDefault( + java.lang.String key, + org.tensorflow.proto.FeatureConfiguration defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFeatureMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.FeatureConfiguration getFeatureMapOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFeatureMap().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, + internalGetFeatureMap(), + FeatureMapDefaultEntryHolder.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 + : internalGetFeatureMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + featureMap__ = FeatureMapDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, featureMap__); + } + 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 org.tensorflow.proto.ExampleParserConfiguration)) { + return super.equals(obj); + } + org.tensorflow.proto.ExampleParserConfiguration other = (org.tensorflow.proto.ExampleParserConfiguration) obj; + + if (!internalGetFeatureMap().equals( + other.internalGetFeatureMap())) 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 (!internalGetFeatureMap().getMap().isEmpty()) { + hash = (37 * hash) + FEATURE_MAP_FIELD_NUMBER; + hash = (53 * hash) + internalGetFeatureMap().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.ExampleParserConfiguration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ExampleParserConfiguration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ExampleParserConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ExampleParserConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ExampleParserConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ExampleParserConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ExampleParserConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ExampleParserConfiguration 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 org.tensorflow.proto.ExampleParserConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ExampleParserConfiguration 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 org.tensorflow.proto.ExampleParserConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ExampleParserConfiguration 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(org.tensorflow.proto.ExampleParserConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.ExampleParserConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.ExampleParserConfiguration) + org.tensorflow.proto.ExampleParserConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ExampleParserConfigurationProtos.internal_static_tensorflow_ExampleParserConfiguration_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetFeatureMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableFeatureMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ExampleParserConfigurationProtos.internal_static_tensorflow_ExampleParserConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ExampleParserConfiguration.class, org.tensorflow.proto.ExampleParserConfiguration.Builder.class); + } + + // Construct using org.tensorflow.proto.ExampleParserConfiguration.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableFeatureMap().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.ExampleParserConfigurationProtos.internal_static_tensorflow_ExampleParserConfiguration_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.ExampleParserConfiguration getDefaultInstanceForType() { + return org.tensorflow.proto.ExampleParserConfiguration.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.ExampleParserConfiguration build() { + org.tensorflow.proto.ExampleParserConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.ExampleParserConfiguration buildPartial() { + org.tensorflow.proto.ExampleParserConfiguration result = new org.tensorflow.proto.ExampleParserConfiguration(this); + int from_bitField0_ = bitField0_; + result.featureMap_ = internalGetFeatureMap(); + result.featureMap_.makeImmutable(); + 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 org.tensorflow.proto.ExampleParserConfiguration) { + return mergeFrom((org.tensorflow.proto.ExampleParserConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.ExampleParserConfiguration other) { + if (other == org.tensorflow.proto.ExampleParserConfiguration.getDefaultInstance()) return this; + internalGetMutableFeatureMap().mergeFrom( + other.internalGetFeatureMap()); + 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 + featureMap__ = input.readMessage( + FeatureMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableFeatureMap().getMutableMap().put( + featureMap__.getKey(), featureMap__.getValue()); + 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.protobuf.MapField< + java.lang.String, org.tensorflow.proto.FeatureConfiguration> featureMap_; + private com.google.protobuf.MapField + internalGetFeatureMap() { + if (featureMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FeatureMapDefaultEntryHolder.defaultEntry); + } + return featureMap_; + } + private com.google.protobuf.MapField + internalGetMutableFeatureMap() { + onChanged();; + if (featureMap_ == null) { + featureMap_ = com.google.protobuf.MapField.newMapField( + FeatureMapDefaultEntryHolder.defaultEntry); + } + if (!featureMap_.isMutable()) { + featureMap_ = featureMap_.copy(); + } + return featureMap_; + } + + public int getFeatureMapCount() { + return internalGetFeatureMap().getMap().size(); + } + /** + * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; + */ + + @java.lang.Override + public boolean containsFeatureMap( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetFeatureMap().getMap().containsKey(key); + } + /** + * Use {@link #getFeatureMapMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFeatureMap() { + return getFeatureMapMap(); + } + /** + * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; + */ + @java.lang.Override + + public java.util.Map getFeatureMapMap() { + return internalGetFeatureMap().getMap(); + } + /** + * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.FeatureConfiguration getFeatureMapOrDefault( + java.lang.String key, + org.tensorflow.proto.FeatureConfiguration defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFeatureMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.FeatureConfiguration getFeatureMapOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFeatureMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFeatureMap() { + internalGetMutableFeatureMap().getMutableMap() + .clear(); + return this; + } + /** + * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; + */ + + public Builder removeFeatureMap( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableFeatureMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableFeatureMap() { + return internalGetMutableFeatureMap().getMutableMap(); + } + /** + * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; + */ + public Builder putFeatureMap( + java.lang.String key, + org.tensorflow.proto.FeatureConfiguration value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableFeatureMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; + */ + + public Builder putAllFeatureMap( + java.util.Map values) { + internalGetMutableFeatureMap().getMutableMap() + .putAll(values); + 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:tensorflow.ExampleParserConfiguration) + } + + // @@protoc_insertion_point(class_scope:tensorflow.ExampleParserConfiguration) + private static final org.tensorflow.proto.ExampleParserConfiguration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.ExampleParserConfiguration(); + } + + public static org.tensorflow.proto.ExampleParserConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExampleParserConfiguration 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 org.tensorflow.proto.ExampleParserConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ExampleParserConfigurationOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ExampleParserConfigurationOrBuilder.java new file mode 100644 index 00000000000..07a67ef3560 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ExampleParserConfigurationOrBuilder.java @@ -0,0 +1,45 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/example/example_parser_configuration.proto + +package org.tensorflow.proto; + +public interface ExampleParserConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.ExampleParserConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; + */ + int getFeatureMapCount(); + /** + * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; + */ + boolean containsFeatureMap( + java.lang.String key); + /** + * Use {@link #getFeatureMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getFeatureMap(); + /** + * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; + */ + java.util.Map + getFeatureMapMap(); + /** + * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; + */ + + /* nullable */ +org.tensorflow.proto.FeatureConfiguration getFeatureMapOrDefault( + java.lang.String key, + /* nullable */ +org.tensorflow.proto.FeatureConfiguration defaultValue); + /** + * map<string, .tensorflow.FeatureConfiguration> feature_map = 1; + */ + + org.tensorflow.proto.FeatureConfiguration getFeatureMapOrThrow( + java.lang.String key); +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/ExampleParserConfigurationProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ExampleParserConfigurationProtos.java similarity index 89% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/ExampleParserConfigurationProtos.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ExampleParserConfigurationProtos.java index 9bc45ea35c4..19c580bf65a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/ExampleParserConfigurationProtos.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ExampleParserConfigurationProtos.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/example/example_parser_configuration.proto -package org.tensorflow.proto.example; +package org.tensorflow.proto; public final class ExampleParserConfigurationProtos { private ExampleParserConfigurationProtos() {} @@ -70,19 +70,18 @@ public static void registerAllExtensions( "(\01326.tensorflow.ExampleParserConfigurati" + "on.FeatureMapEntry\032S\n\017FeatureMapEntry\022\013\n" + "\003key\030\001 \001(\t\022/\n\005value\030\002 \001(\0132 .tensorflow.F" + - "eatureConfiguration:\0028\001B\250\001\n\034org.tensorfl" + - "ow.proto.exampleB ExampleParserConfigura" + - "tionProtosP\001Zagithub.com/tensorflow/tens" + - "orflow/tensorflow/go/core/example/exampl" + - "e_parser_configuration_go_proto\370\001\001b\006prot" + - "o3" + "eatureConfiguration:\0028\001B\240\001\n\024org.tensorfl" + + "ow.protoB ExampleParserConfigurationProt" + + "osP\001Zagithub.com/tensorflow/tensorflow/t" + + "ensorflow/go/core/example/example_parser" + + "_configuration_go_proto\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.framework.TensorProtos.getDescriptor(), - org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(), - org.tensorflow.proto.framework.TypesProtos.getDescriptor(), + org.tensorflow.proto.TensorProtos.getDescriptor(), + org.tensorflow.proto.TensorShapeProtos.getDescriptor(), + org.tensorflow.proto.TypesProtos.getDescriptor(), }); internal_static_tensorflow_VarLenFeatureProto_descriptor = getDescriptor().getMessageTypes().get(0); @@ -114,9 +113,9 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_ExampleParserConfiguration_FeatureMapEntry_descriptor, new java.lang.String[] { "Key", "Value", }); - org.tensorflow.proto.framework.TensorProtos.getDescriptor(); - org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(); - org.tensorflow.proto.framework.TypesProtos.getDescriptor(); + org.tensorflow.proto.TensorProtos.getDescriptor(); + org.tensorflow.proto.TensorShapeProtos.getDescriptor(); + org.tensorflow.proto.TypesProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/ExampleProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ExampleProtos.java similarity index 86% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/ExampleProtos.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ExampleProtos.java index d5494a720c5..116f1ee7100 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/ExampleProtos.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ExampleProtos.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/example/example.proto -package org.tensorflow.proto.example; +package org.tensorflow.proto; public final class ExampleProtos { private ExampleProtos() {} @@ -39,15 +39,15 @@ public static void registerAllExtensions( "\024.tensorflow.Features\"i\n\017SequenceExample" + "\022%\n\007context\030\001 \001(\0132\024.tensorflow.Features\022" + "/\n\rfeature_lists\030\002 \001(\0132\030.tensorflow.Feat" + - "ureListsB\207\001\n\034org.tensorflow.proto.exampl" + - "eB\rExampleProtosP\001ZSgithub.com/tensorflo" + - "w/tensorflow/tensorflow/go/core/example/" + - "example_protos_go_proto\370\001\001b\006proto3" + "ureListsB\177\n\024org.tensorflow.protoB\rExampl" + + "eProtosP\001ZSgithub.com/tensorflow/tensorf" + + "low/tensorflow/go/core/example/example_p" + + "rotos_go_proto\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.example.FeatureProtos.getDescriptor(), + org.tensorflow.proto.FeatureProtos.getDescriptor(), }); internal_static_tensorflow_Example_descriptor = getDescriptor().getMessageTypes().get(0); @@ -61,7 +61,7 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_SequenceExample_descriptor, new java.lang.String[] { "Context", "FeatureLists", }); - org.tensorflow.proto.example.FeatureProtos.getDescriptor(); + org.tensorflow.proto.FeatureProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/Execution.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Execution.java similarity index 78% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/Execution.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Execution.java index 42d3a1d835a..0d61fd97501 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/Execution.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Execution.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug_event.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; /** *
@@ -12,7 +12,7 @@
  *
  * Protobuf type {@code tensorflow.Execution}
  */
-public  final class Execution extends
+public final class Execution extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.Execution)
     ExecutionOrBuilder {
@@ -43,175 +43,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private Execution(
-      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: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            opType_ = s;
-            break;
-          }
-          case 16: {
-
-            numOutputs_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            graphId_ = s;
-            break;
-          }
-          case 32: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              inputTensorIds_ = newLongList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            inputTensorIds_.addLong(input.readInt64());
-            break;
-          }
-          case 34: {
-            int length = input.readRawVarint32();
-            int limit = input.pushLimit(length);
-            if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
-              inputTensorIds_ = newLongList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            while (input.getBytesUntilLimit() > 0) {
-              inputTensorIds_.addLong(input.readInt64());
-            }
-            input.popLimit(limit);
-            break;
-          }
-          case 40: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              outputTensorIds_ = newLongList();
-              mutable_bitField0_ |= 0x00000002;
-            }
-            outputTensorIds_.addLong(input.readInt64());
-            break;
-          }
-          case 42: {
-            int length = input.readRawVarint32();
-            int limit = input.pushLimit(length);
-            if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
-              outputTensorIds_ = newLongList();
-              mutable_bitField0_ |= 0x00000002;
-            }
-            while (input.getBytesUntilLimit() > 0) {
-              outputTensorIds_.addLong(input.readInt64());
-            }
-            input.popLimit(limit);
-            break;
-          }
-          case 48: {
-            int rawValue = input.readEnum();
-
-            tensorDebugMode_ = rawValue;
-            break;
-          }
-          case 58: {
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              tensorProtos_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000004;
-            }
-            tensorProtos_.add(
-                input.readMessage(org.tensorflow.proto.framework.TensorProto.parser(), extensionRegistry));
-            break;
-          }
-          case 66: {
-            org.tensorflow.proto.util.CodeLocation.Builder subBuilder = null;
-            if (codeLocation_ != null) {
-              subBuilder = codeLocation_.toBuilder();
-            }
-            codeLocation_ = input.readMessage(org.tensorflow.proto.util.CodeLocation.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(codeLocation_);
-              codeLocation_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 72: {
-            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-              outputTensorDeviceIds_ = newIntList();
-              mutable_bitField0_ |= 0x00000008;
-            }
-            outputTensorDeviceIds_.addInt(input.readInt32());
-            break;
-          }
-          case 74: {
-            int length = input.readRawVarint32();
-            int limit = input.pushLimit(length);
-            if (!((mutable_bitField0_ & 0x00000008) != 0) && input.getBytesUntilLimit() > 0) {
-              outputTensorDeviceIds_ = newIntList();
-              mutable_bitField0_ |= 0x00000008;
-            }
-            while (input.getBytesUntilLimit() > 0) {
-              outputTensorDeviceIds_.addInt(input.readInt32());
-            }
-            input.popLimit(limit);
-            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)) {
-        inputTensorIds_.makeImmutable(); // C
-      }
-      if (((mutable_bitField0_ & 0x00000002) != 0)) {
-        outputTensorIds_.makeImmutable(); // C
-      }
-      if (((mutable_bitField0_ & 0x00000004) != 0)) {
-        tensorProtos_ = java.util.Collections.unmodifiableList(tensorProtos_);
-      }
-      if (((mutable_bitField0_ & 0x00000008) != 0)) {
-        outputTensorDeviceIds_.makeImmutable(); // C
-      }
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_Execution_descriptor;
+    return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_Execution_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_Execution_fieldAccessorTable
+    return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_Execution_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.util.Execution.class, org.tensorflow.proto.util.Execution.Builder.class);
+            org.tensorflow.proto.Execution.class, org.tensorflow.proto.Execution.Builder.class);
   }
 
   public static final int OP_TYPE_FIELD_NUMBER = 1;
@@ -223,7 +65,9 @@ private Execution(
    * 
* * string op_type = 1; + * @return The opType. */ + @java.lang.Override public java.lang.String getOpType() { java.lang.Object ref = opType_; if (ref instanceof java.lang.String) { @@ -243,7 +87,9 @@ public java.lang.String getOpType() { *
* * string op_type = 1; + * @return The bytes for opType. */ + @java.lang.Override public com.google.protobuf.ByteString getOpTypeBytes() { java.lang.Object ref = opType_; @@ -266,7 +112,9 @@ public java.lang.String getOpType() { *
* * int32 num_outputs = 2; + * @return The numOutputs. */ + @java.lang.Override public int getNumOutputs() { return numOutputs_; } @@ -280,7 +128,9 @@ public int getNumOutputs() { * * * string graph_id = 3; + * @return The graphId. */ + @java.lang.Override public java.lang.String getGraphId() { java.lang.Object ref = graphId_; if (ref instanceof java.lang.String) { @@ -300,7 +150,9 @@ public java.lang.String getGraphId() { * * * string graph_id = 3; + * @return The bytes for graphId. */ + @java.lang.Override public com.google.protobuf.ByteString getGraphIdBytes() { java.lang.Object ref = graphId_; @@ -323,7 +175,9 @@ public java.lang.String getGraphId() { * * * repeated int64 input_tensor_ids = 4; + * @return A list containing the inputTensorIds. */ + @java.lang.Override public java.util.List getInputTensorIdsList() { return inputTensorIds_; @@ -334,6 +188,7 @@ public java.lang.String getGraphId() { * * * repeated int64 input_tensor_ids = 4; + * @return The count of inputTensorIds. */ public int getInputTensorIdsCount() { return inputTensorIds_.size(); @@ -344,6 +199,8 @@ public int getInputTensorIdsCount() { * * * repeated int64 input_tensor_ids = 4; + * @param index The index of the element to return. + * @return The inputTensorIds at the given index. */ public long getInputTensorIds(int index) { return inputTensorIds_.getLong(index); @@ -359,7 +216,9 @@ public long getInputTensorIds(int index) { * * * repeated int64 output_tensor_ids = 5; + * @return A list containing the outputTensorIds. */ + @java.lang.Override public java.util.List getOutputTensorIdsList() { return outputTensorIds_; @@ -371,6 +230,7 @@ public long getInputTensorIds(int index) { * * * repeated int64 output_tensor_ids = 5; + * @return The count of outputTensorIds. */ public int getOutputTensorIdsCount() { return outputTensorIds_.size(); @@ -382,6 +242,8 @@ public int getOutputTensorIdsCount() { * * * repeated int64 output_tensor_ids = 5; + * @param index The index of the element to return. + * @return The outputTensorIds at the given index. */ public long getOutputTensorIds(int index) { return outputTensorIds_.getLong(index); @@ -396,8 +258,9 @@ public long getOutputTensorIds(int index) { * * * .tensorflow.TensorDebugMode tensor_debug_mode = 6; + * @return The enum numeric value on the wire for tensorDebugMode. */ - public int getTensorDebugModeValue() { + @java.lang.Override public int getTensorDebugModeValue() { return tensorDebugMode_; } /** @@ -406,15 +269,16 @@ public int getTensorDebugModeValue() { * * * .tensorflow.TensorDebugMode tensor_debug_mode = 6; + * @return The tensorDebugMode. */ - public org.tensorflow.proto.util.TensorDebugMode getTensorDebugMode() { + @java.lang.Override public org.tensorflow.proto.TensorDebugMode getTensorDebugMode() { @SuppressWarnings("deprecation") - org.tensorflow.proto.util.TensorDebugMode result = org.tensorflow.proto.util.TensorDebugMode.valueOf(tensorDebugMode_); - return result == null ? org.tensorflow.proto.util.TensorDebugMode.UNRECOGNIZED : result; + org.tensorflow.proto.TensorDebugMode result = org.tensorflow.proto.TensorDebugMode.valueOf(tensorDebugMode_); + return result == null ? org.tensorflow.proto.TensorDebugMode.UNRECOGNIZED : result; } public static final int TENSOR_PROTOS_FIELD_NUMBER = 7; - private java.util.List tensorProtos_; + private java.util.List tensorProtos_; /** *
    * Output Tensor values in the type described by `tensor_value_type`.
@@ -423,7 +287,8 @@ public org.tensorflow.proto.util.TensorDebugMode getTensorDebugMode() {
    *
    * repeated .tensorflow.TensorProto tensor_protos = 7;
    */
-  public java.util.List getTensorProtosList() {
+  @java.lang.Override
+  public java.util.List getTensorProtosList() {
     return tensorProtos_;
   }
   /**
@@ -434,7 +299,8 @@ public java.util.List getTensorProto
    *
    * repeated .tensorflow.TensorProto tensor_protos = 7;
    */
-  public java.util.List 
+  @java.lang.Override
+  public java.util.List 
       getTensorProtosOrBuilderList() {
     return tensorProtos_;
   }
@@ -446,6 +312,7 @@ public java.util.List getTensorProto
    *
    * repeated .tensorflow.TensorProto tensor_protos = 7;
    */
+  @java.lang.Override
   public int getTensorProtosCount() {
     return tensorProtos_.size();
   }
@@ -457,7 +324,8 @@ public int getTensorProtosCount() {
    *
    * repeated .tensorflow.TensorProto tensor_protos = 7;
    */
-  public org.tensorflow.proto.framework.TensorProto getTensorProtos(int index) {
+  @java.lang.Override
+  public org.tensorflow.proto.TensorProto getTensorProtos(int index) {
     return tensorProtos_.get(index);
   }
   /**
@@ -468,20 +336,23 @@ public org.tensorflow.proto.framework.TensorProto getTensorProtos(int index) {
    *
    * repeated .tensorflow.TensorProto tensor_protos = 7;
    */
-  public org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorProtosOrBuilder(
+  @java.lang.Override
+  public org.tensorflow.proto.TensorProtoOrBuilder getTensorProtosOrBuilder(
       int index) {
     return tensorProtos_.get(index);
   }
 
   public static final int CODE_LOCATION_FIELD_NUMBER = 8;
-  private org.tensorflow.proto.util.CodeLocation codeLocation_;
+  private org.tensorflow.proto.CodeLocation codeLocation_;
   /**
    * 
    * Stack trace of the eager execution.
    * 
* * .tensorflow.CodeLocation code_location = 8; + * @return Whether the codeLocation field is set. */ + @java.lang.Override public boolean hasCodeLocation() { return codeLocation_ != null; } @@ -491,9 +362,11 @@ public boolean hasCodeLocation() { *
* * .tensorflow.CodeLocation code_location = 8; + * @return The codeLocation. */ - public org.tensorflow.proto.util.CodeLocation getCodeLocation() { - return codeLocation_ == null ? org.tensorflow.proto.util.CodeLocation.getDefaultInstance() : codeLocation_; + @java.lang.Override + public org.tensorflow.proto.CodeLocation getCodeLocation() { + return codeLocation_ == null ? org.tensorflow.proto.CodeLocation.getDefaultInstance() : codeLocation_; } /** *
@@ -502,7 +375,8 @@ public org.tensorflow.proto.util.CodeLocation getCodeLocation() {
    *
    * .tensorflow.CodeLocation code_location = 8;
    */
-  public org.tensorflow.proto.util.CodeLocationOrBuilder getCodeLocationOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.CodeLocationOrBuilder getCodeLocationOrBuilder() {
     return getCodeLocation();
   }
 
@@ -516,7 +390,9 @@ public org.tensorflow.proto.util.CodeLocationOrBuilder getCodeLocationOrBuilder(
    * 
* * repeated int32 output_tensor_device_ids = 9; + * @return A list containing the outputTensorDeviceIds. */ + @java.lang.Override public java.util.List getOutputTensorDeviceIdsList() { return outputTensorDeviceIds_; @@ -529,6 +405,7 @@ public org.tensorflow.proto.util.CodeLocationOrBuilder getCodeLocationOrBuilder( * * * repeated int32 output_tensor_device_ids = 9; + * @return The count of outputTensorDeviceIds. */ public int getOutputTensorDeviceIdsCount() { return outputTensorDeviceIds_.size(); @@ -541,6 +418,8 @@ public int getOutputTensorDeviceIdsCount() { * * * repeated int32 output_tensor_device_ids = 9; + * @param index The index of the element to return. + * @return The outputTensorDeviceIds at the given index. */ public int getOutputTensorDeviceIds(int index) { return outputTensorDeviceIds_.getInt(index); @@ -562,13 +441,13 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (!getOpTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(opType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, opType_); } if (numOutputs_ != 0) { output.writeInt32(2, numOutputs_); } - if (!getGraphIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(graphId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, graphId_); } if (getInputTensorIdsList().size() > 0) { @@ -585,7 +464,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < outputTensorIds_.size(); i++) { output.writeInt64NoTag(outputTensorIds_.getLong(i)); } - if (tensorDebugMode_ != org.tensorflow.proto.util.TensorDebugMode.UNSPECIFIED.getNumber()) { + if (tensorDebugMode_ != org.tensorflow.proto.TensorDebugMode.UNSPECIFIED.getNumber()) { output.writeEnum(6, tensorDebugMode_); } for (int i = 0; i < tensorProtos_.size(); i++) { @@ -601,7 +480,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < outputTensorDeviceIds_.size(); i++) { output.writeInt32NoTag(outputTensorDeviceIds_.getInt(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -610,14 +489,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getOpTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(opType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, opType_); } if (numOutputs_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, numOutputs_); } - if (!getGraphIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(graphId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, graphId_); } { @@ -648,7 +527,7 @@ public int getSerializedSize() { } outputTensorIdsMemoizedSerializedSize = dataSize; } - if (tensorDebugMode_ != org.tensorflow.proto.util.TensorDebugMode.UNSPECIFIED.getNumber()) { + if (tensorDebugMode_ != org.tensorflow.proto.TensorDebugMode.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, tensorDebugMode_); } @@ -674,7 +553,7 @@ public int getSerializedSize() { } outputTensorDeviceIdsMemoizedSerializedSize = dataSize; } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -684,10 +563,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.util.Execution)) { + if (!(obj instanceof org.tensorflow.proto.Execution)) { return super.equals(obj); } - org.tensorflow.proto.util.Execution other = (org.tensorflow.proto.util.Execution) obj; + org.tensorflow.proto.Execution other = (org.tensorflow.proto.Execution) obj; if (!getOpType() .equals(other.getOpType())) return false; @@ -709,7 +588,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getOutputTensorDeviceIdsList() .equals(other.getOutputTensorDeviceIdsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -748,74 +627,74 @@ public int hashCode() { hash = (37 * hash) + OUTPUT_TENSOR_DEVICE_IDS_FIELD_NUMBER; hash = (53 * hash) + getOutputTensorDeviceIdsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.util.Execution parseFrom( + public static org.tensorflow.proto.Execution parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.Execution parseFrom( + public static org.tensorflow.proto.Execution parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.Execution parseFrom( + public static org.tensorflow.proto.Execution parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.Execution parseFrom( + public static org.tensorflow.proto.Execution parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.Execution parseFrom(byte[] data) + public static org.tensorflow.proto.Execution parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.Execution parseFrom( + public static org.tensorflow.proto.Execution parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.Execution parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.Execution parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.Execution parseFrom( + public static org.tensorflow.proto.Execution 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 org.tensorflow.proto.util.Execution parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.Execution parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.Execution parseDelimitedFrom( + public static org.tensorflow.proto.Execution 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 org.tensorflow.proto.util.Execution parseFrom( + public static org.tensorflow.proto.Execution parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.Execution parseFrom( + public static org.tensorflow.proto.Execution parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -828,7 +707,7 @@ public static org.tensorflow.proto.util.Execution parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.util.Execution prototype) { + public static Builder newBuilder(org.tensorflow.proto.Execution prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -855,35 +734,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.Execution) - org.tensorflow.proto.util.ExecutionOrBuilder { + org.tensorflow.proto.ExecutionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_Execution_descriptor; + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_Execution_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_Execution_fieldAccessorTable + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_Execution_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.util.Execution.class, org.tensorflow.proto.util.Execution.Builder.class); + org.tensorflow.proto.Execution.class, org.tensorflow.proto.Execution.Builder.class); } - // Construct using org.tensorflow.proto.util.Execution.newBuilder() + // Construct using org.tensorflow.proto.Execution.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTensorProtosFieldBuilder(); - } + } @java.lang.Override public Builder clear() { @@ -902,10 +775,11 @@ public Builder clear() { if (tensorProtosBuilder_ == null) { tensorProtos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); } else { + tensorProtos_ = null; tensorProtosBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000004); if (codeLocationBuilder_ == null) { codeLocation_ = null; } else { @@ -920,17 +794,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_Execution_descriptor; + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_Execution_descriptor; } @java.lang.Override - public org.tensorflow.proto.util.Execution getDefaultInstanceForType() { - return org.tensorflow.proto.util.Execution.getDefaultInstance(); + public org.tensorflow.proto.Execution getDefaultInstanceForType() { + return org.tensorflow.proto.Execution.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.util.Execution build() { - org.tensorflow.proto.util.Execution result = buildPartial(); + public org.tensorflow.proto.Execution build() { + org.tensorflow.proto.Execution result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -938,8 +812,8 @@ public org.tensorflow.proto.util.Execution build() { } @java.lang.Override - public org.tensorflow.proto.util.Execution buildPartial() { - org.tensorflow.proto.util.Execution result = new org.tensorflow.proto.util.Execution(this); + public org.tensorflow.proto.Execution buildPartial() { + org.tensorflow.proto.Execution result = new org.tensorflow.proto.Execution(this); int from_bitField0_ = bitField0_; result.opType_ = opType_; result.numOutputs_ = numOutputs_; @@ -1012,16 +886,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.util.Execution) { - return mergeFrom((org.tensorflow.proto.util.Execution)other); + if (other instanceof org.tensorflow.proto.Execution) { + return mergeFrom((org.tensorflow.proto.Execution)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.util.Execution other) { - if (other == org.tensorflow.proto.util.Execution.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.Execution other) { + if (other == org.tensorflow.proto.Execution.getDefaultInstance()) return this; if (!other.getOpType().isEmpty()) { opType_ = other.opType_; onChanged(); @@ -1095,7 +969,7 @@ public Builder mergeFrom(org.tensorflow.proto.util.Execution other) { } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1110,17 +984,118 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.util.Execution parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + opType_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + numOutputs_ = input.readInt32(); + + break; + } // case 16 + case 26: { + graphId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + long v = input.readInt64(); + ensureInputTensorIdsIsMutable(); + inputTensorIds_.addLong(v); + break; + } // case 32 + case 34: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureInputTensorIdsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + inputTensorIds_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 34 + case 40: { + long v = input.readInt64(); + ensureOutputTensorIdsIsMutable(); + outputTensorIds_.addLong(v); + break; + } // case 40 + case 42: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureOutputTensorIdsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + outputTensorIds_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 42 + case 48: { + tensorDebugMode_ = input.readEnum(); + + break; + } // case 48 + case 58: { + org.tensorflow.proto.TensorProto m = + input.readMessage( + org.tensorflow.proto.TensorProto.parser(), + extensionRegistry); + if (tensorProtosBuilder_ == null) { + ensureTensorProtosIsMutable(); + tensorProtos_.add(m); + } else { + tensorProtosBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: { + input.readMessage( + getCodeLocationFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 66 + case 72: { + int v = input.readInt32(); + ensureOutputTensorDeviceIdsIsMutable(); + outputTensorDeviceIds_.addInt(v); + break; + } // case 72 + case 74: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureOutputTensorDeviceIdsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + outputTensorDeviceIds_.addInt(input.readInt32()); + } + input.popLimit(limit); + 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) { - parsedMessage = (org.tensorflow.proto.util.Execution) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1133,6 +1108,7 @@ public Builder mergeFrom( * * * string op_type = 1; + * @return The opType. */ public java.lang.String getOpType() { java.lang.Object ref = opType_; @@ -1153,6 +1129,7 @@ public java.lang.String getOpType() { * * * string op_type = 1; + * @return The bytes for opType. */ public com.google.protobuf.ByteString getOpTypeBytes() { @@ -1174,6 +1151,8 @@ public java.lang.String getOpType() { * * * string op_type = 1; + * @param value The opType to set. + * @return This builder for chaining. */ public Builder setOpType( java.lang.String value) { @@ -1192,6 +1171,7 @@ public Builder setOpType( * * * string op_type = 1; + * @return This builder for chaining. */ public Builder clearOpType() { @@ -1206,6 +1186,8 @@ public Builder clearOpType() { * * * string op_type = 1; + * @param value The bytes for opType to set. + * @return This builder for chaining. */ public Builder setOpTypeBytes( com.google.protobuf.ByteString value) { @@ -1226,7 +1208,9 @@ public Builder setOpTypeBytes( * * * int32 num_outputs = 2; + * @return The numOutputs. */ + @java.lang.Override public int getNumOutputs() { return numOutputs_; } @@ -1236,6 +1220,8 @@ public int getNumOutputs() { * * * int32 num_outputs = 2; + * @param value The numOutputs to set. + * @return This builder for chaining. */ public Builder setNumOutputs(int value) { @@ -1249,6 +1235,7 @@ public Builder setNumOutputs(int value) { * * * int32 num_outputs = 2; + * @return This builder for chaining. */ public Builder clearNumOutputs() { @@ -1265,6 +1252,7 @@ public Builder clearNumOutputs() { * * * string graph_id = 3; + * @return The graphId. */ public java.lang.String getGraphId() { java.lang.Object ref = graphId_; @@ -1285,6 +1273,7 @@ public java.lang.String getGraphId() { * * * string graph_id = 3; + * @return The bytes for graphId. */ public com.google.protobuf.ByteString getGraphIdBytes() { @@ -1306,6 +1295,8 @@ public java.lang.String getGraphId() { * * * string graph_id = 3; + * @param value The graphId to set. + * @return This builder for chaining. */ public Builder setGraphId( java.lang.String value) { @@ -1324,6 +1315,7 @@ public Builder setGraphId( * * * string graph_id = 3; + * @return This builder for chaining. */ public Builder clearGraphId() { @@ -1338,6 +1330,8 @@ public Builder clearGraphId() { * * * string graph_id = 3; + * @param value The bytes for graphId to set. + * @return This builder for chaining. */ public Builder setGraphIdBytes( com.google.protobuf.ByteString value) { @@ -1364,6 +1358,7 @@ private void ensureInputTensorIdsIsMutable() { * * * repeated int64 input_tensor_ids = 4; + * @return A list containing the inputTensorIds. */ public java.util.List getInputTensorIdsList() { @@ -1376,6 +1371,7 @@ private void ensureInputTensorIdsIsMutable() { * * * repeated int64 input_tensor_ids = 4; + * @return The count of inputTensorIds. */ public int getInputTensorIdsCount() { return inputTensorIds_.size(); @@ -1386,6 +1382,8 @@ public int getInputTensorIdsCount() { * * * repeated int64 input_tensor_ids = 4; + * @param index The index of the element to return. + * @return The inputTensorIds at the given index. */ public long getInputTensorIds(int index) { return inputTensorIds_.getLong(index); @@ -1396,6 +1394,9 @@ public long getInputTensorIds(int index) { * * * repeated int64 input_tensor_ids = 4; + * @param index The index to set the value at. + * @param value The inputTensorIds to set. + * @return This builder for chaining. */ public Builder setInputTensorIds( int index, long value) { @@ -1410,6 +1411,8 @@ public Builder setInputTensorIds( * * * repeated int64 input_tensor_ids = 4; + * @param value The inputTensorIds to add. + * @return This builder for chaining. */ public Builder addInputTensorIds(long value) { ensureInputTensorIdsIsMutable(); @@ -1423,6 +1426,8 @@ public Builder addInputTensorIds(long value) { * * * repeated int64 input_tensor_ids = 4; + * @param values The inputTensorIds to add. + * @return This builder for chaining. */ public Builder addAllInputTensorIds( java.lang.Iterable values) { @@ -1438,6 +1443,7 @@ public Builder addAllInputTensorIds( * * * repeated int64 input_tensor_ids = 4; + * @return This builder for chaining. */ public Builder clearInputTensorIds() { inputTensorIds_ = emptyLongList(); @@ -1460,6 +1466,7 @@ private void ensureOutputTensorIdsIsMutable() { * * * repeated int64 output_tensor_ids = 5; + * @return A list containing the outputTensorIds. */ public java.util.List getOutputTensorIdsList() { @@ -1473,6 +1480,7 @@ private void ensureOutputTensorIdsIsMutable() { * * * repeated int64 output_tensor_ids = 5; + * @return The count of outputTensorIds. */ public int getOutputTensorIdsCount() { return outputTensorIds_.size(); @@ -1484,6 +1492,8 @@ public int getOutputTensorIdsCount() { * * * repeated int64 output_tensor_ids = 5; + * @param index The index of the element to return. + * @return The outputTensorIds at the given index. */ public long getOutputTensorIds(int index) { return outputTensorIds_.getLong(index); @@ -1495,6 +1505,9 @@ public long getOutputTensorIds(int index) { * * * repeated int64 output_tensor_ids = 5; + * @param index The index to set the value at. + * @param value The outputTensorIds to set. + * @return This builder for chaining. */ public Builder setOutputTensorIds( int index, long value) { @@ -1510,6 +1523,8 @@ public Builder setOutputTensorIds( * * * repeated int64 output_tensor_ids = 5; + * @param value The outputTensorIds to add. + * @return This builder for chaining. */ public Builder addOutputTensorIds(long value) { ensureOutputTensorIdsIsMutable(); @@ -1524,6 +1539,8 @@ public Builder addOutputTensorIds(long value) { * * * repeated int64 output_tensor_ids = 5; + * @param values The outputTensorIds to add. + * @return This builder for chaining. */ public Builder addAllOutputTensorIds( java.lang.Iterable values) { @@ -1540,6 +1557,7 @@ public Builder addAllOutputTensorIds( * * * repeated int64 output_tensor_ids = 5; + * @return This builder for chaining. */ public Builder clearOutputTensorIds() { outputTensorIds_ = emptyLongList(); @@ -1555,8 +1573,9 @@ public Builder clearOutputTensorIds() { * * * .tensorflow.TensorDebugMode tensor_debug_mode = 6; + * @return The enum numeric value on the wire for tensorDebugMode. */ - public int getTensorDebugModeValue() { + @java.lang.Override public int getTensorDebugModeValue() { return tensorDebugMode_; } /** @@ -1565,8 +1584,11 @@ public int getTensorDebugModeValue() { * * * .tensorflow.TensorDebugMode tensor_debug_mode = 6; + * @param value The enum numeric value on the wire for tensorDebugMode to set. + * @return This builder for chaining. */ public Builder setTensorDebugModeValue(int value) { + tensorDebugMode_ = value; onChanged(); return this; @@ -1577,11 +1599,13 @@ public Builder setTensorDebugModeValue(int value) { * * * .tensorflow.TensorDebugMode tensor_debug_mode = 6; + * @return The tensorDebugMode. */ - public org.tensorflow.proto.util.TensorDebugMode getTensorDebugMode() { + @java.lang.Override + public org.tensorflow.proto.TensorDebugMode getTensorDebugMode() { @SuppressWarnings("deprecation") - org.tensorflow.proto.util.TensorDebugMode result = org.tensorflow.proto.util.TensorDebugMode.valueOf(tensorDebugMode_); - return result == null ? org.tensorflow.proto.util.TensorDebugMode.UNRECOGNIZED : result; + org.tensorflow.proto.TensorDebugMode result = org.tensorflow.proto.TensorDebugMode.valueOf(tensorDebugMode_); + return result == null ? org.tensorflow.proto.TensorDebugMode.UNRECOGNIZED : result; } /** *
@@ -1589,8 +1613,10 @@ public org.tensorflow.proto.util.TensorDebugMode getTensorDebugMode() {
      * 
* * .tensorflow.TensorDebugMode tensor_debug_mode = 6; + * @param value The tensorDebugMode to set. + * @return This builder for chaining. */ - public Builder setTensorDebugMode(org.tensorflow.proto.util.TensorDebugMode value) { + public Builder setTensorDebugMode(org.tensorflow.proto.TensorDebugMode value) { if (value == null) { throw new NullPointerException(); } @@ -1605,6 +1631,7 @@ public Builder setTensorDebugMode(org.tensorflow.proto.util.TensorDebugMode valu * * * .tensorflow.TensorDebugMode tensor_debug_mode = 6; + * @return This builder for chaining. */ public Builder clearTensorDebugMode() { @@ -1613,17 +1640,17 @@ public Builder clearTensorDebugMode() { return this; } - private java.util.List tensorProtos_ = + private java.util.List tensorProtos_ = java.util.Collections.emptyList(); private void ensureTensorProtosIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - tensorProtos_ = new java.util.ArrayList(tensorProtos_); + tensorProtos_ = new java.util.ArrayList(tensorProtos_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder> tensorProtosBuilder_; + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> tensorProtosBuilder_; /** *
@@ -1633,7 +1660,7 @@ private void ensureTensorProtosIsMutable() {
      *
      * repeated .tensorflow.TensorProto tensor_protos = 7;
      */
-    public java.util.List getTensorProtosList() {
+    public java.util.List getTensorProtosList() {
       if (tensorProtosBuilder_ == null) {
         return java.util.Collections.unmodifiableList(tensorProtos_);
       } else {
@@ -1663,7 +1690,7 @@ public int getTensorProtosCount() {
      *
      * repeated .tensorflow.TensorProto tensor_protos = 7;
      */
-    public org.tensorflow.proto.framework.TensorProto getTensorProtos(int index) {
+    public org.tensorflow.proto.TensorProto getTensorProtos(int index) {
       if (tensorProtosBuilder_ == null) {
         return tensorProtos_.get(index);
       } else {
@@ -1679,7 +1706,7 @@ public org.tensorflow.proto.framework.TensorProto getTensorProtos(int index) {
      * repeated .tensorflow.TensorProto tensor_protos = 7;
      */
     public Builder setTensorProtos(
-        int index, org.tensorflow.proto.framework.TensorProto value) {
+        int index, org.tensorflow.proto.TensorProto value) {
       if (tensorProtosBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1701,7 +1728,7 @@ public Builder setTensorProtos(
      * repeated .tensorflow.TensorProto tensor_protos = 7;
      */
     public Builder setTensorProtos(
-        int index, org.tensorflow.proto.framework.TensorProto.Builder builderForValue) {
+        int index, org.tensorflow.proto.TensorProto.Builder builderForValue) {
       if (tensorProtosBuilder_ == null) {
         ensureTensorProtosIsMutable();
         tensorProtos_.set(index, builderForValue.build());
@@ -1719,7 +1746,7 @@ public Builder setTensorProtos(
      *
      * repeated .tensorflow.TensorProto tensor_protos = 7;
      */
-    public Builder addTensorProtos(org.tensorflow.proto.framework.TensorProto value) {
+    public Builder addTensorProtos(org.tensorflow.proto.TensorProto value) {
       if (tensorProtosBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1741,7 +1768,7 @@ public Builder addTensorProtos(org.tensorflow.proto.framework.TensorProto value)
      * repeated .tensorflow.TensorProto tensor_protos = 7;
      */
     public Builder addTensorProtos(
-        int index, org.tensorflow.proto.framework.TensorProto value) {
+        int index, org.tensorflow.proto.TensorProto value) {
       if (tensorProtosBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1763,7 +1790,7 @@ public Builder addTensorProtos(
      * repeated .tensorflow.TensorProto tensor_protos = 7;
      */
     public Builder addTensorProtos(
-        org.tensorflow.proto.framework.TensorProto.Builder builderForValue) {
+        org.tensorflow.proto.TensorProto.Builder builderForValue) {
       if (tensorProtosBuilder_ == null) {
         ensureTensorProtosIsMutable();
         tensorProtos_.add(builderForValue.build());
@@ -1782,7 +1809,7 @@ public Builder addTensorProtos(
      * repeated .tensorflow.TensorProto tensor_protos = 7;
      */
     public Builder addTensorProtos(
-        int index, org.tensorflow.proto.framework.TensorProto.Builder builderForValue) {
+        int index, org.tensorflow.proto.TensorProto.Builder builderForValue) {
       if (tensorProtosBuilder_ == null) {
         ensureTensorProtosIsMutable();
         tensorProtos_.add(index, builderForValue.build());
@@ -1801,7 +1828,7 @@ public Builder addTensorProtos(
      * repeated .tensorflow.TensorProto tensor_protos = 7;
      */
     public Builder addAllTensorProtos(
-        java.lang.Iterable values) {
+        java.lang.Iterable values) {
       if (tensorProtosBuilder_ == null) {
         ensureTensorProtosIsMutable();
         com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -1856,7 +1883,7 @@ public Builder removeTensorProtos(int index) {
      *
      * repeated .tensorflow.TensorProto tensor_protos = 7;
      */
-    public org.tensorflow.proto.framework.TensorProto.Builder getTensorProtosBuilder(
+    public org.tensorflow.proto.TensorProto.Builder getTensorProtosBuilder(
         int index) {
       return getTensorProtosFieldBuilder().getBuilder(index);
     }
@@ -1868,7 +1895,7 @@ public org.tensorflow.proto.framework.TensorProto.Builder getTensorProtosBuilder
      *
      * repeated .tensorflow.TensorProto tensor_protos = 7;
      */
-    public org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorProtosOrBuilder(
+    public org.tensorflow.proto.TensorProtoOrBuilder getTensorProtosOrBuilder(
         int index) {
       if (tensorProtosBuilder_ == null) {
         return tensorProtos_.get(index);  } else {
@@ -1883,7 +1910,7 @@ public org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorProtosOrBuil
      *
      * repeated .tensorflow.TensorProto tensor_protos = 7;
      */
-    public java.util.List 
+    public java.util.List 
          getTensorProtosOrBuilderList() {
       if (tensorProtosBuilder_ != null) {
         return tensorProtosBuilder_.getMessageOrBuilderList();
@@ -1899,9 +1926,9 @@ public org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorProtosOrBuil
      *
      * repeated .tensorflow.TensorProto tensor_protos = 7;
      */
-    public org.tensorflow.proto.framework.TensorProto.Builder addTensorProtosBuilder() {
+    public org.tensorflow.proto.TensorProto.Builder addTensorProtosBuilder() {
       return getTensorProtosFieldBuilder().addBuilder(
-          org.tensorflow.proto.framework.TensorProto.getDefaultInstance());
+          org.tensorflow.proto.TensorProto.getDefaultInstance());
     }
     /**
      * 
@@ -1911,10 +1938,10 @@ public org.tensorflow.proto.framework.TensorProto.Builder addTensorProtosBuilder
      *
      * repeated .tensorflow.TensorProto tensor_protos = 7;
      */
-    public org.tensorflow.proto.framework.TensorProto.Builder addTensorProtosBuilder(
+    public org.tensorflow.proto.TensorProto.Builder addTensorProtosBuilder(
         int index) {
       return getTensorProtosFieldBuilder().addBuilder(
-          index, org.tensorflow.proto.framework.TensorProto.getDefaultInstance());
+          index, org.tensorflow.proto.TensorProto.getDefaultInstance());
     }
     /**
      * 
@@ -1924,16 +1951,16 @@ public org.tensorflow.proto.framework.TensorProto.Builder addTensorProtosBuilder
      *
      * repeated .tensorflow.TensorProto tensor_protos = 7;
      */
-    public java.util.List 
+    public java.util.List 
          getTensorProtosBuilderList() {
       return getTensorProtosFieldBuilder().getBuilderList();
     }
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder> 
+        org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> 
         getTensorProtosFieldBuilder() {
       if (tensorProtosBuilder_ == null) {
         tensorProtosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder>(
+            org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder>(
                 tensorProtos_,
                 ((bitField0_ & 0x00000004) != 0),
                 getParentForChildren(),
@@ -1943,15 +1970,16 @@ public org.tensorflow.proto.framework.TensorProto.Builder addTensorProtosBuilder
       return tensorProtosBuilder_;
     }
 
-    private org.tensorflow.proto.util.CodeLocation codeLocation_;
+    private org.tensorflow.proto.CodeLocation codeLocation_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        org.tensorflow.proto.util.CodeLocation, org.tensorflow.proto.util.CodeLocation.Builder, org.tensorflow.proto.util.CodeLocationOrBuilder> codeLocationBuilder_;
+        org.tensorflow.proto.CodeLocation, org.tensorflow.proto.CodeLocation.Builder, org.tensorflow.proto.CodeLocationOrBuilder> codeLocationBuilder_;
     /**
      * 
      * Stack trace of the eager execution.
      * 
* * .tensorflow.CodeLocation code_location = 8; + * @return Whether the codeLocation field is set. */ public boolean hasCodeLocation() { return codeLocationBuilder_ != null || codeLocation_ != null; @@ -1962,10 +1990,11 @@ public boolean hasCodeLocation() { *
* * .tensorflow.CodeLocation code_location = 8; + * @return The codeLocation. */ - public org.tensorflow.proto.util.CodeLocation getCodeLocation() { + public org.tensorflow.proto.CodeLocation getCodeLocation() { if (codeLocationBuilder_ == null) { - return codeLocation_ == null ? org.tensorflow.proto.util.CodeLocation.getDefaultInstance() : codeLocation_; + return codeLocation_ == null ? org.tensorflow.proto.CodeLocation.getDefaultInstance() : codeLocation_; } else { return codeLocationBuilder_.getMessage(); } @@ -1977,7 +2006,7 @@ public org.tensorflow.proto.util.CodeLocation getCodeLocation() { * * .tensorflow.CodeLocation code_location = 8; */ - public Builder setCodeLocation(org.tensorflow.proto.util.CodeLocation value) { + public Builder setCodeLocation(org.tensorflow.proto.CodeLocation value) { if (codeLocationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1998,7 +2027,7 @@ public Builder setCodeLocation(org.tensorflow.proto.util.CodeLocation value) { * .tensorflow.CodeLocation code_location = 8; */ public Builder setCodeLocation( - org.tensorflow.proto.util.CodeLocation.Builder builderForValue) { + org.tensorflow.proto.CodeLocation.Builder builderForValue) { if (codeLocationBuilder_ == null) { codeLocation_ = builderForValue.build(); onChanged(); @@ -2015,11 +2044,11 @@ public Builder setCodeLocation( * * .tensorflow.CodeLocation code_location = 8; */ - public Builder mergeCodeLocation(org.tensorflow.proto.util.CodeLocation value) { + public Builder mergeCodeLocation(org.tensorflow.proto.CodeLocation value) { if (codeLocationBuilder_ == null) { if (codeLocation_ != null) { codeLocation_ = - org.tensorflow.proto.util.CodeLocation.newBuilder(codeLocation_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.CodeLocation.newBuilder(codeLocation_).mergeFrom(value).buildPartial(); } else { codeLocation_ = value; } @@ -2055,7 +2084,7 @@ public Builder clearCodeLocation() { * * .tensorflow.CodeLocation code_location = 8; */ - public org.tensorflow.proto.util.CodeLocation.Builder getCodeLocationBuilder() { + public org.tensorflow.proto.CodeLocation.Builder getCodeLocationBuilder() { onChanged(); return getCodeLocationFieldBuilder().getBuilder(); @@ -2067,12 +2096,12 @@ public org.tensorflow.proto.util.CodeLocation.Builder getCodeLocationBuilder() { * * .tensorflow.CodeLocation code_location = 8; */ - public org.tensorflow.proto.util.CodeLocationOrBuilder getCodeLocationOrBuilder() { + public org.tensorflow.proto.CodeLocationOrBuilder getCodeLocationOrBuilder() { if (codeLocationBuilder_ != null) { return codeLocationBuilder_.getMessageOrBuilder(); } else { return codeLocation_ == null ? - org.tensorflow.proto.util.CodeLocation.getDefaultInstance() : codeLocation_; + org.tensorflow.proto.CodeLocation.getDefaultInstance() : codeLocation_; } } /** @@ -2083,11 +2112,11 @@ public org.tensorflow.proto.util.CodeLocationOrBuilder getCodeLocationOrBuilder( * .tensorflow.CodeLocation code_location = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.CodeLocation, org.tensorflow.proto.util.CodeLocation.Builder, org.tensorflow.proto.util.CodeLocationOrBuilder> + org.tensorflow.proto.CodeLocation, org.tensorflow.proto.CodeLocation.Builder, org.tensorflow.proto.CodeLocationOrBuilder> getCodeLocationFieldBuilder() { if (codeLocationBuilder_ == null) { codeLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.CodeLocation, org.tensorflow.proto.util.CodeLocation.Builder, org.tensorflow.proto.util.CodeLocationOrBuilder>( + org.tensorflow.proto.CodeLocation, org.tensorflow.proto.CodeLocation.Builder, org.tensorflow.proto.CodeLocationOrBuilder>( getCodeLocation(), getParentForChildren(), isClean()); @@ -2111,6 +2140,7 @@ private void ensureOutputTensorDeviceIdsIsMutable() { *
* * repeated int32 output_tensor_device_ids = 9; + * @return A list containing the outputTensorDeviceIds. */ public java.util.List getOutputTensorDeviceIdsList() { @@ -2125,6 +2155,7 @@ private void ensureOutputTensorDeviceIdsIsMutable() { *
* * repeated int32 output_tensor_device_ids = 9; + * @return The count of outputTensorDeviceIds. */ public int getOutputTensorDeviceIdsCount() { return outputTensorDeviceIds_.size(); @@ -2137,6 +2168,8 @@ public int getOutputTensorDeviceIdsCount() { * * * repeated int32 output_tensor_device_ids = 9; + * @param index The index of the element to return. + * @return The outputTensorDeviceIds at the given index. */ public int getOutputTensorDeviceIds(int index) { return outputTensorDeviceIds_.getInt(index); @@ -2149,6 +2182,9 @@ public int getOutputTensorDeviceIds(int index) { * * * repeated int32 output_tensor_device_ids = 9; + * @param index The index to set the value at. + * @param value The outputTensorDeviceIds to set. + * @return This builder for chaining. */ public Builder setOutputTensorDeviceIds( int index, int value) { @@ -2165,6 +2201,8 @@ public Builder setOutputTensorDeviceIds( * * * repeated int32 output_tensor_device_ids = 9; + * @param value The outputTensorDeviceIds to add. + * @return This builder for chaining. */ public Builder addOutputTensorDeviceIds(int value) { ensureOutputTensorDeviceIdsIsMutable(); @@ -2180,6 +2218,8 @@ public Builder addOutputTensorDeviceIds(int value) { * * * repeated int32 output_tensor_device_ids = 9; + * @param values The outputTensorDeviceIds to add. + * @return This builder for chaining. */ public Builder addAllOutputTensorDeviceIds( java.lang.Iterable values) { @@ -2197,6 +2237,7 @@ public Builder addAllOutputTensorDeviceIds( * * * repeated int32 output_tensor_device_ids = 9; + * @return This builder for chaining. */ public Builder clearOutputTensorDeviceIds() { outputTensorDeviceIds_ = emptyIntList(); @@ -2221,12 +2262,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.Execution) - private static final org.tensorflow.proto.util.Execution DEFAULT_INSTANCE; + private static final org.tensorflow.proto.Execution DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.util.Execution(); + DEFAULT_INSTANCE = new org.tensorflow.proto.Execution(); } - public static org.tensorflow.proto.util.Execution getDefaultInstance() { + public static org.tensorflow.proto.Execution getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -2237,7 +2278,18 @@ public Execution parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Execution(input, extensionRegistry); + 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(); } }; @@ -2251,7 +2303,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.util.Execution getDefaultInstanceForType() { + public org.tensorflow.proto.Execution getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/ExecutionOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ExecutionOrBuilder.java similarity index 80% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/ExecutionOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ExecutionOrBuilder.java index c08db8762e5..e9cf43ad319 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/ExecutionOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ExecutionOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug_event.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; public interface ExecutionOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.Execution) @@ -14,6 +14,7 @@ public interface ExecutionOrBuilder extends * * * string op_type = 1; + * @return The opType. */ java.lang.String getOpType(); /** @@ -23,6 +24,7 @@ public interface ExecutionOrBuilder extends * * * string op_type = 1; + * @return The bytes for opType. */ com.google.protobuf.ByteString getOpTypeBytes(); @@ -33,6 +35,7 @@ public interface ExecutionOrBuilder extends * * * int32 num_outputs = 2; + * @return The numOutputs. */ int getNumOutputs(); @@ -43,6 +46,7 @@ public interface ExecutionOrBuilder extends * * * string graph_id = 3; + * @return The graphId. */ java.lang.String getGraphId(); /** @@ -52,6 +56,7 @@ public interface ExecutionOrBuilder extends * * * string graph_id = 3; + * @return The bytes for graphId. */ com.google.protobuf.ByteString getGraphIdBytes(); @@ -62,6 +67,7 @@ public interface ExecutionOrBuilder extends * * * repeated int64 input_tensor_ids = 4; + * @return A list containing the inputTensorIds. */ java.util.List getInputTensorIdsList(); /** @@ -70,6 +76,7 @@ public interface ExecutionOrBuilder extends * * * repeated int64 input_tensor_ids = 4; + * @return The count of inputTensorIds. */ int getInputTensorIdsCount(); /** @@ -78,6 +85,8 @@ public interface ExecutionOrBuilder extends * * * repeated int64 input_tensor_ids = 4; + * @param index The index of the element to return. + * @return The inputTensorIds at the given index. */ long getInputTensorIds(int index); @@ -88,6 +97,7 @@ public interface ExecutionOrBuilder extends * * * repeated int64 output_tensor_ids = 5; + * @return A list containing the outputTensorIds. */ java.util.List getOutputTensorIdsList(); /** @@ -97,6 +107,7 @@ public interface ExecutionOrBuilder extends * * * repeated int64 output_tensor_ids = 5; + * @return The count of outputTensorIds. */ int getOutputTensorIdsCount(); /** @@ -106,6 +117,8 @@ public interface ExecutionOrBuilder extends * * * repeated int64 output_tensor_ids = 5; + * @param index The index of the element to return. + * @return The outputTensorIds at the given index. */ long getOutputTensorIds(int index); @@ -115,6 +128,7 @@ public interface ExecutionOrBuilder extends * * * .tensorflow.TensorDebugMode tensor_debug_mode = 6; + * @return The enum numeric value on the wire for tensorDebugMode. */ int getTensorDebugModeValue(); /** @@ -123,8 +137,9 @@ public interface ExecutionOrBuilder extends * * * .tensorflow.TensorDebugMode tensor_debug_mode = 6; + * @return The tensorDebugMode. */ - org.tensorflow.proto.util.TensorDebugMode getTensorDebugMode(); + org.tensorflow.proto.TensorDebugMode getTensorDebugMode(); /** *
@@ -134,7 +149,7 @@ public interface ExecutionOrBuilder extends
    *
    * repeated .tensorflow.TensorProto tensor_protos = 7;
    */
-  java.util.List 
+  java.util.List 
       getTensorProtosList();
   /**
    * 
@@ -144,7 +159,7 @@ public interface ExecutionOrBuilder extends
    *
    * repeated .tensorflow.TensorProto tensor_protos = 7;
    */
-  org.tensorflow.proto.framework.TensorProto getTensorProtos(int index);
+  org.tensorflow.proto.TensorProto getTensorProtos(int index);
   /**
    * 
    * Output Tensor values in the type described by `tensor_value_type`.
@@ -162,7 +177,7 @@ public interface ExecutionOrBuilder extends
    *
    * repeated .tensorflow.TensorProto tensor_protos = 7;
    */
-  java.util.List 
+  java.util.List 
       getTensorProtosOrBuilderList();
   /**
    * 
@@ -172,7 +187,7 @@ public interface ExecutionOrBuilder extends
    *
    * repeated .tensorflow.TensorProto tensor_protos = 7;
    */
-  org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorProtosOrBuilder(
+  org.tensorflow.proto.TensorProtoOrBuilder getTensorProtosOrBuilder(
       int index);
 
   /**
@@ -181,6 +196,7 @@ org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorProtosOrBuilder(
    * 
* * .tensorflow.CodeLocation code_location = 8; + * @return Whether the codeLocation field is set. */ boolean hasCodeLocation(); /** @@ -189,8 +205,9 @@ org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorProtosOrBuilder( *
* * .tensorflow.CodeLocation code_location = 8; + * @return The codeLocation. */ - org.tensorflow.proto.util.CodeLocation getCodeLocation(); + org.tensorflow.proto.CodeLocation getCodeLocation(); /** *
    * Stack trace of the eager execution.
@@ -198,7 +215,7 @@ org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorProtosOrBuilder(
    *
    * .tensorflow.CodeLocation code_location = 8;
    */
-  org.tensorflow.proto.util.CodeLocationOrBuilder getCodeLocationOrBuilder();
+  org.tensorflow.proto.CodeLocationOrBuilder getCodeLocationOrBuilder();
 
   /**
    * 
@@ -208,6 +225,7 @@ org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorProtosOrBuilder(
    * 
* * repeated int32 output_tensor_device_ids = 9; + * @return A list containing the outputTensorDeviceIds. */ java.util.List getOutputTensorDeviceIdsList(); /** @@ -218,6 +236,7 @@ org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorProtosOrBuilder( *
* * repeated int32 output_tensor_device_ids = 9; + * @return The count of outputTensorDeviceIds. */ int getOutputTensorDeviceIdsCount(); /** @@ -228,6 +247,8 @@ org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorProtosOrBuilder( *
* * repeated int32 output_tensor_device_ids = 9; + * @param index The index of the element to return. + * @return The outputTensorDeviceIds at the given index. */ int getOutputTensorDeviceIds(int index); } diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Feature.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Feature.java new file mode 100644 index 00000000000..7f22afd33dc --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Feature.java @@ -0,0 +1,1111 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/example/feature.proto + +package org.tensorflow.proto; + +/** + *
+ * Containers for non-sequential data.
+ * 
+ * + * Protobuf type {@code tensorflow.Feature} + */ +public final class Feature extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.Feature) + FeatureOrBuilder { +private static final long serialVersionUID = 0L; + // Use Feature.newBuilder() to construct. + private Feature(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Feature() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Feature(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_Feature_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_Feature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Feature.class, org.tensorflow.proto.Feature.Builder.class); + } + + private int kindCase_ = 0; + private java.lang.Object kind_; + public enum KindCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BYTES_LIST(1), + FLOAT_LIST(2), + INT64_LIST(3), + KIND_NOT_SET(0); + private final int value; + private KindCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static KindCase valueOf(int value) { + return forNumber(value); + } + + public static KindCase forNumber(int value) { + switch (value) { + case 1: return BYTES_LIST; + case 2: return FLOAT_LIST; + case 3: return INT64_LIST; + case 0: return KIND_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); + } + + public static final int BYTES_LIST_FIELD_NUMBER = 1; + /** + * .tensorflow.BytesList bytes_list = 1; + * @return Whether the bytesList field is set. + */ + @java.lang.Override + public boolean hasBytesList() { + return kindCase_ == 1; + } + /** + * .tensorflow.BytesList bytes_list = 1; + * @return The bytesList. + */ + @java.lang.Override + public org.tensorflow.proto.BytesList getBytesList() { + if (kindCase_ == 1) { + return (org.tensorflow.proto.BytesList) kind_; + } + return org.tensorflow.proto.BytesList.getDefaultInstance(); + } + /** + * .tensorflow.BytesList bytes_list = 1; + */ + @java.lang.Override + public org.tensorflow.proto.BytesListOrBuilder getBytesListOrBuilder() { + if (kindCase_ == 1) { + return (org.tensorflow.proto.BytesList) kind_; + } + return org.tensorflow.proto.BytesList.getDefaultInstance(); + } + + public static final int FLOAT_LIST_FIELD_NUMBER = 2; + /** + * .tensorflow.FloatList float_list = 2; + * @return Whether the floatList field is set. + */ + @java.lang.Override + public boolean hasFloatList() { + return kindCase_ == 2; + } + /** + * .tensorflow.FloatList float_list = 2; + * @return The floatList. + */ + @java.lang.Override + public org.tensorflow.proto.FloatList getFloatList() { + if (kindCase_ == 2) { + return (org.tensorflow.proto.FloatList) kind_; + } + return org.tensorflow.proto.FloatList.getDefaultInstance(); + } + /** + * .tensorflow.FloatList float_list = 2; + */ + @java.lang.Override + public org.tensorflow.proto.FloatListOrBuilder getFloatListOrBuilder() { + if (kindCase_ == 2) { + return (org.tensorflow.proto.FloatList) kind_; + } + return org.tensorflow.proto.FloatList.getDefaultInstance(); + } + + public static final int INT64_LIST_FIELD_NUMBER = 3; + /** + * .tensorflow.Int64List int64_list = 3; + * @return Whether the int64List field is set. + */ + @java.lang.Override + public boolean hasInt64List() { + return kindCase_ == 3; + } + /** + * .tensorflow.Int64List int64_list = 3; + * @return The int64List. + */ + @java.lang.Override + public org.tensorflow.proto.Int64List getInt64List() { + if (kindCase_ == 3) { + return (org.tensorflow.proto.Int64List) kind_; + } + return org.tensorflow.proto.Int64List.getDefaultInstance(); + } + /** + * .tensorflow.Int64List int64_list = 3; + */ + @java.lang.Override + public org.tensorflow.proto.Int64ListOrBuilder getInt64ListOrBuilder() { + if (kindCase_ == 3) { + return (org.tensorflow.proto.Int64List) kind_; + } + return org.tensorflow.proto.Int64List.getDefaultInstance(); + } + + 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 (kindCase_ == 1) { + output.writeMessage(1, (org.tensorflow.proto.BytesList) kind_); + } + if (kindCase_ == 2) { + output.writeMessage(2, (org.tensorflow.proto.FloatList) kind_); + } + if (kindCase_ == 3) { + output.writeMessage(3, (org.tensorflow.proto.Int64List) kind_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (kindCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (org.tensorflow.proto.BytesList) kind_); + } + if (kindCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (org.tensorflow.proto.FloatList) kind_); + } + if (kindCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (org.tensorflow.proto.Int64List) kind_); + } + 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 org.tensorflow.proto.Feature)) { + return super.equals(obj); + } + org.tensorflow.proto.Feature other = (org.tensorflow.proto.Feature) obj; + + if (!getKindCase().equals(other.getKindCase())) return false; + switch (kindCase_) { + case 1: + if (!getBytesList() + .equals(other.getBytesList())) return false; + break; + case 2: + if (!getFloatList() + .equals(other.getFloatList())) return false; + break; + case 3: + if (!getInt64List() + .equals(other.getInt64List())) return false; + break; + case 0: + default: + } + 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(); + switch (kindCase_) { + case 1: + hash = (37 * hash) + BYTES_LIST_FIELD_NUMBER; + hash = (53 * hash) + getBytesList().hashCode(); + break; + case 2: + hash = (37 * hash) + FLOAT_LIST_FIELD_NUMBER; + hash = (53 * hash) + getFloatList().hashCode(); + break; + case 3: + hash = (37 * hash) + INT64_LIST_FIELD_NUMBER; + hash = (53 * hash) + getInt64List().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.Feature parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Feature parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Feature parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Feature parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Feature parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Feature parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Feature parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Feature 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 org.tensorflow.proto.Feature parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Feature 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 org.tensorflow.proto.Feature parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Feature 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(org.tensorflow.proto.Feature 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; + } + /** + *
+   * Containers for non-sequential data.
+   * 
+ * + * Protobuf type {@code tensorflow.Feature} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.Feature) + org.tensorflow.proto.FeatureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_Feature_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_Feature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Feature.class, org.tensorflow.proto.Feature.Builder.class); + } + + // Construct using org.tensorflow.proto.Feature.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (bytesListBuilder_ != null) { + bytesListBuilder_.clear(); + } + if (floatListBuilder_ != null) { + floatListBuilder_.clear(); + } + if (int64ListBuilder_ != null) { + int64ListBuilder_.clear(); + } + kindCase_ = 0; + kind_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_Feature_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.Feature getDefaultInstanceForType() { + return org.tensorflow.proto.Feature.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.Feature build() { + org.tensorflow.proto.Feature result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.Feature buildPartial() { + org.tensorflow.proto.Feature result = new org.tensorflow.proto.Feature(this); + if (kindCase_ == 1) { + if (bytesListBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = bytesListBuilder_.build(); + } + } + if (kindCase_ == 2) { + if (floatListBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = floatListBuilder_.build(); + } + } + if (kindCase_ == 3) { + if (int64ListBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = int64ListBuilder_.build(); + } + } + result.kindCase_ = kindCase_; + 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 org.tensorflow.proto.Feature) { + return mergeFrom((org.tensorflow.proto.Feature)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.Feature other) { + if (other == org.tensorflow.proto.Feature.getDefaultInstance()) return this; + switch (other.getKindCase()) { + case BYTES_LIST: { + mergeBytesList(other.getBytesList()); + break; + } + case FLOAT_LIST: { + mergeFloatList(other.getFloatList()); + break; + } + case INT64_LIST: { + mergeInt64List(other.getInt64List()); + break; + } + case KIND_NOT_SET: { + break; + } + } + 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( + getBytesListFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getFloatListFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getInt64ListFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 3; + break; + } // case 26 + 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 kindCase_ = 0; + private java.lang.Object kind_; + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); + } + + public Builder clearKind() { + kindCase_ = 0; + kind_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.BytesList, org.tensorflow.proto.BytesList.Builder, org.tensorflow.proto.BytesListOrBuilder> bytesListBuilder_; + /** + * .tensorflow.BytesList bytes_list = 1; + * @return Whether the bytesList field is set. + */ + @java.lang.Override + public boolean hasBytesList() { + return kindCase_ == 1; + } + /** + * .tensorflow.BytesList bytes_list = 1; + * @return The bytesList. + */ + @java.lang.Override + public org.tensorflow.proto.BytesList getBytesList() { + if (bytesListBuilder_ == null) { + if (kindCase_ == 1) { + return (org.tensorflow.proto.BytesList) kind_; + } + return org.tensorflow.proto.BytesList.getDefaultInstance(); + } else { + if (kindCase_ == 1) { + return bytesListBuilder_.getMessage(); + } + return org.tensorflow.proto.BytesList.getDefaultInstance(); + } + } + /** + * .tensorflow.BytesList bytes_list = 1; + */ + public Builder setBytesList(org.tensorflow.proto.BytesList value) { + if (bytesListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + bytesListBuilder_.setMessage(value); + } + kindCase_ = 1; + return this; + } + /** + * .tensorflow.BytesList bytes_list = 1; + */ + public Builder setBytesList( + org.tensorflow.proto.BytesList.Builder builderForValue) { + if (bytesListBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + bytesListBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 1; + return this; + } + /** + * .tensorflow.BytesList bytes_list = 1; + */ + public Builder mergeBytesList(org.tensorflow.proto.BytesList value) { + if (bytesListBuilder_ == null) { + if (kindCase_ == 1 && + kind_ != org.tensorflow.proto.BytesList.getDefaultInstance()) { + kind_ = org.tensorflow.proto.BytesList.newBuilder((org.tensorflow.proto.BytesList) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 1) { + bytesListBuilder_.mergeFrom(value); + } else { + bytesListBuilder_.setMessage(value); + } + } + kindCase_ = 1; + return this; + } + /** + * .tensorflow.BytesList bytes_list = 1; + */ + public Builder clearBytesList() { + if (bytesListBuilder_ == null) { + if (kindCase_ == 1) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 1) { + kindCase_ = 0; + kind_ = null; + } + bytesListBuilder_.clear(); + } + return this; + } + /** + * .tensorflow.BytesList bytes_list = 1; + */ + public org.tensorflow.proto.BytesList.Builder getBytesListBuilder() { + return getBytesListFieldBuilder().getBuilder(); + } + /** + * .tensorflow.BytesList bytes_list = 1; + */ + @java.lang.Override + public org.tensorflow.proto.BytesListOrBuilder getBytesListOrBuilder() { + if ((kindCase_ == 1) && (bytesListBuilder_ != null)) { + return bytesListBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 1) { + return (org.tensorflow.proto.BytesList) kind_; + } + return org.tensorflow.proto.BytesList.getDefaultInstance(); + } + } + /** + * .tensorflow.BytesList bytes_list = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.BytesList, org.tensorflow.proto.BytesList.Builder, org.tensorflow.proto.BytesListOrBuilder> + getBytesListFieldBuilder() { + if (bytesListBuilder_ == null) { + if (!(kindCase_ == 1)) { + kind_ = org.tensorflow.proto.BytesList.getDefaultInstance(); + } + bytesListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.BytesList, org.tensorflow.proto.BytesList.Builder, org.tensorflow.proto.BytesListOrBuilder>( + (org.tensorflow.proto.BytesList) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 1; + onChanged();; + return bytesListBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.FloatList, org.tensorflow.proto.FloatList.Builder, org.tensorflow.proto.FloatListOrBuilder> floatListBuilder_; + /** + * .tensorflow.FloatList float_list = 2; + * @return Whether the floatList field is set. + */ + @java.lang.Override + public boolean hasFloatList() { + return kindCase_ == 2; + } + /** + * .tensorflow.FloatList float_list = 2; + * @return The floatList. + */ + @java.lang.Override + public org.tensorflow.proto.FloatList getFloatList() { + if (floatListBuilder_ == null) { + if (kindCase_ == 2) { + return (org.tensorflow.proto.FloatList) kind_; + } + return org.tensorflow.proto.FloatList.getDefaultInstance(); + } else { + if (kindCase_ == 2) { + return floatListBuilder_.getMessage(); + } + return org.tensorflow.proto.FloatList.getDefaultInstance(); + } + } + /** + * .tensorflow.FloatList float_list = 2; + */ + public Builder setFloatList(org.tensorflow.proto.FloatList value) { + if (floatListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + floatListBuilder_.setMessage(value); + } + kindCase_ = 2; + return this; + } + /** + * .tensorflow.FloatList float_list = 2; + */ + public Builder setFloatList( + org.tensorflow.proto.FloatList.Builder builderForValue) { + if (floatListBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + floatListBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 2; + return this; + } + /** + * .tensorflow.FloatList float_list = 2; + */ + public Builder mergeFloatList(org.tensorflow.proto.FloatList value) { + if (floatListBuilder_ == null) { + if (kindCase_ == 2 && + kind_ != org.tensorflow.proto.FloatList.getDefaultInstance()) { + kind_ = org.tensorflow.proto.FloatList.newBuilder((org.tensorflow.proto.FloatList) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 2) { + floatListBuilder_.mergeFrom(value); + } else { + floatListBuilder_.setMessage(value); + } + } + kindCase_ = 2; + return this; + } + /** + * .tensorflow.FloatList float_list = 2; + */ + public Builder clearFloatList() { + if (floatListBuilder_ == null) { + if (kindCase_ == 2) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 2) { + kindCase_ = 0; + kind_ = null; + } + floatListBuilder_.clear(); + } + return this; + } + /** + * .tensorflow.FloatList float_list = 2; + */ + public org.tensorflow.proto.FloatList.Builder getFloatListBuilder() { + return getFloatListFieldBuilder().getBuilder(); + } + /** + * .tensorflow.FloatList float_list = 2; + */ + @java.lang.Override + public org.tensorflow.proto.FloatListOrBuilder getFloatListOrBuilder() { + if ((kindCase_ == 2) && (floatListBuilder_ != null)) { + return floatListBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 2) { + return (org.tensorflow.proto.FloatList) kind_; + } + return org.tensorflow.proto.FloatList.getDefaultInstance(); + } + } + /** + * .tensorflow.FloatList float_list = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.FloatList, org.tensorflow.proto.FloatList.Builder, org.tensorflow.proto.FloatListOrBuilder> + getFloatListFieldBuilder() { + if (floatListBuilder_ == null) { + if (!(kindCase_ == 2)) { + kind_ = org.tensorflow.proto.FloatList.getDefaultInstance(); + } + floatListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.FloatList, org.tensorflow.proto.FloatList.Builder, org.tensorflow.proto.FloatListOrBuilder>( + (org.tensorflow.proto.FloatList) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 2; + onChanged();; + return floatListBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Int64List, org.tensorflow.proto.Int64List.Builder, org.tensorflow.proto.Int64ListOrBuilder> int64ListBuilder_; + /** + * .tensorflow.Int64List int64_list = 3; + * @return Whether the int64List field is set. + */ + @java.lang.Override + public boolean hasInt64List() { + return kindCase_ == 3; + } + /** + * .tensorflow.Int64List int64_list = 3; + * @return The int64List. + */ + @java.lang.Override + public org.tensorflow.proto.Int64List getInt64List() { + if (int64ListBuilder_ == null) { + if (kindCase_ == 3) { + return (org.tensorflow.proto.Int64List) kind_; + } + return org.tensorflow.proto.Int64List.getDefaultInstance(); + } else { + if (kindCase_ == 3) { + return int64ListBuilder_.getMessage(); + } + return org.tensorflow.proto.Int64List.getDefaultInstance(); + } + } + /** + * .tensorflow.Int64List int64_list = 3; + */ + public Builder setInt64List(org.tensorflow.proto.Int64List value) { + if (int64ListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + int64ListBuilder_.setMessage(value); + } + kindCase_ = 3; + return this; + } + /** + * .tensorflow.Int64List int64_list = 3; + */ + public Builder setInt64List( + org.tensorflow.proto.Int64List.Builder builderForValue) { + if (int64ListBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + int64ListBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 3; + return this; + } + /** + * .tensorflow.Int64List int64_list = 3; + */ + public Builder mergeInt64List(org.tensorflow.proto.Int64List value) { + if (int64ListBuilder_ == null) { + if (kindCase_ == 3 && + kind_ != org.tensorflow.proto.Int64List.getDefaultInstance()) { + kind_ = org.tensorflow.proto.Int64List.newBuilder((org.tensorflow.proto.Int64List) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 3) { + int64ListBuilder_.mergeFrom(value); + } else { + int64ListBuilder_.setMessage(value); + } + } + kindCase_ = 3; + return this; + } + /** + * .tensorflow.Int64List int64_list = 3; + */ + public Builder clearInt64List() { + if (int64ListBuilder_ == null) { + if (kindCase_ == 3) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 3) { + kindCase_ = 0; + kind_ = null; + } + int64ListBuilder_.clear(); + } + return this; + } + /** + * .tensorflow.Int64List int64_list = 3; + */ + public org.tensorflow.proto.Int64List.Builder getInt64ListBuilder() { + return getInt64ListFieldBuilder().getBuilder(); + } + /** + * .tensorflow.Int64List int64_list = 3; + */ + @java.lang.Override + public org.tensorflow.proto.Int64ListOrBuilder getInt64ListOrBuilder() { + if ((kindCase_ == 3) && (int64ListBuilder_ != null)) { + return int64ListBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 3) { + return (org.tensorflow.proto.Int64List) kind_; + } + return org.tensorflow.proto.Int64List.getDefaultInstance(); + } + } + /** + * .tensorflow.Int64List int64_list = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Int64List, org.tensorflow.proto.Int64List.Builder, org.tensorflow.proto.Int64ListOrBuilder> + getInt64ListFieldBuilder() { + if (int64ListBuilder_ == null) { + if (!(kindCase_ == 3)) { + kind_ = org.tensorflow.proto.Int64List.getDefaultInstance(); + } + int64ListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Int64List, org.tensorflow.proto.Int64List.Builder, org.tensorflow.proto.Int64ListOrBuilder>( + (org.tensorflow.proto.Int64List) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 3; + onChanged();; + return int64ListBuilder_; + } + @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:tensorflow.Feature) + } + + // @@protoc_insertion_point(class_scope:tensorflow.Feature) + private static final org.tensorflow.proto.Feature DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.Feature(); + } + + public static org.tensorflow.proto.Feature getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feature 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 org.tensorflow.proto.Feature getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureConfiguration.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureConfiguration.java new file mode 100644 index 00000000000..38420c8b98e --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureConfiguration.java @@ -0,0 +1,892 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/example/example_parser_configuration.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.FeatureConfiguration} + */ +public final class FeatureConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.FeatureConfiguration) + FeatureConfigurationOrBuilder { +private static final long serialVersionUID = 0L; + // Use FeatureConfiguration.newBuilder() to construct. + private FeatureConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FeatureConfiguration() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FeatureConfiguration(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ExampleParserConfigurationProtos.internal_static_tensorflow_FeatureConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ExampleParserConfigurationProtos.internal_static_tensorflow_FeatureConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.FeatureConfiguration.class, org.tensorflow.proto.FeatureConfiguration.Builder.class); + } + + private int configCase_ = 0; + private java.lang.Object config_; + public enum ConfigCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FIXED_LEN_FEATURE(1), + VAR_LEN_FEATURE(2), + CONFIG_NOT_SET(0); + private final int value; + private ConfigCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConfigCase valueOf(int value) { + return forNumber(value); + } + + public static ConfigCase forNumber(int value) { + switch (value) { + case 1: return FIXED_LEN_FEATURE; + case 2: return VAR_LEN_FEATURE; + case 0: return CONFIG_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ConfigCase + getConfigCase() { + return ConfigCase.forNumber( + configCase_); + } + + public static final int FIXED_LEN_FEATURE_FIELD_NUMBER = 1; + /** + * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; + * @return Whether the fixedLenFeature field is set. + */ + @java.lang.Override + public boolean hasFixedLenFeature() { + return configCase_ == 1; + } + /** + * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; + * @return The fixedLenFeature. + */ + @java.lang.Override + public org.tensorflow.proto.FixedLenFeatureProto getFixedLenFeature() { + if (configCase_ == 1) { + return (org.tensorflow.proto.FixedLenFeatureProto) config_; + } + return org.tensorflow.proto.FixedLenFeatureProto.getDefaultInstance(); + } + /** + * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; + */ + @java.lang.Override + public org.tensorflow.proto.FixedLenFeatureProtoOrBuilder getFixedLenFeatureOrBuilder() { + if (configCase_ == 1) { + return (org.tensorflow.proto.FixedLenFeatureProto) config_; + } + return org.tensorflow.proto.FixedLenFeatureProto.getDefaultInstance(); + } + + public static final int VAR_LEN_FEATURE_FIELD_NUMBER = 2; + /** + * .tensorflow.VarLenFeatureProto var_len_feature = 2; + * @return Whether the varLenFeature field is set. + */ + @java.lang.Override + public boolean hasVarLenFeature() { + return configCase_ == 2; + } + /** + * .tensorflow.VarLenFeatureProto var_len_feature = 2; + * @return The varLenFeature. + */ + @java.lang.Override + public org.tensorflow.proto.VarLenFeatureProto getVarLenFeature() { + if (configCase_ == 2) { + return (org.tensorflow.proto.VarLenFeatureProto) config_; + } + return org.tensorflow.proto.VarLenFeatureProto.getDefaultInstance(); + } + /** + * .tensorflow.VarLenFeatureProto var_len_feature = 2; + */ + @java.lang.Override + public org.tensorflow.proto.VarLenFeatureProtoOrBuilder getVarLenFeatureOrBuilder() { + if (configCase_ == 2) { + return (org.tensorflow.proto.VarLenFeatureProto) config_; + } + return org.tensorflow.proto.VarLenFeatureProto.getDefaultInstance(); + } + + 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 (configCase_ == 1) { + output.writeMessage(1, (org.tensorflow.proto.FixedLenFeatureProto) config_); + } + if (configCase_ == 2) { + output.writeMessage(2, (org.tensorflow.proto.VarLenFeatureProto) config_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (configCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (org.tensorflow.proto.FixedLenFeatureProto) config_); + } + if (configCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (org.tensorflow.proto.VarLenFeatureProto) config_); + } + 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 org.tensorflow.proto.FeatureConfiguration)) { + return super.equals(obj); + } + org.tensorflow.proto.FeatureConfiguration other = (org.tensorflow.proto.FeatureConfiguration) obj; + + if (!getConfigCase().equals(other.getConfigCase())) return false; + switch (configCase_) { + case 1: + if (!getFixedLenFeature() + .equals(other.getFixedLenFeature())) return false; + break; + case 2: + if (!getVarLenFeature() + .equals(other.getVarLenFeature())) return false; + break; + case 0: + default: + } + 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(); + switch (configCase_) { + case 1: + hash = (37 * hash) + FIXED_LEN_FEATURE_FIELD_NUMBER; + hash = (53 * hash) + getFixedLenFeature().hashCode(); + break; + case 2: + hash = (37 * hash) + VAR_LEN_FEATURE_FIELD_NUMBER; + hash = (53 * hash) + getVarLenFeature().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.FeatureConfiguration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FeatureConfiguration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FeatureConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FeatureConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FeatureConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FeatureConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FeatureConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FeatureConfiguration 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 org.tensorflow.proto.FeatureConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FeatureConfiguration 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 org.tensorflow.proto.FeatureConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FeatureConfiguration 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(org.tensorflow.proto.FeatureConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.FeatureConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.FeatureConfiguration) + org.tensorflow.proto.FeatureConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ExampleParserConfigurationProtos.internal_static_tensorflow_FeatureConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ExampleParserConfigurationProtos.internal_static_tensorflow_FeatureConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.FeatureConfiguration.class, org.tensorflow.proto.FeatureConfiguration.Builder.class); + } + + // Construct using org.tensorflow.proto.FeatureConfiguration.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (fixedLenFeatureBuilder_ != null) { + fixedLenFeatureBuilder_.clear(); + } + if (varLenFeatureBuilder_ != null) { + varLenFeatureBuilder_.clear(); + } + configCase_ = 0; + config_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.ExampleParserConfigurationProtos.internal_static_tensorflow_FeatureConfiguration_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.FeatureConfiguration getDefaultInstanceForType() { + return org.tensorflow.proto.FeatureConfiguration.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.FeatureConfiguration build() { + org.tensorflow.proto.FeatureConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.FeatureConfiguration buildPartial() { + org.tensorflow.proto.FeatureConfiguration result = new org.tensorflow.proto.FeatureConfiguration(this); + if (configCase_ == 1) { + if (fixedLenFeatureBuilder_ == null) { + result.config_ = config_; + } else { + result.config_ = fixedLenFeatureBuilder_.build(); + } + } + if (configCase_ == 2) { + if (varLenFeatureBuilder_ == null) { + result.config_ = config_; + } else { + result.config_ = varLenFeatureBuilder_.build(); + } + } + result.configCase_ = configCase_; + 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 org.tensorflow.proto.FeatureConfiguration) { + return mergeFrom((org.tensorflow.proto.FeatureConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.FeatureConfiguration other) { + if (other == org.tensorflow.proto.FeatureConfiguration.getDefaultInstance()) return this; + switch (other.getConfigCase()) { + case FIXED_LEN_FEATURE: { + mergeFixedLenFeature(other.getFixedLenFeature()); + break; + } + case VAR_LEN_FEATURE: { + mergeVarLenFeature(other.getVarLenFeature()); + break; + } + case CONFIG_NOT_SET: { + break; + } + } + 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( + getFixedLenFeatureFieldBuilder().getBuilder(), + extensionRegistry); + configCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getVarLenFeatureFieldBuilder().getBuilder(), + extensionRegistry); + configCase_ = 2; + 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 configCase_ = 0; + private java.lang.Object config_; + public ConfigCase + getConfigCase() { + return ConfigCase.forNumber( + configCase_); + } + + public Builder clearConfig() { + configCase_ = 0; + config_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.FixedLenFeatureProto, org.tensorflow.proto.FixedLenFeatureProto.Builder, org.tensorflow.proto.FixedLenFeatureProtoOrBuilder> fixedLenFeatureBuilder_; + /** + * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; + * @return Whether the fixedLenFeature field is set. + */ + @java.lang.Override + public boolean hasFixedLenFeature() { + return configCase_ == 1; + } + /** + * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; + * @return The fixedLenFeature. + */ + @java.lang.Override + public org.tensorflow.proto.FixedLenFeatureProto getFixedLenFeature() { + if (fixedLenFeatureBuilder_ == null) { + if (configCase_ == 1) { + return (org.tensorflow.proto.FixedLenFeatureProto) config_; + } + return org.tensorflow.proto.FixedLenFeatureProto.getDefaultInstance(); + } else { + if (configCase_ == 1) { + return fixedLenFeatureBuilder_.getMessage(); + } + return org.tensorflow.proto.FixedLenFeatureProto.getDefaultInstance(); + } + } + /** + * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; + */ + public Builder setFixedLenFeature(org.tensorflow.proto.FixedLenFeatureProto value) { + if (fixedLenFeatureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + onChanged(); + } else { + fixedLenFeatureBuilder_.setMessage(value); + } + configCase_ = 1; + return this; + } + /** + * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; + */ + public Builder setFixedLenFeature( + org.tensorflow.proto.FixedLenFeatureProto.Builder builderForValue) { + if (fixedLenFeatureBuilder_ == null) { + config_ = builderForValue.build(); + onChanged(); + } else { + fixedLenFeatureBuilder_.setMessage(builderForValue.build()); + } + configCase_ = 1; + return this; + } + /** + * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; + */ + public Builder mergeFixedLenFeature(org.tensorflow.proto.FixedLenFeatureProto value) { + if (fixedLenFeatureBuilder_ == null) { + if (configCase_ == 1 && + config_ != org.tensorflow.proto.FixedLenFeatureProto.getDefaultInstance()) { + config_ = org.tensorflow.proto.FixedLenFeatureProto.newBuilder((org.tensorflow.proto.FixedLenFeatureProto) config_) + .mergeFrom(value).buildPartial(); + } else { + config_ = value; + } + onChanged(); + } else { + if (configCase_ == 1) { + fixedLenFeatureBuilder_.mergeFrom(value); + } else { + fixedLenFeatureBuilder_.setMessage(value); + } + } + configCase_ = 1; + return this; + } + /** + * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; + */ + public Builder clearFixedLenFeature() { + if (fixedLenFeatureBuilder_ == null) { + if (configCase_ == 1) { + configCase_ = 0; + config_ = null; + onChanged(); + } + } else { + if (configCase_ == 1) { + configCase_ = 0; + config_ = null; + } + fixedLenFeatureBuilder_.clear(); + } + return this; + } + /** + * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; + */ + public org.tensorflow.proto.FixedLenFeatureProto.Builder getFixedLenFeatureBuilder() { + return getFixedLenFeatureFieldBuilder().getBuilder(); + } + /** + * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; + */ + @java.lang.Override + public org.tensorflow.proto.FixedLenFeatureProtoOrBuilder getFixedLenFeatureOrBuilder() { + if ((configCase_ == 1) && (fixedLenFeatureBuilder_ != null)) { + return fixedLenFeatureBuilder_.getMessageOrBuilder(); + } else { + if (configCase_ == 1) { + return (org.tensorflow.proto.FixedLenFeatureProto) config_; + } + return org.tensorflow.proto.FixedLenFeatureProto.getDefaultInstance(); + } + } + /** + * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.FixedLenFeatureProto, org.tensorflow.proto.FixedLenFeatureProto.Builder, org.tensorflow.proto.FixedLenFeatureProtoOrBuilder> + getFixedLenFeatureFieldBuilder() { + if (fixedLenFeatureBuilder_ == null) { + if (!(configCase_ == 1)) { + config_ = org.tensorflow.proto.FixedLenFeatureProto.getDefaultInstance(); + } + fixedLenFeatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.FixedLenFeatureProto, org.tensorflow.proto.FixedLenFeatureProto.Builder, org.tensorflow.proto.FixedLenFeatureProtoOrBuilder>( + (org.tensorflow.proto.FixedLenFeatureProto) config_, + getParentForChildren(), + isClean()); + config_ = null; + } + configCase_ = 1; + onChanged();; + return fixedLenFeatureBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VarLenFeatureProto, org.tensorflow.proto.VarLenFeatureProto.Builder, org.tensorflow.proto.VarLenFeatureProtoOrBuilder> varLenFeatureBuilder_; + /** + * .tensorflow.VarLenFeatureProto var_len_feature = 2; + * @return Whether the varLenFeature field is set. + */ + @java.lang.Override + public boolean hasVarLenFeature() { + return configCase_ == 2; + } + /** + * .tensorflow.VarLenFeatureProto var_len_feature = 2; + * @return The varLenFeature. + */ + @java.lang.Override + public org.tensorflow.proto.VarLenFeatureProto getVarLenFeature() { + if (varLenFeatureBuilder_ == null) { + if (configCase_ == 2) { + return (org.tensorflow.proto.VarLenFeatureProto) config_; + } + return org.tensorflow.proto.VarLenFeatureProto.getDefaultInstance(); + } else { + if (configCase_ == 2) { + return varLenFeatureBuilder_.getMessage(); + } + return org.tensorflow.proto.VarLenFeatureProto.getDefaultInstance(); + } + } + /** + * .tensorflow.VarLenFeatureProto var_len_feature = 2; + */ + public Builder setVarLenFeature(org.tensorflow.proto.VarLenFeatureProto value) { + if (varLenFeatureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + onChanged(); + } else { + varLenFeatureBuilder_.setMessage(value); + } + configCase_ = 2; + return this; + } + /** + * .tensorflow.VarLenFeatureProto var_len_feature = 2; + */ + public Builder setVarLenFeature( + org.tensorflow.proto.VarLenFeatureProto.Builder builderForValue) { + if (varLenFeatureBuilder_ == null) { + config_ = builderForValue.build(); + onChanged(); + } else { + varLenFeatureBuilder_.setMessage(builderForValue.build()); + } + configCase_ = 2; + return this; + } + /** + * .tensorflow.VarLenFeatureProto var_len_feature = 2; + */ + public Builder mergeVarLenFeature(org.tensorflow.proto.VarLenFeatureProto value) { + if (varLenFeatureBuilder_ == null) { + if (configCase_ == 2 && + config_ != org.tensorflow.proto.VarLenFeatureProto.getDefaultInstance()) { + config_ = org.tensorflow.proto.VarLenFeatureProto.newBuilder((org.tensorflow.proto.VarLenFeatureProto) config_) + .mergeFrom(value).buildPartial(); + } else { + config_ = value; + } + onChanged(); + } else { + if (configCase_ == 2) { + varLenFeatureBuilder_.mergeFrom(value); + } else { + varLenFeatureBuilder_.setMessage(value); + } + } + configCase_ = 2; + return this; + } + /** + * .tensorflow.VarLenFeatureProto var_len_feature = 2; + */ + public Builder clearVarLenFeature() { + if (varLenFeatureBuilder_ == null) { + if (configCase_ == 2) { + configCase_ = 0; + config_ = null; + onChanged(); + } + } else { + if (configCase_ == 2) { + configCase_ = 0; + config_ = null; + } + varLenFeatureBuilder_.clear(); + } + return this; + } + /** + * .tensorflow.VarLenFeatureProto var_len_feature = 2; + */ + public org.tensorflow.proto.VarLenFeatureProto.Builder getVarLenFeatureBuilder() { + return getVarLenFeatureFieldBuilder().getBuilder(); + } + /** + * .tensorflow.VarLenFeatureProto var_len_feature = 2; + */ + @java.lang.Override + public org.tensorflow.proto.VarLenFeatureProtoOrBuilder getVarLenFeatureOrBuilder() { + if ((configCase_ == 2) && (varLenFeatureBuilder_ != null)) { + return varLenFeatureBuilder_.getMessageOrBuilder(); + } else { + if (configCase_ == 2) { + return (org.tensorflow.proto.VarLenFeatureProto) config_; + } + return org.tensorflow.proto.VarLenFeatureProto.getDefaultInstance(); + } + } + /** + * .tensorflow.VarLenFeatureProto var_len_feature = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VarLenFeatureProto, org.tensorflow.proto.VarLenFeatureProto.Builder, org.tensorflow.proto.VarLenFeatureProtoOrBuilder> + getVarLenFeatureFieldBuilder() { + if (varLenFeatureBuilder_ == null) { + if (!(configCase_ == 2)) { + config_ = org.tensorflow.proto.VarLenFeatureProto.getDefaultInstance(); + } + varLenFeatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VarLenFeatureProto, org.tensorflow.proto.VarLenFeatureProto.Builder, org.tensorflow.proto.VarLenFeatureProtoOrBuilder>( + (org.tensorflow.proto.VarLenFeatureProto) config_, + getParentForChildren(), + isClean()); + config_ = null; + } + configCase_ = 2; + onChanged();; + return varLenFeatureBuilder_; + } + @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:tensorflow.FeatureConfiguration) + } + + // @@protoc_insertion_point(class_scope:tensorflow.FeatureConfiguration) + private static final org.tensorflow.proto.FeatureConfiguration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.FeatureConfiguration(); + } + + public static org.tensorflow.proto.FeatureConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureConfiguration 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 org.tensorflow.proto.FeatureConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureConfigurationOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureConfigurationOrBuilder.java new file mode 100644 index 00000000000..f3e2b27d97e --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureConfigurationOrBuilder.java @@ -0,0 +1,41 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/example/example_parser_configuration.proto + +package org.tensorflow.proto; + +public interface FeatureConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.FeatureConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; + * @return Whether the fixedLenFeature field is set. + */ + boolean hasFixedLenFeature(); + /** + * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; + * @return The fixedLenFeature. + */ + org.tensorflow.proto.FixedLenFeatureProto getFixedLenFeature(); + /** + * .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; + */ + org.tensorflow.proto.FixedLenFeatureProtoOrBuilder getFixedLenFeatureOrBuilder(); + + /** + * .tensorflow.VarLenFeatureProto var_len_feature = 2; + * @return Whether the varLenFeature field is set. + */ + boolean hasVarLenFeature(); + /** + * .tensorflow.VarLenFeatureProto var_len_feature = 2; + * @return The varLenFeature. + */ + org.tensorflow.proto.VarLenFeatureProto getVarLenFeature(); + /** + * .tensorflow.VarLenFeatureProto var_len_feature = 2; + */ + org.tensorflow.proto.VarLenFeatureProtoOrBuilder getVarLenFeatureOrBuilder(); + + public org.tensorflow.proto.FeatureConfiguration.ConfigCase getConfigCase(); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureList.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureList.java new file mode 100644 index 00000000000..82149e169c5 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureList.java @@ -0,0 +1,768 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/example/feature.proto + +package org.tensorflow.proto; + +/** + *
+ * Containers for sequential data.
+ * A FeatureList contains lists of Features.  These may hold zero or more
+ * Feature values.
+ * FeatureLists are organized into categories by name.  The FeatureLists message
+ * contains the mapping from name to FeatureList.
+ * 
+ * + * Protobuf type {@code tensorflow.FeatureList} + */ +public final class FeatureList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.FeatureList) + FeatureListOrBuilder { +private static final long serialVersionUID = 0L; + // Use FeatureList.newBuilder() to construct. + private FeatureList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FeatureList() { + feature_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FeatureList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_FeatureList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_FeatureList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.FeatureList.class, org.tensorflow.proto.FeatureList.Builder.class); + } + + public static final int FEATURE_FIELD_NUMBER = 1; + private java.util.List feature_; + /** + * repeated .tensorflow.Feature feature = 1; + */ + @java.lang.Override + public java.util.List getFeatureList() { + return feature_; + } + /** + * repeated .tensorflow.Feature feature = 1; + */ + @java.lang.Override + public java.util.List + getFeatureOrBuilderList() { + return feature_; + } + /** + * repeated .tensorflow.Feature feature = 1; + */ + @java.lang.Override + public int getFeatureCount() { + return feature_.size(); + } + /** + * repeated .tensorflow.Feature feature = 1; + */ + @java.lang.Override + public org.tensorflow.proto.Feature getFeature(int index) { + return feature_.get(index); + } + /** + * repeated .tensorflow.Feature feature = 1; + */ + @java.lang.Override + public org.tensorflow.proto.FeatureOrBuilder getFeatureOrBuilder( + int index) { + return feature_.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 < feature_.size(); i++) { + output.writeMessage(1, feature_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < feature_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, feature_.get(i)); + } + 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 org.tensorflow.proto.FeatureList)) { + return super.equals(obj); + } + org.tensorflow.proto.FeatureList other = (org.tensorflow.proto.FeatureList) obj; + + if (!getFeatureList() + .equals(other.getFeatureList())) 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 (getFeatureCount() > 0) { + hash = (37 * hash) + FEATURE_FIELD_NUMBER; + hash = (53 * hash) + getFeatureList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.FeatureList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FeatureList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FeatureList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FeatureList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FeatureList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FeatureList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FeatureList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FeatureList 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 org.tensorflow.proto.FeatureList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FeatureList 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 org.tensorflow.proto.FeatureList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FeatureList 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(org.tensorflow.proto.FeatureList 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; + } + /** + *
+   * Containers for sequential data.
+   * A FeatureList contains lists of Features.  These may hold zero or more
+   * Feature values.
+   * FeatureLists are organized into categories by name.  The FeatureLists message
+   * contains the mapping from name to FeatureList.
+   * 
+ * + * Protobuf type {@code tensorflow.FeatureList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.FeatureList) + org.tensorflow.proto.FeatureListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_FeatureList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_FeatureList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.FeatureList.class, org.tensorflow.proto.FeatureList.Builder.class); + } + + // Construct using org.tensorflow.proto.FeatureList.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (featureBuilder_ == null) { + feature_ = java.util.Collections.emptyList(); + } else { + feature_ = null; + featureBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_FeatureList_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.FeatureList getDefaultInstanceForType() { + return org.tensorflow.proto.FeatureList.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.FeatureList build() { + org.tensorflow.proto.FeatureList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.FeatureList buildPartial() { + org.tensorflow.proto.FeatureList result = new org.tensorflow.proto.FeatureList(this); + int from_bitField0_ = bitField0_; + if (featureBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + feature_ = java.util.Collections.unmodifiableList(feature_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.feature_ = feature_; + } else { + result.feature_ = featureBuilder_.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 org.tensorflow.proto.FeatureList) { + return mergeFrom((org.tensorflow.proto.FeatureList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.FeatureList other) { + if (other == org.tensorflow.proto.FeatureList.getDefaultInstance()) return this; + if (featureBuilder_ == null) { + if (!other.feature_.isEmpty()) { + if (feature_.isEmpty()) { + feature_ = other.feature_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFeatureIsMutable(); + feature_.addAll(other.feature_); + } + onChanged(); + } + } else { + if (!other.feature_.isEmpty()) { + if (featureBuilder_.isEmpty()) { + featureBuilder_.dispose(); + featureBuilder_ = null; + feature_ = other.feature_; + bitField0_ = (bitField0_ & ~0x00000001); + featureBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFeatureFieldBuilder() : null; + } else { + featureBuilder_.addAllMessages(other.feature_); + } + } + } + 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: { + org.tensorflow.proto.Feature m = + input.readMessage( + org.tensorflow.proto.Feature.parser(), + extensionRegistry); + if (featureBuilder_ == null) { + ensureFeatureIsMutable(); + feature_.add(m); + } else { + featureBuilder_.addMessage(m); + } + 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.util.List feature_ = + java.util.Collections.emptyList(); + private void ensureFeatureIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + feature_ = new java.util.ArrayList(feature_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.Feature, org.tensorflow.proto.Feature.Builder, org.tensorflow.proto.FeatureOrBuilder> featureBuilder_; + + /** + * repeated .tensorflow.Feature feature = 1; + */ + public java.util.List getFeatureList() { + if (featureBuilder_ == null) { + return java.util.Collections.unmodifiableList(feature_); + } else { + return featureBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.Feature feature = 1; + */ + public int getFeatureCount() { + if (featureBuilder_ == null) { + return feature_.size(); + } else { + return featureBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.Feature feature = 1; + */ + public org.tensorflow.proto.Feature getFeature(int index) { + if (featureBuilder_ == null) { + return feature_.get(index); + } else { + return featureBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.Feature feature = 1; + */ + public Builder setFeature( + int index, org.tensorflow.proto.Feature value) { + if (featureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeatureIsMutable(); + feature_.set(index, value); + onChanged(); + } else { + featureBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.Feature feature = 1; + */ + public Builder setFeature( + int index, org.tensorflow.proto.Feature.Builder builderForValue) { + if (featureBuilder_ == null) { + ensureFeatureIsMutable(); + feature_.set(index, builderForValue.build()); + onChanged(); + } else { + featureBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.Feature feature = 1; + */ + public Builder addFeature(org.tensorflow.proto.Feature value) { + if (featureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeatureIsMutable(); + feature_.add(value); + onChanged(); + } else { + featureBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.Feature feature = 1; + */ + public Builder addFeature( + int index, org.tensorflow.proto.Feature value) { + if (featureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeatureIsMutable(); + feature_.add(index, value); + onChanged(); + } else { + featureBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.Feature feature = 1; + */ + public Builder addFeature( + org.tensorflow.proto.Feature.Builder builderForValue) { + if (featureBuilder_ == null) { + ensureFeatureIsMutable(); + feature_.add(builderForValue.build()); + onChanged(); + } else { + featureBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.Feature feature = 1; + */ + public Builder addFeature( + int index, org.tensorflow.proto.Feature.Builder builderForValue) { + if (featureBuilder_ == null) { + ensureFeatureIsMutable(); + feature_.add(index, builderForValue.build()); + onChanged(); + } else { + featureBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.Feature feature = 1; + */ + public Builder addAllFeature( + java.lang.Iterable values) { + if (featureBuilder_ == null) { + ensureFeatureIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, feature_); + onChanged(); + } else { + featureBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.Feature feature = 1; + */ + public Builder clearFeature() { + if (featureBuilder_ == null) { + feature_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + featureBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.Feature feature = 1; + */ + public Builder removeFeature(int index) { + if (featureBuilder_ == null) { + ensureFeatureIsMutable(); + feature_.remove(index); + onChanged(); + } else { + featureBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.Feature feature = 1; + */ + public org.tensorflow.proto.Feature.Builder getFeatureBuilder( + int index) { + return getFeatureFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.Feature feature = 1; + */ + public org.tensorflow.proto.FeatureOrBuilder getFeatureOrBuilder( + int index) { + if (featureBuilder_ == null) { + return feature_.get(index); } else { + return featureBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.Feature feature = 1; + */ + public java.util.List + getFeatureOrBuilderList() { + if (featureBuilder_ != null) { + return featureBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(feature_); + } + } + /** + * repeated .tensorflow.Feature feature = 1; + */ + public org.tensorflow.proto.Feature.Builder addFeatureBuilder() { + return getFeatureFieldBuilder().addBuilder( + org.tensorflow.proto.Feature.getDefaultInstance()); + } + /** + * repeated .tensorflow.Feature feature = 1; + */ + public org.tensorflow.proto.Feature.Builder addFeatureBuilder( + int index) { + return getFeatureFieldBuilder().addBuilder( + index, org.tensorflow.proto.Feature.getDefaultInstance()); + } + /** + * repeated .tensorflow.Feature feature = 1; + */ + public java.util.List + getFeatureBuilderList() { + return getFeatureFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.Feature, org.tensorflow.proto.Feature.Builder, org.tensorflow.proto.FeatureOrBuilder> + getFeatureFieldBuilder() { + if (featureBuilder_ == null) { + featureBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.Feature, org.tensorflow.proto.Feature.Builder, org.tensorflow.proto.FeatureOrBuilder>( + feature_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + feature_ = null; + } + return featureBuilder_; + } + @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:tensorflow.FeatureList) + } + + // @@protoc_insertion_point(class_scope:tensorflow.FeatureList) + private static final org.tensorflow.proto.FeatureList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.FeatureList(); + } + + public static org.tensorflow.proto.FeatureList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureList 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 org.tensorflow.proto.FeatureList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureListOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureListOrBuilder.java new file mode 100644 index 00000000000..240b746c891 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureListOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/example/feature.proto + +package org.tensorflow.proto; + +public interface FeatureListOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.FeatureList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .tensorflow.Feature feature = 1; + */ + java.util.List + getFeatureList(); + /** + * repeated .tensorflow.Feature feature = 1; + */ + org.tensorflow.proto.Feature getFeature(int index); + /** + * repeated .tensorflow.Feature feature = 1; + */ + int getFeatureCount(); + /** + * repeated .tensorflow.Feature feature = 1; + */ + java.util.List + getFeatureOrBuilderList(); + /** + * repeated .tensorflow.Feature feature = 1; + */ + org.tensorflow.proto.FeatureOrBuilder getFeatureOrBuilder( + int index); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureLists.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureLists.java new file mode 100644 index 00000000000..4130356123b --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureLists.java @@ -0,0 +1,728 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/example/feature.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.FeatureLists} + */ +public final class FeatureLists extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.FeatureLists) + FeatureListsOrBuilder { +private static final long serialVersionUID = 0L; + // Use FeatureLists.newBuilder() to construct. + private FeatureLists(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FeatureLists() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FeatureLists(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_FeatureLists_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetFeatureList(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_FeatureLists_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.FeatureLists.class, org.tensorflow.proto.FeatureLists.Builder.class); + } + + public static final int FEATURE_LIST_FIELD_NUMBER = 1; + private static final class FeatureListDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, org.tensorflow.proto.FeatureList> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_FeatureLists_FeatureListEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + org.tensorflow.proto.FeatureList.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, org.tensorflow.proto.FeatureList> featureList_; + private com.google.protobuf.MapField + internalGetFeatureList() { + if (featureList_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FeatureListDefaultEntryHolder.defaultEntry); + } + return featureList_; + } + + public int getFeatureListCount() { + return internalGetFeatureList().getMap().size(); + } + /** + *
+   * Map from feature name to feature list.
+   * 
+ * + * map<string, .tensorflow.FeatureList> feature_list = 1; + */ + + @java.lang.Override + public boolean containsFeatureList( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetFeatureList().getMap().containsKey(key); + } + /** + * Use {@link #getFeatureListMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFeatureList() { + return getFeatureListMap(); + } + /** + *
+   * Map from feature name to feature list.
+   * 
+ * + * map<string, .tensorflow.FeatureList> feature_list = 1; + */ + @java.lang.Override + + public java.util.Map getFeatureListMap() { + return internalGetFeatureList().getMap(); + } + /** + *
+   * Map from feature name to feature list.
+   * 
+ * + * map<string, .tensorflow.FeatureList> feature_list = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.FeatureList getFeatureListOrDefault( + java.lang.String key, + org.tensorflow.proto.FeatureList defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFeatureList().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Map from feature name to feature list.
+   * 
+ * + * map<string, .tensorflow.FeatureList> feature_list = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.FeatureList getFeatureListOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFeatureList().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, + internalGetFeatureList(), + FeatureListDefaultEntryHolder.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 + : internalGetFeatureList().getMap().entrySet()) { + com.google.protobuf.MapEntry + featureList__ = FeatureListDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, featureList__); + } + 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 org.tensorflow.proto.FeatureLists)) { + return super.equals(obj); + } + org.tensorflow.proto.FeatureLists other = (org.tensorflow.proto.FeatureLists) obj; + + if (!internalGetFeatureList().equals( + other.internalGetFeatureList())) 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 (!internalGetFeatureList().getMap().isEmpty()) { + hash = (37 * hash) + FEATURE_LIST_FIELD_NUMBER; + hash = (53 * hash) + internalGetFeatureList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.FeatureLists parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FeatureLists parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FeatureLists parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FeatureLists parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FeatureLists parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FeatureLists parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FeatureLists parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FeatureLists 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 org.tensorflow.proto.FeatureLists parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FeatureLists 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 org.tensorflow.proto.FeatureLists parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FeatureLists 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(org.tensorflow.proto.FeatureLists prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.FeatureLists} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.FeatureLists) + org.tensorflow.proto.FeatureListsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_FeatureLists_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetFeatureList(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableFeatureList(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_FeatureLists_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.FeatureLists.class, org.tensorflow.proto.FeatureLists.Builder.class); + } + + // Construct using org.tensorflow.proto.FeatureLists.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableFeatureList().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_FeatureLists_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.FeatureLists getDefaultInstanceForType() { + return org.tensorflow.proto.FeatureLists.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.FeatureLists build() { + org.tensorflow.proto.FeatureLists result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.FeatureLists buildPartial() { + org.tensorflow.proto.FeatureLists result = new org.tensorflow.proto.FeatureLists(this); + int from_bitField0_ = bitField0_; + result.featureList_ = internalGetFeatureList(); + result.featureList_.makeImmutable(); + 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 org.tensorflow.proto.FeatureLists) { + return mergeFrom((org.tensorflow.proto.FeatureLists)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.FeatureLists other) { + if (other == org.tensorflow.proto.FeatureLists.getDefaultInstance()) return this; + internalGetMutableFeatureList().mergeFrom( + other.internalGetFeatureList()); + 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 + featureList__ = input.readMessage( + FeatureListDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableFeatureList().getMutableMap().put( + featureList__.getKey(), featureList__.getValue()); + 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.protobuf.MapField< + java.lang.String, org.tensorflow.proto.FeatureList> featureList_; + private com.google.protobuf.MapField + internalGetFeatureList() { + if (featureList_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FeatureListDefaultEntryHolder.defaultEntry); + } + return featureList_; + } + private com.google.protobuf.MapField + internalGetMutableFeatureList() { + onChanged();; + if (featureList_ == null) { + featureList_ = com.google.protobuf.MapField.newMapField( + FeatureListDefaultEntryHolder.defaultEntry); + } + if (!featureList_.isMutable()) { + featureList_ = featureList_.copy(); + } + return featureList_; + } + + public int getFeatureListCount() { + return internalGetFeatureList().getMap().size(); + } + /** + *
+     * Map from feature name to feature list.
+     * 
+ * + * map<string, .tensorflow.FeatureList> feature_list = 1; + */ + + @java.lang.Override + public boolean containsFeatureList( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetFeatureList().getMap().containsKey(key); + } + /** + * Use {@link #getFeatureListMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFeatureList() { + return getFeatureListMap(); + } + /** + *
+     * Map from feature name to feature list.
+     * 
+ * + * map<string, .tensorflow.FeatureList> feature_list = 1; + */ + @java.lang.Override + + public java.util.Map getFeatureListMap() { + return internalGetFeatureList().getMap(); + } + /** + *
+     * Map from feature name to feature list.
+     * 
+ * + * map<string, .tensorflow.FeatureList> feature_list = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.FeatureList getFeatureListOrDefault( + java.lang.String key, + org.tensorflow.proto.FeatureList defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFeatureList().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Map from feature name to feature list.
+     * 
+ * + * map<string, .tensorflow.FeatureList> feature_list = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.FeatureList getFeatureListOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFeatureList().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFeatureList() { + internalGetMutableFeatureList().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Map from feature name to feature list.
+     * 
+ * + * map<string, .tensorflow.FeatureList> feature_list = 1; + */ + + public Builder removeFeatureList( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableFeatureList().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableFeatureList() { + return internalGetMutableFeatureList().getMutableMap(); + } + /** + *
+     * Map from feature name to feature list.
+     * 
+ * + * map<string, .tensorflow.FeatureList> feature_list = 1; + */ + public Builder putFeatureList( + java.lang.String key, + org.tensorflow.proto.FeatureList value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableFeatureList().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Map from feature name to feature list.
+     * 
+ * + * map<string, .tensorflow.FeatureList> feature_list = 1; + */ + + public Builder putAllFeatureList( + java.util.Map values) { + internalGetMutableFeatureList().getMutableMap() + .putAll(values); + 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:tensorflow.FeatureLists) + } + + // @@protoc_insertion_point(class_scope:tensorflow.FeatureLists) + private static final org.tensorflow.proto.FeatureLists DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.FeatureLists(); + } + + public static org.tensorflow.proto.FeatureLists getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureLists 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 org.tensorflow.proto.FeatureLists getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureListsOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureListsOrBuilder.java similarity index 77% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureListsOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureListsOrBuilder.java index 9f582b998ce..45212b0e47b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureListsOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureListsOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/example/feature.proto -package org.tensorflow.proto.example; +package org.tensorflow.proto; public interface FeatureListsOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.FeatureLists) @@ -28,7 +28,7 @@ boolean containsFeatureList( * Use {@link #getFeatureListMap()} instead. */ @java.lang.Deprecated - java.util.Map + java.util.Map getFeatureList(); /** *
@@ -37,7 +37,7 @@ boolean containsFeatureList(
    *
    * map<string, .tensorflow.FeatureList> feature_list = 1;
    */
-  java.util.Map
+  java.util.Map
   getFeatureListMap();
   /**
    * 
@@ -47,9 +47,11 @@ boolean containsFeatureList(
    * map<string, .tensorflow.FeatureList> feature_list = 1;
    */
 
-  org.tensorflow.proto.example.FeatureList getFeatureListOrDefault(
+  /* nullable */
+org.tensorflow.proto.FeatureList getFeatureListOrDefault(
       java.lang.String key,
-      org.tensorflow.proto.example.FeatureList defaultValue);
+      /* nullable */
+org.tensorflow.proto.FeatureList defaultValue);
   /**
    * 
    * Map from feature name to feature list.
@@ -58,6 +60,6 @@ org.tensorflow.proto.example.FeatureList getFeatureListOrDefault(
    * map<string, .tensorflow.FeatureList> feature_list = 1;
    */
 
-  org.tensorflow.proto.example.FeatureList getFeatureListOrThrow(
+  org.tensorflow.proto.FeatureList getFeatureListOrThrow(
       java.lang.String key);
 }
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureOrBuilder.java
new file mode 100644
index 00000000000..c8a3567848b
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureOrBuilder.java
@@ -0,0 +1,56 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/example/feature.proto
+
+package org.tensorflow.proto;
+
+public interface FeatureOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:tensorflow.Feature)
+    com.google.protobuf.MessageOrBuilder {
+
+  /**
+   * .tensorflow.BytesList bytes_list = 1;
+   * @return Whether the bytesList field is set.
+   */
+  boolean hasBytesList();
+  /**
+   * .tensorflow.BytesList bytes_list = 1;
+   * @return The bytesList.
+   */
+  org.tensorflow.proto.BytesList getBytesList();
+  /**
+   * .tensorflow.BytesList bytes_list = 1;
+   */
+  org.tensorflow.proto.BytesListOrBuilder getBytesListOrBuilder();
+
+  /**
+   * .tensorflow.FloatList float_list = 2;
+   * @return Whether the floatList field is set.
+   */
+  boolean hasFloatList();
+  /**
+   * .tensorflow.FloatList float_list = 2;
+   * @return The floatList.
+   */
+  org.tensorflow.proto.FloatList getFloatList();
+  /**
+   * .tensorflow.FloatList float_list = 2;
+   */
+  org.tensorflow.proto.FloatListOrBuilder getFloatListOrBuilder();
+
+  /**
+   * .tensorflow.Int64List int64_list = 3;
+   * @return Whether the int64List field is set.
+   */
+  boolean hasInt64List();
+  /**
+   * .tensorflow.Int64List int64_list = 3;
+   * @return The int64List.
+   */
+  org.tensorflow.proto.Int64List getInt64List();
+  /**
+   * .tensorflow.Int64List int64_list = 3;
+   */
+  org.tensorflow.proto.Int64ListOrBuilder getInt64ListOrBuilder();
+
+  public org.tensorflow.proto.Feature.KindCase getKindCase();
+}
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureProtos.java
similarity index 96%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureProtos.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureProtos.java
index a03e3fecc50..386f7bcd035 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeatureProtos.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeatureProtos.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/example/feature.proto
 
-package org.tensorflow.proto.example;
+package org.tensorflow.proto;
 
 public final class FeatureProtos {
   private FeatureProtos() {}
@@ -84,10 +84,10 @@ public static void registerAllExtensions(
       " \003(\0132).tensorflow.FeatureLists.FeatureLi" +
       "stEntry\032K\n\020FeatureListEntry\022\013\n\003key\030\001 \001(\t" +
       "\022&\n\005value\030\002 \001(\0132\027.tensorflow.FeatureList" +
-      ":\0028\001B\207\001\n\034org.tensorflow.proto.exampleB\rF" +
-      "eatureProtosP\001ZSgithub.com/tensorflow/te" +
-      "nsorflow/tensorflow/go/core/example/exam" +
-      "ple_protos_go_proto\370\001\001b\006proto3"
+      ":\0028\001B\177\n\024org.tensorflow.protoB\rFeaturePro" +
+      "tosP\001ZSgithub.com/tensorflow/tensorflow/" +
+      "tensorflow/go/core/example/example_proto" +
+      "s_go_proto\370\001\001b\006proto3"
     };
     descriptor = com.google.protobuf.Descriptors.FileDescriptor
       .internalBuildGeneratedFileFrom(descriptorData,
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Features.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Features.java
new file mode 100644
index 00000000000..a61b72f897e
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Features.java
@@ -0,0 +1,728 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/example/feature.proto
+
+package org.tensorflow.proto;
+
+/**
+ * Protobuf type {@code tensorflow.Features}
+ */
+public final class Features extends
+    com.google.protobuf.GeneratedMessageV3 implements
+    // @@protoc_insertion_point(message_implements:tensorflow.Features)
+    FeaturesOrBuilder {
+private static final long serialVersionUID = 0L;
+  // Use Features.newBuilder() to construct.
+  private Features(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    super(builder);
+  }
+  private Features() {
+  }
+
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
+    return new Features();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
+    return this.unknownFields;
+  }
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_Features_descriptor;
+  }
+
+  @SuppressWarnings({"rawtypes"})
+  @java.lang.Override
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
+    switch (number) {
+      case 1:
+        return internalGetFeature();
+      default:
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
+    }
+  }
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internalGetFieldAccessorTable() {
+    return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_Features_fieldAccessorTable
+        .ensureFieldAccessorsInitialized(
+            org.tensorflow.proto.Features.class, org.tensorflow.proto.Features.Builder.class);
+  }
+
+  public static final int FEATURE_FIELD_NUMBER = 1;
+  private static final class FeatureDefaultEntryHolder {
+    static final com.google.protobuf.MapEntry<
+        java.lang.String, org.tensorflow.proto.Feature> defaultEntry =
+            com.google.protobuf.MapEntry
+            .newDefaultInstance(
+                org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_Features_FeatureEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                org.tensorflow.proto.Feature.getDefaultInstance());
+  }
+  private com.google.protobuf.MapField<
+      java.lang.String, org.tensorflow.proto.Feature> feature_;
+  private com.google.protobuf.MapField
+  internalGetFeature() {
+    if (feature_ == null) {
+      return com.google.protobuf.MapField.emptyMapField(
+          FeatureDefaultEntryHolder.defaultEntry);
+    }
+    return feature_;
+  }
+
+  public int getFeatureCount() {
+    return internalGetFeature().getMap().size();
+  }
+  /**
+   * 
+   * Map from feature name to feature.
+   * 
+ * + * map<string, .tensorflow.Feature> feature = 1; + */ + + @java.lang.Override + public boolean containsFeature( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetFeature().getMap().containsKey(key); + } + /** + * Use {@link #getFeatureMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFeature() { + return getFeatureMap(); + } + /** + *
+   * Map from feature name to feature.
+   * 
+ * + * map<string, .tensorflow.Feature> feature = 1; + */ + @java.lang.Override + + public java.util.Map getFeatureMap() { + return internalGetFeature().getMap(); + } + /** + *
+   * Map from feature name to feature.
+   * 
+ * + * map<string, .tensorflow.Feature> feature = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.Feature getFeatureOrDefault( + java.lang.String key, + org.tensorflow.proto.Feature defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFeature().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Map from feature name to feature.
+   * 
+ * + * map<string, .tensorflow.Feature> feature = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.Feature getFeatureOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFeature().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, + internalGetFeature(), + FeatureDefaultEntryHolder.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 + : internalGetFeature().getMap().entrySet()) { + com.google.protobuf.MapEntry + feature__ = FeatureDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, feature__); + } + 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 org.tensorflow.proto.Features)) { + return super.equals(obj); + } + org.tensorflow.proto.Features other = (org.tensorflow.proto.Features) obj; + + if (!internalGetFeature().equals( + other.internalGetFeature())) 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 (!internalGetFeature().getMap().isEmpty()) { + hash = (37 * hash) + FEATURE_FIELD_NUMBER; + hash = (53 * hash) + internalGetFeature().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.Features parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Features parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Features parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Features parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Features parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Features parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Features parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Features 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 org.tensorflow.proto.Features parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Features 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 org.tensorflow.proto.Features parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Features 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(org.tensorflow.proto.Features prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.Features} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.Features) + org.tensorflow.proto.FeaturesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_Features_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetFeature(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableFeature(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_Features_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Features.class, org.tensorflow.proto.Features.Builder.class); + } + + // Construct using org.tensorflow.proto.Features.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableFeature().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_Features_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.Features getDefaultInstanceForType() { + return org.tensorflow.proto.Features.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.Features build() { + org.tensorflow.proto.Features result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.Features buildPartial() { + org.tensorflow.proto.Features result = new org.tensorflow.proto.Features(this); + int from_bitField0_ = bitField0_; + result.feature_ = internalGetFeature(); + result.feature_.makeImmutable(); + 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 org.tensorflow.proto.Features) { + return mergeFrom((org.tensorflow.proto.Features)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.Features other) { + if (other == org.tensorflow.proto.Features.getDefaultInstance()) return this; + internalGetMutableFeature().mergeFrom( + other.internalGetFeature()); + 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 + feature__ = input.readMessage( + FeatureDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableFeature().getMutableMap().put( + feature__.getKey(), feature__.getValue()); + 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.protobuf.MapField< + java.lang.String, org.tensorflow.proto.Feature> feature_; + private com.google.protobuf.MapField + internalGetFeature() { + if (feature_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FeatureDefaultEntryHolder.defaultEntry); + } + return feature_; + } + private com.google.protobuf.MapField + internalGetMutableFeature() { + onChanged();; + if (feature_ == null) { + feature_ = com.google.protobuf.MapField.newMapField( + FeatureDefaultEntryHolder.defaultEntry); + } + if (!feature_.isMutable()) { + feature_ = feature_.copy(); + } + return feature_; + } + + public int getFeatureCount() { + return internalGetFeature().getMap().size(); + } + /** + *
+     * Map from feature name to feature.
+     * 
+ * + * map<string, .tensorflow.Feature> feature = 1; + */ + + @java.lang.Override + public boolean containsFeature( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetFeature().getMap().containsKey(key); + } + /** + * Use {@link #getFeatureMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFeature() { + return getFeatureMap(); + } + /** + *
+     * Map from feature name to feature.
+     * 
+ * + * map<string, .tensorflow.Feature> feature = 1; + */ + @java.lang.Override + + public java.util.Map getFeatureMap() { + return internalGetFeature().getMap(); + } + /** + *
+     * Map from feature name to feature.
+     * 
+ * + * map<string, .tensorflow.Feature> feature = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.Feature getFeatureOrDefault( + java.lang.String key, + org.tensorflow.proto.Feature defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFeature().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Map from feature name to feature.
+     * 
+ * + * map<string, .tensorflow.Feature> feature = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.Feature getFeatureOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFeature().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFeature() { + internalGetMutableFeature().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Map from feature name to feature.
+     * 
+ * + * map<string, .tensorflow.Feature> feature = 1; + */ + + public Builder removeFeature( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableFeature().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableFeature() { + return internalGetMutableFeature().getMutableMap(); + } + /** + *
+     * Map from feature name to feature.
+     * 
+ * + * map<string, .tensorflow.Feature> feature = 1; + */ + public Builder putFeature( + java.lang.String key, + org.tensorflow.proto.Feature value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableFeature().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Map from feature name to feature.
+     * 
+ * + * map<string, .tensorflow.Feature> feature = 1; + */ + + public Builder putAllFeature( + java.util.Map values) { + internalGetMutableFeature().getMutableMap() + .putAll(values); + 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:tensorflow.Features) + } + + // @@protoc_insertion_point(class_scope:tensorflow.Features) + private static final org.tensorflow.proto.Features DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.Features(); + } + + public static org.tensorflow.proto.Features getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Features 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 org.tensorflow.proto.Features getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeaturesOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeaturesOrBuilder.java similarity index 78% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeaturesOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeaturesOrBuilder.java index 2ee80ee66a0..0d436b3ecba 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/example/FeaturesOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FeaturesOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/example/feature.proto -package org.tensorflow.proto.example; +package org.tensorflow.proto; public interface FeaturesOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.Features) @@ -28,7 +28,7 @@ boolean containsFeature( * Use {@link #getFeatureMap()} instead. */ @java.lang.Deprecated - java.util.Map + java.util.Map getFeature(); /** *
@@ -37,7 +37,7 @@ boolean containsFeature(
    *
    * map<string, .tensorflow.Feature> feature = 1;
    */
-  java.util.Map
+  java.util.Map
   getFeatureMap();
   /**
    * 
@@ -47,9 +47,11 @@ boolean containsFeature(
    * map<string, .tensorflow.Feature> feature = 1;
    */
 
-  org.tensorflow.proto.example.Feature getFeatureOrDefault(
+  /* nullable */
+org.tensorflow.proto.Feature getFeatureOrDefault(
       java.lang.String key,
-      org.tensorflow.proto.example.Feature defaultValue);
+      /* nullable */
+org.tensorflow.proto.Feature defaultValue);
   /**
    * 
    * Map from feature name to feature.
@@ -58,6 +60,6 @@ org.tensorflow.proto.example.Feature getFeatureOrDefault(
    * map<string, .tensorflow.Feature> feature = 1;
    */
 
-  org.tensorflow.proto.example.Feature getFeatureOrThrow(
+  org.tensorflow.proto.Feature getFeatureOrThrow(
       java.lang.String key);
 }
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FingerprintDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FingerprintDef.java
new file mode 100644
index 00000000000..b44f9065acb
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FingerprintDef.java
@@ -0,0 +1,1048 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/protobuf/fingerprint.proto
+
+package org.tensorflow.proto;
+
+/**
+ * 
+ * Protocol buffer representing a SavedModel Fingerprint.
+ * If there are multiple MetaGraphDefs in the SavedModel, the FingerprintDef
+ * corresponds to the first one.
+ * 
+ * + * Protobuf type {@code tensorflow.FingerprintDef} + */ +public final class FingerprintDef extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.FingerprintDef) + FingerprintDefOrBuilder { +private static final long serialVersionUID = 0L; + // Use FingerprintDef.newBuilder() to construct. + private FingerprintDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FingerprintDef() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FingerprintDef(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.FingerprintProtos.internal_static_tensorflow_FingerprintDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.FingerprintProtos.internal_static_tensorflow_FingerprintDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.FingerprintDef.class, org.tensorflow.proto.FingerprintDef.Builder.class); + } + + public static final int SAVED_MODEL_CHECKSUM_FIELD_NUMBER = 1; + private long savedModelChecksum_; + /** + *
+   * Hash of the saved_model.pb, referred to as a "checksum".
+   * 
+ * + * uint64 saved_model_checksum = 1; + * @return The savedModelChecksum. + */ + @java.lang.Override + public long getSavedModelChecksum() { + return savedModelChecksum_; + } + + public static final int GRAPH_DEF_PROGRAM_HASH_FIELD_NUMBER = 2; + private long graphDefProgramHash_; + /** + *
+   * Hash of regularized graph_def.
+   * 
+ * + * uint64 graph_def_program_hash = 2; + * @return The graphDefProgramHash. + */ + @java.lang.Override + public long getGraphDefProgramHash() { + return graphDefProgramHash_; + } + + public static final int SIGNATURE_DEF_HASH_FIELD_NUMBER = 3; + private long signatureDefHash_; + /** + *
+   * Hash of the regularized (sorted) SignatureDefs.
+   * 
+ * + * uint64 signature_def_hash = 3; + * @return The signatureDefHash. + */ + @java.lang.Override + public long getSignatureDefHash() { + return signatureDefHash_; + } + + public static final int SAVED_OBJECT_GRAPH_HASH_FIELD_NUMBER = 4; + private long savedObjectGraphHash_; + /** + *
+   * Hash of the regularized SavedObjectGraph.
+   * 
+ * + * uint64 saved_object_graph_hash = 4; + * @return The savedObjectGraphHash. + */ + @java.lang.Override + public long getSavedObjectGraphHash() { + return savedObjectGraphHash_; + } + + public static final int CHECKPOINT_HASH_FIELD_NUMBER = 5; + private long checkpointHash_; + /** + *
+   * Hash of the checkpoint.
+   * 
+ * + * uint64 checkpoint_hash = 5; + * @return The checkpointHash. + */ + @java.lang.Override + public long getCheckpointHash() { + return checkpointHash_; + } + + public static final int VERSION_FIELD_NUMBER = 6; + private org.tensorflow.proto.VersionDef version_; + /** + *
+   * Version specification of the fingerprint.
+   * 
+ * + * .tensorflow.VersionDef version = 6; + * @return Whether the version field is set. + */ + @java.lang.Override + public boolean hasVersion() { + return version_ != null; + } + /** + *
+   * Version specification of the fingerprint.
+   * 
+ * + * .tensorflow.VersionDef version = 6; + * @return The version. + */ + @java.lang.Override + public org.tensorflow.proto.VersionDef getVersion() { + return version_ == null ? org.tensorflow.proto.VersionDef.getDefaultInstance() : version_; + } + /** + *
+   * Version specification of the fingerprint.
+   * 
+ * + * .tensorflow.VersionDef version = 6; + */ + @java.lang.Override + public org.tensorflow.proto.VersionDefOrBuilder getVersionOrBuilder() { + return getVersion(); + } + + 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 (savedModelChecksum_ != 0L) { + output.writeUInt64(1, savedModelChecksum_); + } + if (graphDefProgramHash_ != 0L) { + output.writeUInt64(2, graphDefProgramHash_); + } + if (signatureDefHash_ != 0L) { + output.writeUInt64(3, signatureDefHash_); + } + if (savedObjectGraphHash_ != 0L) { + output.writeUInt64(4, savedObjectGraphHash_); + } + if (checkpointHash_ != 0L) { + output.writeUInt64(5, checkpointHash_); + } + if (version_ != null) { + output.writeMessage(6, getVersion()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (savedModelChecksum_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, savedModelChecksum_); + } + if (graphDefProgramHash_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, graphDefProgramHash_); + } + if (signatureDefHash_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, signatureDefHash_); + } + if (savedObjectGraphHash_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, savedObjectGraphHash_); + } + if (checkpointHash_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(5, checkpointHash_); + } + if (version_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getVersion()); + } + 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 org.tensorflow.proto.FingerprintDef)) { + return super.equals(obj); + } + org.tensorflow.proto.FingerprintDef other = (org.tensorflow.proto.FingerprintDef) obj; + + if (getSavedModelChecksum() + != other.getSavedModelChecksum()) return false; + if (getGraphDefProgramHash() + != other.getGraphDefProgramHash()) return false; + if (getSignatureDefHash() + != other.getSignatureDefHash()) return false; + if (getSavedObjectGraphHash() + != other.getSavedObjectGraphHash()) return false; + if (getCheckpointHash() + != other.getCheckpointHash()) return false; + if (hasVersion() != other.hasVersion()) return false; + if (hasVersion()) { + if (!getVersion() + .equals(other.getVersion())) 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) + SAVED_MODEL_CHECKSUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSavedModelChecksum()); + hash = (37 * hash) + GRAPH_DEF_PROGRAM_HASH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getGraphDefProgramHash()); + hash = (37 * hash) + SIGNATURE_DEF_HASH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSignatureDefHash()); + hash = (37 * hash) + SAVED_OBJECT_GRAPH_HASH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSavedObjectGraphHash()); + hash = (37 * hash) + CHECKPOINT_HASH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCheckpointHash()); + if (hasVersion()) { + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.FingerprintDef parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FingerprintDef parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FingerprintDef parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FingerprintDef parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FingerprintDef parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FingerprintDef parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FingerprintDef parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FingerprintDef 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 org.tensorflow.proto.FingerprintDef parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FingerprintDef 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 org.tensorflow.proto.FingerprintDef parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FingerprintDef 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(org.tensorflow.proto.FingerprintDef 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; + } + /** + *
+   * Protocol buffer representing a SavedModel Fingerprint.
+   * If there are multiple MetaGraphDefs in the SavedModel, the FingerprintDef
+   * corresponds to the first one.
+   * 
+ * + * Protobuf type {@code tensorflow.FingerprintDef} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.FingerprintDef) + org.tensorflow.proto.FingerprintDefOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.FingerprintProtos.internal_static_tensorflow_FingerprintDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.FingerprintProtos.internal_static_tensorflow_FingerprintDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.FingerprintDef.class, org.tensorflow.proto.FingerprintDef.Builder.class); + } + + // Construct using org.tensorflow.proto.FingerprintDef.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + savedModelChecksum_ = 0L; + + graphDefProgramHash_ = 0L; + + signatureDefHash_ = 0L; + + savedObjectGraphHash_ = 0L; + + checkpointHash_ = 0L; + + if (versionBuilder_ == null) { + version_ = null; + } else { + version_ = null; + versionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.FingerprintProtos.internal_static_tensorflow_FingerprintDef_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.FingerprintDef getDefaultInstanceForType() { + return org.tensorflow.proto.FingerprintDef.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.FingerprintDef build() { + org.tensorflow.proto.FingerprintDef result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.FingerprintDef buildPartial() { + org.tensorflow.proto.FingerprintDef result = new org.tensorflow.proto.FingerprintDef(this); + result.savedModelChecksum_ = savedModelChecksum_; + result.graphDefProgramHash_ = graphDefProgramHash_; + result.signatureDefHash_ = signatureDefHash_; + result.savedObjectGraphHash_ = savedObjectGraphHash_; + result.checkpointHash_ = checkpointHash_; + if (versionBuilder_ == null) { + result.version_ = version_; + } else { + result.version_ = versionBuilder_.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 org.tensorflow.proto.FingerprintDef) { + return mergeFrom((org.tensorflow.proto.FingerprintDef)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.FingerprintDef other) { + if (other == org.tensorflow.proto.FingerprintDef.getDefaultInstance()) return this; + if (other.getSavedModelChecksum() != 0L) { + setSavedModelChecksum(other.getSavedModelChecksum()); + } + if (other.getGraphDefProgramHash() != 0L) { + setGraphDefProgramHash(other.getGraphDefProgramHash()); + } + if (other.getSignatureDefHash() != 0L) { + setSignatureDefHash(other.getSignatureDefHash()); + } + if (other.getSavedObjectGraphHash() != 0L) { + setSavedObjectGraphHash(other.getSavedObjectGraphHash()); + } + if (other.getCheckpointHash() != 0L) { + setCheckpointHash(other.getCheckpointHash()); + } + if (other.hasVersion()) { + mergeVersion(other.getVersion()); + } + 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: { + savedModelChecksum_ = input.readUInt64(); + + break; + } // case 8 + case 16: { + graphDefProgramHash_ = input.readUInt64(); + + break; + } // case 16 + case 24: { + signatureDefHash_ = input.readUInt64(); + + break; + } // case 24 + case 32: { + savedObjectGraphHash_ = input.readUInt64(); + + break; + } // case 32 + case 40: { + checkpointHash_ = input.readUInt64(); + + break; + } // case 40 + case 50: { + input.readMessage( + getVersionFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + 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 long savedModelChecksum_ ; + /** + *
+     * Hash of the saved_model.pb, referred to as a "checksum".
+     * 
+ * + * uint64 saved_model_checksum = 1; + * @return The savedModelChecksum. + */ + @java.lang.Override + public long getSavedModelChecksum() { + return savedModelChecksum_; + } + /** + *
+     * Hash of the saved_model.pb, referred to as a "checksum".
+     * 
+ * + * uint64 saved_model_checksum = 1; + * @param value The savedModelChecksum to set. + * @return This builder for chaining. + */ + public Builder setSavedModelChecksum(long value) { + + savedModelChecksum_ = value; + onChanged(); + return this; + } + /** + *
+     * Hash of the saved_model.pb, referred to as a "checksum".
+     * 
+ * + * uint64 saved_model_checksum = 1; + * @return This builder for chaining. + */ + public Builder clearSavedModelChecksum() { + + savedModelChecksum_ = 0L; + onChanged(); + return this; + } + + private long graphDefProgramHash_ ; + /** + *
+     * Hash of regularized graph_def.
+     * 
+ * + * uint64 graph_def_program_hash = 2; + * @return The graphDefProgramHash. + */ + @java.lang.Override + public long getGraphDefProgramHash() { + return graphDefProgramHash_; + } + /** + *
+     * Hash of regularized graph_def.
+     * 
+ * + * uint64 graph_def_program_hash = 2; + * @param value The graphDefProgramHash to set. + * @return This builder for chaining. + */ + public Builder setGraphDefProgramHash(long value) { + + graphDefProgramHash_ = value; + onChanged(); + return this; + } + /** + *
+     * Hash of regularized graph_def.
+     * 
+ * + * uint64 graph_def_program_hash = 2; + * @return This builder for chaining. + */ + public Builder clearGraphDefProgramHash() { + + graphDefProgramHash_ = 0L; + onChanged(); + return this; + } + + private long signatureDefHash_ ; + /** + *
+     * Hash of the regularized (sorted) SignatureDefs.
+     * 
+ * + * uint64 signature_def_hash = 3; + * @return The signatureDefHash. + */ + @java.lang.Override + public long getSignatureDefHash() { + return signatureDefHash_; + } + /** + *
+     * Hash of the regularized (sorted) SignatureDefs.
+     * 
+ * + * uint64 signature_def_hash = 3; + * @param value The signatureDefHash to set. + * @return This builder for chaining. + */ + public Builder setSignatureDefHash(long value) { + + signatureDefHash_ = value; + onChanged(); + return this; + } + /** + *
+     * Hash of the regularized (sorted) SignatureDefs.
+     * 
+ * + * uint64 signature_def_hash = 3; + * @return This builder for chaining. + */ + public Builder clearSignatureDefHash() { + + signatureDefHash_ = 0L; + onChanged(); + return this; + } + + private long savedObjectGraphHash_ ; + /** + *
+     * Hash of the regularized SavedObjectGraph.
+     * 
+ * + * uint64 saved_object_graph_hash = 4; + * @return The savedObjectGraphHash. + */ + @java.lang.Override + public long getSavedObjectGraphHash() { + return savedObjectGraphHash_; + } + /** + *
+     * Hash of the regularized SavedObjectGraph.
+     * 
+ * + * uint64 saved_object_graph_hash = 4; + * @param value The savedObjectGraphHash to set. + * @return This builder for chaining. + */ + public Builder setSavedObjectGraphHash(long value) { + + savedObjectGraphHash_ = value; + onChanged(); + return this; + } + /** + *
+     * Hash of the regularized SavedObjectGraph.
+     * 
+ * + * uint64 saved_object_graph_hash = 4; + * @return This builder for chaining. + */ + public Builder clearSavedObjectGraphHash() { + + savedObjectGraphHash_ = 0L; + onChanged(); + return this; + } + + private long checkpointHash_ ; + /** + *
+     * Hash of the checkpoint.
+     * 
+ * + * uint64 checkpoint_hash = 5; + * @return The checkpointHash. + */ + @java.lang.Override + public long getCheckpointHash() { + return checkpointHash_; + } + /** + *
+     * Hash of the checkpoint.
+     * 
+ * + * uint64 checkpoint_hash = 5; + * @param value The checkpointHash to set. + * @return This builder for chaining. + */ + public Builder setCheckpointHash(long value) { + + checkpointHash_ = value; + onChanged(); + return this; + } + /** + *
+     * Hash of the checkpoint.
+     * 
+ * + * uint64 checkpoint_hash = 5; + * @return This builder for chaining. + */ + public Builder clearCheckpointHash() { + + checkpointHash_ = 0L; + onChanged(); + return this; + } + + private org.tensorflow.proto.VersionDef version_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VersionDef, org.tensorflow.proto.VersionDef.Builder, org.tensorflow.proto.VersionDefOrBuilder> versionBuilder_; + /** + *
+     * Version specification of the fingerprint.
+     * 
+ * + * .tensorflow.VersionDef version = 6; + * @return Whether the version field is set. + */ + public boolean hasVersion() { + return versionBuilder_ != null || version_ != null; + } + /** + *
+     * Version specification of the fingerprint.
+     * 
+ * + * .tensorflow.VersionDef version = 6; + * @return The version. + */ + public org.tensorflow.proto.VersionDef getVersion() { + if (versionBuilder_ == null) { + return version_ == null ? org.tensorflow.proto.VersionDef.getDefaultInstance() : version_; + } else { + return versionBuilder_.getMessage(); + } + } + /** + *
+     * Version specification of the fingerprint.
+     * 
+ * + * .tensorflow.VersionDef version = 6; + */ + public Builder setVersion(org.tensorflow.proto.VersionDef value) { + if (versionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + version_ = value; + onChanged(); + } else { + versionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Version specification of the fingerprint.
+     * 
+ * + * .tensorflow.VersionDef version = 6; + */ + public Builder setVersion( + org.tensorflow.proto.VersionDef.Builder builderForValue) { + if (versionBuilder_ == null) { + version_ = builderForValue.build(); + onChanged(); + } else { + versionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Version specification of the fingerprint.
+     * 
+ * + * .tensorflow.VersionDef version = 6; + */ + public Builder mergeVersion(org.tensorflow.proto.VersionDef value) { + if (versionBuilder_ == null) { + if (version_ != null) { + version_ = + org.tensorflow.proto.VersionDef.newBuilder(version_).mergeFrom(value).buildPartial(); + } else { + version_ = value; + } + onChanged(); + } else { + versionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Version specification of the fingerprint.
+     * 
+ * + * .tensorflow.VersionDef version = 6; + */ + public Builder clearVersion() { + if (versionBuilder_ == null) { + version_ = null; + onChanged(); + } else { + version_ = null; + versionBuilder_ = null; + } + + return this; + } + /** + *
+     * Version specification of the fingerprint.
+     * 
+ * + * .tensorflow.VersionDef version = 6; + */ + public org.tensorflow.proto.VersionDef.Builder getVersionBuilder() { + + onChanged(); + return getVersionFieldBuilder().getBuilder(); + } + /** + *
+     * Version specification of the fingerprint.
+     * 
+ * + * .tensorflow.VersionDef version = 6; + */ + public org.tensorflow.proto.VersionDefOrBuilder getVersionOrBuilder() { + if (versionBuilder_ != null) { + return versionBuilder_.getMessageOrBuilder(); + } else { + return version_ == null ? + org.tensorflow.proto.VersionDef.getDefaultInstance() : version_; + } + } + /** + *
+     * Version specification of the fingerprint.
+     * 
+ * + * .tensorflow.VersionDef version = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VersionDef, org.tensorflow.proto.VersionDef.Builder, org.tensorflow.proto.VersionDefOrBuilder> + getVersionFieldBuilder() { + if (versionBuilder_ == null) { + versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VersionDef, org.tensorflow.proto.VersionDef.Builder, org.tensorflow.proto.VersionDefOrBuilder>( + getVersion(), + getParentForChildren(), + isClean()); + version_ = null; + } + return versionBuilder_; + } + @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:tensorflow.FingerprintDef) + } + + // @@protoc_insertion_point(class_scope:tensorflow.FingerprintDef) + private static final org.tensorflow.proto.FingerprintDef DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.FingerprintDef(); + } + + public static org.tensorflow.proto.FingerprintDef getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FingerprintDef 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 org.tensorflow.proto.FingerprintDef getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FingerprintDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FingerprintDefOrBuilder.java new file mode 100644 index 00000000000..d5741560102 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FingerprintDefOrBuilder.java @@ -0,0 +1,86 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/fingerprint.proto + +package org.tensorflow.proto; + +public interface FingerprintDefOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.FingerprintDef) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Hash of the saved_model.pb, referred to as a "checksum".
+   * 
+ * + * uint64 saved_model_checksum = 1; + * @return The savedModelChecksum. + */ + long getSavedModelChecksum(); + + /** + *
+   * Hash of regularized graph_def.
+   * 
+ * + * uint64 graph_def_program_hash = 2; + * @return The graphDefProgramHash. + */ + long getGraphDefProgramHash(); + + /** + *
+   * Hash of the regularized (sorted) SignatureDefs.
+   * 
+ * + * uint64 signature_def_hash = 3; + * @return The signatureDefHash. + */ + long getSignatureDefHash(); + + /** + *
+   * Hash of the regularized SavedObjectGraph.
+   * 
+ * + * uint64 saved_object_graph_hash = 4; + * @return The savedObjectGraphHash. + */ + long getSavedObjectGraphHash(); + + /** + *
+   * Hash of the checkpoint.
+   * 
+ * + * uint64 checkpoint_hash = 5; + * @return The checkpointHash. + */ + long getCheckpointHash(); + + /** + *
+   * Version specification of the fingerprint.
+   * 
+ * + * .tensorflow.VersionDef version = 6; + * @return Whether the version field is set. + */ + boolean hasVersion(); + /** + *
+   * Version specification of the fingerprint.
+   * 
+ * + * .tensorflow.VersionDef version = 6; + * @return The version. + */ + org.tensorflow.proto.VersionDef getVersion(); + /** + *
+   * Version specification of the fingerprint.
+   * 
+ * + * .tensorflow.VersionDef version = 6; + */ + org.tensorflow.proto.VersionDefOrBuilder getVersionOrBuilder(); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FingerprintProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FingerprintProtos.java new file mode 100644 index 00000000000..4d072ef3eef --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FingerprintProtos.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/fingerprint.proto + +package org.tensorflow.proto; + +public final class FingerprintProtos { + private FingerprintProtos() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_FingerprintDef_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_FingerprintDef_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n*tensorflow/core/protobuf/fingerprint.p" + + "roto\022\ntensorflow\032(tensorflow/core/framew" + + "ork/versions.proto\"\315\001\n\016FingerprintDef\022\034\n" + + "\024saved_model_checksum\030\001 \001(\004\022\036\n\026graph_def" + + "_program_hash\030\002 \001(\004\022\032\n\022signature_def_has" + + "h\030\003 \001(\004\022\037\n\027saved_object_graph_hash\030\004 \001(\004" + + "\022\027\n\017checkpoint_hash\030\005 \001(\004\022\'\n\007version\030\006 \001" + + "(\0132\026.tensorflow.VersionDefB\205\001\n\024org.tenso" + + "rflow.protoB\021FingerprintProtosP\001ZUgithub" + + ".com/tensorflow/tensorflow/tensorflow/go" + + "/core/protobuf/for_core_protos_go_proto\370" + + "\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + org.tensorflow.proto.VersionsProtos.getDescriptor(), + }); + internal_static_tensorflow_FingerprintDef_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_FingerprintDef_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_FingerprintDef_descriptor, + new java.lang.String[] { "SavedModelChecksum", "GraphDefProgramHash", "SignatureDefHash", "SavedObjectGraphHash", "CheckpointHash", "Version", }); + org.tensorflow.proto.VersionsProtos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FixedLenFeatureProto.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FixedLenFeatureProto.java new file mode 100644 index 00000000000..6972509cda3 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FixedLenFeatureProto.java @@ -0,0 +1,997 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/example/example_parser_configuration.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.FixedLenFeatureProto} + */ +public final class FixedLenFeatureProto extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.FixedLenFeatureProto) + FixedLenFeatureProtoOrBuilder { +private static final long serialVersionUID = 0L; + // Use FixedLenFeatureProto.newBuilder() to construct. + private FixedLenFeatureProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FixedLenFeatureProto() { + dtype_ = 0; + valuesOutputTensorName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FixedLenFeatureProto(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ExampleParserConfigurationProtos.internal_static_tensorflow_FixedLenFeatureProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ExampleParserConfigurationProtos.internal_static_tensorflow_FixedLenFeatureProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.FixedLenFeatureProto.class, org.tensorflow.proto.FixedLenFeatureProto.Builder.class); + } + + public static final int DTYPE_FIELD_NUMBER = 1; + private int dtype_; + /** + * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. + */ + @java.lang.Override public int getDtypeValue() { + return dtype_; + } + /** + * .tensorflow.DataType dtype = 1; + * @return The dtype. + */ + @java.lang.Override public org.tensorflow.proto.DataType getDtype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + + public static final int SHAPE_FIELD_NUMBER = 2; + private org.tensorflow.proto.TensorShapeProto shape_; + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + @java.lang.Override + public boolean hasShape() { + return shape_ != null; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto getShape() { + return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { + return getShape(); + } + + public static final int DEFAULT_VALUE_FIELD_NUMBER = 3; + private org.tensorflow.proto.TensorProto defaultValue_; + /** + * .tensorflow.TensorProto default_value = 3; + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return defaultValue_ != null; + } + /** + * .tensorflow.TensorProto default_value = 3; + * @return The defaultValue. + */ + @java.lang.Override + public org.tensorflow.proto.TensorProto getDefaultValue() { + return defaultValue_ == null ? org.tensorflow.proto.TensorProto.getDefaultInstance() : defaultValue_; + } + /** + * .tensorflow.TensorProto default_value = 3; + */ + @java.lang.Override + public org.tensorflow.proto.TensorProtoOrBuilder getDefaultValueOrBuilder() { + return getDefaultValue(); + } + + public static final int VALUES_OUTPUT_TENSOR_NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object valuesOutputTensorName_; + /** + * string values_output_tensor_name = 4; + * @return The valuesOutputTensorName. + */ + @java.lang.Override + public java.lang.String getValuesOutputTensorName() { + java.lang.Object ref = valuesOutputTensorName_; + 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(); + valuesOutputTensorName_ = s; + return s; + } + } + /** + * string values_output_tensor_name = 4; + * @return The bytes for valuesOutputTensorName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValuesOutputTensorNameBytes() { + java.lang.Object ref = valuesOutputTensorName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + valuesOutputTensorName_ = 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 (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + output.writeEnum(1, dtype_); + } + if (shape_ != null) { + output.writeMessage(2, getShape()); + } + if (defaultValue_ != null) { + output.writeMessage(3, getDefaultValue()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(valuesOutputTensorName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, valuesOutputTensorName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, dtype_); + } + if (shape_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getShape()); + } + if (defaultValue_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDefaultValue()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(valuesOutputTensorName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, valuesOutputTensorName_); + } + 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 org.tensorflow.proto.FixedLenFeatureProto)) { + return super.equals(obj); + } + org.tensorflow.proto.FixedLenFeatureProto other = (org.tensorflow.proto.FixedLenFeatureProto) obj; + + if (dtype_ != other.dtype_) return false; + if (hasShape() != other.hasShape()) return false; + if (hasShape()) { + if (!getShape() + .equals(other.getShape())) return false; + } + if (hasDefaultValue() != other.hasDefaultValue()) return false; + if (hasDefaultValue()) { + if (!getDefaultValue() + .equals(other.getDefaultValue())) return false; + } + if (!getValuesOutputTensorName() + .equals(other.getValuesOutputTensorName())) 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) + DTYPE_FIELD_NUMBER; + hash = (53 * hash) + dtype_; + if (hasShape()) { + hash = (37 * hash) + SHAPE_FIELD_NUMBER; + hash = (53 * hash) + getShape().hashCode(); + } + if (hasDefaultValue()) { + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultValue().hashCode(); + } + hash = (37 * hash) + VALUES_OUTPUT_TENSOR_NAME_FIELD_NUMBER; + hash = (53 * hash) + getValuesOutputTensorName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.FixedLenFeatureProto parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FixedLenFeatureProto parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FixedLenFeatureProto parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FixedLenFeatureProto parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FixedLenFeatureProto parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FixedLenFeatureProto parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FixedLenFeatureProto parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FixedLenFeatureProto 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 org.tensorflow.proto.FixedLenFeatureProto parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FixedLenFeatureProto 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 org.tensorflow.proto.FixedLenFeatureProto parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FixedLenFeatureProto 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(org.tensorflow.proto.FixedLenFeatureProto prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.FixedLenFeatureProto} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.FixedLenFeatureProto) + org.tensorflow.proto.FixedLenFeatureProtoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ExampleParserConfigurationProtos.internal_static_tensorflow_FixedLenFeatureProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ExampleParserConfigurationProtos.internal_static_tensorflow_FixedLenFeatureProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.FixedLenFeatureProto.class, org.tensorflow.proto.FixedLenFeatureProto.Builder.class); + } + + // Construct using org.tensorflow.proto.FixedLenFeatureProto.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + dtype_ = 0; + + if (shapeBuilder_ == null) { + shape_ = null; + } else { + shape_ = null; + shapeBuilder_ = null; + } + if (defaultValueBuilder_ == null) { + defaultValue_ = null; + } else { + defaultValue_ = null; + defaultValueBuilder_ = null; + } + valuesOutputTensorName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.ExampleParserConfigurationProtos.internal_static_tensorflow_FixedLenFeatureProto_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.FixedLenFeatureProto getDefaultInstanceForType() { + return org.tensorflow.proto.FixedLenFeatureProto.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.FixedLenFeatureProto build() { + org.tensorflow.proto.FixedLenFeatureProto result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.FixedLenFeatureProto buildPartial() { + org.tensorflow.proto.FixedLenFeatureProto result = new org.tensorflow.proto.FixedLenFeatureProto(this); + result.dtype_ = dtype_; + if (shapeBuilder_ == null) { + result.shape_ = shape_; + } else { + result.shape_ = shapeBuilder_.build(); + } + if (defaultValueBuilder_ == null) { + result.defaultValue_ = defaultValue_; + } else { + result.defaultValue_ = defaultValueBuilder_.build(); + } + result.valuesOutputTensorName_ = valuesOutputTensorName_; + 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 org.tensorflow.proto.FixedLenFeatureProto) { + return mergeFrom((org.tensorflow.proto.FixedLenFeatureProto)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.FixedLenFeatureProto other) { + if (other == org.tensorflow.proto.FixedLenFeatureProto.getDefaultInstance()) return this; + if (other.dtype_ != 0) { + setDtypeValue(other.getDtypeValue()); + } + if (other.hasShape()) { + mergeShape(other.getShape()); + } + if (other.hasDefaultValue()) { + mergeDefaultValue(other.getDefaultValue()); + } + if (!other.getValuesOutputTensorName().isEmpty()) { + valuesOutputTensorName_ = other.valuesOutputTensorName_; + 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 8: { + dtype_ = input.readEnum(); + + break; + } // case 8 + case 18: { + input.readMessage( + getShapeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getDefaultValueFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + valuesOutputTensorName_ = input.readStringRequireUtf8(); + + break; + } // case 34 + 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 dtype_ = 0; + /** + * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. + */ + @java.lang.Override public int getDtypeValue() { + return dtype_; + } + /** + * .tensorflow.DataType dtype = 1; + * @param value The enum numeric value on the wire for dtype to set. + * @return This builder for chaining. + */ + public Builder setDtypeValue(int value) { + + dtype_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.DataType dtype = 1; + * @return The dtype. + */ + @java.lang.Override + public org.tensorflow.proto.DataType getDtype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + /** + * .tensorflow.DataType dtype = 1; + * @param value The dtype to set. + * @return This builder for chaining. + */ + public Builder setDtype(org.tensorflow.proto.DataType value) { + if (value == null) { + throw new NullPointerException(); + } + + dtype_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.DataType dtype = 1; + * @return This builder for chaining. + */ + public Builder clearDtype() { + + dtype_ = 0; + onChanged(); + return this; + } + + private org.tensorflow.proto.TensorShapeProto shape_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> shapeBuilder_; + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + public boolean hasShape() { + return shapeBuilder_ != null || shape_ != null; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + public org.tensorflow.proto.TensorShapeProto getShape() { + if (shapeBuilder_ == null) { + return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } else { + return shapeBuilder_.getMessage(); + } + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder setShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shape_ = value; + onChanged(); + } else { + shapeBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder setShape( + org.tensorflow.proto.TensorShapeProto.Builder builderForValue) { + if (shapeBuilder_ == null) { + shape_ = builderForValue.build(); + onChanged(); + } else { + shapeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder mergeShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (shape_ != null) { + shape_ = + org.tensorflow.proto.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial(); + } else { + shape_ = value; + } + onChanged(); + } else { + shapeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder clearShape() { + if (shapeBuilder_ == null) { + shape_ = null; + onChanged(); + } else { + shape_ = null; + shapeBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public org.tensorflow.proto.TensorShapeProto.Builder getShapeBuilder() { + + onChanged(); + return getShapeFieldBuilder().getBuilder(); + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { + if (shapeBuilder_ != null) { + return shapeBuilder_.getMessageOrBuilder(); + } else { + return shape_ == null ? + org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> + getShapeFieldBuilder() { + if (shapeBuilder_ == null) { + shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder>( + getShape(), + getParentForChildren(), + isClean()); + shape_ = null; + } + return shapeBuilder_; + } + + private org.tensorflow.proto.TensorProto defaultValue_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> defaultValueBuilder_; + /** + * .tensorflow.TensorProto default_value = 3; + * @return Whether the defaultValue field is set. + */ + public boolean hasDefaultValue() { + return defaultValueBuilder_ != null || defaultValue_ != null; + } + /** + * .tensorflow.TensorProto default_value = 3; + * @return The defaultValue. + */ + public org.tensorflow.proto.TensorProto getDefaultValue() { + if (defaultValueBuilder_ == null) { + return defaultValue_ == null ? org.tensorflow.proto.TensorProto.getDefaultInstance() : defaultValue_; + } else { + return defaultValueBuilder_.getMessage(); + } + } + /** + * .tensorflow.TensorProto default_value = 3; + */ + public Builder setDefaultValue(org.tensorflow.proto.TensorProto value) { + if (defaultValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultValue_ = value; + onChanged(); + } else { + defaultValueBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.TensorProto default_value = 3; + */ + public Builder setDefaultValue( + org.tensorflow.proto.TensorProto.Builder builderForValue) { + if (defaultValueBuilder_ == null) { + defaultValue_ = builderForValue.build(); + onChanged(); + } else { + defaultValueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.TensorProto default_value = 3; + */ + public Builder mergeDefaultValue(org.tensorflow.proto.TensorProto value) { + if (defaultValueBuilder_ == null) { + if (defaultValue_ != null) { + defaultValue_ = + org.tensorflow.proto.TensorProto.newBuilder(defaultValue_).mergeFrom(value).buildPartial(); + } else { + defaultValue_ = value; + } + onChanged(); + } else { + defaultValueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.TensorProto default_value = 3; + */ + public Builder clearDefaultValue() { + if (defaultValueBuilder_ == null) { + defaultValue_ = null; + onChanged(); + } else { + defaultValue_ = null; + defaultValueBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.TensorProto default_value = 3; + */ + public org.tensorflow.proto.TensorProto.Builder getDefaultValueBuilder() { + + onChanged(); + return getDefaultValueFieldBuilder().getBuilder(); + } + /** + * .tensorflow.TensorProto default_value = 3; + */ + public org.tensorflow.proto.TensorProtoOrBuilder getDefaultValueOrBuilder() { + if (defaultValueBuilder_ != null) { + return defaultValueBuilder_.getMessageOrBuilder(); + } else { + return defaultValue_ == null ? + org.tensorflow.proto.TensorProto.getDefaultInstance() : defaultValue_; + } + } + /** + * .tensorflow.TensorProto default_value = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> + getDefaultValueFieldBuilder() { + if (defaultValueBuilder_ == null) { + defaultValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder>( + getDefaultValue(), + getParentForChildren(), + isClean()); + defaultValue_ = null; + } + return defaultValueBuilder_; + } + + private java.lang.Object valuesOutputTensorName_ = ""; + /** + * string values_output_tensor_name = 4; + * @return The valuesOutputTensorName. + */ + public java.lang.String getValuesOutputTensorName() { + java.lang.Object ref = valuesOutputTensorName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + valuesOutputTensorName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string values_output_tensor_name = 4; + * @return The bytes for valuesOutputTensorName. + */ + public com.google.protobuf.ByteString + getValuesOutputTensorNameBytes() { + java.lang.Object ref = valuesOutputTensorName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + valuesOutputTensorName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string values_output_tensor_name = 4; + * @param value The valuesOutputTensorName to set. + * @return This builder for chaining. + */ + public Builder setValuesOutputTensorName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + valuesOutputTensorName_ = value; + onChanged(); + return this; + } + /** + * string values_output_tensor_name = 4; + * @return This builder for chaining. + */ + public Builder clearValuesOutputTensorName() { + + valuesOutputTensorName_ = getDefaultInstance().getValuesOutputTensorName(); + onChanged(); + return this; + } + /** + * string values_output_tensor_name = 4; + * @param value The bytes for valuesOutputTensorName to set. + * @return This builder for chaining. + */ + public Builder setValuesOutputTensorNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + valuesOutputTensorName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.FixedLenFeatureProto) + } + + // @@protoc_insertion_point(class_scope:tensorflow.FixedLenFeatureProto) + private static final org.tensorflow.proto.FixedLenFeatureProto DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.FixedLenFeatureProto(); + } + + public static org.tensorflow.proto.FixedLenFeatureProto getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FixedLenFeatureProto 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 org.tensorflow.proto.FixedLenFeatureProto getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FixedLenFeatureProtoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FixedLenFeatureProtoOrBuilder.java new file mode 100644 index 00000000000..c2ce843870f --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FixedLenFeatureProtoOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/example/example_parser_configuration.proto + +package org.tensorflow.proto; + +public interface FixedLenFeatureProtoOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.FixedLenFeatureProto) + com.google.protobuf.MessageOrBuilder { + + /** + * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. + */ + int getDtypeValue(); + /** + * .tensorflow.DataType dtype = 1; + * @return The dtype. + */ + org.tensorflow.proto.DataType getDtype(); + + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + boolean hasShape(); + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + org.tensorflow.proto.TensorShapeProto getShape(); + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder(); + + /** + * .tensorflow.TensorProto default_value = 3; + * @return Whether the defaultValue field is set. + */ + boolean hasDefaultValue(); + /** + * .tensorflow.TensorProto default_value = 3; + * @return The defaultValue. + */ + org.tensorflow.proto.TensorProto getDefaultValue(); + /** + * .tensorflow.TensorProto default_value = 3; + */ + org.tensorflow.proto.TensorProtoOrBuilder getDefaultValueOrBuilder(); + + /** + * string values_output_tensor_name = 4; + * @return The valuesOutputTensorName. + */ + java.lang.String getValuesOutputTensorName(); + /** + * string values_output_tensor_name = 4; + * @return The bytes for valuesOutputTensorName. + */ + com.google.protobuf.ByteString + getValuesOutputTensorNameBytes(); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FloatList.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FloatList.java new file mode 100644 index 00000000000..859bdd63349 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FloatList.java @@ -0,0 +1,569 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/example/feature.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.FloatList} + */ +public final class FloatList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.FloatList) + FloatListOrBuilder { +private static final long serialVersionUID = 0L; + // Use FloatList.newBuilder() to construct. + private FloatList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FloatList() { + value_ = emptyFloatList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FloatList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_FloatList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_FloatList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.FloatList.class, org.tensorflow.proto.FloatList.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private com.google.protobuf.Internal.FloatList value_; + /** + * repeated float value = 1 [packed = true]; + * @return A list containing the value. + */ + @java.lang.Override + public java.util.List + getValueList() { + return value_; + } + /** + * repeated float value = 1 [packed = true]; + * @return The count of value. + */ + public int getValueCount() { + return value_.size(); + } + /** + * repeated float value = 1 [packed = true]; + * @param index The index of the element to return. + * @return The value at the given index. + */ + public float getValue(int index) { + return value_.getFloat(index); + } + private int valueMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (getValueList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(valueMemoizedSerializedSize); + } + for (int i = 0; i < value_.size(); i++) { + output.writeFloatNoTag(value_.getFloat(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + dataSize = 4 * getValueList().size(); + size += dataSize; + if (!getValueList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + valueMemoizedSerializedSize = dataSize; + } + 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 org.tensorflow.proto.FloatList)) { + return super.equals(obj); + } + org.tensorflow.proto.FloatList other = (org.tensorflow.proto.FloatList) obj; + + if (!getValueList() + .equals(other.getValueList())) 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 (getValueCount() > 0) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValueList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.FloatList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FloatList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FloatList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FloatList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FloatList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FloatList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FloatList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FloatList 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 org.tensorflow.proto.FloatList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FloatList 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 org.tensorflow.proto.FloatList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FloatList 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(org.tensorflow.proto.FloatList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.FloatList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.FloatList) + org.tensorflow.proto.FloatListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_FloatList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_FloatList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.FloatList.class, org.tensorflow.proto.FloatList.Builder.class); + } + + // Construct using org.tensorflow.proto.FloatList.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + value_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_FloatList_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.FloatList getDefaultInstanceForType() { + return org.tensorflow.proto.FloatList.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.FloatList build() { + org.tensorflow.proto.FloatList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.FloatList buildPartial() { + org.tensorflow.proto.FloatList result = new org.tensorflow.proto.FloatList(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + value_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.value_ = value_; + 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 org.tensorflow.proto.FloatList) { + return mergeFrom((org.tensorflow.proto.FloatList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.FloatList other) { + if (other == org.tensorflow.proto.FloatList.getDefaultInstance()) return this; + if (!other.value_.isEmpty()) { + if (value_.isEmpty()) { + value_ = other.value_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValueIsMutable(); + value_.addAll(other.value_); + } + 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 13: { + float v = input.readFloat(); + ensureValueIsMutable(); + value_.addFloat(v); + break; + } // case 13 + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureValueIsMutable(); + while (input.getBytesUntilLimit() > 0) { + value_.addFloat(input.readFloat()); + } + input.popLimit(limit); + 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.protobuf.Internal.FloatList value_ = emptyFloatList(); + private void ensureValueIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + value_ = mutableCopy(value_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated float value = 1 [packed = true]; + * @return A list containing the value. + */ + public java.util.List + getValueList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(value_) : value_; + } + /** + * repeated float value = 1 [packed = true]; + * @return The count of value. + */ + public int getValueCount() { + return value_.size(); + } + /** + * repeated float value = 1 [packed = true]; + * @param index The index of the element to return. + * @return The value at the given index. + */ + public float getValue(int index) { + return value_.getFloat(index); + } + /** + * repeated float value = 1 [packed = true]; + * @param index The index to set the value at. + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue( + int index, float value) { + ensureValueIsMutable(); + value_.setFloat(index, value); + onChanged(); + return this; + } + /** + * repeated float value = 1 [packed = true]; + * @param value The value to add. + * @return This builder for chaining. + */ + public Builder addValue(float value) { + ensureValueIsMutable(); + value_.addFloat(value); + onChanged(); + return this; + } + /** + * repeated float value = 1 [packed = true]; + * @param values The value to add. + * @return This builder for chaining. + */ + public Builder addAllValue( + java.lang.Iterable values) { + ensureValueIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, value_); + onChanged(); + return this; + } + /** + * repeated float value = 1 [packed = true]; + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = emptyFloatList(); + bitField0_ = (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:tensorflow.FloatList) + } + + // @@protoc_insertion_point(class_scope:tensorflow.FloatList) + private static final org.tensorflow.proto.FloatList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.FloatList(); + } + + public static org.tensorflow.proto.FloatList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FloatList 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 org.tensorflow.proto.FloatList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FloatListOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FloatListOrBuilder.java new file mode 100644 index 00000000000..31a18866d89 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FloatListOrBuilder.java @@ -0,0 +1,26 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/example/feature.proto + +package org.tensorflow.proto; + +public interface FloatListOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.FloatList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated float value = 1 [packed = true]; + * @return A list containing the value. + */ + java.util.List getValueList(); + /** + * repeated float value = 1 [packed = true]; + * @return The count of value. + */ + int getValueCount(); + /** + * repeated float value = 1 [packed = true]; + * @param index The index of the element to return. + * @return The value at the given index. + */ + float getValue(int index); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FullTypeDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FullTypeDef.java new file mode 100644 index 00000000000..67347340a9f --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FullTypeDef.java @@ -0,0 +1,1270 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/full_type.proto + +package org.tensorflow.proto; + +/** + *
+ * Highly experimental and very likely to change.
+ * This encoding uses tags instead of dedicated messages for regularity. In
+ * particular the encoding imposes no restrictions on what the parameters of any
+ * type should be, which in particular needs to be true for type symbols.
+ * 
+ * + * Protobuf type {@code tensorflow.FullTypeDef} + */ +public final class FullTypeDef extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.FullTypeDef) + FullTypeDefOrBuilder { +private static final long serialVersionUID = 0L; + // Use FullTypeDef.newBuilder() to construct. + private FullTypeDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FullTypeDef() { + typeId_ = 0; + args_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FullTypeDef(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.FullTypeProtos.internal_static_tensorflow_FullTypeDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.FullTypeProtos.internal_static_tensorflow_FullTypeDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.FullTypeDef.class, org.tensorflow.proto.FullTypeDef.Builder.class); + } + + private int attrCase_ = 0; + private java.lang.Object attr_; + public enum AttrCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + S(3), + I(4), + ATTR_NOT_SET(0); + private final int value; + private AttrCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AttrCase valueOf(int value) { + return forNumber(value); + } + + public static AttrCase forNumber(int value) { + switch (value) { + case 3: return S; + case 4: return I; + case 0: return ATTR_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public AttrCase + getAttrCase() { + return AttrCase.forNumber( + attrCase_); + } + + public static final int TYPE_ID_FIELD_NUMBER = 1; + private int typeId_; + /** + *
+   * The principal type represented by this object. This may be a concrete type
+   * (Tensor, Dataset) a type variable (used for dependent types) a type
+   * symbol (Any, Union). See FullTypeId for details.
+   * 
+ * + * .tensorflow.FullTypeId type_id = 1; + * @return The enum numeric value on the wire for typeId. + */ + @java.lang.Override public int getTypeIdValue() { + return typeId_; + } + /** + *
+   * The principal type represented by this object. This may be a concrete type
+   * (Tensor, Dataset) a type variable (used for dependent types) a type
+   * symbol (Any, Union). See FullTypeId for details.
+   * 
+ * + * .tensorflow.FullTypeId type_id = 1; + * @return The typeId. + */ + @java.lang.Override public org.tensorflow.proto.FullTypeId getTypeId() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.FullTypeId result = org.tensorflow.proto.FullTypeId.valueOf(typeId_); + return result == null ? org.tensorflow.proto.FullTypeId.UNRECOGNIZED : result; + } + + public static final int ARGS_FIELD_NUMBER = 2; + private java.util.List args_; + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + @java.lang.Override + public java.util.List getArgsList() { + return args_; + } + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + @java.lang.Override + public java.util.List + getArgsOrBuilderList() { + return args_; + } + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + @java.lang.Override + public int getArgsCount() { + return args_.size(); + } + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + @java.lang.Override + public org.tensorflow.proto.FullTypeDef getArgs(int index) { + return args_.get(index); + } + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + @java.lang.Override + public org.tensorflow.proto.FullTypeDefOrBuilder getArgsOrBuilder( + int index) { + return args_.get(index); + } + + public static final int S_FIELD_NUMBER = 3; + /** + * string s = 3; + * @return Whether the s field is set. + */ + public boolean hasS() { + return attrCase_ == 3; + } + /** + * string s = 3; + * @return The s. + */ + public java.lang.String getS() { + java.lang.Object ref = ""; + if (attrCase_ == 3) { + ref = attr_; + } + 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(); + if (attrCase_ == 3) { + attr_ = s; + } + return s; + } + } + /** + * string s = 3; + * @return The bytes for s. + */ + public com.google.protobuf.ByteString + getSBytes() { + java.lang.Object ref = ""; + if (attrCase_ == 3) { + ref = attr_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (attrCase_ == 3) { + attr_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int I_FIELD_NUMBER = 4; + /** + *
+   * TODO(mdan): list/tensor, map? Need to reconcile with TFT_RECORD, etc.
+   * 
+ * + * int64 i = 4; + * @return Whether the i field is set. + */ + @java.lang.Override + public boolean hasI() { + return attrCase_ == 4; + } + /** + *
+   * TODO(mdan): list/tensor, map? Need to reconcile with TFT_RECORD, etc.
+   * 
+ * + * int64 i = 4; + * @return The i. + */ + @java.lang.Override + public long getI() { + if (attrCase_ == 4) { + return (java.lang.Long) attr_; + } + return 0L; + } + + 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 (typeId_ != org.tensorflow.proto.FullTypeId.TFT_UNSET.getNumber()) { + output.writeEnum(1, typeId_); + } + for (int i = 0; i < args_.size(); i++) { + output.writeMessage(2, args_.get(i)); + } + if (attrCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, attr_); + } + if (attrCase_ == 4) { + output.writeInt64( + 4, (long)((java.lang.Long) attr_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeId_ != org.tensorflow.proto.FullTypeId.TFT_UNSET.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, typeId_); + } + for (int i = 0; i < args_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, args_.get(i)); + } + if (attrCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, attr_); + } + if (attrCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 4, (long)((java.lang.Long) attr_)); + } + 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 org.tensorflow.proto.FullTypeDef)) { + return super.equals(obj); + } + org.tensorflow.proto.FullTypeDef other = (org.tensorflow.proto.FullTypeDef) obj; + + if (typeId_ != other.typeId_) return false; + if (!getArgsList() + .equals(other.getArgsList())) return false; + if (!getAttrCase().equals(other.getAttrCase())) return false; + switch (attrCase_) { + case 3: + if (!getS() + .equals(other.getS())) return false; + break; + case 4: + if (getI() + != other.getI()) return false; + break; + case 0: + default: + } + 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_ID_FIELD_NUMBER; + hash = (53 * hash) + typeId_; + if (getArgsCount() > 0) { + hash = (37 * hash) + ARGS_FIELD_NUMBER; + hash = (53 * hash) + getArgsList().hashCode(); + } + switch (attrCase_) { + case 3: + hash = (37 * hash) + S_FIELD_NUMBER; + hash = (53 * hash) + getS().hashCode(); + break; + case 4: + hash = (37 * hash) + I_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getI()); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.FullTypeDef parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FullTypeDef parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FullTypeDef parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FullTypeDef parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FullTypeDef parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FullTypeDef parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FullTypeDef parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FullTypeDef 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 org.tensorflow.proto.FullTypeDef parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FullTypeDef 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 org.tensorflow.proto.FullTypeDef parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FullTypeDef 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(org.tensorflow.proto.FullTypeDef 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; + } + /** + *
+   * Highly experimental and very likely to change.
+   * This encoding uses tags instead of dedicated messages for regularity. In
+   * particular the encoding imposes no restrictions on what the parameters of any
+   * type should be, which in particular needs to be true for type symbols.
+   * 
+ * + * Protobuf type {@code tensorflow.FullTypeDef} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.FullTypeDef) + org.tensorflow.proto.FullTypeDefOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.FullTypeProtos.internal_static_tensorflow_FullTypeDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.FullTypeProtos.internal_static_tensorflow_FullTypeDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.FullTypeDef.class, org.tensorflow.proto.FullTypeDef.Builder.class); + } + + // Construct using org.tensorflow.proto.FullTypeDef.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + typeId_ = 0; + + if (argsBuilder_ == null) { + args_ = java.util.Collections.emptyList(); + } else { + args_ = null; + argsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + attrCase_ = 0; + attr_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.FullTypeProtos.internal_static_tensorflow_FullTypeDef_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.FullTypeDef getDefaultInstanceForType() { + return org.tensorflow.proto.FullTypeDef.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.FullTypeDef build() { + org.tensorflow.proto.FullTypeDef result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.FullTypeDef buildPartial() { + org.tensorflow.proto.FullTypeDef result = new org.tensorflow.proto.FullTypeDef(this); + int from_bitField0_ = bitField0_; + result.typeId_ = typeId_; + if (argsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + args_ = java.util.Collections.unmodifiableList(args_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.args_ = args_; + } else { + result.args_ = argsBuilder_.build(); + } + if (attrCase_ == 3) { + result.attr_ = attr_; + } + if (attrCase_ == 4) { + result.attr_ = attr_; + } + result.attrCase_ = attrCase_; + 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 org.tensorflow.proto.FullTypeDef) { + return mergeFrom((org.tensorflow.proto.FullTypeDef)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.FullTypeDef other) { + if (other == org.tensorflow.proto.FullTypeDef.getDefaultInstance()) return this; + if (other.typeId_ != 0) { + setTypeIdValue(other.getTypeIdValue()); + } + if (argsBuilder_ == null) { + if (!other.args_.isEmpty()) { + if (args_.isEmpty()) { + args_ = other.args_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureArgsIsMutable(); + args_.addAll(other.args_); + } + onChanged(); + } + } else { + if (!other.args_.isEmpty()) { + if (argsBuilder_.isEmpty()) { + argsBuilder_.dispose(); + argsBuilder_ = null; + args_ = other.args_; + bitField0_ = (bitField0_ & ~0x00000001); + argsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getArgsFieldBuilder() : null; + } else { + argsBuilder_.addAllMessages(other.args_); + } + } + } + switch (other.getAttrCase()) { + case S: { + attrCase_ = 3; + attr_ = other.attr_; + onChanged(); + break; + } + case I: { + setI(other.getI()); + break; + } + case ATTR_NOT_SET: { + break; + } + } + 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: { + typeId_ = input.readEnum(); + + break; + } // case 8 + case 18: { + org.tensorflow.proto.FullTypeDef m = + input.readMessage( + org.tensorflow.proto.FullTypeDef.parser(), + extensionRegistry); + if (argsBuilder_ == null) { + ensureArgsIsMutable(); + args_.add(m); + } else { + argsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + attrCase_ = 3; + attr_ = s; + break; + } // case 26 + case 32: { + attr_ = input.readInt64(); + attrCase_ = 4; + break; + } // case 32 + 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 attrCase_ = 0; + private java.lang.Object attr_; + public AttrCase + getAttrCase() { + return AttrCase.forNumber( + attrCase_); + } + + public Builder clearAttr() { + attrCase_ = 0; + attr_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private int typeId_ = 0; + /** + *
+     * The principal type represented by this object. This may be a concrete type
+     * (Tensor, Dataset) a type variable (used for dependent types) a type
+     * symbol (Any, Union). See FullTypeId for details.
+     * 
+ * + * .tensorflow.FullTypeId type_id = 1; + * @return The enum numeric value on the wire for typeId. + */ + @java.lang.Override public int getTypeIdValue() { + return typeId_; + } + /** + *
+     * The principal type represented by this object. This may be a concrete type
+     * (Tensor, Dataset) a type variable (used for dependent types) a type
+     * symbol (Any, Union). See FullTypeId for details.
+     * 
+ * + * .tensorflow.FullTypeId type_id = 1; + * @param value The enum numeric value on the wire for typeId to set. + * @return This builder for chaining. + */ + public Builder setTypeIdValue(int value) { + + typeId_ = value; + onChanged(); + return this; + } + /** + *
+     * The principal type represented by this object. This may be a concrete type
+     * (Tensor, Dataset) a type variable (used for dependent types) a type
+     * symbol (Any, Union). See FullTypeId for details.
+     * 
+ * + * .tensorflow.FullTypeId type_id = 1; + * @return The typeId. + */ + @java.lang.Override + public org.tensorflow.proto.FullTypeId getTypeId() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.FullTypeId result = org.tensorflow.proto.FullTypeId.valueOf(typeId_); + return result == null ? org.tensorflow.proto.FullTypeId.UNRECOGNIZED : result; + } + /** + *
+     * The principal type represented by this object. This may be a concrete type
+     * (Tensor, Dataset) a type variable (used for dependent types) a type
+     * symbol (Any, Union). See FullTypeId for details.
+     * 
+ * + * .tensorflow.FullTypeId type_id = 1; + * @param value The typeId to set. + * @return This builder for chaining. + */ + public Builder setTypeId(org.tensorflow.proto.FullTypeId value) { + if (value == null) { + throw new NullPointerException(); + } + + typeId_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The principal type represented by this object. This may be a concrete type
+     * (Tensor, Dataset) a type variable (used for dependent types) a type
+     * symbol (Any, Union). See FullTypeId for details.
+     * 
+ * + * .tensorflow.FullTypeId type_id = 1; + * @return This builder for chaining. + */ + public Builder clearTypeId() { + + typeId_ = 0; + onChanged(); + return this; + } + + private java.util.List args_ = + java.util.Collections.emptyList(); + private void ensureArgsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + args_ = new java.util.ArrayList(args_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.FullTypeDef, org.tensorflow.proto.FullTypeDef.Builder, org.tensorflow.proto.FullTypeDefOrBuilder> argsBuilder_; + + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + public java.util.List getArgsList() { + if (argsBuilder_ == null) { + return java.util.Collections.unmodifiableList(args_); + } else { + return argsBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + public int getArgsCount() { + if (argsBuilder_ == null) { + return args_.size(); + } else { + return argsBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + public org.tensorflow.proto.FullTypeDef getArgs(int index) { + if (argsBuilder_ == null) { + return args_.get(index); + } else { + return argsBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + public Builder setArgs( + int index, org.tensorflow.proto.FullTypeDef value) { + if (argsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgsIsMutable(); + args_.set(index, value); + onChanged(); + } else { + argsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + public Builder setArgs( + int index, org.tensorflow.proto.FullTypeDef.Builder builderForValue) { + if (argsBuilder_ == null) { + ensureArgsIsMutable(); + args_.set(index, builderForValue.build()); + onChanged(); + } else { + argsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + public Builder addArgs(org.tensorflow.proto.FullTypeDef value) { + if (argsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgsIsMutable(); + args_.add(value); + onChanged(); + } else { + argsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + public Builder addArgs( + int index, org.tensorflow.proto.FullTypeDef value) { + if (argsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgsIsMutable(); + args_.add(index, value); + onChanged(); + } else { + argsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + public Builder addArgs( + org.tensorflow.proto.FullTypeDef.Builder builderForValue) { + if (argsBuilder_ == null) { + ensureArgsIsMutable(); + args_.add(builderForValue.build()); + onChanged(); + } else { + argsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + public Builder addArgs( + int index, org.tensorflow.proto.FullTypeDef.Builder builderForValue) { + if (argsBuilder_ == null) { + ensureArgsIsMutable(); + args_.add(index, builderForValue.build()); + onChanged(); + } else { + argsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + public Builder addAllArgs( + java.lang.Iterable values) { + if (argsBuilder_ == null) { + ensureArgsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, args_); + onChanged(); + } else { + argsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + public Builder clearArgs() { + if (argsBuilder_ == null) { + args_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + argsBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + public Builder removeArgs(int index) { + if (argsBuilder_ == null) { + ensureArgsIsMutable(); + args_.remove(index); + onChanged(); + } else { + argsBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + public org.tensorflow.proto.FullTypeDef.Builder getArgsBuilder( + int index) { + return getArgsFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + public org.tensorflow.proto.FullTypeDefOrBuilder getArgsOrBuilder( + int index) { + if (argsBuilder_ == null) { + return args_.get(index); } else { + return argsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + public java.util.List + getArgsOrBuilderList() { + if (argsBuilder_ != null) { + return argsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(args_); + } + } + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + public org.tensorflow.proto.FullTypeDef.Builder addArgsBuilder() { + return getArgsFieldBuilder().addBuilder( + org.tensorflow.proto.FullTypeDef.getDefaultInstance()); + } + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + public org.tensorflow.proto.FullTypeDef.Builder addArgsBuilder( + int index) { + return getArgsFieldBuilder().addBuilder( + index, org.tensorflow.proto.FullTypeDef.getDefaultInstance()); + } + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + public java.util.List + getArgsBuilderList() { + return getArgsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.FullTypeDef, org.tensorflow.proto.FullTypeDef.Builder, org.tensorflow.proto.FullTypeDefOrBuilder> + getArgsFieldBuilder() { + if (argsBuilder_ == null) { + argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.FullTypeDef, org.tensorflow.proto.FullTypeDef.Builder, org.tensorflow.proto.FullTypeDefOrBuilder>( + args_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + args_ = null; + } + return argsBuilder_; + } + + /** + * string s = 3; + * @return Whether the s field is set. + */ + @java.lang.Override + public boolean hasS() { + return attrCase_ == 3; + } + /** + * string s = 3; + * @return The s. + */ + @java.lang.Override + public java.lang.String getS() { + java.lang.Object ref = ""; + if (attrCase_ == 3) { + ref = attr_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (attrCase_ == 3) { + attr_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string s = 3; + * @return The bytes for s. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSBytes() { + java.lang.Object ref = ""; + if (attrCase_ == 3) { + ref = attr_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (attrCase_ == 3) { + attr_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string s = 3; + * @param value The s to set. + * @return This builder for chaining. + */ + public Builder setS( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + attrCase_ = 3; + attr_ = value; + onChanged(); + return this; + } + /** + * string s = 3; + * @return This builder for chaining. + */ + public Builder clearS() { + if (attrCase_ == 3) { + attrCase_ = 0; + attr_ = null; + onChanged(); + } + return this; + } + /** + * string s = 3; + * @param value The bytes for s to set. + * @return This builder for chaining. + */ + public Builder setSBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attrCase_ = 3; + attr_ = value; + onChanged(); + return this; + } + + /** + *
+     * TODO(mdan): list/tensor, map? Need to reconcile with TFT_RECORD, etc.
+     * 
+ * + * int64 i = 4; + * @return Whether the i field is set. + */ + public boolean hasI() { + return attrCase_ == 4; + } + /** + *
+     * TODO(mdan): list/tensor, map? Need to reconcile with TFT_RECORD, etc.
+     * 
+ * + * int64 i = 4; + * @return The i. + */ + public long getI() { + if (attrCase_ == 4) { + return (java.lang.Long) attr_; + } + return 0L; + } + /** + *
+     * TODO(mdan): list/tensor, map? Need to reconcile with TFT_RECORD, etc.
+     * 
+ * + * int64 i = 4; + * @param value The i to set. + * @return This builder for chaining. + */ + public Builder setI(long value) { + attrCase_ = 4; + attr_ = value; + onChanged(); + return this; + } + /** + *
+     * TODO(mdan): list/tensor, map? Need to reconcile with TFT_RECORD, etc.
+     * 
+ * + * int64 i = 4; + * @return This builder for chaining. + */ + public Builder clearI() { + if (attrCase_ == 4) { + attrCase_ = 0; + attr_ = null; + 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:tensorflow.FullTypeDef) + } + + // @@protoc_insertion_point(class_scope:tensorflow.FullTypeDef) + private static final org.tensorflow.proto.FullTypeDef DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.FullTypeDef(); + } + + public static org.tensorflow.proto.FullTypeDef getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FullTypeDef 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 org.tensorflow.proto.FullTypeDef getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FullTypeDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FullTypeDefOrBuilder.java new file mode 100644 index 00000000000..6fc125e608c --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FullTypeDefOrBuilder.java @@ -0,0 +1,94 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/full_type.proto + +package org.tensorflow.proto; + +public interface FullTypeDefOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.FullTypeDef) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The principal type represented by this object. This may be a concrete type
+   * (Tensor, Dataset) a type variable (used for dependent types) a type
+   * symbol (Any, Union). See FullTypeId for details.
+   * 
+ * + * .tensorflow.FullTypeId type_id = 1; + * @return The enum numeric value on the wire for typeId. + */ + int getTypeIdValue(); + /** + *
+   * The principal type represented by this object. This may be a concrete type
+   * (Tensor, Dataset) a type variable (used for dependent types) a type
+   * symbol (Any, Union). See FullTypeId for details.
+   * 
+ * + * .tensorflow.FullTypeId type_id = 1; + * @return The typeId. + */ + org.tensorflow.proto.FullTypeId getTypeId(); + + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + java.util.List + getArgsList(); + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + org.tensorflow.proto.FullTypeDef getArgs(int index); + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + int getArgsCount(); + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + java.util.List + getArgsOrBuilderList(); + /** + * repeated .tensorflow.FullTypeDef args = 2; + */ + org.tensorflow.proto.FullTypeDefOrBuilder getArgsOrBuilder( + int index); + + /** + * string s = 3; + * @return Whether the s field is set. + */ + boolean hasS(); + /** + * string s = 3; + * @return The s. + */ + java.lang.String getS(); + /** + * string s = 3; + * @return The bytes for s. + */ + com.google.protobuf.ByteString + getSBytes(); + + /** + *
+   * TODO(mdan): list/tensor, map? Need to reconcile with TFT_RECORD, etc.
+   * 
+ * + * int64 i = 4; + * @return Whether the i field is set. + */ + boolean hasI(); + /** + *
+   * TODO(mdan): list/tensor, map? Need to reconcile with TFT_RECORD, etc.
+   * 
+ * + * int64 i = 4; + * @return The i. + */ + long getI(); + + public org.tensorflow.proto.FullTypeDef.AttrCase getAttrCase(); +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FullTypeId.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FullTypeId.java similarity index 94% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FullTypeId.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FullTypeId.java index 91b88662227..42db6640978 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FullTypeId.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FullTypeId.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/full_type.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; /** *
@@ -219,6 +219,21 @@ public enum FullTypeId
    * TFT_ENCODED = 1004;
    */
   TFT_ENCODED(1004),
+  /**
+   * 
+   * The type of "shape tensors" where the runtime value is the shape of
+   * some tensor(s), i.e. the output of tf.shape.
+   * Shape tensors have special, host-only placement, in contrast to
+   * TFT_TENSOR[TFT_INT32] which is the type of a normal numeric tensor
+   * with no special placement.
+   * Examples:
+   *   TFT_SHAPE_TENSOR[TFT_INT32] is the most common
+   *   TFT_SHAPE_TENSOR[TFT_INT64] is also allowed
+   * 
+ * + * TFT_SHAPE_TENSOR = 1005; + */ + TFT_SHAPE_TENSOR(1005), /** *
    * The bool element type.
@@ -585,6 +600,21 @@ public enum FullTypeId
    * TFT_ENCODED = 1004;
    */
   public static final int TFT_ENCODED_VALUE = 1004;
+  /**
+   * 
+   * The type of "shape tensors" where the runtime value is the shape of
+   * some tensor(s), i.e. the output of tf.shape.
+   * Shape tensors have special, host-only placement, in contrast to
+   * TFT_TENSOR[TFT_INT32] which is the type of a normal numeric tensor
+   * with no special placement.
+   * Examples:
+   *   TFT_SHAPE_TENSOR[TFT_INT32] is the most common
+   *   TFT_SHAPE_TENSOR[TFT_INT64] is also allowed
+   * 
+ * + * TFT_SHAPE_TENSOR = 1005; + */ + public static final int TFT_SHAPE_TENSOR_VALUE = 1005; /** *
    * The bool element type.
@@ -753,6 +783,8 @@ public final int getNumber() {
   }
 
   /**
+   * @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
@@ -760,6 +792,10 @@ public static FullTypeId 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 FullTypeId forNumber(int value) {
     switch (value) {
       case 0: return TFT_UNSET;
@@ -774,6 +810,7 @@ public static FullTypeId forNumber(int value) {
       case 1002: return TFT_OPTIONAL;
       case 1003: return TFT_LITERAL;
       case 1004: return TFT_ENCODED;
+      case 1005: return TFT_SHAPE_TENSOR;
       case 200: return TFT_BOOL;
       case 201: return TFT_UINT8;
       case 202: return TFT_UINT16;
@@ -813,6 +850,10 @@ public FullTypeId findValueByNumber(int 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
@@ -821,7 +862,7 @@ public FullTypeId findValueByNumber(int number) {
   }
   public static final com.google.protobuf.Descriptors.EnumDescriptor
       getDescriptor() {
-    return org.tensorflow.proto.framework.FullTypeProtos.getDescriptor().getEnumTypes().get(0);
+    return org.tensorflow.proto.FullTypeProtos.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final FullTypeId[] VALUES = values();
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FullTypeProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FullTypeProtos.java
new file mode 100644
index 00000000000..ef59c5b9751
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FullTypeProtos.java
@@ -0,0 +1,69 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/framework/full_type.proto
+
+package org.tensorflow.proto;
+
+public final class FullTypeProtos {
+  private FullTypeProtos() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_FullTypeDef_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_FullTypeDef_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n)tensorflow/core/framework/full_type.pr" +
+      "oto\022\ntensorflow\"\177\n\013FullTypeDef\022\'\n\007type_i" +
+      "d\030\001 \001(\0162\026.tensorflow.FullTypeId\022%\n\004args\030" +
+      "\002 \003(\0132\027.tensorflow.FullTypeDef\022\013\n\001s\030\003 \001(" +
+      "\tH\000\022\013\n\001i\030\004 \001(\003H\000B\006\n\004attr*\332\004\n\nFullTypeId\022" +
+      "\r\n\tTFT_UNSET\020\000\022\013\n\007TFT_VAR\020\001\022\013\n\007TFT_ANY\020\002" +
+      "\022\017\n\013TFT_PRODUCT\020\003\022\r\n\tTFT_NAMED\020\004\022\020\n\014TFT_" +
+      "FOR_EACH\020\024\022\020\n\014TFT_CALLABLE\020d\022\017\n\nTFT_TENS" +
+      "OR\020\350\007\022\016\n\tTFT_ARRAY\020\351\007\022\021\n\014TFT_OPTIONAL\020\352\007" +
+      "\022\020\n\013TFT_LITERAL\020\353\007\022\020\n\013TFT_ENCODED\020\354\007\022\025\n\020" +
+      "TFT_SHAPE_TENSOR\020\355\007\022\r\n\010TFT_BOOL\020\310\001\022\016\n\tTF" +
+      "T_UINT8\020\311\001\022\017\n\nTFT_UINT16\020\312\001\022\017\n\nTFT_UINT3" +
+      "2\020\313\001\022\017\n\nTFT_UINT64\020\314\001\022\r\n\010TFT_INT8\020\315\001\022\016\n\t" +
+      "TFT_INT16\020\316\001\022\016\n\tTFT_INT32\020\317\001\022\016\n\tTFT_INT6" +
+      "4\020\320\001\022\r\n\010TFT_HALF\020\321\001\022\016\n\tTFT_FLOAT\020\322\001\022\017\n\nT" +
+      "FT_DOUBLE\020\323\001\022\021\n\014TFT_BFLOAT16\020\327\001\022\022\n\rTFT_C" +
+      "OMPLEX64\020\324\001\022\023\n\016TFT_COMPLEX128\020\325\001\022\017\n\nTFT_" +
+      "STRING\020\326\001\022\020\n\013TFT_DATASET\020\366N\022\017\n\nTFT_RAGGE" +
+      "D\020\367N\022\021\n\014TFT_ITERATOR\020\370N\022\023\n\016TFT_MUTEX_LOC" +
+      "K\020\332O\022\027\n\022TFT_LEGACY_VARIANT\020\333OB}\n\024org.ten" +
+      "sorflow.protoB\016FullTypeProtosP\001ZPgithub." +
+      "com/tensorflow/tensorflow/tensorflow/go/" +
+      "core/framework/full_type_go_proto\370\001\001b\006pr" +
+      "oto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+        });
+    internal_static_tensorflow_FullTypeDef_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_tensorflow_FullTypeDef_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_FullTypeDef_descriptor,
+        new java.lang.String[] { "TypeId", "Args", "S", "I", "Attr", });
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FunctionDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FunctionDef.java
similarity index 76%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FunctionDef.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FunctionDef.java
index 3437857d610..c6eb5cf8fef 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FunctionDef.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FunctionDef.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/framework/function.proto
 
-package org.tensorflow.proto.framework;
+package org.tensorflow.proto;
 
 /**
  * 
@@ -14,7 +14,7 @@
  *
  * Protobuf type {@code tensorflow.FunctionDef}
  */
-public  final class FunctionDef extends
+public final class FunctionDef extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.FunctionDef)
     FunctionDefOrBuilder {
@@ -39,137 +39,9 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private FunctionDef(
-      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: {
-            org.tensorflow.proto.framework.OpDef.Builder subBuilder = null;
-            if (signature_ != null) {
-              subBuilder = signature_.toBuilder();
-            }
-            signature_ = input.readMessage(org.tensorflow.proto.framework.OpDef.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(signature_);
-              signature_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-              nodeDef_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000008;
-            }
-            nodeDef_.add(
-                input.readMessage(org.tensorflow.proto.framework.NodeDef.parser(), extensionRegistry));
-            break;
-          }
-          case 34: {
-            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
-              ret_ = com.google.protobuf.MapField.newMapField(
-                  RetDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000010;
-            }
-            com.google.protobuf.MapEntry
-            ret__ = input.readMessage(
-                RetDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            ret_.getMutableMap().put(
-                ret__.getKey(), ret__.getValue());
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              attr_ = com.google.protobuf.MapField.newMapField(
-                  AttrDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
-            }
-            com.google.protobuf.MapEntry
-            attr__ = input.readMessage(
-                AttrDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            attr_.getMutableMap().put(
-                attr__.getKey(), attr__.getValue());
-            break;
-          }
-          case 50: {
-            if (!((mutable_bitField0_ & 0x00000020) != 0)) {
-              controlRet_ = com.google.protobuf.MapField.newMapField(
-                  ControlRetDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000020;
-            }
-            com.google.protobuf.MapEntry
-            controlRet__ = input.readMessage(
-                ControlRetDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            controlRet_.getMutableMap().put(
-                controlRet__.getKey(), controlRet__.getValue());
-            break;
-          }
-          case 58: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              argAttr_ = com.google.protobuf.MapField.newMapField(
-                  ArgAttrDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000002;
-            }
-            com.google.protobuf.MapEntry
-            argAttr__ = input.readMessage(
-                ArgAttrDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            argAttr_.getMutableMap().put(
-                argAttr__.getKey(), argAttr__.getValue());
-            break;
-          }
-          case 66: {
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              resourceArgUniqueId_ = com.google.protobuf.MapField.newMapField(
-                  ResourceArgUniqueIdDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000004;
-            }
-            com.google.protobuf.MapEntry
-            resourceArgUniqueId__ = input.readMessage(
-                ResourceArgUniqueIdDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            resourceArgUniqueId_.getMutableMap().put(
-                resourceArgUniqueId__.getKey(), resourceArgUniqueId__.getValue());
-            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_ & 0x00000008) != 0)) {
-        nodeDef_ = java.util.Collections.unmodifiableList(nodeDef_);
-      }
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_FunctionDef_descriptor;
+    return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_FunctionDef_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
@@ -195,9 +67,9 @@ protected com.google.protobuf.MapField internalGetMapField(
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_FunctionDef_fieldAccessorTable
+    return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_FunctionDef_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.framework.FunctionDef.class, org.tensorflow.proto.framework.FunctionDef.Builder.class);
+            org.tensorflow.proto.FunctionDef.class, org.tensorflow.proto.FunctionDef.Builder.class);
   }
 
   public interface ArgAttrsOrBuilder extends
@@ -217,25 +89,27 @@ boolean containsAttr(
      * Use {@link #getAttrMap()} instead.
      */
     @java.lang.Deprecated
-    java.util.Map
+    java.util.Map
     getAttr();
     /**
      * map<string, .tensorflow.AttrValue> attr = 1;
      */
-    java.util.Map
+    java.util.Map
     getAttrMap();
     /**
      * map<string, .tensorflow.AttrValue> attr = 1;
      */
 
-    org.tensorflow.proto.framework.AttrValue getAttrOrDefault(
+    /* nullable */
+org.tensorflow.proto.AttrValue getAttrOrDefault(
         java.lang.String key,
-        org.tensorflow.proto.framework.AttrValue defaultValue);
+        /* nullable */
+org.tensorflow.proto.AttrValue defaultValue);
     /**
      * map<string, .tensorflow.AttrValue> attr = 1;
      */
 
-    org.tensorflow.proto.framework.AttrValue getAttrOrThrow(
+    org.tensorflow.proto.AttrValue getAttrOrThrow(
         java.lang.String key);
   }
   /**
@@ -246,7 +120,7 @@ org.tensorflow.proto.framework.AttrValue getAttrOrThrow(
    *
    * Protobuf type {@code tensorflow.FunctionDef.ArgAttrs}
    */
-  public  static final class ArgAttrs extends
+  public static final class ArgAttrs extends
       com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:tensorflow.FunctionDef.ArgAttrs)
       ArgAttrsOrBuilder {
@@ -270,60 +144,9 @@ protected java.lang.Object newInstance(
     getUnknownFields() {
       return this.unknownFields;
     }
-    private ArgAttrs(
-        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)) {
-                attr_ = com.google.protobuf.MapField.newMapField(
-                    AttrDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry
-              attr__ = input.readMessage(
-                  AttrDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              attr_.getMutableMap().put(
-                  attr__.getKey(), attr__.getValue());
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
-            }
-          }
-        }
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(this);
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
-      } finally {
-        this.unknownFields = unknownFields.build();
-        makeExtensionsImmutable();
-      }
-    }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_FunctionDef_ArgAttrs_descriptor;
+      return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_FunctionDef_ArgAttrs_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
@@ -341,26 +164,26 @@ protected com.google.protobuf.MapField internalGetMapField(
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_FunctionDef_ArgAttrs_fieldAccessorTable
+      return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_FunctionDef_ArgAttrs_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              org.tensorflow.proto.framework.FunctionDef.ArgAttrs.class, org.tensorflow.proto.framework.FunctionDef.ArgAttrs.Builder.class);
+              org.tensorflow.proto.FunctionDef.ArgAttrs.class, org.tensorflow.proto.FunctionDef.ArgAttrs.Builder.class);
     }
 
     public static final int ATTR_FIELD_NUMBER = 1;
     private static final class AttrDefaultEntryHolder {
       static final com.google.protobuf.MapEntry<
-          java.lang.String, org.tensorflow.proto.framework.AttrValue> defaultEntry =
+          java.lang.String, org.tensorflow.proto.AttrValue> defaultEntry =
               com.google.protobuf.MapEntry
-              .newDefaultInstance(
-                  org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_FunctionDef_ArgAttrs_AttrEntry_descriptor, 
+              .newDefaultInstance(
+                  org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_FunctionDef_ArgAttrs_AttrEntry_descriptor, 
                   com.google.protobuf.WireFormat.FieldType.STRING,
                   "",
                   com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                  org.tensorflow.proto.framework.AttrValue.getDefaultInstance());
+                  org.tensorflow.proto.AttrValue.getDefaultInstance());
     }
     private com.google.protobuf.MapField<
-        java.lang.String, org.tensorflow.proto.framework.AttrValue> attr_;
-    private com.google.protobuf.MapField
+        java.lang.String, org.tensorflow.proto.AttrValue> attr_;
+    private com.google.protobuf.MapField
     internalGetAttr() {
       if (attr_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
@@ -376,45 +199,50 @@ public int getAttrCount() {
      * map<string, .tensorflow.AttrValue> attr = 1;
      */
 
+    @java.lang.Override
     public boolean containsAttr(
         java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetAttr().getMap().containsKey(key);
     }
     /**
      * Use {@link #getAttrMap()} instead.
      */
+    @java.lang.Override
     @java.lang.Deprecated
-    public java.util.Map getAttr() {
+    public java.util.Map getAttr() {
       return getAttrMap();
     }
     /**
      * map<string, .tensorflow.AttrValue> attr = 1;
      */
+    @java.lang.Override
 
-    public java.util.Map getAttrMap() {
+    public java.util.Map getAttrMap() {
       return internalGetAttr().getMap();
     }
     /**
      * map<string, .tensorflow.AttrValue> attr = 1;
      */
+    @java.lang.Override
 
-    public org.tensorflow.proto.framework.AttrValue getAttrOrDefault(
+    public org.tensorflow.proto.AttrValue getAttrOrDefault(
         java.lang.String key,
-        org.tensorflow.proto.framework.AttrValue defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
+        org.tensorflow.proto.AttrValue defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
           internalGetAttr().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
      * map<string, .tensorflow.AttrValue> attr = 1;
      */
+    @java.lang.Override
 
-    public org.tensorflow.proto.framework.AttrValue getAttrOrThrow(
+    public org.tensorflow.proto.AttrValue getAttrOrThrow(
         java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
           internalGetAttr().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
@@ -442,7 +270,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
           internalGetAttr(),
           AttrDefaultEntryHolder.defaultEntry,
           1);
-      unknownFields.writeTo(output);
+      getUnknownFields().writeTo(output);
     }
 
     @java.lang.Override
@@ -451,9 +279,9 @@ public int getSerializedSize() {
       if (size != -1) return size;
 
       size = 0;
-      for (java.util.Map.Entry entry
+      for (java.util.Map.Entry entry
            : internalGetAttr().getMap().entrySet()) {
-        com.google.protobuf.MapEntry
+        com.google.protobuf.MapEntry
         attr__ = AttrDefaultEntryHolder.defaultEntry.newBuilderForType()
             .setKey(entry.getKey())
             .setValue(entry.getValue())
@@ -461,7 +289,7 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
             .computeMessageSize(1, attr__);
       }
-      size += unknownFields.getSerializedSize();
+      size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
       return size;
     }
@@ -471,14 +299,14 @@ public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
        return true;
       }
-      if (!(obj instanceof org.tensorflow.proto.framework.FunctionDef.ArgAttrs)) {
+      if (!(obj instanceof org.tensorflow.proto.FunctionDef.ArgAttrs)) {
         return super.equals(obj);
       }
-      org.tensorflow.proto.framework.FunctionDef.ArgAttrs other = (org.tensorflow.proto.framework.FunctionDef.ArgAttrs) obj;
+      org.tensorflow.proto.FunctionDef.ArgAttrs other = (org.tensorflow.proto.FunctionDef.ArgAttrs) obj;
 
       if (!internalGetAttr().equals(
           other.internalGetAttr())) return false;
-      if (!unknownFields.equals(other.unknownFields)) return false;
+      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
     }
 
@@ -493,74 +321,74 @@ public int hashCode() {
         hash = (37 * hash) + ATTR_FIELD_NUMBER;
         hash = (53 * hash) + internalGetAttr().hashCode();
       }
-      hash = (29 * hash) + unknownFields.hashCode();
+      hash = (29 * hash) + getUnknownFields().hashCode();
       memoizedHashCode = hash;
       return hash;
     }
 
-    public static org.tensorflow.proto.framework.FunctionDef.ArgAttrs parseFrom(
+    public static org.tensorflow.proto.FunctionDef.ArgAttrs parseFrom(
         java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static org.tensorflow.proto.framework.FunctionDef.ArgAttrs parseFrom(
+    public static org.tensorflow.proto.FunctionDef.ArgAttrs parseFrom(
         java.nio.ByteBuffer data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static org.tensorflow.proto.framework.FunctionDef.ArgAttrs parseFrom(
+    public static org.tensorflow.proto.FunctionDef.ArgAttrs parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static org.tensorflow.proto.framework.FunctionDef.ArgAttrs parseFrom(
+    public static org.tensorflow.proto.FunctionDef.ArgAttrs parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static org.tensorflow.proto.framework.FunctionDef.ArgAttrs parseFrom(byte[] data)
+    public static org.tensorflow.proto.FunctionDef.ArgAttrs parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static org.tensorflow.proto.framework.FunctionDef.ArgAttrs parseFrom(
+    public static org.tensorflow.proto.FunctionDef.ArgAttrs parseFrom(
         byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static org.tensorflow.proto.framework.FunctionDef.ArgAttrs parseFrom(java.io.InputStream input)
+    public static org.tensorflow.proto.FunctionDef.ArgAttrs parseFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static org.tensorflow.proto.framework.FunctionDef.ArgAttrs parseFrom(
+    public static org.tensorflow.proto.FunctionDef.ArgAttrs 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 org.tensorflow.proto.framework.FunctionDef.ArgAttrs parseDelimitedFrom(java.io.InputStream input)
+    public static org.tensorflow.proto.FunctionDef.ArgAttrs parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseDelimitedWithIOException(PARSER, input);
     }
-    public static org.tensorflow.proto.framework.FunctionDef.ArgAttrs parseDelimitedFrom(
+    public static org.tensorflow.proto.FunctionDef.ArgAttrs 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 org.tensorflow.proto.framework.FunctionDef.ArgAttrs parseFrom(
+    public static org.tensorflow.proto.FunctionDef.ArgAttrs parseFrom(
         com.google.protobuf.CodedInputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static org.tensorflow.proto.framework.FunctionDef.ArgAttrs parseFrom(
+    public static org.tensorflow.proto.FunctionDef.ArgAttrs parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
@@ -573,7 +401,7 @@ public static org.tensorflow.proto.framework.FunctionDef.ArgAttrs parseFrom(
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(org.tensorflow.proto.framework.FunctionDef.ArgAttrs prototype) {
+    public static Builder newBuilder(org.tensorflow.proto.FunctionDef.ArgAttrs prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
     @java.lang.Override
@@ -599,10 +427,10 @@ protected Builder newBuilderForType(
     public static final class Builder extends
         com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:tensorflow.FunctionDef.ArgAttrs)
-        org.tensorflow.proto.framework.FunctionDef.ArgAttrsOrBuilder {
+        org.tensorflow.proto.FunctionDef.ArgAttrsOrBuilder {
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
-        return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_FunctionDef_ArgAttrs_descriptor;
+        return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_FunctionDef_ArgAttrs_descriptor;
       }
 
       @SuppressWarnings({"rawtypes"})
@@ -630,25 +458,20 @@ protected com.google.protobuf.MapField internalGetMutableMapField(
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_FunctionDef_ArgAttrs_fieldAccessorTable
+        return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_FunctionDef_ArgAttrs_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                org.tensorflow.proto.framework.FunctionDef.ArgAttrs.class, org.tensorflow.proto.framework.FunctionDef.ArgAttrs.Builder.class);
+                org.tensorflow.proto.FunctionDef.ArgAttrs.class, org.tensorflow.proto.FunctionDef.ArgAttrs.Builder.class);
       }
 
-      // Construct using org.tensorflow.proto.framework.FunctionDef.ArgAttrs.newBuilder()
+      // Construct using org.tensorflow.proto.FunctionDef.ArgAttrs.newBuilder()
       private Builder() {
-        maybeForceBuilderInitialization();
+
       }
 
       private Builder(
           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-        maybeForceBuilderInitialization();
-      }
-      private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+
       }
       @java.lang.Override
       public Builder clear() {
@@ -660,17 +483,17 @@ public Builder clear() {
       @java.lang.Override
       public com.google.protobuf.Descriptors.Descriptor
           getDescriptorForType() {
-        return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_FunctionDef_ArgAttrs_descriptor;
+        return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_FunctionDef_ArgAttrs_descriptor;
       }
 
       @java.lang.Override
-      public org.tensorflow.proto.framework.FunctionDef.ArgAttrs getDefaultInstanceForType() {
-        return org.tensorflow.proto.framework.FunctionDef.ArgAttrs.getDefaultInstance();
+      public org.tensorflow.proto.FunctionDef.ArgAttrs getDefaultInstanceForType() {
+        return org.tensorflow.proto.FunctionDef.ArgAttrs.getDefaultInstance();
       }
 
       @java.lang.Override
-      public org.tensorflow.proto.framework.FunctionDef.ArgAttrs build() {
-        org.tensorflow.proto.framework.FunctionDef.ArgAttrs result = buildPartial();
+      public org.tensorflow.proto.FunctionDef.ArgAttrs build() {
+        org.tensorflow.proto.FunctionDef.ArgAttrs result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -678,8 +501,8 @@ public org.tensorflow.proto.framework.FunctionDef.ArgAttrs build() {
       }
 
       @java.lang.Override
-      public org.tensorflow.proto.framework.FunctionDef.ArgAttrs buildPartial() {
-        org.tensorflow.proto.framework.FunctionDef.ArgAttrs result = new org.tensorflow.proto.framework.FunctionDef.ArgAttrs(this);
+      public org.tensorflow.proto.FunctionDef.ArgAttrs buildPartial() {
+        org.tensorflow.proto.FunctionDef.ArgAttrs result = new org.tensorflow.proto.FunctionDef.ArgAttrs(this);
         int from_bitField0_ = bitField0_;
         result.attr_ = internalGetAttr();
         result.attr_.makeImmutable();
@@ -721,19 +544,19 @@ public Builder addRepeatedField(
       }
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof org.tensorflow.proto.framework.FunctionDef.ArgAttrs) {
-          return mergeFrom((org.tensorflow.proto.framework.FunctionDef.ArgAttrs)other);
+        if (other instanceof org.tensorflow.proto.FunctionDef.ArgAttrs) {
+          return mergeFrom((org.tensorflow.proto.FunctionDef.ArgAttrs)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(org.tensorflow.proto.framework.FunctionDef.ArgAttrs other) {
-        if (other == org.tensorflow.proto.framework.FunctionDef.ArgAttrs.getDefaultInstance()) return this;
+      public Builder mergeFrom(org.tensorflow.proto.FunctionDef.ArgAttrs other) {
+        if (other == org.tensorflow.proto.FunctionDef.ArgAttrs.getDefaultInstance()) return this;
         internalGetMutableAttr().mergeFrom(
             other.internalGetAttr());
-        this.mergeUnknownFields(other.unknownFields);
+        this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
         return this;
       }
@@ -748,24 +571,45 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        org.tensorflow.proto.framework.FunctionDef.ArgAttrs parsedMessage = null;
+        if (extensionRegistry == null) {
+          throw new java.lang.NullPointerException();
+        }
         try {
-          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+          boolean done = false;
+          while (!done) {
+            int tag = input.readTag();
+            switch (tag) {
+              case 0:
+                done = true;
+                break;
+              case 10: {
+                com.google.protobuf.MapEntry
+                attr__ = input.readMessage(
+                    AttrDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+                internalGetMutableAttr().getMutableMap().put(
+                    attr__.getKey(), attr__.getValue());
+                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) {
-          parsedMessage = (org.tensorflow.proto.framework.FunctionDef.ArgAttrs) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
-          if (parsedMessage != null) {
-            mergeFrom(parsedMessage);
-          }
-        }
+          onChanged();
+        } // finally
         return this;
       }
       private int bitField0_;
 
       private com.google.protobuf.MapField<
-          java.lang.String, org.tensorflow.proto.framework.AttrValue> attr_;
-      private com.google.protobuf.MapField
+          java.lang.String, org.tensorflow.proto.AttrValue> attr_;
+      private com.google.protobuf.MapField
       internalGetAttr() {
         if (attr_ == null) {
           return com.google.protobuf.MapField.emptyMapField(
@@ -773,7 +617,7 @@ public Builder mergeFrom(
         }
         return attr_;
       }
-      private com.google.protobuf.MapField
+      private com.google.protobuf.MapField
       internalGetMutableAttr() {
         onChanged();;
         if (attr_ == null) {
@@ -793,45 +637,50 @@ public int getAttrCount() {
        * map<string, .tensorflow.AttrValue> attr = 1;
        */
 
+      @java.lang.Override
       public boolean containsAttr(
           java.lang.String key) {
-        if (key == null) { throw new java.lang.NullPointerException(); }
+        if (key == null) { throw new NullPointerException("map key"); }
         return internalGetAttr().getMap().containsKey(key);
       }
       /**
        * Use {@link #getAttrMap()} instead.
        */
+      @java.lang.Override
       @java.lang.Deprecated
-      public java.util.Map getAttr() {
+      public java.util.Map getAttr() {
         return getAttrMap();
       }
       /**
        * map<string, .tensorflow.AttrValue> attr = 1;
        */
+      @java.lang.Override
 
-      public java.util.Map getAttrMap() {
+      public java.util.Map getAttrMap() {
         return internalGetAttr().getMap();
       }
       /**
        * map<string, .tensorflow.AttrValue> attr = 1;
        */
+      @java.lang.Override
 
-      public org.tensorflow.proto.framework.AttrValue getAttrOrDefault(
+      public org.tensorflow.proto.AttrValue getAttrOrDefault(
           java.lang.String key,
-          org.tensorflow.proto.framework.AttrValue defaultValue) {
-        if (key == null) { throw new java.lang.NullPointerException(); }
-        java.util.Map map =
+          org.tensorflow.proto.AttrValue defaultValue) {
+        if (key == null) { throw new NullPointerException("map key"); }
+        java.util.Map map =
             internalGetAttr().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
       /**
        * map<string, .tensorflow.AttrValue> attr = 1;
        */
+      @java.lang.Override
 
-      public org.tensorflow.proto.framework.AttrValue getAttrOrThrow(
+      public org.tensorflow.proto.AttrValue getAttrOrThrow(
           java.lang.String key) {
-        if (key == null) { throw new java.lang.NullPointerException(); }
-        java.util.Map map =
+        if (key == null) { throw new NullPointerException("map key"); }
+        java.util.Map map =
             internalGetAttr().getMap();
         if (!map.containsKey(key)) {
           throw new java.lang.IllegalArgumentException();
@@ -850,7 +699,7 @@ public Builder clearAttr() {
 
       public Builder removeAttr(
           java.lang.String key) {
-        if (key == null) { throw new java.lang.NullPointerException(); }
+        if (key == null) { throw new NullPointerException("map key"); }
         internalGetMutableAttr().getMutableMap()
             .remove(key);
         return this;
@@ -859,7 +708,7 @@ public Builder removeAttr(
        * Use alternate mutation accessors instead.
        */
       @java.lang.Deprecated
-      public java.util.Map
+      public java.util.Map
       getMutableAttr() {
         return internalGetMutableAttr().getMutableMap();
       }
@@ -868,9 +717,12 @@ public Builder removeAttr(
        */
       public Builder putAttr(
           java.lang.String key,
-          org.tensorflow.proto.framework.AttrValue value) {
-        if (key == null) { throw new java.lang.NullPointerException(); }
-        if (value == null) { throw new java.lang.NullPointerException(); }
+          org.tensorflow.proto.AttrValue value) {
+        if (key == null) { throw new NullPointerException("map key"); }
+        if (value == null) {
+  throw new NullPointerException("map value");
+}
+
         internalGetMutableAttr().getMutableMap()
             .put(key, value);
         return this;
@@ -880,7 +732,7 @@ public Builder putAttr(
        */
 
       public Builder putAllAttr(
-          java.util.Map values) {
+          java.util.Map values) {
         internalGetMutableAttr().getMutableMap()
             .putAll(values);
         return this;
@@ -902,12 +754,12 @@ public final Builder mergeUnknownFields(
     }
 
     // @@protoc_insertion_point(class_scope:tensorflow.FunctionDef.ArgAttrs)
-    private static final org.tensorflow.proto.framework.FunctionDef.ArgAttrs DEFAULT_INSTANCE;
+    private static final org.tensorflow.proto.FunctionDef.ArgAttrs DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE = new org.tensorflow.proto.framework.FunctionDef.ArgAttrs();
+      DEFAULT_INSTANCE = new org.tensorflow.proto.FunctionDef.ArgAttrs();
     }
 
-    public static org.tensorflow.proto.framework.FunctionDef.ArgAttrs getDefaultInstance() {
+    public static org.tensorflow.proto.FunctionDef.ArgAttrs getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
@@ -918,7 +770,18 @@ public ArgAttrs parsePartialFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
-        return new ArgAttrs(input, extensionRegistry);
+        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();
       }
     };
 
@@ -932,14 +795,14 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.FunctionDef.ArgAttrs getDefaultInstanceForType() {
+    public org.tensorflow.proto.FunctionDef.ArgAttrs getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
 
   }
 
   public static final int SIGNATURE_FIELD_NUMBER = 1;
-  private org.tensorflow.proto.framework.OpDef signature_;
+  private org.tensorflow.proto.OpDef signature_;
   /**
    * 
    * The definition of the function's name, arguments, return values,
@@ -947,7 +810,9 @@ public org.tensorflow.proto.framework.FunctionDef.ArgAttrs getDefaultInstanceFor
    * 
* * .tensorflow.OpDef signature = 1; + * @return Whether the signature field is set. */ + @java.lang.Override public boolean hasSignature() { return signature_ != null; } @@ -958,9 +823,11 @@ public boolean hasSignature() { *
* * .tensorflow.OpDef signature = 1; + * @return The signature. */ - public org.tensorflow.proto.framework.OpDef getSignature() { - return signature_ == null ? org.tensorflow.proto.framework.OpDef.getDefaultInstance() : signature_; + @java.lang.Override + public org.tensorflow.proto.OpDef getSignature() { + return signature_ == null ? org.tensorflow.proto.OpDef.getDefaultInstance() : signature_; } /** *
@@ -970,25 +837,26 @@ public org.tensorflow.proto.framework.OpDef getSignature() {
    *
    * .tensorflow.OpDef signature = 1;
    */
-  public org.tensorflow.proto.framework.OpDefOrBuilder getSignatureOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.OpDefOrBuilder getSignatureOrBuilder() {
     return getSignature();
   }
 
   public static final int ATTR_FIELD_NUMBER = 5;
   private static final class AttrDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-        java.lang.String, org.tensorflow.proto.framework.AttrValue> defaultEntry =
+        java.lang.String, org.tensorflow.proto.AttrValue> defaultEntry =
             com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_FunctionDef_AttrEntry_descriptor, 
+            .newDefaultInstance(
+                org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_FunctionDef_AttrEntry_descriptor, 
                 com.google.protobuf.WireFormat.FieldType.STRING,
                 "",
                 com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                org.tensorflow.proto.framework.AttrValue.getDefaultInstance());
+                org.tensorflow.proto.AttrValue.getDefaultInstance());
   }
   private com.google.protobuf.MapField<
-      java.lang.String, org.tensorflow.proto.framework.AttrValue> attr_;
-  private com.google.protobuf.MapField
+      java.lang.String, org.tensorflow.proto.AttrValue> attr_;
+  private com.google.protobuf.MapField
   internalGetAttr() {
     if (attr_ == null) {
       return com.google.protobuf.MapField.emptyMapField(
@@ -1008,16 +876,18 @@ public int getAttrCount() {
    * map<string, .tensorflow.AttrValue> attr = 5;
    */
 
+  @java.lang.Override
   public boolean containsAttr(
       java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetAttr().getMap().containsKey(key);
   }
   /**
    * Use {@link #getAttrMap()} instead.
    */
+  @java.lang.Override
   @java.lang.Deprecated
-  public java.util.Map getAttr() {
+  public java.util.Map getAttr() {
     return getAttrMap();
   }
   /**
@@ -1027,8 +897,9 @@ public java.util.Map
    *
    * map<string, .tensorflow.AttrValue> attr = 5;
    */
+  @java.lang.Override
 
-  public java.util.Map getAttrMap() {
+  public java.util.Map getAttrMap() {
     return internalGetAttr().getMap();
   }
   /**
@@ -1038,12 +909,13 @@ public java.util.Map
    *
    * map<string, .tensorflow.AttrValue> attr = 5;
    */
+  @java.lang.Override
 
-  public org.tensorflow.proto.framework.AttrValue getAttrOrDefault(
+  public org.tensorflow.proto.AttrValue getAttrOrDefault(
       java.lang.String key,
-      org.tensorflow.proto.framework.AttrValue defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
+      org.tensorflow.proto.AttrValue defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
         internalGetAttr().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
@@ -1054,11 +926,12 @@ public org.tensorflow.proto.framework.AttrValue getAttrOrDefault(
    *
    * map<string, .tensorflow.AttrValue> attr = 5;
    */
+  @java.lang.Override
 
-  public org.tensorflow.proto.framework.AttrValue getAttrOrThrow(
+  public org.tensorflow.proto.AttrValue getAttrOrThrow(
       java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
         internalGetAttr().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
@@ -1069,18 +942,18 @@ public org.tensorflow.proto.framework.AttrValue getAttrOrThrow(
   public static final int ARG_ATTR_FIELD_NUMBER = 7;
   private static final class ArgAttrDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-        java.lang.Integer, org.tensorflow.proto.framework.FunctionDef.ArgAttrs> defaultEntry =
+        java.lang.Integer, org.tensorflow.proto.FunctionDef.ArgAttrs> defaultEntry =
             com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_FunctionDef_ArgAttrEntry_descriptor, 
+            .newDefaultInstance(
+                org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_FunctionDef_ArgAttrEntry_descriptor, 
                 com.google.protobuf.WireFormat.FieldType.UINT32,
                 0,
                 com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                org.tensorflow.proto.framework.FunctionDef.ArgAttrs.getDefaultInstance());
+                org.tensorflow.proto.FunctionDef.ArgAttrs.getDefaultInstance());
   }
   private com.google.protobuf.MapField<
-      java.lang.Integer, org.tensorflow.proto.framework.FunctionDef.ArgAttrs> argAttr_;
-  private com.google.protobuf.MapField
+      java.lang.Integer, org.tensorflow.proto.FunctionDef.ArgAttrs> argAttr_;
+  private com.google.protobuf.MapField
   internalGetArgAttr() {
     if (argAttr_ == null) {
       return com.google.protobuf.MapField.emptyMapField(
@@ -1096,6 +969,7 @@ public int getArgAttrCount() {
    * map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
    */
 
+  @java.lang.Override
   public boolean containsArgAttr(
       int key) {
     
@@ -1104,37 +978,41 @@ public boolean containsArgAttr(
   /**
    * Use {@link #getArgAttrMap()} instead.
    */
+  @java.lang.Override
   @java.lang.Deprecated
-  public java.util.Map getArgAttr() {
+  public java.util.Map getArgAttr() {
     return getArgAttrMap();
   }
   /**
    * map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
    */
+  @java.lang.Override
 
-  public java.util.Map getArgAttrMap() {
+  public java.util.Map getArgAttrMap() {
     return internalGetArgAttr().getMap();
   }
   /**
    * map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
    */
+  @java.lang.Override
 
-  public org.tensorflow.proto.framework.FunctionDef.ArgAttrs getArgAttrOrDefault(
+  public org.tensorflow.proto.FunctionDef.ArgAttrs getArgAttrOrDefault(
       int key,
-      org.tensorflow.proto.framework.FunctionDef.ArgAttrs defaultValue) {
+      org.tensorflow.proto.FunctionDef.ArgAttrs defaultValue) {
     
-    java.util.Map map =
+    java.util.Map map =
         internalGetArgAttr().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
    * map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
    */
+  @java.lang.Override
 
-  public org.tensorflow.proto.framework.FunctionDef.ArgAttrs getArgAttrOrThrow(
+  public org.tensorflow.proto.FunctionDef.ArgAttrs getArgAttrOrThrow(
       int key) {
     
-    java.util.Map map =
+    java.util.Map map =
         internalGetArgAttr().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
@@ -1148,7 +1026,7 @@ private static final class ResourceArgUniqueIdDefaultEntryHolder {
         java.lang.Integer, java.lang.Integer> defaultEntry =
             com.google.protobuf.MapEntry
             .newDefaultInstance(
-                org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_FunctionDef_ResourceArgUniqueIdEntry_descriptor, 
+                org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_FunctionDef_ResourceArgUniqueIdEntry_descriptor, 
                 com.google.protobuf.WireFormat.FieldType.UINT32,
                 0,
                 com.google.protobuf.WireFormat.FieldType.UINT32,
@@ -1182,6 +1060,7 @@ public int getResourceArgUniqueIdCount() {
    * map<uint32, uint32> resource_arg_unique_id = 8;
    */
 
+  @java.lang.Override
   public boolean containsResourceArgUniqueId(
       int key) {
     
@@ -1190,6 +1069,7 @@ public boolean containsResourceArgUniqueId(
   /**
    * Use {@link #getResourceArgUniqueIdMap()} instead.
    */
+  @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getResourceArgUniqueId() {
     return getResourceArgUniqueIdMap();
@@ -1207,6 +1087,7 @@ public java.util.Map getResourceArgUniqueI
    *
    * map<uint32, uint32> resource_arg_unique_id = 8;
    */
+  @java.lang.Override
 
   public java.util.Map getResourceArgUniqueIdMap() {
     return internalGetResourceArgUniqueId().getMap();
@@ -1224,6 +1105,7 @@ public java.util.Map getResourceArgUniqueI
    *
    * map<uint32, uint32> resource_arg_unique_id = 8;
    */
+  @java.lang.Override
 
   public int getResourceArgUniqueIdOrDefault(
       int key,
@@ -1246,6 +1128,7 @@ public int getResourceArgUniqueIdOrDefault(
    *
    * map<uint32, uint32> resource_arg_unique_id = 8;
    */
+  @java.lang.Override
 
   public int getResourceArgUniqueIdOrThrow(
       int key) {
@@ -1259,7 +1142,7 @@ public int getResourceArgUniqueIdOrThrow(
   }
 
   public static final int NODE_DEF_FIELD_NUMBER = 3;
-  private java.util.List nodeDef_;
+  private java.util.List nodeDef_;
   /**
    * 
    * By convention, "op" in node_def is resolved by consulting with a
@@ -1269,7 +1152,8 @@ public int getResourceArgUniqueIdOrThrow(
    *
    * repeated .tensorflow.NodeDef node_def = 3;
    */
-  public java.util.List getNodeDefList() {
+  @java.lang.Override
+  public java.util.List getNodeDefList() {
     return nodeDef_;
   }
   /**
@@ -1281,7 +1165,8 @@ public java.util.List getNodeDefList() {
    *
    * repeated .tensorflow.NodeDef node_def = 3;
    */
-  public java.util.List 
+  @java.lang.Override
+  public java.util.List 
       getNodeDefOrBuilderList() {
     return nodeDef_;
   }
@@ -1294,6 +1179,7 @@ public java.util.List getNodeDefList() {
    *
    * repeated .tensorflow.NodeDef node_def = 3;
    */
+  @java.lang.Override
   public int getNodeDefCount() {
     return nodeDef_.size();
   }
@@ -1306,7 +1192,8 @@ public int getNodeDefCount() {
    *
    * repeated .tensorflow.NodeDef node_def = 3;
    */
-  public org.tensorflow.proto.framework.NodeDef getNodeDef(int index) {
+  @java.lang.Override
+  public org.tensorflow.proto.NodeDef getNodeDef(int index) {
     return nodeDef_.get(index);
   }
   /**
@@ -1318,7 +1205,8 @@ public org.tensorflow.proto.framework.NodeDef getNodeDef(int index) {
    *
    * repeated .tensorflow.NodeDef node_def = 3;
    */
-  public org.tensorflow.proto.framework.NodeDefOrBuilder getNodeDefOrBuilder(
+  @java.lang.Override
+  public org.tensorflow.proto.NodeDefOrBuilder getNodeDefOrBuilder(
       int index) {
     return nodeDef_.get(index);
   }
@@ -1329,7 +1217,7 @@ private static final class RetDefaultEntryHolder {
         java.lang.String, java.lang.String> defaultEntry =
             com.google.protobuf.MapEntry
             .newDefaultInstance(
-                org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_FunctionDef_RetEntry_descriptor, 
+                org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_FunctionDef_RetEntry_descriptor, 
                 com.google.protobuf.WireFormat.FieldType.STRING,
                 "",
                 com.google.protobuf.WireFormat.FieldType.STRING,
@@ -1358,14 +1246,16 @@ public int getRetCount() {
    * map<string, string> ret = 4;
    */
 
+  @java.lang.Override
   public boolean containsRet(
       java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetRet().getMap().containsKey(key);
   }
   /**
    * Use {@link #getRetMap()} instead.
    */
+  @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getRet() {
     return getRetMap();
@@ -1378,6 +1268,7 @@ public java.util.Map getRet() {
    *
    * map<string, string> ret = 4;
    */
+  @java.lang.Override
 
   public java.util.Map getRetMap() {
     return internalGetRet().getMap();
@@ -1390,11 +1281,12 @@ public java.util.Map getRetMap() {
    *
    * map<string, string> ret = 4;
    */
+  @java.lang.Override
 
   public java.lang.String getRetOrDefault(
       java.lang.String key,
       java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetRet().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1407,10 +1299,11 @@ public java.lang.String getRetOrDefault(
    *
    * map<string, string> ret = 4;
    */
+  @java.lang.Override
 
   public java.lang.String getRetOrThrow(
       java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetRet().getMap();
     if (!map.containsKey(key)) {
@@ -1425,7 +1318,7 @@ private static final class ControlRetDefaultEntryHolder {
         java.lang.String, java.lang.String> defaultEntry =
             com.google.protobuf.MapEntry
             .newDefaultInstance(
-                org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_FunctionDef_ControlRetEntry_descriptor, 
+                org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_FunctionDef_ControlRetEntry_descriptor, 
                 com.google.protobuf.WireFormat.FieldType.STRING,
                 "",
                 com.google.protobuf.WireFormat.FieldType.STRING,
@@ -1454,14 +1347,16 @@ public int getControlRetCount() {
    * map<string, string> control_ret = 6;
    */
 
+  @java.lang.Override
   public boolean containsControlRet(
       java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetControlRet().getMap().containsKey(key);
   }
   /**
    * Use {@link #getControlRetMap()} instead.
    */
+  @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getControlRet() {
     return getControlRetMap();
@@ -1474,6 +1369,7 @@ public java.util.Map getControlRet() {
    *
    * map<string, string> control_ret = 6;
    */
+  @java.lang.Override
 
   public java.util.Map getControlRetMap() {
     return internalGetControlRet().getMap();
@@ -1486,11 +1382,12 @@ public java.util.Map getControlRetMap() {
    *
    * map<string, string> control_ret = 6;
    */
+  @java.lang.Override
 
   public java.lang.String getControlRetOrDefault(
       java.lang.String key,
       java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetControlRet().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1503,10 +1400,11 @@ public java.lang.String getControlRetOrDefault(
    *
    * map<string, string> control_ret = 6;
    */
+  @java.lang.Override
 
   public java.lang.String getControlRetOrThrow(
       java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetControlRet().getMap();
     if (!map.containsKey(key)) {
@@ -1565,7 +1463,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
         internalGetResourceArgUniqueId(),
         ResourceArgUniqueIdDefaultEntryHolder.defaultEntry,
         8);
-    unknownFields.writeTo(output);
+    getUnknownFields().writeTo(output);
   }
 
   @java.lang.Override
@@ -1592,9 +1490,9 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(4, ret__);
     }
-    for (java.util.Map.Entry entry
+    for (java.util.Map.Entry entry
          : internalGetAttr().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
+      com.google.protobuf.MapEntry
       attr__ = AttrDefaultEntryHolder.defaultEntry.newBuilderForType()
           .setKey(entry.getKey())
           .setValue(entry.getValue())
@@ -1612,9 +1510,9 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(6, controlRet__);
     }
-    for (java.util.Map.Entry entry
+    for (java.util.Map.Entry entry
          : internalGetArgAttr().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
+      com.google.protobuf.MapEntry
       argAttr__ = ArgAttrDefaultEntryHolder.defaultEntry.newBuilderForType()
           .setKey(entry.getKey())
           .setValue(entry.getValue())
@@ -1632,7 +1530,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(8, resourceArgUniqueId__);
     }
-    size += unknownFields.getSerializedSize();
+    size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
     return size;
   }
@@ -1642,10 +1540,10 @@ public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
      return true;
     }
-    if (!(obj instanceof org.tensorflow.proto.framework.FunctionDef)) {
+    if (!(obj instanceof org.tensorflow.proto.FunctionDef)) {
       return super.equals(obj);
     }
-    org.tensorflow.proto.framework.FunctionDef other = (org.tensorflow.proto.framework.FunctionDef) obj;
+    org.tensorflow.proto.FunctionDef other = (org.tensorflow.proto.FunctionDef) obj;
 
     if (hasSignature() != other.hasSignature()) return false;
     if (hasSignature()) {
@@ -1664,7 +1562,7 @@ public boolean equals(final java.lang.Object obj) {
         other.internalGetRet())) return false;
     if (!internalGetControlRet().equals(
         other.internalGetControlRet())) return false;
-    if (!unknownFields.equals(other.unknownFields)) return false;
+    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
 
@@ -1703,74 +1601,74 @@ public int hashCode() {
       hash = (37 * hash) + CONTROL_RET_FIELD_NUMBER;
       hash = (53 * hash) + internalGetControlRet().hashCode();
     }
-    hash = (29 * hash) + unknownFields.hashCode();
+    hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
     return hash;
   }
 
-  public static org.tensorflow.proto.framework.FunctionDef parseFrom(
+  public static org.tensorflow.proto.FunctionDef parseFrom(
       java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.FunctionDef parseFrom(
+  public static org.tensorflow.proto.FunctionDef parseFrom(
       java.nio.ByteBuffer data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.FunctionDef parseFrom(
+  public static org.tensorflow.proto.FunctionDef parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.FunctionDef parseFrom(
+  public static org.tensorflow.proto.FunctionDef parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.FunctionDef parseFrom(byte[] data)
+  public static org.tensorflow.proto.FunctionDef parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.FunctionDef parseFrom(
+  public static org.tensorflow.proto.FunctionDef parseFrom(
       byte[] data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.FunctionDef parseFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.FunctionDef parseFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.FunctionDef parseFrom(
+  public static org.tensorflow.proto.FunctionDef 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 org.tensorflow.proto.framework.FunctionDef parseDelimitedFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.FunctionDef parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.FunctionDef parseDelimitedFrom(
+  public static org.tensorflow.proto.FunctionDef 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 org.tensorflow.proto.framework.FunctionDef parseFrom(
+  public static org.tensorflow.proto.FunctionDef parseFrom(
       com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.FunctionDef parseFrom(
+  public static org.tensorflow.proto.FunctionDef parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
@@ -1783,7 +1681,7 @@ public static org.tensorflow.proto.framework.FunctionDef parseFrom(
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(org.tensorflow.proto.framework.FunctionDef prototype) {
+  public static Builder newBuilder(org.tensorflow.proto.FunctionDef prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
   @java.lang.Override
@@ -1812,10 +1710,10 @@ protected Builder newBuilderForType(
   public static final class Builder extends
       com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:tensorflow.FunctionDef)
-      org.tensorflow.proto.framework.FunctionDefOrBuilder {
+      org.tensorflow.proto.FunctionDefOrBuilder {
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_FunctionDef_descriptor;
+      return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_FunctionDef_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
@@ -1859,26 +1757,20 @@ protected com.google.protobuf.MapField internalGetMutableMapField(
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_FunctionDef_fieldAccessorTable
+      return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_FunctionDef_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              org.tensorflow.proto.framework.FunctionDef.class, org.tensorflow.proto.framework.FunctionDef.Builder.class);
+              org.tensorflow.proto.FunctionDef.class, org.tensorflow.proto.FunctionDef.Builder.class);
     }
 
-    // Construct using org.tensorflow.proto.framework.FunctionDef.newBuilder()
+    // Construct using org.tensorflow.proto.FunctionDef.newBuilder()
     private Builder() {
-      maybeForceBuilderInitialization();
+
     }
 
     private Builder(
         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-      maybeForceBuilderInitialization();
-    }
-    private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-        getNodeDefFieldBuilder();
-      }
+
     }
     @java.lang.Override
     public Builder clear() {
@@ -1894,10 +1786,11 @@ public Builder clear() {
       internalGetMutableResourceArgUniqueId().clear();
       if (nodeDefBuilder_ == null) {
         nodeDef_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000008);
       } else {
+        nodeDef_ = null;
         nodeDefBuilder_.clear();
       }
+      bitField0_ = (bitField0_ & ~0x00000008);
       internalGetMutableRet().clear();
       internalGetMutableControlRet().clear();
       return this;
@@ -1906,17 +1799,17 @@ public Builder clear() {
     @java.lang.Override
     public com.google.protobuf.Descriptors.Descriptor
         getDescriptorForType() {
-      return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_FunctionDef_descriptor;
+      return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_FunctionDef_descriptor;
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.FunctionDef getDefaultInstanceForType() {
-      return org.tensorflow.proto.framework.FunctionDef.getDefaultInstance();
+    public org.tensorflow.proto.FunctionDef getDefaultInstanceForType() {
+      return org.tensorflow.proto.FunctionDef.getDefaultInstance();
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.FunctionDef build() {
-      org.tensorflow.proto.framework.FunctionDef result = buildPartial();
+    public org.tensorflow.proto.FunctionDef build() {
+      org.tensorflow.proto.FunctionDef result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -1924,8 +1817,8 @@ public org.tensorflow.proto.framework.FunctionDef build() {
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.FunctionDef buildPartial() {
-      org.tensorflow.proto.framework.FunctionDef result = new org.tensorflow.proto.framework.FunctionDef(this);
+    public org.tensorflow.proto.FunctionDef buildPartial() {
+      org.tensorflow.proto.FunctionDef result = new org.tensorflow.proto.FunctionDef(this);
       int from_bitField0_ = bitField0_;
       if (signatureBuilder_ == null) {
         result.signature_ = signature_;
@@ -1989,16 +1882,16 @@ public Builder addRepeatedField(
     }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof org.tensorflow.proto.framework.FunctionDef) {
-        return mergeFrom((org.tensorflow.proto.framework.FunctionDef)other);
+      if (other instanceof org.tensorflow.proto.FunctionDef) {
+        return mergeFrom((org.tensorflow.proto.FunctionDef)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(org.tensorflow.proto.framework.FunctionDef other) {
-      if (other == org.tensorflow.proto.framework.FunctionDef.getDefaultInstance()) return this;
+    public Builder mergeFrom(org.tensorflow.proto.FunctionDef other) {
+      if (other == org.tensorflow.proto.FunctionDef.getDefaultInstance()) return this;
       if (other.hasSignature()) {
         mergeSignature(other.getSignature());
       }
@@ -2038,7 +1931,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.FunctionDef other) {
           other.internalGetRet());
       internalGetMutableControlRet().mergeFrom(
           other.internalGetControlRet());
-      this.mergeUnknownFields(other.unknownFields);
+      this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
     }
@@ -2053,24 +1946,97 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      org.tensorflow.proto.framework.FunctionDef parsedMessage = null;
+      if (extensionRegistry == null) {
+        throw new java.lang.NullPointerException();
+      }
       try {
-        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+        boolean done = false;
+        while (!done) {
+          int tag = input.readTag();
+          switch (tag) {
+            case 0:
+              done = true;
+              break;
+            case 10: {
+              input.readMessage(
+                  getSignatureFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 10
+            case 26: {
+              org.tensorflow.proto.NodeDef m =
+                  input.readMessage(
+                      org.tensorflow.proto.NodeDef.parser(),
+                      extensionRegistry);
+              if (nodeDefBuilder_ == null) {
+                ensureNodeDefIsMutable();
+                nodeDef_.add(m);
+              } else {
+                nodeDefBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            case 34: {
+              com.google.protobuf.MapEntry
+              ret__ = input.readMessage(
+                  RetDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableRet().getMutableMap().put(
+                  ret__.getKey(), ret__.getValue());
+              break;
+            } // case 34
+            case 42: {
+              com.google.protobuf.MapEntry
+              attr__ = input.readMessage(
+                  AttrDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableAttr().getMutableMap().put(
+                  attr__.getKey(), attr__.getValue());
+              break;
+            } // case 42
+            case 50: {
+              com.google.protobuf.MapEntry
+              controlRet__ = input.readMessage(
+                  ControlRetDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableControlRet().getMutableMap().put(
+                  controlRet__.getKey(), controlRet__.getValue());
+              break;
+            } // case 50
+            case 58: {
+              com.google.protobuf.MapEntry
+              argAttr__ = input.readMessage(
+                  ArgAttrDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableArgAttr().getMutableMap().put(
+                  argAttr__.getKey(), argAttr__.getValue());
+              break;
+            } // case 58
+            case 66: {
+              com.google.protobuf.MapEntry
+              resourceArgUniqueId__ = input.readMessage(
+                  ResourceArgUniqueIdDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableResourceArgUniqueId().getMutableMap().put(
+                  resourceArgUniqueId__.getKey(), resourceArgUniqueId__.getValue());
+              break;
+            } // case 66
+            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) {
-        parsedMessage = (org.tensorflow.proto.framework.FunctionDef) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
-        if (parsedMessage != null) {
-          mergeFrom(parsedMessage);
-        }
-      }
+        onChanged();
+      } // finally
       return this;
     }
     private int bitField0_;
 
-    private org.tensorflow.proto.framework.OpDef signature_;
+    private org.tensorflow.proto.OpDef signature_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        org.tensorflow.proto.framework.OpDef, org.tensorflow.proto.framework.OpDef.Builder, org.tensorflow.proto.framework.OpDefOrBuilder> signatureBuilder_;
+        org.tensorflow.proto.OpDef, org.tensorflow.proto.OpDef.Builder, org.tensorflow.proto.OpDefOrBuilder> signatureBuilder_;
     /**
      * 
      * The definition of the function's name, arguments, return values,
@@ -2078,6 +2044,7 @@ public Builder mergeFrom(
      * 
* * .tensorflow.OpDef signature = 1; + * @return Whether the signature field is set. */ public boolean hasSignature() { return signatureBuilder_ != null || signature_ != null; @@ -2089,10 +2056,11 @@ public boolean hasSignature() { *
* * .tensorflow.OpDef signature = 1; + * @return The signature. */ - public org.tensorflow.proto.framework.OpDef getSignature() { + public org.tensorflow.proto.OpDef getSignature() { if (signatureBuilder_ == null) { - return signature_ == null ? org.tensorflow.proto.framework.OpDef.getDefaultInstance() : signature_; + return signature_ == null ? org.tensorflow.proto.OpDef.getDefaultInstance() : signature_; } else { return signatureBuilder_.getMessage(); } @@ -2105,7 +2073,7 @@ public org.tensorflow.proto.framework.OpDef getSignature() { * * .tensorflow.OpDef signature = 1; */ - public Builder setSignature(org.tensorflow.proto.framework.OpDef value) { + public Builder setSignature(org.tensorflow.proto.OpDef value) { if (signatureBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2127,7 +2095,7 @@ public Builder setSignature(org.tensorflow.proto.framework.OpDef value) { * .tensorflow.OpDef signature = 1; */ public Builder setSignature( - org.tensorflow.proto.framework.OpDef.Builder builderForValue) { + org.tensorflow.proto.OpDef.Builder builderForValue) { if (signatureBuilder_ == null) { signature_ = builderForValue.build(); onChanged(); @@ -2145,11 +2113,11 @@ public Builder setSignature( * * .tensorflow.OpDef signature = 1; */ - public Builder mergeSignature(org.tensorflow.proto.framework.OpDef value) { + public Builder mergeSignature(org.tensorflow.proto.OpDef value) { if (signatureBuilder_ == null) { if (signature_ != null) { signature_ = - org.tensorflow.proto.framework.OpDef.newBuilder(signature_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.OpDef.newBuilder(signature_).mergeFrom(value).buildPartial(); } else { signature_ = value; } @@ -2187,7 +2155,7 @@ public Builder clearSignature() { * * .tensorflow.OpDef signature = 1; */ - public org.tensorflow.proto.framework.OpDef.Builder getSignatureBuilder() { + public org.tensorflow.proto.OpDef.Builder getSignatureBuilder() { onChanged(); return getSignatureFieldBuilder().getBuilder(); @@ -2200,12 +2168,12 @@ public org.tensorflow.proto.framework.OpDef.Builder getSignatureBuilder() { * * .tensorflow.OpDef signature = 1; */ - public org.tensorflow.proto.framework.OpDefOrBuilder getSignatureOrBuilder() { + public org.tensorflow.proto.OpDefOrBuilder getSignatureOrBuilder() { if (signatureBuilder_ != null) { return signatureBuilder_.getMessageOrBuilder(); } else { return signature_ == null ? - org.tensorflow.proto.framework.OpDef.getDefaultInstance() : signature_; + org.tensorflow.proto.OpDef.getDefaultInstance() : signature_; } } /** @@ -2217,11 +2185,11 @@ public org.tensorflow.proto.framework.OpDefOrBuilder getSignatureOrBuilder() { * .tensorflow.OpDef signature = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.OpDef, org.tensorflow.proto.framework.OpDef.Builder, org.tensorflow.proto.framework.OpDefOrBuilder> + org.tensorflow.proto.OpDef, org.tensorflow.proto.OpDef.Builder, org.tensorflow.proto.OpDefOrBuilder> getSignatureFieldBuilder() { if (signatureBuilder_ == null) { signatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.OpDef, org.tensorflow.proto.framework.OpDef.Builder, org.tensorflow.proto.framework.OpDefOrBuilder>( + org.tensorflow.proto.OpDef, org.tensorflow.proto.OpDef.Builder, org.tensorflow.proto.OpDefOrBuilder>( getSignature(), getParentForChildren(), isClean()); @@ -2231,8 +2199,8 @@ public org.tensorflow.proto.framework.OpDefOrBuilder getSignatureOrBuilder() { } private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.AttrValue> attr_; - private com.google.protobuf.MapField + java.lang.String, org.tensorflow.proto.AttrValue> attr_; + private com.google.protobuf.MapField internalGetAttr() { if (attr_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -2240,7 +2208,7 @@ public org.tensorflow.proto.framework.OpDefOrBuilder getSignatureOrBuilder() { } return attr_; } - private com.google.protobuf.MapField + private com.google.protobuf.MapField internalGetMutableAttr() { onChanged();; if (attr_ == null) { @@ -2264,16 +2232,18 @@ public int getAttrCount() { * map<string, .tensorflow.AttrValue> attr = 5; */ + @java.lang.Override public boolean containsAttr( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } return internalGetAttr().getMap().containsKey(key); } /** * Use {@link #getAttrMap()} instead. */ + @java.lang.Override @java.lang.Deprecated - public java.util.Map getAttr() { + public java.util.Map getAttr() { return getAttrMap(); } /** @@ -2283,8 +2253,9 @@ public java.util.Map * * map<string, .tensorflow.AttrValue> attr = 5; */ + @java.lang.Override - public java.util.Map getAttrMap() { + public java.util.Map getAttrMap() { return internalGetAttr().getMap(); } /** @@ -2294,12 +2265,13 @@ public java.util.Map * * map<string, .tensorflow.AttrValue> attr = 5; */ + @java.lang.Override - public org.tensorflow.proto.framework.AttrValue getAttrOrDefault( + public org.tensorflow.proto.AttrValue getAttrOrDefault( java.lang.String key, - org.tensorflow.proto.framework.AttrValue defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = + org.tensorflow.proto.AttrValue defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetAttr().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @@ -2310,11 +2282,12 @@ public org.tensorflow.proto.framework.AttrValue getAttrOrDefault( * * map<string, .tensorflow.AttrValue> attr = 5; */ + @java.lang.Override - public org.tensorflow.proto.framework.AttrValue getAttrOrThrow( + public org.tensorflow.proto.AttrValue getAttrOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetAttr().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); @@ -2337,7 +2310,7 @@ public Builder clearAttr() { public Builder removeAttr( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAttr().getMutableMap() .remove(key); return this; @@ -2346,7 +2319,7 @@ public Builder removeAttr( * Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map + public java.util.Map getMutableAttr() { return internalGetMutableAttr().getMutableMap(); } @@ -2359,9 +2332,12 @@ public Builder removeAttr( */ public Builder putAttr( java.lang.String key, - org.tensorflow.proto.framework.AttrValue value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } + org.tensorflow.proto.AttrValue value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + internalGetMutableAttr().getMutableMap() .put(key, value); return this; @@ -2375,15 +2351,15 @@ public Builder putAttr( */ public Builder putAllAttr( - java.util.Map values) { + java.util.Map values) { internalGetMutableAttr().getMutableMap() .putAll(values); return this; } private com.google.protobuf.MapField< - java.lang.Integer, org.tensorflow.proto.framework.FunctionDef.ArgAttrs> argAttr_; - private com.google.protobuf.MapField + java.lang.Integer, org.tensorflow.proto.FunctionDef.ArgAttrs> argAttr_; + private com.google.protobuf.MapField internalGetArgAttr() { if (argAttr_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -2391,7 +2367,7 @@ public Builder putAllAttr( } return argAttr_; } - private com.google.protobuf.MapField + private com.google.protobuf.MapField internalGetMutableArgAttr() { onChanged();; if (argAttr_ == null) { @@ -2411,6 +2387,7 @@ public int getArgAttrCount() { * map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7; */ + @java.lang.Override public boolean containsArgAttr( int key) { @@ -2419,37 +2396,41 @@ public boolean containsArgAttr( /** * Use {@link #getArgAttrMap()} instead. */ + @java.lang.Override @java.lang.Deprecated - public java.util.Map getArgAttr() { + public java.util.Map getArgAttr() { return getArgAttrMap(); } /** * map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7; */ + @java.lang.Override - public java.util.Map getArgAttrMap() { + public java.util.Map getArgAttrMap() { return internalGetArgAttr().getMap(); } /** * map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7; */ + @java.lang.Override - public org.tensorflow.proto.framework.FunctionDef.ArgAttrs getArgAttrOrDefault( + public org.tensorflow.proto.FunctionDef.ArgAttrs getArgAttrOrDefault( int key, - org.tensorflow.proto.framework.FunctionDef.ArgAttrs defaultValue) { + org.tensorflow.proto.FunctionDef.ArgAttrs defaultValue) { - java.util.Map map = + java.util.Map map = internalGetArgAttr().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7; */ + @java.lang.Override - public org.tensorflow.proto.framework.FunctionDef.ArgAttrs getArgAttrOrThrow( + public org.tensorflow.proto.FunctionDef.ArgAttrs getArgAttrOrThrow( int key) { - java.util.Map map = + java.util.Map map = internalGetArgAttr().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); @@ -2477,7 +2458,7 @@ public Builder removeArgAttr( * Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map + public java.util.Map getMutableArgAttr() { return internalGetMutableArgAttr().getMutableMap(); } @@ -2486,9 +2467,12 @@ public Builder removeArgAttr( */ public Builder putArgAttr( int key, - org.tensorflow.proto.framework.FunctionDef.ArgAttrs value) { + org.tensorflow.proto.FunctionDef.ArgAttrs value) { - if (value == null) { throw new java.lang.NullPointerException(); } + if (value == null) { + throw new NullPointerException("map value"); +} + internalGetMutableArgAttr().getMutableMap() .put(key, value); return this; @@ -2498,7 +2482,7 @@ public Builder putArgAttr( */ public Builder putAllArgAttr( - java.util.Map values) { + java.util.Map values) { internalGetMutableArgAttr().getMutableMap() .putAll(values); return this; @@ -2544,6 +2528,7 @@ public int getResourceArgUniqueIdCount() { * map<uint32, uint32> resource_arg_unique_id = 8; */ + @java.lang.Override public boolean containsResourceArgUniqueId( int key) { @@ -2552,6 +2537,7 @@ public boolean containsResourceArgUniqueId( /** * Use {@link #getResourceArgUniqueIdMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getResourceArgUniqueId() { return getResourceArgUniqueIdMap(); @@ -2569,6 +2555,7 @@ public java.util.Map getResourceArgUniqueI * * map<uint32, uint32> resource_arg_unique_id = 8; */ + @java.lang.Override public java.util.Map getResourceArgUniqueIdMap() { return internalGetResourceArgUniqueId().getMap(); @@ -2586,6 +2573,7 @@ public java.util.Map getResourceArgUniqueI * * map<uint32, uint32> resource_arg_unique_id = 8; */ + @java.lang.Override public int getResourceArgUniqueIdOrDefault( int key, @@ -2608,6 +2596,7 @@ public int getResourceArgUniqueIdOrDefault( * * map<uint32, uint32> resource_arg_unique_id = 8; */ + @java.lang.Override public int getResourceArgUniqueIdOrThrow( int key) { @@ -2697,17 +2686,17 @@ public Builder putAllResourceArgUniqueId( return this; } - private java.util.List nodeDef_ = + private java.util.List nodeDef_ = java.util.Collections.emptyList(); private void ensureNodeDefIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - nodeDef_ = new java.util.ArrayList(nodeDef_); + nodeDef_ = new java.util.ArrayList(nodeDef_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.NodeDef, org.tensorflow.proto.framework.NodeDef.Builder, org.tensorflow.proto.framework.NodeDefOrBuilder> nodeDefBuilder_; + org.tensorflow.proto.NodeDef, org.tensorflow.proto.NodeDef.Builder, org.tensorflow.proto.NodeDefOrBuilder> nodeDefBuilder_; /** *
@@ -2718,7 +2707,7 @@ private void ensureNodeDefIsMutable() {
      *
      * repeated .tensorflow.NodeDef node_def = 3;
      */
-    public java.util.List getNodeDefList() {
+    public java.util.List getNodeDefList() {
       if (nodeDefBuilder_ == null) {
         return java.util.Collections.unmodifiableList(nodeDef_);
       } else {
@@ -2750,7 +2739,7 @@ public int getNodeDefCount() {
      *
      * repeated .tensorflow.NodeDef node_def = 3;
      */
-    public org.tensorflow.proto.framework.NodeDef getNodeDef(int index) {
+    public org.tensorflow.proto.NodeDef getNodeDef(int index) {
       if (nodeDefBuilder_ == null) {
         return nodeDef_.get(index);
       } else {
@@ -2767,7 +2756,7 @@ public org.tensorflow.proto.framework.NodeDef getNodeDef(int index) {
      * repeated .tensorflow.NodeDef node_def = 3;
      */
     public Builder setNodeDef(
-        int index, org.tensorflow.proto.framework.NodeDef value) {
+        int index, org.tensorflow.proto.NodeDef value) {
       if (nodeDefBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2790,7 +2779,7 @@ public Builder setNodeDef(
      * repeated .tensorflow.NodeDef node_def = 3;
      */
     public Builder setNodeDef(
-        int index, org.tensorflow.proto.framework.NodeDef.Builder builderForValue) {
+        int index, org.tensorflow.proto.NodeDef.Builder builderForValue) {
       if (nodeDefBuilder_ == null) {
         ensureNodeDefIsMutable();
         nodeDef_.set(index, builderForValue.build());
@@ -2809,7 +2798,7 @@ public Builder setNodeDef(
      *
      * repeated .tensorflow.NodeDef node_def = 3;
      */
-    public Builder addNodeDef(org.tensorflow.proto.framework.NodeDef value) {
+    public Builder addNodeDef(org.tensorflow.proto.NodeDef value) {
       if (nodeDefBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2832,7 +2821,7 @@ public Builder addNodeDef(org.tensorflow.proto.framework.NodeDef value) {
      * repeated .tensorflow.NodeDef node_def = 3;
      */
     public Builder addNodeDef(
-        int index, org.tensorflow.proto.framework.NodeDef value) {
+        int index, org.tensorflow.proto.NodeDef value) {
       if (nodeDefBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2855,7 +2844,7 @@ public Builder addNodeDef(
      * repeated .tensorflow.NodeDef node_def = 3;
      */
     public Builder addNodeDef(
-        org.tensorflow.proto.framework.NodeDef.Builder builderForValue) {
+        org.tensorflow.proto.NodeDef.Builder builderForValue) {
       if (nodeDefBuilder_ == null) {
         ensureNodeDefIsMutable();
         nodeDef_.add(builderForValue.build());
@@ -2875,7 +2864,7 @@ public Builder addNodeDef(
      * repeated .tensorflow.NodeDef node_def = 3;
      */
     public Builder addNodeDef(
-        int index, org.tensorflow.proto.framework.NodeDef.Builder builderForValue) {
+        int index, org.tensorflow.proto.NodeDef.Builder builderForValue) {
       if (nodeDefBuilder_ == null) {
         ensureNodeDefIsMutable();
         nodeDef_.add(index, builderForValue.build());
@@ -2895,7 +2884,7 @@ public Builder addNodeDef(
      * repeated .tensorflow.NodeDef node_def = 3;
      */
     public Builder addAllNodeDef(
-        java.lang.Iterable values) {
+        java.lang.Iterable values) {
       if (nodeDefBuilder_ == null) {
         ensureNodeDefIsMutable();
         com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -2953,7 +2942,7 @@ public Builder removeNodeDef(int index) {
      *
      * repeated .tensorflow.NodeDef node_def = 3;
      */
-    public org.tensorflow.proto.framework.NodeDef.Builder getNodeDefBuilder(
+    public org.tensorflow.proto.NodeDef.Builder getNodeDefBuilder(
         int index) {
       return getNodeDefFieldBuilder().getBuilder(index);
     }
@@ -2966,7 +2955,7 @@ public org.tensorflow.proto.framework.NodeDef.Builder getNodeDefBuilder(
      *
      * repeated .tensorflow.NodeDef node_def = 3;
      */
-    public org.tensorflow.proto.framework.NodeDefOrBuilder getNodeDefOrBuilder(
+    public org.tensorflow.proto.NodeDefOrBuilder getNodeDefOrBuilder(
         int index) {
       if (nodeDefBuilder_ == null) {
         return nodeDef_.get(index);  } else {
@@ -2982,7 +2971,7 @@ public org.tensorflow.proto.framework.NodeDefOrBuilder getNodeDefOrBuilder(
      *
      * repeated .tensorflow.NodeDef node_def = 3;
      */
-    public java.util.List 
+    public java.util.List 
          getNodeDefOrBuilderList() {
       if (nodeDefBuilder_ != null) {
         return nodeDefBuilder_.getMessageOrBuilderList();
@@ -2999,9 +2988,9 @@ public org.tensorflow.proto.framework.NodeDefOrBuilder getNodeDefOrBuilder(
      *
      * repeated .tensorflow.NodeDef node_def = 3;
      */
-    public org.tensorflow.proto.framework.NodeDef.Builder addNodeDefBuilder() {
+    public org.tensorflow.proto.NodeDef.Builder addNodeDefBuilder() {
       return getNodeDefFieldBuilder().addBuilder(
-          org.tensorflow.proto.framework.NodeDef.getDefaultInstance());
+          org.tensorflow.proto.NodeDef.getDefaultInstance());
     }
     /**
      * 
@@ -3012,10 +3001,10 @@ public org.tensorflow.proto.framework.NodeDef.Builder addNodeDefBuilder() {
      *
      * repeated .tensorflow.NodeDef node_def = 3;
      */
-    public org.tensorflow.proto.framework.NodeDef.Builder addNodeDefBuilder(
+    public org.tensorflow.proto.NodeDef.Builder addNodeDefBuilder(
         int index) {
       return getNodeDefFieldBuilder().addBuilder(
-          index, org.tensorflow.proto.framework.NodeDef.getDefaultInstance());
+          index, org.tensorflow.proto.NodeDef.getDefaultInstance());
     }
     /**
      * 
@@ -3026,16 +3015,16 @@ public org.tensorflow.proto.framework.NodeDef.Builder addNodeDefBuilder(
      *
      * repeated .tensorflow.NodeDef node_def = 3;
      */
-    public java.util.List 
+    public java.util.List 
          getNodeDefBuilderList() {
       return getNodeDefFieldBuilder().getBuilderList();
     }
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        org.tensorflow.proto.framework.NodeDef, org.tensorflow.proto.framework.NodeDef.Builder, org.tensorflow.proto.framework.NodeDefOrBuilder> 
+        org.tensorflow.proto.NodeDef, org.tensorflow.proto.NodeDef.Builder, org.tensorflow.proto.NodeDefOrBuilder> 
         getNodeDefFieldBuilder() {
       if (nodeDefBuilder_ == null) {
         nodeDefBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            org.tensorflow.proto.framework.NodeDef, org.tensorflow.proto.framework.NodeDef.Builder, org.tensorflow.proto.framework.NodeDefOrBuilder>(
+            org.tensorflow.proto.NodeDef, org.tensorflow.proto.NodeDef.Builder, org.tensorflow.proto.NodeDefOrBuilder>(
                 nodeDef_,
                 ((bitField0_ & 0x00000008) != 0),
                 getParentForChildren(),
@@ -3080,14 +3069,16 @@ public int getRetCount() {
      * map<string, string> ret = 4;
      */
 
+    @java.lang.Override
     public boolean containsRet(
         java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetRet().getMap().containsKey(key);
     }
     /**
      * Use {@link #getRetMap()} instead.
      */
+    @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getRet() {
       return getRetMap();
@@ -3100,6 +3091,7 @@ public java.util.Map getRet() {
      *
      * map<string, string> ret = 4;
      */
+    @java.lang.Override
 
     public java.util.Map getRetMap() {
       return internalGetRet().getMap();
@@ -3112,11 +3104,12 @@ public java.util.Map getRetMap() {
      *
      * map<string, string> ret = 4;
      */
+    @java.lang.Override
 
     public java.lang.String getRetOrDefault(
         java.lang.String key,
         java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetRet().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -3129,10 +3122,11 @@ public java.lang.String getRetOrDefault(
      *
      * map<string, string> ret = 4;
      */
+    @java.lang.Override
 
     public java.lang.String getRetOrThrow(
         java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetRet().getMap();
       if (!map.containsKey(key)) {
@@ -3157,7 +3151,7 @@ public Builder clearRet() {
 
     public Builder removeRet(
         java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
       internalGetMutableRet().getMutableMap()
           .remove(key);
       return this;
@@ -3181,8 +3175,11 @@ public Builder removeRet(
     public Builder putRet(
         java.lang.String key,
         java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) {
+  throw new NullPointerException("map value");
+}
+
       internalGetMutableRet().getMutableMap()
           .put(key, value);
       return this;
@@ -3238,14 +3235,16 @@ public int getControlRetCount() {
      * map<string, string> control_ret = 6;
      */
 
+    @java.lang.Override
     public boolean containsControlRet(
         java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetControlRet().getMap().containsKey(key);
     }
     /**
      * Use {@link #getControlRetMap()} instead.
      */
+    @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getControlRet() {
       return getControlRetMap();
@@ -3258,6 +3257,7 @@ public java.util.Map getControlRet() {
      *
      * map<string, string> control_ret = 6;
      */
+    @java.lang.Override
 
     public java.util.Map getControlRetMap() {
       return internalGetControlRet().getMap();
@@ -3270,11 +3270,12 @@ public java.util.Map getControlRetMap() {
      *
      * map<string, string> control_ret = 6;
      */
+    @java.lang.Override
 
     public java.lang.String getControlRetOrDefault(
         java.lang.String key,
         java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetControlRet().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -3287,10 +3288,11 @@ public java.lang.String getControlRetOrDefault(
      *
      * map<string, string> control_ret = 6;
      */
+    @java.lang.Override
 
     public java.lang.String getControlRetOrThrow(
         java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetControlRet().getMap();
       if (!map.containsKey(key)) {
@@ -3315,7 +3317,7 @@ public Builder clearControlRet() {
 
     public Builder removeControlRet(
         java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
       internalGetMutableControlRet().getMutableMap()
           .remove(key);
       return this;
@@ -3339,8 +3341,11 @@ public Builder removeControlRet(
     public Builder putControlRet(
         java.lang.String key,
         java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) {
+  throw new NullPointerException("map value");
+}
+
       internalGetMutableControlRet().getMutableMap()
           .put(key, value);
       return this;
@@ -3377,12 +3382,12 @@ public final Builder mergeUnknownFields(
   }
 
   // @@protoc_insertion_point(class_scope:tensorflow.FunctionDef)
-  private static final org.tensorflow.proto.framework.FunctionDef DEFAULT_INSTANCE;
+  private static final org.tensorflow.proto.FunctionDef DEFAULT_INSTANCE;
   static {
-    DEFAULT_INSTANCE = new org.tensorflow.proto.framework.FunctionDef();
+    DEFAULT_INSTANCE = new org.tensorflow.proto.FunctionDef();
   }
 
-  public static org.tensorflow.proto.framework.FunctionDef getDefaultInstance() {
+  public static org.tensorflow.proto.FunctionDef getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
@@ -3393,7 +3398,18 @@ public FunctionDef parsePartialFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
-      return new FunctionDef(input, extensionRegistry);
+      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();
     }
   };
 
@@ -3407,7 +3423,7 @@ public com.google.protobuf.Parser getParserForType() {
   }
 
   @java.lang.Override
-  public org.tensorflow.proto.framework.FunctionDef getDefaultInstanceForType() {
+  public org.tensorflow.proto.FunctionDef getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
 
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FunctionDefLibrary.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FunctionDefLibrary.java
new file mode 100644
index 00000000000..05fa7747079
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FunctionDefLibrary.java
@@ -0,0 +1,1458 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/framework/function.proto
+
+package org.tensorflow.proto;
+
+/**
+ * 
+ * A library is a set of named functions.
+ * 
+ * + * Protobuf type {@code tensorflow.FunctionDefLibrary} + */ +public final class FunctionDefLibrary extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.FunctionDefLibrary) + FunctionDefLibraryOrBuilder { +private static final long serialVersionUID = 0L; + // Use FunctionDefLibrary.newBuilder() to construct. + private FunctionDefLibrary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FunctionDefLibrary() { + function_ = java.util.Collections.emptyList(); + gradient_ = java.util.Collections.emptyList(); + registeredGradients_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FunctionDefLibrary(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_FunctionDefLibrary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_FunctionDefLibrary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.FunctionDefLibrary.class, org.tensorflow.proto.FunctionDefLibrary.Builder.class); + } + + public static final int FUNCTION_FIELD_NUMBER = 1; + private java.util.List function_; + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + @java.lang.Override + public java.util.List getFunctionList() { + return function_; + } + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + @java.lang.Override + public java.util.List + getFunctionOrBuilderList() { + return function_; + } + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + @java.lang.Override + public int getFunctionCount() { + return function_.size(); + } + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + @java.lang.Override + public org.tensorflow.proto.FunctionDef getFunction(int index) { + return function_.get(index); + } + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + @java.lang.Override + public org.tensorflow.proto.FunctionDefOrBuilder getFunctionOrBuilder( + int index) { + return function_.get(index); + } + + public static final int GRADIENT_FIELD_NUMBER = 2; + private java.util.List gradient_; + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + @java.lang.Override + public java.util.List getGradientList() { + return gradient_; + } + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + @java.lang.Override + public java.util.List + getGradientOrBuilderList() { + return gradient_; + } + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + @java.lang.Override + public int getGradientCount() { + return gradient_.size(); + } + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + @java.lang.Override + public org.tensorflow.proto.GradientDef getGradient(int index) { + return gradient_.get(index); + } + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + @java.lang.Override + public org.tensorflow.proto.GradientDefOrBuilder getGradientOrBuilder( + int index) { + return gradient_.get(index); + } + + public static final int REGISTERED_GRADIENTS_FIELD_NUMBER = 3; + private java.util.List registeredGradients_; + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + @java.lang.Override + public java.util.List getRegisteredGradientsList() { + return registeredGradients_; + } + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + @java.lang.Override + public java.util.List + getRegisteredGradientsOrBuilderList() { + return registeredGradients_; + } + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + @java.lang.Override + public int getRegisteredGradientsCount() { + return registeredGradients_.size(); + } + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + @java.lang.Override + public org.tensorflow.proto.RegisteredGradient getRegisteredGradients(int index) { + return registeredGradients_.get(index); + } + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + @java.lang.Override + public org.tensorflow.proto.RegisteredGradientOrBuilder getRegisteredGradientsOrBuilder( + int index) { + return registeredGradients_.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 < function_.size(); i++) { + output.writeMessage(1, function_.get(i)); + } + for (int i = 0; i < gradient_.size(); i++) { + output.writeMessage(2, gradient_.get(i)); + } + for (int i = 0; i < registeredGradients_.size(); i++) { + output.writeMessage(3, registeredGradients_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < function_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, function_.get(i)); + } + for (int i = 0; i < gradient_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, gradient_.get(i)); + } + for (int i = 0; i < registeredGradients_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, registeredGradients_.get(i)); + } + 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 org.tensorflow.proto.FunctionDefLibrary)) { + return super.equals(obj); + } + org.tensorflow.proto.FunctionDefLibrary other = (org.tensorflow.proto.FunctionDefLibrary) obj; + + if (!getFunctionList() + .equals(other.getFunctionList())) return false; + if (!getGradientList() + .equals(other.getGradientList())) return false; + if (!getRegisteredGradientsList() + .equals(other.getRegisteredGradientsList())) 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 (getFunctionCount() > 0) { + hash = (37 * hash) + FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getFunctionList().hashCode(); + } + if (getGradientCount() > 0) { + hash = (37 * hash) + GRADIENT_FIELD_NUMBER; + hash = (53 * hash) + getGradientList().hashCode(); + } + if (getRegisteredGradientsCount() > 0) { + hash = (37 * hash) + REGISTERED_GRADIENTS_FIELD_NUMBER; + hash = (53 * hash) + getRegisteredGradientsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.FunctionDefLibrary parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FunctionDefLibrary parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FunctionDefLibrary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FunctionDefLibrary parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FunctionDefLibrary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.FunctionDefLibrary parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.FunctionDefLibrary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FunctionDefLibrary 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 org.tensorflow.proto.FunctionDefLibrary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FunctionDefLibrary 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 org.tensorflow.proto.FunctionDefLibrary parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.FunctionDefLibrary 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(org.tensorflow.proto.FunctionDefLibrary 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; + } + /** + *
+   * A library is a set of named functions.
+   * 
+ * + * Protobuf type {@code tensorflow.FunctionDefLibrary} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.FunctionDefLibrary) + org.tensorflow.proto.FunctionDefLibraryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_FunctionDefLibrary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_FunctionDefLibrary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.FunctionDefLibrary.class, org.tensorflow.proto.FunctionDefLibrary.Builder.class); + } + + // Construct using org.tensorflow.proto.FunctionDefLibrary.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (functionBuilder_ == null) { + function_ = java.util.Collections.emptyList(); + } else { + function_ = null; + functionBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (gradientBuilder_ == null) { + gradient_ = java.util.Collections.emptyList(); + } else { + gradient_ = null; + gradientBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (registeredGradientsBuilder_ == null) { + registeredGradients_ = java.util.Collections.emptyList(); + } else { + registeredGradients_ = null; + registeredGradientsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_FunctionDefLibrary_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.FunctionDefLibrary getDefaultInstanceForType() { + return org.tensorflow.proto.FunctionDefLibrary.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.FunctionDefLibrary build() { + org.tensorflow.proto.FunctionDefLibrary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.FunctionDefLibrary buildPartial() { + org.tensorflow.proto.FunctionDefLibrary result = new org.tensorflow.proto.FunctionDefLibrary(this); + int from_bitField0_ = bitField0_; + if (functionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + function_ = java.util.Collections.unmodifiableList(function_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.function_ = function_; + } else { + result.function_ = functionBuilder_.build(); + } + if (gradientBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + gradient_ = java.util.Collections.unmodifiableList(gradient_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.gradient_ = gradient_; + } else { + result.gradient_ = gradientBuilder_.build(); + } + if (registeredGradientsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + registeredGradients_ = java.util.Collections.unmodifiableList(registeredGradients_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.registeredGradients_ = registeredGradients_; + } else { + result.registeredGradients_ = registeredGradientsBuilder_.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 org.tensorflow.proto.FunctionDefLibrary) { + return mergeFrom((org.tensorflow.proto.FunctionDefLibrary)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.FunctionDefLibrary other) { + if (other == org.tensorflow.proto.FunctionDefLibrary.getDefaultInstance()) return this; + if (functionBuilder_ == null) { + if (!other.function_.isEmpty()) { + if (function_.isEmpty()) { + function_ = other.function_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFunctionIsMutable(); + function_.addAll(other.function_); + } + onChanged(); + } + } else { + if (!other.function_.isEmpty()) { + if (functionBuilder_.isEmpty()) { + functionBuilder_.dispose(); + functionBuilder_ = null; + function_ = other.function_; + bitField0_ = (bitField0_ & ~0x00000001); + functionBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFunctionFieldBuilder() : null; + } else { + functionBuilder_.addAllMessages(other.function_); + } + } + } + if (gradientBuilder_ == null) { + if (!other.gradient_.isEmpty()) { + if (gradient_.isEmpty()) { + gradient_ = other.gradient_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureGradientIsMutable(); + gradient_.addAll(other.gradient_); + } + onChanged(); + } + } else { + if (!other.gradient_.isEmpty()) { + if (gradientBuilder_.isEmpty()) { + gradientBuilder_.dispose(); + gradientBuilder_ = null; + gradient_ = other.gradient_; + bitField0_ = (bitField0_ & ~0x00000002); + gradientBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGradientFieldBuilder() : null; + } else { + gradientBuilder_.addAllMessages(other.gradient_); + } + } + } + if (registeredGradientsBuilder_ == null) { + if (!other.registeredGradients_.isEmpty()) { + if (registeredGradients_.isEmpty()) { + registeredGradients_ = other.registeredGradients_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureRegisteredGradientsIsMutable(); + registeredGradients_.addAll(other.registeredGradients_); + } + onChanged(); + } + } else { + if (!other.registeredGradients_.isEmpty()) { + if (registeredGradientsBuilder_.isEmpty()) { + registeredGradientsBuilder_.dispose(); + registeredGradientsBuilder_ = null; + registeredGradients_ = other.registeredGradients_; + bitField0_ = (bitField0_ & ~0x00000004); + registeredGradientsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRegisteredGradientsFieldBuilder() : null; + } else { + registeredGradientsBuilder_.addAllMessages(other.registeredGradients_); + } + } + } + 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: { + org.tensorflow.proto.FunctionDef m = + input.readMessage( + org.tensorflow.proto.FunctionDef.parser(), + extensionRegistry); + if (functionBuilder_ == null) { + ensureFunctionIsMutable(); + function_.add(m); + } else { + functionBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + org.tensorflow.proto.GradientDef m = + input.readMessage( + org.tensorflow.proto.GradientDef.parser(), + extensionRegistry); + if (gradientBuilder_ == null) { + ensureGradientIsMutable(); + gradient_.add(m); + } else { + gradientBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + org.tensorflow.proto.RegisteredGradient m = + input.readMessage( + org.tensorflow.proto.RegisteredGradient.parser(), + extensionRegistry); + if (registeredGradientsBuilder_ == null) { + ensureRegisteredGradientsIsMutable(); + registeredGradients_.add(m); + } else { + registeredGradientsBuilder_.addMessage(m); + } + break; + } // case 26 + 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.util.List function_ = + java.util.Collections.emptyList(); + private void ensureFunctionIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + function_ = new java.util.ArrayList(function_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.FunctionDef, org.tensorflow.proto.FunctionDef.Builder, org.tensorflow.proto.FunctionDefOrBuilder> functionBuilder_; + + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + public java.util.List getFunctionList() { + if (functionBuilder_ == null) { + return java.util.Collections.unmodifiableList(function_); + } else { + return functionBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + public int getFunctionCount() { + if (functionBuilder_ == null) { + return function_.size(); + } else { + return functionBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + public org.tensorflow.proto.FunctionDef getFunction(int index) { + if (functionBuilder_ == null) { + return function_.get(index); + } else { + return functionBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + public Builder setFunction( + int index, org.tensorflow.proto.FunctionDef value) { + if (functionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFunctionIsMutable(); + function_.set(index, value); + onChanged(); + } else { + functionBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + public Builder setFunction( + int index, org.tensorflow.proto.FunctionDef.Builder builderForValue) { + if (functionBuilder_ == null) { + ensureFunctionIsMutable(); + function_.set(index, builderForValue.build()); + onChanged(); + } else { + functionBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + public Builder addFunction(org.tensorflow.proto.FunctionDef value) { + if (functionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFunctionIsMutable(); + function_.add(value); + onChanged(); + } else { + functionBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + public Builder addFunction( + int index, org.tensorflow.proto.FunctionDef value) { + if (functionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFunctionIsMutable(); + function_.add(index, value); + onChanged(); + } else { + functionBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + public Builder addFunction( + org.tensorflow.proto.FunctionDef.Builder builderForValue) { + if (functionBuilder_ == null) { + ensureFunctionIsMutable(); + function_.add(builderForValue.build()); + onChanged(); + } else { + functionBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + public Builder addFunction( + int index, org.tensorflow.proto.FunctionDef.Builder builderForValue) { + if (functionBuilder_ == null) { + ensureFunctionIsMutable(); + function_.add(index, builderForValue.build()); + onChanged(); + } else { + functionBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + public Builder addAllFunction( + java.lang.Iterable values) { + if (functionBuilder_ == null) { + ensureFunctionIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, function_); + onChanged(); + } else { + functionBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + public Builder clearFunction() { + if (functionBuilder_ == null) { + function_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + functionBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + public Builder removeFunction(int index) { + if (functionBuilder_ == null) { + ensureFunctionIsMutable(); + function_.remove(index); + onChanged(); + } else { + functionBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + public org.tensorflow.proto.FunctionDef.Builder getFunctionBuilder( + int index) { + return getFunctionFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + public org.tensorflow.proto.FunctionDefOrBuilder getFunctionOrBuilder( + int index) { + if (functionBuilder_ == null) { + return function_.get(index); } else { + return functionBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + public java.util.List + getFunctionOrBuilderList() { + if (functionBuilder_ != null) { + return functionBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(function_); + } + } + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + public org.tensorflow.proto.FunctionDef.Builder addFunctionBuilder() { + return getFunctionFieldBuilder().addBuilder( + org.tensorflow.proto.FunctionDef.getDefaultInstance()); + } + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + public org.tensorflow.proto.FunctionDef.Builder addFunctionBuilder( + int index) { + return getFunctionFieldBuilder().addBuilder( + index, org.tensorflow.proto.FunctionDef.getDefaultInstance()); + } + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + public java.util.List + getFunctionBuilderList() { + return getFunctionFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.FunctionDef, org.tensorflow.proto.FunctionDef.Builder, org.tensorflow.proto.FunctionDefOrBuilder> + getFunctionFieldBuilder() { + if (functionBuilder_ == null) { + functionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.FunctionDef, org.tensorflow.proto.FunctionDef.Builder, org.tensorflow.proto.FunctionDefOrBuilder>( + function_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + function_ = null; + } + return functionBuilder_; + } + + private java.util.List gradient_ = + java.util.Collections.emptyList(); + private void ensureGradientIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + gradient_ = new java.util.ArrayList(gradient_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GradientDef, org.tensorflow.proto.GradientDef.Builder, org.tensorflow.proto.GradientDefOrBuilder> gradientBuilder_; + + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + public java.util.List getGradientList() { + if (gradientBuilder_ == null) { + return java.util.Collections.unmodifiableList(gradient_); + } else { + return gradientBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + public int getGradientCount() { + if (gradientBuilder_ == null) { + return gradient_.size(); + } else { + return gradientBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + public org.tensorflow.proto.GradientDef getGradient(int index) { + if (gradientBuilder_ == null) { + return gradient_.get(index); + } else { + return gradientBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + public Builder setGradient( + int index, org.tensorflow.proto.GradientDef value) { + if (gradientBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGradientIsMutable(); + gradient_.set(index, value); + onChanged(); + } else { + gradientBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + public Builder setGradient( + int index, org.tensorflow.proto.GradientDef.Builder builderForValue) { + if (gradientBuilder_ == null) { + ensureGradientIsMutable(); + gradient_.set(index, builderForValue.build()); + onChanged(); + } else { + gradientBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + public Builder addGradient(org.tensorflow.proto.GradientDef value) { + if (gradientBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGradientIsMutable(); + gradient_.add(value); + onChanged(); + } else { + gradientBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + public Builder addGradient( + int index, org.tensorflow.proto.GradientDef value) { + if (gradientBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGradientIsMutable(); + gradient_.add(index, value); + onChanged(); + } else { + gradientBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + public Builder addGradient( + org.tensorflow.proto.GradientDef.Builder builderForValue) { + if (gradientBuilder_ == null) { + ensureGradientIsMutable(); + gradient_.add(builderForValue.build()); + onChanged(); + } else { + gradientBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + public Builder addGradient( + int index, org.tensorflow.proto.GradientDef.Builder builderForValue) { + if (gradientBuilder_ == null) { + ensureGradientIsMutable(); + gradient_.add(index, builderForValue.build()); + onChanged(); + } else { + gradientBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + public Builder addAllGradient( + java.lang.Iterable values) { + if (gradientBuilder_ == null) { + ensureGradientIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, gradient_); + onChanged(); + } else { + gradientBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + public Builder clearGradient() { + if (gradientBuilder_ == null) { + gradient_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + gradientBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + public Builder removeGradient(int index) { + if (gradientBuilder_ == null) { + ensureGradientIsMutable(); + gradient_.remove(index); + onChanged(); + } else { + gradientBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + public org.tensorflow.proto.GradientDef.Builder getGradientBuilder( + int index) { + return getGradientFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + public org.tensorflow.proto.GradientDefOrBuilder getGradientOrBuilder( + int index) { + if (gradientBuilder_ == null) { + return gradient_.get(index); } else { + return gradientBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + public java.util.List + getGradientOrBuilderList() { + if (gradientBuilder_ != null) { + return gradientBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(gradient_); + } + } + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + public org.tensorflow.proto.GradientDef.Builder addGradientBuilder() { + return getGradientFieldBuilder().addBuilder( + org.tensorflow.proto.GradientDef.getDefaultInstance()); + } + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + public org.tensorflow.proto.GradientDef.Builder addGradientBuilder( + int index) { + return getGradientFieldBuilder().addBuilder( + index, org.tensorflow.proto.GradientDef.getDefaultInstance()); + } + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + public java.util.List + getGradientBuilderList() { + return getGradientFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GradientDef, org.tensorflow.proto.GradientDef.Builder, org.tensorflow.proto.GradientDefOrBuilder> + getGradientFieldBuilder() { + if (gradientBuilder_ == null) { + gradientBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GradientDef, org.tensorflow.proto.GradientDef.Builder, org.tensorflow.proto.GradientDefOrBuilder>( + gradient_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + gradient_ = null; + } + return gradientBuilder_; + } + + private java.util.List registeredGradients_ = + java.util.Collections.emptyList(); + private void ensureRegisteredGradientsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + registeredGradients_ = new java.util.ArrayList(registeredGradients_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.RegisteredGradient, org.tensorflow.proto.RegisteredGradient.Builder, org.tensorflow.proto.RegisteredGradientOrBuilder> registeredGradientsBuilder_; + + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + public java.util.List getRegisteredGradientsList() { + if (registeredGradientsBuilder_ == null) { + return java.util.Collections.unmodifiableList(registeredGradients_); + } else { + return registeredGradientsBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + public int getRegisteredGradientsCount() { + if (registeredGradientsBuilder_ == null) { + return registeredGradients_.size(); + } else { + return registeredGradientsBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + public org.tensorflow.proto.RegisteredGradient getRegisteredGradients(int index) { + if (registeredGradientsBuilder_ == null) { + return registeredGradients_.get(index); + } else { + return registeredGradientsBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + public Builder setRegisteredGradients( + int index, org.tensorflow.proto.RegisteredGradient value) { + if (registeredGradientsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegisteredGradientsIsMutable(); + registeredGradients_.set(index, value); + onChanged(); + } else { + registeredGradientsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + public Builder setRegisteredGradients( + int index, org.tensorflow.proto.RegisteredGradient.Builder builderForValue) { + if (registeredGradientsBuilder_ == null) { + ensureRegisteredGradientsIsMutable(); + registeredGradients_.set(index, builderForValue.build()); + onChanged(); + } else { + registeredGradientsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + public Builder addRegisteredGradients(org.tensorflow.proto.RegisteredGradient value) { + if (registeredGradientsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegisteredGradientsIsMutable(); + registeredGradients_.add(value); + onChanged(); + } else { + registeredGradientsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + public Builder addRegisteredGradients( + int index, org.tensorflow.proto.RegisteredGradient value) { + if (registeredGradientsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegisteredGradientsIsMutable(); + registeredGradients_.add(index, value); + onChanged(); + } else { + registeredGradientsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + public Builder addRegisteredGradients( + org.tensorflow.proto.RegisteredGradient.Builder builderForValue) { + if (registeredGradientsBuilder_ == null) { + ensureRegisteredGradientsIsMutable(); + registeredGradients_.add(builderForValue.build()); + onChanged(); + } else { + registeredGradientsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + public Builder addRegisteredGradients( + int index, org.tensorflow.proto.RegisteredGradient.Builder builderForValue) { + if (registeredGradientsBuilder_ == null) { + ensureRegisteredGradientsIsMutable(); + registeredGradients_.add(index, builderForValue.build()); + onChanged(); + } else { + registeredGradientsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + public Builder addAllRegisteredGradients( + java.lang.Iterable values) { + if (registeredGradientsBuilder_ == null) { + ensureRegisteredGradientsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, registeredGradients_); + onChanged(); + } else { + registeredGradientsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + public Builder clearRegisteredGradients() { + if (registeredGradientsBuilder_ == null) { + registeredGradients_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + registeredGradientsBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + public Builder removeRegisteredGradients(int index) { + if (registeredGradientsBuilder_ == null) { + ensureRegisteredGradientsIsMutable(); + registeredGradients_.remove(index); + onChanged(); + } else { + registeredGradientsBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + public org.tensorflow.proto.RegisteredGradient.Builder getRegisteredGradientsBuilder( + int index) { + return getRegisteredGradientsFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + public org.tensorflow.proto.RegisteredGradientOrBuilder getRegisteredGradientsOrBuilder( + int index) { + if (registeredGradientsBuilder_ == null) { + return registeredGradients_.get(index); } else { + return registeredGradientsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + public java.util.List + getRegisteredGradientsOrBuilderList() { + if (registeredGradientsBuilder_ != null) { + return registeredGradientsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(registeredGradients_); + } + } + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + public org.tensorflow.proto.RegisteredGradient.Builder addRegisteredGradientsBuilder() { + return getRegisteredGradientsFieldBuilder().addBuilder( + org.tensorflow.proto.RegisteredGradient.getDefaultInstance()); + } + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + public org.tensorflow.proto.RegisteredGradient.Builder addRegisteredGradientsBuilder( + int index) { + return getRegisteredGradientsFieldBuilder().addBuilder( + index, org.tensorflow.proto.RegisteredGradient.getDefaultInstance()); + } + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + public java.util.List + getRegisteredGradientsBuilderList() { + return getRegisteredGradientsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.RegisteredGradient, org.tensorflow.proto.RegisteredGradient.Builder, org.tensorflow.proto.RegisteredGradientOrBuilder> + getRegisteredGradientsFieldBuilder() { + if (registeredGradientsBuilder_ == null) { + registeredGradientsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.RegisteredGradient, org.tensorflow.proto.RegisteredGradient.Builder, org.tensorflow.proto.RegisteredGradientOrBuilder>( + registeredGradients_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + registeredGradients_ = null; + } + return registeredGradientsBuilder_; + } + @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:tensorflow.FunctionDefLibrary) + } + + // @@protoc_insertion_point(class_scope:tensorflow.FunctionDefLibrary) + private static final org.tensorflow.proto.FunctionDefLibrary DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.FunctionDefLibrary(); + } + + public static org.tensorflow.proto.FunctionDefLibrary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FunctionDefLibrary 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 org.tensorflow.proto.FunctionDefLibrary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FunctionDefLibraryOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FunctionDefLibraryOrBuilder.java new file mode 100644 index 00000000000..f2169998270 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FunctionDefLibraryOrBuilder.java @@ -0,0 +1,81 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/function.proto + +package org.tensorflow.proto; + +public interface FunctionDefLibraryOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.FunctionDefLibrary) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + java.util.List + getFunctionList(); + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + org.tensorflow.proto.FunctionDef getFunction(int index); + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + int getFunctionCount(); + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + java.util.List + getFunctionOrBuilderList(); + /** + * repeated .tensorflow.FunctionDef function = 1; + */ + org.tensorflow.proto.FunctionDefOrBuilder getFunctionOrBuilder( + int index); + + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + java.util.List + getGradientList(); + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + org.tensorflow.proto.GradientDef getGradient(int index); + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + int getGradientCount(); + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + java.util.List + getGradientOrBuilderList(); + /** + * repeated .tensorflow.GradientDef gradient = 2; + */ + org.tensorflow.proto.GradientDefOrBuilder getGradientOrBuilder( + int index); + + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + java.util.List + getRegisteredGradientsList(); + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + org.tensorflow.proto.RegisteredGradient getRegisteredGradients(int index); + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + int getRegisteredGradientsCount(); + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + java.util.List + getRegisteredGradientsOrBuilderList(); + /** + * repeated .tensorflow.RegisteredGradient registered_gradients = 3; + */ + org.tensorflow.proto.RegisteredGradientOrBuilder getRegisteredGradientsOrBuilder( + int index); +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FunctionDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FunctionDefOrBuilder.java similarity index 88% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FunctionDefOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FunctionDefOrBuilder.java index ebae0875f50..f91238f01eb 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FunctionDefOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FunctionDefOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/function.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface FunctionDefOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.FunctionDef) @@ -14,6 +14,7 @@ public interface FunctionDefOrBuilder extends *
* * .tensorflow.OpDef signature = 1; + * @return Whether the signature field is set. */ boolean hasSignature(); /** @@ -23,8 +24,9 @@ public interface FunctionDefOrBuilder extends *
* * .tensorflow.OpDef signature = 1; + * @return The signature. */ - org.tensorflow.proto.framework.OpDef getSignature(); + org.tensorflow.proto.OpDef getSignature(); /** *
    * The definition of the function's name, arguments, return values,
@@ -33,7 +35,7 @@ public interface FunctionDefOrBuilder extends
    *
    * .tensorflow.OpDef signature = 1;
    */
-  org.tensorflow.proto.framework.OpDefOrBuilder getSignatureOrBuilder();
+  org.tensorflow.proto.OpDefOrBuilder getSignatureOrBuilder();
 
   /**
    * 
@@ -56,7 +58,7 @@ boolean containsAttr(
    * Use {@link #getAttrMap()} instead.
    */
   @java.lang.Deprecated
-  java.util.Map
+  java.util.Map
   getAttr();
   /**
    * 
@@ -65,7 +67,7 @@ boolean containsAttr(
    *
    * map<string, .tensorflow.AttrValue> attr = 5;
    */
-  java.util.Map
+  java.util.Map
   getAttrMap();
   /**
    * 
@@ -75,9 +77,11 @@ boolean containsAttr(
    * map<string, .tensorflow.AttrValue> attr = 5;
    */
 
-  org.tensorflow.proto.framework.AttrValue getAttrOrDefault(
+  /* nullable */
+org.tensorflow.proto.AttrValue getAttrOrDefault(
       java.lang.String key,
-      org.tensorflow.proto.framework.AttrValue defaultValue);
+      /* nullable */
+org.tensorflow.proto.AttrValue defaultValue);
   /**
    * 
    * Attributes specific to this function definition.
@@ -86,7 +90,7 @@ org.tensorflow.proto.framework.AttrValue getAttrOrDefault(
    * map<string, .tensorflow.AttrValue> attr = 5;
    */
 
-  org.tensorflow.proto.framework.AttrValue getAttrOrThrow(
+  org.tensorflow.proto.AttrValue getAttrOrThrow(
       java.lang.String key);
 
   /**
@@ -102,25 +106,27 @@ boolean containsArgAttr(
    * Use {@link #getArgAttrMap()} instead.
    */
   @java.lang.Deprecated
-  java.util.Map
+  java.util.Map
   getArgAttr();
   /**
    * map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
    */
-  java.util.Map
+  java.util.Map
   getArgAttrMap();
   /**
    * map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
    */
 
-  org.tensorflow.proto.framework.FunctionDef.ArgAttrs getArgAttrOrDefault(
+  /* nullable */
+org.tensorflow.proto.FunctionDef.ArgAttrs getArgAttrOrDefault(
       int key,
-      org.tensorflow.proto.framework.FunctionDef.ArgAttrs defaultValue);
+      /* nullable */
+org.tensorflow.proto.FunctionDef.ArgAttrs defaultValue);
   /**
    * map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
    */
 
-  org.tensorflow.proto.framework.FunctionDef.ArgAttrs getArgAttrOrThrow(
+  org.tensorflow.proto.FunctionDef.ArgAttrs getArgAttrOrThrow(
       int key);
 
   /**
@@ -216,7 +222,7 @@ int getResourceArgUniqueIdOrThrow(
    *
    * repeated .tensorflow.NodeDef node_def = 3;
    */
-  java.util.List 
+  java.util.List 
       getNodeDefList();
   /**
    * 
@@ -227,7 +233,7 @@ int getResourceArgUniqueIdOrThrow(
    *
    * repeated .tensorflow.NodeDef node_def = 3;
    */
-  org.tensorflow.proto.framework.NodeDef getNodeDef(int index);
+  org.tensorflow.proto.NodeDef getNodeDef(int index);
   /**
    * 
    * By convention, "op" in node_def is resolved by consulting with a
@@ -247,7 +253,7 @@ int getResourceArgUniqueIdOrThrow(
    *
    * repeated .tensorflow.NodeDef node_def = 3;
    */
-  java.util.List 
+  java.util.List 
       getNodeDefOrBuilderList();
   /**
    * 
@@ -258,7 +264,7 @@ int getResourceArgUniqueIdOrThrow(
    *
    * repeated .tensorflow.NodeDef node_def = 3;
    */
-  org.tensorflow.proto.framework.NodeDefOrBuilder getNodeDefOrBuilder(
+  org.tensorflow.proto.NodeDefOrBuilder getNodeDefOrBuilder(
       int index);
 
   /**
@@ -305,9 +311,11 @@ boolean containsRet(
    * map<string, string> ret = 4;
    */
 
-  java.lang.String getRetOrDefault(
+  /* nullable */
+java.lang.String getRetOrDefault(
       java.lang.String key,
-      java.lang.String defaultValue);
+      /* nullable */
+java.lang.String defaultValue);
   /**
    * 
    * A mapping from the output arg names from `signature` to the
@@ -364,9 +372,11 @@ boolean containsControlRet(
    * map<string, string> control_ret = 6;
    */
 
-  java.lang.String getControlRetOrDefault(
+  /* nullable */
+java.lang.String getControlRetOrDefault(
       java.lang.String key,
-      java.lang.String defaultValue);
+      /* nullable */
+java.lang.String defaultValue);
   /**
    * 
    * A mapping from control output names from `signature` to node names in
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FunctionProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FunctionProtos.java
similarity index 94%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FunctionProtos.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FunctionProtos.java
index a29149a8179..0c0f205de0b 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/FunctionProtos.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/FunctionProtos.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/framework/function.proto
 
-package org.tensorflow.proto.framework;
+package org.tensorflow.proto;
 
 public final class FunctionProtos {
   private FunctionProtos() {}
@@ -111,17 +111,17 @@ public static void registerAllExtensions(
       "ntDef\022\025\n\rfunction_name\030\001 \001(\t\022\025\n\rgradient" +
       "_func\030\002 \001(\t\"G\n\022RegisteredGradient\022\025\n\rgra" +
       "dient_func\030\001 \001(\t\022\032\n\022registered_op_type\030\002" +
-      " \001(\tB\206\001\n\036org.tensorflow.proto.frameworkB" +
-      "\016FunctionProtosP\001ZOgithub.com/tensorflow" +
-      "/tensorflow/tensorflow/go/core/framework" +
-      "/function_go_proto\370\001\001b\006proto3"
+      " \001(\tB|\n\024org.tensorflow.protoB\016FunctionPr" +
+      "otosP\001ZOgithub.com/tensorflow/tensorflow" +
+      "/tensorflow/go/core/framework/function_g" +
+      "o_proto\370\001\001b\006proto3"
     };
     descriptor = com.google.protobuf.Descriptors.FileDescriptor
       .internalBuildGeneratedFileFrom(descriptorData,
         new com.google.protobuf.Descriptors.FileDescriptor[] {
-          org.tensorflow.proto.framework.AttrValueProtos.getDescriptor(),
-          org.tensorflow.proto.framework.NodeProto.getDescriptor(),
-          org.tensorflow.proto.framework.OpDefProtos.getDescriptor(),
+          org.tensorflow.proto.AttrValueProtos.getDescriptor(),
+          org.tensorflow.proto.NodeProto.getDescriptor(),
+          org.tensorflow.proto.OpDefProtos.getDescriptor(),
         });
     internal_static_tensorflow_FunctionDefLibrary_descriptor =
       getDescriptor().getMessageTypes().get(0);
@@ -189,9 +189,9 @@ public static void registerAllExtensions(
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_tensorflow_RegisteredGradient_descriptor,
         new java.lang.String[] { "GradientFunc", "RegisteredOpType", });
-    org.tensorflow.proto.framework.AttrValueProtos.getDescriptor();
-    org.tensorflow.proto.framework.NodeProto.getDescriptor();
-    org.tensorflow.proto.framework.OpDefProtos.getDescriptor();
+    org.tensorflow.proto.AttrValueProtos.getDescriptor();
+    org.tensorflow.proto.NodeProto.getDescriptor();
+    org.tensorflow.proto.OpDefProtos.getDescriptor();
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/GPUInfo.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GPUInfo.java
similarity index 76%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/GPUInfo.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GPUInfo.java
index 7f6878d36ad..dbd72870e15 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/GPUInfo.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GPUInfo.java
@@ -1,12 +1,12 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: tensorflow/core/util/test_log.proto
+// source: tensorflow/tsl/protobuf/test_log.proto
 
-package org.tensorflow.proto.util.testlog;
+package org.tensorflow.proto;
 
 /**
  * Protobuf type {@code tensorflow.GPUInfo}
  */
-public  final class GPUInfo extends
+public final class GPUInfo extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.GPUInfo)
     GPUInfoOrBuilder {
@@ -33,72 +33,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private GPUInfo(
-      com.google.protobuf.CodedInputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws com.google.protobuf.InvalidProtocolBufferException {
-    this();
-    if (extensionRegistry == null) {
-      throw new java.lang.NullPointerException();
-    }
-    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
-        com.google.protobuf.UnknownFieldSet.newBuilder();
-    try {
-      boolean done = false;
-      while (!done) {
-        int tag = input.readTag();
-        switch (tag) {
-          case 0:
-            done = true;
-            break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            model_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            uuid_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            busId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
-        }
-      }
-    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-      throw e.setUnfinishedMessage(this);
-    } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
-    } finally {
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_GPUInfo_descriptor;
+    return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_GPUInfo_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_GPUInfo_fieldAccessorTable
+    return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_GPUInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.util.testlog.GPUInfo.class, org.tensorflow.proto.util.testlog.GPUInfo.Builder.class);
+            org.tensorflow.proto.GPUInfo.class, org.tensorflow.proto.GPUInfo.Builder.class);
   }
 
   public static final int MODEL_FIELD_NUMBER = 1;
@@ -109,7 +54,9 @@ private GPUInfo(
    * 
* * string model = 1; + * @return The model. */ + @java.lang.Override public java.lang.String getModel() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { @@ -128,7 +75,9 @@ public java.lang.String getModel() { *
* * string model = 1; + * @return The bytes for model. */ + @java.lang.Override public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; @@ -151,7 +100,9 @@ public java.lang.String getModel() { *
* * string uuid = 2; + * @return The uuid. */ + @java.lang.Override public java.lang.String getUuid() { java.lang.Object ref = uuid_; if (ref instanceof java.lang.String) { @@ -170,7 +121,9 @@ public java.lang.String getUuid() { *
* * string uuid = 2; + * @return The bytes for uuid. */ + @java.lang.Override public com.google.protobuf.ByteString getUuidBytes() { java.lang.Object ref = uuid_; @@ -193,7 +146,9 @@ public java.lang.String getUuid() { *
* * string bus_id = 3; + * @return The busId. */ + @java.lang.Override public java.lang.String getBusId() { java.lang.Object ref = busId_; if (ref instanceof java.lang.String) { @@ -212,7 +167,9 @@ public java.lang.String getBusId() { *
* * string bus_id = 3; + * @return The bytes for busId. */ + @java.lang.Override public com.google.protobuf.ByteString getBusIdBytes() { java.lang.Object ref = busId_; @@ -241,16 +198,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getModelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, model_); } - if (!getUuidBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uuid_); } - if (!getBusIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(busId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, busId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -259,16 +216,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getModelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, model_); } - if (!getUuidBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uuid_); } - if (!getBusIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(busId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, busId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -278,10 +235,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.util.testlog.GPUInfo)) { + if (!(obj instanceof org.tensorflow.proto.GPUInfo)) { return super.equals(obj); } - org.tensorflow.proto.util.testlog.GPUInfo other = (org.tensorflow.proto.util.testlog.GPUInfo) obj; + org.tensorflow.proto.GPUInfo other = (org.tensorflow.proto.GPUInfo) obj; if (!getModel() .equals(other.getModel())) return false; @@ -289,7 +246,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getUuid())) return false; if (!getBusId() .equals(other.getBusId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -306,74 +263,74 @@ public int hashCode() { hash = (53 * hash) + getUuid().hashCode(); hash = (37 * hash) + BUS_ID_FIELD_NUMBER; hash = (53 * hash) + getBusId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.util.testlog.GPUInfo parseFrom( + public static org.tensorflow.proto.GPUInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.GPUInfo parseFrom( + public static org.tensorflow.proto.GPUInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.GPUInfo parseFrom( + public static org.tensorflow.proto.GPUInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.GPUInfo parseFrom( + public static org.tensorflow.proto.GPUInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.GPUInfo parseFrom(byte[] data) + public static org.tensorflow.proto.GPUInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.GPUInfo parseFrom( + public static org.tensorflow.proto.GPUInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.GPUInfo parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.GPUInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.GPUInfo parseFrom( + public static org.tensorflow.proto.GPUInfo 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 org.tensorflow.proto.util.testlog.GPUInfo parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.GPUInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.GPUInfo parseDelimitedFrom( + public static org.tensorflow.proto.GPUInfo 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 org.tensorflow.proto.util.testlog.GPUInfo parseFrom( + public static org.tensorflow.proto.GPUInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.GPUInfo parseFrom( + public static org.tensorflow.proto.GPUInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -386,7 +343,7 @@ public static org.tensorflow.proto.util.testlog.GPUInfo parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.util.testlog.GPUInfo prototype) { + public static Builder newBuilder(org.tensorflow.proto.GPUInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -407,34 +364,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.GPUInfo) - org.tensorflow.proto.util.testlog.GPUInfoOrBuilder { + org.tensorflow.proto.GPUInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_GPUInfo_descriptor; + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_GPUInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_GPUInfo_fieldAccessorTable + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_GPUInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.util.testlog.GPUInfo.class, org.tensorflow.proto.util.testlog.GPUInfo.Builder.class); + org.tensorflow.proto.GPUInfo.class, org.tensorflow.proto.GPUInfo.Builder.class); } - // Construct using org.tensorflow.proto.util.testlog.GPUInfo.newBuilder() + // Construct using org.tensorflow.proto.GPUInfo.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -451,17 +403,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_GPUInfo_descriptor; + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_GPUInfo_descriptor; } @java.lang.Override - public org.tensorflow.proto.util.testlog.GPUInfo getDefaultInstanceForType() { - return org.tensorflow.proto.util.testlog.GPUInfo.getDefaultInstance(); + public org.tensorflow.proto.GPUInfo getDefaultInstanceForType() { + return org.tensorflow.proto.GPUInfo.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.util.testlog.GPUInfo build() { - org.tensorflow.proto.util.testlog.GPUInfo result = buildPartial(); + public org.tensorflow.proto.GPUInfo build() { + org.tensorflow.proto.GPUInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -469,8 +421,8 @@ public org.tensorflow.proto.util.testlog.GPUInfo build() { } @java.lang.Override - public org.tensorflow.proto.util.testlog.GPUInfo buildPartial() { - org.tensorflow.proto.util.testlog.GPUInfo result = new org.tensorflow.proto.util.testlog.GPUInfo(this); + public org.tensorflow.proto.GPUInfo buildPartial() { + org.tensorflow.proto.GPUInfo result = new org.tensorflow.proto.GPUInfo(this); result.model_ = model_; result.uuid_ = uuid_; result.busId_ = busId_; @@ -512,16 +464,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.util.testlog.GPUInfo) { - return mergeFrom((org.tensorflow.proto.util.testlog.GPUInfo)other); + if (other instanceof org.tensorflow.proto.GPUInfo) { + return mergeFrom((org.tensorflow.proto.GPUInfo)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.util.testlog.GPUInfo other) { - if (other == org.tensorflow.proto.util.testlog.GPUInfo.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.GPUInfo other) { + if (other == org.tensorflow.proto.GPUInfo.getDefaultInstance()) return this; if (!other.getModel().isEmpty()) { model_ = other.model_; onChanged(); @@ -534,7 +486,7 @@ public Builder mergeFrom(org.tensorflow.proto.util.testlog.GPUInfo other) { busId_ = other.busId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -549,17 +501,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.util.testlog.GPUInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + model_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + uuid_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + busId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + 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) { - parsedMessage = (org.tensorflow.proto.util.testlog.GPUInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -570,6 +550,7 @@ public Builder mergeFrom( *
* * string model = 1; + * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; @@ -589,6 +570,7 @@ public java.lang.String getModel() { *
* * string model = 1; + * @return The bytes for model. */ public com.google.protobuf.ByteString getModelBytes() { @@ -609,6 +591,8 @@ public java.lang.String getModel() { *
* * string model = 1; + * @param value The model to set. + * @return This builder for chaining. */ public Builder setModel( java.lang.String value) { @@ -626,6 +610,7 @@ public Builder setModel( *
* * string model = 1; + * @return This builder for chaining. */ public Builder clearModel() { @@ -639,6 +624,8 @@ public Builder clearModel() { *
* * string model = 1; + * @param value The bytes for model to set. + * @return This builder for chaining. */ public Builder setModelBytes( com.google.protobuf.ByteString value) { @@ -659,6 +646,7 @@ public Builder setModelBytes( *
* * string uuid = 2; + * @return The uuid. */ public java.lang.String getUuid() { java.lang.Object ref = uuid_; @@ -678,6 +666,7 @@ public java.lang.String getUuid() { *
* * string uuid = 2; + * @return The bytes for uuid. */ public com.google.protobuf.ByteString getUuidBytes() { @@ -698,6 +687,8 @@ public java.lang.String getUuid() { *
* * string uuid = 2; + * @param value The uuid to set. + * @return This builder for chaining. */ public Builder setUuid( java.lang.String value) { @@ -715,6 +706,7 @@ public Builder setUuid( *
* * string uuid = 2; + * @return This builder for chaining. */ public Builder clearUuid() { @@ -728,6 +720,8 @@ public Builder clearUuid() { *
* * string uuid = 2; + * @param value The bytes for uuid to set. + * @return This builder for chaining. */ public Builder setUuidBytes( com.google.protobuf.ByteString value) { @@ -748,6 +742,7 @@ public Builder setUuidBytes( *
* * string bus_id = 3; + * @return The busId. */ public java.lang.String getBusId() { java.lang.Object ref = busId_; @@ -767,6 +762,7 @@ public java.lang.String getBusId() { *
* * string bus_id = 3; + * @return The bytes for busId. */ public com.google.protobuf.ByteString getBusIdBytes() { @@ -787,6 +783,8 @@ public java.lang.String getBusId() { *
* * string bus_id = 3; + * @param value The busId to set. + * @return This builder for chaining. */ public Builder setBusId( java.lang.String value) { @@ -804,6 +802,7 @@ public Builder setBusId( *
* * string bus_id = 3; + * @return This builder for chaining. */ public Builder clearBusId() { @@ -817,6 +816,8 @@ public Builder clearBusId() { *
* * string bus_id = 3; + * @param value The bytes for busId to set. + * @return This builder for chaining. */ public Builder setBusIdBytes( com.google.protobuf.ByteString value) { @@ -846,12 +847,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.GPUInfo) - private static final org.tensorflow.proto.util.testlog.GPUInfo DEFAULT_INSTANCE; + private static final org.tensorflow.proto.GPUInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.util.testlog.GPUInfo(); + DEFAULT_INSTANCE = new org.tensorflow.proto.GPUInfo(); } - public static org.tensorflow.proto.util.testlog.GPUInfo getDefaultInstance() { + public static org.tensorflow.proto.GPUInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -862,7 +863,18 @@ public GPUInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GPUInfo(input, extensionRegistry); + 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(); } }; @@ -876,7 +888,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.util.testlog.GPUInfo getDefaultInstanceForType() { + public org.tensorflow.proto.GPUInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/GPUInfoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GPUInfoOrBuilder.java similarity index 81% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/GPUInfoOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GPUInfoOrBuilder.java index 44985f7d574..f2fc0dec11b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/GPUInfoOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GPUInfoOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/util/test_log.proto +// source: tensorflow/tsl/protobuf/test_log.proto -package org.tensorflow.proto.util.testlog; +package org.tensorflow.proto; public interface GPUInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.GPUInfo) @@ -13,6 +13,7 @@ public interface GPUInfoOrBuilder extends *
* * string model = 1; + * @return The model. */ java.lang.String getModel(); /** @@ -21,6 +22,7 @@ public interface GPUInfoOrBuilder extends * * * string model = 1; + * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); @@ -31,6 +33,7 @@ public interface GPUInfoOrBuilder extends * * * string uuid = 2; + * @return The uuid. */ java.lang.String getUuid(); /** @@ -39,6 +42,7 @@ public interface GPUInfoOrBuilder extends * * * string uuid = 2; + * @return The bytes for uuid. */ com.google.protobuf.ByteString getUuidBytes(); @@ -49,6 +53,7 @@ public interface GPUInfoOrBuilder extends * * * string bus_id = 3; + * @return The busId. */ java.lang.String getBusId(); /** @@ -57,6 +62,7 @@ public interface GPUInfoOrBuilder extends * * * string bus_id = 3; + * @return The bytes for busId. */ com.google.protobuf.ByteString getBusIdBytes(); diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GPUOptions.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GPUOptions.java similarity index 84% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GPUOptions.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GPUOptions.java index d57c84295eb..108f88a6be7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GPUOptions.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GPUOptions.java @@ -1,12 +1,12 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/config.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; /** * Protobuf type {@code tensorflow.GPUOptions} */ -public final class GPUOptions extends +public final class GPUOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.GPUOptions) GPUOptionsOrBuilder { @@ -32,109 +32,17 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private GPUOptions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 9: { - - perProcessGpuMemoryFraction_ = input.readDouble(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - allocatorType_ = s; - break; - } - case 24: { - - deferredDeletionBytes_ = input.readInt64(); - break; - } - case 32: { - - allowGrowth_ = input.readBool(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - visibleDeviceList_ = s; - break; - } - case 48: { - - pollingActiveDelayUsecs_ = input.readInt32(); - break; - } - case 56: { - - pollingInactiveDelayMsecs_ = input.readInt32(); - break; - } - case 64: { - - forceGpuCompatible_ = input.readBool(); - break; - } - case 74: { - org.tensorflow.proto.framework.GPUOptions.Experimental.Builder subBuilder = null; - if (experimental_ != null) { - subBuilder = experimental_.toBuilder(); - } - experimental_ = input.readMessage(org.tensorflow.proto.framework.GPUOptions.Experimental.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(experimental_); - experimental_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_GPUOptions_descriptor; + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_GPUOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_GPUOptions_fieldAccessorTable + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_GPUOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GPUOptions.class, org.tensorflow.proto.framework.GPUOptions.Builder.class); + org.tensorflow.proto.GPUOptions.class, org.tensorflow.proto.GPUOptions.Builder.class); } public interface ExperimentalOrBuilder extends @@ -182,7 +90,7 @@ public interface ExperimentalOrBuilder extends * * repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1; */ - java.util.List + java.util.List getVirtualDevicesList(); /** *
@@ -225,7 +133,7 @@ public interface ExperimentalOrBuilder extends
      *
      * repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
      */
-    org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices getVirtualDevices(int index);
+    org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices getVirtualDevices(int index);
     /**
      * 
      * The multi virtual device settings. If empty (not set), it will create
@@ -309,7 +217,7 @@ public interface ExperimentalOrBuilder extends
      *
      * repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
      */
-    java.util.List 
+    java.util.List 
         getVirtualDevicesOrBuilderList();
     /**
      * 
@@ -352,7 +260,7 @@ public interface ExperimentalOrBuilder extends
      *
      * repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
      */
-    org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevicesOrBuilder getVirtualDevicesOrBuilder(
+    org.tensorflow.proto.GPUOptions.Experimental.VirtualDevicesOrBuilder getVirtualDevicesOrBuilder(
         int index);
 
     /**
@@ -367,6 +275,7 @@ org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevicesOrBuilder g
      * 
* * bool use_unified_memory = 2; + * @return The useUnifiedMemory. */ boolean getUseUnifiedMemory(); @@ -378,6 +287,7 @@ org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevicesOrBuilder g *
* * int32 num_dev_to_dev_copy_streams = 3; + * @return The numDevToDevCopyStreams. */ int getNumDevToDevCopyStreams(); @@ -392,6 +302,7 @@ org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevicesOrBuilder g *
* * string collective_ring_order = 4; + * @return The collectiveRingOrder. */ java.lang.String getCollectiveRingOrder(); /** @@ -405,6 +316,7 @@ org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevicesOrBuilder g * * * string collective_ring_order = 4; + * @return The bytes for collectiveRingOrder. */ com.google.protobuf.ByteString getCollectiveRingOrderBytes(); @@ -418,6 +330,7 @@ org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevicesOrBuilder g * * * bool timestamped_allocator = 5; + * @return The timestampedAllocator. */ boolean getTimestampedAllocator(); @@ -431,6 +344,7 @@ org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevicesOrBuilder g * * * int32 kernel_tracker_max_interval = 7; + * @return The kernelTrackerMaxInterval. */ int getKernelTrackerMaxInterval(); @@ -444,6 +358,7 @@ org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevicesOrBuilder g * * * int32 kernel_tracker_max_bytes = 8; + * @return The kernelTrackerMaxBytes. */ int getKernelTrackerMaxBytes(); @@ -456,6 +371,7 @@ org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevicesOrBuilder g * * * int32 kernel_tracker_max_pending = 9; + * @return The kernelTrackerMaxPending. */ int getKernelTrackerMaxPending(); @@ -473,6 +389,7 @@ org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevicesOrBuilder g * * * double internal_fragmentation_fraction = 10; + * @return The internalFragmentationFraction. */ double getInternalFragmentationFraction(); @@ -482,6 +399,7 @@ org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevicesOrBuilder g * * * bool use_cuda_malloc_async = 11; + * @return The useCudaMallocAsync. */ boolean getUseCudaMallocAsync(); @@ -493,13 +411,40 @@ org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevicesOrBuilder g * * * bool disallow_retry_on_allocation_failure = 12; + * @return The disallowRetryOnAllocationFailure. */ boolean getDisallowRetryOnAllocationFailure(); + + /** + *
+     * Memory limit for "GPU host allocator", aka pinned memory allocator.  This
+     * can also be set via the envvar TF_GPU_HOST_MEM_LIMIT_IN_MB.
+     * 
+ * + * float gpu_host_mem_limit_in_mb = 13; + * @return The gpuHostMemLimitInMb. + */ + float getGpuHostMemLimitInMb(); + + /** + *
+     * If true, then the host allocator allocates its max memory all upfront and
+     * never grows.  This can be useful for latency-sensitive systems, because
+     * growing the GPU host memory pool can be expensive.
+     * You probably only want to use this in combination with
+     * gpu_host_mem_limit_in_mb, because the default GPU host memory limit is
+     * quite high.
+     * 
+ * + * bool gpu_host_mem_disallow_growth = 14; + * @return The gpuHostMemDisallowGrowth. + */ + boolean getGpuHostMemDisallowGrowth(); } /** * Protobuf type {@code tensorflow.GPUOptions.Experimental} */ - public static final class Experimental extends + public static final class Experimental extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.GPUOptions.Experimental) ExperimentalOrBuilder { @@ -525,118 +470,17 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private Experimental( - 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)) { - virtualDevices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - virtualDevices_.add( - input.readMessage(org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.parser(), extensionRegistry)); - break; - } - case 16: { - - useUnifiedMemory_ = input.readBool(); - break; - } - case 24: { - - numDevToDevCopyStreams_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - collectiveRingOrder_ = s; - break; - } - case 40: { - - timestampedAllocator_ = input.readBool(); - break; - } - case 56: { - - kernelTrackerMaxInterval_ = input.readInt32(); - break; - } - case 64: { - - kernelTrackerMaxBytes_ = input.readInt32(); - break; - } - case 72: { - - kernelTrackerMaxPending_ = input.readInt32(); - break; - } - case 81: { - - internalFragmentationFraction_ = input.readDouble(); - break; - } - case 88: { - - useCudaMallocAsync_ = input.readBool(); - break; - } - case 96: { - - disallowRetryOnAllocationFailure_ = input.readBool(); - 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)) { - virtualDevices_ = java.util.Collections.unmodifiableList(virtualDevices_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_GPUOptions_Experimental_descriptor; + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_GPUOptions_Experimental_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_GPUOptions_Experimental_fieldAccessorTable + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_GPUOptions_Experimental_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GPUOptions.Experimental.class, org.tensorflow.proto.framework.GPUOptions.Experimental.Builder.class); + org.tensorflow.proto.GPUOptions.Experimental.class, org.tensorflow.proto.GPUOptions.Experimental.Builder.class); } public interface VirtualDevicesOrBuilder extends @@ -655,6 +499,7 @@ public interface VirtualDevicesOrBuilder extends * * * repeated float memory_limit_mb = 1; + * @return A list containing the memoryLimitMb. */ java.util.List getMemoryLimitMbList(); /** @@ -669,6 +514,7 @@ public interface VirtualDevicesOrBuilder extends * * * repeated float memory_limit_mb = 1; + * @return The count of memoryLimitMb. */ int getMemoryLimitMbCount(); /** @@ -683,6 +529,8 @@ public interface VirtualDevicesOrBuilder extends * * * repeated float memory_limit_mb = 1; + * @param index The index of the element to return. + * @return The memoryLimitMb at the given index. */ float getMemoryLimitMb(int index); @@ -699,6 +547,7 @@ public interface VirtualDevicesOrBuilder extends * * * repeated int32 priority = 2; + * @return A list containing the priority. */ java.util.List getPriorityList(); /** @@ -714,6 +563,7 @@ public interface VirtualDevicesOrBuilder extends * * * repeated int32 priority = 2; + * @return The count of priority. */ int getPriorityCount(); /** @@ -729,6 +579,8 @@ public interface VirtualDevicesOrBuilder extends * * * repeated int32 priority = 2; + * @param index The index of the element to return. + * @return The priority at the given index. */ int getPriority(int index); @@ -741,6 +593,7 @@ public interface VirtualDevicesOrBuilder extends * * * repeated int32 device_ordinal = 3; + * @return A list containing the deviceOrdinal. */ java.util.List getDeviceOrdinalList(); /** @@ -752,6 +605,7 @@ public interface VirtualDevicesOrBuilder extends * * * repeated int32 device_ordinal = 3; + * @return The count of deviceOrdinal. */ int getDeviceOrdinalCount(); /** @@ -763,6 +617,8 @@ public interface VirtualDevicesOrBuilder extends * * * repeated int32 device_ordinal = 3; + * @param index The index of the element to return. + * @return The deviceOrdinal at the given index. */ int getDeviceOrdinal(int index); } @@ -774,7 +630,7 @@ public interface VirtualDevicesOrBuilder extends * * Protobuf type {@code tensorflow.GPUOptions.Experimental.VirtualDevices} */ - public static final class VirtualDevices extends + public static final class VirtualDevices extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.GPUOptions.Experimental.VirtualDevices) VirtualDevicesOrBuilder { @@ -801,127 +657,17 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private VirtualDevices( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 13: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - memoryLimitMb_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - memoryLimitMb_.addFloat(input.readFloat()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - memoryLimitMb_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - memoryLimitMb_.addFloat(input.readFloat()); - } - input.popLimit(limit); - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - priority_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - priority_.addInt(input.readInt32()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - priority_ = newIntList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - priority_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - deviceOrdinal_ = newIntList(); - mutable_bitField0_ |= 0x00000004; - } - deviceOrdinal_.addInt(input.readInt32()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { - deviceOrdinal_ = newIntList(); - mutable_bitField0_ |= 0x00000004; - } - while (input.getBytesUntilLimit() > 0) { - deviceOrdinal_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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)) { - memoryLimitMb_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - priority_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - deviceOrdinal_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_GPUOptions_Experimental_VirtualDevices_descriptor; + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_GPUOptions_Experimental_VirtualDevices_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_GPUOptions_Experimental_VirtualDevices_fieldAccessorTable + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_GPUOptions_Experimental_VirtualDevices_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.class, org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.Builder.class); + org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices.class, org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices.Builder.class); } public static final int MEMORY_LIMIT_MB_FIELD_NUMBER = 1; @@ -938,7 +684,9 @@ private VirtualDevices( * * * repeated float memory_limit_mb = 1; + * @return A list containing the memoryLimitMb. */ + @java.lang.Override public java.util.List getMemoryLimitMbList() { return memoryLimitMb_; @@ -955,6 +703,7 @@ private VirtualDevices( * * * repeated float memory_limit_mb = 1; + * @return The count of memoryLimitMb. */ public int getMemoryLimitMbCount() { return memoryLimitMb_.size(); @@ -971,6 +720,8 @@ public int getMemoryLimitMbCount() { * * * repeated float memory_limit_mb = 1; + * @param index The index of the element to return. + * @return The memoryLimitMb at the given index. */ public float getMemoryLimitMb(int index) { return memoryLimitMb_.getFloat(index); @@ -992,7 +743,9 @@ public float getMemoryLimitMb(int index) { * * * repeated int32 priority = 2; + * @return A list containing the priority. */ + @java.lang.Override public java.util.List getPriorityList() { return priority_; @@ -1010,6 +763,7 @@ public float getMemoryLimitMb(int index) { * * * repeated int32 priority = 2; + * @return The count of priority. */ public int getPriorityCount() { return priority_.size(); @@ -1027,6 +781,8 @@ public int getPriorityCount() { * * * repeated int32 priority = 2; + * @param index The index of the element to return. + * @return The priority at the given index. */ public int getPriority(int index) { return priority_.getInt(index); @@ -1044,7 +800,9 @@ public int getPriority(int index) { * * * repeated int32 device_ordinal = 3; + * @return A list containing the deviceOrdinal. */ + @java.lang.Override public java.util.List getDeviceOrdinalList() { return deviceOrdinal_; @@ -1058,6 +816,7 @@ public int getPriority(int index) { * * * repeated int32 device_ordinal = 3; + * @return The count of deviceOrdinal. */ public int getDeviceOrdinalCount() { return deviceOrdinal_.size(); @@ -1071,6 +830,8 @@ public int getDeviceOrdinalCount() { * * * repeated int32 device_ordinal = 3; + * @param index The index of the element to return. + * @return The deviceOrdinal at the given index. */ public int getDeviceOrdinal(int index) { return deviceOrdinal_.getInt(index); @@ -1113,7 +874,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < deviceOrdinal_.size(); i++) { output.writeInt32NoTag(deviceOrdinal_.getInt(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1161,7 +922,7 @@ public int getSerializedSize() { } deviceOrdinalMemoizedSerializedSize = dataSize; } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1171,10 +932,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices)) { + if (!(obj instanceof org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices)) { return super.equals(obj); } - org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices other = (org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices) obj; + org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices other = (org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices) obj; if (!getMemoryLimitMbList() .equals(other.getMemoryLimitMbList())) return false; @@ -1182,7 +943,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getPriorityList())) return false; if (!getDeviceOrdinalList() .equals(other.getDeviceOrdinalList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1205,74 +966,74 @@ public int hashCode() { hash = (37 * hash) + DEVICE_ORDINAL_FIELD_NUMBER; hash = (53 * hash) + getDeviceOrdinalList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices parseFrom( + public static org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices parseFrom( + public static org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices parseFrom( + public static org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices parseFrom( + public static org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices parseFrom(byte[] data) + public static org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices parseFrom( + public static org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices parseFrom( + public static org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices 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 org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices parseDelimitedFrom( + public static org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices 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 org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices parseFrom( + public static org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices parseFrom( + public static org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1285,7 +1046,7 @@ public static org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevi public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices prototype) { + public static Builder newBuilder(org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1311,34 +1072,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.GPUOptions.Experimental.VirtualDevices) - org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevicesOrBuilder { + org.tensorflow.proto.GPUOptions.Experimental.VirtualDevicesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_GPUOptions_Experimental_VirtualDevices_descriptor; + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_GPUOptions_Experimental_VirtualDevices_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_GPUOptions_Experimental_VirtualDevices_fieldAccessorTable + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_GPUOptions_Experimental_VirtualDevices_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.class, org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.Builder.class); + org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices.class, org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices.Builder.class); } - // Construct using org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.newBuilder() + // Construct using org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -1355,17 +1111,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_GPUOptions_Experimental_VirtualDevices_descriptor; + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_GPUOptions_Experimental_VirtualDevices_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices getDefaultInstanceForType() { - return org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.getDefaultInstance(); + public org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices getDefaultInstanceForType() { + return org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices build() { - org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices result = buildPartial(); + public org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices build() { + org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1373,8 +1129,8 @@ public org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices bui } @java.lang.Override - public org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices buildPartial() { - org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices result = new org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices(this); + public org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices buildPartial() { + org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices result = new org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { memoryLimitMb_.makeImmutable(); @@ -1429,16 +1185,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices) { - return mergeFrom((org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices)other); + if (other instanceof org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices) { + return mergeFrom((org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices other) { - if (other == org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices other) { + if (other == org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices.getDefaultInstance()) return this; if (!other.memoryLimitMb_.isEmpty()) { if (memoryLimitMb_.isEmpty()) { memoryLimitMb_ = other.memoryLimitMb_; @@ -1469,7 +1225,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.GPUOptions.Experimental. } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1484,17 +1240,78 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: { + float v = input.readFloat(); + ensureMemoryLimitMbIsMutable(); + memoryLimitMb_.addFloat(v); + break; + } // case 13 + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureMemoryLimitMbIsMutable(); + while (input.getBytesUntilLimit() > 0) { + memoryLimitMb_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } // case 10 + case 16: { + int v = input.readInt32(); + ensurePriorityIsMutable(); + priority_.addInt(v); + break; + } // case 16 + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensurePriorityIsMutable(); + while (input.getBytesUntilLimit() > 0) { + priority_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 18 + case 24: { + int v = input.readInt32(); + ensureDeviceOrdinalIsMutable(); + deviceOrdinal_.addInt(v); + break; + } // case 24 + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureDeviceOrdinalIsMutable(); + while (input.getBytesUntilLimit() > 0) { + deviceOrdinal_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 26 + 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) { - parsedMessage = (org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1518,6 +1335,7 @@ private void ensureMemoryLimitMbIsMutable() { * * * repeated float memory_limit_mb = 1; + * @return A list containing the memoryLimitMb. */ public java.util.List getMemoryLimitMbList() { @@ -1536,6 +1354,7 @@ private void ensureMemoryLimitMbIsMutable() { * * * repeated float memory_limit_mb = 1; + * @return The count of memoryLimitMb. */ public int getMemoryLimitMbCount() { return memoryLimitMb_.size(); @@ -1552,6 +1371,8 @@ public int getMemoryLimitMbCount() { * * * repeated float memory_limit_mb = 1; + * @param index The index of the element to return. + * @return The memoryLimitMb at the given index. */ public float getMemoryLimitMb(int index) { return memoryLimitMb_.getFloat(index); @@ -1568,6 +1389,9 @@ public float getMemoryLimitMb(int index) { * * * repeated float memory_limit_mb = 1; + * @param index The index to set the value at. + * @param value The memoryLimitMb to set. + * @return This builder for chaining. */ public Builder setMemoryLimitMb( int index, float value) { @@ -1588,6 +1412,8 @@ public Builder setMemoryLimitMb( * * * repeated float memory_limit_mb = 1; + * @param value The memoryLimitMb to add. + * @return This builder for chaining. */ public Builder addMemoryLimitMb(float value) { ensureMemoryLimitMbIsMutable(); @@ -1607,6 +1433,8 @@ public Builder addMemoryLimitMb(float value) { * * * repeated float memory_limit_mb = 1; + * @param values The memoryLimitMb to add. + * @return This builder for chaining. */ public Builder addAllMemoryLimitMb( java.lang.Iterable values) { @@ -1628,6 +1456,7 @@ public Builder addAllMemoryLimitMb( * * * repeated float memory_limit_mb = 1; + * @return This builder for chaining. */ public Builder clearMemoryLimitMb() { memoryLimitMb_ = emptyFloatList(); @@ -1656,6 +1485,7 @@ private void ensurePriorityIsMutable() { * * * repeated int32 priority = 2; + * @return A list containing the priority. */ public java.util.List getPriorityList() { @@ -1675,6 +1505,7 @@ private void ensurePriorityIsMutable() { * * * repeated int32 priority = 2; + * @return The count of priority. */ public int getPriorityCount() { return priority_.size(); @@ -1692,6 +1523,8 @@ public int getPriorityCount() { * * * repeated int32 priority = 2; + * @param index The index of the element to return. + * @return The priority at the given index. */ public int getPriority(int index) { return priority_.getInt(index); @@ -1709,6 +1542,9 @@ public int getPriority(int index) { * * * repeated int32 priority = 2; + * @param index The index to set the value at. + * @param value The priority to set. + * @return This builder for chaining. */ public Builder setPriority( int index, int value) { @@ -1730,6 +1566,8 @@ public Builder setPriority( * * * repeated int32 priority = 2; + * @param value The priority to add. + * @return This builder for chaining. */ public Builder addPriority(int value) { ensurePriorityIsMutable(); @@ -1750,6 +1588,8 @@ public Builder addPriority(int value) { * * * repeated int32 priority = 2; + * @param values The priority to add. + * @return This builder for chaining. */ public Builder addAllPriority( java.lang.Iterable values) { @@ -1772,6 +1612,7 @@ public Builder addAllPriority( * * * repeated int32 priority = 2; + * @return This builder for chaining. */ public Builder clearPriority() { priority_ = emptyIntList(); @@ -1796,6 +1637,7 @@ private void ensureDeviceOrdinalIsMutable() { * * * repeated int32 device_ordinal = 3; + * @return A list containing the deviceOrdinal. */ public java.util.List getDeviceOrdinalList() { @@ -1811,6 +1653,7 @@ private void ensureDeviceOrdinalIsMutable() { * * * repeated int32 device_ordinal = 3; + * @return The count of deviceOrdinal. */ public int getDeviceOrdinalCount() { return deviceOrdinal_.size(); @@ -1824,6 +1667,8 @@ public int getDeviceOrdinalCount() { * * * repeated int32 device_ordinal = 3; + * @param index The index of the element to return. + * @return The deviceOrdinal at the given index. */ public int getDeviceOrdinal(int index) { return deviceOrdinal_.getInt(index); @@ -1837,6 +1682,9 @@ public int getDeviceOrdinal(int index) { * * * repeated int32 device_ordinal = 3; + * @param index The index to set the value at. + * @param value The deviceOrdinal to set. + * @return This builder for chaining. */ public Builder setDeviceOrdinal( int index, int value) { @@ -1854,6 +1702,8 @@ public Builder setDeviceOrdinal( * * * repeated int32 device_ordinal = 3; + * @param value The deviceOrdinal to add. + * @return This builder for chaining. */ public Builder addDeviceOrdinal(int value) { ensureDeviceOrdinalIsMutable(); @@ -1870,6 +1720,8 @@ public Builder addDeviceOrdinal(int value) { * * * repeated int32 device_ordinal = 3; + * @param values The deviceOrdinal to add. + * @return This builder for chaining. */ public Builder addAllDeviceOrdinal( java.lang.Iterable values) { @@ -1888,6 +1740,7 @@ public Builder addAllDeviceOrdinal( * * * repeated int32 device_ordinal = 3; + * @return This builder for chaining. */ public Builder clearDeviceOrdinal() { deviceOrdinal_ = emptyIntList(); @@ -1912,12 +1765,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.GPUOptions.Experimental.VirtualDevices) - private static final org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices DEFAULT_INSTANCE; + private static final org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices(); + DEFAULT_INSTANCE = new org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices(); } - public static org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices getDefaultInstance() { + public static org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1928,7 +1781,18 @@ public VirtualDevices parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new VirtualDevices(input, extensionRegistry); + 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(); } }; @@ -1942,14 +1806,14 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices getDefaultInstanceForType() { + public org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int VIRTUAL_DEVICES_FIELD_NUMBER = 1; - private java.util.List virtualDevices_; + private java.util.List virtualDevices_; /** *
      * The multi virtual device settings. If empty (not set), it will create
@@ -1991,7 +1855,8 @@ public org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices get
      *
      * repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
      */
-    public java.util.List getVirtualDevicesList() {
+    @java.lang.Override
+    public java.util.List getVirtualDevicesList() {
       return virtualDevices_;
     }
     /**
@@ -2035,7 +1900,8 @@ public java.util.Listrepeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
      */
-    public java.util.List 
+    @java.lang.Override
+    public java.util.List 
         getVirtualDevicesOrBuilderList() {
       return virtualDevices_;
     }
@@ -2080,6 +1946,7 @@ public java.util.Listrepeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
      */
+    @java.lang.Override
     public int getVirtualDevicesCount() {
       return virtualDevices_.size();
     }
@@ -2124,7 +1991,8 @@ public int getVirtualDevicesCount() {
      *
      * repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
      */
-    public org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices getVirtualDevices(int index) {
+    @java.lang.Override
+    public org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices getVirtualDevices(int index) {
       return virtualDevices_.get(index);
     }
     /**
@@ -2168,7 +2036,8 @@ public org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices get
      *
      * repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
      */
-    public org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevicesOrBuilder getVirtualDevicesOrBuilder(
+    @java.lang.Override
+    public org.tensorflow.proto.GPUOptions.Experimental.VirtualDevicesOrBuilder getVirtualDevicesOrBuilder(
         int index) {
       return virtualDevices_.get(index);
     }
@@ -2187,7 +2056,9 @@ public org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevicesOrBu
      * 
* * bool use_unified_memory = 2; + * @return The useUnifiedMemory. */ + @java.lang.Override public boolean getUseUnifiedMemory() { return useUnifiedMemory_; } @@ -2202,7 +2073,9 @@ public boolean getUseUnifiedMemory() { * * * int32 num_dev_to_dev_copy_streams = 3; + * @return The numDevToDevCopyStreams. */ + @java.lang.Override public int getNumDevToDevCopyStreams() { return numDevToDevCopyStreams_; } @@ -2220,7 +2093,9 @@ public int getNumDevToDevCopyStreams() { * * * string collective_ring_order = 4; + * @return The collectiveRingOrder. */ + @java.lang.Override public java.lang.String getCollectiveRingOrder() { java.lang.Object ref = collectiveRingOrder_; if (ref instanceof java.lang.String) { @@ -2244,7 +2119,9 @@ public java.lang.String getCollectiveRingOrder() { * * * string collective_ring_order = 4; + * @return The bytes for collectiveRingOrder. */ + @java.lang.Override public com.google.protobuf.ByteString getCollectiveRingOrderBytes() { java.lang.Object ref = collectiveRingOrder_; @@ -2270,7 +2147,9 @@ public java.lang.String getCollectiveRingOrder() { * * * bool timestamped_allocator = 5; + * @return The timestampedAllocator. */ + @java.lang.Override public boolean getTimestampedAllocator() { return timestampedAllocator_; } @@ -2287,7 +2166,9 @@ public boolean getTimestampedAllocator() { * * * int32 kernel_tracker_max_interval = 7; + * @return The kernelTrackerMaxInterval. */ + @java.lang.Override public int getKernelTrackerMaxInterval() { return kernelTrackerMaxInterval_; } @@ -2304,7 +2185,9 @@ public int getKernelTrackerMaxInterval() { * * * int32 kernel_tracker_max_bytes = 8; + * @return The kernelTrackerMaxBytes. */ + @java.lang.Override public int getKernelTrackerMaxBytes() { return kernelTrackerMaxBytes_; } @@ -2320,7 +2203,9 @@ public int getKernelTrackerMaxBytes() { * * * int32 kernel_tracker_max_pending = 9; + * @return The kernelTrackerMaxPending. */ + @java.lang.Override public int getKernelTrackerMaxPending() { return kernelTrackerMaxPending_; } @@ -2341,7 +2226,9 @@ public int getKernelTrackerMaxPending() { * * * double internal_fragmentation_fraction = 10; + * @return The internalFragmentationFraction. */ + @java.lang.Override public double getInternalFragmentationFraction() { return internalFragmentationFraction_; } @@ -2354,7 +2241,9 @@ public double getInternalFragmentationFraction() { * * * bool use_cuda_malloc_async = 11; + * @return The useCudaMallocAsync. */ + @java.lang.Override public boolean getUseCudaMallocAsync() { return useCudaMallocAsync_; } @@ -2369,11 +2258,49 @@ public boolean getUseCudaMallocAsync() { * * * bool disallow_retry_on_allocation_failure = 12; + * @return The disallowRetryOnAllocationFailure. */ + @java.lang.Override public boolean getDisallowRetryOnAllocationFailure() { return disallowRetryOnAllocationFailure_; } + public static final int GPU_HOST_MEM_LIMIT_IN_MB_FIELD_NUMBER = 13; + private float gpuHostMemLimitInMb_; + /** + *
+     * Memory limit for "GPU host allocator", aka pinned memory allocator.  This
+     * can also be set via the envvar TF_GPU_HOST_MEM_LIMIT_IN_MB.
+     * 
+ * + * float gpu_host_mem_limit_in_mb = 13; + * @return The gpuHostMemLimitInMb. + */ + @java.lang.Override + public float getGpuHostMemLimitInMb() { + return gpuHostMemLimitInMb_; + } + + public static final int GPU_HOST_MEM_DISALLOW_GROWTH_FIELD_NUMBER = 14; + private boolean gpuHostMemDisallowGrowth_; + /** + *
+     * If true, then the host allocator allocates its max memory all upfront and
+     * never grows.  This can be useful for latency-sensitive systems, because
+     * growing the GPU host memory pool can be expensive.
+     * You probably only want to use this in combination with
+     * gpu_host_mem_limit_in_mb, because the default GPU host memory limit is
+     * quite high.
+     * 
+ * + * bool gpu_host_mem_disallow_growth = 14; + * @return The gpuHostMemDisallowGrowth. + */ + @java.lang.Override + public boolean getGpuHostMemDisallowGrowth() { + return gpuHostMemDisallowGrowth_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -2397,7 +2324,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (numDevToDevCopyStreams_ != 0) { output.writeInt32(3, numDevToDevCopyStreams_); } - if (!getCollectiveRingOrderBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectiveRingOrder_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, collectiveRingOrder_); } if (timestampedAllocator_ != false) { @@ -2412,7 +2339,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (kernelTrackerMaxPending_ != 0) { output.writeInt32(9, kernelTrackerMaxPending_); } - if (internalFragmentationFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(internalFragmentationFraction_) != 0) { output.writeDouble(10, internalFragmentationFraction_); } if (useCudaMallocAsync_ != false) { @@ -2421,7 +2348,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (disallowRetryOnAllocationFailure_ != false) { output.writeBool(12, disallowRetryOnAllocationFailure_); } - unknownFields.writeTo(output); + if (java.lang.Float.floatToRawIntBits(gpuHostMemLimitInMb_) != 0) { + output.writeFloat(13, gpuHostMemLimitInMb_); + } + if (gpuHostMemDisallowGrowth_ != false) { + output.writeBool(14, gpuHostMemDisallowGrowth_); + } + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2442,7 +2375,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, numDevToDevCopyStreams_); } - if (!getCollectiveRingOrderBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectiveRingOrder_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, collectiveRingOrder_); } if (timestampedAllocator_ != false) { @@ -2461,7 +2394,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, kernelTrackerMaxPending_); } - if (internalFragmentationFraction_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(internalFragmentationFraction_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(10, internalFragmentationFraction_); } @@ -2473,7 +2406,15 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, disallowRetryOnAllocationFailure_); } - size += unknownFields.getSerializedSize(); + if (java.lang.Float.floatToRawIntBits(gpuHostMemLimitInMb_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(13, gpuHostMemLimitInMb_); + } + if (gpuHostMemDisallowGrowth_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, gpuHostMemDisallowGrowth_); + } + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2483,10 +2424,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.GPUOptions.Experimental)) { + if (!(obj instanceof org.tensorflow.proto.GPUOptions.Experimental)) { return super.equals(obj); } - org.tensorflow.proto.framework.GPUOptions.Experimental other = (org.tensorflow.proto.framework.GPUOptions.Experimental) obj; + org.tensorflow.proto.GPUOptions.Experimental other = (org.tensorflow.proto.GPUOptions.Experimental) obj; if (!getVirtualDevicesList() .equals(other.getVirtualDevicesList())) return false; @@ -2511,7 +2452,12 @@ public boolean equals(final java.lang.Object obj) { != other.getUseCudaMallocAsync()) return false; if (getDisallowRetryOnAllocationFailure() != other.getDisallowRetryOnAllocationFailure()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (java.lang.Float.floatToIntBits(getGpuHostMemLimitInMb()) + != java.lang.Float.floatToIntBits( + other.getGpuHostMemLimitInMb())) return false; + if (getGpuHostMemDisallowGrowth() + != other.getGpuHostMemDisallowGrowth()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2551,74 +2497,80 @@ public int hashCode() { hash = (37 * hash) + DISALLOW_RETRY_ON_ALLOCATION_FAILURE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDisallowRetryOnAllocationFailure()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (37 * hash) + GPU_HOST_MEM_LIMIT_IN_MB_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getGpuHostMemLimitInMb()); + hash = (37 * hash) + GPU_HOST_MEM_DISALLOW_GROWTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getGpuHostMemDisallowGrowth()); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.GPUOptions.Experimental parseFrom( + public static org.tensorflow.proto.GPUOptions.Experimental parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.GPUOptions.Experimental parseFrom( + public static org.tensorflow.proto.GPUOptions.Experimental parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.GPUOptions.Experimental parseFrom( + public static org.tensorflow.proto.GPUOptions.Experimental parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.GPUOptions.Experimental parseFrom( + public static org.tensorflow.proto.GPUOptions.Experimental parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.GPUOptions.Experimental parseFrom(byte[] data) + public static org.tensorflow.proto.GPUOptions.Experimental parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.GPUOptions.Experimental parseFrom( + public static org.tensorflow.proto.GPUOptions.Experimental parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.GPUOptions.Experimental parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.GPUOptions.Experimental parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.GPUOptions.Experimental parseFrom( + public static org.tensorflow.proto.GPUOptions.Experimental 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 org.tensorflow.proto.framework.GPUOptions.Experimental parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.GPUOptions.Experimental parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.GPUOptions.Experimental parseDelimitedFrom( + public static org.tensorflow.proto.GPUOptions.Experimental 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 org.tensorflow.proto.framework.GPUOptions.Experimental parseFrom( + public static org.tensorflow.proto.GPUOptions.Experimental parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.GPUOptions.Experimental parseFrom( + public static org.tensorflow.proto.GPUOptions.Experimental parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2631,7 +2583,7 @@ public static org.tensorflow.proto.framework.GPUOptions.Experimental parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.GPUOptions.Experimental prototype) { + public static Builder newBuilder(org.tensorflow.proto.GPUOptions.Experimental prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -2652,45 +2604,40 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.GPUOptions.Experimental) - org.tensorflow.proto.framework.GPUOptions.ExperimentalOrBuilder { + org.tensorflow.proto.GPUOptions.ExperimentalOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_GPUOptions_Experimental_descriptor; + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_GPUOptions_Experimental_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_GPUOptions_Experimental_fieldAccessorTable + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_GPUOptions_Experimental_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GPUOptions.Experimental.class, org.tensorflow.proto.framework.GPUOptions.Experimental.Builder.class); + org.tensorflow.proto.GPUOptions.Experimental.class, org.tensorflow.proto.GPUOptions.Experimental.Builder.class); } - // Construct using org.tensorflow.proto.framework.GPUOptions.Experimental.newBuilder() + // Construct using org.tensorflow.proto.GPUOptions.Experimental.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getVirtualDevicesFieldBuilder(); - } + } @java.lang.Override public Builder clear() { super.clear(); if (virtualDevicesBuilder_ == null) { virtualDevices_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + virtualDevices_ = null; virtualDevicesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); useUnifiedMemory_ = false; numDevToDevCopyStreams_ = 0; @@ -2711,23 +2658,27 @@ public Builder clear() { disallowRetryOnAllocationFailure_ = false; + gpuHostMemLimitInMb_ = 0F; + + gpuHostMemDisallowGrowth_ = false; + return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_GPUOptions_Experimental_descriptor; + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_GPUOptions_Experimental_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.GPUOptions.Experimental getDefaultInstanceForType() { - return org.tensorflow.proto.framework.GPUOptions.Experimental.getDefaultInstance(); + public org.tensorflow.proto.GPUOptions.Experimental getDefaultInstanceForType() { + return org.tensorflow.proto.GPUOptions.Experimental.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.GPUOptions.Experimental build() { - org.tensorflow.proto.framework.GPUOptions.Experimental result = buildPartial(); + public org.tensorflow.proto.GPUOptions.Experimental build() { + org.tensorflow.proto.GPUOptions.Experimental result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2735,8 +2686,8 @@ public org.tensorflow.proto.framework.GPUOptions.Experimental build() { } @java.lang.Override - public org.tensorflow.proto.framework.GPUOptions.Experimental buildPartial() { - org.tensorflow.proto.framework.GPUOptions.Experimental result = new org.tensorflow.proto.framework.GPUOptions.Experimental(this); + public org.tensorflow.proto.GPUOptions.Experimental buildPartial() { + org.tensorflow.proto.GPUOptions.Experimental result = new org.tensorflow.proto.GPUOptions.Experimental(this); int from_bitField0_ = bitField0_; if (virtualDevicesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -2757,6 +2708,8 @@ public org.tensorflow.proto.framework.GPUOptions.Experimental buildPartial() { result.internalFragmentationFraction_ = internalFragmentationFraction_; result.useCudaMallocAsync_ = useCudaMallocAsync_; result.disallowRetryOnAllocationFailure_ = disallowRetryOnAllocationFailure_; + result.gpuHostMemLimitInMb_ = gpuHostMemLimitInMb_; + result.gpuHostMemDisallowGrowth_ = gpuHostMemDisallowGrowth_; onBuilt(); return result; } @@ -2795,16 +2748,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.GPUOptions.Experimental) { - return mergeFrom((org.tensorflow.proto.framework.GPUOptions.Experimental)other); + if (other instanceof org.tensorflow.proto.GPUOptions.Experimental) { + return mergeFrom((org.tensorflow.proto.GPUOptions.Experimental)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.GPUOptions.Experimental other) { - if (other == org.tensorflow.proto.framework.GPUOptions.Experimental.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.GPUOptions.Experimental other) { + if (other == org.tensorflow.proto.GPUOptions.Experimental.getDefaultInstance()) return this; if (virtualDevicesBuilder_ == null) { if (!other.virtualDevices_.isEmpty()) { if (virtualDevices_.isEmpty()) { @@ -2862,7 +2815,13 @@ public Builder mergeFrom(org.tensorflow.proto.framework.GPUOptions.Experimental if (other.getDisallowRetryOnAllocationFailure() != false) { setDisallowRetryOnAllocationFailure(other.getDisallowRetryOnAllocationFailure()); } - this.mergeUnknownFields(other.unknownFields); + if (other.getGpuHostMemLimitInMb() != 0F) { + setGpuHostMemLimitInMb(other.getGpuHostMemLimitInMb()); + } + if (other.getGpuHostMemDisallowGrowth() != false) { + setGpuHostMemDisallowGrowth(other.getGpuHostMemDisallowGrowth()); + } + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2877,32 +2836,118 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.GPUOptions.Experimental parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices m = + input.readMessage( + org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices.parser(), + extensionRegistry); + if (virtualDevicesBuilder_ == null) { + ensureVirtualDevicesIsMutable(); + virtualDevices_.add(m); + } else { + virtualDevicesBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + useUnifiedMemory_ = input.readBool(); + + break; + } // case 16 + case 24: { + numDevToDevCopyStreams_ = input.readInt32(); + + break; + } // case 24 + case 34: { + collectiveRingOrder_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 40: { + timestampedAllocator_ = input.readBool(); + + break; + } // case 40 + case 56: { + kernelTrackerMaxInterval_ = input.readInt32(); + + break; + } // case 56 + case 64: { + kernelTrackerMaxBytes_ = input.readInt32(); + + break; + } // case 64 + case 72: { + kernelTrackerMaxPending_ = input.readInt32(); + + break; + } // case 72 + case 81: { + internalFragmentationFraction_ = input.readDouble(); + + break; + } // case 81 + case 88: { + useCudaMallocAsync_ = input.readBool(); + + break; + } // case 88 + case 96: { + disallowRetryOnAllocationFailure_ = input.readBool(); + + break; + } // case 96 + case 109: { + gpuHostMemLimitInMb_ = input.readFloat(); + + break; + } // case 109 + case 112: { + gpuHostMemDisallowGrowth_ = input.readBool(); + + break; + } // case 112 + 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) { - parsedMessage = (org.tensorflow.proto.framework.GPUOptions.Experimental) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - private java.util.List virtualDevices_ = + private java.util.List virtualDevices_ = java.util.Collections.emptyList(); private void ensureVirtualDevicesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - virtualDevices_ = new java.util.ArrayList(virtualDevices_); + virtualDevices_ = new java.util.ArrayList(virtualDevices_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices, org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.Builder, org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevicesOrBuilder> virtualDevicesBuilder_; + org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices, org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices.Builder, org.tensorflow.proto.GPUOptions.Experimental.VirtualDevicesOrBuilder> virtualDevicesBuilder_; /** *
@@ -2945,7 +2990,7 @@ private void ensureVirtualDevicesIsMutable() {
        *
        * repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
        */
-      public java.util.List getVirtualDevicesList() {
+      public java.util.List getVirtualDevicesList() {
         if (virtualDevicesBuilder_ == null) {
           return java.util.Collections.unmodifiableList(virtualDevices_);
         } else {
@@ -3041,7 +3086,7 @@ public int getVirtualDevicesCount() {
        *
        * repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
        */
-      public org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices getVirtualDevices(int index) {
+      public org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices getVirtualDevices(int index) {
         if (virtualDevicesBuilder_ == null) {
           return virtualDevices_.get(index);
         } else {
@@ -3090,7 +3135,7 @@ public org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices get
        * repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
        */
       public Builder setVirtualDevices(
-          int index, org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices value) {
+          int index, org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices value) {
         if (virtualDevicesBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -3145,7 +3190,7 @@ public Builder setVirtualDevices(
        * repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
        */
       public Builder setVirtualDevices(
-          int index, org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.Builder builderForValue) {
+          int index, org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices.Builder builderForValue) {
         if (virtualDevicesBuilder_ == null) {
           ensureVirtualDevicesIsMutable();
           virtualDevices_.set(index, builderForValue.build());
@@ -3196,7 +3241,7 @@ public Builder setVirtualDevices(
        *
        * repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
        */
-      public Builder addVirtualDevices(org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices value) {
+      public Builder addVirtualDevices(org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices value) {
         if (virtualDevicesBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -3251,7 +3296,7 @@ public Builder addVirtualDevices(org.tensorflow.proto.framework.GPUOptions.Exper
        * repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
        */
       public Builder addVirtualDevices(
-          int index, org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices value) {
+          int index, org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices value) {
         if (virtualDevicesBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -3306,7 +3351,7 @@ public Builder addVirtualDevices(
        * repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
        */
       public Builder addVirtualDevices(
-          org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.Builder builderForValue) {
+          org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices.Builder builderForValue) {
         if (virtualDevicesBuilder_ == null) {
           ensureVirtualDevicesIsMutable();
           virtualDevices_.add(builderForValue.build());
@@ -3358,7 +3403,7 @@ public Builder addVirtualDevices(
        * repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
        */
       public Builder addVirtualDevices(
-          int index, org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.Builder builderForValue) {
+          int index, org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices.Builder builderForValue) {
         if (virtualDevicesBuilder_ == null) {
           ensureVirtualDevicesIsMutable();
           virtualDevices_.add(index, builderForValue.build());
@@ -3410,7 +3455,7 @@ public Builder addVirtualDevices(
        * repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
        */
       public Builder addAllVirtualDevices(
-          java.lang.Iterable values) {
+          java.lang.Iterable values) {
         if (virtualDevicesBuilder_ == null) {
           ensureVirtualDevicesIsMutable();
           com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -3564,7 +3609,7 @@ public Builder removeVirtualDevices(int index) {
        *
        * repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
        */
-      public org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.Builder getVirtualDevicesBuilder(
+      public org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices.Builder getVirtualDevicesBuilder(
           int index) {
         return getVirtualDevicesFieldBuilder().getBuilder(index);
       }
@@ -3609,7 +3654,7 @@ public org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.Bui
        *
        * repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
        */
-      public org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevicesOrBuilder getVirtualDevicesOrBuilder(
+      public org.tensorflow.proto.GPUOptions.Experimental.VirtualDevicesOrBuilder getVirtualDevicesOrBuilder(
           int index) {
         if (virtualDevicesBuilder_ == null) {
           return virtualDevices_.get(index);  } else {
@@ -3657,7 +3702,7 @@ public org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevicesOrBu
        *
        * repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
        */
-      public java.util.List 
+      public java.util.List 
            getVirtualDevicesOrBuilderList() {
         if (virtualDevicesBuilder_ != null) {
           return virtualDevicesBuilder_.getMessageOrBuilderList();
@@ -3706,9 +3751,9 @@ public org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevicesOrBu
        *
        * repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
        */
-      public org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.Builder addVirtualDevicesBuilder() {
+      public org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices.Builder addVirtualDevicesBuilder() {
         return getVirtualDevicesFieldBuilder().addBuilder(
-            org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.getDefaultInstance());
+            org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices.getDefaultInstance());
       }
       /**
        * 
@@ -3751,10 +3796,10 @@ public org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.Bui
        *
        * repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
        */
-      public org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.Builder addVirtualDevicesBuilder(
+      public org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices.Builder addVirtualDevicesBuilder(
           int index) {
         return getVirtualDevicesFieldBuilder().addBuilder(
-            index, org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.getDefaultInstance());
+            index, org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices.getDefaultInstance());
       }
       /**
        * 
@@ -3797,16 +3842,16 @@ public org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.Bui
        *
        * repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;
        */
-      public java.util.List 
+      public java.util.List 
            getVirtualDevicesBuilderList() {
         return getVirtualDevicesFieldBuilder().getBuilderList();
       }
       private com.google.protobuf.RepeatedFieldBuilderV3<
-          org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices, org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.Builder, org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevicesOrBuilder> 
+          org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices, org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices.Builder, org.tensorflow.proto.GPUOptions.Experimental.VirtualDevicesOrBuilder> 
           getVirtualDevicesFieldBuilder() {
         if (virtualDevicesBuilder_ == null) {
           virtualDevicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-              org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices, org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.Builder, org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevicesOrBuilder>(
+              org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices, org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices.Builder, org.tensorflow.proto.GPUOptions.Experimental.VirtualDevicesOrBuilder>(
                   virtualDevices_,
                   ((bitField0_ & 0x00000001) != 0),
                   getParentForChildren(),
@@ -3829,7 +3874,9 @@ public org.tensorflow.proto.framework.GPUOptions.Experimental.VirtualDevices.Bui
        * 
* * bool use_unified_memory = 2; + * @return The useUnifiedMemory. */ + @java.lang.Override public boolean getUseUnifiedMemory() { return useUnifiedMemory_; } @@ -3845,6 +3892,8 @@ public boolean getUseUnifiedMemory() { *
* * bool use_unified_memory = 2; + * @param value The useUnifiedMemory to set. + * @return This builder for chaining. */ public Builder setUseUnifiedMemory(boolean value) { @@ -3864,6 +3913,7 @@ public Builder setUseUnifiedMemory(boolean value) { *
* * bool use_unified_memory = 2; + * @return This builder for chaining. */ public Builder clearUseUnifiedMemory() { @@ -3881,7 +3931,9 @@ public Builder clearUseUnifiedMemory() { * * * int32 num_dev_to_dev_copy_streams = 3; + * @return The numDevToDevCopyStreams. */ + @java.lang.Override public int getNumDevToDevCopyStreams() { return numDevToDevCopyStreams_; } @@ -3893,6 +3945,8 @@ public int getNumDevToDevCopyStreams() { * * * int32 num_dev_to_dev_copy_streams = 3; + * @param value The numDevToDevCopyStreams to set. + * @return This builder for chaining. */ public Builder setNumDevToDevCopyStreams(int value) { @@ -3908,6 +3962,7 @@ public Builder setNumDevToDevCopyStreams(int value) { * * * int32 num_dev_to_dev_copy_streams = 3; + * @return This builder for chaining. */ public Builder clearNumDevToDevCopyStreams() { @@ -3928,6 +3983,7 @@ public Builder clearNumDevToDevCopyStreams() { * * * string collective_ring_order = 4; + * @return The collectiveRingOrder. */ public java.lang.String getCollectiveRingOrder() { java.lang.Object ref = collectiveRingOrder_; @@ -3952,6 +4008,7 @@ public java.lang.String getCollectiveRingOrder() { * * * string collective_ring_order = 4; + * @return The bytes for collectiveRingOrder. */ public com.google.protobuf.ByteString getCollectiveRingOrderBytes() { @@ -3977,6 +4034,8 @@ public java.lang.String getCollectiveRingOrder() { * * * string collective_ring_order = 4; + * @param value The collectiveRingOrder to set. + * @return This builder for chaining. */ public Builder setCollectiveRingOrder( java.lang.String value) { @@ -3999,6 +4058,7 @@ public Builder setCollectiveRingOrder( * * * string collective_ring_order = 4; + * @return This builder for chaining. */ public Builder clearCollectiveRingOrder() { @@ -4017,6 +4077,8 @@ public Builder clearCollectiveRingOrder() { * * * string collective_ring_order = 4; + * @param value The bytes for collectiveRingOrder to set. + * @return This builder for chaining. */ public Builder setCollectiveRingOrderBytes( com.google.protobuf.ByteString value) { @@ -4040,7 +4102,9 @@ public Builder setCollectiveRingOrderBytes( * * * bool timestamped_allocator = 5; + * @return The timestampedAllocator. */ + @java.lang.Override public boolean getTimestampedAllocator() { return timestampedAllocator_; } @@ -4053,6 +4117,8 @@ public boolean getTimestampedAllocator() { * * * bool timestamped_allocator = 5; + * @param value The timestampedAllocator to set. + * @return This builder for chaining. */ public Builder setTimestampedAllocator(boolean value) { @@ -4069,6 +4135,7 @@ public Builder setTimestampedAllocator(boolean value) { * * * bool timestamped_allocator = 5; + * @return This builder for chaining. */ public Builder clearTimestampedAllocator() { @@ -4088,7 +4155,9 @@ public Builder clearTimestampedAllocator() { * * * int32 kernel_tracker_max_interval = 7; + * @return The kernelTrackerMaxInterval. */ + @java.lang.Override public int getKernelTrackerMaxInterval() { return kernelTrackerMaxInterval_; } @@ -4102,6 +4171,8 @@ public int getKernelTrackerMaxInterval() { * * * int32 kernel_tracker_max_interval = 7; + * @param value The kernelTrackerMaxInterval to set. + * @return This builder for chaining. */ public Builder setKernelTrackerMaxInterval(int value) { @@ -4119,6 +4190,7 @@ public Builder setKernelTrackerMaxInterval(int value) { * * * int32 kernel_tracker_max_interval = 7; + * @return This builder for chaining. */ public Builder clearKernelTrackerMaxInterval() { @@ -4138,7 +4210,9 @@ public Builder clearKernelTrackerMaxInterval() { * * * int32 kernel_tracker_max_bytes = 8; + * @return The kernelTrackerMaxBytes. */ + @java.lang.Override public int getKernelTrackerMaxBytes() { return kernelTrackerMaxBytes_; } @@ -4152,6 +4226,8 @@ public int getKernelTrackerMaxBytes() { * * * int32 kernel_tracker_max_bytes = 8; + * @param value The kernelTrackerMaxBytes to set. + * @return This builder for chaining. */ public Builder setKernelTrackerMaxBytes(int value) { @@ -4169,6 +4245,7 @@ public Builder setKernelTrackerMaxBytes(int value) { * * * int32 kernel_tracker_max_bytes = 8; + * @return This builder for chaining. */ public Builder clearKernelTrackerMaxBytes() { @@ -4187,7 +4264,9 @@ public Builder clearKernelTrackerMaxBytes() { * * * int32 kernel_tracker_max_pending = 9; + * @return The kernelTrackerMaxPending. */ + @java.lang.Override public int getKernelTrackerMaxPending() { return kernelTrackerMaxPending_; } @@ -4200,6 +4279,8 @@ public int getKernelTrackerMaxPending() { * * * int32 kernel_tracker_max_pending = 9; + * @param value The kernelTrackerMaxPending to set. + * @return This builder for chaining. */ public Builder setKernelTrackerMaxPending(int value) { @@ -4216,6 +4297,7 @@ public Builder setKernelTrackerMaxPending(int value) { * * * int32 kernel_tracker_max_pending = 9; + * @return This builder for chaining. */ public Builder clearKernelTrackerMaxPending() { @@ -4239,7 +4321,9 @@ public Builder clearKernelTrackerMaxPending() { * * * double internal_fragmentation_fraction = 10; + * @return The internalFragmentationFraction. */ + @java.lang.Override public double getInternalFragmentationFraction() { return internalFragmentationFraction_; } @@ -4257,6 +4341,8 @@ public double getInternalFragmentationFraction() { * * * double internal_fragmentation_fraction = 10; + * @param value The internalFragmentationFraction to set. + * @return This builder for chaining. */ public Builder setInternalFragmentationFraction(double value) { @@ -4278,6 +4364,7 @@ public Builder setInternalFragmentationFraction(double value) { * * * double internal_fragmentation_fraction = 10; + * @return This builder for chaining. */ public Builder clearInternalFragmentationFraction() { @@ -4293,7 +4380,9 @@ public Builder clearInternalFragmentationFraction() { * * * bool use_cuda_malloc_async = 11; + * @return The useCudaMallocAsync. */ + @java.lang.Override public boolean getUseCudaMallocAsync() { return useCudaMallocAsync_; } @@ -4303,6 +4392,8 @@ public boolean getUseCudaMallocAsync() { * * * bool use_cuda_malloc_async = 11; + * @param value The useCudaMallocAsync to set. + * @return This builder for chaining. */ public Builder setUseCudaMallocAsync(boolean value) { @@ -4316,6 +4407,7 @@ public Builder setUseCudaMallocAsync(boolean value) { * * * bool use_cuda_malloc_async = 11; + * @return This builder for chaining. */ public Builder clearUseCudaMallocAsync() { @@ -4333,7 +4425,9 @@ public Builder clearUseCudaMallocAsync() { * * * bool disallow_retry_on_allocation_failure = 12; + * @return The disallowRetryOnAllocationFailure. */ + @java.lang.Override public boolean getDisallowRetryOnAllocationFailure() { return disallowRetryOnAllocationFailure_; } @@ -4345,6 +4439,8 @@ public boolean getDisallowRetryOnAllocationFailure() { * * * bool disallow_retry_on_allocation_failure = 12; + * @param value The disallowRetryOnAllocationFailure to set. + * @return This builder for chaining. */ public Builder setDisallowRetryOnAllocationFailure(boolean value) { @@ -4360,6 +4456,7 @@ public Builder setDisallowRetryOnAllocationFailure(boolean value) { * * * bool disallow_retry_on_allocation_failure = 12; + * @return This builder for chaining. */ public Builder clearDisallowRetryOnAllocationFailure() { @@ -4367,6 +4464,110 @@ public Builder clearDisallowRetryOnAllocationFailure() { onChanged(); return this; } + + private float gpuHostMemLimitInMb_ ; + /** + *
+       * Memory limit for "GPU host allocator", aka pinned memory allocator.  This
+       * can also be set via the envvar TF_GPU_HOST_MEM_LIMIT_IN_MB.
+       * 
+ * + * float gpu_host_mem_limit_in_mb = 13; + * @return The gpuHostMemLimitInMb. + */ + @java.lang.Override + public float getGpuHostMemLimitInMb() { + return gpuHostMemLimitInMb_; + } + /** + *
+       * Memory limit for "GPU host allocator", aka pinned memory allocator.  This
+       * can also be set via the envvar TF_GPU_HOST_MEM_LIMIT_IN_MB.
+       * 
+ * + * float gpu_host_mem_limit_in_mb = 13; + * @param value The gpuHostMemLimitInMb to set. + * @return This builder for chaining. + */ + public Builder setGpuHostMemLimitInMb(float value) { + + gpuHostMemLimitInMb_ = value; + onChanged(); + return this; + } + /** + *
+       * Memory limit for "GPU host allocator", aka pinned memory allocator.  This
+       * can also be set via the envvar TF_GPU_HOST_MEM_LIMIT_IN_MB.
+       * 
+ * + * float gpu_host_mem_limit_in_mb = 13; + * @return This builder for chaining. + */ + public Builder clearGpuHostMemLimitInMb() { + + gpuHostMemLimitInMb_ = 0F; + onChanged(); + return this; + } + + private boolean gpuHostMemDisallowGrowth_ ; + /** + *
+       * If true, then the host allocator allocates its max memory all upfront and
+       * never grows.  This can be useful for latency-sensitive systems, because
+       * growing the GPU host memory pool can be expensive.
+       * You probably only want to use this in combination with
+       * gpu_host_mem_limit_in_mb, because the default GPU host memory limit is
+       * quite high.
+       * 
+ * + * bool gpu_host_mem_disallow_growth = 14; + * @return The gpuHostMemDisallowGrowth. + */ + @java.lang.Override + public boolean getGpuHostMemDisallowGrowth() { + return gpuHostMemDisallowGrowth_; + } + /** + *
+       * If true, then the host allocator allocates its max memory all upfront and
+       * never grows.  This can be useful for latency-sensitive systems, because
+       * growing the GPU host memory pool can be expensive.
+       * You probably only want to use this in combination with
+       * gpu_host_mem_limit_in_mb, because the default GPU host memory limit is
+       * quite high.
+       * 
+ * + * bool gpu_host_mem_disallow_growth = 14; + * @param value The gpuHostMemDisallowGrowth to set. + * @return This builder for chaining. + */ + public Builder setGpuHostMemDisallowGrowth(boolean value) { + + gpuHostMemDisallowGrowth_ = value; + onChanged(); + return this; + } + /** + *
+       * If true, then the host allocator allocates its max memory all upfront and
+       * never grows.  This can be useful for latency-sensitive systems, because
+       * growing the GPU host memory pool can be expensive.
+       * You probably only want to use this in combination with
+       * gpu_host_mem_limit_in_mb, because the default GPU host memory limit is
+       * quite high.
+       * 
+ * + * bool gpu_host_mem_disallow_growth = 14; + * @return This builder for chaining. + */ + public Builder clearGpuHostMemDisallowGrowth() { + + gpuHostMemDisallowGrowth_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4384,12 +4585,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.GPUOptions.Experimental) - private static final org.tensorflow.proto.framework.GPUOptions.Experimental DEFAULT_INSTANCE; + private static final org.tensorflow.proto.GPUOptions.Experimental DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.GPUOptions.Experimental(); + DEFAULT_INSTANCE = new org.tensorflow.proto.GPUOptions.Experimental(); } - public static org.tensorflow.proto.framework.GPUOptions.Experimental getDefaultInstance() { + public static org.tensorflow.proto.GPUOptions.Experimental getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -4400,7 +4601,18 @@ public Experimental parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Experimental(input, extensionRegistry); + 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(); } }; @@ -4414,7 +4626,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.GPUOptions.Experimental getDefaultInstanceForType() { + public org.tensorflow.proto.GPUOptions.Experimental getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -4424,9 +4636,9 @@ public org.tensorflow.proto.framework.GPUOptions.Experimental getDefaultInstance private double perProcessGpuMemoryFraction_; /** *
-   * Fraction of the available GPU memory to allocate for each process.
+   * Fraction of the total GPU memory to allocate for each process.
    * 1 means to allocate all of the GPU memory, 0.5 means the process
-   * allocates up to ~50% of the available GPU memory.
+   * allocates up to ~50% of the total GPU memory.
    * GPU memory is pre-allocated unless the allow_growth option is enabled.
    * If greater than 1.0, uses CUDA unified memory to potentially oversubscribe
    * the amount of memory available on the GPU device by using host memory as a
@@ -4442,7 +4654,9 @@ public org.tensorflow.proto.framework.GPUOptions.Experimental getDefaultInstance
    * 
* * double per_process_gpu_memory_fraction = 1; + * @return The perProcessGpuMemoryFraction. */ + @java.lang.Override public double getPerProcessGpuMemoryFraction() { return perProcessGpuMemoryFraction_; } @@ -4456,7 +4670,9 @@ public double getPerProcessGpuMemoryFraction() { * * * bool allow_growth = 4; + * @return The allowGrowth. */ + @java.lang.Override public boolean getAllowGrowth() { return allowGrowth_; } @@ -4474,7 +4690,9 @@ public boolean getAllowGrowth() { * * * string allocator_type = 2; + * @return The allocatorType. */ + @java.lang.Override public java.lang.String getAllocatorType() { java.lang.Object ref = allocatorType_; if (ref instanceof java.lang.String) { @@ -4498,7 +4716,9 @@ public java.lang.String getAllocatorType() { * * * string allocator_type = 2; + * @return The bytes for allocatorType. */ + @java.lang.Override public com.google.protobuf.ByteString getAllocatorTypeBytes() { java.lang.Object ref = allocatorType_; @@ -4523,7 +4743,9 @@ public java.lang.String getAllocatorType() { * * * int64 deferred_deletion_bytes = 3; + * @return The deferredDeletionBytes. */ + @java.lang.Override public long getDeferredDeletionBytes() { return deferredDeletionBytes_; } @@ -4555,7 +4777,9 @@ public long getDeferredDeletionBytes() { * * * string visible_device_list = 5; + * @return The visibleDeviceList. */ + @java.lang.Override public java.lang.String getVisibleDeviceList() { java.lang.Object ref = visibleDeviceList_; if (ref instanceof java.lang.String) { @@ -4593,7 +4817,9 @@ public java.lang.String getVisibleDeviceList() { * * * string visible_device_list = 5; + * @return The bytes for visibleDeviceList. */ + @java.lang.Override public com.google.protobuf.ByteString getVisibleDeviceListBytes() { java.lang.Object ref = visibleDeviceList_; @@ -4618,7 +4844,9 @@ public java.lang.String getVisibleDeviceList() { * * * int32 polling_active_delay_usecs = 6; + * @return The pollingActiveDelayUsecs. */ + @java.lang.Override public int getPollingActiveDelayUsecs() { return pollingActiveDelayUsecs_; } @@ -4631,7 +4859,9 @@ public int getPollingActiveDelayUsecs() { * * * int32 polling_inactive_delay_msecs = 7; + * @return The pollingInactiveDelayMsecs. */ + @java.lang.Override public int getPollingInactiveDelayMsecs() { return pollingInactiveDelayMsecs_; } @@ -4653,13 +4883,15 @@ public int getPollingInactiveDelayMsecs() { * * * bool force_gpu_compatible = 8; + * @return The forceGpuCompatible. */ + @java.lang.Override public boolean getForceGpuCompatible() { return forceGpuCompatible_; } public static final int EXPERIMENTAL_FIELD_NUMBER = 9; - private org.tensorflow.proto.framework.GPUOptions.Experimental experimental_; + private org.tensorflow.proto.GPUOptions.Experimental experimental_; /** *
    * Everything inside experimental is subject to change and is not subject
@@ -4668,7 +4900,9 @@ public boolean getForceGpuCompatible() {
    * 
* * .tensorflow.GPUOptions.Experimental experimental = 9; + * @return Whether the experimental field is set. */ + @java.lang.Override public boolean hasExperimental() { return experimental_ != null; } @@ -4680,9 +4914,11 @@ public boolean hasExperimental() { * * * .tensorflow.GPUOptions.Experimental experimental = 9; + * @return The experimental. */ - public org.tensorflow.proto.framework.GPUOptions.Experimental getExperimental() { - return experimental_ == null ? org.tensorflow.proto.framework.GPUOptions.Experimental.getDefaultInstance() : experimental_; + @java.lang.Override + public org.tensorflow.proto.GPUOptions.Experimental getExperimental() { + return experimental_ == null ? org.tensorflow.proto.GPUOptions.Experimental.getDefaultInstance() : experimental_; } /** *
@@ -4693,7 +4929,8 @@ public org.tensorflow.proto.framework.GPUOptions.Experimental getExperimental()
    *
    * .tensorflow.GPUOptions.Experimental experimental = 9;
    */
-  public org.tensorflow.proto.framework.GPUOptions.ExperimentalOrBuilder getExperimentalOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.GPUOptions.ExperimentalOrBuilder getExperimentalOrBuilder() {
     return getExperimental();
   }
 
@@ -4711,10 +4948,10 @@ public final boolean isInitialized() {
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output)
                       throws java.io.IOException {
-    if (perProcessGpuMemoryFraction_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(perProcessGpuMemoryFraction_) != 0) {
       output.writeDouble(1, perProcessGpuMemoryFraction_);
     }
-    if (!getAllocatorTypeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allocatorType_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, allocatorType_);
     }
     if (deferredDeletionBytes_ != 0L) {
@@ -4723,7 +4960,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (allowGrowth_ != false) {
       output.writeBool(4, allowGrowth_);
     }
-    if (!getVisibleDeviceListBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(visibleDeviceList_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, visibleDeviceList_);
     }
     if (pollingActiveDelayUsecs_ != 0) {
@@ -4738,7 +4975,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (experimental_ != null) {
       output.writeMessage(9, getExperimental());
     }
-    unknownFields.writeTo(output);
+    getUnknownFields().writeTo(output);
   }
 
   @java.lang.Override
@@ -4747,11 +4984,11 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (perProcessGpuMemoryFraction_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(perProcessGpuMemoryFraction_) != 0) {
       size += com.google.protobuf.CodedOutputStream
         .computeDoubleSize(1, perProcessGpuMemoryFraction_);
     }
-    if (!getAllocatorTypeBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allocatorType_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, allocatorType_);
     }
     if (deferredDeletionBytes_ != 0L) {
@@ -4762,7 +4999,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
         .computeBoolSize(4, allowGrowth_);
     }
-    if (!getVisibleDeviceListBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(visibleDeviceList_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, visibleDeviceList_);
     }
     if (pollingActiveDelayUsecs_ != 0) {
@@ -4781,7 +5018,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
         .computeMessageSize(9, getExperimental());
     }
-    size += unknownFields.getSerializedSize();
+    size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
     return size;
   }
@@ -4791,10 +5028,10 @@ public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
      return true;
     }
-    if (!(obj instanceof org.tensorflow.proto.framework.GPUOptions)) {
+    if (!(obj instanceof org.tensorflow.proto.GPUOptions)) {
       return super.equals(obj);
     }
-    org.tensorflow.proto.framework.GPUOptions other = (org.tensorflow.proto.framework.GPUOptions) obj;
+    org.tensorflow.proto.GPUOptions other = (org.tensorflow.proto.GPUOptions) obj;
 
     if (java.lang.Double.doubleToLongBits(getPerProcessGpuMemoryFraction())
         != java.lang.Double.doubleToLongBits(
@@ -4818,7 +5055,7 @@ public boolean equals(final java.lang.Object obj) {
       if (!getExperimental()
           .equals(other.getExperimental())) return false;
     }
-    if (!unknownFields.equals(other.unknownFields)) return false;
+    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
 
@@ -4853,74 +5090,74 @@ public int hashCode() {
       hash = (37 * hash) + EXPERIMENTAL_FIELD_NUMBER;
       hash = (53 * hash) + getExperimental().hashCode();
     }
-    hash = (29 * hash) + unknownFields.hashCode();
+    hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
     return hash;
   }
 
-  public static org.tensorflow.proto.framework.GPUOptions parseFrom(
+  public static org.tensorflow.proto.GPUOptions parseFrom(
       java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.GPUOptions parseFrom(
+  public static org.tensorflow.proto.GPUOptions parseFrom(
       java.nio.ByteBuffer data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.GPUOptions parseFrom(
+  public static org.tensorflow.proto.GPUOptions parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.GPUOptions parseFrom(
+  public static org.tensorflow.proto.GPUOptions parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.GPUOptions parseFrom(byte[] data)
+  public static org.tensorflow.proto.GPUOptions parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.GPUOptions parseFrom(
+  public static org.tensorflow.proto.GPUOptions parseFrom(
       byte[] data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.GPUOptions parseFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.GPUOptions parseFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.GPUOptions parseFrom(
+  public static org.tensorflow.proto.GPUOptions 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 org.tensorflow.proto.framework.GPUOptions parseDelimitedFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.GPUOptions parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.GPUOptions parseDelimitedFrom(
+  public static org.tensorflow.proto.GPUOptions 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 org.tensorflow.proto.framework.GPUOptions parseFrom(
+  public static org.tensorflow.proto.GPUOptions parseFrom(
       com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.GPUOptions parseFrom(
+  public static org.tensorflow.proto.GPUOptions parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
@@ -4933,7 +5170,7 @@ public static org.tensorflow.proto.framework.GPUOptions parseFrom(
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(org.tensorflow.proto.framework.GPUOptions prototype) {
+  public static Builder newBuilder(org.tensorflow.proto.GPUOptions prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
   @java.lang.Override
@@ -4954,34 +5191,29 @@ protected Builder newBuilderForType(
   public static final class Builder extends
       com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:tensorflow.GPUOptions)
-      org.tensorflow.proto.framework.GPUOptionsOrBuilder {
+      org.tensorflow.proto.GPUOptionsOrBuilder {
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_GPUOptions_descriptor;
+      return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_GPUOptions_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_GPUOptions_fieldAccessorTable
+      return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_GPUOptions_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              org.tensorflow.proto.framework.GPUOptions.class, org.tensorflow.proto.framework.GPUOptions.Builder.class);
+              org.tensorflow.proto.GPUOptions.class, org.tensorflow.proto.GPUOptions.Builder.class);
     }
 
-    // Construct using org.tensorflow.proto.framework.GPUOptions.newBuilder()
+    // Construct using org.tensorflow.proto.GPUOptions.newBuilder()
     private Builder() {
-      maybeForceBuilderInitialization();
+
     }
 
     private Builder(
         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-      maybeForceBuilderInitialization();
-    }
-    private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+
     }
     @java.lang.Override
     public Builder clear() {
@@ -5014,17 +5246,17 @@ public Builder clear() {
     @java.lang.Override
     public com.google.protobuf.Descriptors.Descriptor
         getDescriptorForType() {
-      return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_GPUOptions_descriptor;
+      return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_GPUOptions_descriptor;
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.GPUOptions getDefaultInstanceForType() {
-      return org.tensorflow.proto.framework.GPUOptions.getDefaultInstance();
+    public org.tensorflow.proto.GPUOptions getDefaultInstanceForType() {
+      return org.tensorflow.proto.GPUOptions.getDefaultInstance();
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.GPUOptions build() {
-      org.tensorflow.proto.framework.GPUOptions result = buildPartial();
+    public org.tensorflow.proto.GPUOptions build() {
+      org.tensorflow.proto.GPUOptions result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -5032,8 +5264,8 @@ public org.tensorflow.proto.framework.GPUOptions build() {
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.GPUOptions buildPartial() {
-      org.tensorflow.proto.framework.GPUOptions result = new org.tensorflow.proto.framework.GPUOptions(this);
+    public org.tensorflow.proto.GPUOptions buildPartial() {
+      org.tensorflow.proto.GPUOptions result = new org.tensorflow.proto.GPUOptions(this);
       result.perProcessGpuMemoryFraction_ = perProcessGpuMemoryFraction_;
       result.allowGrowth_ = allowGrowth_;
       result.allocatorType_ = allocatorType_;
@@ -5085,16 +5317,16 @@ public Builder addRepeatedField(
     }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof org.tensorflow.proto.framework.GPUOptions) {
-        return mergeFrom((org.tensorflow.proto.framework.GPUOptions)other);
+      if (other instanceof org.tensorflow.proto.GPUOptions) {
+        return mergeFrom((org.tensorflow.proto.GPUOptions)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(org.tensorflow.proto.framework.GPUOptions other) {
-      if (other == org.tensorflow.proto.framework.GPUOptions.getDefaultInstance()) return this;
+    public Builder mergeFrom(org.tensorflow.proto.GPUOptions other) {
+      if (other == org.tensorflow.proto.GPUOptions.getDefaultInstance()) return this;
       if (other.getPerProcessGpuMemoryFraction() != 0D) {
         setPerProcessGpuMemoryFraction(other.getPerProcessGpuMemoryFraction());
       }
@@ -5124,7 +5356,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.GPUOptions other) {
       if (other.hasExperimental()) {
         mergeExperimental(other.getExperimental());
       }
-      this.mergeUnknownFields(other.unknownFields);
+      this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
     }
@@ -5139,26 +5371,86 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      org.tensorflow.proto.framework.GPUOptions parsedMessage = null;
+      if (extensionRegistry == null) {
+        throw new java.lang.NullPointerException();
+      }
       try {
-        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+        boolean done = false;
+        while (!done) {
+          int tag = input.readTag();
+          switch (tag) {
+            case 0:
+              done = true;
+              break;
+            case 9: {
+              perProcessGpuMemoryFraction_ = input.readDouble();
+
+              break;
+            } // case 9
+            case 18: {
+              allocatorType_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 18
+            case 24: {
+              deferredDeletionBytes_ = input.readInt64();
+
+              break;
+            } // case 24
+            case 32: {
+              allowGrowth_ = input.readBool();
+
+              break;
+            } // case 32
+            case 42: {
+              visibleDeviceList_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 42
+            case 48: {
+              pollingActiveDelayUsecs_ = input.readInt32();
+
+              break;
+            } // case 48
+            case 56: {
+              pollingInactiveDelayMsecs_ = input.readInt32();
+
+              break;
+            } // case 56
+            case 64: {
+              forceGpuCompatible_ = input.readBool();
+
+              break;
+            } // case 64
+            case 74: {
+              input.readMessage(
+                  getExperimentalFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              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) {
-        parsedMessage = (org.tensorflow.proto.framework.GPUOptions) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
-        if (parsedMessage != null) {
-          mergeFrom(parsedMessage);
-        }
-      }
+        onChanged();
+      } // finally
       return this;
     }
 
     private double perProcessGpuMemoryFraction_ ;
     /**
      * 
-     * Fraction of the available GPU memory to allocate for each process.
+     * Fraction of the total GPU memory to allocate for each process.
      * 1 means to allocate all of the GPU memory, 0.5 means the process
-     * allocates up to ~50% of the available GPU memory.
+     * allocates up to ~50% of the total GPU memory.
      * GPU memory is pre-allocated unless the allow_growth option is enabled.
      * If greater than 1.0, uses CUDA unified memory to potentially oversubscribe
      * the amount of memory available on the GPU device by using host memory as a
@@ -5174,15 +5466,17 @@ public Builder mergeFrom(
      * 
* * double per_process_gpu_memory_fraction = 1; + * @return The perProcessGpuMemoryFraction. */ + @java.lang.Override public double getPerProcessGpuMemoryFraction() { return perProcessGpuMemoryFraction_; } /** *
-     * Fraction of the available GPU memory to allocate for each process.
+     * Fraction of the total GPU memory to allocate for each process.
      * 1 means to allocate all of the GPU memory, 0.5 means the process
-     * allocates up to ~50% of the available GPU memory.
+     * allocates up to ~50% of the total GPU memory.
      * GPU memory is pre-allocated unless the allow_growth option is enabled.
      * If greater than 1.0, uses CUDA unified memory to potentially oversubscribe
      * the amount of memory available on the GPU device by using host memory as a
@@ -5198,6 +5492,8 @@ public double getPerProcessGpuMemoryFraction() {
      * 
* * double per_process_gpu_memory_fraction = 1; + * @param value The perProcessGpuMemoryFraction to set. + * @return This builder for chaining. */ public Builder setPerProcessGpuMemoryFraction(double value) { @@ -5207,9 +5503,9 @@ public Builder setPerProcessGpuMemoryFraction(double value) { } /** *
-     * Fraction of the available GPU memory to allocate for each process.
+     * Fraction of the total GPU memory to allocate for each process.
      * 1 means to allocate all of the GPU memory, 0.5 means the process
-     * allocates up to ~50% of the available GPU memory.
+     * allocates up to ~50% of the total GPU memory.
      * GPU memory is pre-allocated unless the allow_growth option is enabled.
      * If greater than 1.0, uses CUDA unified memory to potentially oversubscribe
      * the amount of memory available on the GPU device by using host memory as a
@@ -5225,6 +5521,7 @@ public Builder setPerProcessGpuMemoryFraction(double value) {
      * 
* * double per_process_gpu_memory_fraction = 1; + * @return This builder for chaining. */ public Builder clearPerProcessGpuMemoryFraction() { @@ -5241,7 +5538,9 @@ public Builder clearPerProcessGpuMemoryFraction() { *
* * bool allow_growth = 4; + * @return The allowGrowth. */ + @java.lang.Override public boolean getAllowGrowth() { return allowGrowth_; } @@ -5252,6 +5551,8 @@ public boolean getAllowGrowth() { * * * bool allow_growth = 4; + * @param value The allowGrowth to set. + * @return This builder for chaining. */ public Builder setAllowGrowth(boolean value) { @@ -5266,6 +5567,7 @@ public Builder setAllowGrowth(boolean value) { * * * bool allow_growth = 4; + * @return This builder for chaining. */ public Builder clearAllowGrowth() { @@ -5286,6 +5588,7 @@ public Builder clearAllowGrowth() { * * * string allocator_type = 2; + * @return The allocatorType. */ public java.lang.String getAllocatorType() { java.lang.Object ref = allocatorType_; @@ -5310,6 +5613,7 @@ public java.lang.String getAllocatorType() { * * * string allocator_type = 2; + * @return The bytes for allocatorType. */ public com.google.protobuf.ByteString getAllocatorTypeBytes() { @@ -5335,6 +5639,8 @@ public java.lang.String getAllocatorType() { * * * string allocator_type = 2; + * @param value The allocatorType to set. + * @return This builder for chaining. */ public Builder setAllocatorType( java.lang.String value) { @@ -5357,6 +5663,7 @@ public Builder setAllocatorType( * * * string allocator_type = 2; + * @return This builder for chaining. */ public Builder clearAllocatorType() { @@ -5375,6 +5682,8 @@ public Builder clearAllocatorType() { * * * string allocator_type = 2; + * @param value The bytes for allocatorType to set. + * @return This builder for chaining. */ public Builder setAllocatorTypeBytes( com.google.protobuf.ByteString value) { @@ -5397,7 +5706,9 @@ public Builder setAllocatorTypeBytes( * * * int64 deferred_deletion_bytes = 3; + * @return The deferredDeletionBytes. */ + @java.lang.Override public long getDeferredDeletionBytes() { return deferredDeletionBytes_; } @@ -5409,6 +5720,8 @@ public long getDeferredDeletionBytes() { * * * int64 deferred_deletion_bytes = 3; + * @param value The deferredDeletionBytes to set. + * @return This builder for chaining. */ public Builder setDeferredDeletionBytes(long value) { @@ -5424,6 +5737,7 @@ public Builder setDeferredDeletionBytes(long value) { * * * int64 deferred_deletion_bytes = 3; + * @return This builder for chaining. */ public Builder clearDeferredDeletionBytes() { @@ -5458,6 +5772,7 @@ public Builder clearDeferredDeletionBytes() { * * * string visible_device_list = 5; + * @return The visibleDeviceList. */ public java.lang.String getVisibleDeviceList() { java.lang.Object ref = visibleDeviceList_; @@ -5496,6 +5811,7 @@ public java.lang.String getVisibleDeviceList() { * * * string visible_device_list = 5; + * @return The bytes for visibleDeviceList. */ public com.google.protobuf.ByteString getVisibleDeviceListBytes() { @@ -5535,6 +5851,8 @@ public java.lang.String getVisibleDeviceList() { * * * string visible_device_list = 5; + * @param value The visibleDeviceList to set. + * @return This builder for chaining. */ public Builder setVisibleDeviceList( java.lang.String value) { @@ -5571,6 +5889,7 @@ public Builder setVisibleDeviceList( * * * string visible_device_list = 5; + * @return This builder for chaining. */ public Builder clearVisibleDeviceList() { @@ -5603,6 +5922,8 @@ public Builder clearVisibleDeviceList() { * * * string visible_device_list = 5; + * @param value The bytes for visibleDeviceList to set. + * @return This builder for chaining. */ public Builder setVisibleDeviceListBytes( com.google.protobuf.ByteString value) { @@ -5625,7 +5946,9 @@ public Builder setVisibleDeviceListBytes( * * * int32 polling_active_delay_usecs = 6; + * @return The pollingActiveDelayUsecs. */ + @java.lang.Override public int getPollingActiveDelayUsecs() { return pollingActiveDelayUsecs_; } @@ -5637,6 +5960,8 @@ public int getPollingActiveDelayUsecs() { * * * int32 polling_active_delay_usecs = 6; + * @param value The pollingActiveDelayUsecs to set. + * @return This builder for chaining. */ public Builder setPollingActiveDelayUsecs(int value) { @@ -5652,6 +5977,7 @@ public Builder setPollingActiveDelayUsecs(int value) { * * * int32 polling_active_delay_usecs = 6; + * @return This builder for chaining. */ public Builder clearPollingActiveDelayUsecs() { @@ -5667,7 +5993,9 @@ public Builder clearPollingActiveDelayUsecs() { * * * int32 polling_inactive_delay_msecs = 7; + * @return The pollingInactiveDelayMsecs. */ + @java.lang.Override public int getPollingInactiveDelayMsecs() { return pollingInactiveDelayMsecs_; } @@ -5677,6 +6005,8 @@ public int getPollingInactiveDelayMsecs() { * * * int32 polling_inactive_delay_msecs = 7; + * @param value The pollingInactiveDelayMsecs to set. + * @return This builder for chaining. */ public Builder setPollingInactiveDelayMsecs(int value) { @@ -5690,6 +6020,7 @@ public Builder setPollingInactiveDelayMsecs(int value) { * * * int32 polling_inactive_delay_msecs = 7; + * @return This builder for chaining. */ public Builder clearPollingInactiveDelayMsecs() { @@ -5714,7 +6045,9 @@ public Builder clearPollingInactiveDelayMsecs() { * * * bool force_gpu_compatible = 8; + * @return The forceGpuCompatible. */ + @java.lang.Override public boolean getForceGpuCompatible() { return forceGpuCompatible_; } @@ -5733,6 +6066,8 @@ public boolean getForceGpuCompatible() { * * * bool force_gpu_compatible = 8; + * @param value The forceGpuCompatible to set. + * @return This builder for chaining. */ public Builder setForceGpuCompatible(boolean value) { @@ -5755,6 +6090,7 @@ public Builder setForceGpuCompatible(boolean value) { * * * bool force_gpu_compatible = 8; + * @return This builder for chaining. */ public Builder clearForceGpuCompatible() { @@ -5763,9 +6099,9 @@ public Builder clearForceGpuCompatible() { return this; } - private org.tensorflow.proto.framework.GPUOptions.Experimental experimental_; + private org.tensorflow.proto.GPUOptions.Experimental experimental_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.GPUOptions.Experimental, org.tensorflow.proto.framework.GPUOptions.Experimental.Builder, org.tensorflow.proto.framework.GPUOptions.ExperimentalOrBuilder> experimentalBuilder_; + org.tensorflow.proto.GPUOptions.Experimental, org.tensorflow.proto.GPUOptions.Experimental.Builder, org.tensorflow.proto.GPUOptions.ExperimentalOrBuilder> experimentalBuilder_; /** *
      * Everything inside experimental is subject to change and is not subject
@@ -5774,6 +6110,7 @@ public Builder clearForceGpuCompatible() {
      * 
* * .tensorflow.GPUOptions.Experimental experimental = 9; + * @return Whether the experimental field is set. */ public boolean hasExperimental() { return experimentalBuilder_ != null || experimental_ != null; @@ -5786,10 +6123,11 @@ public boolean hasExperimental() { * * * .tensorflow.GPUOptions.Experimental experimental = 9; + * @return The experimental. */ - public org.tensorflow.proto.framework.GPUOptions.Experimental getExperimental() { + public org.tensorflow.proto.GPUOptions.Experimental getExperimental() { if (experimentalBuilder_ == null) { - return experimental_ == null ? org.tensorflow.proto.framework.GPUOptions.Experimental.getDefaultInstance() : experimental_; + return experimental_ == null ? org.tensorflow.proto.GPUOptions.Experimental.getDefaultInstance() : experimental_; } else { return experimentalBuilder_.getMessage(); } @@ -5803,7 +6141,7 @@ public org.tensorflow.proto.framework.GPUOptions.Experimental getExperimental() * * .tensorflow.GPUOptions.Experimental experimental = 9; */ - public Builder setExperimental(org.tensorflow.proto.framework.GPUOptions.Experimental value) { + public Builder setExperimental(org.tensorflow.proto.GPUOptions.Experimental value) { if (experimentalBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5826,7 +6164,7 @@ public Builder setExperimental(org.tensorflow.proto.framework.GPUOptions.Experim * .tensorflow.GPUOptions.Experimental experimental = 9; */ public Builder setExperimental( - org.tensorflow.proto.framework.GPUOptions.Experimental.Builder builderForValue) { + org.tensorflow.proto.GPUOptions.Experimental.Builder builderForValue) { if (experimentalBuilder_ == null) { experimental_ = builderForValue.build(); onChanged(); @@ -5845,11 +6183,11 @@ public Builder setExperimental( * * .tensorflow.GPUOptions.Experimental experimental = 9; */ - public Builder mergeExperimental(org.tensorflow.proto.framework.GPUOptions.Experimental value) { + public Builder mergeExperimental(org.tensorflow.proto.GPUOptions.Experimental value) { if (experimentalBuilder_ == null) { if (experimental_ != null) { experimental_ = - org.tensorflow.proto.framework.GPUOptions.Experimental.newBuilder(experimental_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.GPUOptions.Experimental.newBuilder(experimental_).mergeFrom(value).buildPartial(); } else { experimental_ = value; } @@ -5889,7 +6227,7 @@ public Builder clearExperimental() { * * .tensorflow.GPUOptions.Experimental experimental = 9; */ - public org.tensorflow.proto.framework.GPUOptions.Experimental.Builder getExperimentalBuilder() { + public org.tensorflow.proto.GPUOptions.Experimental.Builder getExperimentalBuilder() { onChanged(); return getExperimentalFieldBuilder().getBuilder(); @@ -5903,12 +6241,12 @@ public org.tensorflow.proto.framework.GPUOptions.Experimental.Builder getExperim * * .tensorflow.GPUOptions.Experimental experimental = 9; */ - public org.tensorflow.proto.framework.GPUOptions.ExperimentalOrBuilder getExperimentalOrBuilder() { + public org.tensorflow.proto.GPUOptions.ExperimentalOrBuilder getExperimentalOrBuilder() { if (experimentalBuilder_ != null) { return experimentalBuilder_.getMessageOrBuilder(); } else { return experimental_ == null ? - org.tensorflow.proto.framework.GPUOptions.Experimental.getDefaultInstance() : experimental_; + org.tensorflow.proto.GPUOptions.Experimental.getDefaultInstance() : experimental_; } } /** @@ -5921,11 +6259,11 @@ public org.tensorflow.proto.framework.GPUOptions.ExperimentalOrBuilder getExperi * .tensorflow.GPUOptions.Experimental experimental = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.GPUOptions.Experimental, org.tensorflow.proto.framework.GPUOptions.Experimental.Builder, org.tensorflow.proto.framework.GPUOptions.ExperimentalOrBuilder> + org.tensorflow.proto.GPUOptions.Experimental, org.tensorflow.proto.GPUOptions.Experimental.Builder, org.tensorflow.proto.GPUOptions.ExperimentalOrBuilder> getExperimentalFieldBuilder() { if (experimentalBuilder_ == null) { experimentalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.GPUOptions.Experimental, org.tensorflow.proto.framework.GPUOptions.Experimental.Builder, org.tensorflow.proto.framework.GPUOptions.ExperimentalOrBuilder>( + org.tensorflow.proto.GPUOptions.Experimental, org.tensorflow.proto.GPUOptions.Experimental.Builder, org.tensorflow.proto.GPUOptions.ExperimentalOrBuilder>( getExperimental(), getParentForChildren(), isClean()); @@ -5950,12 +6288,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.GPUOptions) - private static final org.tensorflow.proto.framework.GPUOptions DEFAULT_INSTANCE; + private static final org.tensorflow.proto.GPUOptions DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.GPUOptions(); + DEFAULT_INSTANCE = new org.tensorflow.proto.GPUOptions(); } - public static org.tensorflow.proto.framework.GPUOptions getDefaultInstance() { + public static org.tensorflow.proto.GPUOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -5966,7 +6304,18 @@ public GPUOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GPUOptions(input, extensionRegistry); + 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(); } }; @@ -5980,7 +6329,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.GPUOptions getDefaultInstanceForType() { + public org.tensorflow.proto.GPUOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GPUOptionsOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GPUOptionsOrBuilder.java similarity index 90% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GPUOptionsOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GPUOptionsOrBuilder.java index 6f11472d49a..b488c4d4e93 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GPUOptionsOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GPUOptionsOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/config.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface GPUOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.GPUOptions) @@ -9,9 +9,9 @@ public interface GPUOptionsOrBuilder extends /** *
-   * Fraction of the available GPU memory to allocate for each process.
+   * Fraction of the total GPU memory to allocate for each process.
    * 1 means to allocate all of the GPU memory, 0.5 means the process
-   * allocates up to ~50% of the available GPU memory.
+   * allocates up to ~50% of the total GPU memory.
    * GPU memory is pre-allocated unless the allow_growth option is enabled.
    * If greater than 1.0, uses CUDA unified memory to potentially oversubscribe
    * the amount of memory available on the GPU device by using host memory as a
@@ -27,6 +27,7 @@ public interface GPUOptionsOrBuilder extends
    * 
* * double per_process_gpu_memory_fraction = 1; + * @return The perProcessGpuMemoryFraction. */ double getPerProcessGpuMemoryFraction(); @@ -37,6 +38,7 @@ public interface GPUOptionsOrBuilder extends * * * bool allow_growth = 4; + * @return The allowGrowth. */ boolean getAllowGrowth(); @@ -51,6 +53,7 @@ public interface GPUOptionsOrBuilder extends * * * string allocator_type = 2; + * @return The allocatorType. */ java.lang.String getAllocatorType(); /** @@ -64,6 +67,7 @@ public interface GPUOptionsOrBuilder extends * * * string allocator_type = 2; + * @return The bytes for allocatorType. */ com.google.protobuf.ByteString getAllocatorTypeBytes(); @@ -76,6 +80,7 @@ public interface GPUOptionsOrBuilder extends * * * int64 deferred_deletion_bytes = 3; + * @return The deferredDeletionBytes. */ long getDeferredDeletionBytes(); @@ -104,6 +109,7 @@ public interface GPUOptionsOrBuilder extends * * * string visible_device_list = 5; + * @return The visibleDeviceList. */ java.lang.String getVisibleDeviceList(); /** @@ -131,6 +137,7 @@ public interface GPUOptionsOrBuilder extends * * * string visible_device_list = 5; + * @return The bytes for visibleDeviceList. */ com.google.protobuf.ByteString getVisibleDeviceListBytes(); @@ -143,6 +150,7 @@ public interface GPUOptionsOrBuilder extends * * * int32 polling_active_delay_usecs = 6; + * @return The pollingActiveDelayUsecs. */ int getPollingActiveDelayUsecs(); @@ -152,6 +160,7 @@ public interface GPUOptionsOrBuilder extends * * * int32 polling_inactive_delay_msecs = 7; + * @return The pollingInactiveDelayMsecs. */ int getPollingInactiveDelayMsecs(); @@ -170,6 +179,7 @@ public interface GPUOptionsOrBuilder extends * * * bool force_gpu_compatible = 8; + * @return The forceGpuCompatible. */ boolean getForceGpuCompatible(); @@ -181,6 +191,7 @@ public interface GPUOptionsOrBuilder extends * * * .tensorflow.GPUOptions.Experimental experimental = 9; + * @return Whether the experimental field is set. */ boolean hasExperimental(); /** @@ -191,8 +202,9 @@ public interface GPUOptionsOrBuilder extends * * * .tensorflow.GPUOptions.Experimental experimental = 9; + * @return The experimental. */ - org.tensorflow.proto.framework.GPUOptions.Experimental getExperimental(); + org.tensorflow.proto.GPUOptions.Experimental getExperimental(); /** *
    * Everything inside experimental is subject to change and is not subject
@@ -202,5 +214,5 @@ public interface GPUOptionsOrBuilder extends
    *
    * .tensorflow.GPUOptions.Experimental experimental = 9;
    */
-  org.tensorflow.proto.framework.GPUOptions.ExperimentalOrBuilder getExperimentalOrBuilder();
+  org.tensorflow.proto.GPUOptions.ExperimentalOrBuilder getExperimentalOrBuilder();
 }
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GradientDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GradientDef.java
similarity index 76%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GradientDef.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GradientDef.java
index fe1126cb2ef..bb6a6ce36c7 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GradientDef.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GradientDef.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/framework/function.proto
 
-package org.tensorflow.proto.framework;
+package org.tensorflow.proto;
 
 /**
  * 
@@ -24,7 +24,7 @@
  *
  * Protobuf type {@code tensorflow.GradientDef}
  */
-public  final class GradientDef extends
+public final class GradientDef extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.GradientDef)
     GradientDefOrBuilder {
@@ -50,66 +50,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private GradientDef(
-      com.google.protobuf.CodedInputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws com.google.protobuf.InvalidProtocolBufferException {
-    this();
-    if (extensionRegistry == null) {
-      throw new java.lang.NullPointerException();
-    }
-    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
-        com.google.protobuf.UnknownFieldSet.newBuilder();
-    try {
-      boolean done = false;
-      while (!done) {
-        int tag = input.readTag();
-        switch (tag) {
-          case 0:
-            done = true;
-            break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            functionName_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            gradientFunc_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
-        }
-      }
-    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-      throw e.setUnfinishedMessage(this);
-    } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
-    } finally {
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_GradientDef_descriptor;
+    return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_GradientDef_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_GradientDef_fieldAccessorTable
+    return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_GradientDef_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.framework.GradientDef.class, org.tensorflow.proto.framework.GradientDef.Builder.class);
+            org.tensorflow.proto.GradientDef.class, org.tensorflow.proto.GradientDef.Builder.class);
   }
 
   public static final int FUNCTION_NAME_FIELD_NUMBER = 1;
@@ -120,7 +71,9 @@ private GradientDef(
    * 
* * string function_name = 1; + * @return The functionName. */ + @java.lang.Override public java.lang.String getFunctionName() { java.lang.Object ref = functionName_; if (ref instanceof java.lang.String) { @@ -139,7 +92,9 @@ public java.lang.String getFunctionName() { *
* * string function_name = 1; + * @return The bytes for functionName. */ + @java.lang.Override public com.google.protobuf.ByteString getFunctionNameBytes() { java.lang.Object ref = functionName_; @@ -162,7 +117,9 @@ public java.lang.String getFunctionName() { * * * string gradient_func = 2; + * @return The gradientFunc. */ + @java.lang.Override public java.lang.String getGradientFunc() { java.lang.Object ref = gradientFunc_; if (ref instanceof java.lang.String) { @@ -181,7 +138,9 @@ public java.lang.String getGradientFunc() { * * * string gradient_func = 2; + * @return The bytes for gradientFunc. */ + @java.lang.Override public com.google.protobuf.ByteString getGradientFuncBytes() { java.lang.Object ref = gradientFunc_; @@ -210,13 +169,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getFunctionNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionName_); } - if (!getGradientFuncBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gradientFunc_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gradientFunc_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -225,13 +184,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getFunctionNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionName_); } - if (!getGradientFuncBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gradientFunc_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gradientFunc_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -241,16 +200,16 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.GradientDef)) { + if (!(obj instanceof org.tensorflow.proto.GradientDef)) { return super.equals(obj); } - org.tensorflow.proto.framework.GradientDef other = (org.tensorflow.proto.framework.GradientDef) obj; + org.tensorflow.proto.GradientDef other = (org.tensorflow.proto.GradientDef) obj; if (!getFunctionName() .equals(other.getFunctionName())) return false; if (!getGradientFunc() .equals(other.getGradientFunc())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,74 +224,74 @@ public int hashCode() { hash = (53 * hash) + getFunctionName().hashCode(); hash = (37 * hash) + GRADIENT_FUNC_FIELD_NUMBER; hash = (53 * hash) + getGradientFunc().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.GradientDef parseFrom( + public static org.tensorflow.proto.GradientDef parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.GradientDef parseFrom( + public static org.tensorflow.proto.GradientDef parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.GradientDef parseFrom( + public static org.tensorflow.proto.GradientDef parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.GradientDef parseFrom( + public static org.tensorflow.proto.GradientDef parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.GradientDef parseFrom(byte[] data) + public static org.tensorflow.proto.GradientDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.GradientDef parseFrom( + public static org.tensorflow.proto.GradientDef parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.GradientDef parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.GradientDef parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.GradientDef parseFrom( + public static org.tensorflow.proto.GradientDef 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 org.tensorflow.proto.framework.GradientDef parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.GradientDef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.GradientDef parseDelimitedFrom( + public static org.tensorflow.proto.GradientDef 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 org.tensorflow.proto.framework.GradientDef parseFrom( + public static org.tensorflow.proto.GradientDef parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.GradientDef parseFrom( + public static org.tensorflow.proto.GradientDef parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -345,7 +304,7 @@ public static org.tensorflow.proto.framework.GradientDef parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.GradientDef prototype) { + public static Builder newBuilder(org.tensorflow.proto.GradientDef prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -384,34 +343,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.GradientDef) - org.tensorflow.proto.framework.GradientDefOrBuilder { + org.tensorflow.proto.GradientDefOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_GradientDef_descriptor; + return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_GradientDef_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_GradientDef_fieldAccessorTable + return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_GradientDef_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GradientDef.class, org.tensorflow.proto.framework.GradientDef.Builder.class); + org.tensorflow.proto.GradientDef.class, org.tensorflow.proto.GradientDef.Builder.class); } - // Construct using org.tensorflow.proto.framework.GradientDef.newBuilder() + // Construct using org.tensorflow.proto.GradientDef.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -426,17 +380,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.FunctionProtos.internal_static_tensorflow_GradientDef_descriptor; + return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_GradientDef_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.GradientDef getDefaultInstanceForType() { - return org.tensorflow.proto.framework.GradientDef.getDefaultInstance(); + public org.tensorflow.proto.GradientDef getDefaultInstanceForType() { + return org.tensorflow.proto.GradientDef.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.GradientDef build() { - org.tensorflow.proto.framework.GradientDef result = buildPartial(); + public org.tensorflow.proto.GradientDef build() { + org.tensorflow.proto.GradientDef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -444,8 +398,8 @@ public org.tensorflow.proto.framework.GradientDef build() { } @java.lang.Override - public org.tensorflow.proto.framework.GradientDef buildPartial() { - org.tensorflow.proto.framework.GradientDef result = new org.tensorflow.proto.framework.GradientDef(this); + public org.tensorflow.proto.GradientDef buildPartial() { + org.tensorflow.proto.GradientDef result = new org.tensorflow.proto.GradientDef(this); result.functionName_ = functionName_; result.gradientFunc_ = gradientFunc_; onBuilt(); @@ -486,16 +440,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.GradientDef) { - return mergeFrom((org.tensorflow.proto.framework.GradientDef)other); + if (other instanceof org.tensorflow.proto.GradientDef) { + return mergeFrom((org.tensorflow.proto.GradientDef)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.GradientDef other) { - if (other == org.tensorflow.proto.framework.GradientDef.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.GradientDef other) { + if (other == org.tensorflow.proto.GradientDef.getDefaultInstance()) return this; if (!other.getFunctionName().isEmpty()) { functionName_ = other.functionName_; onChanged(); @@ -504,7 +458,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.GradientDef other) { gradientFunc_ = other.gradientFunc_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -519,17 +473,40 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.GradientDef parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + functionName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + gradientFunc_ = input.readStringRequireUtf8(); + + 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) { - parsedMessage = (org.tensorflow.proto.framework.GradientDef) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -540,6 +517,7 @@ public Builder mergeFrom( * * * string function_name = 1; + * @return The functionName. */ public java.lang.String getFunctionName() { java.lang.Object ref = functionName_; @@ -559,6 +537,7 @@ public java.lang.String getFunctionName() { * * * string function_name = 1; + * @return The bytes for functionName. */ public com.google.protobuf.ByteString getFunctionNameBytes() { @@ -579,6 +558,8 @@ public java.lang.String getFunctionName() { * * * string function_name = 1; + * @param value The functionName to set. + * @return This builder for chaining. */ public Builder setFunctionName( java.lang.String value) { @@ -596,6 +577,7 @@ public Builder setFunctionName( * * * string function_name = 1; + * @return This builder for chaining. */ public Builder clearFunctionName() { @@ -609,6 +591,8 @@ public Builder clearFunctionName() { * * * string function_name = 1; + * @param value The bytes for functionName to set. + * @return This builder for chaining. */ public Builder setFunctionNameBytes( com.google.protobuf.ByteString value) { @@ -629,6 +613,7 @@ public Builder setFunctionNameBytes( * * * string gradient_func = 2; + * @return The gradientFunc. */ public java.lang.String getGradientFunc() { java.lang.Object ref = gradientFunc_; @@ -648,6 +633,7 @@ public java.lang.String getGradientFunc() { * * * string gradient_func = 2; + * @return The bytes for gradientFunc. */ public com.google.protobuf.ByteString getGradientFuncBytes() { @@ -668,6 +654,8 @@ public java.lang.String getGradientFunc() { * * * string gradient_func = 2; + * @param value The gradientFunc to set. + * @return This builder for chaining. */ public Builder setGradientFunc( java.lang.String value) { @@ -685,6 +673,7 @@ public Builder setGradientFunc( * * * string gradient_func = 2; + * @return This builder for chaining. */ public Builder clearGradientFunc() { @@ -698,6 +687,8 @@ public Builder clearGradientFunc() { * * * string gradient_func = 2; + * @param value The bytes for gradientFunc to set. + * @return This builder for chaining. */ public Builder setGradientFuncBytes( com.google.protobuf.ByteString value) { @@ -727,12 +718,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.GradientDef) - private static final org.tensorflow.proto.framework.GradientDef DEFAULT_INSTANCE; + private static final org.tensorflow.proto.GradientDef DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.GradientDef(); + DEFAULT_INSTANCE = new org.tensorflow.proto.GradientDef(); } - public static org.tensorflow.proto.framework.GradientDef getDefaultInstance() { + public static org.tensorflow.proto.GradientDef getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -743,7 +734,18 @@ public GradientDef parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GradientDef(input, extensionRegistry); + 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(); } }; @@ -757,7 +759,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.GradientDef getDefaultInstanceForType() { + public org.tensorflow.proto.GradientDef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GradientDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GradientDefOrBuilder.java similarity index 84% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GradientDefOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GradientDefOrBuilder.java index 9437941de35..7142b052e02 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GradientDefOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GradientDefOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/function.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface GradientDefOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.GradientDef) @@ -13,6 +13,7 @@ public interface GradientDefOrBuilder extends * * * string function_name = 1; + * @return The functionName. */ java.lang.String getFunctionName(); /** @@ -21,6 +22,7 @@ public interface GradientDefOrBuilder extends * * * string function_name = 1; + * @return The bytes for functionName. */ com.google.protobuf.ByteString getFunctionNameBytes(); @@ -31,6 +33,7 @@ public interface GradientDefOrBuilder extends * * * string gradient_func = 2; + * @return The gradientFunc. */ java.lang.String getGradientFunc(); /** @@ -39,6 +42,7 @@ public interface GradientDefOrBuilder extends * * * string gradient_func = 2; + * @return The bytes for gradientFunc. */ com.google.protobuf.ByteString getGradientFuncBytes(); diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphDebugInfo.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphDebugInfo.java new file mode 100644 index 00000000000..1b475c9ec42 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphDebugInfo.java @@ -0,0 +1,4293 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/graph_debug_info.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.GraphDebugInfo} + */ +public final class GraphDebugInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.GraphDebugInfo) + GraphDebugInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use GraphDebugInfo.newBuilder() to construct. + private GraphDebugInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GraphDebugInfo() { + files_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GraphDebugInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetFramesById(); + case 6: + return internalGetTracesById(); + case 2: + return internalGetTraces(); + case 5: + return internalGetNameToTraceId(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.GraphDebugInfo.class, org.tensorflow.proto.GraphDebugInfo.Builder.class); + } + + public interface FileLineColOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.GraphDebugInfo.FileLineCol) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * File name index, which can be used to retrieve the file name string from
+     * `files`. The value should be between 0 and (len(files)-1)
+     * 
+ * + * optional int32 file_index = 1; + * @return Whether the fileIndex field is set. + */ + boolean hasFileIndex(); + /** + *
+     * File name index, which can be used to retrieve the file name string from
+     * `files`. The value should be between 0 and (len(files)-1)
+     * 
+ * + * optional int32 file_index = 1; + * @return The fileIndex. + */ + int getFileIndex(); + + /** + *
+     * Line number in the file.
+     * 
+ * + * optional int32 line = 2; + * @return Whether the line field is set. + */ + boolean hasLine(); + /** + *
+     * Line number in the file.
+     * 
+ * + * optional int32 line = 2; + * @return The line. + */ + int getLine(); + + /** + *
+     * Col number in the file line.
+     * 
+ * + * optional int32 col = 3; + * @return Whether the col field is set. + */ + boolean hasCol(); + /** + *
+     * Col number in the file line.
+     * 
+ * + * optional int32 col = 3; + * @return The col. + */ + int getCol(); + + /** + *
+     * Name of function contains the file line.
+     * 
+ * + * optional string func = 4; + * @return Whether the func field is set. + */ + boolean hasFunc(); + /** + *
+     * Name of function contains the file line.
+     * 
+ * + * optional string func = 4; + * @return The func. + */ + java.lang.String getFunc(); + /** + *
+     * Name of function contains the file line.
+     * 
+ * + * optional string func = 4; + * @return The bytes for func. + */ + com.google.protobuf.ByteString + getFuncBytes(); + + /** + *
+     * Source code contained in this file line.
+     * 
+ * + * optional string code = 5; + * @return Whether the code field is set. + */ + boolean hasCode(); + /** + *
+     * Source code contained in this file line.
+     * 
+ * + * optional string code = 5; + * @return The code. + */ + java.lang.String getCode(); + /** + *
+     * Source code contained in this file line.
+     * 
+ * + * optional string code = 5; + * @return The bytes for code. + */ + com.google.protobuf.ByteString + getCodeBytes(); + } + /** + *
+   * This represents a file/line location in the source code.
+   * 
+ * + * Protobuf type {@code tensorflow.GraphDebugInfo.FileLineCol} + */ + public static final class FileLineCol extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.GraphDebugInfo.FileLineCol) + FileLineColOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileLineCol.newBuilder() to construct. + private FileLineCol(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FileLineCol() { + func_ = ""; + code_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FileLineCol(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_FileLineCol_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_FileLineCol_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.GraphDebugInfo.FileLineCol.class, org.tensorflow.proto.GraphDebugInfo.FileLineCol.Builder.class); + } + + private int bitField0_; + public static final int FILE_INDEX_FIELD_NUMBER = 1; + private int fileIndex_; + /** + *
+     * File name index, which can be used to retrieve the file name string from
+     * `files`. The value should be between 0 and (len(files)-1)
+     * 
+ * + * optional int32 file_index = 1; + * @return Whether the fileIndex field is set. + */ + @java.lang.Override + public boolean hasFileIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * File name index, which can be used to retrieve the file name string from
+     * `files`. The value should be between 0 and (len(files)-1)
+     * 
+ * + * optional int32 file_index = 1; + * @return The fileIndex. + */ + @java.lang.Override + public int getFileIndex() { + return fileIndex_; + } + + public static final int LINE_FIELD_NUMBER = 2; + private int line_; + /** + *
+     * Line number in the file.
+     * 
+ * + * optional int32 line = 2; + * @return Whether the line field is set. + */ + @java.lang.Override + public boolean hasLine() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Line number in the file.
+     * 
+ * + * optional int32 line = 2; + * @return The line. + */ + @java.lang.Override + public int getLine() { + return line_; + } + + public static final int COL_FIELD_NUMBER = 3; + private int col_; + /** + *
+     * Col number in the file line.
+     * 
+ * + * optional int32 col = 3; + * @return Whether the col field is set. + */ + @java.lang.Override + public boolean hasCol() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Col number in the file line.
+     * 
+ * + * optional int32 col = 3; + * @return The col. + */ + @java.lang.Override + public int getCol() { + return col_; + } + + public static final int FUNC_FIELD_NUMBER = 4; + private volatile java.lang.Object func_; + /** + *
+     * Name of function contains the file line.
+     * 
+ * + * optional string func = 4; + * @return Whether the func field is set. + */ + @java.lang.Override + public boolean hasFunc() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * Name of function contains the file line.
+     * 
+ * + * optional string func = 4; + * @return The func. + */ + @java.lang.Override + public java.lang.String getFunc() { + java.lang.Object ref = func_; + 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(); + if (bs.isValidUtf8()) { + func_ = s; + } + return s; + } + } + /** + *
+     * Name of function contains the file line.
+     * 
+ * + * optional string func = 4; + * @return The bytes for func. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFuncBytes() { + java.lang.Object ref = func_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + func_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CODE_FIELD_NUMBER = 5; + private volatile java.lang.Object code_; + /** + *
+     * Source code contained in this file line.
+     * 
+ * + * optional string code = 5; + * @return Whether the code field is set. + */ + @java.lang.Override + public boolean hasCode() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * Source code contained in this file line.
+     * 
+ * + * optional string code = 5; + * @return The code. + */ + @java.lang.Override + public java.lang.String getCode() { + java.lang.Object ref = code_; + 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(); + if (bs.isValidUtf8()) { + code_ = s; + } + return s; + } + } + /** + *
+     * Source code contained in this file line.
+     * 
+ * + * optional string code = 5; + * @return The bytes for code. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(1, fileIndex_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt32(2, line_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt32(3, col_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, func_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, code_); + } + 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 + .computeInt32Size(1, fileIndex_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, line_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, col_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, func_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, code_); + } + 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 org.tensorflow.proto.GraphDebugInfo.FileLineCol)) { + return super.equals(obj); + } + org.tensorflow.proto.GraphDebugInfo.FileLineCol other = (org.tensorflow.proto.GraphDebugInfo.FileLineCol) obj; + + if (hasFileIndex() != other.hasFileIndex()) return false; + if (hasFileIndex()) { + if (getFileIndex() + != other.getFileIndex()) return false; + } + if (hasLine() != other.hasLine()) return false; + if (hasLine()) { + if (getLine() + != other.getLine()) return false; + } + if (hasCol() != other.hasCol()) return false; + if (hasCol()) { + if (getCol() + != other.getCol()) return false; + } + if (hasFunc() != other.hasFunc()) return false; + if (hasFunc()) { + if (!getFunc() + .equals(other.getFunc())) return false; + } + if (hasCode() != other.hasCode()) return false; + if (hasCode()) { + if (!getCode() + .equals(other.getCode())) 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 (hasFileIndex()) { + hash = (37 * hash) + FILE_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getFileIndex(); + } + if (hasLine()) { + hash = (37 * hash) + LINE_FIELD_NUMBER; + hash = (53 * hash) + getLine(); + } + if (hasCol()) { + hash = (37 * hash) + COL_FIELD_NUMBER; + hash = (53 * hash) + getCol(); + } + if (hasFunc()) { + hash = (37 * hash) + FUNC_FIELD_NUMBER; + hash = (53 * hash) + getFunc().hashCode(); + } + if (hasCode()) { + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.GraphDebugInfo.FileLineCol parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphDebugInfo.FileLineCol parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphDebugInfo.FileLineCol parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphDebugInfo.FileLineCol parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphDebugInfo.FileLineCol parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphDebugInfo.FileLineCol parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphDebugInfo.FileLineCol parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphDebugInfo.FileLineCol 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 org.tensorflow.proto.GraphDebugInfo.FileLineCol parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphDebugInfo.FileLineCol 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 org.tensorflow.proto.GraphDebugInfo.FileLineCol parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphDebugInfo.FileLineCol 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(org.tensorflow.proto.GraphDebugInfo.FileLineCol 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; + } + /** + *
+     * This represents a file/line location in the source code.
+     * 
+ * + * Protobuf type {@code tensorflow.GraphDebugInfo.FileLineCol} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.GraphDebugInfo.FileLineCol) + org.tensorflow.proto.GraphDebugInfo.FileLineColOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_FileLineCol_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_FileLineCol_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.GraphDebugInfo.FileLineCol.class, org.tensorflow.proto.GraphDebugInfo.FileLineCol.Builder.class); + } + + // Construct using org.tensorflow.proto.GraphDebugInfo.FileLineCol.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + fileIndex_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + line_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + col_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + func_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + code_ = ""; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_FileLineCol_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.GraphDebugInfo.FileLineCol getDefaultInstanceForType() { + return org.tensorflow.proto.GraphDebugInfo.FileLineCol.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.GraphDebugInfo.FileLineCol build() { + org.tensorflow.proto.GraphDebugInfo.FileLineCol result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.GraphDebugInfo.FileLineCol buildPartial() { + org.tensorflow.proto.GraphDebugInfo.FileLineCol result = new org.tensorflow.proto.GraphDebugInfo.FileLineCol(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fileIndex_ = fileIndex_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.line_ = line_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.col_ = col_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + to_bitField0_ |= 0x00000008; + } + result.func_ = func_; + if (((from_bitField0_ & 0x00000010) != 0)) { + to_bitField0_ |= 0x00000010; + } + result.code_ = code_; + result.bitField0_ = to_bitField0_; + 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 org.tensorflow.proto.GraphDebugInfo.FileLineCol) { + return mergeFrom((org.tensorflow.proto.GraphDebugInfo.FileLineCol)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.GraphDebugInfo.FileLineCol other) { + if (other == org.tensorflow.proto.GraphDebugInfo.FileLineCol.getDefaultInstance()) return this; + if (other.hasFileIndex()) { + setFileIndex(other.getFileIndex()); + } + if (other.hasLine()) { + setLine(other.getLine()); + } + if (other.hasCol()) { + setCol(other.getCol()); + } + if (other.hasFunc()) { + bitField0_ |= 0x00000008; + func_ = other.func_; + onChanged(); + } + if (other.hasCode()) { + bitField0_ |= 0x00000010; + code_ = other.code_; + 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 8: { + fileIndex_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + line_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + col_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + func_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + code_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int fileIndex_ ; + /** + *
+       * File name index, which can be used to retrieve the file name string from
+       * `files`. The value should be between 0 and (len(files)-1)
+       * 
+ * + * optional int32 file_index = 1; + * @return Whether the fileIndex field is set. + */ + @java.lang.Override + public boolean hasFileIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * File name index, which can be used to retrieve the file name string from
+       * `files`. The value should be between 0 and (len(files)-1)
+       * 
+ * + * optional int32 file_index = 1; + * @return The fileIndex. + */ + @java.lang.Override + public int getFileIndex() { + return fileIndex_; + } + /** + *
+       * File name index, which can be used to retrieve the file name string from
+       * `files`. The value should be between 0 and (len(files)-1)
+       * 
+ * + * optional int32 file_index = 1; + * @param value The fileIndex to set. + * @return This builder for chaining. + */ + public Builder setFileIndex(int value) { + bitField0_ |= 0x00000001; + fileIndex_ = value; + onChanged(); + return this; + } + /** + *
+       * File name index, which can be used to retrieve the file name string from
+       * `files`. The value should be between 0 and (len(files)-1)
+       * 
+ * + * optional int32 file_index = 1; + * @return This builder for chaining. + */ + public Builder clearFileIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + fileIndex_ = 0; + onChanged(); + return this; + } + + private int line_ ; + /** + *
+       * Line number in the file.
+       * 
+ * + * optional int32 line = 2; + * @return Whether the line field is set. + */ + @java.lang.Override + public boolean hasLine() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * Line number in the file.
+       * 
+ * + * optional int32 line = 2; + * @return The line. + */ + @java.lang.Override + public int getLine() { + return line_; + } + /** + *
+       * Line number in the file.
+       * 
+ * + * optional int32 line = 2; + * @param value The line to set. + * @return This builder for chaining. + */ + public Builder setLine(int value) { + bitField0_ |= 0x00000002; + line_ = value; + onChanged(); + return this; + } + /** + *
+       * Line number in the file.
+       * 
+ * + * optional int32 line = 2; + * @return This builder for chaining. + */ + public Builder clearLine() { + bitField0_ = (bitField0_ & ~0x00000002); + line_ = 0; + onChanged(); + return this; + } + + private int col_ ; + /** + *
+       * Col number in the file line.
+       * 
+ * + * optional int32 col = 3; + * @return Whether the col field is set. + */ + @java.lang.Override + public boolean hasCol() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * Col number in the file line.
+       * 
+ * + * optional int32 col = 3; + * @return The col. + */ + @java.lang.Override + public int getCol() { + return col_; + } + /** + *
+       * Col number in the file line.
+       * 
+ * + * optional int32 col = 3; + * @param value The col to set. + * @return This builder for chaining. + */ + public Builder setCol(int value) { + bitField0_ |= 0x00000004; + col_ = value; + onChanged(); + return this; + } + /** + *
+       * Col number in the file line.
+       * 
+ * + * optional int32 col = 3; + * @return This builder for chaining. + */ + public Builder clearCol() { + bitField0_ = (bitField0_ & ~0x00000004); + col_ = 0; + onChanged(); + return this; + } + + private java.lang.Object func_ = ""; + /** + *
+       * Name of function contains the file line.
+       * 
+ * + * optional string func = 4; + * @return Whether the func field is set. + */ + public boolean hasFunc() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+       * Name of function contains the file line.
+       * 
+ * + * optional string func = 4; + * @return The func. + */ + public java.lang.String getFunc() { + java.lang.Object ref = func_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + func_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of function contains the file line.
+       * 
+ * + * optional string func = 4; + * @return The bytes for func. + */ + public com.google.protobuf.ByteString + getFuncBytes() { + java.lang.Object ref = func_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + func_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of function contains the file line.
+       * 
+ * + * optional string func = 4; + * @param value The func to set. + * @return This builder for chaining. + */ + public Builder setFunc( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + func_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of function contains the file line.
+       * 
+ * + * optional string func = 4; + * @return This builder for chaining. + */ + public Builder clearFunc() { + bitField0_ = (bitField0_ & ~0x00000008); + func_ = getDefaultInstance().getFunc(); + onChanged(); + return this; + } + /** + *
+       * Name of function contains the file line.
+       * 
+ * + * optional string func = 4; + * @param value The bytes for func to set. + * @return This builder for chaining. + */ + public Builder setFuncBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + func_ = value; + onChanged(); + return this; + } + + private java.lang.Object code_ = ""; + /** + *
+       * Source code contained in this file line.
+       * 
+ * + * optional string code = 5; + * @return Whether the code field is set. + */ + public boolean hasCode() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+       * Source code contained in this file line.
+       * 
+ * + * optional string code = 5; + * @return The code. + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + code_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Source code contained in this file line.
+       * 
+ * + * optional string code = 5; + * @return The bytes for code. + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Source code contained in this file line.
+       * 
+ * + * optional string code = 5; + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + code_ = value; + onChanged(); + return this; + } + /** + *
+       * Source code contained in this file line.
+       * 
+ * + * optional string code = 5; + * @return This builder for chaining. + */ + public Builder clearCode() { + bitField0_ = (bitField0_ & ~0x00000010); + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + /** + *
+       * Source code contained in this file line.
+       * 
+ * + * optional string code = 5; + * @param value The bytes for code to set. + * @return This builder for chaining. + */ + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + code_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.GraphDebugInfo.FileLineCol) + } + + // @@protoc_insertion_point(class_scope:tensorflow.GraphDebugInfo.FileLineCol) + private static final org.tensorflow.proto.GraphDebugInfo.FileLineCol DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.GraphDebugInfo.FileLineCol(); + } + + public static org.tensorflow.proto.GraphDebugInfo.FileLineCol getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileLineCol 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 org.tensorflow.proto.GraphDebugInfo.FileLineCol getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StackTraceOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.GraphDebugInfo.StackTrace) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Deprecated.
+     * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + java.util.List + getFileLineColsList(); + /** + *
+     * Deprecated.
+     * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + org.tensorflow.proto.GraphDebugInfo.FileLineCol getFileLineCols(int index); + /** + *
+     * Deprecated.
+     * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + int getFileLineColsCount(); + /** + *
+     * Deprecated.
+     * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + java.util.List + getFileLineColsOrBuilderList(); + /** + *
+     * Deprecated.
+     * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + org.tensorflow.proto.GraphDebugInfo.FileLineColOrBuilder getFileLineColsOrBuilder( + int index); + + /** + * repeated fixed64 frame_id = 2 [packed = true]; + * @return A list containing the frameId. + */ + java.util.List getFrameIdList(); + /** + * repeated fixed64 frame_id = 2 [packed = true]; + * @return The count of frameId. + */ + int getFrameIdCount(); + /** + * repeated fixed64 frame_id = 2 [packed = true]; + * @param index The index of the element to return. + * @return The frameId at the given index. + */ + long getFrameId(int index); + } + /** + *
+   * This represents a stack trace which is a ordered list of `FileLineCol`.
+   * 
+ * + * Protobuf type {@code tensorflow.GraphDebugInfo.StackTrace} + */ + public static final class StackTrace extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.GraphDebugInfo.StackTrace) + StackTraceOrBuilder { + private static final long serialVersionUID = 0L; + // Use StackTrace.newBuilder() to construct. + private StackTrace(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StackTrace() { + fileLineCols_ = java.util.Collections.emptyList(); + frameId_ = emptyLongList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StackTrace(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_StackTrace_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_StackTrace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.GraphDebugInfo.StackTrace.class, org.tensorflow.proto.GraphDebugInfo.StackTrace.Builder.class); + } + + public static final int FILE_LINE_COLS_FIELD_NUMBER = 1; + private java.util.List fileLineCols_; + /** + *
+     * Deprecated.
+     * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + @java.lang.Override + public java.util.List getFileLineColsList() { + return fileLineCols_; + } + /** + *
+     * Deprecated.
+     * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + @java.lang.Override + public java.util.List + getFileLineColsOrBuilderList() { + return fileLineCols_; + } + /** + *
+     * Deprecated.
+     * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + @java.lang.Override + public int getFileLineColsCount() { + return fileLineCols_.size(); + } + /** + *
+     * Deprecated.
+     * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + @java.lang.Override + public org.tensorflow.proto.GraphDebugInfo.FileLineCol getFileLineCols(int index) { + return fileLineCols_.get(index); + } + /** + *
+     * Deprecated.
+     * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + @java.lang.Override + public org.tensorflow.proto.GraphDebugInfo.FileLineColOrBuilder getFileLineColsOrBuilder( + int index) { + return fileLineCols_.get(index); + } + + public static final int FRAME_ID_FIELD_NUMBER = 2; + private com.google.protobuf.Internal.LongList frameId_; + /** + * repeated fixed64 frame_id = 2 [packed = true]; + * @return A list containing the frameId. + */ + @java.lang.Override + public java.util.List + getFrameIdList() { + return frameId_; + } + /** + * repeated fixed64 frame_id = 2 [packed = true]; + * @return The count of frameId. + */ + public int getFrameIdCount() { + return frameId_.size(); + } + /** + * repeated fixed64 frame_id = 2 [packed = true]; + * @param index The index of the element to return. + * @return The frameId at the given index. + */ + public long getFrameId(int index) { + return frameId_.getLong(index); + } + private int frameIdMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + for (int i = 0; i < fileLineCols_.size(); i++) { + output.writeMessage(1, fileLineCols_.get(i)); + } + if (getFrameIdList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(frameIdMemoizedSerializedSize); + } + for (int i = 0; i < frameId_.size(); i++) { + output.writeFixed64NoTag(frameId_.getLong(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < fileLineCols_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, fileLineCols_.get(i)); + } + { + int dataSize = 0; + dataSize = 8 * getFrameIdList().size(); + size += dataSize; + if (!getFrameIdList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + frameIdMemoizedSerializedSize = dataSize; + } + 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 org.tensorflow.proto.GraphDebugInfo.StackTrace)) { + return super.equals(obj); + } + org.tensorflow.proto.GraphDebugInfo.StackTrace other = (org.tensorflow.proto.GraphDebugInfo.StackTrace) obj; + + if (!getFileLineColsList() + .equals(other.getFileLineColsList())) return false; + if (!getFrameIdList() + .equals(other.getFrameIdList())) 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 (getFileLineColsCount() > 0) { + hash = (37 * hash) + FILE_LINE_COLS_FIELD_NUMBER; + hash = (53 * hash) + getFileLineColsList().hashCode(); + } + if (getFrameIdCount() > 0) { + hash = (37 * hash) + FRAME_ID_FIELD_NUMBER; + hash = (53 * hash) + getFrameIdList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.GraphDebugInfo.StackTrace parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphDebugInfo.StackTrace parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphDebugInfo.StackTrace parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphDebugInfo.StackTrace parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphDebugInfo.StackTrace parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphDebugInfo.StackTrace parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphDebugInfo.StackTrace parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphDebugInfo.StackTrace 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 org.tensorflow.proto.GraphDebugInfo.StackTrace parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphDebugInfo.StackTrace 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 org.tensorflow.proto.GraphDebugInfo.StackTrace parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphDebugInfo.StackTrace 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(org.tensorflow.proto.GraphDebugInfo.StackTrace 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; + } + /** + *
+     * This represents a stack trace which is a ordered list of `FileLineCol`.
+     * 
+ * + * Protobuf type {@code tensorflow.GraphDebugInfo.StackTrace} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.GraphDebugInfo.StackTrace) + org.tensorflow.proto.GraphDebugInfo.StackTraceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_StackTrace_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_StackTrace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.GraphDebugInfo.StackTrace.class, org.tensorflow.proto.GraphDebugInfo.StackTrace.Builder.class); + } + + // Construct using org.tensorflow.proto.GraphDebugInfo.StackTrace.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (fileLineColsBuilder_ == null) { + fileLineCols_ = java.util.Collections.emptyList(); + } else { + fileLineCols_ = null; + fileLineColsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + frameId_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_StackTrace_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.GraphDebugInfo.StackTrace getDefaultInstanceForType() { + return org.tensorflow.proto.GraphDebugInfo.StackTrace.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.GraphDebugInfo.StackTrace build() { + org.tensorflow.proto.GraphDebugInfo.StackTrace result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.GraphDebugInfo.StackTrace buildPartial() { + org.tensorflow.proto.GraphDebugInfo.StackTrace result = new org.tensorflow.proto.GraphDebugInfo.StackTrace(this); + int from_bitField0_ = bitField0_; + if (fileLineColsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + fileLineCols_ = java.util.Collections.unmodifiableList(fileLineCols_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.fileLineCols_ = fileLineCols_; + } else { + result.fileLineCols_ = fileLineColsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + frameId_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.frameId_ = frameId_; + 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 org.tensorflow.proto.GraphDebugInfo.StackTrace) { + return mergeFrom((org.tensorflow.proto.GraphDebugInfo.StackTrace)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.GraphDebugInfo.StackTrace other) { + if (other == org.tensorflow.proto.GraphDebugInfo.StackTrace.getDefaultInstance()) return this; + if (fileLineColsBuilder_ == null) { + if (!other.fileLineCols_.isEmpty()) { + if (fileLineCols_.isEmpty()) { + fileLineCols_ = other.fileLineCols_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFileLineColsIsMutable(); + fileLineCols_.addAll(other.fileLineCols_); + } + onChanged(); + } + } else { + if (!other.fileLineCols_.isEmpty()) { + if (fileLineColsBuilder_.isEmpty()) { + fileLineColsBuilder_.dispose(); + fileLineColsBuilder_ = null; + fileLineCols_ = other.fileLineCols_; + bitField0_ = (bitField0_ & ~0x00000001); + fileLineColsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFileLineColsFieldBuilder() : null; + } else { + fileLineColsBuilder_.addAllMessages(other.fileLineCols_); + } + } + } + if (!other.frameId_.isEmpty()) { + if (frameId_.isEmpty()) { + frameId_ = other.frameId_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureFrameIdIsMutable(); + frameId_.addAll(other.frameId_); + } + 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: { + org.tensorflow.proto.GraphDebugInfo.FileLineCol m = + input.readMessage( + org.tensorflow.proto.GraphDebugInfo.FileLineCol.PARSER, + extensionRegistry); + if (fileLineColsBuilder_ == null) { + ensureFileLineColsIsMutable(); + fileLineCols_.add(m); + } else { + fileLineColsBuilder_.addMessage(m); + } + break; + } // case 10 + case 17: { + long v = input.readFixed64(); + ensureFrameIdIsMutable(); + frameId_.addLong(v); + break; + } // case 17 + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureFrameIdIsMutable(); + while (input.getBytesUntilLimit() > 0) { + frameId_.addLong(input.readFixed64()); + } + input.popLimit(limit); + 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 java.util.List fileLineCols_ = + java.util.Collections.emptyList(); + private void ensureFileLineColsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + fileLineCols_ = new java.util.ArrayList(fileLineCols_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphDebugInfo.FileLineCol, org.tensorflow.proto.GraphDebugInfo.FileLineCol.Builder, org.tensorflow.proto.GraphDebugInfo.FileLineColOrBuilder> fileLineColsBuilder_; + + /** + *
+       * Deprecated.
+       * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + public java.util.List getFileLineColsList() { + if (fileLineColsBuilder_ == null) { + return java.util.Collections.unmodifiableList(fileLineCols_); + } else { + return fileLineColsBuilder_.getMessageList(); + } + } + /** + *
+       * Deprecated.
+       * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + public int getFileLineColsCount() { + if (fileLineColsBuilder_ == null) { + return fileLineCols_.size(); + } else { + return fileLineColsBuilder_.getCount(); + } + } + /** + *
+       * Deprecated.
+       * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + public org.tensorflow.proto.GraphDebugInfo.FileLineCol getFileLineCols(int index) { + if (fileLineColsBuilder_ == null) { + return fileLineCols_.get(index); + } else { + return fileLineColsBuilder_.getMessage(index); + } + } + /** + *
+       * Deprecated.
+       * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + public Builder setFileLineCols( + int index, org.tensorflow.proto.GraphDebugInfo.FileLineCol value) { + if (fileLineColsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileLineColsIsMutable(); + fileLineCols_.set(index, value); + onChanged(); + } else { + fileLineColsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Deprecated.
+       * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + public Builder setFileLineCols( + int index, org.tensorflow.proto.GraphDebugInfo.FileLineCol.Builder builderForValue) { + if (fileLineColsBuilder_ == null) { + ensureFileLineColsIsMutable(); + fileLineCols_.set(index, builderForValue.build()); + onChanged(); + } else { + fileLineColsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Deprecated.
+       * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + public Builder addFileLineCols(org.tensorflow.proto.GraphDebugInfo.FileLineCol value) { + if (fileLineColsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileLineColsIsMutable(); + fileLineCols_.add(value); + onChanged(); + } else { + fileLineColsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Deprecated.
+       * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + public Builder addFileLineCols( + int index, org.tensorflow.proto.GraphDebugInfo.FileLineCol value) { + if (fileLineColsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileLineColsIsMutable(); + fileLineCols_.add(index, value); + onChanged(); + } else { + fileLineColsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Deprecated.
+       * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + public Builder addFileLineCols( + org.tensorflow.proto.GraphDebugInfo.FileLineCol.Builder builderForValue) { + if (fileLineColsBuilder_ == null) { + ensureFileLineColsIsMutable(); + fileLineCols_.add(builderForValue.build()); + onChanged(); + } else { + fileLineColsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Deprecated.
+       * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + public Builder addFileLineCols( + int index, org.tensorflow.proto.GraphDebugInfo.FileLineCol.Builder builderForValue) { + if (fileLineColsBuilder_ == null) { + ensureFileLineColsIsMutable(); + fileLineCols_.add(index, builderForValue.build()); + onChanged(); + } else { + fileLineColsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Deprecated.
+       * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + public Builder addAllFileLineCols( + java.lang.Iterable values) { + if (fileLineColsBuilder_ == null) { + ensureFileLineColsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fileLineCols_); + onChanged(); + } else { + fileLineColsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Deprecated.
+       * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + public Builder clearFileLineCols() { + if (fileLineColsBuilder_ == null) { + fileLineCols_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + fileLineColsBuilder_.clear(); + } + return this; + } + /** + *
+       * Deprecated.
+       * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + public Builder removeFileLineCols(int index) { + if (fileLineColsBuilder_ == null) { + ensureFileLineColsIsMutable(); + fileLineCols_.remove(index); + onChanged(); + } else { + fileLineColsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Deprecated.
+       * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + public org.tensorflow.proto.GraphDebugInfo.FileLineCol.Builder getFileLineColsBuilder( + int index) { + return getFileLineColsFieldBuilder().getBuilder(index); + } + /** + *
+       * Deprecated.
+       * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + public org.tensorflow.proto.GraphDebugInfo.FileLineColOrBuilder getFileLineColsOrBuilder( + int index) { + if (fileLineColsBuilder_ == null) { + return fileLineCols_.get(index); } else { + return fileLineColsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Deprecated.
+       * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + public java.util.List + getFileLineColsOrBuilderList() { + if (fileLineColsBuilder_ != null) { + return fileLineColsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fileLineCols_); + } + } + /** + *
+       * Deprecated.
+       * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + public org.tensorflow.proto.GraphDebugInfo.FileLineCol.Builder addFileLineColsBuilder() { + return getFileLineColsFieldBuilder().addBuilder( + org.tensorflow.proto.GraphDebugInfo.FileLineCol.getDefaultInstance()); + } + /** + *
+       * Deprecated.
+       * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + public org.tensorflow.proto.GraphDebugInfo.FileLineCol.Builder addFileLineColsBuilder( + int index) { + return getFileLineColsFieldBuilder().addBuilder( + index, org.tensorflow.proto.GraphDebugInfo.FileLineCol.getDefaultInstance()); + } + /** + *
+       * Deprecated.
+       * 
+ * + * repeated .tensorflow.GraphDebugInfo.FileLineCol file_line_cols = 1; + */ + public java.util.List + getFileLineColsBuilderList() { + return getFileLineColsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphDebugInfo.FileLineCol, org.tensorflow.proto.GraphDebugInfo.FileLineCol.Builder, org.tensorflow.proto.GraphDebugInfo.FileLineColOrBuilder> + getFileLineColsFieldBuilder() { + if (fileLineColsBuilder_ == null) { + fileLineColsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphDebugInfo.FileLineCol, org.tensorflow.proto.GraphDebugInfo.FileLineCol.Builder, org.tensorflow.proto.GraphDebugInfo.FileLineColOrBuilder>( + fileLineCols_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + fileLineCols_ = null; + } + return fileLineColsBuilder_; + } + + private com.google.protobuf.Internal.LongList frameId_ = emptyLongList(); + private void ensureFrameIdIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + frameId_ = mutableCopy(frameId_); + bitField0_ |= 0x00000002; + } + } + /** + * repeated fixed64 frame_id = 2 [packed = true]; + * @return A list containing the frameId. + */ + public java.util.List + getFrameIdList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(frameId_) : frameId_; + } + /** + * repeated fixed64 frame_id = 2 [packed = true]; + * @return The count of frameId. + */ + public int getFrameIdCount() { + return frameId_.size(); + } + /** + * repeated fixed64 frame_id = 2 [packed = true]; + * @param index The index of the element to return. + * @return The frameId at the given index. + */ + public long getFrameId(int index) { + return frameId_.getLong(index); + } + /** + * repeated fixed64 frame_id = 2 [packed = true]; + * @param index The index to set the value at. + * @param value The frameId to set. + * @return This builder for chaining. + */ + public Builder setFrameId( + int index, long value) { + ensureFrameIdIsMutable(); + frameId_.setLong(index, value); + onChanged(); + return this; + } + /** + * repeated fixed64 frame_id = 2 [packed = true]; + * @param value The frameId to add. + * @return This builder for chaining. + */ + public Builder addFrameId(long value) { + ensureFrameIdIsMutable(); + frameId_.addLong(value); + onChanged(); + return this; + } + /** + * repeated fixed64 frame_id = 2 [packed = true]; + * @param values The frameId to add. + * @return This builder for chaining. + */ + public Builder addAllFrameId( + java.lang.Iterable values) { + ensureFrameIdIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, frameId_); + onChanged(); + return this; + } + /** + * repeated fixed64 frame_id = 2 [packed = true]; + * @return This builder for chaining. + */ + public Builder clearFrameId() { + frameId_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000002); + 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:tensorflow.GraphDebugInfo.StackTrace) + } + + // @@protoc_insertion_point(class_scope:tensorflow.GraphDebugInfo.StackTrace) + private static final org.tensorflow.proto.GraphDebugInfo.StackTrace DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.GraphDebugInfo.StackTrace(); + } + + public static org.tensorflow.proto.GraphDebugInfo.StackTrace getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StackTrace 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 org.tensorflow.proto.GraphDebugInfo.StackTrace getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int FILES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList files_; + /** + *
+   * This stores all the source code file names and can be indexed by the
+   * `file_index`.
+   * 
+ * + * repeated string files = 1; + * @return A list containing the files. + */ + public com.google.protobuf.ProtocolStringList + getFilesList() { + return files_; + } + /** + *
+   * This stores all the source code file names and can be indexed by the
+   * `file_index`.
+   * 
+ * + * repeated string files = 1; + * @return The count of files. + */ + public int getFilesCount() { + return files_.size(); + } + /** + *
+   * This stores all the source code file names and can be indexed by the
+   * `file_index`.
+   * 
+ * + * repeated string files = 1; + * @param index The index of the element to return. + * @return The files at the given index. + */ + public java.lang.String getFiles(int index) { + return files_.get(index); + } + /** + *
+   * This stores all the source code file names and can be indexed by the
+   * `file_index`.
+   * 
+ * + * repeated string files = 1; + * @param index The index of the value to return. + * @return The bytes of the files at the given index. + */ + public com.google.protobuf.ByteString + getFilesBytes(int index) { + return files_.getByteString(index); + } + + public static final int FRAMES_BY_ID_FIELD_NUMBER = 4; + private static final class FramesByIdDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.Long, org.tensorflow.proto.GraphDebugInfo.FileLineCol> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.tensorflow.proto.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_FramesByIdEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.FIXED64, + 0L, + com.google.protobuf.WireFormat.FieldType.MESSAGE, + org.tensorflow.proto.GraphDebugInfo.FileLineCol.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.Long, org.tensorflow.proto.GraphDebugInfo.FileLineCol> framesById_; + private com.google.protobuf.MapField + internalGetFramesById() { + if (framesById_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FramesByIdDefaultEntryHolder.defaultEntry); + } + return framesById_; + } + + public int getFramesByIdCount() { + return internalGetFramesById().getMap().size(); + } + /** + *
+   * Stack traces and frames are uniqueified during construction. These maps
+   * index from the unique id for a frame/trace to the value.
+   * 
+ * + * map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4; + */ + + @java.lang.Override + public boolean containsFramesById( + long key) { + + return internalGetFramesById().getMap().containsKey(key); + } + /** + * Use {@link #getFramesByIdMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFramesById() { + return getFramesByIdMap(); + } + /** + *
+   * Stack traces and frames are uniqueified during construction. These maps
+   * index from the unique id for a frame/trace to the value.
+   * 
+ * + * map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4; + */ + @java.lang.Override + + public java.util.Map getFramesByIdMap() { + return internalGetFramesById().getMap(); + } + /** + *
+   * Stack traces and frames are uniqueified during construction. These maps
+   * index from the unique id for a frame/trace to the value.
+   * 
+ * + * map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4; + */ + @java.lang.Override + + public org.tensorflow.proto.GraphDebugInfo.FileLineCol getFramesByIdOrDefault( + long key, + org.tensorflow.proto.GraphDebugInfo.FileLineCol defaultValue) { + + java.util.Map map = + internalGetFramesById().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Stack traces and frames are uniqueified during construction. These maps
+   * index from the unique id for a frame/trace to the value.
+   * 
+ * + * map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4; + */ + @java.lang.Override + + public org.tensorflow.proto.GraphDebugInfo.FileLineCol getFramesByIdOrThrow( + long key) { + + java.util.Map map = + internalGetFramesById().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int TRACES_BY_ID_FIELD_NUMBER = 6; + private static final class TracesByIdDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.Long, org.tensorflow.proto.GraphDebugInfo.StackTrace> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.tensorflow.proto.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_TracesByIdEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.FIXED64, + 0L, + com.google.protobuf.WireFormat.FieldType.MESSAGE, + org.tensorflow.proto.GraphDebugInfo.StackTrace.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.Long, org.tensorflow.proto.GraphDebugInfo.StackTrace> tracesById_; + private com.google.protobuf.MapField + internalGetTracesById() { + if (tracesById_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TracesByIdDefaultEntryHolder.defaultEntry); + } + return tracesById_; + } + + public int getTracesByIdCount() { + return internalGetTracesById().getMap().size(); + } + /** + * map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6; + */ + + @java.lang.Override + public boolean containsTracesById( + long key) { + + return internalGetTracesById().getMap().containsKey(key); + } + /** + * Use {@link #getTracesByIdMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTracesById() { + return getTracesByIdMap(); + } + /** + * map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6; + */ + @java.lang.Override + + public java.util.Map getTracesByIdMap() { + return internalGetTracesById().getMap(); + } + /** + * map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6; + */ + @java.lang.Override + + public org.tensorflow.proto.GraphDebugInfo.StackTrace getTracesByIdOrDefault( + long key, + org.tensorflow.proto.GraphDebugInfo.StackTrace defaultValue) { + + java.util.Map map = + internalGetTracesById().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6; + */ + @java.lang.Override + + public org.tensorflow.proto.GraphDebugInfo.StackTrace getTracesByIdOrThrow( + long key) { + + java.util.Map map = + internalGetTracesById().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int TRACES_FIELD_NUMBER = 2; + private static final class TracesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, org.tensorflow.proto.GraphDebugInfo.StackTrace> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.tensorflow.proto.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_TracesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + org.tensorflow.proto.GraphDebugInfo.StackTrace.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, org.tensorflow.proto.GraphDebugInfo.StackTrace> traces_; + private com.google.protobuf.MapField + internalGetTraces() { + if (traces_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TracesDefaultEntryHolder.defaultEntry); + } + return traces_; + } + + public int getTracesCount() { + return internalGetTraces().getMap().size(); + } + /** + *
+   * Deprecated.
+   * 
+ * + * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; + */ + + @java.lang.Override + public boolean containsTraces( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetTraces().getMap().containsKey(key); + } + /** + * Use {@link #getTracesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTraces() { + return getTracesMap(); + } + /** + *
+   * Deprecated.
+   * 
+ * + * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; + */ + @java.lang.Override + + public java.util.Map getTracesMap() { + return internalGetTraces().getMap(); + } + /** + *
+   * Deprecated.
+   * 
+ * + * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.GraphDebugInfo.StackTrace getTracesOrDefault( + java.lang.String key, + org.tensorflow.proto.GraphDebugInfo.StackTrace defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTraces().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Deprecated.
+   * 
+ * + * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.GraphDebugInfo.StackTrace getTracesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTraces().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int NAME_TO_TRACE_ID_FIELD_NUMBER = 5; + private static final class NameToTraceIdDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.Long> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.tensorflow.proto.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_NameToTraceIdEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.FIXED64, + 0L); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.Long> nameToTraceId_; + private com.google.protobuf.MapField + internalGetNameToTraceId() { + if (nameToTraceId_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NameToTraceIdDefaultEntryHolder.defaultEntry); + } + return nameToTraceId_; + } + + public int getNameToTraceIdCount() { + return internalGetNameToTraceId().getMap().size(); + } + /** + *
+   * This maps a node name to a trace id contained in `traces_by_id`.
+   * The map key is a mangling of the containing function and op name with
+   * syntax:
+   *   op.name '@' func_name
+   * For ops in the top-level graph, the func_name is the empty string and hence
+   * the `@` may be ommitted.
+   * Note that op names are restricted to a small number of characters which
+   * exclude '@', making it impossible to collide keys of this form. Function
+   * names accept a much wider set of characters.
+   * It would be preferable to avoid mangling and use a tuple key of (op.name,
+   * func_name), but this is not supported with protocol buffers.
+   * 
+ * + * map<string, fixed64> name_to_trace_id = 5; + */ + + @java.lang.Override + public boolean containsNameToTraceId( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetNameToTraceId().getMap().containsKey(key); + } + /** + * Use {@link #getNameToTraceIdMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getNameToTraceId() { + return getNameToTraceIdMap(); + } + /** + *
+   * This maps a node name to a trace id contained in `traces_by_id`.
+   * The map key is a mangling of the containing function and op name with
+   * syntax:
+   *   op.name '@' func_name
+   * For ops in the top-level graph, the func_name is the empty string and hence
+   * the `@` may be ommitted.
+   * Note that op names are restricted to a small number of characters which
+   * exclude '@', making it impossible to collide keys of this form. Function
+   * names accept a much wider set of characters.
+   * It would be preferable to avoid mangling and use a tuple key of (op.name,
+   * func_name), but this is not supported with protocol buffers.
+   * 
+ * + * map<string, fixed64> name_to_trace_id = 5; + */ + @java.lang.Override + + public java.util.Map getNameToTraceIdMap() { + return internalGetNameToTraceId().getMap(); + } + /** + *
+   * This maps a node name to a trace id contained in `traces_by_id`.
+   * The map key is a mangling of the containing function and op name with
+   * syntax:
+   *   op.name '@' func_name
+   * For ops in the top-level graph, the func_name is the empty string and hence
+   * the `@` may be ommitted.
+   * Note that op names are restricted to a small number of characters which
+   * exclude '@', making it impossible to collide keys of this form. Function
+   * names accept a much wider set of characters.
+   * It would be preferable to avoid mangling and use a tuple key of (op.name,
+   * func_name), but this is not supported with protocol buffers.
+   * 
+ * + * map<string, fixed64> name_to_trace_id = 5; + */ + @java.lang.Override + + public long getNameToTraceIdOrDefault( + java.lang.String key, + long defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetNameToTraceId().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * This maps a node name to a trace id contained in `traces_by_id`.
+   * The map key is a mangling of the containing function and op name with
+   * syntax:
+   *   op.name '@' func_name
+   * For ops in the top-level graph, the func_name is the empty string and hence
+   * the `@` may be ommitted.
+   * Note that op names are restricted to a small number of characters which
+   * exclude '@', making it impossible to collide keys of this form. Function
+   * names accept a much wider set of characters.
+   * It would be preferable to avoid mangling and use a tuple key of (op.name,
+   * func_name), but this is not supported with protocol buffers.
+   * 
+ * + * map<string, fixed64> name_to_trace_id = 5; + */ + @java.lang.Override + + public long getNameToTraceIdOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetNameToTraceId().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 { + for (int i = 0; i < files_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, files_.getRaw(i)); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetTraces(), + TracesDefaultEntryHolder.defaultEntry, + 2); + com.google.protobuf.GeneratedMessageV3 + .serializeLongMapTo( + output, + internalGetFramesById(), + FramesByIdDefaultEntryHolder.defaultEntry, + 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetNameToTraceId(), + NameToTraceIdDefaultEntryHolder.defaultEntry, + 5); + com.google.protobuf.GeneratedMessageV3 + .serializeLongMapTo( + output, + internalGetTracesById(), + TracesByIdDefaultEntryHolder.defaultEntry, + 6); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < files_.size(); i++) { + dataSize += computeStringSizeNoTag(files_.getRaw(i)); + } + size += dataSize; + size += 1 * getFilesList().size(); + } + for (java.util.Map.Entry entry + : internalGetTraces().getMap().entrySet()) { + com.google.protobuf.MapEntry + traces__ = TracesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, traces__); + } + for (java.util.Map.Entry entry + : internalGetFramesById().getMap().entrySet()) { + com.google.protobuf.MapEntry + framesById__ = FramesByIdDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, framesById__); + } + for (java.util.Map.Entry entry + : internalGetNameToTraceId().getMap().entrySet()) { + com.google.protobuf.MapEntry + nameToTraceId__ = NameToTraceIdDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, nameToTraceId__); + } + for (java.util.Map.Entry entry + : internalGetTracesById().getMap().entrySet()) { + com.google.protobuf.MapEntry + tracesById__ = TracesByIdDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, tracesById__); + } + 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 org.tensorflow.proto.GraphDebugInfo)) { + return super.equals(obj); + } + org.tensorflow.proto.GraphDebugInfo other = (org.tensorflow.proto.GraphDebugInfo) obj; + + if (!getFilesList() + .equals(other.getFilesList())) return false; + if (!internalGetFramesById().equals( + other.internalGetFramesById())) return false; + if (!internalGetTracesById().equals( + other.internalGetTracesById())) return false; + if (!internalGetTraces().equals( + other.internalGetTraces())) return false; + if (!internalGetNameToTraceId().equals( + other.internalGetNameToTraceId())) 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 (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } + if (!internalGetFramesById().getMap().isEmpty()) { + hash = (37 * hash) + FRAMES_BY_ID_FIELD_NUMBER; + hash = (53 * hash) + internalGetFramesById().hashCode(); + } + if (!internalGetTracesById().getMap().isEmpty()) { + hash = (37 * hash) + TRACES_BY_ID_FIELD_NUMBER; + hash = (53 * hash) + internalGetTracesById().hashCode(); + } + if (!internalGetTraces().getMap().isEmpty()) { + hash = (37 * hash) + TRACES_FIELD_NUMBER; + hash = (53 * hash) + internalGetTraces().hashCode(); + } + if (!internalGetNameToTraceId().getMap().isEmpty()) { + hash = (37 * hash) + NAME_TO_TRACE_ID_FIELD_NUMBER; + hash = (53 * hash) + internalGetNameToTraceId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.GraphDebugInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphDebugInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphDebugInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphDebugInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphDebugInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphDebugInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphDebugInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphDebugInfo 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 org.tensorflow.proto.GraphDebugInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphDebugInfo 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 org.tensorflow.proto.GraphDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphDebugInfo 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(org.tensorflow.proto.GraphDebugInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.GraphDebugInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.GraphDebugInfo) + org.tensorflow.proto.GraphDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetFramesById(); + case 6: + return internalGetTracesById(); + case 2: + return internalGetTraces(); + case 5: + return internalGetNameToTraceId(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableFramesById(); + case 6: + return internalGetMutableTracesById(); + case 2: + return internalGetMutableTraces(); + case 5: + return internalGetMutableNameToTraceId(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.GraphDebugInfo.class, org.tensorflow.proto.GraphDebugInfo.Builder.class); + } + + // Construct using org.tensorflow.proto.GraphDebugInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + files_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableFramesById().clear(); + internalGetMutableTracesById().clear(); + internalGetMutableTraces().clear(); + internalGetMutableNameToTraceId().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.GraphDebugInfoProtos.internal_static_tensorflow_GraphDebugInfo_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.GraphDebugInfo getDefaultInstanceForType() { + return org.tensorflow.proto.GraphDebugInfo.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.GraphDebugInfo build() { + org.tensorflow.proto.GraphDebugInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.GraphDebugInfo buildPartial() { + org.tensorflow.proto.GraphDebugInfo result = new org.tensorflow.proto.GraphDebugInfo(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + files_ = files_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.files_ = files_; + result.framesById_ = internalGetFramesById(); + result.framesById_.makeImmutable(); + result.tracesById_ = internalGetTracesById(); + result.tracesById_.makeImmutable(); + result.traces_ = internalGetTraces(); + result.traces_.makeImmutable(); + result.nameToTraceId_ = internalGetNameToTraceId(); + result.nameToTraceId_.makeImmutable(); + 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 org.tensorflow.proto.GraphDebugInfo) { + return mergeFrom((org.tensorflow.proto.GraphDebugInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.GraphDebugInfo other) { + if (other == org.tensorflow.proto.GraphDebugInfo.getDefaultInstance()) return this; + if (!other.files_.isEmpty()) { + if (files_.isEmpty()) { + files_ = other.files_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFilesIsMutable(); + files_.addAll(other.files_); + } + onChanged(); + } + internalGetMutableFramesById().mergeFrom( + other.internalGetFramesById()); + internalGetMutableTracesById().mergeFrom( + other.internalGetTracesById()); + internalGetMutableTraces().mergeFrom( + other.internalGetTraces()); + internalGetMutableNameToTraceId().mergeFrom( + other.internalGetNameToTraceId()); + 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.ByteString bs = input.readBytes(); + ensureFilesIsMutable(); + files_.add(bs); + break; + } // case 10 + case 18: { + com.google.protobuf.MapEntry + traces__ = input.readMessage( + TracesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableTraces().getMutableMap().put( + traces__.getKey(), traces__.getValue()); + break; + } // case 18 + case 34: { + com.google.protobuf.MapEntry + framesById__ = input.readMessage( + FramesByIdDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableFramesById().getMutableMap().put( + framesById__.getKey(), framesById__.getValue()); + break; + } // case 34 + case 42: { + com.google.protobuf.MapEntry + nameToTraceId__ = input.readMessage( + NameToTraceIdDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableNameToTraceId().getMutableMap().put( + nameToTraceId__.getKey(), nameToTraceId__.getValue()); + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + tracesById__ = input.readMessage( + TracesByIdDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableTracesById().getMutableMap().put( + tracesById__.getKey(), tracesById__.getValue()); + break; + } // case 50 + 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.protobuf.LazyStringList files_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureFilesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + files_ = new com.google.protobuf.LazyStringArrayList(files_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * This stores all the source code file names and can be indexed by the
+     * `file_index`.
+     * 
+ * + * repeated string files = 1; + * @return A list containing the files. + */ + public com.google.protobuf.ProtocolStringList + getFilesList() { + return files_.getUnmodifiableView(); + } + /** + *
+     * This stores all the source code file names and can be indexed by the
+     * `file_index`.
+     * 
+ * + * repeated string files = 1; + * @return The count of files. + */ + public int getFilesCount() { + return files_.size(); + } + /** + *
+     * This stores all the source code file names and can be indexed by the
+     * `file_index`.
+     * 
+ * + * repeated string files = 1; + * @param index The index of the element to return. + * @return The files at the given index. + */ + public java.lang.String getFiles(int index) { + return files_.get(index); + } + /** + *
+     * This stores all the source code file names and can be indexed by the
+     * `file_index`.
+     * 
+ * + * repeated string files = 1; + * @param index The index of the value to return. + * @return The bytes of the files at the given index. + */ + public com.google.protobuf.ByteString + getFilesBytes(int index) { + return files_.getByteString(index); + } + /** + *
+     * This stores all the source code file names and can be indexed by the
+     * `file_index`.
+     * 
+ * + * repeated string files = 1; + * @param index The index to set the value at. + * @param value The files to set. + * @return This builder for chaining. + */ + public Builder setFiles( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * This stores all the source code file names and can be indexed by the
+     * `file_index`.
+     * 
+ * + * repeated string files = 1; + * @param value The files to add. + * @return This builder for chaining. + */ + public Builder addFiles( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(value); + onChanged(); + return this; + } + /** + *
+     * This stores all the source code file names and can be indexed by the
+     * `file_index`.
+     * 
+ * + * repeated string files = 1; + * @param values The files to add. + * @return This builder for chaining. + */ + public Builder addAllFiles( + java.lang.Iterable values) { + ensureFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, files_); + onChanged(); + return this; + } + /** + *
+     * This stores all the source code file names and can be indexed by the
+     * `file_index`.
+     * 
+ * + * repeated string files = 1; + * @return This builder for chaining. + */ + public Builder clearFiles() { + files_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * This stores all the source code file names and can be indexed by the
+     * `file_index`.
+     * 
+ * + * repeated string files = 1; + * @param value The bytes of the files to add. + * @return This builder for chaining. + */ + public Builder addFilesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.Long, org.tensorflow.proto.GraphDebugInfo.FileLineCol> framesById_; + private com.google.protobuf.MapField + internalGetFramesById() { + if (framesById_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FramesByIdDefaultEntryHolder.defaultEntry); + } + return framesById_; + } + private com.google.protobuf.MapField + internalGetMutableFramesById() { + onChanged();; + if (framesById_ == null) { + framesById_ = com.google.protobuf.MapField.newMapField( + FramesByIdDefaultEntryHolder.defaultEntry); + } + if (!framesById_.isMutable()) { + framesById_ = framesById_.copy(); + } + return framesById_; + } + + public int getFramesByIdCount() { + return internalGetFramesById().getMap().size(); + } + /** + *
+     * Stack traces and frames are uniqueified during construction. These maps
+     * index from the unique id for a frame/trace to the value.
+     * 
+ * + * map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4; + */ + + @java.lang.Override + public boolean containsFramesById( + long key) { + + return internalGetFramesById().getMap().containsKey(key); + } + /** + * Use {@link #getFramesByIdMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFramesById() { + return getFramesByIdMap(); + } + /** + *
+     * Stack traces and frames are uniqueified during construction. These maps
+     * index from the unique id for a frame/trace to the value.
+     * 
+ * + * map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4; + */ + @java.lang.Override + + public java.util.Map getFramesByIdMap() { + return internalGetFramesById().getMap(); + } + /** + *
+     * Stack traces and frames are uniqueified during construction. These maps
+     * index from the unique id for a frame/trace to the value.
+     * 
+ * + * map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4; + */ + @java.lang.Override + + public org.tensorflow.proto.GraphDebugInfo.FileLineCol getFramesByIdOrDefault( + long key, + org.tensorflow.proto.GraphDebugInfo.FileLineCol defaultValue) { + + java.util.Map map = + internalGetFramesById().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Stack traces and frames are uniqueified during construction. These maps
+     * index from the unique id for a frame/trace to the value.
+     * 
+ * + * map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4; + */ + @java.lang.Override + + public org.tensorflow.proto.GraphDebugInfo.FileLineCol getFramesByIdOrThrow( + long key) { + + java.util.Map map = + internalGetFramesById().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFramesById() { + internalGetMutableFramesById().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Stack traces and frames are uniqueified during construction. These maps
+     * index from the unique id for a frame/trace to the value.
+     * 
+ * + * map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4; + */ + + public Builder removeFramesById( + long key) { + + internalGetMutableFramesById().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableFramesById() { + return internalGetMutableFramesById().getMutableMap(); + } + /** + *
+     * Stack traces and frames are uniqueified during construction. These maps
+     * index from the unique id for a frame/trace to the value.
+     * 
+ * + * map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4; + */ + public Builder putFramesById( + long key, + org.tensorflow.proto.GraphDebugInfo.FileLineCol value) { + + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableFramesById().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Stack traces and frames are uniqueified during construction. These maps
+     * index from the unique id for a frame/trace to the value.
+     * 
+ * + * map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4; + */ + + public Builder putAllFramesById( + java.util.Map values) { + internalGetMutableFramesById().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.Long, org.tensorflow.proto.GraphDebugInfo.StackTrace> tracesById_; + private com.google.protobuf.MapField + internalGetTracesById() { + if (tracesById_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TracesByIdDefaultEntryHolder.defaultEntry); + } + return tracesById_; + } + private com.google.protobuf.MapField + internalGetMutableTracesById() { + onChanged();; + if (tracesById_ == null) { + tracesById_ = com.google.protobuf.MapField.newMapField( + TracesByIdDefaultEntryHolder.defaultEntry); + } + if (!tracesById_.isMutable()) { + tracesById_ = tracesById_.copy(); + } + return tracesById_; + } + + public int getTracesByIdCount() { + return internalGetTracesById().getMap().size(); + } + /** + * map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6; + */ + + @java.lang.Override + public boolean containsTracesById( + long key) { + + return internalGetTracesById().getMap().containsKey(key); + } + /** + * Use {@link #getTracesByIdMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTracesById() { + return getTracesByIdMap(); + } + /** + * map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6; + */ + @java.lang.Override + + public java.util.Map getTracesByIdMap() { + return internalGetTracesById().getMap(); + } + /** + * map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6; + */ + @java.lang.Override + + public org.tensorflow.proto.GraphDebugInfo.StackTrace getTracesByIdOrDefault( + long key, + org.tensorflow.proto.GraphDebugInfo.StackTrace defaultValue) { + + java.util.Map map = + internalGetTracesById().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6; + */ + @java.lang.Override + + public org.tensorflow.proto.GraphDebugInfo.StackTrace getTracesByIdOrThrow( + long key) { + + java.util.Map map = + internalGetTracesById().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTracesById() { + internalGetMutableTracesById().getMutableMap() + .clear(); + return this; + } + /** + * map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6; + */ + + public Builder removeTracesById( + long key) { + + internalGetMutableTracesById().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableTracesById() { + return internalGetMutableTracesById().getMutableMap(); + } + /** + * map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6; + */ + public Builder putTracesById( + long key, + org.tensorflow.proto.GraphDebugInfo.StackTrace value) { + + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableTracesById().getMutableMap() + .put(key, value); + return this; + } + /** + * map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6; + */ + + public Builder putAllTracesById( + java.util.Map values) { + internalGetMutableTracesById().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, org.tensorflow.proto.GraphDebugInfo.StackTrace> traces_; + private com.google.protobuf.MapField + internalGetTraces() { + if (traces_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TracesDefaultEntryHolder.defaultEntry); + } + return traces_; + } + private com.google.protobuf.MapField + internalGetMutableTraces() { + onChanged();; + if (traces_ == null) { + traces_ = com.google.protobuf.MapField.newMapField( + TracesDefaultEntryHolder.defaultEntry); + } + if (!traces_.isMutable()) { + traces_ = traces_.copy(); + } + return traces_; + } + + public int getTracesCount() { + return internalGetTraces().getMap().size(); + } + /** + *
+     * Deprecated.
+     * 
+ * + * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; + */ + + @java.lang.Override + public boolean containsTraces( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetTraces().getMap().containsKey(key); + } + /** + * Use {@link #getTracesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTraces() { + return getTracesMap(); + } + /** + *
+     * Deprecated.
+     * 
+ * + * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; + */ + @java.lang.Override + + public java.util.Map getTracesMap() { + return internalGetTraces().getMap(); + } + /** + *
+     * Deprecated.
+     * 
+ * + * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.GraphDebugInfo.StackTrace getTracesOrDefault( + java.lang.String key, + org.tensorflow.proto.GraphDebugInfo.StackTrace defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTraces().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Deprecated.
+     * 
+ * + * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.GraphDebugInfo.StackTrace getTracesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTraces().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTraces() { + internalGetMutableTraces().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Deprecated.
+     * 
+ * + * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; + */ + + public Builder removeTraces( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableTraces().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableTraces() { + return internalGetMutableTraces().getMutableMap(); + } + /** + *
+     * Deprecated.
+     * 
+ * + * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; + */ + public Builder putTraces( + java.lang.String key, + org.tensorflow.proto.GraphDebugInfo.StackTrace value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableTraces().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Deprecated.
+     * 
+ * + * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; + */ + + public Builder putAllTraces( + java.util.Map values) { + internalGetMutableTraces().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.Long> nameToTraceId_; + private com.google.protobuf.MapField + internalGetNameToTraceId() { + if (nameToTraceId_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NameToTraceIdDefaultEntryHolder.defaultEntry); + } + return nameToTraceId_; + } + private com.google.protobuf.MapField + internalGetMutableNameToTraceId() { + onChanged();; + if (nameToTraceId_ == null) { + nameToTraceId_ = com.google.protobuf.MapField.newMapField( + NameToTraceIdDefaultEntryHolder.defaultEntry); + } + if (!nameToTraceId_.isMutable()) { + nameToTraceId_ = nameToTraceId_.copy(); + } + return nameToTraceId_; + } + + public int getNameToTraceIdCount() { + return internalGetNameToTraceId().getMap().size(); + } + /** + *
+     * This maps a node name to a trace id contained in `traces_by_id`.
+     * The map key is a mangling of the containing function and op name with
+     * syntax:
+     *   op.name '@' func_name
+     * For ops in the top-level graph, the func_name is the empty string and hence
+     * the `@` may be ommitted.
+     * Note that op names are restricted to a small number of characters which
+     * exclude '@', making it impossible to collide keys of this form. Function
+     * names accept a much wider set of characters.
+     * It would be preferable to avoid mangling and use a tuple key of (op.name,
+     * func_name), but this is not supported with protocol buffers.
+     * 
+ * + * map<string, fixed64> name_to_trace_id = 5; + */ + + @java.lang.Override + public boolean containsNameToTraceId( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetNameToTraceId().getMap().containsKey(key); + } + /** + * Use {@link #getNameToTraceIdMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getNameToTraceId() { + return getNameToTraceIdMap(); + } + /** + *
+     * This maps a node name to a trace id contained in `traces_by_id`.
+     * The map key is a mangling of the containing function and op name with
+     * syntax:
+     *   op.name '@' func_name
+     * For ops in the top-level graph, the func_name is the empty string and hence
+     * the `@` may be ommitted.
+     * Note that op names are restricted to a small number of characters which
+     * exclude '@', making it impossible to collide keys of this form. Function
+     * names accept a much wider set of characters.
+     * It would be preferable to avoid mangling and use a tuple key of (op.name,
+     * func_name), but this is not supported with protocol buffers.
+     * 
+ * + * map<string, fixed64> name_to_trace_id = 5; + */ + @java.lang.Override + + public java.util.Map getNameToTraceIdMap() { + return internalGetNameToTraceId().getMap(); + } + /** + *
+     * This maps a node name to a trace id contained in `traces_by_id`.
+     * The map key is a mangling of the containing function and op name with
+     * syntax:
+     *   op.name '@' func_name
+     * For ops in the top-level graph, the func_name is the empty string and hence
+     * the `@` may be ommitted.
+     * Note that op names are restricted to a small number of characters which
+     * exclude '@', making it impossible to collide keys of this form. Function
+     * names accept a much wider set of characters.
+     * It would be preferable to avoid mangling and use a tuple key of (op.name,
+     * func_name), but this is not supported with protocol buffers.
+     * 
+ * + * map<string, fixed64> name_to_trace_id = 5; + */ + @java.lang.Override + + public long getNameToTraceIdOrDefault( + java.lang.String key, + long defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetNameToTraceId().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * This maps a node name to a trace id contained in `traces_by_id`.
+     * The map key is a mangling of the containing function and op name with
+     * syntax:
+     *   op.name '@' func_name
+     * For ops in the top-level graph, the func_name is the empty string and hence
+     * the `@` may be ommitted.
+     * Note that op names are restricted to a small number of characters which
+     * exclude '@', making it impossible to collide keys of this form. Function
+     * names accept a much wider set of characters.
+     * It would be preferable to avoid mangling and use a tuple key of (op.name,
+     * func_name), but this is not supported with protocol buffers.
+     * 
+ * + * map<string, fixed64> name_to_trace_id = 5; + */ + @java.lang.Override + + public long getNameToTraceIdOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetNameToTraceId().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearNameToTraceId() { + internalGetMutableNameToTraceId().getMutableMap() + .clear(); + return this; + } + /** + *
+     * This maps a node name to a trace id contained in `traces_by_id`.
+     * The map key is a mangling of the containing function and op name with
+     * syntax:
+     *   op.name '@' func_name
+     * For ops in the top-level graph, the func_name is the empty string and hence
+     * the `@` may be ommitted.
+     * Note that op names are restricted to a small number of characters which
+     * exclude '@', making it impossible to collide keys of this form. Function
+     * names accept a much wider set of characters.
+     * It would be preferable to avoid mangling and use a tuple key of (op.name,
+     * func_name), but this is not supported with protocol buffers.
+     * 
+ * + * map<string, fixed64> name_to_trace_id = 5; + */ + + public Builder removeNameToTraceId( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableNameToTraceId().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableNameToTraceId() { + return internalGetMutableNameToTraceId().getMutableMap(); + } + /** + *
+     * This maps a node name to a trace id contained in `traces_by_id`.
+     * The map key is a mangling of the containing function and op name with
+     * syntax:
+     *   op.name '@' func_name
+     * For ops in the top-level graph, the func_name is the empty string and hence
+     * the `@` may be ommitted.
+     * Note that op names are restricted to a small number of characters which
+     * exclude '@', making it impossible to collide keys of this form. Function
+     * names accept a much wider set of characters.
+     * It would be preferable to avoid mangling and use a tuple key of (op.name,
+     * func_name), but this is not supported with protocol buffers.
+     * 
+ * + * map<string, fixed64> name_to_trace_id = 5; + */ + public Builder putNameToTraceId( + java.lang.String key, + long value) { + if (key == null) { throw new NullPointerException("map key"); } + + internalGetMutableNameToTraceId().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * This maps a node name to a trace id contained in `traces_by_id`.
+     * The map key is a mangling of the containing function and op name with
+     * syntax:
+     *   op.name '@' func_name
+     * For ops in the top-level graph, the func_name is the empty string and hence
+     * the `@` may be ommitted.
+     * Note that op names are restricted to a small number of characters which
+     * exclude '@', making it impossible to collide keys of this form. Function
+     * names accept a much wider set of characters.
+     * It would be preferable to avoid mangling and use a tuple key of (op.name,
+     * func_name), but this is not supported with protocol buffers.
+     * 
+ * + * map<string, fixed64> name_to_trace_id = 5; + */ + + public Builder putAllNameToTraceId( + java.util.Map values) { + internalGetMutableNameToTraceId().getMutableMap() + .putAll(values); + 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:tensorflow.GraphDebugInfo) + } + + // @@protoc_insertion_point(class_scope:tensorflow.GraphDebugInfo) + private static final org.tensorflow.proto.GraphDebugInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.GraphDebugInfo(); + } + + public static org.tensorflow.proto.GraphDebugInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GraphDebugInfo 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 org.tensorflow.proto.GraphDebugInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphDebugInfoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphDebugInfoOrBuilder.java new file mode 100644 index 00000000000..cebdb4772c0 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphDebugInfoOrBuilder.java @@ -0,0 +1,311 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/graph_debug_info.proto + +package org.tensorflow.proto; + +public interface GraphDebugInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.GraphDebugInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * This stores all the source code file names and can be indexed by the
+   * `file_index`.
+   * 
+ * + * repeated string files = 1; + * @return A list containing the files. + */ + java.util.List + getFilesList(); + /** + *
+   * This stores all the source code file names and can be indexed by the
+   * `file_index`.
+   * 
+ * + * repeated string files = 1; + * @return The count of files. + */ + int getFilesCount(); + /** + *
+   * This stores all the source code file names and can be indexed by the
+   * `file_index`.
+   * 
+ * + * repeated string files = 1; + * @param index The index of the element to return. + * @return The files at the given index. + */ + java.lang.String getFiles(int index); + /** + *
+   * This stores all the source code file names and can be indexed by the
+   * `file_index`.
+   * 
+ * + * repeated string files = 1; + * @param index The index of the value to return. + * @return The bytes of the files at the given index. + */ + com.google.protobuf.ByteString + getFilesBytes(int index); + + /** + *
+   * Stack traces and frames are uniqueified during construction. These maps
+   * index from the unique id for a frame/trace to the value.
+   * 
+ * + * map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4; + */ + int getFramesByIdCount(); + /** + *
+   * Stack traces and frames are uniqueified during construction. These maps
+   * index from the unique id for a frame/trace to the value.
+   * 
+ * + * map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4; + */ + boolean containsFramesById( + long key); + /** + * Use {@link #getFramesByIdMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getFramesById(); + /** + *
+   * Stack traces and frames are uniqueified during construction. These maps
+   * index from the unique id for a frame/trace to the value.
+   * 
+ * + * map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4; + */ + java.util.Map + getFramesByIdMap(); + /** + *
+   * Stack traces and frames are uniqueified during construction. These maps
+   * index from the unique id for a frame/trace to the value.
+   * 
+ * + * map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4; + */ + + /* nullable */ +org.tensorflow.proto.GraphDebugInfo.FileLineCol getFramesByIdOrDefault( + long key, + /* nullable */ +org.tensorflow.proto.GraphDebugInfo.FileLineCol defaultValue); + /** + *
+   * Stack traces and frames are uniqueified during construction. These maps
+   * index from the unique id for a frame/trace to the value.
+   * 
+ * + * map<fixed64, .tensorflow.GraphDebugInfo.FileLineCol> frames_by_id = 4; + */ + + org.tensorflow.proto.GraphDebugInfo.FileLineCol getFramesByIdOrThrow( + long key); + + /** + * map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6; + */ + int getTracesByIdCount(); + /** + * map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6; + */ + boolean containsTracesById( + long key); + /** + * Use {@link #getTracesByIdMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getTracesById(); + /** + * map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6; + */ + java.util.Map + getTracesByIdMap(); + /** + * map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6; + */ + + /* nullable */ +org.tensorflow.proto.GraphDebugInfo.StackTrace getTracesByIdOrDefault( + long key, + /* nullable */ +org.tensorflow.proto.GraphDebugInfo.StackTrace defaultValue); + /** + * map<fixed64, .tensorflow.GraphDebugInfo.StackTrace> traces_by_id = 6; + */ + + org.tensorflow.proto.GraphDebugInfo.StackTrace getTracesByIdOrThrow( + long key); + + /** + *
+   * Deprecated.
+   * 
+ * + * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; + */ + int getTracesCount(); + /** + *
+   * Deprecated.
+   * 
+ * + * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; + */ + boolean containsTraces( + java.lang.String key); + /** + * Use {@link #getTracesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getTraces(); + /** + *
+   * Deprecated.
+   * 
+ * + * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; + */ + java.util.Map + getTracesMap(); + /** + *
+   * Deprecated.
+   * 
+ * + * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; + */ + + /* nullable */ +org.tensorflow.proto.GraphDebugInfo.StackTrace getTracesOrDefault( + java.lang.String key, + /* nullable */ +org.tensorflow.proto.GraphDebugInfo.StackTrace defaultValue); + /** + *
+   * Deprecated.
+   * 
+ * + * map<string, .tensorflow.GraphDebugInfo.StackTrace> traces = 2; + */ + + org.tensorflow.proto.GraphDebugInfo.StackTrace getTracesOrThrow( + java.lang.String key); + + /** + *
+   * This maps a node name to a trace id contained in `traces_by_id`.
+   * The map key is a mangling of the containing function and op name with
+   * syntax:
+   *   op.name '@' func_name
+   * For ops in the top-level graph, the func_name is the empty string and hence
+   * the `@` may be ommitted.
+   * Note that op names are restricted to a small number of characters which
+   * exclude '@', making it impossible to collide keys of this form. Function
+   * names accept a much wider set of characters.
+   * It would be preferable to avoid mangling and use a tuple key of (op.name,
+   * func_name), but this is not supported with protocol buffers.
+   * 
+ * + * map<string, fixed64> name_to_trace_id = 5; + */ + int getNameToTraceIdCount(); + /** + *
+   * This maps a node name to a trace id contained in `traces_by_id`.
+   * The map key is a mangling of the containing function and op name with
+   * syntax:
+   *   op.name '@' func_name
+   * For ops in the top-level graph, the func_name is the empty string and hence
+   * the `@` may be ommitted.
+   * Note that op names are restricted to a small number of characters which
+   * exclude '@', making it impossible to collide keys of this form. Function
+   * names accept a much wider set of characters.
+   * It would be preferable to avoid mangling and use a tuple key of (op.name,
+   * func_name), but this is not supported with protocol buffers.
+   * 
+ * + * map<string, fixed64> name_to_trace_id = 5; + */ + boolean containsNameToTraceId( + java.lang.String key); + /** + * Use {@link #getNameToTraceIdMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getNameToTraceId(); + /** + *
+   * This maps a node name to a trace id contained in `traces_by_id`.
+   * The map key is a mangling of the containing function and op name with
+   * syntax:
+   *   op.name '@' func_name
+   * For ops in the top-level graph, the func_name is the empty string and hence
+   * the `@` may be ommitted.
+   * Note that op names are restricted to a small number of characters which
+   * exclude '@', making it impossible to collide keys of this form. Function
+   * names accept a much wider set of characters.
+   * It would be preferable to avoid mangling and use a tuple key of (op.name,
+   * func_name), but this is not supported with protocol buffers.
+   * 
+ * + * map<string, fixed64> name_to_trace_id = 5; + */ + java.util.Map + getNameToTraceIdMap(); + /** + *
+   * This maps a node name to a trace id contained in `traces_by_id`.
+   * The map key is a mangling of the containing function and op name with
+   * syntax:
+   *   op.name '@' func_name
+   * For ops in the top-level graph, the func_name is the empty string and hence
+   * the `@` may be ommitted.
+   * Note that op names are restricted to a small number of characters which
+   * exclude '@', making it impossible to collide keys of this form. Function
+   * names accept a much wider set of characters.
+   * It would be preferable to avoid mangling and use a tuple key of (op.name,
+   * func_name), but this is not supported with protocol buffers.
+   * 
+ * + * map<string, fixed64> name_to_trace_id = 5; + */ + + long getNameToTraceIdOrDefault( + java.lang.String key, + long defaultValue); + /** + *
+   * This maps a node name to a trace id contained in `traces_by_id`.
+   * The map key is a mangling of the containing function and op name with
+   * syntax:
+   *   op.name '@' func_name
+   * For ops in the top-level graph, the func_name is the empty string and hence
+   * the `@` may be ommitted.
+   * Note that op names are restricted to a small number of characters which
+   * exclude '@', making it impossible to collide keys of this form. Function
+   * names accept a much wider set of characters.
+   * It would be preferable to avoid mangling and use a tuple key of (op.name,
+   * func_name), but this is not supported with protocol buffers.
+   * 
+ * + * map<string, fixed64> name_to_trace_id = 5; + */ + + long getNameToTraceIdOrThrow( + java.lang.String key); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphDebugInfoProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphDebugInfoProtos.java new file mode 100644 index 00000000000..ea8e2709a0f --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphDebugInfoProtos.java @@ -0,0 +1,137 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/graph_debug_info.proto + +package org.tensorflow.proto; + +public final class GraphDebugInfoProtos { + private GraphDebugInfoProtos() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_GraphDebugInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_GraphDebugInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_GraphDebugInfo_FileLineCol_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_GraphDebugInfo_FileLineCol_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_GraphDebugInfo_StackTrace_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_GraphDebugInfo_StackTrace_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_GraphDebugInfo_FramesByIdEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_GraphDebugInfo_FramesByIdEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_GraphDebugInfo_TracesByIdEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_GraphDebugInfo_TracesByIdEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_GraphDebugInfo_TracesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_GraphDebugInfo_TracesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_GraphDebugInfo_NameToTraceIdEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_GraphDebugInfo_NameToTraceIdEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0tensorflow/core/framework/graph_debug_" + + "info.proto\022\ntensorflow\"\243\006\n\016GraphDebugInf" + + "o\022\r\n\005files\030\001 \003(\t\022@\n\014frames_by_id\030\004 \003(\0132*" + + ".tensorflow.GraphDebugInfo.FramesByIdEnt" + + "ry\022@\n\014traces_by_id\030\006 \003(\0132*.tensorflow.Gr" + + "aphDebugInfo.TracesByIdEntry\0226\n\006traces\030\002" + + " \003(\0132&.tensorflow.GraphDebugInfo.TracesE" + + "ntry\022G\n\020name_to_trace_id\030\005 \003(\0132-.tensorf" + + "low.GraphDebugInfo.NameToTraceIdEntry\032X\n" + + "\013FileLineCol\022\022\n\nfile_index\030\001 \001(\005\022\014\n\004line" + + "\030\002 \001(\005\022\013\n\003col\030\003 \001(\005\022\014\n\004func\030\004 \001(\t\022\014\n\004cod" + + "e\030\005 \001(\t\032b\n\nStackTrace\022>\n\016file_line_cols\030" + + "\001 \003(\0132&.tensorflow.GraphDebugInfo.FileLi" + + "neCol\022\024\n\010frame_id\030\002 \003(\006B\002\020\001\032Y\n\017FramesByI" + + "dEntry\022\013\n\003key\030\001 \001(\006\0225\n\005value\030\002 \001(\0132&.ten" + + "sorflow.GraphDebugInfo.FileLineCol:\0028\001\032X" + + "\n\017TracesByIdEntry\022\013\n\003key\030\001 \001(\006\0224\n\005value\030" + + "\002 \001(\0132%.tensorflow.GraphDebugInfo.StackT" + + "race:\0028\001\032T\n\013TracesEntry\022\013\n\003key\030\001 \001(\t\0224\n\005" + + "value\030\002 \001(\0132%.tensorflow.GraphDebugInfo." + + "StackTrace:\0028\001\0324\n\022NameToTraceIdEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\006:\0028\001B\210\001\n\024org.ten" + + "sorflow.protoB\024GraphDebugInfoProtosP\001ZUg" + + "ithub.com/tensorflow/tensorflow/tensorfl" + + "ow/go/core/protobuf/for_core_protos_go_p" + + "roto\370\001\001" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_tensorflow_GraphDebugInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_GraphDebugInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_GraphDebugInfo_descriptor, + new java.lang.String[] { "Files", "FramesById", "TracesById", "Traces", "NameToTraceId", }); + internal_static_tensorflow_GraphDebugInfo_FileLineCol_descriptor = + internal_static_tensorflow_GraphDebugInfo_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_GraphDebugInfo_FileLineCol_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_GraphDebugInfo_FileLineCol_descriptor, + new java.lang.String[] { "FileIndex", "Line", "Col", "Func", "Code", }); + internal_static_tensorflow_GraphDebugInfo_StackTrace_descriptor = + internal_static_tensorflow_GraphDebugInfo_descriptor.getNestedTypes().get(1); + internal_static_tensorflow_GraphDebugInfo_StackTrace_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_GraphDebugInfo_StackTrace_descriptor, + new java.lang.String[] { "FileLineCols", "FrameId", }); + internal_static_tensorflow_GraphDebugInfo_FramesByIdEntry_descriptor = + internal_static_tensorflow_GraphDebugInfo_descriptor.getNestedTypes().get(2); + internal_static_tensorflow_GraphDebugInfo_FramesByIdEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_GraphDebugInfo_FramesByIdEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_tensorflow_GraphDebugInfo_TracesByIdEntry_descriptor = + internal_static_tensorflow_GraphDebugInfo_descriptor.getNestedTypes().get(3); + internal_static_tensorflow_GraphDebugInfo_TracesByIdEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_GraphDebugInfo_TracesByIdEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_tensorflow_GraphDebugInfo_TracesEntry_descriptor = + internal_static_tensorflow_GraphDebugInfo_descriptor.getNestedTypes().get(4); + internal_static_tensorflow_GraphDebugInfo_TracesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_GraphDebugInfo_TracesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_tensorflow_GraphDebugInfo_NameToTraceIdEntry_descriptor = + internal_static_tensorflow_GraphDebugInfo_descriptor.getNestedTypes().get(5); + internal_static_tensorflow_GraphDebugInfo_NameToTraceIdEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_GraphDebugInfo_NameToTraceIdEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphDef.java new file mode 100644 index 00000000000..d19e4a5479b --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphDef.java @@ -0,0 +1,1810 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/graph.proto + +package org.tensorflow.proto; + +/** + *
+ * Represents the graph of operations
+ * 
+ * + * Protobuf type {@code tensorflow.GraphDef} + */ +public final class GraphDef extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.GraphDef) + GraphDefOrBuilder { +private static final long serialVersionUID = 0L; + // Use GraphDef.newBuilder() to construct. + private GraphDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GraphDef() { + node_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GraphDef(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.GraphProtos.internal_static_tensorflow_GraphDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.GraphProtos.internal_static_tensorflow_GraphDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.GraphDef.class, org.tensorflow.proto.GraphDef.Builder.class); + } + + public static final int NODE_FIELD_NUMBER = 1; + private java.util.List node_; + /** + * repeated .tensorflow.NodeDef node = 1; + */ + @java.lang.Override + public java.util.List getNodeList() { + return node_; + } + /** + * repeated .tensorflow.NodeDef node = 1; + */ + @java.lang.Override + public java.util.List + getNodeOrBuilderList() { + return node_; + } + /** + * repeated .tensorflow.NodeDef node = 1; + */ + @java.lang.Override + public int getNodeCount() { + return node_.size(); + } + /** + * repeated .tensorflow.NodeDef node = 1; + */ + @java.lang.Override + public org.tensorflow.proto.NodeDef getNode(int index) { + return node_.get(index); + } + /** + * repeated .tensorflow.NodeDef node = 1; + */ + @java.lang.Override + public org.tensorflow.proto.NodeDefOrBuilder getNodeOrBuilder( + int index) { + return node_.get(index); + } + + public static final int VERSIONS_FIELD_NUMBER = 4; + private org.tensorflow.proto.VersionDef versions_; + /** + *
+   * Compatibility versions of the graph.  See core/public/version.h for version
+   * history.  The GraphDef version is distinct from the TensorFlow version, and
+   * each release of TensorFlow will support a range of GraphDef versions.
+   * 
+ * + * .tensorflow.VersionDef versions = 4; + * @return Whether the versions field is set. + */ + @java.lang.Override + public boolean hasVersions() { + return versions_ != null; + } + /** + *
+   * Compatibility versions of the graph.  See core/public/version.h for version
+   * history.  The GraphDef version is distinct from the TensorFlow version, and
+   * each release of TensorFlow will support a range of GraphDef versions.
+   * 
+ * + * .tensorflow.VersionDef versions = 4; + * @return The versions. + */ + @java.lang.Override + public org.tensorflow.proto.VersionDef getVersions() { + return versions_ == null ? org.tensorflow.proto.VersionDef.getDefaultInstance() : versions_; + } + /** + *
+   * Compatibility versions of the graph.  See core/public/version.h for version
+   * history.  The GraphDef version is distinct from the TensorFlow version, and
+   * each release of TensorFlow will support a range of GraphDef versions.
+   * 
+ * + * .tensorflow.VersionDef versions = 4; + */ + @java.lang.Override + public org.tensorflow.proto.VersionDefOrBuilder getVersionsOrBuilder() { + return getVersions(); + } + + public static final int VERSION_FIELD_NUMBER = 3; + private int version_; + /** + *
+   * Deprecated single version field; use versions above instead.  Since all
+   * GraphDef changes before "versions" was introduced were forward
+   * compatible, this field is entirely ignored.
+   * 
+ * + * int32 version = 3 [deprecated = true]; + * @deprecated tensorflow.GraphDef.version is deprecated. + * See tensorflow/core/framework/graph.proto;l=26 + * @return The version. + */ + @java.lang.Override + @java.lang.Deprecated public int getVersion() { + return version_; + } + + public static final int LIBRARY_FIELD_NUMBER = 2; + private org.tensorflow.proto.FunctionDefLibrary library_; + /** + *
+   * "library" provides user-defined functions.
+   * Naming:
+   *   * library.function.name are in a flat namespace.
+   *     NOTE: We may need to change it to be hierarchical to support
+   *     different orgs. E.g.,
+   *     { "/google/nn", { ... }},
+   *     { "/google/vision", { ... }}
+   *     { "/org_foo/module_bar", { ... }}
+   *     map<string, FunctionDefLib> named_lib;
+   *   * If node[i].op is the name of one function in "library",
+   *     node[i] is deemed as a function call. Otherwise, node[i].op
+   *     must be a primitive operation supported by the runtime.
+   * Function call semantics:
+   *   * The callee may start execution as soon as some of its inputs
+   *     are ready. The caller may want to use Tuple() mechanism to
+   *     ensure all inputs are ready in the same time.
+   *   * The consumer of return values may start executing as soon as
+   *     the return values the consumer depends on are ready.  The
+   *     consumer may want to use Tuple() mechanism to ensure the
+   *     consumer does not start until all return values of the callee
+   *     function are ready.
+   * 
+ * + * .tensorflow.FunctionDefLibrary library = 2; + * @return Whether the library field is set. + */ + @java.lang.Override + public boolean hasLibrary() { + return library_ != null; + } + /** + *
+   * "library" provides user-defined functions.
+   * Naming:
+   *   * library.function.name are in a flat namespace.
+   *     NOTE: We may need to change it to be hierarchical to support
+   *     different orgs. E.g.,
+   *     { "/google/nn", { ... }},
+   *     { "/google/vision", { ... }}
+   *     { "/org_foo/module_bar", { ... }}
+   *     map<string, FunctionDefLib> named_lib;
+   *   * If node[i].op is the name of one function in "library",
+   *     node[i] is deemed as a function call. Otherwise, node[i].op
+   *     must be a primitive operation supported by the runtime.
+   * Function call semantics:
+   *   * The callee may start execution as soon as some of its inputs
+   *     are ready. The caller may want to use Tuple() mechanism to
+   *     ensure all inputs are ready in the same time.
+   *   * The consumer of return values may start executing as soon as
+   *     the return values the consumer depends on are ready.  The
+   *     consumer may want to use Tuple() mechanism to ensure the
+   *     consumer does not start until all return values of the callee
+   *     function are ready.
+   * 
+ * + * .tensorflow.FunctionDefLibrary library = 2; + * @return The library. + */ + @java.lang.Override + public org.tensorflow.proto.FunctionDefLibrary getLibrary() { + return library_ == null ? org.tensorflow.proto.FunctionDefLibrary.getDefaultInstance() : library_; + } + /** + *
+   * "library" provides user-defined functions.
+   * Naming:
+   *   * library.function.name are in a flat namespace.
+   *     NOTE: We may need to change it to be hierarchical to support
+   *     different orgs. E.g.,
+   *     { "/google/nn", { ... }},
+   *     { "/google/vision", { ... }}
+   *     { "/org_foo/module_bar", { ... }}
+   *     map<string, FunctionDefLib> named_lib;
+   *   * If node[i].op is the name of one function in "library",
+   *     node[i] is deemed as a function call. Otherwise, node[i].op
+   *     must be a primitive operation supported by the runtime.
+   * Function call semantics:
+   *   * The callee may start execution as soon as some of its inputs
+   *     are ready. The caller may want to use Tuple() mechanism to
+   *     ensure all inputs are ready in the same time.
+   *   * The consumer of return values may start executing as soon as
+   *     the return values the consumer depends on are ready.  The
+   *     consumer may want to use Tuple() mechanism to ensure the
+   *     consumer does not start until all return values of the callee
+   *     function are ready.
+   * 
+ * + * .tensorflow.FunctionDefLibrary library = 2; + */ + @java.lang.Override + public org.tensorflow.proto.FunctionDefLibraryOrBuilder getLibraryOrBuilder() { + return getLibrary(); + } + + public static final int DEBUG_INFO_FIELD_NUMBER = 5; + private org.tensorflow.proto.GraphDebugInfo debugInfo_; + /** + *
+   * Stack traces for the nodes in this graph.
+   * 
+ * + * .tensorflow.GraphDebugInfo debug_info = 5; + * @return Whether the debugInfo field is set. + */ + @java.lang.Override + public boolean hasDebugInfo() { + return debugInfo_ != null; + } + /** + *
+   * Stack traces for the nodes in this graph.
+   * 
+ * + * .tensorflow.GraphDebugInfo debug_info = 5; + * @return The debugInfo. + */ + @java.lang.Override + public org.tensorflow.proto.GraphDebugInfo getDebugInfo() { + return debugInfo_ == null ? org.tensorflow.proto.GraphDebugInfo.getDefaultInstance() : debugInfo_; + } + /** + *
+   * Stack traces for the nodes in this graph.
+   * 
+ * + * .tensorflow.GraphDebugInfo debug_info = 5; + */ + @java.lang.Override + public org.tensorflow.proto.GraphDebugInfoOrBuilder getDebugInfoOrBuilder() { + return getDebugInfo(); + } + + 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 < node_.size(); i++) { + output.writeMessage(1, node_.get(i)); + } + if (library_ != null) { + output.writeMessage(2, getLibrary()); + } + if (version_ != 0) { + output.writeInt32(3, version_); + } + if (versions_ != null) { + output.writeMessage(4, getVersions()); + } + if (debugInfo_ != null) { + output.writeMessage(5, getDebugInfo()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < node_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, node_.get(i)); + } + if (library_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLibrary()); + } + if (version_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, version_); + } + if (versions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getVersions()); + } + if (debugInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getDebugInfo()); + } + 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 org.tensorflow.proto.GraphDef)) { + return super.equals(obj); + } + org.tensorflow.proto.GraphDef other = (org.tensorflow.proto.GraphDef) obj; + + if (!getNodeList() + .equals(other.getNodeList())) return false; + if (hasVersions() != other.hasVersions()) return false; + if (hasVersions()) { + if (!getVersions() + .equals(other.getVersions())) return false; + } + if (getVersion() + != other.getVersion()) return false; + if (hasLibrary() != other.hasLibrary()) return false; + if (hasLibrary()) { + if (!getLibrary() + .equals(other.getLibrary())) return false; + } + if (hasDebugInfo() != other.hasDebugInfo()) return false; + if (hasDebugInfo()) { + if (!getDebugInfo() + .equals(other.getDebugInfo())) 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 (getNodeCount() > 0) { + hash = (37 * hash) + NODE_FIELD_NUMBER; + hash = (53 * hash) + getNodeList().hashCode(); + } + if (hasVersions()) { + hash = (37 * hash) + VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getVersions().hashCode(); + } + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion(); + if (hasLibrary()) { + hash = (37 * hash) + LIBRARY_FIELD_NUMBER; + hash = (53 * hash) + getLibrary().hashCode(); + } + if (hasDebugInfo()) { + hash = (37 * hash) + DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getDebugInfo().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.GraphDef parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphDef parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphDef parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphDef parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphDef parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphDef parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphDef parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphDef 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 org.tensorflow.proto.GraphDef parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphDef 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 org.tensorflow.proto.GraphDef parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphDef 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(org.tensorflow.proto.GraphDef 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; + } + /** + *
+   * Represents the graph of operations
+   * 
+ * + * Protobuf type {@code tensorflow.GraphDef} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.GraphDef) + org.tensorflow.proto.GraphDefOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.GraphProtos.internal_static_tensorflow_GraphDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.GraphProtos.internal_static_tensorflow_GraphDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.GraphDef.class, org.tensorflow.proto.GraphDef.Builder.class); + } + + // Construct using org.tensorflow.proto.GraphDef.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (nodeBuilder_ == null) { + node_ = java.util.Collections.emptyList(); + } else { + node_ = null; + nodeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (versionsBuilder_ == null) { + versions_ = null; + } else { + versions_ = null; + versionsBuilder_ = null; + } + version_ = 0; + + if (libraryBuilder_ == null) { + library_ = null; + } else { + library_ = null; + libraryBuilder_ = null; + } + if (debugInfoBuilder_ == null) { + debugInfo_ = null; + } else { + debugInfo_ = null; + debugInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.GraphProtos.internal_static_tensorflow_GraphDef_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.GraphDef getDefaultInstanceForType() { + return org.tensorflow.proto.GraphDef.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.GraphDef build() { + org.tensorflow.proto.GraphDef result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.GraphDef buildPartial() { + org.tensorflow.proto.GraphDef result = new org.tensorflow.proto.GraphDef(this); + int from_bitField0_ = bitField0_; + if (nodeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + node_ = java.util.Collections.unmodifiableList(node_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.node_ = node_; + } else { + result.node_ = nodeBuilder_.build(); + } + if (versionsBuilder_ == null) { + result.versions_ = versions_; + } else { + result.versions_ = versionsBuilder_.build(); + } + result.version_ = version_; + if (libraryBuilder_ == null) { + result.library_ = library_; + } else { + result.library_ = libraryBuilder_.build(); + } + if (debugInfoBuilder_ == null) { + result.debugInfo_ = debugInfo_; + } else { + result.debugInfo_ = debugInfoBuilder_.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 org.tensorflow.proto.GraphDef) { + return mergeFrom((org.tensorflow.proto.GraphDef)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.GraphDef other) { + if (other == org.tensorflow.proto.GraphDef.getDefaultInstance()) return this; + if (nodeBuilder_ == null) { + if (!other.node_.isEmpty()) { + if (node_.isEmpty()) { + node_ = other.node_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodeIsMutable(); + node_.addAll(other.node_); + } + onChanged(); + } + } else { + if (!other.node_.isEmpty()) { + if (nodeBuilder_.isEmpty()) { + nodeBuilder_.dispose(); + nodeBuilder_ = null; + node_ = other.node_; + bitField0_ = (bitField0_ & ~0x00000001); + nodeBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodeFieldBuilder() : null; + } else { + nodeBuilder_.addAllMessages(other.node_); + } + } + } + if (other.hasVersions()) { + mergeVersions(other.getVersions()); + } + if (other.getVersion() != 0) { + setVersion(other.getVersion()); + } + if (other.hasLibrary()) { + mergeLibrary(other.getLibrary()); + } + if (other.hasDebugInfo()) { + mergeDebugInfo(other.getDebugInfo()); + } + 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: { + org.tensorflow.proto.NodeDef m = + input.readMessage( + org.tensorflow.proto.NodeDef.parser(), + extensionRegistry); + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.add(m); + } else { + nodeBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + input.readMessage( + getLibraryFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 24: { + version_ = input.readInt32(); + + break; + } // case 24 + case 34: { + input.readMessage( + getVersionsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + input.readMessage( + getDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List node_ = + java.util.Collections.emptyList(); + private void ensureNodeIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + node_ = new java.util.ArrayList(node_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.NodeDef, org.tensorflow.proto.NodeDef.Builder, org.tensorflow.proto.NodeDefOrBuilder> nodeBuilder_; + + /** + * repeated .tensorflow.NodeDef node = 1; + */ + public java.util.List getNodeList() { + if (nodeBuilder_ == null) { + return java.util.Collections.unmodifiableList(node_); + } else { + return nodeBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.NodeDef node = 1; + */ + public int getNodeCount() { + if (nodeBuilder_ == null) { + return node_.size(); + } else { + return nodeBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.NodeDef node = 1; + */ + public org.tensorflow.proto.NodeDef getNode(int index) { + if (nodeBuilder_ == null) { + return node_.get(index); + } else { + return nodeBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.NodeDef node = 1; + */ + public Builder setNode( + int index, org.tensorflow.proto.NodeDef value) { + if (nodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeIsMutable(); + node_.set(index, value); + onChanged(); + } else { + nodeBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.NodeDef node = 1; + */ + public Builder setNode( + int index, org.tensorflow.proto.NodeDef.Builder builderForValue) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.set(index, builderForValue.build()); + onChanged(); + } else { + nodeBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.NodeDef node = 1; + */ + public Builder addNode(org.tensorflow.proto.NodeDef value) { + if (nodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeIsMutable(); + node_.add(value); + onChanged(); + } else { + nodeBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.NodeDef node = 1; + */ + public Builder addNode( + int index, org.tensorflow.proto.NodeDef value) { + if (nodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeIsMutable(); + node_.add(index, value); + onChanged(); + } else { + nodeBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.NodeDef node = 1; + */ + public Builder addNode( + org.tensorflow.proto.NodeDef.Builder builderForValue) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.add(builderForValue.build()); + onChanged(); + } else { + nodeBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.NodeDef node = 1; + */ + public Builder addNode( + int index, org.tensorflow.proto.NodeDef.Builder builderForValue) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.add(index, builderForValue.build()); + onChanged(); + } else { + nodeBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.NodeDef node = 1; + */ + public Builder addAllNode( + java.lang.Iterable values) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, node_); + onChanged(); + } else { + nodeBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.NodeDef node = 1; + */ + public Builder clearNode() { + if (nodeBuilder_ == null) { + node_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodeBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.NodeDef node = 1; + */ + public Builder removeNode(int index) { + if (nodeBuilder_ == null) { + ensureNodeIsMutable(); + node_.remove(index); + onChanged(); + } else { + nodeBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.NodeDef node = 1; + */ + public org.tensorflow.proto.NodeDef.Builder getNodeBuilder( + int index) { + return getNodeFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.NodeDef node = 1; + */ + public org.tensorflow.proto.NodeDefOrBuilder getNodeOrBuilder( + int index) { + if (nodeBuilder_ == null) { + return node_.get(index); } else { + return nodeBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.NodeDef node = 1; + */ + public java.util.List + getNodeOrBuilderList() { + if (nodeBuilder_ != null) { + return nodeBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(node_); + } + } + /** + * repeated .tensorflow.NodeDef node = 1; + */ + public org.tensorflow.proto.NodeDef.Builder addNodeBuilder() { + return getNodeFieldBuilder().addBuilder( + org.tensorflow.proto.NodeDef.getDefaultInstance()); + } + /** + * repeated .tensorflow.NodeDef node = 1; + */ + public org.tensorflow.proto.NodeDef.Builder addNodeBuilder( + int index) { + return getNodeFieldBuilder().addBuilder( + index, org.tensorflow.proto.NodeDef.getDefaultInstance()); + } + /** + * repeated .tensorflow.NodeDef node = 1; + */ + public java.util.List + getNodeBuilderList() { + return getNodeFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.NodeDef, org.tensorflow.proto.NodeDef.Builder, org.tensorflow.proto.NodeDefOrBuilder> + getNodeFieldBuilder() { + if (nodeBuilder_ == null) { + nodeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.NodeDef, org.tensorflow.proto.NodeDef.Builder, org.tensorflow.proto.NodeDefOrBuilder>( + node_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + node_ = null; + } + return nodeBuilder_; + } + + private org.tensorflow.proto.VersionDef versions_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VersionDef, org.tensorflow.proto.VersionDef.Builder, org.tensorflow.proto.VersionDefOrBuilder> versionsBuilder_; + /** + *
+     * Compatibility versions of the graph.  See core/public/version.h for version
+     * history.  The GraphDef version is distinct from the TensorFlow version, and
+     * each release of TensorFlow will support a range of GraphDef versions.
+     * 
+ * + * .tensorflow.VersionDef versions = 4; + * @return Whether the versions field is set. + */ + public boolean hasVersions() { + return versionsBuilder_ != null || versions_ != null; + } + /** + *
+     * Compatibility versions of the graph.  See core/public/version.h for version
+     * history.  The GraphDef version is distinct from the TensorFlow version, and
+     * each release of TensorFlow will support a range of GraphDef versions.
+     * 
+ * + * .tensorflow.VersionDef versions = 4; + * @return The versions. + */ + public org.tensorflow.proto.VersionDef getVersions() { + if (versionsBuilder_ == null) { + return versions_ == null ? org.tensorflow.proto.VersionDef.getDefaultInstance() : versions_; + } else { + return versionsBuilder_.getMessage(); + } + } + /** + *
+     * Compatibility versions of the graph.  See core/public/version.h for version
+     * history.  The GraphDef version is distinct from the TensorFlow version, and
+     * each release of TensorFlow will support a range of GraphDef versions.
+     * 
+ * + * .tensorflow.VersionDef versions = 4; + */ + public Builder setVersions(org.tensorflow.proto.VersionDef value) { + if (versionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + versions_ = value; + onChanged(); + } else { + versionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Compatibility versions of the graph.  See core/public/version.h for version
+     * history.  The GraphDef version is distinct from the TensorFlow version, and
+     * each release of TensorFlow will support a range of GraphDef versions.
+     * 
+ * + * .tensorflow.VersionDef versions = 4; + */ + public Builder setVersions( + org.tensorflow.proto.VersionDef.Builder builderForValue) { + if (versionsBuilder_ == null) { + versions_ = builderForValue.build(); + onChanged(); + } else { + versionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Compatibility versions of the graph.  See core/public/version.h for version
+     * history.  The GraphDef version is distinct from the TensorFlow version, and
+     * each release of TensorFlow will support a range of GraphDef versions.
+     * 
+ * + * .tensorflow.VersionDef versions = 4; + */ + public Builder mergeVersions(org.tensorflow.proto.VersionDef value) { + if (versionsBuilder_ == null) { + if (versions_ != null) { + versions_ = + org.tensorflow.proto.VersionDef.newBuilder(versions_).mergeFrom(value).buildPartial(); + } else { + versions_ = value; + } + onChanged(); + } else { + versionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Compatibility versions of the graph.  See core/public/version.h for version
+     * history.  The GraphDef version is distinct from the TensorFlow version, and
+     * each release of TensorFlow will support a range of GraphDef versions.
+     * 
+ * + * .tensorflow.VersionDef versions = 4; + */ + public Builder clearVersions() { + if (versionsBuilder_ == null) { + versions_ = null; + onChanged(); + } else { + versions_ = null; + versionsBuilder_ = null; + } + + return this; + } + /** + *
+     * Compatibility versions of the graph.  See core/public/version.h for version
+     * history.  The GraphDef version is distinct from the TensorFlow version, and
+     * each release of TensorFlow will support a range of GraphDef versions.
+     * 
+ * + * .tensorflow.VersionDef versions = 4; + */ + public org.tensorflow.proto.VersionDef.Builder getVersionsBuilder() { + + onChanged(); + return getVersionsFieldBuilder().getBuilder(); + } + /** + *
+     * Compatibility versions of the graph.  See core/public/version.h for version
+     * history.  The GraphDef version is distinct from the TensorFlow version, and
+     * each release of TensorFlow will support a range of GraphDef versions.
+     * 
+ * + * .tensorflow.VersionDef versions = 4; + */ + public org.tensorflow.proto.VersionDefOrBuilder getVersionsOrBuilder() { + if (versionsBuilder_ != null) { + return versionsBuilder_.getMessageOrBuilder(); + } else { + return versions_ == null ? + org.tensorflow.proto.VersionDef.getDefaultInstance() : versions_; + } + } + /** + *
+     * Compatibility versions of the graph.  See core/public/version.h for version
+     * history.  The GraphDef version is distinct from the TensorFlow version, and
+     * each release of TensorFlow will support a range of GraphDef versions.
+     * 
+ * + * .tensorflow.VersionDef versions = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VersionDef, org.tensorflow.proto.VersionDef.Builder, org.tensorflow.proto.VersionDefOrBuilder> + getVersionsFieldBuilder() { + if (versionsBuilder_ == null) { + versionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VersionDef, org.tensorflow.proto.VersionDef.Builder, org.tensorflow.proto.VersionDefOrBuilder>( + getVersions(), + getParentForChildren(), + isClean()); + versions_ = null; + } + return versionsBuilder_; + } + + private int version_ ; + /** + *
+     * Deprecated single version field; use versions above instead.  Since all
+     * GraphDef changes before "versions" was introduced were forward
+     * compatible, this field is entirely ignored.
+     * 
+ * + * int32 version = 3 [deprecated = true]; + * @deprecated tensorflow.GraphDef.version is deprecated. + * See tensorflow/core/framework/graph.proto;l=26 + * @return The version. + */ + @java.lang.Override + @java.lang.Deprecated public int getVersion() { + return version_; + } + /** + *
+     * Deprecated single version field; use versions above instead.  Since all
+     * GraphDef changes before "versions" was introduced were forward
+     * compatible, this field is entirely ignored.
+     * 
+ * + * int32 version = 3 [deprecated = true]; + * @deprecated tensorflow.GraphDef.version is deprecated. + * See tensorflow/core/framework/graph.proto;l=26 + * @param value The version to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setVersion(int value) { + + version_ = value; + onChanged(); + return this; + } + /** + *
+     * Deprecated single version field; use versions above instead.  Since all
+     * GraphDef changes before "versions" was introduced were forward
+     * compatible, this field is entirely ignored.
+     * 
+ * + * int32 version = 3 [deprecated = true]; + * @deprecated tensorflow.GraphDef.version is deprecated. + * See tensorflow/core/framework/graph.proto;l=26 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearVersion() { + + version_ = 0; + onChanged(); + return this; + } + + private org.tensorflow.proto.FunctionDefLibrary library_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.FunctionDefLibrary, org.tensorflow.proto.FunctionDefLibrary.Builder, org.tensorflow.proto.FunctionDefLibraryOrBuilder> libraryBuilder_; + /** + *
+     * "library" provides user-defined functions.
+     * Naming:
+     *   * library.function.name are in a flat namespace.
+     *     NOTE: We may need to change it to be hierarchical to support
+     *     different orgs. E.g.,
+     *     { "/google/nn", { ... }},
+     *     { "/google/vision", { ... }}
+     *     { "/org_foo/module_bar", { ... }}
+     *     map<string, FunctionDefLib> named_lib;
+     *   * If node[i].op is the name of one function in "library",
+     *     node[i] is deemed as a function call. Otherwise, node[i].op
+     *     must be a primitive operation supported by the runtime.
+     * Function call semantics:
+     *   * The callee may start execution as soon as some of its inputs
+     *     are ready. The caller may want to use Tuple() mechanism to
+     *     ensure all inputs are ready in the same time.
+     *   * The consumer of return values may start executing as soon as
+     *     the return values the consumer depends on are ready.  The
+     *     consumer may want to use Tuple() mechanism to ensure the
+     *     consumer does not start until all return values of the callee
+     *     function are ready.
+     * 
+ * + * .tensorflow.FunctionDefLibrary library = 2; + * @return Whether the library field is set. + */ + public boolean hasLibrary() { + return libraryBuilder_ != null || library_ != null; + } + /** + *
+     * "library" provides user-defined functions.
+     * Naming:
+     *   * library.function.name are in a flat namespace.
+     *     NOTE: We may need to change it to be hierarchical to support
+     *     different orgs. E.g.,
+     *     { "/google/nn", { ... }},
+     *     { "/google/vision", { ... }}
+     *     { "/org_foo/module_bar", { ... }}
+     *     map<string, FunctionDefLib> named_lib;
+     *   * If node[i].op is the name of one function in "library",
+     *     node[i] is deemed as a function call. Otherwise, node[i].op
+     *     must be a primitive operation supported by the runtime.
+     * Function call semantics:
+     *   * The callee may start execution as soon as some of its inputs
+     *     are ready. The caller may want to use Tuple() mechanism to
+     *     ensure all inputs are ready in the same time.
+     *   * The consumer of return values may start executing as soon as
+     *     the return values the consumer depends on are ready.  The
+     *     consumer may want to use Tuple() mechanism to ensure the
+     *     consumer does not start until all return values of the callee
+     *     function are ready.
+     * 
+ * + * .tensorflow.FunctionDefLibrary library = 2; + * @return The library. + */ + public org.tensorflow.proto.FunctionDefLibrary getLibrary() { + if (libraryBuilder_ == null) { + return library_ == null ? org.tensorflow.proto.FunctionDefLibrary.getDefaultInstance() : library_; + } else { + return libraryBuilder_.getMessage(); + } + } + /** + *
+     * "library" provides user-defined functions.
+     * Naming:
+     *   * library.function.name are in a flat namespace.
+     *     NOTE: We may need to change it to be hierarchical to support
+     *     different orgs. E.g.,
+     *     { "/google/nn", { ... }},
+     *     { "/google/vision", { ... }}
+     *     { "/org_foo/module_bar", { ... }}
+     *     map<string, FunctionDefLib> named_lib;
+     *   * If node[i].op is the name of one function in "library",
+     *     node[i] is deemed as a function call. Otherwise, node[i].op
+     *     must be a primitive operation supported by the runtime.
+     * Function call semantics:
+     *   * The callee may start execution as soon as some of its inputs
+     *     are ready. The caller may want to use Tuple() mechanism to
+     *     ensure all inputs are ready in the same time.
+     *   * The consumer of return values may start executing as soon as
+     *     the return values the consumer depends on are ready.  The
+     *     consumer may want to use Tuple() mechanism to ensure the
+     *     consumer does not start until all return values of the callee
+     *     function are ready.
+     * 
+ * + * .tensorflow.FunctionDefLibrary library = 2; + */ + public Builder setLibrary(org.tensorflow.proto.FunctionDefLibrary value) { + if (libraryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + library_ = value; + onChanged(); + } else { + libraryBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * "library" provides user-defined functions.
+     * Naming:
+     *   * library.function.name are in a flat namespace.
+     *     NOTE: We may need to change it to be hierarchical to support
+     *     different orgs. E.g.,
+     *     { "/google/nn", { ... }},
+     *     { "/google/vision", { ... }}
+     *     { "/org_foo/module_bar", { ... }}
+     *     map<string, FunctionDefLib> named_lib;
+     *   * If node[i].op is the name of one function in "library",
+     *     node[i] is deemed as a function call. Otherwise, node[i].op
+     *     must be a primitive operation supported by the runtime.
+     * Function call semantics:
+     *   * The callee may start execution as soon as some of its inputs
+     *     are ready. The caller may want to use Tuple() mechanism to
+     *     ensure all inputs are ready in the same time.
+     *   * The consumer of return values may start executing as soon as
+     *     the return values the consumer depends on are ready.  The
+     *     consumer may want to use Tuple() mechanism to ensure the
+     *     consumer does not start until all return values of the callee
+     *     function are ready.
+     * 
+ * + * .tensorflow.FunctionDefLibrary library = 2; + */ + public Builder setLibrary( + org.tensorflow.proto.FunctionDefLibrary.Builder builderForValue) { + if (libraryBuilder_ == null) { + library_ = builderForValue.build(); + onChanged(); + } else { + libraryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * "library" provides user-defined functions.
+     * Naming:
+     *   * library.function.name are in a flat namespace.
+     *     NOTE: We may need to change it to be hierarchical to support
+     *     different orgs. E.g.,
+     *     { "/google/nn", { ... }},
+     *     { "/google/vision", { ... }}
+     *     { "/org_foo/module_bar", { ... }}
+     *     map<string, FunctionDefLib> named_lib;
+     *   * If node[i].op is the name of one function in "library",
+     *     node[i] is deemed as a function call. Otherwise, node[i].op
+     *     must be a primitive operation supported by the runtime.
+     * Function call semantics:
+     *   * The callee may start execution as soon as some of its inputs
+     *     are ready. The caller may want to use Tuple() mechanism to
+     *     ensure all inputs are ready in the same time.
+     *   * The consumer of return values may start executing as soon as
+     *     the return values the consumer depends on are ready.  The
+     *     consumer may want to use Tuple() mechanism to ensure the
+     *     consumer does not start until all return values of the callee
+     *     function are ready.
+     * 
+ * + * .tensorflow.FunctionDefLibrary library = 2; + */ + public Builder mergeLibrary(org.tensorflow.proto.FunctionDefLibrary value) { + if (libraryBuilder_ == null) { + if (library_ != null) { + library_ = + org.tensorflow.proto.FunctionDefLibrary.newBuilder(library_).mergeFrom(value).buildPartial(); + } else { + library_ = value; + } + onChanged(); + } else { + libraryBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * "library" provides user-defined functions.
+     * Naming:
+     *   * library.function.name are in a flat namespace.
+     *     NOTE: We may need to change it to be hierarchical to support
+     *     different orgs. E.g.,
+     *     { "/google/nn", { ... }},
+     *     { "/google/vision", { ... }}
+     *     { "/org_foo/module_bar", { ... }}
+     *     map<string, FunctionDefLib> named_lib;
+     *   * If node[i].op is the name of one function in "library",
+     *     node[i] is deemed as a function call. Otherwise, node[i].op
+     *     must be a primitive operation supported by the runtime.
+     * Function call semantics:
+     *   * The callee may start execution as soon as some of its inputs
+     *     are ready. The caller may want to use Tuple() mechanism to
+     *     ensure all inputs are ready in the same time.
+     *   * The consumer of return values may start executing as soon as
+     *     the return values the consumer depends on are ready.  The
+     *     consumer may want to use Tuple() mechanism to ensure the
+     *     consumer does not start until all return values of the callee
+     *     function are ready.
+     * 
+ * + * .tensorflow.FunctionDefLibrary library = 2; + */ + public Builder clearLibrary() { + if (libraryBuilder_ == null) { + library_ = null; + onChanged(); + } else { + library_ = null; + libraryBuilder_ = null; + } + + return this; + } + /** + *
+     * "library" provides user-defined functions.
+     * Naming:
+     *   * library.function.name are in a flat namespace.
+     *     NOTE: We may need to change it to be hierarchical to support
+     *     different orgs. E.g.,
+     *     { "/google/nn", { ... }},
+     *     { "/google/vision", { ... }}
+     *     { "/org_foo/module_bar", { ... }}
+     *     map<string, FunctionDefLib> named_lib;
+     *   * If node[i].op is the name of one function in "library",
+     *     node[i] is deemed as a function call. Otherwise, node[i].op
+     *     must be a primitive operation supported by the runtime.
+     * Function call semantics:
+     *   * The callee may start execution as soon as some of its inputs
+     *     are ready. The caller may want to use Tuple() mechanism to
+     *     ensure all inputs are ready in the same time.
+     *   * The consumer of return values may start executing as soon as
+     *     the return values the consumer depends on are ready.  The
+     *     consumer may want to use Tuple() mechanism to ensure the
+     *     consumer does not start until all return values of the callee
+     *     function are ready.
+     * 
+ * + * .tensorflow.FunctionDefLibrary library = 2; + */ + public org.tensorflow.proto.FunctionDefLibrary.Builder getLibraryBuilder() { + + onChanged(); + return getLibraryFieldBuilder().getBuilder(); + } + /** + *
+     * "library" provides user-defined functions.
+     * Naming:
+     *   * library.function.name are in a flat namespace.
+     *     NOTE: We may need to change it to be hierarchical to support
+     *     different orgs. E.g.,
+     *     { "/google/nn", { ... }},
+     *     { "/google/vision", { ... }}
+     *     { "/org_foo/module_bar", { ... }}
+     *     map<string, FunctionDefLib> named_lib;
+     *   * If node[i].op is the name of one function in "library",
+     *     node[i] is deemed as a function call. Otherwise, node[i].op
+     *     must be a primitive operation supported by the runtime.
+     * Function call semantics:
+     *   * The callee may start execution as soon as some of its inputs
+     *     are ready. The caller may want to use Tuple() mechanism to
+     *     ensure all inputs are ready in the same time.
+     *   * The consumer of return values may start executing as soon as
+     *     the return values the consumer depends on are ready.  The
+     *     consumer may want to use Tuple() mechanism to ensure the
+     *     consumer does not start until all return values of the callee
+     *     function are ready.
+     * 
+ * + * .tensorflow.FunctionDefLibrary library = 2; + */ + public org.tensorflow.proto.FunctionDefLibraryOrBuilder getLibraryOrBuilder() { + if (libraryBuilder_ != null) { + return libraryBuilder_.getMessageOrBuilder(); + } else { + return library_ == null ? + org.tensorflow.proto.FunctionDefLibrary.getDefaultInstance() : library_; + } + } + /** + *
+     * "library" provides user-defined functions.
+     * Naming:
+     *   * library.function.name are in a flat namespace.
+     *     NOTE: We may need to change it to be hierarchical to support
+     *     different orgs. E.g.,
+     *     { "/google/nn", { ... }},
+     *     { "/google/vision", { ... }}
+     *     { "/org_foo/module_bar", { ... }}
+     *     map<string, FunctionDefLib> named_lib;
+     *   * If node[i].op is the name of one function in "library",
+     *     node[i] is deemed as a function call. Otherwise, node[i].op
+     *     must be a primitive operation supported by the runtime.
+     * Function call semantics:
+     *   * The callee may start execution as soon as some of its inputs
+     *     are ready. The caller may want to use Tuple() mechanism to
+     *     ensure all inputs are ready in the same time.
+     *   * The consumer of return values may start executing as soon as
+     *     the return values the consumer depends on are ready.  The
+     *     consumer may want to use Tuple() mechanism to ensure the
+     *     consumer does not start until all return values of the callee
+     *     function are ready.
+     * 
+ * + * .tensorflow.FunctionDefLibrary library = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.FunctionDefLibrary, org.tensorflow.proto.FunctionDefLibrary.Builder, org.tensorflow.proto.FunctionDefLibraryOrBuilder> + getLibraryFieldBuilder() { + if (libraryBuilder_ == null) { + libraryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.FunctionDefLibrary, org.tensorflow.proto.FunctionDefLibrary.Builder, org.tensorflow.proto.FunctionDefLibraryOrBuilder>( + getLibrary(), + getParentForChildren(), + isClean()); + library_ = null; + } + return libraryBuilder_; + } + + private org.tensorflow.proto.GraphDebugInfo debugInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.GraphDebugInfo, org.tensorflow.proto.GraphDebugInfo.Builder, org.tensorflow.proto.GraphDebugInfoOrBuilder> debugInfoBuilder_; + /** + *
+     * Stack traces for the nodes in this graph.
+     * 
+ * + * .tensorflow.GraphDebugInfo debug_info = 5; + * @return Whether the debugInfo field is set. + */ + public boolean hasDebugInfo() { + return debugInfoBuilder_ != null || debugInfo_ != null; + } + /** + *
+     * Stack traces for the nodes in this graph.
+     * 
+ * + * .tensorflow.GraphDebugInfo debug_info = 5; + * @return The debugInfo. + */ + public org.tensorflow.proto.GraphDebugInfo getDebugInfo() { + if (debugInfoBuilder_ == null) { + return debugInfo_ == null ? org.tensorflow.proto.GraphDebugInfo.getDefaultInstance() : debugInfo_; + } else { + return debugInfoBuilder_.getMessage(); + } + } + /** + *
+     * Stack traces for the nodes in this graph.
+     * 
+ * + * .tensorflow.GraphDebugInfo debug_info = 5; + */ + public Builder setDebugInfo(org.tensorflow.proto.GraphDebugInfo value) { + if (debugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + debugInfo_ = value; + onChanged(); + } else { + debugInfoBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Stack traces for the nodes in this graph.
+     * 
+ * + * .tensorflow.GraphDebugInfo debug_info = 5; + */ + public Builder setDebugInfo( + org.tensorflow.proto.GraphDebugInfo.Builder builderForValue) { + if (debugInfoBuilder_ == null) { + debugInfo_ = builderForValue.build(); + onChanged(); + } else { + debugInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Stack traces for the nodes in this graph.
+     * 
+ * + * .tensorflow.GraphDebugInfo debug_info = 5; + */ + public Builder mergeDebugInfo(org.tensorflow.proto.GraphDebugInfo value) { + if (debugInfoBuilder_ == null) { + if (debugInfo_ != null) { + debugInfo_ = + org.tensorflow.proto.GraphDebugInfo.newBuilder(debugInfo_).mergeFrom(value).buildPartial(); + } else { + debugInfo_ = value; + } + onChanged(); + } else { + debugInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Stack traces for the nodes in this graph.
+     * 
+ * + * .tensorflow.GraphDebugInfo debug_info = 5; + */ + public Builder clearDebugInfo() { + if (debugInfoBuilder_ == null) { + debugInfo_ = null; + onChanged(); + } else { + debugInfo_ = null; + debugInfoBuilder_ = null; + } + + return this; + } + /** + *
+     * Stack traces for the nodes in this graph.
+     * 
+ * + * .tensorflow.GraphDebugInfo debug_info = 5; + */ + public org.tensorflow.proto.GraphDebugInfo.Builder getDebugInfoBuilder() { + + onChanged(); + return getDebugInfoFieldBuilder().getBuilder(); + } + /** + *
+     * Stack traces for the nodes in this graph.
+     * 
+ * + * .tensorflow.GraphDebugInfo debug_info = 5; + */ + public org.tensorflow.proto.GraphDebugInfoOrBuilder getDebugInfoOrBuilder() { + if (debugInfoBuilder_ != null) { + return debugInfoBuilder_.getMessageOrBuilder(); + } else { + return debugInfo_ == null ? + org.tensorflow.proto.GraphDebugInfo.getDefaultInstance() : debugInfo_; + } + } + /** + *
+     * Stack traces for the nodes in this graph.
+     * 
+ * + * .tensorflow.GraphDebugInfo debug_info = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.GraphDebugInfo, org.tensorflow.proto.GraphDebugInfo.Builder, org.tensorflow.proto.GraphDebugInfoOrBuilder> + getDebugInfoFieldBuilder() { + if (debugInfoBuilder_ == null) { + debugInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.GraphDebugInfo, org.tensorflow.proto.GraphDebugInfo.Builder, org.tensorflow.proto.GraphDebugInfoOrBuilder>( + getDebugInfo(), + getParentForChildren(), + isClean()); + debugInfo_ = null; + } + return debugInfoBuilder_; + } + @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:tensorflow.GraphDef) + } + + // @@protoc_insertion_point(class_scope:tensorflow.GraphDef) + private static final org.tensorflow.proto.GraphDef DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.GraphDef(); + } + + public static org.tensorflow.proto.GraphDef getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GraphDef 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 org.tensorflow.proto.GraphDef getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphDefOrBuilder.java similarity index 79% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphDefOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphDefOrBuilder.java index 9aa0a0deb22..42c7e899dac 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphDefOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphDefOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/graph.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface GraphDefOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.GraphDef) @@ -10,12 +10,12 @@ public interface GraphDefOrBuilder extends /** * repeated .tensorflow.NodeDef node = 1; */ - java.util.List + java.util.List getNodeList(); /** * repeated .tensorflow.NodeDef node = 1; */ - org.tensorflow.proto.framework.NodeDef getNode(int index); + org.tensorflow.proto.NodeDef getNode(int index); /** * repeated .tensorflow.NodeDef node = 1; */ @@ -23,12 +23,12 @@ public interface GraphDefOrBuilder extends /** * repeated .tensorflow.NodeDef node = 1; */ - java.util.List + java.util.List getNodeOrBuilderList(); /** * repeated .tensorflow.NodeDef node = 1; */ - org.tensorflow.proto.framework.NodeDefOrBuilder getNodeOrBuilder( + org.tensorflow.proto.NodeDefOrBuilder getNodeOrBuilder( int index); /** @@ -39,6 +39,7 @@ org.tensorflow.proto.framework.NodeDefOrBuilder getNodeOrBuilder( * * * .tensorflow.VersionDef versions = 4; + * @return Whether the versions field is set. */ boolean hasVersions(); /** @@ -49,8 +50,9 @@ org.tensorflow.proto.framework.NodeDefOrBuilder getNodeOrBuilder( * * * .tensorflow.VersionDef versions = 4; + * @return The versions. */ - org.tensorflow.proto.framework.VersionDef getVersions(); + org.tensorflow.proto.VersionDef getVersions(); /** *
    * Compatibility versions of the graph.  See core/public/version.h for version
@@ -60,7 +62,7 @@ org.tensorflow.proto.framework.NodeDefOrBuilder getNodeOrBuilder(
    *
    * .tensorflow.VersionDef versions = 4;
    */
-  org.tensorflow.proto.framework.VersionDefOrBuilder getVersionsOrBuilder();
+  org.tensorflow.proto.VersionDefOrBuilder getVersionsOrBuilder();
 
   /**
    * 
@@ -70,6 +72,9 @@ org.tensorflow.proto.framework.NodeDefOrBuilder getNodeOrBuilder(
    * 
* * int32 version = 3 [deprecated = true]; + * @deprecated tensorflow.GraphDef.version is deprecated. + * See tensorflow/core/framework/graph.proto;l=26 + * @return The version. */ @java.lang.Deprecated int getVersion(); @@ -99,6 +104,7 @@ org.tensorflow.proto.framework.NodeDefOrBuilder getNodeOrBuilder( *
* * .tensorflow.FunctionDefLibrary library = 2; + * @return Whether the library field is set. */ boolean hasLibrary(); /** @@ -127,8 +133,9 @@ org.tensorflow.proto.framework.NodeDefOrBuilder getNodeOrBuilder( * * * .tensorflow.FunctionDefLibrary library = 2; + * @return The library. */ - org.tensorflow.proto.framework.FunctionDefLibrary getLibrary(); + org.tensorflow.proto.FunctionDefLibrary getLibrary(); /** *
    * "library" provides user-defined functions.
@@ -156,5 +163,32 @@ org.tensorflow.proto.framework.NodeDefOrBuilder getNodeOrBuilder(
    *
    * .tensorflow.FunctionDefLibrary library = 2;
    */
-  org.tensorflow.proto.framework.FunctionDefLibraryOrBuilder getLibraryOrBuilder();
+  org.tensorflow.proto.FunctionDefLibraryOrBuilder getLibraryOrBuilder();
+
+  /**
+   * 
+   * Stack traces for the nodes in this graph.
+   * 
+ * + * .tensorflow.GraphDebugInfo debug_info = 5; + * @return Whether the debugInfo field is set. + */ + boolean hasDebugInfo(); + /** + *
+   * Stack traces for the nodes in this graph.
+   * 
+ * + * .tensorflow.GraphDebugInfo debug_info = 5; + * @return The debugInfo. + */ + org.tensorflow.proto.GraphDebugInfo getDebugInfo(); + /** + *
+   * Stack traces for the nodes in this graph.
+   * 
+ * + * .tensorflow.GraphDebugInfo debug_info = 5; + */ + org.tensorflow.proto.GraphDebugInfoOrBuilder getDebugInfoOrBuilder(); } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/GraphExecutionTrace.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphExecutionTrace.java similarity index 76% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/GraphExecutionTrace.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphExecutionTrace.java index 3ea9e244ff2..3458ea9b7e1 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/GraphExecutionTrace.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphExecutionTrace.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug_event.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; /** *
@@ -15,7 +15,7 @@
  *
  * Protobuf type {@code tensorflow.GraphExecutionTrace}
  */
-public  final class GraphExecutionTrace extends
+public final class GraphExecutionTrace extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.GraphExecutionTrace)
     GraphExecutionTraceOrBuilder {
@@ -43,96 +43,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private GraphExecutionTrace(
-      com.google.protobuf.CodedInputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws com.google.protobuf.InvalidProtocolBufferException {
-    this();
-    if (extensionRegistry == null) {
-      throw new java.lang.NullPointerException();
-    }
-    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
-        com.google.protobuf.UnknownFieldSet.newBuilder();
-    try {
-      boolean done = false;
-      while (!done) {
-        int tag = input.readTag();
-        switch (tag) {
-          case 0:
-            done = true;
-            break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            tfdbgContextId_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            opName_ = s;
-            break;
-          }
-          case 24: {
-
-            outputSlot_ = input.readInt32();
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
-
-            tensorDebugMode_ = rawValue;
-            break;
-          }
-          case 42: {
-            org.tensorflow.proto.framework.TensorProto.Builder subBuilder = null;
-            if (tensorProto_ != null) {
-              subBuilder = tensorProto_.toBuilder();
-            }
-            tensorProto_ = input.readMessage(org.tensorflow.proto.framework.TensorProto.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(tensorProto_);
-              tensorProto_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            deviceName_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
-        }
-      }
-    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-      throw e.setUnfinishedMessage(this);
-    } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
-    } finally {
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_GraphExecutionTrace_descriptor;
+    return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_GraphExecutionTrace_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_GraphExecutionTrace_fieldAccessorTable
+    return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_GraphExecutionTrace_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.util.GraphExecutionTrace.class, org.tensorflow.proto.util.GraphExecutionTrace.Builder.class);
+            org.tensorflow.proto.GraphExecutionTrace.class, org.tensorflow.proto.GraphExecutionTrace.Builder.class);
   }
 
   public static final int TFDBG_CONTEXT_ID_FIELD_NUMBER = 1;
@@ -144,7 +65,9 @@ private GraphExecutionTrace(
    * 
* * string tfdbg_context_id = 1; + * @return The tfdbgContextId. */ + @java.lang.Override public java.lang.String getTfdbgContextId() { java.lang.Object ref = tfdbgContextId_; if (ref instanceof java.lang.String) { @@ -164,7 +87,9 @@ public java.lang.String getTfdbgContextId() { *
* * string tfdbg_context_id = 1; + * @return The bytes for tfdbgContextId. */ + @java.lang.Override public com.google.protobuf.ByteString getTfdbgContextIdBytes() { java.lang.Object ref = tfdbgContextId_; @@ -188,7 +113,9 @@ public java.lang.String getTfdbgContextId() { * * * string op_name = 2; + * @return The opName. */ + @java.lang.Override public java.lang.String getOpName() { java.lang.Object ref = opName_; if (ref instanceof java.lang.String) { @@ -208,7 +135,9 @@ public java.lang.String getOpName() { * * * string op_name = 2; + * @return The bytes for opName. */ + @java.lang.Override public com.google.protobuf.ByteString getOpNameBytes() { java.lang.Object ref = opName_; @@ -232,7 +161,9 @@ public java.lang.String getOpName() { * * * int32 output_slot = 3; + * @return The outputSlot. */ + @java.lang.Override public int getOutputSlot() { return outputSlot_; } @@ -245,8 +176,9 @@ public int getOutputSlot() { * * * .tensorflow.TensorDebugMode tensor_debug_mode = 4; + * @return The enum numeric value on the wire for tensorDebugMode. */ - public int getTensorDebugModeValue() { + @java.lang.Override public int getTensorDebugModeValue() { return tensorDebugMode_; } /** @@ -255,15 +187,16 @@ public int getTensorDebugModeValue() { * * * .tensorflow.TensorDebugMode tensor_debug_mode = 4; + * @return The tensorDebugMode. */ - public org.tensorflow.proto.util.TensorDebugMode getTensorDebugMode() { + @java.lang.Override public org.tensorflow.proto.TensorDebugMode getTensorDebugMode() { @SuppressWarnings("deprecation") - org.tensorflow.proto.util.TensorDebugMode result = org.tensorflow.proto.util.TensorDebugMode.valueOf(tensorDebugMode_); - return result == null ? org.tensorflow.proto.util.TensorDebugMode.UNRECOGNIZED : result; + org.tensorflow.proto.TensorDebugMode result = org.tensorflow.proto.TensorDebugMode.valueOf(tensorDebugMode_); + return result == null ? org.tensorflow.proto.TensorDebugMode.UNRECOGNIZED : result; } public static final int TENSOR_PROTO_FIELD_NUMBER = 5; - private org.tensorflow.proto.framework.TensorProto tensorProto_; + private org.tensorflow.proto.TensorProto tensorProto_; /** *
    * Tensor value in the type described by `tensor_value_type`.
@@ -272,7 +205,9 @@ public org.tensorflow.proto.util.TensorDebugMode getTensorDebugMode() {
    * 
* * .tensorflow.TensorProto tensor_proto = 5; + * @return Whether the tensorProto field is set. */ + @java.lang.Override public boolean hasTensorProto() { return tensorProto_ != null; } @@ -284,9 +219,11 @@ public boolean hasTensorProto() { * * * .tensorflow.TensorProto tensor_proto = 5; + * @return The tensorProto. */ - public org.tensorflow.proto.framework.TensorProto getTensorProto() { - return tensorProto_ == null ? org.tensorflow.proto.framework.TensorProto.getDefaultInstance() : tensorProto_; + @java.lang.Override + public org.tensorflow.proto.TensorProto getTensorProto() { + return tensorProto_ == null ? org.tensorflow.proto.TensorProto.getDefaultInstance() : tensorProto_; } /** *
@@ -297,7 +234,8 @@ public org.tensorflow.proto.framework.TensorProto getTensorProto() {
    *
    * .tensorflow.TensorProto tensor_proto = 5;
    */
-  public org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorProtoOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.TensorProtoOrBuilder getTensorProtoOrBuilder() {
     return getTensorProto();
   }
 
@@ -309,7 +247,9 @@ public org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorProtoOrBuild
    * 
* * string device_name = 6; + * @return The deviceName. */ + @java.lang.Override public java.lang.String getDeviceName() { java.lang.Object ref = deviceName_; if (ref instanceof java.lang.String) { @@ -328,7 +268,9 @@ public java.lang.String getDeviceName() { * * * string device_name = 6; + * @return The bytes for deviceName. */ + @java.lang.Override public com.google.protobuf.ByteString getDeviceNameBytes() { java.lang.Object ref = deviceName_; @@ -357,25 +299,25 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTfdbgContextIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tfdbgContextId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tfdbgContextId_); } - if (!getOpNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(opName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, opName_); } if (outputSlot_ != 0) { output.writeInt32(3, outputSlot_); } - if (tensorDebugMode_ != org.tensorflow.proto.util.TensorDebugMode.UNSPECIFIED.getNumber()) { + if (tensorDebugMode_ != org.tensorflow.proto.TensorDebugMode.UNSPECIFIED.getNumber()) { output.writeEnum(4, tensorDebugMode_); } if (tensorProto_ != null) { output.writeMessage(5, getTensorProto()); } - if (!getDeviceNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, deviceName_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -384,17 +326,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTfdbgContextIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tfdbgContextId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tfdbgContextId_); } - if (!getOpNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(opName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, opName_); } if (outputSlot_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, outputSlot_); } - if (tensorDebugMode_ != org.tensorflow.proto.util.TensorDebugMode.UNSPECIFIED.getNumber()) { + if (tensorDebugMode_ != org.tensorflow.proto.TensorDebugMode.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, tensorDebugMode_); } @@ -402,10 +344,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getTensorProto()); } - if (!getDeviceNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, deviceName_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -415,10 +357,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.util.GraphExecutionTrace)) { + if (!(obj instanceof org.tensorflow.proto.GraphExecutionTrace)) { return super.equals(obj); } - org.tensorflow.proto.util.GraphExecutionTrace other = (org.tensorflow.proto.util.GraphExecutionTrace) obj; + org.tensorflow.proto.GraphExecutionTrace other = (org.tensorflow.proto.GraphExecutionTrace) obj; if (!getTfdbgContextId() .equals(other.getTfdbgContextId())) return false; @@ -434,7 +376,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getDeviceName() .equals(other.getDeviceName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -459,74 +401,74 @@ public int hashCode() { } hash = (37 * hash) + DEVICE_NAME_FIELD_NUMBER; hash = (53 * hash) + getDeviceName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.util.GraphExecutionTrace parseFrom( + public static org.tensorflow.proto.GraphExecutionTrace parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.GraphExecutionTrace parseFrom( + public static org.tensorflow.proto.GraphExecutionTrace parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.GraphExecutionTrace parseFrom( + public static org.tensorflow.proto.GraphExecutionTrace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.GraphExecutionTrace parseFrom( + public static org.tensorflow.proto.GraphExecutionTrace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.GraphExecutionTrace parseFrom(byte[] data) + public static org.tensorflow.proto.GraphExecutionTrace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.GraphExecutionTrace parseFrom( + public static org.tensorflow.proto.GraphExecutionTrace parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.GraphExecutionTrace parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.GraphExecutionTrace parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.GraphExecutionTrace parseFrom( + public static org.tensorflow.proto.GraphExecutionTrace 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 org.tensorflow.proto.util.GraphExecutionTrace parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.GraphExecutionTrace parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.GraphExecutionTrace parseDelimitedFrom( + public static org.tensorflow.proto.GraphExecutionTrace 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 org.tensorflow.proto.util.GraphExecutionTrace parseFrom( + public static org.tensorflow.proto.GraphExecutionTrace parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.GraphExecutionTrace parseFrom( + public static org.tensorflow.proto.GraphExecutionTrace parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -539,7 +481,7 @@ public static org.tensorflow.proto.util.GraphExecutionTrace parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.util.GraphExecutionTrace prototype) { + public static Builder newBuilder(org.tensorflow.proto.GraphExecutionTrace prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -569,34 +511,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.GraphExecutionTrace) - org.tensorflow.proto.util.GraphExecutionTraceOrBuilder { + org.tensorflow.proto.GraphExecutionTraceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_GraphExecutionTrace_descriptor; + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_GraphExecutionTrace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_GraphExecutionTrace_fieldAccessorTable + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_GraphExecutionTrace_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.util.GraphExecutionTrace.class, org.tensorflow.proto.util.GraphExecutionTrace.Builder.class); + org.tensorflow.proto.GraphExecutionTrace.class, org.tensorflow.proto.GraphExecutionTrace.Builder.class); } - // Construct using org.tensorflow.proto.util.GraphExecutionTrace.newBuilder() + // Construct using org.tensorflow.proto.GraphExecutionTrace.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -623,17 +560,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_GraphExecutionTrace_descriptor; + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_GraphExecutionTrace_descriptor; } @java.lang.Override - public org.tensorflow.proto.util.GraphExecutionTrace getDefaultInstanceForType() { - return org.tensorflow.proto.util.GraphExecutionTrace.getDefaultInstance(); + public org.tensorflow.proto.GraphExecutionTrace getDefaultInstanceForType() { + return org.tensorflow.proto.GraphExecutionTrace.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.util.GraphExecutionTrace build() { - org.tensorflow.proto.util.GraphExecutionTrace result = buildPartial(); + public org.tensorflow.proto.GraphExecutionTrace build() { + org.tensorflow.proto.GraphExecutionTrace result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -641,8 +578,8 @@ public org.tensorflow.proto.util.GraphExecutionTrace build() { } @java.lang.Override - public org.tensorflow.proto.util.GraphExecutionTrace buildPartial() { - org.tensorflow.proto.util.GraphExecutionTrace result = new org.tensorflow.proto.util.GraphExecutionTrace(this); + public org.tensorflow.proto.GraphExecutionTrace buildPartial() { + org.tensorflow.proto.GraphExecutionTrace result = new org.tensorflow.proto.GraphExecutionTrace(this); result.tfdbgContextId_ = tfdbgContextId_; result.opName_ = opName_; result.outputSlot_ = outputSlot_; @@ -691,16 +628,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.util.GraphExecutionTrace) { - return mergeFrom((org.tensorflow.proto.util.GraphExecutionTrace)other); + if (other instanceof org.tensorflow.proto.GraphExecutionTrace) { + return mergeFrom((org.tensorflow.proto.GraphExecutionTrace)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.util.GraphExecutionTrace other) { - if (other == org.tensorflow.proto.util.GraphExecutionTrace.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.GraphExecutionTrace other) { + if (other == org.tensorflow.proto.GraphExecutionTrace.getDefaultInstance()) return this; if (!other.getTfdbgContextId().isEmpty()) { tfdbgContextId_ = other.tfdbgContextId_; onChanged(); @@ -722,7 +659,7 @@ public Builder mergeFrom(org.tensorflow.proto.util.GraphExecutionTrace other) { deviceName_ = other.deviceName_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -737,17 +674,62 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.util.GraphExecutionTrace parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + tfdbgContextId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + opName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + outputSlot_ = input.readInt32(); + + break; + } // case 24 + case 32: { + tensorDebugMode_ = input.readEnum(); + + break; + } // case 32 + case 42: { + input.readMessage( + getTensorProtoFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + case 50: { + deviceName_ = input.readStringRequireUtf8(); + + break; + } // case 50 + 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) { - parsedMessage = (org.tensorflow.proto.util.GraphExecutionTrace) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -759,6 +741,7 @@ public Builder mergeFrom( * * * string tfdbg_context_id = 1; + * @return The tfdbgContextId. */ public java.lang.String getTfdbgContextId() { java.lang.Object ref = tfdbgContextId_; @@ -779,6 +762,7 @@ public java.lang.String getTfdbgContextId() { * * * string tfdbg_context_id = 1; + * @return The bytes for tfdbgContextId. */ public com.google.protobuf.ByteString getTfdbgContextIdBytes() { @@ -800,6 +784,8 @@ public java.lang.String getTfdbgContextId() { * * * string tfdbg_context_id = 1; + * @param value The tfdbgContextId to set. + * @return This builder for chaining. */ public Builder setTfdbgContextId( java.lang.String value) { @@ -818,6 +804,7 @@ public Builder setTfdbgContextId( * * * string tfdbg_context_id = 1; + * @return This builder for chaining. */ public Builder clearTfdbgContextId() { @@ -832,6 +819,8 @@ public Builder clearTfdbgContextId() { * * * string tfdbg_context_id = 1; + * @param value The bytes for tfdbgContextId to set. + * @return This builder for chaining. */ public Builder setTfdbgContextIdBytes( com.google.protobuf.ByteString value) { @@ -853,6 +842,7 @@ public Builder setTfdbgContextIdBytes( * * * string op_name = 2; + * @return The opName. */ public java.lang.String getOpName() { java.lang.Object ref = opName_; @@ -873,6 +863,7 @@ public java.lang.String getOpName() { * * * string op_name = 2; + * @return The bytes for opName. */ public com.google.protobuf.ByteString getOpNameBytes() { @@ -894,6 +885,8 @@ public java.lang.String getOpName() { * * * string op_name = 2; + * @param value The opName to set. + * @return This builder for chaining. */ public Builder setOpName( java.lang.String value) { @@ -912,6 +905,7 @@ public Builder setOpName( * * * string op_name = 2; + * @return This builder for chaining. */ public Builder clearOpName() { @@ -926,6 +920,8 @@ public Builder clearOpName() { * * * string op_name = 2; + * @param value The bytes for opName to set. + * @return This builder for chaining. */ public Builder setOpNameBytes( com.google.protobuf.ByteString value) { @@ -947,7 +943,9 @@ public Builder setOpNameBytes( * * * int32 output_slot = 3; + * @return The outputSlot. */ + @java.lang.Override public int getOutputSlot() { return outputSlot_; } @@ -958,6 +956,8 @@ public int getOutputSlot() { * * * int32 output_slot = 3; + * @param value The outputSlot to set. + * @return This builder for chaining. */ public Builder setOutputSlot(int value) { @@ -972,6 +972,7 @@ public Builder setOutputSlot(int value) { * * * int32 output_slot = 3; + * @return This builder for chaining. */ public Builder clearOutputSlot() { @@ -987,8 +988,9 @@ public Builder clearOutputSlot() { * * * .tensorflow.TensorDebugMode tensor_debug_mode = 4; + * @return The enum numeric value on the wire for tensorDebugMode. */ - public int getTensorDebugModeValue() { + @java.lang.Override public int getTensorDebugModeValue() { return tensorDebugMode_; } /** @@ -997,8 +999,11 @@ public int getTensorDebugModeValue() { * * * .tensorflow.TensorDebugMode tensor_debug_mode = 4; + * @param value The enum numeric value on the wire for tensorDebugMode to set. + * @return This builder for chaining. */ public Builder setTensorDebugModeValue(int value) { + tensorDebugMode_ = value; onChanged(); return this; @@ -1009,11 +1014,13 @@ public Builder setTensorDebugModeValue(int value) { * * * .tensorflow.TensorDebugMode tensor_debug_mode = 4; + * @return The tensorDebugMode. */ - public org.tensorflow.proto.util.TensorDebugMode getTensorDebugMode() { + @java.lang.Override + public org.tensorflow.proto.TensorDebugMode getTensorDebugMode() { @SuppressWarnings("deprecation") - org.tensorflow.proto.util.TensorDebugMode result = org.tensorflow.proto.util.TensorDebugMode.valueOf(tensorDebugMode_); - return result == null ? org.tensorflow.proto.util.TensorDebugMode.UNRECOGNIZED : result; + org.tensorflow.proto.TensorDebugMode result = org.tensorflow.proto.TensorDebugMode.valueOf(tensorDebugMode_); + return result == null ? org.tensorflow.proto.TensorDebugMode.UNRECOGNIZED : result; } /** *
@@ -1021,8 +1028,10 @@ public org.tensorflow.proto.util.TensorDebugMode getTensorDebugMode() {
      * 
* * .tensorflow.TensorDebugMode tensor_debug_mode = 4; + * @param value The tensorDebugMode to set. + * @return This builder for chaining. */ - public Builder setTensorDebugMode(org.tensorflow.proto.util.TensorDebugMode value) { + public Builder setTensorDebugMode(org.tensorflow.proto.TensorDebugMode value) { if (value == null) { throw new NullPointerException(); } @@ -1037,6 +1046,7 @@ public Builder setTensorDebugMode(org.tensorflow.proto.util.TensorDebugMode valu * * * .tensorflow.TensorDebugMode tensor_debug_mode = 4; + * @return This builder for chaining. */ public Builder clearTensorDebugMode() { @@ -1045,9 +1055,9 @@ public Builder clearTensorDebugMode() { return this; } - private org.tensorflow.proto.framework.TensorProto tensorProto_; + private org.tensorflow.proto.TensorProto tensorProto_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder> tensorProtoBuilder_; + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> tensorProtoBuilder_; /** *
      * Tensor value in the type described by `tensor_value_type`.
@@ -1056,6 +1066,7 @@ public Builder clearTensorDebugMode() {
      * 
* * .tensorflow.TensorProto tensor_proto = 5; + * @return Whether the tensorProto field is set. */ public boolean hasTensorProto() { return tensorProtoBuilder_ != null || tensorProto_ != null; @@ -1068,10 +1079,11 @@ public boolean hasTensorProto() { * * * .tensorflow.TensorProto tensor_proto = 5; + * @return The tensorProto. */ - public org.tensorflow.proto.framework.TensorProto getTensorProto() { + public org.tensorflow.proto.TensorProto getTensorProto() { if (tensorProtoBuilder_ == null) { - return tensorProto_ == null ? org.tensorflow.proto.framework.TensorProto.getDefaultInstance() : tensorProto_; + return tensorProto_ == null ? org.tensorflow.proto.TensorProto.getDefaultInstance() : tensorProto_; } else { return tensorProtoBuilder_.getMessage(); } @@ -1085,7 +1097,7 @@ public org.tensorflow.proto.framework.TensorProto getTensorProto() { * * .tensorflow.TensorProto tensor_proto = 5; */ - public Builder setTensorProto(org.tensorflow.proto.framework.TensorProto value) { + public Builder setTensorProto(org.tensorflow.proto.TensorProto value) { if (tensorProtoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1108,7 +1120,7 @@ public Builder setTensorProto(org.tensorflow.proto.framework.TensorProto value) * .tensorflow.TensorProto tensor_proto = 5; */ public Builder setTensorProto( - org.tensorflow.proto.framework.TensorProto.Builder builderForValue) { + org.tensorflow.proto.TensorProto.Builder builderForValue) { if (tensorProtoBuilder_ == null) { tensorProto_ = builderForValue.build(); onChanged(); @@ -1127,11 +1139,11 @@ public Builder setTensorProto( * * .tensorflow.TensorProto tensor_proto = 5; */ - public Builder mergeTensorProto(org.tensorflow.proto.framework.TensorProto value) { + public Builder mergeTensorProto(org.tensorflow.proto.TensorProto value) { if (tensorProtoBuilder_ == null) { if (tensorProto_ != null) { tensorProto_ = - org.tensorflow.proto.framework.TensorProto.newBuilder(tensorProto_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.TensorProto.newBuilder(tensorProto_).mergeFrom(value).buildPartial(); } else { tensorProto_ = value; } @@ -1171,7 +1183,7 @@ public Builder clearTensorProto() { * * .tensorflow.TensorProto tensor_proto = 5; */ - public org.tensorflow.proto.framework.TensorProto.Builder getTensorProtoBuilder() { + public org.tensorflow.proto.TensorProto.Builder getTensorProtoBuilder() { onChanged(); return getTensorProtoFieldBuilder().getBuilder(); @@ -1185,12 +1197,12 @@ public org.tensorflow.proto.framework.TensorProto.Builder getTensorProtoBuilder( * * .tensorflow.TensorProto tensor_proto = 5; */ - public org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorProtoOrBuilder() { + public org.tensorflow.proto.TensorProtoOrBuilder getTensorProtoOrBuilder() { if (tensorProtoBuilder_ != null) { return tensorProtoBuilder_.getMessageOrBuilder(); } else { return tensorProto_ == null ? - org.tensorflow.proto.framework.TensorProto.getDefaultInstance() : tensorProto_; + org.tensorflow.proto.TensorProto.getDefaultInstance() : tensorProto_; } } /** @@ -1203,11 +1215,11 @@ public org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorProtoOrBuild * .tensorflow.TensorProto tensor_proto = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder> + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> getTensorProtoFieldBuilder() { if (tensorProtoBuilder_ == null) { tensorProtoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.TensorProto, org.tensorflow.proto.framework.TensorProto.Builder, org.tensorflow.proto.framework.TensorProtoOrBuilder>( + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder>( getTensorProto(), getParentForChildren(), isClean()); @@ -1223,6 +1235,7 @@ public org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorProtoOrBuild * * * string device_name = 6; + * @return The deviceName. */ public java.lang.String getDeviceName() { java.lang.Object ref = deviceName_; @@ -1242,6 +1255,7 @@ public java.lang.String getDeviceName() { * * * string device_name = 6; + * @return The bytes for deviceName. */ public com.google.protobuf.ByteString getDeviceNameBytes() { @@ -1262,6 +1276,8 @@ public java.lang.String getDeviceName() { * * * string device_name = 6; + * @param value The deviceName to set. + * @return This builder for chaining. */ public Builder setDeviceName( java.lang.String value) { @@ -1279,6 +1295,7 @@ public Builder setDeviceName( * * * string device_name = 6; + * @return This builder for chaining. */ public Builder clearDeviceName() { @@ -1292,6 +1309,8 @@ public Builder clearDeviceName() { * * * string device_name = 6; + * @param value The bytes for deviceName to set. + * @return This builder for chaining. */ public Builder setDeviceNameBytes( com.google.protobuf.ByteString value) { @@ -1321,12 +1340,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.GraphExecutionTrace) - private static final org.tensorflow.proto.util.GraphExecutionTrace DEFAULT_INSTANCE; + private static final org.tensorflow.proto.GraphExecutionTrace DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.util.GraphExecutionTrace(); + DEFAULT_INSTANCE = new org.tensorflow.proto.GraphExecutionTrace(); } - public static org.tensorflow.proto.util.GraphExecutionTrace getDefaultInstance() { + public static org.tensorflow.proto.GraphExecutionTrace getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1337,7 +1356,18 @@ public GraphExecutionTrace parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GraphExecutionTrace(input, extensionRegistry); + 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(); } }; @@ -1351,7 +1381,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.util.GraphExecutionTrace getDefaultInstanceForType() { + public org.tensorflow.proto.GraphExecutionTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/GraphExecutionTraceOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphExecutionTraceOrBuilder.java similarity index 82% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/GraphExecutionTraceOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphExecutionTraceOrBuilder.java index d83c52096e3..b01de73732e 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/GraphExecutionTraceOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphExecutionTraceOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug_event.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; public interface GraphExecutionTraceOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.GraphExecutionTrace) @@ -14,6 +14,7 @@ public interface GraphExecutionTraceOrBuilder extends * * * string tfdbg_context_id = 1; + * @return The tfdbgContextId. */ java.lang.String getTfdbgContextId(); /** @@ -23,6 +24,7 @@ public interface GraphExecutionTraceOrBuilder extends * * * string tfdbg_context_id = 1; + * @return The bytes for tfdbgContextId. */ com.google.protobuf.ByteString getTfdbgContextIdBytes(); @@ -34,6 +36,7 @@ public interface GraphExecutionTraceOrBuilder extends * * * string op_name = 2; + * @return The opName. */ java.lang.String getOpName(); /** @@ -43,6 +46,7 @@ public interface GraphExecutionTraceOrBuilder extends * * * string op_name = 2; + * @return The bytes for opName. */ com.google.protobuf.ByteString getOpNameBytes(); @@ -54,6 +58,7 @@ public interface GraphExecutionTraceOrBuilder extends * * * int32 output_slot = 3; + * @return The outputSlot. */ int getOutputSlot(); @@ -63,6 +68,7 @@ public interface GraphExecutionTraceOrBuilder extends * * * .tensorflow.TensorDebugMode tensor_debug_mode = 4; + * @return The enum numeric value on the wire for tensorDebugMode. */ int getTensorDebugModeValue(); /** @@ -71,8 +77,9 @@ public interface GraphExecutionTraceOrBuilder extends * * * .tensorflow.TensorDebugMode tensor_debug_mode = 4; + * @return The tensorDebugMode. */ - org.tensorflow.proto.util.TensorDebugMode getTensorDebugMode(); + org.tensorflow.proto.TensorDebugMode getTensorDebugMode(); /** *
@@ -82,6 +89,7 @@ public interface GraphExecutionTraceOrBuilder extends
    * 
* * .tensorflow.TensorProto tensor_proto = 5; + * @return Whether the tensorProto field is set. */ boolean hasTensorProto(); /** @@ -92,8 +100,9 @@ public interface GraphExecutionTraceOrBuilder extends * * * .tensorflow.TensorProto tensor_proto = 5; + * @return The tensorProto. */ - org.tensorflow.proto.framework.TensorProto getTensorProto(); + org.tensorflow.proto.TensorProto getTensorProto(); /** *
    * Tensor value in the type described by `tensor_value_type`.
@@ -103,7 +112,7 @@ public interface GraphExecutionTraceOrBuilder extends
    *
    * .tensorflow.TensorProto tensor_proto = 5;
    */
-  org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorProtoOrBuilder();
+  org.tensorflow.proto.TensorProtoOrBuilder getTensorProtoOrBuilder();
 
   /**
    * 
@@ -111,6 +120,7 @@ public interface GraphExecutionTraceOrBuilder extends
    * 
* * string device_name = 6; + * @return The deviceName. */ java.lang.String getDeviceName(); /** @@ -119,6 +129,7 @@ public interface GraphExecutionTraceOrBuilder extends *
* * string device_name = 6; + * @return The bytes for deviceName. */ com.google.protobuf.ByteString getDeviceNameBytes(); diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/GraphOpCreation.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphOpCreation.java similarity index 78% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/GraphOpCreation.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphOpCreation.java index da8a4523ec0..ca85e208dd1 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/GraphOpCreation.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphOpCreation.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug_event.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; /** *
@@ -10,7 +10,7 @@
  *
  * Protobuf type {@code tensorflow.GraphOpCreation}
  */
-public  final class GraphOpCreation extends
+public final class GraphOpCreation extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.GraphOpCreation)
     GraphOpCreationOrBuilder {
@@ -41,139 +41,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private GraphOpCreation(
-      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: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            opType_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            opName_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            graphName_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            graphId_ = s;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            deviceName_ = s;
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              inputNames_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            inputNames_.add(s);
-            break;
-          }
-          case 56: {
-
-            numOutputs_ = input.readInt32();
-            break;
-          }
-          case 66: {
-            org.tensorflow.proto.util.CodeLocation.Builder subBuilder = null;
-            if (codeLocation_ != null) {
-              subBuilder = codeLocation_.toBuilder();
-            }
-            codeLocation_ = input.readMessage(org.tensorflow.proto.util.CodeLocation.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(codeLocation_);
-              codeLocation_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 72: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              outputTensorIds_ = newIntList();
-              mutable_bitField0_ |= 0x00000002;
-            }
-            outputTensorIds_.addInt(input.readInt32());
-            break;
-          }
-          case 74: {
-            int length = input.readRawVarint32();
-            int limit = input.pushLimit(length);
-            if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
-              outputTensorIds_ = newIntList();
-              mutable_bitField0_ |= 0x00000002;
-            }
-            while (input.getBytesUntilLimit() > 0) {
-              outputTensorIds_.addInt(input.readInt32());
-            }
-            input.popLimit(limit);
-            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)) {
-        inputNames_ = inputNames_.getUnmodifiableView();
-      }
-      if (((mutable_bitField0_ & 0x00000002) != 0)) {
-        outputTensorIds_.makeImmutable(); // C
-      }
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_GraphOpCreation_descriptor;
+    return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_GraphOpCreation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_GraphOpCreation_fieldAccessorTable
+    return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_GraphOpCreation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.util.GraphOpCreation.class, org.tensorflow.proto.util.GraphOpCreation.Builder.class);
+            org.tensorflow.proto.GraphOpCreation.class, org.tensorflow.proto.GraphOpCreation.Builder.class);
   }
 
   public static final int OP_TYPE_FIELD_NUMBER = 1;
@@ -184,7 +62,9 @@ private GraphOpCreation(
    * 
* * string op_type = 1; + * @return The opType. */ + @java.lang.Override public java.lang.String getOpType() { java.lang.Object ref = opType_; if (ref instanceof java.lang.String) { @@ -203,7 +83,9 @@ public java.lang.String getOpType() { * * * string op_type = 1; + * @return The bytes for opType. */ + @java.lang.Override public com.google.protobuf.ByteString getOpTypeBytes() { java.lang.Object ref = opType_; @@ -226,7 +108,9 @@ public java.lang.String getOpType() { * * * string op_name = 2; + * @return The opName. */ + @java.lang.Override public java.lang.String getOpName() { java.lang.Object ref = opName_; if (ref instanceof java.lang.String) { @@ -245,7 +129,9 @@ public java.lang.String getOpName() { * * * string op_name = 2; + * @return The bytes for opName. */ + @java.lang.Override public com.google.protobuf.ByteString getOpNameBytes() { java.lang.Object ref = opName_; @@ -268,7 +154,9 @@ public java.lang.String getOpName() { * * * string graph_name = 3; + * @return The graphName. */ + @java.lang.Override public java.lang.String getGraphName() { java.lang.Object ref = graphName_; if (ref instanceof java.lang.String) { @@ -287,7 +175,9 @@ public java.lang.String getGraphName() { * * * string graph_name = 3; + * @return The bytes for graphName. */ + @java.lang.Override public com.google.protobuf.ByteString getGraphNameBytes() { java.lang.Object ref = graphName_; @@ -311,7 +201,9 @@ public java.lang.String getGraphName() { * * * string graph_id = 4; + * @return The graphId. */ + @java.lang.Override public java.lang.String getGraphId() { java.lang.Object ref = graphId_; if (ref instanceof java.lang.String) { @@ -331,7 +223,9 @@ public java.lang.String getGraphId() { * * * string graph_id = 4; + * @return The bytes for graphId. */ + @java.lang.Override public com.google.protobuf.ByteString getGraphIdBytes() { java.lang.Object ref = graphId_; @@ -354,7 +248,9 @@ public java.lang.String getGraphId() { * * * string device_name = 5; + * @return The deviceName. */ + @java.lang.Override public java.lang.String getDeviceName() { java.lang.Object ref = deviceName_; if (ref instanceof java.lang.String) { @@ -373,7 +269,9 @@ public java.lang.String getDeviceName() { * * * string device_name = 5; + * @return The bytes for deviceName. */ + @java.lang.Override public com.google.protobuf.ByteString getDeviceNameBytes() { java.lang.Object ref = deviceName_; @@ -396,6 +294,7 @@ public java.lang.String getDeviceName() { * * * repeated string input_names = 6; + * @return A list containing the inputNames. */ public com.google.protobuf.ProtocolStringList getInputNamesList() { @@ -407,6 +306,7 @@ public java.lang.String getDeviceName() { * * * repeated string input_names = 6; + * @return The count of inputNames. */ public int getInputNamesCount() { return inputNames_.size(); @@ -417,6 +317,8 @@ public int getInputNamesCount() { * * * repeated string input_names = 6; + * @param index The index of the element to return. + * @return The inputNames at the given index. */ public java.lang.String getInputNames(int index) { return inputNames_.get(index); @@ -427,6 +329,8 @@ public java.lang.String getInputNames(int index) { * * * repeated string input_names = 6; + * @param index The index of the value to return. + * @return The bytes of the inputNames at the given index. */ public com.google.protobuf.ByteString getInputNamesBytes(int index) { @@ -441,20 +345,24 @@ public java.lang.String getInputNames(int index) { * * * int32 num_outputs = 7; + * @return The numOutputs. */ + @java.lang.Override public int getNumOutputs() { return numOutputs_; } public static final int CODE_LOCATION_FIELD_NUMBER = 8; - private org.tensorflow.proto.util.CodeLocation codeLocation_; + private org.tensorflow.proto.CodeLocation codeLocation_; /** *
    * The unique ID for code location (stack trace) of the op's creation.
    * 
* * .tensorflow.CodeLocation code_location = 8; + * @return Whether the codeLocation field is set. */ + @java.lang.Override public boolean hasCodeLocation() { return codeLocation_ != null; } @@ -464,9 +372,11 @@ public boolean hasCodeLocation() { * * * .tensorflow.CodeLocation code_location = 8; + * @return The codeLocation. */ - public org.tensorflow.proto.util.CodeLocation getCodeLocation() { - return codeLocation_ == null ? org.tensorflow.proto.util.CodeLocation.getDefaultInstance() : codeLocation_; + @java.lang.Override + public org.tensorflow.proto.CodeLocation getCodeLocation() { + return codeLocation_ == null ? org.tensorflow.proto.CodeLocation.getDefaultInstance() : codeLocation_; } /** *
@@ -475,7 +385,8 @@ public org.tensorflow.proto.util.CodeLocation getCodeLocation() {
    *
    * .tensorflow.CodeLocation code_location = 8;
    */
-  public org.tensorflow.proto.util.CodeLocationOrBuilder getCodeLocationOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.CodeLocationOrBuilder getCodeLocationOrBuilder() {
     return getCodeLocation();
   }
 
@@ -487,7 +398,9 @@ public org.tensorflow.proto.util.CodeLocationOrBuilder getCodeLocationOrBuilder(
    * 
* * repeated int32 output_tensor_ids = 9; + * @return A list containing the outputTensorIds. */ + @java.lang.Override public java.util.List getOutputTensorIdsList() { return outputTensorIds_; @@ -498,6 +411,7 @@ public org.tensorflow.proto.util.CodeLocationOrBuilder getCodeLocationOrBuilder( * * * repeated int32 output_tensor_ids = 9; + * @return The count of outputTensorIds. */ public int getOutputTensorIdsCount() { return outputTensorIds_.size(); @@ -508,6 +422,8 @@ public int getOutputTensorIdsCount() { * * * repeated int32 output_tensor_ids = 9; + * @param index The index of the element to return. + * @return The outputTensorIds at the given index. */ public int getOutputTensorIds(int index) { return outputTensorIds_.getInt(index); @@ -529,19 +445,19 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (!getOpTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(opType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, opType_); } - if (!getOpNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(opName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, opName_); } - if (!getGraphNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(graphName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, graphName_); } - if (!getGraphIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(graphId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, graphId_); } - if (!getDeviceNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, deviceName_); } for (int i = 0; i < inputNames_.size(); i++) { @@ -560,7 +476,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < outputTensorIds_.size(); i++) { output.writeInt32NoTag(outputTensorIds_.getInt(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -569,19 +485,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getOpTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(opType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, opType_); } - if (!getOpNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(opName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, opName_); } - if (!getGraphNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(graphName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, graphName_); } - if (!getGraphIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(graphId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, graphId_); } - if (!getDeviceNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, deviceName_); } { @@ -614,7 +530,7 @@ public int getSerializedSize() { } outputTensorIdsMemoizedSerializedSize = dataSize; } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -624,10 +540,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.util.GraphOpCreation)) { + if (!(obj instanceof org.tensorflow.proto.GraphOpCreation)) { return super.equals(obj); } - org.tensorflow.proto.util.GraphOpCreation other = (org.tensorflow.proto.util.GraphOpCreation) obj; + org.tensorflow.proto.GraphOpCreation other = (org.tensorflow.proto.GraphOpCreation) obj; if (!getOpType() .equals(other.getOpType())) return false; @@ -650,7 +566,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getOutputTensorIdsList() .equals(other.getOutputTensorIdsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -685,74 +601,74 @@ public int hashCode() { hash = (37 * hash) + OUTPUT_TENSOR_IDS_FIELD_NUMBER; hash = (53 * hash) + getOutputTensorIdsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.util.GraphOpCreation parseFrom( + public static org.tensorflow.proto.GraphOpCreation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.GraphOpCreation parseFrom( + public static org.tensorflow.proto.GraphOpCreation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.GraphOpCreation parseFrom( + public static org.tensorflow.proto.GraphOpCreation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.GraphOpCreation parseFrom( + public static org.tensorflow.proto.GraphOpCreation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.GraphOpCreation parseFrom(byte[] data) + public static org.tensorflow.proto.GraphOpCreation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.GraphOpCreation parseFrom( + public static org.tensorflow.proto.GraphOpCreation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.GraphOpCreation parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.GraphOpCreation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.GraphOpCreation parseFrom( + public static org.tensorflow.proto.GraphOpCreation 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 org.tensorflow.proto.util.GraphOpCreation parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.GraphOpCreation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.GraphOpCreation parseDelimitedFrom( + public static org.tensorflow.proto.GraphOpCreation 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 org.tensorflow.proto.util.GraphOpCreation parseFrom( + public static org.tensorflow.proto.GraphOpCreation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.GraphOpCreation parseFrom( + public static org.tensorflow.proto.GraphOpCreation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -765,7 +681,7 @@ public static org.tensorflow.proto.util.GraphOpCreation parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.util.GraphOpCreation prototype) { + public static Builder newBuilder(org.tensorflow.proto.GraphOpCreation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -790,34 +706,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.GraphOpCreation) - org.tensorflow.proto.util.GraphOpCreationOrBuilder { + org.tensorflow.proto.GraphOpCreationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_GraphOpCreation_descriptor; + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_GraphOpCreation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_GraphOpCreation_fieldAccessorTable + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_GraphOpCreation_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.util.GraphOpCreation.class, org.tensorflow.proto.util.GraphOpCreation.Builder.class); + org.tensorflow.proto.GraphOpCreation.class, org.tensorflow.proto.GraphOpCreation.Builder.class); } - // Construct using org.tensorflow.proto.util.GraphOpCreation.newBuilder() + // Construct using org.tensorflow.proto.GraphOpCreation.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -850,17 +761,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_GraphOpCreation_descriptor; + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_GraphOpCreation_descriptor; } @java.lang.Override - public org.tensorflow.proto.util.GraphOpCreation getDefaultInstanceForType() { - return org.tensorflow.proto.util.GraphOpCreation.getDefaultInstance(); + public org.tensorflow.proto.GraphOpCreation getDefaultInstanceForType() { + return org.tensorflow.proto.GraphOpCreation.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.util.GraphOpCreation build() { - org.tensorflow.proto.util.GraphOpCreation result = buildPartial(); + public org.tensorflow.proto.GraphOpCreation build() { + org.tensorflow.proto.GraphOpCreation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -868,8 +779,8 @@ public org.tensorflow.proto.util.GraphOpCreation build() { } @java.lang.Override - public org.tensorflow.proto.util.GraphOpCreation buildPartial() { - org.tensorflow.proto.util.GraphOpCreation result = new org.tensorflow.proto.util.GraphOpCreation(this); + public org.tensorflow.proto.GraphOpCreation buildPartial() { + org.tensorflow.proto.GraphOpCreation result = new org.tensorflow.proto.GraphOpCreation(this); int from_bitField0_ = bitField0_; result.opType_ = opType_; result.opName_ = opName_; @@ -930,16 +841,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.util.GraphOpCreation) { - return mergeFrom((org.tensorflow.proto.util.GraphOpCreation)other); + if (other instanceof org.tensorflow.proto.GraphOpCreation) { + return mergeFrom((org.tensorflow.proto.GraphOpCreation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.util.GraphOpCreation other) { - if (other == org.tensorflow.proto.util.GraphOpCreation.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.GraphOpCreation other) { + if (other == org.tensorflow.proto.GraphOpCreation.getDefaultInstance()) return this; if (!other.getOpType().isEmpty()) { opType_ = other.opType_; onChanged(); @@ -986,7 +897,7 @@ public Builder mergeFrom(org.tensorflow.proto.util.GraphOpCreation other) { } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1001,17 +912,89 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.util.GraphOpCreation parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + opType_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + opName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + graphName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + graphId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + deviceName_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + ensureInputNamesIsMutable(); + inputNames_.add(s); + break; + } // case 50 + case 56: { + numOutputs_ = input.readInt32(); + + break; + } // case 56 + case 66: { + input.readMessage( + getCodeLocationFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 66 + case 72: { + int v = input.readInt32(); + ensureOutputTensorIdsIsMutable(); + outputTensorIds_.addInt(v); + break; + } // case 72 + case 74: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureOutputTensorIdsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + outputTensorIds_.addInt(input.readInt32()); + } + input.popLimit(limit); + 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) { - parsedMessage = (org.tensorflow.proto.util.GraphOpCreation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1023,6 +1006,7 @@ public Builder mergeFrom( * * * string op_type = 1; + * @return The opType. */ public java.lang.String getOpType() { java.lang.Object ref = opType_; @@ -1042,6 +1026,7 @@ public java.lang.String getOpType() { * * * string op_type = 1; + * @return The bytes for opType. */ public com.google.protobuf.ByteString getOpTypeBytes() { @@ -1062,6 +1047,8 @@ public java.lang.String getOpType() { * * * string op_type = 1; + * @param value The opType to set. + * @return This builder for chaining. */ public Builder setOpType( java.lang.String value) { @@ -1079,6 +1066,7 @@ public Builder setOpType( * * * string op_type = 1; + * @return This builder for chaining. */ public Builder clearOpType() { @@ -1092,6 +1080,8 @@ public Builder clearOpType() { * * * string op_type = 1; + * @param value The bytes for opType to set. + * @return This builder for chaining. */ public Builder setOpTypeBytes( com.google.protobuf.ByteString value) { @@ -1112,6 +1102,7 @@ public Builder setOpTypeBytes( * * * string op_name = 2; + * @return The opName. */ public java.lang.String getOpName() { java.lang.Object ref = opName_; @@ -1131,6 +1122,7 @@ public java.lang.String getOpName() { * * * string op_name = 2; + * @return The bytes for opName. */ public com.google.protobuf.ByteString getOpNameBytes() { @@ -1151,6 +1143,8 @@ public java.lang.String getOpName() { * * * string op_name = 2; + * @param value The opName to set. + * @return This builder for chaining. */ public Builder setOpName( java.lang.String value) { @@ -1168,6 +1162,7 @@ public Builder setOpName( * * * string op_name = 2; + * @return This builder for chaining. */ public Builder clearOpName() { @@ -1181,6 +1176,8 @@ public Builder clearOpName() { * * * string op_name = 2; + * @param value The bytes for opName to set. + * @return This builder for chaining. */ public Builder setOpNameBytes( com.google.protobuf.ByteString value) { @@ -1201,6 +1198,7 @@ public Builder setOpNameBytes( * * * string graph_name = 3; + * @return The graphName. */ public java.lang.String getGraphName() { java.lang.Object ref = graphName_; @@ -1220,6 +1218,7 @@ public java.lang.String getGraphName() { * * * string graph_name = 3; + * @return The bytes for graphName. */ public com.google.protobuf.ByteString getGraphNameBytes() { @@ -1240,6 +1239,8 @@ public java.lang.String getGraphName() { * * * string graph_name = 3; + * @param value The graphName to set. + * @return This builder for chaining. */ public Builder setGraphName( java.lang.String value) { @@ -1257,6 +1258,7 @@ public Builder setGraphName( * * * string graph_name = 3; + * @return This builder for chaining. */ public Builder clearGraphName() { @@ -1270,6 +1272,8 @@ public Builder clearGraphName() { * * * string graph_name = 3; + * @param value The bytes for graphName to set. + * @return This builder for chaining. */ public Builder setGraphNameBytes( com.google.protobuf.ByteString value) { @@ -1291,6 +1295,7 @@ public Builder setGraphNameBytes( * * * string graph_id = 4; + * @return The graphId. */ public java.lang.String getGraphId() { java.lang.Object ref = graphId_; @@ -1311,6 +1316,7 @@ public java.lang.String getGraphId() { * * * string graph_id = 4; + * @return The bytes for graphId. */ public com.google.protobuf.ByteString getGraphIdBytes() { @@ -1332,6 +1338,8 @@ public java.lang.String getGraphId() { * * * string graph_id = 4; + * @param value The graphId to set. + * @return This builder for chaining. */ public Builder setGraphId( java.lang.String value) { @@ -1350,6 +1358,7 @@ public Builder setGraphId( * * * string graph_id = 4; + * @return This builder for chaining. */ public Builder clearGraphId() { @@ -1364,6 +1373,8 @@ public Builder clearGraphId() { * * * string graph_id = 4; + * @param value The bytes for graphId to set. + * @return This builder for chaining. */ public Builder setGraphIdBytes( com.google.protobuf.ByteString value) { @@ -1384,6 +1395,7 @@ public Builder setGraphIdBytes( * * * string device_name = 5; + * @return The deviceName. */ public java.lang.String getDeviceName() { java.lang.Object ref = deviceName_; @@ -1403,6 +1415,7 @@ public java.lang.String getDeviceName() { * * * string device_name = 5; + * @return The bytes for deviceName. */ public com.google.protobuf.ByteString getDeviceNameBytes() { @@ -1423,6 +1436,8 @@ public java.lang.String getDeviceName() { * * * string device_name = 5; + * @param value The deviceName to set. + * @return This builder for chaining. */ public Builder setDeviceName( java.lang.String value) { @@ -1440,6 +1455,7 @@ public Builder setDeviceName( * * * string device_name = 5; + * @return This builder for chaining. */ public Builder clearDeviceName() { @@ -1453,6 +1469,8 @@ public Builder clearDeviceName() { * * * string device_name = 5; + * @param value The bytes for deviceName to set. + * @return This builder for chaining. */ public Builder setDeviceNameBytes( com.google.protobuf.ByteString value) { @@ -1479,6 +1497,7 @@ private void ensureInputNamesIsMutable() { * * * repeated string input_names = 6; + * @return A list containing the inputNames. */ public com.google.protobuf.ProtocolStringList getInputNamesList() { @@ -1490,6 +1509,7 @@ private void ensureInputNamesIsMutable() { * * * repeated string input_names = 6; + * @return The count of inputNames. */ public int getInputNamesCount() { return inputNames_.size(); @@ -1500,6 +1520,8 @@ public int getInputNamesCount() { * * * repeated string input_names = 6; + * @param index The index of the element to return. + * @return The inputNames at the given index. */ public java.lang.String getInputNames(int index) { return inputNames_.get(index); @@ -1510,6 +1532,8 @@ public java.lang.String getInputNames(int index) { * * * repeated string input_names = 6; + * @param index The index of the value to return. + * @return The bytes of the inputNames at the given index. */ public com.google.protobuf.ByteString getInputNamesBytes(int index) { @@ -1521,6 +1545,9 @@ public java.lang.String getInputNames(int index) { * * * repeated string input_names = 6; + * @param index The index to set the value at. + * @param value The inputNames to set. + * @return This builder for chaining. */ public Builder setInputNames( int index, java.lang.String value) { @@ -1538,6 +1565,8 @@ public Builder setInputNames( * * * repeated string input_names = 6; + * @param value The inputNames to add. + * @return This builder for chaining. */ public Builder addInputNames( java.lang.String value) { @@ -1555,6 +1584,8 @@ public Builder addInputNames( * * * repeated string input_names = 6; + * @param values The inputNames to add. + * @return This builder for chaining. */ public Builder addAllInputNames( java.lang.Iterable values) { @@ -1570,6 +1601,7 @@ public Builder addAllInputNames( * * * repeated string input_names = 6; + * @return This builder for chaining. */ public Builder clearInputNames() { inputNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1583,6 +1615,8 @@ public Builder clearInputNames() { * * * repeated string input_names = 6; + * @param value The bytes of the inputNames to add. + * @return This builder for chaining. */ public Builder addInputNamesBytes( com.google.protobuf.ByteString value) { @@ -1603,7 +1637,9 @@ public Builder addInputNamesBytes( * * * int32 num_outputs = 7; + * @return The numOutputs. */ + @java.lang.Override public int getNumOutputs() { return numOutputs_; } @@ -1613,6 +1649,8 @@ public int getNumOutputs() { * * * int32 num_outputs = 7; + * @param value The numOutputs to set. + * @return This builder for chaining. */ public Builder setNumOutputs(int value) { @@ -1626,6 +1664,7 @@ public Builder setNumOutputs(int value) { * * * int32 num_outputs = 7; + * @return This builder for chaining. */ public Builder clearNumOutputs() { @@ -1634,15 +1673,16 @@ public Builder clearNumOutputs() { return this; } - private org.tensorflow.proto.util.CodeLocation codeLocation_; + private org.tensorflow.proto.CodeLocation codeLocation_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.CodeLocation, org.tensorflow.proto.util.CodeLocation.Builder, org.tensorflow.proto.util.CodeLocationOrBuilder> codeLocationBuilder_; + org.tensorflow.proto.CodeLocation, org.tensorflow.proto.CodeLocation.Builder, org.tensorflow.proto.CodeLocationOrBuilder> codeLocationBuilder_; /** *
      * The unique ID for code location (stack trace) of the op's creation.
      * 
* * .tensorflow.CodeLocation code_location = 8; + * @return Whether the codeLocation field is set. */ public boolean hasCodeLocation() { return codeLocationBuilder_ != null || codeLocation_ != null; @@ -1653,10 +1693,11 @@ public boolean hasCodeLocation() { * * * .tensorflow.CodeLocation code_location = 8; + * @return The codeLocation. */ - public org.tensorflow.proto.util.CodeLocation getCodeLocation() { + public org.tensorflow.proto.CodeLocation getCodeLocation() { if (codeLocationBuilder_ == null) { - return codeLocation_ == null ? org.tensorflow.proto.util.CodeLocation.getDefaultInstance() : codeLocation_; + return codeLocation_ == null ? org.tensorflow.proto.CodeLocation.getDefaultInstance() : codeLocation_; } else { return codeLocationBuilder_.getMessage(); } @@ -1668,7 +1709,7 @@ public org.tensorflow.proto.util.CodeLocation getCodeLocation() { * * .tensorflow.CodeLocation code_location = 8; */ - public Builder setCodeLocation(org.tensorflow.proto.util.CodeLocation value) { + public Builder setCodeLocation(org.tensorflow.proto.CodeLocation value) { if (codeLocationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1689,7 +1730,7 @@ public Builder setCodeLocation(org.tensorflow.proto.util.CodeLocation value) { * .tensorflow.CodeLocation code_location = 8; */ public Builder setCodeLocation( - org.tensorflow.proto.util.CodeLocation.Builder builderForValue) { + org.tensorflow.proto.CodeLocation.Builder builderForValue) { if (codeLocationBuilder_ == null) { codeLocation_ = builderForValue.build(); onChanged(); @@ -1706,11 +1747,11 @@ public Builder setCodeLocation( * * .tensorflow.CodeLocation code_location = 8; */ - public Builder mergeCodeLocation(org.tensorflow.proto.util.CodeLocation value) { + public Builder mergeCodeLocation(org.tensorflow.proto.CodeLocation value) { if (codeLocationBuilder_ == null) { if (codeLocation_ != null) { codeLocation_ = - org.tensorflow.proto.util.CodeLocation.newBuilder(codeLocation_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.CodeLocation.newBuilder(codeLocation_).mergeFrom(value).buildPartial(); } else { codeLocation_ = value; } @@ -1746,7 +1787,7 @@ public Builder clearCodeLocation() { * * .tensorflow.CodeLocation code_location = 8; */ - public org.tensorflow.proto.util.CodeLocation.Builder getCodeLocationBuilder() { + public org.tensorflow.proto.CodeLocation.Builder getCodeLocationBuilder() { onChanged(); return getCodeLocationFieldBuilder().getBuilder(); @@ -1758,12 +1799,12 @@ public org.tensorflow.proto.util.CodeLocation.Builder getCodeLocationBuilder() { * * .tensorflow.CodeLocation code_location = 8; */ - public org.tensorflow.proto.util.CodeLocationOrBuilder getCodeLocationOrBuilder() { + public org.tensorflow.proto.CodeLocationOrBuilder getCodeLocationOrBuilder() { if (codeLocationBuilder_ != null) { return codeLocationBuilder_.getMessageOrBuilder(); } else { return codeLocation_ == null ? - org.tensorflow.proto.util.CodeLocation.getDefaultInstance() : codeLocation_; + org.tensorflow.proto.CodeLocation.getDefaultInstance() : codeLocation_; } } /** @@ -1774,11 +1815,11 @@ public org.tensorflow.proto.util.CodeLocationOrBuilder getCodeLocationOrBuilder( * .tensorflow.CodeLocation code_location = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.CodeLocation, org.tensorflow.proto.util.CodeLocation.Builder, org.tensorflow.proto.util.CodeLocationOrBuilder> + org.tensorflow.proto.CodeLocation, org.tensorflow.proto.CodeLocation.Builder, org.tensorflow.proto.CodeLocationOrBuilder> getCodeLocationFieldBuilder() { if (codeLocationBuilder_ == null) { codeLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.CodeLocation, org.tensorflow.proto.util.CodeLocation.Builder, org.tensorflow.proto.util.CodeLocationOrBuilder>( + org.tensorflow.proto.CodeLocation, org.tensorflow.proto.CodeLocation.Builder, org.tensorflow.proto.CodeLocationOrBuilder>( getCodeLocation(), getParentForChildren(), isClean()); @@ -1800,6 +1841,7 @@ private void ensureOutputTensorIdsIsMutable() { * * * repeated int32 output_tensor_ids = 9; + * @return A list containing the outputTensorIds. */ public java.util.List getOutputTensorIdsList() { @@ -1812,6 +1854,7 @@ private void ensureOutputTensorIdsIsMutable() { * * * repeated int32 output_tensor_ids = 9; + * @return The count of outputTensorIds. */ public int getOutputTensorIdsCount() { return outputTensorIds_.size(); @@ -1822,6 +1865,8 @@ public int getOutputTensorIdsCount() { * * * repeated int32 output_tensor_ids = 9; + * @param index The index of the element to return. + * @return The outputTensorIds at the given index. */ public int getOutputTensorIds(int index) { return outputTensorIds_.getInt(index); @@ -1832,6 +1877,9 @@ public int getOutputTensorIds(int index) { * * * repeated int32 output_tensor_ids = 9; + * @param index The index to set the value at. + * @param value The outputTensorIds to set. + * @return This builder for chaining. */ public Builder setOutputTensorIds( int index, int value) { @@ -1846,6 +1894,8 @@ public Builder setOutputTensorIds( * * * repeated int32 output_tensor_ids = 9; + * @param value The outputTensorIds to add. + * @return This builder for chaining. */ public Builder addOutputTensorIds(int value) { ensureOutputTensorIdsIsMutable(); @@ -1859,6 +1909,8 @@ public Builder addOutputTensorIds(int value) { * * * repeated int32 output_tensor_ids = 9; + * @param values The outputTensorIds to add. + * @return This builder for chaining. */ public Builder addAllOutputTensorIds( java.lang.Iterable values) { @@ -1874,6 +1926,7 @@ public Builder addAllOutputTensorIds( * * * repeated int32 output_tensor_ids = 9; + * @return This builder for chaining. */ public Builder clearOutputTensorIds() { outputTensorIds_ = emptyIntList(); @@ -1898,12 +1951,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.GraphOpCreation) - private static final org.tensorflow.proto.util.GraphOpCreation DEFAULT_INSTANCE; + private static final org.tensorflow.proto.GraphOpCreation DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.util.GraphOpCreation(); + DEFAULT_INSTANCE = new org.tensorflow.proto.GraphOpCreation(); } - public static org.tensorflow.proto.util.GraphOpCreation getDefaultInstance() { + public static org.tensorflow.proto.GraphOpCreation getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1914,7 +1967,18 @@ public GraphOpCreation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GraphOpCreation(input, extensionRegistry); + 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(); } }; @@ -1928,7 +1992,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.util.GraphOpCreation getDefaultInstanceForType() { + public org.tensorflow.proto.GraphOpCreation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/GraphOpCreationOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphOpCreationOrBuilder.java similarity index 79% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/GraphOpCreationOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphOpCreationOrBuilder.java index 60abaf9cdfe..b89ff27bd26 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/GraphOpCreationOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphOpCreationOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug_event.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; public interface GraphOpCreationOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.GraphOpCreation) @@ -13,6 +13,7 @@ public interface GraphOpCreationOrBuilder extends * * * string op_type = 1; + * @return The opType. */ java.lang.String getOpType(); /** @@ -21,6 +22,7 @@ public interface GraphOpCreationOrBuilder extends * * * string op_type = 1; + * @return The bytes for opType. */ com.google.protobuf.ByteString getOpTypeBytes(); @@ -31,6 +33,7 @@ public interface GraphOpCreationOrBuilder extends * * * string op_name = 2; + * @return The opName. */ java.lang.String getOpName(); /** @@ -39,6 +42,7 @@ public interface GraphOpCreationOrBuilder extends * * * string op_name = 2; + * @return The bytes for opName. */ com.google.protobuf.ByteString getOpNameBytes(); @@ -49,6 +53,7 @@ public interface GraphOpCreationOrBuilder extends * * * string graph_name = 3; + * @return The graphName. */ java.lang.String getGraphName(); /** @@ -57,6 +62,7 @@ public interface GraphOpCreationOrBuilder extends * * * string graph_name = 3; + * @return The bytes for graphName. */ com.google.protobuf.ByteString getGraphNameBytes(); @@ -68,6 +74,7 @@ public interface GraphOpCreationOrBuilder extends * * * string graph_id = 4; + * @return The graphId. */ java.lang.String getGraphId(); /** @@ -77,6 +84,7 @@ public interface GraphOpCreationOrBuilder extends * * * string graph_id = 4; + * @return The bytes for graphId. */ com.google.protobuf.ByteString getGraphIdBytes(); @@ -87,6 +95,7 @@ public interface GraphOpCreationOrBuilder extends * * * string device_name = 5; + * @return The deviceName. */ java.lang.String getDeviceName(); /** @@ -95,6 +104,7 @@ public interface GraphOpCreationOrBuilder extends * * * string device_name = 5; + * @return The bytes for deviceName. */ com.google.protobuf.ByteString getDeviceNameBytes(); @@ -105,6 +115,7 @@ public interface GraphOpCreationOrBuilder extends * * * repeated string input_names = 6; + * @return A list containing the inputNames. */ java.util.List getInputNamesList(); @@ -114,6 +125,7 @@ public interface GraphOpCreationOrBuilder extends * * * repeated string input_names = 6; + * @return The count of inputNames. */ int getInputNamesCount(); /** @@ -122,6 +134,8 @@ public interface GraphOpCreationOrBuilder extends * * * repeated string input_names = 6; + * @param index The index of the element to return. + * @return The inputNames at the given index. */ java.lang.String getInputNames(int index); /** @@ -130,6 +144,8 @@ public interface GraphOpCreationOrBuilder extends * * * repeated string input_names = 6; + * @param index The index of the value to return. + * @return The bytes of the inputNames at the given index. */ com.google.protobuf.ByteString getInputNamesBytes(int index); @@ -140,6 +156,7 @@ public interface GraphOpCreationOrBuilder extends * * * int32 num_outputs = 7; + * @return The numOutputs. */ int getNumOutputs(); @@ -149,6 +166,7 @@ public interface GraphOpCreationOrBuilder extends * * * .tensorflow.CodeLocation code_location = 8; + * @return Whether the codeLocation field is set. */ boolean hasCodeLocation(); /** @@ -157,8 +175,9 @@ public interface GraphOpCreationOrBuilder extends * * * .tensorflow.CodeLocation code_location = 8; + * @return The codeLocation. */ - org.tensorflow.proto.util.CodeLocation getCodeLocation(); + org.tensorflow.proto.CodeLocation getCodeLocation(); /** *
    * The unique ID for code location (stack trace) of the op's creation.
@@ -166,7 +185,7 @@ public interface GraphOpCreationOrBuilder extends
    *
    * .tensorflow.CodeLocation code_location = 8;
    */
-  org.tensorflow.proto.util.CodeLocationOrBuilder getCodeLocationOrBuilder();
+  org.tensorflow.proto.CodeLocationOrBuilder getCodeLocationOrBuilder();
 
   /**
    * 
@@ -174,6 +193,7 @@ public interface GraphOpCreationOrBuilder extends
    * 
* * repeated int32 output_tensor_ids = 9; + * @return A list containing the outputTensorIds. */ java.util.List getOutputTensorIdsList(); /** @@ -182,6 +202,7 @@ public interface GraphOpCreationOrBuilder extends *
* * repeated int32 output_tensor_ids = 9; + * @return The count of outputTensorIds. */ int getOutputTensorIdsCount(); /** @@ -190,6 +211,8 @@ public interface GraphOpCreationOrBuilder extends * * * repeated int32 output_tensor_ids = 9; + * @param index The index of the element to return. + * @return The outputTensorIds at the given index. */ int getOutputTensorIds(int index); } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphOptions.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphOptions.java similarity index 77% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphOptions.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphOptions.java index 5916d82ca1c..062e96016bd 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphOptions.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphOptions.java @@ -1,12 +1,12 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/config.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; /** * Protobuf type {@code tensorflow.GraphOptions} */ -public final class GraphOptions extends +public final class GraphOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.GraphOptions) GraphOptionsOrBuilder { @@ -30,115 +30,17 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private GraphOptions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 16: { - - enableRecvScheduling_ = input.readBool(); - break; - } - case 26: { - org.tensorflow.proto.framework.OptimizerOptions.Builder subBuilder = null; - if (optimizerOptions_ != null) { - subBuilder = optimizerOptions_.toBuilder(); - } - optimizerOptions_ = input.readMessage(org.tensorflow.proto.framework.OptimizerOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(optimizerOptions_); - optimizerOptions_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - - buildCostModel_ = input.readInt64(); - break; - } - case 40: { - - inferShapes_ = input.readBool(); - break; - } - case 48: { - - placePrunedGraph_ = input.readBool(); - break; - } - case 56: { - - enableBfloat16Sendrecv_ = input.readBool(); - break; - } - case 64: { - - timelineStep_ = input.readInt32(); - break; - } - case 72: { - - buildCostModelAfter_ = input.readInt64(); - break; - } - case 82: { - org.tensorflow.proto.framework.RewriterConfig.Builder subBuilder = null; - if (rewriteOptions_ != null) { - subBuilder = rewriteOptions_.toBuilder(); - } - rewriteOptions_ = input.readMessage(org.tensorflow.proto.framework.RewriterConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rewriteOptions_); - rewriteOptions_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_GraphOptions_descriptor; + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_GraphOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_GraphOptions_fieldAccessorTable + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_GraphOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.GraphOptions.class, org.tensorflow.proto.framework.GraphOptions.Builder.class); + org.tensorflow.proto.GraphOptions.class, org.tensorflow.proto.GraphOptions.Builder.class); } public static final int ENABLE_RECV_SCHEDULING_FIELD_NUMBER = 2; @@ -150,20 +52,24 @@ private GraphOptions( * * * bool enable_recv_scheduling = 2; + * @return The enableRecvScheduling. */ + @java.lang.Override public boolean getEnableRecvScheduling() { return enableRecvScheduling_; } public static final int OPTIMIZER_OPTIONS_FIELD_NUMBER = 3; - private org.tensorflow.proto.framework.OptimizerOptions optimizerOptions_; + private org.tensorflow.proto.OptimizerOptions optimizerOptions_; /** *
    * Options controlling how graph is optimized.
    * 
* * .tensorflow.OptimizerOptions optimizer_options = 3; + * @return Whether the optimizerOptions field is set. */ + @java.lang.Override public boolean hasOptimizerOptions() { return optimizerOptions_ != null; } @@ -173,9 +79,11 @@ public boolean hasOptimizerOptions() { * * * .tensorflow.OptimizerOptions optimizer_options = 3; + * @return The optimizerOptions. */ - public org.tensorflow.proto.framework.OptimizerOptions getOptimizerOptions() { - return optimizerOptions_ == null ? org.tensorflow.proto.framework.OptimizerOptions.getDefaultInstance() : optimizerOptions_; + @java.lang.Override + public org.tensorflow.proto.OptimizerOptions getOptimizerOptions() { + return optimizerOptions_ == null ? org.tensorflow.proto.OptimizerOptions.getDefaultInstance() : optimizerOptions_; } /** *
@@ -184,7 +92,8 @@ public org.tensorflow.proto.framework.OptimizerOptions getOptimizerOptions() {
    *
    * .tensorflow.OptimizerOptions optimizer_options = 3;
    */
-  public org.tensorflow.proto.framework.OptimizerOptionsOrBuilder getOptimizerOptionsOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.OptimizerOptionsOrBuilder getOptimizerOptionsOrBuilder() {
     return getOptimizerOptions();
   }
 
@@ -198,7 +107,9 @@ public org.tensorflow.proto.framework.OptimizerOptionsOrBuilder getOptimizerOpti
    * 
* * int64 build_cost_model = 4; + * @return The buildCostModel. */ + @java.lang.Override public long getBuildCostModel() { return buildCostModel_; } @@ -212,7 +123,9 @@ public long getBuildCostModel() { * * * int64 build_cost_model_after = 9; + * @return The buildCostModelAfter. */ + @java.lang.Override public long getBuildCostModelAfter() { return buildCostModelAfter_; } @@ -226,7 +139,9 @@ public long getBuildCostModelAfter() { * * * bool infer_shapes = 5; + * @return The inferShapes. */ + @java.lang.Override public boolean getInferShapes() { return inferShapes_; } @@ -244,7 +159,9 @@ public boolean getInferShapes() { * * * bool place_pruned_graph = 6; + * @return The placePrunedGraph. */ + @java.lang.Override public boolean getPlacePrunedGraph() { return placePrunedGraph_; } @@ -257,7 +174,9 @@ public boolean getPlacePrunedGraph() { * * * bool enable_bfloat16_sendrecv = 7; + * @return The enableBfloat16Sendrecv. */ + @java.lang.Override public boolean getEnableBfloat16Sendrecv() { return enableBfloat16Sendrecv_; } @@ -271,13 +190,15 @@ public boolean getEnableBfloat16Sendrecv() { * * * int32 timeline_step = 8; + * @return The timelineStep. */ + @java.lang.Override public int getTimelineStep() { return timelineStep_; } public static final int REWRITE_OPTIONS_FIELD_NUMBER = 10; - private org.tensorflow.proto.framework.RewriterConfig rewriteOptions_; + private org.tensorflow.proto.RewriterConfig rewriteOptions_; /** *
    * Options that control the type and amount of graph rewriting.
@@ -286,7 +207,9 @@ public int getTimelineStep() {
    * 
* * .tensorflow.RewriterConfig rewrite_options = 10; + * @return Whether the rewriteOptions field is set. */ + @java.lang.Override public boolean hasRewriteOptions() { return rewriteOptions_ != null; } @@ -298,9 +221,11 @@ public boolean hasRewriteOptions() { * * * .tensorflow.RewriterConfig rewrite_options = 10; + * @return The rewriteOptions. */ - public org.tensorflow.proto.framework.RewriterConfig getRewriteOptions() { - return rewriteOptions_ == null ? org.tensorflow.proto.framework.RewriterConfig.getDefaultInstance() : rewriteOptions_; + @java.lang.Override + public org.tensorflow.proto.RewriterConfig getRewriteOptions() { + return rewriteOptions_ == null ? org.tensorflow.proto.RewriterConfig.getDefaultInstance() : rewriteOptions_; } /** *
@@ -311,7 +236,8 @@ public org.tensorflow.proto.framework.RewriterConfig getRewriteOptions() {
    *
    * .tensorflow.RewriterConfig rewrite_options = 10;
    */
-  public org.tensorflow.proto.framework.RewriterConfigOrBuilder getRewriteOptionsOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.RewriterConfigOrBuilder getRewriteOptionsOrBuilder() {
     return getRewriteOptions();
   }
 
@@ -356,7 +282,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (rewriteOptions_ != null) {
       output.writeMessage(10, getRewriteOptions());
     }
-    unknownFields.writeTo(output);
+    getUnknownFields().writeTo(output);
   }
 
   @java.lang.Override
@@ -401,7 +327,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
         .computeMessageSize(10, getRewriteOptions());
     }
-    size += unknownFields.getSerializedSize();
+    size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
     return size;
   }
@@ -411,10 +337,10 @@ public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
      return true;
     }
-    if (!(obj instanceof org.tensorflow.proto.framework.GraphOptions)) {
+    if (!(obj instanceof org.tensorflow.proto.GraphOptions)) {
       return super.equals(obj);
     }
-    org.tensorflow.proto.framework.GraphOptions other = (org.tensorflow.proto.framework.GraphOptions) obj;
+    org.tensorflow.proto.GraphOptions other = (org.tensorflow.proto.GraphOptions) obj;
 
     if (getEnableRecvScheduling()
         != other.getEnableRecvScheduling()) return false;
@@ -440,7 +366,7 @@ public boolean equals(final java.lang.Object obj) {
       if (!getRewriteOptions()
           .equals(other.getRewriteOptions())) return false;
     }
-    if (!unknownFields.equals(other.unknownFields)) return false;
+    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
 
@@ -479,74 +405,74 @@ public int hashCode() {
       hash = (37 * hash) + REWRITE_OPTIONS_FIELD_NUMBER;
       hash = (53 * hash) + getRewriteOptions().hashCode();
     }
-    hash = (29 * hash) + unknownFields.hashCode();
+    hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
     return hash;
   }
 
-  public static org.tensorflow.proto.framework.GraphOptions parseFrom(
+  public static org.tensorflow.proto.GraphOptions parseFrom(
       java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.GraphOptions parseFrom(
+  public static org.tensorflow.proto.GraphOptions parseFrom(
       java.nio.ByteBuffer data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.GraphOptions parseFrom(
+  public static org.tensorflow.proto.GraphOptions parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.GraphOptions parseFrom(
+  public static org.tensorflow.proto.GraphOptions parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.GraphOptions parseFrom(byte[] data)
+  public static org.tensorflow.proto.GraphOptions parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.GraphOptions parseFrom(
+  public static org.tensorflow.proto.GraphOptions parseFrom(
       byte[] data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.GraphOptions parseFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.GraphOptions parseFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.GraphOptions parseFrom(
+  public static org.tensorflow.proto.GraphOptions 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 org.tensorflow.proto.framework.GraphOptions parseDelimitedFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.GraphOptions parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.GraphOptions parseDelimitedFrom(
+  public static org.tensorflow.proto.GraphOptions 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 org.tensorflow.proto.framework.GraphOptions parseFrom(
+  public static org.tensorflow.proto.GraphOptions parseFrom(
       com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.GraphOptions parseFrom(
+  public static org.tensorflow.proto.GraphOptions parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
@@ -559,7 +485,7 @@ public static org.tensorflow.proto.framework.GraphOptions parseFrom(
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(org.tensorflow.proto.framework.GraphOptions prototype) {
+  public static Builder newBuilder(org.tensorflow.proto.GraphOptions prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
   @java.lang.Override
@@ -580,34 +506,29 @@ protected Builder newBuilderForType(
   public static final class Builder extends
       com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:tensorflow.GraphOptions)
-      org.tensorflow.proto.framework.GraphOptionsOrBuilder {
+      org.tensorflow.proto.GraphOptionsOrBuilder {
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_GraphOptions_descriptor;
+      return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_GraphOptions_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_GraphOptions_fieldAccessorTable
+      return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_GraphOptions_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              org.tensorflow.proto.framework.GraphOptions.class, org.tensorflow.proto.framework.GraphOptions.Builder.class);
+              org.tensorflow.proto.GraphOptions.class, org.tensorflow.proto.GraphOptions.Builder.class);
     }
 
-    // Construct using org.tensorflow.proto.framework.GraphOptions.newBuilder()
+    // Construct using org.tensorflow.proto.GraphOptions.newBuilder()
     private Builder() {
-      maybeForceBuilderInitialization();
+
     }
 
     private Builder(
         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-      maybeForceBuilderInitialization();
-    }
-    private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+
     }
     @java.lang.Override
     public Builder clear() {
@@ -644,17 +565,17 @@ public Builder clear() {
     @java.lang.Override
     public com.google.protobuf.Descriptors.Descriptor
         getDescriptorForType() {
-      return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_GraphOptions_descriptor;
+      return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_GraphOptions_descriptor;
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.GraphOptions getDefaultInstanceForType() {
-      return org.tensorflow.proto.framework.GraphOptions.getDefaultInstance();
+    public org.tensorflow.proto.GraphOptions getDefaultInstanceForType() {
+      return org.tensorflow.proto.GraphOptions.getDefaultInstance();
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.GraphOptions build() {
-      org.tensorflow.proto.framework.GraphOptions result = buildPartial();
+    public org.tensorflow.proto.GraphOptions build() {
+      org.tensorflow.proto.GraphOptions result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -662,8 +583,8 @@ public org.tensorflow.proto.framework.GraphOptions build() {
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.GraphOptions buildPartial() {
-      org.tensorflow.proto.framework.GraphOptions result = new org.tensorflow.proto.framework.GraphOptions(this);
+    public org.tensorflow.proto.GraphOptions buildPartial() {
+      org.tensorflow.proto.GraphOptions result = new org.tensorflow.proto.GraphOptions(this);
       result.enableRecvScheduling_ = enableRecvScheduling_;
       if (optimizerOptionsBuilder_ == null) {
         result.optimizerOptions_ = optimizerOptions_;
@@ -719,16 +640,16 @@ public Builder addRepeatedField(
     }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof org.tensorflow.proto.framework.GraphOptions) {
-        return mergeFrom((org.tensorflow.proto.framework.GraphOptions)other);
+      if (other instanceof org.tensorflow.proto.GraphOptions) {
+        return mergeFrom((org.tensorflow.proto.GraphOptions)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(org.tensorflow.proto.framework.GraphOptions other) {
-      if (other == org.tensorflow.proto.framework.GraphOptions.getDefaultInstance()) return this;
+    public Builder mergeFrom(org.tensorflow.proto.GraphOptions other) {
+      if (other == org.tensorflow.proto.GraphOptions.getDefaultInstance()) return this;
       if (other.getEnableRecvScheduling() != false) {
         setEnableRecvScheduling(other.getEnableRecvScheduling());
       }
@@ -756,7 +677,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.GraphOptions other) {
       if (other.hasRewriteOptions()) {
         mergeRewriteOptions(other.getRewriteOptions());
       }
-      this.mergeUnknownFields(other.unknownFields);
+      this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
     }
@@ -771,17 +692,79 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      org.tensorflow.proto.framework.GraphOptions parsedMessage = null;
+      if (extensionRegistry == null) {
+        throw new java.lang.NullPointerException();
+      }
       try {
-        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+        boolean done = false;
+        while (!done) {
+          int tag = input.readTag();
+          switch (tag) {
+            case 0:
+              done = true;
+              break;
+            case 16: {
+              enableRecvScheduling_ = input.readBool();
+
+              break;
+            } // case 16
+            case 26: {
+              input.readMessage(
+                  getOptimizerOptionsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 26
+            case 32: {
+              buildCostModel_ = input.readInt64();
+
+              break;
+            } // case 32
+            case 40: {
+              inferShapes_ = input.readBool();
+
+              break;
+            } // case 40
+            case 48: {
+              placePrunedGraph_ = input.readBool();
+
+              break;
+            } // case 48
+            case 56: {
+              enableBfloat16Sendrecv_ = input.readBool();
+
+              break;
+            } // case 56
+            case 64: {
+              timelineStep_ = input.readInt32();
+
+              break;
+            } // case 64
+            case 72: {
+              buildCostModelAfter_ = input.readInt64();
+
+              break;
+            } // case 72
+            case 82: {
+              input.readMessage(
+                  getRewriteOptionsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 82
+            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) {
-        parsedMessage = (org.tensorflow.proto.framework.GraphOptions) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
-        if (parsedMessage != null) {
-          mergeFrom(parsedMessage);
-        }
-      }
+        onChanged();
+      } // finally
       return this;
     }
 
@@ -793,7 +776,9 @@ public Builder mergeFrom(
      * 
* * bool enable_recv_scheduling = 2; + * @return The enableRecvScheduling. */ + @java.lang.Override public boolean getEnableRecvScheduling() { return enableRecvScheduling_; } @@ -804,6 +789,8 @@ public boolean getEnableRecvScheduling() { * * * bool enable_recv_scheduling = 2; + * @param value The enableRecvScheduling to set. + * @return This builder for chaining. */ public Builder setEnableRecvScheduling(boolean value) { @@ -818,6 +805,7 @@ public Builder setEnableRecvScheduling(boolean value) { * * * bool enable_recv_scheduling = 2; + * @return This builder for chaining. */ public Builder clearEnableRecvScheduling() { @@ -826,15 +814,16 @@ public Builder clearEnableRecvScheduling() { return this; } - private org.tensorflow.proto.framework.OptimizerOptions optimizerOptions_; + private org.tensorflow.proto.OptimizerOptions optimizerOptions_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.OptimizerOptions, org.tensorflow.proto.framework.OptimizerOptions.Builder, org.tensorflow.proto.framework.OptimizerOptionsOrBuilder> optimizerOptionsBuilder_; + org.tensorflow.proto.OptimizerOptions, org.tensorflow.proto.OptimizerOptions.Builder, org.tensorflow.proto.OptimizerOptionsOrBuilder> optimizerOptionsBuilder_; /** *
      * Options controlling how graph is optimized.
      * 
* * .tensorflow.OptimizerOptions optimizer_options = 3; + * @return Whether the optimizerOptions field is set. */ public boolean hasOptimizerOptions() { return optimizerOptionsBuilder_ != null || optimizerOptions_ != null; @@ -845,10 +834,11 @@ public boolean hasOptimizerOptions() { * * * .tensorflow.OptimizerOptions optimizer_options = 3; + * @return The optimizerOptions. */ - public org.tensorflow.proto.framework.OptimizerOptions getOptimizerOptions() { + public org.tensorflow.proto.OptimizerOptions getOptimizerOptions() { if (optimizerOptionsBuilder_ == null) { - return optimizerOptions_ == null ? org.tensorflow.proto.framework.OptimizerOptions.getDefaultInstance() : optimizerOptions_; + return optimizerOptions_ == null ? org.tensorflow.proto.OptimizerOptions.getDefaultInstance() : optimizerOptions_; } else { return optimizerOptionsBuilder_.getMessage(); } @@ -860,7 +850,7 @@ public org.tensorflow.proto.framework.OptimizerOptions getOptimizerOptions() { * * .tensorflow.OptimizerOptions optimizer_options = 3; */ - public Builder setOptimizerOptions(org.tensorflow.proto.framework.OptimizerOptions value) { + public Builder setOptimizerOptions(org.tensorflow.proto.OptimizerOptions value) { if (optimizerOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -881,7 +871,7 @@ public Builder setOptimizerOptions(org.tensorflow.proto.framework.OptimizerOptio * .tensorflow.OptimizerOptions optimizer_options = 3; */ public Builder setOptimizerOptions( - org.tensorflow.proto.framework.OptimizerOptions.Builder builderForValue) { + org.tensorflow.proto.OptimizerOptions.Builder builderForValue) { if (optimizerOptionsBuilder_ == null) { optimizerOptions_ = builderForValue.build(); onChanged(); @@ -898,11 +888,11 @@ public Builder setOptimizerOptions( * * .tensorflow.OptimizerOptions optimizer_options = 3; */ - public Builder mergeOptimizerOptions(org.tensorflow.proto.framework.OptimizerOptions value) { + public Builder mergeOptimizerOptions(org.tensorflow.proto.OptimizerOptions value) { if (optimizerOptionsBuilder_ == null) { if (optimizerOptions_ != null) { optimizerOptions_ = - org.tensorflow.proto.framework.OptimizerOptions.newBuilder(optimizerOptions_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.OptimizerOptions.newBuilder(optimizerOptions_).mergeFrom(value).buildPartial(); } else { optimizerOptions_ = value; } @@ -938,7 +928,7 @@ public Builder clearOptimizerOptions() { * * .tensorflow.OptimizerOptions optimizer_options = 3; */ - public org.tensorflow.proto.framework.OptimizerOptions.Builder getOptimizerOptionsBuilder() { + public org.tensorflow.proto.OptimizerOptions.Builder getOptimizerOptionsBuilder() { onChanged(); return getOptimizerOptionsFieldBuilder().getBuilder(); @@ -950,12 +940,12 @@ public org.tensorflow.proto.framework.OptimizerOptions.Builder getOptimizerOptio * * .tensorflow.OptimizerOptions optimizer_options = 3; */ - public org.tensorflow.proto.framework.OptimizerOptionsOrBuilder getOptimizerOptionsOrBuilder() { + public org.tensorflow.proto.OptimizerOptionsOrBuilder getOptimizerOptionsOrBuilder() { if (optimizerOptionsBuilder_ != null) { return optimizerOptionsBuilder_.getMessageOrBuilder(); } else { return optimizerOptions_ == null ? - org.tensorflow.proto.framework.OptimizerOptions.getDefaultInstance() : optimizerOptions_; + org.tensorflow.proto.OptimizerOptions.getDefaultInstance() : optimizerOptions_; } } /** @@ -966,11 +956,11 @@ public org.tensorflow.proto.framework.OptimizerOptionsOrBuilder getOptimizerOpti * .tensorflow.OptimizerOptions optimizer_options = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.OptimizerOptions, org.tensorflow.proto.framework.OptimizerOptions.Builder, org.tensorflow.proto.framework.OptimizerOptionsOrBuilder> + org.tensorflow.proto.OptimizerOptions, org.tensorflow.proto.OptimizerOptions.Builder, org.tensorflow.proto.OptimizerOptionsOrBuilder> getOptimizerOptionsFieldBuilder() { if (optimizerOptionsBuilder_ == null) { optimizerOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.OptimizerOptions, org.tensorflow.proto.framework.OptimizerOptions.Builder, org.tensorflow.proto.framework.OptimizerOptionsOrBuilder>( + org.tensorflow.proto.OptimizerOptions, org.tensorflow.proto.OptimizerOptions.Builder, org.tensorflow.proto.OptimizerOptionsOrBuilder>( getOptimizerOptions(), getParentForChildren(), isClean()); @@ -988,7 +978,9 @@ public org.tensorflow.proto.framework.OptimizerOptionsOrBuilder getOptimizerOpti * * * int64 build_cost_model = 4; + * @return The buildCostModel. */ + @java.lang.Override public long getBuildCostModel() { return buildCostModel_; } @@ -1000,6 +992,8 @@ public long getBuildCostModel() { * * * int64 build_cost_model = 4; + * @param value The buildCostModel to set. + * @return This builder for chaining. */ public Builder setBuildCostModel(long value) { @@ -1015,6 +1009,7 @@ public Builder setBuildCostModel(long value) { * * * int64 build_cost_model = 4; + * @return This builder for chaining. */ public Builder clearBuildCostModel() { @@ -1031,7 +1026,9 @@ public Builder clearBuildCostModel() { * * * int64 build_cost_model_after = 9; + * @return The buildCostModelAfter. */ + @java.lang.Override public long getBuildCostModelAfter() { return buildCostModelAfter_; } @@ -1042,6 +1039,8 @@ public long getBuildCostModelAfter() { * * * int64 build_cost_model_after = 9; + * @param value The buildCostModelAfter to set. + * @return This builder for chaining. */ public Builder setBuildCostModelAfter(long value) { @@ -1056,6 +1055,7 @@ public Builder setBuildCostModelAfter(long value) { * * * int64 build_cost_model_after = 9; + * @return This builder for chaining. */ public Builder clearBuildCostModelAfter() { @@ -1072,7 +1072,9 @@ public Builder clearBuildCostModelAfter() { * * * bool infer_shapes = 5; + * @return The inferShapes. */ + @java.lang.Override public boolean getInferShapes() { return inferShapes_; } @@ -1083,6 +1085,8 @@ public boolean getInferShapes() { * * * bool infer_shapes = 5; + * @param value The inferShapes to set. + * @return This builder for chaining. */ public Builder setInferShapes(boolean value) { @@ -1097,6 +1101,7 @@ public Builder setInferShapes(boolean value) { * * * bool infer_shapes = 5; + * @return This builder for chaining. */ public Builder clearInferShapes() { @@ -1117,7 +1122,9 @@ public Builder clearInferShapes() { * * * bool place_pruned_graph = 6; + * @return The placePrunedGraph. */ + @java.lang.Override public boolean getPlacePrunedGraph() { return placePrunedGraph_; } @@ -1132,6 +1139,8 @@ public boolean getPlacePrunedGraph() { * * * bool place_pruned_graph = 6; + * @param value The placePrunedGraph to set. + * @return This builder for chaining. */ public Builder setPlacePrunedGraph(boolean value) { @@ -1150,6 +1159,7 @@ public Builder setPlacePrunedGraph(boolean value) { * * * bool place_pruned_graph = 6; + * @return This builder for chaining. */ public Builder clearPlacePrunedGraph() { @@ -1165,7 +1175,9 @@ public Builder clearPlacePrunedGraph() { * * * bool enable_bfloat16_sendrecv = 7; + * @return The enableBfloat16Sendrecv. */ + @java.lang.Override public boolean getEnableBfloat16Sendrecv() { return enableBfloat16Sendrecv_; } @@ -1175,6 +1187,8 @@ public boolean getEnableBfloat16Sendrecv() { * * * bool enable_bfloat16_sendrecv = 7; + * @param value The enableBfloat16Sendrecv to set. + * @return This builder for chaining. */ public Builder setEnableBfloat16Sendrecv(boolean value) { @@ -1188,6 +1202,7 @@ public Builder setEnableBfloat16Sendrecv(boolean value) { * * * bool enable_bfloat16_sendrecv = 7; + * @return This builder for chaining. */ public Builder clearEnableBfloat16Sendrecv() { @@ -1204,7 +1219,9 @@ public Builder clearEnableBfloat16Sendrecv() { * * * int32 timeline_step = 8; + * @return The timelineStep. */ + @java.lang.Override public int getTimelineStep() { return timelineStep_; } @@ -1215,6 +1232,8 @@ public int getTimelineStep() { * * * int32 timeline_step = 8; + * @param value The timelineStep to set. + * @return This builder for chaining. */ public Builder setTimelineStep(int value) { @@ -1229,6 +1248,7 @@ public Builder setTimelineStep(int value) { * * * int32 timeline_step = 8; + * @return This builder for chaining. */ public Builder clearTimelineStep() { @@ -1237,9 +1257,9 @@ public Builder clearTimelineStep() { return this; } - private org.tensorflow.proto.framework.RewriterConfig rewriteOptions_; + private org.tensorflow.proto.RewriterConfig rewriteOptions_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.RewriterConfig, org.tensorflow.proto.framework.RewriterConfig.Builder, org.tensorflow.proto.framework.RewriterConfigOrBuilder> rewriteOptionsBuilder_; + org.tensorflow.proto.RewriterConfig, org.tensorflow.proto.RewriterConfig.Builder, org.tensorflow.proto.RewriterConfigOrBuilder> rewriteOptionsBuilder_; /** *
      * Options that control the type and amount of graph rewriting.
@@ -1248,6 +1268,7 @@ public Builder clearTimelineStep() {
      * 
* * .tensorflow.RewriterConfig rewrite_options = 10; + * @return Whether the rewriteOptions field is set. */ public boolean hasRewriteOptions() { return rewriteOptionsBuilder_ != null || rewriteOptions_ != null; @@ -1260,10 +1281,11 @@ public boolean hasRewriteOptions() { * * * .tensorflow.RewriterConfig rewrite_options = 10; + * @return The rewriteOptions. */ - public org.tensorflow.proto.framework.RewriterConfig getRewriteOptions() { + public org.tensorflow.proto.RewriterConfig getRewriteOptions() { if (rewriteOptionsBuilder_ == null) { - return rewriteOptions_ == null ? org.tensorflow.proto.framework.RewriterConfig.getDefaultInstance() : rewriteOptions_; + return rewriteOptions_ == null ? org.tensorflow.proto.RewriterConfig.getDefaultInstance() : rewriteOptions_; } else { return rewriteOptionsBuilder_.getMessage(); } @@ -1277,7 +1299,7 @@ public org.tensorflow.proto.framework.RewriterConfig getRewriteOptions() { * * .tensorflow.RewriterConfig rewrite_options = 10; */ - public Builder setRewriteOptions(org.tensorflow.proto.framework.RewriterConfig value) { + public Builder setRewriteOptions(org.tensorflow.proto.RewriterConfig value) { if (rewriteOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1300,7 +1322,7 @@ public Builder setRewriteOptions(org.tensorflow.proto.framework.RewriterConfig v * .tensorflow.RewriterConfig rewrite_options = 10; */ public Builder setRewriteOptions( - org.tensorflow.proto.framework.RewriterConfig.Builder builderForValue) { + org.tensorflow.proto.RewriterConfig.Builder builderForValue) { if (rewriteOptionsBuilder_ == null) { rewriteOptions_ = builderForValue.build(); onChanged(); @@ -1319,11 +1341,11 @@ public Builder setRewriteOptions( * * .tensorflow.RewriterConfig rewrite_options = 10; */ - public Builder mergeRewriteOptions(org.tensorflow.proto.framework.RewriterConfig value) { + public Builder mergeRewriteOptions(org.tensorflow.proto.RewriterConfig value) { if (rewriteOptionsBuilder_ == null) { if (rewriteOptions_ != null) { rewriteOptions_ = - org.tensorflow.proto.framework.RewriterConfig.newBuilder(rewriteOptions_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.RewriterConfig.newBuilder(rewriteOptions_).mergeFrom(value).buildPartial(); } else { rewriteOptions_ = value; } @@ -1363,7 +1385,7 @@ public Builder clearRewriteOptions() { * * .tensorflow.RewriterConfig rewrite_options = 10; */ - public org.tensorflow.proto.framework.RewriterConfig.Builder getRewriteOptionsBuilder() { + public org.tensorflow.proto.RewriterConfig.Builder getRewriteOptionsBuilder() { onChanged(); return getRewriteOptionsFieldBuilder().getBuilder(); @@ -1377,12 +1399,12 @@ public org.tensorflow.proto.framework.RewriterConfig.Builder getRewriteOptionsBu * * .tensorflow.RewriterConfig rewrite_options = 10; */ - public org.tensorflow.proto.framework.RewriterConfigOrBuilder getRewriteOptionsOrBuilder() { + public org.tensorflow.proto.RewriterConfigOrBuilder getRewriteOptionsOrBuilder() { if (rewriteOptionsBuilder_ != null) { return rewriteOptionsBuilder_.getMessageOrBuilder(); } else { return rewriteOptions_ == null ? - org.tensorflow.proto.framework.RewriterConfig.getDefaultInstance() : rewriteOptions_; + org.tensorflow.proto.RewriterConfig.getDefaultInstance() : rewriteOptions_; } } /** @@ -1395,11 +1417,11 @@ public org.tensorflow.proto.framework.RewriterConfigOrBuilder getRewriteOptionsO * .tensorflow.RewriterConfig rewrite_options = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.RewriterConfig, org.tensorflow.proto.framework.RewriterConfig.Builder, org.tensorflow.proto.framework.RewriterConfigOrBuilder> + org.tensorflow.proto.RewriterConfig, org.tensorflow.proto.RewriterConfig.Builder, org.tensorflow.proto.RewriterConfigOrBuilder> getRewriteOptionsFieldBuilder() { if (rewriteOptionsBuilder_ == null) { rewriteOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.RewriterConfig, org.tensorflow.proto.framework.RewriterConfig.Builder, org.tensorflow.proto.framework.RewriterConfigOrBuilder>( + org.tensorflow.proto.RewriterConfig, org.tensorflow.proto.RewriterConfig.Builder, org.tensorflow.proto.RewriterConfigOrBuilder>( getRewriteOptions(), getParentForChildren(), isClean()); @@ -1424,12 +1446,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.GraphOptions) - private static final org.tensorflow.proto.framework.GraphOptions DEFAULT_INSTANCE; + private static final org.tensorflow.proto.GraphOptions DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.GraphOptions(); + DEFAULT_INSTANCE = new org.tensorflow.proto.GraphOptions(); } - public static org.tensorflow.proto.framework.GraphOptions getDefaultInstance() { + public static org.tensorflow.proto.GraphOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1440,7 +1462,18 @@ public GraphOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GraphOptions(input, extensionRegistry); + 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(); } }; @@ -1454,7 +1487,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.GraphOptions getDefaultInstanceForType() { + public org.tensorflow.proto.GraphOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphOptionsOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphOptionsOrBuilder.java similarity index 83% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphOptionsOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphOptionsOrBuilder.java index bc373a1f956..279f39ab0b1 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphOptionsOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphOptionsOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/config.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface GraphOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.GraphOptions) @@ -14,6 +14,7 @@ public interface GraphOptionsOrBuilder extends * * * bool enable_recv_scheduling = 2; + * @return The enableRecvScheduling. */ boolean getEnableRecvScheduling(); @@ -23,6 +24,7 @@ public interface GraphOptionsOrBuilder extends * * * .tensorflow.OptimizerOptions optimizer_options = 3; + * @return Whether the optimizerOptions field is set. */ boolean hasOptimizerOptions(); /** @@ -31,8 +33,9 @@ public interface GraphOptionsOrBuilder extends * * * .tensorflow.OptimizerOptions optimizer_options = 3; + * @return The optimizerOptions. */ - org.tensorflow.proto.framework.OptimizerOptions getOptimizerOptions(); + org.tensorflow.proto.OptimizerOptions getOptimizerOptions(); /** *
    * Options controlling how graph is optimized.
@@ -40,7 +43,7 @@ public interface GraphOptionsOrBuilder extends
    *
    * .tensorflow.OptimizerOptions optimizer_options = 3;
    */
-  org.tensorflow.proto.framework.OptimizerOptionsOrBuilder getOptimizerOptionsOrBuilder();
+  org.tensorflow.proto.OptimizerOptionsOrBuilder getOptimizerOptionsOrBuilder();
 
   /**
    * 
@@ -50,6 +53,7 @@ public interface GraphOptionsOrBuilder extends
    * 
* * int64 build_cost_model = 4; + * @return The buildCostModel. */ long getBuildCostModel(); @@ -60,6 +64,7 @@ public interface GraphOptionsOrBuilder extends *
* * int64 build_cost_model_after = 9; + * @return The buildCostModelAfter. */ long getBuildCostModelAfter(); @@ -70,6 +75,7 @@ public interface GraphOptionsOrBuilder extends * * * bool infer_shapes = 5; + * @return The inferShapes. */ boolean getInferShapes(); @@ -84,6 +90,7 @@ public interface GraphOptionsOrBuilder extends * * * bool place_pruned_graph = 6; + * @return The placePrunedGraph. */ boolean getPlacePrunedGraph(); @@ -93,6 +100,7 @@ public interface GraphOptionsOrBuilder extends * * * bool enable_bfloat16_sendrecv = 7; + * @return The enableBfloat16Sendrecv. */ boolean getEnableBfloat16Sendrecv(); @@ -103,6 +111,7 @@ public interface GraphOptionsOrBuilder extends * * * int32 timeline_step = 8; + * @return The timelineStep. */ int getTimelineStep(); @@ -114,6 +123,7 @@ public interface GraphOptionsOrBuilder extends * * * .tensorflow.RewriterConfig rewrite_options = 10; + * @return Whether the rewriteOptions field is set. */ boolean hasRewriteOptions(); /** @@ -124,8 +134,9 @@ public interface GraphOptionsOrBuilder extends * * * .tensorflow.RewriterConfig rewrite_options = 10; + * @return The rewriteOptions. */ - org.tensorflow.proto.framework.RewriterConfig getRewriteOptions(); + org.tensorflow.proto.RewriterConfig getRewriteOptions(); /** *
    * Options that control the type and amount of graph rewriting.
@@ -135,5 +146,5 @@ public interface GraphOptionsOrBuilder extends
    *
    * .tensorflow.RewriterConfig rewrite_options = 10;
    */
-  org.tensorflow.proto.framework.RewriterConfigOrBuilder getRewriteOptionsOrBuilder();
+  org.tensorflow.proto.RewriterConfigOrBuilder getRewriteOptionsOrBuilder();
 }
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphProtos.java
new file mode 100644
index 00000000000..05e2337b81e
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphProtos.java
@@ -0,0 +1,68 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/framework/graph.proto
+
+package org.tensorflow.proto;
+
+public final class GraphProtos {
+  private GraphProtos() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_GraphDef_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_GraphDef_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n%tensorflow/core/framework/graph.proto\022" +
+      "\ntensorflow\032(tensorflow/core/framework/f" +
+      "unction.proto\0320tensorflow/core/framework" +
+      "/graph_debug_info.proto\032(tensorflow/core" +
+      "/framework/node_def.proto\032(tensorflow/co" +
+      "re/framework/versions.proto\"\315\001\n\010GraphDef" +
+      "\022!\n\004node\030\001 \003(\0132\023.tensorflow.NodeDef\022(\n\010v" +
+      "ersions\030\004 \001(\0132\026.tensorflow.VersionDef\022\023\n" +
+      "\007version\030\003 \001(\005B\002\030\001\022/\n\007library\030\002 \001(\0132\036.te" +
+      "nsorflow.FunctionDefLibrary\022.\n\ndebug_inf" +
+      "o\030\005 \001(\0132\032.tensorflow.GraphDebugInfoBv\n\024o" +
+      "rg.tensorflow.protoB\013GraphProtosP\001ZLgith" +
+      "ub.com/tensorflow/tensorflow/tensorflow/" +
+      "go/core/framework/graph_go_proto\370\001\001b\006pro" +
+      "to3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          org.tensorflow.proto.FunctionProtos.getDescriptor(),
+          org.tensorflow.proto.GraphDebugInfoProtos.getDescriptor(),
+          org.tensorflow.proto.NodeProto.getDescriptor(),
+          org.tensorflow.proto.VersionsProtos.getDescriptor(),
+        });
+    internal_static_tensorflow_GraphDef_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_tensorflow_GraphDef_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_GraphDef_descriptor,
+        new java.lang.String[] { "Node", "Versions", "Version", "Library", "DebugInfo", });
+    org.tensorflow.proto.FunctionProtos.getDescriptor();
+    org.tensorflow.proto.GraphDebugInfoProtos.getDescriptor();
+    org.tensorflow.proto.NodeProto.getDescriptor();
+    org.tensorflow.proto.VersionsProtos.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferConstNodeInfo.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferConstNodeInfo.java
new file mode 100644
index 00000000000..9671b60a763
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferConstNodeInfo.java
@@ -0,0 +1,936 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/framework/graph_transfer_info.proto
+
+package org.tensorflow.proto;
+
+/**
+ * Protobuf type {@code tensorflow.GraphTransferConstNodeInfo}
+ */
+public final class GraphTransferConstNodeInfo extends
+    com.google.protobuf.GeneratedMessageV3 implements
+    // @@protoc_insertion_point(message_implements:tensorflow.GraphTransferConstNodeInfo)
+    GraphTransferConstNodeInfoOrBuilder {
+private static final long serialVersionUID = 0L;
+  // Use GraphTransferConstNodeInfo.newBuilder() to construct.
+  private GraphTransferConstNodeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    super(builder);
+  }
+  private GraphTransferConstNodeInfo() {
+    name_ = "";
+    shape_ = emptyLongList();
+    data_ = com.google.protobuf.ByteString.EMPTY;
+    dtype_ = 0;
+  }
+
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
+    return new GraphTransferConstNodeInfo();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
+    return this.unknownFields;
+  }
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferConstNodeInfo_descriptor;
+  }
+
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internalGetFieldAccessorTable() {
+    return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferConstNodeInfo_fieldAccessorTable
+        .ensureFieldAccessorsInitialized(
+            org.tensorflow.proto.GraphTransferConstNodeInfo.class, org.tensorflow.proto.GraphTransferConstNodeInfo.Builder.class);
+  }
+
+  public static final int NAME_FIELD_NUMBER = 1;
+  private volatile java.lang.Object name_;
+  /**
+   * string name = 1;
+   * @return The name.
+   */
+  @java.lang.Override
+  public java.lang.String getName() {
+    java.lang.Object ref = name_;
+    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();
+      name_ = s;
+      return s;
+    }
+  }
+  /**
+   * string name = 1;
+   * @return The bytes for name.
+   */
+  @java.lang.Override
+  public com.google.protobuf.ByteString
+      getNameBytes() {
+    java.lang.Object ref = name_;
+    if (ref instanceof java.lang.String) {
+      com.google.protobuf.ByteString b = 
+          com.google.protobuf.ByteString.copyFromUtf8(
+              (java.lang.String) ref);
+      name_ = b;
+      return b;
+    } else {
+      return (com.google.protobuf.ByteString) ref;
+    }
+  }
+
+  public static final int NODE_ID_FIELD_NUMBER = 2;
+  private int nodeId_;
+  /**
+   * int32 node_id = 2;
+   * @return The nodeId.
+   */
+  @java.lang.Override
+  public int getNodeId() {
+    return nodeId_;
+  }
+
+  public static final int SHAPE_FIELD_NUMBER = 3;
+  private com.google.protobuf.Internal.LongList shape_;
+  /**
+   * repeated int64 shape = 3;
+   * @return A list containing the shape.
+   */
+  @java.lang.Override
+  public java.util.List
+      getShapeList() {
+    return shape_;
+  }
+  /**
+   * repeated int64 shape = 3;
+   * @return The count of shape.
+   */
+  public int getShapeCount() {
+    return shape_.size();
+  }
+  /**
+   * repeated int64 shape = 3;
+   * @param index The index of the element to return.
+   * @return The shape at the given index.
+   */
+  public long getShape(int index) {
+    return shape_.getLong(index);
+  }
+  private int shapeMemoizedSerializedSize = -1;
+
+  public static final int DATA_FIELD_NUMBER = 4;
+  private com.google.protobuf.ByteString data_;
+  /**
+   * bytes data = 4;
+   * @return The data.
+   */
+  @java.lang.Override
+  public com.google.protobuf.ByteString getData() {
+    return data_;
+  }
+
+  public static final int DTYPE_FIELD_NUMBER = 5;
+  private int dtype_;
+  /**
+   * .tensorflow.DataType dtype = 5;
+   * @return The enum numeric value on the wire for dtype.
+   */
+  @java.lang.Override public int getDtypeValue() {
+    return dtype_;
+  }
+  /**
+   * .tensorflow.DataType dtype = 5;
+   * @return The dtype.
+   */
+  @java.lang.Override public org.tensorflow.proto.DataType getDtype() {
+    @SuppressWarnings("deprecation")
+    org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_);
+    return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result;
+  }
+
+  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 {
+    getSerializedSize();
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+    }
+    if (nodeId_ != 0) {
+      output.writeInt32(2, nodeId_);
+    }
+    if (getShapeList().size() > 0) {
+      output.writeUInt32NoTag(26);
+      output.writeUInt32NoTag(shapeMemoizedSerializedSize);
+    }
+    for (int i = 0; i < shape_.size(); i++) {
+      output.writeInt64NoTag(shape_.getLong(i));
+    }
+    if (!data_.isEmpty()) {
+      output.writeBytes(4, data_);
+    }
+    if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) {
+      output.writeEnum(5, dtype_);
+    }
+    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(name_)) {
+      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+    }
+    if (nodeId_ != 0) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(2, nodeId_);
+    }
+    {
+      int dataSize = 0;
+      for (int i = 0; i < shape_.size(); i++) {
+        dataSize += com.google.protobuf.CodedOutputStream
+          .computeInt64SizeNoTag(shape_.getLong(i));
+      }
+      size += dataSize;
+      if (!getShapeList().isEmpty()) {
+        size += 1;
+        size += com.google.protobuf.CodedOutputStream
+            .computeInt32SizeNoTag(dataSize);
+      }
+      shapeMemoizedSerializedSize = dataSize;
+    }
+    if (!data_.isEmpty()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeBytesSize(4, data_);
+    }
+    if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(5, dtype_);
+    }
+    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 org.tensorflow.proto.GraphTransferConstNodeInfo)) {
+      return super.equals(obj);
+    }
+    org.tensorflow.proto.GraphTransferConstNodeInfo other = (org.tensorflow.proto.GraphTransferConstNodeInfo) obj;
+
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (getNodeId()
+        != other.getNodeId()) return false;
+    if (!getShapeList()
+        .equals(other.getShapeList())) return false;
+    if (!getData()
+        .equals(other.getData())) return false;
+    if (dtype_ != other.dtype_) 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) + NAME_FIELD_NUMBER;
+    hash = (53 * hash) + getName().hashCode();
+    hash = (37 * hash) + NODE_ID_FIELD_NUMBER;
+    hash = (53 * hash) + getNodeId();
+    if (getShapeCount() > 0) {
+      hash = (37 * hash) + SHAPE_FIELD_NUMBER;
+      hash = (53 * hash) + getShapeList().hashCode();
+    }
+    hash = (37 * hash) + DATA_FIELD_NUMBER;
+    hash = (53 * hash) + getData().hashCode();
+    hash = (37 * hash) + DTYPE_FIELD_NUMBER;
+    hash = (53 * hash) + dtype_;
+    hash = (29 * hash) + getUnknownFields().hashCode();
+    memoizedHashCode = hash;
+    return hash;
+  }
+
+  public static org.tensorflow.proto.GraphTransferConstNodeInfo parseFrom(
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.GraphTransferConstNodeInfo parseFrom(
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.GraphTransferConstNodeInfo parseFrom(
+      com.google.protobuf.ByteString data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.GraphTransferConstNodeInfo parseFrom(
+      com.google.protobuf.ByteString data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.GraphTransferConstNodeInfo parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.GraphTransferConstNodeInfo parseFrom(
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.GraphTransferConstNodeInfo parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.GraphTransferConstNodeInfo 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 org.tensorflow.proto.GraphTransferConstNodeInfo parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.GraphTransferConstNodeInfo 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 org.tensorflow.proto.GraphTransferConstNodeInfo parseFrom(
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.GraphTransferConstNodeInfo 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(org.tensorflow.proto.GraphTransferConstNodeInfo prototype) {
+    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+  }
+  @java.lang.Override
+  public Builder toBuilder() {
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
+  }
+
+  @java.lang.Override
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    Builder builder = new Builder(parent);
+    return builder;
+  }
+  /**
+   * Protobuf type {@code tensorflow.GraphTransferConstNodeInfo}
+   */
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
+      // @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferConstNodeInfo)
+      org.tensorflow.proto.GraphTransferConstNodeInfoOrBuilder {
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferConstNodeInfo_descriptor;
+    }
+
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+        internalGetFieldAccessorTable() {
+      return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferConstNodeInfo_fieldAccessorTable
+          .ensureFieldAccessorsInitialized(
+              org.tensorflow.proto.GraphTransferConstNodeInfo.class, org.tensorflow.proto.GraphTransferConstNodeInfo.Builder.class);
+    }
+
+    // Construct using org.tensorflow.proto.GraphTransferConstNodeInfo.newBuilder()
+    private Builder() {
+
+    }
+
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
+    @java.lang.Override
+    public Builder clear() {
+      super.clear();
+      name_ = "";
+
+      nodeId_ = 0;
+
+      shape_ = emptyLongList();
+      bitField0_ = (bitField0_ & ~0x00000001);
+      data_ = com.google.protobuf.ByteString.EMPTY;
+
+      dtype_ = 0;
+
+      return this;
+    }
+
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferConstNodeInfo_descriptor;
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.GraphTransferConstNodeInfo getDefaultInstanceForType() {
+      return org.tensorflow.proto.GraphTransferConstNodeInfo.getDefaultInstance();
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.GraphTransferConstNodeInfo build() {
+      org.tensorflow.proto.GraphTransferConstNodeInfo result = buildPartial();
+      if (!result.isInitialized()) {
+        throw newUninitializedMessageException(result);
+      }
+      return result;
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.GraphTransferConstNodeInfo buildPartial() {
+      org.tensorflow.proto.GraphTransferConstNodeInfo result = new org.tensorflow.proto.GraphTransferConstNodeInfo(this);
+      int from_bitField0_ = bitField0_;
+      result.name_ = name_;
+      result.nodeId_ = nodeId_;
+      if (((bitField0_ & 0x00000001) != 0)) {
+        shape_.makeImmutable();
+        bitField0_ = (bitField0_ & ~0x00000001);
+      }
+      result.shape_ = shape_;
+      result.data_ = data_;
+      result.dtype_ = dtype_;
+      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 org.tensorflow.proto.GraphTransferConstNodeInfo) {
+        return mergeFrom((org.tensorflow.proto.GraphTransferConstNodeInfo)other);
+      } else {
+        super.mergeFrom(other);
+        return this;
+      }
+    }
+
+    public Builder mergeFrom(org.tensorflow.proto.GraphTransferConstNodeInfo other) {
+      if (other == org.tensorflow.proto.GraphTransferConstNodeInfo.getDefaultInstance()) return this;
+      if (!other.getName().isEmpty()) {
+        name_ = other.name_;
+        onChanged();
+      }
+      if (other.getNodeId() != 0) {
+        setNodeId(other.getNodeId());
+      }
+      if (!other.shape_.isEmpty()) {
+        if (shape_.isEmpty()) {
+          shape_ = other.shape_;
+          bitField0_ = (bitField0_ & ~0x00000001);
+        } else {
+          ensureShapeIsMutable();
+          shape_.addAll(other.shape_);
+        }
+        onChanged();
+      }
+      if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
+        setData(other.getData());
+      }
+      if (other.dtype_ != 0) {
+        setDtypeValue(other.getDtypeValue());
+      }
+      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: {
+              name_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 16: {
+              nodeId_ = input.readInt32();
+
+              break;
+            } // case 16
+            case 24: {
+              long v = input.readInt64();
+              ensureShapeIsMutable();
+              shape_.addLong(v);
+              break;
+            } // case 24
+            case 26: {
+              int length = input.readRawVarint32();
+              int limit = input.pushLimit(length);
+              ensureShapeIsMutable();
+              while (input.getBytesUntilLimit() > 0) {
+                shape_.addLong(input.readInt64());
+              }
+              input.popLimit(limit);
+              break;
+            } // case 26
+            case 34: {
+              data_ = input.readBytes();
+
+              break;
+            } // case 34
+            case 40: {
+              dtype_ = input.readEnum();
+
+              break;
+            } // case 40
+            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 name_ = "";
+    /**
+     * string name = 1;
+     * @return The name.
+     */
+    public java.lang.String getName() {
+      java.lang.Object ref = name_;
+      if (!(ref instanceof java.lang.String)) {
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
+        java.lang.String s = bs.toStringUtf8();
+        name_ = s;
+        return s;
+      } else {
+        return (java.lang.String) ref;
+      }
+    }
+    /**
+     * string name = 1;
+     * @return The bytes for name.
+     */
+    public com.google.protobuf.ByteString
+        getNameBytes() {
+      java.lang.Object ref = name_;
+      if (ref instanceof String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        name_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+    /**
+     * string name = 1;
+     * @param value The name to set.
+     * @return This builder for chaining.
+     */
+    public Builder setName(
+        java.lang.String value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  
+      name_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * string name = 1;
+     * @return This builder for chaining.
+     */
+    public Builder clearName() {
+      
+      name_ = getDefaultInstance().getName();
+      onChanged();
+      return this;
+    }
+    /**
+     * string name = 1;
+     * @param value The bytes for name to set.
+     * @return This builder for chaining.
+     */
+    public Builder setNameBytes(
+        com.google.protobuf.ByteString value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  checkByteStringIsUtf8(value);
+      
+      name_ = value;
+      onChanged();
+      return this;
+    }
+
+    private int nodeId_ ;
+    /**
+     * int32 node_id = 2;
+     * @return The nodeId.
+     */
+    @java.lang.Override
+    public int getNodeId() {
+      return nodeId_;
+    }
+    /**
+     * int32 node_id = 2;
+     * @param value The nodeId to set.
+     * @return This builder for chaining.
+     */
+    public Builder setNodeId(int value) {
+      
+      nodeId_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * int32 node_id = 2;
+     * @return This builder for chaining.
+     */
+    public Builder clearNodeId() {
+      
+      nodeId_ = 0;
+      onChanged();
+      return this;
+    }
+
+    private com.google.protobuf.Internal.LongList shape_ = emptyLongList();
+    private void ensureShapeIsMutable() {
+      if (!((bitField0_ & 0x00000001) != 0)) {
+        shape_ = mutableCopy(shape_);
+        bitField0_ |= 0x00000001;
+       }
+    }
+    /**
+     * repeated int64 shape = 3;
+     * @return A list containing the shape.
+     */
+    public java.util.List
+        getShapeList() {
+      return ((bitField0_ & 0x00000001) != 0) ?
+               java.util.Collections.unmodifiableList(shape_) : shape_;
+    }
+    /**
+     * repeated int64 shape = 3;
+     * @return The count of shape.
+     */
+    public int getShapeCount() {
+      return shape_.size();
+    }
+    /**
+     * repeated int64 shape = 3;
+     * @param index The index of the element to return.
+     * @return The shape at the given index.
+     */
+    public long getShape(int index) {
+      return shape_.getLong(index);
+    }
+    /**
+     * repeated int64 shape = 3;
+     * @param index The index to set the value at.
+     * @param value The shape to set.
+     * @return This builder for chaining.
+     */
+    public Builder setShape(
+        int index, long value) {
+      ensureShapeIsMutable();
+      shape_.setLong(index, value);
+      onChanged();
+      return this;
+    }
+    /**
+     * repeated int64 shape = 3;
+     * @param value The shape to add.
+     * @return This builder for chaining.
+     */
+    public Builder addShape(long value) {
+      ensureShapeIsMutable();
+      shape_.addLong(value);
+      onChanged();
+      return this;
+    }
+    /**
+     * repeated int64 shape = 3;
+     * @param values The shape to add.
+     * @return This builder for chaining.
+     */
+    public Builder addAllShape(
+        java.lang.Iterable values) {
+      ensureShapeIsMutable();
+      com.google.protobuf.AbstractMessageLite.Builder.addAll(
+          values, shape_);
+      onChanged();
+      return this;
+    }
+    /**
+     * repeated int64 shape = 3;
+     * @return This builder for chaining.
+     */
+    public Builder clearShape() {
+      shape_ = emptyLongList();
+      bitField0_ = (bitField0_ & ~0x00000001);
+      onChanged();
+      return this;
+    }
+
+    private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
+    /**
+     * bytes data = 4;
+     * @return The data.
+     */
+    @java.lang.Override
+    public com.google.protobuf.ByteString getData() {
+      return data_;
+    }
+    /**
+     * bytes data = 4;
+     * @param value The data to set.
+     * @return This builder for chaining.
+     */
+    public Builder setData(com.google.protobuf.ByteString value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  
+      data_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * bytes data = 4;
+     * @return This builder for chaining.
+     */
+    public Builder clearData() {
+      
+      data_ = getDefaultInstance().getData();
+      onChanged();
+      return this;
+    }
+
+    private int dtype_ = 0;
+    /**
+     * .tensorflow.DataType dtype = 5;
+     * @return The enum numeric value on the wire for dtype.
+     */
+    @java.lang.Override public int getDtypeValue() {
+      return dtype_;
+    }
+    /**
+     * .tensorflow.DataType dtype = 5;
+     * @param value The enum numeric value on the wire for dtype to set.
+     * @return This builder for chaining.
+     */
+    public Builder setDtypeValue(int value) {
+      
+      dtype_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * .tensorflow.DataType dtype = 5;
+     * @return The dtype.
+     */
+    @java.lang.Override
+    public org.tensorflow.proto.DataType getDtype() {
+      @SuppressWarnings("deprecation")
+      org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_);
+      return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result;
+    }
+    /**
+     * .tensorflow.DataType dtype = 5;
+     * @param value The dtype to set.
+     * @return This builder for chaining.
+     */
+    public Builder setDtype(org.tensorflow.proto.DataType value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
+      
+      dtype_ = value.getNumber();
+      onChanged();
+      return this;
+    }
+    /**
+     * .tensorflow.DataType dtype = 5;
+     * @return This builder for chaining.
+     */
+    public Builder clearDtype() {
+      
+      dtype_ = 0;
+      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:tensorflow.GraphTransferConstNodeInfo)
+  }
+
+  // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferConstNodeInfo)
+  private static final org.tensorflow.proto.GraphTransferConstNodeInfo DEFAULT_INSTANCE;
+  static {
+    DEFAULT_INSTANCE = new org.tensorflow.proto.GraphTransferConstNodeInfo();
+  }
+
+  public static org.tensorflow.proto.GraphTransferConstNodeInfo getDefaultInstance() {
+    return DEFAULT_INSTANCE;
+  }
+
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public GraphTransferConstNodeInfo 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 org.tensorflow.proto.GraphTransferConstNodeInfo getDefaultInstanceForType() {
+    return DEFAULT_INSTANCE;
+  }
+
+}
+
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferConstNodeInfoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferConstNodeInfoOrBuilder.java
new file mode 100644
index 00000000000..b77bf57be9c
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferConstNodeInfoOrBuilder.java
@@ -0,0 +1,61 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/framework/graph_transfer_info.proto
+
+package org.tensorflow.proto;
+
+public interface GraphTransferConstNodeInfoOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:tensorflow.GraphTransferConstNodeInfo)
+    com.google.protobuf.MessageOrBuilder {
+
+  /**
+   * string name = 1;
+   * @return The name.
+   */
+  java.lang.String getName();
+  /**
+   * string name = 1;
+   * @return The bytes for name.
+   */
+  com.google.protobuf.ByteString
+      getNameBytes();
+
+  /**
+   * int32 node_id = 2;
+   * @return The nodeId.
+   */
+  int getNodeId();
+
+  /**
+   * repeated int64 shape = 3;
+   * @return A list containing the shape.
+   */
+  java.util.List getShapeList();
+  /**
+   * repeated int64 shape = 3;
+   * @return The count of shape.
+   */
+  int getShapeCount();
+  /**
+   * repeated int64 shape = 3;
+   * @param index The index of the element to return.
+   * @return The shape at the given index.
+   */
+  long getShape(int index);
+
+  /**
+   * bytes data = 4;
+   * @return The data.
+   */
+  com.google.protobuf.ByteString getData();
+
+  /**
+   * .tensorflow.DataType dtype = 5;
+   * @return The enum numeric value on the wire for dtype.
+   */
+  int getDtypeValue();
+  /**
+   * .tensorflow.DataType dtype = 5;
+   * @return The dtype.
+   */
+  org.tensorflow.proto.DataType getDtype();
+}
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferGraphInputNodeInfo.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferGraphInputNodeInfo.java
new file mode 100644
index 00000000000..12f7c5ae7f6
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferGraphInputNodeInfo.java
@@ -0,0 +1,804 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/framework/graph_transfer_info.proto
+
+package org.tensorflow.proto;
+
+/**
+ * Protobuf type {@code tensorflow.GraphTransferGraphInputNodeInfo}
+ */
+public final class GraphTransferGraphInputNodeInfo extends
+    com.google.protobuf.GeneratedMessageV3 implements
+    // @@protoc_insertion_point(message_implements:tensorflow.GraphTransferGraphInputNodeInfo)
+    GraphTransferGraphInputNodeInfoOrBuilder {
+private static final long serialVersionUID = 0L;
+  // Use GraphTransferGraphInputNodeInfo.newBuilder() to construct.
+  private GraphTransferGraphInputNodeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    super(builder);
+  }
+  private GraphTransferGraphInputNodeInfo() {
+    name_ = "";
+    shape_ = emptyLongList();
+    dtype_ = 0;
+  }
+
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
+    return new GraphTransferGraphInputNodeInfo();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
+    return this.unknownFields;
+  }
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferGraphInputNodeInfo_descriptor;
+  }
+
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internalGetFieldAccessorTable() {
+    return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferGraphInputNodeInfo_fieldAccessorTable
+        .ensureFieldAccessorsInitialized(
+            org.tensorflow.proto.GraphTransferGraphInputNodeInfo.class, org.tensorflow.proto.GraphTransferGraphInputNodeInfo.Builder.class);
+  }
+
+  public static final int NAME_FIELD_NUMBER = 1;
+  private volatile java.lang.Object name_;
+  /**
+   * string name = 1;
+   * @return The name.
+   */
+  @java.lang.Override
+  public java.lang.String getName() {
+    java.lang.Object ref = name_;
+    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();
+      name_ = s;
+      return s;
+    }
+  }
+  /**
+   * string name = 1;
+   * @return The bytes for name.
+   */
+  @java.lang.Override
+  public com.google.protobuf.ByteString
+      getNameBytes() {
+    java.lang.Object ref = name_;
+    if (ref instanceof java.lang.String) {
+      com.google.protobuf.ByteString b = 
+          com.google.protobuf.ByteString.copyFromUtf8(
+              (java.lang.String) ref);
+      name_ = b;
+      return b;
+    } else {
+      return (com.google.protobuf.ByteString) ref;
+    }
+  }
+
+  public static final int SHAPE_FIELD_NUMBER = 2;
+  private com.google.protobuf.Internal.LongList shape_;
+  /**
+   * repeated int64 shape = 2;
+   * @return A list containing the shape.
+   */
+  @java.lang.Override
+  public java.util.List
+      getShapeList() {
+    return shape_;
+  }
+  /**
+   * repeated int64 shape = 2;
+   * @return The count of shape.
+   */
+  public int getShapeCount() {
+    return shape_.size();
+  }
+  /**
+   * repeated int64 shape = 2;
+   * @param index The index of the element to return.
+   * @return The shape at the given index.
+   */
+  public long getShape(int index) {
+    return shape_.getLong(index);
+  }
+  private int shapeMemoizedSerializedSize = -1;
+
+  public static final int DTYPE_FIELD_NUMBER = 3;
+  private int dtype_;
+  /**
+   * .tensorflow.DataType dtype = 3;
+   * @return The enum numeric value on the wire for dtype.
+   */
+  @java.lang.Override public int getDtypeValue() {
+    return dtype_;
+  }
+  /**
+   * .tensorflow.DataType dtype = 3;
+   * @return The dtype.
+   */
+  @java.lang.Override public org.tensorflow.proto.DataType getDtype() {
+    @SuppressWarnings("deprecation")
+    org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_);
+    return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result;
+  }
+
+  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 {
+    getSerializedSize();
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+    }
+    if (getShapeList().size() > 0) {
+      output.writeUInt32NoTag(18);
+      output.writeUInt32NoTag(shapeMemoizedSerializedSize);
+    }
+    for (int i = 0; i < shape_.size(); i++) {
+      output.writeInt64NoTag(shape_.getLong(i));
+    }
+    if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) {
+      output.writeEnum(3, dtype_);
+    }
+    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(name_)) {
+      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+    }
+    {
+      int dataSize = 0;
+      for (int i = 0; i < shape_.size(); i++) {
+        dataSize += com.google.protobuf.CodedOutputStream
+          .computeInt64SizeNoTag(shape_.getLong(i));
+      }
+      size += dataSize;
+      if (!getShapeList().isEmpty()) {
+        size += 1;
+        size += com.google.protobuf.CodedOutputStream
+            .computeInt32SizeNoTag(dataSize);
+      }
+      shapeMemoizedSerializedSize = dataSize;
+    }
+    if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(3, dtype_);
+    }
+    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 org.tensorflow.proto.GraphTransferGraphInputNodeInfo)) {
+      return super.equals(obj);
+    }
+    org.tensorflow.proto.GraphTransferGraphInputNodeInfo other = (org.tensorflow.proto.GraphTransferGraphInputNodeInfo) obj;
+
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getShapeList()
+        .equals(other.getShapeList())) return false;
+    if (dtype_ != other.dtype_) 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) + NAME_FIELD_NUMBER;
+    hash = (53 * hash) + getName().hashCode();
+    if (getShapeCount() > 0) {
+      hash = (37 * hash) + SHAPE_FIELD_NUMBER;
+      hash = (53 * hash) + getShapeList().hashCode();
+    }
+    hash = (37 * hash) + DTYPE_FIELD_NUMBER;
+    hash = (53 * hash) + dtype_;
+    hash = (29 * hash) + getUnknownFields().hashCode();
+    memoizedHashCode = hash;
+    return hash;
+  }
+
+  public static org.tensorflow.proto.GraphTransferGraphInputNodeInfo parseFrom(
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.GraphTransferGraphInputNodeInfo parseFrom(
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.GraphTransferGraphInputNodeInfo parseFrom(
+      com.google.protobuf.ByteString data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.GraphTransferGraphInputNodeInfo parseFrom(
+      com.google.protobuf.ByteString data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.GraphTransferGraphInputNodeInfo parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.GraphTransferGraphInputNodeInfo parseFrom(
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.GraphTransferGraphInputNodeInfo parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.GraphTransferGraphInputNodeInfo 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 org.tensorflow.proto.GraphTransferGraphInputNodeInfo parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.GraphTransferGraphInputNodeInfo 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 org.tensorflow.proto.GraphTransferGraphInputNodeInfo parseFrom(
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.GraphTransferGraphInputNodeInfo 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(org.tensorflow.proto.GraphTransferGraphInputNodeInfo prototype) {
+    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+  }
+  @java.lang.Override
+  public Builder toBuilder() {
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
+  }
+
+  @java.lang.Override
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    Builder builder = new Builder(parent);
+    return builder;
+  }
+  /**
+   * Protobuf type {@code tensorflow.GraphTransferGraphInputNodeInfo}
+   */
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
+      // @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferGraphInputNodeInfo)
+      org.tensorflow.proto.GraphTransferGraphInputNodeInfoOrBuilder {
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferGraphInputNodeInfo_descriptor;
+    }
+
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+        internalGetFieldAccessorTable() {
+      return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferGraphInputNodeInfo_fieldAccessorTable
+          .ensureFieldAccessorsInitialized(
+              org.tensorflow.proto.GraphTransferGraphInputNodeInfo.class, org.tensorflow.proto.GraphTransferGraphInputNodeInfo.Builder.class);
+    }
+
+    // Construct using org.tensorflow.proto.GraphTransferGraphInputNodeInfo.newBuilder()
+    private Builder() {
+
+    }
+
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
+    @java.lang.Override
+    public Builder clear() {
+      super.clear();
+      name_ = "";
+
+      shape_ = emptyLongList();
+      bitField0_ = (bitField0_ & ~0x00000001);
+      dtype_ = 0;
+
+      return this;
+    }
+
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferGraphInputNodeInfo_descriptor;
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.GraphTransferGraphInputNodeInfo getDefaultInstanceForType() {
+      return org.tensorflow.proto.GraphTransferGraphInputNodeInfo.getDefaultInstance();
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.GraphTransferGraphInputNodeInfo build() {
+      org.tensorflow.proto.GraphTransferGraphInputNodeInfo result = buildPartial();
+      if (!result.isInitialized()) {
+        throw newUninitializedMessageException(result);
+      }
+      return result;
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.GraphTransferGraphInputNodeInfo buildPartial() {
+      org.tensorflow.proto.GraphTransferGraphInputNodeInfo result = new org.tensorflow.proto.GraphTransferGraphInputNodeInfo(this);
+      int from_bitField0_ = bitField0_;
+      result.name_ = name_;
+      if (((bitField0_ & 0x00000001) != 0)) {
+        shape_.makeImmutable();
+        bitField0_ = (bitField0_ & ~0x00000001);
+      }
+      result.shape_ = shape_;
+      result.dtype_ = dtype_;
+      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 org.tensorflow.proto.GraphTransferGraphInputNodeInfo) {
+        return mergeFrom((org.tensorflow.proto.GraphTransferGraphInputNodeInfo)other);
+      } else {
+        super.mergeFrom(other);
+        return this;
+      }
+    }
+
+    public Builder mergeFrom(org.tensorflow.proto.GraphTransferGraphInputNodeInfo other) {
+      if (other == org.tensorflow.proto.GraphTransferGraphInputNodeInfo.getDefaultInstance()) return this;
+      if (!other.getName().isEmpty()) {
+        name_ = other.name_;
+        onChanged();
+      }
+      if (!other.shape_.isEmpty()) {
+        if (shape_.isEmpty()) {
+          shape_ = other.shape_;
+          bitField0_ = (bitField0_ & ~0x00000001);
+        } else {
+          ensureShapeIsMutable();
+          shape_.addAll(other.shape_);
+        }
+        onChanged();
+      }
+      if (other.dtype_ != 0) {
+        setDtypeValue(other.getDtypeValue());
+      }
+      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: {
+              name_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 16: {
+              long v = input.readInt64();
+              ensureShapeIsMutable();
+              shape_.addLong(v);
+              break;
+            } // case 16
+            case 18: {
+              int length = input.readRawVarint32();
+              int limit = input.pushLimit(length);
+              ensureShapeIsMutable();
+              while (input.getBytesUntilLimit() > 0) {
+                shape_.addLong(input.readInt64());
+              }
+              input.popLimit(limit);
+              break;
+            } // case 18
+            case 24: {
+              dtype_ = input.readEnum();
+
+              break;
+            } // case 24
+            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 name_ = "";
+    /**
+     * string name = 1;
+     * @return The name.
+     */
+    public java.lang.String getName() {
+      java.lang.Object ref = name_;
+      if (!(ref instanceof java.lang.String)) {
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
+        java.lang.String s = bs.toStringUtf8();
+        name_ = s;
+        return s;
+      } else {
+        return (java.lang.String) ref;
+      }
+    }
+    /**
+     * string name = 1;
+     * @return The bytes for name.
+     */
+    public com.google.protobuf.ByteString
+        getNameBytes() {
+      java.lang.Object ref = name_;
+      if (ref instanceof String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        name_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+    /**
+     * string name = 1;
+     * @param value The name to set.
+     * @return This builder for chaining.
+     */
+    public Builder setName(
+        java.lang.String value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  
+      name_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * string name = 1;
+     * @return This builder for chaining.
+     */
+    public Builder clearName() {
+      
+      name_ = getDefaultInstance().getName();
+      onChanged();
+      return this;
+    }
+    /**
+     * string name = 1;
+     * @param value The bytes for name to set.
+     * @return This builder for chaining.
+     */
+    public Builder setNameBytes(
+        com.google.protobuf.ByteString value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  checkByteStringIsUtf8(value);
+      
+      name_ = value;
+      onChanged();
+      return this;
+    }
+
+    private com.google.protobuf.Internal.LongList shape_ = emptyLongList();
+    private void ensureShapeIsMutable() {
+      if (!((bitField0_ & 0x00000001) != 0)) {
+        shape_ = mutableCopy(shape_);
+        bitField0_ |= 0x00000001;
+       }
+    }
+    /**
+     * repeated int64 shape = 2;
+     * @return A list containing the shape.
+     */
+    public java.util.List
+        getShapeList() {
+      return ((bitField0_ & 0x00000001) != 0) ?
+               java.util.Collections.unmodifiableList(shape_) : shape_;
+    }
+    /**
+     * repeated int64 shape = 2;
+     * @return The count of shape.
+     */
+    public int getShapeCount() {
+      return shape_.size();
+    }
+    /**
+     * repeated int64 shape = 2;
+     * @param index The index of the element to return.
+     * @return The shape at the given index.
+     */
+    public long getShape(int index) {
+      return shape_.getLong(index);
+    }
+    /**
+     * repeated int64 shape = 2;
+     * @param index The index to set the value at.
+     * @param value The shape to set.
+     * @return This builder for chaining.
+     */
+    public Builder setShape(
+        int index, long value) {
+      ensureShapeIsMutable();
+      shape_.setLong(index, value);
+      onChanged();
+      return this;
+    }
+    /**
+     * repeated int64 shape = 2;
+     * @param value The shape to add.
+     * @return This builder for chaining.
+     */
+    public Builder addShape(long value) {
+      ensureShapeIsMutable();
+      shape_.addLong(value);
+      onChanged();
+      return this;
+    }
+    /**
+     * repeated int64 shape = 2;
+     * @param values The shape to add.
+     * @return This builder for chaining.
+     */
+    public Builder addAllShape(
+        java.lang.Iterable values) {
+      ensureShapeIsMutable();
+      com.google.protobuf.AbstractMessageLite.Builder.addAll(
+          values, shape_);
+      onChanged();
+      return this;
+    }
+    /**
+     * repeated int64 shape = 2;
+     * @return This builder for chaining.
+     */
+    public Builder clearShape() {
+      shape_ = emptyLongList();
+      bitField0_ = (bitField0_ & ~0x00000001);
+      onChanged();
+      return this;
+    }
+
+    private int dtype_ = 0;
+    /**
+     * .tensorflow.DataType dtype = 3;
+     * @return The enum numeric value on the wire for dtype.
+     */
+    @java.lang.Override public int getDtypeValue() {
+      return dtype_;
+    }
+    /**
+     * .tensorflow.DataType dtype = 3;
+     * @param value The enum numeric value on the wire for dtype to set.
+     * @return This builder for chaining.
+     */
+    public Builder setDtypeValue(int value) {
+      
+      dtype_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * .tensorflow.DataType dtype = 3;
+     * @return The dtype.
+     */
+    @java.lang.Override
+    public org.tensorflow.proto.DataType getDtype() {
+      @SuppressWarnings("deprecation")
+      org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_);
+      return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result;
+    }
+    /**
+     * .tensorflow.DataType dtype = 3;
+     * @param value The dtype to set.
+     * @return This builder for chaining.
+     */
+    public Builder setDtype(org.tensorflow.proto.DataType value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
+      
+      dtype_ = value.getNumber();
+      onChanged();
+      return this;
+    }
+    /**
+     * .tensorflow.DataType dtype = 3;
+     * @return This builder for chaining.
+     */
+    public Builder clearDtype() {
+      
+      dtype_ = 0;
+      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:tensorflow.GraphTransferGraphInputNodeInfo)
+  }
+
+  // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferGraphInputNodeInfo)
+  private static final org.tensorflow.proto.GraphTransferGraphInputNodeInfo DEFAULT_INSTANCE;
+  static {
+    DEFAULT_INSTANCE = new org.tensorflow.proto.GraphTransferGraphInputNodeInfo();
+  }
+
+  public static org.tensorflow.proto.GraphTransferGraphInputNodeInfo getDefaultInstance() {
+    return DEFAULT_INSTANCE;
+  }
+
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public GraphTransferGraphInputNodeInfo 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 org.tensorflow.proto.GraphTransferGraphInputNodeInfo getDefaultInstanceForType() {
+    return DEFAULT_INSTANCE;
+  }
+
+}
+
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferGraphInputNodeInfoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferGraphInputNodeInfoOrBuilder.java
new file mode 100644
index 00000000000..cf9985eff27
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferGraphInputNodeInfoOrBuilder.java
@@ -0,0 +1,49 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/framework/graph_transfer_info.proto
+
+package org.tensorflow.proto;
+
+public interface GraphTransferGraphInputNodeInfoOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:tensorflow.GraphTransferGraphInputNodeInfo)
+    com.google.protobuf.MessageOrBuilder {
+
+  /**
+   * string name = 1;
+   * @return The name.
+   */
+  java.lang.String getName();
+  /**
+   * string name = 1;
+   * @return The bytes for name.
+   */
+  com.google.protobuf.ByteString
+      getNameBytes();
+
+  /**
+   * repeated int64 shape = 2;
+   * @return A list containing the shape.
+   */
+  java.util.List getShapeList();
+  /**
+   * repeated int64 shape = 2;
+   * @return The count of shape.
+   */
+  int getShapeCount();
+  /**
+   * repeated int64 shape = 2;
+   * @param index The index of the element to return.
+   * @return The shape at the given index.
+   */
+  long getShape(int index);
+
+  /**
+   * .tensorflow.DataType dtype = 3;
+   * @return The enum numeric value on the wire for dtype.
+   */
+  int getDtypeValue();
+  /**
+   * .tensorflow.DataType dtype = 3;
+   * @return The dtype.
+   */
+  org.tensorflow.proto.DataType getDtype();
+}
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferGraphOutputNodeInfo.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferGraphOutputNodeInfo.java
new file mode 100644
index 00000000000..530c70ff61f
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferGraphOutputNodeInfo.java
@@ -0,0 +1,804 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/framework/graph_transfer_info.proto
+
+package org.tensorflow.proto;
+
+/**
+ * Protobuf type {@code tensorflow.GraphTransferGraphOutputNodeInfo}
+ */
+public final class GraphTransferGraphOutputNodeInfo extends
+    com.google.protobuf.GeneratedMessageV3 implements
+    // @@protoc_insertion_point(message_implements:tensorflow.GraphTransferGraphOutputNodeInfo)
+    GraphTransferGraphOutputNodeInfoOrBuilder {
+private static final long serialVersionUID = 0L;
+  // Use GraphTransferGraphOutputNodeInfo.newBuilder() to construct.
+  private GraphTransferGraphOutputNodeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    super(builder);
+  }
+  private GraphTransferGraphOutputNodeInfo() {
+    name_ = "";
+    shape_ = emptyLongList();
+    dtype_ = 0;
+  }
+
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
+    return new GraphTransferGraphOutputNodeInfo();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
+    return this.unknownFields;
+  }
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferGraphOutputNodeInfo_descriptor;
+  }
+
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internalGetFieldAccessorTable() {
+    return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferGraphOutputNodeInfo_fieldAccessorTable
+        .ensureFieldAccessorsInitialized(
+            org.tensorflow.proto.GraphTransferGraphOutputNodeInfo.class, org.tensorflow.proto.GraphTransferGraphOutputNodeInfo.Builder.class);
+  }
+
+  public static final int NAME_FIELD_NUMBER = 1;
+  private volatile java.lang.Object name_;
+  /**
+   * string name = 1;
+   * @return The name.
+   */
+  @java.lang.Override
+  public java.lang.String getName() {
+    java.lang.Object ref = name_;
+    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();
+      name_ = s;
+      return s;
+    }
+  }
+  /**
+   * string name = 1;
+   * @return The bytes for name.
+   */
+  @java.lang.Override
+  public com.google.protobuf.ByteString
+      getNameBytes() {
+    java.lang.Object ref = name_;
+    if (ref instanceof java.lang.String) {
+      com.google.protobuf.ByteString b = 
+          com.google.protobuf.ByteString.copyFromUtf8(
+              (java.lang.String) ref);
+      name_ = b;
+      return b;
+    } else {
+      return (com.google.protobuf.ByteString) ref;
+    }
+  }
+
+  public static final int SHAPE_FIELD_NUMBER = 2;
+  private com.google.protobuf.Internal.LongList shape_;
+  /**
+   * repeated int64 shape = 2;
+   * @return A list containing the shape.
+   */
+  @java.lang.Override
+  public java.util.List
+      getShapeList() {
+    return shape_;
+  }
+  /**
+   * repeated int64 shape = 2;
+   * @return The count of shape.
+   */
+  public int getShapeCount() {
+    return shape_.size();
+  }
+  /**
+   * repeated int64 shape = 2;
+   * @param index The index of the element to return.
+   * @return The shape at the given index.
+   */
+  public long getShape(int index) {
+    return shape_.getLong(index);
+  }
+  private int shapeMemoizedSerializedSize = -1;
+
+  public static final int DTYPE_FIELD_NUMBER = 3;
+  private int dtype_;
+  /**
+   * .tensorflow.DataType dtype = 3;
+   * @return The enum numeric value on the wire for dtype.
+   */
+  @java.lang.Override public int getDtypeValue() {
+    return dtype_;
+  }
+  /**
+   * .tensorflow.DataType dtype = 3;
+   * @return The dtype.
+   */
+  @java.lang.Override public org.tensorflow.proto.DataType getDtype() {
+    @SuppressWarnings("deprecation")
+    org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_);
+    return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result;
+  }
+
+  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 {
+    getSerializedSize();
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+    }
+    if (getShapeList().size() > 0) {
+      output.writeUInt32NoTag(18);
+      output.writeUInt32NoTag(shapeMemoizedSerializedSize);
+    }
+    for (int i = 0; i < shape_.size(); i++) {
+      output.writeInt64NoTag(shape_.getLong(i));
+    }
+    if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) {
+      output.writeEnum(3, dtype_);
+    }
+    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(name_)) {
+      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+    }
+    {
+      int dataSize = 0;
+      for (int i = 0; i < shape_.size(); i++) {
+        dataSize += com.google.protobuf.CodedOutputStream
+          .computeInt64SizeNoTag(shape_.getLong(i));
+      }
+      size += dataSize;
+      if (!getShapeList().isEmpty()) {
+        size += 1;
+        size += com.google.protobuf.CodedOutputStream
+            .computeInt32SizeNoTag(dataSize);
+      }
+      shapeMemoizedSerializedSize = dataSize;
+    }
+    if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(3, dtype_);
+    }
+    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 org.tensorflow.proto.GraphTransferGraphOutputNodeInfo)) {
+      return super.equals(obj);
+    }
+    org.tensorflow.proto.GraphTransferGraphOutputNodeInfo other = (org.tensorflow.proto.GraphTransferGraphOutputNodeInfo) obj;
+
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getShapeList()
+        .equals(other.getShapeList())) return false;
+    if (dtype_ != other.dtype_) 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) + NAME_FIELD_NUMBER;
+    hash = (53 * hash) + getName().hashCode();
+    if (getShapeCount() > 0) {
+      hash = (37 * hash) + SHAPE_FIELD_NUMBER;
+      hash = (53 * hash) + getShapeList().hashCode();
+    }
+    hash = (37 * hash) + DTYPE_FIELD_NUMBER;
+    hash = (53 * hash) + dtype_;
+    hash = (29 * hash) + getUnknownFields().hashCode();
+    memoizedHashCode = hash;
+    return hash;
+  }
+
+  public static org.tensorflow.proto.GraphTransferGraphOutputNodeInfo parseFrom(
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.GraphTransferGraphOutputNodeInfo parseFrom(
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.GraphTransferGraphOutputNodeInfo parseFrom(
+      com.google.protobuf.ByteString data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.GraphTransferGraphOutputNodeInfo parseFrom(
+      com.google.protobuf.ByteString data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.GraphTransferGraphOutputNodeInfo parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.GraphTransferGraphOutputNodeInfo parseFrom(
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.GraphTransferGraphOutputNodeInfo parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.GraphTransferGraphOutputNodeInfo 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 org.tensorflow.proto.GraphTransferGraphOutputNodeInfo parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.GraphTransferGraphOutputNodeInfo 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 org.tensorflow.proto.GraphTransferGraphOutputNodeInfo parseFrom(
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.GraphTransferGraphOutputNodeInfo 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(org.tensorflow.proto.GraphTransferGraphOutputNodeInfo prototype) {
+    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+  }
+  @java.lang.Override
+  public Builder toBuilder() {
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
+  }
+
+  @java.lang.Override
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    Builder builder = new Builder(parent);
+    return builder;
+  }
+  /**
+   * Protobuf type {@code tensorflow.GraphTransferGraphOutputNodeInfo}
+   */
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
+      // @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferGraphOutputNodeInfo)
+      org.tensorflow.proto.GraphTransferGraphOutputNodeInfoOrBuilder {
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferGraphOutputNodeInfo_descriptor;
+    }
+
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+        internalGetFieldAccessorTable() {
+      return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferGraphOutputNodeInfo_fieldAccessorTable
+          .ensureFieldAccessorsInitialized(
+              org.tensorflow.proto.GraphTransferGraphOutputNodeInfo.class, org.tensorflow.proto.GraphTransferGraphOutputNodeInfo.Builder.class);
+    }
+
+    // Construct using org.tensorflow.proto.GraphTransferGraphOutputNodeInfo.newBuilder()
+    private Builder() {
+
+    }
+
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
+    @java.lang.Override
+    public Builder clear() {
+      super.clear();
+      name_ = "";
+
+      shape_ = emptyLongList();
+      bitField0_ = (bitField0_ & ~0x00000001);
+      dtype_ = 0;
+
+      return this;
+    }
+
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferGraphOutputNodeInfo_descriptor;
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.GraphTransferGraphOutputNodeInfo getDefaultInstanceForType() {
+      return org.tensorflow.proto.GraphTransferGraphOutputNodeInfo.getDefaultInstance();
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.GraphTransferGraphOutputNodeInfo build() {
+      org.tensorflow.proto.GraphTransferGraphOutputNodeInfo result = buildPartial();
+      if (!result.isInitialized()) {
+        throw newUninitializedMessageException(result);
+      }
+      return result;
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.GraphTransferGraphOutputNodeInfo buildPartial() {
+      org.tensorflow.proto.GraphTransferGraphOutputNodeInfo result = new org.tensorflow.proto.GraphTransferGraphOutputNodeInfo(this);
+      int from_bitField0_ = bitField0_;
+      result.name_ = name_;
+      if (((bitField0_ & 0x00000001) != 0)) {
+        shape_.makeImmutable();
+        bitField0_ = (bitField0_ & ~0x00000001);
+      }
+      result.shape_ = shape_;
+      result.dtype_ = dtype_;
+      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 org.tensorflow.proto.GraphTransferGraphOutputNodeInfo) {
+        return mergeFrom((org.tensorflow.proto.GraphTransferGraphOutputNodeInfo)other);
+      } else {
+        super.mergeFrom(other);
+        return this;
+      }
+    }
+
+    public Builder mergeFrom(org.tensorflow.proto.GraphTransferGraphOutputNodeInfo other) {
+      if (other == org.tensorflow.proto.GraphTransferGraphOutputNodeInfo.getDefaultInstance()) return this;
+      if (!other.getName().isEmpty()) {
+        name_ = other.name_;
+        onChanged();
+      }
+      if (!other.shape_.isEmpty()) {
+        if (shape_.isEmpty()) {
+          shape_ = other.shape_;
+          bitField0_ = (bitField0_ & ~0x00000001);
+        } else {
+          ensureShapeIsMutable();
+          shape_.addAll(other.shape_);
+        }
+        onChanged();
+      }
+      if (other.dtype_ != 0) {
+        setDtypeValue(other.getDtypeValue());
+      }
+      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: {
+              name_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 16: {
+              long v = input.readInt64();
+              ensureShapeIsMutable();
+              shape_.addLong(v);
+              break;
+            } // case 16
+            case 18: {
+              int length = input.readRawVarint32();
+              int limit = input.pushLimit(length);
+              ensureShapeIsMutable();
+              while (input.getBytesUntilLimit() > 0) {
+                shape_.addLong(input.readInt64());
+              }
+              input.popLimit(limit);
+              break;
+            } // case 18
+            case 24: {
+              dtype_ = input.readEnum();
+
+              break;
+            } // case 24
+            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 name_ = "";
+    /**
+     * string name = 1;
+     * @return The name.
+     */
+    public java.lang.String getName() {
+      java.lang.Object ref = name_;
+      if (!(ref instanceof java.lang.String)) {
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
+        java.lang.String s = bs.toStringUtf8();
+        name_ = s;
+        return s;
+      } else {
+        return (java.lang.String) ref;
+      }
+    }
+    /**
+     * string name = 1;
+     * @return The bytes for name.
+     */
+    public com.google.protobuf.ByteString
+        getNameBytes() {
+      java.lang.Object ref = name_;
+      if (ref instanceof String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        name_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+    /**
+     * string name = 1;
+     * @param value The name to set.
+     * @return This builder for chaining.
+     */
+    public Builder setName(
+        java.lang.String value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  
+      name_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * string name = 1;
+     * @return This builder for chaining.
+     */
+    public Builder clearName() {
+      
+      name_ = getDefaultInstance().getName();
+      onChanged();
+      return this;
+    }
+    /**
+     * string name = 1;
+     * @param value The bytes for name to set.
+     * @return This builder for chaining.
+     */
+    public Builder setNameBytes(
+        com.google.protobuf.ByteString value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  checkByteStringIsUtf8(value);
+      
+      name_ = value;
+      onChanged();
+      return this;
+    }
+
+    private com.google.protobuf.Internal.LongList shape_ = emptyLongList();
+    private void ensureShapeIsMutable() {
+      if (!((bitField0_ & 0x00000001) != 0)) {
+        shape_ = mutableCopy(shape_);
+        bitField0_ |= 0x00000001;
+       }
+    }
+    /**
+     * repeated int64 shape = 2;
+     * @return A list containing the shape.
+     */
+    public java.util.List
+        getShapeList() {
+      return ((bitField0_ & 0x00000001) != 0) ?
+               java.util.Collections.unmodifiableList(shape_) : shape_;
+    }
+    /**
+     * repeated int64 shape = 2;
+     * @return The count of shape.
+     */
+    public int getShapeCount() {
+      return shape_.size();
+    }
+    /**
+     * repeated int64 shape = 2;
+     * @param index The index of the element to return.
+     * @return The shape at the given index.
+     */
+    public long getShape(int index) {
+      return shape_.getLong(index);
+    }
+    /**
+     * repeated int64 shape = 2;
+     * @param index The index to set the value at.
+     * @param value The shape to set.
+     * @return This builder for chaining.
+     */
+    public Builder setShape(
+        int index, long value) {
+      ensureShapeIsMutable();
+      shape_.setLong(index, value);
+      onChanged();
+      return this;
+    }
+    /**
+     * repeated int64 shape = 2;
+     * @param value The shape to add.
+     * @return This builder for chaining.
+     */
+    public Builder addShape(long value) {
+      ensureShapeIsMutable();
+      shape_.addLong(value);
+      onChanged();
+      return this;
+    }
+    /**
+     * repeated int64 shape = 2;
+     * @param values The shape to add.
+     * @return This builder for chaining.
+     */
+    public Builder addAllShape(
+        java.lang.Iterable values) {
+      ensureShapeIsMutable();
+      com.google.protobuf.AbstractMessageLite.Builder.addAll(
+          values, shape_);
+      onChanged();
+      return this;
+    }
+    /**
+     * repeated int64 shape = 2;
+     * @return This builder for chaining.
+     */
+    public Builder clearShape() {
+      shape_ = emptyLongList();
+      bitField0_ = (bitField0_ & ~0x00000001);
+      onChanged();
+      return this;
+    }
+
+    private int dtype_ = 0;
+    /**
+     * .tensorflow.DataType dtype = 3;
+     * @return The enum numeric value on the wire for dtype.
+     */
+    @java.lang.Override public int getDtypeValue() {
+      return dtype_;
+    }
+    /**
+     * .tensorflow.DataType dtype = 3;
+     * @param value The enum numeric value on the wire for dtype to set.
+     * @return This builder for chaining.
+     */
+    public Builder setDtypeValue(int value) {
+      
+      dtype_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * .tensorflow.DataType dtype = 3;
+     * @return The dtype.
+     */
+    @java.lang.Override
+    public org.tensorflow.proto.DataType getDtype() {
+      @SuppressWarnings("deprecation")
+      org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_);
+      return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result;
+    }
+    /**
+     * .tensorflow.DataType dtype = 3;
+     * @param value The dtype to set.
+     * @return This builder for chaining.
+     */
+    public Builder setDtype(org.tensorflow.proto.DataType value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
+      
+      dtype_ = value.getNumber();
+      onChanged();
+      return this;
+    }
+    /**
+     * .tensorflow.DataType dtype = 3;
+     * @return This builder for chaining.
+     */
+    public Builder clearDtype() {
+      
+      dtype_ = 0;
+      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:tensorflow.GraphTransferGraphOutputNodeInfo)
+  }
+
+  // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferGraphOutputNodeInfo)
+  private static final org.tensorflow.proto.GraphTransferGraphOutputNodeInfo DEFAULT_INSTANCE;
+  static {
+    DEFAULT_INSTANCE = new org.tensorflow.proto.GraphTransferGraphOutputNodeInfo();
+  }
+
+  public static org.tensorflow.proto.GraphTransferGraphOutputNodeInfo getDefaultInstance() {
+    return DEFAULT_INSTANCE;
+  }
+
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public GraphTransferGraphOutputNodeInfo 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 org.tensorflow.proto.GraphTransferGraphOutputNodeInfo getDefaultInstanceForType() {
+    return DEFAULT_INSTANCE;
+  }
+
+}
+
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferGraphOutputNodeInfoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferGraphOutputNodeInfoOrBuilder.java
new file mode 100644
index 00000000000..5ab55651662
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferGraphOutputNodeInfoOrBuilder.java
@@ -0,0 +1,49 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/framework/graph_transfer_info.proto
+
+package org.tensorflow.proto;
+
+public interface GraphTransferGraphOutputNodeInfoOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:tensorflow.GraphTransferGraphOutputNodeInfo)
+    com.google.protobuf.MessageOrBuilder {
+
+  /**
+   * string name = 1;
+   * @return The name.
+   */
+  java.lang.String getName();
+  /**
+   * string name = 1;
+   * @return The bytes for name.
+   */
+  com.google.protobuf.ByteString
+      getNameBytes();
+
+  /**
+   * repeated int64 shape = 2;
+   * @return A list containing the shape.
+   */
+  java.util.List getShapeList();
+  /**
+   * repeated int64 shape = 2;
+   * @return The count of shape.
+   */
+  int getShapeCount();
+  /**
+   * repeated int64 shape = 2;
+   * @param index The index of the element to return.
+   * @return The shape at the given index.
+   */
+  long getShape(int index);
+
+  /**
+   * .tensorflow.DataType dtype = 3;
+   * @return The enum numeric value on the wire for dtype.
+   */
+  int getDtypeValue();
+  /**
+   * .tensorflow.DataType dtype = 3;
+   * @return The dtype.
+   */
+  org.tensorflow.proto.DataType getDtype();
+}
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferInfo.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferInfo.java
new file mode 100644
index 00000000000..f7f38d543f8
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferInfo.java
@@ -0,0 +1,2832 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/framework/graph_transfer_info.proto
+
+package org.tensorflow.proto;
+
+/**
+ * 
+ * Protocol buffer representing a handle to a tensorflow resource. Handles are
+ * not valid across executions, but can be serialized back and forth from within
+ * a single run.
+ * 
+ * + * Protobuf type {@code tensorflow.GraphTransferInfo} + */ +public final class GraphTransferInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.GraphTransferInfo) + GraphTransferInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use GraphTransferInfo.newBuilder() to construct. + private GraphTransferInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GraphTransferInfo() { + nodeInfo_ = java.util.Collections.emptyList(); + constNodeInfo_ = java.util.Collections.emptyList(); + nodeInputInfo_ = java.util.Collections.emptyList(); + nodeOutputInfo_ = java.util.Collections.emptyList(); + graphInputNodeInfo_ = java.util.Collections.emptyList(); + graphOutputNodeInfo_ = java.util.Collections.emptyList(); + destination_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GraphTransferInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.GraphTransferInfo.class, org.tensorflow.proto.GraphTransferInfo.Builder.class); + } + + /** + * Protobuf enum {@code tensorflow.GraphTransferInfo.Destination} + */ + public enum Destination + implements com.google.protobuf.ProtocolMessageEnum { + /** + * NOP = 0; + */ + NOP(0), + /** + * HEXAGON = 1; + */ + HEXAGON(1), + UNRECOGNIZED(-1), + ; + + /** + * NOP = 0; + */ + public static final int NOP_VALUE = 0; + /** + * HEXAGON = 1; + */ + public static final int HEXAGON_VALUE = 1; + + + 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 Destination 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 Destination forNumber(int value) { + switch (value) { + case 0: return NOP; + case 1: return HEXAGON; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Destination> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Destination findValueByNumber(int number) { + return Destination.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 org.tensorflow.proto.GraphTransferInfo.getDescriptor().getEnumTypes().get(0); + } + + private static final Destination[] VALUES = values(); + + public static Destination 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 Destination(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:tensorflow.GraphTransferInfo.Destination) + } + + public static final int NODE_INFO_FIELD_NUMBER = 1; + private java.util.List nodeInfo_; + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + @java.lang.Override + public java.util.List getNodeInfoList() { + return nodeInfo_; + } + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + @java.lang.Override + public java.util.List + getNodeInfoOrBuilderList() { + return nodeInfo_; + } + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + @java.lang.Override + public int getNodeInfoCount() { + return nodeInfo_.size(); + } + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + @java.lang.Override + public org.tensorflow.proto.GraphTransferNodeInfo getNodeInfo(int index) { + return nodeInfo_.get(index); + } + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + @java.lang.Override + public org.tensorflow.proto.GraphTransferNodeInfoOrBuilder getNodeInfoOrBuilder( + int index) { + return nodeInfo_.get(index); + } + + public static final int CONST_NODE_INFO_FIELD_NUMBER = 2; + private java.util.List constNodeInfo_; + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + @java.lang.Override + public java.util.List getConstNodeInfoList() { + return constNodeInfo_; + } + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + @java.lang.Override + public java.util.List + getConstNodeInfoOrBuilderList() { + return constNodeInfo_; + } + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + @java.lang.Override + public int getConstNodeInfoCount() { + return constNodeInfo_.size(); + } + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + @java.lang.Override + public org.tensorflow.proto.GraphTransferConstNodeInfo getConstNodeInfo(int index) { + return constNodeInfo_.get(index); + } + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + @java.lang.Override + public org.tensorflow.proto.GraphTransferConstNodeInfoOrBuilder getConstNodeInfoOrBuilder( + int index) { + return constNodeInfo_.get(index); + } + + public static final int NODE_INPUT_INFO_FIELD_NUMBER = 3; + private java.util.List nodeInputInfo_; + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + @java.lang.Override + public java.util.List getNodeInputInfoList() { + return nodeInputInfo_; + } + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + @java.lang.Override + public java.util.List + getNodeInputInfoOrBuilderList() { + return nodeInputInfo_; + } + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + @java.lang.Override + public int getNodeInputInfoCount() { + return nodeInputInfo_.size(); + } + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + @java.lang.Override + public org.tensorflow.proto.GraphTransferNodeInputInfo getNodeInputInfo(int index) { + return nodeInputInfo_.get(index); + } + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + @java.lang.Override + public org.tensorflow.proto.GraphTransferNodeInputInfoOrBuilder getNodeInputInfoOrBuilder( + int index) { + return nodeInputInfo_.get(index); + } + + public static final int NODE_OUTPUT_INFO_FIELD_NUMBER = 4; + private java.util.List nodeOutputInfo_; + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + @java.lang.Override + public java.util.List getNodeOutputInfoList() { + return nodeOutputInfo_; + } + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + @java.lang.Override + public java.util.List + getNodeOutputInfoOrBuilderList() { + return nodeOutputInfo_; + } + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + @java.lang.Override + public int getNodeOutputInfoCount() { + return nodeOutputInfo_.size(); + } + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + @java.lang.Override + public org.tensorflow.proto.GraphTransferNodeOutputInfo getNodeOutputInfo(int index) { + return nodeOutputInfo_.get(index); + } + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + @java.lang.Override + public org.tensorflow.proto.GraphTransferNodeOutputInfoOrBuilder getNodeOutputInfoOrBuilder( + int index) { + return nodeOutputInfo_.get(index); + } + + public static final int GRAPH_INPUT_NODE_INFO_FIELD_NUMBER = 5; + private java.util.List graphInputNodeInfo_; + /** + *
+   * Input Node parameters of transferred graph
+   * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + @java.lang.Override + public java.util.List getGraphInputNodeInfoList() { + return graphInputNodeInfo_; + } + /** + *
+   * Input Node parameters of transferred graph
+   * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + @java.lang.Override + public java.util.List + getGraphInputNodeInfoOrBuilderList() { + return graphInputNodeInfo_; + } + /** + *
+   * Input Node parameters of transferred graph
+   * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + @java.lang.Override + public int getGraphInputNodeInfoCount() { + return graphInputNodeInfo_.size(); + } + /** + *
+   * Input Node parameters of transferred graph
+   * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + @java.lang.Override + public org.tensorflow.proto.GraphTransferGraphInputNodeInfo getGraphInputNodeInfo(int index) { + return graphInputNodeInfo_.get(index); + } + /** + *
+   * Input Node parameters of transferred graph
+   * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + @java.lang.Override + public org.tensorflow.proto.GraphTransferGraphInputNodeInfoOrBuilder getGraphInputNodeInfoOrBuilder( + int index) { + return graphInputNodeInfo_.get(index); + } + + public static final int GRAPH_OUTPUT_NODE_INFO_FIELD_NUMBER = 6; + private java.util.List graphOutputNodeInfo_; + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + @java.lang.Override + public java.util.List getGraphOutputNodeInfoList() { + return graphOutputNodeInfo_; + } + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + @java.lang.Override + public java.util.List + getGraphOutputNodeInfoOrBuilderList() { + return graphOutputNodeInfo_; + } + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + @java.lang.Override + public int getGraphOutputNodeInfoCount() { + return graphOutputNodeInfo_.size(); + } + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + @java.lang.Override + public org.tensorflow.proto.GraphTransferGraphOutputNodeInfo getGraphOutputNodeInfo(int index) { + return graphOutputNodeInfo_.get(index); + } + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + @java.lang.Override + public org.tensorflow.proto.GraphTransferGraphOutputNodeInfoOrBuilder getGraphOutputNodeInfoOrBuilder( + int index) { + return graphOutputNodeInfo_.get(index); + } + + public static final int DESTINATION_FIELD_NUMBER = 7; + private int destination_; + /** + *
+   * Destination of graph transfer
+   * 
+ * + * .tensorflow.GraphTransferInfo.Destination destination = 7; + * @return The enum numeric value on the wire for destination. + */ + @java.lang.Override public int getDestinationValue() { + return destination_; + } + /** + *
+   * Destination of graph transfer
+   * 
+ * + * .tensorflow.GraphTransferInfo.Destination destination = 7; + * @return The destination. + */ + @java.lang.Override public org.tensorflow.proto.GraphTransferInfo.Destination getDestination() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.GraphTransferInfo.Destination result = org.tensorflow.proto.GraphTransferInfo.Destination.valueOf(destination_); + return result == null ? org.tensorflow.proto.GraphTransferInfo.Destination.UNRECOGNIZED : result; + } + + 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 < nodeInfo_.size(); i++) { + output.writeMessage(1, nodeInfo_.get(i)); + } + for (int i = 0; i < constNodeInfo_.size(); i++) { + output.writeMessage(2, constNodeInfo_.get(i)); + } + for (int i = 0; i < nodeInputInfo_.size(); i++) { + output.writeMessage(3, nodeInputInfo_.get(i)); + } + for (int i = 0; i < nodeOutputInfo_.size(); i++) { + output.writeMessage(4, nodeOutputInfo_.get(i)); + } + for (int i = 0; i < graphInputNodeInfo_.size(); i++) { + output.writeMessage(5, graphInputNodeInfo_.get(i)); + } + for (int i = 0; i < graphOutputNodeInfo_.size(); i++) { + output.writeMessage(6, graphOutputNodeInfo_.get(i)); + } + if (destination_ != org.tensorflow.proto.GraphTransferInfo.Destination.NOP.getNumber()) { + output.writeEnum(7, destination_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < nodeInfo_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, nodeInfo_.get(i)); + } + for (int i = 0; i < constNodeInfo_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, constNodeInfo_.get(i)); + } + for (int i = 0; i < nodeInputInfo_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, nodeInputInfo_.get(i)); + } + for (int i = 0; i < nodeOutputInfo_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, nodeOutputInfo_.get(i)); + } + for (int i = 0; i < graphInputNodeInfo_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, graphInputNodeInfo_.get(i)); + } + for (int i = 0; i < graphOutputNodeInfo_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, graphOutputNodeInfo_.get(i)); + } + if (destination_ != org.tensorflow.proto.GraphTransferInfo.Destination.NOP.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, destination_); + } + 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 org.tensorflow.proto.GraphTransferInfo)) { + return super.equals(obj); + } + org.tensorflow.proto.GraphTransferInfo other = (org.tensorflow.proto.GraphTransferInfo) obj; + + if (!getNodeInfoList() + .equals(other.getNodeInfoList())) return false; + if (!getConstNodeInfoList() + .equals(other.getConstNodeInfoList())) return false; + if (!getNodeInputInfoList() + .equals(other.getNodeInputInfoList())) return false; + if (!getNodeOutputInfoList() + .equals(other.getNodeOutputInfoList())) return false; + if (!getGraphInputNodeInfoList() + .equals(other.getGraphInputNodeInfoList())) return false; + if (!getGraphOutputNodeInfoList() + .equals(other.getGraphOutputNodeInfoList())) return false; + if (destination_ != other.destination_) 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 (getNodeInfoCount() > 0) { + hash = (37 * hash) + NODE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getNodeInfoList().hashCode(); + } + if (getConstNodeInfoCount() > 0) { + hash = (37 * hash) + CONST_NODE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getConstNodeInfoList().hashCode(); + } + if (getNodeInputInfoCount() > 0) { + hash = (37 * hash) + NODE_INPUT_INFO_FIELD_NUMBER; + hash = (53 * hash) + getNodeInputInfoList().hashCode(); + } + if (getNodeOutputInfoCount() > 0) { + hash = (37 * hash) + NODE_OUTPUT_INFO_FIELD_NUMBER; + hash = (53 * hash) + getNodeOutputInfoList().hashCode(); + } + if (getGraphInputNodeInfoCount() > 0) { + hash = (37 * hash) + GRAPH_INPUT_NODE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getGraphInputNodeInfoList().hashCode(); + } + if (getGraphOutputNodeInfoCount() > 0) { + hash = (37 * hash) + GRAPH_OUTPUT_NODE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getGraphOutputNodeInfoList().hashCode(); + } + hash = (37 * hash) + DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + destination_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.GraphTransferInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphTransferInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphTransferInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphTransferInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphTransferInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphTransferInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphTransferInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphTransferInfo 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 org.tensorflow.proto.GraphTransferInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphTransferInfo 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 org.tensorflow.proto.GraphTransferInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphTransferInfo 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(org.tensorflow.proto.GraphTransferInfo 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; + } + /** + *
+   * Protocol buffer representing a handle to a tensorflow resource. Handles are
+   * not valid across executions, but can be serialized back and forth from within
+   * a single run.
+   * 
+ * + * Protobuf type {@code tensorflow.GraphTransferInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferInfo) + org.tensorflow.proto.GraphTransferInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.GraphTransferInfo.class, org.tensorflow.proto.GraphTransferInfo.Builder.class); + } + + // Construct using org.tensorflow.proto.GraphTransferInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (nodeInfoBuilder_ == null) { + nodeInfo_ = java.util.Collections.emptyList(); + } else { + nodeInfo_ = null; + nodeInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (constNodeInfoBuilder_ == null) { + constNodeInfo_ = java.util.Collections.emptyList(); + } else { + constNodeInfo_ = null; + constNodeInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (nodeInputInfoBuilder_ == null) { + nodeInputInfo_ = java.util.Collections.emptyList(); + } else { + nodeInputInfo_ = null; + nodeInputInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (nodeOutputInfoBuilder_ == null) { + nodeOutputInfo_ = java.util.Collections.emptyList(); + } else { + nodeOutputInfo_ = null; + nodeOutputInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (graphInputNodeInfoBuilder_ == null) { + graphInputNodeInfo_ = java.util.Collections.emptyList(); + } else { + graphInputNodeInfo_ = null; + graphInputNodeInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (graphOutputNodeInfoBuilder_ == null) { + graphOutputNodeInfo_ = java.util.Collections.emptyList(); + } else { + graphOutputNodeInfo_ = null; + graphOutputNodeInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + destination_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferInfo_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.GraphTransferInfo getDefaultInstanceForType() { + return org.tensorflow.proto.GraphTransferInfo.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.GraphTransferInfo build() { + org.tensorflow.proto.GraphTransferInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.GraphTransferInfo buildPartial() { + org.tensorflow.proto.GraphTransferInfo result = new org.tensorflow.proto.GraphTransferInfo(this); + int from_bitField0_ = bitField0_; + if (nodeInfoBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodeInfo_ = java.util.Collections.unmodifiableList(nodeInfo_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodeInfo_ = nodeInfo_; + } else { + result.nodeInfo_ = nodeInfoBuilder_.build(); + } + if (constNodeInfoBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + constNodeInfo_ = java.util.Collections.unmodifiableList(constNodeInfo_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.constNodeInfo_ = constNodeInfo_; + } else { + result.constNodeInfo_ = constNodeInfoBuilder_.build(); + } + if (nodeInputInfoBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + nodeInputInfo_ = java.util.Collections.unmodifiableList(nodeInputInfo_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.nodeInputInfo_ = nodeInputInfo_; + } else { + result.nodeInputInfo_ = nodeInputInfoBuilder_.build(); + } + if (nodeOutputInfoBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + nodeOutputInfo_ = java.util.Collections.unmodifiableList(nodeOutputInfo_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.nodeOutputInfo_ = nodeOutputInfo_; + } else { + result.nodeOutputInfo_ = nodeOutputInfoBuilder_.build(); + } + if (graphInputNodeInfoBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + graphInputNodeInfo_ = java.util.Collections.unmodifiableList(graphInputNodeInfo_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.graphInputNodeInfo_ = graphInputNodeInfo_; + } else { + result.graphInputNodeInfo_ = graphInputNodeInfoBuilder_.build(); + } + if (graphOutputNodeInfoBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + graphOutputNodeInfo_ = java.util.Collections.unmodifiableList(graphOutputNodeInfo_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.graphOutputNodeInfo_ = graphOutputNodeInfo_; + } else { + result.graphOutputNodeInfo_ = graphOutputNodeInfoBuilder_.build(); + } + result.destination_ = destination_; + 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 org.tensorflow.proto.GraphTransferInfo) { + return mergeFrom((org.tensorflow.proto.GraphTransferInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.GraphTransferInfo other) { + if (other == org.tensorflow.proto.GraphTransferInfo.getDefaultInstance()) return this; + if (nodeInfoBuilder_ == null) { + if (!other.nodeInfo_.isEmpty()) { + if (nodeInfo_.isEmpty()) { + nodeInfo_ = other.nodeInfo_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodeInfoIsMutable(); + nodeInfo_.addAll(other.nodeInfo_); + } + onChanged(); + } + } else { + if (!other.nodeInfo_.isEmpty()) { + if (nodeInfoBuilder_.isEmpty()) { + nodeInfoBuilder_.dispose(); + nodeInfoBuilder_ = null; + nodeInfo_ = other.nodeInfo_; + bitField0_ = (bitField0_ & ~0x00000001); + nodeInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodeInfoFieldBuilder() : null; + } else { + nodeInfoBuilder_.addAllMessages(other.nodeInfo_); + } + } + } + if (constNodeInfoBuilder_ == null) { + if (!other.constNodeInfo_.isEmpty()) { + if (constNodeInfo_.isEmpty()) { + constNodeInfo_ = other.constNodeInfo_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureConstNodeInfoIsMutable(); + constNodeInfo_.addAll(other.constNodeInfo_); + } + onChanged(); + } + } else { + if (!other.constNodeInfo_.isEmpty()) { + if (constNodeInfoBuilder_.isEmpty()) { + constNodeInfoBuilder_.dispose(); + constNodeInfoBuilder_ = null; + constNodeInfo_ = other.constNodeInfo_; + bitField0_ = (bitField0_ & ~0x00000002); + constNodeInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConstNodeInfoFieldBuilder() : null; + } else { + constNodeInfoBuilder_.addAllMessages(other.constNodeInfo_); + } + } + } + if (nodeInputInfoBuilder_ == null) { + if (!other.nodeInputInfo_.isEmpty()) { + if (nodeInputInfo_.isEmpty()) { + nodeInputInfo_ = other.nodeInputInfo_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureNodeInputInfoIsMutable(); + nodeInputInfo_.addAll(other.nodeInputInfo_); + } + onChanged(); + } + } else { + if (!other.nodeInputInfo_.isEmpty()) { + if (nodeInputInfoBuilder_.isEmpty()) { + nodeInputInfoBuilder_.dispose(); + nodeInputInfoBuilder_ = null; + nodeInputInfo_ = other.nodeInputInfo_; + bitField0_ = (bitField0_ & ~0x00000004); + nodeInputInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodeInputInfoFieldBuilder() : null; + } else { + nodeInputInfoBuilder_.addAllMessages(other.nodeInputInfo_); + } + } + } + if (nodeOutputInfoBuilder_ == null) { + if (!other.nodeOutputInfo_.isEmpty()) { + if (nodeOutputInfo_.isEmpty()) { + nodeOutputInfo_ = other.nodeOutputInfo_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureNodeOutputInfoIsMutable(); + nodeOutputInfo_.addAll(other.nodeOutputInfo_); + } + onChanged(); + } + } else { + if (!other.nodeOutputInfo_.isEmpty()) { + if (nodeOutputInfoBuilder_.isEmpty()) { + nodeOutputInfoBuilder_.dispose(); + nodeOutputInfoBuilder_ = null; + nodeOutputInfo_ = other.nodeOutputInfo_; + bitField0_ = (bitField0_ & ~0x00000008); + nodeOutputInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodeOutputInfoFieldBuilder() : null; + } else { + nodeOutputInfoBuilder_.addAllMessages(other.nodeOutputInfo_); + } + } + } + if (graphInputNodeInfoBuilder_ == null) { + if (!other.graphInputNodeInfo_.isEmpty()) { + if (graphInputNodeInfo_.isEmpty()) { + graphInputNodeInfo_ = other.graphInputNodeInfo_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureGraphInputNodeInfoIsMutable(); + graphInputNodeInfo_.addAll(other.graphInputNodeInfo_); + } + onChanged(); + } + } else { + if (!other.graphInputNodeInfo_.isEmpty()) { + if (graphInputNodeInfoBuilder_.isEmpty()) { + graphInputNodeInfoBuilder_.dispose(); + graphInputNodeInfoBuilder_ = null; + graphInputNodeInfo_ = other.graphInputNodeInfo_; + bitField0_ = (bitField0_ & ~0x00000010); + graphInputNodeInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGraphInputNodeInfoFieldBuilder() : null; + } else { + graphInputNodeInfoBuilder_.addAllMessages(other.graphInputNodeInfo_); + } + } + } + if (graphOutputNodeInfoBuilder_ == null) { + if (!other.graphOutputNodeInfo_.isEmpty()) { + if (graphOutputNodeInfo_.isEmpty()) { + graphOutputNodeInfo_ = other.graphOutputNodeInfo_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureGraphOutputNodeInfoIsMutable(); + graphOutputNodeInfo_.addAll(other.graphOutputNodeInfo_); + } + onChanged(); + } + } else { + if (!other.graphOutputNodeInfo_.isEmpty()) { + if (graphOutputNodeInfoBuilder_.isEmpty()) { + graphOutputNodeInfoBuilder_.dispose(); + graphOutputNodeInfoBuilder_ = null; + graphOutputNodeInfo_ = other.graphOutputNodeInfo_; + bitField0_ = (bitField0_ & ~0x00000020); + graphOutputNodeInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGraphOutputNodeInfoFieldBuilder() : null; + } else { + graphOutputNodeInfoBuilder_.addAllMessages(other.graphOutputNodeInfo_); + } + } + } + if (other.destination_ != 0) { + setDestinationValue(other.getDestinationValue()); + } + 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: { + org.tensorflow.proto.GraphTransferNodeInfo m = + input.readMessage( + org.tensorflow.proto.GraphTransferNodeInfo.parser(), + extensionRegistry); + if (nodeInfoBuilder_ == null) { + ensureNodeInfoIsMutable(); + nodeInfo_.add(m); + } else { + nodeInfoBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + org.tensorflow.proto.GraphTransferConstNodeInfo m = + input.readMessage( + org.tensorflow.proto.GraphTransferConstNodeInfo.parser(), + extensionRegistry); + if (constNodeInfoBuilder_ == null) { + ensureConstNodeInfoIsMutable(); + constNodeInfo_.add(m); + } else { + constNodeInfoBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + org.tensorflow.proto.GraphTransferNodeInputInfo m = + input.readMessage( + org.tensorflow.proto.GraphTransferNodeInputInfo.parser(), + extensionRegistry); + if (nodeInputInfoBuilder_ == null) { + ensureNodeInputInfoIsMutable(); + nodeInputInfo_.add(m); + } else { + nodeInputInfoBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + org.tensorflow.proto.GraphTransferNodeOutputInfo m = + input.readMessage( + org.tensorflow.proto.GraphTransferNodeOutputInfo.parser(), + extensionRegistry); + if (nodeOutputInfoBuilder_ == null) { + ensureNodeOutputInfoIsMutable(); + nodeOutputInfo_.add(m); + } else { + nodeOutputInfoBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + org.tensorflow.proto.GraphTransferGraphInputNodeInfo m = + input.readMessage( + org.tensorflow.proto.GraphTransferGraphInputNodeInfo.parser(), + extensionRegistry); + if (graphInputNodeInfoBuilder_ == null) { + ensureGraphInputNodeInfoIsMutable(); + graphInputNodeInfo_.add(m); + } else { + graphInputNodeInfoBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: { + org.tensorflow.proto.GraphTransferGraphOutputNodeInfo m = + input.readMessage( + org.tensorflow.proto.GraphTransferGraphOutputNodeInfo.parser(), + extensionRegistry); + if (graphOutputNodeInfoBuilder_ == null) { + ensureGraphOutputNodeInfoIsMutable(); + graphOutputNodeInfo_.add(m); + } else { + graphOutputNodeInfoBuilder_.addMessage(m); + } + break; + } // case 50 + case 56: { + destination_ = input.readEnum(); + + break; + } // case 56 + 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.util.List nodeInfo_ = + java.util.Collections.emptyList(); + private void ensureNodeInfoIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nodeInfo_ = new java.util.ArrayList(nodeInfo_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphTransferNodeInfo, org.tensorflow.proto.GraphTransferNodeInfo.Builder, org.tensorflow.proto.GraphTransferNodeInfoOrBuilder> nodeInfoBuilder_; + + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + public java.util.List getNodeInfoList() { + if (nodeInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodeInfo_); + } else { + return nodeInfoBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + public int getNodeInfoCount() { + if (nodeInfoBuilder_ == null) { + return nodeInfo_.size(); + } else { + return nodeInfoBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + public org.tensorflow.proto.GraphTransferNodeInfo getNodeInfo(int index) { + if (nodeInfoBuilder_ == null) { + return nodeInfo_.get(index); + } else { + return nodeInfoBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + public Builder setNodeInfo( + int index, org.tensorflow.proto.GraphTransferNodeInfo value) { + if (nodeInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeInfoIsMutable(); + nodeInfo_.set(index, value); + onChanged(); + } else { + nodeInfoBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + public Builder setNodeInfo( + int index, org.tensorflow.proto.GraphTransferNodeInfo.Builder builderForValue) { + if (nodeInfoBuilder_ == null) { + ensureNodeInfoIsMutable(); + nodeInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + nodeInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + public Builder addNodeInfo(org.tensorflow.proto.GraphTransferNodeInfo value) { + if (nodeInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeInfoIsMutable(); + nodeInfo_.add(value); + onChanged(); + } else { + nodeInfoBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + public Builder addNodeInfo( + int index, org.tensorflow.proto.GraphTransferNodeInfo value) { + if (nodeInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeInfoIsMutable(); + nodeInfo_.add(index, value); + onChanged(); + } else { + nodeInfoBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + public Builder addNodeInfo( + org.tensorflow.proto.GraphTransferNodeInfo.Builder builderForValue) { + if (nodeInfoBuilder_ == null) { + ensureNodeInfoIsMutable(); + nodeInfo_.add(builderForValue.build()); + onChanged(); + } else { + nodeInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + public Builder addNodeInfo( + int index, org.tensorflow.proto.GraphTransferNodeInfo.Builder builderForValue) { + if (nodeInfoBuilder_ == null) { + ensureNodeInfoIsMutable(); + nodeInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + nodeInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + public Builder addAllNodeInfo( + java.lang.Iterable values) { + if (nodeInfoBuilder_ == null) { + ensureNodeInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodeInfo_); + onChanged(); + } else { + nodeInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + public Builder clearNodeInfo() { + if (nodeInfoBuilder_ == null) { + nodeInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodeInfoBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + public Builder removeNodeInfo(int index) { + if (nodeInfoBuilder_ == null) { + ensureNodeInfoIsMutable(); + nodeInfo_.remove(index); + onChanged(); + } else { + nodeInfoBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + public org.tensorflow.proto.GraphTransferNodeInfo.Builder getNodeInfoBuilder( + int index) { + return getNodeInfoFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + public org.tensorflow.proto.GraphTransferNodeInfoOrBuilder getNodeInfoOrBuilder( + int index) { + if (nodeInfoBuilder_ == null) { + return nodeInfo_.get(index); } else { + return nodeInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + public java.util.List + getNodeInfoOrBuilderList() { + if (nodeInfoBuilder_ != null) { + return nodeInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodeInfo_); + } + } + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + public org.tensorflow.proto.GraphTransferNodeInfo.Builder addNodeInfoBuilder() { + return getNodeInfoFieldBuilder().addBuilder( + org.tensorflow.proto.GraphTransferNodeInfo.getDefaultInstance()); + } + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + public org.tensorflow.proto.GraphTransferNodeInfo.Builder addNodeInfoBuilder( + int index) { + return getNodeInfoFieldBuilder().addBuilder( + index, org.tensorflow.proto.GraphTransferNodeInfo.getDefaultInstance()); + } + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + public java.util.List + getNodeInfoBuilderList() { + return getNodeInfoFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphTransferNodeInfo, org.tensorflow.proto.GraphTransferNodeInfo.Builder, org.tensorflow.proto.GraphTransferNodeInfoOrBuilder> + getNodeInfoFieldBuilder() { + if (nodeInfoBuilder_ == null) { + nodeInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphTransferNodeInfo, org.tensorflow.proto.GraphTransferNodeInfo.Builder, org.tensorflow.proto.GraphTransferNodeInfoOrBuilder>( + nodeInfo_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + nodeInfo_ = null; + } + return nodeInfoBuilder_; + } + + private java.util.List constNodeInfo_ = + java.util.Collections.emptyList(); + private void ensureConstNodeInfoIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + constNodeInfo_ = new java.util.ArrayList(constNodeInfo_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphTransferConstNodeInfo, org.tensorflow.proto.GraphTransferConstNodeInfo.Builder, org.tensorflow.proto.GraphTransferConstNodeInfoOrBuilder> constNodeInfoBuilder_; + + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + public java.util.List getConstNodeInfoList() { + if (constNodeInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(constNodeInfo_); + } else { + return constNodeInfoBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + public int getConstNodeInfoCount() { + if (constNodeInfoBuilder_ == null) { + return constNodeInfo_.size(); + } else { + return constNodeInfoBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + public org.tensorflow.proto.GraphTransferConstNodeInfo getConstNodeInfo(int index) { + if (constNodeInfoBuilder_ == null) { + return constNodeInfo_.get(index); + } else { + return constNodeInfoBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + public Builder setConstNodeInfo( + int index, org.tensorflow.proto.GraphTransferConstNodeInfo value) { + if (constNodeInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstNodeInfoIsMutable(); + constNodeInfo_.set(index, value); + onChanged(); + } else { + constNodeInfoBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + public Builder setConstNodeInfo( + int index, org.tensorflow.proto.GraphTransferConstNodeInfo.Builder builderForValue) { + if (constNodeInfoBuilder_ == null) { + ensureConstNodeInfoIsMutable(); + constNodeInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + constNodeInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + public Builder addConstNodeInfo(org.tensorflow.proto.GraphTransferConstNodeInfo value) { + if (constNodeInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstNodeInfoIsMutable(); + constNodeInfo_.add(value); + onChanged(); + } else { + constNodeInfoBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + public Builder addConstNodeInfo( + int index, org.tensorflow.proto.GraphTransferConstNodeInfo value) { + if (constNodeInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstNodeInfoIsMutable(); + constNodeInfo_.add(index, value); + onChanged(); + } else { + constNodeInfoBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + public Builder addConstNodeInfo( + org.tensorflow.proto.GraphTransferConstNodeInfo.Builder builderForValue) { + if (constNodeInfoBuilder_ == null) { + ensureConstNodeInfoIsMutable(); + constNodeInfo_.add(builderForValue.build()); + onChanged(); + } else { + constNodeInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + public Builder addConstNodeInfo( + int index, org.tensorflow.proto.GraphTransferConstNodeInfo.Builder builderForValue) { + if (constNodeInfoBuilder_ == null) { + ensureConstNodeInfoIsMutable(); + constNodeInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + constNodeInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + public Builder addAllConstNodeInfo( + java.lang.Iterable values) { + if (constNodeInfoBuilder_ == null) { + ensureConstNodeInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, constNodeInfo_); + onChanged(); + } else { + constNodeInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + public Builder clearConstNodeInfo() { + if (constNodeInfoBuilder_ == null) { + constNodeInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + constNodeInfoBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + public Builder removeConstNodeInfo(int index) { + if (constNodeInfoBuilder_ == null) { + ensureConstNodeInfoIsMutable(); + constNodeInfo_.remove(index); + onChanged(); + } else { + constNodeInfoBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + public org.tensorflow.proto.GraphTransferConstNodeInfo.Builder getConstNodeInfoBuilder( + int index) { + return getConstNodeInfoFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + public org.tensorflow.proto.GraphTransferConstNodeInfoOrBuilder getConstNodeInfoOrBuilder( + int index) { + if (constNodeInfoBuilder_ == null) { + return constNodeInfo_.get(index); } else { + return constNodeInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + public java.util.List + getConstNodeInfoOrBuilderList() { + if (constNodeInfoBuilder_ != null) { + return constNodeInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(constNodeInfo_); + } + } + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + public org.tensorflow.proto.GraphTransferConstNodeInfo.Builder addConstNodeInfoBuilder() { + return getConstNodeInfoFieldBuilder().addBuilder( + org.tensorflow.proto.GraphTransferConstNodeInfo.getDefaultInstance()); + } + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + public org.tensorflow.proto.GraphTransferConstNodeInfo.Builder addConstNodeInfoBuilder( + int index) { + return getConstNodeInfoFieldBuilder().addBuilder( + index, org.tensorflow.proto.GraphTransferConstNodeInfo.getDefaultInstance()); + } + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + public java.util.List + getConstNodeInfoBuilderList() { + return getConstNodeInfoFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphTransferConstNodeInfo, org.tensorflow.proto.GraphTransferConstNodeInfo.Builder, org.tensorflow.proto.GraphTransferConstNodeInfoOrBuilder> + getConstNodeInfoFieldBuilder() { + if (constNodeInfoBuilder_ == null) { + constNodeInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphTransferConstNodeInfo, org.tensorflow.proto.GraphTransferConstNodeInfo.Builder, org.tensorflow.proto.GraphTransferConstNodeInfoOrBuilder>( + constNodeInfo_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + constNodeInfo_ = null; + } + return constNodeInfoBuilder_; + } + + private java.util.List nodeInputInfo_ = + java.util.Collections.emptyList(); + private void ensureNodeInputInfoIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + nodeInputInfo_ = new java.util.ArrayList(nodeInputInfo_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphTransferNodeInputInfo, org.tensorflow.proto.GraphTransferNodeInputInfo.Builder, org.tensorflow.proto.GraphTransferNodeInputInfoOrBuilder> nodeInputInfoBuilder_; + + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + public java.util.List getNodeInputInfoList() { + if (nodeInputInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodeInputInfo_); + } else { + return nodeInputInfoBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + public int getNodeInputInfoCount() { + if (nodeInputInfoBuilder_ == null) { + return nodeInputInfo_.size(); + } else { + return nodeInputInfoBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + public org.tensorflow.proto.GraphTransferNodeInputInfo getNodeInputInfo(int index) { + if (nodeInputInfoBuilder_ == null) { + return nodeInputInfo_.get(index); + } else { + return nodeInputInfoBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + public Builder setNodeInputInfo( + int index, org.tensorflow.proto.GraphTransferNodeInputInfo value) { + if (nodeInputInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeInputInfoIsMutable(); + nodeInputInfo_.set(index, value); + onChanged(); + } else { + nodeInputInfoBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + public Builder setNodeInputInfo( + int index, org.tensorflow.proto.GraphTransferNodeInputInfo.Builder builderForValue) { + if (nodeInputInfoBuilder_ == null) { + ensureNodeInputInfoIsMutable(); + nodeInputInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + nodeInputInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + public Builder addNodeInputInfo(org.tensorflow.proto.GraphTransferNodeInputInfo value) { + if (nodeInputInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeInputInfoIsMutable(); + nodeInputInfo_.add(value); + onChanged(); + } else { + nodeInputInfoBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + public Builder addNodeInputInfo( + int index, org.tensorflow.proto.GraphTransferNodeInputInfo value) { + if (nodeInputInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeInputInfoIsMutable(); + nodeInputInfo_.add(index, value); + onChanged(); + } else { + nodeInputInfoBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + public Builder addNodeInputInfo( + org.tensorflow.proto.GraphTransferNodeInputInfo.Builder builderForValue) { + if (nodeInputInfoBuilder_ == null) { + ensureNodeInputInfoIsMutable(); + nodeInputInfo_.add(builderForValue.build()); + onChanged(); + } else { + nodeInputInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + public Builder addNodeInputInfo( + int index, org.tensorflow.proto.GraphTransferNodeInputInfo.Builder builderForValue) { + if (nodeInputInfoBuilder_ == null) { + ensureNodeInputInfoIsMutable(); + nodeInputInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + nodeInputInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + public Builder addAllNodeInputInfo( + java.lang.Iterable values) { + if (nodeInputInfoBuilder_ == null) { + ensureNodeInputInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodeInputInfo_); + onChanged(); + } else { + nodeInputInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + public Builder clearNodeInputInfo() { + if (nodeInputInfoBuilder_ == null) { + nodeInputInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + nodeInputInfoBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + public Builder removeNodeInputInfo(int index) { + if (nodeInputInfoBuilder_ == null) { + ensureNodeInputInfoIsMutable(); + nodeInputInfo_.remove(index); + onChanged(); + } else { + nodeInputInfoBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + public org.tensorflow.proto.GraphTransferNodeInputInfo.Builder getNodeInputInfoBuilder( + int index) { + return getNodeInputInfoFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + public org.tensorflow.proto.GraphTransferNodeInputInfoOrBuilder getNodeInputInfoOrBuilder( + int index) { + if (nodeInputInfoBuilder_ == null) { + return nodeInputInfo_.get(index); } else { + return nodeInputInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + public java.util.List + getNodeInputInfoOrBuilderList() { + if (nodeInputInfoBuilder_ != null) { + return nodeInputInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodeInputInfo_); + } + } + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + public org.tensorflow.proto.GraphTransferNodeInputInfo.Builder addNodeInputInfoBuilder() { + return getNodeInputInfoFieldBuilder().addBuilder( + org.tensorflow.proto.GraphTransferNodeInputInfo.getDefaultInstance()); + } + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + public org.tensorflow.proto.GraphTransferNodeInputInfo.Builder addNodeInputInfoBuilder( + int index) { + return getNodeInputInfoFieldBuilder().addBuilder( + index, org.tensorflow.proto.GraphTransferNodeInputInfo.getDefaultInstance()); + } + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + public java.util.List + getNodeInputInfoBuilderList() { + return getNodeInputInfoFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphTransferNodeInputInfo, org.tensorflow.proto.GraphTransferNodeInputInfo.Builder, org.tensorflow.proto.GraphTransferNodeInputInfoOrBuilder> + getNodeInputInfoFieldBuilder() { + if (nodeInputInfoBuilder_ == null) { + nodeInputInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphTransferNodeInputInfo, org.tensorflow.proto.GraphTransferNodeInputInfo.Builder, org.tensorflow.proto.GraphTransferNodeInputInfoOrBuilder>( + nodeInputInfo_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + nodeInputInfo_ = null; + } + return nodeInputInfoBuilder_; + } + + private java.util.List nodeOutputInfo_ = + java.util.Collections.emptyList(); + private void ensureNodeOutputInfoIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + nodeOutputInfo_ = new java.util.ArrayList(nodeOutputInfo_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphTransferNodeOutputInfo, org.tensorflow.proto.GraphTransferNodeOutputInfo.Builder, org.tensorflow.proto.GraphTransferNodeOutputInfoOrBuilder> nodeOutputInfoBuilder_; + + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + public java.util.List getNodeOutputInfoList() { + if (nodeOutputInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodeOutputInfo_); + } else { + return nodeOutputInfoBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + public int getNodeOutputInfoCount() { + if (nodeOutputInfoBuilder_ == null) { + return nodeOutputInfo_.size(); + } else { + return nodeOutputInfoBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + public org.tensorflow.proto.GraphTransferNodeOutputInfo getNodeOutputInfo(int index) { + if (nodeOutputInfoBuilder_ == null) { + return nodeOutputInfo_.get(index); + } else { + return nodeOutputInfoBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + public Builder setNodeOutputInfo( + int index, org.tensorflow.proto.GraphTransferNodeOutputInfo value) { + if (nodeOutputInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeOutputInfoIsMutable(); + nodeOutputInfo_.set(index, value); + onChanged(); + } else { + nodeOutputInfoBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + public Builder setNodeOutputInfo( + int index, org.tensorflow.proto.GraphTransferNodeOutputInfo.Builder builderForValue) { + if (nodeOutputInfoBuilder_ == null) { + ensureNodeOutputInfoIsMutable(); + nodeOutputInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + nodeOutputInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + public Builder addNodeOutputInfo(org.tensorflow.proto.GraphTransferNodeOutputInfo value) { + if (nodeOutputInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeOutputInfoIsMutable(); + nodeOutputInfo_.add(value); + onChanged(); + } else { + nodeOutputInfoBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + public Builder addNodeOutputInfo( + int index, org.tensorflow.proto.GraphTransferNodeOutputInfo value) { + if (nodeOutputInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeOutputInfoIsMutable(); + nodeOutputInfo_.add(index, value); + onChanged(); + } else { + nodeOutputInfoBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + public Builder addNodeOutputInfo( + org.tensorflow.proto.GraphTransferNodeOutputInfo.Builder builderForValue) { + if (nodeOutputInfoBuilder_ == null) { + ensureNodeOutputInfoIsMutable(); + nodeOutputInfo_.add(builderForValue.build()); + onChanged(); + } else { + nodeOutputInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + public Builder addNodeOutputInfo( + int index, org.tensorflow.proto.GraphTransferNodeOutputInfo.Builder builderForValue) { + if (nodeOutputInfoBuilder_ == null) { + ensureNodeOutputInfoIsMutable(); + nodeOutputInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + nodeOutputInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + public Builder addAllNodeOutputInfo( + java.lang.Iterable values) { + if (nodeOutputInfoBuilder_ == null) { + ensureNodeOutputInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodeOutputInfo_); + onChanged(); + } else { + nodeOutputInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + public Builder clearNodeOutputInfo() { + if (nodeOutputInfoBuilder_ == null) { + nodeOutputInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + nodeOutputInfoBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + public Builder removeNodeOutputInfo(int index) { + if (nodeOutputInfoBuilder_ == null) { + ensureNodeOutputInfoIsMutable(); + nodeOutputInfo_.remove(index); + onChanged(); + } else { + nodeOutputInfoBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + public org.tensorflow.proto.GraphTransferNodeOutputInfo.Builder getNodeOutputInfoBuilder( + int index) { + return getNodeOutputInfoFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + public org.tensorflow.proto.GraphTransferNodeOutputInfoOrBuilder getNodeOutputInfoOrBuilder( + int index) { + if (nodeOutputInfoBuilder_ == null) { + return nodeOutputInfo_.get(index); } else { + return nodeOutputInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + public java.util.List + getNodeOutputInfoOrBuilderList() { + if (nodeOutputInfoBuilder_ != null) { + return nodeOutputInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodeOutputInfo_); + } + } + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + public org.tensorflow.proto.GraphTransferNodeOutputInfo.Builder addNodeOutputInfoBuilder() { + return getNodeOutputInfoFieldBuilder().addBuilder( + org.tensorflow.proto.GraphTransferNodeOutputInfo.getDefaultInstance()); + } + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + public org.tensorflow.proto.GraphTransferNodeOutputInfo.Builder addNodeOutputInfoBuilder( + int index) { + return getNodeOutputInfoFieldBuilder().addBuilder( + index, org.tensorflow.proto.GraphTransferNodeOutputInfo.getDefaultInstance()); + } + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + public java.util.List + getNodeOutputInfoBuilderList() { + return getNodeOutputInfoFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphTransferNodeOutputInfo, org.tensorflow.proto.GraphTransferNodeOutputInfo.Builder, org.tensorflow.proto.GraphTransferNodeOutputInfoOrBuilder> + getNodeOutputInfoFieldBuilder() { + if (nodeOutputInfoBuilder_ == null) { + nodeOutputInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphTransferNodeOutputInfo, org.tensorflow.proto.GraphTransferNodeOutputInfo.Builder, org.tensorflow.proto.GraphTransferNodeOutputInfoOrBuilder>( + nodeOutputInfo_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + nodeOutputInfo_ = null; + } + return nodeOutputInfoBuilder_; + } + + private java.util.List graphInputNodeInfo_ = + java.util.Collections.emptyList(); + private void ensureGraphInputNodeInfoIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + graphInputNodeInfo_ = new java.util.ArrayList(graphInputNodeInfo_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphTransferGraphInputNodeInfo, org.tensorflow.proto.GraphTransferGraphInputNodeInfo.Builder, org.tensorflow.proto.GraphTransferGraphInputNodeInfoOrBuilder> graphInputNodeInfoBuilder_; + + /** + *
+     * Input Node parameters of transferred graph
+     * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + public java.util.List getGraphInputNodeInfoList() { + if (graphInputNodeInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(graphInputNodeInfo_); + } else { + return graphInputNodeInfoBuilder_.getMessageList(); + } + } + /** + *
+     * Input Node parameters of transferred graph
+     * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + public int getGraphInputNodeInfoCount() { + if (graphInputNodeInfoBuilder_ == null) { + return graphInputNodeInfo_.size(); + } else { + return graphInputNodeInfoBuilder_.getCount(); + } + } + /** + *
+     * Input Node parameters of transferred graph
+     * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + public org.tensorflow.proto.GraphTransferGraphInputNodeInfo getGraphInputNodeInfo(int index) { + if (graphInputNodeInfoBuilder_ == null) { + return graphInputNodeInfo_.get(index); + } else { + return graphInputNodeInfoBuilder_.getMessage(index); + } + } + /** + *
+     * Input Node parameters of transferred graph
+     * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + public Builder setGraphInputNodeInfo( + int index, org.tensorflow.proto.GraphTransferGraphInputNodeInfo value) { + if (graphInputNodeInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGraphInputNodeInfoIsMutable(); + graphInputNodeInfo_.set(index, value); + onChanged(); + } else { + graphInputNodeInfoBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Input Node parameters of transferred graph
+     * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + public Builder setGraphInputNodeInfo( + int index, org.tensorflow.proto.GraphTransferGraphInputNodeInfo.Builder builderForValue) { + if (graphInputNodeInfoBuilder_ == null) { + ensureGraphInputNodeInfoIsMutable(); + graphInputNodeInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + graphInputNodeInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Input Node parameters of transferred graph
+     * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + public Builder addGraphInputNodeInfo(org.tensorflow.proto.GraphTransferGraphInputNodeInfo value) { + if (graphInputNodeInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGraphInputNodeInfoIsMutable(); + graphInputNodeInfo_.add(value); + onChanged(); + } else { + graphInputNodeInfoBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Input Node parameters of transferred graph
+     * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + public Builder addGraphInputNodeInfo( + int index, org.tensorflow.proto.GraphTransferGraphInputNodeInfo value) { + if (graphInputNodeInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGraphInputNodeInfoIsMutable(); + graphInputNodeInfo_.add(index, value); + onChanged(); + } else { + graphInputNodeInfoBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Input Node parameters of transferred graph
+     * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + public Builder addGraphInputNodeInfo( + org.tensorflow.proto.GraphTransferGraphInputNodeInfo.Builder builderForValue) { + if (graphInputNodeInfoBuilder_ == null) { + ensureGraphInputNodeInfoIsMutable(); + graphInputNodeInfo_.add(builderForValue.build()); + onChanged(); + } else { + graphInputNodeInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Input Node parameters of transferred graph
+     * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + public Builder addGraphInputNodeInfo( + int index, org.tensorflow.proto.GraphTransferGraphInputNodeInfo.Builder builderForValue) { + if (graphInputNodeInfoBuilder_ == null) { + ensureGraphInputNodeInfoIsMutable(); + graphInputNodeInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + graphInputNodeInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Input Node parameters of transferred graph
+     * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + public Builder addAllGraphInputNodeInfo( + java.lang.Iterable values) { + if (graphInputNodeInfoBuilder_ == null) { + ensureGraphInputNodeInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, graphInputNodeInfo_); + onChanged(); + } else { + graphInputNodeInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Input Node parameters of transferred graph
+     * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + public Builder clearGraphInputNodeInfo() { + if (graphInputNodeInfoBuilder_ == null) { + graphInputNodeInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + graphInputNodeInfoBuilder_.clear(); + } + return this; + } + /** + *
+     * Input Node parameters of transferred graph
+     * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + public Builder removeGraphInputNodeInfo(int index) { + if (graphInputNodeInfoBuilder_ == null) { + ensureGraphInputNodeInfoIsMutable(); + graphInputNodeInfo_.remove(index); + onChanged(); + } else { + graphInputNodeInfoBuilder_.remove(index); + } + return this; + } + /** + *
+     * Input Node parameters of transferred graph
+     * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + public org.tensorflow.proto.GraphTransferGraphInputNodeInfo.Builder getGraphInputNodeInfoBuilder( + int index) { + return getGraphInputNodeInfoFieldBuilder().getBuilder(index); + } + /** + *
+     * Input Node parameters of transferred graph
+     * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + public org.tensorflow.proto.GraphTransferGraphInputNodeInfoOrBuilder getGraphInputNodeInfoOrBuilder( + int index) { + if (graphInputNodeInfoBuilder_ == null) { + return graphInputNodeInfo_.get(index); } else { + return graphInputNodeInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Input Node parameters of transferred graph
+     * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + public java.util.List + getGraphInputNodeInfoOrBuilderList() { + if (graphInputNodeInfoBuilder_ != null) { + return graphInputNodeInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(graphInputNodeInfo_); + } + } + /** + *
+     * Input Node parameters of transferred graph
+     * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + public org.tensorflow.proto.GraphTransferGraphInputNodeInfo.Builder addGraphInputNodeInfoBuilder() { + return getGraphInputNodeInfoFieldBuilder().addBuilder( + org.tensorflow.proto.GraphTransferGraphInputNodeInfo.getDefaultInstance()); + } + /** + *
+     * Input Node parameters of transferred graph
+     * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + public org.tensorflow.proto.GraphTransferGraphInputNodeInfo.Builder addGraphInputNodeInfoBuilder( + int index) { + return getGraphInputNodeInfoFieldBuilder().addBuilder( + index, org.tensorflow.proto.GraphTransferGraphInputNodeInfo.getDefaultInstance()); + } + /** + *
+     * Input Node parameters of transferred graph
+     * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + public java.util.List + getGraphInputNodeInfoBuilderList() { + return getGraphInputNodeInfoFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphTransferGraphInputNodeInfo, org.tensorflow.proto.GraphTransferGraphInputNodeInfo.Builder, org.tensorflow.proto.GraphTransferGraphInputNodeInfoOrBuilder> + getGraphInputNodeInfoFieldBuilder() { + if (graphInputNodeInfoBuilder_ == null) { + graphInputNodeInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphTransferGraphInputNodeInfo, org.tensorflow.proto.GraphTransferGraphInputNodeInfo.Builder, org.tensorflow.proto.GraphTransferGraphInputNodeInfoOrBuilder>( + graphInputNodeInfo_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + graphInputNodeInfo_ = null; + } + return graphInputNodeInfoBuilder_; + } + + private java.util.List graphOutputNodeInfo_ = + java.util.Collections.emptyList(); + private void ensureGraphOutputNodeInfoIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + graphOutputNodeInfo_ = new java.util.ArrayList(graphOutputNodeInfo_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphTransferGraphOutputNodeInfo, org.tensorflow.proto.GraphTransferGraphOutputNodeInfo.Builder, org.tensorflow.proto.GraphTransferGraphOutputNodeInfoOrBuilder> graphOutputNodeInfoBuilder_; + + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + public java.util.List getGraphOutputNodeInfoList() { + if (graphOutputNodeInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(graphOutputNodeInfo_); + } else { + return graphOutputNodeInfoBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + public int getGraphOutputNodeInfoCount() { + if (graphOutputNodeInfoBuilder_ == null) { + return graphOutputNodeInfo_.size(); + } else { + return graphOutputNodeInfoBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + public org.tensorflow.proto.GraphTransferGraphOutputNodeInfo getGraphOutputNodeInfo(int index) { + if (graphOutputNodeInfoBuilder_ == null) { + return graphOutputNodeInfo_.get(index); + } else { + return graphOutputNodeInfoBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + public Builder setGraphOutputNodeInfo( + int index, org.tensorflow.proto.GraphTransferGraphOutputNodeInfo value) { + if (graphOutputNodeInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGraphOutputNodeInfoIsMutable(); + graphOutputNodeInfo_.set(index, value); + onChanged(); + } else { + graphOutputNodeInfoBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + public Builder setGraphOutputNodeInfo( + int index, org.tensorflow.proto.GraphTransferGraphOutputNodeInfo.Builder builderForValue) { + if (graphOutputNodeInfoBuilder_ == null) { + ensureGraphOutputNodeInfoIsMutable(); + graphOutputNodeInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + graphOutputNodeInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + public Builder addGraphOutputNodeInfo(org.tensorflow.proto.GraphTransferGraphOutputNodeInfo value) { + if (graphOutputNodeInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGraphOutputNodeInfoIsMutable(); + graphOutputNodeInfo_.add(value); + onChanged(); + } else { + graphOutputNodeInfoBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + public Builder addGraphOutputNodeInfo( + int index, org.tensorflow.proto.GraphTransferGraphOutputNodeInfo value) { + if (graphOutputNodeInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGraphOutputNodeInfoIsMutable(); + graphOutputNodeInfo_.add(index, value); + onChanged(); + } else { + graphOutputNodeInfoBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + public Builder addGraphOutputNodeInfo( + org.tensorflow.proto.GraphTransferGraphOutputNodeInfo.Builder builderForValue) { + if (graphOutputNodeInfoBuilder_ == null) { + ensureGraphOutputNodeInfoIsMutable(); + graphOutputNodeInfo_.add(builderForValue.build()); + onChanged(); + } else { + graphOutputNodeInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + public Builder addGraphOutputNodeInfo( + int index, org.tensorflow.proto.GraphTransferGraphOutputNodeInfo.Builder builderForValue) { + if (graphOutputNodeInfoBuilder_ == null) { + ensureGraphOutputNodeInfoIsMutable(); + graphOutputNodeInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + graphOutputNodeInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + public Builder addAllGraphOutputNodeInfo( + java.lang.Iterable values) { + if (graphOutputNodeInfoBuilder_ == null) { + ensureGraphOutputNodeInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, graphOutputNodeInfo_); + onChanged(); + } else { + graphOutputNodeInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + public Builder clearGraphOutputNodeInfo() { + if (graphOutputNodeInfoBuilder_ == null) { + graphOutputNodeInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + graphOutputNodeInfoBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + public Builder removeGraphOutputNodeInfo(int index) { + if (graphOutputNodeInfoBuilder_ == null) { + ensureGraphOutputNodeInfoIsMutable(); + graphOutputNodeInfo_.remove(index); + onChanged(); + } else { + graphOutputNodeInfoBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + public org.tensorflow.proto.GraphTransferGraphOutputNodeInfo.Builder getGraphOutputNodeInfoBuilder( + int index) { + return getGraphOutputNodeInfoFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + public org.tensorflow.proto.GraphTransferGraphOutputNodeInfoOrBuilder getGraphOutputNodeInfoOrBuilder( + int index) { + if (graphOutputNodeInfoBuilder_ == null) { + return graphOutputNodeInfo_.get(index); } else { + return graphOutputNodeInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + public java.util.List + getGraphOutputNodeInfoOrBuilderList() { + if (graphOutputNodeInfoBuilder_ != null) { + return graphOutputNodeInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(graphOutputNodeInfo_); + } + } + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + public org.tensorflow.proto.GraphTransferGraphOutputNodeInfo.Builder addGraphOutputNodeInfoBuilder() { + return getGraphOutputNodeInfoFieldBuilder().addBuilder( + org.tensorflow.proto.GraphTransferGraphOutputNodeInfo.getDefaultInstance()); + } + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + public org.tensorflow.proto.GraphTransferGraphOutputNodeInfo.Builder addGraphOutputNodeInfoBuilder( + int index) { + return getGraphOutputNodeInfoFieldBuilder().addBuilder( + index, org.tensorflow.proto.GraphTransferGraphOutputNodeInfo.getDefaultInstance()); + } + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + public java.util.List + getGraphOutputNodeInfoBuilderList() { + return getGraphOutputNodeInfoFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphTransferGraphOutputNodeInfo, org.tensorflow.proto.GraphTransferGraphOutputNodeInfo.Builder, org.tensorflow.proto.GraphTransferGraphOutputNodeInfoOrBuilder> + getGraphOutputNodeInfoFieldBuilder() { + if (graphOutputNodeInfoBuilder_ == null) { + graphOutputNodeInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphTransferGraphOutputNodeInfo, org.tensorflow.proto.GraphTransferGraphOutputNodeInfo.Builder, org.tensorflow.proto.GraphTransferGraphOutputNodeInfoOrBuilder>( + graphOutputNodeInfo_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + graphOutputNodeInfo_ = null; + } + return graphOutputNodeInfoBuilder_; + } + + private int destination_ = 0; + /** + *
+     * Destination of graph transfer
+     * 
+ * + * .tensorflow.GraphTransferInfo.Destination destination = 7; + * @return The enum numeric value on the wire for destination. + */ + @java.lang.Override public int getDestinationValue() { + return destination_; + } + /** + *
+     * Destination of graph transfer
+     * 
+ * + * .tensorflow.GraphTransferInfo.Destination destination = 7; + * @param value The enum numeric value on the wire for destination to set. + * @return This builder for chaining. + */ + public Builder setDestinationValue(int value) { + + destination_ = value; + onChanged(); + return this; + } + /** + *
+     * Destination of graph transfer
+     * 
+ * + * .tensorflow.GraphTransferInfo.Destination destination = 7; + * @return The destination. + */ + @java.lang.Override + public org.tensorflow.proto.GraphTransferInfo.Destination getDestination() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.GraphTransferInfo.Destination result = org.tensorflow.proto.GraphTransferInfo.Destination.valueOf(destination_); + return result == null ? org.tensorflow.proto.GraphTransferInfo.Destination.UNRECOGNIZED : result; + } + /** + *
+     * Destination of graph transfer
+     * 
+ * + * .tensorflow.GraphTransferInfo.Destination destination = 7; + * @param value The destination to set. + * @return This builder for chaining. + */ + public Builder setDestination(org.tensorflow.proto.GraphTransferInfo.Destination value) { + if (value == null) { + throw new NullPointerException(); + } + + destination_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Destination of graph transfer
+     * 
+ * + * .tensorflow.GraphTransferInfo.Destination destination = 7; + * @return This builder for chaining. + */ + public Builder clearDestination() { + + destination_ = 0; + 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:tensorflow.GraphTransferInfo) + } + + // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferInfo) + private static final org.tensorflow.proto.GraphTransferInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.GraphTransferInfo(); + } + + public static org.tensorflow.proto.GraphTransferInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GraphTransferInfo 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 org.tensorflow.proto.GraphTransferInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferInfoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferInfoOrBuilder.java new file mode 100644 index 00000000000..82d8c157811 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferInfoOrBuilder.java @@ -0,0 +1,192 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/graph_transfer_info.proto + +package org.tensorflow.proto; + +public interface GraphTransferInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.GraphTransferInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + java.util.List + getNodeInfoList(); + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + org.tensorflow.proto.GraphTransferNodeInfo getNodeInfo(int index); + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + int getNodeInfoCount(); + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + java.util.List + getNodeInfoOrBuilderList(); + /** + * repeated .tensorflow.GraphTransferNodeInfo node_info = 1; + */ + org.tensorflow.proto.GraphTransferNodeInfoOrBuilder getNodeInfoOrBuilder( + int index); + + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + java.util.List + getConstNodeInfoList(); + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + org.tensorflow.proto.GraphTransferConstNodeInfo getConstNodeInfo(int index); + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + int getConstNodeInfoCount(); + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + java.util.List + getConstNodeInfoOrBuilderList(); + /** + * repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; + */ + org.tensorflow.proto.GraphTransferConstNodeInfoOrBuilder getConstNodeInfoOrBuilder( + int index); + + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + java.util.List + getNodeInputInfoList(); + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + org.tensorflow.proto.GraphTransferNodeInputInfo getNodeInputInfo(int index); + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + int getNodeInputInfoCount(); + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + java.util.List + getNodeInputInfoOrBuilderList(); + /** + * repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; + */ + org.tensorflow.proto.GraphTransferNodeInputInfoOrBuilder getNodeInputInfoOrBuilder( + int index); + + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + java.util.List + getNodeOutputInfoList(); + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + org.tensorflow.proto.GraphTransferNodeOutputInfo getNodeOutputInfo(int index); + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + int getNodeOutputInfoCount(); + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + java.util.List + getNodeOutputInfoOrBuilderList(); + /** + * repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; + */ + org.tensorflow.proto.GraphTransferNodeOutputInfoOrBuilder getNodeOutputInfoOrBuilder( + int index); + + /** + *
+   * Input Node parameters of transferred graph
+   * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + java.util.List + getGraphInputNodeInfoList(); + /** + *
+   * Input Node parameters of transferred graph
+   * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + org.tensorflow.proto.GraphTransferGraphInputNodeInfo getGraphInputNodeInfo(int index); + /** + *
+   * Input Node parameters of transferred graph
+   * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + int getGraphInputNodeInfoCount(); + /** + *
+   * Input Node parameters of transferred graph
+   * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + java.util.List + getGraphInputNodeInfoOrBuilderList(); + /** + *
+   * Input Node parameters of transferred graph
+   * 
+ * + * repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; + */ + org.tensorflow.proto.GraphTransferGraphInputNodeInfoOrBuilder getGraphInputNodeInfoOrBuilder( + int index); + + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + java.util.List + getGraphOutputNodeInfoList(); + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + org.tensorflow.proto.GraphTransferGraphOutputNodeInfo getGraphOutputNodeInfo(int index); + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + int getGraphOutputNodeInfoCount(); + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + java.util.List + getGraphOutputNodeInfoOrBuilderList(); + /** + * repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; + */ + org.tensorflow.proto.GraphTransferGraphOutputNodeInfoOrBuilder getGraphOutputNodeInfoOrBuilder( + int index); + + /** + *
+   * Destination of graph transfer
+   * 
+ * + * .tensorflow.GraphTransferInfo.Destination destination = 7; + * @return The enum numeric value on the wire for destination. + */ + int getDestinationValue(); + /** + *
+   * Destination of graph transfer
+   * 
+ * + * .tensorflow.GraphTransferInfo.Destination destination = 7; + * @return The destination. + */ + org.tensorflow.proto.GraphTransferInfo.Destination getDestination(); +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferInfoProto.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferInfoProto.java similarity index 95% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferInfoProto.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferInfoProto.java index 750526c8897..ac0ad341e2a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferInfoProto.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferInfoProto.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/graph_transfer_info.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public final class GraphTransferInfoProto { private GraphTransferInfoProto() {} @@ -96,17 +96,16 @@ public static void registerAllExtensions( "_info\030\006 \003(\0132,.tensorflow.GraphTransferGr" + "aphOutputNodeInfo\022>\n\013destination\030\007 \001(\0162)" + ".tensorflow.GraphTransferInfo.Destinatio" + - "n\"#\n\013Destination\022\007\n\003NOP\020\000\022\013\n\007HEXAGON\020\001B\231" + - "\001\n\036org.tensorflow.proto.frameworkB\026Graph" + - "TransferInfoProtoP\001ZZgithub.com/tensorfl" + - "ow/tensorflow/tensorflow/go/core/framewo" + - "rk/graph_transfer_info_go_proto\370\001\001b\006prot" + - "o3" + "n\"#\n\013Destination\022\007\n\003NOP\020\000\022\013\n\007HEXAGON\020\001B\217" + + "\001\n\024org.tensorflow.protoB\026GraphTransferIn" + + "foProtoP\001ZZgithub.com/tensorflow/tensorf" + + "low/tensorflow/go/core/framework/graph_t" + + "ransfer_info_go_proto\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.framework.TypesProtos.getDescriptor(), + org.tensorflow.proto.TypesProtos.getDescriptor(), }); internal_static_tensorflow_GraphTransferNodeInput_descriptor = getDescriptor().getMessageTypes().get(0); @@ -156,7 +155,7 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_GraphTransferInfo_descriptor, new java.lang.String[] { "NodeInfo", "ConstNodeInfo", "NodeInputInfo", "NodeOutputInfo", "GraphInputNodeInfo", "GraphOutputNodeInfo", "Destination", }); - org.tensorflow.proto.framework.TypesProtos.getDescriptor(); + org.tensorflow.proto.TypesProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeInfo.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeInfo.java new file mode 100644 index 00000000000..4b2dd25d352 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeInfo.java @@ -0,0 +1,995 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/graph_transfer_info.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.GraphTransferNodeInfo} + */ +public final class GraphTransferNodeInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.GraphTransferNodeInfo) + GraphTransferNodeInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use GraphTransferNodeInfo.newBuilder() to construct. + private GraphTransferNodeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GraphTransferNodeInfo() { + name_ = ""; + typeName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GraphTransferNodeInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.GraphTransferNodeInfo.class, org.tensorflow.proto.GraphTransferNodeInfo.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_ID_FIELD_NUMBER = 2; + private int nodeId_; + /** + * int32 node_id = 2; + * @return The nodeId. + */ + @java.lang.Override + public int getNodeId() { + return nodeId_; + } + + public static final int TYPE_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object typeName_; + /** + * string type_name = 3; + * @return The typeName. + */ + @java.lang.Override + public java.lang.String getTypeName() { + java.lang.Object ref = typeName_; + 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(); + typeName_ = s; + return s; + } + } + /** + * string type_name = 3; + * @return The bytes for typeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTypeNameBytes() { + java.lang.Object ref = typeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + typeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOC_OP_ID_FIELD_NUMBER = 4; + private int socOpId_; + /** + * int32 soc_op_id = 4; + * @return The socOpId. + */ + @java.lang.Override + public int getSocOpId() { + return socOpId_; + } + + public static final int PADDING_ID_FIELD_NUMBER = 5; + private int paddingId_; + /** + * int32 padding_id = 5; + * @return The paddingId. + */ + @java.lang.Override + public int getPaddingId() { + return paddingId_; + } + + public static final int INPUT_COUNT_FIELD_NUMBER = 6; + private int inputCount_; + /** + * int32 input_count = 6; + * @return The inputCount. + */ + @java.lang.Override + public int getInputCount() { + return inputCount_; + } + + public static final int OUTPUT_COUNT_FIELD_NUMBER = 7; + private int outputCount_; + /** + * int32 output_count = 7; + * @return The outputCount. + */ + @java.lang.Override + public int getOutputCount() { + return outputCount_; + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (nodeId_ != 0) { + output.writeInt32(2, nodeId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, typeName_); + } + if (socOpId_ != 0) { + output.writeInt32(4, socOpId_); + } + if (paddingId_ != 0) { + output.writeInt32(5, paddingId_); + } + if (inputCount_ != 0) { + output.writeInt32(6, inputCount_); + } + if (outputCount_ != 0) { + output.writeInt32(7, outputCount_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (nodeId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, nodeId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, typeName_); + } + if (socOpId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, socOpId_); + } + if (paddingId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, paddingId_); + } + if (inputCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, inputCount_); + } + if (outputCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, outputCount_); + } + 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 org.tensorflow.proto.GraphTransferNodeInfo)) { + return super.equals(obj); + } + org.tensorflow.proto.GraphTransferNodeInfo other = (org.tensorflow.proto.GraphTransferNodeInfo) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getNodeId() + != other.getNodeId()) return false; + if (!getTypeName() + .equals(other.getTypeName())) return false; + if (getSocOpId() + != other.getSocOpId()) return false; + if (getPaddingId() + != other.getPaddingId()) return false; + if (getInputCount() + != other.getInputCount()) return false; + if (getOutputCount() + != other.getOutputCount()) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeId(); + hash = (37 * hash) + TYPE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTypeName().hashCode(); + hash = (37 * hash) + SOC_OP_ID_FIELD_NUMBER; + hash = (53 * hash) + getSocOpId(); + hash = (37 * hash) + PADDING_ID_FIELD_NUMBER; + hash = (53 * hash) + getPaddingId(); + hash = (37 * hash) + INPUT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getInputCount(); + hash = (37 * hash) + OUTPUT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getOutputCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.GraphTransferNodeInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphTransferNodeInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphTransferNodeInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphTransferNodeInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphTransferNodeInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphTransferNodeInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphTransferNodeInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphTransferNodeInfo 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 org.tensorflow.proto.GraphTransferNodeInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphTransferNodeInfo 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 org.tensorflow.proto.GraphTransferNodeInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphTransferNodeInfo 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(org.tensorflow.proto.GraphTransferNodeInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.GraphTransferNodeInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferNodeInfo) + org.tensorflow.proto.GraphTransferNodeInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.GraphTransferNodeInfo.class, org.tensorflow.proto.GraphTransferNodeInfo.Builder.class); + } + + // Construct using org.tensorflow.proto.GraphTransferNodeInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + nodeId_ = 0; + + typeName_ = ""; + + socOpId_ = 0; + + paddingId_ = 0; + + inputCount_ = 0; + + outputCount_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInfo_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.GraphTransferNodeInfo getDefaultInstanceForType() { + return org.tensorflow.proto.GraphTransferNodeInfo.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.GraphTransferNodeInfo build() { + org.tensorflow.proto.GraphTransferNodeInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.GraphTransferNodeInfo buildPartial() { + org.tensorflow.proto.GraphTransferNodeInfo result = new org.tensorflow.proto.GraphTransferNodeInfo(this); + result.name_ = name_; + result.nodeId_ = nodeId_; + result.typeName_ = typeName_; + result.socOpId_ = socOpId_; + result.paddingId_ = paddingId_; + result.inputCount_ = inputCount_; + result.outputCount_ = outputCount_; + 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 org.tensorflow.proto.GraphTransferNodeInfo) { + return mergeFrom((org.tensorflow.proto.GraphTransferNodeInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.GraphTransferNodeInfo other) { + if (other == org.tensorflow.proto.GraphTransferNodeInfo.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getNodeId() != 0) { + setNodeId(other.getNodeId()); + } + if (!other.getTypeName().isEmpty()) { + typeName_ = other.typeName_; + onChanged(); + } + if (other.getSocOpId() != 0) { + setSocOpId(other.getSocOpId()); + } + if (other.getPaddingId() != 0) { + setPaddingId(other.getPaddingId()); + } + if (other.getInputCount() != 0) { + setInputCount(other.getInputCount()); + } + if (other.getOutputCount() != 0) { + setOutputCount(other.getOutputCount()); + } + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + nodeId_ = input.readInt32(); + + break; + } // case 16 + case 26: { + typeName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + socOpId_ = input.readInt32(); + + break; + } // case 32 + case 40: { + paddingId_ = input.readInt32(); + + break; + } // case 40 + case 48: { + inputCount_ = input.readInt32(); + + break; + } // case 48 + case 56: { + outputCount_ = input.readInt32(); + + break; + } // case 56 + 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 java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int nodeId_ ; + /** + * int32 node_id = 2; + * @return The nodeId. + */ + @java.lang.Override + public int getNodeId() { + return nodeId_; + } + /** + * int32 node_id = 2; + * @param value The nodeId to set. + * @return This builder for chaining. + */ + public Builder setNodeId(int value) { + + nodeId_ = value; + onChanged(); + return this; + } + /** + * int32 node_id = 2; + * @return This builder for chaining. + */ + public Builder clearNodeId() { + + nodeId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object typeName_ = ""; + /** + * string type_name = 3; + * @return The typeName. + */ + public java.lang.String getTypeName() { + java.lang.Object ref = typeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + typeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string type_name = 3; + * @return The bytes for typeName. + */ + public com.google.protobuf.ByteString + getTypeNameBytes() { + java.lang.Object ref = typeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + typeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string type_name = 3; + * @param value The typeName to set. + * @return This builder for chaining. + */ + public Builder setTypeName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + typeName_ = value; + onChanged(); + return this; + } + /** + * string type_name = 3; + * @return This builder for chaining. + */ + public Builder clearTypeName() { + + typeName_ = getDefaultInstance().getTypeName(); + onChanged(); + return this; + } + /** + * string type_name = 3; + * @param value The bytes for typeName to set. + * @return This builder for chaining. + */ + public Builder setTypeNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + typeName_ = value; + onChanged(); + return this; + } + + private int socOpId_ ; + /** + * int32 soc_op_id = 4; + * @return The socOpId. + */ + @java.lang.Override + public int getSocOpId() { + return socOpId_; + } + /** + * int32 soc_op_id = 4; + * @param value The socOpId to set. + * @return This builder for chaining. + */ + public Builder setSocOpId(int value) { + + socOpId_ = value; + onChanged(); + return this; + } + /** + * int32 soc_op_id = 4; + * @return This builder for chaining. + */ + public Builder clearSocOpId() { + + socOpId_ = 0; + onChanged(); + return this; + } + + private int paddingId_ ; + /** + * int32 padding_id = 5; + * @return The paddingId. + */ + @java.lang.Override + public int getPaddingId() { + return paddingId_; + } + /** + * int32 padding_id = 5; + * @param value The paddingId to set. + * @return This builder for chaining. + */ + public Builder setPaddingId(int value) { + + paddingId_ = value; + onChanged(); + return this; + } + /** + * int32 padding_id = 5; + * @return This builder for chaining. + */ + public Builder clearPaddingId() { + + paddingId_ = 0; + onChanged(); + return this; + } + + private int inputCount_ ; + /** + * int32 input_count = 6; + * @return The inputCount. + */ + @java.lang.Override + public int getInputCount() { + return inputCount_; + } + /** + * int32 input_count = 6; + * @param value The inputCount to set. + * @return This builder for chaining. + */ + public Builder setInputCount(int value) { + + inputCount_ = value; + onChanged(); + return this; + } + /** + * int32 input_count = 6; + * @return This builder for chaining. + */ + public Builder clearInputCount() { + + inputCount_ = 0; + onChanged(); + return this; + } + + private int outputCount_ ; + /** + * int32 output_count = 7; + * @return The outputCount. + */ + @java.lang.Override + public int getOutputCount() { + return outputCount_; + } + /** + * int32 output_count = 7; + * @param value The outputCount to set. + * @return This builder for chaining. + */ + public Builder setOutputCount(int value) { + + outputCount_ = value; + onChanged(); + return this; + } + /** + * int32 output_count = 7; + * @return This builder for chaining. + */ + public Builder clearOutputCount() { + + outputCount_ = 0; + 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:tensorflow.GraphTransferNodeInfo) + } + + // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferNodeInfo) + private static final org.tensorflow.proto.GraphTransferNodeInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.GraphTransferNodeInfo(); + } + + public static org.tensorflow.proto.GraphTransferNodeInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GraphTransferNodeInfo 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 org.tensorflow.proto.GraphTransferNodeInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeInfoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeInfoOrBuilder.java similarity index 78% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeInfoOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeInfoOrBuilder.java index 98656c6ee2c..0eb48a9479c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeInfoOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeInfoOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/graph_transfer_info.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface GraphTransferNodeInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.GraphTransferNodeInfo) @@ -9,46 +9,55 @@ public interface GraphTransferNodeInfoOrBuilder extends /** * string name = 1; + * @return The name. */ java.lang.String getName(); /** * string name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * int32 node_id = 2; + * @return The nodeId. */ int getNodeId(); /** * string type_name = 3; + * @return The typeName. */ java.lang.String getTypeName(); /** * string type_name = 3; + * @return The bytes for typeName. */ com.google.protobuf.ByteString getTypeNameBytes(); /** * int32 soc_op_id = 4; + * @return The socOpId. */ int getSocOpId(); /** * int32 padding_id = 5; + * @return The paddingId. */ int getPaddingId(); /** * int32 input_count = 6; + * @return The inputCount. */ int getInputCount(); /** * int32 output_count = 7; + * @return The outputCount. */ int getOutputCount(); } diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeInput.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeInput.java new file mode 100644 index 00000000000..ec051732443 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeInput.java @@ -0,0 +1,529 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/graph_transfer_info.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.GraphTransferNodeInput} + */ +public final class GraphTransferNodeInput extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.GraphTransferNodeInput) + GraphTransferNodeInputOrBuilder { +private static final long serialVersionUID = 0L; + // Use GraphTransferNodeInput.newBuilder() to construct. + private GraphTransferNodeInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GraphTransferNodeInput() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GraphTransferNodeInput(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.GraphTransferNodeInput.class, org.tensorflow.proto.GraphTransferNodeInput.Builder.class); + } + + public static final int NODE_ID_FIELD_NUMBER = 1; + private int nodeId_; + /** + * int32 node_id = 1; + * @return The nodeId. + */ + @java.lang.Override + public int getNodeId() { + return nodeId_; + } + + public static final int OUTPUT_PORT_FIELD_NUMBER = 2; + private int outputPort_; + /** + * int32 output_port = 2; + * @return The outputPort. + */ + @java.lang.Override + public int getOutputPort() { + return outputPort_; + } + + 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 (nodeId_ != 0) { + output.writeInt32(1, nodeId_); + } + if (outputPort_ != 0) { + output.writeInt32(2, outputPort_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nodeId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, nodeId_); + } + if (outputPort_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, outputPort_); + } + 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 org.tensorflow.proto.GraphTransferNodeInput)) { + return super.equals(obj); + } + org.tensorflow.proto.GraphTransferNodeInput other = (org.tensorflow.proto.GraphTransferNodeInput) obj; + + if (getNodeId() + != other.getNodeId()) return false; + if (getOutputPort() + != other.getOutputPort()) 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) + NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeId(); + hash = (37 * hash) + OUTPUT_PORT_FIELD_NUMBER; + hash = (53 * hash) + getOutputPort(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.GraphTransferNodeInput parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphTransferNodeInput parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphTransferNodeInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphTransferNodeInput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphTransferNodeInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphTransferNodeInput parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphTransferNodeInput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphTransferNodeInput 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 org.tensorflow.proto.GraphTransferNodeInput parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphTransferNodeInput 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 org.tensorflow.proto.GraphTransferNodeInput parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphTransferNodeInput 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(org.tensorflow.proto.GraphTransferNodeInput prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.GraphTransferNodeInput} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferNodeInput) + org.tensorflow.proto.GraphTransferNodeInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.GraphTransferNodeInput.class, org.tensorflow.proto.GraphTransferNodeInput.Builder.class); + } + + // Construct using org.tensorflow.proto.GraphTransferNodeInput.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + nodeId_ = 0; + + outputPort_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInput_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.GraphTransferNodeInput getDefaultInstanceForType() { + return org.tensorflow.proto.GraphTransferNodeInput.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.GraphTransferNodeInput build() { + org.tensorflow.proto.GraphTransferNodeInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.GraphTransferNodeInput buildPartial() { + org.tensorflow.proto.GraphTransferNodeInput result = new org.tensorflow.proto.GraphTransferNodeInput(this); + result.nodeId_ = nodeId_; + result.outputPort_ = outputPort_; + 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 org.tensorflow.proto.GraphTransferNodeInput) { + return mergeFrom((org.tensorflow.proto.GraphTransferNodeInput)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.GraphTransferNodeInput other) { + if (other == org.tensorflow.proto.GraphTransferNodeInput.getDefaultInstance()) return this; + if (other.getNodeId() != 0) { + setNodeId(other.getNodeId()); + } + if (other.getOutputPort() != 0) { + setOutputPort(other.getOutputPort()); + } + 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: { + nodeId_ = input.readInt32(); + + break; + } // case 8 + case 16: { + outputPort_ = input.readInt32(); + + break; + } // case 16 + 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 nodeId_ ; + /** + * int32 node_id = 1; + * @return The nodeId. + */ + @java.lang.Override + public int getNodeId() { + return nodeId_; + } + /** + * int32 node_id = 1; + * @param value The nodeId to set. + * @return This builder for chaining. + */ + public Builder setNodeId(int value) { + + nodeId_ = value; + onChanged(); + return this; + } + /** + * int32 node_id = 1; + * @return This builder for chaining. + */ + public Builder clearNodeId() { + + nodeId_ = 0; + onChanged(); + return this; + } + + private int outputPort_ ; + /** + * int32 output_port = 2; + * @return The outputPort. + */ + @java.lang.Override + public int getOutputPort() { + return outputPort_; + } + /** + * int32 output_port = 2; + * @param value The outputPort to set. + * @return This builder for chaining. + */ + public Builder setOutputPort(int value) { + + outputPort_ = value; + onChanged(); + return this; + } + /** + * int32 output_port = 2; + * @return This builder for chaining. + */ + public Builder clearOutputPort() { + + outputPort_ = 0; + 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:tensorflow.GraphTransferNodeInput) + } + + // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferNodeInput) + private static final org.tensorflow.proto.GraphTransferNodeInput DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.GraphTransferNodeInput(); + } + + public static org.tensorflow.proto.GraphTransferNodeInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GraphTransferNodeInput 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 org.tensorflow.proto.GraphTransferNodeInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeInputInfo.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeInputInfo.java new file mode 100644 index 00000000000..5c374398df3 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeInputInfo.java @@ -0,0 +1,816 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/graph_transfer_info.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.GraphTransferNodeInputInfo} + */ +public final class GraphTransferNodeInputInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.GraphTransferNodeInputInfo) + GraphTransferNodeInputInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use GraphTransferNodeInputInfo.newBuilder() to construct. + private GraphTransferNodeInputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GraphTransferNodeInputInfo() { + nodeInput_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GraphTransferNodeInputInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInputInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInputInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.GraphTransferNodeInputInfo.class, org.tensorflow.proto.GraphTransferNodeInputInfo.Builder.class); + } + + public static final int NODE_ID_FIELD_NUMBER = 1; + private int nodeId_; + /** + * int32 node_id = 1; + * @return The nodeId. + */ + @java.lang.Override + public int getNodeId() { + return nodeId_; + } + + public static final int NODE_INPUT_FIELD_NUMBER = 2; + private java.util.List nodeInput_; + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + @java.lang.Override + public java.util.List getNodeInputList() { + return nodeInput_; + } + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + @java.lang.Override + public java.util.List + getNodeInputOrBuilderList() { + return nodeInput_; + } + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + @java.lang.Override + public int getNodeInputCount() { + return nodeInput_.size(); + } + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + @java.lang.Override + public org.tensorflow.proto.GraphTransferNodeInput getNodeInput(int index) { + return nodeInput_.get(index); + } + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + @java.lang.Override + public org.tensorflow.proto.GraphTransferNodeInputOrBuilder getNodeInputOrBuilder( + int index) { + return nodeInput_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (nodeId_ != 0) { + output.writeInt32(1, nodeId_); + } + for (int i = 0; i < nodeInput_.size(); i++) { + output.writeMessage(2, nodeInput_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nodeId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, nodeId_); + } + for (int i = 0; i < nodeInput_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, nodeInput_.get(i)); + } + 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 org.tensorflow.proto.GraphTransferNodeInputInfo)) { + return super.equals(obj); + } + org.tensorflow.proto.GraphTransferNodeInputInfo other = (org.tensorflow.proto.GraphTransferNodeInputInfo) obj; + + if (getNodeId() + != other.getNodeId()) return false; + if (!getNodeInputList() + .equals(other.getNodeInputList())) 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) + NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeId(); + if (getNodeInputCount() > 0) { + hash = (37 * hash) + NODE_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getNodeInputList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.GraphTransferNodeInputInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphTransferNodeInputInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphTransferNodeInputInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphTransferNodeInputInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphTransferNodeInputInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphTransferNodeInputInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphTransferNodeInputInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphTransferNodeInputInfo 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 org.tensorflow.proto.GraphTransferNodeInputInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphTransferNodeInputInfo 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 org.tensorflow.proto.GraphTransferNodeInputInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphTransferNodeInputInfo 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(org.tensorflow.proto.GraphTransferNodeInputInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.GraphTransferNodeInputInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferNodeInputInfo) + org.tensorflow.proto.GraphTransferNodeInputInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInputInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInputInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.GraphTransferNodeInputInfo.class, org.tensorflow.proto.GraphTransferNodeInputInfo.Builder.class); + } + + // Construct using org.tensorflow.proto.GraphTransferNodeInputInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + nodeId_ = 0; + + if (nodeInputBuilder_ == null) { + nodeInput_ = java.util.Collections.emptyList(); + } else { + nodeInput_ = null; + nodeInputBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeInputInfo_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.GraphTransferNodeInputInfo getDefaultInstanceForType() { + return org.tensorflow.proto.GraphTransferNodeInputInfo.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.GraphTransferNodeInputInfo build() { + org.tensorflow.proto.GraphTransferNodeInputInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.GraphTransferNodeInputInfo buildPartial() { + org.tensorflow.proto.GraphTransferNodeInputInfo result = new org.tensorflow.proto.GraphTransferNodeInputInfo(this); + int from_bitField0_ = bitField0_; + result.nodeId_ = nodeId_; + if (nodeInputBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodeInput_ = java.util.Collections.unmodifiableList(nodeInput_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodeInput_ = nodeInput_; + } else { + result.nodeInput_ = nodeInputBuilder_.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 org.tensorflow.proto.GraphTransferNodeInputInfo) { + return mergeFrom((org.tensorflow.proto.GraphTransferNodeInputInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.GraphTransferNodeInputInfo other) { + if (other == org.tensorflow.proto.GraphTransferNodeInputInfo.getDefaultInstance()) return this; + if (other.getNodeId() != 0) { + setNodeId(other.getNodeId()); + } + if (nodeInputBuilder_ == null) { + if (!other.nodeInput_.isEmpty()) { + if (nodeInput_.isEmpty()) { + nodeInput_ = other.nodeInput_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodeInputIsMutable(); + nodeInput_.addAll(other.nodeInput_); + } + onChanged(); + } + } else { + if (!other.nodeInput_.isEmpty()) { + if (nodeInputBuilder_.isEmpty()) { + nodeInputBuilder_.dispose(); + nodeInputBuilder_ = null; + nodeInput_ = other.nodeInput_; + bitField0_ = (bitField0_ & ~0x00000001); + nodeInputBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodeInputFieldBuilder() : null; + } else { + nodeInputBuilder_.addAllMessages(other.nodeInput_); + } + } + } + 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: { + nodeId_ = input.readInt32(); + + break; + } // case 8 + case 18: { + org.tensorflow.proto.GraphTransferNodeInput m = + input.readMessage( + org.tensorflow.proto.GraphTransferNodeInput.parser(), + extensionRegistry); + if (nodeInputBuilder_ == null) { + ensureNodeInputIsMutable(); + nodeInput_.add(m); + } else { + nodeInputBuilder_.addMessage(m); + } + 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 nodeId_ ; + /** + * int32 node_id = 1; + * @return The nodeId. + */ + @java.lang.Override + public int getNodeId() { + return nodeId_; + } + /** + * int32 node_id = 1; + * @param value The nodeId to set. + * @return This builder for chaining. + */ + public Builder setNodeId(int value) { + + nodeId_ = value; + onChanged(); + return this; + } + /** + * int32 node_id = 1; + * @return This builder for chaining. + */ + public Builder clearNodeId() { + + nodeId_ = 0; + onChanged(); + return this; + } + + private java.util.List nodeInput_ = + java.util.Collections.emptyList(); + private void ensureNodeInputIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nodeInput_ = new java.util.ArrayList(nodeInput_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphTransferNodeInput, org.tensorflow.proto.GraphTransferNodeInput.Builder, org.tensorflow.proto.GraphTransferNodeInputOrBuilder> nodeInputBuilder_; + + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + public java.util.List getNodeInputList() { + if (nodeInputBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodeInput_); + } else { + return nodeInputBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + public int getNodeInputCount() { + if (nodeInputBuilder_ == null) { + return nodeInput_.size(); + } else { + return nodeInputBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + public org.tensorflow.proto.GraphTransferNodeInput getNodeInput(int index) { + if (nodeInputBuilder_ == null) { + return nodeInput_.get(index); + } else { + return nodeInputBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + public Builder setNodeInput( + int index, org.tensorflow.proto.GraphTransferNodeInput value) { + if (nodeInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeInputIsMutable(); + nodeInput_.set(index, value); + onChanged(); + } else { + nodeInputBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + public Builder setNodeInput( + int index, org.tensorflow.proto.GraphTransferNodeInput.Builder builderForValue) { + if (nodeInputBuilder_ == null) { + ensureNodeInputIsMutable(); + nodeInput_.set(index, builderForValue.build()); + onChanged(); + } else { + nodeInputBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + public Builder addNodeInput(org.tensorflow.proto.GraphTransferNodeInput value) { + if (nodeInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeInputIsMutable(); + nodeInput_.add(value); + onChanged(); + } else { + nodeInputBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + public Builder addNodeInput( + int index, org.tensorflow.proto.GraphTransferNodeInput value) { + if (nodeInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeInputIsMutable(); + nodeInput_.add(index, value); + onChanged(); + } else { + nodeInputBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + public Builder addNodeInput( + org.tensorflow.proto.GraphTransferNodeInput.Builder builderForValue) { + if (nodeInputBuilder_ == null) { + ensureNodeInputIsMutable(); + nodeInput_.add(builderForValue.build()); + onChanged(); + } else { + nodeInputBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + public Builder addNodeInput( + int index, org.tensorflow.proto.GraphTransferNodeInput.Builder builderForValue) { + if (nodeInputBuilder_ == null) { + ensureNodeInputIsMutable(); + nodeInput_.add(index, builderForValue.build()); + onChanged(); + } else { + nodeInputBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + public Builder addAllNodeInput( + java.lang.Iterable values) { + if (nodeInputBuilder_ == null) { + ensureNodeInputIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodeInput_); + onChanged(); + } else { + nodeInputBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + public Builder clearNodeInput() { + if (nodeInputBuilder_ == null) { + nodeInput_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodeInputBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + public Builder removeNodeInput(int index) { + if (nodeInputBuilder_ == null) { + ensureNodeInputIsMutable(); + nodeInput_.remove(index); + onChanged(); + } else { + nodeInputBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + public org.tensorflow.proto.GraphTransferNodeInput.Builder getNodeInputBuilder( + int index) { + return getNodeInputFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + public org.tensorflow.proto.GraphTransferNodeInputOrBuilder getNodeInputOrBuilder( + int index) { + if (nodeInputBuilder_ == null) { + return nodeInput_.get(index); } else { + return nodeInputBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + public java.util.List + getNodeInputOrBuilderList() { + if (nodeInputBuilder_ != null) { + return nodeInputBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodeInput_); + } + } + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + public org.tensorflow.proto.GraphTransferNodeInput.Builder addNodeInputBuilder() { + return getNodeInputFieldBuilder().addBuilder( + org.tensorflow.proto.GraphTransferNodeInput.getDefaultInstance()); + } + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + public org.tensorflow.proto.GraphTransferNodeInput.Builder addNodeInputBuilder( + int index) { + return getNodeInputFieldBuilder().addBuilder( + index, org.tensorflow.proto.GraphTransferNodeInput.getDefaultInstance()); + } + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + public java.util.List + getNodeInputBuilderList() { + return getNodeInputFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphTransferNodeInput, org.tensorflow.proto.GraphTransferNodeInput.Builder, org.tensorflow.proto.GraphTransferNodeInputOrBuilder> + getNodeInputFieldBuilder() { + if (nodeInputBuilder_ == null) { + nodeInputBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.GraphTransferNodeInput, org.tensorflow.proto.GraphTransferNodeInput.Builder, org.tensorflow.proto.GraphTransferNodeInputOrBuilder>( + nodeInput_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + nodeInput_ = null; + } + return nodeInputBuilder_; + } + @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:tensorflow.GraphTransferNodeInputInfo) + } + + // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferNodeInputInfo) + private static final org.tensorflow.proto.GraphTransferNodeInputInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.GraphTransferNodeInputInfo(); + } + + public static org.tensorflow.proto.GraphTransferNodeInputInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GraphTransferNodeInputInfo 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 org.tensorflow.proto.GraphTransferNodeInputInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeInputInfoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeInputInfoOrBuilder.java new file mode 100644 index 00000000000..3d093918c21 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeInputInfoOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/graph_transfer_info.proto + +package org.tensorflow.proto; + +public interface GraphTransferNodeInputInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.GraphTransferNodeInputInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 node_id = 1; + * @return The nodeId. + */ + int getNodeId(); + + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + java.util.List + getNodeInputList(); + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + org.tensorflow.proto.GraphTransferNodeInput getNodeInput(int index); + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + int getNodeInputCount(); + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + java.util.List + getNodeInputOrBuilderList(); + /** + * repeated .tensorflow.GraphTransferNodeInput node_input = 2; + */ + org.tensorflow.proto.GraphTransferNodeInputOrBuilder getNodeInputOrBuilder( + int index); +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeInputOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeInputOrBuilder.java similarity index 84% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeInputOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeInputOrBuilder.java index 971ffed8443..91bac32cd4c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/GraphTransferNodeInputOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeInputOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/graph_transfer_info.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface GraphTransferNodeInputOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.GraphTransferNodeInput) @@ -9,11 +9,13 @@ public interface GraphTransferNodeInputOrBuilder extends /** * int32 node_id = 1; + * @return The nodeId. */ int getNodeId(); /** * int32 output_port = 2; + * @return The outputPort. */ int getOutputPort(); } diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeOutputInfo.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeOutputInfo.java new file mode 100644 index 00000000000..b12463e4c80 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeOutputInfo.java @@ -0,0 +1,636 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/graph_transfer_info.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.GraphTransferNodeOutputInfo} + */ +public final class GraphTransferNodeOutputInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.GraphTransferNodeOutputInfo) + GraphTransferNodeOutputInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use GraphTransferNodeOutputInfo.newBuilder() to construct. + private GraphTransferNodeOutputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GraphTransferNodeOutputInfo() { + maxByteSize_ = emptyIntList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GraphTransferNodeOutputInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeOutputInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeOutputInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.GraphTransferNodeOutputInfo.class, org.tensorflow.proto.GraphTransferNodeOutputInfo.Builder.class); + } + + public static final int NODE_ID_FIELD_NUMBER = 1; + private int nodeId_; + /** + * int32 node_id = 1; + * @return The nodeId. + */ + @java.lang.Override + public int getNodeId() { + return nodeId_; + } + + public static final int MAX_BYTE_SIZE_FIELD_NUMBER = 2; + private com.google.protobuf.Internal.IntList maxByteSize_; + /** + * repeated int32 max_byte_size = 2; + * @return A list containing the maxByteSize. + */ + @java.lang.Override + public java.util.List + getMaxByteSizeList() { + return maxByteSize_; + } + /** + * repeated int32 max_byte_size = 2; + * @return The count of maxByteSize. + */ + public int getMaxByteSizeCount() { + return maxByteSize_.size(); + } + /** + * repeated int32 max_byte_size = 2; + * @param index The index of the element to return. + * @return The maxByteSize at the given index. + */ + public int getMaxByteSize(int index) { + return maxByteSize_.getInt(index); + } + private int maxByteSizeMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (nodeId_ != 0) { + output.writeInt32(1, nodeId_); + } + if (getMaxByteSizeList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(maxByteSizeMemoizedSerializedSize); + } + for (int i = 0; i < maxByteSize_.size(); i++) { + output.writeInt32NoTag(maxByteSize_.getInt(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nodeId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, nodeId_); + } + { + int dataSize = 0; + for (int i = 0; i < maxByteSize_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(maxByteSize_.getInt(i)); + } + size += dataSize; + if (!getMaxByteSizeList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + maxByteSizeMemoizedSerializedSize = dataSize; + } + 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 org.tensorflow.proto.GraphTransferNodeOutputInfo)) { + return super.equals(obj); + } + org.tensorflow.proto.GraphTransferNodeOutputInfo other = (org.tensorflow.proto.GraphTransferNodeOutputInfo) obj; + + if (getNodeId() + != other.getNodeId()) return false; + if (!getMaxByteSizeList() + .equals(other.getMaxByteSizeList())) 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) + NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeId(); + if (getMaxByteSizeCount() > 0) { + hash = (37 * hash) + MAX_BYTE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getMaxByteSizeList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.GraphTransferNodeOutputInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphTransferNodeOutputInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphTransferNodeOutputInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphTransferNodeOutputInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphTransferNodeOutputInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.GraphTransferNodeOutputInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.GraphTransferNodeOutputInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphTransferNodeOutputInfo 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 org.tensorflow.proto.GraphTransferNodeOutputInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphTransferNodeOutputInfo 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 org.tensorflow.proto.GraphTransferNodeOutputInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.GraphTransferNodeOutputInfo 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(org.tensorflow.proto.GraphTransferNodeOutputInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.GraphTransferNodeOutputInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.GraphTransferNodeOutputInfo) + org.tensorflow.proto.GraphTransferNodeOutputInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeOutputInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeOutputInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.GraphTransferNodeOutputInfo.class, org.tensorflow.proto.GraphTransferNodeOutputInfo.Builder.class); + } + + // Construct using org.tensorflow.proto.GraphTransferNodeOutputInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + nodeId_ = 0; + + maxByteSize_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.GraphTransferInfoProto.internal_static_tensorflow_GraphTransferNodeOutputInfo_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.GraphTransferNodeOutputInfo getDefaultInstanceForType() { + return org.tensorflow.proto.GraphTransferNodeOutputInfo.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.GraphTransferNodeOutputInfo build() { + org.tensorflow.proto.GraphTransferNodeOutputInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.GraphTransferNodeOutputInfo buildPartial() { + org.tensorflow.proto.GraphTransferNodeOutputInfo result = new org.tensorflow.proto.GraphTransferNodeOutputInfo(this); + int from_bitField0_ = bitField0_; + result.nodeId_ = nodeId_; + if (((bitField0_ & 0x00000001) != 0)) { + maxByteSize_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.maxByteSize_ = maxByteSize_; + 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 org.tensorflow.proto.GraphTransferNodeOutputInfo) { + return mergeFrom((org.tensorflow.proto.GraphTransferNodeOutputInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.GraphTransferNodeOutputInfo other) { + if (other == org.tensorflow.proto.GraphTransferNodeOutputInfo.getDefaultInstance()) return this; + if (other.getNodeId() != 0) { + setNodeId(other.getNodeId()); + } + if (!other.maxByteSize_.isEmpty()) { + if (maxByteSize_.isEmpty()) { + maxByteSize_ = other.maxByteSize_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMaxByteSizeIsMutable(); + maxByteSize_.addAll(other.maxByteSize_); + } + 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 8: { + nodeId_ = input.readInt32(); + + break; + } // case 8 + case 16: { + int v = input.readInt32(); + ensureMaxByteSizeIsMutable(); + maxByteSize_.addInt(v); + break; + } // case 16 + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureMaxByteSizeIsMutable(); + while (input.getBytesUntilLimit() > 0) { + maxByteSize_.addInt(input.readInt32()); + } + input.popLimit(limit); + 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 nodeId_ ; + /** + * int32 node_id = 1; + * @return The nodeId. + */ + @java.lang.Override + public int getNodeId() { + return nodeId_; + } + /** + * int32 node_id = 1; + * @param value The nodeId to set. + * @return This builder for chaining. + */ + public Builder setNodeId(int value) { + + nodeId_ = value; + onChanged(); + return this; + } + /** + * int32 node_id = 1; + * @return This builder for chaining. + */ + public Builder clearNodeId() { + + nodeId_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList maxByteSize_ = emptyIntList(); + private void ensureMaxByteSizeIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + maxByteSize_ = mutableCopy(maxByteSize_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated int32 max_byte_size = 2; + * @return A list containing the maxByteSize. + */ + public java.util.List + getMaxByteSizeList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(maxByteSize_) : maxByteSize_; + } + /** + * repeated int32 max_byte_size = 2; + * @return The count of maxByteSize. + */ + public int getMaxByteSizeCount() { + return maxByteSize_.size(); + } + /** + * repeated int32 max_byte_size = 2; + * @param index The index of the element to return. + * @return The maxByteSize at the given index. + */ + public int getMaxByteSize(int index) { + return maxByteSize_.getInt(index); + } + /** + * repeated int32 max_byte_size = 2; + * @param index The index to set the value at. + * @param value The maxByteSize to set. + * @return This builder for chaining. + */ + public Builder setMaxByteSize( + int index, int value) { + ensureMaxByteSizeIsMutable(); + maxByteSize_.setInt(index, value); + onChanged(); + return this; + } + /** + * repeated int32 max_byte_size = 2; + * @param value The maxByteSize to add. + * @return This builder for chaining. + */ + public Builder addMaxByteSize(int value) { + ensureMaxByteSizeIsMutable(); + maxByteSize_.addInt(value); + onChanged(); + return this; + } + /** + * repeated int32 max_byte_size = 2; + * @param values The maxByteSize to add. + * @return This builder for chaining. + */ + public Builder addAllMaxByteSize( + java.lang.Iterable values) { + ensureMaxByteSizeIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, maxByteSize_); + onChanged(); + return this; + } + /** + * repeated int32 max_byte_size = 2; + * @return This builder for chaining. + */ + public Builder clearMaxByteSize() { + maxByteSize_ = emptyIntList(); + bitField0_ = (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:tensorflow.GraphTransferNodeOutputInfo) + } + + // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferNodeOutputInfo) + private static final org.tensorflow.proto.GraphTransferNodeOutputInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.GraphTransferNodeOutputInfo(); + } + + public static org.tensorflow.proto.GraphTransferNodeOutputInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GraphTransferNodeOutputInfo 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 org.tensorflow.proto.GraphTransferNodeOutputInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeOutputInfoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeOutputInfoOrBuilder.java new file mode 100644 index 00000000000..a9bd5aa77a8 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/GraphTransferNodeOutputInfoOrBuilder.java @@ -0,0 +1,32 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/graph_transfer_info.proto + +package org.tensorflow.proto; + +public interface GraphTransferNodeOutputInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.GraphTransferNodeOutputInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 node_id = 1; + * @return The nodeId. + */ + int getNodeId(); + + /** + * repeated int32 max_byte_size = 2; + * @return A list containing the maxByteSize. + */ + java.util.List getMaxByteSizeList(); + /** + * repeated int32 max_byte_size = 2; + * @return The count of maxByteSize. + */ + int getMaxByteSizeCount(); + /** + * repeated int32 max_byte_size = 2; + * @param index The index of the element to return. + * @return The maxByteSize at the given index. + */ + int getMaxByteSize(int index); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Histogram.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Histogram.java new file mode 100644 index 00000000000..5eed02378e2 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Histogram.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/tsl/protobuf/histogram.proto + +package org.tensorflow.proto; + +public final class Histogram { + private Histogram() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_HistogramProto_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_HistogramProto_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'tensorflow/tsl/protobuf/histogram.prot" + + "o\022\ntensorflow\"\207\001\n\016HistogramProto\022\013\n\003min\030" + + "\001 \001(\001\022\013\n\003max\030\002 \001(\001\022\013\n\003num\030\003 \001(\001\022\013\n\003sum\030\004" + + " \001(\001\022\023\n\013sum_squares\030\005 \001(\001\022\030\n\014bucket_limi" + + "t\030\006 \003(\001B\002\020\001\022\022\n\006bucket\030\007 \003(\001B\002\020\001BX\n\024org.t" + + "ensorflow.protoP\001Z;github.com/google/tsl" + + "/tsl/go/core/protobuf/summary_go_proto\370\001" + + "\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_tensorflow_HistogramProto_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_HistogramProto_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_HistogramProto_descriptor, + new java.lang.String[] { "Min", "Max", "Num", "Sum", "SumSquares", "BucketLimit", "Bucket", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/HistogramProto.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/HistogramProto.java new file mode 100644 index 00000000000..a2f142700fe --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/HistogramProto.java @@ -0,0 +1,1154 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/tsl/protobuf/histogram.proto + +package org.tensorflow.proto; + +/** + *
+ * Serialization format for histogram module in
+ * tsl/lib/histogram/histogram.h
+ * 
+ * + * Protobuf type {@code tensorflow.HistogramProto} + */ +public final class HistogramProto extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.HistogramProto) + HistogramProtoOrBuilder { +private static final long serialVersionUID = 0L; + // Use HistogramProto.newBuilder() to construct. + private HistogramProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HistogramProto() { + bucketLimit_ = emptyDoubleList(); + bucket_ = emptyDoubleList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new HistogramProto(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Histogram.internal_static_tensorflow_HistogramProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Histogram.internal_static_tensorflow_HistogramProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.HistogramProto.class, org.tensorflow.proto.HistogramProto.Builder.class); + } + + public static final int MIN_FIELD_NUMBER = 1; + private double min_; + /** + * double min = 1; + * @return The min. + */ + @java.lang.Override + public double getMin() { + return min_; + } + + public static final int MAX_FIELD_NUMBER = 2; + private double max_; + /** + * double max = 2; + * @return The max. + */ + @java.lang.Override + public double getMax() { + return max_; + } + + public static final int NUM_FIELD_NUMBER = 3; + private double num_; + /** + * double num = 3; + * @return The num. + */ + @java.lang.Override + public double getNum() { + return num_; + } + + public static final int SUM_FIELD_NUMBER = 4; + private double sum_; + /** + * double sum = 4; + * @return The sum. + */ + @java.lang.Override + public double getSum() { + return sum_; + } + + public static final int SUM_SQUARES_FIELD_NUMBER = 5; + private double sumSquares_; + /** + * double sum_squares = 5; + * @return The sumSquares. + */ + @java.lang.Override + public double getSumSquares() { + return sumSquares_; + } + + public static final int BUCKET_LIMIT_FIELD_NUMBER = 6; + private com.google.protobuf.Internal.DoubleList bucketLimit_; + /** + *
+   * Parallel arrays encoding the bucket boundaries and the bucket values.
+   * bucket(i) is the count for the bucket i.  The range for
+   * a bucket is:
+   *   i == 0:  -DBL_MAX .. bucket_limit(0)
+   *   i != 0:  bucket_limit(i-1) .. bucket_limit(i)
+   * 
+ * + * repeated double bucket_limit = 6 [packed = true]; + * @return A list containing the bucketLimit. + */ + @java.lang.Override + public java.util.List + getBucketLimitList() { + return bucketLimit_; + } + /** + *
+   * Parallel arrays encoding the bucket boundaries and the bucket values.
+   * bucket(i) is the count for the bucket i.  The range for
+   * a bucket is:
+   *   i == 0:  -DBL_MAX .. bucket_limit(0)
+   *   i != 0:  bucket_limit(i-1) .. bucket_limit(i)
+   * 
+ * + * repeated double bucket_limit = 6 [packed = true]; + * @return The count of bucketLimit. + */ + public int getBucketLimitCount() { + return bucketLimit_.size(); + } + /** + *
+   * Parallel arrays encoding the bucket boundaries and the bucket values.
+   * bucket(i) is the count for the bucket i.  The range for
+   * a bucket is:
+   *   i == 0:  -DBL_MAX .. bucket_limit(0)
+   *   i != 0:  bucket_limit(i-1) .. bucket_limit(i)
+   * 
+ * + * repeated double bucket_limit = 6 [packed = true]; + * @param index The index of the element to return. + * @return The bucketLimit at the given index. + */ + public double getBucketLimit(int index) { + return bucketLimit_.getDouble(index); + } + private int bucketLimitMemoizedSerializedSize = -1; + + public static final int BUCKET_FIELD_NUMBER = 7; + private com.google.protobuf.Internal.DoubleList bucket_; + /** + * repeated double bucket = 7 [packed = true]; + * @return A list containing the bucket. + */ + @java.lang.Override + public java.util.List + getBucketList() { + return bucket_; + } + /** + * repeated double bucket = 7 [packed = true]; + * @return The count of bucket. + */ + public int getBucketCount() { + return bucket_.size(); + } + /** + * repeated double bucket = 7 [packed = true]; + * @param index The index of the element to return. + * @return The bucket at the given index. + */ + public double getBucket(int index) { + return bucket_.getDouble(index); + } + private int bucketMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (java.lang.Double.doubleToRawLongBits(min_) != 0) { + output.writeDouble(1, min_); + } + if (java.lang.Double.doubleToRawLongBits(max_) != 0) { + output.writeDouble(2, max_); + } + if (java.lang.Double.doubleToRawLongBits(num_) != 0) { + output.writeDouble(3, num_); + } + if (java.lang.Double.doubleToRawLongBits(sum_) != 0) { + output.writeDouble(4, sum_); + } + if (java.lang.Double.doubleToRawLongBits(sumSquares_) != 0) { + output.writeDouble(5, sumSquares_); + } + if (getBucketLimitList().size() > 0) { + output.writeUInt32NoTag(50); + output.writeUInt32NoTag(bucketLimitMemoizedSerializedSize); + } + for (int i = 0; i < bucketLimit_.size(); i++) { + output.writeDoubleNoTag(bucketLimit_.getDouble(i)); + } + if (getBucketList().size() > 0) { + output.writeUInt32NoTag(58); + output.writeUInt32NoTag(bucketMemoizedSerializedSize); + } + for (int i = 0; i < bucket_.size(); i++) { + output.writeDoubleNoTag(bucket_.getDouble(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Double.doubleToRawLongBits(min_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, min_); + } + if (java.lang.Double.doubleToRawLongBits(max_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, max_); + } + if (java.lang.Double.doubleToRawLongBits(num_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, num_); + } + if (java.lang.Double.doubleToRawLongBits(sum_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, sum_); + } + if (java.lang.Double.doubleToRawLongBits(sumSquares_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(5, sumSquares_); + } + { + int dataSize = 0; + dataSize = 8 * getBucketLimitList().size(); + size += dataSize; + if (!getBucketLimitList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + bucketLimitMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getBucketList().size(); + size += dataSize; + if (!getBucketList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + bucketMemoizedSerializedSize = dataSize; + } + 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 org.tensorflow.proto.HistogramProto)) { + return super.equals(obj); + } + org.tensorflow.proto.HistogramProto other = (org.tensorflow.proto.HistogramProto) obj; + + if (java.lang.Double.doubleToLongBits(getMin()) + != java.lang.Double.doubleToLongBits( + other.getMin())) return false; + if (java.lang.Double.doubleToLongBits(getMax()) + != java.lang.Double.doubleToLongBits( + other.getMax())) return false; + if (java.lang.Double.doubleToLongBits(getNum()) + != java.lang.Double.doubleToLongBits( + other.getNum())) return false; + if (java.lang.Double.doubleToLongBits(getSum()) + != java.lang.Double.doubleToLongBits( + other.getSum())) return false; + if (java.lang.Double.doubleToLongBits(getSumSquares()) + != java.lang.Double.doubleToLongBits( + other.getSumSquares())) return false; + if (!getBucketLimitList() + .equals(other.getBucketLimitList())) return false; + if (!getBucketList() + .equals(other.getBucketList())) 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) + MIN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMin())); + hash = (37 * hash) + MAX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMax())); + hash = (37 * hash) + NUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getNum())); + hash = (37 * hash) + SUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSum())); + hash = (37 * hash) + SUM_SQUARES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSumSquares())); + if (getBucketLimitCount() > 0) { + hash = (37 * hash) + BUCKET_LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getBucketLimitList().hashCode(); + } + if (getBucketCount() > 0) { + hash = (37 * hash) + BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getBucketList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.HistogramProto parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.HistogramProto parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.HistogramProto parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.HistogramProto parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.HistogramProto parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.HistogramProto parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.HistogramProto parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.HistogramProto 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 org.tensorflow.proto.HistogramProto parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.HistogramProto 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 org.tensorflow.proto.HistogramProto parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.HistogramProto 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(org.tensorflow.proto.HistogramProto 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; + } + /** + *
+   * Serialization format for histogram module in
+   * tsl/lib/histogram/histogram.h
+   * 
+ * + * Protobuf type {@code tensorflow.HistogramProto} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.HistogramProto) + org.tensorflow.proto.HistogramProtoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Histogram.internal_static_tensorflow_HistogramProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Histogram.internal_static_tensorflow_HistogramProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.HistogramProto.class, org.tensorflow.proto.HistogramProto.Builder.class); + } + + // Construct using org.tensorflow.proto.HistogramProto.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + min_ = 0D; + + max_ = 0D; + + num_ = 0D; + + sum_ = 0D; + + sumSquares_ = 0D; + + bucketLimit_ = emptyDoubleList(); + bitField0_ = (bitField0_ & ~0x00000001); + bucket_ = emptyDoubleList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.Histogram.internal_static_tensorflow_HistogramProto_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.HistogramProto getDefaultInstanceForType() { + return org.tensorflow.proto.HistogramProto.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.HistogramProto build() { + org.tensorflow.proto.HistogramProto result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.HistogramProto buildPartial() { + org.tensorflow.proto.HistogramProto result = new org.tensorflow.proto.HistogramProto(this); + int from_bitField0_ = bitField0_; + result.min_ = min_; + result.max_ = max_; + result.num_ = num_; + result.sum_ = sum_; + result.sumSquares_ = sumSquares_; + if (((bitField0_ & 0x00000001) != 0)) { + bucketLimit_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.bucketLimit_ = bucketLimit_; + if (((bitField0_ & 0x00000002) != 0)) { + bucket_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.bucket_ = bucket_; + 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 org.tensorflow.proto.HistogramProto) { + return mergeFrom((org.tensorflow.proto.HistogramProto)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.HistogramProto other) { + if (other == org.tensorflow.proto.HistogramProto.getDefaultInstance()) return this; + if (other.getMin() != 0D) { + setMin(other.getMin()); + } + if (other.getMax() != 0D) { + setMax(other.getMax()); + } + if (other.getNum() != 0D) { + setNum(other.getNum()); + } + if (other.getSum() != 0D) { + setSum(other.getSum()); + } + if (other.getSumSquares() != 0D) { + setSumSquares(other.getSumSquares()); + } + if (!other.bucketLimit_.isEmpty()) { + if (bucketLimit_.isEmpty()) { + bucketLimit_ = other.bucketLimit_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBucketLimitIsMutable(); + bucketLimit_.addAll(other.bucketLimit_); + } + onChanged(); + } + if (!other.bucket_.isEmpty()) { + if (bucket_.isEmpty()) { + bucket_ = other.bucket_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureBucketIsMutable(); + bucket_.addAll(other.bucket_); + } + 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 9: { + min_ = input.readDouble(); + + break; + } // case 9 + case 17: { + max_ = input.readDouble(); + + break; + } // case 17 + case 25: { + num_ = input.readDouble(); + + break; + } // case 25 + case 33: { + sum_ = input.readDouble(); + + break; + } // case 33 + case 41: { + sumSquares_ = input.readDouble(); + + break; + } // case 41 + case 49: { + double v = input.readDouble(); + ensureBucketLimitIsMutable(); + bucketLimit_.addDouble(v); + break; + } // case 49 + case 50: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureBucketLimitIsMutable(); + while (input.getBytesUntilLimit() > 0) { + bucketLimit_.addDouble(input.readDouble()); + } + input.popLimit(limit); + break; + } // case 50 + case 57: { + double v = input.readDouble(); + ensureBucketIsMutable(); + bucket_.addDouble(v); + break; + } // case 57 + case 58: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureBucketIsMutable(); + while (input.getBytesUntilLimit() > 0) { + bucket_.addDouble(input.readDouble()); + } + input.popLimit(limit); + break; + } // case 58 + 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 double min_ ; + /** + * double min = 1; + * @return The min. + */ + @java.lang.Override + public double getMin() { + return min_; + } + /** + * double min = 1; + * @param value The min to set. + * @return This builder for chaining. + */ + public Builder setMin(double value) { + + min_ = value; + onChanged(); + return this; + } + /** + * double min = 1; + * @return This builder for chaining. + */ + public Builder clearMin() { + + min_ = 0D; + onChanged(); + return this; + } + + private double max_ ; + /** + * double max = 2; + * @return The max. + */ + @java.lang.Override + public double getMax() { + return max_; + } + /** + * double max = 2; + * @param value The max to set. + * @return This builder for chaining. + */ + public Builder setMax(double value) { + + max_ = value; + onChanged(); + return this; + } + /** + * double max = 2; + * @return This builder for chaining. + */ + public Builder clearMax() { + + max_ = 0D; + onChanged(); + return this; + } + + private double num_ ; + /** + * double num = 3; + * @return The num. + */ + @java.lang.Override + public double getNum() { + return num_; + } + /** + * double num = 3; + * @param value The num to set. + * @return This builder for chaining. + */ + public Builder setNum(double value) { + + num_ = value; + onChanged(); + return this; + } + /** + * double num = 3; + * @return This builder for chaining. + */ + public Builder clearNum() { + + num_ = 0D; + onChanged(); + return this; + } + + private double sum_ ; + /** + * double sum = 4; + * @return The sum. + */ + @java.lang.Override + public double getSum() { + return sum_; + } + /** + * double sum = 4; + * @param value The sum to set. + * @return This builder for chaining. + */ + public Builder setSum(double value) { + + sum_ = value; + onChanged(); + return this; + } + /** + * double sum = 4; + * @return This builder for chaining. + */ + public Builder clearSum() { + + sum_ = 0D; + onChanged(); + return this; + } + + private double sumSquares_ ; + /** + * double sum_squares = 5; + * @return The sumSquares. + */ + @java.lang.Override + public double getSumSquares() { + return sumSquares_; + } + /** + * double sum_squares = 5; + * @param value The sumSquares to set. + * @return This builder for chaining. + */ + public Builder setSumSquares(double value) { + + sumSquares_ = value; + onChanged(); + return this; + } + /** + * double sum_squares = 5; + * @return This builder for chaining. + */ + public Builder clearSumSquares() { + + sumSquares_ = 0D; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.DoubleList bucketLimit_ = emptyDoubleList(); + private void ensureBucketLimitIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + bucketLimit_ = mutableCopy(bucketLimit_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * Parallel arrays encoding the bucket boundaries and the bucket values.
+     * bucket(i) is the count for the bucket i.  The range for
+     * a bucket is:
+     *   i == 0:  -DBL_MAX .. bucket_limit(0)
+     *   i != 0:  bucket_limit(i-1) .. bucket_limit(i)
+     * 
+ * + * repeated double bucket_limit = 6 [packed = true]; + * @return A list containing the bucketLimit. + */ + public java.util.List + getBucketLimitList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(bucketLimit_) : bucketLimit_; + } + /** + *
+     * Parallel arrays encoding the bucket boundaries and the bucket values.
+     * bucket(i) is the count for the bucket i.  The range for
+     * a bucket is:
+     *   i == 0:  -DBL_MAX .. bucket_limit(0)
+     *   i != 0:  bucket_limit(i-1) .. bucket_limit(i)
+     * 
+ * + * repeated double bucket_limit = 6 [packed = true]; + * @return The count of bucketLimit. + */ + public int getBucketLimitCount() { + return bucketLimit_.size(); + } + /** + *
+     * Parallel arrays encoding the bucket boundaries and the bucket values.
+     * bucket(i) is the count for the bucket i.  The range for
+     * a bucket is:
+     *   i == 0:  -DBL_MAX .. bucket_limit(0)
+     *   i != 0:  bucket_limit(i-1) .. bucket_limit(i)
+     * 
+ * + * repeated double bucket_limit = 6 [packed = true]; + * @param index The index of the element to return. + * @return The bucketLimit at the given index. + */ + public double getBucketLimit(int index) { + return bucketLimit_.getDouble(index); + } + /** + *
+     * Parallel arrays encoding the bucket boundaries and the bucket values.
+     * bucket(i) is the count for the bucket i.  The range for
+     * a bucket is:
+     *   i == 0:  -DBL_MAX .. bucket_limit(0)
+     *   i != 0:  bucket_limit(i-1) .. bucket_limit(i)
+     * 
+ * + * repeated double bucket_limit = 6 [packed = true]; + * @param index The index to set the value at. + * @param value The bucketLimit to set. + * @return This builder for chaining. + */ + public Builder setBucketLimit( + int index, double value) { + ensureBucketLimitIsMutable(); + bucketLimit_.setDouble(index, value); + onChanged(); + return this; + } + /** + *
+     * Parallel arrays encoding the bucket boundaries and the bucket values.
+     * bucket(i) is the count for the bucket i.  The range for
+     * a bucket is:
+     *   i == 0:  -DBL_MAX .. bucket_limit(0)
+     *   i != 0:  bucket_limit(i-1) .. bucket_limit(i)
+     * 
+ * + * repeated double bucket_limit = 6 [packed = true]; + * @param value The bucketLimit to add. + * @return This builder for chaining. + */ + public Builder addBucketLimit(double value) { + ensureBucketLimitIsMutable(); + bucketLimit_.addDouble(value); + onChanged(); + return this; + } + /** + *
+     * Parallel arrays encoding the bucket boundaries and the bucket values.
+     * bucket(i) is the count for the bucket i.  The range for
+     * a bucket is:
+     *   i == 0:  -DBL_MAX .. bucket_limit(0)
+     *   i != 0:  bucket_limit(i-1) .. bucket_limit(i)
+     * 
+ * + * repeated double bucket_limit = 6 [packed = true]; + * @param values The bucketLimit to add. + * @return This builder for chaining. + */ + public Builder addAllBucketLimit( + java.lang.Iterable values) { + ensureBucketLimitIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bucketLimit_); + onChanged(); + return this; + } + /** + *
+     * Parallel arrays encoding the bucket boundaries and the bucket values.
+     * bucket(i) is the count for the bucket i.  The range for
+     * a bucket is:
+     *   i == 0:  -DBL_MAX .. bucket_limit(0)
+     *   i != 0:  bucket_limit(i-1) .. bucket_limit(i)
+     * 
+ * + * repeated double bucket_limit = 6 [packed = true]; + * @return This builder for chaining. + */ + public Builder clearBucketLimit() { + bucketLimit_ = emptyDoubleList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.DoubleList bucket_ = emptyDoubleList(); + private void ensureBucketIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + bucket_ = mutableCopy(bucket_); + bitField0_ |= 0x00000002; + } + } + /** + * repeated double bucket = 7 [packed = true]; + * @return A list containing the bucket. + */ + public java.util.List + getBucketList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(bucket_) : bucket_; + } + /** + * repeated double bucket = 7 [packed = true]; + * @return The count of bucket. + */ + public int getBucketCount() { + return bucket_.size(); + } + /** + * repeated double bucket = 7 [packed = true]; + * @param index The index of the element to return. + * @return The bucket at the given index. + */ + public double getBucket(int index) { + return bucket_.getDouble(index); + } + /** + * repeated double bucket = 7 [packed = true]; + * @param index The index to set the value at. + * @param value The bucket to set. + * @return This builder for chaining. + */ + public Builder setBucket( + int index, double value) { + ensureBucketIsMutable(); + bucket_.setDouble(index, value); + onChanged(); + return this; + } + /** + * repeated double bucket = 7 [packed = true]; + * @param value The bucket to add. + * @return This builder for chaining. + */ + public Builder addBucket(double value) { + ensureBucketIsMutable(); + bucket_.addDouble(value); + onChanged(); + return this; + } + /** + * repeated double bucket = 7 [packed = true]; + * @param values The bucket to add. + * @return This builder for chaining. + */ + public Builder addAllBucket( + java.lang.Iterable values) { + ensureBucketIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bucket_); + onChanged(); + return this; + } + /** + * repeated double bucket = 7 [packed = true]; + * @return This builder for chaining. + */ + public Builder clearBucket() { + bucket_ = emptyDoubleList(); + bitField0_ = (bitField0_ & ~0x00000002); + 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:tensorflow.HistogramProto) + } + + // @@protoc_insertion_point(class_scope:tensorflow.HistogramProto) + private static final org.tensorflow.proto.HistogramProto DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.HistogramProto(); + } + + public static org.tensorflow.proto.HistogramProto getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HistogramProto 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 org.tensorflow.proto.HistogramProto getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/HistogramProtoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/HistogramProtoOrBuilder.java similarity index 78% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/HistogramProtoOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/HistogramProtoOrBuilder.java index d76afe24d19..ab83f57f247 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/HistogramProtoOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/HistogramProtoOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/summary.proto +// source: tensorflow/tsl/protobuf/histogram.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface HistogramProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.HistogramProto) @@ -9,26 +9,31 @@ public interface HistogramProtoOrBuilder extends /** * double min = 1; + * @return The min. */ double getMin(); /** * double max = 2; + * @return The max. */ double getMax(); /** * double num = 3; + * @return The num. */ double getNum(); /** * double sum = 4; + * @return The sum. */ double getSum(); /** * double sum_squares = 5; + * @return The sumSquares. */ double getSumSquares(); @@ -42,6 +47,7 @@ public interface HistogramProtoOrBuilder extends *
* * repeated double bucket_limit = 6 [packed = true]; + * @return A list containing the bucketLimit. */ java.util.List getBucketLimitList(); /** @@ -54,6 +60,7 @@ public interface HistogramProtoOrBuilder extends * * * repeated double bucket_limit = 6 [packed = true]; + * @return The count of bucketLimit. */ int getBucketLimitCount(); /** @@ -66,19 +73,25 @@ public interface HistogramProtoOrBuilder extends * * * repeated double bucket_limit = 6 [packed = true]; + * @param index The index of the element to return. + * @return The bucketLimit at the given index. */ double getBucketLimit(int index); /** * repeated double bucket = 7 [packed = true]; + * @return A list containing the bucket. */ java.util.List getBucketList(); /** * repeated double bucket = 7 [packed = true]; + * @return The count of bucket. */ int getBucketCount(); /** * repeated double bucket = 7 [packed = true]; + * @param index The index of the element to return. + * @return The bucket at the given index. */ double getBucket(int index); } diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Int64List.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Int64List.java new file mode 100644 index 00000000000..b136f0d1862 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Int64List.java @@ -0,0 +1,572 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/example/feature.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.Int64List} + */ +public final class Int64List extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.Int64List) + Int64ListOrBuilder { +private static final long serialVersionUID = 0L; + // Use Int64List.newBuilder() to construct. + private Int64List(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Int64List() { + value_ = emptyLongList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Int64List(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_Int64List_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_Int64List_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Int64List.class, org.tensorflow.proto.Int64List.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private com.google.protobuf.Internal.LongList value_; + /** + * repeated int64 value = 1 [packed = true]; + * @return A list containing the value. + */ + @java.lang.Override + public java.util.List + getValueList() { + return value_; + } + /** + * repeated int64 value = 1 [packed = true]; + * @return The count of value. + */ + public int getValueCount() { + return value_.size(); + } + /** + * repeated int64 value = 1 [packed = true]; + * @param index The index of the element to return. + * @return The value at the given index. + */ + public long getValue(int index) { + return value_.getLong(index); + } + private int valueMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (getValueList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(valueMemoizedSerializedSize); + } + for (int i = 0; i < value_.size(); i++) { + output.writeInt64NoTag(value_.getLong(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < value_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(value_.getLong(i)); + } + size += dataSize; + if (!getValueList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + valueMemoizedSerializedSize = dataSize; + } + 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 org.tensorflow.proto.Int64List)) { + return super.equals(obj); + } + org.tensorflow.proto.Int64List other = (org.tensorflow.proto.Int64List) obj; + + if (!getValueList() + .equals(other.getValueList())) 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 (getValueCount() > 0) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValueList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.Int64List parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Int64List parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Int64List parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Int64List parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Int64List parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Int64List parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Int64List parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Int64List 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 org.tensorflow.proto.Int64List parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Int64List 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 org.tensorflow.proto.Int64List parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Int64List 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(org.tensorflow.proto.Int64List prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.Int64List} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.Int64List) + org.tensorflow.proto.Int64ListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_Int64List_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_Int64List_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Int64List.class, org.tensorflow.proto.Int64List.Builder.class); + } + + // Construct using org.tensorflow.proto.Int64List.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + value_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.FeatureProtos.internal_static_tensorflow_Int64List_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.Int64List getDefaultInstanceForType() { + return org.tensorflow.proto.Int64List.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.Int64List build() { + org.tensorflow.proto.Int64List result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.Int64List buildPartial() { + org.tensorflow.proto.Int64List result = new org.tensorflow.proto.Int64List(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + value_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.value_ = value_; + 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 org.tensorflow.proto.Int64List) { + return mergeFrom((org.tensorflow.proto.Int64List)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.Int64List other) { + if (other == org.tensorflow.proto.Int64List.getDefaultInstance()) return this; + if (!other.value_.isEmpty()) { + if (value_.isEmpty()) { + value_ = other.value_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValueIsMutable(); + value_.addAll(other.value_); + } + 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 8: { + long v = input.readInt64(); + ensureValueIsMutable(); + value_.addLong(v); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureValueIsMutable(); + while (input.getBytesUntilLimit() > 0) { + value_.addLong(input.readInt64()); + } + input.popLimit(limit); + 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.protobuf.Internal.LongList value_ = emptyLongList(); + private void ensureValueIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + value_ = mutableCopy(value_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated int64 value = 1 [packed = true]; + * @return A list containing the value. + */ + public java.util.List + getValueList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(value_) : value_; + } + /** + * repeated int64 value = 1 [packed = true]; + * @return The count of value. + */ + public int getValueCount() { + return value_.size(); + } + /** + * repeated int64 value = 1 [packed = true]; + * @param index The index of the element to return. + * @return The value at the given index. + */ + public long getValue(int index) { + return value_.getLong(index); + } + /** + * repeated int64 value = 1 [packed = true]; + * @param index The index to set the value at. + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue( + int index, long value) { + ensureValueIsMutable(); + value_.setLong(index, value); + onChanged(); + return this; + } + /** + * repeated int64 value = 1 [packed = true]; + * @param value The value to add. + * @return This builder for chaining. + */ + public Builder addValue(long value) { + ensureValueIsMutable(); + value_.addLong(value); + onChanged(); + return this; + } + /** + * repeated int64 value = 1 [packed = true]; + * @param values The value to add. + * @return This builder for chaining. + */ + public Builder addAllValue( + java.lang.Iterable values) { + ensureValueIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, value_); + onChanged(); + return this; + } + /** + * repeated int64 value = 1 [packed = true]; + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = emptyLongList(); + bitField0_ = (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:tensorflow.Int64List) + } + + // @@protoc_insertion_point(class_scope:tensorflow.Int64List) + private static final org.tensorflow.proto.Int64List DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.Int64List(); + } + + public static org.tensorflow.proto.Int64List getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Int64List 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 org.tensorflow.proto.Int64List getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Int64ListOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Int64ListOrBuilder.java new file mode 100644 index 00000000000..bd79fb6e240 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Int64ListOrBuilder.java @@ -0,0 +1,26 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/example/feature.proto + +package org.tensorflow.proto; + +public interface Int64ListOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.Int64List) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated int64 value = 1 [packed = true]; + * @return A list containing the value. + */ + java.util.List getValueList(); + /** + * repeated int64 value = 1 [packed = true]; + * @return The count of value. + */ + int getValueCount(); + /** + * repeated int64 value = 1 [packed = true]; + * @param index The index of the element to return. + * @return The value at the given index. + */ + long getValue(int index); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/InterconnectLink.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/InterconnectLink.java new file mode 100644 index 00000000000..46794a5cdfe --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/InterconnectLink.java @@ -0,0 +1,666 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/device_attributes.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.InterconnectLink} + */ +public final class InterconnectLink extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.InterconnectLink) + InterconnectLinkOrBuilder { +private static final long serialVersionUID = 0L; + // Use InterconnectLink.newBuilder() to construct. + private InterconnectLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private InterconnectLink() { + type_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InterconnectLink(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DeviceAttributesProtos.internal_static_tensorflow_InterconnectLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DeviceAttributesProtos.internal_static_tensorflow_InterconnectLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.InterconnectLink.class, org.tensorflow.proto.InterconnectLink.Builder.class); + } + + public static final int DEVICE_ID_FIELD_NUMBER = 1; + private int deviceId_; + /** + * int32 device_id = 1; + * @return The deviceId. + */ + @java.lang.Override + public int getDeviceId() { + return deviceId_; + } + + public static final int TYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object type_; + /** + * string type = 2; + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + 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(); + type_ = s; + return s; + } + } + /** + * string type = 2; + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STRENGTH_FIELD_NUMBER = 3; + private int strength_; + /** + * int32 strength = 3; + * @return The strength. + */ + @java.lang.Override + public int getStrength() { + return strength_; + } + + 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 (deviceId_ != 0) { + output.writeInt32(1, deviceId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); + } + if (strength_ != 0) { + output.writeInt32(3, strength_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (deviceId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, deviceId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); + } + if (strength_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, strength_); + } + 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 org.tensorflow.proto.InterconnectLink)) { + return super.equals(obj); + } + org.tensorflow.proto.InterconnectLink other = (org.tensorflow.proto.InterconnectLink) obj; + + if (getDeviceId() + != other.getDeviceId()) return false; + if (!getType() + .equals(other.getType())) return false; + if (getStrength() + != other.getStrength()) 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) + DEVICE_ID_FIELD_NUMBER; + hash = (53 * hash) + getDeviceId(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (37 * hash) + STRENGTH_FIELD_NUMBER; + hash = (53 * hash) + getStrength(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.InterconnectLink parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.InterconnectLink parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.InterconnectLink parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.InterconnectLink parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.InterconnectLink parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.InterconnectLink parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.InterconnectLink parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.InterconnectLink 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 org.tensorflow.proto.InterconnectLink parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.InterconnectLink 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 org.tensorflow.proto.InterconnectLink parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.InterconnectLink 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(org.tensorflow.proto.InterconnectLink prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.InterconnectLink} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.InterconnectLink) + org.tensorflow.proto.InterconnectLinkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DeviceAttributesProtos.internal_static_tensorflow_InterconnectLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DeviceAttributesProtos.internal_static_tensorflow_InterconnectLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.InterconnectLink.class, org.tensorflow.proto.InterconnectLink.Builder.class); + } + + // Construct using org.tensorflow.proto.InterconnectLink.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + deviceId_ = 0; + + type_ = ""; + + strength_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.DeviceAttributesProtos.internal_static_tensorflow_InterconnectLink_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.InterconnectLink getDefaultInstanceForType() { + return org.tensorflow.proto.InterconnectLink.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.InterconnectLink build() { + org.tensorflow.proto.InterconnectLink result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.InterconnectLink buildPartial() { + org.tensorflow.proto.InterconnectLink result = new org.tensorflow.proto.InterconnectLink(this); + result.deviceId_ = deviceId_; + result.type_ = type_; + result.strength_ = strength_; + 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 org.tensorflow.proto.InterconnectLink) { + return mergeFrom((org.tensorflow.proto.InterconnectLink)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.InterconnectLink other) { + if (other == org.tensorflow.proto.InterconnectLink.getDefaultInstance()) return this; + if (other.getDeviceId() != 0) { + setDeviceId(other.getDeviceId()); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + if (other.getStrength() != 0) { + setStrength(other.getStrength()); + } + 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: { + deviceId_ = input.readInt32(); + + break; + } // case 8 + case 18: { + type_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + strength_ = input.readInt32(); + + break; + } // case 24 + 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 deviceId_ ; + /** + * int32 device_id = 1; + * @return The deviceId. + */ + @java.lang.Override + public int getDeviceId() { + return deviceId_; + } + /** + * int32 device_id = 1; + * @param value The deviceId to set. + * @return This builder for chaining. + */ + public Builder setDeviceId(int value) { + + deviceId_ = value; + onChanged(); + return this; + } + /** + * int32 device_id = 1; + * @return This builder for chaining. + */ + public Builder clearDeviceId() { + + deviceId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + /** + * string type = 2; + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string type = 2; + * @return The bytes for type. + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string type = 2; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value; + onChanged(); + return this; + } + /** + * string type = 2; + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + * string type = 2; + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + type_ = value; + onChanged(); + return this; + } + + private int strength_ ; + /** + * int32 strength = 3; + * @return The strength. + */ + @java.lang.Override + public int getStrength() { + return strength_; + } + /** + * int32 strength = 3; + * @param value The strength to set. + * @return This builder for chaining. + */ + public Builder setStrength(int value) { + + strength_ = value; + onChanged(); + return this; + } + /** + * int32 strength = 3; + * @return This builder for chaining. + */ + public Builder clearStrength() { + + strength_ = 0; + 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:tensorflow.InterconnectLink) + } + + // @@protoc_insertion_point(class_scope:tensorflow.InterconnectLink) + private static final org.tensorflow.proto.InterconnectLink DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.InterconnectLink(); + } + + public static org.tensorflow.proto.InterconnectLink getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InterconnectLink 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 org.tensorflow.proto.InterconnectLink getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/InterconnectLinkOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/InterconnectLinkOrBuilder.java similarity index 81% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/InterconnectLinkOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/InterconnectLinkOrBuilder.java index 61316cfa8cc..cfa368ba915 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/InterconnectLinkOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/InterconnectLinkOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/device_attributes.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface InterconnectLinkOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.InterconnectLink) @@ -9,21 +9,25 @@ public interface InterconnectLinkOrBuilder extends /** * int32 device_id = 1; + * @return The deviceId. */ int getDeviceId(); /** * string type = 2; + * @return The type. */ java.lang.String getType(); /** * string type = 2; + * @return The bytes for type. */ com.google.protobuf.ByteString getTypeBytes(); /** * int32 strength = 3; + * @return The strength. */ int getStrength(); } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/JobDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/JobDef.java similarity index 77% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/JobDef.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/JobDef.java index c6766412507..e131789b1fc 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/JobDef.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/JobDef.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/cluster.proto -package org.tensorflow.proto.distruntime; +package org.tensorflow.proto; /** *
@@ -10,7 +10,7 @@
  *
  * Protobuf type {@code tensorflow.JobDef}
  */
-public  final class JobDef extends
+public final class JobDef extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.JobDef)
     JobDefOrBuilder {
@@ -35,66 +35,9 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private JobDef(
-      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: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              tasks_ = com.google.protobuf.MapField.newMapField(
-                  TasksDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
-            }
-            com.google.protobuf.MapEntry
-            tasks__ = input.readMessage(
-                TasksDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            tasks_.getMutableMap().put(
-                tasks__.getKey(), tasks__.getValue());
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
-        }
-      }
-    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-      throw e.setUnfinishedMessage(this);
-    } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
-    } finally {
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.distruntime.ClusterProtos.internal_static_tensorflow_JobDef_descriptor;
+    return org.tensorflow.proto.ClusterProtos.internal_static_tensorflow_JobDef_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
@@ -112,9 +55,9 @@ protected com.google.protobuf.MapField internalGetMapField(
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.distruntime.ClusterProtos.internal_static_tensorflow_JobDef_fieldAccessorTable
+    return org.tensorflow.proto.ClusterProtos.internal_static_tensorflow_JobDef_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.distruntime.JobDef.class, org.tensorflow.proto.distruntime.JobDef.Builder.class);
+            org.tensorflow.proto.JobDef.class, org.tensorflow.proto.JobDef.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
@@ -125,7 +68,9 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -144,7 +89,9 @@ public java.lang.String getName() { * * * string name = 1; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -165,7 +112,7 @@ private static final class TasksDefaultEntryHolder { java.lang.Integer, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( - org.tensorflow.proto.distruntime.ClusterProtos.internal_static_tensorflow_JobDef_TasksEntry_descriptor, + org.tensorflow.proto.ClusterProtos.internal_static_tensorflow_JobDef_TasksEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.STRING, @@ -191,11 +138,14 @@ public int getTasksCount() { * If the `name` field contains "worker", and the `tasks` map contains a * mapping from 7 to "example.org:2222", then the device prefix * "/job:worker/task:7" will be assigned to "example.org:2222". + * If a job has multiple replicas, host-ports will be comma-delimited, with + * one entry for each replica. * * * map<int32, string> tasks = 2; */ + @java.lang.Override public boolean containsTasks( int key) { @@ -204,6 +154,7 @@ public boolean containsTasks( /** * Use {@link #getTasksMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getTasks() { return getTasksMap(); @@ -214,10 +165,13 @@ public java.util.Map getTasks() { * If the `name` field contains "worker", and the `tasks` map contains a * mapping from 7 to "example.org:2222", then the device prefix * "/job:worker/task:7" will be assigned to "example.org:2222". + * If a job has multiple replicas, host-ports will be comma-delimited, with + * one entry for each replica. * * * map<int32, string> tasks = 2; */ + @java.lang.Override public java.util.Map getTasksMap() { return internalGetTasks().getMap(); @@ -228,10 +182,13 @@ public java.util.Map getTasksMap() { * If the `name` field contains "worker", and the `tasks` map contains a * mapping from 7 to "example.org:2222", then the device prefix * "/job:worker/task:7" will be assigned to "example.org:2222". + * If a job has multiple replicas, host-ports will be comma-delimited, with + * one entry for each replica. * * * map<int32, string> tasks = 2; */ + @java.lang.Override public java.lang.String getTasksOrDefault( int key, @@ -247,10 +204,13 @@ public java.lang.String getTasksOrDefault( * If the `name` field contains "worker", and the `tasks` map contains a * mapping from 7 to "example.org:2222", then the device prefix * "/job:worker/task:7" will be assigned to "example.org:2222". + * If a job has multiple replicas, host-ports will be comma-delimited, with + * one entry for each replica. * * * map<int32, string> tasks = 2; */ + @java.lang.Override public java.lang.String getTasksOrThrow( int key) { @@ -277,7 +237,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } com.google.protobuf.GeneratedMessageV3 @@ -286,7 +246,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) internalGetTasks(), TasksDefaultEntryHolder.defaultEntry, 2); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -295,7 +255,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (java.util.Map.Entry entry @@ -308,7 +268,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, tasks__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -318,16 +278,16 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.distruntime.JobDef)) { + if (!(obj instanceof org.tensorflow.proto.JobDef)) { return super.equals(obj); } - org.tensorflow.proto.distruntime.JobDef other = (org.tensorflow.proto.distruntime.JobDef) obj; + org.tensorflow.proto.JobDef other = (org.tensorflow.proto.JobDef) obj; if (!getName() .equals(other.getName())) return false; if (!internalGetTasks().equals( other.internalGetTasks())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -344,74 +304,74 @@ public int hashCode() { hash = (37 * hash) + TASKS_FIELD_NUMBER; hash = (53 * hash) + internalGetTasks().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.distruntime.JobDef parseFrom( + public static org.tensorflow.proto.JobDef parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.distruntime.JobDef parseFrom( + public static org.tensorflow.proto.JobDef parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.distruntime.JobDef parseFrom( + public static org.tensorflow.proto.JobDef parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.distruntime.JobDef parseFrom( + public static org.tensorflow.proto.JobDef parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.distruntime.JobDef parseFrom(byte[] data) + public static org.tensorflow.proto.JobDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.distruntime.JobDef parseFrom( + public static org.tensorflow.proto.JobDef parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.distruntime.JobDef parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.JobDef parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.distruntime.JobDef parseFrom( + public static org.tensorflow.proto.JobDef 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 org.tensorflow.proto.distruntime.JobDef parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.JobDef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.distruntime.JobDef parseDelimitedFrom( + public static org.tensorflow.proto.JobDef 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 org.tensorflow.proto.distruntime.JobDef parseFrom( + public static org.tensorflow.proto.JobDef parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.distruntime.JobDef parseFrom( + public static org.tensorflow.proto.JobDef parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -424,7 +384,7 @@ public static org.tensorflow.proto.distruntime.JobDef parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.distruntime.JobDef prototype) { + public static Builder newBuilder(org.tensorflow.proto.JobDef prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -449,10 +409,10 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.JobDef) - org.tensorflow.proto.distruntime.JobDefOrBuilder { + org.tensorflow.proto.JobDefOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.distruntime.ClusterProtos.internal_static_tensorflow_JobDef_descriptor; + return org.tensorflow.proto.ClusterProtos.internal_static_tensorflow_JobDef_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -480,25 +440,20 @@ protected com.google.protobuf.MapField internalGetMutableMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.distruntime.ClusterProtos.internal_static_tensorflow_JobDef_fieldAccessorTable + return org.tensorflow.proto.ClusterProtos.internal_static_tensorflow_JobDef_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.distruntime.JobDef.class, org.tensorflow.proto.distruntime.JobDef.Builder.class); + org.tensorflow.proto.JobDef.class, org.tensorflow.proto.JobDef.Builder.class); } - // Construct using org.tensorflow.proto.distruntime.JobDef.newBuilder() + // Construct using org.tensorflow.proto.JobDef.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -512,17 +467,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.distruntime.ClusterProtos.internal_static_tensorflow_JobDef_descriptor; + return org.tensorflow.proto.ClusterProtos.internal_static_tensorflow_JobDef_descriptor; } @java.lang.Override - public org.tensorflow.proto.distruntime.JobDef getDefaultInstanceForType() { - return org.tensorflow.proto.distruntime.JobDef.getDefaultInstance(); + public org.tensorflow.proto.JobDef getDefaultInstanceForType() { + return org.tensorflow.proto.JobDef.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.distruntime.JobDef build() { - org.tensorflow.proto.distruntime.JobDef result = buildPartial(); + public org.tensorflow.proto.JobDef build() { + org.tensorflow.proto.JobDef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -530,8 +485,8 @@ public org.tensorflow.proto.distruntime.JobDef build() { } @java.lang.Override - public org.tensorflow.proto.distruntime.JobDef buildPartial() { - org.tensorflow.proto.distruntime.JobDef result = new org.tensorflow.proto.distruntime.JobDef(this); + public org.tensorflow.proto.JobDef buildPartial() { + org.tensorflow.proto.JobDef result = new org.tensorflow.proto.JobDef(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.tasks_ = internalGetTasks(); @@ -574,23 +529,23 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.distruntime.JobDef) { - return mergeFrom((org.tensorflow.proto.distruntime.JobDef)other); + if (other instanceof org.tensorflow.proto.JobDef) { + return mergeFrom((org.tensorflow.proto.JobDef)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.distruntime.JobDef other) { - if (other == org.tensorflow.proto.distruntime.JobDef.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.JobDef other) { + if (other == org.tensorflow.proto.JobDef.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } internalGetMutableTasks().mergeFrom( other.internalGetTasks()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -605,17 +560,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.distruntime.JobDef parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + com.google.protobuf.MapEntry + tasks__ = input.readMessage( + TasksDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableTasks().getMutableMap().put( + tasks__.getKey(), tasks__.getValue()); + 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) { - parsedMessage = (org.tensorflow.proto.distruntime.JobDef) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -627,6 +608,7 @@ public Builder mergeFrom( * * * string name = 1; + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -646,6 +628,7 @@ public java.lang.String getName() { * * * string name = 1; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -666,6 +649,8 @@ public java.lang.String getName() { * * * string name = 1; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { @@ -683,6 +668,7 @@ public Builder setName( * * * string name = 1; + * @return This builder for chaining. */ public Builder clearName() { @@ -696,6 +682,8 @@ public Builder clearName() { * * * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { @@ -741,11 +729,14 @@ public int getTasksCount() { * If the `name` field contains "worker", and the `tasks` map contains a * mapping from 7 to "example.org:2222", then the device prefix * "/job:worker/task:7" will be assigned to "example.org:2222". + * If a job has multiple replicas, host-ports will be comma-delimited, with + * one entry for each replica. * * * map<int32, string> tasks = 2; */ + @java.lang.Override public boolean containsTasks( int key) { @@ -754,6 +745,7 @@ public boolean containsTasks( /** * Use {@link #getTasksMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getTasks() { return getTasksMap(); @@ -764,10 +756,13 @@ public java.util.Map getTasks() { * If the `name` field contains "worker", and the `tasks` map contains a * mapping from 7 to "example.org:2222", then the device prefix * "/job:worker/task:7" will be assigned to "example.org:2222". + * If a job has multiple replicas, host-ports will be comma-delimited, with + * one entry for each replica. * * * map<int32, string> tasks = 2; */ + @java.lang.Override public java.util.Map getTasksMap() { return internalGetTasks().getMap(); @@ -778,10 +773,13 @@ public java.util.Map getTasksMap() { * If the `name` field contains "worker", and the `tasks` map contains a * mapping from 7 to "example.org:2222", then the device prefix * "/job:worker/task:7" will be assigned to "example.org:2222". + * If a job has multiple replicas, host-ports will be comma-delimited, with + * one entry for each replica. * * * map<int32, string> tasks = 2; */ + @java.lang.Override public java.lang.String getTasksOrDefault( int key, @@ -797,10 +795,13 @@ public java.lang.String getTasksOrDefault( * If the `name` field contains "worker", and the `tasks` map contains a * mapping from 7 to "example.org:2222", then the device prefix * "/job:worker/task:7" will be assigned to "example.org:2222". + * If a job has multiple replicas, host-ports will be comma-delimited, with + * one entry for each replica. * * * map<int32, string> tasks = 2; */ + @java.lang.Override public java.lang.String getTasksOrThrow( int key) { @@ -824,6 +825,8 @@ public Builder clearTasks() { * If the `name` field contains "worker", and the `tasks` map contains a * mapping from 7 to "example.org:2222", then the device prefix * "/job:worker/task:7" will be assigned to "example.org:2222". + * If a job has multiple replicas, host-ports will be comma-delimited, with + * one entry for each replica. * * * map<int32, string> tasks = 2; @@ -850,6 +853,8 @@ public Builder removeTasks( * If the `name` field contains "worker", and the `tasks` map contains a * mapping from 7 to "example.org:2222", then the device prefix * "/job:worker/task:7" will be assigned to "example.org:2222". + * If a job has multiple replicas, host-ports will be comma-delimited, with + * one entry for each replica. * * * map<int32, string> tasks = 2; @@ -858,7 +863,10 @@ public Builder putTasks( int key, java.lang.String value) { - if (value == null) { throw new java.lang.NullPointerException(); } + if (value == null) { + throw new NullPointerException("map value"); +} + internalGetMutableTasks().getMutableMap() .put(key, value); return this; @@ -869,6 +877,8 @@ public Builder putTasks( * If the `name` field contains "worker", and the `tasks` map contains a * mapping from 7 to "example.org:2222", then the device prefix * "/job:worker/task:7" will be assigned to "example.org:2222". + * If a job has multiple replicas, host-ports will be comma-delimited, with + * one entry for each replica. * * * map<int32, string> tasks = 2; @@ -897,12 +907,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.JobDef) - private static final org.tensorflow.proto.distruntime.JobDef DEFAULT_INSTANCE; + private static final org.tensorflow.proto.JobDef DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.distruntime.JobDef(); + DEFAULT_INSTANCE = new org.tensorflow.proto.JobDef(); } - public static org.tensorflow.proto.distruntime.JobDef getDefaultInstance() { + public static org.tensorflow.proto.JobDef getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -913,7 +923,18 @@ public JobDef parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new JobDef(input, extensionRegistry); + 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(); } }; @@ -927,7 +948,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.distruntime.JobDef getDefaultInstanceForType() { + public org.tensorflow.proto.JobDef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/JobDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/JobDefOrBuilder.java similarity index 78% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/JobDefOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/JobDefOrBuilder.java index a9c24b98a74..f7ba9e5e2f7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/JobDefOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/JobDefOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/cluster.proto -package org.tensorflow.proto.distruntime; +package org.tensorflow.proto; public interface JobDefOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.JobDef) @@ -13,6 +13,7 @@ public interface JobDefOrBuilder extends * * * string name = 1; + * @return The name. */ java.lang.String getName(); /** @@ -21,6 +22,7 @@ public interface JobDefOrBuilder extends * * * string name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -31,6 +33,8 @@ public interface JobDefOrBuilder extends * If the `name` field contains "worker", and the `tasks` map contains a * mapping from 7 to "example.org:2222", then the device prefix * "/job:worker/task:7" will be assigned to "example.org:2222". + * If a job has multiple replicas, host-ports will be comma-delimited, with + * one entry for each replica. * * * map<int32, string> tasks = 2; @@ -42,6 +46,8 @@ public interface JobDefOrBuilder extends * If the `name` field contains "worker", and the `tasks` map contains a * mapping from 7 to "example.org:2222", then the device prefix * "/job:worker/task:7" will be assigned to "example.org:2222". + * If a job has multiple replicas, host-ports will be comma-delimited, with + * one entry for each replica. * * * map<int32, string> tasks = 2; @@ -60,6 +66,8 @@ boolean containsTasks( * If the `name` field contains "worker", and the `tasks` map contains a * mapping from 7 to "example.org:2222", then the device prefix * "/job:worker/task:7" will be assigned to "example.org:2222". + * If a job has multiple replicas, host-ports will be comma-delimited, with + * one entry for each replica. * * * map<int32, string> tasks = 2; @@ -72,20 +80,26 @@ boolean containsTasks( * If the `name` field contains "worker", and the `tasks` map contains a * mapping from 7 to "example.org:2222", then the device prefix * "/job:worker/task:7" will be assigned to "example.org:2222". + * If a job has multiple replicas, host-ports will be comma-delimited, with + * one entry for each replica. * * * map<int32, string> tasks = 2; */ - java.lang.String getTasksOrDefault( + /* nullable */ +java.lang.String getTasksOrDefault( int key, - java.lang.String defaultValue); + /* nullable */ +java.lang.String defaultValue); /** *
    * Mapping from task ID to "hostname:port" string.
    * If the `name` field contains "worker", and the `tasks` map contains a
    * mapping from 7 to "example.org:2222", then the device prefix
    * "/job:worker/task:7" will be assigned to "example.org:2222".
+   * If a job has multiple replicas, host-ports will be comma-delimited, with
+   * one entry for each replica.
    * 
* * map<int32, string> tasks = 2; diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/JobDeviceFilters.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/JobDeviceFilters.java new file mode 100644 index 00000000000..606381d8fb2 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/JobDeviceFilters.java @@ -0,0 +1,901 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/device_filters.proto + +package org.tensorflow.proto; + +/** + *
+ * Defines the device filters for tasks in a job.
+ * 
+ * + * Protobuf type {@code tensorflow.JobDeviceFilters} + */ +public final class JobDeviceFilters extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.JobDeviceFilters) + JobDeviceFiltersOrBuilder { +private static final long serialVersionUID = 0L; + // Use JobDeviceFilters.newBuilder() to construct. + private JobDeviceFilters(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private JobDeviceFilters() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new JobDeviceFilters(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DeviceFiltersProtos.internal_static_tensorflow_JobDeviceFilters_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetTasks(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DeviceFiltersProtos.internal_static_tensorflow_JobDeviceFilters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.JobDeviceFilters.class, org.tensorflow.proto.JobDeviceFilters.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The name of this job.
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+   * The name of this job.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TASKS_FIELD_NUMBER = 2; + private static final class TasksDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.Integer, org.tensorflow.proto.TaskDeviceFilters> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.tensorflow.proto.DeviceFiltersProtos.internal_static_tensorflow_JobDeviceFilters_TasksEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.INT32, + 0, + com.google.protobuf.WireFormat.FieldType.MESSAGE, + org.tensorflow.proto.TaskDeviceFilters.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.Integer, org.tensorflow.proto.TaskDeviceFilters> tasks_; + private com.google.protobuf.MapField + internalGetTasks() { + if (tasks_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TasksDefaultEntryHolder.defaultEntry); + } + return tasks_; + } + + public int getTasksCount() { + return internalGetTasks().getMap().size(); + } + /** + *
+   * Mapping from task ID to task device filters.
+   * 
+ * + * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; + */ + + @java.lang.Override + public boolean containsTasks( + int key) { + + return internalGetTasks().getMap().containsKey(key); + } + /** + * Use {@link #getTasksMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTasks() { + return getTasksMap(); + } + /** + *
+   * Mapping from task ID to task device filters.
+   * 
+ * + * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; + */ + @java.lang.Override + + public java.util.Map getTasksMap() { + return internalGetTasks().getMap(); + } + /** + *
+   * Mapping from task ID to task device filters.
+   * 
+ * + * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.TaskDeviceFilters getTasksOrDefault( + int key, + org.tensorflow.proto.TaskDeviceFilters defaultValue) { + + java.util.Map map = + internalGetTasks().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Mapping from task ID to task device filters.
+   * 
+ * + * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.TaskDeviceFilters getTasksOrThrow( + int key) { + + java.util.Map map = + internalGetTasks().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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeIntegerMapTo( + output, + internalGetTasks(), + TasksDefaultEntryHolder.defaultEntry, + 2); + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + for (java.util.Map.Entry entry + : internalGetTasks().getMap().entrySet()) { + com.google.protobuf.MapEntry + tasks__ = TasksDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, tasks__); + } + 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 org.tensorflow.proto.JobDeviceFilters)) { + return super.equals(obj); + } + org.tensorflow.proto.JobDeviceFilters other = (org.tensorflow.proto.JobDeviceFilters) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!internalGetTasks().equals( + other.internalGetTasks())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (!internalGetTasks().getMap().isEmpty()) { + hash = (37 * hash) + TASKS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTasks().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.JobDeviceFilters parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.JobDeviceFilters parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.JobDeviceFilters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.JobDeviceFilters parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.JobDeviceFilters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.JobDeviceFilters parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.JobDeviceFilters parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.JobDeviceFilters 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 org.tensorflow.proto.JobDeviceFilters parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.JobDeviceFilters 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 org.tensorflow.proto.JobDeviceFilters parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.JobDeviceFilters 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(org.tensorflow.proto.JobDeviceFilters 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; + } + /** + *
+   * Defines the device filters for tasks in a job.
+   * 
+ * + * Protobuf type {@code tensorflow.JobDeviceFilters} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.JobDeviceFilters) + org.tensorflow.proto.JobDeviceFiltersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DeviceFiltersProtos.internal_static_tensorflow_JobDeviceFilters_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetTasks(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 2: + return internalGetMutableTasks(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DeviceFiltersProtos.internal_static_tensorflow_JobDeviceFilters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.JobDeviceFilters.class, org.tensorflow.proto.JobDeviceFilters.Builder.class); + } + + // Construct using org.tensorflow.proto.JobDeviceFilters.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + internalGetMutableTasks().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.DeviceFiltersProtos.internal_static_tensorflow_JobDeviceFilters_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.JobDeviceFilters getDefaultInstanceForType() { + return org.tensorflow.proto.JobDeviceFilters.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.JobDeviceFilters build() { + org.tensorflow.proto.JobDeviceFilters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.JobDeviceFilters buildPartial() { + org.tensorflow.proto.JobDeviceFilters result = new org.tensorflow.proto.JobDeviceFilters(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.tasks_ = internalGetTasks(); + result.tasks_.makeImmutable(); + 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 org.tensorflow.proto.JobDeviceFilters) { + return mergeFrom((org.tensorflow.proto.JobDeviceFilters)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.JobDeviceFilters other) { + if (other == org.tensorflow.proto.JobDeviceFilters.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + internalGetMutableTasks().mergeFrom( + other.internalGetTasks()); + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + com.google.protobuf.MapEntry + tasks__ = input.readMessage( + TasksDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableTasks().getMutableMap().put( + tasks__.getKey(), tasks__.getValue()); + 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 java.lang.Object name_ = ""; + /** + *
+     * The name of this job.
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of this job.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of this job.
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of this job.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name of this job.
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.Integer, org.tensorflow.proto.TaskDeviceFilters> tasks_; + private com.google.protobuf.MapField + internalGetTasks() { + if (tasks_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TasksDefaultEntryHolder.defaultEntry); + } + return tasks_; + } + private com.google.protobuf.MapField + internalGetMutableTasks() { + onChanged();; + if (tasks_ == null) { + tasks_ = com.google.protobuf.MapField.newMapField( + TasksDefaultEntryHolder.defaultEntry); + } + if (!tasks_.isMutable()) { + tasks_ = tasks_.copy(); + } + return tasks_; + } + + public int getTasksCount() { + return internalGetTasks().getMap().size(); + } + /** + *
+     * Mapping from task ID to task device filters.
+     * 
+ * + * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; + */ + + @java.lang.Override + public boolean containsTasks( + int key) { + + return internalGetTasks().getMap().containsKey(key); + } + /** + * Use {@link #getTasksMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTasks() { + return getTasksMap(); + } + /** + *
+     * Mapping from task ID to task device filters.
+     * 
+ * + * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; + */ + @java.lang.Override + + public java.util.Map getTasksMap() { + return internalGetTasks().getMap(); + } + /** + *
+     * Mapping from task ID to task device filters.
+     * 
+ * + * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.TaskDeviceFilters getTasksOrDefault( + int key, + org.tensorflow.proto.TaskDeviceFilters defaultValue) { + + java.util.Map map = + internalGetTasks().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Mapping from task ID to task device filters.
+     * 
+ * + * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.TaskDeviceFilters getTasksOrThrow( + int key) { + + java.util.Map map = + internalGetTasks().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTasks() { + internalGetMutableTasks().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Mapping from task ID to task device filters.
+     * 
+ * + * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; + */ + + public Builder removeTasks( + int key) { + + internalGetMutableTasks().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableTasks() { + return internalGetMutableTasks().getMutableMap(); + } + /** + *
+     * Mapping from task ID to task device filters.
+     * 
+ * + * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; + */ + public Builder putTasks( + int key, + org.tensorflow.proto.TaskDeviceFilters value) { + + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableTasks().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Mapping from task ID to task device filters.
+     * 
+ * + * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; + */ + + public Builder putAllTasks( + java.util.Map values) { + internalGetMutableTasks().getMutableMap() + .putAll(values); + 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:tensorflow.JobDeviceFilters) + } + + // @@protoc_insertion_point(class_scope:tensorflow.JobDeviceFilters) + private static final org.tensorflow.proto.JobDeviceFilters DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.JobDeviceFilters(); + } + + public static org.tensorflow.proto.JobDeviceFilters getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobDeviceFilters 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 org.tensorflow.proto.JobDeviceFilters getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/JobDeviceFiltersOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/JobDeviceFiltersOrBuilder.java similarity index 78% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/JobDeviceFiltersOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/JobDeviceFiltersOrBuilder.java index 92c3ba82935..7108c3d23ce 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/JobDeviceFiltersOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/JobDeviceFiltersOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/device_filters.proto -package org.tensorflow.proto.distruntime; +package org.tensorflow.proto; public interface JobDeviceFiltersOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.JobDeviceFilters) @@ -13,6 +13,7 @@ public interface JobDeviceFiltersOrBuilder extends * * * string name = 1; + * @return The name. */ java.lang.String getName(); /** @@ -21,6 +22,7 @@ public interface JobDeviceFiltersOrBuilder extends * * * string name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -46,7 +48,7 @@ boolean containsTasks( * Use {@link #getTasksMap()} instead. */ @java.lang.Deprecated - java.util.Map + java.util.Map getTasks(); /** *
@@ -55,7 +57,7 @@ boolean containsTasks(
    *
    * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2;
    */
-  java.util.Map
+  java.util.Map
   getTasksMap();
   /**
    * 
@@ -65,9 +67,11 @@ boolean containsTasks(
    * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2;
    */
 
-  org.tensorflow.proto.distruntime.TaskDeviceFilters getTasksOrDefault(
+  /* nullable */
+org.tensorflow.proto.TaskDeviceFilters getTasksOrDefault(
       int key,
-      org.tensorflow.proto.distruntime.TaskDeviceFilters defaultValue);
+      /* nullable */
+org.tensorflow.proto.TaskDeviceFilters defaultValue);
   /**
    * 
    * Mapping from task ID to task device filters.
@@ -76,6 +80,6 @@ org.tensorflow.proto.distruntime.TaskDeviceFilters getTasksOrDefault(
    * map<int32, .tensorflow.TaskDeviceFilters> tasks = 2;
    */
 
-  org.tensorflow.proto.distruntime.TaskDeviceFilters getTasksOrThrow(
+  org.tensorflow.proto.TaskDeviceFilters getTasksOrThrow(
       int key);
 }
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/KernelDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/KernelDef.java
similarity index 77%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/KernelDef.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/KernelDef.java
index 76637537c9e..760847ecb03 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/KernelDef.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/KernelDef.java
@@ -1,12 +1,12 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/framework/kernel_def.proto
 
-package org.tensorflow.proto.framework;
+package org.tensorflow.proto;
 
 /**
  * Protobuf type {@code tensorflow.KernelDef}
  */
-public  final class KernelDef extends
+public final class KernelDef extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.KernelDef)
     KernelDefOrBuilder {
@@ -35,102 +35,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private KernelDef(
-      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: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            op_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            deviceType_ = s;
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              constraint_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            constraint_.add(
-                input.readMessage(org.tensorflow.proto.framework.KernelDef.AttrConstraint.parser(), extensionRegistry));
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              hostMemoryArg_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
-            }
-            hostMemoryArg_.add(s);
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            label_ = s;
-            break;
-          }
-          case 48: {
-
-            priority_ = input.readInt32();
-            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)) {
-        constraint_ = java.util.Collections.unmodifiableList(constraint_);
-      }
-      if (((mutable_bitField0_ & 0x00000002) != 0)) {
-        hostMemoryArg_ = hostMemoryArg_.getUnmodifiableView();
-      }
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.framework.KernelDefProtos.internal_static_tensorflow_KernelDef_descriptor;
+    return org.tensorflow.proto.KernelDefProtos.internal_static_tensorflow_KernelDef_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.framework.KernelDefProtos.internal_static_tensorflow_KernelDef_fieldAccessorTable
+    return org.tensorflow.proto.KernelDefProtos.internal_static_tensorflow_KernelDef_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.framework.KernelDef.class, org.tensorflow.proto.framework.KernelDef.Builder.class);
+            org.tensorflow.proto.KernelDef.class, org.tensorflow.proto.KernelDef.Builder.class);
   }
 
   public interface AttrConstraintOrBuilder extends
@@ -143,6 +58,7 @@ public interface AttrConstraintOrBuilder extends
      * 
* * string name = 1; + * @return The name. */ java.lang.String getName(); /** @@ -151,6 +67,7 @@ public interface AttrConstraintOrBuilder extends *
* * string name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -162,6 +79,7 @@ public interface AttrConstraintOrBuilder extends *
* * .tensorflow.AttrValue allowed_values = 2; + * @return Whether the allowedValues field is set. */ boolean hasAllowedValues(); /** @@ -171,8 +89,9 @@ public interface AttrConstraintOrBuilder extends * * * .tensorflow.AttrValue allowed_values = 2; + * @return The allowedValues. */ - org.tensorflow.proto.framework.AttrValue getAllowedValues(); + org.tensorflow.proto.AttrValue getAllowedValues(); /** *
      * A list of values that this kernel supports for this attr.
@@ -181,12 +100,12 @@ public interface AttrConstraintOrBuilder extends
      *
      * .tensorflow.AttrValue allowed_values = 2;
      */
-    org.tensorflow.proto.framework.AttrValueOrBuilder getAllowedValuesOrBuilder();
+    org.tensorflow.proto.AttrValueOrBuilder getAllowedValuesOrBuilder();
   }
   /**
    * Protobuf type {@code tensorflow.KernelDef.AttrConstraint}
    */
-  public  static final class AttrConstraint extends
+  public static final class AttrConstraint extends
       com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:tensorflow.KernelDef.AttrConstraint)
       AttrConstraintOrBuilder {
@@ -211,73 +130,17 @@ protected java.lang.Object newInstance(
     getUnknownFields() {
       return this.unknownFields;
     }
-    private AttrConstraint(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      this();
-      if (extensionRegistry == null) {
-        throw new java.lang.NullPointerException();
-      }
-      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
-          com.google.protobuf.UnknownFieldSet.newBuilder();
-      try {
-        boolean done = false;
-        while (!done) {
-          int tag = input.readTag();
-          switch (tag) {
-            case 0:
-              done = true;
-              break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              name_ = s;
-              break;
-            }
-            case 18: {
-              org.tensorflow.proto.framework.AttrValue.Builder subBuilder = null;
-              if (allowedValues_ != null) {
-                subBuilder = allowedValues_.toBuilder();
-              }
-              allowedValues_ = input.readMessage(org.tensorflow.proto.framework.AttrValue.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(allowedValues_);
-                allowedValues_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
-            }
-          }
-        }
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(this);
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
-      } finally {
-        this.unknownFields = unknownFields.build();
-        makeExtensionsImmutable();
-      }
-    }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return org.tensorflow.proto.framework.KernelDefProtos.internal_static_tensorflow_KernelDef_AttrConstraint_descriptor;
+      return org.tensorflow.proto.KernelDefProtos.internal_static_tensorflow_KernelDef_AttrConstraint_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return org.tensorflow.proto.framework.KernelDefProtos.internal_static_tensorflow_KernelDef_AttrConstraint_fieldAccessorTable
+      return org.tensorflow.proto.KernelDefProtos.internal_static_tensorflow_KernelDef_AttrConstraint_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              org.tensorflow.proto.framework.KernelDef.AttrConstraint.class, org.tensorflow.proto.framework.KernelDef.AttrConstraint.Builder.class);
+              org.tensorflow.proto.KernelDef.AttrConstraint.class, org.tensorflow.proto.KernelDef.AttrConstraint.Builder.class);
     }
 
     public static final int NAME_FIELD_NUMBER = 1;
@@ -288,7 +151,9 @@ private AttrConstraint(
      * 
* * string name = 1; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -307,7 +172,9 @@ public java.lang.String getName() { * * * string name = 1; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -323,7 +190,7 @@ public java.lang.String getName() { } public static final int ALLOWED_VALUES_FIELD_NUMBER = 2; - private org.tensorflow.proto.framework.AttrValue allowedValues_; + private org.tensorflow.proto.AttrValue allowedValues_; /** *
      * A list of values that this kernel supports for this attr.
@@ -331,7 +198,9 @@ public java.lang.String getName() {
      * 
* * .tensorflow.AttrValue allowed_values = 2; + * @return Whether the allowedValues field is set. */ + @java.lang.Override public boolean hasAllowedValues() { return allowedValues_ != null; } @@ -342,9 +211,11 @@ public boolean hasAllowedValues() { * * * .tensorflow.AttrValue allowed_values = 2; + * @return The allowedValues. */ - public org.tensorflow.proto.framework.AttrValue getAllowedValues() { - return allowedValues_ == null ? org.tensorflow.proto.framework.AttrValue.getDefaultInstance() : allowedValues_; + @java.lang.Override + public org.tensorflow.proto.AttrValue getAllowedValues() { + return allowedValues_ == null ? org.tensorflow.proto.AttrValue.getDefaultInstance() : allowedValues_; } /** *
@@ -354,7 +225,8 @@ public org.tensorflow.proto.framework.AttrValue getAllowedValues() {
      *
      * .tensorflow.AttrValue allowed_values = 2;
      */
-    public org.tensorflow.proto.framework.AttrValueOrBuilder getAllowedValuesOrBuilder() {
+    @java.lang.Override
+    public org.tensorflow.proto.AttrValueOrBuilder getAllowedValuesOrBuilder() {
       return getAllowedValues();
     }
 
@@ -372,13 +244,13 @@ public final boolean isInitialized() {
     @java.lang.Override
     public void writeTo(com.google.protobuf.CodedOutputStream output)
                         throws java.io.IOException {
-      if (!getNameBytes().isEmpty()) {
+      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
       }
       if (allowedValues_ != null) {
         output.writeMessage(2, getAllowedValues());
       }
-      unknownFields.writeTo(output);
+      getUnknownFields().writeTo(output);
     }
 
     @java.lang.Override
@@ -387,14 +259,14 @@ public int getSerializedSize() {
       if (size != -1) return size;
 
       size = 0;
-      if (!getNameBytes().isEmpty()) {
+      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
       }
       if (allowedValues_ != null) {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(2, getAllowedValues());
       }
-      size += unknownFields.getSerializedSize();
+      size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
       return size;
     }
@@ -404,10 +276,10 @@ public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
        return true;
       }
-      if (!(obj instanceof org.tensorflow.proto.framework.KernelDef.AttrConstraint)) {
+      if (!(obj instanceof org.tensorflow.proto.KernelDef.AttrConstraint)) {
         return super.equals(obj);
       }
-      org.tensorflow.proto.framework.KernelDef.AttrConstraint other = (org.tensorflow.proto.framework.KernelDef.AttrConstraint) obj;
+      org.tensorflow.proto.KernelDef.AttrConstraint other = (org.tensorflow.proto.KernelDef.AttrConstraint) obj;
 
       if (!getName()
           .equals(other.getName())) return false;
@@ -416,7 +288,7 @@ public boolean equals(final java.lang.Object obj) {
         if (!getAllowedValues()
             .equals(other.getAllowedValues())) return false;
       }
-      if (!unknownFields.equals(other.unknownFields)) return false;
+      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
     }
 
@@ -433,74 +305,74 @@ public int hashCode() {
         hash = (37 * hash) + ALLOWED_VALUES_FIELD_NUMBER;
         hash = (53 * hash) + getAllowedValues().hashCode();
       }
-      hash = (29 * hash) + unknownFields.hashCode();
+      hash = (29 * hash) + getUnknownFields().hashCode();
       memoizedHashCode = hash;
       return hash;
     }
 
-    public static org.tensorflow.proto.framework.KernelDef.AttrConstraint parseFrom(
+    public static org.tensorflow.proto.KernelDef.AttrConstraint parseFrom(
         java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static org.tensorflow.proto.framework.KernelDef.AttrConstraint parseFrom(
+    public static org.tensorflow.proto.KernelDef.AttrConstraint parseFrom(
         java.nio.ByteBuffer data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static org.tensorflow.proto.framework.KernelDef.AttrConstraint parseFrom(
+    public static org.tensorflow.proto.KernelDef.AttrConstraint parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static org.tensorflow.proto.framework.KernelDef.AttrConstraint parseFrom(
+    public static org.tensorflow.proto.KernelDef.AttrConstraint parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static org.tensorflow.proto.framework.KernelDef.AttrConstraint parseFrom(byte[] data)
+    public static org.tensorflow.proto.KernelDef.AttrConstraint parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static org.tensorflow.proto.framework.KernelDef.AttrConstraint parseFrom(
+    public static org.tensorflow.proto.KernelDef.AttrConstraint parseFrom(
         byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static org.tensorflow.proto.framework.KernelDef.AttrConstraint parseFrom(java.io.InputStream input)
+    public static org.tensorflow.proto.KernelDef.AttrConstraint parseFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static org.tensorflow.proto.framework.KernelDef.AttrConstraint parseFrom(
+    public static org.tensorflow.proto.KernelDef.AttrConstraint 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 org.tensorflow.proto.framework.KernelDef.AttrConstraint parseDelimitedFrom(java.io.InputStream input)
+    public static org.tensorflow.proto.KernelDef.AttrConstraint parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseDelimitedWithIOException(PARSER, input);
     }
-    public static org.tensorflow.proto.framework.KernelDef.AttrConstraint parseDelimitedFrom(
+    public static org.tensorflow.proto.KernelDef.AttrConstraint 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 org.tensorflow.proto.framework.KernelDef.AttrConstraint parseFrom(
+    public static org.tensorflow.proto.KernelDef.AttrConstraint parseFrom(
         com.google.protobuf.CodedInputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static org.tensorflow.proto.framework.KernelDef.AttrConstraint parseFrom(
+    public static org.tensorflow.proto.KernelDef.AttrConstraint parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
@@ -513,7 +385,7 @@ public static org.tensorflow.proto.framework.KernelDef.AttrConstraint parseFrom(
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(org.tensorflow.proto.framework.KernelDef.AttrConstraint prototype) {
+    public static Builder newBuilder(org.tensorflow.proto.KernelDef.AttrConstraint prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
     @java.lang.Override
@@ -534,34 +406,29 @@ protected Builder newBuilderForType(
     public static final class Builder extends
         com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:tensorflow.KernelDef.AttrConstraint)
-        org.tensorflow.proto.framework.KernelDef.AttrConstraintOrBuilder {
+        org.tensorflow.proto.KernelDef.AttrConstraintOrBuilder {
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
-        return org.tensorflow.proto.framework.KernelDefProtos.internal_static_tensorflow_KernelDef_AttrConstraint_descriptor;
+        return org.tensorflow.proto.KernelDefProtos.internal_static_tensorflow_KernelDef_AttrConstraint_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return org.tensorflow.proto.framework.KernelDefProtos.internal_static_tensorflow_KernelDef_AttrConstraint_fieldAccessorTable
+        return org.tensorflow.proto.KernelDefProtos.internal_static_tensorflow_KernelDef_AttrConstraint_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                org.tensorflow.proto.framework.KernelDef.AttrConstraint.class, org.tensorflow.proto.framework.KernelDef.AttrConstraint.Builder.class);
+                org.tensorflow.proto.KernelDef.AttrConstraint.class, org.tensorflow.proto.KernelDef.AttrConstraint.Builder.class);
       }
 
-      // Construct using org.tensorflow.proto.framework.KernelDef.AttrConstraint.newBuilder()
+      // Construct using org.tensorflow.proto.KernelDef.AttrConstraint.newBuilder()
       private Builder() {
-        maybeForceBuilderInitialization();
+
       }
 
       private Builder(
           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-        maybeForceBuilderInitialization();
-      }
-      private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+
       }
       @java.lang.Override
       public Builder clear() {
@@ -580,17 +447,17 @@ public Builder clear() {
       @java.lang.Override
       public com.google.protobuf.Descriptors.Descriptor
           getDescriptorForType() {
-        return org.tensorflow.proto.framework.KernelDefProtos.internal_static_tensorflow_KernelDef_AttrConstraint_descriptor;
+        return org.tensorflow.proto.KernelDefProtos.internal_static_tensorflow_KernelDef_AttrConstraint_descriptor;
       }
 
       @java.lang.Override
-      public org.tensorflow.proto.framework.KernelDef.AttrConstraint getDefaultInstanceForType() {
-        return org.tensorflow.proto.framework.KernelDef.AttrConstraint.getDefaultInstance();
+      public org.tensorflow.proto.KernelDef.AttrConstraint getDefaultInstanceForType() {
+        return org.tensorflow.proto.KernelDef.AttrConstraint.getDefaultInstance();
       }
 
       @java.lang.Override
-      public org.tensorflow.proto.framework.KernelDef.AttrConstraint build() {
-        org.tensorflow.proto.framework.KernelDef.AttrConstraint result = buildPartial();
+      public org.tensorflow.proto.KernelDef.AttrConstraint build() {
+        org.tensorflow.proto.KernelDef.AttrConstraint result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -598,8 +465,8 @@ public org.tensorflow.proto.framework.KernelDef.AttrConstraint build() {
       }
 
       @java.lang.Override
-      public org.tensorflow.proto.framework.KernelDef.AttrConstraint buildPartial() {
-        org.tensorflow.proto.framework.KernelDef.AttrConstraint result = new org.tensorflow.proto.framework.KernelDef.AttrConstraint(this);
+      public org.tensorflow.proto.KernelDef.AttrConstraint buildPartial() {
+        org.tensorflow.proto.KernelDef.AttrConstraint result = new org.tensorflow.proto.KernelDef.AttrConstraint(this);
         result.name_ = name_;
         if (allowedValuesBuilder_ == null) {
           result.allowedValues_ = allowedValues_;
@@ -644,16 +511,16 @@ public Builder addRepeatedField(
       }
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof org.tensorflow.proto.framework.KernelDef.AttrConstraint) {
-          return mergeFrom((org.tensorflow.proto.framework.KernelDef.AttrConstraint)other);
+        if (other instanceof org.tensorflow.proto.KernelDef.AttrConstraint) {
+          return mergeFrom((org.tensorflow.proto.KernelDef.AttrConstraint)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(org.tensorflow.proto.framework.KernelDef.AttrConstraint other) {
-        if (other == org.tensorflow.proto.framework.KernelDef.AttrConstraint.getDefaultInstance()) return this;
+      public Builder mergeFrom(org.tensorflow.proto.KernelDef.AttrConstraint other) {
+        if (other == org.tensorflow.proto.KernelDef.AttrConstraint.getDefaultInstance()) return this;
         if (!other.getName().isEmpty()) {
           name_ = other.name_;
           onChanged();
@@ -661,7 +528,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.KernelDef.AttrConstraint
         if (other.hasAllowedValues()) {
           mergeAllowedValues(other.getAllowedValues());
         }
-        this.mergeUnknownFields(other.unknownFields);
+        this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
         return this;
       }
@@ -676,17 +543,42 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        org.tensorflow.proto.framework.KernelDef.AttrConstraint parsedMessage = null;
+        if (extensionRegistry == null) {
+          throw new java.lang.NullPointerException();
+        }
         try {
-          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+          boolean done = false;
+          while (!done) {
+            int tag = input.readTag();
+            switch (tag) {
+              case 0:
+                done = true;
+                break;
+              case 10: {
+                name_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+              case 18: {
+                input.readMessage(
+                    getAllowedValuesFieldBuilder().getBuilder(),
+                    extensionRegistry);
+
+                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) {
-          parsedMessage = (org.tensorflow.proto.framework.KernelDef.AttrConstraint) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
-          if (parsedMessage != null) {
-            mergeFrom(parsedMessage);
-          }
-        }
+          onChanged();
+        } // finally
         return this;
       }
 
@@ -697,6 +589,7 @@ public Builder mergeFrom(
        * 
* * string name = 1; + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -716,6 +609,7 @@ public java.lang.String getName() { * * * string name = 1; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -736,6 +630,8 @@ public java.lang.String getName() { * * * string name = 1; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { @@ -753,6 +649,7 @@ public Builder setName( * * * string name = 1; + * @return This builder for chaining. */ public Builder clearName() { @@ -766,6 +663,8 @@ public Builder clearName() { * * * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { @@ -779,9 +678,9 @@ public Builder setNameBytes( return this; } - private org.tensorflow.proto.framework.AttrValue allowedValues_; + private org.tensorflow.proto.AttrValue allowedValues_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.AttrValue, org.tensorflow.proto.framework.AttrValue.Builder, org.tensorflow.proto.framework.AttrValueOrBuilder> allowedValuesBuilder_; + org.tensorflow.proto.AttrValue, org.tensorflow.proto.AttrValue.Builder, org.tensorflow.proto.AttrValueOrBuilder> allowedValuesBuilder_; /** *
        * A list of values that this kernel supports for this attr.
@@ -789,6 +688,7 @@ public Builder setNameBytes(
        * 
* * .tensorflow.AttrValue allowed_values = 2; + * @return Whether the allowedValues field is set. */ public boolean hasAllowedValues() { return allowedValuesBuilder_ != null || allowedValues_ != null; @@ -800,10 +700,11 @@ public boolean hasAllowedValues() { * * * .tensorflow.AttrValue allowed_values = 2; + * @return The allowedValues. */ - public org.tensorflow.proto.framework.AttrValue getAllowedValues() { + public org.tensorflow.proto.AttrValue getAllowedValues() { if (allowedValuesBuilder_ == null) { - return allowedValues_ == null ? org.tensorflow.proto.framework.AttrValue.getDefaultInstance() : allowedValues_; + return allowedValues_ == null ? org.tensorflow.proto.AttrValue.getDefaultInstance() : allowedValues_; } else { return allowedValuesBuilder_.getMessage(); } @@ -816,7 +717,7 @@ public org.tensorflow.proto.framework.AttrValue getAllowedValues() { * * .tensorflow.AttrValue allowed_values = 2; */ - public Builder setAllowedValues(org.tensorflow.proto.framework.AttrValue value) { + public Builder setAllowedValues(org.tensorflow.proto.AttrValue value) { if (allowedValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -838,7 +739,7 @@ public Builder setAllowedValues(org.tensorflow.proto.framework.AttrValue value) * .tensorflow.AttrValue allowed_values = 2; */ public Builder setAllowedValues( - org.tensorflow.proto.framework.AttrValue.Builder builderForValue) { + org.tensorflow.proto.AttrValue.Builder builderForValue) { if (allowedValuesBuilder_ == null) { allowedValues_ = builderForValue.build(); onChanged(); @@ -856,11 +757,11 @@ public Builder setAllowedValues( * * .tensorflow.AttrValue allowed_values = 2; */ - public Builder mergeAllowedValues(org.tensorflow.proto.framework.AttrValue value) { + public Builder mergeAllowedValues(org.tensorflow.proto.AttrValue value) { if (allowedValuesBuilder_ == null) { if (allowedValues_ != null) { allowedValues_ = - org.tensorflow.proto.framework.AttrValue.newBuilder(allowedValues_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.AttrValue.newBuilder(allowedValues_).mergeFrom(value).buildPartial(); } else { allowedValues_ = value; } @@ -898,7 +799,7 @@ public Builder clearAllowedValues() { * * .tensorflow.AttrValue allowed_values = 2; */ - public org.tensorflow.proto.framework.AttrValue.Builder getAllowedValuesBuilder() { + public org.tensorflow.proto.AttrValue.Builder getAllowedValuesBuilder() { onChanged(); return getAllowedValuesFieldBuilder().getBuilder(); @@ -911,12 +812,12 @@ public org.tensorflow.proto.framework.AttrValue.Builder getAllowedValuesBuilder( * * .tensorflow.AttrValue allowed_values = 2; */ - public org.tensorflow.proto.framework.AttrValueOrBuilder getAllowedValuesOrBuilder() { + public org.tensorflow.proto.AttrValueOrBuilder getAllowedValuesOrBuilder() { if (allowedValuesBuilder_ != null) { return allowedValuesBuilder_.getMessageOrBuilder(); } else { return allowedValues_ == null ? - org.tensorflow.proto.framework.AttrValue.getDefaultInstance() : allowedValues_; + org.tensorflow.proto.AttrValue.getDefaultInstance() : allowedValues_; } } /** @@ -928,11 +829,11 @@ public org.tensorflow.proto.framework.AttrValueOrBuilder getAllowedValuesOrBuild * .tensorflow.AttrValue allowed_values = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.AttrValue, org.tensorflow.proto.framework.AttrValue.Builder, org.tensorflow.proto.framework.AttrValueOrBuilder> + org.tensorflow.proto.AttrValue, org.tensorflow.proto.AttrValue.Builder, org.tensorflow.proto.AttrValueOrBuilder> getAllowedValuesFieldBuilder() { if (allowedValuesBuilder_ == null) { allowedValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.AttrValue, org.tensorflow.proto.framework.AttrValue.Builder, org.tensorflow.proto.framework.AttrValueOrBuilder>( + org.tensorflow.proto.AttrValue, org.tensorflow.proto.AttrValue.Builder, org.tensorflow.proto.AttrValueOrBuilder>( getAllowedValues(), getParentForChildren(), isClean()); @@ -957,12 +858,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.KernelDef.AttrConstraint) - private static final org.tensorflow.proto.framework.KernelDef.AttrConstraint DEFAULT_INSTANCE; + private static final org.tensorflow.proto.KernelDef.AttrConstraint DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.KernelDef.AttrConstraint(); + DEFAULT_INSTANCE = new org.tensorflow.proto.KernelDef.AttrConstraint(); } - public static org.tensorflow.proto.framework.KernelDef.AttrConstraint getDefaultInstance() { + public static org.tensorflow.proto.KernelDef.AttrConstraint getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -973,7 +874,18 @@ public AttrConstraint parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AttrConstraint(input, extensionRegistry); + 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(); } }; @@ -987,7 +899,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.KernelDef.AttrConstraint getDefaultInstanceForType() { + public org.tensorflow.proto.KernelDef.AttrConstraint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -1001,7 +913,9 @@ public org.tensorflow.proto.framework.KernelDef.AttrConstraint getDefaultInstanc * * * string op = 1; + * @return The op. */ + @java.lang.Override public java.lang.String getOp() { java.lang.Object ref = op_; if (ref instanceof java.lang.String) { @@ -1020,7 +934,9 @@ public java.lang.String getOp() { * * * string op = 1; + * @return The bytes for op. */ + @java.lang.Override public com.google.protobuf.ByteString getOpBytes() { java.lang.Object ref = op_; @@ -1043,7 +959,9 @@ public java.lang.String getOp() { * * * string device_type = 2; + * @return The deviceType. */ + @java.lang.Override public java.lang.String getDeviceType() { java.lang.Object ref = deviceType_; if (ref instanceof java.lang.String) { @@ -1062,7 +980,9 @@ public java.lang.String getDeviceType() { * * * string device_type = 2; + * @return The bytes for deviceType. */ + @java.lang.Override public com.google.protobuf.ByteString getDeviceTypeBytes() { java.lang.Object ref = deviceType_; @@ -1078,36 +998,41 @@ public java.lang.String getDeviceType() { } public static final int CONSTRAINT_FIELD_NUMBER = 3; - private java.util.List constraint_; + private java.util.List constraint_; /** * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ - public java.util.List getConstraintList() { + @java.lang.Override + public java.util.List getConstraintList() { return constraint_; } /** * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ - public java.util.List + @java.lang.Override + public java.util.List getConstraintOrBuilderList() { return constraint_; } /** * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ + @java.lang.Override public int getConstraintCount() { return constraint_.size(); } /** * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ - public org.tensorflow.proto.framework.KernelDef.AttrConstraint getConstraint(int index) { + @java.lang.Override + public org.tensorflow.proto.KernelDef.AttrConstraint getConstraint(int index) { return constraint_.get(index); } /** * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ - public org.tensorflow.proto.framework.KernelDef.AttrConstraintOrBuilder getConstraintOrBuilder( + @java.lang.Override + public org.tensorflow.proto.KernelDef.AttrConstraintOrBuilder getConstraintOrBuilder( int index) { return constraint_.get(index); } @@ -1121,6 +1046,7 @@ public org.tensorflow.proto.framework.KernelDef.AttrConstraintOrBuilder getConst * * * repeated string host_memory_arg = 4; + * @return A list containing the hostMemoryArg. */ public com.google.protobuf.ProtocolStringList getHostMemoryArgList() { @@ -1133,6 +1059,7 @@ public org.tensorflow.proto.framework.KernelDef.AttrConstraintOrBuilder getConst * * * repeated string host_memory_arg = 4; + * @return The count of hostMemoryArg. */ public int getHostMemoryArgCount() { return hostMemoryArg_.size(); @@ -1144,6 +1071,8 @@ public int getHostMemoryArgCount() { * * * repeated string host_memory_arg = 4; + * @param index The index of the element to return. + * @return The hostMemoryArg at the given index. */ public java.lang.String getHostMemoryArg(int index) { return hostMemoryArg_.get(index); @@ -1155,6 +1084,8 @@ public java.lang.String getHostMemoryArg(int index) { * * * repeated string host_memory_arg = 4; + * @param index The index of the value to return. + * @return The bytes of the hostMemoryArg at the given index. */ public com.google.protobuf.ByteString getHostMemoryArgBytes(int index) { @@ -1171,7 +1102,9 @@ public java.lang.String getHostMemoryArg(int index) { * * * string label = 5; + * @return The label. */ + @java.lang.Override public java.lang.String getLabel() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { @@ -1192,7 +1125,9 @@ public java.lang.String getLabel() { * * * string label = 5; + * @return The bytes for label. */ + @java.lang.Override public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; @@ -1217,7 +1152,9 @@ public java.lang.String getLabel() { * * * int32 priority = 6; + * @return The priority. */ + @java.lang.Override public int getPriority() { return priority_; } @@ -1236,10 +1173,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getOpBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(op_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, op_); } - if (!getDeviceTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deviceType_); } for (int i = 0; i < constraint_.size(); i++) { @@ -1248,13 +1185,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < hostMemoryArg_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, hostMemoryArg_.getRaw(i)); } - if (!getLabelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, label_); } if (priority_ != 0) { output.writeInt32(6, priority_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1263,10 +1200,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getOpBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(op_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, op_); } - if (!getDeviceTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deviceType_); } for (int i = 0; i < constraint_.size(); i++) { @@ -1281,14 +1218,14 @@ public int getSerializedSize() { size += dataSize; size += 1 * getHostMemoryArgList().size(); } - if (!getLabelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(label_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, label_); } if (priority_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, priority_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1298,10 +1235,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.KernelDef)) { + if (!(obj instanceof org.tensorflow.proto.KernelDef)) { return super.equals(obj); } - org.tensorflow.proto.framework.KernelDef other = (org.tensorflow.proto.framework.KernelDef) obj; + org.tensorflow.proto.KernelDef other = (org.tensorflow.proto.KernelDef) obj; if (!getOp() .equals(other.getOp())) return false; @@ -1315,7 +1252,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getLabel())) return false; if (getPriority() != other.getPriority()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1342,74 +1279,74 @@ public int hashCode() { hash = (53 * hash) + getLabel().hashCode(); hash = (37 * hash) + PRIORITY_FIELD_NUMBER; hash = (53 * hash) + getPriority(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.KernelDef parseFrom( + public static org.tensorflow.proto.KernelDef parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.KernelDef parseFrom( + public static org.tensorflow.proto.KernelDef parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.KernelDef parseFrom( + public static org.tensorflow.proto.KernelDef parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.KernelDef parseFrom( + public static org.tensorflow.proto.KernelDef parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.KernelDef parseFrom(byte[] data) + public static org.tensorflow.proto.KernelDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.KernelDef parseFrom( + public static org.tensorflow.proto.KernelDef parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.KernelDef parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.KernelDef parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.KernelDef parseFrom( + public static org.tensorflow.proto.KernelDef 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 org.tensorflow.proto.framework.KernelDef parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.KernelDef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.KernelDef parseDelimitedFrom( + public static org.tensorflow.proto.KernelDef 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 org.tensorflow.proto.framework.KernelDef parseFrom( + public static org.tensorflow.proto.KernelDef parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.KernelDef parseFrom( + public static org.tensorflow.proto.KernelDef parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1422,7 +1359,7 @@ public static org.tensorflow.proto.framework.KernelDef parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.KernelDef prototype) { + public static Builder newBuilder(org.tensorflow.proto.KernelDef prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1443,35 +1380,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.KernelDef) - org.tensorflow.proto.framework.KernelDefOrBuilder { + org.tensorflow.proto.KernelDefOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.KernelDefProtos.internal_static_tensorflow_KernelDef_descriptor; + return org.tensorflow.proto.KernelDefProtos.internal_static_tensorflow_KernelDef_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.KernelDefProtos.internal_static_tensorflow_KernelDef_fieldAccessorTable + return org.tensorflow.proto.KernelDefProtos.internal_static_tensorflow_KernelDef_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.KernelDef.class, org.tensorflow.proto.framework.KernelDef.Builder.class); + org.tensorflow.proto.KernelDef.class, org.tensorflow.proto.KernelDef.Builder.class); } - // Construct using org.tensorflow.proto.framework.KernelDef.newBuilder() + // Construct using org.tensorflow.proto.KernelDef.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getConstraintFieldBuilder(); - } + } @java.lang.Override public Builder clear() { @@ -1482,10 +1413,11 @@ public Builder clear() { if (constraintBuilder_ == null) { constraint_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + constraint_ = null; constraintBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); hostMemoryArg_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); label_ = ""; @@ -1498,17 +1430,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.KernelDefProtos.internal_static_tensorflow_KernelDef_descriptor; + return org.tensorflow.proto.KernelDefProtos.internal_static_tensorflow_KernelDef_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.KernelDef getDefaultInstanceForType() { - return org.tensorflow.proto.framework.KernelDef.getDefaultInstance(); + public org.tensorflow.proto.KernelDef getDefaultInstanceForType() { + return org.tensorflow.proto.KernelDef.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.KernelDef build() { - org.tensorflow.proto.framework.KernelDef result = buildPartial(); + public org.tensorflow.proto.KernelDef build() { + org.tensorflow.proto.KernelDef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1516,8 +1448,8 @@ public org.tensorflow.proto.framework.KernelDef build() { } @java.lang.Override - public org.tensorflow.proto.framework.KernelDef buildPartial() { - org.tensorflow.proto.framework.KernelDef result = new org.tensorflow.proto.framework.KernelDef(this); + public org.tensorflow.proto.KernelDef buildPartial() { + org.tensorflow.proto.KernelDef result = new org.tensorflow.proto.KernelDef(this); int from_bitField0_ = bitField0_; result.op_ = op_; result.deviceType_ = deviceType_; @@ -1575,16 +1507,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.KernelDef) { - return mergeFrom((org.tensorflow.proto.framework.KernelDef)other); + if (other instanceof org.tensorflow.proto.KernelDef) { + return mergeFrom((org.tensorflow.proto.KernelDef)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.KernelDef other) { - if (other == org.tensorflow.proto.framework.KernelDef.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.KernelDef other) { + if (other == org.tensorflow.proto.KernelDef.getDefaultInstance()) return this; if (!other.getOp().isEmpty()) { op_ = other.op_; onChanged(); @@ -1636,7 +1568,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.KernelDef other) { if (other.getPriority() != 0) { setPriority(other.getPriority()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1651,17 +1583,69 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.KernelDef parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + op_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + deviceType_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + org.tensorflow.proto.KernelDef.AttrConstraint m = + input.readMessage( + org.tensorflow.proto.KernelDef.AttrConstraint.parser(), + extensionRegistry); + if (constraintBuilder_ == null) { + ensureConstraintIsMutable(); + constraint_.add(m); + } else { + constraintBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureHostMemoryArgIsMutable(); + hostMemoryArg_.add(s); + break; + } // case 34 + case 42: { + label_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: { + priority_ = input.readInt32(); + + break; + } // case 48 + 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) { - parsedMessage = (org.tensorflow.proto.framework.KernelDef) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1673,6 +1657,7 @@ public Builder mergeFrom( * * * string op = 1; + * @return The op. */ public java.lang.String getOp() { java.lang.Object ref = op_; @@ -1692,6 +1677,7 @@ public java.lang.String getOp() { * * * string op = 1; + * @return The bytes for op. */ public com.google.protobuf.ByteString getOpBytes() { @@ -1712,6 +1698,8 @@ public java.lang.String getOp() { * * * string op = 1; + * @param value The op to set. + * @return This builder for chaining. */ public Builder setOp( java.lang.String value) { @@ -1729,6 +1717,7 @@ public Builder setOp( * * * string op = 1; + * @return This builder for chaining. */ public Builder clearOp() { @@ -1742,6 +1731,8 @@ public Builder clearOp() { * * * string op = 1; + * @param value The bytes for op to set. + * @return This builder for chaining. */ public Builder setOpBytes( com.google.protobuf.ByteString value) { @@ -1762,6 +1753,7 @@ public Builder setOpBytes( * * * string device_type = 2; + * @return The deviceType. */ public java.lang.String getDeviceType() { java.lang.Object ref = deviceType_; @@ -1781,6 +1773,7 @@ public java.lang.String getDeviceType() { * * * string device_type = 2; + * @return The bytes for deviceType. */ public com.google.protobuf.ByteString getDeviceTypeBytes() { @@ -1801,6 +1794,8 @@ public java.lang.String getDeviceType() { * * * string device_type = 2; + * @param value The deviceType to set. + * @return This builder for chaining. */ public Builder setDeviceType( java.lang.String value) { @@ -1818,6 +1813,7 @@ public Builder setDeviceType( * * * string device_type = 2; + * @return This builder for chaining. */ public Builder clearDeviceType() { @@ -1831,6 +1827,8 @@ public Builder clearDeviceType() { * * * string device_type = 2; + * @param value The bytes for deviceType to set. + * @return This builder for chaining. */ public Builder setDeviceTypeBytes( com.google.protobuf.ByteString value) { @@ -1844,22 +1842,22 @@ public Builder setDeviceTypeBytes( return this; } - private java.util.List constraint_ = + private java.util.List constraint_ = java.util.Collections.emptyList(); private void ensureConstraintIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - constraint_ = new java.util.ArrayList(constraint_); + constraint_ = new java.util.ArrayList(constraint_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.KernelDef.AttrConstraint, org.tensorflow.proto.framework.KernelDef.AttrConstraint.Builder, org.tensorflow.proto.framework.KernelDef.AttrConstraintOrBuilder> constraintBuilder_; + org.tensorflow.proto.KernelDef.AttrConstraint, org.tensorflow.proto.KernelDef.AttrConstraint.Builder, org.tensorflow.proto.KernelDef.AttrConstraintOrBuilder> constraintBuilder_; /** * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ - public java.util.List getConstraintList() { + public java.util.List getConstraintList() { if (constraintBuilder_ == null) { return java.util.Collections.unmodifiableList(constraint_); } else { @@ -1879,7 +1877,7 @@ public int getConstraintCount() { /** * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ - public org.tensorflow.proto.framework.KernelDef.AttrConstraint getConstraint(int index) { + public org.tensorflow.proto.KernelDef.AttrConstraint getConstraint(int index) { if (constraintBuilder_ == null) { return constraint_.get(index); } else { @@ -1890,7 +1888,7 @@ public org.tensorflow.proto.framework.KernelDef.AttrConstraint getConstraint(int * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ public Builder setConstraint( - int index, org.tensorflow.proto.framework.KernelDef.AttrConstraint value) { + int index, org.tensorflow.proto.KernelDef.AttrConstraint value) { if (constraintBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1907,7 +1905,7 @@ public Builder setConstraint( * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ public Builder setConstraint( - int index, org.tensorflow.proto.framework.KernelDef.AttrConstraint.Builder builderForValue) { + int index, org.tensorflow.proto.KernelDef.AttrConstraint.Builder builderForValue) { if (constraintBuilder_ == null) { ensureConstraintIsMutable(); constraint_.set(index, builderForValue.build()); @@ -1920,7 +1918,7 @@ public Builder setConstraint( /** * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ - public Builder addConstraint(org.tensorflow.proto.framework.KernelDef.AttrConstraint value) { + public Builder addConstraint(org.tensorflow.proto.KernelDef.AttrConstraint value) { if (constraintBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1937,7 +1935,7 @@ public Builder addConstraint(org.tensorflow.proto.framework.KernelDef.AttrConstr * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ public Builder addConstraint( - int index, org.tensorflow.proto.framework.KernelDef.AttrConstraint value) { + int index, org.tensorflow.proto.KernelDef.AttrConstraint value) { if (constraintBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1954,7 +1952,7 @@ public Builder addConstraint( * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ public Builder addConstraint( - org.tensorflow.proto.framework.KernelDef.AttrConstraint.Builder builderForValue) { + org.tensorflow.proto.KernelDef.AttrConstraint.Builder builderForValue) { if (constraintBuilder_ == null) { ensureConstraintIsMutable(); constraint_.add(builderForValue.build()); @@ -1968,7 +1966,7 @@ public Builder addConstraint( * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ public Builder addConstraint( - int index, org.tensorflow.proto.framework.KernelDef.AttrConstraint.Builder builderForValue) { + int index, org.tensorflow.proto.KernelDef.AttrConstraint.Builder builderForValue) { if (constraintBuilder_ == null) { ensureConstraintIsMutable(); constraint_.add(index, builderForValue.build()); @@ -1982,7 +1980,7 @@ public Builder addConstraint( * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ public Builder addAllConstraint( - java.lang.Iterable values) { + java.lang.Iterable values) { if (constraintBuilder_ == null) { ensureConstraintIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -2022,14 +2020,14 @@ public Builder removeConstraint(int index) { /** * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ - public org.tensorflow.proto.framework.KernelDef.AttrConstraint.Builder getConstraintBuilder( + public org.tensorflow.proto.KernelDef.AttrConstraint.Builder getConstraintBuilder( int index) { return getConstraintFieldBuilder().getBuilder(index); } /** * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ - public org.tensorflow.proto.framework.KernelDef.AttrConstraintOrBuilder getConstraintOrBuilder( + public org.tensorflow.proto.KernelDef.AttrConstraintOrBuilder getConstraintOrBuilder( int index) { if (constraintBuilder_ == null) { return constraint_.get(index); } else { @@ -2039,7 +2037,7 @@ public org.tensorflow.proto.framework.KernelDef.AttrConstraintOrBuilder getConst /** * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ - public java.util.List + public java.util.List getConstraintOrBuilderList() { if (constraintBuilder_ != null) { return constraintBuilder_.getMessageOrBuilderList(); @@ -2050,31 +2048,31 @@ public org.tensorflow.proto.framework.KernelDef.AttrConstraintOrBuilder getConst /** * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ - public org.tensorflow.proto.framework.KernelDef.AttrConstraint.Builder addConstraintBuilder() { + public org.tensorflow.proto.KernelDef.AttrConstraint.Builder addConstraintBuilder() { return getConstraintFieldBuilder().addBuilder( - org.tensorflow.proto.framework.KernelDef.AttrConstraint.getDefaultInstance()); + org.tensorflow.proto.KernelDef.AttrConstraint.getDefaultInstance()); } /** * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ - public org.tensorflow.proto.framework.KernelDef.AttrConstraint.Builder addConstraintBuilder( + public org.tensorflow.proto.KernelDef.AttrConstraint.Builder addConstraintBuilder( int index) { return getConstraintFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.KernelDef.AttrConstraint.getDefaultInstance()); + index, org.tensorflow.proto.KernelDef.AttrConstraint.getDefaultInstance()); } /** * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ - public java.util.List + public java.util.List getConstraintBuilderList() { return getConstraintFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.KernelDef.AttrConstraint, org.tensorflow.proto.framework.KernelDef.AttrConstraint.Builder, org.tensorflow.proto.framework.KernelDef.AttrConstraintOrBuilder> + org.tensorflow.proto.KernelDef.AttrConstraint, org.tensorflow.proto.KernelDef.AttrConstraint.Builder, org.tensorflow.proto.KernelDef.AttrConstraintOrBuilder> getConstraintFieldBuilder() { if (constraintBuilder_ == null) { constraintBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.KernelDef.AttrConstraint, org.tensorflow.proto.framework.KernelDef.AttrConstraint.Builder, org.tensorflow.proto.framework.KernelDef.AttrConstraintOrBuilder>( + org.tensorflow.proto.KernelDef.AttrConstraint, org.tensorflow.proto.KernelDef.AttrConstraint.Builder, org.tensorflow.proto.KernelDef.AttrConstraintOrBuilder>( constraint_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2098,6 +2096,7 @@ private void ensureHostMemoryArgIsMutable() { * * * repeated string host_memory_arg = 4; + * @return A list containing the hostMemoryArg. */ public com.google.protobuf.ProtocolStringList getHostMemoryArgList() { @@ -2110,6 +2109,7 @@ private void ensureHostMemoryArgIsMutable() { * * * repeated string host_memory_arg = 4; + * @return The count of hostMemoryArg. */ public int getHostMemoryArgCount() { return hostMemoryArg_.size(); @@ -2121,6 +2121,8 @@ public int getHostMemoryArgCount() { * * * repeated string host_memory_arg = 4; + * @param index The index of the element to return. + * @return The hostMemoryArg at the given index. */ public java.lang.String getHostMemoryArg(int index) { return hostMemoryArg_.get(index); @@ -2132,6 +2134,8 @@ public java.lang.String getHostMemoryArg(int index) { * * * repeated string host_memory_arg = 4; + * @param index The index of the value to return. + * @return The bytes of the hostMemoryArg at the given index. */ public com.google.protobuf.ByteString getHostMemoryArgBytes(int index) { @@ -2144,6 +2148,9 @@ public java.lang.String getHostMemoryArg(int index) { * * * repeated string host_memory_arg = 4; + * @param index The index to set the value at. + * @param value The hostMemoryArg to set. + * @return This builder for chaining. */ public Builder setHostMemoryArg( int index, java.lang.String value) { @@ -2162,6 +2169,8 @@ public Builder setHostMemoryArg( * * * repeated string host_memory_arg = 4; + * @param value The hostMemoryArg to add. + * @return This builder for chaining. */ public Builder addHostMemoryArg( java.lang.String value) { @@ -2180,6 +2189,8 @@ public Builder addHostMemoryArg( * * * repeated string host_memory_arg = 4; + * @param values The hostMemoryArg to add. + * @return This builder for chaining. */ public Builder addAllHostMemoryArg( java.lang.Iterable values) { @@ -2196,6 +2207,7 @@ public Builder addAllHostMemoryArg( * * * repeated string host_memory_arg = 4; + * @return This builder for chaining. */ public Builder clearHostMemoryArg() { hostMemoryArg_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -2210,6 +2222,8 @@ public Builder clearHostMemoryArg() { * * * repeated string host_memory_arg = 4; + * @param value The bytes of the hostMemoryArg to add. + * @return This builder for chaining. */ public Builder addHostMemoryArgBytes( com.google.protobuf.ByteString value) { @@ -2232,6 +2246,7 @@ public Builder addHostMemoryArgBytes( * * * string label = 5; + * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; @@ -2253,6 +2268,7 @@ public java.lang.String getLabel() { * * * string label = 5; + * @return The bytes for label. */ public com.google.protobuf.ByteString getLabelBytes() { @@ -2275,6 +2291,8 @@ public java.lang.String getLabel() { * * * string label = 5; + * @param value The label to set. + * @return This builder for chaining. */ public Builder setLabel( java.lang.String value) { @@ -2294,6 +2312,7 @@ public Builder setLabel( * * * string label = 5; + * @return This builder for chaining. */ public Builder clearLabel() { @@ -2309,6 +2328,8 @@ public Builder clearLabel() { * * * string label = 5; + * @param value The bytes for label to set. + * @return This builder for chaining. */ public Builder setLabelBytes( com.google.protobuf.ByteString value) { @@ -2331,7 +2352,9 @@ public Builder setLabelBytes( * * * int32 priority = 6; + * @return The priority. */ + @java.lang.Override public int getPriority() { return priority_; } @@ -2343,6 +2366,8 @@ public int getPriority() { * * * int32 priority = 6; + * @param value The priority to set. + * @return This builder for chaining. */ public Builder setPriority(int value) { @@ -2358,6 +2383,7 @@ public Builder setPriority(int value) { * * * int32 priority = 6; + * @return This builder for chaining. */ public Builder clearPriority() { @@ -2382,12 +2408,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.KernelDef) - private static final org.tensorflow.proto.framework.KernelDef DEFAULT_INSTANCE; + private static final org.tensorflow.proto.KernelDef DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.KernelDef(); + DEFAULT_INSTANCE = new org.tensorflow.proto.KernelDef(); } - public static org.tensorflow.proto.framework.KernelDef getDefaultInstance() { + public static org.tensorflow.proto.KernelDef getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -2398,7 +2424,18 @@ public KernelDef parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new KernelDef(input, extensionRegistry); + 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(); } }; @@ -2412,7 +2449,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.KernelDef getDefaultInstanceForType() { + public org.tensorflow.proto.KernelDef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/KernelDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/KernelDefOrBuilder.java similarity index 79% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/KernelDefOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/KernelDefOrBuilder.java index 2d62f81acc3..52343e9893f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/KernelDefOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/KernelDefOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/kernel_def.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface KernelDefOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.KernelDef) @@ -13,6 +13,7 @@ public interface KernelDefOrBuilder extends * * * string op = 1; + * @return The op. */ java.lang.String getOp(); /** @@ -21,6 +22,7 @@ public interface KernelDefOrBuilder extends * * * string op = 1; + * @return The bytes for op. */ com.google.protobuf.ByteString getOpBytes(); @@ -31,6 +33,7 @@ public interface KernelDefOrBuilder extends * * * string device_type = 2; + * @return The deviceType. */ java.lang.String getDeviceType(); /** @@ -39,6 +42,7 @@ public interface KernelDefOrBuilder extends * * * string device_type = 2; + * @return The bytes for deviceType. */ com.google.protobuf.ByteString getDeviceTypeBytes(); @@ -46,12 +50,12 @@ public interface KernelDefOrBuilder extends /** * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ - java.util.List + java.util.List getConstraintList(); /** * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ - org.tensorflow.proto.framework.KernelDef.AttrConstraint getConstraint(int index); + org.tensorflow.proto.KernelDef.AttrConstraint getConstraint(int index); /** * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ @@ -59,12 +63,12 @@ public interface KernelDefOrBuilder extends /** * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ - java.util.List + java.util.List getConstraintOrBuilderList(); /** * repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; */ - org.tensorflow.proto.framework.KernelDef.AttrConstraintOrBuilder getConstraintOrBuilder( + org.tensorflow.proto.KernelDef.AttrConstraintOrBuilder getConstraintOrBuilder( int index); /** @@ -74,6 +78,7 @@ org.tensorflow.proto.framework.KernelDef.AttrConstraintOrBuilder getConstraintOr * * * repeated string host_memory_arg = 4; + * @return A list containing the hostMemoryArg. */ java.util.List getHostMemoryArgList(); @@ -84,6 +89,7 @@ org.tensorflow.proto.framework.KernelDef.AttrConstraintOrBuilder getConstraintOr * * * repeated string host_memory_arg = 4; + * @return The count of hostMemoryArg. */ int getHostMemoryArgCount(); /** @@ -93,6 +99,8 @@ org.tensorflow.proto.framework.KernelDef.AttrConstraintOrBuilder getConstraintOr * * * repeated string host_memory_arg = 4; + * @param index The index of the element to return. + * @return The hostMemoryArg at the given index. */ java.lang.String getHostMemoryArg(int index); /** @@ -102,6 +110,8 @@ org.tensorflow.proto.framework.KernelDef.AttrConstraintOrBuilder getConstraintOr * * * repeated string host_memory_arg = 4; + * @param index The index of the value to return. + * @return The bytes of the hostMemoryArg at the given index. */ com.google.protobuf.ByteString getHostMemoryArgBytes(int index); @@ -114,6 +124,7 @@ org.tensorflow.proto.framework.KernelDef.AttrConstraintOrBuilder getConstraintOr * * * string label = 5; + * @return The label. */ java.lang.String getLabel(); /** @@ -124,6 +135,7 @@ org.tensorflow.proto.framework.KernelDef.AttrConstraintOrBuilder getConstraintOr * * * string label = 5; + * @return The bytes for label. */ com.google.protobuf.ByteString getLabelBytes(); @@ -136,6 +148,7 @@ org.tensorflow.proto.framework.KernelDef.AttrConstraintOrBuilder getConstraintOr * * * int32 priority = 6; + * @return The priority. */ int getPriority(); } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/KernelDefProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/KernelDefProtos.java similarity index 88% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/KernelDefProtos.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/KernelDefProtos.java index 50b235b600f..d2ed48b1d61 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/KernelDefProtos.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/KernelDefProtos.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/kernel_def.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public final class KernelDefProtos { private KernelDefProtos() {} @@ -47,16 +47,16 @@ public static void registerAllExtensions( "\005 \001(\t\022\020\n\010priority\030\006 \001(\005\032M\n\016AttrConstrain" + "t\022\014\n\004name\030\001 \001(\t\022-\n\016allowed_values\030\002 \001(\0132" + "\025.tensorflow.AttrValue\"3\n\nKernelList\022%\n\006" + - "kernel\030\001 \003(\0132\025.tensorflow.KernelDefB\211\001\n\036" + - "org.tensorflow.proto.frameworkB\017KernelDe" + - "fProtosP\001ZQgithub.com/tensorflow/tensorf" + - "low/tensorflow/go/core/framework/kernel_" + - "def_go_proto\370\001\001b\006proto3" + "kernel\030\001 \003(\0132\025.tensorflow.KernelDefB\177\n\024o" + + "rg.tensorflow.protoB\017KernelDefProtosP\001ZQ" + + "github.com/tensorflow/tensorflow/tensorf" + + "low/go/core/framework/kernel_def_go_prot" + + "o\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.framework.AttrValueProtos.getDescriptor(), + org.tensorflow.proto.AttrValueProtos.getDescriptor(), }); internal_static_tensorflow_KernelDef_descriptor = getDescriptor().getMessageTypes().get(0); @@ -76,7 +76,7 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_KernelList_descriptor, new java.lang.String[] { "Kernel", }); - org.tensorflow.proto.framework.AttrValueProtos.getDescriptor(); + org.tensorflow.proto.AttrValueProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/KernelList.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/KernelList.java new file mode 100644 index 00000000000..500c9070a49 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/KernelList.java @@ -0,0 +1,760 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/kernel_def.proto + +package org.tensorflow.proto; + +/** + *
+ * A collection of KernelDefs
+ * 
+ * + * Protobuf type {@code tensorflow.KernelList} + */ +public final class KernelList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.KernelList) + KernelListOrBuilder { +private static final long serialVersionUID = 0L; + // Use KernelList.newBuilder() to construct. + private KernelList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private KernelList() { + kernel_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new KernelList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.KernelDefProtos.internal_static_tensorflow_KernelList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.KernelDefProtos.internal_static_tensorflow_KernelList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.KernelList.class, org.tensorflow.proto.KernelList.Builder.class); + } + + public static final int KERNEL_FIELD_NUMBER = 1; + private java.util.List kernel_; + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + @java.lang.Override + public java.util.List getKernelList() { + return kernel_; + } + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + @java.lang.Override + public java.util.List + getKernelOrBuilderList() { + return kernel_; + } + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + @java.lang.Override + public int getKernelCount() { + return kernel_.size(); + } + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + @java.lang.Override + public org.tensorflow.proto.KernelDef getKernel(int index) { + return kernel_.get(index); + } + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + @java.lang.Override + public org.tensorflow.proto.KernelDefOrBuilder getKernelOrBuilder( + int index) { + return kernel_.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 < kernel_.size(); i++) { + output.writeMessage(1, kernel_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < kernel_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, kernel_.get(i)); + } + 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 org.tensorflow.proto.KernelList)) { + return super.equals(obj); + } + org.tensorflow.proto.KernelList other = (org.tensorflow.proto.KernelList) obj; + + if (!getKernelList() + .equals(other.getKernelList())) 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 (getKernelCount() > 0) { + hash = (37 * hash) + KERNEL_FIELD_NUMBER; + hash = (53 * hash) + getKernelList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.KernelList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.KernelList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.KernelList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.KernelList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.KernelList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.KernelList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.KernelList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.KernelList 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 org.tensorflow.proto.KernelList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.KernelList 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 org.tensorflow.proto.KernelList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.KernelList 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(org.tensorflow.proto.KernelList 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; + } + /** + *
+   * A collection of KernelDefs
+   * 
+ * + * Protobuf type {@code tensorflow.KernelList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.KernelList) + org.tensorflow.proto.KernelListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.KernelDefProtos.internal_static_tensorflow_KernelList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.KernelDefProtos.internal_static_tensorflow_KernelList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.KernelList.class, org.tensorflow.proto.KernelList.Builder.class); + } + + // Construct using org.tensorflow.proto.KernelList.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (kernelBuilder_ == null) { + kernel_ = java.util.Collections.emptyList(); + } else { + kernel_ = null; + kernelBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.KernelDefProtos.internal_static_tensorflow_KernelList_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.KernelList getDefaultInstanceForType() { + return org.tensorflow.proto.KernelList.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.KernelList build() { + org.tensorflow.proto.KernelList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.KernelList buildPartial() { + org.tensorflow.proto.KernelList result = new org.tensorflow.proto.KernelList(this); + int from_bitField0_ = bitField0_; + if (kernelBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + kernel_ = java.util.Collections.unmodifiableList(kernel_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.kernel_ = kernel_; + } else { + result.kernel_ = kernelBuilder_.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 org.tensorflow.proto.KernelList) { + return mergeFrom((org.tensorflow.proto.KernelList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.KernelList other) { + if (other == org.tensorflow.proto.KernelList.getDefaultInstance()) return this; + if (kernelBuilder_ == null) { + if (!other.kernel_.isEmpty()) { + if (kernel_.isEmpty()) { + kernel_ = other.kernel_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureKernelIsMutable(); + kernel_.addAll(other.kernel_); + } + onChanged(); + } + } else { + if (!other.kernel_.isEmpty()) { + if (kernelBuilder_.isEmpty()) { + kernelBuilder_.dispose(); + kernelBuilder_ = null; + kernel_ = other.kernel_; + bitField0_ = (bitField0_ & ~0x00000001); + kernelBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getKernelFieldBuilder() : null; + } else { + kernelBuilder_.addAllMessages(other.kernel_); + } + } + } + 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: { + org.tensorflow.proto.KernelDef m = + input.readMessage( + org.tensorflow.proto.KernelDef.parser(), + extensionRegistry); + if (kernelBuilder_ == null) { + ensureKernelIsMutable(); + kernel_.add(m); + } else { + kernelBuilder_.addMessage(m); + } + 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.util.List kernel_ = + java.util.Collections.emptyList(); + private void ensureKernelIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + kernel_ = new java.util.ArrayList(kernel_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.KernelDef, org.tensorflow.proto.KernelDef.Builder, org.tensorflow.proto.KernelDefOrBuilder> kernelBuilder_; + + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + public java.util.List getKernelList() { + if (kernelBuilder_ == null) { + return java.util.Collections.unmodifiableList(kernel_); + } else { + return kernelBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + public int getKernelCount() { + if (kernelBuilder_ == null) { + return kernel_.size(); + } else { + return kernelBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + public org.tensorflow.proto.KernelDef getKernel(int index) { + if (kernelBuilder_ == null) { + return kernel_.get(index); + } else { + return kernelBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + public Builder setKernel( + int index, org.tensorflow.proto.KernelDef value) { + if (kernelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKernelIsMutable(); + kernel_.set(index, value); + onChanged(); + } else { + kernelBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + public Builder setKernel( + int index, org.tensorflow.proto.KernelDef.Builder builderForValue) { + if (kernelBuilder_ == null) { + ensureKernelIsMutable(); + kernel_.set(index, builderForValue.build()); + onChanged(); + } else { + kernelBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + public Builder addKernel(org.tensorflow.proto.KernelDef value) { + if (kernelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKernelIsMutable(); + kernel_.add(value); + onChanged(); + } else { + kernelBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + public Builder addKernel( + int index, org.tensorflow.proto.KernelDef value) { + if (kernelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKernelIsMutable(); + kernel_.add(index, value); + onChanged(); + } else { + kernelBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + public Builder addKernel( + org.tensorflow.proto.KernelDef.Builder builderForValue) { + if (kernelBuilder_ == null) { + ensureKernelIsMutable(); + kernel_.add(builderForValue.build()); + onChanged(); + } else { + kernelBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + public Builder addKernel( + int index, org.tensorflow.proto.KernelDef.Builder builderForValue) { + if (kernelBuilder_ == null) { + ensureKernelIsMutable(); + kernel_.add(index, builderForValue.build()); + onChanged(); + } else { + kernelBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + public Builder addAllKernel( + java.lang.Iterable values) { + if (kernelBuilder_ == null) { + ensureKernelIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, kernel_); + onChanged(); + } else { + kernelBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + public Builder clearKernel() { + if (kernelBuilder_ == null) { + kernel_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + kernelBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + public Builder removeKernel(int index) { + if (kernelBuilder_ == null) { + ensureKernelIsMutable(); + kernel_.remove(index); + onChanged(); + } else { + kernelBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + public org.tensorflow.proto.KernelDef.Builder getKernelBuilder( + int index) { + return getKernelFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + public org.tensorflow.proto.KernelDefOrBuilder getKernelOrBuilder( + int index) { + if (kernelBuilder_ == null) { + return kernel_.get(index); } else { + return kernelBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + public java.util.List + getKernelOrBuilderList() { + if (kernelBuilder_ != null) { + return kernelBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(kernel_); + } + } + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + public org.tensorflow.proto.KernelDef.Builder addKernelBuilder() { + return getKernelFieldBuilder().addBuilder( + org.tensorflow.proto.KernelDef.getDefaultInstance()); + } + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + public org.tensorflow.proto.KernelDef.Builder addKernelBuilder( + int index) { + return getKernelFieldBuilder().addBuilder( + index, org.tensorflow.proto.KernelDef.getDefaultInstance()); + } + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + public java.util.List + getKernelBuilderList() { + return getKernelFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.KernelDef, org.tensorflow.proto.KernelDef.Builder, org.tensorflow.proto.KernelDefOrBuilder> + getKernelFieldBuilder() { + if (kernelBuilder_ == null) { + kernelBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.KernelDef, org.tensorflow.proto.KernelDef.Builder, org.tensorflow.proto.KernelDefOrBuilder>( + kernel_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + kernel_ = null; + } + return kernelBuilder_; + } + @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:tensorflow.KernelList) + } + + // @@protoc_insertion_point(class_scope:tensorflow.KernelList) + private static final org.tensorflow.proto.KernelList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.KernelList(); + } + + public static org.tensorflow.proto.KernelList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KernelList 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 org.tensorflow.proto.KernelList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/KernelListOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/KernelListOrBuilder.java new file mode 100644 index 00000000000..a9ec75e9381 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/KernelListOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/kernel_def.proto + +package org.tensorflow.proto; + +public interface KernelListOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.KernelList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + java.util.List + getKernelList(); + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + org.tensorflow.proto.KernelDef getKernel(int index); + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + int getKernelCount(); + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + java.util.List + getKernelOrBuilderList(); + /** + * repeated .tensorflow.KernelDef kernel = 1; + */ + org.tensorflow.proto.KernelDefOrBuilder getKernelOrBuilder( + int index); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/LocalLinks.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/LocalLinks.java new file mode 100644 index 00000000000..4733ac82cb9 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/LocalLinks.java @@ -0,0 +1,752 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/device_attributes.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.LocalLinks} + */ +public final class LocalLinks extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.LocalLinks) + LocalLinksOrBuilder { +private static final long serialVersionUID = 0L; + // Use LocalLinks.newBuilder() to construct. + private LocalLinks(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LocalLinks() { + link_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LocalLinks(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DeviceAttributesProtos.internal_static_tensorflow_LocalLinks_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DeviceAttributesProtos.internal_static_tensorflow_LocalLinks_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.LocalLinks.class, org.tensorflow.proto.LocalLinks.Builder.class); + } + + public static final int LINK_FIELD_NUMBER = 1; + private java.util.List link_; + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + @java.lang.Override + public java.util.List getLinkList() { + return link_; + } + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + @java.lang.Override + public java.util.List + getLinkOrBuilderList() { + return link_; + } + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + @java.lang.Override + public int getLinkCount() { + return link_.size(); + } + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + @java.lang.Override + public org.tensorflow.proto.InterconnectLink getLink(int index) { + return link_.get(index); + } + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + @java.lang.Override + public org.tensorflow.proto.InterconnectLinkOrBuilder getLinkOrBuilder( + int index) { + return link_.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 < link_.size(); i++) { + output.writeMessage(1, link_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < link_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, link_.get(i)); + } + 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 org.tensorflow.proto.LocalLinks)) { + return super.equals(obj); + } + org.tensorflow.proto.LocalLinks other = (org.tensorflow.proto.LocalLinks) obj; + + if (!getLinkList() + .equals(other.getLinkList())) 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 (getLinkCount() > 0) { + hash = (37 * hash) + LINK_FIELD_NUMBER; + hash = (53 * hash) + getLinkList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.LocalLinks parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.LocalLinks parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.LocalLinks parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.LocalLinks parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.LocalLinks parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.LocalLinks parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.LocalLinks parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.LocalLinks 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 org.tensorflow.proto.LocalLinks parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.LocalLinks 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 org.tensorflow.proto.LocalLinks parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.LocalLinks 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(org.tensorflow.proto.LocalLinks prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.LocalLinks} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.LocalLinks) + org.tensorflow.proto.LocalLinksOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DeviceAttributesProtos.internal_static_tensorflow_LocalLinks_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DeviceAttributesProtos.internal_static_tensorflow_LocalLinks_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.LocalLinks.class, org.tensorflow.proto.LocalLinks.Builder.class); + } + + // Construct using org.tensorflow.proto.LocalLinks.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (linkBuilder_ == null) { + link_ = java.util.Collections.emptyList(); + } else { + link_ = null; + linkBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.DeviceAttributesProtos.internal_static_tensorflow_LocalLinks_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.LocalLinks getDefaultInstanceForType() { + return org.tensorflow.proto.LocalLinks.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.LocalLinks build() { + org.tensorflow.proto.LocalLinks result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.LocalLinks buildPartial() { + org.tensorflow.proto.LocalLinks result = new org.tensorflow.proto.LocalLinks(this); + int from_bitField0_ = bitField0_; + if (linkBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + link_ = java.util.Collections.unmodifiableList(link_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.link_ = link_; + } else { + result.link_ = linkBuilder_.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 org.tensorflow.proto.LocalLinks) { + return mergeFrom((org.tensorflow.proto.LocalLinks)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.LocalLinks other) { + if (other == org.tensorflow.proto.LocalLinks.getDefaultInstance()) return this; + if (linkBuilder_ == null) { + if (!other.link_.isEmpty()) { + if (link_.isEmpty()) { + link_ = other.link_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLinkIsMutable(); + link_.addAll(other.link_); + } + onChanged(); + } + } else { + if (!other.link_.isEmpty()) { + if (linkBuilder_.isEmpty()) { + linkBuilder_.dispose(); + linkBuilder_ = null; + link_ = other.link_; + bitField0_ = (bitField0_ & ~0x00000001); + linkBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLinkFieldBuilder() : null; + } else { + linkBuilder_.addAllMessages(other.link_); + } + } + } + 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: { + org.tensorflow.proto.InterconnectLink m = + input.readMessage( + org.tensorflow.proto.InterconnectLink.parser(), + extensionRegistry); + if (linkBuilder_ == null) { + ensureLinkIsMutable(); + link_.add(m); + } else { + linkBuilder_.addMessage(m); + } + 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.util.List link_ = + java.util.Collections.emptyList(); + private void ensureLinkIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + link_ = new java.util.ArrayList(link_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.InterconnectLink, org.tensorflow.proto.InterconnectLink.Builder, org.tensorflow.proto.InterconnectLinkOrBuilder> linkBuilder_; + + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + public java.util.List getLinkList() { + if (linkBuilder_ == null) { + return java.util.Collections.unmodifiableList(link_); + } else { + return linkBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + public int getLinkCount() { + if (linkBuilder_ == null) { + return link_.size(); + } else { + return linkBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + public org.tensorflow.proto.InterconnectLink getLink(int index) { + if (linkBuilder_ == null) { + return link_.get(index); + } else { + return linkBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + public Builder setLink( + int index, org.tensorflow.proto.InterconnectLink value) { + if (linkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinkIsMutable(); + link_.set(index, value); + onChanged(); + } else { + linkBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + public Builder setLink( + int index, org.tensorflow.proto.InterconnectLink.Builder builderForValue) { + if (linkBuilder_ == null) { + ensureLinkIsMutable(); + link_.set(index, builderForValue.build()); + onChanged(); + } else { + linkBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + public Builder addLink(org.tensorflow.proto.InterconnectLink value) { + if (linkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinkIsMutable(); + link_.add(value); + onChanged(); + } else { + linkBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + public Builder addLink( + int index, org.tensorflow.proto.InterconnectLink value) { + if (linkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinkIsMutable(); + link_.add(index, value); + onChanged(); + } else { + linkBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + public Builder addLink( + org.tensorflow.proto.InterconnectLink.Builder builderForValue) { + if (linkBuilder_ == null) { + ensureLinkIsMutable(); + link_.add(builderForValue.build()); + onChanged(); + } else { + linkBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + public Builder addLink( + int index, org.tensorflow.proto.InterconnectLink.Builder builderForValue) { + if (linkBuilder_ == null) { + ensureLinkIsMutable(); + link_.add(index, builderForValue.build()); + onChanged(); + } else { + linkBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + public Builder addAllLink( + java.lang.Iterable values) { + if (linkBuilder_ == null) { + ensureLinkIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, link_); + onChanged(); + } else { + linkBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + public Builder clearLink() { + if (linkBuilder_ == null) { + link_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + linkBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + public Builder removeLink(int index) { + if (linkBuilder_ == null) { + ensureLinkIsMutable(); + link_.remove(index); + onChanged(); + } else { + linkBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + public org.tensorflow.proto.InterconnectLink.Builder getLinkBuilder( + int index) { + return getLinkFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + public org.tensorflow.proto.InterconnectLinkOrBuilder getLinkOrBuilder( + int index) { + if (linkBuilder_ == null) { + return link_.get(index); } else { + return linkBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + public java.util.List + getLinkOrBuilderList() { + if (linkBuilder_ != null) { + return linkBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(link_); + } + } + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + public org.tensorflow.proto.InterconnectLink.Builder addLinkBuilder() { + return getLinkFieldBuilder().addBuilder( + org.tensorflow.proto.InterconnectLink.getDefaultInstance()); + } + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + public org.tensorflow.proto.InterconnectLink.Builder addLinkBuilder( + int index) { + return getLinkFieldBuilder().addBuilder( + index, org.tensorflow.proto.InterconnectLink.getDefaultInstance()); + } + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + public java.util.List + getLinkBuilderList() { + return getLinkFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.InterconnectLink, org.tensorflow.proto.InterconnectLink.Builder, org.tensorflow.proto.InterconnectLinkOrBuilder> + getLinkFieldBuilder() { + if (linkBuilder_ == null) { + linkBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.InterconnectLink, org.tensorflow.proto.InterconnectLink.Builder, org.tensorflow.proto.InterconnectLinkOrBuilder>( + link_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + link_ = null; + } + return linkBuilder_; + } + @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:tensorflow.LocalLinks) + } + + // @@protoc_insertion_point(class_scope:tensorflow.LocalLinks) + private static final org.tensorflow.proto.LocalLinks DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.LocalLinks(); + } + + public static org.tensorflow.proto.LocalLinks getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocalLinks 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 org.tensorflow.proto.LocalLinks getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/LocalLinksOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/LocalLinksOrBuilder.java new file mode 100644 index 00000000000..7a512b29fd0 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/LocalLinksOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/device_attributes.proto + +package org.tensorflow.proto; + +public interface LocalLinksOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.LocalLinks) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + java.util.List + getLinkList(); + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + org.tensorflow.proto.InterconnectLink getLink(int index); + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + int getLinkCount(); + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + java.util.List + getLinkOrBuilderList(); + /** + * repeated .tensorflow.InterconnectLink link = 1; + */ + org.tensorflow.proto.InterconnectLinkOrBuilder getLinkOrBuilder( + int index); +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/LogMemoryProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/LogMemoryProtos.java similarity index 93% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/LogMemoryProtos.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/LogMemoryProtos.java index 4cef19ad6fe..47a2758c7a0 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/LogMemoryProtos.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/LogMemoryProtos.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/log_memory.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public final class LogMemoryProtos { private LogMemoryProtos() {} @@ -71,16 +71,16 @@ public static void registerAllExtensions( "ocator_name\030\006 \001(\t\"\177\n\030MemoryLogRawDealloc" + "ation\022\017\n\007step_id\030\001 \001(\003\022\021\n\toperation\030\002 \001(" + "\t\022\025\n\rallocation_id\030\003 \001(\003\022\026\n\016allocator_na" + - "me\030\004 \001(\t\022\020\n\010deferred\030\005 \001(\010B\211\001\n\036org.tenso" + - "rflow.proto.frameworkB\017LogMemoryProtosP\001" + - "ZQgithub.com/tensorflow/tensorflow/tenso" + - "rflow/go/core/framework/log_memory_go_pr" + - "oto\370\001\001b\006proto3" + "me\030\004 \001(\t\022\020\n\010deferred\030\005 \001(\010B\177\n\024org.tensor" + + "flow.protoB\017LogMemoryProtosP\001ZQgithub.co" + + "m/tensorflow/tensorflow/tensorflow/go/co" + + "re/framework/log_memory_go_proto\370\001\001b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.framework.TensorDescriptionProtos.getDescriptor(), + org.tensorflow.proto.TensorDescriptionProtos.getDescriptor(), }); internal_static_tensorflow_MemoryLogStep_descriptor = getDescriptor().getMessageTypes().get(0); @@ -118,7 +118,7 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_MemoryLogRawDeallocation_descriptor, new java.lang.String[] { "StepId", "Operation", "AllocationId", "AllocatorName", "Deferred", }); - org.tensorflow.proto.framework.TensorDescriptionProtos.getDescriptor(); + org.tensorflow.proto.TensorDescriptionProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/LogMessage.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/LogMessage.java new file mode 100644 index 00000000000..2000eb7bfdc --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/LogMessage.java @@ -0,0 +1,803 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/util/event.proto + +package org.tensorflow.proto; + +/** + *
+ * Protocol buffer used for logging messages to the events file.
+ * This was theoretically used by the defunct tensorboard_logging module, which
+ * has been removed; this message is now deprecated and should not be used.
+ * 
+ * + * Protobuf type {@code tensorflow.LogMessage} + */ +@java.lang.Deprecated public final class LogMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.LogMessage) + LogMessageOrBuilder { +private static final long serialVersionUID = 0L; + // Use LogMessage.newBuilder() to construct. + private LogMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LogMessage() { + level_ = 0; + message_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LogMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_LogMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_LogMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.LogMessage.class, org.tensorflow.proto.LogMessage.Builder.class); + } + + /** + * Protobuf enum {@code tensorflow.LogMessage.Level} + */ + @java.lang.Deprecated public enum Level + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + *
+     * Note: The logging level 10 cannot be named DEBUG. Some software
+     * projects compile their C/C++ code with -DDEBUG in debug builds. So the
+     * C++ code generated from this file should not have an identifier named
+     * DEBUG.
+     * 
+ * + * DEBUGGING = 10; + */ + DEBUGGING(10), + /** + * INFO = 20; + */ + INFO(20), + /** + * WARN = 30; + */ + WARN(30), + /** + * ERROR = 40; + */ + ERROR(40), + /** + * FATAL = 50; + */ + FATAL(50), + UNRECOGNIZED(-1), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + *
+     * Note: The logging level 10 cannot be named DEBUG. Some software
+     * projects compile their C/C++ code with -DDEBUG in debug builds. So the
+     * C++ code generated from this file should not have an identifier named
+     * DEBUG.
+     * 
+ * + * DEBUGGING = 10; + */ + public static final int DEBUGGING_VALUE = 10; + /** + * INFO = 20; + */ + public static final int INFO_VALUE = 20; + /** + * WARN = 30; + */ + public static final int WARN_VALUE = 30; + /** + * ERROR = 40; + */ + public static final int ERROR_VALUE = 40; + /** + * FATAL = 50; + */ + public static final int FATAL_VALUE = 50; + + + 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 Level 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 Level forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 10: return DEBUGGING; + case 20: return INFO; + case 30: return WARN; + case 40: return ERROR; + case 50: return FATAL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Level> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Level findValueByNumber(int number) { + return Level.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 org.tensorflow.proto.LogMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final Level[] VALUES = values(); + + public static Level 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 Level(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:tensorflow.LogMessage.Level) + } + + public static final int LEVEL_FIELD_NUMBER = 1; + private int level_; + /** + * .tensorflow.LogMessage.Level level = 1; + * @return The enum numeric value on the wire for level. + */ + @java.lang.Override public int getLevelValue() { + return level_; + } + /** + * .tensorflow.LogMessage.Level level = 1; + * @return The level. + */ + @java.lang.Override public org.tensorflow.proto.LogMessage.Level getLevel() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.LogMessage.Level result = org.tensorflow.proto.LogMessage.Level.valueOf(level_); + return result == null ? org.tensorflow.proto.LogMessage.Level.UNRECOGNIZED : result; + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + * string message = 2; + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + /** + * string message = 2; + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = 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 (level_ != org.tensorflow.proto.LogMessage.Level.UNKNOWN.getNumber()) { + output.writeEnum(1, level_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (level_ != org.tensorflow.proto.LogMessage.Level.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, level_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + 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 org.tensorflow.proto.LogMessage)) { + return super.equals(obj); + } + org.tensorflow.proto.LogMessage other = (org.tensorflow.proto.LogMessage) obj; + + if (level_ != other.level_) return false; + if (!getMessage() + .equals(other.getMessage())) 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) + LEVEL_FIELD_NUMBER; + hash = (53 * hash) + level_; + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.LogMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.LogMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.LogMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.LogMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.LogMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.LogMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.LogMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.LogMessage 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 org.tensorflow.proto.LogMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.LogMessage 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 org.tensorflow.proto.LogMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.LogMessage 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(org.tensorflow.proto.LogMessage 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; + } + /** + *
+   * Protocol buffer used for logging messages to the events file.
+   * This was theoretically used by the defunct tensorboard_logging module, which
+   * has been removed; this message is now deprecated and should not be used.
+   * 
+ * + * Protobuf type {@code tensorflow.LogMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.LogMessage) + org.tensorflow.proto.LogMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_LogMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_LogMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.LogMessage.class, org.tensorflow.proto.LogMessage.Builder.class); + } + + // Construct using org.tensorflow.proto.LogMessage.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + level_ = 0; + + message_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_LogMessage_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.LogMessage getDefaultInstanceForType() { + return org.tensorflow.proto.LogMessage.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.LogMessage build() { + org.tensorflow.proto.LogMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.LogMessage buildPartial() { + org.tensorflow.proto.LogMessage result = new org.tensorflow.proto.LogMessage(this); + result.level_ = level_; + result.message_ = message_; + 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 org.tensorflow.proto.LogMessage) { + return mergeFrom((org.tensorflow.proto.LogMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.LogMessage other) { + if (other == org.tensorflow.proto.LogMessage.getDefaultInstance()) return this; + if (other.level_ != 0) { + setLevelValue(other.getLevelValue()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + 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 8: { + level_ = input.readEnum(); + + break; + } // case 8 + case 18: { + message_ = input.readStringRequireUtf8(); + + 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 level_ = 0; + /** + * .tensorflow.LogMessage.Level level = 1; + * @return The enum numeric value on the wire for level. + */ + @java.lang.Override public int getLevelValue() { + return level_; + } + /** + * .tensorflow.LogMessage.Level level = 1; + * @param value The enum numeric value on the wire for level to set. + * @return This builder for chaining. + */ + public Builder setLevelValue(int value) { + + level_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.LogMessage.Level level = 1; + * @return The level. + */ + @java.lang.Override + public org.tensorflow.proto.LogMessage.Level getLevel() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.LogMessage.Level result = org.tensorflow.proto.LogMessage.Level.valueOf(level_); + return result == null ? org.tensorflow.proto.LogMessage.Level.UNRECOGNIZED : result; + } + /** + * .tensorflow.LogMessage.Level level = 1; + * @param value The level to set. + * @return This builder for chaining. + */ + public Builder setLevel(org.tensorflow.proto.LogMessage.Level value) { + if (value == null) { + throw new NullPointerException(); + } + + level_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.LogMessage.Level level = 1; + * @return This builder for chaining. + */ + public Builder clearLevel() { + + level_ = 0; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + * string message = 2; + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string message = 2; + * @return The bytes for message. + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string message = 2; + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * string message = 2; + * @return This builder for chaining. + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * string message = 2; + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.LogMessage) + } + + // @@protoc_insertion_point(class_scope:tensorflow.LogMessage) + private static final org.tensorflow.proto.LogMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.LogMessage(); + } + + public static org.tensorflow.proto.LogMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogMessage 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 org.tensorflow.proto.LogMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/LogMessageOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/LogMessageOrBuilder.java new file mode 100644 index 00000000000..d4aaa8c5471 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/LogMessageOrBuilder.java @@ -0,0 +1,32 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/util/event.proto + +package org.tensorflow.proto; + +@java.lang.Deprecated public interface LogMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.LogMessage) + com.google.protobuf.MessageOrBuilder { + + /** + * .tensorflow.LogMessage.Level level = 1; + * @return The enum numeric value on the wire for level. + */ + int getLevelValue(); + /** + * .tensorflow.LogMessage.Level level = 1; + * @return The level. + */ + org.tensorflow.proto.LogMessage.Level getLevel(); + + /** + * string message = 2; + * @return The message. + */ + java.lang.String getMessage(); + /** + * string message = 2; + * @return The bytes for message. + */ + com.google.protobuf.ByteString + getMessageBytes(); +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/MachineConfiguration.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MachineConfiguration.java similarity index 76% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/MachineConfiguration.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MachineConfiguration.java index 70b9d4a3d7c..0ab4024fbea 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/MachineConfiguration.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MachineConfiguration.java @@ -1,12 +1,12 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/util/test_log.proto +// source: tensorflow/tsl/protobuf/test_log.proto -package org.tensorflow.proto.util.testlog; +package org.tensorflow.proto; /** * Protobuf type {@code tensorflow.MachineConfiguration} */ -public final class MachineConfiguration extends +public final class MachineConfiguration extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.MachineConfiguration) MachineConfigurationOrBuilder { @@ -34,130 +34,17 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private MachineConfiguration( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - hostname_ = s; - break; - } - case 18: { - org.tensorflow.proto.util.testlog.PlatformInfo.Builder subBuilder = null; - if (platformInfo_ != null) { - subBuilder = platformInfo_.toBuilder(); - } - platformInfo_ = input.readMessage(org.tensorflow.proto.util.testlog.PlatformInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(platformInfo_); - platformInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - org.tensorflow.proto.util.testlog.CPUInfo.Builder subBuilder = null; - if (cpuInfo_ != null) { - subBuilder = cpuInfo_.toBuilder(); - } - cpuInfo_ = input.readMessage(org.tensorflow.proto.util.testlog.CPUInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cpuInfo_); - cpuInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - deviceInfo_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - deviceInfo_.add( - input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - availableDeviceInfo_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - availableDeviceInfo_.add( - input.readMessage(org.tensorflow.proto.util.testlog.AvailableDeviceInfo.parser(), extensionRegistry)); - break; - } - case 50: { - org.tensorflow.proto.util.testlog.MemoryInfo.Builder subBuilder = null; - if (memoryInfo_ != null) { - subBuilder = memoryInfo_.toBuilder(); - } - memoryInfo_ = input.readMessage(org.tensorflow.proto.util.testlog.MemoryInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(memoryInfo_); - memoryInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - serialIdentifier_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - deviceInfo_ = java.util.Collections.unmodifiableList(deviceInfo_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - availableDeviceInfo_ = java.util.Collections.unmodifiableList(availableDeviceInfo_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_MachineConfiguration_descriptor; + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_MachineConfiguration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_MachineConfiguration_fieldAccessorTable + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_MachineConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.util.testlog.MachineConfiguration.class, org.tensorflow.proto.util.testlog.MachineConfiguration.Builder.class); + org.tensorflow.proto.MachineConfiguration.class, org.tensorflow.proto.MachineConfiguration.Builder.class); } public static final int HOSTNAME_FIELD_NUMBER = 1; @@ -168,7 +55,9 @@ private MachineConfiguration( * * * string hostname = 1; + * @return The hostname. */ + @java.lang.Override public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { @@ -187,7 +76,9 @@ public java.lang.String getHostname() { * * * string hostname = 1; + * @return The bytes for hostname. */ + @java.lang.Override public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; @@ -210,7 +101,9 @@ public java.lang.String getHostname() { * * * string serial_identifier = 7; + * @return The serialIdentifier. */ + @java.lang.Override public java.lang.String getSerialIdentifier() { java.lang.Object ref = serialIdentifier_; if (ref instanceof java.lang.String) { @@ -229,7 +122,9 @@ public java.lang.String getSerialIdentifier() { * * * string serial_identifier = 7; + * @return The bytes for serialIdentifier. */ + @java.lang.Override public com.google.protobuf.ByteString getSerialIdentifierBytes() { java.lang.Object ref = serialIdentifier_; @@ -245,14 +140,16 @@ public java.lang.String getSerialIdentifier() { } public static final int PLATFORM_INFO_FIELD_NUMBER = 2; - private org.tensorflow.proto.util.testlog.PlatformInfo platformInfo_; + private org.tensorflow.proto.PlatformInfo platformInfo_; /** *
    * Additional platform information.
    * 
* * .tensorflow.PlatformInfo platform_info = 2; + * @return Whether the platformInfo field is set. */ + @java.lang.Override public boolean hasPlatformInfo() { return platformInfo_ != null; } @@ -262,9 +159,11 @@ public boolean hasPlatformInfo() { * * * .tensorflow.PlatformInfo platform_info = 2; + * @return The platformInfo. */ - public org.tensorflow.proto.util.testlog.PlatformInfo getPlatformInfo() { - return platformInfo_ == null ? org.tensorflow.proto.util.testlog.PlatformInfo.getDefaultInstance() : platformInfo_; + @java.lang.Override + public org.tensorflow.proto.PlatformInfo getPlatformInfo() { + return platformInfo_ == null ? org.tensorflow.proto.PlatformInfo.getDefaultInstance() : platformInfo_; } /** *
@@ -273,19 +172,22 @@ public org.tensorflow.proto.util.testlog.PlatformInfo getPlatformInfo() {
    *
    * .tensorflow.PlatformInfo platform_info = 2;
    */
-  public org.tensorflow.proto.util.testlog.PlatformInfoOrBuilder getPlatformInfoOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.PlatformInfoOrBuilder getPlatformInfoOrBuilder() {
     return getPlatformInfo();
   }
 
   public static final int CPU_INFO_FIELD_NUMBER = 3;
-  private org.tensorflow.proto.util.testlog.CPUInfo cpuInfo_;
+  private org.tensorflow.proto.CPUInfo cpuInfo_;
   /**
    * 
    * CPU Information.
    * 
* * .tensorflow.CPUInfo cpu_info = 3; + * @return Whether the cpuInfo field is set. */ + @java.lang.Override public boolean hasCpuInfo() { return cpuInfo_ != null; } @@ -295,9 +197,11 @@ public boolean hasCpuInfo() { *
* * .tensorflow.CPUInfo cpu_info = 3; + * @return The cpuInfo. */ - public org.tensorflow.proto.util.testlog.CPUInfo getCpuInfo() { - return cpuInfo_ == null ? org.tensorflow.proto.util.testlog.CPUInfo.getDefaultInstance() : cpuInfo_; + @java.lang.Override + public org.tensorflow.proto.CPUInfo getCpuInfo() { + return cpuInfo_ == null ? org.tensorflow.proto.CPUInfo.getDefaultInstance() : cpuInfo_; } /** *
@@ -306,7 +210,8 @@ public org.tensorflow.proto.util.testlog.CPUInfo getCpuInfo() {
    *
    * .tensorflow.CPUInfo cpu_info = 3;
    */
-  public org.tensorflow.proto.util.testlog.CPUInfoOrBuilder getCpuInfoOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.CPUInfoOrBuilder getCpuInfoOrBuilder() {
     return getCpuInfo();
   }
 
@@ -319,6 +224,7 @@ public org.tensorflow.proto.util.testlog.CPUInfoOrBuilder getCpuInfoOrBuilder()
    *
    * repeated .google.protobuf.Any device_info = 4;
    */
+  @java.lang.Override
   public java.util.List getDeviceInfoList() {
     return deviceInfo_;
   }
@@ -329,6 +235,7 @@ public java.util.List getDeviceInfoList() {
    *
    * repeated .google.protobuf.Any device_info = 4;
    */
+  @java.lang.Override
   public java.util.List 
       getDeviceInfoOrBuilderList() {
     return deviceInfo_;
@@ -340,6 +247,7 @@ public java.util.List getDeviceInfoList() {
    *
    * repeated .google.protobuf.Any device_info = 4;
    */
+  @java.lang.Override
   public int getDeviceInfoCount() {
     return deviceInfo_.size();
   }
@@ -350,6 +258,7 @@ public int getDeviceInfoCount() {
    *
    * repeated .google.protobuf.Any device_info = 4;
    */
+  @java.lang.Override
   public com.google.protobuf.Any getDeviceInfo(int index) {
     return deviceInfo_.get(index);
   }
@@ -360,13 +269,14 @@ public com.google.protobuf.Any getDeviceInfo(int index) {
    *
    * repeated .google.protobuf.Any device_info = 4;
    */
+  @java.lang.Override
   public com.google.protobuf.AnyOrBuilder getDeviceInfoOrBuilder(
       int index) {
     return deviceInfo_.get(index);
   }
 
   public static final int AVAILABLE_DEVICE_INFO_FIELD_NUMBER = 5;
-  private java.util.List availableDeviceInfo_;
+  private java.util.List availableDeviceInfo_;
   /**
    * 
    * Devices accessible to the test (e.g. as given by list_local_devices).
@@ -374,7 +284,8 @@ public com.google.protobuf.AnyOrBuilder getDeviceInfoOrBuilder(
    *
    * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
    */
-  public java.util.List getAvailableDeviceInfoList() {
+  @java.lang.Override
+  public java.util.List getAvailableDeviceInfoList() {
     return availableDeviceInfo_;
   }
   /**
@@ -384,7 +295,8 @@ public java.util.List get
    *
    * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
    */
-  public java.util.List 
+  @java.lang.Override
+  public java.util.List 
       getAvailableDeviceInfoOrBuilderList() {
     return availableDeviceInfo_;
   }
@@ -395,6 +307,7 @@ public java.util.List get
    *
    * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
    */
+  @java.lang.Override
   public int getAvailableDeviceInfoCount() {
     return availableDeviceInfo_.size();
   }
@@ -405,7 +318,8 @@ public int getAvailableDeviceInfoCount() {
    *
    * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
    */
-  public org.tensorflow.proto.util.testlog.AvailableDeviceInfo getAvailableDeviceInfo(int index) {
+  @java.lang.Override
+  public org.tensorflow.proto.AvailableDeviceInfo getAvailableDeviceInfo(int index) {
     return availableDeviceInfo_.get(index);
   }
   /**
@@ -415,29 +329,35 @@ public org.tensorflow.proto.util.testlog.AvailableDeviceInfo getAvailableDeviceI
    *
    * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
    */
-  public org.tensorflow.proto.util.testlog.AvailableDeviceInfoOrBuilder getAvailableDeviceInfoOrBuilder(
+  @java.lang.Override
+  public org.tensorflow.proto.AvailableDeviceInfoOrBuilder getAvailableDeviceInfoOrBuilder(
       int index) {
     return availableDeviceInfo_.get(index);
   }
 
   public static final int MEMORY_INFO_FIELD_NUMBER = 6;
-  private org.tensorflow.proto.util.testlog.MemoryInfo memoryInfo_;
+  private org.tensorflow.proto.MemoryInfo memoryInfo_;
   /**
    * .tensorflow.MemoryInfo memory_info = 6;
+   * @return Whether the memoryInfo field is set.
    */
+  @java.lang.Override
   public boolean hasMemoryInfo() {
     return memoryInfo_ != null;
   }
   /**
    * .tensorflow.MemoryInfo memory_info = 6;
+   * @return The memoryInfo.
    */
-  public org.tensorflow.proto.util.testlog.MemoryInfo getMemoryInfo() {
-    return memoryInfo_ == null ? org.tensorflow.proto.util.testlog.MemoryInfo.getDefaultInstance() : memoryInfo_;
+  @java.lang.Override
+  public org.tensorflow.proto.MemoryInfo getMemoryInfo() {
+    return memoryInfo_ == null ? org.tensorflow.proto.MemoryInfo.getDefaultInstance() : memoryInfo_;
   }
   /**
    * .tensorflow.MemoryInfo memory_info = 6;
    */
-  public org.tensorflow.proto.util.testlog.MemoryInfoOrBuilder getMemoryInfoOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.MemoryInfoOrBuilder getMemoryInfoOrBuilder() {
     return getMemoryInfo();
   }
 
@@ -455,7 +375,7 @@ public final boolean isInitialized() {
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output)
                       throws java.io.IOException {
-    if (!getHostnameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_);
     }
     if (platformInfo_ != null) {
@@ -473,10 +393,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (memoryInfo_ != null) {
       output.writeMessage(6, getMemoryInfo());
     }
-    if (!getSerialIdentifierBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serialIdentifier_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 7, serialIdentifier_);
     }
-    unknownFields.writeTo(output);
+    getUnknownFields().writeTo(output);
   }
 
   @java.lang.Override
@@ -485,7 +405,7 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getHostnameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_);
     }
     if (platformInfo_ != null) {
@@ -508,10 +428,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
         .computeMessageSize(6, getMemoryInfo());
     }
-    if (!getSerialIdentifierBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serialIdentifier_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, serialIdentifier_);
     }
-    size += unknownFields.getSerializedSize();
+    size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
     return size;
   }
@@ -521,10 +441,10 @@ public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
      return true;
     }
-    if (!(obj instanceof org.tensorflow.proto.util.testlog.MachineConfiguration)) {
+    if (!(obj instanceof org.tensorflow.proto.MachineConfiguration)) {
       return super.equals(obj);
     }
-    org.tensorflow.proto.util.testlog.MachineConfiguration other = (org.tensorflow.proto.util.testlog.MachineConfiguration) obj;
+    org.tensorflow.proto.MachineConfiguration other = (org.tensorflow.proto.MachineConfiguration) obj;
 
     if (!getHostname()
         .equals(other.getHostname())) return false;
@@ -549,7 +469,7 @@ public boolean equals(final java.lang.Object obj) {
       if (!getMemoryInfo()
           .equals(other.getMemoryInfo())) return false;
     }
-    if (!unknownFields.equals(other.unknownFields)) return false;
+    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
 
@@ -584,74 +504,74 @@ public int hashCode() {
       hash = (37 * hash) + MEMORY_INFO_FIELD_NUMBER;
       hash = (53 * hash) + getMemoryInfo().hashCode();
     }
-    hash = (29 * hash) + unknownFields.hashCode();
+    hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
     return hash;
   }
 
-  public static org.tensorflow.proto.util.testlog.MachineConfiguration parseFrom(
+  public static org.tensorflow.proto.MachineConfiguration parseFrom(
       java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.util.testlog.MachineConfiguration parseFrom(
+  public static org.tensorflow.proto.MachineConfiguration parseFrom(
       java.nio.ByteBuffer data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.util.testlog.MachineConfiguration parseFrom(
+  public static org.tensorflow.proto.MachineConfiguration parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.util.testlog.MachineConfiguration parseFrom(
+  public static org.tensorflow.proto.MachineConfiguration parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.util.testlog.MachineConfiguration parseFrom(byte[] data)
+  public static org.tensorflow.proto.MachineConfiguration parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.util.testlog.MachineConfiguration parseFrom(
+  public static org.tensorflow.proto.MachineConfiguration parseFrom(
       byte[] data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.util.testlog.MachineConfiguration parseFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.MachineConfiguration parseFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.util.testlog.MachineConfiguration parseFrom(
+  public static org.tensorflow.proto.MachineConfiguration 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 org.tensorflow.proto.util.testlog.MachineConfiguration parseDelimitedFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.MachineConfiguration parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.util.testlog.MachineConfiguration parseDelimitedFrom(
+  public static org.tensorflow.proto.MachineConfiguration 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 org.tensorflow.proto.util.testlog.MachineConfiguration parseFrom(
+  public static org.tensorflow.proto.MachineConfiguration parseFrom(
       com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.util.testlog.MachineConfiguration parseFrom(
+  public static org.tensorflow.proto.MachineConfiguration parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
@@ -664,7 +584,7 @@ public static org.tensorflow.proto.util.testlog.MachineConfiguration parseFrom(
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(org.tensorflow.proto.util.testlog.MachineConfiguration prototype) {
+  public static Builder newBuilder(org.tensorflow.proto.MachineConfiguration prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
   @java.lang.Override
@@ -685,36 +605,29 @@ protected Builder newBuilderForType(
   public static final class Builder extends
       com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:tensorflow.MachineConfiguration)
-      org.tensorflow.proto.util.testlog.MachineConfigurationOrBuilder {
+      org.tensorflow.proto.MachineConfigurationOrBuilder {
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_MachineConfiguration_descriptor;
+      return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_MachineConfiguration_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_MachineConfiguration_fieldAccessorTable
+      return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_MachineConfiguration_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              org.tensorflow.proto.util.testlog.MachineConfiguration.class, org.tensorflow.proto.util.testlog.MachineConfiguration.Builder.class);
+              org.tensorflow.proto.MachineConfiguration.class, org.tensorflow.proto.MachineConfiguration.Builder.class);
     }
 
-    // Construct using org.tensorflow.proto.util.testlog.MachineConfiguration.newBuilder()
+    // Construct using org.tensorflow.proto.MachineConfiguration.newBuilder()
     private Builder() {
-      maybeForceBuilderInitialization();
+
     }
 
     private Builder(
         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-      maybeForceBuilderInitialization();
-    }
-    private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-        getDeviceInfoFieldBuilder();
-        getAvailableDeviceInfoFieldBuilder();
-      }
+
     }
     @java.lang.Override
     public Builder clear() {
@@ -737,16 +650,18 @@ public Builder clear() {
       }
       if (deviceInfoBuilder_ == null) {
         deviceInfo_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000001);
       } else {
+        deviceInfo_ = null;
         deviceInfoBuilder_.clear();
       }
+      bitField0_ = (bitField0_ & ~0x00000001);
       if (availableDeviceInfoBuilder_ == null) {
         availableDeviceInfo_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000002);
       } else {
+        availableDeviceInfo_ = null;
         availableDeviceInfoBuilder_.clear();
       }
+      bitField0_ = (bitField0_ & ~0x00000002);
       if (memoryInfoBuilder_ == null) {
         memoryInfo_ = null;
       } else {
@@ -759,17 +674,17 @@ public Builder clear() {
     @java.lang.Override
     public com.google.protobuf.Descriptors.Descriptor
         getDescriptorForType() {
-      return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_MachineConfiguration_descriptor;
+      return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_MachineConfiguration_descriptor;
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.util.testlog.MachineConfiguration getDefaultInstanceForType() {
-      return org.tensorflow.proto.util.testlog.MachineConfiguration.getDefaultInstance();
+    public org.tensorflow.proto.MachineConfiguration getDefaultInstanceForType() {
+      return org.tensorflow.proto.MachineConfiguration.getDefaultInstance();
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.util.testlog.MachineConfiguration build() {
-      org.tensorflow.proto.util.testlog.MachineConfiguration result = buildPartial();
+    public org.tensorflow.proto.MachineConfiguration build() {
+      org.tensorflow.proto.MachineConfiguration result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -777,8 +692,8 @@ public org.tensorflow.proto.util.testlog.MachineConfiguration build() {
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.util.testlog.MachineConfiguration buildPartial() {
-      org.tensorflow.proto.util.testlog.MachineConfiguration result = new org.tensorflow.proto.util.testlog.MachineConfiguration(this);
+    public org.tensorflow.proto.MachineConfiguration buildPartial() {
+      org.tensorflow.proto.MachineConfiguration result = new org.tensorflow.proto.MachineConfiguration(this);
       int from_bitField0_ = bitField0_;
       result.hostname_ = hostname_;
       result.serialIdentifier_ = serialIdentifier_;
@@ -853,16 +768,16 @@ public Builder addRepeatedField(
     }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof org.tensorflow.proto.util.testlog.MachineConfiguration) {
-        return mergeFrom((org.tensorflow.proto.util.testlog.MachineConfiguration)other);
+      if (other instanceof org.tensorflow.proto.MachineConfiguration) {
+        return mergeFrom((org.tensorflow.proto.MachineConfiguration)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(org.tensorflow.proto.util.testlog.MachineConfiguration other) {
-      if (other == org.tensorflow.proto.util.testlog.MachineConfiguration.getDefaultInstance()) return this;
+    public Builder mergeFrom(org.tensorflow.proto.MachineConfiguration other) {
+      if (other == org.tensorflow.proto.MachineConfiguration.getDefaultInstance()) return this;
       if (!other.getHostname().isEmpty()) {
         hostname_ = other.hostname_;
         onChanged();
@@ -932,7 +847,7 @@ public Builder mergeFrom(org.tensorflow.proto.util.testlog.MachineConfiguration
       if (other.hasMemoryInfo()) {
         mergeMemoryInfo(other.getMemoryInfo());
       }
-      this.mergeUnknownFields(other.unknownFields);
+      this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
     }
@@ -947,17 +862,87 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      org.tensorflow.proto.util.testlog.MachineConfiguration parsedMessage = null;
+      if (extensionRegistry == null) {
+        throw new java.lang.NullPointerException();
+      }
       try {
-        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+        boolean done = false;
+        while (!done) {
+          int tag = input.readTag();
+          switch (tag) {
+            case 0:
+              done = true;
+              break;
+            case 10: {
+              hostname_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getPlatformInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getCpuInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 26
+            case 34: {
+              com.google.protobuf.Any m =
+                  input.readMessage(
+                      com.google.protobuf.Any.parser(),
+                      extensionRegistry);
+              if (deviceInfoBuilder_ == null) {
+                ensureDeviceInfoIsMutable();
+                deviceInfo_.add(m);
+              } else {
+                deviceInfoBuilder_.addMessage(m);
+              }
+              break;
+            } // case 34
+            case 42: {
+              org.tensorflow.proto.AvailableDeviceInfo m =
+                  input.readMessage(
+                      org.tensorflow.proto.AvailableDeviceInfo.parser(),
+                      extensionRegistry);
+              if (availableDeviceInfoBuilder_ == null) {
+                ensureAvailableDeviceInfoIsMutable();
+                availableDeviceInfo_.add(m);
+              } else {
+                availableDeviceInfoBuilder_.addMessage(m);
+              }
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getMemoryInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 50
+            case 58: {
+              serialIdentifier_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 58
+            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) {
-        parsedMessage = (org.tensorflow.proto.util.testlog.MachineConfiguration) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
-        if (parsedMessage != null) {
-          mergeFrom(parsedMessage);
-        }
-      }
+        onChanged();
+      } // finally
       return this;
     }
     private int bitField0_;
@@ -969,6 +954,7 @@ public Builder mergeFrom(
      * 
* * string hostname = 1; + * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; @@ -988,6 +974,7 @@ public java.lang.String getHostname() { *
* * string hostname = 1; + * @return The bytes for hostname. */ public com.google.protobuf.ByteString getHostnameBytes() { @@ -1008,6 +995,8 @@ public java.lang.String getHostname() { * * * string hostname = 1; + * @param value The hostname to set. + * @return This builder for chaining. */ public Builder setHostname( java.lang.String value) { @@ -1025,6 +1014,7 @@ public Builder setHostname( * * * string hostname = 1; + * @return This builder for chaining. */ public Builder clearHostname() { @@ -1038,6 +1028,8 @@ public Builder clearHostname() { * * * string hostname = 1; + * @param value The bytes for hostname to set. + * @return This builder for chaining. */ public Builder setHostnameBytes( com.google.protobuf.ByteString value) { @@ -1058,6 +1050,7 @@ public Builder setHostnameBytes( * * * string serial_identifier = 7; + * @return The serialIdentifier. */ public java.lang.String getSerialIdentifier() { java.lang.Object ref = serialIdentifier_; @@ -1077,6 +1070,7 @@ public java.lang.String getSerialIdentifier() { * * * string serial_identifier = 7; + * @return The bytes for serialIdentifier. */ public com.google.protobuf.ByteString getSerialIdentifierBytes() { @@ -1097,6 +1091,8 @@ public java.lang.String getSerialIdentifier() { * * * string serial_identifier = 7; + * @param value The serialIdentifier to set. + * @return This builder for chaining. */ public Builder setSerialIdentifier( java.lang.String value) { @@ -1114,6 +1110,7 @@ public Builder setSerialIdentifier( * * * string serial_identifier = 7; + * @return This builder for chaining. */ public Builder clearSerialIdentifier() { @@ -1127,6 +1124,8 @@ public Builder clearSerialIdentifier() { * * * string serial_identifier = 7; + * @param value The bytes for serialIdentifier to set. + * @return This builder for chaining. */ public Builder setSerialIdentifierBytes( com.google.protobuf.ByteString value) { @@ -1140,15 +1139,16 @@ public Builder setSerialIdentifierBytes( return this; } - private org.tensorflow.proto.util.testlog.PlatformInfo platformInfo_; + private org.tensorflow.proto.PlatformInfo platformInfo_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.testlog.PlatformInfo, org.tensorflow.proto.util.testlog.PlatformInfo.Builder, org.tensorflow.proto.util.testlog.PlatformInfoOrBuilder> platformInfoBuilder_; + org.tensorflow.proto.PlatformInfo, org.tensorflow.proto.PlatformInfo.Builder, org.tensorflow.proto.PlatformInfoOrBuilder> platformInfoBuilder_; /** *
      * Additional platform information.
      * 
* * .tensorflow.PlatformInfo platform_info = 2; + * @return Whether the platformInfo field is set. */ public boolean hasPlatformInfo() { return platformInfoBuilder_ != null || platformInfo_ != null; @@ -1159,10 +1159,11 @@ public boolean hasPlatformInfo() { * * * .tensorflow.PlatformInfo platform_info = 2; + * @return The platformInfo. */ - public org.tensorflow.proto.util.testlog.PlatformInfo getPlatformInfo() { + public org.tensorflow.proto.PlatformInfo getPlatformInfo() { if (platformInfoBuilder_ == null) { - return platformInfo_ == null ? org.tensorflow.proto.util.testlog.PlatformInfo.getDefaultInstance() : platformInfo_; + return platformInfo_ == null ? org.tensorflow.proto.PlatformInfo.getDefaultInstance() : platformInfo_; } else { return platformInfoBuilder_.getMessage(); } @@ -1174,7 +1175,7 @@ public org.tensorflow.proto.util.testlog.PlatformInfo getPlatformInfo() { * * .tensorflow.PlatformInfo platform_info = 2; */ - public Builder setPlatformInfo(org.tensorflow.proto.util.testlog.PlatformInfo value) { + public Builder setPlatformInfo(org.tensorflow.proto.PlatformInfo value) { if (platformInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1195,7 +1196,7 @@ public Builder setPlatformInfo(org.tensorflow.proto.util.testlog.PlatformInfo va * .tensorflow.PlatformInfo platform_info = 2; */ public Builder setPlatformInfo( - org.tensorflow.proto.util.testlog.PlatformInfo.Builder builderForValue) { + org.tensorflow.proto.PlatformInfo.Builder builderForValue) { if (platformInfoBuilder_ == null) { platformInfo_ = builderForValue.build(); onChanged(); @@ -1212,11 +1213,11 @@ public Builder setPlatformInfo( * * .tensorflow.PlatformInfo platform_info = 2; */ - public Builder mergePlatformInfo(org.tensorflow.proto.util.testlog.PlatformInfo value) { + public Builder mergePlatformInfo(org.tensorflow.proto.PlatformInfo value) { if (platformInfoBuilder_ == null) { if (platformInfo_ != null) { platformInfo_ = - org.tensorflow.proto.util.testlog.PlatformInfo.newBuilder(platformInfo_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.PlatformInfo.newBuilder(platformInfo_).mergeFrom(value).buildPartial(); } else { platformInfo_ = value; } @@ -1252,7 +1253,7 @@ public Builder clearPlatformInfo() { * * .tensorflow.PlatformInfo platform_info = 2; */ - public org.tensorflow.proto.util.testlog.PlatformInfo.Builder getPlatformInfoBuilder() { + public org.tensorflow.proto.PlatformInfo.Builder getPlatformInfoBuilder() { onChanged(); return getPlatformInfoFieldBuilder().getBuilder(); @@ -1264,12 +1265,12 @@ public org.tensorflow.proto.util.testlog.PlatformInfo.Builder getPlatformInfoBui * * .tensorflow.PlatformInfo platform_info = 2; */ - public org.tensorflow.proto.util.testlog.PlatformInfoOrBuilder getPlatformInfoOrBuilder() { + public org.tensorflow.proto.PlatformInfoOrBuilder getPlatformInfoOrBuilder() { if (platformInfoBuilder_ != null) { return platformInfoBuilder_.getMessageOrBuilder(); } else { return platformInfo_ == null ? - org.tensorflow.proto.util.testlog.PlatformInfo.getDefaultInstance() : platformInfo_; + org.tensorflow.proto.PlatformInfo.getDefaultInstance() : platformInfo_; } } /** @@ -1280,11 +1281,11 @@ public org.tensorflow.proto.util.testlog.PlatformInfoOrBuilder getPlatformInfoOr * .tensorflow.PlatformInfo platform_info = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.testlog.PlatformInfo, org.tensorflow.proto.util.testlog.PlatformInfo.Builder, org.tensorflow.proto.util.testlog.PlatformInfoOrBuilder> + org.tensorflow.proto.PlatformInfo, org.tensorflow.proto.PlatformInfo.Builder, org.tensorflow.proto.PlatformInfoOrBuilder> getPlatformInfoFieldBuilder() { if (platformInfoBuilder_ == null) { platformInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.testlog.PlatformInfo, org.tensorflow.proto.util.testlog.PlatformInfo.Builder, org.tensorflow.proto.util.testlog.PlatformInfoOrBuilder>( + org.tensorflow.proto.PlatformInfo, org.tensorflow.proto.PlatformInfo.Builder, org.tensorflow.proto.PlatformInfoOrBuilder>( getPlatformInfo(), getParentForChildren(), isClean()); @@ -1293,15 +1294,16 @@ public org.tensorflow.proto.util.testlog.PlatformInfoOrBuilder getPlatformInfoOr return platformInfoBuilder_; } - private org.tensorflow.proto.util.testlog.CPUInfo cpuInfo_; + private org.tensorflow.proto.CPUInfo cpuInfo_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.testlog.CPUInfo, org.tensorflow.proto.util.testlog.CPUInfo.Builder, org.tensorflow.proto.util.testlog.CPUInfoOrBuilder> cpuInfoBuilder_; + org.tensorflow.proto.CPUInfo, org.tensorflow.proto.CPUInfo.Builder, org.tensorflow.proto.CPUInfoOrBuilder> cpuInfoBuilder_; /** *
      * CPU Information.
      * 
* * .tensorflow.CPUInfo cpu_info = 3; + * @return Whether the cpuInfo field is set. */ public boolean hasCpuInfo() { return cpuInfoBuilder_ != null || cpuInfo_ != null; @@ -1312,10 +1314,11 @@ public boolean hasCpuInfo() { * * * .tensorflow.CPUInfo cpu_info = 3; + * @return The cpuInfo. */ - public org.tensorflow.proto.util.testlog.CPUInfo getCpuInfo() { + public org.tensorflow.proto.CPUInfo getCpuInfo() { if (cpuInfoBuilder_ == null) { - return cpuInfo_ == null ? org.tensorflow.proto.util.testlog.CPUInfo.getDefaultInstance() : cpuInfo_; + return cpuInfo_ == null ? org.tensorflow.proto.CPUInfo.getDefaultInstance() : cpuInfo_; } else { return cpuInfoBuilder_.getMessage(); } @@ -1327,7 +1330,7 @@ public org.tensorflow.proto.util.testlog.CPUInfo getCpuInfo() { * * .tensorflow.CPUInfo cpu_info = 3; */ - public Builder setCpuInfo(org.tensorflow.proto.util.testlog.CPUInfo value) { + public Builder setCpuInfo(org.tensorflow.proto.CPUInfo value) { if (cpuInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1348,7 +1351,7 @@ public Builder setCpuInfo(org.tensorflow.proto.util.testlog.CPUInfo value) { * .tensorflow.CPUInfo cpu_info = 3; */ public Builder setCpuInfo( - org.tensorflow.proto.util.testlog.CPUInfo.Builder builderForValue) { + org.tensorflow.proto.CPUInfo.Builder builderForValue) { if (cpuInfoBuilder_ == null) { cpuInfo_ = builderForValue.build(); onChanged(); @@ -1365,11 +1368,11 @@ public Builder setCpuInfo( * * .tensorflow.CPUInfo cpu_info = 3; */ - public Builder mergeCpuInfo(org.tensorflow.proto.util.testlog.CPUInfo value) { + public Builder mergeCpuInfo(org.tensorflow.proto.CPUInfo value) { if (cpuInfoBuilder_ == null) { if (cpuInfo_ != null) { cpuInfo_ = - org.tensorflow.proto.util.testlog.CPUInfo.newBuilder(cpuInfo_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.CPUInfo.newBuilder(cpuInfo_).mergeFrom(value).buildPartial(); } else { cpuInfo_ = value; } @@ -1405,7 +1408,7 @@ public Builder clearCpuInfo() { * * .tensorflow.CPUInfo cpu_info = 3; */ - public org.tensorflow.proto.util.testlog.CPUInfo.Builder getCpuInfoBuilder() { + public org.tensorflow.proto.CPUInfo.Builder getCpuInfoBuilder() { onChanged(); return getCpuInfoFieldBuilder().getBuilder(); @@ -1417,12 +1420,12 @@ public org.tensorflow.proto.util.testlog.CPUInfo.Builder getCpuInfoBuilder() { * * .tensorflow.CPUInfo cpu_info = 3; */ - public org.tensorflow.proto.util.testlog.CPUInfoOrBuilder getCpuInfoOrBuilder() { + public org.tensorflow.proto.CPUInfoOrBuilder getCpuInfoOrBuilder() { if (cpuInfoBuilder_ != null) { return cpuInfoBuilder_.getMessageOrBuilder(); } else { return cpuInfo_ == null ? - org.tensorflow.proto.util.testlog.CPUInfo.getDefaultInstance() : cpuInfo_; + org.tensorflow.proto.CPUInfo.getDefaultInstance() : cpuInfo_; } } /** @@ -1433,11 +1436,11 @@ public org.tensorflow.proto.util.testlog.CPUInfoOrBuilder getCpuInfoOrBuilder() * .tensorflow.CPUInfo cpu_info = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.testlog.CPUInfo, org.tensorflow.proto.util.testlog.CPUInfo.Builder, org.tensorflow.proto.util.testlog.CPUInfoOrBuilder> + org.tensorflow.proto.CPUInfo, org.tensorflow.proto.CPUInfo.Builder, org.tensorflow.proto.CPUInfoOrBuilder> getCpuInfoFieldBuilder() { if (cpuInfoBuilder_ == null) { cpuInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.testlog.CPUInfo, org.tensorflow.proto.util.testlog.CPUInfo.Builder, org.tensorflow.proto.util.testlog.CPUInfoOrBuilder>( + org.tensorflow.proto.CPUInfo, org.tensorflow.proto.CPUInfo.Builder, org.tensorflow.proto.CPUInfoOrBuilder>( getCpuInfo(), getParentForChildren(), isClean()); @@ -1758,17 +1761,17 @@ public com.google.protobuf.Any.Builder addDeviceInfoBuilder( return deviceInfoBuilder_; } - private java.util.List availableDeviceInfo_ = + private java.util.List availableDeviceInfo_ = java.util.Collections.emptyList(); private void ensureAvailableDeviceInfoIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - availableDeviceInfo_ = new java.util.ArrayList(availableDeviceInfo_); + availableDeviceInfo_ = new java.util.ArrayList(availableDeviceInfo_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.util.testlog.AvailableDeviceInfo, org.tensorflow.proto.util.testlog.AvailableDeviceInfo.Builder, org.tensorflow.proto.util.testlog.AvailableDeviceInfoOrBuilder> availableDeviceInfoBuilder_; + org.tensorflow.proto.AvailableDeviceInfo, org.tensorflow.proto.AvailableDeviceInfo.Builder, org.tensorflow.proto.AvailableDeviceInfoOrBuilder> availableDeviceInfoBuilder_; /** *
@@ -1777,7 +1780,7 @@ private void ensureAvailableDeviceInfoIsMutable() {
      *
      * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
      */
-    public java.util.List getAvailableDeviceInfoList() {
+    public java.util.List getAvailableDeviceInfoList() {
       if (availableDeviceInfoBuilder_ == null) {
         return java.util.Collections.unmodifiableList(availableDeviceInfo_);
       } else {
@@ -1805,7 +1808,7 @@ public int getAvailableDeviceInfoCount() {
      *
      * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
      */
-    public org.tensorflow.proto.util.testlog.AvailableDeviceInfo getAvailableDeviceInfo(int index) {
+    public org.tensorflow.proto.AvailableDeviceInfo getAvailableDeviceInfo(int index) {
       if (availableDeviceInfoBuilder_ == null) {
         return availableDeviceInfo_.get(index);
       } else {
@@ -1820,7 +1823,7 @@ public org.tensorflow.proto.util.testlog.AvailableDeviceInfo getAvailableDeviceI
      * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
      */
     public Builder setAvailableDeviceInfo(
-        int index, org.tensorflow.proto.util.testlog.AvailableDeviceInfo value) {
+        int index, org.tensorflow.proto.AvailableDeviceInfo value) {
       if (availableDeviceInfoBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1841,7 +1844,7 @@ public Builder setAvailableDeviceInfo(
      * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
      */
     public Builder setAvailableDeviceInfo(
-        int index, org.tensorflow.proto.util.testlog.AvailableDeviceInfo.Builder builderForValue) {
+        int index, org.tensorflow.proto.AvailableDeviceInfo.Builder builderForValue) {
       if (availableDeviceInfoBuilder_ == null) {
         ensureAvailableDeviceInfoIsMutable();
         availableDeviceInfo_.set(index, builderForValue.build());
@@ -1858,7 +1861,7 @@ public Builder setAvailableDeviceInfo(
      *
      * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
      */
-    public Builder addAvailableDeviceInfo(org.tensorflow.proto.util.testlog.AvailableDeviceInfo value) {
+    public Builder addAvailableDeviceInfo(org.tensorflow.proto.AvailableDeviceInfo value) {
       if (availableDeviceInfoBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1879,7 +1882,7 @@ public Builder addAvailableDeviceInfo(org.tensorflow.proto.util.testlog.Availabl
      * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
      */
     public Builder addAvailableDeviceInfo(
-        int index, org.tensorflow.proto.util.testlog.AvailableDeviceInfo value) {
+        int index, org.tensorflow.proto.AvailableDeviceInfo value) {
       if (availableDeviceInfoBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1900,7 +1903,7 @@ public Builder addAvailableDeviceInfo(
      * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
      */
     public Builder addAvailableDeviceInfo(
-        org.tensorflow.proto.util.testlog.AvailableDeviceInfo.Builder builderForValue) {
+        org.tensorflow.proto.AvailableDeviceInfo.Builder builderForValue) {
       if (availableDeviceInfoBuilder_ == null) {
         ensureAvailableDeviceInfoIsMutable();
         availableDeviceInfo_.add(builderForValue.build());
@@ -1918,7 +1921,7 @@ public Builder addAvailableDeviceInfo(
      * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
      */
     public Builder addAvailableDeviceInfo(
-        int index, org.tensorflow.proto.util.testlog.AvailableDeviceInfo.Builder builderForValue) {
+        int index, org.tensorflow.proto.AvailableDeviceInfo.Builder builderForValue) {
       if (availableDeviceInfoBuilder_ == null) {
         ensureAvailableDeviceInfoIsMutable();
         availableDeviceInfo_.add(index, builderForValue.build());
@@ -1936,7 +1939,7 @@ public Builder addAvailableDeviceInfo(
      * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
      */
     public Builder addAllAvailableDeviceInfo(
-        java.lang.Iterable values) {
+        java.lang.Iterable values) {
       if (availableDeviceInfoBuilder_ == null) {
         ensureAvailableDeviceInfoIsMutable();
         com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -1988,7 +1991,7 @@ public Builder removeAvailableDeviceInfo(int index) {
      *
      * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
      */
-    public org.tensorflow.proto.util.testlog.AvailableDeviceInfo.Builder getAvailableDeviceInfoBuilder(
+    public org.tensorflow.proto.AvailableDeviceInfo.Builder getAvailableDeviceInfoBuilder(
         int index) {
       return getAvailableDeviceInfoFieldBuilder().getBuilder(index);
     }
@@ -1999,7 +2002,7 @@ public org.tensorflow.proto.util.testlog.AvailableDeviceInfo.Builder getAvailabl
      *
      * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
      */
-    public org.tensorflow.proto.util.testlog.AvailableDeviceInfoOrBuilder getAvailableDeviceInfoOrBuilder(
+    public org.tensorflow.proto.AvailableDeviceInfoOrBuilder getAvailableDeviceInfoOrBuilder(
         int index) {
       if (availableDeviceInfoBuilder_ == null) {
         return availableDeviceInfo_.get(index);  } else {
@@ -2013,7 +2016,7 @@ public org.tensorflow.proto.util.testlog.AvailableDeviceInfoOrBuilder getAvailab
      *
      * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
      */
-    public java.util.List 
+    public java.util.List 
          getAvailableDeviceInfoOrBuilderList() {
       if (availableDeviceInfoBuilder_ != null) {
         return availableDeviceInfoBuilder_.getMessageOrBuilderList();
@@ -2028,9 +2031,9 @@ public org.tensorflow.proto.util.testlog.AvailableDeviceInfoOrBuilder getAvailab
      *
      * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
      */
-    public org.tensorflow.proto.util.testlog.AvailableDeviceInfo.Builder addAvailableDeviceInfoBuilder() {
+    public org.tensorflow.proto.AvailableDeviceInfo.Builder addAvailableDeviceInfoBuilder() {
       return getAvailableDeviceInfoFieldBuilder().addBuilder(
-          org.tensorflow.proto.util.testlog.AvailableDeviceInfo.getDefaultInstance());
+          org.tensorflow.proto.AvailableDeviceInfo.getDefaultInstance());
     }
     /**
      * 
@@ -2039,10 +2042,10 @@ public org.tensorflow.proto.util.testlog.AvailableDeviceInfo.Builder addAvailabl
      *
      * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
      */
-    public org.tensorflow.proto.util.testlog.AvailableDeviceInfo.Builder addAvailableDeviceInfoBuilder(
+    public org.tensorflow.proto.AvailableDeviceInfo.Builder addAvailableDeviceInfoBuilder(
         int index) {
       return getAvailableDeviceInfoFieldBuilder().addBuilder(
-          index, org.tensorflow.proto.util.testlog.AvailableDeviceInfo.getDefaultInstance());
+          index, org.tensorflow.proto.AvailableDeviceInfo.getDefaultInstance());
     }
     /**
      * 
@@ -2051,16 +2054,16 @@ public org.tensorflow.proto.util.testlog.AvailableDeviceInfo.Builder addAvailabl
      *
      * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
      */
-    public java.util.List 
+    public java.util.List 
          getAvailableDeviceInfoBuilderList() {
       return getAvailableDeviceInfoFieldBuilder().getBuilderList();
     }
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        org.tensorflow.proto.util.testlog.AvailableDeviceInfo, org.tensorflow.proto.util.testlog.AvailableDeviceInfo.Builder, org.tensorflow.proto.util.testlog.AvailableDeviceInfoOrBuilder> 
+        org.tensorflow.proto.AvailableDeviceInfo, org.tensorflow.proto.AvailableDeviceInfo.Builder, org.tensorflow.proto.AvailableDeviceInfoOrBuilder> 
         getAvailableDeviceInfoFieldBuilder() {
       if (availableDeviceInfoBuilder_ == null) {
         availableDeviceInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            org.tensorflow.proto.util.testlog.AvailableDeviceInfo, org.tensorflow.proto.util.testlog.AvailableDeviceInfo.Builder, org.tensorflow.proto.util.testlog.AvailableDeviceInfoOrBuilder>(
+            org.tensorflow.proto.AvailableDeviceInfo, org.tensorflow.proto.AvailableDeviceInfo.Builder, org.tensorflow.proto.AvailableDeviceInfoOrBuilder>(
                 availableDeviceInfo_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -2070,21 +2073,23 @@ public org.tensorflow.proto.util.testlog.AvailableDeviceInfo.Builder addAvailabl
       return availableDeviceInfoBuilder_;
     }
 
-    private org.tensorflow.proto.util.testlog.MemoryInfo memoryInfo_;
+    private org.tensorflow.proto.MemoryInfo memoryInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        org.tensorflow.proto.util.testlog.MemoryInfo, org.tensorflow.proto.util.testlog.MemoryInfo.Builder, org.tensorflow.proto.util.testlog.MemoryInfoOrBuilder> memoryInfoBuilder_;
+        org.tensorflow.proto.MemoryInfo, org.tensorflow.proto.MemoryInfo.Builder, org.tensorflow.proto.MemoryInfoOrBuilder> memoryInfoBuilder_;
     /**
      * .tensorflow.MemoryInfo memory_info = 6;
+     * @return Whether the memoryInfo field is set.
      */
     public boolean hasMemoryInfo() {
       return memoryInfoBuilder_ != null || memoryInfo_ != null;
     }
     /**
      * .tensorflow.MemoryInfo memory_info = 6;
+     * @return The memoryInfo.
      */
-    public org.tensorflow.proto.util.testlog.MemoryInfo getMemoryInfo() {
+    public org.tensorflow.proto.MemoryInfo getMemoryInfo() {
       if (memoryInfoBuilder_ == null) {
-        return memoryInfo_ == null ? org.tensorflow.proto.util.testlog.MemoryInfo.getDefaultInstance() : memoryInfo_;
+        return memoryInfo_ == null ? org.tensorflow.proto.MemoryInfo.getDefaultInstance() : memoryInfo_;
       } else {
         return memoryInfoBuilder_.getMessage();
       }
@@ -2092,7 +2097,7 @@ public org.tensorflow.proto.util.testlog.MemoryInfo getMemoryInfo() {
     /**
      * .tensorflow.MemoryInfo memory_info = 6;
      */
-    public Builder setMemoryInfo(org.tensorflow.proto.util.testlog.MemoryInfo value) {
+    public Builder setMemoryInfo(org.tensorflow.proto.MemoryInfo value) {
       if (memoryInfoBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2109,7 +2114,7 @@ public Builder setMemoryInfo(org.tensorflow.proto.util.testlog.MemoryInfo value)
      * .tensorflow.MemoryInfo memory_info = 6;
      */
     public Builder setMemoryInfo(
-        org.tensorflow.proto.util.testlog.MemoryInfo.Builder builderForValue) {
+        org.tensorflow.proto.MemoryInfo.Builder builderForValue) {
       if (memoryInfoBuilder_ == null) {
         memoryInfo_ = builderForValue.build();
         onChanged();
@@ -2122,11 +2127,11 @@ public Builder setMemoryInfo(
     /**
      * .tensorflow.MemoryInfo memory_info = 6;
      */
-    public Builder mergeMemoryInfo(org.tensorflow.proto.util.testlog.MemoryInfo value) {
+    public Builder mergeMemoryInfo(org.tensorflow.proto.MemoryInfo value) {
       if (memoryInfoBuilder_ == null) {
         if (memoryInfo_ != null) {
           memoryInfo_ =
-            org.tensorflow.proto.util.testlog.MemoryInfo.newBuilder(memoryInfo_).mergeFrom(value).buildPartial();
+            org.tensorflow.proto.MemoryInfo.newBuilder(memoryInfo_).mergeFrom(value).buildPartial();
         } else {
           memoryInfo_ = value;
         }
@@ -2154,7 +2159,7 @@ public Builder clearMemoryInfo() {
     /**
      * .tensorflow.MemoryInfo memory_info = 6;
      */
-    public org.tensorflow.proto.util.testlog.MemoryInfo.Builder getMemoryInfoBuilder() {
+    public org.tensorflow.proto.MemoryInfo.Builder getMemoryInfoBuilder() {
       
       onChanged();
       return getMemoryInfoFieldBuilder().getBuilder();
@@ -2162,23 +2167,23 @@ public org.tensorflow.proto.util.testlog.MemoryInfo.Builder getMemoryInfoBuilder
     /**
      * .tensorflow.MemoryInfo memory_info = 6;
      */
-    public org.tensorflow.proto.util.testlog.MemoryInfoOrBuilder getMemoryInfoOrBuilder() {
+    public org.tensorflow.proto.MemoryInfoOrBuilder getMemoryInfoOrBuilder() {
       if (memoryInfoBuilder_ != null) {
         return memoryInfoBuilder_.getMessageOrBuilder();
       } else {
         return memoryInfo_ == null ?
-            org.tensorflow.proto.util.testlog.MemoryInfo.getDefaultInstance() : memoryInfo_;
+            org.tensorflow.proto.MemoryInfo.getDefaultInstance() : memoryInfo_;
       }
     }
     /**
      * .tensorflow.MemoryInfo memory_info = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        org.tensorflow.proto.util.testlog.MemoryInfo, org.tensorflow.proto.util.testlog.MemoryInfo.Builder, org.tensorflow.proto.util.testlog.MemoryInfoOrBuilder> 
+        org.tensorflow.proto.MemoryInfo, org.tensorflow.proto.MemoryInfo.Builder, org.tensorflow.proto.MemoryInfoOrBuilder> 
         getMemoryInfoFieldBuilder() {
       if (memoryInfoBuilder_ == null) {
         memoryInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            org.tensorflow.proto.util.testlog.MemoryInfo, org.tensorflow.proto.util.testlog.MemoryInfo.Builder, org.tensorflow.proto.util.testlog.MemoryInfoOrBuilder>(
+            org.tensorflow.proto.MemoryInfo, org.tensorflow.proto.MemoryInfo.Builder, org.tensorflow.proto.MemoryInfoOrBuilder>(
                 getMemoryInfo(),
                 getParentForChildren(),
                 isClean());
@@ -2203,12 +2208,12 @@ public final Builder mergeUnknownFields(
   }
 
   // @@protoc_insertion_point(class_scope:tensorflow.MachineConfiguration)
-  private static final org.tensorflow.proto.util.testlog.MachineConfiguration DEFAULT_INSTANCE;
+  private static final org.tensorflow.proto.MachineConfiguration DEFAULT_INSTANCE;
   static {
-    DEFAULT_INSTANCE = new org.tensorflow.proto.util.testlog.MachineConfiguration();
+    DEFAULT_INSTANCE = new org.tensorflow.proto.MachineConfiguration();
   }
 
-  public static org.tensorflow.proto.util.testlog.MachineConfiguration getDefaultInstance() {
+  public static org.tensorflow.proto.MachineConfiguration getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
@@ -2219,7 +2224,18 @@ public MachineConfiguration parsePartialFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
-      return new MachineConfiguration(input, extensionRegistry);
+      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();
     }
   };
 
@@ -2233,7 +2249,7 @@ public com.google.protobuf.Parser getParserForType() {
   }
 
   @java.lang.Override
-  public org.tensorflow.proto.util.testlog.MachineConfiguration getDefaultInstanceForType() {
+  public org.tensorflow.proto.MachineConfiguration getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/MachineConfigurationOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MachineConfigurationOrBuilder.java
similarity index 79%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/MachineConfigurationOrBuilder.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MachineConfigurationOrBuilder.java
index 8b0f5f6f884..f7db37815cc 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/MachineConfigurationOrBuilder.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MachineConfigurationOrBuilder.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: tensorflow/core/util/test_log.proto
+// source: tensorflow/tsl/protobuf/test_log.proto
 
-package org.tensorflow.proto.util.testlog;
+package org.tensorflow.proto;
 
 public interface MachineConfigurationOrBuilder extends
     // @@protoc_insertion_point(interface_extends:tensorflow.MachineConfiguration)
@@ -13,6 +13,7 @@ public interface MachineConfigurationOrBuilder extends
    * 
* * string hostname = 1; + * @return The hostname. */ java.lang.String getHostname(); /** @@ -21,6 +22,7 @@ public interface MachineConfigurationOrBuilder extends *
* * string hostname = 1; + * @return The bytes for hostname. */ com.google.protobuf.ByteString getHostnameBytes(); @@ -31,6 +33,7 @@ public interface MachineConfigurationOrBuilder extends *
* * string serial_identifier = 7; + * @return The serialIdentifier. */ java.lang.String getSerialIdentifier(); /** @@ -39,6 +42,7 @@ public interface MachineConfigurationOrBuilder extends * * * string serial_identifier = 7; + * @return The bytes for serialIdentifier. */ com.google.protobuf.ByteString getSerialIdentifierBytes(); @@ -49,6 +53,7 @@ public interface MachineConfigurationOrBuilder extends * * * .tensorflow.PlatformInfo platform_info = 2; + * @return Whether the platformInfo field is set. */ boolean hasPlatformInfo(); /** @@ -57,8 +62,9 @@ public interface MachineConfigurationOrBuilder extends * * * .tensorflow.PlatformInfo platform_info = 2; + * @return The platformInfo. */ - org.tensorflow.proto.util.testlog.PlatformInfo getPlatformInfo(); + org.tensorflow.proto.PlatformInfo getPlatformInfo(); /** *
    * Additional platform information.
@@ -66,7 +72,7 @@ public interface MachineConfigurationOrBuilder extends
    *
    * .tensorflow.PlatformInfo platform_info = 2;
    */
-  org.tensorflow.proto.util.testlog.PlatformInfoOrBuilder getPlatformInfoOrBuilder();
+  org.tensorflow.proto.PlatformInfoOrBuilder getPlatformInfoOrBuilder();
 
   /**
    * 
@@ -74,6 +80,7 @@ public interface MachineConfigurationOrBuilder extends
    * 
* * .tensorflow.CPUInfo cpu_info = 3; + * @return Whether the cpuInfo field is set. */ boolean hasCpuInfo(); /** @@ -82,8 +89,9 @@ public interface MachineConfigurationOrBuilder extends *
* * .tensorflow.CPUInfo cpu_info = 3; + * @return The cpuInfo. */ - org.tensorflow.proto.util.testlog.CPUInfo getCpuInfo(); + org.tensorflow.proto.CPUInfo getCpuInfo(); /** *
    * CPU Information.
@@ -91,7 +99,7 @@ public interface MachineConfigurationOrBuilder extends
    *
    * .tensorflow.CPUInfo cpu_info = 3;
    */
-  org.tensorflow.proto.util.testlog.CPUInfoOrBuilder getCpuInfoOrBuilder();
+  org.tensorflow.proto.CPUInfoOrBuilder getCpuInfoOrBuilder();
 
   /**
    * 
@@ -144,7 +152,7 @@ com.google.protobuf.AnyOrBuilder getDeviceInfoOrBuilder(
    *
    * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
    */
-  java.util.List 
+  java.util.List 
       getAvailableDeviceInfoList();
   /**
    * 
@@ -153,7 +161,7 @@ com.google.protobuf.AnyOrBuilder getDeviceInfoOrBuilder(
    *
    * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
    */
-  org.tensorflow.proto.util.testlog.AvailableDeviceInfo getAvailableDeviceInfo(int index);
+  org.tensorflow.proto.AvailableDeviceInfo getAvailableDeviceInfo(int index);
   /**
    * 
    * Devices accessible to the test (e.g. as given by list_local_devices).
@@ -169,7 +177,7 @@ com.google.protobuf.AnyOrBuilder getDeviceInfoOrBuilder(
    *
    * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
    */
-  java.util.List 
+  java.util.List 
       getAvailableDeviceInfoOrBuilderList();
   /**
    * 
@@ -178,19 +186,21 @@ com.google.protobuf.AnyOrBuilder getDeviceInfoOrBuilder(
    *
    * repeated .tensorflow.AvailableDeviceInfo available_device_info = 5;
    */
-  org.tensorflow.proto.util.testlog.AvailableDeviceInfoOrBuilder getAvailableDeviceInfoOrBuilder(
+  org.tensorflow.proto.AvailableDeviceInfoOrBuilder getAvailableDeviceInfoOrBuilder(
       int index);
 
   /**
    * .tensorflow.MemoryInfo memory_info = 6;
+   * @return Whether the memoryInfo field is set.
    */
   boolean hasMemoryInfo();
   /**
    * .tensorflow.MemoryInfo memory_info = 6;
+   * @return The memoryInfo.
    */
-  org.tensorflow.proto.util.testlog.MemoryInfo getMemoryInfo();
+  org.tensorflow.proto.MemoryInfo getMemoryInfo();
   /**
    * .tensorflow.MemoryInfo memory_info = 6;
    */
-  org.tensorflow.proto.util.testlog.MemoryInfoOrBuilder getMemoryInfoOrBuilder();
+  org.tensorflow.proto.MemoryInfoOrBuilder getMemoryInfoOrBuilder();
 }
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemmappedFileSystem.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemmappedFileSystem.java
new file mode 100644
index 00000000000..49ea2902bf0
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemmappedFileSystem.java
@@ -0,0 +1,1545 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/util/memmapped_file_system.proto
+
+package org.tensorflow.proto;
+
+public final class MemmappedFileSystem {
+  private MemmappedFileSystem() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  public interface MemmappedFileSystemDirectoryElementOrBuilder extends
+      // @@protoc_insertion_point(interface_extends:tensorflow.MemmappedFileSystemDirectoryElement)
+      com.google.protobuf.MessageOrBuilder {
+
+    /**
+     * uint64 offset = 1;
+     * @return The offset.
+     */
+    long getOffset();
+
+    /**
+     * string name = 2;
+     * @return The name.
+     */
+    java.lang.String getName();
+    /**
+     * string name = 2;
+     * @return The bytes for name.
+     */
+    com.google.protobuf.ByteString
+        getNameBytes();
+
+    /**
+     * uint64 length = 3;
+     * @return The length.
+     */
+    long getLength();
+  }
+  /**
+   * 
+   * A message that describes one region of memmapped file.
+   * 
+ * + * Protobuf type {@code tensorflow.MemmappedFileSystemDirectoryElement} + */ + public static final class MemmappedFileSystemDirectoryElement extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.MemmappedFileSystemDirectoryElement) + MemmappedFileSystemDirectoryElementOrBuilder { + private static final long serialVersionUID = 0L; + // Use MemmappedFileSystemDirectoryElement.newBuilder() to construct. + private MemmappedFileSystemDirectoryElement(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MemmappedFileSystemDirectoryElement() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MemmappedFileSystemDirectoryElement(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MemmappedFileSystem.internal_static_tensorflow_MemmappedFileSystemDirectoryElement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MemmappedFileSystem.internal_static_tensorflow_MemmappedFileSystemDirectoryElement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement.class, org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement.Builder.class); + } + + public static final int OFFSET_FIELD_NUMBER = 1; + private long offset_; + /** + * uint64 offset = 1; + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + * string name = 2; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 2; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LENGTH_FIELD_NUMBER = 3; + private long length_; + /** + * uint64 length = 3; + * @return The length. + */ + @java.lang.Override + public long getLength() { + return length_; + } + + 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 (offset_ != 0L) { + output.writeUInt64(1, offset_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (length_ != 0L) { + output.writeUInt64(3, length_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (offset_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, offset_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (length_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, length_); + } + 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 org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement)) { + return super.equals(obj); + } + org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement other = (org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement) obj; + + if (getOffset() + != other.getOffset()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getLength() + != other.getLength()) 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) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOffset()); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + LENGTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLength()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement 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 org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement 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 org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement 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(org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement 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; + } + /** + *
+     * A message that describes one region of memmapped file.
+     * 
+ * + * Protobuf type {@code tensorflow.MemmappedFileSystemDirectoryElement} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.MemmappedFileSystemDirectoryElement) + org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElementOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MemmappedFileSystem.internal_static_tensorflow_MemmappedFileSystemDirectoryElement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MemmappedFileSystem.internal_static_tensorflow_MemmappedFileSystemDirectoryElement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement.class, org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement.Builder.class); + } + + // Construct using org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + offset_ = 0L; + + name_ = ""; + + length_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.MemmappedFileSystem.internal_static_tensorflow_MemmappedFileSystemDirectoryElement_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement getDefaultInstanceForType() { + return org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement build() { + org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement buildPartial() { + org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement result = new org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement(this); + result.offset_ = offset_; + result.name_ = name_; + result.length_ = length_; + 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 org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement) { + return mergeFrom((org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement other) { + if (other == org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement.getDefaultInstance()) return this; + if (other.getOffset() != 0L) { + setOffset(other.getOffset()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getLength() != 0L) { + setLength(other.getLength()); + } + 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: { + offset_ = input.readUInt64(); + + break; + } // case 8 + case 18: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + length_ = input.readUInt64(); + + break; + } // case 24 + 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 long offset_ ; + /** + * uint64 offset = 1; + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + /** + * uint64 offset = 1; + * @param value The offset to set. + * @return This builder for chaining. + */ + public Builder setOffset(long value) { + + offset_ = value; + onChanged(); + return this; + } + /** + * uint64 offset = 1; + * @return This builder for chaining. + */ + public Builder clearOffset() { + + offset_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 2; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 2; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 2; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 2; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 2; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private long length_ ; + /** + * uint64 length = 3; + * @return The length. + */ + @java.lang.Override + public long getLength() { + return length_; + } + /** + * uint64 length = 3; + * @param value The length to set. + * @return This builder for chaining. + */ + public Builder setLength(long value) { + + length_ = value; + onChanged(); + return this; + } + /** + * uint64 length = 3; + * @return This builder for chaining. + */ + public Builder clearLength() { + + length_ = 0L; + 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:tensorflow.MemmappedFileSystemDirectoryElement) + } + + // @@protoc_insertion_point(class_scope:tensorflow.MemmappedFileSystemDirectoryElement) + private static final org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement(); + } + + public static org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemmappedFileSystemDirectoryElement 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 org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MemmappedFileSystemDirectoryOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.MemmappedFileSystemDirectory) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + java.util.List + getElementList(); + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement getElement(int index); + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + int getElementCount(); + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + java.util.List + getElementOrBuilderList(); + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElementOrBuilder getElementOrBuilder( + int index); + } + /** + *
+   * A directory of regions in a memmapped file.
+   * 
+ * + * Protobuf type {@code tensorflow.MemmappedFileSystemDirectory} + */ + public static final class MemmappedFileSystemDirectory extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.MemmappedFileSystemDirectory) + MemmappedFileSystemDirectoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use MemmappedFileSystemDirectory.newBuilder() to construct. + private MemmappedFileSystemDirectory(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MemmappedFileSystemDirectory() { + element_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MemmappedFileSystemDirectory(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MemmappedFileSystem.internal_static_tensorflow_MemmappedFileSystemDirectory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MemmappedFileSystem.internal_static_tensorflow_MemmappedFileSystemDirectory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory.class, org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory.Builder.class); + } + + public static final int ELEMENT_FIELD_NUMBER = 1; + private java.util.List element_; + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + @java.lang.Override + public java.util.List getElementList() { + return element_; + } + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + @java.lang.Override + public java.util.List + getElementOrBuilderList() { + return element_; + } + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + @java.lang.Override + public int getElementCount() { + return element_.size(); + } + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + @java.lang.Override + public org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement getElement(int index) { + return element_.get(index); + } + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + @java.lang.Override + public org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElementOrBuilder getElementOrBuilder( + int index) { + return element_.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 < element_.size(); i++) { + output.writeMessage(1, element_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < element_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, element_.get(i)); + } + 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 org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory)) { + return super.equals(obj); + } + org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory other = (org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory) obj; + + if (!getElementList() + .equals(other.getElementList())) 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 (getElementCount() > 0) { + hash = (37 * hash) + ELEMENT_FIELD_NUMBER; + hash = (53 * hash) + getElementList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory 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 org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory 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 org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory 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(org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory 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; + } + /** + *
+     * A directory of regions in a memmapped file.
+     * 
+ * + * Protobuf type {@code tensorflow.MemmappedFileSystemDirectory} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.MemmappedFileSystemDirectory) + org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MemmappedFileSystem.internal_static_tensorflow_MemmappedFileSystemDirectory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MemmappedFileSystem.internal_static_tensorflow_MemmappedFileSystemDirectory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory.class, org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory.Builder.class); + } + + // Construct using org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (elementBuilder_ == null) { + element_ = java.util.Collections.emptyList(); + } else { + element_ = null; + elementBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.MemmappedFileSystem.internal_static_tensorflow_MemmappedFileSystemDirectory_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory getDefaultInstanceForType() { + return org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory build() { + org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory buildPartial() { + org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory result = new org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory(this); + int from_bitField0_ = bitField0_; + if (elementBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + element_ = java.util.Collections.unmodifiableList(element_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.element_ = element_; + } else { + result.element_ = elementBuilder_.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 org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory) { + return mergeFrom((org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory other) { + if (other == org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory.getDefaultInstance()) return this; + if (elementBuilder_ == null) { + if (!other.element_.isEmpty()) { + if (element_.isEmpty()) { + element_ = other.element_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureElementIsMutable(); + element_.addAll(other.element_); + } + onChanged(); + } + } else { + if (!other.element_.isEmpty()) { + if (elementBuilder_.isEmpty()) { + elementBuilder_.dispose(); + elementBuilder_ = null; + element_ = other.element_; + bitField0_ = (bitField0_ & ~0x00000001); + elementBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getElementFieldBuilder() : null; + } else { + elementBuilder_.addAllMessages(other.element_); + } + } + } + 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: { + org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement m = + input.readMessage( + org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement.parser(), + extensionRegistry); + if (elementBuilder_ == null) { + ensureElementIsMutable(); + element_.add(m); + } else { + elementBuilder_.addMessage(m); + } + 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.util.List element_ = + java.util.Collections.emptyList(); + private void ensureElementIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + element_ = new java.util.ArrayList(element_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement, org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement.Builder, org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElementOrBuilder> elementBuilder_; + + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + public java.util.List getElementList() { + if (elementBuilder_ == null) { + return java.util.Collections.unmodifiableList(element_); + } else { + return elementBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + public int getElementCount() { + if (elementBuilder_ == null) { + return element_.size(); + } else { + return elementBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + public org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement getElement(int index) { + if (elementBuilder_ == null) { + return element_.get(index); + } else { + return elementBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + public Builder setElement( + int index, org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement value) { + if (elementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureElementIsMutable(); + element_.set(index, value); + onChanged(); + } else { + elementBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + public Builder setElement( + int index, org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement.Builder builderForValue) { + if (elementBuilder_ == null) { + ensureElementIsMutable(); + element_.set(index, builderForValue.build()); + onChanged(); + } else { + elementBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + public Builder addElement(org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement value) { + if (elementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureElementIsMutable(); + element_.add(value); + onChanged(); + } else { + elementBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + public Builder addElement( + int index, org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement value) { + if (elementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureElementIsMutable(); + element_.add(index, value); + onChanged(); + } else { + elementBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + public Builder addElement( + org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement.Builder builderForValue) { + if (elementBuilder_ == null) { + ensureElementIsMutable(); + element_.add(builderForValue.build()); + onChanged(); + } else { + elementBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + public Builder addElement( + int index, org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement.Builder builderForValue) { + if (elementBuilder_ == null) { + ensureElementIsMutable(); + element_.add(index, builderForValue.build()); + onChanged(); + } else { + elementBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + public Builder addAllElement( + java.lang.Iterable values) { + if (elementBuilder_ == null) { + ensureElementIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, element_); + onChanged(); + } else { + elementBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + public Builder clearElement() { + if (elementBuilder_ == null) { + element_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + elementBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + public Builder removeElement(int index) { + if (elementBuilder_ == null) { + ensureElementIsMutable(); + element_.remove(index); + onChanged(); + } else { + elementBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + public org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement.Builder getElementBuilder( + int index) { + return getElementFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + public org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElementOrBuilder getElementOrBuilder( + int index) { + if (elementBuilder_ == null) { + return element_.get(index); } else { + return elementBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + public java.util.List + getElementOrBuilderList() { + if (elementBuilder_ != null) { + return elementBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(element_); + } + } + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + public org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement.Builder addElementBuilder() { + return getElementFieldBuilder().addBuilder( + org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement.getDefaultInstance()); + } + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + public org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement.Builder addElementBuilder( + int index) { + return getElementFieldBuilder().addBuilder( + index, org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement.getDefaultInstance()); + } + /** + * repeated .tensorflow.MemmappedFileSystemDirectoryElement element = 1; + */ + public java.util.List + getElementBuilderList() { + return getElementFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement, org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement.Builder, org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElementOrBuilder> + getElementFieldBuilder() { + if (elementBuilder_ == null) { + elementBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement, org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElement.Builder, org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectoryElementOrBuilder>( + element_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + element_ = null; + } + return elementBuilder_; + } + @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:tensorflow.MemmappedFileSystemDirectory) + } + + // @@protoc_insertion_point(class_scope:tensorflow.MemmappedFileSystemDirectory) + private static final org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory(); + } + + public static org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemmappedFileSystemDirectory 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 org.tensorflow.proto.MemmappedFileSystem.MemmappedFileSystemDirectory getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_MemmappedFileSystemDirectoryElement_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_MemmappedFileSystemDirectoryElement_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_MemmappedFileSystemDirectory_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_MemmappedFileSystemDirectory_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0tensorflow/core/util/memmapped_file_sy" + + "stem.proto\022\ntensorflow\"S\n#MemmappedFileS" + + "ystemDirectoryElement\022\016\n\006offset\030\001 \001(\004\022\014\n" + + "\004name\030\002 \001(\t\022\016\n\006length\030\003 \001(\004\"`\n\034Memmapped" + + "FileSystemDirectory\022@\n\007element\030\001 \003(\0132/.t" + + "ensorflow.MemmappedFileSystemDirectoryEl" + + "ementB\031\n\024org.tensorflow.proto\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_tensorflow_MemmappedFileSystemDirectoryElement_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_MemmappedFileSystemDirectoryElement_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_MemmappedFileSystemDirectoryElement_descriptor, + new java.lang.String[] { "Offset", "Name", "Length", }); + internal_static_tensorflow_MemmappedFileSystemDirectory_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_tensorflow_MemmappedFileSystemDirectory_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_MemmappedFileSystemDirectory_descriptor, + new java.lang.String[] { "Element", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryInfo.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryInfo.java new file mode 100644 index 00000000000..711612aad23 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryInfo.java @@ -0,0 +1,563 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/tsl/protobuf/test_log.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.MemoryInfo} + */ +public final class MemoryInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.MemoryInfo) + MemoryInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use MemoryInfo.newBuilder() to construct. + private MemoryInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MemoryInfo() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MemoryInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_MemoryInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_MemoryInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.MemoryInfo.class, org.tensorflow.proto.MemoryInfo.Builder.class); + } + + public static final int TOTAL_FIELD_NUMBER = 1; + private long total_; + /** + *
+   * Total virtual memory in bytes
+   * 
+ * + * int64 total = 1; + * @return The total. + */ + @java.lang.Override + public long getTotal() { + return total_; + } + + public static final int AVAILABLE_FIELD_NUMBER = 2; + private long available_; + /** + *
+   * Immediately available memory in bytes
+   * 
+ * + * int64 available = 2; + * @return The available. + */ + @java.lang.Override + public long getAvailable() { + return available_; + } + + 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 (total_ != 0L) { + output.writeInt64(1, total_); + } + if (available_ != 0L) { + output.writeInt64(2, available_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (total_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, total_); + } + if (available_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, available_); + } + 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 org.tensorflow.proto.MemoryInfo)) { + return super.equals(obj); + } + org.tensorflow.proto.MemoryInfo other = (org.tensorflow.proto.MemoryInfo) obj; + + if (getTotal() + != other.getTotal()) return false; + if (getAvailable() + != other.getAvailable()) 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) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotal()); + hash = (37 * hash) + AVAILABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAvailable()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.MemoryInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemoryInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemoryInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemoryInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemoryInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemoryInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemoryInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemoryInfo 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 org.tensorflow.proto.MemoryInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemoryInfo 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 org.tensorflow.proto.MemoryInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemoryInfo 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(org.tensorflow.proto.MemoryInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.MemoryInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.MemoryInfo) + org.tensorflow.proto.MemoryInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_MemoryInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_MemoryInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.MemoryInfo.class, org.tensorflow.proto.MemoryInfo.Builder.class); + } + + // Construct using org.tensorflow.proto.MemoryInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + total_ = 0L; + + available_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_MemoryInfo_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.MemoryInfo getDefaultInstanceForType() { + return org.tensorflow.proto.MemoryInfo.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.MemoryInfo build() { + org.tensorflow.proto.MemoryInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.MemoryInfo buildPartial() { + org.tensorflow.proto.MemoryInfo result = new org.tensorflow.proto.MemoryInfo(this); + result.total_ = total_; + result.available_ = available_; + 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 org.tensorflow.proto.MemoryInfo) { + return mergeFrom((org.tensorflow.proto.MemoryInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.MemoryInfo other) { + if (other == org.tensorflow.proto.MemoryInfo.getDefaultInstance()) return this; + if (other.getTotal() != 0L) { + setTotal(other.getTotal()); + } + if (other.getAvailable() != 0L) { + setAvailable(other.getAvailable()); + } + 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: { + total_ = input.readInt64(); + + break; + } // case 8 + case 16: { + available_ = input.readInt64(); + + break; + } // case 16 + 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 long total_ ; + /** + *
+     * Total virtual memory in bytes
+     * 
+ * + * int64 total = 1; + * @return The total. + */ + @java.lang.Override + public long getTotal() { + return total_; + } + /** + *
+     * Total virtual memory in bytes
+     * 
+ * + * int64 total = 1; + * @param value The total to set. + * @return This builder for chaining. + */ + public Builder setTotal(long value) { + + total_ = value; + onChanged(); + return this; + } + /** + *
+     * Total virtual memory in bytes
+     * 
+ * + * int64 total = 1; + * @return This builder for chaining. + */ + public Builder clearTotal() { + + total_ = 0L; + onChanged(); + return this; + } + + private long available_ ; + /** + *
+     * Immediately available memory in bytes
+     * 
+ * + * int64 available = 2; + * @return The available. + */ + @java.lang.Override + public long getAvailable() { + return available_; + } + /** + *
+     * Immediately available memory in bytes
+     * 
+ * + * int64 available = 2; + * @param value The available to set. + * @return This builder for chaining. + */ + public Builder setAvailable(long value) { + + available_ = value; + onChanged(); + return this; + } + /** + *
+     * Immediately available memory in bytes
+     * 
+ * + * int64 available = 2; + * @return This builder for chaining. + */ + public Builder clearAvailable() { + + available_ = 0L; + 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:tensorflow.MemoryInfo) + } + + // @@protoc_insertion_point(class_scope:tensorflow.MemoryInfo) + private static final org.tensorflow.proto.MemoryInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.MemoryInfo(); + } + + public static org.tensorflow.proto.MemoryInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemoryInfo 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 org.tensorflow.proto.MemoryInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/MemoryInfoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryInfoOrBuilder.java similarity index 79% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/MemoryInfoOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryInfoOrBuilder.java index 1700a289e4f..1a06235da91 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/MemoryInfoOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryInfoOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/util/test_log.proto +// source: tensorflow/tsl/protobuf/test_log.proto -package org.tensorflow.proto.util.testlog; +package org.tensorflow.proto; public interface MemoryInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.MemoryInfo) @@ -13,6 +13,7 @@ public interface MemoryInfoOrBuilder extends *
* * int64 total = 1; + * @return The total. */ long getTotal(); @@ -22,6 +23,7 @@ public interface MemoryInfoOrBuilder extends *
* * int64 available = 2; + * @return The available. */ long getAvailable(); } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogRawAllocation.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogRawAllocation.java similarity index 75% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogRawAllocation.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogRawAllocation.java index db40403eba4..e4e9ac919d4 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogRawAllocation.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogRawAllocation.java @@ -1,12 +1,12 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/log_memory.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; /** * Protobuf type {@code tensorflow.MemoryLogRawAllocation} */ -public final class MemoryLogRawAllocation extends +public final class MemoryLogRawAllocation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.MemoryLogRawAllocation) MemoryLogRawAllocationOrBuilder { @@ -32,86 +32,17 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private MemoryLogRawAllocation( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - stepId_ = input.readInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - operation_ = s; - break; - } - case 24: { - - numBytes_ = input.readInt64(); - break; - } - case 32: { - - ptr_ = input.readUInt64(); - break; - } - case 40: { - - allocationId_ = input.readInt64(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - allocatorName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogRawAllocation_descriptor; + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogRawAllocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogRawAllocation_fieldAccessorTable + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogRawAllocation_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.MemoryLogRawAllocation.class, org.tensorflow.proto.framework.MemoryLogRawAllocation.Builder.class); + org.tensorflow.proto.MemoryLogRawAllocation.class, org.tensorflow.proto.MemoryLogRawAllocation.Builder.class); } public static final int STEP_ID_FIELD_NUMBER = 1; @@ -122,7 +53,9 @@ private MemoryLogRawAllocation( *
* * int64 step_id = 1; + * @return The stepId. */ + @java.lang.Override public long getStepId() { return stepId_; } @@ -135,7 +68,9 @@ public long getStepId() { *
* * string operation = 2; + * @return The operation. */ + @java.lang.Override public java.lang.String getOperation() { java.lang.Object ref = operation_; if (ref instanceof java.lang.String) { @@ -154,7 +89,9 @@ public java.lang.String getOperation() { *
* * string operation = 2; + * @return The bytes for operation. */ + @java.lang.Override public com.google.protobuf.ByteString getOperationBytes() { java.lang.Object ref = operation_; @@ -177,7 +114,9 @@ public java.lang.String getOperation() { * * * int64 num_bytes = 3; + * @return The numBytes. */ + @java.lang.Override public long getNumBytes() { return numBytes_; } @@ -190,7 +129,9 @@ public long getNumBytes() { * * * uint64 ptr = 4; + * @return The ptr. */ + @java.lang.Override public long getPtr() { return ptr_; } @@ -204,7 +145,9 @@ public long getPtr() { * * * int64 allocation_id = 5; + * @return The allocationId. */ + @java.lang.Override public long getAllocationId() { return allocationId_; } @@ -217,7 +160,9 @@ public long getAllocationId() { * * * string allocator_name = 6; + * @return The allocatorName. */ + @java.lang.Override public java.lang.String getAllocatorName() { java.lang.Object ref = allocatorName_; if (ref instanceof java.lang.String) { @@ -236,7 +181,9 @@ public java.lang.String getAllocatorName() { * * * string allocator_name = 6; + * @return The bytes for allocatorName. */ + @java.lang.Override public com.google.protobuf.ByteString getAllocatorNameBytes() { java.lang.Object ref = allocatorName_; @@ -268,7 +215,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (stepId_ != 0L) { output.writeInt64(1, stepId_); } - if (!getOperationBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operation_); } if (numBytes_ != 0L) { @@ -280,10 +227,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (allocationId_ != 0L) { output.writeInt64(5, allocationId_); } - if (!getAllocatorNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allocatorName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, allocatorName_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -296,7 +243,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, stepId_); } - if (!getOperationBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operation_); } if (numBytes_ != 0L) { @@ -311,10 +258,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, allocationId_); } - if (!getAllocatorNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allocatorName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, allocatorName_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -324,10 +271,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.MemoryLogRawAllocation)) { + if (!(obj instanceof org.tensorflow.proto.MemoryLogRawAllocation)) { return super.equals(obj); } - org.tensorflow.proto.framework.MemoryLogRawAllocation other = (org.tensorflow.proto.framework.MemoryLogRawAllocation) obj; + org.tensorflow.proto.MemoryLogRawAllocation other = (org.tensorflow.proto.MemoryLogRawAllocation) obj; if (getStepId() != other.getStepId()) return false; @@ -341,7 +288,7 @@ public boolean equals(final java.lang.Object obj) { != other.getAllocationId()) return false; if (!getAllocatorName() .equals(other.getAllocatorName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -368,74 +315,74 @@ public int hashCode() { getAllocationId()); hash = (37 * hash) + ALLOCATOR_NAME_FIELD_NUMBER; hash = (53 * hash) + getAllocatorName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.MemoryLogRawAllocation parseFrom( + public static org.tensorflow.proto.MemoryLogRawAllocation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.MemoryLogRawAllocation parseFrom( + public static org.tensorflow.proto.MemoryLogRawAllocation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.MemoryLogRawAllocation parseFrom( + public static org.tensorflow.proto.MemoryLogRawAllocation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.MemoryLogRawAllocation parseFrom( + public static org.tensorflow.proto.MemoryLogRawAllocation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.MemoryLogRawAllocation parseFrom(byte[] data) + public static org.tensorflow.proto.MemoryLogRawAllocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.MemoryLogRawAllocation parseFrom( + public static org.tensorflow.proto.MemoryLogRawAllocation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.MemoryLogRawAllocation parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.MemoryLogRawAllocation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.MemoryLogRawAllocation parseFrom( + public static org.tensorflow.proto.MemoryLogRawAllocation 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 org.tensorflow.proto.framework.MemoryLogRawAllocation parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.MemoryLogRawAllocation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.MemoryLogRawAllocation parseDelimitedFrom( + public static org.tensorflow.proto.MemoryLogRawAllocation 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 org.tensorflow.proto.framework.MemoryLogRawAllocation parseFrom( + public static org.tensorflow.proto.MemoryLogRawAllocation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.MemoryLogRawAllocation parseFrom( + public static org.tensorflow.proto.MemoryLogRawAllocation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -448,7 +395,7 @@ public static org.tensorflow.proto.framework.MemoryLogRawAllocation parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.MemoryLogRawAllocation prototype) { + public static Builder newBuilder(org.tensorflow.proto.MemoryLogRawAllocation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -469,34 +416,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.MemoryLogRawAllocation) - org.tensorflow.proto.framework.MemoryLogRawAllocationOrBuilder { + org.tensorflow.proto.MemoryLogRawAllocationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogRawAllocation_descriptor; + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogRawAllocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogRawAllocation_fieldAccessorTable + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogRawAllocation_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.MemoryLogRawAllocation.class, org.tensorflow.proto.framework.MemoryLogRawAllocation.Builder.class); + org.tensorflow.proto.MemoryLogRawAllocation.class, org.tensorflow.proto.MemoryLogRawAllocation.Builder.class); } - // Construct using org.tensorflow.proto.framework.MemoryLogRawAllocation.newBuilder() + // Construct using org.tensorflow.proto.MemoryLogRawAllocation.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -519,17 +461,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogRawAllocation_descriptor; + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogRawAllocation_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogRawAllocation getDefaultInstanceForType() { - return org.tensorflow.proto.framework.MemoryLogRawAllocation.getDefaultInstance(); + public org.tensorflow.proto.MemoryLogRawAllocation getDefaultInstanceForType() { + return org.tensorflow.proto.MemoryLogRawAllocation.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogRawAllocation build() { - org.tensorflow.proto.framework.MemoryLogRawAllocation result = buildPartial(); + public org.tensorflow.proto.MemoryLogRawAllocation build() { + org.tensorflow.proto.MemoryLogRawAllocation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -537,8 +479,8 @@ public org.tensorflow.proto.framework.MemoryLogRawAllocation build() { } @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogRawAllocation buildPartial() { - org.tensorflow.proto.framework.MemoryLogRawAllocation result = new org.tensorflow.proto.framework.MemoryLogRawAllocation(this); + public org.tensorflow.proto.MemoryLogRawAllocation buildPartial() { + org.tensorflow.proto.MemoryLogRawAllocation result = new org.tensorflow.proto.MemoryLogRawAllocation(this); result.stepId_ = stepId_; result.operation_ = operation_; result.numBytes_ = numBytes_; @@ -583,16 +525,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.MemoryLogRawAllocation) { - return mergeFrom((org.tensorflow.proto.framework.MemoryLogRawAllocation)other); + if (other instanceof org.tensorflow.proto.MemoryLogRawAllocation) { + return mergeFrom((org.tensorflow.proto.MemoryLogRawAllocation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.MemoryLogRawAllocation other) { - if (other == org.tensorflow.proto.framework.MemoryLogRawAllocation.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.MemoryLogRawAllocation other) { + if (other == org.tensorflow.proto.MemoryLogRawAllocation.getDefaultInstance()) return this; if (other.getStepId() != 0L) { setStepId(other.getStepId()); } @@ -613,7 +555,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.MemoryLogRawAllocation o allocatorName_ = other.allocatorName_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -628,17 +570,60 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.MemoryLogRawAllocation parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + stepId_ = input.readInt64(); + + break; + } // case 8 + case 18: { + operation_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + numBytes_ = input.readInt64(); + + break; + } // case 24 + case 32: { + ptr_ = input.readUInt64(); + + break; + } // case 32 + case 40: { + allocationId_ = input.readInt64(); + + break; + } // case 40 + case 50: { + allocatorName_ = input.readStringRequireUtf8(); + + break; + } // case 50 + 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) { - parsedMessage = (org.tensorflow.proto.framework.MemoryLogRawAllocation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -649,7 +634,9 @@ public Builder mergeFrom( * * * int64 step_id = 1; + * @return The stepId. */ + @java.lang.Override public long getStepId() { return stepId_; } @@ -659,6 +646,8 @@ public long getStepId() { * * * int64 step_id = 1; + * @param value The stepId to set. + * @return This builder for chaining. */ public Builder setStepId(long value) { @@ -672,6 +661,7 @@ public Builder setStepId(long value) { * * * int64 step_id = 1; + * @return This builder for chaining. */ public Builder clearStepId() { @@ -687,6 +677,7 @@ public Builder clearStepId() { * * * string operation = 2; + * @return The operation. */ public java.lang.String getOperation() { java.lang.Object ref = operation_; @@ -706,6 +697,7 @@ public java.lang.String getOperation() { * * * string operation = 2; + * @return The bytes for operation. */ public com.google.protobuf.ByteString getOperationBytes() { @@ -726,6 +718,8 @@ public java.lang.String getOperation() { * * * string operation = 2; + * @param value The operation to set. + * @return This builder for chaining. */ public Builder setOperation( java.lang.String value) { @@ -743,6 +737,7 @@ public Builder setOperation( * * * string operation = 2; + * @return This builder for chaining. */ public Builder clearOperation() { @@ -756,6 +751,8 @@ public Builder clearOperation() { * * * string operation = 2; + * @param value The bytes for operation to set. + * @return This builder for chaining. */ public Builder setOperationBytes( com.google.protobuf.ByteString value) { @@ -776,7 +773,9 @@ public Builder setOperationBytes( * * * int64 num_bytes = 3; + * @return The numBytes. */ + @java.lang.Override public long getNumBytes() { return numBytes_; } @@ -786,6 +785,8 @@ public long getNumBytes() { * * * int64 num_bytes = 3; + * @param value The numBytes to set. + * @return This builder for chaining. */ public Builder setNumBytes(long value) { @@ -799,6 +800,7 @@ public Builder setNumBytes(long value) { * * * int64 num_bytes = 3; + * @return This builder for chaining. */ public Builder clearNumBytes() { @@ -814,7 +816,9 @@ public Builder clearNumBytes() { * * * uint64 ptr = 4; + * @return The ptr. */ + @java.lang.Override public long getPtr() { return ptr_; } @@ -824,6 +828,8 @@ public long getPtr() { * * * uint64 ptr = 4; + * @param value The ptr to set. + * @return This builder for chaining. */ public Builder setPtr(long value) { @@ -837,6 +843,7 @@ public Builder setPtr(long value) { * * * uint64 ptr = 4; + * @return This builder for chaining. */ public Builder clearPtr() { @@ -853,7 +860,9 @@ public Builder clearPtr() { * * * int64 allocation_id = 5; + * @return The allocationId. */ + @java.lang.Override public long getAllocationId() { return allocationId_; } @@ -864,6 +873,8 @@ public long getAllocationId() { * * * int64 allocation_id = 5; + * @param value The allocationId to set. + * @return This builder for chaining. */ public Builder setAllocationId(long value) { @@ -878,6 +889,7 @@ public Builder setAllocationId(long value) { * * * int64 allocation_id = 5; + * @return This builder for chaining. */ public Builder clearAllocationId() { @@ -893,6 +905,7 @@ public Builder clearAllocationId() { * * * string allocator_name = 6; + * @return The allocatorName. */ public java.lang.String getAllocatorName() { java.lang.Object ref = allocatorName_; @@ -912,6 +925,7 @@ public java.lang.String getAllocatorName() { * * * string allocator_name = 6; + * @return The bytes for allocatorName. */ public com.google.protobuf.ByteString getAllocatorNameBytes() { @@ -932,6 +946,8 @@ public java.lang.String getAllocatorName() { * * * string allocator_name = 6; + * @param value The allocatorName to set. + * @return This builder for chaining. */ public Builder setAllocatorName( java.lang.String value) { @@ -949,6 +965,7 @@ public Builder setAllocatorName( * * * string allocator_name = 6; + * @return This builder for chaining. */ public Builder clearAllocatorName() { @@ -962,6 +979,8 @@ public Builder clearAllocatorName() { * * * string allocator_name = 6; + * @param value The bytes for allocatorName to set. + * @return This builder for chaining. */ public Builder setAllocatorNameBytes( com.google.protobuf.ByteString value) { @@ -991,12 +1010,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.MemoryLogRawAllocation) - private static final org.tensorflow.proto.framework.MemoryLogRawAllocation DEFAULT_INSTANCE; + private static final org.tensorflow.proto.MemoryLogRawAllocation DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.MemoryLogRawAllocation(); + DEFAULT_INSTANCE = new org.tensorflow.proto.MemoryLogRawAllocation(); } - public static org.tensorflow.proto.framework.MemoryLogRawAllocation getDefaultInstance() { + public static org.tensorflow.proto.MemoryLogRawAllocation getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1007,7 +1026,18 @@ public MemoryLogRawAllocation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MemoryLogRawAllocation(input, extensionRegistry); + 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(); } }; @@ -1021,7 +1051,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogRawAllocation getDefaultInstanceForType() { + public org.tensorflow.proto.MemoryLogRawAllocation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogRawAllocationOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogRawAllocationOrBuilder.java similarity index 85% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogRawAllocationOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogRawAllocationOrBuilder.java index d8cabb6c9d4..16ac2cd7764 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogRawAllocationOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogRawAllocationOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/log_memory.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface MemoryLogRawAllocationOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.MemoryLogRawAllocation) @@ -13,6 +13,7 @@ public interface MemoryLogRawAllocationOrBuilder extends * * * int64 step_id = 1; + * @return The stepId. */ long getStepId(); @@ -22,6 +23,7 @@ public interface MemoryLogRawAllocationOrBuilder extends * * * string operation = 2; + * @return The operation. */ java.lang.String getOperation(); /** @@ -30,6 +32,7 @@ public interface MemoryLogRawAllocationOrBuilder extends * * * string operation = 2; + * @return The bytes for operation. */ com.google.protobuf.ByteString getOperationBytes(); @@ -40,6 +43,7 @@ public interface MemoryLogRawAllocationOrBuilder extends * * * int64 num_bytes = 3; + * @return The numBytes. */ long getNumBytes(); @@ -49,6 +53,7 @@ public interface MemoryLogRawAllocationOrBuilder extends * * * uint64 ptr = 4; + * @return The ptr. */ long getPtr(); @@ -59,6 +64,7 @@ public interface MemoryLogRawAllocationOrBuilder extends * * * int64 allocation_id = 5; + * @return The allocationId. */ long getAllocationId(); @@ -68,6 +74,7 @@ public interface MemoryLogRawAllocationOrBuilder extends * * * string allocator_name = 6; + * @return The allocatorName. */ java.lang.String getAllocatorName(); /** @@ -76,6 +83,7 @@ public interface MemoryLogRawAllocationOrBuilder extends * * * string allocator_name = 6; + * @return The bytes for allocatorName. */ com.google.protobuf.ByteString getAllocatorNameBytes(); diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogRawDeallocation.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogRawDeallocation.java similarity index 75% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogRawDeallocation.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogRawDeallocation.java index ae8c55fcf31..73c1437212c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogRawDeallocation.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogRawDeallocation.java @@ -1,12 +1,12 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/log_memory.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; /** * Protobuf type {@code tensorflow.MemoryLogRawDeallocation} */ -public final class MemoryLogRawDeallocation extends +public final class MemoryLogRawDeallocation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.MemoryLogRawDeallocation) MemoryLogRawDeallocationOrBuilder { @@ -32,81 +32,17 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private MemoryLogRawDeallocation( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - stepId_ = input.readInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - operation_ = s; - break; - } - case 24: { - - allocationId_ = input.readInt64(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - allocatorName_ = s; - break; - } - case 40: { - - deferred_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogRawDeallocation_descriptor; + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogRawDeallocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogRawDeallocation_fieldAccessorTable + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogRawDeallocation_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.MemoryLogRawDeallocation.class, org.tensorflow.proto.framework.MemoryLogRawDeallocation.Builder.class); + org.tensorflow.proto.MemoryLogRawDeallocation.class, org.tensorflow.proto.MemoryLogRawDeallocation.Builder.class); } public static final int STEP_ID_FIELD_NUMBER = 1; @@ -117,7 +53,9 @@ private MemoryLogRawDeallocation( * * * int64 step_id = 1; + * @return The stepId. */ + @java.lang.Override public long getStepId() { return stepId_; } @@ -130,7 +68,9 @@ public long getStepId() { * * * string operation = 2; + * @return The operation. */ + @java.lang.Override public java.lang.String getOperation() { java.lang.Object ref = operation_; if (ref instanceof java.lang.String) { @@ -149,7 +89,9 @@ public java.lang.String getOperation() { * * * string operation = 2; + * @return The bytes for operation. */ + @java.lang.Override public com.google.protobuf.ByteString getOperationBytes() { java.lang.Object ref = operation_; @@ -173,7 +115,9 @@ public java.lang.String getOperation() { * * * int64 allocation_id = 3; + * @return The allocationId. */ + @java.lang.Override public long getAllocationId() { return allocationId_; } @@ -186,7 +130,9 @@ public long getAllocationId() { * * * string allocator_name = 4; + * @return The allocatorName. */ + @java.lang.Override public java.lang.String getAllocatorName() { java.lang.Object ref = allocatorName_; if (ref instanceof java.lang.String) { @@ -205,7 +151,9 @@ public java.lang.String getAllocatorName() { * * * string allocator_name = 4; + * @return The bytes for allocatorName. */ + @java.lang.Override public com.google.protobuf.ByteString getAllocatorNameBytes() { java.lang.Object ref = allocatorName_; @@ -229,7 +177,9 @@ public java.lang.String getAllocatorName() { * * * bool deferred = 5; + * @return The deferred. */ + @java.lang.Override public boolean getDeferred() { return deferred_; } @@ -251,19 +201,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (stepId_ != 0L) { output.writeInt64(1, stepId_); } - if (!getOperationBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operation_); } if (allocationId_ != 0L) { output.writeInt64(3, allocationId_); } - if (!getAllocatorNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allocatorName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, allocatorName_); } if (deferred_ != false) { output.writeBool(5, deferred_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -276,21 +226,21 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, stepId_); } - if (!getOperationBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operation_); } if (allocationId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, allocationId_); } - if (!getAllocatorNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allocatorName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, allocatorName_); } if (deferred_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, deferred_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -300,10 +250,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.MemoryLogRawDeallocation)) { + if (!(obj instanceof org.tensorflow.proto.MemoryLogRawDeallocation)) { return super.equals(obj); } - org.tensorflow.proto.framework.MemoryLogRawDeallocation other = (org.tensorflow.proto.framework.MemoryLogRawDeallocation) obj; + org.tensorflow.proto.MemoryLogRawDeallocation other = (org.tensorflow.proto.MemoryLogRawDeallocation) obj; if (getStepId() != other.getStepId()) return false; @@ -315,7 +265,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getAllocatorName())) return false; if (getDeferred() != other.getDeferred()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,74 +289,74 @@ public int hashCode() { hash = (37 * hash) + DEFERRED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDeferred()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.MemoryLogRawDeallocation parseFrom( + public static org.tensorflow.proto.MemoryLogRawDeallocation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.MemoryLogRawDeallocation parseFrom( + public static org.tensorflow.proto.MemoryLogRawDeallocation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.MemoryLogRawDeallocation parseFrom( + public static org.tensorflow.proto.MemoryLogRawDeallocation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.MemoryLogRawDeallocation parseFrom( + public static org.tensorflow.proto.MemoryLogRawDeallocation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.MemoryLogRawDeallocation parseFrom(byte[] data) + public static org.tensorflow.proto.MemoryLogRawDeallocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.MemoryLogRawDeallocation parseFrom( + public static org.tensorflow.proto.MemoryLogRawDeallocation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.MemoryLogRawDeallocation parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.MemoryLogRawDeallocation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.MemoryLogRawDeallocation parseFrom( + public static org.tensorflow.proto.MemoryLogRawDeallocation 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 org.tensorflow.proto.framework.MemoryLogRawDeallocation parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.MemoryLogRawDeallocation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.MemoryLogRawDeallocation parseDelimitedFrom( + public static org.tensorflow.proto.MemoryLogRawDeallocation 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 org.tensorflow.proto.framework.MemoryLogRawDeallocation parseFrom( + public static org.tensorflow.proto.MemoryLogRawDeallocation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.MemoryLogRawDeallocation parseFrom( + public static org.tensorflow.proto.MemoryLogRawDeallocation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -419,7 +369,7 @@ public static org.tensorflow.proto.framework.MemoryLogRawDeallocation parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.MemoryLogRawDeallocation prototype) { + public static Builder newBuilder(org.tensorflow.proto.MemoryLogRawDeallocation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -440,34 +390,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.MemoryLogRawDeallocation) - org.tensorflow.proto.framework.MemoryLogRawDeallocationOrBuilder { + org.tensorflow.proto.MemoryLogRawDeallocationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogRawDeallocation_descriptor; + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogRawDeallocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogRawDeallocation_fieldAccessorTable + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogRawDeallocation_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.MemoryLogRawDeallocation.class, org.tensorflow.proto.framework.MemoryLogRawDeallocation.Builder.class); + org.tensorflow.proto.MemoryLogRawDeallocation.class, org.tensorflow.proto.MemoryLogRawDeallocation.Builder.class); } - // Construct using org.tensorflow.proto.framework.MemoryLogRawDeallocation.newBuilder() + // Construct using org.tensorflow.proto.MemoryLogRawDeallocation.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -488,17 +433,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.LogMemoryProtos.internal_static_tensorflow_MemoryLogRawDeallocation_descriptor; + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogRawDeallocation_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogRawDeallocation getDefaultInstanceForType() { - return org.tensorflow.proto.framework.MemoryLogRawDeallocation.getDefaultInstance(); + public org.tensorflow.proto.MemoryLogRawDeallocation getDefaultInstanceForType() { + return org.tensorflow.proto.MemoryLogRawDeallocation.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogRawDeallocation build() { - org.tensorflow.proto.framework.MemoryLogRawDeallocation result = buildPartial(); + public org.tensorflow.proto.MemoryLogRawDeallocation build() { + org.tensorflow.proto.MemoryLogRawDeallocation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -506,8 +451,8 @@ public org.tensorflow.proto.framework.MemoryLogRawDeallocation build() { } @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogRawDeallocation buildPartial() { - org.tensorflow.proto.framework.MemoryLogRawDeallocation result = new org.tensorflow.proto.framework.MemoryLogRawDeallocation(this); + public org.tensorflow.proto.MemoryLogRawDeallocation buildPartial() { + org.tensorflow.proto.MemoryLogRawDeallocation result = new org.tensorflow.proto.MemoryLogRawDeallocation(this); result.stepId_ = stepId_; result.operation_ = operation_; result.allocationId_ = allocationId_; @@ -551,16 +496,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.MemoryLogRawDeallocation) { - return mergeFrom((org.tensorflow.proto.framework.MemoryLogRawDeallocation)other); + if (other instanceof org.tensorflow.proto.MemoryLogRawDeallocation) { + return mergeFrom((org.tensorflow.proto.MemoryLogRawDeallocation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.MemoryLogRawDeallocation other) { - if (other == org.tensorflow.proto.framework.MemoryLogRawDeallocation.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.MemoryLogRawDeallocation other) { + if (other == org.tensorflow.proto.MemoryLogRawDeallocation.getDefaultInstance()) return this; if (other.getStepId() != 0L) { setStepId(other.getStepId()); } @@ -578,7 +523,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.MemoryLogRawDeallocation if (other.getDeferred() != false) { setDeferred(other.getDeferred()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -593,17 +538,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.MemoryLogRawDeallocation parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + stepId_ = input.readInt64(); + + break; + } // case 8 + case 18: { + operation_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + allocationId_ = input.readInt64(); + + break; + } // case 24 + case 34: { + allocatorName_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 40: { + deferred_ = input.readBool(); + + break; + } // case 40 + 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) { - parsedMessage = (org.tensorflow.proto.framework.MemoryLogRawDeallocation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -614,7 +597,9 @@ public Builder mergeFrom( * * * int64 step_id = 1; + * @return The stepId. */ + @java.lang.Override public long getStepId() { return stepId_; } @@ -624,6 +609,8 @@ public long getStepId() { * * * int64 step_id = 1; + * @param value The stepId to set. + * @return This builder for chaining. */ public Builder setStepId(long value) { @@ -637,6 +624,7 @@ public Builder setStepId(long value) { * * * int64 step_id = 1; + * @return This builder for chaining. */ public Builder clearStepId() { @@ -652,6 +640,7 @@ public Builder clearStepId() { * * * string operation = 2; + * @return The operation. */ public java.lang.String getOperation() { java.lang.Object ref = operation_; @@ -671,6 +660,7 @@ public java.lang.String getOperation() { * * * string operation = 2; + * @return The bytes for operation. */ public com.google.protobuf.ByteString getOperationBytes() { @@ -691,6 +681,8 @@ public java.lang.String getOperation() { * * * string operation = 2; + * @param value The operation to set. + * @return This builder for chaining. */ public Builder setOperation( java.lang.String value) { @@ -708,6 +700,7 @@ public Builder setOperation( * * * string operation = 2; + * @return This builder for chaining. */ public Builder clearOperation() { @@ -721,6 +714,8 @@ public Builder clearOperation() { * * * string operation = 2; + * @param value The bytes for operation to set. + * @return This builder for chaining. */ public Builder setOperationBytes( com.google.protobuf.ByteString value) { @@ -742,7 +737,9 @@ public Builder setOperationBytes( * * * int64 allocation_id = 3; + * @return The allocationId. */ + @java.lang.Override public long getAllocationId() { return allocationId_; } @@ -753,6 +750,8 @@ public long getAllocationId() { * * * int64 allocation_id = 3; + * @param value The allocationId to set. + * @return This builder for chaining. */ public Builder setAllocationId(long value) { @@ -767,6 +766,7 @@ public Builder setAllocationId(long value) { * * * int64 allocation_id = 3; + * @return This builder for chaining. */ public Builder clearAllocationId() { @@ -782,6 +782,7 @@ public Builder clearAllocationId() { * * * string allocator_name = 4; + * @return The allocatorName. */ public java.lang.String getAllocatorName() { java.lang.Object ref = allocatorName_; @@ -801,6 +802,7 @@ public java.lang.String getAllocatorName() { * * * string allocator_name = 4; + * @return The bytes for allocatorName. */ public com.google.protobuf.ByteString getAllocatorNameBytes() { @@ -821,6 +823,8 @@ public java.lang.String getAllocatorName() { * * * string allocator_name = 4; + * @param value The allocatorName to set. + * @return This builder for chaining. */ public Builder setAllocatorName( java.lang.String value) { @@ -838,6 +842,7 @@ public Builder setAllocatorName( * * * string allocator_name = 4; + * @return This builder for chaining. */ public Builder clearAllocatorName() { @@ -851,6 +856,8 @@ public Builder clearAllocatorName() { * * * string allocator_name = 4; + * @param value The bytes for allocatorName to set. + * @return This builder for chaining. */ public Builder setAllocatorNameBytes( com.google.protobuf.ByteString value) { @@ -872,7 +879,9 @@ public Builder setAllocatorNameBytes( * * * bool deferred = 5; + * @return The deferred. */ + @java.lang.Override public boolean getDeferred() { return deferred_; } @@ -883,6 +892,8 @@ public boolean getDeferred() { * * * bool deferred = 5; + * @param value The deferred to set. + * @return This builder for chaining. */ public Builder setDeferred(boolean value) { @@ -897,6 +908,7 @@ public Builder setDeferred(boolean value) { * * * bool deferred = 5; + * @return This builder for chaining. */ public Builder clearDeferred() { @@ -921,12 +933,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.MemoryLogRawDeallocation) - private static final org.tensorflow.proto.framework.MemoryLogRawDeallocation DEFAULT_INSTANCE; + private static final org.tensorflow.proto.MemoryLogRawDeallocation DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.MemoryLogRawDeallocation(); + DEFAULT_INSTANCE = new org.tensorflow.proto.MemoryLogRawDeallocation(); } - public static org.tensorflow.proto.framework.MemoryLogRawDeallocation getDefaultInstance() { + public static org.tensorflow.proto.MemoryLogRawDeallocation getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -937,7 +949,18 @@ public MemoryLogRawDeallocation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MemoryLogRawDeallocation(input, extensionRegistry); + 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(); } }; @@ -951,7 +974,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.MemoryLogRawDeallocation getDefaultInstanceForType() { + public org.tensorflow.proto.MemoryLogRawDeallocation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogRawDeallocationOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogRawDeallocationOrBuilder.java similarity index 86% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogRawDeallocationOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogRawDeallocationOrBuilder.java index e8f66fff55c..bd951f2940d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogRawDeallocationOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogRawDeallocationOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/log_memory.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface MemoryLogRawDeallocationOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.MemoryLogRawDeallocation) @@ -13,6 +13,7 @@ public interface MemoryLogRawDeallocationOrBuilder extends * * * int64 step_id = 1; + * @return The stepId. */ long getStepId(); @@ -22,6 +23,7 @@ public interface MemoryLogRawDeallocationOrBuilder extends * * * string operation = 2; + * @return The operation. */ java.lang.String getOperation(); /** @@ -30,6 +32,7 @@ public interface MemoryLogRawDeallocationOrBuilder extends * * * string operation = 2; + * @return The bytes for operation. */ com.google.protobuf.ByteString getOperationBytes(); @@ -41,6 +44,7 @@ public interface MemoryLogRawDeallocationOrBuilder extends * * * int64 allocation_id = 3; + * @return The allocationId. */ long getAllocationId(); @@ -50,6 +54,7 @@ public interface MemoryLogRawDeallocationOrBuilder extends * * * string allocator_name = 4; + * @return The allocatorName. */ java.lang.String getAllocatorName(); /** @@ -58,6 +63,7 @@ public interface MemoryLogRawDeallocationOrBuilder extends * * * string allocator_name = 4; + * @return The bytes for allocatorName. */ com.google.protobuf.ByteString getAllocatorNameBytes(); @@ -69,6 +75,7 @@ public interface MemoryLogRawDeallocationOrBuilder extends * * * bool deferred = 5; + * @return The deferred. */ boolean getDeferred(); } diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogStep.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogStep.java new file mode 100644 index 00000000000..44a87c97310 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogStep.java @@ -0,0 +1,647 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/log_memory.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.MemoryLogStep} + */ +public final class MemoryLogStep extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.MemoryLogStep) + MemoryLogStepOrBuilder { +private static final long serialVersionUID = 0L; + // Use MemoryLogStep.newBuilder() to construct. + private MemoryLogStep(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MemoryLogStep() { + handle_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MemoryLogStep(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.MemoryLogStep.class, org.tensorflow.proto.MemoryLogStep.Builder.class); + } + + public static final int STEP_ID_FIELD_NUMBER = 1; + private long stepId_; + /** + *
+   * Process-unique step id.
+   * 
+ * + * int64 step_id = 1; + * @return The stepId. + */ + @java.lang.Override + public long getStepId() { + return stepId_; + } + + public static final int HANDLE_FIELD_NUMBER = 2; + private volatile java.lang.Object handle_; + /** + *
+   * Handle describing the feeds and fetches of the step.
+   * 
+ * + * string handle = 2; + * @return The handle. + */ + @java.lang.Override + public java.lang.String getHandle() { + java.lang.Object ref = handle_; + 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(); + handle_ = s; + return s; + } + } + /** + *
+   * Handle describing the feeds and fetches of the step.
+   * 
+ * + * string handle = 2; + * @return The bytes for handle. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getHandleBytes() { + java.lang.Object ref = handle_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + handle_ = 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 (stepId_ != 0L) { + output.writeInt64(1, stepId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(handle_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, handle_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (stepId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, stepId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(handle_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, handle_); + } + 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 org.tensorflow.proto.MemoryLogStep)) { + return super.equals(obj); + } + org.tensorflow.proto.MemoryLogStep other = (org.tensorflow.proto.MemoryLogStep) obj; + + if (getStepId() + != other.getStepId()) return false; + if (!getHandle() + .equals(other.getHandle())) 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) + STEP_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStepId()); + hash = (37 * hash) + HANDLE_FIELD_NUMBER; + hash = (53 * hash) + getHandle().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.MemoryLogStep parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemoryLogStep parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemoryLogStep parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemoryLogStep parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemoryLogStep parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemoryLogStep parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemoryLogStep parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemoryLogStep 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 org.tensorflow.proto.MemoryLogStep parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemoryLogStep 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 org.tensorflow.proto.MemoryLogStep parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemoryLogStep 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(org.tensorflow.proto.MemoryLogStep prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.MemoryLogStep} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.MemoryLogStep) + org.tensorflow.proto.MemoryLogStepOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.MemoryLogStep.class, org.tensorflow.proto.MemoryLogStep.Builder.class); + } + + // Construct using org.tensorflow.proto.MemoryLogStep.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + stepId_ = 0L; + + handle_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogStep_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.MemoryLogStep getDefaultInstanceForType() { + return org.tensorflow.proto.MemoryLogStep.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.MemoryLogStep build() { + org.tensorflow.proto.MemoryLogStep result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.MemoryLogStep buildPartial() { + org.tensorflow.proto.MemoryLogStep result = new org.tensorflow.proto.MemoryLogStep(this); + result.stepId_ = stepId_; + result.handle_ = handle_; + 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 org.tensorflow.proto.MemoryLogStep) { + return mergeFrom((org.tensorflow.proto.MemoryLogStep)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.MemoryLogStep other) { + if (other == org.tensorflow.proto.MemoryLogStep.getDefaultInstance()) return this; + if (other.getStepId() != 0L) { + setStepId(other.getStepId()); + } + if (!other.getHandle().isEmpty()) { + handle_ = other.handle_; + 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 8: { + stepId_ = input.readInt64(); + + break; + } // case 8 + case 18: { + handle_ = input.readStringRequireUtf8(); + + 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 long stepId_ ; + /** + *
+     * Process-unique step id.
+     * 
+ * + * int64 step_id = 1; + * @return The stepId. + */ + @java.lang.Override + public long getStepId() { + return stepId_; + } + /** + *
+     * Process-unique step id.
+     * 
+ * + * int64 step_id = 1; + * @param value The stepId to set. + * @return This builder for chaining. + */ + public Builder setStepId(long value) { + + stepId_ = value; + onChanged(); + return this; + } + /** + *
+     * Process-unique step id.
+     * 
+ * + * int64 step_id = 1; + * @return This builder for chaining. + */ + public Builder clearStepId() { + + stepId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object handle_ = ""; + /** + *
+     * Handle describing the feeds and fetches of the step.
+     * 
+ * + * string handle = 2; + * @return The handle. + */ + public java.lang.String getHandle() { + java.lang.Object ref = handle_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + handle_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Handle describing the feeds and fetches of the step.
+     * 
+ * + * string handle = 2; + * @return The bytes for handle. + */ + public com.google.protobuf.ByteString + getHandleBytes() { + java.lang.Object ref = handle_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + handle_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Handle describing the feeds and fetches of the step.
+     * 
+ * + * string handle = 2; + * @param value The handle to set. + * @return This builder for chaining. + */ + public Builder setHandle( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + handle_ = value; + onChanged(); + return this; + } + /** + *
+     * Handle describing the feeds and fetches of the step.
+     * 
+ * + * string handle = 2; + * @return This builder for chaining. + */ + public Builder clearHandle() { + + handle_ = getDefaultInstance().getHandle(); + onChanged(); + return this; + } + /** + *
+     * Handle describing the feeds and fetches of the step.
+     * 
+ * + * string handle = 2; + * @param value The bytes for handle to set. + * @return This builder for chaining. + */ + public Builder setHandleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + handle_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.MemoryLogStep) + } + + // @@protoc_insertion_point(class_scope:tensorflow.MemoryLogStep) + private static final org.tensorflow.proto.MemoryLogStep DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.MemoryLogStep(); + } + + public static org.tensorflow.proto.MemoryLogStep getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemoryLogStep 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 org.tensorflow.proto.MemoryLogStep getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogStepOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogStepOrBuilder.java similarity index 87% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogStepOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogStepOrBuilder.java index 3e8a13645c1..d6ff942a982 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogStepOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogStepOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/log_memory.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface MemoryLogStepOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.MemoryLogStep) @@ -13,6 +13,7 @@ public interface MemoryLogStepOrBuilder extends * * * int64 step_id = 1; + * @return The stepId. */ long getStepId(); @@ -22,6 +23,7 @@ public interface MemoryLogStepOrBuilder extends * * * string handle = 2; + * @return The handle. */ java.lang.String getHandle(); /** @@ -30,6 +32,7 @@ public interface MemoryLogStepOrBuilder extends * * * string handle = 2; + * @return The bytes for handle. */ com.google.protobuf.ByteString getHandleBytes(); diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogTensorAllocation.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogTensorAllocation.java new file mode 100644 index 00000000000..f80a91ed246 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogTensorAllocation.java @@ -0,0 +1,884 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/log_memory.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.MemoryLogTensorAllocation} + */ +public final class MemoryLogTensorAllocation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.MemoryLogTensorAllocation) + MemoryLogTensorAllocationOrBuilder { +private static final long serialVersionUID = 0L; + // Use MemoryLogTensorAllocation.newBuilder() to construct. + private MemoryLogTensorAllocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MemoryLogTensorAllocation() { + kernelName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MemoryLogTensorAllocation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorAllocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorAllocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.MemoryLogTensorAllocation.class, org.tensorflow.proto.MemoryLogTensorAllocation.Builder.class); + } + + public static final int STEP_ID_FIELD_NUMBER = 1; + private long stepId_; + /** + *
+   * Process-unique step id.
+   * 
+ * + * int64 step_id = 1; + * @return The stepId. + */ + @java.lang.Override + public long getStepId() { + return stepId_; + } + + public static final int KERNEL_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object kernelName_; + /** + *
+   * Name of the kernel making the allocation as set in GraphDef,
+   * e.g., "affine2/weights/Assign".
+   * 
+ * + * string kernel_name = 2; + * @return The kernelName. + */ + @java.lang.Override + public java.lang.String getKernelName() { + java.lang.Object ref = kernelName_; + 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(); + kernelName_ = s; + return s; + } + } + /** + *
+   * Name of the kernel making the allocation as set in GraphDef,
+   * e.g., "affine2/weights/Assign".
+   * 
+ * + * string kernel_name = 2; + * @return The bytes for kernelName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKernelNameBytes() { + java.lang.Object ref = kernelName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kernelName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TENSOR_FIELD_NUMBER = 3; + private org.tensorflow.proto.TensorDescription tensor_; + /** + *
+   * Allocated tensor details.
+   * 
+ * + * .tensorflow.TensorDescription tensor = 3; + * @return Whether the tensor field is set. + */ + @java.lang.Override + public boolean hasTensor() { + return tensor_ != null; + } + /** + *
+   * Allocated tensor details.
+   * 
+ * + * .tensorflow.TensorDescription tensor = 3; + * @return The tensor. + */ + @java.lang.Override + public org.tensorflow.proto.TensorDescription getTensor() { + return tensor_ == null ? org.tensorflow.proto.TensorDescription.getDefaultInstance() : tensor_; + } + /** + *
+   * Allocated tensor details.
+   * 
+ * + * .tensorflow.TensorDescription tensor = 3; + */ + @java.lang.Override + public org.tensorflow.proto.TensorDescriptionOrBuilder getTensorOrBuilder() { + return getTensor(); + } + + 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 (stepId_ != 0L) { + output.writeInt64(1, stepId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kernelName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kernelName_); + } + if (tensor_ != null) { + output.writeMessage(3, getTensor()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (stepId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, stepId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kernelName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kernelName_); + } + if (tensor_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTensor()); + } + 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 org.tensorflow.proto.MemoryLogTensorAllocation)) { + return super.equals(obj); + } + org.tensorflow.proto.MemoryLogTensorAllocation other = (org.tensorflow.proto.MemoryLogTensorAllocation) obj; + + if (getStepId() + != other.getStepId()) return false; + if (!getKernelName() + .equals(other.getKernelName())) return false; + if (hasTensor() != other.hasTensor()) return false; + if (hasTensor()) { + if (!getTensor() + .equals(other.getTensor())) 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) + STEP_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStepId()); + hash = (37 * hash) + KERNEL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKernelName().hashCode(); + if (hasTensor()) { + hash = (37 * hash) + TENSOR_FIELD_NUMBER; + hash = (53 * hash) + getTensor().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.MemoryLogTensorAllocation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemoryLogTensorAllocation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemoryLogTensorAllocation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemoryLogTensorAllocation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemoryLogTensorAllocation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemoryLogTensorAllocation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemoryLogTensorAllocation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemoryLogTensorAllocation 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 org.tensorflow.proto.MemoryLogTensorAllocation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemoryLogTensorAllocation 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 org.tensorflow.proto.MemoryLogTensorAllocation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemoryLogTensorAllocation 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(org.tensorflow.proto.MemoryLogTensorAllocation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.MemoryLogTensorAllocation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.MemoryLogTensorAllocation) + org.tensorflow.proto.MemoryLogTensorAllocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorAllocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorAllocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.MemoryLogTensorAllocation.class, org.tensorflow.proto.MemoryLogTensorAllocation.Builder.class); + } + + // Construct using org.tensorflow.proto.MemoryLogTensorAllocation.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + stepId_ = 0L; + + kernelName_ = ""; + + if (tensorBuilder_ == null) { + tensor_ = null; + } else { + tensor_ = null; + tensorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorAllocation_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.MemoryLogTensorAllocation getDefaultInstanceForType() { + return org.tensorflow.proto.MemoryLogTensorAllocation.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.MemoryLogTensorAllocation build() { + org.tensorflow.proto.MemoryLogTensorAllocation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.MemoryLogTensorAllocation buildPartial() { + org.tensorflow.proto.MemoryLogTensorAllocation result = new org.tensorflow.proto.MemoryLogTensorAllocation(this); + result.stepId_ = stepId_; + result.kernelName_ = kernelName_; + if (tensorBuilder_ == null) { + result.tensor_ = tensor_; + } else { + result.tensor_ = tensorBuilder_.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 org.tensorflow.proto.MemoryLogTensorAllocation) { + return mergeFrom((org.tensorflow.proto.MemoryLogTensorAllocation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.MemoryLogTensorAllocation other) { + if (other == org.tensorflow.proto.MemoryLogTensorAllocation.getDefaultInstance()) return this; + if (other.getStepId() != 0L) { + setStepId(other.getStepId()); + } + if (!other.getKernelName().isEmpty()) { + kernelName_ = other.kernelName_; + onChanged(); + } + if (other.hasTensor()) { + mergeTensor(other.getTensor()); + } + 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: { + stepId_ = input.readInt64(); + + break; + } // case 8 + case 18: { + kernelName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getTensorFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + 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 long stepId_ ; + /** + *
+     * Process-unique step id.
+     * 
+ * + * int64 step_id = 1; + * @return The stepId. + */ + @java.lang.Override + public long getStepId() { + return stepId_; + } + /** + *
+     * Process-unique step id.
+     * 
+ * + * int64 step_id = 1; + * @param value The stepId to set. + * @return This builder for chaining. + */ + public Builder setStepId(long value) { + + stepId_ = value; + onChanged(); + return this; + } + /** + *
+     * Process-unique step id.
+     * 
+ * + * int64 step_id = 1; + * @return This builder for chaining. + */ + public Builder clearStepId() { + + stepId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object kernelName_ = ""; + /** + *
+     * Name of the kernel making the allocation as set in GraphDef,
+     * e.g., "affine2/weights/Assign".
+     * 
+ * + * string kernel_name = 2; + * @return The kernelName. + */ + public java.lang.String getKernelName() { + java.lang.Object ref = kernelName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kernelName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Name of the kernel making the allocation as set in GraphDef,
+     * e.g., "affine2/weights/Assign".
+     * 
+ * + * string kernel_name = 2; + * @return The bytes for kernelName. + */ + public com.google.protobuf.ByteString + getKernelNameBytes() { + java.lang.Object ref = kernelName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kernelName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Name of the kernel making the allocation as set in GraphDef,
+     * e.g., "affine2/weights/Assign".
+     * 
+ * + * string kernel_name = 2; + * @param value The kernelName to set. + * @return This builder for chaining. + */ + public Builder setKernelName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kernelName_ = value; + onChanged(); + return this; + } + /** + *
+     * Name of the kernel making the allocation as set in GraphDef,
+     * e.g., "affine2/weights/Assign".
+     * 
+ * + * string kernel_name = 2; + * @return This builder for chaining. + */ + public Builder clearKernelName() { + + kernelName_ = getDefaultInstance().getKernelName(); + onChanged(); + return this; + } + /** + *
+     * Name of the kernel making the allocation as set in GraphDef,
+     * e.g., "affine2/weights/Assign".
+     * 
+ * + * string kernel_name = 2; + * @param value The bytes for kernelName to set. + * @return This builder for chaining. + */ + public Builder setKernelNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kernelName_ = value; + onChanged(); + return this; + } + + private org.tensorflow.proto.TensorDescription tensor_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorDescription, org.tensorflow.proto.TensorDescription.Builder, org.tensorflow.proto.TensorDescriptionOrBuilder> tensorBuilder_; + /** + *
+     * Allocated tensor details.
+     * 
+ * + * .tensorflow.TensorDescription tensor = 3; + * @return Whether the tensor field is set. + */ + public boolean hasTensor() { + return tensorBuilder_ != null || tensor_ != null; + } + /** + *
+     * Allocated tensor details.
+     * 
+ * + * .tensorflow.TensorDescription tensor = 3; + * @return The tensor. + */ + public org.tensorflow.proto.TensorDescription getTensor() { + if (tensorBuilder_ == null) { + return tensor_ == null ? org.tensorflow.proto.TensorDescription.getDefaultInstance() : tensor_; + } else { + return tensorBuilder_.getMessage(); + } + } + /** + *
+     * Allocated tensor details.
+     * 
+ * + * .tensorflow.TensorDescription tensor = 3; + */ + public Builder setTensor(org.tensorflow.proto.TensorDescription value) { + if (tensorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tensor_ = value; + onChanged(); + } else { + tensorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Allocated tensor details.
+     * 
+ * + * .tensorflow.TensorDescription tensor = 3; + */ + public Builder setTensor( + org.tensorflow.proto.TensorDescription.Builder builderForValue) { + if (tensorBuilder_ == null) { + tensor_ = builderForValue.build(); + onChanged(); + } else { + tensorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Allocated tensor details.
+     * 
+ * + * .tensorflow.TensorDescription tensor = 3; + */ + public Builder mergeTensor(org.tensorflow.proto.TensorDescription value) { + if (tensorBuilder_ == null) { + if (tensor_ != null) { + tensor_ = + org.tensorflow.proto.TensorDescription.newBuilder(tensor_).mergeFrom(value).buildPartial(); + } else { + tensor_ = value; + } + onChanged(); + } else { + tensorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Allocated tensor details.
+     * 
+ * + * .tensorflow.TensorDescription tensor = 3; + */ + public Builder clearTensor() { + if (tensorBuilder_ == null) { + tensor_ = null; + onChanged(); + } else { + tensor_ = null; + tensorBuilder_ = null; + } + + return this; + } + /** + *
+     * Allocated tensor details.
+     * 
+ * + * .tensorflow.TensorDescription tensor = 3; + */ + public org.tensorflow.proto.TensorDescription.Builder getTensorBuilder() { + + onChanged(); + return getTensorFieldBuilder().getBuilder(); + } + /** + *
+     * Allocated tensor details.
+     * 
+ * + * .tensorflow.TensorDescription tensor = 3; + */ + public org.tensorflow.proto.TensorDescriptionOrBuilder getTensorOrBuilder() { + if (tensorBuilder_ != null) { + return tensorBuilder_.getMessageOrBuilder(); + } else { + return tensor_ == null ? + org.tensorflow.proto.TensorDescription.getDefaultInstance() : tensor_; + } + } + /** + *
+     * Allocated tensor details.
+     * 
+ * + * .tensorflow.TensorDescription tensor = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorDescription, org.tensorflow.proto.TensorDescription.Builder, org.tensorflow.proto.TensorDescriptionOrBuilder> + getTensorFieldBuilder() { + if (tensorBuilder_ == null) { + tensorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorDescription, org.tensorflow.proto.TensorDescription.Builder, org.tensorflow.proto.TensorDescriptionOrBuilder>( + getTensor(), + getParentForChildren(), + isClean()); + tensor_ = null; + } + return tensorBuilder_; + } + @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:tensorflow.MemoryLogTensorAllocation) + } + + // @@protoc_insertion_point(class_scope:tensorflow.MemoryLogTensorAllocation) + private static final org.tensorflow.proto.MemoryLogTensorAllocation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.MemoryLogTensorAllocation(); + } + + public static org.tensorflow.proto.MemoryLogTensorAllocation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemoryLogTensorAllocation 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 org.tensorflow.proto.MemoryLogTensorAllocation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogTensorAllocationOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogTensorAllocationOrBuilder.java similarity index 80% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogTensorAllocationOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogTensorAllocationOrBuilder.java index 1b3a3732149..be0aa265bc7 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogTensorAllocationOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogTensorAllocationOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/log_memory.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface MemoryLogTensorAllocationOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.MemoryLogTensorAllocation) @@ -13,6 +13,7 @@ public interface MemoryLogTensorAllocationOrBuilder extends * * * int64 step_id = 1; + * @return The stepId. */ long getStepId(); @@ -23,6 +24,7 @@ public interface MemoryLogTensorAllocationOrBuilder extends * * * string kernel_name = 2; + * @return The kernelName. */ java.lang.String getKernelName(); /** @@ -32,6 +34,7 @@ public interface MemoryLogTensorAllocationOrBuilder extends * * * string kernel_name = 2; + * @return The bytes for kernelName. */ com.google.protobuf.ByteString getKernelNameBytes(); @@ -42,6 +45,7 @@ public interface MemoryLogTensorAllocationOrBuilder extends * * * .tensorflow.TensorDescription tensor = 3; + * @return Whether the tensor field is set. */ boolean hasTensor(); /** @@ -50,8 +54,9 @@ public interface MemoryLogTensorAllocationOrBuilder extends * * * .tensorflow.TensorDescription tensor = 3; + * @return The tensor. */ - org.tensorflow.proto.framework.TensorDescription getTensor(); + org.tensorflow.proto.TensorDescription getTensor(); /** *
    * Allocated tensor details.
@@ -59,5 +64,5 @@ public interface MemoryLogTensorAllocationOrBuilder extends
    *
    * .tensorflow.TensorDescription tensor = 3;
    */
-  org.tensorflow.proto.framework.TensorDescriptionOrBuilder getTensorOrBuilder();
+  org.tensorflow.proto.TensorDescriptionOrBuilder getTensorOrBuilder();
 }
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogTensorDeallocation.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogTensorDeallocation.java
new file mode 100644
index 00000000000..d6d7695b47f
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogTensorDeallocation.java
@@ -0,0 +1,651 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/framework/log_memory.proto
+
+package org.tensorflow.proto;
+
+/**
+ * Protobuf type {@code tensorflow.MemoryLogTensorDeallocation}
+ */
+public final class MemoryLogTensorDeallocation extends
+    com.google.protobuf.GeneratedMessageV3 implements
+    // @@protoc_insertion_point(message_implements:tensorflow.MemoryLogTensorDeallocation)
+    MemoryLogTensorDeallocationOrBuilder {
+private static final long serialVersionUID = 0L;
+  // Use MemoryLogTensorDeallocation.newBuilder() to construct.
+  private MemoryLogTensorDeallocation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    super(builder);
+  }
+  private MemoryLogTensorDeallocation() {
+    allocatorName_ = "";
+  }
+
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
+    return new MemoryLogTensorDeallocation();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
+    return this.unknownFields;
+  }
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorDeallocation_descriptor;
+  }
+
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internalGetFieldAccessorTable() {
+    return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorDeallocation_fieldAccessorTable
+        .ensureFieldAccessorsInitialized(
+            org.tensorflow.proto.MemoryLogTensorDeallocation.class, org.tensorflow.proto.MemoryLogTensorDeallocation.Builder.class);
+  }
+
+  public static final int ALLOCATION_ID_FIELD_NUMBER = 1;
+  private long allocationId_;
+  /**
+   * 
+   * Id of the tensor buffer being deallocated, used to match to a
+   * corresponding allocation.
+   * 
+ * + * int64 allocation_id = 1; + * @return The allocationId. + */ + @java.lang.Override + public long getAllocationId() { + return allocationId_; + } + + public static final int ALLOCATOR_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object allocatorName_; + /** + *
+   * Name of the allocator used.
+   * 
+ * + * string allocator_name = 2; + * @return The allocatorName. + */ + @java.lang.Override + public java.lang.String getAllocatorName() { + java.lang.Object ref = allocatorName_; + 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(); + allocatorName_ = s; + return s; + } + } + /** + *
+   * Name of the allocator used.
+   * 
+ * + * string allocator_name = 2; + * @return The bytes for allocatorName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAllocatorNameBytes() { + java.lang.Object ref = allocatorName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + allocatorName_ = 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 (allocationId_ != 0L) { + output.writeInt64(1, allocationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allocatorName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, allocatorName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (allocationId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, allocationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(allocatorName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, allocatorName_); + } + 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 org.tensorflow.proto.MemoryLogTensorDeallocation)) { + return super.equals(obj); + } + org.tensorflow.proto.MemoryLogTensorDeallocation other = (org.tensorflow.proto.MemoryLogTensorDeallocation) obj; + + if (getAllocationId() + != other.getAllocationId()) return false; + if (!getAllocatorName() + .equals(other.getAllocatorName())) 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) + ALLOCATION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAllocationId()); + hash = (37 * hash) + ALLOCATOR_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAllocatorName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.MemoryLogTensorDeallocation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemoryLogTensorDeallocation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemoryLogTensorDeallocation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemoryLogTensorDeallocation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemoryLogTensorDeallocation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemoryLogTensorDeallocation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemoryLogTensorDeallocation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemoryLogTensorDeallocation 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 org.tensorflow.proto.MemoryLogTensorDeallocation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemoryLogTensorDeallocation 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 org.tensorflow.proto.MemoryLogTensorDeallocation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemoryLogTensorDeallocation 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(org.tensorflow.proto.MemoryLogTensorDeallocation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.MemoryLogTensorDeallocation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.MemoryLogTensorDeallocation) + org.tensorflow.proto.MemoryLogTensorDeallocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorDeallocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorDeallocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.MemoryLogTensorDeallocation.class, org.tensorflow.proto.MemoryLogTensorDeallocation.Builder.class); + } + + // Construct using org.tensorflow.proto.MemoryLogTensorDeallocation.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + allocationId_ = 0L; + + allocatorName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorDeallocation_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.MemoryLogTensorDeallocation getDefaultInstanceForType() { + return org.tensorflow.proto.MemoryLogTensorDeallocation.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.MemoryLogTensorDeallocation build() { + org.tensorflow.proto.MemoryLogTensorDeallocation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.MemoryLogTensorDeallocation buildPartial() { + org.tensorflow.proto.MemoryLogTensorDeallocation result = new org.tensorflow.proto.MemoryLogTensorDeallocation(this); + result.allocationId_ = allocationId_; + result.allocatorName_ = allocatorName_; + 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 org.tensorflow.proto.MemoryLogTensorDeallocation) { + return mergeFrom((org.tensorflow.proto.MemoryLogTensorDeallocation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.MemoryLogTensorDeallocation other) { + if (other == org.tensorflow.proto.MemoryLogTensorDeallocation.getDefaultInstance()) return this; + if (other.getAllocationId() != 0L) { + setAllocationId(other.getAllocationId()); + } + if (!other.getAllocatorName().isEmpty()) { + allocatorName_ = other.allocatorName_; + 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 8: { + allocationId_ = input.readInt64(); + + break; + } // case 8 + case 18: { + allocatorName_ = input.readStringRequireUtf8(); + + 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 long allocationId_ ; + /** + *
+     * Id of the tensor buffer being deallocated, used to match to a
+     * corresponding allocation.
+     * 
+ * + * int64 allocation_id = 1; + * @return The allocationId. + */ + @java.lang.Override + public long getAllocationId() { + return allocationId_; + } + /** + *
+     * Id of the tensor buffer being deallocated, used to match to a
+     * corresponding allocation.
+     * 
+ * + * int64 allocation_id = 1; + * @param value The allocationId to set. + * @return This builder for chaining. + */ + public Builder setAllocationId(long value) { + + allocationId_ = value; + onChanged(); + return this; + } + /** + *
+     * Id of the tensor buffer being deallocated, used to match to a
+     * corresponding allocation.
+     * 
+ * + * int64 allocation_id = 1; + * @return This builder for chaining. + */ + public Builder clearAllocationId() { + + allocationId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object allocatorName_ = ""; + /** + *
+     * Name of the allocator used.
+     * 
+ * + * string allocator_name = 2; + * @return The allocatorName. + */ + public java.lang.String getAllocatorName() { + java.lang.Object ref = allocatorName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allocatorName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Name of the allocator used.
+     * 
+ * + * string allocator_name = 2; + * @return The bytes for allocatorName. + */ + public com.google.protobuf.ByteString + getAllocatorNameBytes() { + java.lang.Object ref = allocatorName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + allocatorName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Name of the allocator used.
+     * 
+ * + * string allocator_name = 2; + * @param value The allocatorName to set. + * @return This builder for chaining. + */ + public Builder setAllocatorName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + allocatorName_ = value; + onChanged(); + return this; + } + /** + *
+     * Name of the allocator used.
+     * 
+ * + * string allocator_name = 2; + * @return This builder for chaining. + */ + public Builder clearAllocatorName() { + + allocatorName_ = getDefaultInstance().getAllocatorName(); + onChanged(); + return this; + } + /** + *
+     * Name of the allocator used.
+     * 
+ * + * string allocator_name = 2; + * @param value The bytes for allocatorName to set. + * @return This builder for chaining. + */ + public Builder setAllocatorNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + allocatorName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.MemoryLogTensorDeallocation) + } + + // @@protoc_insertion_point(class_scope:tensorflow.MemoryLogTensorDeallocation) + private static final org.tensorflow.proto.MemoryLogTensorDeallocation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.MemoryLogTensorDeallocation(); + } + + public static org.tensorflow.proto.MemoryLogTensorDeallocation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemoryLogTensorDeallocation 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 org.tensorflow.proto.MemoryLogTensorDeallocation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogTensorDeallocationOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogTensorDeallocationOrBuilder.java similarity index 86% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogTensorDeallocationOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogTensorDeallocationOrBuilder.java index 7d45248a17a..36bdc3ceaaa 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogTensorDeallocationOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogTensorDeallocationOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/log_memory.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface MemoryLogTensorDeallocationOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.MemoryLogTensorDeallocation) @@ -14,6 +14,7 @@ public interface MemoryLogTensorDeallocationOrBuilder extends *
* * int64 allocation_id = 1; + * @return The allocationId. */ long getAllocationId(); @@ -23,6 +24,7 @@ public interface MemoryLogTensorDeallocationOrBuilder extends * * * string allocator_name = 2; + * @return The allocatorName. */ java.lang.String getAllocatorName(); /** @@ -31,6 +33,7 @@ public interface MemoryLogTensorDeallocationOrBuilder extends * * * string allocator_name = 2; + * @return The bytes for allocatorName. */ com.google.protobuf.ByteString getAllocatorNameBytes(); diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogTensorOutput.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogTensorOutput.java new file mode 100644 index 00000000000..28e5b83c11c --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogTensorOutput.java @@ -0,0 +1,964 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/log_memory.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.MemoryLogTensorOutput} + */ +public final class MemoryLogTensorOutput extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.MemoryLogTensorOutput) + MemoryLogTensorOutputOrBuilder { +private static final long serialVersionUID = 0L; + // Use MemoryLogTensorOutput.newBuilder() to construct. + private MemoryLogTensorOutput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MemoryLogTensorOutput() { + kernelName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MemoryLogTensorOutput(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorOutput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.MemoryLogTensorOutput.class, org.tensorflow.proto.MemoryLogTensorOutput.Builder.class); + } + + public static final int STEP_ID_FIELD_NUMBER = 1; + private long stepId_; + /** + *
+   * Process-unique step id.
+   * 
+ * + * int64 step_id = 1; + * @return The stepId. + */ + @java.lang.Override + public long getStepId() { + return stepId_; + } + + public static final int KERNEL_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object kernelName_; + /** + *
+   * Name of the kernel producing an output as set in GraphDef, e.g.,
+   * "affine2/weights/Assign".
+   * 
+ * + * string kernel_name = 2; + * @return The kernelName. + */ + @java.lang.Override + public java.lang.String getKernelName() { + java.lang.Object ref = kernelName_; + 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(); + kernelName_ = s; + return s; + } + } + /** + *
+   * Name of the kernel producing an output as set in GraphDef, e.g.,
+   * "affine2/weights/Assign".
+   * 
+ * + * string kernel_name = 2; + * @return The bytes for kernelName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKernelNameBytes() { + java.lang.Object ref = kernelName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kernelName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INDEX_FIELD_NUMBER = 3; + private int index_; + /** + *
+   * Index of the output being set.
+   * 
+ * + * int32 index = 3; + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + + public static final int TENSOR_FIELD_NUMBER = 4; + private org.tensorflow.proto.TensorDescription tensor_; + /** + *
+   * Output tensor details.
+   * 
+ * + * .tensorflow.TensorDescription tensor = 4; + * @return Whether the tensor field is set. + */ + @java.lang.Override + public boolean hasTensor() { + return tensor_ != null; + } + /** + *
+   * Output tensor details.
+   * 
+ * + * .tensorflow.TensorDescription tensor = 4; + * @return The tensor. + */ + @java.lang.Override + public org.tensorflow.proto.TensorDescription getTensor() { + return tensor_ == null ? org.tensorflow.proto.TensorDescription.getDefaultInstance() : tensor_; + } + /** + *
+   * Output tensor details.
+   * 
+ * + * .tensorflow.TensorDescription tensor = 4; + */ + @java.lang.Override + public org.tensorflow.proto.TensorDescriptionOrBuilder getTensorOrBuilder() { + return getTensor(); + } + + 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 (stepId_ != 0L) { + output.writeInt64(1, stepId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kernelName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kernelName_); + } + if (index_ != 0) { + output.writeInt32(3, index_); + } + if (tensor_ != null) { + output.writeMessage(4, getTensor()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (stepId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, stepId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kernelName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kernelName_); + } + if (index_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, index_); + } + if (tensor_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTensor()); + } + 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 org.tensorflow.proto.MemoryLogTensorOutput)) { + return super.equals(obj); + } + org.tensorflow.proto.MemoryLogTensorOutput other = (org.tensorflow.proto.MemoryLogTensorOutput) obj; + + if (getStepId() + != other.getStepId()) return false; + if (!getKernelName() + .equals(other.getKernelName())) return false; + if (getIndex() + != other.getIndex()) return false; + if (hasTensor() != other.hasTensor()) return false; + if (hasTensor()) { + if (!getTensor() + .equals(other.getTensor())) 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) + STEP_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStepId()); + hash = (37 * hash) + KERNEL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKernelName().hashCode(); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex(); + if (hasTensor()) { + hash = (37 * hash) + TENSOR_FIELD_NUMBER; + hash = (53 * hash) + getTensor().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.MemoryLogTensorOutput parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemoryLogTensorOutput parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemoryLogTensorOutput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemoryLogTensorOutput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemoryLogTensorOutput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemoryLogTensorOutput parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemoryLogTensorOutput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemoryLogTensorOutput 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 org.tensorflow.proto.MemoryLogTensorOutput parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemoryLogTensorOutput 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 org.tensorflow.proto.MemoryLogTensorOutput parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemoryLogTensorOutput 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(org.tensorflow.proto.MemoryLogTensorOutput prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.MemoryLogTensorOutput} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.MemoryLogTensorOutput) + org.tensorflow.proto.MemoryLogTensorOutputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorOutput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.MemoryLogTensorOutput.class, org.tensorflow.proto.MemoryLogTensorOutput.Builder.class); + } + + // Construct using org.tensorflow.proto.MemoryLogTensorOutput.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + stepId_ = 0L; + + kernelName_ = ""; + + index_ = 0; + + if (tensorBuilder_ == null) { + tensor_ = null; + } else { + tensor_ = null; + tensorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.LogMemoryProtos.internal_static_tensorflow_MemoryLogTensorOutput_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.MemoryLogTensorOutput getDefaultInstanceForType() { + return org.tensorflow.proto.MemoryLogTensorOutput.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.MemoryLogTensorOutput build() { + org.tensorflow.proto.MemoryLogTensorOutput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.MemoryLogTensorOutput buildPartial() { + org.tensorflow.proto.MemoryLogTensorOutput result = new org.tensorflow.proto.MemoryLogTensorOutput(this); + result.stepId_ = stepId_; + result.kernelName_ = kernelName_; + result.index_ = index_; + if (tensorBuilder_ == null) { + result.tensor_ = tensor_; + } else { + result.tensor_ = tensorBuilder_.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 org.tensorflow.proto.MemoryLogTensorOutput) { + return mergeFrom((org.tensorflow.proto.MemoryLogTensorOutput)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.MemoryLogTensorOutput other) { + if (other == org.tensorflow.proto.MemoryLogTensorOutput.getDefaultInstance()) return this; + if (other.getStepId() != 0L) { + setStepId(other.getStepId()); + } + if (!other.getKernelName().isEmpty()) { + kernelName_ = other.kernelName_; + onChanged(); + } + if (other.getIndex() != 0) { + setIndex(other.getIndex()); + } + if (other.hasTensor()) { + mergeTensor(other.getTensor()); + } + 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: { + stepId_ = input.readInt64(); + + break; + } // case 8 + case 18: { + kernelName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + index_ = input.readInt32(); + + break; + } // case 24 + case 34: { + input.readMessage( + getTensorFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + 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 long stepId_ ; + /** + *
+     * Process-unique step id.
+     * 
+ * + * int64 step_id = 1; + * @return The stepId. + */ + @java.lang.Override + public long getStepId() { + return stepId_; + } + /** + *
+     * Process-unique step id.
+     * 
+ * + * int64 step_id = 1; + * @param value The stepId to set. + * @return This builder for chaining. + */ + public Builder setStepId(long value) { + + stepId_ = value; + onChanged(); + return this; + } + /** + *
+     * Process-unique step id.
+     * 
+ * + * int64 step_id = 1; + * @return This builder for chaining. + */ + public Builder clearStepId() { + + stepId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object kernelName_ = ""; + /** + *
+     * Name of the kernel producing an output as set in GraphDef, e.g.,
+     * "affine2/weights/Assign".
+     * 
+ * + * string kernel_name = 2; + * @return The kernelName. + */ + public java.lang.String getKernelName() { + java.lang.Object ref = kernelName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kernelName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Name of the kernel producing an output as set in GraphDef, e.g.,
+     * "affine2/weights/Assign".
+     * 
+ * + * string kernel_name = 2; + * @return The bytes for kernelName. + */ + public com.google.protobuf.ByteString + getKernelNameBytes() { + java.lang.Object ref = kernelName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kernelName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Name of the kernel producing an output as set in GraphDef, e.g.,
+     * "affine2/weights/Assign".
+     * 
+ * + * string kernel_name = 2; + * @param value The kernelName to set. + * @return This builder for chaining. + */ + public Builder setKernelName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kernelName_ = value; + onChanged(); + return this; + } + /** + *
+     * Name of the kernel producing an output as set in GraphDef, e.g.,
+     * "affine2/weights/Assign".
+     * 
+ * + * string kernel_name = 2; + * @return This builder for chaining. + */ + public Builder clearKernelName() { + + kernelName_ = getDefaultInstance().getKernelName(); + onChanged(); + return this; + } + /** + *
+     * Name of the kernel producing an output as set in GraphDef, e.g.,
+     * "affine2/weights/Assign".
+     * 
+ * + * string kernel_name = 2; + * @param value The bytes for kernelName to set. + * @return This builder for chaining. + */ + public Builder setKernelNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kernelName_ = value; + onChanged(); + return this; + } + + private int index_ ; + /** + *
+     * Index of the output being set.
+     * 
+ * + * int32 index = 3; + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + /** + *
+     * Index of the output being set.
+     * 
+ * + * int32 index = 3; + * @param value The index to set. + * @return This builder for chaining. + */ + public Builder setIndex(int value) { + + index_ = value; + onChanged(); + return this; + } + /** + *
+     * Index of the output being set.
+     * 
+ * + * int32 index = 3; + * @return This builder for chaining. + */ + public Builder clearIndex() { + + index_ = 0; + onChanged(); + return this; + } + + private org.tensorflow.proto.TensorDescription tensor_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorDescription, org.tensorflow.proto.TensorDescription.Builder, org.tensorflow.proto.TensorDescriptionOrBuilder> tensorBuilder_; + /** + *
+     * Output tensor details.
+     * 
+ * + * .tensorflow.TensorDescription tensor = 4; + * @return Whether the tensor field is set. + */ + public boolean hasTensor() { + return tensorBuilder_ != null || tensor_ != null; + } + /** + *
+     * Output tensor details.
+     * 
+ * + * .tensorflow.TensorDescription tensor = 4; + * @return The tensor. + */ + public org.tensorflow.proto.TensorDescription getTensor() { + if (tensorBuilder_ == null) { + return tensor_ == null ? org.tensorflow.proto.TensorDescription.getDefaultInstance() : tensor_; + } else { + return tensorBuilder_.getMessage(); + } + } + /** + *
+     * Output tensor details.
+     * 
+ * + * .tensorflow.TensorDescription tensor = 4; + */ + public Builder setTensor(org.tensorflow.proto.TensorDescription value) { + if (tensorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tensor_ = value; + onChanged(); + } else { + tensorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output tensor details.
+     * 
+ * + * .tensorflow.TensorDescription tensor = 4; + */ + public Builder setTensor( + org.tensorflow.proto.TensorDescription.Builder builderForValue) { + if (tensorBuilder_ == null) { + tensor_ = builderForValue.build(); + onChanged(); + } else { + tensorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output tensor details.
+     * 
+ * + * .tensorflow.TensorDescription tensor = 4; + */ + public Builder mergeTensor(org.tensorflow.proto.TensorDescription value) { + if (tensorBuilder_ == null) { + if (tensor_ != null) { + tensor_ = + org.tensorflow.proto.TensorDescription.newBuilder(tensor_).mergeFrom(value).buildPartial(); + } else { + tensor_ = value; + } + onChanged(); + } else { + tensorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output tensor details.
+     * 
+ * + * .tensorflow.TensorDescription tensor = 4; + */ + public Builder clearTensor() { + if (tensorBuilder_ == null) { + tensor_ = null; + onChanged(); + } else { + tensor_ = null; + tensorBuilder_ = null; + } + + return this; + } + /** + *
+     * Output tensor details.
+     * 
+ * + * .tensorflow.TensorDescription tensor = 4; + */ + public org.tensorflow.proto.TensorDescription.Builder getTensorBuilder() { + + onChanged(); + return getTensorFieldBuilder().getBuilder(); + } + /** + *
+     * Output tensor details.
+     * 
+ * + * .tensorflow.TensorDescription tensor = 4; + */ + public org.tensorflow.proto.TensorDescriptionOrBuilder getTensorOrBuilder() { + if (tensorBuilder_ != null) { + return tensorBuilder_.getMessageOrBuilder(); + } else { + return tensor_ == null ? + org.tensorflow.proto.TensorDescription.getDefaultInstance() : tensor_; + } + } + /** + *
+     * Output tensor details.
+     * 
+ * + * .tensorflow.TensorDescription tensor = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorDescription, org.tensorflow.proto.TensorDescription.Builder, org.tensorflow.proto.TensorDescriptionOrBuilder> + getTensorFieldBuilder() { + if (tensorBuilder_ == null) { + tensorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorDescription, org.tensorflow.proto.TensorDescription.Builder, org.tensorflow.proto.TensorDescriptionOrBuilder>( + getTensor(), + getParentForChildren(), + isClean()); + tensor_ = null; + } + return tensorBuilder_; + } + @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:tensorflow.MemoryLogTensorOutput) + } + + // @@protoc_insertion_point(class_scope:tensorflow.MemoryLogTensorOutput) + private static final org.tensorflow.proto.MemoryLogTensorOutput DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.MemoryLogTensorOutput(); + } + + public static org.tensorflow.proto.MemoryLogTensorOutput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemoryLogTensorOutput 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 org.tensorflow.proto.MemoryLogTensorOutput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogTensorOutputOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogTensorOutputOrBuilder.java similarity index 80% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogTensorOutputOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogTensorOutputOrBuilder.java index b9275e22f7e..97a99804141 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MemoryLogTensorOutputOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryLogTensorOutputOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/log_memory.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface MemoryLogTensorOutputOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.MemoryLogTensorOutput) @@ -13,6 +13,7 @@ public interface MemoryLogTensorOutputOrBuilder extends * * * int64 step_id = 1; + * @return The stepId. */ long getStepId(); @@ -23,6 +24,7 @@ public interface MemoryLogTensorOutputOrBuilder extends * * * string kernel_name = 2; + * @return The kernelName. */ java.lang.String getKernelName(); /** @@ -32,6 +34,7 @@ public interface MemoryLogTensorOutputOrBuilder extends * * * string kernel_name = 2; + * @return The bytes for kernelName. */ com.google.protobuf.ByteString getKernelNameBytes(); @@ -42,6 +45,7 @@ public interface MemoryLogTensorOutputOrBuilder extends * * * int32 index = 3; + * @return The index. */ int getIndex(); @@ -51,6 +55,7 @@ public interface MemoryLogTensorOutputOrBuilder extends * * * .tensorflow.TensorDescription tensor = 4; + * @return Whether the tensor field is set. */ boolean hasTensor(); /** @@ -59,8 +64,9 @@ public interface MemoryLogTensorOutputOrBuilder extends * * * .tensorflow.TensorDescription tensor = 4; + * @return The tensor. */ - org.tensorflow.proto.framework.TensorDescription getTensor(); + org.tensorflow.proto.TensorDescription getTensor(); /** *
    * Output tensor details.
@@ -68,5 +74,5 @@ public interface MemoryLogTensorOutputOrBuilder extends
    *
    * .tensorflow.TensorDescription tensor = 4;
    */
-  org.tensorflow.proto.framework.TensorDescriptionOrBuilder getTensorOrBuilder();
+  org.tensorflow.proto.TensorDescriptionOrBuilder getTensorOrBuilder();
 }
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryStats.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryStats.java
new file mode 100644
index 00000000000..cfe5f877387
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryStats.java
@@ -0,0 +1,1044 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/framework/step_stats.proto
+
+package org.tensorflow.proto;
+
+/**
+ * 
+ * For memory tracking.
+ * 
+ * + * Protobuf type {@code tensorflow.MemoryStats} + */ +public final class MemoryStats extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.MemoryStats) + MemoryStatsOrBuilder { +private static final long serialVersionUID = 0L; + // Use MemoryStats.newBuilder() to construct. + private MemoryStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MemoryStats() { + persistentTensorAllocIds_ = emptyLongList(); + devicePersistentTensorAllocIds_ = emptyLongList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MemoryStats(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_MemoryStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_MemoryStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.MemoryStats.class, org.tensorflow.proto.MemoryStats.Builder.class); + } + + public static final int TEMP_MEMORY_SIZE_FIELD_NUMBER = 1; + private long tempMemorySize_; + /** + * int64 temp_memory_size = 1; + * @return The tempMemorySize. + */ + @java.lang.Override + public long getTempMemorySize() { + return tempMemorySize_; + } + + public static final int PERSISTENT_MEMORY_SIZE_FIELD_NUMBER = 3; + private long persistentMemorySize_; + /** + * int64 persistent_memory_size = 3; + * @return The persistentMemorySize. + */ + @java.lang.Override + public long getPersistentMemorySize() { + return persistentMemorySize_; + } + + public static final int PERSISTENT_TENSOR_ALLOC_IDS_FIELD_NUMBER = 5; + private com.google.protobuf.Internal.LongList persistentTensorAllocIds_; + /** + * repeated int64 persistent_tensor_alloc_ids = 5; + * @return A list containing the persistentTensorAllocIds. + */ + @java.lang.Override + public java.util.List + getPersistentTensorAllocIdsList() { + return persistentTensorAllocIds_; + } + /** + * repeated int64 persistent_tensor_alloc_ids = 5; + * @return The count of persistentTensorAllocIds. + */ + public int getPersistentTensorAllocIdsCount() { + return persistentTensorAllocIds_.size(); + } + /** + * repeated int64 persistent_tensor_alloc_ids = 5; + * @param index The index of the element to return. + * @return The persistentTensorAllocIds at the given index. + */ + public long getPersistentTensorAllocIds(int index) { + return persistentTensorAllocIds_.getLong(index); + } + private int persistentTensorAllocIdsMemoizedSerializedSize = -1; + + public static final int DEVICE_TEMP_MEMORY_SIZE_FIELD_NUMBER = 2; + private long deviceTempMemorySize_; + /** + * int64 device_temp_memory_size = 2 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_temp_memory_size is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=47 + * @return The deviceTempMemorySize. + */ + @java.lang.Override + @java.lang.Deprecated public long getDeviceTempMemorySize() { + return deviceTempMemorySize_; + } + + public static final int DEVICE_PERSISTENT_MEMORY_SIZE_FIELD_NUMBER = 4; + private long devicePersistentMemorySize_; + /** + * int64 device_persistent_memory_size = 4 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_persistent_memory_size is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=48 + * @return The devicePersistentMemorySize. + */ + @java.lang.Override + @java.lang.Deprecated public long getDevicePersistentMemorySize() { + return devicePersistentMemorySize_; + } + + public static final int DEVICE_PERSISTENT_TENSOR_ALLOC_IDS_FIELD_NUMBER = 6; + private com.google.protobuf.Internal.LongList devicePersistentTensorAllocIds_; + /** + * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=49 + * @return A list containing the devicePersistentTensorAllocIds. + */ + @java.lang.Override + @java.lang.Deprecated public java.util.List + getDevicePersistentTensorAllocIdsList() { + return devicePersistentTensorAllocIds_; + } + /** + * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=49 + * @return The count of devicePersistentTensorAllocIds. + */ + @java.lang.Deprecated public int getDevicePersistentTensorAllocIdsCount() { + return devicePersistentTensorAllocIds_.size(); + } + /** + * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=49 + * @param index The index of the element to return. + * @return The devicePersistentTensorAllocIds at the given index. + */ + @java.lang.Deprecated public long getDevicePersistentTensorAllocIds(int index) { + return devicePersistentTensorAllocIds_.getLong(index); + } + private int devicePersistentTensorAllocIdsMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (tempMemorySize_ != 0L) { + output.writeInt64(1, tempMemorySize_); + } + if (deviceTempMemorySize_ != 0L) { + output.writeInt64(2, deviceTempMemorySize_); + } + if (persistentMemorySize_ != 0L) { + output.writeInt64(3, persistentMemorySize_); + } + if (devicePersistentMemorySize_ != 0L) { + output.writeInt64(4, devicePersistentMemorySize_); + } + if (getPersistentTensorAllocIdsList().size() > 0) { + output.writeUInt32NoTag(42); + output.writeUInt32NoTag(persistentTensorAllocIdsMemoizedSerializedSize); + } + for (int i = 0; i < persistentTensorAllocIds_.size(); i++) { + output.writeInt64NoTag(persistentTensorAllocIds_.getLong(i)); + } + if (getDevicePersistentTensorAllocIdsList().size() > 0) { + output.writeUInt32NoTag(50); + output.writeUInt32NoTag(devicePersistentTensorAllocIdsMemoizedSerializedSize); + } + for (int i = 0; i < devicePersistentTensorAllocIds_.size(); i++) { + output.writeInt64NoTag(devicePersistentTensorAllocIds_.getLong(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (tempMemorySize_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, tempMemorySize_); + } + if (deviceTempMemorySize_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, deviceTempMemorySize_); + } + if (persistentMemorySize_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, persistentMemorySize_); + } + if (devicePersistentMemorySize_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, devicePersistentMemorySize_); + } + { + int dataSize = 0; + for (int i = 0; i < persistentTensorAllocIds_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(persistentTensorAllocIds_.getLong(i)); + } + size += dataSize; + if (!getPersistentTensorAllocIdsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + persistentTensorAllocIdsMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < devicePersistentTensorAllocIds_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(devicePersistentTensorAllocIds_.getLong(i)); + } + size += dataSize; + if (!getDevicePersistentTensorAllocIdsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + devicePersistentTensorAllocIdsMemoizedSerializedSize = dataSize; + } + 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 org.tensorflow.proto.MemoryStats)) { + return super.equals(obj); + } + org.tensorflow.proto.MemoryStats other = (org.tensorflow.proto.MemoryStats) obj; + + if (getTempMemorySize() + != other.getTempMemorySize()) return false; + if (getPersistentMemorySize() + != other.getPersistentMemorySize()) return false; + if (!getPersistentTensorAllocIdsList() + .equals(other.getPersistentTensorAllocIdsList())) return false; + if (getDeviceTempMemorySize() + != other.getDeviceTempMemorySize()) return false; + if (getDevicePersistentMemorySize() + != other.getDevicePersistentMemorySize()) return false; + if (!getDevicePersistentTensorAllocIdsList() + .equals(other.getDevicePersistentTensorAllocIdsList())) 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) + TEMP_MEMORY_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTempMemorySize()); + hash = (37 * hash) + PERSISTENT_MEMORY_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPersistentMemorySize()); + if (getPersistentTensorAllocIdsCount() > 0) { + hash = (37 * hash) + PERSISTENT_TENSOR_ALLOC_IDS_FIELD_NUMBER; + hash = (53 * hash) + getPersistentTensorAllocIdsList().hashCode(); + } + hash = (37 * hash) + DEVICE_TEMP_MEMORY_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDeviceTempMemorySize()); + hash = (37 * hash) + DEVICE_PERSISTENT_MEMORY_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDevicePersistentMemorySize()); + if (getDevicePersistentTensorAllocIdsCount() > 0) { + hash = (37 * hash) + DEVICE_PERSISTENT_TENSOR_ALLOC_IDS_FIELD_NUMBER; + hash = (53 * hash) + getDevicePersistentTensorAllocIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.MemoryStats parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemoryStats parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemoryStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemoryStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemoryStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.MemoryStats parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.MemoryStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemoryStats 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 org.tensorflow.proto.MemoryStats parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemoryStats 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 org.tensorflow.proto.MemoryStats parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.MemoryStats 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(org.tensorflow.proto.MemoryStats 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; + } + /** + *
+   * For memory tracking.
+   * 
+ * + * Protobuf type {@code tensorflow.MemoryStats} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.MemoryStats) + org.tensorflow.proto.MemoryStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_MemoryStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_MemoryStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.MemoryStats.class, org.tensorflow.proto.MemoryStats.Builder.class); + } + + // Construct using org.tensorflow.proto.MemoryStats.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + tempMemorySize_ = 0L; + + persistentMemorySize_ = 0L; + + persistentTensorAllocIds_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + deviceTempMemorySize_ = 0L; + + devicePersistentMemorySize_ = 0L; + + devicePersistentTensorAllocIds_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_MemoryStats_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.MemoryStats getDefaultInstanceForType() { + return org.tensorflow.proto.MemoryStats.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.MemoryStats build() { + org.tensorflow.proto.MemoryStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.MemoryStats buildPartial() { + org.tensorflow.proto.MemoryStats result = new org.tensorflow.proto.MemoryStats(this); + int from_bitField0_ = bitField0_; + result.tempMemorySize_ = tempMemorySize_; + result.persistentMemorySize_ = persistentMemorySize_; + if (((bitField0_ & 0x00000001) != 0)) { + persistentTensorAllocIds_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.persistentTensorAllocIds_ = persistentTensorAllocIds_; + result.deviceTempMemorySize_ = deviceTempMemorySize_; + result.devicePersistentMemorySize_ = devicePersistentMemorySize_; + if (((bitField0_ & 0x00000002) != 0)) { + devicePersistentTensorAllocIds_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.devicePersistentTensorAllocIds_ = devicePersistentTensorAllocIds_; + 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 org.tensorflow.proto.MemoryStats) { + return mergeFrom((org.tensorflow.proto.MemoryStats)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.MemoryStats other) { + if (other == org.tensorflow.proto.MemoryStats.getDefaultInstance()) return this; + if (other.getTempMemorySize() != 0L) { + setTempMemorySize(other.getTempMemorySize()); + } + if (other.getPersistentMemorySize() != 0L) { + setPersistentMemorySize(other.getPersistentMemorySize()); + } + if (!other.persistentTensorAllocIds_.isEmpty()) { + if (persistentTensorAllocIds_.isEmpty()) { + persistentTensorAllocIds_ = other.persistentTensorAllocIds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePersistentTensorAllocIdsIsMutable(); + persistentTensorAllocIds_.addAll(other.persistentTensorAllocIds_); + } + onChanged(); + } + if (other.getDeviceTempMemorySize() != 0L) { + setDeviceTempMemorySize(other.getDeviceTempMemorySize()); + } + if (other.getDevicePersistentMemorySize() != 0L) { + setDevicePersistentMemorySize(other.getDevicePersistentMemorySize()); + } + if (!other.devicePersistentTensorAllocIds_.isEmpty()) { + if (devicePersistentTensorAllocIds_.isEmpty()) { + devicePersistentTensorAllocIds_ = other.devicePersistentTensorAllocIds_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDevicePersistentTensorAllocIdsIsMutable(); + devicePersistentTensorAllocIds_.addAll(other.devicePersistentTensorAllocIds_); + } + 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 8: { + tempMemorySize_ = input.readInt64(); + + break; + } // case 8 + case 16: { + deviceTempMemorySize_ = input.readInt64(); + + break; + } // case 16 + case 24: { + persistentMemorySize_ = input.readInt64(); + + break; + } // case 24 + case 32: { + devicePersistentMemorySize_ = input.readInt64(); + + break; + } // case 32 + case 40: { + long v = input.readInt64(); + ensurePersistentTensorAllocIdsIsMutable(); + persistentTensorAllocIds_.addLong(v); + break; + } // case 40 + case 42: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensurePersistentTensorAllocIdsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + persistentTensorAllocIds_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 42 + case 48: { + long v = input.readInt64(); + ensureDevicePersistentTensorAllocIdsIsMutable(); + devicePersistentTensorAllocIds_.addLong(v); + break; + } // case 48 + case 50: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureDevicePersistentTensorAllocIdsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + devicePersistentTensorAllocIds_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 50 + 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 long tempMemorySize_ ; + /** + * int64 temp_memory_size = 1; + * @return The tempMemorySize. + */ + @java.lang.Override + public long getTempMemorySize() { + return tempMemorySize_; + } + /** + * int64 temp_memory_size = 1; + * @param value The tempMemorySize to set. + * @return This builder for chaining. + */ + public Builder setTempMemorySize(long value) { + + tempMemorySize_ = value; + onChanged(); + return this; + } + /** + * int64 temp_memory_size = 1; + * @return This builder for chaining. + */ + public Builder clearTempMemorySize() { + + tempMemorySize_ = 0L; + onChanged(); + return this; + } + + private long persistentMemorySize_ ; + /** + * int64 persistent_memory_size = 3; + * @return The persistentMemorySize. + */ + @java.lang.Override + public long getPersistentMemorySize() { + return persistentMemorySize_; + } + /** + * int64 persistent_memory_size = 3; + * @param value The persistentMemorySize to set. + * @return This builder for chaining. + */ + public Builder setPersistentMemorySize(long value) { + + persistentMemorySize_ = value; + onChanged(); + return this; + } + /** + * int64 persistent_memory_size = 3; + * @return This builder for chaining. + */ + public Builder clearPersistentMemorySize() { + + persistentMemorySize_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.LongList persistentTensorAllocIds_ = emptyLongList(); + private void ensurePersistentTensorAllocIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + persistentTensorAllocIds_ = mutableCopy(persistentTensorAllocIds_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated int64 persistent_tensor_alloc_ids = 5; + * @return A list containing the persistentTensorAllocIds. + */ + public java.util.List + getPersistentTensorAllocIdsList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(persistentTensorAllocIds_) : persistentTensorAllocIds_; + } + /** + * repeated int64 persistent_tensor_alloc_ids = 5; + * @return The count of persistentTensorAllocIds. + */ + public int getPersistentTensorAllocIdsCount() { + return persistentTensorAllocIds_.size(); + } + /** + * repeated int64 persistent_tensor_alloc_ids = 5; + * @param index The index of the element to return. + * @return The persistentTensorAllocIds at the given index. + */ + public long getPersistentTensorAllocIds(int index) { + return persistentTensorAllocIds_.getLong(index); + } + /** + * repeated int64 persistent_tensor_alloc_ids = 5; + * @param index The index to set the value at. + * @param value The persistentTensorAllocIds to set. + * @return This builder for chaining. + */ + public Builder setPersistentTensorAllocIds( + int index, long value) { + ensurePersistentTensorAllocIdsIsMutable(); + persistentTensorAllocIds_.setLong(index, value); + onChanged(); + return this; + } + /** + * repeated int64 persistent_tensor_alloc_ids = 5; + * @param value The persistentTensorAllocIds to add. + * @return This builder for chaining. + */ + public Builder addPersistentTensorAllocIds(long value) { + ensurePersistentTensorAllocIdsIsMutable(); + persistentTensorAllocIds_.addLong(value); + onChanged(); + return this; + } + /** + * repeated int64 persistent_tensor_alloc_ids = 5; + * @param values The persistentTensorAllocIds to add. + * @return This builder for chaining. + */ + public Builder addAllPersistentTensorAllocIds( + java.lang.Iterable values) { + ensurePersistentTensorAllocIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, persistentTensorAllocIds_); + onChanged(); + return this; + } + /** + * repeated int64 persistent_tensor_alloc_ids = 5; + * @return This builder for chaining. + */ + public Builder clearPersistentTensorAllocIds() { + persistentTensorAllocIds_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private long deviceTempMemorySize_ ; + /** + * int64 device_temp_memory_size = 2 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_temp_memory_size is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=47 + * @return The deviceTempMemorySize. + */ + @java.lang.Override + @java.lang.Deprecated public long getDeviceTempMemorySize() { + return deviceTempMemorySize_; + } + /** + * int64 device_temp_memory_size = 2 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_temp_memory_size is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=47 + * @param value The deviceTempMemorySize to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setDeviceTempMemorySize(long value) { + + deviceTempMemorySize_ = value; + onChanged(); + return this; + } + /** + * int64 device_temp_memory_size = 2 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_temp_memory_size is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=47 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearDeviceTempMemorySize() { + + deviceTempMemorySize_ = 0L; + onChanged(); + return this; + } + + private long devicePersistentMemorySize_ ; + /** + * int64 device_persistent_memory_size = 4 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_persistent_memory_size is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=48 + * @return The devicePersistentMemorySize. + */ + @java.lang.Override + @java.lang.Deprecated public long getDevicePersistentMemorySize() { + return devicePersistentMemorySize_; + } + /** + * int64 device_persistent_memory_size = 4 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_persistent_memory_size is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=48 + * @param value The devicePersistentMemorySize to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setDevicePersistentMemorySize(long value) { + + devicePersistentMemorySize_ = value; + onChanged(); + return this; + } + /** + * int64 device_persistent_memory_size = 4 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_persistent_memory_size is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=48 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearDevicePersistentMemorySize() { + + devicePersistentMemorySize_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.LongList devicePersistentTensorAllocIds_ = emptyLongList(); + private void ensureDevicePersistentTensorAllocIdsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + devicePersistentTensorAllocIds_ = mutableCopy(devicePersistentTensorAllocIds_); + bitField0_ |= 0x00000002; + } + } + /** + * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=49 + * @return A list containing the devicePersistentTensorAllocIds. + */ + @java.lang.Deprecated public java.util.List + getDevicePersistentTensorAllocIdsList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(devicePersistentTensorAllocIds_) : devicePersistentTensorAllocIds_; + } + /** + * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=49 + * @return The count of devicePersistentTensorAllocIds. + */ + @java.lang.Deprecated public int getDevicePersistentTensorAllocIdsCount() { + return devicePersistentTensorAllocIds_.size(); + } + /** + * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=49 + * @param index The index of the element to return. + * @return The devicePersistentTensorAllocIds at the given index. + */ + @java.lang.Deprecated public long getDevicePersistentTensorAllocIds(int index) { + return devicePersistentTensorAllocIds_.getLong(index); + } + /** + * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=49 + * @param index The index to set the value at. + * @param value The devicePersistentTensorAllocIds to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setDevicePersistentTensorAllocIds( + int index, long value) { + ensureDevicePersistentTensorAllocIdsIsMutable(); + devicePersistentTensorAllocIds_.setLong(index, value); + onChanged(); + return this; + } + /** + * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=49 + * @param value The devicePersistentTensorAllocIds to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder addDevicePersistentTensorAllocIds(long value) { + ensureDevicePersistentTensorAllocIdsIsMutable(); + devicePersistentTensorAllocIds_.addLong(value); + onChanged(); + return this; + } + /** + * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=49 + * @param values The devicePersistentTensorAllocIds to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder addAllDevicePersistentTensorAllocIds( + java.lang.Iterable values) { + ensureDevicePersistentTensorAllocIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, devicePersistentTensorAllocIds_); + onChanged(); + return this; + } + /** + * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=49 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearDevicePersistentTensorAllocIds() { + devicePersistentTensorAllocIds_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000002); + 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:tensorflow.MemoryStats) + } + + // @@protoc_insertion_point(class_scope:tensorflow.MemoryStats) + private static final org.tensorflow.proto.MemoryStats DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.MemoryStats(); + } + + public static org.tensorflow.proto.MemoryStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MemoryStats 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 org.tensorflow.proto.MemoryStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryStatsOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryStatsOrBuilder.java new file mode 100644 index 00000000000..d435e4b6716 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MemoryStatsOrBuilder.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/step_stats.proto + +package org.tensorflow.proto; + +public interface MemoryStatsOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.MemoryStats) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 temp_memory_size = 1; + * @return The tempMemorySize. + */ + long getTempMemorySize(); + + /** + * int64 persistent_memory_size = 3; + * @return The persistentMemorySize. + */ + long getPersistentMemorySize(); + + /** + * repeated int64 persistent_tensor_alloc_ids = 5; + * @return A list containing the persistentTensorAllocIds. + */ + java.util.List getPersistentTensorAllocIdsList(); + /** + * repeated int64 persistent_tensor_alloc_ids = 5; + * @return The count of persistentTensorAllocIds. + */ + int getPersistentTensorAllocIdsCount(); + /** + * repeated int64 persistent_tensor_alloc_ids = 5; + * @param index The index of the element to return. + * @return The persistentTensorAllocIds at the given index. + */ + long getPersistentTensorAllocIds(int index); + + /** + * int64 device_temp_memory_size = 2 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_temp_memory_size is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=47 + * @return The deviceTempMemorySize. + */ + @java.lang.Deprecated long getDeviceTempMemorySize(); + + /** + * int64 device_persistent_memory_size = 4 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_persistent_memory_size is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=48 + * @return The devicePersistentMemorySize. + */ + @java.lang.Deprecated long getDevicePersistentMemorySize(); + + /** + * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=49 + * @return A list containing the devicePersistentTensorAllocIds. + */ + @java.lang.Deprecated java.util.List getDevicePersistentTensorAllocIdsList(); + /** + * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=49 + * @return The count of devicePersistentTensorAllocIds. + */ + @java.lang.Deprecated int getDevicePersistentTensorAllocIdsCount(); + /** + * repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; + * @deprecated tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. + * See tensorflow/core/framework/step_stats.proto;l=49 + * @param index The index of the element to return. + * @return The devicePersistentTensorAllocIds at the given index. + */ + @java.lang.Deprecated long getDevicePersistentTensorAllocIds(int index); +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MetaGraphDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MetaGraphDef.java similarity index 78% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MetaGraphDef.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MetaGraphDef.java index 37c878cbff2..c01e3be793a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MetaGraphDef.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MetaGraphDef.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/meta_graph.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; /** *
@@ -20,7 +20,7 @@
  *
  * Protobuf type {@code tensorflow.MetaGraphDef}
  */
-public  final class MetaGraphDef extends
+public final class MetaGraphDef extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.MetaGraphDef)
     MetaGraphDefOrBuilder {
@@ -45,137 +45,9 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private MetaGraphDef(
-      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: {
-            org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef.Builder subBuilder = null;
-            if (metaInfoDef_ != null) {
-              subBuilder = metaInfoDef_.toBuilder();
-            }
-            metaInfoDef_ = input.readMessage(org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(metaInfoDef_);
-              metaInfoDef_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 18: {
-            org.tensorflow.proto.framework.GraphDef.Builder subBuilder = null;
-            if (graphDef_ != null) {
-              subBuilder = graphDef_.toBuilder();
-            }
-            graphDef_ = input.readMessage(org.tensorflow.proto.framework.GraphDef.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(graphDef_);
-              graphDef_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 26: {
-            org.tensorflow.proto.util.SaverDef.Builder subBuilder = null;
-            if (saverDef_ != null) {
-              subBuilder = saverDef_.toBuilder();
-            }
-            saverDef_ = input.readMessage(org.tensorflow.proto.util.SaverDef.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(saverDef_);
-              saverDef_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 34: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              collectionDef_ = com.google.protobuf.MapField.newMapField(
-                  CollectionDefDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
-            }
-            com.google.protobuf.MapEntry
-            collectionDef__ = input.readMessage(
-                CollectionDefDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            collectionDef_.getMutableMap().put(
-                collectionDef__.getKey(), collectionDef__.getValue());
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              signatureDef_ = com.google.protobuf.MapField.newMapField(
-                  SignatureDefDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000002;
-            }
-            com.google.protobuf.MapEntry
-            signatureDef__ = input.readMessage(
-                SignatureDefDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            signatureDef_.getMutableMap().put(
-                signatureDef__.getKey(), signatureDef__.getValue());
-            break;
-          }
-          case 50: {
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              assetFileDef_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000004;
-            }
-            assetFileDef_.add(
-                input.readMessage(org.tensorflow.proto.framework.AssetFileDef.parser(), extensionRegistry));
-            break;
-          }
-          case 58: {
-            org.tensorflow.proto.framework.SavedObjectGraph.Builder subBuilder = null;
-            if (objectGraphDef_ != null) {
-              subBuilder = objectGraphDef_.toBuilder();
-            }
-            objectGraphDef_ = input.readMessage(org.tensorflow.proto.framework.SavedObjectGraph.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(objectGraphDef_);
-              objectGraphDef_ = subBuilder.buildPartial();
-            }
-
-            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_ & 0x00000004) != 0)) {
-        assetFileDef_ = java.util.Collections.unmodifiableList(assetFileDef_);
-      }
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_descriptor;
+    return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
@@ -195,9 +67,9 @@ protected com.google.protobuf.MapField internalGetMapField(
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_fieldAccessorTable
+    return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.framework.MetaGraphDef.class, org.tensorflow.proto.framework.MetaGraphDef.Builder.class);
+            org.tensorflow.proto.MetaGraphDef.class, org.tensorflow.proto.MetaGraphDef.Builder.class);
   }
 
   public interface MetaInfoDefOrBuilder extends
@@ -211,6 +83,7 @@ public interface MetaInfoDefOrBuilder extends
      * 
* * string meta_graph_version = 1; + * @return The metaGraphVersion. */ java.lang.String getMetaGraphVersion(); /** @@ -220,6 +93,7 @@ public interface MetaInfoDefOrBuilder extends *
* * string meta_graph_version = 1; + * @return The bytes for metaGraphVersion. */ com.google.protobuf.ByteString getMetaGraphVersionBytes(); @@ -231,6 +105,7 @@ public interface MetaInfoDefOrBuilder extends * * * .tensorflow.OpList stripped_op_list = 2; + * @return Whether the strippedOpList field is set. */ boolean hasStrippedOpList(); /** @@ -240,8 +115,9 @@ public interface MetaInfoDefOrBuilder extends * * * .tensorflow.OpList stripped_op_list = 2; + * @return The strippedOpList. */ - org.tensorflow.proto.framework.OpList getStrippedOpList(); + org.tensorflow.proto.OpList getStrippedOpList(); /** *
      * A copy of the OpDefs used by the producer of this graph_def.
@@ -250,7 +126,7 @@ public interface MetaInfoDefOrBuilder extends
      *
      * .tensorflow.OpList stripped_op_list = 2;
      */
-    org.tensorflow.proto.framework.OpListOrBuilder getStrippedOpListOrBuilder();
+    org.tensorflow.proto.OpListOrBuilder getStrippedOpListOrBuilder();
 
     /**
      * 
@@ -259,6 +135,7 @@ public interface MetaInfoDefOrBuilder extends
      * 
* * .google.protobuf.Any any_info = 3; + * @return Whether the anyInfo field is set. */ boolean hasAnyInfo(); /** @@ -268,6 +145,7 @@ public interface MetaInfoDefOrBuilder extends *
* * .google.protobuf.Any any_info = 3; + * @return The anyInfo. */ com.google.protobuf.Any getAnyInfo(); /** @@ -290,6 +168,7 @@ public interface MetaInfoDefOrBuilder extends * * * repeated string tags = 4; + * @return A list containing the tags. */ java.util.List getTagsList(); @@ -303,6 +182,7 @@ public interface MetaInfoDefOrBuilder extends * * * repeated string tags = 4; + * @return The count of tags. */ int getTagsCount(); /** @@ -315,6 +195,8 @@ public interface MetaInfoDefOrBuilder extends * * * repeated string tags = 4; + * @param index The index of the element to return. + * @return The tags at the given index. */ java.lang.String getTags(int index); /** @@ -327,6 +209,8 @@ public interface MetaInfoDefOrBuilder extends * * * repeated string tags = 4; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. */ com.google.protobuf.ByteString getTagsBytes(int index); @@ -339,6 +223,7 @@ public interface MetaInfoDefOrBuilder extends * * * string tensorflow_version = 5; + * @return The tensorflowVersion. */ java.lang.String getTensorflowVersion(); /** @@ -349,6 +234,7 @@ public interface MetaInfoDefOrBuilder extends * * * string tensorflow_version = 5; + * @return The bytes for tensorflowVersion. */ com.google.protobuf.ByteString getTensorflowVersionBytes(); @@ -361,6 +247,7 @@ public interface MetaInfoDefOrBuilder extends * * * string tensorflow_git_version = 6; + * @return The tensorflowGitVersion. */ java.lang.String getTensorflowGitVersion(); /** @@ -371,6 +258,7 @@ public interface MetaInfoDefOrBuilder extends * * * string tensorflow_git_version = 6; + * @return The bytes for tensorflowGitVersion. */ com.google.protobuf.ByteString getTensorflowGitVersionBytes(); @@ -382,6 +270,7 @@ public interface MetaInfoDefOrBuilder extends * * * bool stripped_default_attrs = 7; + * @return The strippedDefaultAttrs. */ boolean getStrippedDefaultAttrs(); @@ -425,9 +314,11 @@ boolean containsFunctionAliases( * map<string, string> function_aliases = 8; */ - java.lang.String getFunctionAliasesOrDefault( + /* nullable */ +java.lang.String getFunctionAliasesOrDefault( java.lang.String key, - java.lang.String defaultValue); + /* nullable */ +java.lang.String defaultValue); /** *
      * FunctionDef name to aliases mapping.
@@ -447,7 +338,7 @@ java.lang.String getFunctionAliasesOrThrow(
    *
    * Protobuf type {@code tensorflow.MetaGraphDef.MetaInfoDef}
    */
-  public  static final class MetaInfoDef extends
+  public static final class MetaInfoDef extends
       com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:tensorflow.MetaGraphDef.MetaInfoDef)
       MetaInfoDefOrBuilder {
@@ -475,121 +366,9 @@ protected java.lang.Object newInstance(
     getUnknownFields() {
       return this.unknownFields;
     }
-    private MetaInfoDef(
-        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: {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              metaGraphVersion_ = s;
-              break;
-            }
-            case 18: {
-              org.tensorflow.proto.framework.OpList.Builder subBuilder = null;
-              if (strippedOpList_ != null) {
-                subBuilder = strippedOpList_.toBuilder();
-              }
-              strippedOpList_ = input.readMessage(org.tensorflow.proto.framework.OpList.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(strippedOpList_);
-                strippedOpList_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-            case 26: {
-              com.google.protobuf.Any.Builder subBuilder = null;
-              if (anyInfo_ != null) {
-                subBuilder = anyInfo_.toBuilder();
-              }
-              anyInfo_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(anyInfo_);
-                anyInfo_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-            case 34: {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                tags_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              tags_.add(s);
-              break;
-            }
-            case 42: {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              tensorflowVersion_ = s;
-              break;
-            }
-            case 50: {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              tensorflowGitVersion_ = s;
-              break;
-            }
-            case 56: {
-
-              strippedDefaultAttrs_ = input.readBool();
-              break;
-            }
-            case 66: {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                functionAliases_ = com.google.protobuf.MapField.newMapField(
-                    FunctionAliasesDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000002;
-              }
-              com.google.protobuf.MapEntry
-              functionAliases__ = input.readMessage(
-                  FunctionAliasesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              functionAliases_.getMutableMap().put(
-                  functionAliases__.getKey(), functionAliases__.getValue());
-              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)) {
-          tags_ = tags_.getUnmodifiableView();
-        }
-        this.unknownFields = unknownFields.build();
-        makeExtensionsImmutable();
-      }
-    }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_MetaInfoDef_descriptor;
+      return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_MetaInfoDef_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
@@ -607,9 +386,9 @@ protected com.google.protobuf.MapField internalGetMapField(
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_MetaInfoDef_fieldAccessorTable
+      return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_MetaInfoDef_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef.class, org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef.Builder.class);
+              org.tensorflow.proto.MetaGraphDef.MetaInfoDef.class, org.tensorflow.proto.MetaGraphDef.MetaInfoDef.Builder.class);
     }
 
     public static final int META_GRAPH_VERSION_FIELD_NUMBER = 1;
@@ -621,7 +400,9 @@ protected com.google.protobuf.MapField internalGetMapField(
      * 
* * string meta_graph_version = 1; + * @return The metaGraphVersion. */ + @java.lang.Override public java.lang.String getMetaGraphVersion() { java.lang.Object ref = metaGraphVersion_; if (ref instanceof java.lang.String) { @@ -641,7 +422,9 @@ public java.lang.String getMetaGraphVersion() { * * * string meta_graph_version = 1; + * @return The bytes for metaGraphVersion. */ + @java.lang.Override public com.google.protobuf.ByteString getMetaGraphVersionBytes() { java.lang.Object ref = metaGraphVersion_; @@ -657,7 +440,7 @@ public java.lang.String getMetaGraphVersion() { } public static final int STRIPPED_OP_LIST_FIELD_NUMBER = 2; - private org.tensorflow.proto.framework.OpList strippedOpList_; + private org.tensorflow.proto.OpList strippedOpList_; /** *
      * A copy of the OpDefs used by the producer of this graph_def.
@@ -665,7 +448,9 @@ public java.lang.String getMetaGraphVersion() {
      * 
* * .tensorflow.OpList stripped_op_list = 2; + * @return Whether the strippedOpList field is set. */ + @java.lang.Override public boolean hasStrippedOpList() { return strippedOpList_ != null; } @@ -676,9 +461,11 @@ public boolean hasStrippedOpList() { * * * .tensorflow.OpList stripped_op_list = 2; + * @return The strippedOpList. */ - public org.tensorflow.proto.framework.OpList getStrippedOpList() { - return strippedOpList_ == null ? org.tensorflow.proto.framework.OpList.getDefaultInstance() : strippedOpList_; + @java.lang.Override + public org.tensorflow.proto.OpList getStrippedOpList() { + return strippedOpList_ == null ? org.tensorflow.proto.OpList.getDefaultInstance() : strippedOpList_; } /** *
@@ -688,7 +475,8 @@ public org.tensorflow.proto.framework.OpList getStrippedOpList() {
      *
      * .tensorflow.OpList stripped_op_list = 2;
      */
-    public org.tensorflow.proto.framework.OpListOrBuilder getStrippedOpListOrBuilder() {
+    @java.lang.Override
+    public org.tensorflow.proto.OpListOrBuilder getStrippedOpListOrBuilder() {
       return getStrippedOpList();
     }
 
@@ -701,7 +489,9 @@ public org.tensorflow.proto.framework.OpListOrBuilder getStrippedOpListOrBuilder
      * 
* * .google.protobuf.Any any_info = 3; + * @return Whether the anyInfo field is set. */ + @java.lang.Override public boolean hasAnyInfo() { return anyInfo_ != null; } @@ -712,7 +502,9 @@ public boolean hasAnyInfo() { * * * .google.protobuf.Any any_info = 3; + * @return The anyInfo. */ + @java.lang.Override public com.google.protobuf.Any getAnyInfo() { return anyInfo_ == null ? com.google.protobuf.Any.getDefaultInstance() : anyInfo_; } @@ -724,6 +516,7 @@ public com.google.protobuf.Any getAnyInfo() { * * .google.protobuf.Any any_info = 3; */ + @java.lang.Override public com.google.protobuf.AnyOrBuilder getAnyInfoOrBuilder() { return getAnyInfo(); } @@ -740,6 +533,7 @@ public com.google.protobuf.AnyOrBuilder getAnyInfoOrBuilder() { * * * repeated string tags = 4; + * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { @@ -755,6 +549,7 @@ public com.google.protobuf.AnyOrBuilder getAnyInfoOrBuilder() { * * * repeated string tags = 4; + * @return The count of tags. */ public int getTagsCount() { return tags_.size(); @@ -769,6 +564,8 @@ public int getTagsCount() { * * * repeated string tags = 4; + * @param index The index of the element to return. + * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); @@ -783,6 +580,8 @@ public java.lang.String getTags(int index) { * * * repeated string tags = 4; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { @@ -799,7 +598,9 @@ public java.lang.String getTags(int index) { * * * string tensorflow_version = 5; + * @return The tensorflowVersion. */ + @java.lang.Override public java.lang.String getTensorflowVersion() { java.lang.Object ref = tensorflowVersion_; if (ref instanceof java.lang.String) { @@ -820,7 +621,9 @@ public java.lang.String getTensorflowVersion() { * * * string tensorflow_version = 5; + * @return The bytes for tensorflowVersion. */ + @java.lang.Override public com.google.protobuf.ByteString getTensorflowVersionBytes() { java.lang.Object ref = tensorflowVersion_; @@ -845,7 +648,9 @@ public java.lang.String getTensorflowVersion() { * * * string tensorflow_git_version = 6; + * @return The tensorflowGitVersion. */ + @java.lang.Override public java.lang.String getTensorflowGitVersion() { java.lang.Object ref = tensorflowGitVersion_; if (ref instanceof java.lang.String) { @@ -866,7 +671,9 @@ public java.lang.String getTensorflowGitVersion() { * * * string tensorflow_git_version = 6; + * @return The bytes for tensorflowGitVersion. */ + @java.lang.Override public com.google.protobuf.ByteString getTensorflowGitVersionBytes() { java.lang.Object ref = tensorflowGitVersion_; @@ -890,7 +697,9 @@ public java.lang.String getTensorflowGitVersion() { * * * bool stripped_default_attrs = 7; + * @return The strippedDefaultAttrs. */ + @java.lang.Override public boolean getStrippedDefaultAttrs() { return strippedDefaultAttrs_; } @@ -901,7 +710,7 @@ private static final class FunctionAliasesDefaultEntryHolder { java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( - org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_descriptor, + org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_MetaInfoDef_FunctionAliasesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, @@ -929,14 +738,16 @@ public int getFunctionAliasesCount() { * map<string, string> function_aliases = 8; */ + @java.lang.Override public boolean containsFunctionAliases( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } return internalGetFunctionAliases().getMap().containsKey(key); } /** * Use {@link #getFunctionAliasesMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getFunctionAliases() { return getFunctionAliasesMap(); @@ -948,6 +759,7 @@ public java.util.Map getFunctionAliases() { * * map<string, string> function_aliases = 8; */ + @java.lang.Override public java.util.Map getFunctionAliasesMap() { return internalGetFunctionAliases().getMap(); @@ -959,11 +771,12 @@ public java.util.Map getFunctionAliasesMap() * * map<string, string> function_aliases = 8; */ + @java.lang.Override public java.lang.String getFunctionAliasesOrDefault( java.lang.String key, java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFunctionAliases().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -975,10 +788,11 @@ public java.lang.String getFunctionAliasesOrDefault( * * map<string, string> function_aliases = 8; */ + @java.lang.Override public java.lang.String getFunctionAliasesOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFunctionAliases().getMap(); if (!map.containsKey(key)) { @@ -1001,7 +815,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getMetaGraphVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metaGraphVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metaGraphVersion_); } if (strippedOpList_ != null) { @@ -1013,10 +827,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tags_.getRaw(i)); } - if (!getTensorflowVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tensorflowVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tensorflowVersion_); } - if (!getTensorflowGitVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tensorflowGitVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, tensorflowGitVersion_); } if (strippedDefaultAttrs_ != false) { @@ -1028,7 +842,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) internalGetFunctionAliases(), FunctionAliasesDefaultEntryHolder.defaultEntry, 8); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1037,7 +851,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getMetaGraphVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metaGraphVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metaGraphVersion_); } if (strippedOpList_ != null) { @@ -1056,10 +870,10 @@ public int getSerializedSize() { size += dataSize; size += 1 * getTagsList().size(); } - if (!getTensorflowVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tensorflowVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, tensorflowVersion_); } - if (!getTensorflowGitVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tensorflowGitVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, tensorflowGitVersion_); } if (strippedDefaultAttrs_ != false) { @@ -1076,7 +890,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, functionAliases__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1086,10 +900,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef)) { + if (!(obj instanceof org.tensorflow.proto.MetaGraphDef.MetaInfoDef)) { return super.equals(obj); } - org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef other = (org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef) obj; + org.tensorflow.proto.MetaGraphDef.MetaInfoDef other = (org.tensorflow.proto.MetaGraphDef.MetaInfoDef) obj; if (!getMetaGraphVersion() .equals(other.getMetaGraphVersion())) return false; @@ -1113,7 +927,7 @@ public boolean equals(final java.lang.Object obj) { != other.getStrippedDefaultAttrs()) return false; if (!internalGetFunctionAliases().equals( other.internalGetFunctionAliases())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1149,74 +963,74 @@ public int hashCode() { hash = (37 * hash) + FUNCTION_ALIASES_FIELD_NUMBER; hash = (53 * hash) + internalGetFunctionAliases().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef parseFrom( + public static org.tensorflow.proto.MetaGraphDef.MetaInfoDef parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef parseFrom( + public static org.tensorflow.proto.MetaGraphDef.MetaInfoDef parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef parseFrom( + public static org.tensorflow.proto.MetaGraphDef.MetaInfoDef parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef parseFrom( + public static org.tensorflow.proto.MetaGraphDef.MetaInfoDef parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef parseFrom(byte[] data) + public static org.tensorflow.proto.MetaGraphDef.MetaInfoDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef parseFrom( + public static org.tensorflow.proto.MetaGraphDef.MetaInfoDef parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.MetaGraphDef.MetaInfoDef parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef parseFrom( + public static org.tensorflow.proto.MetaGraphDef.MetaInfoDef 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 org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.MetaGraphDef.MetaInfoDef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef parseDelimitedFrom( + public static org.tensorflow.proto.MetaGraphDef.MetaInfoDef 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 org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef parseFrom( + public static org.tensorflow.proto.MetaGraphDef.MetaInfoDef parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef parseFrom( + public static org.tensorflow.proto.MetaGraphDef.MetaInfoDef parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1229,7 +1043,7 @@ public static org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef prototype) { + public static Builder newBuilder(org.tensorflow.proto.MetaGraphDef.MetaInfoDef prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1255,10 +1069,10 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.MetaGraphDef.MetaInfoDef) - org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDefOrBuilder { + org.tensorflow.proto.MetaGraphDef.MetaInfoDefOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_MetaInfoDef_descriptor; + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_MetaInfoDef_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -1286,25 +1100,20 @@ protected com.google.protobuf.MapField internalGetMutableMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_MetaInfoDef_fieldAccessorTable + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_MetaInfoDef_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef.class, org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef.Builder.class); + org.tensorflow.proto.MetaGraphDef.MetaInfoDef.class, org.tensorflow.proto.MetaGraphDef.MetaInfoDef.Builder.class); } - // Construct using org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef.newBuilder() + // Construct using org.tensorflow.proto.MetaGraphDef.MetaInfoDef.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -1338,17 +1147,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_MetaInfoDef_descriptor; + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_MetaInfoDef_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef getDefaultInstanceForType() { - return org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef.getDefaultInstance(); + public org.tensorflow.proto.MetaGraphDef.MetaInfoDef getDefaultInstanceForType() { + return org.tensorflow.proto.MetaGraphDef.MetaInfoDef.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef build() { - org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef result = buildPartial(); + public org.tensorflow.proto.MetaGraphDef.MetaInfoDef build() { + org.tensorflow.proto.MetaGraphDef.MetaInfoDef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1356,8 +1165,8 @@ public org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef build() { } @java.lang.Override - public org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef buildPartial() { - org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef result = new org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef(this); + public org.tensorflow.proto.MetaGraphDef.MetaInfoDef buildPartial() { + org.tensorflow.proto.MetaGraphDef.MetaInfoDef result = new org.tensorflow.proto.MetaGraphDef.MetaInfoDef(this); int from_bitField0_ = bitField0_; result.metaGraphVersion_ = metaGraphVersion_; if (strippedOpListBuilder_ == null) { @@ -1418,16 +1227,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef) { - return mergeFrom((org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef)other); + if (other instanceof org.tensorflow.proto.MetaGraphDef.MetaInfoDef) { + return mergeFrom((org.tensorflow.proto.MetaGraphDef.MetaInfoDef)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef other) { - if (other == org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.MetaGraphDef.MetaInfoDef other) { + if (other == org.tensorflow.proto.MetaGraphDef.MetaInfoDef.getDefaultInstance()) return this; if (!other.getMetaGraphVersion().isEmpty()) { metaGraphVersion_ = other.metaGraphVersion_; onChanged(); @@ -1461,7 +1270,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef } internalGetMutableFunctionAliases().mergeFrom( other.internalGetFunctionAliases()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1476,17 +1285,78 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + metaGraphVersion_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getStrippedOpListFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getAnyInfoFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 34 + case 42: { + tensorflowVersion_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + tensorflowGitVersion_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 56: { + strippedDefaultAttrs_ = input.readBool(); + + break; + } // case 56 + case 66: { + com.google.protobuf.MapEntry + functionAliases__ = input.readMessage( + FunctionAliasesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableFunctionAliases().getMutableMap().put( + functionAliases__.getKey(), functionAliases__.getValue()); + break; + } // case 66 + 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) { - parsedMessage = (org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1499,6 +1369,7 @@ public Builder mergeFrom( * * * string meta_graph_version = 1; + * @return The metaGraphVersion. */ public java.lang.String getMetaGraphVersion() { java.lang.Object ref = metaGraphVersion_; @@ -1519,6 +1390,7 @@ public java.lang.String getMetaGraphVersion() { * * * string meta_graph_version = 1; + * @return The bytes for metaGraphVersion. */ public com.google.protobuf.ByteString getMetaGraphVersionBytes() { @@ -1540,6 +1412,8 @@ public java.lang.String getMetaGraphVersion() { * * * string meta_graph_version = 1; + * @param value The metaGraphVersion to set. + * @return This builder for chaining. */ public Builder setMetaGraphVersion( java.lang.String value) { @@ -1558,6 +1432,7 @@ public Builder setMetaGraphVersion( * * * string meta_graph_version = 1; + * @return This builder for chaining. */ public Builder clearMetaGraphVersion() { @@ -1572,6 +1447,8 @@ public Builder clearMetaGraphVersion() { * * * string meta_graph_version = 1; + * @param value The bytes for metaGraphVersion to set. + * @return This builder for chaining. */ public Builder setMetaGraphVersionBytes( com.google.protobuf.ByteString value) { @@ -1585,9 +1462,9 @@ public Builder setMetaGraphVersionBytes( return this; } - private org.tensorflow.proto.framework.OpList strippedOpList_; + private org.tensorflow.proto.OpList strippedOpList_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.OpList, org.tensorflow.proto.framework.OpList.Builder, org.tensorflow.proto.framework.OpListOrBuilder> strippedOpListBuilder_; + org.tensorflow.proto.OpList, org.tensorflow.proto.OpList.Builder, org.tensorflow.proto.OpListOrBuilder> strippedOpListBuilder_; /** *
        * A copy of the OpDefs used by the producer of this graph_def.
@@ -1595,6 +1472,7 @@ public Builder setMetaGraphVersionBytes(
        * 
* * .tensorflow.OpList stripped_op_list = 2; + * @return Whether the strippedOpList field is set. */ public boolean hasStrippedOpList() { return strippedOpListBuilder_ != null || strippedOpList_ != null; @@ -1606,10 +1484,11 @@ public boolean hasStrippedOpList() { * * * .tensorflow.OpList stripped_op_list = 2; + * @return The strippedOpList. */ - public org.tensorflow.proto.framework.OpList getStrippedOpList() { + public org.tensorflow.proto.OpList getStrippedOpList() { if (strippedOpListBuilder_ == null) { - return strippedOpList_ == null ? org.tensorflow.proto.framework.OpList.getDefaultInstance() : strippedOpList_; + return strippedOpList_ == null ? org.tensorflow.proto.OpList.getDefaultInstance() : strippedOpList_; } else { return strippedOpListBuilder_.getMessage(); } @@ -1622,7 +1501,7 @@ public org.tensorflow.proto.framework.OpList getStrippedOpList() { * * .tensorflow.OpList stripped_op_list = 2; */ - public Builder setStrippedOpList(org.tensorflow.proto.framework.OpList value) { + public Builder setStrippedOpList(org.tensorflow.proto.OpList value) { if (strippedOpListBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1644,7 +1523,7 @@ public Builder setStrippedOpList(org.tensorflow.proto.framework.OpList value) { * .tensorflow.OpList stripped_op_list = 2; */ public Builder setStrippedOpList( - org.tensorflow.proto.framework.OpList.Builder builderForValue) { + org.tensorflow.proto.OpList.Builder builderForValue) { if (strippedOpListBuilder_ == null) { strippedOpList_ = builderForValue.build(); onChanged(); @@ -1662,11 +1541,11 @@ public Builder setStrippedOpList( * * .tensorflow.OpList stripped_op_list = 2; */ - public Builder mergeStrippedOpList(org.tensorflow.proto.framework.OpList value) { + public Builder mergeStrippedOpList(org.tensorflow.proto.OpList value) { if (strippedOpListBuilder_ == null) { if (strippedOpList_ != null) { strippedOpList_ = - org.tensorflow.proto.framework.OpList.newBuilder(strippedOpList_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.OpList.newBuilder(strippedOpList_).mergeFrom(value).buildPartial(); } else { strippedOpList_ = value; } @@ -1704,7 +1583,7 @@ public Builder clearStrippedOpList() { * * .tensorflow.OpList stripped_op_list = 2; */ - public org.tensorflow.proto.framework.OpList.Builder getStrippedOpListBuilder() { + public org.tensorflow.proto.OpList.Builder getStrippedOpListBuilder() { onChanged(); return getStrippedOpListFieldBuilder().getBuilder(); @@ -1717,12 +1596,12 @@ public org.tensorflow.proto.framework.OpList.Builder getStrippedOpListBuilder() * * .tensorflow.OpList stripped_op_list = 2; */ - public org.tensorflow.proto.framework.OpListOrBuilder getStrippedOpListOrBuilder() { + public org.tensorflow.proto.OpListOrBuilder getStrippedOpListOrBuilder() { if (strippedOpListBuilder_ != null) { return strippedOpListBuilder_.getMessageOrBuilder(); } else { return strippedOpList_ == null ? - org.tensorflow.proto.framework.OpList.getDefaultInstance() : strippedOpList_; + org.tensorflow.proto.OpList.getDefaultInstance() : strippedOpList_; } } /** @@ -1734,11 +1613,11 @@ public org.tensorflow.proto.framework.OpListOrBuilder getStrippedOpListOrBuilder * .tensorflow.OpList stripped_op_list = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.OpList, org.tensorflow.proto.framework.OpList.Builder, org.tensorflow.proto.framework.OpListOrBuilder> + org.tensorflow.proto.OpList, org.tensorflow.proto.OpList.Builder, org.tensorflow.proto.OpListOrBuilder> getStrippedOpListFieldBuilder() { if (strippedOpListBuilder_ == null) { strippedOpListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.OpList, org.tensorflow.proto.framework.OpList.Builder, org.tensorflow.proto.framework.OpListOrBuilder>( + org.tensorflow.proto.OpList, org.tensorflow.proto.OpList.Builder, org.tensorflow.proto.OpListOrBuilder>( getStrippedOpList(), getParentForChildren(), isClean()); @@ -1757,6 +1636,7 @@ public org.tensorflow.proto.framework.OpListOrBuilder getStrippedOpListOrBuilder * * * .google.protobuf.Any any_info = 3; + * @return Whether the anyInfo field is set. */ public boolean hasAnyInfo() { return anyInfoBuilder_ != null || anyInfo_ != null; @@ -1768,6 +1648,7 @@ public boolean hasAnyInfo() { * * * .google.protobuf.Any any_info = 3; + * @return The anyInfo. */ public com.google.protobuf.Any getAnyInfo() { if (anyInfoBuilder_ == null) { @@ -1926,6 +1807,7 @@ private void ensureTagsIsMutable() { * * * repeated string tags = 4; + * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { @@ -1941,6 +1823,7 @@ private void ensureTagsIsMutable() { * * * repeated string tags = 4; + * @return The count of tags. */ public int getTagsCount() { return tags_.size(); @@ -1955,6 +1838,8 @@ public int getTagsCount() { * * * repeated string tags = 4; + * @param index The index of the element to return. + * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); @@ -1969,6 +1854,8 @@ public java.lang.String getTags(int index) { * * * repeated string tags = 4; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { @@ -1984,6 +1871,9 @@ public java.lang.String getTags(int index) { * * * repeated string tags = 4; + * @param index The index to set the value at. + * @param value The tags to set. + * @return This builder for chaining. */ public Builder setTags( int index, java.lang.String value) { @@ -2005,6 +1895,8 @@ public Builder setTags( * * * repeated string tags = 4; + * @param value The tags to add. + * @return This builder for chaining. */ public Builder addTags( java.lang.String value) { @@ -2026,6 +1918,8 @@ public Builder addTags( * * * repeated string tags = 4; + * @param values The tags to add. + * @return This builder for chaining. */ public Builder addAllTags( java.lang.Iterable values) { @@ -2045,6 +1939,7 @@ public Builder addAllTags( * * * repeated string tags = 4; + * @return This builder for chaining. */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -2062,6 +1957,8 @@ public Builder clearTags() { * * * repeated string tags = 4; + * @param value The bytes of the tags to add. + * @return This builder for chaining. */ public Builder addTagsBytes( com.google.protobuf.ByteString value) { @@ -2084,6 +1981,7 @@ public Builder addTagsBytes( * * * string tensorflow_version = 5; + * @return The tensorflowVersion. */ public java.lang.String getTensorflowVersion() { java.lang.Object ref = tensorflowVersion_; @@ -2105,6 +2003,7 @@ public java.lang.String getTensorflowVersion() { * * * string tensorflow_version = 5; + * @return The bytes for tensorflowVersion. */ public com.google.protobuf.ByteString getTensorflowVersionBytes() { @@ -2127,6 +2026,8 @@ public java.lang.String getTensorflowVersion() { * * * string tensorflow_version = 5; + * @param value The tensorflowVersion to set. + * @return This builder for chaining. */ public Builder setTensorflowVersion( java.lang.String value) { @@ -2146,6 +2047,7 @@ public Builder setTensorflowVersion( * * * string tensorflow_version = 5; + * @return This builder for chaining. */ public Builder clearTensorflowVersion() { @@ -2161,6 +2063,8 @@ public Builder clearTensorflowVersion() { * * * string tensorflow_version = 5; + * @param value The bytes for tensorflowVersion to set. + * @return This builder for chaining. */ public Builder setTensorflowVersionBytes( com.google.protobuf.ByteString value) { @@ -2183,6 +2087,7 @@ public Builder setTensorflowVersionBytes( * * * string tensorflow_git_version = 6; + * @return The tensorflowGitVersion. */ public java.lang.String getTensorflowGitVersion() { java.lang.Object ref = tensorflowGitVersion_; @@ -2204,6 +2109,7 @@ public java.lang.String getTensorflowGitVersion() { * * * string tensorflow_git_version = 6; + * @return The bytes for tensorflowGitVersion. */ public com.google.protobuf.ByteString getTensorflowGitVersionBytes() { @@ -2226,6 +2132,8 @@ public java.lang.String getTensorflowGitVersion() { * * * string tensorflow_git_version = 6; + * @param value The tensorflowGitVersion to set. + * @return This builder for chaining. */ public Builder setTensorflowGitVersion( java.lang.String value) { @@ -2245,6 +2153,7 @@ public Builder setTensorflowGitVersion( * * * string tensorflow_git_version = 6; + * @return This builder for chaining. */ public Builder clearTensorflowGitVersion() { @@ -2260,6 +2169,8 @@ public Builder clearTensorflowGitVersion() { * * * string tensorflow_git_version = 6; + * @param value The bytes for tensorflowGitVersion to set. + * @return This builder for chaining. */ public Builder setTensorflowGitVersionBytes( com.google.protobuf.ByteString value) { @@ -2281,7 +2192,9 @@ public Builder setTensorflowGitVersionBytes( * * * bool stripped_default_attrs = 7; + * @return The strippedDefaultAttrs. */ + @java.lang.Override public boolean getStrippedDefaultAttrs() { return strippedDefaultAttrs_; } @@ -2292,6 +2205,8 @@ public boolean getStrippedDefaultAttrs() { * * * bool stripped_default_attrs = 7; + * @param value The strippedDefaultAttrs to set. + * @return This builder for chaining. */ public Builder setStrippedDefaultAttrs(boolean value) { @@ -2306,6 +2221,7 @@ public Builder setStrippedDefaultAttrs(boolean value) { * * * bool stripped_default_attrs = 7; + * @return This builder for chaining. */ public Builder clearStrippedDefaultAttrs() { @@ -2348,14 +2264,16 @@ public int getFunctionAliasesCount() { * map<string, string> function_aliases = 8; */ + @java.lang.Override public boolean containsFunctionAliases( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } return internalGetFunctionAliases().getMap().containsKey(key); } /** * Use {@link #getFunctionAliasesMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getFunctionAliases() { return getFunctionAliasesMap(); @@ -2367,6 +2285,7 @@ public java.util.Map getFunctionAliases() { * * map<string, string> function_aliases = 8; */ + @java.lang.Override public java.util.Map getFunctionAliasesMap() { return internalGetFunctionAliases().getMap(); @@ -2378,11 +2297,12 @@ public java.util.Map getFunctionAliasesMap() * * map<string, string> function_aliases = 8; */ + @java.lang.Override public java.lang.String getFunctionAliasesOrDefault( java.lang.String key, java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFunctionAliases().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2394,10 +2314,11 @@ public java.lang.String getFunctionAliasesOrDefault( * * map<string, string> function_aliases = 8; */ + @java.lang.Override public java.lang.String getFunctionAliasesOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFunctionAliases().getMap(); if (!map.containsKey(key)) { @@ -2421,7 +2342,7 @@ public Builder clearFunctionAliases() { public Builder removeFunctionAliases( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } internalGetMutableFunctionAliases().getMutableMap() .remove(key); return this; @@ -2444,8 +2365,11 @@ public Builder removeFunctionAliases( public Builder putFunctionAliases( java.lang.String key, java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + internalGetMutableFunctionAliases().getMutableMap() .put(key, value); return this; @@ -2481,12 +2405,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.MetaGraphDef.MetaInfoDef) - private static final org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef DEFAULT_INSTANCE; + private static final org.tensorflow.proto.MetaGraphDef.MetaInfoDef DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef(); + DEFAULT_INSTANCE = new org.tensorflow.proto.MetaGraphDef.MetaInfoDef(); } - public static org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef getDefaultInstance() { + public static org.tensorflow.proto.MetaGraphDef.MetaInfoDef getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -2497,7 +2421,18 @@ public MetaInfoDef parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MetaInfoDef(input, extensionRegistry); + 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(); } }; @@ -2511,42 +2446,49 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef getDefaultInstanceForType() { + public org.tensorflow.proto.MetaGraphDef.MetaInfoDef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int META_INFO_DEF_FIELD_NUMBER = 1; - private org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef metaInfoDef_; + private org.tensorflow.proto.MetaGraphDef.MetaInfoDef metaInfoDef_; /** * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; + * @return Whether the metaInfoDef field is set. */ + @java.lang.Override public boolean hasMetaInfoDef() { return metaInfoDef_ != null; } /** * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; + * @return The metaInfoDef. */ - public org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef getMetaInfoDef() { - return metaInfoDef_ == null ? org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef.getDefaultInstance() : metaInfoDef_; + @java.lang.Override + public org.tensorflow.proto.MetaGraphDef.MetaInfoDef getMetaInfoDef() { + return metaInfoDef_ == null ? org.tensorflow.proto.MetaGraphDef.MetaInfoDef.getDefaultInstance() : metaInfoDef_; } /** * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; */ - public org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDefOrBuilder getMetaInfoDefOrBuilder() { + @java.lang.Override + public org.tensorflow.proto.MetaGraphDef.MetaInfoDefOrBuilder getMetaInfoDefOrBuilder() { return getMetaInfoDef(); } public static final int GRAPH_DEF_FIELD_NUMBER = 2; - private org.tensorflow.proto.framework.GraphDef graphDef_; + private org.tensorflow.proto.GraphDef graphDef_; /** *
    * GraphDef.
    * 
* * .tensorflow.GraphDef graph_def = 2; + * @return Whether the graphDef field is set. */ + @java.lang.Override public boolean hasGraphDef() { return graphDef_ != null; } @@ -2556,9 +2498,11 @@ public boolean hasGraphDef() { * * * .tensorflow.GraphDef graph_def = 2; + * @return The graphDef. */ - public org.tensorflow.proto.framework.GraphDef getGraphDef() { - return graphDef_ == null ? org.tensorflow.proto.framework.GraphDef.getDefaultInstance() : graphDef_; + @java.lang.Override + public org.tensorflow.proto.GraphDef getGraphDef() { + return graphDef_ == null ? org.tensorflow.proto.GraphDef.getDefaultInstance() : graphDef_; } /** *
@@ -2567,19 +2511,22 @@ public org.tensorflow.proto.framework.GraphDef getGraphDef() {
    *
    * .tensorflow.GraphDef graph_def = 2;
    */
-  public org.tensorflow.proto.framework.GraphDefOrBuilder getGraphDefOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.GraphDefOrBuilder getGraphDefOrBuilder() {
     return getGraphDef();
   }
 
   public static final int SAVER_DEF_FIELD_NUMBER = 3;
-  private org.tensorflow.proto.util.SaverDef saverDef_;
+  private org.tensorflow.proto.SaverDef saverDef_;
   /**
    * 
    * SaverDef.
    * 
* * .tensorflow.SaverDef saver_def = 3; + * @return Whether the saverDef field is set. */ + @java.lang.Override public boolean hasSaverDef() { return saverDef_ != null; } @@ -2589,9 +2536,11 @@ public boolean hasSaverDef() { *
* * .tensorflow.SaverDef saver_def = 3; + * @return The saverDef. */ - public org.tensorflow.proto.util.SaverDef getSaverDef() { - return saverDef_ == null ? org.tensorflow.proto.util.SaverDef.getDefaultInstance() : saverDef_; + @java.lang.Override + public org.tensorflow.proto.SaverDef getSaverDef() { + return saverDef_ == null ? org.tensorflow.proto.SaverDef.getDefaultInstance() : saverDef_; } /** *
@@ -2600,25 +2549,26 @@ public org.tensorflow.proto.util.SaverDef getSaverDef() {
    *
    * .tensorflow.SaverDef saver_def = 3;
    */
-  public org.tensorflow.proto.util.SaverDefOrBuilder getSaverDefOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.SaverDefOrBuilder getSaverDefOrBuilder() {
     return getSaverDef();
   }
 
   public static final int COLLECTION_DEF_FIELD_NUMBER = 4;
   private static final class CollectionDefDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-        java.lang.String, org.tensorflow.proto.framework.CollectionDef> defaultEntry =
+        java.lang.String, org.tensorflow.proto.CollectionDef> defaultEntry =
             com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_CollectionDefEntry_descriptor, 
+            .newDefaultInstance(
+                org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_CollectionDefEntry_descriptor, 
                 com.google.protobuf.WireFormat.FieldType.STRING,
                 "",
                 com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                org.tensorflow.proto.framework.CollectionDef.getDefaultInstance());
+                org.tensorflow.proto.CollectionDef.getDefaultInstance());
   }
   private com.google.protobuf.MapField<
-      java.lang.String, org.tensorflow.proto.framework.CollectionDef> collectionDef_;
-  private com.google.protobuf.MapField
+      java.lang.String, org.tensorflow.proto.CollectionDef> collectionDef_;
+  private com.google.protobuf.MapField
   internalGetCollectionDef() {
     if (collectionDef_ == null) {
       return com.google.protobuf.MapField.emptyMapField(
@@ -2639,16 +2589,18 @@ public int getCollectionDefCount() {
    * map<string, .tensorflow.CollectionDef> collection_def = 4;
    */
 
+  @java.lang.Override
   public boolean containsCollectionDef(
       java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetCollectionDef().getMap().containsKey(key);
   }
   /**
    * Use {@link #getCollectionDefMap()} instead.
    */
+  @java.lang.Override
   @java.lang.Deprecated
-  public java.util.Map getCollectionDef() {
+  public java.util.Map getCollectionDef() {
     return getCollectionDefMap();
   }
   /**
@@ -2659,8 +2611,9 @@ public java.util.Mapmap<string, .tensorflow.CollectionDef> collection_def = 4;
    */
+  @java.lang.Override
 
-  public java.util.Map getCollectionDefMap() {
+  public java.util.Map getCollectionDefMap() {
     return internalGetCollectionDef().getMap();
   }
   /**
@@ -2671,12 +2624,13 @@ public java.util.Mapmap<string, .tensorflow.CollectionDef> collection_def = 4;
    */
+  @java.lang.Override
 
-  public org.tensorflow.proto.framework.CollectionDef getCollectionDefOrDefault(
+  public org.tensorflow.proto.CollectionDef getCollectionDefOrDefault(
       java.lang.String key,
-      org.tensorflow.proto.framework.CollectionDef defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
+      org.tensorflow.proto.CollectionDef defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
         internalGetCollectionDef().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
@@ -2688,11 +2642,12 @@ public org.tensorflow.proto.framework.CollectionDef getCollectionDefOrDefault(
    *
    * map<string, .tensorflow.CollectionDef> collection_def = 4;
    */
+  @java.lang.Override
 
-  public org.tensorflow.proto.framework.CollectionDef getCollectionDefOrThrow(
+  public org.tensorflow.proto.CollectionDef getCollectionDefOrThrow(
       java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
         internalGetCollectionDef().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
@@ -2703,18 +2658,18 @@ public org.tensorflow.proto.framework.CollectionDef getCollectionDefOrThrow(
   public static final int SIGNATURE_DEF_FIELD_NUMBER = 5;
   private static final class SignatureDefDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-        java.lang.String, org.tensorflow.proto.framework.SignatureDef> defaultEntry =
+        java.lang.String, org.tensorflow.proto.SignatureDef> defaultEntry =
             com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_SignatureDefEntry_descriptor, 
+            .newDefaultInstance(
+                org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_SignatureDefEntry_descriptor, 
                 com.google.protobuf.WireFormat.FieldType.STRING,
                 "",
                 com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                org.tensorflow.proto.framework.SignatureDef.getDefaultInstance());
+                org.tensorflow.proto.SignatureDef.getDefaultInstance());
   }
   private com.google.protobuf.MapField<
-      java.lang.String, org.tensorflow.proto.framework.SignatureDef> signatureDef_;
-  private com.google.protobuf.MapField
+      java.lang.String, org.tensorflow.proto.SignatureDef> signatureDef_;
+  private com.google.protobuf.MapField
   internalGetSignatureDef() {
     if (signatureDef_ == null) {
       return com.google.protobuf.MapField.emptyMapField(
@@ -2735,16 +2690,18 @@ public int getSignatureDefCount() {
    * map<string, .tensorflow.SignatureDef> signature_def = 5;
    */
 
+  @java.lang.Override
   public boolean containsSignatureDef(
       java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetSignatureDef().getMap().containsKey(key);
   }
   /**
    * Use {@link #getSignatureDefMap()} instead.
    */
+  @java.lang.Override
   @java.lang.Deprecated
-  public java.util.Map getSignatureDef() {
+  public java.util.Map getSignatureDef() {
     return getSignatureDefMap();
   }
   /**
@@ -2755,8 +2712,9 @@ public java.util.Mapmap<string, .tensorflow.SignatureDef> signature_def = 5;
    */
+  @java.lang.Override
 
-  public java.util.Map getSignatureDefMap() {
+  public java.util.Map getSignatureDefMap() {
     return internalGetSignatureDef().getMap();
   }
   /**
@@ -2767,12 +2725,13 @@ public java.util.Mapmap<string, .tensorflow.SignatureDef> signature_def = 5;
    */
+  @java.lang.Override
 
-  public org.tensorflow.proto.framework.SignatureDef getSignatureDefOrDefault(
+  public org.tensorflow.proto.SignatureDef getSignatureDefOrDefault(
       java.lang.String key,
-      org.tensorflow.proto.framework.SignatureDef defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
+      org.tensorflow.proto.SignatureDef defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
         internalGetSignatureDef().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
@@ -2784,11 +2743,12 @@ public org.tensorflow.proto.framework.SignatureDef getSignatureDefOrDefault(
    *
    * map<string, .tensorflow.SignatureDef> signature_def = 5;
    */
+  @java.lang.Override
 
-  public org.tensorflow.proto.framework.SignatureDef getSignatureDefOrThrow(
+  public org.tensorflow.proto.SignatureDef getSignatureDefOrThrow(
       java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
         internalGetSignatureDef().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
@@ -2797,7 +2757,7 @@ public org.tensorflow.proto.framework.SignatureDef getSignatureDefOrThrow(
   }
 
   public static final int ASSET_FILE_DEF_FIELD_NUMBER = 6;
-  private java.util.List assetFileDef_;
+  private java.util.List assetFileDef_;
   /**
    * 
    * Asset file def to be used with the defined graph.
@@ -2805,7 +2765,8 @@ public org.tensorflow.proto.framework.SignatureDef getSignatureDefOrThrow(
    *
    * repeated .tensorflow.AssetFileDef asset_file_def = 6;
    */
-  public java.util.List getAssetFileDefList() {
+  @java.lang.Override
+  public java.util.List getAssetFileDefList() {
     return assetFileDef_;
   }
   /**
@@ -2815,7 +2776,8 @@ public java.util.List getAssetFileD
    *
    * repeated .tensorflow.AssetFileDef asset_file_def = 6;
    */
-  public java.util.List 
+  @java.lang.Override
+  public java.util.List 
       getAssetFileDefOrBuilderList() {
     return assetFileDef_;
   }
@@ -2826,6 +2788,7 @@ public java.util.List getAssetFileD
    *
    * repeated .tensorflow.AssetFileDef asset_file_def = 6;
    */
+  @java.lang.Override
   public int getAssetFileDefCount() {
     return assetFileDef_.size();
   }
@@ -2836,7 +2799,8 @@ public int getAssetFileDefCount() {
    *
    * repeated .tensorflow.AssetFileDef asset_file_def = 6;
    */
-  public org.tensorflow.proto.framework.AssetFileDef getAssetFileDef(int index) {
+  @java.lang.Override
+  public org.tensorflow.proto.AssetFileDef getAssetFileDef(int index) {
     return assetFileDef_.get(index);
   }
   /**
@@ -2846,20 +2810,23 @@ public org.tensorflow.proto.framework.AssetFileDef getAssetFileDef(int index) {
    *
    * repeated .tensorflow.AssetFileDef asset_file_def = 6;
    */
-  public org.tensorflow.proto.framework.AssetFileDefOrBuilder getAssetFileDefOrBuilder(
+  @java.lang.Override
+  public org.tensorflow.proto.AssetFileDefOrBuilder getAssetFileDefOrBuilder(
       int index) {
     return assetFileDef_.get(index);
   }
 
   public static final int OBJECT_GRAPH_DEF_FIELD_NUMBER = 7;
-  private org.tensorflow.proto.framework.SavedObjectGraph objectGraphDef_;
+  private org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph objectGraphDef_;
   /**
    * 
    * Extra information about the structure of functions and stateful objects.
    * 
* * .tensorflow.SavedObjectGraph object_graph_def = 7; + * @return Whether the objectGraphDef field is set. */ + @java.lang.Override public boolean hasObjectGraphDef() { return objectGraphDef_ != null; } @@ -2869,9 +2836,11 @@ public boolean hasObjectGraphDef() { *
* * .tensorflow.SavedObjectGraph object_graph_def = 7; + * @return The objectGraphDef. */ - public org.tensorflow.proto.framework.SavedObjectGraph getObjectGraphDef() { - return objectGraphDef_ == null ? org.tensorflow.proto.framework.SavedObjectGraph.getDefaultInstance() : objectGraphDef_; + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph getObjectGraphDef() { + return objectGraphDef_ == null ? org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph.getDefaultInstance() : objectGraphDef_; } /** *
@@ -2880,7 +2849,8 @@ public org.tensorflow.proto.framework.SavedObjectGraph getObjectGraphDef() {
    *
    * .tensorflow.SavedObjectGraph object_graph_def = 7;
    */
-  public org.tensorflow.proto.framework.SavedObjectGraphOrBuilder getObjectGraphDefOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraphOrBuilder getObjectGraphDefOrBuilder() {
     return getObjectGraphDef();
   }
 
@@ -2925,7 +2895,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (objectGraphDef_ != null) {
       output.writeMessage(7, getObjectGraphDef());
     }
-    unknownFields.writeTo(output);
+    getUnknownFields().writeTo(output);
   }
 
   @java.lang.Override
@@ -2946,9 +2916,9 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
         .computeMessageSize(3, getSaverDef());
     }
-    for (java.util.Map.Entry entry
+    for (java.util.Map.Entry entry
          : internalGetCollectionDef().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
+      com.google.protobuf.MapEntry
       collectionDef__ = CollectionDefDefaultEntryHolder.defaultEntry.newBuilderForType()
           .setKey(entry.getKey())
           .setValue(entry.getValue())
@@ -2956,9 +2926,9 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(4, collectionDef__);
     }
-    for (java.util.Map.Entry entry
+    for (java.util.Map.Entry entry
          : internalGetSignatureDef().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
+      com.google.protobuf.MapEntry
       signatureDef__ = SignatureDefDefaultEntryHolder.defaultEntry.newBuilderForType()
           .setKey(entry.getKey())
           .setValue(entry.getValue())
@@ -2974,7 +2944,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
         .computeMessageSize(7, getObjectGraphDef());
     }
-    size += unknownFields.getSerializedSize();
+    size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
     return size;
   }
@@ -2984,10 +2954,10 @@ public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
      return true;
     }
-    if (!(obj instanceof org.tensorflow.proto.framework.MetaGraphDef)) {
+    if (!(obj instanceof org.tensorflow.proto.MetaGraphDef)) {
       return super.equals(obj);
     }
-    org.tensorflow.proto.framework.MetaGraphDef other = (org.tensorflow.proto.framework.MetaGraphDef) obj;
+    org.tensorflow.proto.MetaGraphDef other = (org.tensorflow.proto.MetaGraphDef) obj;
 
     if (hasMetaInfoDef() != other.hasMetaInfoDef()) return false;
     if (hasMetaInfoDef()) {
@@ -3015,7 +2985,7 @@ public boolean equals(final java.lang.Object obj) {
       if (!getObjectGraphDef()
           .equals(other.getObjectGraphDef())) return false;
     }
-    if (!unknownFields.equals(other.unknownFields)) return false;
+    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
 
@@ -3054,74 +3024,74 @@ public int hashCode() {
       hash = (37 * hash) + OBJECT_GRAPH_DEF_FIELD_NUMBER;
       hash = (53 * hash) + getObjectGraphDef().hashCode();
     }
-    hash = (29 * hash) + unknownFields.hashCode();
+    hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
     return hash;
   }
 
-  public static org.tensorflow.proto.framework.MetaGraphDef parseFrom(
+  public static org.tensorflow.proto.MetaGraphDef parseFrom(
       java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.MetaGraphDef parseFrom(
+  public static org.tensorflow.proto.MetaGraphDef parseFrom(
       java.nio.ByteBuffer data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.MetaGraphDef parseFrom(
+  public static org.tensorflow.proto.MetaGraphDef parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.MetaGraphDef parseFrom(
+  public static org.tensorflow.proto.MetaGraphDef parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.MetaGraphDef parseFrom(byte[] data)
+  public static org.tensorflow.proto.MetaGraphDef parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.MetaGraphDef parseFrom(
+  public static org.tensorflow.proto.MetaGraphDef parseFrom(
       byte[] data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.MetaGraphDef parseFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.MetaGraphDef parseFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.MetaGraphDef parseFrom(
+  public static org.tensorflow.proto.MetaGraphDef 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 org.tensorflow.proto.framework.MetaGraphDef parseDelimitedFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.MetaGraphDef parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.MetaGraphDef parseDelimitedFrom(
+  public static org.tensorflow.proto.MetaGraphDef 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 org.tensorflow.proto.framework.MetaGraphDef parseFrom(
+  public static org.tensorflow.proto.MetaGraphDef parseFrom(
       com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.MetaGraphDef parseFrom(
+  public static org.tensorflow.proto.MetaGraphDef parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
@@ -3134,7 +3104,7 @@ public static org.tensorflow.proto.framework.MetaGraphDef parseFrom(
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(org.tensorflow.proto.framework.MetaGraphDef prototype) {
+  public static Builder newBuilder(org.tensorflow.proto.MetaGraphDef prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
   @java.lang.Override
@@ -3169,10 +3139,10 @@ protected Builder newBuilderForType(
   public static final class Builder extends
       com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:tensorflow.MetaGraphDef)
-      org.tensorflow.proto.framework.MetaGraphDefOrBuilder {
+      org.tensorflow.proto.MetaGraphDefOrBuilder {
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_descriptor;
+      return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
@@ -3204,26 +3174,20 @@ protected com.google.protobuf.MapField internalGetMutableMapField(
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_fieldAccessorTable
+      return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              org.tensorflow.proto.framework.MetaGraphDef.class, org.tensorflow.proto.framework.MetaGraphDef.Builder.class);
+              org.tensorflow.proto.MetaGraphDef.class, org.tensorflow.proto.MetaGraphDef.Builder.class);
     }
 
-    // Construct using org.tensorflow.proto.framework.MetaGraphDef.newBuilder()
+    // Construct using org.tensorflow.proto.MetaGraphDef.newBuilder()
     private Builder() {
-      maybeForceBuilderInitialization();
+
     }
 
     private Builder(
         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-      maybeForceBuilderInitialization();
-    }
-    private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-        getAssetFileDefFieldBuilder();
-      }
+
     }
     @java.lang.Override
     public Builder clear() {
@@ -3250,10 +3214,11 @@ public Builder clear() {
       internalGetMutableSignatureDef().clear();
       if (assetFileDefBuilder_ == null) {
         assetFileDef_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000004);
       } else {
+        assetFileDef_ = null;
         assetFileDefBuilder_.clear();
       }
+      bitField0_ = (bitField0_ & ~0x00000004);
       if (objectGraphDefBuilder_ == null) {
         objectGraphDef_ = null;
       } else {
@@ -3266,17 +3231,17 @@ public Builder clear() {
     @java.lang.Override
     public com.google.protobuf.Descriptors.Descriptor
         getDescriptorForType() {
-      return org.tensorflow.proto.framework.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_descriptor;
+      return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_MetaGraphDef_descriptor;
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.MetaGraphDef getDefaultInstanceForType() {
-      return org.tensorflow.proto.framework.MetaGraphDef.getDefaultInstance();
+    public org.tensorflow.proto.MetaGraphDef getDefaultInstanceForType() {
+      return org.tensorflow.proto.MetaGraphDef.getDefaultInstance();
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.MetaGraphDef build() {
-      org.tensorflow.proto.framework.MetaGraphDef result = buildPartial();
+    public org.tensorflow.proto.MetaGraphDef build() {
+      org.tensorflow.proto.MetaGraphDef result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -3284,8 +3249,8 @@ public org.tensorflow.proto.framework.MetaGraphDef build() {
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.MetaGraphDef buildPartial() {
-      org.tensorflow.proto.framework.MetaGraphDef result = new org.tensorflow.proto.framework.MetaGraphDef(this);
+    public org.tensorflow.proto.MetaGraphDef buildPartial() {
+      org.tensorflow.proto.MetaGraphDef result = new org.tensorflow.proto.MetaGraphDef(this);
       int from_bitField0_ = bitField0_;
       if (metaInfoDefBuilder_ == null) {
         result.metaInfoDef_ = metaInfoDef_;
@@ -3358,16 +3323,16 @@ public Builder addRepeatedField(
     }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof org.tensorflow.proto.framework.MetaGraphDef) {
-        return mergeFrom((org.tensorflow.proto.framework.MetaGraphDef)other);
+      if (other instanceof org.tensorflow.proto.MetaGraphDef) {
+        return mergeFrom((org.tensorflow.proto.MetaGraphDef)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(org.tensorflow.proto.framework.MetaGraphDef other) {
-      if (other == org.tensorflow.proto.framework.MetaGraphDef.getDefaultInstance()) return this;
+    public Builder mergeFrom(org.tensorflow.proto.MetaGraphDef other) {
+      if (other == org.tensorflow.proto.MetaGraphDef.getDefaultInstance()) return this;
       if (other.hasMetaInfoDef()) {
         mergeMetaInfoDef(other.getMetaInfoDef());
       }
@@ -3410,7 +3375,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.MetaGraphDef other) {
       if (other.hasObjectGraphDef()) {
         mergeObjectGraphDef(other.getObjectGraphDef());
       }
-      this.mergeUnknownFields(other.unknownFields);
+      this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
     }
@@ -3425,36 +3390,108 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      org.tensorflow.proto.framework.MetaGraphDef parsedMessage = null;
+      if (extensionRegistry == null) {
+        throw new java.lang.NullPointerException();
+      }
       try {
-        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+        boolean done = false;
+        while (!done) {
+          int tag = input.readTag();
+          switch (tag) {
+            case 0:
+              done = true;
+              break;
+            case 10: {
+              input.readMessage(
+                  getMetaInfoDefFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getGraphDefFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getSaverDefFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 26
+            case 34: {
+              com.google.protobuf.MapEntry
+              collectionDef__ = input.readMessage(
+                  CollectionDefDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableCollectionDef().getMutableMap().put(
+                  collectionDef__.getKey(), collectionDef__.getValue());
+              break;
+            } // case 34
+            case 42: {
+              com.google.protobuf.MapEntry
+              signatureDef__ = input.readMessage(
+                  SignatureDefDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableSignatureDef().getMutableMap().put(
+                  signatureDef__.getKey(), signatureDef__.getValue());
+              break;
+            } // case 42
+            case 50: {
+              org.tensorflow.proto.AssetFileDef m =
+                  input.readMessage(
+                      org.tensorflow.proto.AssetFileDef.parser(),
+                      extensionRegistry);
+              if (assetFileDefBuilder_ == null) {
+                ensureAssetFileDefIsMutable();
+                assetFileDef_.add(m);
+              } else {
+                assetFileDefBuilder_.addMessage(m);
+              }
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getObjectGraphDefFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 58
+            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) {
-        parsedMessage = (org.tensorflow.proto.framework.MetaGraphDef) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
-        if (parsedMessage != null) {
-          mergeFrom(parsedMessage);
-        }
-      }
+        onChanged();
+      } // finally
       return this;
     }
     private int bitField0_;
 
-    private org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef metaInfoDef_;
+    private org.tensorflow.proto.MetaGraphDef.MetaInfoDef metaInfoDef_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef, org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef.Builder, org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDefOrBuilder> metaInfoDefBuilder_;
+        org.tensorflow.proto.MetaGraphDef.MetaInfoDef, org.tensorflow.proto.MetaGraphDef.MetaInfoDef.Builder, org.tensorflow.proto.MetaGraphDef.MetaInfoDefOrBuilder> metaInfoDefBuilder_;
     /**
      * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;
+     * @return Whether the metaInfoDef field is set.
      */
     public boolean hasMetaInfoDef() {
       return metaInfoDefBuilder_ != null || metaInfoDef_ != null;
     }
     /**
      * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;
+     * @return The metaInfoDef.
      */
-    public org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef getMetaInfoDef() {
+    public org.tensorflow.proto.MetaGraphDef.MetaInfoDef getMetaInfoDef() {
       if (metaInfoDefBuilder_ == null) {
-        return metaInfoDef_ == null ? org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef.getDefaultInstance() : metaInfoDef_;
+        return metaInfoDef_ == null ? org.tensorflow.proto.MetaGraphDef.MetaInfoDef.getDefaultInstance() : metaInfoDef_;
       } else {
         return metaInfoDefBuilder_.getMessage();
       }
@@ -3462,7 +3499,7 @@ public org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef getMetaInfoDef()
     /**
      * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;
      */
-    public Builder setMetaInfoDef(org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef value) {
+    public Builder setMetaInfoDef(org.tensorflow.proto.MetaGraphDef.MetaInfoDef value) {
       if (metaInfoDefBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3479,7 +3516,7 @@ public Builder setMetaInfoDef(org.tensorflow.proto.framework.MetaGraphDef.MetaIn
      * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;
      */
     public Builder setMetaInfoDef(
-        org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef.Builder builderForValue) {
+        org.tensorflow.proto.MetaGraphDef.MetaInfoDef.Builder builderForValue) {
       if (metaInfoDefBuilder_ == null) {
         metaInfoDef_ = builderForValue.build();
         onChanged();
@@ -3492,11 +3529,11 @@ public Builder setMetaInfoDef(
     /**
      * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;
      */
-    public Builder mergeMetaInfoDef(org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef value) {
+    public Builder mergeMetaInfoDef(org.tensorflow.proto.MetaGraphDef.MetaInfoDef value) {
       if (metaInfoDefBuilder_ == null) {
         if (metaInfoDef_ != null) {
           metaInfoDef_ =
-            org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef.newBuilder(metaInfoDef_).mergeFrom(value).buildPartial();
+            org.tensorflow.proto.MetaGraphDef.MetaInfoDef.newBuilder(metaInfoDef_).mergeFrom(value).buildPartial();
         } else {
           metaInfoDef_ = value;
         }
@@ -3524,7 +3561,7 @@ public Builder clearMetaInfoDef() {
     /**
      * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;
      */
-    public org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef.Builder getMetaInfoDefBuilder() {
+    public org.tensorflow.proto.MetaGraphDef.MetaInfoDef.Builder getMetaInfoDefBuilder() {
       
       onChanged();
       return getMetaInfoDefFieldBuilder().getBuilder();
@@ -3532,23 +3569,23 @@ public org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef.Builder getMetaIn
     /**
      * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;
      */
-    public org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDefOrBuilder getMetaInfoDefOrBuilder() {
+    public org.tensorflow.proto.MetaGraphDef.MetaInfoDefOrBuilder getMetaInfoDefOrBuilder() {
       if (metaInfoDefBuilder_ != null) {
         return metaInfoDefBuilder_.getMessageOrBuilder();
       } else {
         return metaInfoDef_ == null ?
-            org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef.getDefaultInstance() : metaInfoDef_;
+            org.tensorflow.proto.MetaGraphDef.MetaInfoDef.getDefaultInstance() : metaInfoDef_;
       }
     }
     /**
      * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef, org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef.Builder, org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDefOrBuilder> 
+        org.tensorflow.proto.MetaGraphDef.MetaInfoDef, org.tensorflow.proto.MetaGraphDef.MetaInfoDef.Builder, org.tensorflow.proto.MetaGraphDef.MetaInfoDefOrBuilder> 
         getMetaInfoDefFieldBuilder() {
       if (metaInfoDefBuilder_ == null) {
         metaInfoDefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef, org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDef.Builder, org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDefOrBuilder>(
+            org.tensorflow.proto.MetaGraphDef.MetaInfoDef, org.tensorflow.proto.MetaGraphDef.MetaInfoDef.Builder, org.tensorflow.proto.MetaGraphDef.MetaInfoDefOrBuilder>(
                 getMetaInfoDef(),
                 getParentForChildren(),
                 isClean());
@@ -3557,15 +3594,16 @@ public org.tensorflow.proto.framework.MetaGraphDef.MetaInfoDefOrBuilder getMetaI
       return metaInfoDefBuilder_;
     }
 
-    private org.tensorflow.proto.framework.GraphDef graphDef_;
+    private org.tensorflow.proto.GraphDef graphDef_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        org.tensorflow.proto.framework.GraphDef, org.tensorflow.proto.framework.GraphDef.Builder, org.tensorflow.proto.framework.GraphDefOrBuilder> graphDefBuilder_;
+        org.tensorflow.proto.GraphDef, org.tensorflow.proto.GraphDef.Builder, org.tensorflow.proto.GraphDefOrBuilder> graphDefBuilder_;
     /**
      * 
      * GraphDef.
      * 
* * .tensorflow.GraphDef graph_def = 2; + * @return Whether the graphDef field is set. */ public boolean hasGraphDef() { return graphDefBuilder_ != null || graphDef_ != null; @@ -3576,10 +3614,11 @@ public boolean hasGraphDef() { *
* * .tensorflow.GraphDef graph_def = 2; + * @return The graphDef. */ - public org.tensorflow.proto.framework.GraphDef getGraphDef() { + public org.tensorflow.proto.GraphDef getGraphDef() { if (graphDefBuilder_ == null) { - return graphDef_ == null ? org.tensorflow.proto.framework.GraphDef.getDefaultInstance() : graphDef_; + return graphDef_ == null ? org.tensorflow.proto.GraphDef.getDefaultInstance() : graphDef_; } else { return graphDefBuilder_.getMessage(); } @@ -3591,7 +3630,7 @@ public org.tensorflow.proto.framework.GraphDef getGraphDef() { * * .tensorflow.GraphDef graph_def = 2; */ - public Builder setGraphDef(org.tensorflow.proto.framework.GraphDef value) { + public Builder setGraphDef(org.tensorflow.proto.GraphDef value) { if (graphDefBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3612,7 +3651,7 @@ public Builder setGraphDef(org.tensorflow.proto.framework.GraphDef value) { * .tensorflow.GraphDef graph_def = 2; */ public Builder setGraphDef( - org.tensorflow.proto.framework.GraphDef.Builder builderForValue) { + org.tensorflow.proto.GraphDef.Builder builderForValue) { if (graphDefBuilder_ == null) { graphDef_ = builderForValue.build(); onChanged(); @@ -3629,11 +3668,11 @@ public Builder setGraphDef( * * .tensorflow.GraphDef graph_def = 2; */ - public Builder mergeGraphDef(org.tensorflow.proto.framework.GraphDef value) { + public Builder mergeGraphDef(org.tensorflow.proto.GraphDef value) { if (graphDefBuilder_ == null) { if (graphDef_ != null) { graphDef_ = - org.tensorflow.proto.framework.GraphDef.newBuilder(graphDef_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.GraphDef.newBuilder(graphDef_).mergeFrom(value).buildPartial(); } else { graphDef_ = value; } @@ -3669,7 +3708,7 @@ public Builder clearGraphDef() { * * .tensorflow.GraphDef graph_def = 2; */ - public org.tensorflow.proto.framework.GraphDef.Builder getGraphDefBuilder() { + public org.tensorflow.proto.GraphDef.Builder getGraphDefBuilder() { onChanged(); return getGraphDefFieldBuilder().getBuilder(); @@ -3681,12 +3720,12 @@ public org.tensorflow.proto.framework.GraphDef.Builder getGraphDefBuilder() { * * .tensorflow.GraphDef graph_def = 2; */ - public org.tensorflow.proto.framework.GraphDefOrBuilder getGraphDefOrBuilder() { + public org.tensorflow.proto.GraphDefOrBuilder getGraphDefOrBuilder() { if (graphDefBuilder_ != null) { return graphDefBuilder_.getMessageOrBuilder(); } else { return graphDef_ == null ? - org.tensorflow.proto.framework.GraphDef.getDefaultInstance() : graphDef_; + org.tensorflow.proto.GraphDef.getDefaultInstance() : graphDef_; } } /** @@ -3697,11 +3736,11 @@ public org.tensorflow.proto.framework.GraphDefOrBuilder getGraphDefOrBuilder() { * .tensorflow.GraphDef graph_def = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.GraphDef, org.tensorflow.proto.framework.GraphDef.Builder, org.tensorflow.proto.framework.GraphDefOrBuilder> + org.tensorflow.proto.GraphDef, org.tensorflow.proto.GraphDef.Builder, org.tensorflow.proto.GraphDefOrBuilder> getGraphDefFieldBuilder() { if (graphDefBuilder_ == null) { graphDefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.GraphDef, org.tensorflow.proto.framework.GraphDef.Builder, org.tensorflow.proto.framework.GraphDefOrBuilder>( + org.tensorflow.proto.GraphDef, org.tensorflow.proto.GraphDef.Builder, org.tensorflow.proto.GraphDefOrBuilder>( getGraphDef(), getParentForChildren(), isClean()); @@ -3710,15 +3749,16 @@ public org.tensorflow.proto.framework.GraphDefOrBuilder getGraphDefOrBuilder() { return graphDefBuilder_; } - private org.tensorflow.proto.util.SaverDef saverDef_; + private org.tensorflow.proto.SaverDef saverDef_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.SaverDef, org.tensorflow.proto.util.SaverDef.Builder, org.tensorflow.proto.util.SaverDefOrBuilder> saverDefBuilder_; + org.tensorflow.proto.SaverDef, org.tensorflow.proto.SaverDef.Builder, org.tensorflow.proto.SaverDefOrBuilder> saverDefBuilder_; /** *
      * SaverDef.
      * 
* * .tensorflow.SaverDef saver_def = 3; + * @return Whether the saverDef field is set. */ public boolean hasSaverDef() { return saverDefBuilder_ != null || saverDef_ != null; @@ -3729,10 +3769,11 @@ public boolean hasSaverDef() { *
* * .tensorflow.SaverDef saver_def = 3; + * @return The saverDef. */ - public org.tensorflow.proto.util.SaverDef getSaverDef() { + public org.tensorflow.proto.SaverDef getSaverDef() { if (saverDefBuilder_ == null) { - return saverDef_ == null ? org.tensorflow.proto.util.SaverDef.getDefaultInstance() : saverDef_; + return saverDef_ == null ? org.tensorflow.proto.SaverDef.getDefaultInstance() : saverDef_; } else { return saverDefBuilder_.getMessage(); } @@ -3744,7 +3785,7 @@ public org.tensorflow.proto.util.SaverDef getSaverDef() { * * .tensorflow.SaverDef saver_def = 3; */ - public Builder setSaverDef(org.tensorflow.proto.util.SaverDef value) { + public Builder setSaverDef(org.tensorflow.proto.SaverDef value) { if (saverDefBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3765,7 +3806,7 @@ public Builder setSaverDef(org.tensorflow.proto.util.SaverDef value) { * .tensorflow.SaverDef saver_def = 3; */ public Builder setSaverDef( - org.tensorflow.proto.util.SaverDef.Builder builderForValue) { + org.tensorflow.proto.SaverDef.Builder builderForValue) { if (saverDefBuilder_ == null) { saverDef_ = builderForValue.build(); onChanged(); @@ -3782,11 +3823,11 @@ public Builder setSaverDef( * * .tensorflow.SaverDef saver_def = 3; */ - public Builder mergeSaverDef(org.tensorflow.proto.util.SaverDef value) { + public Builder mergeSaverDef(org.tensorflow.proto.SaverDef value) { if (saverDefBuilder_ == null) { if (saverDef_ != null) { saverDef_ = - org.tensorflow.proto.util.SaverDef.newBuilder(saverDef_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.SaverDef.newBuilder(saverDef_).mergeFrom(value).buildPartial(); } else { saverDef_ = value; } @@ -3822,7 +3863,7 @@ public Builder clearSaverDef() { * * .tensorflow.SaverDef saver_def = 3; */ - public org.tensorflow.proto.util.SaverDef.Builder getSaverDefBuilder() { + public org.tensorflow.proto.SaverDef.Builder getSaverDefBuilder() { onChanged(); return getSaverDefFieldBuilder().getBuilder(); @@ -3834,12 +3875,12 @@ public org.tensorflow.proto.util.SaverDef.Builder getSaverDefBuilder() { * * .tensorflow.SaverDef saver_def = 3; */ - public org.tensorflow.proto.util.SaverDefOrBuilder getSaverDefOrBuilder() { + public org.tensorflow.proto.SaverDefOrBuilder getSaverDefOrBuilder() { if (saverDefBuilder_ != null) { return saverDefBuilder_.getMessageOrBuilder(); } else { return saverDef_ == null ? - org.tensorflow.proto.util.SaverDef.getDefaultInstance() : saverDef_; + org.tensorflow.proto.SaverDef.getDefaultInstance() : saverDef_; } } /** @@ -3850,11 +3891,11 @@ public org.tensorflow.proto.util.SaverDefOrBuilder getSaverDefOrBuilder() { * .tensorflow.SaverDef saver_def = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.SaverDef, org.tensorflow.proto.util.SaverDef.Builder, org.tensorflow.proto.util.SaverDefOrBuilder> + org.tensorflow.proto.SaverDef, org.tensorflow.proto.SaverDef.Builder, org.tensorflow.proto.SaverDefOrBuilder> getSaverDefFieldBuilder() { if (saverDefBuilder_ == null) { saverDefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.SaverDef, org.tensorflow.proto.util.SaverDef.Builder, org.tensorflow.proto.util.SaverDefOrBuilder>( + org.tensorflow.proto.SaverDef, org.tensorflow.proto.SaverDef.Builder, org.tensorflow.proto.SaverDefOrBuilder>( getSaverDef(), getParentForChildren(), isClean()); @@ -3864,8 +3905,8 @@ public org.tensorflow.proto.util.SaverDefOrBuilder getSaverDefOrBuilder() { } private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.CollectionDef> collectionDef_; - private com.google.protobuf.MapField + java.lang.String, org.tensorflow.proto.CollectionDef> collectionDef_; + private com.google.protobuf.MapField internalGetCollectionDef() { if (collectionDef_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -3873,7 +3914,7 @@ public org.tensorflow.proto.util.SaverDefOrBuilder getSaverDefOrBuilder() { } return collectionDef_; } - private com.google.protobuf.MapField + private com.google.protobuf.MapField internalGetMutableCollectionDef() { onChanged();; if (collectionDef_ == null) { @@ -3898,16 +3939,18 @@ public int getCollectionDefCount() { * map<string, .tensorflow.CollectionDef> collection_def = 4; */ + @java.lang.Override public boolean containsCollectionDef( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } return internalGetCollectionDef().getMap().containsKey(key); } /** * Use {@link #getCollectionDefMap()} instead. */ + @java.lang.Override @java.lang.Deprecated - public java.util.Map getCollectionDef() { + public java.util.Map getCollectionDef() { return getCollectionDefMap(); } /** @@ -3918,8 +3961,9 @@ public java.util.Mapmap<string, .tensorflow.CollectionDef> collection_def = 4; */ + @java.lang.Override - public java.util.Map getCollectionDefMap() { + public java.util.Map getCollectionDefMap() { return internalGetCollectionDef().getMap(); } /** @@ -3930,12 +3974,13 @@ public java.util.Mapmap<string, .tensorflow.CollectionDef> collection_def = 4; */ + @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef getCollectionDefOrDefault( + public org.tensorflow.proto.CollectionDef getCollectionDefOrDefault( java.lang.String key, - org.tensorflow.proto.framework.CollectionDef defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = + org.tensorflow.proto.CollectionDef defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetCollectionDef().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @@ -3947,11 +3992,12 @@ public org.tensorflow.proto.framework.CollectionDef getCollectionDefOrDefault( * * map<string, .tensorflow.CollectionDef> collection_def = 4; */ + @java.lang.Override - public org.tensorflow.proto.framework.CollectionDef getCollectionDefOrThrow( + public org.tensorflow.proto.CollectionDef getCollectionDefOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetCollectionDef().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); @@ -3975,7 +4021,7 @@ public Builder clearCollectionDef() { public Builder removeCollectionDef( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } internalGetMutableCollectionDef().getMutableMap() .remove(key); return this; @@ -3984,7 +4030,7 @@ public Builder removeCollectionDef( * Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map + public java.util.Map getMutableCollectionDef() { return internalGetMutableCollectionDef().getMutableMap(); } @@ -3998,9 +4044,12 @@ public Builder removeCollectionDef( */ public Builder putCollectionDef( java.lang.String key, - org.tensorflow.proto.framework.CollectionDef value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } + org.tensorflow.proto.CollectionDef value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + internalGetMutableCollectionDef().getMutableMap() .put(key, value); return this; @@ -4015,15 +4064,15 @@ public Builder putCollectionDef( */ public Builder putAllCollectionDef( - java.util.Map values) { + java.util.Map values) { internalGetMutableCollectionDef().getMutableMap() .putAll(values); return this; } private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.SignatureDef> signatureDef_; - private com.google.protobuf.MapField + java.lang.String, org.tensorflow.proto.SignatureDef> signatureDef_; + private com.google.protobuf.MapField internalGetSignatureDef() { if (signatureDef_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -4031,7 +4080,7 @@ public Builder putAllCollectionDef( } return signatureDef_; } - private com.google.protobuf.MapField + private com.google.protobuf.MapField internalGetMutableSignatureDef() { onChanged();; if (signatureDef_ == null) { @@ -4056,16 +4105,18 @@ public int getSignatureDefCount() { * map<string, .tensorflow.SignatureDef> signature_def = 5; */ + @java.lang.Override public boolean containsSignatureDef( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } return internalGetSignatureDef().getMap().containsKey(key); } /** * Use {@link #getSignatureDefMap()} instead. */ + @java.lang.Override @java.lang.Deprecated - public java.util.Map getSignatureDef() { + public java.util.Map getSignatureDef() { return getSignatureDefMap(); } /** @@ -4076,8 +4127,9 @@ public java.util.Mapmap<string, .tensorflow.SignatureDef> signature_def = 5; */ + @java.lang.Override - public java.util.Map getSignatureDefMap() { + public java.util.Map getSignatureDefMap() { return internalGetSignatureDef().getMap(); } /** @@ -4088,12 +4140,13 @@ public java.util.Mapmap<string, .tensorflow.SignatureDef> signature_def = 5; */ + @java.lang.Override - public org.tensorflow.proto.framework.SignatureDef getSignatureDefOrDefault( + public org.tensorflow.proto.SignatureDef getSignatureDefOrDefault( java.lang.String key, - org.tensorflow.proto.framework.SignatureDef defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = + org.tensorflow.proto.SignatureDef defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetSignatureDef().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @@ -4105,11 +4158,12 @@ public org.tensorflow.proto.framework.SignatureDef getSignatureDefOrDefault( * * map<string, .tensorflow.SignatureDef> signature_def = 5; */ + @java.lang.Override - public org.tensorflow.proto.framework.SignatureDef getSignatureDefOrThrow( + public org.tensorflow.proto.SignatureDef getSignatureDefOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetSignatureDef().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); @@ -4133,7 +4187,7 @@ public Builder clearSignatureDef() { public Builder removeSignatureDef( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } internalGetMutableSignatureDef().getMutableMap() .remove(key); return this; @@ -4142,7 +4196,7 @@ public Builder removeSignatureDef( * Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map + public java.util.Map getMutableSignatureDef() { return internalGetMutableSignatureDef().getMutableMap(); } @@ -4156,9 +4210,12 @@ public Builder removeSignatureDef( */ public Builder putSignatureDef( java.lang.String key, - org.tensorflow.proto.framework.SignatureDef value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } + org.tensorflow.proto.SignatureDef value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + internalGetMutableSignatureDef().getMutableMap() .put(key, value); return this; @@ -4173,23 +4230,23 @@ public Builder putSignatureDef( */ public Builder putAllSignatureDef( - java.util.Map values) { + java.util.Map values) { internalGetMutableSignatureDef().getMutableMap() .putAll(values); return this; } - private java.util.List assetFileDef_ = + private java.util.List assetFileDef_ = java.util.Collections.emptyList(); private void ensureAssetFileDefIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - assetFileDef_ = new java.util.ArrayList(assetFileDef_); + assetFileDef_ = new java.util.ArrayList(assetFileDef_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.AssetFileDef, org.tensorflow.proto.framework.AssetFileDef.Builder, org.tensorflow.proto.framework.AssetFileDefOrBuilder> assetFileDefBuilder_; + org.tensorflow.proto.AssetFileDef, org.tensorflow.proto.AssetFileDef.Builder, org.tensorflow.proto.AssetFileDefOrBuilder> assetFileDefBuilder_; /** *
@@ -4198,7 +4255,7 @@ private void ensureAssetFileDefIsMutable() {
      *
      * repeated .tensorflow.AssetFileDef asset_file_def = 6;
      */
-    public java.util.List getAssetFileDefList() {
+    public java.util.List getAssetFileDefList() {
       if (assetFileDefBuilder_ == null) {
         return java.util.Collections.unmodifiableList(assetFileDef_);
       } else {
@@ -4226,7 +4283,7 @@ public int getAssetFileDefCount() {
      *
      * repeated .tensorflow.AssetFileDef asset_file_def = 6;
      */
-    public org.tensorflow.proto.framework.AssetFileDef getAssetFileDef(int index) {
+    public org.tensorflow.proto.AssetFileDef getAssetFileDef(int index) {
       if (assetFileDefBuilder_ == null) {
         return assetFileDef_.get(index);
       } else {
@@ -4241,7 +4298,7 @@ public org.tensorflow.proto.framework.AssetFileDef getAssetFileDef(int index) {
      * repeated .tensorflow.AssetFileDef asset_file_def = 6;
      */
     public Builder setAssetFileDef(
-        int index, org.tensorflow.proto.framework.AssetFileDef value) {
+        int index, org.tensorflow.proto.AssetFileDef value) {
       if (assetFileDefBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -4262,7 +4319,7 @@ public Builder setAssetFileDef(
      * repeated .tensorflow.AssetFileDef asset_file_def = 6;
      */
     public Builder setAssetFileDef(
-        int index, org.tensorflow.proto.framework.AssetFileDef.Builder builderForValue) {
+        int index, org.tensorflow.proto.AssetFileDef.Builder builderForValue) {
       if (assetFileDefBuilder_ == null) {
         ensureAssetFileDefIsMutable();
         assetFileDef_.set(index, builderForValue.build());
@@ -4279,7 +4336,7 @@ public Builder setAssetFileDef(
      *
      * repeated .tensorflow.AssetFileDef asset_file_def = 6;
      */
-    public Builder addAssetFileDef(org.tensorflow.proto.framework.AssetFileDef value) {
+    public Builder addAssetFileDef(org.tensorflow.proto.AssetFileDef value) {
       if (assetFileDefBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -4300,7 +4357,7 @@ public Builder addAssetFileDef(org.tensorflow.proto.framework.AssetFileDef value
      * repeated .tensorflow.AssetFileDef asset_file_def = 6;
      */
     public Builder addAssetFileDef(
-        int index, org.tensorflow.proto.framework.AssetFileDef value) {
+        int index, org.tensorflow.proto.AssetFileDef value) {
       if (assetFileDefBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -4321,7 +4378,7 @@ public Builder addAssetFileDef(
      * repeated .tensorflow.AssetFileDef asset_file_def = 6;
      */
     public Builder addAssetFileDef(
-        org.tensorflow.proto.framework.AssetFileDef.Builder builderForValue) {
+        org.tensorflow.proto.AssetFileDef.Builder builderForValue) {
       if (assetFileDefBuilder_ == null) {
         ensureAssetFileDefIsMutable();
         assetFileDef_.add(builderForValue.build());
@@ -4339,7 +4396,7 @@ public Builder addAssetFileDef(
      * repeated .tensorflow.AssetFileDef asset_file_def = 6;
      */
     public Builder addAssetFileDef(
-        int index, org.tensorflow.proto.framework.AssetFileDef.Builder builderForValue) {
+        int index, org.tensorflow.proto.AssetFileDef.Builder builderForValue) {
       if (assetFileDefBuilder_ == null) {
         ensureAssetFileDefIsMutable();
         assetFileDef_.add(index, builderForValue.build());
@@ -4357,7 +4414,7 @@ public Builder addAssetFileDef(
      * repeated .tensorflow.AssetFileDef asset_file_def = 6;
      */
     public Builder addAllAssetFileDef(
-        java.lang.Iterable values) {
+        java.lang.Iterable values) {
       if (assetFileDefBuilder_ == null) {
         ensureAssetFileDefIsMutable();
         com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -4409,7 +4466,7 @@ public Builder removeAssetFileDef(int index) {
      *
      * repeated .tensorflow.AssetFileDef asset_file_def = 6;
      */
-    public org.tensorflow.proto.framework.AssetFileDef.Builder getAssetFileDefBuilder(
+    public org.tensorflow.proto.AssetFileDef.Builder getAssetFileDefBuilder(
         int index) {
       return getAssetFileDefFieldBuilder().getBuilder(index);
     }
@@ -4420,7 +4477,7 @@ public org.tensorflow.proto.framework.AssetFileDef.Builder getAssetFileDefBuilde
      *
      * repeated .tensorflow.AssetFileDef asset_file_def = 6;
      */
-    public org.tensorflow.proto.framework.AssetFileDefOrBuilder getAssetFileDefOrBuilder(
+    public org.tensorflow.proto.AssetFileDefOrBuilder getAssetFileDefOrBuilder(
         int index) {
       if (assetFileDefBuilder_ == null) {
         return assetFileDef_.get(index);  } else {
@@ -4434,7 +4491,7 @@ public org.tensorflow.proto.framework.AssetFileDefOrBuilder getAssetFileDefOrBui
      *
      * repeated .tensorflow.AssetFileDef asset_file_def = 6;
      */
-    public java.util.List 
+    public java.util.List 
          getAssetFileDefOrBuilderList() {
       if (assetFileDefBuilder_ != null) {
         return assetFileDefBuilder_.getMessageOrBuilderList();
@@ -4449,9 +4506,9 @@ public org.tensorflow.proto.framework.AssetFileDefOrBuilder getAssetFileDefOrBui
      *
      * repeated .tensorflow.AssetFileDef asset_file_def = 6;
      */
-    public org.tensorflow.proto.framework.AssetFileDef.Builder addAssetFileDefBuilder() {
+    public org.tensorflow.proto.AssetFileDef.Builder addAssetFileDefBuilder() {
       return getAssetFileDefFieldBuilder().addBuilder(
-          org.tensorflow.proto.framework.AssetFileDef.getDefaultInstance());
+          org.tensorflow.proto.AssetFileDef.getDefaultInstance());
     }
     /**
      * 
@@ -4460,10 +4517,10 @@ public org.tensorflow.proto.framework.AssetFileDef.Builder addAssetFileDefBuilde
      *
      * repeated .tensorflow.AssetFileDef asset_file_def = 6;
      */
-    public org.tensorflow.proto.framework.AssetFileDef.Builder addAssetFileDefBuilder(
+    public org.tensorflow.proto.AssetFileDef.Builder addAssetFileDefBuilder(
         int index) {
       return getAssetFileDefFieldBuilder().addBuilder(
-          index, org.tensorflow.proto.framework.AssetFileDef.getDefaultInstance());
+          index, org.tensorflow.proto.AssetFileDef.getDefaultInstance());
     }
     /**
      * 
@@ -4472,16 +4529,16 @@ public org.tensorflow.proto.framework.AssetFileDef.Builder addAssetFileDefBuilde
      *
      * repeated .tensorflow.AssetFileDef asset_file_def = 6;
      */
-    public java.util.List 
+    public java.util.List 
          getAssetFileDefBuilderList() {
       return getAssetFileDefFieldBuilder().getBuilderList();
     }
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        org.tensorflow.proto.framework.AssetFileDef, org.tensorflow.proto.framework.AssetFileDef.Builder, org.tensorflow.proto.framework.AssetFileDefOrBuilder> 
+        org.tensorflow.proto.AssetFileDef, org.tensorflow.proto.AssetFileDef.Builder, org.tensorflow.proto.AssetFileDefOrBuilder> 
         getAssetFileDefFieldBuilder() {
       if (assetFileDefBuilder_ == null) {
         assetFileDefBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            org.tensorflow.proto.framework.AssetFileDef, org.tensorflow.proto.framework.AssetFileDef.Builder, org.tensorflow.proto.framework.AssetFileDefOrBuilder>(
+            org.tensorflow.proto.AssetFileDef, org.tensorflow.proto.AssetFileDef.Builder, org.tensorflow.proto.AssetFileDefOrBuilder>(
                 assetFileDef_,
                 ((bitField0_ & 0x00000004) != 0),
                 getParentForChildren(),
@@ -4491,15 +4548,16 @@ public org.tensorflow.proto.framework.AssetFileDef.Builder addAssetFileDefBuilde
       return assetFileDefBuilder_;
     }
 
-    private org.tensorflow.proto.framework.SavedObjectGraph objectGraphDef_;
+    private org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph objectGraphDef_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        org.tensorflow.proto.framework.SavedObjectGraph, org.tensorflow.proto.framework.SavedObjectGraph.Builder, org.tensorflow.proto.framework.SavedObjectGraphOrBuilder> objectGraphDefBuilder_;
+        org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraphOrBuilder> objectGraphDefBuilder_;
     /**
      * 
      * Extra information about the structure of functions and stateful objects.
      * 
* * .tensorflow.SavedObjectGraph object_graph_def = 7; + * @return Whether the objectGraphDef field is set. */ public boolean hasObjectGraphDef() { return objectGraphDefBuilder_ != null || objectGraphDef_ != null; @@ -4510,10 +4568,11 @@ public boolean hasObjectGraphDef() { *
* * .tensorflow.SavedObjectGraph object_graph_def = 7; + * @return The objectGraphDef. */ - public org.tensorflow.proto.framework.SavedObjectGraph getObjectGraphDef() { + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph getObjectGraphDef() { if (objectGraphDefBuilder_ == null) { - return objectGraphDef_ == null ? org.tensorflow.proto.framework.SavedObjectGraph.getDefaultInstance() : objectGraphDef_; + return objectGraphDef_ == null ? org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph.getDefaultInstance() : objectGraphDef_; } else { return objectGraphDefBuilder_.getMessage(); } @@ -4525,7 +4584,7 @@ public org.tensorflow.proto.framework.SavedObjectGraph getObjectGraphDef() { * * .tensorflow.SavedObjectGraph object_graph_def = 7; */ - public Builder setObjectGraphDef(org.tensorflow.proto.framework.SavedObjectGraph value) { + public Builder setObjectGraphDef(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph value) { if (objectGraphDefBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4546,7 +4605,7 @@ public Builder setObjectGraphDef(org.tensorflow.proto.framework.SavedObjectGraph * .tensorflow.SavedObjectGraph object_graph_def = 7; */ public Builder setObjectGraphDef( - org.tensorflow.proto.framework.SavedObjectGraph.Builder builderForValue) { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph.Builder builderForValue) { if (objectGraphDefBuilder_ == null) { objectGraphDef_ = builderForValue.build(); onChanged(); @@ -4563,11 +4622,11 @@ public Builder setObjectGraphDef( * * .tensorflow.SavedObjectGraph object_graph_def = 7; */ - public Builder mergeObjectGraphDef(org.tensorflow.proto.framework.SavedObjectGraph value) { + public Builder mergeObjectGraphDef(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph value) { if (objectGraphDefBuilder_ == null) { if (objectGraphDef_ != null) { objectGraphDef_ = - org.tensorflow.proto.framework.SavedObjectGraph.newBuilder(objectGraphDef_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph.newBuilder(objectGraphDef_).mergeFrom(value).buildPartial(); } else { objectGraphDef_ = value; } @@ -4603,7 +4662,7 @@ public Builder clearObjectGraphDef() { * * .tensorflow.SavedObjectGraph object_graph_def = 7; */ - public org.tensorflow.proto.framework.SavedObjectGraph.Builder getObjectGraphDefBuilder() { + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph.Builder getObjectGraphDefBuilder() { onChanged(); return getObjectGraphDefFieldBuilder().getBuilder(); @@ -4615,12 +4674,12 @@ public org.tensorflow.proto.framework.SavedObjectGraph.Builder getObjectGraphDef * * .tensorflow.SavedObjectGraph object_graph_def = 7; */ - public org.tensorflow.proto.framework.SavedObjectGraphOrBuilder getObjectGraphDefOrBuilder() { + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraphOrBuilder getObjectGraphDefOrBuilder() { if (objectGraphDefBuilder_ != null) { return objectGraphDefBuilder_.getMessageOrBuilder(); } else { return objectGraphDef_ == null ? - org.tensorflow.proto.framework.SavedObjectGraph.getDefaultInstance() : objectGraphDef_; + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph.getDefaultInstance() : objectGraphDef_; } } /** @@ -4631,11 +4690,11 @@ public org.tensorflow.proto.framework.SavedObjectGraphOrBuilder getObjectGraphDe * .tensorflow.SavedObjectGraph object_graph_def = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedObjectGraph, org.tensorflow.proto.framework.SavedObjectGraph.Builder, org.tensorflow.proto.framework.SavedObjectGraphOrBuilder> + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraphOrBuilder> getObjectGraphDefFieldBuilder() { if (objectGraphDefBuilder_ == null) { objectGraphDefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SavedObjectGraph, org.tensorflow.proto.framework.SavedObjectGraph.Builder, org.tensorflow.proto.framework.SavedObjectGraphOrBuilder>( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraphOrBuilder>( getObjectGraphDef(), getParentForChildren(), isClean()); @@ -4660,12 +4719,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.MetaGraphDef) - private static final org.tensorflow.proto.framework.MetaGraphDef DEFAULT_INSTANCE; + private static final org.tensorflow.proto.MetaGraphDef DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.MetaGraphDef(); + DEFAULT_INSTANCE = new org.tensorflow.proto.MetaGraphDef(); } - public static org.tensorflow.proto.framework.MetaGraphDef getDefaultInstance() { + public static org.tensorflow.proto.MetaGraphDef getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -4676,7 +4735,18 @@ public MetaGraphDef parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MetaGraphDef(input, extensionRegistry); + 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(); } }; @@ -4690,7 +4760,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.MetaGraphDef getDefaultInstanceForType() { + public org.tensorflow.proto.MetaGraphDef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MetaGraphDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MetaGraphDefOrBuilder.java new file mode 100644 index 00000000000..e23f6dedca5 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MetaGraphDefOrBuilder.java @@ -0,0 +1,271 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/meta_graph.proto + +package org.tensorflow.proto; + +public interface MetaGraphDefOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.MetaGraphDef) + com.google.protobuf.MessageOrBuilder { + + /** + * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; + * @return Whether the metaInfoDef field is set. + */ + boolean hasMetaInfoDef(); + /** + * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; + * @return The metaInfoDef. + */ + org.tensorflow.proto.MetaGraphDef.MetaInfoDef getMetaInfoDef(); + /** + * .tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; + */ + org.tensorflow.proto.MetaGraphDef.MetaInfoDefOrBuilder getMetaInfoDefOrBuilder(); + + /** + *
+   * GraphDef.
+   * 
+ * + * .tensorflow.GraphDef graph_def = 2; + * @return Whether the graphDef field is set. + */ + boolean hasGraphDef(); + /** + *
+   * GraphDef.
+   * 
+ * + * .tensorflow.GraphDef graph_def = 2; + * @return The graphDef. + */ + org.tensorflow.proto.GraphDef getGraphDef(); + /** + *
+   * GraphDef.
+   * 
+ * + * .tensorflow.GraphDef graph_def = 2; + */ + org.tensorflow.proto.GraphDefOrBuilder getGraphDefOrBuilder(); + + /** + *
+   * SaverDef.
+   * 
+ * + * .tensorflow.SaverDef saver_def = 3; + * @return Whether the saverDef field is set. + */ + boolean hasSaverDef(); + /** + *
+   * SaverDef.
+   * 
+ * + * .tensorflow.SaverDef saver_def = 3; + * @return The saverDef. + */ + org.tensorflow.proto.SaverDef getSaverDef(); + /** + *
+   * SaverDef.
+   * 
+ * + * .tensorflow.SaverDef saver_def = 3; + */ + org.tensorflow.proto.SaverDefOrBuilder getSaverDefOrBuilder(); + + /** + *
+   * collection_def: Map from collection name to collections.
+   * See CollectionDef section for details.
+   * 
+ * + * map<string, .tensorflow.CollectionDef> collection_def = 4; + */ + int getCollectionDefCount(); + /** + *
+   * collection_def: Map from collection name to collections.
+   * See CollectionDef section for details.
+   * 
+ * + * map<string, .tensorflow.CollectionDef> collection_def = 4; + */ + boolean containsCollectionDef( + java.lang.String key); + /** + * Use {@link #getCollectionDefMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getCollectionDef(); + /** + *
+   * collection_def: Map from collection name to collections.
+   * See CollectionDef section for details.
+   * 
+ * + * map<string, .tensorflow.CollectionDef> collection_def = 4; + */ + java.util.Map + getCollectionDefMap(); + /** + *
+   * collection_def: Map from collection name to collections.
+   * See CollectionDef section for details.
+   * 
+ * + * map<string, .tensorflow.CollectionDef> collection_def = 4; + */ + + /* nullable */ +org.tensorflow.proto.CollectionDef getCollectionDefOrDefault( + java.lang.String key, + /* nullable */ +org.tensorflow.proto.CollectionDef defaultValue); + /** + *
+   * collection_def: Map from collection name to collections.
+   * See CollectionDef section for details.
+   * 
+ * + * map<string, .tensorflow.CollectionDef> collection_def = 4; + */ + + org.tensorflow.proto.CollectionDef getCollectionDefOrThrow( + java.lang.String key); + + /** + *
+   * signature_def: Map from user supplied key for a signature to a single
+   * SignatureDef.
+   * 
+ * + * map<string, .tensorflow.SignatureDef> signature_def = 5; + */ + int getSignatureDefCount(); + /** + *
+   * signature_def: Map from user supplied key for a signature to a single
+   * SignatureDef.
+   * 
+ * + * map<string, .tensorflow.SignatureDef> signature_def = 5; + */ + boolean containsSignatureDef( + java.lang.String key); + /** + * Use {@link #getSignatureDefMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getSignatureDef(); + /** + *
+   * signature_def: Map from user supplied key for a signature to a single
+   * SignatureDef.
+   * 
+ * + * map<string, .tensorflow.SignatureDef> signature_def = 5; + */ + java.util.Map + getSignatureDefMap(); + /** + *
+   * signature_def: Map from user supplied key for a signature to a single
+   * SignatureDef.
+   * 
+ * + * map<string, .tensorflow.SignatureDef> signature_def = 5; + */ + + /* nullable */ +org.tensorflow.proto.SignatureDef getSignatureDefOrDefault( + java.lang.String key, + /* nullable */ +org.tensorflow.proto.SignatureDef defaultValue); + /** + *
+   * signature_def: Map from user supplied key for a signature to a single
+   * SignatureDef.
+   * 
+ * + * map<string, .tensorflow.SignatureDef> signature_def = 5; + */ + + org.tensorflow.proto.SignatureDef getSignatureDefOrThrow( + java.lang.String key); + + /** + *
+   * Asset file def to be used with the defined graph.
+   * 
+ * + * repeated .tensorflow.AssetFileDef asset_file_def = 6; + */ + java.util.List + getAssetFileDefList(); + /** + *
+   * Asset file def to be used with the defined graph.
+   * 
+ * + * repeated .tensorflow.AssetFileDef asset_file_def = 6; + */ + org.tensorflow.proto.AssetFileDef getAssetFileDef(int index); + /** + *
+   * Asset file def to be used with the defined graph.
+   * 
+ * + * repeated .tensorflow.AssetFileDef asset_file_def = 6; + */ + int getAssetFileDefCount(); + /** + *
+   * Asset file def to be used with the defined graph.
+   * 
+ * + * repeated .tensorflow.AssetFileDef asset_file_def = 6; + */ + java.util.List + getAssetFileDefOrBuilderList(); + /** + *
+   * Asset file def to be used with the defined graph.
+   * 
+ * + * repeated .tensorflow.AssetFileDef asset_file_def = 6; + */ + org.tensorflow.proto.AssetFileDefOrBuilder getAssetFileDefOrBuilder( + int index); + + /** + *
+   * Extra information about the structure of functions and stateful objects.
+   * 
+ * + * .tensorflow.SavedObjectGraph object_graph_def = 7; + * @return Whether the objectGraphDef field is set. + */ + boolean hasObjectGraphDef(); + /** + *
+   * Extra information about the structure of functions and stateful objects.
+   * 
+ * + * .tensorflow.SavedObjectGraph object_graph_def = 7; + * @return The objectGraphDef. + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph getObjectGraphDef(); + /** + *
+   * Extra information about the structure of functions and stateful objects.
+   * 
+ * + * .tensorflow.SavedObjectGraph object_graph_def = 7; + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraphOrBuilder getObjectGraphDefOrBuilder(); +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MetaGraphProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MetaGraphProtos.java similarity index 86% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MetaGraphProtos.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MetaGraphProtos.java index ceaa684bfbb..021071a2533 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/MetaGraphProtos.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MetaGraphProtos.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/meta_graph.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public final class MetaGraphProtos { private MetaGraphProtos() {} @@ -99,6 +99,11 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_SignatureDef_OutputsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_SignatureDef_DefaultsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_SignatureDef_DefaultsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_AssetFileDef_descriptor; static final @@ -117,6 +122,7 @@ public static void registerAllExtensions( "oto\022\ntensorflow\032\031google/protobuf/any.pro" + "to\032%tensorflow/core/framework/graph.prot" + "o\032&tensorflow/core/framework/op_def.prot" + + "o\032&tensorflow/core/framework/tensor.prot" + "o\032,tensorflow/core/framework/tensor_shap" + "e.proto\032%tensorflow/core/framework/types" + ".proto\0321tensorflow/core/protobuf/saved_o" + @@ -169,32 +175,36 @@ public static void registerAllExtensions( "hape_tensor_name\030\003 \001(\t\032k\n\017CompositeTenso" + "r\022,\n\ttype_spec\030\001 \001(\0132\031.tensorflow.TypeSp" + "ecProto\022*\n\ncomponents\030\002 \003(\0132\026.tensorflow" + - ".TensorInfoB\n\n\010encoding\"\240\002\n\014SignatureDef" + + ".TensorInfoB\n\n\010encoding\"\244\003\n\014SignatureDef" + "\0224\n\006inputs\030\001 \003(\0132$.tensorflow.SignatureD" + "ef.InputsEntry\0226\n\007outputs\030\002 \003(\0132%.tensor" + "flow.SignatureDef.OutputsEntry\022\023\n\013method" + - "_name\030\003 \001(\t\032E\n\013InputsEntry\022\013\n\003key\030\001 \001(\t\022" + - "%\n\005value\030\002 \001(\0132\026.tensorflow.TensorInfo:\002" + - "8\001\032F\n\014OutputsEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value" + - "\030\002 \001(\0132\026.tensorflow.TensorInfo:\0028\001\"M\n\014As" + - "setFileDef\022+\n\013tensor_info\030\001 \001(\0132\026.tensor" + - "flow.TensorInfo\022\020\n\010filename\030\002 \001(\tB\215\001\n\036or" + - "g.tensorflow.proto.frameworkB\017MetaGraphP" + - "rotosP\001ZUgithub.com/tensorflow/tensorflo" + - "w/tensorflow/go/core/protobuf/for_core_p" + - "rotos_go_proto\370\001\001b\006proto3" + "_name\030\003 \001(\t\0228\n\010defaults\030\004 \003(\0132&.tensorfl" + + "ow.SignatureDef.DefaultsEntry\032E\n\013InputsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.tenso" + + "rflow.TensorInfo:\0028\001\032F\n\014OutputsEntry\022\013\n\003" + + "key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.tensorflow.Te" + + "nsorInfo:\0028\001\032H\n\rDefaultsEntry\022\013\n\003key\030\001 \001" + + "(\t\022&\n\005value\030\002 \001(\0132\027.tensorflow.TensorPro" + + "to:\0028\001\"M\n\014AssetFileDef\022+\n\013tensor_info\030\001 " + + "\001(\0132\026.tensorflow.TensorInfo\022\020\n\010filename\030" + + "\002 \001(\tB\203\001\n\024org.tensorflow.protoB\017MetaGrap" + + "hProtosP\001ZUgithub.com/tensorflow/tensorf" + + "low/tensorflow/go/core/protobuf/for_core" + + "_protos_go_proto\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.AnyProto.getDescriptor(), - org.tensorflow.proto.framework.GraphProtos.getDescriptor(), - org.tensorflow.proto.framework.OpDefProtos.getDescriptor(), - org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(), - org.tensorflow.proto.framework.TypesProtos.getDescriptor(), - org.tensorflow.proto.framework.SavedObjectGraphProtos.getDescriptor(), - org.tensorflow.proto.util.SaverProtos.getDescriptor(), - org.tensorflow.proto.framework.StructProtos.getDescriptor(), + org.tensorflow.proto.GraphProtos.getDescriptor(), + org.tensorflow.proto.OpDefProtos.getDescriptor(), + org.tensorflow.proto.TensorProtos.getDescriptor(), + org.tensorflow.proto.TensorShapeProtos.getDescriptor(), + org.tensorflow.proto.TypesProtos.getDescriptor(), + org.tensorflow.proto.SavedObjectGraphOuterClass.getDescriptor(), + org.tensorflow.proto.SaverProtos.getDescriptor(), + org.tensorflow.proto.Struct.getDescriptor(), }); internal_static_tensorflow_MetaGraphDef_descriptor = getDescriptor().getMessageTypes().get(0); @@ -285,7 +295,7 @@ public static void registerAllExtensions( internal_static_tensorflow_SignatureDef_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_SignatureDef_descriptor, - new java.lang.String[] { "Inputs", "Outputs", "MethodName", }); + new java.lang.String[] { "Inputs", "Outputs", "MethodName", "Defaults", }); internal_static_tensorflow_SignatureDef_InputsEntry_descriptor = internal_static_tensorflow_SignatureDef_descriptor.getNestedTypes().get(0); internal_static_tensorflow_SignatureDef_InputsEntry_fieldAccessorTable = new @@ -298,6 +308,12 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_SignatureDef_OutputsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_tensorflow_SignatureDef_DefaultsEntry_descriptor = + internal_static_tensorflow_SignatureDef_descriptor.getNestedTypes().get(2); + internal_static_tensorflow_SignatureDef_DefaultsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_SignatureDef_DefaultsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); internal_static_tensorflow_AssetFileDef_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_tensorflow_AssetFileDef_fieldAccessorTable = new @@ -305,13 +321,14 @@ public static void registerAllExtensions( internal_static_tensorflow_AssetFileDef_descriptor, new java.lang.String[] { "TensorInfo", "Filename", }); com.google.protobuf.AnyProto.getDescriptor(); - org.tensorflow.proto.framework.GraphProtos.getDescriptor(); - org.tensorflow.proto.framework.OpDefProtos.getDescriptor(); - org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(); - org.tensorflow.proto.framework.TypesProtos.getDescriptor(); - org.tensorflow.proto.framework.SavedObjectGraphProtos.getDescriptor(); - org.tensorflow.proto.util.SaverProtos.getDescriptor(); - org.tensorflow.proto.framework.StructProtos.getDescriptor(); + org.tensorflow.proto.GraphProtos.getDescriptor(); + org.tensorflow.proto.OpDefProtos.getDescriptor(); + org.tensorflow.proto.TensorProtos.getDescriptor(); + org.tensorflow.proto.TensorShapeProtos.getDescriptor(); + org.tensorflow.proto.TypesProtos.getDescriptor(); + org.tensorflow.proto.SavedObjectGraphOuterClass.getDescriptor(); + org.tensorflow.proto.SaverProtos.getDescriptor(); + org.tensorflow.proto.Struct.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/MetricEntry.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MetricEntry.java similarity index 79% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/MetricEntry.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MetricEntry.java index 0ebe3ce31ab..cf05e14e896 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/MetricEntry.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MetricEntry.java @@ -1,12 +1,12 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/util/test_log.proto +// source: tensorflow/tsl/protobuf/test_log.proto -package org.tensorflow.proto.util.testlog; +package org.tensorflow.proto; /** * Protobuf type {@code tensorflow.MetricEntry} */ -public final class MetricEntry extends +public final class MetricEntry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.MetricEntry) MetricEntryOrBuilder { @@ -31,91 +31,17 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private MetricEntry( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 17: { - - value_ = input.readDouble(); - break; - } - case 26: { - com.google.protobuf.DoubleValue.Builder subBuilder = null; - if (minValue_ != null) { - subBuilder = minValue_.toBuilder(); - } - minValue_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(minValue_); - minValue_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - com.google.protobuf.DoubleValue.Builder subBuilder = null; - if (maxValue_ != null) { - subBuilder = maxValue_.toBuilder(); - } - maxValue_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxValue_); - maxValue_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_MetricEntry_descriptor; + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_MetricEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_MetricEntry_fieldAccessorTable + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_MetricEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.util.testlog.MetricEntry.class, org.tensorflow.proto.util.testlog.MetricEntry.Builder.class); + org.tensorflow.proto.MetricEntry.class, org.tensorflow.proto.MetricEntry.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -126,7 +52,9 @@ private MetricEntry( *
* * string name = 1; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -145,7 +73,9 @@ public java.lang.String getName() { *
* * string name = 1; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -168,7 +98,9 @@ public java.lang.String getName() { * * * double value = 2; + * @return The value. */ + @java.lang.Override public double getValue() { return value_; } @@ -181,7 +113,9 @@ public double getValue() { * * * .google.protobuf.DoubleValue min_value = 3; + * @return Whether the minValue field is set. */ + @java.lang.Override public boolean hasMinValue() { return minValue_ != null; } @@ -191,7 +125,9 @@ public boolean hasMinValue() { * * * .google.protobuf.DoubleValue min_value = 3; + * @return The minValue. */ + @java.lang.Override public com.google.protobuf.DoubleValue getMinValue() { return minValue_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : minValue_; } @@ -202,6 +138,7 @@ public com.google.protobuf.DoubleValue getMinValue() { * * .google.protobuf.DoubleValue min_value = 3; */ + @java.lang.Override public com.google.protobuf.DoubleValueOrBuilder getMinValueOrBuilder() { return getMinValue(); } @@ -214,7 +151,9 @@ public com.google.protobuf.DoubleValueOrBuilder getMinValueOrBuilder() { * * * .google.protobuf.DoubleValue max_value = 4; + * @return Whether the maxValue field is set. */ + @java.lang.Override public boolean hasMaxValue() { return maxValue_ != null; } @@ -224,7 +163,9 @@ public boolean hasMaxValue() { * * * .google.protobuf.DoubleValue max_value = 4; + * @return The maxValue. */ + @java.lang.Override public com.google.protobuf.DoubleValue getMaxValue() { return maxValue_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : maxValue_; } @@ -235,6 +176,7 @@ public com.google.protobuf.DoubleValue getMaxValue() { * * .google.protobuf.DoubleValue max_value = 4; */ + @java.lang.Override public com.google.protobuf.DoubleValueOrBuilder getMaxValueOrBuilder() { return getMaxValue(); } @@ -253,10 +195,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (value_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(value_) != 0) { output.writeDouble(2, value_); } if (minValue_ != null) { @@ -265,7 +207,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (maxValue_ != null) { output.writeMessage(4, getMaxValue()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -274,10 +216,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (value_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(value_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, value_); } @@ -289,7 +231,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getMaxValue()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -299,10 +241,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.util.testlog.MetricEntry)) { + if (!(obj instanceof org.tensorflow.proto.MetricEntry)) { return super.equals(obj); } - org.tensorflow.proto.util.testlog.MetricEntry other = (org.tensorflow.proto.util.testlog.MetricEntry) obj; + org.tensorflow.proto.MetricEntry other = (org.tensorflow.proto.MetricEntry) obj; if (!getName() .equals(other.getName())) return false; @@ -319,7 +261,7 @@ public boolean equals(final java.lang.Object obj) { if (!getMaxValue() .equals(other.getMaxValue())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -343,74 +285,74 @@ public int hashCode() { hash = (37 * hash) + MAX_VALUE_FIELD_NUMBER; hash = (53 * hash) + getMaxValue().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.util.testlog.MetricEntry parseFrom( + public static org.tensorflow.proto.MetricEntry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.MetricEntry parseFrom( + public static org.tensorflow.proto.MetricEntry parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.MetricEntry parseFrom( + public static org.tensorflow.proto.MetricEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.MetricEntry parseFrom( + public static org.tensorflow.proto.MetricEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.MetricEntry parseFrom(byte[] data) + public static org.tensorflow.proto.MetricEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.MetricEntry parseFrom( + public static org.tensorflow.proto.MetricEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.MetricEntry parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.MetricEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.MetricEntry parseFrom( + public static org.tensorflow.proto.MetricEntry 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 org.tensorflow.proto.util.testlog.MetricEntry parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.MetricEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.MetricEntry parseDelimitedFrom( + public static org.tensorflow.proto.MetricEntry 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 org.tensorflow.proto.util.testlog.MetricEntry parseFrom( + public static org.tensorflow.proto.MetricEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.MetricEntry parseFrom( + public static org.tensorflow.proto.MetricEntry parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -423,7 +365,7 @@ public static org.tensorflow.proto.util.testlog.MetricEntry parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.util.testlog.MetricEntry prototype) { + public static Builder newBuilder(org.tensorflow.proto.MetricEntry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -444,34 +386,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.MetricEntry) - org.tensorflow.proto.util.testlog.MetricEntryOrBuilder { + org.tensorflow.proto.MetricEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_MetricEntry_descriptor; + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_MetricEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_MetricEntry_fieldAccessorTable + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_MetricEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.util.testlog.MetricEntry.class, org.tensorflow.proto.util.testlog.MetricEntry.Builder.class); + org.tensorflow.proto.MetricEntry.class, org.tensorflow.proto.MetricEntry.Builder.class); } - // Construct using org.tensorflow.proto.util.testlog.MetricEntry.newBuilder() + // Construct using org.tensorflow.proto.MetricEntry.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -498,17 +435,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_MetricEntry_descriptor; + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_MetricEntry_descriptor; } @java.lang.Override - public org.tensorflow.proto.util.testlog.MetricEntry getDefaultInstanceForType() { - return org.tensorflow.proto.util.testlog.MetricEntry.getDefaultInstance(); + public org.tensorflow.proto.MetricEntry getDefaultInstanceForType() { + return org.tensorflow.proto.MetricEntry.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.util.testlog.MetricEntry build() { - org.tensorflow.proto.util.testlog.MetricEntry result = buildPartial(); + public org.tensorflow.proto.MetricEntry build() { + org.tensorflow.proto.MetricEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -516,8 +453,8 @@ public org.tensorflow.proto.util.testlog.MetricEntry build() { } @java.lang.Override - public org.tensorflow.proto.util.testlog.MetricEntry buildPartial() { - org.tensorflow.proto.util.testlog.MetricEntry result = new org.tensorflow.proto.util.testlog.MetricEntry(this); + public org.tensorflow.proto.MetricEntry buildPartial() { + org.tensorflow.proto.MetricEntry result = new org.tensorflow.proto.MetricEntry(this); result.name_ = name_; result.value_ = value_; if (minValueBuilder_ == null) { @@ -568,16 +505,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.util.testlog.MetricEntry) { - return mergeFrom((org.tensorflow.proto.util.testlog.MetricEntry)other); + if (other instanceof org.tensorflow.proto.MetricEntry) { + return mergeFrom((org.tensorflow.proto.MetricEntry)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.util.testlog.MetricEntry other) { - if (other == org.tensorflow.proto.util.testlog.MetricEntry.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.MetricEntry other) { + if (other == org.tensorflow.proto.MetricEntry.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -591,7 +528,7 @@ public Builder mergeFrom(org.tensorflow.proto.util.testlog.MetricEntry other) { if (other.hasMaxValue()) { mergeMaxValue(other.getMaxValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -606,17 +543,54 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.util.testlog.MetricEntry parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 17: { + value_ = input.readDouble(); + + break; + } // case 17 + case 26: { + input.readMessage( + getMinValueFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + input.readMessage( + getMaxValueFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + 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) { - parsedMessage = (org.tensorflow.proto.util.testlog.MetricEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -627,6 +601,7 @@ public Builder mergeFrom( * * * string name = 1; + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -646,6 +621,7 @@ public java.lang.String getName() { * * * string name = 1; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -666,6 +642,8 @@ public java.lang.String getName() { * * * string name = 1; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { @@ -683,6 +661,7 @@ public Builder setName( * * * string name = 1; + * @return This builder for chaining. */ public Builder clearName() { @@ -696,6 +675,8 @@ public Builder clearName() { * * * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { @@ -716,7 +697,9 @@ public Builder setNameBytes( * * * double value = 2; + * @return The value. */ + @java.lang.Override public double getValue() { return value_; } @@ -726,6 +709,8 @@ public double getValue() { * * * double value = 2; + * @param value The value to set. + * @return This builder for chaining. */ public Builder setValue(double value) { @@ -739,6 +724,7 @@ public Builder setValue(double value) { * * * double value = 2; + * @return This builder for chaining. */ public Builder clearValue() { @@ -756,6 +742,7 @@ public Builder clearValue() { * * * .google.protobuf.DoubleValue min_value = 3; + * @return Whether the minValue field is set. */ public boolean hasMinValue() { return minValueBuilder_ != null || minValue_ != null; @@ -766,6 +753,7 @@ public boolean hasMinValue() { * * * .google.protobuf.DoubleValue min_value = 3; + * @return The minValue. */ public com.google.protobuf.DoubleValue getMinValue() { if (minValueBuilder_ == null) { @@ -909,6 +897,7 @@ public com.google.protobuf.DoubleValueOrBuilder getMinValueOrBuilder() { * * * .google.protobuf.DoubleValue max_value = 4; + * @return Whether the maxValue field is set. */ public boolean hasMaxValue() { return maxValueBuilder_ != null || maxValue_ != null; @@ -919,6 +908,7 @@ public boolean hasMaxValue() { * * * .google.protobuf.DoubleValue max_value = 4; + * @return The maxValue. */ public com.google.protobuf.DoubleValue getMaxValue() { if (maxValueBuilder_ == null) { @@ -1069,12 +1059,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.MetricEntry) - private static final org.tensorflow.proto.util.testlog.MetricEntry DEFAULT_INSTANCE; + private static final org.tensorflow.proto.MetricEntry DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.util.testlog.MetricEntry(); + DEFAULT_INSTANCE = new org.tensorflow.proto.MetricEntry(); } - public static org.tensorflow.proto.util.testlog.MetricEntry getDefaultInstance() { + public static org.tensorflow.proto.MetricEntry getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1085,7 +1075,18 @@ public MetricEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MetricEntry(input, extensionRegistry); + 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(); } }; @@ -1099,7 +1100,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.util.testlog.MetricEntry getDefaultInstanceForType() { + public org.tensorflow.proto.MetricEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/MetricEntryOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MetricEntryOrBuilder.java similarity index 85% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/MetricEntryOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MetricEntryOrBuilder.java index eeb12bca8a9..15823309533 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/MetricEntryOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/MetricEntryOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/util/test_log.proto +// source: tensorflow/tsl/protobuf/test_log.proto -package org.tensorflow.proto.util.testlog; +package org.tensorflow.proto; public interface MetricEntryOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.MetricEntry) @@ -13,6 +13,7 @@ public interface MetricEntryOrBuilder extends * * * string name = 1; + * @return The name. */ java.lang.String getName(); /** @@ -21,6 +22,7 @@ public interface MetricEntryOrBuilder extends * * * string name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -31,6 +33,7 @@ public interface MetricEntryOrBuilder extends * * * double value = 2; + * @return The value. */ double getValue(); @@ -40,6 +43,7 @@ public interface MetricEntryOrBuilder extends * * * .google.protobuf.DoubleValue min_value = 3; + * @return Whether the minValue field is set. */ boolean hasMinValue(); /** @@ -48,6 +52,7 @@ public interface MetricEntryOrBuilder extends * * * .google.protobuf.DoubleValue min_value = 3; + * @return The minValue. */ com.google.protobuf.DoubleValue getMinValue(); /** @@ -65,6 +70,7 @@ public interface MetricEntryOrBuilder extends * * * .google.protobuf.DoubleValue max_value = 4; + * @return Whether the maxValue field is set. */ boolean hasMaxValue(); /** @@ -73,6 +79,7 @@ public interface MetricEntryOrBuilder extends * * * .google.protobuf.DoubleValue max_value = 4; + * @return The maxValue. */ com.google.protobuf.DoubleValue getMaxValue(); /** diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NameAttrList.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NameAttrList.java new file mode 100644 index 00000000000..f187a27a267 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NameAttrList.java @@ -0,0 +1,831 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/attr_value.proto + +package org.tensorflow.proto; + +/** + *
+ * A list of attr names and their values. The whole list is attached
+ * with a string name.  E.g., MatMul[T=float].
+ * 
+ * + * Protobuf type {@code tensorflow.NameAttrList} + */ +public final class NameAttrList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.NameAttrList) + NameAttrListOrBuilder { +private static final long serialVersionUID = 0L; + // Use NameAttrList.newBuilder() to construct. + private NameAttrList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NameAttrList() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NameAttrList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.AttrValueProtos.internal_static_tensorflow_NameAttrList_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetAttr(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.AttrValueProtos.internal_static_tensorflow_NameAttrList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.NameAttrList.class, org.tensorflow.proto.NameAttrList.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ATTR_FIELD_NUMBER = 2; + private static final class AttrDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, org.tensorflow.proto.AttrValue> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.tensorflow.proto.AttrValueProtos.internal_static_tensorflow_NameAttrList_AttrEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + org.tensorflow.proto.AttrValue.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, org.tensorflow.proto.AttrValue> attr_; + private com.google.protobuf.MapField + internalGetAttr() { + if (attr_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttrDefaultEntryHolder.defaultEntry); + } + return attr_; + } + + public int getAttrCount() { + return internalGetAttr().getMap().size(); + } + /** + * map<string, .tensorflow.AttrValue> attr = 2; + */ + + @java.lang.Override + public boolean containsAttr( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAttr().getMap().containsKey(key); + } + /** + * Use {@link #getAttrMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAttr() { + return getAttrMap(); + } + /** + * map<string, .tensorflow.AttrValue> attr = 2; + */ + @java.lang.Override + + public java.util.Map getAttrMap() { + return internalGetAttr().getMap(); + } + /** + * map<string, .tensorflow.AttrValue> attr = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.AttrValue getAttrOrDefault( + java.lang.String key, + org.tensorflow.proto.AttrValue defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAttr().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .tensorflow.AttrValue> attr = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.AttrValue getAttrOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAttr().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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAttr(), + AttrDefaultEntryHolder.defaultEntry, + 2); + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + for (java.util.Map.Entry entry + : internalGetAttr().getMap().entrySet()) { + com.google.protobuf.MapEntry + attr__ = AttrDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, attr__); + } + 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 org.tensorflow.proto.NameAttrList)) { + return super.equals(obj); + } + org.tensorflow.proto.NameAttrList other = (org.tensorflow.proto.NameAttrList) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!internalGetAttr().equals( + other.internalGetAttr())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (!internalGetAttr().getMap().isEmpty()) { + hash = (37 * hash) + ATTR_FIELD_NUMBER; + hash = (53 * hash) + internalGetAttr().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.NameAttrList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.NameAttrList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.NameAttrList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.NameAttrList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.NameAttrList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.NameAttrList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.NameAttrList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.NameAttrList 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 org.tensorflow.proto.NameAttrList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.NameAttrList 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 org.tensorflow.proto.NameAttrList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.NameAttrList 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(org.tensorflow.proto.NameAttrList 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; + } + /** + *
+   * A list of attr names and their values. The whole list is attached
+   * with a string name.  E.g., MatMul[T=float].
+   * 
+ * + * Protobuf type {@code tensorflow.NameAttrList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.NameAttrList) + org.tensorflow.proto.NameAttrListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.AttrValueProtos.internal_static_tensorflow_NameAttrList_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetAttr(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 2: + return internalGetMutableAttr(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.AttrValueProtos.internal_static_tensorflow_NameAttrList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.NameAttrList.class, org.tensorflow.proto.NameAttrList.Builder.class); + } + + // Construct using org.tensorflow.proto.NameAttrList.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + internalGetMutableAttr().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.AttrValueProtos.internal_static_tensorflow_NameAttrList_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.NameAttrList getDefaultInstanceForType() { + return org.tensorflow.proto.NameAttrList.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.NameAttrList build() { + org.tensorflow.proto.NameAttrList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.NameAttrList buildPartial() { + org.tensorflow.proto.NameAttrList result = new org.tensorflow.proto.NameAttrList(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.attr_ = internalGetAttr(); + result.attr_.makeImmutable(); + 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 org.tensorflow.proto.NameAttrList) { + return mergeFrom((org.tensorflow.proto.NameAttrList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.NameAttrList other) { + if (other == org.tensorflow.proto.NameAttrList.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + internalGetMutableAttr().mergeFrom( + other.internalGetAttr()); + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + com.google.protobuf.MapEntry + attr__ = input.readMessage( + AttrDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableAttr().getMutableMap().put( + attr__.getKey(), attr__.getValue()); + 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 java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, org.tensorflow.proto.AttrValue> attr_; + private com.google.protobuf.MapField + internalGetAttr() { + if (attr_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttrDefaultEntryHolder.defaultEntry); + } + return attr_; + } + private com.google.protobuf.MapField + internalGetMutableAttr() { + onChanged();; + if (attr_ == null) { + attr_ = com.google.protobuf.MapField.newMapField( + AttrDefaultEntryHolder.defaultEntry); + } + if (!attr_.isMutable()) { + attr_ = attr_.copy(); + } + return attr_; + } + + public int getAttrCount() { + return internalGetAttr().getMap().size(); + } + /** + * map<string, .tensorflow.AttrValue> attr = 2; + */ + + @java.lang.Override + public boolean containsAttr( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAttr().getMap().containsKey(key); + } + /** + * Use {@link #getAttrMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAttr() { + return getAttrMap(); + } + /** + * map<string, .tensorflow.AttrValue> attr = 2; + */ + @java.lang.Override + + public java.util.Map getAttrMap() { + return internalGetAttr().getMap(); + } + /** + * map<string, .tensorflow.AttrValue> attr = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.AttrValue getAttrOrDefault( + java.lang.String key, + org.tensorflow.proto.AttrValue defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAttr().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .tensorflow.AttrValue> attr = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.AttrValue getAttrOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAttr().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAttr() { + internalGetMutableAttr().getMutableMap() + .clear(); + return this; + } + /** + * map<string, .tensorflow.AttrValue> attr = 2; + */ + + public Builder removeAttr( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAttr().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAttr() { + return internalGetMutableAttr().getMutableMap(); + } + /** + * map<string, .tensorflow.AttrValue> attr = 2; + */ + public Builder putAttr( + java.lang.String key, + org.tensorflow.proto.AttrValue value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableAttr().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, .tensorflow.AttrValue> attr = 2; + */ + + public Builder putAllAttr( + java.util.Map values) { + internalGetMutableAttr().getMutableMap() + .putAll(values); + 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:tensorflow.NameAttrList) + } + + // @@protoc_insertion_point(class_scope:tensorflow.NameAttrList) + private static final org.tensorflow.proto.NameAttrList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.NameAttrList(); + } + + public static org.tensorflow.proto.NameAttrList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NameAttrList 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 org.tensorflow.proto.NameAttrList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NameAttrListOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NameAttrListOrBuilder.java new file mode 100644 index 00000000000..19f5a7d4b1b --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NameAttrListOrBuilder.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/attr_value.proto + +package org.tensorflow.proto; + +public interface NameAttrListOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.NameAttrList) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * map<string, .tensorflow.AttrValue> attr = 2; + */ + int getAttrCount(); + /** + * map<string, .tensorflow.AttrValue> attr = 2; + */ + boolean containsAttr( + java.lang.String key); + /** + * Use {@link #getAttrMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAttr(); + /** + * map<string, .tensorflow.AttrValue> attr = 2; + */ + java.util.Map + getAttrMap(); + /** + * map<string, .tensorflow.AttrValue> attr = 2; + */ + + /* nullable */ +org.tensorflow.proto.AttrValue getAttrOrDefault( + java.lang.String key, + /* nullable */ +org.tensorflow.proto.AttrValue defaultValue); + /** + * map<string, .tensorflow.AttrValue> attr = 2; + */ + + org.tensorflow.proto.AttrValue getAttrOrThrow( + java.lang.String key); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NamedTensorProto.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NamedTensorProto.java new file mode 100644 index 00000000000..7fd86079e17 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NamedTensorProto.java @@ -0,0 +1,852 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/named_tensor.proto + +package org.tensorflow.proto; + +/** + *
+ * A pair of tensor name and tensor values.
+ * 
+ * + * Protobuf type {@code tensorflow.NamedTensorProto} + */ +public final class NamedTensorProto extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.NamedTensorProto) + NamedTensorProtoOrBuilder { +private static final long serialVersionUID = 0L; + // Use NamedTensorProto.newBuilder() to construct. + private NamedTensorProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedTensorProto() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NamedTensorProto(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.NamedTensorProtos.internal_static_tensorflow_NamedTensorProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.NamedTensorProtos.internal_static_tensorflow_NamedTensorProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.NamedTensorProto.class, org.tensorflow.proto.NamedTensorProto.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Name of the tensor.
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+   * Name of the tensor.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TENSOR_FIELD_NUMBER = 2; + private org.tensorflow.proto.TensorProto tensor_; + /** + *
+   * The client can populate a TensorProto using a tensorflow::Tensor`, or
+   * directly using the protobuf field accessors.
+   * The client specifies whether the returned tensor values should be
+   * filled tensor fields (float_val, int_val, etc.) or encoded in a
+   * compact form in tensor.tensor_content.
+   * 
+ * + * .tensorflow.TensorProto tensor = 2; + * @return Whether the tensor field is set. + */ + @java.lang.Override + public boolean hasTensor() { + return tensor_ != null; + } + /** + *
+   * The client can populate a TensorProto using a tensorflow::Tensor`, or
+   * directly using the protobuf field accessors.
+   * The client specifies whether the returned tensor values should be
+   * filled tensor fields (float_val, int_val, etc.) or encoded in a
+   * compact form in tensor.tensor_content.
+   * 
+ * + * .tensorflow.TensorProto tensor = 2; + * @return The tensor. + */ + @java.lang.Override + public org.tensorflow.proto.TensorProto getTensor() { + return tensor_ == null ? org.tensorflow.proto.TensorProto.getDefaultInstance() : tensor_; + } + /** + *
+   * The client can populate a TensorProto using a tensorflow::Tensor`, or
+   * directly using the protobuf field accessors.
+   * The client specifies whether the returned tensor values should be
+   * filled tensor fields (float_val, int_val, etc.) or encoded in a
+   * compact form in tensor.tensor_content.
+   * 
+ * + * .tensorflow.TensorProto tensor = 2; + */ + @java.lang.Override + public org.tensorflow.proto.TensorProtoOrBuilder getTensorOrBuilder() { + return getTensor(); + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (tensor_ != null) { + output.writeMessage(2, getTensor()); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (tensor_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTensor()); + } + 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 org.tensorflow.proto.NamedTensorProto)) { + return super.equals(obj); + } + org.tensorflow.proto.NamedTensorProto other = (org.tensorflow.proto.NamedTensorProto) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasTensor() != other.hasTensor()) return false; + if (hasTensor()) { + if (!getTensor() + .equals(other.getTensor())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasTensor()) { + hash = (37 * hash) + TENSOR_FIELD_NUMBER; + hash = (53 * hash) + getTensor().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.NamedTensorProto parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.NamedTensorProto parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.NamedTensorProto parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.NamedTensorProto parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.NamedTensorProto parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.NamedTensorProto parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.NamedTensorProto parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.NamedTensorProto 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 org.tensorflow.proto.NamedTensorProto parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.NamedTensorProto 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 org.tensorflow.proto.NamedTensorProto parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.NamedTensorProto 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(org.tensorflow.proto.NamedTensorProto 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; + } + /** + *
+   * A pair of tensor name and tensor values.
+   * 
+ * + * Protobuf type {@code tensorflow.NamedTensorProto} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.NamedTensorProto) + org.tensorflow.proto.NamedTensorProtoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.NamedTensorProtos.internal_static_tensorflow_NamedTensorProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.NamedTensorProtos.internal_static_tensorflow_NamedTensorProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.NamedTensorProto.class, org.tensorflow.proto.NamedTensorProto.Builder.class); + } + + // Construct using org.tensorflow.proto.NamedTensorProto.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (tensorBuilder_ == null) { + tensor_ = null; + } else { + tensor_ = null; + tensorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.NamedTensorProtos.internal_static_tensorflow_NamedTensorProto_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.NamedTensorProto getDefaultInstanceForType() { + return org.tensorflow.proto.NamedTensorProto.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.NamedTensorProto build() { + org.tensorflow.proto.NamedTensorProto result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.NamedTensorProto buildPartial() { + org.tensorflow.proto.NamedTensorProto result = new org.tensorflow.proto.NamedTensorProto(this); + result.name_ = name_; + if (tensorBuilder_ == null) { + result.tensor_ = tensor_; + } else { + result.tensor_ = tensorBuilder_.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 org.tensorflow.proto.NamedTensorProto) { + return mergeFrom((org.tensorflow.proto.NamedTensorProto)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.NamedTensorProto other) { + if (other == org.tensorflow.proto.NamedTensorProto.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasTensor()) { + mergeTensor(other.getTensor()); + } + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getTensorFieldBuilder().getBuilder(), + extensionRegistry); + + 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 java.lang.Object name_ = ""; + /** + *
+     * Name of the tensor.
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Name of the tensor.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Name of the tensor.
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Name of the tensor.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Name of the tensor.
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private org.tensorflow.proto.TensorProto tensor_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> tensorBuilder_; + /** + *
+     * The client can populate a TensorProto using a tensorflow::Tensor`, or
+     * directly using the protobuf field accessors.
+     * The client specifies whether the returned tensor values should be
+     * filled tensor fields (float_val, int_val, etc.) or encoded in a
+     * compact form in tensor.tensor_content.
+     * 
+ * + * .tensorflow.TensorProto tensor = 2; + * @return Whether the tensor field is set. + */ + public boolean hasTensor() { + return tensorBuilder_ != null || tensor_ != null; + } + /** + *
+     * The client can populate a TensorProto using a tensorflow::Tensor`, or
+     * directly using the protobuf field accessors.
+     * The client specifies whether the returned tensor values should be
+     * filled tensor fields (float_val, int_val, etc.) or encoded in a
+     * compact form in tensor.tensor_content.
+     * 
+ * + * .tensorflow.TensorProto tensor = 2; + * @return The tensor. + */ + public org.tensorflow.proto.TensorProto getTensor() { + if (tensorBuilder_ == null) { + return tensor_ == null ? org.tensorflow.proto.TensorProto.getDefaultInstance() : tensor_; + } else { + return tensorBuilder_.getMessage(); + } + } + /** + *
+     * The client can populate a TensorProto using a tensorflow::Tensor`, or
+     * directly using the protobuf field accessors.
+     * The client specifies whether the returned tensor values should be
+     * filled tensor fields (float_val, int_val, etc.) or encoded in a
+     * compact form in tensor.tensor_content.
+     * 
+ * + * .tensorflow.TensorProto tensor = 2; + */ + public Builder setTensor(org.tensorflow.proto.TensorProto value) { + if (tensorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tensor_ = value; + onChanged(); + } else { + tensorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The client can populate a TensorProto using a tensorflow::Tensor`, or
+     * directly using the protobuf field accessors.
+     * The client specifies whether the returned tensor values should be
+     * filled tensor fields (float_val, int_val, etc.) or encoded in a
+     * compact form in tensor.tensor_content.
+     * 
+ * + * .tensorflow.TensorProto tensor = 2; + */ + public Builder setTensor( + org.tensorflow.proto.TensorProto.Builder builderForValue) { + if (tensorBuilder_ == null) { + tensor_ = builderForValue.build(); + onChanged(); + } else { + tensorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The client can populate a TensorProto using a tensorflow::Tensor`, or
+     * directly using the protobuf field accessors.
+     * The client specifies whether the returned tensor values should be
+     * filled tensor fields (float_val, int_val, etc.) or encoded in a
+     * compact form in tensor.tensor_content.
+     * 
+ * + * .tensorflow.TensorProto tensor = 2; + */ + public Builder mergeTensor(org.tensorflow.proto.TensorProto value) { + if (tensorBuilder_ == null) { + if (tensor_ != null) { + tensor_ = + org.tensorflow.proto.TensorProto.newBuilder(tensor_).mergeFrom(value).buildPartial(); + } else { + tensor_ = value; + } + onChanged(); + } else { + tensorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The client can populate a TensorProto using a tensorflow::Tensor`, or
+     * directly using the protobuf field accessors.
+     * The client specifies whether the returned tensor values should be
+     * filled tensor fields (float_val, int_val, etc.) or encoded in a
+     * compact form in tensor.tensor_content.
+     * 
+ * + * .tensorflow.TensorProto tensor = 2; + */ + public Builder clearTensor() { + if (tensorBuilder_ == null) { + tensor_ = null; + onChanged(); + } else { + tensor_ = null; + tensorBuilder_ = null; + } + + return this; + } + /** + *
+     * The client can populate a TensorProto using a tensorflow::Tensor`, or
+     * directly using the protobuf field accessors.
+     * The client specifies whether the returned tensor values should be
+     * filled tensor fields (float_val, int_val, etc.) or encoded in a
+     * compact form in tensor.tensor_content.
+     * 
+ * + * .tensorflow.TensorProto tensor = 2; + */ + public org.tensorflow.proto.TensorProto.Builder getTensorBuilder() { + + onChanged(); + return getTensorFieldBuilder().getBuilder(); + } + /** + *
+     * The client can populate a TensorProto using a tensorflow::Tensor`, or
+     * directly using the protobuf field accessors.
+     * The client specifies whether the returned tensor values should be
+     * filled tensor fields (float_val, int_val, etc.) or encoded in a
+     * compact form in tensor.tensor_content.
+     * 
+ * + * .tensorflow.TensorProto tensor = 2; + */ + public org.tensorflow.proto.TensorProtoOrBuilder getTensorOrBuilder() { + if (tensorBuilder_ != null) { + return tensorBuilder_.getMessageOrBuilder(); + } else { + return tensor_ == null ? + org.tensorflow.proto.TensorProto.getDefaultInstance() : tensor_; + } + } + /** + *
+     * The client can populate a TensorProto using a tensorflow::Tensor`, or
+     * directly using the protobuf field accessors.
+     * The client specifies whether the returned tensor values should be
+     * filled tensor fields (float_val, int_val, etc.) or encoded in a
+     * compact form in tensor.tensor_content.
+     * 
+ * + * .tensorflow.TensorProto tensor = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> + getTensorFieldBuilder() { + if (tensorBuilder_ == null) { + tensorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder>( + getTensor(), + getParentForChildren(), + isClean()); + tensor_ = null; + } + return tensorBuilder_; + } + @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:tensorflow.NamedTensorProto) + } + + // @@protoc_insertion_point(class_scope:tensorflow.NamedTensorProto) + private static final org.tensorflow.proto.NamedTensorProto DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.NamedTensorProto(); + } + + public static org.tensorflow.proto.NamedTensorProto getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedTensorProto 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 org.tensorflow.proto.NamedTensorProto getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NamedTensorProtoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NamedTensorProtoOrBuilder.java similarity index 86% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NamedTensorProtoOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NamedTensorProtoOrBuilder.java index 41b758b2f91..93096b794c0 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NamedTensorProtoOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NamedTensorProtoOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/named_tensor.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface NamedTensorProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.NamedTensorProto) @@ -13,6 +13,7 @@ public interface NamedTensorProtoOrBuilder extends * * * string name = 1; + * @return The name. */ java.lang.String getName(); /** @@ -21,6 +22,7 @@ public interface NamedTensorProtoOrBuilder extends * * * string name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -35,6 +37,7 @@ public interface NamedTensorProtoOrBuilder extends * * * .tensorflow.TensorProto tensor = 2; + * @return Whether the tensor field is set. */ boolean hasTensor(); /** @@ -47,8 +50,9 @@ public interface NamedTensorProtoOrBuilder extends * * * .tensorflow.TensorProto tensor = 2; + * @return The tensor. */ - org.tensorflow.proto.framework.TensorProto getTensor(); + org.tensorflow.proto.TensorProto getTensor(); /** *
    * The client can populate a TensorProto using a tensorflow::Tensor`, or
@@ -60,5 +64,5 @@ public interface NamedTensorProtoOrBuilder extends
    *
    * .tensorflow.TensorProto tensor = 2;
    */
-  org.tensorflow.proto.framework.TensorProtoOrBuilder getTensorOrBuilder();
+  org.tensorflow.proto.TensorProtoOrBuilder getTensorOrBuilder();
 }
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NamedTensorProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NamedTensorProtos.java
similarity index 81%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NamedTensorProtos.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NamedTensorProtos.java
index 1edec7d7488..8b98e05145e 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NamedTensorProtos.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NamedTensorProtos.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/protobuf/named_tensor.proto
 
-package org.tensorflow.proto.framework;
+package org.tensorflow.proto;
 
 public final class NamedTensorProtos {
   private NamedTensorProtos() {}
@@ -32,16 +32,15 @@ public static void registerAllExtensions(
       "proto\022\ntensorflow\032&tensorflow/core/frame" +
       "work/tensor.proto\"I\n\020NamedTensorProto\022\014\n" +
       "\004name\030\001 \001(\t\022\'\n\006tensor\030\002 \001(\0132\027.tensorflow" +
-      ".TensorProtoB\217\001\n\036org.tensorflow.proto.fr" +
-      "ameworkB\021NamedTensorProtosP\001ZUgithub.com" +
-      "/tensorflow/tensorflow/tensorflow/go/cor" +
-      "e/protobuf/for_core_protos_go_proto\370\001\001b\006" +
-      "proto3"
+      ".TensorProtoB\205\001\n\024org.tensorflow.protoB\021N" +
+      "amedTensorProtosP\001ZUgithub.com/tensorflo" +
+      "w/tensorflow/tensorflow/go/core/protobuf" +
+      "/for_core_protos_go_proto\370\001\001b\006proto3"
     };
     descriptor = com.google.protobuf.Descriptors.FileDescriptor
       .internalBuildGeneratedFileFrom(descriptorData,
         new com.google.protobuf.Descriptors.FileDescriptor[] {
-          org.tensorflow.proto.framework.TensorProtos.getDescriptor(),
+          org.tensorflow.proto.TensorProtos.getDescriptor(),
         });
     internal_static_tensorflow_NamedTensorProto_descriptor =
       getDescriptor().getMessageTypes().get(0);
@@ -49,7 +48,7 @@ public static void registerAllExtensions(
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_tensorflow_NamedTensorProto_descriptor,
         new java.lang.String[] { "Name", "Tensor", });
-    org.tensorflow.proto.framework.TensorProtos.getDescriptor();
+    org.tensorflow.proto.TensorProtos.getDescriptor();
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NodeDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NodeDef.java
similarity index 82%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NodeDef.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NodeDef.java
index 83b66c9617f..2097dfee0c9 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NodeDef.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NodeDef.java
@@ -1,12 +1,12 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/framework/node_def.proto
 
-package org.tensorflow.proto.framework;
+package org.tensorflow.proto;
 
 /**
  * Protobuf type {@code tensorflow.NodeDef}
  */
-public  final class NodeDef extends
+public final class NodeDef extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.NodeDef)
     NodeDefOrBuilder {
@@ -34,116 +34,9 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private NodeDef(
-      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: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            op_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              input_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            input_.add(s);
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            device_ = s;
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              attr_ = com.google.protobuf.MapField.newMapField(
-                  AttrDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000002;
-            }
-            com.google.protobuf.MapEntry
-            attr__ = input.readMessage(
-                AttrDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            attr_.getMutableMap().put(
-                attr__.getKey(), attr__.getValue());
-            break;
-          }
-          case 50: {
-            org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo.Builder subBuilder = null;
-            if (experimentalDebugInfo_ != null) {
-              subBuilder = experimentalDebugInfo_.toBuilder();
-            }
-            experimentalDebugInfo_ = input.readMessage(org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(experimentalDebugInfo_);
-              experimentalDebugInfo_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 58: {
-            org.tensorflow.proto.framework.FullTypeDef.Builder subBuilder = null;
-            if (experimentalType_ != null) {
-              subBuilder = experimentalType_.toBuilder();
-            }
-            experimentalType_ = input.readMessage(org.tensorflow.proto.framework.FullTypeDef.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(experimentalType_);
-              experimentalType_ = subBuilder.buildPartial();
-            }
-
-            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)) {
-        input_ = input_.getUnmodifiableView();
-      }
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.framework.NodeProto.internal_static_tensorflow_NodeDef_descriptor;
+    return org.tensorflow.proto.NodeProto.internal_static_tensorflow_NodeDef_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
@@ -161,9 +54,9 @@ protected com.google.protobuf.MapField internalGetMapField(
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.framework.NodeProto.internal_static_tensorflow_NodeDef_fieldAccessorTable
+    return org.tensorflow.proto.NodeProto.internal_static_tensorflow_NodeDef_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.framework.NodeDef.class, org.tensorflow.proto.framework.NodeDef.Builder.class);
+            org.tensorflow.proto.NodeDef.class, org.tensorflow.proto.NodeDef.Builder.class);
   }
 
   public interface ExperimentalDebugInfoOrBuilder extends
@@ -181,6 +74,7 @@ public interface ExperimentalDebugInfoOrBuilder extends
      * 
* * repeated string original_node_names = 1; + * @return A list containing the originalNodeNames. */ java.util.List getOriginalNodeNamesList(); @@ -195,6 +89,7 @@ public interface ExperimentalDebugInfoOrBuilder extends * * * repeated string original_node_names = 1; + * @return The count of originalNodeNames. */ int getOriginalNodeNamesCount(); /** @@ -208,6 +103,8 @@ public interface ExperimentalDebugInfoOrBuilder extends * * * repeated string original_node_names = 1; + * @param index The index of the element to return. + * @return The originalNodeNames at the given index. */ java.lang.String getOriginalNodeNames(int index); /** @@ -221,6 +118,8 @@ public interface ExperimentalDebugInfoOrBuilder extends * * * repeated string original_node_names = 1; + * @param index The index of the value to return. + * @return The bytes of the originalNodeNames at the given index. */ com.google.protobuf.ByteString getOriginalNodeNamesBytes(int index); @@ -237,6 +136,7 @@ public interface ExperimentalDebugInfoOrBuilder extends * * * repeated string original_func_names = 2; + * @return A list containing the originalFuncNames. */ java.util.List getOriginalFuncNamesList(); @@ -252,6 +152,7 @@ public interface ExperimentalDebugInfoOrBuilder extends * * * repeated string original_func_names = 2; + * @return The count of originalFuncNames. */ int getOriginalFuncNamesCount(); /** @@ -266,6 +167,8 @@ public interface ExperimentalDebugInfoOrBuilder extends * * * repeated string original_func_names = 2; + * @param index The index of the element to return. + * @return The originalFuncNames at the given index. */ java.lang.String getOriginalFuncNames(int index); /** @@ -280,6 +183,8 @@ public interface ExperimentalDebugInfoOrBuilder extends * * * repeated string original_func_names = 2; + * @param index The index of the value to return. + * @return The bytes of the originalFuncNames at the given index. */ com.google.protobuf.ByteString getOriginalFuncNamesBytes(int index); @@ -287,7 +192,7 @@ public interface ExperimentalDebugInfoOrBuilder extends /** * Protobuf type {@code tensorflow.NodeDef.ExperimentalDebugInfo} */ - public static final class ExperimentalDebugInfo extends + public static final class ExperimentalDebugInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.NodeDef.ExperimentalDebugInfo) ExperimentalDebugInfoOrBuilder { @@ -313,79 +218,17 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private ExperimentalDebugInfo( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - originalNodeNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - originalNodeNames_.add(s); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - originalFuncNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - originalFuncNames_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - originalNodeNames_ = originalNodeNames_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - originalFuncNames_ = originalFuncNames_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.NodeProto.internal_static_tensorflow_NodeDef_ExperimentalDebugInfo_descriptor; + return org.tensorflow.proto.NodeProto.internal_static_tensorflow_NodeDef_ExperimentalDebugInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.NodeProto.internal_static_tensorflow_NodeDef_ExperimentalDebugInfo_fieldAccessorTable + return org.tensorflow.proto.NodeProto.internal_static_tensorflow_NodeDef_ExperimentalDebugInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo.class, org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo.Builder.class); + org.tensorflow.proto.NodeDef.ExperimentalDebugInfo.class, org.tensorflow.proto.NodeDef.ExperimentalDebugInfo.Builder.class); } public static final int ORIGINAL_NODE_NAMES_FIELD_NUMBER = 1; @@ -401,6 +244,7 @@ private ExperimentalDebugInfo( * * * repeated string original_node_names = 1; + * @return A list containing the originalNodeNames. */ public com.google.protobuf.ProtocolStringList getOriginalNodeNamesList() { @@ -417,6 +261,7 @@ private ExperimentalDebugInfo( * * * repeated string original_node_names = 1; + * @return The count of originalNodeNames. */ public int getOriginalNodeNamesCount() { return originalNodeNames_.size(); @@ -432,6 +277,8 @@ public int getOriginalNodeNamesCount() { * * * repeated string original_node_names = 1; + * @param index The index of the element to return. + * @return The originalNodeNames at the given index. */ public java.lang.String getOriginalNodeNames(int index) { return originalNodeNames_.get(index); @@ -447,6 +294,8 @@ public java.lang.String getOriginalNodeNames(int index) { * * * repeated string original_node_names = 1; + * @param index The index of the value to return. + * @return The bytes of the originalNodeNames at the given index. */ public com.google.protobuf.ByteString getOriginalNodeNamesBytes(int index) { @@ -467,6 +316,7 @@ public java.lang.String getOriginalNodeNames(int index) { * * * repeated string original_func_names = 2; + * @return A list containing the originalFuncNames. */ public com.google.protobuf.ProtocolStringList getOriginalFuncNamesList() { @@ -484,6 +334,7 @@ public java.lang.String getOriginalNodeNames(int index) { * * * repeated string original_func_names = 2; + * @return The count of originalFuncNames. */ public int getOriginalFuncNamesCount() { return originalFuncNames_.size(); @@ -500,6 +351,8 @@ public int getOriginalFuncNamesCount() { * * * repeated string original_func_names = 2; + * @param index The index of the element to return. + * @return The originalFuncNames at the given index. */ public java.lang.String getOriginalFuncNames(int index) { return originalFuncNames_.get(index); @@ -516,6 +369,8 @@ public java.lang.String getOriginalFuncNames(int index) { * * * repeated string original_func_names = 2; + * @param index The index of the value to return. + * @return The bytes of the originalFuncNames at the given index. */ public com.google.protobuf.ByteString getOriginalFuncNamesBytes(int index) { @@ -542,7 +397,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < originalFuncNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, originalFuncNames_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -567,7 +422,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getOriginalFuncNamesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -577,16 +432,16 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo)) { + if (!(obj instanceof org.tensorflow.proto.NodeDef.ExperimentalDebugInfo)) { return super.equals(obj); } - org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo other = (org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo) obj; + org.tensorflow.proto.NodeDef.ExperimentalDebugInfo other = (org.tensorflow.proto.NodeDef.ExperimentalDebugInfo) obj; if (!getOriginalNodeNamesList() .equals(other.getOriginalNodeNamesList())) return false; if (!getOriginalFuncNamesList() .equals(other.getOriginalFuncNamesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -605,74 +460,74 @@ public int hashCode() { hash = (37 * hash) + ORIGINAL_FUNC_NAMES_FIELD_NUMBER; hash = (53 * hash) + getOriginalFuncNamesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo parseFrom( + public static org.tensorflow.proto.NodeDef.ExperimentalDebugInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo parseFrom( + public static org.tensorflow.proto.NodeDef.ExperimentalDebugInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo parseFrom( + public static org.tensorflow.proto.NodeDef.ExperimentalDebugInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo parseFrom( + public static org.tensorflow.proto.NodeDef.ExperimentalDebugInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo parseFrom(byte[] data) + public static org.tensorflow.proto.NodeDef.ExperimentalDebugInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo parseFrom( + public static org.tensorflow.proto.NodeDef.ExperimentalDebugInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.NodeDef.ExperimentalDebugInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo parseFrom( + public static org.tensorflow.proto.NodeDef.ExperimentalDebugInfo 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 org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.NodeDef.ExperimentalDebugInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo parseDelimitedFrom( + public static org.tensorflow.proto.NodeDef.ExperimentalDebugInfo 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 org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo parseFrom( + public static org.tensorflow.proto.NodeDef.ExperimentalDebugInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo parseFrom( + public static org.tensorflow.proto.NodeDef.ExperimentalDebugInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -685,7 +540,7 @@ public static org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo parse public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo prototype) { + public static Builder newBuilder(org.tensorflow.proto.NodeDef.ExperimentalDebugInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -706,34 +561,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.NodeDef.ExperimentalDebugInfo) - org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfoOrBuilder { + org.tensorflow.proto.NodeDef.ExperimentalDebugInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.NodeProto.internal_static_tensorflow_NodeDef_ExperimentalDebugInfo_descriptor; + return org.tensorflow.proto.NodeProto.internal_static_tensorflow_NodeDef_ExperimentalDebugInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.NodeProto.internal_static_tensorflow_NodeDef_ExperimentalDebugInfo_fieldAccessorTable + return org.tensorflow.proto.NodeProto.internal_static_tensorflow_NodeDef_ExperimentalDebugInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo.class, org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo.Builder.class); + org.tensorflow.proto.NodeDef.ExperimentalDebugInfo.class, org.tensorflow.proto.NodeDef.ExperimentalDebugInfo.Builder.class); } - // Construct using org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo.newBuilder() + // Construct using org.tensorflow.proto.NodeDef.ExperimentalDebugInfo.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -748,17 +598,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.NodeProto.internal_static_tensorflow_NodeDef_ExperimentalDebugInfo_descriptor; + return org.tensorflow.proto.NodeProto.internal_static_tensorflow_NodeDef_ExperimentalDebugInfo_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo getDefaultInstanceForType() { - return org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo.getDefaultInstance(); + public org.tensorflow.proto.NodeDef.ExperimentalDebugInfo getDefaultInstanceForType() { + return org.tensorflow.proto.NodeDef.ExperimentalDebugInfo.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo build() { - org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo result = buildPartial(); + public org.tensorflow.proto.NodeDef.ExperimentalDebugInfo build() { + org.tensorflow.proto.NodeDef.ExperimentalDebugInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -766,8 +616,8 @@ public org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo build() { } @java.lang.Override - public org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo buildPartial() { - org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo result = new org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo(this); + public org.tensorflow.proto.NodeDef.ExperimentalDebugInfo buildPartial() { + org.tensorflow.proto.NodeDef.ExperimentalDebugInfo result = new org.tensorflow.proto.NodeDef.ExperimentalDebugInfo(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { originalNodeNames_ = originalNodeNames_.getUnmodifiableView(); @@ -817,16 +667,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo) { - return mergeFrom((org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo)other); + if (other instanceof org.tensorflow.proto.NodeDef.ExperimentalDebugInfo) { + return mergeFrom((org.tensorflow.proto.NodeDef.ExperimentalDebugInfo)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo other) { - if (other == org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.NodeDef.ExperimentalDebugInfo other) { + if (other == org.tensorflow.proto.NodeDef.ExperimentalDebugInfo.getDefaultInstance()) return this; if (!other.originalNodeNames_.isEmpty()) { if (originalNodeNames_.isEmpty()) { originalNodeNames_ = other.originalNodeNames_; @@ -847,7 +697,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.NodeDef.ExperimentalDebu } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -862,17 +712,42 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureOriginalNodeNamesIsMutable(); + originalNodeNames_.add(s); + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureOriginalFuncNamesIsMutable(); + originalFuncNames_.add(s); + 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) { - parsedMessage = (org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -895,6 +770,7 @@ private void ensureOriginalNodeNamesIsMutable() { * * * repeated string original_node_names = 1; + * @return A list containing the originalNodeNames. */ public com.google.protobuf.ProtocolStringList getOriginalNodeNamesList() { @@ -911,6 +787,7 @@ private void ensureOriginalNodeNamesIsMutable() { * * * repeated string original_node_names = 1; + * @return The count of originalNodeNames. */ public int getOriginalNodeNamesCount() { return originalNodeNames_.size(); @@ -926,6 +803,8 @@ public int getOriginalNodeNamesCount() { * * * repeated string original_node_names = 1; + * @param index The index of the element to return. + * @return The originalNodeNames at the given index. */ public java.lang.String getOriginalNodeNames(int index) { return originalNodeNames_.get(index); @@ -941,6 +820,8 @@ public java.lang.String getOriginalNodeNames(int index) { * * * repeated string original_node_names = 1; + * @param index The index of the value to return. + * @return The bytes of the originalNodeNames at the given index. */ public com.google.protobuf.ByteString getOriginalNodeNamesBytes(int index) { @@ -957,6 +838,9 @@ public java.lang.String getOriginalNodeNames(int index) { * * * repeated string original_node_names = 1; + * @param index The index to set the value at. + * @param value The originalNodeNames to set. + * @return This builder for chaining. */ public Builder setOriginalNodeNames( int index, java.lang.String value) { @@ -979,6 +863,8 @@ public Builder setOriginalNodeNames( * * * repeated string original_node_names = 1; + * @param value The originalNodeNames to add. + * @return This builder for chaining. */ public Builder addOriginalNodeNames( java.lang.String value) { @@ -1001,6 +887,8 @@ public Builder addOriginalNodeNames( * * * repeated string original_node_names = 1; + * @param values The originalNodeNames to add. + * @return This builder for chaining. */ public Builder addAllOriginalNodeNames( java.lang.Iterable values) { @@ -1021,6 +909,7 @@ public Builder addAllOriginalNodeNames( * * * repeated string original_node_names = 1; + * @return This builder for chaining. */ public Builder clearOriginalNodeNames() { originalNodeNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1039,6 +928,8 @@ public Builder clearOriginalNodeNames() { * * * repeated string original_node_names = 1; + * @param value The bytes of the originalNodeNames to add. + * @return This builder for chaining. */ public Builder addOriginalNodeNamesBytes( com.google.protobuf.ByteString value) { @@ -1071,6 +962,7 @@ private void ensureOriginalFuncNamesIsMutable() { * * * repeated string original_func_names = 2; + * @return A list containing the originalFuncNames. */ public com.google.protobuf.ProtocolStringList getOriginalFuncNamesList() { @@ -1088,6 +980,7 @@ private void ensureOriginalFuncNamesIsMutable() { * * * repeated string original_func_names = 2; + * @return The count of originalFuncNames. */ public int getOriginalFuncNamesCount() { return originalFuncNames_.size(); @@ -1104,6 +997,8 @@ public int getOriginalFuncNamesCount() { * * * repeated string original_func_names = 2; + * @param index The index of the element to return. + * @return The originalFuncNames at the given index. */ public java.lang.String getOriginalFuncNames(int index) { return originalFuncNames_.get(index); @@ -1120,6 +1015,8 @@ public java.lang.String getOriginalFuncNames(int index) { * * * repeated string original_func_names = 2; + * @param index The index of the value to return. + * @return The bytes of the originalFuncNames at the given index. */ public com.google.protobuf.ByteString getOriginalFuncNamesBytes(int index) { @@ -1137,6 +1034,9 @@ public java.lang.String getOriginalFuncNames(int index) { * * * repeated string original_func_names = 2; + * @param index The index to set the value at. + * @param value The originalFuncNames to set. + * @return This builder for chaining. */ public Builder setOriginalFuncNames( int index, java.lang.String value) { @@ -1160,6 +1060,8 @@ public Builder setOriginalFuncNames( * * * repeated string original_func_names = 2; + * @param value The originalFuncNames to add. + * @return This builder for chaining. */ public Builder addOriginalFuncNames( java.lang.String value) { @@ -1183,6 +1085,8 @@ public Builder addOriginalFuncNames( * * * repeated string original_func_names = 2; + * @param values The originalFuncNames to add. + * @return This builder for chaining. */ public Builder addAllOriginalFuncNames( java.lang.Iterable values) { @@ -1204,6 +1108,7 @@ public Builder addAllOriginalFuncNames( * * * repeated string original_func_names = 2; + * @return This builder for chaining. */ public Builder clearOriginalFuncNames() { originalFuncNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1223,6 +1128,8 @@ public Builder clearOriginalFuncNames() { * * * repeated string original_func_names = 2; + * @param value The bytes of the originalFuncNames to add. + * @return This builder for chaining. */ public Builder addOriginalFuncNamesBytes( com.google.protobuf.ByteString value) { @@ -1252,12 +1159,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.NodeDef.ExperimentalDebugInfo) - private static final org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo DEFAULT_INSTANCE; + private static final org.tensorflow.proto.NodeDef.ExperimentalDebugInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo(); + DEFAULT_INSTANCE = new org.tensorflow.proto.NodeDef.ExperimentalDebugInfo(); } - public static org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo getDefaultInstance() { + public static org.tensorflow.proto.NodeDef.ExperimentalDebugInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1268,7 +1175,18 @@ public ExperimentalDebugInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ExperimentalDebugInfo(input, extensionRegistry); + 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(); } }; @@ -1282,7 +1200,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo getDefaultInstanceForType() { + public org.tensorflow.proto.NodeDef.ExperimentalDebugInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -1298,7 +1216,9 @@ public org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo getDefaultIn * * * string name = 1; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -1319,7 +1239,9 @@ public java.lang.String getName() { * * * string name = 1; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1343,7 +1265,9 @@ public java.lang.String getName() { * * * string op = 2; + * @return The op. */ + @java.lang.Override public java.lang.String getOp() { java.lang.Object ref = op_; if (ref instanceof java.lang.String) { @@ -1363,7 +1287,9 @@ public java.lang.String getOp() { * * * string op = 2; + * @return The bytes for op. */ + @java.lang.Override public com.google.protobuf.ByteString getOpBytes() { java.lang.Object ref = op_; @@ -1390,6 +1316,7 @@ public java.lang.String getOp() { * * * repeated string input = 3; + * @return A list containing the input. */ public com.google.protobuf.ProtocolStringList getInputList() { @@ -1405,6 +1332,7 @@ public java.lang.String getOp() { * * * repeated string input = 3; + * @return The count of input. */ public int getInputCount() { return input_.size(); @@ -1419,6 +1347,8 @@ public int getInputCount() { * * * repeated string input = 3; + * @param index The index of the element to return. + * @return The input at the given index. */ public java.lang.String getInput(int index) { return input_.get(index); @@ -1433,6 +1363,8 @@ public java.lang.String getInput(int index) { * * * repeated string input = 3; + * @param index The index of the value to return. + * @return The bytes of the input at the given index. */ public com.google.protobuf.ByteString getInputBytes(int index) { @@ -1462,7 +1394,9 @@ public java.lang.String getInput(int index) { * * * string device = 4; + * @return The device. */ + @java.lang.Override public java.lang.String getDevice() { java.lang.Object ref = device_; if (ref instanceof java.lang.String) { @@ -1496,7 +1430,9 @@ public java.lang.String getDevice() { * * * string device = 4; + * @return The bytes for device. */ + @java.lang.Override public com.google.protobuf.ByteString getDeviceBytes() { java.lang.Object ref = device_; @@ -1514,18 +1450,18 @@ public java.lang.String getDevice() { public static final int ATTR_FIELD_NUMBER = 5; private static final class AttrDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, org.tensorflow.proto.framework.AttrValue> defaultEntry = + java.lang.String, org.tensorflow.proto.AttrValue> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - org.tensorflow.proto.framework.NodeProto.internal_static_tensorflow_NodeDef_AttrEntry_descriptor, + .newDefaultInstance( + org.tensorflow.proto.NodeProto.internal_static_tensorflow_NodeDef_AttrEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.tensorflow.proto.framework.AttrValue.getDefaultInstance()); + org.tensorflow.proto.AttrValue.getDefaultInstance()); } private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.AttrValue> attr_; - private com.google.protobuf.MapField + java.lang.String, org.tensorflow.proto.AttrValue> attr_; + private com.google.protobuf.MapField internalGetAttr() { if (attr_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -1556,16 +1492,18 @@ public int getAttrCount() { * map<string, .tensorflow.AttrValue> attr = 5; */ + @java.lang.Override public boolean containsAttr( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } return internalGetAttr().getMap().containsKey(key); } /** * Use {@link #getAttrMap()} instead. */ + @java.lang.Override @java.lang.Deprecated - public java.util.Map getAttr() { + public java.util.Map getAttr() { return getAttrMap(); } /** @@ -1586,8 +1524,9 @@ public java.util.Map * * map<string, .tensorflow.AttrValue> attr = 5; */ + @java.lang.Override - public java.util.Map getAttrMap() { + public java.util.Map getAttrMap() { return internalGetAttr().getMap(); } /** @@ -1608,12 +1547,13 @@ public java.util.Map * * map<string, .tensorflow.AttrValue> attr = 5; */ + @java.lang.Override - public org.tensorflow.proto.framework.AttrValue getAttrOrDefault( + public org.tensorflow.proto.AttrValue getAttrOrDefault( java.lang.String key, - org.tensorflow.proto.framework.AttrValue defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = + org.tensorflow.proto.AttrValue defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetAttr().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @@ -1635,11 +1575,12 @@ public org.tensorflow.proto.framework.AttrValue getAttrOrDefault( * * map<string, .tensorflow.AttrValue> attr = 5; */ + @java.lang.Override - public org.tensorflow.proto.framework.AttrValue getAttrOrThrow( + public org.tensorflow.proto.AttrValue getAttrOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetAttr().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); @@ -1648,14 +1589,16 @@ public org.tensorflow.proto.framework.AttrValue getAttrOrThrow( } public static final int EXPERIMENTAL_DEBUG_INFO_FIELD_NUMBER = 6; - private org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo experimentalDebugInfo_; + private org.tensorflow.proto.NodeDef.ExperimentalDebugInfo experimentalDebugInfo_; /** *
    * This stores debug information associated with the node.
    * 
* * .tensorflow.NodeDef.ExperimentalDebugInfo experimental_debug_info = 6; + * @return Whether the experimentalDebugInfo field is set. */ + @java.lang.Override public boolean hasExperimentalDebugInfo() { return experimentalDebugInfo_ != null; } @@ -1665,9 +1608,11 @@ public boolean hasExperimentalDebugInfo() { * * * .tensorflow.NodeDef.ExperimentalDebugInfo experimental_debug_info = 6; + * @return The experimentalDebugInfo. */ - public org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo getExperimentalDebugInfo() { - return experimentalDebugInfo_ == null ? org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo.getDefaultInstance() : experimentalDebugInfo_; + @java.lang.Override + public org.tensorflow.proto.NodeDef.ExperimentalDebugInfo getExperimentalDebugInfo() { + return experimentalDebugInfo_ == null ? org.tensorflow.proto.NodeDef.ExperimentalDebugInfo.getDefaultInstance() : experimentalDebugInfo_; } /** *
@@ -1676,12 +1621,13 @@ public org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo getExperimen
    *
    * .tensorflow.NodeDef.ExperimentalDebugInfo experimental_debug_info = 6;
    */
-  public org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfoOrBuilder getExperimentalDebugInfoOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.NodeDef.ExperimentalDebugInfoOrBuilder getExperimentalDebugInfoOrBuilder() {
     return getExperimentalDebugInfo();
   }
 
   public static final int EXPERIMENTAL_TYPE_FIELD_NUMBER = 7;
-  private org.tensorflow.proto.framework.FullTypeDef experimentalType_;
+  private org.tensorflow.proto.FullTypeDef experimentalType_;
   /**
    * 
    * The complete type of this node. Experimental and subject to change.
@@ -1691,7 +1637,9 @@ public org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfoOrBuilder get
    * 
* * .tensorflow.FullTypeDef experimental_type = 7; + * @return Whether the experimentalType field is set. */ + @java.lang.Override public boolean hasExperimentalType() { return experimentalType_ != null; } @@ -1704,9 +1652,11 @@ public boolean hasExperimentalType() { *
* * .tensorflow.FullTypeDef experimental_type = 7; + * @return The experimentalType. */ - public org.tensorflow.proto.framework.FullTypeDef getExperimentalType() { - return experimentalType_ == null ? org.tensorflow.proto.framework.FullTypeDef.getDefaultInstance() : experimentalType_; + @java.lang.Override + public org.tensorflow.proto.FullTypeDef getExperimentalType() { + return experimentalType_ == null ? org.tensorflow.proto.FullTypeDef.getDefaultInstance() : experimentalType_; } /** *
@@ -1718,7 +1668,8 @@ public org.tensorflow.proto.framework.FullTypeDef getExperimentalType() {
    *
    * .tensorflow.FullTypeDef experimental_type = 7;
    */
-  public org.tensorflow.proto.framework.FullTypeDefOrBuilder getExperimentalTypeOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.FullTypeDefOrBuilder getExperimentalTypeOrBuilder() {
     return getExperimentalType();
   }
 
@@ -1736,16 +1687,16 @@ public final boolean isInitialized() {
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output)
                       throws java.io.IOException {
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
-    if (!getOpBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(op_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, op_);
     }
     for (int i = 0; i < input_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, input_.getRaw(i));
     }
-    if (!getDeviceBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(device_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, device_);
     }
     com.google.protobuf.GeneratedMessageV3
@@ -1760,7 +1711,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (experimentalType_ != null) {
       output.writeMessage(7, getExperimentalType());
     }
-    unknownFields.writeTo(output);
+    getUnknownFields().writeTo(output);
   }
 
   @java.lang.Override
@@ -1769,10 +1720,10 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
-    if (!getOpBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(op_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, op_);
     }
     {
@@ -1783,12 +1734,12 @@ public int getSerializedSize() {
       size += dataSize;
       size += 1 * getInputList().size();
     }
-    if (!getDeviceBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(device_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, device_);
     }
-    for (java.util.Map.Entry entry
+    for (java.util.Map.Entry entry
          : internalGetAttr().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
+      com.google.protobuf.MapEntry
       attr__ = AttrDefaultEntryHolder.defaultEntry.newBuilderForType()
           .setKey(entry.getKey())
           .setValue(entry.getValue())
@@ -1804,7 +1755,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
         .computeMessageSize(7, getExperimentalType());
     }
-    size += unknownFields.getSerializedSize();
+    size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
     return size;
   }
@@ -1814,10 +1765,10 @@ public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
      return true;
     }
-    if (!(obj instanceof org.tensorflow.proto.framework.NodeDef)) {
+    if (!(obj instanceof org.tensorflow.proto.NodeDef)) {
       return super.equals(obj);
     }
-    org.tensorflow.proto.framework.NodeDef other = (org.tensorflow.proto.framework.NodeDef) obj;
+    org.tensorflow.proto.NodeDef other = (org.tensorflow.proto.NodeDef) obj;
 
     if (!getName()
         .equals(other.getName())) return false;
@@ -1839,7 +1790,7 @@ public boolean equals(final java.lang.Object obj) {
       if (!getExperimentalType()
           .equals(other.getExperimentalType())) return false;
     }
-    if (!unknownFields.equals(other.unknownFields)) return false;
+    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
 
@@ -1872,74 +1823,74 @@ public int hashCode() {
       hash = (37 * hash) + EXPERIMENTAL_TYPE_FIELD_NUMBER;
       hash = (53 * hash) + getExperimentalType().hashCode();
     }
-    hash = (29 * hash) + unknownFields.hashCode();
+    hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
     return hash;
   }
 
-  public static org.tensorflow.proto.framework.NodeDef parseFrom(
+  public static org.tensorflow.proto.NodeDef parseFrom(
       java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.NodeDef parseFrom(
+  public static org.tensorflow.proto.NodeDef parseFrom(
       java.nio.ByteBuffer data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.NodeDef parseFrom(
+  public static org.tensorflow.proto.NodeDef parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.NodeDef parseFrom(
+  public static org.tensorflow.proto.NodeDef parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.NodeDef parseFrom(byte[] data)
+  public static org.tensorflow.proto.NodeDef parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.NodeDef parseFrom(
+  public static org.tensorflow.proto.NodeDef parseFrom(
       byte[] data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.NodeDef parseFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.NodeDef parseFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.NodeDef parseFrom(
+  public static org.tensorflow.proto.NodeDef 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 org.tensorflow.proto.framework.NodeDef parseDelimitedFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.NodeDef parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.NodeDef parseDelimitedFrom(
+  public static org.tensorflow.proto.NodeDef 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 org.tensorflow.proto.framework.NodeDef parseFrom(
+  public static org.tensorflow.proto.NodeDef parseFrom(
       com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.NodeDef parseFrom(
+  public static org.tensorflow.proto.NodeDef parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
@@ -1952,7 +1903,7 @@ public static org.tensorflow.proto.framework.NodeDef parseFrom(
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(org.tensorflow.proto.framework.NodeDef prototype) {
+  public static Builder newBuilder(org.tensorflow.proto.NodeDef prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
   @java.lang.Override
@@ -1973,10 +1924,10 @@ protected Builder newBuilderForType(
   public static final class Builder extends
       com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:tensorflow.NodeDef)
-      org.tensorflow.proto.framework.NodeDefOrBuilder {
+      org.tensorflow.proto.NodeDefOrBuilder {
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return org.tensorflow.proto.framework.NodeProto.internal_static_tensorflow_NodeDef_descriptor;
+      return org.tensorflow.proto.NodeProto.internal_static_tensorflow_NodeDef_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
@@ -2004,25 +1955,20 @@ protected com.google.protobuf.MapField internalGetMutableMapField(
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return org.tensorflow.proto.framework.NodeProto.internal_static_tensorflow_NodeDef_fieldAccessorTable
+      return org.tensorflow.proto.NodeProto.internal_static_tensorflow_NodeDef_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              org.tensorflow.proto.framework.NodeDef.class, org.tensorflow.proto.framework.NodeDef.Builder.class);
+              org.tensorflow.proto.NodeDef.class, org.tensorflow.proto.NodeDef.Builder.class);
     }
 
-    // Construct using org.tensorflow.proto.framework.NodeDef.newBuilder()
+    // Construct using org.tensorflow.proto.NodeDef.newBuilder()
     private Builder() {
-      maybeForceBuilderInitialization();
+
     }
 
     private Builder(
         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-      maybeForceBuilderInitialization();
-    }
-    private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+
     }
     @java.lang.Override
     public Builder clear() {
@@ -2054,17 +2000,17 @@ public Builder clear() {
     @java.lang.Override
     public com.google.protobuf.Descriptors.Descriptor
         getDescriptorForType() {
-      return org.tensorflow.proto.framework.NodeProto.internal_static_tensorflow_NodeDef_descriptor;
+      return org.tensorflow.proto.NodeProto.internal_static_tensorflow_NodeDef_descriptor;
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.NodeDef getDefaultInstanceForType() {
-      return org.tensorflow.proto.framework.NodeDef.getDefaultInstance();
+    public org.tensorflow.proto.NodeDef getDefaultInstanceForType() {
+      return org.tensorflow.proto.NodeDef.getDefaultInstance();
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.NodeDef build() {
-      org.tensorflow.proto.framework.NodeDef result = buildPartial();
+    public org.tensorflow.proto.NodeDef build() {
+      org.tensorflow.proto.NodeDef result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -2072,8 +2018,8 @@ public org.tensorflow.proto.framework.NodeDef build() {
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.NodeDef buildPartial() {
-      org.tensorflow.proto.framework.NodeDef result = new org.tensorflow.proto.framework.NodeDef(this);
+    public org.tensorflow.proto.NodeDef buildPartial() {
+      org.tensorflow.proto.NodeDef result = new org.tensorflow.proto.NodeDef(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.op_ = op_;
@@ -2133,16 +2079,16 @@ public Builder addRepeatedField(
     }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof org.tensorflow.proto.framework.NodeDef) {
-        return mergeFrom((org.tensorflow.proto.framework.NodeDef)other);
+      if (other instanceof org.tensorflow.proto.NodeDef) {
+        return mergeFrom((org.tensorflow.proto.NodeDef)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(org.tensorflow.proto.framework.NodeDef other) {
-      if (other == org.tensorflow.proto.framework.NodeDef.getDefaultInstance()) return this;
+    public Builder mergeFrom(org.tensorflow.proto.NodeDef other) {
+      if (other == org.tensorflow.proto.NodeDef.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -2173,7 +2119,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.NodeDef other) {
       if (other.hasExperimentalType()) {
         mergeExperimentalType(other.getExperimentalType());
       }
-      this.mergeUnknownFields(other.unknownFields);
+      this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
     }
@@ -2188,17 +2134,73 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      org.tensorflow.proto.framework.NodeDef parsedMessage = null;
+      if (extensionRegistry == null) {
+        throw new java.lang.NullPointerException();
+      }
       try {
-        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+        boolean done = false;
+        while (!done) {
+          int tag = input.readTag();
+          switch (tag) {
+            case 0:
+              done = true;
+              break;
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 18: {
+              op_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 18
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureInputIsMutable();
+              input_.add(s);
+              break;
+            } // case 26
+            case 34: {
+              device_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 34
+            case 42: {
+              com.google.protobuf.MapEntry
+              attr__ = input.readMessage(
+                  AttrDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableAttr().getMutableMap().put(
+                  attr__.getKey(), attr__.getValue());
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getExperimentalDebugInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getExperimentalTypeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 58
+            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) {
-        parsedMessage = (org.tensorflow.proto.framework.NodeDef) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
-        if (parsedMessage != null) {
-          mergeFrom(parsedMessage);
-        }
-      }
+        onChanged();
+      } // finally
       return this;
     }
     private int bitField0_;
@@ -2212,6 +2214,7 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -2233,6 +2236,7 @@ public java.lang.String getName() { * * * string name = 1; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -2255,6 +2259,8 @@ public java.lang.String getName() { * * * string name = 1; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { @@ -2274,6 +2280,7 @@ public Builder setName( * * * string name = 1; + * @return This builder for chaining. */ public Builder clearName() { @@ -2289,6 +2296,8 @@ public Builder clearName() { * * * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { @@ -2310,6 +2319,7 @@ public Builder setNameBytes( * * * string op = 2; + * @return The op. */ public java.lang.String getOp() { java.lang.Object ref = op_; @@ -2330,6 +2340,7 @@ public java.lang.String getOp() { * * * string op = 2; + * @return The bytes for op. */ public com.google.protobuf.ByteString getOpBytes() { @@ -2351,6 +2362,8 @@ public java.lang.String getOp() { * * * string op = 2; + * @param value The op to set. + * @return This builder for chaining. */ public Builder setOp( java.lang.String value) { @@ -2369,6 +2382,7 @@ public Builder setOp( * * * string op = 2; + * @return This builder for chaining. */ public Builder clearOp() { @@ -2383,6 +2397,8 @@ public Builder clearOp() { * * * string op = 2; + * @param value The bytes for op to set. + * @return This builder for chaining. */ public Builder setOpBytes( com.google.protobuf.ByteString value) { @@ -2413,6 +2429,7 @@ private void ensureInputIsMutable() { * * * repeated string input = 3; + * @return A list containing the input. */ public com.google.protobuf.ProtocolStringList getInputList() { @@ -2428,6 +2445,7 @@ private void ensureInputIsMutable() { * * * repeated string input = 3; + * @return The count of input. */ public int getInputCount() { return input_.size(); @@ -2442,6 +2460,8 @@ public int getInputCount() { * * * repeated string input = 3; + * @param index The index of the element to return. + * @return The input at the given index. */ public java.lang.String getInput(int index) { return input_.get(index); @@ -2456,6 +2476,8 @@ public java.lang.String getInput(int index) { * * * repeated string input = 3; + * @param index The index of the value to return. + * @return The bytes of the input at the given index. */ public com.google.protobuf.ByteString getInputBytes(int index) { @@ -2471,6 +2493,9 @@ public java.lang.String getInput(int index) { * * * repeated string input = 3; + * @param index The index to set the value at. + * @param value The input to set. + * @return This builder for chaining. */ public Builder setInput( int index, java.lang.String value) { @@ -2492,6 +2517,8 @@ public Builder setInput( * * * repeated string input = 3; + * @param value The input to add. + * @return This builder for chaining. */ public Builder addInput( java.lang.String value) { @@ -2513,6 +2540,8 @@ public Builder addInput( * * * repeated string input = 3; + * @param values The input to add. + * @return This builder for chaining. */ public Builder addAllInput( java.lang.Iterable values) { @@ -2532,6 +2561,7 @@ public Builder addAllInput( * * * repeated string input = 3; + * @return This builder for chaining. */ public Builder clearInput() { input_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -2549,6 +2579,8 @@ public Builder clearInput() { * * * repeated string input = 3; + * @param value The bytes of the input to add. + * @return This builder for chaining. */ public Builder addInputBytes( com.google.protobuf.ByteString value) { @@ -2584,6 +2616,7 @@ public Builder addInputBytes( * * * string device = 4; + * @return The device. */ public java.lang.String getDevice() { java.lang.Object ref = device_; @@ -2618,6 +2651,7 @@ public java.lang.String getDevice() { * * * string device = 4; + * @return The bytes for device. */ public com.google.protobuf.ByteString getDeviceBytes() { @@ -2653,6 +2687,8 @@ public java.lang.String getDevice() { * * * string device = 4; + * @param value The device to set. + * @return This builder for chaining. */ public Builder setDevice( java.lang.String value) { @@ -2685,6 +2721,7 @@ public Builder setDevice( * * * string device = 4; + * @return This builder for chaining. */ public Builder clearDevice() { @@ -2713,6 +2750,8 @@ public Builder clearDevice() { * * * string device = 4; + * @param value The bytes for device to set. + * @return This builder for chaining. */ public Builder setDeviceBytes( com.google.protobuf.ByteString value) { @@ -2727,8 +2766,8 @@ public Builder setDeviceBytes( } private com.google.protobuf.MapField< - java.lang.String, org.tensorflow.proto.framework.AttrValue> attr_; - private com.google.protobuf.MapField + java.lang.String, org.tensorflow.proto.AttrValue> attr_; + private com.google.protobuf.MapField internalGetAttr() { if (attr_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -2736,7 +2775,7 @@ public Builder setDeviceBytes( } return attr_; } - private com.google.protobuf.MapField + private com.google.protobuf.MapField internalGetMutableAttr() { onChanged();; if (attr_ == null) { @@ -2771,16 +2810,18 @@ public int getAttrCount() { * map<string, .tensorflow.AttrValue> attr = 5; */ + @java.lang.Override public boolean containsAttr( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } return internalGetAttr().getMap().containsKey(key); } /** * Use {@link #getAttrMap()} instead. */ + @java.lang.Override @java.lang.Deprecated - public java.util.Map getAttr() { + public java.util.Map getAttr() { return getAttrMap(); } /** @@ -2801,8 +2842,9 @@ public java.util.Map * * map<string, .tensorflow.AttrValue> attr = 5; */ + @java.lang.Override - public java.util.Map getAttrMap() { + public java.util.Map getAttrMap() { return internalGetAttr().getMap(); } /** @@ -2823,12 +2865,13 @@ public java.util.Map * * map<string, .tensorflow.AttrValue> attr = 5; */ + @java.lang.Override - public org.tensorflow.proto.framework.AttrValue getAttrOrDefault( + public org.tensorflow.proto.AttrValue getAttrOrDefault( java.lang.String key, - org.tensorflow.proto.framework.AttrValue defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = + org.tensorflow.proto.AttrValue defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetAttr().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } @@ -2850,11 +2893,12 @@ public org.tensorflow.proto.framework.AttrValue getAttrOrDefault( * * map<string, .tensorflow.AttrValue> attr = 5; */ + @java.lang.Override - public org.tensorflow.proto.framework.AttrValue getAttrOrThrow( + public org.tensorflow.proto.AttrValue getAttrOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetAttr().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); @@ -2888,7 +2932,7 @@ public Builder clearAttr() { public Builder removeAttr( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAttr().getMutableMap() .remove(key); return this; @@ -2897,7 +2941,7 @@ public Builder removeAttr( * Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map + public java.util.Map getMutableAttr() { return internalGetMutableAttr().getMutableMap(); } @@ -2921,9 +2965,12 @@ public Builder removeAttr( */ public Builder putAttr( java.lang.String key, - org.tensorflow.proto.framework.AttrValue value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } + org.tensorflow.proto.AttrValue value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + internalGetMutableAttr().getMutableMap() .put(key, value); return this; @@ -2948,21 +2995,22 @@ public Builder putAttr( */ public Builder putAllAttr( - java.util.Map values) { + java.util.Map values) { internalGetMutableAttr().getMutableMap() .putAll(values); return this; } - private org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo experimentalDebugInfo_; + private org.tensorflow.proto.NodeDef.ExperimentalDebugInfo experimentalDebugInfo_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo, org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo.Builder, org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfoOrBuilder> experimentalDebugInfoBuilder_; + org.tensorflow.proto.NodeDef.ExperimentalDebugInfo, org.tensorflow.proto.NodeDef.ExperimentalDebugInfo.Builder, org.tensorflow.proto.NodeDef.ExperimentalDebugInfoOrBuilder> experimentalDebugInfoBuilder_; /** *
      * This stores debug information associated with the node.
      * 
* * .tensorflow.NodeDef.ExperimentalDebugInfo experimental_debug_info = 6; + * @return Whether the experimentalDebugInfo field is set. */ public boolean hasExperimentalDebugInfo() { return experimentalDebugInfoBuilder_ != null || experimentalDebugInfo_ != null; @@ -2973,10 +3021,11 @@ public boolean hasExperimentalDebugInfo() { * * * .tensorflow.NodeDef.ExperimentalDebugInfo experimental_debug_info = 6; + * @return The experimentalDebugInfo. */ - public org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo getExperimentalDebugInfo() { + public org.tensorflow.proto.NodeDef.ExperimentalDebugInfo getExperimentalDebugInfo() { if (experimentalDebugInfoBuilder_ == null) { - return experimentalDebugInfo_ == null ? org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo.getDefaultInstance() : experimentalDebugInfo_; + return experimentalDebugInfo_ == null ? org.tensorflow.proto.NodeDef.ExperimentalDebugInfo.getDefaultInstance() : experimentalDebugInfo_; } else { return experimentalDebugInfoBuilder_.getMessage(); } @@ -2988,7 +3037,7 @@ public org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo getExperimen * * .tensorflow.NodeDef.ExperimentalDebugInfo experimental_debug_info = 6; */ - public Builder setExperimentalDebugInfo(org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo value) { + public Builder setExperimentalDebugInfo(org.tensorflow.proto.NodeDef.ExperimentalDebugInfo value) { if (experimentalDebugInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3009,7 +3058,7 @@ public Builder setExperimentalDebugInfo(org.tensorflow.proto.framework.NodeDef.E * .tensorflow.NodeDef.ExperimentalDebugInfo experimental_debug_info = 6; */ public Builder setExperimentalDebugInfo( - org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo.Builder builderForValue) { + org.tensorflow.proto.NodeDef.ExperimentalDebugInfo.Builder builderForValue) { if (experimentalDebugInfoBuilder_ == null) { experimentalDebugInfo_ = builderForValue.build(); onChanged(); @@ -3026,11 +3075,11 @@ public Builder setExperimentalDebugInfo( * * .tensorflow.NodeDef.ExperimentalDebugInfo experimental_debug_info = 6; */ - public Builder mergeExperimentalDebugInfo(org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo value) { + public Builder mergeExperimentalDebugInfo(org.tensorflow.proto.NodeDef.ExperimentalDebugInfo value) { if (experimentalDebugInfoBuilder_ == null) { if (experimentalDebugInfo_ != null) { experimentalDebugInfo_ = - org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo.newBuilder(experimentalDebugInfo_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.NodeDef.ExperimentalDebugInfo.newBuilder(experimentalDebugInfo_).mergeFrom(value).buildPartial(); } else { experimentalDebugInfo_ = value; } @@ -3066,7 +3115,7 @@ public Builder clearExperimentalDebugInfo() { * * .tensorflow.NodeDef.ExperimentalDebugInfo experimental_debug_info = 6; */ - public org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo.Builder getExperimentalDebugInfoBuilder() { + public org.tensorflow.proto.NodeDef.ExperimentalDebugInfo.Builder getExperimentalDebugInfoBuilder() { onChanged(); return getExperimentalDebugInfoFieldBuilder().getBuilder(); @@ -3078,12 +3127,12 @@ public org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo.Builder getE * * .tensorflow.NodeDef.ExperimentalDebugInfo experimental_debug_info = 6; */ - public org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfoOrBuilder getExperimentalDebugInfoOrBuilder() { + public org.tensorflow.proto.NodeDef.ExperimentalDebugInfoOrBuilder getExperimentalDebugInfoOrBuilder() { if (experimentalDebugInfoBuilder_ != null) { return experimentalDebugInfoBuilder_.getMessageOrBuilder(); } else { return experimentalDebugInfo_ == null ? - org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo.getDefaultInstance() : experimentalDebugInfo_; + org.tensorflow.proto.NodeDef.ExperimentalDebugInfo.getDefaultInstance() : experimentalDebugInfo_; } } /** @@ -3094,11 +3143,11 @@ public org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfoOrBuilder get * .tensorflow.NodeDef.ExperimentalDebugInfo experimental_debug_info = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo, org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo.Builder, org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfoOrBuilder> + org.tensorflow.proto.NodeDef.ExperimentalDebugInfo, org.tensorflow.proto.NodeDef.ExperimentalDebugInfo.Builder, org.tensorflow.proto.NodeDef.ExperimentalDebugInfoOrBuilder> getExperimentalDebugInfoFieldBuilder() { if (experimentalDebugInfoBuilder_ == null) { experimentalDebugInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo, org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo.Builder, org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfoOrBuilder>( + org.tensorflow.proto.NodeDef.ExperimentalDebugInfo, org.tensorflow.proto.NodeDef.ExperimentalDebugInfo.Builder, org.tensorflow.proto.NodeDef.ExperimentalDebugInfoOrBuilder>( getExperimentalDebugInfo(), getParentForChildren(), isClean()); @@ -3107,9 +3156,9 @@ public org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfoOrBuilder get return experimentalDebugInfoBuilder_; } - private org.tensorflow.proto.framework.FullTypeDef experimentalType_; + private org.tensorflow.proto.FullTypeDef experimentalType_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.FullTypeDef, org.tensorflow.proto.framework.FullTypeDef.Builder, org.tensorflow.proto.framework.FullTypeDefOrBuilder> experimentalTypeBuilder_; + org.tensorflow.proto.FullTypeDef, org.tensorflow.proto.FullTypeDef.Builder, org.tensorflow.proto.FullTypeDefOrBuilder> experimentalTypeBuilder_; /** *
      * The complete type of this node. Experimental and subject to change.
@@ -3119,6 +3168,7 @@ public org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfoOrBuilder get
      * 
* * .tensorflow.FullTypeDef experimental_type = 7; + * @return Whether the experimentalType field is set. */ public boolean hasExperimentalType() { return experimentalTypeBuilder_ != null || experimentalType_ != null; @@ -3132,10 +3182,11 @@ public boolean hasExperimentalType() { * * * .tensorflow.FullTypeDef experimental_type = 7; + * @return The experimentalType. */ - public org.tensorflow.proto.framework.FullTypeDef getExperimentalType() { + public org.tensorflow.proto.FullTypeDef getExperimentalType() { if (experimentalTypeBuilder_ == null) { - return experimentalType_ == null ? org.tensorflow.proto.framework.FullTypeDef.getDefaultInstance() : experimentalType_; + return experimentalType_ == null ? org.tensorflow.proto.FullTypeDef.getDefaultInstance() : experimentalType_; } else { return experimentalTypeBuilder_.getMessage(); } @@ -3150,7 +3201,7 @@ public org.tensorflow.proto.framework.FullTypeDef getExperimentalType() { * * .tensorflow.FullTypeDef experimental_type = 7; */ - public Builder setExperimentalType(org.tensorflow.proto.framework.FullTypeDef value) { + public Builder setExperimentalType(org.tensorflow.proto.FullTypeDef value) { if (experimentalTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3174,7 +3225,7 @@ public Builder setExperimentalType(org.tensorflow.proto.framework.FullTypeDef va * .tensorflow.FullTypeDef experimental_type = 7; */ public Builder setExperimentalType( - org.tensorflow.proto.framework.FullTypeDef.Builder builderForValue) { + org.tensorflow.proto.FullTypeDef.Builder builderForValue) { if (experimentalTypeBuilder_ == null) { experimentalType_ = builderForValue.build(); onChanged(); @@ -3194,11 +3245,11 @@ public Builder setExperimentalType( * * .tensorflow.FullTypeDef experimental_type = 7; */ - public Builder mergeExperimentalType(org.tensorflow.proto.framework.FullTypeDef value) { + public Builder mergeExperimentalType(org.tensorflow.proto.FullTypeDef value) { if (experimentalTypeBuilder_ == null) { if (experimentalType_ != null) { experimentalType_ = - org.tensorflow.proto.framework.FullTypeDef.newBuilder(experimentalType_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.FullTypeDef.newBuilder(experimentalType_).mergeFrom(value).buildPartial(); } else { experimentalType_ = value; } @@ -3240,7 +3291,7 @@ public Builder clearExperimentalType() { * * .tensorflow.FullTypeDef experimental_type = 7; */ - public org.tensorflow.proto.framework.FullTypeDef.Builder getExperimentalTypeBuilder() { + public org.tensorflow.proto.FullTypeDef.Builder getExperimentalTypeBuilder() { onChanged(); return getExperimentalTypeFieldBuilder().getBuilder(); @@ -3255,12 +3306,12 @@ public org.tensorflow.proto.framework.FullTypeDef.Builder getExperimentalTypeBui * * .tensorflow.FullTypeDef experimental_type = 7; */ - public org.tensorflow.proto.framework.FullTypeDefOrBuilder getExperimentalTypeOrBuilder() { + public org.tensorflow.proto.FullTypeDefOrBuilder getExperimentalTypeOrBuilder() { if (experimentalTypeBuilder_ != null) { return experimentalTypeBuilder_.getMessageOrBuilder(); } else { return experimentalType_ == null ? - org.tensorflow.proto.framework.FullTypeDef.getDefaultInstance() : experimentalType_; + org.tensorflow.proto.FullTypeDef.getDefaultInstance() : experimentalType_; } } /** @@ -3274,11 +3325,11 @@ public org.tensorflow.proto.framework.FullTypeDefOrBuilder getExperimentalTypeOr * .tensorflow.FullTypeDef experimental_type = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.FullTypeDef, org.tensorflow.proto.framework.FullTypeDef.Builder, org.tensorflow.proto.framework.FullTypeDefOrBuilder> + org.tensorflow.proto.FullTypeDef, org.tensorflow.proto.FullTypeDef.Builder, org.tensorflow.proto.FullTypeDefOrBuilder> getExperimentalTypeFieldBuilder() { if (experimentalTypeBuilder_ == null) { experimentalTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.FullTypeDef, org.tensorflow.proto.framework.FullTypeDef.Builder, org.tensorflow.proto.framework.FullTypeDefOrBuilder>( + org.tensorflow.proto.FullTypeDef, org.tensorflow.proto.FullTypeDef.Builder, org.tensorflow.proto.FullTypeDefOrBuilder>( getExperimentalType(), getParentForChildren(), isClean()); @@ -3303,12 +3354,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.NodeDef) - private static final org.tensorflow.proto.framework.NodeDef DEFAULT_INSTANCE; + private static final org.tensorflow.proto.NodeDef DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.NodeDef(); + DEFAULT_INSTANCE = new org.tensorflow.proto.NodeDef(); } - public static org.tensorflow.proto.framework.NodeDef getDefaultInstance() { + public static org.tensorflow.proto.NodeDef getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -3319,7 +3370,18 @@ public NodeDef parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeDef(input, extensionRegistry); + 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(); } }; @@ -3333,7 +3395,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.NodeDef getDefaultInstanceForType() { + public org.tensorflow.proto.NodeDef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NodeDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NodeDefOrBuilder.java similarity index 89% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NodeDefOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NodeDefOrBuilder.java index 8e1869cd8f7..d45520f0666 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NodeDefOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NodeDefOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/node_def.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface NodeDefOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.NodeDef) @@ -15,6 +15,7 @@ public interface NodeDefOrBuilder extends * * * string name = 1; + * @return The name. */ java.lang.String getName(); /** @@ -25,6 +26,7 @@ public interface NodeDefOrBuilder extends * * * string name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -36,6 +38,7 @@ public interface NodeDefOrBuilder extends * * * string op = 2; + * @return The op. */ java.lang.String getOp(); /** @@ -45,6 +48,7 @@ public interface NodeDefOrBuilder extends * * * string op = 2; + * @return The bytes for op. */ com.google.protobuf.ByteString getOpBytes(); @@ -59,6 +63,7 @@ public interface NodeDefOrBuilder extends * * * repeated string input = 3; + * @return A list containing the input. */ java.util.List getInputList(); @@ -72,6 +77,7 @@ public interface NodeDefOrBuilder extends * * * repeated string input = 3; + * @return The count of input. */ int getInputCount(); /** @@ -84,6 +90,8 @@ public interface NodeDefOrBuilder extends * * * repeated string input = 3; + * @param index The index of the element to return. + * @return The input at the given index. */ java.lang.String getInput(int index); /** @@ -96,6 +104,8 @@ public interface NodeDefOrBuilder extends * * * repeated string input = 3; + * @param index The index of the value to return. + * @return The bytes of the input at the given index. */ com.google.protobuf.ByteString getInputBytes(int index); @@ -121,6 +131,7 @@ public interface NodeDefOrBuilder extends * * * string device = 4; + * @return The device. */ java.lang.String getDevice(); /** @@ -144,6 +155,7 @@ public interface NodeDefOrBuilder extends * * * string device = 4; + * @return The bytes for device. */ com.google.protobuf.ByteString getDeviceBytes(); @@ -191,7 +203,7 @@ boolean containsAttr( * Use {@link #getAttrMap()} instead. */ @java.lang.Deprecated - java.util.Map + java.util.Map getAttr(); /** *
@@ -211,7 +223,7 @@ boolean containsAttr(
    *
    * map<string, .tensorflow.AttrValue> attr = 5;
    */
-  java.util.Map
+  java.util.Map
   getAttrMap();
   /**
    * 
@@ -232,9 +244,11 @@ boolean containsAttr(
    * map<string, .tensorflow.AttrValue> attr = 5;
    */
 
-  org.tensorflow.proto.framework.AttrValue getAttrOrDefault(
+  /* nullable */
+org.tensorflow.proto.AttrValue getAttrOrDefault(
       java.lang.String key,
-      org.tensorflow.proto.framework.AttrValue defaultValue);
+      /* nullable */
+org.tensorflow.proto.AttrValue defaultValue);
   /**
    * 
    * Operation-specific graph-construction-time configuration.
@@ -254,7 +268,7 @@ org.tensorflow.proto.framework.AttrValue getAttrOrDefault(
    * map<string, .tensorflow.AttrValue> attr = 5;
    */
 
-  org.tensorflow.proto.framework.AttrValue getAttrOrThrow(
+  org.tensorflow.proto.AttrValue getAttrOrThrow(
       java.lang.String key);
 
   /**
@@ -263,6 +277,7 @@ org.tensorflow.proto.framework.AttrValue getAttrOrThrow(
    * 
* * .tensorflow.NodeDef.ExperimentalDebugInfo experimental_debug_info = 6; + * @return Whether the experimentalDebugInfo field is set. */ boolean hasExperimentalDebugInfo(); /** @@ -271,8 +286,9 @@ org.tensorflow.proto.framework.AttrValue getAttrOrThrow( *
* * .tensorflow.NodeDef.ExperimentalDebugInfo experimental_debug_info = 6; + * @return The experimentalDebugInfo. */ - org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfo getExperimentalDebugInfo(); + org.tensorflow.proto.NodeDef.ExperimentalDebugInfo getExperimentalDebugInfo(); /** *
    * This stores debug information associated with the node.
@@ -280,7 +296,7 @@ org.tensorflow.proto.framework.AttrValue getAttrOrThrow(
    *
    * .tensorflow.NodeDef.ExperimentalDebugInfo experimental_debug_info = 6;
    */
-  org.tensorflow.proto.framework.NodeDef.ExperimentalDebugInfoOrBuilder getExperimentalDebugInfoOrBuilder();
+  org.tensorflow.proto.NodeDef.ExperimentalDebugInfoOrBuilder getExperimentalDebugInfoOrBuilder();
 
   /**
    * 
@@ -291,6 +307,7 @@ org.tensorflow.proto.framework.AttrValue getAttrOrThrow(
    * 
* * .tensorflow.FullTypeDef experimental_type = 7; + * @return Whether the experimentalType field is set. */ boolean hasExperimentalType(); /** @@ -302,8 +319,9 @@ org.tensorflow.proto.framework.AttrValue getAttrOrThrow( *
* * .tensorflow.FullTypeDef experimental_type = 7; + * @return The experimentalType. */ - org.tensorflow.proto.framework.FullTypeDef getExperimentalType(); + org.tensorflow.proto.FullTypeDef getExperimentalType(); /** *
    * The complete type of this node. Experimental and subject to change.
@@ -314,5 +332,5 @@ org.tensorflow.proto.framework.AttrValue getAttrOrThrow(
    *
    * .tensorflow.FullTypeDef experimental_type = 7;
    */
-  org.tensorflow.proto.framework.FullTypeDefOrBuilder getExperimentalTypeOrBuilder();
+  org.tensorflow.proto.FullTypeDefOrBuilder getExperimentalTypeOrBuilder();
 }
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NodeExecStats.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NodeExecStats.java
similarity index 75%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NodeExecStats.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NodeExecStats.java
index 93e1e3df32c..1e8c3783451 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NodeExecStats.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NodeExecStats.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/framework/step_stats.proto
 
-package org.tensorflow.proto.framework;
+package org.tensorflow.proto;
 
 /**
  * 
@@ -10,7 +10,7 @@
  *
  * Protobuf type {@code tensorflow.NodeExecStats}
  */
-public  final class NodeExecStats extends
+public final class NodeExecStats extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.NodeExecStats)
     NodeExecStatsOrBuilder {
@@ -39,171 +39,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private NodeExecStats(
-      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: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            nodeName_ = s;
-            break;
-          }
-          case 16: {
-
-            allStartMicros_ = input.readInt64();
-            break;
-          }
-          case 24: {
-
-            opStartRelMicros_ = input.readInt64();
-            break;
-          }
-          case 32: {
-
-            opEndRelMicros_ = input.readInt64();
-            break;
-          }
-          case 40: {
-
-            allEndRelMicros_ = input.readInt64();
-            break;
-          }
-          case 50: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              memory_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            memory_.add(
-                input.readMessage(org.tensorflow.proto.framework.AllocatorMemoryUsed.parser(), extensionRegistry));
-            break;
-          }
-          case 58: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              output_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
-            }
-            output_.add(
-                input.readMessage(org.tensorflow.proto.framework.NodeOutput.parser(), extensionRegistry));
-            break;
-          }
-          case 66: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            timelineLabel_ = s;
-            break;
-          }
-          case 72: {
-
-            scheduledMicros_ = input.readInt64();
-            break;
-          }
-          case 80: {
-
-            threadId_ = input.readUInt32();
-            break;
-          }
-          case 90: {
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              referencedTensor_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000004;
-            }
-            referencedTensor_.add(
-                input.readMessage(org.tensorflow.proto.framework.AllocationDescription.parser(), extensionRegistry));
-            break;
-          }
-          case 98: {
-            org.tensorflow.proto.framework.MemoryStats.Builder subBuilder = null;
-            if (memoryStats_ != null) {
-              subBuilder = memoryStats_.toBuilder();
-            }
-            memoryStats_ = input.readMessage(org.tensorflow.proto.framework.MemoryStats.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(memoryStats_);
-              memoryStats_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 104: {
-
-            allStartNanos_ = input.readInt64();
-            break;
-          }
-          case 112: {
-
-            opStartRelNanos_ = input.readInt64();
-            break;
-          }
-          case 120: {
-
-            opEndRelNanos_ = input.readInt64();
-            break;
-          }
-          case 128: {
-
-            allEndRelNanos_ = input.readInt64();
-            break;
-          }
-          case 136: {
-
-            scheduledNanos_ = input.readInt64();
-            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)) {
-        memory_ = java.util.Collections.unmodifiableList(memory_);
-      }
-      if (((mutable_bitField0_ & 0x00000002) != 0)) {
-        output_ = java.util.Collections.unmodifiableList(output_);
-      }
-      if (((mutable_bitField0_ & 0x00000004) != 0)) {
-        referencedTensor_ = java.util.Collections.unmodifiableList(referencedTensor_);
-      }
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_NodeExecStats_descriptor;
+    return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_NodeExecStats_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_NodeExecStats_fieldAccessorTable
+    return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_NodeExecStats_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.framework.NodeExecStats.class, org.tensorflow.proto.framework.NodeExecStats.Builder.class);
+            org.tensorflow.proto.NodeExecStats.class, org.tensorflow.proto.NodeExecStats.Builder.class);
   }
 
   public static final int NODE_NAME_FIELD_NUMBER = 1;
@@ -217,7 +63,9 @@ private NodeExecStats(
    * 
* * string node_name = 1; + * @return The nodeName. */ + @java.lang.Override public java.lang.String getNodeName() { java.lang.Object ref = nodeName_; if (ref instanceof java.lang.String) { @@ -239,7 +87,9 @@ public java.lang.String getNodeName() { *
* * string node_name = 1; + * @return The bytes for nodeName. */ + @java.lang.Override public com.google.protobuf.ByteString getNodeNameBytes() { java.lang.Object ref = nodeName_; @@ -258,7 +108,9 @@ public java.lang.String getNodeName() { private long allStartMicros_; /** * int64 all_start_micros = 2; + * @return The allStartMicros. */ + @java.lang.Override public long getAllStartMicros() { return allStartMicros_; } @@ -267,7 +119,9 @@ public long getAllStartMicros() { private long opStartRelMicros_; /** * int64 op_start_rel_micros = 3; + * @return The opStartRelMicros. */ + @java.lang.Override public long getOpStartRelMicros() { return opStartRelMicros_; } @@ -276,7 +130,9 @@ public long getOpStartRelMicros() { private long opEndRelMicros_; /** * int64 op_end_rel_micros = 4; + * @return The opEndRelMicros. */ + @java.lang.Override public long getOpEndRelMicros() { return opEndRelMicros_; } @@ -285,77 +141,89 @@ public long getOpEndRelMicros() { private long allEndRelMicros_; /** * int64 all_end_rel_micros = 5; + * @return The allEndRelMicros. */ + @java.lang.Override public long getAllEndRelMicros() { return allEndRelMicros_; } public static final int MEMORY_FIELD_NUMBER = 6; - private java.util.List memory_; + private java.util.List memory_; /** * repeated .tensorflow.AllocatorMemoryUsed memory = 6; */ - public java.util.List getMemoryList() { + @java.lang.Override + public java.util.List getMemoryList() { return memory_; } /** * repeated .tensorflow.AllocatorMemoryUsed memory = 6; */ - public java.util.List + @java.lang.Override + public java.util.List getMemoryOrBuilderList() { return memory_; } /** * repeated .tensorflow.AllocatorMemoryUsed memory = 6; */ + @java.lang.Override public int getMemoryCount() { return memory_.size(); } /** * repeated .tensorflow.AllocatorMemoryUsed memory = 6; */ - public org.tensorflow.proto.framework.AllocatorMemoryUsed getMemory(int index) { + @java.lang.Override + public org.tensorflow.proto.AllocatorMemoryUsed getMemory(int index) { return memory_.get(index); } /** * repeated .tensorflow.AllocatorMemoryUsed memory = 6; */ - public org.tensorflow.proto.framework.AllocatorMemoryUsedOrBuilder getMemoryOrBuilder( + @java.lang.Override + public org.tensorflow.proto.AllocatorMemoryUsedOrBuilder getMemoryOrBuilder( int index) { return memory_.get(index); } public static final int OUTPUT_FIELD_NUMBER = 7; - private java.util.List output_; + private java.util.List output_; /** * repeated .tensorflow.NodeOutput output = 7; */ - public java.util.List getOutputList() { + @java.lang.Override + public java.util.List getOutputList() { return output_; } /** * repeated .tensorflow.NodeOutput output = 7; */ - public java.util.List + @java.lang.Override + public java.util.List getOutputOrBuilderList() { return output_; } /** * repeated .tensorflow.NodeOutput output = 7; */ + @java.lang.Override public int getOutputCount() { return output_.size(); } /** * repeated .tensorflow.NodeOutput output = 7; */ - public org.tensorflow.proto.framework.NodeOutput getOutput(int index) { + @java.lang.Override + public org.tensorflow.proto.NodeOutput getOutput(int index) { return output_.get(index); } /** * repeated .tensorflow.NodeOutput output = 7; */ - public org.tensorflow.proto.framework.NodeOutputOrBuilder getOutputOrBuilder( + @java.lang.Override + public org.tensorflow.proto.NodeOutputOrBuilder getOutputOrBuilder( int index) { return output_.get(index); } @@ -364,7 +232,9 @@ public org.tensorflow.proto.framework.NodeOutputOrBuilder getOutputOrBuilder( private volatile java.lang.Object timelineLabel_; /** * string timeline_label = 8; + * @return The timelineLabel. */ + @java.lang.Override public java.lang.String getTimelineLabel() { java.lang.Object ref = timelineLabel_; if (ref instanceof java.lang.String) { @@ -379,7 +249,9 @@ public java.lang.String getTimelineLabel() { } /** * string timeline_label = 8; + * @return The bytes for timelineLabel. */ + @java.lang.Override public com.google.protobuf.ByteString getTimelineLabelBytes() { java.lang.Object ref = timelineLabel_; @@ -398,7 +270,9 @@ public java.lang.String getTimelineLabel() { private long scheduledMicros_; /** * int64 scheduled_micros = 9; + * @return The scheduledMicros. */ + @java.lang.Override public long getScheduledMicros() { return scheduledMicros_; } @@ -407,64 +281,76 @@ public long getScheduledMicros() { private int threadId_; /** * uint32 thread_id = 10; + * @return The threadId. */ + @java.lang.Override public int getThreadId() { return threadId_; } public static final int REFERENCED_TENSOR_FIELD_NUMBER = 11; - private java.util.List referencedTensor_; + private java.util.List referencedTensor_; /** * repeated .tensorflow.AllocationDescription referenced_tensor = 11; */ - public java.util.List getReferencedTensorList() { + @java.lang.Override + public java.util.List getReferencedTensorList() { return referencedTensor_; } /** * repeated .tensorflow.AllocationDescription referenced_tensor = 11; */ - public java.util.List + @java.lang.Override + public java.util.List getReferencedTensorOrBuilderList() { return referencedTensor_; } /** * repeated .tensorflow.AllocationDescription referenced_tensor = 11; */ + @java.lang.Override public int getReferencedTensorCount() { return referencedTensor_.size(); } /** * repeated .tensorflow.AllocationDescription referenced_tensor = 11; */ - public org.tensorflow.proto.framework.AllocationDescription getReferencedTensor(int index) { + @java.lang.Override + public org.tensorflow.proto.AllocationDescription getReferencedTensor(int index) { return referencedTensor_.get(index); } /** * repeated .tensorflow.AllocationDescription referenced_tensor = 11; */ - public org.tensorflow.proto.framework.AllocationDescriptionOrBuilder getReferencedTensorOrBuilder( + @java.lang.Override + public org.tensorflow.proto.AllocationDescriptionOrBuilder getReferencedTensorOrBuilder( int index) { return referencedTensor_.get(index); } public static final int MEMORY_STATS_FIELD_NUMBER = 12; - private org.tensorflow.proto.framework.MemoryStats memoryStats_; + private org.tensorflow.proto.MemoryStats memoryStats_; /** * .tensorflow.MemoryStats memory_stats = 12; + * @return Whether the memoryStats field is set. */ + @java.lang.Override public boolean hasMemoryStats() { return memoryStats_ != null; } /** * .tensorflow.MemoryStats memory_stats = 12; + * @return The memoryStats. */ - public org.tensorflow.proto.framework.MemoryStats getMemoryStats() { - return memoryStats_ == null ? org.tensorflow.proto.framework.MemoryStats.getDefaultInstance() : memoryStats_; + @java.lang.Override + public org.tensorflow.proto.MemoryStats getMemoryStats() { + return memoryStats_ == null ? org.tensorflow.proto.MemoryStats.getDefaultInstance() : memoryStats_; } /** * .tensorflow.MemoryStats memory_stats = 12; */ - public org.tensorflow.proto.framework.MemoryStatsOrBuilder getMemoryStatsOrBuilder() { + @java.lang.Override + public org.tensorflow.proto.MemoryStatsOrBuilder getMemoryStatsOrBuilder() { return getMemoryStats(); } @@ -472,7 +358,9 @@ public org.tensorflow.proto.framework.MemoryStatsOrBuilder getMemoryStatsOrBuild private long allStartNanos_; /** * int64 all_start_nanos = 13; + * @return The allStartNanos. */ + @java.lang.Override public long getAllStartNanos() { return allStartNanos_; } @@ -481,7 +369,9 @@ public long getAllStartNanos() { private long opStartRelNanos_; /** * int64 op_start_rel_nanos = 14; + * @return The opStartRelNanos. */ + @java.lang.Override public long getOpStartRelNanos() { return opStartRelNanos_; } @@ -490,7 +380,9 @@ public long getOpStartRelNanos() { private long opEndRelNanos_; /** * int64 op_end_rel_nanos = 15; + * @return The opEndRelNanos. */ + @java.lang.Override public long getOpEndRelNanos() { return opEndRelNanos_; } @@ -499,7 +391,9 @@ public long getOpEndRelNanos() { private long allEndRelNanos_; /** * int64 all_end_rel_nanos = 16; + * @return The allEndRelNanos. */ + @java.lang.Override public long getAllEndRelNanos() { return allEndRelNanos_; } @@ -508,7 +402,9 @@ public long getAllEndRelNanos() { private long scheduledNanos_; /** * int64 scheduled_nanos = 17; + * @return The scheduledNanos. */ + @java.lang.Override public long getScheduledNanos() { return scheduledNanos_; } @@ -527,7 +423,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNodeNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeName_); } if (allStartMicros_ != 0L) { @@ -548,7 +444,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < output_.size(); i++) { output.writeMessage(7, output_.get(i)); } - if (!getTimelineLabelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timelineLabel_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, timelineLabel_); } if (scheduledMicros_ != 0L) { @@ -578,7 +474,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (scheduledNanos_ != 0L) { output.writeInt64(17, scheduledNanos_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -587,7 +483,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNodeNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeName_); } if (allStartMicros_ != 0L) { @@ -614,7 +510,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, output_.get(i)); } - if (!getTimelineLabelBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timelineLabel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, timelineLabel_); } if (scheduledMicros_ != 0L) { @@ -653,7 +549,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(17, scheduledNanos_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -663,10 +559,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.NodeExecStats)) { + if (!(obj instanceof org.tensorflow.proto.NodeExecStats)) { return super.equals(obj); } - org.tensorflow.proto.framework.NodeExecStats other = (org.tensorflow.proto.framework.NodeExecStats) obj; + org.tensorflow.proto.NodeExecStats other = (org.tensorflow.proto.NodeExecStats) obj; if (!getNodeName() .equals(other.getNodeName())) return false; @@ -705,7 +601,7 @@ public boolean equals(final java.lang.Object obj) { != other.getAllEndRelNanos()) return false; if (getScheduledNanos() != other.getScheduledNanos()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -768,74 +664,74 @@ public int hashCode() { hash = (37 * hash) + SCHEDULED_NANOS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getScheduledNanos()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.NodeExecStats parseFrom( + public static org.tensorflow.proto.NodeExecStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.NodeExecStats parseFrom( + public static org.tensorflow.proto.NodeExecStats parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.NodeExecStats parseFrom( + public static org.tensorflow.proto.NodeExecStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.NodeExecStats parseFrom( + public static org.tensorflow.proto.NodeExecStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.NodeExecStats parseFrom(byte[] data) + public static org.tensorflow.proto.NodeExecStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.NodeExecStats parseFrom( + public static org.tensorflow.proto.NodeExecStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.NodeExecStats parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.NodeExecStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.NodeExecStats parseFrom( + public static org.tensorflow.proto.NodeExecStats 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 org.tensorflow.proto.framework.NodeExecStats parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.NodeExecStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.NodeExecStats parseDelimitedFrom( + public static org.tensorflow.proto.NodeExecStats 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 org.tensorflow.proto.framework.NodeExecStats parseFrom( + public static org.tensorflow.proto.NodeExecStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.NodeExecStats parseFrom( + public static org.tensorflow.proto.NodeExecStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -848,7 +744,7 @@ public static org.tensorflow.proto.framework.NodeExecStats parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.NodeExecStats prototype) { + public static Builder newBuilder(org.tensorflow.proto.NodeExecStats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -873,37 +769,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.NodeExecStats) - org.tensorflow.proto.framework.NodeExecStatsOrBuilder { + org.tensorflow.proto.NodeExecStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_NodeExecStats_descriptor; + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_NodeExecStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_NodeExecStats_fieldAccessorTable + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_NodeExecStats_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.NodeExecStats.class, org.tensorflow.proto.framework.NodeExecStats.Builder.class); + org.tensorflow.proto.NodeExecStats.class, org.tensorflow.proto.NodeExecStats.Builder.class); } - // Construct using org.tensorflow.proto.framework.NodeExecStats.newBuilder() + // Construct using org.tensorflow.proto.NodeExecStats.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getMemoryFieldBuilder(); - getOutputFieldBuilder(); - getReferencedTensorFieldBuilder(); - } + } @java.lang.Override public Builder clear() { @@ -920,16 +808,18 @@ public Builder clear() { if (memoryBuilder_ == null) { memory_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + memory_ = null; memoryBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (outputBuilder_ == null) { output_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + output_ = null; outputBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); timelineLabel_ = ""; scheduledMicros_ = 0L; @@ -938,10 +828,11 @@ public Builder clear() { if (referencedTensorBuilder_ == null) { referencedTensor_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); } else { + referencedTensor_ = null; referencedTensorBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000004); if (memoryStatsBuilder_ == null) { memoryStats_ = null; } else { @@ -964,17 +855,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.StepStatsProtos.internal_static_tensorflow_NodeExecStats_descriptor; + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_NodeExecStats_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.NodeExecStats getDefaultInstanceForType() { - return org.tensorflow.proto.framework.NodeExecStats.getDefaultInstance(); + public org.tensorflow.proto.NodeExecStats getDefaultInstanceForType() { + return org.tensorflow.proto.NodeExecStats.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.NodeExecStats build() { - org.tensorflow.proto.framework.NodeExecStats result = buildPartial(); + public org.tensorflow.proto.NodeExecStats build() { + org.tensorflow.proto.NodeExecStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -982,8 +873,8 @@ public org.tensorflow.proto.framework.NodeExecStats build() { } @java.lang.Override - public org.tensorflow.proto.framework.NodeExecStats buildPartial() { - org.tensorflow.proto.framework.NodeExecStats result = new org.tensorflow.proto.framework.NodeExecStats(this); + public org.tensorflow.proto.NodeExecStats buildPartial() { + org.tensorflow.proto.NodeExecStats result = new org.tensorflow.proto.NodeExecStats(this); int from_bitField0_ = bitField0_; result.nodeName_ = nodeName_; result.allStartMicros_ = allStartMicros_; @@ -1068,16 +959,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.NodeExecStats) { - return mergeFrom((org.tensorflow.proto.framework.NodeExecStats)other); + if (other instanceof org.tensorflow.proto.NodeExecStats) { + return mergeFrom((org.tensorflow.proto.NodeExecStats)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.NodeExecStats other) { - if (other == org.tensorflow.proto.framework.NodeExecStats.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.NodeExecStats other) { + if (other == org.tensorflow.proto.NodeExecStats.getDefaultInstance()) return this; if (!other.getNodeName().isEmpty()) { nodeName_ = other.nodeName_; onChanged(); @@ -1200,7 +1091,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.NodeExecStats other) { if (other.getScheduledNanos() != 0L) { setScheduledNanos(other.getScheduledNanos()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1215,17 +1106,141 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.NodeExecStats parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + nodeName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + allStartMicros_ = input.readInt64(); + + break; + } // case 16 + case 24: { + opStartRelMicros_ = input.readInt64(); + + break; + } // case 24 + case 32: { + opEndRelMicros_ = input.readInt64(); + + break; + } // case 32 + case 40: { + allEndRelMicros_ = input.readInt64(); + + break; + } // case 40 + case 50: { + org.tensorflow.proto.AllocatorMemoryUsed m = + input.readMessage( + org.tensorflow.proto.AllocatorMemoryUsed.parser(), + extensionRegistry); + if (memoryBuilder_ == null) { + ensureMemoryIsMutable(); + memory_.add(m); + } else { + memoryBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: { + org.tensorflow.proto.NodeOutput m = + input.readMessage( + org.tensorflow.proto.NodeOutput.parser(), + extensionRegistry); + if (outputBuilder_ == null) { + ensureOutputIsMutable(); + output_.add(m); + } else { + outputBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: { + timelineLabel_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 72: { + scheduledMicros_ = input.readInt64(); + + break; + } // case 72 + case 80: { + threadId_ = input.readUInt32(); + + break; + } // case 80 + case 90: { + org.tensorflow.proto.AllocationDescription m = + input.readMessage( + org.tensorflow.proto.AllocationDescription.parser(), + extensionRegistry); + if (referencedTensorBuilder_ == null) { + ensureReferencedTensorIsMutable(); + referencedTensor_.add(m); + } else { + referencedTensorBuilder_.addMessage(m); + } + break; + } // case 90 + case 98: { + input.readMessage( + getMemoryStatsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 98 + case 104: { + allStartNanos_ = input.readInt64(); + + break; + } // case 104 + case 112: { + opStartRelNanos_ = input.readInt64(); + + break; + } // case 112 + case 120: { + opEndRelNanos_ = input.readInt64(); + + break; + } // case 120 + case 128: { + allEndRelNanos_ = input.readInt64(); + + break; + } // case 128 + case 136: { + scheduledNanos_ = input.readInt64(); + + break; + } // case 136 + 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) { - parsedMessage = (org.tensorflow.proto.framework.NodeExecStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1240,6 +1255,7 @@ public Builder mergeFrom( *
* * string node_name = 1; + * @return The nodeName. */ public java.lang.String getNodeName() { java.lang.Object ref = nodeName_; @@ -1262,6 +1278,7 @@ public java.lang.String getNodeName() { * * * string node_name = 1; + * @return The bytes for nodeName. */ public com.google.protobuf.ByteString getNodeNameBytes() { @@ -1285,6 +1302,8 @@ public java.lang.String getNodeName() { * * * string node_name = 1; + * @param value The nodeName to set. + * @return This builder for chaining. */ public Builder setNodeName( java.lang.String value) { @@ -1305,6 +1324,7 @@ public Builder setNodeName( * * * string node_name = 1; + * @return This builder for chaining. */ public Builder clearNodeName() { @@ -1321,6 +1341,8 @@ public Builder clearNodeName() { * * * string node_name = 1; + * @param value The bytes for nodeName to set. + * @return This builder for chaining. */ public Builder setNodeNameBytes( com.google.protobuf.ByteString value) { @@ -1337,12 +1359,16 @@ public Builder setNodeNameBytes( private long allStartMicros_ ; /** * int64 all_start_micros = 2; + * @return The allStartMicros. */ + @java.lang.Override public long getAllStartMicros() { return allStartMicros_; } /** * int64 all_start_micros = 2; + * @param value The allStartMicros to set. + * @return This builder for chaining. */ public Builder setAllStartMicros(long value) { @@ -1352,6 +1378,7 @@ public Builder setAllStartMicros(long value) { } /** * int64 all_start_micros = 2; + * @return This builder for chaining. */ public Builder clearAllStartMicros() { @@ -1363,12 +1390,16 @@ public Builder clearAllStartMicros() { private long opStartRelMicros_ ; /** * int64 op_start_rel_micros = 3; + * @return The opStartRelMicros. */ + @java.lang.Override public long getOpStartRelMicros() { return opStartRelMicros_; } /** * int64 op_start_rel_micros = 3; + * @param value The opStartRelMicros to set. + * @return This builder for chaining. */ public Builder setOpStartRelMicros(long value) { @@ -1378,6 +1409,7 @@ public Builder setOpStartRelMicros(long value) { } /** * int64 op_start_rel_micros = 3; + * @return This builder for chaining. */ public Builder clearOpStartRelMicros() { @@ -1389,12 +1421,16 @@ public Builder clearOpStartRelMicros() { private long opEndRelMicros_ ; /** * int64 op_end_rel_micros = 4; + * @return The opEndRelMicros. */ + @java.lang.Override public long getOpEndRelMicros() { return opEndRelMicros_; } /** * int64 op_end_rel_micros = 4; + * @param value The opEndRelMicros to set. + * @return This builder for chaining. */ public Builder setOpEndRelMicros(long value) { @@ -1404,6 +1440,7 @@ public Builder setOpEndRelMicros(long value) { } /** * int64 op_end_rel_micros = 4; + * @return This builder for chaining. */ public Builder clearOpEndRelMicros() { @@ -1415,12 +1452,16 @@ public Builder clearOpEndRelMicros() { private long allEndRelMicros_ ; /** * int64 all_end_rel_micros = 5; + * @return The allEndRelMicros. */ + @java.lang.Override public long getAllEndRelMicros() { return allEndRelMicros_; } /** * int64 all_end_rel_micros = 5; + * @param value The allEndRelMicros to set. + * @return This builder for chaining. */ public Builder setAllEndRelMicros(long value) { @@ -1430,6 +1471,7 @@ public Builder setAllEndRelMicros(long value) { } /** * int64 all_end_rel_micros = 5; + * @return This builder for chaining. */ public Builder clearAllEndRelMicros() { @@ -1438,22 +1480,22 @@ public Builder clearAllEndRelMicros() { return this; } - private java.util.List memory_ = + private java.util.List memory_ = java.util.Collections.emptyList(); private void ensureMemoryIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - memory_ = new java.util.ArrayList(memory_); + memory_ = new java.util.ArrayList(memory_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.AllocatorMemoryUsed, org.tensorflow.proto.framework.AllocatorMemoryUsed.Builder, org.tensorflow.proto.framework.AllocatorMemoryUsedOrBuilder> memoryBuilder_; + org.tensorflow.proto.AllocatorMemoryUsed, org.tensorflow.proto.AllocatorMemoryUsed.Builder, org.tensorflow.proto.AllocatorMemoryUsedOrBuilder> memoryBuilder_; /** * repeated .tensorflow.AllocatorMemoryUsed memory = 6; */ - public java.util.List getMemoryList() { + public java.util.List getMemoryList() { if (memoryBuilder_ == null) { return java.util.Collections.unmodifiableList(memory_); } else { @@ -1473,7 +1515,7 @@ public int getMemoryCount() { /** * repeated .tensorflow.AllocatorMemoryUsed memory = 6; */ - public org.tensorflow.proto.framework.AllocatorMemoryUsed getMemory(int index) { + public org.tensorflow.proto.AllocatorMemoryUsed getMemory(int index) { if (memoryBuilder_ == null) { return memory_.get(index); } else { @@ -1484,7 +1526,7 @@ public org.tensorflow.proto.framework.AllocatorMemoryUsed getMemory(int index) { * repeated .tensorflow.AllocatorMemoryUsed memory = 6; */ public Builder setMemory( - int index, org.tensorflow.proto.framework.AllocatorMemoryUsed value) { + int index, org.tensorflow.proto.AllocatorMemoryUsed value) { if (memoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1501,7 +1543,7 @@ public Builder setMemory( * repeated .tensorflow.AllocatorMemoryUsed memory = 6; */ public Builder setMemory( - int index, org.tensorflow.proto.framework.AllocatorMemoryUsed.Builder builderForValue) { + int index, org.tensorflow.proto.AllocatorMemoryUsed.Builder builderForValue) { if (memoryBuilder_ == null) { ensureMemoryIsMutable(); memory_.set(index, builderForValue.build()); @@ -1514,7 +1556,7 @@ public Builder setMemory( /** * repeated .tensorflow.AllocatorMemoryUsed memory = 6; */ - public Builder addMemory(org.tensorflow.proto.framework.AllocatorMemoryUsed value) { + public Builder addMemory(org.tensorflow.proto.AllocatorMemoryUsed value) { if (memoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1531,7 +1573,7 @@ public Builder addMemory(org.tensorflow.proto.framework.AllocatorMemoryUsed valu * repeated .tensorflow.AllocatorMemoryUsed memory = 6; */ public Builder addMemory( - int index, org.tensorflow.proto.framework.AllocatorMemoryUsed value) { + int index, org.tensorflow.proto.AllocatorMemoryUsed value) { if (memoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1548,7 +1590,7 @@ public Builder addMemory( * repeated .tensorflow.AllocatorMemoryUsed memory = 6; */ public Builder addMemory( - org.tensorflow.proto.framework.AllocatorMemoryUsed.Builder builderForValue) { + org.tensorflow.proto.AllocatorMemoryUsed.Builder builderForValue) { if (memoryBuilder_ == null) { ensureMemoryIsMutable(); memory_.add(builderForValue.build()); @@ -1562,7 +1604,7 @@ public Builder addMemory( * repeated .tensorflow.AllocatorMemoryUsed memory = 6; */ public Builder addMemory( - int index, org.tensorflow.proto.framework.AllocatorMemoryUsed.Builder builderForValue) { + int index, org.tensorflow.proto.AllocatorMemoryUsed.Builder builderForValue) { if (memoryBuilder_ == null) { ensureMemoryIsMutable(); memory_.add(index, builderForValue.build()); @@ -1576,7 +1618,7 @@ public Builder addMemory( * repeated .tensorflow.AllocatorMemoryUsed memory = 6; */ public Builder addAllMemory( - java.lang.Iterable values) { + java.lang.Iterable values) { if (memoryBuilder_ == null) { ensureMemoryIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -1616,14 +1658,14 @@ public Builder removeMemory(int index) { /** * repeated .tensorflow.AllocatorMemoryUsed memory = 6; */ - public org.tensorflow.proto.framework.AllocatorMemoryUsed.Builder getMemoryBuilder( + public org.tensorflow.proto.AllocatorMemoryUsed.Builder getMemoryBuilder( int index) { return getMemoryFieldBuilder().getBuilder(index); } /** * repeated .tensorflow.AllocatorMemoryUsed memory = 6; */ - public org.tensorflow.proto.framework.AllocatorMemoryUsedOrBuilder getMemoryOrBuilder( + public org.tensorflow.proto.AllocatorMemoryUsedOrBuilder getMemoryOrBuilder( int index) { if (memoryBuilder_ == null) { return memory_.get(index); } else { @@ -1633,7 +1675,7 @@ public org.tensorflow.proto.framework.AllocatorMemoryUsedOrBuilder getMemoryOrBu /** * repeated .tensorflow.AllocatorMemoryUsed memory = 6; */ - public java.util.List + public java.util.List getMemoryOrBuilderList() { if (memoryBuilder_ != null) { return memoryBuilder_.getMessageOrBuilderList(); @@ -1644,31 +1686,31 @@ public org.tensorflow.proto.framework.AllocatorMemoryUsedOrBuilder getMemoryOrBu /** * repeated .tensorflow.AllocatorMemoryUsed memory = 6; */ - public org.tensorflow.proto.framework.AllocatorMemoryUsed.Builder addMemoryBuilder() { + public org.tensorflow.proto.AllocatorMemoryUsed.Builder addMemoryBuilder() { return getMemoryFieldBuilder().addBuilder( - org.tensorflow.proto.framework.AllocatorMemoryUsed.getDefaultInstance()); + org.tensorflow.proto.AllocatorMemoryUsed.getDefaultInstance()); } /** * repeated .tensorflow.AllocatorMemoryUsed memory = 6; */ - public org.tensorflow.proto.framework.AllocatorMemoryUsed.Builder addMemoryBuilder( + public org.tensorflow.proto.AllocatorMemoryUsed.Builder addMemoryBuilder( int index) { return getMemoryFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.AllocatorMemoryUsed.getDefaultInstance()); + index, org.tensorflow.proto.AllocatorMemoryUsed.getDefaultInstance()); } /** * repeated .tensorflow.AllocatorMemoryUsed memory = 6; */ - public java.util.List + public java.util.List getMemoryBuilderList() { return getMemoryFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.AllocatorMemoryUsed, org.tensorflow.proto.framework.AllocatorMemoryUsed.Builder, org.tensorflow.proto.framework.AllocatorMemoryUsedOrBuilder> + org.tensorflow.proto.AllocatorMemoryUsed, org.tensorflow.proto.AllocatorMemoryUsed.Builder, org.tensorflow.proto.AllocatorMemoryUsedOrBuilder> getMemoryFieldBuilder() { if (memoryBuilder_ == null) { memoryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.AllocatorMemoryUsed, org.tensorflow.proto.framework.AllocatorMemoryUsed.Builder, org.tensorflow.proto.framework.AllocatorMemoryUsedOrBuilder>( + org.tensorflow.proto.AllocatorMemoryUsed, org.tensorflow.proto.AllocatorMemoryUsed.Builder, org.tensorflow.proto.AllocatorMemoryUsedOrBuilder>( memory_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1678,22 +1720,22 @@ public org.tensorflow.proto.framework.AllocatorMemoryUsed.Builder addMemoryBuild return memoryBuilder_; } - private java.util.List output_ = + private java.util.List output_ = java.util.Collections.emptyList(); private void ensureOutputIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - output_ = new java.util.ArrayList(output_); + output_ = new java.util.ArrayList(output_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.NodeOutput, org.tensorflow.proto.framework.NodeOutput.Builder, org.tensorflow.proto.framework.NodeOutputOrBuilder> outputBuilder_; + org.tensorflow.proto.NodeOutput, org.tensorflow.proto.NodeOutput.Builder, org.tensorflow.proto.NodeOutputOrBuilder> outputBuilder_; /** * repeated .tensorflow.NodeOutput output = 7; */ - public java.util.List getOutputList() { + public java.util.List getOutputList() { if (outputBuilder_ == null) { return java.util.Collections.unmodifiableList(output_); } else { @@ -1713,7 +1755,7 @@ public int getOutputCount() { /** * repeated .tensorflow.NodeOutput output = 7; */ - public org.tensorflow.proto.framework.NodeOutput getOutput(int index) { + public org.tensorflow.proto.NodeOutput getOutput(int index) { if (outputBuilder_ == null) { return output_.get(index); } else { @@ -1724,7 +1766,7 @@ public org.tensorflow.proto.framework.NodeOutput getOutput(int index) { * repeated .tensorflow.NodeOutput output = 7; */ public Builder setOutput( - int index, org.tensorflow.proto.framework.NodeOutput value) { + int index, org.tensorflow.proto.NodeOutput value) { if (outputBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1741,7 +1783,7 @@ public Builder setOutput( * repeated .tensorflow.NodeOutput output = 7; */ public Builder setOutput( - int index, org.tensorflow.proto.framework.NodeOutput.Builder builderForValue) { + int index, org.tensorflow.proto.NodeOutput.Builder builderForValue) { if (outputBuilder_ == null) { ensureOutputIsMutable(); output_.set(index, builderForValue.build()); @@ -1754,7 +1796,7 @@ public Builder setOutput( /** * repeated .tensorflow.NodeOutput output = 7; */ - public Builder addOutput(org.tensorflow.proto.framework.NodeOutput value) { + public Builder addOutput(org.tensorflow.proto.NodeOutput value) { if (outputBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1771,7 +1813,7 @@ public Builder addOutput(org.tensorflow.proto.framework.NodeOutput value) { * repeated .tensorflow.NodeOutput output = 7; */ public Builder addOutput( - int index, org.tensorflow.proto.framework.NodeOutput value) { + int index, org.tensorflow.proto.NodeOutput value) { if (outputBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1788,7 +1830,7 @@ public Builder addOutput( * repeated .tensorflow.NodeOutput output = 7; */ public Builder addOutput( - org.tensorflow.proto.framework.NodeOutput.Builder builderForValue) { + org.tensorflow.proto.NodeOutput.Builder builderForValue) { if (outputBuilder_ == null) { ensureOutputIsMutable(); output_.add(builderForValue.build()); @@ -1802,7 +1844,7 @@ public Builder addOutput( * repeated .tensorflow.NodeOutput output = 7; */ public Builder addOutput( - int index, org.tensorflow.proto.framework.NodeOutput.Builder builderForValue) { + int index, org.tensorflow.proto.NodeOutput.Builder builderForValue) { if (outputBuilder_ == null) { ensureOutputIsMutable(); output_.add(index, builderForValue.build()); @@ -1816,7 +1858,7 @@ public Builder addOutput( * repeated .tensorflow.NodeOutput output = 7; */ public Builder addAllOutput( - java.lang.Iterable values) { + java.lang.Iterable values) { if (outputBuilder_ == null) { ensureOutputIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -1856,14 +1898,14 @@ public Builder removeOutput(int index) { /** * repeated .tensorflow.NodeOutput output = 7; */ - public org.tensorflow.proto.framework.NodeOutput.Builder getOutputBuilder( + public org.tensorflow.proto.NodeOutput.Builder getOutputBuilder( int index) { return getOutputFieldBuilder().getBuilder(index); } /** * repeated .tensorflow.NodeOutput output = 7; */ - public org.tensorflow.proto.framework.NodeOutputOrBuilder getOutputOrBuilder( + public org.tensorflow.proto.NodeOutputOrBuilder getOutputOrBuilder( int index) { if (outputBuilder_ == null) { return output_.get(index); } else { @@ -1873,7 +1915,7 @@ public org.tensorflow.proto.framework.NodeOutputOrBuilder getOutputOrBuilder( /** * repeated .tensorflow.NodeOutput output = 7; */ - public java.util.List + public java.util.List getOutputOrBuilderList() { if (outputBuilder_ != null) { return outputBuilder_.getMessageOrBuilderList(); @@ -1884,31 +1926,31 @@ public org.tensorflow.proto.framework.NodeOutputOrBuilder getOutputOrBuilder( /** * repeated .tensorflow.NodeOutput output = 7; */ - public org.tensorflow.proto.framework.NodeOutput.Builder addOutputBuilder() { + public org.tensorflow.proto.NodeOutput.Builder addOutputBuilder() { return getOutputFieldBuilder().addBuilder( - org.tensorflow.proto.framework.NodeOutput.getDefaultInstance()); + org.tensorflow.proto.NodeOutput.getDefaultInstance()); } /** * repeated .tensorflow.NodeOutput output = 7; */ - public org.tensorflow.proto.framework.NodeOutput.Builder addOutputBuilder( + public org.tensorflow.proto.NodeOutput.Builder addOutputBuilder( int index) { return getOutputFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.NodeOutput.getDefaultInstance()); + index, org.tensorflow.proto.NodeOutput.getDefaultInstance()); } /** * repeated .tensorflow.NodeOutput output = 7; */ - public java.util.List + public java.util.List getOutputBuilderList() { return getOutputFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.NodeOutput, org.tensorflow.proto.framework.NodeOutput.Builder, org.tensorflow.proto.framework.NodeOutputOrBuilder> + org.tensorflow.proto.NodeOutput, org.tensorflow.proto.NodeOutput.Builder, org.tensorflow.proto.NodeOutputOrBuilder> getOutputFieldBuilder() { if (outputBuilder_ == null) { outputBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.NodeOutput, org.tensorflow.proto.framework.NodeOutput.Builder, org.tensorflow.proto.framework.NodeOutputOrBuilder>( + org.tensorflow.proto.NodeOutput, org.tensorflow.proto.NodeOutput.Builder, org.tensorflow.proto.NodeOutputOrBuilder>( output_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1921,6 +1963,7 @@ public org.tensorflow.proto.framework.NodeOutput.Builder addOutputBuilder( private java.lang.Object timelineLabel_ = ""; /** * string timeline_label = 8; + * @return The timelineLabel. */ public java.lang.String getTimelineLabel() { java.lang.Object ref = timelineLabel_; @@ -1936,6 +1979,7 @@ public java.lang.String getTimelineLabel() { } /** * string timeline_label = 8; + * @return The bytes for timelineLabel. */ public com.google.protobuf.ByteString getTimelineLabelBytes() { @@ -1952,6 +1996,8 @@ public java.lang.String getTimelineLabel() { } /** * string timeline_label = 8; + * @param value The timelineLabel to set. + * @return This builder for chaining. */ public Builder setTimelineLabel( java.lang.String value) { @@ -1965,6 +2011,7 @@ public Builder setTimelineLabel( } /** * string timeline_label = 8; + * @return This builder for chaining. */ public Builder clearTimelineLabel() { @@ -1974,6 +2021,8 @@ public Builder clearTimelineLabel() { } /** * string timeline_label = 8; + * @param value The bytes for timelineLabel to set. + * @return This builder for chaining. */ public Builder setTimelineLabelBytes( com.google.protobuf.ByteString value) { @@ -1990,12 +2039,16 @@ public Builder setTimelineLabelBytes( private long scheduledMicros_ ; /** * int64 scheduled_micros = 9; + * @return The scheduledMicros. */ + @java.lang.Override public long getScheduledMicros() { return scheduledMicros_; } /** * int64 scheduled_micros = 9; + * @param value The scheduledMicros to set. + * @return This builder for chaining. */ public Builder setScheduledMicros(long value) { @@ -2005,6 +2058,7 @@ public Builder setScheduledMicros(long value) { } /** * int64 scheduled_micros = 9; + * @return This builder for chaining. */ public Builder clearScheduledMicros() { @@ -2016,12 +2070,16 @@ public Builder clearScheduledMicros() { private int threadId_ ; /** * uint32 thread_id = 10; + * @return The threadId. */ + @java.lang.Override public int getThreadId() { return threadId_; } /** * uint32 thread_id = 10; + * @param value The threadId to set. + * @return This builder for chaining. */ public Builder setThreadId(int value) { @@ -2031,6 +2089,7 @@ public Builder setThreadId(int value) { } /** * uint32 thread_id = 10; + * @return This builder for chaining. */ public Builder clearThreadId() { @@ -2039,22 +2098,22 @@ public Builder clearThreadId() { return this; } - private java.util.List referencedTensor_ = + private java.util.List referencedTensor_ = java.util.Collections.emptyList(); private void ensureReferencedTensorIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - referencedTensor_ = new java.util.ArrayList(referencedTensor_); + referencedTensor_ = new java.util.ArrayList(referencedTensor_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.AllocationDescription, org.tensorflow.proto.framework.AllocationDescription.Builder, org.tensorflow.proto.framework.AllocationDescriptionOrBuilder> referencedTensorBuilder_; + org.tensorflow.proto.AllocationDescription, org.tensorflow.proto.AllocationDescription.Builder, org.tensorflow.proto.AllocationDescriptionOrBuilder> referencedTensorBuilder_; /** * repeated .tensorflow.AllocationDescription referenced_tensor = 11; */ - public java.util.List getReferencedTensorList() { + public java.util.List getReferencedTensorList() { if (referencedTensorBuilder_ == null) { return java.util.Collections.unmodifiableList(referencedTensor_); } else { @@ -2074,7 +2133,7 @@ public int getReferencedTensorCount() { /** * repeated .tensorflow.AllocationDescription referenced_tensor = 11; */ - public org.tensorflow.proto.framework.AllocationDescription getReferencedTensor(int index) { + public org.tensorflow.proto.AllocationDescription getReferencedTensor(int index) { if (referencedTensorBuilder_ == null) { return referencedTensor_.get(index); } else { @@ -2085,7 +2144,7 @@ public org.tensorflow.proto.framework.AllocationDescription getReferencedTensor( * repeated .tensorflow.AllocationDescription referenced_tensor = 11; */ public Builder setReferencedTensor( - int index, org.tensorflow.proto.framework.AllocationDescription value) { + int index, org.tensorflow.proto.AllocationDescription value) { if (referencedTensorBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2102,7 +2161,7 @@ public Builder setReferencedTensor( * repeated .tensorflow.AllocationDescription referenced_tensor = 11; */ public Builder setReferencedTensor( - int index, org.tensorflow.proto.framework.AllocationDescription.Builder builderForValue) { + int index, org.tensorflow.proto.AllocationDescription.Builder builderForValue) { if (referencedTensorBuilder_ == null) { ensureReferencedTensorIsMutable(); referencedTensor_.set(index, builderForValue.build()); @@ -2115,7 +2174,7 @@ public Builder setReferencedTensor( /** * repeated .tensorflow.AllocationDescription referenced_tensor = 11; */ - public Builder addReferencedTensor(org.tensorflow.proto.framework.AllocationDescription value) { + public Builder addReferencedTensor(org.tensorflow.proto.AllocationDescription value) { if (referencedTensorBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2132,7 +2191,7 @@ public Builder addReferencedTensor(org.tensorflow.proto.framework.AllocationDesc * repeated .tensorflow.AllocationDescription referenced_tensor = 11; */ public Builder addReferencedTensor( - int index, org.tensorflow.proto.framework.AllocationDescription value) { + int index, org.tensorflow.proto.AllocationDescription value) { if (referencedTensorBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2149,7 +2208,7 @@ public Builder addReferencedTensor( * repeated .tensorflow.AllocationDescription referenced_tensor = 11; */ public Builder addReferencedTensor( - org.tensorflow.proto.framework.AllocationDescription.Builder builderForValue) { + org.tensorflow.proto.AllocationDescription.Builder builderForValue) { if (referencedTensorBuilder_ == null) { ensureReferencedTensorIsMutable(); referencedTensor_.add(builderForValue.build()); @@ -2163,7 +2222,7 @@ public Builder addReferencedTensor( * repeated .tensorflow.AllocationDescription referenced_tensor = 11; */ public Builder addReferencedTensor( - int index, org.tensorflow.proto.framework.AllocationDescription.Builder builderForValue) { + int index, org.tensorflow.proto.AllocationDescription.Builder builderForValue) { if (referencedTensorBuilder_ == null) { ensureReferencedTensorIsMutable(); referencedTensor_.add(index, builderForValue.build()); @@ -2177,7 +2236,7 @@ public Builder addReferencedTensor( * repeated .tensorflow.AllocationDescription referenced_tensor = 11; */ public Builder addAllReferencedTensor( - java.lang.Iterable values) { + java.lang.Iterable values) { if (referencedTensorBuilder_ == null) { ensureReferencedTensorIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -2217,14 +2276,14 @@ public Builder removeReferencedTensor(int index) { /** * repeated .tensorflow.AllocationDescription referenced_tensor = 11; */ - public org.tensorflow.proto.framework.AllocationDescription.Builder getReferencedTensorBuilder( + public org.tensorflow.proto.AllocationDescription.Builder getReferencedTensorBuilder( int index) { return getReferencedTensorFieldBuilder().getBuilder(index); } /** * repeated .tensorflow.AllocationDescription referenced_tensor = 11; */ - public org.tensorflow.proto.framework.AllocationDescriptionOrBuilder getReferencedTensorOrBuilder( + public org.tensorflow.proto.AllocationDescriptionOrBuilder getReferencedTensorOrBuilder( int index) { if (referencedTensorBuilder_ == null) { return referencedTensor_.get(index); } else { @@ -2234,7 +2293,7 @@ public org.tensorflow.proto.framework.AllocationDescriptionOrBuilder getReferenc /** * repeated .tensorflow.AllocationDescription referenced_tensor = 11; */ - public java.util.List + public java.util.List getReferencedTensorOrBuilderList() { if (referencedTensorBuilder_ != null) { return referencedTensorBuilder_.getMessageOrBuilderList(); @@ -2245,31 +2304,31 @@ public org.tensorflow.proto.framework.AllocationDescriptionOrBuilder getReferenc /** * repeated .tensorflow.AllocationDescription referenced_tensor = 11; */ - public org.tensorflow.proto.framework.AllocationDescription.Builder addReferencedTensorBuilder() { + public org.tensorflow.proto.AllocationDescription.Builder addReferencedTensorBuilder() { return getReferencedTensorFieldBuilder().addBuilder( - org.tensorflow.proto.framework.AllocationDescription.getDefaultInstance()); + org.tensorflow.proto.AllocationDescription.getDefaultInstance()); } /** * repeated .tensorflow.AllocationDescription referenced_tensor = 11; */ - public org.tensorflow.proto.framework.AllocationDescription.Builder addReferencedTensorBuilder( + public org.tensorflow.proto.AllocationDescription.Builder addReferencedTensorBuilder( int index) { return getReferencedTensorFieldBuilder().addBuilder( - index, org.tensorflow.proto.framework.AllocationDescription.getDefaultInstance()); + index, org.tensorflow.proto.AllocationDescription.getDefaultInstance()); } /** * repeated .tensorflow.AllocationDescription referenced_tensor = 11; */ - public java.util.List + public java.util.List getReferencedTensorBuilderList() { return getReferencedTensorFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.AllocationDescription, org.tensorflow.proto.framework.AllocationDescription.Builder, org.tensorflow.proto.framework.AllocationDescriptionOrBuilder> + org.tensorflow.proto.AllocationDescription, org.tensorflow.proto.AllocationDescription.Builder, org.tensorflow.proto.AllocationDescriptionOrBuilder> getReferencedTensorFieldBuilder() { if (referencedTensorBuilder_ == null) { referencedTensorBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.AllocationDescription, org.tensorflow.proto.framework.AllocationDescription.Builder, org.tensorflow.proto.framework.AllocationDescriptionOrBuilder>( + org.tensorflow.proto.AllocationDescription, org.tensorflow.proto.AllocationDescription.Builder, org.tensorflow.proto.AllocationDescriptionOrBuilder>( referencedTensor_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -2279,21 +2338,23 @@ public org.tensorflow.proto.framework.AllocationDescription.Builder addReference return referencedTensorBuilder_; } - private org.tensorflow.proto.framework.MemoryStats memoryStats_; + private org.tensorflow.proto.MemoryStats memoryStats_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.MemoryStats, org.tensorflow.proto.framework.MemoryStats.Builder, org.tensorflow.proto.framework.MemoryStatsOrBuilder> memoryStatsBuilder_; + org.tensorflow.proto.MemoryStats, org.tensorflow.proto.MemoryStats.Builder, org.tensorflow.proto.MemoryStatsOrBuilder> memoryStatsBuilder_; /** * .tensorflow.MemoryStats memory_stats = 12; + * @return Whether the memoryStats field is set. */ public boolean hasMemoryStats() { return memoryStatsBuilder_ != null || memoryStats_ != null; } /** * .tensorflow.MemoryStats memory_stats = 12; + * @return The memoryStats. */ - public org.tensorflow.proto.framework.MemoryStats getMemoryStats() { + public org.tensorflow.proto.MemoryStats getMemoryStats() { if (memoryStatsBuilder_ == null) { - return memoryStats_ == null ? org.tensorflow.proto.framework.MemoryStats.getDefaultInstance() : memoryStats_; + return memoryStats_ == null ? org.tensorflow.proto.MemoryStats.getDefaultInstance() : memoryStats_; } else { return memoryStatsBuilder_.getMessage(); } @@ -2301,7 +2362,7 @@ public org.tensorflow.proto.framework.MemoryStats getMemoryStats() { /** * .tensorflow.MemoryStats memory_stats = 12; */ - public Builder setMemoryStats(org.tensorflow.proto.framework.MemoryStats value) { + public Builder setMemoryStats(org.tensorflow.proto.MemoryStats value) { if (memoryStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2318,7 +2379,7 @@ public Builder setMemoryStats(org.tensorflow.proto.framework.MemoryStats value) * .tensorflow.MemoryStats memory_stats = 12; */ public Builder setMemoryStats( - org.tensorflow.proto.framework.MemoryStats.Builder builderForValue) { + org.tensorflow.proto.MemoryStats.Builder builderForValue) { if (memoryStatsBuilder_ == null) { memoryStats_ = builderForValue.build(); onChanged(); @@ -2331,11 +2392,11 @@ public Builder setMemoryStats( /** * .tensorflow.MemoryStats memory_stats = 12; */ - public Builder mergeMemoryStats(org.tensorflow.proto.framework.MemoryStats value) { + public Builder mergeMemoryStats(org.tensorflow.proto.MemoryStats value) { if (memoryStatsBuilder_ == null) { if (memoryStats_ != null) { memoryStats_ = - org.tensorflow.proto.framework.MemoryStats.newBuilder(memoryStats_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.MemoryStats.newBuilder(memoryStats_).mergeFrom(value).buildPartial(); } else { memoryStats_ = value; } @@ -2363,7 +2424,7 @@ public Builder clearMemoryStats() { /** * .tensorflow.MemoryStats memory_stats = 12; */ - public org.tensorflow.proto.framework.MemoryStats.Builder getMemoryStatsBuilder() { + public org.tensorflow.proto.MemoryStats.Builder getMemoryStatsBuilder() { onChanged(); return getMemoryStatsFieldBuilder().getBuilder(); @@ -2371,23 +2432,23 @@ public org.tensorflow.proto.framework.MemoryStats.Builder getMemoryStatsBuilder( /** * .tensorflow.MemoryStats memory_stats = 12; */ - public org.tensorflow.proto.framework.MemoryStatsOrBuilder getMemoryStatsOrBuilder() { + public org.tensorflow.proto.MemoryStatsOrBuilder getMemoryStatsOrBuilder() { if (memoryStatsBuilder_ != null) { return memoryStatsBuilder_.getMessageOrBuilder(); } else { return memoryStats_ == null ? - org.tensorflow.proto.framework.MemoryStats.getDefaultInstance() : memoryStats_; + org.tensorflow.proto.MemoryStats.getDefaultInstance() : memoryStats_; } } /** * .tensorflow.MemoryStats memory_stats = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.MemoryStats, org.tensorflow.proto.framework.MemoryStats.Builder, org.tensorflow.proto.framework.MemoryStatsOrBuilder> + org.tensorflow.proto.MemoryStats, org.tensorflow.proto.MemoryStats.Builder, org.tensorflow.proto.MemoryStatsOrBuilder> getMemoryStatsFieldBuilder() { if (memoryStatsBuilder_ == null) { memoryStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.MemoryStats, org.tensorflow.proto.framework.MemoryStats.Builder, org.tensorflow.proto.framework.MemoryStatsOrBuilder>( + org.tensorflow.proto.MemoryStats, org.tensorflow.proto.MemoryStats.Builder, org.tensorflow.proto.MemoryStatsOrBuilder>( getMemoryStats(), getParentForChildren(), isClean()); @@ -2399,12 +2460,16 @@ public org.tensorflow.proto.framework.MemoryStatsOrBuilder getMemoryStatsOrBuild private long allStartNanos_ ; /** * int64 all_start_nanos = 13; + * @return The allStartNanos. */ + @java.lang.Override public long getAllStartNanos() { return allStartNanos_; } /** * int64 all_start_nanos = 13; + * @param value The allStartNanos to set. + * @return This builder for chaining. */ public Builder setAllStartNanos(long value) { @@ -2414,6 +2479,7 @@ public Builder setAllStartNanos(long value) { } /** * int64 all_start_nanos = 13; + * @return This builder for chaining. */ public Builder clearAllStartNanos() { @@ -2425,12 +2491,16 @@ public Builder clearAllStartNanos() { private long opStartRelNanos_ ; /** * int64 op_start_rel_nanos = 14; + * @return The opStartRelNanos. */ + @java.lang.Override public long getOpStartRelNanos() { return opStartRelNanos_; } /** * int64 op_start_rel_nanos = 14; + * @param value The opStartRelNanos to set. + * @return This builder for chaining. */ public Builder setOpStartRelNanos(long value) { @@ -2440,6 +2510,7 @@ public Builder setOpStartRelNanos(long value) { } /** * int64 op_start_rel_nanos = 14; + * @return This builder for chaining. */ public Builder clearOpStartRelNanos() { @@ -2451,12 +2522,16 @@ public Builder clearOpStartRelNanos() { private long opEndRelNanos_ ; /** * int64 op_end_rel_nanos = 15; + * @return The opEndRelNanos. */ + @java.lang.Override public long getOpEndRelNanos() { return opEndRelNanos_; } /** * int64 op_end_rel_nanos = 15; + * @param value The opEndRelNanos to set. + * @return This builder for chaining. */ public Builder setOpEndRelNanos(long value) { @@ -2466,6 +2541,7 @@ public Builder setOpEndRelNanos(long value) { } /** * int64 op_end_rel_nanos = 15; + * @return This builder for chaining. */ public Builder clearOpEndRelNanos() { @@ -2477,12 +2553,16 @@ public Builder clearOpEndRelNanos() { private long allEndRelNanos_ ; /** * int64 all_end_rel_nanos = 16; + * @return The allEndRelNanos. */ + @java.lang.Override public long getAllEndRelNanos() { return allEndRelNanos_; } /** * int64 all_end_rel_nanos = 16; + * @param value The allEndRelNanos to set. + * @return This builder for chaining. */ public Builder setAllEndRelNanos(long value) { @@ -2492,6 +2572,7 @@ public Builder setAllEndRelNanos(long value) { } /** * int64 all_end_rel_nanos = 16; + * @return This builder for chaining. */ public Builder clearAllEndRelNanos() { @@ -2503,12 +2584,16 @@ public Builder clearAllEndRelNanos() { private long scheduledNanos_ ; /** * int64 scheduled_nanos = 17; + * @return The scheduledNanos. */ + @java.lang.Override public long getScheduledNanos() { return scheduledNanos_; } /** * int64 scheduled_nanos = 17; + * @param value The scheduledNanos to set. + * @return This builder for chaining. */ public Builder setScheduledNanos(long value) { @@ -2518,6 +2603,7 @@ public Builder setScheduledNanos(long value) { } /** * int64 scheduled_nanos = 17; + * @return This builder for chaining. */ public Builder clearScheduledNanos() { @@ -2542,12 +2628,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.NodeExecStats) - private static final org.tensorflow.proto.framework.NodeExecStats DEFAULT_INSTANCE; + private static final org.tensorflow.proto.NodeExecStats DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.NodeExecStats(); + DEFAULT_INSTANCE = new org.tensorflow.proto.NodeExecStats(); } - public static org.tensorflow.proto.framework.NodeExecStats getDefaultInstance() { + public static org.tensorflow.proto.NodeExecStats getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -2558,7 +2644,18 @@ public NodeExecStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecStats(input, extensionRegistry); + 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(); } }; @@ -2572,7 +2669,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.NodeExecStats getDefaultInstanceForType() { + public org.tensorflow.proto.NodeExecStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NodeExecStatsOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NodeExecStatsOrBuilder.java new file mode 100644 index 00000000000..69f96e57ac1 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NodeExecStatsOrBuilder.java @@ -0,0 +1,200 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/step_stats.proto + +package org.tensorflow.proto; + +public interface NodeExecStatsOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.NodeExecStats) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * TODO(tucker): Use some more compact form of node identity than
+   * the full string name.  Either all processes should agree on a
+   * global id (cost_id?) for each node, or we should use a hash of
+   * the name.
+   * 
+ * + * string node_name = 1; + * @return The nodeName. + */ + java.lang.String getNodeName(); + /** + *
+   * TODO(tucker): Use some more compact form of node identity than
+   * the full string name.  Either all processes should agree on a
+   * global id (cost_id?) for each node, or we should use a hash of
+   * the name.
+   * 
+ * + * string node_name = 1; + * @return The bytes for nodeName. + */ + com.google.protobuf.ByteString + getNodeNameBytes(); + + /** + * int64 all_start_micros = 2; + * @return The allStartMicros. + */ + long getAllStartMicros(); + + /** + * int64 op_start_rel_micros = 3; + * @return The opStartRelMicros. + */ + long getOpStartRelMicros(); + + /** + * int64 op_end_rel_micros = 4; + * @return The opEndRelMicros. + */ + long getOpEndRelMicros(); + + /** + * int64 all_end_rel_micros = 5; + * @return The allEndRelMicros. + */ + long getAllEndRelMicros(); + + /** + * repeated .tensorflow.AllocatorMemoryUsed memory = 6; + */ + java.util.List + getMemoryList(); + /** + * repeated .tensorflow.AllocatorMemoryUsed memory = 6; + */ + org.tensorflow.proto.AllocatorMemoryUsed getMemory(int index); + /** + * repeated .tensorflow.AllocatorMemoryUsed memory = 6; + */ + int getMemoryCount(); + /** + * repeated .tensorflow.AllocatorMemoryUsed memory = 6; + */ + java.util.List + getMemoryOrBuilderList(); + /** + * repeated .tensorflow.AllocatorMemoryUsed memory = 6; + */ + org.tensorflow.proto.AllocatorMemoryUsedOrBuilder getMemoryOrBuilder( + int index); + + /** + * repeated .tensorflow.NodeOutput output = 7; + */ + java.util.List + getOutputList(); + /** + * repeated .tensorflow.NodeOutput output = 7; + */ + org.tensorflow.proto.NodeOutput getOutput(int index); + /** + * repeated .tensorflow.NodeOutput output = 7; + */ + int getOutputCount(); + /** + * repeated .tensorflow.NodeOutput output = 7; + */ + java.util.List + getOutputOrBuilderList(); + /** + * repeated .tensorflow.NodeOutput output = 7; + */ + org.tensorflow.proto.NodeOutputOrBuilder getOutputOrBuilder( + int index); + + /** + * string timeline_label = 8; + * @return The timelineLabel. + */ + java.lang.String getTimelineLabel(); + /** + * string timeline_label = 8; + * @return The bytes for timelineLabel. + */ + com.google.protobuf.ByteString + getTimelineLabelBytes(); + + /** + * int64 scheduled_micros = 9; + * @return The scheduledMicros. + */ + long getScheduledMicros(); + + /** + * uint32 thread_id = 10; + * @return The threadId. + */ + int getThreadId(); + + /** + * repeated .tensorflow.AllocationDescription referenced_tensor = 11; + */ + java.util.List + getReferencedTensorList(); + /** + * repeated .tensorflow.AllocationDescription referenced_tensor = 11; + */ + org.tensorflow.proto.AllocationDescription getReferencedTensor(int index); + /** + * repeated .tensorflow.AllocationDescription referenced_tensor = 11; + */ + int getReferencedTensorCount(); + /** + * repeated .tensorflow.AllocationDescription referenced_tensor = 11; + */ + java.util.List + getReferencedTensorOrBuilderList(); + /** + * repeated .tensorflow.AllocationDescription referenced_tensor = 11; + */ + org.tensorflow.proto.AllocationDescriptionOrBuilder getReferencedTensorOrBuilder( + int index); + + /** + * .tensorflow.MemoryStats memory_stats = 12; + * @return Whether the memoryStats field is set. + */ + boolean hasMemoryStats(); + /** + * .tensorflow.MemoryStats memory_stats = 12; + * @return The memoryStats. + */ + org.tensorflow.proto.MemoryStats getMemoryStats(); + /** + * .tensorflow.MemoryStats memory_stats = 12; + */ + org.tensorflow.proto.MemoryStatsOrBuilder getMemoryStatsOrBuilder(); + + /** + * int64 all_start_nanos = 13; + * @return The allStartNanos. + */ + long getAllStartNanos(); + + /** + * int64 op_start_rel_nanos = 14; + * @return The opStartRelNanos. + */ + long getOpStartRelNanos(); + + /** + * int64 op_end_rel_nanos = 15; + * @return The opEndRelNanos. + */ + long getOpEndRelNanos(); + + /** + * int64 all_end_rel_nanos = 16; + * @return The allEndRelNanos. + */ + long getAllEndRelNanos(); + + /** + * int64 scheduled_nanos = 17; + * @return The scheduledNanos. + */ + long getScheduledNanos(); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NodeOutput.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NodeOutput.java new file mode 100644 index 00000000000..b5899cd827f --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NodeOutput.java @@ -0,0 +1,655 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/step_stats.proto + +package org.tensorflow.proto; + +/** + *
+ * Output sizes recorded for a single execution of a graph node.
+ * 
+ * + * Protobuf type {@code tensorflow.NodeOutput} + */ +public final class NodeOutput extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.NodeOutput) + NodeOutputOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodeOutput.newBuilder() to construct. + private NodeOutput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeOutput() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodeOutput(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_NodeOutput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_NodeOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.NodeOutput.class, org.tensorflow.proto.NodeOutput.Builder.class); + } + + public static final int SLOT_FIELD_NUMBER = 1; + private int slot_; + /** + * int32 slot = 1; + * @return The slot. + */ + @java.lang.Override + public int getSlot() { + return slot_; + } + + public static final int TENSOR_DESCRIPTION_FIELD_NUMBER = 3; + private org.tensorflow.proto.TensorDescription tensorDescription_; + /** + * .tensorflow.TensorDescription tensor_description = 3; + * @return Whether the tensorDescription field is set. + */ + @java.lang.Override + public boolean hasTensorDescription() { + return tensorDescription_ != null; + } + /** + * .tensorflow.TensorDescription tensor_description = 3; + * @return The tensorDescription. + */ + @java.lang.Override + public org.tensorflow.proto.TensorDescription getTensorDescription() { + return tensorDescription_ == null ? org.tensorflow.proto.TensorDescription.getDefaultInstance() : tensorDescription_; + } + /** + * .tensorflow.TensorDescription tensor_description = 3; + */ + @java.lang.Override + public org.tensorflow.proto.TensorDescriptionOrBuilder getTensorDescriptionOrBuilder() { + return getTensorDescription(); + } + + 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 (slot_ != 0) { + output.writeInt32(1, slot_); + } + if (tensorDescription_ != null) { + output.writeMessage(3, getTensorDescription()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (slot_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, slot_); + } + if (tensorDescription_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTensorDescription()); + } + 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 org.tensorflow.proto.NodeOutput)) { + return super.equals(obj); + } + org.tensorflow.proto.NodeOutput other = (org.tensorflow.proto.NodeOutput) obj; + + if (getSlot() + != other.getSlot()) return false; + if (hasTensorDescription() != other.hasTensorDescription()) return false; + if (hasTensorDescription()) { + if (!getTensorDescription() + .equals(other.getTensorDescription())) 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) + SLOT_FIELD_NUMBER; + hash = (53 * hash) + getSlot(); + if (hasTensorDescription()) { + hash = (37 * hash) + TENSOR_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getTensorDescription().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.NodeOutput parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.NodeOutput parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.NodeOutput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.NodeOutput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.NodeOutput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.NodeOutput parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.NodeOutput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.NodeOutput 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 org.tensorflow.proto.NodeOutput parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.NodeOutput 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 org.tensorflow.proto.NodeOutput parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.NodeOutput 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(org.tensorflow.proto.NodeOutput 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; + } + /** + *
+   * Output sizes recorded for a single execution of a graph node.
+   * 
+ * + * Protobuf type {@code tensorflow.NodeOutput} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.NodeOutput) + org.tensorflow.proto.NodeOutputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_NodeOutput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_NodeOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.NodeOutput.class, org.tensorflow.proto.NodeOutput.Builder.class); + } + + // Construct using org.tensorflow.proto.NodeOutput.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + slot_ = 0; + + if (tensorDescriptionBuilder_ == null) { + tensorDescription_ = null; + } else { + tensorDescription_ = null; + tensorDescriptionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_NodeOutput_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.NodeOutput getDefaultInstanceForType() { + return org.tensorflow.proto.NodeOutput.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.NodeOutput build() { + org.tensorflow.proto.NodeOutput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.NodeOutput buildPartial() { + org.tensorflow.proto.NodeOutput result = new org.tensorflow.proto.NodeOutput(this); + result.slot_ = slot_; + if (tensorDescriptionBuilder_ == null) { + result.tensorDescription_ = tensorDescription_; + } else { + result.tensorDescription_ = tensorDescriptionBuilder_.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 org.tensorflow.proto.NodeOutput) { + return mergeFrom((org.tensorflow.proto.NodeOutput)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.NodeOutput other) { + if (other == org.tensorflow.proto.NodeOutput.getDefaultInstance()) return this; + if (other.getSlot() != 0) { + setSlot(other.getSlot()); + } + if (other.hasTensorDescription()) { + mergeTensorDescription(other.getTensorDescription()); + } + 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: { + slot_ = input.readInt32(); + + break; + } // case 8 + case 26: { + input.readMessage( + getTensorDescriptionFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + 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 slot_ ; + /** + * int32 slot = 1; + * @return The slot. + */ + @java.lang.Override + public int getSlot() { + return slot_; + } + /** + * int32 slot = 1; + * @param value The slot to set. + * @return This builder for chaining. + */ + public Builder setSlot(int value) { + + slot_ = value; + onChanged(); + return this; + } + /** + * int32 slot = 1; + * @return This builder for chaining. + */ + public Builder clearSlot() { + + slot_ = 0; + onChanged(); + return this; + } + + private org.tensorflow.proto.TensorDescription tensorDescription_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorDescription, org.tensorflow.proto.TensorDescription.Builder, org.tensorflow.proto.TensorDescriptionOrBuilder> tensorDescriptionBuilder_; + /** + * .tensorflow.TensorDescription tensor_description = 3; + * @return Whether the tensorDescription field is set. + */ + public boolean hasTensorDescription() { + return tensorDescriptionBuilder_ != null || tensorDescription_ != null; + } + /** + * .tensorflow.TensorDescription tensor_description = 3; + * @return The tensorDescription. + */ + public org.tensorflow.proto.TensorDescription getTensorDescription() { + if (tensorDescriptionBuilder_ == null) { + return tensorDescription_ == null ? org.tensorflow.proto.TensorDescription.getDefaultInstance() : tensorDescription_; + } else { + return tensorDescriptionBuilder_.getMessage(); + } + } + /** + * .tensorflow.TensorDescription tensor_description = 3; + */ + public Builder setTensorDescription(org.tensorflow.proto.TensorDescription value) { + if (tensorDescriptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tensorDescription_ = value; + onChanged(); + } else { + tensorDescriptionBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.TensorDescription tensor_description = 3; + */ + public Builder setTensorDescription( + org.tensorflow.proto.TensorDescription.Builder builderForValue) { + if (tensorDescriptionBuilder_ == null) { + tensorDescription_ = builderForValue.build(); + onChanged(); + } else { + tensorDescriptionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.TensorDescription tensor_description = 3; + */ + public Builder mergeTensorDescription(org.tensorflow.proto.TensorDescription value) { + if (tensorDescriptionBuilder_ == null) { + if (tensorDescription_ != null) { + tensorDescription_ = + org.tensorflow.proto.TensorDescription.newBuilder(tensorDescription_).mergeFrom(value).buildPartial(); + } else { + tensorDescription_ = value; + } + onChanged(); + } else { + tensorDescriptionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.TensorDescription tensor_description = 3; + */ + public Builder clearTensorDescription() { + if (tensorDescriptionBuilder_ == null) { + tensorDescription_ = null; + onChanged(); + } else { + tensorDescription_ = null; + tensorDescriptionBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.TensorDescription tensor_description = 3; + */ + public org.tensorflow.proto.TensorDescription.Builder getTensorDescriptionBuilder() { + + onChanged(); + return getTensorDescriptionFieldBuilder().getBuilder(); + } + /** + * .tensorflow.TensorDescription tensor_description = 3; + */ + public org.tensorflow.proto.TensorDescriptionOrBuilder getTensorDescriptionOrBuilder() { + if (tensorDescriptionBuilder_ != null) { + return tensorDescriptionBuilder_.getMessageOrBuilder(); + } else { + return tensorDescription_ == null ? + org.tensorflow.proto.TensorDescription.getDefaultInstance() : tensorDescription_; + } + } + /** + * .tensorflow.TensorDescription tensor_description = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorDescription, org.tensorflow.proto.TensorDescription.Builder, org.tensorflow.proto.TensorDescriptionOrBuilder> + getTensorDescriptionFieldBuilder() { + if (tensorDescriptionBuilder_ == null) { + tensorDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorDescription, org.tensorflow.proto.TensorDescription.Builder, org.tensorflow.proto.TensorDescriptionOrBuilder>( + getTensorDescription(), + getParentForChildren(), + isClean()); + tensorDescription_ = null; + } + return tensorDescriptionBuilder_; + } + @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:tensorflow.NodeOutput) + } + + // @@protoc_insertion_point(class_scope:tensorflow.NodeOutput) + private static final org.tensorflow.proto.NodeOutput DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.NodeOutput(); + } + + public static org.tensorflow.proto.NodeOutput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeOutput 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 org.tensorflow.proto.NodeOutput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NodeOutputOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NodeOutputOrBuilder.java new file mode 100644 index 00000000000..cf84ea50f58 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NodeOutputOrBuilder.java @@ -0,0 +1,30 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/step_stats.proto + +package org.tensorflow.proto; + +public interface NodeOutputOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.NodeOutput) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 slot = 1; + * @return The slot. + */ + int getSlot(); + + /** + * .tensorflow.TensorDescription tensor_description = 3; + * @return Whether the tensorDescription field is set. + */ + boolean hasTensorDescription(); + /** + * .tensorflow.TensorDescription tensor_description = 3; + * @return The tensorDescription. + */ + org.tensorflow.proto.TensorDescription getTensorDescription(); + /** + * .tensorflow.TensorDescription tensor_description = 3; + */ + org.tensorflow.proto.TensorDescriptionOrBuilder getTensorDescriptionOrBuilder(); +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NodeProto.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NodeProto.java similarity index 87% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NodeProto.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NodeProto.java index 13a26ac8aa0..9799c5cc513 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/NodeProto.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/NodeProto.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/node_def.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public final class NodeProto { private NodeProto() {} @@ -51,16 +51,16 @@ public static void registerAllExtensions( "key\030\001 \001(\t\022$\n\005value\030\002 \001(\0132\025.tensorflow.At" + "trValue:\0028\001\032Q\n\025ExperimentalDebugInfo\022\033\n\023" + "original_node_names\030\001 \003(\t\022\033\n\023original_fu" + - "nc_names\030\002 \003(\tB\201\001\n\036org.tensorflow.proto." + - "frameworkB\tNodeProtoP\001ZOgithub.com/tenso" + - "rflow/tensorflow/tensorflow/go/core/fram" + - "ework/node_def_go_proto\370\001\001b\006proto3" + "nc_names\030\002 \003(\tBw\n\024org.tensorflow.protoB\t" + + "NodeProtoP\001ZOgithub.com/tensorflow/tenso" + + "rflow/tensorflow/go/core/framework/node_" + + "def_go_proto\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.framework.AttrValueProtos.getDescriptor(), - org.tensorflow.proto.framework.FullTypeProtos.getDescriptor(), + org.tensorflow.proto.AttrValueProtos.getDescriptor(), + org.tensorflow.proto.FullTypeProtos.getDescriptor(), }); internal_static_tensorflow_NodeDef_descriptor = getDescriptor().getMessageTypes().get(0); @@ -80,8 +80,8 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_NodeDef_ExperimentalDebugInfo_descriptor, new java.lang.String[] { "OriginalNodeNames", "OriginalFuncNames", }); - org.tensorflow.proto.framework.AttrValueProtos.getDescriptor(); - org.tensorflow.proto.framework.FullTypeProtos.getDescriptor(); + org.tensorflow.proto.AttrValueProtos.getDescriptor(); + org.tensorflow.proto.FullTypeProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpDef.java new file mode 100644 index 00000000000..6e4dbde8067 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpDef.java @@ -0,0 +1,7398 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/op_def.proto + +package org.tensorflow.proto; + +/** + *
+ * Defines an operation. A NodeDef in a GraphDef specifies an Op by
+ * using the "op" field which should match the name of a OpDef.
+ * LINT.IfChange
+ * 
+ * + * Protobuf type {@code tensorflow.OpDef} + */ +public final class OpDef extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.OpDef) + OpDefOrBuilder { +private static final long serialVersionUID = 0L; + // Use OpDef.newBuilder() to construct. + private OpDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OpDef() { + name_ = ""; + inputArg_ = java.util.Collections.emptyList(); + outputArg_ = java.util.Collections.emptyList(); + controlOutput_ = com.google.protobuf.LazyStringArrayList.EMPTY; + attr_ = java.util.Collections.emptyList(); + summary_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OpDef(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpDef.class, org.tensorflow.proto.OpDef.Builder.class); + } + + public interface ArgDefOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.OpDef.ArgDef) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
+     * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Human readable description.
+     * 
+ * + * string description = 2; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+     * Human readable description.
+     * 
+ * + * string description = 2; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+     * Describes the type of one or more tensors that are accepted/produced
+     * by this input/output arg.  The only legal combinations are:
+     * * For a single tensor: either the "type" field is set or the
+     *   "type_attr" field is set to the name of an attr with type "type".
+     * * For a sequence of tensors with the same type: the "number_attr"
+     *   field will be set to the name of an attr with type "int", and
+     *   either the "type" or "type_attr" field will be set as for
+     *   single tensors.
+     * * For a sequence of tensors, the "type_list_attr" field will be set
+     *   to the name of an attr with type "list(type)".
+     * 
+ * + * .tensorflow.DataType type = 3; + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + *
+     * Describes the type of one or more tensors that are accepted/produced
+     * by this input/output arg.  The only legal combinations are:
+     * * For a single tensor: either the "type" field is set or the
+     *   "type_attr" field is set to the name of an attr with type "type".
+     * * For a sequence of tensors with the same type: the "number_attr"
+     *   field will be set to the name of an attr with type "int", and
+     *   either the "type" or "type_attr" field will be set as for
+     *   single tensors.
+     * * For a sequence of tensors, the "type_list_attr" field will be set
+     *   to the name of an attr with type "list(type)".
+     * 
+ * + * .tensorflow.DataType type = 3; + * @return The type. + */ + org.tensorflow.proto.DataType getType(); + + /** + *
+     * if specified, attr must have type "type"
+     * 
+ * + * string type_attr = 4; + * @return The typeAttr. + */ + java.lang.String getTypeAttr(); + /** + *
+     * if specified, attr must have type "type"
+     * 
+ * + * string type_attr = 4; + * @return The bytes for typeAttr. + */ + com.google.protobuf.ByteString + getTypeAttrBytes(); + + /** + *
+     * if specified, attr must have type "int"
+     * 
+ * + * string number_attr = 5; + * @return The numberAttr. + */ + java.lang.String getNumberAttr(); + /** + *
+     * if specified, attr must have type "int"
+     * 
+ * + * string number_attr = 5; + * @return The bytes for numberAttr. + */ + com.google.protobuf.ByteString + getNumberAttrBytes(); + + /** + *
+     * If specified, attr must have type "list(type)", and none of
+     * type, type_attr, and number_attr may be specified.
+     * 
+ * + * string type_list_attr = 6; + * @return The typeListAttr. + */ + java.lang.String getTypeListAttr(); + /** + *
+     * If specified, attr must have type "list(type)", and none of
+     * type, type_attr, and number_attr may be specified.
+     * 
+ * + * string type_list_attr = 6; + * @return The bytes for typeListAttr. + */ + com.google.protobuf.ByteString + getTypeListAttrBytes(); + + /** + *
+     * The handle data for resource inputs.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + java.util.List + getHandleDataList(); + /** + *
+     * The handle data for resource inputs.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + org.tensorflow.proto.ResourceHandleProto.DtypeAndShape getHandleData(int index); + /** + *
+     * The handle data for resource inputs.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + int getHandleDataCount(); + /** + *
+     * The handle data for resource inputs.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + java.util.List + getHandleDataOrBuilderList(); + /** + *
+     * The handle data for resource inputs.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + org.tensorflow.proto.ResourceHandleProto.DtypeAndShapeOrBuilder getHandleDataOrBuilder( + int index); + + /** + *
+     * For inputs: if true, the inputs are required to be refs.
+     *   By default, inputs can be either refs or non-refs.
+     * For outputs: if true, outputs are refs, otherwise they are not.
+     * 
+ * + * bool is_ref = 16; + * @return The isRef. + */ + boolean getIsRef(); + + /** + *
+     * Experimental. Full type declaration for this argument.
+     * The full type specification combines type, type_attr, type_list_attr,
+     * etc. into a unified representation.
+     * This declaration may contain non-concrete types (for example,
+     * Tensor<TypeVar<'T'>> is a valid type declaration.
+     * Note: this is a transient field. The long-term aim is to represent the
+     * entire OpDef as a single type: a callable. In that context, this field is
+     * just the type of a single argument.
+     * 
+ * + * .tensorflow.FullTypeDef experimental_full_type = 17; + * @return Whether the experimentalFullType field is set. + */ + boolean hasExperimentalFullType(); + /** + *
+     * Experimental. Full type declaration for this argument.
+     * The full type specification combines type, type_attr, type_list_attr,
+     * etc. into a unified representation.
+     * This declaration may contain non-concrete types (for example,
+     * Tensor<TypeVar<'T'>> is a valid type declaration.
+     * Note: this is a transient field. The long-term aim is to represent the
+     * entire OpDef as a single type: a callable. In that context, this field is
+     * just the type of a single argument.
+     * 
+ * + * .tensorflow.FullTypeDef experimental_full_type = 17; + * @return The experimentalFullType. + */ + org.tensorflow.proto.FullTypeDef getExperimentalFullType(); + /** + *
+     * Experimental. Full type declaration for this argument.
+     * The full type specification combines type, type_attr, type_list_attr,
+     * etc. into a unified representation.
+     * This declaration may contain non-concrete types (for example,
+     * Tensor<TypeVar<'T'>> is a valid type declaration.
+     * Note: this is a transient field. The long-term aim is to represent the
+     * entire OpDef as a single type: a callable. In that context, this field is
+     * just the type of a single argument.
+     * 
+ * + * .tensorflow.FullTypeDef experimental_full_type = 17; + */ + org.tensorflow.proto.FullTypeDefOrBuilder getExperimentalFullTypeOrBuilder(); + } + /** + *
+   * For describing inputs and outputs.
+   * 
+ * + * Protobuf type {@code tensorflow.OpDef.ArgDef} + */ + public static final class ArgDef extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.OpDef.ArgDef) + ArgDefOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArgDef.newBuilder() to construct. + private ArgDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ArgDef() { + name_ = ""; + description_ = ""; + type_ = 0; + typeAttr_ = ""; + numberAttr_ = ""; + typeListAttr_ = ""; + handleData_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ArgDef(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpDef_ArgDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpDef_ArgDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpDef.ArgDef.class, org.tensorflow.proto.OpDef.ArgDef.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
+     * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+     * Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + *
+     * Human readable description.
+     * 
+ * + * string description = 2; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+     * Human readable description.
+     * 
+ * + * string description = 2; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 3; + private int type_; + /** + *
+     * Describes the type of one or more tensors that are accepted/produced
+     * by this input/output arg.  The only legal combinations are:
+     * * For a single tensor: either the "type" field is set or the
+     *   "type_attr" field is set to the name of an attr with type "type".
+     * * For a sequence of tensors with the same type: the "number_attr"
+     *   field will be set to the name of an attr with type "int", and
+     *   either the "type" or "type_attr" field will be set as for
+     *   single tensors.
+     * * For a sequence of tensors, the "type_list_attr" field will be set
+     *   to the name of an attr with type "list(type)".
+     * 
+ * + * .tensorflow.DataType type = 3; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+     * Describes the type of one or more tensors that are accepted/produced
+     * by this input/output arg.  The only legal combinations are:
+     * * For a single tensor: either the "type" field is set or the
+     *   "type_attr" field is set to the name of an attr with type "type".
+     * * For a sequence of tensors with the same type: the "number_attr"
+     *   field will be set to the name of an attr with type "int", and
+     *   either the "type" or "type_attr" field will be set as for
+     *   single tensors.
+     * * For a sequence of tensors, the "type_list_attr" field will be set
+     *   to the name of an attr with type "list(type)".
+     * 
+ * + * .tensorflow.DataType type = 3; + * @return The type. + */ + @java.lang.Override public org.tensorflow.proto.DataType getType() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(type_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + + public static final int TYPE_ATTR_FIELD_NUMBER = 4; + private volatile java.lang.Object typeAttr_; + /** + *
+     * if specified, attr must have type "type"
+     * 
+ * + * string type_attr = 4; + * @return The typeAttr. + */ + @java.lang.Override + public java.lang.String getTypeAttr() { + java.lang.Object ref = typeAttr_; + 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(); + typeAttr_ = s; + return s; + } + } + /** + *
+     * if specified, attr must have type "type"
+     * 
+ * + * string type_attr = 4; + * @return The bytes for typeAttr. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTypeAttrBytes() { + java.lang.Object ref = typeAttr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + typeAttr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NUMBER_ATTR_FIELD_NUMBER = 5; + private volatile java.lang.Object numberAttr_; + /** + *
+     * if specified, attr must have type "int"
+     * 
+ * + * string number_attr = 5; + * @return The numberAttr. + */ + @java.lang.Override + public java.lang.String getNumberAttr() { + java.lang.Object ref = numberAttr_; + 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(); + numberAttr_ = s; + return s; + } + } + /** + *
+     * if specified, attr must have type "int"
+     * 
+ * + * string number_attr = 5; + * @return The bytes for numberAttr. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNumberAttrBytes() { + java.lang.Object ref = numberAttr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + numberAttr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_LIST_ATTR_FIELD_NUMBER = 6; + private volatile java.lang.Object typeListAttr_; + /** + *
+     * If specified, attr must have type "list(type)", and none of
+     * type, type_attr, and number_attr may be specified.
+     * 
+ * + * string type_list_attr = 6; + * @return The typeListAttr. + */ + @java.lang.Override + public java.lang.String getTypeListAttr() { + java.lang.Object ref = typeListAttr_; + 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(); + typeListAttr_ = s; + return s; + } + } + /** + *
+     * If specified, attr must have type "list(type)", and none of
+     * type, type_attr, and number_attr may be specified.
+     * 
+ * + * string type_list_attr = 6; + * @return The bytes for typeListAttr. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTypeListAttrBytes() { + java.lang.Object ref = typeListAttr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + typeListAttr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HANDLE_DATA_FIELD_NUMBER = 7; + private java.util.List handleData_; + /** + *
+     * The handle data for resource inputs.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + @java.lang.Override + public java.util.List getHandleDataList() { + return handleData_; + } + /** + *
+     * The handle data for resource inputs.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + @java.lang.Override + public java.util.List + getHandleDataOrBuilderList() { + return handleData_; + } + /** + *
+     * The handle data for resource inputs.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + @java.lang.Override + public int getHandleDataCount() { + return handleData_.size(); + } + /** + *
+     * The handle data for resource inputs.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + @java.lang.Override + public org.tensorflow.proto.ResourceHandleProto.DtypeAndShape getHandleData(int index) { + return handleData_.get(index); + } + /** + *
+     * The handle data for resource inputs.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + @java.lang.Override + public org.tensorflow.proto.ResourceHandleProto.DtypeAndShapeOrBuilder getHandleDataOrBuilder( + int index) { + return handleData_.get(index); + } + + public static final int IS_REF_FIELD_NUMBER = 16; + private boolean isRef_; + /** + *
+     * For inputs: if true, the inputs are required to be refs.
+     *   By default, inputs can be either refs or non-refs.
+     * For outputs: if true, outputs are refs, otherwise they are not.
+     * 
+ * + * bool is_ref = 16; + * @return The isRef. + */ + @java.lang.Override + public boolean getIsRef() { + return isRef_; + } + + public static final int EXPERIMENTAL_FULL_TYPE_FIELD_NUMBER = 17; + private org.tensorflow.proto.FullTypeDef experimentalFullType_; + /** + *
+     * Experimental. Full type declaration for this argument.
+     * The full type specification combines type, type_attr, type_list_attr,
+     * etc. into a unified representation.
+     * This declaration may contain non-concrete types (for example,
+     * Tensor<TypeVar<'T'>> is a valid type declaration.
+     * Note: this is a transient field. The long-term aim is to represent the
+     * entire OpDef as a single type: a callable. In that context, this field is
+     * just the type of a single argument.
+     * 
+ * + * .tensorflow.FullTypeDef experimental_full_type = 17; + * @return Whether the experimentalFullType field is set. + */ + @java.lang.Override + public boolean hasExperimentalFullType() { + return experimentalFullType_ != null; + } + /** + *
+     * Experimental. Full type declaration for this argument.
+     * The full type specification combines type, type_attr, type_list_attr,
+     * etc. into a unified representation.
+     * This declaration may contain non-concrete types (for example,
+     * Tensor<TypeVar<'T'>> is a valid type declaration.
+     * Note: this is a transient field. The long-term aim is to represent the
+     * entire OpDef as a single type: a callable. In that context, this field is
+     * just the type of a single argument.
+     * 
+ * + * .tensorflow.FullTypeDef experimental_full_type = 17; + * @return The experimentalFullType. + */ + @java.lang.Override + public org.tensorflow.proto.FullTypeDef getExperimentalFullType() { + return experimentalFullType_ == null ? org.tensorflow.proto.FullTypeDef.getDefaultInstance() : experimentalFullType_; + } + /** + *
+     * Experimental. Full type declaration for this argument.
+     * The full type specification combines type, type_attr, type_list_attr,
+     * etc. into a unified representation.
+     * This declaration may contain non-concrete types (for example,
+     * Tensor<TypeVar<'T'>> is a valid type declaration.
+     * Note: this is a transient field. The long-term aim is to represent the
+     * entire OpDef as a single type: a callable. In that context, this field is
+     * just the type of a single argument.
+     * 
+ * + * .tensorflow.FullTypeDef experimental_full_type = 17; + */ + @java.lang.Override + public org.tensorflow.proto.FullTypeDefOrBuilder getExperimentalFullTypeOrBuilder() { + return getExperimentalFullType(); + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (type_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + output.writeEnum(3, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeAttr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, typeAttr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(numberAttr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, numberAttr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeListAttr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, typeListAttr_); + } + for (int i = 0; i < handleData_.size(); i++) { + output.writeMessage(7, handleData_.get(i)); + } + if (isRef_ != false) { + output.writeBool(16, isRef_); + } + if (experimentalFullType_ != null) { + output.writeMessage(17, getExperimentalFullType()); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (type_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeAttr_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, typeAttr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(numberAttr_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, numberAttr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeListAttr_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, typeListAttr_); + } + for (int i = 0; i < handleData_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, handleData_.get(i)); + } + if (isRef_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(16, isRef_); + } + if (experimentalFullType_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getExperimentalFullType()); + } + 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 org.tensorflow.proto.OpDef.ArgDef)) { + return super.equals(obj); + } + org.tensorflow.proto.OpDef.ArgDef other = (org.tensorflow.proto.OpDef.ArgDef) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (type_ != other.type_) return false; + if (!getTypeAttr() + .equals(other.getTypeAttr())) return false; + if (!getNumberAttr() + .equals(other.getNumberAttr())) return false; + if (!getTypeListAttr() + .equals(other.getTypeListAttr())) return false; + if (!getHandleDataList() + .equals(other.getHandleDataList())) return false; + if (getIsRef() + != other.getIsRef()) return false; + if (hasExperimentalFullType() != other.hasExperimentalFullType()) return false; + if (hasExperimentalFullType()) { + if (!getExperimentalFullType() + .equals(other.getExperimentalFullType())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + TYPE_ATTR_FIELD_NUMBER; + hash = (53 * hash) + getTypeAttr().hashCode(); + hash = (37 * hash) + NUMBER_ATTR_FIELD_NUMBER; + hash = (53 * hash) + getNumberAttr().hashCode(); + hash = (37 * hash) + TYPE_LIST_ATTR_FIELD_NUMBER; + hash = (53 * hash) + getTypeListAttr().hashCode(); + if (getHandleDataCount() > 0) { + hash = (37 * hash) + HANDLE_DATA_FIELD_NUMBER; + hash = (53 * hash) + getHandleDataList().hashCode(); + } + hash = (37 * hash) + IS_REF_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsRef()); + if (hasExperimentalFullType()) { + hash = (37 * hash) + EXPERIMENTAL_FULL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getExperimentalFullType().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.OpDef.ArgDef parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpDef.ArgDef parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpDef.ArgDef parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpDef.ArgDef parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpDef.ArgDef parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpDef.ArgDef parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpDef.ArgDef parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpDef.ArgDef 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 org.tensorflow.proto.OpDef.ArgDef parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpDef.ArgDef 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 org.tensorflow.proto.OpDef.ArgDef parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpDef.ArgDef 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(org.tensorflow.proto.OpDef.ArgDef 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; + } + /** + *
+     * For describing inputs and outputs.
+     * 
+ * + * Protobuf type {@code tensorflow.OpDef.ArgDef} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.OpDef.ArgDef) + org.tensorflow.proto.OpDef.ArgDefOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpDef_ArgDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpDef_ArgDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpDef.ArgDef.class, org.tensorflow.proto.OpDef.ArgDef.Builder.class); + } + + // Construct using org.tensorflow.proto.OpDef.ArgDef.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + description_ = ""; + + type_ = 0; + + typeAttr_ = ""; + + numberAttr_ = ""; + + typeListAttr_ = ""; + + if (handleDataBuilder_ == null) { + handleData_ = java.util.Collections.emptyList(); + } else { + handleData_ = null; + handleDataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + isRef_ = false; + + if (experimentalFullTypeBuilder_ == null) { + experimentalFullType_ = null; + } else { + experimentalFullType_ = null; + experimentalFullTypeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpDef_ArgDef_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.OpDef.ArgDef getDefaultInstanceForType() { + return org.tensorflow.proto.OpDef.ArgDef.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.OpDef.ArgDef build() { + org.tensorflow.proto.OpDef.ArgDef result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.OpDef.ArgDef buildPartial() { + org.tensorflow.proto.OpDef.ArgDef result = new org.tensorflow.proto.OpDef.ArgDef(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.description_ = description_; + result.type_ = type_; + result.typeAttr_ = typeAttr_; + result.numberAttr_ = numberAttr_; + result.typeListAttr_ = typeListAttr_; + if (handleDataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + handleData_ = java.util.Collections.unmodifiableList(handleData_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.handleData_ = handleData_; + } else { + result.handleData_ = handleDataBuilder_.build(); + } + result.isRef_ = isRef_; + if (experimentalFullTypeBuilder_ == null) { + result.experimentalFullType_ = experimentalFullType_; + } else { + result.experimentalFullType_ = experimentalFullTypeBuilder_.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 org.tensorflow.proto.OpDef.ArgDef) { + return mergeFrom((org.tensorflow.proto.OpDef.ArgDef)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.OpDef.ArgDef other) { + if (other == org.tensorflow.proto.OpDef.ArgDef.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getTypeAttr().isEmpty()) { + typeAttr_ = other.typeAttr_; + onChanged(); + } + if (!other.getNumberAttr().isEmpty()) { + numberAttr_ = other.numberAttr_; + onChanged(); + } + if (!other.getTypeListAttr().isEmpty()) { + typeListAttr_ = other.typeListAttr_; + onChanged(); + } + if (handleDataBuilder_ == null) { + if (!other.handleData_.isEmpty()) { + if (handleData_.isEmpty()) { + handleData_ = other.handleData_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureHandleDataIsMutable(); + handleData_.addAll(other.handleData_); + } + onChanged(); + } + } else { + if (!other.handleData_.isEmpty()) { + if (handleDataBuilder_.isEmpty()) { + handleDataBuilder_.dispose(); + handleDataBuilder_ = null; + handleData_ = other.handleData_; + bitField0_ = (bitField0_ & ~0x00000001); + handleDataBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHandleDataFieldBuilder() : null; + } else { + handleDataBuilder_.addAllMessages(other.handleData_); + } + } + } + if (other.getIsRef() != false) { + setIsRef(other.getIsRef()); + } + if (other.hasExperimentalFullType()) { + mergeExperimentalFullType(other.getExperimentalFullType()); + } + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + type_ = input.readEnum(); + + break; + } // case 24 + case 34: { + typeAttr_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + numberAttr_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + typeListAttr_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: { + org.tensorflow.proto.ResourceHandleProto.DtypeAndShape m = + input.readMessage( + org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.parser(), + extensionRegistry); + if (handleDataBuilder_ == null) { + ensureHandleDataIsMutable(); + handleData_.add(m); + } else { + handleDataBuilder_.addMessage(m); + } + break; + } // case 58 + case 128: { + isRef_ = input.readBool(); + + break; + } // case 128 + case 138: { + input.readMessage( + getExperimentalFullTypeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 138 + 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 name_ = ""; + /** + *
+       * Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
+       * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
+       * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
+       * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
+       * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Name for the input/output.  Should match the regexp "[a-z][a-z0-9_]*".
+       * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+       * Human readable description.
+       * 
+ * + * string description = 2; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Human readable description.
+       * 
+ * + * string description = 2; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Human readable description.
+       * 
+ * + * string description = 2; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+       * Human readable description.
+       * 
+ * + * string description = 2; + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+       * Human readable description.
+       * 
+ * + * string description = 2; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + *
+       * Describes the type of one or more tensors that are accepted/produced
+       * by this input/output arg.  The only legal combinations are:
+       * * For a single tensor: either the "type" field is set or the
+       *   "type_attr" field is set to the name of an attr with type "type".
+       * * For a sequence of tensors with the same type: the "number_attr"
+       *   field will be set to the name of an attr with type "int", and
+       *   either the "type" or "type_attr" field will be set as for
+       *   single tensors.
+       * * For a sequence of tensors, the "type_list_attr" field will be set
+       *   to the name of an attr with type "list(type)".
+       * 
+ * + * .tensorflow.DataType type = 3; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+       * Describes the type of one or more tensors that are accepted/produced
+       * by this input/output arg.  The only legal combinations are:
+       * * For a single tensor: either the "type" field is set or the
+       *   "type_attr" field is set to the name of an attr with type "type".
+       * * For a sequence of tensors with the same type: the "number_attr"
+       *   field will be set to the name of an attr with type "int", and
+       *   either the "type" or "type_attr" field will be set as for
+       *   single tensors.
+       * * For a sequence of tensors, the "type_list_attr" field will be set
+       *   to the name of an attr with type "list(type)".
+       * 
+ * + * .tensorflow.DataType type = 3; + * @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; + onChanged(); + return this; + } + /** + *
+       * Describes the type of one or more tensors that are accepted/produced
+       * by this input/output arg.  The only legal combinations are:
+       * * For a single tensor: either the "type" field is set or the
+       *   "type_attr" field is set to the name of an attr with type "type".
+       * * For a sequence of tensors with the same type: the "number_attr"
+       *   field will be set to the name of an attr with type "int", and
+       *   either the "type" or "type_attr" field will be set as for
+       *   single tensors.
+       * * For a sequence of tensors, the "type_list_attr" field will be set
+       *   to the name of an attr with type "list(type)".
+       * 
+ * + * .tensorflow.DataType type = 3; + * @return The type. + */ + @java.lang.Override + public org.tensorflow.proto.DataType getType() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(type_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + /** + *
+       * Describes the type of one or more tensors that are accepted/produced
+       * by this input/output arg.  The only legal combinations are:
+       * * For a single tensor: either the "type" field is set or the
+       *   "type_attr" field is set to the name of an attr with type "type".
+       * * For a sequence of tensors with the same type: the "number_attr"
+       *   field will be set to the name of an attr with type "int", and
+       *   either the "type" or "type_attr" field will be set as for
+       *   single tensors.
+       * * For a sequence of tensors, the "type_list_attr" field will be set
+       *   to the name of an attr with type "list(type)".
+       * 
+ * + * .tensorflow.DataType type = 3; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(org.tensorflow.proto.DataType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Describes the type of one or more tensors that are accepted/produced
+       * by this input/output arg.  The only legal combinations are:
+       * * For a single tensor: either the "type" field is set or the
+       *   "type_attr" field is set to the name of an attr with type "type".
+       * * For a sequence of tensors with the same type: the "number_attr"
+       *   field will be set to the name of an attr with type "int", and
+       *   either the "type" or "type_attr" field will be set as for
+       *   single tensors.
+       * * For a sequence of tensors, the "type_list_attr" field will be set
+       *   to the name of an attr with type "list(type)".
+       * 
+ * + * .tensorflow.DataType type = 3; + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object typeAttr_ = ""; + /** + *
+       * if specified, attr must have type "type"
+       * 
+ * + * string type_attr = 4; + * @return The typeAttr. + */ + public java.lang.String getTypeAttr() { + java.lang.Object ref = typeAttr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + typeAttr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * if specified, attr must have type "type"
+       * 
+ * + * string type_attr = 4; + * @return The bytes for typeAttr. + */ + public com.google.protobuf.ByteString + getTypeAttrBytes() { + java.lang.Object ref = typeAttr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + typeAttr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * if specified, attr must have type "type"
+       * 
+ * + * string type_attr = 4; + * @param value The typeAttr to set. + * @return This builder for chaining. + */ + public Builder setTypeAttr( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + typeAttr_ = value; + onChanged(); + return this; + } + /** + *
+       * if specified, attr must have type "type"
+       * 
+ * + * string type_attr = 4; + * @return This builder for chaining. + */ + public Builder clearTypeAttr() { + + typeAttr_ = getDefaultInstance().getTypeAttr(); + onChanged(); + return this; + } + /** + *
+       * if specified, attr must have type "type"
+       * 
+ * + * string type_attr = 4; + * @param value The bytes for typeAttr to set. + * @return This builder for chaining. + */ + public Builder setTypeAttrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + typeAttr_ = value; + onChanged(); + return this; + } + + private java.lang.Object numberAttr_ = ""; + /** + *
+       * if specified, attr must have type "int"
+       * 
+ * + * string number_attr = 5; + * @return The numberAttr. + */ + public java.lang.String getNumberAttr() { + java.lang.Object ref = numberAttr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + numberAttr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * if specified, attr must have type "int"
+       * 
+ * + * string number_attr = 5; + * @return The bytes for numberAttr. + */ + public com.google.protobuf.ByteString + getNumberAttrBytes() { + java.lang.Object ref = numberAttr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + numberAttr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * if specified, attr must have type "int"
+       * 
+ * + * string number_attr = 5; + * @param value The numberAttr to set. + * @return This builder for chaining. + */ + public Builder setNumberAttr( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + numberAttr_ = value; + onChanged(); + return this; + } + /** + *
+       * if specified, attr must have type "int"
+       * 
+ * + * string number_attr = 5; + * @return This builder for chaining. + */ + public Builder clearNumberAttr() { + + numberAttr_ = getDefaultInstance().getNumberAttr(); + onChanged(); + return this; + } + /** + *
+       * if specified, attr must have type "int"
+       * 
+ * + * string number_attr = 5; + * @param value The bytes for numberAttr to set. + * @return This builder for chaining. + */ + public Builder setNumberAttrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + numberAttr_ = value; + onChanged(); + return this; + } + + private java.lang.Object typeListAttr_ = ""; + /** + *
+       * If specified, attr must have type "list(type)", and none of
+       * type, type_attr, and number_attr may be specified.
+       * 
+ * + * string type_list_attr = 6; + * @return The typeListAttr. + */ + public java.lang.String getTypeListAttr() { + java.lang.Object ref = typeListAttr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + typeListAttr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * If specified, attr must have type "list(type)", and none of
+       * type, type_attr, and number_attr may be specified.
+       * 
+ * + * string type_list_attr = 6; + * @return The bytes for typeListAttr. + */ + public com.google.protobuf.ByteString + getTypeListAttrBytes() { + java.lang.Object ref = typeListAttr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + typeListAttr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * If specified, attr must have type "list(type)", and none of
+       * type, type_attr, and number_attr may be specified.
+       * 
+ * + * string type_list_attr = 6; + * @param value The typeListAttr to set. + * @return This builder for chaining. + */ + public Builder setTypeListAttr( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + typeListAttr_ = value; + onChanged(); + return this; + } + /** + *
+       * If specified, attr must have type "list(type)", and none of
+       * type, type_attr, and number_attr may be specified.
+       * 
+ * + * string type_list_attr = 6; + * @return This builder for chaining. + */ + public Builder clearTypeListAttr() { + + typeListAttr_ = getDefaultInstance().getTypeListAttr(); + onChanged(); + return this; + } + /** + *
+       * If specified, attr must have type "list(type)", and none of
+       * type, type_attr, and number_attr may be specified.
+       * 
+ * + * string type_list_attr = 6; + * @param value The bytes for typeListAttr to set. + * @return This builder for chaining. + */ + public Builder setTypeListAttrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + typeListAttr_ = value; + onChanged(); + return this; + } + + private java.util.List handleData_ = + java.util.Collections.emptyList(); + private void ensureHandleDataIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + handleData_ = new java.util.ArrayList(handleData_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ResourceHandleProto.DtypeAndShape, org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.Builder, org.tensorflow.proto.ResourceHandleProto.DtypeAndShapeOrBuilder> handleDataBuilder_; + + /** + *
+       * The handle data for resource inputs.
+       * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + public java.util.List getHandleDataList() { + if (handleDataBuilder_ == null) { + return java.util.Collections.unmodifiableList(handleData_); + } else { + return handleDataBuilder_.getMessageList(); + } + } + /** + *
+       * The handle data for resource inputs.
+       * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + public int getHandleDataCount() { + if (handleDataBuilder_ == null) { + return handleData_.size(); + } else { + return handleDataBuilder_.getCount(); + } + } + /** + *
+       * The handle data for resource inputs.
+       * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + public org.tensorflow.proto.ResourceHandleProto.DtypeAndShape getHandleData(int index) { + if (handleDataBuilder_ == null) { + return handleData_.get(index); + } else { + return handleDataBuilder_.getMessage(index); + } + } + /** + *
+       * The handle data for resource inputs.
+       * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + public Builder setHandleData( + int index, org.tensorflow.proto.ResourceHandleProto.DtypeAndShape value) { + if (handleDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHandleDataIsMutable(); + handleData_.set(index, value); + onChanged(); + } else { + handleDataBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * The handle data for resource inputs.
+       * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + public Builder setHandleData( + int index, org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.Builder builderForValue) { + if (handleDataBuilder_ == null) { + ensureHandleDataIsMutable(); + handleData_.set(index, builderForValue.build()); + onChanged(); + } else { + handleDataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The handle data for resource inputs.
+       * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + public Builder addHandleData(org.tensorflow.proto.ResourceHandleProto.DtypeAndShape value) { + if (handleDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHandleDataIsMutable(); + handleData_.add(value); + onChanged(); + } else { + handleDataBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * The handle data for resource inputs.
+       * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + public Builder addHandleData( + int index, org.tensorflow.proto.ResourceHandleProto.DtypeAndShape value) { + if (handleDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHandleDataIsMutable(); + handleData_.add(index, value); + onChanged(); + } else { + handleDataBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * The handle data for resource inputs.
+       * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + public Builder addHandleData( + org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.Builder builderForValue) { + if (handleDataBuilder_ == null) { + ensureHandleDataIsMutable(); + handleData_.add(builderForValue.build()); + onChanged(); + } else { + handleDataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * The handle data for resource inputs.
+       * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + public Builder addHandleData( + int index, org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.Builder builderForValue) { + if (handleDataBuilder_ == null) { + ensureHandleDataIsMutable(); + handleData_.add(index, builderForValue.build()); + onChanged(); + } else { + handleDataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The handle data for resource inputs.
+       * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + public Builder addAllHandleData( + java.lang.Iterable values) { + if (handleDataBuilder_ == null) { + ensureHandleDataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, handleData_); + onChanged(); + } else { + handleDataBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * The handle data for resource inputs.
+       * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + public Builder clearHandleData() { + if (handleDataBuilder_ == null) { + handleData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + handleDataBuilder_.clear(); + } + return this; + } + /** + *
+       * The handle data for resource inputs.
+       * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + public Builder removeHandleData(int index) { + if (handleDataBuilder_ == null) { + ensureHandleDataIsMutable(); + handleData_.remove(index); + onChanged(); + } else { + handleDataBuilder_.remove(index); + } + return this; + } + /** + *
+       * The handle data for resource inputs.
+       * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + public org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.Builder getHandleDataBuilder( + int index) { + return getHandleDataFieldBuilder().getBuilder(index); + } + /** + *
+       * The handle data for resource inputs.
+       * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + public org.tensorflow.proto.ResourceHandleProto.DtypeAndShapeOrBuilder getHandleDataOrBuilder( + int index) { + if (handleDataBuilder_ == null) { + return handleData_.get(index); } else { + return handleDataBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * The handle data for resource inputs.
+       * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + public java.util.List + getHandleDataOrBuilderList() { + if (handleDataBuilder_ != null) { + return handleDataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(handleData_); + } + } + /** + *
+       * The handle data for resource inputs.
+       * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + public org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.Builder addHandleDataBuilder() { + return getHandleDataFieldBuilder().addBuilder( + org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.getDefaultInstance()); + } + /** + *
+       * The handle data for resource inputs.
+       * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + public org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.Builder addHandleDataBuilder( + int index) { + return getHandleDataFieldBuilder().addBuilder( + index, org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.getDefaultInstance()); + } + /** + *
+       * The handle data for resource inputs.
+       * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape handle_data = 7; + */ + public java.util.List + getHandleDataBuilderList() { + return getHandleDataFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ResourceHandleProto.DtypeAndShape, org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.Builder, org.tensorflow.proto.ResourceHandleProto.DtypeAndShapeOrBuilder> + getHandleDataFieldBuilder() { + if (handleDataBuilder_ == null) { + handleDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ResourceHandleProto.DtypeAndShape, org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.Builder, org.tensorflow.proto.ResourceHandleProto.DtypeAndShapeOrBuilder>( + handleData_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + handleData_ = null; + } + return handleDataBuilder_; + } + + private boolean isRef_ ; + /** + *
+       * For inputs: if true, the inputs are required to be refs.
+       *   By default, inputs can be either refs or non-refs.
+       * For outputs: if true, outputs are refs, otherwise they are not.
+       * 
+ * + * bool is_ref = 16; + * @return The isRef. + */ + @java.lang.Override + public boolean getIsRef() { + return isRef_; + } + /** + *
+       * For inputs: if true, the inputs are required to be refs.
+       *   By default, inputs can be either refs or non-refs.
+       * For outputs: if true, outputs are refs, otherwise they are not.
+       * 
+ * + * bool is_ref = 16; + * @param value The isRef to set. + * @return This builder for chaining. + */ + public Builder setIsRef(boolean value) { + + isRef_ = value; + onChanged(); + return this; + } + /** + *
+       * For inputs: if true, the inputs are required to be refs.
+       *   By default, inputs can be either refs or non-refs.
+       * For outputs: if true, outputs are refs, otherwise they are not.
+       * 
+ * + * bool is_ref = 16; + * @return This builder for chaining. + */ + public Builder clearIsRef() { + + isRef_ = false; + onChanged(); + return this; + } + + private org.tensorflow.proto.FullTypeDef experimentalFullType_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.FullTypeDef, org.tensorflow.proto.FullTypeDef.Builder, org.tensorflow.proto.FullTypeDefOrBuilder> experimentalFullTypeBuilder_; + /** + *
+       * Experimental. Full type declaration for this argument.
+       * The full type specification combines type, type_attr, type_list_attr,
+       * etc. into a unified representation.
+       * This declaration may contain non-concrete types (for example,
+       * Tensor<TypeVar<'T'>> is a valid type declaration.
+       * Note: this is a transient field. The long-term aim is to represent the
+       * entire OpDef as a single type: a callable. In that context, this field is
+       * just the type of a single argument.
+       * 
+ * + * .tensorflow.FullTypeDef experimental_full_type = 17; + * @return Whether the experimentalFullType field is set. + */ + public boolean hasExperimentalFullType() { + return experimentalFullTypeBuilder_ != null || experimentalFullType_ != null; + } + /** + *
+       * Experimental. Full type declaration for this argument.
+       * The full type specification combines type, type_attr, type_list_attr,
+       * etc. into a unified representation.
+       * This declaration may contain non-concrete types (for example,
+       * Tensor<TypeVar<'T'>> is a valid type declaration.
+       * Note: this is a transient field. The long-term aim is to represent the
+       * entire OpDef as a single type: a callable. In that context, this field is
+       * just the type of a single argument.
+       * 
+ * + * .tensorflow.FullTypeDef experimental_full_type = 17; + * @return The experimentalFullType. + */ + public org.tensorflow.proto.FullTypeDef getExperimentalFullType() { + if (experimentalFullTypeBuilder_ == null) { + return experimentalFullType_ == null ? org.tensorflow.proto.FullTypeDef.getDefaultInstance() : experimentalFullType_; + } else { + return experimentalFullTypeBuilder_.getMessage(); + } + } + /** + *
+       * Experimental. Full type declaration for this argument.
+       * The full type specification combines type, type_attr, type_list_attr,
+       * etc. into a unified representation.
+       * This declaration may contain non-concrete types (for example,
+       * Tensor<TypeVar<'T'>> is a valid type declaration.
+       * Note: this is a transient field. The long-term aim is to represent the
+       * entire OpDef as a single type: a callable. In that context, this field is
+       * just the type of a single argument.
+       * 
+ * + * .tensorflow.FullTypeDef experimental_full_type = 17; + */ + public Builder setExperimentalFullType(org.tensorflow.proto.FullTypeDef value) { + if (experimentalFullTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + experimentalFullType_ = value; + onChanged(); + } else { + experimentalFullTypeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Experimental. Full type declaration for this argument.
+       * The full type specification combines type, type_attr, type_list_attr,
+       * etc. into a unified representation.
+       * This declaration may contain non-concrete types (for example,
+       * Tensor<TypeVar<'T'>> is a valid type declaration.
+       * Note: this is a transient field. The long-term aim is to represent the
+       * entire OpDef as a single type: a callable. In that context, this field is
+       * just the type of a single argument.
+       * 
+ * + * .tensorflow.FullTypeDef experimental_full_type = 17; + */ + public Builder setExperimentalFullType( + org.tensorflow.proto.FullTypeDef.Builder builderForValue) { + if (experimentalFullTypeBuilder_ == null) { + experimentalFullType_ = builderForValue.build(); + onChanged(); + } else { + experimentalFullTypeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Experimental. Full type declaration for this argument.
+       * The full type specification combines type, type_attr, type_list_attr,
+       * etc. into a unified representation.
+       * This declaration may contain non-concrete types (for example,
+       * Tensor<TypeVar<'T'>> is a valid type declaration.
+       * Note: this is a transient field. The long-term aim is to represent the
+       * entire OpDef as a single type: a callable. In that context, this field is
+       * just the type of a single argument.
+       * 
+ * + * .tensorflow.FullTypeDef experimental_full_type = 17; + */ + public Builder mergeExperimentalFullType(org.tensorflow.proto.FullTypeDef value) { + if (experimentalFullTypeBuilder_ == null) { + if (experimentalFullType_ != null) { + experimentalFullType_ = + org.tensorflow.proto.FullTypeDef.newBuilder(experimentalFullType_).mergeFrom(value).buildPartial(); + } else { + experimentalFullType_ = value; + } + onChanged(); + } else { + experimentalFullTypeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Experimental. Full type declaration for this argument.
+       * The full type specification combines type, type_attr, type_list_attr,
+       * etc. into a unified representation.
+       * This declaration may contain non-concrete types (for example,
+       * Tensor<TypeVar<'T'>> is a valid type declaration.
+       * Note: this is a transient field. The long-term aim is to represent the
+       * entire OpDef as a single type: a callable. In that context, this field is
+       * just the type of a single argument.
+       * 
+ * + * .tensorflow.FullTypeDef experimental_full_type = 17; + */ + public Builder clearExperimentalFullType() { + if (experimentalFullTypeBuilder_ == null) { + experimentalFullType_ = null; + onChanged(); + } else { + experimentalFullType_ = null; + experimentalFullTypeBuilder_ = null; + } + + return this; + } + /** + *
+       * Experimental. Full type declaration for this argument.
+       * The full type specification combines type, type_attr, type_list_attr,
+       * etc. into a unified representation.
+       * This declaration may contain non-concrete types (for example,
+       * Tensor<TypeVar<'T'>> is a valid type declaration.
+       * Note: this is a transient field. The long-term aim is to represent the
+       * entire OpDef as a single type: a callable. In that context, this field is
+       * just the type of a single argument.
+       * 
+ * + * .tensorflow.FullTypeDef experimental_full_type = 17; + */ + public org.tensorflow.proto.FullTypeDef.Builder getExperimentalFullTypeBuilder() { + + onChanged(); + return getExperimentalFullTypeFieldBuilder().getBuilder(); + } + /** + *
+       * Experimental. Full type declaration for this argument.
+       * The full type specification combines type, type_attr, type_list_attr,
+       * etc. into a unified representation.
+       * This declaration may contain non-concrete types (for example,
+       * Tensor<TypeVar<'T'>> is a valid type declaration.
+       * Note: this is a transient field. The long-term aim is to represent the
+       * entire OpDef as a single type: a callable. In that context, this field is
+       * just the type of a single argument.
+       * 
+ * + * .tensorflow.FullTypeDef experimental_full_type = 17; + */ + public org.tensorflow.proto.FullTypeDefOrBuilder getExperimentalFullTypeOrBuilder() { + if (experimentalFullTypeBuilder_ != null) { + return experimentalFullTypeBuilder_.getMessageOrBuilder(); + } else { + return experimentalFullType_ == null ? + org.tensorflow.proto.FullTypeDef.getDefaultInstance() : experimentalFullType_; + } + } + /** + *
+       * Experimental. Full type declaration for this argument.
+       * The full type specification combines type, type_attr, type_list_attr,
+       * etc. into a unified representation.
+       * This declaration may contain non-concrete types (for example,
+       * Tensor<TypeVar<'T'>> is a valid type declaration.
+       * Note: this is a transient field. The long-term aim is to represent the
+       * entire OpDef as a single type: a callable. In that context, this field is
+       * just the type of a single argument.
+       * 
+ * + * .tensorflow.FullTypeDef experimental_full_type = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.FullTypeDef, org.tensorflow.proto.FullTypeDef.Builder, org.tensorflow.proto.FullTypeDefOrBuilder> + getExperimentalFullTypeFieldBuilder() { + if (experimentalFullTypeBuilder_ == null) { + experimentalFullTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.FullTypeDef, org.tensorflow.proto.FullTypeDef.Builder, org.tensorflow.proto.FullTypeDefOrBuilder>( + getExperimentalFullType(), + getParentForChildren(), + isClean()); + experimentalFullType_ = null; + } + return experimentalFullTypeBuilder_; + } + @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:tensorflow.OpDef.ArgDef) + } + + // @@protoc_insertion_point(class_scope:tensorflow.OpDef.ArgDef) + private static final org.tensorflow.proto.OpDef.ArgDef DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.OpDef.ArgDef(); + } + + public static org.tensorflow.proto.OpDef.ArgDef getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArgDef 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 org.tensorflow.proto.OpDef.ArgDef getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AttrDefOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.OpDef.AttrDef) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A descriptive name for the argument.  May be used, e.g. by the
+     * Python client, as a keyword argument name, and so should match
+     * the regexp "[a-z][a-z0-9_]+".
+     * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * A descriptive name for the argument.  May be used, e.g. by the
+     * Python client, as a keyword argument name, and so should match
+     * the regexp "[a-z][a-z0-9_]+".
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * One of the type names from attr_value.proto ("string", "list(string)",
+     * "int", etc.).
+     * 
+ * + * string type = 2; + * @return The type. + */ + java.lang.String getType(); + /** + *
+     * One of the type names from attr_value.proto ("string", "list(string)",
+     * "int", etc.).
+     * 
+ * + * string type = 2; + * @return The bytes for type. + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + *
+     * A reasonable default for this attribute if the user does not supply
+     * a value.  If not specified, the user must supply a value.
+     * 
+ * + * .tensorflow.AttrValue default_value = 3; + * @return Whether the defaultValue field is set. + */ + boolean hasDefaultValue(); + /** + *
+     * A reasonable default for this attribute if the user does not supply
+     * a value.  If not specified, the user must supply a value.
+     * 
+ * + * .tensorflow.AttrValue default_value = 3; + * @return The defaultValue. + */ + org.tensorflow.proto.AttrValue getDefaultValue(); + /** + *
+     * A reasonable default for this attribute if the user does not supply
+     * a value.  If not specified, the user must supply a value.
+     * 
+ * + * .tensorflow.AttrValue default_value = 3; + */ + org.tensorflow.proto.AttrValueOrBuilder getDefaultValueOrBuilder(); + + /** + *
+     * Human-readable description.
+     * 
+ * + * string description = 4; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+     * Human-readable description.
+     * 
+ * + * string description = 4; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+     * For type == "int", this is a minimum value.  For "list(___)"
+     * types, this is the minimum length.
+     * 
+ * + * bool has_minimum = 5; + * @return The hasMinimum. + */ + boolean getHasMinimum(); + + /** + * int64 minimum = 6; + * @return The minimum. + */ + long getMinimum(); + + /** + *
+     * The set of allowed values.  Has type that is the "list" version
+     * of the "type" field above (uses the "list" field of AttrValue).
+     * If type == "type" or "list(type)" above, then the "type" field
+     * of "allowed_values.list" has the set of allowed DataTypes.
+     * If type == "string" or "list(string)", then the "s" field of
+     * "allowed_values.list" has the set of allowed strings.
+     * 
+ * + * .tensorflow.AttrValue allowed_values = 7; + * @return Whether the allowedValues field is set. + */ + boolean hasAllowedValues(); + /** + *
+     * The set of allowed values.  Has type that is the "list" version
+     * of the "type" field above (uses the "list" field of AttrValue).
+     * If type == "type" or "list(type)" above, then the "type" field
+     * of "allowed_values.list" has the set of allowed DataTypes.
+     * If type == "string" or "list(string)", then the "s" field of
+     * "allowed_values.list" has the set of allowed strings.
+     * 
+ * + * .tensorflow.AttrValue allowed_values = 7; + * @return The allowedValues. + */ + org.tensorflow.proto.AttrValue getAllowedValues(); + /** + *
+     * The set of allowed values.  Has type that is the "list" version
+     * of the "type" field above (uses the "list" field of AttrValue).
+     * If type == "type" or "list(type)" above, then the "type" field
+     * of "allowed_values.list" has the set of allowed DataTypes.
+     * If type == "string" or "list(string)", then the "s" field of
+     * "allowed_values.list" has the set of allowed strings.
+     * 
+ * + * .tensorflow.AttrValue allowed_values = 7; + */ + org.tensorflow.proto.AttrValueOrBuilder getAllowedValuesOrBuilder(); + } + /** + *
+   * Description of the graph-construction-time configuration of this
+   * Op.  That is to say, this describes the attr fields that will
+   * be specified in the NodeDef.
+   * 
+ * + * Protobuf type {@code tensorflow.OpDef.AttrDef} + */ + public static final class AttrDef extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.OpDef.AttrDef) + AttrDefOrBuilder { + private static final long serialVersionUID = 0L; + // Use AttrDef.newBuilder() to construct. + private AttrDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AttrDef() { + name_ = ""; + type_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AttrDef(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpDef_AttrDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpDef_AttrDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpDef.AttrDef.class, org.tensorflow.proto.OpDef.AttrDef.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * A descriptive name for the argument.  May be used, e.g. by the
+     * Python client, as a keyword argument name, and so should match
+     * the regexp "[a-z][a-z0-9_]+".
+     * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+     * A descriptive name for the argument.  May be used, e.g. by the
+     * Python client, as a keyword argument name, and so should match
+     * the regexp "[a-z][a-z0-9_]+".
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object type_; + /** + *
+     * One of the type names from attr_value.proto ("string", "list(string)",
+     * "int", etc.).
+     * 
+ * + * string type = 2; + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + 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(); + type_ = s; + return s; + } + } + /** + *
+     * One of the type names from attr_value.proto ("string", "list(string)",
+     * "int", etc.).
+     * 
+ * + * string type = 2; + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFAULT_VALUE_FIELD_NUMBER = 3; + private org.tensorflow.proto.AttrValue defaultValue_; + /** + *
+     * A reasonable default for this attribute if the user does not supply
+     * a value.  If not specified, the user must supply a value.
+     * 
+ * + * .tensorflow.AttrValue default_value = 3; + * @return Whether the defaultValue field is set. + */ + @java.lang.Override + public boolean hasDefaultValue() { + return defaultValue_ != null; + } + /** + *
+     * A reasonable default for this attribute if the user does not supply
+     * a value.  If not specified, the user must supply a value.
+     * 
+ * + * .tensorflow.AttrValue default_value = 3; + * @return The defaultValue. + */ + @java.lang.Override + public org.tensorflow.proto.AttrValue getDefaultValue() { + return defaultValue_ == null ? org.tensorflow.proto.AttrValue.getDefaultInstance() : defaultValue_; + } + /** + *
+     * A reasonable default for this attribute if the user does not supply
+     * a value.  If not specified, the user must supply a value.
+     * 
+ * + * .tensorflow.AttrValue default_value = 3; + */ + @java.lang.Override + public org.tensorflow.proto.AttrValueOrBuilder getDefaultValueOrBuilder() { + return getDefaultValue(); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + private volatile java.lang.Object description_; + /** + *
+     * Human-readable description.
+     * 
+ * + * string description = 4; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+     * Human-readable description.
+     * 
+ * + * string description = 4; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HAS_MINIMUM_FIELD_NUMBER = 5; + private boolean hasMinimum_; + /** + *
+     * For type == "int", this is a minimum value.  For "list(___)"
+     * types, this is the minimum length.
+     * 
+ * + * bool has_minimum = 5; + * @return The hasMinimum. + */ + @java.lang.Override + public boolean getHasMinimum() { + return hasMinimum_; + } + + public static final int MINIMUM_FIELD_NUMBER = 6; + private long minimum_; + /** + * int64 minimum = 6; + * @return The minimum. + */ + @java.lang.Override + public long getMinimum() { + return minimum_; + } + + public static final int ALLOWED_VALUES_FIELD_NUMBER = 7; + private org.tensorflow.proto.AttrValue allowedValues_; + /** + *
+     * The set of allowed values.  Has type that is the "list" version
+     * of the "type" field above (uses the "list" field of AttrValue).
+     * If type == "type" or "list(type)" above, then the "type" field
+     * of "allowed_values.list" has the set of allowed DataTypes.
+     * If type == "string" or "list(string)", then the "s" field of
+     * "allowed_values.list" has the set of allowed strings.
+     * 
+ * + * .tensorflow.AttrValue allowed_values = 7; + * @return Whether the allowedValues field is set. + */ + @java.lang.Override + public boolean hasAllowedValues() { + return allowedValues_ != null; + } + /** + *
+     * The set of allowed values.  Has type that is the "list" version
+     * of the "type" field above (uses the "list" field of AttrValue).
+     * If type == "type" or "list(type)" above, then the "type" field
+     * of "allowed_values.list" has the set of allowed DataTypes.
+     * If type == "string" or "list(string)", then the "s" field of
+     * "allowed_values.list" has the set of allowed strings.
+     * 
+ * + * .tensorflow.AttrValue allowed_values = 7; + * @return The allowedValues. + */ + @java.lang.Override + public org.tensorflow.proto.AttrValue getAllowedValues() { + return allowedValues_ == null ? org.tensorflow.proto.AttrValue.getDefaultInstance() : allowedValues_; + } + /** + *
+     * The set of allowed values.  Has type that is the "list" version
+     * of the "type" field above (uses the "list" field of AttrValue).
+     * If type == "type" or "list(type)" above, then the "type" field
+     * of "allowed_values.list" has the set of allowed DataTypes.
+     * If type == "string" or "list(string)", then the "s" field of
+     * "allowed_values.list" has the set of allowed strings.
+     * 
+ * + * .tensorflow.AttrValue allowed_values = 7; + */ + @java.lang.Override + public org.tensorflow.proto.AttrValueOrBuilder getAllowedValuesOrBuilder() { + return getAllowedValues(); + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); + } + if (defaultValue_ != null) { + output.writeMessage(3, getDefaultValue()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + if (hasMinimum_ != false) { + output.writeBool(5, hasMinimum_); + } + if (minimum_ != 0L) { + output.writeInt64(6, minimum_); + } + if (allowedValues_ != null) { + output.writeMessage(7, getAllowedValues()); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); + } + if (defaultValue_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDefaultValue()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + if (hasMinimum_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, hasMinimum_); + } + if (minimum_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, minimum_); + } + if (allowedValues_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getAllowedValues()); + } + 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 org.tensorflow.proto.OpDef.AttrDef)) { + return super.equals(obj); + } + org.tensorflow.proto.OpDef.AttrDef other = (org.tensorflow.proto.OpDef.AttrDef) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getType() + .equals(other.getType())) return false; + if (hasDefaultValue() != other.hasDefaultValue()) return false; + if (hasDefaultValue()) { + if (!getDefaultValue() + .equals(other.getDefaultValue())) return false; + } + if (!getDescription() + .equals(other.getDescription())) return false; + if (getHasMinimum() + != other.getHasMinimum()) return false; + if (getMinimum() + != other.getMinimum()) return false; + if (hasAllowedValues() != other.hasAllowedValues()) return false; + if (hasAllowedValues()) { + if (!getAllowedValues() + .equals(other.getAllowedValues())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + if (hasDefaultValue()) { + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultValue().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + HAS_MINIMUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasMinimum()); + hash = (37 * hash) + MINIMUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMinimum()); + if (hasAllowedValues()) { + hash = (37 * hash) + ALLOWED_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getAllowedValues().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.OpDef.AttrDef parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpDef.AttrDef parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpDef.AttrDef parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpDef.AttrDef parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpDef.AttrDef parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpDef.AttrDef parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpDef.AttrDef parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpDef.AttrDef 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 org.tensorflow.proto.OpDef.AttrDef parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpDef.AttrDef 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 org.tensorflow.proto.OpDef.AttrDef parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpDef.AttrDef 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(org.tensorflow.proto.OpDef.AttrDef 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; + } + /** + *
+     * Description of the graph-construction-time configuration of this
+     * Op.  That is to say, this describes the attr fields that will
+     * be specified in the NodeDef.
+     * 
+ * + * Protobuf type {@code tensorflow.OpDef.AttrDef} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.OpDef.AttrDef) + org.tensorflow.proto.OpDef.AttrDefOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpDef_AttrDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpDef_AttrDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpDef.AttrDef.class, org.tensorflow.proto.OpDef.AttrDef.Builder.class); + } + + // Construct using org.tensorflow.proto.OpDef.AttrDef.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + type_ = ""; + + if (defaultValueBuilder_ == null) { + defaultValue_ = null; + } else { + defaultValue_ = null; + defaultValueBuilder_ = null; + } + description_ = ""; + + hasMinimum_ = false; + + minimum_ = 0L; + + if (allowedValuesBuilder_ == null) { + allowedValues_ = null; + } else { + allowedValues_ = null; + allowedValuesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpDef_AttrDef_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.OpDef.AttrDef getDefaultInstanceForType() { + return org.tensorflow.proto.OpDef.AttrDef.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.OpDef.AttrDef build() { + org.tensorflow.proto.OpDef.AttrDef result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.OpDef.AttrDef buildPartial() { + org.tensorflow.proto.OpDef.AttrDef result = new org.tensorflow.proto.OpDef.AttrDef(this); + result.name_ = name_; + result.type_ = type_; + if (defaultValueBuilder_ == null) { + result.defaultValue_ = defaultValue_; + } else { + result.defaultValue_ = defaultValueBuilder_.build(); + } + result.description_ = description_; + result.hasMinimum_ = hasMinimum_; + result.minimum_ = minimum_; + if (allowedValuesBuilder_ == null) { + result.allowedValues_ = allowedValues_; + } else { + result.allowedValues_ = allowedValuesBuilder_.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 org.tensorflow.proto.OpDef.AttrDef) { + return mergeFrom((org.tensorflow.proto.OpDef.AttrDef)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.OpDef.AttrDef other) { + if (other == org.tensorflow.proto.OpDef.AttrDef.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + if (other.hasDefaultValue()) { + mergeDefaultValue(other.getDefaultValue()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.getHasMinimum() != false) { + setHasMinimum(other.getHasMinimum()); + } + if (other.getMinimum() != 0L) { + setMinimum(other.getMinimum()); + } + if (other.hasAllowedValues()) { + mergeAllowedValues(other.getAllowedValues()); + } + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + type_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getDefaultValueFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 40: { + hasMinimum_ = input.readBool(); + + break; + } // case 40 + case 48: { + minimum_ = input.readInt64(); + + break; + } // case 48 + case 58: { + input.readMessage( + getAllowedValuesFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 58 + 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 java.lang.Object name_ = ""; + /** + *
+       * A descriptive name for the argument.  May be used, e.g. by the
+       * Python client, as a keyword argument name, and so should match
+       * the regexp "[a-z][a-z0-9_]+".
+       * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A descriptive name for the argument.  May be used, e.g. by the
+       * Python client, as a keyword argument name, and so should match
+       * the regexp "[a-z][a-z0-9_]+".
+       * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A descriptive name for the argument.  May be used, e.g. by the
+       * Python client, as a keyword argument name, and so should match
+       * the regexp "[a-z][a-z0-9_]+".
+       * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * A descriptive name for the argument.  May be used, e.g. by the
+       * Python client, as a keyword argument name, and so should match
+       * the regexp "[a-z][a-z0-9_]+".
+       * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * A descriptive name for the argument.  May be used, e.g. by the
+       * Python client, as a keyword argument name, and so should match
+       * the regexp "[a-z][a-z0-9_]+".
+       * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + /** + *
+       * One of the type names from attr_value.proto ("string", "list(string)",
+       * "int", etc.).
+       * 
+ * + * string type = 2; + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * One of the type names from attr_value.proto ("string", "list(string)",
+       * "int", etc.).
+       * 
+ * + * string type = 2; + * @return The bytes for type. + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * One of the type names from attr_value.proto ("string", "list(string)",
+       * "int", etc.).
+       * 
+ * + * string type = 2; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value; + onChanged(); + return this; + } + /** + *
+       * One of the type names from attr_value.proto ("string", "list(string)",
+       * "int", etc.).
+       * 
+ * + * string type = 2; + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + *
+       * One of the type names from attr_value.proto ("string", "list(string)",
+       * "int", etc.).
+       * 
+ * + * string type = 2; + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + type_ = value; + onChanged(); + return this; + } + + private org.tensorflow.proto.AttrValue defaultValue_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.AttrValue, org.tensorflow.proto.AttrValue.Builder, org.tensorflow.proto.AttrValueOrBuilder> defaultValueBuilder_; + /** + *
+       * A reasonable default for this attribute if the user does not supply
+       * a value.  If not specified, the user must supply a value.
+       * 
+ * + * .tensorflow.AttrValue default_value = 3; + * @return Whether the defaultValue field is set. + */ + public boolean hasDefaultValue() { + return defaultValueBuilder_ != null || defaultValue_ != null; + } + /** + *
+       * A reasonable default for this attribute if the user does not supply
+       * a value.  If not specified, the user must supply a value.
+       * 
+ * + * .tensorflow.AttrValue default_value = 3; + * @return The defaultValue. + */ + public org.tensorflow.proto.AttrValue getDefaultValue() { + if (defaultValueBuilder_ == null) { + return defaultValue_ == null ? org.tensorflow.proto.AttrValue.getDefaultInstance() : defaultValue_; + } else { + return defaultValueBuilder_.getMessage(); + } + } + /** + *
+       * A reasonable default for this attribute if the user does not supply
+       * a value.  If not specified, the user must supply a value.
+       * 
+ * + * .tensorflow.AttrValue default_value = 3; + */ + public Builder setDefaultValue(org.tensorflow.proto.AttrValue value) { + if (defaultValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultValue_ = value; + onChanged(); + } else { + defaultValueBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A reasonable default for this attribute if the user does not supply
+       * a value.  If not specified, the user must supply a value.
+       * 
+ * + * .tensorflow.AttrValue default_value = 3; + */ + public Builder setDefaultValue( + org.tensorflow.proto.AttrValue.Builder builderForValue) { + if (defaultValueBuilder_ == null) { + defaultValue_ = builderForValue.build(); + onChanged(); + } else { + defaultValueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A reasonable default for this attribute if the user does not supply
+       * a value.  If not specified, the user must supply a value.
+       * 
+ * + * .tensorflow.AttrValue default_value = 3; + */ + public Builder mergeDefaultValue(org.tensorflow.proto.AttrValue value) { + if (defaultValueBuilder_ == null) { + if (defaultValue_ != null) { + defaultValue_ = + org.tensorflow.proto.AttrValue.newBuilder(defaultValue_).mergeFrom(value).buildPartial(); + } else { + defaultValue_ = value; + } + onChanged(); + } else { + defaultValueBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A reasonable default for this attribute if the user does not supply
+       * a value.  If not specified, the user must supply a value.
+       * 
+ * + * .tensorflow.AttrValue default_value = 3; + */ + public Builder clearDefaultValue() { + if (defaultValueBuilder_ == null) { + defaultValue_ = null; + onChanged(); + } else { + defaultValue_ = null; + defaultValueBuilder_ = null; + } + + return this; + } + /** + *
+       * A reasonable default for this attribute if the user does not supply
+       * a value.  If not specified, the user must supply a value.
+       * 
+ * + * .tensorflow.AttrValue default_value = 3; + */ + public org.tensorflow.proto.AttrValue.Builder getDefaultValueBuilder() { + + onChanged(); + return getDefaultValueFieldBuilder().getBuilder(); + } + /** + *
+       * A reasonable default for this attribute if the user does not supply
+       * a value.  If not specified, the user must supply a value.
+       * 
+ * + * .tensorflow.AttrValue default_value = 3; + */ + public org.tensorflow.proto.AttrValueOrBuilder getDefaultValueOrBuilder() { + if (defaultValueBuilder_ != null) { + return defaultValueBuilder_.getMessageOrBuilder(); + } else { + return defaultValue_ == null ? + org.tensorflow.proto.AttrValue.getDefaultInstance() : defaultValue_; + } + } + /** + *
+       * A reasonable default for this attribute if the user does not supply
+       * a value.  If not specified, the user must supply a value.
+       * 
+ * + * .tensorflow.AttrValue default_value = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.AttrValue, org.tensorflow.proto.AttrValue.Builder, org.tensorflow.proto.AttrValueOrBuilder> + getDefaultValueFieldBuilder() { + if (defaultValueBuilder_ == null) { + defaultValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.AttrValue, org.tensorflow.proto.AttrValue.Builder, org.tensorflow.proto.AttrValueOrBuilder>( + getDefaultValue(), + getParentForChildren(), + isClean()); + defaultValue_ = null; + } + return defaultValueBuilder_; + } + + private java.lang.Object description_ = ""; + /** + *
+       * Human-readable description.
+       * 
+ * + * string description = 4; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Human-readable description.
+       * 
+ * + * string description = 4; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Human-readable description.
+       * 
+ * + * string description = 4; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+       * Human-readable description.
+       * 
+ * + * string description = 4; + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+       * Human-readable description.
+       * 
+ * + * string description = 4; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private boolean hasMinimum_ ; + /** + *
+       * For type == "int", this is a minimum value.  For "list(___)"
+       * types, this is the minimum length.
+       * 
+ * + * bool has_minimum = 5; + * @return The hasMinimum. + */ + @java.lang.Override + public boolean getHasMinimum() { + return hasMinimum_; + } + /** + *
+       * For type == "int", this is a minimum value.  For "list(___)"
+       * types, this is the minimum length.
+       * 
+ * + * bool has_minimum = 5; + * @param value The hasMinimum to set. + * @return This builder for chaining. + */ + public Builder setHasMinimum(boolean value) { + + hasMinimum_ = value; + onChanged(); + return this; + } + /** + *
+       * For type == "int", this is a minimum value.  For "list(___)"
+       * types, this is the minimum length.
+       * 
+ * + * bool has_minimum = 5; + * @return This builder for chaining. + */ + public Builder clearHasMinimum() { + + hasMinimum_ = false; + onChanged(); + return this; + } + + private long minimum_ ; + /** + * int64 minimum = 6; + * @return The minimum. + */ + @java.lang.Override + public long getMinimum() { + return minimum_; + } + /** + * int64 minimum = 6; + * @param value The minimum to set. + * @return This builder for chaining. + */ + public Builder setMinimum(long value) { + + minimum_ = value; + onChanged(); + return this; + } + /** + * int64 minimum = 6; + * @return This builder for chaining. + */ + public Builder clearMinimum() { + + minimum_ = 0L; + onChanged(); + return this; + } + + private org.tensorflow.proto.AttrValue allowedValues_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.AttrValue, org.tensorflow.proto.AttrValue.Builder, org.tensorflow.proto.AttrValueOrBuilder> allowedValuesBuilder_; + /** + *
+       * The set of allowed values.  Has type that is the "list" version
+       * of the "type" field above (uses the "list" field of AttrValue).
+       * If type == "type" or "list(type)" above, then the "type" field
+       * of "allowed_values.list" has the set of allowed DataTypes.
+       * If type == "string" or "list(string)", then the "s" field of
+       * "allowed_values.list" has the set of allowed strings.
+       * 
+ * + * .tensorflow.AttrValue allowed_values = 7; + * @return Whether the allowedValues field is set. + */ + public boolean hasAllowedValues() { + return allowedValuesBuilder_ != null || allowedValues_ != null; + } + /** + *
+       * The set of allowed values.  Has type that is the "list" version
+       * of the "type" field above (uses the "list" field of AttrValue).
+       * If type == "type" or "list(type)" above, then the "type" field
+       * of "allowed_values.list" has the set of allowed DataTypes.
+       * If type == "string" or "list(string)", then the "s" field of
+       * "allowed_values.list" has the set of allowed strings.
+       * 
+ * + * .tensorflow.AttrValue allowed_values = 7; + * @return The allowedValues. + */ + public org.tensorflow.proto.AttrValue getAllowedValues() { + if (allowedValuesBuilder_ == null) { + return allowedValues_ == null ? org.tensorflow.proto.AttrValue.getDefaultInstance() : allowedValues_; + } else { + return allowedValuesBuilder_.getMessage(); + } + } + /** + *
+       * The set of allowed values.  Has type that is the "list" version
+       * of the "type" field above (uses the "list" field of AttrValue).
+       * If type == "type" or "list(type)" above, then the "type" field
+       * of "allowed_values.list" has the set of allowed DataTypes.
+       * If type == "string" or "list(string)", then the "s" field of
+       * "allowed_values.list" has the set of allowed strings.
+       * 
+ * + * .tensorflow.AttrValue allowed_values = 7; + */ + public Builder setAllowedValues(org.tensorflow.proto.AttrValue value) { + if (allowedValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + allowedValues_ = value; + onChanged(); + } else { + allowedValuesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The set of allowed values.  Has type that is the "list" version
+       * of the "type" field above (uses the "list" field of AttrValue).
+       * If type == "type" or "list(type)" above, then the "type" field
+       * of "allowed_values.list" has the set of allowed DataTypes.
+       * If type == "string" or "list(string)", then the "s" field of
+       * "allowed_values.list" has the set of allowed strings.
+       * 
+ * + * .tensorflow.AttrValue allowed_values = 7; + */ + public Builder setAllowedValues( + org.tensorflow.proto.AttrValue.Builder builderForValue) { + if (allowedValuesBuilder_ == null) { + allowedValues_ = builderForValue.build(); + onChanged(); + } else { + allowedValuesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The set of allowed values.  Has type that is the "list" version
+       * of the "type" field above (uses the "list" field of AttrValue).
+       * If type == "type" or "list(type)" above, then the "type" field
+       * of "allowed_values.list" has the set of allowed DataTypes.
+       * If type == "string" or "list(string)", then the "s" field of
+       * "allowed_values.list" has the set of allowed strings.
+       * 
+ * + * .tensorflow.AttrValue allowed_values = 7; + */ + public Builder mergeAllowedValues(org.tensorflow.proto.AttrValue value) { + if (allowedValuesBuilder_ == null) { + if (allowedValues_ != null) { + allowedValues_ = + org.tensorflow.proto.AttrValue.newBuilder(allowedValues_).mergeFrom(value).buildPartial(); + } else { + allowedValues_ = value; + } + onChanged(); + } else { + allowedValuesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The set of allowed values.  Has type that is the "list" version
+       * of the "type" field above (uses the "list" field of AttrValue).
+       * If type == "type" or "list(type)" above, then the "type" field
+       * of "allowed_values.list" has the set of allowed DataTypes.
+       * If type == "string" or "list(string)", then the "s" field of
+       * "allowed_values.list" has the set of allowed strings.
+       * 
+ * + * .tensorflow.AttrValue allowed_values = 7; + */ + public Builder clearAllowedValues() { + if (allowedValuesBuilder_ == null) { + allowedValues_ = null; + onChanged(); + } else { + allowedValues_ = null; + allowedValuesBuilder_ = null; + } + + return this; + } + /** + *
+       * The set of allowed values.  Has type that is the "list" version
+       * of the "type" field above (uses the "list" field of AttrValue).
+       * If type == "type" or "list(type)" above, then the "type" field
+       * of "allowed_values.list" has the set of allowed DataTypes.
+       * If type == "string" or "list(string)", then the "s" field of
+       * "allowed_values.list" has the set of allowed strings.
+       * 
+ * + * .tensorflow.AttrValue allowed_values = 7; + */ + public org.tensorflow.proto.AttrValue.Builder getAllowedValuesBuilder() { + + onChanged(); + return getAllowedValuesFieldBuilder().getBuilder(); + } + /** + *
+       * The set of allowed values.  Has type that is the "list" version
+       * of the "type" field above (uses the "list" field of AttrValue).
+       * If type == "type" or "list(type)" above, then the "type" field
+       * of "allowed_values.list" has the set of allowed DataTypes.
+       * If type == "string" or "list(string)", then the "s" field of
+       * "allowed_values.list" has the set of allowed strings.
+       * 
+ * + * .tensorflow.AttrValue allowed_values = 7; + */ + public org.tensorflow.proto.AttrValueOrBuilder getAllowedValuesOrBuilder() { + if (allowedValuesBuilder_ != null) { + return allowedValuesBuilder_.getMessageOrBuilder(); + } else { + return allowedValues_ == null ? + org.tensorflow.proto.AttrValue.getDefaultInstance() : allowedValues_; + } + } + /** + *
+       * The set of allowed values.  Has type that is the "list" version
+       * of the "type" field above (uses the "list" field of AttrValue).
+       * If type == "type" or "list(type)" above, then the "type" field
+       * of "allowed_values.list" has the set of allowed DataTypes.
+       * If type == "string" or "list(string)", then the "s" field of
+       * "allowed_values.list" has the set of allowed strings.
+       * 
+ * + * .tensorflow.AttrValue allowed_values = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.AttrValue, org.tensorflow.proto.AttrValue.Builder, org.tensorflow.proto.AttrValueOrBuilder> + getAllowedValuesFieldBuilder() { + if (allowedValuesBuilder_ == null) { + allowedValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.AttrValue, org.tensorflow.proto.AttrValue.Builder, org.tensorflow.proto.AttrValueOrBuilder>( + getAllowedValues(), + getParentForChildren(), + isClean()); + allowedValues_ = null; + } + return allowedValuesBuilder_; + } + @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:tensorflow.OpDef.AttrDef) + } + + // @@protoc_insertion_point(class_scope:tensorflow.OpDef.AttrDef) + private static final org.tensorflow.proto.OpDef.AttrDef DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.OpDef.AttrDef(); + } + + public static org.tensorflow.proto.OpDef.AttrDef getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttrDef 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 org.tensorflow.proto.OpDef.AttrDef getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Op names starting with an underscore are reserved for internal use.
+   * Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+   * Op names starting with an underscore are reserved for internal use.
+   * Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_ARG_FIELD_NUMBER = 2; + private java.util.List inputArg_; + /** + *
+   * Description of the input(s).
+   * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + @java.lang.Override + public java.util.List getInputArgList() { + return inputArg_; + } + /** + *
+   * Description of the input(s).
+   * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + @java.lang.Override + public java.util.List + getInputArgOrBuilderList() { + return inputArg_; + } + /** + *
+   * Description of the input(s).
+   * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + @java.lang.Override + public int getInputArgCount() { + return inputArg_.size(); + } + /** + *
+   * Description of the input(s).
+   * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + @java.lang.Override + public org.tensorflow.proto.OpDef.ArgDef getInputArg(int index) { + return inputArg_.get(index); + } + /** + *
+   * Description of the input(s).
+   * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + @java.lang.Override + public org.tensorflow.proto.OpDef.ArgDefOrBuilder getInputArgOrBuilder( + int index) { + return inputArg_.get(index); + } + + public static final int OUTPUT_ARG_FIELD_NUMBER = 3; + private java.util.List outputArg_; + /** + *
+   * Description of the output(s).
+   * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + @java.lang.Override + public java.util.List getOutputArgList() { + return outputArg_; + } + /** + *
+   * Description of the output(s).
+   * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + @java.lang.Override + public java.util.List + getOutputArgOrBuilderList() { + return outputArg_; + } + /** + *
+   * Description of the output(s).
+   * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + @java.lang.Override + public int getOutputArgCount() { + return outputArg_.size(); + } + /** + *
+   * Description of the output(s).
+   * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + @java.lang.Override + public org.tensorflow.proto.OpDef.ArgDef getOutputArg(int index) { + return outputArg_.get(index); + } + /** + *
+   * Description of the output(s).
+   * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + @java.lang.Override + public org.tensorflow.proto.OpDef.ArgDefOrBuilder getOutputArgOrBuilder( + int index) { + return outputArg_.get(index); + } + + public static final int CONTROL_OUTPUT_FIELD_NUMBER = 20; + private com.google.protobuf.LazyStringList controlOutput_; + /** + *
+   * Named control outputs for this operation. Useful only for composite
+   * operations (i.e. functions) which want to name different control outputs.
+   * 
+ * + * repeated string control_output = 20; + * @return A list containing the controlOutput. + */ + public com.google.protobuf.ProtocolStringList + getControlOutputList() { + return controlOutput_; + } + /** + *
+   * Named control outputs for this operation. Useful only for composite
+   * operations (i.e. functions) which want to name different control outputs.
+   * 
+ * + * repeated string control_output = 20; + * @return The count of controlOutput. + */ + public int getControlOutputCount() { + return controlOutput_.size(); + } + /** + *
+   * Named control outputs for this operation. Useful only for composite
+   * operations (i.e. functions) which want to name different control outputs.
+   * 
+ * + * repeated string control_output = 20; + * @param index The index of the element to return. + * @return The controlOutput at the given index. + */ + public java.lang.String getControlOutput(int index) { + return controlOutput_.get(index); + } + /** + *
+   * Named control outputs for this operation. Useful only for composite
+   * operations (i.e. functions) which want to name different control outputs.
+   * 
+ * + * repeated string control_output = 20; + * @param index The index of the value to return. + * @return The bytes of the controlOutput at the given index. + */ + public com.google.protobuf.ByteString + getControlOutputBytes(int index) { + return controlOutput_.getByteString(index); + } + + public static final int ATTR_FIELD_NUMBER = 4; + private java.util.List attr_; + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + @java.lang.Override + public java.util.List getAttrList() { + return attr_; + } + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + @java.lang.Override + public java.util.List + getAttrOrBuilderList() { + return attr_; + } + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + @java.lang.Override + public int getAttrCount() { + return attr_.size(); + } + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + @java.lang.Override + public org.tensorflow.proto.OpDef.AttrDef getAttr(int index) { + return attr_.get(index); + } + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + @java.lang.Override + public org.tensorflow.proto.OpDef.AttrDefOrBuilder getAttrOrBuilder( + int index) { + return attr_.get(index); + } + + public static final int DEPRECATION_FIELD_NUMBER = 8; + private org.tensorflow.proto.OpDeprecation deprecation_; + /** + *
+   * Optional deprecation based on GraphDef versions.
+   * 
+ * + * .tensorflow.OpDeprecation deprecation = 8; + * @return Whether the deprecation field is set. + */ + @java.lang.Override + public boolean hasDeprecation() { + return deprecation_ != null; + } + /** + *
+   * Optional deprecation based on GraphDef versions.
+   * 
+ * + * .tensorflow.OpDeprecation deprecation = 8; + * @return The deprecation. + */ + @java.lang.Override + public org.tensorflow.proto.OpDeprecation getDeprecation() { + return deprecation_ == null ? org.tensorflow.proto.OpDeprecation.getDefaultInstance() : deprecation_; + } + /** + *
+   * Optional deprecation based on GraphDef versions.
+   * 
+ * + * .tensorflow.OpDeprecation deprecation = 8; + */ + @java.lang.Override + public org.tensorflow.proto.OpDeprecationOrBuilder getDeprecationOrBuilder() { + return getDeprecation(); + } + + public static final int SUMMARY_FIELD_NUMBER = 5; + private volatile java.lang.Object summary_; + /** + *
+   * One-line human-readable description of what the Op does.
+   * 
+ * + * string summary = 5; + * @return The summary. + */ + @java.lang.Override + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + 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(); + summary_ = s; + return s; + } + } + /** + *
+   * One-line human-readable description of what the Op does.
+   * 
+ * + * string summary = 5; + * @return The bytes for summary. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + summary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 6; + private volatile java.lang.Object description_; + /** + *
+   * Additional, longer human-readable description of what the Op does.
+   * 
+ * + * string description = 6; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+   * Additional, longer human-readable description of what the Op does.
+   * 
+ * + * string description = 6; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_COMMUTATIVE_FIELD_NUMBER = 18; + private boolean isCommutative_; + /** + *
+   * True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
+   * 
+ * + * bool is_commutative = 18; + * @return The isCommutative. + */ + @java.lang.Override + public boolean getIsCommutative() { + return isCommutative_; + } + + public static final int IS_AGGREGATE_FIELD_NUMBER = 16; + private boolean isAggregate_; + /** + *
+   * If is_aggregate is true, then this operation accepts N >= 2
+   * inputs and produces 1 output all of the same type.  Should be
+   * associative and commutative, and produce output with the same
+   * shape as the input.  The optimizer may replace an aggregate op
+   * taking input from multiple devices with a tree of aggregate ops
+   * that aggregate locally within each device (and possibly within
+   * groups of nearby devices) before communicating.
+   * TODO(josh11b): Implement that optimization.
+   * 
+ * + * bool is_aggregate = 16; + * @return The isAggregate. + */ + @java.lang.Override + public boolean getIsAggregate() { + return isAggregate_; + } + + public static final int IS_STATEFUL_FIELD_NUMBER = 17; + private boolean isStateful_; + /** + *
+   * Ops are marked as stateful if their behavior depends on some state beyond
+   * their input tensors (e.g. variable reading op) or if they have
+   * a side-effect (e.g. printing or asserting ops). Equivalently, stateless ops
+   * must always produce the same output for the same input and have
+   * no side-effects.
+   * By default Ops may be moved between devices.  Stateful ops should
+   * either not be moved, or should only be moved if that state can also
+   * be moved (e.g. via some sort of save / restore).
+   * Stateful ops are guaranteed to never be optimized away by Common
+   * Subexpression Elimination (CSE).
+   * 
+ * + * bool is_stateful = 17; + * @return The isStateful. + */ + @java.lang.Override + public boolean getIsStateful() { + return isStateful_; + } + + public static final int ALLOWS_UNINITIALIZED_INPUT_FIELD_NUMBER = 19; + private boolean allowsUninitializedInput_; + /** + *
+   * By default, all inputs to an Op must be initialized Tensors.  Ops
+   * that may initialize tensors for the first time should set this
+   * field to true, to allow the Op to take an uninitialized Tensor as
+   * input.
+   * 
+ * + * bool allows_uninitialized_input = 19; + * @return The allowsUninitializedInput. + */ + @java.lang.Override + public boolean getAllowsUninitializedInput() { + return allowsUninitializedInput_; + } + + public static final int IS_DISTRIBUTED_COMMUNICATION_FIELD_NUMBER = 21; + private boolean isDistributedCommunication_; + /** + *
+   * Indicates whether the op implementation uses distributed communication.
+   * If True, the op is allowed to return errors for network disconnection and
+   * trigger TF network failure handling logics.
+   * 
+ * + * bool is_distributed_communication = 21; + * @return The isDistributedCommunication. + */ + @java.lang.Override + public boolean getIsDistributedCommunication() { + return isDistributedCommunication_; + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < inputArg_.size(); i++) { + output.writeMessage(2, inputArg_.get(i)); + } + for (int i = 0; i < outputArg_.size(); i++) { + output.writeMessage(3, outputArg_.get(i)); + } + for (int i = 0; i < attr_.size(); i++) { + output.writeMessage(4, attr_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, summary_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); + } + if (deprecation_ != null) { + output.writeMessage(8, getDeprecation()); + } + if (isAggregate_ != false) { + output.writeBool(16, isAggregate_); + } + if (isStateful_ != false) { + output.writeBool(17, isStateful_); + } + if (isCommutative_ != false) { + output.writeBool(18, isCommutative_); + } + if (allowsUninitializedInput_ != false) { + output.writeBool(19, allowsUninitializedInput_); + } + for (int i = 0; i < controlOutput_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 20, controlOutput_.getRaw(i)); + } + if (isDistributedCommunication_ != false) { + output.writeBool(21, isDistributedCommunication_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + for (int i = 0; i < inputArg_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, inputArg_.get(i)); + } + for (int i = 0; i < outputArg_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, outputArg_.get(i)); + } + for (int i = 0; i < attr_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, attr_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, summary_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); + } + if (deprecation_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeprecation()); + } + if (isAggregate_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(16, isAggregate_); + } + if (isStateful_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(17, isStateful_); + } + if (isCommutative_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(18, isCommutative_); + } + if (allowsUninitializedInput_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(19, allowsUninitializedInput_); + } + { + int dataSize = 0; + for (int i = 0; i < controlOutput_.size(); i++) { + dataSize += computeStringSizeNoTag(controlOutput_.getRaw(i)); + } + size += dataSize; + size += 2 * getControlOutputList().size(); + } + if (isDistributedCommunication_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(21, isDistributedCommunication_); + } + 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 org.tensorflow.proto.OpDef)) { + return super.equals(obj); + } + org.tensorflow.proto.OpDef other = (org.tensorflow.proto.OpDef) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getInputArgList() + .equals(other.getInputArgList())) return false; + if (!getOutputArgList() + .equals(other.getOutputArgList())) return false; + if (!getControlOutputList() + .equals(other.getControlOutputList())) return false; + if (!getAttrList() + .equals(other.getAttrList())) return false; + if (hasDeprecation() != other.hasDeprecation()) return false; + if (hasDeprecation()) { + if (!getDeprecation() + .equals(other.getDeprecation())) return false; + } + if (!getSummary() + .equals(other.getSummary())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (getIsCommutative() + != other.getIsCommutative()) return false; + if (getIsAggregate() + != other.getIsAggregate()) return false; + if (getIsStateful() + != other.getIsStateful()) return false; + if (getAllowsUninitializedInput() + != other.getAllowsUninitializedInput()) return false; + if (getIsDistributedCommunication() + != other.getIsDistributedCommunication()) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getInputArgCount() > 0) { + hash = (37 * hash) + INPUT_ARG_FIELD_NUMBER; + hash = (53 * hash) + getInputArgList().hashCode(); + } + if (getOutputArgCount() > 0) { + hash = (37 * hash) + OUTPUT_ARG_FIELD_NUMBER; + hash = (53 * hash) + getOutputArgList().hashCode(); + } + if (getControlOutputCount() > 0) { + hash = (37 * hash) + CONTROL_OUTPUT_FIELD_NUMBER; + hash = (53 * hash) + getControlOutputList().hashCode(); + } + if (getAttrCount() > 0) { + hash = (37 * hash) + ATTR_FIELD_NUMBER; + hash = (53 * hash) + getAttrList().hashCode(); + } + if (hasDeprecation()) { + hash = (37 * hash) + DEPRECATION_FIELD_NUMBER; + hash = (53 * hash) + getDeprecation().hashCode(); + } + hash = (37 * hash) + SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getSummary().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + IS_COMMUTATIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsCommutative()); + hash = (37 * hash) + IS_AGGREGATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsAggregate()); + hash = (37 * hash) + IS_STATEFUL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsStateful()); + hash = (37 * hash) + ALLOWS_UNINITIALIZED_INPUT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowsUninitializedInput()); + hash = (37 * hash) + IS_DISTRIBUTED_COMMUNICATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDistributedCommunication()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.OpDef parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpDef parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpDef parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpDef parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpDef parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpDef parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpDef parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpDef 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 org.tensorflow.proto.OpDef parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpDef 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 org.tensorflow.proto.OpDef parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpDef 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(org.tensorflow.proto.OpDef 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; + } + /** + *
+   * Defines an operation. A NodeDef in a GraphDef specifies an Op by
+   * using the "op" field which should match the name of a OpDef.
+   * LINT.IfChange
+   * 
+ * + * Protobuf type {@code tensorflow.OpDef} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.OpDef) + org.tensorflow.proto.OpDefOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpDef.class, org.tensorflow.proto.OpDef.Builder.class); + } + + // Construct using org.tensorflow.proto.OpDef.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (inputArgBuilder_ == null) { + inputArg_ = java.util.Collections.emptyList(); + } else { + inputArg_ = null; + inputArgBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (outputArgBuilder_ == null) { + outputArg_ = java.util.Collections.emptyList(); + } else { + outputArg_ = null; + outputArgBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + controlOutput_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + if (attrBuilder_ == null) { + attr_ = java.util.Collections.emptyList(); + } else { + attr_ = null; + attrBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (deprecationBuilder_ == null) { + deprecation_ = null; + } else { + deprecation_ = null; + deprecationBuilder_ = null; + } + summary_ = ""; + + description_ = ""; + + isCommutative_ = false; + + isAggregate_ = false; + + isStateful_ = false; + + allowsUninitializedInput_ = false; + + isDistributedCommunication_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpDef_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.OpDef getDefaultInstanceForType() { + return org.tensorflow.proto.OpDef.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.OpDef build() { + org.tensorflow.proto.OpDef result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.OpDef buildPartial() { + org.tensorflow.proto.OpDef result = new org.tensorflow.proto.OpDef(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (inputArgBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + inputArg_ = java.util.Collections.unmodifiableList(inputArg_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.inputArg_ = inputArg_; + } else { + result.inputArg_ = inputArgBuilder_.build(); + } + if (outputArgBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + outputArg_ = java.util.Collections.unmodifiableList(outputArg_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.outputArg_ = outputArg_; + } else { + result.outputArg_ = outputArgBuilder_.build(); + } + if (((bitField0_ & 0x00000004) != 0)) { + controlOutput_ = controlOutput_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.controlOutput_ = controlOutput_; + if (attrBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + attr_ = java.util.Collections.unmodifiableList(attr_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.attr_ = attr_; + } else { + result.attr_ = attrBuilder_.build(); + } + if (deprecationBuilder_ == null) { + result.deprecation_ = deprecation_; + } else { + result.deprecation_ = deprecationBuilder_.build(); + } + result.summary_ = summary_; + result.description_ = description_; + result.isCommutative_ = isCommutative_; + result.isAggregate_ = isAggregate_; + result.isStateful_ = isStateful_; + result.allowsUninitializedInput_ = allowsUninitializedInput_; + result.isDistributedCommunication_ = isDistributedCommunication_; + 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 org.tensorflow.proto.OpDef) { + return mergeFrom((org.tensorflow.proto.OpDef)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.OpDef other) { + if (other == org.tensorflow.proto.OpDef.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (inputArgBuilder_ == null) { + if (!other.inputArg_.isEmpty()) { + if (inputArg_.isEmpty()) { + inputArg_ = other.inputArg_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInputArgIsMutable(); + inputArg_.addAll(other.inputArg_); + } + onChanged(); + } + } else { + if (!other.inputArg_.isEmpty()) { + if (inputArgBuilder_.isEmpty()) { + inputArgBuilder_.dispose(); + inputArgBuilder_ = null; + inputArg_ = other.inputArg_; + bitField0_ = (bitField0_ & ~0x00000001); + inputArgBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputArgFieldBuilder() : null; + } else { + inputArgBuilder_.addAllMessages(other.inputArg_); + } + } + } + if (outputArgBuilder_ == null) { + if (!other.outputArg_.isEmpty()) { + if (outputArg_.isEmpty()) { + outputArg_ = other.outputArg_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureOutputArgIsMutable(); + outputArg_.addAll(other.outputArg_); + } + onChanged(); + } + } else { + if (!other.outputArg_.isEmpty()) { + if (outputArgBuilder_.isEmpty()) { + outputArgBuilder_.dispose(); + outputArgBuilder_ = null; + outputArg_ = other.outputArg_; + bitField0_ = (bitField0_ & ~0x00000002); + outputArgBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOutputArgFieldBuilder() : null; + } else { + outputArgBuilder_.addAllMessages(other.outputArg_); + } + } + } + if (!other.controlOutput_.isEmpty()) { + if (controlOutput_.isEmpty()) { + controlOutput_ = other.controlOutput_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureControlOutputIsMutable(); + controlOutput_.addAll(other.controlOutput_); + } + onChanged(); + } + if (attrBuilder_ == null) { + if (!other.attr_.isEmpty()) { + if (attr_.isEmpty()) { + attr_ = other.attr_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAttrIsMutable(); + attr_.addAll(other.attr_); + } + onChanged(); + } + } else { + if (!other.attr_.isEmpty()) { + if (attrBuilder_.isEmpty()) { + attrBuilder_.dispose(); + attrBuilder_ = null; + attr_ = other.attr_; + bitField0_ = (bitField0_ & ~0x00000008); + attrBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAttrFieldBuilder() : null; + } else { + attrBuilder_.addAllMessages(other.attr_); + } + } + } + if (other.hasDeprecation()) { + mergeDeprecation(other.getDeprecation()); + } + if (!other.getSummary().isEmpty()) { + summary_ = other.summary_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.getIsCommutative() != false) { + setIsCommutative(other.getIsCommutative()); + } + if (other.getIsAggregate() != false) { + setIsAggregate(other.getIsAggregate()); + } + if (other.getIsStateful() != false) { + setIsStateful(other.getIsStateful()); + } + if (other.getAllowsUninitializedInput() != false) { + setAllowsUninitializedInput(other.getAllowsUninitializedInput()); + } + if (other.getIsDistributedCommunication() != false) { + setIsDistributedCommunication(other.getIsDistributedCommunication()); + } + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + org.tensorflow.proto.OpDef.ArgDef m = + input.readMessage( + org.tensorflow.proto.OpDef.ArgDef.parser(), + extensionRegistry); + if (inputArgBuilder_ == null) { + ensureInputArgIsMutable(); + inputArg_.add(m); + } else { + inputArgBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + org.tensorflow.proto.OpDef.ArgDef m = + input.readMessage( + org.tensorflow.proto.OpDef.ArgDef.parser(), + extensionRegistry); + if (outputArgBuilder_ == null) { + ensureOutputArgIsMutable(); + outputArg_.add(m); + } else { + outputArgBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + org.tensorflow.proto.OpDef.AttrDef m = + input.readMessage( + org.tensorflow.proto.OpDef.AttrDef.parser(), + extensionRegistry); + if (attrBuilder_ == null) { + ensureAttrIsMutable(); + attr_.add(m); + } else { + attrBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + summary_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 66: { + input.readMessage( + getDeprecationFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 66 + case 128: { + isAggregate_ = input.readBool(); + + break; + } // case 128 + case 136: { + isStateful_ = input.readBool(); + + break; + } // case 136 + case 144: { + isCommutative_ = input.readBool(); + + break; + } // case 144 + case 152: { + allowsUninitializedInput_ = input.readBool(); + + break; + } // case 152 + case 162: { + java.lang.String s = input.readStringRequireUtf8(); + ensureControlOutputIsMutable(); + controlOutput_.add(s); + break; + } // case 162 + case 168: { + isDistributedCommunication_ = input.readBool(); + + break; + } // case 168 + 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 name_ = ""; + /** + *
+     * Op names starting with an underscore are reserved for internal use.
+     * Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Op names starting with an underscore are reserved for internal use.
+     * Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Op names starting with an underscore are reserved for internal use.
+     * Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Op names starting with an underscore are reserved for internal use.
+     * Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Op names starting with an underscore are reserved for internal use.
+     * Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.util.List inputArg_ = + java.util.Collections.emptyList(); + private void ensureInputArgIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + inputArg_ = new java.util.ArrayList(inputArg_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.OpDef.ArgDef, org.tensorflow.proto.OpDef.ArgDef.Builder, org.tensorflow.proto.OpDef.ArgDefOrBuilder> inputArgBuilder_; + + /** + *
+     * Description of the input(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + public java.util.List getInputArgList() { + if (inputArgBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputArg_); + } else { + return inputArgBuilder_.getMessageList(); + } + } + /** + *
+     * Description of the input(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + public int getInputArgCount() { + if (inputArgBuilder_ == null) { + return inputArg_.size(); + } else { + return inputArgBuilder_.getCount(); + } + } + /** + *
+     * Description of the input(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + public org.tensorflow.proto.OpDef.ArgDef getInputArg(int index) { + if (inputArgBuilder_ == null) { + return inputArg_.get(index); + } else { + return inputArgBuilder_.getMessage(index); + } + } + /** + *
+     * Description of the input(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + public Builder setInputArg( + int index, org.tensorflow.proto.OpDef.ArgDef value) { + if (inputArgBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputArgIsMutable(); + inputArg_.set(index, value); + onChanged(); + } else { + inputArgBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Description of the input(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + public Builder setInputArg( + int index, org.tensorflow.proto.OpDef.ArgDef.Builder builderForValue) { + if (inputArgBuilder_ == null) { + ensureInputArgIsMutable(); + inputArg_.set(index, builderForValue.build()); + onChanged(); + } else { + inputArgBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Description of the input(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + public Builder addInputArg(org.tensorflow.proto.OpDef.ArgDef value) { + if (inputArgBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputArgIsMutable(); + inputArg_.add(value); + onChanged(); + } else { + inputArgBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Description of the input(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + public Builder addInputArg( + int index, org.tensorflow.proto.OpDef.ArgDef value) { + if (inputArgBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputArgIsMutable(); + inputArg_.add(index, value); + onChanged(); + } else { + inputArgBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Description of the input(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + public Builder addInputArg( + org.tensorflow.proto.OpDef.ArgDef.Builder builderForValue) { + if (inputArgBuilder_ == null) { + ensureInputArgIsMutable(); + inputArg_.add(builderForValue.build()); + onChanged(); + } else { + inputArgBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Description of the input(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + public Builder addInputArg( + int index, org.tensorflow.proto.OpDef.ArgDef.Builder builderForValue) { + if (inputArgBuilder_ == null) { + ensureInputArgIsMutable(); + inputArg_.add(index, builderForValue.build()); + onChanged(); + } else { + inputArgBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Description of the input(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + public Builder addAllInputArg( + java.lang.Iterable values) { + if (inputArgBuilder_ == null) { + ensureInputArgIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputArg_); + onChanged(); + } else { + inputArgBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Description of the input(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + public Builder clearInputArg() { + if (inputArgBuilder_ == null) { + inputArg_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + inputArgBuilder_.clear(); + } + return this; + } + /** + *
+     * Description of the input(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + public Builder removeInputArg(int index) { + if (inputArgBuilder_ == null) { + ensureInputArgIsMutable(); + inputArg_.remove(index); + onChanged(); + } else { + inputArgBuilder_.remove(index); + } + return this; + } + /** + *
+     * Description of the input(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + public org.tensorflow.proto.OpDef.ArgDef.Builder getInputArgBuilder( + int index) { + return getInputArgFieldBuilder().getBuilder(index); + } + /** + *
+     * Description of the input(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + public org.tensorflow.proto.OpDef.ArgDefOrBuilder getInputArgOrBuilder( + int index) { + if (inputArgBuilder_ == null) { + return inputArg_.get(index); } else { + return inputArgBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Description of the input(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + public java.util.List + getInputArgOrBuilderList() { + if (inputArgBuilder_ != null) { + return inputArgBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputArg_); + } + } + /** + *
+     * Description of the input(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + public org.tensorflow.proto.OpDef.ArgDef.Builder addInputArgBuilder() { + return getInputArgFieldBuilder().addBuilder( + org.tensorflow.proto.OpDef.ArgDef.getDefaultInstance()); + } + /** + *
+     * Description of the input(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + public org.tensorflow.proto.OpDef.ArgDef.Builder addInputArgBuilder( + int index) { + return getInputArgFieldBuilder().addBuilder( + index, org.tensorflow.proto.OpDef.ArgDef.getDefaultInstance()); + } + /** + *
+     * Description of the input(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + public java.util.List + getInputArgBuilderList() { + return getInputArgFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.OpDef.ArgDef, org.tensorflow.proto.OpDef.ArgDef.Builder, org.tensorflow.proto.OpDef.ArgDefOrBuilder> + getInputArgFieldBuilder() { + if (inputArgBuilder_ == null) { + inputArgBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.OpDef.ArgDef, org.tensorflow.proto.OpDef.ArgDef.Builder, org.tensorflow.proto.OpDef.ArgDefOrBuilder>( + inputArg_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + inputArg_ = null; + } + return inputArgBuilder_; + } + + private java.util.List outputArg_ = + java.util.Collections.emptyList(); + private void ensureOutputArgIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + outputArg_ = new java.util.ArrayList(outputArg_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.OpDef.ArgDef, org.tensorflow.proto.OpDef.ArgDef.Builder, org.tensorflow.proto.OpDef.ArgDefOrBuilder> outputArgBuilder_; + + /** + *
+     * Description of the output(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + public java.util.List getOutputArgList() { + if (outputArgBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputArg_); + } else { + return outputArgBuilder_.getMessageList(); + } + } + /** + *
+     * Description of the output(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + public int getOutputArgCount() { + if (outputArgBuilder_ == null) { + return outputArg_.size(); + } else { + return outputArgBuilder_.getCount(); + } + } + /** + *
+     * Description of the output(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + public org.tensorflow.proto.OpDef.ArgDef getOutputArg(int index) { + if (outputArgBuilder_ == null) { + return outputArg_.get(index); + } else { + return outputArgBuilder_.getMessage(index); + } + } + /** + *
+     * Description of the output(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + public Builder setOutputArg( + int index, org.tensorflow.proto.OpDef.ArgDef value) { + if (outputArgBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputArgIsMutable(); + outputArg_.set(index, value); + onChanged(); + } else { + outputArgBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Description of the output(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + public Builder setOutputArg( + int index, org.tensorflow.proto.OpDef.ArgDef.Builder builderForValue) { + if (outputArgBuilder_ == null) { + ensureOutputArgIsMutable(); + outputArg_.set(index, builderForValue.build()); + onChanged(); + } else { + outputArgBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Description of the output(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + public Builder addOutputArg(org.tensorflow.proto.OpDef.ArgDef value) { + if (outputArgBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputArgIsMutable(); + outputArg_.add(value); + onChanged(); + } else { + outputArgBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Description of the output(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + public Builder addOutputArg( + int index, org.tensorflow.proto.OpDef.ArgDef value) { + if (outputArgBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputArgIsMutable(); + outputArg_.add(index, value); + onChanged(); + } else { + outputArgBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Description of the output(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + public Builder addOutputArg( + org.tensorflow.proto.OpDef.ArgDef.Builder builderForValue) { + if (outputArgBuilder_ == null) { + ensureOutputArgIsMutable(); + outputArg_.add(builderForValue.build()); + onChanged(); + } else { + outputArgBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Description of the output(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + public Builder addOutputArg( + int index, org.tensorflow.proto.OpDef.ArgDef.Builder builderForValue) { + if (outputArgBuilder_ == null) { + ensureOutputArgIsMutable(); + outputArg_.add(index, builderForValue.build()); + onChanged(); + } else { + outputArgBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Description of the output(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + public Builder addAllOutputArg( + java.lang.Iterable values) { + if (outputArgBuilder_ == null) { + ensureOutputArgIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outputArg_); + onChanged(); + } else { + outputArgBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Description of the output(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + public Builder clearOutputArg() { + if (outputArgBuilder_ == null) { + outputArg_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + outputArgBuilder_.clear(); + } + return this; + } + /** + *
+     * Description of the output(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + public Builder removeOutputArg(int index) { + if (outputArgBuilder_ == null) { + ensureOutputArgIsMutable(); + outputArg_.remove(index); + onChanged(); + } else { + outputArgBuilder_.remove(index); + } + return this; + } + /** + *
+     * Description of the output(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + public org.tensorflow.proto.OpDef.ArgDef.Builder getOutputArgBuilder( + int index) { + return getOutputArgFieldBuilder().getBuilder(index); + } + /** + *
+     * Description of the output(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + public org.tensorflow.proto.OpDef.ArgDefOrBuilder getOutputArgOrBuilder( + int index) { + if (outputArgBuilder_ == null) { + return outputArg_.get(index); } else { + return outputArgBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Description of the output(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + public java.util.List + getOutputArgOrBuilderList() { + if (outputArgBuilder_ != null) { + return outputArgBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputArg_); + } + } + /** + *
+     * Description of the output(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + public org.tensorflow.proto.OpDef.ArgDef.Builder addOutputArgBuilder() { + return getOutputArgFieldBuilder().addBuilder( + org.tensorflow.proto.OpDef.ArgDef.getDefaultInstance()); + } + /** + *
+     * Description of the output(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + public org.tensorflow.proto.OpDef.ArgDef.Builder addOutputArgBuilder( + int index) { + return getOutputArgFieldBuilder().addBuilder( + index, org.tensorflow.proto.OpDef.ArgDef.getDefaultInstance()); + } + /** + *
+     * Description of the output(s).
+     * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + public java.util.List + getOutputArgBuilderList() { + return getOutputArgFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.OpDef.ArgDef, org.tensorflow.proto.OpDef.ArgDef.Builder, org.tensorflow.proto.OpDef.ArgDefOrBuilder> + getOutputArgFieldBuilder() { + if (outputArgBuilder_ == null) { + outputArgBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.OpDef.ArgDef, org.tensorflow.proto.OpDef.ArgDef.Builder, org.tensorflow.proto.OpDef.ArgDefOrBuilder>( + outputArg_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + outputArg_ = null; + } + return outputArgBuilder_; + } + + private com.google.protobuf.LazyStringList controlOutput_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureControlOutputIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + controlOutput_ = new com.google.protobuf.LazyStringArrayList(controlOutput_); + bitField0_ |= 0x00000004; + } + } + /** + *
+     * Named control outputs for this operation. Useful only for composite
+     * operations (i.e. functions) which want to name different control outputs.
+     * 
+ * + * repeated string control_output = 20; + * @return A list containing the controlOutput. + */ + public com.google.protobuf.ProtocolStringList + getControlOutputList() { + return controlOutput_.getUnmodifiableView(); + } + /** + *
+     * Named control outputs for this operation. Useful only for composite
+     * operations (i.e. functions) which want to name different control outputs.
+     * 
+ * + * repeated string control_output = 20; + * @return The count of controlOutput. + */ + public int getControlOutputCount() { + return controlOutput_.size(); + } + /** + *
+     * Named control outputs for this operation. Useful only for composite
+     * operations (i.e. functions) which want to name different control outputs.
+     * 
+ * + * repeated string control_output = 20; + * @param index The index of the element to return. + * @return The controlOutput at the given index. + */ + public java.lang.String getControlOutput(int index) { + return controlOutput_.get(index); + } + /** + *
+     * Named control outputs for this operation. Useful only for composite
+     * operations (i.e. functions) which want to name different control outputs.
+     * 
+ * + * repeated string control_output = 20; + * @param index The index of the value to return. + * @return The bytes of the controlOutput at the given index. + */ + public com.google.protobuf.ByteString + getControlOutputBytes(int index) { + return controlOutput_.getByteString(index); + } + /** + *
+     * Named control outputs for this operation. Useful only for composite
+     * operations (i.e. functions) which want to name different control outputs.
+     * 
+ * + * repeated string control_output = 20; + * @param index The index to set the value at. + * @param value The controlOutput to set. + * @return This builder for chaining. + */ + public Builder setControlOutput( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureControlOutputIsMutable(); + controlOutput_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Named control outputs for this operation. Useful only for composite
+     * operations (i.e. functions) which want to name different control outputs.
+     * 
+ * + * repeated string control_output = 20; + * @param value The controlOutput to add. + * @return This builder for chaining. + */ + public Builder addControlOutput( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureControlOutputIsMutable(); + controlOutput_.add(value); + onChanged(); + return this; + } + /** + *
+     * Named control outputs for this operation. Useful only for composite
+     * operations (i.e. functions) which want to name different control outputs.
+     * 
+ * + * repeated string control_output = 20; + * @param values The controlOutput to add. + * @return This builder for chaining. + */ + public Builder addAllControlOutput( + java.lang.Iterable values) { + ensureControlOutputIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, controlOutput_); + onChanged(); + return this; + } + /** + *
+     * Named control outputs for this operation. Useful only for composite
+     * operations (i.e. functions) which want to name different control outputs.
+     * 
+ * + * repeated string control_output = 20; + * @return This builder for chaining. + */ + public Builder clearControlOutput() { + controlOutput_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Named control outputs for this operation. Useful only for composite
+     * operations (i.e. functions) which want to name different control outputs.
+     * 
+ * + * repeated string control_output = 20; + * @param value The bytes of the controlOutput to add. + * @return This builder for chaining. + */ + public Builder addControlOutputBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureControlOutputIsMutable(); + controlOutput_.add(value); + onChanged(); + return this; + } + + private java.util.List attr_ = + java.util.Collections.emptyList(); + private void ensureAttrIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + attr_ = new java.util.ArrayList(attr_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.OpDef.AttrDef, org.tensorflow.proto.OpDef.AttrDef.Builder, org.tensorflow.proto.OpDef.AttrDefOrBuilder> attrBuilder_; + + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + public java.util.List getAttrList() { + if (attrBuilder_ == null) { + return java.util.Collections.unmodifiableList(attr_); + } else { + return attrBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + public int getAttrCount() { + if (attrBuilder_ == null) { + return attr_.size(); + } else { + return attrBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + public org.tensorflow.proto.OpDef.AttrDef getAttr(int index) { + if (attrBuilder_ == null) { + return attr_.get(index); + } else { + return attrBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + public Builder setAttr( + int index, org.tensorflow.proto.OpDef.AttrDef value) { + if (attrBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttrIsMutable(); + attr_.set(index, value); + onChanged(); + } else { + attrBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + public Builder setAttr( + int index, org.tensorflow.proto.OpDef.AttrDef.Builder builderForValue) { + if (attrBuilder_ == null) { + ensureAttrIsMutable(); + attr_.set(index, builderForValue.build()); + onChanged(); + } else { + attrBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + public Builder addAttr(org.tensorflow.proto.OpDef.AttrDef value) { + if (attrBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttrIsMutable(); + attr_.add(value); + onChanged(); + } else { + attrBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + public Builder addAttr( + int index, org.tensorflow.proto.OpDef.AttrDef value) { + if (attrBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttrIsMutable(); + attr_.add(index, value); + onChanged(); + } else { + attrBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + public Builder addAttr( + org.tensorflow.proto.OpDef.AttrDef.Builder builderForValue) { + if (attrBuilder_ == null) { + ensureAttrIsMutable(); + attr_.add(builderForValue.build()); + onChanged(); + } else { + attrBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + public Builder addAttr( + int index, org.tensorflow.proto.OpDef.AttrDef.Builder builderForValue) { + if (attrBuilder_ == null) { + ensureAttrIsMutable(); + attr_.add(index, builderForValue.build()); + onChanged(); + } else { + attrBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + public Builder addAllAttr( + java.lang.Iterable values) { + if (attrBuilder_ == null) { + ensureAttrIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, attr_); + onChanged(); + } else { + attrBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + public Builder clearAttr() { + if (attrBuilder_ == null) { + attr_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + attrBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + public Builder removeAttr(int index) { + if (attrBuilder_ == null) { + ensureAttrIsMutable(); + attr_.remove(index); + onChanged(); + } else { + attrBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + public org.tensorflow.proto.OpDef.AttrDef.Builder getAttrBuilder( + int index) { + return getAttrFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + public org.tensorflow.proto.OpDef.AttrDefOrBuilder getAttrOrBuilder( + int index) { + if (attrBuilder_ == null) { + return attr_.get(index); } else { + return attrBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + public java.util.List + getAttrOrBuilderList() { + if (attrBuilder_ != null) { + return attrBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(attr_); + } + } + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + public org.tensorflow.proto.OpDef.AttrDef.Builder addAttrBuilder() { + return getAttrFieldBuilder().addBuilder( + org.tensorflow.proto.OpDef.AttrDef.getDefaultInstance()); + } + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + public org.tensorflow.proto.OpDef.AttrDef.Builder addAttrBuilder( + int index) { + return getAttrFieldBuilder().addBuilder( + index, org.tensorflow.proto.OpDef.AttrDef.getDefaultInstance()); + } + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + public java.util.List + getAttrBuilderList() { + return getAttrFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.OpDef.AttrDef, org.tensorflow.proto.OpDef.AttrDef.Builder, org.tensorflow.proto.OpDef.AttrDefOrBuilder> + getAttrFieldBuilder() { + if (attrBuilder_ == null) { + attrBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.OpDef.AttrDef, org.tensorflow.proto.OpDef.AttrDef.Builder, org.tensorflow.proto.OpDef.AttrDefOrBuilder>( + attr_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + attr_ = null; + } + return attrBuilder_; + } + + private org.tensorflow.proto.OpDeprecation deprecation_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.OpDeprecation, org.tensorflow.proto.OpDeprecation.Builder, org.tensorflow.proto.OpDeprecationOrBuilder> deprecationBuilder_; + /** + *
+     * Optional deprecation based on GraphDef versions.
+     * 
+ * + * .tensorflow.OpDeprecation deprecation = 8; + * @return Whether the deprecation field is set. + */ + public boolean hasDeprecation() { + return deprecationBuilder_ != null || deprecation_ != null; + } + /** + *
+     * Optional deprecation based on GraphDef versions.
+     * 
+ * + * .tensorflow.OpDeprecation deprecation = 8; + * @return The deprecation. + */ + public org.tensorflow.proto.OpDeprecation getDeprecation() { + if (deprecationBuilder_ == null) { + return deprecation_ == null ? org.tensorflow.proto.OpDeprecation.getDefaultInstance() : deprecation_; + } else { + return deprecationBuilder_.getMessage(); + } + } + /** + *
+     * Optional deprecation based on GraphDef versions.
+     * 
+ * + * .tensorflow.OpDeprecation deprecation = 8; + */ + public Builder setDeprecation(org.tensorflow.proto.OpDeprecation value) { + if (deprecationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deprecation_ = value; + onChanged(); + } else { + deprecationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Optional deprecation based on GraphDef versions.
+     * 
+ * + * .tensorflow.OpDeprecation deprecation = 8; + */ + public Builder setDeprecation( + org.tensorflow.proto.OpDeprecation.Builder builderForValue) { + if (deprecationBuilder_ == null) { + deprecation_ = builderForValue.build(); + onChanged(); + } else { + deprecationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Optional deprecation based on GraphDef versions.
+     * 
+ * + * .tensorflow.OpDeprecation deprecation = 8; + */ + public Builder mergeDeprecation(org.tensorflow.proto.OpDeprecation value) { + if (deprecationBuilder_ == null) { + if (deprecation_ != null) { + deprecation_ = + org.tensorflow.proto.OpDeprecation.newBuilder(deprecation_).mergeFrom(value).buildPartial(); + } else { + deprecation_ = value; + } + onChanged(); + } else { + deprecationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Optional deprecation based on GraphDef versions.
+     * 
+ * + * .tensorflow.OpDeprecation deprecation = 8; + */ + public Builder clearDeprecation() { + if (deprecationBuilder_ == null) { + deprecation_ = null; + onChanged(); + } else { + deprecation_ = null; + deprecationBuilder_ = null; + } + + return this; + } + /** + *
+     * Optional deprecation based on GraphDef versions.
+     * 
+ * + * .tensorflow.OpDeprecation deprecation = 8; + */ + public org.tensorflow.proto.OpDeprecation.Builder getDeprecationBuilder() { + + onChanged(); + return getDeprecationFieldBuilder().getBuilder(); + } + /** + *
+     * Optional deprecation based on GraphDef versions.
+     * 
+ * + * .tensorflow.OpDeprecation deprecation = 8; + */ + public org.tensorflow.proto.OpDeprecationOrBuilder getDeprecationOrBuilder() { + if (deprecationBuilder_ != null) { + return deprecationBuilder_.getMessageOrBuilder(); + } else { + return deprecation_ == null ? + org.tensorflow.proto.OpDeprecation.getDefaultInstance() : deprecation_; + } + } + /** + *
+     * Optional deprecation based on GraphDef versions.
+     * 
+ * + * .tensorflow.OpDeprecation deprecation = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.OpDeprecation, org.tensorflow.proto.OpDeprecation.Builder, org.tensorflow.proto.OpDeprecationOrBuilder> + getDeprecationFieldBuilder() { + if (deprecationBuilder_ == null) { + deprecationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.OpDeprecation, org.tensorflow.proto.OpDeprecation.Builder, org.tensorflow.proto.OpDeprecationOrBuilder>( + getDeprecation(), + getParentForChildren(), + isClean()); + deprecation_ = null; + } + return deprecationBuilder_; + } + + private java.lang.Object summary_ = ""; + /** + *
+     * One-line human-readable description of what the Op does.
+     * 
+ * + * string summary = 5; + * @return The summary. + */ + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summary_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * One-line human-readable description of what the Op does.
+     * 
+ * + * string summary = 5; + * @return The bytes for summary. + */ + public com.google.protobuf.ByteString + getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + summary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * One-line human-readable description of what the Op does.
+     * 
+ * + * string summary = 5; + * @param value The summary to set. + * @return This builder for chaining. + */ + public Builder setSummary( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + summary_ = value; + onChanged(); + return this; + } + /** + *
+     * One-line human-readable description of what the Op does.
+     * 
+ * + * string summary = 5; + * @return This builder for chaining. + */ + public Builder clearSummary() { + + summary_ = getDefaultInstance().getSummary(); + onChanged(); + return this; + } + /** + *
+     * One-line human-readable description of what the Op does.
+     * 
+ * + * string summary = 5; + * @param value The bytes for summary to set. + * @return This builder for chaining. + */ + public Builder setSummaryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + summary_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+     * Additional, longer human-readable description of what the Op does.
+     * 
+ * + * string description = 6; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Additional, longer human-readable description of what the Op does.
+     * 
+ * + * string description = 6; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Additional, longer human-readable description of what the Op does.
+     * 
+ * + * string description = 6; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+     * Additional, longer human-readable description of what the Op does.
+     * 
+ * + * string description = 6; + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+     * Additional, longer human-readable description of what the Op does.
+     * 
+ * + * string description = 6; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private boolean isCommutative_ ; + /** + *
+     * True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
+     * 
+ * + * bool is_commutative = 18; + * @return The isCommutative. + */ + @java.lang.Override + public boolean getIsCommutative() { + return isCommutative_; + } + /** + *
+     * True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
+     * 
+ * + * bool is_commutative = 18; + * @param value The isCommutative to set. + * @return This builder for chaining. + */ + public Builder setIsCommutative(boolean value) { + + isCommutative_ = value; + onChanged(); + return this; + } + /** + *
+     * True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
+     * 
+ * + * bool is_commutative = 18; + * @return This builder for chaining. + */ + public Builder clearIsCommutative() { + + isCommutative_ = false; + onChanged(); + return this; + } + + private boolean isAggregate_ ; + /** + *
+     * If is_aggregate is true, then this operation accepts N >= 2
+     * inputs and produces 1 output all of the same type.  Should be
+     * associative and commutative, and produce output with the same
+     * shape as the input.  The optimizer may replace an aggregate op
+     * taking input from multiple devices with a tree of aggregate ops
+     * that aggregate locally within each device (and possibly within
+     * groups of nearby devices) before communicating.
+     * TODO(josh11b): Implement that optimization.
+     * 
+ * + * bool is_aggregate = 16; + * @return The isAggregate. + */ + @java.lang.Override + public boolean getIsAggregate() { + return isAggregate_; + } + /** + *
+     * If is_aggregate is true, then this operation accepts N >= 2
+     * inputs and produces 1 output all of the same type.  Should be
+     * associative and commutative, and produce output with the same
+     * shape as the input.  The optimizer may replace an aggregate op
+     * taking input from multiple devices with a tree of aggregate ops
+     * that aggregate locally within each device (and possibly within
+     * groups of nearby devices) before communicating.
+     * TODO(josh11b): Implement that optimization.
+     * 
+ * + * bool is_aggregate = 16; + * @param value The isAggregate to set. + * @return This builder for chaining. + */ + public Builder setIsAggregate(boolean value) { + + isAggregate_ = value; + onChanged(); + return this; + } + /** + *
+     * If is_aggregate is true, then this operation accepts N >= 2
+     * inputs and produces 1 output all of the same type.  Should be
+     * associative and commutative, and produce output with the same
+     * shape as the input.  The optimizer may replace an aggregate op
+     * taking input from multiple devices with a tree of aggregate ops
+     * that aggregate locally within each device (and possibly within
+     * groups of nearby devices) before communicating.
+     * TODO(josh11b): Implement that optimization.
+     * 
+ * + * bool is_aggregate = 16; + * @return This builder for chaining. + */ + public Builder clearIsAggregate() { + + isAggregate_ = false; + onChanged(); + return this; + } + + private boolean isStateful_ ; + /** + *
+     * Ops are marked as stateful if their behavior depends on some state beyond
+     * their input tensors (e.g. variable reading op) or if they have
+     * a side-effect (e.g. printing or asserting ops). Equivalently, stateless ops
+     * must always produce the same output for the same input and have
+     * no side-effects.
+     * By default Ops may be moved between devices.  Stateful ops should
+     * either not be moved, or should only be moved if that state can also
+     * be moved (e.g. via some sort of save / restore).
+     * Stateful ops are guaranteed to never be optimized away by Common
+     * Subexpression Elimination (CSE).
+     * 
+ * + * bool is_stateful = 17; + * @return The isStateful. + */ + @java.lang.Override + public boolean getIsStateful() { + return isStateful_; + } + /** + *
+     * Ops are marked as stateful if their behavior depends on some state beyond
+     * their input tensors (e.g. variable reading op) or if they have
+     * a side-effect (e.g. printing or asserting ops). Equivalently, stateless ops
+     * must always produce the same output for the same input and have
+     * no side-effects.
+     * By default Ops may be moved between devices.  Stateful ops should
+     * either not be moved, or should only be moved if that state can also
+     * be moved (e.g. via some sort of save / restore).
+     * Stateful ops are guaranteed to never be optimized away by Common
+     * Subexpression Elimination (CSE).
+     * 
+ * + * bool is_stateful = 17; + * @param value The isStateful to set. + * @return This builder for chaining. + */ + public Builder setIsStateful(boolean value) { + + isStateful_ = value; + onChanged(); + return this; + } + /** + *
+     * Ops are marked as stateful if their behavior depends on some state beyond
+     * their input tensors (e.g. variable reading op) or if they have
+     * a side-effect (e.g. printing or asserting ops). Equivalently, stateless ops
+     * must always produce the same output for the same input and have
+     * no side-effects.
+     * By default Ops may be moved between devices.  Stateful ops should
+     * either not be moved, or should only be moved if that state can also
+     * be moved (e.g. via some sort of save / restore).
+     * Stateful ops are guaranteed to never be optimized away by Common
+     * Subexpression Elimination (CSE).
+     * 
+ * + * bool is_stateful = 17; + * @return This builder for chaining. + */ + public Builder clearIsStateful() { + + isStateful_ = false; + onChanged(); + return this; + } + + private boolean allowsUninitializedInput_ ; + /** + *
+     * By default, all inputs to an Op must be initialized Tensors.  Ops
+     * that may initialize tensors for the first time should set this
+     * field to true, to allow the Op to take an uninitialized Tensor as
+     * input.
+     * 
+ * + * bool allows_uninitialized_input = 19; + * @return The allowsUninitializedInput. + */ + @java.lang.Override + public boolean getAllowsUninitializedInput() { + return allowsUninitializedInput_; + } + /** + *
+     * By default, all inputs to an Op must be initialized Tensors.  Ops
+     * that may initialize tensors for the first time should set this
+     * field to true, to allow the Op to take an uninitialized Tensor as
+     * input.
+     * 
+ * + * bool allows_uninitialized_input = 19; + * @param value The allowsUninitializedInput to set. + * @return This builder for chaining. + */ + public Builder setAllowsUninitializedInput(boolean value) { + + allowsUninitializedInput_ = value; + onChanged(); + return this; + } + /** + *
+     * By default, all inputs to an Op must be initialized Tensors.  Ops
+     * that may initialize tensors for the first time should set this
+     * field to true, to allow the Op to take an uninitialized Tensor as
+     * input.
+     * 
+ * + * bool allows_uninitialized_input = 19; + * @return This builder for chaining. + */ + public Builder clearAllowsUninitializedInput() { + + allowsUninitializedInput_ = false; + onChanged(); + return this; + } + + private boolean isDistributedCommunication_ ; + /** + *
+     * Indicates whether the op implementation uses distributed communication.
+     * If True, the op is allowed to return errors for network disconnection and
+     * trigger TF network failure handling logics.
+     * 
+ * + * bool is_distributed_communication = 21; + * @return The isDistributedCommunication. + */ + @java.lang.Override + public boolean getIsDistributedCommunication() { + return isDistributedCommunication_; + } + /** + *
+     * Indicates whether the op implementation uses distributed communication.
+     * If True, the op is allowed to return errors for network disconnection and
+     * trigger TF network failure handling logics.
+     * 
+ * + * bool is_distributed_communication = 21; + * @param value The isDistributedCommunication to set. + * @return This builder for chaining. + */ + public Builder setIsDistributedCommunication(boolean value) { + + isDistributedCommunication_ = value; + onChanged(); + return this; + } + /** + *
+     * Indicates whether the op implementation uses distributed communication.
+     * If True, the op is allowed to return errors for network disconnection and
+     * trigger TF network failure handling logics.
+     * 
+ * + * bool is_distributed_communication = 21; + * @return This builder for chaining. + */ + public Builder clearIsDistributedCommunication() { + + isDistributedCommunication_ = false; + 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:tensorflow.OpDef) + } + + // @@protoc_insertion_point(class_scope:tensorflow.OpDef) + private static final org.tensorflow.proto.OpDef DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.OpDef(); + } + + public static org.tensorflow.proto.OpDef getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpDef 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 org.tensorflow.proto.OpDef getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpDefOrBuilder.java new file mode 100644 index 00000000000..65df7e4bbe1 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpDefOrBuilder.java @@ -0,0 +1,326 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/op_def.proto + +package org.tensorflow.proto; + +public interface OpDefOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.OpDef) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Op names starting with an underscore are reserved for internal use.
+   * Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Op names starting with an underscore are reserved for internal use.
+   * Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Description of the input(s).
+   * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + java.util.List + getInputArgList(); + /** + *
+   * Description of the input(s).
+   * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + org.tensorflow.proto.OpDef.ArgDef getInputArg(int index); + /** + *
+   * Description of the input(s).
+   * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + int getInputArgCount(); + /** + *
+   * Description of the input(s).
+   * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + java.util.List + getInputArgOrBuilderList(); + /** + *
+   * Description of the input(s).
+   * 
+ * + * repeated .tensorflow.OpDef.ArgDef input_arg = 2; + */ + org.tensorflow.proto.OpDef.ArgDefOrBuilder getInputArgOrBuilder( + int index); + + /** + *
+   * Description of the output(s).
+   * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + java.util.List + getOutputArgList(); + /** + *
+   * Description of the output(s).
+   * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + org.tensorflow.proto.OpDef.ArgDef getOutputArg(int index); + /** + *
+   * Description of the output(s).
+   * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + int getOutputArgCount(); + /** + *
+   * Description of the output(s).
+   * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + java.util.List + getOutputArgOrBuilderList(); + /** + *
+   * Description of the output(s).
+   * 
+ * + * repeated .tensorflow.OpDef.ArgDef output_arg = 3; + */ + org.tensorflow.proto.OpDef.ArgDefOrBuilder getOutputArgOrBuilder( + int index); + + /** + *
+   * Named control outputs for this operation. Useful only for composite
+   * operations (i.e. functions) which want to name different control outputs.
+   * 
+ * + * repeated string control_output = 20; + * @return A list containing the controlOutput. + */ + java.util.List + getControlOutputList(); + /** + *
+   * Named control outputs for this operation. Useful only for composite
+   * operations (i.e. functions) which want to name different control outputs.
+   * 
+ * + * repeated string control_output = 20; + * @return The count of controlOutput. + */ + int getControlOutputCount(); + /** + *
+   * Named control outputs for this operation. Useful only for composite
+   * operations (i.e. functions) which want to name different control outputs.
+   * 
+ * + * repeated string control_output = 20; + * @param index The index of the element to return. + * @return The controlOutput at the given index. + */ + java.lang.String getControlOutput(int index); + /** + *
+   * Named control outputs for this operation. Useful only for composite
+   * operations (i.e. functions) which want to name different control outputs.
+   * 
+ * + * repeated string control_output = 20; + * @param index The index of the value to return. + * @return The bytes of the controlOutput at the given index. + */ + com.google.protobuf.ByteString + getControlOutputBytes(int index); + + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + java.util.List + getAttrList(); + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + org.tensorflow.proto.OpDef.AttrDef getAttr(int index); + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + int getAttrCount(); + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + java.util.List + getAttrOrBuilderList(); + /** + * repeated .tensorflow.OpDef.AttrDef attr = 4; + */ + org.tensorflow.proto.OpDef.AttrDefOrBuilder getAttrOrBuilder( + int index); + + /** + *
+   * Optional deprecation based on GraphDef versions.
+   * 
+ * + * .tensorflow.OpDeprecation deprecation = 8; + * @return Whether the deprecation field is set. + */ + boolean hasDeprecation(); + /** + *
+   * Optional deprecation based on GraphDef versions.
+   * 
+ * + * .tensorflow.OpDeprecation deprecation = 8; + * @return The deprecation. + */ + org.tensorflow.proto.OpDeprecation getDeprecation(); + /** + *
+   * Optional deprecation based on GraphDef versions.
+   * 
+ * + * .tensorflow.OpDeprecation deprecation = 8; + */ + org.tensorflow.proto.OpDeprecationOrBuilder getDeprecationOrBuilder(); + + /** + *
+   * One-line human-readable description of what the Op does.
+   * 
+ * + * string summary = 5; + * @return The summary. + */ + java.lang.String getSummary(); + /** + *
+   * One-line human-readable description of what the Op does.
+   * 
+ * + * string summary = 5; + * @return The bytes for summary. + */ + com.google.protobuf.ByteString + getSummaryBytes(); + + /** + *
+   * Additional, longer human-readable description of what the Op does.
+   * 
+ * + * string description = 6; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+   * Additional, longer human-readable description of what the Op does.
+   * 
+ * + * string description = 6; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+   * True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
+   * 
+ * + * bool is_commutative = 18; + * @return The isCommutative. + */ + boolean getIsCommutative(); + + /** + *
+   * If is_aggregate is true, then this operation accepts N >= 2
+   * inputs and produces 1 output all of the same type.  Should be
+   * associative and commutative, and produce output with the same
+   * shape as the input.  The optimizer may replace an aggregate op
+   * taking input from multiple devices with a tree of aggregate ops
+   * that aggregate locally within each device (and possibly within
+   * groups of nearby devices) before communicating.
+   * TODO(josh11b): Implement that optimization.
+   * 
+ * + * bool is_aggregate = 16; + * @return The isAggregate. + */ + boolean getIsAggregate(); + + /** + *
+   * Ops are marked as stateful if their behavior depends on some state beyond
+   * their input tensors (e.g. variable reading op) or if they have
+   * a side-effect (e.g. printing or asserting ops). Equivalently, stateless ops
+   * must always produce the same output for the same input and have
+   * no side-effects.
+   * By default Ops may be moved between devices.  Stateful ops should
+   * either not be moved, or should only be moved if that state can also
+   * be moved (e.g. via some sort of save / restore).
+   * Stateful ops are guaranteed to never be optimized away by Common
+   * Subexpression Elimination (CSE).
+   * 
+ * + * bool is_stateful = 17; + * @return The isStateful. + */ + boolean getIsStateful(); + + /** + *
+   * By default, all inputs to an Op must be initialized Tensors.  Ops
+   * that may initialize tensors for the first time should set this
+   * field to true, to allow the Op to take an uninitialized Tensor as
+   * input.
+   * 
+ * + * bool allows_uninitialized_input = 19; + * @return The allowsUninitializedInput. + */ + boolean getAllowsUninitializedInput(); + + /** + *
+   * Indicates whether the op implementation uses distributed communication.
+   * If True, the op is allowed to return errors for network disconnection and
+   * trigger TF network failure handling logics.
+   * 
+ * + * bool is_distributed_communication = 21; + * @return The isDistributedCommunication. + */ + boolean getIsDistributedCommunication(); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpDefProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpDefProtos.java new file mode 100644 index 00000000000..f19f72b5012 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpDefProtos.java @@ -0,0 +1,131 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/op_def.proto + +package org.tensorflow.proto; + +public final class OpDefProtos { + private OpDefProtos() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_OpDef_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_OpDef_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_OpDef_ArgDef_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_OpDef_ArgDef_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_OpDef_AttrDef_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_OpDef_AttrDef_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_OpDeprecation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_OpDeprecation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_OpList_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_OpList_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n&tensorflow/core/framework/op_def.proto" + + "\022\ntensorflow\032*tensorflow/core/framework/" + + "attr_value.proto\032)tensorflow/core/framew" + + "ork/full_type.proto\032/tensorflow/core/fra" + + "mework/resource_handle.proto\032%tensorflow" + + "/core/framework/types.proto\"\363\006\n\005OpDef\022\014\n" + + "\004name\030\001 \001(\t\022+\n\tinput_arg\030\002 \003(\0132\030.tensorf" + + "low.OpDef.ArgDef\022,\n\noutput_arg\030\003 \003(\0132\030.t" + + "ensorflow.OpDef.ArgDef\022\026\n\016control_output" + + "\030\024 \003(\t\022\'\n\004attr\030\004 \003(\0132\031.tensorflow.OpDef." + + "AttrDef\022.\n\013deprecation\030\010 \001(\0132\031.tensorflo" + + "w.OpDeprecation\022\017\n\007summary\030\005 \001(\t\022\023\n\013desc" + + "ription\030\006 \001(\t\022\026\n\016is_commutative\030\022 \001(\010\022\024\n" + + "\014is_aggregate\030\020 \001(\010\022\023\n\013is_stateful\030\021 \001(\010" + + "\022\"\n\032allows_uninitialized_input\030\023 \001(\010\022$\n\034" + + "is_distributed_communication\030\025 \001(\010\032\234\002\n\006A" + + "rgDef\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t" + + "\022\"\n\004type\030\003 \001(\0162\024.tensorflow.DataType\022\021\n\t" + + "type_attr\030\004 \001(\t\022\023\n\013number_attr\030\005 \001(\t\022\026\n\016" + + "type_list_attr\030\006 \001(\t\022B\n\013handle_data\030\007 \003(" + + "\0132-.tensorflow.ResourceHandleProto.Dtype" + + "AndShape\022\016\n\006is_ref\030\020 \001(\010\0227\n\026experimental" + + "_full_type\030\021 \001(\0132\027.tensorflow.FullTypeDe" + + "f\032\275\001\n\007AttrDef\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002 \001(" + + "\t\022,\n\rdefault_value\030\003 \001(\0132\025.tensorflow.At" + + "trValue\022\023\n\013description\030\004 \001(\t\022\023\n\013has_mini" + + "mum\030\005 \001(\010\022\017\n\007minimum\030\006 \001(\003\022-\n\016allowed_va" + + "lues\030\007 \001(\0132\025.tensorflow.AttrValue\"5\n\rOpD" + + "eprecation\022\017\n\007version\030\001 \001(\005\022\023\n\013explanati" + + "on\030\002 \001(\t\"\'\n\006OpList\022\035\n\002op\030\001 \003(\0132\021.tensorf" + + "low.OpDefBw\n\024org.tensorflow.protoB\013OpDef" + + "ProtosP\001ZMgithub.com/tensorflow/tensorfl" + + "ow/tensorflow/go/core/framework/op_def_g" + + "o_proto\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + org.tensorflow.proto.AttrValueProtos.getDescriptor(), + org.tensorflow.proto.FullTypeProtos.getDescriptor(), + org.tensorflow.proto.ResourceHandle.getDescriptor(), + org.tensorflow.proto.TypesProtos.getDescriptor(), + }); + internal_static_tensorflow_OpDef_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_OpDef_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_OpDef_descriptor, + new java.lang.String[] { "Name", "InputArg", "OutputArg", "ControlOutput", "Attr", "Deprecation", "Summary", "Description", "IsCommutative", "IsAggregate", "IsStateful", "AllowsUninitializedInput", "IsDistributedCommunication", }); + internal_static_tensorflow_OpDef_ArgDef_descriptor = + internal_static_tensorflow_OpDef_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_OpDef_ArgDef_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_OpDef_ArgDef_descriptor, + new java.lang.String[] { "Name", "Description", "Type", "TypeAttr", "NumberAttr", "TypeListAttr", "HandleData", "IsRef", "ExperimentalFullType", }); + internal_static_tensorflow_OpDef_AttrDef_descriptor = + internal_static_tensorflow_OpDef_descriptor.getNestedTypes().get(1); + internal_static_tensorflow_OpDef_AttrDef_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_OpDef_AttrDef_descriptor, + new java.lang.String[] { "Name", "Type", "DefaultValue", "Description", "HasMinimum", "Minimum", "AllowedValues", }); + internal_static_tensorflow_OpDeprecation_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_tensorflow_OpDeprecation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_OpDeprecation_descriptor, + new java.lang.String[] { "Version", "Explanation", }); + internal_static_tensorflow_OpList_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_tensorflow_OpList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_OpList_descriptor, + new java.lang.String[] { "Op", }); + org.tensorflow.proto.AttrValueProtos.getDescriptor(); + org.tensorflow.proto.FullTypeProtos.getDescriptor(); + org.tensorflow.proto.ResourceHandle.getDescriptor(); + org.tensorflow.proto.TypesProtos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpDeprecation.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpDeprecation.java new file mode 100644 index 00000000000..36bbe4851b8 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpDeprecation.java @@ -0,0 +1,654 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/op_def.proto + +package org.tensorflow.proto; + +/** + *
+ * Information about version-dependent deprecation of an op
+ * 
+ * + * Protobuf type {@code tensorflow.OpDeprecation} + */ +public final class OpDeprecation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.OpDeprecation) + OpDeprecationOrBuilder { +private static final long serialVersionUID = 0L; + // Use OpDeprecation.newBuilder() to construct. + private OpDeprecation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OpDeprecation() { + explanation_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OpDeprecation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpDeprecation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpDeprecation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpDeprecation.class, org.tensorflow.proto.OpDeprecation.Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + private int version_; + /** + *
+   * First GraphDef version at which the op is disallowed.
+   * 
+ * + * int32 version = 1; + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + + public static final int EXPLANATION_FIELD_NUMBER = 2; + private volatile java.lang.Object explanation_; + /** + *
+   * Explanation of why it was deprecated and what to use instead.
+   * 
+ * + * string explanation = 2; + * @return The explanation. + */ + @java.lang.Override + public java.lang.String getExplanation() { + java.lang.Object ref = explanation_; + 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(); + explanation_ = s; + return s; + } + } + /** + *
+   * Explanation of why it was deprecated and what to use instead.
+   * 
+ * + * string explanation = 2; + * @return The bytes for explanation. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getExplanationBytes() { + java.lang.Object ref = explanation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + explanation_ = 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 (version_ != 0) { + output.writeInt32(1, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(explanation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, explanation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (version_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(explanation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, explanation_); + } + 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 org.tensorflow.proto.OpDeprecation)) { + return super.equals(obj); + } + org.tensorflow.proto.OpDeprecation other = (org.tensorflow.proto.OpDeprecation) obj; + + if (getVersion() + != other.getVersion()) return false; + if (!getExplanation() + .equals(other.getExplanation())) 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) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion(); + hash = (37 * hash) + EXPLANATION_FIELD_NUMBER; + hash = (53 * hash) + getExplanation().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.OpDeprecation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpDeprecation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpDeprecation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpDeprecation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpDeprecation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpDeprecation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpDeprecation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpDeprecation 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 org.tensorflow.proto.OpDeprecation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpDeprecation 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 org.tensorflow.proto.OpDeprecation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpDeprecation 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(org.tensorflow.proto.OpDeprecation 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; + } + /** + *
+   * Information about version-dependent deprecation of an op
+   * 
+ * + * Protobuf type {@code tensorflow.OpDeprecation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.OpDeprecation) + org.tensorflow.proto.OpDeprecationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpDeprecation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpDeprecation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpDeprecation.class, org.tensorflow.proto.OpDeprecation.Builder.class); + } + + // Construct using org.tensorflow.proto.OpDeprecation.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = 0; + + explanation_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpDeprecation_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.OpDeprecation getDefaultInstanceForType() { + return org.tensorflow.proto.OpDeprecation.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.OpDeprecation build() { + org.tensorflow.proto.OpDeprecation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.OpDeprecation buildPartial() { + org.tensorflow.proto.OpDeprecation result = new org.tensorflow.proto.OpDeprecation(this); + result.version_ = version_; + result.explanation_ = explanation_; + 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 org.tensorflow.proto.OpDeprecation) { + return mergeFrom((org.tensorflow.proto.OpDeprecation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.OpDeprecation other) { + if (other == org.tensorflow.proto.OpDeprecation.getDefaultInstance()) return this; + if (other.getVersion() != 0) { + setVersion(other.getVersion()); + } + if (!other.getExplanation().isEmpty()) { + explanation_ = other.explanation_; + 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 8: { + version_ = input.readInt32(); + + break; + } // case 8 + case 18: { + explanation_ = input.readStringRequireUtf8(); + + 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 version_ ; + /** + *
+     * First GraphDef version at which the op is disallowed.
+     * 
+ * + * int32 version = 1; + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + /** + *
+     * First GraphDef version at which the op is disallowed.
+     * 
+ * + * int32 version = 1; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(int value) { + + version_ = value; + onChanged(); + return this; + } + /** + *
+     * First GraphDef version at which the op is disallowed.
+     * 
+ * + * int32 version = 1; + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = 0; + onChanged(); + return this; + } + + private java.lang.Object explanation_ = ""; + /** + *
+     * Explanation of why it was deprecated and what to use instead.
+     * 
+ * + * string explanation = 2; + * @return The explanation. + */ + public java.lang.String getExplanation() { + java.lang.Object ref = explanation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + explanation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Explanation of why it was deprecated and what to use instead.
+     * 
+ * + * string explanation = 2; + * @return The bytes for explanation. + */ + public com.google.protobuf.ByteString + getExplanationBytes() { + java.lang.Object ref = explanation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + explanation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Explanation of why it was deprecated and what to use instead.
+     * 
+ * + * string explanation = 2; + * @param value The explanation to set. + * @return This builder for chaining. + */ + public Builder setExplanation( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + explanation_ = value; + onChanged(); + return this; + } + /** + *
+     * Explanation of why it was deprecated and what to use instead.
+     * 
+ * + * string explanation = 2; + * @return This builder for chaining. + */ + public Builder clearExplanation() { + + explanation_ = getDefaultInstance().getExplanation(); + onChanged(); + return this; + } + /** + *
+     * Explanation of why it was deprecated and what to use instead.
+     * 
+ * + * string explanation = 2; + * @param value The bytes for explanation to set. + * @return This builder for chaining. + */ + public Builder setExplanationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + explanation_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.OpDeprecation) + } + + // @@protoc_insertion_point(class_scope:tensorflow.OpDeprecation) + private static final org.tensorflow.proto.OpDeprecation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.OpDeprecation(); + } + + public static org.tensorflow.proto.OpDeprecation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpDeprecation 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 org.tensorflow.proto.OpDeprecation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpDeprecationOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpDeprecationOrBuilder.java new file mode 100644 index 00000000000..2ae5686c536 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpDeprecationOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/op_def.proto + +package org.tensorflow.proto; + +public interface OpDeprecationOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.OpDeprecation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * First GraphDef version at which the op is disallowed.
+   * 
+ * + * int32 version = 1; + * @return The version. + */ + int getVersion(); + + /** + *
+   * Explanation of why it was deprecated and what to use instead.
+   * 
+ * + * string explanation = 2; + * @return The explanation. + */ + java.lang.String getExplanation(); + /** + *
+   * Explanation of why it was deprecated and what to use instead.
+   * 
+ * + * string explanation = 2; + * @return The bytes for explanation. + */ + com.google.protobuf.ByteString + getExplanationBytes(); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpList.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpList.java new file mode 100644 index 00000000000..9e609472f97 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpList.java @@ -0,0 +1,760 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/op_def.proto + +package org.tensorflow.proto; + +/** + *
+ * A collection of OpDefs
+ * 
+ * + * Protobuf type {@code tensorflow.OpList} + */ +public final class OpList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.OpList) + OpListOrBuilder { +private static final long serialVersionUID = 0L; + // Use OpList.newBuilder() to construct. + private OpList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OpList() { + op_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OpList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpList.class, org.tensorflow.proto.OpList.Builder.class); + } + + public static final int OP_FIELD_NUMBER = 1; + private java.util.List op_; + /** + * repeated .tensorflow.OpDef op = 1; + */ + @java.lang.Override + public java.util.List getOpList() { + return op_; + } + /** + * repeated .tensorflow.OpDef op = 1; + */ + @java.lang.Override + public java.util.List + getOpOrBuilderList() { + return op_; + } + /** + * repeated .tensorflow.OpDef op = 1; + */ + @java.lang.Override + public int getOpCount() { + return op_.size(); + } + /** + * repeated .tensorflow.OpDef op = 1; + */ + @java.lang.Override + public org.tensorflow.proto.OpDef getOp(int index) { + return op_.get(index); + } + /** + * repeated .tensorflow.OpDef op = 1; + */ + @java.lang.Override + public org.tensorflow.proto.OpDefOrBuilder getOpOrBuilder( + int index) { + return op_.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 < op_.size(); i++) { + output.writeMessage(1, op_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < op_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, op_.get(i)); + } + 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 org.tensorflow.proto.OpList)) { + return super.equals(obj); + } + org.tensorflow.proto.OpList other = (org.tensorflow.proto.OpList) obj; + + if (!getOpList() + .equals(other.getOpList())) 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 (getOpCount() > 0) { + hash = (37 * hash) + OP_FIELD_NUMBER; + hash = (53 * hash) + getOpList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.OpList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpList 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 org.tensorflow.proto.OpList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpList 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 org.tensorflow.proto.OpList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpList 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(org.tensorflow.proto.OpList 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; + } + /** + *
+   * A collection of OpDefs
+   * 
+ * + * Protobuf type {@code tensorflow.OpList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.OpList) + org.tensorflow.proto.OpListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpList.class, org.tensorflow.proto.OpList.Builder.class); + } + + // Construct using org.tensorflow.proto.OpList.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (opBuilder_ == null) { + op_ = java.util.Collections.emptyList(); + } else { + op_ = null; + opBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.OpDefProtos.internal_static_tensorflow_OpList_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.OpList getDefaultInstanceForType() { + return org.tensorflow.proto.OpList.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.OpList build() { + org.tensorflow.proto.OpList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.OpList buildPartial() { + org.tensorflow.proto.OpList result = new org.tensorflow.proto.OpList(this); + int from_bitField0_ = bitField0_; + if (opBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + op_ = java.util.Collections.unmodifiableList(op_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.op_ = op_; + } else { + result.op_ = opBuilder_.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 org.tensorflow.proto.OpList) { + return mergeFrom((org.tensorflow.proto.OpList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.OpList other) { + if (other == org.tensorflow.proto.OpList.getDefaultInstance()) return this; + if (opBuilder_ == null) { + if (!other.op_.isEmpty()) { + if (op_.isEmpty()) { + op_ = other.op_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOpIsMutable(); + op_.addAll(other.op_); + } + onChanged(); + } + } else { + if (!other.op_.isEmpty()) { + if (opBuilder_.isEmpty()) { + opBuilder_.dispose(); + opBuilder_ = null; + op_ = other.op_; + bitField0_ = (bitField0_ & ~0x00000001); + opBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOpFieldBuilder() : null; + } else { + opBuilder_.addAllMessages(other.op_); + } + } + } + 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: { + org.tensorflow.proto.OpDef m = + input.readMessage( + org.tensorflow.proto.OpDef.parser(), + extensionRegistry); + if (opBuilder_ == null) { + ensureOpIsMutable(); + op_.add(m); + } else { + opBuilder_.addMessage(m); + } + 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.util.List op_ = + java.util.Collections.emptyList(); + private void ensureOpIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + op_ = new java.util.ArrayList(op_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.OpDef, org.tensorflow.proto.OpDef.Builder, org.tensorflow.proto.OpDefOrBuilder> opBuilder_; + + /** + * repeated .tensorflow.OpDef op = 1; + */ + public java.util.List getOpList() { + if (opBuilder_ == null) { + return java.util.Collections.unmodifiableList(op_); + } else { + return opBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.OpDef op = 1; + */ + public int getOpCount() { + if (opBuilder_ == null) { + return op_.size(); + } else { + return opBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.OpDef op = 1; + */ + public org.tensorflow.proto.OpDef getOp(int index) { + if (opBuilder_ == null) { + return op_.get(index); + } else { + return opBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.OpDef op = 1; + */ + public Builder setOp( + int index, org.tensorflow.proto.OpDef value) { + if (opBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOpIsMutable(); + op_.set(index, value); + onChanged(); + } else { + opBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.OpDef op = 1; + */ + public Builder setOp( + int index, org.tensorflow.proto.OpDef.Builder builderForValue) { + if (opBuilder_ == null) { + ensureOpIsMutable(); + op_.set(index, builderForValue.build()); + onChanged(); + } else { + opBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.OpDef op = 1; + */ + public Builder addOp(org.tensorflow.proto.OpDef value) { + if (opBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOpIsMutable(); + op_.add(value); + onChanged(); + } else { + opBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.OpDef op = 1; + */ + public Builder addOp( + int index, org.tensorflow.proto.OpDef value) { + if (opBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOpIsMutable(); + op_.add(index, value); + onChanged(); + } else { + opBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.OpDef op = 1; + */ + public Builder addOp( + org.tensorflow.proto.OpDef.Builder builderForValue) { + if (opBuilder_ == null) { + ensureOpIsMutable(); + op_.add(builderForValue.build()); + onChanged(); + } else { + opBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.OpDef op = 1; + */ + public Builder addOp( + int index, org.tensorflow.proto.OpDef.Builder builderForValue) { + if (opBuilder_ == null) { + ensureOpIsMutable(); + op_.add(index, builderForValue.build()); + onChanged(); + } else { + opBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.OpDef op = 1; + */ + public Builder addAllOp( + java.lang.Iterable values) { + if (opBuilder_ == null) { + ensureOpIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, op_); + onChanged(); + } else { + opBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.OpDef op = 1; + */ + public Builder clearOp() { + if (opBuilder_ == null) { + op_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + opBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.OpDef op = 1; + */ + public Builder removeOp(int index) { + if (opBuilder_ == null) { + ensureOpIsMutable(); + op_.remove(index); + onChanged(); + } else { + opBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.OpDef op = 1; + */ + public org.tensorflow.proto.OpDef.Builder getOpBuilder( + int index) { + return getOpFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.OpDef op = 1; + */ + public org.tensorflow.proto.OpDefOrBuilder getOpOrBuilder( + int index) { + if (opBuilder_ == null) { + return op_.get(index); } else { + return opBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.OpDef op = 1; + */ + public java.util.List + getOpOrBuilderList() { + if (opBuilder_ != null) { + return opBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(op_); + } + } + /** + * repeated .tensorflow.OpDef op = 1; + */ + public org.tensorflow.proto.OpDef.Builder addOpBuilder() { + return getOpFieldBuilder().addBuilder( + org.tensorflow.proto.OpDef.getDefaultInstance()); + } + /** + * repeated .tensorflow.OpDef op = 1; + */ + public org.tensorflow.proto.OpDef.Builder addOpBuilder( + int index) { + return getOpFieldBuilder().addBuilder( + index, org.tensorflow.proto.OpDef.getDefaultInstance()); + } + /** + * repeated .tensorflow.OpDef op = 1; + */ + public java.util.List + getOpBuilderList() { + return getOpFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.OpDef, org.tensorflow.proto.OpDef.Builder, org.tensorflow.proto.OpDefOrBuilder> + getOpFieldBuilder() { + if (opBuilder_ == null) { + opBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.OpDef, org.tensorflow.proto.OpDef.Builder, org.tensorflow.proto.OpDefOrBuilder>( + op_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + op_ = null; + } + return opBuilder_; + } + @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:tensorflow.OpList) + } + + // @@protoc_insertion_point(class_scope:tensorflow.OpList) + private static final org.tensorflow.proto.OpList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.OpList(); + } + + public static org.tensorflow.proto.OpList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpList 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 org.tensorflow.proto.OpList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpListOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpListOrBuilder.java new file mode 100644 index 00000000000..f3a2c2b3d78 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpListOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/op_def.proto + +package org.tensorflow.proto; + +public interface OpListOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.OpList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .tensorflow.OpDef op = 1; + */ + java.util.List + getOpList(); + /** + * repeated .tensorflow.OpDef op = 1; + */ + org.tensorflow.proto.OpDef getOp(int index); + /** + * repeated .tensorflow.OpDef op = 1; + */ + int getOpCount(); + /** + * repeated .tensorflow.OpDef op = 1; + */ + java.util.List + getOpOrBuilderList(); + /** + * repeated .tensorflow.OpDef op = 1; + */ + org.tensorflow.proto.OpDefOrBuilder getOpOrBuilder( + int index); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpPerformanceData.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpPerformanceData.java new file mode 100644 index 00000000000..4db7ff6bde1 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OpPerformanceData.java @@ -0,0 +1,9161 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/grappler/costs/op_performance_data.proto + +package org.tensorflow.proto; + +public final class OpPerformanceData { + private OpPerformanceData() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface SessionInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.SessionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 intra_op_parallelism = 1; + * @return The intraOpParallelism. + */ + long getIntraOpParallelism(); + } + /** + *
+   * Description of the session when an op is run.
+   * 
+ * + * Protobuf type {@code tensorflow.SessionInfo} + */ + public static final class SessionInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SessionInfo) + SessionInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use SessionInfo.newBuilder() to construct. + private SessionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SessionInfo() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SessionInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_SessionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_SessionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpPerformanceData.SessionInfo.class, org.tensorflow.proto.OpPerformanceData.SessionInfo.Builder.class); + } + + public static final int INTRA_OP_PARALLELISM_FIELD_NUMBER = 1; + private long intraOpParallelism_; + /** + * int64 intra_op_parallelism = 1; + * @return The intraOpParallelism. + */ + @java.lang.Override + public long getIntraOpParallelism() { + return intraOpParallelism_; + } + + 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 (intraOpParallelism_ != 0L) { + output.writeInt64(1, intraOpParallelism_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (intraOpParallelism_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, intraOpParallelism_); + } + 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 org.tensorflow.proto.OpPerformanceData.SessionInfo)) { + return super.equals(obj); + } + org.tensorflow.proto.OpPerformanceData.SessionInfo other = (org.tensorflow.proto.OpPerformanceData.SessionInfo) obj; + + if (getIntraOpParallelism() + != other.getIntraOpParallelism()) 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) + INTRA_OP_PARALLELISM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIntraOpParallelism()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.OpPerformanceData.SessionInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.SessionInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.SessionInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.SessionInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.SessionInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.SessionInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.SessionInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.SessionInfo 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 org.tensorflow.proto.OpPerformanceData.SessionInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.SessionInfo 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 org.tensorflow.proto.OpPerformanceData.SessionInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.SessionInfo 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(org.tensorflow.proto.OpPerformanceData.SessionInfo 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; + } + /** + *
+     * Description of the session when an op is run.
+     * 
+ * + * Protobuf type {@code tensorflow.SessionInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SessionInfo) + org.tensorflow.proto.OpPerformanceData.SessionInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_SessionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_SessionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpPerformanceData.SessionInfo.class, org.tensorflow.proto.OpPerformanceData.SessionInfo.Builder.class); + } + + // Construct using org.tensorflow.proto.OpPerformanceData.SessionInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + intraOpParallelism_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_SessionInfo_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.SessionInfo getDefaultInstanceForType() { + return org.tensorflow.proto.OpPerformanceData.SessionInfo.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.SessionInfo build() { + org.tensorflow.proto.OpPerformanceData.SessionInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.SessionInfo buildPartial() { + org.tensorflow.proto.OpPerformanceData.SessionInfo result = new org.tensorflow.proto.OpPerformanceData.SessionInfo(this); + result.intraOpParallelism_ = intraOpParallelism_; + 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 org.tensorflow.proto.OpPerformanceData.SessionInfo) { + return mergeFrom((org.tensorflow.proto.OpPerformanceData.SessionInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.OpPerformanceData.SessionInfo other) { + if (other == org.tensorflow.proto.OpPerformanceData.SessionInfo.getDefaultInstance()) return this; + if (other.getIntraOpParallelism() != 0L) { + setIntraOpParallelism(other.getIntraOpParallelism()); + } + 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: { + intraOpParallelism_ = input.readInt64(); + + break; + } // case 8 + 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 long intraOpParallelism_ ; + /** + * int64 intra_op_parallelism = 1; + * @return The intraOpParallelism. + */ + @java.lang.Override + public long getIntraOpParallelism() { + return intraOpParallelism_; + } + /** + * int64 intra_op_parallelism = 1; + * @param value The intraOpParallelism to set. + * @return This builder for chaining. + */ + public Builder setIntraOpParallelism(long value) { + + intraOpParallelism_ = value; + onChanged(); + return this; + } + /** + * int64 intra_op_parallelism = 1; + * @return This builder for chaining. + */ + public Builder clearIntraOpParallelism() { + + intraOpParallelism_ = 0L; + 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:tensorflow.SessionInfo) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SessionInfo) + private static final org.tensorflow.proto.OpPerformanceData.SessionInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.OpPerformanceData.SessionInfo(); + } + + public static org.tensorflow.proto.OpPerformanceData.SessionInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionInfo 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 org.tensorflow.proto.OpPerformanceData.SessionInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OpInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.OpInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The operation name.  There may be custom parameters in attrs.
+     * 
+ * + * string op = 1; + * @return The op. + */ + java.lang.String getOp(); + /** + *
+     * The operation name.  There may be custom parameters in attrs.
+     * 
+ * + * string op = 1; + * @return The bytes for op. + */ + com.google.protobuf.ByteString + getOpBytes(); + + /** + *
+     * Custom parameters impacting the behavior of the op.
+     * 
+ * + * map<string, .tensorflow.AttrValue> attr = 2; + */ + int getAttrCount(); + /** + *
+     * Custom parameters impacting the behavior of the op.
+     * 
+ * + * map<string, .tensorflow.AttrValue> attr = 2; + */ + boolean containsAttr( + java.lang.String key); + /** + * Use {@link #getAttrMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAttr(); + /** + *
+     * Custom parameters impacting the behavior of the op.
+     * 
+ * + * map<string, .tensorflow.AttrValue> attr = 2; + */ + java.util.Map + getAttrMap(); + /** + *
+     * Custom parameters impacting the behavior of the op.
+     * 
+ * + * map<string, .tensorflow.AttrValue> attr = 2; + */ + + /* nullable */ +org.tensorflow.proto.AttrValue getAttrOrDefault( + java.lang.String key, + /* nullable */ +org.tensorflow.proto.AttrValue defaultValue); + /** + *
+     * Custom parameters impacting the behavior of the op.
+     * 
+ * + * map<string, .tensorflow.AttrValue> attr = 2; + */ + + org.tensorflow.proto.AttrValue getAttrOrThrow( + java.lang.String key); + + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + java.util.List + getInputsList(); + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties getInputs(int index); + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + int getInputsCount(); + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + java.util.List + getInputsOrBuilderList(); + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder getInputsOrBuilder( + int index); + + /** + *
+     * Optional description of the op outputs
+     * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + java.util.List + getOutputsList(); + /** + *
+     * Optional description of the op outputs
+     * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties getOutputs(int index); + /** + *
+     * Optional description of the op outputs
+     * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + int getOutputsCount(); + /** + *
+     * Optional description of the op outputs
+     * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + java.util.List + getOutputsOrBuilderList(); + /** + *
+     * Optional description of the op outputs
+     * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder getOutputsOrBuilder( + int index); + + /** + *
+     * Device on which the operation is run.
+     * 
+ * + * .tensorflow.DeviceProperties device = 4; + * @return Whether the device field is set. + */ + boolean hasDevice(); + /** + *
+     * Device on which the operation is run.
+     * 
+ * + * .tensorflow.DeviceProperties device = 4; + * @return The device. + */ + org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties getDevice(); + /** + *
+     * Device on which the operation is run.
+     * 
+ * + * .tensorflow.DeviceProperties device = 4; + */ + org.tensorflow.proto.DevicePropertiesProtos.DevicePropertiesOrBuilder getDeviceOrBuilder(); + + /** + *
+     * Information about the session configs.
+     * 
+ * + * .tensorflow.SessionInfo session_info = 6; + * @return Whether the sessionInfo field is set. + */ + boolean hasSessionInfo(); + /** + *
+     * Information about the session configs.
+     * 
+ * + * .tensorflow.SessionInfo session_info = 6; + * @return The sessionInfo. + */ + org.tensorflow.proto.OpPerformanceData.SessionInfo getSessionInfo(); + /** + *
+     * Information about the session configs.
+     * 
+ * + * .tensorflow.SessionInfo session_info = 6; + */ + org.tensorflow.proto.OpPerformanceData.SessionInfoOrBuilder getSessionInfoOrBuilder(); + } + /** + *
+   * Description of an operation as well as the parameters expected to impact its
+   * performance.
+   * 
+ * + * Protobuf type {@code tensorflow.OpInfo} + */ + public static final class OpInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.OpInfo) + OpInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use OpInfo.newBuilder() to construct. + private OpInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OpInfo() { + op_ = ""; + inputs_ = java.util.Collections.emptyList(); + outputs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OpInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpInfo_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetAttr(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpPerformanceData.OpInfo.class, org.tensorflow.proto.OpPerformanceData.OpInfo.Builder.class); + } + + public interface TensorPropertiesOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.OpInfo.TensorProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. + */ + int getDtypeValue(); + /** + * .tensorflow.DataType dtype = 1; + * @return The dtype. + */ + org.tensorflow.proto.DataType getDtype(); + + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + boolean hasShape(); + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + org.tensorflow.proto.TensorShapeProto getShape(); + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder(); + + /** + * .tensorflow.TensorProto value = 3; + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + * .tensorflow.TensorProto value = 3; + * @return The value. + */ + org.tensorflow.proto.TensorProto getValue(); + /** + * .tensorflow.TensorProto value = 3; + */ + org.tensorflow.proto.TensorProtoOrBuilder getValueOrBuilder(); + } + /** + *
+     * Input data types, shapes and values if known.
+     * 
+ * + * Protobuf type {@code tensorflow.OpInfo.TensorProperties} + */ + public static final class TensorProperties extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.OpInfo.TensorProperties) + TensorPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use TensorProperties.newBuilder() to construct. + private TensorProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TensorProperties() { + dtype_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TensorProperties(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpInfo_TensorProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpInfo_TensorProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.class, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.Builder.class); + } + + public static final int DTYPE_FIELD_NUMBER = 1; + private int dtype_; + /** + * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. + */ + @java.lang.Override public int getDtypeValue() { + return dtype_; + } + /** + * .tensorflow.DataType dtype = 1; + * @return The dtype. + */ + @java.lang.Override public org.tensorflow.proto.DataType getDtype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + + public static final int SHAPE_FIELD_NUMBER = 2; + private org.tensorflow.proto.TensorShapeProto shape_; + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + @java.lang.Override + public boolean hasShape() { + return shape_ != null; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto getShape() { + return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { + return getShape(); + } + + public static final int VALUE_FIELD_NUMBER = 3; + private org.tensorflow.proto.TensorProto value_; + /** + * .tensorflow.TensorProto value = 3; + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return value_ != null; + } + /** + * .tensorflow.TensorProto value = 3; + * @return The value. + */ + @java.lang.Override + public org.tensorflow.proto.TensorProto getValue() { + return value_ == null ? org.tensorflow.proto.TensorProto.getDefaultInstance() : value_; + } + /** + * .tensorflow.TensorProto value = 3; + */ + @java.lang.Override + public org.tensorflow.proto.TensorProtoOrBuilder getValueOrBuilder() { + return getValue(); + } + + 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 (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + output.writeEnum(1, dtype_); + } + if (shape_ != null) { + output.writeMessage(2, getShape()); + } + if (value_ != null) { + output.writeMessage(3, getValue()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, dtype_); + } + if (shape_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getShape()); + } + if (value_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getValue()); + } + 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 org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties)) { + return super.equals(obj); + } + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties other = (org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties) obj; + + if (dtype_ != other.dtype_) return false; + if (hasShape() != other.hasShape()) return false; + if (hasShape()) { + if (!getShape() + .equals(other.getShape())) return false; + } + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue() + .equals(other.getValue())) 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) + DTYPE_FIELD_NUMBER; + hash = (53 * hash) + dtype_; + if (hasShape()) { + hash = (37 * hash) + SHAPE_FIELD_NUMBER; + hash = (53 * hash) + getShape().hashCode(); + } + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties 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 org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties 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 org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties 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(org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties 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; + } + /** + *
+       * Input data types, shapes and values if known.
+       * 
+ * + * Protobuf type {@code tensorflow.OpInfo.TensorProperties} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.OpInfo.TensorProperties) + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpInfo_TensorProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpInfo_TensorProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.class, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.Builder.class); + } + + // Construct using org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + dtype_ = 0; + + if (shapeBuilder_ == null) { + shape_ = null; + } else { + shape_ = null; + shapeBuilder_ = null; + } + if (valueBuilder_ == null) { + value_ = null; + } else { + value_ = null; + valueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpInfo_TensorProperties_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties getDefaultInstanceForType() { + return org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties build() { + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties buildPartial() { + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties result = new org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties(this); + result.dtype_ = dtype_; + if (shapeBuilder_ == null) { + result.shape_ = shape_; + } else { + result.shape_ = shapeBuilder_.build(); + } + if (valueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = valueBuilder_.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 org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties) { + return mergeFrom((org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties other) { + if (other == org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.getDefaultInstance()) return this; + if (other.dtype_ != 0) { + setDtypeValue(other.getDtypeValue()); + } + if (other.hasShape()) { + mergeShape(other.getShape()); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + 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: { + dtype_ = input.readEnum(); + + break; + } // case 8 + case 18: { + input.readMessage( + getShapeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getValueFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + 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 dtype_ = 0; + /** + * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. + */ + @java.lang.Override public int getDtypeValue() { + return dtype_; + } + /** + * .tensorflow.DataType dtype = 1; + * @param value The enum numeric value on the wire for dtype to set. + * @return This builder for chaining. + */ + public Builder setDtypeValue(int value) { + + dtype_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.DataType dtype = 1; + * @return The dtype. + */ + @java.lang.Override + public org.tensorflow.proto.DataType getDtype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + /** + * .tensorflow.DataType dtype = 1; + * @param value The dtype to set. + * @return This builder for chaining. + */ + public Builder setDtype(org.tensorflow.proto.DataType value) { + if (value == null) { + throw new NullPointerException(); + } + + dtype_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.DataType dtype = 1; + * @return This builder for chaining. + */ + public Builder clearDtype() { + + dtype_ = 0; + onChanged(); + return this; + } + + private org.tensorflow.proto.TensorShapeProto shape_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> shapeBuilder_; + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + public boolean hasShape() { + return shapeBuilder_ != null || shape_ != null; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + public org.tensorflow.proto.TensorShapeProto getShape() { + if (shapeBuilder_ == null) { + return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } else { + return shapeBuilder_.getMessage(); + } + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder setShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shape_ = value; + onChanged(); + } else { + shapeBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder setShape( + org.tensorflow.proto.TensorShapeProto.Builder builderForValue) { + if (shapeBuilder_ == null) { + shape_ = builderForValue.build(); + onChanged(); + } else { + shapeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder mergeShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (shape_ != null) { + shape_ = + org.tensorflow.proto.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial(); + } else { + shape_ = value; + } + onChanged(); + } else { + shapeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder clearShape() { + if (shapeBuilder_ == null) { + shape_ = null; + onChanged(); + } else { + shape_ = null; + shapeBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public org.tensorflow.proto.TensorShapeProto.Builder getShapeBuilder() { + + onChanged(); + return getShapeFieldBuilder().getBuilder(); + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { + if (shapeBuilder_ != null) { + return shapeBuilder_.getMessageOrBuilder(); + } else { + return shape_ == null ? + org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> + getShapeFieldBuilder() { + if (shapeBuilder_ == null) { + shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder>( + getShape(), + getParentForChildren(), + isClean()); + shape_ = null; + } + return shapeBuilder_; + } + + private org.tensorflow.proto.TensorProto value_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> valueBuilder_; + /** + * .tensorflow.TensorProto value = 3; + * @return Whether the value field is set. + */ + public boolean hasValue() { + return valueBuilder_ != null || value_ != null; + } + /** + * .tensorflow.TensorProto value = 3; + * @return The value. + */ + public org.tensorflow.proto.TensorProto getValue() { + if (valueBuilder_ == null) { + return value_ == null ? org.tensorflow.proto.TensorProto.getDefaultInstance() : value_; + } else { + return valueBuilder_.getMessage(); + } + } + /** + * .tensorflow.TensorProto value = 3; + */ + public Builder setValue(org.tensorflow.proto.TensorProto value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + valueBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.TensorProto value = 3; + */ + public Builder setValue( + org.tensorflow.proto.TensorProto.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.TensorProto value = 3; + */ + public Builder mergeValue(org.tensorflow.proto.TensorProto value) { + if (valueBuilder_ == null) { + if (value_ != null) { + value_ = + org.tensorflow.proto.TensorProto.newBuilder(value_).mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + valueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.TensorProto value = 3; + */ + public Builder clearValue() { + if (valueBuilder_ == null) { + value_ = null; + onChanged(); + } else { + value_ = null; + valueBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.TensorProto value = 3; + */ + public org.tensorflow.proto.TensorProto.Builder getValueBuilder() { + + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + /** + * .tensorflow.TensorProto value = 3; + */ + public org.tensorflow.proto.TensorProtoOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? + org.tensorflow.proto.TensorProto.getDefaultInstance() : value_; + } + } + /** + * .tensorflow.TensorProto value = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder>( + getValue(), + getParentForChildren(), + isClean()); + value_ = null; + } + return valueBuilder_; + } + @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:tensorflow.OpInfo.TensorProperties) + } + + // @@protoc_insertion_point(class_scope:tensorflow.OpInfo.TensorProperties) + private static final org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties(); + } + + public static org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TensorProperties 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 org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int OP_FIELD_NUMBER = 1; + private volatile java.lang.Object op_; + /** + *
+     * The operation name.  There may be custom parameters in attrs.
+     * 
+ * + * string op = 1; + * @return The op. + */ + @java.lang.Override + public java.lang.String getOp() { + java.lang.Object ref = op_; + 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(); + op_ = s; + return s; + } + } + /** + *
+     * The operation name.  There may be custom parameters in attrs.
+     * 
+ * + * string op = 1; + * @return The bytes for op. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOpBytes() { + java.lang.Object ref = op_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + op_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ATTR_FIELD_NUMBER = 2; + private static final class AttrDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, org.tensorflow.proto.AttrValue> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpInfo_AttrEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + org.tensorflow.proto.AttrValue.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, org.tensorflow.proto.AttrValue> attr_; + private com.google.protobuf.MapField + internalGetAttr() { + if (attr_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttrDefaultEntryHolder.defaultEntry); + } + return attr_; + } + + public int getAttrCount() { + return internalGetAttr().getMap().size(); + } + /** + *
+     * Custom parameters impacting the behavior of the op.
+     * 
+ * + * map<string, .tensorflow.AttrValue> attr = 2; + */ + + @java.lang.Override + public boolean containsAttr( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAttr().getMap().containsKey(key); + } + /** + * Use {@link #getAttrMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAttr() { + return getAttrMap(); + } + /** + *
+     * Custom parameters impacting the behavior of the op.
+     * 
+ * + * map<string, .tensorflow.AttrValue> attr = 2; + */ + @java.lang.Override + + public java.util.Map getAttrMap() { + return internalGetAttr().getMap(); + } + /** + *
+     * Custom parameters impacting the behavior of the op.
+     * 
+ * + * map<string, .tensorflow.AttrValue> attr = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.AttrValue getAttrOrDefault( + java.lang.String key, + org.tensorflow.proto.AttrValue defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAttr().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Custom parameters impacting the behavior of the op.
+     * 
+ * + * map<string, .tensorflow.AttrValue> attr = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.AttrValue getAttrOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAttr().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int INPUTS_FIELD_NUMBER = 3; + private java.util.List inputs_; + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + @java.lang.Override + public java.util.List getInputsList() { + return inputs_; + } + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + @java.lang.Override + public java.util.List + getInputsOrBuilderList() { + return inputs_; + } + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + @java.lang.Override + public int getInputsCount() { + return inputs_.size(); + } + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties getInputs(int index) { + return inputs_.get(index); + } + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder getInputsOrBuilder( + int index) { + return inputs_.get(index); + } + + public static final int OUTPUTS_FIELD_NUMBER = 5; + private java.util.List outputs_; + /** + *
+     * Optional description of the op outputs
+     * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + @java.lang.Override + public java.util.List getOutputsList() { + return outputs_; + } + /** + *
+     * Optional description of the op outputs
+     * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + @java.lang.Override + public java.util.List + getOutputsOrBuilderList() { + return outputs_; + } + /** + *
+     * Optional description of the op outputs
+     * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + @java.lang.Override + public int getOutputsCount() { + return outputs_.size(); + } + /** + *
+     * Optional description of the op outputs
+     * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties getOutputs(int index) { + return outputs_.get(index); + } + /** + *
+     * Optional description of the op outputs
+     * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder getOutputsOrBuilder( + int index) { + return outputs_.get(index); + } + + public static final int DEVICE_FIELD_NUMBER = 4; + private org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties device_; + /** + *
+     * Device on which the operation is run.
+     * 
+ * + * .tensorflow.DeviceProperties device = 4; + * @return Whether the device field is set. + */ + @java.lang.Override + public boolean hasDevice() { + return device_ != null; + } + /** + *
+     * Device on which the operation is run.
+     * 
+ * + * .tensorflow.DeviceProperties device = 4; + * @return The device. + */ + @java.lang.Override + public org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties getDevice() { + return device_ == null ? org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.getDefaultInstance() : device_; + } + /** + *
+     * Device on which the operation is run.
+     * 
+ * + * .tensorflow.DeviceProperties device = 4; + */ + @java.lang.Override + public org.tensorflow.proto.DevicePropertiesProtos.DevicePropertiesOrBuilder getDeviceOrBuilder() { + return getDevice(); + } + + public static final int SESSION_INFO_FIELD_NUMBER = 6; + private org.tensorflow.proto.OpPerformanceData.SessionInfo sessionInfo_; + /** + *
+     * Information about the session configs.
+     * 
+ * + * .tensorflow.SessionInfo session_info = 6; + * @return Whether the sessionInfo field is set. + */ + @java.lang.Override + public boolean hasSessionInfo() { + return sessionInfo_ != null; + } + /** + *
+     * Information about the session configs.
+     * 
+ * + * .tensorflow.SessionInfo session_info = 6; + * @return The sessionInfo. + */ + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.SessionInfo getSessionInfo() { + return sessionInfo_ == null ? org.tensorflow.proto.OpPerformanceData.SessionInfo.getDefaultInstance() : sessionInfo_; + } + /** + *
+     * Information about the session configs.
+     * 
+ * + * .tensorflow.SessionInfo session_info = 6; + */ + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.SessionInfoOrBuilder getSessionInfoOrBuilder() { + return getSessionInfo(); + } + + 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(op_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, op_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAttr(), + AttrDefaultEntryHolder.defaultEntry, + 2); + for (int i = 0; i < inputs_.size(); i++) { + output.writeMessage(3, inputs_.get(i)); + } + if (device_ != null) { + output.writeMessage(4, getDevice()); + } + for (int i = 0; i < outputs_.size(); i++) { + output.writeMessage(5, outputs_.get(i)); + } + if (sessionInfo_ != null) { + output.writeMessage(6, getSessionInfo()); + } + 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(op_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, op_); + } + for (java.util.Map.Entry entry + : internalGetAttr().getMap().entrySet()) { + com.google.protobuf.MapEntry + attr__ = AttrDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, attr__); + } + for (int i = 0; i < inputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, inputs_.get(i)); + } + if (device_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getDevice()); + } + for (int i = 0; i < outputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, outputs_.get(i)); + } + if (sessionInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getSessionInfo()); + } + 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 org.tensorflow.proto.OpPerformanceData.OpInfo)) { + return super.equals(obj); + } + org.tensorflow.proto.OpPerformanceData.OpInfo other = (org.tensorflow.proto.OpPerformanceData.OpInfo) obj; + + if (!getOp() + .equals(other.getOp())) return false; + if (!internalGetAttr().equals( + other.internalGetAttr())) return false; + if (!getInputsList() + .equals(other.getInputsList())) return false; + if (!getOutputsList() + .equals(other.getOutputsList())) return false; + if (hasDevice() != other.hasDevice()) return false; + if (hasDevice()) { + if (!getDevice() + .equals(other.getDevice())) return false; + } + if (hasSessionInfo() != other.hasSessionInfo()) return false; + if (hasSessionInfo()) { + if (!getSessionInfo() + .equals(other.getSessionInfo())) 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) + OP_FIELD_NUMBER; + hash = (53 * hash) + getOp().hashCode(); + if (!internalGetAttr().getMap().isEmpty()) { + hash = (37 * hash) + ATTR_FIELD_NUMBER; + hash = (53 * hash) + internalGetAttr().hashCode(); + } + if (getInputsCount() > 0) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputsList().hashCode(); + } + if (getOutputsCount() > 0) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputsList().hashCode(); + } + if (hasDevice()) { + hash = (37 * hash) + DEVICE_FIELD_NUMBER; + hash = (53 * hash) + getDevice().hashCode(); + } + if (hasSessionInfo()) { + hash = (37 * hash) + SESSION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getSessionInfo().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.OpPerformanceData.OpInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.OpInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.OpInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.OpInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.OpInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.OpInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.OpInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.OpInfo 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 org.tensorflow.proto.OpPerformanceData.OpInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.OpInfo 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 org.tensorflow.proto.OpPerformanceData.OpInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.OpInfo 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(org.tensorflow.proto.OpPerformanceData.OpInfo 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; + } + /** + *
+     * Description of an operation as well as the parameters expected to impact its
+     * performance.
+     * 
+ * + * Protobuf type {@code tensorflow.OpInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.OpInfo) + org.tensorflow.proto.OpPerformanceData.OpInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpInfo_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetAttr(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 2: + return internalGetMutableAttr(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpPerformanceData.OpInfo.class, org.tensorflow.proto.OpPerformanceData.OpInfo.Builder.class); + } + + // Construct using org.tensorflow.proto.OpPerformanceData.OpInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + op_ = ""; + + internalGetMutableAttr().clear(); + if (inputsBuilder_ == null) { + inputs_ = java.util.Collections.emptyList(); + } else { + inputs_ = null; + inputsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + } else { + outputs_ = null; + outputsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (deviceBuilder_ == null) { + device_ = null; + } else { + device_ = null; + deviceBuilder_ = null; + } + if (sessionInfoBuilder_ == null) { + sessionInfo_ = null; + } else { + sessionInfo_ = null; + sessionInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpInfo_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpInfo getDefaultInstanceForType() { + return org.tensorflow.proto.OpPerformanceData.OpInfo.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpInfo build() { + org.tensorflow.proto.OpPerformanceData.OpInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpInfo buildPartial() { + org.tensorflow.proto.OpPerformanceData.OpInfo result = new org.tensorflow.proto.OpPerformanceData.OpInfo(this); + int from_bitField0_ = bitField0_; + result.op_ = op_; + result.attr_ = internalGetAttr(); + result.attr_.makeImmutable(); + if (inputsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + inputs_ = java.util.Collections.unmodifiableList(inputs_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (outputsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + if (deviceBuilder_ == null) { + result.device_ = device_; + } else { + result.device_ = deviceBuilder_.build(); + } + if (sessionInfoBuilder_ == null) { + result.sessionInfo_ = sessionInfo_; + } else { + result.sessionInfo_ = sessionInfoBuilder_.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 org.tensorflow.proto.OpPerformanceData.OpInfo) { + return mergeFrom((org.tensorflow.proto.OpPerformanceData.OpInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.OpPerformanceData.OpInfo other) { + if (other == org.tensorflow.proto.OpPerformanceData.OpInfo.getDefaultInstance()) return this; + if (!other.getOp().isEmpty()) { + op_ = other.op_; + onChanged(); + } + internalGetMutableAttr().mergeFrom( + other.internalGetAttr()); + if (inputsBuilder_ == null) { + if (!other.inputs_.isEmpty()) { + if (inputs_.isEmpty()) { + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInputsIsMutable(); + inputs_.addAll(other.inputs_); + } + onChanged(); + } + } else { + if (!other.inputs_.isEmpty()) { + if (inputsBuilder_.isEmpty()) { + inputsBuilder_.dispose(); + inputsBuilder_ = null; + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000002); + inputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputsFieldBuilder() : null; + } else { + inputsBuilder_.addAllMessages(other.inputs_); + } + } + } + if (outputsBuilder_ == null) { + if (!other.outputs_.isEmpty()) { + if (outputs_.isEmpty()) { + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureOutputsIsMutable(); + outputs_.addAll(other.outputs_); + } + onChanged(); + } + } else { + if (!other.outputs_.isEmpty()) { + if (outputsBuilder_.isEmpty()) { + outputsBuilder_.dispose(); + outputsBuilder_ = null; + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000004); + outputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOutputsFieldBuilder() : null; + } else { + outputsBuilder_.addAllMessages(other.outputs_); + } + } + } + if (other.hasDevice()) { + mergeDevice(other.getDevice()); + } + if (other.hasSessionInfo()) { + mergeSessionInfo(other.getSessionInfo()); + } + 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: { + op_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + com.google.protobuf.MapEntry + attr__ = input.readMessage( + AttrDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableAttr().getMutableMap().put( + attr__.getKey(), attr__.getValue()); + break; + } // case 18 + case 26: { + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties m = + input.readMessage( + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.parser(), + extensionRegistry); + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(m); + } else { + inputsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + input.readMessage( + getDeviceFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties m = + input.readMessage( + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.parser(), + extensionRegistry); + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(m); + } else { + outputsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: { + input.readMessage( + getSessionInfoFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + 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 op_ = ""; + /** + *
+       * The operation name.  There may be custom parameters in attrs.
+       * 
+ * + * string op = 1; + * @return The op. + */ + public java.lang.String getOp() { + java.lang.Object ref = op_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + op_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The operation name.  There may be custom parameters in attrs.
+       * 
+ * + * string op = 1; + * @return The bytes for op. + */ + public com.google.protobuf.ByteString + getOpBytes() { + java.lang.Object ref = op_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + op_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The operation name.  There may be custom parameters in attrs.
+       * 
+ * + * string op = 1; + * @param value The op to set. + * @return This builder for chaining. + */ + public Builder setOp( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + op_ = value; + onChanged(); + return this; + } + /** + *
+       * The operation name.  There may be custom parameters in attrs.
+       * 
+ * + * string op = 1; + * @return This builder for chaining. + */ + public Builder clearOp() { + + op_ = getDefaultInstance().getOp(); + onChanged(); + return this; + } + /** + *
+       * The operation name.  There may be custom parameters in attrs.
+       * 
+ * + * string op = 1; + * @param value The bytes for op to set. + * @return This builder for chaining. + */ + public Builder setOpBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + op_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, org.tensorflow.proto.AttrValue> attr_; + private com.google.protobuf.MapField + internalGetAttr() { + if (attr_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttrDefaultEntryHolder.defaultEntry); + } + return attr_; + } + private com.google.protobuf.MapField + internalGetMutableAttr() { + onChanged();; + if (attr_ == null) { + attr_ = com.google.protobuf.MapField.newMapField( + AttrDefaultEntryHolder.defaultEntry); + } + if (!attr_.isMutable()) { + attr_ = attr_.copy(); + } + return attr_; + } + + public int getAttrCount() { + return internalGetAttr().getMap().size(); + } + /** + *
+       * Custom parameters impacting the behavior of the op.
+       * 
+ * + * map<string, .tensorflow.AttrValue> attr = 2; + */ + + @java.lang.Override + public boolean containsAttr( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAttr().getMap().containsKey(key); + } + /** + * Use {@link #getAttrMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAttr() { + return getAttrMap(); + } + /** + *
+       * Custom parameters impacting the behavior of the op.
+       * 
+ * + * map<string, .tensorflow.AttrValue> attr = 2; + */ + @java.lang.Override + + public java.util.Map getAttrMap() { + return internalGetAttr().getMap(); + } + /** + *
+       * Custom parameters impacting the behavior of the op.
+       * 
+ * + * map<string, .tensorflow.AttrValue> attr = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.AttrValue getAttrOrDefault( + java.lang.String key, + org.tensorflow.proto.AttrValue defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAttr().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Custom parameters impacting the behavior of the op.
+       * 
+ * + * map<string, .tensorflow.AttrValue> attr = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.AttrValue getAttrOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAttr().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAttr() { + internalGetMutableAttr().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Custom parameters impacting the behavior of the op.
+       * 
+ * + * map<string, .tensorflow.AttrValue> attr = 2; + */ + + public Builder removeAttr( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAttr().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAttr() { + return internalGetMutableAttr().getMutableMap(); + } + /** + *
+       * Custom parameters impacting the behavior of the op.
+       * 
+ * + * map<string, .tensorflow.AttrValue> attr = 2; + */ + public Builder putAttr( + java.lang.String key, + org.tensorflow.proto.AttrValue value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableAttr().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Custom parameters impacting the behavior of the op.
+       * 
+ * + * map<string, .tensorflow.AttrValue> attr = 2; + */ + + public Builder putAllAttr( + java.util.Map values) { + internalGetMutableAttr().getMutableMap() + .putAll(values); + return this; + } + + private java.util.List inputs_ = + java.util.Collections.emptyList(); + private void ensureInputsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + inputs_ = new java.util.ArrayList(inputs_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.Builder, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder> inputsBuilder_; + + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + public java.util.List getInputsList() { + if (inputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputs_); + } else { + return inputsBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + public int getInputsCount() { + if (inputsBuilder_ == null) { + return inputs_.size(); + } else { + return inputsBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + public org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties getInputs(int index) { + if (inputsBuilder_ == null) { + return inputs_.get(index); + } else { + return inputsBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + public Builder setInputs( + int index, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.set(index, value); + onChanged(); + } else { + inputsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + public Builder setInputs( + int index, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.set(index, builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + public Builder addInputs(org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.add(value); + onChanged(); + } else { + inputsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + public Builder addInputs( + int index, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.add(index, value); + onChanged(); + } else { + inputsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + public Builder addInputs( + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + public Builder addInputs( + int index, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(index, builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + public Builder addAllInputs( + java.lang.Iterable values) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputs_); + onChanged(); + } else { + inputsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + inputsBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + public Builder removeInputs(int index) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.remove(index); + onChanged(); + } else { + inputsBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + public org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.Builder getInputsBuilder( + int index) { + return getInputsFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + public org.tensorflow.proto.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder getInputsOrBuilder( + int index) { + if (inputsBuilder_ == null) { + return inputs_.get(index); } else { + return inputsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + public java.util.List + getInputsOrBuilderList() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputs_); + } + } + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + public org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.Builder addInputsBuilder() { + return getInputsFieldBuilder().addBuilder( + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.getDefaultInstance()); + } + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + public org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.Builder addInputsBuilder( + int index) { + return getInputsFieldBuilder().addBuilder( + index, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.getDefaultInstance()); + } + /** + * repeated .tensorflow.OpInfo.TensorProperties inputs = 3; + */ + public java.util.List + getInputsBuilderList() { + return getInputsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.Builder, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.Builder, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder>( + inputs_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private java.util.List outputs_ = + java.util.Collections.emptyList(); + private void ensureOutputsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + outputs_ = new java.util.ArrayList(outputs_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.Builder, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder> outputsBuilder_; + + /** + *
+       * Optional description of the op outputs
+       * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + public java.util.List getOutputsList() { + if (outputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputs_); + } else { + return outputsBuilder_.getMessageList(); + } + } + /** + *
+       * Optional description of the op outputs
+       * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + public int getOutputsCount() { + if (outputsBuilder_ == null) { + return outputs_.size(); + } else { + return outputsBuilder_.getCount(); + } + } + /** + *
+       * Optional description of the op outputs
+       * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + public org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties getOutputs(int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); + } else { + return outputsBuilder_.getMessage(index); + } + } + /** + *
+       * Optional description of the op outputs
+       * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + public Builder setOutputs( + int index, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.set(index, value); + onChanged(); + } else { + outputsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Optional description of the op outputs
+       * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + public Builder setOutputs( + int index, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.set(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Optional description of the op outputs
+       * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + public Builder addOutputs(org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(value); + onChanged(); + } else { + outputsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Optional description of the op outputs
+       * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + public Builder addOutputs( + int index, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(index, value); + onChanged(); + } else { + outputsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Optional description of the op outputs
+       * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + public Builder addOutputs( + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Optional description of the op outputs
+       * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + public Builder addOutputs( + int index, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Optional description of the op outputs
+       * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + public Builder addAllOutputs( + java.lang.Iterable values) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outputs_); + onChanged(); + } else { + outputsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Optional description of the op outputs
+       * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + outputsBuilder_.clear(); + } + return this; + } + /** + *
+       * Optional description of the op outputs
+       * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + public Builder removeOutputs(int index) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.remove(index); + onChanged(); + } else { + outputsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Optional description of the op outputs
+       * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + public org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.Builder getOutputsBuilder( + int index) { + return getOutputsFieldBuilder().getBuilder(index); + } + /** + *
+       * Optional description of the op outputs
+       * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + public org.tensorflow.proto.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder getOutputsOrBuilder( + int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); } else { + return outputsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Optional description of the op outputs
+       * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + public java.util.List + getOutputsOrBuilderList() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputs_); + } + } + /** + *
+       * Optional description of the op outputs
+       * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + public org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.Builder addOutputsBuilder() { + return getOutputsFieldBuilder().addBuilder( + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.getDefaultInstance()); + } + /** + *
+       * Optional description of the op outputs
+       * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + public org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.Builder addOutputsBuilder( + int index) { + return getOutputsFieldBuilder().addBuilder( + index, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.getDefaultInstance()); + } + /** + *
+       * Optional description of the op outputs
+       * 
+ * + * repeated .tensorflow.OpInfo.TensorProperties outputs = 5; + */ + public java.util.List + getOutputsBuilderList() { + return getOutputsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.Builder, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorProperties.Builder, org.tensorflow.proto.OpPerformanceData.OpInfo.TensorPropertiesOrBuilder>( + outputs_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + + private org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties device_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties, org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.Builder, org.tensorflow.proto.DevicePropertiesProtos.DevicePropertiesOrBuilder> deviceBuilder_; + /** + *
+       * Device on which the operation is run.
+       * 
+ * + * .tensorflow.DeviceProperties device = 4; + * @return Whether the device field is set. + */ + public boolean hasDevice() { + return deviceBuilder_ != null || device_ != null; + } + /** + *
+       * Device on which the operation is run.
+       * 
+ * + * .tensorflow.DeviceProperties device = 4; + * @return The device. + */ + public org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties getDevice() { + if (deviceBuilder_ == null) { + return device_ == null ? org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.getDefaultInstance() : device_; + } else { + return deviceBuilder_.getMessage(); + } + } + /** + *
+       * Device on which the operation is run.
+       * 
+ * + * .tensorflow.DeviceProperties device = 4; + */ + public Builder setDevice(org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties value) { + if (deviceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + device_ = value; + onChanged(); + } else { + deviceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Device on which the operation is run.
+       * 
+ * + * .tensorflow.DeviceProperties device = 4; + */ + public Builder setDevice( + org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.Builder builderForValue) { + if (deviceBuilder_ == null) { + device_ = builderForValue.build(); + onChanged(); + } else { + deviceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Device on which the operation is run.
+       * 
+ * + * .tensorflow.DeviceProperties device = 4; + */ + public Builder mergeDevice(org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties value) { + if (deviceBuilder_ == null) { + if (device_ != null) { + device_ = + org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.newBuilder(device_).mergeFrom(value).buildPartial(); + } else { + device_ = value; + } + onChanged(); + } else { + deviceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Device on which the operation is run.
+       * 
+ * + * .tensorflow.DeviceProperties device = 4; + */ + public Builder clearDevice() { + if (deviceBuilder_ == null) { + device_ = null; + onChanged(); + } else { + device_ = null; + deviceBuilder_ = null; + } + + return this; + } + /** + *
+       * Device on which the operation is run.
+       * 
+ * + * .tensorflow.DeviceProperties device = 4; + */ + public org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.Builder getDeviceBuilder() { + + onChanged(); + return getDeviceFieldBuilder().getBuilder(); + } + /** + *
+       * Device on which the operation is run.
+       * 
+ * + * .tensorflow.DeviceProperties device = 4; + */ + public org.tensorflow.proto.DevicePropertiesProtos.DevicePropertiesOrBuilder getDeviceOrBuilder() { + if (deviceBuilder_ != null) { + return deviceBuilder_.getMessageOrBuilder(); + } else { + return device_ == null ? + org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.getDefaultInstance() : device_; + } + } + /** + *
+       * Device on which the operation is run.
+       * 
+ * + * .tensorflow.DeviceProperties device = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties, org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.Builder, org.tensorflow.proto.DevicePropertiesProtos.DevicePropertiesOrBuilder> + getDeviceFieldBuilder() { + if (deviceBuilder_ == null) { + deviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties, org.tensorflow.proto.DevicePropertiesProtos.DeviceProperties.Builder, org.tensorflow.proto.DevicePropertiesProtos.DevicePropertiesOrBuilder>( + getDevice(), + getParentForChildren(), + isClean()); + device_ = null; + } + return deviceBuilder_; + } + + private org.tensorflow.proto.OpPerformanceData.SessionInfo sessionInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.SessionInfo, org.tensorflow.proto.OpPerformanceData.SessionInfo.Builder, org.tensorflow.proto.OpPerformanceData.SessionInfoOrBuilder> sessionInfoBuilder_; + /** + *
+       * Information about the session configs.
+       * 
+ * + * .tensorflow.SessionInfo session_info = 6; + * @return Whether the sessionInfo field is set. + */ + public boolean hasSessionInfo() { + return sessionInfoBuilder_ != null || sessionInfo_ != null; + } + /** + *
+       * Information about the session configs.
+       * 
+ * + * .tensorflow.SessionInfo session_info = 6; + * @return The sessionInfo. + */ + public org.tensorflow.proto.OpPerformanceData.SessionInfo getSessionInfo() { + if (sessionInfoBuilder_ == null) { + return sessionInfo_ == null ? org.tensorflow.proto.OpPerformanceData.SessionInfo.getDefaultInstance() : sessionInfo_; + } else { + return sessionInfoBuilder_.getMessage(); + } + } + /** + *
+       * Information about the session configs.
+       * 
+ * + * .tensorflow.SessionInfo session_info = 6; + */ + public Builder setSessionInfo(org.tensorflow.proto.OpPerformanceData.SessionInfo value) { + if (sessionInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sessionInfo_ = value; + onChanged(); + } else { + sessionInfoBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Information about the session configs.
+       * 
+ * + * .tensorflow.SessionInfo session_info = 6; + */ + public Builder setSessionInfo( + org.tensorflow.proto.OpPerformanceData.SessionInfo.Builder builderForValue) { + if (sessionInfoBuilder_ == null) { + sessionInfo_ = builderForValue.build(); + onChanged(); + } else { + sessionInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Information about the session configs.
+       * 
+ * + * .tensorflow.SessionInfo session_info = 6; + */ + public Builder mergeSessionInfo(org.tensorflow.proto.OpPerformanceData.SessionInfo value) { + if (sessionInfoBuilder_ == null) { + if (sessionInfo_ != null) { + sessionInfo_ = + org.tensorflow.proto.OpPerformanceData.SessionInfo.newBuilder(sessionInfo_).mergeFrom(value).buildPartial(); + } else { + sessionInfo_ = value; + } + onChanged(); + } else { + sessionInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Information about the session configs.
+       * 
+ * + * .tensorflow.SessionInfo session_info = 6; + */ + public Builder clearSessionInfo() { + if (sessionInfoBuilder_ == null) { + sessionInfo_ = null; + onChanged(); + } else { + sessionInfo_ = null; + sessionInfoBuilder_ = null; + } + + return this; + } + /** + *
+       * Information about the session configs.
+       * 
+ * + * .tensorflow.SessionInfo session_info = 6; + */ + public org.tensorflow.proto.OpPerformanceData.SessionInfo.Builder getSessionInfoBuilder() { + + onChanged(); + return getSessionInfoFieldBuilder().getBuilder(); + } + /** + *
+       * Information about the session configs.
+       * 
+ * + * .tensorflow.SessionInfo session_info = 6; + */ + public org.tensorflow.proto.OpPerformanceData.SessionInfoOrBuilder getSessionInfoOrBuilder() { + if (sessionInfoBuilder_ != null) { + return sessionInfoBuilder_.getMessageOrBuilder(); + } else { + return sessionInfo_ == null ? + org.tensorflow.proto.OpPerformanceData.SessionInfo.getDefaultInstance() : sessionInfo_; + } + } + /** + *
+       * Information about the session configs.
+       * 
+ * + * .tensorflow.SessionInfo session_info = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.SessionInfo, org.tensorflow.proto.OpPerformanceData.SessionInfo.Builder, org.tensorflow.proto.OpPerformanceData.SessionInfoOrBuilder> + getSessionInfoFieldBuilder() { + if (sessionInfoBuilder_ == null) { + sessionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.SessionInfo, org.tensorflow.proto.OpPerformanceData.SessionInfo.Builder, org.tensorflow.proto.OpPerformanceData.SessionInfoOrBuilder>( + getSessionInfo(), + getParentForChildren(), + isClean()); + sessionInfo_ = null; + } + return sessionInfoBuilder_; + } + @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:tensorflow.OpInfo) + } + + // @@protoc_insertion_point(class_scope:tensorflow.OpInfo) + private static final org.tensorflow.proto.OpPerformanceData.OpInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.OpPerformanceData.OpInfo(); + } + + public static org.tensorflow.proto.OpPerformanceData.OpInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpInfo 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 org.tensorflow.proto.OpPerformanceData.OpInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NormalDistributionOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.NormalDistribution) + com.google.protobuf.MessageOrBuilder { + + /** + * double mu = 1; + * @return The mu. + */ + double getMu(); + + /** + * double sigma = 2; + * @return The sigma. + */ + double getSigma(); + } + /** + * Protobuf type {@code tensorflow.NormalDistribution} + */ + public static final class NormalDistribution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.NormalDistribution) + NormalDistributionOrBuilder { + private static final long serialVersionUID = 0L; + // Use NormalDistribution.newBuilder() to construct. + private NormalDistribution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NormalDistribution() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NormalDistribution(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_NormalDistribution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_NormalDistribution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpPerformanceData.NormalDistribution.class, org.tensorflow.proto.OpPerformanceData.NormalDistribution.Builder.class); + } + + public static final int MU_FIELD_NUMBER = 1; + private double mu_; + /** + * double mu = 1; + * @return The mu. + */ + @java.lang.Override + public double getMu() { + return mu_; + } + + public static final int SIGMA_FIELD_NUMBER = 2; + private double sigma_; + /** + * double sigma = 2; + * @return The sigma. + */ + @java.lang.Override + public double getSigma() { + return sigma_; + } + + 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 (java.lang.Double.doubleToRawLongBits(mu_) != 0) { + output.writeDouble(1, mu_); + } + if (java.lang.Double.doubleToRawLongBits(sigma_) != 0) { + output.writeDouble(2, sigma_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Double.doubleToRawLongBits(mu_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, mu_); + } + if (java.lang.Double.doubleToRawLongBits(sigma_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, sigma_); + } + 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 org.tensorflow.proto.OpPerformanceData.NormalDistribution)) { + return super.equals(obj); + } + org.tensorflow.proto.OpPerformanceData.NormalDistribution other = (org.tensorflow.proto.OpPerformanceData.NormalDistribution) obj; + + if (java.lang.Double.doubleToLongBits(getMu()) + != java.lang.Double.doubleToLongBits( + other.getMu())) return false; + if (java.lang.Double.doubleToLongBits(getSigma()) + != java.lang.Double.doubleToLongBits( + other.getSigma())) 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) + MU_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMu())); + hash = (37 * hash) + SIGMA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSigma())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.OpPerformanceData.NormalDistribution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.NormalDistribution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.NormalDistribution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.NormalDistribution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.NormalDistribution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.NormalDistribution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.NormalDistribution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.NormalDistribution 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 org.tensorflow.proto.OpPerformanceData.NormalDistribution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.NormalDistribution 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 org.tensorflow.proto.OpPerformanceData.NormalDistribution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.NormalDistribution 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(org.tensorflow.proto.OpPerformanceData.NormalDistribution prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.NormalDistribution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.NormalDistribution) + org.tensorflow.proto.OpPerformanceData.NormalDistributionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_NormalDistribution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_NormalDistribution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpPerformanceData.NormalDistribution.class, org.tensorflow.proto.OpPerformanceData.NormalDistribution.Builder.class); + } + + // Construct using org.tensorflow.proto.OpPerformanceData.NormalDistribution.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + mu_ = 0D; + + sigma_ = 0D; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_NormalDistribution_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.NormalDistribution getDefaultInstanceForType() { + return org.tensorflow.proto.OpPerformanceData.NormalDistribution.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.NormalDistribution build() { + org.tensorflow.proto.OpPerformanceData.NormalDistribution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.NormalDistribution buildPartial() { + org.tensorflow.proto.OpPerformanceData.NormalDistribution result = new org.tensorflow.proto.OpPerformanceData.NormalDistribution(this); + result.mu_ = mu_; + result.sigma_ = sigma_; + 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 org.tensorflow.proto.OpPerformanceData.NormalDistribution) { + return mergeFrom((org.tensorflow.proto.OpPerformanceData.NormalDistribution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.OpPerformanceData.NormalDistribution other) { + if (other == org.tensorflow.proto.OpPerformanceData.NormalDistribution.getDefaultInstance()) return this; + if (other.getMu() != 0D) { + setMu(other.getMu()); + } + if (other.getSigma() != 0D) { + setSigma(other.getSigma()); + } + 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 9: { + mu_ = input.readDouble(); + + break; + } // case 9 + case 17: { + sigma_ = input.readDouble(); + + break; + } // case 17 + 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 double mu_ ; + /** + * double mu = 1; + * @return The mu. + */ + @java.lang.Override + public double getMu() { + return mu_; + } + /** + * double mu = 1; + * @param value The mu to set. + * @return This builder for chaining. + */ + public Builder setMu(double value) { + + mu_ = value; + onChanged(); + return this; + } + /** + * double mu = 1; + * @return This builder for chaining. + */ + public Builder clearMu() { + + mu_ = 0D; + onChanged(); + return this; + } + + private double sigma_ ; + /** + * double sigma = 2; + * @return The sigma. + */ + @java.lang.Override + public double getSigma() { + return sigma_; + } + /** + * double sigma = 2; + * @param value The sigma to set. + * @return This builder for chaining. + */ + public Builder setSigma(double value) { + + sigma_ = value; + onChanged(); + return this; + } + /** + * double sigma = 2; + * @return This builder for chaining. + */ + public Builder clearSigma() { + + sigma_ = 0D; + 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:tensorflow.NormalDistribution) + } + + // @@protoc_insertion_point(class_scope:tensorflow.NormalDistribution) + private static final org.tensorflow.proto.OpPerformanceData.NormalDistribution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.OpPerformanceData.NormalDistribution(); + } + + public static org.tensorflow.proto.OpPerformanceData.NormalDistribution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NormalDistribution 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 org.tensorflow.proto.OpPerformanceData.NormalDistribution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LogNormalDistributionOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.LogNormalDistribution) + com.google.protobuf.MessageOrBuilder { + + /** + * double mu = 1; + * @return The mu. + */ + double getMu(); + + /** + * double sigma = 2; + * @return The sigma. + */ + double getSigma(); + } + /** + * Protobuf type {@code tensorflow.LogNormalDistribution} + */ + public static final class LogNormalDistribution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.LogNormalDistribution) + LogNormalDistributionOrBuilder { + private static final long serialVersionUID = 0L; + // Use LogNormalDistribution.newBuilder() to construct. + private LogNormalDistribution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LogNormalDistribution() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LogNormalDistribution(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_LogNormalDistribution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_LogNormalDistribution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpPerformanceData.LogNormalDistribution.class, org.tensorflow.proto.OpPerformanceData.LogNormalDistribution.Builder.class); + } + + public static final int MU_FIELD_NUMBER = 1; + private double mu_; + /** + * double mu = 1; + * @return The mu. + */ + @java.lang.Override + public double getMu() { + return mu_; + } + + public static final int SIGMA_FIELD_NUMBER = 2; + private double sigma_; + /** + * double sigma = 2; + * @return The sigma. + */ + @java.lang.Override + public double getSigma() { + return sigma_; + } + + 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 (java.lang.Double.doubleToRawLongBits(mu_) != 0) { + output.writeDouble(1, mu_); + } + if (java.lang.Double.doubleToRawLongBits(sigma_) != 0) { + output.writeDouble(2, sigma_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Double.doubleToRawLongBits(mu_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, mu_); + } + if (java.lang.Double.doubleToRawLongBits(sigma_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, sigma_); + } + 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 org.tensorflow.proto.OpPerformanceData.LogNormalDistribution)) { + return super.equals(obj); + } + org.tensorflow.proto.OpPerformanceData.LogNormalDistribution other = (org.tensorflow.proto.OpPerformanceData.LogNormalDistribution) obj; + + if (java.lang.Double.doubleToLongBits(getMu()) + != java.lang.Double.doubleToLongBits( + other.getMu())) return false; + if (java.lang.Double.doubleToLongBits(getSigma()) + != java.lang.Double.doubleToLongBits( + other.getSigma())) 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) + MU_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMu())); + hash = (37 * hash) + SIGMA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSigma())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.OpPerformanceData.LogNormalDistribution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.LogNormalDistribution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.LogNormalDistribution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.LogNormalDistribution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.LogNormalDistribution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.LogNormalDistribution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.LogNormalDistribution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.LogNormalDistribution 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 org.tensorflow.proto.OpPerformanceData.LogNormalDistribution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.LogNormalDistribution 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 org.tensorflow.proto.OpPerformanceData.LogNormalDistribution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.LogNormalDistribution 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(org.tensorflow.proto.OpPerformanceData.LogNormalDistribution prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.LogNormalDistribution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.LogNormalDistribution) + org.tensorflow.proto.OpPerformanceData.LogNormalDistributionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_LogNormalDistribution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_LogNormalDistribution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpPerformanceData.LogNormalDistribution.class, org.tensorflow.proto.OpPerformanceData.LogNormalDistribution.Builder.class); + } + + // Construct using org.tensorflow.proto.OpPerformanceData.LogNormalDistribution.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + mu_ = 0D; + + sigma_ = 0D; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_LogNormalDistribution_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.LogNormalDistribution getDefaultInstanceForType() { + return org.tensorflow.proto.OpPerformanceData.LogNormalDistribution.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.LogNormalDistribution build() { + org.tensorflow.proto.OpPerformanceData.LogNormalDistribution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.LogNormalDistribution buildPartial() { + org.tensorflow.proto.OpPerformanceData.LogNormalDistribution result = new org.tensorflow.proto.OpPerformanceData.LogNormalDistribution(this); + result.mu_ = mu_; + result.sigma_ = sigma_; + 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 org.tensorflow.proto.OpPerformanceData.LogNormalDistribution) { + return mergeFrom((org.tensorflow.proto.OpPerformanceData.LogNormalDistribution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.OpPerformanceData.LogNormalDistribution other) { + if (other == org.tensorflow.proto.OpPerformanceData.LogNormalDistribution.getDefaultInstance()) return this; + if (other.getMu() != 0D) { + setMu(other.getMu()); + } + if (other.getSigma() != 0D) { + setSigma(other.getSigma()); + } + 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 9: { + mu_ = input.readDouble(); + + break; + } // case 9 + case 17: { + sigma_ = input.readDouble(); + + break; + } // case 17 + 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 double mu_ ; + /** + * double mu = 1; + * @return The mu. + */ + @java.lang.Override + public double getMu() { + return mu_; + } + /** + * double mu = 1; + * @param value The mu to set. + * @return This builder for chaining. + */ + public Builder setMu(double value) { + + mu_ = value; + onChanged(); + return this; + } + /** + * double mu = 1; + * @return This builder for chaining. + */ + public Builder clearMu() { + + mu_ = 0D; + onChanged(); + return this; + } + + private double sigma_ ; + /** + * double sigma = 2; + * @return The sigma. + */ + @java.lang.Override + public double getSigma() { + return sigma_; + } + /** + * double sigma = 2; + * @param value The sigma to set. + * @return This builder for chaining. + */ + public Builder setSigma(double value) { + + sigma_ = value; + onChanged(); + return this; + } + /** + * double sigma = 2; + * @return This builder for chaining. + */ + public Builder clearSigma() { + + sigma_ = 0D; + 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:tensorflow.LogNormalDistribution) + } + + // @@protoc_insertion_point(class_scope:tensorflow.LogNormalDistribution) + private static final org.tensorflow.proto.OpPerformanceData.LogNormalDistribution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.OpPerformanceData.LogNormalDistribution(); + } + + public static org.tensorflow.proto.OpPerformanceData.LogNormalDistribution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogNormalDistribution 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 org.tensorflow.proto.OpPerformanceData.LogNormalDistribution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OpPerformanceOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.OpPerformance) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The op
+     * 
+ * + * .tensorflow.OpInfo op = 1; + * @return Whether the op field is set. + */ + boolean hasOp(); + /** + *
+     * The op
+     * 
+ * + * .tensorflow.OpInfo op = 1; + * @return The op. + */ + org.tensorflow.proto.OpPerformanceData.OpInfo getOp(); + /** + *
+     * The op
+     * 
+ * + * .tensorflow.OpInfo op = 1; + */ + org.tensorflow.proto.OpPerformanceData.OpInfoOrBuilder getOpOrBuilder(); + + /** + *
+     * Information about the session configs.
+     * 
+ * + * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; + * @deprecated tensorflow.OpPerformance.session_info is deprecated. + * See tensorflow/core/grappler/costs/op_performance_data.proto;l=74 + * @return Whether the sessionInfo field is set. + */ + @java.lang.Deprecated boolean hasSessionInfo(); + /** + *
+     * Information about the session configs.
+     * 
+ * + * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; + * @deprecated tensorflow.OpPerformance.session_info is deprecated. + * See tensorflow/core/grappler/costs/op_performance_data.proto;l=74 + * @return The sessionInfo. + */ + @java.lang.Deprecated org.tensorflow.proto.OpPerformanceData.SessionInfo getSessionInfo(); + /** + *
+     * Information about the session configs.
+     * 
+ * + * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; + */ + @java.lang.Deprecated org.tensorflow.proto.OpPerformanceData.SessionInfoOrBuilder getSessionInfoOrBuilder(); + + /** + *
+     * The node name (optional). Makes it easier to associate the performance data
+     * with a specific graph node.
+     * 
+ * + * string node = 5; + * @return The node. + */ + java.lang.String getNode(); + /** + *
+     * The node name (optional). Makes it easier to associate the performance data
+     * with a specific graph node.
+     * 
+ * + * string node = 5; + * @return The bytes for node. + */ + com.google.protobuf.ByteString + getNodeBytes(); + + /** + *
+     * Temporary memory used by this node (in bytes).
+     * 
+ * + * int64 temporary_memory_size = 2; + * @return The temporaryMemorySize. + */ + long getTemporaryMemorySize(); + + /** + *
+     * Time it takes to run the op (in nanoseconds).
+     * 
+ * + * int64 compute_cost = 3; + * @return The computeCost. + */ + long getComputeCost(); + + /** + *
+     * Analytical compute cost (in nanoseconds).
+     * 
+ * + * int64 compute_time = 6; + * @return The computeTime. + */ + long getComputeTime(); + + /** + *
+     * Analytical memory access cost (in nanoseconds).
+     * 
+ * + * int64 memory_time = 7; + * @return The memoryTime. + */ + long getMemoryTime(); + + /** + *
+     * Percentage of theoretical compute performance.
+     * 
+ * + * double compute_efficiency = 4; + * @return The computeEfficiency. + */ + double getComputeEfficiency(); + + /** + *
+     * Percentage of theoretical memory performance.
+     * 
+ * + * double memory_efficiency = 8; + * @return The memoryEfficiency. + */ + double getMemoryEfficiency(); + + /** + * .tensorflow.NormalDistribution execution_time_normal = 10; + * @return Whether the executionTimeNormal field is set. + */ + boolean hasExecutionTimeNormal(); + /** + * .tensorflow.NormalDistribution execution_time_normal = 10; + * @return The executionTimeNormal. + */ + org.tensorflow.proto.OpPerformanceData.NormalDistribution getExecutionTimeNormal(); + /** + * .tensorflow.NormalDistribution execution_time_normal = 10; + */ + org.tensorflow.proto.OpPerformanceData.NormalDistributionOrBuilder getExecutionTimeNormalOrBuilder(); + + /** + * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; + * @return Whether the executionTimeLogNormal field is set. + */ + boolean hasExecutionTimeLogNormal(); + /** + * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; + * @return The executionTimeLogNormal. + */ + org.tensorflow.proto.OpPerformanceData.LogNormalDistribution getExecutionTimeLogNormal(); + /** + * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; + */ + org.tensorflow.proto.OpPerformanceData.LogNormalDistributionOrBuilder getExecutionTimeLogNormalOrBuilder(); + + /** + * .tensorflow.OpPerformance.OpMemory op_memory = 9; + * @return Whether the opMemory field is set. + */ + boolean hasOpMemory(); + /** + * .tensorflow.OpPerformance.OpMemory op_memory = 9; + * @return The opMemory. + */ + org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory getOpMemory(); + /** + * .tensorflow.OpPerformance.OpMemory op_memory = 9; + */ + org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemoryOrBuilder getOpMemoryOrBuilder(); + + public org.tensorflow.proto.OpPerformanceData.OpPerformance.ExecutionTimeCase getExecutionTimeCase(); + } + /** + *
+   * Performance data for tensorflow operations
+   * 
+ * + * Protobuf type {@code tensorflow.OpPerformance} + */ + public static final class OpPerformance extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.OpPerformance) + OpPerformanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use OpPerformance.newBuilder() to construct. + private OpPerformance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OpPerformance() { + node_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OpPerformance(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpPerformance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpPerformance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpPerformanceData.OpPerformance.class, org.tensorflow.proto.OpPerformanceData.OpPerformance.Builder.class); + } + + public interface OpMemoryOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.OpPerformance.OpMemory) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * The output information may have memory usage and output shapes.
+       * 
+ * + * repeated int64 output_memory = 1; + * @return A list containing the outputMemory. + */ + java.util.List getOutputMemoryList(); + /** + *
+       * The output information may have memory usage and output shapes.
+       * 
+ * + * repeated int64 output_memory = 1; + * @return The count of outputMemory. + */ + int getOutputMemoryCount(); + /** + *
+       * The output information may have memory usage and output shapes.
+       * 
+ * + * repeated int64 output_memory = 1; + * @param index The index of the element to return. + * @return The outputMemory at the given index. + */ + long getOutputMemory(int index); + + /** + *
+       * Temp and persistent memory allocated by this node.
+       * 
+ * + * int64 temp_memory = 2; + * @return The tempMemory. + */ + long getTempMemory(); + + /** + * int64 persistent_memory = 4; + * @return The persistentMemory. + */ + long getPersistentMemory(); + + /** + * int64 device_temp_memory = 3 [deprecated = true]; + * @deprecated tensorflow.OpPerformance.OpMemory.device_temp_memory is deprecated. + * See tensorflow/core/grappler/costs/op_performance_data.proto;l=113 + * @return The deviceTempMemory. + */ + @java.lang.Deprecated long getDeviceTempMemory(); + + /** + * int64 device_persistent_memory = 5 [deprecated = true]; + * @deprecated tensorflow.OpPerformance.OpMemory.device_persistent_memory is deprecated. + * See tensorflow/core/grappler/costs/op_performance_data.proto;l=114 + * @return The devicePersistentMemory. + */ + @java.lang.Deprecated long getDevicePersistentMemory(); + } + /** + *
+     * Memory usage data for a tensorflow operation.
+     * 
+ * + * Protobuf type {@code tensorflow.OpPerformance.OpMemory} + */ + public static final class OpMemory extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.OpPerformance.OpMemory) + OpMemoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use OpMemory.newBuilder() to construct. + private OpMemory(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OpMemory() { + outputMemory_ = emptyLongList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OpMemory(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpPerformance_OpMemory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpPerformance_OpMemory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory.class, org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory.Builder.class); + } + + public static final int OUTPUT_MEMORY_FIELD_NUMBER = 1; + private com.google.protobuf.Internal.LongList outputMemory_; + /** + *
+       * The output information may have memory usage and output shapes.
+       * 
+ * + * repeated int64 output_memory = 1; + * @return A list containing the outputMemory. + */ + @java.lang.Override + public java.util.List + getOutputMemoryList() { + return outputMemory_; + } + /** + *
+       * The output information may have memory usage and output shapes.
+       * 
+ * + * repeated int64 output_memory = 1; + * @return The count of outputMemory. + */ + public int getOutputMemoryCount() { + return outputMemory_.size(); + } + /** + *
+       * The output information may have memory usage and output shapes.
+       * 
+ * + * repeated int64 output_memory = 1; + * @param index The index of the element to return. + * @return The outputMemory at the given index. + */ + public long getOutputMemory(int index) { + return outputMemory_.getLong(index); + } + private int outputMemoryMemoizedSerializedSize = -1; + + public static final int TEMP_MEMORY_FIELD_NUMBER = 2; + private long tempMemory_; + /** + *
+       * Temp and persistent memory allocated by this node.
+       * 
+ * + * int64 temp_memory = 2; + * @return The tempMemory. + */ + @java.lang.Override + public long getTempMemory() { + return tempMemory_; + } + + public static final int PERSISTENT_MEMORY_FIELD_NUMBER = 4; + private long persistentMemory_; + /** + * int64 persistent_memory = 4; + * @return The persistentMemory. + */ + @java.lang.Override + public long getPersistentMemory() { + return persistentMemory_; + } + + public static final int DEVICE_TEMP_MEMORY_FIELD_NUMBER = 3; + private long deviceTempMemory_; + /** + * int64 device_temp_memory = 3 [deprecated = true]; + * @deprecated tensorflow.OpPerformance.OpMemory.device_temp_memory is deprecated. + * See tensorflow/core/grappler/costs/op_performance_data.proto;l=113 + * @return The deviceTempMemory. + */ + @java.lang.Override + @java.lang.Deprecated public long getDeviceTempMemory() { + return deviceTempMemory_; + } + + public static final int DEVICE_PERSISTENT_MEMORY_FIELD_NUMBER = 5; + private long devicePersistentMemory_; + /** + * int64 device_persistent_memory = 5 [deprecated = true]; + * @deprecated tensorflow.OpPerformance.OpMemory.device_persistent_memory is deprecated. + * See tensorflow/core/grappler/costs/op_performance_data.proto;l=114 + * @return The devicePersistentMemory. + */ + @java.lang.Override + @java.lang.Deprecated public long getDevicePersistentMemory() { + return devicePersistentMemory_; + } + + 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 { + getSerializedSize(); + if (getOutputMemoryList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(outputMemoryMemoizedSerializedSize); + } + for (int i = 0; i < outputMemory_.size(); i++) { + output.writeInt64NoTag(outputMemory_.getLong(i)); + } + if (tempMemory_ != 0L) { + output.writeInt64(2, tempMemory_); + } + if (deviceTempMemory_ != 0L) { + output.writeInt64(3, deviceTempMemory_); + } + if (persistentMemory_ != 0L) { + output.writeInt64(4, persistentMemory_); + } + if (devicePersistentMemory_ != 0L) { + output.writeInt64(5, devicePersistentMemory_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < outputMemory_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(outputMemory_.getLong(i)); + } + size += dataSize; + if (!getOutputMemoryList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + outputMemoryMemoizedSerializedSize = dataSize; + } + if (tempMemory_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, tempMemory_); + } + if (deviceTempMemory_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, deviceTempMemory_); + } + if (persistentMemory_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, persistentMemory_); + } + if (devicePersistentMemory_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, devicePersistentMemory_); + } + 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 org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory)) { + return super.equals(obj); + } + org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory other = (org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory) obj; + + if (!getOutputMemoryList() + .equals(other.getOutputMemoryList())) return false; + if (getTempMemory() + != other.getTempMemory()) return false; + if (getPersistentMemory() + != other.getPersistentMemory()) return false; + if (getDeviceTempMemory() + != other.getDeviceTempMemory()) return false; + if (getDevicePersistentMemory() + != other.getDevicePersistentMemory()) 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 (getOutputMemoryCount() > 0) { + hash = (37 * hash) + OUTPUT_MEMORY_FIELD_NUMBER; + hash = (53 * hash) + getOutputMemoryList().hashCode(); + } + hash = (37 * hash) + TEMP_MEMORY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTempMemory()); + hash = (37 * hash) + PERSISTENT_MEMORY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPersistentMemory()); + hash = (37 * hash) + DEVICE_TEMP_MEMORY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDeviceTempMemory()); + hash = (37 * hash) + DEVICE_PERSISTENT_MEMORY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDevicePersistentMemory()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory 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 org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory 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 org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory 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(org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory 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; + } + /** + *
+       * Memory usage data for a tensorflow operation.
+       * 
+ * + * Protobuf type {@code tensorflow.OpPerformance.OpMemory} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.OpPerformance.OpMemory) + org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpPerformance_OpMemory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpPerformance_OpMemory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory.class, org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory.Builder.class); + } + + // Construct using org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + outputMemory_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + tempMemory_ = 0L; + + persistentMemory_ = 0L; + + deviceTempMemory_ = 0L; + + devicePersistentMemory_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpPerformance_OpMemory_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory getDefaultInstanceForType() { + return org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory build() { + org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory buildPartial() { + org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory result = new org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + outputMemory_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.outputMemory_ = outputMemory_; + result.tempMemory_ = tempMemory_; + result.persistentMemory_ = persistentMemory_; + result.deviceTempMemory_ = deviceTempMemory_; + result.devicePersistentMemory_ = devicePersistentMemory_; + 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 org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory) { + return mergeFrom((org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory other) { + if (other == org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory.getDefaultInstance()) return this; + if (!other.outputMemory_.isEmpty()) { + if (outputMemory_.isEmpty()) { + outputMemory_ = other.outputMemory_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOutputMemoryIsMutable(); + outputMemory_.addAll(other.outputMemory_); + } + onChanged(); + } + if (other.getTempMemory() != 0L) { + setTempMemory(other.getTempMemory()); + } + if (other.getPersistentMemory() != 0L) { + setPersistentMemory(other.getPersistentMemory()); + } + if (other.getDeviceTempMemory() != 0L) { + setDeviceTempMemory(other.getDeviceTempMemory()); + } + if (other.getDevicePersistentMemory() != 0L) { + setDevicePersistentMemory(other.getDevicePersistentMemory()); + } + 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: { + long v = input.readInt64(); + ensureOutputMemoryIsMutable(); + outputMemory_.addLong(v); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureOutputMemoryIsMutable(); + while (input.getBytesUntilLimit() > 0) { + outputMemory_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 10 + case 16: { + tempMemory_ = input.readInt64(); + + break; + } // case 16 + case 24: { + deviceTempMemory_ = input.readInt64(); + + break; + } // case 24 + case 32: { + persistentMemory_ = input.readInt64(); + + break; + } // case 32 + case 40: { + devicePersistentMemory_ = input.readInt64(); + + break; + } // case 40 + 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.protobuf.Internal.LongList outputMemory_ = emptyLongList(); + private void ensureOutputMemoryIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + outputMemory_ = mutableCopy(outputMemory_); + bitField0_ |= 0x00000001; + } + } + /** + *
+         * The output information may have memory usage and output shapes.
+         * 
+ * + * repeated int64 output_memory = 1; + * @return A list containing the outputMemory. + */ + public java.util.List + getOutputMemoryList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(outputMemory_) : outputMemory_; + } + /** + *
+         * The output information may have memory usage and output shapes.
+         * 
+ * + * repeated int64 output_memory = 1; + * @return The count of outputMemory. + */ + public int getOutputMemoryCount() { + return outputMemory_.size(); + } + /** + *
+         * The output information may have memory usage and output shapes.
+         * 
+ * + * repeated int64 output_memory = 1; + * @param index The index of the element to return. + * @return The outputMemory at the given index. + */ + public long getOutputMemory(int index) { + return outputMemory_.getLong(index); + } + /** + *
+         * The output information may have memory usage and output shapes.
+         * 
+ * + * repeated int64 output_memory = 1; + * @param index The index to set the value at. + * @param value The outputMemory to set. + * @return This builder for chaining. + */ + public Builder setOutputMemory( + int index, long value) { + ensureOutputMemoryIsMutable(); + outputMemory_.setLong(index, value); + onChanged(); + return this; + } + /** + *
+         * The output information may have memory usage and output shapes.
+         * 
+ * + * repeated int64 output_memory = 1; + * @param value The outputMemory to add. + * @return This builder for chaining. + */ + public Builder addOutputMemory(long value) { + ensureOutputMemoryIsMutable(); + outputMemory_.addLong(value); + onChanged(); + return this; + } + /** + *
+         * The output information may have memory usage and output shapes.
+         * 
+ * + * repeated int64 output_memory = 1; + * @param values The outputMemory to add. + * @return This builder for chaining. + */ + public Builder addAllOutputMemory( + java.lang.Iterable values) { + ensureOutputMemoryIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outputMemory_); + onChanged(); + return this; + } + /** + *
+         * The output information may have memory usage and output shapes.
+         * 
+ * + * repeated int64 output_memory = 1; + * @return This builder for chaining. + */ + public Builder clearOutputMemory() { + outputMemory_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private long tempMemory_ ; + /** + *
+         * Temp and persistent memory allocated by this node.
+         * 
+ * + * int64 temp_memory = 2; + * @return The tempMemory. + */ + @java.lang.Override + public long getTempMemory() { + return tempMemory_; + } + /** + *
+         * Temp and persistent memory allocated by this node.
+         * 
+ * + * int64 temp_memory = 2; + * @param value The tempMemory to set. + * @return This builder for chaining. + */ + public Builder setTempMemory(long value) { + + tempMemory_ = value; + onChanged(); + return this; + } + /** + *
+         * Temp and persistent memory allocated by this node.
+         * 
+ * + * int64 temp_memory = 2; + * @return This builder for chaining. + */ + public Builder clearTempMemory() { + + tempMemory_ = 0L; + onChanged(); + return this; + } + + private long persistentMemory_ ; + /** + * int64 persistent_memory = 4; + * @return The persistentMemory. + */ + @java.lang.Override + public long getPersistentMemory() { + return persistentMemory_; + } + /** + * int64 persistent_memory = 4; + * @param value The persistentMemory to set. + * @return This builder for chaining. + */ + public Builder setPersistentMemory(long value) { + + persistentMemory_ = value; + onChanged(); + return this; + } + /** + * int64 persistent_memory = 4; + * @return This builder for chaining. + */ + public Builder clearPersistentMemory() { + + persistentMemory_ = 0L; + onChanged(); + return this; + } + + private long deviceTempMemory_ ; + /** + * int64 device_temp_memory = 3 [deprecated = true]; + * @deprecated tensorflow.OpPerformance.OpMemory.device_temp_memory is deprecated. + * See tensorflow/core/grappler/costs/op_performance_data.proto;l=113 + * @return The deviceTempMemory. + */ + @java.lang.Override + @java.lang.Deprecated public long getDeviceTempMemory() { + return deviceTempMemory_; + } + /** + * int64 device_temp_memory = 3 [deprecated = true]; + * @deprecated tensorflow.OpPerformance.OpMemory.device_temp_memory is deprecated. + * See tensorflow/core/grappler/costs/op_performance_data.proto;l=113 + * @param value The deviceTempMemory to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setDeviceTempMemory(long value) { + + deviceTempMemory_ = value; + onChanged(); + return this; + } + /** + * int64 device_temp_memory = 3 [deprecated = true]; + * @deprecated tensorflow.OpPerformance.OpMemory.device_temp_memory is deprecated. + * See tensorflow/core/grappler/costs/op_performance_data.proto;l=113 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearDeviceTempMemory() { + + deviceTempMemory_ = 0L; + onChanged(); + return this; + } + + private long devicePersistentMemory_ ; + /** + * int64 device_persistent_memory = 5 [deprecated = true]; + * @deprecated tensorflow.OpPerformance.OpMemory.device_persistent_memory is deprecated. + * See tensorflow/core/grappler/costs/op_performance_data.proto;l=114 + * @return The devicePersistentMemory. + */ + @java.lang.Override + @java.lang.Deprecated public long getDevicePersistentMemory() { + return devicePersistentMemory_; + } + /** + * int64 device_persistent_memory = 5 [deprecated = true]; + * @deprecated tensorflow.OpPerformance.OpMemory.device_persistent_memory is deprecated. + * See tensorflow/core/grappler/costs/op_performance_data.proto;l=114 + * @param value The devicePersistentMemory to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setDevicePersistentMemory(long value) { + + devicePersistentMemory_ = value; + onChanged(); + return this; + } + /** + * int64 device_persistent_memory = 5 [deprecated = true]; + * @deprecated tensorflow.OpPerformance.OpMemory.device_persistent_memory is deprecated. + * See tensorflow/core/grappler/costs/op_performance_data.proto;l=114 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearDevicePersistentMemory() { + + devicePersistentMemory_ = 0L; + 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:tensorflow.OpPerformance.OpMemory) + } + + // @@protoc_insertion_point(class_scope:tensorflow.OpPerformance.OpMemory) + private static final org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory(); + } + + public static org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpMemory 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 org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int executionTimeCase_ = 0; + private java.lang.Object executionTime_; + public enum ExecutionTimeCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EXECUTION_TIME_NORMAL(10), + EXECUTION_TIME_LOG_NORMAL(11), + EXECUTIONTIME_NOT_SET(0); + private final int value; + private ExecutionTimeCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExecutionTimeCase valueOf(int value) { + return forNumber(value); + } + + public static ExecutionTimeCase forNumber(int value) { + switch (value) { + case 10: return EXECUTION_TIME_NORMAL; + case 11: return EXECUTION_TIME_LOG_NORMAL; + case 0: return EXECUTIONTIME_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ExecutionTimeCase + getExecutionTimeCase() { + return ExecutionTimeCase.forNumber( + executionTimeCase_); + } + + public static final int OP_FIELD_NUMBER = 1; + private org.tensorflow.proto.OpPerformanceData.OpInfo op_; + /** + *
+     * The op
+     * 
+ * + * .tensorflow.OpInfo op = 1; + * @return Whether the op field is set. + */ + @java.lang.Override + public boolean hasOp() { + return op_ != null; + } + /** + *
+     * The op
+     * 
+ * + * .tensorflow.OpInfo op = 1; + * @return The op. + */ + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpInfo getOp() { + return op_ == null ? org.tensorflow.proto.OpPerformanceData.OpInfo.getDefaultInstance() : op_; + } + /** + *
+     * The op
+     * 
+ * + * .tensorflow.OpInfo op = 1; + */ + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpInfoOrBuilder getOpOrBuilder() { + return getOp(); + } + + public static final int SESSION_INFO_FIELD_NUMBER = 12; + private org.tensorflow.proto.OpPerformanceData.SessionInfo sessionInfo_; + /** + *
+     * Information about the session configs.
+     * 
+ * + * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; + * @deprecated tensorflow.OpPerformance.session_info is deprecated. + * See tensorflow/core/grappler/costs/op_performance_data.proto;l=74 + * @return Whether the sessionInfo field is set. + */ + @java.lang.Override + @java.lang.Deprecated public boolean hasSessionInfo() { + return sessionInfo_ != null; + } + /** + *
+     * Information about the session configs.
+     * 
+ * + * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; + * @deprecated tensorflow.OpPerformance.session_info is deprecated. + * See tensorflow/core/grappler/costs/op_performance_data.proto;l=74 + * @return The sessionInfo. + */ + @java.lang.Override + @java.lang.Deprecated public org.tensorflow.proto.OpPerformanceData.SessionInfo getSessionInfo() { + return sessionInfo_ == null ? org.tensorflow.proto.OpPerformanceData.SessionInfo.getDefaultInstance() : sessionInfo_; + } + /** + *
+     * Information about the session configs.
+     * 
+ * + * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public org.tensorflow.proto.OpPerformanceData.SessionInfoOrBuilder getSessionInfoOrBuilder() { + return getSessionInfo(); + } + + public static final int NODE_FIELD_NUMBER = 5; + private volatile java.lang.Object node_; + /** + *
+     * The node name (optional). Makes it easier to associate the performance data
+     * with a specific graph node.
+     * 
+ * + * string node = 5; + * @return The node. + */ + @java.lang.Override + public java.lang.String getNode() { + java.lang.Object ref = node_; + 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(); + node_ = s; + return s; + } + } + /** + *
+     * The node name (optional). Makes it easier to associate the performance data
+     * with a specific graph node.
+     * 
+ * + * string node = 5; + * @return The bytes for node. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNodeBytes() { + java.lang.Object ref = node_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + node_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEMPORARY_MEMORY_SIZE_FIELD_NUMBER = 2; + private long temporaryMemorySize_; + /** + *
+     * Temporary memory used by this node (in bytes).
+     * 
+ * + * int64 temporary_memory_size = 2; + * @return The temporaryMemorySize. + */ + @java.lang.Override + public long getTemporaryMemorySize() { + return temporaryMemorySize_; + } + + public static final int COMPUTE_COST_FIELD_NUMBER = 3; + private long computeCost_; + /** + *
+     * Time it takes to run the op (in nanoseconds).
+     * 
+ * + * int64 compute_cost = 3; + * @return The computeCost. + */ + @java.lang.Override + public long getComputeCost() { + return computeCost_; + } + + public static final int COMPUTE_TIME_FIELD_NUMBER = 6; + private long computeTime_; + /** + *
+     * Analytical compute cost (in nanoseconds).
+     * 
+ * + * int64 compute_time = 6; + * @return The computeTime. + */ + @java.lang.Override + public long getComputeTime() { + return computeTime_; + } + + public static final int MEMORY_TIME_FIELD_NUMBER = 7; + private long memoryTime_; + /** + *
+     * Analytical memory access cost (in nanoseconds).
+     * 
+ * + * int64 memory_time = 7; + * @return The memoryTime. + */ + @java.lang.Override + public long getMemoryTime() { + return memoryTime_; + } + + public static final int COMPUTE_EFFICIENCY_FIELD_NUMBER = 4; + private double computeEfficiency_; + /** + *
+     * Percentage of theoretical compute performance.
+     * 
+ * + * double compute_efficiency = 4; + * @return The computeEfficiency. + */ + @java.lang.Override + public double getComputeEfficiency() { + return computeEfficiency_; + } + + public static final int MEMORY_EFFICIENCY_FIELD_NUMBER = 8; + private double memoryEfficiency_; + /** + *
+     * Percentage of theoretical memory performance.
+     * 
+ * + * double memory_efficiency = 8; + * @return The memoryEfficiency. + */ + @java.lang.Override + public double getMemoryEfficiency() { + return memoryEfficiency_; + } + + public static final int EXECUTION_TIME_NORMAL_FIELD_NUMBER = 10; + /** + * .tensorflow.NormalDistribution execution_time_normal = 10; + * @return Whether the executionTimeNormal field is set. + */ + @java.lang.Override + public boolean hasExecutionTimeNormal() { + return executionTimeCase_ == 10; + } + /** + * .tensorflow.NormalDistribution execution_time_normal = 10; + * @return The executionTimeNormal. + */ + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.NormalDistribution getExecutionTimeNormal() { + if (executionTimeCase_ == 10) { + return (org.tensorflow.proto.OpPerformanceData.NormalDistribution) executionTime_; + } + return org.tensorflow.proto.OpPerformanceData.NormalDistribution.getDefaultInstance(); + } + /** + * .tensorflow.NormalDistribution execution_time_normal = 10; + */ + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.NormalDistributionOrBuilder getExecutionTimeNormalOrBuilder() { + if (executionTimeCase_ == 10) { + return (org.tensorflow.proto.OpPerformanceData.NormalDistribution) executionTime_; + } + return org.tensorflow.proto.OpPerformanceData.NormalDistribution.getDefaultInstance(); + } + + public static final int EXECUTION_TIME_LOG_NORMAL_FIELD_NUMBER = 11; + /** + * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; + * @return Whether the executionTimeLogNormal field is set. + */ + @java.lang.Override + public boolean hasExecutionTimeLogNormal() { + return executionTimeCase_ == 11; + } + /** + * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; + * @return The executionTimeLogNormal. + */ + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.LogNormalDistribution getExecutionTimeLogNormal() { + if (executionTimeCase_ == 11) { + return (org.tensorflow.proto.OpPerformanceData.LogNormalDistribution) executionTime_; + } + return org.tensorflow.proto.OpPerformanceData.LogNormalDistribution.getDefaultInstance(); + } + /** + * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; + */ + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.LogNormalDistributionOrBuilder getExecutionTimeLogNormalOrBuilder() { + if (executionTimeCase_ == 11) { + return (org.tensorflow.proto.OpPerformanceData.LogNormalDistribution) executionTime_; + } + return org.tensorflow.proto.OpPerformanceData.LogNormalDistribution.getDefaultInstance(); + } + + public static final int OP_MEMORY_FIELD_NUMBER = 9; + private org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory opMemory_; + /** + * .tensorflow.OpPerformance.OpMemory op_memory = 9; + * @return Whether the opMemory field is set. + */ + @java.lang.Override + public boolean hasOpMemory() { + return opMemory_ != null; + } + /** + * .tensorflow.OpPerformance.OpMemory op_memory = 9; + * @return The opMemory. + */ + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory getOpMemory() { + return opMemory_ == null ? org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory.getDefaultInstance() : opMemory_; + } + /** + * .tensorflow.OpPerformance.OpMemory op_memory = 9; + */ + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemoryOrBuilder getOpMemoryOrBuilder() { + return getOpMemory(); + } + + 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 (op_ != null) { + output.writeMessage(1, getOp()); + } + if (temporaryMemorySize_ != 0L) { + output.writeInt64(2, temporaryMemorySize_); + } + if (computeCost_ != 0L) { + output.writeInt64(3, computeCost_); + } + if (java.lang.Double.doubleToRawLongBits(computeEfficiency_) != 0) { + output.writeDouble(4, computeEfficiency_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(node_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, node_); + } + if (computeTime_ != 0L) { + output.writeInt64(6, computeTime_); + } + if (memoryTime_ != 0L) { + output.writeInt64(7, memoryTime_); + } + if (java.lang.Double.doubleToRawLongBits(memoryEfficiency_) != 0) { + output.writeDouble(8, memoryEfficiency_); + } + if (opMemory_ != null) { + output.writeMessage(9, getOpMemory()); + } + if (executionTimeCase_ == 10) { + output.writeMessage(10, (org.tensorflow.proto.OpPerformanceData.NormalDistribution) executionTime_); + } + if (executionTimeCase_ == 11) { + output.writeMessage(11, (org.tensorflow.proto.OpPerformanceData.LogNormalDistribution) executionTime_); + } + if (sessionInfo_ != null) { + output.writeMessage(12, getSessionInfo()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (op_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOp()); + } + if (temporaryMemorySize_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, temporaryMemorySize_); + } + if (computeCost_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, computeCost_); + } + if (java.lang.Double.doubleToRawLongBits(computeEfficiency_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, computeEfficiency_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(node_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, node_); + } + if (computeTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, computeTime_); + } + if (memoryTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, memoryTime_); + } + if (java.lang.Double.doubleToRawLongBits(memoryEfficiency_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(8, memoryEfficiency_); + } + if (opMemory_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getOpMemory()); + } + if (executionTimeCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (org.tensorflow.proto.OpPerformanceData.NormalDistribution) executionTime_); + } + if (executionTimeCase_ == 11) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (org.tensorflow.proto.OpPerformanceData.LogNormalDistribution) executionTime_); + } + if (sessionInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getSessionInfo()); + } + 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 org.tensorflow.proto.OpPerformanceData.OpPerformance)) { + return super.equals(obj); + } + org.tensorflow.proto.OpPerformanceData.OpPerformance other = (org.tensorflow.proto.OpPerformanceData.OpPerformance) obj; + + if (hasOp() != other.hasOp()) return false; + if (hasOp()) { + if (!getOp() + .equals(other.getOp())) return false; + } + if (hasSessionInfo() != other.hasSessionInfo()) return false; + if (hasSessionInfo()) { + if (!getSessionInfo() + .equals(other.getSessionInfo())) return false; + } + if (!getNode() + .equals(other.getNode())) return false; + if (getTemporaryMemorySize() + != other.getTemporaryMemorySize()) return false; + if (getComputeCost() + != other.getComputeCost()) return false; + if (getComputeTime() + != other.getComputeTime()) return false; + if (getMemoryTime() + != other.getMemoryTime()) return false; + if (java.lang.Double.doubleToLongBits(getComputeEfficiency()) + != java.lang.Double.doubleToLongBits( + other.getComputeEfficiency())) return false; + if (java.lang.Double.doubleToLongBits(getMemoryEfficiency()) + != java.lang.Double.doubleToLongBits( + other.getMemoryEfficiency())) return false; + if (hasOpMemory() != other.hasOpMemory()) return false; + if (hasOpMemory()) { + if (!getOpMemory() + .equals(other.getOpMemory())) return false; + } + if (!getExecutionTimeCase().equals(other.getExecutionTimeCase())) return false; + switch (executionTimeCase_) { + case 10: + if (!getExecutionTimeNormal() + .equals(other.getExecutionTimeNormal())) return false; + break; + case 11: + if (!getExecutionTimeLogNormal() + .equals(other.getExecutionTimeLogNormal())) return false; + break; + case 0: + default: + } + 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 (hasOp()) { + hash = (37 * hash) + OP_FIELD_NUMBER; + hash = (53 * hash) + getOp().hashCode(); + } + if (hasSessionInfo()) { + hash = (37 * hash) + SESSION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getSessionInfo().hashCode(); + } + hash = (37 * hash) + NODE_FIELD_NUMBER; + hash = (53 * hash) + getNode().hashCode(); + hash = (37 * hash) + TEMPORARY_MEMORY_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTemporaryMemorySize()); + hash = (37 * hash) + COMPUTE_COST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getComputeCost()); + hash = (37 * hash) + COMPUTE_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getComputeTime()); + hash = (37 * hash) + MEMORY_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMemoryTime()); + hash = (37 * hash) + COMPUTE_EFFICIENCY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getComputeEfficiency())); + hash = (37 * hash) + MEMORY_EFFICIENCY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMemoryEfficiency())); + if (hasOpMemory()) { + hash = (37 * hash) + OP_MEMORY_FIELD_NUMBER; + hash = (53 * hash) + getOpMemory().hashCode(); + } + switch (executionTimeCase_) { + case 10: + hash = (37 * hash) + EXECUTION_TIME_NORMAL_FIELD_NUMBER; + hash = (53 * hash) + getExecutionTimeNormal().hashCode(); + break; + case 11: + hash = (37 * hash) + EXECUTION_TIME_LOG_NORMAL_FIELD_NUMBER; + hash = (53 * hash) + getExecutionTimeLogNormal().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.OpPerformanceData.OpPerformance parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformance parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformance parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformance 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 org.tensorflow.proto.OpPerformanceData.OpPerformance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformance 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 org.tensorflow.proto.OpPerformanceData.OpPerformance parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformance 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(org.tensorflow.proto.OpPerformanceData.OpPerformance 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; + } + /** + *
+     * Performance data for tensorflow operations
+     * 
+ * + * Protobuf type {@code tensorflow.OpPerformance} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.OpPerformance) + org.tensorflow.proto.OpPerformanceData.OpPerformanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpPerformance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpPerformance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpPerformanceData.OpPerformance.class, org.tensorflow.proto.OpPerformanceData.OpPerformance.Builder.class); + } + + // Construct using org.tensorflow.proto.OpPerformanceData.OpPerformance.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (opBuilder_ == null) { + op_ = null; + } else { + op_ = null; + opBuilder_ = null; + } + if (sessionInfoBuilder_ == null) { + sessionInfo_ = null; + } else { + sessionInfo_ = null; + sessionInfoBuilder_ = null; + } + node_ = ""; + + temporaryMemorySize_ = 0L; + + computeCost_ = 0L; + + computeTime_ = 0L; + + memoryTime_ = 0L; + + computeEfficiency_ = 0D; + + memoryEfficiency_ = 0D; + + if (executionTimeNormalBuilder_ != null) { + executionTimeNormalBuilder_.clear(); + } + if (executionTimeLogNormalBuilder_ != null) { + executionTimeLogNormalBuilder_.clear(); + } + if (opMemoryBuilder_ == null) { + opMemory_ = null; + } else { + opMemory_ = null; + opMemoryBuilder_ = null; + } + executionTimeCase_ = 0; + executionTime_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpPerformance_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpPerformance getDefaultInstanceForType() { + return org.tensorflow.proto.OpPerformanceData.OpPerformance.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpPerformance build() { + org.tensorflow.proto.OpPerformanceData.OpPerformance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpPerformance buildPartial() { + org.tensorflow.proto.OpPerformanceData.OpPerformance result = new org.tensorflow.proto.OpPerformanceData.OpPerformance(this); + if (opBuilder_ == null) { + result.op_ = op_; + } else { + result.op_ = opBuilder_.build(); + } + if (sessionInfoBuilder_ == null) { + result.sessionInfo_ = sessionInfo_; + } else { + result.sessionInfo_ = sessionInfoBuilder_.build(); + } + result.node_ = node_; + result.temporaryMemorySize_ = temporaryMemorySize_; + result.computeCost_ = computeCost_; + result.computeTime_ = computeTime_; + result.memoryTime_ = memoryTime_; + result.computeEfficiency_ = computeEfficiency_; + result.memoryEfficiency_ = memoryEfficiency_; + if (executionTimeCase_ == 10) { + if (executionTimeNormalBuilder_ == null) { + result.executionTime_ = executionTime_; + } else { + result.executionTime_ = executionTimeNormalBuilder_.build(); + } + } + if (executionTimeCase_ == 11) { + if (executionTimeLogNormalBuilder_ == null) { + result.executionTime_ = executionTime_; + } else { + result.executionTime_ = executionTimeLogNormalBuilder_.build(); + } + } + if (opMemoryBuilder_ == null) { + result.opMemory_ = opMemory_; + } else { + result.opMemory_ = opMemoryBuilder_.build(); + } + result.executionTimeCase_ = executionTimeCase_; + 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 org.tensorflow.proto.OpPerformanceData.OpPerformance) { + return mergeFrom((org.tensorflow.proto.OpPerformanceData.OpPerformance)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.OpPerformanceData.OpPerformance other) { + if (other == org.tensorflow.proto.OpPerformanceData.OpPerformance.getDefaultInstance()) return this; + if (other.hasOp()) { + mergeOp(other.getOp()); + } + if (other.hasSessionInfo()) { + mergeSessionInfo(other.getSessionInfo()); + } + if (!other.getNode().isEmpty()) { + node_ = other.node_; + onChanged(); + } + if (other.getTemporaryMemorySize() != 0L) { + setTemporaryMemorySize(other.getTemporaryMemorySize()); + } + if (other.getComputeCost() != 0L) { + setComputeCost(other.getComputeCost()); + } + if (other.getComputeTime() != 0L) { + setComputeTime(other.getComputeTime()); + } + if (other.getMemoryTime() != 0L) { + setMemoryTime(other.getMemoryTime()); + } + if (other.getComputeEfficiency() != 0D) { + setComputeEfficiency(other.getComputeEfficiency()); + } + if (other.getMemoryEfficiency() != 0D) { + setMemoryEfficiency(other.getMemoryEfficiency()); + } + if (other.hasOpMemory()) { + mergeOpMemory(other.getOpMemory()); + } + switch (other.getExecutionTimeCase()) { + case EXECUTION_TIME_NORMAL: { + mergeExecutionTimeNormal(other.getExecutionTimeNormal()); + break; + } + case EXECUTION_TIME_LOG_NORMAL: { + mergeExecutionTimeLogNormal(other.getExecutionTimeLogNormal()); + break; + } + case EXECUTIONTIME_NOT_SET: { + break; + } + } + 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( + getOpFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 16: { + temporaryMemorySize_ = input.readInt64(); + + break; + } // case 16 + case 24: { + computeCost_ = input.readInt64(); + + break; + } // case 24 + case 33: { + computeEfficiency_ = input.readDouble(); + + break; + } // case 33 + case 42: { + node_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: { + computeTime_ = input.readInt64(); + + break; + } // case 48 + case 56: { + memoryTime_ = input.readInt64(); + + break; + } // case 56 + case 65: { + memoryEfficiency_ = input.readDouble(); + + break; + } // case 65 + case 74: { + input.readMessage( + getOpMemoryFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 74 + case 82: { + input.readMessage( + getExecutionTimeNormalFieldBuilder().getBuilder(), + extensionRegistry); + executionTimeCase_ = 10; + break; + } // case 82 + case 90: { + input.readMessage( + getExecutionTimeLogNormalFieldBuilder().getBuilder(), + extensionRegistry); + executionTimeCase_ = 11; + break; + } // case 90 + case 98: { + input.readMessage( + getSessionInfoFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 98 + 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 executionTimeCase_ = 0; + private java.lang.Object executionTime_; + public ExecutionTimeCase + getExecutionTimeCase() { + return ExecutionTimeCase.forNumber( + executionTimeCase_); + } + + public Builder clearExecutionTime() { + executionTimeCase_ = 0; + executionTime_ = null; + onChanged(); + return this; + } + + + private org.tensorflow.proto.OpPerformanceData.OpInfo op_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.OpInfo, org.tensorflow.proto.OpPerformanceData.OpInfo.Builder, org.tensorflow.proto.OpPerformanceData.OpInfoOrBuilder> opBuilder_; + /** + *
+       * The op
+       * 
+ * + * .tensorflow.OpInfo op = 1; + * @return Whether the op field is set. + */ + public boolean hasOp() { + return opBuilder_ != null || op_ != null; + } + /** + *
+       * The op
+       * 
+ * + * .tensorflow.OpInfo op = 1; + * @return The op. + */ + public org.tensorflow.proto.OpPerformanceData.OpInfo getOp() { + if (opBuilder_ == null) { + return op_ == null ? org.tensorflow.proto.OpPerformanceData.OpInfo.getDefaultInstance() : op_; + } else { + return opBuilder_.getMessage(); + } + } + /** + *
+       * The op
+       * 
+ * + * .tensorflow.OpInfo op = 1; + */ + public Builder setOp(org.tensorflow.proto.OpPerformanceData.OpInfo value) { + if (opBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + op_ = value; + onChanged(); + } else { + opBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The op
+       * 
+ * + * .tensorflow.OpInfo op = 1; + */ + public Builder setOp( + org.tensorflow.proto.OpPerformanceData.OpInfo.Builder builderForValue) { + if (opBuilder_ == null) { + op_ = builderForValue.build(); + onChanged(); + } else { + opBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The op
+       * 
+ * + * .tensorflow.OpInfo op = 1; + */ + public Builder mergeOp(org.tensorflow.proto.OpPerformanceData.OpInfo value) { + if (opBuilder_ == null) { + if (op_ != null) { + op_ = + org.tensorflow.proto.OpPerformanceData.OpInfo.newBuilder(op_).mergeFrom(value).buildPartial(); + } else { + op_ = value; + } + onChanged(); + } else { + opBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The op
+       * 
+ * + * .tensorflow.OpInfo op = 1; + */ + public Builder clearOp() { + if (opBuilder_ == null) { + op_ = null; + onChanged(); + } else { + op_ = null; + opBuilder_ = null; + } + + return this; + } + /** + *
+       * The op
+       * 
+ * + * .tensorflow.OpInfo op = 1; + */ + public org.tensorflow.proto.OpPerformanceData.OpInfo.Builder getOpBuilder() { + + onChanged(); + return getOpFieldBuilder().getBuilder(); + } + /** + *
+       * The op
+       * 
+ * + * .tensorflow.OpInfo op = 1; + */ + public org.tensorflow.proto.OpPerformanceData.OpInfoOrBuilder getOpOrBuilder() { + if (opBuilder_ != null) { + return opBuilder_.getMessageOrBuilder(); + } else { + return op_ == null ? + org.tensorflow.proto.OpPerformanceData.OpInfo.getDefaultInstance() : op_; + } + } + /** + *
+       * The op
+       * 
+ * + * .tensorflow.OpInfo op = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.OpInfo, org.tensorflow.proto.OpPerformanceData.OpInfo.Builder, org.tensorflow.proto.OpPerformanceData.OpInfoOrBuilder> + getOpFieldBuilder() { + if (opBuilder_ == null) { + opBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.OpInfo, org.tensorflow.proto.OpPerformanceData.OpInfo.Builder, org.tensorflow.proto.OpPerformanceData.OpInfoOrBuilder>( + getOp(), + getParentForChildren(), + isClean()); + op_ = null; + } + return opBuilder_; + } + + private org.tensorflow.proto.OpPerformanceData.SessionInfo sessionInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.SessionInfo, org.tensorflow.proto.OpPerformanceData.SessionInfo.Builder, org.tensorflow.proto.OpPerformanceData.SessionInfoOrBuilder> sessionInfoBuilder_; + /** + *
+       * Information about the session configs.
+       * 
+ * + * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; + * @deprecated tensorflow.OpPerformance.session_info is deprecated. + * See tensorflow/core/grappler/costs/op_performance_data.proto;l=74 + * @return Whether the sessionInfo field is set. + */ + @java.lang.Deprecated public boolean hasSessionInfo() { + return sessionInfoBuilder_ != null || sessionInfo_ != null; + } + /** + *
+       * Information about the session configs.
+       * 
+ * + * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; + * @deprecated tensorflow.OpPerformance.session_info is deprecated. + * See tensorflow/core/grappler/costs/op_performance_data.proto;l=74 + * @return The sessionInfo. + */ + @java.lang.Deprecated public org.tensorflow.proto.OpPerformanceData.SessionInfo getSessionInfo() { + if (sessionInfoBuilder_ == null) { + return sessionInfo_ == null ? org.tensorflow.proto.OpPerformanceData.SessionInfo.getDefaultInstance() : sessionInfo_; + } else { + return sessionInfoBuilder_.getMessage(); + } + } + /** + *
+       * Information about the session configs.
+       * 
+ * + * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setSessionInfo(org.tensorflow.proto.OpPerformanceData.SessionInfo value) { + if (sessionInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sessionInfo_ = value; + onChanged(); + } else { + sessionInfoBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Information about the session configs.
+       * 
+ * + * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setSessionInfo( + org.tensorflow.proto.OpPerformanceData.SessionInfo.Builder builderForValue) { + if (sessionInfoBuilder_ == null) { + sessionInfo_ = builderForValue.build(); + onChanged(); + } else { + sessionInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Information about the session configs.
+       * 
+ * + * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeSessionInfo(org.tensorflow.proto.OpPerformanceData.SessionInfo value) { + if (sessionInfoBuilder_ == null) { + if (sessionInfo_ != null) { + sessionInfo_ = + org.tensorflow.proto.OpPerformanceData.SessionInfo.newBuilder(sessionInfo_).mergeFrom(value).buildPartial(); + } else { + sessionInfo_ = value; + } + onChanged(); + } else { + sessionInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Information about the session configs.
+       * 
+ * + * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearSessionInfo() { + if (sessionInfoBuilder_ == null) { + sessionInfo_ = null; + onChanged(); + } else { + sessionInfo_ = null; + sessionInfoBuilder_ = null; + } + + return this; + } + /** + *
+       * Information about the session configs.
+       * 
+ * + * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; + */ + @java.lang.Deprecated public org.tensorflow.proto.OpPerformanceData.SessionInfo.Builder getSessionInfoBuilder() { + + onChanged(); + return getSessionInfoFieldBuilder().getBuilder(); + } + /** + *
+       * Information about the session configs.
+       * 
+ * + * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; + */ + @java.lang.Deprecated public org.tensorflow.proto.OpPerformanceData.SessionInfoOrBuilder getSessionInfoOrBuilder() { + if (sessionInfoBuilder_ != null) { + return sessionInfoBuilder_.getMessageOrBuilder(); + } else { + return sessionInfo_ == null ? + org.tensorflow.proto.OpPerformanceData.SessionInfo.getDefaultInstance() : sessionInfo_; + } + } + /** + *
+       * Information about the session configs.
+       * 
+ * + * .tensorflow.SessionInfo session_info = 12 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.SessionInfo, org.tensorflow.proto.OpPerformanceData.SessionInfo.Builder, org.tensorflow.proto.OpPerformanceData.SessionInfoOrBuilder> + getSessionInfoFieldBuilder() { + if (sessionInfoBuilder_ == null) { + sessionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.SessionInfo, org.tensorflow.proto.OpPerformanceData.SessionInfo.Builder, org.tensorflow.proto.OpPerformanceData.SessionInfoOrBuilder>( + getSessionInfo(), + getParentForChildren(), + isClean()); + sessionInfo_ = null; + } + return sessionInfoBuilder_; + } + + private java.lang.Object node_ = ""; + /** + *
+       * The node name (optional). Makes it easier to associate the performance data
+       * with a specific graph node.
+       * 
+ * + * string node = 5; + * @return The node. + */ + public java.lang.String getNode() { + java.lang.Object ref = node_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + node_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The node name (optional). Makes it easier to associate the performance data
+       * with a specific graph node.
+       * 
+ * + * string node = 5; + * @return The bytes for node. + */ + public com.google.protobuf.ByteString + getNodeBytes() { + java.lang.Object ref = node_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + node_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The node name (optional). Makes it easier to associate the performance data
+       * with a specific graph node.
+       * 
+ * + * string node = 5; + * @param value The node to set. + * @return This builder for chaining. + */ + public Builder setNode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + node_ = value; + onChanged(); + return this; + } + /** + *
+       * The node name (optional). Makes it easier to associate the performance data
+       * with a specific graph node.
+       * 
+ * + * string node = 5; + * @return This builder for chaining. + */ + public Builder clearNode() { + + node_ = getDefaultInstance().getNode(); + onChanged(); + return this; + } + /** + *
+       * The node name (optional). Makes it easier to associate the performance data
+       * with a specific graph node.
+       * 
+ * + * string node = 5; + * @param value The bytes for node to set. + * @return This builder for chaining. + */ + public Builder setNodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + node_ = value; + onChanged(); + return this; + } + + private long temporaryMemorySize_ ; + /** + *
+       * Temporary memory used by this node (in bytes).
+       * 
+ * + * int64 temporary_memory_size = 2; + * @return The temporaryMemorySize. + */ + @java.lang.Override + public long getTemporaryMemorySize() { + return temporaryMemorySize_; + } + /** + *
+       * Temporary memory used by this node (in bytes).
+       * 
+ * + * int64 temporary_memory_size = 2; + * @param value The temporaryMemorySize to set. + * @return This builder for chaining. + */ + public Builder setTemporaryMemorySize(long value) { + + temporaryMemorySize_ = value; + onChanged(); + return this; + } + /** + *
+       * Temporary memory used by this node (in bytes).
+       * 
+ * + * int64 temporary_memory_size = 2; + * @return This builder for chaining. + */ + public Builder clearTemporaryMemorySize() { + + temporaryMemorySize_ = 0L; + onChanged(); + return this; + } + + private long computeCost_ ; + /** + *
+       * Time it takes to run the op (in nanoseconds).
+       * 
+ * + * int64 compute_cost = 3; + * @return The computeCost. + */ + @java.lang.Override + public long getComputeCost() { + return computeCost_; + } + /** + *
+       * Time it takes to run the op (in nanoseconds).
+       * 
+ * + * int64 compute_cost = 3; + * @param value The computeCost to set. + * @return This builder for chaining. + */ + public Builder setComputeCost(long value) { + + computeCost_ = value; + onChanged(); + return this; + } + /** + *
+       * Time it takes to run the op (in nanoseconds).
+       * 
+ * + * int64 compute_cost = 3; + * @return This builder for chaining. + */ + public Builder clearComputeCost() { + + computeCost_ = 0L; + onChanged(); + return this; + } + + private long computeTime_ ; + /** + *
+       * Analytical compute cost (in nanoseconds).
+       * 
+ * + * int64 compute_time = 6; + * @return The computeTime. + */ + @java.lang.Override + public long getComputeTime() { + return computeTime_; + } + /** + *
+       * Analytical compute cost (in nanoseconds).
+       * 
+ * + * int64 compute_time = 6; + * @param value The computeTime to set. + * @return This builder for chaining. + */ + public Builder setComputeTime(long value) { + + computeTime_ = value; + onChanged(); + return this; + } + /** + *
+       * Analytical compute cost (in nanoseconds).
+       * 
+ * + * int64 compute_time = 6; + * @return This builder for chaining. + */ + public Builder clearComputeTime() { + + computeTime_ = 0L; + onChanged(); + return this; + } + + private long memoryTime_ ; + /** + *
+       * Analytical memory access cost (in nanoseconds).
+       * 
+ * + * int64 memory_time = 7; + * @return The memoryTime. + */ + @java.lang.Override + public long getMemoryTime() { + return memoryTime_; + } + /** + *
+       * Analytical memory access cost (in nanoseconds).
+       * 
+ * + * int64 memory_time = 7; + * @param value The memoryTime to set. + * @return This builder for chaining. + */ + public Builder setMemoryTime(long value) { + + memoryTime_ = value; + onChanged(); + return this; + } + /** + *
+       * Analytical memory access cost (in nanoseconds).
+       * 
+ * + * int64 memory_time = 7; + * @return This builder for chaining. + */ + public Builder clearMemoryTime() { + + memoryTime_ = 0L; + onChanged(); + return this; + } + + private double computeEfficiency_ ; + /** + *
+       * Percentage of theoretical compute performance.
+       * 
+ * + * double compute_efficiency = 4; + * @return The computeEfficiency. + */ + @java.lang.Override + public double getComputeEfficiency() { + return computeEfficiency_; + } + /** + *
+       * Percentage of theoretical compute performance.
+       * 
+ * + * double compute_efficiency = 4; + * @param value The computeEfficiency to set. + * @return This builder for chaining. + */ + public Builder setComputeEfficiency(double value) { + + computeEfficiency_ = value; + onChanged(); + return this; + } + /** + *
+       * Percentage of theoretical compute performance.
+       * 
+ * + * double compute_efficiency = 4; + * @return This builder for chaining. + */ + public Builder clearComputeEfficiency() { + + computeEfficiency_ = 0D; + onChanged(); + return this; + } + + private double memoryEfficiency_ ; + /** + *
+       * Percentage of theoretical memory performance.
+       * 
+ * + * double memory_efficiency = 8; + * @return The memoryEfficiency. + */ + @java.lang.Override + public double getMemoryEfficiency() { + return memoryEfficiency_; + } + /** + *
+       * Percentage of theoretical memory performance.
+       * 
+ * + * double memory_efficiency = 8; + * @param value The memoryEfficiency to set. + * @return This builder for chaining. + */ + public Builder setMemoryEfficiency(double value) { + + memoryEfficiency_ = value; + onChanged(); + return this; + } + /** + *
+       * Percentage of theoretical memory performance.
+       * 
+ * + * double memory_efficiency = 8; + * @return This builder for chaining. + */ + public Builder clearMemoryEfficiency() { + + memoryEfficiency_ = 0D; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.NormalDistribution, org.tensorflow.proto.OpPerformanceData.NormalDistribution.Builder, org.tensorflow.proto.OpPerformanceData.NormalDistributionOrBuilder> executionTimeNormalBuilder_; + /** + * .tensorflow.NormalDistribution execution_time_normal = 10; + * @return Whether the executionTimeNormal field is set. + */ + @java.lang.Override + public boolean hasExecutionTimeNormal() { + return executionTimeCase_ == 10; + } + /** + * .tensorflow.NormalDistribution execution_time_normal = 10; + * @return The executionTimeNormal. + */ + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.NormalDistribution getExecutionTimeNormal() { + if (executionTimeNormalBuilder_ == null) { + if (executionTimeCase_ == 10) { + return (org.tensorflow.proto.OpPerformanceData.NormalDistribution) executionTime_; + } + return org.tensorflow.proto.OpPerformanceData.NormalDistribution.getDefaultInstance(); + } else { + if (executionTimeCase_ == 10) { + return executionTimeNormalBuilder_.getMessage(); + } + return org.tensorflow.proto.OpPerformanceData.NormalDistribution.getDefaultInstance(); + } + } + /** + * .tensorflow.NormalDistribution execution_time_normal = 10; + */ + public Builder setExecutionTimeNormal(org.tensorflow.proto.OpPerformanceData.NormalDistribution value) { + if (executionTimeNormalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionTime_ = value; + onChanged(); + } else { + executionTimeNormalBuilder_.setMessage(value); + } + executionTimeCase_ = 10; + return this; + } + /** + * .tensorflow.NormalDistribution execution_time_normal = 10; + */ + public Builder setExecutionTimeNormal( + org.tensorflow.proto.OpPerformanceData.NormalDistribution.Builder builderForValue) { + if (executionTimeNormalBuilder_ == null) { + executionTime_ = builderForValue.build(); + onChanged(); + } else { + executionTimeNormalBuilder_.setMessage(builderForValue.build()); + } + executionTimeCase_ = 10; + return this; + } + /** + * .tensorflow.NormalDistribution execution_time_normal = 10; + */ + public Builder mergeExecutionTimeNormal(org.tensorflow.proto.OpPerformanceData.NormalDistribution value) { + if (executionTimeNormalBuilder_ == null) { + if (executionTimeCase_ == 10 && + executionTime_ != org.tensorflow.proto.OpPerformanceData.NormalDistribution.getDefaultInstance()) { + executionTime_ = org.tensorflow.proto.OpPerformanceData.NormalDistribution.newBuilder((org.tensorflow.proto.OpPerformanceData.NormalDistribution) executionTime_) + .mergeFrom(value).buildPartial(); + } else { + executionTime_ = value; + } + onChanged(); + } else { + if (executionTimeCase_ == 10) { + executionTimeNormalBuilder_.mergeFrom(value); + } else { + executionTimeNormalBuilder_.setMessage(value); + } + } + executionTimeCase_ = 10; + return this; + } + /** + * .tensorflow.NormalDistribution execution_time_normal = 10; + */ + public Builder clearExecutionTimeNormal() { + if (executionTimeNormalBuilder_ == null) { + if (executionTimeCase_ == 10) { + executionTimeCase_ = 0; + executionTime_ = null; + onChanged(); + } + } else { + if (executionTimeCase_ == 10) { + executionTimeCase_ = 0; + executionTime_ = null; + } + executionTimeNormalBuilder_.clear(); + } + return this; + } + /** + * .tensorflow.NormalDistribution execution_time_normal = 10; + */ + public org.tensorflow.proto.OpPerformanceData.NormalDistribution.Builder getExecutionTimeNormalBuilder() { + return getExecutionTimeNormalFieldBuilder().getBuilder(); + } + /** + * .tensorflow.NormalDistribution execution_time_normal = 10; + */ + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.NormalDistributionOrBuilder getExecutionTimeNormalOrBuilder() { + if ((executionTimeCase_ == 10) && (executionTimeNormalBuilder_ != null)) { + return executionTimeNormalBuilder_.getMessageOrBuilder(); + } else { + if (executionTimeCase_ == 10) { + return (org.tensorflow.proto.OpPerformanceData.NormalDistribution) executionTime_; + } + return org.tensorflow.proto.OpPerformanceData.NormalDistribution.getDefaultInstance(); + } + } + /** + * .tensorflow.NormalDistribution execution_time_normal = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.NormalDistribution, org.tensorflow.proto.OpPerformanceData.NormalDistribution.Builder, org.tensorflow.proto.OpPerformanceData.NormalDistributionOrBuilder> + getExecutionTimeNormalFieldBuilder() { + if (executionTimeNormalBuilder_ == null) { + if (!(executionTimeCase_ == 10)) { + executionTime_ = org.tensorflow.proto.OpPerformanceData.NormalDistribution.getDefaultInstance(); + } + executionTimeNormalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.NormalDistribution, org.tensorflow.proto.OpPerformanceData.NormalDistribution.Builder, org.tensorflow.proto.OpPerformanceData.NormalDistributionOrBuilder>( + (org.tensorflow.proto.OpPerformanceData.NormalDistribution) executionTime_, + getParentForChildren(), + isClean()); + executionTime_ = null; + } + executionTimeCase_ = 10; + onChanged();; + return executionTimeNormalBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.LogNormalDistribution, org.tensorflow.proto.OpPerformanceData.LogNormalDistribution.Builder, org.tensorflow.proto.OpPerformanceData.LogNormalDistributionOrBuilder> executionTimeLogNormalBuilder_; + /** + * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; + * @return Whether the executionTimeLogNormal field is set. + */ + @java.lang.Override + public boolean hasExecutionTimeLogNormal() { + return executionTimeCase_ == 11; + } + /** + * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; + * @return The executionTimeLogNormal. + */ + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.LogNormalDistribution getExecutionTimeLogNormal() { + if (executionTimeLogNormalBuilder_ == null) { + if (executionTimeCase_ == 11) { + return (org.tensorflow.proto.OpPerformanceData.LogNormalDistribution) executionTime_; + } + return org.tensorflow.proto.OpPerformanceData.LogNormalDistribution.getDefaultInstance(); + } else { + if (executionTimeCase_ == 11) { + return executionTimeLogNormalBuilder_.getMessage(); + } + return org.tensorflow.proto.OpPerformanceData.LogNormalDistribution.getDefaultInstance(); + } + } + /** + * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; + */ + public Builder setExecutionTimeLogNormal(org.tensorflow.proto.OpPerformanceData.LogNormalDistribution value) { + if (executionTimeLogNormalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionTime_ = value; + onChanged(); + } else { + executionTimeLogNormalBuilder_.setMessage(value); + } + executionTimeCase_ = 11; + return this; + } + /** + * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; + */ + public Builder setExecutionTimeLogNormal( + org.tensorflow.proto.OpPerformanceData.LogNormalDistribution.Builder builderForValue) { + if (executionTimeLogNormalBuilder_ == null) { + executionTime_ = builderForValue.build(); + onChanged(); + } else { + executionTimeLogNormalBuilder_.setMessage(builderForValue.build()); + } + executionTimeCase_ = 11; + return this; + } + /** + * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; + */ + public Builder mergeExecutionTimeLogNormal(org.tensorflow.proto.OpPerformanceData.LogNormalDistribution value) { + if (executionTimeLogNormalBuilder_ == null) { + if (executionTimeCase_ == 11 && + executionTime_ != org.tensorflow.proto.OpPerformanceData.LogNormalDistribution.getDefaultInstance()) { + executionTime_ = org.tensorflow.proto.OpPerformanceData.LogNormalDistribution.newBuilder((org.tensorflow.proto.OpPerformanceData.LogNormalDistribution) executionTime_) + .mergeFrom(value).buildPartial(); + } else { + executionTime_ = value; + } + onChanged(); + } else { + if (executionTimeCase_ == 11) { + executionTimeLogNormalBuilder_.mergeFrom(value); + } else { + executionTimeLogNormalBuilder_.setMessage(value); + } + } + executionTimeCase_ = 11; + return this; + } + /** + * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; + */ + public Builder clearExecutionTimeLogNormal() { + if (executionTimeLogNormalBuilder_ == null) { + if (executionTimeCase_ == 11) { + executionTimeCase_ = 0; + executionTime_ = null; + onChanged(); + } + } else { + if (executionTimeCase_ == 11) { + executionTimeCase_ = 0; + executionTime_ = null; + } + executionTimeLogNormalBuilder_.clear(); + } + return this; + } + /** + * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; + */ + public org.tensorflow.proto.OpPerformanceData.LogNormalDistribution.Builder getExecutionTimeLogNormalBuilder() { + return getExecutionTimeLogNormalFieldBuilder().getBuilder(); + } + /** + * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; + */ + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.LogNormalDistributionOrBuilder getExecutionTimeLogNormalOrBuilder() { + if ((executionTimeCase_ == 11) && (executionTimeLogNormalBuilder_ != null)) { + return executionTimeLogNormalBuilder_.getMessageOrBuilder(); + } else { + if (executionTimeCase_ == 11) { + return (org.tensorflow.proto.OpPerformanceData.LogNormalDistribution) executionTime_; + } + return org.tensorflow.proto.OpPerformanceData.LogNormalDistribution.getDefaultInstance(); + } + } + /** + * .tensorflow.LogNormalDistribution execution_time_log_normal = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.LogNormalDistribution, org.tensorflow.proto.OpPerformanceData.LogNormalDistribution.Builder, org.tensorflow.proto.OpPerformanceData.LogNormalDistributionOrBuilder> + getExecutionTimeLogNormalFieldBuilder() { + if (executionTimeLogNormalBuilder_ == null) { + if (!(executionTimeCase_ == 11)) { + executionTime_ = org.tensorflow.proto.OpPerformanceData.LogNormalDistribution.getDefaultInstance(); + } + executionTimeLogNormalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.LogNormalDistribution, org.tensorflow.proto.OpPerformanceData.LogNormalDistribution.Builder, org.tensorflow.proto.OpPerformanceData.LogNormalDistributionOrBuilder>( + (org.tensorflow.proto.OpPerformanceData.LogNormalDistribution) executionTime_, + getParentForChildren(), + isClean()); + executionTime_ = null; + } + executionTimeCase_ = 11; + onChanged();; + return executionTimeLogNormalBuilder_; + } + + private org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory opMemory_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory, org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory.Builder, org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemoryOrBuilder> opMemoryBuilder_; + /** + * .tensorflow.OpPerformance.OpMemory op_memory = 9; + * @return Whether the opMemory field is set. + */ + public boolean hasOpMemory() { + return opMemoryBuilder_ != null || opMemory_ != null; + } + /** + * .tensorflow.OpPerformance.OpMemory op_memory = 9; + * @return The opMemory. + */ + public org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory getOpMemory() { + if (opMemoryBuilder_ == null) { + return opMemory_ == null ? org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory.getDefaultInstance() : opMemory_; + } else { + return opMemoryBuilder_.getMessage(); + } + } + /** + * .tensorflow.OpPerformance.OpMemory op_memory = 9; + */ + public Builder setOpMemory(org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory value) { + if (opMemoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + opMemory_ = value; + onChanged(); + } else { + opMemoryBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.OpPerformance.OpMemory op_memory = 9; + */ + public Builder setOpMemory( + org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory.Builder builderForValue) { + if (opMemoryBuilder_ == null) { + opMemory_ = builderForValue.build(); + onChanged(); + } else { + opMemoryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.OpPerformance.OpMemory op_memory = 9; + */ + public Builder mergeOpMemory(org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory value) { + if (opMemoryBuilder_ == null) { + if (opMemory_ != null) { + opMemory_ = + org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory.newBuilder(opMemory_).mergeFrom(value).buildPartial(); + } else { + opMemory_ = value; + } + onChanged(); + } else { + opMemoryBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.OpPerformance.OpMemory op_memory = 9; + */ + public Builder clearOpMemory() { + if (opMemoryBuilder_ == null) { + opMemory_ = null; + onChanged(); + } else { + opMemory_ = null; + opMemoryBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.OpPerformance.OpMemory op_memory = 9; + */ + public org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory.Builder getOpMemoryBuilder() { + + onChanged(); + return getOpMemoryFieldBuilder().getBuilder(); + } + /** + * .tensorflow.OpPerformance.OpMemory op_memory = 9; + */ + public org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemoryOrBuilder getOpMemoryOrBuilder() { + if (opMemoryBuilder_ != null) { + return opMemoryBuilder_.getMessageOrBuilder(); + } else { + return opMemory_ == null ? + org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory.getDefaultInstance() : opMemory_; + } + } + /** + * .tensorflow.OpPerformance.OpMemory op_memory = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory, org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory.Builder, org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemoryOrBuilder> + getOpMemoryFieldBuilder() { + if (opMemoryBuilder_ == null) { + opMemoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory, org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemory.Builder, org.tensorflow.proto.OpPerformanceData.OpPerformance.OpMemoryOrBuilder>( + getOpMemory(), + getParentForChildren(), + isClean()); + opMemory_ = null; + } + return opMemoryBuilder_; + } + @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:tensorflow.OpPerformance) + } + + // @@protoc_insertion_point(class_scope:tensorflow.OpPerformance) + private static final org.tensorflow.proto.OpPerformanceData.OpPerformance DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.OpPerformanceData.OpPerformance(); + } + + public static org.tensorflow.proto.OpPerformanceData.OpPerformance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpPerformance 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 org.tensorflow.proto.OpPerformanceData.OpPerformance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OpPerformanceListOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.OpPerformanceList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + java.util.List + getOpPerformanceList(); + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + org.tensorflow.proto.OpPerformanceData.OpPerformance getOpPerformance(int index); + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + int getOpPerformanceCount(); + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + java.util.List + getOpPerformanceOrBuilderList(); + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + org.tensorflow.proto.OpPerformanceData.OpPerformanceOrBuilder getOpPerformanceOrBuilder( + int index); + } + /** + *
+   * A collection of OpPerformance data points.
+   * 
+ * + * Protobuf type {@code tensorflow.OpPerformanceList} + */ + public static final class OpPerformanceList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.OpPerformanceList) + OpPerformanceListOrBuilder { + private static final long serialVersionUID = 0L; + // Use OpPerformanceList.newBuilder() to construct. + private OpPerformanceList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OpPerformanceList() { + opPerformance_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OpPerformanceList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpPerformanceList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpPerformanceList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpPerformanceData.OpPerformanceList.class, org.tensorflow.proto.OpPerformanceData.OpPerformanceList.Builder.class); + } + + public static final int OP_PERFORMANCE_FIELD_NUMBER = 1; + private java.util.List opPerformance_; + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + @java.lang.Override + public java.util.List getOpPerformanceList() { + return opPerformance_; + } + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + @java.lang.Override + public java.util.List + getOpPerformanceOrBuilderList() { + return opPerformance_; + } + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + @java.lang.Override + public int getOpPerformanceCount() { + return opPerformance_.size(); + } + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpPerformance getOpPerformance(int index) { + return opPerformance_.get(index); + } + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpPerformanceOrBuilder getOpPerformanceOrBuilder( + int index) { + return opPerformance_.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 < opPerformance_.size(); i++) { + output.writeMessage(1, opPerformance_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < opPerformance_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, opPerformance_.get(i)); + } + 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 org.tensorflow.proto.OpPerformanceData.OpPerformanceList)) { + return super.equals(obj); + } + org.tensorflow.proto.OpPerformanceData.OpPerformanceList other = (org.tensorflow.proto.OpPerformanceData.OpPerformanceList) obj; + + if (!getOpPerformanceList() + .equals(other.getOpPerformanceList())) 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 (getOpPerformanceCount() > 0) { + hash = (37 * hash) + OP_PERFORMANCE_FIELD_NUMBER; + hash = (53 * hash) + getOpPerformanceList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.OpPerformanceData.OpPerformanceList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformanceList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformanceList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformanceList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformanceList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformanceList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformanceList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformanceList 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 org.tensorflow.proto.OpPerformanceData.OpPerformanceList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformanceList 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 org.tensorflow.proto.OpPerformanceData.OpPerformanceList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OpPerformanceData.OpPerformanceList 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(org.tensorflow.proto.OpPerformanceData.OpPerformanceList 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; + } + /** + *
+     * A collection of OpPerformance data points.
+     * 
+ * + * Protobuf type {@code tensorflow.OpPerformanceList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.OpPerformanceList) + org.tensorflow.proto.OpPerformanceData.OpPerformanceListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpPerformanceList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpPerformanceList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OpPerformanceData.OpPerformanceList.class, org.tensorflow.proto.OpPerformanceData.OpPerformanceList.Builder.class); + } + + // Construct using org.tensorflow.proto.OpPerformanceData.OpPerformanceList.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (opPerformanceBuilder_ == null) { + opPerformance_ = java.util.Collections.emptyList(); + } else { + opPerformance_ = null; + opPerformanceBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.OpPerformanceData.internal_static_tensorflow_OpPerformanceList_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpPerformanceList getDefaultInstanceForType() { + return org.tensorflow.proto.OpPerformanceData.OpPerformanceList.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpPerformanceList build() { + org.tensorflow.proto.OpPerformanceData.OpPerformanceList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.OpPerformanceData.OpPerformanceList buildPartial() { + org.tensorflow.proto.OpPerformanceData.OpPerformanceList result = new org.tensorflow.proto.OpPerformanceData.OpPerformanceList(this); + int from_bitField0_ = bitField0_; + if (opPerformanceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + opPerformance_ = java.util.Collections.unmodifiableList(opPerformance_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.opPerformance_ = opPerformance_; + } else { + result.opPerformance_ = opPerformanceBuilder_.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 org.tensorflow.proto.OpPerformanceData.OpPerformanceList) { + return mergeFrom((org.tensorflow.proto.OpPerformanceData.OpPerformanceList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.OpPerformanceData.OpPerformanceList other) { + if (other == org.tensorflow.proto.OpPerformanceData.OpPerformanceList.getDefaultInstance()) return this; + if (opPerformanceBuilder_ == null) { + if (!other.opPerformance_.isEmpty()) { + if (opPerformance_.isEmpty()) { + opPerformance_ = other.opPerformance_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOpPerformanceIsMutable(); + opPerformance_.addAll(other.opPerformance_); + } + onChanged(); + } + } else { + if (!other.opPerformance_.isEmpty()) { + if (opPerformanceBuilder_.isEmpty()) { + opPerformanceBuilder_.dispose(); + opPerformanceBuilder_ = null; + opPerformance_ = other.opPerformance_; + bitField0_ = (bitField0_ & ~0x00000001); + opPerformanceBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOpPerformanceFieldBuilder() : null; + } else { + opPerformanceBuilder_.addAllMessages(other.opPerformance_); + } + } + } + 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: { + org.tensorflow.proto.OpPerformanceData.OpPerformance m = + input.readMessage( + org.tensorflow.proto.OpPerformanceData.OpPerformance.parser(), + extensionRegistry); + if (opPerformanceBuilder_ == null) { + ensureOpPerformanceIsMutable(); + opPerformance_.add(m); + } else { + opPerformanceBuilder_.addMessage(m); + } + 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.util.List opPerformance_ = + java.util.Collections.emptyList(); + private void ensureOpPerformanceIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + opPerformance_ = new java.util.ArrayList(opPerformance_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.OpPerformance, org.tensorflow.proto.OpPerformanceData.OpPerformance.Builder, org.tensorflow.proto.OpPerformanceData.OpPerformanceOrBuilder> opPerformanceBuilder_; + + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + public java.util.List getOpPerformanceList() { + if (opPerformanceBuilder_ == null) { + return java.util.Collections.unmodifiableList(opPerformance_); + } else { + return opPerformanceBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + public int getOpPerformanceCount() { + if (opPerformanceBuilder_ == null) { + return opPerformance_.size(); + } else { + return opPerformanceBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + public org.tensorflow.proto.OpPerformanceData.OpPerformance getOpPerformance(int index) { + if (opPerformanceBuilder_ == null) { + return opPerformance_.get(index); + } else { + return opPerformanceBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + public Builder setOpPerformance( + int index, org.tensorflow.proto.OpPerformanceData.OpPerformance value) { + if (opPerformanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOpPerformanceIsMutable(); + opPerformance_.set(index, value); + onChanged(); + } else { + opPerformanceBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + public Builder setOpPerformance( + int index, org.tensorflow.proto.OpPerformanceData.OpPerformance.Builder builderForValue) { + if (opPerformanceBuilder_ == null) { + ensureOpPerformanceIsMutable(); + opPerformance_.set(index, builderForValue.build()); + onChanged(); + } else { + opPerformanceBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + public Builder addOpPerformance(org.tensorflow.proto.OpPerformanceData.OpPerformance value) { + if (opPerformanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOpPerformanceIsMutable(); + opPerformance_.add(value); + onChanged(); + } else { + opPerformanceBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + public Builder addOpPerformance( + int index, org.tensorflow.proto.OpPerformanceData.OpPerformance value) { + if (opPerformanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOpPerformanceIsMutable(); + opPerformance_.add(index, value); + onChanged(); + } else { + opPerformanceBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + public Builder addOpPerformance( + org.tensorflow.proto.OpPerformanceData.OpPerformance.Builder builderForValue) { + if (opPerformanceBuilder_ == null) { + ensureOpPerformanceIsMutable(); + opPerformance_.add(builderForValue.build()); + onChanged(); + } else { + opPerformanceBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + public Builder addOpPerformance( + int index, org.tensorflow.proto.OpPerformanceData.OpPerformance.Builder builderForValue) { + if (opPerformanceBuilder_ == null) { + ensureOpPerformanceIsMutable(); + opPerformance_.add(index, builderForValue.build()); + onChanged(); + } else { + opPerformanceBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + public Builder addAllOpPerformance( + java.lang.Iterable values) { + if (opPerformanceBuilder_ == null) { + ensureOpPerformanceIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, opPerformance_); + onChanged(); + } else { + opPerformanceBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + public Builder clearOpPerformance() { + if (opPerformanceBuilder_ == null) { + opPerformance_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + opPerformanceBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + public Builder removeOpPerformance(int index) { + if (opPerformanceBuilder_ == null) { + ensureOpPerformanceIsMutable(); + opPerformance_.remove(index); + onChanged(); + } else { + opPerformanceBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + public org.tensorflow.proto.OpPerformanceData.OpPerformance.Builder getOpPerformanceBuilder( + int index) { + return getOpPerformanceFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + public org.tensorflow.proto.OpPerformanceData.OpPerformanceOrBuilder getOpPerformanceOrBuilder( + int index) { + if (opPerformanceBuilder_ == null) { + return opPerformance_.get(index); } else { + return opPerformanceBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + public java.util.List + getOpPerformanceOrBuilderList() { + if (opPerformanceBuilder_ != null) { + return opPerformanceBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(opPerformance_); + } + } + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + public org.tensorflow.proto.OpPerformanceData.OpPerformance.Builder addOpPerformanceBuilder() { + return getOpPerformanceFieldBuilder().addBuilder( + org.tensorflow.proto.OpPerformanceData.OpPerformance.getDefaultInstance()); + } + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + public org.tensorflow.proto.OpPerformanceData.OpPerformance.Builder addOpPerformanceBuilder( + int index) { + return getOpPerformanceFieldBuilder().addBuilder( + index, org.tensorflow.proto.OpPerformanceData.OpPerformance.getDefaultInstance()); + } + /** + * repeated .tensorflow.OpPerformance op_performance = 1; + */ + public java.util.List + getOpPerformanceBuilderList() { + return getOpPerformanceFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.OpPerformance, org.tensorflow.proto.OpPerformanceData.OpPerformance.Builder, org.tensorflow.proto.OpPerformanceData.OpPerformanceOrBuilder> + getOpPerformanceFieldBuilder() { + if (opPerformanceBuilder_ == null) { + opPerformanceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.OpPerformanceData.OpPerformance, org.tensorflow.proto.OpPerformanceData.OpPerformance.Builder, org.tensorflow.proto.OpPerformanceData.OpPerformanceOrBuilder>( + opPerformance_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + opPerformance_ = null; + } + return opPerformanceBuilder_; + } + @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:tensorflow.OpPerformanceList) + } + + // @@protoc_insertion_point(class_scope:tensorflow.OpPerformanceList) + private static final org.tensorflow.proto.OpPerformanceData.OpPerformanceList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.OpPerformanceData.OpPerformanceList(); + } + + public static org.tensorflow.proto.OpPerformanceData.OpPerformanceList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpPerformanceList 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 org.tensorflow.proto.OpPerformanceData.OpPerformanceList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_SessionInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_SessionInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_OpInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_OpInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_OpInfo_AttrEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_OpInfo_AttrEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_OpInfo_TensorProperties_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_OpInfo_TensorProperties_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_NormalDistribution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_NormalDistribution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_LogNormalDistribution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_LogNormalDistribution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_OpPerformance_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_OpPerformance_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_OpPerformance_OpMemory_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_OpPerformance_OpMemory_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_OpPerformanceList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_OpPerformanceList_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n8tensorflow/core/grappler/costs/op_perf" + + "ormance_data.proto\022\ntensorflow\032&tensorfl" + + "ow/core/framework/tensor.proto\032,tensorfl" + + "ow/core/framework/tensor_shape.proto\032%te" + + "nsorflow/core/framework/types.proto\032*ten" + + "sorflow/core/framework/attr_value.proto\032" + + "0tensorflow/core/protobuf/device_propert" + + "ies.proto\"+\n\013SessionInfo\022\034\n\024intra_op_par" + + "allelism\030\001 \001(\003\"\333\003\n\006OpInfo\022\n\n\002op\030\001 \001(\t\022*\n" + + "\004attr\030\002 \003(\0132\034.tensorflow.OpInfo.AttrEntr" + + "y\0223\n\006inputs\030\003 \003(\0132#.tensorflow.OpInfo.Te" + + "nsorProperties\0224\n\007outputs\030\005 \003(\0132#.tensor" + + "flow.OpInfo.TensorProperties\022,\n\006device\030\004" + + " \001(\0132\034.tensorflow.DeviceProperties\022-\n\014se" + + "ssion_info\030\006 \001(\0132\027.tensorflow.SessionInf" + + "o\032B\n\tAttrEntry\022\013\n\003key\030\001 \001(\t\022$\n\005value\030\002 \001" + + "(\0132\025.tensorflow.AttrValue:\0028\001\032\214\001\n\020Tensor" + + "Properties\022#\n\005dtype\030\001 \001(\0162\024.tensorflow.D" + + "ataType\022+\n\005shape\030\002 \001(\0132\034.tensorflow.Tens" + + "orShapeProto\022&\n\005value\030\003 \001(\0132\027.tensorflow" + + ".TensorProto\"/\n\022NormalDistribution\022\n\n\002mu" + + "\030\001 \001(\001\022\r\n\005sigma\030\002 \001(\001\"2\n\025LogNormalDistri" + + "bution\022\n\n\002mu\030\001 \001(\001\022\r\n\005sigma\030\002 \001(\001\"\363\004\n\rOp" + + "Performance\022\036\n\002op\030\001 \001(\0132\022.tensorflow.OpI" + + "nfo\0221\n\014session_info\030\014 \001(\0132\027.tensorflow.S" + + "essionInfoB\002\030\001\022\014\n\004node\030\005 \001(\t\022\035\n\025temporar" + + "y_memory_size\030\002 \001(\003\022\024\n\014compute_cost\030\003 \001(" + + "\003\022\024\n\014compute_time\030\006 \001(\003\022\023\n\013memory_time\030\007" + + " \001(\003\022\032\n\022compute_efficiency\030\004 \001(\001\022\031\n\021memo" + + "ry_efficiency\030\010 \001(\001\022?\n\025execution_time_no" + + "rmal\030\n \001(\0132\036.tensorflow.NormalDistributi" + + "onH\000\022F\n\031execution_time_log_normal\030\013 \001(\0132" + + "!.tensorflow.LogNormalDistributionH\000\0225\n\t" + + "op_memory\030\t \001(\0132\".tensorflow.OpPerforman" + + "ce.OpMemory\032\227\001\n\010OpMemory\022\025\n\routput_memor" + + "y\030\001 \003(\003\022\023\n\013temp_memory\030\002 \001(\003\022\031\n\021persiste" + + "nt_memory\030\004 \001(\003\022\036\n\022device_temp_memory\030\003 " + + "\001(\003B\002\030\001\022$\n\030device_persistent_memory\030\005 \001(" + + "\003B\002\030\001B\020\n\016execution_time\"F\n\021OpPerformance" + + "List\0221\n\016op_performance\030\001 \003(\0132\031.tensorflo" + + "w.OpPerformanceB\031\n\024org.tensorflow.proto\370" + + "\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + org.tensorflow.proto.TensorProtos.getDescriptor(), + org.tensorflow.proto.TensorShapeProtos.getDescriptor(), + org.tensorflow.proto.TypesProtos.getDescriptor(), + org.tensorflow.proto.AttrValueProtos.getDescriptor(), + org.tensorflow.proto.DevicePropertiesProtos.getDescriptor(), + }); + internal_static_tensorflow_SessionInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_SessionInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_SessionInfo_descriptor, + new java.lang.String[] { "IntraOpParallelism", }); + internal_static_tensorflow_OpInfo_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_tensorflow_OpInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_OpInfo_descriptor, + new java.lang.String[] { "Op", "Attr", "Inputs", "Outputs", "Device", "SessionInfo", }); + internal_static_tensorflow_OpInfo_AttrEntry_descriptor = + internal_static_tensorflow_OpInfo_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_OpInfo_AttrEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_OpInfo_AttrEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_tensorflow_OpInfo_TensorProperties_descriptor = + internal_static_tensorflow_OpInfo_descriptor.getNestedTypes().get(1); + internal_static_tensorflow_OpInfo_TensorProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_OpInfo_TensorProperties_descriptor, + new java.lang.String[] { "Dtype", "Shape", "Value", }); + internal_static_tensorflow_NormalDistribution_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_tensorflow_NormalDistribution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_NormalDistribution_descriptor, + new java.lang.String[] { "Mu", "Sigma", }); + internal_static_tensorflow_LogNormalDistribution_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_tensorflow_LogNormalDistribution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_LogNormalDistribution_descriptor, + new java.lang.String[] { "Mu", "Sigma", }); + internal_static_tensorflow_OpPerformance_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_tensorflow_OpPerformance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_OpPerformance_descriptor, + new java.lang.String[] { "Op", "SessionInfo", "Node", "TemporaryMemorySize", "ComputeCost", "ComputeTime", "MemoryTime", "ComputeEfficiency", "MemoryEfficiency", "ExecutionTimeNormal", "ExecutionTimeLogNormal", "OpMemory", "ExecutionTime", }); + internal_static_tensorflow_OpPerformance_OpMemory_descriptor = + internal_static_tensorflow_OpPerformance_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_OpPerformance_OpMemory_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_OpPerformance_OpMemory_descriptor, + new java.lang.String[] { "OutputMemory", "TempMemory", "PersistentMemory", "DeviceTempMemory", "DevicePersistentMemory", }); + internal_static_tensorflow_OpPerformanceList_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_tensorflow_OpPerformanceList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_OpPerformanceList_descriptor, + new java.lang.String[] { "OpPerformance", }); + org.tensorflow.proto.TensorProtos.getDescriptor(); + org.tensorflow.proto.TensorShapeProtos.getDescriptor(); + org.tensorflow.proto.TypesProtos.getDescriptor(); + org.tensorflow.proto.AttrValueProtos.getDescriptor(); + org.tensorflow.proto.DevicePropertiesProtos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OptimizedFunctionGraphOuterClass.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OptimizedFunctionGraphOuterClass.java new file mode 100644 index 00000000000..70e1dc2e94d --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OptimizedFunctionGraphOuterClass.java @@ -0,0 +1,2278 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/optimized_function_graph.proto + +package org.tensorflow.proto; + +public final class OptimizedFunctionGraphOuterClass { + private OptimizedFunctionGraphOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface OptimizedFunctionGraphOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.OptimizedFunctionGraph) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Function name. It can be a human-readable SignatureDef's method name, or a
+     * FunctionDef name.
+     * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * Function name. It can be a human-readable SignatureDef's method name, or a
+     * FunctionDef name.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Optimized function graph.
+     * 
+ * + * .tensorflow.GraphDef function_graph = 2; + * @return Whether the functionGraph field is set. + */ + boolean hasFunctionGraph(); + /** + *
+     * Optimized function graph.
+     * 
+ * + * .tensorflow.GraphDef function_graph = 2; + * @return The functionGraph. + */ + org.tensorflow.proto.GraphDef getFunctionGraph(); + /** + *
+     * Optimized function graph.
+     * 
+ * + * .tensorflow.GraphDef function_graph = 2; + */ + org.tensorflow.proto.GraphDefOrBuilder getFunctionGraphOrBuilder(); + + /** + *
+     * Maps from node name to control ret. This is an output from running TF/XLA
+     * bridge.
+     * 
+ * + * map<string, string> node_name_to_control_ret = 3; + */ + int getNodeNameToControlRetCount(); + /** + *
+     * Maps from node name to control ret. This is an output from running TF/XLA
+     * bridge.
+     * 
+ * + * map<string, string> node_name_to_control_ret = 3; + */ + boolean containsNodeNameToControlRet( + java.lang.String key); + /** + * Use {@link #getNodeNameToControlRetMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getNodeNameToControlRet(); + /** + *
+     * Maps from node name to control ret. This is an output from running TF/XLA
+     * bridge.
+     * 
+ * + * map<string, string> node_name_to_control_ret = 3; + */ + java.util.Map + getNodeNameToControlRetMap(); + /** + *
+     * Maps from node name to control ret. This is an output from running TF/XLA
+     * bridge.
+     * 
+ * + * map<string, string> node_name_to_control_ret = 3; + */ + + /* nullable */ +java.lang.String getNodeNameToControlRetOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+     * Maps from node name to control ret. This is an output from running TF/XLA
+     * bridge.
+     * 
+ * + * map<string, string> node_name_to_control_ret = 3; + */ + + java.lang.String getNodeNameToControlRetOrThrow( + java.lang.String key); + + /** + *
+     * Return node types of the function. This is an output of graph
+     * preprocessing.
+     * 
+ * + * repeated .tensorflow.DataType ret_types = 4; + * @return A list containing the retTypes. + */ + java.util.List getRetTypesList(); + /** + *
+     * Return node types of the function. This is an output of graph
+     * preprocessing.
+     * 
+ * + * repeated .tensorflow.DataType ret_types = 4; + * @return The count of retTypes. + */ + int getRetTypesCount(); + /** + *
+     * Return node types of the function. This is an output of graph
+     * preprocessing.
+     * 
+ * + * repeated .tensorflow.DataType ret_types = 4; + * @param index The index of the element to return. + * @return The retTypes at the given index. + */ + org.tensorflow.proto.DataType getRetTypes(int index); + /** + *
+     * Return node types of the function. This is an output of graph
+     * preprocessing.
+     * 
+ * + * repeated .tensorflow.DataType ret_types = 4; + * @return A list containing the enum numeric values on the wire for retTypes. + */ + java.util.List + getRetTypesValueList(); + /** + *
+     * Return node types of the function. This is an output of graph
+     * preprocessing.
+     * 
+ * + * repeated .tensorflow.DataType ret_types = 4; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of retTypes at the given index. + */ + int getRetTypesValue(int index); + + /** + *
+     * Number of return nodes. This is an output of graph preprocessing.
+     * 
+ * + * uint32 num_return_nodes = 5; + * @return The numReturnNodes. + */ + int getNumReturnNodes(); + + /** + *
+     * Indicates the source environment where this proto is generated.
+     * 
+ * + * optional .tensorflow.OptimizedFunctionGraph.OptimizationSource source = 7; + * @return Whether the source field is set. + */ + boolean hasSource(); + /** + *
+     * Indicates the source environment where this proto is generated.
+     * 
+ * + * optional .tensorflow.OptimizedFunctionGraph.OptimizationSource source = 7; + * @return The enum numeric value on the wire for source. + */ + int getSourceValue(); + /** + *
+     * Indicates the source environment where this proto is generated.
+     * 
+ * + * optional .tensorflow.OptimizedFunctionGraph.OptimizationSource source = 7; + * @return The source. + */ + org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource getSource(); + + /** + *
+     * Time (in microseconds) spent on running the graph optimization passes for
+     * this function.
+     * 
+ * + * optional uint64 optimization_time_usecs = 8; + * @return Whether the optimizationTimeUsecs field is set. + */ + boolean hasOptimizationTimeUsecs(); + /** + *
+     * Time (in microseconds) spent on running the graph optimization passes for
+     * this function.
+     * 
+ * + * optional uint64 optimization_time_usecs = 8; + * @return The optimizationTimeUsecs. + */ + long getOptimizationTimeUsecs(); + } + /** + *
+   * Optimized function graph after instantiation-related graph optimization
+   * passes (up till before graph partitioning). The first half of the proto is
+   * representing a GraphDef and the rest of the fields are extra information from
+   * graph optimizations.
+   * 
+ * + * Protobuf type {@code tensorflow.OptimizedFunctionGraph} + */ + public static final class OptimizedFunctionGraph extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.OptimizedFunctionGraph) + OptimizedFunctionGraphOrBuilder { + private static final long serialVersionUID = 0L; + // Use OptimizedFunctionGraph.newBuilder() to construct. + private OptimizedFunctionGraph(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OptimizedFunctionGraph() { + name_ = ""; + retTypes_ = java.util.Collections.emptyList(); + source_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OptimizedFunctionGraph(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OptimizedFunctionGraphOuterClass.internal_static_tensorflow_OptimizedFunctionGraph_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetNodeNameToControlRet(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OptimizedFunctionGraphOuterClass.internal_static_tensorflow_OptimizedFunctionGraph_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.class, org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder.class); + } + + /** + *
+     * Enum for distinguishing the origin where the proto is created.
+     * AOT: proto is created in ahead-of-time environment, which can be different
+     * from the environment where the graph is actually executed.
+     * JIT: proto is created in just-in-time execution, which has the same
+     * environment as the one the graph is actually executed.
+     * 
+ * + * Protobuf enum {@code tensorflow.OptimizedFunctionGraph.OptimizationSource} + */ + public enum OptimizationSource + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SOURCE_UNSPECIFIED = 0; + */ + SOURCE_UNSPECIFIED(0), + /** + * AOT = 1; + */ + AOT(1), + /** + * JIT = 2; + */ + JIT(2), + UNRECOGNIZED(-1), + ; + + /** + * SOURCE_UNSPECIFIED = 0; + */ + public static final int SOURCE_UNSPECIFIED_VALUE = 0; + /** + * AOT = 1; + */ + public static final int AOT_VALUE = 1; + /** + * JIT = 2; + */ + public static final int JIT_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 OptimizationSource 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 OptimizationSource forNumber(int value) { + switch (value) { + case 0: return SOURCE_UNSPECIFIED; + case 1: return AOT; + case 2: return JIT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + OptimizationSource> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OptimizationSource findValueByNumber(int number) { + return OptimizationSource.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 org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.getDescriptor().getEnumTypes().get(0); + } + + private static final OptimizationSource[] VALUES = values(); + + public static OptimizationSource 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 OptimizationSource(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:tensorflow.OptimizedFunctionGraph.OptimizationSource) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * Function name. It can be a human-readable SignatureDef's method name, or a
+     * FunctionDef name.
+     * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+     * Function name. It can be a human-readable SignatureDef's method name, or a
+     * FunctionDef name.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FUNCTION_GRAPH_FIELD_NUMBER = 2; + private org.tensorflow.proto.GraphDef functionGraph_; + /** + *
+     * Optimized function graph.
+     * 
+ * + * .tensorflow.GraphDef function_graph = 2; + * @return Whether the functionGraph field is set. + */ + @java.lang.Override + public boolean hasFunctionGraph() { + return functionGraph_ != null; + } + /** + *
+     * Optimized function graph.
+     * 
+ * + * .tensorflow.GraphDef function_graph = 2; + * @return The functionGraph. + */ + @java.lang.Override + public org.tensorflow.proto.GraphDef getFunctionGraph() { + return functionGraph_ == null ? org.tensorflow.proto.GraphDef.getDefaultInstance() : functionGraph_; + } + /** + *
+     * Optimized function graph.
+     * 
+ * + * .tensorflow.GraphDef function_graph = 2; + */ + @java.lang.Override + public org.tensorflow.proto.GraphDefOrBuilder getFunctionGraphOrBuilder() { + return getFunctionGraph(); + } + + public static final int NODE_NAME_TO_CONTROL_RET_FIELD_NUMBER = 3; + private static final class NodeNameToControlRetDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.tensorflow.proto.OptimizedFunctionGraphOuterClass.internal_static_tensorflow_OptimizedFunctionGraph_NodeNameToControlRetEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> nodeNameToControlRet_; + private com.google.protobuf.MapField + internalGetNodeNameToControlRet() { + if (nodeNameToControlRet_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NodeNameToControlRetDefaultEntryHolder.defaultEntry); + } + return nodeNameToControlRet_; + } + + public int getNodeNameToControlRetCount() { + return internalGetNodeNameToControlRet().getMap().size(); + } + /** + *
+     * Maps from node name to control ret. This is an output from running TF/XLA
+     * bridge.
+     * 
+ * + * map<string, string> node_name_to_control_ret = 3; + */ + + @java.lang.Override + public boolean containsNodeNameToControlRet( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetNodeNameToControlRet().getMap().containsKey(key); + } + /** + * Use {@link #getNodeNameToControlRetMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getNodeNameToControlRet() { + return getNodeNameToControlRetMap(); + } + /** + *
+     * Maps from node name to control ret. This is an output from running TF/XLA
+     * bridge.
+     * 
+ * + * map<string, string> node_name_to_control_ret = 3; + */ + @java.lang.Override + + public java.util.Map getNodeNameToControlRetMap() { + return internalGetNodeNameToControlRet().getMap(); + } + /** + *
+     * Maps from node name to control ret. This is an output from running TF/XLA
+     * bridge.
+     * 
+ * + * map<string, string> node_name_to_control_ret = 3; + */ + @java.lang.Override + + public java.lang.String getNodeNameToControlRetOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetNodeNameToControlRet().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Maps from node name to control ret. This is an output from running TF/XLA
+     * bridge.
+     * 
+ * + * map<string, string> node_name_to_control_ret = 3; + */ + @java.lang.Override + + public java.lang.String getNodeNameToControlRetOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetNodeNameToControlRet().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int RET_TYPES_FIELD_NUMBER = 4; + private java.util.List retTypes_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, org.tensorflow.proto.DataType> retTypes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, org.tensorflow.proto.DataType>() { + public org.tensorflow.proto.DataType convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(from); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + }; + /** + *
+     * Return node types of the function. This is an output of graph
+     * preprocessing.
+     * 
+ * + * repeated .tensorflow.DataType ret_types = 4; + * @return A list containing the retTypes. + */ + @java.lang.Override + public java.util.List getRetTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, org.tensorflow.proto.DataType>(retTypes_, retTypes_converter_); + } + /** + *
+     * Return node types of the function. This is an output of graph
+     * preprocessing.
+     * 
+ * + * repeated .tensorflow.DataType ret_types = 4; + * @return The count of retTypes. + */ + @java.lang.Override + public int getRetTypesCount() { + return retTypes_.size(); + } + /** + *
+     * Return node types of the function. This is an output of graph
+     * preprocessing.
+     * 
+ * + * repeated .tensorflow.DataType ret_types = 4; + * @param index The index of the element to return. + * @return The retTypes at the given index. + */ + @java.lang.Override + public org.tensorflow.proto.DataType getRetTypes(int index) { + return retTypes_converter_.convert(retTypes_.get(index)); + } + /** + *
+     * Return node types of the function. This is an output of graph
+     * preprocessing.
+     * 
+ * + * repeated .tensorflow.DataType ret_types = 4; + * @return A list containing the enum numeric values on the wire for retTypes. + */ + @java.lang.Override + public java.util.List + getRetTypesValueList() { + return retTypes_; + } + /** + *
+     * Return node types of the function. This is an output of graph
+     * preprocessing.
+     * 
+ * + * repeated .tensorflow.DataType ret_types = 4; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of retTypes at the given index. + */ + @java.lang.Override + public int getRetTypesValue(int index) { + return retTypes_.get(index); + } + private int retTypesMemoizedSerializedSize; + + public static final int NUM_RETURN_NODES_FIELD_NUMBER = 5; + private int numReturnNodes_; + /** + *
+     * Number of return nodes. This is an output of graph preprocessing.
+     * 
+ * + * uint32 num_return_nodes = 5; + * @return The numReturnNodes. + */ + @java.lang.Override + public int getNumReturnNodes() { + return numReturnNodes_; + } + + public static final int SOURCE_FIELD_NUMBER = 7; + private int source_; + /** + *
+     * Indicates the source environment where this proto is generated.
+     * 
+ * + * optional .tensorflow.OptimizedFunctionGraph.OptimizationSource source = 7; + * @return Whether the source field is set. + */ + @java.lang.Override public boolean hasSource() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Indicates the source environment where this proto is generated.
+     * 
+ * + * optional .tensorflow.OptimizedFunctionGraph.OptimizationSource source = 7; + * @return The enum numeric value on the wire for source. + */ + @java.lang.Override public int getSourceValue() { + return source_; + } + /** + *
+     * Indicates the source environment where this proto is generated.
+     * 
+ * + * optional .tensorflow.OptimizedFunctionGraph.OptimizationSource source = 7; + * @return The source. + */ + @java.lang.Override public org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource getSource() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource result = org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource.valueOf(source_); + return result == null ? org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource.UNRECOGNIZED : result; + } + + public static final int OPTIMIZATION_TIME_USECS_FIELD_NUMBER = 8; + private long optimizationTimeUsecs_; + /** + *
+     * Time (in microseconds) spent on running the graph optimization passes for
+     * this function.
+     * 
+ * + * optional uint64 optimization_time_usecs = 8; + * @return Whether the optimizationTimeUsecs field is set. + */ + @java.lang.Override + public boolean hasOptimizationTimeUsecs() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Time (in microseconds) spent on running the graph optimization passes for
+     * this function.
+     * 
+ * + * optional uint64 optimization_time_usecs = 8; + * @return The optimizationTimeUsecs. + */ + @java.lang.Override + public long getOptimizationTimeUsecs() { + return optimizationTimeUsecs_; + } + + 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 { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (functionGraph_ != null) { + output.writeMessage(2, getFunctionGraph()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetNodeNameToControlRet(), + NodeNameToControlRetDefaultEntryHolder.defaultEntry, + 3); + if (getRetTypesList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(retTypesMemoizedSerializedSize); + } + for (int i = 0; i < retTypes_.size(); i++) { + output.writeEnumNoTag(retTypes_.get(i)); + } + if (numReturnNodes_ != 0) { + output.writeUInt32(5, numReturnNodes_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(7, source_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeUInt64(8, optimizationTimeUsecs_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (functionGraph_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFunctionGraph()); + } + for (java.util.Map.Entry entry + : internalGetNodeNameToControlRet().getMap().entrySet()) { + com.google.protobuf.MapEntry + nodeNameToControlRet__ = NodeNameToControlRetDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, nodeNameToControlRet__); + } + { + int dataSize = 0; + for (int i = 0; i < retTypes_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(retTypes_.get(i)); + } + size += dataSize; + if (!getRetTypesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }retTypesMemoizedSerializedSize = dataSize; + } + if (numReturnNodes_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, numReturnNodes_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, source_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(8, optimizationTimeUsecs_); + } + 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 org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph)) { + return super.equals(obj); + } + org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph other = (org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasFunctionGraph() != other.hasFunctionGraph()) return false; + if (hasFunctionGraph()) { + if (!getFunctionGraph() + .equals(other.getFunctionGraph())) return false; + } + if (!internalGetNodeNameToControlRet().equals( + other.internalGetNodeNameToControlRet())) return false; + if (!retTypes_.equals(other.retTypes_)) return false; + if (getNumReturnNodes() + != other.getNumReturnNodes()) return false; + if (hasSource() != other.hasSource()) return false; + if (hasSource()) { + if (source_ != other.source_) return false; + } + if (hasOptimizationTimeUsecs() != other.hasOptimizationTimeUsecs()) return false; + if (hasOptimizationTimeUsecs()) { + if (getOptimizationTimeUsecs() + != other.getOptimizationTimeUsecs()) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasFunctionGraph()) { + hash = (37 * hash) + FUNCTION_GRAPH_FIELD_NUMBER; + hash = (53 * hash) + getFunctionGraph().hashCode(); + } + if (!internalGetNodeNameToControlRet().getMap().isEmpty()) { + hash = (37 * hash) + NODE_NAME_TO_CONTROL_RET_FIELD_NUMBER; + hash = (53 * hash) + internalGetNodeNameToControlRet().hashCode(); + } + if (getRetTypesCount() > 0) { + hash = (37 * hash) + RET_TYPES_FIELD_NUMBER; + hash = (53 * hash) + retTypes_.hashCode(); + } + hash = (37 * hash) + NUM_RETURN_NODES_FIELD_NUMBER; + hash = (53 * hash) + getNumReturnNodes(); + if (hasSource()) { + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + source_; + } + if (hasOptimizationTimeUsecs()) { + hash = (37 * hash) + OPTIMIZATION_TIME_USECS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOptimizationTimeUsecs()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph 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 org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph 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 org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph 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(org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph 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; + } + /** + *
+     * Optimized function graph after instantiation-related graph optimization
+     * passes (up till before graph partitioning). The first half of the proto is
+     * representing a GraphDef and the rest of the fields are extra information from
+     * graph optimizations.
+     * 
+ * + * Protobuf type {@code tensorflow.OptimizedFunctionGraph} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.OptimizedFunctionGraph) + org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.OptimizedFunctionGraphOuterClass.internal_static_tensorflow_OptimizedFunctionGraph_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetNodeNameToControlRet(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 3: + return internalGetMutableNodeNameToControlRet(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.OptimizedFunctionGraphOuterClass.internal_static_tensorflow_OptimizedFunctionGraph_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.class, org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder.class); + } + + // Construct using org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (functionGraphBuilder_ == null) { + functionGraph_ = null; + } else { + functionGraph_ = null; + functionGraphBuilder_ = null; + } + internalGetMutableNodeNameToControlRet().clear(); + retTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + numReturnNodes_ = 0; + + source_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + optimizationTimeUsecs_ = 0L; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.OptimizedFunctionGraphOuterClass.internal_static_tensorflow_OptimizedFunctionGraph_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph getDefaultInstanceForType() { + return org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph build() { + org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph buildPartial() { + org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph result = new org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + if (functionGraphBuilder_ == null) { + result.functionGraph_ = functionGraph_; + } else { + result.functionGraph_ = functionGraphBuilder_.build(); + } + result.nodeNameToControlRet_ = internalGetNodeNameToControlRet(); + result.nodeNameToControlRet_.makeImmutable(); + if (((bitField0_ & 0x00000002) != 0)) { + retTypes_ = java.util.Collections.unmodifiableList(retTypes_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.retTypes_ = retTypes_; + result.numReturnNodes_ = numReturnNodes_; + if (((from_bitField0_ & 0x00000004) != 0)) { + to_bitField0_ |= 0x00000001; + } + result.source_ = source_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.optimizationTimeUsecs_ = optimizationTimeUsecs_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ = to_bitField0_; + 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 org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph) { + return mergeFrom((org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph other) { + if (other == org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasFunctionGraph()) { + mergeFunctionGraph(other.getFunctionGraph()); + } + internalGetMutableNodeNameToControlRet().mergeFrom( + other.internalGetNodeNameToControlRet()); + if (!other.retTypes_.isEmpty()) { + if (retTypes_.isEmpty()) { + retTypes_ = other.retTypes_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRetTypesIsMutable(); + retTypes_.addAll(other.retTypes_); + } + onChanged(); + } + if (other.getNumReturnNodes() != 0) { + setNumReturnNodes(other.getNumReturnNodes()); + } + if (other.hasSource()) { + setSource(other.getSource()); + } + if (other.hasOptimizationTimeUsecs()) { + setOptimizationTimeUsecs(other.getOptimizationTimeUsecs()); + } + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getFunctionGraphFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + com.google.protobuf.MapEntry + nodeNameToControlRet__ = input.readMessage( + NodeNameToControlRetDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableNodeNameToControlRet().getMutableMap().put( + nodeNameToControlRet__.getKey(), nodeNameToControlRet__.getValue()); + break; + } // case 26 + case 32: { + int tmpRaw = input.readEnum(); + ensureRetTypesIsMutable(); + retTypes_.add(tmpRaw); + break; + } // case 32 + case 34: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureRetTypesIsMutable(); + retTypes_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 34 + case 40: { + numReturnNodes_ = input.readUInt32(); + + break; + } // case 40 + case 56: { + source_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 56 + case 64: { + optimizationTimeUsecs_ = input.readUInt64(); + bitField0_ |= 0x00000008; + break; + } // case 64 + 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 name_ = ""; + /** + *
+       * Function name. It can be a human-readable SignatureDef's method name, or a
+       * FunctionDef name.
+       * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Function name. It can be a human-readable SignatureDef's method name, or a
+       * FunctionDef name.
+       * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Function name. It can be a human-readable SignatureDef's method name, or a
+       * FunctionDef name.
+       * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Function name. It can be a human-readable SignatureDef's method name, or a
+       * FunctionDef name.
+       * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Function name. It can be a human-readable SignatureDef's method name, or a
+       * FunctionDef name.
+       * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private org.tensorflow.proto.GraphDef functionGraph_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.GraphDef, org.tensorflow.proto.GraphDef.Builder, org.tensorflow.proto.GraphDefOrBuilder> functionGraphBuilder_; + /** + *
+       * Optimized function graph.
+       * 
+ * + * .tensorflow.GraphDef function_graph = 2; + * @return Whether the functionGraph field is set. + */ + public boolean hasFunctionGraph() { + return functionGraphBuilder_ != null || functionGraph_ != null; + } + /** + *
+       * Optimized function graph.
+       * 
+ * + * .tensorflow.GraphDef function_graph = 2; + * @return The functionGraph. + */ + public org.tensorflow.proto.GraphDef getFunctionGraph() { + if (functionGraphBuilder_ == null) { + return functionGraph_ == null ? org.tensorflow.proto.GraphDef.getDefaultInstance() : functionGraph_; + } else { + return functionGraphBuilder_.getMessage(); + } + } + /** + *
+       * Optimized function graph.
+       * 
+ * + * .tensorflow.GraphDef function_graph = 2; + */ + public Builder setFunctionGraph(org.tensorflow.proto.GraphDef value) { + if (functionGraphBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + functionGraph_ = value; + onChanged(); + } else { + functionGraphBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Optimized function graph.
+       * 
+ * + * .tensorflow.GraphDef function_graph = 2; + */ + public Builder setFunctionGraph( + org.tensorflow.proto.GraphDef.Builder builderForValue) { + if (functionGraphBuilder_ == null) { + functionGraph_ = builderForValue.build(); + onChanged(); + } else { + functionGraphBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Optimized function graph.
+       * 
+ * + * .tensorflow.GraphDef function_graph = 2; + */ + public Builder mergeFunctionGraph(org.tensorflow.proto.GraphDef value) { + if (functionGraphBuilder_ == null) { + if (functionGraph_ != null) { + functionGraph_ = + org.tensorflow.proto.GraphDef.newBuilder(functionGraph_).mergeFrom(value).buildPartial(); + } else { + functionGraph_ = value; + } + onChanged(); + } else { + functionGraphBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Optimized function graph.
+       * 
+ * + * .tensorflow.GraphDef function_graph = 2; + */ + public Builder clearFunctionGraph() { + if (functionGraphBuilder_ == null) { + functionGraph_ = null; + onChanged(); + } else { + functionGraph_ = null; + functionGraphBuilder_ = null; + } + + return this; + } + /** + *
+       * Optimized function graph.
+       * 
+ * + * .tensorflow.GraphDef function_graph = 2; + */ + public org.tensorflow.proto.GraphDef.Builder getFunctionGraphBuilder() { + + onChanged(); + return getFunctionGraphFieldBuilder().getBuilder(); + } + /** + *
+       * Optimized function graph.
+       * 
+ * + * .tensorflow.GraphDef function_graph = 2; + */ + public org.tensorflow.proto.GraphDefOrBuilder getFunctionGraphOrBuilder() { + if (functionGraphBuilder_ != null) { + return functionGraphBuilder_.getMessageOrBuilder(); + } else { + return functionGraph_ == null ? + org.tensorflow.proto.GraphDef.getDefaultInstance() : functionGraph_; + } + } + /** + *
+       * Optimized function graph.
+       * 
+ * + * .tensorflow.GraphDef function_graph = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.GraphDef, org.tensorflow.proto.GraphDef.Builder, org.tensorflow.proto.GraphDefOrBuilder> + getFunctionGraphFieldBuilder() { + if (functionGraphBuilder_ == null) { + functionGraphBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.GraphDef, org.tensorflow.proto.GraphDef.Builder, org.tensorflow.proto.GraphDefOrBuilder>( + getFunctionGraph(), + getParentForChildren(), + isClean()); + functionGraph_ = null; + } + return functionGraphBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> nodeNameToControlRet_; + private com.google.protobuf.MapField + internalGetNodeNameToControlRet() { + if (nodeNameToControlRet_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NodeNameToControlRetDefaultEntryHolder.defaultEntry); + } + return nodeNameToControlRet_; + } + private com.google.protobuf.MapField + internalGetMutableNodeNameToControlRet() { + onChanged();; + if (nodeNameToControlRet_ == null) { + nodeNameToControlRet_ = com.google.protobuf.MapField.newMapField( + NodeNameToControlRetDefaultEntryHolder.defaultEntry); + } + if (!nodeNameToControlRet_.isMutable()) { + nodeNameToControlRet_ = nodeNameToControlRet_.copy(); + } + return nodeNameToControlRet_; + } + + public int getNodeNameToControlRetCount() { + return internalGetNodeNameToControlRet().getMap().size(); + } + /** + *
+       * Maps from node name to control ret. This is an output from running TF/XLA
+       * bridge.
+       * 
+ * + * map<string, string> node_name_to_control_ret = 3; + */ + + @java.lang.Override + public boolean containsNodeNameToControlRet( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetNodeNameToControlRet().getMap().containsKey(key); + } + /** + * Use {@link #getNodeNameToControlRetMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getNodeNameToControlRet() { + return getNodeNameToControlRetMap(); + } + /** + *
+       * Maps from node name to control ret. This is an output from running TF/XLA
+       * bridge.
+       * 
+ * + * map<string, string> node_name_to_control_ret = 3; + */ + @java.lang.Override + + public java.util.Map getNodeNameToControlRetMap() { + return internalGetNodeNameToControlRet().getMap(); + } + /** + *
+       * Maps from node name to control ret. This is an output from running TF/XLA
+       * bridge.
+       * 
+ * + * map<string, string> node_name_to_control_ret = 3; + */ + @java.lang.Override + + public java.lang.String getNodeNameToControlRetOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetNodeNameToControlRet().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Maps from node name to control ret. This is an output from running TF/XLA
+       * bridge.
+       * 
+ * + * map<string, string> node_name_to_control_ret = 3; + */ + @java.lang.Override + + public java.lang.String getNodeNameToControlRetOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetNodeNameToControlRet().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearNodeNameToControlRet() { + internalGetMutableNodeNameToControlRet().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Maps from node name to control ret. This is an output from running TF/XLA
+       * bridge.
+       * 
+ * + * map<string, string> node_name_to_control_ret = 3; + */ + + public Builder removeNodeNameToControlRet( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableNodeNameToControlRet().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableNodeNameToControlRet() { + return internalGetMutableNodeNameToControlRet().getMutableMap(); + } + /** + *
+       * Maps from node name to control ret. This is an output from running TF/XLA
+       * bridge.
+       * 
+ * + * map<string, string> node_name_to_control_ret = 3; + */ + public Builder putNodeNameToControlRet( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableNodeNameToControlRet().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Maps from node name to control ret. This is an output from running TF/XLA
+       * bridge.
+       * 
+ * + * map<string, string> node_name_to_control_ret = 3; + */ + + public Builder putAllNodeNameToControlRet( + java.util.Map values) { + internalGetMutableNodeNameToControlRet().getMutableMap() + .putAll(values); + return this; + } + + private java.util.List retTypes_ = + java.util.Collections.emptyList(); + private void ensureRetTypesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + retTypes_ = new java.util.ArrayList(retTypes_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * Return node types of the function. This is an output of graph
+       * preprocessing.
+       * 
+ * + * repeated .tensorflow.DataType ret_types = 4; + * @return A list containing the retTypes. + */ + public java.util.List getRetTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, org.tensorflow.proto.DataType>(retTypes_, retTypes_converter_); + } + /** + *
+       * Return node types of the function. This is an output of graph
+       * preprocessing.
+       * 
+ * + * repeated .tensorflow.DataType ret_types = 4; + * @return The count of retTypes. + */ + public int getRetTypesCount() { + return retTypes_.size(); + } + /** + *
+       * Return node types of the function. This is an output of graph
+       * preprocessing.
+       * 
+ * + * repeated .tensorflow.DataType ret_types = 4; + * @param index The index of the element to return. + * @return The retTypes at the given index. + */ + public org.tensorflow.proto.DataType getRetTypes(int index) { + return retTypes_converter_.convert(retTypes_.get(index)); + } + /** + *
+       * Return node types of the function. This is an output of graph
+       * preprocessing.
+       * 
+ * + * repeated .tensorflow.DataType ret_types = 4; + * @param index The index to set the value at. + * @param value The retTypes to set. + * @return This builder for chaining. + */ + public Builder setRetTypes( + int index, org.tensorflow.proto.DataType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRetTypesIsMutable(); + retTypes_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * Return node types of the function. This is an output of graph
+       * preprocessing.
+       * 
+ * + * repeated .tensorflow.DataType ret_types = 4; + * @param value The retTypes to add. + * @return This builder for chaining. + */ + public Builder addRetTypes(org.tensorflow.proto.DataType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRetTypesIsMutable(); + retTypes_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * Return node types of the function. This is an output of graph
+       * preprocessing.
+       * 
+ * + * repeated .tensorflow.DataType ret_types = 4; + * @param values The retTypes to add. + * @return This builder for chaining. + */ + public Builder addAllRetTypes( + java.lang.Iterable values) { + ensureRetTypesIsMutable(); + for (org.tensorflow.proto.DataType value : values) { + retTypes_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+       * Return node types of the function. This is an output of graph
+       * preprocessing.
+       * 
+ * + * repeated .tensorflow.DataType ret_types = 4; + * @return This builder for chaining. + */ + public Builder clearRetTypes() { + retTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Return node types of the function. This is an output of graph
+       * preprocessing.
+       * 
+ * + * repeated .tensorflow.DataType ret_types = 4; + * @return A list containing the enum numeric values on the wire for retTypes. + */ + public java.util.List + getRetTypesValueList() { + return java.util.Collections.unmodifiableList(retTypes_); + } + /** + *
+       * Return node types of the function. This is an output of graph
+       * preprocessing.
+       * 
+ * + * repeated .tensorflow.DataType ret_types = 4; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of retTypes at the given index. + */ + public int getRetTypesValue(int index) { + return retTypes_.get(index); + } + /** + *
+       * Return node types of the function. This is an output of graph
+       * preprocessing.
+       * 
+ * + * repeated .tensorflow.DataType ret_types = 4; + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for retTypes to set. + * @return This builder for chaining. + */ + public Builder setRetTypesValue( + int index, int value) { + ensureRetTypesIsMutable(); + retTypes_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Return node types of the function. This is an output of graph
+       * preprocessing.
+       * 
+ * + * repeated .tensorflow.DataType ret_types = 4; + * @param value The enum numeric value on the wire for retTypes to add. + * @return This builder for chaining. + */ + public Builder addRetTypesValue(int value) { + ensureRetTypesIsMutable(); + retTypes_.add(value); + onChanged(); + return this; + } + /** + *
+       * Return node types of the function. This is an output of graph
+       * preprocessing.
+       * 
+ * + * repeated .tensorflow.DataType ret_types = 4; + * @param values The enum numeric values on the wire for retTypes to add. + * @return This builder for chaining. + */ + public Builder addAllRetTypesValue( + java.lang.Iterable values) { + ensureRetTypesIsMutable(); + for (int value : values) { + retTypes_.add(value); + } + onChanged(); + return this; + } + + private int numReturnNodes_ ; + /** + *
+       * Number of return nodes. This is an output of graph preprocessing.
+       * 
+ * + * uint32 num_return_nodes = 5; + * @return The numReturnNodes. + */ + @java.lang.Override + public int getNumReturnNodes() { + return numReturnNodes_; + } + /** + *
+       * Number of return nodes. This is an output of graph preprocessing.
+       * 
+ * + * uint32 num_return_nodes = 5; + * @param value The numReturnNodes to set. + * @return This builder for chaining. + */ + public Builder setNumReturnNodes(int value) { + + numReturnNodes_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of return nodes. This is an output of graph preprocessing.
+       * 
+ * + * uint32 num_return_nodes = 5; + * @return This builder for chaining. + */ + public Builder clearNumReturnNodes() { + + numReturnNodes_ = 0; + onChanged(); + return this; + } + + private int source_ = 0; + /** + *
+       * Indicates the source environment where this proto is generated.
+       * 
+ * + * optional .tensorflow.OptimizedFunctionGraph.OptimizationSource source = 7; + * @return Whether the source field is set. + */ + @java.lang.Override public boolean hasSource() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * Indicates the source environment where this proto is generated.
+       * 
+ * + * optional .tensorflow.OptimizedFunctionGraph.OptimizationSource source = 7; + * @return The enum numeric value on the wire for source. + */ + @java.lang.Override public int getSourceValue() { + return source_; + } + /** + *
+       * Indicates the source environment where this proto is generated.
+       * 
+ * + * optional .tensorflow.OptimizedFunctionGraph.OptimizationSource source = 7; + * @param value The enum numeric value on the wire for source to set. + * @return This builder for chaining. + */ + public Builder setSourceValue(int value) { + bitField0_ |= 0x00000004; + source_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the source environment where this proto is generated.
+       * 
+ * + * optional .tensorflow.OptimizedFunctionGraph.OptimizationSource source = 7; + * @return The source. + */ + @java.lang.Override + public org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource getSource() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource result = org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource.valueOf(source_); + return result == null ? org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource.UNRECOGNIZED : result; + } + /** + *
+       * Indicates the source environment where this proto is generated.
+       * 
+ * + * optional .tensorflow.OptimizedFunctionGraph.OptimizationSource source = 7; + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + source_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Indicates the source environment where this proto is generated.
+       * 
+ * + * optional .tensorflow.OptimizedFunctionGraph.OptimizationSource source = 7; + * @return This builder for chaining. + */ + public Builder clearSource() { + bitField0_ = (bitField0_ & ~0x00000004); + source_ = 0; + onChanged(); + return this; + } + + private long optimizationTimeUsecs_ ; + /** + *
+       * Time (in microseconds) spent on running the graph optimization passes for
+       * this function.
+       * 
+ * + * optional uint64 optimization_time_usecs = 8; + * @return Whether the optimizationTimeUsecs field is set. + */ + @java.lang.Override + public boolean hasOptimizationTimeUsecs() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+       * Time (in microseconds) spent on running the graph optimization passes for
+       * this function.
+       * 
+ * + * optional uint64 optimization_time_usecs = 8; + * @return The optimizationTimeUsecs. + */ + @java.lang.Override + public long getOptimizationTimeUsecs() { + return optimizationTimeUsecs_; + } + /** + *
+       * Time (in microseconds) spent on running the graph optimization passes for
+       * this function.
+       * 
+ * + * optional uint64 optimization_time_usecs = 8; + * @param value The optimizationTimeUsecs to set. + * @return This builder for chaining. + */ + public Builder setOptimizationTimeUsecs(long value) { + bitField0_ |= 0x00000008; + optimizationTimeUsecs_ = value; + onChanged(); + return this; + } + /** + *
+       * Time (in microseconds) spent on running the graph optimization passes for
+       * this function.
+       * 
+ * + * optional uint64 optimization_time_usecs = 8; + * @return This builder for chaining. + */ + public Builder clearOptimizationTimeUsecs() { + bitField0_ = (bitField0_ & ~0x00000008); + optimizationTimeUsecs_ = 0L; + 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:tensorflow.OptimizedFunctionGraph) + } + + // @@protoc_insertion_point(class_scope:tensorflow.OptimizedFunctionGraph) + private static final org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph(); + } + + public static org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OptimizedFunctionGraph 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 org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_OptimizedFunctionGraph_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_OptimizedFunctionGraph_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_OptimizedFunctionGraph_NodeNameToControlRetEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_OptimizedFunctionGraph_NodeNameToControlRetEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n8tensorflow/core/framework/optimized_fu" + + "nction_graph.proto\022\ntensorflow\032%tensorfl" + + "ow/core/framework/graph.proto\032%tensorflo" + + "w/core/framework/types.proto\"\223\004\n\026Optimiz" + + "edFunctionGraph\022\014\n\004name\030\001 \001(\t\022,\n\016functio" + + "n_graph\030\002 \001(\0132\024.tensorflow.GraphDef\022^\n\030n" + + "ode_name_to_control_ret\030\003 \003(\0132<.tensorfl" + + "ow.OptimizedFunctionGraph.NodeNameToCont" + + "rolRetEntry\022\'\n\tret_types\030\004 \003(\0162\024.tensorf" + + "low.DataType\022\030\n\020num_return_nodes\030\005 \001(\r\022J" + + "\n\006source\030\007 \001(\01625.tensorflow.OptimizedFun" + + "ctionGraph.OptimizationSourceH\000\210\001\001\022$\n\027op" + + "timization_time_usecs\030\010 \001(\004H\001\210\001\001\032;\n\031Node" + + "NameToControlRetEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\">\n\022OptimizationSource\022\026\n\022S" + + "OURCE_UNSPECIFIED\020\000\022\007\n\003AOT\020\001\022\007\n\003JIT\020\002B\t\n" + + "\007_sourceB\032\n\030_optimization_time_usecsJ\004\010\006" + + "\020\007B\026\n\024org.tensorflow.protob\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + org.tensorflow.proto.GraphProtos.getDescriptor(), + org.tensorflow.proto.TypesProtos.getDescriptor(), + }); + internal_static_tensorflow_OptimizedFunctionGraph_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_OptimizedFunctionGraph_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_OptimizedFunctionGraph_descriptor, + new java.lang.String[] { "Name", "FunctionGraph", "NodeNameToControlRet", "RetTypes", "NumReturnNodes", "Source", "OptimizationTimeUsecs", "Source", "OptimizationTimeUsecs", }); + internal_static_tensorflow_OptimizedFunctionGraph_NodeNameToControlRetEntry_descriptor = + internal_static_tensorflow_OptimizedFunctionGraph_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_OptimizedFunctionGraph_NodeNameToControlRetEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_OptimizedFunctionGraph_NodeNameToControlRetEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + org.tensorflow.proto.GraphProtos.getDescriptor(); + org.tensorflow.proto.TypesProtos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OptimizerOptions.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OptimizerOptions.java similarity index 76% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OptimizerOptions.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OptimizerOptions.java index 8868c9bdd42..3d35bce9caf 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OptimizerOptions.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OptimizerOptions.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/config.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; /** *
@@ -10,7 +10,7 @@
  *
  * Protobuf type {@code tensorflow.OptimizerOptions}
  */
-public  final class OptimizerOptions extends
+public final class OptimizerOptions extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.OptimizerOptions)
     OptimizerOptionsOrBuilder {
@@ -36,91 +36,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private OptimizerOptions(
-      com.google.protobuf.CodedInputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws com.google.protobuf.InvalidProtocolBufferException {
-    this();
-    if (extensionRegistry == null) {
-      throw new java.lang.NullPointerException();
-    }
-    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
-        com.google.protobuf.UnknownFieldSet.newBuilder();
-    try {
-      boolean done = false;
-      while (!done) {
-        int tag = input.readTag();
-        switch (tag) {
-          case 0:
-            done = true;
-            break;
-          case 8: {
-
-            doCommonSubexpressionElimination_ = input.readBool();
-            break;
-          }
-          case 16: {
-
-            doConstantFolding_ = input.readBool();
-            break;
-          }
-          case 24: {
-            int rawValue = input.readEnum();
-
-            optLevel_ = rawValue;
-            break;
-          }
-          case 32: {
-
-            doFunctionInlining_ = input.readBool();
-            break;
-          }
-          case 40: {
-            int rawValue = input.readEnum();
-
-            globalJitLevel_ = rawValue;
-            break;
-          }
-          case 48: {
-
-            maxFoldedConstantInBytes_ = input.readInt64();
-            break;
-          }
-          case 56: {
-
-            cpuGlobalJit_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
-        }
-      }
-    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-      throw e.setUnfinishedMessage(this);
-    } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
-    } finally {
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_OptimizerOptions_descriptor;
+    return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_OptimizerOptions_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_OptimizerOptions_fieldAccessorTable
+    return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_OptimizerOptions_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.framework.OptimizerOptions.class, org.tensorflow.proto.framework.OptimizerOptions.Builder.class);
+            org.tensorflow.proto.OptimizerOptions.class, org.tensorflow.proto.OptimizerOptions.Builder.class);
   }
 
   /**
@@ -184,6 +110,8 @@ public final int getNumber() {
     }
 
     /**
+     * @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
@@ -191,6 +119,10 @@ public static Level 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 Level forNumber(int value) {
       switch (value) {
         case 0: return L1;
@@ -213,6 +145,10 @@ public Level findValueByNumber(int 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
@@ -221,7 +157,7 @@ public Level findValueByNumber(int number) {
     }
     public static final com.google.protobuf.Descriptors.EnumDescriptor
         getDescriptor() {
-      return org.tensorflow.proto.framework.OptimizerOptions.getDescriptor().getEnumTypes().get(0);
+      return org.tensorflow.proto.OptimizerOptions.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Level[] VALUES = values();
@@ -324,6 +260,8 @@ public final int getNumber() {
     }
 
     /**
+     * @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
@@ -331,6 +269,10 @@ public static GlobalJitLevel 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 GlobalJitLevel forNumber(int value) {
       switch (value) {
         case 0: return DEFAULT;
@@ -355,6 +297,10 @@ public GlobalJitLevel findValueByNumber(int 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
@@ -363,7 +309,7 @@ public GlobalJitLevel findValueByNumber(int number) {
     }
     public static final com.google.protobuf.Descriptors.EnumDescriptor
         getDescriptor() {
-      return org.tensorflow.proto.framework.OptimizerOptions.getDescriptor().getEnumTypes().get(1);
+      return org.tensorflow.proto.OptimizerOptions.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final GlobalJitLevel[] VALUES = values();
@@ -400,7 +346,9 @@ private GlobalJitLevel(int value) {
    * 
* * bool do_common_subexpression_elimination = 1; + * @return The doCommonSubexpressionElimination. */ + @java.lang.Override public boolean getDoCommonSubexpressionElimination() { return doCommonSubexpressionElimination_; } @@ -415,7 +363,9 @@ public boolean getDoCommonSubexpressionElimination() { * * * bool do_constant_folding = 2; + * @return The doConstantFolding. */ + @java.lang.Override public boolean getDoConstantFolding() { return doConstantFolding_; } @@ -432,7 +382,9 @@ public boolean getDoConstantFolding() { * * * int64 max_folded_constant_in_bytes = 6; + * @return The maxFoldedConstantInBytes. */ + @java.lang.Override public long getMaxFoldedConstantInBytes() { return maxFoldedConstantInBytes_; } @@ -445,7 +397,9 @@ public long getMaxFoldedConstantInBytes() { * * * bool do_function_inlining = 4; + * @return The doFunctionInlining. */ + @java.lang.Override public boolean getDoFunctionInlining() { return doFunctionInlining_; } @@ -459,8 +413,9 @@ public boolean getDoFunctionInlining() { * * * .tensorflow.OptimizerOptions.Level opt_level = 3; + * @return The enum numeric value on the wire for optLevel. */ - public int getOptLevelValue() { + @java.lang.Override public int getOptLevelValue() { return optLevel_; } /** @@ -470,28 +425,31 @@ public int getOptLevelValue() { * * * .tensorflow.OptimizerOptions.Level opt_level = 3; + * @return The optLevel. */ - public org.tensorflow.proto.framework.OptimizerOptions.Level getOptLevel() { + @java.lang.Override public org.tensorflow.proto.OptimizerOptions.Level getOptLevel() { @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.OptimizerOptions.Level result = org.tensorflow.proto.framework.OptimizerOptions.Level.valueOf(optLevel_); - return result == null ? org.tensorflow.proto.framework.OptimizerOptions.Level.UNRECOGNIZED : result; + org.tensorflow.proto.OptimizerOptions.Level result = org.tensorflow.proto.OptimizerOptions.Level.valueOf(optLevel_); + return result == null ? org.tensorflow.proto.OptimizerOptions.Level.UNRECOGNIZED : result; } public static final int GLOBAL_JIT_LEVEL_FIELD_NUMBER = 5; private int globalJitLevel_; /** * .tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5; + * @return The enum numeric value on the wire for globalJitLevel. */ - public int getGlobalJitLevelValue() { + @java.lang.Override public int getGlobalJitLevelValue() { return globalJitLevel_; } /** * .tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5; + * @return The globalJitLevel. */ - public org.tensorflow.proto.framework.OptimizerOptions.GlobalJitLevel getGlobalJitLevel() { + @java.lang.Override public org.tensorflow.proto.OptimizerOptions.GlobalJitLevel getGlobalJitLevel() { @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.OptimizerOptions.GlobalJitLevel result = org.tensorflow.proto.framework.OptimizerOptions.GlobalJitLevel.valueOf(globalJitLevel_); - return result == null ? org.tensorflow.proto.framework.OptimizerOptions.GlobalJitLevel.UNRECOGNIZED : result; + org.tensorflow.proto.OptimizerOptions.GlobalJitLevel result = org.tensorflow.proto.OptimizerOptions.GlobalJitLevel.valueOf(globalJitLevel_); + return result == null ? org.tensorflow.proto.OptimizerOptions.GlobalJitLevel.UNRECOGNIZED : result; } public static final int CPU_GLOBAL_JIT_FIELD_NUMBER = 7; @@ -504,7 +462,9 @@ public org.tensorflow.proto.framework.OptimizerOptions.GlobalJitLevel getGlobalJ * * * bool cpu_global_jit = 7; + * @return The cpuGlobalJit. */ + @java.lang.Override public boolean getCpuGlobalJit() { return cpuGlobalJit_; } @@ -529,13 +489,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (doConstantFolding_ != false) { output.writeBool(2, doConstantFolding_); } - if (optLevel_ != org.tensorflow.proto.framework.OptimizerOptions.Level.L1.getNumber()) { + if (optLevel_ != org.tensorflow.proto.OptimizerOptions.Level.L1.getNumber()) { output.writeEnum(3, optLevel_); } if (doFunctionInlining_ != false) { output.writeBool(4, doFunctionInlining_); } - if (globalJitLevel_ != org.tensorflow.proto.framework.OptimizerOptions.GlobalJitLevel.DEFAULT.getNumber()) { + if (globalJitLevel_ != org.tensorflow.proto.OptimizerOptions.GlobalJitLevel.DEFAULT.getNumber()) { output.writeEnum(5, globalJitLevel_); } if (maxFoldedConstantInBytes_ != 0L) { @@ -544,7 +504,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (cpuGlobalJit_ != false) { output.writeBool(7, cpuGlobalJit_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -561,7 +521,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, doConstantFolding_); } - if (optLevel_ != org.tensorflow.proto.framework.OptimizerOptions.Level.L1.getNumber()) { + if (optLevel_ != org.tensorflow.proto.OptimizerOptions.Level.L1.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, optLevel_); } @@ -569,7 +529,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, doFunctionInlining_); } - if (globalJitLevel_ != org.tensorflow.proto.framework.OptimizerOptions.GlobalJitLevel.DEFAULT.getNumber()) { + if (globalJitLevel_ != org.tensorflow.proto.OptimizerOptions.GlobalJitLevel.DEFAULT.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, globalJitLevel_); } @@ -581,7 +541,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, cpuGlobalJit_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -591,10 +551,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.OptimizerOptions)) { + if (!(obj instanceof org.tensorflow.proto.OptimizerOptions)) { return super.equals(obj); } - org.tensorflow.proto.framework.OptimizerOptions other = (org.tensorflow.proto.framework.OptimizerOptions) obj; + org.tensorflow.proto.OptimizerOptions other = (org.tensorflow.proto.OptimizerOptions) obj; if (getDoCommonSubexpressionElimination() != other.getDoCommonSubexpressionElimination()) return false; @@ -608,7 +568,7 @@ public boolean equals(final java.lang.Object obj) { if (globalJitLevel_ != other.globalJitLevel_) return false; if (getCpuGlobalJit() != other.getCpuGlobalJit()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -638,74 +598,74 @@ public int hashCode() { hash = (37 * hash) + CPU_GLOBAL_JIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCpuGlobalJit()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.OptimizerOptions parseFrom( + public static org.tensorflow.proto.OptimizerOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.OptimizerOptions parseFrom( + public static org.tensorflow.proto.OptimizerOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.OptimizerOptions parseFrom( + public static org.tensorflow.proto.OptimizerOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.OptimizerOptions parseFrom( + public static org.tensorflow.proto.OptimizerOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.OptimizerOptions parseFrom(byte[] data) + public static org.tensorflow.proto.OptimizerOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.OptimizerOptions parseFrom( + public static org.tensorflow.proto.OptimizerOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.OptimizerOptions parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.OptimizerOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.OptimizerOptions parseFrom( + public static org.tensorflow.proto.OptimizerOptions 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 org.tensorflow.proto.framework.OptimizerOptions parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.OptimizerOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.OptimizerOptions parseDelimitedFrom( + public static org.tensorflow.proto.OptimizerOptions 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 org.tensorflow.proto.framework.OptimizerOptions parseFrom( + public static org.tensorflow.proto.OptimizerOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.OptimizerOptions parseFrom( + public static org.tensorflow.proto.OptimizerOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -718,7 +678,7 @@ public static org.tensorflow.proto.framework.OptimizerOptions parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.OptimizerOptions prototype) { + public static Builder newBuilder(org.tensorflow.proto.OptimizerOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -743,34 +703,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.OptimizerOptions) - org.tensorflow.proto.framework.OptimizerOptionsOrBuilder { + org.tensorflow.proto.OptimizerOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_OptimizerOptions_descriptor; + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_OptimizerOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_OptimizerOptions_fieldAccessorTable + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_OptimizerOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.OptimizerOptions.class, org.tensorflow.proto.framework.OptimizerOptions.Builder.class); + org.tensorflow.proto.OptimizerOptions.class, org.tensorflow.proto.OptimizerOptions.Builder.class); } - // Construct using org.tensorflow.proto.framework.OptimizerOptions.newBuilder() + // Construct using org.tensorflow.proto.OptimizerOptions.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -795,17 +750,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_OptimizerOptions_descriptor; + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_OptimizerOptions_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.OptimizerOptions getDefaultInstanceForType() { - return org.tensorflow.proto.framework.OptimizerOptions.getDefaultInstance(); + public org.tensorflow.proto.OptimizerOptions getDefaultInstanceForType() { + return org.tensorflow.proto.OptimizerOptions.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.OptimizerOptions build() { - org.tensorflow.proto.framework.OptimizerOptions result = buildPartial(); + public org.tensorflow.proto.OptimizerOptions build() { + org.tensorflow.proto.OptimizerOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -813,8 +768,8 @@ public org.tensorflow.proto.framework.OptimizerOptions build() { } @java.lang.Override - public org.tensorflow.proto.framework.OptimizerOptions buildPartial() { - org.tensorflow.proto.framework.OptimizerOptions result = new org.tensorflow.proto.framework.OptimizerOptions(this); + public org.tensorflow.proto.OptimizerOptions buildPartial() { + org.tensorflow.proto.OptimizerOptions result = new org.tensorflow.proto.OptimizerOptions(this); result.doCommonSubexpressionElimination_ = doCommonSubexpressionElimination_; result.doConstantFolding_ = doConstantFolding_; result.maxFoldedConstantInBytes_ = maxFoldedConstantInBytes_; @@ -860,16 +815,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.OptimizerOptions) { - return mergeFrom((org.tensorflow.proto.framework.OptimizerOptions)other); + if (other instanceof org.tensorflow.proto.OptimizerOptions) { + return mergeFrom((org.tensorflow.proto.OptimizerOptions)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.OptimizerOptions other) { - if (other == org.tensorflow.proto.framework.OptimizerOptions.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.OptimizerOptions other) { + if (other == org.tensorflow.proto.OptimizerOptions.getDefaultInstance()) return this; if (other.getDoCommonSubexpressionElimination() != false) { setDoCommonSubexpressionElimination(other.getDoCommonSubexpressionElimination()); } @@ -891,7 +846,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.OptimizerOptions other) if (other.getCpuGlobalJit() != false) { setCpuGlobalJit(other.getCpuGlobalJit()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -906,17 +861,65 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.OptimizerOptions parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + doCommonSubexpressionElimination_ = input.readBool(); + + break; + } // case 8 + case 16: { + doConstantFolding_ = input.readBool(); + + break; + } // case 16 + case 24: { + optLevel_ = input.readEnum(); + + break; + } // case 24 + case 32: { + doFunctionInlining_ = input.readBool(); + + break; + } // case 32 + case 40: { + globalJitLevel_ = input.readEnum(); + + break; + } // case 40 + case 48: { + maxFoldedConstantInBytes_ = input.readInt64(); + + break; + } // case 48 + case 56: { + cpuGlobalJit_ = input.readBool(); + + break; + } // case 56 + 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) { - parsedMessage = (org.tensorflow.proto.framework.OptimizerOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -930,7 +933,9 @@ public Builder mergeFrom( * * * bool do_common_subexpression_elimination = 1; + * @return The doCommonSubexpressionElimination. */ + @java.lang.Override public boolean getDoCommonSubexpressionElimination() { return doCommonSubexpressionElimination_; } @@ -943,6 +948,8 @@ public boolean getDoCommonSubexpressionElimination() { * * * bool do_common_subexpression_elimination = 1; + * @param value The doCommonSubexpressionElimination to set. + * @return This builder for chaining. */ public Builder setDoCommonSubexpressionElimination(boolean value) { @@ -959,6 +966,7 @@ public Builder setDoCommonSubexpressionElimination(boolean value) { * * * bool do_common_subexpression_elimination = 1; + * @return This builder for chaining. */ public Builder clearDoCommonSubexpressionElimination() { @@ -976,7 +984,9 @@ public Builder clearDoCommonSubexpressionElimination() { * * * bool do_constant_folding = 2; + * @return The doConstantFolding. */ + @java.lang.Override public boolean getDoConstantFolding() { return doConstantFolding_; } @@ -988,6 +998,8 @@ public boolean getDoConstantFolding() { * * * bool do_constant_folding = 2; + * @param value The doConstantFolding to set. + * @return This builder for chaining. */ public Builder setDoConstantFolding(boolean value) { @@ -1003,6 +1015,7 @@ public Builder setDoConstantFolding(boolean value) { * * * bool do_constant_folding = 2; + * @return This builder for chaining. */ public Builder clearDoConstantFolding() { @@ -1022,7 +1035,9 @@ public Builder clearDoConstantFolding() { * * * int64 max_folded_constant_in_bytes = 6; + * @return The maxFoldedConstantInBytes. */ + @java.lang.Override public long getMaxFoldedConstantInBytes() { return maxFoldedConstantInBytes_; } @@ -1036,6 +1051,8 @@ public long getMaxFoldedConstantInBytes() { * * * int64 max_folded_constant_in_bytes = 6; + * @param value The maxFoldedConstantInBytes to set. + * @return This builder for chaining. */ public Builder setMaxFoldedConstantInBytes(long value) { @@ -1053,6 +1070,7 @@ public Builder setMaxFoldedConstantInBytes(long value) { * * * int64 max_folded_constant_in_bytes = 6; + * @return This builder for chaining. */ public Builder clearMaxFoldedConstantInBytes() { @@ -1068,7 +1086,9 @@ public Builder clearMaxFoldedConstantInBytes() { * * * bool do_function_inlining = 4; + * @return The doFunctionInlining. */ + @java.lang.Override public boolean getDoFunctionInlining() { return doFunctionInlining_; } @@ -1078,6 +1098,8 @@ public boolean getDoFunctionInlining() { * * * bool do_function_inlining = 4; + * @param value The doFunctionInlining to set. + * @return This builder for chaining. */ public Builder setDoFunctionInlining(boolean value) { @@ -1091,6 +1113,7 @@ public Builder setDoFunctionInlining(boolean value) { * * * bool do_function_inlining = 4; + * @return This builder for chaining. */ public Builder clearDoFunctionInlining() { @@ -1107,8 +1130,9 @@ public Builder clearDoFunctionInlining() { * * * .tensorflow.OptimizerOptions.Level opt_level = 3; + * @return The enum numeric value on the wire for optLevel. */ - public int getOptLevelValue() { + @java.lang.Override public int getOptLevelValue() { return optLevel_; } /** @@ -1118,8 +1142,11 @@ public int getOptLevelValue() { * * * .tensorflow.OptimizerOptions.Level opt_level = 3; + * @param value The enum numeric value on the wire for optLevel to set. + * @return This builder for chaining. */ public Builder setOptLevelValue(int value) { + optLevel_ = value; onChanged(); return this; @@ -1131,11 +1158,13 @@ public Builder setOptLevelValue(int value) { * * * .tensorflow.OptimizerOptions.Level opt_level = 3; + * @return The optLevel. */ - public org.tensorflow.proto.framework.OptimizerOptions.Level getOptLevel() { + @java.lang.Override + public org.tensorflow.proto.OptimizerOptions.Level getOptLevel() { @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.OptimizerOptions.Level result = org.tensorflow.proto.framework.OptimizerOptions.Level.valueOf(optLevel_); - return result == null ? org.tensorflow.proto.framework.OptimizerOptions.Level.UNRECOGNIZED : result; + org.tensorflow.proto.OptimizerOptions.Level result = org.tensorflow.proto.OptimizerOptions.Level.valueOf(optLevel_); + return result == null ? org.tensorflow.proto.OptimizerOptions.Level.UNRECOGNIZED : result; } /** *
@@ -1144,8 +1173,10 @@ public org.tensorflow.proto.framework.OptimizerOptions.Level getOptLevel() {
      * 
* * .tensorflow.OptimizerOptions.Level opt_level = 3; + * @param value The optLevel to set. + * @return This builder for chaining. */ - public Builder setOptLevel(org.tensorflow.proto.framework.OptimizerOptions.Level value) { + public Builder setOptLevel(org.tensorflow.proto.OptimizerOptions.Level value) { if (value == null) { throw new NullPointerException(); } @@ -1161,6 +1192,7 @@ public Builder setOptLevel(org.tensorflow.proto.framework.OptimizerOptions.Level * * * .tensorflow.OptimizerOptions.Level opt_level = 3; + * @return This builder for chaining. */ public Builder clearOptLevel() { @@ -1172,30 +1204,38 @@ public Builder clearOptLevel() { private int globalJitLevel_ = 0; /** * .tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5; + * @return The enum numeric value on the wire for globalJitLevel. */ - public int getGlobalJitLevelValue() { + @java.lang.Override public int getGlobalJitLevelValue() { return globalJitLevel_; } /** * .tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5; + * @param value The enum numeric value on the wire for globalJitLevel to set. + * @return This builder for chaining. */ public Builder setGlobalJitLevelValue(int value) { + globalJitLevel_ = value; onChanged(); return this; } /** * .tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5; + * @return The globalJitLevel. */ - public org.tensorflow.proto.framework.OptimizerOptions.GlobalJitLevel getGlobalJitLevel() { + @java.lang.Override + public org.tensorflow.proto.OptimizerOptions.GlobalJitLevel getGlobalJitLevel() { @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.OptimizerOptions.GlobalJitLevel result = org.tensorflow.proto.framework.OptimizerOptions.GlobalJitLevel.valueOf(globalJitLevel_); - return result == null ? org.tensorflow.proto.framework.OptimizerOptions.GlobalJitLevel.UNRECOGNIZED : result; + org.tensorflow.proto.OptimizerOptions.GlobalJitLevel result = org.tensorflow.proto.OptimizerOptions.GlobalJitLevel.valueOf(globalJitLevel_); + return result == null ? org.tensorflow.proto.OptimizerOptions.GlobalJitLevel.UNRECOGNIZED : result; } /** * .tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5; + * @param value The globalJitLevel to set. + * @return This builder for chaining. */ - public Builder setGlobalJitLevel(org.tensorflow.proto.framework.OptimizerOptions.GlobalJitLevel value) { + public Builder setGlobalJitLevel(org.tensorflow.proto.OptimizerOptions.GlobalJitLevel value) { if (value == null) { throw new NullPointerException(); } @@ -1206,6 +1246,7 @@ public Builder setGlobalJitLevel(org.tensorflow.proto.framework.OptimizerOptions } /** * .tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5; + * @return This builder for chaining. */ public Builder clearGlobalJitLevel() { @@ -1223,7 +1264,9 @@ public Builder clearGlobalJitLevel() { * * * bool cpu_global_jit = 7; + * @return The cpuGlobalJit. */ + @java.lang.Override public boolean getCpuGlobalJit() { return cpuGlobalJit_; } @@ -1235,6 +1278,8 @@ public boolean getCpuGlobalJit() { * * * bool cpu_global_jit = 7; + * @param value The cpuGlobalJit to set. + * @return This builder for chaining. */ public Builder setCpuGlobalJit(boolean value) { @@ -1250,6 +1295,7 @@ public Builder setCpuGlobalJit(boolean value) { * * * bool cpu_global_jit = 7; + * @return This builder for chaining. */ public Builder clearCpuGlobalJit() { @@ -1274,12 +1320,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.OptimizerOptions) - private static final org.tensorflow.proto.framework.OptimizerOptions DEFAULT_INSTANCE; + private static final org.tensorflow.proto.OptimizerOptions DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.OptimizerOptions(); + DEFAULT_INSTANCE = new org.tensorflow.proto.OptimizerOptions(); } - public static org.tensorflow.proto.framework.OptimizerOptions getDefaultInstance() { + public static org.tensorflow.proto.OptimizerOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1290,7 +1336,18 @@ public OptimizerOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new OptimizerOptions(input, extensionRegistry); + 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(); } }; @@ -1304,7 +1361,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.OptimizerOptions getDefaultInstanceForType() { + public org.tensorflow.proto.OptimizerOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OptimizerOptionsOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OptimizerOptionsOrBuilder.java similarity index 83% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OptimizerOptionsOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OptimizerOptionsOrBuilder.java index 69397ec8c5d..e2f0ecbcf88 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/OptimizerOptionsOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/OptimizerOptionsOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/config.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface OptimizerOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.OptimizerOptions) @@ -16,6 +16,7 @@ public interface OptimizerOptionsOrBuilder extends * * * bool do_common_subexpression_elimination = 1; + * @return The doCommonSubexpressionElimination. */ boolean getDoCommonSubexpressionElimination(); @@ -27,6 +28,7 @@ public interface OptimizerOptionsOrBuilder extends * * * bool do_constant_folding = 2; + * @return The doConstantFolding. */ boolean getDoConstantFolding(); @@ -40,6 +42,7 @@ public interface OptimizerOptionsOrBuilder extends * * * int64 max_folded_constant_in_bytes = 6; + * @return The maxFoldedConstantInBytes. */ long getMaxFoldedConstantInBytes(); @@ -49,6 +52,7 @@ public interface OptimizerOptionsOrBuilder extends * * * bool do_function_inlining = 4; + * @return The doFunctionInlining. */ boolean getDoFunctionInlining(); @@ -59,6 +63,7 @@ public interface OptimizerOptionsOrBuilder extends * * * .tensorflow.OptimizerOptions.Level opt_level = 3; + * @return The enum numeric value on the wire for optLevel. */ int getOptLevelValue(); /** @@ -68,17 +73,20 @@ public interface OptimizerOptionsOrBuilder extends * * * .tensorflow.OptimizerOptions.Level opt_level = 3; + * @return The optLevel. */ - org.tensorflow.proto.framework.OptimizerOptions.Level getOptLevel(); + org.tensorflow.proto.OptimizerOptions.Level getOptLevel(); /** * .tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5; + * @return The enum numeric value on the wire for globalJitLevel. */ int getGlobalJitLevelValue(); /** * .tensorflow.OptimizerOptions.GlobalJitLevel global_jit_level = 5; + * @return The globalJitLevel. */ - org.tensorflow.proto.framework.OptimizerOptions.GlobalJitLevel getGlobalJitLevel(); + org.tensorflow.proto.OptimizerOptions.GlobalJitLevel getGlobalJitLevel(); /** *
@@ -88,6 +96,7 @@ public interface OptimizerOptionsOrBuilder extends
    * 
* * bool cpu_global_jit = 7; + * @return The cpuGlobalJit. */ boolean getCpuGlobalJit(); } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/PlatformInfo.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/PlatformInfo.java similarity index 78% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/PlatformInfo.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/PlatformInfo.java index efe3a52d92e..421842e2946 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/PlatformInfo.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/PlatformInfo.java @@ -1,12 +1,12 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/util/test_log.proto +// source: tensorflow/tsl/protobuf/test_log.proto -package org.tensorflow.proto.util.testlog; +package org.tensorflow.proto; /** * Protobuf type {@code tensorflow.PlatformInfo} */ -public final class PlatformInfo extends +public final class PlatformInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.PlatformInfo) PlatformInfoOrBuilder { @@ -36,90 +36,17 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private PlatformInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - bits_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - linkage_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - machine_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - release_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - system_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_PlatformInfo_descriptor; + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_PlatformInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_PlatformInfo_fieldAccessorTable + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_PlatformInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.util.testlog.PlatformInfo.class, org.tensorflow.proto.util.testlog.PlatformInfo.Builder.class); + org.tensorflow.proto.PlatformInfo.class, org.tensorflow.proto.PlatformInfo.Builder.class); } public static final int BITS_FIELD_NUMBER = 1; @@ -130,7 +57,9 @@ private PlatformInfo( * * * string bits = 1; + * @return The bits. */ + @java.lang.Override public java.lang.String getBits() { java.lang.Object ref = bits_; if (ref instanceof java.lang.String) { @@ -149,7 +78,9 @@ public java.lang.String getBits() { * * * string bits = 1; + * @return The bytes for bits. */ + @java.lang.Override public com.google.protobuf.ByteString getBitsBytes() { java.lang.Object ref = bits_; @@ -172,7 +103,9 @@ public java.lang.String getBits() { * * * string linkage = 2; + * @return The linkage. */ + @java.lang.Override public java.lang.String getLinkage() { java.lang.Object ref = linkage_; if (ref instanceof java.lang.String) { @@ -191,7 +124,9 @@ public java.lang.String getLinkage() { * * * string linkage = 2; + * @return The bytes for linkage. */ + @java.lang.Override public com.google.protobuf.ByteString getLinkageBytes() { java.lang.Object ref = linkage_; @@ -214,7 +149,9 @@ public java.lang.String getLinkage() { * * * string machine = 3; + * @return The machine. */ + @java.lang.Override public java.lang.String getMachine() { java.lang.Object ref = machine_; if (ref instanceof java.lang.String) { @@ -233,7 +170,9 @@ public java.lang.String getMachine() { * * * string machine = 3; + * @return The bytes for machine. */ + @java.lang.Override public com.google.protobuf.ByteString getMachineBytes() { java.lang.Object ref = machine_; @@ -256,7 +195,9 @@ public java.lang.String getMachine() { * * * string release = 4; + * @return The release. */ + @java.lang.Override public java.lang.String getRelease() { java.lang.Object ref = release_; if (ref instanceof java.lang.String) { @@ -275,7 +216,9 @@ public java.lang.String getRelease() { * * * string release = 4; + * @return The bytes for release. */ + @java.lang.Override public com.google.protobuf.ByteString getReleaseBytes() { java.lang.Object ref = release_; @@ -298,7 +241,9 @@ public java.lang.String getRelease() { * * * string system = 5; + * @return The system. */ + @java.lang.Override public java.lang.String getSystem() { java.lang.Object ref = system_; if (ref instanceof java.lang.String) { @@ -317,7 +262,9 @@ public java.lang.String getSystem() { * * * string system = 5; + * @return The bytes for system. */ + @java.lang.Override public com.google.protobuf.ByteString getSystemBytes() { java.lang.Object ref = system_; @@ -340,7 +287,9 @@ public java.lang.String getSystem() { * * * string version = 6; + * @return The version. */ + @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { @@ -359,7 +308,9 @@ public java.lang.String getVersion() { * * * string version = 6; + * @return The bytes for version. */ + @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; @@ -388,25 +339,25 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getBitsBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bits_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bits_); } - if (!getLinkageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, linkage_); } - if (!getMachineBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machine_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, machine_); } - if (!getReleaseBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(release_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, release_); } - if (!getSystemBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(system_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, system_); } - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, version_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -415,25 +366,25 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getBitsBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bits_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bits_); } - if (!getLinkageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, linkage_); } - if (!getMachineBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machine_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, machine_); } - if (!getReleaseBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(release_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, release_); } - if (!getSystemBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(system_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, system_); } - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, version_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -443,10 +394,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.util.testlog.PlatformInfo)) { + if (!(obj instanceof org.tensorflow.proto.PlatformInfo)) { return super.equals(obj); } - org.tensorflow.proto.util.testlog.PlatformInfo other = (org.tensorflow.proto.util.testlog.PlatformInfo) obj; + org.tensorflow.proto.PlatformInfo other = (org.tensorflow.proto.PlatformInfo) obj; if (!getBits() .equals(other.getBits())) return false; @@ -460,7 +411,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getSystem())) return false; if (!getVersion() .equals(other.getVersion())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -483,74 +434,74 @@ public int hashCode() { hash = (53 * hash) + getSystem().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.util.testlog.PlatformInfo parseFrom( + public static org.tensorflow.proto.PlatformInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.PlatformInfo parseFrom( + public static org.tensorflow.proto.PlatformInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.PlatformInfo parseFrom( + public static org.tensorflow.proto.PlatformInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.PlatformInfo parseFrom( + public static org.tensorflow.proto.PlatformInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.PlatformInfo parseFrom(byte[] data) + public static org.tensorflow.proto.PlatformInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.PlatformInfo parseFrom( + public static org.tensorflow.proto.PlatformInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.PlatformInfo parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.PlatformInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.PlatformInfo parseFrom( + public static org.tensorflow.proto.PlatformInfo 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 org.tensorflow.proto.util.testlog.PlatformInfo parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.PlatformInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.PlatformInfo parseDelimitedFrom( + public static org.tensorflow.proto.PlatformInfo 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 org.tensorflow.proto.util.testlog.PlatformInfo parseFrom( + public static org.tensorflow.proto.PlatformInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.PlatformInfo parseFrom( + public static org.tensorflow.proto.PlatformInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -563,7 +514,7 @@ public static org.tensorflow.proto.util.testlog.PlatformInfo parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.util.testlog.PlatformInfo prototype) { + public static Builder newBuilder(org.tensorflow.proto.PlatformInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -584,34 +535,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.PlatformInfo) - org.tensorflow.proto.util.testlog.PlatformInfoOrBuilder { + org.tensorflow.proto.PlatformInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_PlatformInfo_descriptor; + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_PlatformInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_PlatformInfo_fieldAccessorTable + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_PlatformInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.util.testlog.PlatformInfo.class, org.tensorflow.proto.util.testlog.PlatformInfo.Builder.class); + org.tensorflow.proto.PlatformInfo.class, org.tensorflow.proto.PlatformInfo.Builder.class); } - // Construct using org.tensorflow.proto.util.testlog.PlatformInfo.newBuilder() + // Construct using org.tensorflow.proto.PlatformInfo.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -634,17 +580,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_PlatformInfo_descriptor; + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_PlatformInfo_descriptor; } @java.lang.Override - public org.tensorflow.proto.util.testlog.PlatformInfo getDefaultInstanceForType() { - return org.tensorflow.proto.util.testlog.PlatformInfo.getDefaultInstance(); + public org.tensorflow.proto.PlatformInfo getDefaultInstanceForType() { + return org.tensorflow.proto.PlatformInfo.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.util.testlog.PlatformInfo build() { - org.tensorflow.proto.util.testlog.PlatformInfo result = buildPartial(); + public org.tensorflow.proto.PlatformInfo build() { + org.tensorflow.proto.PlatformInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -652,8 +598,8 @@ public org.tensorflow.proto.util.testlog.PlatformInfo build() { } @java.lang.Override - public org.tensorflow.proto.util.testlog.PlatformInfo buildPartial() { - org.tensorflow.proto.util.testlog.PlatformInfo result = new org.tensorflow.proto.util.testlog.PlatformInfo(this); + public org.tensorflow.proto.PlatformInfo buildPartial() { + org.tensorflow.proto.PlatformInfo result = new org.tensorflow.proto.PlatformInfo(this); result.bits_ = bits_; result.linkage_ = linkage_; result.machine_ = machine_; @@ -698,16 +644,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.util.testlog.PlatformInfo) { - return mergeFrom((org.tensorflow.proto.util.testlog.PlatformInfo)other); + if (other instanceof org.tensorflow.proto.PlatformInfo) { + return mergeFrom((org.tensorflow.proto.PlatformInfo)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.util.testlog.PlatformInfo other) { - if (other == org.tensorflow.proto.util.testlog.PlatformInfo.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.PlatformInfo other) { + if (other == org.tensorflow.proto.PlatformInfo.getDefaultInstance()) return this; if (!other.getBits().isEmpty()) { bits_ = other.bits_; onChanged(); @@ -732,7 +678,7 @@ public Builder mergeFrom(org.tensorflow.proto.util.testlog.PlatformInfo other) { version_ = other.version_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -747,17 +693,60 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.util.testlog.PlatformInfo parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + bits_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + linkage_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + machine_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + release_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + system_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + version_ = input.readStringRequireUtf8(); + + break; + } // case 50 + 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) { - parsedMessage = (org.tensorflow.proto.util.testlog.PlatformInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -768,6 +757,7 @@ public Builder mergeFrom( * * * string bits = 1; + * @return The bits. */ public java.lang.String getBits() { java.lang.Object ref = bits_; @@ -787,6 +777,7 @@ public java.lang.String getBits() { * * * string bits = 1; + * @return The bytes for bits. */ public com.google.protobuf.ByteString getBitsBytes() { @@ -807,6 +798,8 @@ public java.lang.String getBits() { * * * string bits = 1; + * @param value The bits to set. + * @return This builder for chaining. */ public Builder setBits( java.lang.String value) { @@ -824,6 +817,7 @@ public Builder setBits( * * * string bits = 1; + * @return This builder for chaining. */ public Builder clearBits() { @@ -837,6 +831,8 @@ public Builder clearBits() { * * * string bits = 1; + * @param value The bytes for bits to set. + * @return This builder for chaining. */ public Builder setBitsBytes( com.google.protobuf.ByteString value) { @@ -857,6 +853,7 @@ public Builder setBitsBytes( * * * string linkage = 2; + * @return The linkage. */ public java.lang.String getLinkage() { java.lang.Object ref = linkage_; @@ -876,6 +873,7 @@ public java.lang.String getLinkage() { * * * string linkage = 2; + * @return The bytes for linkage. */ public com.google.protobuf.ByteString getLinkageBytes() { @@ -896,6 +894,8 @@ public java.lang.String getLinkage() { * * * string linkage = 2; + * @param value The linkage to set. + * @return This builder for chaining. */ public Builder setLinkage( java.lang.String value) { @@ -913,6 +913,7 @@ public Builder setLinkage( * * * string linkage = 2; + * @return This builder for chaining. */ public Builder clearLinkage() { @@ -926,6 +927,8 @@ public Builder clearLinkage() { * * * string linkage = 2; + * @param value The bytes for linkage to set. + * @return This builder for chaining. */ public Builder setLinkageBytes( com.google.protobuf.ByteString value) { @@ -946,6 +949,7 @@ public Builder setLinkageBytes( * * * string machine = 3; + * @return The machine. */ public java.lang.String getMachine() { java.lang.Object ref = machine_; @@ -965,6 +969,7 @@ public java.lang.String getMachine() { * * * string machine = 3; + * @return The bytes for machine. */ public com.google.protobuf.ByteString getMachineBytes() { @@ -985,6 +990,8 @@ public java.lang.String getMachine() { * * * string machine = 3; + * @param value The machine to set. + * @return This builder for chaining. */ public Builder setMachine( java.lang.String value) { @@ -1002,6 +1009,7 @@ public Builder setMachine( * * * string machine = 3; + * @return This builder for chaining. */ public Builder clearMachine() { @@ -1015,6 +1023,8 @@ public Builder clearMachine() { * * * string machine = 3; + * @param value The bytes for machine to set. + * @return This builder for chaining. */ public Builder setMachineBytes( com.google.protobuf.ByteString value) { @@ -1035,6 +1045,7 @@ public Builder setMachineBytes( * * * string release = 4; + * @return The release. */ public java.lang.String getRelease() { java.lang.Object ref = release_; @@ -1054,6 +1065,7 @@ public java.lang.String getRelease() { * * * string release = 4; + * @return The bytes for release. */ public com.google.protobuf.ByteString getReleaseBytes() { @@ -1074,6 +1086,8 @@ public java.lang.String getRelease() { * * * string release = 4; + * @param value The release to set. + * @return This builder for chaining. */ public Builder setRelease( java.lang.String value) { @@ -1091,6 +1105,7 @@ public Builder setRelease( * * * string release = 4; + * @return This builder for chaining. */ public Builder clearRelease() { @@ -1104,6 +1119,8 @@ public Builder clearRelease() { * * * string release = 4; + * @param value The bytes for release to set. + * @return This builder for chaining. */ public Builder setReleaseBytes( com.google.protobuf.ByteString value) { @@ -1124,6 +1141,7 @@ public Builder setReleaseBytes( * * * string system = 5; + * @return The system. */ public java.lang.String getSystem() { java.lang.Object ref = system_; @@ -1143,6 +1161,7 @@ public java.lang.String getSystem() { * * * string system = 5; + * @return The bytes for system. */ public com.google.protobuf.ByteString getSystemBytes() { @@ -1163,6 +1182,8 @@ public java.lang.String getSystem() { * * * string system = 5; + * @param value The system to set. + * @return This builder for chaining. */ public Builder setSystem( java.lang.String value) { @@ -1180,6 +1201,7 @@ public Builder setSystem( * * * string system = 5; + * @return This builder for chaining. */ public Builder clearSystem() { @@ -1193,6 +1215,8 @@ public Builder clearSystem() { * * * string system = 5; + * @param value The bytes for system to set. + * @return This builder for chaining. */ public Builder setSystemBytes( com.google.protobuf.ByteString value) { @@ -1213,6 +1237,7 @@ public Builder setSystemBytes( * * * string version = 6; + * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; @@ -1232,6 +1257,7 @@ public java.lang.String getVersion() { * * * string version = 6; + * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { @@ -1252,6 +1278,8 @@ public java.lang.String getVersion() { * * * string version = 6; + * @param value The version to set. + * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { @@ -1269,6 +1297,7 @@ public Builder setVersion( * * * string version = 6; + * @return This builder for chaining. */ public Builder clearVersion() { @@ -1282,6 +1311,8 @@ public Builder clearVersion() { * * * string version = 6; + * @param value The bytes for version to set. + * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { @@ -1311,12 +1342,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.PlatformInfo) - private static final org.tensorflow.proto.util.testlog.PlatformInfo DEFAULT_INSTANCE; + private static final org.tensorflow.proto.PlatformInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.util.testlog.PlatformInfo(); + DEFAULT_INSTANCE = new org.tensorflow.proto.PlatformInfo(); } - public static org.tensorflow.proto.util.testlog.PlatformInfo getDefaultInstance() { + public static org.tensorflow.proto.PlatformInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1327,7 +1358,18 @@ public PlatformInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PlatformInfo(input, extensionRegistry); + 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(); } }; @@ -1341,7 +1383,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.util.testlog.PlatformInfo getDefaultInstanceForType() { + public org.tensorflow.proto.PlatformInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/PlatformInfoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/PlatformInfoOrBuilder.java similarity index 81% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/PlatformInfoOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/PlatformInfoOrBuilder.java index 6a5089fa309..617c44e44ec 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/PlatformInfoOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/PlatformInfoOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/util/test_log.proto +// source: tensorflow/tsl/protobuf/test_log.proto -package org.tensorflow.proto.util.testlog; +package org.tensorflow.proto; public interface PlatformInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.PlatformInfo) @@ -13,6 +13,7 @@ public interface PlatformInfoOrBuilder extends * * * string bits = 1; + * @return The bits. */ java.lang.String getBits(); /** @@ -21,6 +22,7 @@ public interface PlatformInfoOrBuilder extends * * * string bits = 1; + * @return The bytes for bits. */ com.google.protobuf.ByteString getBitsBytes(); @@ -31,6 +33,7 @@ public interface PlatformInfoOrBuilder extends * * * string linkage = 2; + * @return The linkage. */ java.lang.String getLinkage(); /** @@ -39,6 +42,7 @@ public interface PlatformInfoOrBuilder extends * * * string linkage = 2; + * @return The bytes for linkage. */ com.google.protobuf.ByteString getLinkageBytes(); @@ -49,6 +53,7 @@ public interface PlatformInfoOrBuilder extends * * * string machine = 3; + * @return The machine. */ java.lang.String getMachine(); /** @@ -57,6 +62,7 @@ public interface PlatformInfoOrBuilder extends * * * string machine = 3; + * @return The bytes for machine. */ com.google.protobuf.ByteString getMachineBytes(); @@ -67,6 +73,7 @@ public interface PlatformInfoOrBuilder extends * * * string release = 4; + * @return The release. */ java.lang.String getRelease(); /** @@ -75,6 +82,7 @@ public interface PlatformInfoOrBuilder extends * * * string release = 4; + * @return The bytes for release. */ com.google.protobuf.ByteString getReleaseBytes(); @@ -85,6 +93,7 @@ public interface PlatformInfoOrBuilder extends * * * string system = 5; + * @return The system. */ java.lang.String getSystem(); /** @@ -93,6 +102,7 @@ public interface PlatformInfoOrBuilder extends * * * string system = 5; + * @return The bytes for system. */ com.google.protobuf.ByteString getSystemBytes(); @@ -103,6 +113,7 @@ public interface PlatformInfoOrBuilder extends * * * string version = 6; + * @return The version. */ java.lang.String getVersion(); /** @@ -111,6 +122,7 @@ public interface PlatformInfoOrBuilder extends * * * string version = 6; + * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ProfilerOptions.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ProfilerOptions.java new file mode 100644 index 00000000000..e8e9e7e355c --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ProfilerOptions.java @@ -0,0 +1,3038 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/tsl/profiler/protobuf/profiler_options.proto + +package org.tensorflow.proto; + +public final class ProfilerOptions { + private ProfilerOptions() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ProfileOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.ProfileOptions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Some default value of option are not proto3 default value. Use this version
+     * to determine if we should use default option value instead of proto3
+     * default value.
+     * 
+ * + * uint32 version = 5; + * @return The version. + */ + int getVersion(); + + /** + *
+     * Device type to profile/trace: (version >= 1)
+     * DeviceType::UNSPECIFIED: All registered device profiler will be enabled.
+     * DeviceType::CPU: only CPU will be profiled.
+     * DeviceType::GPU: only CPU/GPU will be profiled.
+     * DeviceType::TPU: only CPU/TPU will be profiled.
+     * DeviceType::PLUGGABLE_DEVICE: only CPU/pluggable devices with profilers
+     * will be profiled.
+     * 
+ * + * .tensorflow.ProfileOptions.DeviceType device_type = 6; + * @return The enum numeric value on the wire for deviceType. + */ + int getDeviceTypeValue(); + /** + *
+     * Device type to profile/trace: (version >= 1)
+     * DeviceType::UNSPECIFIED: All registered device profiler will be enabled.
+     * DeviceType::CPU: only CPU will be profiled.
+     * DeviceType::GPU: only CPU/GPU will be profiled.
+     * DeviceType::TPU: only CPU/TPU will be profiled.
+     * DeviceType::PLUGGABLE_DEVICE: only CPU/pluggable devices with profilers
+     * will be profiled.
+     * 
+ * + * .tensorflow.ProfileOptions.DeviceType device_type = 6; + * @return The deviceType. + */ + org.tensorflow.proto.ProfilerOptions.ProfileOptions.DeviceType getDeviceType(); + + /** + *
+     * We don't collect the dataset ops by default for better trace-viewer
+     * scalability. The caller can manually set this field to include the ops.
+     * 
+ * + * bool include_dataset_ops = 1; + * @return The includeDatasetOps. + */ + boolean getIncludeDatasetOps(); + + /** + *
+     * Levels of host tracing: (version >= 1)
+     * - Level 0 is used to disable host traces.
+     * - Level 1 enables tracing of only user instrumented (or default) TraceMe.
+     * - Level 2 enables tracing of all level 1 TraceMe(s) and instrumented high
+     *           level program execution details (expensive TF ops, XLA ops, etc).
+     *           This is the default.
+     * - Level 3 enables tracing of all level 2 TraceMe(s) and more verbose
+     *           (low-level) program execution details (cheap TF ops, etc).
+     * 
+ * + * uint32 host_tracer_level = 2; + * @return The hostTracerLevel. + */ + int getHostTracerLevel(); + + /** + *
+     * Levels of device tracing: (version >= 1)
+     * - Level 0 is used to disable device traces.
+     * - Level 1 is used to enable device traces.
+     * - More levels might be defined for specific device for controlling the
+     *   verbosity of the trace.
+     * 
+ * + * uint32 device_tracer_level = 3; + * @return The deviceTracerLevel. + */ + int getDeviceTracerLevel(); + + /** + *
+     * Whether enable python function calls tracing. Runtime overhead ensues if
+     * enabled. Default off. (version >= 1)
+     * 
+ * + * uint32 python_tracer_level = 4; + * @return The pythonTracerLevel. + */ + int getPythonTracerLevel(); + + /** + *
+     * Whether serialize hlo_proto when XLA is used. (version >= 1)
+     * 
+ * + * bool enable_hlo_proto = 7; + * @return The enableHloProto. + */ + boolean getEnableHloProto(); + + /** + *
+     * The local profiler starts profiling at this Unix timestamp in nanoseconds.
+     * 
+ * + * uint64 start_timestamp_ns = 8; + * @return The startTimestampNs. + */ + long getStartTimestampNs(); + + /** + *
+     * The local profiler collects `duration_ms` milliseconds of data. If the
+     * value is 0, profiling continues until interrupted.
+     * 
+ * + * uint64 duration_ms = 9; + * @return The durationMs. + */ + long getDurationMs(); + + /** + *
+     * Directory to save profile data to. No-op when empty.
+     * 
+ * + * string repository_path = 10; + * @return The repositoryPath. + */ + java.lang.String getRepositoryPath(); + /** + *
+     * Directory to save profile data to. No-op when empty.
+     * 
+ * + * string repository_path = 10; + * @return The bytes for repositoryPath. + */ + com.google.protobuf.ByteString + getRepositoryPathBytes(); + } + /** + *
+   * Next ID: 11
+   * 
+ * + * Protobuf type {@code tensorflow.ProfileOptions} + */ + public static final class ProfileOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.ProfileOptions) + ProfileOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProfileOptions.newBuilder() to construct. + private ProfileOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProfileOptions() { + deviceType_ = 0; + repositoryPath_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ProfileOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ProfilerOptions.internal_static_tensorflow_ProfileOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ProfilerOptions.internal_static_tensorflow_ProfileOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ProfilerOptions.ProfileOptions.class, org.tensorflow.proto.ProfilerOptions.ProfileOptions.Builder.class); + } + + /** + * Protobuf enum {@code tensorflow.ProfileOptions.DeviceType} + */ + public enum DeviceType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * CPU = 1; + */ + CPU(1), + /** + * GPU = 2; + */ + GPU(2), + /** + * TPU = 3; + */ + TPU(3), + /** + * PLUGGABLE_DEVICE = 4; + */ + PLUGGABLE_DEVICE(4), + UNRECOGNIZED(-1), + ; + + /** + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + * CPU = 1; + */ + public static final int CPU_VALUE = 1; + /** + * GPU = 2; + */ + public static final int GPU_VALUE = 2; + /** + * TPU = 3; + */ + public static final int TPU_VALUE = 3; + /** + * PLUGGABLE_DEVICE = 4; + */ + public static final int PLUGGABLE_DEVICE_VALUE = 4; + + + 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 DeviceType 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 DeviceType forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return CPU; + case 2: return GPU; + case 3: return TPU; + case 4: return PLUGGABLE_DEVICE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + DeviceType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DeviceType findValueByNumber(int number) { + return DeviceType.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 org.tensorflow.proto.ProfilerOptions.ProfileOptions.getDescriptor().getEnumTypes().get(0); + } + + private static final DeviceType[] VALUES = values(); + + public static DeviceType 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 DeviceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:tensorflow.ProfileOptions.DeviceType) + } + + public static final int VERSION_FIELD_NUMBER = 5; + private int version_; + /** + *
+     * Some default value of option are not proto3 default value. Use this version
+     * to determine if we should use default option value instead of proto3
+     * default value.
+     * 
+ * + * uint32 version = 5; + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + + public static final int DEVICE_TYPE_FIELD_NUMBER = 6; + private int deviceType_; + /** + *
+     * Device type to profile/trace: (version >= 1)
+     * DeviceType::UNSPECIFIED: All registered device profiler will be enabled.
+     * DeviceType::CPU: only CPU will be profiled.
+     * DeviceType::GPU: only CPU/GPU will be profiled.
+     * DeviceType::TPU: only CPU/TPU will be profiled.
+     * DeviceType::PLUGGABLE_DEVICE: only CPU/pluggable devices with profilers
+     * will be profiled.
+     * 
+ * + * .tensorflow.ProfileOptions.DeviceType device_type = 6; + * @return The enum numeric value on the wire for deviceType. + */ + @java.lang.Override public int getDeviceTypeValue() { + return deviceType_; + } + /** + *
+     * Device type to profile/trace: (version >= 1)
+     * DeviceType::UNSPECIFIED: All registered device profiler will be enabled.
+     * DeviceType::CPU: only CPU will be profiled.
+     * DeviceType::GPU: only CPU/GPU will be profiled.
+     * DeviceType::TPU: only CPU/TPU will be profiled.
+     * DeviceType::PLUGGABLE_DEVICE: only CPU/pluggable devices with profilers
+     * will be profiled.
+     * 
+ * + * .tensorflow.ProfileOptions.DeviceType device_type = 6; + * @return The deviceType. + */ + @java.lang.Override public org.tensorflow.proto.ProfilerOptions.ProfileOptions.DeviceType getDeviceType() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.ProfilerOptions.ProfileOptions.DeviceType result = org.tensorflow.proto.ProfilerOptions.ProfileOptions.DeviceType.valueOf(deviceType_); + return result == null ? org.tensorflow.proto.ProfilerOptions.ProfileOptions.DeviceType.UNRECOGNIZED : result; + } + + public static final int INCLUDE_DATASET_OPS_FIELD_NUMBER = 1; + private boolean includeDatasetOps_; + /** + *
+     * We don't collect the dataset ops by default for better trace-viewer
+     * scalability. The caller can manually set this field to include the ops.
+     * 
+ * + * bool include_dataset_ops = 1; + * @return The includeDatasetOps. + */ + @java.lang.Override + public boolean getIncludeDatasetOps() { + return includeDatasetOps_; + } + + public static final int HOST_TRACER_LEVEL_FIELD_NUMBER = 2; + private int hostTracerLevel_; + /** + *
+     * Levels of host tracing: (version >= 1)
+     * - Level 0 is used to disable host traces.
+     * - Level 1 enables tracing of only user instrumented (or default) TraceMe.
+     * - Level 2 enables tracing of all level 1 TraceMe(s) and instrumented high
+     *           level program execution details (expensive TF ops, XLA ops, etc).
+     *           This is the default.
+     * - Level 3 enables tracing of all level 2 TraceMe(s) and more verbose
+     *           (low-level) program execution details (cheap TF ops, etc).
+     * 
+ * + * uint32 host_tracer_level = 2; + * @return The hostTracerLevel. + */ + @java.lang.Override + public int getHostTracerLevel() { + return hostTracerLevel_; + } + + public static final int DEVICE_TRACER_LEVEL_FIELD_NUMBER = 3; + private int deviceTracerLevel_; + /** + *
+     * Levels of device tracing: (version >= 1)
+     * - Level 0 is used to disable device traces.
+     * - Level 1 is used to enable device traces.
+     * - More levels might be defined for specific device for controlling the
+     *   verbosity of the trace.
+     * 
+ * + * uint32 device_tracer_level = 3; + * @return The deviceTracerLevel. + */ + @java.lang.Override + public int getDeviceTracerLevel() { + return deviceTracerLevel_; + } + + public static final int PYTHON_TRACER_LEVEL_FIELD_NUMBER = 4; + private int pythonTracerLevel_; + /** + *
+     * Whether enable python function calls tracing. Runtime overhead ensues if
+     * enabled. Default off. (version >= 1)
+     * 
+ * + * uint32 python_tracer_level = 4; + * @return The pythonTracerLevel. + */ + @java.lang.Override + public int getPythonTracerLevel() { + return pythonTracerLevel_; + } + + public static final int ENABLE_HLO_PROTO_FIELD_NUMBER = 7; + private boolean enableHloProto_; + /** + *
+     * Whether serialize hlo_proto when XLA is used. (version >= 1)
+     * 
+ * + * bool enable_hlo_proto = 7; + * @return The enableHloProto. + */ + @java.lang.Override + public boolean getEnableHloProto() { + return enableHloProto_; + } + + public static final int START_TIMESTAMP_NS_FIELD_NUMBER = 8; + private long startTimestampNs_; + /** + *
+     * The local profiler starts profiling at this Unix timestamp in nanoseconds.
+     * 
+ * + * uint64 start_timestamp_ns = 8; + * @return The startTimestampNs. + */ + @java.lang.Override + public long getStartTimestampNs() { + return startTimestampNs_; + } + + public static final int DURATION_MS_FIELD_NUMBER = 9; + private long durationMs_; + /** + *
+     * The local profiler collects `duration_ms` milliseconds of data. If the
+     * value is 0, profiling continues until interrupted.
+     * 
+ * + * uint64 duration_ms = 9; + * @return The durationMs. + */ + @java.lang.Override + public long getDurationMs() { + return durationMs_; + } + + public static final int REPOSITORY_PATH_FIELD_NUMBER = 10; + private volatile java.lang.Object repositoryPath_; + /** + *
+     * Directory to save profile data to. No-op when empty.
+     * 
+ * + * string repository_path = 10; + * @return The repositoryPath. + */ + @java.lang.Override + public java.lang.String getRepositoryPath() { + java.lang.Object ref = repositoryPath_; + 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(); + repositoryPath_ = s; + return s; + } + } + /** + *
+     * Directory to save profile data to. No-op when empty.
+     * 
+ * + * string repository_path = 10; + * @return The bytes for repositoryPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRepositoryPathBytes() { + java.lang.Object ref = repositoryPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + repositoryPath_ = 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 (includeDatasetOps_ != false) { + output.writeBool(1, includeDatasetOps_); + } + if (hostTracerLevel_ != 0) { + output.writeUInt32(2, hostTracerLevel_); + } + if (deviceTracerLevel_ != 0) { + output.writeUInt32(3, deviceTracerLevel_); + } + if (pythonTracerLevel_ != 0) { + output.writeUInt32(4, pythonTracerLevel_); + } + if (version_ != 0) { + output.writeUInt32(5, version_); + } + if (deviceType_ != org.tensorflow.proto.ProfilerOptions.ProfileOptions.DeviceType.UNSPECIFIED.getNumber()) { + output.writeEnum(6, deviceType_); + } + if (enableHloProto_ != false) { + output.writeBool(7, enableHloProto_); + } + if (startTimestampNs_ != 0L) { + output.writeUInt64(8, startTimestampNs_); + } + if (durationMs_ != 0L) { + output.writeUInt64(9, durationMs_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repositoryPath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, repositoryPath_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (includeDatasetOps_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, includeDatasetOps_); + } + if (hostTracerLevel_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, hostTracerLevel_); + } + if (deviceTracerLevel_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, deviceTracerLevel_); + } + if (pythonTracerLevel_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, pythonTracerLevel_); + } + if (version_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, version_); + } + if (deviceType_ != org.tensorflow.proto.ProfilerOptions.ProfileOptions.DeviceType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, deviceType_); + } + if (enableHloProto_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, enableHloProto_); + } + if (startTimestampNs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(8, startTimestampNs_); + } + if (durationMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(9, durationMs_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repositoryPath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, repositoryPath_); + } + 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 org.tensorflow.proto.ProfilerOptions.ProfileOptions)) { + return super.equals(obj); + } + org.tensorflow.proto.ProfilerOptions.ProfileOptions other = (org.tensorflow.proto.ProfilerOptions.ProfileOptions) obj; + + if (getVersion() + != other.getVersion()) return false; + if (deviceType_ != other.deviceType_) return false; + if (getIncludeDatasetOps() + != other.getIncludeDatasetOps()) return false; + if (getHostTracerLevel() + != other.getHostTracerLevel()) return false; + if (getDeviceTracerLevel() + != other.getDeviceTracerLevel()) return false; + if (getPythonTracerLevel() + != other.getPythonTracerLevel()) return false; + if (getEnableHloProto() + != other.getEnableHloProto()) return false; + if (getStartTimestampNs() + != other.getStartTimestampNs()) return false; + if (getDurationMs() + != other.getDurationMs()) return false; + if (!getRepositoryPath() + .equals(other.getRepositoryPath())) 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) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion(); + hash = (37 * hash) + DEVICE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + deviceType_; + hash = (37 * hash) + INCLUDE_DATASET_OPS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIncludeDatasetOps()); + hash = (37 * hash) + HOST_TRACER_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getHostTracerLevel(); + hash = (37 * hash) + DEVICE_TRACER_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getDeviceTracerLevel(); + hash = (37 * hash) + PYTHON_TRACER_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getPythonTracerLevel(); + hash = (37 * hash) + ENABLE_HLO_PROTO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableHloProto()); + hash = (37 * hash) + START_TIMESTAMP_NS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStartTimestampNs()); + hash = (37 * hash) + DURATION_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDurationMs()); + hash = (37 * hash) + REPOSITORY_PATH_FIELD_NUMBER; + hash = (53 * hash) + getRepositoryPath().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.ProfilerOptions.ProfileOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ProfilerOptions.ProfileOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ProfilerOptions.ProfileOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ProfilerOptions.ProfileOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ProfilerOptions.ProfileOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ProfilerOptions.ProfileOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ProfilerOptions.ProfileOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ProfilerOptions.ProfileOptions 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 org.tensorflow.proto.ProfilerOptions.ProfileOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ProfilerOptions.ProfileOptions 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 org.tensorflow.proto.ProfilerOptions.ProfileOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ProfilerOptions.ProfileOptions 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(org.tensorflow.proto.ProfilerOptions.ProfileOptions 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; + } + /** + *
+     * Next ID: 11
+     * 
+ * + * Protobuf type {@code tensorflow.ProfileOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.ProfileOptions) + org.tensorflow.proto.ProfilerOptions.ProfileOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ProfilerOptions.internal_static_tensorflow_ProfileOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ProfilerOptions.internal_static_tensorflow_ProfileOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ProfilerOptions.ProfileOptions.class, org.tensorflow.proto.ProfilerOptions.ProfileOptions.Builder.class); + } + + // Construct using org.tensorflow.proto.ProfilerOptions.ProfileOptions.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = 0; + + deviceType_ = 0; + + includeDatasetOps_ = false; + + hostTracerLevel_ = 0; + + deviceTracerLevel_ = 0; + + pythonTracerLevel_ = 0; + + enableHloProto_ = false; + + startTimestampNs_ = 0L; + + durationMs_ = 0L; + + repositoryPath_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.ProfilerOptions.internal_static_tensorflow_ProfileOptions_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.ProfilerOptions.ProfileOptions getDefaultInstanceForType() { + return org.tensorflow.proto.ProfilerOptions.ProfileOptions.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.ProfilerOptions.ProfileOptions build() { + org.tensorflow.proto.ProfilerOptions.ProfileOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.ProfilerOptions.ProfileOptions buildPartial() { + org.tensorflow.proto.ProfilerOptions.ProfileOptions result = new org.tensorflow.proto.ProfilerOptions.ProfileOptions(this); + result.version_ = version_; + result.deviceType_ = deviceType_; + result.includeDatasetOps_ = includeDatasetOps_; + result.hostTracerLevel_ = hostTracerLevel_; + result.deviceTracerLevel_ = deviceTracerLevel_; + result.pythonTracerLevel_ = pythonTracerLevel_; + result.enableHloProto_ = enableHloProto_; + result.startTimestampNs_ = startTimestampNs_; + result.durationMs_ = durationMs_; + result.repositoryPath_ = repositoryPath_; + 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 org.tensorflow.proto.ProfilerOptions.ProfileOptions) { + return mergeFrom((org.tensorflow.proto.ProfilerOptions.ProfileOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.ProfilerOptions.ProfileOptions other) { + if (other == org.tensorflow.proto.ProfilerOptions.ProfileOptions.getDefaultInstance()) return this; + if (other.getVersion() != 0) { + setVersion(other.getVersion()); + } + if (other.deviceType_ != 0) { + setDeviceTypeValue(other.getDeviceTypeValue()); + } + if (other.getIncludeDatasetOps() != false) { + setIncludeDatasetOps(other.getIncludeDatasetOps()); + } + if (other.getHostTracerLevel() != 0) { + setHostTracerLevel(other.getHostTracerLevel()); + } + if (other.getDeviceTracerLevel() != 0) { + setDeviceTracerLevel(other.getDeviceTracerLevel()); + } + if (other.getPythonTracerLevel() != 0) { + setPythonTracerLevel(other.getPythonTracerLevel()); + } + if (other.getEnableHloProto() != false) { + setEnableHloProto(other.getEnableHloProto()); + } + if (other.getStartTimestampNs() != 0L) { + setStartTimestampNs(other.getStartTimestampNs()); + } + if (other.getDurationMs() != 0L) { + setDurationMs(other.getDurationMs()); + } + if (!other.getRepositoryPath().isEmpty()) { + repositoryPath_ = other.repositoryPath_; + 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 8: { + includeDatasetOps_ = input.readBool(); + + break; + } // case 8 + case 16: { + hostTracerLevel_ = input.readUInt32(); + + break; + } // case 16 + case 24: { + deviceTracerLevel_ = input.readUInt32(); + + break; + } // case 24 + case 32: { + pythonTracerLevel_ = input.readUInt32(); + + break; + } // case 32 + case 40: { + version_ = input.readUInt32(); + + break; + } // case 40 + case 48: { + deviceType_ = input.readEnum(); + + break; + } // case 48 + case 56: { + enableHloProto_ = input.readBool(); + + break; + } // case 56 + case 64: { + startTimestampNs_ = input.readUInt64(); + + break; + } // case 64 + case 72: { + durationMs_ = input.readUInt64(); + + break; + } // case 72 + case 82: { + repositoryPath_ = input.readStringRequireUtf8(); + + break; + } // case 82 + 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 version_ ; + /** + *
+       * Some default value of option are not proto3 default value. Use this version
+       * to determine if we should use default option value instead of proto3
+       * default value.
+       * 
+ * + * uint32 version = 5; + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + /** + *
+       * Some default value of option are not proto3 default value. Use this version
+       * to determine if we should use default option value instead of proto3
+       * default value.
+       * 
+ * + * uint32 version = 5; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(int value) { + + version_ = value; + onChanged(); + return this; + } + /** + *
+       * Some default value of option are not proto3 default value. Use this version
+       * to determine if we should use default option value instead of proto3
+       * default value.
+       * 
+ * + * uint32 version = 5; + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = 0; + onChanged(); + return this; + } + + private int deviceType_ = 0; + /** + *
+       * Device type to profile/trace: (version >= 1)
+       * DeviceType::UNSPECIFIED: All registered device profiler will be enabled.
+       * DeviceType::CPU: only CPU will be profiled.
+       * DeviceType::GPU: only CPU/GPU will be profiled.
+       * DeviceType::TPU: only CPU/TPU will be profiled.
+       * DeviceType::PLUGGABLE_DEVICE: only CPU/pluggable devices with profilers
+       * will be profiled.
+       * 
+ * + * .tensorflow.ProfileOptions.DeviceType device_type = 6; + * @return The enum numeric value on the wire for deviceType. + */ + @java.lang.Override public int getDeviceTypeValue() { + return deviceType_; + } + /** + *
+       * Device type to profile/trace: (version >= 1)
+       * DeviceType::UNSPECIFIED: All registered device profiler will be enabled.
+       * DeviceType::CPU: only CPU will be profiled.
+       * DeviceType::GPU: only CPU/GPU will be profiled.
+       * DeviceType::TPU: only CPU/TPU will be profiled.
+       * DeviceType::PLUGGABLE_DEVICE: only CPU/pluggable devices with profilers
+       * will be profiled.
+       * 
+ * + * .tensorflow.ProfileOptions.DeviceType device_type = 6; + * @param value The enum numeric value on the wire for deviceType to set. + * @return This builder for chaining. + */ + public Builder setDeviceTypeValue(int value) { + + deviceType_ = value; + onChanged(); + return this; + } + /** + *
+       * Device type to profile/trace: (version >= 1)
+       * DeviceType::UNSPECIFIED: All registered device profiler will be enabled.
+       * DeviceType::CPU: only CPU will be profiled.
+       * DeviceType::GPU: only CPU/GPU will be profiled.
+       * DeviceType::TPU: only CPU/TPU will be profiled.
+       * DeviceType::PLUGGABLE_DEVICE: only CPU/pluggable devices with profilers
+       * will be profiled.
+       * 
+ * + * .tensorflow.ProfileOptions.DeviceType device_type = 6; + * @return The deviceType. + */ + @java.lang.Override + public org.tensorflow.proto.ProfilerOptions.ProfileOptions.DeviceType getDeviceType() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.ProfilerOptions.ProfileOptions.DeviceType result = org.tensorflow.proto.ProfilerOptions.ProfileOptions.DeviceType.valueOf(deviceType_); + return result == null ? org.tensorflow.proto.ProfilerOptions.ProfileOptions.DeviceType.UNRECOGNIZED : result; + } + /** + *
+       * Device type to profile/trace: (version >= 1)
+       * DeviceType::UNSPECIFIED: All registered device profiler will be enabled.
+       * DeviceType::CPU: only CPU will be profiled.
+       * DeviceType::GPU: only CPU/GPU will be profiled.
+       * DeviceType::TPU: only CPU/TPU will be profiled.
+       * DeviceType::PLUGGABLE_DEVICE: only CPU/pluggable devices with profilers
+       * will be profiled.
+       * 
+ * + * .tensorflow.ProfileOptions.DeviceType device_type = 6; + * @param value The deviceType to set. + * @return This builder for chaining. + */ + public Builder setDeviceType(org.tensorflow.proto.ProfilerOptions.ProfileOptions.DeviceType value) { + if (value == null) { + throw new NullPointerException(); + } + + deviceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Device type to profile/trace: (version >= 1)
+       * DeviceType::UNSPECIFIED: All registered device profiler will be enabled.
+       * DeviceType::CPU: only CPU will be profiled.
+       * DeviceType::GPU: only CPU/GPU will be profiled.
+       * DeviceType::TPU: only CPU/TPU will be profiled.
+       * DeviceType::PLUGGABLE_DEVICE: only CPU/pluggable devices with profilers
+       * will be profiled.
+       * 
+ * + * .tensorflow.ProfileOptions.DeviceType device_type = 6; + * @return This builder for chaining. + */ + public Builder clearDeviceType() { + + deviceType_ = 0; + onChanged(); + return this; + } + + private boolean includeDatasetOps_ ; + /** + *
+       * We don't collect the dataset ops by default for better trace-viewer
+       * scalability. The caller can manually set this field to include the ops.
+       * 
+ * + * bool include_dataset_ops = 1; + * @return The includeDatasetOps. + */ + @java.lang.Override + public boolean getIncludeDatasetOps() { + return includeDatasetOps_; + } + /** + *
+       * We don't collect the dataset ops by default for better trace-viewer
+       * scalability. The caller can manually set this field to include the ops.
+       * 
+ * + * bool include_dataset_ops = 1; + * @param value The includeDatasetOps to set. + * @return This builder for chaining. + */ + public Builder setIncludeDatasetOps(boolean value) { + + includeDatasetOps_ = value; + onChanged(); + return this; + } + /** + *
+       * We don't collect the dataset ops by default for better trace-viewer
+       * scalability. The caller can manually set this field to include the ops.
+       * 
+ * + * bool include_dataset_ops = 1; + * @return This builder for chaining. + */ + public Builder clearIncludeDatasetOps() { + + includeDatasetOps_ = false; + onChanged(); + return this; + } + + private int hostTracerLevel_ ; + /** + *
+       * Levels of host tracing: (version >= 1)
+       * - Level 0 is used to disable host traces.
+       * - Level 1 enables tracing of only user instrumented (or default) TraceMe.
+       * - Level 2 enables tracing of all level 1 TraceMe(s) and instrumented high
+       *           level program execution details (expensive TF ops, XLA ops, etc).
+       *           This is the default.
+       * - Level 3 enables tracing of all level 2 TraceMe(s) and more verbose
+       *           (low-level) program execution details (cheap TF ops, etc).
+       * 
+ * + * uint32 host_tracer_level = 2; + * @return The hostTracerLevel. + */ + @java.lang.Override + public int getHostTracerLevel() { + return hostTracerLevel_; + } + /** + *
+       * Levels of host tracing: (version >= 1)
+       * - Level 0 is used to disable host traces.
+       * - Level 1 enables tracing of only user instrumented (or default) TraceMe.
+       * - Level 2 enables tracing of all level 1 TraceMe(s) and instrumented high
+       *           level program execution details (expensive TF ops, XLA ops, etc).
+       *           This is the default.
+       * - Level 3 enables tracing of all level 2 TraceMe(s) and more verbose
+       *           (low-level) program execution details (cheap TF ops, etc).
+       * 
+ * + * uint32 host_tracer_level = 2; + * @param value The hostTracerLevel to set. + * @return This builder for chaining. + */ + public Builder setHostTracerLevel(int value) { + + hostTracerLevel_ = value; + onChanged(); + return this; + } + /** + *
+       * Levels of host tracing: (version >= 1)
+       * - Level 0 is used to disable host traces.
+       * - Level 1 enables tracing of only user instrumented (or default) TraceMe.
+       * - Level 2 enables tracing of all level 1 TraceMe(s) and instrumented high
+       *           level program execution details (expensive TF ops, XLA ops, etc).
+       *           This is the default.
+       * - Level 3 enables tracing of all level 2 TraceMe(s) and more verbose
+       *           (low-level) program execution details (cheap TF ops, etc).
+       * 
+ * + * uint32 host_tracer_level = 2; + * @return This builder for chaining. + */ + public Builder clearHostTracerLevel() { + + hostTracerLevel_ = 0; + onChanged(); + return this; + } + + private int deviceTracerLevel_ ; + /** + *
+       * Levels of device tracing: (version >= 1)
+       * - Level 0 is used to disable device traces.
+       * - Level 1 is used to enable device traces.
+       * - More levels might be defined for specific device for controlling the
+       *   verbosity of the trace.
+       * 
+ * + * uint32 device_tracer_level = 3; + * @return The deviceTracerLevel. + */ + @java.lang.Override + public int getDeviceTracerLevel() { + return deviceTracerLevel_; + } + /** + *
+       * Levels of device tracing: (version >= 1)
+       * - Level 0 is used to disable device traces.
+       * - Level 1 is used to enable device traces.
+       * - More levels might be defined for specific device for controlling the
+       *   verbosity of the trace.
+       * 
+ * + * uint32 device_tracer_level = 3; + * @param value The deviceTracerLevel to set. + * @return This builder for chaining. + */ + public Builder setDeviceTracerLevel(int value) { + + deviceTracerLevel_ = value; + onChanged(); + return this; + } + /** + *
+       * Levels of device tracing: (version >= 1)
+       * - Level 0 is used to disable device traces.
+       * - Level 1 is used to enable device traces.
+       * - More levels might be defined for specific device for controlling the
+       *   verbosity of the trace.
+       * 
+ * + * uint32 device_tracer_level = 3; + * @return This builder for chaining. + */ + public Builder clearDeviceTracerLevel() { + + deviceTracerLevel_ = 0; + onChanged(); + return this; + } + + private int pythonTracerLevel_ ; + /** + *
+       * Whether enable python function calls tracing. Runtime overhead ensues if
+       * enabled. Default off. (version >= 1)
+       * 
+ * + * uint32 python_tracer_level = 4; + * @return The pythonTracerLevel. + */ + @java.lang.Override + public int getPythonTracerLevel() { + return pythonTracerLevel_; + } + /** + *
+       * Whether enable python function calls tracing. Runtime overhead ensues if
+       * enabled. Default off. (version >= 1)
+       * 
+ * + * uint32 python_tracer_level = 4; + * @param value The pythonTracerLevel to set. + * @return This builder for chaining. + */ + public Builder setPythonTracerLevel(int value) { + + pythonTracerLevel_ = value; + onChanged(); + return this; + } + /** + *
+       * Whether enable python function calls tracing. Runtime overhead ensues if
+       * enabled. Default off. (version >= 1)
+       * 
+ * + * uint32 python_tracer_level = 4; + * @return This builder for chaining. + */ + public Builder clearPythonTracerLevel() { + + pythonTracerLevel_ = 0; + onChanged(); + return this; + } + + private boolean enableHloProto_ ; + /** + *
+       * Whether serialize hlo_proto when XLA is used. (version >= 1)
+       * 
+ * + * bool enable_hlo_proto = 7; + * @return The enableHloProto. + */ + @java.lang.Override + public boolean getEnableHloProto() { + return enableHloProto_; + } + /** + *
+       * Whether serialize hlo_proto when XLA is used. (version >= 1)
+       * 
+ * + * bool enable_hlo_proto = 7; + * @param value The enableHloProto to set. + * @return This builder for chaining. + */ + public Builder setEnableHloProto(boolean value) { + + enableHloProto_ = value; + onChanged(); + return this; + } + /** + *
+       * Whether serialize hlo_proto when XLA is used. (version >= 1)
+       * 
+ * + * bool enable_hlo_proto = 7; + * @return This builder for chaining. + */ + public Builder clearEnableHloProto() { + + enableHloProto_ = false; + onChanged(); + return this; + } + + private long startTimestampNs_ ; + /** + *
+       * The local profiler starts profiling at this Unix timestamp in nanoseconds.
+       * 
+ * + * uint64 start_timestamp_ns = 8; + * @return The startTimestampNs. + */ + @java.lang.Override + public long getStartTimestampNs() { + return startTimestampNs_; + } + /** + *
+       * The local profiler starts profiling at this Unix timestamp in nanoseconds.
+       * 
+ * + * uint64 start_timestamp_ns = 8; + * @param value The startTimestampNs to set. + * @return This builder for chaining. + */ + public Builder setStartTimestampNs(long value) { + + startTimestampNs_ = value; + onChanged(); + return this; + } + /** + *
+       * The local profiler starts profiling at this Unix timestamp in nanoseconds.
+       * 
+ * + * uint64 start_timestamp_ns = 8; + * @return This builder for chaining. + */ + public Builder clearStartTimestampNs() { + + startTimestampNs_ = 0L; + onChanged(); + return this; + } + + private long durationMs_ ; + /** + *
+       * The local profiler collects `duration_ms` milliseconds of data. If the
+       * value is 0, profiling continues until interrupted.
+       * 
+ * + * uint64 duration_ms = 9; + * @return The durationMs. + */ + @java.lang.Override + public long getDurationMs() { + return durationMs_; + } + /** + *
+       * The local profiler collects `duration_ms` milliseconds of data. If the
+       * value is 0, profiling continues until interrupted.
+       * 
+ * + * uint64 duration_ms = 9; + * @param value The durationMs to set. + * @return This builder for chaining. + */ + public Builder setDurationMs(long value) { + + durationMs_ = value; + onChanged(); + return this; + } + /** + *
+       * The local profiler collects `duration_ms` milliseconds of data. If the
+       * value is 0, profiling continues until interrupted.
+       * 
+ * + * uint64 duration_ms = 9; + * @return This builder for chaining. + */ + public Builder clearDurationMs() { + + durationMs_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object repositoryPath_ = ""; + /** + *
+       * Directory to save profile data to. No-op when empty.
+       * 
+ * + * string repository_path = 10; + * @return The repositoryPath. + */ + public java.lang.String getRepositoryPath() { + java.lang.Object ref = repositoryPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repositoryPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Directory to save profile data to. No-op when empty.
+       * 
+ * + * string repository_path = 10; + * @return The bytes for repositoryPath. + */ + public com.google.protobuf.ByteString + getRepositoryPathBytes() { + java.lang.Object ref = repositoryPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + repositoryPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Directory to save profile data to. No-op when empty.
+       * 
+ * + * string repository_path = 10; + * @param value The repositoryPath to set. + * @return This builder for chaining. + */ + public Builder setRepositoryPath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + repositoryPath_ = value; + onChanged(); + return this; + } + /** + *
+       * Directory to save profile data to. No-op when empty.
+       * 
+ * + * string repository_path = 10; + * @return This builder for chaining. + */ + public Builder clearRepositoryPath() { + + repositoryPath_ = getDefaultInstance().getRepositoryPath(); + onChanged(); + return this; + } + /** + *
+       * Directory to save profile data to. No-op when empty.
+       * 
+ * + * string repository_path = 10; + * @param value The bytes for repositoryPath to set. + * @return This builder for chaining. + */ + public Builder setRepositoryPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + repositoryPath_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.ProfileOptions) + } + + // @@protoc_insertion_point(class_scope:tensorflow.ProfileOptions) + private static final org.tensorflow.proto.ProfilerOptions.ProfileOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.ProfilerOptions.ProfileOptions(); + } + + public static org.tensorflow.proto.ProfilerOptions.ProfileOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProfileOptions 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 org.tensorflow.proto.ProfilerOptions.ProfileOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RemoteProfilerSessionManagerOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.RemoteProfilerSessionManagerOptions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Options for each local profiler.
+     * 
+ * + * .tensorflow.ProfileOptions profiler_options = 1; + * @return Whether the profilerOptions field is set. + */ + boolean hasProfilerOptions(); + /** + *
+     * Options for each local profiler.
+     * 
+ * + * .tensorflow.ProfileOptions profiler_options = 1; + * @return The profilerOptions. + */ + org.tensorflow.proto.ProfilerOptions.ProfileOptions getProfilerOptions(); + /** + *
+     * Options for each local profiler.
+     * 
+ * + * .tensorflow.ProfileOptions profiler_options = 1; + */ + org.tensorflow.proto.ProfilerOptions.ProfileOptionsOrBuilder getProfilerOptionsOrBuilder(); + + /** + *
+     * List of servers to profile. Supported formats: host:port.
+     * 
+ * + * repeated string service_addresses = 2; + * @return A list containing the serviceAddresses. + */ + java.util.List + getServiceAddressesList(); + /** + *
+     * List of servers to profile. Supported formats: host:port.
+     * 
+ * + * repeated string service_addresses = 2; + * @return The count of serviceAddresses. + */ + int getServiceAddressesCount(); + /** + *
+     * List of servers to profile. Supported formats: host:port.
+     * 
+ * + * repeated string service_addresses = 2; + * @param index The index of the element to return. + * @return The serviceAddresses at the given index. + */ + java.lang.String getServiceAddresses(int index); + /** + *
+     * List of servers to profile. Supported formats: host:port.
+     * 
+ * + * repeated string service_addresses = 2; + * @param index The index of the value to return. + * @return The bytes of the serviceAddresses at the given index. + */ + com.google.protobuf.ByteString + getServiceAddressesBytes(int index); + + /** + *
+     * Unix timestamp of when the session was started.
+     * 
+ * + * uint64 session_creation_timestamp_ns = 3; + * @return The sessionCreationTimestampNs. + */ + long getSessionCreationTimestampNs(); + + /** + *
+     * Maximum time (in milliseconds) a profiling session manager waits for all
+     * profilers to finish after issuing gRPC request. If value is 0, session
+     * continues until interrupted. Otherwise, value must be greater than
+     * profiler_options.duration_ms.
+     * 
+ * + * uint64 max_session_duration_ms = 4; + * @return The maxSessionDurationMs. + */ + long getMaxSessionDurationMs(); + + /** + *
+     * Start of profiling is delayed by this much (in milliseconds).
+     * 
+ * + * uint64 delay_ms = 5; + * @return The delayMs. + */ + long getDelayMs(); + } + /** + *
+   * Options for remote profiler session manager.
+   * Next ID: 6
+   * 
+ * + * Protobuf type {@code tensorflow.RemoteProfilerSessionManagerOptions} + */ + public static final class RemoteProfilerSessionManagerOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.RemoteProfilerSessionManagerOptions) + RemoteProfilerSessionManagerOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use RemoteProfilerSessionManagerOptions.newBuilder() to construct. + private RemoteProfilerSessionManagerOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RemoteProfilerSessionManagerOptions() { + serviceAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RemoteProfilerSessionManagerOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ProfilerOptions.internal_static_tensorflow_RemoteProfilerSessionManagerOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ProfilerOptions.internal_static_tensorflow_RemoteProfilerSessionManagerOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions.class, org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions.Builder.class); + } + + public static final int PROFILER_OPTIONS_FIELD_NUMBER = 1; + private org.tensorflow.proto.ProfilerOptions.ProfileOptions profilerOptions_; + /** + *
+     * Options for each local profiler.
+     * 
+ * + * .tensorflow.ProfileOptions profiler_options = 1; + * @return Whether the profilerOptions field is set. + */ + @java.lang.Override + public boolean hasProfilerOptions() { + return profilerOptions_ != null; + } + /** + *
+     * Options for each local profiler.
+     * 
+ * + * .tensorflow.ProfileOptions profiler_options = 1; + * @return The profilerOptions. + */ + @java.lang.Override + public org.tensorflow.proto.ProfilerOptions.ProfileOptions getProfilerOptions() { + return profilerOptions_ == null ? org.tensorflow.proto.ProfilerOptions.ProfileOptions.getDefaultInstance() : profilerOptions_; + } + /** + *
+     * Options for each local profiler.
+     * 
+ * + * .tensorflow.ProfileOptions profiler_options = 1; + */ + @java.lang.Override + public org.tensorflow.proto.ProfilerOptions.ProfileOptionsOrBuilder getProfilerOptionsOrBuilder() { + return getProfilerOptions(); + } + + public static final int SERVICE_ADDRESSES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList serviceAddresses_; + /** + *
+     * List of servers to profile. Supported formats: host:port.
+     * 
+ * + * repeated string service_addresses = 2; + * @return A list containing the serviceAddresses. + */ + public com.google.protobuf.ProtocolStringList + getServiceAddressesList() { + return serviceAddresses_; + } + /** + *
+     * List of servers to profile. Supported formats: host:port.
+     * 
+ * + * repeated string service_addresses = 2; + * @return The count of serviceAddresses. + */ + public int getServiceAddressesCount() { + return serviceAddresses_.size(); + } + /** + *
+     * List of servers to profile. Supported formats: host:port.
+     * 
+ * + * repeated string service_addresses = 2; + * @param index The index of the element to return. + * @return The serviceAddresses at the given index. + */ + public java.lang.String getServiceAddresses(int index) { + return serviceAddresses_.get(index); + } + /** + *
+     * List of servers to profile. Supported formats: host:port.
+     * 
+ * + * repeated string service_addresses = 2; + * @param index The index of the value to return. + * @return The bytes of the serviceAddresses at the given index. + */ + public com.google.protobuf.ByteString + getServiceAddressesBytes(int index) { + return serviceAddresses_.getByteString(index); + } + + public static final int SESSION_CREATION_TIMESTAMP_NS_FIELD_NUMBER = 3; + private long sessionCreationTimestampNs_; + /** + *
+     * Unix timestamp of when the session was started.
+     * 
+ * + * uint64 session_creation_timestamp_ns = 3; + * @return The sessionCreationTimestampNs. + */ + @java.lang.Override + public long getSessionCreationTimestampNs() { + return sessionCreationTimestampNs_; + } + + public static final int MAX_SESSION_DURATION_MS_FIELD_NUMBER = 4; + private long maxSessionDurationMs_; + /** + *
+     * Maximum time (in milliseconds) a profiling session manager waits for all
+     * profilers to finish after issuing gRPC request. If value is 0, session
+     * continues until interrupted. Otherwise, value must be greater than
+     * profiler_options.duration_ms.
+     * 
+ * + * uint64 max_session_duration_ms = 4; + * @return The maxSessionDurationMs. + */ + @java.lang.Override + public long getMaxSessionDurationMs() { + return maxSessionDurationMs_; + } + + public static final int DELAY_MS_FIELD_NUMBER = 5; + private long delayMs_; + /** + *
+     * Start of profiling is delayed by this much (in milliseconds).
+     * 
+ * + * uint64 delay_ms = 5; + * @return The delayMs. + */ + @java.lang.Override + public long getDelayMs() { + return delayMs_; + } + + 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 (profilerOptions_ != null) { + output.writeMessage(1, getProfilerOptions()); + } + for (int i = 0; i < serviceAddresses_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAddresses_.getRaw(i)); + } + if (sessionCreationTimestampNs_ != 0L) { + output.writeUInt64(3, sessionCreationTimestampNs_); + } + if (maxSessionDurationMs_ != 0L) { + output.writeUInt64(4, maxSessionDurationMs_); + } + if (delayMs_ != 0L) { + output.writeUInt64(5, delayMs_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (profilerOptions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProfilerOptions()); + } + { + int dataSize = 0; + for (int i = 0; i < serviceAddresses_.size(); i++) { + dataSize += computeStringSizeNoTag(serviceAddresses_.getRaw(i)); + } + size += dataSize; + size += 1 * getServiceAddressesList().size(); + } + if (sessionCreationTimestampNs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, sessionCreationTimestampNs_); + } + if (maxSessionDurationMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, maxSessionDurationMs_); + } + if (delayMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(5, delayMs_); + } + 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 org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions)) { + return super.equals(obj); + } + org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions other = (org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions) obj; + + if (hasProfilerOptions() != other.hasProfilerOptions()) return false; + if (hasProfilerOptions()) { + if (!getProfilerOptions() + .equals(other.getProfilerOptions())) return false; + } + if (!getServiceAddressesList() + .equals(other.getServiceAddressesList())) return false; + if (getSessionCreationTimestampNs() + != other.getSessionCreationTimestampNs()) return false; + if (getMaxSessionDurationMs() + != other.getMaxSessionDurationMs()) return false; + if (getDelayMs() + != other.getDelayMs()) 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 (hasProfilerOptions()) { + hash = (37 * hash) + PROFILER_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getProfilerOptions().hashCode(); + } + if (getServiceAddressesCount() > 0) { + hash = (37 * hash) + SERVICE_ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getServiceAddressesList().hashCode(); + } + hash = (37 * hash) + SESSION_CREATION_TIMESTAMP_NS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSessionCreationTimestampNs()); + hash = (37 * hash) + MAX_SESSION_DURATION_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxSessionDurationMs()); + hash = (37 * hash) + DELAY_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDelayMs()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions 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 org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions 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 org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions 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(org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions 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; + } + /** + *
+     * Options for remote profiler session manager.
+     * Next ID: 6
+     * 
+ * + * Protobuf type {@code tensorflow.RemoteProfilerSessionManagerOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.RemoteProfilerSessionManagerOptions) + org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ProfilerOptions.internal_static_tensorflow_RemoteProfilerSessionManagerOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ProfilerOptions.internal_static_tensorflow_RemoteProfilerSessionManagerOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions.class, org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions.Builder.class); + } + + // Construct using org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (profilerOptionsBuilder_ == null) { + profilerOptions_ = null; + } else { + profilerOptions_ = null; + profilerOptionsBuilder_ = null; + } + serviceAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + sessionCreationTimestampNs_ = 0L; + + maxSessionDurationMs_ = 0L; + + delayMs_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.ProfilerOptions.internal_static_tensorflow_RemoteProfilerSessionManagerOptions_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions getDefaultInstanceForType() { + return org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions build() { + org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions buildPartial() { + org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions result = new org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions(this); + int from_bitField0_ = bitField0_; + if (profilerOptionsBuilder_ == null) { + result.profilerOptions_ = profilerOptions_; + } else { + result.profilerOptions_ = profilerOptionsBuilder_.build(); + } + if (((bitField0_ & 0x00000001) != 0)) { + serviceAddresses_ = serviceAddresses_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.serviceAddresses_ = serviceAddresses_; + result.sessionCreationTimestampNs_ = sessionCreationTimestampNs_; + result.maxSessionDurationMs_ = maxSessionDurationMs_; + result.delayMs_ = delayMs_; + 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 org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions) { + return mergeFrom((org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions other) { + if (other == org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions.getDefaultInstance()) return this; + if (other.hasProfilerOptions()) { + mergeProfilerOptions(other.getProfilerOptions()); + } + if (!other.serviceAddresses_.isEmpty()) { + if (serviceAddresses_.isEmpty()) { + serviceAddresses_ = other.serviceAddresses_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureServiceAddressesIsMutable(); + serviceAddresses_.addAll(other.serviceAddresses_); + } + onChanged(); + } + if (other.getSessionCreationTimestampNs() != 0L) { + setSessionCreationTimestampNs(other.getSessionCreationTimestampNs()); + } + if (other.getMaxSessionDurationMs() != 0L) { + setMaxSessionDurationMs(other.getMaxSessionDurationMs()); + } + if (other.getDelayMs() != 0L) { + setDelayMs(other.getDelayMs()); + } + 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( + getProfilerOptionsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureServiceAddressesIsMutable(); + serviceAddresses_.add(s); + break; + } // case 18 + case 24: { + sessionCreationTimestampNs_ = input.readUInt64(); + + break; + } // case 24 + case 32: { + maxSessionDurationMs_ = input.readUInt64(); + + break; + } // case 32 + case 40: { + delayMs_ = input.readUInt64(); + + break; + } // case 40 + 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 org.tensorflow.proto.ProfilerOptions.ProfileOptions profilerOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.ProfilerOptions.ProfileOptions, org.tensorflow.proto.ProfilerOptions.ProfileOptions.Builder, org.tensorflow.proto.ProfilerOptions.ProfileOptionsOrBuilder> profilerOptionsBuilder_; + /** + *
+       * Options for each local profiler.
+       * 
+ * + * .tensorflow.ProfileOptions profiler_options = 1; + * @return Whether the profilerOptions field is set. + */ + public boolean hasProfilerOptions() { + return profilerOptionsBuilder_ != null || profilerOptions_ != null; + } + /** + *
+       * Options for each local profiler.
+       * 
+ * + * .tensorflow.ProfileOptions profiler_options = 1; + * @return The profilerOptions. + */ + public org.tensorflow.proto.ProfilerOptions.ProfileOptions getProfilerOptions() { + if (profilerOptionsBuilder_ == null) { + return profilerOptions_ == null ? org.tensorflow.proto.ProfilerOptions.ProfileOptions.getDefaultInstance() : profilerOptions_; + } else { + return profilerOptionsBuilder_.getMessage(); + } + } + /** + *
+       * Options for each local profiler.
+       * 
+ * + * .tensorflow.ProfileOptions profiler_options = 1; + */ + public Builder setProfilerOptions(org.tensorflow.proto.ProfilerOptions.ProfileOptions value) { + if (profilerOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profilerOptions_ = value; + onChanged(); + } else { + profilerOptionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Options for each local profiler.
+       * 
+ * + * .tensorflow.ProfileOptions profiler_options = 1; + */ + public Builder setProfilerOptions( + org.tensorflow.proto.ProfilerOptions.ProfileOptions.Builder builderForValue) { + if (profilerOptionsBuilder_ == null) { + profilerOptions_ = builderForValue.build(); + onChanged(); + } else { + profilerOptionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Options for each local profiler.
+       * 
+ * + * .tensorflow.ProfileOptions profiler_options = 1; + */ + public Builder mergeProfilerOptions(org.tensorflow.proto.ProfilerOptions.ProfileOptions value) { + if (profilerOptionsBuilder_ == null) { + if (profilerOptions_ != null) { + profilerOptions_ = + org.tensorflow.proto.ProfilerOptions.ProfileOptions.newBuilder(profilerOptions_).mergeFrom(value).buildPartial(); + } else { + profilerOptions_ = value; + } + onChanged(); + } else { + profilerOptionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Options for each local profiler.
+       * 
+ * + * .tensorflow.ProfileOptions profiler_options = 1; + */ + public Builder clearProfilerOptions() { + if (profilerOptionsBuilder_ == null) { + profilerOptions_ = null; + onChanged(); + } else { + profilerOptions_ = null; + profilerOptionsBuilder_ = null; + } + + return this; + } + /** + *
+       * Options for each local profiler.
+       * 
+ * + * .tensorflow.ProfileOptions profiler_options = 1; + */ + public org.tensorflow.proto.ProfilerOptions.ProfileOptions.Builder getProfilerOptionsBuilder() { + + onChanged(); + return getProfilerOptionsFieldBuilder().getBuilder(); + } + /** + *
+       * Options for each local profiler.
+       * 
+ * + * .tensorflow.ProfileOptions profiler_options = 1; + */ + public org.tensorflow.proto.ProfilerOptions.ProfileOptionsOrBuilder getProfilerOptionsOrBuilder() { + if (profilerOptionsBuilder_ != null) { + return profilerOptionsBuilder_.getMessageOrBuilder(); + } else { + return profilerOptions_ == null ? + org.tensorflow.proto.ProfilerOptions.ProfileOptions.getDefaultInstance() : profilerOptions_; + } + } + /** + *
+       * Options for each local profiler.
+       * 
+ * + * .tensorflow.ProfileOptions profiler_options = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.ProfilerOptions.ProfileOptions, org.tensorflow.proto.ProfilerOptions.ProfileOptions.Builder, org.tensorflow.proto.ProfilerOptions.ProfileOptionsOrBuilder> + getProfilerOptionsFieldBuilder() { + if (profilerOptionsBuilder_ == null) { + profilerOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.ProfilerOptions.ProfileOptions, org.tensorflow.proto.ProfilerOptions.ProfileOptions.Builder, org.tensorflow.proto.ProfilerOptions.ProfileOptionsOrBuilder>( + getProfilerOptions(), + getParentForChildren(), + isClean()); + profilerOptions_ = null; + } + return profilerOptionsBuilder_; + } + + private com.google.protobuf.LazyStringList serviceAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureServiceAddressesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + serviceAddresses_ = new com.google.protobuf.LazyStringArrayList(serviceAddresses_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * List of servers to profile. Supported formats: host:port.
+       * 
+ * + * repeated string service_addresses = 2; + * @return A list containing the serviceAddresses. + */ + public com.google.protobuf.ProtocolStringList + getServiceAddressesList() { + return serviceAddresses_.getUnmodifiableView(); + } + /** + *
+       * List of servers to profile. Supported formats: host:port.
+       * 
+ * + * repeated string service_addresses = 2; + * @return The count of serviceAddresses. + */ + public int getServiceAddressesCount() { + return serviceAddresses_.size(); + } + /** + *
+       * List of servers to profile. Supported formats: host:port.
+       * 
+ * + * repeated string service_addresses = 2; + * @param index The index of the element to return. + * @return The serviceAddresses at the given index. + */ + public java.lang.String getServiceAddresses(int index) { + return serviceAddresses_.get(index); + } + /** + *
+       * List of servers to profile. Supported formats: host:port.
+       * 
+ * + * repeated string service_addresses = 2; + * @param index The index of the value to return. + * @return The bytes of the serviceAddresses at the given index. + */ + public com.google.protobuf.ByteString + getServiceAddressesBytes(int index) { + return serviceAddresses_.getByteString(index); + } + /** + *
+       * List of servers to profile. Supported formats: host:port.
+       * 
+ * + * repeated string service_addresses = 2; + * @param index The index to set the value at. + * @param value The serviceAddresses to set. + * @return This builder for chaining. + */ + public Builder setServiceAddresses( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureServiceAddressesIsMutable(); + serviceAddresses_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * List of servers to profile. Supported formats: host:port.
+       * 
+ * + * repeated string service_addresses = 2; + * @param value The serviceAddresses to add. + * @return This builder for chaining. + */ + public Builder addServiceAddresses( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureServiceAddressesIsMutable(); + serviceAddresses_.add(value); + onChanged(); + return this; + } + /** + *
+       * List of servers to profile. Supported formats: host:port.
+       * 
+ * + * repeated string service_addresses = 2; + * @param values The serviceAddresses to add. + * @return This builder for chaining. + */ + public Builder addAllServiceAddresses( + java.lang.Iterable values) { + ensureServiceAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serviceAddresses_); + onChanged(); + return this; + } + /** + *
+       * List of servers to profile. Supported formats: host:port.
+       * 
+ * + * repeated string service_addresses = 2; + * @return This builder for chaining. + */ + public Builder clearServiceAddresses() { + serviceAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * List of servers to profile. Supported formats: host:port.
+       * 
+ * + * repeated string service_addresses = 2; + * @param value The bytes of the serviceAddresses to add. + * @return This builder for chaining. + */ + public Builder addServiceAddressesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureServiceAddressesIsMutable(); + serviceAddresses_.add(value); + onChanged(); + return this; + } + + private long sessionCreationTimestampNs_ ; + /** + *
+       * Unix timestamp of when the session was started.
+       * 
+ * + * uint64 session_creation_timestamp_ns = 3; + * @return The sessionCreationTimestampNs. + */ + @java.lang.Override + public long getSessionCreationTimestampNs() { + return sessionCreationTimestampNs_; + } + /** + *
+       * Unix timestamp of when the session was started.
+       * 
+ * + * uint64 session_creation_timestamp_ns = 3; + * @param value The sessionCreationTimestampNs to set. + * @return This builder for chaining. + */ + public Builder setSessionCreationTimestampNs(long value) { + + sessionCreationTimestampNs_ = value; + onChanged(); + return this; + } + /** + *
+       * Unix timestamp of when the session was started.
+       * 
+ * + * uint64 session_creation_timestamp_ns = 3; + * @return This builder for chaining. + */ + public Builder clearSessionCreationTimestampNs() { + + sessionCreationTimestampNs_ = 0L; + onChanged(); + return this; + } + + private long maxSessionDurationMs_ ; + /** + *
+       * Maximum time (in milliseconds) a profiling session manager waits for all
+       * profilers to finish after issuing gRPC request. If value is 0, session
+       * continues until interrupted. Otherwise, value must be greater than
+       * profiler_options.duration_ms.
+       * 
+ * + * uint64 max_session_duration_ms = 4; + * @return The maxSessionDurationMs. + */ + @java.lang.Override + public long getMaxSessionDurationMs() { + return maxSessionDurationMs_; + } + /** + *
+       * Maximum time (in milliseconds) a profiling session manager waits for all
+       * profilers to finish after issuing gRPC request. If value is 0, session
+       * continues until interrupted. Otherwise, value must be greater than
+       * profiler_options.duration_ms.
+       * 
+ * + * uint64 max_session_duration_ms = 4; + * @param value The maxSessionDurationMs to set. + * @return This builder for chaining. + */ + public Builder setMaxSessionDurationMs(long value) { + + maxSessionDurationMs_ = value; + onChanged(); + return this; + } + /** + *
+       * Maximum time (in milliseconds) a profiling session manager waits for all
+       * profilers to finish after issuing gRPC request. If value is 0, session
+       * continues until interrupted. Otherwise, value must be greater than
+       * profiler_options.duration_ms.
+       * 
+ * + * uint64 max_session_duration_ms = 4; + * @return This builder for chaining. + */ + public Builder clearMaxSessionDurationMs() { + + maxSessionDurationMs_ = 0L; + onChanged(); + return this; + } + + private long delayMs_ ; + /** + *
+       * Start of profiling is delayed by this much (in milliseconds).
+       * 
+ * + * uint64 delay_ms = 5; + * @return The delayMs. + */ + @java.lang.Override + public long getDelayMs() { + return delayMs_; + } + /** + *
+       * Start of profiling is delayed by this much (in milliseconds).
+       * 
+ * + * uint64 delay_ms = 5; + * @param value The delayMs to set. + * @return This builder for chaining. + */ + public Builder setDelayMs(long value) { + + delayMs_ = value; + onChanged(); + return this; + } + /** + *
+       * Start of profiling is delayed by this much (in milliseconds).
+       * 
+ * + * uint64 delay_ms = 5; + * @return This builder for chaining. + */ + public Builder clearDelayMs() { + + delayMs_ = 0L; + 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:tensorflow.RemoteProfilerSessionManagerOptions) + } + + // @@protoc_insertion_point(class_scope:tensorflow.RemoteProfilerSessionManagerOptions) + private static final org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions(); + } + + public static org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoteProfilerSessionManagerOptions 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 org.tensorflow.proto.ProfilerOptions.RemoteProfilerSessionManagerOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_ProfileOptions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_ProfileOptions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_RemoteProfilerSessionManagerOptions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_RemoteProfilerSessionManagerOptions_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n7tensorflow/tsl/profiler/protobuf/profi" + + "ler_options.proto\022\ntensorflow\"\203\003\n\016Profil" + + "eOptions\022\017\n\007version\030\005 \001(\r\022:\n\013device_type" + + "\030\006 \001(\0162%.tensorflow.ProfileOptions.Devic" + + "eType\022\033\n\023include_dataset_ops\030\001 \001(\010\022\031\n\021ho" + + "st_tracer_level\030\002 \001(\r\022\033\n\023device_tracer_l" + + "evel\030\003 \001(\r\022\033\n\023python_tracer_level\030\004 \001(\r\022" + + "\030\n\020enable_hlo_proto\030\007 \001(\010\022\032\n\022start_times" + + "tamp_ns\030\010 \001(\004\022\023\n\013duration_ms\030\t \001(\004\022\027\n\017re" + + "pository_path\030\n \001(\t\"N\n\nDeviceType\022\017\n\013UNS" + + "PECIFIED\020\000\022\007\n\003CPU\020\001\022\007\n\003GPU\020\002\022\007\n\003TPU\020\003\022\024\n" + + "\020PLUGGABLE_DEVICE\020\004\"\320\001\n#RemoteProfilerSe" + + "ssionManagerOptions\0224\n\020profiler_options\030" + + "\001 \001(\0132\032.tensorflow.ProfileOptions\022\031\n\021ser" + + "vice_addresses\030\002 \003(\t\022%\n\035session_creation" + + "_timestamp_ns\030\003 \001(\004\022\037\n\027max_session_durat" + + "ion_ms\030\004 \001(\004\022\020\n\010delay_ms\030\005 \001(\004B\026\n\024org.te" + + "nsorflow.protob\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_tensorflow_ProfileOptions_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_ProfileOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_ProfileOptions_descriptor, + new java.lang.String[] { "Version", "DeviceType", "IncludeDatasetOps", "HostTracerLevel", "DeviceTracerLevel", "PythonTracerLevel", "EnableHloProto", "StartTimestampNs", "DurationMs", "RepositoryPath", }); + internal_static_tensorflow_RemoteProfilerSessionManagerOptions_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_tensorflow_RemoteProfilerSessionManagerOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_RemoteProfilerSessionManagerOptions_descriptor, + new java.lang.String[] { "ProfilerOptions", "ServiceAddresses", "SessionCreationTimestampNs", "MaxSessionDurationMs", "DelayMs", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/QueueRunnerDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/QueueRunnerDef.java similarity index 75% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/QueueRunnerDef.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/QueueRunnerDef.java index 8ca69c8f7f2..7bb1bfb66a9 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/QueueRunnerDef.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/QueueRunnerDef.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/queue_runner.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; /** *
@@ -10,7 +10,7 @@
  *
  * Protobuf type {@code tensorflow.QueueRunnerDef}
  */
-public  final class QueueRunnerDef extends
+public final class QueueRunnerDef extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.QueueRunnerDef)
     QueueRunnerDefOrBuilder {
@@ -39,111 +39,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private QueueRunnerDef(
-      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: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            queueName_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              enqueueOpName_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            enqueueOpName_.add(s);
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            closeOpName_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            cancelOpName_ = s;
-            break;
-          }
-          case 40: {
-            int rawValue = input.readEnum();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              queueClosedExceptionTypes_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
-            }
-            queueClosedExceptionTypes_.add(rawValue);
-            break;
-          }
-          case 42: {
-            int length = input.readRawVarint32();
-            int oldLimit = input.pushLimit(length);
-            while(input.getBytesUntilLimit() > 0) {
-              int rawValue = input.readEnum();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                queueClosedExceptionTypes_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              queueClosedExceptionTypes_.add(rawValue);
-            }
-            input.popLimit(oldLimit);
-            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)) {
-        enqueueOpName_ = enqueueOpName_.getUnmodifiableView();
-      }
-      if (((mutable_bitField0_ & 0x00000002) != 0)) {
-        queueClosedExceptionTypes_ = java.util.Collections.unmodifiableList(queueClosedExceptionTypes_);
-      }
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.framework.QueueRunnerProtos.internal_static_tensorflow_QueueRunnerDef_descriptor;
+    return org.tensorflow.proto.QueueRunnerProtos.internal_static_tensorflow_QueueRunnerDef_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.framework.QueueRunnerProtos.internal_static_tensorflow_QueueRunnerDef_fieldAccessorTable
+    return org.tensorflow.proto.QueueRunnerProtos.internal_static_tensorflow_QueueRunnerDef_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.framework.QueueRunnerDef.class, org.tensorflow.proto.framework.QueueRunnerDef.Builder.class);
+            org.tensorflow.proto.QueueRunnerDef.class, org.tensorflow.proto.QueueRunnerDef.Builder.class);
   }
 
   public static final int QUEUE_NAME_FIELD_NUMBER = 1;
@@ -154,7 +60,9 @@ private QueueRunnerDef(
    * 
* * string queue_name = 1; + * @return The queueName. */ + @java.lang.Override public java.lang.String getQueueName() { java.lang.Object ref = queueName_; if (ref instanceof java.lang.String) { @@ -173,7 +81,9 @@ public java.lang.String getQueueName() { * * * string queue_name = 1; + * @return The bytes for queueName. */ + @java.lang.Override public com.google.protobuf.ByteString getQueueNameBytes() { java.lang.Object ref = queueName_; @@ -196,6 +106,7 @@ public java.lang.String getQueueName() { * * * repeated string enqueue_op_name = 2; + * @return A list containing the enqueueOpName. */ public com.google.protobuf.ProtocolStringList getEnqueueOpNameList() { @@ -207,6 +118,7 @@ public java.lang.String getQueueName() { * * * repeated string enqueue_op_name = 2; + * @return The count of enqueueOpName. */ public int getEnqueueOpNameCount() { return enqueueOpName_.size(); @@ -217,6 +129,8 @@ public int getEnqueueOpNameCount() { * * * repeated string enqueue_op_name = 2; + * @param index The index of the element to return. + * @return The enqueueOpName at the given index. */ public java.lang.String getEnqueueOpName(int index) { return enqueueOpName_.get(index); @@ -227,6 +141,8 @@ public java.lang.String getEnqueueOpName(int index) { * * * repeated string enqueue_op_name = 2; + * @param index The index of the value to return. + * @return The bytes of the enqueueOpName at the given index. */ public com.google.protobuf.ByteString getEnqueueOpNameBytes(int index) { @@ -241,7 +157,9 @@ public java.lang.String getEnqueueOpName(int index) { * * * string close_op_name = 3; + * @return The closeOpName. */ + @java.lang.Override public java.lang.String getCloseOpName() { java.lang.Object ref = closeOpName_; if (ref instanceof java.lang.String) { @@ -260,7 +178,9 @@ public java.lang.String getCloseOpName() { * * * string close_op_name = 3; + * @return The bytes for closeOpName. */ + @java.lang.Override public com.google.protobuf.ByteString getCloseOpNameBytes() { java.lang.Object ref = closeOpName_; @@ -283,7 +203,9 @@ public java.lang.String getCloseOpName() { * * * string cancel_op_name = 4; + * @return The cancelOpName. */ + @java.lang.Override public java.lang.String getCancelOpName() { java.lang.Object ref = cancelOpName_; if (ref instanceof java.lang.String) { @@ -302,7 +224,9 @@ public java.lang.String getCancelOpName() { * * * string cancel_op_name = 4; + * @return The bytes for cancelOpName. */ + @java.lang.Override public com.google.protobuf.ByteString getCancelOpNameBytes() { java.lang.Object ref = cancelOpName_; @@ -320,13 +244,13 @@ public java.lang.String getCancelOpName() { public static final int QUEUE_CLOSED_EXCEPTION_TYPES_FIELD_NUMBER = 5; private java.util.List queueClosedExceptionTypes_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, org.tensorflow.proto.framework.Code> queueClosedExceptionTypes_converter_ = + java.lang.Integer, org.tensorflow.proto.error.Code> queueClosedExceptionTypes_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, org.tensorflow.proto.framework.Code>() { - public org.tensorflow.proto.framework.Code convert(java.lang.Integer from) { + java.lang.Integer, org.tensorflow.proto.error.Code>() { + public org.tensorflow.proto.error.Code convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.Code result = org.tensorflow.proto.framework.Code.valueOf(from); - return result == null ? org.tensorflow.proto.framework.Code.UNRECOGNIZED : result; + org.tensorflow.proto.error.Code result = org.tensorflow.proto.error.Code.valueOf(from); + return result == null ? org.tensorflow.proto.error.Code.UNRECOGNIZED : result; } }; /** @@ -336,10 +260,12 @@ public org.tensorflow.proto.framework.Code convert(java.lang.Integer from) { * * * repeated .tensorflow.error.Code queue_closed_exception_types = 5; + * @return A list containing the queueClosedExceptionTypes. */ - public java.util.List getQueueClosedExceptionTypesList() { + @java.lang.Override + public java.util.List getQueueClosedExceptionTypesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, org.tensorflow.proto.framework.Code>(queueClosedExceptionTypes_, queueClosedExceptionTypes_converter_); + java.lang.Integer, org.tensorflow.proto.error.Code>(queueClosedExceptionTypes_, queueClosedExceptionTypes_converter_); } /** *
@@ -348,7 +274,9 @@ public java.util.List getQueueClosedExcepti
    * 
* * repeated .tensorflow.error.Code queue_closed_exception_types = 5; + * @return The count of queueClosedExceptionTypes. */ + @java.lang.Override public int getQueueClosedExceptionTypesCount() { return queueClosedExceptionTypes_.size(); } @@ -359,8 +287,11 @@ public int getQueueClosedExceptionTypesCount() { * * * repeated .tensorflow.error.Code queue_closed_exception_types = 5; + * @param index The index of the element to return. + * @return The queueClosedExceptionTypes at the given index. */ - public org.tensorflow.proto.framework.Code getQueueClosedExceptionTypes(int index) { + @java.lang.Override + public org.tensorflow.proto.error.Code getQueueClosedExceptionTypes(int index) { return queueClosedExceptionTypes_converter_.convert(queueClosedExceptionTypes_.get(index)); } /** @@ -370,7 +301,9 @@ public org.tensorflow.proto.framework.Code getQueueClosedExceptionTypes(int inde * * * repeated .tensorflow.error.Code queue_closed_exception_types = 5; + * @return A list containing the enum numeric values on the wire for queueClosedExceptionTypes. */ + @java.lang.Override public java.util.List getQueueClosedExceptionTypesValueList() { return queueClosedExceptionTypes_; @@ -382,7 +315,10 @@ public org.tensorflow.proto.framework.Code getQueueClosedExceptionTypes(int inde * * * repeated .tensorflow.error.Code queue_closed_exception_types = 5; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of queueClosedExceptionTypes at the given index. */ + @java.lang.Override public int getQueueClosedExceptionTypesValue(int index) { return queueClosedExceptionTypes_.get(index); } @@ -403,16 +339,16 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (!getQueueNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queueName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queueName_); } for (int i = 0; i < enqueueOpName_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, enqueueOpName_.getRaw(i)); } - if (!getCloseOpNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(closeOpName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, closeOpName_); } - if (!getCancelOpNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cancelOpName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, cancelOpName_); } if (getQueueClosedExceptionTypesList().size() > 0) { @@ -422,7 +358,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < queueClosedExceptionTypes_.size(); i++) { output.writeEnumNoTag(queueClosedExceptionTypes_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -431,7 +367,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getQueueNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queueName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queueName_); } { @@ -442,10 +378,10 @@ public int getSerializedSize() { size += dataSize; size += 1 * getEnqueueOpNameList().size(); } - if (!getCloseOpNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(closeOpName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, closeOpName_); } - if (!getCancelOpNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cancelOpName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, cancelOpName_); } { @@ -460,7 +396,7 @@ public int getSerializedSize() { .computeUInt32SizeNoTag(dataSize); }queueClosedExceptionTypesMemoizedSerializedSize = dataSize; } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -470,10 +406,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.QueueRunnerDef)) { + if (!(obj instanceof org.tensorflow.proto.QueueRunnerDef)) { return super.equals(obj); } - org.tensorflow.proto.framework.QueueRunnerDef other = (org.tensorflow.proto.framework.QueueRunnerDef) obj; + org.tensorflow.proto.QueueRunnerDef other = (org.tensorflow.proto.QueueRunnerDef) obj; if (!getQueueName() .equals(other.getQueueName())) return false; @@ -484,7 +420,7 @@ public boolean equals(final java.lang.Object obj) { if (!getCancelOpName() .equals(other.getCancelOpName())) return false; if (!queueClosedExceptionTypes_.equals(other.queueClosedExceptionTypes_)) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -509,74 +445,74 @@ public int hashCode() { hash = (37 * hash) + QUEUE_CLOSED_EXCEPTION_TYPES_FIELD_NUMBER; hash = (53 * hash) + queueClosedExceptionTypes_.hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.QueueRunnerDef parseFrom( + public static org.tensorflow.proto.QueueRunnerDef parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.QueueRunnerDef parseFrom( + public static org.tensorflow.proto.QueueRunnerDef parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.QueueRunnerDef parseFrom( + public static org.tensorflow.proto.QueueRunnerDef parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.QueueRunnerDef parseFrom( + public static org.tensorflow.proto.QueueRunnerDef parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.QueueRunnerDef parseFrom(byte[] data) + public static org.tensorflow.proto.QueueRunnerDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.QueueRunnerDef parseFrom( + public static org.tensorflow.proto.QueueRunnerDef parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.QueueRunnerDef parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.QueueRunnerDef parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.QueueRunnerDef parseFrom( + public static org.tensorflow.proto.QueueRunnerDef 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 org.tensorflow.proto.framework.QueueRunnerDef parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.QueueRunnerDef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.QueueRunnerDef parseDelimitedFrom( + public static org.tensorflow.proto.QueueRunnerDef 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 org.tensorflow.proto.framework.QueueRunnerDef parseFrom( + public static org.tensorflow.proto.QueueRunnerDef parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.QueueRunnerDef parseFrom( + public static org.tensorflow.proto.QueueRunnerDef parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -589,7 +525,7 @@ public static org.tensorflow.proto.framework.QueueRunnerDef parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.QueueRunnerDef prototype) { + public static Builder newBuilder(org.tensorflow.proto.QueueRunnerDef prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -614,34 +550,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.QueueRunnerDef) - org.tensorflow.proto.framework.QueueRunnerDefOrBuilder { + org.tensorflow.proto.QueueRunnerDefOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.QueueRunnerProtos.internal_static_tensorflow_QueueRunnerDef_descriptor; + return org.tensorflow.proto.QueueRunnerProtos.internal_static_tensorflow_QueueRunnerDef_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.QueueRunnerProtos.internal_static_tensorflow_QueueRunnerDef_fieldAccessorTable + return org.tensorflow.proto.QueueRunnerProtos.internal_static_tensorflow_QueueRunnerDef_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.QueueRunnerDef.class, org.tensorflow.proto.framework.QueueRunnerDef.Builder.class); + org.tensorflow.proto.QueueRunnerDef.class, org.tensorflow.proto.QueueRunnerDef.Builder.class); } - // Construct using org.tensorflow.proto.framework.QueueRunnerDef.newBuilder() + // Construct using org.tensorflow.proto.QueueRunnerDef.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -662,17 +593,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.QueueRunnerProtos.internal_static_tensorflow_QueueRunnerDef_descriptor; + return org.tensorflow.proto.QueueRunnerProtos.internal_static_tensorflow_QueueRunnerDef_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.QueueRunnerDef getDefaultInstanceForType() { - return org.tensorflow.proto.framework.QueueRunnerDef.getDefaultInstance(); + public org.tensorflow.proto.QueueRunnerDef getDefaultInstanceForType() { + return org.tensorflow.proto.QueueRunnerDef.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.QueueRunnerDef build() { - org.tensorflow.proto.framework.QueueRunnerDef result = buildPartial(); + public org.tensorflow.proto.QueueRunnerDef build() { + org.tensorflow.proto.QueueRunnerDef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -680,8 +611,8 @@ public org.tensorflow.proto.framework.QueueRunnerDef build() { } @java.lang.Override - public org.tensorflow.proto.framework.QueueRunnerDef buildPartial() { - org.tensorflow.proto.framework.QueueRunnerDef result = new org.tensorflow.proto.framework.QueueRunnerDef(this); + public org.tensorflow.proto.QueueRunnerDef buildPartial() { + org.tensorflow.proto.QueueRunnerDef result = new org.tensorflow.proto.QueueRunnerDef(this); int from_bitField0_ = bitField0_; result.queueName_ = queueName_; if (((bitField0_ & 0x00000001) != 0)) { @@ -734,16 +665,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.QueueRunnerDef) { - return mergeFrom((org.tensorflow.proto.framework.QueueRunnerDef)other); + if (other instanceof org.tensorflow.proto.QueueRunnerDef) { + return mergeFrom((org.tensorflow.proto.QueueRunnerDef)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.QueueRunnerDef other) { - if (other == org.tensorflow.proto.framework.QueueRunnerDef.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.QueueRunnerDef other) { + if (other == org.tensorflow.proto.QueueRunnerDef.getDefaultInstance()) return this; if (!other.getQueueName().isEmpty()) { queueName_ = other.queueName_; onChanged(); @@ -776,7 +707,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.QueueRunnerDef other) { } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -791,17 +722,68 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.QueueRunnerDef parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + queueName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureEnqueueOpNameIsMutable(); + enqueueOpName_.add(s); + break; + } // case 18 + case 26: { + closeOpName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + cancelOpName_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 40: { + int tmpRaw = input.readEnum(); + ensureQueueClosedExceptionTypesIsMutable(); + queueClosedExceptionTypes_.add(tmpRaw); + break; + } // case 40 + case 42: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureQueueClosedExceptionTypesIsMutable(); + queueClosedExceptionTypes_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.tensorflow.proto.framework.QueueRunnerDef) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -813,6 +795,7 @@ public Builder mergeFrom( * * * string queue_name = 1; + * @return The queueName. */ public java.lang.String getQueueName() { java.lang.Object ref = queueName_; @@ -832,6 +815,7 @@ public java.lang.String getQueueName() { * * * string queue_name = 1; + * @return The bytes for queueName. */ public com.google.protobuf.ByteString getQueueNameBytes() { @@ -852,6 +836,8 @@ public java.lang.String getQueueName() { * * * string queue_name = 1; + * @param value The queueName to set. + * @return This builder for chaining. */ public Builder setQueueName( java.lang.String value) { @@ -869,6 +855,7 @@ public Builder setQueueName( * * * string queue_name = 1; + * @return This builder for chaining. */ public Builder clearQueueName() { @@ -882,6 +869,8 @@ public Builder clearQueueName() { * * * string queue_name = 1; + * @param value The bytes for queueName to set. + * @return This builder for chaining. */ public Builder setQueueNameBytes( com.google.protobuf.ByteString value) { @@ -908,6 +897,7 @@ private void ensureEnqueueOpNameIsMutable() { * * * repeated string enqueue_op_name = 2; + * @return A list containing the enqueueOpName. */ public com.google.protobuf.ProtocolStringList getEnqueueOpNameList() { @@ -919,6 +909,7 @@ private void ensureEnqueueOpNameIsMutable() { * * * repeated string enqueue_op_name = 2; + * @return The count of enqueueOpName. */ public int getEnqueueOpNameCount() { return enqueueOpName_.size(); @@ -929,6 +920,8 @@ public int getEnqueueOpNameCount() { * * * repeated string enqueue_op_name = 2; + * @param index The index of the element to return. + * @return The enqueueOpName at the given index. */ public java.lang.String getEnqueueOpName(int index) { return enqueueOpName_.get(index); @@ -939,6 +932,8 @@ public java.lang.String getEnqueueOpName(int index) { * * * repeated string enqueue_op_name = 2; + * @param index The index of the value to return. + * @return The bytes of the enqueueOpName at the given index. */ public com.google.protobuf.ByteString getEnqueueOpNameBytes(int index) { @@ -950,6 +945,9 @@ public java.lang.String getEnqueueOpName(int index) { * * * repeated string enqueue_op_name = 2; + * @param index The index to set the value at. + * @param value The enqueueOpName to set. + * @return This builder for chaining. */ public Builder setEnqueueOpName( int index, java.lang.String value) { @@ -967,6 +965,8 @@ public Builder setEnqueueOpName( * * * repeated string enqueue_op_name = 2; + * @param value The enqueueOpName to add. + * @return This builder for chaining. */ public Builder addEnqueueOpName( java.lang.String value) { @@ -984,6 +984,8 @@ public Builder addEnqueueOpName( * * * repeated string enqueue_op_name = 2; + * @param values The enqueueOpName to add. + * @return This builder for chaining. */ public Builder addAllEnqueueOpName( java.lang.Iterable values) { @@ -999,6 +1001,7 @@ public Builder addAllEnqueueOpName( * * * repeated string enqueue_op_name = 2; + * @return This builder for chaining. */ public Builder clearEnqueueOpName() { enqueueOpName_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1012,6 +1015,8 @@ public Builder clearEnqueueOpName() { * * * repeated string enqueue_op_name = 2; + * @param value The bytes of the enqueueOpName to add. + * @return This builder for chaining. */ public Builder addEnqueueOpNameBytes( com.google.protobuf.ByteString value) { @@ -1032,6 +1037,7 @@ public Builder addEnqueueOpNameBytes( * * * string close_op_name = 3; + * @return The closeOpName. */ public java.lang.String getCloseOpName() { java.lang.Object ref = closeOpName_; @@ -1051,6 +1057,7 @@ public java.lang.String getCloseOpName() { * * * string close_op_name = 3; + * @return The bytes for closeOpName. */ public com.google.protobuf.ByteString getCloseOpNameBytes() { @@ -1071,6 +1078,8 @@ public java.lang.String getCloseOpName() { * * * string close_op_name = 3; + * @param value The closeOpName to set. + * @return This builder for chaining. */ public Builder setCloseOpName( java.lang.String value) { @@ -1088,6 +1097,7 @@ public Builder setCloseOpName( * * * string close_op_name = 3; + * @return This builder for chaining. */ public Builder clearCloseOpName() { @@ -1101,6 +1111,8 @@ public Builder clearCloseOpName() { * * * string close_op_name = 3; + * @param value The bytes for closeOpName to set. + * @return This builder for chaining. */ public Builder setCloseOpNameBytes( com.google.protobuf.ByteString value) { @@ -1121,6 +1133,7 @@ public Builder setCloseOpNameBytes( * * * string cancel_op_name = 4; + * @return The cancelOpName. */ public java.lang.String getCancelOpName() { java.lang.Object ref = cancelOpName_; @@ -1140,6 +1153,7 @@ public java.lang.String getCancelOpName() { * * * string cancel_op_name = 4; + * @return The bytes for cancelOpName. */ public com.google.protobuf.ByteString getCancelOpNameBytes() { @@ -1160,6 +1174,8 @@ public java.lang.String getCancelOpName() { * * * string cancel_op_name = 4; + * @param value The cancelOpName to set. + * @return This builder for chaining. */ public Builder setCancelOpName( java.lang.String value) { @@ -1177,6 +1193,7 @@ public Builder setCancelOpName( * * * string cancel_op_name = 4; + * @return This builder for chaining. */ public Builder clearCancelOpName() { @@ -1190,6 +1207,8 @@ public Builder clearCancelOpName() { * * * string cancel_op_name = 4; + * @param value The bytes for cancelOpName to set. + * @return This builder for chaining. */ public Builder setCancelOpNameBytes( com.google.protobuf.ByteString value) { @@ -1218,10 +1237,11 @@ private void ensureQueueClosedExceptionTypesIsMutable() { * * * repeated .tensorflow.error.Code queue_closed_exception_types = 5; + * @return A list containing the queueClosedExceptionTypes. */ - public java.util.List getQueueClosedExceptionTypesList() { + public java.util.List getQueueClosedExceptionTypesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, org.tensorflow.proto.framework.Code>(queueClosedExceptionTypes_, queueClosedExceptionTypes_converter_); + java.lang.Integer, org.tensorflow.proto.error.Code>(queueClosedExceptionTypes_, queueClosedExceptionTypes_converter_); } /** *
@@ -1230,6 +1250,7 @@ public java.util.List getQueueClosedExcepti
      * 
* * repeated .tensorflow.error.Code queue_closed_exception_types = 5; + * @return The count of queueClosedExceptionTypes. */ public int getQueueClosedExceptionTypesCount() { return queueClosedExceptionTypes_.size(); @@ -1241,8 +1262,10 @@ public int getQueueClosedExceptionTypesCount() { * * * repeated .tensorflow.error.Code queue_closed_exception_types = 5; + * @param index The index of the element to return. + * @return The queueClosedExceptionTypes at the given index. */ - public org.tensorflow.proto.framework.Code getQueueClosedExceptionTypes(int index) { + public org.tensorflow.proto.error.Code getQueueClosedExceptionTypes(int index) { return queueClosedExceptionTypes_converter_.convert(queueClosedExceptionTypes_.get(index)); } /** @@ -1252,9 +1275,12 @@ public org.tensorflow.proto.framework.Code getQueueClosedExceptionTypes(int inde * * * repeated .tensorflow.error.Code queue_closed_exception_types = 5; + * @param index The index to set the value at. + * @param value The queueClosedExceptionTypes to set. + * @return This builder for chaining. */ public Builder setQueueClosedExceptionTypes( - int index, org.tensorflow.proto.framework.Code value) { + int index, org.tensorflow.proto.error.Code value) { if (value == null) { throw new NullPointerException(); } @@ -1270,8 +1296,10 @@ public Builder setQueueClosedExceptionTypes( * * * repeated .tensorflow.error.Code queue_closed_exception_types = 5; + * @param value The queueClosedExceptionTypes to add. + * @return This builder for chaining. */ - public Builder addQueueClosedExceptionTypes(org.tensorflow.proto.framework.Code value) { + public Builder addQueueClosedExceptionTypes(org.tensorflow.proto.error.Code value) { if (value == null) { throw new NullPointerException(); } @@ -1287,11 +1315,13 @@ public Builder addQueueClosedExceptionTypes(org.tensorflow.proto.framework.Code * * * repeated .tensorflow.error.Code queue_closed_exception_types = 5; + * @param values The queueClosedExceptionTypes to add. + * @return This builder for chaining. */ public Builder addAllQueueClosedExceptionTypes( - java.lang.Iterable values) { + java.lang.Iterable values) { ensureQueueClosedExceptionTypesIsMutable(); - for (org.tensorflow.proto.framework.Code value : values) { + for (org.tensorflow.proto.error.Code value : values) { queueClosedExceptionTypes_.add(value.getNumber()); } onChanged(); @@ -1304,6 +1334,7 @@ public Builder addAllQueueClosedExceptionTypes( * * * repeated .tensorflow.error.Code queue_closed_exception_types = 5; + * @return This builder for chaining. */ public Builder clearQueueClosedExceptionTypes() { queueClosedExceptionTypes_ = java.util.Collections.emptyList(); @@ -1318,6 +1349,7 @@ public Builder clearQueueClosedExceptionTypes() { * * * repeated .tensorflow.error.Code queue_closed_exception_types = 5; + * @return A list containing the enum numeric values on the wire for queueClosedExceptionTypes. */ public java.util.List getQueueClosedExceptionTypesValueList() { @@ -1330,6 +1362,8 @@ public Builder clearQueueClosedExceptionTypes() { * * * repeated .tensorflow.error.Code queue_closed_exception_types = 5; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of queueClosedExceptionTypes at the given index. */ public int getQueueClosedExceptionTypesValue(int index) { return queueClosedExceptionTypes_.get(index); @@ -1341,6 +1375,9 @@ public int getQueueClosedExceptionTypesValue(int index) { * * * repeated .tensorflow.error.Code queue_closed_exception_types = 5; + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for queueClosedExceptionTypes to set. + * @return This builder for chaining. */ public Builder setQueueClosedExceptionTypesValue( int index, int value) { @@ -1356,6 +1393,8 @@ public Builder setQueueClosedExceptionTypesValue( * * * repeated .tensorflow.error.Code queue_closed_exception_types = 5; + * @param value The enum numeric value on the wire for queueClosedExceptionTypes to add. + * @return This builder for chaining. */ public Builder addQueueClosedExceptionTypesValue(int value) { ensureQueueClosedExceptionTypesIsMutable(); @@ -1370,6 +1409,8 @@ public Builder addQueueClosedExceptionTypesValue(int value) { * * * repeated .tensorflow.error.Code queue_closed_exception_types = 5; + * @param values The enum numeric values on the wire for queueClosedExceptionTypes to add. + * @return This builder for chaining. */ public Builder addAllQueueClosedExceptionTypesValue( java.lang.Iterable values) { @@ -1397,12 +1438,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.QueueRunnerDef) - private static final org.tensorflow.proto.framework.QueueRunnerDef DEFAULT_INSTANCE; + private static final org.tensorflow.proto.QueueRunnerDef DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.QueueRunnerDef(); + DEFAULT_INSTANCE = new org.tensorflow.proto.QueueRunnerDef(); } - public static org.tensorflow.proto.framework.QueueRunnerDef getDefaultInstance() { + public static org.tensorflow.proto.QueueRunnerDef getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1413,7 +1454,18 @@ public QueueRunnerDef parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new QueueRunnerDef(input, extensionRegistry); + 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(); } }; @@ -1427,7 +1479,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.QueueRunnerDef getDefaultInstanceForType() { + public org.tensorflow.proto.QueueRunnerDef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/QueueRunnerDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/QueueRunnerDefOrBuilder.java new file mode 100644 index 00000000000..1afd741d0db --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/QueueRunnerDefOrBuilder.java @@ -0,0 +1,164 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/queue_runner.proto + +package org.tensorflow.proto; + +public interface QueueRunnerDefOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.QueueRunnerDef) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Queue name.
+   * 
+ * + * string queue_name = 1; + * @return The queueName. + */ + java.lang.String getQueueName(); + /** + *
+   * Queue name.
+   * 
+ * + * string queue_name = 1; + * @return The bytes for queueName. + */ + com.google.protobuf.ByteString + getQueueNameBytes(); + + /** + *
+   * A list of enqueue operations.
+   * 
+ * + * repeated string enqueue_op_name = 2; + * @return A list containing the enqueueOpName. + */ + java.util.List + getEnqueueOpNameList(); + /** + *
+   * A list of enqueue operations.
+   * 
+ * + * repeated string enqueue_op_name = 2; + * @return The count of enqueueOpName. + */ + int getEnqueueOpNameCount(); + /** + *
+   * A list of enqueue operations.
+   * 
+ * + * repeated string enqueue_op_name = 2; + * @param index The index of the element to return. + * @return The enqueueOpName at the given index. + */ + java.lang.String getEnqueueOpName(int index); + /** + *
+   * A list of enqueue operations.
+   * 
+ * + * repeated string enqueue_op_name = 2; + * @param index The index of the value to return. + * @return The bytes of the enqueueOpName at the given index. + */ + com.google.protobuf.ByteString + getEnqueueOpNameBytes(int index); + + /** + *
+   * The operation to run to close the queue.
+   * 
+ * + * string close_op_name = 3; + * @return The closeOpName. + */ + java.lang.String getCloseOpName(); + /** + *
+   * The operation to run to close the queue.
+   * 
+ * + * string close_op_name = 3; + * @return The bytes for closeOpName. + */ + com.google.protobuf.ByteString + getCloseOpNameBytes(); + + /** + *
+   * The operation to run to cancel the queue.
+   * 
+ * + * string cancel_op_name = 4; + * @return The cancelOpName. + */ + java.lang.String getCancelOpName(); + /** + *
+   * The operation to run to cancel the queue.
+   * 
+ * + * string cancel_op_name = 4; + * @return The bytes for cancelOpName. + */ + com.google.protobuf.ByteString + getCancelOpNameBytes(); + + /** + *
+   * A list of exception types considered to signal a safely closed queue
+   * if raised during enqueue operations.
+   * 
+ * + * repeated .tensorflow.error.Code queue_closed_exception_types = 5; + * @return A list containing the queueClosedExceptionTypes. + */ + java.util.List getQueueClosedExceptionTypesList(); + /** + *
+   * A list of exception types considered to signal a safely closed queue
+   * if raised during enqueue operations.
+   * 
+ * + * repeated .tensorflow.error.Code queue_closed_exception_types = 5; + * @return The count of queueClosedExceptionTypes. + */ + int getQueueClosedExceptionTypesCount(); + /** + *
+   * A list of exception types considered to signal a safely closed queue
+   * if raised during enqueue operations.
+   * 
+ * + * repeated .tensorflow.error.Code queue_closed_exception_types = 5; + * @param index The index of the element to return. + * @return The queueClosedExceptionTypes at the given index. + */ + org.tensorflow.proto.error.Code getQueueClosedExceptionTypes(int index); + /** + *
+   * A list of exception types considered to signal a safely closed queue
+   * if raised during enqueue operations.
+   * 
+ * + * repeated .tensorflow.error.Code queue_closed_exception_types = 5; + * @return A list containing the enum numeric values on the wire for queueClosedExceptionTypes. + */ + java.util.List + getQueueClosedExceptionTypesValueList(); + /** + *
+   * A list of exception types considered to signal a safely closed queue
+   * if raised during enqueue operations.
+   * 
+ * + * repeated .tensorflow.error.Code queue_closed_exception_types = 5; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of queueClosedExceptionTypes at the given index. + */ + int getQueueClosedExceptionTypesValue(int index); +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/QueueRunnerProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/QueueRunnerProtos.java similarity index 81% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/QueueRunnerProtos.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/QueueRunnerProtos.java index bebb320cc0f..d1c6c42b5a5 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/QueueRunnerProtos.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/QueueRunnerProtos.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/queue_runner.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public final class QueueRunnerProtos { private QueueRunnerProtos() {} @@ -34,16 +34,16 @@ public static void registerAllExtensions( "\022\022\n\nqueue_name\030\001 \001(\t\022\027\n\017enqueue_op_name\030" + "\002 \003(\t\022\025\n\rclose_op_name\030\003 \001(\t\022\026\n\016cancel_o" + "p_name\030\004 \001(\t\022<\n\034queue_closed_exception_t" + - "ypes\030\005 \003(\0162\026.tensorflow.error.CodeB\217\001\n\036o" + - "rg.tensorflow.proto.frameworkB\021QueueRunn" + - "erProtosP\001ZUgithub.com/tensorflow/tensor" + - "flow/tensorflow/go/core/protobuf/for_cor" + - "e_protos_go_proto\370\001\001b\006proto3" + "ypes\030\005 \003(\0162\026.tensorflow.error.CodeB\205\001\n\024o" + + "rg.tensorflow.protoB\021QueueRunnerProtosP\001" + + "ZUgithub.com/tensorflow/tensorflow/tenso" + + "rflow/go/core/protobuf/for_core_protos_g" + + "o_proto\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.framework.ErrorCodesProtos.getDescriptor(), + org.tensorflow.proto.error.dummy.ErrorCodes.getDescriptor(), }); internal_static_tensorflow_QueueRunnerDef_descriptor = getDescriptor().getMessageTypes().get(0); @@ -51,7 +51,7 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_QueueRunnerDef_descriptor, new java.lang.String[] { "QueueName", "EnqueueOpName", "CloseOpName", "CancelOpName", "QueueClosedExceptionTypes", }); - org.tensorflow.proto.framework.ErrorCodesProtos.getDescriptor(); + org.tensorflow.proto.error.dummy.ErrorCodes.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ReaderBaseProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ReaderBaseProtos.java similarity index 86% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ReaderBaseProtos.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ReaderBaseProtos.java index 3c4e600440b..8031e3d4f4a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ReaderBaseProtos.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ReaderBaseProtos.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/reader_base.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public final class ReaderBaseProtos { private ReaderBaseProtos() {} @@ -32,11 +32,10 @@ public static void registerAllExtensions( "proto\022\ntensorflow\"r\n\017ReaderBaseState\022\024\n\014" + "work_started\030\001 \001(\003\022\025\n\rwork_finished\030\002 \001(" + "\003\022\034\n\024num_records_produced\030\003 \001(\003\022\024\n\014curre" + - "nt_work\030\004 \001(\014B\213\001\n\036org.tensorflow.proto.f" + - "rameworkB\020ReaderBaseProtosP\001ZRgithub.com" + - "/tensorflow/tensorflow/tensorflow/go/cor" + - "e/framework/reader_base_go_proto\370\001\001b\006pro" + - "to3" + "nt_work\030\004 \001(\014B\201\001\n\024org.tensorflow.protoB\020" + + "ReaderBaseProtosP\001ZRgithub.com/tensorflo" + + "w/tensorflow/tensorflow/go/core/framewor" + + "k/reader_base_go_proto\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ReaderBaseState.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ReaderBaseState.java new file mode 100644 index 00000000000..8e51b2c76a2 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ReaderBaseState.java @@ -0,0 +1,674 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/reader_base.proto + +package org.tensorflow.proto; + +/** + *
+ * For serializing and restoring the state of ReaderBase, see
+ * reader_base.h for details.
+ * 
+ * + * Protobuf type {@code tensorflow.ReaderBaseState} + */ +public final class ReaderBaseState extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.ReaderBaseState) + ReaderBaseStateOrBuilder { +private static final long serialVersionUID = 0L; + // Use ReaderBaseState.newBuilder() to construct. + private ReaderBaseState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ReaderBaseState() { + currentWork_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ReaderBaseState(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ReaderBaseProtos.internal_static_tensorflow_ReaderBaseState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ReaderBaseProtos.internal_static_tensorflow_ReaderBaseState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ReaderBaseState.class, org.tensorflow.proto.ReaderBaseState.Builder.class); + } + + public static final int WORK_STARTED_FIELD_NUMBER = 1; + private long workStarted_; + /** + * int64 work_started = 1; + * @return The workStarted. + */ + @java.lang.Override + public long getWorkStarted() { + return workStarted_; + } + + public static final int WORK_FINISHED_FIELD_NUMBER = 2; + private long workFinished_; + /** + * int64 work_finished = 2; + * @return The workFinished. + */ + @java.lang.Override + public long getWorkFinished() { + return workFinished_; + } + + public static final int NUM_RECORDS_PRODUCED_FIELD_NUMBER = 3; + private long numRecordsProduced_; + /** + * int64 num_records_produced = 3; + * @return The numRecordsProduced. + */ + @java.lang.Override + public long getNumRecordsProduced() { + return numRecordsProduced_; + } + + public static final int CURRENT_WORK_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString currentWork_; + /** + * bytes current_work = 4; + * @return The currentWork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCurrentWork() { + return currentWork_; + } + + 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 (workStarted_ != 0L) { + output.writeInt64(1, workStarted_); + } + if (workFinished_ != 0L) { + output.writeInt64(2, workFinished_); + } + if (numRecordsProduced_ != 0L) { + output.writeInt64(3, numRecordsProduced_); + } + if (!currentWork_.isEmpty()) { + output.writeBytes(4, currentWork_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workStarted_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, workStarted_); + } + if (workFinished_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, workFinished_); + } + if (numRecordsProduced_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, numRecordsProduced_); + } + if (!currentWork_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, currentWork_); + } + 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 org.tensorflow.proto.ReaderBaseState)) { + return super.equals(obj); + } + org.tensorflow.proto.ReaderBaseState other = (org.tensorflow.proto.ReaderBaseState) obj; + + if (getWorkStarted() + != other.getWorkStarted()) return false; + if (getWorkFinished() + != other.getWorkFinished()) return false; + if (getNumRecordsProduced() + != other.getNumRecordsProduced()) return false; + if (!getCurrentWork() + .equals(other.getCurrentWork())) 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) + WORK_STARTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getWorkStarted()); + hash = (37 * hash) + WORK_FINISHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getWorkFinished()); + hash = (37 * hash) + NUM_RECORDS_PRODUCED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNumRecordsProduced()); + hash = (37 * hash) + CURRENT_WORK_FIELD_NUMBER; + hash = (53 * hash) + getCurrentWork().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.ReaderBaseState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ReaderBaseState parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ReaderBaseState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ReaderBaseState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ReaderBaseState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ReaderBaseState parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ReaderBaseState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ReaderBaseState 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 org.tensorflow.proto.ReaderBaseState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ReaderBaseState 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 org.tensorflow.proto.ReaderBaseState parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ReaderBaseState 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(org.tensorflow.proto.ReaderBaseState 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; + } + /** + *
+   * For serializing and restoring the state of ReaderBase, see
+   * reader_base.h for details.
+   * 
+ * + * Protobuf type {@code tensorflow.ReaderBaseState} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.ReaderBaseState) + org.tensorflow.proto.ReaderBaseStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ReaderBaseProtos.internal_static_tensorflow_ReaderBaseState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ReaderBaseProtos.internal_static_tensorflow_ReaderBaseState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ReaderBaseState.class, org.tensorflow.proto.ReaderBaseState.Builder.class); + } + + // Construct using org.tensorflow.proto.ReaderBaseState.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + workStarted_ = 0L; + + workFinished_ = 0L; + + numRecordsProduced_ = 0L; + + currentWork_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.ReaderBaseProtos.internal_static_tensorflow_ReaderBaseState_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.ReaderBaseState getDefaultInstanceForType() { + return org.tensorflow.proto.ReaderBaseState.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.ReaderBaseState build() { + org.tensorflow.proto.ReaderBaseState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.ReaderBaseState buildPartial() { + org.tensorflow.proto.ReaderBaseState result = new org.tensorflow.proto.ReaderBaseState(this); + result.workStarted_ = workStarted_; + result.workFinished_ = workFinished_; + result.numRecordsProduced_ = numRecordsProduced_; + result.currentWork_ = currentWork_; + 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 org.tensorflow.proto.ReaderBaseState) { + return mergeFrom((org.tensorflow.proto.ReaderBaseState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.ReaderBaseState other) { + if (other == org.tensorflow.proto.ReaderBaseState.getDefaultInstance()) return this; + if (other.getWorkStarted() != 0L) { + setWorkStarted(other.getWorkStarted()); + } + if (other.getWorkFinished() != 0L) { + setWorkFinished(other.getWorkFinished()); + } + if (other.getNumRecordsProduced() != 0L) { + setNumRecordsProduced(other.getNumRecordsProduced()); + } + if (other.getCurrentWork() != com.google.protobuf.ByteString.EMPTY) { + setCurrentWork(other.getCurrentWork()); + } + 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: { + workStarted_ = input.readInt64(); + + break; + } // case 8 + case 16: { + workFinished_ = input.readInt64(); + + break; + } // case 16 + case 24: { + numRecordsProduced_ = input.readInt64(); + + break; + } // case 24 + case 34: { + currentWork_ = input.readBytes(); + + break; + } // case 34 + 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 long workStarted_ ; + /** + * int64 work_started = 1; + * @return The workStarted. + */ + @java.lang.Override + public long getWorkStarted() { + return workStarted_; + } + /** + * int64 work_started = 1; + * @param value The workStarted to set. + * @return This builder for chaining. + */ + public Builder setWorkStarted(long value) { + + workStarted_ = value; + onChanged(); + return this; + } + /** + * int64 work_started = 1; + * @return This builder for chaining. + */ + public Builder clearWorkStarted() { + + workStarted_ = 0L; + onChanged(); + return this; + } + + private long workFinished_ ; + /** + * int64 work_finished = 2; + * @return The workFinished. + */ + @java.lang.Override + public long getWorkFinished() { + return workFinished_; + } + /** + * int64 work_finished = 2; + * @param value The workFinished to set. + * @return This builder for chaining. + */ + public Builder setWorkFinished(long value) { + + workFinished_ = value; + onChanged(); + return this; + } + /** + * int64 work_finished = 2; + * @return This builder for chaining. + */ + public Builder clearWorkFinished() { + + workFinished_ = 0L; + onChanged(); + return this; + } + + private long numRecordsProduced_ ; + /** + * int64 num_records_produced = 3; + * @return The numRecordsProduced. + */ + @java.lang.Override + public long getNumRecordsProduced() { + return numRecordsProduced_; + } + /** + * int64 num_records_produced = 3; + * @param value The numRecordsProduced to set. + * @return This builder for chaining. + */ + public Builder setNumRecordsProduced(long value) { + + numRecordsProduced_ = value; + onChanged(); + return this; + } + /** + * int64 num_records_produced = 3; + * @return This builder for chaining. + */ + public Builder clearNumRecordsProduced() { + + numRecordsProduced_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString currentWork_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes current_work = 4; + * @return The currentWork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCurrentWork() { + return currentWork_; + } + /** + * bytes current_work = 4; + * @param value The currentWork to set. + * @return This builder for chaining. + */ + public Builder setCurrentWork(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + currentWork_ = value; + onChanged(); + return this; + } + /** + * bytes current_work = 4; + * @return This builder for chaining. + */ + public Builder clearCurrentWork() { + + currentWork_ = getDefaultInstance().getCurrentWork(); + 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:tensorflow.ReaderBaseState) + } + + // @@protoc_insertion_point(class_scope:tensorflow.ReaderBaseState) + private static final org.tensorflow.proto.ReaderBaseState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.ReaderBaseState(); + } + + public static org.tensorflow.proto.ReaderBaseState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReaderBaseState 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 org.tensorflow.proto.ReaderBaseState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ReaderBaseStateOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ReaderBaseStateOrBuilder.java similarity index 80% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ReaderBaseStateOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ReaderBaseStateOrBuilder.java index 72f0c6c0922..7d5fb6a46a0 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ReaderBaseStateOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ReaderBaseStateOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/reader_base.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface ReaderBaseStateOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.ReaderBaseState) @@ -9,21 +9,25 @@ public interface ReaderBaseStateOrBuilder extends /** * int64 work_started = 1; + * @return The workStarted. */ long getWorkStarted(); /** * int64 work_finished = 2; + * @return The workFinished. */ long getWorkFinished(); /** * int64 num_records_produced = 3; + * @return The numRecordsProduced. */ long getNumRecordsProduced(); /** * bytes current_work = 4; + * @return The currentWork. */ com.google.protobuf.ByteString getCurrentWork(); } diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RegisteredGradient.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RegisteredGradient.java new file mode 100644 index 00000000000..7bac26b1cf9 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RegisteredGradient.java @@ -0,0 +1,745 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/function.proto + +package org.tensorflow.proto; + +/** + *
+ * RegisteredGradient stores a gradient function that is registered in the
+ * gradients library and used in the ops of a function in the function library.
+ * Unlike GradientDef, these gradients are identified by op type, and not
+ * directly linked to any function.
+ * 
+ * + * Protobuf type {@code tensorflow.RegisteredGradient} + */ +public final class RegisteredGradient extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.RegisteredGradient) + RegisteredGradientOrBuilder { +private static final long serialVersionUID = 0L; + // Use RegisteredGradient.newBuilder() to construct. + private RegisteredGradient(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RegisteredGradient() { + gradientFunc_ = ""; + registeredOpType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RegisteredGradient(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_RegisteredGradient_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_RegisteredGradient_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.RegisteredGradient.class, org.tensorflow.proto.RegisteredGradient.Builder.class); + } + + public static final int GRADIENT_FUNC_FIELD_NUMBER = 1; + private volatile java.lang.Object gradientFunc_; + /** + *
+   * The gradient function's name.
+   * 
+ * + * string gradient_func = 1; + * @return The gradientFunc. + */ + @java.lang.Override + public java.lang.String getGradientFunc() { + java.lang.Object ref = gradientFunc_; + 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(); + gradientFunc_ = s; + return s; + } + } + /** + *
+   * The gradient function's name.
+   * 
+ * + * string gradient_func = 1; + * @return The bytes for gradientFunc. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getGradientFuncBytes() { + java.lang.Object ref = gradientFunc_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gradientFunc_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGISTERED_OP_TYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object registeredOpType_; + /** + *
+   * The gradient function's registered op type.
+   * 
+ * + * string registered_op_type = 2; + * @return The registeredOpType. + */ + @java.lang.Override + public java.lang.String getRegisteredOpType() { + java.lang.Object ref = registeredOpType_; + 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(); + registeredOpType_ = s; + return s; + } + } + /** + *
+   * The gradient function's registered op type.
+   * 
+ * + * string registered_op_type = 2; + * @return The bytes for registeredOpType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRegisteredOpTypeBytes() { + java.lang.Object ref = registeredOpType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + registeredOpType_ = 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(gradientFunc_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gradientFunc_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registeredOpType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, registeredOpType_); + } + 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(gradientFunc_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gradientFunc_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registeredOpType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, registeredOpType_); + } + 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 org.tensorflow.proto.RegisteredGradient)) { + return super.equals(obj); + } + org.tensorflow.proto.RegisteredGradient other = (org.tensorflow.proto.RegisteredGradient) obj; + + if (!getGradientFunc() + .equals(other.getGradientFunc())) return false; + if (!getRegisteredOpType() + .equals(other.getRegisteredOpType())) 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) + GRADIENT_FUNC_FIELD_NUMBER; + hash = (53 * hash) + getGradientFunc().hashCode(); + hash = (37 * hash) + REGISTERED_OP_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getRegisteredOpType().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.RegisteredGradient parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RegisteredGradient parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RegisteredGradient parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RegisteredGradient parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RegisteredGradient parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RegisteredGradient parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RegisteredGradient parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RegisteredGradient 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 org.tensorflow.proto.RegisteredGradient parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RegisteredGradient 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 org.tensorflow.proto.RegisteredGradient parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RegisteredGradient 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(org.tensorflow.proto.RegisteredGradient 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; + } + /** + *
+   * RegisteredGradient stores a gradient function that is registered in the
+   * gradients library and used in the ops of a function in the function library.
+   * Unlike GradientDef, these gradients are identified by op type, and not
+   * directly linked to any function.
+   * 
+ * + * Protobuf type {@code tensorflow.RegisteredGradient} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.RegisteredGradient) + org.tensorflow.proto.RegisteredGradientOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_RegisteredGradient_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_RegisteredGradient_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.RegisteredGradient.class, org.tensorflow.proto.RegisteredGradient.Builder.class); + } + + // Construct using org.tensorflow.proto.RegisteredGradient.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + gradientFunc_ = ""; + + registeredOpType_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.FunctionProtos.internal_static_tensorflow_RegisteredGradient_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.RegisteredGradient getDefaultInstanceForType() { + return org.tensorflow.proto.RegisteredGradient.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.RegisteredGradient build() { + org.tensorflow.proto.RegisteredGradient result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.RegisteredGradient buildPartial() { + org.tensorflow.proto.RegisteredGradient result = new org.tensorflow.proto.RegisteredGradient(this); + result.gradientFunc_ = gradientFunc_; + result.registeredOpType_ = registeredOpType_; + 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 org.tensorflow.proto.RegisteredGradient) { + return mergeFrom((org.tensorflow.proto.RegisteredGradient)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.RegisteredGradient other) { + if (other == org.tensorflow.proto.RegisteredGradient.getDefaultInstance()) return this; + if (!other.getGradientFunc().isEmpty()) { + gradientFunc_ = other.gradientFunc_; + onChanged(); + } + if (!other.getRegisteredOpType().isEmpty()) { + registeredOpType_ = other.registeredOpType_; + 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: { + gradientFunc_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + registeredOpType_ = input.readStringRequireUtf8(); + + 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 java.lang.Object gradientFunc_ = ""; + /** + *
+     * The gradient function's name.
+     * 
+ * + * string gradient_func = 1; + * @return The gradientFunc. + */ + public java.lang.String getGradientFunc() { + java.lang.Object ref = gradientFunc_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gradientFunc_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The gradient function's name.
+     * 
+ * + * string gradient_func = 1; + * @return The bytes for gradientFunc. + */ + public com.google.protobuf.ByteString + getGradientFuncBytes() { + java.lang.Object ref = gradientFunc_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gradientFunc_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The gradient function's name.
+     * 
+ * + * string gradient_func = 1; + * @param value The gradientFunc to set. + * @return This builder for chaining. + */ + public Builder setGradientFunc( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + gradientFunc_ = value; + onChanged(); + return this; + } + /** + *
+     * The gradient function's name.
+     * 
+ * + * string gradient_func = 1; + * @return This builder for chaining. + */ + public Builder clearGradientFunc() { + + gradientFunc_ = getDefaultInstance().getGradientFunc(); + onChanged(); + return this; + } + /** + *
+     * The gradient function's name.
+     * 
+ * + * string gradient_func = 1; + * @param value The bytes for gradientFunc to set. + * @return This builder for chaining. + */ + public Builder setGradientFuncBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + gradientFunc_ = value; + onChanged(); + return this; + } + + private java.lang.Object registeredOpType_ = ""; + /** + *
+     * The gradient function's registered op type.
+     * 
+ * + * string registered_op_type = 2; + * @return The registeredOpType. + */ + public java.lang.String getRegisteredOpType() { + java.lang.Object ref = registeredOpType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + registeredOpType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The gradient function's registered op type.
+     * 
+ * + * string registered_op_type = 2; + * @return The bytes for registeredOpType. + */ + public com.google.protobuf.ByteString + getRegisteredOpTypeBytes() { + java.lang.Object ref = registeredOpType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + registeredOpType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The gradient function's registered op type.
+     * 
+ * + * string registered_op_type = 2; + * @param value The registeredOpType to set. + * @return This builder for chaining. + */ + public Builder setRegisteredOpType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + registeredOpType_ = value; + onChanged(); + return this; + } + /** + *
+     * The gradient function's registered op type.
+     * 
+ * + * string registered_op_type = 2; + * @return This builder for chaining. + */ + public Builder clearRegisteredOpType() { + + registeredOpType_ = getDefaultInstance().getRegisteredOpType(); + onChanged(); + return this; + } + /** + *
+     * The gradient function's registered op type.
+     * 
+ * + * string registered_op_type = 2; + * @param value The bytes for registeredOpType to set. + * @return This builder for chaining. + */ + public Builder setRegisteredOpTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + registeredOpType_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.RegisteredGradient) + } + + // @@protoc_insertion_point(class_scope:tensorflow.RegisteredGradient) + private static final org.tensorflow.proto.RegisteredGradient DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.RegisteredGradient(); + } + + public static org.tensorflow.proto.RegisteredGradient getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RegisteredGradient 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 org.tensorflow.proto.RegisteredGradient getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RegisteredGradientOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RegisteredGradientOrBuilder.java similarity index 84% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RegisteredGradientOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RegisteredGradientOrBuilder.java index d4b1a75ffe0..92ab6fd58d6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RegisteredGradientOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RegisteredGradientOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/function.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface RegisteredGradientOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.RegisteredGradient) @@ -13,6 +13,7 @@ public interface RegisteredGradientOrBuilder extends * * * string gradient_func = 1; + * @return The gradientFunc. */ java.lang.String getGradientFunc(); /** @@ -21,6 +22,7 @@ public interface RegisteredGradientOrBuilder extends * * * string gradient_func = 1; + * @return The bytes for gradientFunc. */ com.google.protobuf.ByteString getGradientFuncBytes(); @@ -31,6 +33,7 @@ public interface RegisteredGradientOrBuilder extends * * * string registered_op_type = 2; + * @return The registeredOpType. */ java.lang.String getRegisteredOpType(); /** @@ -39,6 +42,7 @@ public interface RegisteredGradientOrBuilder extends * * * string registered_op_type = 2; + * @return The bytes for registeredOpType. */ com.google.protobuf.ByteString getRegisteredOpTypeBytes(); diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RequestedExitCode.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RequestedExitCode.java new file mode 100644 index 00000000000..a1d9e4a9e40 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RequestedExitCode.java @@ -0,0 +1,465 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/util/event.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.RequestedExitCode} + */ +public final class RequestedExitCode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.RequestedExitCode) + RequestedExitCodeOrBuilder { +private static final long serialVersionUID = 0L; + // Use RequestedExitCode.newBuilder() to construct. + private RequestedExitCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RequestedExitCode() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RequestedExitCode(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_RequestedExitCode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_RequestedExitCode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.RequestedExitCode.class, org.tensorflow.proto.RequestedExitCode.Builder.class); + } + + public static final int EXIT_CODE_FIELD_NUMBER = 1; + private int exitCode_; + /** + * int32 exit_code = 1; + * @return The exitCode. + */ + @java.lang.Override + public int getExitCode() { + return exitCode_; + } + + 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 (exitCode_ != 0) { + output.writeInt32(1, exitCode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (exitCode_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, exitCode_); + } + 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 org.tensorflow.proto.RequestedExitCode)) { + return super.equals(obj); + } + org.tensorflow.proto.RequestedExitCode other = (org.tensorflow.proto.RequestedExitCode) obj; + + if (getExitCode() + != other.getExitCode()) 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) + EXIT_CODE_FIELD_NUMBER; + hash = (53 * hash) + getExitCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.RequestedExitCode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RequestedExitCode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RequestedExitCode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RequestedExitCode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RequestedExitCode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RequestedExitCode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RequestedExitCode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RequestedExitCode 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 org.tensorflow.proto.RequestedExitCode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RequestedExitCode 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 org.tensorflow.proto.RequestedExitCode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RequestedExitCode 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(org.tensorflow.proto.RequestedExitCode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.RequestedExitCode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.RequestedExitCode) + org.tensorflow.proto.RequestedExitCodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_RequestedExitCode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_RequestedExitCode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.RequestedExitCode.class, org.tensorflow.proto.RequestedExitCode.Builder.class); + } + + // Construct using org.tensorflow.proto.RequestedExitCode.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + exitCode_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_RequestedExitCode_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.RequestedExitCode getDefaultInstanceForType() { + return org.tensorflow.proto.RequestedExitCode.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.RequestedExitCode build() { + org.tensorflow.proto.RequestedExitCode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.RequestedExitCode buildPartial() { + org.tensorflow.proto.RequestedExitCode result = new org.tensorflow.proto.RequestedExitCode(this); + result.exitCode_ = exitCode_; + 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 org.tensorflow.proto.RequestedExitCode) { + return mergeFrom((org.tensorflow.proto.RequestedExitCode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.RequestedExitCode other) { + if (other == org.tensorflow.proto.RequestedExitCode.getDefaultInstance()) return this; + if (other.getExitCode() != 0) { + setExitCode(other.getExitCode()); + } + 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: { + exitCode_ = input.readInt32(); + + break; + } // case 8 + 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 exitCode_ ; + /** + * int32 exit_code = 1; + * @return The exitCode. + */ + @java.lang.Override + public int getExitCode() { + return exitCode_; + } + /** + * int32 exit_code = 1; + * @param value The exitCode to set. + * @return This builder for chaining. + */ + public Builder setExitCode(int value) { + + exitCode_ = value; + onChanged(); + return this; + } + /** + * int32 exit_code = 1; + * @return This builder for chaining. + */ + public Builder clearExitCode() { + + exitCode_ = 0; + 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:tensorflow.RequestedExitCode) + } + + // @@protoc_insertion_point(class_scope:tensorflow.RequestedExitCode) + private static final org.tensorflow.proto.RequestedExitCode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.RequestedExitCode(); + } + + public static org.tensorflow.proto.RequestedExitCode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RequestedExitCode 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 org.tensorflow.proto.RequestedExitCode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/RequestedExitCodeOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RequestedExitCodeOrBuilder.java similarity index 86% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/RequestedExitCodeOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RequestedExitCodeOrBuilder.java index 260e7609dc7..ae696b16d27 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/RequestedExitCodeOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RequestedExitCodeOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/util/event.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; public interface RequestedExitCodeOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.RequestedExitCode) @@ -9,6 +9,7 @@ public interface RequestedExitCodeOrBuilder extends /** * int32 exit_code = 1; + * @return The exitCode. */ int getExitCode(); } diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ResourceHandle.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ResourceHandle.java new file mode 100644 index 00000000000..cda40fc6fe0 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ResourceHandle.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/resource_handle.proto + +package org.tensorflow.proto; + +public final class ResourceHandle { + private ResourceHandle() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_ResourceHandleProto_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_ResourceHandleProto_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_ResourceHandleProto_DtypeAndShape_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_ResourceHandleProto_DtypeAndShape_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n/tensorflow/core/framework/resource_han" + + "dle.proto\022\ntensorflow\032,tensorflow/core/f" + + "ramework/tensor_shape.proto\032%tensorflow/" + + "core/framework/types.proto\"\245\002\n\023ResourceH" + + "andleProto\022\016\n\006device\030\001 \001(\t\022\021\n\tcontainer\030" + + "\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\021\n\thash_code\030\004 \001(\004\022\027" + + "\n\017maybe_type_name\030\005 \001(\t\022H\n\021dtypes_and_sh" + + "apes\030\006 \003(\0132-.tensorflow.ResourceHandlePr" + + "oto.DtypeAndShape\032a\n\rDtypeAndShape\022#\n\005dt" + + "ype\030\001 \001(\0162\024.tensorflow.DataType\022+\n\005shape" + + "\030\002 \001(\0132\034.tensorflow.TensorShapeProtoJ\004\010\007" + + "\020\010B\203\001\n\024org.tensorflow.protoB\016ResourceHan" + + "dleP\001ZVgithub.com/tensorflow/tensorflow/" + + "tensorflow/go/core/framework/resource_ha" + + "ndle_go_proto\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + org.tensorflow.proto.TensorShapeProtos.getDescriptor(), + org.tensorflow.proto.TypesProtos.getDescriptor(), + }); + internal_static_tensorflow_ResourceHandleProto_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_ResourceHandleProto_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_ResourceHandleProto_descriptor, + new java.lang.String[] { "Device", "Container", "Name", "HashCode", "MaybeTypeName", "DtypesAndShapes", }); + internal_static_tensorflow_ResourceHandleProto_DtypeAndShape_descriptor = + internal_static_tensorflow_ResourceHandleProto_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_ResourceHandleProto_DtypeAndShape_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_ResourceHandleProto_DtypeAndShape_descriptor, + new java.lang.String[] { "Dtype", "Shape", }); + org.tensorflow.proto.TensorShapeProtos.getDescriptor(); + org.tensorflow.proto.TypesProtos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ResourceHandleProto.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ResourceHandleProto.java new file mode 100644 index 00000000000..159c9574b47 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ResourceHandleProto.java @@ -0,0 +1,2319 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/resource_handle.proto + +package org.tensorflow.proto; + +/** + *
+ * Protocol buffer representing a handle to a tensorflow resource. Handles are
+ * not valid across executions, but can be serialized back and forth from within
+ * a single run.
+ * 
+ * + * Protobuf type {@code tensorflow.ResourceHandleProto} + */ +public final class ResourceHandleProto extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.ResourceHandleProto) + ResourceHandleProtoOrBuilder { +private static final long serialVersionUID = 0L; + // Use ResourceHandleProto.newBuilder() to construct. + private ResourceHandleProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceHandleProto() { + device_ = ""; + container_ = ""; + name_ = ""; + maybeTypeName_ = ""; + dtypesAndShapes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ResourceHandleProto(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ResourceHandle.internal_static_tensorflow_ResourceHandleProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ResourceHandle.internal_static_tensorflow_ResourceHandleProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ResourceHandleProto.class, org.tensorflow.proto.ResourceHandleProto.Builder.class); + } + + public interface DtypeAndShapeOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.ResourceHandleProto.DtypeAndShape) + com.google.protobuf.MessageOrBuilder { + + /** + * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. + */ + int getDtypeValue(); + /** + * .tensorflow.DataType dtype = 1; + * @return The dtype. + */ + org.tensorflow.proto.DataType getDtype(); + + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + boolean hasShape(); + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + org.tensorflow.proto.TensorShapeProto getShape(); + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder(); + } + /** + *
+   * Protocol buffer representing a pair of (data type, tensor shape).
+   * 
+ * + * Protobuf type {@code tensorflow.ResourceHandleProto.DtypeAndShape} + */ + public static final class DtypeAndShape extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.ResourceHandleProto.DtypeAndShape) + DtypeAndShapeOrBuilder { + private static final long serialVersionUID = 0L; + // Use DtypeAndShape.newBuilder() to construct. + private DtypeAndShape(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DtypeAndShape() { + dtype_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DtypeAndShape(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ResourceHandle.internal_static_tensorflow_ResourceHandleProto_DtypeAndShape_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ResourceHandle.internal_static_tensorflow_ResourceHandleProto_DtypeAndShape_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.class, org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.Builder.class); + } + + public static final int DTYPE_FIELD_NUMBER = 1; + private int dtype_; + /** + * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. + */ + @java.lang.Override public int getDtypeValue() { + return dtype_; + } + /** + * .tensorflow.DataType dtype = 1; + * @return The dtype. + */ + @java.lang.Override public org.tensorflow.proto.DataType getDtype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + + public static final int SHAPE_FIELD_NUMBER = 2; + private org.tensorflow.proto.TensorShapeProto shape_; + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + @java.lang.Override + public boolean hasShape() { + return shape_ != null; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto getShape() { + return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { + return getShape(); + } + + 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 (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + output.writeEnum(1, dtype_); + } + if (shape_ != null) { + output.writeMessage(2, getShape()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, dtype_); + } + if (shape_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getShape()); + } + 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 org.tensorflow.proto.ResourceHandleProto.DtypeAndShape)) { + return super.equals(obj); + } + org.tensorflow.proto.ResourceHandleProto.DtypeAndShape other = (org.tensorflow.proto.ResourceHandleProto.DtypeAndShape) obj; + + if (dtype_ != other.dtype_) return false; + if (hasShape() != other.hasShape()) return false; + if (hasShape()) { + if (!getShape() + .equals(other.getShape())) 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) + DTYPE_FIELD_NUMBER; + hash = (53 * hash) + dtype_; + if (hasShape()) { + hash = (37 * hash) + SHAPE_FIELD_NUMBER; + hash = (53 * hash) + getShape().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.ResourceHandleProto.DtypeAndShape parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ResourceHandleProto.DtypeAndShape parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ResourceHandleProto.DtypeAndShape parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ResourceHandleProto.DtypeAndShape parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ResourceHandleProto.DtypeAndShape parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ResourceHandleProto.DtypeAndShape parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ResourceHandleProto.DtypeAndShape parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ResourceHandleProto.DtypeAndShape 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 org.tensorflow.proto.ResourceHandleProto.DtypeAndShape parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ResourceHandleProto.DtypeAndShape 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 org.tensorflow.proto.ResourceHandleProto.DtypeAndShape parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ResourceHandleProto.DtypeAndShape 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(org.tensorflow.proto.ResourceHandleProto.DtypeAndShape 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; + } + /** + *
+     * Protocol buffer representing a pair of (data type, tensor shape).
+     * 
+ * + * Protobuf type {@code tensorflow.ResourceHandleProto.DtypeAndShape} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.ResourceHandleProto.DtypeAndShape) + org.tensorflow.proto.ResourceHandleProto.DtypeAndShapeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ResourceHandle.internal_static_tensorflow_ResourceHandleProto_DtypeAndShape_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ResourceHandle.internal_static_tensorflow_ResourceHandleProto_DtypeAndShape_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.class, org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.Builder.class); + } + + // Construct using org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + dtype_ = 0; + + if (shapeBuilder_ == null) { + shape_ = null; + } else { + shape_ = null; + shapeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.ResourceHandle.internal_static_tensorflow_ResourceHandleProto_DtypeAndShape_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.ResourceHandleProto.DtypeAndShape getDefaultInstanceForType() { + return org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.ResourceHandleProto.DtypeAndShape build() { + org.tensorflow.proto.ResourceHandleProto.DtypeAndShape result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.ResourceHandleProto.DtypeAndShape buildPartial() { + org.tensorflow.proto.ResourceHandleProto.DtypeAndShape result = new org.tensorflow.proto.ResourceHandleProto.DtypeAndShape(this); + result.dtype_ = dtype_; + if (shapeBuilder_ == null) { + result.shape_ = shape_; + } else { + result.shape_ = shapeBuilder_.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 org.tensorflow.proto.ResourceHandleProto.DtypeAndShape) { + return mergeFrom((org.tensorflow.proto.ResourceHandleProto.DtypeAndShape)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.ResourceHandleProto.DtypeAndShape other) { + if (other == org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.getDefaultInstance()) return this; + if (other.dtype_ != 0) { + setDtypeValue(other.getDtypeValue()); + } + if (other.hasShape()) { + mergeShape(other.getShape()); + } + 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: { + dtype_ = input.readEnum(); + + break; + } // case 8 + case 18: { + input.readMessage( + getShapeFieldBuilder().getBuilder(), + extensionRegistry); + + 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 dtype_ = 0; + /** + * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. + */ + @java.lang.Override public int getDtypeValue() { + return dtype_; + } + /** + * .tensorflow.DataType dtype = 1; + * @param value The enum numeric value on the wire for dtype to set. + * @return This builder for chaining. + */ + public Builder setDtypeValue(int value) { + + dtype_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.DataType dtype = 1; + * @return The dtype. + */ + @java.lang.Override + public org.tensorflow.proto.DataType getDtype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + /** + * .tensorflow.DataType dtype = 1; + * @param value The dtype to set. + * @return This builder for chaining. + */ + public Builder setDtype(org.tensorflow.proto.DataType value) { + if (value == null) { + throw new NullPointerException(); + } + + dtype_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.DataType dtype = 1; + * @return This builder for chaining. + */ + public Builder clearDtype() { + + dtype_ = 0; + onChanged(); + return this; + } + + private org.tensorflow.proto.TensorShapeProto shape_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> shapeBuilder_; + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + public boolean hasShape() { + return shapeBuilder_ != null || shape_ != null; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + public org.tensorflow.proto.TensorShapeProto getShape() { + if (shapeBuilder_ == null) { + return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } else { + return shapeBuilder_.getMessage(); + } + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder setShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shape_ = value; + onChanged(); + } else { + shapeBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder setShape( + org.tensorflow.proto.TensorShapeProto.Builder builderForValue) { + if (shapeBuilder_ == null) { + shape_ = builderForValue.build(); + onChanged(); + } else { + shapeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder mergeShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (shape_ != null) { + shape_ = + org.tensorflow.proto.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial(); + } else { + shape_ = value; + } + onChanged(); + } else { + shapeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder clearShape() { + if (shapeBuilder_ == null) { + shape_ = null; + onChanged(); + } else { + shape_ = null; + shapeBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public org.tensorflow.proto.TensorShapeProto.Builder getShapeBuilder() { + + onChanged(); + return getShapeFieldBuilder().getBuilder(); + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { + if (shapeBuilder_ != null) { + return shapeBuilder_.getMessageOrBuilder(); + } else { + return shape_ == null ? + org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> + getShapeFieldBuilder() { + if (shapeBuilder_ == null) { + shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder>( + getShape(), + getParentForChildren(), + isClean()); + shape_ = null; + } + return shapeBuilder_; + } + @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:tensorflow.ResourceHandleProto.DtypeAndShape) + } + + // @@protoc_insertion_point(class_scope:tensorflow.ResourceHandleProto.DtypeAndShape) + private static final org.tensorflow.proto.ResourceHandleProto.DtypeAndShape DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.ResourceHandleProto.DtypeAndShape(); + } + + public static org.tensorflow.proto.ResourceHandleProto.DtypeAndShape getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DtypeAndShape 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 org.tensorflow.proto.ResourceHandleProto.DtypeAndShape getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int DEVICE_FIELD_NUMBER = 1; + private volatile java.lang.Object device_; + /** + *
+   * Unique name for the device containing the resource.
+   * 
+ * + * string device = 1; + * @return The device. + */ + @java.lang.Override + public java.lang.String getDevice() { + java.lang.Object ref = device_; + 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(); + device_ = s; + return s; + } + } + /** + *
+   * Unique name for the device containing the resource.
+   * 
+ * + * string device = 1; + * @return The bytes for device. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDeviceBytes() { + java.lang.Object ref = device_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + device_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTAINER_FIELD_NUMBER = 2; + private volatile java.lang.Object container_; + /** + *
+   * Container in which this resource is placed.
+   * 
+ * + * string container = 2; + * @return The container. + */ + @java.lang.Override + public java.lang.String getContainer() { + java.lang.Object ref = container_; + 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(); + container_ = s; + return s; + } + } + /** + *
+   * Container in which this resource is placed.
+   * 
+ * + * string container = 2; + * @return The bytes for container. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getContainerBytes() { + java.lang.Object ref = container_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + container_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object name_; + /** + *
+   * Unique name of this resource.
+   * 
+ * + * string name = 3; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+   * Unique name of this resource.
+   * 
+ * + * string name = 3; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HASH_CODE_FIELD_NUMBER = 4; + private long hashCode_; + /** + *
+   * Hash code for the type of the resource. Is only valid in the same device
+   * and in the same execution.
+   * 
+ * + * uint64 hash_code = 4; + * @return The hashCode. + */ + @java.lang.Override + public long getHashCode() { + return hashCode_; + } + + public static final int MAYBE_TYPE_NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object maybeTypeName_; + /** + *
+   * For debug-only, the name of the type pointed to by this handle, if
+   * available.
+   * 
+ * + * string maybe_type_name = 5; + * @return The maybeTypeName. + */ + @java.lang.Override + public java.lang.String getMaybeTypeName() { + java.lang.Object ref = maybeTypeName_; + 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(); + maybeTypeName_ = s; + return s; + } + } + /** + *
+   * For debug-only, the name of the type pointed to by this handle, if
+   * available.
+   * 
+ * + * string maybe_type_name = 5; + * @return The bytes for maybeTypeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMaybeTypeNameBytes() { + java.lang.Object ref = maybeTypeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + maybeTypeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DTYPES_AND_SHAPES_FIELD_NUMBER = 6; + private java.util.List dtypesAndShapes_; + /** + *
+   * Data types and shapes for the underlying resource.
+   * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + @java.lang.Override + public java.util.List getDtypesAndShapesList() { + return dtypesAndShapes_; + } + /** + *
+   * Data types and shapes for the underlying resource.
+   * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + @java.lang.Override + public java.util.List + getDtypesAndShapesOrBuilderList() { + return dtypesAndShapes_; + } + /** + *
+   * Data types and shapes for the underlying resource.
+   * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + @java.lang.Override + public int getDtypesAndShapesCount() { + return dtypesAndShapes_.size(); + } + /** + *
+   * Data types and shapes for the underlying resource.
+   * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + @java.lang.Override + public org.tensorflow.proto.ResourceHandleProto.DtypeAndShape getDtypesAndShapes(int index) { + return dtypesAndShapes_.get(index); + } + /** + *
+   * Data types and shapes for the underlying resource.
+   * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + @java.lang.Override + public org.tensorflow.proto.ResourceHandleProto.DtypeAndShapeOrBuilder getDtypesAndShapesOrBuilder( + int index) { + return dtypesAndShapes_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(device_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, device_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(container_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, container_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); + } + if (hashCode_ != 0L) { + output.writeUInt64(4, hashCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(maybeTypeName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, maybeTypeName_); + } + for (int i = 0; i < dtypesAndShapes_.size(); i++) { + output.writeMessage(6, dtypesAndShapes_.get(i)); + } + 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(device_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, device_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(container_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, container_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); + } + if (hashCode_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, hashCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(maybeTypeName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, maybeTypeName_); + } + for (int i = 0; i < dtypesAndShapes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, dtypesAndShapes_.get(i)); + } + 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 org.tensorflow.proto.ResourceHandleProto)) { + return super.equals(obj); + } + org.tensorflow.proto.ResourceHandleProto other = (org.tensorflow.proto.ResourceHandleProto) obj; + + if (!getDevice() + .equals(other.getDevice())) return false; + if (!getContainer() + .equals(other.getContainer())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getHashCode() + != other.getHashCode()) return false; + if (!getMaybeTypeName() + .equals(other.getMaybeTypeName())) return false; + if (!getDtypesAndShapesList() + .equals(other.getDtypesAndShapesList())) 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) + DEVICE_FIELD_NUMBER; + hash = (53 * hash) + getDevice().hashCode(); + hash = (37 * hash) + CONTAINER_FIELD_NUMBER; + hash = (53 * hash) + getContainer().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + HASH_CODE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getHashCode()); + hash = (37 * hash) + MAYBE_TYPE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMaybeTypeName().hashCode(); + if (getDtypesAndShapesCount() > 0) { + hash = (37 * hash) + DTYPES_AND_SHAPES_FIELD_NUMBER; + hash = (53 * hash) + getDtypesAndShapesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.ResourceHandleProto parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ResourceHandleProto parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ResourceHandleProto parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ResourceHandleProto parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ResourceHandleProto parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ResourceHandleProto parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ResourceHandleProto parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ResourceHandleProto 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 org.tensorflow.proto.ResourceHandleProto parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ResourceHandleProto 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 org.tensorflow.proto.ResourceHandleProto parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ResourceHandleProto 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(org.tensorflow.proto.ResourceHandleProto 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; + } + /** + *
+   * Protocol buffer representing a handle to a tensorflow resource. Handles are
+   * not valid across executions, but can be serialized back and forth from within
+   * a single run.
+   * 
+ * + * Protobuf type {@code tensorflow.ResourceHandleProto} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.ResourceHandleProto) + org.tensorflow.proto.ResourceHandleProtoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ResourceHandle.internal_static_tensorflow_ResourceHandleProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ResourceHandle.internal_static_tensorflow_ResourceHandleProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ResourceHandleProto.class, org.tensorflow.proto.ResourceHandleProto.Builder.class); + } + + // Construct using org.tensorflow.proto.ResourceHandleProto.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + device_ = ""; + + container_ = ""; + + name_ = ""; + + hashCode_ = 0L; + + maybeTypeName_ = ""; + + if (dtypesAndShapesBuilder_ == null) { + dtypesAndShapes_ = java.util.Collections.emptyList(); + } else { + dtypesAndShapes_ = null; + dtypesAndShapesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.ResourceHandle.internal_static_tensorflow_ResourceHandleProto_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.ResourceHandleProto getDefaultInstanceForType() { + return org.tensorflow.proto.ResourceHandleProto.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.ResourceHandleProto build() { + org.tensorflow.proto.ResourceHandleProto result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.ResourceHandleProto buildPartial() { + org.tensorflow.proto.ResourceHandleProto result = new org.tensorflow.proto.ResourceHandleProto(this); + int from_bitField0_ = bitField0_; + result.device_ = device_; + result.container_ = container_; + result.name_ = name_; + result.hashCode_ = hashCode_; + result.maybeTypeName_ = maybeTypeName_; + if (dtypesAndShapesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dtypesAndShapes_ = java.util.Collections.unmodifiableList(dtypesAndShapes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dtypesAndShapes_ = dtypesAndShapes_; + } else { + result.dtypesAndShapes_ = dtypesAndShapesBuilder_.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 org.tensorflow.proto.ResourceHandleProto) { + return mergeFrom((org.tensorflow.proto.ResourceHandleProto)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.ResourceHandleProto other) { + if (other == org.tensorflow.proto.ResourceHandleProto.getDefaultInstance()) return this; + if (!other.getDevice().isEmpty()) { + device_ = other.device_; + onChanged(); + } + if (!other.getContainer().isEmpty()) { + container_ = other.container_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getHashCode() != 0L) { + setHashCode(other.getHashCode()); + } + if (!other.getMaybeTypeName().isEmpty()) { + maybeTypeName_ = other.maybeTypeName_; + onChanged(); + } + if (dtypesAndShapesBuilder_ == null) { + if (!other.dtypesAndShapes_.isEmpty()) { + if (dtypesAndShapes_.isEmpty()) { + dtypesAndShapes_ = other.dtypesAndShapes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDtypesAndShapesIsMutable(); + dtypesAndShapes_.addAll(other.dtypesAndShapes_); + } + onChanged(); + } + } else { + if (!other.dtypesAndShapes_.isEmpty()) { + if (dtypesAndShapesBuilder_.isEmpty()) { + dtypesAndShapesBuilder_.dispose(); + dtypesAndShapesBuilder_ = null; + dtypesAndShapes_ = other.dtypesAndShapes_; + bitField0_ = (bitField0_ & ~0x00000001); + dtypesAndShapesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDtypesAndShapesFieldBuilder() : null; + } else { + dtypesAndShapesBuilder_.addAllMessages(other.dtypesAndShapes_); + } + } + } + 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: { + device_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + container_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + hashCode_ = input.readUInt64(); + + break; + } // case 32 + case 42: { + maybeTypeName_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + org.tensorflow.proto.ResourceHandleProto.DtypeAndShape m = + input.readMessage( + org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.parser(), + extensionRegistry); + if (dtypesAndShapesBuilder_ == null) { + ensureDtypesAndShapesIsMutable(); + dtypesAndShapes_.add(m); + } else { + dtypesAndShapesBuilder_.addMessage(m); + } + break; + } // case 50 + 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 device_ = ""; + /** + *
+     * Unique name for the device containing the resource.
+     * 
+ * + * string device = 1; + * @return The device. + */ + public java.lang.String getDevice() { + java.lang.Object ref = device_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + device_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Unique name for the device containing the resource.
+     * 
+ * + * string device = 1; + * @return The bytes for device. + */ + public com.google.protobuf.ByteString + getDeviceBytes() { + java.lang.Object ref = device_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + device_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Unique name for the device containing the resource.
+     * 
+ * + * string device = 1; + * @param value The device to set. + * @return This builder for chaining. + */ + public Builder setDevice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + device_ = value; + onChanged(); + return this; + } + /** + *
+     * Unique name for the device containing the resource.
+     * 
+ * + * string device = 1; + * @return This builder for chaining. + */ + public Builder clearDevice() { + + device_ = getDefaultInstance().getDevice(); + onChanged(); + return this; + } + /** + *
+     * Unique name for the device containing the resource.
+     * 
+ * + * string device = 1; + * @param value The bytes for device to set. + * @return This builder for chaining. + */ + public Builder setDeviceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + device_ = value; + onChanged(); + return this; + } + + private java.lang.Object container_ = ""; + /** + *
+     * Container in which this resource is placed.
+     * 
+ * + * string container = 2; + * @return The container. + */ + public java.lang.String getContainer() { + java.lang.Object ref = container_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + container_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Container in which this resource is placed.
+     * 
+ * + * string container = 2; + * @return The bytes for container. + */ + public com.google.protobuf.ByteString + getContainerBytes() { + java.lang.Object ref = container_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + container_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Container in which this resource is placed.
+     * 
+ * + * string container = 2; + * @param value The container to set. + * @return This builder for chaining. + */ + public Builder setContainer( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + container_ = value; + onChanged(); + return this; + } + /** + *
+     * Container in which this resource is placed.
+     * 
+ * + * string container = 2; + * @return This builder for chaining. + */ + public Builder clearContainer() { + + container_ = getDefaultInstance().getContainer(); + onChanged(); + return this; + } + /** + *
+     * Container in which this resource is placed.
+     * 
+ * + * string container = 2; + * @param value The bytes for container to set. + * @return This builder for chaining. + */ + public Builder setContainerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + container_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Unique name of this resource.
+     * 
+ * + * string name = 3; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Unique name of this resource.
+     * 
+ * + * string name = 3; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Unique name of this resource.
+     * 
+ * + * string name = 3; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Unique name of this resource.
+     * 
+ * + * string name = 3; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Unique name of this resource.
+     * 
+ * + * string name = 3; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private long hashCode_ ; + /** + *
+     * Hash code for the type of the resource. Is only valid in the same device
+     * and in the same execution.
+     * 
+ * + * uint64 hash_code = 4; + * @return The hashCode. + */ + @java.lang.Override + public long getHashCode() { + return hashCode_; + } + /** + *
+     * Hash code for the type of the resource. Is only valid in the same device
+     * and in the same execution.
+     * 
+ * + * uint64 hash_code = 4; + * @param value The hashCode to set. + * @return This builder for chaining. + */ + public Builder setHashCode(long value) { + + hashCode_ = value; + onChanged(); + return this; + } + /** + *
+     * Hash code for the type of the resource. Is only valid in the same device
+     * and in the same execution.
+     * 
+ * + * uint64 hash_code = 4; + * @return This builder for chaining. + */ + public Builder clearHashCode() { + + hashCode_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object maybeTypeName_ = ""; + /** + *
+     * For debug-only, the name of the type pointed to by this handle, if
+     * available.
+     * 
+ * + * string maybe_type_name = 5; + * @return The maybeTypeName. + */ + public java.lang.String getMaybeTypeName() { + java.lang.Object ref = maybeTypeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + maybeTypeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * For debug-only, the name of the type pointed to by this handle, if
+     * available.
+     * 
+ * + * string maybe_type_name = 5; + * @return The bytes for maybeTypeName. + */ + public com.google.protobuf.ByteString + getMaybeTypeNameBytes() { + java.lang.Object ref = maybeTypeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + maybeTypeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * For debug-only, the name of the type pointed to by this handle, if
+     * available.
+     * 
+ * + * string maybe_type_name = 5; + * @param value The maybeTypeName to set. + * @return This builder for chaining. + */ + public Builder setMaybeTypeName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + maybeTypeName_ = value; + onChanged(); + return this; + } + /** + *
+     * For debug-only, the name of the type pointed to by this handle, if
+     * available.
+     * 
+ * + * string maybe_type_name = 5; + * @return This builder for chaining. + */ + public Builder clearMaybeTypeName() { + + maybeTypeName_ = getDefaultInstance().getMaybeTypeName(); + onChanged(); + return this; + } + /** + *
+     * For debug-only, the name of the type pointed to by this handle, if
+     * available.
+     * 
+ * + * string maybe_type_name = 5; + * @param value The bytes for maybeTypeName to set. + * @return This builder for chaining. + */ + public Builder setMaybeTypeNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + maybeTypeName_ = value; + onChanged(); + return this; + } + + private java.util.List dtypesAndShapes_ = + java.util.Collections.emptyList(); + private void ensureDtypesAndShapesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dtypesAndShapes_ = new java.util.ArrayList(dtypesAndShapes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ResourceHandleProto.DtypeAndShape, org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.Builder, org.tensorflow.proto.ResourceHandleProto.DtypeAndShapeOrBuilder> dtypesAndShapesBuilder_; + + /** + *
+     * Data types and shapes for the underlying resource.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + public java.util.List getDtypesAndShapesList() { + if (dtypesAndShapesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dtypesAndShapes_); + } else { + return dtypesAndShapesBuilder_.getMessageList(); + } + } + /** + *
+     * Data types and shapes for the underlying resource.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + public int getDtypesAndShapesCount() { + if (dtypesAndShapesBuilder_ == null) { + return dtypesAndShapes_.size(); + } else { + return dtypesAndShapesBuilder_.getCount(); + } + } + /** + *
+     * Data types and shapes for the underlying resource.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + public org.tensorflow.proto.ResourceHandleProto.DtypeAndShape getDtypesAndShapes(int index) { + if (dtypesAndShapesBuilder_ == null) { + return dtypesAndShapes_.get(index); + } else { + return dtypesAndShapesBuilder_.getMessage(index); + } + } + /** + *
+     * Data types and shapes for the underlying resource.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + public Builder setDtypesAndShapes( + int index, org.tensorflow.proto.ResourceHandleProto.DtypeAndShape value) { + if (dtypesAndShapesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDtypesAndShapesIsMutable(); + dtypesAndShapes_.set(index, value); + onChanged(); + } else { + dtypesAndShapesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Data types and shapes for the underlying resource.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + public Builder setDtypesAndShapes( + int index, org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.Builder builderForValue) { + if (dtypesAndShapesBuilder_ == null) { + ensureDtypesAndShapesIsMutable(); + dtypesAndShapes_.set(index, builderForValue.build()); + onChanged(); + } else { + dtypesAndShapesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Data types and shapes for the underlying resource.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + public Builder addDtypesAndShapes(org.tensorflow.proto.ResourceHandleProto.DtypeAndShape value) { + if (dtypesAndShapesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDtypesAndShapesIsMutable(); + dtypesAndShapes_.add(value); + onChanged(); + } else { + dtypesAndShapesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Data types and shapes for the underlying resource.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + public Builder addDtypesAndShapes( + int index, org.tensorflow.proto.ResourceHandleProto.DtypeAndShape value) { + if (dtypesAndShapesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDtypesAndShapesIsMutable(); + dtypesAndShapes_.add(index, value); + onChanged(); + } else { + dtypesAndShapesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Data types and shapes for the underlying resource.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + public Builder addDtypesAndShapes( + org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.Builder builderForValue) { + if (dtypesAndShapesBuilder_ == null) { + ensureDtypesAndShapesIsMutable(); + dtypesAndShapes_.add(builderForValue.build()); + onChanged(); + } else { + dtypesAndShapesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Data types and shapes for the underlying resource.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + public Builder addDtypesAndShapes( + int index, org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.Builder builderForValue) { + if (dtypesAndShapesBuilder_ == null) { + ensureDtypesAndShapesIsMutable(); + dtypesAndShapes_.add(index, builderForValue.build()); + onChanged(); + } else { + dtypesAndShapesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Data types and shapes for the underlying resource.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + public Builder addAllDtypesAndShapes( + java.lang.Iterable values) { + if (dtypesAndShapesBuilder_ == null) { + ensureDtypesAndShapesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dtypesAndShapes_); + onChanged(); + } else { + dtypesAndShapesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Data types and shapes for the underlying resource.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + public Builder clearDtypesAndShapes() { + if (dtypesAndShapesBuilder_ == null) { + dtypesAndShapes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dtypesAndShapesBuilder_.clear(); + } + return this; + } + /** + *
+     * Data types and shapes for the underlying resource.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + public Builder removeDtypesAndShapes(int index) { + if (dtypesAndShapesBuilder_ == null) { + ensureDtypesAndShapesIsMutable(); + dtypesAndShapes_.remove(index); + onChanged(); + } else { + dtypesAndShapesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Data types and shapes for the underlying resource.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + public org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.Builder getDtypesAndShapesBuilder( + int index) { + return getDtypesAndShapesFieldBuilder().getBuilder(index); + } + /** + *
+     * Data types and shapes for the underlying resource.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + public org.tensorflow.proto.ResourceHandleProto.DtypeAndShapeOrBuilder getDtypesAndShapesOrBuilder( + int index) { + if (dtypesAndShapesBuilder_ == null) { + return dtypesAndShapes_.get(index); } else { + return dtypesAndShapesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Data types and shapes for the underlying resource.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + public java.util.List + getDtypesAndShapesOrBuilderList() { + if (dtypesAndShapesBuilder_ != null) { + return dtypesAndShapesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dtypesAndShapes_); + } + } + /** + *
+     * Data types and shapes for the underlying resource.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + public org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.Builder addDtypesAndShapesBuilder() { + return getDtypesAndShapesFieldBuilder().addBuilder( + org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.getDefaultInstance()); + } + /** + *
+     * Data types and shapes for the underlying resource.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + public org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.Builder addDtypesAndShapesBuilder( + int index) { + return getDtypesAndShapesFieldBuilder().addBuilder( + index, org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.getDefaultInstance()); + } + /** + *
+     * Data types and shapes for the underlying resource.
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + public java.util.List + getDtypesAndShapesBuilderList() { + return getDtypesAndShapesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ResourceHandleProto.DtypeAndShape, org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.Builder, org.tensorflow.proto.ResourceHandleProto.DtypeAndShapeOrBuilder> + getDtypesAndShapesFieldBuilder() { + if (dtypesAndShapesBuilder_ == null) { + dtypesAndShapesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ResourceHandleProto.DtypeAndShape, org.tensorflow.proto.ResourceHandleProto.DtypeAndShape.Builder, org.tensorflow.proto.ResourceHandleProto.DtypeAndShapeOrBuilder>( + dtypesAndShapes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dtypesAndShapes_ = null; + } + return dtypesAndShapesBuilder_; + } + @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:tensorflow.ResourceHandleProto) + } + + // @@protoc_insertion_point(class_scope:tensorflow.ResourceHandleProto) + private static final org.tensorflow.proto.ResourceHandleProto DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.ResourceHandleProto(); + } + + public static org.tensorflow.proto.ResourceHandleProto getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceHandleProto 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 org.tensorflow.proto.ResourceHandleProto getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ResourceHandleProtoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ResourceHandleProtoOrBuilder.java new file mode 100644 index 00000000000..0dca457a0fe --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ResourceHandleProtoOrBuilder.java @@ -0,0 +1,146 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/resource_handle.proto + +package org.tensorflow.proto; + +public interface ResourceHandleProtoOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.ResourceHandleProto) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Unique name for the device containing the resource.
+   * 
+ * + * string device = 1; + * @return The device. + */ + java.lang.String getDevice(); + /** + *
+   * Unique name for the device containing the resource.
+   * 
+ * + * string device = 1; + * @return The bytes for device. + */ + com.google.protobuf.ByteString + getDeviceBytes(); + + /** + *
+   * Container in which this resource is placed.
+   * 
+ * + * string container = 2; + * @return The container. + */ + java.lang.String getContainer(); + /** + *
+   * Container in which this resource is placed.
+   * 
+ * + * string container = 2; + * @return The bytes for container. + */ + com.google.protobuf.ByteString + getContainerBytes(); + + /** + *
+   * Unique name of this resource.
+   * 
+ * + * string name = 3; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Unique name of this resource.
+   * 
+ * + * string name = 3; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Hash code for the type of the resource. Is only valid in the same device
+   * and in the same execution.
+   * 
+ * + * uint64 hash_code = 4; + * @return The hashCode. + */ + long getHashCode(); + + /** + *
+   * For debug-only, the name of the type pointed to by this handle, if
+   * available.
+   * 
+ * + * string maybe_type_name = 5; + * @return The maybeTypeName. + */ + java.lang.String getMaybeTypeName(); + /** + *
+   * For debug-only, the name of the type pointed to by this handle, if
+   * available.
+   * 
+ * + * string maybe_type_name = 5; + * @return The bytes for maybeTypeName. + */ + com.google.protobuf.ByteString + getMaybeTypeNameBytes(); + + /** + *
+   * Data types and shapes for the underlying resource.
+   * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + java.util.List + getDtypesAndShapesList(); + /** + *
+   * Data types and shapes for the underlying resource.
+   * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + org.tensorflow.proto.ResourceHandleProto.DtypeAndShape getDtypesAndShapes(int index); + /** + *
+   * Data types and shapes for the underlying resource.
+   * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + int getDtypesAndShapesCount(); + /** + *
+   * Data types and shapes for the underlying resource.
+   * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + java.util.List + getDtypesAndShapesOrBuilderList(); + /** + *
+   * Data types and shapes for the underlying resource.
+   * 
+ * + * repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; + */ + org.tensorflow.proto.ResourceHandleProto.DtypeAndShapeOrBuilder getDtypesAndShapesOrBuilder( + int index); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RewriterConfig.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RewriterConfig.java new file mode 100644 index 00000000000..ae97c9cc75f --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RewriterConfig.java @@ -0,0 +1,7425 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/rewriter_config.proto + +package org.tensorflow.proto; + +/** + *
+ * Graph rewriting is experimental and subject to change, not covered by any
+ * API stability guarantees.
+ * 
+ * + * Protobuf type {@code tensorflow.RewriterConfig} + */ +public final class RewriterConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.RewriterConfig) + RewriterConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use RewriterConfig.newBuilder() to construct. + private RewriterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RewriterConfig() { + cpuLayoutConversion_ = 0; + layoutOptimizer_ = 0; + constantFolding_ = 0; + shapeOptimization_ = 0; + remapping_ = 0; + commonSubgraphElimination_ = 0; + arithmeticOptimization_ = 0; + dependencyOptimization_ = 0; + loopOptimization_ = 0; + functionOptimization_ = 0; + debugStripper_ = 0; + scopedAllocatorOptimization_ = 0; + pinToHostOptimization_ = 0; + implementationSelector_ = 0; + autoMixedPrecision_ = 0; + autoMixedPrecisionMkl_ = 0; + autoMixedPrecisionOnednnBfloat16_ = 0; + autoMixedPrecisionCpu_ = 0; + usePluginOptimizers_ = 0; + experimentalConditionalCodeMotion_ = 0; + metaOptimizerIterations_ = 0; + memoryOptimization_ = 0; + memoryOptimizerTargetNodeNameScope_ = ""; + optimizers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + customOptimizers_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RewriterConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.RewriterConfigProtos.internal_static_tensorflow_RewriterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.RewriterConfigProtos.internal_static_tensorflow_RewriterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.RewriterConfig.class, org.tensorflow.proto.RewriterConfig.Builder.class); + } + + /** + * Protobuf enum {@code tensorflow.RewriterConfig.Toggle} + */ + public enum Toggle + implements com.google.protobuf.ProtocolMessageEnum { + /** + * DEFAULT = 0; + */ + DEFAULT(0), + /** + * ON = 1; + */ + ON(1), + /** + * OFF = 2; + */ + OFF(2), + /** + *
+     * Enable some aggressive optimizations that use assumptions that TF graphs
+     * may break. For example, assume the shape of a placeholder matches its
+     * actual feed.
+     * 
+ * + * AGGRESSIVE = 3; + */ + AGGRESSIVE(3), + /** + *
+     * Run MLIR pass if there's one implemented in TFG, do nothing otherwise.
+     * I.e., if there's no corresponding TFG pass, it's an OFF. This is supposed
+     * to be mapped with `ON` and there's no `AGGRESSIVE` in MLIR pass now.
+     * 
+ * + * EXPERIMENTAL_MLIR = 4; + */ + EXPERIMENTAL_MLIR(4), + /** + *
+     * Run both MLIR and Grappler passes consecutively and MLIR pass will come
+     * first.
+     * 
+ * + * EXPERIMENTAL_BOTH = 5; + */ + EXPERIMENTAL_BOTH(5), + UNRECOGNIZED(-1), + ; + + /** + * DEFAULT = 0; + */ + public static final int DEFAULT_VALUE = 0; + /** + * ON = 1; + */ + public static final int ON_VALUE = 1; + /** + * OFF = 2; + */ + public static final int OFF_VALUE = 2; + /** + *
+     * Enable some aggressive optimizations that use assumptions that TF graphs
+     * may break. For example, assume the shape of a placeholder matches its
+     * actual feed.
+     * 
+ * + * AGGRESSIVE = 3; + */ + public static final int AGGRESSIVE_VALUE = 3; + /** + *
+     * Run MLIR pass if there's one implemented in TFG, do nothing otherwise.
+     * I.e., if there's no corresponding TFG pass, it's an OFF. This is supposed
+     * to be mapped with `ON` and there's no `AGGRESSIVE` in MLIR pass now.
+     * 
+ * + * EXPERIMENTAL_MLIR = 4; + */ + public static final int EXPERIMENTAL_MLIR_VALUE = 4; + /** + *
+     * Run both MLIR and Grappler passes consecutively and MLIR pass will come
+     * first.
+     * 
+ * + * EXPERIMENTAL_BOTH = 5; + */ + public static final int EXPERIMENTAL_BOTH_VALUE = 5; + + + 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 Toggle 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 Toggle forNumber(int value) { + switch (value) { + case 0: return DEFAULT; + case 1: return ON; + case 2: return OFF; + case 3: return AGGRESSIVE; + case 4: return EXPERIMENTAL_MLIR; + case 5: return EXPERIMENTAL_BOTH; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Toggle> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Toggle findValueByNumber(int number) { + return Toggle.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 org.tensorflow.proto.RewriterConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Toggle[] VALUES = values(); + + public static Toggle 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 Toggle(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:tensorflow.RewriterConfig.Toggle) + } + + /** + *
+   * Enum for layout conversion between NCHW and NHWC on CPU. Default is OFF.
+   * 
+ * + * Protobuf enum {@code tensorflow.RewriterConfig.CpuLayout} + */ + public enum CpuLayout + implements com.google.protobuf.ProtocolMessageEnum { + /** + * NO_CONVERSION_ON_CPU = 0; + */ + NO_CONVERSION_ON_CPU(0), + /** + * NCHW_TO_NHWC = 1; + */ + NCHW_TO_NHWC(1), + /** + * NHWC_TO_NCHW = 2; + */ + NHWC_TO_NCHW(2), + UNRECOGNIZED(-1), + ; + + /** + * NO_CONVERSION_ON_CPU = 0; + */ + public static final int NO_CONVERSION_ON_CPU_VALUE = 0; + /** + * NCHW_TO_NHWC = 1; + */ + public static final int NCHW_TO_NHWC_VALUE = 1; + /** + * NHWC_TO_NCHW = 2; + */ + public static final int NHWC_TO_NCHW_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 CpuLayout 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 CpuLayout forNumber(int value) { + switch (value) { + case 0: return NO_CONVERSION_ON_CPU; + case 1: return NCHW_TO_NHWC; + case 2: return NHWC_TO_NCHW; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CpuLayout> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CpuLayout findValueByNumber(int number) { + return CpuLayout.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 org.tensorflow.proto.RewriterConfig.getDescriptor().getEnumTypes().get(1); + } + + private static final CpuLayout[] VALUES = values(); + + public static CpuLayout 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 CpuLayout(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:tensorflow.RewriterConfig.CpuLayout) + } + + /** + *
+   * Enum controlling the number of times to run optimizers. The default is to
+   * run them twice.
+   * 
+ * + * Protobuf enum {@code tensorflow.RewriterConfig.NumIterationsType} + */ + public enum NumIterationsType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * DEFAULT_NUM_ITERS = 0; + */ + DEFAULT_NUM_ITERS(0), + /** + * ONE = 1; + */ + ONE(1), + /** + * TWO = 2; + */ + TWO(2), + UNRECOGNIZED(-1), + ; + + /** + * DEFAULT_NUM_ITERS = 0; + */ + public static final int DEFAULT_NUM_ITERS_VALUE = 0; + /** + * ONE = 1; + */ + public static final int ONE_VALUE = 1; + /** + * TWO = 2; + */ + public static final int TWO_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 NumIterationsType 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 NumIterationsType forNumber(int value) { + switch (value) { + case 0: return DEFAULT_NUM_ITERS; + case 1: return ONE; + case 2: return TWO; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + NumIterationsType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NumIterationsType findValueByNumber(int number) { + return NumIterationsType.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 org.tensorflow.proto.RewriterConfig.getDescriptor().getEnumTypes().get(2); + } + + private static final NumIterationsType[] VALUES = values(); + + public static NumIterationsType 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 NumIterationsType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:tensorflow.RewriterConfig.NumIterationsType) + } + + /** + * Protobuf enum {@code tensorflow.RewriterConfig.MemOptType} + */ + public enum MemOptType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * The default setting (SCHEDULING and SWAPPING HEURISTICS only)
+     * 
+ * + * DEFAULT_MEM_OPT = 0; + */ + DEFAULT_MEM_OPT(0), + /** + *
+     * Disabled in the meta-optimizer.
+     * 
+ * + * NO_MEM_OPT = 1; + */ + NO_MEM_OPT(1), + /** + *
+     * Driven by manual op-level annotations.
+     * 
+ * + * MANUAL = 2; + */ + MANUAL(2), + /** + *
+     * Swapping heuristic will move a tensor from the GPU to the CPU and move
+     * it back when needed to reduce peak memory usage.
+     * 
+ * + * SWAPPING_HEURISTICS = 4; + */ + SWAPPING_HEURISTICS(4), + /** + *
+     * Recomputation heuristics will recompute ops (such as Relu activation)
+     * during backprop instead of storing them, reducing peak memory usage.
+     * 
+ * + * RECOMPUTATION_HEURISTICS = 5; + */ + RECOMPUTATION_HEURISTICS(5), + /** + *
+     * Scheduling will split big ops such as AddN and try to enforce a schedule
+     * of the new computations that decreases peak memory usage.
+     * 
+ * + * SCHEDULING_HEURISTICS = 6; + */ + SCHEDULING_HEURISTICS(6), + /** + *
+     * Use any combination of swapping and recomputation heuristics.
+     * 
+ * + * HEURISTICS = 3; + */ + HEURISTICS(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * The default setting (SCHEDULING and SWAPPING HEURISTICS only)
+     * 
+ * + * DEFAULT_MEM_OPT = 0; + */ + public static final int DEFAULT_MEM_OPT_VALUE = 0; + /** + *
+     * Disabled in the meta-optimizer.
+     * 
+ * + * NO_MEM_OPT = 1; + */ + public static final int NO_MEM_OPT_VALUE = 1; + /** + *
+     * Driven by manual op-level annotations.
+     * 
+ * + * MANUAL = 2; + */ + public static final int MANUAL_VALUE = 2; + /** + *
+     * Swapping heuristic will move a tensor from the GPU to the CPU and move
+     * it back when needed to reduce peak memory usage.
+     * 
+ * + * SWAPPING_HEURISTICS = 4; + */ + public static final int SWAPPING_HEURISTICS_VALUE = 4; + /** + *
+     * Recomputation heuristics will recompute ops (such as Relu activation)
+     * during backprop instead of storing them, reducing peak memory usage.
+     * 
+ * + * RECOMPUTATION_HEURISTICS = 5; + */ + public static final int RECOMPUTATION_HEURISTICS_VALUE = 5; + /** + *
+     * Scheduling will split big ops such as AddN and try to enforce a schedule
+     * of the new computations that decreases peak memory usage.
+     * 
+ * + * SCHEDULING_HEURISTICS = 6; + */ + public static final int SCHEDULING_HEURISTICS_VALUE = 6; + /** + *
+     * Use any combination of swapping and recomputation heuristics.
+     * 
+ * + * HEURISTICS = 3; + */ + public static final int HEURISTICS_VALUE = 3; + + + 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 MemOptType 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 MemOptType forNumber(int value) { + switch (value) { + case 0: return DEFAULT_MEM_OPT; + case 1: return NO_MEM_OPT; + case 2: return MANUAL; + case 4: return SWAPPING_HEURISTICS; + case 5: return RECOMPUTATION_HEURISTICS; + case 6: return SCHEDULING_HEURISTICS; + case 3: return HEURISTICS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MemOptType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MemOptType findValueByNumber(int number) { + return MemOptType.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 org.tensorflow.proto.RewriterConfig.getDescriptor().getEnumTypes().get(3); + } + + private static final MemOptType[] VALUES = values(); + + public static MemOptType 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 MemOptType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:tensorflow.RewriterConfig.MemOptType) + } + + public interface CustomGraphOptimizerOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.RewriterConfig.CustomGraphOptimizer) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * map<string, .tensorflow.AttrValue> parameter_map = 2; + */ + int getParameterMapCount(); + /** + * map<string, .tensorflow.AttrValue> parameter_map = 2; + */ + boolean containsParameterMap( + java.lang.String key); + /** + * Use {@link #getParameterMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getParameterMap(); + /** + * map<string, .tensorflow.AttrValue> parameter_map = 2; + */ + java.util.Map + getParameterMapMap(); + /** + * map<string, .tensorflow.AttrValue> parameter_map = 2; + */ + + /* nullable */ +org.tensorflow.proto.AttrValue getParameterMapOrDefault( + java.lang.String key, + /* nullable */ +org.tensorflow.proto.AttrValue defaultValue); + /** + * map<string, .tensorflow.AttrValue> parameter_map = 2; + */ + + org.tensorflow.proto.AttrValue getParameterMapOrThrow( + java.lang.String key); + } + /** + *
+   * Message to describe custom graph optimizer and its parameters
+   * 
+ * + * Protobuf type {@code tensorflow.RewriterConfig.CustomGraphOptimizer} + */ + public static final class CustomGraphOptimizer extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.RewriterConfig.CustomGraphOptimizer) + CustomGraphOptimizerOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomGraphOptimizer.newBuilder() to construct. + private CustomGraphOptimizer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CustomGraphOptimizer() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CustomGraphOptimizer(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.RewriterConfigProtos.internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetParameterMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.RewriterConfigProtos.internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer.class, org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETER_MAP_FIELD_NUMBER = 2; + private static final class ParameterMapDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, org.tensorflow.proto.AttrValue> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.tensorflow.proto.RewriterConfigProtos.internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_ParameterMapEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + org.tensorflow.proto.AttrValue.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, org.tensorflow.proto.AttrValue> parameterMap_; + private com.google.protobuf.MapField + internalGetParameterMap() { + if (parameterMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParameterMapDefaultEntryHolder.defaultEntry); + } + return parameterMap_; + } + + public int getParameterMapCount() { + return internalGetParameterMap().getMap().size(); + } + /** + * map<string, .tensorflow.AttrValue> parameter_map = 2; + */ + + @java.lang.Override + public boolean containsParameterMap( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetParameterMap().getMap().containsKey(key); + } + /** + * Use {@link #getParameterMapMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParameterMap() { + return getParameterMapMap(); + } + /** + * map<string, .tensorflow.AttrValue> parameter_map = 2; + */ + @java.lang.Override + + public java.util.Map getParameterMapMap() { + return internalGetParameterMap().getMap(); + } + /** + * map<string, .tensorflow.AttrValue> parameter_map = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.AttrValue getParameterMapOrDefault( + java.lang.String key, + org.tensorflow.proto.AttrValue defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParameterMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .tensorflow.AttrValue> parameter_map = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.AttrValue getParameterMapOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParameterMap().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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetParameterMap(), + ParameterMapDefaultEntryHolder.defaultEntry, + 2); + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + for (java.util.Map.Entry entry + : internalGetParameterMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + parameterMap__ = ParameterMapDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, parameterMap__); + } + 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 org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer)) { + return super.equals(obj); + } + org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer other = (org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!internalGetParameterMap().equals( + other.internalGetParameterMap())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (!internalGetParameterMap().getMap().isEmpty()) { + hash = (37 * hash) + PARAMETER_MAP_FIELD_NUMBER; + hash = (53 * hash) + internalGetParameterMap().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer 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 org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer 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 org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer 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(org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer 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; + } + /** + *
+     * Message to describe custom graph optimizer and its parameters
+     * 
+ * + * Protobuf type {@code tensorflow.RewriterConfig.CustomGraphOptimizer} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.RewriterConfig.CustomGraphOptimizer) + org.tensorflow.proto.RewriterConfig.CustomGraphOptimizerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.RewriterConfigProtos.internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetParameterMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 2: + return internalGetMutableParameterMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.RewriterConfigProtos.internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer.class, org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer.Builder.class); + } + + // Construct using org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + internalGetMutableParameterMap().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.RewriterConfigProtos.internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer getDefaultInstanceForType() { + return org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer build() { + org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer buildPartial() { + org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer result = new org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.parameterMap_ = internalGetParameterMap(); + result.parameterMap_.makeImmutable(); + 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 org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer) { + return mergeFrom((org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer other) { + if (other == org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + internalGetMutableParameterMap().mergeFrom( + other.internalGetParameterMap()); + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + com.google.protobuf.MapEntry + parameterMap__ = input.readMessage( + ParameterMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableParameterMap().getMutableMap().put( + parameterMap__.getKey(), parameterMap__.getValue()); + 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 java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, org.tensorflow.proto.AttrValue> parameterMap_; + private com.google.protobuf.MapField + internalGetParameterMap() { + if (parameterMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParameterMapDefaultEntryHolder.defaultEntry); + } + return parameterMap_; + } + private com.google.protobuf.MapField + internalGetMutableParameterMap() { + onChanged();; + if (parameterMap_ == null) { + parameterMap_ = com.google.protobuf.MapField.newMapField( + ParameterMapDefaultEntryHolder.defaultEntry); + } + if (!parameterMap_.isMutable()) { + parameterMap_ = parameterMap_.copy(); + } + return parameterMap_; + } + + public int getParameterMapCount() { + return internalGetParameterMap().getMap().size(); + } + /** + * map<string, .tensorflow.AttrValue> parameter_map = 2; + */ + + @java.lang.Override + public boolean containsParameterMap( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetParameterMap().getMap().containsKey(key); + } + /** + * Use {@link #getParameterMapMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParameterMap() { + return getParameterMapMap(); + } + /** + * map<string, .tensorflow.AttrValue> parameter_map = 2; + */ + @java.lang.Override + + public java.util.Map getParameterMapMap() { + return internalGetParameterMap().getMap(); + } + /** + * map<string, .tensorflow.AttrValue> parameter_map = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.AttrValue getParameterMapOrDefault( + java.lang.String key, + org.tensorflow.proto.AttrValue defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParameterMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .tensorflow.AttrValue> parameter_map = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.AttrValue getParameterMapOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParameterMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearParameterMap() { + internalGetMutableParameterMap().getMutableMap() + .clear(); + return this; + } + /** + * map<string, .tensorflow.AttrValue> parameter_map = 2; + */ + + public Builder removeParameterMap( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableParameterMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableParameterMap() { + return internalGetMutableParameterMap().getMutableMap(); + } + /** + * map<string, .tensorflow.AttrValue> parameter_map = 2; + */ + public Builder putParameterMap( + java.lang.String key, + org.tensorflow.proto.AttrValue value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableParameterMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, .tensorflow.AttrValue> parameter_map = 2; + */ + + public Builder putAllParameterMap( + java.util.Map values) { + internalGetMutableParameterMap().getMutableMap() + .putAll(values); + 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:tensorflow.RewriterConfig.CustomGraphOptimizer) + } + + // @@protoc_insertion_point(class_scope:tensorflow.RewriterConfig.CustomGraphOptimizer) + private static final org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer(); + } + + public static org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomGraphOptimizer 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 org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int CPU_LAYOUT_CONVERSION_FIELD_NUMBER = 50; + private int cpuLayoutConversion_; + /** + *
+   * CPU Conversion settings between NHCW and NCHW.
+   * 
+ * + * .tensorflow.RewriterConfig.CpuLayout cpu_layout_conversion = 50; + * @return The enum numeric value on the wire for cpuLayoutConversion. + */ + @java.lang.Override public int getCpuLayoutConversionValue() { + return cpuLayoutConversion_; + } + /** + *
+   * CPU Conversion settings between NHCW and NCHW.
+   * 
+ * + * .tensorflow.RewriterConfig.CpuLayout cpu_layout_conversion = 50; + * @return The cpuLayoutConversion. + */ + @java.lang.Override public org.tensorflow.proto.RewriterConfig.CpuLayout getCpuLayoutConversion() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.CpuLayout result = org.tensorflow.proto.RewriterConfig.CpuLayout.valueOf(cpuLayoutConversion_); + return result == null ? org.tensorflow.proto.RewriterConfig.CpuLayout.UNRECOGNIZED : result; + } + + public static final int LAYOUT_OPTIMIZER_FIELD_NUMBER = 1; + private int layoutOptimizer_; + /** + *
+   * Optimize tensor layouts (default is ON)
+   * e.g. This will try to use NCHW layout on GPU which is faster.
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle layout_optimizer = 1; + * @return The enum numeric value on the wire for layoutOptimizer. + */ + @java.lang.Override public int getLayoutOptimizerValue() { + return layoutOptimizer_; + } + /** + *
+   * Optimize tensor layouts (default is ON)
+   * e.g. This will try to use NCHW layout on GPU which is faster.
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle layout_optimizer = 1; + * @return The layoutOptimizer. + */ + @java.lang.Override public org.tensorflow.proto.RewriterConfig.Toggle getLayoutOptimizer() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(layoutOptimizer_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + + public static final int CONSTANT_FOLDING_FIELD_NUMBER = 3; + private int constantFolding_; + /** + *
+   * Fold constants (default is ON)
+   * Statically infer the value of tensors when possible, and materialize the
+   * result using constants.
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle constant_folding = 3; + * @return The enum numeric value on the wire for constantFolding. + */ + @java.lang.Override public int getConstantFoldingValue() { + return constantFolding_; + } + /** + *
+   * Fold constants (default is ON)
+   * Statically infer the value of tensors when possible, and materialize the
+   * result using constants.
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle constant_folding = 3; + * @return The constantFolding. + */ + @java.lang.Override public org.tensorflow.proto.RewriterConfig.Toggle getConstantFolding() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(constantFolding_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + + public static final int SHAPE_OPTIMIZATION_FIELD_NUMBER = 13; + private int shapeOptimization_; + /** + *
+   * Shape optimizations (default is ON)
+   * Simplify computations made on shapes.
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle shape_optimization = 13; + * @return The enum numeric value on the wire for shapeOptimization. + */ + @java.lang.Override public int getShapeOptimizationValue() { + return shapeOptimization_; + } + /** + *
+   * Shape optimizations (default is ON)
+   * Simplify computations made on shapes.
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle shape_optimization = 13; + * @return The shapeOptimization. + */ + @java.lang.Override public org.tensorflow.proto.RewriterConfig.Toggle getShapeOptimization() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(shapeOptimization_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + + public static final int REMAPPING_FIELD_NUMBER = 14; + private int remapping_; + /** + *
+   * Remapping (default is ON)
+   * Remap subgraphs onto more efficient implementations.
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle remapping = 14; + * @return The enum numeric value on the wire for remapping. + */ + @java.lang.Override public int getRemappingValue() { + return remapping_; + } + /** + *
+   * Remapping (default is ON)
+   * Remap subgraphs onto more efficient implementations.
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle remapping = 14; + * @return The remapping. + */ + @java.lang.Override public org.tensorflow.proto.RewriterConfig.Toggle getRemapping() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(remapping_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + + public static final int COMMON_SUBGRAPH_ELIMINATION_FIELD_NUMBER = 24; + private int commonSubgraphElimination_; + /** + *
+   * Common subgraph elimination (default is ON)
+   * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle common_subgraph_elimination = 24; + * @return The enum numeric value on the wire for commonSubgraphElimination. + */ + @java.lang.Override public int getCommonSubgraphEliminationValue() { + return commonSubgraphElimination_; + } + /** + *
+   * Common subgraph elimination (default is ON)
+   * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle common_subgraph_elimination = 24; + * @return The commonSubgraphElimination. + */ + @java.lang.Override public org.tensorflow.proto.RewriterConfig.Toggle getCommonSubgraphElimination() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(commonSubgraphElimination_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + + public static final int ARITHMETIC_OPTIMIZATION_FIELD_NUMBER = 7; + private int arithmeticOptimization_; + /** + *
+   * Arithmetic optimizations (default is ON)
+   * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7; + * @return The enum numeric value on the wire for arithmeticOptimization. + */ + @java.lang.Override public int getArithmeticOptimizationValue() { + return arithmeticOptimization_; + } + /** + *
+   * Arithmetic optimizations (default is ON)
+   * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7; + * @return The arithmeticOptimization. + */ + @java.lang.Override public org.tensorflow.proto.RewriterConfig.Toggle getArithmeticOptimization() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(arithmeticOptimization_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + + public static final int DEPENDENCY_OPTIMIZATION_FIELD_NUMBER = 8; + private int dependencyOptimization_; + /** + *
+   * Control dependency optimizations (default is ON).
+   * Remove redundant control dependencies, which may enable other optimization.
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle dependency_optimization = 8; + * @return The enum numeric value on the wire for dependencyOptimization. + */ + @java.lang.Override public int getDependencyOptimizationValue() { + return dependencyOptimization_; + } + /** + *
+   * Control dependency optimizations (default is ON).
+   * Remove redundant control dependencies, which may enable other optimization.
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle dependency_optimization = 8; + * @return The dependencyOptimization. + */ + @java.lang.Override public org.tensorflow.proto.RewriterConfig.Toggle getDependencyOptimization() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(dependencyOptimization_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + + public static final int LOOP_OPTIMIZATION_FIELD_NUMBER = 9; + private int loopOptimization_; + /** + *
+   * Loop optimizations (default is ON).
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle loop_optimization = 9; + * @return The enum numeric value on the wire for loopOptimization. + */ + @java.lang.Override public int getLoopOptimizationValue() { + return loopOptimization_; + } + /** + *
+   * Loop optimizations (default is ON).
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle loop_optimization = 9; + * @return The loopOptimization. + */ + @java.lang.Override public org.tensorflow.proto.RewriterConfig.Toggle getLoopOptimization() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(loopOptimization_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + + public static final int FUNCTION_OPTIMIZATION_FIELD_NUMBER = 10; + private int functionOptimization_; + /** + *
+   * Function optimizations (default is ON).
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle function_optimization = 10; + * @return The enum numeric value on the wire for functionOptimization. + */ + @java.lang.Override public int getFunctionOptimizationValue() { + return functionOptimization_; + } + /** + *
+   * Function optimizations (default is ON).
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle function_optimization = 10; + * @return The functionOptimization. + */ + @java.lang.Override public org.tensorflow.proto.RewriterConfig.Toggle getFunctionOptimization() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(functionOptimization_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + + public static final int DEBUG_STRIPPER_FIELD_NUMBER = 11; + private int debugStripper_; + /** + *
+   * Strips debug-related nodes from the graph (off by default).
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle debug_stripper = 11; + * @return The enum numeric value on the wire for debugStripper. + */ + @java.lang.Override public int getDebugStripperValue() { + return debugStripper_; + } + /** + *
+   * Strips debug-related nodes from the graph (off by default).
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle debug_stripper = 11; + * @return The debugStripper. + */ + @java.lang.Override public org.tensorflow.proto.RewriterConfig.Toggle getDebugStripper() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(debugStripper_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + + public static final int DISABLE_MODEL_PRUNING_FIELD_NUMBER = 2; + private boolean disableModelPruning_; + /** + *
+   * If true, don't remove unnecessary ops from the graph
+   * 
+ * + * bool disable_model_pruning = 2; + * @return The disableModelPruning. + */ + @java.lang.Override + public boolean getDisableModelPruning() { + return disableModelPruning_; + } + + public static final int SCOPED_ALLOCATOR_OPTIMIZATION_FIELD_NUMBER = 15; + private int scopedAllocatorOptimization_; + /** + *
+   * Try to allocate some independent Op outputs contiguously in order to
+   * merge or eliminate downstream Ops (off by default).
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15; + * @return The enum numeric value on the wire for scopedAllocatorOptimization. + */ + @java.lang.Override public int getScopedAllocatorOptimizationValue() { + return scopedAllocatorOptimization_; + } + /** + *
+   * Try to allocate some independent Op outputs contiguously in order to
+   * merge or eliminate downstream Ops (off by default).
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15; + * @return The scopedAllocatorOptimization. + */ + @java.lang.Override public org.tensorflow.proto.RewriterConfig.Toggle getScopedAllocatorOptimization() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(scopedAllocatorOptimization_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + + public static final int PIN_TO_HOST_OPTIMIZATION_FIELD_NUMBER = 18; + private int pinToHostOptimization_; + /** + *
+   * Force small ops onto the CPU (default is OFF).
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18; + * @return The enum numeric value on the wire for pinToHostOptimization. + */ + @java.lang.Override public int getPinToHostOptimizationValue() { + return pinToHostOptimization_; + } + /** + *
+   * Force small ops onto the CPU (default is OFF).
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18; + * @return The pinToHostOptimization. + */ + @java.lang.Override public org.tensorflow.proto.RewriterConfig.Toggle getPinToHostOptimization() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(pinToHostOptimization_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + + public static final int IMPLEMENTATION_SELECTOR_FIELD_NUMBER = 22; + private int implementationSelector_; + /** + *
+   * Enable the swap of kernel implementations based on the device placement
+   * (default is ON).
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle implementation_selector = 22; + * @return The enum numeric value on the wire for implementationSelector. + */ + @java.lang.Override public int getImplementationSelectorValue() { + return implementationSelector_; + } + /** + *
+   * Enable the swap of kernel implementations based on the device placement
+   * (default is ON).
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle implementation_selector = 22; + * @return The implementationSelector. + */ + @java.lang.Override public org.tensorflow.proto.RewriterConfig.Toggle getImplementationSelector() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(implementationSelector_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + + public static final int AUTO_MIXED_PRECISION_FIELD_NUMBER = 23; + private int autoMixedPrecision_; + /** + *
+   * Optimize data types for CUDA (default is OFF).
+   * This will try to use float16 on GPU which is faster.
+   * Note that this can change the numerical stability of the graph and may
+   * require the use of loss scaling to maintain model convergence.
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision = 23; + * @return The enum numeric value on the wire for autoMixedPrecision. + */ + @java.lang.Override public int getAutoMixedPrecisionValue() { + return autoMixedPrecision_; + } + /** + *
+   * Optimize data types for CUDA (default is OFF).
+   * This will try to use float16 on GPU which is faster.
+   * Note that this can change the numerical stability of the graph and may
+   * require the use of loss scaling to maintain model convergence.
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision = 23; + * @return The autoMixedPrecision. + */ + @java.lang.Override public org.tensorflow.proto.RewriterConfig.Toggle getAutoMixedPrecision() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(autoMixedPrecision_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + + public static final int AUTO_MIXED_PRECISION_MKL_FIELD_NUMBER = 25; + private int autoMixedPrecisionMkl_; + /** + *
+   * Optimize data types for oneDNN (default is OFF).
+   * This will try to use bfloat16 on CPUs, which is faster.
+   * Note that this can change the numerical stability of the graph.
+   * Note: this is deprecated.
+   * It is replaced by auto_mixed_precision_onednn_bfloat16
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_mkl = 25; + * @return The enum numeric value on the wire for autoMixedPrecisionMkl. + */ + @java.lang.Override public int getAutoMixedPrecisionMklValue() { + return autoMixedPrecisionMkl_; + } + /** + *
+   * Optimize data types for oneDNN (default is OFF).
+   * This will try to use bfloat16 on CPUs, which is faster.
+   * Note that this can change the numerical stability of the graph.
+   * Note: this is deprecated.
+   * It is replaced by auto_mixed_precision_onednn_bfloat16
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_mkl = 25; + * @return The autoMixedPrecisionMkl. + */ + @java.lang.Override public org.tensorflow.proto.RewriterConfig.Toggle getAutoMixedPrecisionMkl() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(autoMixedPrecisionMkl_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + + public static final int AUTO_MIXED_PRECISION_ONEDNN_BFLOAT16_FIELD_NUMBER = 31; + private int autoMixedPrecisionOnednnBfloat16_; + /** + *
+   * Optimize data types for oneDNN (default is OFF).
+   * This will try to use bfloat16 on CPUs, which is faster.
+   * Note that this can change the numerical stability of the graph.
+   * Note: this is equivalent to the deprecated option auto_mixed_precision_mkl
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_onednn_bfloat16 = 31; + * @return The enum numeric value on the wire for autoMixedPrecisionOnednnBfloat16. + */ + @java.lang.Override public int getAutoMixedPrecisionOnednnBfloat16Value() { + return autoMixedPrecisionOnednnBfloat16_; + } + /** + *
+   * Optimize data types for oneDNN (default is OFF).
+   * This will try to use bfloat16 on CPUs, which is faster.
+   * Note that this can change the numerical stability of the graph.
+   * Note: this is equivalent to the deprecated option auto_mixed_precision_mkl
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_onednn_bfloat16 = 31; + * @return The autoMixedPrecisionOnednnBfloat16. + */ + @java.lang.Override public org.tensorflow.proto.RewriterConfig.Toggle getAutoMixedPrecisionOnednnBfloat16() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(autoMixedPrecisionOnednnBfloat16_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + + public static final int AUTO_MIXED_PRECISION_CPU_FIELD_NUMBER = 29; + private int autoMixedPrecisionCpu_; + /** + *
+   * Emulate a model using data type float16 on CPU (default is OFF).
+   * This will try to emulate the float16 inputs and outputs of an operator
+   * on CPU to have better correlation with float16 on GPU; however the
+   * computation in the operator is based on float32.
+   * Note that this can change the numerical stability of the graph.
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_cpu = 29; + * @return The enum numeric value on the wire for autoMixedPrecisionCpu. + */ + @java.lang.Override public int getAutoMixedPrecisionCpuValue() { + return autoMixedPrecisionCpu_; + } + /** + *
+   * Emulate a model using data type float16 on CPU (default is OFF).
+   * This will try to emulate the float16 inputs and outputs of an operator
+   * on CPU to have better correlation with float16 on GPU; however the
+   * computation in the operator is based on float32.
+   * Note that this can change the numerical stability of the graph.
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_cpu = 29; + * @return The autoMixedPrecisionCpu. + */ + @java.lang.Override public org.tensorflow.proto.RewriterConfig.Toggle getAutoMixedPrecisionCpu() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(autoMixedPrecisionCpu_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + + public static final int DISABLE_META_OPTIMIZER_FIELD_NUMBER = 19; + private boolean disableMetaOptimizer_; + /** + *
+   * Disable the entire meta optimizer (off by default).
+   * 
+ * + * bool disable_meta_optimizer = 19; + * @return The disableMetaOptimizer. + */ + @java.lang.Override + public boolean getDisableMetaOptimizer() { + return disableMetaOptimizer_; + } + + public static final int DISABLE_TFG_OPTIMIZER_FIELD_NUMBER = 32; + private boolean disableTfgOptimizer_; + /** + *
+   * Disable the TFG optimizer (off by default).
+   * 
+ * + * bool disable_tfg_optimizer = 32; + * @return The disableTfgOptimizer. + */ + @java.lang.Override + public boolean getDisableTfgOptimizer() { + return disableTfgOptimizer_; + } + + public static final int USE_PLUGIN_OPTIMIZERS_FIELD_NUMBER = 28; + private int usePluginOptimizers_; + /** + *
+   * Optimizers registered by plugin (default is ON)
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle use_plugin_optimizers = 28; + * @return The enum numeric value on the wire for usePluginOptimizers. + */ + @java.lang.Override public int getUsePluginOptimizersValue() { + return usePluginOptimizers_; + } + /** + *
+   * Optimizers registered by plugin (default is ON)
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle use_plugin_optimizers = 28; + * @return The usePluginOptimizers. + */ + @java.lang.Override public org.tensorflow.proto.RewriterConfig.Toggle getUsePluginOptimizers() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(usePluginOptimizers_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + + public static final int EXPERIMENTAL_CONDITIONAL_CODE_MOTION_FIELD_NUMBER = 30; + private int experimentalConditionalCodeMotion_; + /** + *
+   * Conditional code motion (default is ON).
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle experimental_conditional_code_motion = 30; + * @return The enum numeric value on the wire for experimentalConditionalCodeMotion. + */ + @java.lang.Override public int getExperimentalConditionalCodeMotionValue() { + return experimentalConditionalCodeMotion_; + } + /** + *
+   * Conditional code motion (default is ON).
+   * 
+ * + * .tensorflow.RewriterConfig.Toggle experimental_conditional_code_motion = 30; + * @return The experimentalConditionalCodeMotion. + */ + @java.lang.Override public org.tensorflow.proto.RewriterConfig.Toggle getExperimentalConditionalCodeMotion() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(experimentalConditionalCodeMotion_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + + public static final int META_OPTIMIZER_ITERATIONS_FIELD_NUMBER = 12; + private int metaOptimizerIterations_; + /** + *
+   * Controls how many times we run the optimizers in meta optimizer (default
+   * is once).
+   * 
+ * + * .tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12; + * @return The enum numeric value on the wire for metaOptimizerIterations. + */ + @java.lang.Override public int getMetaOptimizerIterationsValue() { + return metaOptimizerIterations_; + } + /** + *
+   * Controls how many times we run the optimizers in meta optimizer (default
+   * is once).
+   * 
+ * + * .tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12; + * @return The metaOptimizerIterations. + */ + @java.lang.Override public org.tensorflow.proto.RewriterConfig.NumIterationsType getMetaOptimizerIterations() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.NumIterationsType result = org.tensorflow.proto.RewriterConfig.NumIterationsType.valueOf(metaOptimizerIterations_); + return result == null ? org.tensorflow.proto.RewriterConfig.NumIterationsType.UNRECOGNIZED : result; + } + + public static final int MIN_GRAPH_NODES_FIELD_NUMBER = 17; + private int minGraphNodes_; + /** + *
+   * The minimum number of nodes in a graph to optimizer. For smaller graphs,
+   * optimization is skipped.
+   * 0 means the system picks an appropriate number.
+   * < 0 means do not skip optimization.
+   * 
+ * + * int32 min_graph_nodes = 17; + * @return The minGraphNodes. + */ + @java.lang.Override + public int getMinGraphNodes() { + return minGraphNodes_; + } + + public static final int EXPERIMENTAL_DISABLE_COMPRESSED_TENSOR_OPTIMIZATION_FIELD_NUMBER = 26; + private boolean experimentalDisableCompressedTensorOptimization_; + /** + *
+   * Disable optimizations that assume compressed tensors. Note that this flag
+   * is experimental and may be removed in the future.
+   * 
+ * + * bool experimental_disable_compressed_tensor_optimization = 26; + * @return The experimentalDisableCompressedTensorOptimization. + */ + @java.lang.Override + public boolean getExperimentalDisableCompressedTensorOptimization() { + return experimentalDisableCompressedTensorOptimization_; + } + + public static final int EXPERIMENTAL_DISABLE_FOLDING_QUANTIZATION_EMULATION_FIELD_NUMBER = 27; + private boolean experimentalDisableFoldingQuantizationEmulation_; + /** + *
+   * Disable folding quantization emulation ops such as FakeQuantWithMinMax* and
+   * QuantizeAndDequantize*. Some compilers (e.g. the TF-to-tflite converter)
+   * have to extract quantization configs (e.g. min/max range, number of bits,
+   * and per-channel) from the quantization emulation ops. Note that this flag
+   * is experimental and may be removed in the future. See b/174138564 for more
+   * details.
+   * 
+ * + * bool experimental_disable_folding_quantization_emulation = 27; + * @return The experimentalDisableFoldingQuantizationEmulation. + */ + @java.lang.Override + public boolean getExperimentalDisableFoldingQuantizationEmulation() { + return experimentalDisableFoldingQuantizationEmulation_; + } + + public static final int MEMORY_OPTIMIZATION_FIELD_NUMBER = 4; + private int memoryOptimization_; + /** + *
+   * Configures memory optimization passes through the meta-optimizer. Has no
+   * effect on manually requested memory optimization passes in the optimizers
+   * field.
+   * 
+ * + * .tensorflow.RewriterConfig.MemOptType memory_optimization = 4; + * @return The enum numeric value on the wire for memoryOptimization. + */ + @java.lang.Override public int getMemoryOptimizationValue() { + return memoryOptimization_; + } + /** + *
+   * Configures memory optimization passes through the meta-optimizer. Has no
+   * effect on manually requested memory optimization passes in the optimizers
+   * field.
+   * 
+ * + * .tensorflow.RewriterConfig.MemOptType memory_optimization = 4; + * @return The memoryOptimization. + */ + @java.lang.Override public org.tensorflow.proto.RewriterConfig.MemOptType getMemoryOptimization() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.MemOptType result = org.tensorflow.proto.RewriterConfig.MemOptType.valueOf(memoryOptimization_); + return result == null ? org.tensorflow.proto.RewriterConfig.MemOptType.UNRECOGNIZED : result; + } + + public static final int MEMORY_OPTIMIZER_TARGET_NODE_NAME_SCOPE_FIELD_NUMBER = 6; + private volatile java.lang.Object memoryOptimizerTargetNodeNameScope_; + /** + *
+   * A node name scope for node names which are valid outputs of recomputations.
+   * Inputs to nodes that match this scope may be recomputed (subject either to
+   * manual annotation of those input nodes or to manual annotation and
+   * heuristics depending on memory_optimization), but the nodes themselves will
+   * not be recomputed. This matches any sub-scopes as well, meaning the scope
+   * can appear not just as a top-level scope. For example, if the value is
+   * "gradients/", the default, it will match node name "gradients/foo",
+   * "foo/gradients/bar", but not "foo_gradients/"
+   * 
+ * + * string memory_optimizer_target_node_name_scope = 6; + * @return The memoryOptimizerTargetNodeNameScope. + */ + @java.lang.Override + public java.lang.String getMemoryOptimizerTargetNodeNameScope() { + java.lang.Object ref = memoryOptimizerTargetNodeNameScope_; + 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(); + memoryOptimizerTargetNodeNameScope_ = s; + return s; + } + } + /** + *
+   * A node name scope for node names which are valid outputs of recomputations.
+   * Inputs to nodes that match this scope may be recomputed (subject either to
+   * manual annotation of those input nodes or to manual annotation and
+   * heuristics depending on memory_optimization), but the nodes themselves will
+   * not be recomputed. This matches any sub-scopes as well, meaning the scope
+   * can appear not just as a top-level scope. For example, if the value is
+   * "gradients/", the default, it will match node name "gradients/foo",
+   * "foo/gradients/bar", but not "foo_gradients/"
+   * 
+ * + * string memory_optimizer_target_node_name_scope = 6; + * @return The bytes for memoryOptimizerTargetNodeNameScope. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMemoryOptimizerTargetNodeNameScopeBytes() { + java.lang.Object ref = memoryOptimizerTargetNodeNameScope_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + memoryOptimizerTargetNodeNameScope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int META_OPTIMIZER_TIMEOUT_MS_FIELD_NUMBER = 20; + private long metaOptimizerTimeoutMs_; + /** + *
+   * Maximum number of milliseconds to spend optimizing a single graph before
+   * timing out. If less than or equal to 0 (default value) the optimizer will
+   * never time out.
+   * 
+ * + * int64 meta_optimizer_timeout_ms = 20; + * @return The metaOptimizerTimeoutMs. + */ + @java.lang.Override + public long getMetaOptimizerTimeoutMs() { + return metaOptimizerTimeoutMs_; + } + + public static final int AUTO_PARALLEL_FIELD_NUMBER = 5; + private org.tensorflow.proto.AutoParallelOptions autoParallel_; + /** + *
+   * Configures AutoParallel optimization passes either through the
+   * meta-optimizer or when manually specified through the optimizers field.
+   * 
+ * + * .tensorflow.AutoParallelOptions auto_parallel = 5; + * @return Whether the autoParallel field is set. + */ + @java.lang.Override + public boolean hasAutoParallel() { + return autoParallel_ != null; + } + /** + *
+   * Configures AutoParallel optimization passes either through the
+   * meta-optimizer or when manually specified through the optimizers field.
+   * 
+ * + * .tensorflow.AutoParallelOptions auto_parallel = 5; + * @return The autoParallel. + */ + @java.lang.Override + public org.tensorflow.proto.AutoParallelOptions getAutoParallel() { + return autoParallel_ == null ? org.tensorflow.proto.AutoParallelOptions.getDefaultInstance() : autoParallel_; + } + /** + *
+   * Configures AutoParallel optimization passes either through the
+   * meta-optimizer or when manually specified through the optimizers field.
+   * 
+ * + * .tensorflow.AutoParallelOptions auto_parallel = 5; + */ + @java.lang.Override + public org.tensorflow.proto.AutoParallelOptionsOrBuilder getAutoParallelOrBuilder() { + return getAutoParallel(); + } + + public static final int FAIL_ON_OPTIMIZER_ERRORS_FIELD_NUMBER = 21; + private boolean failOnOptimizerErrors_; + /** + *
+   * If true, any optimization pass failing will cause the MetaOptimizer to
+   * stop with an error. By default - or when set to false, failing passes are
+   * skipped silently.
+   * 
+ * + * bool fail_on_optimizer_errors = 21; + * @return The failOnOptimizerErrors. + */ + @java.lang.Override + public boolean getFailOnOptimizerErrors() { + return failOnOptimizerErrors_; + } + + public static final int SCOPED_ALLOCATOR_OPTS_FIELD_NUMBER = 16; + private org.tensorflow.proto.ScopedAllocatorOptions scopedAllocatorOpts_; + /** + * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; + * @return Whether the scopedAllocatorOpts field is set. + */ + @java.lang.Override + public boolean hasScopedAllocatorOpts() { + return scopedAllocatorOpts_ != null; + } + /** + * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; + * @return The scopedAllocatorOpts. + */ + @java.lang.Override + public org.tensorflow.proto.ScopedAllocatorOptions getScopedAllocatorOpts() { + return scopedAllocatorOpts_ == null ? org.tensorflow.proto.ScopedAllocatorOptions.getDefaultInstance() : scopedAllocatorOpts_; + } + /** + * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; + */ + @java.lang.Override + public org.tensorflow.proto.ScopedAllocatorOptionsOrBuilder getScopedAllocatorOptsOrBuilder() { + return getScopedAllocatorOpts(); + } + + public static final int OPTIMIZERS_FIELD_NUMBER = 100; + private com.google.protobuf.LazyStringList optimizers_; + /** + *
+   * If non-empty, will use this as an alternative way to specify a list of
+   * optimizations to turn on and the order of the optimizations (replacing the
+   * meta-optimizer).
+   * Of the RewriterConfig options, only the AutoParallel configuration options
+   * (the auto_parallel field) apply to manually requested optimization passes
+   * ("autoparallel"). Memory optimization passes ("memory") invoked here are
+   * not configurable (in contrast to memory optimization passes through the
+   * meta-optimizer) and act only on manual op annotations.
+   * Custom optimizers (see custom_optimizers) that are not part of this
+   * schedule will be run after - in the order that they were specified.
+   * 
+ * + * repeated string optimizers = 100; + * @return A list containing the optimizers. + */ + public com.google.protobuf.ProtocolStringList + getOptimizersList() { + return optimizers_; + } + /** + *
+   * If non-empty, will use this as an alternative way to specify a list of
+   * optimizations to turn on and the order of the optimizations (replacing the
+   * meta-optimizer).
+   * Of the RewriterConfig options, only the AutoParallel configuration options
+   * (the auto_parallel field) apply to manually requested optimization passes
+   * ("autoparallel"). Memory optimization passes ("memory") invoked here are
+   * not configurable (in contrast to memory optimization passes through the
+   * meta-optimizer) and act only on manual op annotations.
+   * Custom optimizers (see custom_optimizers) that are not part of this
+   * schedule will be run after - in the order that they were specified.
+   * 
+ * + * repeated string optimizers = 100; + * @return The count of optimizers. + */ + public int getOptimizersCount() { + return optimizers_.size(); + } + /** + *
+   * If non-empty, will use this as an alternative way to specify a list of
+   * optimizations to turn on and the order of the optimizations (replacing the
+   * meta-optimizer).
+   * Of the RewriterConfig options, only the AutoParallel configuration options
+   * (the auto_parallel field) apply to manually requested optimization passes
+   * ("autoparallel"). Memory optimization passes ("memory") invoked here are
+   * not configurable (in contrast to memory optimization passes through the
+   * meta-optimizer) and act only on manual op annotations.
+   * Custom optimizers (see custom_optimizers) that are not part of this
+   * schedule will be run after - in the order that they were specified.
+   * 
+ * + * repeated string optimizers = 100; + * @param index The index of the element to return. + * @return The optimizers at the given index. + */ + public java.lang.String getOptimizers(int index) { + return optimizers_.get(index); + } + /** + *
+   * If non-empty, will use this as an alternative way to specify a list of
+   * optimizations to turn on and the order of the optimizations (replacing the
+   * meta-optimizer).
+   * Of the RewriterConfig options, only the AutoParallel configuration options
+   * (the auto_parallel field) apply to manually requested optimization passes
+   * ("autoparallel"). Memory optimization passes ("memory") invoked here are
+   * not configurable (in contrast to memory optimization passes through the
+   * meta-optimizer) and act only on manual op annotations.
+   * Custom optimizers (see custom_optimizers) that are not part of this
+   * schedule will be run after - in the order that they were specified.
+   * 
+ * + * repeated string optimizers = 100; + * @param index The index of the value to return. + * @return The bytes of the optimizers at the given index. + */ + public com.google.protobuf.ByteString + getOptimizersBytes(int index) { + return optimizers_.getByteString(index); + } + + public static final int CUSTOM_OPTIMIZERS_FIELD_NUMBER = 200; + private java.util.List customOptimizers_; + /** + *
+   * list of CustomGraphOptimizers to apply.
+   * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + @java.lang.Override + public java.util.List getCustomOptimizersList() { + return customOptimizers_; + } + /** + *
+   * list of CustomGraphOptimizers to apply.
+   * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + @java.lang.Override + public java.util.List + getCustomOptimizersOrBuilderList() { + return customOptimizers_; + } + /** + *
+   * list of CustomGraphOptimizers to apply.
+   * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + @java.lang.Override + public int getCustomOptimizersCount() { + return customOptimizers_.size(); + } + /** + *
+   * list of CustomGraphOptimizers to apply.
+   * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer getCustomOptimizers(int index) { + return customOptimizers_.get(index); + } + /** + *
+   * list of CustomGraphOptimizers to apply.
+   * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.CustomGraphOptimizerOrBuilder getCustomOptimizersOrBuilder( + int index) { + return customOptimizers_.get(index); + } + + public static final int INTER_OPTIMIZER_VERIFIER_CONFIG_FIELD_NUMBER = 300; + private org.tensorflow.proto.VerifierConfig interOptimizerVerifierConfig_; + /** + *
+   * VerifierConfig specifying the verifiers to be run after every optimizer.
+   * 
+ * + * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; + * @return Whether the interOptimizerVerifierConfig field is set. + */ + @java.lang.Override + public boolean hasInterOptimizerVerifierConfig() { + return interOptimizerVerifierConfig_ != null; + } + /** + *
+   * VerifierConfig specifying the verifiers to be run after every optimizer.
+   * 
+ * + * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; + * @return The interOptimizerVerifierConfig. + */ + @java.lang.Override + public org.tensorflow.proto.VerifierConfig getInterOptimizerVerifierConfig() { + return interOptimizerVerifierConfig_ == null ? org.tensorflow.proto.VerifierConfig.getDefaultInstance() : interOptimizerVerifierConfig_; + } + /** + *
+   * VerifierConfig specifying the verifiers to be run after every optimizer.
+   * 
+ * + * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; + */ + @java.lang.Override + public org.tensorflow.proto.VerifierConfigOrBuilder getInterOptimizerVerifierConfigOrBuilder() { + return getInterOptimizerVerifierConfig(); + } + + public static final int POST_OPTIMIZATION_VERIFIER_CONFIG_FIELD_NUMBER = 301; + private org.tensorflow.proto.VerifierConfig postOptimizationVerifierConfig_; + /** + *
+   * VerifierConfig specifying the verifiers to be run at the end, after all
+   * optimizers have run.
+   * 
+ * + * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; + * @return Whether the postOptimizationVerifierConfig field is set. + */ + @java.lang.Override + public boolean hasPostOptimizationVerifierConfig() { + return postOptimizationVerifierConfig_ != null; + } + /** + *
+   * VerifierConfig specifying the verifiers to be run at the end, after all
+   * optimizers have run.
+   * 
+ * + * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; + * @return The postOptimizationVerifierConfig. + */ + @java.lang.Override + public org.tensorflow.proto.VerifierConfig getPostOptimizationVerifierConfig() { + return postOptimizationVerifierConfig_ == null ? org.tensorflow.proto.VerifierConfig.getDefaultInstance() : postOptimizationVerifierConfig_; + } + /** + *
+   * VerifierConfig specifying the verifiers to be run at the end, after all
+   * optimizers have run.
+   * 
+ * + * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; + */ + @java.lang.Override + public org.tensorflow.proto.VerifierConfigOrBuilder getPostOptimizationVerifierConfigOrBuilder() { + return getPostOptimizationVerifierConfig(); + } + + 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 (layoutOptimizer_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + output.writeEnum(1, layoutOptimizer_); + } + if (disableModelPruning_ != false) { + output.writeBool(2, disableModelPruning_); + } + if (constantFolding_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + output.writeEnum(3, constantFolding_); + } + if (memoryOptimization_ != org.tensorflow.proto.RewriterConfig.MemOptType.DEFAULT_MEM_OPT.getNumber()) { + output.writeEnum(4, memoryOptimization_); + } + if (autoParallel_ != null) { + output.writeMessage(5, getAutoParallel()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memoryOptimizerTargetNodeNameScope_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, memoryOptimizerTargetNodeNameScope_); + } + if (arithmeticOptimization_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + output.writeEnum(7, arithmeticOptimization_); + } + if (dependencyOptimization_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + output.writeEnum(8, dependencyOptimization_); + } + if (loopOptimization_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + output.writeEnum(9, loopOptimization_); + } + if (functionOptimization_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + output.writeEnum(10, functionOptimization_); + } + if (debugStripper_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + output.writeEnum(11, debugStripper_); + } + if (metaOptimizerIterations_ != org.tensorflow.proto.RewriterConfig.NumIterationsType.DEFAULT_NUM_ITERS.getNumber()) { + output.writeEnum(12, metaOptimizerIterations_); + } + if (shapeOptimization_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + output.writeEnum(13, shapeOptimization_); + } + if (remapping_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + output.writeEnum(14, remapping_); + } + if (scopedAllocatorOptimization_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + output.writeEnum(15, scopedAllocatorOptimization_); + } + if (scopedAllocatorOpts_ != null) { + output.writeMessage(16, getScopedAllocatorOpts()); + } + if (minGraphNodes_ != 0) { + output.writeInt32(17, minGraphNodes_); + } + if (pinToHostOptimization_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + output.writeEnum(18, pinToHostOptimization_); + } + if (disableMetaOptimizer_ != false) { + output.writeBool(19, disableMetaOptimizer_); + } + if (metaOptimizerTimeoutMs_ != 0L) { + output.writeInt64(20, metaOptimizerTimeoutMs_); + } + if (failOnOptimizerErrors_ != false) { + output.writeBool(21, failOnOptimizerErrors_); + } + if (implementationSelector_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + output.writeEnum(22, implementationSelector_); + } + if (autoMixedPrecision_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + output.writeEnum(23, autoMixedPrecision_); + } + if (commonSubgraphElimination_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + output.writeEnum(24, commonSubgraphElimination_); + } + if (autoMixedPrecisionMkl_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + output.writeEnum(25, autoMixedPrecisionMkl_); + } + if (experimentalDisableCompressedTensorOptimization_ != false) { + output.writeBool(26, experimentalDisableCompressedTensorOptimization_); + } + if (experimentalDisableFoldingQuantizationEmulation_ != false) { + output.writeBool(27, experimentalDisableFoldingQuantizationEmulation_); + } + if (usePluginOptimizers_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + output.writeEnum(28, usePluginOptimizers_); + } + if (autoMixedPrecisionCpu_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + output.writeEnum(29, autoMixedPrecisionCpu_); + } + if (experimentalConditionalCodeMotion_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + output.writeEnum(30, experimentalConditionalCodeMotion_); + } + if (autoMixedPrecisionOnednnBfloat16_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + output.writeEnum(31, autoMixedPrecisionOnednnBfloat16_); + } + if (disableTfgOptimizer_ != false) { + output.writeBool(32, disableTfgOptimizer_); + } + if (cpuLayoutConversion_ != org.tensorflow.proto.RewriterConfig.CpuLayout.NO_CONVERSION_ON_CPU.getNumber()) { + output.writeEnum(50, cpuLayoutConversion_); + } + for (int i = 0; i < optimizers_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, optimizers_.getRaw(i)); + } + for (int i = 0; i < customOptimizers_.size(); i++) { + output.writeMessage(200, customOptimizers_.get(i)); + } + if (interOptimizerVerifierConfig_ != null) { + output.writeMessage(300, getInterOptimizerVerifierConfig()); + } + if (postOptimizationVerifierConfig_ != null) { + output.writeMessage(301, getPostOptimizationVerifierConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (layoutOptimizer_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, layoutOptimizer_); + } + if (disableModelPruning_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, disableModelPruning_); + } + if (constantFolding_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, constantFolding_); + } + if (memoryOptimization_ != org.tensorflow.proto.RewriterConfig.MemOptType.DEFAULT_MEM_OPT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, memoryOptimization_); + } + if (autoParallel_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getAutoParallel()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memoryOptimizerTargetNodeNameScope_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, memoryOptimizerTargetNodeNameScope_); + } + if (arithmeticOptimization_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, arithmeticOptimization_); + } + if (dependencyOptimization_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, dependencyOptimization_); + } + if (loopOptimization_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, loopOptimization_); + } + if (functionOptimization_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, functionOptimization_); + } + if (debugStripper_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(11, debugStripper_); + } + if (metaOptimizerIterations_ != org.tensorflow.proto.RewriterConfig.NumIterationsType.DEFAULT_NUM_ITERS.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, metaOptimizerIterations_); + } + if (shapeOptimization_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(13, shapeOptimization_); + } + if (remapping_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(14, remapping_); + } + if (scopedAllocatorOptimization_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, scopedAllocatorOptimization_); + } + if (scopedAllocatorOpts_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getScopedAllocatorOpts()); + } + if (minGraphNodes_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(17, minGraphNodes_); + } + if (pinToHostOptimization_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(18, pinToHostOptimization_); + } + if (disableMetaOptimizer_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(19, disableMetaOptimizer_); + } + if (metaOptimizerTimeoutMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(20, metaOptimizerTimeoutMs_); + } + if (failOnOptimizerErrors_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(21, failOnOptimizerErrors_); + } + if (implementationSelector_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(22, implementationSelector_); + } + if (autoMixedPrecision_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(23, autoMixedPrecision_); + } + if (commonSubgraphElimination_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(24, commonSubgraphElimination_); + } + if (autoMixedPrecisionMkl_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(25, autoMixedPrecisionMkl_); + } + if (experimentalDisableCompressedTensorOptimization_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(26, experimentalDisableCompressedTensorOptimization_); + } + if (experimentalDisableFoldingQuantizationEmulation_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(27, experimentalDisableFoldingQuantizationEmulation_); + } + if (usePluginOptimizers_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(28, usePluginOptimizers_); + } + if (autoMixedPrecisionCpu_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(29, autoMixedPrecisionCpu_); + } + if (experimentalConditionalCodeMotion_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(30, experimentalConditionalCodeMotion_); + } + if (autoMixedPrecisionOnednnBfloat16_ != org.tensorflow.proto.RewriterConfig.Toggle.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(31, autoMixedPrecisionOnednnBfloat16_); + } + if (disableTfgOptimizer_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(32, disableTfgOptimizer_); + } + if (cpuLayoutConversion_ != org.tensorflow.proto.RewriterConfig.CpuLayout.NO_CONVERSION_ON_CPU.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(50, cpuLayoutConversion_); + } + { + int dataSize = 0; + for (int i = 0; i < optimizers_.size(); i++) { + dataSize += computeStringSizeNoTag(optimizers_.getRaw(i)); + } + size += dataSize; + size += 2 * getOptimizersList().size(); + } + for (int i = 0; i < customOptimizers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(200, customOptimizers_.get(i)); + } + if (interOptimizerVerifierConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(300, getInterOptimizerVerifierConfig()); + } + if (postOptimizationVerifierConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(301, getPostOptimizationVerifierConfig()); + } + 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 org.tensorflow.proto.RewriterConfig)) { + return super.equals(obj); + } + org.tensorflow.proto.RewriterConfig other = (org.tensorflow.proto.RewriterConfig) obj; + + if (cpuLayoutConversion_ != other.cpuLayoutConversion_) return false; + if (layoutOptimizer_ != other.layoutOptimizer_) return false; + if (constantFolding_ != other.constantFolding_) return false; + if (shapeOptimization_ != other.shapeOptimization_) return false; + if (remapping_ != other.remapping_) return false; + if (commonSubgraphElimination_ != other.commonSubgraphElimination_) return false; + if (arithmeticOptimization_ != other.arithmeticOptimization_) return false; + if (dependencyOptimization_ != other.dependencyOptimization_) return false; + if (loopOptimization_ != other.loopOptimization_) return false; + if (functionOptimization_ != other.functionOptimization_) return false; + if (debugStripper_ != other.debugStripper_) return false; + if (getDisableModelPruning() + != other.getDisableModelPruning()) return false; + if (scopedAllocatorOptimization_ != other.scopedAllocatorOptimization_) return false; + if (pinToHostOptimization_ != other.pinToHostOptimization_) return false; + if (implementationSelector_ != other.implementationSelector_) return false; + if (autoMixedPrecision_ != other.autoMixedPrecision_) return false; + if (autoMixedPrecisionMkl_ != other.autoMixedPrecisionMkl_) return false; + if (autoMixedPrecisionOnednnBfloat16_ != other.autoMixedPrecisionOnednnBfloat16_) return false; + if (autoMixedPrecisionCpu_ != other.autoMixedPrecisionCpu_) return false; + if (getDisableMetaOptimizer() + != other.getDisableMetaOptimizer()) return false; + if (getDisableTfgOptimizer() + != other.getDisableTfgOptimizer()) return false; + if (usePluginOptimizers_ != other.usePluginOptimizers_) return false; + if (experimentalConditionalCodeMotion_ != other.experimentalConditionalCodeMotion_) return false; + if (metaOptimizerIterations_ != other.metaOptimizerIterations_) return false; + if (getMinGraphNodes() + != other.getMinGraphNodes()) return false; + if (getExperimentalDisableCompressedTensorOptimization() + != other.getExperimentalDisableCompressedTensorOptimization()) return false; + if (getExperimentalDisableFoldingQuantizationEmulation() + != other.getExperimentalDisableFoldingQuantizationEmulation()) return false; + if (memoryOptimization_ != other.memoryOptimization_) return false; + if (!getMemoryOptimizerTargetNodeNameScope() + .equals(other.getMemoryOptimizerTargetNodeNameScope())) return false; + if (getMetaOptimizerTimeoutMs() + != other.getMetaOptimizerTimeoutMs()) return false; + if (hasAutoParallel() != other.hasAutoParallel()) return false; + if (hasAutoParallel()) { + if (!getAutoParallel() + .equals(other.getAutoParallel())) return false; + } + if (getFailOnOptimizerErrors() + != other.getFailOnOptimizerErrors()) return false; + if (hasScopedAllocatorOpts() != other.hasScopedAllocatorOpts()) return false; + if (hasScopedAllocatorOpts()) { + if (!getScopedAllocatorOpts() + .equals(other.getScopedAllocatorOpts())) return false; + } + if (!getOptimizersList() + .equals(other.getOptimizersList())) return false; + if (!getCustomOptimizersList() + .equals(other.getCustomOptimizersList())) return false; + if (hasInterOptimizerVerifierConfig() != other.hasInterOptimizerVerifierConfig()) return false; + if (hasInterOptimizerVerifierConfig()) { + if (!getInterOptimizerVerifierConfig() + .equals(other.getInterOptimizerVerifierConfig())) return false; + } + if (hasPostOptimizationVerifierConfig() != other.hasPostOptimizationVerifierConfig()) return false; + if (hasPostOptimizationVerifierConfig()) { + if (!getPostOptimizationVerifierConfig() + .equals(other.getPostOptimizationVerifierConfig())) 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) + CPU_LAYOUT_CONVERSION_FIELD_NUMBER; + hash = (53 * hash) + cpuLayoutConversion_; + hash = (37 * hash) + LAYOUT_OPTIMIZER_FIELD_NUMBER; + hash = (53 * hash) + layoutOptimizer_; + hash = (37 * hash) + CONSTANT_FOLDING_FIELD_NUMBER; + hash = (53 * hash) + constantFolding_; + hash = (37 * hash) + SHAPE_OPTIMIZATION_FIELD_NUMBER; + hash = (53 * hash) + shapeOptimization_; + hash = (37 * hash) + REMAPPING_FIELD_NUMBER; + hash = (53 * hash) + remapping_; + hash = (37 * hash) + COMMON_SUBGRAPH_ELIMINATION_FIELD_NUMBER; + hash = (53 * hash) + commonSubgraphElimination_; + hash = (37 * hash) + ARITHMETIC_OPTIMIZATION_FIELD_NUMBER; + hash = (53 * hash) + arithmeticOptimization_; + hash = (37 * hash) + DEPENDENCY_OPTIMIZATION_FIELD_NUMBER; + hash = (53 * hash) + dependencyOptimization_; + hash = (37 * hash) + LOOP_OPTIMIZATION_FIELD_NUMBER; + hash = (53 * hash) + loopOptimization_; + hash = (37 * hash) + FUNCTION_OPTIMIZATION_FIELD_NUMBER; + hash = (53 * hash) + functionOptimization_; + hash = (37 * hash) + DEBUG_STRIPPER_FIELD_NUMBER; + hash = (53 * hash) + debugStripper_; + hash = (37 * hash) + DISABLE_MODEL_PRUNING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisableModelPruning()); + hash = (37 * hash) + SCOPED_ALLOCATOR_OPTIMIZATION_FIELD_NUMBER; + hash = (53 * hash) + scopedAllocatorOptimization_; + hash = (37 * hash) + PIN_TO_HOST_OPTIMIZATION_FIELD_NUMBER; + hash = (53 * hash) + pinToHostOptimization_; + hash = (37 * hash) + IMPLEMENTATION_SELECTOR_FIELD_NUMBER; + hash = (53 * hash) + implementationSelector_; + hash = (37 * hash) + AUTO_MIXED_PRECISION_FIELD_NUMBER; + hash = (53 * hash) + autoMixedPrecision_; + hash = (37 * hash) + AUTO_MIXED_PRECISION_MKL_FIELD_NUMBER; + hash = (53 * hash) + autoMixedPrecisionMkl_; + hash = (37 * hash) + AUTO_MIXED_PRECISION_ONEDNN_BFLOAT16_FIELD_NUMBER; + hash = (53 * hash) + autoMixedPrecisionOnednnBfloat16_; + hash = (37 * hash) + AUTO_MIXED_PRECISION_CPU_FIELD_NUMBER; + hash = (53 * hash) + autoMixedPrecisionCpu_; + hash = (37 * hash) + DISABLE_META_OPTIMIZER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisableMetaOptimizer()); + hash = (37 * hash) + DISABLE_TFG_OPTIMIZER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisableTfgOptimizer()); + hash = (37 * hash) + USE_PLUGIN_OPTIMIZERS_FIELD_NUMBER; + hash = (53 * hash) + usePluginOptimizers_; + hash = (37 * hash) + EXPERIMENTAL_CONDITIONAL_CODE_MOTION_FIELD_NUMBER; + hash = (53 * hash) + experimentalConditionalCodeMotion_; + hash = (37 * hash) + META_OPTIMIZER_ITERATIONS_FIELD_NUMBER; + hash = (53 * hash) + metaOptimizerIterations_; + hash = (37 * hash) + MIN_GRAPH_NODES_FIELD_NUMBER; + hash = (53 * hash) + getMinGraphNodes(); + hash = (37 * hash) + EXPERIMENTAL_DISABLE_COMPRESSED_TENSOR_OPTIMIZATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getExperimentalDisableCompressedTensorOptimization()); + hash = (37 * hash) + EXPERIMENTAL_DISABLE_FOLDING_QUANTIZATION_EMULATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getExperimentalDisableFoldingQuantizationEmulation()); + hash = (37 * hash) + MEMORY_OPTIMIZATION_FIELD_NUMBER; + hash = (53 * hash) + memoryOptimization_; + hash = (37 * hash) + MEMORY_OPTIMIZER_TARGET_NODE_NAME_SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getMemoryOptimizerTargetNodeNameScope().hashCode(); + hash = (37 * hash) + META_OPTIMIZER_TIMEOUT_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMetaOptimizerTimeoutMs()); + if (hasAutoParallel()) { + hash = (37 * hash) + AUTO_PARALLEL_FIELD_NUMBER; + hash = (53 * hash) + getAutoParallel().hashCode(); + } + hash = (37 * hash) + FAIL_ON_OPTIMIZER_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFailOnOptimizerErrors()); + if (hasScopedAllocatorOpts()) { + hash = (37 * hash) + SCOPED_ALLOCATOR_OPTS_FIELD_NUMBER; + hash = (53 * hash) + getScopedAllocatorOpts().hashCode(); + } + if (getOptimizersCount() > 0) { + hash = (37 * hash) + OPTIMIZERS_FIELD_NUMBER; + hash = (53 * hash) + getOptimizersList().hashCode(); + } + if (getCustomOptimizersCount() > 0) { + hash = (37 * hash) + CUSTOM_OPTIMIZERS_FIELD_NUMBER; + hash = (53 * hash) + getCustomOptimizersList().hashCode(); + } + if (hasInterOptimizerVerifierConfig()) { + hash = (37 * hash) + INTER_OPTIMIZER_VERIFIER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getInterOptimizerVerifierConfig().hashCode(); + } + if (hasPostOptimizationVerifierConfig()) { + hash = (37 * hash) + POST_OPTIMIZATION_VERIFIER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPostOptimizationVerifierConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.RewriterConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RewriterConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RewriterConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RewriterConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RewriterConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RewriterConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RewriterConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RewriterConfig 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 org.tensorflow.proto.RewriterConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RewriterConfig 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 org.tensorflow.proto.RewriterConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RewriterConfig 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(org.tensorflow.proto.RewriterConfig 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; + } + /** + *
+   * Graph rewriting is experimental and subject to change, not covered by any
+   * API stability guarantees.
+   * 
+ * + * Protobuf type {@code tensorflow.RewriterConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.RewriterConfig) + org.tensorflow.proto.RewriterConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.RewriterConfigProtos.internal_static_tensorflow_RewriterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.RewriterConfigProtos.internal_static_tensorflow_RewriterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.RewriterConfig.class, org.tensorflow.proto.RewriterConfig.Builder.class); + } + + // Construct using org.tensorflow.proto.RewriterConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + cpuLayoutConversion_ = 0; + + layoutOptimizer_ = 0; + + constantFolding_ = 0; + + shapeOptimization_ = 0; + + remapping_ = 0; + + commonSubgraphElimination_ = 0; + + arithmeticOptimization_ = 0; + + dependencyOptimization_ = 0; + + loopOptimization_ = 0; + + functionOptimization_ = 0; + + debugStripper_ = 0; + + disableModelPruning_ = false; + + scopedAllocatorOptimization_ = 0; + + pinToHostOptimization_ = 0; + + implementationSelector_ = 0; + + autoMixedPrecision_ = 0; + + autoMixedPrecisionMkl_ = 0; + + autoMixedPrecisionOnednnBfloat16_ = 0; + + autoMixedPrecisionCpu_ = 0; + + disableMetaOptimizer_ = false; + + disableTfgOptimizer_ = false; + + usePluginOptimizers_ = 0; + + experimentalConditionalCodeMotion_ = 0; + + metaOptimizerIterations_ = 0; + + minGraphNodes_ = 0; + + experimentalDisableCompressedTensorOptimization_ = false; + + experimentalDisableFoldingQuantizationEmulation_ = false; + + memoryOptimization_ = 0; + + memoryOptimizerTargetNodeNameScope_ = ""; + + metaOptimizerTimeoutMs_ = 0L; + + if (autoParallelBuilder_ == null) { + autoParallel_ = null; + } else { + autoParallel_ = null; + autoParallelBuilder_ = null; + } + failOnOptimizerErrors_ = false; + + if (scopedAllocatorOptsBuilder_ == null) { + scopedAllocatorOpts_ = null; + } else { + scopedAllocatorOpts_ = null; + scopedAllocatorOptsBuilder_ = null; + } + optimizers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (customOptimizersBuilder_ == null) { + customOptimizers_ = java.util.Collections.emptyList(); + } else { + customOptimizers_ = null; + customOptimizersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (interOptimizerVerifierConfigBuilder_ == null) { + interOptimizerVerifierConfig_ = null; + } else { + interOptimizerVerifierConfig_ = null; + interOptimizerVerifierConfigBuilder_ = null; + } + if (postOptimizationVerifierConfigBuilder_ == null) { + postOptimizationVerifierConfig_ = null; + } else { + postOptimizationVerifierConfig_ = null; + postOptimizationVerifierConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.RewriterConfigProtos.internal_static_tensorflow_RewriterConfig_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.RewriterConfig getDefaultInstanceForType() { + return org.tensorflow.proto.RewriterConfig.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.RewriterConfig build() { + org.tensorflow.proto.RewriterConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.RewriterConfig buildPartial() { + org.tensorflow.proto.RewriterConfig result = new org.tensorflow.proto.RewriterConfig(this); + int from_bitField0_ = bitField0_; + result.cpuLayoutConversion_ = cpuLayoutConversion_; + result.layoutOptimizer_ = layoutOptimizer_; + result.constantFolding_ = constantFolding_; + result.shapeOptimization_ = shapeOptimization_; + result.remapping_ = remapping_; + result.commonSubgraphElimination_ = commonSubgraphElimination_; + result.arithmeticOptimization_ = arithmeticOptimization_; + result.dependencyOptimization_ = dependencyOptimization_; + result.loopOptimization_ = loopOptimization_; + result.functionOptimization_ = functionOptimization_; + result.debugStripper_ = debugStripper_; + result.disableModelPruning_ = disableModelPruning_; + result.scopedAllocatorOptimization_ = scopedAllocatorOptimization_; + result.pinToHostOptimization_ = pinToHostOptimization_; + result.implementationSelector_ = implementationSelector_; + result.autoMixedPrecision_ = autoMixedPrecision_; + result.autoMixedPrecisionMkl_ = autoMixedPrecisionMkl_; + result.autoMixedPrecisionOnednnBfloat16_ = autoMixedPrecisionOnednnBfloat16_; + result.autoMixedPrecisionCpu_ = autoMixedPrecisionCpu_; + result.disableMetaOptimizer_ = disableMetaOptimizer_; + result.disableTfgOptimizer_ = disableTfgOptimizer_; + result.usePluginOptimizers_ = usePluginOptimizers_; + result.experimentalConditionalCodeMotion_ = experimentalConditionalCodeMotion_; + result.metaOptimizerIterations_ = metaOptimizerIterations_; + result.minGraphNodes_ = minGraphNodes_; + result.experimentalDisableCompressedTensorOptimization_ = experimentalDisableCompressedTensorOptimization_; + result.experimentalDisableFoldingQuantizationEmulation_ = experimentalDisableFoldingQuantizationEmulation_; + result.memoryOptimization_ = memoryOptimization_; + result.memoryOptimizerTargetNodeNameScope_ = memoryOptimizerTargetNodeNameScope_; + result.metaOptimizerTimeoutMs_ = metaOptimizerTimeoutMs_; + if (autoParallelBuilder_ == null) { + result.autoParallel_ = autoParallel_; + } else { + result.autoParallel_ = autoParallelBuilder_.build(); + } + result.failOnOptimizerErrors_ = failOnOptimizerErrors_; + if (scopedAllocatorOptsBuilder_ == null) { + result.scopedAllocatorOpts_ = scopedAllocatorOpts_; + } else { + result.scopedAllocatorOpts_ = scopedAllocatorOptsBuilder_.build(); + } + if (((bitField0_ & 0x00000001) != 0)) { + optimizers_ = optimizers_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.optimizers_ = optimizers_; + if (customOptimizersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + customOptimizers_ = java.util.Collections.unmodifiableList(customOptimizers_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.customOptimizers_ = customOptimizers_; + } else { + result.customOptimizers_ = customOptimizersBuilder_.build(); + } + if (interOptimizerVerifierConfigBuilder_ == null) { + result.interOptimizerVerifierConfig_ = interOptimizerVerifierConfig_; + } else { + result.interOptimizerVerifierConfig_ = interOptimizerVerifierConfigBuilder_.build(); + } + if (postOptimizationVerifierConfigBuilder_ == null) { + result.postOptimizationVerifierConfig_ = postOptimizationVerifierConfig_; + } else { + result.postOptimizationVerifierConfig_ = postOptimizationVerifierConfigBuilder_.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 org.tensorflow.proto.RewriterConfig) { + return mergeFrom((org.tensorflow.proto.RewriterConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.RewriterConfig other) { + if (other == org.tensorflow.proto.RewriterConfig.getDefaultInstance()) return this; + if (other.cpuLayoutConversion_ != 0) { + setCpuLayoutConversionValue(other.getCpuLayoutConversionValue()); + } + if (other.layoutOptimizer_ != 0) { + setLayoutOptimizerValue(other.getLayoutOptimizerValue()); + } + if (other.constantFolding_ != 0) { + setConstantFoldingValue(other.getConstantFoldingValue()); + } + if (other.shapeOptimization_ != 0) { + setShapeOptimizationValue(other.getShapeOptimizationValue()); + } + if (other.remapping_ != 0) { + setRemappingValue(other.getRemappingValue()); + } + if (other.commonSubgraphElimination_ != 0) { + setCommonSubgraphEliminationValue(other.getCommonSubgraphEliminationValue()); + } + if (other.arithmeticOptimization_ != 0) { + setArithmeticOptimizationValue(other.getArithmeticOptimizationValue()); + } + if (other.dependencyOptimization_ != 0) { + setDependencyOptimizationValue(other.getDependencyOptimizationValue()); + } + if (other.loopOptimization_ != 0) { + setLoopOptimizationValue(other.getLoopOptimizationValue()); + } + if (other.functionOptimization_ != 0) { + setFunctionOptimizationValue(other.getFunctionOptimizationValue()); + } + if (other.debugStripper_ != 0) { + setDebugStripperValue(other.getDebugStripperValue()); + } + if (other.getDisableModelPruning() != false) { + setDisableModelPruning(other.getDisableModelPruning()); + } + if (other.scopedAllocatorOptimization_ != 0) { + setScopedAllocatorOptimizationValue(other.getScopedAllocatorOptimizationValue()); + } + if (other.pinToHostOptimization_ != 0) { + setPinToHostOptimizationValue(other.getPinToHostOptimizationValue()); + } + if (other.implementationSelector_ != 0) { + setImplementationSelectorValue(other.getImplementationSelectorValue()); + } + if (other.autoMixedPrecision_ != 0) { + setAutoMixedPrecisionValue(other.getAutoMixedPrecisionValue()); + } + if (other.autoMixedPrecisionMkl_ != 0) { + setAutoMixedPrecisionMklValue(other.getAutoMixedPrecisionMklValue()); + } + if (other.autoMixedPrecisionOnednnBfloat16_ != 0) { + setAutoMixedPrecisionOnednnBfloat16Value(other.getAutoMixedPrecisionOnednnBfloat16Value()); + } + if (other.autoMixedPrecisionCpu_ != 0) { + setAutoMixedPrecisionCpuValue(other.getAutoMixedPrecisionCpuValue()); + } + if (other.getDisableMetaOptimizer() != false) { + setDisableMetaOptimizer(other.getDisableMetaOptimizer()); + } + if (other.getDisableTfgOptimizer() != false) { + setDisableTfgOptimizer(other.getDisableTfgOptimizer()); + } + if (other.usePluginOptimizers_ != 0) { + setUsePluginOptimizersValue(other.getUsePluginOptimizersValue()); + } + if (other.experimentalConditionalCodeMotion_ != 0) { + setExperimentalConditionalCodeMotionValue(other.getExperimentalConditionalCodeMotionValue()); + } + if (other.metaOptimizerIterations_ != 0) { + setMetaOptimizerIterationsValue(other.getMetaOptimizerIterationsValue()); + } + if (other.getMinGraphNodes() != 0) { + setMinGraphNodes(other.getMinGraphNodes()); + } + if (other.getExperimentalDisableCompressedTensorOptimization() != false) { + setExperimentalDisableCompressedTensorOptimization(other.getExperimentalDisableCompressedTensorOptimization()); + } + if (other.getExperimentalDisableFoldingQuantizationEmulation() != false) { + setExperimentalDisableFoldingQuantizationEmulation(other.getExperimentalDisableFoldingQuantizationEmulation()); + } + if (other.memoryOptimization_ != 0) { + setMemoryOptimizationValue(other.getMemoryOptimizationValue()); + } + if (!other.getMemoryOptimizerTargetNodeNameScope().isEmpty()) { + memoryOptimizerTargetNodeNameScope_ = other.memoryOptimizerTargetNodeNameScope_; + onChanged(); + } + if (other.getMetaOptimizerTimeoutMs() != 0L) { + setMetaOptimizerTimeoutMs(other.getMetaOptimizerTimeoutMs()); + } + if (other.hasAutoParallel()) { + mergeAutoParallel(other.getAutoParallel()); + } + if (other.getFailOnOptimizerErrors() != false) { + setFailOnOptimizerErrors(other.getFailOnOptimizerErrors()); + } + if (other.hasScopedAllocatorOpts()) { + mergeScopedAllocatorOpts(other.getScopedAllocatorOpts()); + } + if (!other.optimizers_.isEmpty()) { + if (optimizers_.isEmpty()) { + optimizers_ = other.optimizers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOptimizersIsMutable(); + optimizers_.addAll(other.optimizers_); + } + onChanged(); + } + if (customOptimizersBuilder_ == null) { + if (!other.customOptimizers_.isEmpty()) { + if (customOptimizers_.isEmpty()) { + customOptimizers_ = other.customOptimizers_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCustomOptimizersIsMutable(); + customOptimizers_.addAll(other.customOptimizers_); + } + onChanged(); + } + } else { + if (!other.customOptimizers_.isEmpty()) { + if (customOptimizersBuilder_.isEmpty()) { + customOptimizersBuilder_.dispose(); + customOptimizersBuilder_ = null; + customOptimizers_ = other.customOptimizers_; + bitField0_ = (bitField0_ & ~0x00000002); + customOptimizersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCustomOptimizersFieldBuilder() : null; + } else { + customOptimizersBuilder_.addAllMessages(other.customOptimizers_); + } + } + } + if (other.hasInterOptimizerVerifierConfig()) { + mergeInterOptimizerVerifierConfig(other.getInterOptimizerVerifierConfig()); + } + if (other.hasPostOptimizationVerifierConfig()) { + mergePostOptimizationVerifierConfig(other.getPostOptimizationVerifierConfig()); + } + 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: { + layoutOptimizer_ = input.readEnum(); + + break; + } // case 8 + case 16: { + disableModelPruning_ = input.readBool(); + + break; + } // case 16 + case 24: { + constantFolding_ = input.readEnum(); + + break; + } // case 24 + case 32: { + memoryOptimization_ = input.readEnum(); + + break; + } // case 32 + case 42: { + input.readMessage( + getAutoParallelFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + case 50: { + memoryOptimizerTargetNodeNameScope_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 56: { + arithmeticOptimization_ = input.readEnum(); + + break; + } // case 56 + case 64: { + dependencyOptimization_ = input.readEnum(); + + break; + } // case 64 + case 72: { + loopOptimization_ = input.readEnum(); + + break; + } // case 72 + case 80: { + functionOptimization_ = input.readEnum(); + + break; + } // case 80 + case 88: { + debugStripper_ = input.readEnum(); + + break; + } // case 88 + case 96: { + metaOptimizerIterations_ = input.readEnum(); + + break; + } // case 96 + case 104: { + shapeOptimization_ = input.readEnum(); + + break; + } // case 104 + case 112: { + remapping_ = input.readEnum(); + + break; + } // case 112 + case 120: { + scopedAllocatorOptimization_ = input.readEnum(); + + break; + } // case 120 + case 130: { + input.readMessage( + getScopedAllocatorOptsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 130 + case 136: { + minGraphNodes_ = input.readInt32(); + + break; + } // case 136 + case 144: { + pinToHostOptimization_ = input.readEnum(); + + break; + } // case 144 + case 152: { + disableMetaOptimizer_ = input.readBool(); + + break; + } // case 152 + case 160: { + metaOptimizerTimeoutMs_ = input.readInt64(); + + break; + } // case 160 + case 168: { + failOnOptimizerErrors_ = input.readBool(); + + break; + } // case 168 + case 176: { + implementationSelector_ = input.readEnum(); + + break; + } // case 176 + case 184: { + autoMixedPrecision_ = input.readEnum(); + + break; + } // case 184 + case 192: { + commonSubgraphElimination_ = input.readEnum(); + + break; + } // case 192 + case 200: { + autoMixedPrecisionMkl_ = input.readEnum(); + + break; + } // case 200 + case 208: { + experimentalDisableCompressedTensorOptimization_ = input.readBool(); + + break; + } // case 208 + case 216: { + experimentalDisableFoldingQuantizationEmulation_ = input.readBool(); + + break; + } // case 216 + case 224: { + usePluginOptimizers_ = input.readEnum(); + + break; + } // case 224 + case 232: { + autoMixedPrecisionCpu_ = input.readEnum(); + + break; + } // case 232 + case 240: { + experimentalConditionalCodeMotion_ = input.readEnum(); + + break; + } // case 240 + case 248: { + autoMixedPrecisionOnednnBfloat16_ = input.readEnum(); + + break; + } // case 248 + case 256: { + disableTfgOptimizer_ = input.readBool(); + + break; + } // case 256 + case 400: { + cpuLayoutConversion_ = input.readEnum(); + + break; + } // case 400 + case 802: { + java.lang.String s = input.readStringRequireUtf8(); + ensureOptimizersIsMutable(); + optimizers_.add(s); + break; + } // case 802 + case 1602: { + org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer m = + input.readMessage( + org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer.parser(), + extensionRegistry); + if (customOptimizersBuilder_ == null) { + ensureCustomOptimizersIsMutable(); + customOptimizers_.add(m); + } else { + customOptimizersBuilder_.addMessage(m); + } + break; + } // case 1602 + case 2402: { + input.readMessage( + getInterOptimizerVerifierConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 2402 + case 2410: { + input.readMessage( + getPostOptimizationVerifierConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 2410 + 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 cpuLayoutConversion_ = 0; + /** + *
+     * CPU Conversion settings between NHCW and NCHW.
+     * 
+ * + * .tensorflow.RewriterConfig.CpuLayout cpu_layout_conversion = 50; + * @return The enum numeric value on the wire for cpuLayoutConversion. + */ + @java.lang.Override public int getCpuLayoutConversionValue() { + return cpuLayoutConversion_; + } + /** + *
+     * CPU Conversion settings between NHCW and NCHW.
+     * 
+ * + * .tensorflow.RewriterConfig.CpuLayout cpu_layout_conversion = 50; + * @param value The enum numeric value on the wire for cpuLayoutConversion to set. + * @return This builder for chaining. + */ + public Builder setCpuLayoutConversionValue(int value) { + + cpuLayoutConversion_ = value; + onChanged(); + return this; + } + /** + *
+     * CPU Conversion settings between NHCW and NCHW.
+     * 
+ * + * .tensorflow.RewriterConfig.CpuLayout cpu_layout_conversion = 50; + * @return The cpuLayoutConversion. + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.CpuLayout getCpuLayoutConversion() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.CpuLayout result = org.tensorflow.proto.RewriterConfig.CpuLayout.valueOf(cpuLayoutConversion_); + return result == null ? org.tensorflow.proto.RewriterConfig.CpuLayout.UNRECOGNIZED : result; + } + /** + *
+     * CPU Conversion settings between NHCW and NCHW.
+     * 
+ * + * .tensorflow.RewriterConfig.CpuLayout cpu_layout_conversion = 50; + * @param value The cpuLayoutConversion to set. + * @return This builder for chaining. + */ + public Builder setCpuLayoutConversion(org.tensorflow.proto.RewriterConfig.CpuLayout value) { + if (value == null) { + throw new NullPointerException(); + } + + cpuLayoutConversion_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * CPU Conversion settings between NHCW and NCHW.
+     * 
+ * + * .tensorflow.RewriterConfig.CpuLayout cpu_layout_conversion = 50; + * @return This builder for chaining. + */ + public Builder clearCpuLayoutConversion() { + + cpuLayoutConversion_ = 0; + onChanged(); + return this; + } + + private int layoutOptimizer_ = 0; + /** + *
+     * Optimize tensor layouts (default is ON)
+     * e.g. This will try to use NCHW layout on GPU which is faster.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle layout_optimizer = 1; + * @return The enum numeric value on the wire for layoutOptimizer. + */ + @java.lang.Override public int getLayoutOptimizerValue() { + return layoutOptimizer_; + } + /** + *
+     * Optimize tensor layouts (default is ON)
+     * e.g. This will try to use NCHW layout on GPU which is faster.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle layout_optimizer = 1; + * @param value The enum numeric value on the wire for layoutOptimizer to set. + * @return This builder for chaining. + */ + public Builder setLayoutOptimizerValue(int value) { + + layoutOptimizer_ = value; + onChanged(); + return this; + } + /** + *
+     * Optimize tensor layouts (default is ON)
+     * e.g. This will try to use NCHW layout on GPU which is faster.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle layout_optimizer = 1; + * @return The layoutOptimizer. + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.Toggle getLayoutOptimizer() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(layoutOptimizer_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + /** + *
+     * Optimize tensor layouts (default is ON)
+     * e.g. This will try to use NCHW layout on GPU which is faster.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle layout_optimizer = 1; + * @param value The layoutOptimizer to set. + * @return This builder for chaining. + */ + public Builder setLayoutOptimizer(org.tensorflow.proto.RewriterConfig.Toggle value) { + if (value == null) { + throw new NullPointerException(); + } + + layoutOptimizer_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Optimize tensor layouts (default is ON)
+     * e.g. This will try to use NCHW layout on GPU which is faster.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle layout_optimizer = 1; + * @return This builder for chaining. + */ + public Builder clearLayoutOptimizer() { + + layoutOptimizer_ = 0; + onChanged(); + return this; + } + + private int constantFolding_ = 0; + /** + *
+     * Fold constants (default is ON)
+     * Statically infer the value of tensors when possible, and materialize the
+     * result using constants.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle constant_folding = 3; + * @return The enum numeric value on the wire for constantFolding. + */ + @java.lang.Override public int getConstantFoldingValue() { + return constantFolding_; + } + /** + *
+     * Fold constants (default is ON)
+     * Statically infer the value of tensors when possible, and materialize the
+     * result using constants.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle constant_folding = 3; + * @param value The enum numeric value on the wire for constantFolding to set. + * @return This builder for chaining. + */ + public Builder setConstantFoldingValue(int value) { + + constantFolding_ = value; + onChanged(); + return this; + } + /** + *
+     * Fold constants (default is ON)
+     * Statically infer the value of tensors when possible, and materialize the
+     * result using constants.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle constant_folding = 3; + * @return The constantFolding. + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.Toggle getConstantFolding() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(constantFolding_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + /** + *
+     * Fold constants (default is ON)
+     * Statically infer the value of tensors when possible, and materialize the
+     * result using constants.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle constant_folding = 3; + * @param value The constantFolding to set. + * @return This builder for chaining. + */ + public Builder setConstantFolding(org.tensorflow.proto.RewriterConfig.Toggle value) { + if (value == null) { + throw new NullPointerException(); + } + + constantFolding_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Fold constants (default is ON)
+     * Statically infer the value of tensors when possible, and materialize the
+     * result using constants.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle constant_folding = 3; + * @return This builder for chaining. + */ + public Builder clearConstantFolding() { + + constantFolding_ = 0; + onChanged(); + return this; + } + + private int shapeOptimization_ = 0; + /** + *
+     * Shape optimizations (default is ON)
+     * Simplify computations made on shapes.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle shape_optimization = 13; + * @return The enum numeric value on the wire for shapeOptimization. + */ + @java.lang.Override public int getShapeOptimizationValue() { + return shapeOptimization_; + } + /** + *
+     * Shape optimizations (default is ON)
+     * Simplify computations made on shapes.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle shape_optimization = 13; + * @param value The enum numeric value on the wire for shapeOptimization to set. + * @return This builder for chaining. + */ + public Builder setShapeOptimizationValue(int value) { + + shapeOptimization_ = value; + onChanged(); + return this; + } + /** + *
+     * Shape optimizations (default is ON)
+     * Simplify computations made on shapes.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle shape_optimization = 13; + * @return The shapeOptimization. + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.Toggle getShapeOptimization() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(shapeOptimization_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + /** + *
+     * Shape optimizations (default is ON)
+     * Simplify computations made on shapes.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle shape_optimization = 13; + * @param value The shapeOptimization to set. + * @return This builder for chaining. + */ + public Builder setShapeOptimization(org.tensorflow.proto.RewriterConfig.Toggle value) { + if (value == null) { + throw new NullPointerException(); + } + + shapeOptimization_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Shape optimizations (default is ON)
+     * Simplify computations made on shapes.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle shape_optimization = 13; + * @return This builder for chaining. + */ + public Builder clearShapeOptimization() { + + shapeOptimization_ = 0; + onChanged(); + return this; + } + + private int remapping_ = 0; + /** + *
+     * Remapping (default is ON)
+     * Remap subgraphs onto more efficient implementations.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle remapping = 14; + * @return The enum numeric value on the wire for remapping. + */ + @java.lang.Override public int getRemappingValue() { + return remapping_; + } + /** + *
+     * Remapping (default is ON)
+     * Remap subgraphs onto more efficient implementations.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle remapping = 14; + * @param value The enum numeric value on the wire for remapping to set. + * @return This builder for chaining. + */ + public Builder setRemappingValue(int value) { + + remapping_ = value; + onChanged(); + return this; + } + /** + *
+     * Remapping (default is ON)
+     * Remap subgraphs onto more efficient implementations.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle remapping = 14; + * @return The remapping. + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.Toggle getRemapping() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(remapping_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + /** + *
+     * Remapping (default is ON)
+     * Remap subgraphs onto more efficient implementations.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle remapping = 14; + * @param value The remapping to set. + * @return This builder for chaining. + */ + public Builder setRemapping(org.tensorflow.proto.RewriterConfig.Toggle value) { + if (value == null) { + throw new NullPointerException(); + } + + remapping_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Remapping (default is ON)
+     * Remap subgraphs onto more efficient implementations.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle remapping = 14; + * @return This builder for chaining. + */ + public Builder clearRemapping() { + + remapping_ = 0; + onChanged(); + return this; + } + + private int commonSubgraphElimination_ = 0; + /** + *
+     * Common subgraph elimination (default is ON)
+     * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle common_subgraph_elimination = 24; + * @return The enum numeric value on the wire for commonSubgraphElimination. + */ + @java.lang.Override public int getCommonSubgraphEliminationValue() { + return commonSubgraphElimination_; + } + /** + *
+     * Common subgraph elimination (default is ON)
+     * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle common_subgraph_elimination = 24; + * @param value The enum numeric value on the wire for commonSubgraphElimination to set. + * @return This builder for chaining. + */ + public Builder setCommonSubgraphEliminationValue(int value) { + + commonSubgraphElimination_ = value; + onChanged(); + return this; + } + /** + *
+     * Common subgraph elimination (default is ON)
+     * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle common_subgraph_elimination = 24; + * @return The commonSubgraphElimination. + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.Toggle getCommonSubgraphElimination() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(commonSubgraphElimination_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + /** + *
+     * Common subgraph elimination (default is ON)
+     * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle common_subgraph_elimination = 24; + * @param value The commonSubgraphElimination to set. + * @return This builder for chaining. + */ + public Builder setCommonSubgraphElimination(org.tensorflow.proto.RewriterConfig.Toggle value) { + if (value == null) { + throw new NullPointerException(); + } + + commonSubgraphElimination_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Common subgraph elimination (default is ON)
+     * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle common_subgraph_elimination = 24; + * @return This builder for chaining. + */ + public Builder clearCommonSubgraphElimination() { + + commonSubgraphElimination_ = 0; + onChanged(); + return this; + } + + private int arithmeticOptimization_ = 0; + /** + *
+     * Arithmetic optimizations (default is ON)
+     * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7; + * @return The enum numeric value on the wire for arithmeticOptimization. + */ + @java.lang.Override public int getArithmeticOptimizationValue() { + return arithmeticOptimization_; + } + /** + *
+     * Arithmetic optimizations (default is ON)
+     * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7; + * @param value The enum numeric value on the wire for arithmeticOptimization to set. + * @return This builder for chaining. + */ + public Builder setArithmeticOptimizationValue(int value) { + + arithmeticOptimization_ = value; + onChanged(); + return this; + } + /** + *
+     * Arithmetic optimizations (default is ON)
+     * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7; + * @return The arithmeticOptimization. + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.Toggle getArithmeticOptimization() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(arithmeticOptimization_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + /** + *
+     * Arithmetic optimizations (default is ON)
+     * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7; + * @param value The arithmeticOptimization to set. + * @return This builder for chaining. + */ + public Builder setArithmeticOptimization(org.tensorflow.proto.RewriterConfig.Toggle value) { + if (value == null) { + throw new NullPointerException(); + } + + arithmeticOptimization_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Arithmetic optimizations (default is ON)
+     * e.g. Simplify arithmetic ops; merge ops with same value (like constants).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7; + * @return This builder for chaining. + */ + public Builder clearArithmeticOptimization() { + + arithmeticOptimization_ = 0; + onChanged(); + return this; + } + + private int dependencyOptimization_ = 0; + /** + *
+     * Control dependency optimizations (default is ON).
+     * Remove redundant control dependencies, which may enable other optimization.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle dependency_optimization = 8; + * @return The enum numeric value on the wire for dependencyOptimization. + */ + @java.lang.Override public int getDependencyOptimizationValue() { + return dependencyOptimization_; + } + /** + *
+     * Control dependency optimizations (default is ON).
+     * Remove redundant control dependencies, which may enable other optimization.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle dependency_optimization = 8; + * @param value The enum numeric value on the wire for dependencyOptimization to set. + * @return This builder for chaining. + */ + public Builder setDependencyOptimizationValue(int value) { + + dependencyOptimization_ = value; + onChanged(); + return this; + } + /** + *
+     * Control dependency optimizations (default is ON).
+     * Remove redundant control dependencies, which may enable other optimization.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle dependency_optimization = 8; + * @return The dependencyOptimization. + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.Toggle getDependencyOptimization() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(dependencyOptimization_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + /** + *
+     * Control dependency optimizations (default is ON).
+     * Remove redundant control dependencies, which may enable other optimization.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle dependency_optimization = 8; + * @param value The dependencyOptimization to set. + * @return This builder for chaining. + */ + public Builder setDependencyOptimization(org.tensorflow.proto.RewriterConfig.Toggle value) { + if (value == null) { + throw new NullPointerException(); + } + + dependencyOptimization_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Control dependency optimizations (default is ON).
+     * Remove redundant control dependencies, which may enable other optimization.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle dependency_optimization = 8; + * @return This builder for chaining. + */ + public Builder clearDependencyOptimization() { + + dependencyOptimization_ = 0; + onChanged(); + return this; + } + + private int loopOptimization_ = 0; + /** + *
+     * Loop optimizations (default is ON).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle loop_optimization = 9; + * @return The enum numeric value on the wire for loopOptimization. + */ + @java.lang.Override public int getLoopOptimizationValue() { + return loopOptimization_; + } + /** + *
+     * Loop optimizations (default is ON).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle loop_optimization = 9; + * @param value The enum numeric value on the wire for loopOptimization to set. + * @return This builder for chaining. + */ + public Builder setLoopOptimizationValue(int value) { + + loopOptimization_ = value; + onChanged(); + return this; + } + /** + *
+     * Loop optimizations (default is ON).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle loop_optimization = 9; + * @return The loopOptimization. + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.Toggle getLoopOptimization() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(loopOptimization_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + /** + *
+     * Loop optimizations (default is ON).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle loop_optimization = 9; + * @param value The loopOptimization to set. + * @return This builder for chaining. + */ + public Builder setLoopOptimization(org.tensorflow.proto.RewriterConfig.Toggle value) { + if (value == null) { + throw new NullPointerException(); + } + + loopOptimization_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Loop optimizations (default is ON).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle loop_optimization = 9; + * @return This builder for chaining. + */ + public Builder clearLoopOptimization() { + + loopOptimization_ = 0; + onChanged(); + return this; + } + + private int functionOptimization_ = 0; + /** + *
+     * Function optimizations (default is ON).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle function_optimization = 10; + * @return The enum numeric value on the wire for functionOptimization. + */ + @java.lang.Override public int getFunctionOptimizationValue() { + return functionOptimization_; + } + /** + *
+     * Function optimizations (default is ON).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle function_optimization = 10; + * @param value The enum numeric value on the wire for functionOptimization to set. + * @return This builder for chaining. + */ + public Builder setFunctionOptimizationValue(int value) { + + functionOptimization_ = value; + onChanged(); + return this; + } + /** + *
+     * Function optimizations (default is ON).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle function_optimization = 10; + * @return The functionOptimization. + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.Toggle getFunctionOptimization() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(functionOptimization_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + /** + *
+     * Function optimizations (default is ON).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle function_optimization = 10; + * @param value The functionOptimization to set. + * @return This builder for chaining. + */ + public Builder setFunctionOptimization(org.tensorflow.proto.RewriterConfig.Toggle value) { + if (value == null) { + throw new NullPointerException(); + } + + functionOptimization_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Function optimizations (default is ON).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle function_optimization = 10; + * @return This builder for chaining. + */ + public Builder clearFunctionOptimization() { + + functionOptimization_ = 0; + onChanged(); + return this; + } + + private int debugStripper_ = 0; + /** + *
+     * Strips debug-related nodes from the graph (off by default).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle debug_stripper = 11; + * @return The enum numeric value on the wire for debugStripper. + */ + @java.lang.Override public int getDebugStripperValue() { + return debugStripper_; + } + /** + *
+     * Strips debug-related nodes from the graph (off by default).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle debug_stripper = 11; + * @param value The enum numeric value on the wire for debugStripper to set. + * @return This builder for chaining. + */ + public Builder setDebugStripperValue(int value) { + + debugStripper_ = value; + onChanged(); + return this; + } + /** + *
+     * Strips debug-related nodes from the graph (off by default).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle debug_stripper = 11; + * @return The debugStripper. + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.Toggle getDebugStripper() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(debugStripper_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + /** + *
+     * Strips debug-related nodes from the graph (off by default).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle debug_stripper = 11; + * @param value The debugStripper to set. + * @return This builder for chaining. + */ + public Builder setDebugStripper(org.tensorflow.proto.RewriterConfig.Toggle value) { + if (value == null) { + throw new NullPointerException(); + } + + debugStripper_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Strips debug-related nodes from the graph (off by default).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle debug_stripper = 11; + * @return This builder for chaining. + */ + public Builder clearDebugStripper() { + + debugStripper_ = 0; + onChanged(); + return this; + } + + private boolean disableModelPruning_ ; + /** + *
+     * If true, don't remove unnecessary ops from the graph
+     * 
+ * + * bool disable_model_pruning = 2; + * @return The disableModelPruning. + */ + @java.lang.Override + public boolean getDisableModelPruning() { + return disableModelPruning_; + } + /** + *
+     * If true, don't remove unnecessary ops from the graph
+     * 
+ * + * bool disable_model_pruning = 2; + * @param value The disableModelPruning to set. + * @return This builder for chaining. + */ + public Builder setDisableModelPruning(boolean value) { + + disableModelPruning_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, don't remove unnecessary ops from the graph
+     * 
+ * + * bool disable_model_pruning = 2; + * @return This builder for chaining. + */ + public Builder clearDisableModelPruning() { + + disableModelPruning_ = false; + onChanged(); + return this; + } + + private int scopedAllocatorOptimization_ = 0; + /** + *
+     * Try to allocate some independent Op outputs contiguously in order to
+     * merge or eliminate downstream Ops (off by default).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15; + * @return The enum numeric value on the wire for scopedAllocatorOptimization. + */ + @java.lang.Override public int getScopedAllocatorOptimizationValue() { + return scopedAllocatorOptimization_; + } + /** + *
+     * Try to allocate some independent Op outputs contiguously in order to
+     * merge or eliminate downstream Ops (off by default).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15; + * @param value The enum numeric value on the wire for scopedAllocatorOptimization to set. + * @return This builder for chaining. + */ + public Builder setScopedAllocatorOptimizationValue(int value) { + + scopedAllocatorOptimization_ = value; + onChanged(); + return this; + } + /** + *
+     * Try to allocate some independent Op outputs contiguously in order to
+     * merge or eliminate downstream Ops (off by default).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15; + * @return The scopedAllocatorOptimization. + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.Toggle getScopedAllocatorOptimization() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(scopedAllocatorOptimization_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + /** + *
+     * Try to allocate some independent Op outputs contiguously in order to
+     * merge or eliminate downstream Ops (off by default).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15; + * @param value The scopedAllocatorOptimization to set. + * @return This builder for chaining. + */ + public Builder setScopedAllocatorOptimization(org.tensorflow.proto.RewriterConfig.Toggle value) { + if (value == null) { + throw new NullPointerException(); + } + + scopedAllocatorOptimization_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Try to allocate some independent Op outputs contiguously in order to
+     * merge or eliminate downstream Ops (off by default).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15; + * @return This builder for chaining. + */ + public Builder clearScopedAllocatorOptimization() { + + scopedAllocatorOptimization_ = 0; + onChanged(); + return this; + } + + private int pinToHostOptimization_ = 0; + /** + *
+     * Force small ops onto the CPU (default is OFF).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18; + * @return The enum numeric value on the wire for pinToHostOptimization. + */ + @java.lang.Override public int getPinToHostOptimizationValue() { + return pinToHostOptimization_; + } + /** + *
+     * Force small ops onto the CPU (default is OFF).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18; + * @param value The enum numeric value on the wire for pinToHostOptimization to set. + * @return This builder for chaining. + */ + public Builder setPinToHostOptimizationValue(int value) { + + pinToHostOptimization_ = value; + onChanged(); + return this; + } + /** + *
+     * Force small ops onto the CPU (default is OFF).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18; + * @return The pinToHostOptimization. + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.Toggle getPinToHostOptimization() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(pinToHostOptimization_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + /** + *
+     * Force small ops onto the CPU (default is OFF).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18; + * @param value The pinToHostOptimization to set. + * @return This builder for chaining. + */ + public Builder setPinToHostOptimization(org.tensorflow.proto.RewriterConfig.Toggle value) { + if (value == null) { + throw new NullPointerException(); + } + + pinToHostOptimization_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Force small ops onto the CPU (default is OFF).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18; + * @return This builder for chaining. + */ + public Builder clearPinToHostOptimization() { + + pinToHostOptimization_ = 0; + onChanged(); + return this; + } + + private int implementationSelector_ = 0; + /** + *
+     * Enable the swap of kernel implementations based on the device placement
+     * (default is ON).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle implementation_selector = 22; + * @return The enum numeric value on the wire for implementationSelector. + */ + @java.lang.Override public int getImplementationSelectorValue() { + return implementationSelector_; + } + /** + *
+     * Enable the swap of kernel implementations based on the device placement
+     * (default is ON).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle implementation_selector = 22; + * @param value The enum numeric value on the wire for implementationSelector to set. + * @return This builder for chaining. + */ + public Builder setImplementationSelectorValue(int value) { + + implementationSelector_ = value; + onChanged(); + return this; + } + /** + *
+     * Enable the swap of kernel implementations based on the device placement
+     * (default is ON).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle implementation_selector = 22; + * @return The implementationSelector. + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.Toggle getImplementationSelector() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(implementationSelector_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + /** + *
+     * Enable the swap of kernel implementations based on the device placement
+     * (default is ON).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle implementation_selector = 22; + * @param value The implementationSelector to set. + * @return This builder for chaining. + */ + public Builder setImplementationSelector(org.tensorflow.proto.RewriterConfig.Toggle value) { + if (value == null) { + throw new NullPointerException(); + } + + implementationSelector_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Enable the swap of kernel implementations based on the device placement
+     * (default is ON).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle implementation_selector = 22; + * @return This builder for chaining. + */ + public Builder clearImplementationSelector() { + + implementationSelector_ = 0; + onChanged(); + return this; + } + + private int autoMixedPrecision_ = 0; + /** + *
+     * Optimize data types for CUDA (default is OFF).
+     * This will try to use float16 on GPU which is faster.
+     * Note that this can change the numerical stability of the graph and may
+     * require the use of loss scaling to maintain model convergence.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision = 23; + * @return The enum numeric value on the wire for autoMixedPrecision. + */ + @java.lang.Override public int getAutoMixedPrecisionValue() { + return autoMixedPrecision_; + } + /** + *
+     * Optimize data types for CUDA (default is OFF).
+     * This will try to use float16 on GPU which is faster.
+     * Note that this can change the numerical stability of the graph and may
+     * require the use of loss scaling to maintain model convergence.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision = 23; + * @param value The enum numeric value on the wire for autoMixedPrecision to set. + * @return This builder for chaining. + */ + public Builder setAutoMixedPrecisionValue(int value) { + + autoMixedPrecision_ = value; + onChanged(); + return this; + } + /** + *
+     * Optimize data types for CUDA (default is OFF).
+     * This will try to use float16 on GPU which is faster.
+     * Note that this can change the numerical stability of the graph and may
+     * require the use of loss scaling to maintain model convergence.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision = 23; + * @return The autoMixedPrecision. + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.Toggle getAutoMixedPrecision() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(autoMixedPrecision_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + /** + *
+     * Optimize data types for CUDA (default is OFF).
+     * This will try to use float16 on GPU which is faster.
+     * Note that this can change the numerical stability of the graph and may
+     * require the use of loss scaling to maintain model convergence.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision = 23; + * @param value The autoMixedPrecision to set. + * @return This builder for chaining. + */ + public Builder setAutoMixedPrecision(org.tensorflow.proto.RewriterConfig.Toggle value) { + if (value == null) { + throw new NullPointerException(); + } + + autoMixedPrecision_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Optimize data types for CUDA (default is OFF).
+     * This will try to use float16 on GPU which is faster.
+     * Note that this can change the numerical stability of the graph and may
+     * require the use of loss scaling to maintain model convergence.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision = 23; + * @return This builder for chaining. + */ + public Builder clearAutoMixedPrecision() { + + autoMixedPrecision_ = 0; + onChanged(); + return this; + } + + private int autoMixedPrecisionMkl_ = 0; + /** + *
+     * Optimize data types for oneDNN (default is OFF).
+     * This will try to use bfloat16 on CPUs, which is faster.
+     * Note that this can change the numerical stability of the graph.
+     * Note: this is deprecated.
+     * It is replaced by auto_mixed_precision_onednn_bfloat16
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_mkl = 25; + * @return The enum numeric value on the wire for autoMixedPrecisionMkl. + */ + @java.lang.Override public int getAutoMixedPrecisionMklValue() { + return autoMixedPrecisionMkl_; + } + /** + *
+     * Optimize data types for oneDNN (default is OFF).
+     * This will try to use bfloat16 on CPUs, which is faster.
+     * Note that this can change the numerical stability of the graph.
+     * Note: this is deprecated.
+     * It is replaced by auto_mixed_precision_onednn_bfloat16
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_mkl = 25; + * @param value The enum numeric value on the wire for autoMixedPrecisionMkl to set. + * @return This builder for chaining. + */ + public Builder setAutoMixedPrecisionMklValue(int value) { + + autoMixedPrecisionMkl_ = value; + onChanged(); + return this; + } + /** + *
+     * Optimize data types for oneDNN (default is OFF).
+     * This will try to use bfloat16 on CPUs, which is faster.
+     * Note that this can change the numerical stability of the graph.
+     * Note: this is deprecated.
+     * It is replaced by auto_mixed_precision_onednn_bfloat16
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_mkl = 25; + * @return The autoMixedPrecisionMkl. + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.Toggle getAutoMixedPrecisionMkl() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(autoMixedPrecisionMkl_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + /** + *
+     * Optimize data types for oneDNN (default is OFF).
+     * This will try to use bfloat16 on CPUs, which is faster.
+     * Note that this can change the numerical stability of the graph.
+     * Note: this is deprecated.
+     * It is replaced by auto_mixed_precision_onednn_bfloat16
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_mkl = 25; + * @param value The autoMixedPrecisionMkl to set. + * @return This builder for chaining. + */ + public Builder setAutoMixedPrecisionMkl(org.tensorflow.proto.RewriterConfig.Toggle value) { + if (value == null) { + throw new NullPointerException(); + } + + autoMixedPrecisionMkl_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Optimize data types for oneDNN (default is OFF).
+     * This will try to use bfloat16 on CPUs, which is faster.
+     * Note that this can change the numerical stability of the graph.
+     * Note: this is deprecated.
+     * It is replaced by auto_mixed_precision_onednn_bfloat16
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_mkl = 25; + * @return This builder for chaining. + */ + public Builder clearAutoMixedPrecisionMkl() { + + autoMixedPrecisionMkl_ = 0; + onChanged(); + return this; + } + + private int autoMixedPrecisionOnednnBfloat16_ = 0; + /** + *
+     * Optimize data types for oneDNN (default is OFF).
+     * This will try to use bfloat16 on CPUs, which is faster.
+     * Note that this can change the numerical stability of the graph.
+     * Note: this is equivalent to the deprecated option auto_mixed_precision_mkl
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_onednn_bfloat16 = 31; + * @return The enum numeric value on the wire for autoMixedPrecisionOnednnBfloat16. + */ + @java.lang.Override public int getAutoMixedPrecisionOnednnBfloat16Value() { + return autoMixedPrecisionOnednnBfloat16_; + } + /** + *
+     * Optimize data types for oneDNN (default is OFF).
+     * This will try to use bfloat16 on CPUs, which is faster.
+     * Note that this can change the numerical stability of the graph.
+     * Note: this is equivalent to the deprecated option auto_mixed_precision_mkl
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_onednn_bfloat16 = 31; + * @param value The enum numeric value on the wire for autoMixedPrecisionOnednnBfloat16 to set. + * @return This builder for chaining. + */ + public Builder setAutoMixedPrecisionOnednnBfloat16Value(int value) { + + autoMixedPrecisionOnednnBfloat16_ = value; + onChanged(); + return this; + } + /** + *
+     * Optimize data types for oneDNN (default is OFF).
+     * This will try to use bfloat16 on CPUs, which is faster.
+     * Note that this can change the numerical stability of the graph.
+     * Note: this is equivalent to the deprecated option auto_mixed_precision_mkl
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_onednn_bfloat16 = 31; + * @return The autoMixedPrecisionOnednnBfloat16. + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.Toggle getAutoMixedPrecisionOnednnBfloat16() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(autoMixedPrecisionOnednnBfloat16_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + /** + *
+     * Optimize data types for oneDNN (default is OFF).
+     * This will try to use bfloat16 on CPUs, which is faster.
+     * Note that this can change the numerical stability of the graph.
+     * Note: this is equivalent to the deprecated option auto_mixed_precision_mkl
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_onednn_bfloat16 = 31; + * @param value The autoMixedPrecisionOnednnBfloat16 to set. + * @return This builder for chaining. + */ + public Builder setAutoMixedPrecisionOnednnBfloat16(org.tensorflow.proto.RewriterConfig.Toggle value) { + if (value == null) { + throw new NullPointerException(); + } + + autoMixedPrecisionOnednnBfloat16_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Optimize data types for oneDNN (default is OFF).
+     * This will try to use bfloat16 on CPUs, which is faster.
+     * Note that this can change the numerical stability of the graph.
+     * Note: this is equivalent to the deprecated option auto_mixed_precision_mkl
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_onednn_bfloat16 = 31; + * @return This builder for chaining. + */ + public Builder clearAutoMixedPrecisionOnednnBfloat16() { + + autoMixedPrecisionOnednnBfloat16_ = 0; + onChanged(); + return this; + } + + private int autoMixedPrecisionCpu_ = 0; + /** + *
+     * Emulate a model using data type float16 on CPU (default is OFF).
+     * This will try to emulate the float16 inputs and outputs of an operator
+     * on CPU to have better correlation with float16 on GPU; however the
+     * computation in the operator is based on float32.
+     * Note that this can change the numerical stability of the graph.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_cpu = 29; + * @return The enum numeric value on the wire for autoMixedPrecisionCpu. + */ + @java.lang.Override public int getAutoMixedPrecisionCpuValue() { + return autoMixedPrecisionCpu_; + } + /** + *
+     * Emulate a model using data type float16 on CPU (default is OFF).
+     * This will try to emulate the float16 inputs and outputs of an operator
+     * on CPU to have better correlation with float16 on GPU; however the
+     * computation in the operator is based on float32.
+     * Note that this can change the numerical stability of the graph.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_cpu = 29; + * @param value The enum numeric value on the wire for autoMixedPrecisionCpu to set. + * @return This builder for chaining. + */ + public Builder setAutoMixedPrecisionCpuValue(int value) { + + autoMixedPrecisionCpu_ = value; + onChanged(); + return this; + } + /** + *
+     * Emulate a model using data type float16 on CPU (default is OFF).
+     * This will try to emulate the float16 inputs and outputs of an operator
+     * on CPU to have better correlation with float16 on GPU; however the
+     * computation in the operator is based on float32.
+     * Note that this can change the numerical stability of the graph.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_cpu = 29; + * @return The autoMixedPrecisionCpu. + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.Toggle getAutoMixedPrecisionCpu() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(autoMixedPrecisionCpu_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + /** + *
+     * Emulate a model using data type float16 on CPU (default is OFF).
+     * This will try to emulate the float16 inputs and outputs of an operator
+     * on CPU to have better correlation with float16 on GPU; however the
+     * computation in the operator is based on float32.
+     * Note that this can change the numerical stability of the graph.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_cpu = 29; + * @param value The autoMixedPrecisionCpu to set. + * @return This builder for chaining. + */ + public Builder setAutoMixedPrecisionCpu(org.tensorflow.proto.RewriterConfig.Toggle value) { + if (value == null) { + throw new NullPointerException(); + } + + autoMixedPrecisionCpu_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Emulate a model using data type float16 on CPU (default is OFF).
+     * This will try to emulate the float16 inputs and outputs of an operator
+     * on CPU to have better correlation with float16 on GPU; however the
+     * computation in the operator is based on float32.
+     * Note that this can change the numerical stability of the graph.
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_cpu = 29; + * @return This builder for chaining. + */ + public Builder clearAutoMixedPrecisionCpu() { + + autoMixedPrecisionCpu_ = 0; + onChanged(); + return this; + } + + private boolean disableMetaOptimizer_ ; + /** + *
+     * Disable the entire meta optimizer (off by default).
+     * 
+ * + * bool disable_meta_optimizer = 19; + * @return The disableMetaOptimizer. + */ + @java.lang.Override + public boolean getDisableMetaOptimizer() { + return disableMetaOptimizer_; + } + /** + *
+     * Disable the entire meta optimizer (off by default).
+     * 
+ * + * bool disable_meta_optimizer = 19; + * @param value The disableMetaOptimizer to set. + * @return This builder for chaining. + */ + public Builder setDisableMetaOptimizer(boolean value) { + + disableMetaOptimizer_ = value; + onChanged(); + return this; + } + /** + *
+     * Disable the entire meta optimizer (off by default).
+     * 
+ * + * bool disable_meta_optimizer = 19; + * @return This builder for chaining. + */ + public Builder clearDisableMetaOptimizer() { + + disableMetaOptimizer_ = false; + onChanged(); + return this; + } + + private boolean disableTfgOptimizer_ ; + /** + *
+     * Disable the TFG optimizer (off by default).
+     * 
+ * + * bool disable_tfg_optimizer = 32; + * @return The disableTfgOptimizer. + */ + @java.lang.Override + public boolean getDisableTfgOptimizer() { + return disableTfgOptimizer_; + } + /** + *
+     * Disable the TFG optimizer (off by default).
+     * 
+ * + * bool disable_tfg_optimizer = 32; + * @param value The disableTfgOptimizer to set. + * @return This builder for chaining. + */ + public Builder setDisableTfgOptimizer(boolean value) { + + disableTfgOptimizer_ = value; + onChanged(); + return this; + } + /** + *
+     * Disable the TFG optimizer (off by default).
+     * 
+ * + * bool disable_tfg_optimizer = 32; + * @return This builder for chaining. + */ + public Builder clearDisableTfgOptimizer() { + + disableTfgOptimizer_ = false; + onChanged(); + return this; + } + + private int usePluginOptimizers_ = 0; + /** + *
+     * Optimizers registered by plugin (default is ON)
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle use_plugin_optimizers = 28; + * @return The enum numeric value on the wire for usePluginOptimizers. + */ + @java.lang.Override public int getUsePluginOptimizersValue() { + return usePluginOptimizers_; + } + /** + *
+     * Optimizers registered by plugin (default is ON)
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle use_plugin_optimizers = 28; + * @param value The enum numeric value on the wire for usePluginOptimizers to set. + * @return This builder for chaining. + */ + public Builder setUsePluginOptimizersValue(int value) { + + usePluginOptimizers_ = value; + onChanged(); + return this; + } + /** + *
+     * Optimizers registered by plugin (default is ON)
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle use_plugin_optimizers = 28; + * @return The usePluginOptimizers. + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.Toggle getUsePluginOptimizers() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(usePluginOptimizers_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + /** + *
+     * Optimizers registered by plugin (default is ON)
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle use_plugin_optimizers = 28; + * @param value The usePluginOptimizers to set. + * @return This builder for chaining. + */ + public Builder setUsePluginOptimizers(org.tensorflow.proto.RewriterConfig.Toggle value) { + if (value == null) { + throw new NullPointerException(); + } + + usePluginOptimizers_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Optimizers registered by plugin (default is ON)
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle use_plugin_optimizers = 28; + * @return This builder for chaining. + */ + public Builder clearUsePluginOptimizers() { + + usePluginOptimizers_ = 0; + onChanged(); + return this; + } + + private int experimentalConditionalCodeMotion_ = 0; + /** + *
+     * Conditional code motion (default is ON).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle experimental_conditional_code_motion = 30; + * @return The enum numeric value on the wire for experimentalConditionalCodeMotion. + */ + @java.lang.Override public int getExperimentalConditionalCodeMotionValue() { + return experimentalConditionalCodeMotion_; + } + /** + *
+     * Conditional code motion (default is ON).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle experimental_conditional_code_motion = 30; + * @param value The enum numeric value on the wire for experimentalConditionalCodeMotion to set. + * @return This builder for chaining. + */ + public Builder setExperimentalConditionalCodeMotionValue(int value) { + + experimentalConditionalCodeMotion_ = value; + onChanged(); + return this; + } + /** + *
+     * Conditional code motion (default is ON).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle experimental_conditional_code_motion = 30; + * @return The experimentalConditionalCodeMotion. + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.Toggle getExperimentalConditionalCodeMotion() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.Toggle result = org.tensorflow.proto.RewriterConfig.Toggle.valueOf(experimentalConditionalCodeMotion_); + return result == null ? org.tensorflow.proto.RewriterConfig.Toggle.UNRECOGNIZED : result; + } + /** + *
+     * Conditional code motion (default is ON).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle experimental_conditional_code_motion = 30; + * @param value The experimentalConditionalCodeMotion to set. + * @return This builder for chaining. + */ + public Builder setExperimentalConditionalCodeMotion(org.tensorflow.proto.RewriterConfig.Toggle value) { + if (value == null) { + throw new NullPointerException(); + } + + experimentalConditionalCodeMotion_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Conditional code motion (default is ON).
+     * 
+ * + * .tensorflow.RewriterConfig.Toggle experimental_conditional_code_motion = 30; + * @return This builder for chaining. + */ + public Builder clearExperimentalConditionalCodeMotion() { + + experimentalConditionalCodeMotion_ = 0; + onChanged(); + return this; + } + + private int metaOptimizerIterations_ = 0; + /** + *
+     * Controls how many times we run the optimizers in meta optimizer (default
+     * is once).
+     * 
+ * + * .tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12; + * @return The enum numeric value on the wire for metaOptimizerIterations. + */ + @java.lang.Override public int getMetaOptimizerIterationsValue() { + return metaOptimizerIterations_; + } + /** + *
+     * Controls how many times we run the optimizers in meta optimizer (default
+     * is once).
+     * 
+ * + * .tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12; + * @param value The enum numeric value on the wire for metaOptimizerIterations to set. + * @return This builder for chaining. + */ + public Builder setMetaOptimizerIterationsValue(int value) { + + metaOptimizerIterations_ = value; + onChanged(); + return this; + } + /** + *
+     * Controls how many times we run the optimizers in meta optimizer (default
+     * is once).
+     * 
+ * + * .tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12; + * @return The metaOptimizerIterations. + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.NumIterationsType getMetaOptimizerIterations() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.NumIterationsType result = org.tensorflow.proto.RewriterConfig.NumIterationsType.valueOf(metaOptimizerIterations_); + return result == null ? org.tensorflow.proto.RewriterConfig.NumIterationsType.UNRECOGNIZED : result; + } + /** + *
+     * Controls how many times we run the optimizers in meta optimizer (default
+     * is once).
+     * 
+ * + * .tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12; + * @param value The metaOptimizerIterations to set. + * @return This builder for chaining. + */ + public Builder setMetaOptimizerIterations(org.tensorflow.proto.RewriterConfig.NumIterationsType value) { + if (value == null) { + throw new NullPointerException(); + } + + metaOptimizerIterations_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Controls how many times we run the optimizers in meta optimizer (default
+     * is once).
+     * 
+ * + * .tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12; + * @return This builder for chaining. + */ + public Builder clearMetaOptimizerIterations() { + + metaOptimizerIterations_ = 0; + onChanged(); + return this; + } + + private int minGraphNodes_ ; + /** + *
+     * The minimum number of nodes in a graph to optimizer. For smaller graphs,
+     * optimization is skipped.
+     * 0 means the system picks an appropriate number.
+     * < 0 means do not skip optimization.
+     * 
+ * + * int32 min_graph_nodes = 17; + * @return The minGraphNodes. + */ + @java.lang.Override + public int getMinGraphNodes() { + return minGraphNodes_; + } + /** + *
+     * The minimum number of nodes in a graph to optimizer. For smaller graphs,
+     * optimization is skipped.
+     * 0 means the system picks an appropriate number.
+     * < 0 means do not skip optimization.
+     * 
+ * + * int32 min_graph_nodes = 17; + * @param value The minGraphNodes to set. + * @return This builder for chaining. + */ + public Builder setMinGraphNodes(int value) { + + minGraphNodes_ = value; + onChanged(); + return this; + } + /** + *
+     * The minimum number of nodes in a graph to optimizer. For smaller graphs,
+     * optimization is skipped.
+     * 0 means the system picks an appropriate number.
+     * < 0 means do not skip optimization.
+     * 
+ * + * int32 min_graph_nodes = 17; + * @return This builder for chaining. + */ + public Builder clearMinGraphNodes() { + + minGraphNodes_ = 0; + onChanged(); + return this; + } + + private boolean experimentalDisableCompressedTensorOptimization_ ; + /** + *
+     * Disable optimizations that assume compressed tensors. Note that this flag
+     * is experimental and may be removed in the future.
+     * 
+ * + * bool experimental_disable_compressed_tensor_optimization = 26; + * @return The experimentalDisableCompressedTensorOptimization. + */ + @java.lang.Override + public boolean getExperimentalDisableCompressedTensorOptimization() { + return experimentalDisableCompressedTensorOptimization_; + } + /** + *
+     * Disable optimizations that assume compressed tensors. Note that this flag
+     * is experimental and may be removed in the future.
+     * 
+ * + * bool experimental_disable_compressed_tensor_optimization = 26; + * @param value The experimentalDisableCompressedTensorOptimization to set. + * @return This builder for chaining. + */ + public Builder setExperimentalDisableCompressedTensorOptimization(boolean value) { + + experimentalDisableCompressedTensorOptimization_ = value; + onChanged(); + return this; + } + /** + *
+     * Disable optimizations that assume compressed tensors. Note that this flag
+     * is experimental and may be removed in the future.
+     * 
+ * + * bool experimental_disable_compressed_tensor_optimization = 26; + * @return This builder for chaining. + */ + public Builder clearExperimentalDisableCompressedTensorOptimization() { + + experimentalDisableCompressedTensorOptimization_ = false; + onChanged(); + return this; + } + + private boolean experimentalDisableFoldingQuantizationEmulation_ ; + /** + *
+     * Disable folding quantization emulation ops such as FakeQuantWithMinMax* and
+     * QuantizeAndDequantize*. Some compilers (e.g. the TF-to-tflite converter)
+     * have to extract quantization configs (e.g. min/max range, number of bits,
+     * and per-channel) from the quantization emulation ops. Note that this flag
+     * is experimental and may be removed in the future. See b/174138564 for more
+     * details.
+     * 
+ * + * bool experimental_disable_folding_quantization_emulation = 27; + * @return The experimentalDisableFoldingQuantizationEmulation. + */ + @java.lang.Override + public boolean getExperimentalDisableFoldingQuantizationEmulation() { + return experimentalDisableFoldingQuantizationEmulation_; + } + /** + *
+     * Disable folding quantization emulation ops such as FakeQuantWithMinMax* and
+     * QuantizeAndDequantize*. Some compilers (e.g. the TF-to-tflite converter)
+     * have to extract quantization configs (e.g. min/max range, number of bits,
+     * and per-channel) from the quantization emulation ops. Note that this flag
+     * is experimental and may be removed in the future. See b/174138564 for more
+     * details.
+     * 
+ * + * bool experimental_disable_folding_quantization_emulation = 27; + * @param value The experimentalDisableFoldingQuantizationEmulation to set. + * @return This builder for chaining. + */ + public Builder setExperimentalDisableFoldingQuantizationEmulation(boolean value) { + + experimentalDisableFoldingQuantizationEmulation_ = value; + onChanged(); + return this; + } + /** + *
+     * Disable folding quantization emulation ops such as FakeQuantWithMinMax* and
+     * QuantizeAndDequantize*. Some compilers (e.g. the TF-to-tflite converter)
+     * have to extract quantization configs (e.g. min/max range, number of bits,
+     * and per-channel) from the quantization emulation ops. Note that this flag
+     * is experimental and may be removed in the future. See b/174138564 for more
+     * details.
+     * 
+ * + * bool experimental_disable_folding_quantization_emulation = 27; + * @return This builder for chaining. + */ + public Builder clearExperimentalDisableFoldingQuantizationEmulation() { + + experimentalDisableFoldingQuantizationEmulation_ = false; + onChanged(); + return this; + } + + private int memoryOptimization_ = 0; + /** + *
+     * Configures memory optimization passes through the meta-optimizer. Has no
+     * effect on manually requested memory optimization passes in the optimizers
+     * field.
+     * 
+ * + * .tensorflow.RewriterConfig.MemOptType memory_optimization = 4; + * @return The enum numeric value on the wire for memoryOptimization. + */ + @java.lang.Override public int getMemoryOptimizationValue() { + return memoryOptimization_; + } + /** + *
+     * Configures memory optimization passes through the meta-optimizer. Has no
+     * effect on manually requested memory optimization passes in the optimizers
+     * field.
+     * 
+ * + * .tensorflow.RewriterConfig.MemOptType memory_optimization = 4; + * @param value The enum numeric value on the wire for memoryOptimization to set. + * @return This builder for chaining. + */ + public Builder setMemoryOptimizationValue(int value) { + + memoryOptimization_ = value; + onChanged(); + return this; + } + /** + *
+     * Configures memory optimization passes through the meta-optimizer. Has no
+     * effect on manually requested memory optimization passes in the optimizers
+     * field.
+     * 
+ * + * .tensorflow.RewriterConfig.MemOptType memory_optimization = 4; + * @return The memoryOptimization. + */ + @java.lang.Override + public org.tensorflow.proto.RewriterConfig.MemOptType getMemoryOptimization() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RewriterConfig.MemOptType result = org.tensorflow.proto.RewriterConfig.MemOptType.valueOf(memoryOptimization_); + return result == null ? org.tensorflow.proto.RewriterConfig.MemOptType.UNRECOGNIZED : result; + } + /** + *
+     * Configures memory optimization passes through the meta-optimizer. Has no
+     * effect on manually requested memory optimization passes in the optimizers
+     * field.
+     * 
+ * + * .tensorflow.RewriterConfig.MemOptType memory_optimization = 4; + * @param value The memoryOptimization to set. + * @return This builder for chaining. + */ + public Builder setMemoryOptimization(org.tensorflow.proto.RewriterConfig.MemOptType value) { + if (value == null) { + throw new NullPointerException(); + } + + memoryOptimization_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Configures memory optimization passes through the meta-optimizer. Has no
+     * effect on manually requested memory optimization passes in the optimizers
+     * field.
+     * 
+ * + * .tensorflow.RewriterConfig.MemOptType memory_optimization = 4; + * @return This builder for chaining. + */ + public Builder clearMemoryOptimization() { + + memoryOptimization_ = 0; + onChanged(); + return this; + } + + private java.lang.Object memoryOptimizerTargetNodeNameScope_ = ""; + /** + *
+     * A node name scope for node names which are valid outputs of recomputations.
+     * Inputs to nodes that match this scope may be recomputed (subject either to
+     * manual annotation of those input nodes or to manual annotation and
+     * heuristics depending on memory_optimization), but the nodes themselves will
+     * not be recomputed. This matches any sub-scopes as well, meaning the scope
+     * can appear not just as a top-level scope. For example, if the value is
+     * "gradients/", the default, it will match node name "gradients/foo",
+     * "foo/gradients/bar", but not "foo_gradients/"
+     * 
+ * + * string memory_optimizer_target_node_name_scope = 6; + * @return The memoryOptimizerTargetNodeNameScope. + */ + public java.lang.String getMemoryOptimizerTargetNodeNameScope() { + java.lang.Object ref = memoryOptimizerTargetNodeNameScope_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + memoryOptimizerTargetNodeNameScope_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A node name scope for node names which are valid outputs of recomputations.
+     * Inputs to nodes that match this scope may be recomputed (subject either to
+     * manual annotation of those input nodes or to manual annotation and
+     * heuristics depending on memory_optimization), but the nodes themselves will
+     * not be recomputed. This matches any sub-scopes as well, meaning the scope
+     * can appear not just as a top-level scope. For example, if the value is
+     * "gradients/", the default, it will match node name "gradients/foo",
+     * "foo/gradients/bar", but not "foo_gradients/"
+     * 
+ * + * string memory_optimizer_target_node_name_scope = 6; + * @return The bytes for memoryOptimizerTargetNodeNameScope. + */ + public com.google.protobuf.ByteString + getMemoryOptimizerTargetNodeNameScopeBytes() { + java.lang.Object ref = memoryOptimizerTargetNodeNameScope_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + memoryOptimizerTargetNodeNameScope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A node name scope for node names which are valid outputs of recomputations.
+     * Inputs to nodes that match this scope may be recomputed (subject either to
+     * manual annotation of those input nodes or to manual annotation and
+     * heuristics depending on memory_optimization), but the nodes themselves will
+     * not be recomputed. This matches any sub-scopes as well, meaning the scope
+     * can appear not just as a top-level scope. For example, if the value is
+     * "gradients/", the default, it will match node name "gradients/foo",
+     * "foo/gradients/bar", but not "foo_gradients/"
+     * 
+ * + * string memory_optimizer_target_node_name_scope = 6; + * @param value The memoryOptimizerTargetNodeNameScope to set. + * @return This builder for chaining. + */ + public Builder setMemoryOptimizerTargetNodeNameScope( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + memoryOptimizerTargetNodeNameScope_ = value; + onChanged(); + return this; + } + /** + *
+     * A node name scope for node names which are valid outputs of recomputations.
+     * Inputs to nodes that match this scope may be recomputed (subject either to
+     * manual annotation of those input nodes or to manual annotation and
+     * heuristics depending on memory_optimization), but the nodes themselves will
+     * not be recomputed. This matches any sub-scopes as well, meaning the scope
+     * can appear not just as a top-level scope. For example, if the value is
+     * "gradients/", the default, it will match node name "gradients/foo",
+     * "foo/gradients/bar", but not "foo_gradients/"
+     * 
+ * + * string memory_optimizer_target_node_name_scope = 6; + * @return This builder for chaining. + */ + public Builder clearMemoryOptimizerTargetNodeNameScope() { + + memoryOptimizerTargetNodeNameScope_ = getDefaultInstance().getMemoryOptimizerTargetNodeNameScope(); + onChanged(); + return this; + } + /** + *
+     * A node name scope for node names which are valid outputs of recomputations.
+     * Inputs to nodes that match this scope may be recomputed (subject either to
+     * manual annotation of those input nodes or to manual annotation and
+     * heuristics depending on memory_optimization), but the nodes themselves will
+     * not be recomputed. This matches any sub-scopes as well, meaning the scope
+     * can appear not just as a top-level scope. For example, if the value is
+     * "gradients/", the default, it will match node name "gradients/foo",
+     * "foo/gradients/bar", but not "foo_gradients/"
+     * 
+ * + * string memory_optimizer_target_node_name_scope = 6; + * @param value The bytes for memoryOptimizerTargetNodeNameScope to set. + * @return This builder for chaining. + */ + public Builder setMemoryOptimizerTargetNodeNameScopeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + memoryOptimizerTargetNodeNameScope_ = value; + onChanged(); + return this; + } + + private long metaOptimizerTimeoutMs_ ; + /** + *
+     * Maximum number of milliseconds to spend optimizing a single graph before
+     * timing out. If less than or equal to 0 (default value) the optimizer will
+     * never time out.
+     * 
+ * + * int64 meta_optimizer_timeout_ms = 20; + * @return The metaOptimizerTimeoutMs. + */ + @java.lang.Override + public long getMetaOptimizerTimeoutMs() { + return metaOptimizerTimeoutMs_; + } + /** + *
+     * Maximum number of milliseconds to spend optimizing a single graph before
+     * timing out. If less than or equal to 0 (default value) the optimizer will
+     * never time out.
+     * 
+ * + * int64 meta_optimizer_timeout_ms = 20; + * @param value The metaOptimizerTimeoutMs to set. + * @return This builder for chaining. + */ + public Builder setMetaOptimizerTimeoutMs(long value) { + + metaOptimizerTimeoutMs_ = value; + onChanged(); + return this; + } + /** + *
+     * Maximum number of milliseconds to spend optimizing a single graph before
+     * timing out. If less than or equal to 0 (default value) the optimizer will
+     * never time out.
+     * 
+ * + * int64 meta_optimizer_timeout_ms = 20; + * @return This builder for chaining. + */ + public Builder clearMetaOptimizerTimeoutMs() { + + metaOptimizerTimeoutMs_ = 0L; + onChanged(); + return this; + } + + private org.tensorflow.proto.AutoParallelOptions autoParallel_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.AutoParallelOptions, org.tensorflow.proto.AutoParallelOptions.Builder, org.tensorflow.proto.AutoParallelOptionsOrBuilder> autoParallelBuilder_; + /** + *
+     * Configures AutoParallel optimization passes either through the
+     * meta-optimizer or when manually specified through the optimizers field.
+     * 
+ * + * .tensorflow.AutoParallelOptions auto_parallel = 5; + * @return Whether the autoParallel field is set. + */ + public boolean hasAutoParallel() { + return autoParallelBuilder_ != null || autoParallel_ != null; + } + /** + *
+     * Configures AutoParallel optimization passes either through the
+     * meta-optimizer or when manually specified through the optimizers field.
+     * 
+ * + * .tensorflow.AutoParallelOptions auto_parallel = 5; + * @return The autoParallel. + */ + public org.tensorflow.proto.AutoParallelOptions getAutoParallel() { + if (autoParallelBuilder_ == null) { + return autoParallel_ == null ? org.tensorflow.proto.AutoParallelOptions.getDefaultInstance() : autoParallel_; + } else { + return autoParallelBuilder_.getMessage(); + } + } + /** + *
+     * Configures AutoParallel optimization passes either through the
+     * meta-optimizer or when manually specified through the optimizers field.
+     * 
+ * + * .tensorflow.AutoParallelOptions auto_parallel = 5; + */ + public Builder setAutoParallel(org.tensorflow.proto.AutoParallelOptions value) { + if (autoParallelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoParallel_ = value; + onChanged(); + } else { + autoParallelBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Configures AutoParallel optimization passes either through the
+     * meta-optimizer or when manually specified through the optimizers field.
+     * 
+ * + * .tensorflow.AutoParallelOptions auto_parallel = 5; + */ + public Builder setAutoParallel( + org.tensorflow.proto.AutoParallelOptions.Builder builderForValue) { + if (autoParallelBuilder_ == null) { + autoParallel_ = builderForValue.build(); + onChanged(); + } else { + autoParallelBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Configures AutoParallel optimization passes either through the
+     * meta-optimizer or when manually specified through the optimizers field.
+     * 
+ * + * .tensorflow.AutoParallelOptions auto_parallel = 5; + */ + public Builder mergeAutoParallel(org.tensorflow.proto.AutoParallelOptions value) { + if (autoParallelBuilder_ == null) { + if (autoParallel_ != null) { + autoParallel_ = + org.tensorflow.proto.AutoParallelOptions.newBuilder(autoParallel_).mergeFrom(value).buildPartial(); + } else { + autoParallel_ = value; + } + onChanged(); + } else { + autoParallelBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Configures AutoParallel optimization passes either through the
+     * meta-optimizer or when manually specified through the optimizers field.
+     * 
+ * + * .tensorflow.AutoParallelOptions auto_parallel = 5; + */ + public Builder clearAutoParallel() { + if (autoParallelBuilder_ == null) { + autoParallel_ = null; + onChanged(); + } else { + autoParallel_ = null; + autoParallelBuilder_ = null; + } + + return this; + } + /** + *
+     * Configures AutoParallel optimization passes either through the
+     * meta-optimizer or when manually specified through the optimizers field.
+     * 
+ * + * .tensorflow.AutoParallelOptions auto_parallel = 5; + */ + public org.tensorflow.proto.AutoParallelOptions.Builder getAutoParallelBuilder() { + + onChanged(); + return getAutoParallelFieldBuilder().getBuilder(); + } + /** + *
+     * Configures AutoParallel optimization passes either through the
+     * meta-optimizer or when manually specified through the optimizers field.
+     * 
+ * + * .tensorflow.AutoParallelOptions auto_parallel = 5; + */ + public org.tensorflow.proto.AutoParallelOptionsOrBuilder getAutoParallelOrBuilder() { + if (autoParallelBuilder_ != null) { + return autoParallelBuilder_.getMessageOrBuilder(); + } else { + return autoParallel_ == null ? + org.tensorflow.proto.AutoParallelOptions.getDefaultInstance() : autoParallel_; + } + } + /** + *
+     * Configures AutoParallel optimization passes either through the
+     * meta-optimizer or when manually specified through the optimizers field.
+     * 
+ * + * .tensorflow.AutoParallelOptions auto_parallel = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.AutoParallelOptions, org.tensorflow.proto.AutoParallelOptions.Builder, org.tensorflow.proto.AutoParallelOptionsOrBuilder> + getAutoParallelFieldBuilder() { + if (autoParallelBuilder_ == null) { + autoParallelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.AutoParallelOptions, org.tensorflow.proto.AutoParallelOptions.Builder, org.tensorflow.proto.AutoParallelOptionsOrBuilder>( + getAutoParallel(), + getParentForChildren(), + isClean()); + autoParallel_ = null; + } + return autoParallelBuilder_; + } + + private boolean failOnOptimizerErrors_ ; + /** + *
+     * If true, any optimization pass failing will cause the MetaOptimizer to
+     * stop with an error. By default - or when set to false, failing passes are
+     * skipped silently.
+     * 
+ * + * bool fail_on_optimizer_errors = 21; + * @return The failOnOptimizerErrors. + */ + @java.lang.Override + public boolean getFailOnOptimizerErrors() { + return failOnOptimizerErrors_; + } + /** + *
+     * If true, any optimization pass failing will cause the MetaOptimizer to
+     * stop with an error. By default - or when set to false, failing passes are
+     * skipped silently.
+     * 
+ * + * bool fail_on_optimizer_errors = 21; + * @param value The failOnOptimizerErrors to set. + * @return This builder for chaining. + */ + public Builder setFailOnOptimizerErrors(boolean value) { + + failOnOptimizerErrors_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, any optimization pass failing will cause the MetaOptimizer to
+     * stop with an error. By default - or when set to false, failing passes are
+     * skipped silently.
+     * 
+ * + * bool fail_on_optimizer_errors = 21; + * @return This builder for chaining. + */ + public Builder clearFailOnOptimizerErrors() { + + failOnOptimizerErrors_ = false; + onChanged(); + return this; + } + + private org.tensorflow.proto.ScopedAllocatorOptions scopedAllocatorOpts_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.ScopedAllocatorOptions, org.tensorflow.proto.ScopedAllocatorOptions.Builder, org.tensorflow.proto.ScopedAllocatorOptionsOrBuilder> scopedAllocatorOptsBuilder_; + /** + * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; + * @return Whether the scopedAllocatorOpts field is set. + */ + public boolean hasScopedAllocatorOpts() { + return scopedAllocatorOptsBuilder_ != null || scopedAllocatorOpts_ != null; + } + /** + * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; + * @return The scopedAllocatorOpts. + */ + public org.tensorflow.proto.ScopedAllocatorOptions getScopedAllocatorOpts() { + if (scopedAllocatorOptsBuilder_ == null) { + return scopedAllocatorOpts_ == null ? org.tensorflow.proto.ScopedAllocatorOptions.getDefaultInstance() : scopedAllocatorOpts_; + } else { + return scopedAllocatorOptsBuilder_.getMessage(); + } + } + /** + * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; + */ + public Builder setScopedAllocatorOpts(org.tensorflow.proto.ScopedAllocatorOptions value) { + if (scopedAllocatorOptsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scopedAllocatorOpts_ = value; + onChanged(); + } else { + scopedAllocatorOptsBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; + */ + public Builder setScopedAllocatorOpts( + org.tensorflow.proto.ScopedAllocatorOptions.Builder builderForValue) { + if (scopedAllocatorOptsBuilder_ == null) { + scopedAllocatorOpts_ = builderForValue.build(); + onChanged(); + } else { + scopedAllocatorOptsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; + */ + public Builder mergeScopedAllocatorOpts(org.tensorflow.proto.ScopedAllocatorOptions value) { + if (scopedAllocatorOptsBuilder_ == null) { + if (scopedAllocatorOpts_ != null) { + scopedAllocatorOpts_ = + org.tensorflow.proto.ScopedAllocatorOptions.newBuilder(scopedAllocatorOpts_).mergeFrom(value).buildPartial(); + } else { + scopedAllocatorOpts_ = value; + } + onChanged(); + } else { + scopedAllocatorOptsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; + */ + public Builder clearScopedAllocatorOpts() { + if (scopedAllocatorOptsBuilder_ == null) { + scopedAllocatorOpts_ = null; + onChanged(); + } else { + scopedAllocatorOpts_ = null; + scopedAllocatorOptsBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; + */ + public org.tensorflow.proto.ScopedAllocatorOptions.Builder getScopedAllocatorOptsBuilder() { + + onChanged(); + return getScopedAllocatorOptsFieldBuilder().getBuilder(); + } + /** + * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; + */ + public org.tensorflow.proto.ScopedAllocatorOptionsOrBuilder getScopedAllocatorOptsOrBuilder() { + if (scopedAllocatorOptsBuilder_ != null) { + return scopedAllocatorOptsBuilder_.getMessageOrBuilder(); + } else { + return scopedAllocatorOpts_ == null ? + org.tensorflow.proto.ScopedAllocatorOptions.getDefaultInstance() : scopedAllocatorOpts_; + } + } + /** + * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.ScopedAllocatorOptions, org.tensorflow.proto.ScopedAllocatorOptions.Builder, org.tensorflow.proto.ScopedAllocatorOptionsOrBuilder> + getScopedAllocatorOptsFieldBuilder() { + if (scopedAllocatorOptsBuilder_ == null) { + scopedAllocatorOptsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.ScopedAllocatorOptions, org.tensorflow.proto.ScopedAllocatorOptions.Builder, org.tensorflow.proto.ScopedAllocatorOptionsOrBuilder>( + getScopedAllocatorOpts(), + getParentForChildren(), + isClean()); + scopedAllocatorOpts_ = null; + } + return scopedAllocatorOptsBuilder_; + } + + private com.google.protobuf.LazyStringList optimizers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureOptimizersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + optimizers_ = new com.google.protobuf.LazyStringArrayList(optimizers_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * If non-empty, will use this as an alternative way to specify a list of
+     * optimizations to turn on and the order of the optimizations (replacing the
+     * meta-optimizer).
+     * Of the RewriterConfig options, only the AutoParallel configuration options
+     * (the auto_parallel field) apply to manually requested optimization passes
+     * ("autoparallel"). Memory optimization passes ("memory") invoked here are
+     * not configurable (in contrast to memory optimization passes through the
+     * meta-optimizer) and act only on manual op annotations.
+     * Custom optimizers (see custom_optimizers) that are not part of this
+     * schedule will be run after - in the order that they were specified.
+     * 
+ * + * repeated string optimizers = 100; + * @return A list containing the optimizers. + */ + public com.google.protobuf.ProtocolStringList + getOptimizersList() { + return optimizers_.getUnmodifiableView(); + } + /** + *
+     * If non-empty, will use this as an alternative way to specify a list of
+     * optimizations to turn on and the order of the optimizations (replacing the
+     * meta-optimizer).
+     * Of the RewriterConfig options, only the AutoParallel configuration options
+     * (the auto_parallel field) apply to manually requested optimization passes
+     * ("autoparallel"). Memory optimization passes ("memory") invoked here are
+     * not configurable (in contrast to memory optimization passes through the
+     * meta-optimizer) and act only on manual op annotations.
+     * Custom optimizers (see custom_optimizers) that are not part of this
+     * schedule will be run after - in the order that they were specified.
+     * 
+ * + * repeated string optimizers = 100; + * @return The count of optimizers. + */ + public int getOptimizersCount() { + return optimizers_.size(); + } + /** + *
+     * If non-empty, will use this as an alternative way to specify a list of
+     * optimizations to turn on and the order of the optimizations (replacing the
+     * meta-optimizer).
+     * Of the RewriterConfig options, only the AutoParallel configuration options
+     * (the auto_parallel field) apply to manually requested optimization passes
+     * ("autoparallel"). Memory optimization passes ("memory") invoked here are
+     * not configurable (in contrast to memory optimization passes through the
+     * meta-optimizer) and act only on manual op annotations.
+     * Custom optimizers (see custom_optimizers) that are not part of this
+     * schedule will be run after - in the order that they were specified.
+     * 
+ * + * repeated string optimizers = 100; + * @param index The index of the element to return. + * @return The optimizers at the given index. + */ + public java.lang.String getOptimizers(int index) { + return optimizers_.get(index); + } + /** + *
+     * If non-empty, will use this as an alternative way to specify a list of
+     * optimizations to turn on and the order of the optimizations (replacing the
+     * meta-optimizer).
+     * Of the RewriterConfig options, only the AutoParallel configuration options
+     * (the auto_parallel field) apply to manually requested optimization passes
+     * ("autoparallel"). Memory optimization passes ("memory") invoked here are
+     * not configurable (in contrast to memory optimization passes through the
+     * meta-optimizer) and act only on manual op annotations.
+     * Custom optimizers (see custom_optimizers) that are not part of this
+     * schedule will be run after - in the order that they were specified.
+     * 
+ * + * repeated string optimizers = 100; + * @param index The index of the value to return. + * @return The bytes of the optimizers at the given index. + */ + public com.google.protobuf.ByteString + getOptimizersBytes(int index) { + return optimizers_.getByteString(index); + } + /** + *
+     * If non-empty, will use this as an alternative way to specify a list of
+     * optimizations to turn on and the order of the optimizations (replacing the
+     * meta-optimizer).
+     * Of the RewriterConfig options, only the AutoParallel configuration options
+     * (the auto_parallel field) apply to manually requested optimization passes
+     * ("autoparallel"). Memory optimization passes ("memory") invoked here are
+     * not configurable (in contrast to memory optimization passes through the
+     * meta-optimizer) and act only on manual op annotations.
+     * Custom optimizers (see custom_optimizers) that are not part of this
+     * schedule will be run after - in the order that they were specified.
+     * 
+ * + * repeated string optimizers = 100; + * @param index The index to set the value at. + * @param value The optimizers to set. + * @return This builder for chaining. + */ + public Builder setOptimizers( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOptimizersIsMutable(); + optimizers_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * If non-empty, will use this as an alternative way to specify a list of
+     * optimizations to turn on and the order of the optimizations (replacing the
+     * meta-optimizer).
+     * Of the RewriterConfig options, only the AutoParallel configuration options
+     * (the auto_parallel field) apply to manually requested optimization passes
+     * ("autoparallel"). Memory optimization passes ("memory") invoked here are
+     * not configurable (in contrast to memory optimization passes through the
+     * meta-optimizer) and act only on manual op annotations.
+     * Custom optimizers (see custom_optimizers) that are not part of this
+     * schedule will be run after - in the order that they were specified.
+     * 
+ * + * repeated string optimizers = 100; + * @param value The optimizers to add. + * @return This builder for chaining. + */ + public Builder addOptimizers( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOptimizersIsMutable(); + optimizers_.add(value); + onChanged(); + return this; + } + /** + *
+     * If non-empty, will use this as an alternative way to specify a list of
+     * optimizations to turn on and the order of the optimizations (replacing the
+     * meta-optimizer).
+     * Of the RewriterConfig options, only the AutoParallel configuration options
+     * (the auto_parallel field) apply to manually requested optimization passes
+     * ("autoparallel"). Memory optimization passes ("memory") invoked here are
+     * not configurable (in contrast to memory optimization passes through the
+     * meta-optimizer) and act only on manual op annotations.
+     * Custom optimizers (see custom_optimizers) that are not part of this
+     * schedule will be run after - in the order that they were specified.
+     * 
+ * + * repeated string optimizers = 100; + * @param values The optimizers to add. + * @return This builder for chaining. + */ + public Builder addAllOptimizers( + java.lang.Iterable values) { + ensureOptimizersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, optimizers_); + onChanged(); + return this; + } + /** + *
+     * If non-empty, will use this as an alternative way to specify a list of
+     * optimizations to turn on and the order of the optimizations (replacing the
+     * meta-optimizer).
+     * Of the RewriterConfig options, only the AutoParallel configuration options
+     * (the auto_parallel field) apply to manually requested optimization passes
+     * ("autoparallel"). Memory optimization passes ("memory") invoked here are
+     * not configurable (in contrast to memory optimization passes through the
+     * meta-optimizer) and act only on manual op annotations.
+     * Custom optimizers (see custom_optimizers) that are not part of this
+     * schedule will be run after - in the order that they were specified.
+     * 
+ * + * repeated string optimizers = 100; + * @return This builder for chaining. + */ + public Builder clearOptimizers() { + optimizers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * If non-empty, will use this as an alternative way to specify a list of
+     * optimizations to turn on and the order of the optimizations (replacing the
+     * meta-optimizer).
+     * Of the RewriterConfig options, only the AutoParallel configuration options
+     * (the auto_parallel field) apply to manually requested optimization passes
+     * ("autoparallel"). Memory optimization passes ("memory") invoked here are
+     * not configurable (in contrast to memory optimization passes through the
+     * meta-optimizer) and act only on manual op annotations.
+     * Custom optimizers (see custom_optimizers) that are not part of this
+     * schedule will be run after - in the order that they were specified.
+     * 
+ * + * repeated string optimizers = 100; + * @param value The bytes of the optimizers to add. + * @return This builder for chaining. + */ + public Builder addOptimizersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOptimizersIsMutable(); + optimizers_.add(value); + onChanged(); + return this; + } + + private java.util.List customOptimizers_ = + java.util.Collections.emptyList(); + private void ensureCustomOptimizersIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + customOptimizers_ = new java.util.ArrayList(customOptimizers_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer, org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer.Builder, org.tensorflow.proto.RewriterConfig.CustomGraphOptimizerOrBuilder> customOptimizersBuilder_; + + /** + *
+     * list of CustomGraphOptimizers to apply.
+     * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + public java.util.List getCustomOptimizersList() { + if (customOptimizersBuilder_ == null) { + return java.util.Collections.unmodifiableList(customOptimizers_); + } else { + return customOptimizersBuilder_.getMessageList(); + } + } + /** + *
+     * list of CustomGraphOptimizers to apply.
+     * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + public int getCustomOptimizersCount() { + if (customOptimizersBuilder_ == null) { + return customOptimizers_.size(); + } else { + return customOptimizersBuilder_.getCount(); + } + } + /** + *
+     * list of CustomGraphOptimizers to apply.
+     * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + public org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer getCustomOptimizers(int index) { + if (customOptimizersBuilder_ == null) { + return customOptimizers_.get(index); + } else { + return customOptimizersBuilder_.getMessage(index); + } + } + /** + *
+     * list of CustomGraphOptimizers to apply.
+     * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + public Builder setCustomOptimizers( + int index, org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer value) { + if (customOptimizersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomOptimizersIsMutable(); + customOptimizers_.set(index, value); + onChanged(); + } else { + customOptimizersBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * list of CustomGraphOptimizers to apply.
+     * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + public Builder setCustomOptimizers( + int index, org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer.Builder builderForValue) { + if (customOptimizersBuilder_ == null) { + ensureCustomOptimizersIsMutable(); + customOptimizers_.set(index, builderForValue.build()); + onChanged(); + } else { + customOptimizersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * list of CustomGraphOptimizers to apply.
+     * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + public Builder addCustomOptimizers(org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer value) { + if (customOptimizersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomOptimizersIsMutable(); + customOptimizers_.add(value); + onChanged(); + } else { + customOptimizersBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * list of CustomGraphOptimizers to apply.
+     * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + public Builder addCustomOptimizers( + int index, org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer value) { + if (customOptimizersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomOptimizersIsMutable(); + customOptimizers_.add(index, value); + onChanged(); + } else { + customOptimizersBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * list of CustomGraphOptimizers to apply.
+     * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + public Builder addCustomOptimizers( + org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer.Builder builderForValue) { + if (customOptimizersBuilder_ == null) { + ensureCustomOptimizersIsMutable(); + customOptimizers_.add(builderForValue.build()); + onChanged(); + } else { + customOptimizersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * list of CustomGraphOptimizers to apply.
+     * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + public Builder addCustomOptimizers( + int index, org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer.Builder builderForValue) { + if (customOptimizersBuilder_ == null) { + ensureCustomOptimizersIsMutable(); + customOptimizers_.add(index, builderForValue.build()); + onChanged(); + } else { + customOptimizersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * list of CustomGraphOptimizers to apply.
+     * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + public Builder addAllCustomOptimizers( + java.lang.Iterable values) { + if (customOptimizersBuilder_ == null) { + ensureCustomOptimizersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, customOptimizers_); + onChanged(); + } else { + customOptimizersBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * list of CustomGraphOptimizers to apply.
+     * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + public Builder clearCustomOptimizers() { + if (customOptimizersBuilder_ == null) { + customOptimizers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + customOptimizersBuilder_.clear(); + } + return this; + } + /** + *
+     * list of CustomGraphOptimizers to apply.
+     * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + public Builder removeCustomOptimizers(int index) { + if (customOptimizersBuilder_ == null) { + ensureCustomOptimizersIsMutable(); + customOptimizers_.remove(index); + onChanged(); + } else { + customOptimizersBuilder_.remove(index); + } + return this; + } + /** + *
+     * list of CustomGraphOptimizers to apply.
+     * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + public org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer.Builder getCustomOptimizersBuilder( + int index) { + return getCustomOptimizersFieldBuilder().getBuilder(index); + } + /** + *
+     * list of CustomGraphOptimizers to apply.
+     * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + public org.tensorflow.proto.RewriterConfig.CustomGraphOptimizerOrBuilder getCustomOptimizersOrBuilder( + int index) { + if (customOptimizersBuilder_ == null) { + return customOptimizers_.get(index); } else { + return customOptimizersBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * list of CustomGraphOptimizers to apply.
+     * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + public java.util.List + getCustomOptimizersOrBuilderList() { + if (customOptimizersBuilder_ != null) { + return customOptimizersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customOptimizers_); + } + } + /** + *
+     * list of CustomGraphOptimizers to apply.
+     * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + public org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer.Builder addCustomOptimizersBuilder() { + return getCustomOptimizersFieldBuilder().addBuilder( + org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer.getDefaultInstance()); + } + /** + *
+     * list of CustomGraphOptimizers to apply.
+     * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + public org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer.Builder addCustomOptimizersBuilder( + int index) { + return getCustomOptimizersFieldBuilder().addBuilder( + index, org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer.getDefaultInstance()); + } + /** + *
+     * list of CustomGraphOptimizers to apply.
+     * 
+ * + * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; + */ + public java.util.List + getCustomOptimizersBuilderList() { + return getCustomOptimizersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer, org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer.Builder, org.tensorflow.proto.RewriterConfig.CustomGraphOptimizerOrBuilder> + getCustomOptimizersFieldBuilder() { + if (customOptimizersBuilder_ == null) { + customOptimizersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer, org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer.Builder, org.tensorflow.proto.RewriterConfig.CustomGraphOptimizerOrBuilder>( + customOptimizers_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + customOptimizers_ = null; + } + return customOptimizersBuilder_; + } + + private org.tensorflow.proto.VerifierConfig interOptimizerVerifierConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VerifierConfig, org.tensorflow.proto.VerifierConfig.Builder, org.tensorflow.proto.VerifierConfigOrBuilder> interOptimizerVerifierConfigBuilder_; + /** + *
+     * VerifierConfig specifying the verifiers to be run after every optimizer.
+     * 
+ * + * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; + * @return Whether the interOptimizerVerifierConfig field is set. + */ + public boolean hasInterOptimizerVerifierConfig() { + return interOptimizerVerifierConfigBuilder_ != null || interOptimizerVerifierConfig_ != null; + } + /** + *
+     * VerifierConfig specifying the verifiers to be run after every optimizer.
+     * 
+ * + * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; + * @return The interOptimizerVerifierConfig. + */ + public org.tensorflow.proto.VerifierConfig getInterOptimizerVerifierConfig() { + if (interOptimizerVerifierConfigBuilder_ == null) { + return interOptimizerVerifierConfig_ == null ? org.tensorflow.proto.VerifierConfig.getDefaultInstance() : interOptimizerVerifierConfig_; + } else { + return interOptimizerVerifierConfigBuilder_.getMessage(); + } + } + /** + *
+     * VerifierConfig specifying the verifiers to be run after every optimizer.
+     * 
+ * + * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; + */ + public Builder setInterOptimizerVerifierConfig(org.tensorflow.proto.VerifierConfig value) { + if (interOptimizerVerifierConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interOptimizerVerifierConfig_ = value; + onChanged(); + } else { + interOptimizerVerifierConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * VerifierConfig specifying the verifiers to be run after every optimizer.
+     * 
+ * + * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; + */ + public Builder setInterOptimizerVerifierConfig( + org.tensorflow.proto.VerifierConfig.Builder builderForValue) { + if (interOptimizerVerifierConfigBuilder_ == null) { + interOptimizerVerifierConfig_ = builderForValue.build(); + onChanged(); + } else { + interOptimizerVerifierConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * VerifierConfig specifying the verifiers to be run after every optimizer.
+     * 
+ * + * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; + */ + public Builder mergeInterOptimizerVerifierConfig(org.tensorflow.proto.VerifierConfig value) { + if (interOptimizerVerifierConfigBuilder_ == null) { + if (interOptimizerVerifierConfig_ != null) { + interOptimizerVerifierConfig_ = + org.tensorflow.proto.VerifierConfig.newBuilder(interOptimizerVerifierConfig_).mergeFrom(value).buildPartial(); + } else { + interOptimizerVerifierConfig_ = value; + } + onChanged(); + } else { + interOptimizerVerifierConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * VerifierConfig specifying the verifiers to be run after every optimizer.
+     * 
+ * + * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; + */ + public Builder clearInterOptimizerVerifierConfig() { + if (interOptimizerVerifierConfigBuilder_ == null) { + interOptimizerVerifierConfig_ = null; + onChanged(); + } else { + interOptimizerVerifierConfig_ = null; + interOptimizerVerifierConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * VerifierConfig specifying the verifiers to be run after every optimizer.
+     * 
+ * + * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; + */ + public org.tensorflow.proto.VerifierConfig.Builder getInterOptimizerVerifierConfigBuilder() { + + onChanged(); + return getInterOptimizerVerifierConfigFieldBuilder().getBuilder(); + } + /** + *
+     * VerifierConfig specifying the verifiers to be run after every optimizer.
+     * 
+ * + * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; + */ + public org.tensorflow.proto.VerifierConfigOrBuilder getInterOptimizerVerifierConfigOrBuilder() { + if (interOptimizerVerifierConfigBuilder_ != null) { + return interOptimizerVerifierConfigBuilder_.getMessageOrBuilder(); + } else { + return interOptimizerVerifierConfig_ == null ? + org.tensorflow.proto.VerifierConfig.getDefaultInstance() : interOptimizerVerifierConfig_; + } + } + /** + *
+     * VerifierConfig specifying the verifiers to be run after every optimizer.
+     * 
+ * + * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VerifierConfig, org.tensorflow.proto.VerifierConfig.Builder, org.tensorflow.proto.VerifierConfigOrBuilder> + getInterOptimizerVerifierConfigFieldBuilder() { + if (interOptimizerVerifierConfigBuilder_ == null) { + interOptimizerVerifierConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VerifierConfig, org.tensorflow.proto.VerifierConfig.Builder, org.tensorflow.proto.VerifierConfigOrBuilder>( + getInterOptimizerVerifierConfig(), + getParentForChildren(), + isClean()); + interOptimizerVerifierConfig_ = null; + } + return interOptimizerVerifierConfigBuilder_; + } + + private org.tensorflow.proto.VerifierConfig postOptimizationVerifierConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VerifierConfig, org.tensorflow.proto.VerifierConfig.Builder, org.tensorflow.proto.VerifierConfigOrBuilder> postOptimizationVerifierConfigBuilder_; + /** + *
+     * VerifierConfig specifying the verifiers to be run at the end, after all
+     * optimizers have run.
+     * 
+ * + * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; + * @return Whether the postOptimizationVerifierConfig field is set. + */ + public boolean hasPostOptimizationVerifierConfig() { + return postOptimizationVerifierConfigBuilder_ != null || postOptimizationVerifierConfig_ != null; + } + /** + *
+     * VerifierConfig specifying the verifiers to be run at the end, after all
+     * optimizers have run.
+     * 
+ * + * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; + * @return The postOptimizationVerifierConfig. + */ + public org.tensorflow.proto.VerifierConfig getPostOptimizationVerifierConfig() { + if (postOptimizationVerifierConfigBuilder_ == null) { + return postOptimizationVerifierConfig_ == null ? org.tensorflow.proto.VerifierConfig.getDefaultInstance() : postOptimizationVerifierConfig_; + } else { + return postOptimizationVerifierConfigBuilder_.getMessage(); + } + } + /** + *
+     * VerifierConfig specifying the verifiers to be run at the end, after all
+     * optimizers have run.
+     * 
+ * + * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; + */ + public Builder setPostOptimizationVerifierConfig(org.tensorflow.proto.VerifierConfig value) { + if (postOptimizationVerifierConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + postOptimizationVerifierConfig_ = value; + onChanged(); + } else { + postOptimizationVerifierConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * VerifierConfig specifying the verifiers to be run at the end, after all
+     * optimizers have run.
+     * 
+ * + * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; + */ + public Builder setPostOptimizationVerifierConfig( + org.tensorflow.proto.VerifierConfig.Builder builderForValue) { + if (postOptimizationVerifierConfigBuilder_ == null) { + postOptimizationVerifierConfig_ = builderForValue.build(); + onChanged(); + } else { + postOptimizationVerifierConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * VerifierConfig specifying the verifiers to be run at the end, after all
+     * optimizers have run.
+     * 
+ * + * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; + */ + public Builder mergePostOptimizationVerifierConfig(org.tensorflow.proto.VerifierConfig value) { + if (postOptimizationVerifierConfigBuilder_ == null) { + if (postOptimizationVerifierConfig_ != null) { + postOptimizationVerifierConfig_ = + org.tensorflow.proto.VerifierConfig.newBuilder(postOptimizationVerifierConfig_).mergeFrom(value).buildPartial(); + } else { + postOptimizationVerifierConfig_ = value; + } + onChanged(); + } else { + postOptimizationVerifierConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * VerifierConfig specifying the verifiers to be run at the end, after all
+     * optimizers have run.
+     * 
+ * + * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; + */ + public Builder clearPostOptimizationVerifierConfig() { + if (postOptimizationVerifierConfigBuilder_ == null) { + postOptimizationVerifierConfig_ = null; + onChanged(); + } else { + postOptimizationVerifierConfig_ = null; + postOptimizationVerifierConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * VerifierConfig specifying the verifiers to be run at the end, after all
+     * optimizers have run.
+     * 
+ * + * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; + */ + public org.tensorflow.proto.VerifierConfig.Builder getPostOptimizationVerifierConfigBuilder() { + + onChanged(); + return getPostOptimizationVerifierConfigFieldBuilder().getBuilder(); + } + /** + *
+     * VerifierConfig specifying the verifiers to be run at the end, after all
+     * optimizers have run.
+     * 
+ * + * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; + */ + public org.tensorflow.proto.VerifierConfigOrBuilder getPostOptimizationVerifierConfigOrBuilder() { + if (postOptimizationVerifierConfigBuilder_ != null) { + return postOptimizationVerifierConfigBuilder_.getMessageOrBuilder(); + } else { + return postOptimizationVerifierConfig_ == null ? + org.tensorflow.proto.VerifierConfig.getDefaultInstance() : postOptimizationVerifierConfig_; + } + } + /** + *
+     * VerifierConfig specifying the verifiers to be run at the end, after all
+     * optimizers have run.
+     * 
+ * + * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VerifierConfig, org.tensorflow.proto.VerifierConfig.Builder, org.tensorflow.proto.VerifierConfigOrBuilder> + getPostOptimizationVerifierConfigFieldBuilder() { + if (postOptimizationVerifierConfigBuilder_ == null) { + postOptimizationVerifierConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VerifierConfig, org.tensorflow.proto.VerifierConfig.Builder, org.tensorflow.proto.VerifierConfigOrBuilder>( + getPostOptimizationVerifierConfig(), + getParentForChildren(), + isClean()); + postOptimizationVerifierConfig_ = null; + } + return postOptimizationVerifierConfigBuilder_; + } + @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:tensorflow.RewriterConfig) + } + + // @@protoc_insertion_point(class_scope:tensorflow.RewriterConfig) + private static final org.tensorflow.proto.RewriterConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.RewriterConfig(); + } + + public static org.tensorflow.proto.RewriterConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RewriterConfig 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 org.tensorflow.proto.RewriterConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RewriterConfigOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RewriterConfigOrBuilder.java similarity index 77% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RewriterConfigOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RewriterConfigOrBuilder.java index fea3a019bc5..9ad4b3cf401 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RewriterConfigOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RewriterConfigOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/rewriter_config.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface RewriterConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.RewriterConfig) @@ -13,6 +13,7 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.CpuLayout cpu_layout_conversion = 50; + * @return The enum numeric value on the wire for cpuLayoutConversion. */ int getCpuLayoutConversionValue(); /** @@ -21,8 +22,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.CpuLayout cpu_layout_conversion = 50; + * @return The cpuLayoutConversion. */ - org.tensorflow.proto.framework.RewriterConfig.CpuLayout getCpuLayoutConversion(); + org.tensorflow.proto.RewriterConfig.CpuLayout getCpuLayoutConversion(); /** *
@@ -31,6 +33,7 @@ public interface RewriterConfigOrBuilder extends
    * 
* * .tensorflow.RewriterConfig.Toggle layout_optimizer = 1; + * @return The enum numeric value on the wire for layoutOptimizer. */ int getLayoutOptimizerValue(); /** @@ -40,8 +43,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.Toggle layout_optimizer = 1; + * @return The layoutOptimizer. */ - org.tensorflow.proto.framework.RewriterConfig.Toggle getLayoutOptimizer(); + org.tensorflow.proto.RewriterConfig.Toggle getLayoutOptimizer(); /** *
@@ -51,6 +55,7 @@ public interface RewriterConfigOrBuilder extends
    * 
* * .tensorflow.RewriterConfig.Toggle constant_folding = 3; + * @return The enum numeric value on the wire for constantFolding. */ int getConstantFoldingValue(); /** @@ -61,8 +66,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.Toggle constant_folding = 3; + * @return The constantFolding. */ - org.tensorflow.proto.framework.RewriterConfig.Toggle getConstantFolding(); + org.tensorflow.proto.RewriterConfig.Toggle getConstantFolding(); /** *
@@ -71,6 +77,7 @@ public interface RewriterConfigOrBuilder extends
    * 
* * .tensorflow.RewriterConfig.Toggle shape_optimization = 13; + * @return The enum numeric value on the wire for shapeOptimization. */ int getShapeOptimizationValue(); /** @@ -80,8 +87,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.Toggle shape_optimization = 13; + * @return The shapeOptimization. */ - org.tensorflow.proto.framework.RewriterConfig.Toggle getShapeOptimization(); + org.tensorflow.proto.RewriterConfig.Toggle getShapeOptimization(); /** *
@@ -90,6 +98,7 @@ public interface RewriterConfigOrBuilder extends
    * 
* * .tensorflow.RewriterConfig.Toggle remapping = 14; + * @return The enum numeric value on the wire for remapping. */ int getRemappingValue(); /** @@ -99,8 +108,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.Toggle remapping = 14; + * @return The remapping. */ - org.tensorflow.proto.framework.RewriterConfig.Toggle getRemapping(); + org.tensorflow.proto.RewriterConfig.Toggle getRemapping(); /** *
@@ -109,6 +119,7 @@ public interface RewriterConfigOrBuilder extends
    * 
* * .tensorflow.RewriterConfig.Toggle common_subgraph_elimination = 24; + * @return The enum numeric value on the wire for commonSubgraphElimination. */ int getCommonSubgraphEliminationValue(); /** @@ -118,8 +129,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.Toggle common_subgraph_elimination = 24; + * @return The commonSubgraphElimination. */ - org.tensorflow.proto.framework.RewriterConfig.Toggle getCommonSubgraphElimination(); + org.tensorflow.proto.RewriterConfig.Toggle getCommonSubgraphElimination(); /** *
@@ -128,6 +140,7 @@ public interface RewriterConfigOrBuilder extends
    * 
* * .tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7; + * @return The enum numeric value on the wire for arithmeticOptimization. */ int getArithmeticOptimizationValue(); /** @@ -137,8 +150,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7; + * @return The arithmeticOptimization. */ - org.tensorflow.proto.framework.RewriterConfig.Toggle getArithmeticOptimization(); + org.tensorflow.proto.RewriterConfig.Toggle getArithmeticOptimization(); /** *
@@ -147,6 +161,7 @@ public interface RewriterConfigOrBuilder extends
    * 
* * .tensorflow.RewriterConfig.Toggle dependency_optimization = 8; + * @return The enum numeric value on the wire for dependencyOptimization. */ int getDependencyOptimizationValue(); /** @@ -156,8 +171,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.Toggle dependency_optimization = 8; + * @return The dependencyOptimization. */ - org.tensorflow.proto.framework.RewriterConfig.Toggle getDependencyOptimization(); + org.tensorflow.proto.RewriterConfig.Toggle getDependencyOptimization(); /** *
@@ -165,6 +181,7 @@ public interface RewriterConfigOrBuilder extends
    * 
* * .tensorflow.RewriterConfig.Toggle loop_optimization = 9; + * @return The enum numeric value on the wire for loopOptimization. */ int getLoopOptimizationValue(); /** @@ -173,8 +190,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.Toggle loop_optimization = 9; + * @return The loopOptimization. */ - org.tensorflow.proto.framework.RewriterConfig.Toggle getLoopOptimization(); + org.tensorflow.proto.RewriterConfig.Toggle getLoopOptimization(); /** *
@@ -182,6 +200,7 @@ public interface RewriterConfigOrBuilder extends
    * 
* * .tensorflow.RewriterConfig.Toggle function_optimization = 10; + * @return The enum numeric value on the wire for functionOptimization. */ int getFunctionOptimizationValue(); /** @@ -190,8 +209,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.Toggle function_optimization = 10; + * @return The functionOptimization. */ - org.tensorflow.proto.framework.RewriterConfig.Toggle getFunctionOptimization(); + org.tensorflow.proto.RewriterConfig.Toggle getFunctionOptimization(); /** *
@@ -199,6 +219,7 @@ public interface RewriterConfigOrBuilder extends
    * 
* * .tensorflow.RewriterConfig.Toggle debug_stripper = 11; + * @return The enum numeric value on the wire for debugStripper. */ int getDebugStripperValue(); /** @@ -207,8 +228,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.Toggle debug_stripper = 11; + * @return The debugStripper. */ - org.tensorflow.proto.framework.RewriterConfig.Toggle getDebugStripper(); + org.tensorflow.proto.RewriterConfig.Toggle getDebugStripper(); /** *
@@ -216,6 +238,7 @@ public interface RewriterConfigOrBuilder extends
    * 
* * bool disable_model_pruning = 2; + * @return The disableModelPruning. */ boolean getDisableModelPruning(); @@ -226,6 +249,7 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15; + * @return The enum numeric value on the wire for scopedAllocatorOptimization. */ int getScopedAllocatorOptimizationValue(); /** @@ -235,8 +259,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15; + * @return The scopedAllocatorOptimization. */ - org.tensorflow.proto.framework.RewriterConfig.Toggle getScopedAllocatorOptimization(); + org.tensorflow.proto.RewriterConfig.Toggle getScopedAllocatorOptimization(); /** *
@@ -244,6 +269,7 @@ public interface RewriterConfigOrBuilder extends
    * 
* * .tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18; + * @return The enum numeric value on the wire for pinToHostOptimization. */ int getPinToHostOptimizationValue(); /** @@ -252,8 +278,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18; + * @return The pinToHostOptimization. */ - org.tensorflow.proto.framework.RewriterConfig.Toggle getPinToHostOptimization(); + org.tensorflow.proto.RewriterConfig.Toggle getPinToHostOptimization(); /** *
@@ -262,6 +289,7 @@ public interface RewriterConfigOrBuilder extends
    * 
* * .tensorflow.RewriterConfig.Toggle implementation_selector = 22; + * @return The enum numeric value on the wire for implementationSelector. */ int getImplementationSelectorValue(); /** @@ -271,8 +299,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.Toggle implementation_selector = 22; + * @return The implementationSelector. */ - org.tensorflow.proto.framework.RewriterConfig.Toggle getImplementationSelector(); + org.tensorflow.proto.RewriterConfig.Toggle getImplementationSelector(); /** *
@@ -283,6 +312,7 @@ public interface RewriterConfigOrBuilder extends
    * 
* * .tensorflow.RewriterConfig.Toggle auto_mixed_precision = 23; + * @return The enum numeric value on the wire for autoMixedPrecision. */ int getAutoMixedPrecisionValue(); /** @@ -294,8 +324,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.Toggle auto_mixed_precision = 23; + * @return The autoMixedPrecision. */ - org.tensorflow.proto.framework.RewriterConfig.Toggle getAutoMixedPrecision(); + org.tensorflow.proto.RewriterConfig.Toggle getAutoMixedPrecision(); /** *
@@ -307,6 +338,7 @@ public interface RewriterConfigOrBuilder extends
    * 
* * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_mkl = 25; + * @return The enum numeric value on the wire for autoMixedPrecisionMkl. */ int getAutoMixedPrecisionMklValue(); /** @@ -319,8 +351,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_mkl = 25; + * @return The autoMixedPrecisionMkl. */ - org.tensorflow.proto.framework.RewriterConfig.Toggle getAutoMixedPrecisionMkl(); + org.tensorflow.proto.RewriterConfig.Toggle getAutoMixedPrecisionMkl(); /** *
@@ -331,6 +364,7 @@ public interface RewriterConfigOrBuilder extends
    * 
* * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_onednn_bfloat16 = 31; + * @return The enum numeric value on the wire for autoMixedPrecisionOnednnBfloat16. */ int getAutoMixedPrecisionOnednnBfloat16Value(); /** @@ -342,8 +376,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_onednn_bfloat16 = 31; + * @return The autoMixedPrecisionOnednnBfloat16. */ - org.tensorflow.proto.framework.RewriterConfig.Toggle getAutoMixedPrecisionOnednnBfloat16(); + org.tensorflow.proto.RewriterConfig.Toggle getAutoMixedPrecisionOnednnBfloat16(); /** *
@@ -355,6 +390,7 @@ public interface RewriterConfigOrBuilder extends
    * 
* * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_cpu = 29; + * @return The enum numeric value on the wire for autoMixedPrecisionCpu. */ int getAutoMixedPrecisionCpuValue(); /** @@ -367,8 +403,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.Toggle auto_mixed_precision_cpu = 29; + * @return The autoMixedPrecisionCpu. */ - org.tensorflow.proto.framework.RewriterConfig.Toggle getAutoMixedPrecisionCpu(); + org.tensorflow.proto.RewriterConfig.Toggle getAutoMixedPrecisionCpu(); /** *
@@ -376,15 +413,27 @@ public interface RewriterConfigOrBuilder extends
    * 
* * bool disable_meta_optimizer = 19; + * @return The disableMetaOptimizer. */ boolean getDisableMetaOptimizer(); + /** + *
+   * Disable the TFG optimizer (off by default).
+   * 
+ * + * bool disable_tfg_optimizer = 32; + * @return The disableTfgOptimizer. + */ + boolean getDisableTfgOptimizer(); + /** *
    * Optimizers registered by plugin (default is ON)
    * 
* * .tensorflow.RewriterConfig.Toggle use_plugin_optimizers = 28; + * @return The enum numeric value on the wire for usePluginOptimizers. */ int getUsePluginOptimizersValue(); /** @@ -393,8 +442,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.Toggle use_plugin_optimizers = 28; + * @return The usePluginOptimizers. */ - org.tensorflow.proto.framework.RewriterConfig.Toggle getUsePluginOptimizers(); + org.tensorflow.proto.RewriterConfig.Toggle getUsePluginOptimizers(); /** *
@@ -402,6 +452,7 @@ public interface RewriterConfigOrBuilder extends
    * 
* * .tensorflow.RewriterConfig.Toggle experimental_conditional_code_motion = 30; + * @return The enum numeric value on the wire for experimentalConditionalCodeMotion. */ int getExperimentalConditionalCodeMotionValue(); /** @@ -410,8 +461,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.Toggle experimental_conditional_code_motion = 30; + * @return The experimentalConditionalCodeMotion. */ - org.tensorflow.proto.framework.RewriterConfig.Toggle getExperimentalConditionalCodeMotion(); + org.tensorflow.proto.RewriterConfig.Toggle getExperimentalConditionalCodeMotion(); /** *
@@ -420,6 +472,7 @@ public interface RewriterConfigOrBuilder extends
    * 
* * .tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12; + * @return The enum numeric value on the wire for metaOptimizerIterations. */ int getMetaOptimizerIterationsValue(); /** @@ -429,8 +482,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12; + * @return The metaOptimizerIterations. */ - org.tensorflow.proto.framework.RewriterConfig.NumIterationsType getMetaOptimizerIterations(); + org.tensorflow.proto.RewriterConfig.NumIterationsType getMetaOptimizerIterations(); /** *
@@ -441,6 +495,7 @@ public interface RewriterConfigOrBuilder extends
    * 
* * int32 min_graph_nodes = 17; + * @return The minGraphNodes. */ int getMinGraphNodes(); @@ -451,6 +506,7 @@ public interface RewriterConfigOrBuilder extends * * * bool experimental_disable_compressed_tensor_optimization = 26; + * @return The experimentalDisableCompressedTensorOptimization. */ boolean getExperimentalDisableCompressedTensorOptimization(); @@ -465,6 +521,7 @@ public interface RewriterConfigOrBuilder extends * * * bool experimental_disable_folding_quantization_emulation = 27; + * @return The experimentalDisableFoldingQuantizationEmulation. */ boolean getExperimentalDisableFoldingQuantizationEmulation(); @@ -476,6 +533,7 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.MemOptType memory_optimization = 4; + * @return The enum numeric value on the wire for memoryOptimization. */ int getMemoryOptimizationValue(); /** @@ -486,8 +544,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.RewriterConfig.MemOptType memory_optimization = 4; + * @return The memoryOptimization. */ - org.tensorflow.proto.framework.RewriterConfig.MemOptType getMemoryOptimization(); + org.tensorflow.proto.RewriterConfig.MemOptType getMemoryOptimization(); /** *
@@ -502,6 +561,7 @@ public interface RewriterConfigOrBuilder extends
    * 
* * string memory_optimizer_target_node_name_scope = 6; + * @return The memoryOptimizerTargetNodeNameScope. */ java.lang.String getMemoryOptimizerTargetNodeNameScope(); /** @@ -517,6 +577,7 @@ public interface RewriterConfigOrBuilder extends * * * string memory_optimizer_target_node_name_scope = 6; + * @return The bytes for memoryOptimizerTargetNodeNameScope. */ com.google.protobuf.ByteString getMemoryOptimizerTargetNodeNameScopeBytes(); @@ -529,6 +590,7 @@ public interface RewriterConfigOrBuilder extends * * * int64 meta_optimizer_timeout_ms = 20; + * @return The metaOptimizerTimeoutMs. */ long getMetaOptimizerTimeoutMs(); @@ -539,6 +601,7 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.AutoParallelOptions auto_parallel = 5; + * @return Whether the autoParallel field is set. */ boolean hasAutoParallel(); /** @@ -548,8 +611,9 @@ public interface RewriterConfigOrBuilder extends * * * .tensorflow.AutoParallelOptions auto_parallel = 5; + * @return The autoParallel. */ - org.tensorflow.proto.framework.AutoParallelOptions getAutoParallel(); + org.tensorflow.proto.AutoParallelOptions getAutoParallel(); /** *
    * Configures AutoParallel optimization passes either through the
@@ -558,7 +622,7 @@ public interface RewriterConfigOrBuilder extends
    *
    * .tensorflow.AutoParallelOptions auto_parallel = 5;
    */
-  org.tensorflow.proto.framework.AutoParallelOptionsOrBuilder getAutoParallelOrBuilder();
+  org.tensorflow.proto.AutoParallelOptionsOrBuilder getAutoParallelOrBuilder();
 
   /**
    * 
@@ -568,21 +632,24 @@ public interface RewriterConfigOrBuilder extends
    * 
* * bool fail_on_optimizer_errors = 21; + * @return The failOnOptimizerErrors. */ boolean getFailOnOptimizerErrors(); /** * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; + * @return Whether the scopedAllocatorOpts field is set. */ boolean hasScopedAllocatorOpts(); /** * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; + * @return The scopedAllocatorOpts. */ - org.tensorflow.proto.framework.ScopedAllocatorOptions getScopedAllocatorOpts(); + org.tensorflow.proto.ScopedAllocatorOptions getScopedAllocatorOpts(); /** * .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; */ - org.tensorflow.proto.framework.ScopedAllocatorOptionsOrBuilder getScopedAllocatorOptsOrBuilder(); + org.tensorflow.proto.ScopedAllocatorOptionsOrBuilder getScopedAllocatorOptsOrBuilder(); /** *
@@ -599,6 +666,7 @@ public interface RewriterConfigOrBuilder extends
    * 
* * repeated string optimizers = 100; + * @return A list containing the optimizers. */ java.util.List getOptimizersList(); @@ -617,6 +685,7 @@ public interface RewriterConfigOrBuilder extends *
* * repeated string optimizers = 100; + * @return The count of optimizers. */ int getOptimizersCount(); /** @@ -634,6 +703,8 @@ public interface RewriterConfigOrBuilder extends * * * repeated string optimizers = 100; + * @param index The index of the element to return. + * @return The optimizers at the given index. */ java.lang.String getOptimizers(int index); /** @@ -651,6 +722,8 @@ public interface RewriterConfigOrBuilder extends * * * repeated string optimizers = 100; + * @param index The index of the value to return. + * @return The bytes of the optimizers at the given index. */ com.google.protobuf.ByteString getOptimizersBytes(int index); @@ -662,7 +735,7 @@ public interface RewriterConfigOrBuilder extends * * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200; */ - java.util.List + java.util.List getCustomOptimizersList(); /** *
@@ -671,7 +744,7 @@ public interface RewriterConfigOrBuilder extends
    *
    * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
    */
-  org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizer getCustomOptimizers(int index);
+  org.tensorflow.proto.RewriterConfig.CustomGraphOptimizer getCustomOptimizers(int index);
   /**
    * 
    * list of CustomGraphOptimizers to apply.
@@ -687,7 +760,7 @@ public interface RewriterConfigOrBuilder extends
    *
    * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
    */
-  java.util.List 
+  java.util.List 
       getCustomOptimizersOrBuilderList();
   /**
    * 
@@ -696,7 +769,7 @@ public interface RewriterConfigOrBuilder extends
    *
    * repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
    */
-  org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizerOrBuilder getCustomOptimizersOrBuilder(
+  org.tensorflow.proto.RewriterConfig.CustomGraphOptimizerOrBuilder getCustomOptimizersOrBuilder(
       int index);
 
   /**
@@ -705,6 +778,7 @@ org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizerOrBuilder getC
    * 
* * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; + * @return Whether the interOptimizerVerifierConfig field is set. */ boolean hasInterOptimizerVerifierConfig(); /** @@ -713,8 +787,9 @@ org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizerOrBuilder getC *
* * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300; + * @return The interOptimizerVerifierConfig. */ - org.tensorflow.proto.framework.VerifierConfig getInterOptimizerVerifierConfig(); + org.tensorflow.proto.VerifierConfig getInterOptimizerVerifierConfig(); /** *
    * VerifierConfig specifying the verifiers to be run after every optimizer.
@@ -722,7 +797,7 @@ org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizerOrBuilder getC
    *
    * .tensorflow.VerifierConfig inter_optimizer_verifier_config = 300;
    */
-  org.tensorflow.proto.framework.VerifierConfigOrBuilder getInterOptimizerVerifierConfigOrBuilder();
+  org.tensorflow.proto.VerifierConfigOrBuilder getInterOptimizerVerifierConfigOrBuilder();
 
   /**
    * 
@@ -731,6 +806,7 @@ org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizerOrBuilder getC
    * 
* * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; + * @return Whether the postOptimizationVerifierConfig field is set. */ boolean hasPostOptimizationVerifierConfig(); /** @@ -740,8 +816,9 @@ org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizerOrBuilder getC *
* * .tensorflow.VerifierConfig post_optimization_verifier_config = 301; + * @return The postOptimizationVerifierConfig. */ - org.tensorflow.proto.framework.VerifierConfig getPostOptimizationVerifierConfig(); + org.tensorflow.proto.VerifierConfig getPostOptimizationVerifierConfig(); /** *
    * VerifierConfig specifying the verifiers to be run at the end, after all
@@ -750,5 +827,5 @@ org.tensorflow.proto.framework.RewriterConfig.CustomGraphOptimizerOrBuilder getC
    *
    * .tensorflow.VerifierConfig post_optimization_verifier_config = 301;
    */
-  org.tensorflow.proto.framework.VerifierConfigOrBuilder getPostOptimizationVerifierConfigOrBuilder();
+  org.tensorflow.proto.VerifierConfigOrBuilder getPostOptimizationVerifierConfigOrBuilder();
 }
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RewriterConfigProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RewriterConfigProtos.java
new file mode 100644
index 00000000000..30840c488e0
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RewriterConfigProtos.java
@@ -0,0 +1,175 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/protobuf/rewriter_config.proto
+
+package org.tensorflow.proto;
+
+public final class RewriterConfigProtos {
+  private RewriterConfigProtos() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_AutoParallelOptions_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_AutoParallelOptions_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_ScopedAllocatorOptions_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_ScopedAllocatorOptions_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_RewriterConfig_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_RewriterConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_ParameterMapEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_ParameterMapEntry_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n.tensorflow/core/protobuf/rewriter_conf" +
+      "ig.proto\022\ntensorflow\032*tensorflow/core/fr" +
+      "amework/attr_value.proto\032.tensorflow/cor" +
+      "e/protobuf/verifier_config.proto\";\n\023Auto" +
+      "ParallelOptions\022\016\n\006enable\030\001 \001(\010\022\024\n\014num_r" +
+      "eplicas\030\002 \001(\005\"+\n\026ScopedAllocatorOptions\022" +
+      "\021\n\tenable_op\030\001 \003(\t\"\225\026\n\016RewriterConfig\022C\n" +
+      "\025cpu_layout_conversion\0302 \001(\0162$.tensorflo" +
+      "w.RewriterConfig.CpuLayout\022;\n\020layout_opt" +
+      "imizer\030\001 \001(\0162!.tensorflow.RewriterConfig" +
+      ".Toggle\022;\n\020constant_folding\030\003 \001(\0162!.tens" +
+      "orflow.RewriterConfig.Toggle\022=\n\022shape_op" +
+      "timization\030\r \001(\0162!.tensorflow.RewriterCo" +
+      "nfig.Toggle\0224\n\tremapping\030\016 \001(\0162!.tensorf" +
+      "low.RewriterConfig.Toggle\022F\n\033common_subg" +
+      "raph_elimination\030\030 \001(\0162!.tensorflow.Rewr" +
+      "iterConfig.Toggle\022B\n\027arithmetic_optimiza" +
+      "tion\030\007 \001(\0162!.tensorflow.RewriterConfig.T" +
+      "oggle\022B\n\027dependency_optimization\030\010 \001(\0162!" +
+      ".tensorflow.RewriterConfig.Toggle\022<\n\021loo" +
+      "p_optimization\030\t \001(\0162!.tensorflow.Rewrit" +
+      "erConfig.Toggle\022@\n\025function_optimization" +
+      "\030\n \001(\0162!.tensorflow.RewriterConfig.Toggl" +
+      "e\0229\n\016debug_stripper\030\013 \001(\0162!.tensorflow.R" +
+      "ewriterConfig.Toggle\022\035\n\025disable_model_pr" +
+      "uning\030\002 \001(\010\022H\n\035scoped_allocator_optimiza" +
+      "tion\030\017 \001(\0162!.tensorflow.RewriterConfig.T" +
+      "oggle\022C\n\030pin_to_host_optimization\030\022 \001(\0162" +
+      "!.tensorflow.RewriterConfig.Toggle\022B\n\027im" +
+      "plementation_selector\030\026 \001(\0162!.tensorflow" +
+      ".RewriterConfig.Toggle\022?\n\024auto_mixed_pre" +
+      "cision\030\027 \001(\0162!.tensorflow.RewriterConfig" +
+      ".Toggle\022C\n\030auto_mixed_precision_mkl\030\031 \001(" +
+      "\0162!.tensorflow.RewriterConfig.Toggle\022O\n$" +
+      "auto_mixed_precision_onednn_bfloat16\030\037 \001" +
+      "(\0162!.tensorflow.RewriterConfig.Toggle\022C\n" +
+      "\030auto_mixed_precision_cpu\030\035 \001(\0162!.tensor" +
+      "flow.RewriterConfig.Toggle\022\036\n\026disable_me" +
+      "ta_optimizer\030\023 \001(\010\022\035\n\025disable_tfg_optimi" +
+      "zer\030  \001(\010\022@\n\025use_plugin_optimizers\030\034 \001(\016" +
+      "2!.tensorflow.RewriterConfig.Toggle\022O\n$e" +
+      "xperimental_conditional_code_motion\030\036 \001(" +
+      "\0162!.tensorflow.RewriterConfig.Toggle\022O\n\031" +
+      "meta_optimizer_iterations\030\014 \001(\0162,.tensor" +
+      "flow.RewriterConfig.NumIterationsType\022\027\n" +
+      "\017min_graph_nodes\030\021 \001(\005\022;\n3experimental_d" +
+      "isable_compressed_tensor_optimization\030\032 " +
+      "\001(\010\022;\n3experimental_disable_folding_quan" +
+      "tization_emulation\030\033 \001(\010\022B\n\023memory_optim" +
+      "ization\030\004 \001(\0162%.tensorflow.RewriterConfi" +
+      "g.MemOptType\022/\n\'memory_optimizer_target_" +
+      "node_name_scope\030\006 \001(\t\022!\n\031meta_optimizer_" +
+      "timeout_ms\030\024 \001(\003\0226\n\rauto_parallel\030\005 \001(\0132" +
+      "\037.tensorflow.AutoParallelOptions\022 \n\030fail" +
+      "_on_optimizer_errors\030\025 \001(\010\022A\n\025scoped_all" +
+      "ocator_opts\030\020 \001(\0132\".tensorflow.ScopedAll" +
+      "ocatorOptions\022\022\n\noptimizers\030d \003(\t\022K\n\021cus" +
+      "tom_optimizers\030\310\001 \003(\0132/.tensorflow.Rewri" +
+      "terConfig.CustomGraphOptimizer\022D\n\037inter_" +
+      "optimizer_verifier_config\030\254\002 \001(\0132\032.tenso" +
+      "rflow.VerifierConfig\022F\n!post_optimizatio" +
+      "n_verifier_config\030\255\002 \001(\0132\032.tensorflow.Ve" +
+      "rifierConfig\032\312\001\n\024CustomGraphOptimizer\022\014\n" +
+      "\004name\030\001 \001(\t\022X\n\rparameter_map\030\002 \003(\0132A.ten" +
+      "sorflow.RewriterConfig.CustomGraphOptimi" +
+      "zer.ParameterMapEntry\032J\n\021ParameterMapEnt" +
+      "ry\022\013\n\003key\030\001 \001(\t\022$\n\005value\030\002 \001(\0132\025.tensorf" +
+      "low.AttrValue:\0028\001\"d\n\006Toggle\022\013\n\007DEFAULT\020\000" +
+      "\022\006\n\002ON\020\001\022\007\n\003OFF\020\002\022\016\n\nAGGRESSIVE\020\003\022\025\n\021EXP" +
+      "ERIMENTAL_MLIR\020\004\022\025\n\021EXPERIMENTAL_BOTH\020\005\"" +
+      "I\n\tCpuLayout\022\030\n\024NO_CONVERSION_ON_CPU\020\000\022\020" +
+      "\n\014NCHW_TO_NHWC\020\001\022\020\n\014NHWC_TO_NCHW\020\002\"<\n\021Nu" +
+      "mIterationsType\022\025\n\021DEFAULT_NUM_ITERS\020\000\022\007" +
+      "\n\003ONE\020\001\022\007\n\003TWO\020\002\"\237\001\n\nMemOptType\022\023\n\017DEFAU" +
+      "LT_MEM_OPT\020\000\022\016\n\nNO_MEM_OPT\020\001\022\n\n\006MANUAL\020\002" +
+      "\022\027\n\023SWAPPING_HEURISTICS\020\004\022\034\n\030RECOMPUTATI" +
+      "ON_HEURISTICS\020\005\022\031\n\025SCHEDULING_HEURISTICS" +
+      "\020\006\022\016\n\nHEURISTICS\020\003B\210\001\n\024org.tensorflow.pr" +
+      "otoB\024RewriterConfigProtosP\001ZUgithub.com/" +
+      "tensorflow/tensorflow/tensorflow/go/core" +
+      "/protobuf/for_core_protos_go_proto\370\001\001b\006p" +
+      "roto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          org.tensorflow.proto.AttrValueProtos.getDescriptor(),
+          org.tensorflow.proto.VerifierConfigProtos.getDescriptor(),
+        });
+    internal_static_tensorflow_AutoParallelOptions_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_tensorflow_AutoParallelOptions_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_AutoParallelOptions_descriptor,
+        new java.lang.String[] { "Enable", "NumReplicas", });
+    internal_static_tensorflow_ScopedAllocatorOptions_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_tensorflow_ScopedAllocatorOptions_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_ScopedAllocatorOptions_descriptor,
+        new java.lang.String[] { "EnableOp", });
+    internal_static_tensorflow_RewriterConfig_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_tensorflow_RewriterConfig_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_RewriterConfig_descriptor,
+        new java.lang.String[] { "CpuLayoutConversion", "LayoutOptimizer", "ConstantFolding", "ShapeOptimization", "Remapping", "CommonSubgraphElimination", "ArithmeticOptimization", "DependencyOptimization", "LoopOptimization", "FunctionOptimization", "DebugStripper", "DisableModelPruning", "ScopedAllocatorOptimization", "PinToHostOptimization", "ImplementationSelector", "AutoMixedPrecision", "AutoMixedPrecisionMkl", "AutoMixedPrecisionOnednnBfloat16", "AutoMixedPrecisionCpu", "DisableMetaOptimizer", "DisableTfgOptimizer", "UsePluginOptimizers", "ExperimentalConditionalCodeMotion", "MetaOptimizerIterations", "MinGraphNodes", "ExperimentalDisableCompressedTensorOptimization", "ExperimentalDisableFoldingQuantizationEmulation", "MemoryOptimization", "MemoryOptimizerTargetNodeNameScope", "MetaOptimizerTimeoutMs", "AutoParallel", "FailOnOptimizerErrors", "ScopedAllocatorOpts", "Optimizers", "CustomOptimizers", "InterOptimizerVerifierConfig", "PostOptimizationVerifierConfig", });
+    internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_descriptor =
+      internal_static_tensorflow_RewriterConfig_descriptor.getNestedTypes().get(0);
+    internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_descriptor,
+        new java.lang.String[] { "Name", "ParameterMap", });
+    internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_ParameterMapEntry_descriptor =
+      internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_descriptor.getNestedTypes().get(0);
+    internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_ParameterMapEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_RewriterConfig_CustomGraphOptimizer_ParameterMapEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    org.tensorflow.proto.AttrValueProtos.getDescriptor();
+    org.tensorflow.proto.VerifierConfigProtos.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RpcOptions.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RpcOptions.java
new file mode 100644
index 00000000000..5f375b86cf8
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RpcOptions.java
@@ -0,0 +1,1171 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/tsl/protobuf/rpc_options.proto
+
+package org.tensorflow.proto;
+
+public final class RpcOptions {
+  private RpcOptions() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  public interface RPCOptionsOrBuilder extends
+      // @@protoc_insertion_point(interface_extends:tensorflow.RPCOptions)
+      com.google.protobuf.MessageOrBuilder {
+
+    /**
+     * 
+     * If true, always use RPC to contact the session target.
+     * If false (the default option), TensorFlow may use an optimized
+     * transport for client-master communication that avoids the RPC
+     * stack. This option is primarily for used testing the RPC stack.
+     * 
+ * + * bool use_rpc_for_inprocess_master = 1; + * @return The useRpcForInprocessMaster. + */ + boolean getUseRpcForInprocessMaster(); + + /** + *
+     * The compression algorithm to be used. One of "deflate", "gzip".
+     * 
+ * + * string compression_algorithm = 2; + * @return The compressionAlgorithm. + */ + java.lang.String getCompressionAlgorithm(); + /** + *
+     * The compression algorithm to be used. One of "deflate", "gzip".
+     * 
+ * + * string compression_algorithm = 2; + * @return The bytes for compressionAlgorithm. + */ + com.google.protobuf.ByteString + getCompressionAlgorithmBytes(); + + /** + *
+     * If compression_algorithm is set, the compression level to be used.
+     * From 0 (no compression), up to 3.
+     * 
+ * + * int32 compression_level = 3; + * @return The compressionLevel. + */ + int getCompressionLevel(); + + /** + *
+     * Setting cache_rpc_response to true will enable sender side caching of
+     * response for RecvTensorAsync and RecvBufAsync to allow receiver to retry
+     * requests . This is only necessary when the network fabric is experiencing a
+     * significant error rate.  Without it we'll fail a step on an network error,
+     * while with it we'll be able to complete long steps (like complex
+     * initializations) in the face of some network errors during RecvTensor.
+     * 
+ * + * bool cache_rpc_response = 4; + * @return The cacheRpcResponse. + */ + boolean getCacheRpcResponse(); + + /** + *
+     * Disables TCP connection sharing when opening a new RPC channel.
+     * 
+ * + * bool disable_session_connection_sharing = 5; + * @return The disableSessionConnectionSharing. + */ + boolean getDisableSessionConnectionSharing(); + + /** + *
+     * Setting num_channels_per_target > 0 allows uses of multiple channels to
+     * communicate to the same target. This can be used to improve the aggregate
+     * throughput on high speed links (e.g 100G) where single connection is not
+     * sufficient to maximize link utilization. Note that a single RPC only goes
+     * on a single channel, this only helps in situations where there are multiple
+     * transfers to the same target overlapping in time.
+     * 
+ * + * int32 num_channels_per_target = 6; + * @return The numChannelsPerTarget. + */ + int getNumChannelsPerTarget(); + } + /** + *
+   * RPC options for distributed runtime.
+   * 
+ * + * Protobuf type {@code tensorflow.RPCOptions} + */ + public static final class RPCOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.RPCOptions) + RPCOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use RPCOptions.newBuilder() to construct. + private RPCOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RPCOptions() { + compressionAlgorithm_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RPCOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.RpcOptions.internal_static_tensorflow_RPCOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.RpcOptions.internal_static_tensorflow_RPCOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.RpcOptions.RPCOptions.class, org.tensorflow.proto.RpcOptions.RPCOptions.Builder.class); + } + + public static final int USE_RPC_FOR_INPROCESS_MASTER_FIELD_NUMBER = 1; + private boolean useRpcForInprocessMaster_; + /** + *
+     * If true, always use RPC to contact the session target.
+     * If false (the default option), TensorFlow may use an optimized
+     * transport for client-master communication that avoids the RPC
+     * stack. This option is primarily for used testing the RPC stack.
+     * 
+ * + * bool use_rpc_for_inprocess_master = 1; + * @return The useRpcForInprocessMaster. + */ + @java.lang.Override + public boolean getUseRpcForInprocessMaster() { + return useRpcForInprocessMaster_; + } + + public static final int COMPRESSION_ALGORITHM_FIELD_NUMBER = 2; + private volatile java.lang.Object compressionAlgorithm_; + /** + *
+     * The compression algorithm to be used. One of "deflate", "gzip".
+     * 
+ * + * string compression_algorithm = 2; + * @return The compressionAlgorithm. + */ + @java.lang.Override + public java.lang.String getCompressionAlgorithm() { + java.lang.Object ref = compressionAlgorithm_; + 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(); + compressionAlgorithm_ = s; + return s; + } + } + /** + *
+     * The compression algorithm to be used. One of "deflate", "gzip".
+     * 
+ * + * string compression_algorithm = 2; + * @return The bytes for compressionAlgorithm. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCompressionAlgorithmBytes() { + java.lang.Object ref = compressionAlgorithm_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + compressionAlgorithm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPRESSION_LEVEL_FIELD_NUMBER = 3; + private int compressionLevel_; + /** + *
+     * If compression_algorithm is set, the compression level to be used.
+     * From 0 (no compression), up to 3.
+     * 
+ * + * int32 compression_level = 3; + * @return The compressionLevel. + */ + @java.lang.Override + public int getCompressionLevel() { + return compressionLevel_; + } + + public static final int CACHE_RPC_RESPONSE_FIELD_NUMBER = 4; + private boolean cacheRpcResponse_; + /** + *
+     * Setting cache_rpc_response to true will enable sender side caching of
+     * response for RecvTensorAsync and RecvBufAsync to allow receiver to retry
+     * requests . This is only necessary when the network fabric is experiencing a
+     * significant error rate.  Without it we'll fail a step on an network error,
+     * while with it we'll be able to complete long steps (like complex
+     * initializations) in the face of some network errors during RecvTensor.
+     * 
+ * + * bool cache_rpc_response = 4; + * @return The cacheRpcResponse. + */ + @java.lang.Override + public boolean getCacheRpcResponse() { + return cacheRpcResponse_; + } + + public static final int DISABLE_SESSION_CONNECTION_SHARING_FIELD_NUMBER = 5; + private boolean disableSessionConnectionSharing_; + /** + *
+     * Disables TCP connection sharing when opening a new RPC channel.
+     * 
+ * + * bool disable_session_connection_sharing = 5; + * @return The disableSessionConnectionSharing. + */ + @java.lang.Override + public boolean getDisableSessionConnectionSharing() { + return disableSessionConnectionSharing_; + } + + public static final int NUM_CHANNELS_PER_TARGET_FIELD_NUMBER = 6; + private int numChannelsPerTarget_; + /** + *
+     * Setting num_channels_per_target > 0 allows uses of multiple channels to
+     * communicate to the same target. This can be used to improve the aggregate
+     * throughput on high speed links (e.g 100G) where single connection is not
+     * sufficient to maximize link utilization. Note that a single RPC only goes
+     * on a single channel, this only helps in situations where there are multiple
+     * transfers to the same target overlapping in time.
+     * 
+ * + * int32 num_channels_per_target = 6; + * @return The numChannelsPerTarget. + */ + @java.lang.Override + public int getNumChannelsPerTarget() { + return numChannelsPerTarget_; + } + + 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 (useRpcForInprocessMaster_ != false) { + output.writeBool(1, useRpcForInprocessMaster_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(compressionAlgorithm_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, compressionAlgorithm_); + } + if (compressionLevel_ != 0) { + output.writeInt32(3, compressionLevel_); + } + if (cacheRpcResponse_ != false) { + output.writeBool(4, cacheRpcResponse_); + } + if (disableSessionConnectionSharing_ != false) { + output.writeBool(5, disableSessionConnectionSharing_); + } + if (numChannelsPerTarget_ != 0) { + output.writeInt32(6, numChannelsPerTarget_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (useRpcForInprocessMaster_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, useRpcForInprocessMaster_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(compressionAlgorithm_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, compressionAlgorithm_); + } + if (compressionLevel_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, compressionLevel_); + } + if (cacheRpcResponse_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, cacheRpcResponse_); + } + if (disableSessionConnectionSharing_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, disableSessionConnectionSharing_); + } + if (numChannelsPerTarget_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, numChannelsPerTarget_); + } + 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 org.tensorflow.proto.RpcOptions.RPCOptions)) { + return super.equals(obj); + } + org.tensorflow.proto.RpcOptions.RPCOptions other = (org.tensorflow.proto.RpcOptions.RPCOptions) obj; + + if (getUseRpcForInprocessMaster() + != other.getUseRpcForInprocessMaster()) return false; + if (!getCompressionAlgorithm() + .equals(other.getCompressionAlgorithm())) return false; + if (getCompressionLevel() + != other.getCompressionLevel()) return false; + if (getCacheRpcResponse() + != other.getCacheRpcResponse()) return false; + if (getDisableSessionConnectionSharing() + != other.getDisableSessionConnectionSharing()) return false; + if (getNumChannelsPerTarget() + != other.getNumChannelsPerTarget()) 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) + USE_RPC_FOR_INPROCESS_MASTER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUseRpcForInprocessMaster()); + hash = (37 * hash) + COMPRESSION_ALGORITHM_FIELD_NUMBER; + hash = (53 * hash) + getCompressionAlgorithm().hashCode(); + hash = (37 * hash) + COMPRESSION_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getCompressionLevel(); + hash = (37 * hash) + CACHE_RPC_RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCacheRpcResponse()); + hash = (37 * hash) + DISABLE_SESSION_CONNECTION_SHARING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisableSessionConnectionSharing()); + hash = (37 * hash) + NUM_CHANNELS_PER_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getNumChannelsPerTarget(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.RpcOptions.RPCOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RpcOptions.RPCOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RpcOptions.RPCOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RpcOptions.RPCOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RpcOptions.RPCOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RpcOptions.RPCOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RpcOptions.RPCOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RpcOptions.RPCOptions 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 org.tensorflow.proto.RpcOptions.RPCOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RpcOptions.RPCOptions 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 org.tensorflow.proto.RpcOptions.RPCOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RpcOptions.RPCOptions 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(org.tensorflow.proto.RpcOptions.RPCOptions 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; + } + /** + *
+     * RPC options for distributed runtime.
+     * 
+ * + * Protobuf type {@code tensorflow.RPCOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.RPCOptions) + org.tensorflow.proto.RpcOptions.RPCOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.RpcOptions.internal_static_tensorflow_RPCOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.RpcOptions.internal_static_tensorflow_RPCOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.RpcOptions.RPCOptions.class, org.tensorflow.proto.RpcOptions.RPCOptions.Builder.class); + } + + // Construct using org.tensorflow.proto.RpcOptions.RPCOptions.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + useRpcForInprocessMaster_ = false; + + compressionAlgorithm_ = ""; + + compressionLevel_ = 0; + + cacheRpcResponse_ = false; + + disableSessionConnectionSharing_ = false; + + numChannelsPerTarget_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.RpcOptions.internal_static_tensorflow_RPCOptions_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.RpcOptions.RPCOptions getDefaultInstanceForType() { + return org.tensorflow.proto.RpcOptions.RPCOptions.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.RpcOptions.RPCOptions build() { + org.tensorflow.proto.RpcOptions.RPCOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.RpcOptions.RPCOptions buildPartial() { + org.tensorflow.proto.RpcOptions.RPCOptions result = new org.tensorflow.proto.RpcOptions.RPCOptions(this); + result.useRpcForInprocessMaster_ = useRpcForInprocessMaster_; + result.compressionAlgorithm_ = compressionAlgorithm_; + result.compressionLevel_ = compressionLevel_; + result.cacheRpcResponse_ = cacheRpcResponse_; + result.disableSessionConnectionSharing_ = disableSessionConnectionSharing_; + result.numChannelsPerTarget_ = numChannelsPerTarget_; + 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 org.tensorflow.proto.RpcOptions.RPCOptions) { + return mergeFrom((org.tensorflow.proto.RpcOptions.RPCOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.RpcOptions.RPCOptions other) { + if (other == org.tensorflow.proto.RpcOptions.RPCOptions.getDefaultInstance()) return this; + if (other.getUseRpcForInprocessMaster() != false) { + setUseRpcForInprocessMaster(other.getUseRpcForInprocessMaster()); + } + if (!other.getCompressionAlgorithm().isEmpty()) { + compressionAlgorithm_ = other.compressionAlgorithm_; + onChanged(); + } + if (other.getCompressionLevel() != 0) { + setCompressionLevel(other.getCompressionLevel()); + } + if (other.getCacheRpcResponse() != false) { + setCacheRpcResponse(other.getCacheRpcResponse()); + } + if (other.getDisableSessionConnectionSharing() != false) { + setDisableSessionConnectionSharing(other.getDisableSessionConnectionSharing()); + } + if (other.getNumChannelsPerTarget() != 0) { + setNumChannelsPerTarget(other.getNumChannelsPerTarget()); + } + 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: { + useRpcForInprocessMaster_ = input.readBool(); + + break; + } // case 8 + case 18: { + compressionAlgorithm_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + compressionLevel_ = input.readInt32(); + + break; + } // case 24 + case 32: { + cacheRpcResponse_ = input.readBool(); + + break; + } // case 32 + case 40: { + disableSessionConnectionSharing_ = input.readBool(); + + break; + } // case 40 + case 48: { + numChannelsPerTarget_ = input.readInt32(); + + break; + } // case 48 + 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 boolean useRpcForInprocessMaster_ ; + /** + *
+       * If true, always use RPC to contact the session target.
+       * If false (the default option), TensorFlow may use an optimized
+       * transport for client-master communication that avoids the RPC
+       * stack. This option is primarily for used testing the RPC stack.
+       * 
+ * + * bool use_rpc_for_inprocess_master = 1; + * @return The useRpcForInprocessMaster. + */ + @java.lang.Override + public boolean getUseRpcForInprocessMaster() { + return useRpcForInprocessMaster_; + } + /** + *
+       * If true, always use RPC to contact the session target.
+       * If false (the default option), TensorFlow may use an optimized
+       * transport for client-master communication that avoids the RPC
+       * stack. This option is primarily for used testing the RPC stack.
+       * 
+ * + * bool use_rpc_for_inprocess_master = 1; + * @param value The useRpcForInprocessMaster to set. + * @return This builder for chaining. + */ + public Builder setUseRpcForInprocessMaster(boolean value) { + + useRpcForInprocessMaster_ = value; + onChanged(); + return this; + } + /** + *
+       * If true, always use RPC to contact the session target.
+       * If false (the default option), TensorFlow may use an optimized
+       * transport for client-master communication that avoids the RPC
+       * stack. This option is primarily for used testing the RPC stack.
+       * 
+ * + * bool use_rpc_for_inprocess_master = 1; + * @return This builder for chaining. + */ + public Builder clearUseRpcForInprocessMaster() { + + useRpcForInprocessMaster_ = false; + onChanged(); + return this; + } + + private java.lang.Object compressionAlgorithm_ = ""; + /** + *
+       * The compression algorithm to be used. One of "deflate", "gzip".
+       * 
+ * + * string compression_algorithm = 2; + * @return The compressionAlgorithm. + */ + public java.lang.String getCompressionAlgorithm() { + java.lang.Object ref = compressionAlgorithm_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + compressionAlgorithm_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The compression algorithm to be used. One of "deflate", "gzip".
+       * 
+ * + * string compression_algorithm = 2; + * @return The bytes for compressionAlgorithm. + */ + public com.google.protobuf.ByteString + getCompressionAlgorithmBytes() { + java.lang.Object ref = compressionAlgorithm_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + compressionAlgorithm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The compression algorithm to be used. One of "deflate", "gzip".
+       * 
+ * + * string compression_algorithm = 2; + * @param value The compressionAlgorithm to set. + * @return This builder for chaining. + */ + public Builder setCompressionAlgorithm( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + compressionAlgorithm_ = value; + onChanged(); + return this; + } + /** + *
+       * The compression algorithm to be used. One of "deflate", "gzip".
+       * 
+ * + * string compression_algorithm = 2; + * @return This builder for chaining. + */ + public Builder clearCompressionAlgorithm() { + + compressionAlgorithm_ = getDefaultInstance().getCompressionAlgorithm(); + onChanged(); + return this; + } + /** + *
+       * The compression algorithm to be used. One of "deflate", "gzip".
+       * 
+ * + * string compression_algorithm = 2; + * @param value The bytes for compressionAlgorithm to set. + * @return This builder for chaining. + */ + public Builder setCompressionAlgorithmBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + compressionAlgorithm_ = value; + onChanged(); + return this; + } + + private int compressionLevel_ ; + /** + *
+       * If compression_algorithm is set, the compression level to be used.
+       * From 0 (no compression), up to 3.
+       * 
+ * + * int32 compression_level = 3; + * @return The compressionLevel. + */ + @java.lang.Override + public int getCompressionLevel() { + return compressionLevel_; + } + /** + *
+       * If compression_algorithm is set, the compression level to be used.
+       * From 0 (no compression), up to 3.
+       * 
+ * + * int32 compression_level = 3; + * @param value The compressionLevel to set. + * @return This builder for chaining. + */ + public Builder setCompressionLevel(int value) { + + compressionLevel_ = value; + onChanged(); + return this; + } + /** + *
+       * If compression_algorithm is set, the compression level to be used.
+       * From 0 (no compression), up to 3.
+       * 
+ * + * int32 compression_level = 3; + * @return This builder for chaining. + */ + public Builder clearCompressionLevel() { + + compressionLevel_ = 0; + onChanged(); + return this; + } + + private boolean cacheRpcResponse_ ; + /** + *
+       * Setting cache_rpc_response to true will enable sender side caching of
+       * response for RecvTensorAsync and RecvBufAsync to allow receiver to retry
+       * requests . This is only necessary when the network fabric is experiencing a
+       * significant error rate.  Without it we'll fail a step on an network error,
+       * while with it we'll be able to complete long steps (like complex
+       * initializations) in the face of some network errors during RecvTensor.
+       * 
+ * + * bool cache_rpc_response = 4; + * @return The cacheRpcResponse. + */ + @java.lang.Override + public boolean getCacheRpcResponse() { + return cacheRpcResponse_; + } + /** + *
+       * Setting cache_rpc_response to true will enable sender side caching of
+       * response for RecvTensorAsync and RecvBufAsync to allow receiver to retry
+       * requests . This is only necessary when the network fabric is experiencing a
+       * significant error rate.  Without it we'll fail a step on an network error,
+       * while with it we'll be able to complete long steps (like complex
+       * initializations) in the face of some network errors during RecvTensor.
+       * 
+ * + * bool cache_rpc_response = 4; + * @param value The cacheRpcResponse to set. + * @return This builder for chaining. + */ + public Builder setCacheRpcResponse(boolean value) { + + cacheRpcResponse_ = value; + onChanged(); + return this; + } + /** + *
+       * Setting cache_rpc_response to true will enable sender side caching of
+       * response for RecvTensorAsync and RecvBufAsync to allow receiver to retry
+       * requests . This is only necessary when the network fabric is experiencing a
+       * significant error rate.  Without it we'll fail a step on an network error,
+       * while with it we'll be able to complete long steps (like complex
+       * initializations) in the face of some network errors during RecvTensor.
+       * 
+ * + * bool cache_rpc_response = 4; + * @return This builder for chaining. + */ + public Builder clearCacheRpcResponse() { + + cacheRpcResponse_ = false; + onChanged(); + return this; + } + + private boolean disableSessionConnectionSharing_ ; + /** + *
+       * Disables TCP connection sharing when opening a new RPC channel.
+       * 
+ * + * bool disable_session_connection_sharing = 5; + * @return The disableSessionConnectionSharing. + */ + @java.lang.Override + public boolean getDisableSessionConnectionSharing() { + return disableSessionConnectionSharing_; + } + /** + *
+       * Disables TCP connection sharing when opening a new RPC channel.
+       * 
+ * + * bool disable_session_connection_sharing = 5; + * @param value The disableSessionConnectionSharing to set. + * @return This builder for chaining. + */ + public Builder setDisableSessionConnectionSharing(boolean value) { + + disableSessionConnectionSharing_ = value; + onChanged(); + return this; + } + /** + *
+       * Disables TCP connection sharing when opening a new RPC channel.
+       * 
+ * + * bool disable_session_connection_sharing = 5; + * @return This builder for chaining. + */ + public Builder clearDisableSessionConnectionSharing() { + + disableSessionConnectionSharing_ = false; + onChanged(); + return this; + } + + private int numChannelsPerTarget_ ; + /** + *
+       * Setting num_channels_per_target > 0 allows uses of multiple channels to
+       * communicate to the same target. This can be used to improve the aggregate
+       * throughput on high speed links (e.g 100G) where single connection is not
+       * sufficient to maximize link utilization. Note that a single RPC only goes
+       * on a single channel, this only helps in situations where there are multiple
+       * transfers to the same target overlapping in time.
+       * 
+ * + * int32 num_channels_per_target = 6; + * @return The numChannelsPerTarget. + */ + @java.lang.Override + public int getNumChannelsPerTarget() { + return numChannelsPerTarget_; + } + /** + *
+       * Setting num_channels_per_target > 0 allows uses of multiple channels to
+       * communicate to the same target. This can be used to improve the aggregate
+       * throughput on high speed links (e.g 100G) where single connection is not
+       * sufficient to maximize link utilization. Note that a single RPC only goes
+       * on a single channel, this only helps in situations where there are multiple
+       * transfers to the same target overlapping in time.
+       * 
+ * + * int32 num_channels_per_target = 6; + * @param value The numChannelsPerTarget to set. + * @return This builder for chaining. + */ + public Builder setNumChannelsPerTarget(int value) { + + numChannelsPerTarget_ = value; + onChanged(); + return this; + } + /** + *
+       * Setting num_channels_per_target > 0 allows uses of multiple channels to
+       * communicate to the same target. This can be used to improve the aggregate
+       * throughput on high speed links (e.g 100G) where single connection is not
+       * sufficient to maximize link utilization. Note that a single RPC only goes
+       * on a single channel, this only helps in situations where there are multiple
+       * transfers to the same target overlapping in time.
+       * 
+ * + * int32 num_channels_per_target = 6; + * @return This builder for chaining. + */ + public Builder clearNumChannelsPerTarget() { + + numChannelsPerTarget_ = 0; + 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:tensorflow.RPCOptions) + } + + // @@protoc_insertion_point(class_scope:tensorflow.RPCOptions) + private static final org.tensorflow.proto.RpcOptions.RPCOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.RpcOptions.RPCOptions(); + } + + public static org.tensorflow.proto.RpcOptions.RPCOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RPCOptions 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 org.tensorflow.proto.RpcOptions.RPCOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_RPCOptions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_RPCOptions_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n)tensorflow/tsl/protobuf/rpc_options.pr" + + "oto\022\ntensorflow\"\325\001\n\nRPCOptions\022$\n\034use_rp" + + "c_for_inprocess_master\030\001 \001(\010\022\035\n\025compress" + + "ion_algorithm\030\002 \001(\t\022\031\n\021compression_level" + + "\030\003 \001(\005\022\032\n\022cache_rpc_response\030\004 \001(\010\022*\n\"di" + + "sable_session_connection_sharing\030\005 \001(\010\022\037" + + "\n\027num_channels_per_target\030\006 \001(\005BV\n\024org.t" + + "ensorflow.protoZ>github.com/google/tsl/t" + + "sl/go/protobuf/for_core_protos_go_protob" + + "\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_tensorflow_RPCOptions_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_RPCOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_RPCOptions_descriptor, + new java.lang.String[] { "UseRpcForInprocessMaster", "CompressionAlgorithm", "CompressionLevel", "CacheRpcResponse", "DisableSessionConnectionSharing", "NumChannelsPerTarget", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/RunConfiguration.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RunConfiguration.java similarity index 75% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/RunConfiguration.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RunConfiguration.java index 1ec51529d32..2e74e06b1ba 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/RunConfiguration.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RunConfiguration.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/util/test_log.proto +// source: tensorflow/tsl/protobuf/test_log.proto -package org.tensorflow.proto.util.testlog; +package org.tensorflow.proto; /** *
@@ -10,7 +10,7 @@
  *
  * Protobuf type {@code tensorflow.RunConfiguration}
  */
-public  final class RunConfiguration extends
+public final class RunConfiguration extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.RunConfiguration)
     RunConfigurationOrBuilder {
@@ -35,72 +35,9 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private RunConfiguration(
-      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: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              argument_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            argument_.add(s);
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              envVars_ = com.google.protobuf.MapField.newMapField(
-                  EnvVarsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000002;
-            }
-            com.google.protobuf.MapEntry
-            envVars__ = input.readMessage(
-                EnvVarsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            envVars_.getMutableMap().put(
-                envVars__.getKey(), envVars__.getValue());
-            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)) {
-        argument_ = argument_.getUnmodifiableView();
-      }
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_RunConfiguration_descriptor;
+    return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_RunConfiguration_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
@@ -118,15 +55,16 @@ protected com.google.protobuf.MapField internalGetMapField(
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_RunConfiguration_fieldAccessorTable
+    return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_RunConfiguration_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.util.testlog.RunConfiguration.class, org.tensorflow.proto.util.testlog.RunConfiguration.Builder.class);
+            org.tensorflow.proto.RunConfiguration.class, org.tensorflow.proto.RunConfiguration.Builder.class);
   }
 
   public static final int ARGUMENT_FIELD_NUMBER = 1;
   private com.google.protobuf.LazyStringList argument_;
   /**
    * repeated string argument = 1;
+   * @return A list containing the argument.
    */
   public com.google.protobuf.ProtocolStringList
       getArgumentList() {
@@ -134,18 +72,23 @@ protected com.google.protobuf.MapField internalGetMapField(
   }
   /**
    * repeated string argument = 1;
+   * @return The count of argument.
    */
   public int getArgumentCount() {
     return argument_.size();
   }
   /**
    * repeated string argument = 1;
+   * @param index The index of the element to return.
+   * @return The argument at the given index.
    */
   public java.lang.String getArgument(int index) {
     return argument_.get(index);
   }
   /**
    * repeated string argument = 1;
+   * @param index The index of the value to return.
+   * @return The bytes of the argument at the given index.
    */
   public com.google.protobuf.ByteString
       getArgumentBytes(int index) {
@@ -158,7 +101,7 @@ private static final class EnvVarsDefaultEntryHolder {
         java.lang.String, java.lang.String> defaultEntry =
             com.google.protobuf.MapEntry
             .newDefaultInstance(
-                org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_RunConfiguration_EnvVarsEntry_descriptor, 
+                org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_RunConfiguration_EnvVarsEntry_descriptor, 
                 com.google.protobuf.WireFormat.FieldType.STRING,
                 "",
                 com.google.protobuf.WireFormat.FieldType.STRING,
@@ -186,14 +129,16 @@ public int getEnvVarsCount() {
    * map<string, string> env_vars = 2;
    */
 
+  @java.lang.Override
   public boolean containsEnvVars(
       java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetEnvVars().getMap().containsKey(key);
   }
   /**
    * Use {@link #getEnvVarsMap()} instead.
    */
+  @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getEnvVars() {
     return getEnvVarsMap();
@@ -205,6 +150,7 @@ public java.util.Map getEnvVars() {
    *
    * map<string, string> env_vars = 2;
    */
+  @java.lang.Override
 
   public java.util.Map getEnvVarsMap() {
     return internalGetEnvVars().getMap();
@@ -216,11 +162,12 @@ public java.util.Map getEnvVarsMap() {
    *
    * map<string, string> env_vars = 2;
    */
+  @java.lang.Override
 
   public java.lang.String getEnvVarsOrDefault(
       java.lang.String key,
       java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetEnvVars().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -232,10 +179,11 @@ public java.lang.String getEnvVarsOrDefault(
    *
    * map<string, string> env_vars = 2;
    */
+  @java.lang.Override
 
   public java.lang.String getEnvVarsOrThrow(
       java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetEnvVars().getMap();
     if (!map.containsKey(key)) {
@@ -267,7 +215,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
         internalGetEnvVars(),
         EnvVarsDefaultEntryHolder.defaultEntry,
         2);
-    unknownFields.writeTo(output);
+    getUnknownFields().writeTo(output);
   }
 
   @java.lang.Override
@@ -294,7 +242,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(2, envVars__);
     }
-    size += unknownFields.getSerializedSize();
+    size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
     return size;
   }
@@ -304,16 +252,16 @@ public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
      return true;
     }
-    if (!(obj instanceof org.tensorflow.proto.util.testlog.RunConfiguration)) {
+    if (!(obj instanceof org.tensorflow.proto.RunConfiguration)) {
       return super.equals(obj);
     }
-    org.tensorflow.proto.util.testlog.RunConfiguration other = (org.tensorflow.proto.util.testlog.RunConfiguration) obj;
+    org.tensorflow.proto.RunConfiguration other = (org.tensorflow.proto.RunConfiguration) obj;
 
     if (!getArgumentList()
         .equals(other.getArgumentList())) return false;
     if (!internalGetEnvVars().equals(
         other.internalGetEnvVars())) return false;
-    if (!unknownFields.equals(other.unknownFields)) return false;
+    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
 
@@ -332,74 +280,74 @@ public int hashCode() {
       hash = (37 * hash) + ENV_VARS_FIELD_NUMBER;
       hash = (53 * hash) + internalGetEnvVars().hashCode();
     }
-    hash = (29 * hash) + unknownFields.hashCode();
+    hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
     return hash;
   }
 
-  public static org.tensorflow.proto.util.testlog.RunConfiguration parseFrom(
+  public static org.tensorflow.proto.RunConfiguration parseFrom(
       java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.util.testlog.RunConfiguration parseFrom(
+  public static org.tensorflow.proto.RunConfiguration parseFrom(
       java.nio.ByteBuffer data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.util.testlog.RunConfiguration parseFrom(
+  public static org.tensorflow.proto.RunConfiguration parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.util.testlog.RunConfiguration parseFrom(
+  public static org.tensorflow.proto.RunConfiguration parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.util.testlog.RunConfiguration parseFrom(byte[] data)
+  public static org.tensorflow.proto.RunConfiguration parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.util.testlog.RunConfiguration parseFrom(
+  public static org.tensorflow.proto.RunConfiguration parseFrom(
       byte[] data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.util.testlog.RunConfiguration parseFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.RunConfiguration parseFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.util.testlog.RunConfiguration parseFrom(
+  public static org.tensorflow.proto.RunConfiguration 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 org.tensorflow.proto.util.testlog.RunConfiguration parseDelimitedFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.RunConfiguration parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.util.testlog.RunConfiguration parseDelimitedFrom(
+  public static org.tensorflow.proto.RunConfiguration 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 org.tensorflow.proto.util.testlog.RunConfiguration parseFrom(
+  public static org.tensorflow.proto.RunConfiguration parseFrom(
       com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.util.testlog.RunConfiguration parseFrom(
+  public static org.tensorflow.proto.RunConfiguration parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
@@ -412,7 +360,7 @@ public static org.tensorflow.proto.util.testlog.RunConfiguration parseFrom(
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(org.tensorflow.proto.util.testlog.RunConfiguration prototype) {
+  public static Builder newBuilder(org.tensorflow.proto.RunConfiguration prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
   @java.lang.Override
@@ -437,10 +385,10 @@ protected Builder newBuilderForType(
   public static final class Builder extends
       com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:tensorflow.RunConfiguration)
-      org.tensorflow.proto.util.testlog.RunConfigurationOrBuilder {
+      org.tensorflow.proto.RunConfigurationOrBuilder {
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_RunConfiguration_descriptor;
+      return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_RunConfiguration_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
@@ -468,25 +416,20 @@ protected com.google.protobuf.MapField internalGetMutableMapField(
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_RunConfiguration_fieldAccessorTable
+      return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_RunConfiguration_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              org.tensorflow.proto.util.testlog.RunConfiguration.class, org.tensorflow.proto.util.testlog.RunConfiguration.Builder.class);
+              org.tensorflow.proto.RunConfiguration.class, org.tensorflow.proto.RunConfiguration.Builder.class);
     }
 
-    // Construct using org.tensorflow.proto.util.testlog.RunConfiguration.newBuilder()
+    // Construct using org.tensorflow.proto.RunConfiguration.newBuilder()
     private Builder() {
-      maybeForceBuilderInitialization();
+
     }
 
     private Builder(
         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-      maybeForceBuilderInitialization();
-    }
-    private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+
     }
     @java.lang.Override
     public Builder clear() {
@@ -500,17 +443,17 @@ public Builder clear() {
     @java.lang.Override
     public com.google.protobuf.Descriptors.Descriptor
         getDescriptorForType() {
-      return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_RunConfiguration_descriptor;
+      return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_RunConfiguration_descriptor;
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.util.testlog.RunConfiguration getDefaultInstanceForType() {
-      return org.tensorflow.proto.util.testlog.RunConfiguration.getDefaultInstance();
+    public org.tensorflow.proto.RunConfiguration getDefaultInstanceForType() {
+      return org.tensorflow.proto.RunConfiguration.getDefaultInstance();
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.util.testlog.RunConfiguration build() {
-      org.tensorflow.proto.util.testlog.RunConfiguration result = buildPartial();
+    public org.tensorflow.proto.RunConfiguration build() {
+      org.tensorflow.proto.RunConfiguration result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -518,8 +461,8 @@ public org.tensorflow.proto.util.testlog.RunConfiguration build() {
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.util.testlog.RunConfiguration buildPartial() {
-      org.tensorflow.proto.util.testlog.RunConfiguration result = new org.tensorflow.proto.util.testlog.RunConfiguration(this);
+    public org.tensorflow.proto.RunConfiguration buildPartial() {
+      org.tensorflow.proto.RunConfiguration result = new org.tensorflow.proto.RunConfiguration(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         argument_ = argument_.getUnmodifiableView();
@@ -566,16 +509,16 @@ public Builder addRepeatedField(
     }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof org.tensorflow.proto.util.testlog.RunConfiguration) {
-        return mergeFrom((org.tensorflow.proto.util.testlog.RunConfiguration)other);
+      if (other instanceof org.tensorflow.proto.RunConfiguration) {
+        return mergeFrom((org.tensorflow.proto.RunConfiguration)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(org.tensorflow.proto.util.testlog.RunConfiguration other) {
-      if (other == org.tensorflow.proto.util.testlog.RunConfiguration.getDefaultInstance()) return this;
+    public Builder mergeFrom(org.tensorflow.proto.RunConfiguration other) {
+      if (other == org.tensorflow.proto.RunConfiguration.getDefaultInstance()) return this;
       if (!other.argument_.isEmpty()) {
         if (argument_.isEmpty()) {
           argument_ = other.argument_;
@@ -588,7 +531,7 @@ public Builder mergeFrom(org.tensorflow.proto.util.testlog.RunConfiguration othe
       }
       internalGetMutableEnvVars().mergeFrom(
           other.internalGetEnvVars());
-      this.mergeUnknownFields(other.unknownFields);
+      this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
     }
@@ -603,17 +546,44 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      org.tensorflow.proto.util.testlog.RunConfiguration parsedMessage = null;
+      if (extensionRegistry == null) {
+        throw new java.lang.NullPointerException();
+      }
       try {
-        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+        boolean done = false;
+        while (!done) {
+          int tag = input.readTag();
+          switch (tag) {
+            case 0:
+              done = true;
+              break;
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureArgumentIsMutable();
+              argument_.add(s);
+              break;
+            } // case 10
+            case 18: {
+              com.google.protobuf.MapEntry
+              envVars__ = input.readMessage(
+                  EnvVarsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableEnvVars().getMutableMap().put(
+                  envVars__.getKey(), envVars__.getValue());
+              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) {
-        parsedMessage = (org.tensorflow.proto.util.testlog.RunConfiguration) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
-        if (parsedMessage != null) {
-          mergeFrom(parsedMessage);
-        }
-      }
+        onChanged();
+      } // finally
       return this;
     }
     private int bitField0_;
@@ -627,6 +597,7 @@ private void ensureArgumentIsMutable() {
     }
     /**
      * repeated string argument = 1;
+     * @return A list containing the argument.
      */
     public com.google.protobuf.ProtocolStringList
         getArgumentList() {
@@ -634,18 +605,23 @@ private void ensureArgumentIsMutable() {
     }
     /**
      * repeated string argument = 1;
+     * @return The count of argument.
      */
     public int getArgumentCount() {
       return argument_.size();
     }
     /**
      * repeated string argument = 1;
+     * @param index The index of the element to return.
+     * @return The argument at the given index.
      */
     public java.lang.String getArgument(int index) {
       return argument_.get(index);
     }
     /**
      * repeated string argument = 1;
+     * @param index The index of the value to return.
+     * @return The bytes of the argument at the given index.
      */
     public com.google.protobuf.ByteString
         getArgumentBytes(int index) {
@@ -653,6 +629,9 @@ public java.lang.String getArgument(int index) {
     }
     /**
      * repeated string argument = 1;
+     * @param index The index to set the value at.
+     * @param value The argument to set.
+     * @return This builder for chaining.
      */
     public Builder setArgument(
         int index, java.lang.String value) {
@@ -666,6 +645,8 @@ public Builder setArgument(
     }
     /**
      * repeated string argument = 1;
+     * @param value The argument to add.
+     * @return This builder for chaining.
      */
     public Builder addArgument(
         java.lang.String value) {
@@ -679,6 +660,8 @@ public Builder addArgument(
     }
     /**
      * repeated string argument = 1;
+     * @param values The argument to add.
+     * @return This builder for chaining.
      */
     public Builder addAllArgument(
         java.lang.Iterable values) {
@@ -690,6 +673,7 @@ public Builder addAllArgument(
     }
     /**
      * repeated string argument = 1;
+     * @return This builder for chaining.
      */
     public Builder clearArgument() {
       argument_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -699,6 +683,8 @@ public Builder clearArgument() {
     }
     /**
      * repeated string argument = 1;
+     * @param value The bytes of the argument to add.
+     * @return This builder for chaining.
      */
     public Builder addArgumentBytes(
         com.google.protobuf.ByteString value) {
@@ -746,14 +732,16 @@ public int getEnvVarsCount() {
      * map<string, string> env_vars = 2;
      */
 
+    @java.lang.Override
     public boolean containsEnvVars(
         java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetEnvVars().getMap().containsKey(key);
     }
     /**
      * Use {@link #getEnvVarsMap()} instead.
      */
+    @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getEnvVars() {
       return getEnvVarsMap();
@@ -765,6 +753,7 @@ public java.util.Map getEnvVars() {
      *
      * map<string, string> env_vars = 2;
      */
+    @java.lang.Override
 
     public java.util.Map getEnvVarsMap() {
       return internalGetEnvVars().getMap();
@@ -776,11 +765,12 @@ public java.util.Map getEnvVarsMap() {
      *
      * map<string, string> env_vars = 2;
      */
+    @java.lang.Override
 
     public java.lang.String getEnvVarsOrDefault(
         java.lang.String key,
         java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetEnvVars().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -792,10 +782,11 @@ public java.lang.String getEnvVarsOrDefault(
      *
      * map<string, string> env_vars = 2;
      */
+    @java.lang.Override
 
     public java.lang.String getEnvVarsOrThrow(
         java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetEnvVars().getMap();
       if (!map.containsKey(key)) {
@@ -819,7 +810,7 @@ public Builder clearEnvVars() {
 
     public Builder removeEnvVars(
         java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
       internalGetMutableEnvVars().getMutableMap()
           .remove(key);
       return this;
@@ -842,8 +833,11 @@ public Builder removeEnvVars(
     public Builder putEnvVars(
         java.lang.String key,
         java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) {
+  throw new NullPointerException("map value");
+}
+
       internalGetMutableEnvVars().getMutableMap()
           .put(key, value);
       return this;
@@ -879,12 +873,12 @@ public final Builder mergeUnknownFields(
   }
 
   // @@protoc_insertion_point(class_scope:tensorflow.RunConfiguration)
-  private static final org.tensorflow.proto.util.testlog.RunConfiguration DEFAULT_INSTANCE;
+  private static final org.tensorflow.proto.RunConfiguration DEFAULT_INSTANCE;
   static {
-    DEFAULT_INSTANCE = new org.tensorflow.proto.util.testlog.RunConfiguration();
+    DEFAULT_INSTANCE = new org.tensorflow.proto.RunConfiguration();
   }
 
-  public static org.tensorflow.proto.util.testlog.RunConfiguration getDefaultInstance() {
+  public static org.tensorflow.proto.RunConfiguration getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
@@ -895,7 +889,18 @@ public RunConfiguration parsePartialFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
-      return new RunConfiguration(input, extensionRegistry);
+      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();
     }
   };
 
@@ -909,7 +914,7 @@ public com.google.protobuf.Parser getParserForType() {
   }
 
   @java.lang.Override
-  public org.tensorflow.proto.util.testlog.RunConfiguration getDefaultInstanceForType() {
+  public org.tensorflow.proto.RunConfiguration getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/RunConfigurationOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RunConfigurationOrBuilder.java
similarity index 79%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/RunConfigurationOrBuilder.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RunConfigurationOrBuilder.java
index 9150f64ee59..43085db4c3e 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/RunConfigurationOrBuilder.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RunConfigurationOrBuilder.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: tensorflow/core/util/test_log.proto
+// source: tensorflow/tsl/protobuf/test_log.proto
 
-package org.tensorflow.proto.util.testlog;
+package org.tensorflow.proto;
 
 public interface RunConfigurationOrBuilder extends
     // @@protoc_insertion_point(interface_extends:tensorflow.RunConfiguration)
@@ -9,19 +9,25 @@ public interface RunConfigurationOrBuilder extends
 
   /**
    * repeated string argument = 1;
+   * @return A list containing the argument.
    */
   java.util.List
       getArgumentList();
   /**
    * repeated string argument = 1;
+   * @return The count of argument.
    */
   int getArgumentCount();
   /**
    * repeated string argument = 1;
+   * @param index The index of the element to return.
+   * @return The argument at the given index.
    */
   java.lang.String getArgument(int index);
   /**
    * repeated string argument = 1;
+   * @param index The index of the value to return.
+   * @return The bytes of the argument at the given index.
    */
   com.google.protobuf.ByteString
       getArgumentBytes(int index);
@@ -66,9 +72,11 @@ boolean containsEnvVars(
    * map<string, string> env_vars = 2;
    */
 
-  java.lang.String getEnvVarsOrDefault(
+  /* nullable */
+java.lang.String getEnvVarsOrDefault(
       java.lang.String key,
-      java.lang.String defaultValue);
+      /* nullable */
+java.lang.String defaultValue);
   /**
    * 
    * Environment variables used to run the test/benchmark.
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RunMetadata.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RunMetadata.java
similarity index 75%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RunMetadata.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RunMetadata.java
index 86c7c634249..84fb9890a80 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RunMetadata.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RunMetadata.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/protobuf/config.proto
 
-package org.tensorflow.proto.framework;
+package org.tensorflow.proto;
 
 /**
  * 
@@ -10,7 +10,7 @@
  *
  * Protobuf type {@code tensorflow.RunMetadata}
  */
-public  final class RunMetadata extends
+public final class RunMetadata extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.RunMetadata)
     RunMetadataOrBuilder {
@@ -36,118 +36,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private RunMetadata(
-      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: {
-            org.tensorflow.proto.framework.StepStats.Builder subBuilder = null;
-            if (stepStats_ != null) {
-              subBuilder = stepStats_.toBuilder();
-            }
-            stepStats_ = input.readMessage(org.tensorflow.proto.framework.StepStats.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(stepStats_);
-              stepStats_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 18: {
-            org.tensorflow.proto.framework.CostGraphDef.Builder subBuilder = null;
-            if (costGraph_ != null) {
-              subBuilder = costGraph_.toBuilder();
-            }
-            costGraph_ = input.readMessage(org.tensorflow.proto.framework.CostGraphDef.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(costGraph_);
-              costGraph_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              partitionGraphs_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            partitionGraphs_.add(
-                input.readMessage(org.tensorflow.proto.framework.GraphDef.parser(), extensionRegistry));
-            break;
-          }
-          case 34: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              functionGraphs_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
-            }
-            functionGraphs_.add(
-                input.readMessage(org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.parser(), extensionRegistry));
-            break;
-          }
-          case 42: {
-            org.tensorflow.proto.framework.SessionMetadata.Builder subBuilder = null;
-            if (sessionMetadata_ != null) {
-              subBuilder = sessionMetadata_.toBuilder();
-            }
-            sessionMetadata_ = input.readMessage(org.tensorflow.proto.framework.SessionMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(sessionMetadata_);
-              sessionMetadata_ = subBuilder.buildPartial();
-            }
-
-            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)) {
-        partitionGraphs_ = java.util.Collections.unmodifiableList(partitionGraphs_);
-      }
-      if (((mutable_bitField0_ & 0x00000002) != 0)) {
-        functionGraphs_ = java.util.Collections.unmodifiableList(functionGraphs_);
-      }
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunMetadata_descriptor;
+    return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunMetadata_fieldAccessorTable
+    return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.framework.RunMetadata.class, org.tensorflow.proto.framework.RunMetadata.Builder.class);
+            org.tensorflow.proto.RunMetadata.class, org.tensorflow.proto.RunMetadata.Builder.class);
   }
 
   public interface FunctionGraphsOrBuilder extends
@@ -161,7 +60,7 @@ public interface FunctionGraphsOrBuilder extends
      *
      * repeated .tensorflow.GraphDef partition_graphs = 1;
      */
-    java.util.List 
+    java.util.List 
         getPartitionGraphsList();
     /**
      * 
@@ -170,7 +69,7 @@ public interface FunctionGraphsOrBuilder extends
      *
      * repeated .tensorflow.GraphDef partition_graphs = 1;
      */
-    org.tensorflow.proto.framework.GraphDef getPartitionGraphs(int index);
+    org.tensorflow.proto.GraphDef getPartitionGraphs(int index);
     /**
      * 
      * TODO(nareshmodi): Include some sort of function/cache-key identifier?
@@ -186,7 +85,7 @@ public interface FunctionGraphsOrBuilder extends
      *
      * repeated .tensorflow.GraphDef partition_graphs = 1;
      */
-    java.util.List 
+    java.util.List 
         getPartitionGraphsOrBuilderList();
     /**
      * 
@@ -195,39 +94,43 @@ public interface FunctionGraphsOrBuilder extends
      *
      * repeated .tensorflow.GraphDef partition_graphs = 1;
      */
-    org.tensorflow.proto.framework.GraphDefOrBuilder getPartitionGraphsOrBuilder(
+    org.tensorflow.proto.GraphDefOrBuilder getPartitionGraphsOrBuilder(
         int index);
 
     /**
      * .tensorflow.GraphDef pre_optimization_graph = 2;
+     * @return Whether the preOptimizationGraph field is set.
      */
     boolean hasPreOptimizationGraph();
     /**
      * .tensorflow.GraphDef pre_optimization_graph = 2;
+     * @return The preOptimizationGraph.
      */
-    org.tensorflow.proto.framework.GraphDef getPreOptimizationGraph();
+    org.tensorflow.proto.GraphDef getPreOptimizationGraph();
     /**
      * .tensorflow.GraphDef pre_optimization_graph = 2;
      */
-    org.tensorflow.proto.framework.GraphDefOrBuilder getPreOptimizationGraphOrBuilder();
+    org.tensorflow.proto.GraphDefOrBuilder getPreOptimizationGraphOrBuilder();
 
     /**
      * .tensorflow.GraphDef post_optimization_graph = 3;
+     * @return Whether the postOptimizationGraph field is set.
      */
     boolean hasPostOptimizationGraph();
     /**
      * .tensorflow.GraphDef post_optimization_graph = 3;
+     * @return The postOptimizationGraph.
      */
-    org.tensorflow.proto.framework.GraphDef getPostOptimizationGraph();
+    org.tensorflow.proto.GraphDef getPostOptimizationGraph();
     /**
      * .tensorflow.GraphDef post_optimization_graph = 3;
      */
-    org.tensorflow.proto.framework.GraphDefOrBuilder getPostOptimizationGraphOrBuilder();
+    org.tensorflow.proto.GraphDefOrBuilder getPostOptimizationGraphOrBuilder();
   }
   /**
    * Protobuf type {@code tensorflow.RunMetadata.FunctionGraphs}
    */
-  public  static final class FunctionGraphs extends
+  public static final class FunctionGraphs extends
       com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:tensorflow.RunMetadata.FunctionGraphs)
       FunctionGraphsOrBuilder {
@@ -252,97 +155,21 @@ protected java.lang.Object newInstance(
     getUnknownFields() {
       return this.unknownFields;
     }
-    private FunctionGraphs(
-        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)) {
-                partitionGraphs_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              partitionGraphs_.add(
-                  input.readMessage(org.tensorflow.proto.framework.GraphDef.parser(), extensionRegistry));
-              break;
-            }
-            case 18: {
-              org.tensorflow.proto.framework.GraphDef.Builder subBuilder = null;
-              if (preOptimizationGraph_ != null) {
-                subBuilder = preOptimizationGraph_.toBuilder();
-              }
-              preOptimizationGraph_ = input.readMessage(org.tensorflow.proto.framework.GraphDef.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(preOptimizationGraph_);
-                preOptimizationGraph_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-            case 26: {
-              org.tensorflow.proto.framework.GraphDef.Builder subBuilder = null;
-              if (postOptimizationGraph_ != null) {
-                subBuilder = postOptimizationGraph_.toBuilder();
-              }
-              postOptimizationGraph_ = input.readMessage(org.tensorflow.proto.framework.GraphDef.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(postOptimizationGraph_);
-                postOptimizationGraph_ = subBuilder.buildPartial();
-              }
-
-              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)) {
-          partitionGraphs_ = java.util.Collections.unmodifiableList(partitionGraphs_);
-        }
-        this.unknownFields = unknownFields.build();
-        makeExtensionsImmutable();
-      }
-    }
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunMetadata_FunctionGraphs_descriptor;
+      return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunMetadata_FunctionGraphs_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunMetadata_FunctionGraphs_fieldAccessorTable
+      return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunMetadata_FunctionGraphs_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.class, org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.Builder.class);
+              org.tensorflow.proto.RunMetadata.FunctionGraphs.class, org.tensorflow.proto.RunMetadata.FunctionGraphs.Builder.class);
     }
 
     public static final int PARTITION_GRAPHS_FIELD_NUMBER = 1;
-    private java.util.List partitionGraphs_;
+    private java.util.List partitionGraphs_;
     /**
      * 
      * TODO(nareshmodi): Include some sort of function/cache-key identifier?
@@ -350,7 +177,8 @@ private FunctionGraphs(
      *
      * repeated .tensorflow.GraphDef partition_graphs = 1;
      */
-    public java.util.List getPartitionGraphsList() {
+    @java.lang.Override
+    public java.util.List getPartitionGraphsList() {
       return partitionGraphs_;
     }
     /**
@@ -360,7 +188,8 @@ public java.util.List getPartitionGraph
      *
      * repeated .tensorflow.GraphDef partition_graphs = 1;
      */
-    public java.util.List 
+    @java.lang.Override
+    public java.util.List 
         getPartitionGraphsOrBuilderList() {
       return partitionGraphs_;
     }
@@ -371,6 +200,7 @@ public java.util.List getPartitionGraph
      *
      * repeated .tensorflow.GraphDef partition_graphs = 1;
      */
+    @java.lang.Override
     public int getPartitionGraphsCount() {
       return partitionGraphs_.size();
     }
@@ -381,7 +211,8 @@ public int getPartitionGraphsCount() {
      *
      * repeated .tensorflow.GraphDef partition_graphs = 1;
      */
-    public org.tensorflow.proto.framework.GraphDef getPartitionGraphs(int index) {
+    @java.lang.Override
+    public org.tensorflow.proto.GraphDef getPartitionGraphs(int index) {
       return partitionGraphs_.get(index);
     }
     /**
@@ -391,50 +222,61 @@ public org.tensorflow.proto.framework.GraphDef getPartitionGraphs(int index) {
      *
      * repeated .tensorflow.GraphDef partition_graphs = 1;
      */
-    public org.tensorflow.proto.framework.GraphDefOrBuilder getPartitionGraphsOrBuilder(
+    @java.lang.Override
+    public org.tensorflow.proto.GraphDefOrBuilder getPartitionGraphsOrBuilder(
         int index) {
       return partitionGraphs_.get(index);
     }
 
     public static final int PRE_OPTIMIZATION_GRAPH_FIELD_NUMBER = 2;
-    private org.tensorflow.proto.framework.GraphDef preOptimizationGraph_;
+    private org.tensorflow.proto.GraphDef preOptimizationGraph_;
     /**
      * .tensorflow.GraphDef pre_optimization_graph = 2;
+     * @return Whether the preOptimizationGraph field is set.
      */
+    @java.lang.Override
     public boolean hasPreOptimizationGraph() {
       return preOptimizationGraph_ != null;
     }
     /**
      * .tensorflow.GraphDef pre_optimization_graph = 2;
+     * @return The preOptimizationGraph.
      */
-    public org.tensorflow.proto.framework.GraphDef getPreOptimizationGraph() {
-      return preOptimizationGraph_ == null ? org.tensorflow.proto.framework.GraphDef.getDefaultInstance() : preOptimizationGraph_;
+    @java.lang.Override
+    public org.tensorflow.proto.GraphDef getPreOptimizationGraph() {
+      return preOptimizationGraph_ == null ? org.tensorflow.proto.GraphDef.getDefaultInstance() : preOptimizationGraph_;
     }
     /**
      * .tensorflow.GraphDef pre_optimization_graph = 2;
      */
-    public org.tensorflow.proto.framework.GraphDefOrBuilder getPreOptimizationGraphOrBuilder() {
+    @java.lang.Override
+    public org.tensorflow.proto.GraphDefOrBuilder getPreOptimizationGraphOrBuilder() {
       return getPreOptimizationGraph();
     }
 
     public static final int POST_OPTIMIZATION_GRAPH_FIELD_NUMBER = 3;
-    private org.tensorflow.proto.framework.GraphDef postOptimizationGraph_;
+    private org.tensorflow.proto.GraphDef postOptimizationGraph_;
     /**
      * .tensorflow.GraphDef post_optimization_graph = 3;
+     * @return Whether the postOptimizationGraph field is set.
      */
+    @java.lang.Override
     public boolean hasPostOptimizationGraph() {
       return postOptimizationGraph_ != null;
     }
     /**
      * .tensorflow.GraphDef post_optimization_graph = 3;
+     * @return The postOptimizationGraph.
      */
-    public org.tensorflow.proto.framework.GraphDef getPostOptimizationGraph() {
-      return postOptimizationGraph_ == null ? org.tensorflow.proto.framework.GraphDef.getDefaultInstance() : postOptimizationGraph_;
+    @java.lang.Override
+    public org.tensorflow.proto.GraphDef getPostOptimizationGraph() {
+      return postOptimizationGraph_ == null ? org.tensorflow.proto.GraphDef.getDefaultInstance() : postOptimizationGraph_;
     }
     /**
      * .tensorflow.GraphDef post_optimization_graph = 3;
      */
-    public org.tensorflow.proto.framework.GraphDefOrBuilder getPostOptimizationGraphOrBuilder() {
+    @java.lang.Override
+    public org.tensorflow.proto.GraphDefOrBuilder getPostOptimizationGraphOrBuilder() {
       return getPostOptimizationGraph();
     }
 
@@ -461,7 +303,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (postOptimizationGraph_ != null) {
         output.writeMessage(3, getPostOptimizationGraph());
       }
-      unknownFields.writeTo(output);
+      getUnknownFields().writeTo(output);
     }
 
     @java.lang.Override
@@ -482,7 +324,7 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(3, getPostOptimizationGraph());
       }
-      size += unknownFields.getSerializedSize();
+      size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
       return size;
     }
@@ -492,10 +334,10 @@ public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
        return true;
       }
-      if (!(obj instanceof org.tensorflow.proto.framework.RunMetadata.FunctionGraphs)) {
+      if (!(obj instanceof org.tensorflow.proto.RunMetadata.FunctionGraphs)) {
         return super.equals(obj);
       }
-      org.tensorflow.proto.framework.RunMetadata.FunctionGraphs other = (org.tensorflow.proto.framework.RunMetadata.FunctionGraphs) obj;
+      org.tensorflow.proto.RunMetadata.FunctionGraphs other = (org.tensorflow.proto.RunMetadata.FunctionGraphs) obj;
 
       if (!getPartitionGraphsList()
           .equals(other.getPartitionGraphsList())) return false;
@@ -509,7 +351,7 @@ public boolean equals(final java.lang.Object obj) {
         if (!getPostOptimizationGraph()
             .equals(other.getPostOptimizationGraph())) return false;
       }
-      if (!unknownFields.equals(other.unknownFields)) return false;
+      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
     }
 
@@ -532,74 +374,74 @@ public int hashCode() {
         hash = (37 * hash) + POST_OPTIMIZATION_GRAPH_FIELD_NUMBER;
         hash = (53 * hash) + getPostOptimizationGraph().hashCode();
       }
-      hash = (29 * hash) + unknownFields.hashCode();
+      hash = (29 * hash) + getUnknownFields().hashCode();
       memoizedHashCode = hash;
       return hash;
     }
 
-    public static org.tensorflow.proto.framework.RunMetadata.FunctionGraphs parseFrom(
+    public static org.tensorflow.proto.RunMetadata.FunctionGraphs parseFrom(
         java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static org.tensorflow.proto.framework.RunMetadata.FunctionGraphs parseFrom(
+    public static org.tensorflow.proto.RunMetadata.FunctionGraphs parseFrom(
         java.nio.ByteBuffer data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static org.tensorflow.proto.framework.RunMetadata.FunctionGraphs parseFrom(
+    public static org.tensorflow.proto.RunMetadata.FunctionGraphs parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static org.tensorflow.proto.framework.RunMetadata.FunctionGraphs parseFrom(
+    public static org.tensorflow.proto.RunMetadata.FunctionGraphs parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static org.tensorflow.proto.framework.RunMetadata.FunctionGraphs parseFrom(byte[] data)
+    public static org.tensorflow.proto.RunMetadata.FunctionGraphs parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static org.tensorflow.proto.framework.RunMetadata.FunctionGraphs parseFrom(
+    public static org.tensorflow.proto.RunMetadata.FunctionGraphs parseFrom(
         byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static org.tensorflow.proto.framework.RunMetadata.FunctionGraphs parseFrom(java.io.InputStream input)
+    public static org.tensorflow.proto.RunMetadata.FunctionGraphs parseFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static org.tensorflow.proto.framework.RunMetadata.FunctionGraphs parseFrom(
+    public static org.tensorflow.proto.RunMetadata.FunctionGraphs 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 org.tensorflow.proto.framework.RunMetadata.FunctionGraphs parseDelimitedFrom(java.io.InputStream input)
+    public static org.tensorflow.proto.RunMetadata.FunctionGraphs parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseDelimitedWithIOException(PARSER, input);
     }
-    public static org.tensorflow.proto.framework.RunMetadata.FunctionGraphs parseDelimitedFrom(
+    public static org.tensorflow.proto.RunMetadata.FunctionGraphs 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 org.tensorflow.proto.framework.RunMetadata.FunctionGraphs parseFrom(
+    public static org.tensorflow.proto.RunMetadata.FunctionGraphs parseFrom(
         com.google.protobuf.CodedInputStream input)
         throws java.io.IOException {
       return com.google.protobuf.GeneratedMessageV3
           .parseWithIOException(PARSER, input);
     }
-    public static org.tensorflow.proto.framework.RunMetadata.FunctionGraphs parseFrom(
+    public static org.tensorflow.proto.RunMetadata.FunctionGraphs parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
@@ -612,7 +454,7 @@ public static org.tensorflow.proto.framework.RunMetadata.FunctionGraphs parseFro
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(org.tensorflow.proto.framework.RunMetadata.FunctionGraphs prototype) {
+    public static Builder newBuilder(org.tensorflow.proto.RunMetadata.FunctionGraphs prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
     @java.lang.Override
@@ -633,45 +475,40 @@ protected Builder newBuilderForType(
     public static final class Builder extends
         com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:tensorflow.RunMetadata.FunctionGraphs)
-        org.tensorflow.proto.framework.RunMetadata.FunctionGraphsOrBuilder {
+        org.tensorflow.proto.RunMetadata.FunctionGraphsOrBuilder {
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
-        return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunMetadata_FunctionGraphs_descriptor;
+        return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunMetadata_FunctionGraphs_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunMetadata_FunctionGraphs_fieldAccessorTable
+        return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunMetadata_FunctionGraphs_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.class, org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.Builder.class);
+                org.tensorflow.proto.RunMetadata.FunctionGraphs.class, org.tensorflow.proto.RunMetadata.FunctionGraphs.Builder.class);
       }
 
-      // Construct using org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.newBuilder()
+      // Construct using org.tensorflow.proto.RunMetadata.FunctionGraphs.newBuilder()
       private Builder() {
-        maybeForceBuilderInitialization();
+
       }
 
       private Builder(
           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-        maybeForceBuilderInitialization();
-      }
-      private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-          getPartitionGraphsFieldBuilder();
-        }
+
       }
       @java.lang.Override
       public Builder clear() {
         super.clear();
         if (partitionGraphsBuilder_ == null) {
           partitionGraphs_ = java.util.Collections.emptyList();
-          bitField0_ = (bitField0_ & ~0x00000001);
         } else {
+          partitionGraphs_ = null;
           partitionGraphsBuilder_.clear();
         }
+        bitField0_ = (bitField0_ & ~0x00000001);
         if (preOptimizationGraphBuilder_ == null) {
           preOptimizationGraph_ = null;
         } else {
@@ -690,17 +527,17 @@ public Builder clear() {
       @java.lang.Override
       public com.google.protobuf.Descriptors.Descriptor
           getDescriptorForType() {
-        return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunMetadata_FunctionGraphs_descriptor;
+        return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunMetadata_FunctionGraphs_descriptor;
       }
 
       @java.lang.Override
-      public org.tensorflow.proto.framework.RunMetadata.FunctionGraphs getDefaultInstanceForType() {
-        return org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.getDefaultInstance();
+      public org.tensorflow.proto.RunMetadata.FunctionGraphs getDefaultInstanceForType() {
+        return org.tensorflow.proto.RunMetadata.FunctionGraphs.getDefaultInstance();
       }
 
       @java.lang.Override
-      public org.tensorflow.proto.framework.RunMetadata.FunctionGraphs build() {
-        org.tensorflow.proto.framework.RunMetadata.FunctionGraphs result = buildPartial();
+      public org.tensorflow.proto.RunMetadata.FunctionGraphs build() {
+        org.tensorflow.proto.RunMetadata.FunctionGraphs result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -708,8 +545,8 @@ public org.tensorflow.proto.framework.RunMetadata.FunctionGraphs build() {
       }
 
       @java.lang.Override
-      public org.tensorflow.proto.framework.RunMetadata.FunctionGraphs buildPartial() {
-        org.tensorflow.proto.framework.RunMetadata.FunctionGraphs result = new org.tensorflow.proto.framework.RunMetadata.FunctionGraphs(this);
+      public org.tensorflow.proto.RunMetadata.FunctionGraphs buildPartial() {
+        org.tensorflow.proto.RunMetadata.FunctionGraphs result = new org.tensorflow.proto.RunMetadata.FunctionGraphs(this);
         int from_bitField0_ = bitField0_;
         if (partitionGraphsBuilder_ == null) {
           if (((bitField0_ & 0x00000001) != 0)) {
@@ -768,16 +605,16 @@ public Builder addRepeatedField(
       }
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof org.tensorflow.proto.framework.RunMetadata.FunctionGraphs) {
-          return mergeFrom((org.tensorflow.proto.framework.RunMetadata.FunctionGraphs)other);
+        if (other instanceof org.tensorflow.proto.RunMetadata.FunctionGraphs) {
+          return mergeFrom((org.tensorflow.proto.RunMetadata.FunctionGraphs)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(org.tensorflow.proto.framework.RunMetadata.FunctionGraphs other) {
-        if (other == org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.getDefaultInstance()) return this;
+      public Builder mergeFrom(org.tensorflow.proto.RunMetadata.FunctionGraphs other) {
+        if (other == org.tensorflow.proto.RunMetadata.FunctionGraphs.getDefaultInstance()) return this;
         if (partitionGraphsBuilder_ == null) {
           if (!other.partitionGraphs_.isEmpty()) {
             if (partitionGraphs_.isEmpty()) {
@@ -810,7 +647,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.RunMetadata.FunctionGrap
         if (other.hasPostOptimizationGraph()) {
           mergePostOptimizationGraph(other.getPostOptimizationGraph());
         }
-        this.mergeUnknownFields(other.unknownFields);
+        this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
         return this;
       }
@@ -825,32 +662,72 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        org.tensorflow.proto.framework.RunMetadata.FunctionGraphs parsedMessage = null;
+        if (extensionRegistry == null) {
+          throw new java.lang.NullPointerException();
+        }
         try {
-          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+          boolean done = false;
+          while (!done) {
+            int tag = input.readTag();
+            switch (tag) {
+              case 0:
+                done = true;
+                break;
+              case 10: {
+                org.tensorflow.proto.GraphDef m =
+                    input.readMessage(
+                        org.tensorflow.proto.GraphDef.parser(),
+                        extensionRegistry);
+                if (partitionGraphsBuilder_ == null) {
+                  ensurePartitionGraphsIsMutable();
+                  partitionGraphs_.add(m);
+                } else {
+                  partitionGraphsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+              case 18: {
+                input.readMessage(
+                    getPreOptimizationGraphFieldBuilder().getBuilder(),
+                    extensionRegistry);
+
+                break;
+              } // case 18
+              case 26: {
+                input.readMessage(
+                    getPostOptimizationGraphFieldBuilder().getBuilder(),
+                    extensionRegistry);
+
+                break;
+              } // case 26
+              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) {
-          parsedMessage = (org.tensorflow.proto.framework.RunMetadata.FunctionGraphs) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
-          if (parsedMessage != null) {
-            mergeFrom(parsedMessage);
-          }
-        }
+          onChanged();
+        } // finally
         return this;
       }
       private int bitField0_;
 
-      private java.util.List partitionGraphs_ =
+      private java.util.List partitionGraphs_ =
         java.util.Collections.emptyList();
       private void ensurePartitionGraphsIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
-          partitionGraphs_ = new java.util.ArrayList(partitionGraphs_);
+          partitionGraphs_ = new java.util.ArrayList(partitionGraphs_);
           bitField0_ |= 0x00000001;
          }
       }
 
       private com.google.protobuf.RepeatedFieldBuilderV3<
-          org.tensorflow.proto.framework.GraphDef, org.tensorflow.proto.framework.GraphDef.Builder, org.tensorflow.proto.framework.GraphDefOrBuilder> partitionGraphsBuilder_;
+          org.tensorflow.proto.GraphDef, org.tensorflow.proto.GraphDef.Builder, org.tensorflow.proto.GraphDefOrBuilder> partitionGraphsBuilder_;
 
       /**
        * 
@@ -859,7 +736,7 @@ private void ensurePartitionGraphsIsMutable() {
        *
        * repeated .tensorflow.GraphDef partition_graphs = 1;
        */
-      public java.util.List getPartitionGraphsList() {
+      public java.util.List getPartitionGraphsList() {
         if (partitionGraphsBuilder_ == null) {
           return java.util.Collections.unmodifiableList(partitionGraphs_);
         } else {
@@ -887,7 +764,7 @@ public int getPartitionGraphsCount() {
        *
        * repeated .tensorflow.GraphDef partition_graphs = 1;
        */
-      public org.tensorflow.proto.framework.GraphDef getPartitionGraphs(int index) {
+      public org.tensorflow.proto.GraphDef getPartitionGraphs(int index) {
         if (partitionGraphsBuilder_ == null) {
           return partitionGraphs_.get(index);
         } else {
@@ -902,7 +779,7 @@ public org.tensorflow.proto.framework.GraphDef getPartitionGraphs(int index) {
        * repeated .tensorflow.GraphDef partition_graphs = 1;
        */
       public Builder setPartitionGraphs(
-          int index, org.tensorflow.proto.framework.GraphDef value) {
+          int index, org.tensorflow.proto.GraphDef value) {
         if (partitionGraphsBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -923,7 +800,7 @@ public Builder setPartitionGraphs(
        * repeated .tensorflow.GraphDef partition_graphs = 1;
        */
       public Builder setPartitionGraphs(
-          int index, org.tensorflow.proto.framework.GraphDef.Builder builderForValue) {
+          int index, org.tensorflow.proto.GraphDef.Builder builderForValue) {
         if (partitionGraphsBuilder_ == null) {
           ensurePartitionGraphsIsMutable();
           partitionGraphs_.set(index, builderForValue.build());
@@ -940,7 +817,7 @@ public Builder setPartitionGraphs(
        *
        * repeated .tensorflow.GraphDef partition_graphs = 1;
        */
-      public Builder addPartitionGraphs(org.tensorflow.proto.framework.GraphDef value) {
+      public Builder addPartitionGraphs(org.tensorflow.proto.GraphDef value) {
         if (partitionGraphsBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -961,7 +838,7 @@ public Builder addPartitionGraphs(org.tensorflow.proto.framework.GraphDef value)
        * repeated .tensorflow.GraphDef partition_graphs = 1;
        */
       public Builder addPartitionGraphs(
-          int index, org.tensorflow.proto.framework.GraphDef value) {
+          int index, org.tensorflow.proto.GraphDef value) {
         if (partitionGraphsBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -982,7 +859,7 @@ public Builder addPartitionGraphs(
        * repeated .tensorflow.GraphDef partition_graphs = 1;
        */
       public Builder addPartitionGraphs(
-          org.tensorflow.proto.framework.GraphDef.Builder builderForValue) {
+          org.tensorflow.proto.GraphDef.Builder builderForValue) {
         if (partitionGraphsBuilder_ == null) {
           ensurePartitionGraphsIsMutable();
           partitionGraphs_.add(builderForValue.build());
@@ -1000,7 +877,7 @@ public Builder addPartitionGraphs(
        * repeated .tensorflow.GraphDef partition_graphs = 1;
        */
       public Builder addPartitionGraphs(
-          int index, org.tensorflow.proto.framework.GraphDef.Builder builderForValue) {
+          int index, org.tensorflow.proto.GraphDef.Builder builderForValue) {
         if (partitionGraphsBuilder_ == null) {
           ensurePartitionGraphsIsMutable();
           partitionGraphs_.add(index, builderForValue.build());
@@ -1018,7 +895,7 @@ public Builder addPartitionGraphs(
        * repeated .tensorflow.GraphDef partition_graphs = 1;
        */
       public Builder addAllPartitionGraphs(
-          java.lang.Iterable values) {
+          java.lang.Iterable values) {
         if (partitionGraphsBuilder_ == null) {
           ensurePartitionGraphsIsMutable();
           com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -1070,7 +947,7 @@ public Builder removePartitionGraphs(int index) {
        *
        * repeated .tensorflow.GraphDef partition_graphs = 1;
        */
-      public org.tensorflow.proto.framework.GraphDef.Builder getPartitionGraphsBuilder(
+      public org.tensorflow.proto.GraphDef.Builder getPartitionGraphsBuilder(
           int index) {
         return getPartitionGraphsFieldBuilder().getBuilder(index);
       }
@@ -1081,7 +958,7 @@ public org.tensorflow.proto.framework.GraphDef.Builder getPartitionGraphsBuilder
        *
        * repeated .tensorflow.GraphDef partition_graphs = 1;
        */
-      public org.tensorflow.proto.framework.GraphDefOrBuilder getPartitionGraphsOrBuilder(
+      public org.tensorflow.proto.GraphDefOrBuilder getPartitionGraphsOrBuilder(
           int index) {
         if (partitionGraphsBuilder_ == null) {
           return partitionGraphs_.get(index);  } else {
@@ -1095,7 +972,7 @@ public org.tensorflow.proto.framework.GraphDefOrBuilder getPartitionGraphsOrBuil
        *
        * repeated .tensorflow.GraphDef partition_graphs = 1;
        */
-      public java.util.List 
+      public java.util.List 
            getPartitionGraphsOrBuilderList() {
         if (partitionGraphsBuilder_ != null) {
           return partitionGraphsBuilder_.getMessageOrBuilderList();
@@ -1110,9 +987,9 @@ public org.tensorflow.proto.framework.GraphDefOrBuilder getPartitionGraphsOrBuil
        *
        * repeated .tensorflow.GraphDef partition_graphs = 1;
        */
-      public org.tensorflow.proto.framework.GraphDef.Builder addPartitionGraphsBuilder() {
+      public org.tensorflow.proto.GraphDef.Builder addPartitionGraphsBuilder() {
         return getPartitionGraphsFieldBuilder().addBuilder(
-            org.tensorflow.proto.framework.GraphDef.getDefaultInstance());
+            org.tensorflow.proto.GraphDef.getDefaultInstance());
       }
       /**
        * 
@@ -1121,10 +998,10 @@ public org.tensorflow.proto.framework.GraphDef.Builder addPartitionGraphsBuilder
        *
        * repeated .tensorflow.GraphDef partition_graphs = 1;
        */
-      public org.tensorflow.proto.framework.GraphDef.Builder addPartitionGraphsBuilder(
+      public org.tensorflow.proto.GraphDef.Builder addPartitionGraphsBuilder(
           int index) {
         return getPartitionGraphsFieldBuilder().addBuilder(
-            index, org.tensorflow.proto.framework.GraphDef.getDefaultInstance());
+            index, org.tensorflow.proto.GraphDef.getDefaultInstance());
       }
       /**
        * 
@@ -1133,16 +1010,16 @@ public org.tensorflow.proto.framework.GraphDef.Builder addPartitionGraphsBuilder
        *
        * repeated .tensorflow.GraphDef partition_graphs = 1;
        */
-      public java.util.List 
+      public java.util.List 
            getPartitionGraphsBuilderList() {
         return getPartitionGraphsFieldBuilder().getBuilderList();
       }
       private com.google.protobuf.RepeatedFieldBuilderV3<
-          org.tensorflow.proto.framework.GraphDef, org.tensorflow.proto.framework.GraphDef.Builder, org.tensorflow.proto.framework.GraphDefOrBuilder> 
+          org.tensorflow.proto.GraphDef, org.tensorflow.proto.GraphDef.Builder, org.tensorflow.proto.GraphDefOrBuilder> 
           getPartitionGraphsFieldBuilder() {
         if (partitionGraphsBuilder_ == null) {
           partitionGraphsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-              org.tensorflow.proto.framework.GraphDef, org.tensorflow.proto.framework.GraphDef.Builder, org.tensorflow.proto.framework.GraphDefOrBuilder>(
+              org.tensorflow.proto.GraphDef, org.tensorflow.proto.GraphDef.Builder, org.tensorflow.proto.GraphDefOrBuilder>(
                   partitionGraphs_,
                   ((bitField0_ & 0x00000001) != 0),
                   getParentForChildren(),
@@ -1152,21 +1029,23 @@ public org.tensorflow.proto.framework.GraphDef.Builder addPartitionGraphsBuilder
         return partitionGraphsBuilder_;
       }
 
-      private org.tensorflow.proto.framework.GraphDef preOptimizationGraph_;
+      private org.tensorflow.proto.GraphDef preOptimizationGraph_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          org.tensorflow.proto.framework.GraphDef, org.tensorflow.proto.framework.GraphDef.Builder, org.tensorflow.proto.framework.GraphDefOrBuilder> preOptimizationGraphBuilder_;
+          org.tensorflow.proto.GraphDef, org.tensorflow.proto.GraphDef.Builder, org.tensorflow.proto.GraphDefOrBuilder> preOptimizationGraphBuilder_;
       /**
        * .tensorflow.GraphDef pre_optimization_graph = 2;
+       * @return Whether the preOptimizationGraph field is set.
        */
       public boolean hasPreOptimizationGraph() {
         return preOptimizationGraphBuilder_ != null || preOptimizationGraph_ != null;
       }
       /**
        * .tensorflow.GraphDef pre_optimization_graph = 2;
+       * @return The preOptimizationGraph.
        */
-      public org.tensorflow.proto.framework.GraphDef getPreOptimizationGraph() {
+      public org.tensorflow.proto.GraphDef getPreOptimizationGraph() {
         if (preOptimizationGraphBuilder_ == null) {
-          return preOptimizationGraph_ == null ? org.tensorflow.proto.framework.GraphDef.getDefaultInstance() : preOptimizationGraph_;
+          return preOptimizationGraph_ == null ? org.tensorflow.proto.GraphDef.getDefaultInstance() : preOptimizationGraph_;
         } else {
           return preOptimizationGraphBuilder_.getMessage();
         }
@@ -1174,7 +1053,7 @@ public org.tensorflow.proto.framework.GraphDef getPreOptimizationGraph() {
       /**
        * .tensorflow.GraphDef pre_optimization_graph = 2;
        */
-      public Builder setPreOptimizationGraph(org.tensorflow.proto.framework.GraphDef value) {
+      public Builder setPreOptimizationGraph(org.tensorflow.proto.GraphDef value) {
         if (preOptimizationGraphBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -1191,7 +1070,7 @@ public Builder setPreOptimizationGraph(org.tensorflow.proto.framework.GraphDef v
        * .tensorflow.GraphDef pre_optimization_graph = 2;
        */
       public Builder setPreOptimizationGraph(
-          org.tensorflow.proto.framework.GraphDef.Builder builderForValue) {
+          org.tensorflow.proto.GraphDef.Builder builderForValue) {
         if (preOptimizationGraphBuilder_ == null) {
           preOptimizationGraph_ = builderForValue.build();
           onChanged();
@@ -1204,11 +1083,11 @@ public Builder setPreOptimizationGraph(
       /**
        * .tensorflow.GraphDef pre_optimization_graph = 2;
        */
-      public Builder mergePreOptimizationGraph(org.tensorflow.proto.framework.GraphDef value) {
+      public Builder mergePreOptimizationGraph(org.tensorflow.proto.GraphDef value) {
         if (preOptimizationGraphBuilder_ == null) {
           if (preOptimizationGraph_ != null) {
             preOptimizationGraph_ =
-              org.tensorflow.proto.framework.GraphDef.newBuilder(preOptimizationGraph_).mergeFrom(value).buildPartial();
+              org.tensorflow.proto.GraphDef.newBuilder(preOptimizationGraph_).mergeFrom(value).buildPartial();
           } else {
             preOptimizationGraph_ = value;
           }
@@ -1236,7 +1115,7 @@ public Builder clearPreOptimizationGraph() {
       /**
        * .tensorflow.GraphDef pre_optimization_graph = 2;
        */
-      public org.tensorflow.proto.framework.GraphDef.Builder getPreOptimizationGraphBuilder() {
+      public org.tensorflow.proto.GraphDef.Builder getPreOptimizationGraphBuilder() {
         
         onChanged();
         return getPreOptimizationGraphFieldBuilder().getBuilder();
@@ -1244,23 +1123,23 @@ public org.tensorflow.proto.framework.GraphDef.Builder getPreOptimizationGraphBu
       /**
        * .tensorflow.GraphDef pre_optimization_graph = 2;
        */
-      public org.tensorflow.proto.framework.GraphDefOrBuilder getPreOptimizationGraphOrBuilder() {
+      public org.tensorflow.proto.GraphDefOrBuilder getPreOptimizationGraphOrBuilder() {
         if (preOptimizationGraphBuilder_ != null) {
           return preOptimizationGraphBuilder_.getMessageOrBuilder();
         } else {
           return preOptimizationGraph_ == null ?
-              org.tensorflow.proto.framework.GraphDef.getDefaultInstance() : preOptimizationGraph_;
+              org.tensorflow.proto.GraphDef.getDefaultInstance() : preOptimizationGraph_;
         }
       }
       /**
        * .tensorflow.GraphDef pre_optimization_graph = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          org.tensorflow.proto.framework.GraphDef, org.tensorflow.proto.framework.GraphDef.Builder, org.tensorflow.proto.framework.GraphDefOrBuilder> 
+          org.tensorflow.proto.GraphDef, org.tensorflow.proto.GraphDef.Builder, org.tensorflow.proto.GraphDefOrBuilder> 
           getPreOptimizationGraphFieldBuilder() {
         if (preOptimizationGraphBuilder_ == null) {
           preOptimizationGraphBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              org.tensorflow.proto.framework.GraphDef, org.tensorflow.proto.framework.GraphDef.Builder, org.tensorflow.proto.framework.GraphDefOrBuilder>(
+              org.tensorflow.proto.GraphDef, org.tensorflow.proto.GraphDef.Builder, org.tensorflow.proto.GraphDefOrBuilder>(
                   getPreOptimizationGraph(),
                   getParentForChildren(),
                   isClean());
@@ -1269,21 +1148,23 @@ public org.tensorflow.proto.framework.GraphDefOrBuilder getPreOptimizationGraphO
         return preOptimizationGraphBuilder_;
       }
 
-      private org.tensorflow.proto.framework.GraphDef postOptimizationGraph_;
+      private org.tensorflow.proto.GraphDef postOptimizationGraph_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          org.tensorflow.proto.framework.GraphDef, org.tensorflow.proto.framework.GraphDef.Builder, org.tensorflow.proto.framework.GraphDefOrBuilder> postOptimizationGraphBuilder_;
+          org.tensorflow.proto.GraphDef, org.tensorflow.proto.GraphDef.Builder, org.tensorflow.proto.GraphDefOrBuilder> postOptimizationGraphBuilder_;
       /**
        * .tensorflow.GraphDef post_optimization_graph = 3;
+       * @return Whether the postOptimizationGraph field is set.
        */
       public boolean hasPostOptimizationGraph() {
         return postOptimizationGraphBuilder_ != null || postOptimizationGraph_ != null;
       }
       /**
        * .tensorflow.GraphDef post_optimization_graph = 3;
+       * @return The postOptimizationGraph.
        */
-      public org.tensorflow.proto.framework.GraphDef getPostOptimizationGraph() {
+      public org.tensorflow.proto.GraphDef getPostOptimizationGraph() {
         if (postOptimizationGraphBuilder_ == null) {
-          return postOptimizationGraph_ == null ? org.tensorflow.proto.framework.GraphDef.getDefaultInstance() : postOptimizationGraph_;
+          return postOptimizationGraph_ == null ? org.tensorflow.proto.GraphDef.getDefaultInstance() : postOptimizationGraph_;
         } else {
           return postOptimizationGraphBuilder_.getMessage();
         }
@@ -1291,7 +1172,7 @@ public org.tensorflow.proto.framework.GraphDef getPostOptimizationGraph() {
       /**
        * .tensorflow.GraphDef post_optimization_graph = 3;
        */
-      public Builder setPostOptimizationGraph(org.tensorflow.proto.framework.GraphDef value) {
+      public Builder setPostOptimizationGraph(org.tensorflow.proto.GraphDef value) {
         if (postOptimizationGraphBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -1308,7 +1189,7 @@ public Builder setPostOptimizationGraph(org.tensorflow.proto.framework.GraphDef
        * .tensorflow.GraphDef post_optimization_graph = 3;
        */
       public Builder setPostOptimizationGraph(
-          org.tensorflow.proto.framework.GraphDef.Builder builderForValue) {
+          org.tensorflow.proto.GraphDef.Builder builderForValue) {
         if (postOptimizationGraphBuilder_ == null) {
           postOptimizationGraph_ = builderForValue.build();
           onChanged();
@@ -1321,11 +1202,11 @@ public Builder setPostOptimizationGraph(
       /**
        * .tensorflow.GraphDef post_optimization_graph = 3;
        */
-      public Builder mergePostOptimizationGraph(org.tensorflow.proto.framework.GraphDef value) {
+      public Builder mergePostOptimizationGraph(org.tensorflow.proto.GraphDef value) {
         if (postOptimizationGraphBuilder_ == null) {
           if (postOptimizationGraph_ != null) {
             postOptimizationGraph_ =
-              org.tensorflow.proto.framework.GraphDef.newBuilder(postOptimizationGraph_).mergeFrom(value).buildPartial();
+              org.tensorflow.proto.GraphDef.newBuilder(postOptimizationGraph_).mergeFrom(value).buildPartial();
           } else {
             postOptimizationGraph_ = value;
           }
@@ -1353,7 +1234,7 @@ public Builder clearPostOptimizationGraph() {
       /**
        * .tensorflow.GraphDef post_optimization_graph = 3;
        */
-      public org.tensorflow.proto.framework.GraphDef.Builder getPostOptimizationGraphBuilder() {
+      public org.tensorflow.proto.GraphDef.Builder getPostOptimizationGraphBuilder() {
         
         onChanged();
         return getPostOptimizationGraphFieldBuilder().getBuilder();
@@ -1361,23 +1242,23 @@ public org.tensorflow.proto.framework.GraphDef.Builder getPostOptimizationGraphB
       /**
        * .tensorflow.GraphDef post_optimization_graph = 3;
        */
-      public org.tensorflow.proto.framework.GraphDefOrBuilder getPostOptimizationGraphOrBuilder() {
+      public org.tensorflow.proto.GraphDefOrBuilder getPostOptimizationGraphOrBuilder() {
         if (postOptimizationGraphBuilder_ != null) {
           return postOptimizationGraphBuilder_.getMessageOrBuilder();
         } else {
           return postOptimizationGraph_ == null ?
-              org.tensorflow.proto.framework.GraphDef.getDefaultInstance() : postOptimizationGraph_;
+              org.tensorflow.proto.GraphDef.getDefaultInstance() : postOptimizationGraph_;
         }
       }
       /**
        * .tensorflow.GraphDef post_optimization_graph = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          org.tensorflow.proto.framework.GraphDef, org.tensorflow.proto.framework.GraphDef.Builder, org.tensorflow.proto.framework.GraphDefOrBuilder> 
+          org.tensorflow.proto.GraphDef, org.tensorflow.proto.GraphDef.Builder, org.tensorflow.proto.GraphDefOrBuilder> 
           getPostOptimizationGraphFieldBuilder() {
         if (postOptimizationGraphBuilder_ == null) {
           postOptimizationGraphBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              org.tensorflow.proto.framework.GraphDef, org.tensorflow.proto.framework.GraphDef.Builder, org.tensorflow.proto.framework.GraphDefOrBuilder>(
+              org.tensorflow.proto.GraphDef, org.tensorflow.proto.GraphDef.Builder, org.tensorflow.proto.GraphDefOrBuilder>(
                   getPostOptimizationGraph(),
                   getParentForChildren(),
                   isClean());
@@ -1402,12 +1283,12 @@ public final Builder mergeUnknownFields(
     }
 
     // @@protoc_insertion_point(class_scope:tensorflow.RunMetadata.FunctionGraphs)
-    private static final org.tensorflow.proto.framework.RunMetadata.FunctionGraphs DEFAULT_INSTANCE;
+    private static final org.tensorflow.proto.RunMetadata.FunctionGraphs DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE = new org.tensorflow.proto.framework.RunMetadata.FunctionGraphs();
+      DEFAULT_INSTANCE = new org.tensorflow.proto.RunMetadata.FunctionGraphs();
     }
 
-    public static org.tensorflow.proto.framework.RunMetadata.FunctionGraphs getDefaultInstance() {
+    public static org.tensorflow.proto.RunMetadata.FunctionGraphs getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
@@ -1418,7 +1299,18 @@ public FunctionGraphs parsePartialFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
-        return new FunctionGraphs(input, extensionRegistry);
+        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();
       }
     };
 
@@ -1432,14 +1324,14 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.RunMetadata.FunctionGraphs getDefaultInstanceForType() {
+    public org.tensorflow.proto.RunMetadata.FunctionGraphs getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
 
   }
 
   public static final int STEP_STATS_FIELD_NUMBER = 1;
-  private org.tensorflow.proto.framework.StepStats stepStats_;
+  private org.tensorflow.proto.StepStats stepStats_;
   /**
    * 
    * Statistics traced for this step. Populated if tracing is turned on via the
@@ -1448,7 +1340,9 @@ public org.tensorflow.proto.framework.RunMetadata.FunctionGraphs getDefaultInsta
    * 
* * .tensorflow.StepStats step_stats = 1; + * @return Whether the stepStats field is set. */ + @java.lang.Override public boolean hasStepStats() { return stepStats_ != null; } @@ -1460,9 +1354,11 @@ public boolean hasStepStats() { *
* * .tensorflow.StepStats step_stats = 1; + * @return The stepStats. */ - public org.tensorflow.proto.framework.StepStats getStepStats() { - return stepStats_ == null ? org.tensorflow.proto.framework.StepStats.getDefaultInstance() : stepStats_; + @java.lang.Override + public org.tensorflow.proto.StepStats getStepStats() { + return stepStats_ == null ? org.tensorflow.proto.StepStats.getDefaultInstance() : stepStats_; } /** *
@@ -1473,19 +1369,22 @@ public org.tensorflow.proto.framework.StepStats getStepStats() {
    *
    * .tensorflow.StepStats step_stats = 1;
    */
-  public org.tensorflow.proto.framework.StepStatsOrBuilder getStepStatsOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.StepStatsOrBuilder getStepStatsOrBuilder() {
     return getStepStats();
   }
 
   public static final int COST_GRAPH_FIELD_NUMBER = 2;
-  private org.tensorflow.proto.framework.CostGraphDef costGraph_;
+  private org.tensorflow.proto.CostGraphDef costGraph_;
   /**
    * 
    * The cost graph for the computation defined by the run call.
    * 
* * .tensorflow.CostGraphDef cost_graph = 2; + * @return Whether the costGraph field is set. */ + @java.lang.Override public boolean hasCostGraph() { return costGraph_ != null; } @@ -1495,9 +1394,11 @@ public boolean hasCostGraph() { *
* * .tensorflow.CostGraphDef cost_graph = 2; + * @return The costGraph. */ - public org.tensorflow.proto.framework.CostGraphDef getCostGraph() { - return costGraph_ == null ? org.tensorflow.proto.framework.CostGraphDef.getDefaultInstance() : costGraph_; + @java.lang.Override + public org.tensorflow.proto.CostGraphDef getCostGraph() { + return costGraph_ == null ? org.tensorflow.proto.CostGraphDef.getDefaultInstance() : costGraph_; } /** *
@@ -1506,12 +1407,13 @@ public org.tensorflow.proto.framework.CostGraphDef getCostGraph() {
    *
    * .tensorflow.CostGraphDef cost_graph = 2;
    */
-  public org.tensorflow.proto.framework.CostGraphDefOrBuilder getCostGraphOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.CostGraphDefOrBuilder getCostGraphOrBuilder() {
     return getCostGraph();
   }
 
   public static final int PARTITION_GRAPHS_FIELD_NUMBER = 3;
-  private java.util.List partitionGraphs_;
+  private java.util.List partitionGraphs_;
   /**
    * 
    * Graphs of the partitions executed by executors.
@@ -1519,7 +1421,8 @@ public org.tensorflow.proto.framework.CostGraphDefOrBuilder getCostGraphOrBuilde
    *
    * repeated .tensorflow.GraphDef partition_graphs = 3;
    */
-  public java.util.List getPartitionGraphsList() {
+  @java.lang.Override
+  public java.util.List getPartitionGraphsList() {
     return partitionGraphs_;
   }
   /**
@@ -1529,7 +1432,8 @@ public java.util.List getPartitionGraph
    *
    * repeated .tensorflow.GraphDef partition_graphs = 3;
    */
-  public java.util.List 
+  @java.lang.Override
+  public java.util.List 
       getPartitionGraphsOrBuilderList() {
     return partitionGraphs_;
   }
@@ -1540,6 +1444,7 @@ public java.util.List getPartitionGraph
    *
    * repeated .tensorflow.GraphDef partition_graphs = 3;
    */
+  @java.lang.Override
   public int getPartitionGraphsCount() {
     return partitionGraphs_.size();
   }
@@ -1550,7 +1455,8 @@ public int getPartitionGraphsCount() {
    *
    * repeated .tensorflow.GraphDef partition_graphs = 3;
    */
-  public org.tensorflow.proto.framework.GraphDef getPartitionGraphs(int index) {
+  @java.lang.Override
+  public org.tensorflow.proto.GraphDef getPartitionGraphs(int index) {
     return partitionGraphs_.get(index);
   }
   /**
@@ -1560,13 +1466,14 @@ public org.tensorflow.proto.framework.GraphDef getPartitionGraphs(int index) {
    *
    * repeated .tensorflow.GraphDef partition_graphs = 3;
    */
-  public org.tensorflow.proto.framework.GraphDefOrBuilder getPartitionGraphsOrBuilder(
+  @java.lang.Override
+  public org.tensorflow.proto.GraphDefOrBuilder getPartitionGraphsOrBuilder(
       int index) {
     return partitionGraphs_.get(index);
   }
 
   public static final int FUNCTION_GRAPHS_FIELD_NUMBER = 4;
-  private java.util.List functionGraphs_;
+  private java.util.List functionGraphs_;
   /**
    * 
    * This is only populated for graphs that are run as functions in TensorFlow
@@ -1583,7 +1490,8 @@ public org.tensorflow.proto.framework.GraphDefOrBuilder getPartitionGraphsOrBuil
    *
    * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
    */
-  public java.util.List getFunctionGraphsList() {
+  @java.lang.Override
+  public java.util.List getFunctionGraphsList() {
     return functionGraphs_;
   }
   /**
@@ -1602,7 +1510,8 @@ public java.util.List
    *
    * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
    */
-  public java.util.List 
+  @java.lang.Override
+  public java.util.List 
       getFunctionGraphsOrBuilderList() {
     return functionGraphs_;
   }
@@ -1622,6 +1531,7 @@ public java.util.List
    *
    * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
    */
+  @java.lang.Override
   public int getFunctionGraphsCount() {
     return functionGraphs_.size();
   }
@@ -1641,7 +1551,8 @@ public int getFunctionGraphsCount() {
    *
    * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
    */
-  public org.tensorflow.proto.framework.RunMetadata.FunctionGraphs getFunctionGraphs(int index) {
+  @java.lang.Override
+  public org.tensorflow.proto.RunMetadata.FunctionGraphs getFunctionGraphs(int index) {
     return functionGraphs_.get(index);
   }
   /**
@@ -1660,20 +1571,23 @@ public org.tensorflow.proto.framework.RunMetadata.FunctionGraphs getFunctionGrap
    *
    * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
    */
-  public org.tensorflow.proto.framework.RunMetadata.FunctionGraphsOrBuilder getFunctionGraphsOrBuilder(
+  @java.lang.Override
+  public org.tensorflow.proto.RunMetadata.FunctionGraphsOrBuilder getFunctionGraphsOrBuilder(
       int index) {
     return functionGraphs_.get(index);
   }
 
   public static final int SESSION_METADATA_FIELD_NUMBER = 5;
-  private org.tensorflow.proto.framework.SessionMetadata sessionMetadata_;
+  private org.tensorflow.proto.SessionMetadata sessionMetadata_;
   /**
    * 
    * Metadata about the session.
    * 
* * .tensorflow.SessionMetadata session_metadata = 5; + * @return Whether the sessionMetadata field is set. */ + @java.lang.Override public boolean hasSessionMetadata() { return sessionMetadata_ != null; } @@ -1683,9 +1597,11 @@ public boolean hasSessionMetadata() { *
* * .tensorflow.SessionMetadata session_metadata = 5; + * @return The sessionMetadata. */ - public org.tensorflow.proto.framework.SessionMetadata getSessionMetadata() { - return sessionMetadata_ == null ? org.tensorflow.proto.framework.SessionMetadata.getDefaultInstance() : sessionMetadata_; + @java.lang.Override + public org.tensorflow.proto.SessionMetadata getSessionMetadata() { + return sessionMetadata_ == null ? org.tensorflow.proto.SessionMetadata.getDefaultInstance() : sessionMetadata_; } /** *
@@ -1694,7 +1610,8 @@ public org.tensorflow.proto.framework.SessionMetadata getSessionMetadata() {
    *
    * .tensorflow.SessionMetadata session_metadata = 5;
    */
-  public org.tensorflow.proto.framework.SessionMetadataOrBuilder getSessionMetadataOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.SessionMetadataOrBuilder getSessionMetadataOrBuilder() {
     return getSessionMetadata();
   }
 
@@ -1727,7 +1644,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (sessionMetadata_ != null) {
       output.writeMessage(5, getSessionMetadata());
     }
-    unknownFields.writeTo(output);
+    getUnknownFields().writeTo(output);
   }
 
   @java.lang.Override
@@ -1756,7 +1673,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
         .computeMessageSize(5, getSessionMetadata());
     }
-    size += unknownFields.getSerializedSize();
+    size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
     return size;
   }
@@ -1766,10 +1683,10 @@ public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
      return true;
     }
-    if (!(obj instanceof org.tensorflow.proto.framework.RunMetadata)) {
+    if (!(obj instanceof org.tensorflow.proto.RunMetadata)) {
       return super.equals(obj);
     }
-    org.tensorflow.proto.framework.RunMetadata other = (org.tensorflow.proto.framework.RunMetadata) obj;
+    org.tensorflow.proto.RunMetadata other = (org.tensorflow.proto.RunMetadata) obj;
 
     if (hasStepStats() != other.hasStepStats()) return false;
     if (hasStepStats()) {
@@ -1790,7 +1707,7 @@ public boolean equals(final java.lang.Object obj) {
       if (!getSessionMetadata()
           .equals(other.getSessionMetadata())) return false;
     }
-    if (!unknownFields.equals(other.unknownFields)) return false;
+    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
 
@@ -1821,74 +1738,74 @@ public int hashCode() {
       hash = (37 * hash) + SESSION_METADATA_FIELD_NUMBER;
       hash = (53 * hash) + getSessionMetadata().hashCode();
     }
-    hash = (29 * hash) + unknownFields.hashCode();
+    hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
     return hash;
   }
 
-  public static org.tensorflow.proto.framework.RunMetadata parseFrom(
+  public static org.tensorflow.proto.RunMetadata parseFrom(
       java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.RunMetadata parseFrom(
+  public static org.tensorflow.proto.RunMetadata parseFrom(
       java.nio.ByteBuffer data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.RunMetadata parseFrom(
+  public static org.tensorflow.proto.RunMetadata parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.RunMetadata parseFrom(
+  public static org.tensorflow.proto.RunMetadata parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.RunMetadata parseFrom(byte[] data)
+  public static org.tensorflow.proto.RunMetadata parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.RunMetadata parseFrom(
+  public static org.tensorflow.proto.RunMetadata parseFrom(
       byte[] data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.RunMetadata parseFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.RunMetadata parseFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.RunMetadata parseFrom(
+  public static org.tensorflow.proto.RunMetadata 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 org.tensorflow.proto.framework.RunMetadata parseDelimitedFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.RunMetadata parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.RunMetadata parseDelimitedFrom(
+  public static org.tensorflow.proto.RunMetadata 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 org.tensorflow.proto.framework.RunMetadata parseFrom(
+  public static org.tensorflow.proto.RunMetadata parseFrom(
       com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.RunMetadata parseFrom(
+  public static org.tensorflow.proto.RunMetadata parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
@@ -1901,7 +1818,7 @@ public static org.tensorflow.proto.framework.RunMetadata parseFrom(
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(org.tensorflow.proto.framework.RunMetadata prototype) {
+  public static Builder newBuilder(org.tensorflow.proto.RunMetadata prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
   @java.lang.Override
@@ -1926,36 +1843,29 @@ protected Builder newBuilderForType(
   public static final class Builder extends
       com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:tensorflow.RunMetadata)
-      org.tensorflow.proto.framework.RunMetadataOrBuilder {
+      org.tensorflow.proto.RunMetadataOrBuilder {
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunMetadata_descriptor;
+      return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunMetadata_fieldAccessorTable
+      return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              org.tensorflow.proto.framework.RunMetadata.class, org.tensorflow.proto.framework.RunMetadata.Builder.class);
+              org.tensorflow.proto.RunMetadata.class, org.tensorflow.proto.RunMetadata.Builder.class);
     }
 
-    // Construct using org.tensorflow.proto.framework.RunMetadata.newBuilder()
+    // Construct using org.tensorflow.proto.RunMetadata.newBuilder()
     private Builder() {
-      maybeForceBuilderInitialization();
+
     }
 
     private Builder(
         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-      maybeForceBuilderInitialization();
-    }
-    private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-        getPartitionGraphsFieldBuilder();
-        getFunctionGraphsFieldBuilder();
-      }
+
     }
     @java.lang.Override
     public Builder clear() {
@@ -1974,16 +1884,18 @@ public Builder clear() {
       }
       if (partitionGraphsBuilder_ == null) {
         partitionGraphs_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000001);
       } else {
+        partitionGraphs_ = null;
         partitionGraphsBuilder_.clear();
       }
+      bitField0_ = (bitField0_ & ~0x00000001);
       if (functionGraphsBuilder_ == null) {
         functionGraphs_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000002);
       } else {
+        functionGraphs_ = null;
         functionGraphsBuilder_.clear();
       }
+      bitField0_ = (bitField0_ & ~0x00000002);
       if (sessionMetadataBuilder_ == null) {
         sessionMetadata_ = null;
       } else {
@@ -1996,17 +1908,17 @@ public Builder clear() {
     @java.lang.Override
     public com.google.protobuf.Descriptors.Descriptor
         getDescriptorForType() {
-      return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_RunMetadata_descriptor;
+      return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunMetadata_descriptor;
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.RunMetadata getDefaultInstanceForType() {
-      return org.tensorflow.proto.framework.RunMetadata.getDefaultInstance();
+    public org.tensorflow.proto.RunMetadata getDefaultInstanceForType() {
+      return org.tensorflow.proto.RunMetadata.getDefaultInstance();
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.RunMetadata build() {
-      org.tensorflow.proto.framework.RunMetadata result = buildPartial();
+    public org.tensorflow.proto.RunMetadata build() {
+      org.tensorflow.proto.RunMetadata result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -2014,8 +1926,8 @@ public org.tensorflow.proto.framework.RunMetadata build() {
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.RunMetadata buildPartial() {
-      org.tensorflow.proto.framework.RunMetadata result = new org.tensorflow.proto.framework.RunMetadata(this);
+    public org.tensorflow.proto.RunMetadata buildPartial() {
+      org.tensorflow.proto.RunMetadata result = new org.tensorflow.proto.RunMetadata(this);
       int from_bitField0_ = bitField0_;
       if (stepStatsBuilder_ == null) {
         result.stepStats_ = stepStats_;
@@ -2088,16 +2000,16 @@ public Builder addRepeatedField(
     }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof org.tensorflow.proto.framework.RunMetadata) {
-        return mergeFrom((org.tensorflow.proto.framework.RunMetadata)other);
+      if (other instanceof org.tensorflow.proto.RunMetadata) {
+        return mergeFrom((org.tensorflow.proto.RunMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(org.tensorflow.proto.framework.RunMetadata other) {
-      if (other == org.tensorflow.proto.framework.RunMetadata.getDefaultInstance()) return this;
+    public Builder mergeFrom(org.tensorflow.proto.RunMetadata other) {
+      if (other == org.tensorflow.proto.RunMetadata.getDefaultInstance()) return this;
       if (other.hasStepStats()) {
         mergeStepStats(other.getStepStats());
       }
@@ -2159,7 +2071,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.RunMetadata other) {
       if (other.hasSessionMetadata()) {
         mergeSessionMetadata(other.getSessionMetadata());
       }
-      this.mergeUnknownFields(other.unknownFields);
+      this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
     }
@@ -2174,24 +2086,84 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      org.tensorflow.proto.framework.RunMetadata parsedMessage = null;
+      if (extensionRegistry == null) {
+        throw new java.lang.NullPointerException();
+      }
       try {
-        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+        boolean done = false;
+        while (!done) {
+          int tag = input.readTag();
+          switch (tag) {
+            case 0:
+              done = true;
+              break;
+            case 10: {
+              input.readMessage(
+                  getStepStatsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getCostGraphFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 18
+            case 26: {
+              org.tensorflow.proto.GraphDef m =
+                  input.readMessage(
+                      org.tensorflow.proto.GraphDef.parser(),
+                      extensionRegistry);
+              if (partitionGraphsBuilder_ == null) {
+                ensurePartitionGraphsIsMutable();
+                partitionGraphs_.add(m);
+              } else {
+                partitionGraphsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            case 34: {
+              org.tensorflow.proto.RunMetadata.FunctionGraphs m =
+                  input.readMessage(
+                      org.tensorflow.proto.RunMetadata.FunctionGraphs.parser(),
+                      extensionRegistry);
+              if (functionGraphsBuilder_ == null) {
+                ensureFunctionGraphsIsMutable();
+                functionGraphs_.add(m);
+              } else {
+                functionGraphsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getSessionMetadataFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 42
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
+          } // switch (tag)
+        } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (org.tensorflow.proto.framework.RunMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
-        if (parsedMessage != null) {
-          mergeFrom(parsedMessage);
-        }
-      }
+        onChanged();
+      } // finally
       return this;
     }
     private int bitField0_;
 
-    private org.tensorflow.proto.framework.StepStats stepStats_;
+    private org.tensorflow.proto.StepStats stepStats_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        org.tensorflow.proto.framework.StepStats, org.tensorflow.proto.framework.StepStats.Builder, org.tensorflow.proto.framework.StepStatsOrBuilder> stepStatsBuilder_;
+        org.tensorflow.proto.StepStats, org.tensorflow.proto.StepStats.Builder, org.tensorflow.proto.StepStatsOrBuilder> stepStatsBuilder_;
     /**
      * 
      * Statistics traced for this step. Populated if tracing is turned on via the
@@ -2200,6 +2172,7 @@ public Builder mergeFrom(
      * 
* * .tensorflow.StepStats step_stats = 1; + * @return Whether the stepStats field is set. */ public boolean hasStepStats() { return stepStatsBuilder_ != null || stepStats_ != null; @@ -2212,10 +2185,11 @@ public boolean hasStepStats() { *
* * .tensorflow.StepStats step_stats = 1; + * @return The stepStats. */ - public org.tensorflow.proto.framework.StepStats getStepStats() { + public org.tensorflow.proto.StepStats getStepStats() { if (stepStatsBuilder_ == null) { - return stepStats_ == null ? org.tensorflow.proto.framework.StepStats.getDefaultInstance() : stepStats_; + return stepStats_ == null ? org.tensorflow.proto.StepStats.getDefaultInstance() : stepStats_; } else { return stepStatsBuilder_.getMessage(); } @@ -2229,7 +2203,7 @@ public org.tensorflow.proto.framework.StepStats getStepStats() { * * .tensorflow.StepStats step_stats = 1; */ - public Builder setStepStats(org.tensorflow.proto.framework.StepStats value) { + public Builder setStepStats(org.tensorflow.proto.StepStats value) { if (stepStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2252,7 +2226,7 @@ public Builder setStepStats(org.tensorflow.proto.framework.StepStats value) { * .tensorflow.StepStats step_stats = 1; */ public Builder setStepStats( - org.tensorflow.proto.framework.StepStats.Builder builderForValue) { + org.tensorflow.proto.StepStats.Builder builderForValue) { if (stepStatsBuilder_ == null) { stepStats_ = builderForValue.build(); onChanged(); @@ -2271,11 +2245,11 @@ public Builder setStepStats( * * .tensorflow.StepStats step_stats = 1; */ - public Builder mergeStepStats(org.tensorflow.proto.framework.StepStats value) { + public Builder mergeStepStats(org.tensorflow.proto.StepStats value) { if (stepStatsBuilder_ == null) { if (stepStats_ != null) { stepStats_ = - org.tensorflow.proto.framework.StepStats.newBuilder(stepStats_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.StepStats.newBuilder(stepStats_).mergeFrom(value).buildPartial(); } else { stepStats_ = value; } @@ -2315,7 +2289,7 @@ public Builder clearStepStats() { * * .tensorflow.StepStats step_stats = 1; */ - public org.tensorflow.proto.framework.StepStats.Builder getStepStatsBuilder() { + public org.tensorflow.proto.StepStats.Builder getStepStatsBuilder() { onChanged(); return getStepStatsFieldBuilder().getBuilder(); @@ -2329,12 +2303,12 @@ public org.tensorflow.proto.framework.StepStats.Builder getStepStatsBuilder() { * * .tensorflow.StepStats step_stats = 1; */ - public org.tensorflow.proto.framework.StepStatsOrBuilder getStepStatsOrBuilder() { + public org.tensorflow.proto.StepStatsOrBuilder getStepStatsOrBuilder() { if (stepStatsBuilder_ != null) { return stepStatsBuilder_.getMessageOrBuilder(); } else { return stepStats_ == null ? - org.tensorflow.proto.framework.StepStats.getDefaultInstance() : stepStats_; + org.tensorflow.proto.StepStats.getDefaultInstance() : stepStats_; } } /** @@ -2347,11 +2321,11 @@ public org.tensorflow.proto.framework.StepStatsOrBuilder getStepStatsOrBuilder() * .tensorflow.StepStats step_stats = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.StepStats, org.tensorflow.proto.framework.StepStats.Builder, org.tensorflow.proto.framework.StepStatsOrBuilder> + org.tensorflow.proto.StepStats, org.tensorflow.proto.StepStats.Builder, org.tensorflow.proto.StepStatsOrBuilder> getStepStatsFieldBuilder() { if (stepStatsBuilder_ == null) { stepStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.StepStats, org.tensorflow.proto.framework.StepStats.Builder, org.tensorflow.proto.framework.StepStatsOrBuilder>( + org.tensorflow.proto.StepStats, org.tensorflow.proto.StepStats.Builder, org.tensorflow.proto.StepStatsOrBuilder>( getStepStats(), getParentForChildren(), isClean()); @@ -2360,15 +2334,16 @@ public org.tensorflow.proto.framework.StepStatsOrBuilder getStepStatsOrBuilder() return stepStatsBuilder_; } - private org.tensorflow.proto.framework.CostGraphDef costGraph_; + private org.tensorflow.proto.CostGraphDef costGraph_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CostGraphDef, org.tensorflow.proto.framework.CostGraphDef.Builder, org.tensorflow.proto.framework.CostGraphDefOrBuilder> costGraphBuilder_; + org.tensorflow.proto.CostGraphDef, org.tensorflow.proto.CostGraphDef.Builder, org.tensorflow.proto.CostGraphDefOrBuilder> costGraphBuilder_; /** *
      * The cost graph for the computation defined by the run call.
      * 
* * .tensorflow.CostGraphDef cost_graph = 2; + * @return Whether the costGraph field is set. */ public boolean hasCostGraph() { return costGraphBuilder_ != null || costGraph_ != null; @@ -2379,10 +2354,11 @@ public boolean hasCostGraph() { *
* * .tensorflow.CostGraphDef cost_graph = 2; + * @return The costGraph. */ - public org.tensorflow.proto.framework.CostGraphDef getCostGraph() { + public org.tensorflow.proto.CostGraphDef getCostGraph() { if (costGraphBuilder_ == null) { - return costGraph_ == null ? org.tensorflow.proto.framework.CostGraphDef.getDefaultInstance() : costGraph_; + return costGraph_ == null ? org.tensorflow.proto.CostGraphDef.getDefaultInstance() : costGraph_; } else { return costGraphBuilder_.getMessage(); } @@ -2394,7 +2370,7 @@ public org.tensorflow.proto.framework.CostGraphDef getCostGraph() { * * .tensorflow.CostGraphDef cost_graph = 2; */ - public Builder setCostGraph(org.tensorflow.proto.framework.CostGraphDef value) { + public Builder setCostGraph(org.tensorflow.proto.CostGraphDef value) { if (costGraphBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2415,7 +2391,7 @@ public Builder setCostGraph(org.tensorflow.proto.framework.CostGraphDef value) { * .tensorflow.CostGraphDef cost_graph = 2; */ public Builder setCostGraph( - org.tensorflow.proto.framework.CostGraphDef.Builder builderForValue) { + org.tensorflow.proto.CostGraphDef.Builder builderForValue) { if (costGraphBuilder_ == null) { costGraph_ = builderForValue.build(); onChanged(); @@ -2432,11 +2408,11 @@ public Builder setCostGraph( * * .tensorflow.CostGraphDef cost_graph = 2; */ - public Builder mergeCostGraph(org.tensorflow.proto.framework.CostGraphDef value) { + public Builder mergeCostGraph(org.tensorflow.proto.CostGraphDef value) { if (costGraphBuilder_ == null) { if (costGraph_ != null) { costGraph_ = - org.tensorflow.proto.framework.CostGraphDef.newBuilder(costGraph_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.CostGraphDef.newBuilder(costGraph_).mergeFrom(value).buildPartial(); } else { costGraph_ = value; } @@ -2472,7 +2448,7 @@ public Builder clearCostGraph() { * * .tensorflow.CostGraphDef cost_graph = 2; */ - public org.tensorflow.proto.framework.CostGraphDef.Builder getCostGraphBuilder() { + public org.tensorflow.proto.CostGraphDef.Builder getCostGraphBuilder() { onChanged(); return getCostGraphFieldBuilder().getBuilder(); @@ -2484,12 +2460,12 @@ public org.tensorflow.proto.framework.CostGraphDef.Builder getCostGraphBuilder() * * .tensorflow.CostGraphDef cost_graph = 2; */ - public org.tensorflow.proto.framework.CostGraphDefOrBuilder getCostGraphOrBuilder() { + public org.tensorflow.proto.CostGraphDefOrBuilder getCostGraphOrBuilder() { if (costGraphBuilder_ != null) { return costGraphBuilder_.getMessageOrBuilder(); } else { return costGraph_ == null ? - org.tensorflow.proto.framework.CostGraphDef.getDefaultInstance() : costGraph_; + org.tensorflow.proto.CostGraphDef.getDefaultInstance() : costGraph_; } } /** @@ -2500,11 +2476,11 @@ public org.tensorflow.proto.framework.CostGraphDefOrBuilder getCostGraphOrBuilde * .tensorflow.CostGraphDef cost_graph = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CostGraphDef, org.tensorflow.proto.framework.CostGraphDef.Builder, org.tensorflow.proto.framework.CostGraphDefOrBuilder> + org.tensorflow.proto.CostGraphDef, org.tensorflow.proto.CostGraphDef.Builder, org.tensorflow.proto.CostGraphDefOrBuilder> getCostGraphFieldBuilder() { if (costGraphBuilder_ == null) { costGraphBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.CostGraphDef, org.tensorflow.proto.framework.CostGraphDef.Builder, org.tensorflow.proto.framework.CostGraphDefOrBuilder>( + org.tensorflow.proto.CostGraphDef, org.tensorflow.proto.CostGraphDef.Builder, org.tensorflow.proto.CostGraphDefOrBuilder>( getCostGraph(), getParentForChildren(), isClean()); @@ -2513,17 +2489,17 @@ public org.tensorflow.proto.framework.CostGraphDefOrBuilder getCostGraphOrBuilde return costGraphBuilder_; } - private java.util.List partitionGraphs_ = + private java.util.List partitionGraphs_ = java.util.Collections.emptyList(); private void ensurePartitionGraphsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - partitionGraphs_ = new java.util.ArrayList(partitionGraphs_); + partitionGraphs_ = new java.util.ArrayList(partitionGraphs_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.GraphDef, org.tensorflow.proto.framework.GraphDef.Builder, org.tensorflow.proto.framework.GraphDefOrBuilder> partitionGraphsBuilder_; + org.tensorflow.proto.GraphDef, org.tensorflow.proto.GraphDef.Builder, org.tensorflow.proto.GraphDefOrBuilder> partitionGraphsBuilder_; /** *
@@ -2532,7 +2508,7 @@ private void ensurePartitionGraphsIsMutable() {
      *
      * repeated .tensorflow.GraphDef partition_graphs = 3;
      */
-    public java.util.List getPartitionGraphsList() {
+    public java.util.List getPartitionGraphsList() {
       if (partitionGraphsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(partitionGraphs_);
       } else {
@@ -2560,7 +2536,7 @@ public int getPartitionGraphsCount() {
      *
      * repeated .tensorflow.GraphDef partition_graphs = 3;
      */
-    public org.tensorflow.proto.framework.GraphDef getPartitionGraphs(int index) {
+    public org.tensorflow.proto.GraphDef getPartitionGraphs(int index) {
       if (partitionGraphsBuilder_ == null) {
         return partitionGraphs_.get(index);
       } else {
@@ -2575,7 +2551,7 @@ public org.tensorflow.proto.framework.GraphDef getPartitionGraphs(int index) {
      * repeated .tensorflow.GraphDef partition_graphs = 3;
      */
     public Builder setPartitionGraphs(
-        int index, org.tensorflow.proto.framework.GraphDef value) {
+        int index, org.tensorflow.proto.GraphDef value) {
       if (partitionGraphsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2596,7 +2572,7 @@ public Builder setPartitionGraphs(
      * repeated .tensorflow.GraphDef partition_graphs = 3;
      */
     public Builder setPartitionGraphs(
-        int index, org.tensorflow.proto.framework.GraphDef.Builder builderForValue) {
+        int index, org.tensorflow.proto.GraphDef.Builder builderForValue) {
       if (partitionGraphsBuilder_ == null) {
         ensurePartitionGraphsIsMutable();
         partitionGraphs_.set(index, builderForValue.build());
@@ -2613,7 +2589,7 @@ public Builder setPartitionGraphs(
      *
      * repeated .tensorflow.GraphDef partition_graphs = 3;
      */
-    public Builder addPartitionGraphs(org.tensorflow.proto.framework.GraphDef value) {
+    public Builder addPartitionGraphs(org.tensorflow.proto.GraphDef value) {
       if (partitionGraphsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2634,7 +2610,7 @@ public Builder addPartitionGraphs(org.tensorflow.proto.framework.GraphDef value)
      * repeated .tensorflow.GraphDef partition_graphs = 3;
      */
     public Builder addPartitionGraphs(
-        int index, org.tensorflow.proto.framework.GraphDef value) {
+        int index, org.tensorflow.proto.GraphDef value) {
       if (partitionGraphsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2655,7 +2631,7 @@ public Builder addPartitionGraphs(
      * repeated .tensorflow.GraphDef partition_graphs = 3;
      */
     public Builder addPartitionGraphs(
-        org.tensorflow.proto.framework.GraphDef.Builder builderForValue) {
+        org.tensorflow.proto.GraphDef.Builder builderForValue) {
       if (partitionGraphsBuilder_ == null) {
         ensurePartitionGraphsIsMutable();
         partitionGraphs_.add(builderForValue.build());
@@ -2673,7 +2649,7 @@ public Builder addPartitionGraphs(
      * repeated .tensorflow.GraphDef partition_graphs = 3;
      */
     public Builder addPartitionGraphs(
-        int index, org.tensorflow.proto.framework.GraphDef.Builder builderForValue) {
+        int index, org.tensorflow.proto.GraphDef.Builder builderForValue) {
       if (partitionGraphsBuilder_ == null) {
         ensurePartitionGraphsIsMutable();
         partitionGraphs_.add(index, builderForValue.build());
@@ -2691,7 +2667,7 @@ public Builder addPartitionGraphs(
      * repeated .tensorflow.GraphDef partition_graphs = 3;
      */
     public Builder addAllPartitionGraphs(
-        java.lang.Iterable values) {
+        java.lang.Iterable values) {
       if (partitionGraphsBuilder_ == null) {
         ensurePartitionGraphsIsMutable();
         com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -2743,7 +2719,7 @@ public Builder removePartitionGraphs(int index) {
      *
      * repeated .tensorflow.GraphDef partition_graphs = 3;
      */
-    public org.tensorflow.proto.framework.GraphDef.Builder getPartitionGraphsBuilder(
+    public org.tensorflow.proto.GraphDef.Builder getPartitionGraphsBuilder(
         int index) {
       return getPartitionGraphsFieldBuilder().getBuilder(index);
     }
@@ -2754,7 +2730,7 @@ public org.tensorflow.proto.framework.GraphDef.Builder getPartitionGraphsBuilder
      *
      * repeated .tensorflow.GraphDef partition_graphs = 3;
      */
-    public org.tensorflow.proto.framework.GraphDefOrBuilder getPartitionGraphsOrBuilder(
+    public org.tensorflow.proto.GraphDefOrBuilder getPartitionGraphsOrBuilder(
         int index) {
       if (partitionGraphsBuilder_ == null) {
         return partitionGraphs_.get(index);  } else {
@@ -2768,7 +2744,7 @@ public org.tensorflow.proto.framework.GraphDefOrBuilder getPartitionGraphsOrBuil
      *
      * repeated .tensorflow.GraphDef partition_graphs = 3;
      */
-    public java.util.List 
+    public java.util.List 
          getPartitionGraphsOrBuilderList() {
       if (partitionGraphsBuilder_ != null) {
         return partitionGraphsBuilder_.getMessageOrBuilderList();
@@ -2783,9 +2759,9 @@ public org.tensorflow.proto.framework.GraphDefOrBuilder getPartitionGraphsOrBuil
      *
      * repeated .tensorflow.GraphDef partition_graphs = 3;
      */
-    public org.tensorflow.proto.framework.GraphDef.Builder addPartitionGraphsBuilder() {
+    public org.tensorflow.proto.GraphDef.Builder addPartitionGraphsBuilder() {
       return getPartitionGraphsFieldBuilder().addBuilder(
-          org.tensorflow.proto.framework.GraphDef.getDefaultInstance());
+          org.tensorflow.proto.GraphDef.getDefaultInstance());
     }
     /**
      * 
@@ -2794,10 +2770,10 @@ public org.tensorflow.proto.framework.GraphDef.Builder addPartitionGraphsBuilder
      *
      * repeated .tensorflow.GraphDef partition_graphs = 3;
      */
-    public org.tensorflow.proto.framework.GraphDef.Builder addPartitionGraphsBuilder(
+    public org.tensorflow.proto.GraphDef.Builder addPartitionGraphsBuilder(
         int index) {
       return getPartitionGraphsFieldBuilder().addBuilder(
-          index, org.tensorflow.proto.framework.GraphDef.getDefaultInstance());
+          index, org.tensorflow.proto.GraphDef.getDefaultInstance());
     }
     /**
      * 
@@ -2806,16 +2782,16 @@ public org.tensorflow.proto.framework.GraphDef.Builder addPartitionGraphsBuilder
      *
      * repeated .tensorflow.GraphDef partition_graphs = 3;
      */
-    public java.util.List 
+    public java.util.List 
          getPartitionGraphsBuilderList() {
       return getPartitionGraphsFieldBuilder().getBuilderList();
     }
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        org.tensorflow.proto.framework.GraphDef, org.tensorflow.proto.framework.GraphDef.Builder, org.tensorflow.proto.framework.GraphDefOrBuilder> 
+        org.tensorflow.proto.GraphDef, org.tensorflow.proto.GraphDef.Builder, org.tensorflow.proto.GraphDefOrBuilder> 
         getPartitionGraphsFieldBuilder() {
       if (partitionGraphsBuilder_ == null) {
         partitionGraphsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            org.tensorflow.proto.framework.GraphDef, org.tensorflow.proto.framework.GraphDef.Builder, org.tensorflow.proto.framework.GraphDefOrBuilder>(
+            org.tensorflow.proto.GraphDef, org.tensorflow.proto.GraphDef.Builder, org.tensorflow.proto.GraphDefOrBuilder>(
                 partitionGraphs_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -2825,17 +2801,17 @@ public org.tensorflow.proto.framework.GraphDef.Builder addPartitionGraphsBuilder
       return partitionGraphsBuilder_;
     }
 
-    private java.util.List functionGraphs_ =
+    private java.util.List functionGraphs_ =
       java.util.Collections.emptyList();
     private void ensureFunctionGraphsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        functionGraphs_ = new java.util.ArrayList(functionGraphs_);
+        functionGraphs_ = new java.util.ArrayList(functionGraphs_);
         bitField0_ |= 0x00000002;
        }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        org.tensorflow.proto.framework.RunMetadata.FunctionGraphs, org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.Builder, org.tensorflow.proto.framework.RunMetadata.FunctionGraphsOrBuilder> functionGraphsBuilder_;
+        org.tensorflow.proto.RunMetadata.FunctionGraphs, org.tensorflow.proto.RunMetadata.FunctionGraphs.Builder, org.tensorflow.proto.RunMetadata.FunctionGraphsOrBuilder> functionGraphsBuilder_;
 
     /**
      * 
@@ -2853,7 +2829,7 @@ private void ensureFunctionGraphsIsMutable() {
      *
      * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
      */
-    public java.util.List getFunctionGraphsList() {
+    public java.util.List getFunctionGraphsList() {
       if (functionGraphsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(functionGraphs_);
       } else {
@@ -2899,7 +2875,7 @@ public int getFunctionGraphsCount() {
      *
      * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
      */
-    public org.tensorflow.proto.framework.RunMetadata.FunctionGraphs getFunctionGraphs(int index) {
+    public org.tensorflow.proto.RunMetadata.FunctionGraphs getFunctionGraphs(int index) {
       if (functionGraphsBuilder_ == null) {
         return functionGraphs_.get(index);
       } else {
@@ -2923,7 +2899,7 @@ public org.tensorflow.proto.framework.RunMetadata.FunctionGraphs getFunctionGrap
      * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
      */
     public Builder setFunctionGraphs(
-        int index, org.tensorflow.proto.framework.RunMetadata.FunctionGraphs value) {
+        int index, org.tensorflow.proto.RunMetadata.FunctionGraphs value) {
       if (functionGraphsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2953,7 +2929,7 @@ public Builder setFunctionGraphs(
      * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
      */
     public Builder setFunctionGraphs(
-        int index, org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.Builder builderForValue) {
+        int index, org.tensorflow.proto.RunMetadata.FunctionGraphs.Builder builderForValue) {
       if (functionGraphsBuilder_ == null) {
         ensureFunctionGraphsIsMutable();
         functionGraphs_.set(index, builderForValue.build());
@@ -2979,7 +2955,7 @@ public Builder setFunctionGraphs(
      *
      * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
      */
-    public Builder addFunctionGraphs(org.tensorflow.proto.framework.RunMetadata.FunctionGraphs value) {
+    public Builder addFunctionGraphs(org.tensorflow.proto.RunMetadata.FunctionGraphs value) {
       if (functionGraphsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3009,7 +2985,7 @@ public Builder addFunctionGraphs(org.tensorflow.proto.framework.RunMetadata.Func
      * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
      */
     public Builder addFunctionGraphs(
-        int index, org.tensorflow.proto.framework.RunMetadata.FunctionGraphs value) {
+        int index, org.tensorflow.proto.RunMetadata.FunctionGraphs value) {
       if (functionGraphsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3039,7 +3015,7 @@ public Builder addFunctionGraphs(
      * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
      */
     public Builder addFunctionGraphs(
-        org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.Builder builderForValue) {
+        org.tensorflow.proto.RunMetadata.FunctionGraphs.Builder builderForValue) {
       if (functionGraphsBuilder_ == null) {
         ensureFunctionGraphsIsMutable();
         functionGraphs_.add(builderForValue.build());
@@ -3066,7 +3042,7 @@ public Builder addFunctionGraphs(
      * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
      */
     public Builder addFunctionGraphs(
-        int index, org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.Builder builderForValue) {
+        int index, org.tensorflow.proto.RunMetadata.FunctionGraphs.Builder builderForValue) {
       if (functionGraphsBuilder_ == null) {
         ensureFunctionGraphsIsMutable();
         functionGraphs_.add(index, builderForValue.build());
@@ -3093,7 +3069,7 @@ public Builder addFunctionGraphs(
      * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
      */
     public Builder addAllFunctionGraphs(
-        java.lang.Iterable values) {
+        java.lang.Iterable values) {
       if (functionGraphsBuilder_ == null) {
         ensureFunctionGraphsIsMutable();
         com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -3172,7 +3148,7 @@ public Builder removeFunctionGraphs(int index) {
      *
      * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
      */
-    public org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.Builder getFunctionGraphsBuilder(
+    public org.tensorflow.proto.RunMetadata.FunctionGraphs.Builder getFunctionGraphsBuilder(
         int index) {
       return getFunctionGraphsFieldBuilder().getBuilder(index);
     }
@@ -3192,7 +3168,7 @@ public org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.Builder getFunc
      *
      * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
      */
-    public org.tensorflow.proto.framework.RunMetadata.FunctionGraphsOrBuilder getFunctionGraphsOrBuilder(
+    public org.tensorflow.proto.RunMetadata.FunctionGraphsOrBuilder getFunctionGraphsOrBuilder(
         int index) {
       if (functionGraphsBuilder_ == null) {
         return functionGraphs_.get(index);  } else {
@@ -3215,7 +3191,7 @@ public org.tensorflow.proto.framework.RunMetadata.FunctionGraphsOrBuilder getFun
      *
      * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
      */
-    public java.util.List 
+    public java.util.List 
          getFunctionGraphsOrBuilderList() {
       if (functionGraphsBuilder_ != null) {
         return functionGraphsBuilder_.getMessageOrBuilderList();
@@ -3239,9 +3215,9 @@ public org.tensorflow.proto.framework.RunMetadata.FunctionGraphsOrBuilder getFun
      *
      * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
      */
-    public org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.Builder addFunctionGraphsBuilder() {
+    public org.tensorflow.proto.RunMetadata.FunctionGraphs.Builder addFunctionGraphsBuilder() {
       return getFunctionGraphsFieldBuilder().addBuilder(
-          org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.getDefaultInstance());
+          org.tensorflow.proto.RunMetadata.FunctionGraphs.getDefaultInstance());
     }
     /**
      * 
@@ -3259,10 +3235,10 @@ public org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.Builder addFunc
      *
      * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
      */
-    public org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.Builder addFunctionGraphsBuilder(
+    public org.tensorflow.proto.RunMetadata.FunctionGraphs.Builder addFunctionGraphsBuilder(
         int index) {
       return getFunctionGraphsFieldBuilder().addBuilder(
-          index, org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.getDefaultInstance());
+          index, org.tensorflow.proto.RunMetadata.FunctionGraphs.getDefaultInstance());
     }
     /**
      * 
@@ -3280,16 +3256,16 @@ public org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.Builder addFunc
      *
      * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
      */
-    public java.util.List 
+    public java.util.List 
          getFunctionGraphsBuilderList() {
       return getFunctionGraphsFieldBuilder().getBuilderList();
     }
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        org.tensorflow.proto.framework.RunMetadata.FunctionGraphs, org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.Builder, org.tensorflow.proto.framework.RunMetadata.FunctionGraphsOrBuilder> 
+        org.tensorflow.proto.RunMetadata.FunctionGraphs, org.tensorflow.proto.RunMetadata.FunctionGraphs.Builder, org.tensorflow.proto.RunMetadata.FunctionGraphsOrBuilder> 
         getFunctionGraphsFieldBuilder() {
       if (functionGraphsBuilder_ == null) {
         functionGraphsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            org.tensorflow.proto.framework.RunMetadata.FunctionGraphs, org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.Builder, org.tensorflow.proto.framework.RunMetadata.FunctionGraphsOrBuilder>(
+            org.tensorflow.proto.RunMetadata.FunctionGraphs, org.tensorflow.proto.RunMetadata.FunctionGraphs.Builder, org.tensorflow.proto.RunMetadata.FunctionGraphsOrBuilder>(
                 functionGraphs_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -3299,15 +3275,16 @@ public org.tensorflow.proto.framework.RunMetadata.FunctionGraphs.Builder addFunc
       return functionGraphsBuilder_;
     }
 
-    private org.tensorflow.proto.framework.SessionMetadata sessionMetadata_;
+    private org.tensorflow.proto.SessionMetadata sessionMetadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        org.tensorflow.proto.framework.SessionMetadata, org.tensorflow.proto.framework.SessionMetadata.Builder, org.tensorflow.proto.framework.SessionMetadataOrBuilder> sessionMetadataBuilder_;
+        org.tensorflow.proto.SessionMetadata, org.tensorflow.proto.SessionMetadata.Builder, org.tensorflow.proto.SessionMetadataOrBuilder> sessionMetadataBuilder_;
     /**
      * 
      * Metadata about the session.
      * 
* * .tensorflow.SessionMetadata session_metadata = 5; + * @return Whether the sessionMetadata field is set. */ public boolean hasSessionMetadata() { return sessionMetadataBuilder_ != null || sessionMetadata_ != null; @@ -3318,10 +3295,11 @@ public boolean hasSessionMetadata() { *
* * .tensorflow.SessionMetadata session_metadata = 5; + * @return The sessionMetadata. */ - public org.tensorflow.proto.framework.SessionMetadata getSessionMetadata() { + public org.tensorflow.proto.SessionMetadata getSessionMetadata() { if (sessionMetadataBuilder_ == null) { - return sessionMetadata_ == null ? org.tensorflow.proto.framework.SessionMetadata.getDefaultInstance() : sessionMetadata_; + return sessionMetadata_ == null ? org.tensorflow.proto.SessionMetadata.getDefaultInstance() : sessionMetadata_; } else { return sessionMetadataBuilder_.getMessage(); } @@ -3333,7 +3311,7 @@ public org.tensorflow.proto.framework.SessionMetadata getSessionMetadata() { * * .tensorflow.SessionMetadata session_metadata = 5; */ - public Builder setSessionMetadata(org.tensorflow.proto.framework.SessionMetadata value) { + public Builder setSessionMetadata(org.tensorflow.proto.SessionMetadata value) { if (sessionMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3354,7 +3332,7 @@ public Builder setSessionMetadata(org.tensorflow.proto.framework.SessionMetadata * .tensorflow.SessionMetadata session_metadata = 5; */ public Builder setSessionMetadata( - org.tensorflow.proto.framework.SessionMetadata.Builder builderForValue) { + org.tensorflow.proto.SessionMetadata.Builder builderForValue) { if (sessionMetadataBuilder_ == null) { sessionMetadata_ = builderForValue.build(); onChanged(); @@ -3371,11 +3349,11 @@ public Builder setSessionMetadata( * * .tensorflow.SessionMetadata session_metadata = 5; */ - public Builder mergeSessionMetadata(org.tensorflow.proto.framework.SessionMetadata value) { + public Builder mergeSessionMetadata(org.tensorflow.proto.SessionMetadata value) { if (sessionMetadataBuilder_ == null) { if (sessionMetadata_ != null) { sessionMetadata_ = - org.tensorflow.proto.framework.SessionMetadata.newBuilder(sessionMetadata_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.SessionMetadata.newBuilder(sessionMetadata_).mergeFrom(value).buildPartial(); } else { sessionMetadata_ = value; } @@ -3411,7 +3389,7 @@ public Builder clearSessionMetadata() { * * .tensorflow.SessionMetadata session_metadata = 5; */ - public org.tensorflow.proto.framework.SessionMetadata.Builder getSessionMetadataBuilder() { + public org.tensorflow.proto.SessionMetadata.Builder getSessionMetadataBuilder() { onChanged(); return getSessionMetadataFieldBuilder().getBuilder(); @@ -3423,12 +3401,12 @@ public org.tensorflow.proto.framework.SessionMetadata.Builder getSessionMetadata * * .tensorflow.SessionMetadata session_metadata = 5; */ - public org.tensorflow.proto.framework.SessionMetadataOrBuilder getSessionMetadataOrBuilder() { + public org.tensorflow.proto.SessionMetadataOrBuilder getSessionMetadataOrBuilder() { if (sessionMetadataBuilder_ != null) { return sessionMetadataBuilder_.getMessageOrBuilder(); } else { return sessionMetadata_ == null ? - org.tensorflow.proto.framework.SessionMetadata.getDefaultInstance() : sessionMetadata_; + org.tensorflow.proto.SessionMetadata.getDefaultInstance() : sessionMetadata_; } } /** @@ -3439,11 +3417,11 @@ public org.tensorflow.proto.framework.SessionMetadataOrBuilder getSessionMetadat * .tensorflow.SessionMetadata session_metadata = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SessionMetadata, org.tensorflow.proto.framework.SessionMetadata.Builder, org.tensorflow.proto.framework.SessionMetadataOrBuilder> + org.tensorflow.proto.SessionMetadata, org.tensorflow.proto.SessionMetadata.Builder, org.tensorflow.proto.SessionMetadataOrBuilder> getSessionMetadataFieldBuilder() { if (sessionMetadataBuilder_ == null) { sessionMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.SessionMetadata, org.tensorflow.proto.framework.SessionMetadata.Builder, org.tensorflow.proto.framework.SessionMetadataOrBuilder>( + org.tensorflow.proto.SessionMetadata, org.tensorflow.proto.SessionMetadata.Builder, org.tensorflow.proto.SessionMetadataOrBuilder>( getSessionMetadata(), getParentForChildren(), isClean()); @@ -3468,12 +3446,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.RunMetadata) - private static final org.tensorflow.proto.framework.RunMetadata DEFAULT_INSTANCE; + private static final org.tensorflow.proto.RunMetadata DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.RunMetadata(); + DEFAULT_INSTANCE = new org.tensorflow.proto.RunMetadata(); } - public static org.tensorflow.proto.framework.RunMetadata getDefaultInstance() { + public static org.tensorflow.proto.RunMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -3484,7 +3462,18 @@ public RunMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RunMetadata(input, extensionRegistry); + 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(); } }; @@ -3498,7 +3487,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.RunMetadata getDefaultInstanceForType() { + public org.tensorflow.proto.RunMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RunMetadataOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RunMetadataOrBuilder.java similarity index 85% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RunMetadataOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RunMetadataOrBuilder.java index 25f0ae78bc7..58cc295b4c6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RunMetadataOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RunMetadataOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/config.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface RunMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.RunMetadata) @@ -15,6 +15,7 @@ public interface RunMetadataOrBuilder extends *
* * .tensorflow.StepStats step_stats = 1; + * @return Whether the stepStats field is set. */ boolean hasStepStats(); /** @@ -25,8 +26,9 @@ public interface RunMetadataOrBuilder extends *
* * .tensorflow.StepStats step_stats = 1; + * @return The stepStats. */ - org.tensorflow.proto.framework.StepStats getStepStats(); + org.tensorflow.proto.StepStats getStepStats(); /** *
    * Statistics traced for this step. Populated if tracing is turned on via the
@@ -36,7 +38,7 @@ public interface RunMetadataOrBuilder extends
    *
    * .tensorflow.StepStats step_stats = 1;
    */
-  org.tensorflow.proto.framework.StepStatsOrBuilder getStepStatsOrBuilder();
+  org.tensorflow.proto.StepStatsOrBuilder getStepStatsOrBuilder();
 
   /**
    * 
@@ -44,6 +46,7 @@ public interface RunMetadataOrBuilder extends
    * 
* * .tensorflow.CostGraphDef cost_graph = 2; + * @return Whether the costGraph field is set. */ boolean hasCostGraph(); /** @@ -52,8 +55,9 @@ public interface RunMetadataOrBuilder extends *
* * .tensorflow.CostGraphDef cost_graph = 2; + * @return The costGraph. */ - org.tensorflow.proto.framework.CostGraphDef getCostGraph(); + org.tensorflow.proto.CostGraphDef getCostGraph(); /** *
    * The cost graph for the computation defined by the run call.
@@ -61,7 +65,7 @@ public interface RunMetadataOrBuilder extends
    *
    * .tensorflow.CostGraphDef cost_graph = 2;
    */
-  org.tensorflow.proto.framework.CostGraphDefOrBuilder getCostGraphOrBuilder();
+  org.tensorflow.proto.CostGraphDefOrBuilder getCostGraphOrBuilder();
 
   /**
    * 
@@ -70,7 +74,7 @@ public interface RunMetadataOrBuilder extends
    *
    * repeated .tensorflow.GraphDef partition_graphs = 3;
    */
-  java.util.List 
+  java.util.List 
       getPartitionGraphsList();
   /**
    * 
@@ -79,7 +83,7 @@ public interface RunMetadataOrBuilder extends
    *
    * repeated .tensorflow.GraphDef partition_graphs = 3;
    */
-  org.tensorflow.proto.framework.GraphDef getPartitionGraphs(int index);
+  org.tensorflow.proto.GraphDef getPartitionGraphs(int index);
   /**
    * 
    * Graphs of the partitions executed by executors.
@@ -95,7 +99,7 @@ public interface RunMetadataOrBuilder extends
    *
    * repeated .tensorflow.GraphDef partition_graphs = 3;
    */
-  java.util.List 
+  java.util.List 
       getPartitionGraphsOrBuilderList();
   /**
    * 
@@ -104,7 +108,7 @@ public interface RunMetadataOrBuilder extends
    *
    * repeated .tensorflow.GraphDef partition_graphs = 3;
    */
-  org.tensorflow.proto.framework.GraphDefOrBuilder getPartitionGraphsOrBuilder(
+  org.tensorflow.proto.GraphDefOrBuilder getPartitionGraphsOrBuilder(
       int index);
 
   /**
@@ -123,7 +127,7 @@ org.tensorflow.proto.framework.GraphDefOrBuilder getPartitionGraphsOrBuilder(
    *
    * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
    */
-  java.util.List 
+  java.util.List 
       getFunctionGraphsList();
   /**
    * 
@@ -141,7 +145,7 @@ org.tensorflow.proto.framework.GraphDefOrBuilder getPartitionGraphsOrBuilder(
    *
    * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
    */
-  org.tensorflow.proto.framework.RunMetadata.FunctionGraphs getFunctionGraphs(int index);
+  org.tensorflow.proto.RunMetadata.FunctionGraphs getFunctionGraphs(int index);
   /**
    * 
    * This is only populated for graphs that are run as functions in TensorFlow
@@ -175,7 +179,7 @@ org.tensorflow.proto.framework.GraphDefOrBuilder getPartitionGraphsOrBuilder(
    *
    * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
    */
-  java.util.List 
+  java.util.List 
       getFunctionGraphsOrBuilderList();
   /**
    * 
@@ -193,7 +197,7 @@ org.tensorflow.proto.framework.GraphDefOrBuilder getPartitionGraphsOrBuilder(
    *
    * repeated .tensorflow.RunMetadata.FunctionGraphs function_graphs = 4;
    */
-  org.tensorflow.proto.framework.RunMetadata.FunctionGraphsOrBuilder getFunctionGraphsOrBuilder(
+  org.tensorflow.proto.RunMetadata.FunctionGraphsOrBuilder getFunctionGraphsOrBuilder(
       int index);
 
   /**
@@ -202,6 +206,7 @@ org.tensorflow.proto.framework.RunMetadata.FunctionGraphsOrBuilder getFunctionGr
    * 
* * .tensorflow.SessionMetadata session_metadata = 5; + * @return Whether the sessionMetadata field is set. */ boolean hasSessionMetadata(); /** @@ -210,8 +215,9 @@ org.tensorflow.proto.framework.RunMetadata.FunctionGraphsOrBuilder getFunctionGr *
* * .tensorflow.SessionMetadata session_metadata = 5; + * @return The sessionMetadata. */ - org.tensorflow.proto.framework.SessionMetadata getSessionMetadata(); + org.tensorflow.proto.SessionMetadata getSessionMetadata(); /** *
    * Metadata about the session.
@@ -219,5 +225,5 @@ org.tensorflow.proto.framework.RunMetadata.FunctionGraphsOrBuilder getFunctionGr
    *
    * .tensorflow.SessionMetadata session_metadata = 5;
    */
-  org.tensorflow.proto.framework.SessionMetadataOrBuilder getSessionMetadataOrBuilder();
+  org.tensorflow.proto.SessionMetadataOrBuilder getSessionMetadataOrBuilder();
 }
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RunOptions.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RunOptions.java
new file mode 100644
index 00000000000..cf364bfe75f
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RunOptions.java
@@ -0,0 +1,2731 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/protobuf/config.proto
+
+package org.tensorflow.proto;
+
+/**
+ * 
+ * Options for a single Run() call.
+ * 
+ * + * Protobuf type {@code tensorflow.RunOptions} + */ +public final class RunOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.RunOptions) + RunOptionsOrBuilder { +private static final long serialVersionUID = 0L; + // Use RunOptions.newBuilder() to construct. + private RunOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RunOptions() { + traceLevel_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RunOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.RunOptions.class, org.tensorflow.proto.RunOptions.Builder.class); + } + + /** + *
+   * TODO(pbar) Turn this into a TraceOptions proto which allows
+   * tracing to be controlled in a more orthogonal manner?
+   * 
+ * + * Protobuf enum {@code tensorflow.RunOptions.TraceLevel} + */ + public enum TraceLevel + implements com.google.protobuf.ProtocolMessageEnum { + /** + * NO_TRACE = 0; + */ + NO_TRACE(0), + /** + * SOFTWARE_TRACE = 1; + */ + SOFTWARE_TRACE(1), + /** + * HARDWARE_TRACE = 2; + */ + HARDWARE_TRACE(2), + /** + * FULL_TRACE = 3; + */ + FULL_TRACE(3), + UNRECOGNIZED(-1), + ; + + /** + * NO_TRACE = 0; + */ + public static final int NO_TRACE_VALUE = 0; + /** + * SOFTWARE_TRACE = 1; + */ + public static final int SOFTWARE_TRACE_VALUE = 1; + /** + * HARDWARE_TRACE = 2; + */ + public static final int HARDWARE_TRACE_VALUE = 2; + /** + * FULL_TRACE = 3; + */ + public static final int FULL_TRACE_VALUE = 3; + + + 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 TraceLevel 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 TraceLevel forNumber(int value) { + switch (value) { + case 0: return NO_TRACE; + case 1: return SOFTWARE_TRACE; + case 2: return HARDWARE_TRACE; + case 3: return FULL_TRACE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + TraceLevel> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TraceLevel findValueByNumber(int number) { + return TraceLevel.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 org.tensorflow.proto.RunOptions.getDescriptor().getEnumTypes().get(0); + } + + private static final TraceLevel[] VALUES = values(); + + public static TraceLevel 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 TraceLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:tensorflow.RunOptions.TraceLevel) + } + + public interface ExperimentalOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.RunOptions.Experimental) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * If non-zero, declares that this graph is going to use collective
+     * ops and must synchronize step_ids with any other graph with this
+     * same group_key value (in a distributed computation where tasks
+     * run disjoint graphs).
+     * 
+ * + * int64 collective_graph_key = 1; + * @return The collectiveGraphKey. + */ + long getCollectiveGraphKey(); + + /** + *
+     * If true, then operations (using the inter-op pool) across all
+     * session::run() calls will be centrally scheduled, optimizing for (median
+     * and tail) latency.
+     * Consider using this option for CPU-bound workloads like inference.
+     * 
+ * + * bool use_run_handler_pool = 2; + * @return The useRunHandlerPool. + */ + boolean getUseRunHandlerPool(); + + /** + * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; + * @return Whether the runHandlerPoolOptions field is set. + */ + boolean hasRunHandlerPoolOptions(); + /** + * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; + * @return The runHandlerPoolOptions. + */ + org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions getRunHandlerPoolOptions(); + /** + * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; + */ + org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptionsOrBuilder getRunHandlerPoolOptionsOrBuilder(); + } + /** + *
+   * Everything inside Experimental is subject to change and is not subject
+   * to API stability guarantees in
+   * https://www.tensorflow.org/guide/version_compat.
+   * 
+ * + * Protobuf type {@code tensorflow.RunOptions.Experimental} + */ + public static final class Experimental extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.RunOptions.Experimental) + ExperimentalOrBuilder { + private static final long serialVersionUID = 0L; + // Use Experimental.newBuilder() to construct. + private Experimental(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Experimental() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Experimental(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunOptions_Experimental_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunOptions_Experimental_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.RunOptions.Experimental.class, org.tensorflow.proto.RunOptions.Experimental.Builder.class); + } + + public interface RunHandlerPoolOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.RunOptions.Experimental.RunHandlerPoolOptions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * Priority of the request. The run handler thread pool will schedule ops
+       * based on the priority number. The larger number means higher priority.
+       * 
+ * + * int64 priority = 1; + * @return The priority. + */ + long getPriority(); + } + /** + *
+     * Options for run handler thread pool.
+     * 
+ * + * Protobuf type {@code tensorflow.RunOptions.Experimental.RunHandlerPoolOptions} + */ + public static final class RunHandlerPoolOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.RunOptions.Experimental.RunHandlerPoolOptions) + RunHandlerPoolOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use RunHandlerPoolOptions.newBuilder() to construct. + private RunHandlerPoolOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RunHandlerPoolOptions() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RunHandlerPoolOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunOptions_Experimental_RunHandlerPoolOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunOptions_Experimental_RunHandlerPoolOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions.class, org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions.Builder.class); + } + + public static final int PRIORITY_FIELD_NUMBER = 1; + private long priority_; + /** + *
+       * Priority of the request. The run handler thread pool will schedule ops
+       * based on the priority number. The larger number means higher priority.
+       * 
+ * + * int64 priority = 1; + * @return The priority. + */ + @java.lang.Override + public long getPriority() { + return priority_; + } + + 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 (priority_ != 0L) { + output.writeInt64(1, priority_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (priority_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, priority_); + } + 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 org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions)) { + return super.equals(obj); + } + org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions other = (org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions) obj; + + if (getPriority() + != other.getPriority()) 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) + PRIORITY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPriority()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions 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 org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions 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 org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions 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(org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions 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; + } + /** + *
+       * Options for run handler thread pool.
+       * 
+ * + * Protobuf type {@code tensorflow.RunOptions.Experimental.RunHandlerPoolOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.RunOptions.Experimental.RunHandlerPoolOptions) + org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunOptions_Experimental_RunHandlerPoolOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunOptions_Experimental_RunHandlerPoolOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions.class, org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions.Builder.class); + } + + // Construct using org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + priority_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunOptions_Experimental_RunHandlerPoolOptions_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions getDefaultInstanceForType() { + return org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions build() { + org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions buildPartial() { + org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions result = new org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions(this); + result.priority_ = priority_; + 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 org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions) { + return mergeFrom((org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions other) { + if (other == org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions.getDefaultInstance()) return this; + if (other.getPriority() != 0L) { + setPriority(other.getPriority()); + } + 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: { + priority_ = input.readInt64(); + + break; + } // case 8 + 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 long priority_ ; + /** + *
+         * Priority of the request. The run handler thread pool will schedule ops
+         * based on the priority number. The larger number means higher priority.
+         * 
+ * + * int64 priority = 1; + * @return The priority. + */ + @java.lang.Override + public long getPriority() { + return priority_; + } + /** + *
+         * Priority of the request. The run handler thread pool will schedule ops
+         * based on the priority number. The larger number means higher priority.
+         * 
+ * + * int64 priority = 1; + * @param value The priority to set. + * @return This builder for chaining. + */ + public Builder setPriority(long value) { + + priority_ = value; + onChanged(); + return this; + } + /** + *
+         * Priority of the request. The run handler thread pool will schedule ops
+         * based on the priority number. The larger number means higher priority.
+         * 
+ * + * int64 priority = 1; + * @return This builder for chaining. + */ + public Builder clearPriority() { + + priority_ = 0L; + 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:tensorflow.RunOptions.Experimental.RunHandlerPoolOptions) + } + + // @@protoc_insertion_point(class_scope:tensorflow.RunOptions.Experimental.RunHandlerPoolOptions) + private static final org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions(); + } + + public static org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunHandlerPoolOptions 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 org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int COLLECTIVE_GRAPH_KEY_FIELD_NUMBER = 1; + private long collectiveGraphKey_; + /** + *
+     * If non-zero, declares that this graph is going to use collective
+     * ops and must synchronize step_ids with any other graph with this
+     * same group_key value (in a distributed computation where tasks
+     * run disjoint graphs).
+     * 
+ * + * int64 collective_graph_key = 1; + * @return The collectiveGraphKey. + */ + @java.lang.Override + public long getCollectiveGraphKey() { + return collectiveGraphKey_; + } + + public static final int USE_RUN_HANDLER_POOL_FIELD_NUMBER = 2; + private boolean useRunHandlerPool_; + /** + *
+     * If true, then operations (using the inter-op pool) across all
+     * session::run() calls will be centrally scheduled, optimizing for (median
+     * and tail) latency.
+     * Consider using this option for CPU-bound workloads like inference.
+     * 
+ * + * bool use_run_handler_pool = 2; + * @return The useRunHandlerPool. + */ + @java.lang.Override + public boolean getUseRunHandlerPool() { + return useRunHandlerPool_; + } + + public static final int RUN_HANDLER_POOL_OPTIONS_FIELD_NUMBER = 3; + private org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions runHandlerPoolOptions_; + /** + * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; + * @return Whether the runHandlerPoolOptions field is set. + */ + @java.lang.Override + public boolean hasRunHandlerPoolOptions() { + return runHandlerPoolOptions_ != null; + } + /** + * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; + * @return The runHandlerPoolOptions. + */ + @java.lang.Override + public org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions getRunHandlerPoolOptions() { + return runHandlerPoolOptions_ == null ? org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions.getDefaultInstance() : runHandlerPoolOptions_; + } + /** + * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; + */ + @java.lang.Override + public org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptionsOrBuilder getRunHandlerPoolOptionsOrBuilder() { + return getRunHandlerPoolOptions(); + } + + 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 (collectiveGraphKey_ != 0L) { + output.writeInt64(1, collectiveGraphKey_); + } + if (useRunHandlerPool_ != false) { + output.writeBool(2, useRunHandlerPool_); + } + if (runHandlerPoolOptions_ != null) { + output.writeMessage(3, getRunHandlerPoolOptions()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (collectiveGraphKey_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, collectiveGraphKey_); + } + if (useRunHandlerPool_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, useRunHandlerPool_); + } + if (runHandlerPoolOptions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRunHandlerPoolOptions()); + } + 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 org.tensorflow.proto.RunOptions.Experimental)) { + return super.equals(obj); + } + org.tensorflow.proto.RunOptions.Experimental other = (org.tensorflow.proto.RunOptions.Experimental) obj; + + if (getCollectiveGraphKey() + != other.getCollectiveGraphKey()) return false; + if (getUseRunHandlerPool() + != other.getUseRunHandlerPool()) return false; + if (hasRunHandlerPoolOptions() != other.hasRunHandlerPoolOptions()) return false; + if (hasRunHandlerPoolOptions()) { + if (!getRunHandlerPoolOptions() + .equals(other.getRunHandlerPoolOptions())) 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) + COLLECTIVE_GRAPH_KEY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCollectiveGraphKey()); + hash = (37 * hash) + USE_RUN_HANDLER_POOL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUseRunHandlerPool()); + if (hasRunHandlerPoolOptions()) { + hash = (37 * hash) + RUN_HANDLER_POOL_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getRunHandlerPoolOptions().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.RunOptions.Experimental parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RunOptions.Experimental parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RunOptions.Experimental parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RunOptions.Experimental parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RunOptions.Experimental parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RunOptions.Experimental parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RunOptions.Experimental parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RunOptions.Experimental 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 org.tensorflow.proto.RunOptions.Experimental parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RunOptions.Experimental 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 org.tensorflow.proto.RunOptions.Experimental parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RunOptions.Experimental 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(org.tensorflow.proto.RunOptions.Experimental 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; + } + /** + *
+     * Everything inside Experimental is subject to change and is not subject
+     * to API stability guarantees in
+     * https://www.tensorflow.org/guide/version_compat.
+     * 
+ * + * Protobuf type {@code tensorflow.RunOptions.Experimental} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.RunOptions.Experimental) + org.tensorflow.proto.RunOptions.ExperimentalOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunOptions_Experimental_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunOptions_Experimental_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.RunOptions.Experimental.class, org.tensorflow.proto.RunOptions.Experimental.Builder.class); + } + + // Construct using org.tensorflow.proto.RunOptions.Experimental.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + collectiveGraphKey_ = 0L; + + useRunHandlerPool_ = false; + + if (runHandlerPoolOptionsBuilder_ == null) { + runHandlerPoolOptions_ = null; + } else { + runHandlerPoolOptions_ = null; + runHandlerPoolOptionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunOptions_Experimental_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.RunOptions.Experimental getDefaultInstanceForType() { + return org.tensorflow.proto.RunOptions.Experimental.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.RunOptions.Experimental build() { + org.tensorflow.proto.RunOptions.Experimental result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.RunOptions.Experimental buildPartial() { + org.tensorflow.proto.RunOptions.Experimental result = new org.tensorflow.proto.RunOptions.Experimental(this); + result.collectiveGraphKey_ = collectiveGraphKey_; + result.useRunHandlerPool_ = useRunHandlerPool_; + if (runHandlerPoolOptionsBuilder_ == null) { + result.runHandlerPoolOptions_ = runHandlerPoolOptions_; + } else { + result.runHandlerPoolOptions_ = runHandlerPoolOptionsBuilder_.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 org.tensorflow.proto.RunOptions.Experimental) { + return mergeFrom((org.tensorflow.proto.RunOptions.Experimental)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.RunOptions.Experimental other) { + if (other == org.tensorflow.proto.RunOptions.Experimental.getDefaultInstance()) return this; + if (other.getCollectiveGraphKey() != 0L) { + setCollectiveGraphKey(other.getCollectiveGraphKey()); + } + if (other.getUseRunHandlerPool() != false) { + setUseRunHandlerPool(other.getUseRunHandlerPool()); + } + if (other.hasRunHandlerPoolOptions()) { + mergeRunHandlerPoolOptions(other.getRunHandlerPoolOptions()); + } + 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: { + collectiveGraphKey_ = input.readInt64(); + + break; + } // case 8 + case 16: { + useRunHandlerPool_ = input.readBool(); + + break; + } // case 16 + case 26: { + input.readMessage( + getRunHandlerPoolOptionsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + 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 long collectiveGraphKey_ ; + /** + *
+       * If non-zero, declares that this graph is going to use collective
+       * ops and must synchronize step_ids with any other graph with this
+       * same group_key value (in a distributed computation where tasks
+       * run disjoint graphs).
+       * 
+ * + * int64 collective_graph_key = 1; + * @return The collectiveGraphKey. + */ + @java.lang.Override + public long getCollectiveGraphKey() { + return collectiveGraphKey_; + } + /** + *
+       * If non-zero, declares that this graph is going to use collective
+       * ops and must synchronize step_ids with any other graph with this
+       * same group_key value (in a distributed computation where tasks
+       * run disjoint graphs).
+       * 
+ * + * int64 collective_graph_key = 1; + * @param value The collectiveGraphKey to set. + * @return This builder for chaining. + */ + public Builder setCollectiveGraphKey(long value) { + + collectiveGraphKey_ = value; + onChanged(); + return this; + } + /** + *
+       * If non-zero, declares that this graph is going to use collective
+       * ops and must synchronize step_ids with any other graph with this
+       * same group_key value (in a distributed computation where tasks
+       * run disjoint graphs).
+       * 
+ * + * int64 collective_graph_key = 1; + * @return This builder for chaining. + */ + public Builder clearCollectiveGraphKey() { + + collectiveGraphKey_ = 0L; + onChanged(); + return this; + } + + private boolean useRunHandlerPool_ ; + /** + *
+       * If true, then operations (using the inter-op pool) across all
+       * session::run() calls will be centrally scheduled, optimizing for (median
+       * and tail) latency.
+       * Consider using this option for CPU-bound workloads like inference.
+       * 
+ * + * bool use_run_handler_pool = 2; + * @return The useRunHandlerPool. + */ + @java.lang.Override + public boolean getUseRunHandlerPool() { + return useRunHandlerPool_; + } + /** + *
+       * If true, then operations (using the inter-op pool) across all
+       * session::run() calls will be centrally scheduled, optimizing for (median
+       * and tail) latency.
+       * Consider using this option for CPU-bound workloads like inference.
+       * 
+ * + * bool use_run_handler_pool = 2; + * @param value The useRunHandlerPool to set. + * @return This builder for chaining. + */ + public Builder setUseRunHandlerPool(boolean value) { + + useRunHandlerPool_ = value; + onChanged(); + return this; + } + /** + *
+       * If true, then operations (using the inter-op pool) across all
+       * session::run() calls will be centrally scheduled, optimizing for (median
+       * and tail) latency.
+       * Consider using this option for CPU-bound workloads like inference.
+       * 
+ * + * bool use_run_handler_pool = 2; + * @return This builder for chaining. + */ + public Builder clearUseRunHandlerPool() { + + useRunHandlerPool_ = false; + onChanged(); + return this; + } + + private org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions runHandlerPoolOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions, org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions.Builder, org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptionsOrBuilder> runHandlerPoolOptionsBuilder_; + /** + * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; + * @return Whether the runHandlerPoolOptions field is set. + */ + public boolean hasRunHandlerPoolOptions() { + return runHandlerPoolOptionsBuilder_ != null || runHandlerPoolOptions_ != null; + } + /** + * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; + * @return The runHandlerPoolOptions. + */ + public org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions getRunHandlerPoolOptions() { + if (runHandlerPoolOptionsBuilder_ == null) { + return runHandlerPoolOptions_ == null ? org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions.getDefaultInstance() : runHandlerPoolOptions_; + } else { + return runHandlerPoolOptionsBuilder_.getMessage(); + } + } + /** + * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; + */ + public Builder setRunHandlerPoolOptions(org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions value) { + if (runHandlerPoolOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + runHandlerPoolOptions_ = value; + onChanged(); + } else { + runHandlerPoolOptionsBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; + */ + public Builder setRunHandlerPoolOptions( + org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions.Builder builderForValue) { + if (runHandlerPoolOptionsBuilder_ == null) { + runHandlerPoolOptions_ = builderForValue.build(); + onChanged(); + } else { + runHandlerPoolOptionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; + */ + public Builder mergeRunHandlerPoolOptions(org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions value) { + if (runHandlerPoolOptionsBuilder_ == null) { + if (runHandlerPoolOptions_ != null) { + runHandlerPoolOptions_ = + org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions.newBuilder(runHandlerPoolOptions_).mergeFrom(value).buildPartial(); + } else { + runHandlerPoolOptions_ = value; + } + onChanged(); + } else { + runHandlerPoolOptionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; + */ + public Builder clearRunHandlerPoolOptions() { + if (runHandlerPoolOptionsBuilder_ == null) { + runHandlerPoolOptions_ = null; + onChanged(); + } else { + runHandlerPoolOptions_ = null; + runHandlerPoolOptionsBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; + */ + public org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions.Builder getRunHandlerPoolOptionsBuilder() { + + onChanged(); + return getRunHandlerPoolOptionsFieldBuilder().getBuilder(); + } + /** + * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; + */ + public org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptionsOrBuilder getRunHandlerPoolOptionsOrBuilder() { + if (runHandlerPoolOptionsBuilder_ != null) { + return runHandlerPoolOptionsBuilder_.getMessageOrBuilder(); + } else { + return runHandlerPoolOptions_ == null ? + org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions.getDefaultInstance() : runHandlerPoolOptions_; + } + } + /** + * .tensorflow.RunOptions.Experimental.RunHandlerPoolOptions run_handler_pool_options = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions, org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions.Builder, org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptionsOrBuilder> + getRunHandlerPoolOptionsFieldBuilder() { + if (runHandlerPoolOptionsBuilder_ == null) { + runHandlerPoolOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions, org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptions.Builder, org.tensorflow.proto.RunOptions.Experimental.RunHandlerPoolOptionsOrBuilder>( + getRunHandlerPoolOptions(), + getParentForChildren(), + isClean()); + runHandlerPoolOptions_ = null; + } + return runHandlerPoolOptionsBuilder_; + } + @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:tensorflow.RunOptions.Experimental) + } + + // @@protoc_insertion_point(class_scope:tensorflow.RunOptions.Experimental) + private static final org.tensorflow.proto.RunOptions.Experimental DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.RunOptions.Experimental(); + } + + public static org.tensorflow.proto.RunOptions.Experimental getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Experimental 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 org.tensorflow.proto.RunOptions.Experimental getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int TRACE_LEVEL_FIELD_NUMBER = 1; + private int traceLevel_; + /** + * .tensorflow.RunOptions.TraceLevel trace_level = 1; + * @return The enum numeric value on the wire for traceLevel. + */ + @java.lang.Override public int getTraceLevelValue() { + return traceLevel_; + } + /** + * .tensorflow.RunOptions.TraceLevel trace_level = 1; + * @return The traceLevel. + */ + @java.lang.Override public org.tensorflow.proto.RunOptions.TraceLevel getTraceLevel() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RunOptions.TraceLevel result = org.tensorflow.proto.RunOptions.TraceLevel.valueOf(traceLevel_); + return result == null ? org.tensorflow.proto.RunOptions.TraceLevel.UNRECOGNIZED : result; + } + + public static final int TIMEOUT_IN_MS_FIELD_NUMBER = 2; + private long timeoutInMs_; + /** + *
+   * Time to wait for operation to complete in milliseconds.
+   * 
+ * + * int64 timeout_in_ms = 2; + * @return The timeoutInMs. + */ + @java.lang.Override + public long getTimeoutInMs() { + return timeoutInMs_; + } + + public static final int INTER_OP_THREAD_POOL_FIELD_NUMBER = 3; + private int interOpThreadPool_; + /** + *
+   * The thread pool to use, if session_inter_op_thread_pool is configured.
+   * To use the caller thread set this to -1 - this uses the caller thread
+   * to execute Session::Run() and thus avoids a context switch. Using the
+   * caller thread to execute Session::Run() should be done ONLY for simple
+   * graphs, where the overhead of an additional context switch is
+   * comparable with the overhead of Session::Run().
+   * 
+ * + * int32 inter_op_thread_pool = 3; + * @return The interOpThreadPool. + */ + @java.lang.Override + public int getInterOpThreadPool() { + return interOpThreadPool_; + } + + public static final int OUTPUT_PARTITION_GRAPHS_FIELD_NUMBER = 5; + private boolean outputPartitionGraphs_; + /** + *
+   * Whether the partition graph(s) executed by the executor(s) should be
+   * outputted via RunMetadata.
+   * 
+ * + * bool output_partition_graphs = 5; + * @return The outputPartitionGraphs. + */ + @java.lang.Override + public boolean getOutputPartitionGraphs() { + return outputPartitionGraphs_; + } + + public static final int DEBUG_OPTIONS_FIELD_NUMBER = 6; + private org.tensorflow.proto.DebugOptions debugOptions_; + /** + *
+   * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
+   * 
+ * + * .tensorflow.DebugOptions debug_options = 6; + * @return Whether the debugOptions field is set. + */ + @java.lang.Override + public boolean hasDebugOptions() { + return debugOptions_ != null; + } + /** + *
+   * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
+   * 
+ * + * .tensorflow.DebugOptions debug_options = 6; + * @return The debugOptions. + */ + @java.lang.Override + public org.tensorflow.proto.DebugOptions getDebugOptions() { + return debugOptions_ == null ? org.tensorflow.proto.DebugOptions.getDefaultInstance() : debugOptions_; + } + /** + *
+   * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
+   * 
+ * + * .tensorflow.DebugOptions debug_options = 6; + */ + @java.lang.Override + public org.tensorflow.proto.DebugOptionsOrBuilder getDebugOptionsOrBuilder() { + return getDebugOptions(); + } + + public static final int REPORT_TENSOR_ALLOCATIONS_UPON_OOM_FIELD_NUMBER = 7; + private boolean reportTensorAllocationsUponOom_; + /** + *
+   * When enabled, causes tensor allocation information to be included in
+   * the error message when the Run() call fails because the allocator ran
+   * out of memory (OOM).
+   * Enabling this option can slow down the Run() call.
+   * 
+ * + * bool report_tensor_allocations_upon_oom = 7; + * @return The reportTensorAllocationsUponOom. + */ + @java.lang.Override + public boolean getReportTensorAllocationsUponOom() { + return reportTensorAllocationsUponOom_; + } + + public static final int EXPERIMENTAL_FIELD_NUMBER = 8; + private org.tensorflow.proto.RunOptions.Experimental experimental_; + /** + * .tensorflow.RunOptions.Experimental experimental = 8; + * @return Whether the experimental field is set. + */ + @java.lang.Override + public boolean hasExperimental() { + return experimental_ != null; + } + /** + * .tensorflow.RunOptions.Experimental experimental = 8; + * @return The experimental. + */ + @java.lang.Override + public org.tensorflow.proto.RunOptions.Experimental getExperimental() { + return experimental_ == null ? org.tensorflow.proto.RunOptions.Experimental.getDefaultInstance() : experimental_; + } + /** + * .tensorflow.RunOptions.Experimental experimental = 8; + */ + @java.lang.Override + public org.tensorflow.proto.RunOptions.ExperimentalOrBuilder getExperimentalOrBuilder() { + return getExperimental(); + } + + 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 (traceLevel_ != org.tensorflow.proto.RunOptions.TraceLevel.NO_TRACE.getNumber()) { + output.writeEnum(1, traceLevel_); + } + if (timeoutInMs_ != 0L) { + output.writeInt64(2, timeoutInMs_); + } + if (interOpThreadPool_ != 0) { + output.writeInt32(3, interOpThreadPool_); + } + if (outputPartitionGraphs_ != false) { + output.writeBool(5, outputPartitionGraphs_); + } + if (debugOptions_ != null) { + output.writeMessage(6, getDebugOptions()); + } + if (reportTensorAllocationsUponOom_ != false) { + output.writeBool(7, reportTensorAllocationsUponOom_); + } + if (experimental_ != null) { + output.writeMessage(8, getExperimental()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (traceLevel_ != org.tensorflow.proto.RunOptions.TraceLevel.NO_TRACE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, traceLevel_); + } + if (timeoutInMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, timeoutInMs_); + } + if (interOpThreadPool_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, interOpThreadPool_); + } + if (outputPartitionGraphs_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, outputPartitionGraphs_); + } + if (debugOptions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDebugOptions()); + } + if (reportTensorAllocationsUponOom_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, reportTensorAllocationsUponOom_); + } + if (experimental_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getExperimental()); + } + 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 org.tensorflow.proto.RunOptions)) { + return super.equals(obj); + } + org.tensorflow.proto.RunOptions other = (org.tensorflow.proto.RunOptions) obj; + + if (traceLevel_ != other.traceLevel_) return false; + if (getTimeoutInMs() + != other.getTimeoutInMs()) return false; + if (getInterOpThreadPool() + != other.getInterOpThreadPool()) return false; + if (getOutputPartitionGraphs() + != other.getOutputPartitionGraphs()) return false; + if (hasDebugOptions() != other.hasDebugOptions()) return false; + if (hasDebugOptions()) { + if (!getDebugOptions() + .equals(other.getDebugOptions())) return false; + } + if (getReportTensorAllocationsUponOom() + != other.getReportTensorAllocationsUponOom()) return false; + if (hasExperimental() != other.hasExperimental()) return false; + if (hasExperimental()) { + if (!getExperimental() + .equals(other.getExperimental())) 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) + TRACE_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + traceLevel_; + hash = (37 * hash) + TIMEOUT_IN_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimeoutInMs()); + hash = (37 * hash) + INTER_OP_THREAD_POOL_FIELD_NUMBER; + hash = (53 * hash) + getInterOpThreadPool(); + hash = (37 * hash) + OUTPUT_PARTITION_GRAPHS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOutputPartitionGraphs()); + if (hasDebugOptions()) { + hash = (37 * hash) + DEBUG_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getDebugOptions().hashCode(); + } + hash = (37 * hash) + REPORT_TENSOR_ALLOCATIONS_UPON_OOM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReportTensorAllocationsUponOom()); + if (hasExperimental()) { + hash = (37 * hash) + EXPERIMENTAL_FIELD_NUMBER; + hash = (53 * hash) + getExperimental().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.RunOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RunOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RunOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RunOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RunOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.RunOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.RunOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RunOptions 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 org.tensorflow.proto.RunOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RunOptions 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 org.tensorflow.proto.RunOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.RunOptions 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(org.tensorflow.proto.RunOptions 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; + } + /** + *
+   * Options for a single Run() call.
+   * 
+ * + * Protobuf type {@code tensorflow.RunOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.RunOptions) + org.tensorflow.proto.RunOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.RunOptions.class, org.tensorflow.proto.RunOptions.Builder.class); + } + + // Construct using org.tensorflow.proto.RunOptions.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + traceLevel_ = 0; + + timeoutInMs_ = 0L; + + interOpThreadPool_ = 0; + + outputPartitionGraphs_ = false; + + if (debugOptionsBuilder_ == null) { + debugOptions_ = null; + } else { + debugOptions_ = null; + debugOptionsBuilder_ = null; + } + reportTensorAllocationsUponOom_ = false; + + if (experimentalBuilder_ == null) { + experimental_ = null; + } else { + experimental_ = null; + experimentalBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_RunOptions_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.RunOptions getDefaultInstanceForType() { + return org.tensorflow.proto.RunOptions.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.RunOptions build() { + org.tensorflow.proto.RunOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.RunOptions buildPartial() { + org.tensorflow.proto.RunOptions result = new org.tensorflow.proto.RunOptions(this); + result.traceLevel_ = traceLevel_; + result.timeoutInMs_ = timeoutInMs_; + result.interOpThreadPool_ = interOpThreadPool_; + result.outputPartitionGraphs_ = outputPartitionGraphs_; + if (debugOptionsBuilder_ == null) { + result.debugOptions_ = debugOptions_; + } else { + result.debugOptions_ = debugOptionsBuilder_.build(); + } + result.reportTensorAllocationsUponOom_ = reportTensorAllocationsUponOom_; + if (experimentalBuilder_ == null) { + result.experimental_ = experimental_; + } else { + result.experimental_ = experimentalBuilder_.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 org.tensorflow.proto.RunOptions) { + return mergeFrom((org.tensorflow.proto.RunOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.RunOptions other) { + if (other == org.tensorflow.proto.RunOptions.getDefaultInstance()) return this; + if (other.traceLevel_ != 0) { + setTraceLevelValue(other.getTraceLevelValue()); + } + if (other.getTimeoutInMs() != 0L) { + setTimeoutInMs(other.getTimeoutInMs()); + } + if (other.getInterOpThreadPool() != 0) { + setInterOpThreadPool(other.getInterOpThreadPool()); + } + if (other.getOutputPartitionGraphs() != false) { + setOutputPartitionGraphs(other.getOutputPartitionGraphs()); + } + if (other.hasDebugOptions()) { + mergeDebugOptions(other.getDebugOptions()); + } + if (other.getReportTensorAllocationsUponOom() != false) { + setReportTensorAllocationsUponOom(other.getReportTensorAllocationsUponOom()); + } + if (other.hasExperimental()) { + mergeExperimental(other.getExperimental()); + } + 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: { + traceLevel_ = input.readEnum(); + + break; + } // case 8 + case 16: { + timeoutInMs_ = input.readInt64(); + + break; + } // case 16 + case 24: { + interOpThreadPool_ = input.readInt32(); + + break; + } // case 24 + case 40: { + outputPartitionGraphs_ = input.readBool(); + + break; + } // case 40 + case 50: { + input.readMessage( + getDebugOptionsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + case 56: { + reportTensorAllocationsUponOom_ = input.readBool(); + + break; + } // case 56 + case 66: { + input.readMessage( + getExperimentalFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 66 + 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 traceLevel_ = 0; + /** + * .tensorflow.RunOptions.TraceLevel trace_level = 1; + * @return The enum numeric value on the wire for traceLevel. + */ + @java.lang.Override public int getTraceLevelValue() { + return traceLevel_; + } + /** + * .tensorflow.RunOptions.TraceLevel trace_level = 1; + * @param value The enum numeric value on the wire for traceLevel to set. + * @return This builder for chaining. + */ + public Builder setTraceLevelValue(int value) { + + traceLevel_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.RunOptions.TraceLevel trace_level = 1; + * @return The traceLevel. + */ + @java.lang.Override + public org.tensorflow.proto.RunOptions.TraceLevel getTraceLevel() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.RunOptions.TraceLevel result = org.tensorflow.proto.RunOptions.TraceLevel.valueOf(traceLevel_); + return result == null ? org.tensorflow.proto.RunOptions.TraceLevel.UNRECOGNIZED : result; + } + /** + * .tensorflow.RunOptions.TraceLevel trace_level = 1; + * @param value The traceLevel to set. + * @return This builder for chaining. + */ + public Builder setTraceLevel(org.tensorflow.proto.RunOptions.TraceLevel value) { + if (value == null) { + throw new NullPointerException(); + } + + traceLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.RunOptions.TraceLevel trace_level = 1; + * @return This builder for chaining. + */ + public Builder clearTraceLevel() { + + traceLevel_ = 0; + onChanged(); + return this; + } + + private long timeoutInMs_ ; + /** + *
+     * Time to wait for operation to complete in milliseconds.
+     * 
+ * + * int64 timeout_in_ms = 2; + * @return The timeoutInMs. + */ + @java.lang.Override + public long getTimeoutInMs() { + return timeoutInMs_; + } + /** + *
+     * Time to wait for operation to complete in milliseconds.
+     * 
+ * + * int64 timeout_in_ms = 2; + * @param value The timeoutInMs to set. + * @return This builder for chaining. + */ + public Builder setTimeoutInMs(long value) { + + timeoutInMs_ = value; + onChanged(); + return this; + } + /** + *
+     * Time to wait for operation to complete in milliseconds.
+     * 
+ * + * int64 timeout_in_ms = 2; + * @return This builder for chaining. + */ + public Builder clearTimeoutInMs() { + + timeoutInMs_ = 0L; + onChanged(); + return this; + } + + private int interOpThreadPool_ ; + /** + *
+     * The thread pool to use, if session_inter_op_thread_pool is configured.
+     * To use the caller thread set this to -1 - this uses the caller thread
+     * to execute Session::Run() and thus avoids a context switch. Using the
+     * caller thread to execute Session::Run() should be done ONLY for simple
+     * graphs, where the overhead of an additional context switch is
+     * comparable with the overhead of Session::Run().
+     * 
+ * + * int32 inter_op_thread_pool = 3; + * @return The interOpThreadPool. + */ + @java.lang.Override + public int getInterOpThreadPool() { + return interOpThreadPool_; + } + /** + *
+     * The thread pool to use, if session_inter_op_thread_pool is configured.
+     * To use the caller thread set this to -1 - this uses the caller thread
+     * to execute Session::Run() and thus avoids a context switch. Using the
+     * caller thread to execute Session::Run() should be done ONLY for simple
+     * graphs, where the overhead of an additional context switch is
+     * comparable with the overhead of Session::Run().
+     * 
+ * + * int32 inter_op_thread_pool = 3; + * @param value The interOpThreadPool to set. + * @return This builder for chaining. + */ + public Builder setInterOpThreadPool(int value) { + + interOpThreadPool_ = value; + onChanged(); + return this; + } + /** + *
+     * The thread pool to use, if session_inter_op_thread_pool is configured.
+     * To use the caller thread set this to -1 - this uses the caller thread
+     * to execute Session::Run() and thus avoids a context switch. Using the
+     * caller thread to execute Session::Run() should be done ONLY for simple
+     * graphs, where the overhead of an additional context switch is
+     * comparable with the overhead of Session::Run().
+     * 
+ * + * int32 inter_op_thread_pool = 3; + * @return This builder for chaining. + */ + public Builder clearInterOpThreadPool() { + + interOpThreadPool_ = 0; + onChanged(); + return this; + } + + private boolean outputPartitionGraphs_ ; + /** + *
+     * Whether the partition graph(s) executed by the executor(s) should be
+     * outputted via RunMetadata.
+     * 
+ * + * bool output_partition_graphs = 5; + * @return The outputPartitionGraphs. + */ + @java.lang.Override + public boolean getOutputPartitionGraphs() { + return outputPartitionGraphs_; + } + /** + *
+     * Whether the partition graph(s) executed by the executor(s) should be
+     * outputted via RunMetadata.
+     * 
+ * + * bool output_partition_graphs = 5; + * @param value The outputPartitionGraphs to set. + * @return This builder for chaining. + */ + public Builder setOutputPartitionGraphs(boolean value) { + + outputPartitionGraphs_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether the partition graph(s) executed by the executor(s) should be
+     * outputted via RunMetadata.
+     * 
+ * + * bool output_partition_graphs = 5; + * @return This builder for chaining. + */ + public Builder clearOutputPartitionGraphs() { + + outputPartitionGraphs_ = false; + onChanged(); + return this; + } + + private org.tensorflow.proto.DebugOptions debugOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.DebugOptions, org.tensorflow.proto.DebugOptions.Builder, org.tensorflow.proto.DebugOptionsOrBuilder> debugOptionsBuilder_; + /** + *
+     * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
+     * 
+ * + * .tensorflow.DebugOptions debug_options = 6; + * @return Whether the debugOptions field is set. + */ + public boolean hasDebugOptions() { + return debugOptionsBuilder_ != null || debugOptions_ != null; + } + /** + *
+     * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
+     * 
+ * + * .tensorflow.DebugOptions debug_options = 6; + * @return The debugOptions. + */ + public org.tensorflow.proto.DebugOptions getDebugOptions() { + if (debugOptionsBuilder_ == null) { + return debugOptions_ == null ? org.tensorflow.proto.DebugOptions.getDefaultInstance() : debugOptions_; + } else { + return debugOptionsBuilder_.getMessage(); + } + } + /** + *
+     * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
+     * 
+ * + * .tensorflow.DebugOptions debug_options = 6; + */ + public Builder setDebugOptions(org.tensorflow.proto.DebugOptions value) { + if (debugOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + debugOptions_ = value; + onChanged(); + } else { + debugOptionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
+     * 
+ * + * .tensorflow.DebugOptions debug_options = 6; + */ + public Builder setDebugOptions( + org.tensorflow.proto.DebugOptions.Builder builderForValue) { + if (debugOptionsBuilder_ == null) { + debugOptions_ = builderForValue.build(); + onChanged(); + } else { + debugOptionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
+     * 
+ * + * .tensorflow.DebugOptions debug_options = 6; + */ + public Builder mergeDebugOptions(org.tensorflow.proto.DebugOptions value) { + if (debugOptionsBuilder_ == null) { + if (debugOptions_ != null) { + debugOptions_ = + org.tensorflow.proto.DebugOptions.newBuilder(debugOptions_).mergeFrom(value).buildPartial(); + } else { + debugOptions_ = value; + } + onChanged(); + } else { + debugOptionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
+     * 
+ * + * .tensorflow.DebugOptions debug_options = 6; + */ + public Builder clearDebugOptions() { + if (debugOptionsBuilder_ == null) { + debugOptions_ = null; + onChanged(); + } else { + debugOptions_ = null; + debugOptionsBuilder_ = null; + } + + return this; + } + /** + *
+     * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
+     * 
+ * + * .tensorflow.DebugOptions debug_options = 6; + */ + public org.tensorflow.proto.DebugOptions.Builder getDebugOptionsBuilder() { + + onChanged(); + return getDebugOptionsFieldBuilder().getBuilder(); + } + /** + *
+     * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
+     * 
+ * + * .tensorflow.DebugOptions debug_options = 6; + */ + public org.tensorflow.proto.DebugOptionsOrBuilder getDebugOptionsOrBuilder() { + if (debugOptionsBuilder_ != null) { + return debugOptionsBuilder_.getMessageOrBuilder(); + } else { + return debugOptions_ == null ? + org.tensorflow.proto.DebugOptions.getDefaultInstance() : debugOptions_; + } + } + /** + *
+     * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
+     * 
+ * + * .tensorflow.DebugOptions debug_options = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.DebugOptions, org.tensorflow.proto.DebugOptions.Builder, org.tensorflow.proto.DebugOptionsOrBuilder> + getDebugOptionsFieldBuilder() { + if (debugOptionsBuilder_ == null) { + debugOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.DebugOptions, org.tensorflow.proto.DebugOptions.Builder, org.tensorflow.proto.DebugOptionsOrBuilder>( + getDebugOptions(), + getParentForChildren(), + isClean()); + debugOptions_ = null; + } + return debugOptionsBuilder_; + } + + private boolean reportTensorAllocationsUponOom_ ; + /** + *
+     * When enabled, causes tensor allocation information to be included in
+     * the error message when the Run() call fails because the allocator ran
+     * out of memory (OOM).
+     * Enabling this option can slow down the Run() call.
+     * 
+ * + * bool report_tensor_allocations_upon_oom = 7; + * @return The reportTensorAllocationsUponOom. + */ + @java.lang.Override + public boolean getReportTensorAllocationsUponOom() { + return reportTensorAllocationsUponOom_; + } + /** + *
+     * When enabled, causes tensor allocation information to be included in
+     * the error message when the Run() call fails because the allocator ran
+     * out of memory (OOM).
+     * Enabling this option can slow down the Run() call.
+     * 
+ * + * bool report_tensor_allocations_upon_oom = 7; + * @param value The reportTensorAllocationsUponOom to set. + * @return This builder for chaining. + */ + public Builder setReportTensorAllocationsUponOom(boolean value) { + + reportTensorAllocationsUponOom_ = value; + onChanged(); + return this; + } + /** + *
+     * When enabled, causes tensor allocation information to be included in
+     * the error message when the Run() call fails because the allocator ran
+     * out of memory (OOM).
+     * Enabling this option can slow down the Run() call.
+     * 
+ * + * bool report_tensor_allocations_upon_oom = 7; + * @return This builder for chaining. + */ + public Builder clearReportTensorAllocationsUponOom() { + + reportTensorAllocationsUponOom_ = false; + onChanged(); + return this; + } + + private org.tensorflow.proto.RunOptions.Experimental experimental_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.RunOptions.Experimental, org.tensorflow.proto.RunOptions.Experimental.Builder, org.tensorflow.proto.RunOptions.ExperimentalOrBuilder> experimentalBuilder_; + /** + * .tensorflow.RunOptions.Experimental experimental = 8; + * @return Whether the experimental field is set. + */ + public boolean hasExperimental() { + return experimentalBuilder_ != null || experimental_ != null; + } + /** + * .tensorflow.RunOptions.Experimental experimental = 8; + * @return The experimental. + */ + public org.tensorflow.proto.RunOptions.Experimental getExperimental() { + if (experimentalBuilder_ == null) { + return experimental_ == null ? org.tensorflow.proto.RunOptions.Experimental.getDefaultInstance() : experimental_; + } else { + return experimentalBuilder_.getMessage(); + } + } + /** + * .tensorflow.RunOptions.Experimental experimental = 8; + */ + public Builder setExperimental(org.tensorflow.proto.RunOptions.Experimental value) { + if (experimentalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + experimental_ = value; + onChanged(); + } else { + experimentalBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.RunOptions.Experimental experimental = 8; + */ + public Builder setExperimental( + org.tensorflow.proto.RunOptions.Experimental.Builder builderForValue) { + if (experimentalBuilder_ == null) { + experimental_ = builderForValue.build(); + onChanged(); + } else { + experimentalBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.RunOptions.Experimental experimental = 8; + */ + public Builder mergeExperimental(org.tensorflow.proto.RunOptions.Experimental value) { + if (experimentalBuilder_ == null) { + if (experimental_ != null) { + experimental_ = + org.tensorflow.proto.RunOptions.Experimental.newBuilder(experimental_).mergeFrom(value).buildPartial(); + } else { + experimental_ = value; + } + onChanged(); + } else { + experimentalBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.RunOptions.Experimental experimental = 8; + */ + public Builder clearExperimental() { + if (experimentalBuilder_ == null) { + experimental_ = null; + onChanged(); + } else { + experimental_ = null; + experimentalBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.RunOptions.Experimental experimental = 8; + */ + public org.tensorflow.proto.RunOptions.Experimental.Builder getExperimentalBuilder() { + + onChanged(); + return getExperimentalFieldBuilder().getBuilder(); + } + /** + * .tensorflow.RunOptions.Experimental experimental = 8; + */ + public org.tensorflow.proto.RunOptions.ExperimentalOrBuilder getExperimentalOrBuilder() { + if (experimentalBuilder_ != null) { + return experimentalBuilder_.getMessageOrBuilder(); + } else { + return experimental_ == null ? + org.tensorflow.proto.RunOptions.Experimental.getDefaultInstance() : experimental_; + } + } + /** + * .tensorflow.RunOptions.Experimental experimental = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.RunOptions.Experimental, org.tensorflow.proto.RunOptions.Experimental.Builder, org.tensorflow.proto.RunOptions.ExperimentalOrBuilder> + getExperimentalFieldBuilder() { + if (experimentalBuilder_ == null) { + experimentalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.RunOptions.Experimental, org.tensorflow.proto.RunOptions.Experimental.Builder, org.tensorflow.proto.RunOptions.ExperimentalOrBuilder>( + getExperimental(), + getParentForChildren(), + isClean()); + experimental_ = null; + } + return experimentalBuilder_; + } + @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:tensorflow.RunOptions) + } + + // @@protoc_insertion_point(class_scope:tensorflow.RunOptions) + private static final org.tensorflow.proto.RunOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.RunOptions(); + } + + public static org.tensorflow.proto.RunOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunOptions 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 org.tensorflow.proto.RunOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RunOptionsOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RunOptionsOrBuilder.java similarity index 77% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RunOptionsOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RunOptionsOrBuilder.java index c3f4a9d7205..f134e6197a6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RunOptionsOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/RunOptionsOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/config.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface RunOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.RunOptions) @@ -9,12 +9,14 @@ public interface RunOptionsOrBuilder extends /** * .tensorflow.RunOptions.TraceLevel trace_level = 1; + * @return The enum numeric value on the wire for traceLevel. */ int getTraceLevelValue(); /** * .tensorflow.RunOptions.TraceLevel trace_level = 1; + * @return The traceLevel. */ - org.tensorflow.proto.framework.RunOptions.TraceLevel getTraceLevel(); + org.tensorflow.proto.RunOptions.TraceLevel getTraceLevel(); /** *
@@ -22,6 +24,7 @@ public interface RunOptionsOrBuilder extends
    * 
* * int64 timeout_in_ms = 2; + * @return The timeoutInMs. */ long getTimeoutInMs(); @@ -36,6 +39,7 @@ public interface RunOptionsOrBuilder extends *
* * int32 inter_op_thread_pool = 3; + * @return The interOpThreadPool. */ int getInterOpThreadPool(); @@ -46,6 +50,7 @@ public interface RunOptionsOrBuilder extends *
* * bool output_partition_graphs = 5; + * @return The outputPartitionGraphs. */ boolean getOutputPartitionGraphs(); @@ -55,6 +60,7 @@ public interface RunOptionsOrBuilder extends *
* * .tensorflow.DebugOptions debug_options = 6; + * @return Whether the debugOptions field is set. */ boolean hasDebugOptions(); /** @@ -63,8 +69,9 @@ public interface RunOptionsOrBuilder extends *
* * .tensorflow.DebugOptions debug_options = 6; + * @return The debugOptions. */ - org.tensorflow.proto.framework.DebugOptions getDebugOptions(); + org.tensorflow.proto.DebugOptions getDebugOptions(); /** *
    * EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
@@ -72,7 +79,7 @@ public interface RunOptionsOrBuilder extends
    *
    * .tensorflow.DebugOptions debug_options = 6;
    */
-  org.tensorflow.proto.framework.DebugOptionsOrBuilder getDebugOptionsOrBuilder();
+  org.tensorflow.proto.DebugOptionsOrBuilder getDebugOptionsOrBuilder();
 
   /**
    * 
@@ -83,19 +90,22 @@ public interface RunOptionsOrBuilder extends
    * 
* * bool report_tensor_allocations_upon_oom = 7; + * @return The reportTensorAllocationsUponOom. */ boolean getReportTensorAllocationsUponOom(); /** * .tensorflow.RunOptions.Experimental experimental = 8; + * @return Whether the experimental field is set. */ boolean hasExperimental(); /** * .tensorflow.RunOptions.Experimental experimental = 8; + * @return The experimental. */ - org.tensorflow.proto.framework.RunOptions.Experimental getExperimental(); + org.tensorflow.proto.RunOptions.Experimental getExperimental(); /** * .tensorflow.RunOptions.Experimental experimental = 8; */ - org.tensorflow.proto.framework.RunOptions.ExperimentalOrBuilder getExperimentalOrBuilder(); + org.tensorflow.proto.RunOptions.ExperimentalOrBuilder getExperimentalOrBuilder(); } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SaveSliceInfoDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SaveSliceInfoDef.java similarity index 75% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SaveSliceInfoDef.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SaveSliceInfoDef.java index 3cf8b1b4b12..5290dd772a9 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SaveSliceInfoDef.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SaveSliceInfoDef.java @@ -1,12 +1,12 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/variable.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; /** * Protobuf type {@code tensorflow.SaveSliceInfoDef} */ -public final class SaveSliceInfoDef extends +public final class SaveSliceInfoDef extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.SaveSliceInfoDef) SaveSliceInfoDefOrBuilder { @@ -34,133 +34,17 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private SaveSliceInfoDef( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - fullName_ = s; - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fullShape_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - fullShape_.addLong(input.readInt64()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - fullShape_ = newLongList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - fullShape_.addLong(input.readInt64()); - } - input.popLimit(limit); - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - varOffset_ = newLongList(); - mutable_bitField0_ |= 0x00000002; - } - varOffset_.addLong(input.readInt64()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { - varOffset_ = newLongList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - varOffset_.addLong(input.readInt64()); - } - input.popLimit(limit); - break; - } - case 32: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - varShape_ = newLongList(); - mutable_bitField0_ |= 0x00000004; - } - varShape_.addLong(input.readInt64()); - break; - } - case 34: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { - varShape_ = newLongList(); - mutable_bitField0_ |= 0x00000004; - } - while (input.getBytesUntilLimit() > 0) { - varShape_.addLong(input.readInt64()); - } - input.popLimit(limit); - 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)) { - fullShape_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - varOffset_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - varShape_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.VariableProtos.internal_static_tensorflow_SaveSliceInfoDef_descriptor; + return org.tensorflow.proto.VariableProtos.internal_static_tensorflow_SaveSliceInfoDef_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.VariableProtos.internal_static_tensorflow_SaveSliceInfoDef_fieldAccessorTable + return org.tensorflow.proto.VariableProtos.internal_static_tensorflow_SaveSliceInfoDef_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SaveSliceInfoDef.class, org.tensorflow.proto.framework.SaveSliceInfoDef.Builder.class); + org.tensorflow.proto.SaveSliceInfoDef.class, org.tensorflow.proto.SaveSliceInfoDef.Builder.class); } public static final int FULL_NAME_FIELD_NUMBER = 1; @@ -171,7 +55,9 @@ private SaveSliceInfoDef( *
* * string full_name = 1; + * @return The fullName. */ + @java.lang.Override public java.lang.String getFullName() { java.lang.Object ref = fullName_; if (ref instanceof java.lang.String) { @@ -190,7 +76,9 @@ public java.lang.String getFullName() { *
* * string full_name = 1; + * @return The bytes for fullName. */ + @java.lang.Override public com.google.protobuf.ByteString getFullNameBytes() { java.lang.Object ref = fullName_; @@ -213,7 +101,9 @@ public java.lang.String getFullName() { *
* * repeated int64 full_shape = 2; + * @return A list containing the fullShape. */ + @java.lang.Override public java.util.List getFullShapeList() { return fullShape_; @@ -224,6 +114,7 @@ public java.lang.String getFullName() { *
* * repeated int64 full_shape = 2; + * @return The count of fullShape. */ public int getFullShapeCount() { return fullShape_.size(); @@ -234,6 +125,8 @@ public int getFullShapeCount() { *
* * repeated int64 full_shape = 2; + * @param index The index of the element to return. + * @return The fullShape at the given index. */ public long getFullShape(int index) { return fullShape_.getLong(index); @@ -248,7 +141,9 @@ public long getFullShape(int index) { *
* * repeated int64 var_offset = 3; + * @return A list containing the varOffset. */ + @java.lang.Override public java.util.List getVarOffsetList() { return varOffset_; @@ -259,6 +154,7 @@ public long getFullShape(int index) { *
* * repeated int64 var_offset = 3; + * @return The count of varOffset. */ public int getVarOffsetCount() { return varOffset_.size(); @@ -269,6 +165,8 @@ public int getVarOffsetCount() { *
* * repeated int64 var_offset = 3; + * @param index The index of the element to return. + * @return The varOffset at the given index. */ public long getVarOffset(int index) { return varOffset_.getLong(index); @@ -283,7 +181,9 @@ public long getVarOffset(int index) { *
* * repeated int64 var_shape = 4; + * @return A list containing the varShape. */ + @java.lang.Override public java.util.List getVarShapeList() { return varShape_; @@ -294,6 +194,7 @@ public long getVarOffset(int index) { *
* * repeated int64 var_shape = 4; + * @return The count of varShape. */ public int getVarShapeCount() { return varShape_.size(); @@ -304,6 +205,8 @@ public int getVarShapeCount() { *
* * repeated int64 var_shape = 4; + * @param index The index of the element to return. + * @return The varShape at the given index. */ public long getVarShape(int index) { return varShape_.getLong(index); @@ -325,7 +228,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (!getFullNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullName_); } if (getFullShapeList().size() > 0) { @@ -349,7 +252,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < varShape_.size(); i++) { output.writeInt64NoTag(varShape_.getLong(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -358,7 +261,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getFullNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fullName_); } { @@ -403,7 +306,7 @@ public int getSerializedSize() { } varShapeMemoizedSerializedSize = dataSize; } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -413,10 +316,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.SaveSliceInfoDef)) { + if (!(obj instanceof org.tensorflow.proto.SaveSliceInfoDef)) { return super.equals(obj); } - org.tensorflow.proto.framework.SaveSliceInfoDef other = (org.tensorflow.proto.framework.SaveSliceInfoDef) obj; + org.tensorflow.proto.SaveSliceInfoDef other = (org.tensorflow.proto.SaveSliceInfoDef) obj; if (!getFullName() .equals(other.getFullName())) return false; @@ -426,7 +329,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getVarOffsetList())) return false; if (!getVarShapeList() .equals(other.getVarShapeList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -451,74 +354,74 @@ public int hashCode() { hash = (37 * hash) + VAR_SHAPE_FIELD_NUMBER; hash = (53 * hash) + getVarShapeList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.SaveSliceInfoDef parseFrom( + public static org.tensorflow.proto.SaveSliceInfoDef parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.SaveSliceInfoDef parseFrom( + public static org.tensorflow.proto.SaveSliceInfoDef parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.SaveSliceInfoDef parseFrom( + public static org.tensorflow.proto.SaveSliceInfoDef parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.SaveSliceInfoDef parseFrom( + public static org.tensorflow.proto.SaveSliceInfoDef parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.SaveSliceInfoDef parseFrom(byte[] data) + public static org.tensorflow.proto.SaveSliceInfoDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.SaveSliceInfoDef parseFrom( + public static org.tensorflow.proto.SaveSliceInfoDef parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.SaveSliceInfoDef parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.SaveSliceInfoDef parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.SaveSliceInfoDef parseFrom( + public static org.tensorflow.proto.SaveSliceInfoDef 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 org.tensorflow.proto.framework.SaveSliceInfoDef parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.SaveSliceInfoDef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.SaveSliceInfoDef parseDelimitedFrom( + public static org.tensorflow.proto.SaveSliceInfoDef 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 org.tensorflow.proto.framework.SaveSliceInfoDef parseFrom( + public static org.tensorflow.proto.SaveSliceInfoDef parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.SaveSliceInfoDef parseFrom( + public static org.tensorflow.proto.SaveSliceInfoDef parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -531,7 +434,7 @@ public static org.tensorflow.proto.framework.SaveSliceInfoDef parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.SaveSliceInfoDef prototype) { + public static Builder newBuilder(org.tensorflow.proto.SaveSliceInfoDef prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -552,34 +455,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.SaveSliceInfoDef) - org.tensorflow.proto.framework.SaveSliceInfoDefOrBuilder { + org.tensorflow.proto.SaveSliceInfoDefOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.VariableProtos.internal_static_tensorflow_SaveSliceInfoDef_descriptor; + return org.tensorflow.proto.VariableProtos.internal_static_tensorflow_SaveSliceInfoDef_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.VariableProtos.internal_static_tensorflow_SaveSliceInfoDef_fieldAccessorTable + return org.tensorflow.proto.VariableProtos.internal_static_tensorflow_SaveSliceInfoDef_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.SaveSliceInfoDef.class, org.tensorflow.proto.framework.SaveSliceInfoDef.Builder.class); + org.tensorflow.proto.SaveSliceInfoDef.class, org.tensorflow.proto.SaveSliceInfoDef.Builder.class); } - // Construct using org.tensorflow.proto.framework.SaveSliceInfoDef.newBuilder() + // Construct using org.tensorflow.proto.SaveSliceInfoDef.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -598,17 +496,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.VariableProtos.internal_static_tensorflow_SaveSliceInfoDef_descriptor; + return org.tensorflow.proto.VariableProtos.internal_static_tensorflow_SaveSliceInfoDef_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.SaveSliceInfoDef getDefaultInstanceForType() { - return org.tensorflow.proto.framework.SaveSliceInfoDef.getDefaultInstance(); + public org.tensorflow.proto.SaveSliceInfoDef getDefaultInstanceForType() { + return org.tensorflow.proto.SaveSliceInfoDef.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.SaveSliceInfoDef build() { - org.tensorflow.proto.framework.SaveSliceInfoDef result = buildPartial(); + public org.tensorflow.proto.SaveSliceInfoDef build() { + org.tensorflow.proto.SaveSliceInfoDef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -616,8 +514,8 @@ public org.tensorflow.proto.framework.SaveSliceInfoDef build() { } @java.lang.Override - public org.tensorflow.proto.framework.SaveSliceInfoDef buildPartial() { - org.tensorflow.proto.framework.SaveSliceInfoDef result = new org.tensorflow.proto.framework.SaveSliceInfoDef(this); + public org.tensorflow.proto.SaveSliceInfoDef buildPartial() { + org.tensorflow.proto.SaveSliceInfoDef result = new org.tensorflow.proto.SaveSliceInfoDef(this); int from_bitField0_ = bitField0_; result.fullName_ = fullName_; if (((bitField0_ & 0x00000001) != 0)) { @@ -673,16 +571,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.SaveSliceInfoDef) { - return mergeFrom((org.tensorflow.proto.framework.SaveSliceInfoDef)other); + if (other instanceof org.tensorflow.proto.SaveSliceInfoDef) { + return mergeFrom((org.tensorflow.proto.SaveSliceInfoDef)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.SaveSliceInfoDef other) { - if (other == org.tensorflow.proto.framework.SaveSliceInfoDef.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.SaveSliceInfoDef other) { + if (other == org.tensorflow.proto.SaveSliceInfoDef.getDefaultInstance()) return this; if (!other.getFullName().isEmpty()) { fullName_ = other.fullName_; onChanged(); @@ -717,7 +615,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.SaveSliceInfoDef other) } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -732,17 +630,83 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.SaveSliceInfoDef parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + fullName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + long v = input.readInt64(); + ensureFullShapeIsMutable(); + fullShape_.addLong(v); + break; + } // case 16 + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureFullShapeIsMutable(); + while (input.getBytesUntilLimit() > 0) { + fullShape_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 18 + case 24: { + long v = input.readInt64(); + ensureVarOffsetIsMutable(); + varOffset_.addLong(v); + break; + } // case 24 + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureVarOffsetIsMutable(); + while (input.getBytesUntilLimit() > 0) { + varOffset_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 26 + case 32: { + long v = input.readInt64(); + ensureVarShapeIsMutable(); + varShape_.addLong(v); + break; + } // case 32 + case 34: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureVarShapeIsMutable(); + while (input.getBytesUntilLimit() > 0) { + varShape_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 34 + 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) { - parsedMessage = (org.tensorflow.proto.framework.SaveSliceInfoDef) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -754,6 +718,7 @@ public Builder mergeFrom( *
* * string full_name = 1; + * @return The fullName. */ public java.lang.String getFullName() { java.lang.Object ref = fullName_; @@ -773,6 +738,7 @@ public java.lang.String getFullName() { *
* * string full_name = 1; + * @return The bytes for fullName. */ public com.google.protobuf.ByteString getFullNameBytes() { @@ -793,6 +759,8 @@ public java.lang.String getFullName() { *
* * string full_name = 1; + * @param value The fullName to set. + * @return This builder for chaining. */ public Builder setFullName( java.lang.String value) { @@ -810,6 +778,7 @@ public Builder setFullName( *
* * string full_name = 1; + * @return This builder for chaining. */ public Builder clearFullName() { @@ -823,6 +792,8 @@ public Builder clearFullName() { *
* * string full_name = 1; + * @param value The bytes for fullName to set. + * @return This builder for chaining. */ public Builder setFullNameBytes( com.google.protobuf.ByteString value) { @@ -849,6 +820,7 @@ private void ensureFullShapeIsMutable() { *
* * repeated int64 full_shape = 2; + * @return A list containing the fullShape. */ public java.util.List getFullShapeList() { @@ -861,6 +833,7 @@ private void ensureFullShapeIsMutable() { *
* * repeated int64 full_shape = 2; + * @return The count of fullShape. */ public int getFullShapeCount() { return fullShape_.size(); @@ -871,6 +844,8 @@ public int getFullShapeCount() { *
* * repeated int64 full_shape = 2; + * @param index The index of the element to return. + * @return The fullShape at the given index. */ public long getFullShape(int index) { return fullShape_.getLong(index); @@ -881,6 +856,9 @@ public long getFullShape(int index) { * * * repeated int64 full_shape = 2; + * @param index The index to set the value at. + * @param value The fullShape to set. + * @return This builder for chaining. */ public Builder setFullShape( int index, long value) { @@ -895,6 +873,8 @@ public Builder setFullShape( * * * repeated int64 full_shape = 2; + * @param value The fullShape to add. + * @return This builder for chaining. */ public Builder addFullShape(long value) { ensureFullShapeIsMutable(); @@ -908,6 +888,8 @@ public Builder addFullShape(long value) { * * * repeated int64 full_shape = 2; + * @param values The fullShape to add. + * @return This builder for chaining. */ public Builder addAllFullShape( java.lang.Iterable values) { @@ -923,6 +905,7 @@ public Builder addAllFullShape( * * * repeated int64 full_shape = 2; + * @return This builder for chaining. */ public Builder clearFullShape() { fullShape_ = emptyLongList(); @@ -944,6 +927,7 @@ private void ensureVarOffsetIsMutable() { * * * repeated int64 var_offset = 3; + * @return A list containing the varOffset. */ public java.util.List getVarOffsetList() { @@ -956,6 +940,7 @@ private void ensureVarOffsetIsMutable() { * * * repeated int64 var_offset = 3; + * @return The count of varOffset. */ public int getVarOffsetCount() { return varOffset_.size(); @@ -966,6 +951,8 @@ public int getVarOffsetCount() { * * * repeated int64 var_offset = 3; + * @param index The index of the element to return. + * @return The varOffset at the given index. */ public long getVarOffset(int index) { return varOffset_.getLong(index); @@ -976,6 +963,9 @@ public long getVarOffset(int index) { * * * repeated int64 var_offset = 3; + * @param index The index to set the value at. + * @param value The varOffset to set. + * @return This builder for chaining. */ public Builder setVarOffset( int index, long value) { @@ -990,6 +980,8 @@ public Builder setVarOffset( * * * repeated int64 var_offset = 3; + * @param value The varOffset to add. + * @return This builder for chaining. */ public Builder addVarOffset(long value) { ensureVarOffsetIsMutable(); @@ -1003,6 +995,8 @@ public Builder addVarOffset(long value) { * * * repeated int64 var_offset = 3; + * @param values The varOffset to add. + * @return This builder for chaining. */ public Builder addAllVarOffset( java.lang.Iterable values) { @@ -1018,6 +1012,7 @@ public Builder addAllVarOffset( * * * repeated int64 var_offset = 3; + * @return This builder for chaining. */ public Builder clearVarOffset() { varOffset_ = emptyLongList(); @@ -1039,6 +1034,7 @@ private void ensureVarShapeIsMutable() { * * * repeated int64 var_shape = 4; + * @return A list containing the varShape. */ public java.util.List getVarShapeList() { @@ -1051,6 +1047,7 @@ private void ensureVarShapeIsMutable() { * * * repeated int64 var_shape = 4; + * @return The count of varShape. */ public int getVarShapeCount() { return varShape_.size(); @@ -1061,6 +1058,8 @@ public int getVarShapeCount() { * * * repeated int64 var_shape = 4; + * @param index The index of the element to return. + * @return The varShape at the given index. */ public long getVarShape(int index) { return varShape_.getLong(index); @@ -1071,6 +1070,9 @@ public long getVarShape(int index) { * * * repeated int64 var_shape = 4; + * @param index The index to set the value at. + * @param value The varShape to set. + * @return This builder for chaining. */ public Builder setVarShape( int index, long value) { @@ -1085,6 +1087,8 @@ public Builder setVarShape( * * * repeated int64 var_shape = 4; + * @param value The varShape to add. + * @return This builder for chaining. */ public Builder addVarShape(long value) { ensureVarShapeIsMutable(); @@ -1098,6 +1102,8 @@ public Builder addVarShape(long value) { * * * repeated int64 var_shape = 4; + * @param values The varShape to add. + * @return This builder for chaining. */ public Builder addAllVarShape( java.lang.Iterable values) { @@ -1113,6 +1119,7 @@ public Builder addAllVarShape( * * * repeated int64 var_shape = 4; + * @return This builder for chaining. */ public Builder clearVarShape() { varShape_ = emptyLongList(); @@ -1137,12 +1144,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.SaveSliceInfoDef) - private static final org.tensorflow.proto.framework.SaveSliceInfoDef DEFAULT_INSTANCE; + private static final org.tensorflow.proto.SaveSliceInfoDef DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.SaveSliceInfoDef(); + DEFAULT_INSTANCE = new org.tensorflow.proto.SaveSliceInfoDef(); } - public static org.tensorflow.proto.framework.SaveSliceInfoDef getDefaultInstance() { + public static org.tensorflow.proto.SaveSliceInfoDef getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1153,7 +1160,18 @@ public SaveSliceInfoDef parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SaveSliceInfoDef(input, extensionRegistry); + 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(); } }; @@ -1167,7 +1185,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.SaveSliceInfoDef getDefaultInstanceForType() { + public org.tensorflow.proto.SaveSliceInfoDef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SaveSliceInfoDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SaveSliceInfoDefOrBuilder.java similarity index 76% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SaveSliceInfoDefOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SaveSliceInfoDefOrBuilder.java index c06b53fbb61..9ae06d9794f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SaveSliceInfoDefOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SaveSliceInfoDefOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/variable.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface SaveSliceInfoDefOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.SaveSliceInfoDef) @@ -13,6 +13,7 @@ public interface SaveSliceInfoDefOrBuilder extends * * * string full_name = 1; + * @return The fullName. */ java.lang.String getFullName(); /** @@ -21,6 +22,7 @@ public interface SaveSliceInfoDefOrBuilder extends * * * string full_name = 1; + * @return The bytes for fullName. */ com.google.protobuf.ByteString getFullNameBytes(); @@ -31,6 +33,7 @@ public interface SaveSliceInfoDefOrBuilder extends * * * repeated int64 full_shape = 2; + * @return A list containing the fullShape. */ java.util.List getFullShapeList(); /** @@ -39,6 +42,7 @@ public interface SaveSliceInfoDefOrBuilder extends * * * repeated int64 full_shape = 2; + * @return The count of fullShape. */ int getFullShapeCount(); /** @@ -47,6 +51,8 @@ public interface SaveSliceInfoDefOrBuilder extends * * * repeated int64 full_shape = 2; + * @param index The index of the element to return. + * @return The fullShape at the given index. */ long getFullShape(int index); @@ -56,6 +62,7 @@ public interface SaveSliceInfoDefOrBuilder extends * * * repeated int64 var_offset = 3; + * @return A list containing the varOffset. */ java.util.List getVarOffsetList(); /** @@ -64,6 +71,7 @@ public interface SaveSliceInfoDefOrBuilder extends * * * repeated int64 var_offset = 3; + * @return The count of varOffset. */ int getVarOffsetCount(); /** @@ -72,6 +80,8 @@ public interface SaveSliceInfoDefOrBuilder extends * * * repeated int64 var_offset = 3; + * @param index The index of the element to return. + * @return The varOffset at the given index. */ long getVarOffset(int index); @@ -81,6 +91,7 @@ public interface SaveSliceInfoDefOrBuilder extends * * * repeated int64 var_shape = 4; + * @return A list containing the varShape. */ java.util.List getVarShapeList(); /** @@ -89,6 +100,7 @@ public interface SaveSliceInfoDefOrBuilder extends * * * repeated int64 var_shape = 4; + * @return The count of varShape. */ int getVarShapeCount(); /** @@ -97,6 +109,8 @@ public interface SaveSliceInfoDefOrBuilder extends * * * repeated int64 var_shape = 4; + * @param index The index of the element to return. + * @return The varShape at the given index. */ long getVarShape(int index); } diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedModel.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedModel.java new file mode 100644 index 00000000000..f10d6473dd8 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedModel.java @@ -0,0 +1,943 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/saved_model.proto + +package org.tensorflow.proto; + +/** + *
+ * SavedModel is the high level serialization format for TensorFlow Models.
+ * See [todo: doc links, similar to session_bundle] for more information.
+ * 
+ * + * Protobuf type {@code tensorflow.SavedModel} + */ +public final class SavedModel extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SavedModel) + SavedModelOrBuilder { +private static final long serialVersionUID = 0L; + // Use SavedModel.newBuilder() to construct. + private SavedModel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SavedModel() { + metaGraphs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SavedModel(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedModelProtos.internal_static_tensorflow_SavedModel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedModelProtos.internal_static_tensorflow_SavedModel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedModel.class, org.tensorflow.proto.SavedModel.Builder.class); + } + + public static final int SAVED_MODEL_SCHEMA_VERSION_FIELD_NUMBER = 1; + private long savedModelSchemaVersion_; + /** + *
+   * The schema version of the SavedModel instance. Used for versioning when
+   * making future changes to the specification/implementation. Initial value
+   * at release will be 1.
+   * 
+ * + * int64 saved_model_schema_version = 1; + * @return The savedModelSchemaVersion. + */ + @java.lang.Override + public long getSavedModelSchemaVersion() { + return savedModelSchemaVersion_; + } + + public static final int META_GRAPHS_FIELD_NUMBER = 2; + private java.util.List metaGraphs_; + /** + *
+   * One or more MetaGraphs.
+   * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + @java.lang.Override + public java.util.List getMetaGraphsList() { + return metaGraphs_; + } + /** + *
+   * One or more MetaGraphs.
+   * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + @java.lang.Override + public java.util.List + getMetaGraphsOrBuilderList() { + return metaGraphs_; + } + /** + *
+   * One or more MetaGraphs.
+   * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + @java.lang.Override + public int getMetaGraphsCount() { + return metaGraphs_.size(); + } + /** + *
+   * One or more MetaGraphs.
+   * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + @java.lang.Override + public org.tensorflow.proto.MetaGraphDef getMetaGraphs(int index) { + return metaGraphs_.get(index); + } + /** + *
+   * One or more MetaGraphs.
+   * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + @java.lang.Override + public org.tensorflow.proto.MetaGraphDefOrBuilder getMetaGraphsOrBuilder( + int index) { + return metaGraphs_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (savedModelSchemaVersion_ != 0L) { + output.writeInt64(1, savedModelSchemaVersion_); + } + for (int i = 0; i < metaGraphs_.size(); i++) { + output.writeMessage(2, metaGraphs_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (savedModelSchemaVersion_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, savedModelSchemaVersion_); + } + for (int i = 0; i < metaGraphs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, metaGraphs_.get(i)); + } + 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 org.tensorflow.proto.SavedModel)) { + return super.equals(obj); + } + org.tensorflow.proto.SavedModel other = (org.tensorflow.proto.SavedModel) obj; + + if (getSavedModelSchemaVersion() + != other.getSavedModelSchemaVersion()) return false; + if (!getMetaGraphsList() + .equals(other.getMetaGraphsList())) 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) + SAVED_MODEL_SCHEMA_VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSavedModelSchemaVersion()); + if (getMetaGraphsCount() > 0) { + hash = (37 * hash) + META_GRAPHS_FIELD_NUMBER; + hash = (53 * hash) + getMetaGraphsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SavedModel parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedModel parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedModel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedModel parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedModel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedModel parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedModel parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedModel 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 org.tensorflow.proto.SavedModel parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedModel 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 org.tensorflow.proto.SavedModel parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedModel 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(org.tensorflow.proto.SavedModel 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; + } + /** + *
+   * SavedModel is the high level serialization format for TensorFlow Models.
+   * See [todo: doc links, similar to session_bundle] for more information.
+   * 
+ * + * Protobuf type {@code tensorflow.SavedModel} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SavedModel) + org.tensorflow.proto.SavedModelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedModelProtos.internal_static_tensorflow_SavedModel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedModelProtos.internal_static_tensorflow_SavedModel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedModel.class, org.tensorflow.proto.SavedModel.Builder.class); + } + + // Construct using org.tensorflow.proto.SavedModel.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + savedModelSchemaVersion_ = 0L; + + if (metaGraphsBuilder_ == null) { + metaGraphs_ = java.util.Collections.emptyList(); + } else { + metaGraphs_ = null; + metaGraphsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.SavedModelProtos.internal_static_tensorflow_SavedModel_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SavedModel getDefaultInstanceForType() { + return org.tensorflow.proto.SavedModel.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SavedModel build() { + org.tensorflow.proto.SavedModel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SavedModel buildPartial() { + org.tensorflow.proto.SavedModel result = new org.tensorflow.proto.SavedModel(this); + int from_bitField0_ = bitField0_; + result.savedModelSchemaVersion_ = savedModelSchemaVersion_; + if (metaGraphsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + metaGraphs_ = java.util.Collections.unmodifiableList(metaGraphs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.metaGraphs_ = metaGraphs_; + } else { + result.metaGraphs_ = metaGraphsBuilder_.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 org.tensorflow.proto.SavedModel) { + return mergeFrom((org.tensorflow.proto.SavedModel)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SavedModel other) { + if (other == org.tensorflow.proto.SavedModel.getDefaultInstance()) return this; + if (other.getSavedModelSchemaVersion() != 0L) { + setSavedModelSchemaVersion(other.getSavedModelSchemaVersion()); + } + if (metaGraphsBuilder_ == null) { + if (!other.metaGraphs_.isEmpty()) { + if (metaGraphs_.isEmpty()) { + metaGraphs_ = other.metaGraphs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMetaGraphsIsMutable(); + metaGraphs_.addAll(other.metaGraphs_); + } + onChanged(); + } + } else { + if (!other.metaGraphs_.isEmpty()) { + if (metaGraphsBuilder_.isEmpty()) { + metaGraphsBuilder_.dispose(); + metaGraphsBuilder_ = null; + metaGraphs_ = other.metaGraphs_; + bitField0_ = (bitField0_ & ~0x00000001); + metaGraphsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMetaGraphsFieldBuilder() : null; + } else { + metaGraphsBuilder_.addAllMessages(other.metaGraphs_); + } + } + } + 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: { + savedModelSchemaVersion_ = input.readInt64(); + + break; + } // case 8 + case 18: { + org.tensorflow.proto.MetaGraphDef m = + input.readMessage( + org.tensorflow.proto.MetaGraphDef.parser(), + extensionRegistry); + if (metaGraphsBuilder_ == null) { + ensureMetaGraphsIsMutable(); + metaGraphs_.add(m); + } else { + metaGraphsBuilder_.addMessage(m); + } + 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 long savedModelSchemaVersion_ ; + /** + *
+     * The schema version of the SavedModel instance. Used for versioning when
+     * making future changes to the specification/implementation. Initial value
+     * at release will be 1.
+     * 
+ * + * int64 saved_model_schema_version = 1; + * @return The savedModelSchemaVersion. + */ + @java.lang.Override + public long getSavedModelSchemaVersion() { + return savedModelSchemaVersion_; + } + /** + *
+     * The schema version of the SavedModel instance. Used for versioning when
+     * making future changes to the specification/implementation. Initial value
+     * at release will be 1.
+     * 
+ * + * int64 saved_model_schema_version = 1; + * @param value The savedModelSchemaVersion to set. + * @return This builder for chaining. + */ + public Builder setSavedModelSchemaVersion(long value) { + + savedModelSchemaVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * The schema version of the SavedModel instance. Used for versioning when
+     * making future changes to the specification/implementation. Initial value
+     * at release will be 1.
+     * 
+ * + * int64 saved_model_schema_version = 1; + * @return This builder for chaining. + */ + public Builder clearSavedModelSchemaVersion() { + + savedModelSchemaVersion_ = 0L; + onChanged(); + return this; + } + + private java.util.List metaGraphs_ = + java.util.Collections.emptyList(); + private void ensureMetaGraphsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + metaGraphs_ = new java.util.ArrayList(metaGraphs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.MetaGraphDef, org.tensorflow.proto.MetaGraphDef.Builder, org.tensorflow.proto.MetaGraphDefOrBuilder> metaGraphsBuilder_; + + /** + *
+     * One or more MetaGraphs.
+     * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + public java.util.List getMetaGraphsList() { + if (metaGraphsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metaGraphs_); + } else { + return metaGraphsBuilder_.getMessageList(); + } + } + /** + *
+     * One or more MetaGraphs.
+     * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + public int getMetaGraphsCount() { + if (metaGraphsBuilder_ == null) { + return metaGraphs_.size(); + } else { + return metaGraphsBuilder_.getCount(); + } + } + /** + *
+     * One or more MetaGraphs.
+     * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + public org.tensorflow.proto.MetaGraphDef getMetaGraphs(int index) { + if (metaGraphsBuilder_ == null) { + return metaGraphs_.get(index); + } else { + return metaGraphsBuilder_.getMessage(index); + } + } + /** + *
+     * One or more MetaGraphs.
+     * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + public Builder setMetaGraphs( + int index, org.tensorflow.proto.MetaGraphDef value) { + if (metaGraphsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetaGraphsIsMutable(); + metaGraphs_.set(index, value); + onChanged(); + } else { + metaGraphsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * One or more MetaGraphs.
+     * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + public Builder setMetaGraphs( + int index, org.tensorflow.proto.MetaGraphDef.Builder builderForValue) { + if (metaGraphsBuilder_ == null) { + ensureMetaGraphsIsMutable(); + metaGraphs_.set(index, builderForValue.build()); + onChanged(); + } else { + metaGraphsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * One or more MetaGraphs.
+     * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + public Builder addMetaGraphs(org.tensorflow.proto.MetaGraphDef value) { + if (metaGraphsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetaGraphsIsMutable(); + metaGraphs_.add(value); + onChanged(); + } else { + metaGraphsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * One or more MetaGraphs.
+     * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + public Builder addMetaGraphs( + int index, org.tensorflow.proto.MetaGraphDef value) { + if (metaGraphsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetaGraphsIsMutable(); + metaGraphs_.add(index, value); + onChanged(); + } else { + metaGraphsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * One or more MetaGraphs.
+     * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + public Builder addMetaGraphs( + org.tensorflow.proto.MetaGraphDef.Builder builderForValue) { + if (metaGraphsBuilder_ == null) { + ensureMetaGraphsIsMutable(); + metaGraphs_.add(builderForValue.build()); + onChanged(); + } else { + metaGraphsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * One or more MetaGraphs.
+     * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + public Builder addMetaGraphs( + int index, org.tensorflow.proto.MetaGraphDef.Builder builderForValue) { + if (metaGraphsBuilder_ == null) { + ensureMetaGraphsIsMutable(); + metaGraphs_.add(index, builderForValue.build()); + onChanged(); + } else { + metaGraphsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * One or more MetaGraphs.
+     * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + public Builder addAllMetaGraphs( + java.lang.Iterable values) { + if (metaGraphsBuilder_ == null) { + ensureMetaGraphsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, metaGraphs_); + onChanged(); + } else { + metaGraphsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * One or more MetaGraphs.
+     * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + public Builder clearMetaGraphs() { + if (metaGraphsBuilder_ == null) { + metaGraphs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + metaGraphsBuilder_.clear(); + } + return this; + } + /** + *
+     * One or more MetaGraphs.
+     * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + public Builder removeMetaGraphs(int index) { + if (metaGraphsBuilder_ == null) { + ensureMetaGraphsIsMutable(); + metaGraphs_.remove(index); + onChanged(); + } else { + metaGraphsBuilder_.remove(index); + } + return this; + } + /** + *
+     * One or more MetaGraphs.
+     * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + public org.tensorflow.proto.MetaGraphDef.Builder getMetaGraphsBuilder( + int index) { + return getMetaGraphsFieldBuilder().getBuilder(index); + } + /** + *
+     * One or more MetaGraphs.
+     * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + public org.tensorflow.proto.MetaGraphDefOrBuilder getMetaGraphsOrBuilder( + int index) { + if (metaGraphsBuilder_ == null) { + return metaGraphs_.get(index); } else { + return metaGraphsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * One or more MetaGraphs.
+     * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + public java.util.List + getMetaGraphsOrBuilderList() { + if (metaGraphsBuilder_ != null) { + return metaGraphsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metaGraphs_); + } + } + /** + *
+     * One or more MetaGraphs.
+     * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + public org.tensorflow.proto.MetaGraphDef.Builder addMetaGraphsBuilder() { + return getMetaGraphsFieldBuilder().addBuilder( + org.tensorflow.proto.MetaGraphDef.getDefaultInstance()); + } + /** + *
+     * One or more MetaGraphs.
+     * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + public org.tensorflow.proto.MetaGraphDef.Builder addMetaGraphsBuilder( + int index) { + return getMetaGraphsFieldBuilder().addBuilder( + index, org.tensorflow.proto.MetaGraphDef.getDefaultInstance()); + } + /** + *
+     * One or more MetaGraphs.
+     * 
+ * + * repeated .tensorflow.MetaGraphDef meta_graphs = 2; + */ + public java.util.List + getMetaGraphsBuilderList() { + return getMetaGraphsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.MetaGraphDef, org.tensorflow.proto.MetaGraphDef.Builder, org.tensorflow.proto.MetaGraphDefOrBuilder> + getMetaGraphsFieldBuilder() { + if (metaGraphsBuilder_ == null) { + metaGraphsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.MetaGraphDef, org.tensorflow.proto.MetaGraphDef.Builder, org.tensorflow.proto.MetaGraphDefOrBuilder>( + metaGraphs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + metaGraphs_ = null; + } + return metaGraphsBuilder_; + } + @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:tensorflow.SavedModel) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SavedModel) + private static final org.tensorflow.proto.SavedModel DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SavedModel(); + } + + public static org.tensorflow.proto.SavedModel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SavedModel 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 org.tensorflow.proto.SavedModel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedModelOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedModelOrBuilder.java similarity index 80% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedModelOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedModelOrBuilder.java index 9714aee34dd..d2168822f0a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedModelOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedModelOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/saved_model.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface SavedModelOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.SavedModel) @@ -15,6 +15,7 @@ public interface SavedModelOrBuilder extends * * * int64 saved_model_schema_version = 1; + * @return The savedModelSchemaVersion. */ long getSavedModelSchemaVersion(); @@ -25,7 +26,7 @@ public interface SavedModelOrBuilder extends * * repeated .tensorflow.MetaGraphDef meta_graphs = 2; */ - java.util.List + java.util.List getMetaGraphsList(); /** *
@@ -34,7 +35,7 @@ public interface SavedModelOrBuilder extends
    *
    * repeated .tensorflow.MetaGraphDef meta_graphs = 2;
    */
-  org.tensorflow.proto.framework.MetaGraphDef getMetaGraphs(int index);
+  org.tensorflow.proto.MetaGraphDef getMetaGraphs(int index);
   /**
    * 
    * One or more MetaGraphs.
@@ -50,7 +51,7 @@ public interface SavedModelOrBuilder extends
    *
    * repeated .tensorflow.MetaGraphDef meta_graphs = 2;
    */
-  java.util.List 
+  java.util.List 
       getMetaGraphsOrBuilderList();
   /**
    * 
@@ -59,6 +60,6 @@ public interface SavedModelOrBuilder extends
    *
    * repeated .tensorflow.MetaGraphDef meta_graphs = 2;
    */
-  org.tensorflow.proto.framework.MetaGraphDefOrBuilder getMetaGraphsOrBuilder(
+  org.tensorflow.proto.MetaGraphDefOrBuilder getMetaGraphsOrBuilder(
       int index);
 }
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedModelProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedModelProtos.java
similarity index 80%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedModelProtos.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedModelProtos.java
index 9067e27030c..1ae80350568 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SavedModelProtos.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedModelProtos.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/protobuf/saved_model.proto
 
-package org.tensorflow.proto.framework;
+package org.tensorflow.proto;
 
 public final class SavedModelProtos {
   private SavedModelProtos() {}
@@ -32,16 +32,16 @@ public static void registerAllExtensions(
       "roto\022\ntensorflow\032)tensorflow/core/protob" +
       "uf/meta_graph.proto\"_\n\nSavedModel\022\"\n\032sav" +
       "ed_model_schema_version\030\001 \001(\003\022-\n\013meta_gr" +
-      "aphs\030\002 \003(\0132\030.tensorflow.MetaGraphDefB\216\001\n" +
-      "\036org.tensorflow.proto.frameworkB\020SavedMo" +
-      "delProtosP\001ZUgithub.com/tensorflow/tenso" +
-      "rflow/tensorflow/go/core/protobuf/for_co" +
-      "re_protos_go_proto\370\001\001b\006proto3"
+      "aphs\030\002 \003(\0132\030.tensorflow.MetaGraphDefB\204\001\n" +
+      "\024org.tensorflow.protoB\020SavedModelProtosP" +
+      "\001ZUgithub.com/tensorflow/tensorflow/tens" +
+      "orflow/go/core/protobuf/for_core_protos_" +
+      "go_proto\370\001\001b\006proto3"
     };
     descriptor = com.google.protobuf.Descriptors.FileDescriptor
       .internalBuildGeneratedFileFrom(descriptorData,
         new com.google.protobuf.Descriptors.FileDescriptor[] {
-          org.tensorflow.proto.framework.MetaGraphProtos.getDescriptor(),
+          org.tensorflow.proto.MetaGraphProtos.getDescriptor(),
         });
     internal_static_tensorflow_SavedModel_descriptor =
       getDescriptor().getMessageTypes().get(0);
@@ -49,7 +49,7 @@ public static void registerAllExtensions(
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_tensorflow_SavedModel_descriptor,
         new java.lang.String[] { "SavedModelSchemaVersion", "MetaGraphs", });
-    org.tensorflow.proto.framework.MetaGraphProtos.getDescriptor();
+    org.tensorflow.proto.MetaGraphProtos.getDescriptor();
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedObjectGraphOuterClass.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedObjectGraphOuterClass.java
new file mode 100644
index 00000000000..b58668cf5d8
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedObjectGraphOuterClass.java
@@ -0,0 +1,17207 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/protobuf/saved_object_graph.proto
+
+package org.tensorflow.proto;
+
+public final class SavedObjectGraphOuterClass {
+  private SavedObjectGraphOuterClass() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  public interface SavedObjectGraphOrBuilder extends
+      // @@protoc_insertion_point(interface_extends:tensorflow.SavedObjectGraph)
+      com.google.protobuf.MessageOrBuilder {
+
+    /**
+     * 
+     * Flattened list of objects in the object graph.
+     * The position of the object in this list indicates its id.
+     * Nodes[0] is considered the root node.
+     * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + java.util.List + getNodesList(); + /** + *
+     * Flattened list of objects in the object graph.
+     * The position of the object in this list indicates its id.
+     * Nodes[0] is considered the root node.
+     * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject getNodes(int index); + /** + *
+     * Flattened list of objects in the object graph.
+     * The position of the object in this list indicates its id.
+     * Nodes[0] is considered the root node.
+     * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + int getNodesCount(); + /** + *
+     * Flattened list of objects in the object graph.
+     * The position of the object in this list indicates its id.
+     * Nodes[0] is considered the root node.
+     * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + java.util.List + getNodesOrBuilderList(); + /** + *
+     * Flattened list of objects in the object graph.
+     * The position of the object in this list indicates its id.
+     * Nodes[0] is considered the root node.
+     * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectOrBuilder getNodesOrBuilder( + int index); + + /** + *
+     * Information about captures and output structures in concrete functions.
+     * Referenced from SavedBareConcreteFunction and SavedFunction.
+     * 
+ * + * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; + */ + int getConcreteFunctionsCount(); + /** + *
+     * Information about captures and output structures in concrete functions.
+     * Referenced from SavedBareConcreteFunction and SavedFunction.
+     * 
+ * + * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; + */ + boolean containsConcreteFunctions( + java.lang.String key); + /** + * Use {@link #getConcreteFunctionsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getConcreteFunctions(); + /** + *
+     * Information about captures and output structures in concrete functions.
+     * Referenced from SavedBareConcreteFunction and SavedFunction.
+     * 
+ * + * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; + */ + java.util.Map + getConcreteFunctionsMap(); + /** + *
+     * Information about captures and output structures in concrete functions.
+     * Referenced from SavedBareConcreteFunction and SavedFunction.
+     * 
+ * + * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; + */ + + /* nullable */ +org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction getConcreteFunctionsOrDefault( + java.lang.String key, + /* nullable */ +org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction defaultValue); + /** + *
+     * Information about captures and output structures in concrete functions.
+     * Referenced from SavedBareConcreteFunction and SavedFunction.
+     * 
+ * + * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; + */ + + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction getConcreteFunctionsOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code tensorflow.SavedObjectGraph} + */ + public static final class SavedObjectGraph extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SavedObjectGraph) + SavedObjectGraphOrBuilder { + private static final long serialVersionUID = 0L; + // Use SavedObjectGraph.newBuilder() to construct. + private SavedObjectGraph(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SavedObjectGraph() { + nodes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SavedObjectGraph(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedObjectGraph_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetConcreteFunctions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedObjectGraph_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph.class, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph.Builder.class); + } + + public static final int NODES_FIELD_NUMBER = 1; + private java.util.List nodes_; + /** + *
+     * Flattened list of objects in the object graph.
+     * The position of the object in this list indicates its id.
+     * Nodes[0] is considered the root node.
+     * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + @java.lang.Override + public java.util.List getNodesList() { + return nodes_; + } + /** + *
+     * Flattened list of objects in the object graph.
+     * The position of the object in this list indicates its id.
+     * Nodes[0] is considered the root node.
+     * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + @java.lang.Override + public java.util.List + getNodesOrBuilderList() { + return nodes_; + } + /** + *
+     * Flattened list of objects in the object graph.
+     * The position of the object in this list indicates its id.
+     * Nodes[0] is considered the root node.
+     * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + @java.lang.Override + public int getNodesCount() { + return nodes_.size(); + } + /** + *
+     * Flattened list of objects in the object graph.
+     * The position of the object in this list indicates its id.
+     * Nodes[0] is considered the root node.
+     * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject getNodes(int index) { + return nodes_.get(index); + } + /** + *
+     * Flattened list of objects in the object graph.
+     * The position of the object in this list indicates its id.
+     * Nodes[0] is considered the root node.
+     * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectOrBuilder getNodesOrBuilder( + int index) { + return nodes_.get(index); + } + + public static final int CONCRETE_FUNCTIONS_FIELD_NUMBER = 2; + private static final class ConcreteFunctionsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedObjectGraph_ConcreteFunctionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction> concreteFunctions_; + private com.google.protobuf.MapField + internalGetConcreteFunctions() { + if (concreteFunctions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConcreteFunctionsDefaultEntryHolder.defaultEntry); + } + return concreteFunctions_; + } + + public int getConcreteFunctionsCount() { + return internalGetConcreteFunctions().getMap().size(); + } + /** + *
+     * Information about captures and output structures in concrete functions.
+     * Referenced from SavedBareConcreteFunction and SavedFunction.
+     * 
+ * + * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; + */ + + @java.lang.Override + public boolean containsConcreteFunctions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetConcreteFunctions().getMap().containsKey(key); + } + /** + * Use {@link #getConcreteFunctionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getConcreteFunctions() { + return getConcreteFunctionsMap(); + } + /** + *
+     * Information about captures and output structures in concrete functions.
+     * Referenced from SavedBareConcreteFunction and SavedFunction.
+     * 
+ * + * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; + */ + @java.lang.Override + + public java.util.Map getConcreteFunctionsMap() { + return internalGetConcreteFunctions().getMap(); + } + /** + *
+     * Information about captures and output structures in concrete functions.
+     * Referenced from SavedBareConcreteFunction and SavedFunction.
+     * 
+ * + * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction getConcreteFunctionsOrDefault( + java.lang.String key, + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetConcreteFunctions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Information about captures and output structures in concrete functions.
+     * Referenced from SavedBareConcreteFunction and SavedFunction.
+     * 
+ * + * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction getConcreteFunctionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetConcreteFunctions().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 { + for (int i = 0; i < nodes_.size(); i++) { + output.writeMessage(1, nodes_.get(i)); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetConcreteFunctions(), + ConcreteFunctionsDefaultEntryHolder.defaultEntry, + 2); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < nodes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, nodes_.get(i)); + } + for (java.util.Map.Entry entry + : internalGetConcreteFunctions().getMap().entrySet()) { + com.google.protobuf.MapEntry + concreteFunctions__ = ConcreteFunctionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, concreteFunctions__); + } + 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph)) { + return super.equals(obj); + } + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph other = (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph) obj; + + if (!getNodesList() + .equals(other.getNodesList())) return false; + if (!internalGetConcreteFunctions().equals( + other.internalGetConcreteFunctions())) 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 (getNodesCount() > 0) { + hash = (37 * hash) + NODES_FIELD_NUMBER; + hash = (53 * hash) + getNodesList().hashCode(); + } + if (!internalGetConcreteFunctions().getMap().isEmpty()) { + hash = (37 * hash) + CONCRETE_FUNCTIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetConcreteFunctions().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph 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(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.SavedObjectGraph} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SavedObjectGraph) + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraphOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedObjectGraph_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetConcreteFunctions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 2: + return internalGetMutableConcreteFunctions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedObjectGraph_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph.class, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph.Builder.class); + } + + // Construct using org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + } else { + nodes_ = null; + nodesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableConcreteFunctions().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedObjectGraph_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph getDefaultInstanceForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph build() { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph buildPartial() { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph result = new org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph(this); + int from_bitField0_ = bitField0_; + if (nodesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodes_ = java.util.Collections.unmodifiableList(nodes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodes_ = nodes_; + } else { + result.nodes_ = nodesBuilder_.build(); + } + result.concreteFunctions_ = internalGetConcreteFunctions(); + result.concreteFunctions_.makeImmutable(); + 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph) { + return mergeFrom((org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph other) { + if (other == org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph.getDefaultInstance()) return this; + if (nodesBuilder_ == null) { + if (!other.nodes_.isEmpty()) { + if (nodes_.isEmpty()) { + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodesIsMutable(); + nodes_.addAll(other.nodes_); + } + onChanged(); + } + } else { + if (!other.nodes_.isEmpty()) { + if (nodesBuilder_.isEmpty()) { + nodesBuilder_.dispose(); + nodesBuilder_ = null; + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00000001); + nodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodesFieldBuilder() : null; + } else { + nodesBuilder_.addAllMessages(other.nodes_); + } + } + } + internalGetMutableConcreteFunctions().mergeFrom( + other.internalGetConcreteFunctions()); + 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: { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject m = + input.readMessage( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject.parser(), + extensionRegistry); + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(m); + } else { + nodesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + com.google.protobuf.MapEntry + concreteFunctions__ = input.readMessage( + ConcreteFunctionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableConcreteFunctions().getMutableMap().put( + concreteFunctions__.getKey(), concreteFunctions__.getValue()); + 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 java.util.List nodes_ = + java.util.Collections.emptyList(); + private void ensureNodesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nodes_ = new java.util.ArrayList(nodes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectOrBuilder> nodesBuilder_; + + /** + *
+       * Flattened list of objects in the object graph.
+       * The position of the object in this list indicates its id.
+       * Nodes[0] is considered the root node.
+       * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + public java.util.List getNodesList() { + if (nodesBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodes_); + } else { + return nodesBuilder_.getMessageList(); + } + } + /** + *
+       * Flattened list of objects in the object graph.
+       * The position of the object in this list indicates its id.
+       * Nodes[0] is considered the root node.
+       * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + public int getNodesCount() { + if (nodesBuilder_ == null) { + return nodes_.size(); + } else { + return nodesBuilder_.getCount(); + } + } + /** + *
+       * Flattened list of objects in the object graph.
+       * The position of the object in this list indicates its id.
+       * Nodes[0] is considered the root node.
+       * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject getNodes(int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); + } else { + return nodesBuilder_.getMessage(index); + } + } + /** + *
+       * Flattened list of objects in the object graph.
+       * The position of the object in this list indicates its id.
+       * Nodes[0] is considered the root node.
+       * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + public Builder setNodes( + int index, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.set(index, value); + onChanged(); + } else { + nodesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Flattened list of objects in the object graph.
+       * The position of the object in this list indicates its id.
+       * Nodes[0] is considered the root node.
+       * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + public Builder setNodes( + int index, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.set(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Flattened list of objects in the object graph.
+       * The position of the object in this list indicates its id.
+       * Nodes[0] is considered the root node.
+       * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + public Builder addNodes(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(value); + onChanged(); + } else { + nodesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Flattened list of objects in the object graph.
+       * The position of the object in this list indicates its id.
+       * Nodes[0] is considered the root node.
+       * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + public Builder addNodes( + int index, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(index, value); + onChanged(); + } else { + nodesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Flattened list of objects in the object graph.
+       * The position of the object in this list indicates its id.
+       * Nodes[0] is considered the root node.
+       * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + public Builder addNodes( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Flattened list of objects in the object graph.
+       * The position of the object in this list indicates its id.
+       * Nodes[0] is considered the root node.
+       * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + public Builder addNodes( + int index, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Flattened list of objects in the object graph.
+       * The position of the object in this list indicates its id.
+       * Nodes[0] is considered the root node.
+       * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + public Builder addAllNodes( + java.lang.Iterable values) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodes_); + onChanged(); + } else { + nodesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Flattened list of objects in the object graph.
+       * The position of the object in this list indicates its id.
+       * Nodes[0] is considered the root node.
+       * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + public Builder clearNodes() { + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodesBuilder_.clear(); + } + return this; + } + /** + *
+       * Flattened list of objects in the object graph.
+       * The position of the object in this list indicates its id.
+       * Nodes[0] is considered the root node.
+       * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + public Builder removeNodes(int index) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.remove(index); + onChanged(); + } else { + nodesBuilder_.remove(index); + } + return this; + } + /** + *
+       * Flattened list of objects in the object graph.
+       * The position of the object in this list indicates its id.
+       * Nodes[0] is considered the root node.
+       * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject.Builder getNodesBuilder( + int index) { + return getNodesFieldBuilder().getBuilder(index); + } + /** + *
+       * Flattened list of objects in the object graph.
+       * The position of the object in this list indicates its id.
+       * Nodes[0] is considered the root node.
+       * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectOrBuilder getNodesOrBuilder( + int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); } else { + return nodesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Flattened list of objects in the object graph.
+       * The position of the object in this list indicates its id.
+       * Nodes[0] is considered the root node.
+       * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + public java.util.List + getNodesOrBuilderList() { + if (nodesBuilder_ != null) { + return nodesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodes_); + } + } + /** + *
+       * Flattened list of objects in the object graph.
+       * The position of the object in this list indicates its id.
+       * Nodes[0] is considered the root node.
+       * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject.Builder addNodesBuilder() { + return getNodesFieldBuilder().addBuilder( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject.getDefaultInstance()); + } + /** + *
+       * Flattened list of objects in the object graph.
+       * The position of the object in this list indicates its id.
+       * Nodes[0] is considered the root node.
+       * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject.Builder addNodesBuilder( + int index) { + return getNodesFieldBuilder().addBuilder( + index, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject.getDefaultInstance()); + } + /** + *
+       * Flattened list of objects in the object graph.
+       * The position of the object in this list indicates its id.
+       * Nodes[0] is considered the root node.
+       * 
+ * + * repeated .tensorflow.SavedObject nodes = 1; + */ + public java.util.List + getNodesBuilderList() { + return getNodesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectOrBuilder> + getNodesFieldBuilder() { + if (nodesBuilder_ == null) { + nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectOrBuilder>( + nodes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + nodes_ = null; + } + return nodesBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction> concreteFunctions_; + private com.google.protobuf.MapField + internalGetConcreteFunctions() { + if (concreteFunctions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConcreteFunctionsDefaultEntryHolder.defaultEntry); + } + return concreteFunctions_; + } + private com.google.protobuf.MapField + internalGetMutableConcreteFunctions() { + onChanged();; + if (concreteFunctions_ == null) { + concreteFunctions_ = com.google.protobuf.MapField.newMapField( + ConcreteFunctionsDefaultEntryHolder.defaultEntry); + } + if (!concreteFunctions_.isMutable()) { + concreteFunctions_ = concreteFunctions_.copy(); + } + return concreteFunctions_; + } + + public int getConcreteFunctionsCount() { + return internalGetConcreteFunctions().getMap().size(); + } + /** + *
+       * Information about captures and output structures in concrete functions.
+       * Referenced from SavedBareConcreteFunction and SavedFunction.
+       * 
+ * + * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; + */ + + @java.lang.Override + public boolean containsConcreteFunctions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetConcreteFunctions().getMap().containsKey(key); + } + /** + * Use {@link #getConcreteFunctionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getConcreteFunctions() { + return getConcreteFunctionsMap(); + } + /** + *
+       * Information about captures and output structures in concrete functions.
+       * Referenced from SavedBareConcreteFunction and SavedFunction.
+       * 
+ * + * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; + */ + @java.lang.Override + + public java.util.Map getConcreteFunctionsMap() { + return internalGetConcreteFunctions().getMap(); + } + /** + *
+       * Information about captures and output structures in concrete functions.
+       * Referenced from SavedBareConcreteFunction and SavedFunction.
+       * 
+ * + * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction getConcreteFunctionsOrDefault( + java.lang.String key, + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetConcreteFunctions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Information about captures and output structures in concrete functions.
+       * Referenced from SavedBareConcreteFunction and SavedFunction.
+       * 
+ * + * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction getConcreteFunctionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetConcreteFunctions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearConcreteFunctions() { + internalGetMutableConcreteFunctions().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Information about captures and output structures in concrete functions.
+       * Referenced from SavedBareConcreteFunction and SavedFunction.
+       * 
+ * + * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; + */ + + public Builder removeConcreteFunctions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableConcreteFunctions().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableConcreteFunctions() { + return internalGetMutableConcreteFunctions().getMutableMap(); + } + /** + *
+       * Information about captures and output structures in concrete functions.
+       * Referenced from SavedBareConcreteFunction and SavedFunction.
+       * 
+ * + * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; + */ + public Builder putConcreteFunctions( + java.lang.String key, + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableConcreteFunctions().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Information about captures and output structures in concrete functions.
+       * Referenced from SavedBareConcreteFunction and SavedFunction.
+       * 
+ * + * map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; + */ + + public Builder putAllConcreteFunctions( + java.util.Map values) { + internalGetMutableConcreteFunctions().getMutableMap() + .putAll(values); + 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:tensorflow.SavedObjectGraph) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SavedObjectGraph) + private static final org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph(); + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SavedObjectGraph 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectGraph getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SavedObjectOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.SavedObject) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Objects which this object depends on: named edges in the dependency
+     * graph.
+     * Note: All kinds of SavedObject may have children, except
+     * "constant" and "captured_tensor".
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + java.util.List + getChildrenList(); + /** + *
+     * Objects which this object depends on: named edges in the dependency
+     * graph.
+     * Note: All kinds of SavedObject may have children, except
+     * "constant" and "captured_tensor".
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference getChildren(int index); + /** + *
+     * Objects which this object depends on: named edges in the dependency
+     * graph.
+     * Note: All kinds of SavedObject may have children, except
+     * "constant" and "captured_tensor".
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + int getChildrenCount(); + /** + *
+     * Objects which this object depends on: named edges in the dependency
+     * graph.
+     * Note: All kinds of SavedObject may have children, except
+     * "constant" and "captured_tensor".
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + java.util.List + getChildrenOrBuilderList(); + /** + *
+     * Objects which this object depends on: named edges in the dependency
+     * graph.
+     * Note: All kinds of SavedObject may have children, except
+     * "constant" and "captured_tensor".
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder getChildrenOrBuilder( + int index); + + /** + *
+     * Ordered list of dependencies that must be loaded before this object.
+     * SavedModel loads with the bottom-up approach, by first creating all objects
+     * (in the order defined by the dependencies), then connecting the edges.
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + java.util.List + getDependenciesList(); + /** + *
+     * Ordered list of dependencies that must be loaded before this object.
+     * SavedModel loads with the bottom-up approach, by first creating all objects
+     * (in the order defined by the dependencies), then connecting the edges.
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference getDependencies(int index); + /** + *
+     * Ordered list of dependencies that must be loaded before this object.
+     * SavedModel loads with the bottom-up approach, by first creating all objects
+     * (in the order defined by the dependencies), then connecting the edges.
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + int getDependenciesCount(); + /** + *
+     * Ordered list of dependencies that must be loaded before this object.
+     * SavedModel loads with the bottom-up approach, by first creating all objects
+     * (in the order defined by the dependencies), then connecting the edges.
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + java.util.List + getDependenciesOrBuilderList(); + /** + *
+     * Ordered list of dependencies that must be loaded before this object.
+     * SavedModel loads with the bottom-up approach, by first creating all objects
+     * (in the order defined by the dependencies), then connecting the edges.
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder getDependenciesOrBuilder( + int index); + + /** + *
+     * Slot variables owned by this object. This describes the three-way
+     * (optimizer, variable, slot variable) relationship; none of the three
+     * depend on the others directly.
+     * Note: currently only valid if kind == "user_object".
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + java.util.List + getSlotVariablesList(); + /** + *
+     * Slot variables owned by this object. This describes the three-way
+     * (optimizer, variable, slot variable) relationship; none of the three
+     * depend on the others directly.
+     * Note: currently only valid if kind == "user_object".
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference getSlotVariables(int index); + /** + *
+     * Slot variables owned by this object. This describes the three-way
+     * (optimizer, variable, slot variable) relationship; none of the three
+     * depend on the others directly.
+     * Note: currently only valid if kind == "user_object".
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + int getSlotVariablesCount(); + /** + *
+     * Slot variables owned by this object. This describes the three-way
+     * (optimizer, variable, slot variable) relationship; none of the three
+     * depend on the others directly.
+     * Note: currently only valid if kind == "user_object".
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + java.util.List + getSlotVariablesOrBuilderList(); + /** + *
+     * Slot variables owned by this object. This describes the three-way
+     * (optimizer, variable, slot variable) relationship; none of the three
+     * depend on the others directly.
+     * Note: currently only valid if kind == "user_object".
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder getSlotVariablesOrBuilder( + int index); + + /** + * .tensorflow.SavedUserObject user_object = 4; + * @return Whether the userObject field is set. + */ + boolean hasUserObject(); + /** + * .tensorflow.SavedUserObject user_object = 4; + * @return The userObject. + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject getUserObject(); + /** + * .tensorflow.SavedUserObject user_object = 4; + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObjectOrBuilder getUserObjectOrBuilder(); + + /** + * .tensorflow.SavedAsset asset = 5; + * @return Whether the asset field is set. + */ + boolean hasAsset(); + /** + * .tensorflow.SavedAsset asset = 5; + * @return The asset. + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset getAsset(); + /** + * .tensorflow.SavedAsset asset = 5; + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAssetOrBuilder getAssetOrBuilder(); + + /** + * .tensorflow.SavedFunction function = 6; + * @return Whether the function field is set. + */ + boolean hasFunction(); + /** + * .tensorflow.SavedFunction function = 6; + * @return The function. + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction getFunction(); + /** + * .tensorflow.SavedFunction function = 6; + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunctionOrBuilder getFunctionOrBuilder(); + + /** + * .tensorflow.SavedVariable variable = 7; + * @return Whether the variable field is set. + */ + boolean hasVariable(); + /** + * .tensorflow.SavedVariable variable = 7; + * @return The variable. + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable getVariable(); + /** + * .tensorflow.SavedVariable variable = 7; + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariableOrBuilder getVariableOrBuilder(); + + /** + * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; + * @return Whether the bareConcreteFunction field is set. + */ + boolean hasBareConcreteFunction(); + /** + * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; + * @return The bareConcreteFunction. + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction getBareConcreteFunction(); + /** + * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunctionOrBuilder getBareConcreteFunctionOrBuilder(); + + /** + * .tensorflow.SavedConstant constant = 9; + * @return Whether the constant field is set. + */ + boolean hasConstant(); + /** + * .tensorflow.SavedConstant constant = 9; + * @return The constant. + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant getConstant(); + /** + * .tensorflow.SavedConstant constant = 9; + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstantOrBuilder getConstantOrBuilder(); + + /** + * .tensorflow.SavedResource resource = 10; + * @return Whether the resource field is set. + */ + boolean hasResource(); + /** + * .tensorflow.SavedResource resource = 10; + * @return The resource. + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource getResource(); + /** + * .tensorflow.SavedResource resource = 10; + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResourceOrBuilder getResourceOrBuilder(); + + /** + * .tensorflow.CapturedTensor captured_tensor = 12; + * @return Whether the capturedTensor field is set. + */ + boolean hasCapturedTensor(); + /** + * .tensorflow.CapturedTensor captured_tensor = 12; + * @return The capturedTensor. + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor getCapturedTensor(); + /** + * .tensorflow.CapturedTensor captured_tensor = 12; + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensorOrBuilder getCapturedTensorOrBuilder(); + + /** + *
+     * Stores the functions used to save and restore this object. At most one of
+     * `saveable_objects` or `registered_saver` is defined for each SavedObject.
+     * See the comment below for the difference between SaveableObject and
+     * registered savers.
+     * 
+ * + * map<string, .tensorflow.SaveableObject> saveable_objects = 11; + */ + int getSaveableObjectsCount(); + /** + *
+     * Stores the functions used to save and restore this object. At most one of
+     * `saveable_objects` or `registered_saver` is defined for each SavedObject.
+     * See the comment below for the difference between SaveableObject and
+     * registered savers.
+     * 
+ * + * map<string, .tensorflow.SaveableObject> saveable_objects = 11; + */ + boolean containsSaveableObjects( + java.lang.String key); + /** + * Use {@link #getSaveableObjectsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getSaveableObjects(); + /** + *
+     * Stores the functions used to save and restore this object. At most one of
+     * `saveable_objects` or `registered_saver` is defined for each SavedObject.
+     * See the comment below for the difference between SaveableObject and
+     * registered savers.
+     * 
+ * + * map<string, .tensorflow.SaveableObject> saveable_objects = 11; + */ + java.util.Map + getSaveableObjectsMap(); + /** + *
+     * Stores the functions used to save and restore this object. At most one of
+     * `saveable_objects` or `registered_saver` is defined for each SavedObject.
+     * See the comment below for the difference between SaveableObject and
+     * registered savers.
+     * 
+ * + * map<string, .tensorflow.SaveableObject> saveable_objects = 11; + */ + + /* nullable */ +org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject getSaveableObjectsOrDefault( + java.lang.String key, + /* nullable */ +org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject defaultValue); + /** + *
+     * Stores the functions used to save and restore this object. At most one of
+     * `saveable_objects` or `registered_saver` is defined for each SavedObject.
+     * See the comment below for the difference between SaveableObject and
+     * registered savers.
+     * 
+ * + * map<string, .tensorflow.SaveableObject> saveable_objects = 11; + */ + + org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject getSaveableObjectsOrThrow( + java.lang.String key); + + /** + *
+     * The name of the registered class of the form "{package}.{class_name}".
+     * This field is used to search for the registered class at loading time.
+     * 
+ * + * string registered_name = 13; + * @return The registeredName. + */ + java.lang.String getRegisteredName(); + /** + *
+     * The name of the registered class of the form "{package}.{class_name}".
+     * This field is used to search for the registered class at loading time.
+     * 
+ * + * string registered_name = 13; + * @return The bytes for registeredName. + */ + com.google.protobuf.ByteString + getRegisteredNameBytes(); + + /** + *
+     * The user-generated proto storing metadata for this object, to be passed to
+     * the registered classes's _deserialize_from_proto method when this object is
+     * loaded from the SavedModel.
+     * 
+ * + * .google.protobuf.Any serialized_user_proto = 14; + * @return Whether the serializedUserProto field is set. + */ + boolean hasSerializedUserProto(); + /** + *
+     * The user-generated proto storing metadata for this object, to be passed to
+     * the registered classes's _deserialize_from_proto method when this object is
+     * loaded from the SavedModel.
+     * 
+ * + * .google.protobuf.Any serialized_user_proto = 14; + * @return The serializedUserProto. + */ + com.google.protobuf.Any getSerializedUserProto(); + /** + *
+     * The user-generated proto storing metadata for this object, to be passed to
+     * the registered classes's _deserialize_from_proto method when this object is
+     * loaded from the SavedModel.
+     * 
+ * + * .google.protobuf.Any serialized_user_proto = 14; + */ + com.google.protobuf.AnyOrBuilder getSerializedUserProtoOrBuilder(); + + /** + *
+     * String name of the registered saver. At most one of `saveable_objects` or
+     * `registered_saver` is defined for each SavedObject.
+     * 
+ * + * string registered_saver = 16; + * @return The registeredSaver. + */ + java.lang.String getRegisteredSaver(); + /** + *
+     * String name of the registered saver. At most one of `saveable_objects` or
+     * `registered_saver` is defined for each SavedObject.
+     * 
+ * + * string registered_saver = 16; + * @return The bytes for registeredSaver. + */ + com.google.protobuf.ByteString + getRegisteredSaverBytes(); + + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject.KindCase getKindCase(); + } + /** + * Protobuf type {@code tensorflow.SavedObject} + */ + public static final class SavedObject extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SavedObject) + SavedObjectOrBuilder { + private static final long serialVersionUID = 0L; + // Use SavedObject.newBuilder() to construct. + private SavedObject(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SavedObject() { + children_ = java.util.Collections.emptyList(); + dependencies_ = java.util.Collections.emptyList(); + slotVariables_ = java.util.Collections.emptyList(); + registeredName_ = ""; + registeredSaver_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SavedObject(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedObject_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 11: + return internalGetSaveableObjects(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedObject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject.class, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject.Builder.class); + } + + private int kindCase_ = 0; + private java.lang.Object kind_; + public enum KindCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + USER_OBJECT(4), + ASSET(5), + FUNCTION(6), + VARIABLE(7), + BARE_CONCRETE_FUNCTION(8), + CONSTANT(9), + RESOURCE(10), + CAPTURED_TENSOR(12), + KIND_NOT_SET(0); + private final int value; + private KindCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static KindCase valueOf(int value) { + return forNumber(value); + } + + public static KindCase forNumber(int value) { + switch (value) { + case 4: return USER_OBJECT; + case 5: return ASSET; + case 6: return FUNCTION; + case 7: return VARIABLE; + case 8: return BARE_CONCRETE_FUNCTION; + case 9: return CONSTANT; + case 10: return RESOURCE; + case 12: return CAPTURED_TENSOR; + case 0: return KIND_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); + } + + public static final int CHILDREN_FIELD_NUMBER = 1; + private java.util.List children_; + /** + *
+     * Objects which this object depends on: named edges in the dependency
+     * graph.
+     * Note: All kinds of SavedObject may have children, except
+     * "constant" and "captured_tensor".
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + @java.lang.Override + public java.util.List getChildrenList() { + return children_; + } + /** + *
+     * Objects which this object depends on: named edges in the dependency
+     * graph.
+     * Note: All kinds of SavedObject may have children, except
+     * "constant" and "captured_tensor".
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + @java.lang.Override + public java.util.List + getChildrenOrBuilderList() { + return children_; + } + /** + *
+     * Objects which this object depends on: named edges in the dependency
+     * graph.
+     * Note: All kinds of SavedObject may have children, except
+     * "constant" and "captured_tensor".
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + @java.lang.Override + public int getChildrenCount() { + return children_.size(); + } + /** + *
+     * Objects which this object depends on: named edges in the dependency
+     * graph.
+     * Note: All kinds of SavedObject may have children, except
+     * "constant" and "captured_tensor".
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference getChildren(int index) { + return children_.get(index); + } + /** + *
+     * Objects which this object depends on: named edges in the dependency
+     * graph.
+     * Note: All kinds of SavedObject may have children, except
+     * "constant" and "captured_tensor".
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder getChildrenOrBuilder( + int index) { + return children_.get(index); + } + + public static final int DEPENDENCIES_FIELD_NUMBER = 15; + private java.util.List dependencies_; + /** + *
+     * Ordered list of dependencies that must be loaded before this object.
+     * SavedModel loads with the bottom-up approach, by first creating all objects
+     * (in the order defined by the dependencies), then connecting the edges.
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + @java.lang.Override + public java.util.List getDependenciesList() { + return dependencies_; + } + /** + *
+     * Ordered list of dependencies that must be loaded before this object.
+     * SavedModel loads with the bottom-up approach, by first creating all objects
+     * (in the order defined by the dependencies), then connecting the edges.
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + @java.lang.Override + public java.util.List + getDependenciesOrBuilderList() { + return dependencies_; + } + /** + *
+     * Ordered list of dependencies that must be loaded before this object.
+     * SavedModel loads with the bottom-up approach, by first creating all objects
+     * (in the order defined by the dependencies), then connecting the edges.
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + @java.lang.Override + public int getDependenciesCount() { + return dependencies_.size(); + } + /** + *
+     * Ordered list of dependencies that must be loaded before this object.
+     * SavedModel loads with the bottom-up approach, by first creating all objects
+     * (in the order defined by the dependencies), then connecting the edges.
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference getDependencies(int index) { + return dependencies_.get(index); + } + /** + *
+     * Ordered list of dependencies that must be loaded before this object.
+     * SavedModel loads with the bottom-up approach, by first creating all objects
+     * (in the order defined by the dependencies), then connecting the edges.
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder getDependenciesOrBuilder( + int index) { + return dependencies_.get(index); + } + + public static final int SLOT_VARIABLES_FIELD_NUMBER = 3; + private java.util.List slotVariables_; + /** + *
+     * Slot variables owned by this object. This describes the three-way
+     * (optimizer, variable, slot variable) relationship; none of the three
+     * depend on the others directly.
+     * Note: currently only valid if kind == "user_object".
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + @java.lang.Override + public java.util.List getSlotVariablesList() { + return slotVariables_; + } + /** + *
+     * Slot variables owned by this object. This describes the three-way
+     * (optimizer, variable, slot variable) relationship; none of the three
+     * depend on the others directly.
+     * Note: currently only valid if kind == "user_object".
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + @java.lang.Override + public java.util.List + getSlotVariablesOrBuilderList() { + return slotVariables_; + } + /** + *
+     * Slot variables owned by this object. This describes the three-way
+     * (optimizer, variable, slot variable) relationship; none of the three
+     * depend on the others directly.
+     * Note: currently only valid if kind == "user_object".
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + @java.lang.Override + public int getSlotVariablesCount() { + return slotVariables_.size(); + } + /** + *
+     * Slot variables owned by this object. This describes the three-way
+     * (optimizer, variable, slot variable) relationship; none of the three
+     * depend on the others directly.
+     * Note: currently only valid if kind == "user_object".
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference getSlotVariables(int index) { + return slotVariables_.get(index); + } + /** + *
+     * Slot variables owned by this object. This describes the three-way
+     * (optimizer, variable, slot variable) relationship; none of the three
+     * depend on the others directly.
+     * Note: currently only valid if kind == "user_object".
+     * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder getSlotVariablesOrBuilder( + int index) { + return slotVariables_.get(index); + } + + public static final int USER_OBJECT_FIELD_NUMBER = 4; + /** + * .tensorflow.SavedUserObject user_object = 4; + * @return Whether the userObject field is set. + */ + @java.lang.Override + public boolean hasUserObject() { + return kindCase_ == 4; + } + /** + * .tensorflow.SavedUserObject user_object = 4; + * @return The userObject. + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject getUserObject() { + if (kindCase_ == 4) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject.getDefaultInstance(); + } + /** + * .tensorflow.SavedUserObject user_object = 4; + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObjectOrBuilder getUserObjectOrBuilder() { + if (kindCase_ == 4) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject.getDefaultInstance(); + } + + public static final int ASSET_FIELD_NUMBER = 5; + /** + * .tensorflow.SavedAsset asset = 5; + * @return Whether the asset field is set. + */ + @java.lang.Override + public boolean hasAsset() { + return kindCase_ == 5; + } + /** + * .tensorflow.SavedAsset asset = 5; + * @return The asset. + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset getAsset() { + if (kindCase_ == 5) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset.getDefaultInstance(); + } + /** + * .tensorflow.SavedAsset asset = 5; + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAssetOrBuilder getAssetOrBuilder() { + if (kindCase_ == 5) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset.getDefaultInstance(); + } + + public static final int FUNCTION_FIELD_NUMBER = 6; + /** + * .tensorflow.SavedFunction function = 6; + * @return Whether the function field is set. + */ + @java.lang.Override + public boolean hasFunction() { + return kindCase_ == 6; + } + /** + * .tensorflow.SavedFunction function = 6; + * @return The function. + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction getFunction() { + if (kindCase_ == 6) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction.getDefaultInstance(); + } + /** + * .tensorflow.SavedFunction function = 6; + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunctionOrBuilder getFunctionOrBuilder() { + if (kindCase_ == 6) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction.getDefaultInstance(); + } + + public static final int VARIABLE_FIELD_NUMBER = 7; + /** + * .tensorflow.SavedVariable variable = 7; + * @return Whether the variable field is set. + */ + @java.lang.Override + public boolean hasVariable() { + return kindCase_ == 7; + } + /** + * .tensorflow.SavedVariable variable = 7; + * @return The variable. + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable getVariable() { + if (kindCase_ == 7) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.getDefaultInstance(); + } + /** + * .tensorflow.SavedVariable variable = 7; + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariableOrBuilder getVariableOrBuilder() { + if (kindCase_ == 7) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.getDefaultInstance(); + } + + public static final int BARE_CONCRETE_FUNCTION_FIELD_NUMBER = 8; + /** + * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; + * @return Whether the bareConcreteFunction field is set. + */ + @java.lang.Override + public boolean hasBareConcreteFunction() { + return kindCase_ == 8; + } + /** + * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; + * @return The bareConcreteFunction. + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction getBareConcreteFunction() { + if (kindCase_ == 8) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction.getDefaultInstance(); + } + /** + * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunctionOrBuilder getBareConcreteFunctionOrBuilder() { + if (kindCase_ == 8) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction.getDefaultInstance(); + } + + public static final int CONSTANT_FIELD_NUMBER = 9; + /** + * .tensorflow.SavedConstant constant = 9; + * @return Whether the constant field is set. + */ + @java.lang.Override + public boolean hasConstant() { + return kindCase_ == 9; + } + /** + * .tensorflow.SavedConstant constant = 9; + * @return The constant. + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant getConstant() { + if (kindCase_ == 9) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant.getDefaultInstance(); + } + /** + * .tensorflow.SavedConstant constant = 9; + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstantOrBuilder getConstantOrBuilder() { + if (kindCase_ == 9) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant.getDefaultInstance(); + } + + public static final int RESOURCE_FIELD_NUMBER = 10; + /** + * .tensorflow.SavedResource resource = 10; + * @return Whether the resource field is set. + */ + @java.lang.Override + public boolean hasResource() { + return kindCase_ == 10; + } + /** + * .tensorflow.SavedResource resource = 10; + * @return The resource. + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource getResource() { + if (kindCase_ == 10) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource.getDefaultInstance(); + } + /** + * .tensorflow.SavedResource resource = 10; + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResourceOrBuilder getResourceOrBuilder() { + if (kindCase_ == 10) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource.getDefaultInstance(); + } + + public static final int CAPTURED_TENSOR_FIELD_NUMBER = 12; + /** + * .tensorflow.CapturedTensor captured_tensor = 12; + * @return Whether the capturedTensor field is set. + */ + @java.lang.Override + public boolean hasCapturedTensor() { + return kindCase_ == 12; + } + /** + * .tensorflow.CapturedTensor captured_tensor = 12; + * @return The capturedTensor. + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor getCapturedTensor() { + if (kindCase_ == 12) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor.getDefaultInstance(); + } + /** + * .tensorflow.CapturedTensor captured_tensor = 12; + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensorOrBuilder getCapturedTensorOrBuilder() { + if (kindCase_ == 12) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor.getDefaultInstance(); + } + + public static final int SAVEABLE_OBJECTS_FIELD_NUMBER = 11; + private static final class SaveableObjectsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedObject_SaveableObjectsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject> saveableObjects_; + private com.google.protobuf.MapField + internalGetSaveableObjects() { + if (saveableObjects_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SaveableObjectsDefaultEntryHolder.defaultEntry); + } + return saveableObjects_; + } + + public int getSaveableObjectsCount() { + return internalGetSaveableObjects().getMap().size(); + } + /** + *
+     * Stores the functions used to save and restore this object. At most one of
+     * `saveable_objects` or `registered_saver` is defined for each SavedObject.
+     * See the comment below for the difference between SaveableObject and
+     * registered savers.
+     * 
+ * + * map<string, .tensorflow.SaveableObject> saveable_objects = 11; + */ + + @java.lang.Override + public boolean containsSaveableObjects( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetSaveableObjects().getMap().containsKey(key); + } + /** + * Use {@link #getSaveableObjectsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getSaveableObjects() { + return getSaveableObjectsMap(); + } + /** + *
+     * Stores the functions used to save and restore this object. At most one of
+     * `saveable_objects` or `registered_saver` is defined for each SavedObject.
+     * See the comment below for the difference between SaveableObject and
+     * registered savers.
+     * 
+ * + * map<string, .tensorflow.SaveableObject> saveable_objects = 11; + */ + @java.lang.Override + + public java.util.Map getSaveableObjectsMap() { + return internalGetSaveableObjects().getMap(); + } + /** + *
+     * Stores the functions used to save and restore this object. At most one of
+     * `saveable_objects` or `registered_saver` is defined for each SavedObject.
+     * See the comment below for the difference between SaveableObject and
+     * registered savers.
+     * 
+ * + * map<string, .tensorflow.SaveableObject> saveable_objects = 11; + */ + @java.lang.Override + + public org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject getSaveableObjectsOrDefault( + java.lang.String key, + org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetSaveableObjects().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Stores the functions used to save and restore this object. At most one of
+     * `saveable_objects` or `registered_saver` is defined for each SavedObject.
+     * See the comment below for the difference between SaveableObject and
+     * registered savers.
+     * 
+ * + * map<string, .tensorflow.SaveableObject> saveable_objects = 11; + */ + @java.lang.Override + + public org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject getSaveableObjectsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetSaveableObjects().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int REGISTERED_NAME_FIELD_NUMBER = 13; + private volatile java.lang.Object registeredName_; + /** + *
+     * The name of the registered class of the form "{package}.{class_name}".
+     * This field is used to search for the registered class at loading time.
+     * 
+ * + * string registered_name = 13; + * @return The registeredName. + */ + @java.lang.Override + public java.lang.String getRegisteredName() { + java.lang.Object ref = registeredName_; + 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(); + registeredName_ = s; + return s; + } + } + /** + *
+     * The name of the registered class of the form "{package}.{class_name}".
+     * This field is used to search for the registered class at loading time.
+     * 
+ * + * string registered_name = 13; + * @return The bytes for registeredName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRegisteredNameBytes() { + java.lang.Object ref = registeredName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + registeredName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERIALIZED_USER_PROTO_FIELD_NUMBER = 14; + private com.google.protobuf.Any serializedUserProto_; + /** + *
+     * The user-generated proto storing metadata for this object, to be passed to
+     * the registered classes's _deserialize_from_proto method when this object is
+     * loaded from the SavedModel.
+     * 
+ * + * .google.protobuf.Any serialized_user_proto = 14; + * @return Whether the serializedUserProto field is set. + */ + @java.lang.Override + public boolean hasSerializedUserProto() { + return serializedUserProto_ != null; + } + /** + *
+     * The user-generated proto storing metadata for this object, to be passed to
+     * the registered classes's _deserialize_from_proto method when this object is
+     * loaded from the SavedModel.
+     * 
+ * + * .google.protobuf.Any serialized_user_proto = 14; + * @return The serializedUserProto. + */ + @java.lang.Override + public com.google.protobuf.Any getSerializedUserProto() { + return serializedUserProto_ == null ? com.google.protobuf.Any.getDefaultInstance() : serializedUserProto_; + } + /** + *
+     * The user-generated proto storing metadata for this object, to be passed to
+     * the registered classes's _deserialize_from_proto method when this object is
+     * loaded from the SavedModel.
+     * 
+ * + * .google.protobuf.Any serialized_user_proto = 14; + */ + @java.lang.Override + public com.google.protobuf.AnyOrBuilder getSerializedUserProtoOrBuilder() { + return getSerializedUserProto(); + } + + public static final int REGISTERED_SAVER_FIELD_NUMBER = 16; + private volatile java.lang.Object registeredSaver_; + /** + *
+     * String name of the registered saver. At most one of `saveable_objects` or
+     * `registered_saver` is defined for each SavedObject.
+     * 
+ * + * string registered_saver = 16; + * @return The registeredSaver. + */ + @java.lang.Override + public java.lang.String getRegisteredSaver() { + java.lang.Object ref = registeredSaver_; + 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(); + registeredSaver_ = s; + return s; + } + } + /** + *
+     * String name of the registered saver. At most one of `saveable_objects` or
+     * `registered_saver` is defined for each SavedObject.
+     * 
+ * + * string registered_saver = 16; + * @return The bytes for registeredSaver. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRegisteredSaverBytes() { + java.lang.Object ref = registeredSaver_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + registeredSaver_ = 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 { + for (int i = 0; i < children_.size(); i++) { + output.writeMessage(1, children_.get(i)); + } + for (int i = 0; i < slotVariables_.size(); i++) { + output.writeMessage(3, slotVariables_.get(i)); + } + if (kindCase_ == 4) { + output.writeMessage(4, (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject) kind_); + } + if (kindCase_ == 5) { + output.writeMessage(5, (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset) kind_); + } + if (kindCase_ == 6) { + output.writeMessage(6, (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction) kind_); + } + if (kindCase_ == 7) { + output.writeMessage(7, (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable) kind_); + } + if (kindCase_ == 8) { + output.writeMessage(8, (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction) kind_); + } + if (kindCase_ == 9) { + output.writeMessage(9, (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant) kind_); + } + if (kindCase_ == 10) { + output.writeMessage(10, (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource) kind_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetSaveableObjects(), + SaveableObjectsDefaultEntryHolder.defaultEntry, + 11); + if (kindCase_ == 12) { + output.writeMessage(12, (org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor) kind_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registeredName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, registeredName_); + } + if (serializedUserProto_ != null) { + output.writeMessage(14, getSerializedUserProto()); + } + for (int i = 0; i < dependencies_.size(); i++) { + output.writeMessage(15, dependencies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registeredSaver_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, registeredSaver_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < children_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, children_.get(i)); + } + for (int i = 0; i < slotVariables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, slotVariables_.get(i)); + } + if (kindCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject) kind_); + } + if (kindCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset) kind_); + } + if (kindCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction) kind_); + } + if (kindCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable) kind_); + } + if (kindCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction) kind_); + } + if (kindCase_ == 9) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant) kind_); + } + if (kindCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource) kind_); + } + for (java.util.Map.Entry entry + : internalGetSaveableObjects().getMap().entrySet()) { + com.google.protobuf.MapEntry + saveableObjects__ = SaveableObjectsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, saveableObjects__); + } + if (kindCase_ == 12) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, (org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor) kind_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registeredName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, registeredName_); + } + if (serializedUserProto_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getSerializedUserProto()); + } + for (int i = 0; i < dependencies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, dependencies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registeredSaver_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, registeredSaver_); + } + 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject)) { + return super.equals(obj); + } + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject other = (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject) obj; + + if (!getChildrenList() + .equals(other.getChildrenList())) return false; + if (!getDependenciesList() + .equals(other.getDependenciesList())) return false; + if (!getSlotVariablesList() + .equals(other.getSlotVariablesList())) return false; + if (!internalGetSaveableObjects().equals( + other.internalGetSaveableObjects())) return false; + if (!getRegisteredName() + .equals(other.getRegisteredName())) return false; + if (hasSerializedUserProto() != other.hasSerializedUserProto()) return false; + if (hasSerializedUserProto()) { + if (!getSerializedUserProto() + .equals(other.getSerializedUserProto())) return false; + } + if (!getRegisteredSaver() + .equals(other.getRegisteredSaver())) return false; + if (!getKindCase().equals(other.getKindCase())) return false; + switch (kindCase_) { + case 4: + if (!getUserObject() + .equals(other.getUserObject())) return false; + break; + case 5: + if (!getAsset() + .equals(other.getAsset())) return false; + break; + case 6: + if (!getFunction() + .equals(other.getFunction())) return false; + break; + case 7: + if (!getVariable() + .equals(other.getVariable())) return false; + break; + case 8: + if (!getBareConcreteFunction() + .equals(other.getBareConcreteFunction())) return false; + break; + case 9: + if (!getConstant() + .equals(other.getConstant())) return false; + break; + case 10: + if (!getResource() + .equals(other.getResource())) return false; + break; + case 12: + if (!getCapturedTensor() + .equals(other.getCapturedTensor())) return false; + break; + case 0: + default: + } + 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 (getChildrenCount() > 0) { + hash = (37 * hash) + CHILDREN_FIELD_NUMBER; + hash = (53 * hash) + getChildrenList().hashCode(); + } + if (getDependenciesCount() > 0) { + hash = (37 * hash) + DEPENDENCIES_FIELD_NUMBER; + hash = (53 * hash) + getDependenciesList().hashCode(); + } + if (getSlotVariablesCount() > 0) { + hash = (37 * hash) + SLOT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getSlotVariablesList().hashCode(); + } + if (!internalGetSaveableObjects().getMap().isEmpty()) { + hash = (37 * hash) + SAVEABLE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetSaveableObjects().hashCode(); + } + hash = (37 * hash) + REGISTERED_NAME_FIELD_NUMBER; + hash = (53 * hash) + getRegisteredName().hashCode(); + if (hasSerializedUserProto()) { + hash = (37 * hash) + SERIALIZED_USER_PROTO_FIELD_NUMBER; + hash = (53 * hash) + getSerializedUserProto().hashCode(); + } + hash = (37 * hash) + REGISTERED_SAVER_FIELD_NUMBER; + hash = (53 * hash) + getRegisteredSaver().hashCode(); + switch (kindCase_) { + case 4: + hash = (37 * hash) + USER_OBJECT_FIELD_NUMBER; + hash = (53 * hash) + getUserObject().hashCode(); + break; + case 5: + hash = (37 * hash) + ASSET_FIELD_NUMBER; + hash = (53 * hash) + getAsset().hashCode(); + break; + case 6: + hash = (37 * hash) + FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getFunction().hashCode(); + break; + case 7: + hash = (37 * hash) + VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getVariable().hashCode(); + break; + case 8: + hash = (37 * hash) + BARE_CONCRETE_FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getBareConcreteFunction().hashCode(); + break; + case 9: + hash = (37 * hash) + CONSTANT_FIELD_NUMBER; + hash = (53 * hash) + getConstant().hashCode(); + break; + case 10: + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + break; + case 12: + hash = (37 * hash) + CAPTURED_TENSOR_FIELD_NUMBER; + hash = (53 * hash) + getCapturedTensor().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject 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(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.SavedObject} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SavedObject) + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObjectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedObject_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 11: + return internalGetSaveableObjects(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 11: + return internalGetMutableSaveableObjects(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedObject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject.class, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject.Builder.class); + } + + // Construct using org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (childrenBuilder_ == null) { + children_ = java.util.Collections.emptyList(); + } else { + children_ = null; + childrenBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (dependenciesBuilder_ == null) { + dependencies_ = java.util.Collections.emptyList(); + } else { + dependencies_ = null; + dependenciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (slotVariablesBuilder_ == null) { + slotVariables_ = java.util.Collections.emptyList(); + } else { + slotVariables_ = null; + slotVariablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (userObjectBuilder_ != null) { + userObjectBuilder_.clear(); + } + if (assetBuilder_ != null) { + assetBuilder_.clear(); + } + if (functionBuilder_ != null) { + functionBuilder_.clear(); + } + if (variableBuilder_ != null) { + variableBuilder_.clear(); + } + if (bareConcreteFunctionBuilder_ != null) { + bareConcreteFunctionBuilder_.clear(); + } + if (constantBuilder_ != null) { + constantBuilder_.clear(); + } + if (resourceBuilder_ != null) { + resourceBuilder_.clear(); + } + if (capturedTensorBuilder_ != null) { + capturedTensorBuilder_.clear(); + } + internalGetMutableSaveableObjects().clear(); + registeredName_ = ""; + + if (serializedUserProtoBuilder_ == null) { + serializedUserProto_ = null; + } else { + serializedUserProto_ = null; + serializedUserProtoBuilder_ = null; + } + registeredSaver_ = ""; + + kindCase_ = 0; + kind_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedObject_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject getDefaultInstanceForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject build() { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject buildPartial() { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject result = new org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject(this); + int from_bitField0_ = bitField0_; + if (childrenBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + children_ = java.util.Collections.unmodifiableList(children_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.children_ = children_; + } else { + result.children_ = childrenBuilder_.build(); + } + if (dependenciesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + dependencies_ = java.util.Collections.unmodifiableList(dependencies_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.dependencies_ = dependencies_; + } else { + result.dependencies_ = dependenciesBuilder_.build(); + } + if (slotVariablesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + slotVariables_ = java.util.Collections.unmodifiableList(slotVariables_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.slotVariables_ = slotVariables_; + } else { + result.slotVariables_ = slotVariablesBuilder_.build(); + } + if (kindCase_ == 4) { + if (userObjectBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = userObjectBuilder_.build(); + } + } + if (kindCase_ == 5) { + if (assetBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = assetBuilder_.build(); + } + } + if (kindCase_ == 6) { + if (functionBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = functionBuilder_.build(); + } + } + if (kindCase_ == 7) { + if (variableBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = variableBuilder_.build(); + } + } + if (kindCase_ == 8) { + if (bareConcreteFunctionBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = bareConcreteFunctionBuilder_.build(); + } + } + if (kindCase_ == 9) { + if (constantBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = constantBuilder_.build(); + } + } + if (kindCase_ == 10) { + if (resourceBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = resourceBuilder_.build(); + } + } + if (kindCase_ == 12) { + if (capturedTensorBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = capturedTensorBuilder_.build(); + } + } + result.saveableObjects_ = internalGetSaveableObjects(); + result.saveableObjects_.makeImmutable(); + result.registeredName_ = registeredName_; + if (serializedUserProtoBuilder_ == null) { + result.serializedUserProto_ = serializedUserProto_; + } else { + result.serializedUserProto_ = serializedUserProtoBuilder_.build(); + } + result.registeredSaver_ = registeredSaver_; + result.kindCase_ = kindCase_; + 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject) { + return mergeFrom((org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject other) { + if (other == org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject.getDefaultInstance()) return this; + if (childrenBuilder_ == null) { + if (!other.children_.isEmpty()) { + if (children_.isEmpty()) { + children_ = other.children_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureChildrenIsMutable(); + children_.addAll(other.children_); + } + onChanged(); + } + } else { + if (!other.children_.isEmpty()) { + if (childrenBuilder_.isEmpty()) { + childrenBuilder_.dispose(); + childrenBuilder_ = null; + children_ = other.children_; + bitField0_ = (bitField0_ & ~0x00000001); + childrenBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getChildrenFieldBuilder() : null; + } else { + childrenBuilder_.addAllMessages(other.children_); + } + } + } + if (dependenciesBuilder_ == null) { + if (!other.dependencies_.isEmpty()) { + if (dependencies_.isEmpty()) { + dependencies_ = other.dependencies_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDependenciesIsMutable(); + dependencies_.addAll(other.dependencies_); + } + onChanged(); + } + } else { + if (!other.dependencies_.isEmpty()) { + if (dependenciesBuilder_.isEmpty()) { + dependenciesBuilder_.dispose(); + dependenciesBuilder_ = null; + dependencies_ = other.dependencies_; + bitField0_ = (bitField0_ & ~0x00000002); + dependenciesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDependenciesFieldBuilder() : null; + } else { + dependenciesBuilder_.addAllMessages(other.dependencies_); + } + } + } + if (slotVariablesBuilder_ == null) { + if (!other.slotVariables_.isEmpty()) { + if (slotVariables_.isEmpty()) { + slotVariables_ = other.slotVariables_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSlotVariablesIsMutable(); + slotVariables_.addAll(other.slotVariables_); + } + onChanged(); + } + } else { + if (!other.slotVariables_.isEmpty()) { + if (slotVariablesBuilder_.isEmpty()) { + slotVariablesBuilder_.dispose(); + slotVariablesBuilder_ = null; + slotVariables_ = other.slotVariables_; + bitField0_ = (bitField0_ & ~0x00000004); + slotVariablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSlotVariablesFieldBuilder() : null; + } else { + slotVariablesBuilder_.addAllMessages(other.slotVariables_); + } + } + } + internalGetMutableSaveableObjects().mergeFrom( + other.internalGetSaveableObjects()); + if (!other.getRegisteredName().isEmpty()) { + registeredName_ = other.registeredName_; + onChanged(); + } + if (other.hasSerializedUserProto()) { + mergeSerializedUserProto(other.getSerializedUserProto()); + } + if (!other.getRegisteredSaver().isEmpty()) { + registeredSaver_ = other.registeredSaver_; + onChanged(); + } + switch (other.getKindCase()) { + case USER_OBJECT: { + mergeUserObject(other.getUserObject()); + break; + } + case ASSET: { + mergeAsset(other.getAsset()); + break; + } + case FUNCTION: { + mergeFunction(other.getFunction()); + break; + } + case VARIABLE: { + mergeVariable(other.getVariable()); + break; + } + case BARE_CONCRETE_FUNCTION: { + mergeBareConcreteFunction(other.getBareConcreteFunction()); + break; + } + case CONSTANT: { + mergeConstant(other.getConstant()); + break; + } + case RESOURCE: { + mergeResource(other.getResource()); + break; + } + case CAPTURED_TENSOR: { + mergeCapturedTensor(other.getCapturedTensor()); + break; + } + case KIND_NOT_SET: { + break; + } + } + 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: { + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference m = + input.readMessage( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.parser(), + extensionRegistry); + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.add(m); + } else { + childrenBuilder_.addMessage(m); + } + break; + } // case 10 + case 26: { + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference m = + input.readMessage( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.parser(), + extensionRegistry); + if (slotVariablesBuilder_ == null) { + ensureSlotVariablesIsMutable(); + slotVariables_.add(m); + } else { + slotVariablesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + input.readMessage( + getUserObjectFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getAssetFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 5; + break; + } // case 42 + case 50: { + input.readMessage( + getFunctionFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 6; + break; + } // case 50 + case 58: { + input.readMessage( + getVariableFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 7; + break; + } // case 58 + case 66: { + input.readMessage( + getBareConcreteFunctionFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 8; + break; + } // case 66 + case 74: { + input.readMessage( + getConstantFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 9; + break; + } // case 74 + case 82: { + input.readMessage( + getResourceFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 10; + break; + } // case 82 + case 90: { + com.google.protobuf.MapEntry + saveableObjects__ = input.readMessage( + SaveableObjectsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableSaveableObjects().getMutableMap().put( + saveableObjects__.getKey(), saveableObjects__.getValue()); + break; + } // case 90 + case 98: { + input.readMessage( + getCapturedTensorFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 12; + break; + } // case 98 + case 106: { + registeredName_ = input.readStringRequireUtf8(); + + break; + } // case 106 + case 114: { + input.readMessage( + getSerializedUserProtoFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 114 + case 122: { + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference m = + input.readMessage( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.parser(), + extensionRegistry); + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + dependencies_.add(m); + } else { + dependenciesBuilder_.addMessage(m); + } + break; + } // case 122 + case 130: { + registeredSaver_ = input.readStringRequireUtf8(); + + break; + } // case 130 + 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 kindCase_ = 0; + private java.lang.Object kind_; + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); + } + + public Builder clearKind() { + kindCase_ = 0; + kind_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.util.List children_ = + java.util.Collections.emptyList(); + private void ensureChildrenIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + children_ = new java.util.ArrayList(children_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder> childrenBuilder_; + + /** + *
+       * Objects which this object depends on: named edges in the dependency
+       * graph.
+       * Note: All kinds of SavedObject may have children, except
+       * "constant" and "captured_tensor".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public java.util.List getChildrenList() { + if (childrenBuilder_ == null) { + return java.util.Collections.unmodifiableList(children_); + } else { + return childrenBuilder_.getMessageList(); + } + } + /** + *
+       * Objects which this object depends on: named edges in the dependency
+       * graph.
+       * Note: All kinds of SavedObject may have children, except
+       * "constant" and "captured_tensor".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public int getChildrenCount() { + if (childrenBuilder_ == null) { + return children_.size(); + } else { + return childrenBuilder_.getCount(); + } + } + /** + *
+       * Objects which this object depends on: named edges in the dependency
+       * graph.
+       * Note: All kinds of SavedObject may have children, except
+       * "constant" and "captured_tensor".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference getChildren(int index) { + if (childrenBuilder_ == null) { + return children_.get(index); + } else { + return childrenBuilder_.getMessage(index); + } + } + /** + *
+       * Objects which this object depends on: named edges in the dependency
+       * graph.
+       * Note: All kinds of SavedObject may have children, except
+       * "constant" and "captured_tensor".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public Builder setChildren( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference value) { + if (childrenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChildrenIsMutable(); + children_.set(index, value); + onChanged(); + } else { + childrenBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Objects which this object depends on: named edges in the dependency
+       * graph.
+       * Note: All kinds of SavedObject may have children, except
+       * "constant" and "captured_tensor".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public Builder setChildren( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder builderForValue) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.set(index, builderForValue.build()); + onChanged(); + } else { + childrenBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Objects which this object depends on: named edges in the dependency
+       * graph.
+       * Note: All kinds of SavedObject may have children, except
+       * "constant" and "captured_tensor".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public Builder addChildren(org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference value) { + if (childrenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChildrenIsMutable(); + children_.add(value); + onChanged(); + } else { + childrenBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Objects which this object depends on: named edges in the dependency
+       * graph.
+       * Note: All kinds of SavedObject may have children, except
+       * "constant" and "captured_tensor".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public Builder addChildren( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference value) { + if (childrenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChildrenIsMutable(); + children_.add(index, value); + onChanged(); + } else { + childrenBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Objects which this object depends on: named edges in the dependency
+       * graph.
+       * Note: All kinds of SavedObject may have children, except
+       * "constant" and "captured_tensor".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public Builder addChildren( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder builderForValue) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.add(builderForValue.build()); + onChanged(); + } else { + childrenBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Objects which this object depends on: named edges in the dependency
+       * graph.
+       * Note: All kinds of SavedObject may have children, except
+       * "constant" and "captured_tensor".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public Builder addChildren( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder builderForValue) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.add(index, builderForValue.build()); + onChanged(); + } else { + childrenBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Objects which this object depends on: named edges in the dependency
+       * graph.
+       * Note: All kinds of SavedObject may have children, except
+       * "constant" and "captured_tensor".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public Builder addAllChildren( + java.lang.Iterable values) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, children_); + onChanged(); + } else { + childrenBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Objects which this object depends on: named edges in the dependency
+       * graph.
+       * Note: All kinds of SavedObject may have children, except
+       * "constant" and "captured_tensor".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public Builder clearChildren() { + if (childrenBuilder_ == null) { + children_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + childrenBuilder_.clear(); + } + return this; + } + /** + *
+       * Objects which this object depends on: named edges in the dependency
+       * graph.
+       * Note: All kinds of SavedObject may have children, except
+       * "constant" and "captured_tensor".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public Builder removeChildren(int index) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.remove(index); + onChanged(); + } else { + childrenBuilder_.remove(index); + } + return this; + } + /** + *
+       * Objects which this object depends on: named edges in the dependency
+       * graph.
+       * Note: All kinds of SavedObject may have children, except
+       * "constant" and "captured_tensor".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder getChildrenBuilder( + int index) { + return getChildrenFieldBuilder().getBuilder(index); + } + /** + *
+       * Objects which this object depends on: named edges in the dependency
+       * graph.
+       * Note: All kinds of SavedObject may have children, except
+       * "constant" and "captured_tensor".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder getChildrenOrBuilder( + int index) { + if (childrenBuilder_ == null) { + return children_.get(index); } else { + return childrenBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Objects which this object depends on: named edges in the dependency
+       * graph.
+       * Note: All kinds of SavedObject may have children, except
+       * "constant" and "captured_tensor".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public java.util.List + getChildrenOrBuilderList() { + if (childrenBuilder_ != null) { + return childrenBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(children_); + } + } + /** + *
+       * Objects which this object depends on: named edges in the dependency
+       * graph.
+       * Note: All kinds of SavedObject may have children, except
+       * "constant" and "captured_tensor".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder addChildrenBuilder() { + return getChildrenFieldBuilder().addBuilder( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.getDefaultInstance()); + } + /** + *
+       * Objects which this object depends on: named edges in the dependency
+       * graph.
+       * Note: All kinds of SavedObject may have children, except
+       * "constant" and "captured_tensor".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder addChildrenBuilder( + int index) { + return getChildrenFieldBuilder().addBuilder( + index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.getDefaultInstance()); + } + /** + *
+       * Objects which this object depends on: named edges in the dependency
+       * graph.
+       * Note: All kinds of SavedObject may have children, except
+       * "constant" and "captured_tensor".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public java.util.List + getChildrenBuilderList() { + return getChildrenFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder> + getChildrenFieldBuilder() { + if (childrenBuilder_ == null) { + childrenBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder>( + children_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + children_ = null; + } + return childrenBuilder_; + } + + private java.util.List dependencies_ = + java.util.Collections.emptyList(); + private void ensureDependenciesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + dependencies_ = new java.util.ArrayList(dependencies_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder> dependenciesBuilder_; + + /** + *
+       * Ordered list of dependencies that must be loaded before this object.
+       * SavedModel loads with the bottom-up approach, by first creating all objects
+       * (in the order defined by the dependencies), then connecting the edges.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + public java.util.List getDependenciesList() { + if (dependenciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dependencies_); + } else { + return dependenciesBuilder_.getMessageList(); + } + } + /** + *
+       * Ordered list of dependencies that must be loaded before this object.
+       * SavedModel loads with the bottom-up approach, by first creating all objects
+       * (in the order defined by the dependencies), then connecting the edges.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + public int getDependenciesCount() { + if (dependenciesBuilder_ == null) { + return dependencies_.size(); + } else { + return dependenciesBuilder_.getCount(); + } + } + /** + *
+       * Ordered list of dependencies that must be loaded before this object.
+       * SavedModel loads with the bottom-up approach, by first creating all objects
+       * (in the order defined by the dependencies), then connecting the edges.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference getDependencies(int index) { + if (dependenciesBuilder_ == null) { + return dependencies_.get(index); + } else { + return dependenciesBuilder_.getMessage(index); + } + } + /** + *
+       * Ordered list of dependencies that must be loaded before this object.
+       * SavedModel loads with the bottom-up approach, by first creating all objects
+       * (in the order defined by the dependencies), then connecting the edges.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + public Builder setDependencies( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference value) { + if (dependenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDependenciesIsMutable(); + dependencies_.set(index, value); + onChanged(); + } else { + dependenciesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Ordered list of dependencies that must be loaded before this object.
+       * SavedModel loads with the bottom-up approach, by first creating all objects
+       * (in the order defined by the dependencies), then connecting the edges.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + public Builder setDependencies( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder builderForValue) { + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + dependencies_.set(index, builderForValue.build()); + onChanged(); + } else { + dependenciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Ordered list of dependencies that must be loaded before this object.
+       * SavedModel loads with the bottom-up approach, by first creating all objects
+       * (in the order defined by the dependencies), then connecting the edges.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + public Builder addDependencies(org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference value) { + if (dependenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDependenciesIsMutable(); + dependencies_.add(value); + onChanged(); + } else { + dependenciesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Ordered list of dependencies that must be loaded before this object.
+       * SavedModel loads with the bottom-up approach, by first creating all objects
+       * (in the order defined by the dependencies), then connecting the edges.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + public Builder addDependencies( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference value) { + if (dependenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDependenciesIsMutable(); + dependencies_.add(index, value); + onChanged(); + } else { + dependenciesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Ordered list of dependencies that must be loaded before this object.
+       * SavedModel loads with the bottom-up approach, by first creating all objects
+       * (in the order defined by the dependencies), then connecting the edges.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + public Builder addDependencies( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder builderForValue) { + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + dependencies_.add(builderForValue.build()); + onChanged(); + } else { + dependenciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Ordered list of dependencies that must be loaded before this object.
+       * SavedModel loads with the bottom-up approach, by first creating all objects
+       * (in the order defined by the dependencies), then connecting the edges.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + public Builder addDependencies( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder builderForValue) { + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + dependencies_.add(index, builderForValue.build()); + onChanged(); + } else { + dependenciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Ordered list of dependencies that must be loaded before this object.
+       * SavedModel loads with the bottom-up approach, by first creating all objects
+       * (in the order defined by the dependencies), then connecting the edges.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + public Builder addAllDependencies( + java.lang.Iterable values) { + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dependencies_); + onChanged(); + } else { + dependenciesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Ordered list of dependencies that must be loaded before this object.
+       * SavedModel loads with the bottom-up approach, by first creating all objects
+       * (in the order defined by the dependencies), then connecting the edges.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + public Builder clearDependencies() { + if (dependenciesBuilder_ == null) { + dependencies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + dependenciesBuilder_.clear(); + } + return this; + } + /** + *
+       * Ordered list of dependencies that must be loaded before this object.
+       * SavedModel loads with the bottom-up approach, by first creating all objects
+       * (in the order defined by the dependencies), then connecting the edges.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + public Builder removeDependencies(int index) { + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + dependencies_.remove(index); + onChanged(); + } else { + dependenciesBuilder_.remove(index); + } + return this; + } + /** + *
+       * Ordered list of dependencies that must be loaded before this object.
+       * SavedModel loads with the bottom-up approach, by first creating all objects
+       * (in the order defined by the dependencies), then connecting the edges.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder getDependenciesBuilder( + int index) { + return getDependenciesFieldBuilder().getBuilder(index); + } + /** + *
+       * Ordered list of dependencies that must be loaded before this object.
+       * SavedModel loads with the bottom-up approach, by first creating all objects
+       * (in the order defined by the dependencies), then connecting the edges.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder getDependenciesOrBuilder( + int index) { + if (dependenciesBuilder_ == null) { + return dependencies_.get(index); } else { + return dependenciesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Ordered list of dependencies that must be loaded before this object.
+       * SavedModel loads with the bottom-up approach, by first creating all objects
+       * (in the order defined by the dependencies), then connecting the edges.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + public java.util.List + getDependenciesOrBuilderList() { + if (dependenciesBuilder_ != null) { + return dependenciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dependencies_); + } + } + /** + *
+       * Ordered list of dependencies that must be loaded before this object.
+       * SavedModel loads with the bottom-up approach, by first creating all objects
+       * (in the order defined by the dependencies), then connecting the edges.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder addDependenciesBuilder() { + return getDependenciesFieldBuilder().addBuilder( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.getDefaultInstance()); + } + /** + *
+       * Ordered list of dependencies that must be loaded before this object.
+       * SavedModel loads with the bottom-up approach, by first creating all objects
+       * (in the order defined by the dependencies), then connecting the edges.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder addDependenciesBuilder( + int index) { + return getDependenciesFieldBuilder().addBuilder( + index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.getDefaultInstance()); + } + /** + *
+       * Ordered list of dependencies that must be loaded before this object.
+       * SavedModel loads with the bottom-up approach, by first creating all objects
+       * (in the order defined by the dependencies), then connecting the edges.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; + */ + public java.util.List + getDependenciesBuilderList() { + return getDependenciesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder> + getDependenciesFieldBuilder() { + if (dependenciesBuilder_ == null) { + dependenciesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder>( + dependencies_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + dependencies_ = null; + } + return dependenciesBuilder_; + } + + private java.util.List slotVariables_ = + java.util.Collections.emptyList(); + private void ensureSlotVariablesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + slotVariables_ = new java.util.ArrayList(slotVariables_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder> slotVariablesBuilder_; + + /** + *
+       * Slot variables owned by this object. This describes the three-way
+       * (optimizer, variable, slot variable) relationship; none of the three
+       * depend on the others directly.
+       * Note: currently only valid if kind == "user_object".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public java.util.List getSlotVariablesList() { + if (slotVariablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(slotVariables_); + } else { + return slotVariablesBuilder_.getMessageList(); + } + } + /** + *
+       * Slot variables owned by this object. This describes the three-way
+       * (optimizer, variable, slot variable) relationship; none of the three
+       * depend on the others directly.
+       * Note: currently only valid if kind == "user_object".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public int getSlotVariablesCount() { + if (slotVariablesBuilder_ == null) { + return slotVariables_.size(); + } else { + return slotVariablesBuilder_.getCount(); + } + } + /** + *
+       * Slot variables owned by this object. This describes the three-way
+       * (optimizer, variable, slot variable) relationship; none of the three
+       * depend on the others directly.
+       * Note: currently only valid if kind == "user_object".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference getSlotVariables(int index) { + if (slotVariablesBuilder_ == null) { + return slotVariables_.get(index); + } else { + return slotVariablesBuilder_.getMessage(index); + } + } + /** + *
+       * Slot variables owned by this object. This describes the three-way
+       * (optimizer, variable, slot variable) relationship; none of the three
+       * depend on the others directly.
+       * Note: currently only valid if kind == "user_object".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public Builder setSlotVariables( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference value) { + if (slotVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSlotVariablesIsMutable(); + slotVariables_.set(index, value); + onChanged(); + } else { + slotVariablesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Slot variables owned by this object. This describes the three-way
+       * (optimizer, variable, slot variable) relationship; none of the three
+       * depend on the others directly.
+       * Note: currently only valid if kind == "user_object".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public Builder setSlotVariables( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder builderForValue) { + if (slotVariablesBuilder_ == null) { + ensureSlotVariablesIsMutable(); + slotVariables_.set(index, builderForValue.build()); + onChanged(); + } else { + slotVariablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Slot variables owned by this object. This describes the three-way
+       * (optimizer, variable, slot variable) relationship; none of the three
+       * depend on the others directly.
+       * Note: currently only valid if kind == "user_object".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public Builder addSlotVariables(org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference value) { + if (slotVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSlotVariablesIsMutable(); + slotVariables_.add(value); + onChanged(); + } else { + slotVariablesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Slot variables owned by this object. This describes the three-way
+       * (optimizer, variable, slot variable) relationship; none of the three
+       * depend on the others directly.
+       * Note: currently only valid if kind == "user_object".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public Builder addSlotVariables( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference value) { + if (slotVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSlotVariablesIsMutable(); + slotVariables_.add(index, value); + onChanged(); + } else { + slotVariablesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Slot variables owned by this object. This describes the three-way
+       * (optimizer, variable, slot variable) relationship; none of the three
+       * depend on the others directly.
+       * Note: currently only valid if kind == "user_object".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public Builder addSlotVariables( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder builderForValue) { + if (slotVariablesBuilder_ == null) { + ensureSlotVariablesIsMutable(); + slotVariables_.add(builderForValue.build()); + onChanged(); + } else { + slotVariablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Slot variables owned by this object. This describes the three-way
+       * (optimizer, variable, slot variable) relationship; none of the three
+       * depend on the others directly.
+       * Note: currently only valid if kind == "user_object".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public Builder addSlotVariables( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder builderForValue) { + if (slotVariablesBuilder_ == null) { + ensureSlotVariablesIsMutable(); + slotVariables_.add(index, builderForValue.build()); + onChanged(); + } else { + slotVariablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Slot variables owned by this object. This describes the three-way
+       * (optimizer, variable, slot variable) relationship; none of the three
+       * depend on the others directly.
+       * Note: currently only valid if kind == "user_object".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public Builder addAllSlotVariables( + java.lang.Iterable values) { + if (slotVariablesBuilder_ == null) { + ensureSlotVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, slotVariables_); + onChanged(); + } else { + slotVariablesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Slot variables owned by this object. This describes the three-way
+       * (optimizer, variable, slot variable) relationship; none of the three
+       * depend on the others directly.
+       * Note: currently only valid if kind == "user_object".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public Builder clearSlotVariables() { + if (slotVariablesBuilder_ == null) { + slotVariables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + slotVariablesBuilder_.clear(); + } + return this; + } + /** + *
+       * Slot variables owned by this object. This describes the three-way
+       * (optimizer, variable, slot variable) relationship; none of the three
+       * depend on the others directly.
+       * Note: currently only valid if kind == "user_object".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public Builder removeSlotVariables(int index) { + if (slotVariablesBuilder_ == null) { + ensureSlotVariablesIsMutable(); + slotVariables_.remove(index); + onChanged(); + } else { + slotVariablesBuilder_.remove(index); + } + return this; + } + /** + *
+       * Slot variables owned by this object. This describes the three-way
+       * (optimizer, variable, slot variable) relationship; none of the three
+       * depend on the others directly.
+       * Note: currently only valid if kind == "user_object".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder getSlotVariablesBuilder( + int index) { + return getSlotVariablesFieldBuilder().getBuilder(index); + } + /** + *
+       * Slot variables owned by this object. This describes the three-way
+       * (optimizer, variable, slot variable) relationship; none of the three
+       * depend on the others directly.
+       * Note: currently only valid if kind == "user_object".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder getSlotVariablesOrBuilder( + int index) { + if (slotVariablesBuilder_ == null) { + return slotVariables_.get(index); } else { + return slotVariablesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Slot variables owned by this object. This describes the three-way
+       * (optimizer, variable, slot variable) relationship; none of the three
+       * depend on the others directly.
+       * Note: currently only valid if kind == "user_object".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public java.util.List + getSlotVariablesOrBuilderList() { + if (slotVariablesBuilder_ != null) { + return slotVariablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(slotVariables_); + } + } + /** + *
+       * Slot variables owned by this object. This describes the three-way
+       * (optimizer, variable, slot variable) relationship; none of the three
+       * depend on the others directly.
+       * Note: currently only valid if kind == "user_object".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder addSlotVariablesBuilder() { + return getSlotVariablesFieldBuilder().addBuilder( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.getDefaultInstance()); + } + /** + *
+       * Slot variables owned by this object. This describes the three-way
+       * (optimizer, variable, slot variable) relationship; none of the three
+       * depend on the others directly.
+       * Note: currently only valid if kind == "user_object".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder addSlotVariablesBuilder( + int index) { + return getSlotVariablesFieldBuilder().addBuilder( + index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.getDefaultInstance()); + } + /** + *
+       * Slot variables owned by this object. This describes the three-way
+       * (optimizer, variable, slot variable) relationship; none of the three
+       * depend on the others directly.
+       * Note: currently only valid if kind == "user_object".
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public java.util.List + getSlotVariablesBuilderList() { + return getSlotVariablesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder> + getSlotVariablesFieldBuilder() { + if (slotVariablesBuilder_ == null) { + slotVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder>( + slotVariables_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + slotVariables_ = null; + } + return slotVariablesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObjectOrBuilder> userObjectBuilder_; + /** + * .tensorflow.SavedUserObject user_object = 4; + * @return Whether the userObject field is set. + */ + @java.lang.Override + public boolean hasUserObject() { + return kindCase_ == 4; + } + /** + * .tensorflow.SavedUserObject user_object = 4; + * @return The userObject. + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject getUserObject() { + if (userObjectBuilder_ == null) { + if (kindCase_ == 4) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject.getDefaultInstance(); + } else { + if (kindCase_ == 4) { + return userObjectBuilder_.getMessage(); + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject.getDefaultInstance(); + } + } + /** + * .tensorflow.SavedUserObject user_object = 4; + */ + public Builder setUserObject(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject value) { + if (userObjectBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + userObjectBuilder_.setMessage(value); + } + kindCase_ = 4; + return this; + } + /** + * .tensorflow.SavedUserObject user_object = 4; + */ + public Builder setUserObject( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject.Builder builderForValue) { + if (userObjectBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + userObjectBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 4; + return this; + } + /** + * .tensorflow.SavedUserObject user_object = 4; + */ + public Builder mergeUserObject(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject value) { + if (userObjectBuilder_ == null) { + if (kindCase_ == 4 && + kind_ != org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject.getDefaultInstance()) { + kind_ = org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject.newBuilder((org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 4) { + userObjectBuilder_.mergeFrom(value); + } else { + userObjectBuilder_.setMessage(value); + } + } + kindCase_ = 4; + return this; + } + /** + * .tensorflow.SavedUserObject user_object = 4; + */ + public Builder clearUserObject() { + if (userObjectBuilder_ == null) { + if (kindCase_ == 4) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 4) { + kindCase_ = 0; + kind_ = null; + } + userObjectBuilder_.clear(); + } + return this; + } + /** + * .tensorflow.SavedUserObject user_object = 4; + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject.Builder getUserObjectBuilder() { + return getUserObjectFieldBuilder().getBuilder(); + } + /** + * .tensorflow.SavedUserObject user_object = 4; + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObjectOrBuilder getUserObjectOrBuilder() { + if ((kindCase_ == 4) && (userObjectBuilder_ != null)) { + return userObjectBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 4) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject.getDefaultInstance(); + } + } + /** + * .tensorflow.SavedUserObject user_object = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObjectOrBuilder> + getUserObjectFieldBuilder() { + if (userObjectBuilder_ == null) { + if (!(kindCase_ == 4)) { + kind_ = org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject.getDefaultInstance(); + } + userObjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObjectOrBuilder>( + (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 4; + onChanged();; + return userObjectBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAssetOrBuilder> assetBuilder_; + /** + * .tensorflow.SavedAsset asset = 5; + * @return Whether the asset field is set. + */ + @java.lang.Override + public boolean hasAsset() { + return kindCase_ == 5; + } + /** + * .tensorflow.SavedAsset asset = 5; + * @return The asset. + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset getAsset() { + if (assetBuilder_ == null) { + if (kindCase_ == 5) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset.getDefaultInstance(); + } else { + if (kindCase_ == 5) { + return assetBuilder_.getMessage(); + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset.getDefaultInstance(); + } + } + /** + * .tensorflow.SavedAsset asset = 5; + */ + public Builder setAsset(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset value) { + if (assetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + assetBuilder_.setMessage(value); + } + kindCase_ = 5; + return this; + } + /** + * .tensorflow.SavedAsset asset = 5; + */ + public Builder setAsset( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset.Builder builderForValue) { + if (assetBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + assetBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 5; + return this; + } + /** + * .tensorflow.SavedAsset asset = 5; + */ + public Builder mergeAsset(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset value) { + if (assetBuilder_ == null) { + if (kindCase_ == 5 && + kind_ != org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset.getDefaultInstance()) { + kind_ = org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset.newBuilder((org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 5) { + assetBuilder_.mergeFrom(value); + } else { + assetBuilder_.setMessage(value); + } + } + kindCase_ = 5; + return this; + } + /** + * .tensorflow.SavedAsset asset = 5; + */ + public Builder clearAsset() { + if (assetBuilder_ == null) { + if (kindCase_ == 5) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 5) { + kindCase_ = 0; + kind_ = null; + } + assetBuilder_.clear(); + } + return this; + } + /** + * .tensorflow.SavedAsset asset = 5; + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset.Builder getAssetBuilder() { + return getAssetFieldBuilder().getBuilder(); + } + /** + * .tensorflow.SavedAsset asset = 5; + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAssetOrBuilder getAssetOrBuilder() { + if ((kindCase_ == 5) && (assetBuilder_ != null)) { + return assetBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 5) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset.getDefaultInstance(); + } + } + /** + * .tensorflow.SavedAsset asset = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAssetOrBuilder> + getAssetFieldBuilder() { + if (assetBuilder_ == null) { + if (!(kindCase_ == 5)) { + kind_ = org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset.getDefaultInstance(); + } + assetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAssetOrBuilder>( + (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 5; + onChanged();; + return assetBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunctionOrBuilder> functionBuilder_; + /** + * .tensorflow.SavedFunction function = 6; + * @return Whether the function field is set. + */ + @java.lang.Override + public boolean hasFunction() { + return kindCase_ == 6; + } + /** + * .tensorflow.SavedFunction function = 6; + * @return The function. + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction getFunction() { + if (functionBuilder_ == null) { + if (kindCase_ == 6) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction.getDefaultInstance(); + } else { + if (kindCase_ == 6) { + return functionBuilder_.getMessage(); + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction.getDefaultInstance(); + } + } + /** + * .tensorflow.SavedFunction function = 6; + */ + public Builder setFunction(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction value) { + if (functionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + functionBuilder_.setMessage(value); + } + kindCase_ = 6; + return this; + } + /** + * .tensorflow.SavedFunction function = 6; + */ + public Builder setFunction( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction.Builder builderForValue) { + if (functionBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + functionBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 6; + return this; + } + /** + * .tensorflow.SavedFunction function = 6; + */ + public Builder mergeFunction(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction value) { + if (functionBuilder_ == null) { + if (kindCase_ == 6 && + kind_ != org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction.getDefaultInstance()) { + kind_ = org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction.newBuilder((org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 6) { + functionBuilder_.mergeFrom(value); + } else { + functionBuilder_.setMessage(value); + } + } + kindCase_ = 6; + return this; + } + /** + * .tensorflow.SavedFunction function = 6; + */ + public Builder clearFunction() { + if (functionBuilder_ == null) { + if (kindCase_ == 6) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 6) { + kindCase_ = 0; + kind_ = null; + } + functionBuilder_.clear(); + } + return this; + } + /** + * .tensorflow.SavedFunction function = 6; + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction.Builder getFunctionBuilder() { + return getFunctionFieldBuilder().getBuilder(); + } + /** + * .tensorflow.SavedFunction function = 6; + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunctionOrBuilder getFunctionOrBuilder() { + if ((kindCase_ == 6) && (functionBuilder_ != null)) { + return functionBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 6) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction.getDefaultInstance(); + } + } + /** + * .tensorflow.SavedFunction function = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunctionOrBuilder> + getFunctionFieldBuilder() { + if (functionBuilder_ == null) { + if (!(kindCase_ == 6)) { + kind_ = org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction.getDefaultInstance(); + } + functionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunctionOrBuilder>( + (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 6; + onChanged();; + return functionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariableOrBuilder> variableBuilder_; + /** + * .tensorflow.SavedVariable variable = 7; + * @return Whether the variable field is set. + */ + @java.lang.Override + public boolean hasVariable() { + return kindCase_ == 7; + } + /** + * .tensorflow.SavedVariable variable = 7; + * @return The variable. + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable getVariable() { + if (variableBuilder_ == null) { + if (kindCase_ == 7) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.getDefaultInstance(); + } else { + if (kindCase_ == 7) { + return variableBuilder_.getMessage(); + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.getDefaultInstance(); + } + } + /** + * .tensorflow.SavedVariable variable = 7; + */ + public Builder setVariable(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable value) { + if (variableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + variableBuilder_.setMessage(value); + } + kindCase_ = 7; + return this; + } + /** + * .tensorflow.SavedVariable variable = 7; + */ + public Builder setVariable( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.Builder builderForValue) { + if (variableBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + variableBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 7; + return this; + } + /** + * .tensorflow.SavedVariable variable = 7; + */ + public Builder mergeVariable(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable value) { + if (variableBuilder_ == null) { + if (kindCase_ == 7 && + kind_ != org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.getDefaultInstance()) { + kind_ = org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.newBuilder((org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 7) { + variableBuilder_.mergeFrom(value); + } else { + variableBuilder_.setMessage(value); + } + } + kindCase_ = 7; + return this; + } + /** + * .tensorflow.SavedVariable variable = 7; + */ + public Builder clearVariable() { + if (variableBuilder_ == null) { + if (kindCase_ == 7) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 7) { + kindCase_ = 0; + kind_ = null; + } + variableBuilder_.clear(); + } + return this; + } + /** + * .tensorflow.SavedVariable variable = 7; + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.Builder getVariableBuilder() { + return getVariableFieldBuilder().getBuilder(); + } + /** + * .tensorflow.SavedVariable variable = 7; + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariableOrBuilder getVariableOrBuilder() { + if ((kindCase_ == 7) && (variableBuilder_ != null)) { + return variableBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 7) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.getDefaultInstance(); + } + } + /** + * .tensorflow.SavedVariable variable = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariableOrBuilder> + getVariableFieldBuilder() { + if (variableBuilder_ == null) { + if (!(kindCase_ == 7)) { + kind_ = org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.getDefaultInstance(); + } + variableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariableOrBuilder>( + (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 7; + onChanged();; + return variableBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunctionOrBuilder> bareConcreteFunctionBuilder_; + /** + * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; + * @return Whether the bareConcreteFunction field is set. + */ + @java.lang.Override + public boolean hasBareConcreteFunction() { + return kindCase_ == 8; + } + /** + * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; + * @return The bareConcreteFunction. + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction getBareConcreteFunction() { + if (bareConcreteFunctionBuilder_ == null) { + if (kindCase_ == 8) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction.getDefaultInstance(); + } else { + if (kindCase_ == 8) { + return bareConcreteFunctionBuilder_.getMessage(); + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction.getDefaultInstance(); + } + } + /** + * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; + */ + public Builder setBareConcreteFunction(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction value) { + if (bareConcreteFunctionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + bareConcreteFunctionBuilder_.setMessage(value); + } + kindCase_ = 8; + return this; + } + /** + * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; + */ + public Builder setBareConcreteFunction( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction.Builder builderForValue) { + if (bareConcreteFunctionBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + bareConcreteFunctionBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 8; + return this; + } + /** + * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; + */ + public Builder mergeBareConcreteFunction(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction value) { + if (bareConcreteFunctionBuilder_ == null) { + if (kindCase_ == 8 && + kind_ != org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction.getDefaultInstance()) { + kind_ = org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction.newBuilder((org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 8) { + bareConcreteFunctionBuilder_.mergeFrom(value); + } else { + bareConcreteFunctionBuilder_.setMessage(value); + } + } + kindCase_ = 8; + return this; + } + /** + * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; + */ + public Builder clearBareConcreteFunction() { + if (bareConcreteFunctionBuilder_ == null) { + if (kindCase_ == 8) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 8) { + kindCase_ = 0; + kind_ = null; + } + bareConcreteFunctionBuilder_.clear(); + } + return this; + } + /** + * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction.Builder getBareConcreteFunctionBuilder() { + return getBareConcreteFunctionFieldBuilder().getBuilder(); + } + /** + * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunctionOrBuilder getBareConcreteFunctionOrBuilder() { + if ((kindCase_ == 8) && (bareConcreteFunctionBuilder_ != null)) { + return bareConcreteFunctionBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 8) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction.getDefaultInstance(); + } + } + /** + * .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunctionOrBuilder> + getBareConcreteFunctionFieldBuilder() { + if (bareConcreteFunctionBuilder_ == null) { + if (!(kindCase_ == 8)) { + kind_ = org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction.getDefaultInstance(); + } + bareConcreteFunctionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunctionOrBuilder>( + (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 8; + onChanged();; + return bareConcreteFunctionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstantOrBuilder> constantBuilder_; + /** + * .tensorflow.SavedConstant constant = 9; + * @return Whether the constant field is set. + */ + @java.lang.Override + public boolean hasConstant() { + return kindCase_ == 9; + } + /** + * .tensorflow.SavedConstant constant = 9; + * @return The constant. + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant getConstant() { + if (constantBuilder_ == null) { + if (kindCase_ == 9) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant.getDefaultInstance(); + } else { + if (kindCase_ == 9) { + return constantBuilder_.getMessage(); + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant.getDefaultInstance(); + } + } + /** + * .tensorflow.SavedConstant constant = 9; + */ + public Builder setConstant(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant value) { + if (constantBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + constantBuilder_.setMessage(value); + } + kindCase_ = 9; + return this; + } + /** + * .tensorflow.SavedConstant constant = 9; + */ + public Builder setConstant( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant.Builder builderForValue) { + if (constantBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + constantBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 9; + return this; + } + /** + * .tensorflow.SavedConstant constant = 9; + */ + public Builder mergeConstant(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant value) { + if (constantBuilder_ == null) { + if (kindCase_ == 9 && + kind_ != org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant.getDefaultInstance()) { + kind_ = org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant.newBuilder((org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 9) { + constantBuilder_.mergeFrom(value); + } else { + constantBuilder_.setMessage(value); + } + } + kindCase_ = 9; + return this; + } + /** + * .tensorflow.SavedConstant constant = 9; + */ + public Builder clearConstant() { + if (constantBuilder_ == null) { + if (kindCase_ == 9) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 9) { + kindCase_ = 0; + kind_ = null; + } + constantBuilder_.clear(); + } + return this; + } + /** + * .tensorflow.SavedConstant constant = 9; + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant.Builder getConstantBuilder() { + return getConstantFieldBuilder().getBuilder(); + } + /** + * .tensorflow.SavedConstant constant = 9; + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstantOrBuilder getConstantOrBuilder() { + if ((kindCase_ == 9) && (constantBuilder_ != null)) { + return constantBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 9) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant.getDefaultInstance(); + } + } + /** + * .tensorflow.SavedConstant constant = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstantOrBuilder> + getConstantFieldBuilder() { + if (constantBuilder_ == null) { + if (!(kindCase_ == 9)) { + kind_ = org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant.getDefaultInstance(); + } + constantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstantOrBuilder>( + (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 9; + onChanged();; + return constantBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResourceOrBuilder> resourceBuilder_; + /** + * .tensorflow.SavedResource resource = 10; + * @return Whether the resource field is set. + */ + @java.lang.Override + public boolean hasResource() { + return kindCase_ == 10; + } + /** + * .tensorflow.SavedResource resource = 10; + * @return The resource. + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource getResource() { + if (resourceBuilder_ == null) { + if (kindCase_ == 10) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource.getDefaultInstance(); + } else { + if (kindCase_ == 10) { + return resourceBuilder_.getMessage(); + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource.getDefaultInstance(); + } + } + /** + * .tensorflow.SavedResource resource = 10; + */ + public Builder setResource(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource value) { + if (resourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + resourceBuilder_.setMessage(value); + } + kindCase_ = 10; + return this; + } + /** + * .tensorflow.SavedResource resource = 10; + */ + public Builder setResource( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource.Builder builderForValue) { + if (resourceBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + resourceBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 10; + return this; + } + /** + * .tensorflow.SavedResource resource = 10; + */ + public Builder mergeResource(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource value) { + if (resourceBuilder_ == null) { + if (kindCase_ == 10 && + kind_ != org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource.getDefaultInstance()) { + kind_ = org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource.newBuilder((org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 10) { + resourceBuilder_.mergeFrom(value); + } else { + resourceBuilder_.setMessage(value); + } + } + kindCase_ = 10; + return this; + } + /** + * .tensorflow.SavedResource resource = 10; + */ + public Builder clearResource() { + if (resourceBuilder_ == null) { + if (kindCase_ == 10) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 10) { + kindCase_ = 0; + kind_ = null; + } + resourceBuilder_.clear(); + } + return this; + } + /** + * .tensorflow.SavedResource resource = 10; + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource.Builder getResourceBuilder() { + return getResourceFieldBuilder().getBuilder(); + } + /** + * .tensorflow.SavedResource resource = 10; + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResourceOrBuilder getResourceOrBuilder() { + if ((kindCase_ == 10) && (resourceBuilder_ != null)) { + return resourceBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 10) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource.getDefaultInstance(); + } + } + /** + * .tensorflow.SavedResource resource = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResourceOrBuilder> + getResourceFieldBuilder() { + if (resourceBuilder_ == null) { + if (!(kindCase_ == 10)) { + kind_ = org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource.getDefaultInstance(); + } + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResourceOrBuilder>( + (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 10; + onChanged();; + return resourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor, org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensorOrBuilder> capturedTensorBuilder_; + /** + * .tensorflow.CapturedTensor captured_tensor = 12; + * @return Whether the capturedTensor field is set. + */ + @java.lang.Override + public boolean hasCapturedTensor() { + return kindCase_ == 12; + } + /** + * .tensorflow.CapturedTensor captured_tensor = 12; + * @return The capturedTensor. + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor getCapturedTensor() { + if (capturedTensorBuilder_ == null) { + if (kindCase_ == 12) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor.getDefaultInstance(); + } else { + if (kindCase_ == 12) { + return capturedTensorBuilder_.getMessage(); + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor.getDefaultInstance(); + } + } + /** + * .tensorflow.CapturedTensor captured_tensor = 12; + */ + public Builder setCapturedTensor(org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor value) { + if (capturedTensorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + capturedTensorBuilder_.setMessage(value); + } + kindCase_ = 12; + return this; + } + /** + * .tensorflow.CapturedTensor captured_tensor = 12; + */ + public Builder setCapturedTensor( + org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor.Builder builderForValue) { + if (capturedTensorBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + capturedTensorBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 12; + return this; + } + /** + * .tensorflow.CapturedTensor captured_tensor = 12; + */ + public Builder mergeCapturedTensor(org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor value) { + if (capturedTensorBuilder_ == null) { + if (kindCase_ == 12 && + kind_ != org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor.getDefaultInstance()) { + kind_ = org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor.newBuilder((org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 12) { + capturedTensorBuilder_.mergeFrom(value); + } else { + capturedTensorBuilder_.setMessage(value); + } + } + kindCase_ = 12; + return this; + } + /** + * .tensorflow.CapturedTensor captured_tensor = 12; + */ + public Builder clearCapturedTensor() { + if (capturedTensorBuilder_ == null) { + if (kindCase_ == 12) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 12) { + kindCase_ = 0; + kind_ = null; + } + capturedTensorBuilder_.clear(); + } + return this; + } + /** + * .tensorflow.CapturedTensor captured_tensor = 12; + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor.Builder getCapturedTensorBuilder() { + return getCapturedTensorFieldBuilder().getBuilder(); + } + /** + * .tensorflow.CapturedTensor captured_tensor = 12; + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensorOrBuilder getCapturedTensorOrBuilder() { + if ((kindCase_ == 12) && (capturedTensorBuilder_ != null)) { + return capturedTensorBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 12) { + return (org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor) kind_; + } + return org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor.getDefaultInstance(); + } + } + /** + * .tensorflow.CapturedTensor captured_tensor = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor, org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensorOrBuilder> + getCapturedTensorFieldBuilder() { + if (capturedTensorBuilder_ == null) { + if (!(kindCase_ == 12)) { + kind_ = org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor.getDefaultInstance(); + } + capturedTensorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor, org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensorOrBuilder>( + (org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 12; + onChanged();; + return capturedTensorBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject> saveableObjects_; + private com.google.protobuf.MapField + internalGetSaveableObjects() { + if (saveableObjects_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SaveableObjectsDefaultEntryHolder.defaultEntry); + } + return saveableObjects_; + } + private com.google.protobuf.MapField + internalGetMutableSaveableObjects() { + onChanged();; + if (saveableObjects_ == null) { + saveableObjects_ = com.google.protobuf.MapField.newMapField( + SaveableObjectsDefaultEntryHolder.defaultEntry); + } + if (!saveableObjects_.isMutable()) { + saveableObjects_ = saveableObjects_.copy(); + } + return saveableObjects_; + } + + public int getSaveableObjectsCount() { + return internalGetSaveableObjects().getMap().size(); + } + /** + *
+       * Stores the functions used to save and restore this object. At most one of
+       * `saveable_objects` or `registered_saver` is defined for each SavedObject.
+       * See the comment below for the difference between SaveableObject and
+       * registered savers.
+       * 
+ * + * map<string, .tensorflow.SaveableObject> saveable_objects = 11; + */ + + @java.lang.Override + public boolean containsSaveableObjects( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetSaveableObjects().getMap().containsKey(key); + } + /** + * Use {@link #getSaveableObjectsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getSaveableObjects() { + return getSaveableObjectsMap(); + } + /** + *
+       * Stores the functions used to save and restore this object. At most one of
+       * `saveable_objects` or `registered_saver` is defined for each SavedObject.
+       * See the comment below for the difference between SaveableObject and
+       * registered savers.
+       * 
+ * + * map<string, .tensorflow.SaveableObject> saveable_objects = 11; + */ + @java.lang.Override + + public java.util.Map getSaveableObjectsMap() { + return internalGetSaveableObjects().getMap(); + } + /** + *
+       * Stores the functions used to save and restore this object. At most one of
+       * `saveable_objects` or `registered_saver` is defined for each SavedObject.
+       * See the comment below for the difference between SaveableObject and
+       * registered savers.
+       * 
+ * + * map<string, .tensorflow.SaveableObject> saveable_objects = 11; + */ + @java.lang.Override + + public org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject getSaveableObjectsOrDefault( + java.lang.String key, + org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetSaveableObjects().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Stores the functions used to save and restore this object. At most one of
+       * `saveable_objects` or `registered_saver` is defined for each SavedObject.
+       * See the comment below for the difference between SaveableObject and
+       * registered savers.
+       * 
+ * + * map<string, .tensorflow.SaveableObject> saveable_objects = 11; + */ + @java.lang.Override + + public org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject getSaveableObjectsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetSaveableObjects().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSaveableObjects() { + internalGetMutableSaveableObjects().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Stores the functions used to save and restore this object. At most one of
+       * `saveable_objects` or `registered_saver` is defined for each SavedObject.
+       * See the comment below for the difference between SaveableObject and
+       * registered savers.
+       * 
+ * + * map<string, .tensorflow.SaveableObject> saveable_objects = 11; + */ + + public Builder removeSaveableObjects( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableSaveableObjects().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableSaveableObjects() { + return internalGetMutableSaveableObjects().getMutableMap(); + } + /** + *
+       * Stores the functions used to save and restore this object. At most one of
+       * `saveable_objects` or `registered_saver` is defined for each SavedObject.
+       * See the comment below for the difference between SaveableObject and
+       * registered savers.
+       * 
+ * + * map<string, .tensorflow.SaveableObject> saveable_objects = 11; + */ + public Builder putSaveableObjects( + java.lang.String key, + org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableSaveableObjects().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Stores the functions used to save and restore this object. At most one of
+       * `saveable_objects` or `registered_saver` is defined for each SavedObject.
+       * See the comment below for the difference between SaveableObject and
+       * registered savers.
+       * 
+ * + * map<string, .tensorflow.SaveableObject> saveable_objects = 11; + */ + + public Builder putAllSaveableObjects( + java.util.Map values) { + internalGetMutableSaveableObjects().getMutableMap() + .putAll(values); + return this; + } + + private java.lang.Object registeredName_ = ""; + /** + *
+       * The name of the registered class of the form "{package}.{class_name}".
+       * This field is used to search for the registered class at loading time.
+       * 
+ * + * string registered_name = 13; + * @return The registeredName. + */ + public java.lang.String getRegisteredName() { + java.lang.Object ref = registeredName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + registeredName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The name of the registered class of the form "{package}.{class_name}".
+       * This field is used to search for the registered class at loading time.
+       * 
+ * + * string registered_name = 13; + * @return The bytes for registeredName. + */ + public com.google.protobuf.ByteString + getRegisteredNameBytes() { + java.lang.Object ref = registeredName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + registeredName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The name of the registered class of the form "{package}.{class_name}".
+       * This field is used to search for the registered class at loading time.
+       * 
+ * + * string registered_name = 13; + * @param value The registeredName to set. + * @return This builder for chaining. + */ + public Builder setRegisteredName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + registeredName_ = value; + onChanged(); + return this; + } + /** + *
+       * The name of the registered class of the form "{package}.{class_name}".
+       * This field is used to search for the registered class at loading time.
+       * 
+ * + * string registered_name = 13; + * @return This builder for chaining. + */ + public Builder clearRegisteredName() { + + registeredName_ = getDefaultInstance().getRegisteredName(); + onChanged(); + return this; + } + /** + *
+       * The name of the registered class of the form "{package}.{class_name}".
+       * This field is used to search for the registered class at loading time.
+       * 
+ * + * string registered_name = 13; + * @param value The bytes for registeredName to set. + * @return This builder for chaining. + */ + public Builder setRegisteredNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + registeredName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Any serializedUserProto_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> serializedUserProtoBuilder_; + /** + *
+       * The user-generated proto storing metadata for this object, to be passed to
+       * the registered classes's _deserialize_from_proto method when this object is
+       * loaded from the SavedModel.
+       * 
+ * + * .google.protobuf.Any serialized_user_proto = 14; + * @return Whether the serializedUserProto field is set. + */ + public boolean hasSerializedUserProto() { + return serializedUserProtoBuilder_ != null || serializedUserProto_ != null; + } + /** + *
+       * The user-generated proto storing metadata for this object, to be passed to
+       * the registered classes's _deserialize_from_proto method when this object is
+       * loaded from the SavedModel.
+       * 
+ * + * .google.protobuf.Any serialized_user_proto = 14; + * @return The serializedUserProto. + */ + public com.google.protobuf.Any getSerializedUserProto() { + if (serializedUserProtoBuilder_ == null) { + return serializedUserProto_ == null ? com.google.protobuf.Any.getDefaultInstance() : serializedUserProto_; + } else { + return serializedUserProtoBuilder_.getMessage(); + } + } + /** + *
+       * The user-generated proto storing metadata for this object, to be passed to
+       * the registered classes's _deserialize_from_proto method when this object is
+       * loaded from the SavedModel.
+       * 
+ * + * .google.protobuf.Any serialized_user_proto = 14; + */ + public Builder setSerializedUserProto(com.google.protobuf.Any value) { + if (serializedUserProtoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serializedUserProto_ = value; + onChanged(); + } else { + serializedUserProtoBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The user-generated proto storing metadata for this object, to be passed to
+       * the registered classes's _deserialize_from_proto method when this object is
+       * loaded from the SavedModel.
+       * 
+ * + * .google.protobuf.Any serialized_user_proto = 14; + */ + public Builder setSerializedUserProto( + com.google.protobuf.Any.Builder builderForValue) { + if (serializedUserProtoBuilder_ == null) { + serializedUserProto_ = builderForValue.build(); + onChanged(); + } else { + serializedUserProtoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The user-generated proto storing metadata for this object, to be passed to
+       * the registered classes's _deserialize_from_proto method when this object is
+       * loaded from the SavedModel.
+       * 
+ * + * .google.protobuf.Any serialized_user_proto = 14; + */ + public Builder mergeSerializedUserProto(com.google.protobuf.Any value) { + if (serializedUserProtoBuilder_ == null) { + if (serializedUserProto_ != null) { + serializedUserProto_ = + com.google.protobuf.Any.newBuilder(serializedUserProto_).mergeFrom(value).buildPartial(); + } else { + serializedUserProto_ = value; + } + onChanged(); + } else { + serializedUserProtoBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The user-generated proto storing metadata for this object, to be passed to
+       * the registered classes's _deserialize_from_proto method when this object is
+       * loaded from the SavedModel.
+       * 
+ * + * .google.protobuf.Any serialized_user_proto = 14; + */ + public Builder clearSerializedUserProto() { + if (serializedUserProtoBuilder_ == null) { + serializedUserProto_ = null; + onChanged(); + } else { + serializedUserProto_ = null; + serializedUserProtoBuilder_ = null; + } + + return this; + } + /** + *
+       * The user-generated proto storing metadata for this object, to be passed to
+       * the registered classes's _deserialize_from_proto method when this object is
+       * loaded from the SavedModel.
+       * 
+ * + * .google.protobuf.Any serialized_user_proto = 14; + */ + public com.google.protobuf.Any.Builder getSerializedUserProtoBuilder() { + + onChanged(); + return getSerializedUserProtoFieldBuilder().getBuilder(); + } + /** + *
+       * The user-generated proto storing metadata for this object, to be passed to
+       * the registered classes's _deserialize_from_proto method when this object is
+       * loaded from the SavedModel.
+       * 
+ * + * .google.protobuf.Any serialized_user_proto = 14; + */ + public com.google.protobuf.AnyOrBuilder getSerializedUserProtoOrBuilder() { + if (serializedUserProtoBuilder_ != null) { + return serializedUserProtoBuilder_.getMessageOrBuilder(); + } else { + return serializedUserProto_ == null ? + com.google.protobuf.Any.getDefaultInstance() : serializedUserProto_; + } + } + /** + *
+       * The user-generated proto storing metadata for this object, to be passed to
+       * the registered classes's _deserialize_from_proto method when this object is
+       * loaded from the SavedModel.
+       * 
+ * + * .google.protobuf.Any serialized_user_proto = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> + getSerializedUserProtoFieldBuilder() { + if (serializedUserProtoBuilder_ == null) { + serializedUserProtoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( + getSerializedUserProto(), + getParentForChildren(), + isClean()); + serializedUserProto_ = null; + } + return serializedUserProtoBuilder_; + } + + private java.lang.Object registeredSaver_ = ""; + /** + *
+       * String name of the registered saver. At most one of `saveable_objects` or
+       * `registered_saver` is defined for each SavedObject.
+       * 
+ * + * string registered_saver = 16; + * @return The registeredSaver. + */ + public java.lang.String getRegisteredSaver() { + java.lang.Object ref = registeredSaver_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + registeredSaver_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * String name of the registered saver. At most one of `saveable_objects` or
+       * `registered_saver` is defined for each SavedObject.
+       * 
+ * + * string registered_saver = 16; + * @return The bytes for registeredSaver. + */ + public com.google.protobuf.ByteString + getRegisteredSaverBytes() { + java.lang.Object ref = registeredSaver_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + registeredSaver_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * String name of the registered saver. At most one of `saveable_objects` or
+       * `registered_saver` is defined for each SavedObject.
+       * 
+ * + * string registered_saver = 16; + * @param value The registeredSaver to set. + * @return This builder for chaining. + */ + public Builder setRegisteredSaver( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + registeredSaver_ = value; + onChanged(); + return this; + } + /** + *
+       * String name of the registered saver. At most one of `saveable_objects` or
+       * `registered_saver` is defined for each SavedObject.
+       * 
+ * + * string registered_saver = 16; + * @return This builder for chaining. + */ + public Builder clearRegisteredSaver() { + + registeredSaver_ = getDefaultInstance().getRegisteredSaver(); + onChanged(); + return this; + } + /** + *
+       * String name of the registered saver. At most one of `saveable_objects` or
+       * `registered_saver` is defined for each SavedObject.
+       * 
+ * + * string registered_saver = 16; + * @param value The bytes for registeredSaver to set. + * @return This builder for chaining. + */ + public Builder setRegisteredSaverBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + registeredSaver_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.SavedObject) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SavedObject) + private static final org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject(); + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SavedObject 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedObject getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SavedUserObjectOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.SavedUserObject) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Corresponds to a registration of the type to use in the loading program.
+     * 
+ * + * string identifier = 1; + * @return The identifier. + */ + java.lang.String getIdentifier(); + /** + *
+     * Corresponds to a registration of the type to use in the loading program.
+     * 
+ * + * string identifier = 1; + * @return The bytes for identifier. + */ + com.google.protobuf.ByteString + getIdentifierBytes(); + + /** + *
+     * Version information from the producer of this SavedUserObject.
+     * 
+ * + * .tensorflow.VersionDef version = 2; + * @return Whether the version field is set. + */ + boolean hasVersion(); + /** + *
+     * Version information from the producer of this SavedUserObject.
+     * 
+ * + * .tensorflow.VersionDef version = 2; + * @return The version. + */ + org.tensorflow.proto.VersionDef getVersion(); + /** + *
+     * Version information from the producer of this SavedUserObject.
+     * 
+ * + * .tensorflow.VersionDef version = 2; + */ + org.tensorflow.proto.VersionDefOrBuilder getVersionOrBuilder(); + + /** + *
+     * Metadata for deserializing this object.
+     * Deprecated! At the time of deprecation, Keras was the only user of this
+     * field, and its saving and loading code will be updated shortly.
+     * Please save your application-specific metadata to a separate file.
+     * 
+ * + * string metadata = 3 [deprecated = true]; + * @deprecated tensorflow.SavedUserObject.metadata is deprecated. + * See tensorflow/core/protobuf/saved_object_graph.proto;l=122 + * @return The metadata. + */ + @java.lang.Deprecated java.lang.String getMetadata(); + /** + *
+     * Metadata for deserializing this object.
+     * Deprecated! At the time of deprecation, Keras was the only user of this
+     * field, and its saving and loading code will be updated shortly.
+     * Please save your application-specific metadata to a separate file.
+     * 
+ * + * string metadata = 3 [deprecated = true]; + * @deprecated tensorflow.SavedUserObject.metadata is deprecated. + * See tensorflow/core/protobuf/saved_object_graph.proto;l=122 + * @return The bytes for metadata. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getMetadataBytes(); + } + /** + *
+   * A SavedUserObject is an object (in the object-oriented language of the
+   * TensorFlow program) of some user- or framework-defined class other than
+   * those handled specifically by the other kinds of SavedObjects.
+   * This object cannot be evaluated as a tensor, and therefore cannot be bound
+   * to an input of a function.
+   * 
+ * + * Protobuf type {@code tensorflow.SavedUserObject} + */ + public static final class SavedUserObject extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SavedUserObject) + SavedUserObjectOrBuilder { + private static final long serialVersionUID = 0L; + // Use SavedUserObject.newBuilder() to construct. + private SavedUserObject(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SavedUserObject() { + identifier_ = ""; + metadata_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SavedUserObject(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedUserObject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedUserObject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject.class, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject.Builder.class); + } + + public static final int IDENTIFIER_FIELD_NUMBER = 1; + private volatile java.lang.Object identifier_; + /** + *
+     * Corresponds to a registration of the type to use in the loading program.
+     * 
+ * + * string identifier = 1; + * @return The identifier. + */ + @java.lang.Override + public java.lang.String getIdentifier() { + java.lang.Object ref = identifier_; + 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(); + identifier_ = s; + return s; + } + } + /** + *
+     * Corresponds to a registration of the type to use in the loading program.
+     * 
+ * + * string identifier = 1; + * @return The bytes for identifier. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdentifierBytes() { + java.lang.Object ref = identifier_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + identifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 2; + private org.tensorflow.proto.VersionDef version_; + /** + *
+     * Version information from the producer of this SavedUserObject.
+     * 
+ * + * .tensorflow.VersionDef version = 2; + * @return Whether the version field is set. + */ + @java.lang.Override + public boolean hasVersion() { + return version_ != null; + } + /** + *
+     * Version information from the producer of this SavedUserObject.
+     * 
+ * + * .tensorflow.VersionDef version = 2; + * @return The version. + */ + @java.lang.Override + public org.tensorflow.proto.VersionDef getVersion() { + return version_ == null ? org.tensorflow.proto.VersionDef.getDefaultInstance() : version_; + } + /** + *
+     * Version information from the producer of this SavedUserObject.
+     * 
+ * + * .tensorflow.VersionDef version = 2; + */ + @java.lang.Override + public org.tensorflow.proto.VersionDefOrBuilder getVersionOrBuilder() { + return getVersion(); + } + + public static final int METADATA_FIELD_NUMBER = 3; + private volatile java.lang.Object metadata_; + /** + *
+     * Metadata for deserializing this object.
+     * Deprecated! At the time of deprecation, Keras was the only user of this
+     * field, and its saving and loading code will be updated shortly.
+     * Please save your application-specific metadata to a separate file.
+     * 
+ * + * string metadata = 3 [deprecated = true]; + * @deprecated tensorflow.SavedUserObject.metadata is deprecated. + * See tensorflow/core/protobuf/saved_object_graph.proto;l=122 + * @return The metadata. + */ + @java.lang.Override + @java.lang.Deprecated public java.lang.String getMetadata() { + java.lang.Object ref = metadata_; + 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(); + metadata_ = s; + return s; + } + } + /** + *
+     * Metadata for deserializing this object.
+     * Deprecated! At the time of deprecation, Keras was the only user of this
+     * field, and its saving and loading code will be updated shortly.
+     * Please save your application-specific metadata to a separate file.
+     * 
+ * + * string metadata = 3 [deprecated = true]; + * @deprecated tensorflow.SavedUserObject.metadata is deprecated. + * See tensorflow/core/protobuf/saved_object_graph.proto;l=122 + * @return The bytes for metadata. + */ + @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString + getMetadataBytes() { + java.lang.Object ref = metadata_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metadata_ = 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(identifier_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identifier_); + } + if (version_ != null) { + output.writeMessage(2, getVersion()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadata_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, metadata_); + } + 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(identifier_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, identifier_); + } + if (version_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getVersion()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadata_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, metadata_); + } + 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject)) { + return super.equals(obj); + } + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject other = (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject) obj; + + if (!getIdentifier() + .equals(other.getIdentifier())) return false; + if (hasVersion() != other.hasVersion()) return false; + if (hasVersion()) { + if (!getVersion() + .equals(other.getVersion())) return false; + } + if (!getMetadata() + .equals(other.getMetadata())) 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) + IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getIdentifier().hashCode(); + if (hasVersion()) { + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + } + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject 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(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject 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; + } + /** + *
+     * A SavedUserObject is an object (in the object-oriented language of the
+     * TensorFlow program) of some user- or framework-defined class other than
+     * those handled specifically by the other kinds of SavedObjects.
+     * This object cannot be evaluated as a tensor, and therefore cannot be bound
+     * to an input of a function.
+     * 
+ * + * Protobuf type {@code tensorflow.SavedUserObject} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SavedUserObject) + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObjectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedUserObject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedUserObject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject.class, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject.Builder.class); + } + + // Construct using org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + identifier_ = ""; + + if (versionBuilder_ == null) { + version_ = null; + } else { + version_ = null; + versionBuilder_ = null; + } + metadata_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedUserObject_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject getDefaultInstanceForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject build() { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject buildPartial() { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject result = new org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject(this); + result.identifier_ = identifier_; + if (versionBuilder_ == null) { + result.version_ = version_; + } else { + result.version_ = versionBuilder_.build(); + } + result.metadata_ = metadata_; + 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject) { + return mergeFrom((org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject other) { + if (other == org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject.getDefaultInstance()) return this; + if (!other.getIdentifier().isEmpty()) { + identifier_ = other.identifier_; + onChanged(); + } + if (other.hasVersion()) { + mergeVersion(other.getVersion()); + } + if (!other.getMetadata().isEmpty()) { + metadata_ = other.metadata_; + 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: { + identifier_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getVersionFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + metadata_ = input.readStringRequireUtf8(); + + break; + } // case 26 + 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 java.lang.Object identifier_ = ""; + /** + *
+       * Corresponds to a registration of the type to use in the loading program.
+       * 
+ * + * string identifier = 1; + * @return The identifier. + */ + public java.lang.String getIdentifier() { + java.lang.Object ref = identifier_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identifier_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Corresponds to a registration of the type to use in the loading program.
+       * 
+ * + * string identifier = 1; + * @return The bytes for identifier. + */ + public com.google.protobuf.ByteString + getIdentifierBytes() { + java.lang.Object ref = identifier_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + identifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Corresponds to a registration of the type to use in the loading program.
+       * 
+ * + * string identifier = 1; + * @param value The identifier to set. + * @return This builder for chaining. + */ + public Builder setIdentifier( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + identifier_ = value; + onChanged(); + return this; + } + /** + *
+       * Corresponds to a registration of the type to use in the loading program.
+       * 
+ * + * string identifier = 1; + * @return This builder for chaining. + */ + public Builder clearIdentifier() { + + identifier_ = getDefaultInstance().getIdentifier(); + onChanged(); + return this; + } + /** + *
+       * Corresponds to a registration of the type to use in the loading program.
+       * 
+ * + * string identifier = 1; + * @param value The bytes for identifier to set. + * @return This builder for chaining. + */ + public Builder setIdentifierBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + identifier_ = value; + onChanged(); + return this; + } + + private org.tensorflow.proto.VersionDef version_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VersionDef, org.tensorflow.proto.VersionDef.Builder, org.tensorflow.proto.VersionDefOrBuilder> versionBuilder_; + /** + *
+       * Version information from the producer of this SavedUserObject.
+       * 
+ * + * .tensorflow.VersionDef version = 2; + * @return Whether the version field is set. + */ + public boolean hasVersion() { + return versionBuilder_ != null || version_ != null; + } + /** + *
+       * Version information from the producer of this SavedUserObject.
+       * 
+ * + * .tensorflow.VersionDef version = 2; + * @return The version. + */ + public org.tensorflow.proto.VersionDef getVersion() { + if (versionBuilder_ == null) { + return version_ == null ? org.tensorflow.proto.VersionDef.getDefaultInstance() : version_; + } else { + return versionBuilder_.getMessage(); + } + } + /** + *
+       * Version information from the producer of this SavedUserObject.
+       * 
+ * + * .tensorflow.VersionDef version = 2; + */ + public Builder setVersion(org.tensorflow.proto.VersionDef value) { + if (versionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + version_ = value; + onChanged(); + } else { + versionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Version information from the producer of this SavedUserObject.
+       * 
+ * + * .tensorflow.VersionDef version = 2; + */ + public Builder setVersion( + org.tensorflow.proto.VersionDef.Builder builderForValue) { + if (versionBuilder_ == null) { + version_ = builderForValue.build(); + onChanged(); + } else { + versionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Version information from the producer of this SavedUserObject.
+       * 
+ * + * .tensorflow.VersionDef version = 2; + */ + public Builder mergeVersion(org.tensorflow.proto.VersionDef value) { + if (versionBuilder_ == null) { + if (version_ != null) { + version_ = + org.tensorflow.proto.VersionDef.newBuilder(version_).mergeFrom(value).buildPartial(); + } else { + version_ = value; + } + onChanged(); + } else { + versionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Version information from the producer of this SavedUserObject.
+       * 
+ * + * .tensorflow.VersionDef version = 2; + */ + public Builder clearVersion() { + if (versionBuilder_ == null) { + version_ = null; + onChanged(); + } else { + version_ = null; + versionBuilder_ = null; + } + + return this; + } + /** + *
+       * Version information from the producer of this SavedUserObject.
+       * 
+ * + * .tensorflow.VersionDef version = 2; + */ + public org.tensorflow.proto.VersionDef.Builder getVersionBuilder() { + + onChanged(); + return getVersionFieldBuilder().getBuilder(); + } + /** + *
+       * Version information from the producer of this SavedUserObject.
+       * 
+ * + * .tensorflow.VersionDef version = 2; + */ + public org.tensorflow.proto.VersionDefOrBuilder getVersionOrBuilder() { + if (versionBuilder_ != null) { + return versionBuilder_.getMessageOrBuilder(); + } else { + return version_ == null ? + org.tensorflow.proto.VersionDef.getDefaultInstance() : version_; + } + } + /** + *
+       * Version information from the producer of this SavedUserObject.
+       * 
+ * + * .tensorflow.VersionDef version = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VersionDef, org.tensorflow.proto.VersionDef.Builder, org.tensorflow.proto.VersionDefOrBuilder> + getVersionFieldBuilder() { + if (versionBuilder_ == null) { + versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VersionDef, org.tensorflow.proto.VersionDef.Builder, org.tensorflow.proto.VersionDefOrBuilder>( + getVersion(), + getParentForChildren(), + isClean()); + version_ = null; + } + return versionBuilder_; + } + + private java.lang.Object metadata_ = ""; + /** + *
+       * Metadata for deserializing this object.
+       * Deprecated! At the time of deprecation, Keras was the only user of this
+       * field, and its saving and loading code will be updated shortly.
+       * Please save your application-specific metadata to a separate file.
+       * 
+ * + * string metadata = 3 [deprecated = true]; + * @deprecated tensorflow.SavedUserObject.metadata is deprecated. + * See tensorflow/core/protobuf/saved_object_graph.proto;l=122 + * @return The metadata. + */ + @java.lang.Deprecated public java.lang.String getMetadata() { + java.lang.Object ref = metadata_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metadata_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Metadata for deserializing this object.
+       * Deprecated! At the time of deprecation, Keras was the only user of this
+       * field, and its saving and loading code will be updated shortly.
+       * Please save your application-specific metadata to a separate file.
+       * 
+ * + * string metadata = 3 [deprecated = true]; + * @deprecated tensorflow.SavedUserObject.metadata is deprecated. + * See tensorflow/core/protobuf/saved_object_graph.proto;l=122 + * @return The bytes for metadata. + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getMetadataBytes() { + java.lang.Object ref = metadata_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metadata_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Metadata for deserializing this object.
+       * Deprecated! At the time of deprecation, Keras was the only user of this
+       * field, and its saving and loading code will be updated shortly.
+       * Please save your application-specific metadata to a separate file.
+       * 
+ * + * string metadata = 3 [deprecated = true]; + * @deprecated tensorflow.SavedUserObject.metadata is deprecated. + * See tensorflow/core/protobuf/saved_object_graph.proto;l=122 + * @param value The metadata to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setMetadata( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + metadata_ = value; + onChanged(); + return this; + } + /** + *
+       * Metadata for deserializing this object.
+       * Deprecated! At the time of deprecation, Keras was the only user of this
+       * field, and its saving and loading code will be updated shortly.
+       * Please save your application-specific metadata to a separate file.
+       * 
+ * + * string metadata = 3 [deprecated = true]; + * @deprecated tensorflow.SavedUserObject.metadata is deprecated. + * See tensorflow/core/protobuf/saved_object_graph.proto;l=122 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearMetadata() { + + metadata_ = getDefaultInstance().getMetadata(); + onChanged(); + return this; + } + /** + *
+       * Metadata for deserializing this object.
+       * Deprecated! At the time of deprecation, Keras was the only user of this
+       * field, and its saving and loading code will be updated shortly.
+       * Please save your application-specific metadata to a separate file.
+       * 
+ * + * string metadata = 3 [deprecated = true]; + * @deprecated tensorflow.SavedUserObject.metadata is deprecated. + * See tensorflow/core/protobuf/saved_object_graph.proto;l=122 + * @param value The bytes for metadata to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setMetadataBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + metadata_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.SavedUserObject) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SavedUserObject) + private static final org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject(); + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SavedUserObject 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedUserObject getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SavedAssetOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.SavedAsset) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Index into `MetaGraphDef.asset_file_def[]` that describes the Asset.
+     * Only the field `AssetFileDef.filename` is used. Other fields, such as
+     * `AssetFileDef.tensor_info`, MUST be ignored.
+     * 
+ * + * int32 asset_file_def_index = 1; + * @return The assetFileDefIndex. + */ + int getAssetFileDefIndex(); + } + /** + *
+   * A SavedAsset points to an asset in the MetaGraph.
+   * When bound to a function this object evaluates to a tensor with the absolute
+   * filename. Users should not depend on a particular part of the filename to
+   * remain stable (e.g. basename could be changed).
+   * 
+ * + * Protobuf type {@code tensorflow.SavedAsset} + */ + public static final class SavedAsset extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SavedAsset) + SavedAssetOrBuilder { + private static final long serialVersionUID = 0L; + // Use SavedAsset.newBuilder() to construct. + private SavedAsset(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SavedAsset() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SavedAsset(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedAsset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedAsset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset.class, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset.Builder.class); + } + + public static final int ASSET_FILE_DEF_INDEX_FIELD_NUMBER = 1; + private int assetFileDefIndex_; + /** + *
+     * Index into `MetaGraphDef.asset_file_def[]` that describes the Asset.
+     * Only the field `AssetFileDef.filename` is used. Other fields, such as
+     * `AssetFileDef.tensor_info`, MUST be ignored.
+     * 
+ * + * int32 asset_file_def_index = 1; + * @return The assetFileDefIndex. + */ + @java.lang.Override + public int getAssetFileDefIndex() { + return assetFileDefIndex_; + } + + 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 (assetFileDefIndex_ != 0) { + output.writeInt32(1, assetFileDefIndex_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (assetFileDefIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, assetFileDefIndex_); + } + 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset)) { + return super.equals(obj); + } + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset other = (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset) obj; + + if (getAssetFileDefIndex() + != other.getAssetFileDefIndex()) 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) + ASSET_FILE_DEF_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getAssetFileDefIndex(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset 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(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset 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; + } + /** + *
+     * A SavedAsset points to an asset in the MetaGraph.
+     * When bound to a function this object evaluates to a tensor with the absolute
+     * filename. Users should not depend on a particular part of the filename to
+     * remain stable (e.g. basename could be changed).
+     * 
+ * + * Protobuf type {@code tensorflow.SavedAsset} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SavedAsset) + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAssetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedAsset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedAsset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset.class, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset.Builder.class); + } + + // Construct using org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + assetFileDefIndex_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedAsset_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset getDefaultInstanceForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset build() { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset buildPartial() { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset result = new org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset(this); + result.assetFileDefIndex_ = assetFileDefIndex_; + 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset) { + return mergeFrom((org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset other) { + if (other == org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset.getDefaultInstance()) return this; + if (other.getAssetFileDefIndex() != 0) { + setAssetFileDefIndex(other.getAssetFileDefIndex()); + } + 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: { + assetFileDefIndex_ = input.readInt32(); + + break; + } // case 8 + 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 assetFileDefIndex_ ; + /** + *
+       * Index into `MetaGraphDef.asset_file_def[]` that describes the Asset.
+       * Only the field `AssetFileDef.filename` is used. Other fields, such as
+       * `AssetFileDef.tensor_info`, MUST be ignored.
+       * 
+ * + * int32 asset_file_def_index = 1; + * @return The assetFileDefIndex. + */ + @java.lang.Override + public int getAssetFileDefIndex() { + return assetFileDefIndex_; + } + /** + *
+       * Index into `MetaGraphDef.asset_file_def[]` that describes the Asset.
+       * Only the field `AssetFileDef.filename` is used. Other fields, such as
+       * `AssetFileDef.tensor_info`, MUST be ignored.
+       * 
+ * + * int32 asset_file_def_index = 1; + * @param value The assetFileDefIndex to set. + * @return This builder for chaining. + */ + public Builder setAssetFileDefIndex(int value) { + + assetFileDefIndex_ = value; + onChanged(); + return this; + } + /** + *
+       * Index into `MetaGraphDef.asset_file_def[]` that describes the Asset.
+       * Only the field `AssetFileDef.filename` is used. Other fields, such as
+       * `AssetFileDef.tensor_info`, MUST be ignored.
+       * 
+ * + * int32 asset_file_def_index = 1; + * @return This builder for chaining. + */ + public Builder clearAssetFileDefIndex() { + + assetFileDefIndex_ = 0; + 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:tensorflow.SavedAsset) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SavedAsset) + private static final org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset(); + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SavedAsset 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedAsset getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SavedFunctionOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.SavedFunction) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string concrete_functions = 1; + * @return A list containing the concreteFunctions. + */ + java.util.List + getConcreteFunctionsList(); + /** + * repeated string concrete_functions = 1; + * @return The count of concreteFunctions. + */ + int getConcreteFunctionsCount(); + /** + * repeated string concrete_functions = 1; + * @param index The index of the element to return. + * @return The concreteFunctions at the given index. + */ + java.lang.String getConcreteFunctions(int index); + /** + * repeated string concrete_functions = 1; + * @param index The index of the value to return. + * @return The bytes of the concreteFunctions at the given index. + */ + com.google.protobuf.ByteString + getConcreteFunctionsBytes(int index); + + /** + * .tensorflow.FunctionSpec function_spec = 2; + * @return Whether the functionSpec field is set. + */ + boolean hasFunctionSpec(); + /** + * .tensorflow.FunctionSpec function_spec = 2; + * @return The functionSpec. + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec getFunctionSpec(); + /** + * .tensorflow.FunctionSpec function_spec = 2; + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpecOrBuilder getFunctionSpecOrBuilder(); + } + /** + *
+   * A function with multiple signatures, possibly with non-Tensor arguments.
+   * 
+ * + * Protobuf type {@code tensorflow.SavedFunction} + */ + public static final class SavedFunction extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SavedFunction) + SavedFunctionOrBuilder { + private static final long serialVersionUID = 0L; + // Use SavedFunction.newBuilder() to construct. + private SavedFunction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SavedFunction() { + concreteFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SavedFunction(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedFunction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedFunction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction.class, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction.Builder.class); + } + + public static final int CONCRETE_FUNCTIONS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList concreteFunctions_; + /** + * repeated string concrete_functions = 1; + * @return A list containing the concreteFunctions. + */ + public com.google.protobuf.ProtocolStringList + getConcreteFunctionsList() { + return concreteFunctions_; + } + /** + * repeated string concrete_functions = 1; + * @return The count of concreteFunctions. + */ + public int getConcreteFunctionsCount() { + return concreteFunctions_.size(); + } + /** + * repeated string concrete_functions = 1; + * @param index The index of the element to return. + * @return The concreteFunctions at the given index. + */ + public java.lang.String getConcreteFunctions(int index) { + return concreteFunctions_.get(index); + } + /** + * repeated string concrete_functions = 1; + * @param index The index of the value to return. + * @return The bytes of the concreteFunctions at the given index. + */ + public com.google.protobuf.ByteString + getConcreteFunctionsBytes(int index) { + return concreteFunctions_.getByteString(index); + } + + public static final int FUNCTION_SPEC_FIELD_NUMBER = 2; + private org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec functionSpec_; + /** + * .tensorflow.FunctionSpec function_spec = 2; + * @return Whether the functionSpec field is set. + */ + @java.lang.Override + public boolean hasFunctionSpec() { + return functionSpec_ != null; + } + /** + * .tensorflow.FunctionSpec function_spec = 2; + * @return The functionSpec. + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec getFunctionSpec() { + return functionSpec_ == null ? org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.getDefaultInstance() : functionSpec_; + } + /** + * .tensorflow.FunctionSpec function_spec = 2; + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpecOrBuilder getFunctionSpecOrBuilder() { + return getFunctionSpec(); + } + + 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 < concreteFunctions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, concreteFunctions_.getRaw(i)); + } + if (functionSpec_ != null) { + output.writeMessage(2, getFunctionSpec()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < concreteFunctions_.size(); i++) { + dataSize += computeStringSizeNoTag(concreteFunctions_.getRaw(i)); + } + size += dataSize; + size += 1 * getConcreteFunctionsList().size(); + } + if (functionSpec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFunctionSpec()); + } + 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction)) { + return super.equals(obj); + } + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction other = (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction) obj; + + if (!getConcreteFunctionsList() + .equals(other.getConcreteFunctionsList())) return false; + if (hasFunctionSpec() != other.hasFunctionSpec()) return false; + if (hasFunctionSpec()) { + if (!getFunctionSpec() + .equals(other.getFunctionSpec())) 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 (getConcreteFunctionsCount() > 0) { + hash = (37 * hash) + CONCRETE_FUNCTIONS_FIELD_NUMBER; + hash = (53 * hash) + getConcreteFunctionsList().hashCode(); + } + if (hasFunctionSpec()) { + hash = (37 * hash) + FUNCTION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getFunctionSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction 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(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction 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; + } + /** + *
+     * A function with multiple signatures, possibly with non-Tensor arguments.
+     * 
+ * + * Protobuf type {@code tensorflow.SavedFunction} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SavedFunction) + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunctionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedFunction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedFunction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction.class, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction.Builder.class); + } + + // Construct using org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + concreteFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (functionSpecBuilder_ == null) { + functionSpec_ = null; + } else { + functionSpec_ = null; + functionSpecBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedFunction_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction getDefaultInstanceForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction build() { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction buildPartial() { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction result = new org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + concreteFunctions_ = concreteFunctions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.concreteFunctions_ = concreteFunctions_; + if (functionSpecBuilder_ == null) { + result.functionSpec_ = functionSpec_; + } else { + result.functionSpec_ = functionSpecBuilder_.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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction) { + return mergeFrom((org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction other) { + if (other == org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction.getDefaultInstance()) return this; + if (!other.concreteFunctions_.isEmpty()) { + if (concreteFunctions_.isEmpty()) { + concreteFunctions_ = other.concreteFunctions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConcreteFunctionsIsMutable(); + concreteFunctions_.addAll(other.concreteFunctions_); + } + onChanged(); + } + if (other.hasFunctionSpec()) { + mergeFunctionSpec(other.getFunctionSpec()); + } + 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: { + java.lang.String s = input.readStringRequireUtf8(); + ensureConcreteFunctionsIsMutable(); + concreteFunctions_.add(s); + break; + } // case 10 + case 18: { + input.readMessage( + getFunctionSpecFieldBuilder().getBuilder(), + extensionRegistry); + + 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 com.google.protobuf.LazyStringList concreteFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureConcreteFunctionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + concreteFunctions_ = new com.google.protobuf.LazyStringArrayList(concreteFunctions_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string concrete_functions = 1; + * @return A list containing the concreteFunctions. + */ + public com.google.protobuf.ProtocolStringList + getConcreteFunctionsList() { + return concreteFunctions_.getUnmodifiableView(); + } + /** + * repeated string concrete_functions = 1; + * @return The count of concreteFunctions. + */ + public int getConcreteFunctionsCount() { + return concreteFunctions_.size(); + } + /** + * repeated string concrete_functions = 1; + * @param index The index of the element to return. + * @return The concreteFunctions at the given index. + */ + public java.lang.String getConcreteFunctions(int index) { + return concreteFunctions_.get(index); + } + /** + * repeated string concrete_functions = 1; + * @param index The index of the value to return. + * @return The bytes of the concreteFunctions at the given index. + */ + public com.google.protobuf.ByteString + getConcreteFunctionsBytes(int index) { + return concreteFunctions_.getByteString(index); + } + /** + * repeated string concrete_functions = 1; + * @param index The index to set the value at. + * @param value The concreteFunctions to set. + * @return This builder for chaining. + */ + public Builder setConcreteFunctions( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureConcreteFunctionsIsMutable(); + concreteFunctions_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string concrete_functions = 1; + * @param value The concreteFunctions to add. + * @return This builder for chaining. + */ + public Builder addConcreteFunctions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureConcreteFunctionsIsMutable(); + concreteFunctions_.add(value); + onChanged(); + return this; + } + /** + * repeated string concrete_functions = 1; + * @param values The concreteFunctions to add. + * @return This builder for chaining. + */ + public Builder addAllConcreteFunctions( + java.lang.Iterable values) { + ensureConcreteFunctionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, concreteFunctions_); + onChanged(); + return this; + } + /** + * repeated string concrete_functions = 1; + * @return This builder for chaining. + */ + public Builder clearConcreteFunctions() { + concreteFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string concrete_functions = 1; + * @param value The bytes of the concreteFunctions to add. + * @return This builder for chaining. + */ + public Builder addConcreteFunctionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureConcreteFunctionsIsMutable(); + concreteFunctions_.add(value); + onChanged(); + return this; + } + + private org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec functionSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec, org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpecOrBuilder> functionSpecBuilder_; + /** + * .tensorflow.FunctionSpec function_spec = 2; + * @return Whether the functionSpec field is set. + */ + public boolean hasFunctionSpec() { + return functionSpecBuilder_ != null || functionSpec_ != null; + } + /** + * .tensorflow.FunctionSpec function_spec = 2; + * @return The functionSpec. + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec getFunctionSpec() { + if (functionSpecBuilder_ == null) { + return functionSpec_ == null ? org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.getDefaultInstance() : functionSpec_; + } else { + return functionSpecBuilder_.getMessage(); + } + } + /** + * .tensorflow.FunctionSpec function_spec = 2; + */ + public Builder setFunctionSpec(org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec value) { + if (functionSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + functionSpec_ = value; + onChanged(); + } else { + functionSpecBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.FunctionSpec function_spec = 2; + */ + public Builder setFunctionSpec( + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.Builder builderForValue) { + if (functionSpecBuilder_ == null) { + functionSpec_ = builderForValue.build(); + onChanged(); + } else { + functionSpecBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.FunctionSpec function_spec = 2; + */ + public Builder mergeFunctionSpec(org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec value) { + if (functionSpecBuilder_ == null) { + if (functionSpec_ != null) { + functionSpec_ = + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.newBuilder(functionSpec_).mergeFrom(value).buildPartial(); + } else { + functionSpec_ = value; + } + onChanged(); + } else { + functionSpecBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.FunctionSpec function_spec = 2; + */ + public Builder clearFunctionSpec() { + if (functionSpecBuilder_ == null) { + functionSpec_ = null; + onChanged(); + } else { + functionSpec_ = null; + functionSpecBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.FunctionSpec function_spec = 2; + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.Builder getFunctionSpecBuilder() { + + onChanged(); + return getFunctionSpecFieldBuilder().getBuilder(); + } + /** + * .tensorflow.FunctionSpec function_spec = 2; + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpecOrBuilder getFunctionSpecOrBuilder() { + if (functionSpecBuilder_ != null) { + return functionSpecBuilder_.getMessageOrBuilder(); + } else { + return functionSpec_ == null ? + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.getDefaultInstance() : functionSpec_; + } + } + /** + * .tensorflow.FunctionSpec function_spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec, org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpecOrBuilder> + getFunctionSpecFieldBuilder() { + if (functionSpecBuilder_ == null) { + functionSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec, org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpecOrBuilder>( + getFunctionSpec(), + getParentForChildren(), + isClean()); + functionSpec_ = null; + } + return functionSpecBuilder_; + } + @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:tensorflow.SavedFunction) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SavedFunction) + private static final org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction(); + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SavedFunction 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedFunction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CapturedTensorOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.CapturedTensor) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of captured tensor
+     * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * Name of captured tensor
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Name of concrete function which contains the computed graph tensor.
+     * 
+ * + * string concrete_function = 2; + * @return The concreteFunction. + */ + java.lang.String getConcreteFunction(); + /** + *
+     * Name of concrete function which contains the computed graph tensor.
+     * 
+ * + * string concrete_function = 2; + * @return The bytes for concreteFunction. + */ + com.google.protobuf.ByteString + getConcreteFunctionBytes(); + } + /** + * Protobuf type {@code tensorflow.CapturedTensor} + */ + public static final class CapturedTensor extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.CapturedTensor) + CapturedTensorOrBuilder { + private static final long serialVersionUID = 0L; + // Use CapturedTensor.newBuilder() to construct. + private CapturedTensor(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CapturedTensor() { + name_ = ""; + concreteFunction_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CapturedTensor(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_CapturedTensor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_CapturedTensor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor.class, org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * Name of captured tensor
+     * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+     * Name of captured tensor
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONCRETE_FUNCTION_FIELD_NUMBER = 2; + private volatile java.lang.Object concreteFunction_; + /** + *
+     * Name of concrete function which contains the computed graph tensor.
+     * 
+ * + * string concrete_function = 2; + * @return The concreteFunction. + */ + @java.lang.Override + public java.lang.String getConcreteFunction() { + java.lang.Object ref = concreteFunction_; + 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(); + concreteFunction_ = s; + return s; + } + } + /** + *
+     * Name of concrete function which contains the computed graph tensor.
+     * 
+ * + * string concrete_function = 2; + * @return The bytes for concreteFunction. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConcreteFunctionBytes() { + java.lang.Object ref = concreteFunction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + concreteFunction_ = 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(concreteFunction_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, concreteFunction_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(concreteFunction_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, concreteFunction_); + } + 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 org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor)) { + return super.equals(obj); + } + org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor other = (org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getConcreteFunction() + .equals(other.getConcreteFunction())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + CONCRETE_FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getConcreteFunction().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor 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 org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor 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 org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor 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(org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.CapturedTensor} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.CapturedTensor) + org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_CapturedTensor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_CapturedTensor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor.class, org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor.Builder.class); + } + + // Construct using org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + concreteFunction_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_CapturedTensor_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor getDefaultInstanceForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor build() { + org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor buildPartial() { + org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor result = new org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor(this); + result.name_ = name_; + result.concreteFunction_ = concreteFunction_; + 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 org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor) { + return mergeFrom((org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor other) { + if (other == org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getConcreteFunction().isEmpty()) { + concreteFunction_ = other.concreteFunction_; + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + concreteFunction_ = input.readStringRequireUtf8(); + + 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 java.lang.Object name_ = ""; + /** + *
+       * Name of captured tensor
+       * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of captured tensor
+       * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of captured tensor
+       * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of captured tensor
+       * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Name of captured tensor
+       * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object concreteFunction_ = ""; + /** + *
+       * Name of concrete function which contains the computed graph tensor.
+       * 
+ * + * string concrete_function = 2; + * @return The concreteFunction. + */ + public java.lang.String getConcreteFunction() { + java.lang.Object ref = concreteFunction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + concreteFunction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of concrete function which contains the computed graph tensor.
+       * 
+ * + * string concrete_function = 2; + * @return The bytes for concreteFunction. + */ + public com.google.protobuf.ByteString + getConcreteFunctionBytes() { + java.lang.Object ref = concreteFunction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + concreteFunction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of concrete function which contains the computed graph tensor.
+       * 
+ * + * string concrete_function = 2; + * @param value The concreteFunction to set. + * @return This builder for chaining. + */ + public Builder setConcreteFunction( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + concreteFunction_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of concrete function which contains the computed graph tensor.
+       * 
+ * + * string concrete_function = 2; + * @return This builder for chaining. + */ + public Builder clearConcreteFunction() { + + concreteFunction_ = getDefaultInstance().getConcreteFunction(); + onChanged(); + return this; + } + /** + *
+       * Name of concrete function which contains the computed graph tensor.
+       * 
+ * + * string concrete_function = 2; + * @param value The bytes for concreteFunction to set. + * @return This builder for chaining. + */ + public Builder setConcreteFunctionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + concreteFunction_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.CapturedTensor) + } + + // @@protoc_insertion_point(class_scope:tensorflow.CapturedTensor) + private static final org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor(); + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CapturedTensor 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 org.tensorflow.proto.SavedObjectGraphOuterClass.CapturedTensor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SavedConcreteFunctionOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.SavedConcreteFunction) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated int32 bound_inputs = 2; + * @return A list containing the boundInputs. + */ + java.util.List getBoundInputsList(); + /** + * repeated int32 bound_inputs = 2; + * @return The count of boundInputs. + */ + int getBoundInputsCount(); + /** + * repeated int32 bound_inputs = 2; + * @param index The index of the element to return. + * @return The boundInputs at the given index. + */ + int getBoundInputs(int index); + + /** + *
+     * Input in canonicalized form that was received to create this concrete
+     * function.
+     * 
+ * + * .tensorflow.StructuredValue canonicalized_input_signature = 3; + * @return Whether the canonicalizedInputSignature field is set. + */ + boolean hasCanonicalizedInputSignature(); + /** + *
+     * Input in canonicalized form that was received to create this concrete
+     * function.
+     * 
+ * + * .tensorflow.StructuredValue canonicalized_input_signature = 3; + * @return The canonicalizedInputSignature. + */ + org.tensorflow.proto.Struct.StructuredValue getCanonicalizedInputSignature(); + /** + *
+     * Input in canonicalized form that was received to create this concrete
+     * function.
+     * 
+ * + * .tensorflow.StructuredValue canonicalized_input_signature = 3; + */ + org.tensorflow.proto.Struct.StructuredValueOrBuilder getCanonicalizedInputSignatureOrBuilder(); + + /** + *
+     * Output that was the return value of this function after replacing all
+     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
+     * be used to reconstruct the full structure from pure tensors.
+     * 
+ * + * .tensorflow.StructuredValue output_signature = 4; + * @return Whether the outputSignature field is set. + */ + boolean hasOutputSignature(); + /** + *
+     * Output that was the return value of this function after replacing all
+     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
+     * be used to reconstruct the full structure from pure tensors.
+     * 
+ * + * .tensorflow.StructuredValue output_signature = 4; + * @return The outputSignature. + */ + org.tensorflow.proto.Struct.StructuredValue getOutputSignature(); + /** + *
+     * Output that was the return value of this function after replacing all
+     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
+     * be used to reconstruct the full structure from pure tensors.
+     * 
+ * + * .tensorflow.StructuredValue output_signature = 4; + */ + org.tensorflow.proto.Struct.StructuredValueOrBuilder getOutputSignatureOrBuilder(); + } + /** + *
+   * Stores low-level information about a concrete function. Referenced in either
+   * a SavedFunction or a SavedBareConcreteFunction.
+   * 
+ * + * Protobuf type {@code tensorflow.SavedConcreteFunction} + */ + public static final class SavedConcreteFunction extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SavedConcreteFunction) + SavedConcreteFunctionOrBuilder { + private static final long serialVersionUID = 0L; + // Use SavedConcreteFunction.newBuilder() to construct. + private SavedConcreteFunction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SavedConcreteFunction() { + boundInputs_ = emptyIntList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SavedConcreteFunction(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedConcreteFunction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedConcreteFunction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction.class, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction.Builder.class); + } + + public static final int BOUND_INPUTS_FIELD_NUMBER = 2; + private com.google.protobuf.Internal.IntList boundInputs_; + /** + * repeated int32 bound_inputs = 2; + * @return A list containing the boundInputs. + */ + @java.lang.Override + public java.util.List + getBoundInputsList() { + return boundInputs_; + } + /** + * repeated int32 bound_inputs = 2; + * @return The count of boundInputs. + */ + public int getBoundInputsCount() { + return boundInputs_.size(); + } + /** + * repeated int32 bound_inputs = 2; + * @param index The index of the element to return. + * @return The boundInputs at the given index. + */ + public int getBoundInputs(int index) { + return boundInputs_.getInt(index); + } + private int boundInputsMemoizedSerializedSize = -1; + + public static final int CANONICALIZED_INPUT_SIGNATURE_FIELD_NUMBER = 3; + private org.tensorflow.proto.Struct.StructuredValue canonicalizedInputSignature_; + /** + *
+     * Input in canonicalized form that was received to create this concrete
+     * function.
+     * 
+ * + * .tensorflow.StructuredValue canonicalized_input_signature = 3; + * @return Whether the canonicalizedInputSignature field is set. + */ + @java.lang.Override + public boolean hasCanonicalizedInputSignature() { + return canonicalizedInputSignature_ != null; + } + /** + *
+     * Input in canonicalized form that was received to create this concrete
+     * function.
+     * 
+ * + * .tensorflow.StructuredValue canonicalized_input_signature = 3; + * @return The canonicalizedInputSignature. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.StructuredValue getCanonicalizedInputSignature() { + return canonicalizedInputSignature_ == null ? org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance() : canonicalizedInputSignature_; + } + /** + *
+     * Input in canonicalized form that was received to create this concrete
+     * function.
+     * 
+ * + * .tensorflow.StructuredValue canonicalized_input_signature = 3; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.StructuredValueOrBuilder getCanonicalizedInputSignatureOrBuilder() { + return getCanonicalizedInputSignature(); + } + + public static final int OUTPUT_SIGNATURE_FIELD_NUMBER = 4; + private org.tensorflow.proto.Struct.StructuredValue outputSignature_; + /** + *
+     * Output that was the return value of this function after replacing all
+     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
+     * be used to reconstruct the full structure from pure tensors.
+     * 
+ * + * .tensorflow.StructuredValue output_signature = 4; + * @return Whether the outputSignature field is set. + */ + @java.lang.Override + public boolean hasOutputSignature() { + return outputSignature_ != null; + } + /** + *
+     * Output that was the return value of this function after replacing all
+     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
+     * be used to reconstruct the full structure from pure tensors.
+     * 
+ * + * .tensorflow.StructuredValue output_signature = 4; + * @return The outputSignature. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.StructuredValue getOutputSignature() { + return outputSignature_ == null ? org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance() : outputSignature_; + } + /** + *
+     * Output that was the return value of this function after replacing all
+     * Tensors with TensorSpecs. This can be an arbitrary nested function and will
+     * be used to reconstruct the full structure from pure tensors.
+     * 
+ * + * .tensorflow.StructuredValue output_signature = 4; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.StructuredValueOrBuilder getOutputSignatureOrBuilder() { + return getOutputSignature(); + } + + 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 { + getSerializedSize(); + if (getBoundInputsList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(boundInputsMemoizedSerializedSize); + } + for (int i = 0; i < boundInputs_.size(); i++) { + output.writeInt32NoTag(boundInputs_.getInt(i)); + } + if (canonicalizedInputSignature_ != null) { + output.writeMessage(3, getCanonicalizedInputSignature()); + } + if (outputSignature_ != null) { + output.writeMessage(4, getOutputSignature()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < boundInputs_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(boundInputs_.getInt(i)); + } + size += dataSize; + if (!getBoundInputsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + boundInputsMemoizedSerializedSize = dataSize; + } + if (canonicalizedInputSignature_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCanonicalizedInputSignature()); + } + if (outputSignature_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getOutputSignature()); + } + 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction)) { + return super.equals(obj); + } + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction other = (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction) obj; + + if (!getBoundInputsList() + .equals(other.getBoundInputsList())) return false; + if (hasCanonicalizedInputSignature() != other.hasCanonicalizedInputSignature()) return false; + if (hasCanonicalizedInputSignature()) { + if (!getCanonicalizedInputSignature() + .equals(other.getCanonicalizedInputSignature())) return false; + } + if (hasOutputSignature() != other.hasOutputSignature()) return false; + if (hasOutputSignature()) { + if (!getOutputSignature() + .equals(other.getOutputSignature())) 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 (getBoundInputsCount() > 0) { + hash = (37 * hash) + BOUND_INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getBoundInputsList().hashCode(); + } + if (hasCanonicalizedInputSignature()) { + hash = (37 * hash) + CANONICALIZED_INPUT_SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getCanonicalizedInputSignature().hashCode(); + } + if (hasOutputSignature()) { + hash = (37 * hash) + OUTPUT_SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getOutputSignature().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction 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(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction 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; + } + /** + *
+     * Stores low-level information about a concrete function. Referenced in either
+     * a SavedFunction or a SavedBareConcreteFunction.
+     * 
+ * + * Protobuf type {@code tensorflow.SavedConcreteFunction} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SavedConcreteFunction) + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunctionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedConcreteFunction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedConcreteFunction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction.class, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction.Builder.class); + } + + // Construct using org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + boundInputs_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + if (canonicalizedInputSignatureBuilder_ == null) { + canonicalizedInputSignature_ = null; + } else { + canonicalizedInputSignature_ = null; + canonicalizedInputSignatureBuilder_ = null; + } + if (outputSignatureBuilder_ == null) { + outputSignature_ = null; + } else { + outputSignature_ = null; + outputSignatureBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedConcreteFunction_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction getDefaultInstanceForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction build() { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction buildPartial() { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction result = new org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + boundInputs_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.boundInputs_ = boundInputs_; + if (canonicalizedInputSignatureBuilder_ == null) { + result.canonicalizedInputSignature_ = canonicalizedInputSignature_; + } else { + result.canonicalizedInputSignature_ = canonicalizedInputSignatureBuilder_.build(); + } + if (outputSignatureBuilder_ == null) { + result.outputSignature_ = outputSignature_; + } else { + result.outputSignature_ = outputSignatureBuilder_.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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction) { + return mergeFrom((org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction other) { + if (other == org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction.getDefaultInstance()) return this; + if (!other.boundInputs_.isEmpty()) { + if (boundInputs_.isEmpty()) { + boundInputs_ = other.boundInputs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBoundInputsIsMutable(); + boundInputs_.addAll(other.boundInputs_); + } + onChanged(); + } + if (other.hasCanonicalizedInputSignature()) { + mergeCanonicalizedInputSignature(other.getCanonicalizedInputSignature()); + } + if (other.hasOutputSignature()) { + mergeOutputSignature(other.getOutputSignature()); + } + 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 16: { + int v = input.readInt32(); + ensureBoundInputsIsMutable(); + boundInputs_.addInt(v); + break; + } // case 16 + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureBoundInputsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + boundInputs_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 18 + case 26: { + input.readMessage( + getCanonicalizedInputSignatureFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + input.readMessage( + getOutputSignatureFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + 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.protobuf.Internal.IntList boundInputs_ = emptyIntList(); + private void ensureBoundInputsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + boundInputs_ = mutableCopy(boundInputs_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated int32 bound_inputs = 2; + * @return A list containing the boundInputs. + */ + public java.util.List + getBoundInputsList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(boundInputs_) : boundInputs_; + } + /** + * repeated int32 bound_inputs = 2; + * @return The count of boundInputs. + */ + public int getBoundInputsCount() { + return boundInputs_.size(); + } + /** + * repeated int32 bound_inputs = 2; + * @param index The index of the element to return. + * @return The boundInputs at the given index. + */ + public int getBoundInputs(int index) { + return boundInputs_.getInt(index); + } + /** + * repeated int32 bound_inputs = 2; + * @param index The index to set the value at. + * @param value The boundInputs to set. + * @return This builder for chaining. + */ + public Builder setBoundInputs( + int index, int value) { + ensureBoundInputsIsMutable(); + boundInputs_.setInt(index, value); + onChanged(); + return this; + } + /** + * repeated int32 bound_inputs = 2; + * @param value The boundInputs to add. + * @return This builder for chaining. + */ + public Builder addBoundInputs(int value) { + ensureBoundInputsIsMutable(); + boundInputs_.addInt(value); + onChanged(); + return this; + } + /** + * repeated int32 bound_inputs = 2; + * @param values The boundInputs to add. + * @return This builder for chaining. + */ + public Builder addAllBoundInputs( + java.lang.Iterable values) { + ensureBoundInputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, boundInputs_); + onChanged(); + return this; + } + /** + * repeated int32 bound_inputs = 2; + * @return This builder for chaining. + */ + public Builder clearBoundInputs() { + boundInputs_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private org.tensorflow.proto.Struct.StructuredValue canonicalizedInputSignature_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder> canonicalizedInputSignatureBuilder_; + /** + *
+       * Input in canonicalized form that was received to create this concrete
+       * function.
+       * 
+ * + * .tensorflow.StructuredValue canonicalized_input_signature = 3; + * @return Whether the canonicalizedInputSignature field is set. + */ + public boolean hasCanonicalizedInputSignature() { + return canonicalizedInputSignatureBuilder_ != null || canonicalizedInputSignature_ != null; + } + /** + *
+       * Input in canonicalized form that was received to create this concrete
+       * function.
+       * 
+ * + * .tensorflow.StructuredValue canonicalized_input_signature = 3; + * @return The canonicalizedInputSignature. + */ + public org.tensorflow.proto.Struct.StructuredValue getCanonicalizedInputSignature() { + if (canonicalizedInputSignatureBuilder_ == null) { + return canonicalizedInputSignature_ == null ? org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance() : canonicalizedInputSignature_; + } else { + return canonicalizedInputSignatureBuilder_.getMessage(); + } + } + /** + *
+       * Input in canonicalized form that was received to create this concrete
+       * function.
+       * 
+ * + * .tensorflow.StructuredValue canonicalized_input_signature = 3; + */ + public Builder setCanonicalizedInputSignature(org.tensorflow.proto.Struct.StructuredValue value) { + if (canonicalizedInputSignatureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + canonicalizedInputSignature_ = value; + onChanged(); + } else { + canonicalizedInputSignatureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Input in canonicalized form that was received to create this concrete
+       * function.
+       * 
+ * + * .tensorflow.StructuredValue canonicalized_input_signature = 3; + */ + public Builder setCanonicalizedInputSignature( + org.tensorflow.proto.Struct.StructuredValue.Builder builderForValue) { + if (canonicalizedInputSignatureBuilder_ == null) { + canonicalizedInputSignature_ = builderForValue.build(); + onChanged(); + } else { + canonicalizedInputSignatureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Input in canonicalized form that was received to create this concrete
+       * function.
+       * 
+ * + * .tensorflow.StructuredValue canonicalized_input_signature = 3; + */ + public Builder mergeCanonicalizedInputSignature(org.tensorflow.proto.Struct.StructuredValue value) { + if (canonicalizedInputSignatureBuilder_ == null) { + if (canonicalizedInputSignature_ != null) { + canonicalizedInputSignature_ = + org.tensorflow.proto.Struct.StructuredValue.newBuilder(canonicalizedInputSignature_).mergeFrom(value).buildPartial(); + } else { + canonicalizedInputSignature_ = value; + } + onChanged(); + } else { + canonicalizedInputSignatureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Input in canonicalized form that was received to create this concrete
+       * function.
+       * 
+ * + * .tensorflow.StructuredValue canonicalized_input_signature = 3; + */ + public Builder clearCanonicalizedInputSignature() { + if (canonicalizedInputSignatureBuilder_ == null) { + canonicalizedInputSignature_ = null; + onChanged(); + } else { + canonicalizedInputSignature_ = null; + canonicalizedInputSignatureBuilder_ = null; + } + + return this; + } + /** + *
+       * Input in canonicalized form that was received to create this concrete
+       * function.
+       * 
+ * + * .tensorflow.StructuredValue canonicalized_input_signature = 3; + */ + public org.tensorflow.proto.Struct.StructuredValue.Builder getCanonicalizedInputSignatureBuilder() { + + onChanged(); + return getCanonicalizedInputSignatureFieldBuilder().getBuilder(); + } + /** + *
+       * Input in canonicalized form that was received to create this concrete
+       * function.
+       * 
+ * + * .tensorflow.StructuredValue canonicalized_input_signature = 3; + */ + public org.tensorflow.proto.Struct.StructuredValueOrBuilder getCanonicalizedInputSignatureOrBuilder() { + if (canonicalizedInputSignatureBuilder_ != null) { + return canonicalizedInputSignatureBuilder_.getMessageOrBuilder(); + } else { + return canonicalizedInputSignature_ == null ? + org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance() : canonicalizedInputSignature_; + } + } + /** + *
+       * Input in canonicalized form that was received to create this concrete
+       * function.
+       * 
+ * + * .tensorflow.StructuredValue canonicalized_input_signature = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder> + getCanonicalizedInputSignatureFieldBuilder() { + if (canonicalizedInputSignatureBuilder_ == null) { + canonicalizedInputSignatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder>( + getCanonicalizedInputSignature(), + getParentForChildren(), + isClean()); + canonicalizedInputSignature_ = null; + } + return canonicalizedInputSignatureBuilder_; + } + + private org.tensorflow.proto.Struct.StructuredValue outputSignature_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder> outputSignatureBuilder_; + /** + *
+       * Output that was the return value of this function after replacing all
+       * Tensors with TensorSpecs. This can be an arbitrary nested function and will
+       * be used to reconstruct the full structure from pure tensors.
+       * 
+ * + * .tensorflow.StructuredValue output_signature = 4; + * @return Whether the outputSignature field is set. + */ + public boolean hasOutputSignature() { + return outputSignatureBuilder_ != null || outputSignature_ != null; + } + /** + *
+       * Output that was the return value of this function after replacing all
+       * Tensors with TensorSpecs. This can be an arbitrary nested function and will
+       * be used to reconstruct the full structure from pure tensors.
+       * 
+ * + * .tensorflow.StructuredValue output_signature = 4; + * @return The outputSignature. + */ + public org.tensorflow.proto.Struct.StructuredValue getOutputSignature() { + if (outputSignatureBuilder_ == null) { + return outputSignature_ == null ? org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance() : outputSignature_; + } else { + return outputSignatureBuilder_.getMessage(); + } + } + /** + *
+       * Output that was the return value of this function after replacing all
+       * Tensors with TensorSpecs. This can be an arbitrary nested function and will
+       * be used to reconstruct the full structure from pure tensors.
+       * 
+ * + * .tensorflow.StructuredValue output_signature = 4; + */ + public Builder setOutputSignature(org.tensorflow.proto.Struct.StructuredValue value) { + if (outputSignatureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputSignature_ = value; + onChanged(); + } else { + outputSignatureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Output that was the return value of this function after replacing all
+       * Tensors with TensorSpecs. This can be an arbitrary nested function and will
+       * be used to reconstruct the full structure from pure tensors.
+       * 
+ * + * .tensorflow.StructuredValue output_signature = 4; + */ + public Builder setOutputSignature( + org.tensorflow.proto.Struct.StructuredValue.Builder builderForValue) { + if (outputSignatureBuilder_ == null) { + outputSignature_ = builderForValue.build(); + onChanged(); + } else { + outputSignatureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Output that was the return value of this function after replacing all
+       * Tensors with TensorSpecs. This can be an arbitrary nested function and will
+       * be used to reconstruct the full structure from pure tensors.
+       * 
+ * + * .tensorflow.StructuredValue output_signature = 4; + */ + public Builder mergeOutputSignature(org.tensorflow.proto.Struct.StructuredValue value) { + if (outputSignatureBuilder_ == null) { + if (outputSignature_ != null) { + outputSignature_ = + org.tensorflow.proto.Struct.StructuredValue.newBuilder(outputSignature_).mergeFrom(value).buildPartial(); + } else { + outputSignature_ = value; + } + onChanged(); + } else { + outputSignatureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Output that was the return value of this function after replacing all
+       * Tensors with TensorSpecs. This can be an arbitrary nested function and will
+       * be used to reconstruct the full structure from pure tensors.
+       * 
+ * + * .tensorflow.StructuredValue output_signature = 4; + */ + public Builder clearOutputSignature() { + if (outputSignatureBuilder_ == null) { + outputSignature_ = null; + onChanged(); + } else { + outputSignature_ = null; + outputSignatureBuilder_ = null; + } + + return this; + } + /** + *
+       * Output that was the return value of this function after replacing all
+       * Tensors with TensorSpecs. This can be an arbitrary nested function and will
+       * be used to reconstruct the full structure from pure tensors.
+       * 
+ * + * .tensorflow.StructuredValue output_signature = 4; + */ + public org.tensorflow.proto.Struct.StructuredValue.Builder getOutputSignatureBuilder() { + + onChanged(); + return getOutputSignatureFieldBuilder().getBuilder(); + } + /** + *
+       * Output that was the return value of this function after replacing all
+       * Tensors with TensorSpecs. This can be an arbitrary nested function and will
+       * be used to reconstruct the full structure from pure tensors.
+       * 
+ * + * .tensorflow.StructuredValue output_signature = 4; + */ + public org.tensorflow.proto.Struct.StructuredValueOrBuilder getOutputSignatureOrBuilder() { + if (outputSignatureBuilder_ != null) { + return outputSignatureBuilder_.getMessageOrBuilder(); + } else { + return outputSignature_ == null ? + org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance() : outputSignature_; + } + } + /** + *
+       * Output that was the return value of this function after replacing all
+       * Tensors with TensorSpecs. This can be an arbitrary nested function and will
+       * be used to reconstruct the full structure from pure tensors.
+       * 
+ * + * .tensorflow.StructuredValue output_signature = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder> + getOutputSignatureFieldBuilder() { + if (outputSignatureBuilder_ == null) { + outputSignatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder>( + getOutputSignature(), + getParentForChildren(), + isClean()); + outputSignature_ = null; + } + return outputSignatureBuilder_; + } + @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:tensorflow.SavedConcreteFunction) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SavedConcreteFunction) + private static final org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction(); + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SavedConcreteFunction 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConcreteFunction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SavedBareConcreteFunctionOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.SavedBareConcreteFunction) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Identifies a SavedConcreteFunction.
+     * 
+ * + * string concrete_function_name = 1; + * @return The concreteFunctionName. + */ + java.lang.String getConcreteFunctionName(); + /** + *
+     * Identifies a SavedConcreteFunction.
+     * 
+ * + * string concrete_function_name = 1; + * @return The bytes for concreteFunctionName. + */ + com.google.protobuf.ByteString + getConcreteFunctionNameBytes(); + + /** + *
+     * A sequence of unique strings, one per Tensor argument.
+     * 
+ * + * repeated string argument_keywords = 2; + * @return A list containing the argumentKeywords. + */ + java.util.List + getArgumentKeywordsList(); + /** + *
+     * A sequence of unique strings, one per Tensor argument.
+     * 
+ * + * repeated string argument_keywords = 2; + * @return The count of argumentKeywords. + */ + int getArgumentKeywordsCount(); + /** + *
+     * A sequence of unique strings, one per Tensor argument.
+     * 
+ * + * repeated string argument_keywords = 2; + * @param index The index of the element to return. + * @return The argumentKeywords at the given index. + */ + java.lang.String getArgumentKeywords(int index); + /** + *
+     * A sequence of unique strings, one per Tensor argument.
+     * 
+ * + * repeated string argument_keywords = 2; + * @param index The index of the value to return. + * @return The bytes of the argumentKeywords at the given index. + */ + com.google.protobuf.ByteString + getArgumentKeywordsBytes(int index); + + /** + *
+     * The prefix of `argument_keywords` which may be identified by position.
+     * 
+ * + * int64 allowed_positional_arguments = 3; + * @return The allowedPositionalArguments. + */ + long getAllowedPositionalArguments(); + + /** + *
+     * The spec of the function that this ConcreteFunction is traced from. This
+     * allows the ConcreteFunction to be called with nest structure inputs. This
+     * field may not be populated. If this field is absent, the concrete function
+     * can only be called with flat inputs.
+     * TODO(b/169361281): support calling saved ConcreteFunction with structured
+     * inputs in C++ SavedModel API.
+     * 
+ * + * .tensorflow.FunctionSpec function_spec = 4; + * @return Whether the functionSpec field is set. + */ + boolean hasFunctionSpec(); + /** + *
+     * The spec of the function that this ConcreteFunction is traced from. This
+     * allows the ConcreteFunction to be called with nest structure inputs. This
+     * field may not be populated. If this field is absent, the concrete function
+     * can only be called with flat inputs.
+     * TODO(b/169361281): support calling saved ConcreteFunction with structured
+     * inputs in C++ SavedModel API.
+     * 
+ * + * .tensorflow.FunctionSpec function_spec = 4; + * @return The functionSpec. + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec getFunctionSpec(); + /** + *
+     * The spec of the function that this ConcreteFunction is traced from. This
+     * allows the ConcreteFunction to be called with nest structure inputs. This
+     * field may not be populated. If this field is absent, the concrete function
+     * can only be called with flat inputs.
+     * TODO(b/169361281): support calling saved ConcreteFunction with structured
+     * inputs in C++ SavedModel API.
+     * 
+ * + * .tensorflow.FunctionSpec function_spec = 4; + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpecOrBuilder getFunctionSpecOrBuilder(); + } + /** + * Protobuf type {@code tensorflow.SavedBareConcreteFunction} + */ + public static final class SavedBareConcreteFunction extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SavedBareConcreteFunction) + SavedBareConcreteFunctionOrBuilder { + private static final long serialVersionUID = 0L; + // Use SavedBareConcreteFunction.newBuilder() to construct. + private SavedBareConcreteFunction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SavedBareConcreteFunction() { + concreteFunctionName_ = ""; + argumentKeywords_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SavedBareConcreteFunction(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedBareConcreteFunction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedBareConcreteFunction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction.class, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction.Builder.class); + } + + public static final int CONCRETE_FUNCTION_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object concreteFunctionName_; + /** + *
+     * Identifies a SavedConcreteFunction.
+     * 
+ * + * string concrete_function_name = 1; + * @return The concreteFunctionName. + */ + @java.lang.Override + public java.lang.String getConcreteFunctionName() { + java.lang.Object ref = concreteFunctionName_; + 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(); + concreteFunctionName_ = s; + return s; + } + } + /** + *
+     * Identifies a SavedConcreteFunction.
+     * 
+ * + * string concrete_function_name = 1; + * @return The bytes for concreteFunctionName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConcreteFunctionNameBytes() { + java.lang.Object ref = concreteFunctionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + concreteFunctionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARGUMENT_KEYWORDS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList argumentKeywords_; + /** + *
+     * A sequence of unique strings, one per Tensor argument.
+     * 
+ * + * repeated string argument_keywords = 2; + * @return A list containing the argumentKeywords. + */ + public com.google.protobuf.ProtocolStringList + getArgumentKeywordsList() { + return argumentKeywords_; + } + /** + *
+     * A sequence of unique strings, one per Tensor argument.
+     * 
+ * + * repeated string argument_keywords = 2; + * @return The count of argumentKeywords. + */ + public int getArgumentKeywordsCount() { + return argumentKeywords_.size(); + } + /** + *
+     * A sequence of unique strings, one per Tensor argument.
+     * 
+ * + * repeated string argument_keywords = 2; + * @param index The index of the element to return. + * @return The argumentKeywords at the given index. + */ + public java.lang.String getArgumentKeywords(int index) { + return argumentKeywords_.get(index); + } + /** + *
+     * A sequence of unique strings, one per Tensor argument.
+     * 
+ * + * repeated string argument_keywords = 2; + * @param index The index of the value to return. + * @return The bytes of the argumentKeywords at the given index. + */ + public com.google.protobuf.ByteString + getArgumentKeywordsBytes(int index) { + return argumentKeywords_.getByteString(index); + } + + public static final int ALLOWED_POSITIONAL_ARGUMENTS_FIELD_NUMBER = 3; + private long allowedPositionalArguments_; + /** + *
+     * The prefix of `argument_keywords` which may be identified by position.
+     * 
+ * + * int64 allowed_positional_arguments = 3; + * @return The allowedPositionalArguments. + */ + @java.lang.Override + public long getAllowedPositionalArguments() { + return allowedPositionalArguments_; + } + + public static final int FUNCTION_SPEC_FIELD_NUMBER = 4; + private org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec functionSpec_; + /** + *
+     * The spec of the function that this ConcreteFunction is traced from. This
+     * allows the ConcreteFunction to be called with nest structure inputs. This
+     * field may not be populated. If this field is absent, the concrete function
+     * can only be called with flat inputs.
+     * TODO(b/169361281): support calling saved ConcreteFunction with structured
+     * inputs in C++ SavedModel API.
+     * 
+ * + * .tensorflow.FunctionSpec function_spec = 4; + * @return Whether the functionSpec field is set. + */ + @java.lang.Override + public boolean hasFunctionSpec() { + return functionSpec_ != null; + } + /** + *
+     * The spec of the function that this ConcreteFunction is traced from. This
+     * allows the ConcreteFunction to be called with nest structure inputs. This
+     * field may not be populated. If this field is absent, the concrete function
+     * can only be called with flat inputs.
+     * TODO(b/169361281): support calling saved ConcreteFunction with structured
+     * inputs in C++ SavedModel API.
+     * 
+ * + * .tensorflow.FunctionSpec function_spec = 4; + * @return The functionSpec. + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec getFunctionSpec() { + return functionSpec_ == null ? org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.getDefaultInstance() : functionSpec_; + } + /** + *
+     * The spec of the function that this ConcreteFunction is traced from. This
+     * allows the ConcreteFunction to be called with nest structure inputs. This
+     * field may not be populated. If this field is absent, the concrete function
+     * can only be called with flat inputs.
+     * TODO(b/169361281): support calling saved ConcreteFunction with structured
+     * inputs in C++ SavedModel API.
+     * 
+ * + * .tensorflow.FunctionSpec function_spec = 4; + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpecOrBuilder getFunctionSpecOrBuilder() { + return getFunctionSpec(); + } + + 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(concreteFunctionName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, concreteFunctionName_); + } + for (int i = 0; i < argumentKeywords_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, argumentKeywords_.getRaw(i)); + } + if (allowedPositionalArguments_ != 0L) { + output.writeInt64(3, allowedPositionalArguments_); + } + if (functionSpec_ != null) { + output.writeMessage(4, getFunctionSpec()); + } + 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(concreteFunctionName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, concreteFunctionName_); + } + { + int dataSize = 0; + for (int i = 0; i < argumentKeywords_.size(); i++) { + dataSize += computeStringSizeNoTag(argumentKeywords_.getRaw(i)); + } + size += dataSize; + size += 1 * getArgumentKeywordsList().size(); + } + if (allowedPositionalArguments_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, allowedPositionalArguments_); + } + if (functionSpec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getFunctionSpec()); + } + 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction)) { + return super.equals(obj); + } + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction other = (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction) obj; + + if (!getConcreteFunctionName() + .equals(other.getConcreteFunctionName())) return false; + if (!getArgumentKeywordsList() + .equals(other.getArgumentKeywordsList())) return false; + if (getAllowedPositionalArguments() + != other.getAllowedPositionalArguments()) return false; + if (hasFunctionSpec() != other.hasFunctionSpec()) return false; + if (hasFunctionSpec()) { + if (!getFunctionSpec() + .equals(other.getFunctionSpec())) 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) + CONCRETE_FUNCTION_NAME_FIELD_NUMBER; + hash = (53 * hash) + getConcreteFunctionName().hashCode(); + if (getArgumentKeywordsCount() > 0) { + hash = (37 * hash) + ARGUMENT_KEYWORDS_FIELD_NUMBER; + hash = (53 * hash) + getArgumentKeywordsList().hashCode(); + } + hash = (37 * hash) + ALLOWED_POSITIONAL_ARGUMENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAllowedPositionalArguments()); + if (hasFunctionSpec()) { + hash = (37 * hash) + FUNCTION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getFunctionSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction 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(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.SavedBareConcreteFunction} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SavedBareConcreteFunction) + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunctionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedBareConcreteFunction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedBareConcreteFunction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction.class, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction.Builder.class); + } + + // Construct using org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + concreteFunctionName_ = ""; + + argumentKeywords_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + allowedPositionalArguments_ = 0L; + + if (functionSpecBuilder_ == null) { + functionSpec_ = null; + } else { + functionSpec_ = null; + functionSpecBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedBareConcreteFunction_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction getDefaultInstanceForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction build() { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction buildPartial() { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction result = new org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction(this); + int from_bitField0_ = bitField0_; + result.concreteFunctionName_ = concreteFunctionName_; + if (((bitField0_ & 0x00000001) != 0)) { + argumentKeywords_ = argumentKeywords_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.argumentKeywords_ = argumentKeywords_; + result.allowedPositionalArguments_ = allowedPositionalArguments_; + if (functionSpecBuilder_ == null) { + result.functionSpec_ = functionSpec_; + } else { + result.functionSpec_ = functionSpecBuilder_.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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction) { + return mergeFrom((org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction other) { + if (other == org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction.getDefaultInstance()) return this; + if (!other.getConcreteFunctionName().isEmpty()) { + concreteFunctionName_ = other.concreteFunctionName_; + onChanged(); + } + if (!other.argumentKeywords_.isEmpty()) { + if (argumentKeywords_.isEmpty()) { + argumentKeywords_ = other.argumentKeywords_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureArgumentKeywordsIsMutable(); + argumentKeywords_.addAll(other.argumentKeywords_); + } + onChanged(); + } + if (other.getAllowedPositionalArguments() != 0L) { + setAllowedPositionalArguments(other.getAllowedPositionalArguments()); + } + if (other.hasFunctionSpec()) { + mergeFunctionSpec(other.getFunctionSpec()); + } + 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: { + concreteFunctionName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureArgumentKeywordsIsMutable(); + argumentKeywords_.add(s); + break; + } // case 18 + case 24: { + allowedPositionalArguments_ = input.readInt64(); + + break; + } // case 24 + case 34: { + input.readMessage( + getFunctionSpecFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + 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 concreteFunctionName_ = ""; + /** + *
+       * Identifies a SavedConcreteFunction.
+       * 
+ * + * string concrete_function_name = 1; + * @return The concreteFunctionName. + */ + public java.lang.String getConcreteFunctionName() { + java.lang.Object ref = concreteFunctionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + concreteFunctionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Identifies a SavedConcreteFunction.
+       * 
+ * + * string concrete_function_name = 1; + * @return The bytes for concreteFunctionName. + */ + public com.google.protobuf.ByteString + getConcreteFunctionNameBytes() { + java.lang.Object ref = concreteFunctionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + concreteFunctionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Identifies a SavedConcreteFunction.
+       * 
+ * + * string concrete_function_name = 1; + * @param value The concreteFunctionName to set. + * @return This builder for chaining. + */ + public Builder setConcreteFunctionName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + concreteFunctionName_ = value; + onChanged(); + return this; + } + /** + *
+       * Identifies a SavedConcreteFunction.
+       * 
+ * + * string concrete_function_name = 1; + * @return This builder for chaining. + */ + public Builder clearConcreteFunctionName() { + + concreteFunctionName_ = getDefaultInstance().getConcreteFunctionName(); + onChanged(); + return this; + } + /** + *
+       * Identifies a SavedConcreteFunction.
+       * 
+ * + * string concrete_function_name = 1; + * @param value The bytes for concreteFunctionName to set. + * @return This builder for chaining. + */ + public Builder setConcreteFunctionNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + concreteFunctionName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList argumentKeywords_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArgumentKeywordsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + argumentKeywords_ = new com.google.protobuf.LazyStringArrayList(argumentKeywords_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * A sequence of unique strings, one per Tensor argument.
+       * 
+ * + * repeated string argument_keywords = 2; + * @return A list containing the argumentKeywords. + */ + public com.google.protobuf.ProtocolStringList + getArgumentKeywordsList() { + return argumentKeywords_.getUnmodifiableView(); + } + /** + *
+       * A sequence of unique strings, one per Tensor argument.
+       * 
+ * + * repeated string argument_keywords = 2; + * @return The count of argumentKeywords. + */ + public int getArgumentKeywordsCount() { + return argumentKeywords_.size(); + } + /** + *
+       * A sequence of unique strings, one per Tensor argument.
+       * 
+ * + * repeated string argument_keywords = 2; + * @param index The index of the element to return. + * @return The argumentKeywords at the given index. + */ + public java.lang.String getArgumentKeywords(int index) { + return argumentKeywords_.get(index); + } + /** + *
+       * A sequence of unique strings, one per Tensor argument.
+       * 
+ * + * repeated string argument_keywords = 2; + * @param index The index of the value to return. + * @return The bytes of the argumentKeywords at the given index. + */ + public com.google.protobuf.ByteString + getArgumentKeywordsBytes(int index) { + return argumentKeywords_.getByteString(index); + } + /** + *
+       * A sequence of unique strings, one per Tensor argument.
+       * 
+ * + * repeated string argument_keywords = 2; + * @param index The index to set the value at. + * @param value The argumentKeywords to set. + * @return This builder for chaining. + */ + public Builder setArgumentKeywords( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgumentKeywordsIsMutable(); + argumentKeywords_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * A sequence of unique strings, one per Tensor argument.
+       * 
+ * + * repeated string argument_keywords = 2; + * @param value The argumentKeywords to add. + * @return This builder for chaining. + */ + public Builder addArgumentKeywords( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgumentKeywordsIsMutable(); + argumentKeywords_.add(value); + onChanged(); + return this; + } + /** + *
+       * A sequence of unique strings, one per Tensor argument.
+       * 
+ * + * repeated string argument_keywords = 2; + * @param values The argumentKeywords to add. + * @return This builder for chaining. + */ + public Builder addAllArgumentKeywords( + java.lang.Iterable values) { + ensureArgumentKeywordsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, argumentKeywords_); + onChanged(); + return this; + } + /** + *
+       * A sequence of unique strings, one per Tensor argument.
+       * 
+ * + * repeated string argument_keywords = 2; + * @return This builder for chaining. + */ + public Builder clearArgumentKeywords() { + argumentKeywords_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * A sequence of unique strings, one per Tensor argument.
+       * 
+ * + * repeated string argument_keywords = 2; + * @param value The bytes of the argumentKeywords to add. + * @return This builder for chaining. + */ + public Builder addArgumentKeywordsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureArgumentKeywordsIsMutable(); + argumentKeywords_.add(value); + onChanged(); + return this; + } + + private long allowedPositionalArguments_ ; + /** + *
+       * The prefix of `argument_keywords` which may be identified by position.
+       * 
+ * + * int64 allowed_positional_arguments = 3; + * @return The allowedPositionalArguments. + */ + @java.lang.Override + public long getAllowedPositionalArguments() { + return allowedPositionalArguments_; + } + /** + *
+       * The prefix of `argument_keywords` which may be identified by position.
+       * 
+ * + * int64 allowed_positional_arguments = 3; + * @param value The allowedPositionalArguments to set. + * @return This builder for chaining. + */ + public Builder setAllowedPositionalArguments(long value) { + + allowedPositionalArguments_ = value; + onChanged(); + return this; + } + /** + *
+       * The prefix of `argument_keywords` which may be identified by position.
+       * 
+ * + * int64 allowed_positional_arguments = 3; + * @return This builder for chaining. + */ + public Builder clearAllowedPositionalArguments() { + + allowedPositionalArguments_ = 0L; + onChanged(); + return this; + } + + private org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec functionSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec, org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpecOrBuilder> functionSpecBuilder_; + /** + *
+       * The spec of the function that this ConcreteFunction is traced from. This
+       * allows the ConcreteFunction to be called with nest structure inputs. This
+       * field may not be populated. If this field is absent, the concrete function
+       * can only be called with flat inputs.
+       * TODO(b/169361281): support calling saved ConcreteFunction with structured
+       * inputs in C++ SavedModel API.
+       * 
+ * + * .tensorflow.FunctionSpec function_spec = 4; + * @return Whether the functionSpec field is set. + */ + public boolean hasFunctionSpec() { + return functionSpecBuilder_ != null || functionSpec_ != null; + } + /** + *
+       * The spec of the function that this ConcreteFunction is traced from. This
+       * allows the ConcreteFunction to be called with nest structure inputs. This
+       * field may not be populated. If this field is absent, the concrete function
+       * can only be called with flat inputs.
+       * TODO(b/169361281): support calling saved ConcreteFunction with structured
+       * inputs in C++ SavedModel API.
+       * 
+ * + * .tensorflow.FunctionSpec function_spec = 4; + * @return The functionSpec. + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec getFunctionSpec() { + if (functionSpecBuilder_ == null) { + return functionSpec_ == null ? org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.getDefaultInstance() : functionSpec_; + } else { + return functionSpecBuilder_.getMessage(); + } + } + /** + *
+       * The spec of the function that this ConcreteFunction is traced from. This
+       * allows the ConcreteFunction to be called with nest structure inputs. This
+       * field may not be populated. If this field is absent, the concrete function
+       * can only be called with flat inputs.
+       * TODO(b/169361281): support calling saved ConcreteFunction with structured
+       * inputs in C++ SavedModel API.
+       * 
+ * + * .tensorflow.FunctionSpec function_spec = 4; + */ + public Builder setFunctionSpec(org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec value) { + if (functionSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + functionSpec_ = value; + onChanged(); + } else { + functionSpecBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The spec of the function that this ConcreteFunction is traced from. This
+       * allows the ConcreteFunction to be called with nest structure inputs. This
+       * field may not be populated. If this field is absent, the concrete function
+       * can only be called with flat inputs.
+       * TODO(b/169361281): support calling saved ConcreteFunction with structured
+       * inputs in C++ SavedModel API.
+       * 
+ * + * .tensorflow.FunctionSpec function_spec = 4; + */ + public Builder setFunctionSpec( + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.Builder builderForValue) { + if (functionSpecBuilder_ == null) { + functionSpec_ = builderForValue.build(); + onChanged(); + } else { + functionSpecBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The spec of the function that this ConcreteFunction is traced from. This
+       * allows the ConcreteFunction to be called with nest structure inputs. This
+       * field may not be populated. If this field is absent, the concrete function
+       * can only be called with flat inputs.
+       * TODO(b/169361281): support calling saved ConcreteFunction with structured
+       * inputs in C++ SavedModel API.
+       * 
+ * + * .tensorflow.FunctionSpec function_spec = 4; + */ + public Builder mergeFunctionSpec(org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec value) { + if (functionSpecBuilder_ == null) { + if (functionSpec_ != null) { + functionSpec_ = + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.newBuilder(functionSpec_).mergeFrom(value).buildPartial(); + } else { + functionSpec_ = value; + } + onChanged(); + } else { + functionSpecBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The spec of the function that this ConcreteFunction is traced from. This
+       * allows the ConcreteFunction to be called with nest structure inputs. This
+       * field may not be populated. If this field is absent, the concrete function
+       * can only be called with flat inputs.
+       * TODO(b/169361281): support calling saved ConcreteFunction with structured
+       * inputs in C++ SavedModel API.
+       * 
+ * + * .tensorflow.FunctionSpec function_spec = 4; + */ + public Builder clearFunctionSpec() { + if (functionSpecBuilder_ == null) { + functionSpec_ = null; + onChanged(); + } else { + functionSpec_ = null; + functionSpecBuilder_ = null; + } + + return this; + } + /** + *
+       * The spec of the function that this ConcreteFunction is traced from. This
+       * allows the ConcreteFunction to be called with nest structure inputs. This
+       * field may not be populated. If this field is absent, the concrete function
+       * can only be called with flat inputs.
+       * TODO(b/169361281): support calling saved ConcreteFunction with structured
+       * inputs in C++ SavedModel API.
+       * 
+ * + * .tensorflow.FunctionSpec function_spec = 4; + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.Builder getFunctionSpecBuilder() { + + onChanged(); + return getFunctionSpecFieldBuilder().getBuilder(); + } + /** + *
+       * The spec of the function that this ConcreteFunction is traced from. This
+       * allows the ConcreteFunction to be called with nest structure inputs. This
+       * field may not be populated. If this field is absent, the concrete function
+       * can only be called with flat inputs.
+       * TODO(b/169361281): support calling saved ConcreteFunction with structured
+       * inputs in C++ SavedModel API.
+       * 
+ * + * .tensorflow.FunctionSpec function_spec = 4; + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpecOrBuilder getFunctionSpecOrBuilder() { + if (functionSpecBuilder_ != null) { + return functionSpecBuilder_.getMessageOrBuilder(); + } else { + return functionSpec_ == null ? + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.getDefaultInstance() : functionSpec_; + } + } + /** + *
+       * The spec of the function that this ConcreteFunction is traced from. This
+       * allows the ConcreteFunction to be called with nest structure inputs. This
+       * field may not be populated. If this field is absent, the concrete function
+       * can only be called with flat inputs.
+       * TODO(b/169361281): support calling saved ConcreteFunction with structured
+       * inputs in C++ SavedModel API.
+       * 
+ * + * .tensorflow.FunctionSpec function_spec = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec, org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpecOrBuilder> + getFunctionSpecFieldBuilder() { + if (functionSpecBuilder_ == null) { + functionSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec, org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpecOrBuilder>( + getFunctionSpec(), + getParentForChildren(), + isClean()); + functionSpec_ = null; + } + return functionSpecBuilder_; + } + @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:tensorflow.SavedBareConcreteFunction) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SavedBareConcreteFunction) + private static final org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction(); + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SavedBareConcreteFunction 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedBareConcreteFunction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SavedConstantOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.SavedConstant) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * An Operation name for a ConstantOp in this SavedObjectGraph's MetaGraph.
+     * 
+ * + * string operation = 1; + * @return The operation. + */ + java.lang.String getOperation(); + /** + *
+     * An Operation name for a ConstantOp in this SavedObjectGraph's MetaGraph.
+     * 
+ * + * string operation = 1; + * @return The bytes for operation. + */ + com.google.protobuf.ByteString + getOperationBytes(); + } + /** + * Protobuf type {@code tensorflow.SavedConstant} + */ + public static final class SavedConstant extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SavedConstant) + SavedConstantOrBuilder { + private static final long serialVersionUID = 0L; + // Use SavedConstant.newBuilder() to construct. + private SavedConstant(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SavedConstant() { + operation_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SavedConstant(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedConstant_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedConstant_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant.class, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant.Builder.class); + } + + public static final int OPERATION_FIELD_NUMBER = 1; + private volatile java.lang.Object operation_; + /** + *
+     * An Operation name for a ConstantOp in this SavedObjectGraph's MetaGraph.
+     * 
+ * + * string operation = 1; + * @return The operation. + */ + @java.lang.Override + public java.lang.String getOperation() { + java.lang.Object ref = operation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operation_ = s; + return s; + } + } + /** + *
+     * An Operation name for a ConstantOp in this SavedObjectGraph's MetaGraph.
+     * 
+ * + * string operation = 1; + * @return The bytes for operation. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOperationBytes() { + java.lang.Object ref = operation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, operation_); + } + 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant)) { + return super.equals(obj); + } + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant other = (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant) obj; + + if (!getOperation() + .equals(other.getOperation())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OPERATION_FIELD_NUMBER; + hash = (53 * hash) + getOperation().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant 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(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.SavedConstant} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SavedConstant) + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstantOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedConstant_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedConstant_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant.class, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant.Builder.class); + } + + // Construct using org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + operation_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedConstant_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant getDefaultInstanceForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant build() { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant buildPartial() { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant result = new org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant(this); + result.operation_ = operation_; + 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant) { + return mergeFrom((org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant other) { + if (other == org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant.getDefaultInstance()) return this; + if (!other.getOperation().isEmpty()) { + operation_ = other.operation_; + 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: { + operation_ = input.readStringRequireUtf8(); + + 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 java.lang.Object operation_ = ""; + /** + *
+       * An Operation name for a ConstantOp in this SavedObjectGraph's MetaGraph.
+       * 
+ * + * string operation = 1; + * @return The operation. + */ + public java.lang.String getOperation() { + java.lang.Object ref = operation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * An Operation name for a ConstantOp in this SavedObjectGraph's MetaGraph.
+       * 
+ * + * string operation = 1; + * @return The bytes for operation. + */ + public com.google.protobuf.ByteString + getOperationBytes() { + java.lang.Object ref = operation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * An Operation name for a ConstantOp in this SavedObjectGraph's MetaGraph.
+       * 
+ * + * string operation = 1; + * @param value The operation to set. + * @return This builder for chaining. + */ + public Builder setOperation( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + operation_ = value; + onChanged(); + return this; + } + /** + *
+       * An Operation name for a ConstantOp in this SavedObjectGraph's MetaGraph.
+       * 
+ * + * string operation = 1; + * @return This builder for chaining. + */ + public Builder clearOperation() { + + operation_ = getDefaultInstance().getOperation(); + onChanged(); + return this; + } + /** + *
+       * An Operation name for a ConstantOp in this SavedObjectGraph's MetaGraph.
+       * 
+ * + * string operation = 1; + * @param value The bytes for operation to set. + * @return This builder for chaining. + */ + public Builder setOperationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + operation_ = value; + 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:tensorflow.SavedConstant) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SavedConstant) + private static final org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant(); + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SavedConstant 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedConstant getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SavedVariableOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.SavedVariable) + com.google.protobuf.MessageOrBuilder { + + /** + * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. + */ + int getDtypeValue(); + /** + * .tensorflow.DataType dtype = 1; + * @return The dtype. + */ + org.tensorflow.proto.DataType getDtype(); + + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + boolean hasShape(); + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + org.tensorflow.proto.TensorShapeProto getShape(); + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder(); + + /** + * bool trainable = 3; + * @return The trainable. + */ + boolean getTrainable(); + + /** + * .tensorflow.VariableSynchronization synchronization = 4; + * @return The enum numeric value on the wire for synchronization. + */ + int getSynchronizationValue(); + /** + * .tensorflow.VariableSynchronization synchronization = 4; + * @return The synchronization. + */ + org.tensorflow.proto.VariableSynchronization getSynchronization(); + + /** + * .tensorflow.VariableAggregation aggregation = 5; + * @return The enum numeric value on the wire for aggregation. + */ + int getAggregationValue(); + /** + * .tensorflow.VariableAggregation aggregation = 5; + * @return The aggregation. + */ + org.tensorflow.proto.VariableAggregation getAggregation(); + + /** + * string name = 6; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 6; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string device = 7; + * @return The device. + */ + java.lang.String getDevice(); + /** + * string device = 7; + * @return The bytes for device. + */ + com.google.protobuf.ByteString + getDeviceBytes(); + + /** + *
+     * List of component variables for a distributed variable.
+     * When this field is non-empty, the SavedVariable will be assumed
+     * to be a distributed variable defined by the components listed here.
+     * This is only supported by experimental loaders at the moment.
+     * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + java.util.List + getExperimentalDistributedVariableComponentsList(); + /** + *
+     * List of component variables for a distributed variable.
+     * When this field is non-empty, the SavedVariable will be assumed
+     * to be a distributed variable defined by the components listed here.
+     * This is only supported by experimental loaders at the moment.
+     * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable getExperimentalDistributedVariableComponents(int index); + /** + *
+     * List of component variables for a distributed variable.
+     * When this field is non-empty, the SavedVariable will be assumed
+     * to be a distributed variable defined by the components listed here.
+     * This is only supported by experimental loaders at the moment.
+     * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + int getExperimentalDistributedVariableComponentsCount(); + /** + *
+     * List of component variables for a distributed variable.
+     * When this field is non-empty, the SavedVariable will be assumed
+     * to be a distributed variable defined by the components listed here.
+     * This is only supported by experimental loaders at the moment.
+     * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + java.util.List + getExperimentalDistributedVariableComponentsOrBuilderList(); + /** + *
+     * List of component variables for a distributed variable.
+     * When this field is non-empty, the SavedVariable will be assumed
+     * to be a distributed variable defined by the components listed here.
+     * This is only supported by experimental loaders at the moment.
+     * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariableOrBuilder getExperimentalDistributedVariableComponentsOrBuilder( + int index); + } + /** + *
+   * Represents a Variable that is initialized by loading the contents from the
+   * checkpoint.
+   * 
+ * + * Protobuf type {@code tensorflow.SavedVariable} + */ + public static final class SavedVariable extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SavedVariable) + SavedVariableOrBuilder { + private static final long serialVersionUID = 0L; + // Use SavedVariable.newBuilder() to construct. + private SavedVariable(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SavedVariable() { + dtype_ = 0; + synchronization_ = 0; + aggregation_ = 0; + name_ = ""; + device_ = ""; + experimentalDistributedVariableComponents_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SavedVariable(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.class, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.Builder.class); + } + + public static final int DTYPE_FIELD_NUMBER = 1; + private int dtype_; + /** + * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. + */ + @java.lang.Override public int getDtypeValue() { + return dtype_; + } + /** + * .tensorflow.DataType dtype = 1; + * @return The dtype. + */ + @java.lang.Override public org.tensorflow.proto.DataType getDtype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + + public static final int SHAPE_FIELD_NUMBER = 2; + private org.tensorflow.proto.TensorShapeProto shape_; + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + @java.lang.Override + public boolean hasShape() { + return shape_ != null; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto getShape() { + return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { + return getShape(); + } + + public static final int TRAINABLE_FIELD_NUMBER = 3; + private boolean trainable_; + /** + * bool trainable = 3; + * @return The trainable. + */ + @java.lang.Override + public boolean getTrainable() { + return trainable_; + } + + public static final int SYNCHRONIZATION_FIELD_NUMBER = 4; + private int synchronization_; + /** + * .tensorflow.VariableSynchronization synchronization = 4; + * @return The enum numeric value on the wire for synchronization. + */ + @java.lang.Override public int getSynchronizationValue() { + return synchronization_; + } + /** + * .tensorflow.VariableSynchronization synchronization = 4; + * @return The synchronization. + */ + @java.lang.Override public org.tensorflow.proto.VariableSynchronization getSynchronization() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.VariableSynchronization result = org.tensorflow.proto.VariableSynchronization.valueOf(synchronization_); + return result == null ? org.tensorflow.proto.VariableSynchronization.UNRECOGNIZED : result; + } + + public static final int AGGREGATION_FIELD_NUMBER = 5; + private int aggregation_; + /** + * .tensorflow.VariableAggregation aggregation = 5; + * @return The enum numeric value on the wire for aggregation. + */ + @java.lang.Override public int getAggregationValue() { + return aggregation_; + } + /** + * .tensorflow.VariableAggregation aggregation = 5; + * @return The aggregation. + */ + @java.lang.Override public org.tensorflow.proto.VariableAggregation getAggregation() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.VariableAggregation result = org.tensorflow.proto.VariableAggregation.valueOf(aggregation_); + return result == null ? org.tensorflow.proto.VariableAggregation.UNRECOGNIZED : result; + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * string name = 6; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 6; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEVICE_FIELD_NUMBER = 7; + private volatile java.lang.Object device_; + /** + * string device = 7; + * @return The device. + */ + @java.lang.Override + public java.lang.String getDevice() { + java.lang.Object ref = device_; + 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(); + device_ = s; + return s; + } + } + /** + * string device = 7; + * @return The bytes for device. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDeviceBytes() { + java.lang.Object ref = device_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + device_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPERIMENTAL_DISTRIBUTED_VARIABLE_COMPONENTS_FIELD_NUMBER = 8; + private java.util.List experimentalDistributedVariableComponents_; + /** + *
+     * List of component variables for a distributed variable.
+     * When this field is non-empty, the SavedVariable will be assumed
+     * to be a distributed variable defined by the components listed here.
+     * This is only supported by experimental loaders at the moment.
+     * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + @java.lang.Override + public java.util.List getExperimentalDistributedVariableComponentsList() { + return experimentalDistributedVariableComponents_; + } + /** + *
+     * List of component variables for a distributed variable.
+     * When this field is non-empty, the SavedVariable will be assumed
+     * to be a distributed variable defined by the components listed here.
+     * This is only supported by experimental loaders at the moment.
+     * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + @java.lang.Override + public java.util.List + getExperimentalDistributedVariableComponentsOrBuilderList() { + return experimentalDistributedVariableComponents_; + } + /** + *
+     * List of component variables for a distributed variable.
+     * When this field is non-empty, the SavedVariable will be assumed
+     * to be a distributed variable defined by the components listed here.
+     * This is only supported by experimental loaders at the moment.
+     * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + @java.lang.Override + public int getExperimentalDistributedVariableComponentsCount() { + return experimentalDistributedVariableComponents_.size(); + } + /** + *
+     * List of component variables for a distributed variable.
+     * When this field is non-empty, the SavedVariable will be assumed
+     * to be a distributed variable defined by the components listed here.
+     * This is only supported by experimental loaders at the moment.
+     * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable getExperimentalDistributedVariableComponents(int index) { + return experimentalDistributedVariableComponents_.get(index); + } + /** + *
+     * List of component variables for a distributed variable.
+     * When this field is non-empty, the SavedVariable will be assumed
+     * to be a distributed variable defined by the components listed here.
+     * This is only supported by experimental loaders at the moment.
+     * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariableOrBuilder getExperimentalDistributedVariableComponentsOrBuilder( + int index) { + return experimentalDistributedVariableComponents_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + output.writeEnum(1, dtype_); + } + if (shape_ != null) { + output.writeMessage(2, getShape()); + } + if (trainable_ != false) { + output.writeBool(3, trainable_); + } + if (synchronization_ != org.tensorflow.proto.VariableSynchronization.VARIABLE_SYNCHRONIZATION_AUTO.getNumber()) { + output.writeEnum(4, synchronization_); + } + if (aggregation_ != org.tensorflow.proto.VariableAggregation.VARIABLE_AGGREGATION_NONE.getNumber()) { + output.writeEnum(5, aggregation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(device_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, device_); + } + for (int i = 0; i < experimentalDistributedVariableComponents_.size(); i++) { + output.writeMessage(8, experimentalDistributedVariableComponents_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, dtype_); + } + if (shape_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getShape()); + } + if (trainable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, trainable_); + } + if (synchronization_ != org.tensorflow.proto.VariableSynchronization.VARIABLE_SYNCHRONIZATION_AUTO.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, synchronization_); + } + if (aggregation_ != org.tensorflow.proto.VariableAggregation.VARIABLE_AGGREGATION_NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, aggregation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(device_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, device_); + } + for (int i = 0; i < experimentalDistributedVariableComponents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, experimentalDistributedVariableComponents_.get(i)); + } + 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable)) { + return super.equals(obj); + } + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable other = (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable) obj; + + if (dtype_ != other.dtype_) return false; + if (hasShape() != other.hasShape()) return false; + if (hasShape()) { + if (!getShape() + .equals(other.getShape())) return false; + } + if (getTrainable() + != other.getTrainable()) return false; + if (synchronization_ != other.synchronization_) return false; + if (aggregation_ != other.aggregation_) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDevice() + .equals(other.getDevice())) return false; + if (!getExperimentalDistributedVariableComponentsList() + .equals(other.getExperimentalDistributedVariableComponentsList())) 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) + DTYPE_FIELD_NUMBER; + hash = (53 * hash) + dtype_; + if (hasShape()) { + hash = (37 * hash) + SHAPE_FIELD_NUMBER; + hash = (53 * hash) + getShape().hashCode(); + } + hash = (37 * hash) + TRAINABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTrainable()); + hash = (37 * hash) + SYNCHRONIZATION_FIELD_NUMBER; + hash = (53 * hash) + synchronization_; + hash = (37 * hash) + AGGREGATION_FIELD_NUMBER; + hash = (53 * hash) + aggregation_; + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DEVICE_FIELD_NUMBER; + hash = (53 * hash) + getDevice().hashCode(); + if (getExperimentalDistributedVariableComponentsCount() > 0) { + hash = (37 * hash) + EXPERIMENTAL_DISTRIBUTED_VARIABLE_COMPONENTS_FIELD_NUMBER; + hash = (53 * hash) + getExperimentalDistributedVariableComponentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable 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(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable 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; + } + /** + *
+     * Represents a Variable that is initialized by loading the contents from the
+     * checkpoint.
+     * 
+ * + * Protobuf type {@code tensorflow.SavedVariable} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SavedVariable) + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.class, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.Builder.class); + } + + // Construct using org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + dtype_ = 0; + + if (shapeBuilder_ == null) { + shape_ = null; + } else { + shape_ = null; + shapeBuilder_ = null; + } + trainable_ = false; + + synchronization_ = 0; + + aggregation_ = 0; + + name_ = ""; + + device_ = ""; + + if (experimentalDistributedVariableComponentsBuilder_ == null) { + experimentalDistributedVariableComponents_ = java.util.Collections.emptyList(); + } else { + experimentalDistributedVariableComponents_ = null; + experimentalDistributedVariableComponentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedVariable_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable getDefaultInstanceForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable build() { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable buildPartial() { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable result = new org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable(this); + int from_bitField0_ = bitField0_; + result.dtype_ = dtype_; + if (shapeBuilder_ == null) { + result.shape_ = shape_; + } else { + result.shape_ = shapeBuilder_.build(); + } + result.trainable_ = trainable_; + result.synchronization_ = synchronization_; + result.aggregation_ = aggregation_; + result.name_ = name_; + result.device_ = device_; + if (experimentalDistributedVariableComponentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + experimentalDistributedVariableComponents_ = java.util.Collections.unmodifiableList(experimentalDistributedVariableComponents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.experimentalDistributedVariableComponents_ = experimentalDistributedVariableComponents_; + } else { + result.experimentalDistributedVariableComponents_ = experimentalDistributedVariableComponentsBuilder_.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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable) { + return mergeFrom((org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable other) { + if (other == org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.getDefaultInstance()) return this; + if (other.dtype_ != 0) { + setDtypeValue(other.getDtypeValue()); + } + if (other.hasShape()) { + mergeShape(other.getShape()); + } + if (other.getTrainable() != false) { + setTrainable(other.getTrainable()); + } + if (other.synchronization_ != 0) { + setSynchronizationValue(other.getSynchronizationValue()); + } + if (other.aggregation_ != 0) { + setAggregationValue(other.getAggregationValue()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDevice().isEmpty()) { + device_ = other.device_; + onChanged(); + } + if (experimentalDistributedVariableComponentsBuilder_ == null) { + if (!other.experimentalDistributedVariableComponents_.isEmpty()) { + if (experimentalDistributedVariableComponents_.isEmpty()) { + experimentalDistributedVariableComponents_ = other.experimentalDistributedVariableComponents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExperimentalDistributedVariableComponentsIsMutable(); + experimentalDistributedVariableComponents_.addAll(other.experimentalDistributedVariableComponents_); + } + onChanged(); + } + } else { + if (!other.experimentalDistributedVariableComponents_.isEmpty()) { + if (experimentalDistributedVariableComponentsBuilder_.isEmpty()) { + experimentalDistributedVariableComponentsBuilder_.dispose(); + experimentalDistributedVariableComponentsBuilder_ = null; + experimentalDistributedVariableComponents_ = other.experimentalDistributedVariableComponents_; + bitField0_ = (bitField0_ & ~0x00000001); + experimentalDistributedVariableComponentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getExperimentalDistributedVariableComponentsFieldBuilder() : null; + } else { + experimentalDistributedVariableComponentsBuilder_.addAllMessages(other.experimentalDistributedVariableComponents_); + } + } + } + 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: { + dtype_ = input.readEnum(); + + break; + } // case 8 + case 18: { + input.readMessage( + getShapeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 24: { + trainable_ = input.readBool(); + + break; + } // case 24 + case 32: { + synchronization_ = input.readEnum(); + + break; + } // case 32 + case 40: { + aggregation_ = input.readEnum(); + + break; + } // case 40 + case 50: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: { + device_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable m = + input.readMessage( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.parser(), + extensionRegistry); + if (experimentalDistributedVariableComponentsBuilder_ == null) { + ensureExperimentalDistributedVariableComponentsIsMutable(); + experimentalDistributedVariableComponents_.add(m); + } else { + experimentalDistributedVariableComponentsBuilder_.addMessage(m); + } + break; + } // case 66 + 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 dtype_ = 0; + /** + * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. + */ + @java.lang.Override public int getDtypeValue() { + return dtype_; + } + /** + * .tensorflow.DataType dtype = 1; + * @param value The enum numeric value on the wire for dtype to set. + * @return This builder for chaining. + */ + public Builder setDtypeValue(int value) { + + dtype_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.DataType dtype = 1; + * @return The dtype. + */ + @java.lang.Override + public org.tensorflow.proto.DataType getDtype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + /** + * .tensorflow.DataType dtype = 1; + * @param value The dtype to set. + * @return This builder for chaining. + */ + public Builder setDtype(org.tensorflow.proto.DataType value) { + if (value == null) { + throw new NullPointerException(); + } + + dtype_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.DataType dtype = 1; + * @return This builder for chaining. + */ + public Builder clearDtype() { + + dtype_ = 0; + onChanged(); + return this; + } + + private org.tensorflow.proto.TensorShapeProto shape_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> shapeBuilder_; + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + public boolean hasShape() { + return shapeBuilder_ != null || shape_ != null; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + public org.tensorflow.proto.TensorShapeProto getShape() { + if (shapeBuilder_ == null) { + return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } else { + return shapeBuilder_.getMessage(); + } + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder setShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shape_ = value; + onChanged(); + } else { + shapeBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder setShape( + org.tensorflow.proto.TensorShapeProto.Builder builderForValue) { + if (shapeBuilder_ == null) { + shape_ = builderForValue.build(); + onChanged(); + } else { + shapeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder mergeShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (shape_ != null) { + shape_ = + org.tensorflow.proto.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial(); + } else { + shape_ = value; + } + onChanged(); + } else { + shapeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder clearShape() { + if (shapeBuilder_ == null) { + shape_ = null; + onChanged(); + } else { + shape_ = null; + shapeBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public org.tensorflow.proto.TensorShapeProto.Builder getShapeBuilder() { + + onChanged(); + return getShapeFieldBuilder().getBuilder(); + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { + if (shapeBuilder_ != null) { + return shapeBuilder_.getMessageOrBuilder(); + } else { + return shape_ == null ? + org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> + getShapeFieldBuilder() { + if (shapeBuilder_ == null) { + shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder>( + getShape(), + getParentForChildren(), + isClean()); + shape_ = null; + } + return shapeBuilder_; + } + + private boolean trainable_ ; + /** + * bool trainable = 3; + * @return The trainable. + */ + @java.lang.Override + public boolean getTrainable() { + return trainable_; + } + /** + * bool trainable = 3; + * @param value The trainable to set. + * @return This builder for chaining. + */ + public Builder setTrainable(boolean value) { + + trainable_ = value; + onChanged(); + return this; + } + /** + * bool trainable = 3; + * @return This builder for chaining. + */ + public Builder clearTrainable() { + + trainable_ = false; + onChanged(); + return this; + } + + private int synchronization_ = 0; + /** + * .tensorflow.VariableSynchronization synchronization = 4; + * @return The enum numeric value on the wire for synchronization. + */ + @java.lang.Override public int getSynchronizationValue() { + return synchronization_; + } + /** + * .tensorflow.VariableSynchronization synchronization = 4; + * @param value The enum numeric value on the wire for synchronization to set. + * @return This builder for chaining. + */ + public Builder setSynchronizationValue(int value) { + + synchronization_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.VariableSynchronization synchronization = 4; + * @return The synchronization. + */ + @java.lang.Override + public org.tensorflow.proto.VariableSynchronization getSynchronization() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.VariableSynchronization result = org.tensorflow.proto.VariableSynchronization.valueOf(synchronization_); + return result == null ? org.tensorflow.proto.VariableSynchronization.UNRECOGNIZED : result; + } + /** + * .tensorflow.VariableSynchronization synchronization = 4; + * @param value The synchronization to set. + * @return This builder for chaining. + */ + public Builder setSynchronization(org.tensorflow.proto.VariableSynchronization value) { + if (value == null) { + throw new NullPointerException(); + } + + synchronization_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.VariableSynchronization synchronization = 4; + * @return This builder for chaining. + */ + public Builder clearSynchronization() { + + synchronization_ = 0; + onChanged(); + return this; + } + + private int aggregation_ = 0; + /** + * .tensorflow.VariableAggregation aggregation = 5; + * @return The enum numeric value on the wire for aggregation. + */ + @java.lang.Override public int getAggregationValue() { + return aggregation_; + } + /** + * .tensorflow.VariableAggregation aggregation = 5; + * @param value The enum numeric value on the wire for aggregation to set. + * @return This builder for chaining. + */ + public Builder setAggregationValue(int value) { + + aggregation_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.VariableAggregation aggregation = 5; + * @return The aggregation. + */ + @java.lang.Override + public org.tensorflow.proto.VariableAggregation getAggregation() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.VariableAggregation result = org.tensorflow.proto.VariableAggregation.valueOf(aggregation_); + return result == null ? org.tensorflow.proto.VariableAggregation.UNRECOGNIZED : result; + } + /** + * .tensorflow.VariableAggregation aggregation = 5; + * @param value The aggregation to set. + * @return This builder for chaining. + */ + public Builder setAggregation(org.tensorflow.proto.VariableAggregation value) { + if (value == null) { + throw new NullPointerException(); + } + + aggregation_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.VariableAggregation aggregation = 5; + * @return This builder for chaining. + */ + public Builder clearAggregation() { + + aggregation_ = 0; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 6; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 6; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 6; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 6; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 6; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object device_ = ""; + /** + * string device = 7; + * @return The device. + */ + public java.lang.String getDevice() { + java.lang.Object ref = device_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + device_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string device = 7; + * @return The bytes for device. + */ + public com.google.protobuf.ByteString + getDeviceBytes() { + java.lang.Object ref = device_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + device_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string device = 7; + * @param value The device to set. + * @return This builder for chaining. + */ + public Builder setDevice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + device_ = value; + onChanged(); + return this; + } + /** + * string device = 7; + * @return This builder for chaining. + */ + public Builder clearDevice() { + + device_ = getDefaultInstance().getDevice(); + onChanged(); + return this; + } + /** + * string device = 7; + * @param value The bytes for device to set. + * @return This builder for chaining. + */ + public Builder setDeviceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + device_ = value; + onChanged(); + return this; + } + + private java.util.List experimentalDistributedVariableComponents_ = + java.util.Collections.emptyList(); + private void ensureExperimentalDistributedVariableComponentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + experimentalDistributedVariableComponents_ = new java.util.ArrayList(experimentalDistributedVariableComponents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariableOrBuilder> experimentalDistributedVariableComponentsBuilder_; + + /** + *
+       * List of component variables for a distributed variable.
+       * When this field is non-empty, the SavedVariable will be assumed
+       * to be a distributed variable defined by the components listed here.
+       * This is only supported by experimental loaders at the moment.
+       * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + public java.util.List getExperimentalDistributedVariableComponentsList() { + if (experimentalDistributedVariableComponentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(experimentalDistributedVariableComponents_); + } else { + return experimentalDistributedVariableComponentsBuilder_.getMessageList(); + } + } + /** + *
+       * List of component variables for a distributed variable.
+       * When this field is non-empty, the SavedVariable will be assumed
+       * to be a distributed variable defined by the components listed here.
+       * This is only supported by experimental loaders at the moment.
+       * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + public int getExperimentalDistributedVariableComponentsCount() { + if (experimentalDistributedVariableComponentsBuilder_ == null) { + return experimentalDistributedVariableComponents_.size(); + } else { + return experimentalDistributedVariableComponentsBuilder_.getCount(); + } + } + /** + *
+       * List of component variables for a distributed variable.
+       * When this field is non-empty, the SavedVariable will be assumed
+       * to be a distributed variable defined by the components listed here.
+       * This is only supported by experimental loaders at the moment.
+       * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable getExperimentalDistributedVariableComponents(int index) { + if (experimentalDistributedVariableComponentsBuilder_ == null) { + return experimentalDistributedVariableComponents_.get(index); + } else { + return experimentalDistributedVariableComponentsBuilder_.getMessage(index); + } + } + /** + *
+       * List of component variables for a distributed variable.
+       * When this field is non-empty, the SavedVariable will be assumed
+       * to be a distributed variable defined by the components listed here.
+       * This is only supported by experimental loaders at the moment.
+       * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + public Builder setExperimentalDistributedVariableComponents( + int index, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable value) { + if (experimentalDistributedVariableComponentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExperimentalDistributedVariableComponentsIsMutable(); + experimentalDistributedVariableComponents_.set(index, value); + onChanged(); + } else { + experimentalDistributedVariableComponentsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * List of component variables for a distributed variable.
+       * When this field is non-empty, the SavedVariable will be assumed
+       * to be a distributed variable defined by the components listed here.
+       * This is only supported by experimental loaders at the moment.
+       * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + public Builder setExperimentalDistributedVariableComponents( + int index, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.Builder builderForValue) { + if (experimentalDistributedVariableComponentsBuilder_ == null) { + ensureExperimentalDistributedVariableComponentsIsMutable(); + experimentalDistributedVariableComponents_.set(index, builderForValue.build()); + onChanged(); + } else { + experimentalDistributedVariableComponentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of component variables for a distributed variable.
+       * When this field is non-empty, the SavedVariable will be assumed
+       * to be a distributed variable defined by the components listed here.
+       * This is only supported by experimental loaders at the moment.
+       * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + public Builder addExperimentalDistributedVariableComponents(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable value) { + if (experimentalDistributedVariableComponentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExperimentalDistributedVariableComponentsIsMutable(); + experimentalDistributedVariableComponents_.add(value); + onChanged(); + } else { + experimentalDistributedVariableComponentsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * List of component variables for a distributed variable.
+       * When this field is non-empty, the SavedVariable will be assumed
+       * to be a distributed variable defined by the components listed here.
+       * This is only supported by experimental loaders at the moment.
+       * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + public Builder addExperimentalDistributedVariableComponents( + int index, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable value) { + if (experimentalDistributedVariableComponentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExperimentalDistributedVariableComponentsIsMutable(); + experimentalDistributedVariableComponents_.add(index, value); + onChanged(); + } else { + experimentalDistributedVariableComponentsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * List of component variables for a distributed variable.
+       * When this field is non-empty, the SavedVariable will be assumed
+       * to be a distributed variable defined by the components listed here.
+       * This is only supported by experimental loaders at the moment.
+       * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + public Builder addExperimentalDistributedVariableComponents( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.Builder builderForValue) { + if (experimentalDistributedVariableComponentsBuilder_ == null) { + ensureExperimentalDistributedVariableComponentsIsMutable(); + experimentalDistributedVariableComponents_.add(builderForValue.build()); + onChanged(); + } else { + experimentalDistributedVariableComponentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * List of component variables for a distributed variable.
+       * When this field is non-empty, the SavedVariable will be assumed
+       * to be a distributed variable defined by the components listed here.
+       * This is only supported by experimental loaders at the moment.
+       * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + public Builder addExperimentalDistributedVariableComponents( + int index, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.Builder builderForValue) { + if (experimentalDistributedVariableComponentsBuilder_ == null) { + ensureExperimentalDistributedVariableComponentsIsMutable(); + experimentalDistributedVariableComponents_.add(index, builderForValue.build()); + onChanged(); + } else { + experimentalDistributedVariableComponentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of component variables for a distributed variable.
+       * When this field is non-empty, the SavedVariable will be assumed
+       * to be a distributed variable defined by the components listed here.
+       * This is only supported by experimental loaders at the moment.
+       * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + public Builder addAllExperimentalDistributedVariableComponents( + java.lang.Iterable values) { + if (experimentalDistributedVariableComponentsBuilder_ == null) { + ensureExperimentalDistributedVariableComponentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, experimentalDistributedVariableComponents_); + onChanged(); + } else { + experimentalDistributedVariableComponentsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * List of component variables for a distributed variable.
+       * When this field is non-empty, the SavedVariable will be assumed
+       * to be a distributed variable defined by the components listed here.
+       * This is only supported by experimental loaders at the moment.
+       * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + public Builder clearExperimentalDistributedVariableComponents() { + if (experimentalDistributedVariableComponentsBuilder_ == null) { + experimentalDistributedVariableComponents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + experimentalDistributedVariableComponentsBuilder_.clear(); + } + return this; + } + /** + *
+       * List of component variables for a distributed variable.
+       * When this field is non-empty, the SavedVariable will be assumed
+       * to be a distributed variable defined by the components listed here.
+       * This is only supported by experimental loaders at the moment.
+       * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + public Builder removeExperimentalDistributedVariableComponents(int index) { + if (experimentalDistributedVariableComponentsBuilder_ == null) { + ensureExperimentalDistributedVariableComponentsIsMutable(); + experimentalDistributedVariableComponents_.remove(index); + onChanged(); + } else { + experimentalDistributedVariableComponentsBuilder_.remove(index); + } + return this; + } + /** + *
+       * List of component variables for a distributed variable.
+       * When this field is non-empty, the SavedVariable will be assumed
+       * to be a distributed variable defined by the components listed here.
+       * This is only supported by experimental loaders at the moment.
+       * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.Builder getExperimentalDistributedVariableComponentsBuilder( + int index) { + return getExperimentalDistributedVariableComponentsFieldBuilder().getBuilder(index); + } + /** + *
+       * List of component variables for a distributed variable.
+       * When this field is non-empty, the SavedVariable will be assumed
+       * to be a distributed variable defined by the components listed here.
+       * This is only supported by experimental loaders at the moment.
+       * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariableOrBuilder getExperimentalDistributedVariableComponentsOrBuilder( + int index) { + if (experimentalDistributedVariableComponentsBuilder_ == null) { + return experimentalDistributedVariableComponents_.get(index); } else { + return experimentalDistributedVariableComponentsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * List of component variables for a distributed variable.
+       * When this field is non-empty, the SavedVariable will be assumed
+       * to be a distributed variable defined by the components listed here.
+       * This is only supported by experimental loaders at the moment.
+       * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + public java.util.List + getExperimentalDistributedVariableComponentsOrBuilderList() { + if (experimentalDistributedVariableComponentsBuilder_ != null) { + return experimentalDistributedVariableComponentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(experimentalDistributedVariableComponents_); + } + } + /** + *
+       * List of component variables for a distributed variable.
+       * When this field is non-empty, the SavedVariable will be assumed
+       * to be a distributed variable defined by the components listed here.
+       * This is only supported by experimental loaders at the moment.
+       * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.Builder addExperimentalDistributedVariableComponentsBuilder() { + return getExperimentalDistributedVariableComponentsFieldBuilder().addBuilder( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.getDefaultInstance()); + } + /** + *
+       * List of component variables for a distributed variable.
+       * When this field is non-empty, the SavedVariable will be assumed
+       * to be a distributed variable defined by the components listed here.
+       * This is only supported by experimental loaders at the moment.
+       * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.Builder addExperimentalDistributedVariableComponentsBuilder( + int index) { + return getExperimentalDistributedVariableComponentsFieldBuilder().addBuilder( + index, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.getDefaultInstance()); + } + /** + *
+       * List of component variables for a distributed variable.
+       * When this field is non-empty, the SavedVariable will be assumed
+       * to be a distributed variable defined by the components listed here.
+       * This is only supported by experimental loaders at the moment.
+       * 
+ * + * repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; + */ + public java.util.List + getExperimentalDistributedVariableComponentsBuilderList() { + return getExperimentalDistributedVariableComponentsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariableOrBuilder> + getExperimentalDistributedVariableComponentsFieldBuilder() { + if (experimentalDistributedVariableComponentsBuilder_ == null) { + experimentalDistributedVariableComponentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable.Builder, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariableOrBuilder>( + experimentalDistributedVariableComponents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + experimentalDistributedVariableComponents_ = null; + } + return experimentalDistributedVariableComponentsBuilder_; + } + @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:tensorflow.SavedVariable) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SavedVariable) + private static final org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable(); + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SavedVariable 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedVariable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FunctionSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.FunctionSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Full arg spec from inspect.getfullargspec().
+     * 
+ * + * .tensorflow.StructuredValue fullargspec = 1; + * @return Whether the fullargspec field is set. + */ + boolean hasFullargspec(); + /** + *
+     * Full arg spec from inspect.getfullargspec().
+     * 
+ * + * .tensorflow.StructuredValue fullargspec = 1; + * @return The fullargspec. + */ + org.tensorflow.proto.Struct.StructuredValue getFullargspec(); + /** + *
+     * Full arg spec from inspect.getfullargspec().
+     * 
+ * + * .tensorflow.StructuredValue fullargspec = 1; + */ + org.tensorflow.proto.Struct.StructuredValueOrBuilder getFullargspecOrBuilder(); + + /** + *
+     * Whether this represents a class method.
+     * 
+ * + * bool is_method = 2; + * @return The isMethod. + */ + boolean getIsMethod(); + + /** + *
+     * The input signature, if specified.
+     * 
+ * + * .tensorflow.StructuredValue input_signature = 5; + * @return Whether the inputSignature field is set. + */ + boolean hasInputSignature(); + /** + *
+     * The input signature, if specified.
+     * 
+ * + * .tensorflow.StructuredValue input_signature = 5; + * @return The inputSignature. + */ + org.tensorflow.proto.Struct.StructuredValue getInputSignature(); + /** + *
+     * The input signature, if specified.
+     * 
+ * + * .tensorflow.StructuredValue input_signature = 5; + */ + org.tensorflow.proto.Struct.StructuredValueOrBuilder getInputSignatureOrBuilder(); + + /** + * .tensorflow.FunctionSpec.JitCompile jit_compile = 6; + * @return The enum numeric value on the wire for jitCompile. + */ + int getJitCompileValue(); + /** + * .tensorflow.FunctionSpec.JitCompile jit_compile = 6; + * @return The jitCompile. + */ + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.JitCompile getJitCompile(); + } + /** + *
+   * Represents `FunctionSpec` used in `Function`. This represents a
+   * function that has been wrapped as a TensorFlow `Function`.
+   * 
+ * + * Protobuf type {@code tensorflow.FunctionSpec} + */ + public static final class FunctionSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.FunctionSpec) + FunctionSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunctionSpec.newBuilder() to construct. + private FunctionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FunctionSpec() { + jitCompile_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FunctionSpec(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_FunctionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_FunctionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.class, org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.Builder.class); + } + + /** + *
+     * Whether the function should be compiled by XLA.
+     * The public interface to `tf.function` uses an optional boolean to
+     * represent three distinct states for this field.  Unfortunately, proto3
+     * removes the ability to explicitly check for the presence or absence of a
+     * field, so we instead map to an enum.
+     * See `tf.function` for details.
+     * 
+ * + * Protobuf enum {@code tensorflow.FunctionSpec.JitCompile} + */ + public enum JitCompile + implements com.google.protobuf.ProtocolMessageEnum { + /** + * DEFAULT = 0; + */ + DEFAULT(0), + /** + * ON = 1; + */ + ON(1), + /** + * OFF = 2; + */ + OFF(2), + UNRECOGNIZED(-1), + ; + + /** + * DEFAULT = 0; + */ + public static final int DEFAULT_VALUE = 0; + /** + * ON = 1; + */ + public static final int ON_VALUE = 1; + /** + * OFF = 2; + */ + public static final int OFF_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 JitCompile 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 JitCompile forNumber(int value) { + switch (value) { + case 0: return DEFAULT; + case 1: return ON; + case 2: return OFF; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + JitCompile> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JitCompile findValueByNumber(int number) { + return JitCompile.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 org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.getDescriptor().getEnumTypes().get(0); + } + + private static final JitCompile[] VALUES = values(); + + public static JitCompile 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 JitCompile(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:tensorflow.FunctionSpec.JitCompile) + } + + public static final int FULLARGSPEC_FIELD_NUMBER = 1; + private org.tensorflow.proto.Struct.StructuredValue fullargspec_; + /** + *
+     * Full arg spec from inspect.getfullargspec().
+     * 
+ * + * .tensorflow.StructuredValue fullargspec = 1; + * @return Whether the fullargspec field is set. + */ + @java.lang.Override + public boolean hasFullargspec() { + return fullargspec_ != null; + } + /** + *
+     * Full arg spec from inspect.getfullargspec().
+     * 
+ * + * .tensorflow.StructuredValue fullargspec = 1; + * @return The fullargspec. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.StructuredValue getFullargspec() { + return fullargspec_ == null ? org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance() : fullargspec_; + } + /** + *
+     * Full arg spec from inspect.getfullargspec().
+     * 
+ * + * .tensorflow.StructuredValue fullargspec = 1; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.StructuredValueOrBuilder getFullargspecOrBuilder() { + return getFullargspec(); + } + + public static final int IS_METHOD_FIELD_NUMBER = 2; + private boolean isMethod_; + /** + *
+     * Whether this represents a class method.
+     * 
+ * + * bool is_method = 2; + * @return The isMethod. + */ + @java.lang.Override + public boolean getIsMethod() { + return isMethod_; + } + + public static final int INPUT_SIGNATURE_FIELD_NUMBER = 5; + private org.tensorflow.proto.Struct.StructuredValue inputSignature_; + /** + *
+     * The input signature, if specified.
+     * 
+ * + * .tensorflow.StructuredValue input_signature = 5; + * @return Whether the inputSignature field is set. + */ + @java.lang.Override + public boolean hasInputSignature() { + return inputSignature_ != null; + } + /** + *
+     * The input signature, if specified.
+     * 
+ * + * .tensorflow.StructuredValue input_signature = 5; + * @return The inputSignature. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.StructuredValue getInputSignature() { + return inputSignature_ == null ? org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance() : inputSignature_; + } + /** + *
+     * The input signature, if specified.
+     * 
+ * + * .tensorflow.StructuredValue input_signature = 5; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.StructuredValueOrBuilder getInputSignatureOrBuilder() { + return getInputSignature(); + } + + public static final int JIT_COMPILE_FIELD_NUMBER = 6; + private int jitCompile_; + /** + * .tensorflow.FunctionSpec.JitCompile jit_compile = 6; + * @return The enum numeric value on the wire for jitCompile. + */ + @java.lang.Override public int getJitCompileValue() { + return jitCompile_; + } + /** + * .tensorflow.FunctionSpec.JitCompile jit_compile = 6; + * @return The jitCompile. + */ + @java.lang.Override public org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.JitCompile getJitCompile() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.JitCompile result = org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.JitCompile.valueOf(jitCompile_); + return result == null ? org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.JitCompile.UNRECOGNIZED : result; + } + + 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 (fullargspec_ != null) { + output.writeMessage(1, getFullargspec()); + } + if (isMethod_ != false) { + output.writeBool(2, isMethod_); + } + if (inputSignature_ != null) { + output.writeMessage(5, getInputSignature()); + } + if (jitCompile_ != org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.JitCompile.DEFAULT.getNumber()) { + output.writeEnum(6, jitCompile_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (fullargspec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getFullargspec()); + } + if (isMethod_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, isMethod_); + } + if (inputSignature_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getInputSignature()); + } + if (jitCompile_ != org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.JitCompile.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, jitCompile_); + } + 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 org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec)) { + return super.equals(obj); + } + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec other = (org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec) obj; + + if (hasFullargspec() != other.hasFullargspec()) return false; + if (hasFullargspec()) { + if (!getFullargspec() + .equals(other.getFullargspec())) return false; + } + if (getIsMethod() + != other.getIsMethod()) return false; + if (hasInputSignature() != other.hasInputSignature()) return false; + if (hasInputSignature()) { + if (!getInputSignature() + .equals(other.getInputSignature())) return false; + } + if (jitCompile_ != other.jitCompile_) 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 (hasFullargspec()) { + hash = (37 * hash) + FULLARGSPEC_FIELD_NUMBER; + hash = (53 * hash) + getFullargspec().hashCode(); + } + hash = (37 * hash) + IS_METHOD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsMethod()); + if (hasInputSignature()) { + hash = (37 * hash) + INPUT_SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getInputSignature().hashCode(); + } + hash = (37 * hash) + JIT_COMPILE_FIELD_NUMBER; + hash = (53 * hash) + jitCompile_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec 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 org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec 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 org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec 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(org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec 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; + } + /** + *
+     * Represents `FunctionSpec` used in `Function`. This represents a
+     * function that has been wrapped as a TensorFlow `Function`.
+     * 
+ * + * Protobuf type {@code tensorflow.FunctionSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.FunctionSpec) + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_FunctionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_FunctionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.class, org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.Builder.class); + } + + // Construct using org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (fullargspecBuilder_ == null) { + fullargspec_ = null; + } else { + fullargspec_ = null; + fullargspecBuilder_ = null; + } + isMethod_ = false; + + if (inputSignatureBuilder_ == null) { + inputSignature_ = null; + } else { + inputSignature_ = null; + inputSignatureBuilder_ = null; + } + jitCompile_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_FunctionSpec_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec getDefaultInstanceForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec build() { + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec buildPartial() { + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec result = new org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec(this); + if (fullargspecBuilder_ == null) { + result.fullargspec_ = fullargspec_; + } else { + result.fullargspec_ = fullargspecBuilder_.build(); + } + result.isMethod_ = isMethod_; + if (inputSignatureBuilder_ == null) { + result.inputSignature_ = inputSignature_; + } else { + result.inputSignature_ = inputSignatureBuilder_.build(); + } + result.jitCompile_ = jitCompile_; + 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 org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec) { + return mergeFrom((org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec other) { + if (other == org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.getDefaultInstance()) return this; + if (other.hasFullargspec()) { + mergeFullargspec(other.getFullargspec()); + } + if (other.getIsMethod() != false) { + setIsMethod(other.getIsMethod()); + } + if (other.hasInputSignature()) { + mergeInputSignature(other.getInputSignature()); + } + if (other.jitCompile_ != 0) { + setJitCompileValue(other.getJitCompileValue()); + } + 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( + getFullargspecFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 16: { + isMethod_ = input.readBool(); + + break; + } // case 16 + case 42: { + input.readMessage( + getInputSignatureFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + case 48: { + jitCompile_ = input.readEnum(); + + break; + } // case 48 + 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 org.tensorflow.proto.Struct.StructuredValue fullargspec_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder> fullargspecBuilder_; + /** + *
+       * Full arg spec from inspect.getfullargspec().
+       * 
+ * + * .tensorflow.StructuredValue fullargspec = 1; + * @return Whether the fullargspec field is set. + */ + public boolean hasFullargspec() { + return fullargspecBuilder_ != null || fullargspec_ != null; + } + /** + *
+       * Full arg spec from inspect.getfullargspec().
+       * 
+ * + * .tensorflow.StructuredValue fullargspec = 1; + * @return The fullargspec. + */ + public org.tensorflow.proto.Struct.StructuredValue getFullargspec() { + if (fullargspecBuilder_ == null) { + return fullargspec_ == null ? org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance() : fullargspec_; + } else { + return fullargspecBuilder_.getMessage(); + } + } + /** + *
+       * Full arg spec from inspect.getfullargspec().
+       * 
+ * + * .tensorflow.StructuredValue fullargspec = 1; + */ + public Builder setFullargspec(org.tensorflow.proto.Struct.StructuredValue value) { + if (fullargspecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fullargspec_ = value; + onChanged(); + } else { + fullargspecBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Full arg spec from inspect.getfullargspec().
+       * 
+ * + * .tensorflow.StructuredValue fullargspec = 1; + */ + public Builder setFullargspec( + org.tensorflow.proto.Struct.StructuredValue.Builder builderForValue) { + if (fullargspecBuilder_ == null) { + fullargspec_ = builderForValue.build(); + onChanged(); + } else { + fullargspecBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Full arg spec from inspect.getfullargspec().
+       * 
+ * + * .tensorflow.StructuredValue fullargspec = 1; + */ + public Builder mergeFullargspec(org.tensorflow.proto.Struct.StructuredValue value) { + if (fullargspecBuilder_ == null) { + if (fullargspec_ != null) { + fullargspec_ = + org.tensorflow.proto.Struct.StructuredValue.newBuilder(fullargspec_).mergeFrom(value).buildPartial(); + } else { + fullargspec_ = value; + } + onChanged(); + } else { + fullargspecBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Full arg spec from inspect.getfullargspec().
+       * 
+ * + * .tensorflow.StructuredValue fullargspec = 1; + */ + public Builder clearFullargspec() { + if (fullargspecBuilder_ == null) { + fullargspec_ = null; + onChanged(); + } else { + fullargspec_ = null; + fullargspecBuilder_ = null; + } + + return this; + } + /** + *
+       * Full arg spec from inspect.getfullargspec().
+       * 
+ * + * .tensorflow.StructuredValue fullargspec = 1; + */ + public org.tensorflow.proto.Struct.StructuredValue.Builder getFullargspecBuilder() { + + onChanged(); + return getFullargspecFieldBuilder().getBuilder(); + } + /** + *
+       * Full arg spec from inspect.getfullargspec().
+       * 
+ * + * .tensorflow.StructuredValue fullargspec = 1; + */ + public org.tensorflow.proto.Struct.StructuredValueOrBuilder getFullargspecOrBuilder() { + if (fullargspecBuilder_ != null) { + return fullargspecBuilder_.getMessageOrBuilder(); + } else { + return fullargspec_ == null ? + org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance() : fullargspec_; + } + } + /** + *
+       * Full arg spec from inspect.getfullargspec().
+       * 
+ * + * .tensorflow.StructuredValue fullargspec = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder> + getFullargspecFieldBuilder() { + if (fullargspecBuilder_ == null) { + fullargspecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder>( + getFullargspec(), + getParentForChildren(), + isClean()); + fullargspec_ = null; + } + return fullargspecBuilder_; + } + + private boolean isMethod_ ; + /** + *
+       * Whether this represents a class method.
+       * 
+ * + * bool is_method = 2; + * @return The isMethod. + */ + @java.lang.Override + public boolean getIsMethod() { + return isMethod_; + } + /** + *
+       * Whether this represents a class method.
+       * 
+ * + * bool is_method = 2; + * @param value The isMethod to set. + * @return This builder for chaining. + */ + public Builder setIsMethod(boolean value) { + + isMethod_ = value; + onChanged(); + return this; + } + /** + *
+       * Whether this represents a class method.
+       * 
+ * + * bool is_method = 2; + * @return This builder for chaining. + */ + public Builder clearIsMethod() { + + isMethod_ = false; + onChanged(); + return this; + } + + private org.tensorflow.proto.Struct.StructuredValue inputSignature_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder> inputSignatureBuilder_; + /** + *
+       * The input signature, if specified.
+       * 
+ * + * .tensorflow.StructuredValue input_signature = 5; + * @return Whether the inputSignature field is set. + */ + public boolean hasInputSignature() { + return inputSignatureBuilder_ != null || inputSignature_ != null; + } + /** + *
+       * The input signature, if specified.
+       * 
+ * + * .tensorflow.StructuredValue input_signature = 5; + * @return The inputSignature. + */ + public org.tensorflow.proto.Struct.StructuredValue getInputSignature() { + if (inputSignatureBuilder_ == null) { + return inputSignature_ == null ? org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance() : inputSignature_; + } else { + return inputSignatureBuilder_.getMessage(); + } + } + /** + *
+       * The input signature, if specified.
+       * 
+ * + * .tensorflow.StructuredValue input_signature = 5; + */ + public Builder setInputSignature(org.tensorflow.proto.Struct.StructuredValue value) { + if (inputSignatureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputSignature_ = value; + onChanged(); + } else { + inputSignatureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The input signature, if specified.
+       * 
+ * + * .tensorflow.StructuredValue input_signature = 5; + */ + public Builder setInputSignature( + org.tensorflow.proto.Struct.StructuredValue.Builder builderForValue) { + if (inputSignatureBuilder_ == null) { + inputSignature_ = builderForValue.build(); + onChanged(); + } else { + inputSignatureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The input signature, if specified.
+       * 
+ * + * .tensorflow.StructuredValue input_signature = 5; + */ + public Builder mergeInputSignature(org.tensorflow.proto.Struct.StructuredValue value) { + if (inputSignatureBuilder_ == null) { + if (inputSignature_ != null) { + inputSignature_ = + org.tensorflow.proto.Struct.StructuredValue.newBuilder(inputSignature_).mergeFrom(value).buildPartial(); + } else { + inputSignature_ = value; + } + onChanged(); + } else { + inputSignatureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The input signature, if specified.
+       * 
+ * + * .tensorflow.StructuredValue input_signature = 5; + */ + public Builder clearInputSignature() { + if (inputSignatureBuilder_ == null) { + inputSignature_ = null; + onChanged(); + } else { + inputSignature_ = null; + inputSignatureBuilder_ = null; + } + + return this; + } + /** + *
+       * The input signature, if specified.
+       * 
+ * + * .tensorflow.StructuredValue input_signature = 5; + */ + public org.tensorflow.proto.Struct.StructuredValue.Builder getInputSignatureBuilder() { + + onChanged(); + return getInputSignatureFieldBuilder().getBuilder(); + } + /** + *
+       * The input signature, if specified.
+       * 
+ * + * .tensorflow.StructuredValue input_signature = 5; + */ + public org.tensorflow.proto.Struct.StructuredValueOrBuilder getInputSignatureOrBuilder() { + if (inputSignatureBuilder_ != null) { + return inputSignatureBuilder_.getMessageOrBuilder(); + } else { + return inputSignature_ == null ? + org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance() : inputSignature_; + } + } + /** + *
+       * The input signature, if specified.
+       * 
+ * + * .tensorflow.StructuredValue input_signature = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder> + getInputSignatureFieldBuilder() { + if (inputSignatureBuilder_ == null) { + inputSignatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder>( + getInputSignature(), + getParentForChildren(), + isClean()); + inputSignature_ = null; + } + return inputSignatureBuilder_; + } + + private int jitCompile_ = 0; + /** + * .tensorflow.FunctionSpec.JitCompile jit_compile = 6; + * @return The enum numeric value on the wire for jitCompile. + */ + @java.lang.Override public int getJitCompileValue() { + return jitCompile_; + } + /** + * .tensorflow.FunctionSpec.JitCompile jit_compile = 6; + * @param value The enum numeric value on the wire for jitCompile to set. + * @return This builder for chaining. + */ + public Builder setJitCompileValue(int value) { + + jitCompile_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.FunctionSpec.JitCompile jit_compile = 6; + * @return The jitCompile. + */ + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.JitCompile getJitCompile() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.JitCompile result = org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.JitCompile.valueOf(jitCompile_); + return result == null ? org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.JitCompile.UNRECOGNIZED : result; + } + /** + * .tensorflow.FunctionSpec.JitCompile jit_compile = 6; + * @param value The jitCompile to set. + * @return This builder for chaining. + */ + public Builder setJitCompile(org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec.JitCompile value) { + if (value == null) { + throw new NullPointerException(); + } + + jitCompile_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.FunctionSpec.JitCompile jit_compile = 6; + * @return This builder for chaining. + */ + public Builder clearJitCompile() { + + jitCompile_ = 0; + 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:tensorflow.FunctionSpec) + } + + // @@protoc_insertion_point(class_scope:tensorflow.FunctionSpec) + private static final org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec(); + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FunctionSpec 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 org.tensorflow.proto.SavedObjectGraphOuterClass.FunctionSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SavedResourceOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.SavedResource) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A device specification indicating a required placement for the resource
+     * creation function, e.g. "CPU". An empty string allows the user to select a
+     * device.
+     * 
+ * + * string device = 1; + * @return The device. + */ + java.lang.String getDevice(); + /** + *
+     * A device specification indicating a required placement for the resource
+     * creation function, e.g. "CPU". An empty string allows the user to select a
+     * device.
+     * 
+ * + * string device = 1; + * @return The bytes for device. + */ + com.google.protobuf.ByteString + getDeviceBytes(); + } + /** + *
+   * A SavedResource represents a TF object that holds state during its lifetime.
+   * An object of this type can have a reference to a:
+   * create_resource() and an initialize() function.
+   * 
+ * + * Protobuf type {@code tensorflow.SavedResource} + */ + public static final class SavedResource extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SavedResource) + SavedResourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use SavedResource.newBuilder() to construct. + private SavedResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SavedResource() { + device_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SavedResource(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource.class, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource.Builder.class); + } + + public static final int DEVICE_FIELD_NUMBER = 1; + private volatile java.lang.Object device_; + /** + *
+     * A device specification indicating a required placement for the resource
+     * creation function, e.g. "CPU". An empty string allows the user to select a
+     * device.
+     * 
+ * + * string device = 1; + * @return The device. + */ + @java.lang.Override + public java.lang.String getDevice() { + java.lang.Object ref = device_; + 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(); + device_ = s; + return s; + } + } + /** + *
+     * A device specification indicating a required placement for the resource
+     * creation function, e.g. "CPU". An empty string allows the user to select a
+     * device.
+     * 
+ * + * string device = 1; + * @return The bytes for device. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDeviceBytes() { + java.lang.Object ref = device_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + device_ = 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(device_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, device_); + } + 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(device_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, device_); + } + 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource)) { + return super.equals(obj); + } + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource other = (org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource) obj; + + if (!getDevice() + .equals(other.getDevice())) 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) + DEVICE_FIELD_NUMBER; + hash = (53 * hash) + getDevice().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource 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(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource 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; + } + /** + *
+     * A SavedResource represents a TF object that holds state during its lifetime.
+     * An object of this type can have a reference to a:
+     * create_resource() and an initialize() function.
+     * 
+ * + * Protobuf type {@code tensorflow.SavedResource} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SavedResource) + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource.class, org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource.Builder.class); + } + + // Construct using org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + device_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SavedResource_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource getDefaultInstanceForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource build() { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource buildPartial() { + org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource result = new org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource(this); + result.device_ = device_; + 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource) { + return mergeFrom((org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource other) { + if (other == org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource.getDefaultInstance()) return this; + if (!other.getDevice().isEmpty()) { + device_ = other.device_; + 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: { + device_ = input.readStringRequireUtf8(); + + 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 java.lang.Object device_ = ""; + /** + *
+       * A device specification indicating a required placement for the resource
+       * creation function, e.g. "CPU". An empty string allows the user to select a
+       * device.
+       * 
+ * + * string device = 1; + * @return The device. + */ + public java.lang.String getDevice() { + java.lang.Object ref = device_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + device_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A device specification indicating a required placement for the resource
+       * creation function, e.g. "CPU". An empty string allows the user to select a
+       * device.
+       * 
+ * + * string device = 1; + * @return The bytes for device. + */ + public com.google.protobuf.ByteString + getDeviceBytes() { + java.lang.Object ref = device_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + device_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A device specification indicating a required placement for the resource
+       * creation function, e.g. "CPU". An empty string allows the user to select a
+       * device.
+       * 
+ * + * string device = 1; + * @param value The device to set. + * @return This builder for chaining. + */ + public Builder setDevice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + device_ = value; + onChanged(); + return this; + } + /** + *
+       * A device specification indicating a required placement for the resource
+       * creation function, e.g. "CPU". An empty string allows the user to select a
+       * device.
+       * 
+ * + * string device = 1; + * @return This builder for chaining. + */ + public Builder clearDevice() { + + device_ = getDefaultInstance().getDevice(); + onChanged(); + return this; + } + /** + *
+       * A device specification indicating a required placement for the resource
+       * creation function, e.g. "CPU". An empty string allows the user to select a
+       * device.
+       * 
+ * + * string device = 1; + * @param value The bytes for device to set. + * @return This builder for chaining. + */ + public Builder setDeviceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + device_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.SavedResource) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SavedResource) + private static final org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource(); + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SavedResource 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SavedResource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SaveableObjectOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.SaveableObject) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Node ids of concrete functions for saving and loading from a checkpoint.
+     * These functions save and restore directly from tensors.
+     * 
+ * + * int32 save_function = 2; + * @return The saveFunction. + */ + int getSaveFunction(); + + /** + * int32 restore_function = 3; + * @return The restoreFunction. + */ + int getRestoreFunction(); + } + /** + * Protobuf type {@code tensorflow.SaveableObject} + */ + public static final class SaveableObject extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SaveableObject) + SaveableObjectOrBuilder { + private static final long serialVersionUID = 0L; + // Use SaveableObject.newBuilder() to construct. + private SaveableObject(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SaveableObject() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SaveableObject(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SaveableObject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SaveableObject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject.class, org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject.Builder.class); + } + + public static final int SAVE_FUNCTION_FIELD_NUMBER = 2; + private int saveFunction_; + /** + *
+     * Node ids of concrete functions for saving and loading from a checkpoint.
+     * These functions save and restore directly from tensors.
+     * 
+ * + * int32 save_function = 2; + * @return The saveFunction. + */ + @java.lang.Override + public int getSaveFunction() { + return saveFunction_; + } + + public static final int RESTORE_FUNCTION_FIELD_NUMBER = 3; + private int restoreFunction_; + /** + * int32 restore_function = 3; + * @return The restoreFunction. + */ + @java.lang.Override + public int getRestoreFunction() { + return restoreFunction_; + } + + 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 (saveFunction_ != 0) { + output.writeInt32(2, saveFunction_); + } + if (restoreFunction_ != 0) { + output.writeInt32(3, restoreFunction_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (saveFunction_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, saveFunction_); + } + if (restoreFunction_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, restoreFunction_); + } + 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject)) { + return super.equals(obj); + } + org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject other = (org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject) obj; + + if (getSaveFunction() + != other.getSaveFunction()) return false; + if (getRestoreFunction() + != other.getRestoreFunction()) 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) + SAVE_FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getSaveFunction(); + hash = (37 * hash) + RESTORE_FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getRestoreFunction(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject 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(org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.SaveableObject} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SaveableObject) + org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObjectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SaveableObject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SaveableObject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject.class, org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject.Builder.class); + } + + // Construct using org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + saveFunction_ = 0; + + restoreFunction_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.internal_static_tensorflow_SaveableObject_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject getDefaultInstanceForType() { + return org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject build() { + org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject buildPartial() { + org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject result = new org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject(this); + result.saveFunction_ = saveFunction_; + result.restoreFunction_ = restoreFunction_; + 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject) { + return mergeFrom((org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject other) { + if (other == org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject.getDefaultInstance()) return this; + if (other.getSaveFunction() != 0) { + setSaveFunction(other.getSaveFunction()); + } + if (other.getRestoreFunction() != 0) { + setRestoreFunction(other.getRestoreFunction()); + } + 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 16: { + saveFunction_ = input.readInt32(); + + break; + } // case 16 + case 24: { + restoreFunction_ = input.readInt32(); + + break; + } // case 24 + 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 saveFunction_ ; + /** + *
+       * Node ids of concrete functions for saving and loading from a checkpoint.
+       * These functions save and restore directly from tensors.
+       * 
+ * + * int32 save_function = 2; + * @return The saveFunction. + */ + @java.lang.Override + public int getSaveFunction() { + return saveFunction_; + } + /** + *
+       * Node ids of concrete functions for saving and loading from a checkpoint.
+       * These functions save and restore directly from tensors.
+       * 
+ * + * int32 save_function = 2; + * @param value The saveFunction to set. + * @return This builder for chaining. + */ + public Builder setSaveFunction(int value) { + + saveFunction_ = value; + onChanged(); + return this; + } + /** + *
+       * Node ids of concrete functions for saving and loading from a checkpoint.
+       * These functions save and restore directly from tensors.
+       * 
+ * + * int32 save_function = 2; + * @return This builder for chaining. + */ + public Builder clearSaveFunction() { + + saveFunction_ = 0; + onChanged(); + return this; + } + + private int restoreFunction_ ; + /** + * int32 restore_function = 3; + * @return The restoreFunction. + */ + @java.lang.Override + public int getRestoreFunction() { + return restoreFunction_; + } + /** + * int32 restore_function = 3; + * @param value The restoreFunction to set. + * @return This builder for chaining. + */ + public Builder setRestoreFunction(int value) { + + restoreFunction_ = value; + onChanged(); + return this; + } + /** + * int32 restore_function = 3; + * @return This builder for chaining. + */ + public Builder clearRestoreFunction() { + + restoreFunction_ = 0; + 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:tensorflow.SaveableObject) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SaveableObject) + private static final org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject(); + } + + public static org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SaveableObject 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 org.tensorflow.proto.SavedObjectGraphOuterClass.SaveableObject getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_SavedObjectGraph_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_SavedObjectGraph_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_SavedObjectGraph_ConcreteFunctionsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_SavedObjectGraph_ConcreteFunctionsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_SavedObject_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_SavedObject_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_SavedObject_SaveableObjectsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_SavedObject_SaveableObjectsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_SavedUserObject_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_SavedUserObject_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_SavedAsset_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_SavedAsset_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_SavedFunction_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_SavedFunction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_CapturedTensor_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_CapturedTensor_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_SavedConcreteFunction_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_SavedConcreteFunction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_SavedBareConcreteFunction_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_SavedBareConcreteFunction_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_SavedConstant_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_SavedConstant_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_SavedVariable_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_SavedVariable_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_FunctionSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_FunctionSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_SavedResource_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_SavedResource_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_SaveableObject_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_SaveableObject_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1tensorflow/core/protobuf/saved_object_" + + "graph.proto\022\ntensorflow\032\031google/protobuf" + + "/any.proto\032,tensorflow/core/framework/te" + + "nsor_shape.proto\032%tensorflow/core/framew" + + "ork/types.proto\032(tensorflow/core/framewo" + + "rk/variable.proto\032(tensorflow/core/frame" + + "work/versions.proto\032%tensorflow/core/pro" + + "tobuf/struct.proto\0325tensorflow/core/prot" + + "obuf/trackable_object_graph.proto\"\350\001\n\020Sa" + + "vedObjectGraph\022&\n\005nodes\030\001 \003(\0132\027.tensorfl" + + "ow.SavedObject\022O\n\022concrete_functions\030\002 \003" + + "(\01323.tensorflow.SavedObjectGraph.Concret" + + "eFunctionsEntry\032[\n\026ConcreteFunctionsEntr" + + "y\022\013\n\003key\030\001 \001(\t\0220\n\005value\030\002 \001(\0132!.tensorfl" + + "ow.SavedConcreteFunction:\0028\001\"\320\007\n\013SavedOb" + + "ject\022R\n\010children\030\001 \003(\0132@.tensorflow.Trac" + + "kableObjectGraph.TrackableObject.ObjectR" + + "eference\022V\n\014dependencies\030\017 \003(\0132@.tensorf" + + "low.TrackableObjectGraph.TrackableObject" + + ".ObjectReference\022^\n\016slot_variables\030\003 \003(\013" + + "2F.tensorflow.TrackableObjectGraph.Track" + + "ableObject.SlotVariableReference\0222\n\013user" + + "_object\030\004 \001(\0132\033.tensorflow.SavedUserObje" + + "ctH\000\022\'\n\005asset\030\005 \001(\0132\026.tensorflow.SavedAs" + + "setH\000\022-\n\010function\030\006 \001(\0132\031.tensorflow.Sav" + + "edFunctionH\000\022-\n\010variable\030\007 \001(\0132\031.tensorf" + + "low.SavedVariableH\000\022G\n\026bare_concrete_fun" + + "ction\030\010 \001(\0132%.tensorflow.SavedBareConcre" + + "teFunctionH\000\022-\n\010constant\030\t \001(\0132\031.tensorf" + + "low.SavedConstantH\000\022-\n\010resource\030\n \001(\0132\031." + + "tensorflow.SavedResourceH\000\0225\n\017captured_t" + + "ensor\030\014 \001(\0132\032.tensorflow.CapturedTensorH" + + "\000\022F\n\020saveable_objects\030\013 \003(\0132,.tensorflow" + + ".SavedObject.SaveableObjectsEntry\022\027\n\017reg" + + "istered_name\030\r \001(\t\0223\n\025serialized_user_pr" + + "oto\030\016 \001(\0132\024.google.protobuf.Any\022\030\n\020regis" + + "tered_saver\030\020 \001(\t\032R\n\024SaveableObjectsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.tensorfl" + + "ow.SaveableObject:\0028\001B\006\n\004kindJ\004\010\002\020\003R\natt" + + "ributes\"d\n\017SavedUserObject\022\022\n\nidentifier" + + "\030\001 \001(\t\022\'\n\007version\030\002 \001(\0132\026.tensorflow.Ver" + + "sionDef\022\024\n\010metadata\030\003 \001(\tB\002\030\001\"*\n\nSavedAs" + + "set\022\034\n\024asset_file_def_index\030\001 \001(\005\"\\\n\rSav" + + "edFunction\022\032\n\022concrete_functions\030\001 \003(\t\022/" + + "\n\rfunction_spec\030\002 \001(\0132\030.tensorflow.Funct" + + "ionSpec\"9\n\016CapturedTensor\022\014\n\004name\030\001 \001(\t\022" + + "\031\n\021concrete_function\030\002 \001(\t\"\250\001\n\025SavedConc" + + "reteFunction\022\024\n\014bound_inputs\030\002 \003(\005\022B\n\035ca" + + "nonicalized_input_signature\030\003 \001(\0132\033.tens" + + "orflow.StructuredValue\0225\n\020output_signatu" + + "re\030\004 \001(\0132\033.tensorflow.StructuredValue\"\255\001" + + "\n\031SavedBareConcreteFunction\022\036\n\026concrete_" + + "function_name\030\001 \001(\t\022\031\n\021argument_keywords" + + "\030\002 \003(\t\022$\n\034allowed_positional_arguments\030\003" + + " \001(\003\022/\n\rfunction_spec\030\004 \001(\0132\030.tensorflow" + + ".FunctionSpec\"\"\n\rSavedConstant\022\021\n\toperat" + + "ion\030\001 \001(\t\"\327\002\n\rSavedVariable\022#\n\005dtype\030\001 \001" + + "(\0162\024.tensorflow.DataType\022+\n\005shape\030\002 \001(\0132" + + "\034.tensorflow.TensorShapeProto\022\021\n\ttrainab" + + "le\030\003 \001(\010\022<\n\017synchronization\030\004 \001(\0162#.tens" + + "orflow.VariableSynchronization\0224\n\013aggreg" + + "ation\030\005 \001(\0162\037.tensorflow.VariableAggrega" + + "tion\022\014\n\004name\030\006 \001(\t\022\016\n\006device\030\007 \001(\t\022O\n,ex" + + "perimental_distributed_variable_componen" + + "ts\030\010 \003(\0132\031.tensorflow.SavedVariable\"\373\001\n\014" + + "FunctionSpec\0220\n\013fullargspec\030\001 \001(\0132\033.tens" + + "orflow.StructuredValue\022\021\n\tis_method\030\002 \001(" + + "\010\0224\n\017input_signature\030\005 \001(\0132\033.tensorflow." + + "StructuredValue\0228\n\013jit_compile\030\006 \001(\0162#.t" + + "ensorflow.FunctionSpec.JitCompile\"*\n\nJit" + + "Compile\022\013\n\007DEFAULT\020\000\022\006\n\002ON\020\001\022\007\n\003OFF\020\002J\004\010" + + "\003\020\004J\004\010\004\020\005\"\037\n\rSavedResource\022\016\n\006device\030\001 \001" + + "(\t\"A\n\016SaveableObject\022\025\n\rsave_function\030\002 " + + "\001(\005\022\030\n\020restore_function\030\003 \001(\005Bp\n\024org.ten" + + "sorflow.protoZUgithub.com/tensorflow/ten" + + "sorflow/tensorflow/go/core/protobuf/for_" + + "core_protos_go_proto\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.AnyProto.getDescriptor(), + org.tensorflow.proto.TensorShapeProtos.getDescriptor(), + org.tensorflow.proto.TypesProtos.getDescriptor(), + org.tensorflow.proto.VariableProtos.getDescriptor(), + org.tensorflow.proto.VersionsProtos.getDescriptor(), + org.tensorflow.proto.Struct.getDescriptor(), + org.tensorflow.proto.TrackableObjectGraphOuterClass.getDescriptor(), + }); + internal_static_tensorflow_SavedObjectGraph_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_SavedObjectGraph_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_SavedObjectGraph_descriptor, + new java.lang.String[] { "Nodes", "ConcreteFunctions", }); + internal_static_tensorflow_SavedObjectGraph_ConcreteFunctionsEntry_descriptor = + internal_static_tensorflow_SavedObjectGraph_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_SavedObjectGraph_ConcreteFunctionsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_SavedObjectGraph_ConcreteFunctionsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_tensorflow_SavedObject_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_tensorflow_SavedObject_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_SavedObject_descriptor, + new java.lang.String[] { "Children", "Dependencies", "SlotVariables", "UserObject", "Asset", "Function", "Variable", "BareConcreteFunction", "Constant", "Resource", "CapturedTensor", "SaveableObjects", "RegisteredName", "SerializedUserProto", "RegisteredSaver", "Kind", }); + internal_static_tensorflow_SavedObject_SaveableObjectsEntry_descriptor = + internal_static_tensorflow_SavedObject_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_SavedObject_SaveableObjectsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_SavedObject_SaveableObjectsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_tensorflow_SavedUserObject_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_tensorflow_SavedUserObject_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_SavedUserObject_descriptor, + new java.lang.String[] { "Identifier", "Version", "Metadata", }); + internal_static_tensorflow_SavedAsset_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_tensorflow_SavedAsset_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_SavedAsset_descriptor, + new java.lang.String[] { "AssetFileDefIndex", }); + internal_static_tensorflow_SavedFunction_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_tensorflow_SavedFunction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_SavedFunction_descriptor, + new java.lang.String[] { "ConcreteFunctions", "FunctionSpec", }); + internal_static_tensorflow_CapturedTensor_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_tensorflow_CapturedTensor_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_CapturedTensor_descriptor, + new java.lang.String[] { "Name", "ConcreteFunction", }); + internal_static_tensorflow_SavedConcreteFunction_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_tensorflow_SavedConcreteFunction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_SavedConcreteFunction_descriptor, + new java.lang.String[] { "BoundInputs", "CanonicalizedInputSignature", "OutputSignature", }); + internal_static_tensorflow_SavedBareConcreteFunction_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_tensorflow_SavedBareConcreteFunction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_SavedBareConcreteFunction_descriptor, + new java.lang.String[] { "ConcreteFunctionName", "ArgumentKeywords", "AllowedPositionalArguments", "FunctionSpec", }); + internal_static_tensorflow_SavedConstant_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_tensorflow_SavedConstant_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_SavedConstant_descriptor, + new java.lang.String[] { "Operation", }); + internal_static_tensorflow_SavedVariable_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_tensorflow_SavedVariable_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_SavedVariable_descriptor, + new java.lang.String[] { "Dtype", "Shape", "Trainable", "Synchronization", "Aggregation", "Name", "Device", "ExperimentalDistributedVariableComponents", }); + internal_static_tensorflow_FunctionSpec_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_tensorflow_FunctionSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_FunctionSpec_descriptor, + new java.lang.String[] { "Fullargspec", "IsMethod", "InputSignature", "JitCompile", }); + internal_static_tensorflow_SavedResource_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_tensorflow_SavedResource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_SavedResource_descriptor, + new java.lang.String[] { "Device", }); + internal_static_tensorflow_SaveableObject_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_tensorflow_SaveableObject_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_SaveableObject_descriptor, + new java.lang.String[] { "SaveFunction", "RestoreFunction", }); + com.google.protobuf.AnyProto.getDescriptor(); + org.tensorflow.proto.TensorShapeProtos.getDescriptor(); + org.tensorflow.proto.TypesProtos.getDescriptor(); + org.tensorflow.proto.VariableProtos.getDescriptor(); + org.tensorflow.proto.VersionsProtos.getDescriptor(); + org.tensorflow.proto.Struct.getDescriptor(); + org.tensorflow.proto.TrackableObjectGraphOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedSlice.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedSlice.java new file mode 100644 index 00000000000..3f346f5187d --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedSlice.java @@ -0,0 +1,1067 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/util/saved_tensor_slice.proto + +package org.tensorflow.proto; + +/** + *
+ * Saved tensor slice: it stores the name of the tensors, the slice, and the
+ * raw data.
+ * 
+ * + * Protobuf type {@code tensorflow.SavedSlice} + */ +public final class SavedSlice extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SavedSlice) + SavedSliceOrBuilder { +private static final long serialVersionUID = 0L; + // Use SavedSlice.newBuilder() to construct. + private SavedSlice(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SavedSlice() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SavedSlice(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedTensorSliceProtos.internal_static_tensorflow_SavedSlice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedTensorSliceProtos.internal_static_tensorflow_SavedSlice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedSlice.class, org.tensorflow.proto.SavedSlice.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Name of the tensor that this slice belongs to. This must be identical to
+   * the name used to encode the key for this record.
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+   * Name of the tensor that this slice belongs to. This must be identical to
+   * the name used to encode the key for this record.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SLICE_FIELD_NUMBER = 2; + private org.tensorflow.proto.TensorSliceProto slice_; + /** + *
+   * Extent of the slice.  Must have one entry for each of the dimension of the
+   * tensor that this slice belongs to.
+   * 
+ * + * .tensorflow.TensorSliceProto slice = 2; + * @return Whether the slice field is set. + */ + @java.lang.Override + public boolean hasSlice() { + return slice_ != null; + } + /** + *
+   * Extent of the slice.  Must have one entry for each of the dimension of the
+   * tensor that this slice belongs to.
+   * 
+ * + * .tensorflow.TensorSliceProto slice = 2; + * @return The slice. + */ + @java.lang.Override + public org.tensorflow.proto.TensorSliceProto getSlice() { + return slice_ == null ? org.tensorflow.proto.TensorSliceProto.getDefaultInstance() : slice_; + } + /** + *
+   * Extent of the slice.  Must have one entry for each of the dimension of the
+   * tensor that this slice belongs to.
+   * 
+ * + * .tensorflow.TensorSliceProto slice = 2; + */ + @java.lang.Override + public org.tensorflow.proto.TensorSliceProtoOrBuilder getSliceOrBuilder() { + return getSlice(); + } + + public static final int DATA_FIELD_NUMBER = 3; + private org.tensorflow.proto.TensorProto data_; + /** + *
+   * The raw data of the slice is stored as a TensorProto. Only raw data are
+   * stored (we don't fill in fields such as dtype or tensor_shape).
+   * 
+ * + * .tensorflow.TensorProto data = 3; + * @return Whether the data field is set. + */ + @java.lang.Override + public boolean hasData() { + return data_ != null; + } + /** + *
+   * The raw data of the slice is stored as a TensorProto. Only raw data are
+   * stored (we don't fill in fields such as dtype or tensor_shape).
+   * 
+ * + * .tensorflow.TensorProto data = 3; + * @return The data. + */ + @java.lang.Override + public org.tensorflow.proto.TensorProto getData() { + return data_ == null ? org.tensorflow.proto.TensorProto.getDefaultInstance() : data_; + } + /** + *
+   * The raw data of the slice is stored as a TensorProto. Only raw data are
+   * stored (we don't fill in fields such as dtype or tensor_shape).
+   * 
+ * + * .tensorflow.TensorProto data = 3; + */ + @java.lang.Override + public org.tensorflow.proto.TensorProtoOrBuilder getDataOrBuilder() { + return getData(); + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (slice_ != null) { + output.writeMessage(2, getSlice()); + } + if (data_ != null) { + output.writeMessage(3, getData()); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (slice_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSlice()); + } + if (data_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getData()); + } + 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 org.tensorflow.proto.SavedSlice)) { + return super.equals(obj); + } + org.tensorflow.proto.SavedSlice other = (org.tensorflow.proto.SavedSlice) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasSlice() != other.hasSlice()) return false; + if (hasSlice()) { + if (!getSlice() + .equals(other.getSlice())) return false; + } + if (hasData() != other.hasData()) return false; + if (hasData()) { + if (!getData() + .equals(other.getData())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasSlice()) { + hash = (37 * hash) + SLICE_FIELD_NUMBER; + hash = (53 * hash) + getSlice().hashCode(); + } + if (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SavedSlice parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedSlice parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedSlice parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedSlice parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedSlice parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedSlice parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedSlice parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedSlice 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 org.tensorflow.proto.SavedSlice parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedSlice 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 org.tensorflow.proto.SavedSlice parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedSlice 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(org.tensorflow.proto.SavedSlice 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; + } + /** + *
+   * Saved tensor slice: it stores the name of the tensors, the slice, and the
+   * raw data.
+   * 
+ * + * Protobuf type {@code tensorflow.SavedSlice} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SavedSlice) + org.tensorflow.proto.SavedSliceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedTensorSliceProtos.internal_static_tensorflow_SavedSlice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedTensorSliceProtos.internal_static_tensorflow_SavedSlice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedSlice.class, org.tensorflow.proto.SavedSlice.Builder.class); + } + + // Construct using org.tensorflow.proto.SavedSlice.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (sliceBuilder_ == null) { + slice_ = null; + } else { + slice_ = null; + sliceBuilder_ = null; + } + if (dataBuilder_ == null) { + data_ = null; + } else { + data_ = null; + dataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.SavedTensorSliceProtos.internal_static_tensorflow_SavedSlice_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SavedSlice getDefaultInstanceForType() { + return org.tensorflow.proto.SavedSlice.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SavedSlice build() { + org.tensorflow.proto.SavedSlice result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SavedSlice buildPartial() { + org.tensorflow.proto.SavedSlice result = new org.tensorflow.proto.SavedSlice(this); + result.name_ = name_; + if (sliceBuilder_ == null) { + result.slice_ = slice_; + } else { + result.slice_ = sliceBuilder_.build(); + } + if (dataBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = dataBuilder_.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 org.tensorflow.proto.SavedSlice) { + return mergeFrom((org.tensorflow.proto.SavedSlice)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SavedSlice other) { + if (other == org.tensorflow.proto.SavedSlice.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasSlice()) { + mergeSlice(other.getSlice()); + } + if (other.hasData()) { + mergeData(other.getData()); + } + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getSliceFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getDataFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + 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 java.lang.Object name_ = ""; + /** + *
+     * Name of the tensor that this slice belongs to. This must be identical to
+     * the name used to encode the key for this record.
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Name of the tensor that this slice belongs to. This must be identical to
+     * the name used to encode the key for this record.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Name of the tensor that this slice belongs to. This must be identical to
+     * the name used to encode the key for this record.
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Name of the tensor that this slice belongs to. This must be identical to
+     * the name used to encode the key for this record.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Name of the tensor that this slice belongs to. This must be identical to
+     * the name used to encode the key for this record.
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private org.tensorflow.proto.TensorSliceProto slice_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorSliceProto, org.tensorflow.proto.TensorSliceProto.Builder, org.tensorflow.proto.TensorSliceProtoOrBuilder> sliceBuilder_; + /** + *
+     * Extent of the slice.  Must have one entry for each of the dimension of the
+     * tensor that this slice belongs to.
+     * 
+ * + * .tensorflow.TensorSliceProto slice = 2; + * @return Whether the slice field is set. + */ + public boolean hasSlice() { + return sliceBuilder_ != null || slice_ != null; + } + /** + *
+     * Extent of the slice.  Must have one entry for each of the dimension of the
+     * tensor that this slice belongs to.
+     * 
+ * + * .tensorflow.TensorSliceProto slice = 2; + * @return The slice. + */ + public org.tensorflow.proto.TensorSliceProto getSlice() { + if (sliceBuilder_ == null) { + return slice_ == null ? org.tensorflow.proto.TensorSliceProto.getDefaultInstance() : slice_; + } else { + return sliceBuilder_.getMessage(); + } + } + /** + *
+     * Extent of the slice.  Must have one entry for each of the dimension of the
+     * tensor that this slice belongs to.
+     * 
+ * + * .tensorflow.TensorSliceProto slice = 2; + */ + public Builder setSlice(org.tensorflow.proto.TensorSliceProto value) { + if (sliceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + slice_ = value; + onChanged(); + } else { + sliceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Extent of the slice.  Must have one entry for each of the dimension of the
+     * tensor that this slice belongs to.
+     * 
+ * + * .tensorflow.TensorSliceProto slice = 2; + */ + public Builder setSlice( + org.tensorflow.proto.TensorSliceProto.Builder builderForValue) { + if (sliceBuilder_ == null) { + slice_ = builderForValue.build(); + onChanged(); + } else { + sliceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Extent of the slice.  Must have one entry for each of the dimension of the
+     * tensor that this slice belongs to.
+     * 
+ * + * .tensorflow.TensorSliceProto slice = 2; + */ + public Builder mergeSlice(org.tensorflow.proto.TensorSliceProto value) { + if (sliceBuilder_ == null) { + if (slice_ != null) { + slice_ = + org.tensorflow.proto.TensorSliceProto.newBuilder(slice_).mergeFrom(value).buildPartial(); + } else { + slice_ = value; + } + onChanged(); + } else { + sliceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Extent of the slice.  Must have one entry for each of the dimension of the
+     * tensor that this slice belongs to.
+     * 
+ * + * .tensorflow.TensorSliceProto slice = 2; + */ + public Builder clearSlice() { + if (sliceBuilder_ == null) { + slice_ = null; + onChanged(); + } else { + slice_ = null; + sliceBuilder_ = null; + } + + return this; + } + /** + *
+     * Extent of the slice.  Must have one entry for each of the dimension of the
+     * tensor that this slice belongs to.
+     * 
+ * + * .tensorflow.TensorSliceProto slice = 2; + */ + public org.tensorflow.proto.TensorSliceProto.Builder getSliceBuilder() { + + onChanged(); + return getSliceFieldBuilder().getBuilder(); + } + /** + *
+     * Extent of the slice.  Must have one entry for each of the dimension of the
+     * tensor that this slice belongs to.
+     * 
+ * + * .tensorflow.TensorSliceProto slice = 2; + */ + public org.tensorflow.proto.TensorSliceProtoOrBuilder getSliceOrBuilder() { + if (sliceBuilder_ != null) { + return sliceBuilder_.getMessageOrBuilder(); + } else { + return slice_ == null ? + org.tensorflow.proto.TensorSliceProto.getDefaultInstance() : slice_; + } + } + /** + *
+     * Extent of the slice.  Must have one entry for each of the dimension of the
+     * tensor that this slice belongs to.
+     * 
+ * + * .tensorflow.TensorSliceProto slice = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorSliceProto, org.tensorflow.proto.TensorSliceProto.Builder, org.tensorflow.proto.TensorSliceProtoOrBuilder> + getSliceFieldBuilder() { + if (sliceBuilder_ == null) { + sliceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorSliceProto, org.tensorflow.proto.TensorSliceProto.Builder, org.tensorflow.proto.TensorSliceProtoOrBuilder>( + getSlice(), + getParentForChildren(), + isClean()); + slice_ = null; + } + return sliceBuilder_; + } + + private org.tensorflow.proto.TensorProto data_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> dataBuilder_; + /** + *
+     * The raw data of the slice is stored as a TensorProto. Only raw data are
+     * stored (we don't fill in fields such as dtype or tensor_shape).
+     * 
+ * + * .tensorflow.TensorProto data = 3; + * @return Whether the data field is set. + */ + public boolean hasData() { + return dataBuilder_ != null || data_ != null; + } + /** + *
+     * The raw data of the slice is stored as a TensorProto. Only raw data are
+     * stored (we don't fill in fields such as dtype or tensor_shape).
+     * 
+ * + * .tensorflow.TensorProto data = 3; + * @return The data. + */ + public org.tensorflow.proto.TensorProto getData() { + if (dataBuilder_ == null) { + return data_ == null ? org.tensorflow.proto.TensorProto.getDefaultInstance() : data_; + } else { + return dataBuilder_.getMessage(); + } + } + /** + *
+     * The raw data of the slice is stored as a TensorProto. Only raw data are
+     * stored (we don't fill in fields such as dtype or tensor_shape).
+     * 
+ * + * .tensorflow.TensorProto data = 3; + */ + public Builder setData(org.tensorflow.proto.TensorProto value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + dataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The raw data of the slice is stored as a TensorProto. Only raw data are
+     * stored (we don't fill in fields such as dtype or tensor_shape).
+     * 
+ * + * .tensorflow.TensorProto data = 3; + */ + public Builder setData( + org.tensorflow.proto.TensorProto.Builder builderForValue) { + if (dataBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + dataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The raw data of the slice is stored as a TensorProto. Only raw data are
+     * stored (we don't fill in fields such as dtype or tensor_shape).
+     * 
+ * + * .tensorflow.TensorProto data = 3; + */ + public Builder mergeData(org.tensorflow.proto.TensorProto value) { + if (dataBuilder_ == null) { + if (data_ != null) { + data_ = + org.tensorflow.proto.TensorProto.newBuilder(data_).mergeFrom(value).buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + dataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The raw data of the slice is stored as a TensorProto. Only raw data are
+     * stored (we don't fill in fields such as dtype or tensor_shape).
+     * 
+ * + * .tensorflow.TensorProto data = 3; + */ + public Builder clearData() { + if (dataBuilder_ == null) { + data_ = null; + onChanged(); + } else { + data_ = null; + dataBuilder_ = null; + } + + return this; + } + /** + *
+     * The raw data of the slice is stored as a TensorProto. Only raw data are
+     * stored (we don't fill in fields such as dtype or tensor_shape).
+     * 
+ * + * .tensorflow.TensorProto data = 3; + */ + public org.tensorflow.proto.TensorProto.Builder getDataBuilder() { + + onChanged(); + return getDataFieldBuilder().getBuilder(); + } + /** + *
+     * The raw data of the slice is stored as a TensorProto. Only raw data are
+     * stored (we don't fill in fields such as dtype or tensor_shape).
+     * 
+ * + * .tensorflow.TensorProto data = 3; + */ + public org.tensorflow.proto.TensorProtoOrBuilder getDataOrBuilder() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilder(); + } else { + return data_ == null ? + org.tensorflow.proto.TensorProto.getDefaultInstance() : data_; + } + } + /** + *
+     * The raw data of the slice is stored as a TensorProto. Only raw data are
+     * stored (we don't fill in fields such as dtype or tensor_shape).
+     * 
+ * + * .tensorflow.TensorProto data = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder>( + getData(), + getParentForChildren(), + isClean()); + data_ = null; + } + return dataBuilder_; + } + @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:tensorflow.SavedSlice) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SavedSlice) + private static final org.tensorflow.proto.SavedSlice DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SavedSlice(); + } + + public static org.tensorflow.proto.SavedSlice getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SavedSlice 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 org.tensorflow.proto.SavedSlice getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedSliceMeta.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedSliceMeta.java new file mode 100644 index 00000000000..11f292d63b5 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedSliceMeta.java @@ -0,0 +1,1372 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/util/saved_tensor_slice.proto + +package org.tensorflow.proto; + +/** + *
+ * Metadata describing the set of slices of the same tensor saved in a
+ * checkpoint file.
+ * 
+ * + * Protobuf type {@code tensorflow.SavedSliceMeta} + */ +public final class SavedSliceMeta extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SavedSliceMeta) + SavedSliceMetaOrBuilder { +private static final long serialVersionUID = 0L; + // Use SavedSliceMeta.newBuilder() to construct. + private SavedSliceMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SavedSliceMeta() { + name_ = ""; + type_ = 0; + slice_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SavedSliceMeta(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedTensorSliceProtos.internal_static_tensorflow_SavedSliceMeta_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedTensorSliceProtos.internal_static_tensorflow_SavedSliceMeta_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedSliceMeta.class, org.tensorflow.proto.SavedSliceMeta.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Name of the tensor.
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+   * Name of the tensor.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHAPE_FIELD_NUMBER = 2; + private org.tensorflow.proto.TensorShapeProto shape_; + /** + *
+   * Shape of the tensor
+   * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + @java.lang.Override + public boolean hasShape() { + return shape_ != null; + } + /** + *
+   * Shape of the tensor
+   * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto getShape() { + return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } + /** + *
+   * Shape of the tensor
+   * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { + return getShape(); + } + + public static final int TYPE_FIELD_NUMBER = 3; + private int type_; + /** + *
+   * Type of the tensor
+   * 
+ * + * .tensorflow.DataType type = 3; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+   * Type of the tensor
+   * 
+ * + * .tensorflow.DataType type = 3; + * @return The type. + */ + @java.lang.Override public org.tensorflow.proto.DataType getType() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(type_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + + public static final int SLICE_FIELD_NUMBER = 4; + private java.util.List slice_; + /** + *
+   * Explicit list of slices saved in the checkpoint file.
+   * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + @java.lang.Override + public java.util.List getSliceList() { + return slice_; + } + /** + *
+   * Explicit list of slices saved in the checkpoint file.
+   * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + @java.lang.Override + public java.util.List + getSliceOrBuilderList() { + return slice_; + } + /** + *
+   * Explicit list of slices saved in the checkpoint file.
+   * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + @java.lang.Override + public int getSliceCount() { + return slice_.size(); + } + /** + *
+   * Explicit list of slices saved in the checkpoint file.
+   * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + @java.lang.Override + public org.tensorflow.proto.TensorSliceProto getSlice(int index) { + return slice_.get(index); + } + /** + *
+   * Explicit list of slices saved in the checkpoint file.
+   * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + @java.lang.Override + public org.tensorflow.proto.TensorSliceProtoOrBuilder getSliceOrBuilder( + int index) { + return slice_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (shape_ != null) { + output.writeMessage(2, getShape()); + } + if (type_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + output.writeEnum(3, type_); + } + for (int i = 0; i < slice_.size(); i++) { + output.writeMessage(4, slice_.get(i)); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (shape_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getShape()); + } + if (type_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, type_); + } + for (int i = 0; i < slice_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, slice_.get(i)); + } + 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 org.tensorflow.proto.SavedSliceMeta)) { + return super.equals(obj); + } + org.tensorflow.proto.SavedSliceMeta other = (org.tensorflow.proto.SavedSliceMeta) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasShape() != other.hasShape()) return false; + if (hasShape()) { + if (!getShape() + .equals(other.getShape())) return false; + } + if (type_ != other.type_) return false; + if (!getSliceList() + .equals(other.getSliceList())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasShape()) { + hash = (37 * hash) + SHAPE_FIELD_NUMBER; + hash = (53 * hash) + getShape().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (getSliceCount() > 0) { + hash = (37 * hash) + SLICE_FIELD_NUMBER; + hash = (53 * hash) + getSliceList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SavedSliceMeta parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedSliceMeta parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedSliceMeta parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedSliceMeta parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedSliceMeta parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedSliceMeta parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedSliceMeta parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedSliceMeta 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 org.tensorflow.proto.SavedSliceMeta parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedSliceMeta 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 org.tensorflow.proto.SavedSliceMeta parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedSliceMeta 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(org.tensorflow.proto.SavedSliceMeta 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; + } + /** + *
+   * Metadata describing the set of slices of the same tensor saved in a
+   * checkpoint file.
+   * 
+ * + * Protobuf type {@code tensorflow.SavedSliceMeta} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SavedSliceMeta) + org.tensorflow.proto.SavedSliceMetaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedTensorSliceProtos.internal_static_tensorflow_SavedSliceMeta_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedTensorSliceProtos.internal_static_tensorflow_SavedSliceMeta_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedSliceMeta.class, org.tensorflow.proto.SavedSliceMeta.Builder.class); + } + + // Construct using org.tensorflow.proto.SavedSliceMeta.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (shapeBuilder_ == null) { + shape_ = null; + } else { + shape_ = null; + shapeBuilder_ = null; + } + type_ = 0; + + if (sliceBuilder_ == null) { + slice_ = java.util.Collections.emptyList(); + } else { + slice_ = null; + sliceBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.SavedTensorSliceProtos.internal_static_tensorflow_SavedSliceMeta_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SavedSliceMeta getDefaultInstanceForType() { + return org.tensorflow.proto.SavedSliceMeta.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SavedSliceMeta build() { + org.tensorflow.proto.SavedSliceMeta result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SavedSliceMeta buildPartial() { + org.tensorflow.proto.SavedSliceMeta result = new org.tensorflow.proto.SavedSliceMeta(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (shapeBuilder_ == null) { + result.shape_ = shape_; + } else { + result.shape_ = shapeBuilder_.build(); + } + result.type_ = type_; + if (sliceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + slice_ = java.util.Collections.unmodifiableList(slice_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.slice_ = slice_; + } else { + result.slice_ = sliceBuilder_.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 org.tensorflow.proto.SavedSliceMeta) { + return mergeFrom((org.tensorflow.proto.SavedSliceMeta)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SavedSliceMeta other) { + if (other == org.tensorflow.proto.SavedSliceMeta.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasShape()) { + mergeShape(other.getShape()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (sliceBuilder_ == null) { + if (!other.slice_.isEmpty()) { + if (slice_.isEmpty()) { + slice_ = other.slice_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSliceIsMutable(); + slice_.addAll(other.slice_); + } + onChanged(); + } + } else { + if (!other.slice_.isEmpty()) { + if (sliceBuilder_.isEmpty()) { + sliceBuilder_.dispose(); + sliceBuilder_ = null; + slice_ = other.slice_; + bitField0_ = (bitField0_ & ~0x00000001); + sliceBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSliceFieldBuilder() : null; + } else { + sliceBuilder_.addAllMessages(other.slice_); + } + } + } + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getShapeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 24: { + type_ = input.readEnum(); + + break; + } // case 24 + case 34: { + org.tensorflow.proto.TensorSliceProto m = + input.readMessage( + org.tensorflow.proto.TensorSliceProto.parser(), + extensionRegistry); + if (sliceBuilder_ == null) { + ensureSliceIsMutable(); + slice_.add(m); + } else { + sliceBuilder_.addMessage(m); + } + break; + } // case 34 + 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 name_ = ""; + /** + *
+     * Name of the tensor.
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Name of the tensor.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Name of the tensor.
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Name of the tensor.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Name of the tensor.
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private org.tensorflow.proto.TensorShapeProto shape_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> shapeBuilder_; + /** + *
+     * Shape of the tensor
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + public boolean hasShape() { + return shapeBuilder_ != null || shape_ != null; + } + /** + *
+     * Shape of the tensor
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + public org.tensorflow.proto.TensorShapeProto getShape() { + if (shapeBuilder_ == null) { + return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } else { + return shapeBuilder_.getMessage(); + } + } + /** + *
+     * Shape of the tensor
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder setShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shape_ = value; + onChanged(); + } else { + shapeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Shape of the tensor
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder setShape( + org.tensorflow.proto.TensorShapeProto.Builder builderForValue) { + if (shapeBuilder_ == null) { + shape_ = builderForValue.build(); + onChanged(); + } else { + shapeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Shape of the tensor
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder mergeShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (shape_ != null) { + shape_ = + org.tensorflow.proto.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial(); + } else { + shape_ = value; + } + onChanged(); + } else { + shapeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Shape of the tensor
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder clearShape() { + if (shapeBuilder_ == null) { + shape_ = null; + onChanged(); + } else { + shape_ = null; + shapeBuilder_ = null; + } + + return this; + } + /** + *
+     * Shape of the tensor
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + */ + public org.tensorflow.proto.TensorShapeProto.Builder getShapeBuilder() { + + onChanged(); + return getShapeFieldBuilder().getBuilder(); + } + /** + *
+     * Shape of the tensor
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + */ + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { + if (shapeBuilder_ != null) { + return shapeBuilder_.getMessageOrBuilder(); + } else { + return shape_ == null ? + org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } + } + /** + *
+     * Shape of the tensor
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> + getShapeFieldBuilder() { + if (shapeBuilder_ == null) { + shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder>( + getShape(), + getParentForChildren(), + isClean()); + shape_ = null; + } + return shapeBuilder_; + } + + private int type_ = 0; + /** + *
+     * Type of the tensor
+     * 
+ * + * .tensorflow.DataType type = 3; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+     * Type of the tensor
+     * 
+ * + * .tensorflow.DataType type = 3; + * @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; + onChanged(); + return this; + } + /** + *
+     * Type of the tensor
+     * 
+ * + * .tensorflow.DataType type = 3; + * @return The type. + */ + @java.lang.Override + public org.tensorflow.proto.DataType getType() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(type_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + /** + *
+     * Type of the tensor
+     * 
+ * + * .tensorflow.DataType type = 3; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(org.tensorflow.proto.DataType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Type of the tensor
+     * 
+ * + * .tensorflow.DataType type = 3; + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.util.List slice_ = + java.util.Collections.emptyList(); + private void ensureSliceIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + slice_ = new java.util.ArrayList(slice_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorSliceProto, org.tensorflow.proto.TensorSliceProto.Builder, org.tensorflow.proto.TensorSliceProtoOrBuilder> sliceBuilder_; + + /** + *
+     * Explicit list of slices saved in the checkpoint file.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + public java.util.List getSliceList() { + if (sliceBuilder_ == null) { + return java.util.Collections.unmodifiableList(slice_); + } else { + return sliceBuilder_.getMessageList(); + } + } + /** + *
+     * Explicit list of slices saved in the checkpoint file.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + public int getSliceCount() { + if (sliceBuilder_ == null) { + return slice_.size(); + } else { + return sliceBuilder_.getCount(); + } + } + /** + *
+     * Explicit list of slices saved in the checkpoint file.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + public org.tensorflow.proto.TensorSliceProto getSlice(int index) { + if (sliceBuilder_ == null) { + return slice_.get(index); + } else { + return sliceBuilder_.getMessage(index); + } + } + /** + *
+     * Explicit list of slices saved in the checkpoint file.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + public Builder setSlice( + int index, org.tensorflow.proto.TensorSliceProto value) { + if (sliceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSliceIsMutable(); + slice_.set(index, value); + onChanged(); + } else { + sliceBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Explicit list of slices saved in the checkpoint file.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + public Builder setSlice( + int index, org.tensorflow.proto.TensorSliceProto.Builder builderForValue) { + if (sliceBuilder_ == null) { + ensureSliceIsMutable(); + slice_.set(index, builderForValue.build()); + onChanged(); + } else { + sliceBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Explicit list of slices saved in the checkpoint file.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + public Builder addSlice(org.tensorflow.proto.TensorSliceProto value) { + if (sliceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSliceIsMutable(); + slice_.add(value); + onChanged(); + } else { + sliceBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Explicit list of slices saved in the checkpoint file.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + public Builder addSlice( + int index, org.tensorflow.proto.TensorSliceProto value) { + if (sliceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSliceIsMutable(); + slice_.add(index, value); + onChanged(); + } else { + sliceBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Explicit list of slices saved in the checkpoint file.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + public Builder addSlice( + org.tensorflow.proto.TensorSliceProto.Builder builderForValue) { + if (sliceBuilder_ == null) { + ensureSliceIsMutable(); + slice_.add(builderForValue.build()); + onChanged(); + } else { + sliceBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Explicit list of slices saved in the checkpoint file.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + public Builder addSlice( + int index, org.tensorflow.proto.TensorSliceProto.Builder builderForValue) { + if (sliceBuilder_ == null) { + ensureSliceIsMutable(); + slice_.add(index, builderForValue.build()); + onChanged(); + } else { + sliceBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Explicit list of slices saved in the checkpoint file.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + public Builder addAllSlice( + java.lang.Iterable values) { + if (sliceBuilder_ == null) { + ensureSliceIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, slice_); + onChanged(); + } else { + sliceBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Explicit list of slices saved in the checkpoint file.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + public Builder clearSlice() { + if (sliceBuilder_ == null) { + slice_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sliceBuilder_.clear(); + } + return this; + } + /** + *
+     * Explicit list of slices saved in the checkpoint file.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + public Builder removeSlice(int index) { + if (sliceBuilder_ == null) { + ensureSliceIsMutable(); + slice_.remove(index); + onChanged(); + } else { + sliceBuilder_.remove(index); + } + return this; + } + /** + *
+     * Explicit list of slices saved in the checkpoint file.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + public org.tensorflow.proto.TensorSliceProto.Builder getSliceBuilder( + int index) { + return getSliceFieldBuilder().getBuilder(index); + } + /** + *
+     * Explicit list of slices saved in the checkpoint file.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + public org.tensorflow.proto.TensorSliceProtoOrBuilder getSliceOrBuilder( + int index) { + if (sliceBuilder_ == null) { + return slice_.get(index); } else { + return sliceBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Explicit list of slices saved in the checkpoint file.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + public java.util.List + getSliceOrBuilderList() { + if (sliceBuilder_ != null) { + return sliceBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(slice_); + } + } + /** + *
+     * Explicit list of slices saved in the checkpoint file.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + public org.tensorflow.proto.TensorSliceProto.Builder addSliceBuilder() { + return getSliceFieldBuilder().addBuilder( + org.tensorflow.proto.TensorSliceProto.getDefaultInstance()); + } + /** + *
+     * Explicit list of slices saved in the checkpoint file.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + public org.tensorflow.proto.TensorSliceProto.Builder addSliceBuilder( + int index) { + return getSliceFieldBuilder().addBuilder( + index, org.tensorflow.proto.TensorSliceProto.getDefaultInstance()); + } + /** + *
+     * Explicit list of slices saved in the checkpoint file.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto slice = 4; + */ + public java.util.List + getSliceBuilderList() { + return getSliceFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorSliceProto, org.tensorflow.proto.TensorSliceProto.Builder, org.tensorflow.proto.TensorSliceProtoOrBuilder> + getSliceFieldBuilder() { + if (sliceBuilder_ == null) { + sliceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorSliceProto, org.tensorflow.proto.TensorSliceProto.Builder, org.tensorflow.proto.TensorSliceProtoOrBuilder>( + slice_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + slice_ = null; + } + return sliceBuilder_; + } + @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:tensorflow.SavedSliceMeta) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SavedSliceMeta) + private static final org.tensorflow.proto.SavedSliceMeta DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SavedSliceMeta(); + } + + public static org.tensorflow.proto.SavedSliceMeta getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SavedSliceMeta 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 org.tensorflow.proto.SavedSliceMeta getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SavedSliceMetaOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedSliceMetaOrBuilder.java similarity index 76% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SavedSliceMetaOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedSliceMetaOrBuilder.java index 76aff4e7eb5..a42c77a3a54 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SavedSliceMetaOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedSliceMetaOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/util/saved_tensor_slice.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; public interface SavedSliceMetaOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.SavedSliceMeta) @@ -13,6 +13,7 @@ public interface SavedSliceMetaOrBuilder extends *
* * string name = 1; + * @return The name. */ java.lang.String getName(); /** @@ -21,6 +22,7 @@ public interface SavedSliceMetaOrBuilder extends *
* * string name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -31,6 +33,7 @@ public interface SavedSliceMetaOrBuilder extends *
* * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. */ boolean hasShape(); /** @@ -39,8 +42,9 @@ public interface SavedSliceMetaOrBuilder extends * * * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. */ - org.tensorflow.proto.framework.TensorShapeProto getShape(); + org.tensorflow.proto.TensorShapeProto getShape(); /** *
    * Shape of the tensor
@@ -48,7 +52,7 @@ public interface SavedSliceMetaOrBuilder extends
    *
    * .tensorflow.TensorShapeProto shape = 2;
    */
-  org.tensorflow.proto.framework.TensorShapeProtoOrBuilder getShapeOrBuilder();
+  org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder();
 
   /**
    * 
@@ -56,6 +60,7 @@ public interface SavedSliceMetaOrBuilder extends
    * 
* * .tensorflow.DataType type = 3; + * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** @@ -64,8 +69,9 @@ public interface SavedSliceMetaOrBuilder extends *
* * .tensorflow.DataType type = 3; + * @return The type. */ - org.tensorflow.proto.framework.DataType getType(); + org.tensorflow.proto.DataType getType(); /** *
@@ -74,7 +80,7 @@ public interface SavedSliceMetaOrBuilder extends
    *
    * repeated .tensorflow.TensorSliceProto slice = 4;
    */
-  java.util.List 
+  java.util.List 
       getSliceList();
   /**
    * 
@@ -83,7 +89,7 @@ public interface SavedSliceMetaOrBuilder extends
    *
    * repeated .tensorflow.TensorSliceProto slice = 4;
    */
-  org.tensorflow.proto.framework.TensorSliceProto getSlice(int index);
+  org.tensorflow.proto.TensorSliceProto getSlice(int index);
   /**
    * 
    * Explicit list of slices saved in the checkpoint file.
@@ -99,7 +105,7 @@ public interface SavedSliceMetaOrBuilder extends
    *
    * repeated .tensorflow.TensorSliceProto slice = 4;
    */
-  java.util.List 
+  java.util.List 
       getSliceOrBuilderList();
   /**
    * 
@@ -108,6 +114,6 @@ public interface SavedSliceMetaOrBuilder extends
    *
    * repeated .tensorflow.TensorSliceProto slice = 4;
    */
-  org.tensorflow.proto.framework.TensorSliceProtoOrBuilder getSliceOrBuilder(
+  org.tensorflow.proto.TensorSliceProtoOrBuilder getSliceOrBuilder(
       int index);
 }
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SavedSliceOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedSliceOrBuilder.java
similarity index 82%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SavedSliceOrBuilder.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedSliceOrBuilder.java
index bf76430d534..414f5bef75b 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SavedSliceOrBuilder.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedSliceOrBuilder.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/util/saved_tensor_slice.proto
 
-package org.tensorflow.proto.util;
+package org.tensorflow.proto;
 
 public interface SavedSliceOrBuilder extends
     // @@protoc_insertion_point(interface_extends:tensorflow.SavedSlice)
@@ -14,6 +14,7 @@ public interface SavedSliceOrBuilder extends
    * 
* * string name = 1; + * @return The name. */ java.lang.String getName(); /** @@ -23,6 +24,7 @@ public interface SavedSliceOrBuilder extends *
* * string name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -34,6 +36,7 @@ public interface SavedSliceOrBuilder extends *
* * .tensorflow.TensorSliceProto slice = 2; + * @return Whether the slice field is set. */ boolean hasSlice(); /** @@ -43,8 +46,9 @@ public interface SavedSliceOrBuilder extends *
* * .tensorflow.TensorSliceProto slice = 2; + * @return The slice. */ - org.tensorflow.proto.framework.TensorSliceProto getSlice(); + org.tensorflow.proto.TensorSliceProto getSlice(); /** *
    * Extent of the slice.  Must have one entry for each of the dimension of the
@@ -53,7 +57,7 @@ public interface SavedSliceOrBuilder extends
    *
    * .tensorflow.TensorSliceProto slice = 2;
    */
-  org.tensorflow.proto.framework.TensorSliceProtoOrBuilder getSliceOrBuilder();
+  org.tensorflow.proto.TensorSliceProtoOrBuilder getSliceOrBuilder();
 
   /**
    * 
@@ -62,6 +66,7 @@ public interface SavedSliceOrBuilder extends
    * 
* * .tensorflow.TensorProto data = 3; + * @return Whether the data field is set. */ boolean hasData(); /** @@ -71,8 +76,9 @@ public interface SavedSliceOrBuilder extends *
* * .tensorflow.TensorProto data = 3; + * @return The data. */ - org.tensorflow.proto.framework.TensorProto getData(); + org.tensorflow.proto.TensorProto getData(); /** *
    * The raw data of the slice is stored as a TensorProto. Only raw data are
@@ -81,5 +87,5 @@ public interface SavedSliceOrBuilder extends
    *
    * .tensorflow.TensorProto data = 3;
    */
-  org.tensorflow.proto.framework.TensorProtoOrBuilder getDataOrBuilder();
+  org.tensorflow.proto.TensorProtoOrBuilder getDataOrBuilder();
 }
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedTensorSliceMeta.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedTensorSliceMeta.java
new file mode 100644
index 00000000000..14751b8b480
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedTensorSliceMeta.java
@@ -0,0 +1,1096 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/util/saved_tensor_slice.proto
+
+package org.tensorflow.proto;
+
+/**
+ * 
+ * Metadata describing the set of tensor slices saved in a checkpoint file.
+ * It is always stored at the beginning of each checkpoint file.
+ * 
+ * + * Protobuf type {@code tensorflow.SavedTensorSliceMeta} + */ +public final class SavedTensorSliceMeta extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SavedTensorSliceMeta) + SavedTensorSliceMetaOrBuilder { +private static final long serialVersionUID = 0L; + // Use SavedTensorSliceMeta.newBuilder() to construct. + private SavedTensorSliceMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SavedTensorSliceMeta() { + tensor_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SavedTensorSliceMeta(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedTensorSliceProtos.internal_static_tensorflow_SavedTensorSliceMeta_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedTensorSliceProtos.internal_static_tensorflow_SavedTensorSliceMeta_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedTensorSliceMeta.class, org.tensorflow.proto.SavedTensorSliceMeta.Builder.class); + } + + public static final int TENSOR_FIELD_NUMBER = 1; + private java.util.List tensor_; + /** + *
+   * Each SavedSliceMeta describes the slices for one tensor.
+   * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + @java.lang.Override + public java.util.List getTensorList() { + return tensor_; + } + /** + *
+   * Each SavedSliceMeta describes the slices for one tensor.
+   * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + @java.lang.Override + public java.util.List + getTensorOrBuilderList() { + return tensor_; + } + /** + *
+   * Each SavedSliceMeta describes the slices for one tensor.
+   * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + @java.lang.Override + public int getTensorCount() { + return tensor_.size(); + } + /** + *
+   * Each SavedSliceMeta describes the slices for one tensor.
+   * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + @java.lang.Override + public org.tensorflow.proto.SavedSliceMeta getTensor(int index) { + return tensor_.get(index); + } + /** + *
+   * Each SavedSliceMeta describes the slices for one tensor.
+   * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + @java.lang.Override + public org.tensorflow.proto.SavedSliceMetaOrBuilder getTensorOrBuilder( + int index) { + return tensor_.get(index); + } + + public static final int VERSIONS_FIELD_NUMBER = 2; + private org.tensorflow.proto.VersionDef versions_; + /** + *
+   * Compatibility version of this checkpoint.  See core/public/version.h
+   * for version history.
+   * 
+ * + * .tensorflow.VersionDef versions = 2; + * @return Whether the versions field is set. + */ + @java.lang.Override + public boolean hasVersions() { + return versions_ != null; + } + /** + *
+   * Compatibility version of this checkpoint.  See core/public/version.h
+   * for version history.
+   * 
+ * + * .tensorflow.VersionDef versions = 2; + * @return The versions. + */ + @java.lang.Override + public org.tensorflow.proto.VersionDef getVersions() { + return versions_ == null ? org.tensorflow.proto.VersionDef.getDefaultInstance() : versions_; + } + /** + *
+   * Compatibility version of this checkpoint.  See core/public/version.h
+   * for version history.
+   * 
+ * + * .tensorflow.VersionDef versions = 2; + */ + @java.lang.Override + public org.tensorflow.proto.VersionDefOrBuilder getVersionsOrBuilder() { + return getVersions(); + } + + 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 < tensor_.size(); i++) { + output.writeMessage(1, tensor_.get(i)); + } + if (versions_ != null) { + output.writeMessage(2, getVersions()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tensor_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, tensor_.get(i)); + } + if (versions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getVersions()); + } + 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 org.tensorflow.proto.SavedTensorSliceMeta)) { + return super.equals(obj); + } + org.tensorflow.proto.SavedTensorSliceMeta other = (org.tensorflow.proto.SavedTensorSliceMeta) obj; + + if (!getTensorList() + .equals(other.getTensorList())) return false; + if (hasVersions() != other.hasVersions()) return false; + if (hasVersions()) { + if (!getVersions() + .equals(other.getVersions())) 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 (getTensorCount() > 0) { + hash = (37 * hash) + TENSOR_FIELD_NUMBER; + hash = (53 * hash) + getTensorList().hashCode(); + } + if (hasVersions()) { + hash = (37 * hash) + VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getVersions().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SavedTensorSliceMeta parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedTensorSliceMeta parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedTensorSliceMeta parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedTensorSliceMeta parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedTensorSliceMeta parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedTensorSliceMeta parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedTensorSliceMeta parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedTensorSliceMeta 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 org.tensorflow.proto.SavedTensorSliceMeta parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedTensorSliceMeta 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 org.tensorflow.proto.SavedTensorSliceMeta parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedTensorSliceMeta 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(org.tensorflow.proto.SavedTensorSliceMeta 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; + } + /** + *
+   * Metadata describing the set of tensor slices saved in a checkpoint file.
+   * It is always stored at the beginning of each checkpoint file.
+   * 
+ * + * Protobuf type {@code tensorflow.SavedTensorSliceMeta} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SavedTensorSliceMeta) + org.tensorflow.proto.SavedTensorSliceMetaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedTensorSliceProtos.internal_static_tensorflow_SavedTensorSliceMeta_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedTensorSliceProtos.internal_static_tensorflow_SavedTensorSliceMeta_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedTensorSliceMeta.class, org.tensorflow.proto.SavedTensorSliceMeta.Builder.class); + } + + // Construct using org.tensorflow.proto.SavedTensorSliceMeta.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (tensorBuilder_ == null) { + tensor_ = java.util.Collections.emptyList(); + } else { + tensor_ = null; + tensorBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (versionsBuilder_ == null) { + versions_ = null; + } else { + versions_ = null; + versionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.SavedTensorSliceProtos.internal_static_tensorflow_SavedTensorSliceMeta_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SavedTensorSliceMeta getDefaultInstanceForType() { + return org.tensorflow.proto.SavedTensorSliceMeta.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SavedTensorSliceMeta build() { + org.tensorflow.proto.SavedTensorSliceMeta result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SavedTensorSliceMeta buildPartial() { + org.tensorflow.proto.SavedTensorSliceMeta result = new org.tensorflow.proto.SavedTensorSliceMeta(this); + int from_bitField0_ = bitField0_; + if (tensorBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tensor_ = java.util.Collections.unmodifiableList(tensor_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tensor_ = tensor_; + } else { + result.tensor_ = tensorBuilder_.build(); + } + if (versionsBuilder_ == null) { + result.versions_ = versions_; + } else { + result.versions_ = versionsBuilder_.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 org.tensorflow.proto.SavedTensorSliceMeta) { + return mergeFrom((org.tensorflow.proto.SavedTensorSliceMeta)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SavedTensorSliceMeta other) { + if (other == org.tensorflow.proto.SavedTensorSliceMeta.getDefaultInstance()) return this; + if (tensorBuilder_ == null) { + if (!other.tensor_.isEmpty()) { + if (tensor_.isEmpty()) { + tensor_ = other.tensor_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTensorIsMutable(); + tensor_.addAll(other.tensor_); + } + onChanged(); + } + } else { + if (!other.tensor_.isEmpty()) { + if (tensorBuilder_.isEmpty()) { + tensorBuilder_.dispose(); + tensorBuilder_ = null; + tensor_ = other.tensor_; + bitField0_ = (bitField0_ & ~0x00000001); + tensorBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTensorFieldBuilder() : null; + } else { + tensorBuilder_.addAllMessages(other.tensor_); + } + } + } + if (other.hasVersions()) { + mergeVersions(other.getVersions()); + } + 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: { + org.tensorflow.proto.SavedSliceMeta m = + input.readMessage( + org.tensorflow.proto.SavedSliceMeta.parser(), + extensionRegistry); + if (tensorBuilder_ == null) { + ensureTensorIsMutable(); + tensor_.add(m); + } else { + tensorBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + input.readMessage( + getVersionsFieldBuilder().getBuilder(), + extensionRegistry); + + 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 java.util.List tensor_ = + java.util.Collections.emptyList(); + private void ensureTensorIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tensor_ = new java.util.ArrayList(tensor_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.SavedSliceMeta, org.tensorflow.proto.SavedSliceMeta.Builder, org.tensorflow.proto.SavedSliceMetaOrBuilder> tensorBuilder_; + + /** + *
+     * Each SavedSliceMeta describes the slices for one tensor.
+     * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + public java.util.List getTensorList() { + if (tensorBuilder_ == null) { + return java.util.Collections.unmodifiableList(tensor_); + } else { + return tensorBuilder_.getMessageList(); + } + } + /** + *
+     * Each SavedSliceMeta describes the slices for one tensor.
+     * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + public int getTensorCount() { + if (tensorBuilder_ == null) { + return tensor_.size(); + } else { + return tensorBuilder_.getCount(); + } + } + /** + *
+     * Each SavedSliceMeta describes the slices for one tensor.
+     * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + public org.tensorflow.proto.SavedSliceMeta getTensor(int index) { + if (tensorBuilder_ == null) { + return tensor_.get(index); + } else { + return tensorBuilder_.getMessage(index); + } + } + /** + *
+     * Each SavedSliceMeta describes the slices for one tensor.
+     * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + public Builder setTensor( + int index, org.tensorflow.proto.SavedSliceMeta value) { + if (tensorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorIsMutable(); + tensor_.set(index, value); + onChanged(); + } else { + tensorBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Each SavedSliceMeta describes the slices for one tensor.
+     * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + public Builder setTensor( + int index, org.tensorflow.proto.SavedSliceMeta.Builder builderForValue) { + if (tensorBuilder_ == null) { + ensureTensorIsMutable(); + tensor_.set(index, builderForValue.build()); + onChanged(); + } else { + tensorBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Each SavedSliceMeta describes the slices for one tensor.
+     * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + public Builder addTensor(org.tensorflow.proto.SavedSliceMeta value) { + if (tensorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorIsMutable(); + tensor_.add(value); + onChanged(); + } else { + tensorBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Each SavedSliceMeta describes the slices for one tensor.
+     * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + public Builder addTensor( + int index, org.tensorflow.proto.SavedSliceMeta value) { + if (tensorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorIsMutable(); + tensor_.add(index, value); + onChanged(); + } else { + tensorBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Each SavedSliceMeta describes the slices for one tensor.
+     * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + public Builder addTensor( + org.tensorflow.proto.SavedSliceMeta.Builder builderForValue) { + if (tensorBuilder_ == null) { + ensureTensorIsMutable(); + tensor_.add(builderForValue.build()); + onChanged(); + } else { + tensorBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Each SavedSliceMeta describes the slices for one tensor.
+     * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + public Builder addTensor( + int index, org.tensorflow.proto.SavedSliceMeta.Builder builderForValue) { + if (tensorBuilder_ == null) { + ensureTensorIsMutable(); + tensor_.add(index, builderForValue.build()); + onChanged(); + } else { + tensorBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Each SavedSliceMeta describes the slices for one tensor.
+     * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + public Builder addAllTensor( + java.lang.Iterable values) { + if (tensorBuilder_ == null) { + ensureTensorIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tensor_); + onChanged(); + } else { + tensorBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Each SavedSliceMeta describes the slices for one tensor.
+     * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + public Builder clearTensor() { + if (tensorBuilder_ == null) { + tensor_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tensorBuilder_.clear(); + } + return this; + } + /** + *
+     * Each SavedSliceMeta describes the slices for one tensor.
+     * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + public Builder removeTensor(int index) { + if (tensorBuilder_ == null) { + ensureTensorIsMutable(); + tensor_.remove(index); + onChanged(); + } else { + tensorBuilder_.remove(index); + } + return this; + } + /** + *
+     * Each SavedSliceMeta describes the slices for one tensor.
+     * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + public org.tensorflow.proto.SavedSliceMeta.Builder getTensorBuilder( + int index) { + return getTensorFieldBuilder().getBuilder(index); + } + /** + *
+     * Each SavedSliceMeta describes the slices for one tensor.
+     * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + public org.tensorflow.proto.SavedSliceMetaOrBuilder getTensorOrBuilder( + int index) { + if (tensorBuilder_ == null) { + return tensor_.get(index); } else { + return tensorBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Each SavedSliceMeta describes the slices for one tensor.
+     * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + public java.util.List + getTensorOrBuilderList() { + if (tensorBuilder_ != null) { + return tensorBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tensor_); + } + } + /** + *
+     * Each SavedSliceMeta describes the slices for one tensor.
+     * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + public org.tensorflow.proto.SavedSliceMeta.Builder addTensorBuilder() { + return getTensorFieldBuilder().addBuilder( + org.tensorflow.proto.SavedSliceMeta.getDefaultInstance()); + } + /** + *
+     * Each SavedSliceMeta describes the slices for one tensor.
+     * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + public org.tensorflow.proto.SavedSliceMeta.Builder addTensorBuilder( + int index) { + return getTensorFieldBuilder().addBuilder( + index, org.tensorflow.proto.SavedSliceMeta.getDefaultInstance()); + } + /** + *
+     * Each SavedSliceMeta describes the slices for one tensor.
+     * 
+ * + * repeated .tensorflow.SavedSliceMeta tensor = 1; + */ + public java.util.List + getTensorBuilderList() { + return getTensorFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.SavedSliceMeta, org.tensorflow.proto.SavedSliceMeta.Builder, org.tensorflow.proto.SavedSliceMetaOrBuilder> + getTensorFieldBuilder() { + if (tensorBuilder_ == null) { + tensorBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.SavedSliceMeta, org.tensorflow.proto.SavedSliceMeta.Builder, org.tensorflow.proto.SavedSliceMetaOrBuilder>( + tensor_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + tensor_ = null; + } + return tensorBuilder_; + } + + private org.tensorflow.proto.VersionDef versions_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VersionDef, org.tensorflow.proto.VersionDef.Builder, org.tensorflow.proto.VersionDefOrBuilder> versionsBuilder_; + /** + *
+     * Compatibility version of this checkpoint.  See core/public/version.h
+     * for version history.
+     * 
+ * + * .tensorflow.VersionDef versions = 2; + * @return Whether the versions field is set. + */ + public boolean hasVersions() { + return versionsBuilder_ != null || versions_ != null; + } + /** + *
+     * Compatibility version of this checkpoint.  See core/public/version.h
+     * for version history.
+     * 
+ * + * .tensorflow.VersionDef versions = 2; + * @return The versions. + */ + public org.tensorflow.proto.VersionDef getVersions() { + if (versionsBuilder_ == null) { + return versions_ == null ? org.tensorflow.proto.VersionDef.getDefaultInstance() : versions_; + } else { + return versionsBuilder_.getMessage(); + } + } + /** + *
+     * Compatibility version of this checkpoint.  See core/public/version.h
+     * for version history.
+     * 
+ * + * .tensorflow.VersionDef versions = 2; + */ + public Builder setVersions(org.tensorflow.proto.VersionDef value) { + if (versionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + versions_ = value; + onChanged(); + } else { + versionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Compatibility version of this checkpoint.  See core/public/version.h
+     * for version history.
+     * 
+ * + * .tensorflow.VersionDef versions = 2; + */ + public Builder setVersions( + org.tensorflow.proto.VersionDef.Builder builderForValue) { + if (versionsBuilder_ == null) { + versions_ = builderForValue.build(); + onChanged(); + } else { + versionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Compatibility version of this checkpoint.  See core/public/version.h
+     * for version history.
+     * 
+ * + * .tensorflow.VersionDef versions = 2; + */ + public Builder mergeVersions(org.tensorflow.proto.VersionDef value) { + if (versionsBuilder_ == null) { + if (versions_ != null) { + versions_ = + org.tensorflow.proto.VersionDef.newBuilder(versions_).mergeFrom(value).buildPartial(); + } else { + versions_ = value; + } + onChanged(); + } else { + versionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Compatibility version of this checkpoint.  See core/public/version.h
+     * for version history.
+     * 
+ * + * .tensorflow.VersionDef versions = 2; + */ + public Builder clearVersions() { + if (versionsBuilder_ == null) { + versions_ = null; + onChanged(); + } else { + versions_ = null; + versionsBuilder_ = null; + } + + return this; + } + /** + *
+     * Compatibility version of this checkpoint.  See core/public/version.h
+     * for version history.
+     * 
+ * + * .tensorflow.VersionDef versions = 2; + */ + public org.tensorflow.proto.VersionDef.Builder getVersionsBuilder() { + + onChanged(); + return getVersionsFieldBuilder().getBuilder(); + } + /** + *
+     * Compatibility version of this checkpoint.  See core/public/version.h
+     * for version history.
+     * 
+ * + * .tensorflow.VersionDef versions = 2; + */ + public org.tensorflow.proto.VersionDefOrBuilder getVersionsOrBuilder() { + if (versionsBuilder_ != null) { + return versionsBuilder_.getMessageOrBuilder(); + } else { + return versions_ == null ? + org.tensorflow.proto.VersionDef.getDefaultInstance() : versions_; + } + } + /** + *
+     * Compatibility version of this checkpoint.  See core/public/version.h
+     * for version history.
+     * 
+ * + * .tensorflow.VersionDef versions = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VersionDef, org.tensorflow.proto.VersionDef.Builder, org.tensorflow.proto.VersionDefOrBuilder> + getVersionsFieldBuilder() { + if (versionsBuilder_ == null) { + versionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.VersionDef, org.tensorflow.proto.VersionDef.Builder, org.tensorflow.proto.VersionDefOrBuilder>( + getVersions(), + getParentForChildren(), + isClean()); + versions_ = null; + } + return versionsBuilder_; + } + @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:tensorflow.SavedTensorSliceMeta) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SavedTensorSliceMeta) + private static final org.tensorflow.proto.SavedTensorSliceMeta DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SavedTensorSliceMeta(); + } + + public static org.tensorflow.proto.SavedTensorSliceMeta getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SavedTensorSliceMeta 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 org.tensorflow.proto.SavedTensorSliceMeta getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SavedTensorSliceMetaOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedTensorSliceMetaOrBuilder.java similarity index 79% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SavedTensorSliceMetaOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedTensorSliceMetaOrBuilder.java index 464fc6423f6..e00e2fd2ae9 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SavedTensorSliceMetaOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedTensorSliceMetaOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/util/saved_tensor_slice.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; public interface SavedTensorSliceMetaOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.SavedTensorSliceMeta) @@ -14,7 +14,7 @@ public interface SavedTensorSliceMetaOrBuilder extends * * repeated .tensorflow.SavedSliceMeta tensor = 1; */ - java.util.List + java.util.List getTensorList(); /** *
@@ -23,7 +23,7 @@ public interface SavedTensorSliceMetaOrBuilder extends
    *
    * repeated .tensorflow.SavedSliceMeta tensor = 1;
    */
-  org.tensorflow.proto.util.SavedSliceMeta getTensor(int index);
+  org.tensorflow.proto.SavedSliceMeta getTensor(int index);
   /**
    * 
    * Each SavedSliceMeta describes the slices for one tensor.
@@ -39,7 +39,7 @@ public interface SavedTensorSliceMetaOrBuilder extends
    *
    * repeated .tensorflow.SavedSliceMeta tensor = 1;
    */
-  java.util.List 
+  java.util.List 
       getTensorOrBuilderList();
   /**
    * 
@@ -48,7 +48,7 @@ public interface SavedTensorSliceMetaOrBuilder extends
    *
    * repeated .tensorflow.SavedSliceMeta tensor = 1;
    */
-  org.tensorflow.proto.util.SavedSliceMetaOrBuilder getTensorOrBuilder(
+  org.tensorflow.proto.SavedSliceMetaOrBuilder getTensorOrBuilder(
       int index);
 
   /**
@@ -58,6 +58,7 @@ org.tensorflow.proto.util.SavedSliceMetaOrBuilder getTensorOrBuilder(
    * 
* * .tensorflow.VersionDef versions = 2; + * @return Whether the versions field is set. */ boolean hasVersions(); /** @@ -67,8 +68,9 @@ org.tensorflow.proto.util.SavedSliceMetaOrBuilder getTensorOrBuilder( *
* * .tensorflow.VersionDef versions = 2; + * @return The versions. */ - org.tensorflow.proto.framework.VersionDef getVersions(); + org.tensorflow.proto.VersionDef getVersions(); /** *
    * Compatibility version of this checkpoint.  See core/public/version.h
@@ -77,5 +79,5 @@ org.tensorflow.proto.util.SavedSliceMetaOrBuilder getTensorOrBuilder(
    *
    * .tensorflow.VersionDef versions = 2;
    */
-  org.tensorflow.proto.framework.VersionDefOrBuilder getVersionsOrBuilder();
+  org.tensorflow.proto.VersionDefOrBuilder getVersionsOrBuilder();
 }
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SavedTensorSliceProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedTensorSliceProtos.java
similarity index 85%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SavedTensorSliceProtos.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedTensorSliceProtos.java
index 94de1b07571..dc265ab518b 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SavedTensorSliceProtos.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedTensorSliceProtos.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/util/saved_tensor_slice.proto
 
-package org.tensorflow.proto.util;
+package org.tensorflow.proto;
 
 public final class SavedTensorSliceProtos {
   private SavedTensorSliceProtos() {}
@@ -62,17 +62,17 @@ public static void registerAllExtensions(
       "w.TensorProto\"i\n\021SavedTensorSlices\022.\n\004me" +
       "ta\030\001 \001(\0132 .tensorflow.SavedTensorSliceMe" +
       "ta\022$\n\004data\030\002 \001(\0132\026.tensorflow.SavedSlice" +
-      "B8\n\031org.tensorflow.proto.utilB\026SavedTens" +
-      "orSliceProtosP\001\370\001\001b\006proto3"
+      "B3\n\024org.tensorflow.protoB\026SavedTensorSli" +
+      "ceProtosP\001\370\001\001b\006proto3"
     };
     descriptor = com.google.protobuf.Descriptors.FileDescriptor
       .internalBuildGeneratedFileFrom(descriptorData,
         new com.google.protobuf.Descriptors.FileDescriptor[] {
-          org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(),
-          org.tensorflow.proto.framework.TensorSliceProtos.getDescriptor(),
-          org.tensorflow.proto.framework.TensorProtos.getDescriptor(),
-          org.tensorflow.proto.framework.TypesProtos.getDescriptor(),
-          org.tensorflow.proto.framework.VersionsProtos.getDescriptor(),
+          org.tensorflow.proto.TensorShapeProtos.getDescriptor(),
+          org.tensorflow.proto.TensorSliceProtos.getDescriptor(),
+          org.tensorflow.proto.TensorProtos.getDescriptor(),
+          org.tensorflow.proto.TypesProtos.getDescriptor(),
+          org.tensorflow.proto.VersionsProtos.getDescriptor(),
         });
     internal_static_tensorflow_SavedSliceMeta_descriptor =
       getDescriptor().getMessageTypes().get(0);
@@ -98,11 +98,11 @@ public static void registerAllExtensions(
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_tensorflow_SavedTensorSlices_descriptor,
         new java.lang.String[] { "Meta", "Data", });
-    org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor();
-    org.tensorflow.proto.framework.TensorSliceProtos.getDescriptor();
-    org.tensorflow.proto.framework.TensorProtos.getDescriptor();
-    org.tensorflow.proto.framework.TypesProtos.getDescriptor();
-    org.tensorflow.proto.framework.VersionsProtos.getDescriptor();
+    org.tensorflow.proto.TensorShapeProtos.getDescriptor();
+    org.tensorflow.proto.TensorSliceProtos.getDescriptor();
+    org.tensorflow.proto.TensorProtos.getDescriptor();
+    org.tensorflow.proto.TypesProtos.getDescriptor();
+    org.tensorflow.proto.VersionsProtos.getDescriptor();
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedTensorSlices.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedTensorSlices.java
new file mode 100644
index 00000000000..32d7d41a63c
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedTensorSlices.java
@@ -0,0 +1,883 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/util/saved_tensor_slice.proto
+
+package org.tensorflow.proto;
+
+/**
+ * 
+ * Each record in a v3 checkpoint file is a serialized SavedTensorSlices
+ * message.
+ * 
+ * + * Protobuf type {@code tensorflow.SavedTensorSlices} + */ +public final class SavedTensorSlices extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SavedTensorSlices) + SavedTensorSlicesOrBuilder { +private static final long serialVersionUID = 0L; + // Use SavedTensorSlices.newBuilder() to construct. + private SavedTensorSlices(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SavedTensorSlices() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SavedTensorSlices(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedTensorSliceProtos.internal_static_tensorflow_SavedTensorSlices_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedTensorSliceProtos.internal_static_tensorflow_SavedTensorSlices_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedTensorSlices.class, org.tensorflow.proto.SavedTensorSlices.Builder.class); + } + + public static final int META_FIELD_NUMBER = 1; + private org.tensorflow.proto.SavedTensorSliceMeta meta_; + /** + *
+   * This is only present at the first item of each checkpoint file and serves
+   * as a table of contents, listing all the tensor slices saved in this file.
+   * 
+ * + * .tensorflow.SavedTensorSliceMeta meta = 1; + * @return Whether the meta field is set. + */ + @java.lang.Override + public boolean hasMeta() { + return meta_ != null; + } + /** + *
+   * This is only present at the first item of each checkpoint file and serves
+   * as a table of contents, listing all the tensor slices saved in this file.
+   * 
+ * + * .tensorflow.SavedTensorSliceMeta meta = 1; + * @return The meta. + */ + @java.lang.Override + public org.tensorflow.proto.SavedTensorSliceMeta getMeta() { + return meta_ == null ? org.tensorflow.proto.SavedTensorSliceMeta.getDefaultInstance() : meta_; + } + /** + *
+   * This is only present at the first item of each checkpoint file and serves
+   * as a table of contents, listing all the tensor slices saved in this file.
+   * 
+ * + * .tensorflow.SavedTensorSliceMeta meta = 1; + */ + @java.lang.Override + public org.tensorflow.proto.SavedTensorSliceMetaOrBuilder getMetaOrBuilder() { + return getMeta(); + } + + public static final int DATA_FIELD_NUMBER = 2; + private org.tensorflow.proto.SavedSlice data_; + /** + *
+   * This exists in all but the first item of each checkpoint file.
+   * 
+ * + * .tensorflow.SavedSlice data = 2; + * @return Whether the data field is set. + */ + @java.lang.Override + public boolean hasData() { + return data_ != null; + } + /** + *
+   * This exists in all but the first item of each checkpoint file.
+   * 
+ * + * .tensorflow.SavedSlice data = 2; + * @return The data. + */ + @java.lang.Override + public org.tensorflow.proto.SavedSlice getData() { + return data_ == null ? org.tensorflow.proto.SavedSlice.getDefaultInstance() : data_; + } + /** + *
+   * This exists in all but the first item of each checkpoint file.
+   * 
+ * + * .tensorflow.SavedSlice data = 2; + */ + @java.lang.Override + public org.tensorflow.proto.SavedSliceOrBuilder getDataOrBuilder() { + return getData(); + } + + 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 (meta_ != null) { + output.writeMessage(1, getMeta()); + } + if (data_ != null) { + output.writeMessage(2, getData()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (meta_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMeta()); + } + if (data_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getData()); + } + 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 org.tensorflow.proto.SavedTensorSlices)) { + return super.equals(obj); + } + org.tensorflow.proto.SavedTensorSlices other = (org.tensorflow.proto.SavedTensorSlices) obj; + + if (hasMeta() != other.hasMeta()) return false; + if (hasMeta()) { + if (!getMeta() + .equals(other.getMeta())) return false; + } + if (hasData() != other.hasData()) return false; + if (hasData()) { + if (!getData() + .equals(other.getData())) 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 (hasMeta()) { + hash = (37 * hash) + META_FIELD_NUMBER; + hash = (53 * hash) + getMeta().hashCode(); + } + if (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SavedTensorSlices parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedTensorSlices parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedTensorSlices parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedTensorSlices parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedTensorSlices parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SavedTensorSlices parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SavedTensorSlices parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedTensorSlices 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 org.tensorflow.proto.SavedTensorSlices parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedTensorSlices 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 org.tensorflow.proto.SavedTensorSlices parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SavedTensorSlices 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(org.tensorflow.proto.SavedTensorSlices 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; + } + /** + *
+   * Each record in a v3 checkpoint file is a serialized SavedTensorSlices
+   * message.
+   * 
+ * + * Protobuf type {@code tensorflow.SavedTensorSlices} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SavedTensorSlices) + org.tensorflow.proto.SavedTensorSlicesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SavedTensorSliceProtos.internal_static_tensorflow_SavedTensorSlices_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SavedTensorSliceProtos.internal_static_tensorflow_SavedTensorSlices_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SavedTensorSlices.class, org.tensorflow.proto.SavedTensorSlices.Builder.class); + } + + // Construct using org.tensorflow.proto.SavedTensorSlices.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metaBuilder_ == null) { + meta_ = null; + } else { + meta_ = null; + metaBuilder_ = null; + } + if (dataBuilder_ == null) { + data_ = null; + } else { + data_ = null; + dataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.SavedTensorSliceProtos.internal_static_tensorflow_SavedTensorSlices_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SavedTensorSlices getDefaultInstanceForType() { + return org.tensorflow.proto.SavedTensorSlices.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SavedTensorSlices build() { + org.tensorflow.proto.SavedTensorSlices result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SavedTensorSlices buildPartial() { + org.tensorflow.proto.SavedTensorSlices result = new org.tensorflow.proto.SavedTensorSlices(this); + if (metaBuilder_ == null) { + result.meta_ = meta_; + } else { + result.meta_ = metaBuilder_.build(); + } + if (dataBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = dataBuilder_.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 org.tensorflow.proto.SavedTensorSlices) { + return mergeFrom((org.tensorflow.proto.SavedTensorSlices)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SavedTensorSlices other) { + if (other == org.tensorflow.proto.SavedTensorSlices.getDefaultInstance()) return this; + if (other.hasMeta()) { + mergeMeta(other.getMeta()); + } + if (other.hasData()) { + mergeData(other.getData()); + } + 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( + getMetaFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getDataFieldBuilder().getBuilder(), + extensionRegistry); + + 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 org.tensorflow.proto.SavedTensorSliceMeta meta_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedTensorSliceMeta, org.tensorflow.proto.SavedTensorSliceMeta.Builder, org.tensorflow.proto.SavedTensorSliceMetaOrBuilder> metaBuilder_; + /** + *
+     * This is only present at the first item of each checkpoint file and serves
+     * as a table of contents, listing all the tensor slices saved in this file.
+     * 
+ * + * .tensorflow.SavedTensorSliceMeta meta = 1; + * @return Whether the meta field is set. + */ + public boolean hasMeta() { + return metaBuilder_ != null || meta_ != null; + } + /** + *
+     * This is only present at the first item of each checkpoint file and serves
+     * as a table of contents, listing all the tensor slices saved in this file.
+     * 
+ * + * .tensorflow.SavedTensorSliceMeta meta = 1; + * @return The meta. + */ + public org.tensorflow.proto.SavedTensorSliceMeta getMeta() { + if (metaBuilder_ == null) { + return meta_ == null ? org.tensorflow.proto.SavedTensorSliceMeta.getDefaultInstance() : meta_; + } else { + return metaBuilder_.getMessage(); + } + } + /** + *
+     * This is only present at the first item of each checkpoint file and serves
+     * as a table of contents, listing all the tensor slices saved in this file.
+     * 
+ * + * .tensorflow.SavedTensorSliceMeta meta = 1; + */ + public Builder setMeta(org.tensorflow.proto.SavedTensorSliceMeta value) { + if (metaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + meta_ = value; + onChanged(); + } else { + metaBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * This is only present at the first item of each checkpoint file and serves
+     * as a table of contents, listing all the tensor slices saved in this file.
+     * 
+ * + * .tensorflow.SavedTensorSliceMeta meta = 1; + */ + public Builder setMeta( + org.tensorflow.proto.SavedTensorSliceMeta.Builder builderForValue) { + if (metaBuilder_ == null) { + meta_ = builderForValue.build(); + onChanged(); + } else { + metaBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * This is only present at the first item of each checkpoint file and serves
+     * as a table of contents, listing all the tensor slices saved in this file.
+     * 
+ * + * .tensorflow.SavedTensorSliceMeta meta = 1; + */ + public Builder mergeMeta(org.tensorflow.proto.SavedTensorSliceMeta value) { + if (metaBuilder_ == null) { + if (meta_ != null) { + meta_ = + org.tensorflow.proto.SavedTensorSliceMeta.newBuilder(meta_).mergeFrom(value).buildPartial(); + } else { + meta_ = value; + } + onChanged(); + } else { + metaBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * This is only present at the first item of each checkpoint file and serves
+     * as a table of contents, listing all the tensor slices saved in this file.
+     * 
+ * + * .tensorflow.SavedTensorSliceMeta meta = 1; + */ + public Builder clearMeta() { + if (metaBuilder_ == null) { + meta_ = null; + onChanged(); + } else { + meta_ = null; + metaBuilder_ = null; + } + + return this; + } + /** + *
+     * This is only present at the first item of each checkpoint file and serves
+     * as a table of contents, listing all the tensor slices saved in this file.
+     * 
+ * + * .tensorflow.SavedTensorSliceMeta meta = 1; + */ + public org.tensorflow.proto.SavedTensorSliceMeta.Builder getMetaBuilder() { + + onChanged(); + return getMetaFieldBuilder().getBuilder(); + } + /** + *
+     * This is only present at the first item of each checkpoint file and serves
+     * as a table of contents, listing all the tensor slices saved in this file.
+     * 
+ * + * .tensorflow.SavedTensorSliceMeta meta = 1; + */ + public org.tensorflow.proto.SavedTensorSliceMetaOrBuilder getMetaOrBuilder() { + if (metaBuilder_ != null) { + return metaBuilder_.getMessageOrBuilder(); + } else { + return meta_ == null ? + org.tensorflow.proto.SavedTensorSliceMeta.getDefaultInstance() : meta_; + } + } + /** + *
+     * This is only present at the first item of each checkpoint file and serves
+     * as a table of contents, listing all the tensor slices saved in this file.
+     * 
+ * + * .tensorflow.SavedTensorSliceMeta meta = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedTensorSliceMeta, org.tensorflow.proto.SavedTensorSliceMeta.Builder, org.tensorflow.proto.SavedTensorSliceMetaOrBuilder> + getMetaFieldBuilder() { + if (metaBuilder_ == null) { + metaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedTensorSliceMeta, org.tensorflow.proto.SavedTensorSliceMeta.Builder, org.tensorflow.proto.SavedTensorSliceMetaOrBuilder>( + getMeta(), + getParentForChildren(), + isClean()); + meta_ = null; + } + return metaBuilder_; + } + + private org.tensorflow.proto.SavedSlice data_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedSlice, org.tensorflow.proto.SavedSlice.Builder, org.tensorflow.proto.SavedSliceOrBuilder> dataBuilder_; + /** + *
+     * This exists in all but the first item of each checkpoint file.
+     * 
+ * + * .tensorflow.SavedSlice data = 2; + * @return Whether the data field is set. + */ + public boolean hasData() { + return dataBuilder_ != null || data_ != null; + } + /** + *
+     * This exists in all but the first item of each checkpoint file.
+     * 
+ * + * .tensorflow.SavedSlice data = 2; + * @return The data. + */ + public org.tensorflow.proto.SavedSlice getData() { + if (dataBuilder_ == null) { + return data_ == null ? org.tensorflow.proto.SavedSlice.getDefaultInstance() : data_; + } else { + return dataBuilder_.getMessage(); + } + } + /** + *
+     * This exists in all but the first item of each checkpoint file.
+     * 
+ * + * .tensorflow.SavedSlice data = 2; + */ + public Builder setData(org.tensorflow.proto.SavedSlice value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + dataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * This exists in all but the first item of each checkpoint file.
+     * 
+ * + * .tensorflow.SavedSlice data = 2; + */ + public Builder setData( + org.tensorflow.proto.SavedSlice.Builder builderForValue) { + if (dataBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + dataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * This exists in all but the first item of each checkpoint file.
+     * 
+ * + * .tensorflow.SavedSlice data = 2; + */ + public Builder mergeData(org.tensorflow.proto.SavedSlice value) { + if (dataBuilder_ == null) { + if (data_ != null) { + data_ = + org.tensorflow.proto.SavedSlice.newBuilder(data_).mergeFrom(value).buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + dataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * This exists in all but the first item of each checkpoint file.
+     * 
+ * + * .tensorflow.SavedSlice data = 2; + */ + public Builder clearData() { + if (dataBuilder_ == null) { + data_ = null; + onChanged(); + } else { + data_ = null; + dataBuilder_ = null; + } + + return this; + } + /** + *
+     * This exists in all but the first item of each checkpoint file.
+     * 
+ * + * .tensorflow.SavedSlice data = 2; + */ + public org.tensorflow.proto.SavedSlice.Builder getDataBuilder() { + + onChanged(); + return getDataFieldBuilder().getBuilder(); + } + /** + *
+     * This exists in all but the first item of each checkpoint file.
+     * 
+ * + * .tensorflow.SavedSlice data = 2; + */ + public org.tensorflow.proto.SavedSliceOrBuilder getDataOrBuilder() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilder(); + } else { + return data_ == null ? + org.tensorflow.proto.SavedSlice.getDefaultInstance() : data_; + } + } + /** + *
+     * This exists in all but the first item of each checkpoint file.
+     * 
+ * + * .tensorflow.SavedSlice data = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedSlice, org.tensorflow.proto.SavedSlice.Builder, org.tensorflow.proto.SavedSliceOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SavedSlice, org.tensorflow.proto.SavedSlice.Builder, org.tensorflow.proto.SavedSliceOrBuilder>( + getData(), + getParentForChildren(), + isClean()); + data_ = null; + } + return dataBuilder_; + } + @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:tensorflow.SavedTensorSlices) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SavedTensorSlices) + private static final org.tensorflow.proto.SavedTensorSlices DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SavedTensorSlices(); + } + + public static org.tensorflow.proto.SavedTensorSlices getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SavedTensorSlices 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 org.tensorflow.proto.SavedTensorSlices getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SavedTensorSlicesOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedTensorSlicesOrBuilder.java similarity index 79% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SavedTensorSlicesOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedTensorSlicesOrBuilder.java index f8b12b1c7dd..00604c4b783 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SavedTensorSlicesOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SavedTensorSlicesOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/util/saved_tensor_slice.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; public interface SavedTensorSlicesOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.SavedTensorSlices) @@ -14,6 +14,7 @@ public interface SavedTensorSlicesOrBuilder extends *
* * .tensorflow.SavedTensorSliceMeta meta = 1; + * @return Whether the meta field is set. */ boolean hasMeta(); /** @@ -23,8 +24,9 @@ public interface SavedTensorSlicesOrBuilder extends *
* * .tensorflow.SavedTensorSliceMeta meta = 1; + * @return The meta. */ - org.tensorflow.proto.util.SavedTensorSliceMeta getMeta(); + org.tensorflow.proto.SavedTensorSliceMeta getMeta(); /** *
    * This is only present at the first item of each checkpoint file and serves
@@ -33,7 +35,7 @@ public interface SavedTensorSlicesOrBuilder extends
    *
    * .tensorflow.SavedTensorSliceMeta meta = 1;
    */
-  org.tensorflow.proto.util.SavedTensorSliceMetaOrBuilder getMetaOrBuilder();
+  org.tensorflow.proto.SavedTensorSliceMetaOrBuilder getMetaOrBuilder();
 
   /**
    * 
@@ -41,6 +43,7 @@ public interface SavedTensorSlicesOrBuilder extends
    * 
* * .tensorflow.SavedSlice data = 2; + * @return Whether the data field is set. */ boolean hasData(); /** @@ -49,8 +52,9 @@ public interface SavedTensorSlicesOrBuilder extends *
* * .tensorflow.SavedSlice data = 2; + * @return The data. */ - org.tensorflow.proto.util.SavedSlice getData(); + org.tensorflow.proto.SavedSlice getData(); /** *
    * This exists in all but the first item of each checkpoint file.
@@ -58,5 +62,5 @@ public interface SavedTensorSlicesOrBuilder extends
    *
    * .tensorflow.SavedSlice data = 2;
    */
-  org.tensorflow.proto.util.SavedSliceOrBuilder getDataOrBuilder();
+  org.tensorflow.proto.SavedSliceOrBuilder getDataOrBuilder();
 }
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SaverDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SaverDef.java
similarity index 77%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SaverDef.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SaverDef.java
index daf4a6c91e4..2975b8177e4 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SaverDef.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SaverDef.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/protobuf/saver.proto
 
-package org.tensorflow.proto.util;
+package org.tensorflow.proto;
 
 /**
  * 
@@ -10,7 +10,7 @@
  *
  * Protobuf type {@code tensorflow.SaverDef}
  */
-public  final class SaverDef extends
+public final class SaverDef extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.SaverDef)
     SaverDefOrBuilder {
@@ -38,93 +38,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private SaverDef(
-      com.google.protobuf.CodedInputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws com.google.protobuf.InvalidProtocolBufferException {
-    this();
-    if (extensionRegistry == null) {
-      throw new java.lang.NullPointerException();
-    }
-    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
-        com.google.protobuf.UnknownFieldSet.newBuilder();
-    try {
-      boolean done = false;
-      while (!done) {
-        int tag = input.readTag();
-        switch (tag) {
-          case 0:
-            done = true;
-            break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            filenameTensorName_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            saveTensorName_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            restoreOpName_ = s;
-            break;
-          }
-          case 32: {
-
-            maxToKeep_ = input.readInt32();
-            break;
-          }
-          case 40: {
-
-            sharded_ = input.readBool();
-            break;
-          }
-          case 53: {
-
-            keepCheckpointEveryNHours_ = input.readFloat();
-            break;
-          }
-          case 56: {
-            int rawValue = input.readEnum();
-
-            version_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
-        }
-      }
-    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-      throw e.setUnfinishedMessage(this);
-    } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
-    } finally {
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.util.SaverProtos.internal_static_tensorflow_SaverDef_descriptor;
+    return org.tensorflow.proto.SaverProtos.internal_static_tensorflow_SaverDef_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.util.SaverProtos.internal_static_tensorflow_SaverDef_fieldAccessorTable
+    return org.tensorflow.proto.SaverProtos.internal_static_tensorflow_SaverDef_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.util.SaverDef.class, org.tensorflow.proto.util.SaverDef.Builder.class);
+            org.tensorflow.proto.SaverDef.class, org.tensorflow.proto.SaverDef.Builder.class);
   }
 
   /**
@@ -201,6 +125,8 @@ public final int getNumber() {
     }
 
     /**
+     * @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
@@ -208,6 +134,10 @@ public static CheckpointFormatVersion 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 CheckpointFormatVersion forNumber(int value) {
       switch (value) {
         case 0: return LEGACY;
@@ -231,6 +161,10 @@ public CheckpointFormatVersion findValueByNumber(int 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
@@ -239,7 +173,7 @@ public CheckpointFormatVersion findValueByNumber(int number) {
     }
     public static final com.google.protobuf.Descriptors.EnumDescriptor
         getDescriptor() {
-      return org.tensorflow.proto.util.SaverDef.getDescriptor().getEnumTypes().get(0);
+      return org.tensorflow.proto.SaverDef.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final CheckpointFormatVersion[] VALUES = values();
@@ -274,7 +208,9 @@ private CheckpointFormatVersion(int value) {
    * 
* * string filename_tensor_name = 1; + * @return The filenameTensorName. */ + @java.lang.Override public java.lang.String getFilenameTensorName() { java.lang.Object ref = filenameTensorName_; if (ref instanceof java.lang.String) { @@ -294,7 +230,9 @@ public java.lang.String getFilenameTensorName() { *
* * string filename_tensor_name = 1; + * @return The bytes for filenameTensorName. */ + @java.lang.Override public com.google.protobuf.ByteString getFilenameTensorNameBytes() { java.lang.Object ref = filenameTensorName_; @@ -317,7 +255,9 @@ public java.lang.String getFilenameTensorName() { *
* * string save_tensor_name = 2; + * @return The saveTensorName. */ + @java.lang.Override public java.lang.String getSaveTensorName() { java.lang.Object ref = saveTensorName_; if (ref instanceof java.lang.String) { @@ -336,7 +276,9 @@ public java.lang.String getSaveTensorName() { * * * string save_tensor_name = 2; + * @return The bytes for saveTensorName. */ + @java.lang.Override public com.google.protobuf.ByteString getSaveTensorNameBytes() { java.lang.Object ref = saveTensorName_; @@ -359,7 +301,9 @@ public java.lang.String getSaveTensorName() { * * * string restore_op_name = 3; + * @return The restoreOpName. */ + @java.lang.Override public java.lang.String getRestoreOpName() { java.lang.Object ref = restoreOpName_; if (ref instanceof java.lang.String) { @@ -378,7 +322,9 @@ public java.lang.String getRestoreOpName() { * * * string restore_op_name = 3; + * @return The bytes for restoreOpName. */ + @java.lang.Override public com.google.protobuf.ByteString getRestoreOpNameBytes() { java.lang.Object ref = restoreOpName_; @@ -401,7 +347,9 @@ public java.lang.String getRestoreOpName() { * * * int32 max_to_keep = 4; + * @return The maxToKeep. */ + @java.lang.Override public int getMaxToKeep() { return maxToKeep_; } @@ -414,7 +362,9 @@ public int getMaxToKeep() { * * * bool sharded = 5; + * @return The sharded. */ + @java.lang.Override public boolean getSharded() { return sharded_; } @@ -430,7 +380,9 @@ public boolean getSharded() { * * * float keep_checkpoint_every_n_hours = 6; + * @return The keepCheckpointEveryNHours. */ + @java.lang.Override public float getKeepCheckpointEveryNHours() { return keepCheckpointEveryNHours_; } @@ -439,17 +391,19 @@ public float getKeepCheckpointEveryNHours() { private int version_; /** * .tensorflow.SaverDef.CheckpointFormatVersion version = 7; + * @return The enum numeric value on the wire for version. */ - public int getVersionValue() { + @java.lang.Override public int getVersionValue() { return version_; } /** * .tensorflow.SaverDef.CheckpointFormatVersion version = 7; + * @return The version. */ - public org.tensorflow.proto.util.SaverDef.CheckpointFormatVersion getVersion() { + @java.lang.Override public org.tensorflow.proto.SaverDef.CheckpointFormatVersion getVersion() { @SuppressWarnings("deprecation") - org.tensorflow.proto.util.SaverDef.CheckpointFormatVersion result = org.tensorflow.proto.util.SaverDef.CheckpointFormatVersion.valueOf(version_); - return result == null ? org.tensorflow.proto.util.SaverDef.CheckpointFormatVersion.UNRECOGNIZED : result; + org.tensorflow.proto.SaverDef.CheckpointFormatVersion result = org.tensorflow.proto.SaverDef.CheckpointFormatVersion.valueOf(version_); + return result == null ? org.tensorflow.proto.SaverDef.CheckpointFormatVersion.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @@ -466,13 +420,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getFilenameTensorNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filenameTensorName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filenameTensorName_); } - if (!getSaveTensorNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(saveTensorName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, saveTensorName_); } - if (!getRestoreOpNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(restoreOpName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, restoreOpName_); } if (maxToKeep_ != 0) { @@ -481,13 +435,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (sharded_ != false) { output.writeBool(5, sharded_); } - if (keepCheckpointEveryNHours_ != 0F) { + if (java.lang.Float.floatToRawIntBits(keepCheckpointEveryNHours_) != 0) { output.writeFloat(6, keepCheckpointEveryNHours_); } - if (version_ != org.tensorflow.proto.util.SaverDef.CheckpointFormatVersion.LEGACY.getNumber()) { + if (version_ != org.tensorflow.proto.SaverDef.CheckpointFormatVersion.LEGACY.getNumber()) { output.writeEnum(7, version_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -496,13 +450,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getFilenameTensorNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filenameTensorName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filenameTensorName_); } - if (!getSaveTensorNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(saveTensorName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, saveTensorName_); } - if (!getRestoreOpNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(restoreOpName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, restoreOpName_); } if (maxToKeep_ != 0) { @@ -513,15 +467,15 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, sharded_); } - if (keepCheckpointEveryNHours_ != 0F) { + if (java.lang.Float.floatToRawIntBits(keepCheckpointEveryNHours_) != 0) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(6, keepCheckpointEveryNHours_); } - if (version_ != org.tensorflow.proto.util.SaverDef.CheckpointFormatVersion.LEGACY.getNumber()) { + if (version_ != org.tensorflow.proto.SaverDef.CheckpointFormatVersion.LEGACY.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, version_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -531,10 +485,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.util.SaverDef)) { + if (!(obj instanceof org.tensorflow.proto.SaverDef)) { return super.equals(obj); } - org.tensorflow.proto.util.SaverDef other = (org.tensorflow.proto.util.SaverDef) obj; + org.tensorflow.proto.SaverDef other = (org.tensorflow.proto.SaverDef) obj; if (!getFilenameTensorName() .equals(other.getFilenameTensorName())) return false; @@ -550,7 +504,7 @@ public boolean equals(final java.lang.Object obj) { != java.lang.Float.floatToIntBits( other.getKeepCheckpointEveryNHours())) return false; if (version_ != other.version_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -577,74 +531,74 @@ public int hashCode() { getKeepCheckpointEveryNHours()); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + version_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.util.SaverDef parseFrom( + public static org.tensorflow.proto.SaverDef parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.SaverDef parseFrom( + public static org.tensorflow.proto.SaverDef parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.SaverDef parseFrom( + public static org.tensorflow.proto.SaverDef parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.SaverDef parseFrom( + public static org.tensorflow.proto.SaverDef parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.SaverDef parseFrom(byte[] data) + public static org.tensorflow.proto.SaverDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.SaverDef parseFrom( + public static org.tensorflow.proto.SaverDef parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.SaverDef parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.SaverDef parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.SaverDef parseFrom( + public static org.tensorflow.proto.SaverDef 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 org.tensorflow.proto.util.SaverDef parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.SaverDef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.SaverDef parseDelimitedFrom( + public static org.tensorflow.proto.SaverDef 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 org.tensorflow.proto.util.SaverDef parseFrom( + public static org.tensorflow.proto.SaverDef parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.SaverDef parseFrom( + public static org.tensorflow.proto.SaverDef parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -657,7 +611,7 @@ public static org.tensorflow.proto.util.SaverDef parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.util.SaverDef prototype) { + public static Builder newBuilder(org.tensorflow.proto.SaverDef prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -682,34 +636,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.SaverDef) - org.tensorflow.proto.util.SaverDefOrBuilder { + org.tensorflow.proto.SaverDefOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.util.SaverProtos.internal_static_tensorflow_SaverDef_descriptor; + return org.tensorflow.proto.SaverProtos.internal_static_tensorflow_SaverDef_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.util.SaverProtos.internal_static_tensorflow_SaverDef_fieldAccessorTable + return org.tensorflow.proto.SaverProtos.internal_static_tensorflow_SaverDef_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.util.SaverDef.class, org.tensorflow.proto.util.SaverDef.Builder.class); + org.tensorflow.proto.SaverDef.class, org.tensorflow.proto.SaverDef.Builder.class); } - // Construct using org.tensorflow.proto.util.SaverDef.newBuilder() + // Construct using org.tensorflow.proto.SaverDef.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -734,17 +683,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.util.SaverProtos.internal_static_tensorflow_SaverDef_descriptor; + return org.tensorflow.proto.SaverProtos.internal_static_tensorflow_SaverDef_descriptor; } @java.lang.Override - public org.tensorflow.proto.util.SaverDef getDefaultInstanceForType() { - return org.tensorflow.proto.util.SaverDef.getDefaultInstance(); + public org.tensorflow.proto.SaverDef getDefaultInstanceForType() { + return org.tensorflow.proto.SaverDef.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.util.SaverDef build() { - org.tensorflow.proto.util.SaverDef result = buildPartial(); + public org.tensorflow.proto.SaverDef build() { + org.tensorflow.proto.SaverDef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -752,8 +701,8 @@ public org.tensorflow.proto.util.SaverDef build() { } @java.lang.Override - public org.tensorflow.proto.util.SaverDef buildPartial() { - org.tensorflow.proto.util.SaverDef result = new org.tensorflow.proto.util.SaverDef(this); + public org.tensorflow.proto.SaverDef buildPartial() { + org.tensorflow.proto.SaverDef result = new org.tensorflow.proto.SaverDef(this); result.filenameTensorName_ = filenameTensorName_; result.saveTensorName_ = saveTensorName_; result.restoreOpName_ = restoreOpName_; @@ -799,16 +748,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.util.SaverDef) { - return mergeFrom((org.tensorflow.proto.util.SaverDef)other); + if (other instanceof org.tensorflow.proto.SaverDef) { + return mergeFrom((org.tensorflow.proto.SaverDef)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.util.SaverDef other) { - if (other == org.tensorflow.proto.util.SaverDef.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.SaverDef other) { + if (other == org.tensorflow.proto.SaverDef.getDefaultInstance()) return this; if (!other.getFilenameTensorName().isEmpty()) { filenameTensorName_ = other.filenameTensorName_; onChanged(); @@ -833,7 +782,7 @@ public Builder mergeFrom(org.tensorflow.proto.util.SaverDef other) { if (other.version_ != 0) { setVersionValue(other.getVersionValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -848,17 +797,65 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.util.SaverDef parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + filenameTensorName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + saveTensorName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + restoreOpName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + maxToKeep_ = input.readInt32(); + + break; + } // case 32 + case 40: { + sharded_ = input.readBool(); + + break; + } // case 40 + case 53: { + keepCheckpointEveryNHours_ = input.readFloat(); + + break; + } // case 53 + case 56: { + version_ = input.readEnum(); + + break; + } // case 56 + 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) { - parsedMessage = (org.tensorflow.proto.util.SaverDef) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -870,6 +867,7 @@ public Builder mergeFrom( * * * string filename_tensor_name = 1; + * @return The filenameTensorName. */ public java.lang.String getFilenameTensorName() { java.lang.Object ref = filenameTensorName_; @@ -890,6 +888,7 @@ public java.lang.String getFilenameTensorName() { * * * string filename_tensor_name = 1; + * @return The bytes for filenameTensorName. */ public com.google.protobuf.ByteString getFilenameTensorNameBytes() { @@ -911,6 +910,8 @@ public java.lang.String getFilenameTensorName() { * * * string filename_tensor_name = 1; + * @param value The filenameTensorName to set. + * @return This builder for chaining. */ public Builder setFilenameTensorName( java.lang.String value) { @@ -929,6 +930,7 @@ public Builder setFilenameTensorName( * * * string filename_tensor_name = 1; + * @return This builder for chaining. */ public Builder clearFilenameTensorName() { @@ -943,6 +945,8 @@ public Builder clearFilenameTensorName() { * * * string filename_tensor_name = 1; + * @param value The bytes for filenameTensorName to set. + * @return This builder for chaining. */ public Builder setFilenameTensorNameBytes( com.google.protobuf.ByteString value) { @@ -963,6 +967,7 @@ public Builder setFilenameTensorNameBytes( * * * string save_tensor_name = 2; + * @return The saveTensorName. */ public java.lang.String getSaveTensorName() { java.lang.Object ref = saveTensorName_; @@ -982,6 +987,7 @@ public java.lang.String getSaveTensorName() { * * * string save_tensor_name = 2; + * @return The bytes for saveTensorName. */ public com.google.protobuf.ByteString getSaveTensorNameBytes() { @@ -1002,6 +1008,8 @@ public java.lang.String getSaveTensorName() { * * * string save_tensor_name = 2; + * @param value The saveTensorName to set. + * @return This builder for chaining. */ public Builder setSaveTensorName( java.lang.String value) { @@ -1019,6 +1027,7 @@ public Builder setSaveTensorName( * * * string save_tensor_name = 2; + * @return This builder for chaining. */ public Builder clearSaveTensorName() { @@ -1032,6 +1041,8 @@ public Builder clearSaveTensorName() { * * * string save_tensor_name = 2; + * @param value The bytes for saveTensorName to set. + * @return This builder for chaining. */ public Builder setSaveTensorNameBytes( com.google.protobuf.ByteString value) { @@ -1052,6 +1063,7 @@ public Builder setSaveTensorNameBytes( * * * string restore_op_name = 3; + * @return The restoreOpName. */ public java.lang.String getRestoreOpName() { java.lang.Object ref = restoreOpName_; @@ -1071,6 +1083,7 @@ public java.lang.String getRestoreOpName() { * * * string restore_op_name = 3; + * @return The bytes for restoreOpName. */ public com.google.protobuf.ByteString getRestoreOpNameBytes() { @@ -1091,6 +1104,8 @@ public java.lang.String getRestoreOpName() { * * * string restore_op_name = 3; + * @param value The restoreOpName to set. + * @return This builder for chaining. */ public Builder setRestoreOpName( java.lang.String value) { @@ -1108,6 +1123,7 @@ public Builder setRestoreOpName( * * * string restore_op_name = 3; + * @return This builder for chaining. */ public Builder clearRestoreOpName() { @@ -1121,6 +1137,8 @@ public Builder clearRestoreOpName() { * * * string restore_op_name = 3; + * @param value The bytes for restoreOpName to set. + * @return This builder for chaining. */ public Builder setRestoreOpNameBytes( com.google.protobuf.ByteString value) { @@ -1141,7 +1159,9 @@ public Builder setRestoreOpNameBytes( * * * int32 max_to_keep = 4; + * @return The maxToKeep. */ + @java.lang.Override public int getMaxToKeep() { return maxToKeep_; } @@ -1151,6 +1171,8 @@ public int getMaxToKeep() { * * * int32 max_to_keep = 4; + * @param value The maxToKeep to set. + * @return This builder for chaining. */ public Builder setMaxToKeep(int value) { @@ -1164,6 +1186,7 @@ public Builder setMaxToKeep(int value) { * * * int32 max_to_keep = 4; + * @return This builder for chaining. */ public Builder clearMaxToKeep() { @@ -1179,7 +1202,9 @@ public Builder clearMaxToKeep() { * * * bool sharded = 5; + * @return The sharded. */ + @java.lang.Override public boolean getSharded() { return sharded_; } @@ -1189,6 +1214,8 @@ public boolean getSharded() { * * * bool sharded = 5; + * @param value The sharded to set. + * @return This builder for chaining. */ public Builder setSharded(boolean value) { @@ -1202,6 +1229,7 @@ public Builder setSharded(boolean value) { * * * bool sharded = 5; + * @return This builder for chaining. */ public Builder clearSharded() { @@ -1220,7 +1248,9 @@ public Builder clearSharded() { * * * float keep_checkpoint_every_n_hours = 6; + * @return The keepCheckpointEveryNHours. */ + @java.lang.Override public float getKeepCheckpointEveryNHours() { return keepCheckpointEveryNHours_; } @@ -1233,6 +1263,8 @@ public float getKeepCheckpointEveryNHours() { * * * float keep_checkpoint_every_n_hours = 6; + * @param value The keepCheckpointEveryNHours to set. + * @return This builder for chaining. */ public Builder setKeepCheckpointEveryNHours(float value) { @@ -1249,6 +1281,7 @@ public Builder setKeepCheckpointEveryNHours(float value) { * * * float keep_checkpoint_every_n_hours = 6; + * @return This builder for chaining. */ public Builder clearKeepCheckpointEveryNHours() { @@ -1260,30 +1293,38 @@ public Builder clearKeepCheckpointEveryNHours() { private int version_ = 0; /** * .tensorflow.SaverDef.CheckpointFormatVersion version = 7; + * @return The enum numeric value on the wire for version. */ - public int getVersionValue() { + @java.lang.Override public int getVersionValue() { return version_; } /** * .tensorflow.SaverDef.CheckpointFormatVersion version = 7; + * @param value The enum numeric value on the wire for version to set. + * @return This builder for chaining. */ public Builder setVersionValue(int value) { + version_ = value; onChanged(); return this; } /** * .tensorflow.SaverDef.CheckpointFormatVersion version = 7; + * @return The version. */ - public org.tensorflow.proto.util.SaverDef.CheckpointFormatVersion getVersion() { + @java.lang.Override + public org.tensorflow.proto.SaverDef.CheckpointFormatVersion getVersion() { @SuppressWarnings("deprecation") - org.tensorflow.proto.util.SaverDef.CheckpointFormatVersion result = org.tensorflow.proto.util.SaverDef.CheckpointFormatVersion.valueOf(version_); - return result == null ? org.tensorflow.proto.util.SaverDef.CheckpointFormatVersion.UNRECOGNIZED : result; + org.tensorflow.proto.SaverDef.CheckpointFormatVersion result = org.tensorflow.proto.SaverDef.CheckpointFormatVersion.valueOf(version_); + return result == null ? org.tensorflow.proto.SaverDef.CheckpointFormatVersion.UNRECOGNIZED : result; } /** * .tensorflow.SaverDef.CheckpointFormatVersion version = 7; + * @param value The version to set. + * @return This builder for chaining. */ - public Builder setVersion(org.tensorflow.proto.util.SaverDef.CheckpointFormatVersion value) { + public Builder setVersion(org.tensorflow.proto.SaverDef.CheckpointFormatVersion value) { if (value == null) { throw new NullPointerException(); } @@ -1294,6 +1335,7 @@ public Builder setVersion(org.tensorflow.proto.util.SaverDef.CheckpointFormatVer } /** * .tensorflow.SaverDef.CheckpointFormatVersion version = 7; + * @return This builder for chaining. */ public Builder clearVersion() { @@ -1318,12 +1360,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.SaverDef) - private static final org.tensorflow.proto.util.SaverDef DEFAULT_INSTANCE; + private static final org.tensorflow.proto.SaverDef DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.util.SaverDef(); + DEFAULT_INSTANCE = new org.tensorflow.proto.SaverDef(); } - public static org.tensorflow.proto.util.SaverDef getDefaultInstance() { + public static org.tensorflow.proto.SaverDef getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1334,7 +1376,18 @@ public SaverDef parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SaverDef(input, extensionRegistry); + 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(); } }; @@ -1348,7 +1401,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.util.SaverDef getDefaultInstanceForType() { + public org.tensorflow.proto.SaverDef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SaverDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SaverDefOrBuilder.java similarity index 83% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SaverDefOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SaverDefOrBuilder.java index 6b2d7fa9e48..a98a0e5dac2 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SaverDefOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SaverDefOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/saver.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; public interface SaverDefOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.SaverDef) @@ -14,6 +14,7 @@ public interface SaverDefOrBuilder extends * * * string filename_tensor_name = 1; + * @return The filenameTensorName. */ java.lang.String getFilenameTensorName(); /** @@ -23,6 +24,7 @@ public interface SaverDefOrBuilder extends * * * string filename_tensor_name = 1; + * @return The bytes for filenameTensorName. */ com.google.protobuf.ByteString getFilenameTensorNameBytes(); @@ -33,6 +35,7 @@ public interface SaverDefOrBuilder extends * * * string save_tensor_name = 2; + * @return The saveTensorName. */ java.lang.String getSaveTensorName(); /** @@ -41,6 +44,7 @@ public interface SaverDefOrBuilder extends * * * string save_tensor_name = 2; + * @return The bytes for saveTensorName. */ com.google.protobuf.ByteString getSaveTensorNameBytes(); @@ -51,6 +55,7 @@ public interface SaverDefOrBuilder extends * * * string restore_op_name = 3; + * @return The restoreOpName. */ java.lang.String getRestoreOpName(); /** @@ -59,6 +64,7 @@ public interface SaverDefOrBuilder extends * * * string restore_op_name = 3; + * @return The bytes for restoreOpName. */ com.google.protobuf.ByteString getRestoreOpNameBytes(); @@ -69,6 +75,7 @@ public interface SaverDefOrBuilder extends * * * int32 max_to_keep = 4; + * @return The maxToKeep. */ int getMaxToKeep(); @@ -78,6 +85,7 @@ public interface SaverDefOrBuilder extends * * * bool sharded = 5; + * @return The sharded. */ boolean getSharded(); @@ -90,15 +98,18 @@ public interface SaverDefOrBuilder extends * * * float keep_checkpoint_every_n_hours = 6; + * @return The keepCheckpointEveryNHours. */ float getKeepCheckpointEveryNHours(); /** * .tensorflow.SaverDef.CheckpointFormatVersion version = 7; + * @return The enum numeric value on the wire for version. */ int getVersionValue(); /** * .tensorflow.SaverDef.CheckpointFormatVersion version = 7; + * @return The version. */ - org.tensorflow.proto.util.SaverDef.CheckpointFormatVersion getVersion(); + org.tensorflow.proto.SaverDef.CheckpointFormatVersion getVersion(); } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SaverProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SaverProtos.java similarity index 90% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SaverProtos.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SaverProtos.java index 279140f5a3a..979745be38d 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SaverProtos.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SaverProtos.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/saver.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; public final class SaverProtos { private SaverProtos() {} @@ -36,11 +36,10 @@ public static void registerAllExtensions( "t_every_n_hours\030\006 \001(\002\022=\n\007version\030\007 \001(\0162," + ".tensorflow.SaverDef.CheckpointFormatVer" + "sion\"5\n\027CheckpointFormatVersion\022\n\n\006LEGAC" + - "Y\020\000\022\006\n\002V1\020\001\022\006\n\002V2\020\002B\204\001\n\031org.tensorflow.p" + - "roto.utilB\013SaverProtosP\001ZUgithub.com/ten" + - "sorflow/tensorflow/tensorflow/go/core/pr" + - "otobuf/for_core_protos_go_proto\370\001\001b\006prot" + - "o3" + "Y\020\000\022\006\n\002V1\020\001\022\006\n\002V2\020\002B\177\n\024org.tensorflow.pr" + + "otoB\013SaverProtosP\001ZUgithub.com/tensorflo" + + "w/tensorflow/tensorflow/go/core/protobuf" + + "/for_core_protos_go_proto\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ScopedAllocatorOptions.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ScopedAllocatorOptions.java new file mode 100644 index 00000000000..d687c4fc756 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ScopedAllocatorOptions.java @@ -0,0 +1,641 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/rewriter_config.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.ScopedAllocatorOptions} + */ +public final class ScopedAllocatorOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.ScopedAllocatorOptions) + ScopedAllocatorOptionsOrBuilder { +private static final long serialVersionUID = 0L; + // Use ScopedAllocatorOptions.newBuilder() to construct. + private ScopedAllocatorOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ScopedAllocatorOptions() { + enableOp_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ScopedAllocatorOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.RewriterConfigProtos.internal_static_tensorflow_ScopedAllocatorOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.RewriterConfigProtos.internal_static_tensorflow_ScopedAllocatorOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ScopedAllocatorOptions.class, org.tensorflow.proto.ScopedAllocatorOptions.Builder.class); + } + + public static final int ENABLE_OP_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList enableOp_; + /** + *
+   * If present, only perform optimization for these ops.
+   * 
+ * + * repeated string enable_op = 1; + * @return A list containing the enableOp. + */ + public com.google.protobuf.ProtocolStringList + getEnableOpList() { + return enableOp_; + } + /** + *
+   * If present, only perform optimization for these ops.
+   * 
+ * + * repeated string enable_op = 1; + * @return The count of enableOp. + */ + public int getEnableOpCount() { + return enableOp_.size(); + } + /** + *
+   * If present, only perform optimization for these ops.
+   * 
+ * + * repeated string enable_op = 1; + * @param index The index of the element to return. + * @return The enableOp at the given index. + */ + public java.lang.String getEnableOp(int index) { + return enableOp_.get(index); + } + /** + *
+   * If present, only perform optimization for these ops.
+   * 
+ * + * repeated string enable_op = 1; + * @param index The index of the value to return. + * @return The bytes of the enableOp at the given index. + */ + public com.google.protobuf.ByteString + getEnableOpBytes(int index) { + return enableOp_.getByteString(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 < enableOp_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, enableOp_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < enableOp_.size(); i++) { + dataSize += computeStringSizeNoTag(enableOp_.getRaw(i)); + } + size += dataSize; + size += 1 * getEnableOpList().size(); + } + 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 org.tensorflow.proto.ScopedAllocatorOptions)) { + return super.equals(obj); + } + org.tensorflow.proto.ScopedAllocatorOptions other = (org.tensorflow.proto.ScopedAllocatorOptions) obj; + + if (!getEnableOpList() + .equals(other.getEnableOpList())) 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 (getEnableOpCount() > 0) { + hash = (37 * hash) + ENABLE_OP_FIELD_NUMBER; + hash = (53 * hash) + getEnableOpList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.ScopedAllocatorOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ScopedAllocatorOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ScopedAllocatorOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ScopedAllocatorOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ScopedAllocatorOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ScopedAllocatorOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ScopedAllocatorOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ScopedAllocatorOptions 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 org.tensorflow.proto.ScopedAllocatorOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ScopedAllocatorOptions 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 org.tensorflow.proto.ScopedAllocatorOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ScopedAllocatorOptions 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(org.tensorflow.proto.ScopedAllocatorOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.ScopedAllocatorOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.ScopedAllocatorOptions) + org.tensorflow.proto.ScopedAllocatorOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.RewriterConfigProtos.internal_static_tensorflow_ScopedAllocatorOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.RewriterConfigProtos.internal_static_tensorflow_ScopedAllocatorOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ScopedAllocatorOptions.class, org.tensorflow.proto.ScopedAllocatorOptions.Builder.class); + } + + // Construct using org.tensorflow.proto.ScopedAllocatorOptions.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + enableOp_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.RewriterConfigProtos.internal_static_tensorflow_ScopedAllocatorOptions_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.ScopedAllocatorOptions getDefaultInstanceForType() { + return org.tensorflow.proto.ScopedAllocatorOptions.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.ScopedAllocatorOptions build() { + org.tensorflow.proto.ScopedAllocatorOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.ScopedAllocatorOptions buildPartial() { + org.tensorflow.proto.ScopedAllocatorOptions result = new org.tensorflow.proto.ScopedAllocatorOptions(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + enableOp_ = enableOp_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.enableOp_ = enableOp_; + 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 org.tensorflow.proto.ScopedAllocatorOptions) { + return mergeFrom((org.tensorflow.proto.ScopedAllocatorOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.ScopedAllocatorOptions other) { + if (other == org.tensorflow.proto.ScopedAllocatorOptions.getDefaultInstance()) return this; + if (!other.enableOp_.isEmpty()) { + if (enableOp_.isEmpty()) { + enableOp_ = other.enableOp_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEnableOpIsMutable(); + enableOp_.addAll(other.enableOp_); + } + 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: { + java.lang.String s = input.readStringRequireUtf8(); + ensureEnableOpIsMutable(); + enableOp_.add(s); + 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.protobuf.LazyStringList enableOp_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureEnableOpIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + enableOp_ = new com.google.protobuf.LazyStringArrayList(enableOp_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * If present, only perform optimization for these ops.
+     * 
+ * + * repeated string enable_op = 1; + * @return A list containing the enableOp. + */ + public com.google.protobuf.ProtocolStringList + getEnableOpList() { + return enableOp_.getUnmodifiableView(); + } + /** + *
+     * If present, only perform optimization for these ops.
+     * 
+ * + * repeated string enable_op = 1; + * @return The count of enableOp. + */ + public int getEnableOpCount() { + return enableOp_.size(); + } + /** + *
+     * If present, only perform optimization for these ops.
+     * 
+ * + * repeated string enable_op = 1; + * @param index The index of the element to return. + * @return The enableOp at the given index. + */ + public java.lang.String getEnableOp(int index) { + return enableOp_.get(index); + } + /** + *
+     * If present, only perform optimization for these ops.
+     * 
+ * + * repeated string enable_op = 1; + * @param index The index of the value to return. + * @return The bytes of the enableOp at the given index. + */ + public com.google.protobuf.ByteString + getEnableOpBytes(int index) { + return enableOp_.getByteString(index); + } + /** + *
+     * If present, only perform optimization for these ops.
+     * 
+ * + * repeated string enable_op = 1; + * @param index The index to set the value at. + * @param value The enableOp to set. + * @return This builder for chaining. + */ + public Builder setEnableOp( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnableOpIsMutable(); + enableOp_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * If present, only perform optimization for these ops.
+     * 
+ * + * repeated string enable_op = 1; + * @param value The enableOp to add. + * @return This builder for chaining. + */ + public Builder addEnableOp( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnableOpIsMutable(); + enableOp_.add(value); + onChanged(); + return this; + } + /** + *
+     * If present, only perform optimization for these ops.
+     * 
+ * + * repeated string enable_op = 1; + * @param values The enableOp to add. + * @return This builder for chaining. + */ + public Builder addAllEnableOp( + java.lang.Iterable values) { + ensureEnableOpIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, enableOp_); + onChanged(); + return this; + } + /** + *
+     * If present, only perform optimization for these ops.
+     * 
+ * + * repeated string enable_op = 1; + * @return This builder for chaining. + */ + public Builder clearEnableOp() { + enableOp_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * If present, only perform optimization for these ops.
+     * 
+ * + * repeated string enable_op = 1; + * @param value The bytes of the enableOp to add. + * @return This builder for chaining. + */ + public Builder addEnableOpBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEnableOpIsMutable(); + enableOp_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.ScopedAllocatorOptions) + } + + // @@protoc_insertion_point(class_scope:tensorflow.ScopedAllocatorOptions) + private static final org.tensorflow.proto.ScopedAllocatorOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.ScopedAllocatorOptions(); + } + + public static org.tensorflow.proto.ScopedAllocatorOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScopedAllocatorOptions 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 org.tensorflow.proto.ScopedAllocatorOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ScopedAllocatorOptionsOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ScopedAllocatorOptionsOrBuilder.java similarity index 77% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ScopedAllocatorOptionsOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ScopedAllocatorOptionsOrBuilder.java index df536ed18a9..65336fad91c 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ScopedAllocatorOptionsOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ScopedAllocatorOptionsOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/rewriter_config.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface ScopedAllocatorOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.ScopedAllocatorOptions) @@ -13,6 +13,7 @@ public interface ScopedAllocatorOptionsOrBuilder extends * * * repeated string enable_op = 1; + * @return A list containing the enableOp. */ java.util.List getEnableOpList(); @@ -22,6 +23,7 @@ public interface ScopedAllocatorOptionsOrBuilder extends * * * repeated string enable_op = 1; + * @return The count of enableOp. */ int getEnableOpCount(); /** @@ -30,6 +32,8 @@ public interface ScopedAllocatorOptionsOrBuilder extends * * * repeated string enable_op = 1; + * @param index The index of the element to return. + * @return The enableOp at the given index. */ java.lang.String getEnableOp(int index); /** @@ -38,6 +42,8 @@ public interface ScopedAllocatorOptionsOrBuilder extends * * * repeated string enable_op = 1; + * @param index The index of the value to return. + * @return The bytes of the enableOp at the given index. */ com.google.protobuf.ByteString getEnableOpBytes(int index); diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SequenceExample.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SequenceExample.java new file mode 100644 index 00000000000..f8742eb250f --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SequenceExample.java @@ -0,0 +1,765 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/example/example.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.SequenceExample} + */ +public final class SequenceExample extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SequenceExample) + SequenceExampleOrBuilder { +private static final long serialVersionUID = 0L; + // Use SequenceExample.newBuilder() to construct. + private SequenceExample(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SequenceExample() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SequenceExample(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ExampleProtos.internal_static_tensorflow_SequenceExample_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ExampleProtos.internal_static_tensorflow_SequenceExample_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SequenceExample.class, org.tensorflow.proto.SequenceExample.Builder.class); + } + + public static final int CONTEXT_FIELD_NUMBER = 1; + private org.tensorflow.proto.Features context_; + /** + * .tensorflow.Features context = 1; + * @return Whether the context field is set. + */ + @java.lang.Override + public boolean hasContext() { + return context_ != null; + } + /** + * .tensorflow.Features context = 1; + * @return The context. + */ + @java.lang.Override + public org.tensorflow.proto.Features getContext() { + return context_ == null ? org.tensorflow.proto.Features.getDefaultInstance() : context_; + } + /** + * .tensorflow.Features context = 1; + */ + @java.lang.Override + public org.tensorflow.proto.FeaturesOrBuilder getContextOrBuilder() { + return getContext(); + } + + public static final int FEATURE_LISTS_FIELD_NUMBER = 2; + private org.tensorflow.proto.FeatureLists featureLists_; + /** + * .tensorflow.FeatureLists feature_lists = 2; + * @return Whether the featureLists field is set. + */ + @java.lang.Override + public boolean hasFeatureLists() { + return featureLists_ != null; + } + /** + * .tensorflow.FeatureLists feature_lists = 2; + * @return The featureLists. + */ + @java.lang.Override + public org.tensorflow.proto.FeatureLists getFeatureLists() { + return featureLists_ == null ? org.tensorflow.proto.FeatureLists.getDefaultInstance() : featureLists_; + } + /** + * .tensorflow.FeatureLists feature_lists = 2; + */ + @java.lang.Override + public org.tensorflow.proto.FeatureListsOrBuilder getFeatureListsOrBuilder() { + return getFeatureLists(); + } + + 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 (context_ != null) { + output.writeMessage(1, getContext()); + } + if (featureLists_ != null) { + output.writeMessage(2, getFeatureLists()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (context_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getContext()); + } + if (featureLists_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFeatureLists()); + } + 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 org.tensorflow.proto.SequenceExample)) { + return super.equals(obj); + } + org.tensorflow.proto.SequenceExample other = (org.tensorflow.proto.SequenceExample) obj; + + if (hasContext() != other.hasContext()) return false; + if (hasContext()) { + if (!getContext() + .equals(other.getContext())) return false; + } + if (hasFeatureLists() != other.hasFeatureLists()) return false; + if (hasFeatureLists()) { + if (!getFeatureLists() + .equals(other.getFeatureLists())) 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 (hasContext()) { + hash = (37 * hash) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); + } + if (hasFeatureLists()) { + hash = (37 * hash) + FEATURE_LISTS_FIELD_NUMBER; + hash = (53 * hash) + getFeatureLists().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SequenceExample parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SequenceExample parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SequenceExample parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SequenceExample parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SequenceExample parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SequenceExample parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SequenceExample parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SequenceExample 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 org.tensorflow.proto.SequenceExample parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SequenceExample 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 org.tensorflow.proto.SequenceExample parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SequenceExample 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(org.tensorflow.proto.SequenceExample prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.SequenceExample} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SequenceExample) + org.tensorflow.proto.SequenceExampleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ExampleProtos.internal_static_tensorflow_SequenceExample_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ExampleProtos.internal_static_tensorflow_SequenceExample_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SequenceExample.class, org.tensorflow.proto.SequenceExample.Builder.class); + } + + // Construct using org.tensorflow.proto.SequenceExample.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (contextBuilder_ == null) { + context_ = null; + } else { + context_ = null; + contextBuilder_ = null; + } + if (featureListsBuilder_ == null) { + featureLists_ = null; + } else { + featureLists_ = null; + featureListsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.ExampleProtos.internal_static_tensorflow_SequenceExample_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SequenceExample getDefaultInstanceForType() { + return org.tensorflow.proto.SequenceExample.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SequenceExample build() { + org.tensorflow.proto.SequenceExample result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SequenceExample buildPartial() { + org.tensorflow.proto.SequenceExample result = new org.tensorflow.proto.SequenceExample(this); + if (contextBuilder_ == null) { + result.context_ = context_; + } else { + result.context_ = contextBuilder_.build(); + } + if (featureListsBuilder_ == null) { + result.featureLists_ = featureLists_; + } else { + result.featureLists_ = featureListsBuilder_.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 org.tensorflow.proto.SequenceExample) { + return mergeFrom((org.tensorflow.proto.SequenceExample)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SequenceExample other) { + if (other == org.tensorflow.proto.SequenceExample.getDefaultInstance()) return this; + if (other.hasContext()) { + mergeContext(other.getContext()); + } + if (other.hasFeatureLists()) { + mergeFeatureLists(other.getFeatureLists()); + } + 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( + getContextFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getFeatureListsFieldBuilder().getBuilder(), + extensionRegistry); + + 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 org.tensorflow.proto.Features context_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Features, org.tensorflow.proto.Features.Builder, org.tensorflow.proto.FeaturesOrBuilder> contextBuilder_; + /** + * .tensorflow.Features context = 1; + * @return Whether the context field is set. + */ + public boolean hasContext() { + return contextBuilder_ != null || context_ != null; + } + /** + * .tensorflow.Features context = 1; + * @return The context. + */ + public org.tensorflow.proto.Features getContext() { + if (contextBuilder_ == null) { + return context_ == null ? org.tensorflow.proto.Features.getDefaultInstance() : context_; + } else { + return contextBuilder_.getMessage(); + } + } + /** + * .tensorflow.Features context = 1; + */ + public Builder setContext(org.tensorflow.proto.Features value) { + if (contextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + context_ = value; + onChanged(); + } else { + contextBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.Features context = 1; + */ + public Builder setContext( + org.tensorflow.proto.Features.Builder builderForValue) { + if (contextBuilder_ == null) { + context_ = builderForValue.build(); + onChanged(); + } else { + contextBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.Features context = 1; + */ + public Builder mergeContext(org.tensorflow.proto.Features value) { + if (contextBuilder_ == null) { + if (context_ != null) { + context_ = + org.tensorflow.proto.Features.newBuilder(context_).mergeFrom(value).buildPartial(); + } else { + context_ = value; + } + onChanged(); + } else { + contextBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.Features context = 1; + */ + public Builder clearContext() { + if (contextBuilder_ == null) { + context_ = null; + onChanged(); + } else { + context_ = null; + contextBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.Features context = 1; + */ + public org.tensorflow.proto.Features.Builder getContextBuilder() { + + onChanged(); + return getContextFieldBuilder().getBuilder(); + } + /** + * .tensorflow.Features context = 1; + */ + public org.tensorflow.proto.FeaturesOrBuilder getContextOrBuilder() { + if (contextBuilder_ != null) { + return contextBuilder_.getMessageOrBuilder(); + } else { + return context_ == null ? + org.tensorflow.proto.Features.getDefaultInstance() : context_; + } + } + /** + * .tensorflow.Features context = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Features, org.tensorflow.proto.Features.Builder, org.tensorflow.proto.FeaturesOrBuilder> + getContextFieldBuilder() { + if (contextBuilder_ == null) { + contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Features, org.tensorflow.proto.Features.Builder, org.tensorflow.proto.FeaturesOrBuilder>( + getContext(), + getParentForChildren(), + isClean()); + context_ = null; + } + return contextBuilder_; + } + + private org.tensorflow.proto.FeatureLists featureLists_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.FeatureLists, org.tensorflow.proto.FeatureLists.Builder, org.tensorflow.proto.FeatureListsOrBuilder> featureListsBuilder_; + /** + * .tensorflow.FeatureLists feature_lists = 2; + * @return Whether the featureLists field is set. + */ + public boolean hasFeatureLists() { + return featureListsBuilder_ != null || featureLists_ != null; + } + /** + * .tensorflow.FeatureLists feature_lists = 2; + * @return The featureLists. + */ + public org.tensorflow.proto.FeatureLists getFeatureLists() { + if (featureListsBuilder_ == null) { + return featureLists_ == null ? org.tensorflow.proto.FeatureLists.getDefaultInstance() : featureLists_; + } else { + return featureListsBuilder_.getMessage(); + } + } + /** + * .tensorflow.FeatureLists feature_lists = 2; + */ + public Builder setFeatureLists(org.tensorflow.proto.FeatureLists value) { + if (featureListsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + featureLists_ = value; + onChanged(); + } else { + featureListsBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.FeatureLists feature_lists = 2; + */ + public Builder setFeatureLists( + org.tensorflow.proto.FeatureLists.Builder builderForValue) { + if (featureListsBuilder_ == null) { + featureLists_ = builderForValue.build(); + onChanged(); + } else { + featureListsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.FeatureLists feature_lists = 2; + */ + public Builder mergeFeatureLists(org.tensorflow.proto.FeatureLists value) { + if (featureListsBuilder_ == null) { + if (featureLists_ != null) { + featureLists_ = + org.tensorflow.proto.FeatureLists.newBuilder(featureLists_).mergeFrom(value).buildPartial(); + } else { + featureLists_ = value; + } + onChanged(); + } else { + featureListsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.FeatureLists feature_lists = 2; + */ + public Builder clearFeatureLists() { + if (featureListsBuilder_ == null) { + featureLists_ = null; + onChanged(); + } else { + featureLists_ = null; + featureListsBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.FeatureLists feature_lists = 2; + */ + public org.tensorflow.proto.FeatureLists.Builder getFeatureListsBuilder() { + + onChanged(); + return getFeatureListsFieldBuilder().getBuilder(); + } + /** + * .tensorflow.FeatureLists feature_lists = 2; + */ + public org.tensorflow.proto.FeatureListsOrBuilder getFeatureListsOrBuilder() { + if (featureListsBuilder_ != null) { + return featureListsBuilder_.getMessageOrBuilder(); + } else { + return featureLists_ == null ? + org.tensorflow.proto.FeatureLists.getDefaultInstance() : featureLists_; + } + } + /** + * .tensorflow.FeatureLists feature_lists = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.FeatureLists, org.tensorflow.proto.FeatureLists.Builder, org.tensorflow.proto.FeatureListsOrBuilder> + getFeatureListsFieldBuilder() { + if (featureListsBuilder_ == null) { + featureListsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.FeatureLists, org.tensorflow.proto.FeatureLists.Builder, org.tensorflow.proto.FeatureListsOrBuilder>( + getFeatureLists(), + getParentForChildren(), + isClean()); + featureLists_ = null; + } + return featureListsBuilder_; + } + @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:tensorflow.SequenceExample) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SequenceExample) + private static final org.tensorflow.proto.SequenceExample DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SequenceExample(); + } + + public static org.tensorflow.proto.SequenceExample getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SequenceExample 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 org.tensorflow.proto.SequenceExample getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SequenceExampleOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SequenceExampleOrBuilder.java new file mode 100644 index 00000000000..760a6434916 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SequenceExampleOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/example/example.proto + +package org.tensorflow.proto; + +public interface SequenceExampleOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.SequenceExample) + com.google.protobuf.MessageOrBuilder { + + /** + * .tensorflow.Features context = 1; + * @return Whether the context field is set. + */ + boolean hasContext(); + /** + * .tensorflow.Features context = 1; + * @return The context. + */ + org.tensorflow.proto.Features getContext(); + /** + * .tensorflow.Features context = 1; + */ + org.tensorflow.proto.FeaturesOrBuilder getContextOrBuilder(); + + /** + * .tensorflow.FeatureLists feature_lists = 2; + * @return Whether the featureLists field is set. + */ + boolean hasFeatureLists(); + /** + * .tensorflow.FeatureLists feature_lists = 2; + * @return The featureLists. + */ + org.tensorflow.proto.FeatureLists getFeatureLists(); + /** + * .tensorflow.FeatureLists feature_lists = 2; + */ + org.tensorflow.proto.FeatureListsOrBuilder getFeatureListsOrBuilder(); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SerializedDType.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SerializedDType.java new file mode 100644 index 00000000000..5bf4bc289a7 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SerializedDType.java @@ -0,0 +1,504 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/types.proto + +package org.tensorflow.proto; + +/** + *
+ * Represents a serialized tf.dtypes.Dtype
+ * 
+ * + * Protobuf type {@code tensorflow.SerializedDType} + */ +public final class SerializedDType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SerializedDType) + SerializedDTypeOrBuilder { +private static final long serialVersionUID = 0L; + // Use SerializedDType.newBuilder() to construct. + private SerializedDType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SerializedDType() { + datatype_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SerializedDType(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TypesProtos.internal_static_tensorflow_SerializedDType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TypesProtos.internal_static_tensorflow_SerializedDType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SerializedDType.class, org.tensorflow.proto.SerializedDType.Builder.class); + } + + public static final int DATATYPE_FIELD_NUMBER = 1; + private int datatype_; + /** + * .tensorflow.DataType datatype = 1; + * @return The enum numeric value on the wire for datatype. + */ + @java.lang.Override public int getDatatypeValue() { + return datatype_; + } + /** + * .tensorflow.DataType datatype = 1; + * @return The datatype. + */ + @java.lang.Override public org.tensorflow.proto.DataType getDatatype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(datatype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + + 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 (datatype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + output.writeEnum(1, datatype_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (datatype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, datatype_); + } + 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 org.tensorflow.proto.SerializedDType)) { + return super.equals(obj); + } + org.tensorflow.proto.SerializedDType other = (org.tensorflow.proto.SerializedDType) obj; + + if (datatype_ != other.datatype_) 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) + DATATYPE_FIELD_NUMBER; + hash = (53 * hash) + datatype_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SerializedDType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SerializedDType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SerializedDType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SerializedDType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SerializedDType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SerializedDType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SerializedDType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SerializedDType 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 org.tensorflow.proto.SerializedDType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SerializedDType 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 org.tensorflow.proto.SerializedDType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SerializedDType 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(org.tensorflow.proto.SerializedDType 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; + } + /** + *
+   * Represents a serialized tf.dtypes.Dtype
+   * 
+ * + * Protobuf type {@code tensorflow.SerializedDType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SerializedDType) + org.tensorflow.proto.SerializedDTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TypesProtos.internal_static_tensorflow_SerializedDType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TypesProtos.internal_static_tensorflow_SerializedDType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SerializedDType.class, org.tensorflow.proto.SerializedDType.Builder.class); + } + + // Construct using org.tensorflow.proto.SerializedDType.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + datatype_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.TypesProtos.internal_static_tensorflow_SerializedDType_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SerializedDType getDefaultInstanceForType() { + return org.tensorflow.proto.SerializedDType.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SerializedDType build() { + org.tensorflow.proto.SerializedDType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SerializedDType buildPartial() { + org.tensorflow.proto.SerializedDType result = new org.tensorflow.proto.SerializedDType(this); + result.datatype_ = datatype_; + 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 org.tensorflow.proto.SerializedDType) { + return mergeFrom((org.tensorflow.proto.SerializedDType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SerializedDType other) { + if (other == org.tensorflow.proto.SerializedDType.getDefaultInstance()) return this; + if (other.datatype_ != 0) { + setDatatypeValue(other.getDatatypeValue()); + } + 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: { + datatype_ = input.readEnum(); + + break; + } // case 8 + 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 datatype_ = 0; + /** + * .tensorflow.DataType datatype = 1; + * @return The enum numeric value on the wire for datatype. + */ + @java.lang.Override public int getDatatypeValue() { + return datatype_; + } + /** + * .tensorflow.DataType datatype = 1; + * @param value The enum numeric value on the wire for datatype to set. + * @return This builder for chaining. + */ + public Builder setDatatypeValue(int value) { + + datatype_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.DataType datatype = 1; + * @return The datatype. + */ + @java.lang.Override + public org.tensorflow.proto.DataType getDatatype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(datatype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + /** + * .tensorflow.DataType datatype = 1; + * @param value The datatype to set. + * @return This builder for chaining. + */ + public Builder setDatatype(org.tensorflow.proto.DataType value) { + if (value == null) { + throw new NullPointerException(); + } + + datatype_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.DataType datatype = 1; + * @return This builder for chaining. + */ + public Builder clearDatatype() { + + datatype_ = 0; + 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:tensorflow.SerializedDType) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SerializedDType) + private static final org.tensorflow.proto.SerializedDType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SerializedDType(); + } + + public static org.tensorflow.proto.SerializedDType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SerializedDType 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 org.tensorflow.proto.SerializedDType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SerializedDTypeOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SerializedDTypeOrBuilder.java new file mode 100644 index 00000000000..529e5936962 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SerializedDTypeOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/types.proto + +package org.tensorflow.proto; + +public interface SerializedDTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.SerializedDType) + com.google.protobuf.MessageOrBuilder { + + /** + * .tensorflow.DataType datatype = 1; + * @return The enum numeric value on the wire for datatype. + */ + int getDatatypeValue(); + /** + * .tensorflow.DataType datatype = 1; + * @return The datatype. + */ + org.tensorflow.proto.DataType getDatatype(); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ServerDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ServerDef.java new file mode 100644 index 00000000000..7f16f8ba6e1 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ServerDef.java @@ -0,0 +1,1710 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/tensorflow_server.proto + +package org.tensorflow.proto; + +/** + *
+ * Defines the configuration of a single TensorFlow server.
+ * 
+ * + * Protobuf type {@code tensorflow.ServerDef} + */ +public final class ServerDef extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.ServerDef) + ServerDefOrBuilder { +private static final long serialVersionUID = 0L; + // Use ServerDef.newBuilder() to construct. + private ServerDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ServerDef() { + jobName_ = ""; + protocol_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ServerDef(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ServerProtos.internal_static_tensorflow_ServerDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ServerProtos.internal_static_tensorflow_ServerDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ServerDef.class, org.tensorflow.proto.ServerDef.Builder.class); + } + + public static final int CLUSTER_FIELD_NUMBER = 1; + private org.tensorflow.proto.ClusterDef cluster_; + /** + *
+   * The cluster of which this server is a member.
+   * 
+ * + * .tensorflow.ClusterDef cluster = 1; + * @return Whether the cluster field is set. + */ + @java.lang.Override + public boolean hasCluster() { + return cluster_ != null; + } + /** + *
+   * The cluster of which this server is a member.
+   * 
+ * + * .tensorflow.ClusterDef cluster = 1; + * @return The cluster. + */ + @java.lang.Override + public org.tensorflow.proto.ClusterDef getCluster() { + return cluster_ == null ? org.tensorflow.proto.ClusterDef.getDefaultInstance() : cluster_; + } + /** + *
+   * The cluster of which this server is a member.
+   * 
+ * + * .tensorflow.ClusterDef cluster = 1; + */ + @java.lang.Override + public org.tensorflow.proto.ClusterDefOrBuilder getClusterOrBuilder() { + return getCluster(); + } + + public static final int JOB_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object jobName_; + /** + *
+   * The name of the job of which this server is a member.
+   * NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field
+   * that matches this name.
+   * 
+ * + * string job_name = 2; + * @return The jobName. + */ + @java.lang.Override + public java.lang.String getJobName() { + java.lang.Object ref = jobName_; + 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(); + jobName_ = s; + return s; + } + } + /** + *
+   * The name of the job of which this server is a member.
+   * NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field
+   * that matches this name.
+   * 
+ * + * string job_name = 2; + * @return The bytes for jobName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getJobNameBytes() { + java.lang.Object ref = jobName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jobName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPLICA_FIELD_NUMBER = 8; + private int replica_; + /** + *
+   * Replica this server manages.
+   * 
+ * + * int32 replica = 8; + * @return The replica. + */ + @java.lang.Override + public int getReplica() { + return replica_; + } + + public static final int TASK_INDEX_FIELD_NUMBER = 3; + private int taskIndex_; + /** + *
+   * The task index of this server in its job.
+   * NOTE: The `cluster` field must contain a `JobDef` with a matching `name`
+   * and a mapping in its `tasks` field for this index.
+   * 
+ * + * int32 task_index = 3; + * @return The taskIndex. + */ + @java.lang.Override + public int getTaskIndex() { + return taskIndex_; + } + + public static final int DEFAULT_SESSION_CONFIG_FIELD_NUMBER = 4; + private org.tensorflow.proto.ConfigProto defaultSessionConfig_; + /** + *
+   * The default configuration for sessions that run on this server.
+   * 
+ * + * .tensorflow.ConfigProto default_session_config = 4; + * @return Whether the defaultSessionConfig field is set. + */ + @java.lang.Override + public boolean hasDefaultSessionConfig() { + return defaultSessionConfig_ != null; + } + /** + *
+   * The default configuration for sessions that run on this server.
+   * 
+ * + * .tensorflow.ConfigProto default_session_config = 4; + * @return The defaultSessionConfig. + */ + @java.lang.Override + public org.tensorflow.proto.ConfigProto getDefaultSessionConfig() { + return defaultSessionConfig_ == null ? org.tensorflow.proto.ConfigProto.getDefaultInstance() : defaultSessionConfig_; + } + /** + *
+   * The default configuration for sessions that run on this server.
+   * 
+ * + * .tensorflow.ConfigProto default_session_config = 4; + */ + @java.lang.Override + public org.tensorflow.proto.ConfigProtoOrBuilder getDefaultSessionConfigOrBuilder() { + return getDefaultSessionConfig(); + } + + public static final int PROTOCOL_FIELD_NUMBER = 5; + private volatile java.lang.Object protocol_; + /** + *
+   * The protocol to be used by this server.
+   * Acceptable values include: "grpc", "grpc+verbs".
+   * 
+ * + * string protocol = 5; + * @return The protocol. + */ + @java.lang.Override + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + 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(); + protocol_ = s; + return s; + } + } + /** + *
+   * The protocol to be used by this server.
+   * Acceptable values include: "grpc", "grpc+verbs".
+   * 
+ * + * string protocol = 5; + * @return The bytes for protocol. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PORT_FIELD_NUMBER = 6; + private int port_; + /** + *
+   * The server port. If not set, then we identify the port from the job_name.
+   * 
+ * + * int32 port = 6; + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + + public static final int CLUSTER_DEVICE_FILTERS_FIELD_NUMBER = 7; + private org.tensorflow.proto.ClusterDeviceFilters clusterDeviceFilters_; + /** + *
+   * Device filters for remote tasks in the cluster.
+   * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
+   * 
+ * + * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; + * @return Whether the clusterDeviceFilters field is set. + */ + @java.lang.Override + public boolean hasClusterDeviceFilters() { + return clusterDeviceFilters_ != null; + } + /** + *
+   * Device filters for remote tasks in the cluster.
+   * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
+   * 
+ * + * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; + * @return The clusterDeviceFilters. + */ + @java.lang.Override + public org.tensorflow.proto.ClusterDeviceFilters getClusterDeviceFilters() { + return clusterDeviceFilters_ == null ? org.tensorflow.proto.ClusterDeviceFilters.getDefaultInstance() : clusterDeviceFilters_; + } + /** + *
+   * Device filters for remote tasks in the cluster.
+   * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
+   * 
+ * + * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; + */ + @java.lang.Override + public org.tensorflow.proto.ClusterDeviceFiltersOrBuilder getClusterDeviceFiltersOrBuilder() { + return getClusterDeviceFilters(); + } + + 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 (cluster_ != null) { + output.writeMessage(1, getCluster()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobName_); + } + if (taskIndex_ != 0) { + output.writeInt32(3, taskIndex_); + } + if (defaultSessionConfig_ != null) { + output.writeMessage(4, getDefaultSessionConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, protocol_); + } + if (port_ != 0) { + output.writeInt32(6, port_); + } + if (clusterDeviceFilters_ != null) { + output.writeMessage(7, getClusterDeviceFilters()); + } + if (replica_ != 0) { + output.writeInt32(8, replica_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (cluster_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCluster()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobName_); + } + if (taskIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, taskIndex_); + } + if (defaultSessionConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getDefaultSessionConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, protocol_); + } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, port_); + } + if (clusterDeviceFilters_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getClusterDeviceFilters()); + } + if (replica_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(8, replica_); + } + 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 org.tensorflow.proto.ServerDef)) { + return super.equals(obj); + } + org.tensorflow.proto.ServerDef other = (org.tensorflow.proto.ServerDef) obj; + + if (hasCluster() != other.hasCluster()) return false; + if (hasCluster()) { + if (!getCluster() + .equals(other.getCluster())) return false; + } + if (!getJobName() + .equals(other.getJobName())) return false; + if (getReplica() + != other.getReplica()) return false; + if (getTaskIndex() + != other.getTaskIndex()) return false; + if (hasDefaultSessionConfig() != other.hasDefaultSessionConfig()) return false; + if (hasDefaultSessionConfig()) { + if (!getDefaultSessionConfig() + .equals(other.getDefaultSessionConfig())) return false; + } + if (!getProtocol() + .equals(other.getProtocol())) return false; + if (getPort() + != other.getPort()) return false; + if (hasClusterDeviceFilters() != other.hasClusterDeviceFilters()) return false; + if (hasClusterDeviceFilters()) { + if (!getClusterDeviceFilters() + .equals(other.getClusterDeviceFilters())) 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 (hasCluster()) { + hash = (37 * hash) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCluster().hashCode(); + } + hash = (37 * hash) + JOB_NAME_FIELD_NUMBER; + hash = (53 * hash) + getJobName().hashCode(); + hash = (37 * hash) + REPLICA_FIELD_NUMBER; + hash = (53 * hash) + getReplica(); + hash = (37 * hash) + TASK_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getTaskIndex(); + if (hasDefaultSessionConfig()) { + hash = (37 * hash) + DEFAULT_SESSION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDefaultSessionConfig().hashCode(); + } + hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + getProtocol().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + if (hasClusterDeviceFilters()) { + hash = (37 * hash) + CLUSTER_DEVICE_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getClusterDeviceFilters().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.ServerDef parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ServerDef parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ServerDef parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ServerDef parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ServerDef parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.ServerDef parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.ServerDef parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ServerDef 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 org.tensorflow.proto.ServerDef parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ServerDef 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 org.tensorflow.proto.ServerDef parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.ServerDef 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(org.tensorflow.proto.ServerDef 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; + } + /** + *
+   * Defines the configuration of a single TensorFlow server.
+   * 
+ * + * Protobuf type {@code tensorflow.ServerDef} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.ServerDef) + org.tensorflow.proto.ServerDefOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ServerProtos.internal_static_tensorflow_ServerDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ServerProtos.internal_static_tensorflow_ServerDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.ServerDef.class, org.tensorflow.proto.ServerDef.Builder.class); + } + + // Construct using org.tensorflow.proto.ServerDef.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (clusterBuilder_ == null) { + cluster_ = null; + } else { + cluster_ = null; + clusterBuilder_ = null; + } + jobName_ = ""; + + replica_ = 0; + + taskIndex_ = 0; + + if (defaultSessionConfigBuilder_ == null) { + defaultSessionConfig_ = null; + } else { + defaultSessionConfig_ = null; + defaultSessionConfigBuilder_ = null; + } + protocol_ = ""; + + port_ = 0; + + if (clusterDeviceFiltersBuilder_ == null) { + clusterDeviceFilters_ = null; + } else { + clusterDeviceFilters_ = null; + clusterDeviceFiltersBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.ServerProtos.internal_static_tensorflow_ServerDef_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.ServerDef getDefaultInstanceForType() { + return org.tensorflow.proto.ServerDef.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.ServerDef build() { + org.tensorflow.proto.ServerDef result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.ServerDef buildPartial() { + org.tensorflow.proto.ServerDef result = new org.tensorflow.proto.ServerDef(this); + if (clusterBuilder_ == null) { + result.cluster_ = cluster_; + } else { + result.cluster_ = clusterBuilder_.build(); + } + result.jobName_ = jobName_; + result.replica_ = replica_; + result.taskIndex_ = taskIndex_; + if (defaultSessionConfigBuilder_ == null) { + result.defaultSessionConfig_ = defaultSessionConfig_; + } else { + result.defaultSessionConfig_ = defaultSessionConfigBuilder_.build(); + } + result.protocol_ = protocol_; + result.port_ = port_; + if (clusterDeviceFiltersBuilder_ == null) { + result.clusterDeviceFilters_ = clusterDeviceFilters_; + } else { + result.clusterDeviceFilters_ = clusterDeviceFiltersBuilder_.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 org.tensorflow.proto.ServerDef) { + return mergeFrom((org.tensorflow.proto.ServerDef)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.ServerDef other) { + if (other == org.tensorflow.proto.ServerDef.getDefaultInstance()) return this; + if (other.hasCluster()) { + mergeCluster(other.getCluster()); + } + if (!other.getJobName().isEmpty()) { + jobName_ = other.jobName_; + onChanged(); + } + if (other.getReplica() != 0) { + setReplica(other.getReplica()); + } + if (other.getTaskIndex() != 0) { + setTaskIndex(other.getTaskIndex()); + } + if (other.hasDefaultSessionConfig()) { + mergeDefaultSessionConfig(other.getDefaultSessionConfig()); + } + if (!other.getProtocol().isEmpty()) { + protocol_ = other.protocol_; + onChanged(); + } + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (other.hasClusterDeviceFilters()) { + mergeClusterDeviceFilters(other.getClusterDeviceFilters()); + } + 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( + getClusterFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + jobName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + taskIndex_ = input.readInt32(); + + break; + } // case 24 + case 34: { + input.readMessage( + getDefaultSessionConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + protocol_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: { + port_ = input.readInt32(); + + break; + } // case 48 + case 58: { + input.readMessage( + getClusterDeviceFiltersFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 58 + case 64: { + replica_ = input.readInt32(); + + break; + } // case 64 + 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 org.tensorflow.proto.ClusterDef cluster_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.ClusterDef, org.tensorflow.proto.ClusterDef.Builder, org.tensorflow.proto.ClusterDefOrBuilder> clusterBuilder_; + /** + *
+     * The cluster of which this server is a member.
+     * 
+ * + * .tensorflow.ClusterDef cluster = 1; + * @return Whether the cluster field is set. + */ + public boolean hasCluster() { + return clusterBuilder_ != null || cluster_ != null; + } + /** + *
+     * The cluster of which this server is a member.
+     * 
+ * + * .tensorflow.ClusterDef cluster = 1; + * @return The cluster. + */ + public org.tensorflow.proto.ClusterDef getCluster() { + if (clusterBuilder_ == null) { + return cluster_ == null ? org.tensorflow.proto.ClusterDef.getDefaultInstance() : cluster_; + } else { + return clusterBuilder_.getMessage(); + } + } + /** + *
+     * The cluster of which this server is a member.
+     * 
+ * + * .tensorflow.ClusterDef cluster = 1; + */ + public Builder setCluster(org.tensorflow.proto.ClusterDef value) { + if (clusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cluster_ = value; + onChanged(); + } else { + clusterBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The cluster of which this server is a member.
+     * 
+ * + * .tensorflow.ClusterDef cluster = 1; + */ + public Builder setCluster( + org.tensorflow.proto.ClusterDef.Builder builderForValue) { + if (clusterBuilder_ == null) { + cluster_ = builderForValue.build(); + onChanged(); + } else { + clusterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The cluster of which this server is a member.
+     * 
+ * + * .tensorflow.ClusterDef cluster = 1; + */ + public Builder mergeCluster(org.tensorflow.proto.ClusterDef value) { + if (clusterBuilder_ == null) { + if (cluster_ != null) { + cluster_ = + org.tensorflow.proto.ClusterDef.newBuilder(cluster_).mergeFrom(value).buildPartial(); + } else { + cluster_ = value; + } + onChanged(); + } else { + clusterBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The cluster of which this server is a member.
+     * 
+ * + * .tensorflow.ClusterDef cluster = 1; + */ + public Builder clearCluster() { + if (clusterBuilder_ == null) { + cluster_ = null; + onChanged(); + } else { + cluster_ = null; + clusterBuilder_ = null; + } + + return this; + } + /** + *
+     * The cluster of which this server is a member.
+     * 
+ * + * .tensorflow.ClusterDef cluster = 1; + */ + public org.tensorflow.proto.ClusterDef.Builder getClusterBuilder() { + + onChanged(); + return getClusterFieldBuilder().getBuilder(); + } + /** + *
+     * The cluster of which this server is a member.
+     * 
+ * + * .tensorflow.ClusterDef cluster = 1; + */ + public org.tensorflow.proto.ClusterDefOrBuilder getClusterOrBuilder() { + if (clusterBuilder_ != null) { + return clusterBuilder_.getMessageOrBuilder(); + } else { + return cluster_ == null ? + org.tensorflow.proto.ClusterDef.getDefaultInstance() : cluster_; + } + } + /** + *
+     * The cluster of which this server is a member.
+     * 
+ * + * .tensorflow.ClusterDef cluster = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.ClusterDef, org.tensorflow.proto.ClusterDef.Builder, org.tensorflow.proto.ClusterDefOrBuilder> + getClusterFieldBuilder() { + if (clusterBuilder_ == null) { + clusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.ClusterDef, org.tensorflow.proto.ClusterDef.Builder, org.tensorflow.proto.ClusterDefOrBuilder>( + getCluster(), + getParentForChildren(), + isClean()); + cluster_ = null; + } + return clusterBuilder_; + } + + private java.lang.Object jobName_ = ""; + /** + *
+     * The name of the job of which this server is a member.
+     * NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field
+     * that matches this name.
+     * 
+ * + * string job_name = 2; + * @return The jobName. + */ + public java.lang.String getJobName() { + java.lang.Object ref = jobName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the job of which this server is a member.
+     * NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field
+     * that matches this name.
+     * 
+ * + * string job_name = 2; + * @return The bytes for jobName. + */ + public com.google.protobuf.ByteString + getJobNameBytes() { + java.lang.Object ref = jobName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jobName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the job of which this server is a member.
+     * NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field
+     * that matches this name.
+     * 
+ * + * string job_name = 2; + * @param value The jobName to set. + * @return This builder for chaining. + */ + public Builder setJobName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobName_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the job of which this server is a member.
+     * NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field
+     * that matches this name.
+     * 
+ * + * string job_name = 2; + * @return This builder for chaining. + */ + public Builder clearJobName() { + + jobName_ = getDefaultInstance().getJobName(); + onChanged(); + return this; + } + /** + *
+     * The name of the job of which this server is a member.
+     * NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field
+     * that matches this name.
+     * 
+ * + * string job_name = 2; + * @param value The bytes for jobName to set. + * @return This builder for chaining. + */ + public Builder setJobNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobName_ = value; + onChanged(); + return this; + } + + private int replica_ ; + /** + *
+     * Replica this server manages.
+     * 
+ * + * int32 replica = 8; + * @return The replica. + */ + @java.lang.Override + public int getReplica() { + return replica_; + } + /** + *
+     * Replica this server manages.
+     * 
+ * + * int32 replica = 8; + * @param value The replica to set. + * @return This builder for chaining. + */ + public Builder setReplica(int value) { + + replica_ = value; + onChanged(); + return this; + } + /** + *
+     * Replica this server manages.
+     * 
+ * + * int32 replica = 8; + * @return This builder for chaining. + */ + public Builder clearReplica() { + + replica_ = 0; + onChanged(); + return this; + } + + private int taskIndex_ ; + /** + *
+     * The task index of this server in its job.
+     * NOTE: The `cluster` field must contain a `JobDef` with a matching `name`
+     * and a mapping in its `tasks` field for this index.
+     * 
+ * + * int32 task_index = 3; + * @return The taskIndex. + */ + @java.lang.Override + public int getTaskIndex() { + return taskIndex_; + } + /** + *
+     * The task index of this server in its job.
+     * NOTE: The `cluster` field must contain a `JobDef` with a matching `name`
+     * and a mapping in its `tasks` field for this index.
+     * 
+ * + * int32 task_index = 3; + * @param value The taskIndex to set. + * @return This builder for chaining. + */ + public Builder setTaskIndex(int value) { + + taskIndex_ = value; + onChanged(); + return this; + } + /** + *
+     * The task index of this server in its job.
+     * NOTE: The `cluster` field must contain a `JobDef` with a matching `name`
+     * and a mapping in its `tasks` field for this index.
+     * 
+ * + * int32 task_index = 3; + * @return This builder for chaining. + */ + public Builder clearTaskIndex() { + + taskIndex_ = 0; + onChanged(); + return this; + } + + private org.tensorflow.proto.ConfigProto defaultSessionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.ConfigProto, org.tensorflow.proto.ConfigProto.Builder, org.tensorflow.proto.ConfigProtoOrBuilder> defaultSessionConfigBuilder_; + /** + *
+     * The default configuration for sessions that run on this server.
+     * 
+ * + * .tensorflow.ConfigProto default_session_config = 4; + * @return Whether the defaultSessionConfig field is set. + */ + public boolean hasDefaultSessionConfig() { + return defaultSessionConfigBuilder_ != null || defaultSessionConfig_ != null; + } + /** + *
+     * The default configuration for sessions that run on this server.
+     * 
+ * + * .tensorflow.ConfigProto default_session_config = 4; + * @return The defaultSessionConfig. + */ + public org.tensorflow.proto.ConfigProto getDefaultSessionConfig() { + if (defaultSessionConfigBuilder_ == null) { + return defaultSessionConfig_ == null ? org.tensorflow.proto.ConfigProto.getDefaultInstance() : defaultSessionConfig_; + } else { + return defaultSessionConfigBuilder_.getMessage(); + } + } + /** + *
+     * The default configuration for sessions that run on this server.
+     * 
+ * + * .tensorflow.ConfigProto default_session_config = 4; + */ + public Builder setDefaultSessionConfig(org.tensorflow.proto.ConfigProto value) { + if (defaultSessionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultSessionConfig_ = value; + onChanged(); + } else { + defaultSessionConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The default configuration for sessions that run on this server.
+     * 
+ * + * .tensorflow.ConfigProto default_session_config = 4; + */ + public Builder setDefaultSessionConfig( + org.tensorflow.proto.ConfigProto.Builder builderForValue) { + if (defaultSessionConfigBuilder_ == null) { + defaultSessionConfig_ = builderForValue.build(); + onChanged(); + } else { + defaultSessionConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The default configuration for sessions that run on this server.
+     * 
+ * + * .tensorflow.ConfigProto default_session_config = 4; + */ + public Builder mergeDefaultSessionConfig(org.tensorflow.proto.ConfigProto value) { + if (defaultSessionConfigBuilder_ == null) { + if (defaultSessionConfig_ != null) { + defaultSessionConfig_ = + org.tensorflow.proto.ConfigProto.newBuilder(defaultSessionConfig_).mergeFrom(value).buildPartial(); + } else { + defaultSessionConfig_ = value; + } + onChanged(); + } else { + defaultSessionConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The default configuration for sessions that run on this server.
+     * 
+ * + * .tensorflow.ConfigProto default_session_config = 4; + */ + public Builder clearDefaultSessionConfig() { + if (defaultSessionConfigBuilder_ == null) { + defaultSessionConfig_ = null; + onChanged(); + } else { + defaultSessionConfig_ = null; + defaultSessionConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * The default configuration for sessions that run on this server.
+     * 
+ * + * .tensorflow.ConfigProto default_session_config = 4; + */ + public org.tensorflow.proto.ConfigProto.Builder getDefaultSessionConfigBuilder() { + + onChanged(); + return getDefaultSessionConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The default configuration for sessions that run on this server.
+     * 
+ * + * .tensorflow.ConfigProto default_session_config = 4; + */ + public org.tensorflow.proto.ConfigProtoOrBuilder getDefaultSessionConfigOrBuilder() { + if (defaultSessionConfigBuilder_ != null) { + return defaultSessionConfigBuilder_.getMessageOrBuilder(); + } else { + return defaultSessionConfig_ == null ? + org.tensorflow.proto.ConfigProto.getDefaultInstance() : defaultSessionConfig_; + } + } + /** + *
+     * The default configuration for sessions that run on this server.
+     * 
+ * + * .tensorflow.ConfigProto default_session_config = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.ConfigProto, org.tensorflow.proto.ConfigProto.Builder, org.tensorflow.proto.ConfigProtoOrBuilder> + getDefaultSessionConfigFieldBuilder() { + if (defaultSessionConfigBuilder_ == null) { + defaultSessionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.ConfigProto, org.tensorflow.proto.ConfigProto.Builder, org.tensorflow.proto.ConfigProtoOrBuilder>( + getDefaultSessionConfig(), + getParentForChildren(), + isClean()); + defaultSessionConfig_ = null; + } + return defaultSessionConfigBuilder_; + } + + private java.lang.Object protocol_ = ""; + /** + *
+     * The protocol to be used by this server.
+     * Acceptable values include: "grpc", "grpc+verbs".
+     * 
+ * + * string protocol = 5; + * @return The protocol. + */ + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + protocol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The protocol to be used by this server.
+     * Acceptable values include: "grpc", "grpc+verbs".
+     * 
+ * + * string protocol = 5; + * @return The bytes for protocol. + */ + public com.google.protobuf.ByteString + getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The protocol to be used by this server.
+     * Acceptable values include: "grpc", "grpc+verbs".
+     * 
+ * + * string protocol = 5; + * @param value The protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocol( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + protocol_ = value; + onChanged(); + return this; + } + /** + *
+     * The protocol to be used by this server.
+     * Acceptable values include: "grpc", "grpc+verbs".
+     * 
+ * + * string protocol = 5; + * @return This builder for chaining. + */ + public Builder clearProtocol() { + + protocol_ = getDefaultInstance().getProtocol(); + onChanged(); + return this; + } + /** + *
+     * The protocol to be used by this server.
+     * Acceptable values include: "grpc", "grpc+verbs".
+     * 
+ * + * string protocol = 5; + * @param value The bytes for protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocolBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + protocol_ = value; + onChanged(); + return this; + } + + private int port_ ; + /** + *
+     * The server port. If not set, then we identify the port from the job_name.
+     * 
+ * + * int32 port = 6; + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + /** + *
+     * The server port. If not set, then we identify the port from the job_name.
+     * 
+ * + * int32 port = 6; + * @param value The port to set. + * @return This builder for chaining. + */ + public Builder setPort(int value) { + + port_ = value; + onChanged(); + return this; + } + /** + *
+     * The server port. If not set, then we identify the port from the job_name.
+     * 
+ * + * int32 port = 6; + * @return This builder for chaining. + */ + public Builder clearPort() { + + port_ = 0; + onChanged(); + return this; + } + + private org.tensorflow.proto.ClusterDeviceFilters clusterDeviceFilters_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.ClusterDeviceFilters, org.tensorflow.proto.ClusterDeviceFilters.Builder, org.tensorflow.proto.ClusterDeviceFiltersOrBuilder> clusterDeviceFiltersBuilder_; + /** + *
+     * Device filters for remote tasks in the cluster.
+     * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
+     * 
+ * + * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; + * @return Whether the clusterDeviceFilters field is set. + */ + public boolean hasClusterDeviceFilters() { + return clusterDeviceFiltersBuilder_ != null || clusterDeviceFilters_ != null; + } + /** + *
+     * Device filters for remote tasks in the cluster.
+     * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
+     * 
+ * + * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; + * @return The clusterDeviceFilters. + */ + public org.tensorflow.proto.ClusterDeviceFilters getClusterDeviceFilters() { + if (clusterDeviceFiltersBuilder_ == null) { + return clusterDeviceFilters_ == null ? org.tensorflow.proto.ClusterDeviceFilters.getDefaultInstance() : clusterDeviceFilters_; + } else { + return clusterDeviceFiltersBuilder_.getMessage(); + } + } + /** + *
+     * Device filters for remote tasks in the cluster.
+     * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
+     * 
+ * + * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; + */ + public Builder setClusterDeviceFilters(org.tensorflow.proto.ClusterDeviceFilters value) { + if (clusterDeviceFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clusterDeviceFilters_ = value; + onChanged(); + } else { + clusterDeviceFiltersBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Device filters for remote tasks in the cluster.
+     * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
+     * 
+ * + * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; + */ + public Builder setClusterDeviceFilters( + org.tensorflow.proto.ClusterDeviceFilters.Builder builderForValue) { + if (clusterDeviceFiltersBuilder_ == null) { + clusterDeviceFilters_ = builderForValue.build(); + onChanged(); + } else { + clusterDeviceFiltersBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Device filters for remote tasks in the cluster.
+     * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
+     * 
+ * + * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; + */ + public Builder mergeClusterDeviceFilters(org.tensorflow.proto.ClusterDeviceFilters value) { + if (clusterDeviceFiltersBuilder_ == null) { + if (clusterDeviceFilters_ != null) { + clusterDeviceFilters_ = + org.tensorflow.proto.ClusterDeviceFilters.newBuilder(clusterDeviceFilters_).mergeFrom(value).buildPartial(); + } else { + clusterDeviceFilters_ = value; + } + onChanged(); + } else { + clusterDeviceFiltersBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Device filters for remote tasks in the cluster.
+     * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
+     * 
+ * + * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; + */ + public Builder clearClusterDeviceFilters() { + if (clusterDeviceFiltersBuilder_ == null) { + clusterDeviceFilters_ = null; + onChanged(); + } else { + clusterDeviceFilters_ = null; + clusterDeviceFiltersBuilder_ = null; + } + + return this; + } + /** + *
+     * Device filters for remote tasks in the cluster.
+     * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
+     * 
+ * + * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; + */ + public org.tensorflow.proto.ClusterDeviceFilters.Builder getClusterDeviceFiltersBuilder() { + + onChanged(); + return getClusterDeviceFiltersFieldBuilder().getBuilder(); + } + /** + *
+     * Device filters for remote tasks in the cluster.
+     * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
+     * 
+ * + * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; + */ + public org.tensorflow.proto.ClusterDeviceFiltersOrBuilder getClusterDeviceFiltersOrBuilder() { + if (clusterDeviceFiltersBuilder_ != null) { + return clusterDeviceFiltersBuilder_.getMessageOrBuilder(); + } else { + return clusterDeviceFilters_ == null ? + org.tensorflow.proto.ClusterDeviceFilters.getDefaultInstance() : clusterDeviceFilters_; + } + } + /** + *
+     * Device filters for remote tasks in the cluster.
+     * NOTE: This is an experimental feature and only effective in TensorFlow 2.x.
+     * 
+ * + * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.ClusterDeviceFilters, org.tensorflow.proto.ClusterDeviceFilters.Builder, org.tensorflow.proto.ClusterDeviceFiltersOrBuilder> + getClusterDeviceFiltersFieldBuilder() { + if (clusterDeviceFiltersBuilder_ == null) { + clusterDeviceFiltersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.ClusterDeviceFilters, org.tensorflow.proto.ClusterDeviceFilters.Builder, org.tensorflow.proto.ClusterDeviceFiltersOrBuilder>( + getClusterDeviceFilters(), + getParentForChildren(), + isClean()); + clusterDeviceFilters_ = null; + } + return clusterDeviceFiltersBuilder_; + } + @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:tensorflow.ServerDef) + } + + // @@protoc_insertion_point(class_scope:tensorflow.ServerDef) + private static final org.tensorflow.proto.ServerDef DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.ServerDef(); + } + + public static org.tensorflow.proto.ServerDef getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServerDef 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 org.tensorflow.proto.ServerDef getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ServerDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ServerDefOrBuilder.java similarity index 77% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ServerDefOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ServerDefOrBuilder.java index 6c1a12b002d..bab65d9cac9 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ServerDefOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ServerDefOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/tensorflow_server.proto -package org.tensorflow.proto.distruntime; +package org.tensorflow.proto; public interface ServerDefOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.ServerDef) @@ -13,6 +13,7 @@ public interface ServerDefOrBuilder extends * * * .tensorflow.ClusterDef cluster = 1; + * @return Whether the cluster field is set. */ boolean hasCluster(); /** @@ -21,8 +22,9 @@ public interface ServerDefOrBuilder extends * * * .tensorflow.ClusterDef cluster = 1; + * @return The cluster. */ - org.tensorflow.proto.distruntime.ClusterDef getCluster(); + org.tensorflow.proto.ClusterDef getCluster(); /** *
    * The cluster of which this server is a member.
@@ -30,7 +32,7 @@ public interface ServerDefOrBuilder extends
    *
    * .tensorflow.ClusterDef cluster = 1;
    */
-  org.tensorflow.proto.distruntime.ClusterDefOrBuilder getClusterOrBuilder();
+  org.tensorflow.proto.ClusterDefOrBuilder getClusterOrBuilder();
 
   /**
    * 
@@ -40,6 +42,7 @@ public interface ServerDefOrBuilder extends
    * 
* * string job_name = 2; + * @return The jobName. */ java.lang.String getJobName(); /** @@ -50,10 +53,21 @@ public interface ServerDefOrBuilder extends *
* * string job_name = 2; + * @return The bytes for jobName. */ com.google.protobuf.ByteString getJobNameBytes(); + /** + *
+   * Replica this server manages.
+   * 
+ * + * int32 replica = 8; + * @return The replica. + */ + int getReplica(); + /** *
    * The task index of this server in its job.
@@ -62,6 +76,7 @@ public interface ServerDefOrBuilder extends
    * 
* * int32 task_index = 3; + * @return The taskIndex. */ int getTaskIndex(); @@ -71,6 +86,7 @@ public interface ServerDefOrBuilder extends * * * .tensorflow.ConfigProto default_session_config = 4; + * @return Whether the defaultSessionConfig field is set. */ boolean hasDefaultSessionConfig(); /** @@ -79,8 +95,9 @@ public interface ServerDefOrBuilder extends * * * .tensorflow.ConfigProto default_session_config = 4; + * @return The defaultSessionConfig. */ - org.tensorflow.proto.framework.ConfigProto getDefaultSessionConfig(); + org.tensorflow.proto.ConfigProto getDefaultSessionConfig(); /** *
    * The default configuration for sessions that run on this server.
@@ -88,7 +105,7 @@ public interface ServerDefOrBuilder extends
    *
    * .tensorflow.ConfigProto default_session_config = 4;
    */
-  org.tensorflow.proto.framework.ConfigProtoOrBuilder getDefaultSessionConfigOrBuilder();
+  org.tensorflow.proto.ConfigProtoOrBuilder getDefaultSessionConfigOrBuilder();
 
   /**
    * 
@@ -97,6 +114,7 @@ public interface ServerDefOrBuilder extends
    * 
* * string protocol = 5; + * @return The protocol. */ java.lang.String getProtocol(); /** @@ -106,6 +124,7 @@ public interface ServerDefOrBuilder extends *
* * string protocol = 5; + * @return The bytes for protocol. */ com.google.protobuf.ByteString getProtocolBytes(); @@ -116,6 +135,7 @@ public interface ServerDefOrBuilder extends * * * int32 port = 6; + * @return The port. */ int getPort(); @@ -126,6 +146,7 @@ public interface ServerDefOrBuilder extends * * * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; + * @return Whether the clusterDeviceFilters field is set. */ boolean hasClusterDeviceFilters(); /** @@ -135,8 +156,9 @@ public interface ServerDefOrBuilder extends * * * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7; + * @return The clusterDeviceFilters. */ - org.tensorflow.proto.distruntime.ClusterDeviceFilters getClusterDeviceFilters(); + org.tensorflow.proto.ClusterDeviceFilters getClusterDeviceFilters(); /** *
    * Device filters for remote tasks in the cluster.
@@ -145,5 +167,5 @@ public interface ServerDefOrBuilder extends
    *
    * .tensorflow.ClusterDeviceFilters cluster_device_filters = 7;
    */
-  org.tensorflow.proto.distruntime.ClusterDeviceFiltersOrBuilder getClusterDeviceFiltersOrBuilder();
+  org.tensorflow.proto.ClusterDeviceFiltersOrBuilder getClusterDeviceFiltersOrBuilder();
 }
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ServerProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ServerProtos.java
new file mode 100644
index 00000000000..d727958a5b7
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ServerProtos.java
@@ -0,0 +1,66 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/protobuf/tensorflow_server.proto
+
+package org.tensorflow.proto;
+
+public final class ServerProtos {
+  private ServerProtos() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_ServerDef_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_ServerDef_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n0tensorflow/core/protobuf/tensorflow_se" +
+      "rver.proto\022\ntensorflow\032&tensorflow/core/" +
+      "protobuf/cluster.proto\032%tensorflow/core/" +
+      "protobuf/config.proto\032-tensorflow/core/p" +
+      "rotobuf/device_filters.proto\"\206\002\n\tServerD" +
+      "ef\022\'\n\007cluster\030\001 \001(\0132\026.tensorflow.Cluster" +
+      "Def\022\020\n\010job_name\030\002 \001(\t\022\017\n\007replica\030\010 \001(\005\022\022" +
+      "\n\ntask_index\030\003 \001(\005\0227\n\026default_session_co" +
+      "nfig\030\004 \001(\0132\027.tensorflow.ConfigProto\022\020\n\010p" +
+      "rotocol\030\005 \001(\t\022\014\n\004port\030\006 \001(\005\022@\n\026cluster_d" +
+      "evice_filters\030\007 \001(\0132 .tensorflow.Cluster" +
+      "DeviceFiltersB\200\001\n\024org.tensorflow.protoB\014" +
+      "ServerProtosP\001ZUgithub.com/tensorflow/te" +
+      "nsorflow/tensorflow/go/core/protobuf/for" +
+      "_core_protos_go_proto\370\001\001b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          org.tensorflow.proto.ClusterProtos.getDescriptor(),
+          org.tensorflow.proto.ConfigProtos.getDescriptor(),
+          org.tensorflow.proto.DeviceFiltersProtos.getDescriptor(),
+        });
+    internal_static_tensorflow_ServerDef_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_tensorflow_ServerDef_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_ServerDef_descriptor,
+        new java.lang.String[] { "Cluster", "JobName", "Replica", "TaskIndex", "DefaultSessionConfig", "Protocol", "Port", "ClusterDeviceFilters", });
+    org.tensorflow.proto.ClusterProtos.getDescriptor();
+    org.tensorflow.proto.ConfigProtos.getDescriptor();
+    org.tensorflow.proto.DeviceFiltersProtos.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SessionLog.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SessionLog.java
new file mode 100644
index 00000000000..7bcacf95a4c
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SessionLog.java
@@ -0,0 +1,932 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/util/event.proto
+
+package org.tensorflow.proto;
+
+/**
+ * 
+ * Protocol buffer used for logging session state.
+ * 
+ * + * Protobuf type {@code tensorflow.SessionLog} + */ +public final class SessionLog extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SessionLog) + SessionLogOrBuilder { +private static final long serialVersionUID = 0L; + // Use SessionLog.newBuilder() to construct. + private SessionLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SessionLog() { + status_ = 0; + checkpointPath_ = ""; + msg_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SessionLog(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_SessionLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_SessionLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SessionLog.class, org.tensorflow.proto.SessionLog.Builder.class); + } + + /** + * Protobuf enum {@code tensorflow.SessionLog.SessionStatus} + */ + public enum SessionStatus + implements com.google.protobuf.ProtocolMessageEnum { + /** + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + * START = 1; + */ + START(1), + /** + * STOP = 2; + */ + STOP(2), + /** + * CHECKPOINT = 3; + */ + CHECKPOINT(3), + UNRECOGNIZED(-1), + ; + + /** + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + /** + * START = 1; + */ + public static final int START_VALUE = 1; + /** + * STOP = 2; + */ + public static final int STOP_VALUE = 2; + /** + * CHECKPOINT = 3; + */ + public static final int CHECKPOINT_VALUE = 3; + + + 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 SessionStatus 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 SessionStatus forNumber(int value) { + switch (value) { + case 0: return STATUS_UNSPECIFIED; + case 1: return START; + case 2: return STOP; + case 3: return CHECKPOINT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SessionStatus> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SessionStatus findValueByNumber(int number) { + return SessionStatus.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 org.tensorflow.proto.SessionLog.getDescriptor().getEnumTypes().get(0); + } + + private static final SessionStatus[] VALUES = values(); + + public static SessionStatus 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 SessionStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:tensorflow.SessionLog.SessionStatus) + } + + public static final int STATUS_FIELD_NUMBER = 1; + private int status_; + /** + * .tensorflow.SessionLog.SessionStatus status = 1; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .tensorflow.SessionLog.SessionStatus status = 1; + * @return The status. + */ + @java.lang.Override public org.tensorflow.proto.SessionLog.SessionStatus getStatus() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.SessionLog.SessionStatus result = org.tensorflow.proto.SessionLog.SessionStatus.valueOf(status_); + return result == null ? org.tensorflow.proto.SessionLog.SessionStatus.UNRECOGNIZED : result; + } + + public static final int CHECKPOINT_PATH_FIELD_NUMBER = 2; + private volatile java.lang.Object checkpointPath_; + /** + *
+   * This checkpoint_path contains both the path and filename.
+   * 
+ * + * string checkpoint_path = 2; + * @return The checkpointPath. + */ + @java.lang.Override + public java.lang.String getCheckpointPath() { + java.lang.Object ref = checkpointPath_; + 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(); + checkpointPath_ = s; + return s; + } + } + /** + *
+   * This checkpoint_path contains both the path and filename.
+   * 
+ * + * string checkpoint_path = 2; + * @return The bytes for checkpointPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCheckpointPathBytes() { + java.lang.Object ref = checkpointPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + checkpointPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MSG_FIELD_NUMBER = 3; + private volatile java.lang.Object msg_; + /** + * string msg = 3; + * @return The msg. + */ + @java.lang.Override + public java.lang.String getMsg() { + java.lang.Object ref = msg_; + 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(); + msg_ = s; + return s; + } + } + /** + * string msg = 3; + * @return The bytes for msg. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMsgBytes() { + java.lang.Object ref = msg_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + msg_ = 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 (status_ != org.tensorflow.proto.SessionLog.SessionStatus.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(1, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(checkpointPath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, checkpointPath_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msg_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, msg_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (status_ != org.tensorflow.proto.SessionLog.SessionStatus.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(checkpointPath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, checkpointPath_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msg_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, msg_); + } + 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 org.tensorflow.proto.SessionLog)) { + return super.equals(obj); + } + org.tensorflow.proto.SessionLog other = (org.tensorflow.proto.SessionLog) obj; + + if (status_ != other.status_) return false; + if (!getCheckpointPath() + .equals(other.getCheckpointPath())) return false; + if (!getMsg() + .equals(other.getMsg())) 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) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + CHECKPOINT_PATH_FIELD_NUMBER; + hash = (53 * hash) + getCheckpointPath().hashCode(); + hash = (37 * hash) + MSG_FIELD_NUMBER; + hash = (53 * hash) + getMsg().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SessionLog parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SessionLog parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SessionLog parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SessionLog parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SessionLog parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SessionLog parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SessionLog parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SessionLog 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 org.tensorflow.proto.SessionLog parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SessionLog 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 org.tensorflow.proto.SessionLog parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SessionLog 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(org.tensorflow.proto.SessionLog 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; + } + /** + *
+   * Protocol buffer used for logging session state.
+   * 
+ * + * Protobuf type {@code tensorflow.SessionLog} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SessionLog) + org.tensorflow.proto.SessionLogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_SessionLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_SessionLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SessionLog.class, org.tensorflow.proto.SessionLog.Builder.class); + } + + // Construct using org.tensorflow.proto.SessionLog.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + status_ = 0; + + checkpointPath_ = ""; + + msg_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_SessionLog_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SessionLog getDefaultInstanceForType() { + return org.tensorflow.proto.SessionLog.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SessionLog build() { + org.tensorflow.proto.SessionLog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SessionLog buildPartial() { + org.tensorflow.proto.SessionLog result = new org.tensorflow.proto.SessionLog(this); + result.status_ = status_; + result.checkpointPath_ = checkpointPath_; + result.msg_ = msg_; + 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 org.tensorflow.proto.SessionLog) { + return mergeFrom((org.tensorflow.proto.SessionLog)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SessionLog other) { + if (other == org.tensorflow.proto.SessionLog.getDefaultInstance()) return this; + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getCheckpointPath().isEmpty()) { + checkpointPath_ = other.checkpointPath_; + onChanged(); + } + if (!other.getMsg().isEmpty()) { + msg_ = other.msg_; + 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 8: { + status_ = input.readEnum(); + + break; + } // case 8 + case 18: { + checkpointPath_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + msg_ = input.readStringRequireUtf8(); + + break; + } // case 26 + 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 status_ = 0; + /** + * .tensorflow.SessionLog.SessionStatus status = 1; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .tensorflow.SessionLog.SessionStatus status = 1; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + + status_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.SessionLog.SessionStatus status = 1; + * @return The status. + */ + @java.lang.Override + public org.tensorflow.proto.SessionLog.SessionStatus getStatus() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.SessionLog.SessionStatus result = org.tensorflow.proto.SessionLog.SessionStatus.valueOf(status_); + return result == null ? org.tensorflow.proto.SessionLog.SessionStatus.UNRECOGNIZED : result; + } + /** + * .tensorflow.SessionLog.SessionStatus status = 1; + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(org.tensorflow.proto.SessionLog.SessionStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.SessionLog.SessionStatus status = 1; + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object checkpointPath_ = ""; + /** + *
+     * This checkpoint_path contains both the path and filename.
+     * 
+ * + * string checkpoint_path = 2; + * @return The checkpointPath. + */ + public java.lang.String getCheckpointPath() { + java.lang.Object ref = checkpointPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + checkpointPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * This checkpoint_path contains both the path and filename.
+     * 
+ * + * string checkpoint_path = 2; + * @return The bytes for checkpointPath. + */ + public com.google.protobuf.ByteString + getCheckpointPathBytes() { + java.lang.Object ref = checkpointPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + checkpointPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * This checkpoint_path contains both the path and filename.
+     * 
+ * + * string checkpoint_path = 2; + * @param value The checkpointPath to set. + * @return This builder for chaining. + */ + public Builder setCheckpointPath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + checkpointPath_ = value; + onChanged(); + return this; + } + /** + *
+     * This checkpoint_path contains both the path and filename.
+     * 
+ * + * string checkpoint_path = 2; + * @return This builder for chaining. + */ + public Builder clearCheckpointPath() { + + checkpointPath_ = getDefaultInstance().getCheckpointPath(); + onChanged(); + return this; + } + /** + *
+     * This checkpoint_path contains both the path and filename.
+     * 
+ * + * string checkpoint_path = 2; + * @param value The bytes for checkpointPath to set. + * @return This builder for chaining. + */ + public Builder setCheckpointPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + checkpointPath_ = value; + onChanged(); + return this; + } + + private java.lang.Object msg_ = ""; + /** + * string msg = 3; + * @return The msg. + */ + public java.lang.String getMsg() { + java.lang.Object ref = msg_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + msg_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string msg = 3; + * @return The bytes for msg. + */ + public com.google.protobuf.ByteString + getMsgBytes() { + java.lang.Object ref = msg_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + msg_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string msg = 3; + * @param value The msg to set. + * @return This builder for chaining. + */ + public Builder setMsg( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + msg_ = value; + onChanged(); + return this; + } + /** + * string msg = 3; + * @return This builder for chaining. + */ + public Builder clearMsg() { + + msg_ = getDefaultInstance().getMsg(); + onChanged(); + return this; + } + /** + * string msg = 3; + * @param value The bytes for msg to set. + * @return This builder for chaining. + */ + public Builder setMsgBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + msg_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.SessionLog) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SessionLog) + private static final org.tensorflow.proto.SessionLog DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SessionLog(); + } + + public static org.tensorflow.proto.SessionLog getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionLog 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 org.tensorflow.proto.SessionLog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SessionLogOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SessionLogOrBuilder.java similarity index 77% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SessionLogOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SessionLogOrBuilder.java index 84ba691a95d..553c2b098f0 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SessionLogOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SessionLogOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/util/event.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; public interface SessionLogOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.SessionLog) @@ -9,12 +9,14 @@ public interface SessionLogOrBuilder extends /** * .tensorflow.SessionLog.SessionStatus status = 1; + * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * .tensorflow.SessionLog.SessionStatus status = 1; + * @return The status. */ - org.tensorflow.proto.util.SessionLog.SessionStatus getStatus(); + org.tensorflow.proto.SessionLog.SessionStatus getStatus(); /** *
@@ -22,6 +24,7 @@ public interface SessionLogOrBuilder extends
    * 
* * string checkpoint_path = 2; + * @return The checkpointPath. */ java.lang.String getCheckpointPath(); /** @@ -30,16 +33,19 @@ public interface SessionLogOrBuilder extends *
* * string checkpoint_path = 2; + * @return The bytes for checkpointPath. */ com.google.protobuf.ByteString getCheckpointPathBytes(); /** * string msg = 3; + * @return The msg. */ java.lang.String getMsg(); /** * string msg = 3; + * @return The bytes for msg. */ com.google.protobuf.ByteString getMsgBytes(); diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SessionMetadata.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SessionMetadata.java new file mode 100644 index 00000000000..a8f83cfd9d6 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SessionMetadata.java @@ -0,0 +1,635 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/config.proto + +package org.tensorflow.proto; + +/** + *
+ * Metadata about the session.
+ * This can be used by the runtime and the Ops for debugging, monitoring, etc.
+ * The (name, version) tuple is expected to be a unique identifier for
+ * sessions within the same process.
+ * NOTE: This is currently used and propagated only by the direct session.
+ * 
+ * + * Protobuf type {@code tensorflow.SessionMetadata} + */ +public final class SessionMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SessionMetadata) + SessionMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use SessionMetadata.newBuilder() to construct. + private SessionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SessionMetadata() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SessionMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_SessionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_SessionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SessionMetadata.class, org.tensorflow.proto.SessionMetadata.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 2; + private long version_; + /** + *
+   * The version is optional. If set, needs to be >= 0.
+   * 
+ * + * int64 version = 2; + * @return The version. + */ + @java.lang.Override + public long getVersion() { + return version_; + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (version_ != 0L) { + output.writeInt64(2, version_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (version_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, version_); + } + 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 org.tensorflow.proto.SessionMetadata)) { + return super.equals(obj); + } + org.tensorflow.proto.SessionMetadata other = (org.tensorflow.proto.SessionMetadata) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getVersion() + != other.getVersion()) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVersion()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SessionMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SessionMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SessionMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SessionMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SessionMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SessionMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SessionMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SessionMetadata 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 org.tensorflow.proto.SessionMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SessionMetadata 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 org.tensorflow.proto.SessionMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SessionMetadata 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(org.tensorflow.proto.SessionMetadata 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; + } + /** + *
+   * Metadata about the session.
+   * This can be used by the runtime and the Ops for debugging, monitoring, etc.
+   * The (name, version) tuple is expected to be a unique identifier for
+   * sessions within the same process.
+   * NOTE: This is currently used and propagated only by the direct session.
+   * 
+ * + * Protobuf type {@code tensorflow.SessionMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SessionMetadata) + org.tensorflow.proto.SessionMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_SessionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_SessionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SessionMetadata.class, org.tensorflow.proto.SessionMetadata.Builder.class); + } + + // Construct using org.tensorflow.proto.SessionMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + version_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_SessionMetadata_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SessionMetadata getDefaultInstanceForType() { + return org.tensorflow.proto.SessionMetadata.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SessionMetadata build() { + org.tensorflow.proto.SessionMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SessionMetadata buildPartial() { + org.tensorflow.proto.SessionMetadata result = new org.tensorflow.proto.SessionMetadata(this); + result.name_ = name_; + result.version_ = version_; + 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 org.tensorflow.proto.SessionMetadata) { + return mergeFrom((org.tensorflow.proto.SessionMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SessionMetadata other) { + if (other == org.tensorflow.proto.SessionMetadata.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getVersion() != 0L) { + setVersion(other.getVersion()); + } + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + version_ = input.readInt64(); + + break; + } // case 16 + 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 java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private long version_ ; + /** + *
+     * The version is optional. If set, needs to be >= 0.
+     * 
+ * + * int64 version = 2; + * @return The version. + */ + @java.lang.Override + public long getVersion() { + return version_; + } + /** + *
+     * The version is optional. If set, needs to be >= 0.
+     * 
+ * + * int64 version = 2; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(long value) { + + version_ = value; + onChanged(); + return this; + } + /** + *
+     * The version is optional. If set, needs to be >= 0.
+     * 
+ * + * int64 version = 2; + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = 0L; + 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:tensorflow.SessionMetadata) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SessionMetadata) + private static final org.tensorflow.proto.SessionMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SessionMetadata(); + } + + public static org.tensorflow.proto.SessionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionMetadata 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 org.tensorflow.proto.SessionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SessionMetadataOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SessionMetadataOrBuilder.java similarity index 84% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SessionMetadataOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SessionMetadataOrBuilder.java index eae7295e772..4a43a99f1dd 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SessionMetadataOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SessionMetadataOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/config.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface SessionMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.SessionMetadata) @@ -9,10 +9,12 @@ public interface SessionMetadataOrBuilder extends /** * string name = 1; + * @return The name. */ java.lang.String getName(); /** * string name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -23,6 +25,7 @@ public interface SessionMetadataOrBuilder extends * * * int64 version = 2; + * @return The version. */ long getVersion(); } diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SignatureDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SignatureDef.java new file mode 100644 index 00000000000..ecb73cc96e7 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SignatureDef.java @@ -0,0 +1,1643 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/meta_graph.proto + +package org.tensorflow.proto; + +/** + *
+ * SignatureDef defines the signature of a computation supported by a TensorFlow
+ * graph.
+ * For example, a model with two loss computations, sharing a single input,
+ * might have the following signature_def map, in a MetaGraphDef message.
+ * Note that across the two SignatureDefs "loss_A" and "loss_B", the input key,
+ * output key, and method_name are identical, and will be used by system(s) that
+ * implement or rely upon this particular loss method. The output tensor names
+ * differ, demonstrating how different outputs can exist for the same method.
+ * signature_def {
+ *   key: "loss_A"
+ *   value {
+ *     inputs {
+ *       key: "input"
+ *       value {
+ *         name: "input:0"
+ *         dtype: DT_STRING
+ *         tensor_shape: ...
+ *       }
+ *     }
+ *     outputs {
+ *       key: "loss_output"
+ *       value {
+ *         name: "loss_output_A:0"
+ *         dtype: DT_FLOAT
+ *         tensor_shape: ...
+ *       }
+ *     }
+ *     method_name: "some/package/compute_loss"
+ *   }
+ *   ...
+ * }
+ * signature_def {
+ *   key: "loss_B"
+ *   value {
+ *     inputs {
+ *       key: "input"
+ *       value {
+ *         name: "input:0"
+ *         dtype: DT_STRING
+ *         tensor_shape: ...
+ *       }
+ *     }
+ *     outputs {
+ *       key: "loss_output"
+ *       value {
+ *         name: "loss_output_B:0"
+ *         dtype: DT_FLOAT
+ *         tensor_shape: ...
+ *       }
+ *     }
+ *     method_name: "some/package/compute_loss"
+ *   }
+ *   ...
+ * }
+ * 
+ * + * Protobuf type {@code tensorflow.SignatureDef} + */ +public final class SignatureDef extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SignatureDef) + SignatureDefOrBuilder { +private static final long serialVersionUID = 0L; + // Use SignatureDef.newBuilder() to construct. + private SignatureDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SignatureDef() { + methodName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SignatureDef(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_SignatureDef_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetInputs(); + case 2: + return internalGetOutputs(); + case 4: + return internalGetDefaults(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_SignatureDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SignatureDef.class, org.tensorflow.proto.SignatureDef.Builder.class); + } + + public static final int INPUTS_FIELD_NUMBER = 1; + private static final class InputsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, org.tensorflow.proto.TensorInfo> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_SignatureDef_InputsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + org.tensorflow.proto.TensorInfo.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, org.tensorflow.proto.TensorInfo> inputs_; + private com.google.protobuf.MapField + internalGetInputs() { + if (inputs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + InputsDefaultEntryHolder.defaultEntry); + } + return inputs_; + } + + public int getInputsCount() { + return internalGetInputs().getMap().size(); + } + /** + *
+   * Named input parameters.
+   * 
+ * + * map<string, .tensorflow.TensorInfo> inputs = 1; + */ + + @java.lang.Override + public boolean containsInputs( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetInputs().getMap().containsKey(key); + } + /** + * Use {@link #getInputsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getInputs() { + return getInputsMap(); + } + /** + *
+   * Named input parameters.
+   * 
+ * + * map<string, .tensorflow.TensorInfo> inputs = 1; + */ + @java.lang.Override + + public java.util.Map getInputsMap() { + return internalGetInputs().getMap(); + } + /** + *
+   * Named input parameters.
+   * 
+ * + * map<string, .tensorflow.TensorInfo> inputs = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.TensorInfo getInputsOrDefault( + java.lang.String key, + org.tensorflow.proto.TensorInfo defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetInputs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Named input parameters.
+   * 
+ * + * map<string, .tensorflow.TensorInfo> inputs = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.TensorInfo getInputsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetInputs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int OUTPUTS_FIELD_NUMBER = 2; + private static final class OutputsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, org.tensorflow.proto.TensorInfo> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_SignatureDef_OutputsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + org.tensorflow.proto.TensorInfo.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, org.tensorflow.proto.TensorInfo> outputs_; + private com.google.protobuf.MapField + internalGetOutputs() { + if (outputs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OutputsDefaultEntryHolder.defaultEntry); + } + return outputs_; + } + + public int getOutputsCount() { + return internalGetOutputs().getMap().size(); + } + /** + *
+   * Named output parameters.
+   * 
+ * + * map<string, .tensorflow.TensorInfo> outputs = 2; + */ + + @java.lang.Override + public boolean containsOutputs( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetOutputs().getMap().containsKey(key); + } + /** + * Use {@link #getOutputsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getOutputs() { + return getOutputsMap(); + } + /** + *
+   * Named output parameters.
+   * 
+ * + * map<string, .tensorflow.TensorInfo> outputs = 2; + */ + @java.lang.Override + + public java.util.Map getOutputsMap() { + return internalGetOutputs().getMap(); + } + /** + *
+   * Named output parameters.
+   * 
+ * + * map<string, .tensorflow.TensorInfo> outputs = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.TensorInfo getOutputsOrDefault( + java.lang.String key, + org.tensorflow.proto.TensorInfo defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOutputs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Named output parameters.
+   * 
+ * + * map<string, .tensorflow.TensorInfo> outputs = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.TensorInfo getOutputsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOutputs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int METHOD_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object methodName_; + /** + *
+   * Extensible method_name information enabling third-party users to mark a
+   * SignatureDef as supporting a particular method. This enables producers and
+   * consumers of SignatureDefs, e.g. a model definition library and a serving
+   * library to have a clear hand-off regarding the semantics of a computation.
+   * Note that multiple SignatureDefs in a single MetaGraphDef may have the same
+   * method_name. This is commonly used to support multi-headed computation,
+   * where a single graph computation may return multiple results.
+   * 
+ * + * string method_name = 3; + * @return The methodName. + */ + @java.lang.Override + public java.lang.String getMethodName() { + java.lang.Object ref = methodName_; + 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(); + methodName_ = s; + return s; + } + } + /** + *
+   * Extensible method_name information enabling third-party users to mark a
+   * SignatureDef as supporting a particular method. This enables producers and
+   * consumers of SignatureDefs, e.g. a model definition library and a serving
+   * library to have a clear hand-off regarding the semantics of a computation.
+   * Note that multiple SignatureDefs in a single MetaGraphDef may have the same
+   * method_name. This is commonly used to support multi-headed computation,
+   * where a single graph computation may return multiple results.
+   * 
+ * + * string method_name = 3; + * @return The bytes for methodName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMethodNameBytes() { + java.lang.Object ref = methodName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + methodName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFAULTS_FIELD_NUMBER = 4; + private static final class DefaultsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, org.tensorflow.proto.TensorProto> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_SignatureDef_DefaultsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + org.tensorflow.proto.TensorProto.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, org.tensorflow.proto.TensorProto> defaults_; + private com.google.protobuf.MapField + internalGetDefaults() { + if (defaults_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DefaultsDefaultEntryHolder.defaultEntry); + } + return defaults_; + } + + public int getDefaultsCount() { + return internalGetDefaults().getMap().size(); + } + /** + *
+   * Named input to corresponding default values if any.
+   * 
+ * + * map<string, .tensorflow.TensorProto> defaults = 4; + */ + + @java.lang.Override + public boolean containsDefaults( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetDefaults().getMap().containsKey(key); + } + /** + * Use {@link #getDefaultsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDefaults() { + return getDefaultsMap(); + } + /** + *
+   * Named input to corresponding default values if any.
+   * 
+ * + * map<string, .tensorflow.TensorProto> defaults = 4; + */ + @java.lang.Override + + public java.util.Map getDefaultsMap() { + return internalGetDefaults().getMap(); + } + /** + *
+   * Named input to corresponding default values if any.
+   * 
+ * + * map<string, .tensorflow.TensorProto> defaults = 4; + */ + @java.lang.Override + + public org.tensorflow.proto.TensorProto getDefaultsOrDefault( + java.lang.String key, + org.tensorflow.proto.TensorProto defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetDefaults().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Named input to corresponding default values if any.
+   * 
+ * + * map<string, .tensorflow.TensorProto> defaults = 4; + */ + @java.lang.Override + + public org.tensorflow.proto.TensorProto getDefaultsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetDefaults().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, + internalGetInputs(), + InputsDefaultEntryHolder.defaultEntry, + 1); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetOutputs(), + OutputsDefaultEntryHolder.defaultEntry, + 2); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(methodName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, methodName_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetDefaults(), + DefaultsDefaultEntryHolder.defaultEntry, + 4); + 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 + : internalGetInputs().getMap().entrySet()) { + com.google.protobuf.MapEntry + inputs__ = InputsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, inputs__); + } + for (java.util.Map.Entry entry + : internalGetOutputs().getMap().entrySet()) { + com.google.protobuf.MapEntry + outputs__ = OutputsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, outputs__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(methodName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, methodName_); + } + for (java.util.Map.Entry entry + : internalGetDefaults().getMap().entrySet()) { + com.google.protobuf.MapEntry + defaults__ = DefaultsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, defaults__); + } + 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 org.tensorflow.proto.SignatureDef)) { + return super.equals(obj); + } + org.tensorflow.proto.SignatureDef other = (org.tensorflow.proto.SignatureDef) obj; + + if (!internalGetInputs().equals( + other.internalGetInputs())) return false; + if (!internalGetOutputs().equals( + other.internalGetOutputs())) return false; + if (!getMethodName() + .equals(other.getMethodName())) return false; + if (!internalGetDefaults().equals( + other.internalGetDefaults())) 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 (!internalGetInputs().getMap().isEmpty()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetInputs().hashCode(); + } + if (!internalGetOutputs().getMap().isEmpty()) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetOutputs().hashCode(); + } + hash = (37 * hash) + METHOD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMethodName().hashCode(); + if (!internalGetDefaults().getMap().isEmpty()) { + hash = (37 * hash) + DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetDefaults().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SignatureDef parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SignatureDef parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SignatureDef parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SignatureDef parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SignatureDef parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SignatureDef parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SignatureDef parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SignatureDef 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 org.tensorflow.proto.SignatureDef parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SignatureDef 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 org.tensorflow.proto.SignatureDef parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SignatureDef 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(org.tensorflow.proto.SignatureDef 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; + } + /** + *
+   * SignatureDef defines the signature of a computation supported by a TensorFlow
+   * graph.
+   * For example, a model with two loss computations, sharing a single input,
+   * might have the following signature_def map, in a MetaGraphDef message.
+   * Note that across the two SignatureDefs "loss_A" and "loss_B", the input key,
+   * output key, and method_name are identical, and will be used by system(s) that
+   * implement or rely upon this particular loss method. The output tensor names
+   * differ, demonstrating how different outputs can exist for the same method.
+   * signature_def {
+   *   key: "loss_A"
+   *   value {
+   *     inputs {
+   *       key: "input"
+   *       value {
+   *         name: "input:0"
+   *         dtype: DT_STRING
+   *         tensor_shape: ...
+   *       }
+   *     }
+   *     outputs {
+   *       key: "loss_output"
+   *       value {
+   *         name: "loss_output_A:0"
+   *         dtype: DT_FLOAT
+   *         tensor_shape: ...
+   *       }
+   *     }
+   *     method_name: "some/package/compute_loss"
+   *   }
+   *   ...
+   * }
+   * signature_def {
+   *   key: "loss_B"
+   *   value {
+   *     inputs {
+   *       key: "input"
+   *       value {
+   *         name: "input:0"
+   *         dtype: DT_STRING
+   *         tensor_shape: ...
+   *       }
+   *     }
+   *     outputs {
+   *       key: "loss_output"
+   *       value {
+   *         name: "loss_output_B:0"
+   *         dtype: DT_FLOAT
+   *         tensor_shape: ...
+   *       }
+   *     }
+   *     method_name: "some/package/compute_loss"
+   *   }
+   *   ...
+   * }
+   * 
+ * + * Protobuf type {@code tensorflow.SignatureDef} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SignatureDef) + org.tensorflow.proto.SignatureDefOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_SignatureDef_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetInputs(); + case 2: + return internalGetOutputs(); + case 4: + return internalGetDefaults(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableInputs(); + case 2: + return internalGetMutableOutputs(); + case 4: + return internalGetMutableDefaults(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_SignatureDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SignatureDef.class, org.tensorflow.proto.SignatureDef.Builder.class); + } + + // Construct using org.tensorflow.proto.SignatureDef.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableInputs().clear(); + internalGetMutableOutputs().clear(); + methodName_ = ""; + + internalGetMutableDefaults().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_SignatureDef_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SignatureDef getDefaultInstanceForType() { + return org.tensorflow.proto.SignatureDef.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SignatureDef build() { + org.tensorflow.proto.SignatureDef result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SignatureDef buildPartial() { + org.tensorflow.proto.SignatureDef result = new org.tensorflow.proto.SignatureDef(this); + int from_bitField0_ = bitField0_; + result.inputs_ = internalGetInputs(); + result.inputs_.makeImmutable(); + result.outputs_ = internalGetOutputs(); + result.outputs_.makeImmutable(); + result.methodName_ = methodName_; + result.defaults_ = internalGetDefaults(); + result.defaults_.makeImmutable(); + 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 org.tensorflow.proto.SignatureDef) { + return mergeFrom((org.tensorflow.proto.SignatureDef)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SignatureDef other) { + if (other == org.tensorflow.proto.SignatureDef.getDefaultInstance()) return this; + internalGetMutableInputs().mergeFrom( + other.internalGetInputs()); + internalGetMutableOutputs().mergeFrom( + other.internalGetOutputs()); + if (!other.getMethodName().isEmpty()) { + methodName_ = other.methodName_; + onChanged(); + } + internalGetMutableDefaults().mergeFrom( + other.internalGetDefaults()); + 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 + inputs__ = input.readMessage( + InputsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableInputs().getMutableMap().put( + inputs__.getKey(), inputs__.getValue()); + break; + } // case 10 + case 18: { + com.google.protobuf.MapEntry + outputs__ = input.readMessage( + OutputsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableOutputs().getMutableMap().put( + outputs__.getKey(), outputs__.getValue()); + break; + } // case 18 + case 26: { + methodName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + defaults__ = input.readMessage( + DefaultsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableDefaults().getMutableMap().put( + defaults__.getKey(), defaults__.getValue()); + break; + } // case 34 + 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.protobuf.MapField< + java.lang.String, org.tensorflow.proto.TensorInfo> inputs_; + private com.google.protobuf.MapField + internalGetInputs() { + if (inputs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + InputsDefaultEntryHolder.defaultEntry); + } + return inputs_; + } + private com.google.protobuf.MapField + internalGetMutableInputs() { + onChanged();; + if (inputs_ == null) { + inputs_ = com.google.protobuf.MapField.newMapField( + InputsDefaultEntryHolder.defaultEntry); + } + if (!inputs_.isMutable()) { + inputs_ = inputs_.copy(); + } + return inputs_; + } + + public int getInputsCount() { + return internalGetInputs().getMap().size(); + } + /** + *
+     * Named input parameters.
+     * 
+ * + * map<string, .tensorflow.TensorInfo> inputs = 1; + */ + + @java.lang.Override + public boolean containsInputs( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetInputs().getMap().containsKey(key); + } + /** + * Use {@link #getInputsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getInputs() { + return getInputsMap(); + } + /** + *
+     * Named input parameters.
+     * 
+ * + * map<string, .tensorflow.TensorInfo> inputs = 1; + */ + @java.lang.Override + + public java.util.Map getInputsMap() { + return internalGetInputs().getMap(); + } + /** + *
+     * Named input parameters.
+     * 
+ * + * map<string, .tensorflow.TensorInfo> inputs = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.TensorInfo getInputsOrDefault( + java.lang.String key, + org.tensorflow.proto.TensorInfo defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetInputs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Named input parameters.
+     * 
+ * + * map<string, .tensorflow.TensorInfo> inputs = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.TensorInfo getInputsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetInputs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearInputs() { + internalGetMutableInputs().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Named input parameters.
+     * 
+ * + * map<string, .tensorflow.TensorInfo> inputs = 1; + */ + + public Builder removeInputs( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableInputs().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableInputs() { + return internalGetMutableInputs().getMutableMap(); + } + /** + *
+     * Named input parameters.
+     * 
+ * + * map<string, .tensorflow.TensorInfo> inputs = 1; + */ + public Builder putInputs( + java.lang.String key, + org.tensorflow.proto.TensorInfo value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableInputs().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Named input parameters.
+     * 
+ * + * map<string, .tensorflow.TensorInfo> inputs = 1; + */ + + public Builder putAllInputs( + java.util.Map values) { + internalGetMutableInputs().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, org.tensorflow.proto.TensorInfo> outputs_; + private com.google.protobuf.MapField + internalGetOutputs() { + if (outputs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OutputsDefaultEntryHolder.defaultEntry); + } + return outputs_; + } + private com.google.protobuf.MapField + internalGetMutableOutputs() { + onChanged();; + if (outputs_ == null) { + outputs_ = com.google.protobuf.MapField.newMapField( + OutputsDefaultEntryHolder.defaultEntry); + } + if (!outputs_.isMutable()) { + outputs_ = outputs_.copy(); + } + return outputs_; + } + + public int getOutputsCount() { + return internalGetOutputs().getMap().size(); + } + /** + *
+     * Named output parameters.
+     * 
+ * + * map<string, .tensorflow.TensorInfo> outputs = 2; + */ + + @java.lang.Override + public boolean containsOutputs( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetOutputs().getMap().containsKey(key); + } + /** + * Use {@link #getOutputsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getOutputs() { + return getOutputsMap(); + } + /** + *
+     * Named output parameters.
+     * 
+ * + * map<string, .tensorflow.TensorInfo> outputs = 2; + */ + @java.lang.Override + + public java.util.Map getOutputsMap() { + return internalGetOutputs().getMap(); + } + /** + *
+     * Named output parameters.
+     * 
+ * + * map<string, .tensorflow.TensorInfo> outputs = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.TensorInfo getOutputsOrDefault( + java.lang.String key, + org.tensorflow.proto.TensorInfo defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOutputs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Named output parameters.
+     * 
+ * + * map<string, .tensorflow.TensorInfo> outputs = 2; + */ + @java.lang.Override + + public org.tensorflow.proto.TensorInfo getOutputsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOutputs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearOutputs() { + internalGetMutableOutputs().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Named output parameters.
+     * 
+ * + * map<string, .tensorflow.TensorInfo> outputs = 2; + */ + + public Builder removeOutputs( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableOutputs().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableOutputs() { + return internalGetMutableOutputs().getMutableMap(); + } + /** + *
+     * Named output parameters.
+     * 
+ * + * map<string, .tensorflow.TensorInfo> outputs = 2; + */ + public Builder putOutputs( + java.lang.String key, + org.tensorflow.proto.TensorInfo value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableOutputs().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Named output parameters.
+     * 
+ * + * map<string, .tensorflow.TensorInfo> outputs = 2; + */ + + public Builder putAllOutputs( + java.util.Map values) { + internalGetMutableOutputs().getMutableMap() + .putAll(values); + return this; + } + + private java.lang.Object methodName_ = ""; + /** + *
+     * Extensible method_name information enabling third-party users to mark a
+     * SignatureDef as supporting a particular method. This enables producers and
+     * consumers of SignatureDefs, e.g. a model definition library and a serving
+     * library to have a clear hand-off regarding the semantics of a computation.
+     * Note that multiple SignatureDefs in a single MetaGraphDef may have the same
+     * method_name. This is commonly used to support multi-headed computation,
+     * where a single graph computation may return multiple results.
+     * 
+ * + * string method_name = 3; + * @return The methodName. + */ + public java.lang.String getMethodName() { + java.lang.Object ref = methodName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + methodName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Extensible method_name information enabling third-party users to mark a
+     * SignatureDef as supporting a particular method. This enables producers and
+     * consumers of SignatureDefs, e.g. a model definition library and a serving
+     * library to have a clear hand-off regarding the semantics of a computation.
+     * Note that multiple SignatureDefs in a single MetaGraphDef may have the same
+     * method_name. This is commonly used to support multi-headed computation,
+     * where a single graph computation may return multiple results.
+     * 
+ * + * string method_name = 3; + * @return The bytes for methodName. + */ + public com.google.protobuf.ByteString + getMethodNameBytes() { + java.lang.Object ref = methodName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + methodName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Extensible method_name information enabling third-party users to mark a
+     * SignatureDef as supporting a particular method. This enables producers and
+     * consumers of SignatureDefs, e.g. a model definition library and a serving
+     * library to have a clear hand-off regarding the semantics of a computation.
+     * Note that multiple SignatureDefs in a single MetaGraphDef may have the same
+     * method_name. This is commonly used to support multi-headed computation,
+     * where a single graph computation may return multiple results.
+     * 
+ * + * string method_name = 3; + * @param value The methodName to set. + * @return This builder for chaining. + */ + public Builder setMethodName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + methodName_ = value; + onChanged(); + return this; + } + /** + *
+     * Extensible method_name information enabling third-party users to mark a
+     * SignatureDef as supporting a particular method. This enables producers and
+     * consumers of SignatureDefs, e.g. a model definition library and a serving
+     * library to have a clear hand-off regarding the semantics of a computation.
+     * Note that multiple SignatureDefs in a single MetaGraphDef may have the same
+     * method_name. This is commonly used to support multi-headed computation,
+     * where a single graph computation may return multiple results.
+     * 
+ * + * string method_name = 3; + * @return This builder for chaining. + */ + public Builder clearMethodName() { + + methodName_ = getDefaultInstance().getMethodName(); + onChanged(); + return this; + } + /** + *
+     * Extensible method_name information enabling third-party users to mark a
+     * SignatureDef as supporting a particular method. This enables producers and
+     * consumers of SignatureDefs, e.g. a model definition library and a serving
+     * library to have a clear hand-off regarding the semantics of a computation.
+     * Note that multiple SignatureDefs in a single MetaGraphDef may have the same
+     * method_name. This is commonly used to support multi-headed computation,
+     * where a single graph computation may return multiple results.
+     * 
+ * + * string method_name = 3; + * @param value The bytes for methodName to set. + * @return This builder for chaining. + */ + public Builder setMethodNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + methodName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, org.tensorflow.proto.TensorProto> defaults_; + private com.google.protobuf.MapField + internalGetDefaults() { + if (defaults_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DefaultsDefaultEntryHolder.defaultEntry); + } + return defaults_; + } + private com.google.protobuf.MapField + internalGetMutableDefaults() { + onChanged();; + if (defaults_ == null) { + defaults_ = com.google.protobuf.MapField.newMapField( + DefaultsDefaultEntryHolder.defaultEntry); + } + if (!defaults_.isMutable()) { + defaults_ = defaults_.copy(); + } + return defaults_; + } + + public int getDefaultsCount() { + return internalGetDefaults().getMap().size(); + } + /** + *
+     * Named input to corresponding default values if any.
+     * 
+ * + * map<string, .tensorflow.TensorProto> defaults = 4; + */ + + @java.lang.Override + public boolean containsDefaults( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetDefaults().getMap().containsKey(key); + } + /** + * Use {@link #getDefaultsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDefaults() { + return getDefaultsMap(); + } + /** + *
+     * Named input to corresponding default values if any.
+     * 
+ * + * map<string, .tensorflow.TensorProto> defaults = 4; + */ + @java.lang.Override + + public java.util.Map getDefaultsMap() { + return internalGetDefaults().getMap(); + } + /** + *
+     * Named input to corresponding default values if any.
+     * 
+ * + * map<string, .tensorflow.TensorProto> defaults = 4; + */ + @java.lang.Override + + public org.tensorflow.proto.TensorProto getDefaultsOrDefault( + java.lang.String key, + org.tensorflow.proto.TensorProto defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetDefaults().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Named input to corresponding default values if any.
+     * 
+ * + * map<string, .tensorflow.TensorProto> defaults = 4; + */ + @java.lang.Override + + public org.tensorflow.proto.TensorProto getDefaultsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetDefaults().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearDefaults() { + internalGetMutableDefaults().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Named input to corresponding default values if any.
+     * 
+ * + * map<string, .tensorflow.TensorProto> defaults = 4; + */ + + public Builder removeDefaults( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableDefaults().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableDefaults() { + return internalGetMutableDefaults().getMutableMap(); + } + /** + *
+     * Named input to corresponding default values if any.
+     * 
+ * + * map<string, .tensorflow.TensorProto> defaults = 4; + */ + public Builder putDefaults( + java.lang.String key, + org.tensorflow.proto.TensorProto value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableDefaults().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Named input to corresponding default values if any.
+     * 
+ * + * map<string, .tensorflow.TensorProto> defaults = 4; + */ + + public Builder putAllDefaults( + java.util.Map values) { + internalGetMutableDefaults().getMutableMap() + .putAll(values); + 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:tensorflow.SignatureDef) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SignatureDef) + private static final org.tensorflow.proto.SignatureDef DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SignatureDef(); + } + + public static org.tensorflow.proto.SignatureDef getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignatureDef 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 org.tensorflow.proto.SignatureDef getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SignatureDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SignatureDefOrBuilder.java new file mode 100644 index 00000000000..86ae1bcf3d1 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SignatureDefOrBuilder.java @@ -0,0 +1,209 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/meta_graph.proto + +package org.tensorflow.proto; + +public interface SignatureDefOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.SignatureDef) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Named input parameters.
+   * 
+ * + * map<string, .tensorflow.TensorInfo> inputs = 1; + */ + int getInputsCount(); + /** + *
+   * Named input parameters.
+   * 
+ * + * map<string, .tensorflow.TensorInfo> inputs = 1; + */ + boolean containsInputs( + java.lang.String key); + /** + * Use {@link #getInputsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getInputs(); + /** + *
+   * Named input parameters.
+   * 
+ * + * map<string, .tensorflow.TensorInfo> inputs = 1; + */ + java.util.Map + getInputsMap(); + /** + *
+   * Named input parameters.
+   * 
+ * + * map<string, .tensorflow.TensorInfo> inputs = 1; + */ + + /* nullable */ +org.tensorflow.proto.TensorInfo getInputsOrDefault( + java.lang.String key, + /* nullable */ +org.tensorflow.proto.TensorInfo defaultValue); + /** + *
+   * Named input parameters.
+   * 
+ * + * map<string, .tensorflow.TensorInfo> inputs = 1; + */ + + org.tensorflow.proto.TensorInfo getInputsOrThrow( + java.lang.String key); + + /** + *
+   * Named output parameters.
+   * 
+ * + * map<string, .tensorflow.TensorInfo> outputs = 2; + */ + int getOutputsCount(); + /** + *
+   * Named output parameters.
+   * 
+ * + * map<string, .tensorflow.TensorInfo> outputs = 2; + */ + boolean containsOutputs( + java.lang.String key); + /** + * Use {@link #getOutputsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getOutputs(); + /** + *
+   * Named output parameters.
+   * 
+ * + * map<string, .tensorflow.TensorInfo> outputs = 2; + */ + java.util.Map + getOutputsMap(); + /** + *
+   * Named output parameters.
+   * 
+ * + * map<string, .tensorflow.TensorInfo> outputs = 2; + */ + + /* nullable */ +org.tensorflow.proto.TensorInfo getOutputsOrDefault( + java.lang.String key, + /* nullable */ +org.tensorflow.proto.TensorInfo defaultValue); + /** + *
+   * Named output parameters.
+   * 
+ * + * map<string, .tensorflow.TensorInfo> outputs = 2; + */ + + org.tensorflow.proto.TensorInfo getOutputsOrThrow( + java.lang.String key); + + /** + *
+   * Extensible method_name information enabling third-party users to mark a
+   * SignatureDef as supporting a particular method. This enables producers and
+   * consumers of SignatureDefs, e.g. a model definition library and a serving
+   * library to have a clear hand-off regarding the semantics of a computation.
+   * Note that multiple SignatureDefs in a single MetaGraphDef may have the same
+   * method_name. This is commonly used to support multi-headed computation,
+   * where a single graph computation may return multiple results.
+   * 
+ * + * string method_name = 3; + * @return The methodName. + */ + java.lang.String getMethodName(); + /** + *
+   * Extensible method_name information enabling third-party users to mark a
+   * SignatureDef as supporting a particular method. This enables producers and
+   * consumers of SignatureDefs, e.g. a model definition library and a serving
+   * library to have a clear hand-off regarding the semantics of a computation.
+   * Note that multiple SignatureDefs in a single MetaGraphDef may have the same
+   * method_name. This is commonly used to support multi-headed computation,
+   * where a single graph computation may return multiple results.
+   * 
+ * + * string method_name = 3; + * @return The bytes for methodName. + */ + com.google.protobuf.ByteString + getMethodNameBytes(); + + /** + *
+   * Named input to corresponding default values if any.
+   * 
+ * + * map<string, .tensorflow.TensorProto> defaults = 4; + */ + int getDefaultsCount(); + /** + *
+   * Named input to corresponding default values if any.
+   * 
+ * + * map<string, .tensorflow.TensorProto> defaults = 4; + */ + boolean containsDefaults( + java.lang.String key); + /** + * Use {@link #getDefaultsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getDefaults(); + /** + *
+   * Named input to corresponding default values if any.
+   * 
+ * + * map<string, .tensorflow.TensorProto> defaults = 4; + */ + java.util.Map + getDefaultsMap(); + /** + *
+   * Named input to corresponding default values if any.
+   * 
+ * + * map<string, .tensorflow.TensorProto> defaults = 4; + */ + + /* nullable */ +org.tensorflow.proto.TensorProto getDefaultsOrDefault( + java.lang.String key, + /* nullable */ +org.tensorflow.proto.TensorProto defaultValue); + /** + *
+   * Named input to corresponding default values if any.
+   * 
+ * + * map<string, .tensorflow.TensorProto> defaults = 4; + */ + + org.tensorflow.proto.TensorProto getDefaultsOrThrow( + java.lang.String key); +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SourceFile.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SourceFile.java similarity index 76% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SourceFile.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SourceFile.java index b8f6c068649..baebe320789 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SourceFile.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SourceFile.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug_event.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; /** *
@@ -11,7 +11,7 @@
  *
  * Protobuf type {@code tensorflow.SourceFile}
  */
-public  final class SourceFile extends
+public final class SourceFile extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.SourceFile)
     SourceFileOrBuilder {
@@ -38,79 +38,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private SourceFile(
-      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: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            filePath_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            hostName_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              lines_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            lines_.add(s);
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
-        }
-      }
-    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-      throw e.setUnfinishedMessage(this);
-    } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
-    } finally {
-      if (((mutable_bitField0_ & 0x00000001) != 0)) {
-        lines_ = lines_.getUnmodifiableView();
-      }
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_SourceFile_descriptor;
+    return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_SourceFile_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_SourceFile_fieldAccessorTable
+    return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_SourceFile_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.util.SourceFile.class, org.tensorflow.proto.util.SourceFile.Builder.class);
+            org.tensorflow.proto.SourceFile.class, org.tensorflow.proto.SourceFile.Builder.class);
   }
 
   public static final int FILE_PATH_FIELD_NUMBER = 1;
@@ -121,7 +59,9 @@ private SourceFile(
    * 
* * string file_path = 1; + * @return The filePath. */ + @java.lang.Override public java.lang.String getFilePath() { java.lang.Object ref = filePath_; if (ref instanceof java.lang.String) { @@ -140,7 +80,9 @@ public java.lang.String getFilePath() { * * * string file_path = 1; + * @return The bytes for filePath. */ + @java.lang.Override public com.google.protobuf.ByteString getFilePathBytes() { java.lang.Object ref = filePath_; @@ -163,7 +105,9 @@ public java.lang.String getFilePath() { * * * string host_name = 2; + * @return The hostName. */ + @java.lang.Override public java.lang.String getHostName() { java.lang.Object ref = hostName_; if (ref instanceof java.lang.String) { @@ -182,7 +126,9 @@ public java.lang.String getHostName() { * * * string host_name = 2; + * @return The bytes for hostName. */ + @java.lang.Override public com.google.protobuf.ByteString getHostNameBytes() { java.lang.Object ref = hostName_; @@ -205,6 +151,7 @@ public java.lang.String getHostName() { * * * repeated string lines = 3; + * @return A list containing the lines. */ public com.google.protobuf.ProtocolStringList getLinesList() { @@ -216,6 +163,7 @@ public java.lang.String getHostName() { * * * repeated string lines = 3; + * @return The count of lines. */ public int getLinesCount() { return lines_.size(); @@ -226,6 +174,8 @@ public int getLinesCount() { * * * repeated string lines = 3; + * @param index The index of the element to return. + * @return The lines at the given index. */ public java.lang.String getLines(int index) { return lines_.get(index); @@ -236,6 +186,8 @@ public java.lang.String getLines(int index) { * * * repeated string lines = 3; + * @param index The index of the value to return. + * @return The bytes of the lines at the given index. */ public com.google.protobuf.ByteString getLinesBytes(int index) { @@ -256,16 +208,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getFilePathBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filePath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filePath_); } - if (!getHostNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hostName_); } for (int i = 0; i < lines_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, lines_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -274,10 +226,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getFilePathBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filePath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filePath_); } - if (!getHostNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hostName_); } { @@ -288,7 +240,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getLinesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -298,10 +250,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.util.SourceFile)) { + if (!(obj instanceof org.tensorflow.proto.SourceFile)) { return super.equals(obj); } - org.tensorflow.proto.util.SourceFile other = (org.tensorflow.proto.util.SourceFile) obj; + org.tensorflow.proto.SourceFile other = (org.tensorflow.proto.SourceFile) obj; if (!getFilePath() .equals(other.getFilePath())) return false; @@ -309,7 +261,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getHostName())) return false; if (!getLinesList() .equals(other.getLinesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -328,74 +280,74 @@ public int hashCode() { hash = (37 * hash) + LINES_FIELD_NUMBER; hash = (53 * hash) + getLinesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.util.SourceFile parseFrom( + public static org.tensorflow.proto.SourceFile parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.SourceFile parseFrom( + public static org.tensorflow.proto.SourceFile parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.SourceFile parseFrom( + public static org.tensorflow.proto.SourceFile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.SourceFile parseFrom( + public static org.tensorflow.proto.SourceFile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.SourceFile parseFrom(byte[] data) + public static org.tensorflow.proto.SourceFile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.SourceFile parseFrom( + public static org.tensorflow.proto.SourceFile parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.SourceFile parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.SourceFile parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.SourceFile parseFrom( + public static org.tensorflow.proto.SourceFile 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 org.tensorflow.proto.util.SourceFile parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.SourceFile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.SourceFile parseDelimitedFrom( + public static org.tensorflow.proto.SourceFile 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 org.tensorflow.proto.util.SourceFile parseFrom( + public static org.tensorflow.proto.SourceFile parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.SourceFile parseFrom( + public static org.tensorflow.proto.SourceFile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -408,7 +360,7 @@ public static org.tensorflow.proto.util.SourceFile parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.util.SourceFile prototype) { + public static Builder newBuilder(org.tensorflow.proto.SourceFile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -434,34 +386,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.SourceFile) - org.tensorflow.proto.util.SourceFileOrBuilder { + org.tensorflow.proto.SourceFileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_SourceFile_descriptor; + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_SourceFile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_SourceFile_fieldAccessorTable + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_SourceFile_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.util.SourceFile.class, org.tensorflow.proto.util.SourceFile.Builder.class); + org.tensorflow.proto.SourceFile.class, org.tensorflow.proto.SourceFile.Builder.class); } - // Construct using org.tensorflow.proto.util.SourceFile.newBuilder() + // Construct using org.tensorflow.proto.SourceFile.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -478,17 +425,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.util.DebugEventProtos.internal_static_tensorflow_SourceFile_descriptor; + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_SourceFile_descriptor; } @java.lang.Override - public org.tensorflow.proto.util.SourceFile getDefaultInstanceForType() { - return org.tensorflow.proto.util.SourceFile.getDefaultInstance(); + public org.tensorflow.proto.SourceFile getDefaultInstanceForType() { + return org.tensorflow.proto.SourceFile.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.util.SourceFile build() { - org.tensorflow.proto.util.SourceFile result = buildPartial(); + public org.tensorflow.proto.SourceFile build() { + org.tensorflow.proto.SourceFile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -496,8 +443,8 @@ public org.tensorflow.proto.util.SourceFile build() { } @java.lang.Override - public org.tensorflow.proto.util.SourceFile buildPartial() { - org.tensorflow.proto.util.SourceFile result = new org.tensorflow.proto.util.SourceFile(this); + public org.tensorflow.proto.SourceFile buildPartial() { + org.tensorflow.proto.SourceFile result = new org.tensorflow.proto.SourceFile(this); int from_bitField0_ = bitField0_; result.filePath_ = filePath_; result.hostName_ = hostName_; @@ -544,16 +491,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.util.SourceFile) { - return mergeFrom((org.tensorflow.proto.util.SourceFile)other); + if (other instanceof org.tensorflow.proto.SourceFile) { + return mergeFrom((org.tensorflow.proto.SourceFile)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.util.SourceFile other) { - if (other == org.tensorflow.proto.util.SourceFile.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.SourceFile other) { + if (other == org.tensorflow.proto.SourceFile.getDefaultInstance()) return this; if (!other.getFilePath().isEmpty()) { filePath_ = other.filePath_; onChanged(); @@ -572,7 +519,7 @@ public Builder mergeFrom(org.tensorflow.proto.util.SourceFile other) { } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -587,17 +534,46 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.util.SourceFile parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + filePath_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + hostName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLinesIsMutable(); + lines_.add(s); + break; + } // case 26 + 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) { - parsedMessage = (org.tensorflow.proto.util.SourceFile) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -609,6 +585,7 @@ public Builder mergeFrom( * * * string file_path = 1; + * @return The filePath. */ public java.lang.String getFilePath() { java.lang.Object ref = filePath_; @@ -628,6 +605,7 @@ public java.lang.String getFilePath() { * * * string file_path = 1; + * @return The bytes for filePath. */ public com.google.protobuf.ByteString getFilePathBytes() { @@ -648,6 +626,8 @@ public java.lang.String getFilePath() { * * * string file_path = 1; + * @param value The filePath to set. + * @return This builder for chaining. */ public Builder setFilePath( java.lang.String value) { @@ -665,6 +645,7 @@ public Builder setFilePath( * * * string file_path = 1; + * @return This builder for chaining. */ public Builder clearFilePath() { @@ -678,6 +659,8 @@ public Builder clearFilePath() { * * * string file_path = 1; + * @param value The bytes for filePath to set. + * @return This builder for chaining. */ public Builder setFilePathBytes( com.google.protobuf.ByteString value) { @@ -698,6 +681,7 @@ public Builder setFilePathBytes( * * * string host_name = 2; + * @return The hostName. */ public java.lang.String getHostName() { java.lang.Object ref = hostName_; @@ -717,6 +701,7 @@ public java.lang.String getHostName() { * * * string host_name = 2; + * @return The bytes for hostName. */ public com.google.protobuf.ByteString getHostNameBytes() { @@ -737,6 +722,8 @@ public java.lang.String getHostName() { * * * string host_name = 2; + * @param value The hostName to set. + * @return This builder for chaining. */ public Builder setHostName( java.lang.String value) { @@ -754,6 +741,7 @@ public Builder setHostName( * * * string host_name = 2; + * @return This builder for chaining. */ public Builder clearHostName() { @@ -767,6 +755,8 @@ public Builder clearHostName() { * * * string host_name = 2; + * @param value The bytes for hostName to set. + * @return This builder for chaining. */ public Builder setHostNameBytes( com.google.protobuf.ByteString value) { @@ -793,6 +783,7 @@ private void ensureLinesIsMutable() { * * * repeated string lines = 3; + * @return A list containing the lines. */ public com.google.protobuf.ProtocolStringList getLinesList() { @@ -804,6 +795,7 @@ private void ensureLinesIsMutable() { * * * repeated string lines = 3; + * @return The count of lines. */ public int getLinesCount() { return lines_.size(); @@ -814,6 +806,8 @@ public int getLinesCount() { * * * repeated string lines = 3; + * @param index The index of the element to return. + * @return The lines at the given index. */ public java.lang.String getLines(int index) { return lines_.get(index); @@ -824,6 +818,8 @@ public java.lang.String getLines(int index) { * * * repeated string lines = 3; + * @param index The index of the value to return. + * @return The bytes of the lines at the given index. */ public com.google.protobuf.ByteString getLinesBytes(int index) { @@ -835,6 +831,9 @@ public java.lang.String getLines(int index) { * * * repeated string lines = 3; + * @param index The index to set the value at. + * @param value The lines to set. + * @return This builder for chaining. */ public Builder setLines( int index, java.lang.String value) { @@ -852,6 +851,8 @@ public Builder setLines( * * * repeated string lines = 3; + * @param value The lines to add. + * @return This builder for chaining. */ public Builder addLines( java.lang.String value) { @@ -869,6 +870,8 @@ public Builder addLines( * * * repeated string lines = 3; + * @param values The lines to add. + * @return This builder for chaining. */ public Builder addAllLines( java.lang.Iterable values) { @@ -884,6 +887,7 @@ public Builder addAllLines( * * * repeated string lines = 3; + * @return This builder for chaining. */ public Builder clearLines() { lines_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -897,6 +901,8 @@ public Builder clearLines() { * * * repeated string lines = 3; + * @param value The bytes of the lines to add. + * @return This builder for chaining. */ public Builder addLinesBytes( com.google.protobuf.ByteString value) { @@ -926,12 +932,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.SourceFile) - private static final org.tensorflow.proto.util.SourceFile DEFAULT_INSTANCE; + private static final org.tensorflow.proto.SourceFile DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.util.SourceFile(); + DEFAULT_INSTANCE = new org.tensorflow.proto.SourceFile(); } - public static org.tensorflow.proto.util.SourceFile getDefaultInstance() { + public static org.tensorflow.proto.SourceFile getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -942,7 +948,18 @@ public SourceFile parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SourceFile(input, extensionRegistry); + 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(); } }; @@ -956,7 +973,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.util.SourceFile getDefaultInstanceForType() { + public org.tensorflow.proto.SourceFile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SourceFileOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SourceFileOrBuilder.java similarity index 78% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SourceFileOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SourceFileOrBuilder.java index b05d03bfb81..41a25144a9b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/SourceFileOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SourceFileOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug_event.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; public interface SourceFileOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.SourceFile) @@ -13,6 +13,7 @@ public interface SourceFileOrBuilder extends * * * string file_path = 1; + * @return The filePath. */ java.lang.String getFilePath(); /** @@ -21,6 +22,7 @@ public interface SourceFileOrBuilder extends * * * string file_path = 1; + * @return The bytes for filePath. */ com.google.protobuf.ByteString getFilePathBytes(); @@ -31,6 +33,7 @@ public interface SourceFileOrBuilder extends * * * string host_name = 2; + * @return The hostName. */ java.lang.String getHostName(); /** @@ -39,6 +42,7 @@ public interface SourceFileOrBuilder extends * * * string host_name = 2; + * @return The bytes for hostName. */ com.google.protobuf.ByteString getHostNameBytes(); @@ -49,6 +53,7 @@ public interface SourceFileOrBuilder extends * * * repeated string lines = 3; + * @return A list containing the lines. */ java.util.List getLinesList(); @@ -58,6 +63,7 @@ public interface SourceFileOrBuilder extends * * * repeated string lines = 3; + * @return The count of lines. */ int getLinesCount(); /** @@ -66,6 +72,8 @@ public interface SourceFileOrBuilder extends * * * repeated string lines = 3; + * @param index The index of the element to return. + * @return The lines at the given index. */ java.lang.String getLines(int index); /** @@ -74,6 +82,8 @@ public interface SourceFileOrBuilder extends * * * repeated string lines = 3; + * @param index The index of the value to return. + * @return The bytes of the lines at the given index. */ com.google.protobuf.ByteString getLinesBytes(int index); diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SourceMetadata.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SourceMetadata.java new file mode 100644 index 00000000000..555bf4fcf82 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SourceMetadata.java @@ -0,0 +1,581 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/util/event.proto + +package org.tensorflow.proto; + +/** + *
+ * Holds the information of the source that writes the events.
+ * 
+ * + * Protobuf type {@code tensorflow.SourceMetadata} + */ +public final class SourceMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SourceMetadata) + SourceMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use SourceMetadata.newBuilder() to construct. + private SourceMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SourceMetadata() { + writer_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SourceMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_SourceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_SourceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SourceMetadata.class, org.tensorflow.proto.SourceMetadata.Builder.class); + } + + public static final int WRITER_FIELD_NUMBER = 1; + private volatile java.lang.Object writer_; + /** + *
+   * Low level name of the summary writer, such as
+   * `tensorflow.core.util.events_writer`.
+   * 
+ * + * string writer = 1; + * @return The writer. + */ + @java.lang.Override + public java.lang.String getWriter() { + java.lang.Object ref = writer_; + 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(); + writer_ = s; + return s; + } + } + /** + *
+   * Low level name of the summary writer, such as
+   * `tensorflow.core.util.events_writer`.
+   * 
+ * + * string writer = 1; + * @return The bytes for writer. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWriterBytes() { + java.lang.Object ref = writer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + writer_ = 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(writer_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, writer_); + } + 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(writer_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, writer_); + } + 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 org.tensorflow.proto.SourceMetadata)) { + return super.equals(obj); + } + org.tensorflow.proto.SourceMetadata other = (org.tensorflow.proto.SourceMetadata) obj; + + if (!getWriter() + .equals(other.getWriter())) 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) + WRITER_FIELD_NUMBER; + hash = (53 * hash) + getWriter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SourceMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SourceMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SourceMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SourceMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SourceMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SourceMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SourceMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SourceMetadata 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 org.tensorflow.proto.SourceMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SourceMetadata 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 org.tensorflow.proto.SourceMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SourceMetadata 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(org.tensorflow.proto.SourceMetadata 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; + } + /** + *
+   * Holds the information of the source that writes the events.
+   * 
+ * + * Protobuf type {@code tensorflow.SourceMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SourceMetadata) + org.tensorflow.proto.SourceMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_SourceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_SourceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SourceMetadata.class, org.tensorflow.proto.SourceMetadata.Builder.class); + } + + // Construct using org.tensorflow.proto.SourceMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + writer_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_SourceMetadata_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SourceMetadata getDefaultInstanceForType() { + return org.tensorflow.proto.SourceMetadata.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SourceMetadata build() { + org.tensorflow.proto.SourceMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SourceMetadata buildPartial() { + org.tensorflow.proto.SourceMetadata result = new org.tensorflow.proto.SourceMetadata(this); + result.writer_ = writer_; + 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 org.tensorflow.proto.SourceMetadata) { + return mergeFrom((org.tensorflow.proto.SourceMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SourceMetadata other) { + if (other == org.tensorflow.proto.SourceMetadata.getDefaultInstance()) return this; + if (!other.getWriter().isEmpty()) { + writer_ = other.writer_; + 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: { + writer_ = input.readStringRequireUtf8(); + + 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 java.lang.Object writer_ = ""; + /** + *
+     * Low level name of the summary writer, such as
+     * `tensorflow.core.util.events_writer`.
+     * 
+ * + * string writer = 1; + * @return The writer. + */ + public java.lang.String getWriter() { + java.lang.Object ref = writer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + writer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Low level name of the summary writer, such as
+     * `tensorflow.core.util.events_writer`.
+     * 
+ * + * string writer = 1; + * @return The bytes for writer. + */ + public com.google.protobuf.ByteString + getWriterBytes() { + java.lang.Object ref = writer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + writer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Low level name of the summary writer, such as
+     * `tensorflow.core.util.events_writer`.
+     * 
+ * + * string writer = 1; + * @param value The writer to set. + * @return This builder for chaining. + */ + public Builder setWriter( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + writer_ = value; + onChanged(); + return this; + } + /** + *
+     * Low level name of the summary writer, such as
+     * `tensorflow.core.util.events_writer`.
+     * 
+ * + * string writer = 1; + * @return This builder for chaining. + */ + public Builder clearWriter() { + + writer_ = getDefaultInstance().getWriter(); + onChanged(); + return this; + } + /** + *
+     * Low level name of the summary writer, such as
+     * `tensorflow.core.util.events_writer`.
+     * 
+ * + * string writer = 1; + * @param value The bytes for writer to set. + * @return This builder for chaining. + */ + public Builder setWriterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + writer_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.SourceMetadata) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SourceMetadata) + private static final org.tensorflow.proto.SourceMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SourceMetadata(); + } + + public static org.tensorflow.proto.SourceMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceMetadata 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 org.tensorflow.proto.SourceMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SourceMetadataOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SourceMetadataOrBuilder.java new file mode 100644 index 00000000000..6c0645c2a87 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SourceMetadataOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/util/event.proto + +package org.tensorflow.proto; + +public interface SourceMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.SourceMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Low level name of the summary writer, such as
+   * `tensorflow.core.util.events_writer`.
+   * 
+ * + * string writer = 1; + * @return The writer. + */ + java.lang.String getWriter(); + /** + *
+   * Low level name of the summary writer, such as
+   * `tensorflow.core.util.events_writer`.
+   * 
+ * + * string writer = 1; + * @return The bytes for writer. + */ + com.google.protobuf.ByteString + getWriterBytes(); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/StackFrameWithId.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/StackFrameWithId.java new file mode 100644 index 00000000000..80740149b50 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/StackFrameWithId.java @@ -0,0 +1,828 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/debug_event.proto + +package org.tensorflow.proto; + +/** + *
+ * A stack frame with ID.
+ * 
+ * + * Protobuf type {@code tensorflow.StackFrameWithId} + */ +public final class StackFrameWithId extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.StackFrameWithId) + StackFrameWithIdOrBuilder { +private static final long serialVersionUID = 0L; + // Use StackFrameWithId.newBuilder() to construct. + private StackFrameWithId(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StackFrameWithId() { + id_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StackFrameWithId(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_StackFrameWithId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_StackFrameWithId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.StackFrameWithId.class, org.tensorflow.proto.StackFrameWithId.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + *
+   * A unique ID for the stack frame: A UUID-like string.
+   * 
+ * + * string id = 1; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + *
+   * A unique ID for the stack frame: A UUID-like string.
+   * 
+ * + * string id = 1; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILE_LINE_COL_FIELD_NUMBER = 2; + private org.tensorflow.proto.GraphDebugInfo.FileLineCol fileLineCol_; + /** + *
+   * Stack frame, i.e., a frame of a stack trace, containing information
+   * regarding the file name, line number, function name, code content
+   * of the line, and column number (if available).
+   * 
+ * + * .tensorflow.GraphDebugInfo.FileLineCol file_line_col = 2; + * @return Whether the fileLineCol field is set. + */ + @java.lang.Override + public boolean hasFileLineCol() { + return fileLineCol_ != null; + } + /** + *
+   * Stack frame, i.e., a frame of a stack trace, containing information
+   * regarding the file name, line number, function name, code content
+   * of the line, and column number (if available).
+   * 
+ * + * .tensorflow.GraphDebugInfo.FileLineCol file_line_col = 2; + * @return The fileLineCol. + */ + @java.lang.Override + public org.tensorflow.proto.GraphDebugInfo.FileLineCol getFileLineCol() { + return fileLineCol_ == null ? org.tensorflow.proto.GraphDebugInfo.FileLineCol.getDefaultInstance() : fileLineCol_; + } + /** + *
+   * Stack frame, i.e., a frame of a stack trace, containing information
+   * regarding the file name, line number, function name, code content
+   * of the line, and column number (if available).
+   * 
+ * + * .tensorflow.GraphDebugInfo.FileLineCol file_line_col = 2; + */ + @java.lang.Override + public org.tensorflow.proto.GraphDebugInfo.FileLineColOrBuilder getFileLineColOrBuilder() { + return getFileLineCol(); + } + + 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(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (fileLineCol_ != null) { + output.writeMessage(2, getFileLineCol()); + } + 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(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (fileLineCol_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFileLineCol()); + } + 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 org.tensorflow.proto.StackFrameWithId)) { + return super.equals(obj); + } + org.tensorflow.proto.StackFrameWithId other = (org.tensorflow.proto.StackFrameWithId) obj; + + if (!getId() + .equals(other.getId())) return false; + if (hasFileLineCol() != other.hasFileLineCol()) return false; + if (hasFileLineCol()) { + if (!getFileLineCol() + .equals(other.getFileLineCol())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasFileLineCol()) { + hash = (37 * hash) + FILE_LINE_COL_FIELD_NUMBER; + hash = (53 * hash) + getFileLineCol().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.StackFrameWithId parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.StackFrameWithId parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.StackFrameWithId parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.StackFrameWithId parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.StackFrameWithId parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.StackFrameWithId parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.StackFrameWithId parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.StackFrameWithId 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 org.tensorflow.proto.StackFrameWithId parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.StackFrameWithId 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 org.tensorflow.proto.StackFrameWithId parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.StackFrameWithId 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(org.tensorflow.proto.StackFrameWithId 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; + } + /** + *
+   * A stack frame with ID.
+   * 
+ * + * Protobuf type {@code tensorflow.StackFrameWithId} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.StackFrameWithId) + org.tensorflow.proto.StackFrameWithIdOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_StackFrameWithId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_StackFrameWithId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.StackFrameWithId.class, org.tensorflow.proto.StackFrameWithId.Builder.class); + } + + // Construct using org.tensorflow.proto.StackFrameWithId.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = ""; + + if (fileLineColBuilder_ == null) { + fileLineCol_ = null; + } else { + fileLineCol_ = null; + fileLineColBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.DebugEventProtos.internal_static_tensorflow_StackFrameWithId_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.StackFrameWithId getDefaultInstanceForType() { + return org.tensorflow.proto.StackFrameWithId.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.StackFrameWithId build() { + org.tensorflow.proto.StackFrameWithId result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.StackFrameWithId buildPartial() { + org.tensorflow.proto.StackFrameWithId result = new org.tensorflow.proto.StackFrameWithId(this); + result.id_ = id_; + if (fileLineColBuilder_ == null) { + result.fileLineCol_ = fileLineCol_; + } else { + result.fileLineCol_ = fileLineColBuilder_.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 org.tensorflow.proto.StackFrameWithId) { + return mergeFrom((org.tensorflow.proto.StackFrameWithId)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.StackFrameWithId other) { + if (other == org.tensorflow.proto.StackFrameWithId.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (other.hasFileLineCol()) { + mergeFileLineCol(other.getFileLineCol()); + } + 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: { + id_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getFileLineColFieldBuilder().getBuilder(), + extensionRegistry); + + 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 java.lang.Object id_ = ""; + /** + *
+     * A unique ID for the stack frame: A UUID-like string.
+     * 
+ * + * string id = 1; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A unique ID for the stack frame: A UUID-like string.
+     * 
+ * + * string id = 1; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A unique ID for the stack frame: A UUID-like string.
+     * 
+ * + * string id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + *
+     * A unique ID for the stack frame: A UUID-like string.
+     * 
+ * + * string id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + *
+     * A unique ID for the stack frame: A UUID-like string.
+     * 
+ * + * string id = 1; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private org.tensorflow.proto.GraphDebugInfo.FileLineCol fileLineCol_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.GraphDebugInfo.FileLineCol, org.tensorflow.proto.GraphDebugInfo.FileLineCol.Builder, org.tensorflow.proto.GraphDebugInfo.FileLineColOrBuilder> fileLineColBuilder_; + /** + *
+     * Stack frame, i.e., a frame of a stack trace, containing information
+     * regarding the file name, line number, function name, code content
+     * of the line, and column number (if available).
+     * 
+ * + * .tensorflow.GraphDebugInfo.FileLineCol file_line_col = 2; + * @return Whether the fileLineCol field is set. + */ + public boolean hasFileLineCol() { + return fileLineColBuilder_ != null || fileLineCol_ != null; + } + /** + *
+     * Stack frame, i.e., a frame of a stack trace, containing information
+     * regarding the file name, line number, function name, code content
+     * of the line, and column number (if available).
+     * 
+ * + * .tensorflow.GraphDebugInfo.FileLineCol file_line_col = 2; + * @return The fileLineCol. + */ + public org.tensorflow.proto.GraphDebugInfo.FileLineCol getFileLineCol() { + if (fileLineColBuilder_ == null) { + return fileLineCol_ == null ? org.tensorflow.proto.GraphDebugInfo.FileLineCol.getDefaultInstance() : fileLineCol_; + } else { + return fileLineColBuilder_.getMessage(); + } + } + /** + *
+     * Stack frame, i.e., a frame of a stack trace, containing information
+     * regarding the file name, line number, function name, code content
+     * of the line, and column number (if available).
+     * 
+ * + * .tensorflow.GraphDebugInfo.FileLineCol file_line_col = 2; + */ + public Builder setFileLineCol(org.tensorflow.proto.GraphDebugInfo.FileLineCol value) { + if (fileLineColBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fileLineCol_ = value; + onChanged(); + } else { + fileLineColBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Stack frame, i.e., a frame of a stack trace, containing information
+     * regarding the file name, line number, function name, code content
+     * of the line, and column number (if available).
+     * 
+ * + * .tensorflow.GraphDebugInfo.FileLineCol file_line_col = 2; + */ + public Builder setFileLineCol( + org.tensorflow.proto.GraphDebugInfo.FileLineCol.Builder builderForValue) { + if (fileLineColBuilder_ == null) { + fileLineCol_ = builderForValue.build(); + onChanged(); + } else { + fileLineColBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Stack frame, i.e., a frame of a stack trace, containing information
+     * regarding the file name, line number, function name, code content
+     * of the line, and column number (if available).
+     * 
+ * + * .tensorflow.GraphDebugInfo.FileLineCol file_line_col = 2; + */ + public Builder mergeFileLineCol(org.tensorflow.proto.GraphDebugInfo.FileLineCol value) { + if (fileLineColBuilder_ == null) { + if (fileLineCol_ != null) { + fileLineCol_ = + org.tensorflow.proto.GraphDebugInfo.FileLineCol.newBuilder(fileLineCol_).mergeFrom(value).buildPartial(); + } else { + fileLineCol_ = value; + } + onChanged(); + } else { + fileLineColBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Stack frame, i.e., a frame of a stack trace, containing information
+     * regarding the file name, line number, function name, code content
+     * of the line, and column number (if available).
+     * 
+ * + * .tensorflow.GraphDebugInfo.FileLineCol file_line_col = 2; + */ + public Builder clearFileLineCol() { + if (fileLineColBuilder_ == null) { + fileLineCol_ = null; + onChanged(); + } else { + fileLineCol_ = null; + fileLineColBuilder_ = null; + } + + return this; + } + /** + *
+     * Stack frame, i.e., a frame of a stack trace, containing information
+     * regarding the file name, line number, function name, code content
+     * of the line, and column number (if available).
+     * 
+ * + * .tensorflow.GraphDebugInfo.FileLineCol file_line_col = 2; + */ + public org.tensorflow.proto.GraphDebugInfo.FileLineCol.Builder getFileLineColBuilder() { + + onChanged(); + return getFileLineColFieldBuilder().getBuilder(); + } + /** + *
+     * Stack frame, i.e., a frame of a stack trace, containing information
+     * regarding the file name, line number, function name, code content
+     * of the line, and column number (if available).
+     * 
+ * + * .tensorflow.GraphDebugInfo.FileLineCol file_line_col = 2; + */ + public org.tensorflow.proto.GraphDebugInfo.FileLineColOrBuilder getFileLineColOrBuilder() { + if (fileLineColBuilder_ != null) { + return fileLineColBuilder_.getMessageOrBuilder(); + } else { + return fileLineCol_ == null ? + org.tensorflow.proto.GraphDebugInfo.FileLineCol.getDefaultInstance() : fileLineCol_; + } + } + /** + *
+     * Stack frame, i.e., a frame of a stack trace, containing information
+     * regarding the file name, line number, function name, code content
+     * of the line, and column number (if available).
+     * 
+ * + * .tensorflow.GraphDebugInfo.FileLineCol file_line_col = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.GraphDebugInfo.FileLineCol, org.tensorflow.proto.GraphDebugInfo.FileLineCol.Builder, org.tensorflow.proto.GraphDebugInfo.FileLineColOrBuilder> + getFileLineColFieldBuilder() { + if (fileLineColBuilder_ == null) { + fileLineColBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.GraphDebugInfo.FileLineCol, org.tensorflow.proto.GraphDebugInfo.FileLineCol.Builder, org.tensorflow.proto.GraphDebugInfo.FileLineColOrBuilder>( + getFileLineCol(), + getParentForChildren(), + isClean()); + fileLineCol_ = null; + } + return fileLineColBuilder_; + } + @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:tensorflow.StackFrameWithId) + } + + // @@protoc_insertion_point(class_scope:tensorflow.StackFrameWithId) + private static final org.tensorflow.proto.StackFrameWithId DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.StackFrameWithId(); + } + + public static org.tensorflow.proto.StackFrameWithId getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StackFrameWithId 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 org.tensorflow.proto.StackFrameWithId getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/StackFrameWithIdOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/StackFrameWithIdOrBuilder.java similarity index 83% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/StackFrameWithIdOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/StackFrameWithIdOrBuilder.java index b1132ff9e72..c11b2b585c1 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/StackFrameWithIdOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/StackFrameWithIdOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug_event.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; public interface StackFrameWithIdOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.StackFrameWithId) @@ -13,6 +13,7 @@ public interface StackFrameWithIdOrBuilder extends * * * string id = 1; + * @return The id. */ java.lang.String getId(); /** @@ -21,6 +22,7 @@ public interface StackFrameWithIdOrBuilder extends * * * string id = 1; + * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); @@ -33,6 +35,7 @@ public interface StackFrameWithIdOrBuilder extends * * * .tensorflow.GraphDebugInfo.FileLineCol file_line_col = 2; + * @return Whether the fileLineCol field is set. */ boolean hasFileLineCol(); /** @@ -43,8 +46,9 @@ public interface StackFrameWithIdOrBuilder extends * * * .tensorflow.GraphDebugInfo.FileLineCol file_line_col = 2; + * @return The fileLineCol. */ - org.tensorflow.proto.framework.GraphDebugInfo.FileLineCol getFileLineCol(); + org.tensorflow.proto.GraphDebugInfo.FileLineCol getFileLineCol(); /** *
    * Stack frame, i.e., a frame of a stack trace, containing information
@@ -54,5 +58,5 @@ public interface StackFrameWithIdOrBuilder extends
    *
    * .tensorflow.GraphDebugInfo.FileLineCol file_line_col = 2;
    */
-  org.tensorflow.proto.framework.GraphDebugInfo.FileLineColOrBuilder getFileLineColOrBuilder();
+  org.tensorflow.proto.GraphDebugInfo.FileLineColOrBuilder getFileLineColOrBuilder();
 }
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Status.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Status.java
new file mode 100644
index 00000000000..ae9f079b9b0
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Status.java
@@ -0,0 +1,54 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/tsl/protobuf/status.proto
+
+package org.tensorflow.proto;
+
+public final class Status {
+  private Status() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_StatusProto_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_StatusProto_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n$tensorflow/tsl/protobuf/status.proto\022\n" +
+      "tensorflow\032)tensorflow/tsl/protobuf/erro" +
+      "r_codes.proto\"D\n\013StatusProto\022$\n\004code\030\001 \001" +
+      "(\0162\026.tensorflow.error.Code\022\017\n\007message\030\002 " +
+      "\001(\tB[\n\024org.tensorflow.protoP\001Z>github.co" +
+      "m/google/tsl/tsl/go/protobuf/for_core_pr" +
+      "otos_go_proto\370\001\001b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          org.tensorflow.proto.error.ErrorCodesProtos.getDescriptor(),
+        });
+    internal_static_tensorflow_StatusProto_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_tensorflow_StatusProto_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_StatusProto_descriptor,
+        new java.lang.String[] { "Code", "Message", });
+    org.tensorflow.proto.error.ErrorCodesProtos.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/StatusProto.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/StatusProto.java
new file mode 100644
index 00000000000..abe3b281866
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/StatusProto.java
@@ -0,0 +1,699 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/tsl/protobuf/status.proto
+
+package org.tensorflow.proto;
+
+/**
+ * 
+ * Wire-format for Status.
+ * Next tag: 3
+ * 
+ * + * Protobuf type {@code tensorflow.StatusProto} + */ +public final class StatusProto extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.StatusProto) + StatusProtoOrBuilder { +private static final long serialVersionUID = 0L; + // Use StatusProto.newBuilder() to construct. + private StatusProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StatusProto() { + code_ = 0; + message_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StatusProto(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Status.internal_static_tensorflow_StatusProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Status.internal_static_tensorflow_StatusProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.StatusProto.class, org.tensorflow.proto.StatusProto.Builder.class); + } + + public static final int CODE_FIELD_NUMBER = 1; + private int code_; + /** + *
+   * Status code as defined in tensorflow/tsl/protobuf/error_codes.proto.
+   * 
+ * + * .tensorflow.error.Code code = 1; + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override public int getCodeValue() { + return code_; + } + /** + *
+   * Status code as defined in tensorflow/tsl/protobuf/error_codes.proto.
+   * 
+ * + * .tensorflow.error.Code code = 1; + * @return The code. + */ + @java.lang.Override public org.tensorflow.proto.error.Code getCode() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.error.Code result = org.tensorflow.proto.error.Code.valueOf(code_); + return result == null ? org.tensorflow.proto.error.Code.UNRECOGNIZED : result; + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + *
+   * Detail error message.
+   * 
+ * + * string message = 2; + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + /** + *
+   * Detail error message.
+   * 
+ * + * string message = 2; + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = 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 (code_ != org.tensorflow.proto.error.Code.OK.getNumber()) { + output.writeEnum(1, code_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ != org.tensorflow.proto.error.Code.OK.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + 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 org.tensorflow.proto.StatusProto)) { + return super.equals(obj); + } + org.tensorflow.proto.StatusProto other = (org.tensorflow.proto.StatusProto) obj; + + if (code_ != other.code_) return false; + if (!getMessage() + .equals(other.getMessage())) 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) + CODE_FIELD_NUMBER; + hash = (53 * hash) + code_; + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.StatusProto parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.StatusProto parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.StatusProto parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.StatusProto parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.StatusProto parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.StatusProto parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.StatusProto parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.StatusProto 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 org.tensorflow.proto.StatusProto parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.StatusProto 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 org.tensorflow.proto.StatusProto parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.StatusProto 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(org.tensorflow.proto.StatusProto 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; + } + /** + *
+   * Wire-format for Status.
+   * Next tag: 3
+   * 
+ * + * Protobuf type {@code tensorflow.StatusProto} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.StatusProto) + org.tensorflow.proto.StatusProtoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Status.internal_static_tensorflow_StatusProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Status.internal_static_tensorflow_StatusProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.StatusProto.class, org.tensorflow.proto.StatusProto.Builder.class); + } + + // Construct using org.tensorflow.proto.StatusProto.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + code_ = 0; + + message_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.Status.internal_static_tensorflow_StatusProto_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.StatusProto getDefaultInstanceForType() { + return org.tensorflow.proto.StatusProto.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.StatusProto build() { + org.tensorflow.proto.StatusProto result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.StatusProto buildPartial() { + org.tensorflow.proto.StatusProto result = new org.tensorflow.proto.StatusProto(this); + result.code_ = code_; + result.message_ = message_; + 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 org.tensorflow.proto.StatusProto) { + return mergeFrom((org.tensorflow.proto.StatusProto)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.StatusProto other) { + if (other == org.tensorflow.proto.StatusProto.getDefaultInstance()) return this; + if (other.code_ != 0) { + setCodeValue(other.getCodeValue()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + 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 8: { + code_ = input.readEnum(); + + break; + } // case 8 + case 18: { + message_ = input.readStringRequireUtf8(); + + 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 code_ = 0; + /** + *
+     * Status code as defined in tensorflow/tsl/protobuf/error_codes.proto.
+     * 
+ * + * .tensorflow.error.Code code = 1; + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override public int getCodeValue() { + return code_; + } + /** + *
+     * Status code as defined in tensorflow/tsl/protobuf/error_codes.proto.
+     * 
+ * + * .tensorflow.error.Code code = 1; + * @param value The enum numeric value on the wire for code to set. + * @return This builder for chaining. + */ + public Builder setCodeValue(int value) { + + code_ = value; + onChanged(); + return this; + } + /** + *
+     * Status code as defined in tensorflow/tsl/protobuf/error_codes.proto.
+     * 
+ * + * .tensorflow.error.Code code = 1; + * @return The code. + */ + @java.lang.Override + public org.tensorflow.proto.error.Code getCode() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.error.Code result = org.tensorflow.proto.error.Code.valueOf(code_); + return result == null ? org.tensorflow.proto.error.Code.UNRECOGNIZED : result; + } + /** + *
+     * Status code as defined in tensorflow/tsl/protobuf/error_codes.proto.
+     * 
+ * + * .tensorflow.error.Code code = 1; + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(org.tensorflow.proto.error.Code value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Status code as defined in tensorflow/tsl/protobuf/error_codes.proto.
+     * 
+ * + * .tensorflow.error.Code code = 1; + * @return This builder for chaining. + */ + public Builder clearCode() { + + code_ = 0; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + *
+     * Detail error message.
+     * 
+ * + * string message = 2; + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Detail error message.
+     * 
+ * + * string message = 2; + * @return The bytes for message. + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Detail error message.
+     * 
+ * + * string message = 2; + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + *
+     * Detail error message.
+     * 
+ * + * string message = 2; + * @return This builder for chaining. + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
+     * Detail error message.
+     * 
+ * + * string message = 2; + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.StatusProto) + } + + // @@protoc_insertion_point(class_scope:tensorflow.StatusProto) + private static final org.tensorflow.proto.StatusProto DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.StatusProto(); + } + + public static org.tensorflow.proto.StatusProto getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StatusProto 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 org.tensorflow.proto.StatusProto getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/StatusProtoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/StatusProtoOrBuilder.java new file mode 100644 index 00000000000..a8d7ce73b64 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/StatusProtoOrBuilder.java @@ -0,0 +1,48 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/tsl/protobuf/status.proto + +package org.tensorflow.proto; + +public interface StatusProtoOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.StatusProto) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Status code as defined in tensorflow/tsl/protobuf/error_codes.proto.
+   * 
+ * + * .tensorflow.error.Code code = 1; + * @return The enum numeric value on the wire for code. + */ + int getCodeValue(); + /** + *
+   * Status code as defined in tensorflow/tsl/protobuf/error_codes.proto.
+   * 
+ * + * .tensorflow.error.Code code = 1; + * @return The code. + */ + org.tensorflow.proto.error.Code getCode(); + + /** + *
+   * Detail error message.
+   * 
+ * + * string message = 2; + * @return The message. + */ + java.lang.String getMessage(); + /** + *
+   * Detail error message.
+   * 
+ * + * string message = 2; + * @return The bytes for message. + */ + com.google.protobuf.ByteString + getMessageBytes(); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/StepStats.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/StepStats.java new file mode 100644 index 00000000000..94214d3d0bb --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/StepStats.java @@ -0,0 +1,752 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/step_stats.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.StepStats} + */ +public final class StepStats extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.StepStats) + StepStatsOrBuilder { +private static final long serialVersionUID = 0L; + // Use StepStats.newBuilder() to construct. + private StepStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StepStats() { + devStats_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StepStats(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_StepStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_StepStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.StepStats.class, org.tensorflow.proto.StepStats.Builder.class); + } + + public static final int DEV_STATS_FIELD_NUMBER = 1; + private java.util.List devStats_; + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + @java.lang.Override + public java.util.List getDevStatsList() { + return devStats_; + } + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + @java.lang.Override + public java.util.List + getDevStatsOrBuilderList() { + return devStats_; + } + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + @java.lang.Override + public int getDevStatsCount() { + return devStats_.size(); + } + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + @java.lang.Override + public org.tensorflow.proto.DeviceStepStats getDevStats(int index) { + return devStats_.get(index); + } + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + @java.lang.Override + public org.tensorflow.proto.DeviceStepStatsOrBuilder getDevStatsOrBuilder( + int index) { + return devStats_.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 < devStats_.size(); i++) { + output.writeMessage(1, devStats_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < devStats_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, devStats_.get(i)); + } + 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 org.tensorflow.proto.StepStats)) { + return super.equals(obj); + } + org.tensorflow.proto.StepStats other = (org.tensorflow.proto.StepStats) obj; + + if (!getDevStatsList() + .equals(other.getDevStatsList())) 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 (getDevStatsCount() > 0) { + hash = (37 * hash) + DEV_STATS_FIELD_NUMBER; + hash = (53 * hash) + getDevStatsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.StepStats parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.StepStats parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.StepStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.StepStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.StepStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.StepStats parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.StepStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.StepStats 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 org.tensorflow.proto.StepStats parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.StepStats 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 org.tensorflow.proto.StepStats parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.StepStats 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(org.tensorflow.proto.StepStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.StepStats} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.StepStats) + org.tensorflow.proto.StepStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_StepStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_StepStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.StepStats.class, org.tensorflow.proto.StepStats.Builder.class); + } + + // Construct using org.tensorflow.proto.StepStats.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (devStatsBuilder_ == null) { + devStats_ = java.util.Collections.emptyList(); + } else { + devStats_ = null; + devStatsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.StepStatsProtos.internal_static_tensorflow_StepStats_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.StepStats getDefaultInstanceForType() { + return org.tensorflow.proto.StepStats.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.StepStats build() { + org.tensorflow.proto.StepStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.StepStats buildPartial() { + org.tensorflow.proto.StepStats result = new org.tensorflow.proto.StepStats(this); + int from_bitField0_ = bitField0_; + if (devStatsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + devStats_ = java.util.Collections.unmodifiableList(devStats_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.devStats_ = devStats_; + } else { + result.devStats_ = devStatsBuilder_.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 org.tensorflow.proto.StepStats) { + return mergeFrom((org.tensorflow.proto.StepStats)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.StepStats other) { + if (other == org.tensorflow.proto.StepStats.getDefaultInstance()) return this; + if (devStatsBuilder_ == null) { + if (!other.devStats_.isEmpty()) { + if (devStats_.isEmpty()) { + devStats_ = other.devStats_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDevStatsIsMutable(); + devStats_.addAll(other.devStats_); + } + onChanged(); + } + } else { + if (!other.devStats_.isEmpty()) { + if (devStatsBuilder_.isEmpty()) { + devStatsBuilder_.dispose(); + devStatsBuilder_ = null; + devStats_ = other.devStats_; + bitField0_ = (bitField0_ & ~0x00000001); + devStatsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDevStatsFieldBuilder() : null; + } else { + devStatsBuilder_.addAllMessages(other.devStats_); + } + } + } + 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: { + org.tensorflow.proto.DeviceStepStats m = + input.readMessage( + org.tensorflow.proto.DeviceStepStats.parser(), + extensionRegistry); + if (devStatsBuilder_ == null) { + ensureDevStatsIsMutable(); + devStats_.add(m); + } else { + devStatsBuilder_.addMessage(m); + } + 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.util.List devStats_ = + java.util.Collections.emptyList(); + private void ensureDevStatsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + devStats_ = new java.util.ArrayList(devStats_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.DeviceStepStats, org.tensorflow.proto.DeviceStepStats.Builder, org.tensorflow.proto.DeviceStepStatsOrBuilder> devStatsBuilder_; + + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + public java.util.List getDevStatsList() { + if (devStatsBuilder_ == null) { + return java.util.Collections.unmodifiableList(devStats_); + } else { + return devStatsBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + public int getDevStatsCount() { + if (devStatsBuilder_ == null) { + return devStats_.size(); + } else { + return devStatsBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + public org.tensorflow.proto.DeviceStepStats getDevStats(int index) { + if (devStatsBuilder_ == null) { + return devStats_.get(index); + } else { + return devStatsBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + public Builder setDevStats( + int index, org.tensorflow.proto.DeviceStepStats value) { + if (devStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDevStatsIsMutable(); + devStats_.set(index, value); + onChanged(); + } else { + devStatsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + public Builder setDevStats( + int index, org.tensorflow.proto.DeviceStepStats.Builder builderForValue) { + if (devStatsBuilder_ == null) { + ensureDevStatsIsMutable(); + devStats_.set(index, builderForValue.build()); + onChanged(); + } else { + devStatsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + public Builder addDevStats(org.tensorflow.proto.DeviceStepStats value) { + if (devStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDevStatsIsMutable(); + devStats_.add(value); + onChanged(); + } else { + devStatsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + public Builder addDevStats( + int index, org.tensorflow.proto.DeviceStepStats value) { + if (devStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDevStatsIsMutable(); + devStats_.add(index, value); + onChanged(); + } else { + devStatsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + public Builder addDevStats( + org.tensorflow.proto.DeviceStepStats.Builder builderForValue) { + if (devStatsBuilder_ == null) { + ensureDevStatsIsMutable(); + devStats_.add(builderForValue.build()); + onChanged(); + } else { + devStatsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + public Builder addDevStats( + int index, org.tensorflow.proto.DeviceStepStats.Builder builderForValue) { + if (devStatsBuilder_ == null) { + ensureDevStatsIsMutable(); + devStats_.add(index, builderForValue.build()); + onChanged(); + } else { + devStatsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + public Builder addAllDevStats( + java.lang.Iterable values) { + if (devStatsBuilder_ == null) { + ensureDevStatsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, devStats_); + onChanged(); + } else { + devStatsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + public Builder clearDevStats() { + if (devStatsBuilder_ == null) { + devStats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + devStatsBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + public Builder removeDevStats(int index) { + if (devStatsBuilder_ == null) { + ensureDevStatsIsMutable(); + devStats_.remove(index); + onChanged(); + } else { + devStatsBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + public org.tensorflow.proto.DeviceStepStats.Builder getDevStatsBuilder( + int index) { + return getDevStatsFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + public org.tensorflow.proto.DeviceStepStatsOrBuilder getDevStatsOrBuilder( + int index) { + if (devStatsBuilder_ == null) { + return devStats_.get(index); } else { + return devStatsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + public java.util.List + getDevStatsOrBuilderList() { + if (devStatsBuilder_ != null) { + return devStatsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(devStats_); + } + } + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + public org.tensorflow.proto.DeviceStepStats.Builder addDevStatsBuilder() { + return getDevStatsFieldBuilder().addBuilder( + org.tensorflow.proto.DeviceStepStats.getDefaultInstance()); + } + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + public org.tensorflow.proto.DeviceStepStats.Builder addDevStatsBuilder( + int index) { + return getDevStatsFieldBuilder().addBuilder( + index, org.tensorflow.proto.DeviceStepStats.getDefaultInstance()); + } + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + public java.util.List + getDevStatsBuilderList() { + return getDevStatsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.DeviceStepStats, org.tensorflow.proto.DeviceStepStats.Builder, org.tensorflow.proto.DeviceStepStatsOrBuilder> + getDevStatsFieldBuilder() { + if (devStatsBuilder_ == null) { + devStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.DeviceStepStats, org.tensorflow.proto.DeviceStepStats.Builder, org.tensorflow.proto.DeviceStepStatsOrBuilder>( + devStats_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + devStats_ = null; + } + return devStatsBuilder_; + } + @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:tensorflow.StepStats) + } + + // @@protoc_insertion_point(class_scope:tensorflow.StepStats) + private static final org.tensorflow.proto.StepStats DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.StepStats(); + } + + public static org.tensorflow.proto.StepStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StepStats 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 org.tensorflow.proto.StepStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/StepStatsOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/StepStatsOrBuilder.java new file mode 100644 index 00000000000..4d523784da8 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/StepStatsOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/step_stats.proto + +package org.tensorflow.proto; + +public interface StepStatsOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.StepStats) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + java.util.List + getDevStatsList(); + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + org.tensorflow.proto.DeviceStepStats getDevStats(int index); + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + int getDevStatsCount(); + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + java.util.List + getDevStatsOrBuilderList(); + /** + * repeated .tensorflow.DeviceStepStats dev_stats = 1; + */ + org.tensorflow.proto.DeviceStepStatsOrBuilder getDevStatsOrBuilder( + int index); +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/StepStatsProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/StepStatsProtos.java similarity index 94% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/StepStatsProtos.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/StepStatsProtos.java index 15ef4a6b554..d829afd3d35 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/StepStatsProtos.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/StepStatsProtos.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/step_stats.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public final class StepStatsProtos { private StepStatsProtos() {} @@ -102,16 +102,16 @@ public static void registerAllExtensions( "mesEntry\0322\n\020ThreadNamesEntry\022\013\n\003key\030\001 \001(" + "\r\022\r\n\005value\030\002 \001(\t:\0028\001\";\n\tStepStats\022.\n\tdev" + "_stats\030\001 \003(\0132\033.tensorflow.DeviceStepStat" + - "sB\211\001\n\036org.tensorflow.proto.frameworkB\017St" + - "epStatsProtosP\001ZQgithub.com/tensorflow/t" + - "ensorflow/tensorflow/go/core/framework/s" + - "tep_stats_go_proto\370\001\001b\006proto3" + "sB\177\n\024org.tensorflow.protoB\017StepStatsProt" + + "osP\001ZQgithub.com/tensorflow/tensorflow/t" + + "ensorflow/go/core/framework/step_stats_g" + + "o_proto\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.framework.AllocationDescriptionProtos.getDescriptor(), - org.tensorflow.proto.framework.TensorDescriptionProtos.getDescriptor(), + org.tensorflow.proto.AllocationDescriptionProtos.getDescriptor(), + org.tensorflow.proto.TensorDescriptionProtos.getDescriptor(), }); internal_static_tensorflow_AllocationRecord_descriptor = getDescriptor().getMessageTypes().get(0); @@ -161,8 +161,8 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_StepStats_descriptor, new java.lang.String[] { "DevStats", }); - org.tensorflow.proto.framework.AllocationDescriptionProtos.getDescriptor(); - org.tensorflow.proto.framework.TensorDescriptionProtos.getDescriptor(); + org.tensorflow.proto.AllocationDescriptionProtos.getDescriptor(); + org.tensorflow.proto.TensorDescriptionProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Struct.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Struct.java new file mode 100644 index 00000000000..7e2a874260e --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Struct.java @@ -0,0 +1,12719 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/struct.proto + +package org.tensorflow.proto; + +public final class Struct { + private Struct() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface StructuredValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.StructuredValue) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Represents None.
+     * 
+ * + * .tensorflow.NoneValue none_value = 1; + * @return Whether the noneValue field is set. + */ + boolean hasNoneValue(); + /** + *
+     * Represents None.
+     * 
+ * + * .tensorflow.NoneValue none_value = 1; + * @return The noneValue. + */ + org.tensorflow.proto.Struct.NoneValue getNoneValue(); + /** + *
+     * Represents None.
+     * 
+ * + * .tensorflow.NoneValue none_value = 1; + */ + org.tensorflow.proto.Struct.NoneValueOrBuilder getNoneValueOrBuilder(); + + /** + *
+     * Represents a double-precision floating-point value (a Python `float`).
+     * 
+ * + * double float64_value = 11; + * @return Whether the float64Value field is set. + */ + boolean hasFloat64Value(); + /** + *
+     * Represents a double-precision floating-point value (a Python `float`).
+     * 
+ * + * double float64_value = 11; + * @return The float64Value. + */ + double getFloat64Value(); + + /** + *
+     * Represents a signed integer value, limited to 64 bits.
+     * Larger values from Python's arbitrary-precision integers are unsupported.
+     * 
+ * + * sint64 int64_value = 12; + * @return Whether the int64Value field is set. + */ + boolean hasInt64Value(); + /** + *
+     * Represents a signed integer value, limited to 64 bits.
+     * Larger values from Python's arbitrary-precision integers are unsupported.
+     * 
+ * + * sint64 int64_value = 12; + * @return The int64Value. + */ + long getInt64Value(); + + /** + *
+     * Represents a string of Unicode characters stored in a Python `str`.
+     * In Python 3, this is exactly what type `str` is.
+     * In Python 2, this is the UTF-8 encoding of the characters.
+     * For strings with ASCII characters only (as often used in TensorFlow code)
+     * there is effectively no difference between the language versions.
+     * The obsolescent `unicode` type of Python 2 is not supported here.
+     * 
+ * + * string string_value = 13; + * @return Whether the stringValue field is set. + */ + boolean hasStringValue(); + /** + *
+     * Represents a string of Unicode characters stored in a Python `str`.
+     * In Python 3, this is exactly what type `str` is.
+     * In Python 2, this is the UTF-8 encoding of the characters.
+     * For strings with ASCII characters only (as often used in TensorFlow code)
+     * there is effectively no difference between the language versions.
+     * The obsolescent `unicode` type of Python 2 is not supported here.
+     * 
+ * + * string string_value = 13; + * @return The stringValue. + */ + java.lang.String getStringValue(); + /** + *
+     * Represents a string of Unicode characters stored in a Python `str`.
+     * In Python 3, this is exactly what type `str` is.
+     * In Python 2, this is the UTF-8 encoding of the characters.
+     * For strings with ASCII characters only (as often used in TensorFlow code)
+     * there is effectively no difference between the language versions.
+     * The obsolescent `unicode` type of Python 2 is not supported here.
+     * 
+ * + * string string_value = 13; + * @return The bytes for stringValue. + */ + com.google.protobuf.ByteString + getStringValueBytes(); + + /** + *
+     * Represents a boolean value.
+     * 
+ * + * bool bool_value = 14; + * @return Whether the boolValue field is set. + */ + boolean hasBoolValue(); + /** + *
+     * Represents a boolean value.
+     * 
+ * + * bool bool_value = 14; + * @return The boolValue. + */ + boolean getBoolValue(); + + /** + *
+     * Represents a TensorShape.
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape_value = 31; + * @return Whether the tensorShapeValue field is set. + */ + boolean hasTensorShapeValue(); + /** + *
+     * Represents a TensorShape.
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape_value = 31; + * @return The tensorShapeValue. + */ + org.tensorflow.proto.TensorShapeProto getTensorShapeValue(); + /** + *
+     * Represents a TensorShape.
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape_value = 31; + */ + org.tensorflow.proto.TensorShapeProtoOrBuilder getTensorShapeValueOrBuilder(); + + /** + *
+     * Represents an enum value for dtype.
+     * 
+ * + * .tensorflow.DataType tensor_dtype_value = 32; + * @return Whether the tensorDtypeValue field is set. + */ + boolean hasTensorDtypeValue(); + /** + *
+     * Represents an enum value for dtype.
+     * 
+ * + * .tensorflow.DataType tensor_dtype_value = 32; + * @return The enum numeric value on the wire for tensorDtypeValue. + */ + int getTensorDtypeValueValue(); + /** + *
+     * Represents an enum value for dtype.
+     * 
+ * + * .tensorflow.DataType tensor_dtype_value = 32; + * @return The tensorDtypeValue. + */ + org.tensorflow.proto.DataType getTensorDtypeValue(); + + /** + *
+     * Represents a value for tf.TensorSpec.
+     * 
+ * + * .tensorflow.TensorSpecProto tensor_spec_value = 33; + * @return Whether the tensorSpecValue field is set. + */ + boolean hasTensorSpecValue(); + /** + *
+     * Represents a value for tf.TensorSpec.
+     * 
+ * + * .tensorflow.TensorSpecProto tensor_spec_value = 33; + * @return The tensorSpecValue. + */ + org.tensorflow.proto.Struct.TensorSpecProto getTensorSpecValue(); + /** + *
+     * Represents a value for tf.TensorSpec.
+     * 
+ * + * .tensorflow.TensorSpecProto tensor_spec_value = 33; + */ + org.tensorflow.proto.Struct.TensorSpecProtoOrBuilder getTensorSpecValueOrBuilder(); + + /** + *
+     * Represents a value for tf.TypeSpec.
+     * 
+ * + * .tensorflow.TypeSpecProto type_spec_value = 34; + * @return Whether the typeSpecValue field is set. + */ + boolean hasTypeSpecValue(); + /** + *
+     * Represents a value for tf.TypeSpec.
+     * 
+ * + * .tensorflow.TypeSpecProto type_spec_value = 34; + * @return The typeSpecValue. + */ + org.tensorflow.proto.Struct.TypeSpecProto getTypeSpecValue(); + /** + *
+     * Represents a value for tf.TypeSpec.
+     * 
+ * + * .tensorflow.TypeSpecProto type_spec_value = 34; + */ + org.tensorflow.proto.Struct.TypeSpecProtoOrBuilder getTypeSpecValueOrBuilder(); + + /** + *
+     * Represents a value for tf.BoundedTensorSpec.
+     * 
+ * + * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; + * @return Whether the boundedTensorSpecValue field is set. + */ + boolean hasBoundedTensorSpecValue(); + /** + *
+     * Represents a value for tf.BoundedTensorSpec.
+     * 
+ * + * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; + * @return The boundedTensorSpecValue. + */ + org.tensorflow.proto.Struct.BoundedTensorSpecProto getBoundedTensorSpecValue(); + /** + *
+     * Represents a value for tf.BoundedTensorSpec.
+     * 
+ * + * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; + */ + org.tensorflow.proto.Struct.BoundedTensorSpecProtoOrBuilder getBoundedTensorSpecValueOrBuilder(); + + /** + *
+     * Represents a list of `Value`.
+     * 
+ * + * .tensorflow.ListValue list_value = 51; + * @return Whether the listValue field is set. + */ + boolean hasListValue(); + /** + *
+     * Represents a list of `Value`.
+     * 
+ * + * .tensorflow.ListValue list_value = 51; + * @return The listValue. + */ + org.tensorflow.proto.Struct.ListValue getListValue(); + /** + *
+     * Represents a list of `Value`.
+     * 
+ * + * .tensorflow.ListValue list_value = 51; + */ + org.tensorflow.proto.Struct.ListValueOrBuilder getListValueOrBuilder(); + + /** + *
+     * Represents a tuple of `Value`.
+     * 
+ * + * .tensorflow.TupleValue tuple_value = 52; + * @return Whether the tupleValue field is set. + */ + boolean hasTupleValue(); + /** + *
+     * Represents a tuple of `Value`.
+     * 
+ * + * .tensorflow.TupleValue tuple_value = 52; + * @return The tupleValue. + */ + org.tensorflow.proto.Struct.TupleValue getTupleValue(); + /** + *
+     * Represents a tuple of `Value`.
+     * 
+ * + * .tensorflow.TupleValue tuple_value = 52; + */ + org.tensorflow.proto.Struct.TupleValueOrBuilder getTupleValueOrBuilder(); + + /** + *
+     * Represents a dict `Value`.
+     * 
+ * + * .tensorflow.DictValue dict_value = 53; + * @return Whether the dictValue field is set. + */ + boolean hasDictValue(); + /** + *
+     * Represents a dict `Value`.
+     * 
+ * + * .tensorflow.DictValue dict_value = 53; + * @return The dictValue. + */ + org.tensorflow.proto.Struct.DictValue getDictValue(); + /** + *
+     * Represents a dict `Value`.
+     * 
+ * + * .tensorflow.DictValue dict_value = 53; + */ + org.tensorflow.proto.Struct.DictValueOrBuilder getDictValueOrBuilder(); + + /** + *
+     * Represents Python's namedtuple.
+     * 
+ * + * .tensorflow.NamedTupleValue named_tuple_value = 54; + * @return Whether the namedTupleValue field is set. + */ + boolean hasNamedTupleValue(); + /** + *
+     * Represents Python's namedtuple.
+     * 
+ * + * .tensorflow.NamedTupleValue named_tuple_value = 54; + * @return The namedTupleValue. + */ + org.tensorflow.proto.Struct.NamedTupleValue getNamedTupleValue(); + /** + *
+     * Represents Python's namedtuple.
+     * 
+ * + * .tensorflow.NamedTupleValue named_tuple_value = 54; + */ + org.tensorflow.proto.Struct.NamedTupleValueOrBuilder getNamedTupleValueOrBuilder(); + + /** + *
+     * Represents a value for tf.Tensor.
+     * 
+ * + * .tensorflow.TensorProto tensor_value = 55; + * @return Whether the tensorValue field is set. + */ + boolean hasTensorValue(); + /** + *
+     * Represents a value for tf.Tensor.
+     * 
+ * + * .tensorflow.TensorProto tensor_value = 55; + * @return The tensorValue. + */ + org.tensorflow.proto.TensorProto getTensorValue(); + /** + *
+     * Represents a value for tf.Tensor.
+     * 
+ * + * .tensorflow.TensorProto tensor_value = 55; + */ + org.tensorflow.proto.TensorProtoOrBuilder getTensorValueOrBuilder(); + + /** + *
+     * Represents a value for np.ndarray.
+     * 
+ * + * .tensorflow.TensorProto numpy_value = 56; + * @return Whether the numpyValue field is set. + */ + boolean hasNumpyValue(); + /** + *
+     * Represents a value for np.ndarray.
+     * 
+ * + * .tensorflow.TensorProto numpy_value = 56; + * @return The numpyValue. + */ + org.tensorflow.proto.TensorProto getNumpyValue(); + /** + *
+     * Represents a value for np.ndarray.
+     * 
+ * + * .tensorflow.TensorProto numpy_value = 56; + */ + org.tensorflow.proto.TensorProtoOrBuilder getNumpyValueOrBuilder(); + + public org.tensorflow.proto.Struct.StructuredValue.KindCase getKindCase(); + } + /** + *
+   * `StructuredValue` represents a dynamically typed value representing various
+   * data structures that are inspired by Python data structures typically used in
+   * TensorFlow functions as inputs and outputs.
+   * For example when saving a Layer there may be a `training` argument. If the
+   * user passes a boolean True/False, that switches between two concrete
+   * TensorFlow functions. In order to switch between them in the same way after
+   * loading the SavedModel, we need to represent "True" and "False".
+   * A more advanced example might be a function which takes a list of
+   * dictionaries mapping from strings to Tensors. In order to map from
+   * user-specified arguments `[{"a": tf.constant(1.)}, {"q": tf.constant(3.)}]`
+   * after load to the right saved TensorFlow function, we need to represent the
+   * nested structure and the strings, recording that we have a trace for anything
+   * matching `[{"a": tf.TensorSpec(None, tf.float32)}, {"q": tf.TensorSpec([],
+   * tf.float64)}]` as an example.
+   * Likewise functions may return nested structures of Tensors, for example
+   * returning a dictionary mapping from strings to Tensors. In order for the
+   * loaded function to return the same structure we need to serialize it.
+   * This is an ergonomic aid for working with loaded SavedModels, not a promise
+   * to serialize all possible function signatures. For example we do not expect
+   * to pickle generic Python objects, and ideally we'd stay language-agnostic.
+   * 
+ * + * Protobuf type {@code tensorflow.StructuredValue} + */ + public static final class StructuredValue extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.StructuredValue) + StructuredValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use StructuredValue.newBuilder() to construct. + private StructuredValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StructuredValue() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StructuredValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_StructuredValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_StructuredValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Struct.StructuredValue.class, org.tensorflow.proto.Struct.StructuredValue.Builder.class); + } + + private int kindCase_ = 0; + private java.lang.Object kind_; + public enum KindCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + NONE_VALUE(1), + FLOAT64_VALUE(11), + INT64_VALUE(12), + STRING_VALUE(13), + BOOL_VALUE(14), + TENSOR_SHAPE_VALUE(31), + TENSOR_DTYPE_VALUE(32), + TENSOR_SPEC_VALUE(33), + TYPE_SPEC_VALUE(34), + BOUNDED_TENSOR_SPEC_VALUE(35), + LIST_VALUE(51), + TUPLE_VALUE(52), + DICT_VALUE(53), + NAMED_TUPLE_VALUE(54), + TENSOR_VALUE(55), + NUMPY_VALUE(56), + KIND_NOT_SET(0); + private final int value; + private KindCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static KindCase valueOf(int value) { + return forNumber(value); + } + + public static KindCase forNumber(int value) { + switch (value) { + case 1: return NONE_VALUE; + case 11: return FLOAT64_VALUE; + case 12: return INT64_VALUE; + case 13: return STRING_VALUE; + case 14: return BOOL_VALUE; + case 31: return TENSOR_SHAPE_VALUE; + case 32: return TENSOR_DTYPE_VALUE; + case 33: return TENSOR_SPEC_VALUE; + case 34: return TYPE_SPEC_VALUE; + case 35: return BOUNDED_TENSOR_SPEC_VALUE; + case 51: return LIST_VALUE; + case 52: return TUPLE_VALUE; + case 53: return DICT_VALUE; + case 54: return NAMED_TUPLE_VALUE; + case 55: return TENSOR_VALUE; + case 56: return NUMPY_VALUE; + case 0: return KIND_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); + } + + public static final int NONE_VALUE_FIELD_NUMBER = 1; + /** + *
+     * Represents None.
+     * 
+ * + * .tensorflow.NoneValue none_value = 1; + * @return Whether the noneValue field is set. + */ + @java.lang.Override + public boolean hasNoneValue() { + return kindCase_ == 1; + } + /** + *
+     * Represents None.
+     * 
+ * + * .tensorflow.NoneValue none_value = 1; + * @return The noneValue. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.NoneValue getNoneValue() { + if (kindCase_ == 1) { + return (org.tensorflow.proto.Struct.NoneValue) kind_; + } + return org.tensorflow.proto.Struct.NoneValue.getDefaultInstance(); + } + /** + *
+     * Represents None.
+     * 
+ * + * .tensorflow.NoneValue none_value = 1; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.NoneValueOrBuilder getNoneValueOrBuilder() { + if (kindCase_ == 1) { + return (org.tensorflow.proto.Struct.NoneValue) kind_; + } + return org.tensorflow.proto.Struct.NoneValue.getDefaultInstance(); + } + + public static final int FLOAT64_VALUE_FIELD_NUMBER = 11; + /** + *
+     * Represents a double-precision floating-point value (a Python `float`).
+     * 
+ * + * double float64_value = 11; + * @return Whether the float64Value field is set. + */ + @java.lang.Override + public boolean hasFloat64Value() { + return kindCase_ == 11; + } + /** + *
+     * Represents a double-precision floating-point value (a Python `float`).
+     * 
+ * + * double float64_value = 11; + * @return The float64Value. + */ + @java.lang.Override + public double getFloat64Value() { + if (kindCase_ == 11) { + return (java.lang.Double) kind_; + } + return 0D; + } + + public static final int INT64_VALUE_FIELD_NUMBER = 12; + /** + *
+     * Represents a signed integer value, limited to 64 bits.
+     * Larger values from Python's arbitrary-precision integers are unsupported.
+     * 
+ * + * sint64 int64_value = 12; + * @return Whether the int64Value field is set. + */ + @java.lang.Override + public boolean hasInt64Value() { + return kindCase_ == 12; + } + /** + *
+     * Represents a signed integer value, limited to 64 bits.
+     * Larger values from Python's arbitrary-precision integers are unsupported.
+     * 
+ * + * sint64 int64_value = 12; + * @return The int64Value. + */ + @java.lang.Override + public long getInt64Value() { + if (kindCase_ == 12) { + return (java.lang.Long) kind_; + } + return 0L; + } + + public static final int STRING_VALUE_FIELD_NUMBER = 13; + /** + *
+     * Represents a string of Unicode characters stored in a Python `str`.
+     * In Python 3, this is exactly what type `str` is.
+     * In Python 2, this is the UTF-8 encoding of the characters.
+     * For strings with ASCII characters only (as often used in TensorFlow code)
+     * there is effectively no difference between the language versions.
+     * The obsolescent `unicode` type of Python 2 is not supported here.
+     * 
+ * + * string string_value = 13; + * @return Whether the stringValue field is set. + */ + public boolean hasStringValue() { + return kindCase_ == 13; + } + /** + *
+     * Represents a string of Unicode characters stored in a Python `str`.
+     * In Python 3, this is exactly what type `str` is.
+     * In Python 2, this is the UTF-8 encoding of the characters.
+     * For strings with ASCII characters only (as often used in TensorFlow code)
+     * there is effectively no difference between the language versions.
+     * The obsolescent `unicode` type of Python 2 is not supported here.
+     * 
+ * + * string string_value = 13; + * @return The stringValue. + */ + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (kindCase_ == 13) { + ref = kind_; + } + 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(); + if (kindCase_ == 13) { + kind_ = s; + } + return s; + } + } + /** + *
+     * Represents a string of Unicode characters stored in a Python `str`.
+     * In Python 3, this is exactly what type `str` is.
+     * In Python 2, this is the UTF-8 encoding of the characters.
+     * For strings with ASCII characters only (as often used in TensorFlow code)
+     * there is effectively no difference between the language versions.
+     * The obsolescent `unicode` type of Python 2 is not supported here.
+     * 
+ * + * string string_value = 13; + * @return The bytes for stringValue. + */ + public com.google.protobuf.ByteString + getStringValueBytes() { + java.lang.Object ref = ""; + if (kindCase_ == 13) { + ref = kind_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (kindCase_ == 13) { + kind_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BOOL_VALUE_FIELD_NUMBER = 14; + /** + *
+     * Represents a boolean value.
+     * 
+ * + * bool bool_value = 14; + * @return Whether the boolValue field is set. + */ + @java.lang.Override + public boolean hasBoolValue() { + return kindCase_ == 14; + } + /** + *
+     * Represents a boolean value.
+     * 
+ * + * bool bool_value = 14; + * @return The boolValue. + */ + @java.lang.Override + public boolean getBoolValue() { + if (kindCase_ == 14) { + return (java.lang.Boolean) kind_; + } + return false; + } + + public static final int TENSOR_SHAPE_VALUE_FIELD_NUMBER = 31; + /** + *
+     * Represents a TensorShape.
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape_value = 31; + * @return Whether the tensorShapeValue field is set. + */ + @java.lang.Override + public boolean hasTensorShapeValue() { + return kindCase_ == 31; + } + /** + *
+     * Represents a TensorShape.
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape_value = 31; + * @return The tensorShapeValue. + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto getTensorShapeValue() { + if (kindCase_ == 31) { + return (org.tensorflow.proto.TensorShapeProto) kind_; + } + return org.tensorflow.proto.TensorShapeProto.getDefaultInstance(); + } + /** + *
+     * Represents a TensorShape.
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape_value = 31; + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProtoOrBuilder getTensorShapeValueOrBuilder() { + if (kindCase_ == 31) { + return (org.tensorflow.proto.TensorShapeProto) kind_; + } + return org.tensorflow.proto.TensorShapeProto.getDefaultInstance(); + } + + public static final int TENSOR_DTYPE_VALUE_FIELD_NUMBER = 32; + /** + *
+     * Represents an enum value for dtype.
+     * 
+ * + * .tensorflow.DataType tensor_dtype_value = 32; + * @return Whether the tensorDtypeValue field is set. + */ + public boolean hasTensorDtypeValue() { + return kindCase_ == 32; + } + /** + *
+     * Represents an enum value for dtype.
+     * 
+ * + * .tensorflow.DataType tensor_dtype_value = 32; + * @return The enum numeric value on the wire for tensorDtypeValue. + */ + public int getTensorDtypeValueValue() { + if (kindCase_ == 32) { + return (java.lang.Integer) kind_; + } + return 0; + } + /** + *
+     * Represents an enum value for dtype.
+     * 
+ * + * .tensorflow.DataType tensor_dtype_value = 32; + * @return The tensorDtypeValue. + */ + public org.tensorflow.proto.DataType getTensorDtypeValue() { + if (kindCase_ == 32) { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf( + (java.lang.Integer) kind_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + return org.tensorflow.proto.DataType.DT_INVALID; + } + + public static final int TENSOR_SPEC_VALUE_FIELD_NUMBER = 33; + /** + *
+     * Represents a value for tf.TensorSpec.
+     * 
+ * + * .tensorflow.TensorSpecProto tensor_spec_value = 33; + * @return Whether the tensorSpecValue field is set. + */ + @java.lang.Override + public boolean hasTensorSpecValue() { + return kindCase_ == 33; + } + /** + *
+     * Represents a value for tf.TensorSpec.
+     * 
+ * + * .tensorflow.TensorSpecProto tensor_spec_value = 33; + * @return The tensorSpecValue. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.TensorSpecProto getTensorSpecValue() { + if (kindCase_ == 33) { + return (org.tensorflow.proto.Struct.TensorSpecProto) kind_; + } + return org.tensorflow.proto.Struct.TensorSpecProto.getDefaultInstance(); + } + /** + *
+     * Represents a value for tf.TensorSpec.
+     * 
+ * + * .tensorflow.TensorSpecProto tensor_spec_value = 33; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.TensorSpecProtoOrBuilder getTensorSpecValueOrBuilder() { + if (kindCase_ == 33) { + return (org.tensorflow.proto.Struct.TensorSpecProto) kind_; + } + return org.tensorflow.proto.Struct.TensorSpecProto.getDefaultInstance(); + } + + public static final int TYPE_SPEC_VALUE_FIELD_NUMBER = 34; + /** + *
+     * Represents a value for tf.TypeSpec.
+     * 
+ * + * .tensorflow.TypeSpecProto type_spec_value = 34; + * @return Whether the typeSpecValue field is set. + */ + @java.lang.Override + public boolean hasTypeSpecValue() { + return kindCase_ == 34; + } + /** + *
+     * Represents a value for tf.TypeSpec.
+     * 
+ * + * .tensorflow.TypeSpecProto type_spec_value = 34; + * @return The typeSpecValue. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.TypeSpecProto getTypeSpecValue() { + if (kindCase_ == 34) { + return (org.tensorflow.proto.Struct.TypeSpecProto) kind_; + } + return org.tensorflow.proto.Struct.TypeSpecProto.getDefaultInstance(); + } + /** + *
+     * Represents a value for tf.TypeSpec.
+     * 
+ * + * .tensorflow.TypeSpecProto type_spec_value = 34; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.TypeSpecProtoOrBuilder getTypeSpecValueOrBuilder() { + if (kindCase_ == 34) { + return (org.tensorflow.proto.Struct.TypeSpecProto) kind_; + } + return org.tensorflow.proto.Struct.TypeSpecProto.getDefaultInstance(); + } + + public static final int BOUNDED_TENSOR_SPEC_VALUE_FIELD_NUMBER = 35; + /** + *
+     * Represents a value for tf.BoundedTensorSpec.
+     * 
+ * + * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; + * @return Whether the boundedTensorSpecValue field is set. + */ + @java.lang.Override + public boolean hasBoundedTensorSpecValue() { + return kindCase_ == 35; + } + /** + *
+     * Represents a value for tf.BoundedTensorSpec.
+     * 
+ * + * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; + * @return The boundedTensorSpecValue. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.BoundedTensorSpecProto getBoundedTensorSpecValue() { + if (kindCase_ == 35) { + return (org.tensorflow.proto.Struct.BoundedTensorSpecProto) kind_; + } + return org.tensorflow.proto.Struct.BoundedTensorSpecProto.getDefaultInstance(); + } + /** + *
+     * Represents a value for tf.BoundedTensorSpec.
+     * 
+ * + * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.BoundedTensorSpecProtoOrBuilder getBoundedTensorSpecValueOrBuilder() { + if (kindCase_ == 35) { + return (org.tensorflow.proto.Struct.BoundedTensorSpecProto) kind_; + } + return org.tensorflow.proto.Struct.BoundedTensorSpecProto.getDefaultInstance(); + } + + public static final int LIST_VALUE_FIELD_NUMBER = 51; + /** + *
+     * Represents a list of `Value`.
+     * 
+ * + * .tensorflow.ListValue list_value = 51; + * @return Whether the listValue field is set. + */ + @java.lang.Override + public boolean hasListValue() { + return kindCase_ == 51; + } + /** + *
+     * Represents a list of `Value`.
+     * 
+ * + * .tensorflow.ListValue list_value = 51; + * @return The listValue. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.ListValue getListValue() { + if (kindCase_ == 51) { + return (org.tensorflow.proto.Struct.ListValue) kind_; + } + return org.tensorflow.proto.Struct.ListValue.getDefaultInstance(); + } + /** + *
+     * Represents a list of `Value`.
+     * 
+ * + * .tensorflow.ListValue list_value = 51; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.ListValueOrBuilder getListValueOrBuilder() { + if (kindCase_ == 51) { + return (org.tensorflow.proto.Struct.ListValue) kind_; + } + return org.tensorflow.proto.Struct.ListValue.getDefaultInstance(); + } + + public static final int TUPLE_VALUE_FIELD_NUMBER = 52; + /** + *
+     * Represents a tuple of `Value`.
+     * 
+ * + * .tensorflow.TupleValue tuple_value = 52; + * @return Whether the tupleValue field is set. + */ + @java.lang.Override + public boolean hasTupleValue() { + return kindCase_ == 52; + } + /** + *
+     * Represents a tuple of `Value`.
+     * 
+ * + * .tensorflow.TupleValue tuple_value = 52; + * @return The tupleValue. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.TupleValue getTupleValue() { + if (kindCase_ == 52) { + return (org.tensorflow.proto.Struct.TupleValue) kind_; + } + return org.tensorflow.proto.Struct.TupleValue.getDefaultInstance(); + } + /** + *
+     * Represents a tuple of `Value`.
+     * 
+ * + * .tensorflow.TupleValue tuple_value = 52; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.TupleValueOrBuilder getTupleValueOrBuilder() { + if (kindCase_ == 52) { + return (org.tensorflow.proto.Struct.TupleValue) kind_; + } + return org.tensorflow.proto.Struct.TupleValue.getDefaultInstance(); + } + + public static final int DICT_VALUE_FIELD_NUMBER = 53; + /** + *
+     * Represents a dict `Value`.
+     * 
+ * + * .tensorflow.DictValue dict_value = 53; + * @return Whether the dictValue field is set. + */ + @java.lang.Override + public boolean hasDictValue() { + return kindCase_ == 53; + } + /** + *
+     * Represents a dict `Value`.
+     * 
+ * + * .tensorflow.DictValue dict_value = 53; + * @return The dictValue. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.DictValue getDictValue() { + if (kindCase_ == 53) { + return (org.tensorflow.proto.Struct.DictValue) kind_; + } + return org.tensorflow.proto.Struct.DictValue.getDefaultInstance(); + } + /** + *
+     * Represents a dict `Value`.
+     * 
+ * + * .tensorflow.DictValue dict_value = 53; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.DictValueOrBuilder getDictValueOrBuilder() { + if (kindCase_ == 53) { + return (org.tensorflow.proto.Struct.DictValue) kind_; + } + return org.tensorflow.proto.Struct.DictValue.getDefaultInstance(); + } + + public static final int NAMED_TUPLE_VALUE_FIELD_NUMBER = 54; + /** + *
+     * Represents Python's namedtuple.
+     * 
+ * + * .tensorflow.NamedTupleValue named_tuple_value = 54; + * @return Whether the namedTupleValue field is set. + */ + @java.lang.Override + public boolean hasNamedTupleValue() { + return kindCase_ == 54; + } + /** + *
+     * Represents Python's namedtuple.
+     * 
+ * + * .tensorflow.NamedTupleValue named_tuple_value = 54; + * @return The namedTupleValue. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.NamedTupleValue getNamedTupleValue() { + if (kindCase_ == 54) { + return (org.tensorflow.proto.Struct.NamedTupleValue) kind_; + } + return org.tensorflow.proto.Struct.NamedTupleValue.getDefaultInstance(); + } + /** + *
+     * Represents Python's namedtuple.
+     * 
+ * + * .tensorflow.NamedTupleValue named_tuple_value = 54; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.NamedTupleValueOrBuilder getNamedTupleValueOrBuilder() { + if (kindCase_ == 54) { + return (org.tensorflow.proto.Struct.NamedTupleValue) kind_; + } + return org.tensorflow.proto.Struct.NamedTupleValue.getDefaultInstance(); + } + + public static final int TENSOR_VALUE_FIELD_NUMBER = 55; + /** + *
+     * Represents a value for tf.Tensor.
+     * 
+ * + * .tensorflow.TensorProto tensor_value = 55; + * @return Whether the tensorValue field is set. + */ + @java.lang.Override + public boolean hasTensorValue() { + return kindCase_ == 55; + } + /** + *
+     * Represents a value for tf.Tensor.
+     * 
+ * + * .tensorflow.TensorProto tensor_value = 55; + * @return The tensorValue. + */ + @java.lang.Override + public org.tensorflow.proto.TensorProto getTensorValue() { + if (kindCase_ == 55) { + return (org.tensorflow.proto.TensorProto) kind_; + } + return org.tensorflow.proto.TensorProto.getDefaultInstance(); + } + /** + *
+     * Represents a value for tf.Tensor.
+     * 
+ * + * .tensorflow.TensorProto tensor_value = 55; + */ + @java.lang.Override + public org.tensorflow.proto.TensorProtoOrBuilder getTensorValueOrBuilder() { + if (kindCase_ == 55) { + return (org.tensorflow.proto.TensorProto) kind_; + } + return org.tensorflow.proto.TensorProto.getDefaultInstance(); + } + + public static final int NUMPY_VALUE_FIELD_NUMBER = 56; + /** + *
+     * Represents a value for np.ndarray.
+     * 
+ * + * .tensorflow.TensorProto numpy_value = 56; + * @return Whether the numpyValue field is set. + */ + @java.lang.Override + public boolean hasNumpyValue() { + return kindCase_ == 56; + } + /** + *
+     * Represents a value for np.ndarray.
+     * 
+ * + * .tensorflow.TensorProto numpy_value = 56; + * @return The numpyValue. + */ + @java.lang.Override + public org.tensorflow.proto.TensorProto getNumpyValue() { + if (kindCase_ == 56) { + return (org.tensorflow.proto.TensorProto) kind_; + } + return org.tensorflow.proto.TensorProto.getDefaultInstance(); + } + /** + *
+     * Represents a value for np.ndarray.
+     * 
+ * + * .tensorflow.TensorProto numpy_value = 56; + */ + @java.lang.Override + public org.tensorflow.proto.TensorProtoOrBuilder getNumpyValueOrBuilder() { + if (kindCase_ == 56) { + return (org.tensorflow.proto.TensorProto) kind_; + } + return org.tensorflow.proto.TensorProto.getDefaultInstance(); + } + + 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 (kindCase_ == 1) { + output.writeMessage(1, (org.tensorflow.proto.Struct.NoneValue) kind_); + } + if (kindCase_ == 11) { + output.writeDouble( + 11, (double)((java.lang.Double) kind_)); + } + if (kindCase_ == 12) { + output.writeSInt64( + 12, (long)((java.lang.Long) kind_)); + } + if (kindCase_ == 13) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, kind_); + } + if (kindCase_ == 14) { + output.writeBool( + 14, (boolean)((java.lang.Boolean) kind_)); + } + if (kindCase_ == 31) { + output.writeMessage(31, (org.tensorflow.proto.TensorShapeProto) kind_); + } + if (kindCase_ == 32) { + output.writeEnum(32, ((java.lang.Integer) kind_)); + } + if (kindCase_ == 33) { + output.writeMessage(33, (org.tensorflow.proto.Struct.TensorSpecProto) kind_); + } + if (kindCase_ == 34) { + output.writeMessage(34, (org.tensorflow.proto.Struct.TypeSpecProto) kind_); + } + if (kindCase_ == 35) { + output.writeMessage(35, (org.tensorflow.proto.Struct.BoundedTensorSpecProto) kind_); + } + if (kindCase_ == 51) { + output.writeMessage(51, (org.tensorflow.proto.Struct.ListValue) kind_); + } + if (kindCase_ == 52) { + output.writeMessage(52, (org.tensorflow.proto.Struct.TupleValue) kind_); + } + if (kindCase_ == 53) { + output.writeMessage(53, (org.tensorflow.proto.Struct.DictValue) kind_); + } + if (kindCase_ == 54) { + output.writeMessage(54, (org.tensorflow.proto.Struct.NamedTupleValue) kind_); + } + if (kindCase_ == 55) { + output.writeMessage(55, (org.tensorflow.proto.TensorProto) kind_); + } + if (kindCase_ == 56) { + output.writeMessage(56, (org.tensorflow.proto.TensorProto) kind_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (kindCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (org.tensorflow.proto.Struct.NoneValue) kind_); + } + if (kindCase_ == 11) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 11, (double)((java.lang.Double) kind_)); + } + if (kindCase_ == 12) { + size += com.google.protobuf.CodedOutputStream + .computeSInt64Size( + 12, (long)((java.lang.Long) kind_)); + } + if (kindCase_ == 13) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, kind_); + } + if (kindCase_ == 14) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 14, (boolean)((java.lang.Boolean) kind_)); + } + if (kindCase_ == 31) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(31, (org.tensorflow.proto.TensorShapeProto) kind_); + } + if (kindCase_ == 32) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(32, ((java.lang.Integer) kind_)); + } + if (kindCase_ == 33) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(33, (org.tensorflow.proto.Struct.TensorSpecProto) kind_); + } + if (kindCase_ == 34) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(34, (org.tensorflow.proto.Struct.TypeSpecProto) kind_); + } + if (kindCase_ == 35) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(35, (org.tensorflow.proto.Struct.BoundedTensorSpecProto) kind_); + } + if (kindCase_ == 51) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(51, (org.tensorflow.proto.Struct.ListValue) kind_); + } + if (kindCase_ == 52) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(52, (org.tensorflow.proto.Struct.TupleValue) kind_); + } + if (kindCase_ == 53) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(53, (org.tensorflow.proto.Struct.DictValue) kind_); + } + if (kindCase_ == 54) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(54, (org.tensorflow.proto.Struct.NamedTupleValue) kind_); + } + if (kindCase_ == 55) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(55, (org.tensorflow.proto.TensorProto) kind_); + } + if (kindCase_ == 56) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(56, (org.tensorflow.proto.TensorProto) kind_); + } + 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 org.tensorflow.proto.Struct.StructuredValue)) { + return super.equals(obj); + } + org.tensorflow.proto.Struct.StructuredValue other = (org.tensorflow.proto.Struct.StructuredValue) obj; + + if (!getKindCase().equals(other.getKindCase())) return false; + switch (kindCase_) { + case 1: + if (!getNoneValue() + .equals(other.getNoneValue())) return false; + break; + case 11: + if (java.lang.Double.doubleToLongBits(getFloat64Value()) + != java.lang.Double.doubleToLongBits( + other.getFloat64Value())) return false; + break; + case 12: + if (getInt64Value() + != other.getInt64Value()) return false; + break; + case 13: + if (!getStringValue() + .equals(other.getStringValue())) return false; + break; + case 14: + if (getBoolValue() + != other.getBoolValue()) return false; + break; + case 31: + if (!getTensorShapeValue() + .equals(other.getTensorShapeValue())) return false; + break; + case 32: + if (getTensorDtypeValueValue() + != other.getTensorDtypeValueValue()) return false; + break; + case 33: + if (!getTensorSpecValue() + .equals(other.getTensorSpecValue())) return false; + break; + case 34: + if (!getTypeSpecValue() + .equals(other.getTypeSpecValue())) return false; + break; + case 35: + if (!getBoundedTensorSpecValue() + .equals(other.getBoundedTensorSpecValue())) return false; + break; + case 51: + if (!getListValue() + .equals(other.getListValue())) return false; + break; + case 52: + if (!getTupleValue() + .equals(other.getTupleValue())) return false; + break; + case 53: + if (!getDictValue() + .equals(other.getDictValue())) return false; + break; + case 54: + if (!getNamedTupleValue() + .equals(other.getNamedTupleValue())) return false; + break; + case 55: + if (!getTensorValue() + .equals(other.getTensorValue())) return false; + break; + case 56: + if (!getNumpyValue() + .equals(other.getNumpyValue())) return false; + break; + case 0: + default: + } + 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(); + switch (kindCase_) { + case 1: + hash = (37 * hash) + NONE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getNoneValue().hashCode(); + break; + case 11: + hash = (37 * hash) + FLOAT64_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFloat64Value())); + break; + case 12: + hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInt64Value()); + break; + case 13: + hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getStringValue().hashCode(); + break; + case 14: + hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBoolValue()); + break; + case 31: + hash = (37 * hash) + TENSOR_SHAPE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getTensorShapeValue().hashCode(); + break; + case 32: + hash = (37 * hash) + TENSOR_DTYPE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getTensorDtypeValueValue(); + break; + case 33: + hash = (37 * hash) + TENSOR_SPEC_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getTensorSpecValue().hashCode(); + break; + case 34: + hash = (37 * hash) + TYPE_SPEC_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getTypeSpecValue().hashCode(); + break; + case 35: + hash = (37 * hash) + BOUNDED_TENSOR_SPEC_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getBoundedTensorSpecValue().hashCode(); + break; + case 51: + hash = (37 * hash) + LIST_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getListValue().hashCode(); + break; + case 52: + hash = (37 * hash) + TUPLE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getTupleValue().hashCode(); + break; + case 53: + hash = (37 * hash) + DICT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDictValue().hashCode(); + break; + case 54: + hash = (37 * hash) + NAMED_TUPLE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getNamedTupleValue().hashCode(); + break; + case 55: + hash = (37 * hash) + TENSOR_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getTensorValue().hashCode(); + break; + case 56: + hash = (37 * hash) + NUMPY_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getNumpyValue().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.Struct.StructuredValue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.StructuredValue parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.StructuredValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.StructuredValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.StructuredValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.StructuredValue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.StructuredValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.StructuredValue 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 org.tensorflow.proto.Struct.StructuredValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.StructuredValue 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 org.tensorflow.proto.Struct.StructuredValue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.StructuredValue 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(org.tensorflow.proto.Struct.StructuredValue 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; + } + /** + *
+     * `StructuredValue` represents a dynamically typed value representing various
+     * data structures that are inspired by Python data structures typically used in
+     * TensorFlow functions as inputs and outputs.
+     * For example when saving a Layer there may be a `training` argument. If the
+     * user passes a boolean True/False, that switches between two concrete
+     * TensorFlow functions. In order to switch between them in the same way after
+     * loading the SavedModel, we need to represent "True" and "False".
+     * A more advanced example might be a function which takes a list of
+     * dictionaries mapping from strings to Tensors. In order to map from
+     * user-specified arguments `[{"a": tf.constant(1.)}, {"q": tf.constant(3.)}]`
+     * after load to the right saved TensorFlow function, we need to represent the
+     * nested structure and the strings, recording that we have a trace for anything
+     * matching `[{"a": tf.TensorSpec(None, tf.float32)}, {"q": tf.TensorSpec([],
+     * tf.float64)}]` as an example.
+     * Likewise functions may return nested structures of Tensors, for example
+     * returning a dictionary mapping from strings to Tensors. In order for the
+     * loaded function to return the same structure we need to serialize it.
+     * This is an ergonomic aid for working with loaded SavedModels, not a promise
+     * to serialize all possible function signatures. For example we do not expect
+     * to pickle generic Python objects, and ideally we'd stay language-agnostic.
+     * 
+ * + * Protobuf type {@code tensorflow.StructuredValue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.StructuredValue) + org.tensorflow.proto.Struct.StructuredValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_StructuredValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_StructuredValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Struct.StructuredValue.class, org.tensorflow.proto.Struct.StructuredValue.Builder.class); + } + + // Construct using org.tensorflow.proto.Struct.StructuredValue.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (noneValueBuilder_ != null) { + noneValueBuilder_.clear(); + } + if (tensorShapeValueBuilder_ != null) { + tensorShapeValueBuilder_.clear(); + } + if (tensorSpecValueBuilder_ != null) { + tensorSpecValueBuilder_.clear(); + } + if (typeSpecValueBuilder_ != null) { + typeSpecValueBuilder_.clear(); + } + if (boundedTensorSpecValueBuilder_ != null) { + boundedTensorSpecValueBuilder_.clear(); + } + if (listValueBuilder_ != null) { + listValueBuilder_.clear(); + } + if (tupleValueBuilder_ != null) { + tupleValueBuilder_.clear(); + } + if (dictValueBuilder_ != null) { + dictValueBuilder_.clear(); + } + if (namedTupleValueBuilder_ != null) { + namedTupleValueBuilder_.clear(); + } + if (tensorValueBuilder_ != null) { + tensorValueBuilder_.clear(); + } + if (numpyValueBuilder_ != null) { + numpyValueBuilder_.clear(); + } + kindCase_ = 0; + kind_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_StructuredValue_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.Struct.StructuredValue getDefaultInstanceForType() { + return org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.Struct.StructuredValue build() { + org.tensorflow.proto.Struct.StructuredValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.Struct.StructuredValue buildPartial() { + org.tensorflow.proto.Struct.StructuredValue result = new org.tensorflow.proto.Struct.StructuredValue(this); + if (kindCase_ == 1) { + if (noneValueBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = noneValueBuilder_.build(); + } + } + if (kindCase_ == 11) { + result.kind_ = kind_; + } + if (kindCase_ == 12) { + result.kind_ = kind_; + } + if (kindCase_ == 13) { + result.kind_ = kind_; + } + if (kindCase_ == 14) { + result.kind_ = kind_; + } + if (kindCase_ == 31) { + if (tensorShapeValueBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = tensorShapeValueBuilder_.build(); + } + } + if (kindCase_ == 32) { + result.kind_ = kind_; + } + if (kindCase_ == 33) { + if (tensorSpecValueBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = tensorSpecValueBuilder_.build(); + } + } + if (kindCase_ == 34) { + if (typeSpecValueBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = typeSpecValueBuilder_.build(); + } + } + if (kindCase_ == 35) { + if (boundedTensorSpecValueBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = boundedTensorSpecValueBuilder_.build(); + } + } + if (kindCase_ == 51) { + if (listValueBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = listValueBuilder_.build(); + } + } + if (kindCase_ == 52) { + if (tupleValueBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = tupleValueBuilder_.build(); + } + } + if (kindCase_ == 53) { + if (dictValueBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = dictValueBuilder_.build(); + } + } + if (kindCase_ == 54) { + if (namedTupleValueBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = namedTupleValueBuilder_.build(); + } + } + if (kindCase_ == 55) { + if (tensorValueBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = tensorValueBuilder_.build(); + } + } + if (kindCase_ == 56) { + if (numpyValueBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = numpyValueBuilder_.build(); + } + } + result.kindCase_ = kindCase_; + 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 org.tensorflow.proto.Struct.StructuredValue) { + return mergeFrom((org.tensorflow.proto.Struct.StructuredValue)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.Struct.StructuredValue other) { + if (other == org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance()) return this; + switch (other.getKindCase()) { + case NONE_VALUE: { + mergeNoneValue(other.getNoneValue()); + break; + } + case FLOAT64_VALUE: { + setFloat64Value(other.getFloat64Value()); + break; + } + case INT64_VALUE: { + setInt64Value(other.getInt64Value()); + break; + } + case STRING_VALUE: { + kindCase_ = 13; + kind_ = other.kind_; + onChanged(); + break; + } + case BOOL_VALUE: { + setBoolValue(other.getBoolValue()); + break; + } + case TENSOR_SHAPE_VALUE: { + mergeTensorShapeValue(other.getTensorShapeValue()); + break; + } + case TENSOR_DTYPE_VALUE: { + setTensorDtypeValueValue(other.getTensorDtypeValueValue()); + break; + } + case TENSOR_SPEC_VALUE: { + mergeTensorSpecValue(other.getTensorSpecValue()); + break; + } + case TYPE_SPEC_VALUE: { + mergeTypeSpecValue(other.getTypeSpecValue()); + break; + } + case BOUNDED_TENSOR_SPEC_VALUE: { + mergeBoundedTensorSpecValue(other.getBoundedTensorSpecValue()); + break; + } + case LIST_VALUE: { + mergeListValue(other.getListValue()); + break; + } + case TUPLE_VALUE: { + mergeTupleValue(other.getTupleValue()); + break; + } + case DICT_VALUE: { + mergeDictValue(other.getDictValue()); + break; + } + case NAMED_TUPLE_VALUE: { + mergeNamedTupleValue(other.getNamedTupleValue()); + break; + } + case TENSOR_VALUE: { + mergeTensorValue(other.getTensorValue()); + break; + } + case NUMPY_VALUE: { + mergeNumpyValue(other.getNumpyValue()); + break; + } + case KIND_NOT_SET: { + break; + } + } + 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( + getNoneValueFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 1; + break; + } // case 10 + case 89: { + kind_ = input.readDouble(); + kindCase_ = 11; + break; + } // case 89 + case 96: { + kind_ = input.readSInt64(); + kindCase_ = 12; + break; + } // case 96 + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + kindCase_ = 13; + kind_ = s; + break; + } // case 106 + case 112: { + kind_ = input.readBool(); + kindCase_ = 14; + break; + } // case 112 + case 250: { + input.readMessage( + getTensorShapeValueFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 31; + break; + } // case 250 + case 256: { + int rawValue = input.readEnum(); + kindCase_ = 32; + kind_ = rawValue; + break; + } // case 256 + case 266: { + input.readMessage( + getTensorSpecValueFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 33; + break; + } // case 266 + case 274: { + input.readMessage( + getTypeSpecValueFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 34; + break; + } // case 274 + case 282: { + input.readMessage( + getBoundedTensorSpecValueFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 35; + break; + } // case 282 + case 410: { + input.readMessage( + getListValueFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 51; + break; + } // case 410 + case 418: { + input.readMessage( + getTupleValueFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 52; + break; + } // case 418 + case 426: { + input.readMessage( + getDictValueFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 53; + break; + } // case 426 + case 434: { + input.readMessage( + getNamedTupleValueFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 54; + break; + } // case 434 + case 442: { + input.readMessage( + getTensorValueFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 55; + break; + } // case 442 + case 450: { + input.readMessage( + getNumpyValueFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 56; + break; + } // case 450 + 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 kindCase_ = 0; + private java.lang.Object kind_; + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); + } + + public Builder clearKind() { + kindCase_ = 0; + kind_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.NoneValue, org.tensorflow.proto.Struct.NoneValue.Builder, org.tensorflow.proto.Struct.NoneValueOrBuilder> noneValueBuilder_; + /** + *
+       * Represents None.
+       * 
+ * + * .tensorflow.NoneValue none_value = 1; + * @return Whether the noneValue field is set. + */ + @java.lang.Override + public boolean hasNoneValue() { + return kindCase_ == 1; + } + /** + *
+       * Represents None.
+       * 
+ * + * .tensorflow.NoneValue none_value = 1; + * @return The noneValue. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.NoneValue getNoneValue() { + if (noneValueBuilder_ == null) { + if (kindCase_ == 1) { + return (org.tensorflow.proto.Struct.NoneValue) kind_; + } + return org.tensorflow.proto.Struct.NoneValue.getDefaultInstance(); + } else { + if (kindCase_ == 1) { + return noneValueBuilder_.getMessage(); + } + return org.tensorflow.proto.Struct.NoneValue.getDefaultInstance(); + } + } + /** + *
+       * Represents None.
+       * 
+ * + * .tensorflow.NoneValue none_value = 1; + */ + public Builder setNoneValue(org.tensorflow.proto.Struct.NoneValue value) { + if (noneValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + noneValueBuilder_.setMessage(value); + } + kindCase_ = 1; + return this; + } + /** + *
+       * Represents None.
+       * 
+ * + * .tensorflow.NoneValue none_value = 1; + */ + public Builder setNoneValue( + org.tensorflow.proto.Struct.NoneValue.Builder builderForValue) { + if (noneValueBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + noneValueBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 1; + return this; + } + /** + *
+       * Represents None.
+       * 
+ * + * .tensorflow.NoneValue none_value = 1; + */ + public Builder mergeNoneValue(org.tensorflow.proto.Struct.NoneValue value) { + if (noneValueBuilder_ == null) { + if (kindCase_ == 1 && + kind_ != org.tensorflow.proto.Struct.NoneValue.getDefaultInstance()) { + kind_ = org.tensorflow.proto.Struct.NoneValue.newBuilder((org.tensorflow.proto.Struct.NoneValue) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 1) { + noneValueBuilder_.mergeFrom(value); + } else { + noneValueBuilder_.setMessage(value); + } + } + kindCase_ = 1; + return this; + } + /** + *
+       * Represents None.
+       * 
+ * + * .tensorflow.NoneValue none_value = 1; + */ + public Builder clearNoneValue() { + if (noneValueBuilder_ == null) { + if (kindCase_ == 1) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 1) { + kindCase_ = 0; + kind_ = null; + } + noneValueBuilder_.clear(); + } + return this; + } + /** + *
+       * Represents None.
+       * 
+ * + * .tensorflow.NoneValue none_value = 1; + */ + public org.tensorflow.proto.Struct.NoneValue.Builder getNoneValueBuilder() { + return getNoneValueFieldBuilder().getBuilder(); + } + /** + *
+       * Represents None.
+       * 
+ * + * .tensorflow.NoneValue none_value = 1; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.NoneValueOrBuilder getNoneValueOrBuilder() { + if ((kindCase_ == 1) && (noneValueBuilder_ != null)) { + return noneValueBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 1) { + return (org.tensorflow.proto.Struct.NoneValue) kind_; + } + return org.tensorflow.proto.Struct.NoneValue.getDefaultInstance(); + } + } + /** + *
+       * Represents None.
+       * 
+ * + * .tensorflow.NoneValue none_value = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.NoneValue, org.tensorflow.proto.Struct.NoneValue.Builder, org.tensorflow.proto.Struct.NoneValueOrBuilder> + getNoneValueFieldBuilder() { + if (noneValueBuilder_ == null) { + if (!(kindCase_ == 1)) { + kind_ = org.tensorflow.proto.Struct.NoneValue.getDefaultInstance(); + } + noneValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.NoneValue, org.tensorflow.proto.Struct.NoneValue.Builder, org.tensorflow.proto.Struct.NoneValueOrBuilder>( + (org.tensorflow.proto.Struct.NoneValue) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 1; + onChanged();; + return noneValueBuilder_; + } + + /** + *
+       * Represents a double-precision floating-point value (a Python `float`).
+       * 
+ * + * double float64_value = 11; + * @return Whether the float64Value field is set. + */ + public boolean hasFloat64Value() { + return kindCase_ == 11; + } + /** + *
+       * Represents a double-precision floating-point value (a Python `float`).
+       * 
+ * + * double float64_value = 11; + * @return The float64Value. + */ + public double getFloat64Value() { + if (kindCase_ == 11) { + return (java.lang.Double) kind_; + } + return 0D; + } + /** + *
+       * Represents a double-precision floating-point value (a Python `float`).
+       * 
+ * + * double float64_value = 11; + * @param value The float64Value to set. + * @return This builder for chaining. + */ + public Builder setFloat64Value(double value) { + kindCase_ = 11; + kind_ = value; + onChanged(); + return this; + } + /** + *
+       * Represents a double-precision floating-point value (a Python `float`).
+       * 
+ * + * double float64_value = 11; + * @return This builder for chaining. + */ + public Builder clearFloat64Value() { + if (kindCase_ == 11) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + return this; + } + + /** + *
+       * Represents a signed integer value, limited to 64 bits.
+       * Larger values from Python's arbitrary-precision integers are unsupported.
+       * 
+ * + * sint64 int64_value = 12; + * @return Whether the int64Value field is set. + */ + public boolean hasInt64Value() { + return kindCase_ == 12; + } + /** + *
+       * Represents a signed integer value, limited to 64 bits.
+       * Larger values from Python's arbitrary-precision integers are unsupported.
+       * 
+ * + * sint64 int64_value = 12; + * @return The int64Value. + */ + public long getInt64Value() { + if (kindCase_ == 12) { + return (java.lang.Long) kind_; + } + return 0L; + } + /** + *
+       * Represents a signed integer value, limited to 64 bits.
+       * Larger values from Python's arbitrary-precision integers are unsupported.
+       * 
+ * + * sint64 int64_value = 12; + * @param value The int64Value to set. + * @return This builder for chaining. + */ + public Builder setInt64Value(long value) { + kindCase_ = 12; + kind_ = value; + onChanged(); + return this; + } + /** + *
+       * Represents a signed integer value, limited to 64 bits.
+       * Larger values from Python's arbitrary-precision integers are unsupported.
+       * 
+ * + * sint64 int64_value = 12; + * @return This builder for chaining. + */ + public Builder clearInt64Value() { + if (kindCase_ == 12) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + return this; + } + + /** + *
+       * Represents a string of Unicode characters stored in a Python `str`.
+       * In Python 3, this is exactly what type `str` is.
+       * In Python 2, this is the UTF-8 encoding of the characters.
+       * For strings with ASCII characters only (as often used in TensorFlow code)
+       * there is effectively no difference between the language versions.
+       * The obsolescent `unicode` type of Python 2 is not supported here.
+       * 
+ * + * string string_value = 13; + * @return Whether the stringValue field is set. + */ + @java.lang.Override + public boolean hasStringValue() { + return kindCase_ == 13; + } + /** + *
+       * Represents a string of Unicode characters stored in a Python `str`.
+       * In Python 3, this is exactly what type `str` is.
+       * In Python 2, this is the UTF-8 encoding of the characters.
+       * For strings with ASCII characters only (as often used in TensorFlow code)
+       * there is effectively no difference between the language versions.
+       * The obsolescent `unicode` type of Python 2 is not supported here.
+       * 
+ * + * string string_value = 13; + * @return The stringValue. + */ + @java.lang.Override + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (kindCase_ == 13) { + ref = kind_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (kindCase_ == 13) { + kind_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Represents a string of Unicode characters stored in a Python `str`.
+       * In Python 3, this is exactly what type `str` is.
+       * In Python 2, this is the UTF-8 encoding of the characters.
+       * For strings with ASCII characters only (as often used in TensorFlow code)
+       * there is effectively no difference between the language versions.
+       * The obsolescent `unicode` type of Python 2 is not supported here.
+       * 
+ * + * string string_value = 13; + * @return The bytes for stringValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStringValueBytes() { + java.lang.Object ref = ""; + if (kindCase_ == 13) { + ref = kind_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (kindCase_ == 13) { + kind_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Represents a string of Unicode characters stored in a Python `str`.
+       * In Python 3, this is exactly what type `str` is.
+       * In Python 2, this is the UTF-8 encoding of the characters.
+       * For strings with ASCII characters only (as often used in TensorFlow code)
+       * there is effectively no difference between the language versions.
+       * The obsolescent `unicode` type of Python 2 is not supported here.
+       * 
+ * + * string string_value = 13; + * @param value The stringValue to set. + * @return This builder for chaining. + */ + public Builder setStringValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kindCase_ = 13; + kind_ = value; + onChanged(); + return this; + } + /** + *
+       * Represents a string of Unicode characters stored in a Python `str`.
+       * In Python 3, this is exactly what type `str` is.
+       * In Python 2, this is the UTF-8 encoding of the characters.
+       * For strings with ASCII characters only (as often used in TensorFlow code)
+       * there is effectively no difference between the language versions.
+       * The obsolescent `unicode` type of Python 2 is not supported here.
+       * 
+ * + * string string_value = 13; + * @return This builder for chaining. + */ + public Builder clearStringValue() { + if (kindCase_ == 13) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + return this; + } + /** + *
+       * Represents a string of Unicode characters stored in a Python `str`.
+       * In Python 3, this is exactly what type `str` is.
+       * In Python 2, this is the UTF-8 encoding of the characters.
+       * For strings with ASCII characters only (as often used in TensorFlow code)
+       * there is effectively no difference between the language versions.
+       * The obsolescent `unicode` type of Python 2 is not supported here.
+       * 
+ * + * string string_value = 13; + * @param value The bytes for stringValue to set. + * @return This builder for chaining. + */ + public Builder setStringValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kindCase_ = 13; + kind_ = value; + onChanged(); + return this; + } + + /** + *
+       * Represents a boolean value.
+       * 
+ * + * bool bool_value = 14; + * @return Whether the boolValue field is set. + */ + public boolean hasBoolValue() { + return kindCase_ == 14; + } + /** + *
+       * Represents a boolean value.
+       * 
+ * + * bool bool_value = 14; + * @return The boolValue. + */ + public boolean getBoolValue() { + if (kindCase_ == 14) { + return (java.lang.Boolean) kind_; + } + return false; + } + /** + *
+       * Represents a boolean value.
+       * 
+ * + * bool bool_value = 14; + * @param value The boolValue to set. + * @return This builder for chaining. + */ + public Builder setBoolValue(boolean value) { + kindCase_ = 14; + kind_ = value; + onChanged(); + return this; + } + /** + *
+       * Represents a boolean value.
+       * 
+ * + * bool bool_value = 14; + * @return This builder for chaining. + */ + public Builder clearBoolValue() { + if (kindCase_ == 14) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> tensorShapeValueBuilder_; + /** + *
+       * Represents a TensorShape.
+       * 
+ * + * .tensorflow.TensorShapeProto tensor_shape_value = 31; + * @return Whether the tensorShapeValue field is set. + */ + @java.lang.Override + public boolean hasTensorShapeValue() { + return kindCase_ == 31; + } + /** + *
+       * Represents a TensorShape.
+       * 
+ * + * .tensorflow.TensorShapeProto tensor_shape_value = 31; + * @return The tensorShapeValue. + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto getTensorShapeValue() { + if (tensorShapeValueBuilder_ == null) { + if (kindCase_ == 31) { + return (org.tensorflow.proto.TensorShapeProto) kind_; + } + return org.tensorflow.proto.TensorShapeProto.getDefaultInstance(); + } else { + if (kindCase_ == 31) { + return tensorShapeValueBuilder_.getMessage(); + } + return org.tensorflow.proto.TensorShapeProto.getDefaultInstance(); + } + } + /** + *
+       * Represents a TensorShape.
+       * 
+ * + * .tensorflow.TensorShapeProto tensor_shape_value = 31; + */ + public Builder setTensorShapeValue(org.tensorflow.proto.TensorShapeProto value) { + if (tensorShapeValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + tensorShapeValueBuilder_.setMessage(value); + } + kindCase_ = 31; + return this; + } + /** + *
+       * Represents a TensorShape.
+       * 
+ * + * .tensorflow.TensorShapeProto tensor_shape_value = 31; + */ + public Builder setTensorShapeValue( + org.tensorflow.proto.TensorShapeProto.Builder builderForValue) { + if (tensorShapeValueBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + tensorShapeValueBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 31; + return this; + } + /** + *
+       * Represents a TensorShape.
+       * 
+ * + * .tensorflow.TensorShapeProto tensor_shape_value = 31; + */ + public Builder mergeTensorShapeValue(org.tensorflow.proto.TensorShapeProto value) { + if (tensorShapeValueBuilder_ == null) { + if (kindCase_ == 31 && + kind_ != org.tensorflow.proto.TensorShapeProto.getDefaultInstance()) { + kind_ = org.tensorflow.proto.TensorShapeProto.newBuilder((org.tensorflow.proto.TensorShapeProto) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 31) { + tensorShapeValueBuilder_.mergeFrom(value); + } else { + tensorShapeValueBuilder_.setMessage(value); + } + } + kindCase_ = 31; + return this; + } + /** + *
+       * Represents a TensorShape.
+       * 
+ * + * .tensorflow.TensorShapeProto tensor_shape_value = 31; + */ + public Builder clearTensorShapeValue() { + if (tensorShapeValueBuilder_ == null) { + if (kindCase_ == 31) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 31) { + kindCase_ = 0; + kind_ = null; + } + tensorShapeValueBuilder_.clear(); + } + return this; + } + /** + *
+       * Represents a TensorShape.
+       * 
+ * + * .tensorflow.TensorShapeProto tensor_shape_value = 31; + */ + public org.tensorflow.proto.TensorShapeProto.Builder getTensorShapeValueBuilder() { + return getTensorShapeValueFieldBuilder().getBuilder(); + } + /** + *
+       * Represents a TensorShape.
+       * 
+ * + * .tensorflow.TensorShapeProto tensor_shape_value = 31; + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProtoOrBuilder getTensorShapeValueOrBuilder() { + if ((kindCase_ == 31) && (tensorShapeValueBuilder_ != null)) { + return tensorShapeValueBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 31) { + return (org.tensorflow.proto.TensorShapeProto) kind_; + } + return org.tensorflow.proto.TensorShapeProto.getDefaultInstance(); + } + } + /** + *
+       * Represents a TensorShape.
+       * 
+ * + * .tensorflow.TensorShapeProto tensor_shape_value = 31; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> + getTensorShapeValueFieldBuilder() { + if (tensorShapeValueBuilder_ == null) { + if (!(kindCase_ == 31)) { + kind_ = org.tensorflow.proto.TensorShapeProto.getDefaultInstance(); + } + tensorShapeValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder>( + (org.tensorflow.proto.TensorShapeProto) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 31; + onChanged();; + return tensorShapeValueBuilder_; + } + + /** + *
+       * Represents an enum value for dtype.
+       * 
+ * + * .tensorflow.DataType tensor_dtype_value = 32; + * @return Whether the tensorDtypeValue field is set. + */ + @java.lang.Override + public boolean hasTensorDtypeValue() { + return kindCase_ == 32; + } + /** + *
+       * Represents an enum value for dtype.
+       * 
+ * + * .tensorflow.DataType tensor_dtype_value = 32; + * @return The enum numeric value on the wire for tensorDtypeValue. + */ + @java.lang.Override + public int getTensorDtypeValueValue() { + if (kindCase_ == 32) { + return ((java.lang.Integer) kind_).intValue(); + } + return 0; + } + /** + *
+       * Represents an enum value for dtype.
+       * 
+ * + * .tensorflow.DataType tensor_dtype_value = 32; + * @param value The enum numeric value on the wire for tensorDtypeValue to set. + * @return This builder for chaining. + */ + public Builder setTensorDtypeValueValue(int value) { + kindCase_ = 32; + kind_ = value; + onChanged(); + return this; + } + /** + *
+       * Represents an enum value for dtype.
+       * 
+ * + * .tensorflow.DataType tensor_dtype_value = 32; + * @return The tensorDtypeValue. + */ + @java.lang.Override + public org.tensorflow.proto.DataType getTensorDtypeValue() { + if (kindCase_ == 32) { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf( + (java.lang.Integer) kind_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + return org.tensorflow.proto.DataType.DT_INVALID; + } + /** + *
+       * Represents an enum value for dtype.
+       * 
+ * + * .tensorflow.DataType tensor_dtype_value = 32; + * @param value The tensorDtypeValue to set. + * @return This builder for chaining. + */ + public Builder setTensorDtypeValue(org.tensorflow.proto.DataType value) { + if (value == null) { + throw new NullPointerException(); + } + kindCase_ = 32; + kind_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Represents an enum value for dtype.
+       * 
+ * + * .tensorflow.DataType tensor_dtype_value = 32; + * @return This builder for chaining. + */ + public Builder clearTensorDtypeValue() { + if (kindCase_ == 32) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.TensorSpecProto, org.tensorflow.proto.Struct.TensorSpecProto.Builder, org.tensorflow.proto.Struct.TensorSpecProtoOrBuilder> tensorSpecValueBuilder_; + /** + *
+       * Represents a value for tf.TensorSpec.
+       * 
+ * + * .tensorflow.TensorSpecProto tensor_spec_value = 33; + * @return Whether the tensorSpecValue field is set. + */ + @java.lang.Override + public boolean hasTensorSpecValue() { + return kindCase_ == 33; + } + /** + *
+       * Represents a value for tf.TensorSpec.
+       * 
+ * + * .tensorflow.TensorSpecProto tensor_spec_value = 33; + * @return The tensorSpecValue. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.TensorSpecProto getTensorSpecValue() { + if (tensorSpecValueBuilder_ == null) { + if (kindCase_ == 33) { + return (org.tensorflow.proto.Struct.TensorSpecProto) kind_; + } + return org.tensorflow.proto.Struct.TensorSpecProto.getDefaultInstance(); + } else { + if (kindCase_ == 33) { + return tensorSpecValueBuilder_.getMessage(); + } + return org.tensorflow.proto.Struct.TensorSpecProto.getDefaultInstance(); + } + } + /** + *
+       * Represents a value for tf.TensorSpec.
+       * 
+ * + * .tensorflow.TensorSpecProto tensor_spec_value = 33; + */ + public Builder setTensorSpecValue(org.tensorflow.proto.Struct.TensorSpecProto value) { + if (tensorSpecValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + tensorSpecValueBuilder_.setMessage(value); + } + kindCase_ = 33; + return this; + } + /** + *
+       * Represents a value for tf.TensorSpec.
+       * 
+ * + * .tensorflow.TensorSpecProto tensor_spec_value = 33; + */ + public Builder setTensorSpecValue( + org.tensorflow.proto.Struct.TensorSpecProto.Builder builderForValue) { + if (tensorSpecValueBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + tensorSpecValueBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 33; + return this; + } + /** + *
+       * Represents a value for tf.TensorSpec.
+       * 
+ * + * .tensorflow.TensorSpecProto tensor_spec_value = 33; + */ + public Builder mergeTensorSpecValue(org.tensorflow.proto.Struct.TensorSpecProto value) { + if (tensorSpecValueBuilder_ == null) { + if (kindCase_ == 33 && + kind_ != org.tensorflow.proto.Struct.TensorSpecProto.getDefaultInstance()) { + kind_ = org.tensorflow.proto.Struct.TensorSpecProto.newBuilder((org.tensorflow.proto.Struct.TensorSpecProto) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 33) { + tensorSpecValueBuilder_.mergeFrom(value); + } else { + tensorSpecValueBuilder_.setMessage(value); + } + } + kindCase_ = 33; + return this; + } + /** + *
+       * Represents a value for tf.TensorSpec.
+       * 
+ * + * .tensorflow.TensorSpecProto tensor_spec_value = 33; + */ + public Builder clearTensorSpecValue() { + if (tensorSpecValueBuilder_ == null) { + if (kindCase_ == 33) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 33) { + kindCase_ = 0; + kind_ = null; + } + tensorSpecValueBuilder_.clear(); + } + return this; + } + /** + *
+       * Represents a value for tf.TensorSpec.
+       * 
+ * + * .tensorflow.TensorSpecProto tensor_spec_value = 33; + */ + public org.tensorflow.proto.Struct.TensorSpecProto.Builder getTensorSpecValueBuilder() { + return getTensorSpecValueFieldBuilder().getBuilder(); + } + /** + *
+       * Represents a value for tf.TensorSpec.
+       * 
+ * + * .tensorflow.TensorSpecProto tensor_spec_value = 33; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.TensorSpecProtoOrBuilder getTensorSpecValueOrBuilder() { + if ((kindCase_ == 33) && (tensorSpecValueBuilder_ != null)) { + return tensorSpecValueBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 33) { + return (org.tensorflow.proto.Struct.TensorSpecProto) kind_; + } + return org.tensorflow.proto.Struct.TensorSpecProto.getDefaultInstance(); + } + } + /** + *
+       * Represents a value for tf.TensorSpec.
+       * 
+ * + * .tensorflow.TensorSpecProto tensor_spec_value = 33; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.TensorSpecProto, org.tensorflow.proto.Struct.TensorSpecProto.Builder, org.tensorflow.proto.Struct.TensorSpecProtoOrBuilder> + getTensorSpecValueFieldBuilder() { + if (tensorSpecValueBuilder_ == null) { + if (!(kindCase_ == 33)) { + kind_ = org.tensorflow.proto.Struct.TensorSpecProto.getDefaultInstance(); + } + tensorSpecValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.TensorSpecProto, org.tensorflow.proto.Struct.TensorSpecProto.Builder, org.tensorflow.proto.Struct.TensorSpecProtoOrBuilder>( + (org.tensorflow.proto.Struct.TensorSpecProto) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 33; + onChanged();; + return tensorSpecValueBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.TypeSpecProto, org.tensorflow.proto.Struct.TypeSpecProto.Builder, org.tensorflow.proto.Struct.TypeSpecProtoOrBuilder> typeSpecValueBuilder_; + /** + *
+       * Represents a value for tf.TypeSpec.
+       * 
+ * + * .tensorflow.TypeSpecProto type_spec_value = 34; + * @return Whether the typeSpecValue field is set. + */ + @java.lang.Override + public boolean hasTypeSpecValue() { + return kindCase_ == 34; + } + /** + *
+       * Represents a value for tf.TypeSpec.
+       * 
+ * + * .tensorflow.TypeSpecProto type_spec_value = 34; + * @return The typeSpecValue. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.TypeSpecProto getTypeSpecValue() { + if (typeSpecValueBuilder_ == null) { + if (kindCase_ == 34) { + return (org.tensorflow.proto.Struct.TypeSpecProto) kind_; + } + return org.tensorflow.proto.Struct.TypeSpecProto.getDefaultInstance(); + } else { + if (kindCase_ == 34) { + return typeSpecValueBuilder_.getMessage(); + } + return org.tensorflow.proto.Struct.TypeSpecProto.getDefaultInstance(); + } + } + /** + *
+       * Represents a value for tf.TypeSpec.
+       * 
+ * + * .tensorflow.TypeSpecProto type_spec_value = 34; + */ + public Builder setTypeSpecValue(org.tensorflow.proto.Struct.TypeSpecProto value) { + if (typeSpecValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + typeSpecValueBuilder_.setMessage(value); + } + kindCase_ = 34; + return this; + } + /** + *
+       * Represents a value for tf.TypeSpec.
+       * 
+ * + * .tensorflow.TypeSpecProto type_spec_value = 34; + */ + public Builder setTypeSpecValue( + org.tensorflow.proto.Struct.TypeSpecProto.Builder builderForValue) { + if (typeSpecValueBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + typeSpecValueBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 34; + return this; + } + /** + *
+       * Represents a value for tf.TypeSpec.
+       * 
+ * + * .tensorflow.TypeSpecProto type_spec_value = 34; + */ + public Builder mergeTypeSpecValue(org.tensorflow.proto.Struct.TypeSpecProto value) { + if (typeSpecValueBuilder_ == null) { + if (kindCase_ == 34 && + kind_ != org.tensorflow.proto.Struct.TypeSpecProto.getDefaultInstance()) { + kind_ = org.tensorflow.proto.Struct.TypeSpecProto.newBuilder((org.tensorflow.proto.Struct.TypeSpecProto) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 34) { + typeSpecValueBuilder_.mergeFrom(value); + } else { + typeSpecValueBuilder_.setMessage(value); + } + } + kindCase_ = 34; + return this; + } + /** + *
+       * Represents a value for tf.TypeSpec.
+       * 
+ * + * .tensorflow.TypeSpecProto type_spec_value = 34; + */ + public Builder clearTypeSpecValue() { + if (typeSpecValueBuilder_ == null) { + if (kindCase_ == 34) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 34) { + kindCase_ = 0; + kind_ = null; + } + typeSpecValueBuilder_.clear(); + } + return this; + } + /** + *
+       * Represents a value for tf.TypeSpec.
+       * 
+ * + * .tensorflow.TypeSpecProto type_spec_value = 34; + */ + public org.tensorflow.proto.Struct.TypeSpecProto.Builder getTypeSpecValueBuilder() { + return getTypeSpecValueFieldBuilder().getBuilder(); + } + /** + *
+       * Represents a value for tf.TypeSpec.
+       * 
+ * + * .tensorflow.TypeSpecProto type_spec_value = 34; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.TypeSpecProtoOrBuilder getTypeSpecValueOrBuilder() { + if ((kindCase_ == 34) && (typeSpecValueBuilder_ != null)) { + return typeSpecValueBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 34) { + return (org.tensorflow.proto.Struct.TypeSpecProto) kind_; + } + return org.tensorflow.proto.Struct.TypeSpecProto.getDefaultInstance(); + } + } + /** + *
+       * Represents a value for tf.TypeSpec.
+       * 
+ * + * .tensorflow.TypeSpecProto type_spec_value = 34; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.TypeSpecProto, org.tensorflow.proto.Struct.TypeSpecProto.Builder, org.tensorflow.proto.Struct.TypeSpecProtoOrBuilder> + getTypeSpecValueFieldBuilder() { + if (typeSpecValueBuilder_ == null) { + if (!(kindCase_ == 34)) { + kind_ = org.tensorflow.proto.Struct.TypeSpecProto.getDefaultInstance(); + } + typeSpecValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.TypeSpecProto, org.tensorflow.proto.Struct.TypeSpecProto.Builder, org.tensorflow.proto.Struct.TypeSpecProtoOrBuilder>( + (org.tensorflow.proto.Struct.TypeSpecProto) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 34; + onChanged();; + return typeSpecValueBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.BoundedTensorSpecProto, org.tensorflow.proto.Struct.BoundedTensorSpecProto.Builder, org.tensorflow.proto.Struct.BoundedTensorSpecProtoOrBuilder> boundedTensorSpecValueBuilder_; + /** + *
+       * Represents a value for tf.BoundedTensorSpec.
+       * 
+ * + * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; + * @return Whether the boundedTensorSpecValue field is set. + */ + @java.lang.Override + public boolean hasBoundedTensorSpecValue() { + return kindCase_ == 35; + } + /** + *
+       * Represents a value for tf.BoundedTensorSpec.
+       * 
+ * + * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; + * @return The boundedTensorSpecValue. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.BoundedTensorSpecProto getBoundedTensorSpecValue() { + if (boundedTensorSpecValueBuilder_ == null) { + if (kindCase_ == 35) { + return (org.tensorflow.proto.Struct.BoundedTensorSpecProto) kind_; + } + return org.tensorflow.proto.Struct.BoundedTensorSpecProto.getDefaultInstance(); + } else { + if (kindCase_ == 35) { + return boundedTensorSpecValueBuilder_.getMessage(); + } + return org.tensorflow.proto.Struct.BoundedTensorSpecProto.getDefaultInstance(); + } + } + /** + *
+       * Represents a value for tf.BoundedTensorSpec.
+       * 
+ * + * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; + */ + public Builder setBoundedTensorSpecValue(org.tensorflow.proto.Struct.BoundedTensorSpecProto value) { + if (boundedTensorSpecValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + boundedTensorSpecValueBuilder_.setMessage(value); + } + kindCase_ = 35; + return this; + } + /** + *
+       * Represents a value for tf.BoundedTensorSpec.
+       * 
+ * + * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; + */ + public Builder setBoundedTensorSpecValue( + org.tensorflow.proto.Struct.BoundedTensorSpecProto.Builder builderForValue) { + if (boundedTensorSpecValueBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + boundedTensorSpecValueBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 35; + return this; + } + /** + *
+       * Represents a value for tf.BoundedTensorSpec.
+       * 
+ * + * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; + */ + public Builder mergeBoundedTensorSpecValue(org.tensorflow.proto.Struct.BoundedTensorSpecProto value) { + if (boundedTensorSpecValueBuilder_ == null) { + if (kindCase_ == 35 && + kind_ != org.tensorflow.proto.Struct.BoundedTensorSpecProto.getDefaultInstance()) { + kind_ = org.tensorflow.proto.Struct.BoundedTensorSpecProto.newBuilder((org.tensorflow.proto.Struct.BoundedTensorSpecProto) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 35) { + boundedTensorSpecValueBuilder_.mergeFrom(value); + } else { + boundedTensorSpecValueBuilder_.setMessage(value); + } + } + kindCase_ = 35; + return this; + } + /** + *
+       * Represents a value for tf.BoundedTensorSpec.
+       * 
+ * + * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; + */ + public Builder clearBoundedTensorSpecValue() { + if (boundedTensorSpecValueBuilder_ == null) { + if (kindCase_ == 35) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 35) { + kindCase_ = 0; + kind_ = null; + } + boundedTensorSpecValueBuilder_.clear(); + } + return this; + } + /** + *
+       * Represents a value for tf.BoundedTensorSpec.
+       * 
+ * + * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; + */ + public org.tensorflow.proto.Struct.BoundedTensorSpecProto.Builder getBoundedTensorSpecValueBuilder() { + return getBoundedTensorSpecValueFieldBuilder().getBuilder(); + } + /** + *
+       * Represents a value for tf.BoundedTensorSpec.
+       * 
+ * + * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.BoundedTensorSpecProtoOrBuilder getBoundedTensorSpecValueOrBuilder() { + if ((kindCase_ == 35) && (boundedTensorSpecValueBuilder_ != null)) { + return boundedTensorSpecValueBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 35) { + return (org.tensorflow.proto.Struct.BoundedTensorSpecProto) kind_; + } + return org.tensorflow.proto.Struct.BoundedTensorSpecProto.getDefaultInstance(); + } + } + /** + *
+       * Represents a value for tf.BoundedTensorSpec.
+       * 
+ * + * .tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.BoundedTensorSpecProto, org.tensorflow.proto.Struct.BoundedTensorSpecProto.Builder, org.tensorflow.proto.Struct.BoundedTensorSpecProtoOrBuilder> + getBoundedTensorSpecValueFieldBuilder() { + if (boundedTensorSpecValueBuilder_ == null) { + if (!(kindCase_ == 35)) { + kind_ = org.tensorflow.proto.Struct.BoundedTensorSpecProto.getDefaultInstance(); + } + boundedTensorSpecValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.BoundedTensorSpecProto, org.tensorflow.proto.Struct.BoundedTensorSpecProto.Builder, org.tensorflow.proto.Struct.BoundedTensorSpecProtoOrBuilder>( + (org.tensorflow.proto.Struct.BoundedTensorSpecProto) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 35; + onChanged();; + return boundedTensorSpecValueBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.ListValue, org.tensorflow.proto.Struct.ListValue.Builder, org.tensorflow.proto.Struct.ListValueOrBuilder> listValueBuilder_; + /** + *
+       * Represents a list of `Value`.
+       * 
+ * + * .tensorflow.ListValue list_value = 51; + * @return Whether the listValue field is set. + */ + @java.lang.Override + public boolean hasListValue() { + return kindCase_ == 51; + } + /** + *
+       * Represents a list of `Value`.
+       * 
+ * + * .tensorflow.ListValue list_value = 51; + * @return The listValue. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.ListValue getListValue() { + if (listValueBuilder_ == null) { + if (kindCase_ == 51) { + return (org.tensorflow.proto.Struct.ListValue) kind_; + } + return org.tensorflow.proto.Struct.ListValue.getDefaultInstance(); + } else { + if (kindCase_ == 51) { + return listValueBuilder_.getMessage(); + } + return org.tensorflow.proto.Struct.ListValue.getDefaultInstance(); + } + } + /** + *
+       * Represents a list of `Value`.
+       * 
+ * + * .tensorflow.ListValue list_value = 51; + */ + public Builder setListValue(org.tensorflow.proto.Struct.ListValue value) { + if (listValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + listValueBuilder_.setMessage(value); + } + kindCase_ = 51; + return this; + } + /** + *
+       * Represents a list of `Value`.
+       * 
+ * + * .tensorflow.ListValue list_value = 51; + */ + public Builder setListValue( + org.tensorflow.proto.Struct.ListValue.Builder builderForValue) { + if (listValueBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + listValueBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 51; + return this; + } + /** + *
+       * Represents a list of `Value`.
+       * 
+ * + * .tensorflow.ListValue list_value = 51; + */ + public Builder mergeListValue(org.tensorflow.proto.Struct.ListValue value) { + if (listValueBuilder_ == null) { + if (kindCase_ == 51 && + kind_ != org.tensorflow.proto.Struct.ListValue.getDefaultInstance()) { + kind_ = org.tensorflow.proto.Struct.ListValue.newBuilder((org.tensorflow.proto.Struct.ListValue) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 51) { + listValueBuilder_.mergeFrom(value); + } else { + listValueBuilder_.setMessage(value); + } + } + kindCase_ = 51; + return this; + } + /** + *
+       * Represents a list of `Value`.
+       * 
+ * + * .tensorflow.ListValue list_value = 51; + */ + public Builder clearListValue() { + if (listValueBuilder_ == null) { + if (kindCase_ == 51) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 51) { + kindCase_ = 0; + kind_ = null; + } + listValueBuilder_.clear(); + } + return this; + } + /** + *
+       * Represents a list of `Value`.
+       * 
+ * + * .tensorflow.ListValue list_value = 51; + */ + public org.tensorflow.proto.Struct.ListValue.Builder getListValueBuilder() { + return getListValueFieldBuilder().getBuilder(); + } + /** + *
+       * Represents a list of `Value`.
+       * 
+ * + * .tensorflow.ListValue list_value = 51; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.ListValueOrBuilder getListValueOrBuilder() { + if ((kindCase_ == 51) && (listValueBuilder_ != null)) { + return listValueBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 51) { + return (org.tensorflow.proto.Struct.ListValue) kind_; + } + return org.tensorflow.proto.Struct.ListValue.getDefaultInstance(); + } + } + /** + *
+       * Represents a list of `Value`.
+       * 
+ * + * .tensorflow.ListValue list_value = 51; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.ListValue, org.tensorflow.proto.Struct.ListValue.Builder, org.tensorflow.proto.Struct.ListValueOrBuilder> + getListValueFieldBuilder() { + if (listValueBuilder_ == null) { + if (!(kindCase_ == 51)) { + kind_ = org.tensorflow.proto.Struct.ListValue.getDefaultInstance(); + } + listValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.ListValue, org.tensorflow.proto.Struct.ListValue.Builder, org.tensorflow.proto.Struct.ListValueOrBuilder>( + (org.tensorflow.proto.Struct.ListValue) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 51; + onChanged();; + return listValueBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.TupleValue, org.tensorflow.proto.Struct.TupleValue.Builder, org.tensorflow.proto.Struct.TupleValueOrBuilder> tupleValueBuilder_; + /** + *
+       * Represents a tuple of `Value`.
+       * 
+ * + * .tensorflow.TupleValue tuple_value = 52; + * @return Whether the tupleValue field is set. + */ + @java.lang.Override + public boolean hasTupleValue() { + return kindCase_ == 52; + } + /** + *
+       * Represents a tuple of `Value`.
+       * 
+ * + * .tensorflow.TupleValue tuple_value = 52; + * @return The tupleValue. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.TupleValue getTupleValue() { + if (tupleValueBuilder_ == null) { + if (kindCase_ == 52) { + return (org.tensorflow.proto.Struct.TupleValue) kind_; + } + return org.tensorflow.proto.Struct.TupleValue.getDefaultInstance(); + } else { + if (kindCase_ == 52) { + return tupleValueBuilder_.getMessage(); + } + return org.tensorflow.proto.Struct.TupleValue.getDefaultInstance(); + } + } + /** + *
+       * Represents a tuple of `Value`.
+       * 
+ * + * .tensorflow.TupleValue tuple_value = 52; + */ + public Builder setTupleValue(org.tensorflow.proto.Struct.TupleValue value) { + if (tupleValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + tupleValueBuilder_.setMessage(value); + } + kindCase_ = 52; + return this; + } + /** + *
+       * Represents a tuple of `Value`.
+       * 
+ * + * .tensorflow.TupleValue tuple_value = 52; + */ + public Builder setTupleValue( + org.tensorflow.proto.Struct.TupleValue.Builder builderForValue) { + if (tupleValueBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + tupleValueBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 52; + return this; + } + /** + *
+       * Represents a tuple of `Value`.
+       * 
+ * + * .tensorflow.TupleValue tuple_value = 52; + */ + public Builder mergeTupleValue(org.tensorflow.proto.Struct.TupleValue value) { + if (tupleValueBuilder_ == null) { + if (kindCase_ == 52 && + kind_ != org.tensorflow.proto.Struct.TupleValue.getDefaultInstance()) { + kind_ = org.tensorflow.proto.Struct.TupleValue.newBuilder((org.tensorflow.proto.Struct.TupleValue) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 52) { + tupleValueBuilder_.mergeFrom(value); + } else { + tupleValueBuilder_.setMessage(value); + } + } + kindCase_ = 52; + return this; + } + /** + *
+       * Represents a tuple of `Value`.
+       * 
+ * + * .tensorflow.TupleValue tuple_value = 52; + */ + public Builder clearTupleValue() { + if (tupleValueBuilder_ == null) { + if (kindCase_ == 52) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 52) { + kindCase_ = 0; + kind_ = null; + } + tupleValueBuilder_.clear(); + } + return this; + } + /** + *
+       * Represents a tuple of `Value`.
+       * 
+ * + * .tensorflow.TupleValue tuple_value = 52; + */ + public org.tensorflow.proto.Struct.TupleValue.Builder getTupleValueBuilder() { + return getTupleValueFieldBuilder().getBuilder(); + } + /** + *
+       * Represents a tuple of `Value`.
+       * 
+ * + * .tensorflow.TupleValue tuple_value = 52; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.TupleValueOrBuilder getTupleValueOrBuilder() { + if ((kindCase_ == 52) && (tupleValueBuilder_ != null)) { + return tupleValueBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 52) { + return (org.tensorflow.proto.Struct.TupleValue) kind_; + } + return org.tensorflow.proto.Struct.TupleValue.getDefaultInstance(); + } + } + /** + *
+       * Represents a tuple of `Value`.
+       * 
+ * + * .tensorflow.TupleValue tuple_value = 52; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.TupleValue, org.tensorflow.proto.Struct.TupleValue.Builder, org.tensorflow.proto.Struct.TupleValueOrBuilder> + getTupleValueFieldBuilder() { + if (tupleValueBuilder_ == null) { + if (!(kindCase_ == 52)) { + kind_ = org.tensorflow.proto.Struct.TupleValue.getDefaultInstance(); + } + tupleValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.TupleValue, org.tensorflow.proto.Struct.TupleValue.Builder, org.tensorflow.proto.Struct.TupleValueOrBuilder>( + (org.tensorflow.proto.Struct.TupleValue) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 52; + onChanged();; + return tupleValueBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.DictValue, org.tensorflow.proto.Struct.DictValue.Builder, org.tensorflow.proto.Struct.DictValueOrBuilder> dictValueBuilder_; + /** + *
+       * Represents a dict `Value`.
+       * 
+ * + * .tensorflow.DictValue dict_value = 53; + * @return Whether the dictValue field is set. + */ + @java.lang.Override + public boolean hasDictValue() { + return kindCase_ == 53; + } + /** + *
+       * Represents a dict `Value`.
+       * 
+ * + * .tensorflow.DictValue dict_value = 53; + * @return The dictValue. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.DictValue getDictValue() { + if (dictValueBuilder_ == null) { + if (kindCase_ == 53) { + return (org.tensorflow.proto.Struct.DictValue) kind_; + } + return org.tensorflow.proto.Struct.DictValue.getDefaultInstance(); + } else { + if (kindCase_ == 53) { + return dictValueBuilder_.getMessage(); + } + return org.tensorflow.proto.Struct.DictValue.getDefaultInstance(); + } + } + /** + *
+       * Represents a dict `Value`.
+       * 
+ * + * .tensorflow.DictValue dict_value = 53; + */ + public Builder setDictValue(org.tensorflow.proto.Struct.DictValue value) { + if (dictValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + dictValueBuilder_.setMessage(value); + } + kindCase_ = 53; + return this; + } + /** + *
+       * Represents a dict `Value`.
+       * 
+ * + * .tensorflow.DictValue dict_value = 53; + */ + public Builder setDictValue( + org.tensorflow.proto.Struct.DictValue.Builder builderForValue) { + if (dictValueBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + dictValueBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 53; + return this; + } + /** + *
+       * Represents a dict `Value`.
+       * 
+ * + * .tensorflow.DictValue dict_value = 53; + */ + public Builder mergeDictValue(org.tensorflow.proto.Struct.DictValue value) { + if (dictValueBuilder_ == null) { + if (kindCase_ == 53 && + kind_ != org.tensorflow.proto.Struct.DictValue.getDefaultInstance()) { + kind_ = org.tensorflow.proto.Struct.DictValue.newBuilder((org.tensorflow.proto.Struct.DictValue) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 53) { + dictValueBuilder_.mergeFrom(value); + } else { + dictValueBuilder_.setMessage(value); + } + } + kindCase_ = 53; + return this; + } + /** + *
+       * Represents a dict `Value`.
+       * 
+ * + * .tensorflow.DictValue dict_value = 53; + */ + public Builder clearDictValue() { + if (dictValueBuilder_ == null) { + if (kindCase_ == 53) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 53) { + kindCase_ = 0; + kind_ = null; + } + dictValueBuilder_.clear(); + } + return this; + } + /** + *
+       * Represents a dict `Value`.
+       * 
+ * + * .tensorflow.DictValue dict_value = 53; + */ + public org.tensorflow.proto.Struct.DictValue.Builder getDictValueBuilder() { + return getDictValueFieldBuilder().getBuilder(); + } + /** + *
+       * Represents a dict `Value`.
+       * 
+ * + * .tensorflow.DictValue dict_value = 53; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.DictValueOrBuilder getDictValueOrBuilder() { + if ((kindCase_ == 53) && (dictValueBuilder_ != null)) { + return dictValueBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 53) { + return (org.tensorflow.proto.Struct.DictValue) kind_; + } + return org.tensorflow.proto.Struct.DictValue.getDefaultInstance(); + } + } + /** + *
+       * Represents a dict `Value`.
+       * 
+ * + * .tensorflow.DictValue dict_value = 53; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.DictValue, org.tensorflow.proto.Struct.DictValue.Builder, org.tensorflow.proto.Struct.DictValueOrBuilder> + getDictValueFieldBuilder() { + if (dictValueBuilder_ == null) { + if (!(kindCase_ == 53)) { + kind_ = org.tensorflow.proto.Struct.DictValue.getDefaultInstance(); + } + dictValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.DictValue, org.tensorflow.proto.Struct.DictValue.Builder, org.tensorflow.proto.Struct.DictValueOrBuilder>( + (org.tensorflow.proto.Struct.DictValue) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 53; + onChanged();; + return dictValueBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.NamedTupleValue, org.tensorflow.proto.Struct.NamedTupleValue.Builder, org.tensorflow.proto.Struct.NamedTupleValueOrBuilder> namedTupleValueBuilder_; + /** + *
+       * Represents Python's namedtuple.
+       * 
+ * + * .tensorflow.NamedTupleValue named_tuple_value = 54; + * @return Whether the namedTupleValue field is set. + */ + @java.lang.Override + public boolean hasNamedTupleValue() { + return kindCase_ == 54; + } + /** + *
+       * Represents Python's namedtuple.
+       * 
+ * + * .tensorflow.NamedTupleValue named_tuple_value = 54; + * @return The namedTupleValue. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.NamedTupleValue getNamedTupleValue() { + if (namedTupleValueBuilder_ == null) { + if (kindCase_ == 54) { + return (org.tensorflow.proto.Struct.NamedTupleValue) kind_; + } + return org.tensorflow.proto.Struct.NamedTupleValue.getDefaultInstance(); + } else { + if (kindCase_ == 54) { + return namedTupleValueBuilder_.getMessage(); + } + return org.tensorflow.proto.Struct.NamedTupleValue.getDefaultInstance(); + } + } + /** + *
+       * Represents Python's namedtuple.
+       * 
+ * + * .tensorflow.NamedTupleValue named_tuple_value = 54; + */ + public Builder setNamedTupleValue(org.tensorflow.proto.Struct.NamedTupleValue value) { + if (namedTupleValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + namedTupleValueBuilder_.setMessage(value); + } + kindCase_ = 54; + return this; + } + /** + *
+       * Represents Python's namedtuple.
+       * 
+ * + * .tensorflow.NamedTupleValue named_tuple_value = 54; + */ + public Builder setNamedTupleValue( + org.tensorflow.proto.Struct.NamedTupleValue.Builder builderForValue) { + if (namedTupleValueBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + namedTupleValueBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 54; + return this; + } + /** + *
+       * Represents Python's namedtuple.
+       * 
+ * + * .tensorflow.NamedTupleValue named_tuple_value = 54; + */ + public Builder mergeNamedTupleValue(org.tensorflow.proto.Struct.NamedTupleValue value) { + if (namedTupleValueBuilder_ == null) { + if (kindCase_ == 54 && + kind_ != org.tensorflow.proto.Struct.NamedTupleValue.getDefaultInstance()) { + kind_ = org.tensorflow.proto.Struct.NamedTupleValue.newBuilder((org.tensorflow.proto.Struct.NamedTupleValue) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 54) { + namedTupleValueBuilder_.mergeFrom(value); + } else { + namedTupleValueBuilder_.setMessage(value); + } + } + kindCase_ = 54; + return this; + } + /** + *
+       * Represents Python's namedtuple.
+       * 
+ * + * .tensorflow.NamedTupleValue named_tuple_value = 54; + */ + public Builder clearNamedTupleValue() { + if (namedTupleValueBuilder_ == null) { + if (kindCase_ == 54) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 54) { + kindCase_ = 0; + kind_ = null; + } + namedTupleValueBuilder_.clear(); + } + return this; + } + /** + *
+       * Represents Python's namedtuple.
+       * 
+ * + * .tensorflow.NamedTupleValue named_tuple_value = 54; + */ + public org.tensorflow.proto.Struct.NamedTupleValue.Builder getNamedTupleValueBuilder() { + return getNamedTupleValueFieldBuilder().getBuilder(); + } + /** + *
+       * Represents Python's namedtuple.
+       * 
+ * + * .tensorflow.NamedTupleValue named_tuple_value = 54; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.NamedTupleValueOrBuilder getNamedTupleValueOrBuilder() { + if ((kindCase_ == 54) && (namedTupleValueBuilder_ != null)) { + return namedTupleValueBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 54) { + return (org.tensorflow.proto.Struct.NamedTupleValue) kind_; + } + return org.tensorflow.proto.Struct.NamedTupleValue.getDefaultInstance(); + } + } + /** + *
+       * Represents Python's namedtuple.
+       * 
+ * + * .tensorflow.NamedTupleValue named_tuple_value = 54; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.NamedTupleValue, org.tensorflow.proto.Struct.NamedTupleValue.Builder, org.tensorflow.proto.Struct.NamedTupleValueOrBuilder> + getNamedTupleValueFieldBuilder() { + if (namedTupleValueBuilder_ == null) { + if (!(kindCase_ == 54)) { + kind_ = org.tensorflow.proto.Struct.NamedTupleValue.getDefaultInstance(); + } + namedTupleValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.NamedTupleValue, org.tensorflow.proto.Struct.NamedTupleValue.Builder, org.tensorflow.proto.Struct.NamedTupleValueOrBuilder>( + (org.tensorflow.proto.Struct.NamedTupleValue) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 54; + onChanged();; + return namedTupleValueBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> tensorValueBuilder_; + /** + *
+       * Represents a value for tf.Tensor.
+       * 
+ * + * .tensorflow.TensorProto tensor_value = 55; + * @return Whether the tensorValue field is set. + */ + @java.lang.Override + public boolean hasTensorValue() { + return kindCase_ == 55; + } + /** + *
+       * Represents a value for tf.Tensor.
+       * 
+ * + * .tensorflow.TensorProto tensor_value = 55; + * @return The tensorValue. + */ + @java.lang.Override + public org.tensorflow.proto.TensorProto getTensorValue() { + if (tensorValueBuilder_ == null) { + if (kindCase_ == 55) { + return (org.tensorflow.proto.TensorProto) kind_; + } + return org.tensorflow.proto.TensorProto.getDefaultInstance(); + } else { + if (kindCase_ == 55) { + return tensorValueBuilder_.getMessage(); + } + return org.tensorflow.proto.TensorProto.getDefaultInstance(); + } + } + /** + *
+       * Represents a value for tf.Tensor.
+       * 
+ * + * .tensorflow.TensorProto tensor_value = 55; + */ + public Builder setTensorValue(org.tensorflow.proto.TensorProto value) { + if (tensorValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + tensorValueBuilder_.setMessage(value); + } + kindCase_ = 55; + return this; + } + /** + *
+       * Represents a value for tf.Tensor.
+       * 
+ * + * .tensorflow.TensorProto tensor_value = 55; + */ + public Builder setTensorValue( + org.tensorflow.proto.TensorProto.Builder builderForValue) { + if (tensorValueBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + tensorValueBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 55; + return this; + } + /** + *
+       * Represents a value for tf.Tensor.
+       * 
+ * + * .tensorflow.TensorProto tensor_value = 55; + */ + public Builder mergeTensorValue(org.tensorflow.proto.TensorProto value) { + if (tensorValueBuilder_ == null) { + if (kindCase_ == 55 && + kind_ != org.tensorflow.proto.TensorProto.getDefaultInstance()) { + kind_ = org.tensorflow.proto.TensorProto.newBuilder((org.tensorflow.proto.TensorProto) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 55) { + tensorValueBuilder_.mergeFrom(value); + } else { + tensorValueBuilder_.setMessage(value); + } + } + kindCase_ = 55; + return this; + } + /** + *
+       * Represents a value for tf.Tensor.
+       * 
+ * + * .tensorflow.TensorProto tensor_value = 55; + */ + public Builder clearTensorValue() { + if (tensorValueBuilder_ == null) { + if (kindCase_ == 55) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 55) { + kindCase_ = 0; + kind_ = null; + } + tensorValueBuilder_.clear(); + } + return this; + } + /** + *
+       * Represents a value for tf.Tensor.
+       * 
+ * + * .tensorflow.TensorProto tensor_value = 55; + */ + public org.tensorflow.proto.TensorProto.Builder getTensorValueBuilder() { + return getTensorValueFieldBuilder().getBuilder(); + } + /** + *
+       * Represents a value for tf.Tensor.
+       * 
+ * + * .tensorflow.TensorProto tensor_value = 55; + */ + @java.lang.Override + public org.tensorflow.proto.TensorProtoOrBuilder getTensorValueOrBuilder() { + if ((kindCase_ == 55) && (tensorValueBuilder_ != null)) { + return tensorValueBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 55) { + return (org.tensorflow.proto.TensorProto) kind_; + } + return org.tensorflow.proto.TensorProto.getDefaultInstance(); + } + } + /** + *
+       * Represents a value for tf.Tensor.
+       * 
+ * + * .tensorflow.TensorProto tensor_value = 55; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> + getTensorValueFieldBuilder() { + if (tensorValueBuilder_ == null) { + if (!(kindCase_ == 55)) { + kind_ = org.tensorflow.proto.TensorProto.getDefaultInstance(); + } + tensorValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder>( + (org.tensorflow.proto.TensorProto) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 55; + onChanged();; + return tensorValueBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> numpyValueBuilder_; + /** + *
+       * Represents a value for np.ndarray.
+       * 
+ * + * .tensorflow.TensorProto numpy_value = 56; + * @return Whether the numpyValue field is set. + */ + @java.lang.Override + public boolean hasNumpyValue() { + return kindCase_ == 56; + } + /** + *
+       * Represents a value for np.ndarray.
+       * 
+ * + * .tensorflow.TensorProto numpy_value = 56; + * @return The numpyValue. + */ + @java.lang.Override + public org.tensorflow.proto.TensorProto getNumpyValue() { + if (numpyValueBuilder_ == null) { + if (kindCase_ == 56) { + return (org.tensorflow.proto.TensorProto) kind_; + } + return org.tensorflow.proto.TensorProto.getDefaultInstance(); + } else { + if (kindCase_ == 56) { + return numpyValueBuilder_.getMessage(); + } + return org.tensorflow.proto.TensorProto.getDefaultInstance(); + } + } + /** + *
+       * Represents a value for np.ndarray.
+       * 
+ * + * .tensorflow.TensorProto numpy_value = 56; + */ + public Builder setNumpyValue(org.tensorflow.proto.TensorProto value) { + if (numpyValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + numpyValueBuilder_.setMessage(value); + } + kindCase_ = 56; + return this; + } + /** + *
+       * Represents a value for np.ndarray.
+       * 
+ * + * .tensorflow.TensorProto numpy_value = 56; + */ + public Builder setNumpyValue( + org.tensorflow.proto.TensorProto.Builder builderForValue) { + if (numpyValueBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + numpyValueBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 56; + return this; + } + /** + *
+       * Represents a value for np.ndarray.
+       * 
+ * + * .tensorflow.TensorProto numpy_value = 56; + */ + public Builder mergeNumpyValue(org.tensorflow.proto.TensorProto value) { + if (numpyValueBuilder_ == null) { + if (kindCase_ == 56 && + kind_ != org.tensorflow.proto.TensorProto.getDefaultInstance()) { + kind_ = org.tensorflow.proto.TensorProto.newBuilder((org.tensorflow.proto.TensorProto) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 56) { + numpyValueBuilder_.mergeFrom(value); + } else { + numpyValueBuilder_.setMessage(value); + } + } + kindCase_ = 56; + return this; + } + /** + *
+       * Represents a value for np.ndarray.
+       * 
+ * + * .tensorflow.TensorProto numpy_value = 56; + */ + public Builder clearNumpyValue() { + if (numpyValueBuilder_ == null) { + if (kindCase_ == 56) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 56) { + kindCase_ = 0; + kind_ = null; + } + numpyValueBuilder_.clear(); + } + return this; + } + /** + *
+       * Represents a value for np.ndarray.
+       * 
+ * + * .tensorflow.TensorProto numpy_value = 56; + */ + public org.tensorflow.proto.TensorProto.Builder getNumpyValueBuilder() { + return getNumpyValueFieldBuilder().getBuilder(); + } + /** + *
+       * Represents a value for np.ndarray.
+       * 
+ * + * .tensorflow.TensorProto numpy_value = 56; + */ + @java.lang.Override + public org.tensorflow.proto.TensorProtoOrBuilder getNumpyValueOrBuilder() { + if ((kindCase_ == 56) && (numpyValueBuilder_ != null)) { + return numpyValueBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 56) { + return (org.tensorflow.proto.TensorProto) kind_; + } + return org.tensorflow.proto.TensorProto.getDefaultInstance(); + } + } + /** + *
+       * Represents a value for np.ndarray.
+       * 
+ * + * .tensorflow.TensorProto numpy_value = 56; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> + getNumpyValueFieldBuilder() { + if (numpyValueBuilder_ == null) { + if (!(kindCase_ == 56)) { + kind_ = org.tensorflow.proto.TensorProto.getDefaultInstance(); + } + numpyValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder>( + (org.tensorflow.proto.TensorProto) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 56; + onChanged();; + return numpyValueBuilder_; + } + @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:tensorflow.StructuredValue) + } + + // @@protoc_insertion_point(class_scope:tensorflow.StructuredValue) + private static final org.tensorflow.proto.Struct.StructuredValue DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.Struct.StructuredValue(); + } + + public static org.tensorflow.proto.Struct.StructuredValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StructuredValue 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 org.tensorflow.proto.Struct.StructuredValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NoneValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.NoneValue) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Represents None.
+   * 
+ * + * Protobuf type {@code tensorflow.NoneValue} + */ + public static final class NoneValue extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.NoneValue) + NoneValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use NoneValue.newBuilder() to construct. + private NoneValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NoneValue() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NoneValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_NoneValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_NoneValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Struct.NoneValue.class, org.tensorflow.proto.Struct.NoneValue.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 org.tensorflow.proto.Struct.NoneValue)) { + return super.equals(obj); + } + org.tensorflow.proto.Struct.NoneValue other = (org.tensorflow.proto.Struct.NoneValue) obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.Struct.NoneValue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.NoneValue parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.NoneValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.NoneValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.NoneValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.NoneValue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.NoneValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.NoneValue 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 org.tensorflow.proto.Struct.NoneValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.NoneValue 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 org.tensorflow.proto.Struct.NoneValue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.NoneValue 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(org.tensorflow.proto.Struct.NoneValue 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; + } + /** + *
+     * Represents None.
+     * 
+ * + * Protobuf type {@code tensorflow.NoneValue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.NoneValue) + org.tensorflow.proto.Struct.NoneValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_NoneValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_NoneValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Struct.NoneValue.class, org.tensorflow.proto.Struct.NoneValue.Builder.class); + } + + // Construct using org.tensorflow.proto.Struct.NoneValue.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_NoneValue_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.Struct.NoneValue getDefaultInstanceForType() { + return org.tensorflow.proto.Struct.NoneValue.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.Struct.NoneValue build() { + org.tensorflow.proto.Struct.NoneValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.Struct.NoneValue buildPartial() { + org.tensorflow.proto.Struct.NoneValue result = new org.tensorflow.proto.Struct.NoneValue(this); + 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 org.tensorflow.proto.Struct.NoneValue) { + return mergeFrom((org.tensorflow.proto.Struct.NoneValue)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.Struct.NoneValue other) { + if (other == org.tensorflow.proto.Struct.NoneValue.getDefaultInstance()) return this; + 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; + 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; + } + @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:tensorflow.NoneValue) + } + + // @@protoc_insertion_point(class_scope:tensorflow.NoneValue) + private static final org.tensorflow.proto.Struct.NoneValue DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.Struct.NoneValue(); + } + + public static org.tensorflow.proto.Struct.NoneValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NoneValue 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 org.tensorflow.proto.Struct.NoneValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.ListValue) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + java.util.List + getValuesList(); + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + org.tensorflow.proto.Struct.StructuredValue getValues(int index); + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + int getValuesCount(); + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + java.util.List + getValuesOrBuilderList(); + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + org.tensorflow.proto.Struct.StructuredValueOrBuilder getValuesOrBuilder( + int index); + } + /** + *
+   * Represents a Python list.
+   * 
+ * + * Protobuf type {@code tensorflow.ListValue} + */ + public static final class ListValue extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.ListValue) + ListValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListValue.newBuilder() to construct. + private ListValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListValue() { + values_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_ListValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_ListValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Struct.ListValue.class, org.tensorflow.proto.Struct.ListValue.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private java.util.List values_; + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + @java.lang.Override + public java.util.List getValuesList() { + return values_; + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + @java.lang.Override + public java.util.List + getValuesOrBuilderList() { + return values_; + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + @java.lang.Override + public int getValuesCount() { + return values_.size(); + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.StructuredValue getValues(int index) { + return values_.get(index); + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.StructuredValueOrBuilder getValuesOrBuilder( + int index) { + return values_.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 < values_.size(); i++) { + output.writeMessage(1, values_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < values_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, values_.get(i)); + } + 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 org.tensorflow.proto.Struct.ListValue)) { + return super.equals(obj); + } + org.tensorflow.proto.Struct.ListValue other = (org.tensorflow.proto.Struct.ListValue) obj; + + if (!getValuesList() + .equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.Struct.ListValue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.ListValue parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.ListValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.ListValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.ListValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.ListValue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.ListValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.ListValue 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 org.tensorflow.proto.Struct.ListValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.ListValue 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 org.tensorflow.proto.Struct.ListValue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.ListValue 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(org.tensorflow.proto.Struct.ListValue 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; + } + /** + *
+     * Represents a Python list.
+     * 
+ * + * Protobuf type {@code tensorflow.ListValue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.ListValue) + org.tensorflow.proto.Struct.ListValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_ListValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_ListValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Struct.ListValue.class, org.tensorflow.proto.Struct.ListValue.Builder.class); + } + + // Construct using org.tensorflow.proto.Struct.ListValue.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + } else { + values_ = null; + valuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_ListValue_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.Struct.ListValue getDefaultInstanceForType() { + return org.tensorflow.proto.Struct.ListValue.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.Struct.ListValue build() { + org.tensorflow.proto.Struct.ListValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.Struct.ListValue buildPartial() { + org.tensorflow.proto.Struct.ListValue result = new org.tensorflow.proto.Struct.ListValue(this); + int from_bitField0_ = bitField0_; + if (valuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + values_ = java.util.Collections.unmodifiableList(values_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + } else { + result.values_ = valuesBuilder_.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 org.tensorflow.proto.Struct.ListValue) { + return mergeFrom((org.tensorflow.proto.Struct.ListValue)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.Struct.ListValue other) { + if (other == org.tensorflow.proto.Struct.ListValue.getDefaultInstance()) return this; + if (valuesBuilder_ == null) { + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + } else { + if (!other.values_.isEmpty()) { + if (valuesBuilder_.isEmpty()) { + valuesBuilder_.dispose(); + valuesBuilder_ = null; + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValuesFieldBuilder() : null; + } else { + valuesBuilder_.addAllMessages(other.values_); + } + } + } + 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: { + org.tensorflow.proto.Struct.StructuredValue m = + input.readMessage( + org.tensorflow.proto.Struct.StructuredValue.parser(), + extensionRegistry); + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(m); + } else { + valuesBuilder_.addMessage(m); + } + 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.util.List values_ = + java.util.Collections.emptyList(); + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new java.util.ArrayList(values_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder> valuesBuilder_; + + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public java.util.List getValuesList() { + if (valuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(values_); + } else { + return valuesBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public int getValuesCount() { + if (valuesBuilder_ == null) { + return values_.size(); + } else { + return valuesBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public org.tensorflow.proto.Struct.StructuredValue getValues(int index) { + if (valuesBuilder_ == null) { + return values_.get(index); + } else { + return valuesBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public Builder setValues( + int index, org.tensorflow.proto.Struct.StructuredValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + } else { + valuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public Builder setValues( + int index, org.tensorflow.proto.Struct.StructuredValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.set(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public Builder addValues(org.tensorflow.proto.Struct.StructuredValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + } else { + valuesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public Builder addValues( + int index, org.tensorflow.proto.Struct.StructuredValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(index, value); + onChanged(); + } else { + valuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public Builder addValues( + org.tensorflow.proto.Struct.StructuredValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public Builder addValues( + int index, org.tensorflow.proto.Struct.StructuredValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public Builder addAllValues( + java.lang.Iterable values) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + onChanged(); + } else { + valuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public Builder clearValues() { + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + valuesBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public Builder removeValues(int index) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.remove(index); + onChanged(); + } else { + valuesBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public org.tensorflow.proto.Struct.StructuredValue.Builder getValuesBuilder( + int index) { + return getValuesFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public org.tensorflow.proto.Struct.StructuredValueOrBuilder getValuesOrBuilder( + int index) { + if (valuesBuilder_ == null) { + return values_.get(index); } else { + return valuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public java.util.List + getValuesOrBuilderList() { + if (valuesBuilder_ != null) { + return valuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(values_); + } + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public org.tensorflow.proto.Struct.StructuredValue.Builder addValuesBuilder() { + return getValuesFieldBuilder().addBuilder( + org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance()); + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public org.tensorflow.proto.Struct.StructuredValue.Builder addValuesBuilder( + int index) { + return getValuesFieldBuilder().addBuilder( + index, org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance()); + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public java.util.List + getValuesBuilderList() { + return getValuesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder> + getValuesFieldBuilder() { + if (valuesBuilder_ == null) { + valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder>( + values_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + values_ = null; + } + return valuesBuilder_; + } + @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:tensorflow.ListValue) + } + + // @@protoc_insertion_point(class_scope:tensorflow.ListValue) + private static final org.tensorflow.proto.Struct.ListValue DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.Struct.ListValue(); + } + + public static org.tensorflow.proto.Struct.ListValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListValue 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 org.tensorflow.proto.Struct.ListValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TupleValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.TupleValue) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + java.util.List + getValuesList(); + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + org.tensorflow.proto.Struct.StructuredValue getValues(int index); + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + int getValuesCount(); + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + java.util.List + getValuesOrBuilderList(); + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + org.tensorflow.proto.Struct.StructuredValueOrBuilder getValuesOrBuilder( + int index); + } + /** + *
+   * Represents a Python tuple.
+   * 
+ * + * Protobuf type {@code tensorflow.TupleValue} + */ + public static final class TupleValue extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.TupleValue) + TupleValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use TupleValue.newBuilder() to construct. + private TupleValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TupleValue() { + values_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TupleValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_TupleValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_TupleValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Struct.TupleValue.class, org.tensorflow.proto.Struct.TupleValue.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private java.util.List values_; + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + @java.lang.Override + public java.util.List getValuesList() { + return values_; + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + @java.lang.Override + public java.util.List + getValuesOrBuilderList() { + return values_; + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + @java.lang.Override + public int getValuesCount() { + return values_.size(); + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.StructuredValue getValues(int index) { + return values_.get(index); + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.StructuredValueOrBuilder getValuesOrBuilder( + int index) { + return values_.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 < values_.size(); i++) { + output.writeMessage(1, values_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < values_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, values_.get(i)); + } + 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 org.tensorflow.proto.Struct.TupleValue)) { + return super.equals(obj); + } + org.tensorflow.proto.Struct.TupleValue other = (org.tensorflow.proto.Struct.TupleValue) obj; + + if (!getValuesList() + .equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.Struct.TupleValue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.TupleValue parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.TupleValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.TupleValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.TupleValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.TupleValue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.TupleValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.TupleValue 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 org.tensorflow.proto.Struct.TupleValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.TupleValue 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 org.tensorflow.proto.Struct.TupleValue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.TupleValue 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(org.tensorflow.proto.Struct.TupleValue 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; + } + /** + *
+     * Represents a Python tuple.
+     * 
+ * + * Protobuf type {@code tensorflow.TupleValue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.TupleValue) + org.tensorflow.proto.Struct.TupleValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_TupleValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_TupleValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Struct.TupleValue.class, org.tensorflow.proto.Struct.TupleValue.Builder.class); + } + + // Construct using org.tensorflow.proto.Struct.TupleValue.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + } else { + values_ = null; + valuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_TupleValue_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.Struct.TupleValue getDefaultInstanceForType() { + return org.tensorflow.proto.Struct.TupleValue.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.Struct.TupleValue build() { + org.tensorflow.proto.Struct.TupleValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.Struct.TupleValue buildPartial() { + org.tensorflow.proto.Struct.TupleValue result = new org.tensorflow.proto.Struct.TupleValue(this); + int from_bitField0_ = bitField0_; + if (valuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + values_ = java.util.Collections.unmodifiableList(values_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + } else { + result.values_ = valuesBuilder_.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 org.tensorflow.proto.Struct.TupleValue) { + return mergeFrom((org.tensorflow.proto.Struct.TupleValue)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.Struct.TupleValue other) { + if (other == org.tensorflow.proto.Struct.TupleValue.getDefaultInstance()) return this; + if (valuesBuilder_ == null) { + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + } else { + if (!other.values_.isEmpty()) { + if (valuesBuilder_.isEmpty()) { + valuesBuilder_.dispose(); + valuesBuilder_ = null; + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValuesFieldBuilder() : null; + } else { + valuesBuilder_.addAllMessages(other.values_); + } + } + } + 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: { + org.tensorflow.proto.Struct.StructuredValue m = + input.readMessage( + org.tensorflow.proto.Struct.StructuredValue.parser(), + extensionRegistry); + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(m); + } else { + valuesBuilder_.addMessage(m); + } + 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.util.List values_ = + java.util.Collections.emptyList(); + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new java.util.ArrayList(values_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder> valuesBuilder_; + + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public java.util.List getValuesList() { + if (valuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(values_); + } else { + return valuesBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public int getValuesCount() { + if (valuesBuilder_ == null) { + return values_.size(); + } else { + return valuesBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public org.tensorflow.proto.Struct.StructuredValue getValues(int index) { + if (valuesBuilder_ == null) { + return values_.get(index); + } else { + return valuesBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public Builder setValues( + int index, org.tensorflow.proto.Struct.StructuredValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + } else { + valuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public Builder setValues( + int index, org.tensorflow.proto.Struct.StructuredValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.set(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public Builder addValues(org.tensorflow.proto.Struct.StructuredValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + } else { + valuesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public Builder addValues( + int index, org.tensorflow.proto.Struct.StructuredValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(index, value); + onChanged(); + } else { + valuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public Builder addValues( + org.tensorflow.proto.Struct.StructuredValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public Builder addValues( + int index, org.tensorflow.proto.Struct.StructuredValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public Builder addAllValues( + java.lang.Iterable values) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + onChanged(); + } else { + valuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public Builder clearValues() { + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + valuesBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public Builder removeValues(int index) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.remove(index); + onChanged(); + } else { + valuesBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public org.tensorflow.proto.Struct.StructuredValue.Builder getValuesBuilder( + int index) { + return getValuesFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public org.tensorflow.proto.Struct.StructuredValueOrBuilder getValuesOrBuilder( + int index) { + if (valuesBuilder_ == null) { + return values_.get(index); } else { + return valuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public java.util.List + getValuesOrBuilderList() { + if (valuesBuilder_ != null) { + return valuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(values_); + } + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public org.tensorflow.proto.Struct.StructuredValue.Builder addValuesBuilder() { + return getValuesFieldBuilder().addBuilder( + org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance()); + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public org.tensorflow.proto.Struct.StructuredValue.Builder addValuesBuilder( + int index) { + return getValuesFieldBuilder().addBuilder( + index, org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance()); + } + /** + * repeated .tensorflow.StructuredValue values = 1; + */ + public java.util.List + getValuesBuilderList() { + return getValuesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder> + getValuesFieldBuilder() { + if (valuesBuilder_ == null) { + valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder>( + values_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + values_ = null; + } + return valuesBuilder_; + } + @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:tensorflow.TupleValue) + } + + // @@protoc_insertion_point(class_scope:tensorflow.TupleValue) + private static final org.tensorflow.proto.Struct.TupleValue DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.Struct.TupleValue(); + } + + public static org.tensorflow.proto.Struct.TupleValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TupleValue 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 org.tensorflow.proto.Struct.TupleValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DictValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.DictValue) + com.google.protobuf.MessageOrBuilder { + + /** + * map<string, .tensorflow.StructuredValue> fields = 1; + */ + int getFieldsCount(); + /** + * map<string, .tensorflow.StructuredValue> fields = 1; + */ + boolean containsFields( + java.lang.String key); + /** + * Use {@link #getFieldsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getFields(); + /** + * map<string, .tensorflow.StructuredValue> fields = 1; + */ + java.util.Map + getFieldsMap(); + /** + * map<string, .tensorflow.StructuredValue> fields = 1; + */ + + /* nullable */ +org.tensorflow.proto.Struct.StructuredValue getFieldsOrDefault( + java.lang.String key, + /* nullable */ +org.tensorflow.proto.Struct.StructuredValue defaultValue); + /** + * map<string, .tensorflow.StructuredValue> fields = 1; + */ + + org.tensorflow.proto.Struct.StructuredValue getFieldsOrThrow( + java.lang.String key); + } + /** + *
+   * Represents a Python dict keyed by `str`.
+   * The comment on Unicode from Value.string_value applies analogously.
+   * 
+ * + * Protobuf type {@code tensorflow.DictValue} + */ + public static final class DictValue extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.DictValue) + DictValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use DictValue.newBuilder() to construct. + private DictValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DictValue() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DictValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_DictValue_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetFields(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_DictValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Struct.DictValue.class, org.tensorflow.proto.Struct.DictValue.Builder.class); + } + + public static final int FIELDS_FIELD_NUMBER = 1; + private static final class FieldsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, org.tensorflow.proto.Struct.StructuredValue> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.tensorflow.proto.Struct.internal_static_tensorflow_DictValue_FieldsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, org.tensorflow.proto.Struct.StructuredValue> fields_; + private com.google.protobuf.MapField + internalGetFields() { + if (fields_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FieldsDefaultEntryHolder.defaultEntry); + } + return fields_; + } + + public int getFieldsCount() { + return internalGetFields().getMap().size(); + } + /** + * map<string, .tensorflow.StructuredValue> fields = 1; + */ + + @java.lang.Override + public boolean containsFields( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetFields().getMap().containsKey(key); + } + /** + * Use {@link #getFieldsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFields() { + return getFieldsMap(); + } + /** + * map<string, .tensorflow.StructuredValue> fields = 1; + */ + @java.lang.Override + + public java.util.Map getFieldsMap() { + return internalGetFields().getMap(); + } + /** + * map<string, .tensorflow.StructuredValue> fields = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.Struct.StructuredValue getFieldsOrDefault( + java.lang.String key, + org.tensorflow.proto.Struct.StructuredValue defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFields().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .tensorflow.StructuredValue> fields = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.Struct.StructuredValue getFieldsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFields().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, + internalGetFields(), + FieldsDefaultEntryHolder.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 + : internalGetFields().getMap().entrySet()) { + com.google.protobuf.MapEntry + fields__ = FieldsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, fields__); + } + 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 org.tensorflow.proto.Struct.DictValue)) { + return super.equals(obj); + } + org.tensorflow.proto.Struct.DictValue other = (org.tensorflow.proto.Struct.DictValue) obj; + + if (!internalGetFields().equals( + other.internalGetFields())) 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 (!internalGetFields().getMap().isEmpty()) { + hash = (37 * hash) + FIELDS_FIELD_NUMBER; + hash = (53 * hash) + internalGetFields().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.Struct.DictValue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.DictValue parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.DictValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.DictValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.DictValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.DictValue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.DictValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.DictValue 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 org.tensorflow.proto.Struct.DictValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.DictValue 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 org.tensorflow.proto.Struct.DictValue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.DictValue 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(org.tensorflow.proto.Struct.DictValue 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; + } + /** + *
+     * Represents a Python dict keyed by `str`.
+     * The comment on Unicode from Value.string_value applies analogously.
+     * 
+ * + * Protobuf type {@code tensorflow.DictValue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.DictValue) + org.tensorflow.proto.Struct.DictValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_DictValue_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetFields(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableFields(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_DictValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Struct.DictValue.class, org.tensorflow.proto.Struct.DictValue.Builder.class); + } + + // Construct using org.tensorflow.proto.Struct.DictValue.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableFields().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_DictValue_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.Struct.DictValue getDefaultInstanceForType() { + return org.tensorflow.proto.Struct.DictValue.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.Struct.DictValue build() { + org.tensorflow.proto.Struct.DictValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.Struct.DictValue buildPartial() { + org.tensorflow.proto.Struct.DictValue result = new org.tensorflow.proto.Struct.DictValue(this); + int from_bitField0_ = bitField0_; + result.fields_ = internalGetFields(); + result.fields_.makeImmutable(); + 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 org.tensorflow.proto.Struct.DictValue) { + return mergeFrom((org.tensorflow.proto.Struct.DictValue)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.Struct.DictValue other) { + if (other == org.tensorflow.proto.Struct.DictValue.getDefaultInstance()) return this; + internalGetMutableFields().mergeFrom( + other.internalGetFields()); + 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 + fields__ = input.readMessage( + FieldsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableFields().getMutableMap().put( + fields__.getKey(), fields__.getValue()); + 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.protobuf.MapField< + java.lang.String, org.tensorflow.proto.Struct.StructuredValue> fields_; + private com.google.protobuf.MapField + internalGetFields() { + if (fields_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FieldsDefaultEntryHolder.defaultEntry); + } + return fields_; + } + private com.google.protobuf.MapField + internalGetMutableFields() { + onChanged();; + if (fields_ == null) { + fields_ = com.google.protobuf.MapField.newMapField( + FieldsDefaultEntryHolder.defaultEntry); + } + if (!fields_.isMutable()) { + fields_ = fields_.copy(); + } + return fields_; + } + + public int getFieldsCount() { + return internalGetFields().getMap().size(); + } + /** + * map<string, .tensorflow.StructuredValue> fields = 1; + */ + + @java.lang.Override + public boolean containsFields( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetFields().getMap().containsKey(key); + } + /** + * Use {@link #getFieldsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFields() { + return getFieldsMap(); + } + /** + * map<string, .tensorflow.StructuredValue> fields = 1; + */ + @java.lang.Override + + public java.util.Map getFieldsMap() { + return internalGetFields().getMap(); + } + /** + * map<string, .tensorflow.StructuredValue> fields = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.Struct.StructuredValue getFieldsOrDefault( + java.lang.String key, + org.tensorflow.proto.Struct.StructuredValue defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFields().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .tensorflow.StructuredValue> fields = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.Struct.StructuredValue getFieldsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFields().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFields() { + internalGetMutableFields().getMutableMap() + .clear(); + return this; + } + /** + * map<string, .tensorflow.StructuredValue> fields = 1; + */ + + public Builder removeFields( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableFields().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableFields() { + return internalGetMutableFields().getMutableMap(); + } + /** + * map<string, .tensorflow.StructuredValue> fields = 1; + */ + public Builder putFields( + java.lang.String key, + org.tensorflow.proto.Struct.StructuredValue value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableFields().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, .tensorflow.StructuredValue> fields = 1; + */ + + public Builder putAllFields( + java.util.Map values) { + internalGetMutableFields().getMutableMap() + .putAll(values); + 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:tensorflow.DictValue) + } + + // @@protoc_insertion_point(class_scope:tensorflow.DictValue) + private static final org.tensorflow.proto.Struct.DictValue DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.Struct.DictValue(); + } + + public static org.tensorflow.proto.Struct.DictValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DictValue 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 org.tensorflow.proto.Struct.DictValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PairValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.PairValue) + com.google.protobuf.MessageOrBuilder { + + /** + * string key = 1; + * @return The key. + */ + java.lang.String getKey(); + /** + * string key = 1; + * @return The bytes for key. + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * .tensorflow.StructuredValue value = 2; + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + * .tensorflow.StructuredValue value = 2; + * @return The value. + */ + org.tensorflow.proto.Struct.StructuredValue getValue(); + /** + * .tensorflow.StructuredValue value = 2; + */ + org.tensorflow.proto.Struct.StructuredValueOrBuilder getValueOrBuilder(); + } + /** + *
+   * Represents a (key, value) pair.
+   * 
+ * + * Protobuf type {@code tensorflow.PairValue} + */ + public static final class PairValue extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.PairValue) + PairValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use PairValue.newBuilder() to construct. + private PairValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PairValue() { + key_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PairValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_PairValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_PairValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Struct.PairValue.class, org.tensorflow.proto.Struct.PairValue.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + * string key = 1; + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + 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(); + key_ = s; + return s; + } + } + /** + * string key = 1; + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private org.tensorflow.proto.Struct.StructuredValue value_; + /** + * .tensorflow.StructuredValue value = 2; + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return value_ != null; + } + /** + * .tensorflow.StructuredValue value = 2; + * @return The value. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.StructuredValue getValue() { + return value_ == null ? org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance() : value_; + } + /** + * .tensorflow.StructuredValue value = 2; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.StructuredValueOrBuilder getValueOrBuilder() { + return getValue(); + } + + 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(key_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (value_ != null) { + output.writeMessage(2, getValue()); + } + 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(key_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (value_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getValue()); + } + 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 org.tensorflow.proto.Struct.PairValue)) { + return super.equals(obj); + } + org.tensorflow.proto.Struct.PairValue other = (org.tensorflow.proto.Struct.PairValue) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue() + .equals(other.getValue())) 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) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.Struct.PairValue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.PairValue parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.PairValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.PairValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.PairValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.PairValue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.PairValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.PairValue 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 org.tensorflow.proto.Struct.PairValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.PairValue 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 org.tensorflow.proto.Struct.PairValue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.PairValue 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(org.tensorflow.proto.Struct.PairValue 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; + } + /** + *
+     * Represents a (key, value) pair.
+     * 
+ * + * Protobuf type {@code tensorflow.PairValue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.PairValue) + org.tensorflow.proto.Struct.PairValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_PairValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_PairValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Struct.PairValue.class, org.tensorflow.proto.Struct.PairValue.Builder.class); + } + + // Construct using org.tensorflow.proto.Struct.PairValue.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + if (valueBuilder_ == null) { + value_ = null; + } else { + value_ = null; + valueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_PairValue_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.Struct.PairValue getDefaultInstanceForType() { + return org.tensorflow.proto.Struct.PairValue.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.Struct.PairValue build() { + org.tensorflow.proto.Struct.PairValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.Struct.PairValue buildPartial() { + org.tensorflow.proto.Struct.PairValue result = new org.tensorflow.proto.Struct.PairValue(this); + result.key_ = key_; + if (valueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = valueBuilder_.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 org.tensorflow.proto.Struct.PairValue) { + return mergeFrom((org.tensorflow.proto.Struct.PairValue)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.Struct.PairValue other) { + if (other == org.tensorflow.proto.Struct.PairValue.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + 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: { + key_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getValueFieldBuilder().getBuilder(), + extensionRegistry); + + 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 java.lang.Object key_ = ""; + /** + * string key = 1; + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string key = 1; + * @return The bytes for key. + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string key = 1; + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + * string key = 1; + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * string key = 1; + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private org.tensorflow.proto.Struct.StructuredValue value_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder> valueBuilder_; + /** + * .tensorflow.StructuredValue value = 2; + * @return Whether the value field is set. + */ + public boolean hasValue() { + return valueBuilder_ != null || value_ != null; + } + /** + * .tensorflow.StructuredValue value = 2; + * @return The value. + */ + public org.tensorflow.proto.Struct.StructuredValue getValue() { + if (valueBuilder_ == null) { + return value_ == null ? org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance() : value_; + } else { + return valueBuilder_.getMessage(); + } + } + /** + * .tensorflow.StructuredValue value = 2; + */ + public Builder setValue(org.tensorflow.proto.Struct.StructuredValue value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + valueBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.StructuredValue value = 2; + */ + public Builder setValue( + org.tensorflow.proto.Struct.StructuredValue.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.StructuredValue value = 2; + */ + public Builder mergeValue(org.tensorflow.proto.Struct.StructuredValue value) { + if (valueBuilder_ == null) { + if (value_ != null) { + value_ = + org.tensorflow.proto.Struct.StructuredValue.newBuilder(value_).mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + valueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.StructuredValue value = 2; + */ + public Builder clearValue() { + if (valueBuilder_ == null) { + value_ = null; + onChanged(); + } else { + value_ = null; + valueBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.StructuredValue value = 2; + */ + public org.tensorflow.proto.Struct.StructuredValue.Builder getValueBuilder() { + + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + /** + * .tensorflow.StructuredValue value = 2; + */ + public org.tensorflow.proto.Struct.StructuredValueOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? + org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance() : value_; + } + } + /** + * .tensorflow.StructuredValue value = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder>( + getValue(), + getParentForChildren(), + isClean()); + value_ = null; + } + return valueBuilder_; + } + @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:tensorflow.PairValue) + } + + // @@protoc_insertion_point(class_scope:tensorflow.PairValue) + private static final org.tensorflow.proto.Struct.PairValue DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.Struct.PairValue(); + } + + public static org.tensorflow.proto.Struct.PairValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PairValue 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 org.tensorflow.proto.Struct.PairValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedTupleValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.NamedTupleValue) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * repeated .tensorflow.PairValue values = 2; + */ + java.util.List + getValuesList(); + /** + * repeated .tensorflow.PairValue values = 2; + */ + org.tensorflow.proto.Struct.PairValue getValues(int index); + /** + * repeated .tensorflow.PairValue values = 2; + */ + int getValuesCount(); + /** + * repeated .tensorflow.PairValue values = 2; + */ + java.util.List + getValuesOrBuilderList(); + /** + * repeated .tensorflow.PairValue values = 2; + */ + org.tensorflow.proto.Struct.PairValueOrBuilder getValuesOrBuilder( + int index); + } + /** + *
+   * Represents Python's namedtuple.
+   * 
+ * + * Protobuf type {@code tensorflow.NamedTupleValue} + */ + public static final class NamedTupleValue extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.NamedTupleValue) + NamedTupleValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedTupleValue.newBuilder() to construct. + private NamedTupleValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedTupleValue() { + name_ = ""; + values_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NamedTupleValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_NamedTupleValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_NamedTupleValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Struct.NamedTupleValue.class, org.tensorflow.proto.Struct.NamedTupleValue.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUES_FIELD_NUMBER = 2; + private java.util.List values_; + /** + * repeated .tensorflow.PairValue values = 2; + */ + @java.lang.Override + public java.util.List getValuesList() { + return values_; + } + /** + * repeated .tensorflow.PairValue values = 2; + */ + @java.lang.Override + public java.util.List + getValuesOrBuilderList() { + return values_; + } + /** + * repeated .tensorflow.PairValue values = 2; + */ + @java.lang.Override + public int getValuesCount() { + return values_.size(); + } + /** + * repeated .tensorflow.PairValue values = 2; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.PairValue getValues(int index) { + return values_.get(index); + } + /** + * repeated .tensorflow.PairValue values = 2; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.PairValueOrBuilder getValuesOrBuilder( + int index) { + return values_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < values_.size(); i++) { + output.writeMessage(2, values_.get(i)); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + for (int i = 0; i < values_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, values_.get(i)); + } + 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 org.tensorflow.proto.Struct.NamedTupleValue)) { + return super.equals(obj); + } + org.tensorflow.proto.Struct.NamedTupleValue other = (org.tensorflow.proto.Struct.NamedTupleValue) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getValuesList() + .equals(other.getValuesList())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.Struct.NamedTupleValue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.NamedTupleValue parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.NamedTupleValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.NamedTupleValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.NamedTupleValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.NamedTupleValue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.NamedTupleValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.NamedTupleValue 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 org.tensorflow.proto.Struct.NamedTupleValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.NamedTupleValue 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 org.tensorflow.proto.Struct.NamedTupleValue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.NamedTupleValue 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(org.tensorflow.proto.Struct.NamedTupleValue 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; + } + /** + *
+     * Represents Python's namedtuple.
+     * 
+ * + * Protobuf type {@code tensorflow.NamedTupleValue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.NamedTupleValue) + org.tensorflow.proto.Struct.NamedTupleValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_NamedTupleValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_NamedTupleValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Struct.NamedTupleValue.class, org.tensorflow.proto.Struct.NamedTupleValue.Builder.class); + } + + // Construct using org.tensorflow.proto.Struct.NamedTupleValue.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + } else { + values_ = null; + valuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_NamedTupleValue_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.Struct.NamedTupleValue getDefaultInstanceForType() { + return org.tensorflow.proto.Struct.NamedTupleValue.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.Struct.NamedTupleValue build() { + org.tensorflow.proto.Struct.NamedTupleValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.Struct.NamedTupleValue buildPartial() { + org.tensorflow.proto.Struct.NamedTupleValue result = new org.tensorflow.proto.Struct.NamedTupleValue(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (valuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + values_ = java.util.Collections.unmodifiableList(values_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + } else { + result.values_ = valuesBuilder_.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 org.tensorflow.proto.Struct.NamedTupleValue) { + return mergeFrom((org.tensorflow.proto.Struct.NamedTupleValue)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.Struct.NamedTupleValue other) { + if (other == org.tensorflow.proto.Struct.NamedTupleValue.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (valuesBuilder_ == null) { + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + } else { + if (!other.values_.isEmpty()) { + if (valuesBuilder_.isEmpty()) { + valuesBuilder_.dispose(); + valuesBuilder_ = null; + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValuesFieldBuilder() : null; + } else { + valuesBuilder_.addAllMessages(other.values_); + } + } + } + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + org.tensorflow.proto.Struct.PairValue m = + input.readMessage( + org.tensorflow.proto.Struct.PairValue.parser(), + extensionRegistry); + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(m); + } else { + valuesBuilder_.addMessage(m); + } + 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 java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.util.List values_ = + java.util.Collections.emptyList(); + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new java.util.ArrayList(values_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.Struct.PairValue, org.tensorflow.proto.Struct.PairValue.Builder, org.tensorflow.proto.Struct.PairValueOrBuilder> valuesBuilder_; + + /** + * repeated .tensorflow.PairValue values = 2; + */ + public java.util.List getValuesList() { + if (valuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(values_); + } else { + return valuesBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.PairValue values = 2; + */ + public int getValuesCount() { + if (valuesBuilder_ == null) { + return values_.size(); + } else { + return valuesBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.PairValue values = 2; + */ + public org.tensorflow.proto.Struct.PairValue getValues(int index) { + if (valuesBuilder_ == null) { + return values_.get(index); + } else { + return valuesBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.PairValue values = 2; + */ + public Builder setValues( + int index, org.tensorflow.proto.Struct.PairValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + } else { + valuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.PairValue values = 2; + */ + public Builder setValues( + int index, org.tensorflow.proto.Struct.PairValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.set(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.PairValue values = 2; + */ + public Builder addValues(org.tensorflow.proto.Struct.PairValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + } else { + valuesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.PairValue values = 2; + */ + public Builder addValues( + int index, org.tensorflow.proto.Struct.PairValue value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(index, value); + onChanged(); + } else { + valuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.PairValue values = 2; + */ + public Builder addValues( + org.tensorflow.proto.Struct.PairValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.PairValue values = 2; + */ + public Builder addValues( + int index, org.tensorflow.proto.Struct.PairValue.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.PairValue values = 2; + */ + public Builder addAllValues( + java.lang.Iterable values) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + onChanged(); + } else { + valuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.PairValue values = 2; + */ + public Builder clearValues() { + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + valuesBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.PairValue values = 2; + */ + public Builder removeValues(int index) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.remove(index); + onChanged(); + } else { + valuesBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.PairValue values = 2; + */ + public org.tensorflow.proto.Struct.PairValue.Builder getValuesBuilder( + int index) { + return getValuesFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.PairValue values = 2; + */ + public org.tensorflow.proto.Struct.PairValueOrBuilder getValuesOrBuilder( + int index) { + if (valuesBuilder_ == null) { + return values_.get(index); } else { + return valuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.PairValue values = 2; + */ + public java.util.List + getValuesOrBuilderList() { + if (valuesBuilder_ != null) { + return valuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(values_); + } + } + /** + * repeated .tensorflow.PairValue values = 2; + */ + public org.tensorflow.proto.Struct.PairValue.Builder addValuesBuilder() { + return getValuesFieldBuilder().addBuilder( + org.tensorflow.proto.Struct.PairValue.getDefaultInstance()); + } + /** + * repeated .tensorflow.PairValue values = 2; + */ + public org.tensorflow.proto.Struct.PairValue.Builder addValuesBuilder( + int index) { + return getValuesFieldBuilder().addBuilder( + index, org.tensorflow.proto.Struct.PairValue.getDefaultInstance()); + } + /** + * repeated .tensorflow.PairValue values = 2; + */ + public java.util.List + getValuesBuilderList() { + return getValuesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.Struct.PairValue, org.tensorflow.proto.Struct.PairValue.Builder, org.tensorflow.proto.Struct.PairValueOrBuilder> + getValuesFieldBuilder() { + if (valuesBuilder_ == null) { + valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.Struct.PairValue, org.tensorflow.proto.Struct.PairValue.Builder, org.tensorflow.proto.Struct.PairValueOrBuilder>( + values_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + values_ = null; + } + return valuesBuilder_; + } + @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:tensorflow.NamedTupleValue) + } + + // @@protoc_insertion_point(class_scope:tensorflow.NamedTupleValue) + private static final org.tensorflow.proto.Struct.NamedTupleValue DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.Struct.NamedTupleValue(); + } + + public static org.tensorflow.proto.Struct.NamedTupleValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedTupleValue 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 org.tensorflow.proto.Struct.NamedTupleValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TensorSpecProtoOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.TensorSpecProto) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + boolean hasShape(); + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + org.tensorflow.proto.TensorShapeProto getShape(); + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder(); + + /** + * .tensorflow.DataType dtype = 3; + * @return The enum numeric value on the wire for dtype. + */ + int getDtypeValue(); + /** + * .tensorflow.DataType dtype = 3; + * @return The dtype. + */ + org.tensorflow.proto.DataType getDtype(); + } + /** + *
+   * A protobuf to represent tf.TensorSpec.
+   * 
+ * + * Protobuf type {@code tensorflow.TensorSpecProto} + */ + public static final class TensorSpecProto extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.TensorSpecProto) + TensorSpecProtoOrBuilder { + private static final long serialVersionUID = 0L; + // Use TensorSpecProto.newBuilder() to construct. + private TensorSpecProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TensorSpecProto() { + name_ = ""; + dtype_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TensorSpecProto(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_TensorSpecProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_TensorSpecProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Struct.TensorSpecProto.class, org.tensorflow.proto.Struct.TensorSpecProto.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHAPE_FIELD_NUMBER = 2; + private org.tensorflow.proto.TensorShapeProto shape_; + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + @java.lang.Override + public boolean hasShape() { + return shape_ != null; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto getShape() { + return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { + return getShape(); + } + + public static final int DTYPE_FIELD_NUMBER = 3; + private int dtype_; + /** + * .tensorflow.DataType dtype = 3; + * @return The enum numeric value on the wire for dtype. + */ + @java.lang.Override public int getDtypeValue() { + return dtype_; + } + /** + * .tensorflow.DataType dtype = 3; + * @return The dtype. + */ + @java.lang.Override public org.tensorflow.proto.DataType getDtype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (shape_ != null) { + output.writeMessage(2, getShape()); + } + if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + output.writeEnum(3, dtype_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (shape_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getShape()); + } + if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, dtype_); + } + 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 org.tensorflow.proto.Struct.TensorSpecProto)) { + return super.equals(obj); + } + org.tensorflow.proto.Struct.TensorSpecProto other = (org.tensorflow.proto.Struct.TensorSpecProto) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasShape() != other.hasShape()) return false; + if (hasShape()) { + if (!getShape() + .equals(other.getShape())) return false; + } + if (dtype_ != other.dtype_) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasShape()) { + hash = (37 * hash) + SHAPE_FIELD_NUMBER; + hash = (53 * hash) + getShape().hashCode(); + } + hash = (37 * hash) + DTYPE_FIELD_NUMBER; + hash = (53 * hash) + dtype_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.Struct.TensorSpecProto parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.TensorSpecProto parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.TensorSpecProto parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.TensorSpecProto parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.TensorSpecProto parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.TensorSpecProto parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.TensorSpecProto parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.TensorSpecProto 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 org.tensorflow.proto.Struct.TensorSpecProto parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.TensorSpecProto 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 org.tensorflow.proto.Struct.TensorSpecProto parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.TensorSpecProto 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(org.tensorflow.proto.Struct.TensorSpecProto 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; + } + /** + *
+     * A protobuf to represent tf.TensorSpec.
+     * 
+ * + * Protobuf type {@code tensorflow.TensorSpecProto} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.TensorSpecProto) + org.tensorflow.proto.Struct.TensorSpecProtoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_TensorSpecProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_TensorSpecProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Struct.TensorSpecProto.class, org.tensorflow.proto.Struct.TensorSpecProto.Builder.class); + } + + // Construct using org.tensorflow.proto.Struct.TensorSpecProto.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (shapeBuilder_ == null) { + shape_ = null; + } else { + shape_ = null; + shapeBuilder_ = null; + } + dtype_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_TensorSpecProto_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.Struct.TensorSpecProto getDefaultInstanceForType() { + return org.tensorflow.proto.Struct.TensorSpecProto.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.Struct.TensorSpecProto build() { + org.tensorflow.proto.Struct.TensorSpecProto result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.Struct.TensorSpecProto buildPartial() { + org.tensorflow.proto.Struct.TensorSpecProto result = new org.tensorflow.proto.Struct.TensorSpecProto(this); + result.name_ = name_; + if (shapeBuilder_ == null) { + result.shape_ = shape_; + } else { + result.shape_ = shapeBuilder_.build(); + } + result.dtype_ = dtype_; + 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 org.tensorflow.proto.Struct.TensorSpecProto) { + return mergeFrom((org.tensorflow.proto.Struct.TensorSpecProto)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.Struct.TensorSpecProto other) { + if (other == org.tensorflow.proto.Struct.TensorSpecProto.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasShape()) { + mergeShape(other.getShape()); + } + if (other.dtype_ != 0) { + setDtypeValue(other.getDtypeValue()); + } + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getShapeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 24: { + dtype_ = input.readEnum(); + + break; + } // case 24 + 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 java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private org.tensorflow.proto.TensorShapeProto shape_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> shapeBuilder_; + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + public boolean hasShape() { + return shapeBuilder_ != null || shape_ != null; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + public org.tensorflow.proto.TensorShapeProto getShape() { + if (shapeBuilder_ == null) { + return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } else { + return shapeBuilder_.getMessage(); + } + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder setShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shape_ = value; + onChanged(); + } else { + shapeBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder setShape( + org.tensorflow.proto.TensorShapeProto.Builder builderForValue) { + if (shapeBuilder_ == null) { + shape_ = builderForValue.build(); + onChanged(); + } else { + shapeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder mergeShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (shape_ != null) { + shape_ = + org.tensorflow.proto.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial(); + } else { + shape_ = value; + } + onChanged(); + } else { + shapeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder clearShape() { + if (shapeBuilder_ == null) { + shape_ = null; + onChanged(); + } else { + shape_ = null; + shapeBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public org.tensorflow.proto.TensorShapeProto.Builder getShapeBuilder() { + + onChanged(); + return getShapeFieldBuilder().getBuilder(); + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { + if (shapeBuilder_ != null) { + return shapeBuilder_.getMessageOrBuilder(); + } else { + return shape_ == null ? + org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> + getShapeFieldBuilder() { + if (shapeBuilder_ == null) { + shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder>( + getShape(), + getParentForChildren(), + isClean()); + shape_ = null; + } + return shapeBuilder_; + } + + private int dtype_ = 0; + /** + * .tensorflow.DataType dtype = 3; + * @return The enum numeric value on the wire for dtype. + */ + @java.lang.Override public int getDtypeValue() { + return dtype_; + } + /** + * .tensorflow.DataType dtype = 3; + * @param value The enum numeric value on the wire for dtype to set. + * @return This builder for chaining. + */ + public Builder setDtypeValue(int value) { + + dtype_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.DataType dtype = 3; + * @return The dtype. + */ + @java.lang.Override + public org.tensorflow.proto.DataType getDtype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + /** + * .tensorflow.DataType dtype = 3; + * @param value The dtype to set. + * @return This builder for chaining. + */ + public Builder setDtype(org.tensorflow.proto.DataType value) { + if (value == null) { + throw new NullPointerException(); + } + + dtype_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.DataType dtype = 3; + * @return This builder for chaining. + */ + public Builder clearDtype() { + + dtype_ = 0; + 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:tensorflow.TensorSpecProto) + } + + // @@protoc_insertion_point(class_scope:tensorflow.TensorSpecProto) + private static final org.tensorflow.proto.Struct.TensorSpecProto DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.Struct.TensorSpecProto(); + } + + public static org.tensorflow.proto.Struct.TensorSpecProto getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TensorSpecProto 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 org.tensorflow.proto.Struct.TensorSpecProto getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BoundedTensorSpecProtoOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.BoundedTensorSpecProto) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + boolean hasShape(); + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + org.tensorflow.proto.TensorShapeProto getShape(); + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder(); + + /** + * .tensorflow.DataType dtype = 3; + * @return The enum numeric value on the wire for dtype. + */ + int getDtypeValue(); + /** + * .tensorflow.DataType dtype = 3; + * @return The dtype. + */ + org.tensorflow.proto.DataType getDtype(); + + /** + * .tensorflow.TensorProto minimum = 4; + * @return Whether the minimum field is set. + */ + boolean hasMinimum(); + /** + * .tensorflow.TensorProto minimum = 4; + * @return The minimum. + */ + org.tensorflow.proto.TensorProto getMinimum(); + /** + * .tensorflow.TensorProto minimum = 4; + */ + org.tensorflow.proto.TensorProtoOrBuilder getMinimumOrBuilder(); + + /** + * .tensorflow.TensorProto maximum = 5; + * @return Whether the maximum field is set. + */ + boolean hasMaximum(); + /** + * .tensorflow.TensorProto maximum = 5; + * @return The maximum. + */ + org.tensorflow.proto.TensorProto getMaximum(); + /** + * .tensorflow.TensorProto maximum = 5; + */ + org.tensorflow.proto.TensorProtoOrBuilder getMaximumOrBuilder(); + } + /** + *
+   * A protobuf to represent tf.BoundedTensorSpec.
+   * 
+ * + * Protobuf type {@code tensorflow.BoundedTensorSpecProto} + */ + public static final class BoundedTensorSpecProto extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.BoundedTensorSpecProto) + BoundedTensorSpecProtoOrBuilder { + private static final long serialVersionUID = 0L; + // Use BoundedTensorSpecProto.newBuilder() to construct. + private BoundedTensorSpecProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BoundedTensorSpecProto() { + name_ = ""; + dtype_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BoundedTensorSpecProto(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_BoundedTensorSpecProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_BoundedTensorSpecProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Struct.BoundedTensorSpecProto.class, org.tensorflow.proto.Struct.BoundedTensorSpecProto.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHAPE_FIELD_NUMBER = 2; + private org.tensorflow.proto.TensorShapeProto shape_; + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + @java.lang.Override + public boolean hasShape() { + return shape_ != null; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto getShape() { + return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { + return getShape(); + } + + public static final int DTYPE_FIELD_NUMBER = 3; + private int dtype_; + /** + * .tensorflow.DataType dtype = 3; + * @return The enum numeric value on the wire for dtype. + */ + @java.lang.Override public int getDtypeValue() { + return dtype_; + } + /** + * .tensorflow.DataType dtype = 3; + * @return The dtype. + */ + @java.lang.Override public org.tensorflow.proto.DataType getDtype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + + public static final int MINIMUM_FIELD_NUMBER = 4; + private org.tensorflow.proto.TensorProto minimum_; + /** + * .tensorflow.TensorProto minimum = 4; + * @return Whether the minimum field is set. + */ + @java.lang.Override + public boolean hasMinimum() { + return minimum_ != null; + } + /** + * .tensorflow.TensorProto minimum = 4; + * @return The minimum. + */ + @java.lang.Override + public org.tensorflow.proto.TensorProto getMinimum() { + return minimum_ == null ? org.tensorflow.proto.TensorProto.getDefaultInstance() : minimum_; + } + /** + * .tensorflow.TensorProto minimum = 4; + */ + @java.lang.Override + public org.tensorflow.proto.TensorProtoOrBuilder getMinimumOrBuilder() { + return getMinimum(); + } + + public static final int MAXIMUM_FIELD_NUMBER = 5; + private org.tensorflow.proto.TensorProto maximum_; + /** + * .tensorflow.TensorProto maximum = 5; + * @return Whether the maximum field is set. + */ + @java.lang.Override + public boolean hasMaximum() { + return maximum_ != null; + } + /** + * .tensorflow.TensorProto maximum = 5; + * @return The maximum. + */ + @java.lang.Override + public org.tensorflow.proto.TensorProto getMaximum() { + return maximum_ == null ? org.tensorflow.proto.TensorProto.getDefaultInstance() : maximum_; + } + /** + * .tensorflow.TensorProto maximum = 5; + */ + @java.lang.Override + public org.tensorflow.proto.TensorProtoOrBuilder getMaximumOrBuilder() { + return getMaximum(); + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (shape_ != null) { + output.writeMessage(2, getShape()); + } + if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + output.writeEnum(3, dtype_); + } + if (minimum_ != null) { + output.writeMessage(4, getMinimum()); + } + if (maximum_ != null) { + output.writeMessage(5, getMaximum()); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (shape_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getShape()); + } + if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, dtype_); + } + if (minimum_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getMinimum()); + } + if (maximum_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getMaximum()); + } + 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 org.tensorflow.proto.Struct.BoundedTensorSpecProto)) { + return super.equals(obj); + } + org.tensorflow.proto.Struct.BoundedTensorSpecProto other = (org.tensorflow.proto.Struct.BoundedTensorSpecProto) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasShape() != other.hasShape()) return false; + if (hasShape()) { + if (!getShape() + .equals(other.getShape())) return false; + } + if (dtype_ != other.dtype_) return false; + if (hasMinimum() != other.hasMinimum()) return false; + if (hasMinimum()) { + if (!getMinimum() + .equals(other.getMinimum())) return false; + } + if (hasMaximum() != other.hasMaximum()) return false; + if (hasMaximum()) { + if (!getMaximum() + .equals(other.getMaximum())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasShape()) { + hash = (37 * hash) + SHAPE_FIELD_NUMBER; + hash = (53 * hash) + getShape().hashCode(); + } + hash = (37 * hash) + DTYPE_FIELD_NUMBER; + hash = (53 * hash) + dtype_; + if (hasMinimum()) { + hash = (37 * hash) + MINIMUM_FIELD_NUMBER; + hash = (53 * hash) + getMinimum().hashCode(); + } + if (hasMaximum()) { + hash = (37 * hash) + MAXIMUM_FIELD_NUMBER; + hash = (53 * hash) + getMaximum().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.Struct.BoundedTensorSpecProto parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.BoundedTensorSpecProto parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.BoundedTensorSpecProto parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.BoundedTensorSpecProto parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.BoundedTensorSpecProto parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.BoundedTensorSpecProto parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.BoundedTensorSpecProto parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.BoundedTensorSpecProto 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 org.tensorflow.proto.Struct.BoundedTensorSpecProto parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.BoundedTensorSpecProto 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 org.tensorflow.proto.Struct.BoundedTensorSpecProto parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.BoundedTensorSpecProto 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(org.tensorflow.proto.Struct.BoundedTensorSpecProto 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; + } + /** + *
+     * A protobuf to represent tf.BoundedTensorSpec.
+     * 
+ * + * Protobuf type {@code tensorflow.BoundedTensorSpecProto} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.BoundedTensorSpecProto) + org.tensorflow.proto.Struct.BoundedTensorSpecProtoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_BoundedTensorSpecProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_BoundedTensorSpecProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Struct.BoundedTensorSpecProto.class, org.tensorflow.proto.Struct.BoundedTensorSpecProto.Builder.class); + } + + // Construct using org.tensorflow.proto.Struct.BoundedTensorSpecProto.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (shapeBuilder_ == null) { + shape_ = null; + } else { + shape_ = null; + shapeBuilder_ = null; + } + dtype_ = 0; + + if (minimumBuilder_ == null) { + minimum_ = null; + } else { + minimum_ = null; + minimumBuilder_ = null; + } + if (maximumBuilder_ == null) { + maximum_ = null; + } else { + maximum_ = null; + maximumBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_BoundedTensorSpecProto_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.Struct.BoundedTensorSpecProto getDefaultInstanceForType() { + return org.tensorflow.proto.Struct.BoundedTensorSpecProto.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.Struct.BoundedTensorSpecProto build() { + org.tensorflow.proto.Struct.BoundedTensorSpecProto result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.Struct.BoundedTensorSpecProto buildPartial() { + org.tensorflow.proto.Struct.BoundedTensorSpecProto result = new org.tensorflow.proto.Struct.BoundedTensorSpecProto(this); + result.name_ = name_; + if (shapeBuilder_ == null) { + result.shape_ = shape_; + } else { + result.shape_ = shapeBuilder_.build(); + } + result.dtype_ = dtype_; + if (minimumBuilder_ == null) { + result.minimum_ = minimum_; + } else { + result.minimum_ = minimumBuilder_.build(); + } + if (maximumBuilder_ == null) { + result.maximum_ = maximum_; + } else { + result.maximum_ = maximumBuilder_.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 org.tensorflow.proto.Struct.BoundedTensorSpecProto) { + return mergeFrom((org.tensorflow.proto.Struct.BoundedTensorSpecProto)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.Struct.BoundedTensorSpecProto other) { + if (other == org.tensorflow.proto.Struct.BoundedTensorSpecProto.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasShape()) { + mergeShape(other.getShape()); + } + if (other.dtype_ != 0) { + setDtypeValue(other.getDtypeValue()); + } + if (other.hasMinimum()) { + mergeMinimum(other.getMinimum()); + } + if (other.hasMaximum()) { + mergeMaximum(other.getMaximum()); + } + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getShapeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 24: { + dtype_ = input.readEnum(); + + break; + } // case 24 + case 34: { + input.readMessage( + getMinimumFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + input.readMessage( + getMaximumFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private org.tensorflow.proto.TensorShapeProto shape_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> shapeBuilder_; + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + public boolean hasShape() { + return shapeBuilder_ != null || shape_ != null; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + public org.tensorflow.proto.TensorShapeProto getShape() { + if (shapeBuilder_ == null) { + return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } else { + return shapeBuilder_.getMessage(); + } + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder setShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shape_ = value; + onChanged(); + } else { + shapeBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder setShape( + org.tensorflow.proto.TensorShapeProto.Builder builderForValue) { + if (shapeBuilder_ == null) { + shape_ = builderForValue.build(); + onChanged(); + } else { + shapeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder mergeShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (shape_ != null) { + shape_ = + org.tensorflow.proto.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial(); + } else { + shape_ = value; + } + onChanged(); + } else { + shapeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder clearShape() { + if (shapeBuilder_ == null) { + shape_ = null; + onChanged(); + } else { + shape_ = null; + shapeBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public org.tensorflow.proto.TensorShapeProto.Builder getShapeBuilder() { + + onChanged(); + return getShapeFieldBuilder().getBuilder(); + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { + if (shapeBuilder_ != null) { + return shapeBuilder_.getMessageOrBuilder(); + } else { + return shape_ == null ? + org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } + } + /** + * .tensorflow.TensorShapeProto shape = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> + getShapeFieldBuilder() { + if (shapeBuilder_ == null) { + shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder>( + getShape(), + getParentForChildren(), + isClean()); + shape_ = null; + } + return shapeBuilder_; + } + + private int dtype_ = 0; + /** + * .tensorflow.DataType dtype = 3; + * @return The enum numeric value on the wire for dtype. + */ + @java.lang.Override public int getDtypeValue() { + return dtype_; + } + /** + * .tensorflow.DataType dtype = 3; + * @param value The enum numeric value on the wire for dtype to set. + * @return This builder for chaining. + */ + public Builder setDtypeValue(int value) { + + dtype_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.DataType dtype = 3; + * @return The dtype. + */ + @java.lang.Override + public org.tensorflow.proto.DataType getDtype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + /** + * .tensorflow.DataType dtype = 3; + * @param value The dtype to set. + * @return This builder for chaining. + */ + public Builder setDtype(org.tensorflow.proto.DataType value) { + if (value == null) { + throw new NullPointerException(); + } + + dtype_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.DataType dtype = 3; + * @return This builder for chaining. + */ + public Builder clearDtype() { + + dtype_ = 0; + onChanged(); + return this; + } + + private org.tensorflow.proto.TensorProto minimum_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> minimumBuilder_; + /** + * .tensorflow.TensorProto minimum = 4; + * @return Whether the minimum field is set. + */ + public boolean hasMinimum() { + return minimumBuilder_ != null || minimum_ != null; + } + /** + * .tensorflow.TensorProto minimum = 4; + * @return The minimum. + */ + public org.tensorflow.proto.TensorProto getMinimum() { + if (minimumBuilder_ == null) { + return minimum_ == null ? org.tensorflow.proto.TensorProto.getDefaultInstance() : minimum_; + } else { + return minimumBuilder_.getMessage(); + } + } + /** + * .tensorflow.TensorProto minimum = 4; + */ + public Builder setMinimum(org.tensorflow.proto.TensorProto value) { + if (minimumBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + minimum_ = value; + onChanged(); + } else { + minimumBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.TensorProto minimum = 4; + */ + public Builder setMinimum( + org.tensorflow.proto.TensorProto.Builder builderForValue) { + if (minimumBuilder_ == null) { + minimum_ = builderForValue.build(); + onChanged(); + } else { + minimumBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.TensorProto minimum = 4; + */ + public Builder mergeMinimum(org.tensorflow.proto.TensorProto value) { + if (minimumBuilder_ == null) { + if (minimum_ != null) { + minimum_ = + org.tensorflow.proto.TensorProto.newBuilder(minimum_).mergeFrom(value).buildPartial(); + } else { + minimum_ = value; + } + onChanged(); + } else { + minimumBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.TensorProto minimum = 4; + */ + public Builder clearMinimum() { + if (minimumBuilder_ == null) { + minimum_ = null; + onChanged(); + } else { + minimum_ = null; + minimumBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.TensorProto minimum = 4; + */ + public org.tensorflow.proto.TensorProto.Builder getMinimumBuilder() { + + onChanged(); + return getMinimumFieldBuilder().getBuilder(); + } + /** + * .tensorflow.TensorProto minimum = 4; + */ + public org.tensorflow.proto.TensorProtoOrBuilder getMinimumOrBuilder() { + if (minimumBuilder_ != null) { + return minimumBuilder_.getMessageOrBuilder(); + } else { + return minimum_ == null ? + org.tensorflow.proto.TensorProto.getDefaultInstance() : minimum_; + } + } + /** + * .tensorflow.TensorProto minimum = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> + getMinimumFieldBuilder() { + if (minimumBuilder_ == null) { + minimumBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder>( + getMinimum(), + getParentForChildren(), + isClean()); + minimum_ = null; + } + return minimumBuilder_; + } + + private org.tensorflow.proto.TensorProto maximum_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> maximumBuilder_; + /** + * .tensorflow.TensorProto maximum = 5; + * @return Whether the maximum field is set. + */ + public boolean hasMaximum() { + return maximumBuilder_ != null || maximum_ != null; + } + /** + * .tensorflow.TensorProto maximum = 5; + * @return The maximum. + */ + public org.tensorflow.proto.TensorProto getMaximum() { + if (maximumBuilder_ == null) { + return maximum_ == null ? org.tensorflow.proto.TensorProto.getDefaultInstance() : maximum_; + } else { + return maximumBuilder_.getMessage(); + } + } + /** + * .tensorflow.TensorProto maximum = 5; + */ + public Builder setMaximum(org.tensorflow.proto.TensorProto value) { + if (maximumBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maximum_ = value; + onChanged(); + } else { + maximumBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.TensorProto maximum = 5; + */ + public Builder setMaximum( + org.tensorflow.proto.TensorProto.Builder builderForValue) { + if (maximumBuilder_ == null) { + maximum_ = builderForValue.build(); + onChanged(); + } else { + maximumBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.TensorProto maximum = 5; + */ + public Builder mergeMaximum(org.tensorflow.proto.TensorProto value) { + if (maximumBuilder_ == null) { + if (maximum_ != null) { + maximum_ = + org.tensorflow.proto.TensorProto.newBuilder(maximum_).mergeFrom(value).buildPartial(); + } else { + maximum_ = value; + } + onChanged(); + } else { + maximumBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.TensorProto maximum = 5; + */ + public Builder clearMaximum() { + if (maximumBuilder_ == null) { + maximum_ = null; + onChanged(); + } else { + maximum_ = null; + maximumBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.TensorProto maximum = 5; + */ + public org.tensorflow.proto.TensorProto.Builder getMaximumBuilder() { + + onChanged(); + return getMaximumFieldBuilder().getBuilder(); + } + /** + * .tensorflow.TensorProto maximum = 5; + */ + public org.tensorflow.proto.TensorProtoOrBuilder getMaximumOrBuilder() { + if (maximumBuilder_ != null) { + return maximumBuilder_.getMessageOrBuilder(); + } else { + return maximum_ == null ? + org.tensorflow.proto.TensorProto.getDefaultInstance() : maximum_; + } + } + /** + * .tensorflow.TensorProto maximum = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> + getMaximumFieldBuilder() { + if (maximumBuilder_ == null) { + maximumBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder>( + getMaximum(), + getParentForChildren(), + isClean()); + maximum_ = null; + } + return maximumBuilder_; + } + @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:tensorflow.BoundedTensorSpecProto) + } + + // @@protoc_insertion_point(class_scope:tensorflow.BoundedTensorSpecProto) + private static final org.tensorflow.proto.Struct.BoundedTensorSpecProto DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.Struct.BoundedTensorSpecProto(); + } + + public static org.tensorflow.proto.Struct.BoundedTensorSpecProto getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoundedTensorSpecProto 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 org.tensorflow.proto.Struct.BoundedTensorSpecProto getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TypeSpecProtoOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.TypeSpecProto) + com.google.protobuf.MessageOrBuilder { + + /** + * .tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1; + * @return The enum numeric value on the wire for typeSpecClass. + */ + int getTypeSpecClassValue(); + /** + * .tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1; + * @return The typeSpecClass. + */ + org.tensorflow.proto.Struct.TypeSpecProto.TypeSpecClass getTypeSpecClass(); + + /** + *
+     * The value returned by TypeSpec._serialize().
+     * 
+ * + * .tensorflow.StructuredValue type_state = 2; + * @return Whether the typeState field is set. + */ + boolean hasTypeState(); + /** + *
+     * The value returned by TypeSpec._serialize().
+     * 
+ * + * .tensorflow.StructuredValue type_state = 2; + * @return The typeState. + */ + org.tensorflow.proto.Struct.StructuredValue getTypeState(); + /** + *
+     * The value returned by TypeSpec._serialize().
+     * 
+ * + * .tensorflow.StructuredValue type_state = 2; + */ + org.tensorflow.proto.Struct.StructuredValueOrBuilder getTypeStateOrBuilder(); + + /** + *
+     * The name of the TypeSpec class.
+     *  * If type_spec_class == REGISTERED_TYPE_SPEC, the TypeSpec class is
+     *    the one registered under this name. For types registered outside
+     *    core TensorFlow by an add-on library, that library must be loaded
+     *    before this value can be deserialized by nested_structure_coder.
+     *  * If type_spec_class specifies a particular TypeSpec class, this field is
+     *    redundant with the type_spec_class enum, and is only used for error
+     *    reporting in older binaries that do not know the tupe_spec_class enum.
+     * 
+ * + * string type_spec_class_name = 3; + * @return The typeSpecClassName. + */ + java.lang.String getTypeSpecClassName(); + /** + *
+     * The name of the TypeSpec class.
+     *  * If type_spec_class == REGISTERED_TYPE_SPEC, the TypeSpec class is
+     *    the one registered under this name. For types registered outside
+     *    core TensorFlow by an add-on library, that library must be loaded
+     *    before this value can be deserialized by nested_structure_coder.
+     *  * If type_spec_class specifies a particular TypeSpec class, this field is
+     *    redundant with the type_spec_class enum, and is only used for error
+     *    reporting in older binaries that do not know the tupe_spec_class enum.
+     * 
+ * + * string type_spec_class_name = 3; + * @return The bytes for typeSpecClassName. + */ + com.google.protobuf.ByteString + getTypeSpecClassNameBytes(); + + /** + *
+     * The number of flat tensor components required by this TypeSpec.
+     * 
+ * + * int32 num_flat_components = 4; + * @return The numFlatComponents. + */ + int getNumFlatComponents(); + } + /** + *
+   * Represents a tf.TypeSpec
+   * 
+ * + * Protobuf type {@code tensorflow.TypeSpecProto} + */ + public static final class TypeSpecProto extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.TypeSpecProto) + TypeSpecProtoOrBuilder { + private static final long serialVersionUID = 0L; + // Use TypeSpecProto.newBuilder() to construct. + private TypeSpecProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TypeSpecProto() { + typeSpecClass_ = 0; + typeSpecClassName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TypeSpecProto(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_TypeSpecProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_TypeSpecProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Struct.TypeSpecProto.class, org.tensorflow.proto.Struct.TypeSpecProto.Builder.class); + } + + /** + * Protobuf enum {@code tensorflow.TypeSpecProto.TypeSpecClass} + */ + public enum TypeSpecClass + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + *
+       * tf.SparseTensorSpec
+       * 
+ * + * SPARSE_TENSOR_SPEC = 1; + */ + SPARSE_TENSOR_SPEC(1), + /** + *
+       * tf.IndexedSlicesSpec
+       * 
+ * + * INDEXED_SLICES_SPEC = 2; + */ + INDEXED_SLICES_SPEC(2), + /** + *
+       * tf.RaggedTensorSpec
+       * 
+ * + * RAGGED_TENSOR_SPEC = 3; + */ + RAGGED_TENSOR_SPEC(3), + /** + *
+       * tf.TensorArraySpec
+       * 
+ * + * TENSOR_ARRAY_SPEC = 4; + */ + TENSOR_ARRAY_SPEC(4), + /** + *
+       * tf.data.DatasetSpec
+       * 
+ * + * DATA_DATASET_SPEC = 5; + */ + DATA_DATASET_SPEC(5), + /** + *
+       * IteratorSpec from data/ops/iterator_ops.py
+       * 
+ * + * DATA_ITERATOR_SPEC = 6; + */ + DATA_ITERATOR_SPEC(6), + /** + *
+       * tf.OptionalSpec
+       * 
+ * + * OPTIONAL_SPEC = 7; + */ + OPTIONAL_SPEC(7), + /** + *
+       * PerReplicaSpec from distribute/values.py
+       * 
+ * + * PER_REPLICA_SPEC = 8; + */ + PER_REPLICA_SPEC(8), + /** + *
+       * tf.VariableSpec
+       * 
+ * + * VARIABLE_SPEC = 9; + */ + VARIABLE_SPEC(9), + /** + *
+       * RowPartitionSpec from ragged/row_partition.py
+       * 
+ * + * ROW_PARTITION_SPEC = 10; + */ + ROW_PARTITION_SPEC(10), + /** + *
+       * The type registered as type_spec_class_name.
+       * 
+ * + * REGISTERED_TYPE_SPEC = 12; + */ + REGISTERED_TYPE_SPEC(12), + /** + *
+       * Subclasses of tf.ExtensionType
+       * 
+ * + * EXTENSION_TYPE_SPEC = 13; + */ + EXTENSION_TYPE_SPEC(13), + UNRECOGNIZED(-1), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + *
+       * tf.SparseTensorSpec
+       * 
+ * + * SPARSE_TENSOR_SPEC = 1; + */ + public static final int SPARSE_TENSOR_SPEC_VALUE = 1; + /** + *
+       * tf.IndexedSlicesSpec
+       * 
+ * + * INDEXED_SLICES_SPEC = 2; + */ + public static final int INDEXED_SLICES_SPEC_VALUE = 2; + /** + *
+       * tf.RaggedTensorSpec
+       * 
+ * + * RAGGED_TENSOR_SPEC = 3; + */ + public static final int RAGGED_TENSOR_SPEC_VALUE = 3; + /** + *
+       * tf.TensorArraySpec
+       * 
+ * + * TENSOR_ARRAY_SPEC = 4; + */ + public static final int TENSOR_ARRAY_SPEC_VALUE = 4; + /** + *
+       * tf.data.DatasetSpec
+       * 
+ * + * DATA_DATASET_SPEC = 5; + */ + public static final int DATA_DATASET_SPEC_VALUE = 5; + /** + *
+       * IteratorSpec from data/ops/iterator_ops.py
+       * 
+ * + * DATA_ITERATOR_SPEC = 6; + */ + public static final int DATA_ITERATOR_SPEC_VALUE = 6; + /** + *
+       * tf.OptionalSpec
+       * 
+ * + * OPTIONAL_SPEC = 7; + */ + public static final int OPTIONAL_SPEC_VALUE = 7; + /** + *
+       * PerReplicaSpec from distribute/values.py
+       * 
+ * + * PER_REPLICA_SPEC = 8; + */ + public static final int PER_REPLICA_SPEC_VALUE = 8; + /** + *
+       * tf.VariableSpec
+       * 
+ * + * VARIABLE_SPEC = 9; + */ + public static final int VARIABLE_SPEC_VALUE = 9; + /** + *
+       * RowPartitionSpec from ragged/row_partition.py
+       * 
+ * + * ROW_PARTITION_SPEC = 10; + */ + public static final int ROW_PARTITION_SPEC_VALUE = 10; + /** + *
+       * The type registered as type_spec_class_name.
+       * 
+ * + * REGISTERED_TYPE_SPEC = 12; + */ + public static final int REGISTERED_TYPE_SPEC_VALUE = 12; + /** + *
+       * Subclasses of tf.ExtensionType
+       * 
+ * + * EXTENSION_TYPE_SPEC = 13; + */ + public static final int EXTENSION_TYPE_SPEC_VALUE = 13; + + + 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 TypeSpecClass 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 TypeSpecClass forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return SPARSE_TENSOR_SPEC; + case 2: return INDEXED_SLICES_SPEC; + case 3: return RAGGED_TENSOR_SPEC; + case 4: return TENSOR_ARRAY_SPEC; + case 5: return DATA_DATASET_SPEC; + case 6: return DATA_ITERATOR_SPEC; + case 7: return OPTIONAL_SPEC; + case 8: return PER_REPLICA_SPEC; + case 9: return VARIABLE_SPEC; + case 10: return ROW_PARTITION_SPEC; + case 12: return REGISTERED_TYPE_SPEC; + case 13: return EXTENSION_TYPE_SPEC; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + TypeSpecClass> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TypeSpecClass findValueByNumber(int number) { + return TypeSpecClass.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 org.tensorflow.proto.Struct.TypeSpecProto.getDescriptor().getEnumTypes().get(0); + } + + private static final TypeSpecClass[] VALUES = values(); + + public static TypeSpecClass 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 TypeSpecClass(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:tensorflow.TypeSpecProto.TypeSpecClass) + } + + public static final int TYPE_SPEC_CLASS_FIELD_NUMBER = 1; + private int typeSpecClass_; + /** + * .tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1; + * @return The enum numeric value on the wire for typeSpecClass. + */ + @java.lang.Override public int getTypeSpecClassValue() { + return typeSpecClass_; + } + /** + * .tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1; + * @return The typeSpecClass. + */ + @java.lang.Override public org.tensorflow.proto.Struct.TypeSpecProto.TypeSpecClass getTypeSpecClass() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.Struct.TypeSpecProto.TypeSpecClass result = org.tensorflow.proto.Struct.TypeSpecProto.TypeSpecClass.valueOf(typeSpecClass_); + return result == null ? org.tensorflow.proto.Struct.TypeSpecProto.TypeSpecClass.UNRECOGNIZED : result; + } + + public static final int TYPE_STATE_FIELD_NUMBER = 2; + private org.tensorflow.proto.Struct.StructuredValue typeState_; + /** + *
+     * The value returned by TypeSpec._serialize().
+     * 
+ * + * .tensorflow.StructuredValue type_state = 2; + * @return Whether the typeState field is set. + */ + @java.lang.Override + public boolean hasTypeState() { + return typeState_ != null; + } + /** + *
+     * The value returned by TypeSpec._serialize().
+     * 
+ * + * .tensorflow.StructuredValue type_state = 2; + * @return The typeState. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.StructuredValue getTypeState() { + return typeState_ == null ? org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance() : typeState_; + } + /** + *
+     * The value returned by TypeSpec._serialize().
+     * 
+ * + * .tensorflow.StructuredValue type_state = 2; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.StructuredValueOrBuilder getTypeStateOrBuilder() { + return getTypeState(); + } + + public static final int TYPE_SPEC_CLASS_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object typeSpecClassName_; + /** + *
+     * The name of the TypeSpec class.
+     *  * If type_spec_class == REGISTERED_TYPE_SPEC, the TypeSpec class is
+     *    the one registered under this name. For types registered outside
+     *    core TensorFlow by an add-on library, that library must be loaded
+     *    before this value can be deserialized by nested_structure_coder.
+     *  * If type_spec_class specifies a particular TypeSpec class, this field is
+     *    redundant with the type_spec_class enum, and is only used for error
+     *    reporting in older binaries that do not know the tupe_spec_class enum.
+     * 
+ * + * string type_spec_class_name = 3; + * @return The typeSpecClassName. + */ + @java.lang.Override + public java.lang.String getTypeSpecClassName() { + java.lang.Object ref = typeSpecClassName_; + 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(); + typeSpecClassName_ = s; + return s; + } + } + /** + *
+     * The name of the TypeSpec class.
+     *  * If type_spec_class == REGISTERED_TYPE_SPEC, the TypeSpec class is
+     *    the one registered under this name. For types registered outside
+     *    core TensorFlow by an add-on library, that library must be loaded
+     *    before this value can be deserialized by nested_structure_coder.
+     *  * If type_spec_class specifies a particular TypeSpec class, this field is
+     *    redundant with the type_spec_class enum, and is only used for error
+     *    reporting in older binaries that do not know the tupe_spec_class enum.
+     * 
+ * + * string type_spec_class_name = 3; + * @return The bytes for typeSpecClassName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTypeSpecClassNameBytes() { + java.lang.Object ref = typeSpecClassName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + typeSpecClassName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NUM_FLAT_COMPONENTS_FIELD_NUMBER = 4; + private int numFlatComponents_; + /** + *
+     * The number of flat tensor components required by this TypeSpec.
+     * 
+ * + * int32 num_flat_components = 4; + * @return The numFlatComponents. + */ + @java.lang.Override + public int getNumFlatComponents() { + return numFlatComponents_; + } + + 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 (typeSpecClass_ != org.tensorflow.proto.Struct.TypeSpecProto.TypeSpecClass.UNKNOWN.getNumber()) { + output.writeEnum(1, typeSpecClass_); + } + if (typeState_ != null) { + output.writeMessage(2, getTypeState()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeSpecClassName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, typeSpecClassName_); + } + if (numFlatComponents_ != 0) { + output.writeInt32(4, numFlatComponents_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeSpecClass_ != org.tensorflow.proto.Struct.TypeSpecProto.TypeSpecClass.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, typeSpecClass_); + } + if (typeState_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTypeState()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeSpecClassName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, typeSpecClassName_); + } + if (numFlatComponents_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, numFlatComponents_); + } + 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 org.tensorflow.proto.Struct.TypeSpecProto)) { + return super.equals(obj); + } + org.tensorflow.proto.Struct.TypeSpecProto other = (org.tensorflow.proto.Struct.TypeSpecProto) obj; + + if (typeSpecClass_ != other.typeSpecClass_) return false; + if (hasTypeState() != other.hasTypeState()) return false; + if (hasTypeState()) { + if (!getTypeState() + .equals(other.getTypeState())) return false; + } + if (!getTypeSpecClassName() + .equals(other.getTypeSpecClassName())) return false; + if (getNumFlatComponents() + != other.getNumFlatComponents()) 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_SPEC_CLASS_FIELD_NUMBER; + hash = (53 * hash) + typeSpecClass_; + if (hasTypeState()) { + hash = (37 * hash) + TYPE_STATE_FIELD_NUMBER; + hash = (53 * hash) + getTypeState().hashCode(); + } + hash = (37 * hash) + TYPE_SPEC_CLASS_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTypeSpecClassName().hashCode(); + hash = (37 * hash) + NUM_FLAT_COMPONENTS_FIELD_NUMBER; + hash = (53 * hash) + getNumFlatComponents(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.Struct.TypeSpecProto parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.TypeSpecProto parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.TypeSpecProto parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.TypeSpecProto parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.TypeSpecProto parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Struct.TypeSpecProto parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Struct.TypeSpecProto parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.TypeSpecProto 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 org.tensorflow.proto.Struct.TypeSpecProto parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.TypeSpecProto 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 org.tensorflow.proto.Struct.TypeSpecProto parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Struct.TypeSpecProto 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(org.tensorflow.proto.Struct.TypeSpecProto 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; + } + /** + *
+     * Represents a tf.TypeSpec
+     * 
+ * + * Protobuf type {@code tensorflow.TypeSpecProto} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.TypeSpecProto) + org.tensorflow.proto.Struct.TypeSpecProtoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_TypeSpecProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_TypeSpecProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Struct.TypeSpecProto.class, org.tensorflow.proto.Struct.TypeSpecProto.Builder.class); + } + + // Construct using org.tensorflow.proto.Struct.TypeSpecProto.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + typeSpecClass_ = 0; + + if (typeStateBuilder_ == null) { + typeState_ = null; + } else { + typeState_ = null; + typeStateBuilder_ = null; + } + typeSpecClassName_ = ""; + + numFlatComponents_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.Struct.internal_static_tensorflow_TypeSpecProto_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.Struct.TypeSpecProto getDefaultInstanceForType() { + return org.tensorflow.proto.Struct.TypeSpecProto.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.Struct.TypeSpecProto build() { + org.tensorflow.proto.Struct.TypeSpecProto result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.Struct.TypeSpecProto buildPartial() { + org.tensorflow.proto.Struct.TypeSpecProto result = new org.tensorflow.proto.Struct.TypeSpecProto(this); + result.typeSpecClass_ = typeSpecClass_; + if (typeStateBuilder_ == null) { + result.typeState_ = typeState_; + } else { + result.typeState_ = typeStateBuilder_.build(); + } + result.typeSpecClassName_ = typeSpecClassName_; + result.numFlatComponents_ = numFlatComponents_; + 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 org.tensorflow.proto.Struct.TypeSpecProto) { + return mergeFrom((org.tensorflow.proto.Struct.TypeSpecProto)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.Struct.TypeSpecProto other) { + if (other == org.tensorflow.proto.Struct.TypeSpecProto.getDefaultInstance()) return this; + if (other.typeSpecClass_ != 0) { + setTypeSpecClassValue(other.getTypeSpecClassValue()); + } + if (other.hasTypeState()) { + mergeTypeState(other.getTypeState()); + } + if (!other.getTypeSpecClassName().isEmpty()) { + typeSpecClassName_ = other.typeSpecClassName_; + onChanged(); + } + if (other.getNumFlatComponents() != 0) { + setNumFlatComponents(other.getNumFlatComponents()); + } + 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: { + typeSpecClass_ = input.readEnum(); + + break; + } // case 8 + case 18: { + input.readMessage( + getTypeStateFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + typeSpecClassName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + numFlatComponents_ = input.readInt32(); + + break; + } // case 32 + 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 typeSpecClass_ = 0; + /** + * .tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1; + * @return The enum numeric value on the wire for typeSpecClass. + */ + @java.lang.Override public int getTypeSpecClassValue() { + return typeSpecClass_; + } + /** + * .tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1; + * @param value The enum numeric value on the wire for typeSpecClass to set. + * @return This builder for chaining. + */ + public Builder setTypeSpecClassValue(int value) { + + typeSpecClass_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1; + * @return The typeSpecClass. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.TypeSpecProto.TypeSpecClass getTypeSpecClass() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.Struct.TypeSpecProto.TypeSpecClass result = org.tensorflow.proto.Struct.TypeSpecProto.TypeSpecClass.valueOf(typeSpecClass_); + return result == null ? org.tensorflow.proto.Struct.TypeSpecProto.TypeSpecClass.UNRECOGNIZED : result; + } + /** + * .tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1; + * @param value The typeSpecClass to set. + * @return This builder for chaining. + */ + public Builder setTypeSpecClass(org.tensorflow.proto.Struct.TypeSpecProto.TypeSpecClass value) { + if (value == null) { + throw new NullPointerException(); + } + + typeSpecClass_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1; + * @return This builder for chaining. + */ + public Builder clearTypeSpecClass() { + + typeSpecClass_ = 0; + onChanged(); + return this; + } + + private org.tensorflow.proto.Struct.StructuredValue typeState_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder> typeStateBuilder_; + /** + *
+       * The value returned by TypeSpec._serialize().
+       * 
+ * + * .tensorflow.StructuredValue type_state = 2; + * @return Whether the typeState field is set. + */ + public boolean hasTypeState() { + return typeStateBuilder_ != null || typeState_ != null; + } + /** + *
+       * The value returned by TypeSpec._serialize().
+       * 
+ * + * .tensorflow.StructuredValue type_state = 2; + * @return The typeState. + */ + public org.tensorflow.proto.Struct.StructuredValue getTypeState() { + if (typeStateBuilder_ == null) { + return typeState_ == null ? org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance() : typeState_; + } else { + return typeStateBuilder_.getMessage(); + } + } + /** + *
+       * The value returned by TypeSpec._serialize().
+       * 
+ * + * .tensorflow.StructuredValue type_state = 2; + */ + public Builder setTypeState(org.tensorflow.proto.Struct.StructuredValue value) { + if (typeStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + typeState_ = value; + onChanged(); + } else { + typeStateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The value returned by TypeSpec._serialize().
+       * 
+ * + * .tensorflow.StructuredValue type_state = 2; + */ + public Builder setTypeState( + org.tensorflow.proto.Struct.StructuredValue.Builder builderForValue) { + if (typeStateBuilder_ == null) { + typeState_ = builderForValue.build(); + onChanged(); + } else { + typeStateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The value returned by TypeSpec._serialize().
+       * 
+ * + * .tensorflow.StructuredValue type_state = 2; + */ + public Builder mergeTypeState(org.tensorflow.proto.Struct.StructuredValue value) { + if (typeStateBuilder_ == null) { + if (typeState_ != null) { + typeState_ = + org.tensorflow.proto.Struct.StructuredValue.newBuilder(typeState_).mergeFrom(value).buildPartial(); + } else { + typeState_ = value; + } + onChanged(); + } else { + typeStateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The value returned by TypeSpec._serialize().
+       * 
+ * + * .tensorflow.StructuredValue type_state = 2; + */ + public Builder clearTypeState() { + if (typeStateBuilder_ == null) { + typeState_ = null; + onChanged(); + } else { + typeState_ = null; + typeStateBuilder_ = null; + } + + return this; + } + /** + *
+       * The value returned by TypeSpec._serialize().
+       * 
+ * + * .tensorflow.StructuredValue type_state = 2; + */ + public org.tensorflow.proto.Struct.StructuredValue.Builder getTypeStateBuilder() { + + onChanged(); + return getTypeStateFieldBuilder().getBuilder(); + } + /** + *
+       * The value returned by TypeSpec._serialize().
+       * 
+ * + * .tensorflow.StructuredValue type_state = 2; + */ + public org.tensorflow.proto.Struct.StructuredValueOrBuilder getTypeStateOrBuilder() { + if (typeStateBuilder_ != null) { + return typeStateBuilder_.getMessageOrBuilder(); + } else { + return typeState_ == null ? + org.tensorflow.proto.Struct.StructuredValue.getDefaultInstance() : typeState_; + } + } + /** + *
+       * The value returned by TypeSpec._serialize().
+       * 
+ * + * .tensorflow.StructuredValue type_state = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder> + getTypeStateFieldBuilder() { + if (typeStateBuilder_ == null) { + typeStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.StructuredValue, org.tensorflow.proto.Struct.StructuredValue.Builder, org.tensorflow.proto.Struct.StructuredValueOrBuilder>( + getTypeState(), + getParentForChildren(), + isClean()); + typeState_ = null; + } + return typeStateBuilder_; + } + + private java.lang.Object typeSpecClassName_ = ""; + /** + *
+       * The name of the TypeSpec class.
+       *  * If type_spec_class == REGISTERED_TYPE_SPEC, the TypeSpec class is
+       *    the one registered under this name. For types registered outside
+       *    core TensorFlow by an add-on library, that library must be loaded
+       *    before this value can be deserialized by nested_structure_coder.
+       *  * If type_spec_class specifies a particular TypeSpec class, this field is
+       *    redundant with the type_spec_class enum, and is only used for error
+       *    reporting in older binaries that do not know the tupe_spec_class enum.
+       * 
+ * + * string type_spec_class_name = 3; + * @return The typeSpecClassName. + */ + public java.lang.String getTypeSpecClassName() { + java.lang.Object ref = typeSpecClassName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + typeSpecClassName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The name of the TypeSpec class.
+       *  * If type_spec_class == REGISTERED_TYPE_SPEC, the TypeSpec class is
+       *    the one registered under this name. For types registered outside
+       *    core TensorFlow by an add-on library, that library must be loaded
+       *    before this value can be deserialized by nested_structure_coder.
+       *  * If type_spec_class specifies a particular TypeSpec class, this field is
+       *    redundant with the type_spec_class enum, and is only used for error
+       *    reporting in older binaries that do not know the tupe_spec_class enum.
+       * 
+ * + * string type_spec_class_name = 3; + * @return The bytes for typeSpecClassName. + */ + public com.google.protobuf.ByteString + getTypeSpecClassNameBytes() { + java.lang.Object ref = typeSpecClassName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + typeSpecClassName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The name of the TypeSpec class.
+       *  * If type_spec_class == REGISTERED_TYPE_SPEC, the TypeSpec class is
+       *    the one registered under this name. For types registered outside
+       *    core TensorFlow by an add-on library, that library must be loaded
+       *    before this value can be deserialized by nested_structure_coder.
+       *  * If type_spec_class specifies a particular TypeSpec class, this field is
+       *    redundant with the type_spec_class enum, and is only used for error
+       *    reporting in older binaries that do not know the tupe_spec_class enum.
+       * 
+ * + * string type_spec_class_name = 3; + * @param value The typeSpecClassName to set. + * @return This builder for chaining. + */ + public Builder setTypeSpecClassName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + typeSpecClassName_ = value; + onChanged(); + return this; + } + /** + *
+       * The name of the TypeSpec class.
+       *  * If type_spec_class == REGISTERED_TYPE_SPEC, the TypeSpec class is
+       *    the one registered under this name. For types registered outside
+       *    core TensorFlow by an add-on library, that library must be loaded
+       *    before this value can be deserialized by nested_structure_coder.
+       *  * If type_spec_class specifies a particular TypeSpec class, this field is
+       *    redundant with the type_spec_class enum, and is only used for error
+       *    reporting in older binaries that do not know the tupe_spec_class enum.
+       * 
+ * + * string type_spec_class_name = 3; + * @return This builder for chaining. + */ + public Builder clearTypeSpecClassName() { + + typeSpecClassName_ = getDefaultInstance().getTypeSpecClassName(); + onChanged(); + return this; + } + /** + *
+       * The name of the TypeSpec class.
+       *  * If type_spec_class == REGISTERED_TYPE_SPEC, the TypeSpec class is
+       *    the one registered under this name. For types registered outside
+       *    core TensorFlow by an add-on library, that library must be loaded
+       *    before this value can be deserialized by nested_structure_coder.
+       *  * If type_spec_class specifies a particular TypeSpec class, this field is
+       *    redundant with the type_spec_class enum, and is only used for error
+       *    reporting in older binaries that do not know the tupe_spec_class enum.
+       * 
+ * + * string type_spec_class_name = 3; + * @param value The bytes for typeSpecClassName to set. + * @return This builder for chaining. + */ + public Builder setTypeSpecClassNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + typeSpecClassName_ = value; + onChanged(); + return this; + } + + private int numFlatComponents_ ; + /** + *
+       * The number of flat tensor components required by this TypeSpec.
+       * 
+ * + * int32 num_flat_components = 4; + * @return The numFlatComponents. + */ + @java.lang.Override + public int getNumFlatComponents() { + return numFlatComponents_; + } + /** + *
+       * The number of flat tensor components required by this TypeSpec.
+       * 
+ * + * int32 num_flat_components = 4; + * @param value The numFlatComponents to set. + * @return This builder for chaining. + */ + public Builder setNumFlatComponents(int value) { + + numFlatComponents_ = value; + onChanged(); + return this; + } + /** + *
+       * The number of flat tensor components required by this TypeSpec.
+       * 
+ * + * int32 num_flat_components = 4; + * @return This builder for chaining. + */ + public Builder clearNumFlatComponents() { + + numFlatComponents_ = 0; + 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:tensorflow.TypeSpecProto) + } + + // @@protoc_insertion_point(class_scope:tensorflow.TypeSpecProto) + private static final org.tensorflow.proto.Struct.TypeSpecProto DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.Struct.TypeSpecProto(); + } + + public static org.tensorflow.proto.Struct.TypeSpecProto getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TypeSpecProto 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 org.tensorflow.proto.Struct.TypeSpecProto getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_StructuredValue_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_StructuredValue_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_NoneValue_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_NoneValue_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_ListValue_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_ListValue_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_TupleValue_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_TupleValue_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_DictValue_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_DictValue_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_DictValue_FieldsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_DictValue_FieldsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_PairValue_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_PairValue_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_NamedTupleValue_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_NamedTupleValue_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_TensorSpecProto_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_TensorSpecProto_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_BoundedTensorSpecProto_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_BoundedTensorSpecProto_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_TypeSpecProto_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_TypeSpecProto_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n%tensorflow/core/protobuf/struct.proto\022" + + "\ntensorflow\032&tensorflow/core/framework/t" + + "ensor.proto\032,tensorflow/core/framework/t" + + "ensor_shape.proto\032%tensorflow/core/frame" + + "work/types.proto\"\361\005\n\017StructuredValue\022+\n\n" + + "none_value\030\001 \001(\0132\025.tensorflow.NoneValueH" + + "\000\022\027\n\rfloat64_value\030\013 \001(\001H\000\022\025\n\013int64_valu" + + "e\030\014 \001(\022H\000\022\026\n\014string_value\030\r \001(\tH\000\022\024\n\nboo" + + "l_value\030\016 \001(\010H\000\022:\n\022tensor_shape_value\030\037 " + + "\001(\0132\034.tensorflow.TensorShapeProtoH\000\0222\n\022t" + + "ensor_dtype_value\030 \001(\0162\024.tensorflow.Dat" + + "aTypeH\000\0228\n\021tensor_spec_value\030! \001(\0132\033.ten" + + "sorflow.TensorSpecProtoH\000\0224\n\017type_spec_v" + + "alue\030\" \001(\0132\031.tensorflow.TypeSpecProtoH\000\022" + + "G\n\031bounded_tensor_spec_value\030# \001(\0132\".ten" + + "sorflow.BoundedTensorSpecProtoH\000\022+\n\nlist" + + "_value\0303 \001(\0132\025.tensorflow.ListValueH\000\022-\n" + + "\013tuple_value\0304 \001(\0132\026.tensorflow.TupleVal" + + "ueH\000\022+\n\ndict_value\0305 \001(\0132\025.tensorflow.Di" + + "ctValueH\000\0228\n\021named_tuple_value\0306 \001(\0132\033.t" + + "ensorflow.NamedTupleValueH\000\022/\n\014tensor_va" + + "lue\0307 \001(\0132\027.tensorflow.TensorProtoH\000\022.\n\013" + + "numpy_value\0308 \001(\0132\027.tensorflow.TensorPro" + + "toH\000B\006\n\004kind\"\013\n\tNoneValue\"8\n\tListValue\022+" + + "\n\006values\030\001 \003(\0132\033.tensorflow.StructuredVa" + + "lue\"9\n\nTupleValue\022+\n\006values\030\001 \003(\0132\033.tens" + + "orflow.StructuredValue\"\212\001\n\tDictValue\0221\n\006" + + "fields\030\001 \003(\0132!.tensorflow.DictValue.Fiel" + + "dsEntry\032J\n\013FieldsEntry\022\013\n\003key\030\001 \001(\t\022*\n\005v" + + "alue\030\002 \001(\0132\033.tensorflow.StructuredValue:" + + "\0028\001\"D\n\tPairValue\022\013\n\003key\030\001 \001(\t\022*\n\005value\030\002" + + " \001(\0132\033.tensorflow.StructuredValue\"F\n\017Nam" + + "edTupleValue\022\014\n\004name\030\001 \001(\t\022%\n\006values\030\002 \003" + + "(\0132\025.tensorflow.PairValue\"q\n\017TensorSpecP" + + "roto\022\014\n\004name\030\001 \001(\t\022+\n\005shape\030\002 \001(\0132\034.tens" + + "orflow.TensorShapeProto\022#\n\005dtype\030\003 \001(\0162\024" + + ".tensorflow.DataType\"\314\001\n\026BoundedTensorSp" + + "ecProto\022\014\n\004name\030\001 \001(\t\022+\n\005shape\030\002 \001(\0132\034.t" + + "ensorflow.TensorShapeProto\022#\n\005dtype\030\003 \001(" + + "\0162\024.tensorflow.DataType\022(\n\007minimum\030\004 \001(\013" + + "2\027.tensorflow.TensorProto\022(\n\007maximum\030\005 \001" + + "(\0132\027.tensorflow.TensorProto\"\370\003\n\rTypeSpec" + + "Proto\022@\n\017type_spec_class\030\001 \001(\0162\'.tensorf" + + "low.TypeSpecProto.TypeSpecClass\022/\n\ntype_" + + "state\030\002 \001(\0132\033.tensorflow.StructuredValue" + + "\022\034\n\024type_spec_class_name\030\003 \001(\t\022\033\n\023num_fl" + + "at_components\030\004 \001(\005\"\270\002\n\rTypeSpecClass\022\013\n" + + "\007UNKNOWN\020\000\022\026\n\022SPARSE_TENSOR_SPEC\020\001\022\027\n\023IN" + + "DEXED_SLICES_SPEC\020\002\022\026\n\022RAGGED_TENSOR_SPE" + + "C\020\003\022\025\n\021TENSOR_ARRAY_SPEC\020\004\022\025\n\021DATA_DATAS" + + "ET_SPEC\020\005\022\026\n\022DATA_ITERATOR_SPEC\020\006\022\021\n\rOPT" + + "IONAL_SPEC\020\007\022\024\n\020PER_REPLICA_SPEC\020\010\022\021\n\rVA" + + "RIABLE_SPEC\020\t\022\026\n\022ROW_PARTITION_SPEC\020\n\022\030\n" + + "\024REGISTERED_TYPE_SPEC\020\014\022\027\n\023EXTENSION_TYP" + + "E_SPEC\020\r\"\004\010\013\020\013Bm\n\024org.tensorflow.protoZU" + + "github.com/tensorflow/tensorflow/tensorf" + + "low/go/core/protobuf/for_core_protos_go_" + + "protob\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + org.tensorflow.proto.TensorProtos.getDescriptor(), + org.tensorflow.proto.TensorShapeProtos.getDescriptor(), + org.tensorflow.proto.TypesProtos.getDescriptor(), + }); + internal_static_tensorflow_StructuredValue_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_StructuredValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_StructuredValue_descriptor, + new java.lang.String[] { "NoneValue", "Float64Value", "Int64Value", "StringValue", "BoolValue", "TensorShapeValue", "TensorDtypeValue", "TensorSpecValue", "TypeSpecValue", "BoundedTensorSpecValue", "ListValue", "TupleValue", "DictValue", "NamedTupleValue", "TensorValue", "NumpyValue", "Kind", }); + internal_static_tensorflow_NoneValue_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_tensorflow_NoneValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_NoneValue_descriptor, + new java.lang.String[] { }); + internal_static_tensorflow_ListValue_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_tensorflow_ListValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_ListValue_descriptor, + new java.lang.String[] { "Values", }); + internal_static_tensorflow_TupleValue_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_tensorflow_TupleValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_TupleValue_descriptor, + new java.lang.String[] { "Values", }); + internal_static_tensorflow_DictValue_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_tensorflow_DictValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_DictValue_descriptor, + new java.lang.String[] { "Fields", }); + internal_static_tensorflow_DictValue_FieldsEntry_descriptor = + internal_static_tensorflow_DictValue_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_DictValue_FieldsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_DictValue_FieldsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_tensorflow_PairValue_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_tensorflow_PairValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_PairValue_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_tensorflow_NamedTupleValue_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_tensorflow_NamedTupleValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_NamedTupleValue_descriptor, + new java.lang.String[] { "Name", "Values", }); + internal_static_tensorflow_TensorSpecProto_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_tensorflow_TensorSpecProto_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_TensorSpecProto_descriptor, + new java.lang.String[] { "Name", "Shape", "Dtype", }); + internal_static_tensorflow_BoundedTensorSpecProto_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_tensorflow_BoundedTensorSpecProto_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_BoundedTensorSpecProto_descriptor, + new java.lang.String[] { "Name", "Shape", "Dtype", "Minimum", "Maximum", }); + internal_static_tensorflow_TypeSpecProto_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_tensorflow_TypeSpecProto_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_TypeSpecProto_descriptor, + new java.lang.String[] { "TypeSpecClass", "TypeState", "TypeSpecClassName", "NumFlatComponents", }); + org.tensorflow.proto.TensorProtos.getDescriptor(); + org.tensorflow.proto.TensorShapeProtos.getDescriptor(); + org.tensorflow.proto.TypesProtos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Summary.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Summary.java new file mode 100644 index 00000000000..b0d93b6bf38 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/Summary.java @@ -0,0 +1,4854 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/summary.proto + +package org.tensorflow.proto; + +/** + *
+ * A Summary is a set of named values to be displayed by the
+ * visualizer.
+ * Summaries are produced regularly during training, as controlled by
+ * the "summary_interval_secs" attribute of the training operation.
+ * Summaries are also produced at the end of an evaluation.
+ * 
+ * + * Protobuf type {@code tensorflow.Summary} + */ +public final class Summary extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.Summary) + SummaryOrBuilder { +private static final long serialVersionUID = 0L; + // Use Summary.newBuilder() to construct. + private Summary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Summary() { + value_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Summary(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SummaryProtos.internal_static_tensorflow_Summary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SummaryProtos.internal_static_tensorflow_Summary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Summary.class, org.tensorflow.proto.Summary.Builder.class); + } + + public interface ImageOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.Summary.Image) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Dimensions of the image.
+     * 
+ * + * int32 height = 1; + * @return The height. + */ + int getHeight(); + + /** + * int32 width = 2; + * @return The width. + */ + int getWidth(); + + /** + *
+     * Valid colorspace values are
+     *   1 - grayscale
+     *   2 - grayscale + alpha
+     *   3 - RGB
+     *   4 - RGBA
+     *   5 - DIGITAL_YUV
+     *   6 - BGRA
+     * 
+ * + * int32 colorspace = 3; + * @return The colorspace. + */ + int getColorspace(); + + /** + *
+     * Image data in encoded format.  All image formats supported by
+     * image_codec::CoderUtil can be stored here.
+     * 
+ * + * bytes encoded_image_string = 4; + * @return The encodedImageString. + */ + com.google.protobuf.ByteString getEncodedImageString(); + } + /** + * Protobuf type {@code tensorflow.Summary.Image} + */ + public static final class Image extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.Summary.Image) + ImageOrBuilder { + private static final long serialVersionUID = 0L; + // Use Image.newBuilder() to construct. + private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Image() { + encodedImageString_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Image(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SummaryProtos.internal_static_tensorflow_Summary_Image_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SummaryProtos.internal_static_tensorflow_Summary_Image_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Summary.Image.class, org.tensorflow.proto.Summary.Image.Builder.class); + } + + public static final int HEIGHT_FIELD_NUMBER = 1; + private int height_; + /** + *
+     * Dimensions of the image.
+     * 
+ * + * int32 height = 1; + * @return The height. + */ + @java.lang.Override + public int getHeight() { + return height_; + } + + public static final int WIDTH_FIELD_NUMBER = 2; + private int width_; + /** + * int32 width = 2; + * @return The width. + */ + @java.lang.Override + public int getWidth() { + return width_; + } + + public static final int COLORSPACE_FIELD_NUMBER = 3; + private int colorspace_; + /** + *
+     * Valid colorspace values are
+     *   1 - grayscale
+     *   2 - grayscale + alpha
+     *   3 - RGB
+     *   4 - RGBA
+     *   5 - DIGITAL_YUV
+     *   6 - BGRA
+     * 
+ * + * int32 colorspace = 3; + * @return The colorspace. + */ + @java.lang.Override + public int getColorspace() { + return colorspace_; + } + + public static final int ENCODED_IMAGE_STRING_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString encodedImageString_; + /** + *
+     * Image data in encoded format.  All image formats supported by
+     * image_codec::CoderUtil can be stored here.
+     * 
+ * + * bytes encoded_image_string = 4; + * @return The encodedImageString. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncodedImageString() { + return encodedImageString_; + } + + 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 (height_ != 0) { + output.writeInt32(1, height_); + } + if (width_ != 0) { + output.writeInt32(2, width_); + } + if (colorspace_ != 0) { + output.writeInt32(3, colorspace_); + } + if (!encodedImageString_.isEmpty()) { + output.writeBytes(4, encodedImageString_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (height_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, height_); + } + if (width_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, width_); + } + if (colorspace_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, colorspace_); + } + if (!encodedImageString_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, encodedImageString_); + } + 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 org.tensorflow.proto.Summary.Image)) { + return super.equals(obj); + } + org.tensorflow.proto.Summary.Image other = (org.tensorflow.proto.Summary.Image) obj; + + if (getHeight() + != other.getHeight()) return false; + if (getWidth() + != other.getWidth()) return false; + if (getColorspace() + != other.getColorspace()) return false; + if (!getEncodedImageString() + .equals(other.getEncodedImageString())) 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) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + getHeight(); + hash = (37 * hash) + WIDTH_FIELD_NUMBER; + hash = (53 * hash) + getWidth(); + hash = (37 * hash) + COLORSPACE_FIELD_NUMBER; + hash = (53 * hash) + getColorspace(); + hash = (37 * hash) + ENCODED_IMAGE_STRING_FIELD_NUMBER; + hash = (53 * hash) + getEncodedImageString().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.Summary.Image parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Summary.Image parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Summary.Image parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Summary.Image parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Summary.Image parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Summary.Image parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Summary.Image parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Summary.Image 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 org.tensorflow.proto.Summary.Image parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Summary.Image 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 org.tensorflow.proto.Summary.Image parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Summary.Image 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(org.tensorflow.proto.Summary.Image prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.Summary.Image} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.Summary.Image) + org.tensorflow.proto.Summary.ImageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SummaryProtos.internal_static_tensorflow_Summary_Image_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SummaryProtos.internal_static_tensorflow_Summary_Image_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Summary.Image.class, org.tensorflow.proto.Summary.Image.Builder.class); + } + + // Construct using org.tensorflow.proto.Summary.Image.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + height_ = 0; + + width_ = 0; + + colorspace_ = 0; + + encodedImageString_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.SummaryProtos.internal_static_tensorflow_Summary_Image_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.Summary.Image getDefaultInstanceForType() { + return org.tensorflow.proto.Summary.Image.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.Summary.Image build() { + org.tensorflow.proto.Summary.Image result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.Summary.Image buildPartial() { + org.tensorflow.proto.Summary.Image result = new org.tensorflow.proto.Summary.Image(this); + result.height_ = height_; + result.width_ = width_; + result.colorspace_ = colorspace_; + result.encodedImageString_ = encodedImageString_; + 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 org.tensorflow.proto.Summary.Image) { + return mergeFrom((org.tensorflow.proto.Summary.Image)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.Summary.Image other) { + if (other == org.tensorflow.proto.Summary.Image.getDefaultInstance()) return this; + if (other.getHeight() != 0) { + setHeight(other.getHeight()); + } + if (other.getWidth() != 0) { + setWidth(other.getWidth()); + } + if (other.getColorspace() != 0) { + setColorspace(other.getColorspace()); + } + if (other.getEncodedImageString() != com.google.protobuf.ByteString.EMPTY) { + setEncodedImageString(other.getEncodedImageString()); + } + 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: { + height_ = input.readInt32(); + + break; + } // case 8 + case 16: { + width_ = input.readInt32(); + + break; + } // case 16 + case 24: { + colorspace_ = input.readInt32(); + + break; + } // case 24 + case 34: { + encodedImageString_ = input.readBytes(); + + break; + } // case 34 + 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 height_ ; + /** + *
+       * Dimensions of the image.
+       * 
+ * + * int32 height = 1; + * @return The height. + */ + @java.lang.Override + public int getHeight() { + return height_; + } + /** + *
+       * Dimensions of the image.
+       * 
+ * + * int32 height = 1; + * @param value The height to set. + * @return This builder for chaining. + */ + public Builder setHeight(int value) { + + height_ = value; + onChanged(); + return this; + } + /** + *
+       * Dimensions of the image.
+       * 
+ * + * int32 height = 1; + * @return This builder for chaining. + */ + public Builder clearHeight() { + + height_ = 0; + onChanged(); + return this; + } + + private int width_ ; + /** + * int32 width = 2; + * @return The width. + */ + @java.lang.Override + public int getWidth() { + return width_; + } + /** + * int32 width = 2; + * @param value The width to set. + * @return This builder for chaining. + */ + public Builder setWidth(int value) { + + width_ = value; + onChanged(); + return this; + } + /** + * int32 width = 2; + * @return This builder for chaining. + */ + public Builder clearWidth() { + + width_ = 0; + onChanged(); + return this; + } + + private int colorspace_ ; + /** + *
+       * Valid colorspace values are
+       *   1 - grayscale
+       *   2 - grayscale + alpha
+       *   3 - RGB
+       *   4 - RGBA
+       *   5 - DIGITAL_YUV
+       *   6 - BGRA
+       * 
+ * + * int32 colorspace = 3; + * @return The colorspace. + */ + @java.lang.Override + public int getColorspace() { + return colorspace_; + } + /** + *
+       * Valid colorspace values are
+       *   1 - grayscale
+       *   2 - grayscale + alpha
+       *   3 - RGB
+       *   4 - RGBA
+       *   5 - DIGITAL_YUV
+       *   6 - BGRA
+       * 
+ * + * int32 colorspace = 3; + * @param value The colorspace to set. + * @return This builder for chaining. + */ + public Builder setColorspace(int value) { + + colorspace_ = value; + onChanged(); + return this; + } + /** + *
+       * Valid colorspace values are
+       *   1 - grayscale
+       *   2 - grayscale + alpha
+       *   3 - RGB
+       *   4 - RGBA
+       *   5 - DIGITAL_YUV
+       *   6 - BGRA
+       * 
+ * + * int32 colorspace = 3; + * @return This builder for chaining. + */ + public Builder clearColorspace() { + + colorspace_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString encodedImageString_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * Image data in encoded format.  All image formats supported by
+       * image_codec::CoderUtil can be stored here.
+       * 
+ * + * bytes encoded_image_string = 4; + * @return The encodedImageString. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncodedImageString() { + return encodedImageString_; + } + /** + *
+       * Image data in encoded format.  All image formats supported by
+       * image_codec::CoderUtil can be stored here.
+       * 
+ * + * bytes encoded_image_string = 4; + * @param value The encodedImageString to set. + * @return This builder for chaining. + */ + public Builder setEncodedImageString(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + encodedImageString_ = value; + onChanged(); + return this; + } + /** + *
+       * Image data in encoded format.  All image formats supported by
+       * image_codec::CoderUtil can be stored here.
+       * 
+ * + * bytes encoded_image_string = 4; + * @return This builder for chaining. + */ + public Builder clearEncodedImageString() { + + encodedImageString_ = getDefaultInstance().getEncodedImageString(); + 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:tensorflow.Summary.Image) + } + + // @@protoc_insertion_point(class_scope:tensorflow.Summary.Image) + private static final org.tensorflow.proto.Summary.Image DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.Summary.Image(); + } + + public static org.tensorflow.proto.Summary.Image getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Image 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 org.tensorflow.proto.Summary.Image getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AudioOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.Summary.Audio) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Sample rate of the audio in Hz.
+     * 
+ * + * float sample_rate = 1; + * @return The sampleRate. + */ + float getSampleRate(); + + /** + *
+     * Number of channels of audio.
+     * 
+ * + * int64 num_channels = 2; + * @return The numChannels. + */ + long getNumChannels(); + + /** + *
+     * Length of the audio in frames (samples per channel).
+     * 
+ * + * int64 length_frames = 3; + * @return The lengthFrames. + */ + long getLengthFrames(); + + /** + *
+     * Encoded audio data and its associated RFC 2045 content type (e.g.
+     * "audio/wav").
+     * 
+ * + * bytes encoded_audio_string = 4; + * @return The encodedAudioString. + */ + com.google.protobuf.ByteString getEncodedAudioString(); + + /** + * string content_type = 5; + * @return The contentType. + */ + java.lang.String getContentType(); + /** + * string content_type = 5; + * @return The bytes for contentType. + */ + com.google.protobuf.ByteString + getContentTypeBytes(); + } + /** + * Protobuf type {@code tensorflow.Summary.Audio} + */ + public static final class Audio extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.Summary.Audio) + AudioOrBuilder { + private static final long serialVersionUID = 0L; + // Use Audio.newBuilder() to construct. + private Audio(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Audio() { + encodedAudioString_ = com.google.protobuf.ByteString.EMPTY; + contentType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Audio(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SummaryProtos.internal_static_tensorflow_Summary_Audio_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SummaryProtos.internal_static_tensorflow_Summary_Audio_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Summary.Audio.class, org.tensorflow.proto.Summary.Audio.Builder.class); + } + + public static final int SAMPLE_RATE_FIELD_NUMBER = 1; + private float sampleRate_; + /** + *
+     * Sample rate of the audio in Hz.
+     * 
+ * + * float sample_rate = 1; + * @return The sampleRate. + */ + @java.lang.Override + public float getSampleRate() { + return sampleRate_; + } + + public static final int NUM_CHANNELS_FIELD_NUMBER = 2; + private long numChannels_; + /** + *
+     * Number of channels of audio.
+     * 
+ * + * int64 num_channels = 2; + * @return The numChannels. + */ + @java.lang.Override + public long getNumChannels() { + return numChannels_; + } + + public static final int LENGTH_FRAMES_FIELD_NUMBER = 3; + private long lengthFrames_; + /** + *
+     * Length of the audio in frames (samples per channel).
+     * 
+ * + * int64 length_frames = 3; + * @return The lengthFrames. + */ + @java.lang.Override + public long getLengthFrames() { + return lengthFrames_; + } + + public static final int ENCODED_AUDIO_STRING_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString encodedAudioString_; + /** + *
+     * Encoded audio data and its associated RFC 2045 content type (e.g.
+     * "audio/wav").
+     * 
+ * + * bytes encoded_audio_string = 4; + * @return The encodedAudioString. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncodedAudioString() { + return encodedAudioString_; + } + + public static final int CONTENT_TYPE_FIELD_NUMBER = 5; + private volatile java.lang.Object contentType_; + /** + * string content_type = 5; + * @return The contentType. + */ + @java.lang.Override + public java.lang.String getContentType() { + java.lang.Object ref = contentType_; + 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(); + contentType_ = s; + return s; + } + } + /** + * string content_type = 5; + * @return The bytes for contentType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getContentTypeBytes() { + java.lang.Object ref = contentType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contentType_ = 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 (java.lang.Float.floatToRawIntBits(sampleRate_) != 0) { + output.writeFloat(1, sampleRate_); + } + if (numChannels_ != 0L) { + output.writeInt64(2, numChannels_); + } + if (lengthFrames_ != 0L) { + output.writeInt64(3, lengthFrames_); + } + if (!encodedAudioString_.isEmpty()) { + output.writeBytes(4, encodedAudioString_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, contentType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Float.floatToRawIntBits(sampleRate_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, sampleRate_); + } + if (numChannels_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, numChannels_); + } + if (lengthFrames_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, lengthFrames_); + } + if (!encodedAudioString_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, encodedAudioString_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, contentType_); + } + 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 org.tensorflow.proto.Summary.Audio)) { + return super.equals(obj); + } + org.tensorflow.proto.Summary.Audio other = (org.tensorflow.proto.Summary.Audio) obj; + + if (java.lang.Float.floatToIntBits(getSampleRate()) + != java.lang.Float.floatToIntBits( + other.getSampleRate())) return false; + if (getNumChannels() + != other.getNumChannels()) return false; + if (getLengthFrames() + != other.getLengthFrames()) return false; + if (!getEncodedAudioString() + .equals(other.getEncodedAudioString())) return false; + if (!getContentType() + .equals(other.getContentType())) 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) + SAMPLE_RATE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getSampleRate()); + hash = (37 * hash) + NUM_CHANNELS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNumChannels()); + hash = (37 * hash) + LENGTH_FRAMES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLengthFrames()); + hash = (37 * hash) + ENCODED_AUDIO_STRING_FIELD_NUMBER; + hash = (53 * hash) + getEncodedAudioString().hashCode(); + hash = (37 * hash) + CONTENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getContentType().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.Summary.Audio parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Summary.Audio parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Summary.Audio parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Summary.Audio parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Summary.Audio parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.Summary.Audio parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.Summary.Audio parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Summary.Audio 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 org.tensorflow.proto.Summary.Audio parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Summary.Audio 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 org.tensorflow.proto.Summary.Audio parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.Summary.Audio 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(org.tensorflow.proto.Summary.Audio prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.Summary.Audio} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.Summary.Audio) + org.tensorflow.proto.Summary.AudioOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SummaryProtos.internal_static_tensorflow_Summary_Audio_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SummaryProtos.internal_static_tensorflow_Summary_Audio_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.Summary.Audio.class, org.tensorflow.proto.Summary.Audio.Builder.class); + } + + // Construct using org.tensorflow.proto.Summary.Audio.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + sampleRate_ = 0F; + + numChannels_ = 0L; + + lengthFrames_ = 0L; + + encodedAudioString_ = com.google.protobuf.ByteString.EMPTY; + + contentType_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.SummaryProtos.internal_static_tensorflow_Summary_Audio_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.Summary.Audio getDefaultInstanceForType() { + return org.tensorflow.proto.Summary.Audio.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.Summary.Audio build() { + org.tensorflow.proto.Summary.Audio result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.Summary.Audio buildPartial() { + org.tensorflow.proto.Summary.Audio result = new org.tensorflow.proto.Summary.Audio(this); + result.sampleRate_ = sampleRate_; + result.numChannels_ = numChannels_; + result.lengthFrames_ = lengthFrames_; + result.encodedAudioString_ = encodedAudioString_; + result.contentType_ = contentType_; + 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 org.tensorflow.proto.Summary.Audio) { + return mergeFrom((org.tensorflow.proto.Summary.Audio)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.Summary.Audio other) { + if (other == org.tensorflow.proto.Summary.Audio.getDefaultInstance()) return this; + if (other.getSampleRate() != 0F) { + setSampleRate(other.getSampleRate()); + } + if (other.getNumChannels() != 0L) { + setNumChannels(other.getNumChannels()); + } + if (other.getLengthFrames() != 0L) { + setLengthFrames(other.getLengthFrames()); + } + if (other.getEncodedAudioString() != com.google.protobuf.ByteString.EMPTY) { + setEncodedAudioString(other.getEncodedAudioString()); + } + if (!other.getContentType().isEmpty()) { + contentType_ = other.contentType_; + 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 13: { + sampleRate_ = input.readFloat(); + + break; + } // case 13 + case 16: { + numChannels_ = input.readInt64(); + + break; + } // case 16 + case 24: { + lengthFrames_ = input.readInt64(); + + break; + } // case 24 + case 34: { + encodedAudioString_ = input.readBytes(); + + break; + } // case 34 + case 42: { + contentType_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private float sampleRate_ ; + /** + *
+       * Sample rate of the audio in Hz.
+       * 
+ * + * float sample_rate = 1; + * @return The sampleRate. + */ + @java.lang.Override + public float getSampleRate() { + return sampleRate_; + } + /** + *
+       * Sample rate of the audio in Hz.
+       * 
+ * + * float sample_rate = 1; + * @param value The sampleRate to set. + * @return This builder for chaining. + */ + public Builder setSampleRate(float value) { + + sampleRate_ = value; + onChanged(); + return this; + } + /** + *
+       * Sample rate of the audio in Hz.
+       * 
+ * + * float sample_rate = 1; + * @return This builder for chaining. + */ + public Builder clearSampleRate() { + + sampleRate_ = 0F; + onChanged(); + return this; + } + + private long numChannels_ ; + /** + *
+       * Number of channels of audio.
+       * 
+ * + * int64 num_channels = 2; + * @return The numChannels. + */ + @java.lang.Override + public long getNumChannels() { + return numChannels_; + } + /** + *
+       * Number of channels of audio.
+       * 
+ * + * int64 num_channels = 2; + * @param value The numChannels to set. + * @return This builder for chaining. + */ + public Builder setNumChannels(long value) { + + numChannels_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of channels of audio.
+       * 
+ * + * int64 num_channels = 2; + * @return This builder for chaining. + */ + public Builder clearNumChannels() { + + numChannels_ = 0L; + onChanged(); + return this; + } + + private long lengthFrames_ ; + /** + *
+       * Length of the audio in frames (samples per channel).
+       * 
+ * + * int64 length_frames = 3; + * @return The lengthFrames. + */ + @java.lang.Override + public long getLengthFrames() { + return lengthFrames_; + } + /** + *
+       * Length of the audio in frames (samples per channel).
+       * 
+ * + * int64 length_frames = 3; + * @param value The lengthFrames to set. + * @return This builder for chaining. + */ + public Builder setLengthFrames(long value) { + + lengthFrames_ = value; + onChanged(); + return this; + } + /** + *
+       * Length of the audio in frames (samples per channel).
+       * 
+ * + * int64 length_frames = 3; + * @return This builder for chaining. + */ + public Builder clearLengthFrames() { + + lengthFrames_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString encodedAudioString_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * Encoded audio data and its associated RFC 2045 content type (e.g.
+       * "audio/wav").
+       * 
+ * + * bytes encoded_audio_string = 4; + * @return The encodedAudioString. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncodedAudioString() { + return encodedAudioString_; + } + /** + *
+       * Encoded audio data and its associated RFC 2045 content type (e.g.
+       * "audio/wav").
+       * 
+ * + * bytes encoded_audio_string = 4; + * @param value The encodedAudioString to set. + * @return This builder for chaining. + */ + public Builder setEncodedAudioString(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + encodedAudioString_ = value; + onChanged(); + return this; + } + /** + *
+       * Encoded audio data and its associated RFC 2045 content type (e.g.
+       * "audio/wav").
+       * 
+ * + * bytes encoded_audio_string = 4; + * @return This builder for chaining. + */ + public Builder clearEncodedAudioString() { + + encodedAudioString_ = getDefaultInstance().getEncodedAudioString(); + onChanged(); + return this; + } + + private java.lang.Object contentType_ = ""; + /** + * string content_type = 5; + * @return The contentType. + */ + public java.lang.String getContentType() { + java.lang.Object ref = contentType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contentType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string content_type = 5; + * @return The bytes for contentType. + */ + public com.google.protobuf.ByteString + getContentTypeBytes() { + java.lang.Object ref = contentType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contentType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string content_type = 5; + * @param value The contentType to set. + * @return This builder for chaining. + */ + public Builder setContentType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + contentType_ = value; + onChanged(); + return this; + } + /** + * string content_type = 5; + * @return This builder for chaining. + */ + public Builder clearContentType() { + + contentType_ = getDefaultInstance().getContentType(); + onChanged(); + return this; + } + /** + * string content_type = 5; + * @param value The bytes for contentType to set. + * @return This builder for chaining. + */ + public Builder setContentTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + contentType_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.Summary.Audio) + } + + // @@protoc_insertion_point(class_scope:tensorflow.Summary.Audio) + private static final org.tensorflow.proto.Summary.Audio DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.Summary.Audio(); + } + + public static org.tensorflow.proto.Summary.Audio getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser
* * string type_hint = 1; + * @return The typeHint. */ java.lang.String getTypeHint(); /** @@ -23,6 +24,7 @@ public interface SummaryDescriptionOrBuilder extends * * * string type_hint = 1; + * @return The bytes for typeHint. */ com.google.protobuf.ByteString getTypeHintBytes(); diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SummaryMetadata.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SummaryMetadata.java new file mode 100644 index 00000000000..d14b7533c9b --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SummaryMetadata.java @@ -0,0 +1,1799 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/summary.proto + +package org.tensorflow.proto; + +/** + *
+ * A SummaryMetadata encapsulates information on which plugins are able to make
+ * use of a certain summary value.
+ * 
+ * + * Protobuf type {@code tensorflow.SummaryMetadata} + */ +public final class SummaryMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SummaryMetadata) + SummaryMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use SummaryMetadata.newBuilder() to construct. + private SummaryMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SummaryMetadata() { + displayName_ = ""; + summaryDescription_ = ""; + dataClass_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SummaryMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SummaryProtos.internal_static_tensorflow_SummaryMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SummaryProtos.internal_static_tensorflow_SummaryMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SummaryMetadata.class, org.tensorflow.proto.SummaryMetadata.Builder.class); + } + + public interface PluginDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.SummaryMetadata.PluginData) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The name of the plugin this data pertains to.
+     * 
+ * + * string plugin_name = 1; + * @return The pluginName. + */ + java.lang.String getPluginName(); + /** + *
+     * The name of the plugin this data pertains to.
+     * 
+ * + * string plugin_name = 1; + * @return The bytes for pluginName. + */ + com.google.protobuf.ByteString + getPluginNameBytes(); + + /** + *
+     * The content to store for the plugin. The best practice is for this to be
+     * a binary serialized protocol buffer.
+     * 
+ * + * bytes content = 2; + * @return The content. + */ + com.google.protobuf.ByteString getContent(); + } + /** + * Protobuf type {@code tensorflow.SummaryMetadata.PluginData} + */ + public static final class PluginData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.SummaryMetadata.PluginData) + PluginDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use PluginData.newBuilder() to construct. + private PluginData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PluginData() { + pluginName_ = ""; + content_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PluginData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SummaryProtos.internal_static_tensorflow_SummaryMetadata_PluginData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SummaryProtos.internal_static_tensorflow_SummaryMetadata_PluginData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SummaryMetadata.PluginData.class, org.tensorflow.proto.SummaryMetadata.PluginData.Builder.class); + } + + public static final int PLUGIN_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object pluginName_; + /** + *
+     * The name of the plugin this data pertains to.
+     * 
+ * + * string plugin_name = 1; + * @return The pluginName. + */ + @java.lang.Override + public java.lang.String getPluginName() { + java.lang.Object ref = pluginName_; + 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(); + pluginName_ = s; + return s; + } + } + /** + *
+     * The name of the plugin this data pertains to.
+     * 
+ * + * string plugin_name = 1; + * @return The bytes for pluginName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPluginNameBytes() { + java.lang.Object ref = pluginName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pluginName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString content_; + /** + *
+     * The content to store for the plugin. The best practice is for this to be
+     * a binary serialized protocol buffer.
+     * 
+ * + * bytes content = 2; + * @return The content. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContent() { + return content_; + } + + 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(pluginName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pluginName_); + } + if (!content_.isEmpty()) { + output.writeBytes(2, content_); + } + 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(pluginName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pluginName_); + } + if (!content_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, content_); + } + 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 org.tensorflow.proto.SummaryMetadata.PluginData)) { + return super.equals(obj); + } + org.tensorflow.proto.SummaryMetadata.PluginData other = (org.tensorflow.proto.SummaryMetadata.PluginData) obj; + + if (!getPluginName() + .equals(other.getPluginName())) return false; + if (!getContent() + .equals(other.getContent())) 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) + PLUGIN_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPluginName().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SummaryMetadata.PluginData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SummaryMetadata.PluginData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SummaryMetadata.PluginData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SummaryMetadata.PluginData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SummaryMetadata.PluginData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SummaryMetadata.PluginData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SummaryMetadata.PluginData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SummaryMetadata.PluginData 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 org.tensorflow.proto.SummaryMetadata.PluginData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SummaryMetadata.PluginData 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 org.tensorflow.proto.SummaryMetadata.PluginData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SummaryMetadata.PluginData 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(org.tensorflow.proto.SummaryMetadata.PluginData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.SummaryMetadata.PluginData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SummaryMetadata.PluginData) + org.tensorflow.proto.SummaryMetadata.PluginDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SummaryProtos.internal_static_tensorflow_SummaryMetadata_PluginData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SummaryProtos.internal_static_tensorflow_SummaryMetadata_PluginData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SummaryMetadata.PluginData.class, org.tensorflow.proto.SummaryMetadata.PluginData.Builder.class); + } + + // Construct using org.tensorflow.proto.SummaryMetadata.PluginData.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + pluginName_ = ""; + + content_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.SummaryProtos.internal_static_tensorflow_SummaryMetadata_PluginData_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SummaryMetadata.PluginData getDefaultInstanceForType() { + return org.tensorflow.proto.SummaryMetadata.PluginData.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SummaryMetadata.PluginData build() { + org.tensorflow.proto.SummaryMetadata.PluginData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SummaryMetadata.PluginData buildPartial() { + org.tensorflow.proto.SummaryMetadata.PluginData result = new org.tensorflow.proto.SummaryMetadata.PluginData(this); + result.pluginName_ = pluginName_; + result.content_ = content_; + 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 org.tensorflow.proto.SummaryMetadata.PluginData) { + return mergeFrom((org.tensorflow.proto.SummaryMetadata.PluginData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SummaryMetadata.PluginData other) { + if (other == org.tensorflow.proto.SummaryMetadata.PluginData.getDefaultInstance()) return this; + if (!other.getPluginName().isEmpty()) { + pluginName_ = other.pluginName_; + onChanged(); + } + if (other.getContent() != com.google.protobuf.ByteString.EMPTY) { + setContent(other.getContent()); + } + 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: { + pluginName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + content_ = input.readBytes(); + + 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 java.lang.Object pluginName_ = ""; + /** + *
+       * The name of the plugin this data pertains to.
+       * 
+ * + * string plugin_name = 1; + * @return The pluginName. + */ + public java.lang.String getPluginName() { + java.lang.Object ref = pluginName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pluginName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The name of the plugin this data pertains to.
+       * 
+ * + * string plugin_name = 1; + * @return The bytes for pluginName. + */ + public com.google.protobuf.ByteString + getPluginNameBytes() { + java.lang.Object ref = pluginName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pluginName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The name of the plugin this data pertains to.
+       * 
+ * + * string plugin_name = 1; + * @param value The pluginName to set. + * @return This builder for chaining. + */ + public Builder setPluginName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pluginName_ = value; + onChanged(); + return this; + } + /** + *
+       * The name of the plugin this data pertains to.
+       * 
+ * + * string plugin_name = 1; + * @return This builder for chaining. + */ + public Builder clearPluginName() { + + pluginName_ = getDefaultInstance().getPluginName(); + onChanged(); + return this; + } + /** + *
+       * The name of the plugin this data pertains to.
+       * 
+ * + * string plugin_name = 1; + * @param value The bytes for pluginName to set. + * @return This builder for chaining. + */ + public Builder setPluginNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pluginName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * The content to store for the plugin. The best practice is for this to be
+       * a binary serialized protocol buffer.
+       * 
+ * + * bytes content = 2; + * @return The content. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContent() { + return content_; + } + /** + *
+       * The content to store for the plugin. The best practice is for this to be
+       * a binary serialized protocol buffer.
+       * 
+ * + * bytes content = 2; + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + content_ = value; + onChanged(); + return this; + } + /** + *
+       * The content to store for the plugin. The best practice is for this to be
+       * a binary serialized protocol buffer.
+       * 
+ * + * bytes content = 2; + * @return This builder for chaining. + */ + public Builder clearContent() { + + content_ = getDefaultInstance().getContent(); + 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:tensorflow.SummaryMetadata.PluginData) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SummaryMetadata.PluginData) + private static final org.tensorflow.proto.SummaryMetadata.PluginData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SummaryMetadata.PluginData(); + } + + public static org.tensorflow.proto.SummaryMetadata.PluginData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PluginData 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 org.tensorflow.proto.SummaryMetadata.PluginData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int PLUGIN_DATA_FIELD_NUMBER = 1; + private org.tensorflow.proto.SummaryMetadata.PluginData pluginData_; + /** + *
+   * Data that associates a summary with a certain plugin.
+   * 
+ * + * .tensorflow.SummaryMetadata.PluginData plugin_data = 1; + * @return Whether the pluginData field is set. + */ + @java.lang.Override + public boolean hasPluginData() { + return pluginData_ != null; + } + /** + *
+   * Data that associates a summary with a certain plugin.
+   * 
+ * + * .tensorflow.SummaryMetadata.PluginData plugin_data = 1; + * @return The pluginData. + */ + @java.lang.Override + public org.tensorflow.proto.SummaryMetadata.PluginData getPluginData() { + return pluginData_ == null ? org.tensorflow.proto.SummaryMetadata.PluginData.getDefaultInstance() : pluginData_; + } + /** + *
+   * Data that associates a summary with a certain plugin.
+   * 
+ * + * .tensorflow.SummaryMetadata.PluginData plugin_data = 1; + */ + @java.lang.Override + public org.tensorflow.proto.SummaryMetadata.PluginDataOrBuilder getPluginDataOrBuilder() { + return getPluginData(); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + *
+   * Display name for viewing in TensorBoard.
+   * 
+ * + * string display_name = 2; + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + *
+   * Display name for viewing in TensorBoard.
+   * 
+ * + * string display_name = 2; + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUMMARY_DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object summaryDescription_; + /** + *
+   * Longform readable description of the summary sequence. Markdown supported.
+   * 
+ * + * string summary_description = 3; + * @return The summaryDescription. + */ + @java.lang.Override + public java.lang.String getSummaryDescription() { + java.lang.Object ref = summaryDescription_; + 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(); + summaryDescription_ = s; + return s; + } + } + /** + *
+   * Longform readable description of the summary sequence. Markdown supported.
+   * 
+ * + * string summary_description = 3; + * @return The bytes for summaryDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSummaryDescriptionBytes() { + java.lang.Object ref = summaryDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + summaryDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_CLASS_FIELD_NUMBER = 4; + private int dataClass_; + /** + *
+   * Class of data stored in this time series. Required for compatibility with
+   * TensorBoard's generic data facilities (`DataProvider`, et al.). This value
+   * imposes constraints on the dtype and shape of the corresponding tensor
+   * values. See `DataClass` docs for details.
+   * 
+ * + * .tensorflow.DataClass data_class = 4; + * @return The enum numeric value on the wire for dataClass. + */ + @java.lang.Override public int getDataClassValue() { + return dataClass_; + } + /** + *
+   * Class of data stored in this time series. Required for compatibility with
+   * TensorBoard's generic data facilities (`DataProvider`, et al.). This value
+   * imposes constraints on the dtype and shape of the corresponding tensor
+   * values. See `DataClass` docs for details.
+   * 
+ * + * .tensorflow.DataClass data_class = 4; + * @return The dataClass. + */ + @java.lang.Override public org.tensorflow.proto.DataClass getDataClass() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataClass result = org.tensorflow.proto.DataClass.valueOf(dataClass_); + return result == null ? org.tensorflow.proto.DataClass.UNRECOGNIZED : result; + } + + 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 (pluginData_ != null) { + output.writeMessage(1, getPluginData()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summaryDescription_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, summaryDescription_); + } + if (dataClass_ != org.tensorflow.proto.DataClass.DATA_CLASS_UNKNOWN.getNumber()) { + output.writeEnum(4, dataClass_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pluginData_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPluginData()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summaryDescription_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, summaryDescription_); + } + if (dataClass_ != org.tensorflow.proto.DataClass.DATA_CLASS_UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, dataClass_); + } + 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 org.tensorflow.proto.SummaryMetadata)) { + return super.equals(obj); + } + org.tensorflow.proto.SummaryMetadata other = (org.tensorflow.proto.SummaryMetadata) obj; + + if (hasPluginData() != other.hasPluginData()) return false; + if (hasPluginData()) { + if (!getPluginData() + .equals(other.getPluginData())) return false; + } + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getSummaryDescription() + .equals(other.getSummaryDescription())) return false; + if (dataClass_ != other.dataClass_) 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 (hasPluginData()) { + hash = (37 * hash) + PLUGIN_DATA_FIELD_NUMBER; + hash = (53 * hash) + getPluginData().hashCode(); + } + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + SUMMARY_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getSummaryDescription().hashCode(); + hash = (37 * hash) + DATA_CLASS_FIELD_NUMBER; + hash = (53 * hash) + dataClass_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.SummaryMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SummaryMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SummaryMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SummaryMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SummaryMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.SummaryMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.SummaryMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SummaryMetadata 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 org.tensorflow.proto.SummaryMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SummaryMetadata 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 org.tensorflow.proto.SummaryMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.SummaryMetadata 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(org.tensorflow.proto.SummaryMetadata 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; + } + /** + *
+   * A SummaryMetadata encapsulates information on which plugins are able to make
+   * use of a certain summary value.
+   * 
+ * + * Protobuf type {@code tensorflow.SummaryMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.SummaryMetadata) + org.tensorflow.proto.SummaryMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.SummaryProtos.internal_static_tensorflow_SummaryMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.SummaryProtos.internal_static_tensorflow_SummaryMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.SummaryMetadata.class, org.tensorflow.proto.SummaryMetadata.Builder.class); + } + + // Construct using org.tensorflow.proto.SummaryMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (pluginDataBuilder_ == null) { + pluginData_ = null; + } else { + pluginData_ = null; + pluginDataBuilder_ = null; + } + displayName_ = ""; + + summaryDescription_ = ""; + + dataClass_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.SummaryProtos.internal_static_tensorflow_SummaryMetadata_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.SummaryMetadata getDefaultInstanceForType() { + return org.tensorflow.proto.SummaryMetadata.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.SummaryMetadata build() { + org.tensorflow.proto.SummaryMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.SummaryMetadata buildPartial() { + org.tensorflow.proto.SummaryMetadata result = new org.tensorflow.proto.SummaryMetadata(this); + if (pluginDataBuilder_ == null) { + result.pluginData_ = pluginData_; + } else { + result.pluginData_ = pluginDataBuilder_.build(); + } + result.displayName_ = displayName_; + result.summaryDescription_ = summaryDescription_; + result.dataClass_ = dataClass_; + 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 org.tensorflow.proto.SummaryMetadata) { + return mergeFrom((org.tensorflow.proto.SummaryMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.SummaryMetadata other) { + if (other == org.tensorflow.proto.SummaryMetadata.getDefaultInstance()) return this; + if (other.hasPluginData()) { + mergePluginData(other.getPluginData()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getSummaryDescription().isEmpty()) { + summaryDescription_ = other.summaryDescription_; + onChanged(); + } + if (other.dataClass_ != 0) { + setDataClassValue(other.getDataClassValue()); + } + 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( + getPluginDataFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + summaryDescription_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + dataClass_ = input.readEnum(); + + break; + } // case 32 + 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 org.tensorflow.proto.SummaryMetadata.PluginData pluginData_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SummaryMetadata.PluginData, org.tensorflow.proto.SummaryMetadata.PluginData.Builder, org.tensorflow.proto.SummaryMetadata.PluginDataOrBuilder> pluginDataBuilder_; + /** + *
+     * Data that associates a summary with a certain plugin.
+     * 
+ * + * .tensorflow.SummaryMetadata.PluginData plugin_data = 1; + * @return Whether the pluginData field is set. + */ + public boolean hasPluginData() { + return pluginDataBuilder_ != null || pluginData_ != null; + } + /** + *
+     * Data that associates a summary with a certain plugin.
+     * 
+ * + * .tensorflow.SummaryMetadata.PluginData plugin_data = 1; + * @return The pluginData. + */ + public org.tensorflow.proto.SummaryMetadata.PluginData getPluginData() { + if (pluginDataBuilder_ == null) { + return pluginData_ == null ? org.tensorflow.proto.SummaryMetadata.PluginData.getDefaultInstance() : pluginData_; + } else { + return pluginDataBuilder_.getMessage(); + } + } + /** + *
+     * Data that associates a summary with a certain plugin.
+     * 
+ * + * .tensorflow.SummaryMetadata.PluginData plugin_data = 1; + */ + public Builder setPluginData(org.tensorflow.proto.SummaryMetadata.PluginData value) { + if (pluginDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pluginData_ = value; + onChanged(); + } else { + pluginDataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Data that associates a summary with a certain plugin.
+     * 
+ * + * .tensorflow.SummaryMetadata.PluginData plugin_data = 1; + */ + public Builder setPluginData( + org.tensorflow.proto.SummaryMetadata.PluginData.Builder builderForValue) { + if (pluginDataBuilder_ == null) { + pluginData_ = builderForValue.build(); + onChanged(); + } else { + pluginDataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Data that associates a summary with a certain plugin.
+     * 
+ * + * .tensorflow.SummaryMetadata.PluginData plugin_data = 1; + */ + public Builder mergePluginData(org.tensorflow.proto.SummaryMetadata.PluginData value) { + if (pluginDataBuilder_ == null) { + if (pluginData_ != null) { + pluginData_ = + org.tensorflow.proto.SummaryMetadata.PluginData.newBuilder(pluginData_).mergeFrom(value).buildPartial(); + } else { + pluginData_ = value; + } + onChanged(); + } else { + pluginDataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Data that associates a summary with a certain plugin.
+     * 
+ * + * .tensorflow.SummaryMetadata.PluginData plugin_data = 1; + */ + public Builder clearPluginData() { + if (pluginDataBuilder_ == null) { + pluginData_ = null; + onChanged(); + } else { + pluginData_ = null; + pluginDataBuilder_ = null; + } + + return this; + } + /** + *
+     * Data that associates a summary with a certain plugin.
+     * 
+ * + * .tensorflow.SummaryMetadata.PluginData plugin_data = 1; + */ + public org.tensorflow.proto.SummaryMetadata.PluginData.Builder getPluginDataBuilder() { + + onChanged(); + return getPluginDataFieldBuilder().getBuilder(); + } + /** + *
+     * Data that associates a summary with a certain plugin.
+     * 
+ * + * .tensorflow.SummaryMetadata.PluginData plugin_data = 1; + */ + public org.tensorflow.proto.SummaryMetadata.PluginDataOrBuilder getPluginDataOrBuilder() { + if (pluginDataBuilder_ != null) { + return pluginDataBuilder_.getMessageOrBuilder(); + } else { + return pluginData_ == null ? + org.tensorflow.proto.SummaryMetadata.PluginData.getDefaultInstance() : pluginData_; + } + } + /** + *
+     * Data that associates a summary with a certain plugin.
+     * 
+ * + * .tensorflow.SummaryMetadata.PluginData plugin_data = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SummaryMetadata.PluginData, org.tensorflow.proto.SummaryMetadata.PluginData.Builder, org.tensorflow.proto.SummaryMetadata.PluginDataOrBuilder> + getPluginDataFieldBuilder() { + if (pluginDataBuilder_ == null) { + pluginDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SummaryMetadata.PluginData, org.tensorflow.proto.SummaryMetadata.PluginData.Builder, org.tensorflow.proto.SummaryMetadata.PluginDataOrBuilder>( + getPluginData(), + getParentForChildren(), + isClean()); + pluginData_ = null; + } + return pluginDataBuilder_; + } + + private java.lang.Object displayName_ = ""; + /** + *
+     * Display name for viewing in TensorBoard.
+     * 
+ * + * string display_name = 2; + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Display name for viewing in TensorBoard.
+     * 
+ * + * string display_name = 2; + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Display name for viewing in TensorBoard.
+     * 
+ * + * string display_name = 2; + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + *
+     * Display name for viewing in TensorBoard.
+     * 
+ * + * string display_name = 2; + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + *
+     * Display name for viewing in TensorBoard.
+     * 
+ * + * string display_name = 2; + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object summaryDescription_ = ""; + /** + *
+     * Longform readable description of the summary sequence. Markdown supported.
+     * 
+ * + * string summary_description = 3; + * @return The summaryDescription. + */ + public java.lang.String getSummaryDescription() { + java.lang.Object ref = summaryDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summaryDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Longform readable description of the summary sequence. Markdown supported.
+     * 
+ * + * string summary_description = 3; + * @return The bytes for summaryDescription. + */ + public com.google.protobuf.ByteString + getSummaryDescriptionBytes() { + java.lang.Object ref = summaryDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + summaryDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Longform readable description of the summary sequence. Markdown supported.
+     * 
+ * + * string summary_description = 3; + * @param value The summaryDescription to set. + * @return This builder for chaining. + */ + public Builder setSummaryDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + summaryDescription_ = value; + onChanged(); + return this; + } + /** + *
+     * Longform readable description of the summary sequence. Markdown supported.
+     * 
+ * + * string summary_description = 3; + * @return This builder for chaining. + */ + public Builder clearSummaryDescription() { + + summaryDescription_ = getDefaultInstance().getSummaryDescription(); + onChanged(); + return this; + } + /** + *
+     * Longform readable description of the summary sequence. Markdown supported.
+     * 
+ * + * string summary_description = 3; + * @param value The bytes for summaryDescription to set. + * @return This builder for chaining. + */ + public Builder setSummaryDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + summaryDescription_ = value; + onChanged(); + return this; + } + + private int dataClass_ = 0; + /** + *
+     * Class of data stored in this time series. Required for compatibility with
+     * TensorBoard's generic data facilities (`DataProvider`, et al.). This value
+     * imposes constraints on the dtype and shape of the corresponding tensor
+     * values. See `DataClass` docs for details.
+     * 
+ * + * .tensorflow.DataClass data_class = 4; + * @return The enum numeric value on the wire for dataClass. + */ + @java.lang.Override public int getDataClassValue() { + return dataClass_; + } + /** + *
+     * Class of data stored in this time series. Required for compatibility with
+     * TensorBoard's generic data facilities (`DataProvider`, et al.). This value
+     * imposes constraints on the dtype and shape of the corresponding tensor
+     * values. See `DataClass` docs for details.
+     * 
+ * + * .tensorflow.DataClass data_class = 4; + * @param value The enum numeric value on the wire for dataClass to set. + * @return This builder for chaining. + */ + public Builder setDataClassValue(int value) { + + dataClass_ = value; + onChanged(); + return this; + } + /** + *
+     * Class of data stored in this time series. Required for compatibility with
+     * TensorBoard's generic data facilities (`DataProvider`, et al.). This value
+     * imposes constraints on the dtype and shape of the corresponding tensor
+     * values. See `DataClass` docs for details.
+     * 
+ * + * .tensorflow.DataClass data_class = 4; + * @return The dataClass. + */ + @java.lang.Override + public org.tensorflow.proto.DataClass getDataClass() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataClass result = org.tensorflow.proto.DataClass.valueOf(dataClass_); + return result == null ? org.tensorflow.proto.DataClass.UNRECOGNIZED : result; + } + /** + *
+     * Class of data stored in this time series. Required for compatibility with
+     * TensorBoard's generic data facilities (`DataProvider`, et al.). This value
+     * imposes constraints on the dtype and shape of the corresponding tensor
+     * values. See `DataClass` docs for details.
+     * 
+ * + * .tensorflow.DataClass data_class = 4; + * @param value The dataClass to set. + * @return This builder for chaining. + */ + public Builder setDataClass(org.tensorflow.proto.DataClass value) { + if (value == null) { + throw new NullPointerException(); + } + + dataClass_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Class of data stored in this time series. Required for compatibility with
+     * TensorBoard's generic data facilities (`DataProvider`, et al.). This value
+     * imposes constraints on the dtype and shape of the corresponding tensor
+     * values. See `DataClass` docs for details.
+     * 
+ * + * .tensorflow.DataClass data_class = 4; + * @return This builder for chaining. + */ + public Builder clearDataClass() { + + dataClass_ = 0; + 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:tensorflow.SummaryMetadata) + } + + // @@protoc_insertion_point(class_scope:tensorflow.SummaryMetadata) + private static final org.tensorflow.proto.SummaryMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.SummaryMetadata(); + } + + public static org.tensorflow.proto.SummaryMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SummaryMetadata 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 org.tensorflow.proto.SummaryMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SummaryMetadataOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SummaryMetadataOrBuilder.java similarity index 81% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SummaryMetadataOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SummaryMetadataOrBuilder.java index 9fd35f7d1de..32ad558348a 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SummaryMetadataOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SummaryMetadataOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/summary.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface SummaryMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.SummaryMetadata) @@ -13,6 +13,7 @@ public interface SummaryMetadataOrBuilder extends * * * .tensorflow.SummaryMetadata.PluginData plugin_data = 1; + * @return Whether the pluginData field is set. */ boolean hasPluginData(); /** @@ -21,8 +22,9 @@ public interface SummaryMetadataOrBuilder extends * * * .tensorflow.SummaryMetadata.PluginData plugin_data = 1; + * @return The pluginData. */ - org.tensorflow.proto.framework.SummaryMetadata.PluginData getPluginData(); + org.tensorflow.proto.SummaryMetadata.PluginData getPluginData(); /** *
    * Data that associates a summary with a certain plugin.
@@ -30,7 +32,7 @@ public interface SummaryMetadataOrBuilder extends
    *
    * .tensorflow.SummaryMetadata.PluginData plugin_data = 1;
    */
-  org.tensorflow.proto.framework.SummaryMetadata.PluginDataOrBuilder getPluginDataOrBuilder();
+  org.tensorflow.proto.SummaryMetadata.PluginDataOrBuilder getPluginDataOrBuilder();
 
   /**
    * 
@@ -38,6 +40,7 @@ public interface SummaryMetadataOrBuilder extends
    * 
* * string display_name = 2; + * @return The displayName. */ java.lang.String getDisplayName(); /** @@ -46,6 +49,7 @@ public interface SummaryMetadataOrBuilder extends *
* * string display_name = 2; + * @return The bytes for displayName. */ com.google.protobuf.ByteString getDisplayNameBytes(); @@ -56,6 +60,7 @@ public interface SummaryMetadataOrBuilder extends * * * string summary_description = 3; + * @return The summaryDescription. */ java.lang.String getSummaryDescription(); /** @@ -64,6 +69,7 @@ public interface SummaryMetadataOrBuilder extends * * * string summary_description = 3; + * @return The bytes for summaryDescription. */ com.google.protobuf.ByteString getSummaryDescriptionBytes(); @@ -77,6 +83,7 @@ public interface SummaryMetadataOrBuilder extends * * * .tensorflow.DataClass data_class = 4; + * @return The enum numeric value on the wire for dataClass. */ int getDataClassValue(); /** @@ -88,6 +95,7 @@ public interface SummaryMetadataOrBuilder extends * * * .tensorflow.DataClass data_class = 4; + * @return The dataClass. */ - org.tensorflow.proto.framework.DataClass getDataClass(); + org.tensorflow.proto.DataClass getDataClass(); } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SummaryOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SummaryOrBuilder.java similarity index 76% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SummaryOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SummaryOrBuilder.java index 09de7983ac5..86541730107 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/SummaryOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SummaryOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/summary.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface SummaryOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.Summary) @@ -14,7 +14,7 @@ public interface SummaryOrBuilder extends * * repeated .tensorflow.Summary.Value value = 1; */ - java.util.List + java.util.List getValueList(); /** *
@@ -23,7 +23,7 @@ public interface SummaryOrBuilder extends
    *
    * repeated .tensorflow.Summary.Value value = 1;
    */
-  org.tensorflow.proto.framework.Summary.Value getValue(int index);
+  org.tensorflow.proto.Summary.Value getValue(int index);
   /**
    * 
    * Set of values for the summary.
@@ -39,7 +39,7 @@ public interface SummaryOrBuilder extends
    *
    * repeated .tensorflow.Summary.Value value = 1;
    */
-  java.util.List 
+  java.util.List 
       getValueOrBuilderList();
   /**
    * 
@@ -48,6 +48,6 @@ public interface SummaryOrBuilder extends
    *
    * repeated .tensorflow.Summary.Value value = 1;
    */
-  org.tensorflow.proto.framework.Summary.ValueOrBuilder getValueOrBuilder(
+  org.tensorflow.proto.Summary.ValueOrBuilder getValueOrBuilder(
       int index);
 }
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SummaryProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SummaryProtos.java
new file mode 100644
index 00000000000..2a414110ba4
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/SummaryProtos.java
@@ -0,0 +1,147 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/framework/summary.proto
+
+package org.tensorflow.proto;
+
+public final class SummaryProtos {
+  private SummaryProtos() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_SummaryDescription_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_SummaryDescription_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_SummaryMetadata_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_SummaryMetadata_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_SummaryMetadata_PluginData_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_SummaryMetadata_PluginData_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_Summary_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_Summary_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_Summary_Image_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_Summary_Image_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_Summary_Audio_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_Summary_Audio_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_Summary_Value_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_Summary_Value_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n\'tensorflow/core/framework/summary.prot" +
+      "o\022\ntensorflow\032\'tensorflow/tsl/protobuf/h" +
+      "istogram.proto\032&tensorflow/core/framewor" +
+      "k/tensor.proto\"\'\n\022SummaryDescription\022\021\n\t" +
+      "type_hint\030\001 \001(\t\"\340\001\n\017SummaryMetadata\022;\n\013p" +
+      "lugin_data\030\001 \001(\0132&.tensorflow.SummaryMet" +
+      "adata.PluginData\022\024\n\014display_name\030\002 \001(\t\022\033" +
+      "\n\023summary_description\030\003 \001(\t\022)\n\ndata_clas" +
+      "s\030\004 \001(\0162\025.tensorflow.DataClass\0322\n\nPlugin" +
+      "Data\022\023\n\013plugin_name\030\001 \001(\t\022\017\n\007content\030\002 \001" +
+      "(\014\"\336\004\n\007Summary\022(\n\005value\030\001 \003(\0132\031.tensorfl" +
+      "ow.Summary.Value\032X\n\005Image\022\016\n\006height\030\001 \001(" +
+      "\005\022\r\n\005width\030\002 \001(\005\022\022\n\ncolorspace\030\003 \001(\005\022\034\n\024" +
+      "encoded_image_string\030\004 \001(\014\032}\n\005Audio\022\023\n\013s" +
+      "ample_rate\030\001 \001(\002\022\024\n\014num_channels\030\002 \001(\003\022\025" +
+      "\n\rlength_frames\030\003 \001(\003\022\034\n\024encoded_audio_s" +
+      "tring\030\004 \001(\014\022\024\n\014content_type\030\005 \001(\t\032\317\002\n\005Va" +
+      "lue\022\021\n\tnode_name\030\007 \001(\t\022\013\n\003tag\030\001 \001(\t\022-\n\010m" +
+      "etadata\030\t \001(\0132\033.tensorflow.SummaryMetada" +
+      "ta\022\026\n\014simple_value\030\002 \001(\002H\000\022&\n\034obsolete_o" +
+      "ld_style_histogram\030\003 \001(\014H\000\022*\n\005image\030\004 \001(" +
+      "\0132\031.tensorflow.Summary.ImageH\000\022+\n\005histo\030" +
+      "\005 \001(\0132\032.tensorflow.HistogramProtoH\000\022*\n\005a" +
+      "udio\030\006 \001(\0132\031.tensorflow.Summary.AudioH\000\022" +
+      ")\n\006tensor\030\010 \001(\0132\027.tensorflow.TensorProto" +
+      "H\000B\007\n\005value*o\n\tDataClass\022\026\n\022DATA_CLASS_U" +
+      "NKNOWN\020\000\022\025\n\021DATA_CLASS_SCALAR\020\001\022\025\n\021DATA_" +
+      "CLASS_TENSOR\020\002\022\034\n\030DATA_CLASS_BLOB_SEQUEN" +
+      "CE\020\003Bz\n\024org.tensorflow.protoB\rSummaryPro" +
+      "tosP\001ZNgithub.com/tensorflow/tensorflow/" +
+      "tensorflow/go/core/framework/summary_go_" +
+      "proto\370\001\001P\000b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          org.tensorflow.proto.Histogram.getDescriptor(),
+          org.tensorflow.proto.TensorProtos.getDescriptor(),
+        });
+    internal_static_tensorflow_SummaryDescription_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_tensorflow_SummaryDescription_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_SummaryDescription_descriptor,
+        new java.lang.String[] { "TypeHint", });
+    internal_static_tensorflow_SummaryMetadata_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_tensorflow_SummaryMetadata_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_SummaryMetadata_descriptor,
+        new java.lang.String[] { "PluginData", "DisplayName", "SummaryDescription", "DataClass", });
+    internal_static_tensorflow_SummaryMetadata_PluginData_descriptor =
+      internal_static_tensorflow_SummaryMetadata_descriptor.getNestedTypes().get(0);
+    internal_static_tensorflow_SummaryMetadata_PluginData_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_SummaryMetadata_PluginData_descriptor,
+        new java.lang.String[] { "PluginName", "Content", });
+    internal_static_tensorflow_Summary_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_tensorflow_Summary_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_Summary_descriptor,
+        new java.lang.String[] { "Value", });
+    internal_static_tensorflow_Summary_Image_descriptor =
+      internal_static_tensorflow_Summary_descriptor.getNestedTypes().get(0);
+    internal_static_tensorflow_Summary_Image_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_Summary_Image_descriptor,
+        new java.lang.String[] { "Height", "Width", "Colorspace", "EncodedImageString", });
+    internal_static_tensorflow_Summary_Audio_descriptor =
+      internal_static_tensorflow_Summary_descriptor.getNestedTypes().get(1);
+    internal_static_tensorflow_Summary_Audio_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_Summary_Audio_descriptor,
+        new java.lang.String[] { "SampleRate", "NumChannels", "LengthFrames", "EncodedAudioString", "ContentType", });
+    internal_static_tensorflow_Summary_Value_descriptor =
+      internal_static_tensorflow_Summary_descriptor.getNestedTypes().get(2);
+    internal_static_tensorflow_Summary_Value_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_Summary_Value_descriptor,
+        new java.lang.String[] { "NodeName", "Tag", "Metadata", "SimpleValue", "ObsoleteOldStyleHistogram", "Image", "Histo", "Audio", "Tensor", "Value", });
+    org.tensorflow.proto.Histogram.getDescriptor();
+    org.tensorflow.proto.TensorProtos.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TaggedRunMetadata.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TaggedRunMetadata.java
new file mode 100644
index 00000000000..8a93093963e
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TaggedRunMetadata.java
@@ -0,0 +1,662 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/util/event.proto
+
+package org.tensorflow.proto;
+
+/**
+ * 
+ * For logging the metadata output for a single session.run() call.
+ * 
+ * + * Protobuf type {@code tensorflow.TaggedRunMetadata} + */ +public final class TaggedRunMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.TaggedRunMetadata) + TaggedRunMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use TaggedRunMetadata.newBuilder() to construct. + private TaggedRunMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaggedRunMetadata() { + tag_ = ""; + runMetadata_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TaggedRunMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_TaggedRunMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_TaggedRunMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TaggedRunMetadata.class, org.tensorflow.proto.TaggedRunMetadata.Builder.class); + } + + public static final int TAG_FIELD_NUMBER = 1; + private volatile java.lang.Object tag_; + /** + *
+   * Tag name associated with this metadata.
+   * 
+ * + * string tag = 1; + * @return The tag. + */ + @java.lang.Override + public java.lang.String getTag() { + java.lang.Object ref = tag_; + 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(); + tag_ = s; + return s; + } + } + /** + *
+   * Tag name associated with this metadata.
+   * 
+ * + * string tag = 1; + * @return The bytes for tag. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTagBytes() { + java.lang.Object ref = tag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RUN_METADATA_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString runMetadata_; + /** + *
+   * Byte-encoded version of the `RunMetadata` proto in order to allow lazy
+   * deserialization.
+   * 
+ * + * bytes run_metadata = 2; + * @return The runMetadata. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRunMetadata() { + return runMetadata_; + } + + 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(tag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tag_); + } + if (!runMetadata_.isEmpty()) { + output.writeBytes(2, runMetadata_); + } + 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(tag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tag_); + } + if (!runMetadata_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, runMetadata_); + } + 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 org.tensorflow.proto.TaggedRunMetadata)) { + return super.equals(obj); + } + org.tensorflow.proto.TaggedRunMetadata other = (org.tensorflow.proto.TaggedRunMetadata) obj; + + if (!getTag() + .equals(other.getTag())) return false; + if (!getRunMetadata() + .equals(other.getRunMetadata())) 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) + TAG_FIELD_NUMBER; + hash = (53 * hash) + getTag().hashCode(); + hash = (37 * hash) + RUN_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getRunMetadata().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.TaggedRunMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TaggedRunMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TaggedRunMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TaggedRunMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TaggedRunMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TaggedRunMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TaggedRunMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TaggedRunMetadata 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 org.tensorflow.proto.TaggedRunMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TaggedRunMetadata 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 org.tensorflow.proto.TaggedRunMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TaggedRunMetadata 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(org.tensorflow.proto.TaggedRunMetadata 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; + } + /** + *
+   * For logging the metadata output for a single session.run() call.
+   * 
+ * + * Protobuf type {@code tensorflow.TaggedRunMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.TaggedRunMetadata) + org.tensorflow.proto.TaggedRunMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_TaggedRunMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_TaggedRunMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TaggedRunMetadata.class, org.tensorflow.proto.TaggedRunMetadata.Builder.class); + } + + // Construct using org.tensorflow.proto.TaggedRunMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + tag_ = ""; + + runMetadata_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_TaggedRunMetadata_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.TaggedRunMetadata getDefaultInstanceForType() { + return org.tensorflow.proto.TaggedRunMetadata.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.TaggedRunMetadata build() { + org.tensorflow.proto.TaggedRunMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.TaggedRunMetadata buildPartial() { + org.tensorflow.proto.TaggedRunMetadata result = new org.tensorflow.proto.TaggedRunMetadata(this); + result.tag_ = tag_; + result.runMetadata_ = runMetadata_; + 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 org.tensorflow.proto.TaggedRunMetadata) { + return mergeFrom((org.tensorflow.proto.TaggedRunMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.TaggedRunMetadata other) { + if (other == org.tensorflow.proto.TaggedRunMetadata.getDefaultInstance()) return this; + if (!other.getTag().isEmpty()) { + tag_ = other.tag_; + onChanged(); + } + if (other.getRunMetadata() != com.google.protobuf.ByteString.EMPTY) { + setRunMetadata(other.getRunMetadata()); + } + 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: { + tag_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + runMetadata_ = input.readBytes(); + + 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 java.lang.Object tag_ = ""; + /** + *
+     * Tag name associated with this metadata.
+     * 
+ * + * string tag = 1; + * @return The tag. + */ + public java.lang.String getTag() { + java.lang.Object ref = tag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Tag name associated with this metadata.
+     * 
+ * + * string tag = 1; + * @return The bytes for tag. + */ + public com.google.protobuf.ByteString + getTagBytes() { + java.lang.Object ref = tag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Tag name associated with this metadata.
+     * 
+ * + * string tag = 1; + * @param value The tag to set. + * @return This builder for chaining. + */ + public Builder setTag( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tag_ = value; + onChanged(); + return this; + } + /** + *
+     * Tag name associated with this metadata.
+     * 
+ * + * string tag = 1; + * @return This builder for chaining. + */ + public Builder clearTag() { + + tag_ = getDefaultInstance().getTag(); + onChanged(); + return this; + } + /** + *
+     * Tag name associated with this metadata.
+     * 
+ * + * string tag = 1; + * @param value The bytes for tag to set. + * @return This builder for chaining. + */ + public Builder setTagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tag_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString runMetadata_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * Byte-encoded version of the `RunMetadata` proto in order to allow lazy
+     * deserialization.
+     * 
+ * + * bytes run_metadata = 2; + * @return The runMetadata. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRunMetadata() { + return runMetadata_; + } + /** + *
+     * Byte-encoded version of the `RunMetadata` proto in order to allow lazy
+     * deserialization.
+     * 
+ * + * bytes run_metadata = 2; + * @param value The runMetadata to set. + * @return This builder for chaining. + */ + public Builder setRunMetadata(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + runMetadata_ = value; + onChanged(); + return this; + } + /** + *
+     * Byte-encoded version of the `RunMetadata` proto in order to allow lazy
+     * deserialization.
+     * 
+ * + * bytes run_metadata = 2; + * @return This builder for chaining. + */ + public Builder clearRunMetadata() { + + runMetadata_ = getDefaultInstance().getRunMetadata(); + 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:tensorflow.TaggedRunMetadata) + } + + // @@protoc_insertion_point(class_scope:tensorflow.TaggedRunMetadata) + private static final org.tensorflow.proto.TaggedRunMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.TaggedRunMetadata(); + } + + public static org.tensorflow.proto.TaggedRunMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaggedRunMetadata 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 org.tensorflow.proto.TaggedRunMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/TaggedRunMetadataOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TaggedRunMetadataOrBuilder.java similarity index 88% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/TaggedRunMetadataOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TaggedRunMetadataOrBuilder.java index d364543215c..00393483d2f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/TaggedRunMetadataOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TaggedRunMetadataOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/util/event.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; public interface TaggedRunMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.TaggedRunMetadata) @@ -13,6 +13,7 @@ public interface TaggedRunMetadataOrBuilder extends *
* * string tag = 1; + * @return The tag. */ java.lang.String getTag(); /** @@ -21,6 +22,7 @@ public interface TaggedRunMetadataOrBuilder extends *
* * string tag = 1; + * @return The bytes for tag. */ com.google.protobuf.ByteString getTagBytes(); @@ -32,6 +34,7 @@ public interface TaggedRunMetadataOrBuilder extends *
* * bytes run_metadata = 2; + * @return The runMetadata. */ com.google.protobuf.ByteString getRunMetadata(); } diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TaskDeviceFilters.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TaskDeviceFilters.java new file mode 100644 index 00000000000..f4669a0a0c0 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TaskDeviceFilters.java @@ -0,0 +1,597 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/device_filters.proto + +package org.tensorflow.proto; + +/** + *
+ * Defines the device filters for a remote task.
+ * 
+ * + * Protobuf type {@code tensorflow.TaskDeviceFilters} + */ +public final class TaskDeviceFilters extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.TaskDeviceFilters) + TaskDeviceFiltersOrBuilder { +private static final long serialVersionUID = 0L; + // Use TaskDeviceFilters.newBuilder() to construct. + private TaskDeviceFilters(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskDeviceFilters() { + deviceFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TaskDeviceFilters(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DeviceFiltersProtos.internal_static_tensorflow_TaskDeviceFilters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DeviceFiltersProtos.internal_static_tensorflow_TaskDeviceFilters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TaskDeviceFilters.class, org.tensorflow.proto.TaskDeviceFilters.Builder.class); + } + + public static final int DEVICE_FILTERS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList deviceFilters_; + /** + * repeated string device_filters = 1; + * @return A list containing the deviceFilters. + */ + public com.google.protobuf.ProtocolStringList + getDeviceFiltersList() { + return deviceFilters_; + } + /** + * repeated string device_filters = 1; + * @return The count of deviceFilters. + */ + public int getDeviceFiltersCount() { + return deviceFilters_.size(); + } + /** + * repeated string device_filters = 1; + * @param index The index of the element to return. + * @return The deviceFilters at the given index. + */ + public java.lang.String getDeviceFilters(int index) { + return deviceFilters_.get(index); + } + /** + * repeated string device_filters = 1; + * @param index The index of the value to return. + * @return The bytes of the deviceFilters at the given index. + */ + public com.google.protobuf.ByteString + getDeviceFiltersBytes(int index) { + return deviceFilters_.getByteString(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 < deviceFilters_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceFilters_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < deviceFilters_.size(); i++) { + dataSize += computeStringSizeNoTag(deviceFilters_.getRaw(i)); + } + size += dataSize; + size += 1 * getDeviceFiltersList().size(); + } + 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 org.tensorflow.proto.TaskDeviceFilters)) { + return super.equals(obj); + } + org.tensorflow.proto.TaskDeviceFilters other = (org.tensorflow.proto.TaskDeviceFilters) obj; + + if (!getDeviceFiltersList() + .equals(other.getDeviceFiltersList())) 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 (getDeviceFiltersCount() > 0) { + hash = (37 * hash) + DEVICE_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getDeviceFiltersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.TaskDeviceFilters parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TaskDeviceFilters parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TaskDeviceFilters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TaskDeviceFilters parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TaskDeviceFilters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TaskDeviceFilters parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TaskDeviceFilters parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TaskDeviceFilters 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 org.tensorflow.proto.TaskDeviceFilters parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TaskDeviceFilters 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 org.tensorflow.proto.TaskDeviceFilters parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TaskDeviceFilters 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(org.tensorflow.proto.TaskDeviceFilters 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; + } + /** + *
+   * Defines the device filters for a remote task.
+   * 
+ * + * Protobuf type {@code tensorflow.TaskDeviceFilters} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.TaskDeviceFilters) + org.tensorflow.proto.TaskDeviceFiltersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.DeviceFiltersProtos.internal_static_tensorflow_TaskDeviceFilters_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.DeviceFiltersProtos.internal_static_tensorflow_TaskDeviceFilters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TaskDeviceFilters.class, org.tensorflow.proto.TaskDeviceFilters.Builder.class); + } + + // Construct using org.tensorflow.proto.TaskDeviceFilters.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + deviceFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.DeviceFiltersProtos.internal_static_tensorflow_TaskDeviceFilters_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.TaskDeviceFilters getDefaultInstanceForType() { + return org.tensorflow.proto.TaskDeviceFilters.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.TaskDeviceFilters build() { + org.tensorflow.proto.TaskDeviceFilters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.TaskDeviceFilters buildPartial() { + org.tensorflow.proto.TaskDeviceFilters result = new org.tensorflow.proto.TaskDeviceFilters(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + deviceFilters_ = deviceFilters_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deviceFilters_ = deviceFilters_; + 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 org.tensorflow.proto.TaskDeviceFilters) { + return mergeFrom((org.tensorflow.proto.TaskDeviceFilters)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.TaskDeviceFilters other) { + if (other == org.tensorflow.proto.TaskDeviceFilters.getDefaultInstance()) return this; + if (!other.deviceFilters_.isEmpty()) { + if (deviceFilters_.isEmpty()) { + deviceFilters_ = other.deviceFilters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDeviceFiltersIsMutable(); + deviceFilters_.addAll(other.deviceFilters_); + } + 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: { + java.lang.String s = input.readStringRequireUtf8(); + ensureDeviceFiltersIsMutable(); + deviceFilters_.add(s); + 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.protobuf.LazyStringList deviceFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDeviceFiltersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deviceFilters_ = new com.google.protobuf.LazyStringArrayList(deviceFilters_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string device_filters = 1; + * @return A list containing the deviceFilters. + */ + public com.google.protobuf.ProtocolStringList + getDeviceFiltersList() { + return deviceFilters_.getUnmodifiableView(); + } + /** + * repeated string device_filters = 1; + * @return The count of deviceFilters. + */ + public int getDeviceFiltersCount() { + return deviceFilters_.size(); + } + /** + * repeated string device_filters = 1; + * @param index The index of the element to return. + * @return The deviceFilters at the given index. + */ + public java.lang.String getDeviceFilters(int index) { + return deviceFilters_.get(index); + } + /** + * repeated string device_filters = 1; + * @param index The index of the value to return. + * @return The bytes of the deviceFilters at the given index. + */ + public com.google.protobuf.ByteString + getDeviceFiltersBytes(int index) { + return deviceFilters_.getByteString(index); + } + /** + * repeated string device_filters = 1; + * @param index The index to set the value at. + * @param value The deviceFilters to set. + * @return This builder for chaining. + */ + public Builder setDeviceFilters( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeviceFiltersIsMutable(); + deviceFilters_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string device_filters = 1; + * @param value The deviceFilters to add. + * @return This builder for chaining. + */ + public Builder addDeviceFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeviceFiltersIsMutable(); + deviceFilters_.add(value); + onChanged(); + return this; + } + /** + * repeated string device_filters = 1; + * @param values The deviceFilters to add. + * @return This builder for chaining. + */ + public Builder addAllDeviceFilters( + java.lang.Iterable values) { + ensureDeviceFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, deviceFilters_); + onChanged(); + return this; + } + /** + * repeated string device_filters = 1; + * @return This builder for chaining. + */ + public Builder clearDeviceFilters() { + deviceFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string device_filters = 1; + * @param value The bytes of the deviceFilters to add. + * @return This builder for chaining. + */ + public Builder addDeviceFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDeviceFiltersIsMutable(); + deviceFilters_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.TaskDeviceFilters) + } + + // @@protoc_insertion_point(class_scope:tensorflow.TaskDeviceFilters) + private static final org.tensorflow.proto.TaskDeviceFilters DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.TaskDeviceFilters(); + } + + public static org.tensorflow.proto.TaskDeviceFilters getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskDeviceFilters 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 org.tensorflow.proto.TaskDeviceFilters getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TaskDeviceFiltersOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TaskDeviceFiltersOrBuilder.java new file mode 100644 index 00000000000..2c1c746f142 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TaskDeviceFiltersOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/device_filters.proto + +package org.tensorflow.proto; + +public interface TaskDeviceFiltersOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.TaskDeviceFilters) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string device_filters = 1; + * @return A list containing the deviceFilters. + */ + java.util.List + getDeviceFiltersList(); + /** + * repeated string device_filters = 1; + * @return The count of deviceFilters. + */ + int getDeviceFiltersCount(); + /** + * repeated string device_filters = 1; + * @param index The index of the element to return. + * @return The deviceFilters at the given index. + */ + java.lang.String getDeviceFilters(int index); + /** + * repeated string device_filters = 1; + * @param index The index of the value to return. + * @return The bytes of the deviceFilters at the given index. + */ + com.google.protobuf.ByteString + getDeviceFiltersBytes(int index); +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/TensorBundleProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorBundleProtos.java similarity index 79% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/TensorBundleProtos.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorBundleProtos.java index a3ba9d49dce..8330500c8f0 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/TensorBundleProtos.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorBundleProtos.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/tensor_bundle.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; public final class TensorBundleProtos { private TensorBundleProtos() {} @@ -48,19 +48,19 @@ public static void registerAllExtensions( " \001(\0132\034.tensorflow.TensorShapeProto\022\020\n\010sh" + "ard_id\030\003 \001(\005\022\016\n\006offset\030\004 \001(\003\022\014\n\004size\030\005 \001" + "(\003\022\016\n\006crc32c\030\006 \001(\007\022,\n\006slices\030\007 \003(\0132\034.ten" + - "sorflow.TensorSliceProtoB\213\001\n\031org.tensorf" + - "low.proto.utilB\022TensorBundleProtosP\001ZUgi" + - "thub.com/tensorflow/tensorflow/tensorflo" + - "w/go/core/protobuf/for_core_protos_go_pr" + - "oto\370\001\001b\006proto3" + "sorflow.TensorSliceProtoB\206\001\n\024org.tensorf" + + "low.protoB\022TensorBundleProtosP\001ZUgithub." + + "com/tensorflow/tensorflow/tensorflow/go/" + + "core/protobuf/for_core_protos_go_proto\370\001" + + "\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(), - org.tensorflow.proto.framework.TensorSliceProtos.getDescriptor(), - org.tensorflow.proto.framework.TypesProtos.getDescriptor(), - org.tensorflow.proto.framework.VersionsProtos.getDescriptor(), + org.tensorflow.proto.TensorShapeProtos.getDescriptor(), + org.tensorflow.proto.TensorSliceProtos.getDescriptor(), + org.tensorflow.proto.TypesProtos.getDescriptor(), + org.tensorflow.proto.VersionsProtos.getDescriptor(), }); internal_static_tensorflow_BundleHeaderProto_descriptor = getDescriptor().getMessageTypes().get(0); @@ -74,10 +74,10 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_BundleEntryProto_descriptor, new java.lang.String[] { "Dtype", "Shape", "ShardId", "Offset", "Size", "Crc32C", "Slices", }); - org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(); - org.tensorflow.proto.framework.TensorSliceProtos.getDescriptor(); - org.tensorflow.proto.framework.TypesProtos.getDescriptor(); - org.tensorflow.proto.framework.VersionsProtos.getDescriptor(); + org.tensorflow.proto.TensorShapeProtos.getDescriptor(); + org.tensorflow.proto.TensorSliceProtos.getDescriptor(); + org.tensorflow.proto.TypesProtos.getDescriptor(); + org.tensorflow.proto.VersionsProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/TensorConnection.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorConnection.java similarity index 75% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/TensorConnection.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorConnection.java index 5be946ae717..a2a09620a94 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/TensorConnection.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorConnection.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/config.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; /** *
@@ -10,7 +10,7 @@
  *
  * Protobuf type {@code tensorflow.TensorConnection}
  */
-public  final class TensorConnection extends
+public final class TensorConnection extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.TensorConnection)
     TensorConnectionOrBuilder {
@@ -36,66 +36,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private TensorConnection(
-      com.google.protobuf.CodedInputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws com.google.protobuf.InvalidProtocolBufferException {
-    this();
-    if (extensionRegistry == null) {
-      throw new java.lang.NullPointerException();
-    }
-    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
-        com.google.protobuf.UnknownFieldSet.newBuilder();
-    try {
-      boolean done = false;
-      while (!done) {
-        int tag = input.readTag();
-        switch (tag) {
-          case 0:
-            done = true;
-            break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            fromTensor_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            toTensor_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
-        }
-      }
-    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-      throw e.setUnfinishedMessage(this);
-    } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
-    } finally {
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_TensorConnection_descriptor;
+    return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_TensorConnection_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_TensorConnection_fieldAccessorTable
+    return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_TensorConnection_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.framework.TensorConnection.class, org.tensorflow.proto.framework.TensorConnection.Builder.class);
+            org.tensorflow.proto.TensorConnection.class, org.tensorflow.proto.TensorConnection.Builder.class);
   }
 
   public static final int FROM_TENSOR_FIELD_NUMBER = 1;
@@ -107,7 +58,9 @@ private TensorConnection(
    * 
* * string from_tensor = 1; + * @return The fromTensor. */ + @java.lang.Override public java.lang.String getFromTensor() { java.lang.Object ref = fromTensor_; if (ref instanceof java.lang.String) { @@ -127,7 +80,9 @@ public java.lang.String getFromTensor() { * * * string from_tensor = 1; + * @return The bytes for fromTensor. */ + @java.lang.Override public com.google.protobuf.ByteString getFromTensorBytes() { java.lang.Object ref = fromTensor_; @@ -151,7 +106,9 @@ public java.lang.String getFromTensor() { * * * string to_tensor = 2; + * @return The toTensor. */ + @java.lang.Override public java.lang.String getToTensor() { java.lang.Object ref = toTensor_; if (ref instanceof java.lang.String) { @@ -171,7 +128,9 @@ public java.lang.String getToTensor() { * * * string to_tensor = 2; + * @return The bytes for toTensor. */ + @java.lang.Override public com.google.protobuf.ByteString getToTensorBytes() { java.lang.Object ref = toTensor_; @@ -200,13 +159,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getFromTensorBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fromTensor_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fromTensor_); } - if (!getToTensorBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(toTensor_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, toTensor_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -215,13 +174,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getFromTensorBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fromTensor_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fromTensor_); } - if (!getToTensorBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(toTensor_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, toTensor_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -231,16 +190,16 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.TensorConnection)) { + if (!(obj instanceof org.tensorflow.proto.TensorConnection)) { return super.equals(obj); } - org.tensorflow.proto.framework.TensorConnection other = (org.tensorflow.proto.framework.TensorConnection) obj; + org.tensorflow.proto.TensorConnection other = (org.tensorflow.proto.TensorConnection) obj; if (!getFromTensor() .equals(other.getFromTensor())) return false; if (!getToTensor() .equals(other.getToTensor())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -255,74 +214,74 @@ public int hashCode() { hash = (53 * hash) + getFromTensor().hashCode(); hash = (37 * hash) + TO_TENSOR_FIELD_NUMBER; hash = (53 * hash) + getToTensor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.TensorConnection parseFrom( + public static org.tensorflow.proto.TensorConnection parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.TensorConnection parseFrom( + public static org.tensorflow.proto.TensorConnection parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.TensorConnection parseFrom( + public static org.tensorflow.proto.TensorConnection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.TensorConnection parseFrom( + public static org.tensorflow.proto.TensorConnection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.TensorConnection parseFrom(byte[] data) + public static org.tensorflow.proto.TensorConnection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.TensorConnection parseFrom( + public static org.tensorflow.proto.TensorConnection parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.TensorConnection parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.TensorConnection parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.TensorConnection parseFrom( + public static org.tensorflow.proto.TensorConnection 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 org.tensorflow.proto.framework.TensorConnection parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.TensorConnection parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.TensorConnection parseDelimitedFrom( + public static org.tensorflow.proto.TensorConnection 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 org.tensorflow.proto.framework.TensorConnection parseFrom( + public static org.tensorflow.proto.TensorConnection parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.TensorConnection parseFrom( + public static org.tensorflow.proto.TensorConnection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -335,7 +294,7 @@ public static org.tensorflow.proto.framework.TensorConnection parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.TensorConnection prototype) { + public static Builder newBuilder(org.tensorflow.proto.TensorConnection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -360,34 +319,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.TensorConnection) - org.tensorflow.proto.framework.TensorConnectionOrBuilder { + org.tensorflow.proto.TensorConnectionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_TensorConnection_descriptor; + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_TensorConnection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_TensorConnection_fieldAccessorTable + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_TensorConnection_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.TensorConnection.class, org.tensorflow.proto.framework.TensorConnection.Builder.class); + org.tensorflow.proto.TensorConnection.class, org.tensorflow.proto.TensorConnection.Builder.class); } - // Construct using org.tensorflow.proto.framework.TensorConnection.newBuilder() + // Construct using org.tensorflow.proto.TensorConnection.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -402,17 +356,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_TensorConnection_descriptor; + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_TensorConnection_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.TensorConnection getDefaultInstanceForType() { - return org.tensorflow.proto.framework.TensorConnection.getDefaultInstance(); + public org.tensorflow.proto.TensorConnection getDefaultInstanceForType() { + return org.tensorflow.proto.TensorConnection.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.TensorConnection build() { - org.tensorflow.proto.framework.TensorConnection result = buildPartial(); + public org.tensorflow.proto.TensorConnection build() { + org.tensorflow.proto.TensorConnection result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -420,8 +374,8 @@ public org.tensorflow.proto.framework.TensorConnection build() { } @java.lang.Override - public org.tensorflow.proto.framework.TensorConnection buildPartial() { - org.tensorflow.proto.framework.TensorConnection result = new org.tensorflow.proto.framework.TensorConnection(this); + public org.tensorflow.proto.TensorConnection buildPartial() { + org.tensorflow.proto.TensorConnection result = new org.tensorflow.proto.TensorConnection(this); result.fromTensor_ = fromTensor_; result.toTensor_ = toTensor_; onBuilt(); @@ -462,16 +416,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.TensorConnection) { - return mergeFrom((org.tensorflow.proto.framework.TensorConnection)other); + if (other instanceof org.tensorflow.proto.TensorConnection) { + return mergeFrom((org.tensorflow.proto.TensorConnection)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.TensorConnection other) { - if (other == org.tensorflow.proto.framework.TensorConnection.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.TensorConnection other) { + if (other == org.tensorflow.proto.TensorConnection.getDefaultInstance()) return this; if (!other.getFromTensor().isEmpty()) { fromTensor_ = other.fromTensor_; onChanged(); @@ -480,7 +434,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.TensorConnection other) toTensor_ = other.toTensor_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -495,17 +449,40 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.TensorConnection parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + fromTensor_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + toTensor_ = input.readStringRequireUtf8(); + + 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) { - parsedMessage = (org.tensorflow.proto.framework.TensorConnection) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -517,6 +494,7 @@ public Builder mergeFrom( * * * string from_tensor = 1; + * @return The fromTensor. */ public java.lang.String getFromTensor() { java.lang.Object ref = fromTensor_; @@ -537,6 +515,7 @@ public java.lang.String getFromTensor() { * * * string from_tensor = 1; + * @return The bytes for fromTensor. */ public com.google.protobuf.ByteString getFromTensorBytes() { @@ -558,6 +537,8 @@ public java.lang.String getFromTensor() { * * * string from_tensor = 1; + * @param value The fromTensor to set. + * @return This builder for chaining. */ public Builder setFromTensor( java.lang.String value) { @@ -576,6 +557,7 @@ public Builder setFromTensor( * * * string from_tensor = 1; + * @return This builder for chaining. */ public Builder clearFromTensor() { @@ -590,6 +572,8 @@ public Builder clearFromTensor() { * * * string from_tensor = 1; + * @param value The bytes for fromTensor to set. + * @return This builder for chaining. */ public Builder setFromTensorBytes( com.google.protobuf.ByteString value) { @@ -611,6 +595,7 @@ public Builder setFromTensorBytes( * * * string to_tensor = 2; + * @return The toTensor. */ public java.lang.String getToTensor() { java.lang.Object ref = toTensor_; @@ -631,6 +616,7 @@ public java.lang.String getToTensor() { * * * string to_tensor = 2; + * @return The bytes for toTensor. */ public com.google.protobuf.ByteString getToTensorBytes() { @@ -652,6 +638,8 @@ public java.lang.String getToTensor() { * * * string to_tensor = 2; + * @param value The toTensor to set. + * @return This builder for chaining. */ public Builder setToTensor( java.lang.String value) { @@ -670,6 +658,7 @@ public Builder setToTensor( * * * string to_tensor = 2; + * @return This builder for chaining. */ public Builder clearToTensor() { @@ -684,6 +673,8 @@ public Builder clearToTensor() { * * * string to_tensor = 2; + * @param value The bytes for toTensor to set. + * @return This builder for chaining. */ public Builder setToTensorBytes( com.google.protobuf.ByteString value) { @@ -713,12 +704,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.TensorConnection) - private static final org.tensorflow.proto.framework.TensorConnection DEFAULT_INSTANCE; + private static final org.tensorflow.proto.TensorConnection DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.TensorConnection(); + DEFAULT_INSTANCE = new org.tensorflow.proto.TensorConnection(); } - public static org.tensorflow.proto.framework.TensorConnection getDefaultInstance() { + public static org.tensorflow.proto.TensorConnection getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -729,7 +720,18 @@ public TensorConnection parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TensorConnection(input, extensionRegistry); + 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(); } }; @@ -743,7 +745,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.TensorConnection getDefaultInstanceForType() { + public org.tensorflow.proto.TensorConnection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/TensorConnectionOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorConnectionOrBuilder.java similarity index 88% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/TensorConnectionOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorConnectionOrBuilder.java index 377a25aa7ad..843a560f3e1 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/TensorConnectionOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorConnectionOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/config.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface TensorConnectionOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.TensorConnection) @@ -14,6 +14,7 @@ public interface TensorConnectionOrBuilder extends * * * string from_tensor = 1; + * @return The fromTensor. */ java.lang.String getFromTensor(); /** @@ -23,6 +24,7 @@ public interface TensorConnectionOrBuilder extends * * * string from_tensor = 1; + * @return The bytes for fromTensor. */ com.google.protobuf.ByteString getFromTensorBytes(); @@ -34,6 +36,7 @@ public interface TensorConnectionOrBuilder extends * * * string to_tensor = 2; + * @return The toTensor. */ java.lang.String getToTensor(); /** @@ -43,6 +46,7 @@ public interface TensorConnectionOrBuilder extends * * * string to_tensor = 2; + * @return The bytes for toTensor. */ com.google.protobuf.ByteString getToTensorBytes(); diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/TensorDebugMode.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorDebugMode.java similarity index 93% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/TensorDebugMode.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorDebugMode.java index 074b1ca74c5..15fa58ef89b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/TensorDebugMode.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorDebugMode.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/debug_event.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; /** *
@@ -210,6 +210,8 @@ public final int getNumber() {
   }
 
   /**
+   * @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
@@ -217,6 +219,10 @@ public static TensorDebugMode 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 TensorDebugMode forNumber(int value) {
     switch (value) {
       case 0: return UNSPECIFIED;
@@ -246,6 +252,10 @@ public TensorDebugMode findValueByNumber(int 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
@@ -254,7 +264,7 @@ public TensorDebugMode findValueByNumber(int number) {
   }
   public static final com.google.protobuf.Descriptors.EnumDescriptor
       getDescriptor() {
-    return org.tensorflow.proto.util.DebugEventProtos.getDescriptor().getEnumTypes().get(0);
+    return org.tensorflow.proto.DebugEventProtos.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final TensorDebugMode[] VALUES = values();
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorDescription.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorDescription.java
new file mode 100644
index 00000000000..da0e946af16
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorDescription.java
@@ -0,0 +1,984 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/framework/tensor_description.proto
+
+package org.tensorflow.proto;
+
+/**
+ * Protobuf type {@code tensorflow.TensorDescription}
+ */
+public final class TensorDescription extends
+    com.google.protobuf.GeneratedMessageV3 implements
+    // @@protoc_insertion_point(message_implements:tensorflow.TensorDescription)
+    TensorDescriptionOrBuilder {
+private static final long serialVersionUID = 0L;
+  // Use TensorDescription.newBuilder() to construct.
+  private TensorDescription(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    super(builder);
+  }
+  private TensorDescription() {
+    dtype_ = 0;
+  }
+
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
+    return new TensorDescription();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
+    return this.unknownFields;
+  }
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return org.tensorflow.proto.TensorDescriptionProtos.internal_static_tensorflow_TensorDescription_descriptor;
+  }
+
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internalGetFieldAccessorTable() {
+    return org.tensorflow.proto.TensorDescriptionProtos.internal_static_tensorflow_TensorDescription_fieldAccessorTable
+        .ensureFieldAccessorsInitialized(
+            org.tensorflow.proto.TensorDescription.class, org.tensorflow.proto.TensorDescription.Builder.class);
+  }
+
+  public static final int DTYPE_FIELD_NUMBER = 1;
+  private int dtype_;
+  /**
+   * 
+   * Data type of tensor elements
+   * 
+ * + * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. + */ + @java.lang.Override public int getDtypeValue() { + return dtype_; + } + /** + *
+   * Data type of tensor elements
+   * 
+ * + * .tensorflow.DataType dtype = 1; + * @return The dtype. + */ + @java.lang.Override public org.tensorflow.proto.DataType getDtype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + + public static final int SHAPE_FIELD_NUMBER = 2; + private org.tensorflow.proto.TensorShapeProto shape_; + /** + *
+   * Shape of the tensor.
+   * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + @java.lang.Override + public boolean hasShape() { + return shape_ != null; + } + /** + *
+   * Shape of the tensor.
+   * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto getShape() { + return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } + /** + *
+   * Shape of the tensor.
+   * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { + return getShape(); + } + + public static final int ALLOCATION_DESCRIPTION_FIELD_NUMBER = 4; + private org.tensorflow.proto.AllocationDescription allocationDescription_; + /** + *
+   * Information about the size and allocator used for the data
+   * 
+ * + * .tensorflow.AllocationDescription allocation_description = 4; + * @return Whether the allocationDescription field is set. + */ + @java.lang.Override + public boolean hasAllocationDescription() { + return allocationDescription_ != null; + } + /** + *
+   * Information about the size and allocator used for the data
+   * 
+ * + * .tensorflow.AllocationDescription allocation_description = 4; + * @return The allocationDescription. + */ + @java.lang.Override + public org.tensorflow.proto.AllocationDescription getAllocationDescription() { + return allocationDescription_ == null ? org.tensorflow.proto.AllocationDescription.getDefaultInstance() : allocationDescription_; + } + /** + *
+   * Information about the size and allocator used for the data
+   * 
+ * + * .tensorflow.AllocationDescription allocation_description = 4; + */ + @java.lang.Override + public org.tensorflow.proto.AllocationDescriptionOrBuilder getAllocationDescriptionOrBuilder() { + return getAllocationDescription(); + } + + 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 (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + output.writeEnum(1, dtype_); + } + if (shape_ != null) { + output.writeMessage(2, getShape()); + } + if (allocationDescription_ != null) { + output.writeMessage(4, getAllocationDescription()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, dtype_); + } + if (shape_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getShape()); + } + if (allocationDescription_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAllocationDescription()); + } + 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 org.tensorflow.proto.TensorDescription)) { + return super.equals(obj); + } + org.tensorflow.proto.TensorDescription other = (org.tensorflow.proto.TensorDescription) obj; + + if (dtype_ != other.dtype_) return false; + if (hasShape() != other.hasShape()) return false; + if (hasShape()) { + if (!getShape() + .equals(other.getShape())) return false; + } + if (hasAllocationDescription() != other.hasAllocationDescription()) return false; + if (hasAllocationDescription()) { + if (!getAllocationDescription() + .equals(other.getAllocationDescription())) 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) + DTYPE_FIELD_NUMBER; + hash = (53 * hash) + dtype_; + if (hasShape()) { + hash = (37 * hash) + SHAPE_FIELD_NUMBER; + hash = (53 * hash) + getShape().hashCode(); + } + if (hasAllocationDescription()) { + hash = (37 * hash) + ALLOCATION_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getAllocationDescription().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.TensorDescription parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorDescription parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorDescription parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorDescription parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorDescription parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorDescription parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorDescription parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorDescription 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 org.tensorflow.proto.TensorDescription parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorDescription 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 org.tensorflow.proto.TensorDescription parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorDescription 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(org.tensorflow.proto.TensorDescription prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.TensorDescription} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.TensorDescription) + org.tensorflow.proto.TensorDescriptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TensorDescriptionProtos.internal_static_tensorflow_TensorDescription_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TensorDescriptionProtos.internal_static_tensorflow_TensorDescription_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TensorDescription.class, org.tensorflow.proto.TensorDescription.Builder.class); + } + + // Construct using org.tensorflow.proto.TensorDescription.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + dtype_ = 0; + + if (shapeBuilder_ == null) { + shape_ = null; + } else { + shape_ = null; + shapeBuilder_ = null; + } + if (allocationDescriptionBuilder_ == null) { + allocationDescription_ = null; + } else { + allocationDescription_ = null; + allocationDescriptionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.TensorDescriptionProtos.internal_static_tensorflow_TensorDescription_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.TensorDescription getDefaultInstanceForType() { + return org.tensorflow.proto.TensorDescription.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.TensorDescription build() { + org.tensorflow.proto.TensorDescription result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.TensorDescription buildPartial() { + org.tensorflow.proto.TensorDescription result = new org.tensorflow.proto.TensorDescription(this); + result.dtype_ = dtype_; + if (shapeBuilder_ == null) { + result.shape_ = shape_; + } else { + result.shape_ = shapeBuilder_.build(); + } + if (allocationDescriptionBuilder_ == null) { + result.allocationDescription_ = allocationDescription_; + } else { + result.allocationDescription_ = allocationDescriptionBuilder_.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 org.tensorflow.proto.TensorDescription) { + return mergeFrom((org.tensorflow.proto.TensorDescription)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.TensorDescription other) { + if (other == org.tensorflow.proto.TensorDescription.getDefaultInstance()) return this; + if (other.dtype_ != 0) { + setDtypeValue(other.getDtypeValue()); + } + if (other.hasShape()) { + mergeShape(other.getShape()); + } + if (other.hasAllocationDescription()) { + mergeAllocationDescription(other.getAllocationDescription()); + } + 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: { + dtype_ = input.readEnum(); + + break; + } // case 8 + case 18: { + input.readMessage( + getShapeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 34: { + input.readMessage( + getAllocationDescriptionFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + 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 dtype_ = 0; + /** + *
+     * Data type of tensor elements
+     * 
+ * + * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. + */ + @java.lang.Override public int getDtypeValue() { + return dtype_; + } + /** + *
+     * Data type of tensor elements
+     * 
+ * + * .tensorflow.DataType dtype = 1; + * @param value The enum numeric value on the wire for dtype to set. + * @return This builder for chaining. + */ + public Builder setDtypeValue(int value) { + + dtype_ = value; + onChanged(); + return this; + } + /** + *
+     * Data type of tensor elements
+     * 
+ * + * .tensorflow.DataType dtype = 1; + * @return The dtype. + */ + @java.lang.Override + public org.tensorflow.proto.DataType getDtype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + /** + *
+     * Data type of tensor elements
+     * 
+ * + * .tensorflow.DataType dtype = 1; + * @param value The dtype to set. + * @return This builder for chaining. + */ + public Builder setDtype(org.tensorflow.proto.DataType value) { + if (value == null) { + throw new NullPointerException(); + } + + dtype_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Data type of tensor elements
+     * 
+ * + * .tensorflow.DataType dtype = 1; + * @return This builder for chaining. + */ + public Builder clearDtype() { + + dtype_ = 0; + onChanged(); + return this; + } + + private org.tensorflow.proto.TensorShapeProto shape_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> shapeBuilder_; + /** + *
+     * Shape of the tensor.
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + public boolean hasShape() { + return shapeBuilder_ != null || shape_ != null; + } + /** + *
+     * Shape of the tensor.
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + public org.tensorflow.proto.TensorShapeProto getShape() { + if (shapeBuilder_ == null) { + return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } else { + return shapeBuilder_.getMessage(); + } + } + /** + *
+     * Shape of the tensor.
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder setShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shape_ = value; + onChanged(); + } else { + shapeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Shape of the tensor.
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder setShape( + org.tensorflow.proto.TensorShapeProto.Builder builderForValue) { + if (shapeBuilder_ == null) { + shape_ = builderForValue.build(); + onChanged(); + } else { + shapeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Shape of the tensor.
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder mergeShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (shape_ != null) { + shape_ = + org.tensorflow.proto.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial(); + } else { + shape_ = value; + } + onChanged(); + } else { + shapeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Shape of the tensor.
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + */ + public Builder clearShape() { + if (shapeBuilder_ == null) { + shape_ = null; + onChanged(); + } else { + shape_ = null; + shapeBuilder_ = null; + } + + return this; + } + /** + *
+     * Shape of the tensor.
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + */ + public org.tensorflow.proto.TensorShapeProto.Builder getShapeBuilder() { + + onChanged(); + return getShapeFieldBuilder().getBuilder(); + } + /** + *
+     * Shape of the tensor.
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + */ + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { + if (shapeBuilder_ != null) { + return shapeBuilder_.getMessageOrBuilder(); + } else { + return shape_ == null ? + org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } + } + /** + *
+     * Shape of the tensor.
+     * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> + getShapeFieldBuilder() { + if (shapeBuilder_ == null) { + shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder>( + getShape(), + getParentForChildren(), + isClean()); + shape_ = null; + } + return shapeBuilder_; + } + + private org.tensorflow.proto.AllocationDescription allocationDescription_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.AllocationDescription, org.tensorflow.proto.AllocationDescription.Builder, org.tensorflow.proto.AllocationDescriptionOrBuilder> allocationDescriptionBuilder_; + /** + *
+     * Information about the size and allocator used for the data
+     * 
+ * + * .tensorflow.AllocationDescription allocation_description = 4; + * @return Whether the allocationDescription field is set. + */ + public boolean hasAllocationDescription() { + return allocationDescriptionBuilder_ != null || allocationDescription_ != null; + } + /** + *
+     * Information about the size and allocator used for the data
+     * 
+ * + * .tensorflow.AllocationDescription allocation_description = 4; + * @return The allocationDescription. + */ + public org.tensorflow.proto.AllocationDescription getAllocationDescription() { + if (allocationDescriptionBuilder_ == null) { + return allocationDescription_ == null ? org.tensorflow.proto.AllocationDescription.getDefaultInstance() : allocationDescription_; + } else { + return allocationDescriptionBuilder_.getMessage(); + } + } + /** + *
+     * Information about the size and allocator used for the data
+     * 
+ * + * .tensorflow.AllocationDescription allocation_description = 4; + */ + public Builder setAllocationDescription(org.tensorflow.proto.AllocationDescription value) { + if (allocationDescriptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + allocationDescription_ = value; + onChanged(); + } else { + allocationDescriptionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Information about the size and allocator used for the data
+     * 
+ * + * .tensorflow.AllocationDescription allocation_description = 4; + */ + public Builder setAllocationDescription( + org.tensorflow.proto.AllocationDescription.Builder builderForValue) { + if (allocationDescriptionBuilder_ == null) { + allocationDescription_ = builderForValue.build(); + onChanged(); + } else { + allocationDescriptionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Information about the size and allocator used for the data
+     * 
+ * + * .tensorflow.AllocationDescription allocation_description = 4; + */ + public Builder mergeAllocationDescription(org.tensorflow.proto.AllocationDescription value) { + if (allocationDescriptionBuilder_ == null) { + if (allocationDescription_ != null) { + allocationDescription_ = + org.tensorflow.proto.AllocationDescription.newBuilder(allocationDescription_).mergeFrom(value).buildPartial(); + } else { + allocationDescription_ = value; + } + onChanged(); + } else { + allocationDescriptionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Information about the size and allocator used for the data
+     * 
+ * + * .tensorflow.AllocationDescription allocation_description = 4; + */ + public Builder clearAllocationDescription() { + if (allocationDescriptionBuilder_ == null) { + allocationDescription_ = null; + onChanged(); + } else { + allocationDescription_ = null; + allocationDescriptionBuilder_ = null; + } + + return this; + } + /** + *
+     * Information about the size and allocator used for the data
+     * 
+ * + * .tensorflow.AllocationDescription allocation_description = 4; + */ + public org.tensorflow.proto.AllocationDescription.Builder getAllocationDescriptionBuilder() { + + onChanged(); + return getAllocationDescriptionFieldBuilder().getBuilder(); + } + /** + *
+     * Information about the size and allocator used for the data
+     * 
+ * + * .tensorflow.AllocationDescription allocation_description = 4; + */ + public org.tensorflow.proto.AllocationDescriptionOrBuilder getAllocationDescriptionOrBuilder() { + if (allocationDescriptionBuilder_ != null) { + return allocationDescriptionBuilder_.getMessageOrBuilder(); + } else { + return allocationDescription_ == null ? + org.tensorflow.proto.AllocationDescription.getDefaultInstance() : allocationDescription_; + } + } + /** + *
+     * Information about the size and allocator used for the data
+     * 
+ * + * .tensorflow.AllocationDescription allocation_description = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.AllocationDescription, org.tensorflow.proto.AllocationDescription.Builder, org.tensorflow.proto.AllocationDescriptionOrBuilder> + getAllocationDescriptionFieldBuilder() { + if (allocationDescriptionBuilder_ == null) { + allocationDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.AllocationDescription, org.tensorflow.proto.AllocationDescription.Builder, org.tensorflow.proto.AllocationDescriptionOrBuilder>( + getAllocationDescription(), + getParentForChildren(), + isClean()); + allocationDescription_ = null; + } + return allocationDescriptionBuilder_; + } + @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:tensorflow.TensorDescription) + } + + // @@protoc_insertion_point(class_scope:tensorflow.TensorDescription) + private static final org.tensorflow.proto.TensorDescription DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.TensorDescription(); + } + + public static org.tensorflow.proto.TensorDescription getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TensorDescription 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 org.tensorflow.proto.TensorDescription getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorDescriptionOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorDescriptionOrBuilder.java new file mode 100644 index 00000000000..4becd9e8d58 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorDescriptionOrBuilder.java @@ -0,0 +1,82 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/tensor_description.proto + +package org.tensorflow.proto; + +public interface TensorDescriptionOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.TensorDescription) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Data type of tensor elements
+   * 
+ * + * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. + */ + int getDtypeValue(); + /** + *
+   * Data type of tensor elements
+   * 
+ * + * .tensorflow.DataType dtype = 1; + * @return The dtype. + */ + org.tensorflow.proto.DataType getDtype(); + + /** + *
+   * Shape of the tensor.
+   * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + * @return Whether the shape field is set. + */ + boolean hasShape(); + /** + *
+   * Shape of the tensor.
+   * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + * @return The shape. + */ + org.tensorflow.proto.TensorShapeProto getShape(); + /** + *
+   * Shape of the tensor.
+   * 
+ * + * .tensorflow.TensorShapeProto shape = 2; + */ + org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder(); + + /** + *
+   * Information about the size and allocator used for the data
+   * 
+ * + * .tensorflow.AllocationDescription allocation_description = 4; + * @return Whether the allocationDescription field is set. + */ + boolean hasAllocationDescription(); + /** + *
+   * Information about the size and allocator used for the data
+   * 
+ * + * .tensorflow.AllocationDescription allocation_description = 4; + * @return The allocationDescription. + */ + org.tensorflow.proto.AllocationDescription getAllocationDescription(); + /** + *
+   * Information about the size and allocator used for the data
+   * 
+ * + * .tensorflow.AllocationDescription allocation_description = 4; + */ + org.tensorflow.proto.AllocationDescriptionOrBuilder getAllocationDescriptionOrBuilder(); +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/TensorDescriptionProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorDescriptionProtos.java similarity index 75% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/TensorDescriptionProtos.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorDescriptionProtos.java index 840b3c4068d..c3d5f3020f0 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/TensorDescriptionProtos.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorDescriptionProtos.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/tensor_description.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public final class TensorDescriptionProtos { private TensorDescriptionProtos() {} @@ -37,18 +37,18 @@ public static void registerAllExtensions( "(\0162\024.tensorflow.DataType\022+\n\005shape\030\002 \001(\0132" + "\034.tensorflow.TensorShapeProto\022A\n\026allocat" + "ion_description\030\004 \001(\0132!.tensorflow.Alloc" + - "ationDescriptionB\231\001\n\036org.tensorflow.prot" + - "o.frameworkB\027TensorDescriptionProtosP\001ZY" + - "github.com/tensorflow/tensorflow/tensorf" + - "low/go/core/framework/tensor_description" + - "_go_proto\370\001\001b\006proto3" + "ationDescriptionB\217\001\n\024org.tensorflow.prot" + + "oB\027TensorDescriptionProtosP\001ZYgithub.com" + + "/tensorflow/tensorflow/tensorflow/go/cor" + + "e/framework/tensor_description_go_proto\370" + + "\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - org.tensorflow.proto.framework.AllocationDescriptionProtos.getDescriptor(), - org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(), - org.tensorflow.proto.framework.TypesProtos.getDescriptor(), + org.tensorflow.proto.AllocationDescriptionProtos.getDescriptor(), + org.tensorflow.proto.TensorShapeProtos.getDescriptor(), + org.tensorflow.proto.TypesProtos.getDescriptor(), }); internal_static_tensorflow_TensorDescription_descriptor = getDescriptor().getMessageTypes().get(0); @@ -56,9 +56,9 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_TensorDescription_descriptor, new java.lang.String[] { "Dtype", "Shape", "AllocationDescription", }); - org.tensorflow.proto.framework.AllocationDescriptionProtos.getDescriptor(); - org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(); - org.tensorflow.proto.framework.TypesProtos.getDescriptor(); + org.tensorflow.proto.AllocationDescriptionProtos.getDescriptor(); + org.tensorflow.proto.TensorShapeProtos.getDescriptor(); + org.tensorflow.proto.TypesProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorInfo.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorInfo.java new file mode 100644 index 00000000000..dafe4a8a92f --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorInfo.java @@ -0,0 +1,3732 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/meta_graph.proto + +package org.tensorflow.proto; + +/** + *
+ * Information about a Tensor necessary for feeding or retrieval.
+ * 
+ * + * Protobuf type {@code tensorflow.TensorInfo} + */ +public final class TensorInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.TensorInfo) + TensorInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use TensorInfo.newBuilder() to construct. + private TensorInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TensorInfo() { + dtype_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TensorInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_TensorInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_TensorInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TensorInfo.class, org.tensorflow.proto.TensorInfo.Builder.class); + } + + public interface CooSparseOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.TensorInfo.CooSparse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The shape of the values Tensor is [?].  Its dtype must be the dtype of
+     * the SparseTensor as a whole, given in the enclosing TensorInfo.
+     * 
+ * + * string values_tensor_name = 1; + * @return The valuesTensorName. + */ + java.lang.String getValuesTensorName(); + /** + *
+     * The shape of the values Tensor is [?].  Its dtype must be the dtype of
+     * the SparseTensor as a whole, given in the enclosing TensorInfo.
+     * 
+ * + * string values_tensor_name = 1; + * @return The bytes for valuesTensorName. + */ + com.google.protobuf.ByteString + getValuesTensorNameBytes(); + + /** + *
+     * The indices Tensor must have dtype int64 and shape [?, ?].
+     * 
+ * + * string indices_tensor_name = 2; + * @return The indicesTensorName. + */ + java.lang.String getIndicesTensorName(); + /** + *
+     * The indices Tensor must have dtype int64 and shape [?, ?].
+     * 
+ * + * string indices_tensor_name = 2; + * @return The bytes for indicesTensorName. + */ + com.google.protobuf.ByteString + getIndicesTensorNameBytes(); + + /** + *
+     * The dynamic logical shape represented by the SparseTensor is recorded in
+     * the Tensor referenced here.  It must have dtype int64 and shape [?].
+     * 
+ * + * string dense_shape_tensor_name = 3; + * @return The denseShapeTensorName. + */ + java.lang.String getDenseShapeTensorName(); + /** + *
+     * The dynamic logical shape represented by the SparseTensor is recorded in
+     * the Tensor referenced here.  It must have dtype int64 and shape [?].
+     * 
+ * + * string dense_shape_tensor_name = 3; + * @return The bytes for denseShapeTensorName. + */ + com.google.protobuf.ByteString + getDenseShapeTensorNameBytes(); + } + /** + *
+   * For sparse tensors, The COO encoding stores a triple of values, indices,
+   * and shape.
+   * 
+ * + * Protobuf type {@code tensorflow.TensorInfo.CooSparse} + */ + public static final class CooSparse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.TensorInfo.CooSparse) + CooSparseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CooSparse.newBuilder() to construct. + private CooSparse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CooSparse() { + valuesTensorName_ = ""; + indicesTensorName_ = ""; + denseShapeTensorName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CooSparse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_TensorInfo_CooSparse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_TensorInfo_CooSparse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TensorInfo.CooSparse.class, org.tensorflow.proto.TensorInfo.CooSparse.Builder.class); + } + + public static final int VALUES_TENSOR_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object valuesTensorName_; + /** + *
+     * The shape of the values Tensor is [?].  Its dtype must be the dtype of
+     * the SparseTensor as a whole, given in the enclosing TensorInfo.
+     * 
+ * + * string values_tensor_name = 1; + * @return The valuesTensorName. + */ + @java.lang.Override + public java.lang.String getValuesTensorName() { + java.lang.Object ref = valuesTensorName_; + 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(); + valuesTensorName_ = s; + return s; + } + } + /** + *
+     * The shape of the values Tensor is [?].  Its dtype must be the dtype of
+     * the SparseTensor as a whole, given in the enclosing TensorInfo.
+     * 
+ * + * string values_tensor_name = 1; + * @return The bytes for valuesTensorName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getValuesTensorNameBytes() { + java.lang.Object ref = valuesTensorName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + valuesTensorName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INDICES_TENSOR_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object indicesTensorName_; + /** + *
+     * The indices Tensor must have dtype int64 and shape [?, ?].
+     * 
+ * + * string indices_tensor_name = 2; + * @return The indicesTensorName. + */ + @java.lang.Override + public java.lang.String getIndicesTensorName() { + java.lang.Object ref = indicesTensorName_; + 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(); + indicesTensorName_ = s; + return s; + } + } + /** + *
+     * The indices Tensor must have dtype int64 and shape [?, ?].
+     * 
+ * + * string indices_tensor_name = 2; + * @return The bytes for indicesTensorName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIndicesTensorNameBytes() { + java.lang.Object ref = indicesTensorName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + indicesTensorName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DENSE_SHAPE_TENSOR_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object denseShapeTensorName_; + /** + *
+     * The dynamic logical shape represented by the SparseTensor is recorded in
+     * the Tensor referenced here.  It must have dtype int64 and shape [?].
+     * 
+ * + * string dense_shape_tensor_name = 3; + * @return The denseShapeTensorName. + */ + @java.lang.Override + public java.lang.String getDenseShapeTensorName() { + java.lang.Object ref = denseShapeTensorName_; + 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(); + denseShapeTensorName_ = s; + return s; + } + } + /** + *
+     * The dynamic logical shape represented by the SparseTensor is recorded in
+     * the Tensor referenced here.  It must have dtype int64 and shape [?].
+     * 
+ * + * string dense_shape_tensor_name = 3; + * @return The bytes for denseShapeTensorName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDenseShapeTensorNameBytes() { + java.lang.Object ref = denseShapeTensorName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + denseShapeTensorName_ = 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(valuesTensorName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, valuesTensorName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indicesTensorName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, indicesTensorName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(denseShapeTensorName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, denseShapeTensorName_); + } + 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(valuesTensorName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, valuesTensorName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indicesTensorName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, indicesTensorName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(denseShapeTensorName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, denseShapeTensorName_); + } + 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 org.tensorflow.proto.TensorInfo.CooSparse)) { + return super.equals(obj); + } + org.tensorflow.proto.TensorInfo.CooSparse other = (org.tensorflow.proto.TensorInfo.CooSparse) obj; + + if (!getValuesTensorName() + .equals(other.getValuesTensorName())) return false; + if (!getIndicesTensorName() + .equals(other.getIndicesTensorName())) return false; + if (!getDenseShapeTensorName() + .equals(other.getDenseShapeTensorName())) 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) + VALUES_TENSOR_NAME_FIELD_NUMBER; + hash = (53 * hash) + getValuesTensorName().hashCode(); + hash = (37 * hash) + INDICES_TENSOR_NAME_FIELD_NUMBER; + hash = (53 * hash) + getIndicesTensorName().hashCode(); + hash = (37 * hash) + DENSE_SHAPE_TENSOR_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDenseShapeTensorName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.TensorInfo.CooSparse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorInfo.CooSparse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorInfo.CooSparse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorInfo.CooSparse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorInfo.CooSparse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorInfo.CooSparse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorInfo.CooSparse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorInfo.CooSparse 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 org.tensorflow.proto.TensorInfo.CooSparse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorInfo.CooSparse 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 org.tensorflow.proto.TensorInfo.CooSparse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorInfo.CooSparse 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(org.tensorflow.proto.TensorInfo.CooSparse 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; + } + /** + *
+     * For sparse tensors, The COO encoding stores a triple of values, indices,
+     * and shape.
+     * 
+ * + * Protobuf type {@code tensorflow.TensorInfo.CooSparse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.TensorInfo.CooSparse) + org.tensorflow.proto.TensorInfo.CooSparseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_TensorInfo_CooSparse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_TensorInfo_CooSparse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TensorInfo.CooSparse.class, org.tensorflow.proto.TensorInfo.CooSparse.Builder.class); + } + + // Construct using org.tensorflow.proto.TensorInfo.CooSparse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + valuesTensorName_ = ""; + + indicesTensorName_ = ""; + + denseShapeTensorName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_TensorInfo_CooSparse_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.TensorInfo.CooSparse getDefaultInstanceForType() { + return org.tensorflow.proto.TensorInfo.CooSparse.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.TensorInfo.CooSparse build() { + org.tensorflow.proto.TensorInfo.CooSparse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.TensorInfo.CooSparse buildPartial() { + org.tensorflow.proto.TensorInfo.CooSparse result = new org.tensorflow.proto.TensorInfo.CooSparse(this); + result.valuesTensorName_ = valuesTensorName_; + result.indicesTensorName_ = indicesTensorName_; + result.denseShapeTensorName_ = denseShapeTensorName_; + 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 org.tensorflow.proto.TensorInfo.CooSparse) { + return mergeFrom((org.tensorflow.proto.TensorInfo.CooSparse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.TensorInfo.CooSparse other) { + if (other == org.tensorflow.proto.TensorInfo.CooSparse.getDefaultInstance()) return this; + if (!other.getValuesTensorName().isEmpty()) { + valuesTensorName_ = other.valuesTensorName_; + onChanged(); + } + if (!other.getIndicesTensorName().isEmpty()) { + indicesTensorName_ = other.indicesTensorName_; + onChanged(); + } + if (!other.getDenseShapeTensorName().isEmpty()) { + denseShapeTensorName_ = other.denseShapeTensorName_; + 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: { + valuesTensorName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + indicesTensorName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + denseShapeTensorName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + 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 java.lang.Object valuesTensorName_ = ""; + /** + *
+       * The shape of the values Tensor is [?].  Its dtype must be the dtype of
+       * the SparseTensor as a whole, given in the enclosing TensorInfo.
+       * 
+ * + * string values_tensor_name = 1; + * @return The valuesTensorName. + */ + public java.lang.String getValuesTensorName() { + java.lang.Object ref = valuesTensorName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + valuesTensorName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The shape of the values Tensor is [?].  Its dtype must be the dtype of
+       * the SparseTensor as a whole, given in the enclosing TensorInfo.
+       * 
+ * + * string values_tensor_name = 1; + * @return The bytes for valuesTensorName. + */ + public com.google.protobuf.ByteString + getValuesTensorNameBytes() { + java.lang.Object ref = valuesTensorName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + valuesTensorName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The shape of the values Tensor is [?].  Its dtype must be the dtype of
+       * the SparseTensor as a whole, given in the enclosing TensorInfo.
+       * 
+ * + * string values_tensor_name = 1; + * @param value The valuesTensorName to set. + * @return This builder for chaining. + */ + public Builder setValuesTensorName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + valuesTensorName_ = value; + onChanged(); + return this; + } + /** + *
+       * The shape of the values Tensor is [?].  Its dtype must be the dtype of
+       * the SparseTensor as a whole, given in the enclosing TensorInfo.
+       * 
+ * + * string values_tensor_name = 1; + * @return This builder for chaining. + */ + public Builder clearValuesTensorName() { + + valuesTensorName_ = getDefaultInstance().getValuesTensorName(); + onChanged(); + return this; + } + /** + *
+       * The shape of the values Tensor is [?].  Its dtype must be the dtype of
+       * the SparseTensor as a whole, given in the enclosing TensorInfo.
+       * 
+ * + * string values_tensor_name = 1; + * @param value The bytes for valuesTensorName to set. + * @return This builder for chaining. + */ + public Builder setValuesTensorNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + valuesTensorName_ = value; + onChanged(); + return this; + } + + private java.lang.Object indicesTensorName_ = ""; + /** + *
+       * The indices Tensor must have dtype int64 and shape [?, ?].
+       * 
+ * + * string indices_tensor_name = 2; + * @return The indicesTensorName. + */ + public java.lang.String getIndicesTensorName() { + java.lang.Object ref = indicesTensorName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + indicesTensorName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The indices Tensor must have dtype int64 and shape [?, ?].
+       * 
+ * + * string indices_tensor_name = 2; + * @return The bytes for indicesTensorName. + */ + public com.google.protobuf.ByteString + getIndicesTensorNameBytes() { + java.lang.Object ref = indicesTensorName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + indicesTensorName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The indices Tensor must have dtype int64 and shape [?, ?].
+       * 
+ * + * string indices_tensor_name = 2; + * @param value The indicesTensorName to set. + * @return This builder for chaining. + */ + public Builder setIndicesTensorName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + indicesTensorName_ = value; + onChanged(); + return this; + } + /** + *
+       * The indices Tensor must have dtype int64 and shape [?, ?].
+       * 
+ * + * string indices_tensor_name = 2; + * @return This builder for chaining. + */ + public Builder clearIndicesTensorName() { + + indicesTensorName_ = getDefaultInstance().getIndicesTensorName(); + onChanged(); + return this; + } + /** + *
+       * The indices Tensor must have dtype int64 and shape [?, ?].
+       * 
+ * + * string indices_tensor_name = 2; + * @param value The bytes for indicesTensorName to set. + * @return This builder for chaining. + */ + public Builder setIndicesTensorNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + indicesTensorName_ = value; + onChanged(); + return this; + } + + private java.lang.Object denseShapeTensorName_ = ""; + /** + *
+       * The dynamic logical shape represented by the SparseTensor is recorded in
+       * the Tensor referenced here.  It must have dtype int64 and shape [?].
+       * 
+ * + * string dense_shape_tensor_name = 3; + * @return The denseShapeTensorName. + */ + public java.lang.String getDenseShapeTensorName() { + java.lang.Object ref = denseShapeTensorName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + denseShapeTensorName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The dynamic logical shape represented by the SparseTensor is recorded in
+       * the Tensor referenced here.  It must have dtype int64 and shape [?].
+       * 
+ * + * string dense_shape_tensor_name = 3; + * @return The bytes for denseShapeTensorName. + */ + public com.google.protobuf.ByteString + getDenseShapeTensorNameBytes() { + java.lang.Object ref = denseShapeTensorName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + denseShapeTensorName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The dynamic logical shape represented by the SparseTensor is recorded in
+       * the Tensor referenced here.  It must have dtype int64 and shape [?].
+       * 
+ * + * string dense_shape_tensor_name = 3; + * @param value The denseShapeTensorName to set. + * @return This builder for chaining. + */ + public Builder setDenseShapeTensorName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + denseShapeTensorName_ = value; + onChanged(); + return this; + } + /** + *
+       * The dynamic logical shape represented by the SparseTensor is recorded in
+       * the Tensor referenced here.  It must have dtype int64 and shape [?].
+       * 
+ * + * string dense_shape_tensor_name = 3; + * @return This builder for chaining. + */ + public Builder clearDenseShapeTensorName() { + + denseShapeTensorName_ = getDefaultInstance().getDenseShapeTensorName(); + onChanged(); + return this; + } + /** + *
+       * The dynamic logical shape represented by the SparseTensor is recorded in
+       * the Tensor referenced here.  It must have dtype int64 and shape [?].
+       * 
+ * + * string dense_shape_tensor_name = 3; + * @param value The bytes for denseShapeTensorName to set. + * @return This builder for chaining. + */ + public Builder setDenseShapeTensorNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + denseShapeTensorName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.TensorInfo.CooSparse) + } + + // @@protoc_insertion_point(class_scope:tensorflow.TensorInfo.CooSparse) + private static final org.tensorflow.proto.TensorInfo.CooSparse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.TensorInfo.CooSparse(); + } + + public static org.tensorflow.proto.TensorInfo.CooSparse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CooSparse 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 org.tensorflow.proto.TensorInfo.CooSparse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CompositeTensorOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.TensorInfo.CompositeTensor) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The serialized TypeSpec for the composite tensor.
+     * 
+ * + * .tensorflow.TypeSpecProto type_spec = 1; + * @return Whether the typeSpec field is set. + */ + boolean hasTypeSpec(); + /** + *
+     * The serialized TypeSpec for the composite tensor.
+     * 
+ * + * .tensorflow.TypeSpecProto type_spec = 1; + * @return The typeSpec. + */ + org.tensorflow.proto.Struct.TypeSpecProto getTypeSpec(); + /** + *
+     * The serialized TypeSpec for the composite tensor.
+     * 
+ * + * .tensorflow.TypeSpecProto type_spec = 1; + */ + org.tensorflow.proto.Struct.TypeSpecProtoOrBuilder getTypeSpecOrBuilder(); + + /** + *
+     * A TensorInfo for each flattened component tensor.
+     * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + java.util.List + getComponentsList(); + /** + *
+     * A TensorInfo for each flattened component tensor.
+     * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + org.tensorflow.proto.TensorInfo getComponents(int index); + /** + *
+     * A TensorInfo for each flattened component tensor.
+     * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + int getComponentsCount(); + /** + *
+     * A TensorInfo for each flattened component tensor.
+     * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + java.util.List + getComponentsOrBuilderList(); + /** + *
+     * A TensorInfo for each flattened component tensor.
+     * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + org.tensorflow.proto.TensorInfoOrBuilder getComponentsOrBuilder( + int index); + } + /** + *
+   * Generic encoding for composite tensors.
+   * 
+ * + * Protobuf type {@code tensorflow.TensorInfo.CompositeTensor} + */ + public static final class CompositeTensor extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.TensorInfo.CompositeTensor) + CompositeTensorOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompositeTensor.newBuilder() to construct. + private CompositeTensor(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompositeTensor() { + components_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CompositeTensor(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_TensorInfo_CompositeTensor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_TensorInfo_CompositeTensor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TensorInfo.CompositeTensor.class, org.tensorflow.proto.TensorInfo.CompositeTensor.Builder.class); + } + + public static final int TYPE_SPEC_FIELD_NUMBER = 1; + private org.tensorflow.proto.Struct.TypeSpecProto typeSpec_; + /** + *
+     * The serialized TypeSpec for the composite tensor.
+     * 
+ * + * .tensorflow.TypeSpecProto type_spec = 1; + * @return Whether the typeSpec field is set. + */ + @java.lang.Override + public boolean hasTypeSpec() { + return typeSpec_ != null; + } + /** + *
+     * The serialized TypeSpec for the composite tensor.
+     * 
+ * + * .tensorflow.TypeSpecProto type_spec = 1; + * @return The typeSpec. + */ + @java.lang.Override + public org.tensorflow.proto.Struct.TypeSpecProto getTypeSpec() { + return typeSpec_ == null ? org.tensorflow.proto.Struct.TypeSpecProto.getDefaultInstance() : typeSpec_; + } + /** + *
+     * The serialized TypeSpec for the composite tensor.
+     * 
+ * + * .tensorflow.TypeSpecProto type_spec = 1; + */ + @java.lang.Override + public org.tensorflow.proto.Struct.TypeSpecProtoOrBuilder getTypeSpecOrBuilder() { + return getTypeSpec(); + } + + public static final int COMPONENTS_FIELD_NUMBER = 2; + private java.util.List components_; + /** + *
+     * A TensorInfo for each flattened component tensor.
+     * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + @java.lang.Override + public java.util.List getComponentsList() { + return components_; + } + /** + *
+     * A TensorInfo for each flattened component tensor.
+     * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + @java.lang.Override + public java.util.List + getComponentsOrBuilderList() { + return components_; + } + /** + *
+     * A TensorInfo for each flattened component tensor.
+     * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + @java.lang.Override + public int getComponentsCount() { + return components_.size(); + } + /** + *
+     * A TensorInfo for each flattened component tensor.
+     * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + @java.lang.Override + public org.tensorflow.proto.TensorInfo getComponents(int index) { + return components_.get(index); + } + /** + *
+     * A TensorInfo for each flattened component tensor.
+     * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + @java.lang.Override + public org.tensorflow.proto.TensorInfoOrBuilder getComponentsOrBuilder( + int index) { + return components_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (typeSpec_ != null) { + output.writeMessage(1, getTypeSpec()); + } + for (int i = 0; i < components_.size(); i++) { + output.writeMessage(2, components_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeSpec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTypeSpec()); + } + for (int i = 0; i < components_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, components_.get(i)); + } + 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 org.tensorflow.proto.TensorInfo.CompositeTensor)) { + return super.equals(obj); + } + org.tensorflow.proto.TensorInfo.CompositeTensor other = (org.tensorflow.proto.TensorInfo.CompositeTensor) obj; + + if (hasTypeSpec() != other.hasTypeSpec()) return false; + if (hasTypeSpec()) { + if (!getTypeSpec() + .equals(other.getTypeSpec())) return false; + } + if (!getComponentsList() + .equals(other.getComponentsList())) 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 (hasTypeSpec()) { + hash = (37 * hash) + TYPE_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getTypeSpec().hashCode(); + } + if (getComponentsCount() > 0) { + hash = (37 * hash) + COMPONENTS_FIELD_NUMBER; + hash = (53 * hash) + getComponentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.TensorInfo.CompositeTensor parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorInfo.CompositeTensor parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorInfo.CompositeTensor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorInfo.CompositeTensor parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorInfo.CompositeTensor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorInfo.CompositeTensor parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorInfo.CompositeTensor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorInfo.CompositeTensor 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 org.tensorflow.proto.TensorInfo.CompositeTensor parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorInfo.CompositeTensor 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 org.tensorflow.proto.TensorInfo.CompositeTensor parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorInfo.CompositeTensor 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(org.tensorflow.proto.TensorInfo.CompositeTensor 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; + } + /** + *
+     * Generic encoding for composite tensors.
+     * 
+ * + * Protobuf type {@code tensorflow.TensorInfo.CompositeTensor} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.TensorInfo.CompositeTensor) + org.tensorflow.proto.TensorInfo.CompositeTensorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_TensorInfo_CompositeTensor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_TensorInfo_CompositeTensor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TensorInfo.CompositeTensor.class, org.tensorflow.proto.TensorInfo.CompositeTensor.Builder.class); + } + + // Construct using org.tensorflow.proto.TensorInfo.CompositeTensor.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (typeSpecBuilder_ == null) { + typeSpec_ = null; + } else { + typeSpec_ = null; + typeSpecBuilder_ = null; + } + if (componentsBuilder_ == null) { + components_ = java.util.Collections.emptyList(); + } else { + components_ = null; + componentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_TensorInfo_CompositeTensor_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.TensorInfo.CompositeTensor getDefaultInstanceForType() { + return org.tensorflow.proto.TensorInfo.CompositeTensor.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.TensorInfo.CompositeTensor build() { + org.tensorflow.proto.TensorInfo.CompositeTensor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.TensorInfo.CompositeTensor buildPartial() { + org.tensorflow.proto.TensorInfo.CompositeTensor result = new org.tensorflow.proto.TensorInfo.CompositeTensor(this); + int from_bitField0_ = bitField0_; + if (typeSpecBuilder_ == null) { + result.typeSpec_ = typeSpec_; + } else { + result.typeSpec_ = typeSpecBuilder_.build(); + } + if (componentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + components_ = java.util.Collections.unmodifiableList(components_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.components_ = components_; + } else { + result.components_ = componentsBuilder_.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 org.tensorflow.proto.TensorInfo.CompositeTensor) { + return mergeFrom((org.tensorflow.proto.TensorInfo.CompositeTensor)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.TensorInfo.CompositeTensor other) { + if (other == org.tensorflow.proto.TensorInfo.CompositeTensor.getDefaultInstance()) return this; + if (other.hasTypeSpec()) { + mergeTypeSpec(other.getTypeSpec()); + } + if (componentsBuilder_ == null) { + if (!other.components_.isEmpty()) { + if (components_.isEmpty()) { + components_ = other.components_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureComponentsIsMutable(); + components_.addAll(other.components_); + } + onChanged(); + } + } else { + if (!other.components_.isEmpty()) { + if (componentsBuilder_.isEmpty()) { + componentsBuilder_.dispose(); + componentsBuilder_ = null; + components_ = other.components_; + bitField0_ = (bitField0_ & ~0x00000001); + componentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getComponentsFieldBuilder() : null; + } else { + componentsBuilder_.addAllMessages(other.components_); + } + } + } + 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( + getTypeSpecFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + org.tensorflow.proto.TensorInfo m = + input.readMessage( + org.tensorflow.proto.TensorInfo.parser(), + extensionRegistry); + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.add(m); + } else { + componentsBuilder_.addMessage(m); + } + 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 org.tensorflow.proto.Struct.TypeSpecProto typeSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.TypeSpecProto, org.tensorflow.proto.Struct.TypeSpecProto.Builder, org.tensorflow.proto.Struct.TypeSpecProtoOrBuilder> typeSpecBuilder_; + /** + *
+       * The serialized TypeSpec for the composite tensor.
+       * 
+ * + * .tensorflow.TypeSpecProto type_spec = 1; + * @return Whether the typeSpec field is set. + */ + public boolean hasTypeSpec() { + return typeSpecBuilder_ != null || typeSpec_ != null; + } + /** + *
+       * The serialized TypeSpec for the composite tensor.
+       * 
+ * + * .tensorflow.TypeSpecProto type_spec = 1; + * @return The typeSpec. + */ + public org.tensorflow.proto.Struct.TypeSpecProto getTypeSpec() { + if (typeSpecBuilder_ == null) { + return typeSpec_ == null ? org.tensorflow.proto.Struct.TypeSpecProto.getDefaultInstance() : typeSpec_; + } else { + return typeSpecBuilder_.getMessage(); + } + } + /** + *
+       * The serialized TypeSpec for the composite tensor.
+       * 
+ * + * .tensorflow.TypeSpecProto type_spec = 1; + */ + public Builder setTypeSpec(org.tensorflow.proto.Struct.TypeSpecProto value) { + if (typeSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + typeSpec_ = value; + onChanged(); + } else { + typeSpecBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The serialized TypeSpec for the composite tensor.
+       * 
+ * + * .tensorflow.TypeSpecProto type_spec = 1; + */ + public Builder setTypeSpec( + org.tensorflow.proto.Struct.TypeSpecProto.Builder builderForValue) { + if (typeSpecBuilder_ == null) { + typeSpec_ = builderForValue.build(); + onChanged(); + } else { + typeSpecBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The serialized TypeSpec for the composite tensor.
+       * 
+ * + * .tensorflow.TypeSpecProto type_spec = 1; + */ + public Builder mergeTypeSpec(org.tensorflow.proto.Struct.TypeSpecProto value) { + if (typeSpecBuilder_ == null) { + if (typeSpec_ != null) { + typeSpec_ = + org.tensorflow.proto.Struct.TypeSpecProto.newBuilder(typeSpec_).mergeFrom(value).buildPartial(); + } else { + typeSpec_ = value; + } + onChanged(); + } else { + typeSpecBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The serialized TypeSpec for the composite tensor.
+       * 
+ * + * .tensorflow.TypeSpecProto type_spec = 1; + */ + public Builder clearTypeSpec() { + if (typeSpecBuilder_ == null) { + typeSpec_ = null; + onChanged(); + } else { + typeSpec_ = null; + typeSpecBuilder_ = null; + } + + return this; + } + /** + *
+       * The serialized TypeSpec for the composite tensor.
+       * 
+ * + * .tensorflow.TypeSpecProto type_spec = 1; + */ + public org.tensorflow.proto.Struct.TypeSpecProto.Builder getTypeSpecBuilder() { + + onChanged(); + return getTypeSpecFieldBuilder().getBuilder(); + } + /** + *
+       * The serialized TypeSpec for the composite tensor.
+       * 
+ * + * .tensorflow.TypeSpecProto type_spec = 1; + */ + public org.tensorflow.proto.Struct.TypeSpecProtoOrBuilder getTypeSpecOrBuilder() { + if (typeSpecBuilder_ != null) { + return typeSpecBuilder_.getMessageOrBuilder(); + } else { + return typeSpec_ == null ? + org.tensorflow.proto.Struct.TypeSpecProto.getDefaultInstance() : typeSpec_; + } + } + /** + *
+       * The serialized TypeSpec for the composite tensor.
+       * 
+ * + * .tensorflow.TypeSpecProto type_spec = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.TypeSpecProto, org.tensorflow.proto.Struct.TypeSpecProto.Builder, org.tensorflow.proto.Struct.TypeSpecProtoOrBuilder> + getTypeSpecFieldBuilder() { + if (typeSpecBuilder_ == null) { + typeSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.Struct.TypeSpecProto, org.tensorflow.proto.Struct.TypeSpecProto.Builder, org.tensorflow.proto.Struct.TypeSpecProtoOrBuilder>( + getTypeSpec(), + getParentForChildren(), + isClean()); + typeSpec_ = null; + } + return typeSpecBuilder_; + } + + private java.util.List components_ = + java.util.Collections.emptyList(); + private void ensureComponentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + components_ = new java.util.ArrayList(components_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorInfo, org.tensorflow.proto.TensorInfo.Builder, org.tensorflow.proto.TensorInfoOrBuilder> componentsBuilder_; + + /** + *
+       * A TensorInfo for each flattened component tensor.
+       * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + public java.util.List getComponentsList() { + if (componentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(components_); + } else { + return componentsBuilder_.getMessageList(); + } + } + /** + *
+       * A TensorInfo for each flattened component tensor.
+       * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + public int getComponentsCount() { + if (componentsBuilder_ == null) { + return components_.size(); + } else { + return componentsBuilder_.getCount(); + } + } + /** + *
+       * A TensorInfo for each flattened component tensor.
+       * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + public org.tensorflow.proto.TensorInfo getComponents(int index) { + if (componentsBuilder_ == null) { + return components_.get(index); + } else { + return componentsBuilder_.getMessage(index); + } + } + /** + *
+       * A TensorInfo for each flattened component tensor.
+       * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + public Builder setComponents( + int index, org.tensorflow.proto.TensorInfo value) { + if (componentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.set(index, value); + onChanged(); + } else { + componentsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A TensorInfo for each flattened component tensor.
+       * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + public Builder setComponents( + int index, org.tensorflow.proto.TensorInfo.Builder builderForValue) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.set(index, builderForValue.build()); + onChanged(); + } else { + componentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A TensorInfo for each flattened component tensor.
+       * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + public Builder addComponents(org.tensorflow.proto.TensorInfo value) { + if (componentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.add(value); + onChanged(); + } else { + componentsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A TensorInfo for each flattened component tensor.
+       * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + public Builder addComponents( + int index, org.tensorflow.proto.TensorInfo value) { + if (componentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.add(index, value); + onChanged(); + } else { + componentsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A TensorInfo for each flattened component tensor.
+       * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + public Builder addComponents( + org.tensorflow.proto.TensorInfo.Builder builderForValue) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.add(builderForValue.build()); + onChanged(); + } else { + componentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A TensorInfo for each flattened component tensor.
+       * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + public Builder addComponents( + int index, org.tensorflow.proto.TensorInfo.Builder builderForValue) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.add(index, builderForValue.build()); + onChanged(); + } else { + componentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A TensorInfo for each flattened component tensor.
+       * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + public Builder addAllComponents( + java.lang.Iterable values) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, components_); + onChanged(); + } else { + componentsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A TensorInfo for each flattened component tensor.
+       * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + public Builder clearComponents() { + if (componentsBuilder_ == null) { + components_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + componentsBuilder_.clear(); + } + return this; + } + /** + *
+       * A TensorInfo for each flattened component tensor.
+       * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + public Builder removeComponents(int index) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.remove(index); + onChanged(); + } else { + componentsBuilder_.remove(index); + } + return this; + } + /** + *
+       * A TensorInfo for each flattened component tensor.
+       * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + public org.tensorflow.proto.TensorInfo.Builder getComponentsBuilder( + int index) { + return getComponentsFieldBuilder().getBuilder(index); + } + /** + *
+       * A TensorInfo for each flattened component tensor.
+       * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + public org.tensorflow.proto.TensorInfoOrBuilder getComponentsOrBuilder( + int index) { + if (componentsBuilder_ == null) { + return components_.get(index); } else { + return componentsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A TensorInfo for each flattened component tensor.
+       * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + public java.util.List + getComponentsOrBuilderList() { + if (componentsBuilder_ != null) { + return componentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(components_); + } + } + /** + *
+       * A TensorInfo for each flattened component tensor.
+       * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + public org.tensorflow.proto.TensorInfo.Builder addComponentsBuilder() { + return getComponentsFieldBuilder().addBuilder( + org.tensorflow.proto.TensorInfo.getDefaultInstance()); + } + /** + *
+       * A TensorInfo for each flattened component tensor.
+       * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + public org.tensorflow.proto.TensorInfo.Builder addComponentsBuilder( + int index) { + return getComponentsFieldBuilder().addBuilder( + index, org.tensorflow.proto.TensorInfo.getDefaultInstance()); + } + /** + *
+       * A TensorInfo for each flattened component tensor.
+       * 
+ * + * repeated .tensorflow.TensorInfo components = 2; + */ + public java.util.List + getComponentsBuilderList() { + return getComponentsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorInfo, org.tensorflow.proto.TensorInfo.Builder, org.tensorflow.proto.TensorInfoOrBuilder> + getComponentsFieldBuilder() { + if (componentsBuilder_ == null) { + componentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorInfo, org.tensorflow.proto.TensorInfo.Builder, org.tensorflow.proto.TensorInfoOrBuilder>( + components_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + components_ = null; + } + return componentsBuilder_; + } + @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:tensorflow.TensorInfo.CompositeTensor) + } + + // @@protoc_insertion_point(class_scope:tensorflow.TensorInfo.CompositeTensor) + private static final org.tensorflow.proto.TensorInfo.CompositeTensor DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.TensorInfo.CompositeTensor(); + } + + public static org.tensorflow.proto.TensorInfo.CompositeTensor getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompositeTensor 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 org.tensorflow.proto.TensorInfo.CompositeTensor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int encodingCase_ = 0; + private java.lang.Object encoding_; + public enum EncodingCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + NAME(1), + COO_SPARSE(4), + COMPOSITE_TENSOR(5), + ENCODING_NOT_SET(0); + private final int value; + private EncodingCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EncodingCase valueOf(int value) { + return forNumber(value); + } + + public static EncodingCase forNumber(int value) { + switch (value) { + case 1: return NAME; + case 4: return COO_SPARSE; + case 5: return COMPOSITE_TENSOR; + case 0: return ENCODING_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public EncodingCase + getEncodingCase() { + return EncodingCase.forNumber( + encodingCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + /** + *
+   * For dense `Tensor`s, the name of the tensor in the graph.
+   * 
+ * + * string name = 1; + * @return Whether the name field is set. + */ + public boolean hasName() { + return encodingCase_ == 1; + } + /** + *
+   * For dense `Tensor`s, the name of the tensor in the graph.
+   * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = ""; + if (encodingCase_ == 1) { + ref = encoding_; + } + 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(); + if (encodingCase_ == 1) { + encoding_ = s; + } + return s; + } + } + /** + *
+   * For dense `Tensor`s, the name of the tensor in the graph.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = ""; + if (encodingCase_ == 1) { + ref = encoding_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (encodingCase_ == 1) { + encoding_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COO_SPARSE_FIELD_NUMBER = 4; + /** + *
+   * There are many possible encodings of sparse matrices
+   * (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
+   * uses only the COO encoding.  This is supported and documented in the
+   * SparseTensor Python class.
+   * 
+ * + * .tensorflow.TensorInfo.CooSparse coo_sparse = 4; + * @return Whether the cooSparse field is set. + */ + @java.lang.Override + public boolean hasCooSparse() { + return encodingCase_ == 4; + } + /** + *
+   * There are many possible encodings of sparse matrices
+   * (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
+   * uses only the COO encoding.  This is supported and documented in the
+   * SparseTensor Python class.
+   * 
+ * + * .tensorflow.TensorInfo.CooSparse coo_sparse = 4; + * @return The cooSparse. + */ + @java.lang.Override + public org.tensorflow.proto.TensorInfo.CooSparse getCooSparse() { + if (encodingCase_ == 4) { + return (org.tensorflow.proto.TensorInfo.CooSparse) encoding_; + } + return org.tensorflow.proto.TensorInfo.CooSparse.getDefaultInstance(); + } + /** + *
+   * There are many possible encodings of sparse matrices
+   * (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
+   * uses only the COO encoding.  This is supported and documented in the
+   * SparseTensor Python class.
+   * 
+ * + * .tensorflow.TensorInfo.CooSparse coo_sparse = 4; + */ + @java.lang.Override + public org.tensorflow.proto.TensorInfo.CooSparseOrBuilder getCooSparseOrBuilder() { + if (encodingCase_ == 4) { + return (org.tensorflow.proto.TensorInfo.CooSparse) encoding_; + } + return org.tensorflow.proto.TensorInfo.CooSparse.getDefaultInstance(); + } + + public static final int COMPOSITE_TENSOR_FIELD_NUMBER = 5; + /** + *
+   * Generic encoding for CompositeTensors.
+   * 
+ * + * .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; + * @return Whether the compositeTensor field is set. + */ + @java.lang.Override + public boolean hasCompositeTensor() { + return encodingCase_ == 5; + } + /** + *
+   * Generic encoding for CompositeTensors.
+   * 
+ * + * .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; + * @return The compositeTensor. + */ + @java.lang.Override + public org.tensorflow.proto.TensorInfo.CompositeTensor getCompositeTensor() { + if (encodingCase_ == 5) { + return (org.tensorflow.proto.TensorInfo.CompositeTensor) encoding_; + } + return org.tensorflow.proto.TensorInfo.CompositeTensor.getDefaultInstance(); + } + /** + *
+   * Generic encoding for CompositeTensors.
+   * 
+ * + * .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; + */ + @java.lang.Override + public org.tensorflow.proto.TensorInfo.CompositeTensorOrBuilder getCompositeTensorOrBuilder() { + if (encodingCase_ == 5) { + return (org.tensorflow.proto.TensorInfo.CompositeTensor) encoding_; + } + return org.tensorflow.proto.TensorInfo.CompositeTensor.getDefaultInstance(); + } + + public static final int DTYPE_FIELD_NUMBER = 2; + private int dtype_; + /** + * .tensorflow.DataType dtype = 2; + * @return The enum numeric value on the wire for dtype. + */ + @java.lang.Override public int getDtypeValue() { + return dtype_; + } + /** + * .tensorflow.DataType dtype = 2; + * @return The dtype. + */ + @java.lang.Override public org.tensorflow.proto.DataType getDtype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + + public static final int TENSOR_SHAPE_FIELD_NUMBER = 3; + private org.tensorflow.proto.TensorShapeProto tensorShape_; + /** + *
+   * The static shape should be recorded here, to the extent that it can
+   * be known in advance.  In the case of a SparseTensor, this field describes
+   * the logical shape of the represented tensor (aka dense_shape).
+   * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 3; + * @return Whether the tensorShape field is set. + */ + @java.lang.Override + public boolean hasTensorShape() { + return tensorShape_ != null; + } + /** + *
+   * The static shape should be recorded here, to the extent that it can
+   * be known in advance.  In the case of a SparseTensor, this field describes
+   * the logical shape of the represented tensor (aka dense_shape).
+   * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 3; + * @return The tensorShape. + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto getTensorShape() { + return tensorShape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : tensorShape_; + } + /** + *
+   * The static shape should be recorded here, to the extent that it can
+   * be known in advance.  In the case of a SparseTensor, this field describes
+   * the logical shape of the represented tensor (aka dense_shape).
+   * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 3; + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProtoOrBuilder getTensorShapeOrBuilder() { + return getTensorShape(); + } + + 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 (encodingCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, encoding_); + } + if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + output.writeEnum(2, dtype_); + } + if (tensorShape_ != null) { + output.writeMessage(3, getTensorShape()); + } + if (encodingCase_ == 4) { + output.writeMessage(4, (org.tensorflow.proto.TensorInfo.CooSparse) encoding_); + } + if (encodingCase_ == 5) { + output.writeMessage(5, (org.tensorflow.proto.TensorInfo.CompositeTensor) encoding_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (encodingCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, encoding_); + } + if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, dtype_); + } + if (tensorShape_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTensorShape()); + } + if (encodingCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (org.tensorflow.proto.TensorInfo.CooSparse) encoding_); + } + if (encodingCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (org.tensorflow.proto.TensorInfo.CompositeTensor) encoding_); + } + 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 org.tensorflow.proto.TensorInfo)) { + return super.equals(obj); + } + org.tensorflow.proto.TensorInfo other = (org.tensorflow.proto.TensorInfo) obj; + + if (dtype_ != other.dtype_) return false; + if (hasTensorShape() != other.hasTensorShape()) return false; + if (hasTensorShape()) { + if (!getTensorShape() + .equals(other.getTensorShape())) return false; + } + if (!getEncodingCase().equals(other.getEncodingCase())) return false; + switch (encodingCase_) { + case 1: + if (!getName() + .equals(other.getName())) return false; + break; + case 4: + if (!getCooSparse() + .equals(other.getCooSparse())) return false; + break; + case 5: + if (!getCompositeTensor() + .equals(other.getCompositeTensor())) return false; + break; + case 0: + default: + } + 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) + DTYPE_FIELD_NUMBER; + hash = (53 * hash) + dtype_; + if (hasTensorShape()) { + hash = (37 * hash) + TENSOR_SHAPE_FIELD_NUMBER; + hash = (53 * hash) + getTensorShape().hashCode(); + } + switch (encodingCase_) { + case 1: + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + break; + case 4: + hash = (37 * hash) + COO_SPARSE_FIELD_NUMBER; + hash = (53 * hash) + getCooSparse().hashCode(); + break; + case 5: + hash = (37 * hash) + COMPOSITE_TENSOR_FIELD_NUMBER; + hash = (53 * hash) + getCompositeTensor().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.TensorInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorInfo 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 org.tensorflow.proto.TensorInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorInfo 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 org.tensorflow.proto.TensorInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorInfo 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(org.tensorflow.proto.TensorInfo 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; + } + /** + *
+   * Information about a Tensor necessary for feeding or retrieval.
+   * 
+ * + * Protobuf type {@code tensorflow.TensorInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.TensorInfo) + org.tensorflow.proto.TensorInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_TensorInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_TensorInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TensorInfo.class, org.tensorflow.proto.TensorInfo.Builder.class); + } + + // Construct using org.tensorflow.proto.TensorInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (cooSparseBuilder_ != null) { + cooSparseBuilder_.clear(); + } + if (compositeTensorBuilder_ != null) { + compositeTensorBuilder_.clear(); + } + dtype_ = 0; + + if (tensorShapeBuilder_ == null) { + tensorShape_ = null; + } else { + tensorShape_ = null; + tensorShapeBuilder_ = null; + } + encodingCase_ = 0; + encoding_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.MetaGraphProtos.internal_static_tensorflow_TensorInfo_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.TensorInfo getDefaultInstanceForType() { + return org.tensorflow.proto.TensorInfo.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.TensorInfo build() { + org.tensorflow.proto.TensorInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.TensorInfo buildPartial() { + org.tensorflow.proto.TensorInfo result = new org.tensorflow.proto.TensorInfo(this); + if (encodingCase_ == 1) { + result.encoding_ = encoding_; + } + if (encodingCase_ == 4) { + if (cooSparseBuilder_ == null) { + result.encoding_ = encoding_; + } else { + result.encoding_ = cooSparseBuilder_.build(); + } + } + if (encodingCase_ == 5) { + if (compositeTensorBuilder_ == null) { + result.encoding_ = encoding_; + } else { + result.encoding_ = compositeTensorBuilder_.build(); + } + } + result.dtype_ = dtype_; + if (tensorShapeBuilder_ == null) { + result.tensorShape_ = tensorShape_; + } else { + result.tensorShape_ = tensorShapeBuilder_.build(); + } + result.encodingCase_ = encodingCase_; + 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 org.tensorflow.proto.TensorInfo) { + return mergeFrom((org.tensorflow.proto.TensorInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.TensorInfo other) { + if (other == org.tensorflow.proto.TensorInfo.getDefaultInstance()) return this; + if (other.dtype_ != 0) { + setDtypeValue(other.getDtypeValue()); + } + if (other.hasTensorShape()) { + mergeTensorShape(other.getTensorShape()); + } + switch (other.getEncodingCase()) { + case NAME: { + encodingCase_ = 1; + encoding_ = other.encoding_; + onChanged(); + break; + } + case COO_SPARSE: { + mergeCooSparse(other.getCooSparse()); + break; + } + case COMPOSITE_TENSOR: { + mergeCompositeTensor(other.getCompositeTensor()); + break; + } + case ENCODING_NOT_SET: { + break; + } + } + 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: { + java.lang.String s = input.readStringRequireUtf8(); + encodingCase_ = 1; + encoding_ = s; + break; + } // case 10 + case 16: { + dtype_ = input.readEnum(); + + break; + } // case 16 + case 26: { + input.readMessage( + getTensorShapeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + input.readMessage( + getCooSparseFieldBuilder().getBuilder(), + extensionRegistry); + encodingCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getCompositeTensorFieldBuilder().getBuilder(), + extensionRegistry); + encodingCase_ = 5; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int encodingCase_ = 0; + private java.lang.Object encoding_; + public EncodingCase + getEncodingCase() { + return EncodingCase.forNumber( + encodingCase_); + } + + public Builder clearEncoding() { + encodingCase_ = 0; + encoding_ = null; + onChanged(); + return this; + } + + + /** + *
+     * For dense `Tensor`s, the name of the tensor in the graph.
+     * 
+ * + * string name = 1; + * @return Whether the name field is set. + */ + @java.lang.Override + public boolean hasName() { + return encodingCase_ == 1; + } + /** + *
+     * For dense `Tensor`s, the name of the tensor in the graph.
+     * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = ""; + if (encodingCase_ == 1) { + ref = encoding_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (encodingCase_ == 1) { + encoding_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * For dense `Tensor`s, the name of the tensor in the graph.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = ""; + if (encodingCase_ == 1) { + ref = encoding_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (encodingCase_ == 1) { + encoding_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * For dense `Tensor`s, the name of the tensor in the graph.
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + encodingCase_ = 1; + encoding_ = value; + onChanged(); + return this; + } + /** + *
+     * For dense `Tensor`s, the name of the tensor in the graph.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + if (encodingCase_ == 1) { + encodingCase_ = 0; + encoding_ = null; + onChanged(); + } + return this; + } + /** + *
+     * For dense `Tensor`s, the name of the tensor in the graph.
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + encodingCase_ = 1; + encoding_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorInfo.CooSparse, org.tensorflow.proto.TensorInfo.CooSparse.Builder, org.tensorflow.proto.TensorInfo.CooSparseOrBuilder> cooSparseBuilder_; + /** + *
+     * There are many possible encodings of sparse matrices
+     * (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
+     * uses only the COO encoding.  This is supported and documented in the
+     * SparseTensor Python class.
+     * 
+ * + * .tensorflow.TensorInfo.CooSparse coo_sparse = 4; + * @return Whether the cooSparse field is set. + */ + @java.lang.Override + public boolean hasCooSparse() { + return encodingCase_ == 4; + } + /** + *
+     * There are many possible encodings of sparse matrices
+     * (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
+     * uses only the COO encoding.  This is supported and documented in the
+     * SparseTensor Python class.
+     * 
+ * + * .tensorflow.TensorInfo.CooSparse coo_sparse = 4; + * @return The cooSparse. + */ + @java.lang.Override + public org.tensorflow.proto.TensorInfo.CooSparse getCooSparse() { + if (cooSparseBuilder_ == null) { + if (encodingCase_ == 4) { + return (org.tensorflow.proto.TensorInfo.CooSparse) encoding_; + } + return org.tensorflow.proto.TensorInfo.CooSparse.getDefaultInstance(); + } else { + if (encodingCase_ == 4) { + return cooSparseBuilder_.getMessage(); + } + return org.tensorflow.proto.TensorInfo.CooSparse.getDefaultInstance(); + } + } + /** + *
+     * There are many possible encodings of sparse matrices
+     * (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
+     * uses only the COO encoding.  This is supported and documented in the
+     * SparseTensor Python class.
+     * 
+ * + * .tensorflow.TensorInfo.CooSparse coo_sparse = 4; + */ + public Builder setCooSparse(org.tensorflow.proto.TensorInfo.CooSparse value) { + if (cooSparseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encoding_ = value; + onChanged(); + } else { + cooSparseBuilder_.setMessage(value); + } + encodingCase_ = 4; + return this; + } + /** + *
+     * There are many possible encodings of sparse matrices
+     * (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
+     * uses only the COO encoding.  This is supported and documented in the
+     * SparseTensor Python class.
+     * 
+ * + * .tensorflow.TensorInfo.CooSparse coo_sparse = 4; + */ + public Builder setCooSparse( + org.tensorflow.proto.TensorInfo.CooSparse.Builder builderForValue) { + if (cooSparseBuilder_ == null) { + encoding_ = builderForValue.build(); + onChanged(); + } else { + cooSparseBuilder_.setMessage(builderForValue.build()); + } + encodingCase_ = 4; + return this; + } + /** + *
+     * There are many possible encodings of sparse matrices
+     * (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
+     * uses only the COO encoding.  This is supported and documented in the
+     * SparseTensor Python class.
+     * 
+ * + * .tensorflow.TensorInfo.CooSparse coo_sparse = 4; + */ + public Builder mergeCooSparse(org.tensorflow.proto.TensorInfo.CooSparse value) { + if (cooSparseBuilder_ == null) { + if (encodingCase_ == 4 && + encoding_ != org.tensorflow.proto.TensorInfo.CooSparse.getDefaultInstance()) { + encoding_ = org.tensorflow.proto.TensorInfo.CooSparse.newBuilder((org.tensorflow.proto.TensorInfo.CooSparse) encoding_) + .mergeFrom(value).buildPartial(); + } else { + encoding_ = value; + } + onChanged(); + } else { + if (encodingCase_ == 4) { + cooSparseBuilder_.mergeFrom(value); + } else { + cooSparseBuilder_.setMessage(value); + } + } + encodingCase_ = 4; + return this; + } + /** + *
+     * There are many possible encodings of sparse matrices
+     * (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
+     * uses only the COO encoding.  This is supported and documented in the
+     * SparseTensor Python class.
+     * 
+ * + * .tensorflow.TensorInfo.CooSparse coo_sparse = 4; + */ + public Builder clearCooSparse() { + if (cooSparseBuilder_ == null) { + if (encodingCase_ == 4) { + encodingCase_ = 0; + encoding_ = null; + onChanged(); + } + } else { + if (encodingCase_ == 4) { + encodingCase_ = 0; + encoding_ = null; + } + cooSparseBuilder_.clear(); + } + return this; + } + /** + *
+     * There are many possible encodings of sparse matrices
+     * (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
+     * uses only the COO encoding.  This is supported and documented in the
+     * SparseTensor Python class.
+     * 
+ * + * .tensorflow.TensorInfo.CooSparse coo_sparse = 4; + */ + public org.tensorflow.proto.TensorInfo.CooSparse.Builder getCooSparseBuilder() { + return getCooSparseFieldBuilder().getBuilder(); + } + /** + *
+     * There are many possible encodings of sparse matrices
+     * (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
+     * uses only the COO encoding.  This is supported and documented in the
+     * SparseTensor Python class.
+     * 
+ * + * .tensorflow.TensorInfo.CooSparse coo_sparse = 4; + */ + @java.lang.Override + public org.tensorflow.proto.TensorInfo.CooSparseOrBuilder getCooSparseOrBuilder() { + if ((encodingCase_ == 4) && (cooSparseBuilder_ != null)) { + return cooSparseBuilder_.getMessageOrBuilder(); + } else { + if (encodingCase_ == 4) { + return (org.tensorflow.proto.TensorInfo.CooSparse) encoding_; + } + return org.tensorflow.proto.TensorInfo.CooSparse.getDefaultInstance(); + } + } + /** + *
+     * There are many possible encodings of sparse matrices
+     * (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
+     * uses only the COO encoding.  This is supported and documented in the
+     * SparseTensor Python class.
+     * 
+ * + * .tensorflow.TensorInfo.CooSparse coo_sparse = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorInfo.CooSparse, org.tensorflow.proto.TensorInfo.CooSparse.Builder, org.tensorflow.proto.TensorInfo.CooSparseOrBuilder> + getCooSparseFieldBuilder() { + if (cooSparseBuilder_ == null) { + if (!(encodingCase_ == 4)) { + encoding_ = org.tensorflow.proto.TensorInfo.CooSparse.getDefaultInstance(); + } + cooSparseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorInfo.CooSparse, org.tensorflow.proto.TensorInfo.CooSparse.Builder, org.tensorflow.proto.TensorInfo.CooSparseOrBuilder>( + (org.tensorflow.proto.TensorInfo.CooSparse) encoding_, + getParentForChildren(), + isClean()); + encoding_ = null; + } + encodingCase_ = 4; + onChanged();; + return cooSparseBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorInfo.CompositeTensor, org.tensorflow.proto.TensorInfo.CompositeTensor.Builder, org.tensorflow.proto.TensorInfo.CompositeTensorOrBuilder> compositeTensorBuilder_; + /** + *
+     * Generic encoding for CompositeTensors.
+     * 
+ * + * .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; + * @return Whether the compositeTensor field is set. + */ + @java.lang.Override + public boolean hasCompositeTensor() { + return encodingCase_ == 5; + } + /** + *
+     * Generic encoding for CompositeTensors.
+     * 
+ * + * .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; + * @return The compositeTensor. + */ + @java.lang.Override + public org.tensorflow.proto.TensorInfo.CompositeTensor getCompositeTensor() { + if (compositeTensorBuilder_ == null) { + if (encodingCase_ == 5) { + return (org.tensorflow.proto.TensorInfo.CompositeTensor) encoding_; + } + return org.tensorflow.proto.TensorInfo.CompositeTensor.getDefaultInstance(); + } else { + if (encodingCase_ == 5) { + return compositeTensorBuilder_.getMessage(); + } + return org.tensorflow.proto.TensorInfo.CompositeTensor.getDefaultInstance(); + } + } + /** + *
+     * Generic encoding for CompositeTensors.
+     * 
+ * + * .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; + */ + public Builder setCompositeTensor(org.tensorflow.proto.TensorInfo.CompositeTensor value) { + if (compositeTensorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encoding_ = value; + onChanged(); + } else { + compositeTensorBuilder_.setMessage(value); + } + encodingCase_ = 5; + return this; + } + /** + *
+     * Generic encoding for CompositeTensors.
+     * 
+ * + * .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; + */ + public Builder setCompositeTensor( + org.tensorflow.proto.TensorInfo.CompositeTensor.Builder builderForValue) { + if (compositeTensorBuilder_ == null) { + encoding_ = builderForValue.build(); + onChanged(); + } else { + compositeTensorBuilder_.setMessage(builderForValue.build()); + } + encodingCase_ = 5; + return this; + } + /** + *
+     * Generic encoding for CompositeTensors.
+     * 
+ * + * .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; + */ + public Builder mergeCompositeTensor(org.tensorflow.proto.TensorInfo.CompositeTensor value) { + if (compositeTensorBuilder_ == null) { + if (encodingCase_ == 5 && + encoding_ != org.tensorflow.proto.TensorInfo.CompositeTensor.getDefaultInstance()) { + encoding_ = org.tensorflow.proto.TensorInfo.CompositeTensor.newBuilder((org.tensorflow.proto.TensorInfo.CompositeTensor) encoding_) + .mergeFrom(value).buildPartial(); + } else { + encoding_ = value; + } + onChanged(); + } else { + if (encodingCase_ == 5) { + compositeTensorBuilder_.mergeFrom(value); + } else { + compositeTensorBuilder_.setMessage(value); + } + } + encodingCase_ = 5; + return this; + } + /** + *
+     * Generic encoding for CompositeTensors.
+     * 
+ * + * .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; + */ + public Builder clearCompositeTensor() { + if (compositeTensorBuilder_ == null) { + if (encodingCase_ == 5) { + encodingCase_ = 0; + encoding_ = null; + onChanged(); + } + } else { + if (encodingCase_ == 5) { + encodingCase_ = 0; + encoding_ = null; + } + compositeTensorBuilder_.clear(); + } + return this; + } + /** + *
+     * Generic encoding for CompositeTensors.
+     * 
+ * + * .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; + */ + public org.tensorflow.proto.TensorInfo.CompositeTensor.Builder getCompositeTensorBuilder() { + return getCompositeTensorFieldBuilder().getBuilder(); + } + /** + *
+     * Generic encoding for CompositeTensors.
+     * 
+ * + * .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; + */ + @java.lang.Override + public org.tensorflow.proto.TensorInfo.CompositeTensorOrBuilder getCompositeTensorOrBuilder() { + if ((encodingCase_ == 5) && (compositeTensorBuilder_ != null)) { + return compositeTensorBuilder_.getMessageOrBuilder(); + } else { + if (encodingCase_ == 5) { + return (org.tensorflow.proto.TensorInfo.CompositeTensor) encoding_; + } + return org.tensorflow.proto.TensorInfo.CompositeTensor.getDefaultInstance(); + } + } + /** + *
+     * Generic encoding for CompositeTensors.
+     * 
+ * + * .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorInfo.CompositeTensor, org.tensorflow.proto.TensorInfo.CompositeTensor.Builder, org.tensorflow.proto.TensorInfo.CompositeTensorOrBuilder> + getCompositeTensorFieldBuilder() { + if (compositeTensorBuilder_ == null) { + if (!(encodingCase_ == 5)) { + encoding_ = org.tensorflow.proto.TensorInfo.CompositeTensor.getDefaultInstance(); + } + compositeTensorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorInfo.CompositeTensor, org.tensorflow.proto.TensorInfo.CompositeTensor.Builder, org.tensorflow.proto.TensorInfo.CompositeTensorOrBuilder>( + (org.tensorflow.proto.TensorInfo.CompositeTensor) encoding_, + getParentForChildren(), + isClean()); + encoding_ = null; + } + encodingCase_ = 5; + onChanged();; + return compositeTensorBuilder_; + } + + private int dtype_ = 0; + /** + * .tensorflow.DataType dtype = 2; + * @return The enum numeric value on the wire for dtype. + */ + @java.lang.Override public int getDtypeValue() { + return dtype_; + } + /** + * .tensorflow.DataType dtype = 2; + * @param value The enum numeric value on the wire for dtype to set. + * @return This builder for chaining. + */ + public Builder setDtypeValue(int value) { + + dtype_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.DataType dtype = 2; + * @return The dtype. + */ + @java.lang.Override + public org.tensorflow.proto.DataType getDtype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + /** + * .tensorflow.DataType dtype = 2; + * @param value The dtype to set. + * @return This builder for chaining. + */ + public Builder setDtype(org.tensorflow.proto.DataType value) { + if (value == null) { + throw new NullPointerException(); + } + + dtype_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.DataType dtype = 2; + * @return This builder for chaining. + */ + public Builder clearDtype() { + + dtype_ = 0; + onChanged(); + return this; + } + + private org.tensorflow.proto.TensorShapeProto tensorShape_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> tensorShapeBuilder_; + /** + *
+     * The static shape should be recorded here, to the extent that it can
+     * be known in advance.  In the case of a SparseTensor, this field describes
+     * the logical shape of the represented tensor (aka dense_shape).
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 3; + * @return Whether the tensorShape field is set. + */ + public boolean hasTensorShape() { + return tensorShapeBuilder_ != null || tensorShape_ != null; + } + /** + *
+     * The static shape should be recorded here, to the extent that it can
+     * be known in advance.  In the case of a SparseTensor, this field describes
+     * the logical shape of the represented tensor (aka dense_shape).
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 3; + * @return The tensorShape. + */ + public org.tensorflow.proto.TensorShapeProto getTensorShape() { + if (tensorShapeBuilder_ == null) { + return tensorShape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : tensorShape_; + } else { + return tensorShapeBuilder_.getMessage(); + } + } + /** + *
+     * The static shape should be recorded here, to the extent that it can
+     * be known in advance.  In the case of a SparseTensor, this field describes
+     * the logical shape of the represented tensor (aka dense_shape).
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 3; + */ + public Builder setTensorShape(org.tensorflow.proto.TensorShapeProto value) { + if (tensorShapeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tensorShape_ = value; + onChanged(); + } else { + tensorShapeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The static shape should be recorded here, to the extent that it can
+     * be known in advance.  In the case of a SparseTensor, this field describes
+     * the logical shape of the represented tensor (aka dense_shape).
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 3; + */ + public Builder setTensorShape( + org.tensorflow.proto.TensorShapeProto.Builder builderForValue) { + if (tensorShapeBuilder_ == null) { + tensorShape_ = builderForValue.build(); + onChanged(); + } else { + tensorShapeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The static shape should be recorded here, to the extent that it can
+     * be known in advance.  In the case of a SparseTensor, this field describes
+     * the logical shape of the represented tensor (aka dense_shape).
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 3; + */ + public Builder mergeTensorShape(org.tensorflow.proto.TensorShapeProto value) { + if (tensorShapeBuilder_ == null) { + if (tensorShape_ != null) { + tensorShape_ = + org.tensorflow.proto.TensorShapeProto.newBuilder(tensorShape_).mergeFrom(value).buildPartial(); + } else { + tensorShape_ = value; + } + onChanged(); + } else { + tensorShapeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The static shape should be recorded here, to the extent that it can
+     * be known in advance.  In the case of a SparseTensor, this field describes
+     * the logical shape of the represented tensor (aka dense_shape).
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 3; + */ + public Builder clearTensorShape() { + if (tensorShapeBuilder_ == null) { + tensorShape_ = null; + onChanged(); + } else { + tensorShape_ = null; + tensorShapeBuilder_ = null; + } + + return this; + } + /** + *
+     * The static shape should be recorded here, to the extent that it can
+     * be known in advance.  In the case of a SparseTensor, this field describes
+     * the logical shape of the represented tensor (aka dense_shape).
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 3; + */ + public org.tensorflow.proto.TensorShapeProto.Builder getTensorShapeBuilder() { + + onChanged(); + return getTensorShapeFieldBuilder().getBuilder(); + } + /** + *
+     * The static shape should be recorded here, to the extent that it can
+     * be known in advance.  In the case of a SparseTensor, this field describes
+     * the logical shape of the represented tensor (aka dense_shape).
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 3; + */ + public org.tensorflow.proto.TensorShapeProtoOrBuilder getTensorShapeOrBuilder() { + if (tensorShapeBuilder_ != null) { + return tensorShapeBuilder_.getMessageOrBuilder(); + } else { + return tensorShape_ == null ? + org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : tensorShape_; + } + } + /** + *
+     * The static shape should be recorded here, to the extent that it can
+     * be known in advance.  In the case of a SparseTensor, this field describes
+     * the logical shape of the represented tensor (aka dense_shape).
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> + getTensorShapeFieldBuilder() { + if (tensorShapeBuilder_ == null) { + tensorShapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder>( + getTensorShape(), + getParentForChildren(), + isClean()); + tensorShape_ = null; + } + return tensorShapeBuilder_; + } + @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:tensorflow.TensorInfo) + } + + // @@protoc_insertion_point(class_scope:tensorflow.TensorInfo) + private static final org.tensorflow.proto.TensorInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.TensorInfo(); + } + + public static org.tensorflow.proto.TensorInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TensorInfo 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 org.tensorflow.proto.TensorInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorInfoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorInfoOrBuilder.java new file mode 100644 index 00000000000..704d81f874e --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorInfoOrBuilder.java @@ -0,0 +1,147 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/meta_graph.proto + +package org.tensorflow.proto; + +public interface TensorInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.TensorInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * For dense `Tensor`s, the name of the tensor in the graph.
+   * 
+ * + * string name = 1; + * @return Whether the name field is set. + */ + boolean hasName(); + /** + *
+   * For dense `Tensor`s, the name of the tensor in the graph.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * For dense `Tensor`s, the name of the tensor in the graph.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * There are many possible encodings of sparse matrices
+   * (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
+   * uses only the COO encoding.  This is supported and documented in the
+   * SparseTensor Python class.
+   * 
+ * + * .tensorflow.TensorInfo.CooSparse coo_sparse = 4; + * @return Whether the cooSparse field is set. + */ + boolean hasCooSparse(); + /** + *
+   * There are many possible encodings of sparse matrices
+   * (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
+   * uses only the COO encoding.  This is supported and documented in the
+   * SparseTensor Python class.
+   * 
+ * + * .tensorflow.TensorInfo.CooSparse coo_sparse = 4; + * @return The cooSparse. + */ + org.tensorflow.proto.TensorInfo.CooSparse getCooSparse(); + /** + *
+   * There are many possible encodings of sparse matrices
+   * (https://en.wikipedia.org/wiki/Sparse_matrix).  Currently, TensorFlow
+   * uses only the COO encoding.  This is supported and documented in the
+   * SparseTensor Python class.
+   * 
+ * + * .tensorflow.TensorInfo.CooSparse coo_sparse = 4; + */ + org.tensorflow.proto.TensorInfo.CooSparseOrBuilder getCooSparseOrBuilder(); + + /** + *
+   * Generic encoding for CompositeTensors.
+   * 
+ * + * .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; + * @return Whether the compositeTensor field is set. + */ + boolean hasCompositeTensor(); + /** + *
+   * Generic encoding for CompositeTensors.
+   * 
+ * + * .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; + * @return The compositeTensor. + */ + org.tensorflow.proto.TensorInfo.CompositeTensor getCompositeTensor(); + /** + *
+   * Generic encoding for CompositeTensors.
+   * 
+ * + * .tensorflow.TensorInfo.CompositeTensor composite_tensor = 5; + */ + org.tensorflow.proto.TensorInfo.CompositeTensorOrBuilder getCompositeTensorOrBuilder(); + + /** + * .tensorflow.DataType dtype = 2; + * @return The enum numeric value on the wire for dtype. + */ + int getDtypeValue(); + /** + * .tensorflow.DataType dtype = 2; + * @return The dtype. + */ + org.tensorflow.proto.DataType getDtype(); + + /** + *
+   * The static shape should be recorded here, to the extent that it can
+   * be known in advance.  In the case of a SparseTensor, this field describes
+   * the logical shape of the represented tensor (aka dense_shape).
+   * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 3; + * @return Whether the tensorShape field is set. + */ + boolean hasTensorShape(); + /** + *
+   * The static shape should be recorded here, to the extent that it can
+   * be known in advance.  In the case of a SparseTensor, this field describes
+   * the logical shape of the represented tensor (aka dense_shape).
+   * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 3; + * @return The tensorShape. + */ + org.tensorflow.proto.TensorShapeProto getTensorShape(); + /** + *
+   * The static shape should be recorded here, to the extent that it can
+   * be known in advance.  In the case of a SparseTensor, this field describes
+   * the logical shape of the represented tensor (aka dense_shape).
+   * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 3; + */ + org.tensorflow.proto.TensorShapeProtoOrBuilder getTensorShapeOrBuilder(); + + public org.tensorflow.proto.TensorInfo.EncodingCase getEncodingCase(); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorProto.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorProto.java new file mode 100644 index 00000000000..0440777955e --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorProto.java @@ -0,0 +1,4188 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/tensor.proto + +package org.tensorflow.proto; + +/** + *
+ * Protocol buffer representing a tensor.
+ * 
+ * + * Protobuf type {@code tensorflow.TensorProto} + */ +public final class TensorProto extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.TensorProto) + TensorProtoOrBuilder { +private static final long serialVersionUID = 0L; + // Use TensorProto.newBuilder() to construct. + private TensorProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TensorProto() { + dtype_ = 0; + tensorContent_ = com.google.protobuf.ByteString.EMPTY; + halfVal_ = emptyIntList(); + floatVal_ = emptyFloatList(); + doubleVal_ = emptyDoubleList(); + intVal_ = emptyIntList(); + stringVal_ = java.util.Collections.emptyList(); + scomplexVal_ = emptyFloatList(); + int64Val_ = emptyLongList(); + boolVal_ = emptyBooleanList(); + dcomplexVal_ = emptyDoubleList(); + resourceHandleVal_ = java.util.Collections.emptyList(); + variantVal_ = java.util.Collections.emptyList(); + uint32Val_ = emptyIntList(); + uint64Val_ = emptyLongList(); + float8Val_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TensorProto(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TensorProtos.internal_static_tensorflow_TensorProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TensorProtos.internal_static_tensorflow_TensorProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TensorProto.class, org.tensorflow.proto.TensorProto.Builder.class); + } + + public static final int DTYPE_FIELD_NUMBER = 1; + private int dtype_; + /** + * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. + */ + @java.lang.Override public int getDtypeValue() { + return dtype_; + } + /** + * .tensorflow.DataType dtype = 1; + * @return The dtype. + */ + @java.lang.Override public org.tensorflow.proto.DataType getDtype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + + public static final int TENSOR_SHAPE_FIELD_NUMBER = 2; + private org.tensorflow.proto.TensorShapeProto tensorShape_; + /** + *
+   * Shape of the tensor.  TODO(touts): sort out the 0-rank issues.
+   * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + * @return Whether the tensorShape field is set. + */ + @java.lang.Override + public boolean hasTensorShape() { + return tensorShape_ != null; + } + /** + *
+   * Shape of the tensor.  TODO(touts): sort out the 0-rank issues.
+   * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + * @return The tensorShape. + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto getTensorShape() { + return tensorShape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : tensorShape_; + } + /** + *
+   * Shape of the tensor.  TODO(touts): sort out the 0-rank issues.
+   * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProtoOrBuilder getTensorShapeOrBuilder() { + return getTensorShape(); + } + + public static final int VERSION_NUMBER_FIELD_NUMBER = 3; + private int versionNumber_; + /** + *
+   * Version number.
+   * In version 0, if the "repeated xxx" representations contain only one
+   * element, that element is repeated to fill the shape.  This makes it easy
+   * to represent a constant Tensor with a single value.
+   * 
+ * + * int32 version_number = 3; + * @return The versionNumber. + */ + @java.lang.Override + public int getVersionNumber() { + return versionNumber_; + } + + public static final int TENSOR_CONTENT_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString tensorContent_; + /** + *
+   * Serialized raw tensor content from either Tensor::AsProtoTensorContent or
+   * memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation
+   * can be used for all tensor types. The purpose of this representation is to
+   * reduce serialization overhead during RPC call by avoiding serialization of
+   * many repeated small items.
+   * 
+ * + * bytes tensor_content = 4; + * @return The tensorContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTensorContent() { + return tensorContent_; + } + + public static final int HALF_VAL_FIELD_NUMBER = 13; + private com.google.protobuf.Internal.IntList halfVal_; + /** + *
+   * DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
+   * have some pointless zero padding for each value here.
+   * 
+ * + * repeated int32 half_val = 13 [packed = true]; + * @return A list containing the halfVal. + */ + @java.lang.Override + public java.util.List + getHalfValList() { + return halfVal_; + } + /** + *
+   * DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
+   * have some pointless zero padding for each value here.
+   * 
+ * + * repeated int32 half_val = 13 [packed = true]; + * @return The count of halfVal. + */ + public int getHalfValCount() { + return halfVal_.size(); + } + /** + *
+   * DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
+   * have some pointless zero padding for each value here.
+   * 
+ * + * repeated int32 half_val = 13 [packed = true]; + * @param index The index of the element to return. + * @return The halfVal at the given index. + */ + public int getHalfVal(int index) { + return halfVal_.getInt(index); + } + private int halfValMemoizedSerializedSize = -1; + + public static final int FLOAT_VAL_FIELD_NUMBER = 5; + private com.google.protobuf.Internal.FloatList floatVal_; + /** + *
+   * DT_FLOAT.
+   * 
+ * + * repeated float float_val = 5 [packed = true]; + * @return A list containing the floatVal. + */ + @java.lang.Override + public java.util.List + getFloatValList() { + return floatVal_; + } + /** + *
+   * DT_FLOAT.
+   * 
+ * + * repeated float float_val = 5 [packed = true]; + * @return The count of floatVal. + */ + public int getFloatValCount() { + return floatVal_.size(); + } + /** + *
+   * DT_FLOAT.
+   * 
+ * + * repeated float float_val = 5 [packed = true]; + * @param index The index of the element to return. + * @return The floatVal at the given index. + */ + public float getFloatVal(int index) { + return floatVal_.getFloat(index); + } + private int floatValMemoizedSerializedSize = -1; + + public static final int DOUBLE_VAL_FIELD_NUMBER = 6; + private com.google.protobuf.Internal.DoubleList doubleVal_; + /** + *
+   * DT_DOUBLE.
+   * 
+ * + * repeated double double_val = 6 [packed = true]; + * @return A list containing the doubleVal. + */ + @java.lang.Override + public java.util.List + getDoubleValList() { + return doubleVal_; + } + /** + *
+   * DT_DOUBLE.
+   * 
+ * + * repeated double double_val = 6 [packed = true]; + * @return The count of doubleVal. + */ + public int getDoubleValCount() { + return doubleVal_.size(); + } + /** + *
+   * DT_DOUBLE.
+   * 
+ * + * repeated double double_val = 6 [packed = true]; + * @param index The index of the element to return. + * @return The doubleVal at the given index. + */ + public double getDoubleVal(int index) { + return doubleVal_.getDouble(index); + } + private int doubleValMemoizedSerializedSize = -1; + + public static final int INT_VAL_FIELD_NUMBER = 7; + private com.google.protobuf.Internal.IntList intVal_; + /** + *
+   * DT_INT32, DT_INT16, DT_UINT16, DT_INT8, DT_UINT8.
+   * 
+ * + * repeated int32 int_val = 7 [packed = true]; + * @return A list containing the intVal. + */ + @java.lang.Override + public java.util.List + getIntValList() { + return intVal_; + } + /** + *
+   * DT_INT32, DT_INT16, DT_UINT16, DT_INT8, DT_UINT8.
+   * 
+ * + * repeated int32 int_val = 7 [packed = true]; + * @return The count of intVal. + */ + public int getIntValCount() { + return intVal_.size(); + } + /** + *
+   * DT_INT32, DT_INT16, DT_UINT16, DT_INT8, DT_UINT8.
+   * 
+ * + * repeated int32 int_val = 7 [packed = true]; + * @param index The index of the element to return. + * @return The intVal at the given index. + */ + public int getIntVal(int index) { + return intVal_.getInt(index); + } + private int intValMemoizedSerializedSize = -1; + + public static final int STRING_VAL_FIELD_NUMBER = 8; + private java.util.List stringVal_; + /** + *
+   * DT_STRING
+   * 
+ * + * repeated bytes string_val = 8; + * @return A list containing the stringVal. + */ + @java.lang.Override + public java.util.List + getStringValList() { + return stringVal_; + } + /** + *
+   * DT_STRING
+   * 
+ * + * repeated bytes string_val = 8; + * @return The count of stringVal. + */ + public int getStringValCount() { + return stringVal_.size(); + } + /** + *
+   * DT_STRING
+   * 
+ * + * repeated bytes string_val = 8; + * @param index The index of the element to return. + * @return The stringVal at the given index. + */ + public com.google.protobuf.ByteString getStringVal(int index) { + return stringVal_.get(index); + } + + public static final int SCOMPLEX_VAL_FIELD_NUMBER = 9; + private com.google.protobuf.Internal.FloatList scomplexVal_; + /** + *
+   * DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
+   * and imaginary parts of i-th single precision complex.
+   * 
+ * + * repeated float scomplex_val = 9 [packed = true]; + * @return A list containing the scomplexVal. + */ + @java.lang.Override + public java.util.List + getScomplexValList() { + return scomplexVal_; + } + /** + *
+   * DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
+   * and imaginary parts of i-th single precision complex.
+   * 
+ * + * repeated float scomplex_val = 9 [packed = true]; + * @return The count of scomplexVal. + */ + public int getScomplexValCount() { + return scomplexVal_.size(); + } + /** + *
+   * DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
+   * and imaginary parts of i-th single precision complex.
+   * 
+ * + * repeated float scomplex_val = 9 [packed = true]; + * @param index The index of the element to return. + * @return The scomplexVal at the given index. + */ + public float getScomplexVal(int index) { + return scomplexVal_.getFloat(index); + } + private int scomplexValMemoizedSerializedSize = -1; + + public static final int INT64_VAL_FIELD_NUMBER = 10; + private com.google.protobuf.Internal.LongList int64Val_; + /** + *
+   * DT_INT64
+   * 
+ * + * repeated int64 int64_val = 10 [packed = true]; + * @return A list containing the int64Val. + */ + @java.lang.Override + public java.util.List + getInt64ValList() { + return int64Val_; + } + /** + *
+   * DT_INT64
+   * 
+ * + * repeated int64 int64_val = 10 [packed = true]; + * @return The count of int64Val. + */ + public int getInt64ValCount() { + return int64Val_.size(); + } + /** + *
+   * DT_INT64
+   * 
+ * + * repeated int64 int64_val = 10 [packed = true]; + * @param index The index of the element to return. + * @return The int64Val at the given index. + */ + public long getInt64Val(int index) { + return int64Val_.getLong(index); + } + private int int64ValMemoizedSerializedSize = -1; + + public static final int BOOL_VAL_FIELD_NUMBER = 11; + private com.google.protobuf.Internal.BooleanList boolVal_; + /** + *
+   * DT_BOOL
+   * 
+ * + * repeated bool bool_val = 11 [packed = true]; + * @return A list containing the boolVal. + */ + @java.lang.Override + public java.util.List + getBoolValList() { + return boolVal_; + } + /** + *
+   * DT_BOOL
+   * 
+ * + * repeated bool bool_val = 11 [packed = true]; + * @return The count of boolVal. + */ + public int getBoolValCount() { + return boolVal_.size(); + } + /** + *
+   * DT_BOOL
+   * 
+ * + * repeated bool bool_val = 11 [packed = true]; + * @param index The index of the element to return. + * @return The boolVal at the given index. + */ + public boolean getBoolVal(int index) { + return boolVal_.getBoolean(index); + } + private int boolValMemoizedSerializedSize = -1; + + public static final int DCOMPLEX_VAL_FIELD_NUMBER = 12; + private com.google.protobuf.Internal.DoubleList dcomplexVal_; + /** + *
+   * DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
+   * and imaginary parts of i-th double precision complex.
+   * 
+ * + * repeated double dcomplex_val = 12 [packed = true]; + * @return A list containing the dcomplexVal. + */ + @java.lang.Override + public java.util.List + getDcomplexValList() { + return dcomplexVal_; + } + /** + *
+   * DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
+   * and imaginary parts of i-th double precision complex.
+   * 
+ * + * repeated double dcomplex_val = 12 [packed = true]; + * @return The count of dcomplexVal. + */ + public int getDcomplexValCount() { + return dcomplexVal_.size(); + } + /** + *
+   * DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
+   * and imaginary parts of i-th double precision complex.
+   * 
+ * + * repeated double dcomplex_val = 12 [packed = true]; + * @param index The index of the element to return. + * @return The dcomplexVal at the given index. + */ + public double getDcomplexVal(int index) { + return dcomplexVal_.getDouble(index); + } + private int dcomplexValMemoizedSerializedSize = -1; + + public static final int RESOURCE_HANDLE_VAL_FIELD_NUMBER = 14; + private java.util.List resourceHandleVal_; + /** + *
+   * DT_RESOURCE
+   * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + @java.lang.Override + public java.util.List getResourceHandleValList() { + return resourceHandleVal_; + } + /** + *
+   * DT_RESOURCE
+   * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + @java.lang.Override + public java.util.List + getResourceHandleValOrBuilderList() { + return resourceHandleVal_; + } + /** + *
+   * DT_RESOURCE
+   * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + @java.lang.Override + public int getResourceHandleValCount() { + return resourceHandleVal_.size(); + } + /** + *
+   * DT_RESOURCE
+   * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + @java.lang.Override + public org.tensorflow.proto.ResourceHandleProto getResourceHandleVal(int index) { + return resourceHandleVal_.get(index); + } + /** + *
+   * DT_RESOURCE
+   * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + @java.lang.Override + public org.tensorflow.proto.ResourceHandleProtoOrBuilder getResourceHandleValOrBuilder( + int index) { + return resourceHandleVal_.get(index); + } + + public static final int VARIANT_VAL_FIELD_NUMBER = 15; + private java.util.List variantVal_; + /** + *
+   * DT_VARIANT
+   * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + @java.lang.Override + public java.util.List getVariantValList() { + return variantVal_; + } + /** + *
+   * DT_VARIANT
+   * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + @java.lang.Override + public java.util.List + getVariantValOrBuilderList() { + return variantVal_; + } + /** + *
+   * DT_VARIANT
+   * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + @java.lang.Override + public int getVariantValCount() { + return variantVal_.size(); + } + /** + *
+   * DT_VARIANT
+   * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + @java.lang.Override + public org.tensorflow.proto.VariantTensorDataProto getVariantVal(int index) { + return variantVal_.get(index); + } + /** + *
+   * DT_VARIANT
+   * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + @java.lang.Override + public org.tensorflow.proto.VariantTensorDataProtoOrBuilder getVariantValOrBuilder( + int index) { + return variantVal_.get(index); + } + + public static final int UINT32_VAL_FIELD_NUMBER = 16; + private com.google.protobuf.Internal.IntList uint32Val_; + /** + *
+   * DT_UINT32
+   * 
+ * + * repeated uint32 uint32_val = 16 [packed = true]; + * @return A list containing the uint32Val. + */ + @java.lang.Override + public java.util.List + getUint32ValList() { + return uint32Val_; + } + /** + *
+   * DT_UINT32
+   * 
+ * + * repeated uint32 uint32_val = 16 [packed = true]; + * @return The count of uint32Val. + */ + public int getUint32ValCount() { + return uint32Val_.size(); + } + /** + *
+   * DT_UINT32
+   * 
+ * + * repeated uint32 uint32_val = 16 [packed = true]; + * @param index The index of the element to return. + * @return The uint32Val at the given index. + */ + public int getUint32Val(int index) { + return uint32Val_.getInt(index); + } + private int uint32ValMemoizedSerializedSize = -1; + + public static final int UINT64_VAL_FIELD_NUMBER = 17; + private com.google.protobuf.Internal.LongList uint64Val_; + /** + *
+   * DT_UINT64
+   * 
+ * + * repeated uint64 uint64_val = 17 [packed = true]; + * @return A list containing the uint64Val. + */ + @java.lang.Override + public java.util.List + getUint64ValList() { + return uint64Val_; + } + /** + *
+   * DT_UINT64
+   * 
+ * + * repeated uint64 uint64_val = 17 [packed = true]; + * @return The count of uint64Val. + */ + public int getUint64ValCount() { + return uint64Val_.size(); + } + /** + *
+   * DT_UINT64
+   * 
+ * + * repeated uint64 uint64_val = 17 [packed = true]; + * @param index The index of the element to return. + * @return The uint64Val at the given index. + */ + public long getUint64Val(int index) { + return uint64Val_.getLong(index); + } + private int uint64ValMemoizedSerializedSize = -1; + + public static final int FLOAT8_VAL_FIELD_NUMBER = 18; + private com.google.protobuf.ByteString float8Val_; + /** + *
+   * DT_FLOAT8_*, use variable-sized set of bytes
+   * (i.e. the equivalent of repeated uint8, if such a thing existed).
+   * 
+ * + * bytes float8_val = 18; + * @return The float8Val. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFloat8Val() { + return float8Val_; + } + + 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 { + getSerializedSize(); + if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + output.writeEnum(1, dtype_); + } + if (tensorShape_ != null) { + output.writeMessage(2, getTensorShape()); + } + if (versionNumber_ != 0) { + output.writeInt32(3, versionNumber_); + } + if (!tensorContent_.isEmpty()) { + output.writeBytes(4, tensorContent_); + } + if (getFloatValList().size() > 0) { + output.writeUInt32NoTag(42); + output.writeUInt32NoTag(floatValMemoizedSerializedSize); + } + for (int i = 0; i < floatVal_.size(); i++) { + output.writeFloatNoTag(floatVal_.getFloat(i)); + } + if (getDoubleValList().size() > 0) { + output.writeUInt32NoTag(50); + output.writeUInt32NoTag(doubleValMemoizedSerializedSize); + } + for (int i = 0; i < doubleVal_.size(); i++) { + output.writeDoubleNoTag(doubleVal_.getDouble(i)); + } + if (getIntValList().size() > 0) { + output.writeUInt32NoTag(58); + output.writeUInt32NoTag(intValMemoizedSerializedSize); + } + for (int i = 0; i < intVal_.size(); i++) { + output.writeInt32NoTag(intVal_.getInt(i)); + } + for (int i = 0; i < stringVal_.size(); i++) { + output.writeBytes(8, stringVal_.get(i)); + } + if (getScomplexValList().size() > 0) { + output.writeUInt32NoTag(74); + output.writeUInt32NoTag(scomplexValMemoizedSerializedSize); + } + for (int i = 0; i < scomplexVal_.size(); i++) { + output.writeFloatNoTag(scomplexVal_.getFloat(i)); + } + if (getInt64ValList().size() > 0) { + output.writeUInt32NoTag(82); + output.writeUInt32NoTag(int64ValMemoizedSerializedSize); + } + for (int i = 0; i < int64Val_.size(); i++) { + output.writeInt64NoTag(int64Val_.getLong(i)); + } + if (getBoolValList().size() > 0) { + output.writeUInt32NoTag(90); + output.writeUInt32NoTag(boolValMemoizedSerializedSize); + } + for (int i = 0; i < boolVal_.size(); i++) { + output.writeBoolNoTag(boolVal_.getBoolean(i)); + } + if (getDcomplexValList().size() > 0) { + output.writeUInt32NoTag(98); + output.writeUInt32NoTag(dcomplexValMemoizedSerializedSize); + } + for (int i = 0; i < dcomplexVal_.size(); i++) { + output.writeDoubleNoTag(dcomplexVal_.getDouble(i)); + } + if (getHalfValList().size() > 0) { + output.writeUInt32NoTag(106); + output.writeUInt32NoTag(halfValMemoizedSerializedSize); + } + for (int i = 0; i < halfVal_.size(); i++) { + output.writeInt32NoTag(halfVal_.getInt(i)); + } + for (int i = 0; i < resourceHandleVal_.size(); i++) { + output.writeMessage(14, resourceHandleVal_.get(i)); + } + for (int i = 0; i < variantVal_.size(); i++) { + output.writeMessage(15, variantVal_.get(i)); + } + if (getUint32ValList().size() > 0) { + output.writeUInt32NoTag(130); + output.writeUInt32NoTag(uint32ValMemoizedSerializedSize); + } + for (int i = 0; i < uint32Val_.size(); i++) { + output.writeUInt32NoTag(uint32Val_.getInt(i)); + } + if (getUint64ValList().size() > 0) { + output.writeUInt32NoTag(138); + output.writeUInt32NoTag(uint64ValMemoizedSerializedSize); + } + for (int i = 0; i < uint64Val_.size(); i++) { + output.writeUInt64NoTag(uint64Val_.getLong(i)); + } + if (!float8Val_.isEmpty()) { + output.writeBytes(18, float8Val_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, dtype_); + } + if (tensorShape_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTensorShape()); + } + if (versionNumber_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, versionNumber_); + } + if (!tensorContent_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, tensorContent_); + } + { + int dataSize = 0; + dataSize = 4 * getFloatValList().size(); + size += dataSize; + if (!getFloatValList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + floatValMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getDoubleValList().size(); + size += dataSize; + if (!getDoubleValList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + doubleValMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < intVal_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(intVal_.getInt(i)); + } + size += dataSize; + if (!getIntValList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + intValMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < stringVal_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(stringVal_.get(i)); + } + size += dataSize; + size += 1 * getStringValList().size(); + } + { + int dataSize = 0; + dataSize = 4 * getScomplexValList().size(); + size += dataSize; + if (!getScomplexValList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + scomplexValMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < int64Val_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(int64Val_.getLong(i)); + } + size += dataSize; + if (!getInt64ValList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + int64ValMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 1 * getBoolValList().size(); + size += dataSize; + if (!getBoolValList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + boolValMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getDcomplexValList().size(); + size += dataSize; + if (!getDcomplexValList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + dcomplexValMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < halfVal_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(halfVal_.getInt(i)); + } + size += dataSize; + if (!getHalfValList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + halfValMemoizedSerializedSize = dataSize; + } + for (int i = 0; i < resourceHandleVal_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, resourceHandleVal_.get(i)); + } + for (int i = 0; i < variantVal_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, variantVal_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < uint32Val_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(uint32Val_.getInt(i)); + } + size += dataSize; + if (!getUint32ValList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + uint32ValMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < uint64Val_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt64SizeNoTag(uint64Val_.getLong(i)); + } + size += dataSize; + if (!getUint64ValList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + uint64ValMemoizedSerializedSize = dataSize; + } + if (!float8Val_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(18, float8Val_); + } + 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 org.tensorflow.proto.TensorProto)) { + return super.equals(obj); + } + org.tensorflow.proto.TensorProto other = (org.tensorflow.proto.TensorProto) obj; + + if (dtype_ != other.dtype_) return false; + if (hasTensorShape() != other.hasTensorShape()) return false; + if (hasTensorShape()) { + if (!getTensorShape() + .equals(other.getTensorShape())) return false; + } + if (getVersionNumber() + != other.getVersionNumber()) return false; + if (!getTensorContent() + .equals(other.getTensorContent())) return false; + if (!getHalfValList() + .equals(other.getHalfValList())) return false; + if (!getFloatValList() + .equals(other.getFloatValList())) return false; + if (!getDoubleValList() + .equals(other.getDoubleValList())) return false; + if (!getIntValList() + .equals(other.getIntValList())) return false; + if (!getStringValList() + .equals(other.getStringValList())) return false; + if (!getScomplexValList() + .equals(other.getScomplexValList())) return false; + if (!getInt64ValList() + .equals(other.getInt64ValList())) return false; + if (!getBoolValList() + .equals(other.getBoolValList())) return false; + if (!getDcomplexValList() + .equals(other.getDcomplexValList())) return false; + if (!getResourceHandleValList() + .equals(other.getResourceHandleValList())) return false; + if (!getVariantValList() + .equals(other.getVariantValList())) return false; + if (!getUint32ValList() + .equals(other.getUint32ValList())) return false; + if (!getUint64ValList() + .equals(other.getUint64ValList())) return false; + if (!getFloat8Val() + .equals(other.getFloat8Val())) 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) + DTYPE_FIELD_NUMBER; + hash = (53 * hash) + dtype_; + if (hasTensorShape()) { + hash = (37 * hash) + TENSOR_SHAPE_FIELD_NUMBER; + hash = (53 * hash) + getTensorShape().hashCode(); + } + hash = (37 * hash) + VERSION_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getVersionNumber(); + hash = (37 * hash) + TENSOR_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getTensorContent().hashCode(); + if (getHalfValCount() > 0) { + hash = (37 * hash) + HALF_VAL_FIELD_NUMBER; + hash = (53 * hash) + getHalfValList().hashCode(); + } + if (getFloatValCount() > 0) { + hash = (37 * hash) + FLOAT_VAL_FIELD_NUMBER; + hash = (53 * hash) + getFloatValList().hashCode(); + } + if (getDoubleValCount() > 0) { + hash = (37 * hash) + DOUBLE_VAL_FIELD_NUMBER; + hash = (53 * hash) + getDoubleValList().hashCode(); + } + if (getIntValCount() > 0) { + hash = (37 * hash) + INT_VAL_FIELD_NUMBER; + hash = (53 * hash) + getIntValList().hashCode(); + } + if (getStringValCount() > 0) { + hash = (37 * hash) + STRING_VAL_FIELD_NUMBER; + hash = (53 * hash) + getStringValList().hashCode(); + } + if (getScomplexValCount() > 0) { + hash = (37 * hash) + SCOMPLEX_VAL_FIELD_NUMBER; + hash = (53 * hash) + getScomplexValList().hashCode(); + } + if (getInt64ValCount() > 0) { + hash = (37 * hash) + INT64_VAL_FIELD_NUMBER; + hash = (53 * hash) + getInt64ValList().hashCode(); + } + if (getBoolValCount() > 0) { + hash = (37 * hash) + BOOL_VAL_FIELD_NUMBER; + hash = (53 * hash) + getBoolValList().hashCode(); + } + if (getDcomplexValCount() > 0) { + hash = (37 * hash) + DCOMPLEX_VAL_FIELD_NUMBER; + hash = (53 * hash) + getDcomplexValList().hashCode(); + } + if (getResourceHandleValCount() > 0) { + hash = (37 * hash) + RESOURCE_HANDLE_VAL_FIELD_NUMBER; + hash = (53 * hash) + getResourceHandleValList().hashCode(); + } + if (getVariantValCount() > 0) { + hash = (37 * hash) + VARIANT_VAL_FIELD_NUMBER; + hash = (53 * hash) + getVariantValList().hashCode(); + } + if (getUint32ValCount() > 0) { + hash = (37 * hash) + UINT32_VAL_FIELD_NUMBER; + hash = (53 * hash) + getUint32ValList().hashCode(); + } + if (getUint64ValCount() > 0) { + hash = (37 * hash) + UINT64_VAL_FIELD_NUMBER; + hash = (53 * hash) + getUint64ValList().hashCode(); + } + hash = (37 * hash) + FLOAT8_VAL_FIELD_NUMBER; + hash = (53 * hash) + getFloat8Val().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.TensorProto parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorProto parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorProto parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorProto parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorProto parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorProto parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorProto parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorProto 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 org.tensorflow.proto.TensorProto parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorProto 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 org.tensorflow.proto.TensorProto parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorProto 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(org.tensorflow.proto.TensorProto 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; + } + /** + *
+   * Protocol buffer representing a tensor.
+   * 
+ * + * Protobuf type {@code tensorflow.TensorProto} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.TensorProto) + org.tensorflow.proto.TensorProtoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TensorProtos.internal_static_tensorflow_TensorProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TensorProtos.internal_static_tensorflow_TensorProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TensorProto.class, org.tensorflow.proto.TensorProto.Builder.class); + } + + // Construct using org.tensorflow.proto.TensorProto.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + dtype_ = 0; + + if (tensorShapeBuilder_ == null) { + tensorShape_ = null; + } else { + tensorShape_ = null; + tensorShapeBuilder_ = null; + } + versionNumber_ = 0; + + tensorContent_ = com.google.protobuf.ByteString.EMPTY; + + halfVal_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + floatVal_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000002); + doubleVal_ = emptyDoubleList(); + bitField0_ = (bitField0_ & ~0x00000004); + intVal_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000008); + stringVal_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + scomplexVal_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000020); + int64Val_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000040); + boolVal_ = emptyBooleanList(); + bitField0_ = (bitField0_ & ~0x00000080); + dcomplexVal_ = emptyDoubleList(); + bitField0_ = (bitField0_ & ~0x00000100); + if (resourceHandleValBuilder_ == null) { + resourceHandleVal_ = java.util.Collections.emptyList(); + } else { + resourceHandleVal_ = null; + resourceHandleValBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + if (variantValBuilder_ == null) { + variantVal_ = java.util.Collections.emptyList(); + } else { + variantVal_ = null; + variantValBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + uint32Val_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000800); + uint64Val_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00001000); + float8Val_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.TensorProtos.internal_static_tensorflow_TensorProto_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.TensorProto getDefaultInstanceForType() { + return org.tensorflow.proto.TensorProto.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.TensorProto build() { + org.tensorflow.proto.TensorProto result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.TensorProto buildPartial() { + org.tensorflow.proto.TensorProto result = new org.tensorflow.proto.TensorProto(this); + int from_bitField0_ = bitField0_; + result.dtype_ = dtype_; + if (tensorShapeBuilder_ == null) { + result.tensorShape_ = tensorShape_; + } else { + result.tensorShape_ = tensorShapeBuilder_.build(); + } + result.versionNumber_ = versionNumber_; + result.tensorContent_ = tensorContent_; + if (((bitField0_ & 0x00000001) != 0)) { + halfVal_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.halfVal_ = halfVal_; + if (((bitField0_ & 0x00000002) != 0)) { + floatVal_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.floatVal_ = floatVal_; + if (((bitField0_ & 0x00000004) != 0)) { + doubleVal_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.doubleVal_ = doubleVal_; + if (((bitField0_ & 0x00000008) != 0)) { + intVal_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.intVal_ = intVal_; + if (((bitField0_ & 0x00000010) != 0)) { + stringVal_ = java.util.Collections.unmodifiableList(stringVal_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.stringVal_ = stringVal_; + if (((bitField0_ & 0x00000020) != 0)) { + scomplexVal_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.scomplexVal_ = scomplexVal_; + if (((bitField0_ & 0x00000040) != 0)) { + int64Val_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.int64Val_ = int64Val_; + if (((bitField0_ & 0x00000080) != 0)) { + boolVal_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.boolVal_ = boolVal_; + if (((bitField0_ & 0x00000100) != 0)) { + dcomplexVal_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.dcomplexVal_ = dcomplexVal_; + if (resourceHandleValBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + resourceHandleVal_ = java.util.Collections.unmodifiableList(resourceHandleVal_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.resourceHandleVal_ = resourceHandleVal_; + } else { + result.resourceHandleVal_ = resourceHandleValBuilder_.build(); + } + if (variantValBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + variantVal_ = java.util.Collections.unmodifiableList(variantVal_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.variantVal_ = variantVal_; + } else { + result.variantVal_ = variantValBuilder_.build(); + } + if (((bitField0_ & 0x00000800) != 0)) { + uint32Val_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.uint32Val_ = uint32Val_; + if (((bitField0_ & 0x00001000) != 0)) { + uint64Val_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.uint64Val_ = uint64Val_; + result.float8Val_ = float8Val_; + 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 org.tensorflow.proto.TensorProto) { + return mergeFrom((org.tensorflow.proto.TensorProto)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.TensorProto other) { + if (other == org.tensorflow.proto.TensorProto.getDefaultInstance()) return this; + if (other.dtype_ != 0) { + setDtypeValue(other.getDtypeValue()); + } + if (other.hasTensorShape()) { + mergeTensorShape(other.getTensorShape()); + } + if (other.getVersionNumber() != 0) { + setVersionNumber(other.getVersionNumber()); + } + if (other.getTensorContent() != com.google.protobuf.ByteString.EMPTY) { + setTensorContent(other.getTensorContent()); + } + if (!other.halfVal_.isEmpty()) { + if (halfVal_.isEmpty()) { + halfVal_ = other.halfVal_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureHalfValIsMutable(); + halfVal_.addAll(other.halfVal_); + } + onChanged(); + } + if (!other.floatVal_.isEmpty()) { + if (floatVal_.isEmpty()) { + floatVal_ = other.floatVal_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureFloatValIsMutable(); + floatVal_.addAll(other.floatVal_); + } + onChanged(); + } + if (!other.doubleVal_.isEmpty()) { + if (doubleVal_.isEmpty()) { + doubleVal_ = other.doubleVal_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureDoubleValIsMutable(); + doubleVal_.addAll(other.doubleVal_); + } + onChanged(); + } + if (!other.intVal_.isEmpty()) { + if (intVal_.isEmpty()) { + intVal_ = other.intVal_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureIntValIsMutable(); + intVal_.addAll(other.intVal_); + } + onChanged(); + } + if (!other.stringVal_.isEmpty()) { + if (stringVal_.isEmpty()) { + stringVal_ = other.stringVal_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureStringValIsMutable(); + stringVal_.addAll(other.stringVal_); + } + onChanged(); + } + if (!other.scomplexVal_.isEmpty()) { + if (scomplexVal_.isEmpty()) { + scomplexVal_ = other.scomplexVal_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureScomplexValIsMutable(); + scomplexVal_.addAll(other.scomplexVal_); + } + onChanged(); + } + if (!other.int64Val_.isEmpty()) { + if (int64Val_.isEmpty()) { + int64Val_ = other.int64Val_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureInt64ValIsMutable(); + int64Val_.addAll(other.int64Val_); + } + onChanged(); + } + if (!other.boolVal_.isEmpty()) { + if (boolVal_.isEmpty()) { + boolVal_ = other.boolVal_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureBoolValIsMutable(); + boolVal_.addAll(other.boolVal_); + } + onChanged(); + } + if (!other.dcomplexVal_.isEmpty()) { + if (dcomplexVal_.isEmpty()) { + dcomplexVal_ = other.dcomplexVal_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureDcomplexValIsMutable(); + dcomplexVal_.addAll(other.dcomplexVal_); + } + onChanged(); + } + if (resourceHandleValBuilder_ == null) { + if (!other.resourceHandleVal_.isEmpty()) { + if (resourceHandleVal_.isEmpty()) { + resourceHandleVal_ = other.resourceHandleVal_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureResourceHandleValIsMutable(); + resourceHandleVal_.addAll(other.resourceHandleVal_); + } + onChanged(); + } + } else { + if (!other.resourceHandleVal_.isEmpty()) { + if (resourceHandleValBuilder_.isEmpty()) { + resourceHandleValBuilder_.dispose(); + resourceHandleValBuilder_ = null; + resourceHandleVal_ = other.resourceHandleVal_; + bitField0_ = (bitField0_ & ~0x00000200); + resourceHandleValBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResourceHandleValFieldBuilder() : null; + } else { + resourceHandleValBuilder_.addAllMessages(other.resourceHandleVal_); + } + } + } + if (variantValBuilder_ == null) { + if (!other.variantVal_.isEmpty()) { + if (variantVal_.isEmpty()) { + variantVal_ = other.variantVal_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureVariantValIsMutable(); + variantVal_.addAll(other.variantVal_); + } + onChanged(); + } + } else { + if (!other.variantVal_.isEmpty()) { + if (variantValBuilder_.isEmpty()) { + variantValBuilder_.dispose(); + variantValBuilder_ = null; + variantVal_ = other.variantVal_; + bitField0_ = (bitField0_ & ~0x00000400); + variantValBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVariantValFieldBuilder() : null; + } else { + variantValBuilder_.addAllMessages(other.variantVal_); + } + } + } + if (!other.uint32Val_.isEmpty()) { + if (uint32Val_.isEmpty()) { + uint32Val_ = other.uint32Val_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureUint32ValIsMutable(); + uint32Val_.addAll(other.uint32Val_); + } + onChanged(); + } + if (!other.uint64Val_.isEmpty()) { + if (uint64Val_.isEmpty()) { + uint64Val_ = other.uint64Val_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureUint64ValIsMutable(); + uint64Val_.addAll(other.uint64Val_); + } + onChanged(); + } + if (other.getFloat8Val() != com.google.protobuf.ByteString.EMPTY) { + setFloat8Val(other.getFloat8Val()); + } + 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: { + dtype_ = input.readEnum(); + + break; + } // case 8 + case 18: { + input.readMessage( + getTensorShapeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 24: { + versionNumber_ = input.readInt32(); + + break; + } // case 24 + case 34: { + tensorContent_ = input.readBytes(); + + break; + } // case 34 + case 45: { + float v = input.readFloat(); + ensureFloatValIsMutable(); + floatVal_.addFloat(v); + break; + } // case 45 + case 42: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureFloatValIsMutable(); + while (input.getBytesUntilLimit() > 0) { + floatVal_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } // case 42 + case 49: { + double v = input.readDouble(); + ensureDoubleValIsMutable(); + doubleVal_.addDouble(v); + break; + } // case 49 + case 50: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureDoubleValIsMutable(); + while (input.getBytesUntilLimit() > 0) { + doubleVal_.addDouble(input.readDouble()); + } + input.popLimit(limit); + break; + } // case 50 + case 56: { + int v = input.readInt32(); + ensureIntValIsMutable(); + intVal_.addInt(v); + break; + } // case 56 + case 58: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureIntValIsMutable(); + while (input.getBytesUntilLimit() > 0) { + intVal_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 58 + case 66: { + com.google.protobuf.ByteString v = input.readBytes(); + ensureStringValIsMutable(); + stringVal_.add(v); + break; + } // case 66 + case 77: { + float v = input.readFloat(); + ensureScomplexValIsMutable(); + scomplexVal_.addFloat(v); + break; + } // case 77 + case 74: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureScomplexValIsMutable(); + while (input.getBytesUntilLimit() > 0) { + scomplexVal_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } // case 74 + case 80: { + long v = input.readInt64(); + ensureInt64ValIsMutable(); + int64Val_.addLong(v); + break; + } // case 80 + case 82: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureInt64ValIsMutable(); + while (input.getBytesUntilLimit() > 0) { + int64Val_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 82 + case 88: { + boolean v = input.readBool(); + ensureBoolValIsMutable(); + boolVal_.addBoolean(v); + break; + } // case 88 + case 90: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureBoolValIsMutable(); + while (input.getBytesUntilLimit() > 0) { + boolVal_.addBoolean(input.readBool()); + } + input.popLimit(limit); + break; + } // case 90 + case 97: { + double v = input.readDouble(); + ensureDcomplexValIsMutable(); + dcomplexVal_.addDouble(v); + break; + } // case 97 + case 98: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureDcomplexValIsMutable(); + while (input.getBytesUntilLimit() > 0) { + dcomplexVal_.addDouble(input.readDouble()); + } + input.popLimit(limit); + break; + } // case 98 + case 104: { + int v = input.readInt32(); + ensureHalfValIsMutable(); + halfVal_.addInt(v); + break; + } // case 104 + case 106: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureHalfValIsMutable(); + while (input.getBytesUntilLimit() > 0) { + halfVal_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 106 + case 114: { + org.tensorflow.proto.ResourceHandleProto m = + input.readMessage( + org.tensorflow.proto.ResourceHandleProto.parser(), + extensionRegistry); + if (resourceHandleValBuilder_ == null) { + ensureResourceHandleValIsMutable(); + resourceHandleVal_.add(m); + } else { + resourceHandleValBuilder_.addMessage(m); + } + break; + } // case 114 + case 122: { + org.tensorflow.proto.VariantTensorDataProto m = + input.readMessage( + org.tensorflow.proto.VariantTensorDataProto.parser(), + extensionRegistry); + if (variantValBuilder_ == null) { + ensureVariantValIsMutable(); + variantVal_.add(m); + } else { + variantValBuilder_.addMessage(m); + } + break; + } // case 122 + case 128: { + int v = input.readUInt32(); + ensureUint32ValIsMutable(); + uint32Val_.addInt(v); + break; + } // case 128 + case 130: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureUint32ValIsMutable(); + while (input.getBytesUntilLimit() > 0) { + uint32Val_.addInt(input.readUInt32()); + } + input.popLimit(limit); + break; + } // case 130 + case 136: { + long v = input.readUInt64(); + ensureUint64ValIsMutable(); + uint64Val_.addLong(v); + break; + } // case 136 + case 138: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureUint64ValIsMutable(); + while (input.getBytesUntilLimit() > 0) { + uint64Val_.addLong(input.readUInt64()); + } + input.popLimit(limit); + break; + } // case 138 + case 146: { + float8Val_ = input.readBytes(); + + break; + } // case 146 + 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 dtype_ = 0; + /** + * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. + */ + @java.lang.Override public int getDtypeValue() { + return dtype_; + } + /** + * .tensorflow.DataType dtype = 1; + * @param value The enum numeric value on the wire for dtype to set. + * @return This builder for chaining. + */ + public Builder setDtypeValue(int value) { + + dtype_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.DataType dtype = 1; + * @return The dtype. + */ + @java.lang.Override + public org.tensorflow.proto.DataType getDtype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + /** + * .tensorflow.DataType dtype = 1; + * @param value The dtype to set. + * @return This builder for chaining. + */ + public Builder setDtype(org.tensorflow.proto.DataType value) { + if (value == null) { + throw new NullPointerException(); + } + + dtype_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.DataType dtype = 1; + * @return This builder for chaining. + */ + public Builder clearDtype() { + + dtype_ = 0; + onChanged(); + return this; + } + + private org.tensorflow.proto.TensorShapeProto tensorShape_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> tensorShapeBuilder_; + /** + *
+     * Shape of the tensor.  TODO(touts): sort out the 0-rank issues.
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + * @return Whether the tensorShape field is set. + */ + public boolean hasTensorShape() { + return tensorShapeBuilder_ != null || tensorShape_ != null; + } + /** + *
+     * Shape of the tensor.  TODO(touts): sort out the 0-rank issues.
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + * @return The tensorShape. + */ + public org.tensorflow.proto.TensorShapeProto getTensorShape() { + if (tensorShapeBuilder_ == null) { + return tensorShape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : tensorShape_; + } else { + return tensorShapeBuilder_.getMessage(); + } + } + /** + *
+     * Shape of the tensor.  TODO(touts): sort out the 0-rank issues.
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + public Builder setTensorShape(org.tensorflow.proto.TensorShapeProto value) { + if (tensorShapeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tensorShape_ = value; + onChanged(); + } else { + tensorShapeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Shape of the tensor.  TODO(touts): sort out the 0-rank issues.
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + public Builder setTensorShape( + org.tensorflow.proto.TensorShapeProto.Builder builderForValue) { + if (tensorShapeBuilder_ == null) { + tensorShape_ = builderForValue.build(); + onChanged(); + } else { + tensorShapeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Shape of the tensor.  TODO(touts): sort out the 0-rank issues.
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + public Builder mergeTensorShape(org.tensorflow.proto.TensorShapeProto value) { + if (tensorShapeBuilder_ == null) { + if (tensorShape_ != null) { + tensorShape_ = + org.tensorflow.proto.TensorShapeProto.newBuilder(tensorShape_).mergeFrom(value).buildPartial(); + } else { + tensorShape_ = value; + } + onChanged(); + } else { + tensorShapeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Shape of the tensor.  TODO(touts): sort out the 0-rank issues.
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + public Builder clearTensorShape() { + if (tensorShapeBuilder_ == null) { + tensorShape_ = null; + onChanged(); + } else { + tensorShape_ = null; + tensorShapeBuilder_ = null; + } + + return this; + } + /** + *
+     * Shape of the tensor.  TODO(touts): sort out the 0-rank issues.
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + public org.tensorflow.proto.TensorShapeProto.Builder getTensorShapeBuilder() { + + onChanged(); + return getTensorShapeFieldBuilder().getBuilder(); + } + /** + *
+     * Shape of the tensor.  TODO(touts): sort out the 0-rank issues.
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + public org.tensorflow.proto.TensorShapeProtoOrBuilder getTensorShapeOrBuilder() { + if (tensorShapeBuilder_ != null) { + return tensorShapeBuilder_.getMessageOrBuilder(); + } else { + return tensorShape_ == null ? + org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : tensorShape_; + } + } + /** + *
+     * Shape of the tensor.  TODO(touts): sort out the 0-rank issues.
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> + getTensorShapeFieldBuilder() { + if (tensorShapeBuilder_ == null) { + tensorShapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder>( + getTensorShape(), + getParentForChildren(), + isClean()); + tensorShape_ = null; + } + return tensorShapeBuilder_; + } + + private int versionNumber_ ; + /** + *
+     * Version number.
+     * In version 0, if the "repeated xxx" representations contain only one
+     * element, that element is repeated to fill the shape.  This makes it easy
+     * to represent a constant Tensor with a single value.
+     * 
+ * + * int32 version_number = 3; + * @return The versionNumber. + */ + @java.lang.Override + public int getVersionNumber() { + return versionNumber_; + } + /** + *
+     * Version number.
+     * In version 0, if the "repeated xxx" representations contain only one
+     * element, that element is repeated to fill the shape.  This makes it easy
+     * to represent a constant Tensor with a single value.
+     * 
+ * + * int32 version_number = 3; + * @param value The versionNumber to set. + * @return This builder for chaining. + */ + public Builder setVersionNumber(int value) { + + versionNumber_ = value; + onChanged(); + return this; + } + /** + *
+     * Version number.
+     * In version 0, if the "repeated xxx" representations contain only one
+     * element, that element is repeated to fill the shape.  This makes it easy
+     * to represent a constant Tensor with a single value.
+     * 
+ * + * int32 version_number = 3; + * @return This builder for chaining. + */ + public Builder clearVersionNumber() { + + versionNumber_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString tensorContent_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * Serialized raw tensor content from either Tensor::AsProtoTensorContent or
+     * memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation
+     * can be used for all tensor types. The purpose of this representation is to
+     * reduce serialization overhead during RPC call by avoiding serialization of
+     * many repeated small items.
+     * 
+ * + * bytes tensor_content = 4; + * @return The tensorContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTensorContent() { + return tensorContent_; + } + /** + *
+     * Serialized raw tensor content from either Tensor::AsProtoTensorContent or
+     * memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation
+     * can be used for all tensor types. The purpose of this representation is to
+     * reduce serialization overhead during RPC call by avoiding serialization of
+     * many repeated small items.
+     * 
+ * + * bytes tensor_content = 4; + * @param value The tensorContent to set. + * @return This builder for chaining. + */ + public Builder setTensorContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + tensorContent_ = value; + onChanged(); + return this; + } + /** + *
+     * Serialized raw tensor content from either Tensor::AsProtoTensorContent or
+     * memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation
+     * can be used for all tensor types. The purpose of this representation is to
+     * reduce serialization overhead during RPC call by avoiding serialization of
+     * many repeated small items.
+     * 
+ * + * bytes tensor_content = 4; + * @return This builder for chaining. + */ + public Builder clearTensorContent() { + + tensorContent_ = getDefaultInstance().getTensorContent(); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList halfVal_ = emptyIntList(); + private void ensureHalfValIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + halfVal_ = mutableCopy(halfVal_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
+     * have some pointless zero padding for each value here.
+     * 
+ * + * repeated int32 half_val = 13 [packed = true]; + * @return A list containing the halfVal. + */ + public java.util.List + getHalfValList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(halfVal_) : halfVal_; + } + /** + *
+     * DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
+     * have some pointless zero padding for each value here.
+     * 
+ * + * repeated int32 half_val = 13 [packed = true]; + * @return The count of halfVal. + */ + public int getHalfValCount() { + return halfVal_.size(); + } + /** + *
+     * DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
+     * have some pointless zero padding for each value here.
+     * 
+ * + * repeated int32 half_val = 13 [packed = true]; + * @param index The index of the element to return. + * @return The halfVal at the given index. + */ + public int getHalfVal(int index) { + return halfVal_.getInt(index); + } + /** + *
+     * DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
+     * have some pointless zero padding for each value here.
+     * 
+ * + * repeated int32 half_val = 13 [packed = true]; + * @param index The index to set the value at. + * @param value The halfVal to set. + * @return This builder for chaining. + */ + public Builder setHalfVal( + int index, int value) { + ensureHalfValIsMutable(); + halfVal_.setInt(index, value); + onChanged(); + return this; + } + /** + *
+     * DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
+     * have some pointless zero padding for each value here.
+     * 
+ * + * repeated int32 half_val = 13 [packed = true]; + * @param value The halfVal to add. + * @return This builder for chaining. + */ + public Builder addHalfVal(int value) { + ensureHalfValIsMutable(); + halfVal_.addInt(value); + onChanged(); + return this; + } + /** + *
+     * DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
+     * have some pointless zero padding for each value here.
+     * 
+ * + * repeated int32 half_val = 13 [packed = true]; + * @param values The halfVal to add. + * @return This builder for chaining. + */ + public Builder addAllHalfVal( + java.lang.Iterable values) { + ensureHalfValIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, halfVal_); + onChanged(); + return this; + } + /** + *
+     * DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
+     * have some pointless zero padding for each value here.
+     * 
+ * + * repeated int32 half_val = 13 [packed = true]; + * @return This builder for chaining. + */ + public Builder clearHalfVal() { + halfVal_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.FloatList floatVal_ = emptyFloatList(); + private void ensureFloatValIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + floatVal_ = mutableCopy(floatVal_); + bitField0_ |= 0x00000002; + } + } + /** + *
+     * DT_FLOAT.
+     * 
+ * + * repeated float float_val = 5 [packed = true]; + * @return A list containing the floatVal. + */ + public java.util.List + getFloatValList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(floatVal_) : floatVal_; + } + /** + *
+     * DT_FLOAT.
+     * 
+ * + * repeated float float_val = 5 [packed = true]; + * @return The count of floatVal. + */ + public int getFloatValCount() { + return floatVal_.size(); + } + /** + *
+     * DT_FLOAT.
+     * 
+ * + * repeated float float_val = 5 [packed = true]; + * @param index The index of the element to return. + * @return The floatVal at the given index. + */ + public float getFloatVal(int index) { + return floatVal_.getFloat(index); + } + /** + *
+     * DT_FLOAT.
+     * 
+ * + * repeated float float_val = 5 [packed = true]; + * @param index The index to set the value at. + * @param value The floatVal to set. + * @return This builder for chaining. + */ + public Builder setFloatVal( + int index, float value) { + ensureFloatValIsMutable(); + floatVal_.setFloat(index, value); + onChanged(); + return this; + } + /** + *
+     * DT_FLOAT.
+     * 
+ * + * repeated float float_val = 5 [packed = true]; + * @param value The floatVal to add. + * @return This builder for chaining. + */ + public Builder addFloatVal(float value) { + ensureFloatValIsMutable(); + floatVal_.addFloat(value); + onChanged(); + return this; + } + /** + *
+     * DT_FLOAT.
+     * 
+ * + * repeated float float_val = 5 [packed = true]; + * @param values The floatVal to add. + * @return This builder for chaining. + */ + public Builder addAllFloatVal( + java.lang.Iterable values) { + ensureFloatValIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, floatVal_); + onChanged(); + return this; + } + /** + *
+     * DT_FLOAT.
+     * 
+ * + * repeated float float_val = 5 [packed = true]; + * @return This builder for chaining. + */ + public Builder clearFloatVal() { + floatVal_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.DoubleList doubleVal_ = emptyDoubleList(); + private void ensureDoubleValIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + doubleVal_ = mutableCopy(doubleVal_); + bitField0_ |= 0x00000004; + } + } + /** + *
+     * DT_DOUBLE.
+     * 
+ * + * repeated double double_val = 6 [packed = true]; + * @return A list containing the doubleVal. + */ + public java.util.List + getDoubleValList() { + return ((bitField0_ & 0x00000004) != 0) ? + java.util.Collections.unmodifiableList(doubleVal_) : doubleVal_; + } + /** + *
+     * DT_DOUBLE.
+     * 
+ * + * repeated double double_val = 6 [packed = true]; + * @return The count of doubleVal. + */ + public int getDoubleValCount() { + return doubleVal_.size(); + } + /** + *
+     * DT_DOUBLE.
+     * 
+ * + * repeated double double_val = 6 [packed = true]; + * @param index The index of the element to return. + * @return The doubleVal at the given index. + */ + public double getDoubleVal(int index) { + return doubleVal_.getDouble(index); + } + /** + *
+     * DT_DOUBLE.
+     * 
+ * + * repeated double double_val = 6 [packed = true]; + * @param index The index to set the value at. + * @param value The doubleVal to set. + * @return This builder for chaining. + */ + public Builder setDoubleVal( + int index, double value) { + ensureDoubleValIsMutable(); + doubleVal_.setDouble(index, value); + onChanged(); + return this; + } + /** + *
+     * DT_DOUBLE.
+     * 
+ * + * repeated double double_val = 6 [packed = true]; + * @param value The doubleVal to add. + * @return This builder for chaining. + */ + public Builder addDoubleVal(double value) { + ensureDoubleValIsMutable(); + doubleVal_.addDouble(value); + onChanged(); + return this; + } + /** + *
+     * DT_DOUBLE.
+     * 
+ * + * repeated double double_val = 6 [packed = true]; + * @param values The doubleVal to add. + * @return This builder for chaining. + */ + public Builder addAllDoubleVal( + java.lang.Iterable values) { + ensureDoubleValIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, doubleVal_); + onChanged(); + return this; + } + /** + *
+     * DT_DOUBLE.
+     * 
+ * + * repeated double double_val = 6 [packed = true]; + * @return This builder for chaining. + */ + public Builder clearDoubleVal() { + doubleVal_ = emptyDoubleList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList intVal_ = emptyIntList(); + private void ensureIntValIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + intVal_ = mutableCopy(intVal_); + bitField0_ |= 0x00000008; + } + } + /** + *
+     * DT_INT32, DT_INT16, DT_UINT16, DT_INT8, DT_UINT8.
+     * 
+ * + * repeated int32 int_val = 7 [packed = true]; + * @return A list containing the intVal. + */ + public java.util.List + getIntValList() { + return ((bitField0_ & 0x00000008) != 0) ? + java.util.Collections.unmodifiableList(intVal_) : intVal_; + } + /** + *
+     * DT_INT32, DT_INT16, DT_UINT16, DT_INT8, DT_UINT8.
+     * 
+ * + * repeated int32 int_val = 7 [packed = true]; + * @return The count of intVal. + */ + public int getIntValCount() { + return intVal_.size(); + } + /** + *
+     * DT_INT32, DT_INT16, DT_UINT16, DT_INT8, DT_UINT8.
+     * 
+ * + * repeated int32 int_val = 7 [packed = true]; + * @param index The index of the element to return. + * @return The intVal at the given index. + */ + public int getIntVal(int index) { + return intVal_.getInt(index); + } + /** + *
+     * DT_INT32, DT_INT16, DT_UINT16, DT_INT8, DT_UINT8.
+     * 
+ * + * repeated int32 int_val = 7 [packed = true]; + * @param index The index to set the value at. + * @param value The intVal to set. + * @return This builder for chaining. + */ + public Builder setIntVal( + int index, int value) { + ensureIntValIsMutable(); + intVal_.setInt(index, value); + onChanged(); + return this; + } + /** + *
+     * DT_INT32, DT_INT16, DT_UINT16, DT_INT8, DT_UINT8.
+     * 
+ * + * repeated int32 int_val = 7 [packed = true]; + * @param value The intVal to add. + * @return This builder for chaining. + */ + public Builder addIntVal(int value) { + ensureIntValIsMutable(); + intVal_.addInt(value); + onChanged(); + return this; + } + /** + *
+     * DT_INT32, DT_INT16, DT_UINT16, DT_INT8, DT_UINT8.
+     * 
+ * + * repeated int32 int_val = 7 [packed = true]; + * @param values The intVal to add. + * @return This builder for chaining. + */ + public Builder addAllIntVal( + java.lang.Iterable values) { + ensureIntValIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, intVal_); + onChanged(); + return this; + } + /** + *
+     * DT_INT32, DT_INT16, DT_UINT16, DT_INT8, DT_UINT8.
+     * 
+ * + * repeated int32 int_val = 7 [packed = true]; + * @return This builder for chaining. + */ + public Builder clearIntVal() { + intVal_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + private java.util.List stringVal_ = java.util.Collections.emptyList(); + private void ensureStringValIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + stringVal_ = new java.util.ArrayList(stringVal_); + bitField0_ |= 0x00000010; + } + } + /** + *
+     * DT_STRING
+     * 
+ * + * repeated bytes string_val = 8; + * @return A list containing the stringVal. + */ + public java.util.List + getStringValList() { + return ((bitField0_ & 0x00000010) != 0) ? + java.util.Collections.unmodifiableList(stringVal_) : stringVal_; + } + /** + *
+     * DT_STRING
+     * 
+ * + * repeated bytes string_val = 8; + * @return The count of stringVal. + */ + public int getStringValCount() { + return stringVal_.size(); + } + /** + *
+     * DT_STRING
+     * 
+ * + * repeated bytes string_val = 8; + * @param index The index of the element to return. + * @return The stringVal at the given index. + */ + public com.google.protobuf.ByteString getStringVal(int index) { + return stringVal_.get(index); + } + /** + *
+     * DT_STRING
+     * 
+ * + * repeated bytes string_val = 8; + * @param index The index to set the value at. + * @param value The stringVal to set. + * @return This builder for chaining. + */ + public Builder setStringVal( + int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStringValIsMutable(); + stringVal_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * DT_STRING
+     * 
+ * + * repeated bytes string_val = 8; + * @param value The stringVal to add. + * @return This builder for chaining. + */ + public Builder addStringVal(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStringValIsMutable(); + stringVal_.add(value); + onChanged(); + return this; + } + /** + *
+     * DT_STRING
+     * 
+ * + * repeated bytes string_val = 8; + * @param values The stringVal to add. + * @return This builder for chaining. + */ + public Builder addAllStringVal( + java.lang.Iterable values) { + ensureStringValIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stringVal_); + onChanged(); + return this; + } + /** + *
+     * DT_STRING
+     * 
+ * + * repeated bytes string_val = 8; + * @return This builder for chaining. + */ + public Builder clearStringVal() { + stringVal_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.FloatList scomplexVal_ = emptyFloatList(); + private void ensureScomplexValIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + scomplexVal_ = mutableCopy(scomplexVal_); + bitField0_ |= 0x00000020; + } + } + /** + *
+     * DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
+     * and imaginary parts of i-th single precision complex.
+     * 
+ * + * repeated float scomplex_val = 9 [packed = true]; + * @return A list containing the scomplexVal. + */ + public java.util.List + getScomplexValList() { + return ((bitField0_ & 0x00000020) != 0) ? + java.util.Collections.unmodifiableList(scomplexVal_) : scomplexVal_; + } + /** + *
+     * DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
+     * and imaginary parts of i-th single precision complex.
+     * 
+ * + * repeated float scomplex_val = 9 [packed = true]; + * @return The count of scomplexVal. + */ + public int getScomplexValCount() { + return scomplexVal_.size(); + } + /** + *
+     * DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
+     * and imaginary parts of i-th single precision complex.
+     * 
+ * + * repeated float scomplex_val = 9 [packed = true]; + * @param index The index of the element to return. + * @return The scomplexVal at the given index. + */ + public float getScomplexVal(int index) { + return scomplexVal_.getFloat(index); + } + /** + *
+     * DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
+     * and imaginary parts of i-th single precision complex.
+     * 
+ * + * repeated float scomplex_val = 9 [packed = true]; + * @param index The index to set the value at. + * @param value The scomplexVal to set. + * @return This builder for chaining. + */ + public Builder setScomplexVal( + int index, float value) { + ensureScomplexValIsMutable(); + scomplexVal_.setFloat(index, value); + onChanged(); + return this; + } + /** + *
+     * DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
+     * and imaginary parts of i-th single precision complex.
+     * 
+ * + * repeated float scomplex_val = 9 [packed = true]; + * @param value The scomplexVal to add. + * @return This builder for chaining. + */ + public Builder addScomplexVal(float value) { + ensureScomplexValIsMutable(); + scomplexVal_.addFloat(value); + onChanged(); + return this; + } + /** + *
+     * DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
+     * and imaginary parts of i-th single precision complex.
+     * 
+ * + * repeated float scomplex_val = 9 [packed = true]; + * @param values The scomplexVal to add. + * @return This builder for chaining. + */ + public Builder addAllScomplexVal( + java.lang.Iterable values) { + ensureScomplexValIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scomplexVal_); + onChanged(); + return this; + } + /** + *
+     * DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
+     * and imaginary parts of i-th single precision complex.
+     * 
+ * + * repeated float scomplex_val = 9 [packed = true]; + * @return This builder for chaining. + */ + public Builder clearScomplexVal() { + scomplexVal_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.LongList int64Val_ = emptyLongList(); + private void ensureInt64ValIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + int64Val_ = mutableCopy(int64Val_); + bitField0_ |= 0x00000040; + } + } + /** + *
+     * DT_INT64
+     * 
+ * + * repeated int64 int64_val = 10 [packed = true]; + * @return A list containing the int64Val. + */ + public java.util.List + getInt64ValList() { + return ((bitField0_ & 0x00000040) != 0) ? + java.util.Collections.unmodifiableList(int64Val_) : int64Val_; + } + /** + *
+     * DT_INT64
+     * 
+ * + * repeated int64 int64_val = 10 [packed = true]; + * @return The count of int64Val. + */ + public int getInt64ValCount() { + return int64Val_.size(); + } + /** + *
+     * DT_INT64
+     * 
+ * + * repeated int64 int64_val = 10 [packed = true]; + * @param index The index of the element to return. + * @return The int64Val at the given index. + */ + public long getInt64Val(int index) { + return int64Val_.getLong(index); + } + /** + *
+     * DT_INT64
+     * 
+ * + * repeated int64 int64_val = 10 [packed = true]; + * @param index The index to set the value at. + * @param value The int64Val to set. + * @return This builder for chaining. + */ + public Builder setInt64Val( + int index, long value) { + ensureInt64ValIsMutable(); + int64Val_.setLong(index, value); + onChanged(); + return this; + } + /** + *
+     * DT_INT64
+     * 
+ * + * repeated int64 int64_val = 10 [packed = true]; + * @param value The int64Val to add. + * @return This builder for chaining. + */ + public Builder addInt64Val(long value) { + ensureInt64ValIsMutable(); + int64Val_.addLong(value); + onChanged(); + return this; + } + /** + *
+     * DT_INT64
+     * 
+ * + * repeated int64 int64_val = 10 [packed = true]; + * @param values The int64Val to add. + * @return This builder for chaining. + */ + public Builder addAllInt64Val( + java.lang.Iterable values) { + ensureInt64ValIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, int64Val_); + onChanged(); + return this; + } + /** + *
+     * DT_INT64
+     * 
+ * + * repeated int64 int64_val = 10 [packed = true]; + * @return This builder for chaining. + */ + public Builder clearInt64Val() { + int64Val_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.BooleanList boolVal_ = emptyBooleanList(); + private void ensureBoolValIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + boolVal_ = mutableCopy(boolVal_); + bitField0_ |= 0x00000080; + } + } + /** + *
+     * DT_BOOL
+     * 
+ * + * repeated bool bool_val = 11 [packed = true]; + * @return A list containing the boolVal. + */ + public java.util.List + getBoolValList() { + return ((bitField0_ & 0x00000080) != 0) ? + java.util.Collections.unmodifiableList(boolVal_) : boolVal_; + } + /** + *
+     * DT_BOOL
+     * 
+ * + * repeated bool bool_val = 11 [packed = true]; + * @return The count of boolVal. + */ + public int getBoolValCount() { + return boolVal_.size(); + } + /** + *
+     * DT_BOOL
+     * 
+ * + * repeated bool bool_val = 11 [packed = true]; + * @param index The index of the element to return. + * @return The boolVal at the given index. + */ + public boolean getBoolVal(int index) { + return boolVal_.getBoolean(index); + } + /** + *
+     * DT_BOOL
+     * 
+ * + * repeated bool bool_val = 11 [packed = true]; + * @param index The index to set the value at. + * @param value The boolVal to set. + * @return This builder for chaining. + */ + public Builder setBoolVal( + int index, boolean value) { + ensureBoolValIsMutable(); + boolVal_.setBoolean(index, value); + onChanged(); + return this; + } + /** + *
+     * DT_BOOL
+     * 
+ * + * repeated bool bool_val = 11 [packed = true]; + * @param value The boolVal to add. + * @return This builder for chaining. + */ + public Builder addBoolVal(boolean value) { + ensureBoolValIsMutable(); + boolVal_.addBoolean(value); + onChanged(); + return this; + } + /** + *
+     * DT_BOOL
+     * 
+ * + * repeated bool bool_val = 11 [packed = true]; + * @param values The boolVal to add. + * @return This builder for chaining. + */ + public Builder addAllBoolVal( + java.lang.Iterable values) { + ensureBoolValIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, boolVal_); + onChanged(); + return this; + } + /** + *
+     * DT_BOOL
+     * 
+ * + * repeated bool bool_val = 11 [packed = true]; + * @return This builder for chaining. + */ + public Builder clearBoolVal() { + boolVal_ = emptyBooleanList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.DoubleList dcomplexVal_ = emptyDoubleList(); + private void ensureDcomplexValIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + dcomplexVal_ = mutableCopy(dcomplexVal_); + bitField0_ |= 0x00000100; + } + } + /** + *
+     * DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
+     * and imaginary parts of i-th double precision complex.
+     * 
+ * + * repeated double dcomplex_val = 12 [packed = true]; + * @return A list containing the dcomplexVal. + */ + public java.util.List + getDcomplexValList() { + return ((bitField0_ & 0x00000100) != 0) ? + java.util.Collections.unmodifiableList(dcomplexVal_) : dcomplexVal_; + } + /** + *
+     * DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
+     * and imaginary parts of i-th double precision complex.
+     * 
+ * + * repeated double dcomplex_val = 12 [packed = true]; + * @return The count of dcomplexVal. + */ + public int getDcomplexValCount() { + return dcomplexVal_.size(); + } + /** + *
+     * DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
+     * and imaginary parts of i-th double precision complex.
+     * 
+ * + * repeated double dcomplex_val = 12 [packed = true]; + * @param index The index of the element to return. + * @return The dcomplexVal at the given index. + */ + public double getDcomplexVal(int index) { + return dcomplexVal_.getDouble(index); + } + /** + *
+     * DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
+     * and imaginary parts of i-th double precision complex.
+     * 
+ * + * repeated double dcomplex_val = 12 [packed = true]; + * @param index The index to set the value at. + * @param value The dcomplexVal to set. + * @return This builder for chaining. + */ + public Builder setDcomplexVal( + int index, double value) { + ensureDcomplexValIsMutable(); + dcomplexVal_.setDouble(index, value); + onChanged(); + return this; + } + /** + *
+     * DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
+     * and imaginary parts of i-th double precision complex.
+     * 
+ * + * repeated double dcomplex_val = 12 [packed = true]; + * @param value The dcomplexVal to add. + * @return This builder for chaining. + */ + public Builder addDcomplexVal(double value) { + ensureDcomplexValIsMutable(); + dcomplexVal_.addDouble(value); + onChanged(); + return this; + } + /** + *
+     * DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
+     * and imaginary parts of i-th double precision complex.
+     * 
+ * + * repeated double dcomplex_val = 12 [packed = true]; + * @param values The dcomplexVal to add. + * @return This builder for chaining. + */ + public Builder addAllDcomplexVal( + java.lang.Iterable values) { + ensureDcomplexValIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dcomplexVal_); + onChanged(); + return this; + } + /** + *
+     * DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
+     * and imaginary parts of i-th double precision complex.
+     * 
+ * + * repeated double dcomplex_val = 12 [packed = true]; + * @return This builder for chaining. + */ + public Builder clearDcomplexVal() { + dcomplexVal_ = emptyDoubleList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + private java.util.List resourceHandleVal_ = + java.util.Collections.emptyList(); + private void ensureResourceHandleValIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + resourceHandleVal_ = new java.util.ArrayList(resourceHandleVal_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ResourceHandleProto, org.tensorflow.proto.ResourceHandleProto.Builder, org.tensorflow.proto.ResourceHandleProtoOrBuilder> resourceHandleValBuilder_; + + /** + *
+     * DT_RESOURCE
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + public java.util.List getResourceHandleValList() { + if (resourceHandleValBuilder_ == null) { + return java.util.Collections.unmodifiableList(resourceHandleVal_); + } else { + return resourceHandleValBuilder_.getMessageList(); + } + } + /** + *
+     * DT_RESOURCE
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + public int getResourceHandleValCount() { + if (resourceHandleValBuilder_ == null) { + return resourceHandleVal_.size(); + } else { + return resourceHandleValBuilder_.getCount(); + } + } + /** + *
+     * DT_RESOURCE
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + public org.tensorflow.proto.ResourceHandleProto getResourceHandleVal(int index) { + if (resourceHandleValBuilder_ == null) { + return resourceHandleVal_.get(index); + } else { + return resourceHandleValBuilder_.getMessage(index); + } + } + /** + *
+     * DT_RESOURCE
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + public Builder setResourceHandleVal( + int index, org.tensorflow.proto.ResourceHandleProto value) { + if (resourceHandleValBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceHandleValIsMutable(); + resourceHandleVal_.set(index, value); + onChanged(); + } else { + resourceHandleValBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * DT_RESOURCE
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + public Builder setResourceHandleVal( + int index, org.tensorflow.proto.ResourceHandleProto.Builder builderForValue) { + if (resourceHandleValBuilder_ == null) { + ensureResourceHandleValIsMutable(); + resourceHandleVal_.set(index, builderForValue.build()); + onChanged(); + } else { + resourceHandleValBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * DT_RESOURCE
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + public Builder addResourceHandleVal(org.tensorflow.proto.ResourceHandleProto value) { + if (resourceHandleValBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceHandleValIsMutable(); + resourceHandleVal_.add(value); + onChanged(); + } else { + resourceHandleValBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * DT_RESOURCE
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + public Builder addResourceHandleVal( + int index, org.tensorflow.proto.ResourceHandleProto value) { + if (resourceHandleValBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceHandleValIsMutable(); + resourceHandleVal_.add(index, value); + onChanged(); + } else { + resourceHandleValBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * DT_RESOURCE
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + public Builder addResourceHandleVal( + org.tensorflow.proto.ResourceHandleProto.Builder builderForValue) { + if (resourceHandleValBuilder_ == null) { + ensureResourceHandleValIsMutable(); + resourceHandleVal_.add(builderForValue.build()); + onChanged(); + } else { + resourceHandleValBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * DT_RESOURCE
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + public Builder addResourceHandleVal( + int index, org.tensorflow.proto.ResourceHandleProto.Builder builderForValue) { + if (resourceHandleValBuilder_ == null) { + ensureResourceHandleValIsMutable(); + resourceHandleVal_.add(index, builderForValue.build()); + onChanged(); + } else { + resourceHandleValBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * DT_RESOURCE
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + public Builder addAllResourceHandleVal( + java.lang.Iterable values) { + if (resourceHandleValBuilder_ == null) { + ensureResourceHandleValIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceHandleVal_); + onChanged(); + } else { + resourceHandleValBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * DT_RESOURCE
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + public Builder clearResourceHandleVal() { + if (resourceHandleValBuilder_ == null) { + resourceHandleVal_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + resourceHandleValBuilder_.clear(); + } + return this; + } + /** + *
+     * DT_RESOURCE
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + public Builder removeResourceHandleVal(int index) { + if (resourceHandleValBuilder_ == null) { + ensureResourceHandleValIsMutable(); + resourceHandleVal_.remove(index); + onChanged(); + } else { + resourceHandleValBuilder_.remove(index); + } + return this; + } + /** + *
+     * DT_RESOURCE
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + public org.tensorflow.proto.ResourceHandleProto.Builder getResourceHandleValBuilder( + int index) { + return getResourceHandleValFieldBuilder().getBuilder(index); + } + /** + *
+     * DT_RESOURCE
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + public org.tensorflow.proto.ResourceHandleProtoOrBuilder getResourceHandleValOrBuilder( + int index) { + if (resourceHandleValBuilder_ == null) { + return resourceHandleVal_.get(index); } else { + return resourceHandleValBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * DT_RESOURCE
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + public java.util.List + getResourceHandleValOrBuilderList() { + if (resourceHandleValBuilder_ != null) { + return resourceHandleValBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resourceHandleVal_); + } + } + /** + *
+     * DT_RESOURCE
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + public org.tensorflow.proto.ResourceHandleProto.Builder addResourceHandleValBuilder() { + return getResourceHandleValFieldBuilder().addBuilder( + org.tensorflow.proto.ResourceHandleProto.getDefaultInstance()); + } + /** + *
+     * DT_RESOURCE
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + public org.tensorflow.proto.ResourceHandleProto.Builder addResourceHandleValBuilder( + int index) { + return getResourceHandleValFieldBuilder().addBuilder( + index, org.tensorflow.proto.ResourceHandleProto.getDefaultInstance()); + } + /** + *
+     * DT_RESOURCE
+     * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + public java.util.List + getResourceHandleValBuilderList() { + return getResourceHandleValFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ResourceHandleProto, org.tensorflow.proto.ResourceHandleProto.Builder, org.tensorflow.proto.ResourceHandleProtoOrBuilder> + getResourceHandleValFieldBuilder() { + if (resourceHandleValBuilder_ == null) { + resourceHandleValBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.ResourceHandleProto, org.tensorflow.proto.ResourceHandleProto.Builder, org.tensorflow.proto.ResourceHandleProtoOrBuilder>( + resourceHandleVal_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + resourceHandleVal_ = null; + } + return resourceHandleValBuilder_; + } + + private java.util.List variantVal_ = + java.util.Collections.emptyList(); + private void ensureVariantValIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + variantVal_ = new java.util.ArrayList(variantVal_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.VariantTensorDataProto, org.tensorflow.proto.VariantTensorDataProto.Builder, org.tensorflow.proto.VariantTensorDataProtoOrBuilder> variantValBuilder_; + + /** + *
+     * DT_VARIANT
+     * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + public java.util.List getVariantValList() { + if (variantValBuilder_ == null) { + return java.util.Collections.unmodifiableList(variantVal_); + } else { + return variantValBuilder_.getMessageList(); + } + } + /** + *
+     * DT_VARIANT
+     * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + public int getVariantValCount() { + if (variantValBuilder_ == null) { + return variantVal_.size(); + } else { + return variantValBuilder_.getCount(); + } + } + /** + *
+     * DT_VARIANT
+     * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + public org.tensorflow.proto.VariantTensorDataProto getVariantVal(int index) { + if (variantValBuilder_ == null) { + return variantVal_.get(index); + } else { + return variantValBuilder_.getMessage(index); + } + } + /** + *
+     * DT_VARIANT
+     * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + public Builder setVariantVal( + int index, org.tensorflow.proto.VariantTensorDataProto value) { + if (variantValBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariantValIsMutable(); + variantVal_.set(index, value); + onChanged(); + } else { + variantValBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * DT_VARIANT
+     * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + public Builder setVariantVal( + int index, org.tensorflow.proto.VariantTensorDataProto.Builder builderForValue) { + if (variantValBuilder_ == null) { + ensureVariantValIsMutable(); + variantVal_.set(index, builderForValue.build()); + onChanged(); + } else { + variantValBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * DT_VARIANT
+     * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + public Builder addVariantVal(org.tensorflow.proto.VariantTensorDataProto value) { + if (variantValBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariantValIsMutable(); + variantVal_.add(value); + onChanged(); + } else { + variantValBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * DT_VARIANT
+     * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + public Builder addVariantVal( + int index, org.tensorflow.proto.VariantTensorDataProto value) { + if (variantValBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariantValIsMutable(); + variantVal_.add(index, value); + onChanged(); + } else { + variantValBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * DT_VARIANT
+     * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + public Builder addVariantVal( + org.tensorflow.proto.VariantTensorDataProto.Builder builderForValue) { + if (variantValBuilder_ == null) { + ensureVariantValIsMutable(); + variantVal_.add(builderForValue.build()); + onChanged(); + } else { + variantValBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * DT_VARIANT
+     * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + public Builder addVariantVal( + int index, org.tensorflow.proto.VariantTensorDataProto.Builder builderForValue) { + if (variantValBuilder_ == null) { + ensureVariantValIsMutable(); + variantVal_.add(index, builderForValue.build()); + onChanged(); + } else { + variantValBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * DT_VARIANT
+     * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + public Builder addAllVariantVal( + java.lang.Iterable values) { + if (variantValBuilder_ == null) { + ensureVariantValIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, variantVal_); + onChanged(); + } else { + variantValBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * DT_VARIANT
+     * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + public Builder clearVariantVal() { + if (variantValBuilder_ == null) { + variantVal_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + variantValBuilder_.clear(); + } + return this; + } + /** + *
+     * DT_VARIANT
+     * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + public Builder removeVariantVal(int index) { + if (variantValBuilder_ == null) { + ensureVariantValIsMutable(); + variantVal_.remove(index); + onChanged(); + } else { + variantValBuilder_.remove(index); + } + return this; + } + /** + *
+     * DT_VARIANT
+     * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + public org.tensorflow.proto.VariantTensorDataProto.Builder getVariantValBuilder( + int index) { + return getVariantValFieldBuilder().getBuilder(index); + } + /** + *
+     * DT_VARIANT
+     * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + public org.tensorflow.proto.VariantTensorDataProtoOrBuilder getVariantValOrBuilder( + int index) { + if (variantValBuilder_ == null) { + return variantVal_.get(index); } else { + return variantValBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * DT_VARIANT
+     * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + public java.util.List + getVariantValOrBuilderList() { + if (variantValBuilder_ != null) { + return variantValBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(variantVal_); + } + } + /** + *
+     * DT_VARIANT
+     * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + public org.tensorflow.proto.VariantTensorDataProto.Builder addVariantValBuilder() { + return getVariantValFieldBuilder().addBuilder( + org.tensorflow.proto.VariantTensorDataProto.getDefaultInstance()); + } + /** + *
+     * DT_VARIANT
+     * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + public org.tensorflow.proto.VariantTensorDataProto.Builder addVariantValBuilder( + int index) { + return getVariantValFieldBuilder().addBuilder( + index, org.tensorflow.proto.VariantTensorDataProto.getDefaultInstance()); + } + /** + *
+     * DT_VARIANT
+     * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + public java.util.List + getVariantValBuilderList() { + return getVariantValFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.VariantTensorDataProto, org.tensorflow.proto.VariantTensorDataProto.Builder, org.tensorflow.proto.VariantTensorDataProtoOrBuilder> + getVariantValFieldBuilder() { + if (variantValBuilder_ == null) { + variantValBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.VariantTensorDataProto, org.tensorflow.proto.VariantTensorDataProto.Builder, org.tensorflow.proto.VariantTensorDataProtoOrBuilder>( + variantVal_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); + variantVal_ = null; + } + return variantValBuilder_; + } + + private com.google.protobuf.Internal.IntList uint32Val_ = emptyIntList(); + private void ensureUint32ValIsMutable() { + if (!((bitField0_ & 0x00000800) != 0)) { + uint32Val_ = mutableCopy(uint32Val_); + bitField0_ |= 0x00000800; + } + } + /** + *
+     * DT_UINT32
+     * 
+ * + * repeated uint32 uint32_val = 16 [packed = true]; + * @return A list containing the uint32Val. + */ + public java.util.List + getUint32ValList() { + return ((bitField0_ & 0x00000800) != 0) ? + java.util.Collections.unmodifiableList(uint32Val_) : uint32Val_; + } + /** + *
+     * DT_UINT32
+     * 
+ * + * repeated uint32 uint32_val = 16 [packed = true]; + * @return The count of uint32Val. + */ + public int getUint32ValCount() { + return uint32Val_.size(); + } + /** + *
+     * DT_UINT32
+     * 
+ * + * repeated uint32 uint32_val = 16 [packed = true]; + * @param index The index of the element to return. + * @return The uint32Val at the given index. + */ + public int getUint32Val(int index) { + return uint32Val_.getInt(index); + } + /** + *
+     * DT_UINT32
+     * 
+ * + * repeated uint32 uint32_val = 16 [packed = true]; + * @param index The index to set the value at. + * @param value The uint32Val to set. + * @return This builder for chaining. + */ + public Builder setUint32Val( + int index, int value) { + ensureUint32ValIsMutable(); + uint32Val_.setInt(index, value); + onChanged(); + return this; + } + /** + *
+     * DT_UINT32
+     * 
+ * + * repeated uint32 uint32_val = 16 [packed = true]; + * @param value The uint32Val to add. + * @return This builder for chaining. + */ + public Builder addUint32Val(int value) { + ensureUint32ValIsMutable(); + uint32Val_.addInt(value); + onChanged(); + return this; + } + /** + *
+     * DT_UINT32
+     * 
+ * + * repeated uint32 uint32_val = 16 [packed = true]; + * @param values The uint32Val to add. + * @return This builder for chaining. + */ + public Builder addAllUint32Val( + java.lang.Iterable values) { + ensureUint32ValIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uint32Val_); + onChanged(); + return this; + } + /** + *
+     * DT_UINT32
+     * 
+ * + * repeated uint32 uint32_val = 16 [packed = true]; + * @return This builder for chaining. + */ + public Builder clearUint32Val() { + uint32Val_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.LongList uint64Val_ = emptyLongList(); + private void ensureUint64ValIsMutable() { + if (!((bitField0_ & 0x00001000) != 0)) { + uint64Val_ = mutableCopy(uint64Val_); + bitField0_ |= 0x00001000; + } + } + /** + *
+     * DT_UINT64
+     * 
+ * + * repeated uint64 uint64_val = 17 [packed = true]; + * @return A list containing the uint64Val. + */ + public java.util.List + getUint64ValList() { + return ((bitField0_ & 0x00001000) != 0) ? + java.util.Collections.unmodifiableList(uint64Val_) : uint64Val_; + } + /** + *
+     * DT_UINT64
+     * 
+ * + * repeated uint64 uint64_val = 17 [packed = true]; + * @return The count of uint64Val. + */ + public int getUint64ValCount() { + return uint64Val_.size(); + } + /** + *
+     * DT_UINT64
+     * 
+ * + * repeated uint64 uint64_val = 17 [packed = true]; + * @param index The index of the element to return. + * @return The uint64Val at the given index. + */ + public long getUint64Val(int index) { + return uint64Val_.getLong(index); + } + /** + *
+     * DT_UINT64
+     * 
+ * + * repeated uint64 uint64_val = 17 [packed = true]; + * @param index The index to set the value at. + * @param value The uint64Val to set. + * @return This builder for chaining. + */ + public Builder setUint64Val( + int index, long value) { + ensureUint64ValIsMutable(); + uint64Val_.setLong(index, value); + onChanged(); + return this; + } + /** + *
+     * DT_UINT64
+     * 
+ * + * repeated uint64 uint64_val = 17 [packed = true]; + * @param value The uint64Val to add. + * @return This builder for chaining. + */ + public Builder addUint64Val(long value) { + ensureUint64ValIsMutable(); + uint64Val_.addLong(value); + onChanged(); + return this; + } + /** + *
+     * DT_UINT64
+     * 
+ * + * repeated uint64 uint64_val = 17 [packed = true]; + * @param values The uint64Val to add. + * @return This builder for chaining. + */ + public Builder addAllUint64Val( + java.lang.Iterable values) { + ensureUint64ValIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uint64Val_); + onChanged(); + return this; + } + /** + *
+     * DT_UINT64
+     * 
+ * + * repeated uint64 uint64_val = 17 [packed = true]; + * @return This builder for chaining. + */ + public Builder clearUint64Val() { + uint64Val_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString float8Val_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * DT_FLOAT8_*, use variable-sized set of bytes
+     * (i.e. the equivalent of repeated uint8, if such a thing existed).
+     * 
+ * + * bytes float8_val = 18; + * @return The float8Val. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFloat8Val() { + return float8Val_; + } + /** + *
+     * DT_FLOAT8_*, use variable-sized set of bytes
+     * (i.e. the equivalent of repeated uint8, if such a thing existed).
+     * 
+ * + * bytes float8_val = 18; + * @param value The float8Val to set. + * @return This builder for chaining. + */ + public Builder setFloat8Val(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + float8Val_ = value; + onChanged(); + return this; + } + /** + *
+     * DT_FLOAT8_*, use variable-sized set of bytes
+     * (i.e. the equivalent of repeated uint8, if such a thing existed).
+     * 
+ * + * bytes float8_val = 18; + * @return This builder for chaining. + */ + public Builder clearFloat8Val() { + + float8Val_ = getDefaultInstance().getFloat8Val(); + 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:tensorflow.TensorProto) + } + + // @@protoc_insertion_point(class_scope:tensorflow.TensorProto) + private static final org.tensorflow.proto.TensorProto DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.TensorProto(); + } + + public static org.tensorflow.proto.TensorProto getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TensorProto 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 org.tensorflow.proto.TensorProto getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorProtoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorProtoOrBuilder.java new file mode 100644 index 00000000000..fe901586e8c --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorProtoOrBuilder.java @@ -0,0 +1,501 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/tensor.proto + +package org.tensorflow.proto; + +public interface TensorProtoOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.TensorProto) + com.google.protobuf.MessageOrBuilder { + + /** + * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. + */ + int getDtypeValue(); + /** + * .tensorflow.DataType dtype = 1; + * @return The dtype. + */ + org.tensorflow.proto.DataType getDtype(); + + /** + *
+   * Shape of the tensor.  TODO(touts): sort out the 0-rank issues.
+   * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + * @return Whether the tensorShape field is set. + */ + boolean hasTensorShape(); + /** + *
+   * Shape of the tensor.  TODO(touts): sort out the 0-rank issues.
+   * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + * @return The tensorShape. + */ + org.tensorflow.proto.TensorShapeProto getTensorShape(); + /** + *
+   * Shape of the tensor.  TODO(touts): sort out the 0-rank issues.
+   * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + org.tensorflow.proto.TensorShapeProtoOrBuilder getTensorShapeOrBuilder(); + + /** + *
+   * Version number.
+   * In version 0, if the "repeated xxx" representations contain only one
+   * element, that element is repeated to fill the shape.  This makes it easy
+   * to represent a constant Tensor with a single value.
+   * 
+ * + * int32 version_number = 3; + * @return The versionNumber. + */ + int getVersionNumber(); + + /** + *
+   * Serialized raw tensor content from either Tensor::AsProtoTensorContent or
+   * memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation
+   * can be used for all tensor types. The purpose of this representation is to
+   * reduce serialization overhead during RPC call by avoiding serialization of
+   * many repeated small items.
+   * 
+ * + * bytes tensor_content = 4; + * @return The tensorContent. + */ + com.google.protobuf.ByteString getTensorContent(); + + /** + *
+   * DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
+   * have some pointless zero padding for each value here.
+   * 
+ * + * repeated int32 half_val = 13 [packed = true]; + * @return A list containing the halfVal. + */ + java.util.List getHalfValList(); + /** + *
+   * DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
+   * have some pointless zero padding for each value here.
+   * 
+ * + * repeated int32 half_val = 13 [packed = true]; + * @return The count of halfVal. + */ + int getHalfValCount(); + /** + *
+   * DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
+   * have some pointless zero padding for each value here.
+   * 
+ * + * repeated int32 half_val = 13 [packed = true]; + * @param index The index of the element to return. + * @return The halfVal at the given index. + */ + int getHalfVal(int index); + + /** + *
+   * DT_FLOAT.
+   * 
+ * + * repeated float float_val = 5 [packed = true]; + * @return A list containing the floatVal. + */ + java.util.List getFloatValList(); + /** + *
+   * DT_FLOAT.
+   * 
+ * + * repeated float float_val = 5 [packed = true]; + * @return The count of floatVal. + */ + int getFloatValCount(); + /** + *
+   * DT_FLOAT.
+   * 
+ * + * repeated float float_val = 5 [packed = true]; + * @param index The index of the element to return. + * @return The floatVal at the given index. + */ + float getFloatVal(int index); + + /** + *
+   * DT_DOUBLE.
+   * 
+ * + * repeated double double_val = 6 [packed = true]; + * @return A list containing the doubleVal. + */ + java.util.List getDoubleValList(); + /** + *
+   * DT_DOUBLE.
+   * 
+ * + * repeated double double_val = 6 [packed = true]; + * @return The count of doubleVal. + */ + int getDoubleValCount(); + /** + *
+   * DT_DOUBLE.
+   * 
+ * + * repeated double double_val = 6 [packed = true]; + * @param index The index of the element to return. + * @return The doubleVal at the given index. + */ + double getDoubleVal(int index); + + /** + *
+   * DT_INT32, DT_INT16, DT_UINT16, DT_INT8, DT_UINT8.
+   * 
+ * + * repeated int32 int_val = 7 [packed = true]; + * @return A list containing the intVal. + */ + java.util.List getIntValList(); + /** + *
+   * DT_INT32, DT_INT16, DT_UINT16, DT_INT8, DT_UINT8.
+   * 
+ * + * repeated int32 int_val = 7 [packed = true]; + * @return The count of intVal. + */ + int getIntValCount(); + /** + *
+   * DT_INT32, DT_INT16, DT_UINT16, DT_INT8, DT_UINT8.
+   * 
+ * + * repeated int32 int_val = 7 [packed = true]; + * @param index The index of the element to return. + * @return The intVal at the given index. + */ + int getIntVal(int index); + + /** + *
+   * DT_STRING
+   * 
+ * + * repeated bytes string_val = 8; + * @return A list containing the stringVal. + */ + java.util.List getStringValList(); + /** + *
+   * DT_STRING
+   * 
+ * + * repeated bytes string_val = 8; + * @return The count of stringVal. + */ + int getStringValCount(); + /** + *
+   * DT_STRING
+   * 
+ * + * repeated bytes string_val = 8; + * @param index The index of the element to return. + * @return The stringVal at the given index. + */ + com.google.protobuf.ByteString getStringVal(int index); + + /** + *
+   * DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
+   * and imaginary parts of i-th single precision complex.
+   * 
+ * + * repeated float scomplex_val = 9 [packed = true]; + * @return A list containing the scomplexVal. + */ + java.util.List getScomplexValList(); + /** + *
+   * DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
+   * and imaginary parts of i-th single precision complex.
+   * 
+ * + * repeated float scomplex_val = 9 [packed = true]; + * @return The count of scomplexVal. + */ + int getScomplexValCount(); + /** + *
+   * DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
+   * and imaginary parts of i-th single precision complex.
+   * 
+ * + * repeated float scomplex_val = 9 [packed = true]; + * @param index The index of the element to return. + * @return The scomplexVal at the given index. + */ + float getScomplexVal(int index); + + /** + *
+   * DT_INT64
+   * 
+ * + * repeated int64 int64_val = 10 [packed = true]; + * @return A list containing the int64Val. + */ + java.util.List getInt64ValList(); + /** + *
+   * DT_INT64
+   * 
+ * + * repeated int64 int64_val = 10 [packed = true]; + * @return The count of int64Val. + */ + int getInt64ValCount(); + /** + *
+   * DT_INT64
+   * 
+ * + * repeated int64 int64_val = 10 [packed = true]; + * @param index The index of the element to return. + * @return The int64Val at the given index. + */ + long getInt64Val(int index); + + /** + *
+   * DT_BOOL
+   * 
+ * + * repeated bool bool_val = 11 [packed = true]; + * @return A list containing the boolVal. + */ + java.util.List getBoolValList(); + /** + *
+   * DT_BOOL
+   * 
+ * + * repeated bool bool_val = 11 [packed = true]; + * @return The count of boolVal. + */ + int getBoolValCount(); + /** + *
+   * DT_BOOL
+   * 
+ * + * repeated bool bool_val = 11 [packed = true]; + * @param index The index of the element to return. + * @return The boolVal at the given index. + */ + boolean getBoolVal(int index); + + /** + *
+   * DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
+   * and imaginary parts of i-th double precision complex.
+   * 
+ * + * repeated double dcomplex_val = 12 [packed = true]; + * @return A list containing the dcomplexVal. + */ + java.util.List getDcomplexValList(); + /** + *
+   * DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
+   * and imaginary parts of i-th double precision complex.
+   * 
+ * + * repeated double dcomplex_val = 12 [packed = true]; + * @return The count of dcomplexVal. + */ + int getDcomplexValCount(); + /** + *
+   * DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
+   * and imaginary parts of i-th double precision complex.
+   * 
+ * + * repeated double dcomplex_val = 12 [packed = true]; + * @param index The index of the element to return. + * @return The dcomplexVal at the given index. + */ + double getDcomplexVal(int index); + + /** + *
+   * DT_RESOURCE
+   * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + java.util.List + getResourceHandleValList(); + /** + *
+   * DT_RESOURCE
+   * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + org.tensorflow.proto.ResourceHandleProto getResourceHandleVal(int index); + /** + *
+   * DT_RESOURCE
+   * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + int getResourceHandleValCount(); + /** + *
+   * DT_RESOURCE
+   * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + java.util.List + getResourceHandleValOrBuilderList(); + /** + *
+   * DT_RESOURCE
+   * 
+ * + * repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; + */ + org.tensorflow.proto.ResourceHandleProtoOrBuilder getResourceHandleValOrBuilder( + int index); + + /** + *
+   * DT_VARIANT
+   * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + java.util.List + getVariantValList(); + /** + *
+   * DT_VARIANT
+   * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + org.tensorflow.proto.VariantTensorDataProto getVariantVal(int index); + /** + *
+   * DT_VARIANT
+   * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + int getVariantValCount(); + /** + *
+   * DT_VARIANT
+   * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + java.util.List + getVariantValOrBuilderList(); + /** + *
+   * DT_VARIANT
+   * 
+ * + * repeated .tensorflow.VariantTensorDataProto variant_val = 15; + */ + org.tensorflow.proto.VariantTensorDataProtoOrBuilder getVariantValOrBuilder( + int index); + + /** + *
+   * DT_UINT32
+   * 
+ * + * repeated uint32 uint32_val = 16 [packed = true]; + * @return A list containing the uint32Val. + */ + java.util.List getUint32ValList(); + /** + *
+   * DT_UINT32
+   * 
+ * + * repeated uint32 uint32_val = 16 [packed = true]; + * @return The count of uint32Val. + */ + int getUint32ValCount(); + /** + *
+   * DT_UINT32
+   * 
+ * + * repeated uint32 uint32_val = 16 [packed = true]; + * @param index The index of the element to return. + * @return The uint32Val at the given index. + */ + int getUint32Val(int index); + + /** + *
+   * DT_UINT64
+   * 
+ * + * repeated uint64 uint64_val = 17 [packed = true]; + * @return A list containing the uint64Val. + */ + java.util.List getUint64ValList(); + /** + *
+   * DT_UINT64
+   * 
+ * + * repeated uint64 uint64_val = 17 [packed = true]; + * @return The count of uint64Val. + */ + int getUint64ValCount(); + /** + *
+   * DT_UINT64
+   * 
+ * + * repeated uint64 uint64_val = 17 [packed = true]; + * @param index The index of the element to return. + * @return The uint64Val at the given index. + */ + long getUint64Val(int index); + + /** + *
+   * DT_FLOAT8_*, use variable-sized set of bytes
+   * (i.e. the equivalent of repeated uint8, if such a thing existed).
+   * 
+ * + * bytes float8_val = 18; + * @return The float8Val. + */ + com.google.protobuf.ByteString getFloat8Val(); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorProtos.java new file mode 100644 index 00000000000..4644f5795ca --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorProtos.java @@ -0,0 +1,87 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/tensor.proto + +package org.tensorflow.proto; + +public final class TensorProtos { + private TensorProtos() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_TensorProto_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_TensorProto_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_VariantTensorDataProto_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_VariantTensorDataProto_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n&tensorflow/core/framework/tensor.proto" + + "\022\ntensorflow\032/tensorflow/core/framework/" + + "resource_handle.proto\032,tensorflow/core/f" + + "ramework/tensor_shape.proto\032%tensorflow/" + + "core/framework/types.proto\"\240\004\n\013TensorPro" + + "to\022#\n\005dtype\030\001 \001(\0162\024.tensorflow.DataType\022" + + "2\n\014tensor_shape\030\002 \001(\0132\034.tensorflow.Tenso" + + "rShapeProto\022\026\n\016version_number\030\003 \001(\005\022\026\n\016t" + + "ensor_content\030\004 \001(\014\022\024\n\010half_val\030\r \003(\005B\002\020" + + "\001\022\025\n\tfloat_val\030\005 \003(\002B\002\020\001\022\026\n\ndouble_val\030\006" + + " \003(\001B\002\020\001\022\023\n\007int_val\030\007 \003(\005B\002\020\001\022\022\n\nstring_" + + "val\030\010 \003(\014\022\030\n\014scomplex_val\030\t \003(\002B\002\020\001\022\025\n\ti" + + "nt64_val\030\n \003(\003B\002\020\001\022\024\n\010bool_val\030\013 \003(\010B\002\020\001" + + "\022\030\n\014dcomplex_val\030\014 \003(\001B\002\020\001\022<\n\023resource_h" + + "andle_val\030\016 \003(\0132\037.tensorflow.ResourceHan" + + "dleProto\0227\n\013variant_val\030\017 \003(\0132\".tensorfl" + + "ow.VariantTensorDataProto\022\026\n\nuint32_val\030" + + "\020 \003(\rB\002\020\001\022\026\n\nuint64_val\030\021 \003(\004B\002\020\001\022\022\n\nflo" + + "at8_val\030\022 \001(\014\"g\n\026VariantTensorDataProto\022" + + "\021\n\ttype_name\030\001 \001(\t\022\020\n\010metadata\030\002 \001(\014\022(\n\007" + + "tensors\030\003 \003(\0132\027.tensorflow.TensorProtoBx" + + "\n\024org.tensorflow.protoB\014TensorProtosP\001ZM" + + "github.com/tensorflow/tensorflow/tensorf" + + "low/go/core/framework/tensor_go_proto\370\001\001" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + org.tensorflow.proto.ResourceHandle.getDescriptor(), + org.tensorflow.proto.TensorShapeProtos.getDescriptor(), + org.tensorflow.proto.TypesProtos.getDescriptor(), + }); + internal_static_tensorflow_TensorProto_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_TensorProto_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_TensorProto_descriptor, + new java.lang.String[] { "Dtype", "TensorShape", "VersionNumber", "TensorContent", "HalfVal", "FloatVal", "DoubleVal", "IntVal", "StringVal", "ScomplexVal", "Int64Val", "BoolVal", "DcomplexVal", "ResourceHandleVal", "VariantVal", "Uint32Val", "Uint64Val", "Float8Val", }); + internal_static_tensorflow_VariantTensorDataProto_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_tensorflow_VariantTensorDataProto_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_VariantTensorDataProto_descriptor, + new java.lang.String[] { "TypeName", "Metadata", "Tensors", }); + org.tensorflow.proto.ResourceHandle.getDescriptor(); + org.tensorflow.proto.TensorShapeProtos.getDescriptor(); + org.tensorflow.proto.TypesProtos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorShapeProto.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorShapeProto.java new file mode 100644 index 00000000000..97452f6c4a5 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorShapeProto.java @@ -0,0 +1,1848 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/tensor_shape.proto + +package org.tensorflow.proto; + +/** + *
+ * Dimensions of a tensor.
+ * 
+ * + * Protobuf type {@code tensorflow.TensorShapeProto} + */ +public final class TensorShapeProto extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.TensorShapeProto) + TensorShapeProtoOrBuilder { +private static final long serialVersionUID = 0L; + // Use TensorShapeProto.newBuilder() to construct. + private TensorShapeProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TensorShapeProto() { + dim_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TensorShapeProto(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TensorShapeProtos.internal_static_tensorflow_TensorShapeProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TensorShapeProtos.internal_static_tensorflow_TensorShapeProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TensorShapeProto.class, org.tensorflow.proto.TensorShapeProto.Builder.class); + } + + public interface DimOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.TensorShapeProto.Dim) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Size of the tensor in that dimension.
+     * This value must be >= -1, but values of -1 are reserved for "unknown"
+     * shapes (values of -1 mean "unknown" dimension).  Certain wrappers
+     * that work with TensorShapeProto may fail at runtime when deserializing
+     * a TensorShapeProto containing a dim value of -1.
+     * 
+ * + * int64 size = 1; + * @return The size. + */ + long getSize(); + + /** + *
+     * Optional name of the tensor dimension.
+     * 
+ * + * string name = 2; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * Optional name of the tensor dimension.
+     * 
+ * + * string name = 2; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * One dimension of the tensor.
+   * 
+ * + * Protobuf type {@code tensorflow.TensorShapeProto.Dim} + */ + public static final class Dim extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.TensorShapeProto.Dim) + DimOrBuilder { + private static final long serialVersionUID = 0L; + // Use Dim.newBuilder() to construct. + private Dim(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Dim() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Dim(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TensorShapeProtos.internal_static_tensorflow_TensorShapeProto_Dim_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TensorShapeProtos.internal_static_tensorflow_TensorShapeProto_Dim_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TensorShapeProto.Dim.class, org.tensorflow.proto.TensorShapeProto.Dim.Builder.class); + } + + public static final int SIZE_FIELD_NUMBER = 1; + private long size_; + /** + *
+     * Size of the tensor in that dimension.
+     * This value must be >= -1, but values of -1 are reserved for "unknown"
+     * shapes (values of -1 mean "unknown" dimension).  Certain wrappers
+     * that work with TensorShapeProto may fail at runtime when deserializing
+     * a TensorShapeProto containing a dim value of -1.
+     * 
+ * + * int64 size = 1; + * @return The size. + */ + @java.lang.Override + public long getSize() { + return size_; + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + *
+     * Optional name of the tensor dimension.
+     * 
+ * + * string name = 2; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+     * Optional name of the tensor dimension.
+     * 
+ * + * string name = 2; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = 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 (size_ != 0L) { + output.writeInt64(1, size_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (size_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, size_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + 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 org.tensorflow.proto.TensorShapeProto.Dim)) { + return super.equals(obj); + } + org.tensorflow.proto.TensorShapeProto.Dim other = (org.tensorflow.proto.TensorShapeProto.Dim) obj; + + if (getSize() + != other.getSize()) return false; + if (!getName() + .equals(other.getName())) 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) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSize()); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.TensorShapeProto.Dim parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorShapeProto.Dim parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorShapeProto.Dim parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorShapeProto.Dim parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorShapeProto.Dim parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorShapeProto.Dim parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorShapeProto.Dim parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorShapeProto.Dim 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 org.tensorflow.proto.TensorShapeProto.Dim parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorShapeProto.Dim 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 org.tensorflow.proto.TensorShapeProto.Dim parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorShapeProto.Dim 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(org.tensorflow.proto.TensorShapeProto.Dim 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; + } + /** + *
+     * One dimension of the tensor.
+     * 
+ * + * Protobuf type {@code tensorflow.TensorShapeProto.Dim} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.TensorShapeProto.Dim) + org.tensorflow.proto.TensorShapeProto.DimOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TensorShapeProtos.internal_static_tensorflow_TensorShapeProto_Dim_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TensorShapeProtos.internal_static_tensorflow_TensorShapeProto_Dim_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TensorShapeProto.Dim.class, org.tensorflow.proto.TensorShapeProto.Dim.Builder.class); + } + + // Construct using org.tensorflow.proto.TensorShapeProto.Dim.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + size_ = 0L; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.TensorShapeProtos.internal_static_tensorflow_TensorShapeProto_Dim_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto.Dim getDefaultInstanceForType() { + return org.tensorflow.proto.TensorShapeProto.Dim.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto.Dim build() { + org.tensorflow.proto.TensorShapeProto.Dim result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto.Dim buildPartial() { + org.tensorflow.proto.TensorShapeProto.Dim result = new org.tensorflow.proto.TensorShapeProto.Dim(this); + result.size_ = size_; + result.name_ = name_; + 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 org.tensorflow.proto.TensorShapeProto.Dim) { + return mergeFrom((org.tensorflow.proto.TensorShapeProto.Dim)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.TensorShapeProto.Dim other) { + if (other == org.tensorflow.proto.TensorShapeProto.Dim.getDefaultInstance()) return this; + if (other.getSize() != 0L) { + setSize(other.getSize()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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 8: { + size_ = input.readInt64(); + + break; + } // case 8 + case 18: { + name_ = input.readStringRequireUtf8(); + + 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 long size_ ; + /** + *
+       * Size of the tensor in that dimension.
+       * This value must be >= -1, but values of -1 are reserved for "unknown"
+       * shapes (values of -1 mean "unknown" dimension).  Certain wrappers
+       * that work with TensorShapeProto may fail at runtime when deserializing
+       * a TensorShapeProto containing a dim value of -1.
+       * 
+ * + * int64 size = 1; + * @return The size. + */ + @java.lang.Override + public long getSize() { + return size_; + } + /** + *
+       * Size of the tensor in that dimension.
+       * This value must be >= -1, but values of -1 are reserved for "unknown"
+       * shapes (values of -1 mean "unknown" dimension).  Certain wrappers
+       * that work with TensorShapeProto may fail at runtime when deserializing
+       * a TensorShapeProto containing a dim value of -1.
+       * 
+ * + * int64 size = 1; + * @param value The size to set. + * @return This builder for chaining. + */ + public Builder setSize(long value) { + + size_ = value; + onChanged(); + return this; + } + /** + *
+       * Size of the tensor in that dimension.
+       * This value must be >= -1, but values of -1 are reserved for "unknown"
+       * shapes (values of -1 mean "unknown" dimension).  Certain wrappers
+       * that work with TensorShapeProto may fail at runtime when deserializing
+       * a TensorShapeProto containing a dim value of -1.
+       * 
+ * + * int64 size = 1; + * @return This builder for chaining. + */ + public Builder clearSize() { + + size_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * Optional name of the tensor dimension.
+       * 
+ * + * string name = 2; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Optional name of the tensor dimension.
+       * 
+ * + * string name = 2; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Optional name of the tensor dimension.
+       * 
+ * + * string name = 2; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Optional name of the tensor dimension.
+       * 
+ * + * string name = 2; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Optional name of the tensor dimension.
+       * 
+ * + * string name = 2; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.TensorShapeProto.Dim) + } + + // @@protoc_insertion_point(class_scope:tensorflow.TensorShapeProto.Dim) + private static final org.tensorflow.proto.TensorShapeProto.Dim DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.TensorShapeProto.Dim(); + } + + public static org.tensorflow.proto.TensorShapeProto.Dim getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Dim 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 org.tensorflow.proto.TensorShapeProto.Dim getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int DIM_FIELD_NUMBER = 2; + private java.util.List dim_; + /** + *
+   * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+   * for a 30 x 40 2D tensor.  If an entry has size -1, this
+   * corresponds to a dimension of unknown size. The names are
+   * optional.
+   * The order of entries in "dim" matters: It indicates the layout of the
+   * values in the tensor in-memory representation.
+   * The first entry in "dim" is the outermost dimension used to layout the
+   * values, the last entry is the innermost dimension.  This matches the
+   * in-memory layout of RowMajor Eigen tensors.
+   * If "dim.size()" > 0, "unknown_rank" must be false.
+   * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + @java.lang.Override + public java.util.List getDimList() { + return dim_; + } + /** + *
+   * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+   * for a 30 x 40 2D tensor.  If an entry has size -1, this
+   * corresponds to a dimension of unknown size. The names are
+   * optional.
+   * The order of entries in "dim" matters: It indicates the layout of the
+   * values in the tensor in-memory representation.
+   * The first entry in "dim" is the outermost dimension used to layout the
+   * values, the last entry is the innermost dimension.  This matches the
+   * in-memory layout of RowMajor Eigen tensors.
+   * If "dim.size()" > 0, "unknown_rank" must be false.
+   * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + @java.lang.Override + public java.util.List + getDimOrBuilderList() { + return dim_; + } + /** + *
+   * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+   * for a 30 x 40 2D tensor.  If an entry has size -1, this
+   * corresponds to a dimension of unknown size. The names are
+   * optional.
+   * The order of entries in "dim" matters: It indicates the layout of the
+   * values in the tensor in-memory representation.
+   * The first entry in "dim" is the outermost dimension used to layout the
+   * values, the last entry is the innermost dimension.  This matches the
+   * in-memory layout of RowMajor Eigen tensors.
+   * If "dim.size()" > 0, "unknown_rank" must be false.
+   * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + @java.lang.Override + public int getDimCount() { + return dim_.size(); + } + /** + *
+   * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+   * for a 30 x 40 2D tensor.  If an entry has size -1, this
+   * corresponds to a dimension of unknown size. The names are
+   * optional.
+   * The order of entries in "dim" matters: It indicates the layout of the
+   * values in the tensor in-memory representation.
+   * The first entry in "dim" is the outermost dimension used to layout the
+   * values, the last entry is the innermost dimension.  This matches the
+   * in-memory layout of RowMajor Eigen tensors.
+   * If "dim.size()" > 0, "unknown_rank" must be false.
+   * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto.Dim getDim(int index) { + return dim_.get(index); + } + /** + *
+   * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+   * for a 30 x 40 2D tensor.  If an entry has size -1, this
+   * corresponds to a dimension of unknown size. The names are
+   * optional.
+   * The order of entries in "dim" matters: It indicates the layout of the
+   * values in the tensor in-memory representation.
+   * The first entry in "dim" is the outermost dimension used to layout the
+   * values, the last entry is the innermost dimension.  This matches the
+   * in-memory layout of RowMajor Eigen tensors.
+   * If "dim.size()" > 0, "unknown_rank" must be false.
+   * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto.DimOrBuilder getDimOrBuilder( + int index) { + return dim_.get(index); + } + + public static final int UNKNOWN_RANK_FIELD_NUMBER = 3; + private boolean unknownRank_; + /** + *
+   * If true, the number of dimensions in the shape is unknown.
+   * If true, "dim.size()" must be 0.
+   * 
+ * + * bool unknown_rank = 3; + * @return The unknownRank. + */ + @java.lang.Override + public boolean getUnknownRank() { + return unknownRank_; + } + + 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 < dim_.size(); i++) { + output.writeMessage(2, dim_.get(i)); + } + if (unknownRank_ != false) { + output.writeBool(3, unknownRank_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dim_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, dim_.get(i)); + } + if (unknownRank_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, unknownRank_); + } + 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 org.tensorflow.proto.TensorShapeProto)) { + return super.equals(obj); + } + org.tensorflow.proto.TensorShapeProto other = (org.tensorflow.proto.TensorShapeProto) obj; + + if (!getDimList() + .equals(other.getDimList())) return false; + if (getUnknownRank() + != other.getUnknownRank()) 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 (getDimCount() > 0) { + hash = (37 * hash) + DIM_FIELD_NUMBER; + hash = (53 * hash) + getDimList().hashCode(); + } + hash = (37 * hash) + UNKNOWN_RANK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUnknownRank()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.TensorShapeProto parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorShapeProto parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorShapeProto parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorShapeProto parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorShapeProto parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorShapeProto parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorShapeProto parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorShapeProto 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 org.tensorflow.proto.TensorShapeProto parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorShapeProto 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 org.tensorflow.proto.TensorShapeProto parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorShapeProto 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(org.tensorflow.proto.TensorShapeProto 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; + } + /** + *
+   * Dimensions of a tensor.
+   * 
+ * + * Protobuf type {@code tensorflow.TensorShapeProto} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.TensorShapeProto) + org.tensorflow.proto.TensorShapeProtoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TensorShapeProtos.internal_static_tensorflow_TensorShapeProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TensorShapeProtos.internal_static_tensorflow_TensorShapeProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TensorShapeProto.class, org.tensorflow.proto.TensorShapeProto.Builder.class); + } + + // Construct using org.tensorflow.proto.TensorShapeProto.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (dimBuilder_ == null) { + dim_ = java.util.Collections.emptyList(); + } else { + dim_ = null; + dimBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + unknownRank_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.TensorShapeProtos.internal_static_tensorflow_TensorShapeProto_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto getDefaultInstanceForType() { + return org.tensorflow.proto.TensorShapeProto.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto build() { + org.tensorflow.proto.TensorShapeProto result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto buildPartial() { + org.tensorflow.proto.TensorShapeProto result = new org.tensorflow.proto.TensorShapeProto(this); + int from_bitField0_ = bitField0_; + if (dimBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dim_ = java.util.Collections.unmodifiableList(dim_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dim_ = dim_; + } else { + result.dim_ = dimBuilder_.build(); + } + result.unknownRank_ = unknownRank_; + 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 org.tensorflow.proto.TensorShapeProto) { + return mergeFrom((org.tensorflow.proto.TensorShapeProto)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.TensorShapeProto other) { + if (other == org.tensorflow.proto.TensorShapeProto.getDefaultInstance()) return this; + if (dimBuilder_ == null) { + if (!other.dim_.isEmpty()) { + if (dim_.isEmpty()) { + dim_ = other.dim_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDimIsMutable(); + dim_.addAll(other.dim_); + } + onChanged(); + } + } else { + if (!other.dim_.isEmpty()) { + if (dimBuilder_.isEmpty()) { + dimBuilder_.dispose(); + dimBuilder_ = null; + dim_ = other.dim_; + bitField0_ = (bitField0_ & ~0x00000001); + dimBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDimFieldBuilder() : null; + } else { + dimBuilder_.addAllMessages(other.dim_); + } + } + } + if (other.getUnknownRank() != false) { + setUnknownRank(other.getUnknownRank()); + } + 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 18: { + org.tensorflow.proto.TensorShapeProto.Dim m = + input.readMessage( + org.tensorflow.proto.TensorShapeProto.Dim.parser(), + extensionRegistry); + if (dimBuilder_ == null) { + ensureDimIsMutable(); + dim_.add(m); + } else { + dimBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + unknownRank_ = input.readBool(); + + break; + } // case 24 + 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.util.List dim_ = + java.util.Collections.emptyList(); + private void ensureDimIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dim_ = new java.util.ArrayList(dim_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto.Dim, org.tensorflow.proto.TensorShapeProto.Dim.Builder, org.tensorflow.proto.TensorShapeProto.DimOrBuilder> dimBuilder_; + + /** + *
+     * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+     * for a 30 x 40 2D tensor.  If an entry has size -1, this
+     * corresponds to a dimension of unknown size. The names are
+     * optional.
+     * The order of entries in "dim" matters: It indicates the layout of the
+     * values in the tensor in-memory representation.
+     * The first entry in "dim" is the outermost dimension used to layout the
+     * values, the last entry is the innermost dimension.  This matches the
+     * in-memory layout of RowMajor Eigen tensors.
+     * If "dim.size()" > 0, "unknown_rank" must be false.
+     * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + public java.util.List getDimList() { + if (dimBuilder_ == null) { + return java.util.Collections.unmodifiableList(dim_); + } else { + return dimBuilder_.getMessageList(); + } + } + /** + *
+     * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+     * for a 30 x 40 2D tensor.  If an entry has size -1, this
+     * corresponds to a dimension of unknown size. The names are
+     * optional.
+     * The order of entries in "dim" matters: It indicates the layout of the
+     * values in the tensor in-memory representation.
+     * The first entry in "dim" is the outermost dimension used to layout the
+     * values, the last entry is the innermost dimension.  This matches the
+     * in-memory layout of RowMajor Eigen tensors.
+     * If "dim.size()" > 0, "unknown_rank" must be false.
+     * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + public int getDimCount() { + if (dimBuilder_ == null) { + return dim_.size(); + } else { + return dimBuilder_.getCount(); + } + } + /** + *
+     * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+     * for a 30 x 40 2D tensor.  If an entry has size -1, this
+     * corresponds to a dimension of unknown size. The names are
+     * optional.
+     * The order of entries in "dim" matters: It indicates the layout of the
+     * values in the tensor in-memory representation.
+     * The first entry in "dim" is the outermost dimension used to layout the
+     * values, the last entry is the innermost dimension.  This matches the
+     * in-memory layout of RowMajor Eigen tensors.
+     * If "dim.size()" > 0, "unknown_rank" must be false.
+     * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + public org.tensorflow.proto.TensorShapeProto.Dim getDim(int index) { + if (dimBuilder_ == null) { + return dim_.get(index); + } else { + return dimBuilder_.getMessage(index); + } + } + /** + *
+     * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+     * for a 30 x 40 2D tensor.  If an entry has size -1, this
+     * corresponds to a dimension of unknown size. The names are
+     * optional.
+     * The order of entries in "dim" matters: It indicates the layout of the
+     * values in the tensor in-memory representation.
+     * The first entry in "dim" is the outermost dimension used to layout the
+     * values, the last entry is the innermost dimension.  This matches the
+     * in-memory layout of RowMajor Eigen tensors.
+     * If "dim.size()" > 0, "unknown_rank" must be false.
+     * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + public Builder setDim( + int index, org.tensorflow.proto.TensorShapeProto.Dim value) { + if (dimBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimIsMutable(); + dim_.set(index, value); + onChanged(); + } else { + dimBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+     * for a 30 x 40 2D tensor.  If an entry has size -1, this
+     * corresponds to a dimension of unknown size. The names are
+     * optional.
+     * The order of entries in "dim" matters: It indicates the layout of the
+     * values in the tensor in-memory representation.
+     * The first entry in "dim" is the outermost dimension used to layout the
+     * values, the last entry is the innermost dimension.  This matches the
+     * in-memory layout of RowMajor Eigen tensors.
+     * If "dim.size()" > 0, "unknown_rank" must be false.
+     * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + public Builder setDim( + int index, org.tensorflow.proto.TensorShapeProto.Dim.Builder builderForValue) { + if (dimBuilder_ == null) { + ensureDimIsMutable(); + dim_.set(index, builderForValue.build()); + onChanged(); + } else { + dimBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+     * for a 30 x 40 2D tensor.  If an entry has size -1, this
+     * corresponds to a dimension of unknown size. The names are
+     * optional.
+     * The order of entries in "dim" matters: It indicates the layout of the
+     * values in the tensor in-memory representation.
+     * The first entry in "dim" is the outermost dimension used to layout the
+     * values, the last entry is the innermost dimension.  This matches the
+     * in-memory layout of RowMajor Eigen tensors.
+     * If "dim.size()" > 0, "unknown_rank" must be false.
+     * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + public Builder addDim(org.tensorflow.proto.TensorShapeProto.Dim value) { + if (dimBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimIsMutable(); + dim_.add(value); + onChanged(); + } else { + dimBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+     * for a 30 x 40 2D tensor.  If an entry has size -1, this
+     * corresponds to a dimension of unknown size. The names are
+     * optional.
+     * The order of entries in "dim" matters: It indicates the layout of the
+     * values in the tensor in-memory representation.
+     * The first entry in "dim" is the outermost dimension used to layout the
+     * values, the last entry is the innermost dimension.  This matches the
+     * in-memory layout of RowMajor Eigen tensors.
+     * If "dim.size()" > 0, "unknown_rank" must be false.
+     * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + public Builder addDim( + int index, org.tensorflow.proto.TensorShapeProto.Dim value) { + if (dimBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimIsMutable(); + dim_.add(index, value); + onChanged(); + } else { + dimBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+     * for a 30 x 40 2D tensor.  If an entry has size -1, this
+     * corresponds to a dimension of unknown size. The names are
+     * optional.
+     * The order of entries in "dim" matters: It indicates the layout of the
+     * values in the tensor in-memory representation.
+     * The first entry in "dim" is the outermost dimension used to layout the
+     * values, the last entry is the innermost dimension.  This matches the
+     * in-memory layout of RowMajor Eigen tensors.
+     * If "dim.size()" > 0, "unknown_rank" must be false.
+     * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + public Builder addDim( + org.tensorflow.proto.TensorShapeProto.Dim.Builder builderForValue) { + if (dimBuilder_ == null) { + ensureDimIsMutable(); + dim_.add(builderForValue.build()); + onChanged(); + } else { + dimBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+     * for a 30 x 40 2D tensor.  If an entry has size -1, this
+     * corresponds to a dimension of unknown size. The names are
+     * optional.
+     * The order of entries in "dim" matters: It indicates the layout of the
+     * values in the tensor in-memory representation.
+     * The first entry in "dim" is the outermost dimension used to layout the
+     * values, the last entry is the innermost dimension.  This matches the
+     * in-memory layout of RowMajor Eigen tensors.
+     * If "dim.size()" > 0, "unknown_rank" must be false.
+     * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + public Builder addDim( + int index, org.tensorflow.proto.TensorShapeProto.Dim.Builder builderForValue) { + if (dimBuilder_ == null) { + ensureDimIsMutable(); + dim_.add(index, builderForValue.build()); + onChanged(); + } else { + dimBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+     * for a 30 x 40 2D tensor.  If an entry has size -1, this
+     * corresponds to a dimension of unknown size. The names are
+     * optional.
+     * The order of entries in "dim" matters: It indicates the layout of the
+     * values in the tensor in-memory representation.
+     * The first entry in "dim" is the outermost dimension used to layout the
+     * values, the last entry is the innermost dimension.  This matches the
+     * in-memory layout of RowMajor Eigen tensors.
+     * If "dim.size()" > 0, "unknown_rank" must be false.
+     * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + public Builder addAllDim( + java.lang.Iterable values) { + if (dimBuilder_ == null) { + ensureDimIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dim_); + onChanged(); + } else { + dimBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+     * for a 30 x 40 2D tensor.  If an entry has size -1, this
+     * corresponds to a dimension of unknown size. The names are
+     * optional.
+     * The order of entries in "dim" matters: It indicates the layout of the
+     * values in the tensor in-memory representation.
+     * The first entry in "dim" is the outermost dimension used to layout the
+     * values, the last entry is the innermost dimension.  This matches the
+     * in-memory layout of RowMajor Eigen tensors.
+     * If "dim.size()" > 0, "unknown_rank" must be false.
+     * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + public Builder clearDim() { + if (dimBuilder_ == null) { + dim_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dimBuilder_.clear(); + } + return this; + } + /** + *
+     * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+     * for a 30 x 40 2D tensor.  If an entry has size -1, this
+     * corresponds to a dimension of unknown size. The names are
+     * optional.
+     * The order of entries in "dim" matters: It indicates the layout of the
+     * values in the tensor in-memory representation.
+     * The first entry in "dim" is the outermost dimension used to layout the
+     * values, the last entry is the innermost dimension.  This matches the
+     * in-memory layout of RowMajor Eigen tensors.
+     * If "dim.size()" > 0, "unknown_rank" must be false.
+     * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + public Builder removeDim(int index) { + if (dimBuilder_ == null) { + ensureDimIsMutable(); + dim_.remove(index); + onChanged(); + } else { + dimBuilder_.remove(index); + } + return this; + } + /** + *
+     * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+     * for a 30 x 40 2D tensor.  If an entry has size -1, this
+     * corresponds to a dimension of unknown size. The names are
+     * optional.
+     * The order of entries in "dim" matters: It indicates the layout of the
+     * values in the tensor in-memory representation.
+     * The first entry in "dim" is the outermost dimension used to layout the
+     * values, the last entry is the innermost dimension.  This matches the
+     * in-memory layout of RowMajor Eigen tensors.
+     * If "dim.size()" > 0, "unknown_rank" must be false.
+     * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + public org.tensorflow.proto.TensorShapeProto.Dim.Builder getDimBuilder( + int index) { + return getDimFieldBuilder().getBuilder(index); + } + /** + *
+     * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+     * for a 30 x 40 2D tensor.  If an entry has size -1, this
+     * corresponds to a dimension of unknown size. The names are
+     * optional.
+     * The order of entries in "dim" matters: It indicates the layout of the
+     * values in the tensor in-memory representation.
+     * The first entry in "dim" is the outermost dimension used to layout the
+     * values, the last entry is the innermost dimension.  This matches the
+     * in-memory layout of RowMajor Eigen tensors.
+     * If "dim.size()" > 0, "unknown_rank" must be false.
+     * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + public org.tensorflow.proto.TensorShapeProto.DimOrBuilder getDimOrBuilder( + int index) { + if (dimBuilder_ == null) { + return dim_.get(index); } else { + return dimBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+     * for a 30 x 40 2D tensor.  If an entry has size -1, this
+     * corresponds to a dimension of unknown size. The names are
+     * optional.
+     * The order of entries in "dim" matters: It indicates the layout of the
+     * values in the tensor in-memory representation.
+     * The first entry in "dim" is the outermost dimension used to layout the
+     * values, the last entry is the innermost dimension.  This matches the
+     * in-memory layout of RowMajor Eigen tensors.
+     * If "dim.size()" > 0, "unknown_rank" must be false.
+     * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + public java.util.List + getDimOrBuilderList() { + if (dimBuilder_ != null) { + return dimBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dim_); + } + } + /** + *
+     * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+     * for a 30 x 40 2D tensor.  If an entry has size -1, this
+     * corresponds to a dimension of unknown size. The names are
+     * optional.
+     * The order of entries in "dim" matters: It indicates the layout of the
+     * values in the tensor in-memory representation.
+     * The first entry in "dim" is the outermost dimension used to layout the
+     * values, the last entry is the innermost dimension.  This matches the
+     * in-memory layout of RowMajor Eigen tensors.
+     * If "dim.size()" > 0, "unknown_rank" must be false.
+     * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + public org.tensorflow.proto.TensorShapeProto.Dim.Builder addDimBuilder() { + return getDimFieldBuilder().addBuilder( + org.tensorflow.proto.TensorShapeProto.Dim.getDefaultInstance()); + } + /** + *
+     * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+     * for a 30 x 40 2D tensor.  If an entry has size -1, this
+     * corresponds to a dimension of unknown size. The names are
+     * optional.
+     * The order of entries in "dim" matters: It indicates the layout of the
+     * values in the tensor in-memory representation.
+     * The first entry in "dim" is the outermost dimension used to layout the
+     * values, the last entry is the innermost dimension.  This matches the
+     * in-memory layout of RowMajor Eigen tensors.
+     * If "dim.size()" > 0, "unknown_rank" must be false.
+     * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + public org.tensorflow.proto.TensorShapeProto.Dim.Builder addDimBuilder( + int index) { + return getDimFieldBuilder().addBuilder( + index, org.tensorflow.proto.TensorShapeProto.Dim.getDefaultInstance()); + } + /** + *
+     * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+     * for a 30 x 40 2D tensor.  If an entry has size -1, this
+     * corresponds to a dimension of unknown size. The names are
+     * optional.
+     * The order of entries in "dim" matters: It indicates the layout of the
+     * values in the tensor in-memory representation.
+     * The first entry in "dim" is the outermost dimension used to layout the
+     * values, the last entry is the innermost dimension.  This matches the
+     * in-memory layout of RowMajor Eigen tensors.
+     * If "dim.size()" > 0, "unknown_rank" must be false.
+     * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + public java.util.List + getDimBuilderList() { + return getDimFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto.Dim, org.tensorflow.proto.TensorShapeProto.Dim.Builder, org.tensorflow.proto.TensorShapeProto.DimOrBuilder> + getDimFieldBuilder() { + if (dimBuilder_ == null) { + dimBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto.Dim, org.tensorflow.proto.TensorShapeProto.Dim.Builder, org.tensorflow.proto.TensorShapeProto.DimOrBuilder>( + dim_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dim_ = null; + } + return dimBuilder_; + } + + private boolean unknownRank_ ; + /** + *
+     * If true, the number of dimensions in the shape is unknown.
+     * If true, "dim.size()" must be 0.
+     * 
+ * + * bool unknown_rank = 3; + * @return The unknownRank. + */ + @java.lang.Override + public boolean getUnknownRank() { + return unknownRank_; + } + /** + *
+     * If true, the number of dimensions in the shape is unknown.
+     * If true, "dim.size()" must be 0.
+     * 
+ * + * bool unknown_rank = 3; + * @param value The unknownRank to set. + * @return This builder for chaining. + */ + public Builder setUnknownRank(boolean value) { + + unknownRank_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the number of dimensions in the shape is unknown.
+     * If true, "dim.size()" must be 0.
+     * 
+ * + * bool unknown_rank = 3; + * @return This builder for chaining. + */ + public Builder clearUnknownRank() { + + unknownRank_ = false; + 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:tensorflow.TensorShapeProto) + } + + // @@protoc_insertion_point(class_scope:tensorflow.TensorShapeProto) + private static final org.tensorflow.proto.TensorShapeProto DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.TensorShapeProto(); + } + + public static org.tensorflow.proto.TensorShapeProto getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TensorShapeProto 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 org.tensorflow.proto.TensorShapeProto getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorShapeProtoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorShapeProtoOrBuilder.java new file mode 100644 index 00000000000..9c5ef351c57 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorShapeProtoOrBuilder.java @@ -0,0 +1,109 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/tensor_shape.proto + +package org.tensorflow.proto; + +public interface TensorShapeProtoOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.TensorShapeProto) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+   * for a 30 x 40 2D tensor.  If an entry has size -1, this
+   * corresponds to a dimension of unknown size. The names are
+   * optional.
+   * The order of entries in "dim" matters: It indicates the layout of the
+   * values in the tensor in-memory representation.
+   * The first entry in "dim" is the outermost dimension used to layout the
+   * values, the last entry is the innermost dimension.  This matches the
+   * in-memory layout of RowMajor Eigen tensors.
+   * If "dim.size()" > 0, "unknown_rank" must be false.
+   * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + java.util.List + getDimList(); + /** + *
+   * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+   * for a 30 x 40 2D tensor.  If an entry has size -1, this
+   * corresponds to a dimension of unknown size. The names are
+   * optional.
+   * The order of entries in "dim" matters: It indicates the layout of the
+   * values in the tensor in-memory representation.
+   * The first entry in "dim" is the outermost dimension used to layout the
+   * values, the last entry is the innermost dimension.  This matches the
+   * in-memory layout of RowMajor Eigen tensors.
+   * If "dim.size()" > 0, "unknown_rank" must be false.
+   * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + org.tensorflow.proto.TensorShapeProto.Dim getDim(int index); + /** + *
+   * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+   * for a 30 x 40 2D tensor.  If an entry has size -1, this
+   * corresponds to a dimension of unknown size. The names are
+   * optional.
+   * The order of entries in "dim" matters: It indicates the layout of the
+   * values in the tensor in-memory representation.
+   * The first entry in "dim" is the outermost dimension used to layout the
+   * values, the last entry is the innermost dimension.  This matches the
+   * in-memory layout of RowMajor Eigen tensors.
+   * If "dim.size()" > 0, "unknown_rank" must be false.
+   * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + int getDimCount(); + /** + *
+   * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+   * for a 30 x 40 2D tensor.  If an entry has size -1, this
+   * corresponds to a dimension of unknown size. The names are
+   * optional.
+   * The order of entries in "dim" matters: It indicates the layout of the
+   * values in the tensor in-memory representation.
+   * The first entry in "dim" is the outermost dimension used to layout the
+   * values, the last entry is the innermost dimension.  This matches the
+   * in-memory layout of RowMajor Eigen tensors.
+   * If "dim.size()" > 0, "unknown_rank" must be false.
+   * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + java.util.List + getDimOrBuilderList(); + /** + *
+   * Dimensions of the tensor, such as {"input", 30}, {"output", 40}
+   * for a 30 x 40 2D tensor.  If an entry has size -1, this
+   * corresponds to a dimension of unknown size. The names are
+   * optional.
+   * The order of entries in "dim" matters: It indicates the layout of the
+   * values in the tensor in-memory representation.
+   * The first entry in "dim" is the outermost dimension used to layout the
+   * values, the last entry is the innermost dimension.  This matches the
+   * in-memory layout of RowMajor Eigen tensors.
+   * If "dim.size()" > 0, "unknown_rank" must be false.
+   * 
+ * + * repeated .tensorflow.TensorShapeProto.Dim dim = 2; + */ + org.tensorflow.proto.TensorShapeProto.DimOrBuilder getDimOrBuilder( + int index); + + /** + *
+   * If true, the number of dimensions in the shape is unknown.
+   * If true, "dim.size()" must be 0.
+   * 
+ * + * bool unknown_rank = 3; + * @return The unknownRank. + */ + boolean getUnknownRank(); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorShapeProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorShapeProtos.java new file mode 100644 index 00000000000..045a0a6da4c --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorShapeProtos.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/tensor_shape.proto + +package org.tensorflow.proto; + +public final class TensorShapeProtos { + private TensorShapeProtos() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_TensorShapeProto_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_TensorShapeProto_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_TensorShapeProto_Dim_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_TensorShapeProto_Dim_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,tensorflow/core/framework/tensor_shape" + + ".proto\022\ntensorflow\"z\n\020TensorShapeProto\022-" + + "\n\003dim\030\002 \003(\0132 .tensorflow.TensorShapeProt" + + "o.Dim\022\024\n\014unknown_rank\030\003 \001(\010\032!\n\003Dim\022\014\n\004si" + + "ze\030\001 \001(\003\022\014\n\004name\030\002 \001(\tB\203\001\n\024org.tensorflo" + + "w.protoB\021TensorShapeProtosP\001ZSgithub.com" + + "/tensorflow/tensorflow/tensorflow/go/cor" + + "e/framework/tensor_shape_go_proto\370\001\001b\006pr" + + "oto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_tensorflow_TensorShapeProto_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_TensorShapeProto_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_TensorShapeProto_descriptor, + new java.lang.String[] { "Dim", "UnknownRank", }); + internal_static_tensorflow_TensorShapeProto_Dim_descriptor = + internal_static_tensorflow_TensorShapeProto_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_TensorShapeProto_Dim_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_TensorShapeProto_Dim_descriptor, + new java.lang.String[] { "Size", "Name", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorSliceProto.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorSliceProto.java new file mode 100644 index 00000000000..0d6cb86e44e --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorSliceProto.java @@ -0,0 +1,1596 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/tensor_slice.proto + +package org.tensorflow.proto; + +/** + *
+ * Can only be interpreted if you know the corresponding TensorShape.
+ * 
+ * + * Protobuf type {@code tensorflow.TensorSliceProto} + */ +public final class TensorSliceProto extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.TensorSliceProto) + TensorSliceProtoOrBuilder { +private static final long serialVersionUID = 0L; + // Use TensorSliceProto.newBuilder() to construct. + private TensorSliceProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TensorSliceProto() { + extent_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TensorSliceProto(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TensorSliceProtos.internal_static_tensorflow_TensorSliceProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TensorSliceProtos.internal_static_tensorflow_TensorSliceProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TensorSliceProto.class, org.tensorflow.proto.TensorSliceProto.Builder.class); + } + + public interface ExtentOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.TensorSliceProto.Extent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Start index of the slice, starting at 0.
+     * 
+ * + * int64 start = 1; + * @return The start. + */ + long getStart(); + + /** + * int64 length = 2; + * @return Whether the length field is set. + */ + boolean hasLength(); + /** + * int64 length = 2; + * @return The length. + */ + long getLength(); + + public org.tensorflow.proto.TensorSliceProto.Extent.HasLengthCase getHasLengthCase(); + } + /** + *
+   * Extent of the slice in one dimension.
+   * 
+ * + * Protobuf type {@code tensorflow.TensorSliceProto.Extent} + */ + public static final class Extent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.TensorSliceProto.Extent) + ExtentOrBuilder { + private static final long serialVersionUID = 0L; + // Use Extent.newBuilder() to construct. + private Extent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Extent() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Extent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TensorSliceProtos.internal_static_tensorflow_TensorSliceProto_Extent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TensorSliceProtos.internal_static_tensorflow_TensorSliceProto_Extent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TensorSliceProto.Extent.class, org.tensorflow.proto.TensorSliceProto.Extent.Builder.class); + } + + private int hasLengthCase_ = 0; + private java.lang.Object hasLength_; + public enum HasLengthCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + LENGTH(2), + HASLENGTH_NOT_SET(0); + private final int value; + private HasLengthCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HasLengthCase valueOf(int value) { + return forNumber(value); + } + + public static HasLengthCase forNumber(int value) { + switch (value) { + case 2: return LENGTH; + case 0: return HASLENGTH_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public HasLengthCase + getHasLengthCase() { + return HasLengthCase.forNumber( + hasLengthCase_); + } + + public static final int START_FIELD_NUMBER = 1; + private long start_; + /** + *
+     * Start index of the slice, starting at 0.
+     * 
+ * + * int64 start = 1; + * @return The start. + */ + @java.lang.Override + public long getStart() { + return start_; + } + + public static final int LENGTH_FIELD_NUMBER = 2; + /** + * int64 length = 2; + * @return Whether the length field is set. + */ + @java.lang.Override + public boolean hasLength() { + return hasLengthCase_ == 2; + } + /** + * int64 length = 2; + * @return The length. + */ + @java.lang.Override + public long getLength() { + if (hasLengthCase_ == 2) { + return (java.lang.Long) hasLength_; + } + return 0L; + } + + 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 (start_ != 0L) { + output.writeInt64(1, start_); + } + if (hasLengthCase_ == 2) { + output.writeInt64( + 2, (long)((java.lang.Long) hasLength_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (start_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, start_); + } + if (hasLengthCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 2, (long)((java.lang.Long) hasLength_)); + } + 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 org.tensorflow.proto.TensorSliceProto.Extent)) { + return super.equals(obj); + } + org.tensorflow.proto.TensorSliceProto.Extent other = (org.tensorflow.proto.TensorSliceProto.Extent) obj; + + if (getStart() + != other.getStart()) return false; + if (!getHasLengthCase().equals(other.getHasLengthCase())) return false; + switch (hasLengthCase_) { + case 2: + if (getLength() + != other.getLength()) return false; + break; + case 0: + default: + } + 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) + START_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStart()); + switch (hasLengthCase_) { + case 2: + hash = (37 * hash) + LENGTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLength()); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.TensorSliceProto.Extent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorSliceProto.Extent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorSliceProto.Extent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorSliceProto.Extent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorSliceProto.Extent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorSliceProto.Extent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorSliceProto.Extent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorSliceProto.Extent 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 org.tensorflow.proto.TensorSliceProto.Extent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorSliceProto.Extent 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 org.tensorflow.proto.TensorSliceProto.Extent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorSliceProto.Extent 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(org.tensorflow.proto.TensorSliceProto.Extent 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; + } + /** + *
+     * Extent of the slice in one dimension.
+     * 
+ * + * Protobuf type {@code tensorflow.TensorSliceProto.Extent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.TensorSliceProto.Extent) + org.tensorflow.proto.TensorSliceProto.ExtentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TensorSliceProtos.internal_static_tensorflow_TensorSliceProto_Extent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TensorSliceProtos.internal_static_tensorflow_TensorSliceProto_Extent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TensorSliceProto.Extent.class, org.tensorflow.proto.TensorSliceProto.Extent.Builder.class); + } + + // Construct using org.tensorflow.proto.TensorSliceProto.Extent.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + start_ = 0L; + + hasLengthCase_ = 0; + hasLength_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.TensorSliceProtos.internal_static_tensorflow_TensorSliceProto_Extent_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.TensorSliceProto.Extent getDefaultInstanceForType() { + return org.tensorflow.proto.TensorSliceProto.Extent.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.TensorSliceProto.Extent build() { + org.tensorflow.proto.TensorSliceProto.Extent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.TensorSliceProto.Extent buildPartial() { + org.tensorflow.proto.TensorSliceProto.Extent result = new org.tensorflow.proto.TensorSliceProto.Extent(this); + result.start_ = start_; + if (hasLengthCase_ == 2) { + result.hasLength_ = hasLength_; + } + result.hasLengthCase_ = hasLengthCase_; + 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 org.tensorflow.proto.TensorSliceProto.Extent) { + return mergeFrom((org.tensorflow.proto.TensorSliceProto.Extent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.TensorSliceProto.Extent other) { + if (other == org.tensorflow.proto.TensorSliceProto.Extent.getDefaultInstance()) return this; + if (other.getStart() != 0L) { + setStart(other.getStart()); + } + switch (other.getHasLengthCase()) { + case LENGTH: { + setLength(other.getLength()); + break; + } + case HASLENGTH_NOT_SET: { + break; + } + } + 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: { + start_ = input.readInt64(); + + break; + } // case 8 + case 16: { + hasLength_ = input.readInt64(); + hasLengthCase_ = 2; + break; + } // case 16 + 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 hasLengthCase_ = 0; + private java.lang.Object hasLength_; + public HasLengthCase + getHasLengthCase() { + return HasLengthCase.forNumber( + hasLengthCase_); + } + + public Builder clearHasLength() { + hasLengthCase_ = 0; + hasLength_ = null; + onChanged(); + return this; + } + + + private long start_ ; + /** + *
+       * Start index of the slice, starting at 0.
+       * 
+ * + * int64 start = 1; + * @return The start. + */ + @java.lang.Override + public long getStart() { + return start_; + } + /** + *
+       * Start index of the slice, starting at 0.
+       * 
+ * + * int64 start = 1; + * @param value The start to set. + * @return This builder for chaining. + */ + public Builder setStart(long value) { + + start_ = value; + onChanged(); + return this; + } + /** + *
+       * Start index of the slice, starting at 0.
+       * 
+ * + * int64 start = 1; + * @return This builder for chaining. + */ + public Builder clearStart() { + + start_ = 0L; + onChanged(); + return this; + } + + /** + * int64 length = 2; + * @return Whether the length field is set. + */ + public boolean hasLength() { + return hasLengthCase_ == 2; + } + /** + * int64 length = 2; + * @return The length. + */ + public long getLength() { + if (hasLengthCase_ == 2) { + return (java.lang.Long) hasLength_; + } + return 0L; + } + /** + * int64 length = 2; + * @param value The length to set. + * @return This builder for chaining. + */ + public Builder setLength(long value) { + hasLengthCase_ = 2; + hasLength_ = value; + onChanged(); + return this; + } + /** + * int64 length = 2; + * @return This builder for chaining. + */ + public Builder clearLength() { + if (hasLengthCase_ == 2) { + hasLengthCase_ = 0; + hasLength_ = null; + 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:tensorflow.TensorSliceProto.Extent) + } + + // @@protoc_insertion_point(class_scope:tensorflow.TensorSliceProto.Extent) + private static final org.tensorflow.proto.TensorSliceProto.Extent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.TensorSliceProto.Extent(); + } + + public static org.tensorflow.proto.TensorSliceProto.Extent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Extent 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 org.tensorflow.proto.TensorSliceProto.Extent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int EXTENT_FIELD_NUMBER = 1; + private java.util.List extent_; + /** + *
+   * Extent of the slice in all tensor dimensions.
+   * Must have one entry for each of the dimension of the tensor that this
+   * slice belongs to.  The order of sizes is the same as the order of
+   * dimensions in the TensorShape.
+   * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + @java.lang.Override + public java.util.List getExtentList() { + return extent_; + } + /** + *
+   * Extent of the slice in all tensor dimensions.
+   * Must have one entry for each of the dimension of the tensor that this
+   * slice belongs to.  The order of sizes is the same as the order of
+   * dimensions in the TensorShape.
+   * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + @java.lang.Override + public java.util.List + getExtentOrBuilderList() { + return extent_; + } + /** + *
+   * Extent of the slice in all tensor dimensions.
+   * Must have one entry for each of the dimension of the tensor that this
+   * slice belongs to.  The order of sizes is the same as the order of
+   * dimensions in the TensorShape.
+   * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + @java.lang.Override + public int getExtentCount() { + return extent_.size(); + } + /** + *
+   * Extent of the slice in all tensor dimensions.
+   * Must have one entry for each of the dimension of the tensor that this
+   * slice belongs to.  The order of sizes is the same as the order of
+   * dimensions in the TensorShape.
+   * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + @java.lang.Override + public org.tensorflow.proto.TensorSliceProto.Extent getExtent(int index) { + return extent_.get(index); + } + /** + *
+   * Extent of the slice in all tensor dimensions.
+   * Must have one entry for each of the dimension of the tensor that this
+   * slice belongs to.  The order of sizes is the same as the order of
+   * dimensions in the TensorShape.
+   * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + @java.lang.Override + public org.tensorflow.proto.TensorSliceProto.ExtentOrBuilder getExtentOrBuilder( + int index) { + return extent_.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 < extent_.size(); i++) { + output.writeMessage(1, extent_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < extent_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, extent_.get(i)); + } + 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 org.tensorflow.proto.TensorSliceProto)) { + return super.equals(obj); + } + org.tensorflow.proto.TensorSliceProto other = (org.tensorflow.proto.TensorSliceProto) obj; + + if (!getExtentList() + .equals(other.getExtentList())) 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 (getExtentCount() > 0) { + hash = (37 * hash) + EXTENT_FIELD_NUMBER; + hash = (53 * hash) + getExtentList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.TensorSliceProto parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorSliceProto parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorSliceProto parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorSliceProto parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorSliceProto parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TensorSliceProto parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TensorSliceProto parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorSliceProto 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 org.tensorflow.proto.TensorSliceProto parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorSliceProto 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 org.tensorflow.proto.TensorSliceProto parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TensorSliceProto 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(org.tensorflow.proto.TensorSliceProto 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; + } + /** + *
+   * Can only be interpreted if you know the corresponding TensorShape.
+   * 
+ * + * Protobuf type {@code tensorflow.TensorSliceProto} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.TensorSliceProto) + org.tensorflow.proto.TensorSliceProtoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TensorSliceProtos.internal_static_tensorflow_TensorSliceProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TensorSliceProtos.internal_static_tensorflow_TensorSliceProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TensorSliceProto.class, org.tensorflow.proto.TensorSliceProto.Builder.class); + } + + // Construct using org.tensorflow.proto.TensorSliceProto.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (extentBuilder_ == null) { + extent_ = java.util.Collections.emptyList(); + } else { + extent_ = null; + extentBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.TensorSliceProtos.internal_static_tensorflow_TensorSliceProto_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.TensorSliceProto getDefaultInstanceForType() { + return org.tensorflow.proto.TensorSliceProto.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.TensorSliceProto build() { + org.tensorflow.proto.TensorSliceProto result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.TensorSliceProto buildPartial() { + org.tensorflow.proto.TensorSliceProto result = new org.tensorflow.proto.TensorSliceProto(this); + int from_bitField0_ = bitField0_; + if (extentBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + extent_ = java.util.Collections.unmodifiableList(extent_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.extent_ = extent_; + } else { + result.extent_ = extentBuilder_.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 org.tensorflow.proto.TensorSliceProto) { + return mergeFrom((org.tensorflow.proto.TensorSliceProto)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.TensorSliceProto other) { + if (other == org.tensorflow.proto.TensorSliceProto.getDefaultInstance()) return this; + if (extentBuilder_ == null) { + if (!other.extent_.isEmpty()) { + if (extent_.isEmpty()) { + extent_ = other.extent_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExtentIsMutable(); + extent_.addAll(other.extent_); + } + onChanged(); + } + } else { + if (!other.extent_.isEmpty()) { + if (extentBuilder_.isEmpty()) { + extentBuilder_.dispose(); + extentBuilder_ = null; + extent_ = other.extent_; + bitField0_ = (bitField0_ & ~0x00000001); + extentBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getExtentFieldBuilder() : null; + } else { + extentBuilder_.addAllMessages(other.extent_); + } + } + } + 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: { + org.tensorflow.proto.TensorSliceProto.Extent m = + input.readMessage( + org.tensorflow.proto.TensorSliceProto.Extent.parser(), + extensionRegistry); + if (extentBuilder_ == null) { + ensureExtentIsMutable(); + extent_.add(m); + } else { + extentBuilder_.addMessage(m); + } + 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.util.List extent_ = + java.util.Collections.emptyList(); + private void ensureExtentIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + extent_ = new java.util.ArrayList(extent_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorSliceProto.Extent, org.tensorflow.proto.TensorSliceProto.Extent.Builder, org.tensorflow.proto.TensorSliceProto.ExtentOrBuilder> extentBuilder_; + + /** + *
+     * Extent of the slice in all tensor dimensions.
+     * Must have one entry for each of the dimension of the tensor that this
+     * slice belongs to.  The order of sizes is the same as the order of
+     * dimensions in the TensorShape.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + public java.util.List getExtentList() { + if (extentBuilder_ == null) { + return java.util.Collections.unmodifiableList(extent_); + } else { + return extentBuilder_.getMessageList(); + } + } + /** + *
+     * Extent of the slice in all tensor dimensions.
+     * Must have one entry for each of the dimension of the tensor that this
+     * slice belongs to.  The order of sizes is the same as the order of
+     * dimensions in the TensorShape.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + public int getExtentCount() { + if (extentBuilder_ == null) { + return extent_.size(); + } else { + return extentBuilder_.getCount(); + } + } + /** + *
+     * Extent of the slice in all tensor dimensions.
+     * Must have one entry for each of the dimension of the tensor that this
+     * slice belongs to.  The order of sizes is the same as the order of
+     * dimensions in the TensorShape.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + public org.tensorflow.proto.TensorSliceProto.Extent getExtent(int index) { + if (extentBuilder_ == null) { + return extent_.get(index); + } else { + return extentBuilder_.getMessage(index); + } + } + /** + *
+     * Extent of the slice in all tensor dimensions.
+     * Must have one entry for each of the dimension of the tensor that this
+     * slice belongs to.  The order of sizes is the same as the order of
+     * dimensions in the TensorShape.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + public Builder setExtent( + int index, org.tensorflow.proto.TensorSliceProto.Extent value) { + if (extentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExtentIsMutable(); + extent_.set(index, value); + onChanged(); + } else { + extentBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Extent of the slice in all tensor dimensions.
+     * Must have one entry for each of the dimension of the tensor that this
+     * slice belongs to.  The order of sizes is the same as the order of
+     * dimensions in the TensorShape.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + public Builder setExtent( + int index, org.tensorflow.proto.TensorSliceProto.Extent.Builder builderForValue) { + if (extentBuilder_ == null) { + ensureExtentIsMutable(); + extent_.set(index, builderForValue.build()); + onChanged(); + } else { + extentBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Extent of the slice in all tensor dimensions.
+     * Must have one entry for each of the dimension of the tensor that this
+     * slice belongs to.  The order of sizes is the same as the order of
+     * dimensions in the TensorShape.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + public Builder addExtent(org.tensorflow.proto.TensorSliceProto.Extent value) { + if (extentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExtentIsMutable(); + extent_.add(value); + onChanged(); + } else { + extentBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Extent of the slice in all tensor dimensions.
+     * Must have one entry for each of the dimension of the tensor that this
+     * slice belongs to.  The order of sizes is the same as the order of
+     * dimensions in the TensorShape.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + public Builder addExtent( + int index, org.tensorflow.proto.TensorSliceProto.Extent value) { + if (extentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExtentIsMutable(); + extent_.add(index, value); + onChanged(); + } else { + extentBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Extent of the slice in all tensor dimensions.
+     * Must have one entry for each of the dimension of the tensor that this
+     * slice belongs to.  The order of sizes is the same as the order of
+     * dimensions in the TensorShape.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + public Builder addExtent( + org.tensorflow.proto.TensorSliceProto.Extent.Builder builderForValue) { + if (extentBuilder_ == null) { + ensureExtentIsMutable(); + extent_.add(builderForValue.build()); + onChanged(); + } else { + extentBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Extent of the slice in all tensor dimensions.
+     * Must have one entry for each of the dimension of the tensor that this
+     * slice belongs to.  The order of sizes is the same as the order of
+     * dimensions in the TensorShape.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + public Builder addExtent( + int index, org.tensorflow.proto.TensorSliceProto.Extent.Builder builderForValue) { + if (extentBuilder_ == null) { + ensureExtentIsMutable(); + extent_.add(index, builderForValue.build()); + onChanged(); + } else { + extentBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Extent of the slice in all tensor dimensions.
+     * Must have one entry for each of the dimension of the tensor that this
+     * slice belongs to.  The order of sizes is the same as the order of
+     * dimensions in the TensorShape.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + public Builder addAllExtent( + java.lang.Iterable values) { + if (extentBuilder_ == null) { + ensureExtentIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, extent_); + onChanged(); + } else { + extentBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Extent of the slice in all tensor dimensions.
+     * Must have one entry for each of the dimension of the tensor that this
+     * slice belongs to.  The order of sizes is the same as the order of
+     * dimensions in the TensorShape.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + public Builder clearExtent() { + if (extentBuilder_ == null) { + extent_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + extentBuilder_.clear(); + } + return this; + } + /** + *
+     * Extent of the slice in all tensor dimensions.
+     * Must have one entry for each of the dimension of the tensor that this
+     * slice belongs to.  The order of sizes is the same as the order of
+     * dimensions in the TensorShape.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + public Builder removeExtent(int index) { + if (extentBuilder_ == null) { + ensureExtentIsMutable(); + extent_.remove(index); + onChanged(); + } else { + extentBuilder_.remove(index); + } + return this; + } + /** + *
+     * Extent of the slice in all tensor dimensions.
+     * Must have one entry for each of the dimension of the tensor that this
+     * slice belongs to.  The order of sizes is the same as the order of
+     * dimensions in the TensorShape.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + public org.tensorflow.proto.TensorSliceProto.Extent.Builder getExtentBuilder( + int index) { + return getExtentFieldBuilder().getBuilder(index); + } + /** + *
+     * Extent of the slice in all tensor dimensions.
+     * Must have one entry for each of the dimension of the tensor that this
+     * slice belongs to.  The order of sizes is the same as the order of
+     * dimensions in the TensorShape.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + public org.tensorflow.proto.TensorSliceProto.ExtentOrBuilder getExtentOrBuilder( + int index) { + if (extentBuilder_ == null) { + return extent_.get(index); } else { + return extentBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Extent of the slice in all tensor dimensions.
+     * Must have one entry for each of the dimension of the tensor that this
+     * slice belongs to.  The order of sizes is the same as the order of
+     * dimensions in the TensorShape.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + public java.util.List + getExtentOrBuilderList() { + if (extentBuilder_ != null) { + return extentBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(extent_); + } + } + /** + *
+     * Extent of the slice in all tensor dimensions.
+     * Must have one entry for each of the dimension of the tensor that this
+     * slice belongs to.  The order of sizes is the same as the order of
+     * dimensions in the TensorShape.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + public org.tensorflow.proto.TensorSliceProto.Extent.Builder addExtentBuilder() { + return getExtentFieldBuilder().addBuilder( + org.tensorflow.proto.TensorSliceProto.Extent.getDefaultInstance()); + } + /** + *
+     * Extent of the slice in all tensor dimensions.
+     * Must have one entry for each of the dimension of the tensor that this
+     * slice belongs to.  The order of sizes is the same as the order of
+     * dimensions in the TensorShape.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + public org.tensorflow.proto.TensorSliceProto.Extent.Builder addExtentBuilder( + int index) { + return getExtentFieldBuilder().addBuilder( + index, org.tensorflow.proto.TensorSliceProto.Extent.getDefaultInstance()); + } + /** + *
+     * Extent of the slice in all tensor dimensions.
+     * Must have one entry for each of the dimension of the tensor that this
+     * slice belongs to.  The order of sizes is the same as the order of
+     * dimensions in the TensorShape.
+     * 
+ * + * repeated .tensorflow.TensorSliceProto.Extent extent = 1; + */ + public java.util.List + getExtentBuilderList() { + return getExtentFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorSliceProto.Extent, org.tensorflow.proto.TensorSliceProto.Extent.Builder, org.tensorflow.proto.TensorSliceProto.ExtentOrBuilder> + getExtentFieldBuilder() { + if (extentBuilder_ == null) { + extentBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorSliceProto.Extent, org.tensorflow.proto.TensorSliceProto.Extent.Builder, org.tensorflow.proto.TensorSliceProto.ExtentOrBuilder>( + extent_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + extent_ = null; + } + return extentBuilder_; + } + @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:tensorflow.TensorSliceProto) + } + + // @@protoc_insertion_point(class_scope:tensorflow.TensorSliceProto) + private static final org.tensorflow.proto.TensorSliceProto DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.TensorSliceProto(); + } + + public static org.tensorflow.proto.TensorSliceProto getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TensorSliceProto 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 org.tensorflow.proto.TensorSliceProto getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/TensorSliceProtoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorSliceProtoOrBuilder.java similarity index 85% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/TensorSliceProtoOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorSliceProtoOrBuilder.java index 187cbc4962f..d57f4ac0244 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/TensorSliceProtoOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorSliceProtoOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/tensor_slice.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface TensorSliceProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.TensorSliceProto) @@ -17,7 +17,7 @@ public interface TensorSliceProtoOrBuilder extends * * repeated .tensorflow.TensorSliceProto.Extent extent = 1; */ - java.util.List + java.util.List getExtentList(); /** *
@@ -29,7 +29,7 @@ public interface TensorSliceProtoOrBuilder extends
    *
    * repeated .tensorflow.TensorSliceProto.Extent extent = 1;
    */
-  org.tensorflow.proto.framework.TensorSliceProto.Extent getExtent(int index);
+  org.tensorflow.proto.TensorSliceProto.Extent getExtent(int index);
   /**
    * 
    * Extent of the slice in all tensor dimensions.
@@ -51,7 +51,7 @@ public interface TensorSliceProtoOrBuilder extends
    *
    * repeated .tensorflow.TensorSliceProto.Extent extent = 1;
    */
-  java.util.List 
+  java.util.List 
       getExtentOrBuilderList();
   /**
    * 
@@ -63,6 +63,6 @@ public interface TensorSliceProtoOrBuilder extends
    *
    * repeated .tensorflow.TensorSliceProto.Extent extent = 1;
    */
-  org.tensorflow.proto.framework.TensorSliceProto.ExtentOrBuilder getExtentOrBuilder(
+  org.tensorflow.proto.TensorSliceProto.ExtentOrBuilder getExtentOrBuilder(
       int index);
 }
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/TensorSliceProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorSliceProtos.java
similarity index 88%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/TensorSliceProtos.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorSliceProtos.java
index 8a3b4497177..f12f6a141cc 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/TensorSliceProtos.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TensorSliceProtos.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/framework/tensor_slice.proto
 
-package org.tensorflow.proto.framework;
+package org.tensorflow.proto;
 
 public final class TensorSliceProtos {
   private TensorSliceProtos() {}
@@ -37,11 +37,11 @@ public static void registerAllExtensions(
       ".proto\022\ntensorflow\"\200\001\n\020TensorSliceProto\022" +
       "3\n\006extent\030\001 \003(\0132#.tensorflow.TensorSlice" +
       "Proto.Extent\0327\n\006Extent\022\r\n\005start\030\001 \001(\003\022\020\n" +
-      "\006length\030\002 \001(\003H\000B\014\n\nhas_lengthB\215\001\n\036org.te" +
-      "nsorflow.proto.frameworkB\021TensorSlicePro" +
-      "tosP\001ZSgithub.com/tensorflow/tensorflow/" +
-      "tensorflow/go/core/framework/tensor_slic" +
-      "e_go_proto\370\001\001b\006proto3"
+      "\006length\030\002 \001(\003H\000B\014\n\nhas_lengthB\203\001\n\024org.te" +
+      "nsorflow.protoB\021TensorSliceProtosP\001ZSgit" +
+      "hub.com/tensorflow/tensorflow/tensorflow" +
+      "/go/core/framework/tensor_slice_go_proto" +
+      "\370\001\001b\006proto3"
     };
     descriptor = com.google.protobuf.Descriptors.FileDescriptor
       .internalBuildGeneratedFileFrom(descriptorData,
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TestLogProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TestLogProtos.java
new file mode 100644
index 00000000000..45b0a3efa9a
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TestLogProtos.java
@@ -0,0 +1,288 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/tsl/protobuf/test_log.proto
+
+package org.tensorflow.proto;
+
+public final class TestLogProtos {
+  private TestLogProtos() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_EntryValue_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_EntryValue_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_MetricEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_MetricEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_BenchmarkEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_BenchmarkEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_BenchmarkEntry_ExtrasEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_BenchmarkEntry_ExtrasEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_BenchmarkEntries_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_BenchmarkEntries_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_BuildConfiguration_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_BuildConfiguration_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_CommitId_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_CommitId_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_CPUInfo_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_CPUInfo_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_CPUInfo_CacheSizeEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_CPUInfo_CacheSizeEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_MemoryInfo_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_MemoryInfo_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_GPUInfo_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_GPUInfo_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_PlatformInfo_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_PlatformInfo_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_AvailableDeviceInfo_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_AvailableDeviceInfo_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_MachineConfiguration_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_MachineConfiguration_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_RunConfiguration_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_RunConfiguration_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_RunConfiguration_EnvVarsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_RunConfiguration_EnvVarsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_tensorflow_TestResults_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_tensorflow_TestResults_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n&tensorflow/tsl/protobuf/test_log.proto" +
+      "\022\ntensorflow\032\031google/protobuf/any.proto\032" +
+      "\036google/protobuf/wrappers.proto\"D\n\nEntry" +
+      "Value\022\026\n\014double_value\030\001 \001(\001H\000\022\026\n\014string_" +
+      "value\030\002 \001(\tH\000B\006\n\004kind\"\214\001\n\013MetricEntry\022\014\n" +
+      "\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\001\022/\n\tmin_value\030" +
+      "\003 \001(\0132\034.google.protobuf.DoubleValue\022/\n\tm" +
+      "ax_value\030\004 \001(\0132\034.google.protobuf.DoubleV" +
+      "alue\"\217\002\n\016BenchmarkEntry\022\014\n\004name\030\001 \001(\t\022\r\n" +
+      "\005iters\030\002 \001(\003\022\020\n\010cpu_time\030\003 \001(\001\022\021\n\twall_t" +
+      "ime\030\004 \001(\001\022\022\n\nthroughput\030\005 \001(\001\0226\n\006extras\030" +
+      "\006 \003(\0132&.tensorflow.BenchmarkEntry.Extras" +
+      "Entry\022(\n\007metrics\030\007 \003(\0132\027.tensorflow.Metr" +
+      "icEntry\032E\n\013ExtrasEntry\022\013\n\003key\030\001 \001(\t\022%\n\005v" +
+      "alue\030\002 \001(\0132\026.tensorflow.EntryValue:\0028\001\"=" +
+      "\n\020BenchmarkEntries\022)\n\005entry\030\001 \003(\0132\032.tens" +
+      "orflow.BenchmarkEntry\"B\n\022BuildConfigurat" +
+      "ion\022\014\n\004mode\030\001 \001(\t\022\020\n\010cc_flags\030\002 \003(\t\022\014\n\004o" +
+      "pts\030\003 \003(\t\"f\n\010CommitId\022\024\n\nchangelist\030\001 \001(" +
+      "\003H\000\022\016\n\004hash\030\002 \001(\tH\000\022\020\n\010snapshot\030\003 \001(\t\022\032\n" +
+      "\022pending_changelist\030\004 \001(\003B\006\n\004kind\"\336\001\n\007CP" +
+      "UInfo\022\021\n\tnum_cores\030\001 \001(\003\022\031\n\021num_cores_al" +
+      "lowed\030\002 \001(\003\022\023\n\013mhz_per_cpu\030\003 \001(\001\022\020\n\010cpu_" +
+      "info\030\004 \001(\t\022\024\n\014cpu_governor\030\005 \001(\t\0226\n\ncach" +
+      "e_size\030\006 \003(\0132\".tensorflow.CPUInfo.CacheS" +
+      "izeEntry\0320\n\016CacheSizeEntry\022\013\n\003key\030\001 \001(\t\022" +
+      "\r\n\005value\030\002 \001(\003:\0028\001\".\n\nMemoryInfo\022\r\n\005tota" +
+      "l\030\001 \001(\003\022\021\n\tavailable\030\002 \001(\003\"6\n\007GPUInfo\022\r\n" +
+      "\005model\030\001 \001(\t\022\014\n\004uuid\030\002 \001(\t\022\016\n\006bus_id\030\003 \001" +
+      "(\t\"p\n\014PlatformInfo\022\014\n\004bits\030\001 \001(\t\022\017\n\007link" +
+      "age\030\002 \001(\t\022\017\n\007machine\030\003 \001(\t\022\017\n\007release\030\004 " +
+      "\001(\t\022\016\n\006system\030\005 \001(\t\022\017\n\007version\030\006 \001(\t\"e\n\023" +
+      "AvailableDeviceInfo\022\014\n\004name\030\001 \001(\t\022\014\n\004typ" +
+      "e\030\002 \001(\t\022\024\n\014memory_limit\030\003 \001(\003\022\034\n\024physica" +
+      "l_description\030\004 \001(\t\"\263\002\n\024MachineConfigura" +
+      "tion\022\020\n\010hostname\030\001 \001(\t\022\031\n\021serial_identif" +
+      "ier\030\007 \001(\t\022/\n\rplatform_info\030\002 \001(\0132\030.tenso" +
+      "rflow.PlatformInfo\022%\n\010cpu_info\030\003 \001(\0132\023.t" +
+      "ensorflow.CPUInfo\022)\n\013device_info\030\004 \003(\0132\024" +
+      ".google.protobuf.Any\022>\n\025available_device" +
+      "_info\030\005 \003(\0132\037.tensorflow.AvailableDevice" +
+      "Info\022+\n\013memory_info\030\006 \001(\0132\026.tensorflow.M" +
+      "emoryInfo\"\221\001\n\020RunConfiguration\022\020\n\010argume" +
+      "nt\030\001 \003(\t\022;\n\010env_vars\030\002 \003(\0132).tensorflow." +
+      "RunConfiguration.EnvVarsEntry\032.\n\014EnvVars" +
+      "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\320\004" +
+      "\n\013TestResults\022\016\n\006target\030\001 \001(\t\022-\n\007entries" +
+      "\030\002 \001(\0132\034.tensorflow.BenchmarkEntries\022;\n\023" +
+      "build_configuration\030\003 \001(\0132\036.tensorflow.B" +
+      "uildConfiguration\022\'\n\tcommit_id\030\004 \001(\0132\024.t" +
+      "ensorflow.CommitId\022\022\n\nstart_time\030\005 \001(\003\022\020" +
+      "\n\010run_time\030\006 \001(\001\022?\n\025machine_configuratio" +
+      "n\030\007 \001(\0132 .tensorflow.MachineConfiguratio" +
+      "n\0227\n\021run_configuration\030\010 \001(\0132\034.tensorflo" +
+      "w.RunConfiguration\022\014\n\004name\030\t \001(\t\022=\n\016benc" +
+      "hmark_type\030\n \001(\0162%.tensorflow.TestResult" +
+      "s.BenchmarkType\022\020\n\010run_mode\030\013 \001(\t\022\022\n\ntf_" +
+      "version\030\014 \001(\t\"\210\001\n\rBenchmarkType\022\013\n\007UNKNO" +
+      "WN\020\000\022\026\n\022CPP_MICROBENCHMARK\020\001\022\024\n\020PYTHON_B" +
+      "ENCHMARK\020\002\022\025\n\021ANDROID_BENCHMARK\020\003\022\022\n\016EDG" +
+      "E_BENCHMARK\020\004\022\021\n\rIOS_BENCHMARK\020\005B*\n\024org." +
+      "tensorflow.protoB\rTestLogProtosP\001\370\001\001b\006pr" +
+      "oto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.protobuf.AnyProto.getDescriptor(),
+          com.google.protobuf.WrappersProto.getDescriptor(),
+        });
+    internal_static_tensorflow_EntryValue_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_tensorflow_EntryValue_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_EntryValue_descriptor,
+        new java.lang.String[] { "DoubleValue", "StringValue", "Kind", });
+    internal_static_tensorflow_MetricEntry_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_tensorflow_MetricEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_MetricEntry_descriptor,
+        new java.lang.String[] { "Name", "Value", "MinValue", "MaxValue", });
+    internal_static_tensorflow_BenchmarkEntry_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_tensorflow_BenchmarkEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_BenchmarkEntry_descriptor,
+        new java.lang.String[] { "Name", "Iters", "CpuTime", "WallTime", "Throughput", "Extras", "Metrics", });
+    internal_static_tensorflow_BenchmarkEntry_ExtrasEntry_descriptor =
+      internal_static_tensorflow_BenchmarkEntry_descriptor.getNestedTypes().get(0);
+    internal_static_tensorflow_BenchmarkEntry_ExtrasEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_BenchmarkEntry_ExtrasEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_tensorflow_BenchmarkEntries_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_tensorflow_BenchmarkEntries_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_BenchmarkEntries_descriptor,
+        new java.lang.String[] { "Entry", });
+    internal_static_tensorflow_BuildConfiguration_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_tensorflow_BuildConfiguration_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_BuildConfiguration_descriptor,
+        new java.lang.String[] { "Mode", "CcFlags", "Opts", });
+    internal_static_tensorflow_CommitId_descriptor =
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_tensorflow_CommitId_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_CommitId_descriptor,
+        new java.lang.String[] { "Changelist", "Hash", "Snapshot", "PendingChangelist", "Kind", });
+    internal_static_tensorflow_CPUInfo_descriptor =
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_tensorflow_CPUInfo_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_CPUInfo_descriptor,
+        new java.lang.String[] { "NumCores", "NumCoresAllowed", "MhzPerCpu", "CpuInfo", "CpuGovernor", "CacheSize", });
+    internal_static_tensorflow_CPUInfo_CacheSizeEntry_descriptor =
+      internal_static_tensorflow_CPUInfo_descriptor.getNestedTypes().get(0);
+    internal_static_tensorflow_CPUInfo_CacheSizeEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_CPUInfo_CacheSizeEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_tensorflow_MemoryInfo_descriptor =
+      getDescriptor().getMessageTypes().get(7);
+    internal_static_tensorflow_MemoryInfo_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_MemoryInfo_descriptor,
+        new java.lang.String[] { "Total", "Available", });
+    internal_static_tensorflow_GPUInfo_descriptor =
+      getDescriptor().getMessageTypes().get(8);
+    internal_static_tensorflow_GPUInfo_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_GPUInfo_descriptor,
+        new java.lang.String[] { "Model", "Uuid", "BusId", });
+    internal_static_tensorflow_PlatformInfo_descriptor =
+      getDescriptor().getMessageTypes().get(9);
+    internal_static_tensorflow_PlatformInfo_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_PlatformInfo_descriptor,
+        new java.lang.String[] { "Bits", "Linkage", "Machine", "Release", "System", "Version", });
+    internal_static_tensorflow_AvailableDeviceInfo_descriptor =
+      getDescriptor().getMessageTypes().get(10);
+    internal_static_tensorflow_AvailableDeviceInfo_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_AvailableDeviceInfo_descriptor,
+        new java.lang.String[] { "Name", "Type", "MemoryLimit", "PhysicalDescription", });
+    internal_static_tensorflow_MachineConfiguration_descriptor =
+      getDescriptor().getMessageTypes().get(11);
+    internal_static_tensorflow_MachineConfiguration_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_MachineConfiguration_descriptor,
+        new java.lang.String[] { "Hostname", "SerialIdentifier", "PlatformInfo", "CpuInfo", "DeviceInfo", "AvailableDeviceInfo", "MemoryInfo", });
+    internal_static_tensorflow_RunConfiguration_descriptor =
+      getDescriptor().getMessageTypes().get(12);
+    internal_static_tensorflow_RunConfiguration_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_RunConfiguration_descriptor,
+        new java.lang.String[] { "Argument", "EnvVars", });
+    internal_static_tensorflow_RunConfiguration_EnvVarsEntry_descriptor =
+      internal_static_tensorflow_RunConfiguration_descriptor.getNestedTypes().get(0);
+    internal_static_tensorflow_RunConfiguration_EnvVarsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_RunConfiguration_EnvVarsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_tensorflow_TestResults_descriptor =
+      getDescriptor().getMessageTypes().get(13);
+    internal_static_tensorflow_TestResults_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_tensorflow_TestResults_descriptor,
+        new java.lang.String[] { "Target", "Entries", "BuildConfiguration", "CommitId", "StartTime", "RunTime", "MachineConfiguration", "RunConfiguration", "Name", "BenchmarkType", "RunMode", "TfVersion", });
+    com.google.protobuf.AnyProto.getDescriptor();
+    com.google.protobuf.WrappersProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/TestResults.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TestResults.java
similarity index 76%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/TestResults.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TestResults.java
index 15ae63f6d31..77efec3209d 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/TestResults.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TestResults.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: tensorflow/core/util/test_log.proto
+// source: tensorflow/tsl/protobuf/test_log.proto
 
-package org.tensorflow.proto.util.testlog;
+package org.tensorflow.proto;
 
 /**
  * 
@@ -15,7 +15,7 @@
  *
  * Protobuf type {@code tensorflow.TestResults}
  */
-public  final class TestResults extends
+public final class TestResults extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.TestResults)
     TestResultsOrBuilder {
@@ -44,159 +44,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private TestResults(
-      com.google.protobuf.CodedInputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws com.google.protobuf.InvalidProtocolBufferException {
-    this();
-    if (extensionRegistry == null) {
-      throw new java.lang.NullPointerException();
-    }
-    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
-        com.google.protobuf.UnknownFieldSet.newBuilder();
-    try {
-      boolean done = false;
-      while (!done) {
-        int tag = input.readTag();
-        switch (tag) {
-          case 0:
-            done = true;
-            break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            target_ = s;
-            break;
-          }
-          case 18: {
-            org.tensorflow.proto.util.testlog.BenchmarkEntries.Builder subBuilder = null;
-            if (entries_ != null) {
-              subBuilder = entries_.toBuilder();
-            }
-            entries_ = input.readMessage(org.tensorflow.proto.util.testlog.BenchmarkEntries.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(entries_);
-              entries_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 26: {
-            org.tensorflow.proto.util.testlog.BuildConfiguration.Builder subBuilder = null;
-            if (buildConfiguration_ != null) {
-              subBuilder = buildConfiguration_.toBuilder();
-            }
-            buildConfiguration_ = input.readMessage(org.tensorflow.proto.util.testlog.BuildConfiguration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(buildConfiguration_);
-              buildConfiguration_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 34: {
-            org.tensorflow.proto.util.testlog.CommitId.Builder subBuilder = null;
-            if (commitId_ != null) {
-              subBuilder = commitId_.toBuilder();
-            }
-            commitId_ = input.readMessage(org.tensorflow.proto.util.testlog.CommitId.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(commitId_);
-              commitId_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 40: {
-
-            startTime_ = input.readInt64();
-            break;
-          }
-          case 49: {
-
-            runTime_ = input.readDouble();
-            break;
-          }
-          case 58: {
-            org.tensorflow.proto.util.testlog.MachineConfiguration.Builder subBuilder = null;
-            if (machineConfiguration_ != null) {
-              subBuilder = machineConfiguration_.toBuilder();
-            }
-            machineConfiguration_ = input.readMessage(org.tensorflow.proto.util.testlog.MachineConfiguration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(machineConfiguration_);
-              machineConfiguration_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 66: {
-            org.tensorflow.proto.util.testlog.RunConfiguration.Builder subBuilder = null;
-            if (runConfiguration_ != null) {
-              subBuilder = runConfiguration_.toBuilder();
-            }
-            runConfiguration_ = input.readMessage(org.tensorflow.proto.util.testlog.RunConfiguration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(runConfiguration_);
-              runConfiguration_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 74: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 80: {
-            int rawValue = input.readEnum();
-
-            benchmarkType_ = rawValue;
-            break;
-          }
-          case 90: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            runMode_ = s;
-            break;
-          }
-          case 98: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            tfVersion_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
-        }
-      }
-    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-      throw e.setUnfinishedMessage(this);
-    } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
-    } finally {
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_TestResults_descriptor;
+    return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_TestResults_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_TestResults_fieldAccessorTable
+    return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_TestResults_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.util.testlog.TestResults.class, org.tensorflow.proto.util.testlog.TestResults.Builder.class);
+            org.tensorflow.proto.TestResults.class, org.tensorflow.proto.TestResults.Builder.class);
   }
 
   /**
@@ -278,6 +136,8 @@ public final int getNumber() {
     }
 
     /**
+     * @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
@@ -285,6 +145,10 @@ public static BenchmarkType 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 BenchmarkType forNumber(int value) {
       switch (value) {
         case 0: return UNKNOWN;
@@ -311,6 +175,10 @@ public BenchmarkType findValueByNumber(int 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
@@ -319,7 +187,7 @@ public BenchmarkType findValueByNumber(int number) {
     }
     public static final com.google.protobuf.Descriptors.EnumDescriptor
         getDescriptor() {
-      return org.tensorflow.proto.util.testlog.TestResults.getDescriptor().getEnumTypes().get(0);
+      return org.tensorflow.proto.TestResults.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final BenchmarkType[] VALUES = values();
@@ -354,7 +222,9 @@ private BenchmarkType(int value) {
    * 
* * string target = 1; + * @return The target. */ + @java.lang.Override public java.lang.String getTarget() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { @@ -374,7 +244,9 @@ public java.lang.String getTarget() { *
* * string target = 1; + * @return The bytes for target. */ + @java.lang.Override public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; @@ -390,14 +262,16 @@ public java.lang.String getTarget() { } public static final int ENTRIES_FIELD_NUMBER = 2; - private org.tensorflow.proto.util.testlog.BenchmarkEntries entries_; + private org.tensorflow.proto.BenchmarkEntries entries_; /** *
    * The list of tests or benchmarks in this run.
    * 
* * .tensorflow.BenchmarkEntries entries = 2; + * @return Whether the entries field is set. */ + @java.lang.Override public boolean hasEntries() { return entries_ != null; } @@ -407,9 +281,11 @@ public boolean hasEntries() { *
* * .tensorflow.BenchmarkEntries entries = 2; + * @return The entries. */ - public org.tensorflow.proto.util.testlog.BenchmarkEntries getEntries() { - return entries_ == null ? org.tensorflow.proto.util.testlog.BenchmarkEntries.getDefaultInstance() : entries_; + @java.lang.Override + public org.tensorflow.proto.BenchmarkEntries getEntries() { + return entries_ == null ? org.tensorflow.proto.BenchmarkEntries.getDefaultInstance() : entries_; } /** *
@@ -418,19 +294,22 @@ public org.tensorflow.proto.util.testlog.BenchmarkEntries getEntries() {
    *
    * .tensorflow.BenchmarkEntries entries = 2;
    */
-  public org.tensorflow.proto.util.testlog.BenchmarkEntriesOrBuilder getEntriesOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.BenchmarkEntriesOrBuilder getEntriesOrBuilder() {
     return getEntries();
   }
 
   public static final int BUILD_CONFIGURATION_FIELD_NUMBER = 3;
-  private org.tensorflow.proto.util.testlog.BuildConfiguration buildConfiguration_;
+  private org.tensorflow.proto.BuildConfiguration buildConfiguration_;
   /**
    * 
    * The configuration of the build (compiled opt? with cuda? any copts?)
    * 
* * .tensorflow.BuildConfiguration build_configuration = 3; + * @return Whether the buildConfiguration field is set. */ + @java.lang.Override public boolean hasBuildConfiguration() { return buildConfiguration_ != null; } @@ -440,9 +319,11 @@ public boolean hasBuildConfiguration() { *
* * .tensorflow.BuildConfiguration build_configuration = 3; + * @return The buildConfiguration. */ - public org.tensorflow.proto.util.testlog.BuildConfiguration getBuildConfiguration() { - return buildConfiguration_ == null ? org.tensorflow.proto.util.testlog.BuildConfiguration.getDefaultInstance() : buildConfiguration_; + @java.lang.Override + public org.tensorflow.proto.BuildConfiguration getBuildConfiguration() { + return buildConfiguration_ == null ? org.tensorflow.proto.BuildConfiguration.getDefaultInstance() : buildConfiguration_; } /** *
@@ -451,19 +332,22 @@ public org.tensorflow.proto.util.testlog.BuildConfiguration getBuildConfiguratio
    *
    * .tensorflow.BuildConfiguration build_configuration = 3;
    */
-  public org.tensorflow.proto.util.testlog.BuildConfigurationOrBuilder getBuildConfigurationOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.BuildConfigurationOrBuilder getBuildConfigurationOrBuilder() {
     return getBuildConfiguration();
   }
 
   public static final int COMMIT_ID_FIELD_NUMBER = 4;
-  private org.tensorflow.proto.util.testlog.CommitId commitId_;
+  private org.tensorflow.proto.CommitId commitId_;
   /**
    * 
    * The commit id (git hash or changelist)
    * 
* * .tensorflow.CommitId commit_id = 4; + * @return Whether the commitId field is set. */ + @java.lang.Override public boolean hasCommitId() { return commitId_ != null; } @@ -473,9 +357,11 @@ public boolean hasCommitId() { *
* * .tensorflow.CommitId commit_id = 4; + * @return The commitId. */ - public org.tensorflow.proto.util.testlog.CommitId getCommitId() { - return commitId_ == null ? org.tensorflow.proto.util.testlog.CommitId.getDefaultInstance() : commitId_; + @java.lang.Override + public org.tensorflow.proto.CommitId getCommitId() { + return commitId_ == null ? org.tensorflow.proto.CommitId.getDefaultInstance() : commitId_; } /** *
@@ -484,7 +370,8 @@ public org.tensorflow.proto.util.testlog.CommitId getCommitId() {
    *
    * .tensorflow.CommitId commit_id = 4;
    */
-  public org.tensorflow.proto.util.testlog.CommitIdOrBuilder getCommitIdOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.CommitIdOrBuilder getCommitIdOrBuilder() {
     return getCommitId();
   }
 
@@ -496,7 +383,9 @@ public org.tensorflow.proto.util.testlog.CommitIdOrBuilder getCommitIdOrBuilder(
    * 
* * int64 start_time = 5; + * @return The startTime. */ + @java.lang.Override public long getStartTime() { return startTime_; } @@ -509,20 +398,24 @@ public long getStartTime() { *
* * double run_time = 6; + * @return The runTime. */ + @java.lang.Override public double getRunTime() { return runTime_; } public static final int MACHINE_CONFIGURATION_FIELD_NUMBER = 7; - private org.tensorflow.proto.util.testlog.MachineConfiguration machineConfiguration_; + private org.tensorflow.proto.MachineConfiguration machineConfiguration_; /** *
    * Machine-specific parameters (Platform and CPU info)
    * 
* * .tensorflow.MachineConfiguration machine_configuration = 7; + * @return Whether the machineConfiguration field is set. */ + @java.lang.Override public boolean hasMachineConfiguration() { return machineConfiguration_ != null; } @@ -532,9 +425,11 @@ public boolean hasMachineConfiguration() { *
* * .tensorflow.MachineConfiguration machine_configuration = 7; + * @return The machineConfiguration. */ - public org.tensorflow.proto.util.testlog.MachineConfiguration getMachineConfiguration() { - return machineConfiguration_ == null ? org.tensorflow.proto.util.testlog.MachineConfiguration.getDefaultInstance() : machineConfiguration_; + @java.lang.Override + public org.tensorflow.proto.MachineConfiguration getMachineConfiguration() { + return machineConfiguration_ == null ? org.tensorflow.proto.MachineConfiguration.getDefaultInstance() : machineConfiguration_; } /** *
@@ -543,19 +438,22 @@ public org.tensorflow.proto.util.testlog.MachineConfiguration getMachineConfigur
    *
    * .tensorflow.MachineConfiguration machine_configuration = 7;
    */
-  public org.tensorflow.proto.util.testlog.MachineConfigurationOrBuilder getMachineConfigurationOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.MachineConfigurationOrBuilder getMachineConfigurationOrBuilder() {
     return getMachineConfiguration();
   }
 
   public static final int RUN_CONFIGURATION_FIELD_NUMBER = 8;
-  private org.tensorflow.proto.util.testlog.RunConfiguration runConfiguration_;
+  private org.tensorflow.proto.RunConfiguration runConfiguration_;
   /**
    * 
    * Run-specific parameters (arguments, etc)
    * 
* * .tensorflow.RunConfiguration run_configuration = 8; + * @return Whether the runConfiguration field is set. */ + @java.lang.Override public boolean hasRunConfiguration() { return runConfiguration_ != null; } @@ -565,9 +463,11 @@ public boolean hasRunConfiguration() { *
* * .tensorflow.RunConfiguration run_configuration = 8; + * @return The runConfiguration. */ - public org.tensorflow.proto.util.testlog.RunConfiguration getRunConfiguration() { - return runConfiguration_ == null ? org.tensorflow.proto.util.testlog.RunConfiguration.getDefaultInstance() : runConfiguration_; + @java.lang.Override + public org.tensorflow.proto.RunConfiguration getRunConfiguration() { + return runConfiguration_ == null ? org.tensorflow.proto.RunConfiguration.getDefaultInstance() : runConfiguration_; } /** *
@@ -576,7 +476,8 @@ public org.tensorflow.proto.util.testlog.RunConfiguration getRunConfiguration()
    *
    * .tensorflow.RunConfiguration run_configuration = 8;
    */
-  public org.tensorflow.proto.util.testlog.RunConfigurationOrBuilder getRunConfigurationOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.RunConfigurationOrBuilder getRunConfigurationOrBuilder() {
     return getRunConfiguration();
   }
 
@@ -588,7 +489,9 @@ public org.tensorflow.proto.util.testlog.RunConfigurationOrBuilder getRunConfigu
    * 
* * string name = 9; + * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -607,7 +510,9 @@ public java.lang.String getName() { * * * string name = 9; + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -626,17 +531,19 @@ public java.lang.String getName() { private int benchmarkType_; /** * .tensorflow.TestResults.BenchmarkType benchmark_type = 10; + * @return The enum numeric value on the wire for benchmarkType. */ - public int getBenchmarkTypeValue() { + @java.lang.Override public int getBenchmarkTypeValue() { return benchmarkType_; } /** * .tensorflow.TestResults.BenchmarkType benchmark_type = 10; + * @return The benchmarkType. */ - public org.tensorflow.proto.util.testlog.TestResults.BenchmarkType getBenchmarkType() { + @java.lang.Override public org.tensorflow.proto.TestResults.BenchmarkType getBenchmarkType() { @SuppressWarnings("deprecation") - org.tensorflow.proto.util.testlog.TestResults.BenchmarkType result = org.tensorflow.proto.util.testlog.TestResults.BenchmarkType.valueOf(benchmarkType_); - return result == null ? org.tensorflow.proto.util.testlog.TestResults.BenchmarkType.UNRECOGNIZED : result; + org.tensorflow.proto.TestResults.BenchmarkType result = org.tensorflow.proto.TestResults.BenchmarkType.valueOf(benchmarkType_); + return result == null ? org.tensorflow.proto.TestResults.BenchmarkType.UNRECOGNIZED : result; } public static final int RUN_MODE_FIELD_NUMBER = 11; @@ -651,7 +558,9 @@ public org.tensorflow.proto.util.testlog.TestResults.BenchmarkType getBenchmarkT * * * string run_mode = 11; + * @return The runMode. */ + @java.lang.Override public java.lang.String getRunMode() { java.lang.Object ref = runMode_; if (ref instanceof java.lang.String) { @@ -674,7 +583,9 @@ public java.lang.String getRunMode() { * * * string run_mode = 11; + * @return The bytes for runMode. */ + @java.lang.Override public com.google.protobuf.ByteString getRunModeBytes() { java.lang.Object ref = runMode_; @@ -698,7 +609,9 @@ public java.lang.String getRunMode() { * * * string tf_version = 12; + * @return The tfVersion. */ + @java.lang.Override public java.lang.String getTfVersion() { java.lang.Object ref = tfVersion_; if (ref instanceof java.lang.String) { @@ -718,7 +631,9 @@ public java.lang.String getTfVersion() { * * * string tf_version = 12; + * @return The bytes for tfVersion. */ + @java.lang.Override public com.google.protobuf.ByteString getTfVersionBytes() { java.lang.Object ref = tfVersion_; @@ -747,7 +662,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTargetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, target_); } if (entries_ != null) { @@ -762,7 +677,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (startTime_ != 0L) { output.writeInt64(5, startTime_); } - if (runTime_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(runTime_) != 0) { output.writeDouble(6, runTime_); } if (machineConfiguration_ != null) { @@ -771,19 +686,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (runConfiguration_ != null) { output.writeMessage(8, getRunConfiguration()); } - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, name_); } - if (benchmarkType_ != org.tensorflow.proto.util.testlog.TestResults.BenchmarkType.UNKNOWN.getNumber()) { + if (benchmarkType_ != org.tensorflow.proto.TestResults.BenchmarkType.UNKNOWN.getNumber()) { output.writeEnum(10, benchmarkType_); } - if (!getRunModeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runMode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, runMode_); } - if (!getTfVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tfVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, tfVersion_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -792,7 +707,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTargetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, target_); } if (entries_ != null) { @@ -811,7 +726,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, startTime_); } - if (runTime_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(runTime_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(6, runTime_); } @@ -823,20 +738,20 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getRunConfiguration()); } - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, name_); } - if (benchmarkType_ != org.tensorflow.proto.util.testlog.TestResults.BenchmarkType.UNKNOWN.getNumber()) { + if (benchmarkType_ != org.tensorflow.proto.TestResults.BenchmarkType.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, benchmarkType_); } - if (!getRunModeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runMode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, runMode_); } - if (!getTfVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tfVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, tfVersion_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -846,10 +761,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.util.testlog.TestResults)) { + if (!(obj instanceof org.tensorflow.proto.TestResults)) { return super.equals(obj); } - org.tensorflow.proto.util.testlog.TestResults other = (org.tensorflow.proto.util.testlog.TestResults) obj; + org.tensorflow.proto.TestResults other = (org.tensorflow.proto.TestResults) obj; if (!getTarget() .equals(other.getTarget())) return false; @@ -890,7 +805,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getRunMode())) return false; if (!getTfVersion() .equals(other.getTfVersion())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -937,74 +852,74 @@ public int hashCode() { hash = (53 * hash) + getRunMode().hashCode(); hash = (37 * hash) + TF_VERSION_FIELD_NUMBER; hash = (53 * hash) + getTfVersion().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.util.testlog.TestResults parseFrom( + public static org.tensorflow.proto.TestResults parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.TestResults parseFrom( + public static org.tensorflow.proto.TestResults parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.TestResults parseFrom( + public static org.tensorflow.proto.TestResults parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.TestResults parseFrom( + public static org.tensorflow.proto.TestResults parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.TestResults parseFrom(byte[] data) + public static org.tensorflow.proto.TestResults parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.util.testlog.TestResults parseFrom( + public static org.tensorflow.proto.TestResults parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.util.testlog.TestResults parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.TestResults parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.TestResults parseFrom( + public static org.tensorflow.proto.TestResults 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 org.tensorflow.proto.util.testlog.TestResults parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.TestResults parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.TestResults parseDelimitedFrom( + public static org.tensorflow.proto.TestResults 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 org.tensorflow.proto.util.testlog.TestResults parseFrom( + public static org.tensorflow.proto.TestResults parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.util.testlog.TestResults parseFrom( + public static org.tensorflow.proto.TestResults parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1017,7 +932,7 @@ public static org.tensorflow.proto.util.testlog.TestResults parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.util.testlog.TestResults prototype) { + public static Builder newBuilder(org.tensorflow.proto.TestResults prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1047,34 +962,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.TestResults) - org.tensorflow.proto.util.testlog.TestResultsOrBuilder { + org.tensorflow.proto.TestResultsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_TestResults_descriptor; + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_TestResults_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_TestResults_fieldAccessorTable + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_TestResults_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.util.testlog.TestResults.class, org.tensorflow.proto.util.testlog.TestResults.Builder.class); + org.tensorflow.proto.TestResults.class, org.tensorflow.proto.TestResults.Builder.class); } - // Construct using org.tensorflow.proto.util.testlog.TestResults.newBuilder() + // Construct using org.tensorflow.proto.TestResults.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -1129,17 +1039,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.util.testlog.TestLogProtos.internal_static_tensorflow_TestResults_descriptor; + return org.tensorflow.proto.TestLogProtos.internal_static_tensorflow_TestResults_descriptor; } @java.lang.Override - public org.tensorflow.proto.util.testlog.TestResults getDefaultInstanceForType() { - return org.tensorflow.proto.util.testlog.TestResults.getDefaultInstance(); + public org.tensorflow.proto.TestResults getDefaultInstanceForType() { + return org.tensorflow.proto.TestResults.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.util.testlog.TestResults build() { - org.tensorflow.proto.util.testlog.TestResults result = buildPartial(); + public org.tensorflow.proto.TestResults build() { + org.tensorflow.proto.TestResults result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1147,8 +1057,8 @@ public org.tensorflow.proto.util.testlog.TestResults build() { } @java.lang.Override - public org.tensorflow.proto.util.testlog.TestResults buildPartial() { - org.tensorflow.proto.util.testlog.TestResults result = new org.tensorflow.proto.util.testlog.TestResults(this); + public org.tensorflow.proto.TestResults buildPartial() { + org.tensorflow.proto.TestResults result = new org.tensorflow.proto.TestResults(this); result.target_ = target_; if (entriesBuilder_ == null) { result.entries_ = entries_; @@ -1219,16 +1129,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.util.testlog.TestResults) { - return mergeFrom((org.tensorflow.proto.util.testlog.TestResults)other); + if (other instanceof org.tensorflow.proto.TestResults) { + return mergeFrom((org.tensorflow.proto.TestResults)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.util.testlog.TestResults other) { - if (other == org.tensorflow.proto.util.testlog.TestResults.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.TestResults other) { + if (other == org.tensorflow.proto.TestResults.getDefaultInstance()) return this; if (!other.getTarget().isEmpty()) { target_ = other.target_; onChanged(); @@ -1269,7 +1179,7 @@ public Builder mergeFrom(org.tensorflow.proto.util.testlog.TestResults other) { tfVersion_ = other.tfVersion_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1284,17 +1194,100 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.util.testlog.TestResults parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + target_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getEntriesFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getBuildConfigurationFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + input.readMessage( + getCommitIdFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 40: { + startTime_ = input.readInt64(); + + break; + } // case 40 + case 49: { + runTime_ = input.readDouble(); + + break; + } // case 49 + case 58: { + input.readMessage( + getMachineConfigurationFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 58 + case 66: { + input.readMessage( + getRunConfigurationFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 66 + case 74: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 80: { + benchmarkType_ = input.readEnum(); + + break; + } // case 80 + case 90: { + runMode_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 98: { + tfVersion_ = input.readStringRequireUtf8(); + + break; + } // case 98 + 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) { - parsedMessage = (org.tensorflow.proto.util.testlog.TestResults) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1306,6 +1299,7 @@ public Builder mergeFrom( * * * string target = 1; + * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; @@ -1326,6 +1320,7 @@ public java.lang.String getTarget() { * * * string target = 1; + * @return The bytes for target. */ public com.google.protobuf.ByteString getTargetBytes() { @@ -1347,6 +1342,8 @@ public java.lang.String getTarget() { * * * string target = 1; + * @param value The target to set. + * @return This builder for chaining. */ public Builder setTarget( java.lang.String value) { @@ -1365,6 +1362,7 @@ public Builder setTarget( * * * string target = 1; + * @return This builder for chaining. */ public Builder clearTarget() { @@ -1379,6 +1377,8 @@ public Builder clearTarget() { * * * string target = 1; + * @param value The bytes for target to set. + * @return This builder for chaining. */ public Builder setTargetBytes( com.google.protobuf.ByteString value) { @@ -1392,15 +1392,16 @@ public Builder setTargetBytes( return this; } - private org.tensorflow.proto.util.testlog.BenchmarkEntries entries_; + private org.tensorflow.proto.BenchmarkEntries entries_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.testlog.BenchmarkEntries, org.tensorflow.proto.util.testlog.BenchmarkEntries.Builder, org.tensorflow.proto.util.testlog.BenchmarkEntriesOrBuilder> entriesBuilder_; + org.tensorflow.proto.BenchmarkEntries, org.tensorflow.proto.BenchmarkEntries.Builder, org.tensorflow.proto.BenchmarkEntriesOrBuilder> entriesBuilder_; /** *
      * The list of tests or benchmarks in this run.
      * 
* * .tensorflow.BenchmarkEntries entries = 2; + * @return Whether the entries field is set. */ public boolean hasEntries() { return entriesBuilder_ != null || entries_ != null; @@ -1411,10 +1412,11 @@ public boolean hasEntries() { * * * .tensorflow.BenchmarkEntries entries = 2; + * @return The entries. */ - public org.tensorflow.proto.util.testlog.BenchmarkEntries getEntries() { + public org.tensorflow.proto.BenchmarkEntries getEntries() { if (entriesBuilder_ == null) { - return entries_ == null ? org.tensorflow.proto.util.testlog.BenchmarkEntries.getDefaultInstance() : entries_; + return entries_ == null ? org.tensorflow.proto.BenchmarkEntries.getDefaultInstance() : entries_; } else { return entriesBuilder_.getMessage(); } @@ -1426,7 +1428,7 @@ public org.tensorflow.proto.util.testlog.BenchmarkEntries getEntries() { * * .tensorflow.BenchmarkEntries entries = 2; */ - public Builder setEntries(org.tensorflow.proto.util.testlog.BenchmarkEntries value) { + public Builder setEntries(org.tensorflow.proto.BenchmarkEntries value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1447,7 +1449,7 @@ public Builder setEntries(org.tensorflow.proto.util.testlog.BenchmarkEntries val * .tensorflow.BenchmarkEntries entries = 2; */ public Builder setEntries( - org.tensorflow.proto.util.testlog.BenchmarkEntries.Builder builderForValue) { + org.tensorflow.proto.BenchmarkEntries.Builder builderForValue) { if (entriesBuilder_ == null) { entries_ = builderForValue.build(); onChanged(); @@ -1464,11 +1466,11 @@ public Builder setEntries( * * .tensorflow.BenchmarkEntries entries = 2; */ - public Builder mergeEntries(org.tensorflow.proto.util.testlog.BenchmarkEntries value) { + public Builder mergeEntries(org.tensorflow.proto.BenchmarkEntries value) { if (entriesBuilder_ == null) { if (entries_ != null) { entries_ = - org.tensorflow.proto.util.testlog.BenchmarkEntries.newBuilder(entries_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.BenchmarkEntries.newBuilder(entries_).mergeFrom(value).buildPartial(); } else { entries_ = value; } @@ -1504,7 +1506,7 @@ public Builder clearEntries() { * * .tensorflow.BenchmarkEntries entries = 2; */ - public org.tensorflow.proto.util.testlog.BenchmarkEntries.Builder getEntriesBuilder() { + public org.tensorflow.proto.BenchmarkEntries.Builder getEntriesBuilder() { onChanged(); return getEntriesFieldBuilder().getBuilder(); @@ -1516,12 +1518,12 @@ public org.tensorflow.proto.util.testlog.BenchmarkEntries.Builder getEntriesBuil * * .tensorflow.BenchmarkEntries entries = 2; */ - public org.tensorflow.proto.util.testlog.BenchmarkEntriesOrBuilder getEntriesOrBuilder() { + public org.tensorflow.proto.BenchmarkEntriesOrBuilder getEntriesOrBuilder() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilder(); } else { return entries_ == null ? - org.tensorflow.proto.util.testlog.BenchmarkEntries.getDefaultInstance() : entries_; + org.tensorflow.proto.BenchmarkEntries.getDefaultInstance() : entries_; } } /** @@ -1532,11 +1534,11 @@ public org.tensorflow.proto.util.testlog.BenchmarkEntriesOrBuilder getEntriesOrB * .tensorflow.BenchmarkEntries entries = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.testlog.BenchmarkEntries, org.tensorflow.proto.util.testlog.BenchmarkEntries.Builder, org.tensorflow.proto.util.testlog.BenchmarkEntriesOrBuilder> + org.tensorflow.proto.BenchmarkEntries, org.tensorflow.proto.BenchmarkEntries.Builder, org.tensorflow.proto.BenchmarkEntriesOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { entriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.testlog.BenchmarkEntries, org.tensorflow.proto.util.testlog.BenchmarkEntries.Builder, org.tensorflow.proto.util.testlog.BenchmarkEntriesOrBuilder>( + org.tensorflow.proto.BenchmarkEntries, org.tensorflow.proto.BenchmarkEntries.Builder, org.tensorflow.proto.BenchmarkEntriesOrBuilder>( getEntries(), getParentForChildren(), isClean()); @@ -1545,15 +1547,16 @@ public org.tensorflow.proto.util.testlog.BenchmarkEntriesOrBuilder getEntriesOrB return entriesBuilder_; } - private org.tensorflow.proto.util.testlog.BuildConfiguration buildConfiguration_; + private org.tensorflow.proto.BuildConfiguration buildConfiguration_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.testlog.BuildConfiguration, org.tensorflow.proto.util.testlog.BuildConfiguration.Builder, org.tensorflow.proto.util.testlog.BuildConfigurationOrBuilder> buildConfigurationBuilder_; + org.tensorflow.proto.BuildConfiguration, org.tensorflow.proto.BuildConfiguration.Builder, org.tensorflow.proto.BuildConfigurationOrBuilder> buildConfigurationBuilder_; /** *
      * The configuration of the build (compiled opt? with cuda? any copts?)
      * 
* * .tensorflow.BuildConfiguration build_configuration = 3; + * @return Whether the buildConfiguration field is set. */ public boolean hasBuildConfiguration() { return buildConfigurationBuilder_ != null || buildConfiguration_ != null; @@ -1564,10 +1567,11 @@ public boolean hasBuildConfiguration() { * * * .tensorflow.BuildConfiguration build_configuration = 3; + * @return The buildConfiguration. */ - public org.tensorflow.proto.util.testlog.BuildConfiguration getBuildConfiguration() { + public org.tensorflow.proto.BuildConfiguration getBuildConfiguration() { if (buildConfigurationBuilder_ == null) { - return buildConfiguration_ == null ? org.tensorflow.proto.util.testlog.BuildConfiguration.getDefaultInstance() : buildConfiguration_; + return buildConfiguration_ == null ? org.tensorflow.proto.BuildConfiguration.getDefaultInstance() : buildConfiguration_; } else { return buildConfigurationBuilder_.getMessage(); } @@ -1579,7 +1583,7 @@ public org.tensorflow.proto.util.testlog.BuildConfiguration getBuildConfiguratio * * .tensorflow.BuildConfiguration build_configuration = 3; */ - public Builder setBuildConfiguration(org.tensorflow.proto.util.testlog.BuildConfiguration value) { + public Builder setBuildConfiguration(org.tensorflow.proto.BuildConfiguration value) { if (buildConfigurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1600,7 +1604,7 @@ public Builder setBuildConfiguration(org.tensorflow.proto.util.testlog.BuildConf * .tensorflow.BuildConfiguration build_configuration = 3; */ public Builder setBuildConfiguration( - org.tensorflow.proto.util.testlog.BuildConfiguration.Builder builderForValue) { + org.tensorflow.proto.BuildConfiguration.Builder builderForValue) { if (buildConfigurationBuilder_ == null) { buildConfiguration_ = builderForValue.build(); onChanged(); @@ -1617,11 +1621,11 @@ public Builder setBuildConfiguration( * * .tensorflow.BuildConfiguration build_configuration = 3; */ - public Builder mergeBuildConfiguration(org.tensorflow.proto.util.testlog.BuildConfiguration value) { + public Builder mergeBuildConfiguration(org.tensorflow.proto.BuildConfiguration value) { if (buildConfigurationBuilder_ == null) { if (buildConfiguration_ != null) { buildConfiguration_ = - org.tensorflow.proto.util.testlog.BuildConfiguration.newBuilder(buildConfiguration_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.BuildConfiguration.newBuilder(buildConfiguration_).mergeFrom(value).buildPartial(); } else { buildConfiguration_ = value; } @@ -1657,7 +1661,7 @@ public Builder clearBuildConfiguration() { * * .tensorflow.BuildConfiguration build_configuration = 3; */ - public org.tensorflow.proto.util.testlog.BuildConfiguration.Builder getBuildConfigurationBuilder() { + public org.tensorflow.proto.BuildConfiguration.Builder getBuildConfigurationBuilder() { onChanged(); return getBuildConfigurationFieldBuilder().getBuilder(); @@ -1669,12 +1673,12 @@ public org.tensorflow.proto.util.testlog.BuildConfiguration.Builder getBuildConf * * .tensorflow.BuildConfiguration build_configuration = 3; */ - public org.tensorflow.proto.util.testlog.BuildConfigurationOrBuilder getBuildConfigurationOrBuilder() { + public org.tensorflow.proto.BuildConfigurationOrBuilder getBuildConfigurationOrBuilder() { if (buildConfigurationBuilder_ != null) { return buildConfigurationBuilder_.getMessageOrBuilder(); } else { return buildConfiguration_ == null ? - org.tensorflow.proto.util.testlog.BuildConfiguration.getDefaultInstance() : buildConfiguration_; + org.tensorflow.proto.BuildConfiguration.getDefaultInstance() : buildConfiguration_; } } /** @@ -1685,11 +1689,11 @@ public org.tensorflow.proto.util.testlog.BuildConfigurationOrBuilder getBuildCon * .tensorflow.BuildConfiguration build_configuration = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.testlog.BuildConfiguration, org.tensorflow.proto.util.testlog.BuildConfiguration.Builder, org.tensorflow.proto.util.testlog.BuildConfigurationOrBuilder> + org.tensorflow.proto.BuildConfiguration, org.tensorflow.proto.BuildConfiguration.Builder, org.tensorflow.proto.BuildConfigurationOrBuilder> getBuildConfigurationFieldBuilder() { if (buildConfigurationBuilder_ == null) { buildConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.testlog.BuildConfiguration, org.tensorflow.proto.util.testlog.BuildConfiguration.Builder, org.tensorflow.proto.util.testlog.BuildConfigurationOrBuilder>( + org.tensorflow.proto.BuildConfiguration, org.tensorflow.proto.BuildConfiguration.Builder, org.tensorflow.proto.BuildConfigurationOrBuilder>( getBuildConfiguration(), getParentForChildren(), isClean()); @@ -1698,15 +1702,16 @@ public org.tensorflow.proto.util.testlog.BuildConfigurationOrBuilder getBuildCon return buildConfigurationBuilder_; } - private org.tensorflow.proto.util.testlog.CommitId commitId_; + private org.tensorflow.proto.CommitId commitId_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.testlog.CommitId, org.tensorflow.proto.util.testlog.CommitId.Builder, org.tensorflow.proto.util.testlog.CommitIdOrBuilder> commitIdBuilder_; + org.tensorflow.proto.CommitId, org.tensorflow.proto.CommitId.Builder, org.tensorflow.proto.CommitIdOrBuilder> commitIdBuilder_; /** *
      * The commit id (git hash or changelist)
      * 
* * .tensorflow.CommitId commit_id = 4; + * @return Whether the commitId field is set. */ public boolean hasCommitId() { return commitIdBuilder_ != null || commitId_ != null; @@ -1717,10 +1722,11 @@ public boolean hasCommitId() { * * * .tensorflow.CommitId commit_id = 4; + * @return The commitId. */ - public org.tensorflow.proto.util.testlog.CommitId getCommitId() { + public org.tensorflow.proto.CommitId getCommitId() { if (commitIdBuilder_ == null) { - return commitId_ == null ? org.tensorflow.proto.util.testlog.CommitId.getDefaultInstance() : commitId_; + return commitId_ == null ? org.tensorflow.proto.CommitId.getDefaultInstance() : commitId_; } else { return commitIdBuilder_.getMessage(); } @@ -1732,7 +1738,7 @@ public org.tensorflow.proto.util.testlog.CommitId getCommitId() { * * .tensorflow.CommitId commit_id = 4; */ - public Builder setCommitId(org.tensorflow.proto.util.testlog.CommitId value) { + public Builder setCommitId(org.tensorflow.proto.CommitId value) { if (commitIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1753,7 +1759,7 @@ public Builder setCommitId(org.tensorflow.proto.util.testlog.CommitId value) { * .tensorflow.CommitId commit_id = 4; */ public Builder setCommitId( - org.tensorflow.proto.util.testlog.CommitId.Builder builderForValue) { + org.tensorflow.proto.CommitId.Builder builderForValue) { if (commitIdBuilder_ == null) { commitId_ = builderForValue.build(); onChanged(); @@ -1770,11 +1776,11 @@ public Builder setCommitId( * * .tensorflow.CommitId commit_id = 4; */ - public Builder mergeCommitId(org.tensorflow.proto.util.testlog.CommitId value) { + public Builder mergeCommitId(org.tensorflow.proto.CommitId value) { if (commitIdBuilder_ == null) { if (commitId_ != null) { commitId_ = - org.tensorflow.proto.util.testlog.CommitId.newBuilder(commitId_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.CommitId.newBuilder(commitId_).mergeFrom(value).buildPartial(); } else { commitId_ = value; } @@ -1810,7 +1816,7 @@ public Builder clearCommitId() { * * .tensorflow.CommitId commit_id = 4; */ - public org.tensorflow.proto.util.testlog.CommitId.Builder getCommitIdBuilder() { + public org.tensorflow.proto.CommitId.Builder getCommitIdBuilder() { onChanged(); return getCommitIdFieldBuilder().getBuilder(); @@ -1822,12 +1828,12 @@ public org.tensorflow.proto.util.testlog.CommitId.Builder getCommitIdBuilder() { * * .tensorflow.CommitId commit_id = 4; */ - public org.tensorflow.proto.util.testlog.CommitIdOrBuilder getCommitIdOrBuilder() { + public org.tensorflow.proto.CommitIdOrBuilder getCommitIdOrBuilder() { if (commitIdBuilder_ != null) { return commitIdBuilder_.getMessageOrBuilder(); } else { return commitId_ == null ? - org.tensorflow.proto.util.testlog.CommitId.getDefaultInstance() : commitId_; + org.tensorflow.proto.CommitId.getDefaultInstance() : commitId_; } } /** @@ -1838,11 +1844,11 @@ public org.tensorflow.proto.util.testlog.CommitIdOrBuilder getCommitIdOrBuilder( * .tensorflow.CommitId commit_id = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.testlog.CommitId, org.tensorflow.proto.util.testlog.CommitId.Builder, org.tensorflow.proto.util.testlog.CommitIdOrBuilder> + org.tensorflow.proto.CommitId, org.tensorflow.proto.CommitId.Builder, org.tensorflow.proto.CommitIdOrBuilder> getCommitIdFieldBuilder() { if (commitIdBuilder_ == null) { commitIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.testlog.CommitId, org.tensorflow.proto.util.testlog.CommitId.Builder, org.tensorflow.proto.util.testlog.CommitIdOrBuilder>( + org.tensorflow.proto.CommitId, org.tensorflow.proto.CommitId.Builder, org.tensorflow.proto.CommitIdOrBuilder>( getCommitId(), getParentForChildren(), isClean()); @@ -1858,7 +1864,9 @@ public org.tensorflow.proto.util.testlog.CommitIdOrBuilder getCommitIdOrBuilder( * * * int64 start_time = 5; + * @return The startTime. */ + @java.lang.Override public long getStartTime() { return startTime_; } @@ -1868,6 +1876,8 @@ public long getStartTime() { * * * int64 start_time = 5; + * @param value The startTime to set. + * @return This builder for chaining. */ public Builder setStartTime(long value) { @@ -1881,6 +1891,7 @@ public Builder setStartTime(long value) { * * * int64 start_time = 5; + * @return This builder for chaining. */ public Builder clearStartTime() { @@ -1896,7 +1907,9 @@ public Builder clearStartTime() { * * * double run_time = 6; + * @return The runTime. */ + @java.lang.Override public double getRunTime() { return runTime_; } @@ -1906,6 +1919,8 @@ public double getRunTime() { * * * double run_time = 6; + * @param value The runTime to set. + * @return This builder for chaining. */ public Builder setRunTime(double value) { @@ -1919,6 +1934,7 @@ public Builder setRunTime(double value) { * * * double run_time = 6; + * @return This builder for chaining. */ public Builder clearRunTime() { @@ -1927,15 +1943,16 @@ public Builder clearRunTime() { return this; } - private org.tensorflow.proto.util.testlog.MachineConfiguration machineConfiguration_; + private org.tensorflow.proto.MachineConfiguration machineConfiguration_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.testlog.MachineConfiguration, org.tensorflow.proto.util.testlog.MachineConfiguration.Builder, org.tensorflow.proto.util.testlog.MachineConfigurationOrBuilder> machineConfigurationBuilder_; + org.tensorflow.proto.MachineConfiguration, org.tensorflow.proto.MachineConfiguration.Builder, org.tensorflow.proto.MachineConfigurationOrBuilder> machineConfigurationBuilder_; /** *
      * Machine-specific parameters (Platform and CPU info)
      * 
* * .tensorflow.MachineConfiguration machine_configuration = 7; + * @return Whether the machineConfiguration field is set. */ public boolean hasMachineConfiguration() { return machineConfigurationBuilder_ != null || machineConfiguration_ != null; @@ -1946,10 +1963,11 @@ public boolean hasMachineConfiguration() { * * * .tensorflow.MachineConfiguration machine_configuration = 7; + * @return The machineConfiguration. */ - public org.tensorflow.proto.util.testlog.MachineConfiguration getMachineConfiguration() { + public org.tensorflow.proto.MachineConfiguration getMachineConfiguration() { if (machineConfigurationBuilder_ == null) { - return machineConfiguration_ == null ? org.tensorflow.proto.util.testlog.MachineConfiguration.getDefaultInstance() : machineConfiguration_; + return machineConfiguration_ == null ? org.tensorflow.proto.MachineConfiguration.getDefaultInstance() : machineConfiguration_; } else { return machineConfigurationBuilder_.getMessage(); } @@ -1961,7 +1979,7 @@ public org.tensorflow.proto.util.testlog.MachineConfiguration getMachineConfigur * * .tensorflow.MachineConfiguration machine_configuration = 7; */ - public Builder setMachineConfiguration(org.tensorflow.proto.util.testlog.MachineConfiguration value) { + public Builder setMachineConfiguration(org.tensorflow.proto.MachineConfiguration value) { if (machineConfigurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1982,7 +2000,7 @@ public Builder setMachineConfiguration(org.tensorflow.proto.util.testlog.Machine * .tensorflow.MachineConfiguration machine_configuration = 7; */ public Builder setMachineConfiguration( - org.tensorflow.proto.util.testlog.MachineConfiguration.Builder builderForValue) { + org.tensorflow.proto.MachineConfiguration.Builder builderForValue) { if (machineConfigurationBuilder_ == null) { machineConfiguration_ = builderForValue.build(); onChanged(); @@ -1999,11 +2017,11 @@ public Builder setMachineConfiguration( * * .tensorflow.MachineConfiguration machine_configuration = 7; */ - public Builder mergeMachineConfiguration(org.tensorflow.proto.util.testlog.MachineConfiguration value) { + public Builder mergeMachineConfiguration(org.tensorflow.proto.MachineConfiguration value) { if (machineConfigurationBuilder_ == null) { if (machineConfiguration_ != null) { machineConfiguration_ = - org.tensorflow.proto.util.testlog.MachineConfiguration.newBuilder(machineConfiguration_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.MachineConfiguration.newBuilder(machineConfiguration_).mergeFrom(value).buildPartial(); } else { machineConfiguration_ = value; } @@ -2039,7 +2057,7 @@ public Builder clearMachineConfiguration() { * * .tensorflow.MachineConfiguration machine_configuration = 7; */ - public org.tensorflow.proto.util.testlog.MachineConfiguration.Builder getMachineConfigurationBuilder() { + public org.tensorflow.proto.MachineConfiguration.Builder getMachineConfigurationBuilder() { onChanged(); return getMachineConfigurationFieldBuilder().getBuilder(); @@ -2051,12 +2069,12 @@ public org.tensorflow.proto.util.testlog.MachineConfiguration.Builder getMachine * * .tensorflow.MachineConfiguration machine_configuration = 7; */ - public org.tensorflow.proto.util.testlog.MachineConfigurationOrBuilder getMachineConfigurationOrBuilder() { + public org.tensorflow.proto.MachineConfigurationOrBuilder getMachineConfigurationOrBuilder() { if (machineConfigurationBuilder_ != null) { return machineConfigurationBuilder_.getMessageOrBuilder(); } else { return machineConfiguration_ == null ? - org.tensorflow.proto.util.testlog.MachineConfiguration.getDefaultInstance() : machineConfiguration_; + org.tensorflow.proto.MachineConfiguration.getDefaultInstance() : machineConfiguration_; } } /** @@ -2067,11 +2085,11 @@ public org.tensorflow.proto.util.testlog.MachineConfigurationOrBuilder getMachin * .tensorflow.MachineConfiguration machine_configuration = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.testlog.MachineConfiguration, org.tensorflow.proto.util.testlog.MachineConfiguration.Builder, org.tensorflow.proto.util.testlog.MachineConfigurationOrBuilder> + org.tensorflow.proto.MachineConfiguration, org.tensorflow.proto.MachineConfiguration.Builder, org.tensorflow.proto.MachineConfigurationOrBuilder> getMachineConfigurationFieldBuilder() { if (machineConfigurationBuilder_ == null) { machineConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.testlog.MachineConfiguration, org.tensorflow.proto.util.testlog.MachineConfiguration.Builder, org.tensorflow.proto.util.testlog.MachineConfigurationOrBuilder>( + org.tensorflow.proto.MachineConfiguration, org.tensorflow.proto.MachineConfiguration.Builder, org.tensorflow.proto.MachineConfigurationOrBuilder>( getMachineConfiguration(), getParentForChildren(), isClean()); @@ -2080,15 +2098,16 @@ public org.tensorflow.proto.util.testlog.MachineConfigurationOrBuilder getMachin return machineConfigurationBuilder_; } - private org.tensorflow.proto.util.testlog.RunConfiguration runConfiguration_; + private org.tensorflow.proto.RunConfiguration runConfiguration_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.testlog.RunConfiguration, org.tensorflow.proto.util.testlog.RunConfiguration.Builder, org.tensorflow.proto.util.testlog.RunConfigurationOrBuilder> runConfigurationBuilder_; + org.tensorflow.proto.RunConfiguration, org.tensorflow.proto.RunConfiguration.Builder, org.tensorflow.proto.RunConfigurationOrBuilder> runConfigurationBuilder_; /** *
      * Run-specific parameters (arguments, etc)
      * 
* * .tensorflow.RunConfiguration run_configuration = 8; + * @return Whether the runConfiguration field is set. */ public boolean hasRunConfiguration() { return runConfigurationBuilder_ != null || runConfiguration_ != null; @@ -2099,10 +2118,11 @@ public boolean hasRunConfiguration() { * * * .tensorflow.RunConfiguration run_configuration = 8; + * @return The runConfiguration. */ - public org.tensorflow.proto.util.testlog.RunConfiguration getRunConfiguration() { + public org.tensorflow.proto.RunConfiguration getRunConfiguration() { if (runConfigurationBuilder_ == null) { - return runConfiguration_ == null ? org.tensorflow.proto.util.testlog.RunConfiguration.getDefaultInstance() : runConfiguration_; + return runConfiguration_ == null ? org.tensorflow.proto.RunConfiguration.getDefaultInstance() : runConfiguration_; } else { return runConfigurationBuilder_.getMessage(); } @@ -2114,7 +2134,7 @@ public org.tensorflow.proto.util.testlog.RunConfiguration getRunConfiguration() * * .tensorflow.RunConfiguration run_configuration = 8; */ - public Builder setRunConfiguration(org.tensorflow.proto.util.testlog.RunConfiguration value) { + public Builder setRunConfiguration(org.tensorflow.proto.RunConfiguration value) { if (runConfigurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2135,7 +2155,7 @@ public Builder setRunConfiguration(org.tensorflow.proto.util.testlog.RunConfigur * .tensorflow.RunConfiguration run_configuration = 8; */ public Builder setRunConfiguration( - org.tensorflow.proto.util.testlog.RunConfiguration.Builder builderForValue) { + org.tensorflow.proto.RunConfiguration.Builder builderForValue) { if (runConfigurationBuilder_ == null) { runConfiguration_ = builderForValue.build(); onChanged(); @@ -2152,11 +2172,11 @@ public Builder setRunConfiguration( * * .tensorflow.RunConfiguration run_configuration = 8; */ - public Builder mergeRunConfiguration(org.tensorflow.proto.util.testlog.RunConfiguration value) { + public Builder mergeRunConfiguration(org.tensorflow.proto.RunConfiguration value) { if (runConfigurationBuilder_ == null) { if (runConfiguration_ != null) { runConfiguration_ = - org.tensorflow.proto.util.testlog.RunConfiguration.newBuilder(runConfiguration_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.RunConfiguration.newBuilder(runConfiguration_).mergeFrom(value).buildPartial(); } else { runConfiguration_ = value; } @@ -2192,7 +2212,7 @@ public Builder clearRunConfiguration() { * * .tensorflow.RunConfiguration run_configuration = 8; */ - public org.tensorflow.proto.util.testlog.RunConfiguration.Builder getRunConfigurationBuilder() { + public org.tensorflow.proto.RunConfiguration.Builder getRunConfigurationBuilder() { onChanged(); return getRunConfigurationFieldBuilder().getBuilder(); @@ -2204,12 +2224,12 @@ public org.tensorflow.proto.util.testlog.RunConfiguration.Builder getRunConfigur * * .tensorflow.RunConfiguration run_configuration = 8; */ - public org.tensorflow.proto.util.testlog.RunConfigurationOrBuilder getRunConfigurationOrBuilder() { + public org.tensorflow.proto.RunConfigurationOrBuilder getRunConfigurationOrBuilder() { if (runConfigurationBuilder_ != null) { return runConfigurationBuilder_.getMessageOrBuilder(); } else { return runConfiguration_ == null ? - org.tensorflow.proto.util.testlog.RunConfiguration.getDefaultInstance() : runConfiguration_; + org.tensorflow.proto.RunConfiguration.getDefaultInstance() : runConfiguration_; } } /** @@ -2220,11 +2240,11 @@ public org.tensorflow.proto.util.testlog.RunConfigurationOrBuilder getRunConfigu * .tensorflow.RunConfiguration run_configuration = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.testlog.RunConfiguration, org.tensorflow.proto.util.testlog.RunConfiguration.Builder, org.tensorflow.proto.util.testlog.RunConfigurationOrBuilder> + org.tensorflow.proto.RunConfiguration, org.tensorflow.proto.RunConfiguration.Builder, org.tensorflow.proto.RunConfigurationOrBuilder> getRunConfigurationFieldBuilder() { if (runConfigurationBuilder_ == null) { runConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.util.testlog.RunConfiguration, org.tensorflow.proto.util.testlog.RunConfiguration.Builder, org.tensorflow.proto.util.testlog.RunConfigurationOrBuilder>( + org.tensorflow.proto.RunConfiguration, org.tensorflow.proto.RunConfiguration.Builder, org.tensorflow.proto.RunConfigurationOrBuilder>( getRunConfiguration(), getParentForChildren(), isClean()); @@ -2240,6 +2260,7 @@ public org.tensorflow.proto.util.testlog.RunConfigurationOrBuilder getRunConfigu * * * string name = 9; + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -2259,6 +2280,7 @@ public java.lang.String getName() { * * * string name = 9; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -2279,6 +2301,8 @@ public java.lang.String getName() { * * * string name = 9; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { @@ -2296,6 +2320,7 @@ public Builder setName( * * * string name = 9; + * @return This builder for chaining. */ public Builder clearName() { @@ -2309,6 +2334,8 @@ public Builder clearName() { * * * string name = 9; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { @@ -2325,30 +2352,38 @@ public Builder setNameBytes( private int benchmarkType_ = 0; /** * .tensorflow.TestResults.BenchmarkType benchmark_type = 10; + * @return The enum numeric value on the wire for benchmarkType. */ - public int getBenchmarkTypeValue() { + @java.lang.Override public int getBenchmarkTypeValue() { return benchmarkType_; } /** * .tensorflow.TestResults.BenchmarkType benchmark_type = 10; + * @param value The enum numeric value on the wire for benchmarkType to set. + * @return This builder for chaining. */ public Builder setBenchmarkTypeValue(int value) { + benchmarkType_ = value; onChanged(); return this; } /** * .tensorflow.TestResults.BenchmarkType benchmark_type = 10; + * @return The benchmarkType. */ - public org.tensorflow.proto.util.testlog.TestResults.BenchmarkType getBenchmarkType() { + @java.lang.Override + public org.tensorflow.proto.TestResults.BenchmarkType getBenchmarkType() { @SuppressWarnings("deprecation") - org.tensorflow.proto.util.testlog.TestResults.BenchmarkType result = org.tensorflow.proto.util.testlog.TestResults.BenchmarkType.valueOf(benchmarkType_); - return result == null ? org.tensorflow.proto.util.testlog.TestResults.BenchmarkType.UNRECOGNIZED : result; + org.tensorflow.proto.TestResults.BenchmarkType result = org.tensorflow.proto.TestResults.BenchmarkType.valueOf(benchmarkType_); + return result == null ? org.tensorflow.proto.TestResults.BenchmarkType.UNRECOGNIZED : result; } /** * .tensorflow.TestResults.BenchmarkType benchmark_type = 10; + * @param value The benchmarkType to set. + * @return This builder for chaining. */ - public Builder setBenchmarkType(org.tensorflow.proto.util.testlog.TestResults.BenchmarkType value) { + public Builder setBenchmarkType(org.tensorflow.proto.TestResults.BenchmarkType value) { if (value == null) { throw new NullPointerException(); } @@ -2359,6 +2394,7 @@ public Builder setBenchmarkType(org.tensorflow.proto.util.testlog.TestResults.Be } /** * .tensorflow.TestResults.BenchmarkType benchmark_type = 10; + * @return This builder for chaining. */ public Builder clearBenchmarkType() { @@ -2378,6 +2414,7 @@ public Builder clearBenchmarkType() { * * * string run_mode = 11; + * @return The runMode. */ public java.lang.String getRunMode() { java.lang.Object ref = runMode_; @@ -2401,6 +2438,7 @@ public java.lang.String getRunMode() { * * * string run_mode = 11; + * @return The bytes for runMode. */ public com.google.protobuf.ByteString getRunModeBytes() { @@ -2425,6 +2463,8 @@ public java.lang.String getRunMode() { * * * string run_mode = 11; + * @param value The runMode to set. + * @return This builder for chaining. */ public Builder setRunMode( java.lang.String value) { @@ -2446,6 +2486,7 @@ public Builder setRunMode( * * * string run_mode = 11; + * @return This builder for chaining. */ public Builder clearRunMode() { @@ -2463,6 +2504,8 @@ public Builder clearRunMode() { * * * string run_mode = 11; + * @param value The bytes for runMode to set. + * @return This builder for chaining. */ public Builder setRunModeBytes( com.google.protobuf.ByteString value) { @@ -2484,6 +2527,7 @@ public Builder setRunModeBytes( * * * string tf_version = 12; + * @return The tfVersion. */ public java.lang.String getTfVersion() { java.lang.Object ref = tfVersion_; @@ -2504,6 +2548,7 @@ public java.lang.String getTfVersion() { * * * string tf_version = 12; + * @return The bytes for tfVersion. */ public com.google.protobuf.ByteString getTfVersionBytes() { @@ -2525,6 +2570,8 @@ public java.lang.String getTfVersion() { * * * string tf_version = 12; + * @param value The tfVersion to set. + * @return This builder for chaining. */ public Builder setTfVersion( java.lang.String value) { @@ -2543,6 +2590,7 @@ public Builder setTfVersion( * * * string tf_version = 12; + * @return This builder for chaining. */ public Builder clearTfVersion() { @@ -2557,6 +2605,8 @@ public Builder clearTfVersion() { * * * string tf_version = 12; + * @param value The bytes for tfVersion to set. + * @return This builder for chaining. */ public Builder setTfVersionBytes( com.google.protobuf.ByteString value) { @@ -2586,12 +2636,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.TestResults) - private static final org.tensorflow.proto.util.testlog.TestResults DEFAULT_INSTANCE; + private static final org.tensorflow.proto.TestResults DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.util.testlog.TestResults(); + DEFAULT_INSTANCE = new org.tensorflow.proto.TestResults(); } - public static org.tensorflow.proto.util.testlog.TestResults getDefaultInstance() { + public static org.tensorflow.proto.TestResults getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -2602,7 +2652,18 @@ public TestResults parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TestResults(input, extensionRegistry); + 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(); } }; @@ -2616,7 +2677,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.util.testlog.TestResults getDefaultInstanceForType() { + public org.tensorflow.proto.TestResults getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/TestResultsOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TestResultsOrBuilder.java similarity index 76% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/TestResultsOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TestResultsOrBuilder.java index 28ef5b7bfd0..097010bf39f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/testlog/TestResultsOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TestResultsOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/util/test_log.proto +// source: tensorflow/tsl/protobuf/test_log.proto -package org.tensorflow.proto.util.testlog; +package org.tensorflow.proto; public interface TestResultsOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.TestResults) @@ -14,6 +14,7 @@ public interface TestResultsOrBuilder extends * * * string target = 1; + * @return The target. */ java.lang.String getTarget(); /** @@ -23,6 +24,7 @@ public interface TestResultsOrBuilder extends * * * string target = 1; + * @return The bytes for target. */ com.google.protobuf.ByteString getTargetBytes(); @@ -33,6 +35,7 @@ public interface TestResultsOrBuilder extends * * * .tensorflow.BenchmarkEntries entries = 2; + * @return Whether the entries field is set. */ boolean hasEntries(); /** @@ -41,8 +44,9 @@ public interface TestResultsOrBuilder extends * * * .tensorflow.BenchmarkEntries entries = 2; + * @return The entries. */ - org.tensorflow.proto.util.testlog.BenchmarkEntries getEntries(); + org.tensorflow.proto.BenchmarkEntries getEntries(); /** *
    * The list of tests or benchmarks in this run.
@@ -50,7 +54,7 @@ public interface TestResultsOrBuilder extends
    *
    * .tensorflow.BenchmarkEntries entries = 2;
    */
-  org.tensorflow.proto.util.testlog.BenchmarkEntriesOrBuilder getEntriesOrBuilder();
+  org.tensorflow.proto.BenchmarkEntriesOrBuilder getEntriesOrBuilder();
 
   /**
    * 
@@ -58,6 +62,7 @@ public interface TestResultsOrBuilder extends
    * 
* * .tensorflow.BuildConfiguration build_configuration = 3; + * @return Whether the buildConfiguration field is set. */ boolean hasBuildConfiguration(); /** @@ -66,8 +71,9 @@ public interface TestResultsOrBuilder extends *
* * .tensorflow.BuildConfiguration build_configuration = 3; + * @return The buildConfiguration. */ - org.tensorflow.proto.util.testlog.BuildConfiguration getBuildConfiguration(); + org.tensorflow.proto.BuildConfiguration getBuildConfiguration(); /** *
    * The configuration of the build (compiled opt? with cuda? any copts?)
@@ -75,7 +81,7 @@ public interface TestResultsOrBuilder extends
    *
    * .tensorflow.BuildConfiguration build_configuration = 3;
    */
-  org.tensorflow.proto.util.testlog.BuildConfigurationOrBuilder getBuildConfigurationOrBuilder();
+  org.tensorflow.proto.BuildConfigurationOrBuilder getBuildConfigurationOrBuilder();
 
   /**
    * 
@@ -83,6 +89,7 @@ public interface TestResultsOrBuilder extends
    * 
* * .tensorflow.CommitId commit_id = 4; + * @return Whether the commitId field is set. */ boolean hasCommitId(); /** @@ -91,8 +98,9 @@ public interface TestResultsOrBuilder extends *
* * .tensorflow.CommitId commit_id = 4; + * @return The commitId. */ - org.tensorflow.proto.util.testlog.CommitId getCommitId(); + org.tensorflow.proto.CommitId getCommitId(); /** *
    * The commit id (git hash or changelist)
@@ -100,7 +108,7 @@ public interface TestResultsOrBuilder extends
    *
    * .tensorflow.CommitId commit_id = 4;
    */
-  org.tensorflow.proto.util.testlog.CommitIdOrBuilder getCommitIdOrBuilder();
+  org.tensorflow.proto.CommitIdOrBuilder getCommitIdOrBuilder();
 
   /**
    * 
@@ -108,6 +116,7 @@ public interface TestResultsOrBuilder extends
    * 
* * int64 start_time = 5; + * @return The startTime. */ long getStartTime(); @@ -117,6 +126,7 @@ public interface TestResultsOrBuilder extends *
* * double run_time = 6; + * @return The runTime. */ double getRunTime(); @@ -126,6 +136,7 @@ public interface TestResultsOrBuilder extends * * * .tensorflow.MachineConfiguration machine_configuration = 7; + * @return Whether the machineConfiguration field is set. */ boolean hasMachineConfiguration(); /** @@ -134,8 +145,9 @@ public interface TestResultsOrBuilder extends * * * .tensorflow.MachineConfiguration machine_configuration = 7; + * @return The machineConfiguration. */ - org.tensorflow.proto.util.testlog.MachineConfiguration getMachineConfiguration(); + org.tensorflow.proto.MachineConfiguration getMachineConfiguration(); /** *
    * Machine-specific parameters (Platform and CPU info)
@@ -143,7 +155,7 @@ public interface TestResultsOrBuilder extends
    *
    * .tensorflow.MachineConfiguration machine_configuration = 7;
    */
-  org.tensorflow.proto.util.testlog.MachineConfigurationOrBuilder getMachineConfigurationOrBuilder();
+  org.tensorflow.proto.MachineConfigurationOrBuilder getMachineConfigurationOrBuilder();
 
   /**
    * 
@@ -151,6 +163,7 @@ public interface TestResultsOrBuilder extends
    * 
* * .tensorflow.RunConfiguration run_configuration = 8; + * @return Whether the runConfiguration field is set. */ boolean hasRunConfiguration(); /** @@ -159,8 +172,9 @@ public interface TestResultsOrBuilder extends *
* * .tensorflow.RunConfiguration run_configuration = 8; + * @return The runConfiguration. */ - org.tensorflow.proto.util.testlog.RunConfiguration getRunConfiguration(); + org.tensorflow.proto.RunConfiguration getRunConfiguration(); /** *
    * Run-specific parameters (arguments, etc)
@@ -168,7 +182,7 @@ public interface TestResultsOrBuilder extends
    *
    * .tensorflow.RunConfiguration run_configuration = 8;
    */
-  org.tensorflow.proto.util.testlog.RunConfigurationOrBuilder getRunConfigurationOrBuilder();
+  org.tensorflow.proto.RunConfigurationOrBuilder getRunConfigurationOrBuilder();
 
   /**
    * 
@@ -176,6 +190,7 @@ public interface TestResultsOrBuilder extends
    * 
* * string name = 9; + * @return The name. */ java.lang.String getName(); /** @@ -184,18 +199,21 @@ public interface TestResultsOrBuilder extends *
* * string name = 9; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * .tensorflow.TestResults.BenchmarkType benchmark_type = 10; + * @return The enum numeric value on the wire for benchmarkType. */ int getBenchmarkTypeValue(); /** * .tensorflow.TestResults.BenchmarkType benchmark_type = 10; + * @return The benchmarkType. */ - org.tensorflow.proto.util.testlog.TestResults.BenchmarkType getBenchmarkType(); + org.tensorflow.proto.TestResults.BenchmarkType getBenchmarkType(); /** *
@@ -207,6 +225,7 @@ public interface TestResultsOrBuilder extends
    * 
* * string run_mode = 11; + * @return The runMode. */ java.lang.String getRunMode(); /** @@ -219,6 +238,7 @@ public interface TestResultsOrBuilder extends * * * string run_mode = 11; + * @return The bytes for runMode. */ com.google.protobuf.ByteString getRunModeBytes(); @@ -230,6 +250,7 @@ public interface TestResultsOrBuilder extends * * * string tf_version = 12; + * @return The tfVersion. */ java.lang.String getTfVersion(); /** @@ -239,6 +260,7 @@ public interface TestResultsOrBuilder extends * * * string tf_version = 12; + * @return The bytes for tfVersion. */ com.google.protobuf.ByteString getTfVersionBytes(); diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ThreadPoolOptionProto.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ThreadPoolOptionProto.java similarity index 77% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ThreadPoolOptionProto.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ThreadPoolOptionProto.java index 9894b24788e..c9f888e9706 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ThreadPoolOptionProto.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ThreadPoolOptionProto.java @@ -1,12 +1,12 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/config.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; /** * Protobuf type {@code tensorflow.ThreadPoolOptionProto} */ -public final class ThreadPoolOptionProto extends +public final class ThreadPoolOptionProto extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.ThreadPoolOptionProto) ThreadPoolOptionProtoOrBuilder { @@ -31,65 +31,17 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private ThreadPoolOptionProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - numThreads_ = input.readInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - globalName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_ThreadPoolOptionProto_descriptor; + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_ThreadPoolOptionProto_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_ThreadPoolOptionProto_fieldAccessorTable + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_ThreadPoolOptionProto_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ThreadPoolOptionProto.class, org.tensorflow.proto.framework.ThreadPoolOptionProto.Builder.class); + org.tensorflow.proto.ThreadPoolOptionProto.class, org.tensorflow.proto.ThreadPoolOptionProto.Builder.class); } public static final int NUM_THREADS_FIELD_NUMBER = 1; @@ -102,7 +54,9 @@ private ThreadPoolOptionProto( * * * int32 num_threads = 1; + * @return The numThreads. */ + @java.lang.Override public int getNumThreads() { return numThreads_; } @@ -127,7 +81,9 @@ public int getNumThreads() { * * * string global_name = 2; + * @return The globalName. */ + @java.lang.Override public java.lang.String getGlobalName() { java.lang.Object ref = globalName_; if (ref instanceof java.lang.String) { @@ -158,7 +114,9 @@ public java.lang.String getGlobalName() { * * * string global_name = 2; + * @return The bytes for globalName. */ + @java.lang.Override public com.google.protobuf.ByteString getGlobalNameBytes() { java.lang.Object ref = globalName_; @@ -190,10 +148,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (numThreads_ != 0) { output.writeInt32(1, numThreads_); } - if (!getGlobalNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(globalName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, globalName_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -206,10 +164,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, numThreads_); } - if (!getGlobalNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(globalName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, globalName_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -219,16 +177,16 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.ThreadPoolOptionProto)) { + if (!(obj instanceof org.tensorflow.proto.ThreadPoolOptionProto)) { return super.equals(obj); } - org.tensorflow.proto.framework.ThreadPoolOptionProto other = (org.tensorflow.proto.framework.ThreadPoolOptionProto) obj; + org.tensorflow.proto.ThreadPoolOptionProto other = (org.tensorflow.proto.ThreadPoolOptionProto) obj; if (getNumThreads() != other.getNumThreads()) return false; if (!getGlobalName() .equals(other.getGlobalName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -243,74 +201,74 @@ public int hashCode() { hash = (53 * hash) + getNumThreads(); hash = (37 * hash) + GLOBAL_NAME_FIELD_NUMBER; hash = (53 * hash) + getGlobalName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.ThreadPoolOptionProto parseFrom( + public static org.tensorflow.proto.ThreadPoolOptionProto parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.ThreadPoolOptionProto parseFrom( + public static org.tensorflow.proto.ThreadPoolOptionProto parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.ThreadPoolOptionProto parseFrom( + public static org.tensorflow.proto.ThreadPoolOptionProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.ThreadPoolOptionProto parseFrom( + public static org.tensorflow.proto.ThreadPoolOptionProto parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.ThreadPoolOptionProto parseFrom(byte[] data) + public static org.tensorflow.proto.ThreadPoolOptionProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.ThreadPoolOptionProto parseFrom( + public static org.tensorflow.proto.ThreadPoolOptionProto parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.ThreadPoolOptionProto parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.ThreadPoolOptionProto parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.ThreadPoolOptionProto parseFrom( + public static org.tensorflow.proto.ThreadPoolOptionProto 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 org.tensorflow.proto.framework.ThreadPoolOptionProto parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.ThreadPoolOptionProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.ThreadPoolOptionProto parseDelimitedFrom( + public static org.tensorflow.proto.ThreadPoolOptionProto 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 org.tensorflow.proto.framework.ThreadPoolOptionProto parseFrom( + public static org.tensorflow.proto.ThreadPoolOptionProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.ThreadPoolOptionProto parseFrom( + public static org.tensorflow.proto.ThreadPoolOptionProto parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -323,7 +281,7 @@ public static org.tensorflow.proto.framework.ThreadPoolOptionProto parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.ThreadPoolOptionProto prototype) { + public static Builder newBuilder(org.tensorflow.proto.ThreadPoolOptionProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -344,34 +302,29 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.ThreadPoolOptionProto) - org.tensorflow.proto.framework.ThreadPoolOptionProtoOrBuilder { + org.tensorflow.proto.ThreadPoolOptionProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_ThreadPoolOptionProto_descriptor; + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_ThreadPoolOptionProto_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_ThreadPoolOptionProto_fieldAccessorTable + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_ThreadPoolOptionProto_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ThreadPoolOptionProto.class, org.tensorflow.proto.framework.ThreadPoolOptionProto.Builder.class); + org.tensorflow.proto.ThreadPoolOptionProto.class, org.tensorflow.proto.ThreadPoolOptionProto.Builder.class); } - // Construct using org.tensorflow.proto.framework.ThreadPoolOptionProto.newBuilder() + // Construct using org.tensorflow.proto.ThreadPoolOptionProto.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -386,17 +339,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.ConfigProtos.internal_static_tensorflow_ThreadPoolOptionProto_descriptor; + return org.tensorflow.proto.ConfigProtos.internal_static_tensorflow_ThreadPoolOptionProto_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.ThreadPoolOptionProto getDefaultInstanceForType() { - return org.tensorflow.proto.framework.ThreadPoolOptionProto.getDefaultInstance(); + public org.tensorflow.proto.ThreadPoolOptionProto getDefaultInstanceForType() { + return org.tensorflow.proto.ThreadPoolOptionProto.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.ThreadPoolOptionProto build() { - org.tensorflow.proto.framework.ThreadPoolOptionProto result = buildPartial(); + public org.tensorflow.proto.ThreadPoolOptionProto build() { + org.tensorflow.proto.ThreadPoolOptionProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -404,8 +357,8 @@ public org.tensorflow.proto.framework.ThreadPoolOptionProto build() { } @java.lang.Override - public org.tensorflow.proto.framework.ThreadPoolOptionProto buildPartial() { - org.tensorflow.proto.framework.ThreadPoolOptionProto result = new org.tensorflow.proto.framework.ThreadPoolOptionProto(this); + public org.tensorflow.proto.ThreadPoolOptionProto buildPartial() { + org.tensorflow.proto.ThreadPoolOptionProto result = new org.tensorflow.proto.ThreadPoolOptionProto(this); result.numThreads_ = numThreads_; result.globalName_ = globalName_; onBuilt(); @@ -446,16 +399,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.ThreadPoolOptionProto) { - return mergeFrom((org.tensorflow.proto.framework.ThreadPoolOptionProto)other); + if (other instanceof org.tensorflow.proto.ThreadPoolOptionProto) { + return mergeFrom((org.tensorflow.proto.ThreadPoolOptionProto)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.ThreadPoolOptionProto other) { - if (other == org.tensorflow.proto.framework.ThreadPoolOptionProto.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.ThreadPoolOptionProto other) { + if (other == org.tensorflow.proto.ThreadPoolOptionProto.getDefaultInstance()) return this; if (other.getNumThreads() != 0) { setNumThreads(other.getNumThreads()); } @@ -463,7 +416,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.ThreadPoolOptionProto ot globalName_ = other.globalName_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -478,17 +431,40 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.ThreadPoolOptionProto parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + numThreads_ = input.readInt32(); + + break; + } // case 8 + case 18: { + globalName_ = input.readStringRequireUtf8(); + + 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) { - parsedMessage = (org.tensorflow.proto.framework.ThreadPoolOptionProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -501,7 +477,9 @@ public Builder mergeFrom( * * * int32 num_threads = 1; + * @return The numThreads. */ + @java.lang.Override public int getNumThreads() { return numThreads_; } @@ -513,6 +491,8 @@ public int getNumThreads() { * * * int32 num_threads = 1; + * @param value The numThreads to set. + * @return This builder for chaining. */ public Builder setNumThreads(int value) { @@ -528,6 +508,7 @@ public Builder setNumThreads(int value) { * * * int32 num_threads = 1; + * @return This builder for chaining. */ public Builder clearNumThreads() { @@ -555,6 +536,7 @@ public Builder clearNumThreads() { * * * string global_name = 2; + * @return The globalName. */ public java.lang.String getGlobalName() { java.lang.Object ref = globalName_; @@ -586,6 +568,7 @@ public java.lang.String getGlobalName() { * * * string global_name = 2; + * @return The bytes for globalName. */ public com.google.protobuf.ByteString getGlobalNameBytes() { @@ -618,6 +601,8 @@ public java.lang.String getGlobalName() { * * * string global_name = 2; + * @param value The globalName to set. + * @return This builder for chaining. */ public Builder setGlobalName( java.lang.String value) { @@ -647,6 +632,7 @@ public Builder setGlobalName( * * * string global_name = 2; + * @return This builder for chaining. */ public Builder clearGlobalName() { @@ -672,6 +658,8 @@ public Builder clearGlobalName() { * * * string global_name = 2; + * @param value The bytes for globalName to set. + * @return This builder for chaining. */ public Builder setGlobalNameBytes( com.google.protobuf.ByteString value) { @@ -701,12 +689,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.ThreadPoolOptionProto) - private static final org.tensorflow.proto.framework.ThreadPoolOptionProto DEFAULT_INSTANCE; + private static final org.tensorflow.proto.ThreadPoolOptionProto DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.ThreadPoolOptionProto(); + DEFAULT_INSTANCE = new org.tensorflow.proto.ThreadPoolOptionProto(); } - public static org.tensorflow.proto.framework.ThreadPoolOptionProto getDefaultInstance() { + public static org.tensorflow.proto.ThreadPoolOptionProto getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -717,7 +705,18 @@ public ThreadPoolOptionProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ThreadPoolOptionProto(input, extensionRegistry); + 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(); } }; @@ -731,7 +730,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.ThreadPoolOptionProto getDefaultInstanceForType() { + public org.tensorflow.proto.ThreadPoolOptionProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ThreadPoolOptionProtoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ThreadPoolOptionProtoOrBuilder.java similarity index 95% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ThreadPoolOptionProtoOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ThreadPoolOptionProtoOrBuilder.java index d1d3d837519..7d1e168a64f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ThreadPoolOptionProtoOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ThreadPoolOptionProtoOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/config.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface ThreadPoolOptionProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.ThreadPoolOptionProto) @@ -15,6 +15,7 @@ public interface ThreadPoolOptionProtoOrBuilder extends * * * int32 num_threads = 1; + * @return The numThreads. */ int getNumThreads(); @@ -36,6 +37,7 @@ public interface ThreadPoolOptionProtoOrBuilder extends * * * string global_name = 2; + * @return The globalName. */ java.lang.String getGlobalName(); /** @@ -56,6 +58,7 @@ public interface ThreadPoolOptionProtoOrBuilder extends * * * string global_name = 2; + * @return The bytes for globalName. */ com.google.protobuf.ByteString getGlobalNameBytes(); diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TrackableObjectGraphOuterClass.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TrackableObjectGraphOuterClass.java new file mode 100644 index 00000000000..ecc07ac2de0 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TrackableObjectGraphOuterClass.java @@ -0,0 +1,6559 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/trackable_object_graph.proto + +package org.tensorflow.proto; + +public final class TrackableObjectGraphOuterClass { + private TrackableObjectGraphOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface TrackableObjectGraphOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.TrackableObjectGraph) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + java.util.List + getNodesList(); + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject getNodes(int index); + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + int getNodesCount(); + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + java.util.List + getNodesOrBuilderList(); + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObjectOrBuilder getNodesOrBuilder( + int index); + } + /** + * Protobuf type {@code tensorflow.TrackableObjectGraph} + */ + public static final class TrackableObjectGraph extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.TrackableObjectGraph) + TrackableObjectGraphOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrackableObjectGraph.newBuilder() to construct. + private TrackableObjectGraph(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TrackableObjectGraph() { + nodes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TrackableObjectGraph(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.class, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.Builder.class); + } + + public interface TrackableObjectOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.TrackableObjectGraph.TrackableObject) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * Objects which this object depends on.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + java.util.List + getChildrenList(); + /** + *
+       * Objects which this object depends on.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference getChildren(int index); + /** + *
+       * Objects which this object depends on.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + int getChildrenCount(); + /** + *
+       * Objects which this object depends on.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + java.util.List + getChildrenOrBuilderList(); + /** + *
+       * Objects which this object depends on.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder getChildrenOrBuilder( + int index); + + /** + *
+       * Serialized data specific to this object.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + java.util.List + getAttributesList(); + /** + *
+       * Serialized data specific to this object.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor getAttributes(int index); + /** + *
+       * Serialized data specific to this object.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + int getAttributesCount(); + /** + *
+       * Serialized data specific to this object.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + java.util.List + getAttributesOrBuilderList(); + /** + *
+       * Serialized data specific to this object.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensorOrBuilder getAttributesOrBuilder( + int index); + + /** + *
+       * Slot variables owned by this object.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + java.util.List + getSlotVariablesList(); + /** + *
+       * Slot variables owned by this object.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference getSlotVariables(int index); + /** + *
+       * Slot variables owned by this object.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + int getSlotVariablesCount(); + /** + *
+       * Slot variables owned by this object.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + java.util.List + getSlotVariablesOrBuilderList(); + /** + *
+       * Slot variables owned by this object.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder getSlotVariablesOrBuilder( + int index); + + /** + *
+       * The registered saver used to save this object. If this saver is not
+       * present when loading the checkpoint, then loading will fail.
+       * 
+ * + * .tensorflow.RegisteredSaver registered_saver = 4; + * @return Whether the registeredSaver field is set. + */ + boolean hasRegisteredSaver(); + /** + *
+       * The registered saver used to save this object. If this saver is not
+       * present when loading the checkpoint, then loading will fail.
+       * 
+ * + * .tensorflow.RegisteredSaver registered_saver = 4; + * @return The registeredSaver. + */ + org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver getRegisteredSaver(); + /** + *
+       * The registered saver used to save this object. If this saver is not
+       * present when loading the checkpoint, then loading will fail.
+       * 
+ * + * .tensorflow.RegisteredSaver registered_saver = 4; + */ + org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaverOrBuilder getRegisteredSaverOrBuilder(); + + /** + *
+       * Whether this object has checkpoint values or descendants with checkpoint
+       * values. This is computed at save time to avoid traversing the entire
+       * object graph proto when restoring (which also has to traverse the live
+       * object graph).
+       * 
+ * + * .google.protobuf.BoolValue has_checkpoint_values = 5; + * @return Whether the hasCheckpointValues field is set. + */ + boolean hasHasCheckpointValues(); + /** + *
+       * Whether this object has checkpoint values or descendants with checkpoint
+       * values. This is computed at save time to avoid traversing the entire
+       * object graph proto when restoring (which also has to traverse the live
+       * object graph).
+       * 
+ * + * .google.protobuf.BoolValue has_checkpoint_values = 5; + * @return The hasCheckpointValues. + */ + com.google.protobuf.BoolValue getHasCheckpointValues(); + /** + *
+       * Whether this object has checkpoint values or descendants with checkpoint
+       * values. This is computed at save time to avoid traversing the entire
+       * object graph proto when restoring (which also has to traverse the live
+       * object graph).
+       * 
+ * + * .google.protobuf.BoolValue has_checkpoint_values = 5; + */ + com.google.protobuf.BoolValueOrBuilder getHasCheckpointValuesOrBuilder(); + } + /** + * Protobuf type {@code tensorflow.TrackableObjectGraph.TrackableObject} + */ + public static final class TrackableObject extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.TrackableObjectGraph.TrackableObject) + TrackableObjectOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrackableObject.newBuilder() to construct. + private TrackableObject(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TrackableObject() { + children_ = java.util.Collections.emptyList(); + attributes_ = java.util.Collections.emptyList(); + slotVariables_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TrackableObject(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.class, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.Builder.class); + } + + public interface ObjectReferenceOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * An index into `TrackableObjectGraph.nodes`, indicating the object
+         * being referenced.
+         * 
+ * + * int32 node_id = 1; + * @return The nodeId. + */ + int getNodeId(); + + /** + *
+         * A user-provided name for the edge.
+         * 
+ * + * string local_name = 2; + * @return The localName. + */ + java.lang.String getLocalName(); + /** + *
+         * A user-provided name for the edge.
+         * 
+ * + * string local_name = 2; + * @return The bytes for localName. + */ + com.google.protobuf.ByteString + getLocalNameBytes(); + } + /** + * Protobuf type {@code tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference} + */ + public static final class ObjectReference extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference) + ObjectReferenceOrBuilder { + private static final long serialVersionUID = 0L; + // Use ObjectReference.newBuilder() to construct. + private ObjectReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ObjectReference() { + localName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ObjectReference(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_ObjectReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_ObjectReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.class, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder.class); + } + + public static final int NODE_ID_FIELD_NUMBER = 1; + private int nodeId_; + /** + *
+         * An index into `TrackableObjectGraph.nodes`, indicating the object
+         * being referenced.
+         * 
+ * + * int32 node_id = 1; + * @return The nodeId. + */ + @java.lang.Override + public int getNodeId() { + return nodeId_; + } + + public static final int LOCAL_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object localName_; + /** + *
+         * A user-provided name for the edge.
+         * 
+ * + * string local_name = 2; + * @return The localName. + */ + @java.lang.Override + public java.lang.String getLocalName() { + java.lang.Object ref = localName_; + 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(); + localName_ = s; + return s; + } + } + /** + *
+         * A user-provided name for the edge.
+         * 
+ * + * string local_name = 2; + * @return The bytes for localName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLocalNameBytes() { + java.lang.Object ref = localName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + localName_ = 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 (nodeId_ != 0) { + output.writeInt32(1, nodeId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, localName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nodeId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, nodeId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, localName_); + } + 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference)) { + return super.equals(obj); + } + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference other = (org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference) obj; + + if (getNodeId() + != other.getNodeId()) return false; + if (!getLocalName() + .equals(other.getLocalName())) 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) + NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeId(); + hash = (37 * hash) + LOCAL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getLocalName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference 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(org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference) + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_ObjectReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_ObjectReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.class, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder.class); + } + + // Construct using org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + nodeId_ = 0; + + localName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_ObjectReference_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference getDefaultInstanceForType() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference build() { + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference buildPartial() { + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference result = new org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference(this); + result.nodeId_ = nodeId_; + result.localName_ = localName_; + 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference) { + return mergeFrom((org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference other) { + if (other == org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.getDefaultInstance()) return this; + if (other.getNodeId() != 0) { + setNodeId(other.getNodeId()); + } + if (!other.getLocalName().isEmpty()) { + localName_ = other.localName_; + 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 8: { + nodeId_ = input.readInt32(); + + break; + } // case 8 + case 18: { + localName_ = input.readStringRequireUtf8(); + + 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 nodeId_ ; + /** + *
+           * An index into `TrackableObjectGraph.nodes`, indicating the object
+           * being referenced.
+           * 
+ * + * int32 node_id = 1; + * @return The nodeId. + */ + @java.lang.Override + public int getNodeId() { + return nodeId_; + } + /** + *
+           * An index into `TrackableObjectGraph.nodes`, indicating the object
+           * being referenced.
+           * 
+ * + * int32 node_id = 1; + * @param value The nodeId to set. + * @return This builder for chaining. + */ + public Builder setNodeId(int value) { + + nodeId_ = value; + onChanged(); + return this; + } + /** + *
+           * An index into `TrackableObjectGraph.nodes`, indicating the object
+           * being referenced.
+           * 
+ * + * int32 node_id = 1; + * @return This builder for chaining. + */ + public Builder clearNodeId() { + + nodeId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object localName_ = ""; + /** + *
+           * A user-provided name for the edge.
+           * 
+ * + * string local_name = 2; + * @return The localName. + */ + public java.lang.String getLocalName() { + java.lang.Object ref = localName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + localName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+           * A user-provided name for the edge.
+           * 
+ * + * string local_name = 2; + * @return The bytes for localName. + */ + public com.google.protobuf.ByteString + getLocalNameBytes() { + java.lang.Object ref = localName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + localName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+           * A user-provided name for the edge.
+           * 
+ * + * string local_name = 2; + * @param value The localName to set. + * @return This builder for chaining. + */ + public Builder setLocalName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + localName_ = value; + onChanged(); + return this; + } + /** + *
+           * A user-provided name for the edge.
+           * 
+ * + * string local_name = 2; + * @return This builder for chaining. + */ + public Builder clearLocalName() { + + localName_ = getDefaultInstance().getLocalName(); + onChanged(); + return this; + } + /** + *
+           * A user-provided name for the edge.
+           * 
+ * + * string local_name = 2; + * @param value The bytes for localName to set. + * @return This builder for chaining. + */ + public Builder setLocalNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + localName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference) + } + + // @@protoc_insertion_point(class_scope:tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference) + private static final org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference(); + } + + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectReference 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SerializedTensorOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * A name for the Tensor. Simple variables have only one
+         * `SerializedTensor` named "VARIABLE_VALUE" by convention. This value may
+         * be restored on object creation as an optimization.
+         * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+         * A name for the Tensor. Simple variables have only one
+         * `SerializedTensor` named "VARIABLE_VALUE" by convention. This value may
+         * be restored on object creation as an optimization.
+         * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+         * The full name of the variable/tensor, if applicable. Used to allow
+         * name-based loading of checkpoints which were saved using an
+         * object-based API. Should match the checkpoint key which would have been
+         * assigned by tf.train.Saver.
+         * 
+ * + * string full_name = 2; + * @return The fullName. + */ + java.lang.String getFullName(); + /** + *
+         * The full name of the variable/tensor, if applicable. Used to allow
+         * name-based loading of checkpoints which were saved using an
+         * object-based API. Should match the checkpoint key which would have been
+         * assigned by tf.train.Saver.
+         * 
+ * + * string full_name = 2; + * @return The bytes for fullName. + */ + com.google.protobuf.ByteString + getFullNameBytes(); + + /** + *
+         * The generated name of the Tensor in the checkpoint.
+         * 
+ * + * string checkpoint_key = 3; + * @return The checkpointKey. + */ + java.lang.String getCheckpointKey(); + /** + *
+         * The generated name of the Tensor in the checkpoint.
+         * 
+ * + * string checkpoint_key = 3; + * @return The bytes for checkpointKey. + */ + com.google.protobuf.ByteString + getCheckpointKeyBytes(); + } + /** + * Protobuf type {@code tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor} + */ + public static final class SerializedTensor extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor) + SerializedTensorOrBuilder { + private static final long serialVersionUID = 0L; + // Use SerializedTensor.newBuilder() to construct. + private SerializedTensor(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SerializedTensor() { + name_ = ""; + fullName_ = ""; + checkpointKey_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SerializedTensor(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SerializedTensor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SerializedTensor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.class, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+         * A name for the Tensor. Simple variables have only one
+         * `SerializedTensor` named "VARIABLE_VALUE" by convention. This value may
+         * be restored on object creation as an optimization.
+         * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+         * A name for the Tensor. Simple variables have only one
+         * `SerializedTensor` named "VARIABLE_VALUE" by convention. This value may
+         * be restored on object creation as an optimization.
+         * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FULL_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object fullName_; + /** + *
+         * The full name of the variable/tensor, if applicable. Used to allow
+         * name-based loading of checkpoints which were saved using an
+         * object-based API. Should match the checkpoint key which would have been
+         * assigned by tf.train.Saver.
+         * 
+ * + * string full_name = 2; + * @return The fullName. + */ + @java.lang.Override + public java.lang.String getFullName() { + java.lang.Object ref = fullName_; + 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(); + fullName_ = s; + return s; + } + } + /** + *
+         * The full name of the variable/tensor, if applicable. Used to allow
+         * name-based loading of checkpoints which were saved using an
+         * object-based API. Should match the checkpoint key which would have been
+         * assigned by tf.train.Saver.
+         * 
+ * + * string full_name = 2; + * @return The bytes for fullName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFullNameBytes() { + java.lang.Object ref = fullName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fullName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHECKPOINT_KEY_FIELD_NUMBER = 3; + private volatile java.lang.Object checkpointKey_; + /** + *
+         * The generated name of the Tensor in the checkpoint.
+         * 
+ * + * string checkpoint_key = 3; + * @return The checkpointKey. + */ + @java.lang.Override + public java.lang.String getCheckpointKey() { + java.lang.Object ref = checkpointKey_; + 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(); + checkpointKey_ = s; + return s; + } + } + /** + *
+         * The generated name of the Tensor in the checkpoint.
+         * 
+ * + * string checkpoint_key = 3; + * @return The bytes for checkpointKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCheckpointKeyBytes() { + java.lang.Object ref = checkpointKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + checkpointKey_ = 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fullName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(checkpointKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, checkpointKey_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fullName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(checkpointKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, checkpointKey_); + } + 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor)) { + return super.equals(obj); + } + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor other = (org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getFullName() + .equals(other.getFullName())) return false; + if (!getCheckpointKey() + .equals(other.getCheckpointKey())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FULL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFullName().hashCode(); + hash = (37 * hash) + CHECKPOINT_KEY_FIELD_NUMBER; + hash = (53 * hash) + getCheckpointKey().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor 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(org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor) + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SerializedTensor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SerializedTensor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.class, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.Builder.class); + } + + // Construct using org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + fullName_ = ""; + + checkpointKey_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SerializedTensor_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor getDefaultInstanceForType() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor build() { + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor buildPartial() { + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor result = new org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor(this); + result.name_ = name_; + result.fullName_ = fullName_; + result.checkpointKey_ = checkpointKey_; + 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor) { + return mergeFrom((org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor other) { + if (other == org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getFullName().isEmpty()) { + fullName_ = other.fullName_; + onChanged(); + } + if (!other.getCheckpointKey().isEmpty()) { + checkpointKey_ = other.checkpointKey_; + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + fullName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + checkpointKey_ = input.readStringRequireUtf8(); + + break; + } // case 26 + 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 java.lang.Object name_ = ""; + /** + *
+           * A name for the Tensor. Simple variables have only one
+           * `SerializedTensor` named "VARIABLE_VALUE" by convention. This value may
+           * be restored on object creation as an optimization.
+           * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+           * A name for the Tensor. Simple variables have only one
+           * `SerializedTensor` named "VARIABLE_VALUE" by convention. This value may
+           * be restored on object creation as an optimization.
+           * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+           * A name for the Tensor. Simple variables have only one
+           * `SerializedTensor` named "VARIABLE_VALUE" by convention. This value may
+           * be restored on object creation as an optimization.
+           * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+           * A name for the Tensor. Simple variables have only one
+           * `SerializedTensor` named "VARIABLE_VALUE" by convention. This value may
+           * be restored on object creation as an optimization.
+           * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+           * A name for the Tensor. Simple variables have only one
+           * `SerializedTensor` named "VARIABLE_VALUE" by convention. This value may
+           * be restored on object creation as an optimization.
+           * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object fullName_ = ""; + /** + *
+           * The full name of the variable/tensor, if applicable. Used to allow
+           * name-based loading of checkpoints which were saved using an
+           * object-based API. Should match the checkpoint key which would have been
+           * assigned by tf.train.Saver.
+           * 
+ * + * string full_name = 2; + * @return The fullName. + */ + public java.lang.String getFullName() { + java.lang.Object ref = fullName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fullName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+           * The full name of the variable/tensor, if applicable. Used to allow
+           * name-based loading of checkpoints which were saved using an
+           * object-based API. Should match the checkpoint key which would have been
+           * assigned by tf.train.Saver.
+           * 
+ * + * string full_name = 2; + * @return The bytes for fullName. + */ + public com.google.protobuf.ByteString + getFullNameBytes() { + java.lang.Object ref = fullName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fullName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+           * The full name of the variable/tensor, if applicable. Used to allow
+           * name-based loading of checkpoints which were saved using an
+           * object-based API. Should match the checkpoint key which would have been
+           * assigned by tf.train.Saver.
+           * 
+ * + * string full_name = 2; + * @param value The fullName to set. + * @return This builder for chaining. + */ + public Builder setFullName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fullName_ = value; + onChanged(); + return this; + } + /** + *
+           * The full name of the variable/tensor, if applicable. Used to allow
+           * name-based loading of checkpoints which were saved using an
+           * object-based API. Should match the checkpoint key which would have been
+           * assigned by tf.train.Saver.
+           * 
+ * + * string full_name = 2; + * @return This builder for chaining. + */ + public Builder clearFullName() { + + fullName_ = getDefaultInstance().getFullName(); + onChanged(); + return this; + } + /** + *
+           * The full name of the variable/tensor, if applicable. Used to allow
+           * name-based loading of checkpoints which were saved using an
+           * object-based API. Should match the checkpoint key which would have been
+           * assigned by tf.train.Saver.
+           * 
+ * + * string full_name = 2; + * @param value The bytes for fullName to set. + * @return This builder for chaining. + */ + public Builder setFullNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fullName_ = value; + onChanged(); + return this; + } + + private java.lang.Object checkpointKey_ = ""; + /** + *
+           * The generated name of the Tensor in the checkpoint.
+           * 
+ * + * string checkpoint_key = 3; + * @return The checkpointKey. + */ + public java.lang.String getCheckpointKey() { + java.lang.Object ref = checkpointKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + checkpointKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+           * The generated name of the Tensor in the checkpoint.
+           * 
+ * + * string checkpoint_key = 3; + * @return The bytes for checkpointKey. + */ + public com.google.protobuf.ByteString + getCheckpointKeyBytes() { + java.lang.Object ref = checkpointKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + checkpointKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+           * The generated name of the Tensor in the checkpoint.
+           * 
+ * + * string checkpoint_key = 3; + * @param value The checkpointKey to set. + * @return This builder for chaining. + */ + public Builder setCheckpointKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + checkpointKey_ = value; + onChanged(); + return this; + } + /** + *
+           * The generated name of the Tensor in the checkpoint.
+           * 
+ * + * string checkpoint_key = 3; + * @return This builder for chaining. + */ + public Builder clearCheckpointKey() { + + checkpointKey_ = getDefaultInstance().getCheckpointKey(); + onChanged(); + return this; + } + /** + *
+           * The generated name of the Tensor in the checkpoint.
+           * 
+ * + * string checkpoint_key = 3; + * @param value The bytes for checkpointKey to set. + * @return This builder for chaining. + */ + public Builder setCheckpointKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + checkpointKey_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor) + } + + // @@protoc_insertion_point(class_scope:tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor) + private static final org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor(); + } + + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SerializedTensor 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SlotVariableReferenceOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * An index into `TrackableObjectGraph.nodes`, indicating the
+         * variable object this slot was created for.
+         * 
+ * + * int32 original_variable_node_id = 1; + * @return The originalVariableNodeId. + */ + int getOriginalVariableNodeId(); + + /** + *
+         * The name of the slot (e.g. "m"/"v").
+         * 
+ * + * string slot_name = 2; + * @return The slotName. + */ + java.lang.String getSlotName(); + /** + *
+         * The name of the slot (e.g. "m"/"v").
+         * 
+ * + * string slot_name = 2; + * @return The bytes for slotName. + */ + com.google.protobuf.ByteString + getSlotNameBytes(); + + /** + *
+         * An index into `TrackableObjectGraph.nodes`, indicating the
+         * `Object` with the value of the slot variable.
+         * 
+ * + * int32 slot_variable_node_id = 3; + * @return The slotVariableNodeId. + */ + int getSlotVariableNodeId(); + } + /** + * Protobuf type {@code tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference} + */ + public static final class SlotVariableReference extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference) + SlotVariableReferenceOrBuilder { + private static final long serialVersionUID = 0L; + // Use SlotVariableReference.newBuilder() to construct. + private SlotVariableReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SlotVariableReference() { + slotName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SlotVariableReference(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SlotVariableReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SlotVariableReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.class, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder.class); + } + + public static final int ORIGINAL_VARIABLE_NODE_ID_FIELD_NUMBER = 1; + private int originalVariableNodeId_; + /** + *
+         * An index into `TrackableObjectGraph.nodes`, indicating the
+         * variable object this slot was created for.
+         * 
+ * + * int32 original_variable_node_id = 1; + * @return The originalVariableNodeId. + */ + @java.lang.Override + public int getOriginalVariableNodeId() { + return originalVariableNodeId_; + } + + public static final int SLOT_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object slotName_; + /** + *
+         * The name of the slot (e.g. "m"/"v").
+         * 
+ * + * string slot_name = 2; + * @return The slotName. + */ + @java.lang.Override + public java.lang.String getSlotName() { + java.lang.Object ref = slotName_; + 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(); + slotName_ = s; + return s; + } + } + /** + *
+         * The name of the slot (e.g. "m"/"v").
+         * 
+ * + * string slot_name = 2; + * @return The bytes for slotName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSlotNameBytes() { + java.lang.Object ref = slotName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + slotName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SLOT_VARIABLE_NODE_ID_FIELD_NUMBER = 3; + private int slotVariableNodeId_; + /** + *
+         * An index into `TrackableObjectGraph.nodes`, indicating the
+         * `Object` with the value of the slot variable.
+         * 
+ * + * int32 slot_variable_node_id = 3; + * @return The slotVariableNodeId. + */ + @java.lang.Override + public int getSlotVariableNodeId() { + return slotVariableNodeId_; + } + + 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 (originalVariableNodeId_ != 0) { + output.writeInt32(1, originalVariableNodeId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(slotName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, slotName_); + } + if (slotVariableNodeId_ != 0) { + output.writeInt32(3, slotVariableNodeId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (originalVariableNodeId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, originalVariableNodeId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(slotName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, slotName_); + } + if (slotVariableNodeId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, slotVariableNodeId_); + } + 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference)) { + return super.equals(obj); + } + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference other = (org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference) obj; + + if (getOriginalVariableNodeId() + != other.getOriginalVariableNodeId()) return false; + if (!getSlotName() + .equals(other.getSlotName())) return false; + if (getSlotVariableNodeId() + != other.getSlotVariableNodeId()) 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) + ORIGINAL_VARIABLE_NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getOriginalVariableNodeId(); + hash = (37 * hash) + SLOT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSlotName().hashCode(); + hash = (37 * hash) + SLOT_VARIABLE_NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getSlotVariableNodeId(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference 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(org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference) + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SlotVariableReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SlotVariableReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.class, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder.class); + } + + // Construct using org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + originalVariableNodeId_ = 0; + + slotName_ = ""; + + slotVariableNodeId_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SlotVariableReference_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference getDefaultInstanceForType() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference build() { + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference buildPartial() { + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference result = new org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference(this); + result.originalVariableNodeId_ = originalVariableNodeId_; + result.slotName_ = slotName_; + result.slotVariableNodeId_ = slotVariableNodeId_; + 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference) { + return mergeFrom((org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference other) { + if (other == org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.getDefaultInstance()) return this; + if (other.getOriginalVariableNodeId() != 0) { + setOriginalVariableNodeId(other.getOriginalVariableNodeId()); + } + if (!other.getSlotName().isEmpty()) { + slotName_ = other.slotName_; + onChanged(); + } + if (other.getSlotVariableNodeId() != 0) { + setSlotVariableNodeId(other.getSlotVariableNodeId()); + } + 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: { + originalVariableNodeId_ = input.readInt32(); + + break; + } // case 8 + case 18: { + slotName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + slotVariableNodeId_ = input.readInt32(); + + break; + } // case 24 + 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 originalVariableNodeId_ ; + /** + *
+           * An index into `TrackableObjectGraph.nodes`, indicating the
+           * variable object this slot was created for.
+           * 
+ * + * int32 original_variable_node_id = 1; + * @return The originalVariableNodeId. + */ + @java.lang.Override + public int getOriginalVariableNodeId() { + return originalVariableNodeId_; + } + /** + *
+           * An index into `TrackableObjectGraph.nodes`, indicating the
+           * variable object this slot was created for.
+           * 
+ * + * int32 original_variable_node_id = 1; + * @param value The originalVariableNodeId to set. + * @return This builder for chaining. + */ + public Builder setOriginalVariableNodeId(int value) { + + originalVariableNodeId_ = value; + onChanged(); + return this; + } + /** + *
+           * An index into `TrackableObjectGraph.nodes`, indicating the
+           * variable object this slot was created for.
+           * 
+ * + * int32 original_variable_node_id = 1; + * @return This builder for chaining. + */ + public Builder clearOriginalVariableNodeId() { + + originalVariableNodeId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object slotName_ = ""; + /** + *
+           * The name of the slot (e.g. "m"/"v").
+           * 
+ * + * string slot_name = 2; + * @return The slotName. + */ + public java.lang.String getSlotName() { + java.lang.Object ref = slotName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + slotName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+           * The name of the slot (e.g. "m"/"v").
+           * 
+ * + * string slot_name = 2; + * @return The bytes for slotName. + */ + public com.google.protobuf.ByteString + getSlotNameBytes() { + java.lang.Object ref = slotName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + slotName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+           * The name of the slot (e.g. "m"/"v").
+           * 
+ * + * string slot_name = 2; + * @param value The slotName to set. + * @return This builder for chaining. + */ + public Builder setSlotName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + slotName_ = value; + onChanged(); + return this; + } + /** + *
+           * The name of the slot (e.g. "m"/"v").
+           * 
+ * + * string slot_name = 2; + * @return This builder for chaining. + */ + public Builder clearSlotName() { + + slotName_ = getDefaultInstance().getSlotName(); + onChanged(); + return this; + } + /** + *
+           * The name of the slot (e.g. "m"/"v").
+           * 
+ * + * string slot_name = 2; + * @param value The bytes for slotName to set. + * @return This builder for chaining. + */ + public Builder setSlotNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + slotName_ = value; + onChanged(); + return this; + } + + private int slotVariableNodeId_ ; + /** + *
+           * An index into `TrackableObjectGraph.nodes`, indicating the
+           * `Object` with the value of the slot variable.
+           * 
+ * + * int32 slot_variable_node_id = 3; + * @return The slotVariableNodeId. + */ + @java.lang.Override + public int getSlotVariableNodeId() { + return slotVariableNodeId_; + } + /** + *
+           * An index into `TrackableObjectGraph.nodes`, indicating the
+           * `Object` with the value of the slot variable.
+           * 
+ * + * int32 slot_variable_node_id = 3; + * @param value The slotVariableNodeId to set. + * @return This builder for chaining. + */ + public Builder setSlotVariableNodeId(int value) { + + slotVariableNodeId_ = value; + onChanged(); + return this; + } + /** + *
+           * An index into `TrackableObjectGraph.nodes`, indicating the
+           * `Object` with the value of the slot variable.
+           * 
+ * + * int32 slot_variable_node_id = 3; + * @return This builder for chaining. + */ + public Builder clearSlotVariableNodeId() { + + slotVariableNodeId_ = 0; + 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:tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference) + } + + // @@protoc_insertion_point(class_scope:tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference) + private static final org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference(); + } + + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SlotVariableReference 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int CHILDREN_FIELD_NUMBER = 1; + private java.util.List children_; + /** + *
+       * Objects which this object depends on.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + @java.lang.Override + public java.util.List getChildrenList() { + return children_; + } + /** + *
+       * Objects which this object depends on.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + @java.lang.Override + public java.util.List + getChildrenOrBuilderList() { + return children_; + } + /** + *
+       * Objects which this object depends on.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + @java.lang.Override + public int getChildrenCount() { + return children_.size(); + } + /** + *
+       * Objects which this object depends on.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference getChildren(int index) { + return children_.get(index); + } + /** + *
+       * Objects which this object depends on.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder getChildrenOrBuilder( + int index) { + return children_.get(index); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 2; + private java.util.List attributes_; + /** + *
+       * Serialized data specific to this object.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + @java.lang.Override + public java.util.List getAttributesList() { + return attributes_; + } + /** + *
+       * Serialized data specific to this object.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + @java.lang.Override + public java.util.List + getAttributesOrBuilderList() { + return attributes_; + } + /** + *
+       * Serialized data specific to this object.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + @java.lang.Override + public int getAttributesCount() { + return attributes_.size(); + } + /** + *
+       * Serialized data specific to this object.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor getAttributes(int index) { + return attributes_.get(index); + } + /** + *
+       * Serialized data specific to this object.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensorOrBuilder getAttributesOrBuilder( + int index) { + return attributes_.get(index); + } + + public static final int SLOT_VARIABLES_FIELD_NUMBER = 3; + private java.util.List slotVariables_; + /** + *
+       * Slot variables owned by this object.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + @java.lang.Override + public java.util.List getSlotVariablesList() { + return slotVariables_; + } + /** + *
+       * Slot variables owned by this object.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + @java.lang.Override + public java.util.List + getSlotVariablesOrBuilderList() { + return slotVariables_; + } + /** + *
+       * Slot variables owned by this object.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + @java.lang.Override + public int getSlotVariablesCount() { + return slotVariables_.size(); + } + /** + *
+       * Slot variables owned by this object.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference getSlotVariables(int index) { + return slotVariables_.get(index); + } + /** + *
+       * Slot variables owned by this object.
+       * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder getSlotVariablesOrBuilder( + int index) { + return slotVariables_.get(index); + } + + public static final int REGISTERED_SAVER_FIELD_NUMBER = 4; + private org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver registeredSaver_; + /** + *
+       * The registered saver used to save this object. If this saver is not
+       * present when loading the checkpoint, then loading will fail.
+       * 
+ * + * .tensorflow.RegisteredSaver registered_saver = 4; + * @return Whether the registeredSaver field is set. + */ + @java.lang.Override + public boolean hasRegisteredSaver() { + return registeredSaver_ != null; + } + /** + *
+       * The registered saver used to save this object. If this saver is not
+       * present when loading the checkpoint, then loading will fail.
+       * 
+ * + * .tensorflow.RegisteredSaver registered_saver = 4; + * @return The registeredSaver. + */ + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver getRegisteredSaver() { + return registeredSaver_ == null ? org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver.getDefaultInstance() : registeredSaver_; + } + /** + *
+       * The registered saver used to save this object. If this saver is not
+       * present when loading the checkpoint, then loading will fail.
+       * 
+ * + * .tensorflow.RegisteredSaver registered_saver = 4; + */ + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaverOrBuilder getRegisteredSaverOrBuilder() { + return getRegisteredSaver(); + } + + public static final int HAS_CHECKPOINT_VALUES_FIELD_NUMBER = 5; + private com.google.protobuf.BoolValue hasCheckpointValues_; + /** + *
+       * Whether this object has checkpoint values or descendants with checkpoint
+       * values. This is computed at save time to avoid traversing the entire
+       * object graph proto when restoring (which also has to traverse the live
+       * object graph).
+       * 
+ * + * .google.protobuf.BoolValue has_checkpoint_values = 5; + * @return Whether the hasCheckpointValues field is set. + */ + @java.lang.Override + public boolean hasHasCheckpointValues() { + return hasCheckpointValues_ != null; + } + /** + *
+       * Whether this object has checkpoint values or descendants with checkpoint
+       * values. This is computed at save time to avoid traversing the entire
+       * object graph proto when restoring (which also has to traverse the live
+       * object graph).
+       * 
+ * + * .google.protobuf.BoolValue has_checkpoint_values = 5; + * @return The hasCheckpointValues. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getHasCheckpointValues() { + return hasCheckpointValues_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : hasCheckpointValues_; + } + /** + *
+       * Whether this object has checkpoint values or descendants with checkpoint
+       * values. This is computed at save time to avoid traversing the entire
+       * object graph proto when restoring (which also has to traverse the live
+       * object graph).
+       * 
+ * + * .google.protobuf.BoolValue has_checkpoint_values = 5; + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getHasCheckpointValuesOrBuilder() { + return getHasCheckpointValues(); + } + + 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 < children_.size(); i++) { + output.writeMessage(1, children_.get(i)); + } + for (int i = 0; i < attributes_.size(); i++) { + output.writeMessage(2, attributes_.get(i)); + } + for (int i = 0; i < slotVariables_.size(); i++) { + output.writeMessage(3, slotVariables_.get(i)); + } + if (registeredSaver_ != null) { + output.writeMessage(4, getRegisteredSaver()); + } + if (hasCheckpointValues_ != null) { + output.writeMessage(5, getHasCheckpointValues()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < children_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, children_.get(i)); + } + for (int i = 0; i < attributes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, attributes_.get(i)); + } + for (int i = 0; i < slotVariables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, slotVariables_.get(i)); + } + if (registeredSaver_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getRegisteredSaver()); + } + if (hasCheckpointValues_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getHasCheckpointValues()); + } + 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject)) { + return super.equals(obj); + } + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject other = (org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject) obj; + + if (!getChildrenList() + .equals(other.getChildrenList())) return false; + if (!getAttributesList() + .equals(other.getAttributesList())) return false; + if (!getSlotVariablesList() + .equals(other.getSlotVariablesList())) return false; + if (hasRegisteredSaver() != other.hasRegisteredSaver()) return false; + if (hasRegisteredSaver()) { + if (!getRegisteredSaver() + .equals(other.getRegisteredSaver())) return false; + } + if (hasHasCheckpointValues() != other.hasHasCheckpointValues()) return false; + if (hasHasCheckpointValues()) { + if (!getHasCheckpointValues() + .equals(other.getHasCheckpointValues())) 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 (getChildrenCount() > 0) { + hash = (37 * hash) + CHILDREN_FIELD_NUMBER; + hash = (53 * hash) + getChildrenList().hashCode(); + } + if (getAttributesCount() > 0) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributesList().hashCode(); + } + if (getSlotVariablesCount() > 0) { + hash = (37 * hash) + SLOT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getSlotVariablesList().hashCode(); + } + if (hasRegisteredSaver()) { + hash = (37 * hash) + REGISTERED_SAVER_FIELD_NUMBER; + hash = (53 * hash) + getRegisteredSaver().hashCode(); + } + if (hasHasCheckpointValues()) { + hash = (37 * hash) + HAS_CHECKPOINT_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getHasCheckpointValues().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject 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(org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.TrackableObjectGraph.TrackableObject} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.TrackableObjectGraph.TrackableObject) + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObjectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.class, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.Builder.class); + } + + // Construct using org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (childrenBuilder_ == null) { + children_ = java.util.Collections.emptyList(); + } else { + children_ = null; + childrenBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (attributesBuilder_ == null) { + attributes_ = java.util.Collections.emptyList(); + } else { + attributes_ = null; + attributesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (slotVariablesBuilder_ == null) { + slotVariables_ = java.util.Collections.emptyList(); + } else { + slotVariables_ = null; + slotVariablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (registeredSaverBuilder_ == null) { + registeredSaver_ = null; + } else { + registeredSaver_ = null; + registeredSaverBuilder_ = null; + } + if (hasCheckpointValuesBuilder_ == null) { + hasCheckpointValues_ = null; + } else { + hasCheckpointValues_ = null; + hasCheckpointValuesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_TrackableObject_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject getDefaultInstanceForType() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject build() { + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject buildPartial() { + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject result = new org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject(this); + int from_bitField0_ = bitField0_; + if (childrenBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + children_ = java.util.Collections.unmodifiableList(children_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.children_ = children_; + } else { + result.children_ = childrenBuilder_.build(); + } + if (attributesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + attributes_ = java.util.Collections.unmodifiableList(attributes_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.build(); + } + if (slotVariablesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + slotVariables_ = java.util.Collections.unmodifiableList(slotVariables_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.slotVariables_ = slotVariables_; + } else { + result.slotVariables_ = slotVariablesBuilder_.build(); + } + if (registeredSaverBuilder_ == null) { + result.registeredSaver_ = registeredSaver_; + } else { + result.registeredSaver_ = registeredSaverBuilder_.build(); + } + if (hasCheckpointValuesBuilder_ == null) { + result.hasCheckpointValues_ = hasCheckpointValues_; + } else { + result.hasCheckpointValues_ = hasCheckpointValuesBuilder_.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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject) { + return mergeFrom((org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject other) { + if (other == org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.getDefaultInstance()) return this; + if (childrenBuilder_ == null) { + if (!other.children_.isEmpty()) { + if (children_.isEmpty()) { + children_ = other.children_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureChildrenIsMutable(); + children_.addAll(other.children_); + } + onChanged(); + } + } else { + if (!other.children_.isEmpty()) { + if (childrenBuilder_.isEmpty()) { + childrenBuilder_.dispose(); + childrenBuilder_ = null; + children_ = other.children_; + bitField0_ = (bitField0_ & ~0x00000001); + childrenBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getChildrenFieldBuilder() : null; + } else { + childrenBuilder_.addAllMessages(other.children_); + } + } + } + if (attributesBuilder_ == null) { + if (!other.attributes_.isEmpty()) { + if (attributes_.isEmpty()) { + attributes_ = other.attributes_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAttributesIsMutable(); + attributes_.addAll(other.attributes_); + } + onChanged(); + } + } else { + if (!other.attributes_.isEmpty()) { + if (attributesBuilder_.isEmpty()) { + attributesBuilder_.dispose(); + attributesBuilder_ = null; + attributes_ = other.attributes_; + bitField0_ = (bitField0_ & ~0x00000002); + attributesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAttributesFieldBuilder() : null; + } else { + attributesBuilder_.addAllMessages(other.attributes_); + } + } + } + if (slotVariablesBuilder_ == null) { + if (!other.slotVariables_.isEmpty()) { + if (slotVariables_.isEmpty()) { + slotVariables_ = other.slotVariables_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSlotVariablesIsMutable(); + slotVariables_.addAll(other.slotVariables_); + } + onChanged(); + } + } else { + if (!other.slotVariables_.isEmpty()) { + if (slotVariablesBuilder_.isEmpty()) { + slotVariablesBuilder_.dispose(); + slotVariablesBuilder_ = null; + slotVariables_ = other.slotVariables_; + bitField0_ = (bitField0_ & ~0x00000004); + slotVariablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSlotVariablesFieldBuilder() : null; + } else { + slotVariablesBuilder_.addAllMessages(other.slotVariables_); + } + } + } + if (other.hasRegisteredSaver()) { + mergeRegisteredSaver(other.getRegisteredSaver()); + } + if (other.hasHasCheckpointValues()) { + mergeHasCheckpointValues(other.getHasCheckpointValues()); + } + 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: { + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference m = + input.readMessage( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.parser(), + extensionRegistry); + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.add(m); + } else { + childrenBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor m = + input.readMessage( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.parser(), + extensionRegistry); + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.add(m); + } else { + attributesBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference m = + input.readMessage( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.parser(), + extensionRegistry); + if (slotVariablesBuilder_ == null) { + ensureSlotVariablesIsMutable(); + slotVariables_.add(m); + } else { + slotVariablesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + input.readMessage( + getRegisteredSaverFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + input.readMessage( + getHasCheckpointValuesFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List children_ = + java.util.Collections.emptyList(); + private void ensureChildrenIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + children_ = new java.util.ArrayList(children_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder> childrenBuilder_; + + /** + *
+         * Objects which this object depends on.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public java.util.List getChildrenList() { + if (childrenBuilder_ == null) { + return java.util.Collections.unmodifiableList(children_); + } else { + return childrenBuilder_.getMessageList(); + } + } + /** + *
+         * Objects which this object depends on.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public int getChildrenCount() { + if (childrenBuilder_ == null) { + return children_.size(); + } else { + return childrenBuilder_.getCount(); + } + } + /** + *
+         * Objects which this object depends on.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference getChildren(int index) { + if (childrenBuilder_ == null) { + return children_.get(index); + } else { + return childrenBuilder_.getMessage(index); + } + } + /** + *
+         * Objects which this object depends on.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public Builder setChildren( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference value) { + if (childrenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChildrenIsMutable(); + children_.set(index, value); + onChanged(); + } else { + childrenBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+         * Objects which this object depends on.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public Builder setChildren( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder builderForValue) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.set(index, builderForValue.build()); + onChanged(); + } else { + childrenBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         * Objects which this object depends on.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public Builder addChildren(org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference value) { + if (childrenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChildrenIsMutable(); + children_.add(value); + onChanged(); + } else { + childrenBuilder_.addMessage(value); + } + return this; + } + /** + *
+         * Objects which this object depends on.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public Builder addChildren( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference value) { + if (childrenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChildrenIsMutable(); + children_.add(index, value); + onChanged(); + } else { + childrenBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+         * Objects which this object depends on.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public Builder addChildren( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder builderForValue) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.add(builderForValue.build()); + onChanged(); + } else { + childrenBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+         * Objects which this object depends on.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public Builder addChildren( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder builderForValue) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.add(index, builderForValue.build()); + onChanged(); + } else { + childrenBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         * Objects which this object depends on.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public Builder addAllChildren( + java.lang.Iterable values) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, children_); + onChanged(); + } else { + childrenBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+         * Objects which this object depends on.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public Builder clearChildren() { + if (childrenBuilder_ == null) { + children_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + childrenBuilder_.clear(); + } + return this; + } + /** + *
+         * Objects which this object depends on.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public Builder removeChildren(int index) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.remove(index); + onChanged(); + } else { + childrenBuilder_.remove(index); + } + return this; + } + /** + *
+         * Objects which this object depends on.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder getChildrenBuilder( + int index) { + return getChildrenFieldBuilder().getBuilder(index); + } + /** + *
+         * Objects which this object depends on.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder getChildrenOrBuilder( + int index) { + if (childrenBuilder_ == null) { + return children_.get(index); } else { + return childrenBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+         * Objects which this object depends on.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public java.util.List + getChildrenOrBuilderList() { + if (childrenBuilder_ != null) { + return childrenBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(children_); + } + } + /** + *
+         * Objects which this object depends on.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder addChildrenBuilder() { + return getChildrenFieldBuilder().addBuilder( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.getDefaultInstance()); + } + /** + *
+         * Objects which this object depends on.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder addChildrenBuilder( + int index) { + return getChildrenFieldBuilder().addBuilder( + index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.getDefaultInstance()); + } + /** + *
+         * Objects which this object depends on.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; + */ + public java.util.List + getChildrenBuilderList() { + return getChildrenFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder> + getChildrenFieldBuilder() { + if (childrenBuilder_ == null) { + childrenBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReference.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.ObjectReferenceOrBuilder>( + children_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + children_ = null; + } + return childrenBuilder_; + } + + private java.util.List attributes_ = + java.util.Collections.emptyList(); + private void ensureAttributesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + attributes_ = new java.util.ArrayList(attributes_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensorOrBuilder> attributesBuilder_; + + /** + *
+         * Serialized data specific to this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + public java.util.List getAttributesList() { + if (attributesBuilder_ == null) { + return java.util.Collections.unmodifiableList(attributes_); + } else { + return attributesBuilder_.getMessageList(); + } + } + /** + *
+         * Serialized data specific to this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + public int getAttributesCount() { + if (attributesBuilder_ == null) { + return attributes_.size(); + } else { + return attributesBuilder_.getCount(); + } + } + /** + *
+         * Serialized data specific to this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor getAttributes(int index) { + if (attributesBuilder_ == null) { + return attributes_.get(index); + } else { + return attributesBuilder_.getMessage(index); + } + } + /** + *
+         * Serialized data specific to this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + public Builder setAttributes( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributesIsMutable(); + attributes_.set(index, value); + onChanged(); + } else { + attributesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+         * Serialized data specific to this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + public Builder setAttributes( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.Builder builderForValue) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.set(index, builderForValue.build()); + onChanged(); + } else { + attributesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         * Serialized data specific to this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + public Builder addAttributes(org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributesIsMutable(); + attributes_.add(value); + onChanged(); + } else { + attributesBuilder_.addMessage(value); + } + return this; + } + /** + *
+         * Serialized data specific to this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + public Builder addAttributes( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributesIsMutable(); + attributes_.add(index, value); + onChanged(); + } else { + attributesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+         * Serialized data specific to this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + public Builder addAttributes( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.Builder builderForValue) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.add(builderForValue.build()); + onChanged(); + } else { + attributesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+         * Serialized data specific to this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + public Builder addAttributes( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.Builder builderForValue) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.add(index, builderForValue.build()); + onChanged(); + } else { + attributesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         * Serialized data specific to this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + public Builder addAllAttributes( + java.lang.Iterable values) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, attributes_); + onChanged(); + } else { + attributesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+         * Serialized data specific to this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + public Builder clearAttributes() { + if (attributesBuilder_ == null) { + attributes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + attributesBuilder_.clear(); + } + return this; + } + /** + *
+         * Serialized data specific to this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + public Builder removeAttributes(int index) { + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.remove(index); + onChanged(); + } else { + attributesBuilder_.remove(index); + } + return this; + } + /** + *
+         * Serialized data specific to this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.Builder getAttributesBuilder( + int index) { + return getAttributesFieldBuilder().getBuilder(index); + } + /** + *
+         * Serialized data specific to this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensorOrBuilder getAttributesOrBuilder( + int index) { + if (attributesBuilder_ == null) { + return attributes_.get(index); } else { + return attributesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+         * Serialized data specific to this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + public java.util.List + getAttributesOrBuilderList() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(attributes_); + } + } + /** + *
+         * Serialized data specific to this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.Builder addAttributesBuilder() { + return getAttributesFieldBuilder().addBuilder( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.getDefaultInstance()); + } + /** + *
+         * Serialized data specific to this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.Builder addAttributesBuilder( + int index) { + return getAttributesFieldBuilder().addBuilder( + index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.getDefaultInstance()); + } + /** + *
+         * Serialized data specific to this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SerializedTensor attributes = 2; + */ + public java.util.List + getAttributesBuilderList() { + return getAttributesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensorOrBuilder> + getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensor.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SerializedTensorOrBuilder>( + attributes_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + + private java.util.List slotVariables_ = + java.util.Collections.emptyList(); + private void ensureSlotVariablesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + slotVariables_ = new java.util.ArrayList(slotVariables_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder> slotVariablesBuilder_; + + /** + *
+         * Slot variables owned by this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public java.util.List getSlotVariablesList() { + if (slotVariablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(slotVariables_); + } else { + return slotVariablesBuilder_.getMessageList(); + } + } + /** + *
+         * Slot variables owned by this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public int getSlotVariablesCount() { + if (slotVariablesBuilder_ == null) { + return slotVariables_.size(); + } else { + return slotVariablesBuilder_.getCount(); + } + } + /** + *
+         * Slot variables owned by this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference getSlotVariables(int index) { + if (slotVariablesBuilder_ == null) { + return slotVariables_.get(index); + } else { + return slotVariablesBuilder_.getMessage(index); + } + } + /** + *
+         * Slot variables owned by this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public Builder setSlotVariables( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference value) { + if (slotVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSlotVariablesIsMutable(); + slotVariables_.set(index, value); + onChanged(); + } else { + slotVariablesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+         * Slot variables owned by this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public Builder setSlotVariables( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder builderForValue) { + if (slotVariablesBuilder_ == null) { + ensureSlotVariablesIsMutable(); + slotVariables_.set(index, builderForValue.build()); + onChanged(); + } else { + slotVariablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         * Slot variables owned by this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public Builder addSlotVariables(org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference value) { + if (slotVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSlotVariablesIsMutable(); + slotVariables_.add(value); + onChanged(); + } else { + slotVariablesBuilder_.addMessage(value); + } + return this; + } + /** + *
+         * Slot variables owned by this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public Builder addSlotVariables( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference value) { + if (slotVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSlotVariablesIsMutable(); + slotVariables_.add(index, value); + onChanged(); + } else { + slotVariablesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+         * Slot variables owned by this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public Builder addSlotVariables( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder builderForValue) { + if (slotVariablesBuilder_ == null) { + ensureSlotVariablesIsMutable(); + slotVariables_.add(builderForValue.build()); + onChanged(); + } else { + slotVariablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+         * Slot variables owned by this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public Builder addSlotVariables( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder builderForValue) { + if (slotVariablesBuilder_ == null) { + ensureSlotVariablesIsMutable(); + slotVariables_.add(index, builderForValue.build()); + onChanged(); + } else { + slotVariablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         * Slot variables owned by this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public Builder addAllSlotVariables( + java.lang.Iterable values) { + if (slotVariablesBuilder_ == null) { + ensureSlotVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, slotVariables_); + onChanged(); + } else { + slotVariablesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+         * Slot variables owned by this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public Builder clearSlotVariables() { + if (slotVariablesBuilder_ == null) { + slotVariables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + slotVariablesBuilder_.clear(); + } + return this; + } + /** + *
+         * Slot variables owned by this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public Builder removeSlotVariables(int index) { + if (slotVariablesBuilder_ == null) { + ensureSlotVariablesIsMutable(); + slotVariables_.remove(index); + onChanged(); + } else { + slotVariablesBuilder_.remove(index); + } + return this; + } + /** + *
+         * Slot variables owned by this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder getSlotVariablesBuilder( + int index) { + return getSlotVariablesFieldBuilder().getBuilder(index); + } + /** + *
+         * Slot variables owned by this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder getSlotVariablesOrBuilder( + int index) { + if (slotVariablesBuilder_ == null) { + return slotVariables_.get(index); } else { + return slotVariablesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+         * Slot variables owned by this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public java.util.List + getSlotVariablesOrBuilderList() { + if (slotVariablesBuilder_ != null) { + return slotVariablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(slotVariables_); + } + } + /** + *
+         * Slot variables owned by this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder addSlotVariablesBuilder() { + return getSlotVariablesFieldBuilder().addBuilder( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.getDefaultInstance()); + } + /** + *
+         * Slot variables owned by this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder addSlotVariablesBuilder( + int index) { + return getSlotVariablesFieldBuilder().addBuilder( + index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.getDefaultInstance()); + } + /** + *
+         * Slot variables owned by this object.
+         * 
+ * + * repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; + */ + public java.util.List + getSlotVariablesBuilderList() { + return getSlotVariablesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder> + getSlotVariablesFieldBuilder() { + if (slotVariablesBuilder_ == null) { + slotVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReference.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.SlotVariableReferenceOrBuilder>( + slotVariables_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + slotVariables_ = null; + } + return slotVariablesBuilder_; + } + + private org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver registeredSaver_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver, org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaverOrBuilder> registeredSaverBuilder_; + /** + *
+         * The registered saver used to save this object. If this saver is not
+         * present when loading the checkpoint, then loading will fail.
+         * 
+ * + * .tensorflow.RegisteredSaver registered_saver = 4; + * @return Whether the registeredSaver field is set. + */ + public boolean hasRegisteredSaver() { + return registeredSaverBuilder_ != null || registeredSaver_ != null; + } + /** + *
+         * The registered saver used to save this object. If this saver is not
+         * present when loading the checkpoint, then loading will fail.
+         * 
+ * + * .tensorflow.RegisteredSaver registered_saver = 4; + * @return The registeredSaver. + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver getRegisteredSaver() { + if (registeredSaverBuilder_ == null) { + return registeredSaver_ == null ? org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver.getDefaultInstance() : registeredSaver_; + } else { + return registeredSaverBuilder_.getMessage(); + } + } + /** + *
+         * The registered saver used to save this object. If this saver is not
+         * present when loading the checkpoint, then loading will fail.
+         * 
+ * + * .tensorflow.RegisteredSaver registered_saver = 4; + */ + public Builder setRegisteredSaver(org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver value) { + if (registeredSaverBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + registeredSaver_ = value; + onChanged(); + } else { + registeredSaverBuilder_.setMessage(value); + } + + return this; + } + /** + *
+         * The registered saver used to save this object. If this saver is not
+         * present when loading the checkpoint, then loading will fail.
+         * 
+ * + * .tensorflow.RegisteredSaver registered_saver = 4; + */ + public Builder setRegisteredSaver( + org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver.Builder builderForValue) { + if (registeredSaverBuilder_ == null) { + registeredSaver_ = builderForValue.build(); + onChanged(); + } else { + registeredSaverBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+         * The registered saver used to save this object. If this saver is not
+         * present when loading the checkpoint, then loading will fail.
+         * 
+ * + * .tensorflow.RegisteredSaver registered_saver = 4; + */ + public Builder mergeRegisteredSaver(org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver value) { + if (registeredSaverBuilder_ == null) { + if (registeredSaver_ != null) { + registeredSaver_ = + org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver.newBuilder(registeredSaver_).mergeFrom(value).buildPartial(); + } else { + registeredSaver_ = value; + } + onChanged(); + } else { + registeredSaverBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+         * The registered saver used to save this object. If this saver is not
+         * present when loading the checkpoint, then loading will fail.
+         * 
+ * + * .tensorflow.RegisteredSaver registered_saver = 4; + */ + public Builder clearRegisteredSaver() { + if (registeredSaverBuilder_ == null) { + registeredSaver_ = null; + onChanged(); + } else { + registeredSaver_ = null; + registeredSaverBuilder_ = null; + } + + return this; + } + /** + *
+         * The registered saver used to save this object. If this saver is not
+         * present when loading the checkpoint, then loading will fail.
+         * 
+ * + * .tensorflow.RegisteredSaver registered_saver = 4; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver.Builder getRegisteredSaverBuilder() { + + onChanged(); + return getRegisteredSaverFieldBuilder().getBuilder(); + } + /** + *
+         * The registered saver used to save this object. If this saver is not
+         * present when loading the checkpoint, then loading will fail.
+         * 
+ * + * .tensorflow.RegisteredSaver registered_saver = 4; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaverOrBuilder getRegisteredSaverOrBuilder() { + if (registeredSaverBuilder_ != null) { + return registeredSaverBuilder_.getMessageOrBuilder(); + } else { + return registeredSaver_ == null ? + org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver.getDefaultInstance() : registeredSaver_; + } + } + /** + *
+         * The registered saver used to save this object. If this saver is not
+         * present when loading the checkpoint, then loading will fail.
+         * 
+ * + * .tensorflow.RegisteredSaver registered_saver = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver, org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaverOrBuilder> + getRegisteredSaverFieldBuilder() { + if (registeredSaverBuilder_ == null) { + registeredSaverBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver, org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaverOrBuilder>( + getRegisteredSaver(), + getParentForChildren(), + isClean()); + registeredSaver_ = null; + } + return registeredSaverBuilder_; + } + + private com.google.protobuf.BoolValue hasCheckpointValues_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> hasCheckpointValuesBuilder_; + /** + *
+         * Whether this object has checkpoint values or descendants with checkpoint
+         * values. This is computed at save time to avoid traversing the entire
+         * object graph proto when restoring (which also has to traverse the live
+         * object graph).
+         * 
+ * + * .google.protobuf.BoolValue has_checkpoint_values = 5; + * @return Whether the hasCheckpointValues field is set. + */ + public boolean hasHasCheckpointValues() { + return hasCheckpointValuesBuilder_ != null || hasCheckpointValues_ != null; + } + /** + *
+         * Whether this object has checkpoint values or descendants with checkpoint
+         * values. This is computed at save time to avoid traversing the entire
+         * object graph proto when restoring (which also has to traverse the live
+         * object graph).
+         * 
+ * + * .google.protobuf.BoolValue has_checkpoint_values = 5; + * @return The hasCheckpointValues. + */ + public com.google.protobuf.BoolValue getHasCheckpointValues() { + if (hasCheckpointValuesBuilder_ == null) { + return hasCheckpointValues_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : hasCheckpointValues_; + } else { + return hasCheckpointValuesBuilder_.getMessage(); + } + } + /** + *
+         * Whether this object has checkpoint values or descendants with checkpoint
+         * values. This is computed at save time to avoid traversing the entire
+         * object graph proto when restoring (which also has to traverse the live
+         * object graph).
+         * 
+ * + * .google.protobuf.BoolValue has_checkpoint_values = 5; + */ + public Builder setHasCheckpointValues(com.google.protobuf.BoolValue value) { + if (hasCheckpointValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hasCheckpointValues_ = value; + onChanged(); + } else { + hasCheckpointValuesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+         * Whether this object has checkpoint values or descendants with checkpoint
+         * values. This is computed at save time to avoid traversing the entire
+         * object graph proto when restoring (which also has to traverse the live
+         * object graph).
+         * 
+ * + * .google.protobuf.BoolValue has_checkpoint_values = 5; + */ + public Builder setHasCheckpointValues( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (hasCheckpointValuesBuilder_ == null) { + hasCheckpointValues_ = builderForValue.build(); + onChanged(); + } else { + hasCheckpointValuesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+         * Whether this object has checkpoint values or descendants with checkpoint
+         * values. This is computed at save time to avoid traversing the entire
+         * object graph proto when restoring (which also has to traverse the live
+         * object graph).
+         * 
+ * + * .google.protobuf.BoolValue has_checkpoint_values = 5; + */ + public Builder mergeHasCheckpointValues(com.google.protobuf.BoolValue value) { + if (hasCheckpointValuesBuilder_ == null) { + if (hasCheckpointValues_ != null) { + hasCheckpointValues_ = + com.google.protobuf.BoolValue.newBuilder(hasCheckpointValues_).mergeFrom(value).buildPartial(); + } else { + hasCheckpointValues_ = value; + } + onChanged(); + } else { + hasCheckpointValuesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+         * Whether this object has checkpoint values or descendants with checkpoint
+         * values. This is computed at save time to avoid traversing the entire
+         * object graph proto when restoring (which also has to traverse the live
+         * object graph).
+         * 
+ * + * .google.protobuf.BoolValue has_checkpoint_values = 5; + */ + public Builder clearHasCheckpointValues() { + if (hasCheckpointValuesBuilder_ == null) { + hasCheckpointValues_ = null; + onChanged(); + } else { + hasCheckpointValues_ = null; + hasCheckpointValuesBuilder_ = null; + } + + return this; + } + /** + *
+         * Whether this object has checkpoint values or descendants with checkpoint
+         * values. This is computed at save time to avoid traversing the entire
+         * object graph proto when restoring (which also has to traverse the live
+         * object graph).
+         * 
+ * + * .google.protobuf.BoolValue has_checkpoint_values = 5; + */ + public com.google.protobuf.BoolValue.Builder getHasCheckpointValuesBuilder() { + + onChanged(); + return getHasCheckpointValuesFieldBuilder().getBuilder(); + } + /** + *
+         * Whether this object has checkpoint values or descendants with checkpoint
+         * values. This is computed at save time to avoid traversing the entire
+         * object graph proto when restoring (which also has to traverse the live
+         * object graph).
+         * 
+ * + * .google.protobuf.BoolValue has_checkpoint_values = 5; + */ + public com.google.protobuf.BoolValueOrBuilder getHasCheckpointValuesOrBuilder() { + if (hasCheckpointValuesBuilder_ != null) { + return hasCheckpointValuesBuilder_.getMessageOrBuilder(); + } else { + return hasCheckpointValues_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : hasCheckpointValues_; + } + } + /** + *
+         * Whether this object has checkpoint values or descendants with checkpoint
+         * values. This is computed at save time to avoid traversing the entire
+         * object graph proto when restoring (which also has to traverse the live
+         * object graph).
+         * 
+ * + * .google.protobuf.BoolValue has_checkpoint_values = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> + getHasCheckpointValuesFieldBuilder() { + if (hasCheckpointValuesBuilder_ == null) { + hasCheckpointValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getHasCheckpointValues(), + getParentForChildren(), + isClean()); + hasCheckpointValues_ = null; + } + return hasCheckpointValuesBuilder_; + } + @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:tensorflow.TrackableObjectGraph.TrackableObject) + } + + // @@protoc_insertion_point(class_scope:tensorflow.TrackableObjectGraph.TrackableObject) + private static final org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject(); + } + + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrackableObject 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int NODES_FIELD_NUMBER = 1; + private java.util.List nodes_; + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + @java.lang.Override + public java.util.List getNodesList() { + return nodes_; + } + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + @java.lang.Override + public java.util.List + getNodesOrBuilderList() { + return nodes_; + } + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + @java.lang.Override + public int getNodesCount() { + return nodes_.size(); + } + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject getNodes(int index) { + return nodes_.get(index); + } + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObjectOrBuilder getNodesOrBuilder( + int index) { + return nodes_.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 < nodes_.size(); i++) { + output.writeMessage(1, nodes_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < nodes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, nodes_.get(i)); + } + 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph)) { + return super.equals(obj); + } + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph other = (org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph) obj; + + if (!getNodesList() + .equals(other.getNodesList())) 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 (getNodesCount() > 0) { + hash = (37 * hash) + NODES_FIELD_NUMBER; + hash = (53 * hash) + getNodesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph 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(org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.TrackableObjectGraph} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.TrackableObjectGraph) + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraphOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.class, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.Builder.class); + } + + // Construct using org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + } else { + nodes_ = null; + nodesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_TrackableObjectGraph_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph getDefaultInstanceForType() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph build() { + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph buildPartial() { + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph result = new org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph(this); + int from_bitField0_ = bitField0_; + if (nodesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodes_ = java.util.Collections.unmodifiableList(nodes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodes_ = nodes_; + } else { + result.nodes_ = nodesBuilder_.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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph) { + return mergeFrom((org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph other) { + if (other == org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.getDefaultInstance()) return this; + if (nodesBuilder_ == null) { + if (!other.nodes_.isEmpty()) { + if (nodes_.isEmpty()) { + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodesIsMutable(); + nodes_.addAll(other.nodes_); + } + onChanged(); + } + } else { + if (!other.nodes_.isEmpty()) { + if (nodesBuilder_.isEmpty()) { + nodesBuilder_.dispose(); + nodesBuilder_ = null; + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00000001); + nodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodesFieldBuilder() : null; + } else { + nodesBuilder_.addAllMessages(other.nodes_); + } + } + } + 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: { + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject m = + input.readMessage( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.parser(), + extensionRegistry); + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(m); + } else { + nodesBuilder_.addMessage(m); + } + 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.util.List nodes_ = + java.util.Collections.emptyList(); + private void ensureNodesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nodes_ = new java.util.ArrayList(nodes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObjectOrBuilder> nodesBuilder_; + + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + public java.util.List getNodesList() { + if (nodesBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodes_); + } else { + return nodesBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + public int getNodesCount() { + if (nodesBuilder_ == null) { + return nodes_.size(); + } else { + return nodesBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject getNodes(int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); + } else { + return nodesBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + public Builder setNodes( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.set(index, value); + onChanged(); + } else { + nodesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + public Builder setNodes( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.set(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + public Builder addNodes(org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(value); + onChanged(); + } else { + nodesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + public Builder addNodes( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(index, value); + onChanged(); + } else { + nodesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + public Builder addNodes( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + public Builder addNodes( + int index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + public Builder addAllNodes( + java.lang.Iterable values) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodes_); + onChanged(); + } else { + nodesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + public Builder clearNodes() { + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodesBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + public Builder removeNodes(int index) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.remove(index); + onChanged(); + } else { + nodesBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.Builder getNodesBuilder( + int index) { + return getNodesFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObjectOrBuilder getNodesOrBuilder( + int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); } else { + return nodesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + public java.util.List + getNodesOrBuilderList() { + if (nodesBuilder_ != null) { + return nodesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodes_); + } + } + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.Builder addNodesBuilder() { + return getNodesFieldBuilder().addBuilder( + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.getDefaultInstance()); + } + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + public org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.Builder addNodesBuilder( + int index) { + return getNodesFieldBuilder().addBuilder( + index, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.getDefaultInstance()); + } + /** + * repeated .tensorflow.TrackableObjectGraph.TrackableObject nodes = 1; + */ + public java.util.List + getNodesBuilderList() { + return getNodesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObjectOrBuilder> + getNodesFieldBuilder() { + if (nodesBuilder_ == null) { + nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObject.Builder, org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph.TrackableObjectOrBuilder>( + nodes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + nodes_ = null; + } + return nodesBuilder_; + } + @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:tensorflow.TrackableObjectGraph) + } + + // @@protoc_insertion_point(class_scope:tensorflow.TrackableObjectGraph) + private static final org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph(); + } + + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrackableObjectGraph 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.TrackableObjectGraph getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RegisteredSaverOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.RegisteredSaver) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The name of the registered saver/restore function.
+     * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * The name of the registered saver/restore function.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Unique auto-generated name of the object.
+     * 
+ * + * string object_name = 2; + * @return The objectName. + */ + java.lang.String getObjectName(); + /** + *
+     * Unique auto-generated name of the object.
+     * 
+ * + * string object_name = 2; + * @return The bytes for objectName. + */ + com.google.protobuf.ByteString + getObjectNameBytes(); + } + /** + * Protobuf type {@code tensorflow.RegisteredSaver} + */ + public static final class RegisteredSaver extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.RegisteredSaver) + RegisteredSaverOrBuilder { + private static final long serialVersionUID = 0L; + // Use RegisteredSaver.newBuilder() to construct. + private RegisteredSaver(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RegisteredSaver() { + name_ = ""; + objectName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RegisteredSaver(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_RegisteredSaver_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_RegisteredSaver_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver.class, org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * The name of the registered saver/restore function.
+     * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+     * The name of the registered saver/restore function.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBJECT_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object objectName_; + /** + *
+     * Unique auto-generated name of the object.
+     * 
+ * + * string object_name = 2; + * @return The objectName. + */ + @java.lang.Override + public java.lang.String getObjectName() { + java.lang.Object ref = objectName_; + 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(); + objectName_ = s; + return s; + } + } + /** + *
+     * Unique auto-generated name of the object.
+     * 
+ * + * string object_name = 2; + * @return The bytes for objectName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getObjectNameBytes() { + java.lang.Object ref = objectName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + objectName_ = 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, objectName_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, objectName_); + } + 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver)) { + return super.equals(obj); + } + org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver other = (org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getObjectName() + .equals(other.getObjectName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + OBJECT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getObjectName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver 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(org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.RegisteredSaver} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.RegisteredSaver) + org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaverOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_RegisteredSaver_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_RegisteredSaver_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver.class, org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver.Builder.class); + } + + // Construct using org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + objectName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.internal_static_tensorflow_RegisteredSaver_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver getDefaultInstanceForType() { + return org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver build() { + org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver buildPartial() { + org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver result = new org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver(this); + result.name_ = name_; + result.objectName_ = objectName_; + 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver) { + return mergeFrom((org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver other) { + if (other == org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getObjectName().isEmpty()) { + objectName_ = other.objectName_; + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + objectName_ = input.readStringRequireUtf8(); + + 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 java.lang.Object name_ = ""; + /** + *
+       * The name of the registered saver/restore function.
+       * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The name of the registered saver/restore function.
+       * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The name of the registered saver/restore function.
+       * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * The name of the registered saver/restore function.
+       * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * The name of the registered saver/restore function.
+       * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object objectName_ = ""; + /** + *
+       * Unique auto-generated name of the object.
+       * 
+ * + * string object_name = 2; + * @return The objectName. + */ + public java.lang.String getObjectName() { + java.lang.Object ref = objectName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique auto-generated name of the object.
+       * 
+ * + * string object_name = 2; + * @return The bytes for objectName. + */ + public com.google.protobuf.ByteString + getObjectNameBytes() { + java.lang.Object ref = objectName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + objectName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique auto-generated name of the object.
+       * 
+ * + * string object_name = 2; + * @param value The objectName to set. + * @return This builder for chaining. + */ + public Builder setObjectName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + objectName_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique auto-generated name of the object.
+       * 
+ * + * string object_name = 2; + * @return This builder for chaining. + */ + public Builder clearObjectName() { + + objectName_ = getDefaultInstance().getObjectName(); + onChanged(); + return this; + } + /** + *
+       * Unique auto-generated name of the object.
+       * 
+ * + * string object_name = 2; + * @param value The bytes for objectName to set. + * @return This builder for chaining. + */ + public Builder setObjectNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + objectName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.RegisteredSaver) + } + + // @@protoc_insertion_point(class_scope:tensorflow.RegisteredSaver) + private static final org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver(); + } + + public static org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RegisteredSaver 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 org.tensorflow.proto.TrackableObjectGraphOuterClass.RegisteredSaver getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_TrackableObjectGraph_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_TrackableObjectGraph_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_ObjectReference_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_ObjectReference_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SerializedTensor_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SerializedTensor_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SlotVariableReference_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SlotVariableReference_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_RegisteredSaver_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_RegisteredSaver_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n5tensorflow/core/protobuf/trackable_obj" + + "ect_graph.proto\022\ntensorflow\032\036google/prot" + + "obuf/wrappers.proto\"\363\005\n\024TrackableObjectG" + + "raph\022?\n\005nodes\030\001 \003(\01320.tensorflow.Trackab" + + "leObjectGraph.TrackableObject\032\231\005\n\017Tracka" + + "bleObject\022R\n\010children\030\001 \003(\0132@.tensorflow" + + ".TrackableObjectGraph.TrackableObject.Ob" + + "jectReference\022U\n\nattributes\030\002 \003(\0132A.tens" + + "orflow.TrackableObjectGraph.TrackableObj" + + "ect.SerializedTensor\022^\n\016slot_variables\030\003" + + " \003(\0132F.tensorflow.TrackableObjectGraph.T" + + "rackableObject.SlotVariableReference\0225\n\020" + + "registered_saver\030\004 \001(\0132\033.tensorflow.Regi" + + "steredSaver\0229\n\025has_checkpoint_values\030\005 \001" + + "(\0132\032.google.protobuf.BoolValue\0326\n\017Object" + + "Reference\022\017\n\007node_id\030\001 \001(\005\022\022\n\nlocal_name" + + "\030\002 \001(\t\032c\n\020SerializedTensor\022\014\n\004name\030\001 \001(\t" + + "\022\021\n\tfull_name\030\002 \001(\t\022\026\n\016checkpoint_key\030\003 " + + "\001(\tJ\004\010\004\020\005R\020optional_restore\032l\n\025SlotVaria" + + "bleReference\022!\n\031original_variable_node_i" + + "d\030\001 \001(\005\022\021\n\tslot_name\030\002 \001(\t\022\035\n\025slot_varia" + + "ble_node_id\030\003 \001(\005\"4\n\017RegisteredSaver\022\014\n\004" + + "name\030\001 \001(\t\022\023\n\013object_name\030\002 \001(\tBp\n\024org.t" + + "ensorflow.protoZUgithub.com/tensorflow/t" + + "ensorflow/tensorflow/go/core/protobuf/fo" + + "r_core_protos_go_proto\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.WrappersProto.getDescriptor(), + }); + internal_static_tensorflow_TrackableObjectGraph_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_TrackableObjectGraph_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_TrackableObjectGraph_descriptor, + new java.lang.String[] { "Nodes", }); + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_descriptor = + internal_static_tensorflow_TrackableObjectGraph_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_descriptor, + new java.lang.String[] { "Children", "Attributes", "SlotVariables", "RegisteredSaver", "HasCheckpointValues", }); + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_ObjectReference_descriptor = + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_ObjectReference_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_ObjectReference_descriptor, + new java.lang.String[] { "NodeId", "LocalName", }); + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SerializedTensor_descriptor = + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_descriptor.getNestedTypes().get(1); + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SerializedTensor_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SerializedTensor_descriptor, + new java.lang.String[] { "Name", "FullName", "CheckpointKey", }); + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SlotVariableReference_descriptor = + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_descriptor.getNestedTypes().get(2); + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SlotVariableReference_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_TrackableObjectGraph_TrackableObject_SlotVariableReference_descriptor, + new java.lang.String[] { "OriginalVariableNodeId", "SlotName", "SlotVariableNodeId", }); + internal_static_tensorflow_RegisteredSaver_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_tensorflow_RegisteredSaver_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_RegisteredSaver_descriptor, + new java.lang.String[] { "Name", "ObjectName", }); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TransportOptions.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TransportOptions.java new file mode 100644 index 00000000000..b5a1e8fde55 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TransportOptions.java @@ -0,0 +1,632 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/transport_options.proto + +package org.tensorflow.proto; + +public final class TransportOptions { + private TransportOptions() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface RecvBufRespExtraOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.RecvBufRespExtra) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated bytes tensor_content = 1; + * @return A list containing the tensorContent. + */ + java.util.List getTensorContentList(); + /** + * repeated bytes tensor_content = 1; + * @return The count of tensorContent. + */ + int getTensorContentCount(); + /** + * repeated bytes tensor_content = 1; + * @param index The index of the element to return. + * @return The tensorContent at the given index. + */ + com.google.protobuf.ByteString getTensorContent(int index); + } + /** + *
+   * Extra data needed on a non-RDMA RecvBufResponse.
+   * 
+ * + * Protobuf type {@code tensorflow.RecvBufRespExtra} + */ + public static final class RecvBufRespExtra extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.RecvBufRespExtra) + RecvBufRespExtraOrBuilder { + private static final long serialVersionUID = 0L; + // Use RecvBufRespExtra.newBuilder() to construct. + private RecvBufRespExtra(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RecvBufRespExtra() { + tensorContent_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RecvBufRespExtra(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TransportOptions.internal_static_tensorflow_RecvBufRespExtra_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TransportOptions.internal_static_tensorflow_RecvBufRespExtra_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TransportOptions.RecvBufRespExtra.class, org.tensorflow.proto.TransportOptions.RecvBufRespExtra.Builder.class); + } + + public static final int TENSOR_CONTENT_FIELD_NUMBER = 1; + private java.util.List tensorContent_; + /** + * repeated bytes tensor_content = 1; + * @return A list containing the tensorContent. + */ + @java.lang.Override + public java.util.List + getTensorContentList() { + return tensorContent_; + } + /** + * repeated bytes tensor_content = 1; + * @return The count of tensorContent. + */ + public int getTensorContentCount() { + return tensorContent_.size(); + } + /** + * repeated bytes tensor_content = 1; + * @param index The index of the element to return. + * @return The tensorContent at the given index. + */ + public com.google.protobuf.ByteString getTensorContent(int index) { + return tensorContent_.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 < tensorContent_.size(); i++) { + output.writeBytes(1, tensorContent_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < tensorContent_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(tensorContent_.get(i)); + } + size += dataSize; + size += 1 * getTensorContentList().size(); + } + 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 org.tensorflow.proto.TransportOptions.RecvBufRespExtra)) { + return super.equals(obj); + } + org.tensorflow.proto.TransportOptions.RecvBufRespExtra other = (org.tensorflow.proto.TransportOptions.RecvBufRespExtra) obj; + + if (!getTensorContentList() + .equals(other.getTensorContentList())) 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 (getTensorContentCount() > 0) { + hash = (37 * hash) + TENSOR_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getTensorContentList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.TransportOptions.RecvBufRespExtra parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TransportOptions.RecvBufRespExtra parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TransportOptions.RecvBufRespExtra parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TransportOptions.RecvBufRespExtra parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TransportOptions.RecvBufRespExtra parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.TransportOptions.RecvBufRespExtra parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.TransportOptions.RecvBufRespExtra parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TransportOptions.RecvBufRespExtra 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 org.tensorflow.proto.TransportOptions.RecvBufRespExtra parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TransportOptions.RecvBufRespExtra 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 org.tensorflow.proto.TransportOptions.RecvBufRespExtra parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.TransportOptions.RecvBufRespExtra 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(org.tensorflow.proto.TransportOptions.RecvBufRespExtra 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; + } + /** + *
+     * Extra data needed on a non-RDMA RecvBufResponse.
+     * 
+ * + * Protobuf type {@code tensorflow.RecvBufRespExtra} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.RecvBufRespExtra) + org.tensorflow.proto.TransportOptions.RecvBufRespExtraOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TransportOptions.internal_static_tensorflow_RecvBufRespExtra_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TransportOptions.internal_static_tensorflow_RecvBufRespExtra_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.TransportOptions.RecvBufRespExtra.class, org.tensorflow.proto.TransportOptions.RecvBufRespExtra.Builder.class); + } + + // Construct using org.tensorflow.proto.TransportOptions.RecvBufRespExtra.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + tensorContent_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.TransportOptions.internal_static_tensorflow_RecvBufRespExtra_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.TransportOptions.RecvBufRespExtra getDefaultInstanceForType() { + return org.tensorflow.proto.TransportOptions.RecvBufRespExtra.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.TransportOptions.RecvBufRespExtra build() { + org.tensorflow.proto.TransportOptions.RecvBufRespExtra result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.TransportOptions.RecvBufRespExtra buildPartial() { + org.tensorflow.proto.TransportOptions.RecvBufRespExtra result = new org.tensorflow.proto.TransportOptions.RecvBufRespExtra(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + tensorContent_ = java.util.Collections.unmodifiableList(tensorContent_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tensorContent_ = tensorContent_; + 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 org.tensorflow.proto.TransportOptions.RecvBufRespExtra) { + return mergeFrom((org.tensorflow.proto.TransportOptions.RecvBufRespExtra)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.TransportOptions.RecvBufRespExtra other) { + if (other == org.tensorflow.proto.TransportOptions.RecvBufRespExtra.getDefaultInstance()) return this; + if (!other.tensorContent_.isEmpty()) { + if (tensorContent_.isEmpty()) { + tensorContent_ = other.tensorContent_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTensorContentIsMutable(); + tensorContent_.addAll(other.tensorContent_); + } + 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: { + com.google.protobuf.ByteString v = input.readBytes(); + ensureTensorContentIsMutable(); + tensorContent_.add(v); + 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.util.List tensorContent_ = java.util.Collections.emptyList(); + private void ensureTensorContentIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tensorContent_ = new java.util.ArrayList(tensorContent_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated bytes tensor_content = 1; + * @return A list containing the tensorContent. + */ + public java.util.List + getTensorContentList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(tensorContent_) : tensorContent_; + } + /** + * repeated bytes tensor_content = 1; + * @return The count of tensorContent. + */ + public int getTensorContentCount() { + return tensorContent_.size(); + } + /** + * repeated bytes tensor_content = 1; + * @param index The index of the element to return. + * @return The tensorContent at the given index. + */ + public com.google.protobuf.ByteString getTensorContent(int index) { + return tensorContent_.get(index); + } + /** + * repeated bytes tensor_content = 1; + * @param index The index to set the value at. + * @param value The tensorContent to set. + * @return This builder for chaining. + */ + public Builder setTensorContent( + int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorContentIsMutable(); + tensorContent_.set(index, value); + onChanged(); + return this; + } + /** + * repeated bytes tensor_content = 1; + * @param value The tensorContent to add. + * @return This builder for chaining. + */ + public Builder addTensorContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorContentIsMutable(); + tensorContent_.add(value); + onChanged(); + return this; + } + /** + * repeated bytes tensor_content = 1; + * @param values The tensorContent to add. + * @return This builder for chaining. + */ + public Builder addAllTensorContent( + java.lang.Iterable values) { + ensureTensorContentIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tensorContent_); + onChanged(); + return this; + } + /** + * repeated bytes tensor_content = 1; + * @return This builder for chaining. + */ + public Builder clearTensorContent() { + tensorContent_ = java.util.Collections.emptyList(); + bitField0_ = (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:tensorflow.RecvBufRespExtra) + } + + // @@protoc_insertion_point(class_scope:tensorflow.RecvBufRespExtra) + private static final org.tensorflow.proto.TransportOptions.RecvBufRespExtra DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.TransportOptions.RecvBufRespExtra(); + } + + public static org.tensorflow.proto.TransportOptions.RecvBufRespExtra getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecvBufRespExtra 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 org.tensorflow.proto.TransportOptions.RecvBufRespExtra getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_RecvBufRespExtra_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_RecvBufRespExtra_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0tensorflow/core/protobuf/transport_opt" + + "ions.proto\022\ntensorflow\"*\n\020RecvBufRespExt" + + "ra\022\026\n\016tensor_content\030\001 \003(\014Bm\n\024org.tensor" + + "flow.protoZUgithub.com/tensorflow/tensor" + + "flow/tensorflow/go/core/protobuf/for_cor" + + "e_protos_go_protob\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_tensorflow_RecvBufRespExtra_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_RecvBufRespExtra_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_RecvBufRespExtra_descriptor, + new java.lang.String[] { "TensorContent", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TypesProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TypesProtos.java new file mode 100644 index 00000000000..d0564d1f71b --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/TypesProtos.java @@ -0,0 +1,74 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/types.proto + +package org.tensorflow.proto; + +public final class TypesProtos { + private TypesProtos() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_SerializedDType_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_SerializedDType_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n%tensorflow/core/framework/types.proto\022" + + "\ntensorflow\"9\n\017SerializedDType\022&\n\010dataty" + + "pe\030\001 \001(\0162\024.tensorflow.DataType*\206\007\n\010DataT" + + "ype\022\016\n\nDT_INVALID\020\000\022\014\n\010DT_FLOAT\020\001\022\r\n\tDT_" + + "DOUBLE\020\002\022\014\n\010DT_INT32\020\003\022\014\n\010DT_UINT8\020\004\022\014\n\010" + + "DT_INT16\020\005\022\013\n\007DT_INT8\020\006\022\r\n\tDT_STRING\020\007\022\020" + + "\n\014DT_COMPLEX64\020\010\022\014\n\010DT_INT64\020\t\022\013\n\007DT_BOO" + + "L\020\n\022\014\n\010DT_QINT8\020\013\022\r\n\tDT_QUINT8\020\014\022\r\n\tDT_Q" + + "INT32\020\r\022\017\n\013DT_BFLOAT16\020\016\022\r\n\tDT_QINT16\020\017\022" + + "\016\n\nDT_QUINT16\020\020\022\r\n\tDT_UINT16\020\021\022\021\n\rDT_COM" + + "PLEX128\020\022\022\013\n\007DT_HALF\020\023\022\017\n\013DT_RESOURCE\020\024\022" + + "\016\n\nDT_VARIANT\020\025\022\r\n\tDT_UINT32\020\026\022\r\n\tDT_UIN" + + "T64\020\027\022\022\n\016DT_FLOAT8_E5M2\020\030\022\024\n\020DT_FLOAT8_E" + + "4M3FN\020\031\022\020\n\014DT_FLOAT_REF\020e\022\021\n\rDT_DOUBLE_R" + + "EF\020f\022\020\n\014DT_INT32_REF\020g\022\020\n\014DT_UINT8_REF\020h" + + "\022\020\n\014DT_INT16_REF\020i\022\017\n\013DT_INT8_REF\020j\022\021\n\rD" + + "T_STRING_REF\020k\022\024\n\020DT_COMPLEX64_REF\020l\022\020\n\014" + + "DT_INT64_REF\020m\022\017\n\013DT_BOOL_REF\020n\022\020\n\014DT_QI" + + "NT8_REF\020o\022\021\n\rDT_QUINT8_REF\020p\022\021\n\rDT_QINT3" + + "2_REF\020q\022\023\n\017DT_BFLOAT16_REF\020r\022\021\n\rDT_QINT1" + + "6_REF\020s\022\022\n\016DT_QUINT16_REF\020t\022\021\n\rDT_UINT16" + + "_REF\020u\022\025\n\021DT_COMPLEX128_REF\020v\022\017\n\013DT_HALF" + + "_REF\020w\022\023\n\017DT_RESOURCE_REF\020x\022\022\n\016DT_VARIAN" + + "T_REF\020y\022\021\n\rDT_UINT32_REF\020z\022\021\n\rDT_UINT64_" + + "REF\020{\022\026\n\022DT_FLOAT8_E5M2_REF\020|\022\030\n\024DT_FLOA" + + "T8_E4M3FN_REF\020}Bv\n\024org.tensorflow.protoB" + + "\013TypesProtosP\001ZLgithub.com/tensorflow/te" + + "nsorflow/tensorflow/go/core/framework/ty" + + "pes_go_proto\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_tensorflow_SerializedDType_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_SerializedDType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_SerializedDType_descriptor, + new java.lang.String[] { "Datatype", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/UniformQuantOpsAttr.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/UniformQuantOpsAttr.java new file mode 100644 index 00000000000..fae59d0abb4 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/UniformQuantOpsAttr.java @@ -0,0 +1,1769 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/util/quantization/uniform_quant_ops_attr.proto + +package org.tensorflow.proto; + +public final class UniformQuantOpsAttr { + private UniformQuantOpsAttr() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface UniformQuantizedConvolutionDimensionNumbersAttrOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.UniformQuantizedConvolutionDimensionNumbersAttr) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The dimension that represents batch in the input.
+     * 
+ * + * int64 input_batch_dimension = 1; + * @return The inputBatchDimension. + */ + long getInputBatchDimension(); + + /** + *
+     * The dimension that represents features in the input.
+     * 
+ * + * int64 input_feature_dimension = 2; + * @return The inputFeatureDimension. + */ + long getInputFeatureDimension(); + + /** + *
+     * The dimensions that represents spatial dimensions in the input. Length must
+     * be rank-2 for the tensor rank for Convolution op.
+     * 
+ * + * repeated int64 input_spatial_dimensions = 3; + * @return A list containing the inputSpatialDimensions. + */ + java.util.List getInputSpatialDimensionsList(); + /** + *
+     * The dimensions that represents spatial dimensions in the input. Length must
+     * be rank-2 for the tensor rank for Convolution op.
+     * 
+ * + * repeated int64 input_spatial_dimensions = 3; + * @return The count of inputSpatialDimensions. + */ + int getInputSpatialDimensionsCount(); + /** + *
+     * The dimensions that represents spatial dimensions in the input. Length must
+     * be rank-2 for the tensor rank for Convolution op.
+     * 
+ * + * repeated int64 input_spatial_dimensions = 3; + * @param index The index of the element to return. + * @return The inputSpatialDimensions at the given index. + */ + long getInputSpatialDimensions(int index); + + /** + *
+     * The dimension that represents input features in the kernel (rhs).
+     * 
+ * + * int64 kernel_input_feature_dimension = 4; + * @return The kernelInputFeatureDimension. + */ + long getKernelInputFeatureDimension(); + + /** + *
+     * The dimension that represents output features in the kernel (rhs).
+     * 
+ * + * int64 kernel_output_feature_dimension = 5; + * @return The kernelOutputFeatureDimension. + */ + long getKernelOutputFeatureDimension(); + + /** + *
+     * The dimensions that represents spatial dimensions in the kernel (rhs).
+     * Length must be rank-2 for the tensor rank for Convolution op.
+     * 
+ * + * repeated int64 kernel_spatial_dimensions = 6; + * @return A list containing the kernelSpatialDimensions. + */ + java.util.List getKernelSpatialDimensionsList(); + /** + *
+     * The dimensions that represents spatial dimensions in the kernel (rhs).
+     * Length must be rank-2 for the tensor rank for Convolution op.
+     * 
+ * + * repeated int64 kernel_spatial_dimensions = 6; + * @return The count of kernelSpatialDimensions. + */ + int getKernelSpatialDimensionsCount(); + /** + *
+     * The dimensions that represents spatial dimensions in the kernel (rhs).
+     * Length must be rank-2 for the tensor rank for Convolution op.
+     * 
+ * + * repeated int64 kernel_spatial_dimensions = 6; + * @param index The index of the element to return. + * @return The kernelSpatialDimensions at the given index. + */ + long getKernelSpatialDimensions(int index); + + /** + *
+     * The dimension that represents batch in the output.
+     * 
+ * + * int64 output_batch_dimension = 7; + * @return The outputBatchDimension. + */ + long getOutputBatchDimension(); + + /** + *
+     * The dimension that represents features in the output.
+     * 
+ * + * int64 output_feature_dimension = 8; + * @return The outputFeatureDimension. + */ + long getOutputFeatureDimension(); + + /** + *
+     * The dimensions that represents spatial dimensions in the output. Length
+     * must be rank-2 for the tensor rank for Convolution op.
+     * 
+ * + * repeated int64 output_spatial_dimensions = 9; + * @return A list containing the outputSpatialDimensions. + */ + java.util.List getOutputSpatialDimensionsList(); + /** + *
+     * The dimensions that represents spatial dimensions in the output. Length
+     * must be rank-2 for the tensor rank for Convolution op.
+     * 
+ * + * repeated int64 output_spatial_dimensions = 9; + * @return The count of outputSpatialDimensions. + */ + int getOutputSpatialDimensionsCount(); + /** + *
+     * The dimensions that represents spatial dimensions in the output. Length
+     * must be rank-2 for the tensor rank for Convolution op.
+     * 
+ * + * repeated int64 output_spatial_dimensions = 9; + * @param index The index of the element to return. + * @return The outputSpatialDimensions at the given index. + */ + long getOutputSpatialDimensions(int index); + } + /** + *
+   * Describes the dimension numbers for Convolution op. Corresponds to
+   * ::mlir::mhlo::ConvDimensionNumbersAttr.
+   * 
+ * + * Protobuf type {@code tensorflow.UniformQuantizedConvolutionDimensionNumbersAttr} + */ + public static final class UniformQuantizedConvolutionDimensionNumbersAttr extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.UniformQuantizedConvolutionDimensionNumbersAttr) + UniformQuantizedConvolutionDimensionNumbersAttrOrBuilder { + private static final long serialVersionUID = 0L; + // Use UniformQuantizedConvolutionDimensionNumbersAttr.newBuilder() to construct. + private UniformQuantizedConvolutionDimensionNumbersAttr(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UniformQuantizedConvolutionDimensionNumbersAttr() { + inputSpatialDimensions_ = emptyLongList(); + kernelSpatialDimensions_ = emptyLongList(); + outputSpatialDimensions_ = emptyLongList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UniformQuantizedConvolutionDimensionNumbersAttr(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.UniformQuantOpsAttr.internal_static_tensorflow_UniformQuantizedConvolutionDimensionNumbersAttr_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.UniformQuantOpsAttr.internal_static_tensorflow_UniformQuantizedConvolutionDimensionNumbersAttr_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr.class, org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr.Builder.class); + } + + public static final int INPUT_BATCH_DIMENSION_FIELD_NUMBER = 1; + private long inputBatchDimension_; + /** + *
+     * The dimension that represents batch in the input.
+     * 
+ * + * int64 input_batch_dimension = 1; + * @return The inputBatchDimension. + */ + @java.lang.Override + public long getInputBatchDimension() { + return inputBatchDimension_; + } + + public static final int INPUT_FEATURE_DIMENSION_FIELD_NUMBER = 2; + private long inputFeatureDimension_; + /** + *
+     * The dimension that represents features in the input.
+     * 
+ * + * int64 input_feature_dimension = 2; + * @return The inputFeatureDimension. + */ + @java.lang.Override + public long getInputFeatureDimension() { + return inputFeatureDimension_; + } + + public static final int INPUT_SPATIAL_DIMENSIONS_FIELD_NUMBER = 3; + private com.google.protobuf.Internal.LongList inputSpatialDimensions_; + /** + *
+     * The dimensions that represents spatial dimensions in the input. Length must
+     * be rank-2 for the tensor rank for Convolution op.
+     * 
+ * + * repeated int64 input_spatial_dimensions = 3; + * @return A list containing the inputSpatialDimensions. + */ + @java.lang.Override + public java.util.List + getInputSpatialDimensionsList() { + return inputSpatialDimensions_; + } + /** + *
+     * The dimensions that represents spatial dimensions in the input. Length must
+     * be rank-2 for the tensor rank for Convolution op.
+     * 
+ * + * repeated int64 input_spatial_dimensions = 3; + * @return The count of inputSpatialDimensions. + */ + public int getInputSpatialDimensionsCount() { + return inputSpatialDimensions_.size(); + } + /** + *
+     * The dimensions that represents spatial dimensions in the input. Length must
+     * be rank-2 for the tensor rank for Convolution op.
+     * 
+ * + * repeated int64 input_spatial_dimensions = 3; + * @param index The index of the element to return. + * @return The inputSpatialDimensions at the given index. + */ + public long getInputSpatialDimensions(int index) { + return inputSpatialDimensions_.getLong(index); + } + private int inputSpatialDimensionsMemoizedSerializedSize = -1; + + public static final int KERNEL_INPUT_FEATURE_DIMENSION_FIELD_NUMBER = 4; + private long kernelInputFeatureDimension_; + /** + *
+     * The dimension that represents input features in the kernel (rhs).
+     * 
+ * + * int64 kernel_input_feature_dimension = 4; + * @return The kernelInputFeatureDimension. + */ + @java.lang.Override + public long getKernelInputFeatureDimension() { + return kernelInputFeatureDimension_; + } + + public static final int KERNEL_OUTPUT_FEATURE_DIMENSION_FIELD_NUMBER = 5; + private long kernelOutputFeatureDimension_; + /** + *
+     * The dimension that represents output features in the kernel (rhs).
+     * 
+ * + * int64 kernel_output_feature_dimension = 5; + * @return The kernelOutputFeatureDimension. + */ + @java.lang.Override + public long getKernelOutputFeatureDimension() { + return kernelOutputFeatureDimension_; + } + + public static final int KERNEL_SPATIAL_DIMENSIONS_FIELD_NUMBER = 6; + private com.google.protobuf.Internal.LongList kernelSpatialDimensions_; + /** + *
+     * The dimensions that represents spatial dimensions in the kernel (rhs).
+     * Length must be rank-2 for the tensor rank for Convolution op.
+     * 
+ * + * repeated int64 kernel_spatial_dimensions = 6; + * @return A list containing the kernelSpatialDimensions. + */ + @java.lang.Override + public java.util.List + getKernelSpatialDimensionsList() { + return kernelSpatialDimensions_; + } + /** + *
+     * The dimensions that represents spatial dimensions in the kernel (rhs).
+     * Length must be rank-2 for the tensor rank for Convolution op.
+     * 
+ * + * repeated int64 kernel_spatial_dimensions = 6; + * @return The count of kernelSpatialDimensions. + */ + public int getKernelSpatialDimensionsCount() { + return kernelSpatialDimensions_.size(); + } + /** + *
+     * The dimensions that represents spatial dimensions in the kernel (rhs).
+     * Length must be rank-2 for the tensor rank for Convolution op.
+     * 
+ * + * repeated int64 kernel_spatial_dimensions = 6; + * @param index The index of the element to return. + * @return The kernelSpatialDimensions at the given index. + */ + public long getKernelSpatialDimensions(int index) { + return kernelSpatialDimensions_.getLong(index); + } + private int kernelSpatialDimensionsMemoizedSerializedSize = -1; + + public static final int OUTPUT_BATCH_DIMENSION_FIELD_NUMBER = 7; + private long outputBatchDimension_; + /** + *
+     * The dimension that represents batch in the output.
+     * 
+ * + * int64 output_batch_dimension = 7; + * @return The outputBatchDimension. + */ + @java.lang.Override + public long getOutputBatchDimension() { + return outputBatchDimension_; + } + + public static final int OUTPUT_FEATURE_DIMENSION_FIELD_NUMBER = 8; + private long outputFeatureDimension_; + /** + *
+     * The dimension that represents features in the output.
+     * 
+ * + * int64 output_feature_dimension = 8; + * @return The outputFeatureDimension. + */ + @java.lang.Override + public long getOutputFeatureDimension() { + return outputFeatureDimension_; + } + + public static final int OUTPUT_SPATIAL_DIMENSIONS_FIELD_NUMBER = 9; + private com.google.protobuf.Internal.LongList outputSpatialDimensions_; + /** + *
+     * The dimensions that represents spatial dimensions in the output. Length
+     * must be rank-2 for the tensor rank for Convolution op.
+     * 
+ * + * repeated int64 output_spatial_dimensions = 9; + * @return A list containing the outputSpatialDimensions. + */ + @java.lang.Override + public java.util.List + getOutputSpatialDimensionsList() { + return outputSpatialDimensions_; + } + /** + *
+     * The dimensions that represents spatial dimensions in the output. Length
+     * must be rank-2 for the tensor rank for Convolution op.
+     * 
+ * + * repeated int64 output_spatial_dimensions = 9; + * @return The count of outputSpatialDimensions. + */ + public int getOutputSpatialDimensionsCount() { + return outputSpatialDimensions_.size(); + } + /** + *
+     * The dimensions that represents spatial dimensions in the output. Length
+     * must be rank-2 for the tensor rank for Convolution op.
+     * 
+ * + * repeated int64 output_spatial_dimensions = 9; + * @param index The index of the element to return. + * @return The outputSpatialDimensions at the given index. + */ + public long getOutputSpatialDimensions(int index) { + return outputSpatialDimensions_.getLong(index); + } + private int outputSpatialDimensionsMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (inputBatchDimension_ != 0L) { + output.writeInt64(1, inputBatchDimension_); + } + if (inputFeatureDimension_ != 0L) { + output.writeInt64(2, inputFeatureDimension_); + } + if (getInputSpatialDimensionsList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(inputSpatialDimensionsMemoizedSerializedSize); + } + for (int i = 0; i < inputSpatialDimensions_.size(); i++) { + output.writeInt64NoTag(inputSpatialDimensions_.getLong(i)); + } + if (kernelInputFeatureDimension_ != 0L) { + output.writeInt64(4, kernelInputFeatureDimension_); + } + if (kernelOutputFeatureDimension_ != 0L) { + output.writeInt64(5, kernelOutputFeatureDimension_); + } + if (getKernelSpatialDimensionsList().size() > 0) { + output.writeUInt32NoTag(50); + output.writeUInt32NoTag(kernelSpatialDimensionsMemoizedSerializedSize); + } + for (int i = 0; i < kernelSpatialDimensions_.size(); i++) { + output.writeInt64NoTag(kernelSpatialDimensions_.getLong(i)); + } + if (outputBatchDimension_ != 0L) { + output.writeInt64(7, outputBatchDimension_); + } + if (outputFeatureDimension_ != 0L) { + output.writeInt64(8, outputFeatureDimension_); + } + if (getOutputSpatialDimensionsList().size() > 0) { + output.writeUInt32NoTag(74); + output.writeUInt32NoTag(outputSpatialDimensionsMemoizedSerializedSize); + } + for (int i = 0; i < outputSpatialDimensions_.size(); i++) { + output.writeInt64NoTag(outputSpatialDimensions_.getLong(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputBatchDimension_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, inputBatchDimension_); + } + if (inputFeatureDimension_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, inputFeatureDimension_); + } + { + int dataSize = 0; + for (int i = 0; i < inputSpatialDimensions_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(inputSpatialDimensions_.getLong(i)); + } + size += dataSize; + if (!getInputSpatialDimensionsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + inputSpatialDimensionsMemoizedSerializedSize = dataSize; + } + if (kernelInputFeatureDimension_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, kernelInputFeatureDimension_); + } + if (kernelOutputFeatureDimension_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, kernelOutputFeatureDimension_); + } + { + int dataSize = 0; + for (int i = 0; i < kernelSpatialDimensions_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(kernelSpatialDimensions_.getLong(i)); + } + size += dataSize; + if (!getKernelSpatialDimensionsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + kernelSpatialDimensionsMemoizedSerializedSize = dataSize; + } + if (outputBatchDimension_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, outputBatchDimension_); + } + if (outputFeatureDimension_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, outputFeatureDimension_); + } + { + int dataSize = 0; + for (int i = 0; i < outputSpatialDimensions_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(outputSpatialDimensions_.getLong(i)); + } + size += dataSize; + if (!getOutputSpatialDimensionsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + outputSpatialDimensionsMemoizedSerializedSize = dataSize; + } + 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 org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr)) { + return super.equals(obj); + } + org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr other = (org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr) obj; + + if (getInputBatchDimension() + != other.getInputBatchDimension()) return false; + if (getInputFeatureDimension() + != other.getInputFeatureDimension()) return false; + if (!getInputSpatialDimensionsList() + .equals(other.getInputSpatialDimensionsList())) return false; + if (getKernelInputFeatureDimension() + != other.getKernelInputFeatureDimension()) return false; + if (getKernelOutputFeatureDimension() + != other.getKernelOutputFeatureDimension()) return false; + if (!getKernelSpatialDimensionsList() + .equals(other.getKernelSpatialDimensionsList())) return false; + if (getOutputBatchDimension() + != other.getOutputBatchDimension()) return false; + if (getOutputFeatureDimension() + != other.getOutputFeatureDimension()) return false; + if (!getOutputSpatialDimensionsList() + .equals(other.getOutputSpatialDimensionsList())) 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) + INPUT_BATCH_DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInputBatchDimension()); + hash = (37 * hash) + INPUT_FEATURE_DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInputFeatureDimension()); + if (getInputSpatialDimensionsCount() > 0) { + hash = (37 * hash) + INPUT_SPATIAL_DIMENSIONS_FIELD_NUMBER; + hash = (53 * hash) + getInputSpatialDimensionsList().hashCode(); + } + hash = (37 * hash) + KERNEL_INPUT_FEATURE_DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getKernelInputFeatureDimension()); + hash = (37 * hash) + KERNEL_OUTPUT_FEATURE_DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getKernelOutputFeatureDimension()); + if (getKernelSpatialDimensionsCount() > 0) { + hash = (37 * hash) + KERNEL_SPATIAL_DIMENSIONS_FIELD_NUMBER; + hash = (53 * hash) + getKernelSpatialDimensionsList().hashCode(); + } + hash = (37 * hash) + OUTPUT_BATCH_DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOutputBatchDimension()); + hash = (37 * hash) + OUTPUT_FEATURE_DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOutputFeatureDimension()); + if (getOutputSpatialDimensionsCount() > 0) { + hash = (37 * hash) + OUTPUT_SPATIAL_DIMENSIONS_FIELD_NUMBER; + hash = (53 * hash) + getOutputSpatialDimensionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr 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 org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr 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 org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr 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(org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr 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; + } + /** + *
+     * Describes the dimension numbers for Convolution op. Corresponds to
+     * ::mlir::mhlo::ConvDimensionNumbersAttr.
+     * 
+ * + * Protobuf type {@code tensorflow.UniformQuantizedConvolutionDimensionNumbersAttr} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.UniformQuantizedConvolutionDimensionNumbersAttr) + org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttrOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.UniformQuantOpsAttr.internal_static_tensorflow_UniformQuantizedConvolutionDimensionNumbersAttr_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.UniformQuantOpsAttr.internal_static_tensorflow_UniformQuantizedConvolutionDimensionNumbersAttr_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr.class, org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr.Builder.class); + } + + // Construct using org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + inputBatchDimension_ = 0L; + + inputFeatureDimension_ = 0L; + + inputSpatialDimensions_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + kernelInputFeatureDimension_ = 0L; + + kernelOutputFeatureDimension_ = 0L; + + kernelSpatialDimensions_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000002); + outputBatchDimension_ = 0L; + + outputFeatureDimension_ = 0L; + + outputSpatialDimensions_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.UniformQuantOpsAttr.internal_static_tensorflow_UniformQuantizedConvolutionDimensionNumbersAttr_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr getDefaultInstanceForType() { + return org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr build() { + org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr buildPartial() { + org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr result = new org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr(this); + int from_bitField0_ = bitField0_; + result.inputBatchDimension_ = inputBatchDimension_; + result.inputFeatureDimension_ = inputFeatureDimension_; + if (((bitField0_ & 0x00000001) != 0)) { + inputSpatialDimensions_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.inputSpatialDimensions_ = inputSpatialDimensions_; + result.kernelInputFeatureDimension_ = kernelInputFeatureDimension_; + result.kernelOutputFeatureDimension_ = kernelOutputFeatureDimension_; + if (((bitField0_ & 0x00000002) != 0)) { + kernelSpatialDimensions_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.kernelSpatialDimensions_ = kernelSpatialDimensions_; + result.outputBatchDimension_ = outputBatchDimension_; + result.outputFeatureDimension_ = outputFeatureDimension_; + if (((bitField0_ & 0x00000004) != 0)) { + outputSpatialDimensions_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.outputSpatialDimensions_ = outputSpatialDimensions_; + 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 org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr) { + return mergeFrom((org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr other) { + if (other == org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr.getDefaultInstance()) return this; + if (other.getInputBatchDimension() != 0L) { + setInputBatchDimension(other.getInputBatchDimension()); + } + if (other.getInputFeatureDimension() != 0L) { + setInputFeatureDimension(other.getInputFeatureDimension()); + } + if (!other.inputSpatialDimensions_.isEmpty()) { + if (inputSpatialDimensions_.isEmpty()) { + inputSpatialDimensions_ = other.inputSpatialDimensions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInputSpatialDimensionsIsMutable(); + inputSpatialDimensions_.addAll(other.inputSpatialDimensions_); + } + onChanged(); + } + if (other.getKernelInputFeatureDimension() != 0L) { + setKernelInputFeatureDimension(other.getKernelInputFeatureDimension()); + } + if (other.getKernelOutputFeatureDimension() != 0L) { + setKernelOutputFeatureDimension(other.getKernelOutputFeatureDimension()); + } + if (!other.kernelSpatialDimensions_.isEmpty()) { + if (kernelSpatialDimensions_.isEmpty()) { + kernelSpatialDimensions_ = other.kernelSpatialDimensions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureKernelSpatialDimensionsIsMutable(); + kernelSpatialDimensions_.addAll(other.kernelSpatialDimensions_); + } + onChanged(); + } + if (other.getOutputBatchDimension() != 0L) { + setOutputBatchDimension(other.getOutputBatchDimension()); + } + if (other.getOutputFeatureDimension() != 0L) { + setOutputFeatureDimension(other.getOutputFeatureDimension()); + } + if (!other.outputSpatialDimensions_.isEmpty()) { + if (outputSpatialDimensions_.isEmpty()) { + outputSpatialDimensions_ = other.outputSpatialDimensions_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureOutputSpatialDimensionsIsMutable(); + outputSpatialDimensions_.addAll(other.outputSpatialDimensions_); + } + 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 8: { + inputBatchDimension_ = input.readInt64(); + + break; + } // case 8 + case 16: { + inputFeatureDimension_ = input.readInt64(); + + break; + } // case 16 + case 24: { + long v = input.readInt64(); + ensureInputSpatialDimensionsIsMutable(); + inputSpatialDimensions_.addLong(v); + break; + } // case 24 + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureInputSpatialDimensionsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + inputSpatialDimensions_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 26 + case 32: { + kernelInputFeatureDimension_ = input.readInt64(); + + break; + } // case 32 + case 40: { + kernelOutputFeatureDimension_ = input.readInt64(); + + break; + } // case 40 + case 48: { + long v = input.readInt64(); + ensureKernelSpatialDimensionsIsMutable(); + kernelSpatialDimensions_.addLong(v); + break; + } // case 48 + case 50: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureKernelSpatialDimensionsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + kernelSpatialDimensions_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 50 + case 56: { + outputBatchDimension_ = input.readInt64(); + + break; + } // case 56 + case 64: { + outputFeatureDimension_ = input.readInt64(); + + break; + } // case 64 + case 72: { + long v = input.readInt64(); + ensureOutputSpatialDimensionsIsMutable(); + outputSpatialDimensions_.addLong(v); + break; + } // case 72 + case 74: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureOutputSpatialDimensionsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + outputSpatialDimensions_.addLong(input.readInt64()); + } + input.popLimit(limit); + 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 long inputBatchDimension_ ; + /** + *
+       * The dimension that represents batch in the input.
+       * 
+ * + * int64 input_batch_dimension = 1; + * @return The inputBatchDimension. + */ + @java.lang.Override + public long getInputBatchDimension() { + return inputBatchDimension_; + } + /** + *
+       * The dimension that represents batch in the input.
+       * 
+ * + * int64 input_batch_dimension = 1; + * @param value The inputBatchDimension to set. + * @return This builder for chaining. + */ + public Builder setInputBatchDimension(long value) { + + inputBatchDimension_ = value; + onChanged(); + return this; + } + /** + *
+       * The dimension that represents batch in the input.
+       * 
+ * + * int64 input_batch_dimension = 1; + * @return This builder for chaining. + */ + public Builder clearInputBatchDimension() { + + inputBatchDimension_ = 0L; + onChanged(); + return this; + } + + private long inputFeatureDimension_ ; + /** + *
+       * The dimension that represents features in the input.
+       * 
+ * + * int64 input_feature_dimension = 2; + * @return The inputFeatureDimension. + */ + @java.lang.Override + public long getInputFeatureDimension() { + return inputFeatureDimension_; + } + /** + *
+       * The dimension that represents features in the input.
+       * 
+ * + * int64 input_feature_dimension = 2; + * @param value The inputFeatureDimension to set. + * @return This builder for chaining. + */ + public Builder setInputFeatureDimension(long value) { + + inputFeatureDimension_ = value; + onChanged(); + return this; + } + /** + *
+       * The dimension that represents features in the input.
+       * 
+ * + * int64 input_feature_dimension = 2; + * @return This builder for chaining. + */ + public Builder clearInputFeatureDimension() { + + inputFeatureDimension_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.LongList inputSpatialDimensions_ = emptyLongList(); + private void ensureInputSpatialDimensionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + inputSpatialDimensions_ = mutableCopy(inputSpatialDimensions_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * The dimensions that represents spatial dimensions in the input. Length must
+       * be rank-2 for the tensor rank for Convolution op.
+       * 
+ * + * repeated int64 input_spatial_dimensions = 3; + * @return A list containing the inputSpatialDimensions. + */ + public java.util.List + getInputSpatialDimensionsList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(inputSpatialDimensions_) : inputSpatialDimensions_; + } + /** + *
+       * The dimensions that represents spatial dimensions in the input. Length must
+       * be rank-2 for the tensor rank for Convolution op.
+       * 
+ * + * repeated int64 input_spatial_dimensions = 3; + * @return The count of inputSpatialDimensions. + */ + public int getInputSpatialDimensionsCount() { + return inputSpatialDimensions_.size(); + } + /** + *
+       * The dimensions that represents spatial dimensions in the input. Length must
+       * be rank-2 for the tensor rank for Convolution op.
+       * 
+ * + * repeated int64 input_spatial_dimensions = 3; + * @param index The index of the element to return. + * @return The inputSpatialDimensions at the given index. + */ + public long getInputSpatialDimensions(int index) { + return inputSpatialDimensions_.getLong(index); + } + /** + *
+       * The dimensions that represents spatial dimensions in the input. Length must
+       * be rank-2 for the tensor rank for Convolution op.
+       * 
+ * + * repeated int64 input_spatial_dimensions = 3; + * @param index The index to set the value at. + * @param value The inputSpatialDimensions to set. + * @return This builder for chaining. + */ + public Builder setInputSpatialDimensions( + int index, long value) { + ensureInputSpatialDimensionsIsMutable(); + inputSpatialDimensions_.setLong(index, value); + onChanged(); + return this; + } + /** + *
+       * The dimensions that represents spatial dimensions in the input. Length must
+       * be rank-2 for the tensor rank for Convolution op.
+       * 
+ * + * repeated int64 input_spatial_dimensions = 3; + * @param value The inputSpatialDimensions to add. + * @return This builder for chaining. + */ + public Builder addInputSpatialDimensions(long value) { + ensureInputSpatialDimensionsIsMutable(); + inputSpatialDimensions_.addLong(value); + onChanged(); + return this; + } + /** + *
+       * The dimensions that represents spatial dimensions in the input. Length must
+       * be rank-2 for the tensor rank for Convolution op.
+       * 
+ * + * repeated int64 input_spatial_dimensions = 3; + * @param values The inputSpatialDimensions to add. + * @return This builder for chaining. + */ + public Builder addAllInputSpatialDimensions( + java.lang.Iterable values) { + ensureInputSpatialDimensionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputSpatialDimensions_); + onChanged(); + return this; + } + /** + *
+       * The dimensions that represents spatial dimensions in the input. Length must
+       * be rank-2 for the tensor rank for Convolution op.
+       * 
+ * + * repeated int64 input_spatial_dimensions = 3; + * @return This builder for chaining. + */ + public Builder clearInputSpatialDimensions() { + inputSpatialDimensions_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private long kernelInputFeatureDimension_ ; + /** + *
+       * The dimension that represents input features in the kernel (rhs).
+       * 
+ * + * int64 kernel_input_feature_dimension = 4; + * @return The kernelInputFeatureDimension. + */ + @java.lang.Override + public long getKernelInputFeatureDimension() { + return kernelInputFeatureDimension_; + } + /** + *
+       * The dimension that represents input features in the kernel (rhs).
+       * 
+ * + * int64 kernel_input_feature_dimension = 4; + * @param value The kernelInputFeatureDimension to set. + * @return This builder for chaining. + */ + public Builder setKernelInputFeatureDimension(long value) { + + kernelInputFeatureDimension_ = value; + onChanged(); + return this; + } + /** + *
+       * The dimension that represents input features in the kernel (rhs).
+       * 
+ * + * int64 kernel_input_feature_dimension = 4; + * @return This builder for chaining. + */ + public Builder clearKernelInputFeatureDimension() { + + kernelInputFeatureDimension_ = 0L; + onChanged(); + return this; + } + + private long kernelOutputFeatureDimension_ ; + /** + *
+       * The dimension that represents output features in the kernel (rhs).
+       * 
+ * + * int64 kernel_output_feature_dimension = 5; + * @return The kernelOutputFeatureDimension. + */ + @java.lang.Override + public long getKernelOutputFeatureDimension() { + return kernelOutputFeatureDimension_; + } + /** + *
+       * The dimension that represents output features in the kernel (rhs).
+       * 
+ * + * int64 kernel_output_feature_dimension = 5; + * @param value The kernelOutputFeatureDimension to set. + * @return This builder for chaining. + */ + public Builder setKernelOutputFeatureDimension(long value) { + + kernelOutputFeatureDimension_ = value; + onChanged(); + return this; + } + /** + *
+       * The dimension that represents output features in the kernel (rhs).
+       * 
+ * + * int64 kernel_output_feature_dimension = 5; + * @return This builder for chaining. + */ + public Builder clearKernelOutputFeatureDimension() { + + kernelOutputFeatureDimension_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.LongList kernelSpatialDimensions_ = emptyLongList(); + private void ensureKernelSpatialDimensionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + kernelSpatialDimensions_ = mutableCopy(kernelSpatialDimensions_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * The dimensions that represents spatial dimensions in the kernel (rhs).
+       * Length must be rank-2 for the tensor rank for Convolution op.
+       * 
+ * + * repeated int64 kernel_spatial_dimensions = 6; + * @return A list containing the kernelSpatialDimensions. + */ + public java.util.List + getKernelSpatialDimensionsList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(kernelSpatialDimensions_) : kernelSpatialDimensions_; + } + /** + *
+       * The dimensions that represents spatial dimensions in the kernel (rhs).
+       * Length must be rank-2 for the tensor rank for Convolution op.
+       * 
+ * + * repeated int64 kernel_spatial_dimensions = 6; + * @return The count of kernelSpatialDimensions. + */ + public int getKernelSpatialDimensionsCount() { + return kernelSpatialDimensions_.size(); + } + /** + *
+       * The dimensions that represents spatial dimensions in the kernel (rhs).
+       * Length must be rank-2 for the tensor rank for Convolution op.
+       * 
+ * + * repeated int64 kernel_spatial_dimensions = 6; + * @param index The index of the element to return. + * @return The kernelSpatialDimensions at the given index. + */ + public long getKernelSpatialDimensions(int index) { + return kernelSpatialDimensions_.getLong(index); + } + /** + *
+       * The dimensions that represents spatial dimensions in the kernel (rhs).
+       * Length must be rank-2 for the tensor rank for Convolution op.
+       * 
+ * + * repeated int64 kernel_spatial_dimensions = 6; + * @param index The index to set the value at. + * @param value The kernelSpatialDimensions to set. + * @return This builder for chaining. + */ + public Builder setKernelSpatialDimensions( + int index, long value) { + ensureKernelSpatialDimensionsIsMutable(); + kernelSpatialDimensions_.setLong(index, value); + onChanged(); + return this; + } + /** + *
+       * The dimensions that represents spatial dimensions in the kernel (rhs).
+       * Length must be rank-2 for the tensor rank for Convolution op.
+       * 
+ * + * repeated int64 kernel_spatial_dimensions = 6; + * @param value The kernelSpatialDimensions to add. + * @return This builder for chaining. + */ + public Builder addKernelSpatialDimensions(long value) { + ensureKernelSpatialDimensionsIsMutable(); + kernelSpatialDimensions_.addLong(value); + onChanged(); + return this; + } + /** + *
+       * The dimensions that represents spatial dimensions in the kernel (rhs).
+       * Length must be rank-2 for the tensor rank for Convolution op.
+       * 
+ * + * repeated int64 kernel_spatial_dimensions = 6; + * @param values The kernelSpatialDimensions to add. + * @return This builder for chaining. + */ + public Builder addAllKernelSpatialDimensions( + java.lang.Iterable values) { + ensureKernelSpatialDimensionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, kernelSpatialDimensions_); + onChanged(); + return this; + } + /** + *
+       * The dimensions that represents spatial dimensions in the kernel (rhs).
+       * Length must be rank-2 for the tensor rank for Convolution op.
+       * 
+ * + * repeated int64 kernel_spatial_dimensions = 6; + * @return This builder for chaining. + */ + public Builder clearKernelSpatialDimensions() { + kernelSpatialDimensions_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + private long outputBatchDimension_ ; + /** + *
+       * The dimension that represents batch in the output.
+       * 
+ * + * int64 output_batch_dimension = 7; + * @return The outputBatchDimension. + */ + @java.lang.Override + public long getOutputBatchDimension() { + return outputBatchDimension_; + } + /** + *
+       * The dimension that represents batch in the output.
+       * 
+ * + * int64 output_batch_dimension = 7; + * @param value The outputBatchDimension to set. + * @return This builder for chaining. + */ + public Builder setOutputBatchDimension(long value) { + + outputBatchDimension_ = value; + onChanged(); + return this; + } + /** + *
+       * The dimension that represents batch in the output.
+       * 
+ * + * int64 output_batch_dimension = 7; + * @return This builder for chaining. + */ + public Builder clearOutputBatchDimension() { + + outputBatchDimension_ = 0L; + onChanged(); + return this; + } + + private long outputFeatureDimension_ ; + /** + *
+       * The dimension that represents features in the output.
+       * 
+ * + * int64 output_feature_dimension = 8; + * @return The outputFeatureDimension. + */ + @java.lang.Override + public long getOutputFeatureDimension() { + return outputFeatureDimension_; + } + /** + *
+       * The dimension that represents features in the output.
+       * 
+ * + * int64 output_feature_dimension = 8; + * @param value The outputFeatureDimension to set. + * @return This builder for chaining. + */ + public Builder setOutputFeatureDimension(long value) { + + outputFeatureDimension_ = value; + onChanged(); + return this; + } + /** + *
+       * The dimension that represents features in the output.
+       * 
+ * + * int64 output_feature_dimension = 8; + * @return This builder for chaining. + */ + public Builder clearOutputFeatureDimension() { + + outputFeatureDimension_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.LongList outputSpatialDimensions_ = emptyLongList(); + private void ensureOutputSpatialDimensionsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + outputSpatialDimensions_ = mutableCopy(outputSpatialDimensions_); + bitField0_ |= 0x00000004; + } + } + /** + *
+       * The dimensions that represents spatial dimensions in the output. Length
+       * must be rank-2 for the tensor rank for Convolution op.
+       * 
+ * + * repeated int64 output_spatial_dimensions = 9; + * @return A list containing the outputSpatialDimensions. + */ + public java.util.List + getOutputSpatialDimensionsList() { + return ((bitField0_ & 0x00000004) != 0) ? + java.util.Collections.unmodifiableList(outputSpatialDimensions_) : outputSpatialDimensions_; + } + /** + *
+       * The dimensions that represents spatial dimensions in the output. Length
+       * must be rank-2 for the tensor rank for Convolution op.
+       * 
+ * + * repeated int64 output_spatial_dimensions = 9; + * @return The count of outputSpatialDimensions. + */ + public int getOutputSpatialDimensionsCount() { + return outputSpatialDimensions_.size(); + } + /** + *
+       * The dimensions that represents spatial dimensions in the output. Length
+       * must be rank-2 for the tensor rank for Convolution op.
+       * 
+ * + * repeated int64 output_spatial_dimensions = 9; + * @param index The index of the element to return. + * @return The outputSpatialDimensions at the given index. + */ + public long getOutputSpatialDimensions(int index) { + return outputSpatialDimensions_.getLong(index); + } + /** + *
+       * The dimensions that represents spatial dimensions in the output. Length
+       * must be rank-2 for the tensor rank for Convolution op.
+       * 
+ * + * repeated int64 output_spatial_dimensions = 9; + * @param index The index to set the value at. + * @param value The outputSpatialDimensions to set. + * @return This builder for chaining. + */ + public Builder setOutputSpatialDimensions( + int index, long value) { + ensureOutputSpatialDimensionsIsMutable(); + outputSpatialDimensions_.setLong(index, value); + onChanged(); + return this; + } + /** + *
+       * The dimensions that represents spatial dimensions in the output. Length
+       * must be rank-2 for the tensor rank for Convolution op.
+       * 
+ * + * repeated int64 output_spatial_dimensions = 9; + * @param value The outputSpatialDimensions to add. + * @return This builder for chaining. + */ + public Builder addOutputSpatialDimensions(long value) { + ensureOutputSpatialDimensionsIsMutable(); + outputSpatialDimensions_.addLong(value); + onChanged(); + return this; + } + /** + *
+       * The dimensions that represents spatial dimensions in the output. Length
+       * must be rank-2 for the tensor rank for Convolution op.
+       * 
+ * + * repeated int64 output_spatial_dimensions = 9; + * @param values The outputSpatialDimensions to add. + * @return This builder for chaining. + */ + public Builder addAllOutputSpatialDimensions( + java.lang.Iterable values) { + ensureOutputSpatialDimensionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outputSpatialDimensions_); + onChanged(); + return this; + } + /** + *
+       * The dimensions that represents spatial dimensions in the output. Length
+       * must be rank-2 for the tensor rank for Convolution op.
+       * 
+ * + * repeated int64 output_spatial_dimensions = 9; + * @return This builder for chaining. + */ + public Builder clearOutputSpatialDimensions() { + outputSpatialDimensions_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000004); + 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:tensorflow.UniformQuantizedConvolutionDimensionNumbersAttr) + } + + // @@protoc_insertion_point(class_scope:tensorflow.UniformQuantizedConvolutionDimensionNumbersAttr) + private static final org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr(); + } + + public static org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UniformQuantizedConvolutionDimensionNumbersAttr 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 org.tensorflow.proto.UniformQuantOpsAttr.UniformQuantizedConvolutionDimensionNumbersAttr getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_UniformQuantizedConvolutionDimensionNumbersAttr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_UniformQuantizedConvolutionDimensionNumbersAttr_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n>tensorflow/core/util/quantization/unif" + + "orm_quant_ops_attr.proto\022\ntensorflow\"\354\002\n" + + "/UniformQuantizedConvolutionDimensionNum" + + "bersAttr\022\035\n\025input_batch_dimension\030\001 \001(\003\022" + + "\037\n\027input_feature_dimension\030\002 \001(\003\022 \n\030inpu" + + "t_spatial_dimensions\030\003 \003(\003\022&\n\036kernel_inp" + + "ut_feature_dimension\030\004 \001(\003\022\'\n\037kernel_out" + + "put_feature_dimension\030\005 \001(\003\022!\n\031kernel_sp" + + "atial_dimensions\030\006 \003(\003\022\036\n\026output_batch_d" + + "imension\030\007 \001(\003\022 \n\030output_feature_dimensi" + + "on\030\010 \001(\003\022!\n\031output_spatial_dimensions\030\t " + + "\003(\003Bm\n\024org.tensorflow.protoZUgithub.com/" + + "tensorflow/tensorflow/tensorflow/go/core" + + "/protobuf/for_core_protos_go_protob\006prot" + + "o3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_tensorflow_UniformQuantizedConvolutionDimensionNumbersAttr_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_UniformQuantizedConvolutionDimensionNumbersAttr_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_UniformQuantizedConvolutionDimensionNumbersAttr_descriptor, + new java.lang.String[] { "InputBatchDimension", "InputFeatureDimension", "InputSpatialDimensions", "KernelInputFeatureDimension", "KernelOutputFeatureDimension", "KernelSpatialDimensions", "OutputBatchDimension", "OutputFeatureDimension", "OutputSpatialDimensions", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ValuesDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ValuesDef.java similarity index 77% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ValuesDef.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ValuesDef.java index d6819b5bbfa..6379c55680b 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ValuesDef.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ValuesDef.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/control_flow.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; /** *
@@ -10,7 +10,7 @@
  *
  * Protobuf type {@code tensorflow.ValuesDef}
  */
-public  final class ValuesDef extends
+public final class ValuesDef extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.ValuesDef)
     ValuesDefOrBuilder {
@@ -35,72 +35,9 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private ValuesDef(
-      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: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              values_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            values_.add(s);
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              externalValues_ = com.google.protobuf.MapField.newMapField(
-                  ExternalValuesDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000002;
-            }
-            com.google.protobuf.MapEntry
-            externalValues__ = input.readMessage(
-                ExternalValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            externalValues_.getMutableMap().put(
-                externalValues__.getKey(), externalValues__.getValue());
-            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)) {
-        values_ = values_.getUnmodifiableView();
-      }
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.framework.ControlFlowProtos.internal_static_tensorflow_ValuesDef_descriptor;
+    return org.tensorflow.proto.ControlFlowProtos.internal_static_tensorflow_ValuesDef_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
@@ -118,9 +55,9 @@ protected com.google.protobuf.MapField internalGetMapField(
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.framework.ControlFlowProtos.internal_static_tensorflow_ValuesDef_fieldAccessorTable
+    return org.tensorflow.proto.ControlFlowProtos.internal_static_tensorflow_ValuesDef_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.framework.ValuesDef.class, org.tensorflow.proto.framework.ValuesDef.Builder.class);
+            org.tensorflow.proto.ValuesDef.class, org.tensorflow.proto.ValuesDef.Builder.class);
   }
 
   public static final int VALUES_FIELD_NUMBER = 1;
@@ -131,6 +68,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * repeated string values = 1; + * @return A list containing the values. */ public com.google.protobuf.ProtocolStringList getValuesList() { @@ -142,6 +80,7 @@ protected com.google.protobuf.MapField internalGetMapField( * * * repeated string values = 1; + * @return The count of values. */ public int getValuesCount() { return values_.size(); @@ -152,6 +91,8 @@ public int getValuesCount() { * * * repeated string values = 1; + * @param index The index of the element to return. + * @return The values at the given index. */ public java.lang.String getValues(int index) { return values_.get(index); @@ -162,6 +103,8 @@ public java.lang.String getValues(int index) { * * * repeated string values = 1; + * @param index The index of the value to return. + * @return The bytes of the values at the given index. */ public com.google.protobuf.ByteString getValuesBytes(int index) { @@ -174,7 +117,7 @@ private static final class ExternalValuesDefaultEntryHolder { java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( - org.tensorflow.proto.framework.ControlFlowProtos.internal_static_tensorflow_ValuesDef_ExternalValuesEntry_descriptor, + org.tensorflow.proto.ControlFlowProtos.internal_static_tensorflow_ValuesDef_ExternalValuesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, @@ -202,14 +145,16 @@ public int getExternalValuesCount() { * map<string, string> external_values = 2; */ + @java.lang.Override public boolean containsExternalValues( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } return internalGetExternalValues().getMap().containsKey(key); } /** * Use {@link #getExternalValuesMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getExternalValues() { return getExternalValuesMap(); @@ -221,6 +166,7 @@ public java.util.Map getExternalValues() { * * map<string, string> external_values = 2; */ + @java.lang.Override public java.util.Map getExternalValuesMap() { return internalGetExternalValues().getMap(); @@ -232,11 +178,12 @@ public java.util.Map getExternalValuesMap() * * map<string, string> external_values = 2; */ + @java.lang.Override public java.lang.String getExternalValuesOrDefault( java.lang.String key, java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExternalValues().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -248,10 +195,11 @@ public java.lang.String getExternalValuesOrDefault( * * map<string, string> external_values = 2; */ + @java.lang.Override public java.lang.String getExternalValuesOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExternalValues().getMap(); if (!map.containsKey(key)) { @@ -283,7 +231,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) internalGetExternalValues(), ExternalValuesDefaultEntryHolder.defaultEntry, 2); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -310,7 +258,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, externalValues__); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -320,16 +268,16 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof org.tensorflow.proto.framework.ValuesDef)) { + if (!(obj instanceof org.tensorflow.proto.ValuesDef)) { return super.equals(obj); } - org.tensorflow.proto.framework.ValuesDef other = (org.tensorflow.proto.framework.ValuesDef) obj; + org.tensorflow.proto.ValuesDef other = (org.tensorflow.proto.ValuesDef) obj; if (!getValuesList() .equals(other.getValuesList())) return false; if (!internalGetExternalValues().equals( other.internalGetExternalValues())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,74 +296,74 @@ public int hashCode() { hash = (37 * hash) + EXTERNAL_VALUES_FIELD_NUMBER; hash = (53 * hash) + internalGetExternalValues().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static org.tensorflow.proto.framework.ValuesDef parseFrom( + public static org.tensorflow.proto.ValuesDef parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.ValuesDef parseFrom( + public static org.tensorflow.proto.ValuesDef parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.ValuesDef parseFrom( + public static org.tensorflow.proto.ValuesDef parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.ValuesDef parseFrom( + public static org.tensorflow.proto.ValuesDef parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.ValuesDef parseFrom(byte[] data) + public static org.tensorflow.proto.ValuesDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static org.tensorflow.proto.framework.ValuesDef parseFrom( + public static org.tensorflow.proto.ValuesDef parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static org.tensorflow.proto.framework.ValuesDef parseFrom(java.io.InputStream input) + public static org.tensorflow.proto.ValuesDef parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.ValuesDef parseFrom( + public static org.tensorflow.proto.ValuesDef 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 org.tensorflow.proto.framework.ValuesDef parseDelimitedFrom(java.io.InputStream input) + public static org.tensorflow.proto.ValuesDef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.ValuesDef parseDelimitedFrom( + public static org.tensorflow.proto.ValuesDef 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 org.tensorflow.proto.framework.ValuesDef parseFrom( + public static org.tensorflow.proto.ValuesDef parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static org.tensorflow.proto.framework.ValuesDef parseFrom( + public static org.tensorflow.proto.ValuesDef parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -428,7 +376,7 @@ public static org.tensorflow.proto.framework.ValuesDef parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(org.tensorflow.proto.framework.ValuesDef prototype) { + public static Builder newBuilder(org.tensorflow.proto.ValuesDef prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -453,10 +401,10 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.ValuesDef) - org.tensorflow.proto.framework.ValuesDefOrBuilder { + org.tensorflow.proto.ValuesDefOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.ControlFlowProtos.internal_static_tensorflow_ValuesDef_descriptor; + return org.tensorflow.proto.ControlFlowProtos.internal_static_tensorflow_ValuesDef_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -484,25 +432,20 @@ protected com.google.protobuf.MapField internalGetMutableMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.ControlFlowProtos.internal_static_tensorflow_ValuesDef_fieldAccessorTable + return org.tensorflow.proto.ControlFlowProtos.internal_static_tensorflow_ValuesDef_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.ValuesDef.class, org.tensorflow.proto.framework.ValuesDef.Builder.class); + org.tensorflow.proto.ValuesDef.class, org.tensorflow.proto.ValuesDef.Builder.class); } - // Construct using org.tensorflow.proto.framework.ValuesDef.newBuilder() + // Construct using org.tensorflow.proto.ValuesDef.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -516,17 +459,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.tensorflow.proto.framework.ControlFlowProtos.internal_static_tensorflow_ValuesDef_descriptor; + return org.tensorflow.proto.ControlFlowProtos.internal_static_tensorflow_ValuesDef_descriptor; } @java.lang.Override - public org.tensorflow.proto.framework.ValuesDef getDefaultInstanceForType() { - return org.tensorflow.proto.framework.ValuesDef.getDefaultInstance(); + public org.tensorflow.proto.ValuesDef getDefaultInstanceForType() { + return org.tensorflow.proto.ValuesDef.getDefaultInstance(); } @java.lang.Override - public org.tensorflow.proto.framework.ValuesDef build() { - org.tensorflow.proto.framework.ValuesDef result = buildPartial(); + public org.tensorflow.proto.ValuesDef build() { + org.tensorflow.proto.ValuesDef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -534,8 +477,8 @@ public org.tensorflow.proto.framework.ValuesDef build() { } @java.lang.Override - public org.tensorflow.proto.framework.ValuesDef buildPartial() { - org.tensorflow.proto.framework.ValuesDef result = new org.tensorflow.proto.framework.ValuesDef(this); + public org.tensorflow.proto.ValuesDef buildPartial() { + org.tensorflow.proto.ValuesDef result = new org.tensorflow.proto.ValuesDef(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); @@ -582,16 +525,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.tensorflow.proto.framework.ValuesDef) { - return mergeFrom((org.tensorflow.proto.framework.ValuesDef)other); + if (other instanceof org.tensorflow.proto.ValuesDef) { + return mergeFrom((org.tensorflow.proto.ValuesDef)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(org.tensorflow.proto.framework.ValuesDef other) { - if (other == org.tensorflow.proto.framework.ValuesDef.getDefaultInstance()) return this; + public Builder mergeFrom(org.tensorflow.proto.ValuesDef other) { + if (other == org.tensorflow.proto.ValuesDef.getDefaultInstance()) return this; if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; @@ -604,7 +547,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.ValuesDef other) { } internalGetMutableExternalValues().mergeFrom( other.internalGetExternalValues()); - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -619,17 +562,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.framework.ValuesDef parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + case 18: { + com.google.protobuf.MapEntry + externalValues__ = input.readMessage( + ExternalValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableExternalValues().getMutableMap().put( + externalValues__.getKey(), externalValues__.getValue()); + 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) { - parsedMessage = (org.tensorflow.proto.framework.ValuesDef) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -647,6 +617,7 @@ private void ensureValuesIsMutable() { * * * repeated string values = 1; + * @return A list containing the values. */ public com.google.protobuf.ProtocolStringList getValuesList() { @@ -658,6 +629,7 @@ private void ensureValuesIsMutable() { * * * repeated string values = 1; + * @return The count of values. */ public int getValuesCount() { return values_.size(); @@ -668,6 +640,8 @@ public int getValuesCount() { * * * repeated string values = 1; + * @param index The index of the element to return. + * @return The values at the given index. */ public java.lang.String getValues(int index) { return values_.get(index); @@ -678,6 +652,8 @@ public java.lang.String getValues(int index) { * * * repeated string values = 1; + * @param index The index of the value to return. + * @return The bytes of the values at the given index. */ public com.google.protobuf.ByteString getValuesBytes(int index) { @@ -689,6 +665,9 @@ public java.lang.String getValues(int index) { * * * repeated string values = 1; + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. */ public Builder setValues( int index, java.lang.String value) { @@ -706,6 +685,8 @@ public Builder setValues( * * * repeated string values = 1; + * @param value The values to add. + * @return This builder for chaining. */ public Builder addValues( java.lang.String value) { @@ -723,6 +704,8 @@ public Builder addValues( * * * repeated string values = 1; + * @param values The values to add. + * @return This builder for chaining. */ public Builder addAllValues( java.lang.Iterable values) { @@ -738,6 +721,7 @@ public Builder addAllValues( * * * repeated string values = 1; + * @return This builder for chaining. */ public Builder clearValues() { values_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -751,6 +735,8 @@ public Builder clearValues() { * * * repeated string values = 1; + * @param value The bytes of the values to add. + * @return This builder for chaining. */ public Builder addValuesBytes( com.google.protobuf.ByteString value) { @@ -798,14 +784,16 @@ public int getExternalValuesCount() { * map<string, string> external_values = 2; */ + @java.lang.Override public boolean containsExternalValues( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } return internalGetExternalValues().getMap().containsKey(key); } /** * Use {@link #getExternalValuesMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getExternalValues() { return getExternalValuesMap(); @@ -817,6 +805,7 @@ public java.util.Map getExternalValues() { * * map<string, string> external_values = 2; */ + @java.lang.Override public java.util.Map getExternalValuesMap() { return internalGetExternalValues().getMap(); @@ -828,11 +817,12 @@ public java.util.Map getExternalValuesMap() * * map<string, string> external_values = 2; */ + @java.lang.Override public java.lang.String getExternalValuesOrDefault( java.lang.String key, java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExternalValues().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -844,10 +834,11 @@ public java.lang.String getExternalValuesOrDefault( * * map<string, string> external_values = 2; */ + @java.lang.Override public java.lang.String getExternalValuesOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExternalValues().getMap(); if (!map.containsKey(key)) { @@ -871,7 +862,7 @@ public Builder clearExternalValues() { public Builder removeExternalValues( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } internalGetMutableExternalValues().getMutableMap() .remove(key); return this; @@ -894,8 +885,11 @@ public Builder removeExternalValues( public Builder putExternalValues( java.lang.String key, java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + internalGetMutableExternalValues().getMutableMap() .put(key, value); return this; @@ -931,12 +925,12 @@ public final Builder mergeUnknownFields( } // @@protoc_insertion_point(class_scope:tensorflow.ValuesDef) - private static final org.tensorflow.proto.framework.ValuesDef DEFAULT_INSTANCE; + private static final org.tensorflow.proto.ValuesDef DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new org.tensorflow.proto.framework.ValuesDef(); + DEFAULT_INSTANCE = new org.tensorflow.proto.ValuesDef(); } - public static org.tensorflow.proto.framework.ValuesDef getDefaultInstance() { + public static org.tensorflow.proto.ValuesDef getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -947,7 +941,18 @@ public ValuesDef parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ValuesDef(input, extensionRegistry); + 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(); } }; @@ -961,7 +966,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public org.tensorflow.proto.framework.ValuesDef getDefaultInstanceForType() { + public org.tensorflow.proto.ValuesDef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ValuesDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ValuesDefOrBuilder.java similarity index 84% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ValuesDefOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ValuesDefOrBuilder.java index d9135689d22..a97c7230af6 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/ValuesDefOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/ValuesDefOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/control_flow.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface ValuesDefOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.ValuesDef) @@ -13,6 +13,7 @@ public interface ValuesDefOrBuilder extends * * * repeated string values = 1; + * @return A list containing the values. */ java.util.List getValuesList(); @@ -22,6 +23,7 @@ public interface ValuesDefOrBuilder extends * * * repeated string values = 1; + * @return The count of values. */ int getValuesCount(); /** @@ -30,6 +32,8 @@ public interface ValuesDefOrBuilder extends * * * repeated string values = 1; + * @param index The index of the element to return. + * @return The values at the given index. */ java.lang.String getValues(int index); /** @@ -38,6 +42,8 @@ public interface ValuesDefOrBuilder extends * * * repeated string values = 1; + * @param index The index of the value to return. + * @return The bytes of the values at the given index. */ com.google.protobuf.ByteString getValuesBytes(int index); @@ -82,9 +88,11 @@ boolean containsExternalValues( * map<string, string> external_values = 2; */ - java.lang.String getExternalValuesOrDefault( + /* nullable */ +java.lang.String getExternalValuesOrDefault( java.lang.String key, - java.lang.String defaultValue); + /* nullable */ +java.lang.String defaultValue); /** *
    * Value names referenced by but external to this context.
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VarLenFeatureProto.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VarLenFeatureProto.java
new file mode 100644
index 00000000000..2e08cee2dbf
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VarLenFeatureProto.java
@@ -0,0 +1,907 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/example/example_parser_configuration.proto
+
+package org.tensorflow.proto;
+
+/**
+ * Protobuf type {@code tensorflow.VarLenFeatureProto}
+ */
+public final class VarLenFeatureProto extends
+    com.google.protobuf.GeneratedMessageV3 implements
+    // @@protoc_insertion_point(message_implements:tensorflow.VarLenFeatureProto)
+    VarLenFeatureProtoOrBuilder {
+private static final long serialVersionUID = 0L;
+  // Use VarLenFeatureProto.newBuilder() to construct.
+  private VarLenFeatureProto(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    super(builder);
+  }
+  private VarLenFeatureProto() {
+    dtype_ = 0;
+    valuesOutputTensorName_ = "";
+    indicesOutputTensorName_ = "";
+    shapesOutputTensorName_ = "";
+  }
+
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
+    return new VarLenFeatureProto();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
+    return this.unknownFields;
+  }
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return org.tensorflow.proto.ExampleParserConfigurationProtos.internal_static_tensorflow_VarLenFeatureProto_descriptor;
+  }
+
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internalGetFieldAccessorTable() {
+    return org.tensorflow.proto.ExampleParserConfigurationProtos.internal_static_tensorflow_VarLenFeatureProto_fieldAccessorTable
+        .ensureFieldAccessorsInitialized(
+            org.tensorflow.proto.VarLenFeatureProto.class, org.tensorflow.proto.VarLenFeatureProto.Builder.class);
+  }
+
+  public static final int DTYPE_FIELD_NUMBER = 1;
+  private int dtype_;
+  /**
+   * .tensorflow.DataType dtype = 1;
+   * @return The enum numeric value on the wire for dtype.
+   */
+  @java.lang.Override public int getDtypeValue() {
+    return dtype_;
+  }
+  /**
+   * .tensorflow.DataType dtype = 1;
+   * @return The dtype.
+   */
+  @java.lang.Override public org.tensorflow.proto.DataType getDtype() {
+    @SuppressWarnings("deprecation")
+    org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_);
+    return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result;
+  }
+
+  public static final int VALUES_OUTPUT_TENSOR_NAME_FIELD_NUMBER = 2;
+  private volatile java.lang.Object valuesOutputTensorName_;
+  /**
+   * string values_output_tensor_name = 2;
+   * @return The valuesOutputTensorName.
+   */
+  @java.lang.Override
+  public java.lang.String getValuesOutputTensorName() {
+    java.lang.Object ref = valuesOutputTensorName_;
+    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();
+      valuesOutputTensorName_ = s;
+      return s;
+    }
+  }
+  /**
+   * string values_output_tensor_name = 2;
+   * @return The bytes for valuesOutputTensorName.
+   */
+  @java.lang.Override
+  public com.google.protobuf.ByteString
+      getValuesOutputTensorNameBytes() {
+    java.lang.Object ref = valuesOutputTensorName_;
+    if (ref instanceof java.lang.String) {
+      com.google.protobuf.ByteString b = 
+          com.google.protobuf.ByteString.copyFromUtf8(
+              (java.lang.String) ref);
+      valuesOutputTensorName_ = b;
+      return b;
+    } else {
+      return (com.google.protobuf.ByteString) ref;
+    }
+  }
+
+  public static final int INDICES_OUTPUT_TENSOR_NAME_FIELD_NUMBER = 3;
+  private volatile java.lang.Object indicesOutputTensorName_;
+  /**
+   * string indices_output_tensor_name = 3;
+   * @return The indicesOutputTensorName.
+   */
+  @java.lang.Override
+  public java.lang.String getIndicesOutputTensorName() {
+    java.lang.Object ref = indicesOutputTensorName_;
+    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();
+      indicesOutputTensorName_ = s;
+      return s;
+    }
+  }
+  /**
+   * string indices_output_tensor_name = 3;
+   * @return The bytes for indicesOutputTensorName.
+   */
+  @java.lang.Override
+  public com.google.protobuf.ByteString
+      getIndicesOutputTensorNameBytes() {
+    java.lang.Object ref = indicesOutputTensorName_;
+    if (ref instanceof java.lang.String) {
+      com.google.protobuf.ByteString b = 
+          com.google.protobuf.ByteString.copyFromUtf8(
+              (java.lang.String) ref);
+      indicesOutputTensorName_ = b;
+      return b;
+    } else {
+      return (com.google.protobuf.ByteString) ref;
+    }
+  }
+
+  public static final int SHAPES_OUTPUT_TENSOR_NAME_FIELD_NUMBER = 4;
+  private volatile java.lang.Object shapesOutputTensorName_;
+  /**
+   * string shapes_output_tensor_name = 4;
+   * @return The shapesOutputTensorName.
+   */
+  @java.lang.Override
+  public java.lang.String getShapesOutputTensorName() {
+    java.lang.Object ref = shapesOutputTensorName_;
+    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();
+      shapesOutputTensorName_ = s;
+      return s;
+    }
+  }
+  /**
+   * string shapes_output_tensor_name = 4;
+   * @return The bytes for shapesOutputTensorName.
+   */
+  @java.lang.Override
+  public com.google.protobuf.ByteString
+      getShapesOutputTensorNameBytes() {
+    java.lang.Object ref = shapesOutputTensorName_;
+    if (ref instanceof java.lang.String) {
+      com.google.protobuf.ByteString b = 
+          com.google.protobuf.ByteString.copyFromUtf8(
+              (java.lang.String) ref);
+      shapesOutputTensorName_ = 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 (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) {
+      output.writeEnum(1, dtype_);
+    }
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(valuesOutputTensorName_)) {
+      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, valuesOutputTensorName_);
+    }
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indicesOutputTensorName_)) {
+      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, indicesOutputTensorName_);
+    }
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shapesOutputTensorName_)) {
+      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, shapesOutputTensorName_);
+    }
+    getUnknownFields().writeTo(output);
+  }
+
+  @java.lang.Override
+  public int getSerializedSize() {
+    int size = memoizedSize;
+    if (size != -1) return size;
+
+    size = 0;
+    if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(1, dtype_);
+    }
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(valuesOutputTensorName_)) {
+      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, valuesOutputTensorName_);
+    }
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indicesOutputTensorName_)) {
+      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, indicesOutputTensorName_);
+    }
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shapesOutputTensorName_)) {
+      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, shapesOutputTensorName_);
+    }
+    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 org.tensorflow.proto.VarLenFeatureProto)) {
+      return super.equals(obj);
+    }
+    org.tensorflow.proto.VarLenFeatureProto other = (org.tensorflow.proto.VarLenFeatureProto) obj;
+
+    if (dtype_ != other.dtype_) return false;
+    if (!getValuesOutputTensorName()
+        .equals(other.getValuesOutputTensorName())) return false;
+    if (!getIndicesOutputTensorName()
+        .equals(other.getIndicesOutputTensorName())) return false;
+    if (!getShapesOutputTensorName()
+        .equals(other.getShapesOutputTensorName())) 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) + DTYPE_FIELD_NUMBER;
+    hash = (53 * hash) + dtype_;
+    hash = (37 * hash) + VALUES_OUTPUT_TENSOR_NAME_FIELD_NUMBER;
+    hash = (53 * hash) + getValuesOutputTensorName().hashCode();
+    hash = (37 * hash) + INDICES_OUTPUT_TENSOR_NAME_FIELD_NUMBER;
+    hash = (53 * hash) + getIndicesOutputTensorName().hashCode();
+    hash = (37 * hash) + SHAPES_OUTPUT_TENSOR_NAME_FIELD_NUMBER;
+    hash = (53 * hash) + getShapesOutputTensorName().hashCode();
+    hash = (29 * hash) + getUnknownFields().hashCode();
+    memoizedHashCode = hash;
+    return hash;
+  }
+
+  public static org.tensorflow.proto.VarLenFeatureProto parseFrom(
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.VarLenFeatureProto parseFrom(
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.VarLenFeatureProto parseFrom(
+      com.google.protobuf.ByteString data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.VarLenFeatureProto parseFrom(
+      com.google.protobuf.ByteString data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.VarLenFeatureProto parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.VarLenFeatureProto parseFrom(
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.VarLenFeatureProto parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.VarLenFeatureProto 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 org.tensorflow.proto.VarLenFeatureProto parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.VarLenFeatureProto 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 org.tensorflow.proto.VarLenFeatureProto parseFrom(
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.VarLenFeatureProto 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(org.tensorflow.proto.VarLenFeatureProto prototype) {
+    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+  }
+  @java.lang.Override
+  public Builder toBuilder() {
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
+  }
+
+  @java.lang.Override
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    Builder builder = new Builder(parent);
+    return builder;
+  }
+  /**
+   * Protobuf type {@code tensorflow.VarLenFeatureProto}
+   */
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
+      // @@protoc_insertion_point(builder_implements:tensorflow.VarLenFeatureProto)
+      org.tensorflow.proto.VarLenFeatureProtoOrBuilder {
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return org.tensorflow.proto.ExampleParserConfigurationProtos.internal_static_tensorflow_VarLenFeatureProto_descriptor;
+    }
+
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+        internalGetFieldAccessorTable() {
+      return org.tensorflow.proto.ExampleParserConfigurationProtos.internal_static_tensorflow_VarLenFeatureProto_fieldAccessorTable
+          .ensureFieldAccessorsInitialized(
+              org.tensorflow.proto.VarLenFeatureProto.class, org.tensorflow.proto.VarLenFeatureProto.Builder.class);
+    }
+
+    // Construct using org.tensorflow.proto.VarLenFeatureProto.newBuilder()
+    private Builder() {
+
+    }
+
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
+    @java.lang.Override
+    public Builder clear() {
+      super.clear();
+      dtype_ = 0;
+
+      valuesOutputTensorName_ = "";
+
+      indicesOutputTensorName_ = "";
+
+      shapesOutputTensorName_ = "";
+
+      return this;
+    }
+
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return org.tensorflow.proto.ExampleParserConfigurationProtos.internal_static_tensorflow_VarLenFeatureProto_descriptor;
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.VarLenFeatureProto getDefaultInstanceForType() {
+      return org.tensorflow.proto.VarLenFeatureProto.getDefaultInstance();
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.VarLenFeatureProto build() {
+      org.tensorflow.proto.VarLenFeatureProto result = buildPartial();
+      if (!result.isInitialized()) {
+        throw newUninitializedMessageException(result);
+      }
+      return result;
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.VarLenFeatureProto buildPartial() {
+      org.tensorflow.proto.VarLenFeatureProto result = new org.tensorflow.proto.VarLenFeatureProto(this);
+      result.dtype_ = dtype_;
+      result.valuesOutputTensorName_ = valuesOutputTensorName_;
+      result.indicesOutputTensorName_ = indicesOutputTensorName_;
+      result.shapesOutputTensorName_ = shapesOutputTensorName_;
+      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 org.tensorflow.proto.VarLenFeatureProto) {
+        return mergeFrom((org.tensorflow.proto.VarLenFeatureProto)other);
+      } else {
+        super.mergeFrom(other);
+        return this;
+      }
+    }
+
+    public Builder mergeFrom(org.tensorflow.proto.VarLenFeatureProto other) {
+      if (other == org.tensorflow.proto.VarLenFeatureProto.getDefaultInstance()) return this;
+      if (other.dtype_ != 0) {
+        setDtypeValue(other.getDtypeValue());
+      }
+      if (!other.getValuesOutputTensorName().isEmpty()) {
+        valuesOutputTensorName_ = other.valuesOutputTensorName_;
+        onChanged();
+      }
+      if (!other.getIndicesOutputTensorName().isEmpty()) {
+        indicesOutputTensorName_ = other.indicesOutputTensorName_;
+        onChanged();
+      }
+      if (!other.getShapesOutputTensorName().isEmpty()) {
+        shapesOutputTensorName_ = other.shapesOutputTensorName_;
+        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 8: {
+              dtype_ = input.readEnum();
+
+              break;
+            } // case 8
+            case 18: {
+              valuesOutputTensorName_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 18
+            case 26: {
+              indicesOutputTensorName_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 26
+            case 34: {
+              shapesOutputTensorName_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 34
+            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 dtype_ = 0;
+    /**
+     * .tensorflow.DataType dtype = 1;
+     * @return The enum numeric value on the wire for dtype.
+     */
+    @java.lang.Override public int getDtypeValue() {
+      return dtype_;
+    }
+    /**
+     * .tensorflow.DataType dtype = 1;
+     * @param value The enum numeric value on the wire for dtype to set.
+     * @return This builder for chaining.
+     */
+    public Builder setDtypeValue(int value) {
+      
+      dtype_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * .tensorflow.DataType dtype = 1;
+     * @return The dtype.
+     */
+    @java.lang.Override
+    public org.tensorflow.proto.DataType getDtype() {
+      @SuppressWarnings("deprecation")
+      org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_);
+      return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result;
+    }
+    /**
+     * .tensorflow.DataType dtype = 1;
+     * @param value The dtype to set.
+     * @return This builder for chaining.
+     */
+    public Builder setDtype(org.tensorflow.proto.DataType value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
+      
+      dtype_ = value.getNumber();
+      onChanged();
+      return this;
+    }
+    /**
+     * .tensorflow.DataType dtype = 1;
+     * @return This builder for chaining.
+     */
+    public Builder clearDtype() {
+      
+      dtype_ = 0;
+      onChanged();
+      return this;
+    }
+
+    private java.lang.Object valuesOutputTensorName_ = "";
+    /**
+     * string values_output_tensor_name = 2;
+     * @return The valuesOutputTensorName.
+     */
+    public java.lang.String getValuesOutputTensorName() {
+      java.lang.Object ref = valuesOutputTensorName_;
+      if (!(ref instanceof java.lang.String)) {
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
+        java.lang.String s = bs.toStringUtf8();
+        valuesOutputTensorName_ = s;
+        return s;
+      } else {
+        return (java.lang.String) ref;
+      }
+    }
+    /**
+     * string values_output_tensor_name = 2;
+     * @return The bytes for valuesOutputTensorName.
+     */
+    public com.google.protobuf.ByteString
+        getValuesOutputTensorNameBytes() {
+      java.lang.Object ref = valuesOutputTensorName_;
+      if (ref instanceof String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        valuesOutputTensorName_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+    /**
+     * string values_output_tensor_name = 2;
+     * @param value The valuesOutputTensorName to set.
+     * @return This builder for chaining.
+     */
+    public Builder setValuesOutputTensorName(
+        java.lang.String value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  
+      valuesOutputTensorName_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * string values_output_tensor_name = 2;
+     * @return This builder for chaining.
+     */
+    public Builder clearValuesOutputTensorName() {
+      
+      valuesOutputTensorName_ = getDefaultInstance().getValuesOutputTensorName();
+      onChanged();
+      return this;
+    }
+    /**
+     * string values_output_tensor_name = 2;
+     * @param value The bytes for valuesOutputTensorName to set.
+     * @return This builder for chaining.
+     */
+    public Builder setValuesOutputTensorNameBytes(
+        com.google.protobuf.ByteString value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  checkByteStringIsUtf8(value);
+      
+      valuesOutputTensorName_ = value;
+      onChanged();
+      return this;
+    }
+
+    private java.lang.Object indicesOutputTensorName_ = "";
+    /**
+     * string indices_output_tensor_name = 3;
+     * @return The indicesOutputTensorName.
+     */
+    public java.lang.String getIndicesOutputTensorName() {
+      java.lang.Object ref = indicesOutputTensorName_;
+      if (!(ref instanceof java.lang.String)) {
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
+        java.lang.String s = bs.toStringUtf8();
+        indicesOutputTensorName_ = s;
+        return s;
+      } else {
+        return (java.lang.String) ref;
+      }
+    }
+    /**
+     * string indices_output_tensor_name = 3;
+     * @return The bytes for indicesOutputTensorName.
+     */
+    public com.google.protobuf.ByteString
+        getIndicesOutputTensorNameBytes() {
+      java.lang.Object ref = indicesOutputTensorName_;
+      if (ref instanceof String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        indicesOutputTensorName_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+    /**
+     * string indices_output_tensor_name = 3;
+     * @param value The indicesOutputTensorName to set.
+     * @return This builder for chaining.
+     */
+    public Builder setIndicesOutputTensorName(
+        java.lang.String value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  
+      indicesOutputTensorName_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * string indices_output_tensor_name = 3;
+     * @return This builder for chaining.
+     */
+    public Builder clearIndicesOutputTensorName() {
+      
+      indicesOutputTensorName_ = getDefaultInstance().getIndicesOutputTensorName();
+      onChanged();
+      return this;
+    }
+    /**
+     * string indices_output_tensor_name = 3;
+     * @param value The bytes for indicesOutputTensorName to set.
+     * @return This builder for chaining.
+     */
+    public Builder setIndicesOutputTensorNameBytes(
+        com.google.protobuf.ByteString value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  checkByteStringIsUtf8(value);
+      
+      indicesOutputTensorName_ = value;
+      onChanged();
+      return this;
+    }
+
+    private java.lang.Object shapesOutputTensorName_ = "";
+    /**
+     * string shapes_output_tensor_name = 4;
+     * @return The shapesOutputTensorName.
+     */
+    public java.lang.String getShapesOutputTensorName() {
+      java.lang.Object ref = shapesOutputTensorName_;
+      if (!(ref instanceof java.lang.String)) {
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
+        java.lang.String s = bs.toStringUtf8();
+        shapesOutputTensorName_ = s;
+        return s;
+      } else {
+        return (java.lang.String) ref;
+      }
+    }
+    /**
+     * string shapes_output_tensor_name = 4;
+     * @return The bytes for shapesOutputTensorName.
+     */
+    public com.google.protobuf.ByteString
+        getShapesOutputTensorNameBytes() {
+      java.lang.Object ref = shapesOutputTensorName_;
+      if (ref instanceof String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        shapesOutputTensorName_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+    /**
+     * string shapes_output_tensor_name = 4;
+     * @param value The shapesOutputTensorName to set.
+     * @return This builder for chaining.
+     */
+    public Builder setShapesOutputTensorName(
+        java.lang.String value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  
+      shapesOutputTensorName_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * string shapes_output_tensor_name = 4;
+     * @return This builder for chaining.
+     */
+    public Builder clearShapesOutputTensorName() {
+      
+      shapesOutputTensorName_ = getDefaultInstance().getShapesOutputTensorName();
+      onChanged();
+      return this;
+    }
+    /**
+     * string shapes_output_tensor_name = 4;
+     * @param value The bytes for shapesOutputTensorName to set.
+     * @return This builder for chaining.
+     */
+    public Builder setShapesOutputTensorNameBytes(
+        com.google.protobuf.ByteString value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  checkByteStringIsUtf8(value);
+      
+      shapesOutputTensorName_ = value;
+      onChanged();
+      return this;
+    }
+    @java.lang.Override
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
+      return super.setUnknownFields(unknownFields);
+    }
+
+    @java.lang.Override
+    public final Builder mergeUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
+      return super.mergeUnknownFields(unknownFields);
+    }
+
+
+    // @@protoc_insertion_point(builder_scope:tensorflow.VarLenFeatureProto)
+  }
+
+  // @@protoc_insertion_point(class_scope:tensorflow.VarLenFeatureProto)
+  private static final org.tensorflow.proto.VarLenFeatureProto DEFAULT_INSTANCE;
+  static {
+    DEFAULT_INSTANCE = new org.tensorflow.proto.VarLenFeatureProto();
+  }
+
+  public static org.tensorflow.proto.VarLenFeatureProto getDefaultInstance() {
+    return DEFAULT_INSTANCE;
+  }
+
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public VarLenFeatureProto 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 org.tensorflow.proto.VarLenFeatureProto getDefaultInstanceForType() {
+    return DEFAULT_INSTANCE;
+  }
+
+}
+
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VarLenFeatureProtoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VarLenFeatureProtoOrBuilder.java
new file mode 100644
index 00000000000..fb30c882fb0
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VarLenFeatureProtoOrBuilder.java
@@ -0,0 +1,56 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/example/example_parser_configuration.proto
+
+package org.tensorflow.proto;
+
+public interface VarLenFeatureProtoOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:tensorflow.VarLenFeatureProto)
+    com.google.protobuf.MessageOrBuilder {
+
+  /**
+   * .tensorflow.DataType dtype = 1;
+   * @return The enum numeric value on the wire for dtype.
+   */
+  int getDtypeValue();
+  /**
+   * .tensorflow.DataType dtype = 1;
+   * @return The dtype.
+   */
+  org.tensorflow.proto.DataType getDtype();
+
+  /**
+   * string values_output_tensor_name = 2;
+   * @return The valuesOutputTensorName.
+   */
+  java.lang.String getValuesOutputTensorName();
+  /**
+   * string values_output_tensor_name = 2;
+   * @return The bytes for valuesOutputTensorName.
+   */
+  com.google.protobuf.ByteString
+      getValuesOutputTensorNameBytes();
+
+  /**
+   * string indices_output_tensor_name = 3;
+   * @return The indicesOutputTensorName.
+   */
+  java.lang.String getIndicesOutputTensorName();
+  /**
+   * string indices_output_tensor_name = 3;
+   * @return The bytes for indicesOutputTensorName.
+   */
+  com.google.protobuf.ByteString
+      getIndicesOutputTensorNameBytes();
+
+  /**
+   * string shapes_output_tensor_name = 4;
+   * @return The shapesOutputTensorName.
+   */
+  java.lang.String getShapesOutputTensorName();
+  /**
+   * string shapes_output_tensor_name = 4;
+   * @return The bytes for shapesOutputTensorName.
+   */
+  com.google.protobuf.ByteString
+      getShapesOutputTensorNameBytes();
+}
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VariableAggregation.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VariableAggregation.java
similarity index 88%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VariableAggregation.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VariableAggregation.java
index 584cd9b19bd..9372c9c5548 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VariableAggregation.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VariableAggregation.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/framework/variable.proto
 
-package org.tensorflow.proto.framework;
+package org.tensorflow.proto;
 
 /**
  * 
@@ -98,6 +98,8 @@ public final int getNumber() {
   }
 
   /**
+   * @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
@@ -105,6 +107,10 @@ public static VariableAggregation 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 VariableAggregation forNumber(int value) {
     switch (value) {
       case 0: return VARIABLE_AGGREGATION_NONE;
@@ -129,6 +135,10 @@ public VariableAggregation findValueByNumber(int 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
@@ -137,7 +147,7 @@ public VariableAggregation findValueByNumber(int number) {
   }
   public static final com.google.protobuf.Descriptors.EnumDescriptor
       getDescriptor() {
-    return org.tensorflow.proto.framework.VariableProtos.getDescriptor().getEnumTypes().get(1);
+    return org.tensorflow.proto.VariableProtos.getDescriptor().getEnumTypes().get(1);
   }
 
   private static final VariableAggregation[] VALUES = values();
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VariableDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VariableDef.java
new file mode 100644
index 00000000000..e0ce4931dd0
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VariableDef.java
@@ -0,0 +1,1707 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/framework/variable.proto
+
+package org.tensorflow.proto;
+
+/**
+ * 
+ * Protocol buffer representing a Variable.
+ * 
+ * + * Protobuf type {@code tensorflow.VariableDef} + */ +public final class VariableDef extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.VariableDef) + VariableDefOrBuilder { +private static final long serialVersionUID = 0L; + // Use VariableDef.newBuilder() to construct. + private VariableDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VariableDef() { + variableName_ = ""; + initialValueName_ = ""; + initializerName_ = ""; + snapshotName_ = ""; + synchronization_ = 0; + aggregation_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new VariableDef(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.VariableProtos.internal_static_tensorflow_VariableDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.VariableProtos.internal_static_tensorflow_VariableDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.VariableDef.class, org.tensorflow.proto.VariableDef.Builder.class); + } + + public static final int VARIABLE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object variableName_; + /** + *
+   * Name of the variable tensor.
+   * 
+ * + * string variable_name = 1; + * @return The variableName. + */ + @java.lang.Override + public java.lang.String getVariableName() { + java.lang.Object ref = variableName_; + 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(); + variableName_ = s; + return s; + } + } + /** + *
+   * Name of the variable tensor.
+   * 
+ * + * string variable_name = 1; + * @return The bytes for variableName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVariableNameBytes() { + java.lang.Object ref = variableName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + variableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INITIAL_VALUE_NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object initialValueName_; + /** + *
+   * Name of the tensor holding the variable's initial value.
+   * 
+ * + * string initial_value_name = 6; + * @return The initialValueName. + */ + @java.lang.Override + public java.lang.String getInitialValueName() { + java.lang.Object ref = initialValueName_; + 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(); + initialValueName_ = s; + return s; + } + } + /** + *
+   * Name of the tensor holding the variable's initial value.
+   * 
+ * + * string initial_value_name = 6; + * @return The bytes for initialValueName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getInitialValueNameBytes() { + java.lang.Object ref = initialValueName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + initialValueName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INITIALIZER_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object initializerName_; + /** + *
+   * Name of the initializer op.
+   * 
+ * + * string initializer_name = 2; + * @return The initializerName. + */ + @java.lang.Override + public java.lang.String getInitializerName() { + java.lang.Object ref = initializerName_; + 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(); + initializerName_ = s; + return s; + } + } + /** + *
+   * Name of the initializer op.
+   * 
+ * + * string initializer_name = 2; + * @return The bytes for initializerName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getInitializerNameBytes() { + java.lang.Object ref = initializerName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + initializerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SNAPSHOT_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object snapshotName_; + /** + *
+   * Name of the snapshot tensor.
+   * 
+ * + * string snapshot_name = 3; + * @return The snapshotName. + */ + @java.lang.Override + public java.lang.String getSnapshotName() { + java.lang.Object ref = snapshotName_; + 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(); + snapshotName_ = s; + return s; + } + } + /** + *
+   * Name of the snapshot tensor.
+   * 
+ * + * string snapshot_name = 3; + * @return The bytes for snapshotName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSnapshotNameBytes() { + java.lang.Object ref = snapshotName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + snapshotName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SAVE_SLICE_INFO_DEF_FIELD_NUMBER = 4; + private org.tensorflow.proto.SaveSliceInfoDef saveSliceInfoDef_; + /** + *
+   * Support for saving variables as slices of a larger variable.
+   * 
+ * + * .tensorflow.SaveSliceInfoDef save_slice_info_def = 4; + * @return Whether the saveSliceInfoDef field is set. + */ + @java.lang.Override + public boolean hasSaveSliceInfoDef() { + return saveSliceInfoDef_ != null; + } + /** + *
+   * Support for saving variables as slices of a larger variable.
+   * 
+ * + * .tensorflow.SaveSliceInfoDef save_slice_info_def = 4; + * @return The saveSliceInfoDef. + */ + @java.lang.Override + public org.tensorflow.proto.SaveSliceInfoDef getSaveSliceInfoDef() { + return saveSliceInfoDef_ == null ? org.tensorflow.proto.SaveSliceInfoDef.getDefaultInstance() : saveSliceInfoDef_; + } + /** + *
+   * Support for saving variables as slices of a larger variable.
+   * 
+ * + * .tensorflow.SaveSliceInfoDef save_slice_info_def = 4; + */ + @java.lang.Override + public org.tensorflow.proto.SaveSliceInfoDefOrBuilder getSaveSliceInfoDefOrBuilder() { + return getSaveSliceInfoDef(); + } + + public static final int IS_RESOURCE_FIELD_NUMBER = 5; + private boolean isResource_; + /** + *
+   * Whether to represent this as a ResourceVariable.
+   * 
+ * + * bool is_resource = 5; + * @return The isResource. + */ + @java.lang.Override + public boolean getIsResource() { + return isResource_; + } + + public static final int TRAINABLE_FIELD_NUMBER = 7; + private boolean trainable_; + /** + *
+   * Whether this variable should be trained.
+   * 
+ * + * bool trainable = 7; + * @return The trainable. + */ + @java.lang.Override + public boolean getTrainable() { + return trainable_; + } + + public static final int SYNCHRONIZATION_FIELD_NUMBER = 8; + private int synchronization_; + /** + *
+   * Indicates when a distributed variable will be synced.
+   * 
+ * + * .tensorflow.VariableSynchronization synchronization = 8; + * @return The enum numeric value on the wire for synchronization. + */ + @java.lang.Override public int getSynchronizationValue() { + return synchronization_; + } + /** + *
+   * Indicates when a distributed variable will be synced.
+   * 
+ * + * .tensorflow.VariableSynchronization synchronization = 8; + * @return The synchronization. + */ + @java.lang.Override public org.tensorflow.proto.VariableSynchronization getSynchronization() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.VariableSynchronization result = org.tensorflow.proto.VariableSynchronization.valueOf(synchronization_); + return result == null ? org.tensorflow.proto.VariableSynchronization.UNRECOGNIZED : result; + } + + public static final int AGGREGATION_FIELD_NUMBER = 9; + private int aggregation_; + /** + *
+   * Indicates how a distributed variable will be aggregated.
+   * 
+ * + * .tensorflow.VariableAggregation aggregation = 9; + * @return The enum numeric value on the wire for aggregation. + */ + @java.lang.Override public int getAggregationValue() { + return aggregation_; + } + /** + *
+   * Indicates how a distributed variable will be aggregated.
+   * 
+ * + * .tensorflow.VariableAggregation aggregation = 9; + * @return The aggregation. + */ + @java.lang.Override public org.tensorflow.proto.VariableAggregation getAggregation() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.VariableAggregation result = org.tensorflow.proto.VariableAggregation.valueOf(aggregation_); + return result == null ? org.tensorflow.proto.VariableAggregation.UNRECOGNIZED : result; + } + + 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(variableName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, variableName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(initializerName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, initializerName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, snapshotName_); + } + if (saveSliceInfoDef_ != null) { + output.writeMessage(4, getSaveSliceInfoDef()); + } + if (isResource_ != false) { + output.writeBool(5, isResource_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(initialValueName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, initialValueName_); + } + if (trainable_ != false) { + output.writeBool(7, trainable_); + } + if (synchronization_ != org.tensorflow.proto.VariableSynchronization.VARIABLE_SYNCHRONIZATION_AUTO.getNumber()) { + output.writeEnum(8, synchronization_); + } + if (aggregation_ != org.tensorflow.proto.VariableAggregation.VARIABLE_AGGREGATION_NONE.getNumber()) { + output.writeEnum(9, aggregation_); + } + 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(variableName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, variableName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(initializerName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, initializerName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, snapshotName_); + } + if (saveSliceInfoDef_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSaveSliceInfoDef()); + } + if (isResource_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, isResource_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(initialValueName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, initialValueName_); + } + if (trainable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, trainable_); + } + if (synchronization_ != org.tensorflow.proto.VariableSynchronization.VARIABLE_SYNCHRONIZATION_AUTO.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, synchronization_); + } + if (aggregation_ != org.tensorflow.proto.VariableAggregation.VARIABLE_AGGREGATION_NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, aggregation_); + } + 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 org.tensorflow.proto.VariableDef)) { + return super.equals(obj); + } + org.tensorflow.proto.VariableDef other = (org.tensorflow.proto.VariableDef) obj; + + if (!getVariableName() + .equals(other.getVariableName())) return false; + if (!getInitialValueName() + .equals(other.getInitialValueName())) return false; + if (!getInitializerName() + .equals(other.getInitializerName())) return false; + if (!getSnapshotName() + .equals(other.getSnapshotName())) return false; + if (hasSaveSliceInfoDef() != other.hasSaveSliceInfoDef()) return false; + if (hasSaveSliceInfoDef()) { + if (!getSaveSliceInfoDef() + .equals(other.getSaveSliceInfoDef())) return false; + } + if (getIsResource() + != other.getIsResource()) return false; + if (getTrainable() + != other.getTrainable()) return false; + if (synchronization_ != other.synchronization_) return false; + if (aggregation_ != other.aggregation_) 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) + VARIABLE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getVariableName().hashCode(); + hash = (37 * hash) + INITIAL_VALUE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getInitialValueName().hashCode(); + hash = (37 * hash) + INITIALIZER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getInitializerName().hashCode(); + hash = (37 * hash) + SNAPSHOT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSnapshotName().hashCode(); + if (hasSaveSliceInfoDef()) { + hash = (37 * hash) + SAVE_SLICE_INFO_DEF_FIELD_NUMBER; + hash = (53 * hash) + getSaveSliceInfoDef().hashCode(); + } + hash = (37 * hash) + IS_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsResource()); + hash = (37 * hash) + TRAINABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTrainable()); + hash = (37 * hash) + SYNCHRONIZATION_FIELD_NUMBER; + hash = (53 * hash) + synchronization_; + hash = (37 * hash) + AGGREGATION_FIELD_NUMBER; + hash = (53 * hash) + aggregation_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.VariableDef parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.VariableDef parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.VariableDef parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.VariableDef parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.VariableDef parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.VariableDef parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.VariableDef parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.VariableDef 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 org.tensorflow.proto.VariableDef parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.VariableDef 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 org.tensorflow.proto.VariableDef parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.VariableDef 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(org.tensorflow.proto.VariableDef 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; + } + /** + *
+   * Protocol buffer representing a Variable.
+   * 
+ * + * Protobuf type {@code tensorflow.VariableDef} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.VariableDef) + org.tensorflow.proto.VariableDefOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.VariableProtos.internal_static_tensorflow_VariableDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.VariableProtos.internal_static_tensorflow_VariableDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.VariableDef.class, org.tensorflow.proto.VariableDef.Builder.class); + } + + // Construct using org.tensorflow.proto.VariableDef.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + variableName_ = ""; + + initialValueName_ = ""; + + initializerName_ = ""; + + snapshotName_ = ""; + + if (saveSliceInfoDefBuilder_ == null) { + saveSliceInfoDef_ = null; + } else { + saveSliceInfoDef_ = null; + saveSliceInfoDefBuilder_ = null; + } + isResource_ = false; + + trainable_ = false; + + synchronization_ = 0; + + aggregation_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.VariableProtos.internal_static_tensorflow_VariableDef_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.VariableDef getDefaultInstanceForType() { + return org.tensorflow.proto.VariableDef.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.VariableDef build() { + org.tensorflow.proto.VariableDef result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.VariableDef buildPartial() { + org.tensorflow.proto.VariableDef result = new org.tensorflow.proto.VariableDef(this); + result.variableName_ = variableName_; + result.initialValueName_ = initialValueName_; + result.initializerName_ = initializerName_; + result.snapshotName_ = snapshotName_; + if (saveSliceInfoDefBuilder_ == null) { + result.saveSliceInfoDef_ = saveSliceInfoDef_; + } else { + result.saveSliceInfoDef_ = saveSliceInfoDefBuilder_.build(); + } + result.isResource_ = isResource_; + result.trainable_ = trainable_; + result.synchronization_ = synchronization_; + result.aggregation_ = aggregation_; + 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 org.tensorflow.proto.VariableDef) { + return mergeFrom((org.tensorflow.proto.VariableDef)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.VariableDef other) { + if (other == org.tensorflow.proto.VariableDef.getDefaultInstance()) return this; + if (!other.getVariableName().isEmpty()) { + variableName_ = other.variableName_; + onChanged(); + } + if (!other.getInitialValueName().isEmpty()) { + initialValueName_ = other.initialValueName_; + onChanged(); + } + if (!other.getInitializerName().isEmpty()) { + initializerName_ = other.initializerName_; + onChanged(); + } + if (!other.getSnapshotName().isEmpty()) { + snapshotName_ = other.snapshotName_; + onChanged(); + } + if (other.hasSaveSliceInfoDef()) { + mergeSaveSliceInfoDef(other.getSaveSliceInfoDef()); + } + if (other.getIsResource() != false) { + setIsResource(other.getIsResource()); + } + if (other.getTrainable() != false) { + setTrainable(other.getTrainable()); + } + if (other.synchronization_ != 0) { + setSynchronizationValue(other.getSynchronizationValue()); + } + if (other.aggregation_ != 0) { + setAggregationValue(other.getAggregationValue()); + } + 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: { + variableName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + initializerName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + snapshotName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + input.readMessage( + getSaveSliceInfoDefFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 40: { + isResource_ = input.readBool(); + + break; + } // case 40 + case 50: { + initialValueName_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 56: { + trainable_ = input.readBool(); + + break; + } // case 56 + case 64: { + synchronization_ = input.readEnum(); + + break; + } // case 64 + case 72: { + aggregation_ = input.readEnum(); + + break; + } // case 72 + 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 java.lang.Object variableName_ = ""; + /** + *
+     * Name of the variable tensor.
+     * 
+ * + * string variable_name = 1; + * @return The variableName. + */ + public java.lang.String getVariableName() { + java.lang.Object ref = variableName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + variableName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Name of the variable tensor.
+     * 
+ * + * string variable_name = 1; + * @return The bytes for variableName. + */ + public com.google.protobuf.ByteString + getVariableNameBytes() { + java.lang.Object ref = variableName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + variableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Name of the variable tensor.
+     * 
+ * + * string variable_name = 1; + * @param value The variableName to set. + * @return This builder for chaining. + */ + public Builder setVariableName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + variableName_ = value; + onChanged(); + return this; + } + /** + *
+     * Name of the variable tensor.
+     * 
+ * + * string variable_name = 1; + * @return This builder for chaining. + */ + public Builder clearVariableName() { + + variableName_ = getDefaultInstance().getVariableName(); + onChanged(); + return this; + } + /** + *
+     * Name of the variable tensor.
+     * 
+ * + * string variable_name = 1; + * @param value The bytes for variableName to set. + * @return This builder for chaining. + */ + public Builder setVariableNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + variableName_ = value; + onChanged(); + return this; + } + + private java.lang.Object initialValueName_ = ""; + /** + *
+     * Name of the tensor holding the variable's initial value.
+     * 
+ * + * string initial_value_name = 6; + * @return The initialValueName. + */ + public java.lang.String getInitialValueName() { + java.lang.Object ref = initialValueName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initialValueName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Name of the tensor holding the variable's initial value.
+     * 
+ * + * string initial_value_name = 6; + * @return The bytes for initialValueName. + */ + public com.google.protobuf.ByteString + getInitialValueNameBytes() { + java.lang.Object ref = initialValueName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + initialValueName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Name of the tensor holding the variable's initial value.
+     * 
+ * + * string initial_value_name = 6; + * @param value The initialValueName to set. + * @return This builder for chaining. + */ + public Builder setInitialValueName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + initialValueName_ = value; + onChanged(); + return this; + } + /** + *
+     * Name of the tensor holding the variable's initial value.
+     * 
+ * + * string initial_value_name = 6; + * @return This builder for chaining. + */ + public Builder clearInitialValueName() { + + initialValueName_ = getDefaultInstance().getInitialValueName(); + onChanged(); + return this; + } + /** + *
+     * Name of the tensor holding the variable's initial value.
+     * 
+ * + * string initial_value_name = 6; + * @param value The bytes for initialValueName to set. + * @return This builder for chaining. + */ + public Builder setInitialValueNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + initialValueName_ = value; + onChanged(); + return this; + } + + private java.lang.Object initializerName_ = ""; + /** + *
+     * Name of the initializer op.
+     * 
+ * + * string initializer_name = 2; + * @return The initializerName. + */ + public java.lang.String getInitializerName() { + java.lang.Object ref = initializerName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initializerName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Name of the initializer op.
+     * 
+ * + * string initializer_name = 2; + * @return The bytes for initializerName. + */ + public com.google.protobuf.ByteString + getInitializerNameBytes() { + java.lang.Object ref = initializerName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + initializerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Name of the initializer op.
+     * 
+ * + * string initializer_name = 2; + * @param value The initializerName to set. + * @return This builder for chaining. + */ + public Builder setInitializerName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + initializerName_ = value; + onChanged(); + return this; + } + /** + *
+     * Name of the initializer op.
+     * 
+ * + * string initializer_name = 2; + * @return This builder for chaining. + */ + public Builder clearInitializerName() { + + initializerName_ = getDefaultInstance().getInitializerName(); + onChanged(); + return this; + } + /** + *
+     * Name of the initializer op.
+     * 
+ * + * string initializer_name = 2; + * @param value The bytes for initializerName to set. + * @return This builder for chaining. + */ + public Builder setInitializerNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + initializerName_ = value; + onChanged(); + return this; + } + + private java.lang.Object snapshotName_ = ""; + /** + *
+     * Name of the snapshot tensor.
+     * 
+ * + * string snapshot_name = 3; + * @return The snapshotName. + */ + public java.lang.String getSnapshotName() { + java.lang.Object ref = snapshotName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshotName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Name of the snapshot tensor.
+     * 
+ * + * string snapshot_name = 3; + * @return The bytes for snapshotName. + */ + public com.google.protobuf.ByteString + getSnapshotNameBytes() { + java.lang.Object ref = snapshotName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + snapshotName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Name of the snapshot tensor.
+     * 
+ * + * string snapshot_name = 3; + * @param value The snapshotName to set. + * @return This builder for chaining. + */ + public Builder setSnapshotName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + snapshotName_ = value; + onChanged(); + return this; + } + /** + *
+     * Name of the snapshot tensor.
+     * 
+ * + * string snapshot_name = 3; + * @return This builder for chaining. + */ + public Builder clearSnapshotName() { + + snapshotName_ = getDefaultInstance().getSnapshotName(); + onChanged(); + return this; + } + /** + *
+     * Name of the snapshot tensor.
+     * 
+ * + * string snapshot_name = 3; + * @param value The bytes for snapshotName to set. + * @return This builder for chaining. + */ + public Builder setSnapshotNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + snapshotName_ = value; + onChanged(); + return this; + } + + private org.tensorflow.proto.SaveSliceInfoDef saveSliceInfoDef_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SaveSliceInfoDef, org.tensorflow.proto.SaveSliceInfoDef.Builder, org.tensorflow.proto.SaveSliceInfoDefOrBuilder> saveSliceInfoDefBuilder_; + /** + *
+     * Support for saving variables as slices of a larger variable.
+     * 
+ * + * .tensorflow.SaveSliceInfoDef save_slice_info_def = 4; + * @return Whether the saveSliceInfoDef field is set. + */ + public boolean hasSaveSliceInfoDef() { + return saveSliceInfoDefBuilder_ != null || saveSliceInfoDef_ != null; + } + /** + *
+     * Support for saving variables as slices of a larger variable.
+     * 
+ * + * .tensorflow.SaveSliceInfoDef save_slice_info_def = 4; + * @return The saveSliceInfoDef. + */ + public org.tensorflow.proto.SaveSliceInfoDef getSaveSliceInfoDef() { + if (saveSliceInfoDefBuilder_ == null) { + return saveSliceInfoDef_ == null ? org.tensorflow.proto.SaveSliceInfoDef.getDefaultInstance() : saveSliceInfoDef_; + } else { + return saveSliceInfoDefBuilder_.getMessage(); + } + } + /** + *
+     * Support for saving variables as slices of a larger variable.
+     * 
+ * + * .tensorflow.SaveSliceInfoDef save_slice_info_def = 4; + */ + public Builder setSaveSliceInfoDef(org.tensorflow.proto.SaveSliceInfoDef value) { + if (saveSliceInfoDefBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + saveSliceInfoDef_ = value; + onChanged(); + } else { + saveSliceInfoDefBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Support for saving variables as slices of a larger variable.
+     * 
+ * + * .tensorflow.SaveSliceInfoDef save_slice_info_def = 4; + */ + public Builder setSaveSliceInfoDef( + org.tensorflow.proto.SaveSliceInfoDef.Builder builderForValue) { + if (saveSliceInfoDefBuilder_ == null) { + saveSliceInfoDef_ = builderForValue.build(); + onChanged(); + } else { + saveSliceInfoDefBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Support for saving variables as slices of a larger variable.
+     * 
+ * + * .tensorflow.SaveSliceInfoDef save_slice_info_def = 4; + */ + public Builder mergeSaveSliceInfoDef(org.tensorflow.proto.SaveSliceInfoDef value) { + if (saveSliceInfoDefBuilder_ == null) { + if (saveSliceInfoDef_ != null) { + saveSliceInfoDef_ = + org.tensorflow.proto.SaveSliceInfoDef.newBuilder(saveSliceInfoDef_).mergeFrom(value).buildPartial(); + } else { + saveSliceInfoDef_ = value; + } + onChanged(); + } else { + saveSliceInfoDefBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Support for saving variables as slices of a larger variable.
+     * 
+ * + * .tensorflow.SaveSliceInfoDef save_slice_info_def = 4; + */ + public Builder clearSaveSliceInfoDef() { + if (saveSliceInfoDefBuilder_ == null) { + saveSliceInfoDef_ = null; + onChanged(); + } else { + saveSliceInfoDef_ = null; + saveSliceInfoDefBuilder_ = null; + } + + return this; + } + /** + *
+     * Support for saving variables as slices of a larger variable.
+     * 
+ * + * .tensorflow.SaveSliceInfoDef save_slice_info_def = 4; + */ + public org.tensorflow.proto.SaveSliceInfoDef.Builder getSaveSliceInfoDefBuilder() { + + onChanged(); + return getSaveSliceInfoDefFieldBuilder().getBuilder(); + } + /** + *
+     * Support for saving variables as slices of a larger variable.
+     * 
+ * + * .tensorflow.SaveSliceInfoDef save_slice_info_def = 4; + */ + public org.tensorflow.proto.SaveSliceInfoDefOrBuilder getSaveSliceInfoDefOrBuilder() { + if (saveSliceInfoDefBuilder_ != null) { + return saveSliceInfoDefBuilder_.getMessageOrBuilder(); + } else { + return saveSliceInfoDef_ == null ? + org.tensorflow.proto.SaveSliceInfoDef.getDefaultInstance() : saveSliceInfoDef_; + } + } + /** + *
+     * Support for saving variables as slices of a larger variable.
+     * 
+ * + * .tensorflow.SaveSliceInfoDef save_slice_info_def = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SaveSliceInfoDef, org.tensorflow.proto.SaveSliceInfoDef.Builder, org.tensorflow.proto.SaveSliceInfoDefOrBuilder> + getSaveSliceInfoDefFieldBuilder() { + if (saveSliceInfoDefBuilder_ == null) { + saveSliceInfoDefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.SaveSliceInfoDef, org.tensorflow.proto.SaveSliceInfoDef.Builder, org.tensorflow.proto.SaveSliceInfoDefOrBuilder>( + getSaveSliceInfoDef(), + getParentForChildren(), + isClean()); + saveSliceInfoDef_ = null; + } + return saveSliceInfoDefBuilder_; + } + + private boolean isResource_ ; + /** + *
+     * Whether to represent this as a ResourceVariable.
+     * 
+ * + * bool is_resource = 5; + * @return The isResource. + */ + @java.lang.Override + public boolean getIsResource() { + return isResource_; + } + /** + *
+     * Whether to represent this as a ResourceVariable.
+     * 
+ * + * bool is_resource = 5; + * @param value The isResource to set. + * @return This builder for chaining. + */ + public Builder setIsResource(boolean value) { + + isResource_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether to represent this as a ResourceVariable.
+     * 
+ * + * bool is_resource = 5; + * @return This builder for chaining. + */ + public Builder clearIsResource() { + + isResource_ = false; + onChanged(); + return this; + } + + private boolean trainable_ ; + /** + *
+     * Whether this variable should be trained.
+     * 
+ * + * bool trainable = 7; + * @return The trainable. + */ + @java.lang.Override + public boolean getTrainable() { + return trainable_; + } + /** + *
+     * Whether this variable should be trained.
+     * 
+ * + * bool trainable = 7; + * @param value The trainable to set. + * @return This builder for chaining. + */ + public Builder setTrainable(boolean value) { + + trainable_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether this variable should be trained.
+     * 
+ * + * bool trainable = 7; + * @return This builder for chaining. + */ + public Builder clearTrainable() { + + trainable_ = false; + onChanged(); + return this; + } + + private int synchronization_ = 0; + /** + *
+     * Indicates when a distributed variable will be synced.
+     * 
+ * + * .tensorflow.VariableSynchronization synchronization = 8; + * @return The enum numeric value on the wire for synchronization. + */ + @java.lang.Override public int getSynchronizationValue() { + return synchronization_; + } + /** + *
+     * Indicates when a distributed variable will be synced.
+     * 
+ * + * .tensorflow.VariableSynchronization synchronization = 8; + * @param value The enum numeric value on the wire for synchronization to set. + * @return This builder for chaining. + */ + public Builder setSynchronizationValue(int value) { + + synchronization_ = value; + onChanged(); + return this; + } + /** + *
+     * Indicates when a distributed variable will be synced.
+     * 
+ * + * .tensorflow.VariableSynchronization synchronization = 8; + * @return The synchronization. + */ + @java.lang.Override + public org.tensorflow.proto.VariableSynchronization getSynchronization() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.VariableSynchronization result = org.tensorflow.proto.VariableSynchronization.valueOf(synchronization_); + return result == null ? org.tensorflow.proto.VariableSynchronization.UNRECOGNIZED : result; + } + /** + *
+     * Indicates when a distributed variable will be synced.
+     * 
+ * + * .tensorflow.VariableSynchronization synchronization = 8; + * @param value The synchronization to set. + * @return This builder for chaining. + */ + public Builder setSynchronization(org.tensorflow.proto.VariableSynchronization value) { + if (value == null) { + throw new NullPointerException(); + } + + synchronization_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Indicates when a distributed variable will be synced.
+     * 
+ * + * .tensorflow.VariableSynchronization synchronization = 8; + * @return This builder for chaining. + */ + public Builder clearSynchronization() { + + synchronization_ = 0; + onChanged(); + return this; + } + + private int aggregation_ = 0; + /** + *
+     * Indicates how a distributed variable will be aggregated.
+     * 
+ * + * .tensorflow.VariableAggregation aggregation = 9; + * @return The enum numeric value on the wire for aggregation. + */ + @java.lang.Override public int getAggregationValue() { + return aggregation_; + } + /** + *
+     * Indicates how a distributed variable will be aggregated.
+     * 
+ * + * .tensorflow.VariableAggregation aggregation = 9; + * @param value The enum numeric value on the wire for aggregation to set. + * @return This builder for chaining. + */ + public Builder setAggregationValue(int value) { + + aggregation_ = value; + onChanged(); + return this; + } + /** + *
+     * Indicates how a distributed variable will be aggregated.
+     * 
+ * + * .tensorflow.VariableAggregation aggregation = 9; + * @return The aggregation. + */ + @java.lang.Override + public org.tensorflow.proto.VariableAggregation getAggregation() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.VariableAggregation result = org.tensorflow.proto.VariableAggregation.valueOf(aggregation_); + return result == null ? org.tensorflow.proto.VariableAggregation.UNRECOGNIZED : result; + } + /** + *
+     * Indicates how a distributed variable will be aggregated.
+     * 
+ * + * .tensorflow.VariableAggregation aggregation = 9; + * @param value The aggregation to set. + * @return This builder for chaining. + */ + public Builder setAggregation(org.tensorflow.proto.VariableAggregation value) { + if (value == null) { + throw new NullPointerException(); + } + + aggregation_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Indicates how a distributed variable will be aggregated.
+     * 
+ * + * .tensorflow.VariableAggregation aggregation = 9; + * @return This builder for chaining. + */ + public Builder clearAggregation() { + + aggregation_ = 0; + 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:tensorflow.VariableDef) + } + + // @@protoc_insertion_point(class_scope:tensorflow.VariableDef) + private static final org.tensorflow.proto.VariableDef DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.VariableDef(); + } + + public static org.tensorflow.proto.VariableDef getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VariableDef 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 org.tensorflow.proto.VariableDef getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VariableDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VariableDefOrBuilder.java similarity index 77% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VariableDefOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VariableDefOrBuilder.java index 31cf5f0207a..4cc21270001 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VariableDefOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VariableDefOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/variable.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface VariableDefOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.VariableDef) @@ -13,6 +13,7 @@ public interface VariableDefOrBuilder extends *
* * string variable_name = 1; + * @return The variableName. */ java.lang.String getVariableName(); /** @@ -21,6 +22,7 @@ public interface VariableDefOrBuilder extends *
* * string variable_name = 1; + * @return The bytes for variableName. */ com.google.protobuf.ByteString getVariableNameBytes(); @@ -31,6 +33,7 @@ public interface VariableDefOrBuilder extends * * * string initial_value_name = 6; + * @return The initialValueName. */ java.lang.String getInitialValueName(); /** @@ -39,6 +42,7 @@ public interface VariableDefOrBuilder extends * * * string initial_value_name = 6; + * @return The bytes for initialValueName. */ com.google.protobuf.ByteString getInitialValueNameBytes(); @@ -49,6 +53,7 @@ public interface VariableDefOrBuilder extends * * * string initializer_name = 2; + * @return The initializerName. */ java.lang.String getInitializerName(); /** @@ -57,6 +62,7 @@ public interface VariableDefOrBuilder extends * * * string initializer_name = 2; + * @return The bytes for initializerName. */ com.google.protobuf.ByteString getInitializerNameBytes(); @@ -67,6 +73,7 @@ public interface VariableDefOrBuilder extends * * * string snapshot_name = 3; + * @return The snapshotName. */ java.lang.String getSnapshotName(); /** @@ -75,6 +82,7 @@ public interface VariableDefOrBuilder extends * * * string snapshot_name = 3; + * @return The bytes for snapshotName. */ com.google.protobuf.ByteString getSnapshotNameBytes(); @@ -85,6 +93,7 @@ public interface VariableDefOrBuilder extends * * * .tensorflow.SaveSliceInfoDef save_slice_info_def = 4; + * @return Whether the saveSliceInfoDef field is set. */ boolean hasSaveSliceInfoDef(); /** @@ -93,8 +102,9 @@ public interface VariableDefOrBuilder extends * * * .tensorflow.SaveSliceInfoDef save_slice_info_def = 4; + * @return The saveSliceInfoDef. */ - org.tensorflow.proto.framework.SaveSliceInfoDef getSaveSliceInfoDef(); + org.tensorflow.proto.SaveSliceInfoDef getSaveSliceInfoDef(); /** *
    * Support for saving variables as slices of a larger variable.
@@ -102,7 +112,7 @@ public interface VariableDefOrBuilder extends
    *
    * .tensorflow.SaveSliceInfoDef save_slice_info_def = 4;
    */
-  org.tensorflow.proto.framework.SaveSliceInfoDefOrBuilder getSaveSliceInfoDefOrBuilder();
+  org.tensorflow.proto.SaveSliceInfoDefOrBuilder getSaveSliceInfoDefOrBuilder();
 
   /**
    * 
@@ -110,6 +120,7 @@ public interface VariableDefOrBuilder extends
    * 
* * bool is_resource = 5; + * @return The isResource. */ boolean getIsResource(); @@ -119,6 +130,7 @@ public interface VariableDefOrBuilder extends *
* * bool trainable = 7; + * @return The trainable. */ boolean getTrainable(); @@ -128,6 +140,7 @@ public interface VariableDefOrBuilder extends * * * .tensorflow.VariableSynchronization synchronization = 8; + * @return The enum numeric value on the wire for synchronization. */ int getSynchronizationValue(); /** @@ -136,8 +149,9 @@ public interface VariableDefOrBuilder extends * * * .tensorflow.VariableSynchronization synchronization = 8; + * @return The synchronization. */ - org.tensorflow.proto.framework.VariableSynchronization getSynchronization(); + org.tensorflow.proto.VariableSynchronization getSynchronization(); /** *
@@ -145,6 +159,7 @@ public interface VariableDefOrBuilder extends
    * 
* * .tensorflow.VariableAggregation aggregation = 9; + * @return The enum numeric value on the wire for aggregation. */ int getAggregationValue(); /** @@ -153,6 +168,7 @@ public interface VariableDefOrBuilder extends * * * .tensorflow.VariableAggregation aggregation = 9; + * @return The aggregation. */ - org.tensorflow.proto.framework.VariableAggregation getAggregation(); + org.tensorflow.proto.VariableAggregation getAggregation(); } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VariableProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VariableProtos.java similarity index 92% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VariableProtos.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VariableProtos.java index 1d8c7d85e0a..1d42548c5ba 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VariableProtos.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VariableProtos.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/variable.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public final class VariableProtos { private VariableProtos() {} @@ -53,11 +53,10 @@ public static void registerAllExtensions( "on\022\035\n\031VARIABLE_AGGREGATION_NONE\020\000\022\034\n\030VAR" + "IABLE_AGGREGATION_SUM\020\001\022\035\n\031VARIABLE_AGGR" + "EGATION_MEAN\020\002\022+\n\'VARIABLE_AGGREGATION_O" + - "NLY_FIRST_REPLICA\020\003B\206\001\n\036org.tensorflow.p" + - "roto.frameworkB\016VariableProtosP\001ZOgithub" + - ".com/tensorflow/tensorflow/tensorflow/go" + - "/core/framework/variable_go_proto\370\001\001b\006pr" + - "oto3" + "NLY_FIRST_REPLICA\020\003B|\n\024org.tensorflow.pr" + + "otoB\016VariableProtosP\001ZOgithub.com/tensor" + + "flow/tensorflow/tensorflow/go/core/frame" + + "work/variable_go_proto\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VariableSynchronization.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VariableSynchronization.java similarity index 89% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VariableSynchronization.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VariableSynchronization.java index b71b26cdcc1..7753319d336 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VariableSynchronization.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VariableSynchronization.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/variable.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; /** *
@@ -102,6 +102,8 @@ public final int getNumber() {
   }
 
   /**
+   * @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
@@ -109,6 +111,10 @@ public static VariableSynchronization 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 VariableSynchronization forNumber(int value) {
     switch (value) {
       case 0: return VARIABLE_SYNCHRONIZATION_AUTO;
@@ -133,6 +139,10 @@ public VariableSynchronization findValueByNumber(int 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
@@ -141,7 +151,7 @@ public VariableSynchronization findValueByNumber(int number) {
   }
   public static final com.google.protobuf.Descriptors.EnumDescriptor
       getDescriptor() {
-    return org.tensorflow.proto.framework.VariableProtos.getDescriptor().getEnumTypes().get(0);
+    return org.tensorflow.proto.VariableProtos.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final VariableSynchronization[] VALUES = values();
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VariantTensorDataProto.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VariantTensorDataProto.java
new file mode 100644
index 00000000000..a5a08f0f3fb
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VariantTensorDataProto.java
@@ -0,0 +1,1101 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/framework/tensor.proto
+
+package org.tensorflow.proto;
+
+/**
+ * 
+ * Protocol buffer representing the serialization format of DT_VARIANT tensors.
+ * 
+ * + * Protobuf type {@code tensorflow.VariantTensorDataProto} + */ +public final class VariantTensorDataProto extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.VariantTensorDataProto) + VariantTensorDataProtoOrBuilder { +private static final long serialVersionUID = 0L; + // Use VariantTensorDataProto.newBuilder() to construct. + private VariantTensorDataProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VariantTensorDataProto() { + typeName_ = ""; + metadata_ = com.google.protobuf.ByteString.EMPTY; + tensors_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new VariantTensorDataProto(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TensorProtos.internal_static_tensorflow_VariantTensorDataProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TensorProtos.internal_static_tensorflow_VariantTensorDataProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.VariantTensorDataProto.class, org.tensorflow.proto.VariantTensorDataProto.Builder.class); + } + + public static final int TYPE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object typeName_; + /** + *
+   * Name of the type of objects being serialized.
+   * 
+ * + * string type_name = 1; + * @return The typeName. + */ + @java.lang.Override + public java.lang.String getTypeName() { + java.lang.Object ref = typeName_; + 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(); + typeName_ = s; + return s; + } + } + /** + *
+   * Name of the type of objects being serialized.
+   * 
+ * + * string type_name = 1; + * @return The bytes for typeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTypeNameBytes() { + java.lang.Object ref = typeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + typeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString metadata_; + /** + *
+   * Portions of the object that are not Tensors.
+   * 
+ * + * bytes metadata = 2; + * @return The metadata. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetadata() { + return metadata_; + } + + public static final int TENSORS_FIELD_NUMBER = 3; + private java.util.List tensors_; + /** + *
+   * Tensors contained within objects being serialized.
+   * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + @java.lang.Override + public java.util.List getTensorsList() { + return tensors_; + } + /** + *
+   * Tensors contained within objects being serialized.
+   * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + @java.lang.Override + public java.util.List + getTensorsOrBuilderList() { + return tensors_; + } + /** + *
+   * Tensors contained within objects being serialized.
+   * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + @java.lang.Override + public int getTensorsCount() { + return tensors_.size(); + } + /** + *
+   * Tensors contained within objects being serialized.
+   * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + @java.lang.Override + public org.tensorflow.proto.TensorProto getTensors(int index) { + return tensors_.get(index); + } + /** + *
+   * Tensors contained within objects being serialized.
+   * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + @java.lang.Override + public org.tensorflow.proto.TensorProtoOrBuilder getTensorsOrBuilder( + int index) { + return tensors_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, typeName_); + } + if (!metadata_.isEmpty()) { + output.writeBytes(2, metadata_); + } + for (int i = 0; i < tensors_.size(); i++) { + output.writeMessage(3, tensors_.get(i)); + } + 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(typeName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, typeName_); + } + if (!metadata_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, metadata_); + } + for (int i = 0; i < tensors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, tensors_.get(i)); + } + 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 org.tensorflow.proto.VariantTensorDataProto)) { + return super.equals(obj); + } + org.tensorflow.proto.VariantTensorDataProto other = (org.tensorflow.proto.VariantTensorDataProto) obj; + + if (!getTypeName() + .equals(other.getTypeName())) return false; + if (!getMetadata() + .equals(other.getMetadata())) return false; + if (!getTensorsList() + .equals(other.getTensorsList())) 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_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTypeName().hashCode(); + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + if (getTensorsCount() > 0) { + hash = (37 * hash) + TENSORS_FIELD_NUMBER; + hash = (53 * hash) + getTensorsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.VariantTensorDataProto parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.VariantTensorDataProto parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.VariantTensorDataProto parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.VariantTensorDataProto parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.VariantTensorDataProto parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.VariantTensorDataProto parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.VariantTensorDataProto parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.VariantTensorDataProto 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 org.tensorflow.proto.VariantTensorDataProto parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.VariantTensorDataProto 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 org.tensorflow.proto.VariantTensorDataProto parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.VariantTensorDataProto 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(org.tensorflow.proto.VariantTensorDataProto 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; + } + /** + *
+   * Protocol buffer representing the serialization format of DT_VARIANT tensors.
+   * 
+ * + * Protobuf type {@code tensorflow.VariantTensorDataProto} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.VariantTensorDataProto) + org.tensorflow.proto.VariantTensorDataProtoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.TensorProtos.internal_static_tensorflow_VariantTensorDataProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.TensorProtos.internal_static_tensorflow_VariantTensorDataProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.VariantTensorDataProto.class, org.tensorflow.proto.VariantTensorDataProto.Builder.class); + } + + // Construct using org.tensorflow.proto.VariantTensorDataProto.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + typeName_ = ""; + + metadata_ = com.google.protobuf.ByteString.EMPTY; + + if (tensorsBuilder_ == null) { + tensors_ = java.util.Collections.emptyList(); + } else { + tensors_ = null; + tensorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.TensorProtos.internal_static_tensorflow_VariantTensorDataProto_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.VariantTensorDataProto getDefaultInstanceForType() { + return org.tensorflow.proto.VariantTensorDataProto.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.VariantTensorDataProto build() { + org.tensorflow.proto.VariantTensorDataProto result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.VariantTensorDataProto buildPartial() { + org.tensorflow.proto.VariantTensorDataProto result = new org.tensorflow.proto.VariantTensorDataProto(this); + int from_bitField0_ = bitField0_; + result.typeName_ = typeName_; + result.metadata_ = metadata_; + if (tensorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tensors_ = java.util.Collections.unmodifiableList(tensors_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tensors_ = tensors_; + } else { + result.tensors_ = tensorsBuilder_.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 org.tensorflow.proto.VariantTensorDataProto) { + return mergeFrom((org.tensorflow.proto.VariantTensorDataProto)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.VariantTensorDataProto other) { + if (other == org.tensorflow.proto.VariantTensorDataProto.getDefaultInstance()) return this; + if (!other.getTypeName().isEmpty()) { + typeName_ = other.typeName_; + onChanged(); + } + if (other.getMetadata() != com.google.protobuf.ByteString.EMPTY) { + setMetadata(other.getMetadata()); + } + if (tensorsBuilder_ == null) { + if (!other.tensors_.isEmpty()) { + if (tensors_.isEmpty()) { + tensors_ = other.tensors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTensorsIsMutable(); + tensors_.addAll(other.tensors_); + } + onChanged(); + } + } else { + if (!other.tensors_.isEmpty()) { + if (tensorsBuilder_.isEmpty()) { + tensorsBuilder_.dispose(); + tensorsBuilder_ = null; + tensors_ = other.tensors_; + bitField0_ = (bitField0_ & ~0x00000001); + tensorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTensorsFieldBuilder() : null; + } else { + tensorsBuilder_.addAllMessages(other.tensors_); + } + } + } + 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: { + typeName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + metadata_ = input.readBytes(); + + break; + } // case 18 + case 26: { + org.tensorflow.proto.TensorProto m = + input.readMessage( + org.tensorflow.proto.TensorProto.parser(), + extensionRegistry); + if (tensorsBuilder_ == null) { + ensureTensorsIsMutable(); + tensors_.add(m); + } else { + tensorsBuilder_.addMessage(m); + } + break; + } // case 26 + 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 typeName_ = ""; + /** + *
+     * Name of the type of objects being serialized.
+     * 
+ * + * string type_name = 1; + * @return The typeName. + */ + public java.lang.String getTypeName() { + java.lang.Object ref = typeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + typeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Name of the type of objects being serialized.
+     * 
+ * + * string type_name = 1; + * @return The bytes for typeName. + */ + public com.google.protobuf.ByteString + getTypeNameBytes() { + java.lang.Object ref = typeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + typeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Name of the type of objects being serialized.
+     * 
+ * + * string type_name = 1; + * @param value The typeName to set. + * @return This builder for chaining. + */ + public Builder setTypeName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + typeName_ = value; + onChanged(); + return this; + } + /** + *
+     * Name of the type of objects being serialized.
+     * 
+ * + * string type_name = 1; + * @return This builder for chaining. + */ + public Builder clearTypeName() { + + typeName_ = getDefaultInstance().getTypeName(); + onChanged(); + return this; + } + /** + *
+     * Name of the type of objects being serialized.
+     * 
+ * + * string type_name = 1; + * @param value The bytes for typeName to set. + * @return This builder for chaining. + */ + public Builder setTypeNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + typeName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * Portions of the object that are not Tensors.
+     * 
+ * + * bytes metadata = 2; + * @return The metadata. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetadata() { + return metadata_; + } + /** + *
+     * Portions of the object that are not Tensors.
+     * 
+ * + * bytes metadata = 2; + * @param value The metadata to set. + * @return This builder for chaining. + */ + public Builder setMetadata(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + metadata_ = value; + onChanged(); + return this; + } + /** + *
+     * Portions of the object that are not Tensors.
+     * 
+ * + * bytes metadata = 2; + * @return This builder for chaining. + */ + public Builder clearMetadata() { + + metadata_ = getDefaultInstance().getMetadata(); + onChanged(); + return this; + } + + private java.util.List tensors_ = + java.util.Collections.emptyList(); + private void ensureTensorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tensors_ = new java.util.ArrayList(tensors_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> tensorsBuilder_; + + /** + *
+     * Tensors contained within objects being serialized.
+     * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + public java.util.List getTensorsList() { + if (tensorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tensors_); + } else { + return tensorsBuilder_.getMessageList(); + } + } + /** + *
+     * Tensors contained within objects being serialized.
+     * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + public int getTensorsCount() { + if (tensorsBuilder_ == null) { + return tensors_.size(); + } else { + return tensorsBuilder_.getCount(); + } + } + /** + *
+     * Tensors contained within objects being serialized.
+     * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + public org.tensorflow.proto.TensorProto getTensors(int index) { + if (tensorsBuilder_ == null) { + return tensors_.get(index); + } else { + return tensorsBuilder_.getMessage(index); + } + } + /** + *
+     * Tensors contained within objects being serialized.
+     * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + public Builder setTensors( + int index, org.tensorflow.proto.TensorProto value) { + if (tensorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorsIsMutable(); + tensors_.set(index, value); + onChanged(); + } else { + tensorsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Tensors contained within objects being serialized.
+     * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + public Builder setTensors( + int index, org.tensorflow.proto.TensorProto.Builder builderForValue) { + if (tensorsBuilder_ == null) { + ensureTensorsIsMutable(); + tensors_.set(index, builderForValue.build()); + onChanged(); + } else { + tensorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Tensors contained within objects being serialized.
+     * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + public Builder addTensors(org.tensorflow.proto.TensorProto value) { + if (tensorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorsIsMutable(); + tensors_.add(value); + onChanged(); + } else { + tensorsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Tensors contained within objects being serialized.
+     * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + public Builder addTensors( + int index, org.tensorflow.proto.TensorProto value) { + if (tensorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorsIsMutable(); + tensors_.add(index, value); + onChanged(); + } else { + tensorsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Tensors contained within objects being serialized.
+     * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + public Builder addTensors( + org.tensorflow.proto.TensorProto.Builder builderForValue) { + if (tensorsBuilder_ == null) { + ensureTensorsIsMutable(); + tensors_.add(builderForValue.build()); + onChanged(); + } else { + tensorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Tensors contained within objects being serialized.
+     * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + public Builder addTensors( + int index, org.tensorflow.proto.TensorProto.Builder builderForValue) { + if (tensorsBuilder_ == null) { + ensureTensorsIsMutable(); + tensors_.add(index, builderForValue.build()); + onChanged(); + } else { + tensorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Tensors contained within objects being serialized.
+     * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + public Builder addAllTensors( + java.lang.Iterable values) { + if (tensorsBuilder_ == null) { + ensureTensorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tensors_); + onChanged(); + } else { + tensorsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Tensors contained within objects being serialized.
+     * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + public Builder clearTensors() { + if (tensorsBuilder_ == null) { + tensors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tensorsBuilder_.clear(); + } + return this; + } + /** + *
+     * Tensors contained within objects being serialized.
+     * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + public Builder removeTensors(int index) { + if (tensorsBuilder_ == null) { + ensureTensorsIsMutable(); + tensors_.remove(index); + onChanged(); + } else { + tensorsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Tensors contained within objects being serialized.
+     * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + public org.tensorflow.proto.TensorProto.Builder getTensorsBuilder( + int index) { + return getTensorsFieldBuilder().getBuilder(index); + } + /** + *
+     * Tensors contained within objects being serialized.
+     * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + public org.tensorflow.proto.TensorProtoOrBuilder getTensorsOrBuilder( + int index) { + if (tensorsBuilder_ == null) { + return tensors_.get(index); } else { + return tensorsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Tensors contained within objects being serialized.
+     * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + public java.util.List + getTensorsOrBuilderList() { + if (tensorsBuilder_ != null) { + return tensorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tensors_); + } + } + /** + *
+     * Tensors contained within objects being serialized.
+     * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + public org.tensorflow.proto.TensorProto.Builder addTensorsBuilder() { + return getTensorsFieldBuilder().addBuilder( + org.tensorflow.proto.TensorProto.getDefaultInstance()); + } + /** + *
+     * Tensors contained within objects being serialized.
+     * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + public org.tensorflow.proto.TensorProto.Builder addTensorsBuilder( + int index) { + return getTensorsFieldBuilder().addBuilder( + index, org.tensorflow.proto.TensorProto.getDefaultInstance()); + } + /** + *
+     * Tensors contained within objects being serialized.
+     * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + public java.util.List + getTensorsBuilderList() { + return getTensorsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> + getTensorsFieldBuilder() { + if (tensorsBuilder_ == null) { + tensorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder>( + tensors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + tensors_ = null; + } + return tensorsBuilder_; + } + @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:tensorflow.VariantTensorDataProto) + } + + // @@protoc_insertion_point(class_scope:tensorflow.VariantTensorDataProto) + private static final org.tensorflow.proto.VariantTensorDataProto DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.VariantTensorDataProto(); + } + + public static org.tensorflow.proto.VariantTensorDataProto getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VariantTensorDataProto 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 org.tensorflow.proto.VariantTensorDataProto getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VariantTensorDataProtoOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VariantTensorDataProtoOrBuilder.java new file mode 100644 index 00000000000..03f644b8cd4 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VariantTensorDataProtoOrBuilder.java @@ -0,0 +1,83 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/tensor.proto + +package org.tensorflow.proto; + +public interface VariantTensorDataProtoOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.VariantTensorDataProto) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Name of the type of objects being serialized.
+   * 
+ * + * string type_name = 1; + * @return The typeName. + */ + java.lang.String getTypeName(); + /** + *
+   * Name of the type of objects being serialized.
+   * 
+ * + * string type_name = 1; + * @return The bytes for typeName. + */ + com.google.protobuf.ByteString + getTypeNameBytes(); + + /** + *
+   * Portions of the object that are not Tensors.
+   * 
+ * + * bytes metadata = 2; + * @return The metadata. + */ + com.google.protobuf.ByteString getMetadata(); + + /** + *
+   * Tensors contained within objects being serialized.
+   * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + java.util.List + getTensorsList(); + /** + *
+   * Tensors contained within objects being serialized.
+   * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + org.tensorflow.proto.TensorProto getTensors(int index); + /** + *
+   * Tensors contained within objects being serialized.
+   * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + int getTensorsCount(); + /** + *
+   * Tensors contained within objects being serialized.
+   * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + java.util.List + getTensorsOrBuilderList(); + /** + *
+   * Tensors contained within objects being serialized.
+   * 
+ * + * repeated .tensorflow.TensorProto tensors = 3; + */ + org.tensorflow.proto.TensorProtoOrBuilder getTensorsOrBuilder( + int index); +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VerifierConfig.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VerifierConfig.java new file mode 100644 index 00000000000..2085986669c --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VerifierConfig.java @@ -0,0 +1,734 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/verifier_config.proto + +package org.tensorflow.proto; + +/** + *
+ * The config for graph verifiers.
+ * 
+ * + * Protobuf type {@code tensorflow.VerifierConfig} + */ +public final class VerifierConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.VerifierConfig) + VerifierConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use VerifierConfig.newBuilder() to construct. + private VerifierConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VerifierConfig() { + structureVerifier_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new VerifierConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.VerifierConfigProtos.internal_static_tensorflow_VerifierConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.VerifierConfigProtos.internal_static_tensorflow_VerifierConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.VerifierConfig.class, org.tensorflow.proto.VerifierConfig.Builder.class); + } + + /** + * Protobuf enum {@code tensorflow.VerifierConfig.Toggle} + */ + public enum Toggle + implements com.google.protobuf.ProtocolMessageEnum { + /** + * DEFAULT = 0; + */ + DEFAULT(0), + /** + * ON = 1; + */ + ON(1), + /** + * OFF = 2; + */ + OFF(2), + UNRECOGNIZED(-1), + ; + + /** + * DEFAULT = 0; + */ + public static final int DEFAULT_VALUE = 0; + /** + * ON = 1; + */ + public static final int ON_VALUE = 1; + /** + * OFF = 2; + */ + public static final int OFF_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 Toggle 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 Toggle forNumber(int value) { + switch (value) { + case 0: return DEFAULT; + case 1: return ON; + case 2: return OFF; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Toggle> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Toggle findValueByNumber(int number) { + return Toggle.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 org.tensorflow.proto.VerifierConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Toggle[] VALUES = values(); + + public static Toggle 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 Toggle(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:tensorflow.VerifierConfig.Toggle) + } + + public static final int VERIFICATION_TIMEOUT_IN_MS_FIELD_NUMBER = 1; + private long verificationTimeoutInMs_; + /** + *
+   * Deadline for completion of all verification i.e. all the Toggle ON
+   * verifiers must complete execution within this time.
+   * 
+ * + * int64 verification_timeout_in_ms = 1; + * @return The verificationTimeoutInMs. + */ + @java.lang.Override + public long getVerificationTimeoutInMs() { + return verificationTimeoutInMs_; + } + + public static final int STRUCTURE_VERIFIER_FIELD_NUMBER = 2; + private int structureVerifier_; + /** + *
+   * Perform structural validation on a tensorflow graph. Default is OFF.
+   * 
+ * + * .tensorflow.VerifierConfig.Toggle structure_verifier = 2; + * @return The enum numeric value on the wire for structureVerifier. + */ + @java.lang.Override public int getStructureVerifierValue() { + return structureVerifier_; + } + /** + *
+   * Perform structural validation on a tensorflow graph. Default is OFF.
+   * 
+ * + * .tensorflow.VerifierConfig.Toggle structure_verifier = 2; + * @return The structureVerifier. + */ + @java.lang.Override public org.tensorflow.proto.VerifierConfig.Toggle getStructureVerifier() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.VerifierConfig.Toggle result = org.tensorflow.proto.VerifierConfig.Toggle.valueOf(structureVerifier_); + return result == null ? org.tensorflow.proto.VerifierConfig.Toggle.UNRECOGNIZED : result; + } + + 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 (verificationTimeoutInMs_ != 0L) { + output.writeInt64(1, verificationTimeoutInMs_); + } + if (structureVerifier_ != org.tensorflow.proto.VerifierConfig.Toggle.DEFAULT.getNumber()) { + output.writeEnum(2, structureVerifier_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (verificationTimeoutInMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, verificationTimeoutInMs_); + } + if (structureVerifier_ != org.tensorflow.proto.VerifierConfig.Toggle.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, structureVerifier_); + } + 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 org.tensorflow.proto.VerifierConfig)) { + return super.equals(obj); + } + org.tensorflow.proto.VerifierConfig other = (org.tensorflow.proto.VerifierConfig) obj; + + if (getVerificationTimeoutInMs() + != other.getVerificationTimeoutInMs()) return false; + if (structureVerifier_ != other.structureVerifier_) 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) + VERIFICATION_TIMEOUT_IN_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVerificationTimeoutInMs()); + hash = (37 * hash) + STRUCTURE_VERIFIER_FIELD_NUMBER; + hash = (53 * hash) + structureVerifier_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.VerifierConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.VerifierConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.VerifierConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.VerifierConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.VerifierConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.VerifierConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.VerifierConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.VerifierConfig 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 org.tensorflow.proto.VerifierConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.VerifierConfig 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 org.tensorflow.proto.VerifierConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.VerifierConfig 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(org.tensorflow.proto.VerifierConfig 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 config for graph verifiers.
+   * 
+ * + * Protobuf type {@code tensorflow.VerifierConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.VerifierConfig) + org.tensorflow.proto.VerifierConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.VerifierConfigProtos.internal_static_tensorflow_VerifierConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.VerifierConfigProtos.internal_static_tensorflow_VerifierConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.VerifierConfig.class, org.tensorflow.proto.VerifierConfig.Builder.class); + } + + // Construct using org.tensorflow.proto.VerifierConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + verificationTimeoutInMs_ = 0L; + + structureVerifier_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.VerifierConfigProtos.internal_static_tensorflow_VerifierConfig_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.VerifierConfig getDefaultInstanceForType() { + return org.tensorflow.proto.VerifierConfig.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.VerifierConfig build() { + org.tensorflow.proto.VerifierConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.VerifierConfig buildPartial() { + org.tensorflow.proto.VerifierConfig result = new org.tensorflow.proto.VerifierConfig(this); + result.verificationTimeoutInMs_ = verificationTimeoutInMs_; + result.structureVerifier_ = structureVerifier_; + 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 org.tensorflow.proto.VerifierConfig) { + return mergeFrom((org.tensorflow.proto.VerifierConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.VerifierConfig other) { + if (other == org.tensorflow.proto.VerifierConfig.getDefaultInstance()) return this; + if (other.getVerificationTimeoutInMs() != 0L) { + setVerificationTimeoutInMs(other.getVerificationTimeoutInMs()); + } + if (other.structureVerifier_ != 0) { + setStructureVerifierValue(other.getStructureVerifierValue()); + } + 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: { + verificationTimeoutInMs_ = input.readInt64(); + + break; + } // case 8 + case 16: { + structureVerifier_ = input.readEnum(); + + break; + } // case 16 + 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 long verificationTimeoutInMs_ ; + /** + *
+     * Deadline for completion of all verification i.e. all the Toggle ON
+     * verifiers must complete execution within this time.
+     * 
+ * + * int64 verification_timeout_in_ms = 1; + * @return The verificationTimeoutInMs. + */ + @java.lang.Override + public long getVerificationTimeoutInMs() { + return verificationTimeoutInMs_; + } + /** + *
+     * Deadline for completion of all verification i.e. all the Toggle ON
+     * verifiers must complete execution within this time.
+     * 
+ * + * int64 verification_timeout_in_ms = 1; + * @param value The verificationTimeoutInMs to set. + * @return This builder for chaining. + */ + public Builder setVerificationTimeoutInMs(long value) { + + verificationTimeoutInMs_ = value; + onChanged(); + return this; + } + /** + *
+     * Deadline for completion of all verification i.e. all the Toggle ON
+     * verifiers must complete execution within this time.
+     * 
+ * + * int64 verification_timeout_in_ms = 1; + * @return This builder for chaining. + */ + public Builder clearVerificationTimeoutInMs() { + + verificationTimeoutInMs_ = 0L; + onChanged(); + return this; + } + + private int structureVerifier_ = 0; + /** + *
+     * Perform structural validation on a tensorflow graph. Default is OFF.
+     * 
+ * + * .tensorflow.VerifierConfig.Toggle structure_verifier = 2; + * @return The enum numeric value on the wire for structureVerifier. + */ + @java.lang.Override public int getStructureVerifierValue() { + return structureVerifier_; + } + /** + *
+     * Perform structural validation on a tensorflow graph. Default is OFF.
+     * 
+ * + * .tensorflow.VerifierConfig.Toggle structure_verifier = 2; + * @param value The enum numeric value on the wire for structureVerifier to set. + * @return This builder for chaining. + */ + public Builder setStructureVerifierValue(int value) { + + structureVerifier_ = value; + onChanged(); + return this; + } + /** + *
+     * Perform structural validation on a tensorflow graph. Default is OFF.
+     * 
+ * + * .tensorflow.VerifierConfig.Toggle structure_verifier = 2; + * @return The structureVerifier. + */ + @java.lang.Override + public org.tensorflow.proto.VerifierConfig.Toggle getStructureVerifier() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.VerifierConfig.Toggle result = org.tensorflow.proto.VerifierConfig.Toggle.valueOf(structureVerifier_); + return result == null ? org.tensorflow.proto.VerifierConfig.Toggle.UNRECOGNIZED : result; + } + /** + *
+     * Perform structural validation on a tensorflow graph. Default is OFF.
+     * 
+ * + * .tensorflow.VerifierConfig.Toggle structure_verifier = 2; + * @param value The structureVerifier to set. + * @return This builder for chaining. + */ + public Builder setStructureVerifier(org.tensorflow.proto.VerifierConfig.Toggle value) { + if (value == null) { + throw new NullPointerException(); + } + + structureVerifier_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Perform structural validation on a tensorflow graph. Default is OFF.
+     * 
+ * + * .tensorflow.VerifierConfig.Toggle structure_verifier = 2; + * @return This builder for chaining. + */ + public Builder clearStructureVerifier() { + + structureVerifier_ = 0; + 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:tensorflow.VerifierConfig) + } + + // @@protoc_insertion_point(class_scope:tensorflow.VerifierConfig) + private static final org.tensorflow.proto.VerifierConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.VerifierConfig(); + } + + public static org.tensorflow.proto.VerifierConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifierConfig 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 org.tensorflow.proto.VerifierConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VerifierConfigOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VerifierConfigOrBuilder.java similarity index 79% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VerifierConfigOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VerifierConfigOrBuilder.java index 230a728e05f..3be007c2633 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VerifierConfigOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VerifierConfigOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/verifier_config.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface VerifierConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.VerifierConfig) @@ -14,6 +14,7 @@ public interface VerifierConfigOrBuilder extends *
* * int64 verification_timeout_in_ms = 1; + * @return The verificationTimeoutInMs. */ long getVerificationTimeoutInMs(); @@ -23,6 +24,7 @@ public interface VerifierConfigOrBuilder extends * * * .tensorflow.VerifierConfig.Toggle structure_verifier = 2; + * @return The enum numeric value on the wire for structureVerifier. */ int getStructureVerifierValue(); /** @@ -31,6 +33,7 @@ public interface VerifierConfigOrBuilder extends * * * .tensorflow.VerifierConfig.Toggle structure_verifier = 2; + * @return The structureVerifier. */ - org.tensorflow.proto.framework.VerifierConfig.Toggle getStructureVerifier(); + org.tensorflow.proto.VerifierConfig.Toggle getStructureVerifier(); } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VerifierConfigProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VerifierConfigProtos.java similarity index 85% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VerifierConfigProtos.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VerifierConfigProtos.java index f0c11d7b318..76533aa3039 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VerifierConfigProtos.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VerifierConfigProtos.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/verifier_config.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public final class VerifierConfigProtos { private VerifierConfigProtos() {} @@ -33,11 +33,11 @@ public static void registerAllExtensions( "\"\n\032verification_timeout_in_ms\030\001 \001(\003\022=\n\022s" + "tructure_verifier\030\002 \001(\0162!.tensorflow.Ver" + "ifierConfig.Toggle\"&\n\006Toggle\022\013\n\007DEFAULT\020" + - "\000\022\006\n\002ON\020\001\022\007\n\003OFF\020\002B\222\001\n\036org.tensorflow.pr" + - "oto.frameworkB\024VerifierConfigProtosP\001ZUg" + - "ithub.com/tensorflow/tensorflow/tensorfl" + - "ow/go/core/protobuf/for_core_protos_go_p" + - "roto\370\001\001b\006proto3" + "\000\022\006\n\002ON\020\001\022\007\n\003OFF\020\002B\210\001\n\024org.tensorflow.pr" + + "otoB\024VerifierConfigProtosP\001ZUgithub.com/" + + "tensorflow/tensorflow/tensorflow/go/core" + + "/protobuf/for_core_protos_go_proto\370\001\001b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VersionDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VersionDef.java new file mode 100644 index 00000000000..8f322c921be --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VersionDef.java @@ -0,0 +1,796 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/versions.proto + +package org.tensorflow.proto; + +/** + *
+ * Version information for a piece of serialized data
+ * There are different types of versions for each type of data
+ * (GraphDef, etc.), but they all have the same common shape
+ * described here.
+ * Each consumer has "consumer" and "min_producer" versions (specified
+ * elsewhere).  A consumer is allowed to consume this data if
+ *   producer >= min_producer
+ *   consumer >= min_consumer
+ *   consumer not in bad_consumers
+ * 
+ * + * Protobuf type {@code tensorflow.VersionDef} + */ +public final class VersionDef extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.VersionDef) + VersionDefOrBuilder { +private static final long serialVersionUID = 0L; + // Use VersionDef.newBuilder() to construct. + private VersionDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VersionDef() { + badConsumers_ = emptyIntList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new VersionDef(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.VersionsProtos.internal_static_tensorflow_VersionDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.VersionsProtos.internal_static_tensorflow_VersionDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.VersionDef.class, org.tensorflow.proto.VersionDef.Builder.class); + } + + public static final int PRODUCER_FIELD_NUMBER = 1; + private int producer_; + /** + *
+   * The version of the code that produced this data.
+   * 
+ * + * int32 producer = 1; + * @return The producer. + */ + @java.lang.Override + public int getProducer() { + return producer_; + } + + public static final int MIN_CONSUMER_FIELD_NUMBER = 2; + private int minConsumer_; + /** + *
+   * Any consumer below this version is not allowed to consume this data.
+   * 
+ * + * int32 min_consumer = 2; + * @return The minConsumer. + */ + @java.lang.Override + public int getMinConsumer() { + return minConsumer_; + } + + public static final int BAD_CONSUMERS_FIELD_NUMBER = 3; + private com.google.protobuf.Internal.IntList badConsumers_; + /** + *
+   * Specific consumer versions which are disallowed (e.g. due to bugs).
+   * 
+ * + * repeated int32 bad_consumers = 3; + * @return A list containing the badConsumers. + */ + @java.lang.Override + public java.util.List + getBadConsumersList() { + return badConsumers_; + } + /** + *
+   * Specific consumer versions which are disallowed (e.g. due to bugs).
+   * 
+ * + * repeated int32 bad_consumers = 3; + * @return The count of badConsumers. + */ + public int getBadConsumersCount() { + return badConsumers_.size(); + } + /** + *
+   * Specific consumer versions which are disallowed (e.g. due to bugs).
+   * 
+ * + * repeated int32 bad_consumers = 3; + * @param index The index of the element to return. + * @return The badConsumers at the given index. + */ + public int getBadConsumers(int index) { + return badConsumers_.getInt(index); + } + private int badConsumersMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (producer_ != 0) { + output.writeInt32(1, producer_); + } + if (minConsumer_ != 0) { + output.writeInt32(2, minConsumer_); + } + if (getBadConsumersList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(badConsumersMemoizedSerializedSize); + } + for (int i = 0; i < badConsumers_.size(); i++) { + output.writeInt32NoTag(badConsumers_.getInt(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (producer_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, producer_); + } + if (minConsumer_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, minConsumer_); + } + { + int dataSize = 0; + for (int i = 0; i < badConsumers_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(badConsumers_.getInt(i)); + } + size += dataSize; + if (!getBadConsumersList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + badConsumersMemoizedSerializedSize = dataSize; + } + 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 org.tensorflow.proto.VersionDef)) { + return super.equals(obj); + } + org.tensorflow.proto.VersionDef other = (org.tensorflow.proto.VersionDef) obj; + + if (getProducer() + != other.getProducer()) return false; + if (getMinConsumer() + != other.getMinConsumer()) return false; + if (!getBadConsumersList() + .equals(other.getBadConsumersList())) 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) + PRODUCER_FIELD_NUMBER; + hash = (53 * hash) + getProducer(); + hash = (37 * hash) + MIN_CONSUMER_FIELD_NUMBER; + hash = (53 * hash) + getMinConsumer(); + if (getBadConsumersCount() > 0) { + hash = (37 * hash) + BAD_CONSUMERS_FIELD_NUMBER; + hash = (53 * hash) + getBadConsumersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.VersionDef parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.VersionDef parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.VersionDef parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.VersionDef parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.VersionDef parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.VersionDef parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.VersionDef parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.VersionDef 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 org.tensorflow.proto.VersionDef parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.VersionDef 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 org.tensorflow.proto.VersionDef parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.VersionDef 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(org.tensorflow.proto.VersionDef 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; + } + /** + *
+   * Version information for a piece of serialized data
+   * There are different types of versions for each type of data
+   * (GraphDef, etc.), but they all have the same common shape
+   * described here.
+   * Each consumer has "consumer" and "min_producer" versions (specified
+   * elsewhere).  A consumer is allowed to consume this data if
+   *   producer >= min_producer
+   *   consumer >= min_consumer
+   *   consumer not in bad_consumers
+   * 
+ * + * Protobuf type {@code tensorflow.VersionDef} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.VersionDef) + org.tensorflow.proto.VersionDefOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.VersionsProtos.internal_static_tensorflow_VersionDef_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.VersionsProtos.internal_static_tensorflow_VersionDef_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.VersionDef.class, org.tensorflow.proto.VersionDef.Builder.class); + } + + // Construct using org.tensorflow.proto.VersionDef.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + producer_ = 0; + + minConsumer_ = 0; + + badConsumers_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.VersionsProtos.internal_static_tensorflow_VersionDef_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.VersionDef getDefaultInstanceForType() { + return org.tensorflow.proto.VersionDef.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.VersionDef build() { + org.tensorflow.proto.VersionDef result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.VersionDef buildPartial() { + org.tensorflow.proto.VersionDef result = new org.tensorflow.proto.VersionDef(this); + int from_bitField0_ = bitField0_; + result.producer_ = producer_; + result.minConsumer_ = minConsumer_; + if (((bitField0_ & 0x00000001) != 0)) { + badConsumers_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.badConsumers_ = badConsumers_; + 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 org.tensorflow.proto.VersionDef) { + return mergeFrom((org.tensorflow.proto.VersionDef)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.VersionDef other) { + if (other == org.tensorflow.proto.VersionDef.getDefaultInstance()) return this; + if (other.getProducer() != 0) { + setProducer(other.getProducer()); + } + if (other.getMinConsumer() != 0) { + setMinConsumer(other.getMinConsumer()); + } + if (!other.badConsumers_.isEmpty()) { + if (badConsumers_.isEmpty()) { + badConsumers_ = other.badConsumers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBadConsumersIsMutable(); + badConsumers_.addAll(other.badConsumers_); + } + 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 8: { + producer_ = input.readInt32(); + + break; + } // case 8 + case 16: { + minConsumer_ = input.readInt32(); + + break; + } // case 16 + case 24: { + int v = input.readInt32(); + ensureBadConsumersIsMutable(); + badConsumers_.addInt(v); + break; + } // case 24 + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureBadConsumersIsMutable(); + while (input.getBytesUntilLimit() > 0) { + badConsumers_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 26 + 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 producer_ ; + /** + *
+     * The version of the code that produced this data.
+     * 
+ * + * int32 producer = 1; + * @return The producer. + */ + @java.lang.Override + public int getProducer() { + return producer_; + } + /** + *
+     * The version of the code that produced this data.
+     * 
+ * + * int32 producer = 1; + * @param value The producer to set. + * @return This builder for chaining. + */ + public Builder setProducer(int value) { + + producer_ = value; + onChanged(); + return this; + } + /** + *
+     * The version of the code that produced this data.
+     * 
+ * + * int32 producer = 1; + * @return This builder for chaining. + */ + public Builder clearProducer() { + + producer_ = 0; + onChanged(); + return this; + } + + private int minConsumer_ ; + /** + *
+     * Any consumer below this version is not allowed to consume this data.
+     * 
+ * + * int32 min_consumer = 2; + * @return The minConsumer. + */ + @java.lang.Override + public int getMinConsumer() { + return minConsumer_; + } + /** + *
+     * Any consumer below this version is not allowed to consume this data.
+     * 
+ * + * int32 min_consumer = 2; + * @param value The minConsumer to set. + * @return This builder for chaining. + */ + public Builder setMinConsumer(int value) { + + minConsumer_ = value; + onChanged(); + return this; + } + /** + *
+     * Any consumer below this version is not allowed to consume this data.
+     * 
+ * + * int32 min_consumer = 2; + * @return This builder for chaining. + */ + public Builder clearMinConsumer() { + + minConsumer_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList badConsumers_ = emptyIntList(); + private void ensureBadConsumersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + badConsumers_ = mutableCopy(badConsumers_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * Specific consumer versions which are disallowed (e.g. due to bugs).
+     * 
+ * + * repeated int32 bad_consumers = 3; + * @return A list containing the badConsumers. + */ + public java.util.List + getBadConsumersList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(badConsumers_) : badConsumers_; + } + /** + *
+     * Specific consumer versions which are disallowed (e.g. due to bugs).
+     * 
+ * + * repeated int32 bad_consumers = 3; + * @return The count of badConsumers. + */ + public int getBadConsumersCount() { + return badConsumers_.size(); + } + /** + *
+     * Specific consumer versions which are disallowed (e.g. due to bugs).
+     * 
+ * + * repeated int32 bad_consumers = 3; + * @param index The index of the element to return. + * @return The badConsumers at the given index. + */ + public int getBadConsumers(int index) { + return badConsumers_.getInt(index); + } + /** + *
+     * Specific consumer versions which are disallowed (e.g. due to bugs).
+     * 
+ * + * repeated int32 bad_consumers = 3; + * @param index The index to set the value at. + * @param value The badConsumers to set. + * @return This builder for chaining. + */ + public Builder setBadConsumers( + int index, int value) { + ensureBadConsumersIsMutable(); + badConsumers_.setInt(index, value); + onChanged(); + return this; + } + /** + *
+     * Specific consumer versions which are disallowed (e.g. due to bugs).
+     * 
+ * + * repeated int32 bad_consumers = 3; + * @param value The badConsumers to add. + * @return This builder for chaining. + */ + public Builder addBadConsumers(int value) { + ensureBadConsumersIsMutable(); + badConsumers_.addInt(value); + onChanged(); + return this; + } + /** + *
+     * Specific consumer versions which are disallowed (e.g. due to bugs).
+     * 
+ * + * repeated int32 bad_consumers = 3; + * @param values The badConsumers to add. + * @return This builder for chaining. + */ + public Builder addAllBadConsumers( + java.lang.Iterable values) { + ensureBadConsumersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, badConsumers_); + onChanged(); + return this; + } + /** + *
+     * Specific consumer versions which are disallowed (e.g. due to bugs).
+     * 
+ * + * repeated int32 bad_consumers = 3; + * @return This builder for chaining. + */ + public Builder clearBadConsumers() { + badConsumers_ = emptyIntList(); + bitField0_ = (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:tensorflow.VersionDef) + } + + // @@protoc_insertion_point(class_scope:tensorflow.VersionDef) + private static final org.tensorflow.proto.VersionDef DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.VersionDef(); + } + + public static org.tensorflow.proto.VersionDef getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VersionDef 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 org.tensorflow.proto.VersionDef getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VersionDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VersionDefOrBuilder.java similarity index 81% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VersionDefOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VersionDefOrBuilder.java index 519769551aa..3846b05369f 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VersionDefOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VersionDefOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/versions.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public interface VersionDefOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.VersionDef) @@ -13,6 +13,7 @@ public interface VersionDefOrBuilder extends * * * int32 producer = 1; + * @return The producer. */ int getProducer(); @@ -22,6 +23,7 @@ public interface VersionDefOrBuilder extends * * * int32 min_consumer = 2; + * @return The minConsumer. */ int getMinConsumer(); @@ -31,6 +33,7 @@ public interface VersionDefOrBuilder extends * * * repeated int32 bad_consumers = 3; + * @return A list containing the badConsumers. */ java.util.List getBadConsumersList(); /** @@ -39,6 +42,7 @@ public interface VersionDefOrBuilder extends * * * repeated int32 bad_consumers = 3; + * @return The count of badConsumers. */ int getBadConsumersCount(); /** @@ -47,6 +51,8 @@ public interface VersionDefOrBuilder extends * * * repeated int32 bad_consumers = 3; + * @param index The index of the element to return. + * @return The badConsumers at the given index. */ int getBadConsumers(int index); } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VersionsProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VersionsProtos.java similarity index 86% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VersionsProtos.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VersionsProtos.java index 0597ff6e213..207d9d763df 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/VersionsProtos.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/VersionsProtos.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/versions.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; public final class VersionsProtos { private VersionsProtos() {} @@ -31,10 +31,10 @@ public static void registerAllExtensions( "\n(tensorflow/core/framework/versions.pro" + "to\022\ntensorflow\"K\n\nVersionDef\022\020\n\010producer" + "\030\001 \001(\005\022\024\n\014min_consumer\030\002 \001(\005\022\025\n\rbad_cons" + - "umers\030\003 \003(\005B\206\001\n\036org.tensorflow.proto.fra" + - "meworkB\016VersionsProtosP\001ZOgithub.com/ten" + - "sorflow/tensorflow/tensorflow/go/core/fr" + - "amework/versions_go_proto\370\001\001b\006proto3" + "umers\030\003 \003(\005B|\n\024org.tensorflow.protoB\016Ver" + + "sionsProtosP\001ZOgithub.com/tensorflow/ten" + + "sorflow/tensorflow/go/core/framework/ver" + + "sions_go_proto\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WatchdogConfig.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WatchdogConfig.java new file mode 100644 index 00000000000..0f5d6029ae7 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WatchdogConfig.java @@ -0,0 +1,466 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/util/event.proto + +package org.tensorflow.proto; + +/** + * Protobuf type {@code tensorflow.WatchdogConfig} + */ +public final class WatchdogConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.WatchdogConfig) + WatchdogConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use WatchdogConfig.newBuilder() to construct. + private WatchdogConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WatchdogConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WatchdogConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_WatchdogConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_WatchdogConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.WatchdogConfig.class, org.tensorflow.proto.WatchdogConfig.Builder.class); + } + + public static final int TIMEOUT_MS_FIELD_NUMBER = 1; + private long timeoutMs_; + /** + * int64 timeout_ms = 1; + * @return The timeoutMs. + */ + @java.lang.Override + public long getTimeoutMs() { + return timeoutMs_; + } + + 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 (timeoutMs_ != 0L) { + output.writeInt64(1, timeoutMs_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (timeoutMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, timeoutMs_); + } + 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 org.tensorflow.proto.WatchdogConfig)) { + return super.equals(obj); + } + org.tensorflow.proto.WatchdogConfig other = (org.tensorflow.proto.WatchdogConfig) obj; + + if (getTimeoutMs() + != other.getTimeoutMs()) 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) + TIMEOUT_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimeoutMs()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.WatchdogConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.WatchdogConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.WatchdogConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.WatchdogConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.WatchdogConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.WatchdogConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.WatchdogConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.WatchdogConfig 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 org.tensorflow.proto.WatchdogConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.WatchdogConfig 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 org.tensorflow.proto.WatchdogConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.WatchdogConfig 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(org.tensorflow.proto.WatchdogConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.WatchdogConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.WatchdogConfig) + org.tensorflow.proto.WatchdogConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_WatchdogConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_WatchdogConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.WatchdogConfig.class, org.tensorflow.proto.WatchdogConfig.Builder.class); + } + + // Construct using org.tensorflow.proto.WatchdogConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + timeoutMs_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.EventProtos.internal_static_tensorflow_WatchdogConfig_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.WatchdogConfig getDefaultInstanceForType() { + return org.tensorflow.proto.WatchdogConfig.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.WatchdogConfig build() { + org.tensorflow.proto.WatchdogConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.WatchdogConfig buildPartial() { + org.tensorflow.proto.WatchdogConfig result = new org.tensorflow.proto.WatchdogConfig(this); + result.timeoutMs_ = timeoutMs_; + 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 org.tensorflow.proto.WatchdogConfig) { + return mergeFrom((org.tensorflow.proto.WatchdogConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.WatchdogConfig other) { + if (other == org.tensorflow.proto.WatchdogConfig.getDefaultInstance()) return this; + if (other.getTimeoutMs() != 0L) { + setTimeoutMs(other.getTimeoutMs()); + } + 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: { + timeoutMs_ = input.readInt64(); + + break; + } // case 8 + 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 long timeoutMs_ ; + /** + * int64 timeout_ms = 1; + * @return The timeoutMs. + */ + @java.lang.Override + public long getTimeoutMs() { + return timeoutMs_; + } + /** + * int64 timeout_ms = 1; + * @param value The timeoutMs to set. + * @return This builder for chaining. + */ + public Builder setTimeoutMs(long value) { + + timeoutMs_ = value; + onChanged(); + return this; + } + /** + * int64 timeout_ms = 1; + * @return This builder for chaining. + */ + public Builder clearTimeoutMs() { + + timeoutMs_ = 0L; + 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:tensorflow.WatchdogConfig) + } + + // @@protoc_insertion_point(class_scope:tensorflow.WatchdogConfig) + private static final org.tensorflow.proto.WatchdogConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.WatchdogConfig(); + } + + public static org.tensorflow.proto.WatchdogConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WatchdogConfig 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 org.tensorflow.proto.WatchdogConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/WatchdogConfigOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WatchdogConfigOrBuilder.java similarity index 85% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/WatchdogConfigOrBuilder.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WatchdogConfigOrBuilder.java index 74e6511d5ad..45584da9568 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/WatchdogConfigOrBuilder.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WatchdogConfigOrBuilder.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/util/event.proto -package org.tensorflow.proto.util; +package org.tensorflow.proto; public interface WatchdogConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.WatchdogConfig) @@ -9,6 +9,7 @@ public interface WatchdogConfigOrBuilder extends /** * int64 timeout_ms = 1; + * @return The timeoutMs. */ long getTimeoutMs(); } diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/WhileContextDef.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WhileContextDef.java similarity index 79% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/WhileContextDef.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WhileContextDef.java index 9bd67ab7bcd..276c04b10c9 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/WhileContextDef.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WhileContextDef.java @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/control_flow.proto -package org.tensorflow.proto.framework; +package org.tensorflow.proto; /** *
@@ -10,7 +10,7 @@
  *
  * Protobuf type {@code tensorflow.WhileContextDef}
  */
-public  final class WhileContextDef extends
+public final class WhileContextDef extends
     com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:tensorflow.WhileContextDef)
     WhileContextDefOrBuilder {
@@ -42,149 +42,17 @@ protected java.lang.Object newInstance(
   getUnknownFields() {
     return this.unknownFields;
   }
-  private WhileContextDef(
-      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: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            contextName_ = s;
-            break;
-          }
-          case 16: {
-
-            parallelIterations_ = input.readInt32();
-            break;
-          }
-          case 24: {
-
-            backProp_ = input.readBool();
-            break;
-          }
-          case 32: {
-
-            swapMemory_ = input.readBool();
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            pivotName_ = s;
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            pivotForPredName_ = s;
-            break;
-          }
-          case 58: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            pivotForBodyName_ = s;
-            break;
-          }
-          case 66: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              loopExitNames_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            loopExitNames_.add(s);
-            break;
-          }
-          case 74: {
-            org.tensorflow.proto.framework.ValuesDef.Builder subBuilder = null;
-            if (valuesDef_ != null) {
-              subBuilder = valuesDef_.toBuilder();
-            }
-            valuesDef_ = input.readMessage(org.tensorflow.proto.framework.ValuesDef.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(valuesDef_);
-              valuesDef_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 82: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              loopEnterNames_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
-            }
-            loopEnterNames_.add(s);
-            break;
-          }
-          case 90: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            maximumIterationsName_ = s;
-            break;
-          }
-          case 98: {
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              nestedContexts_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000004;
-            }
-            nestedContexts_.add(
-                input.readMessage(org.tensorflow.proto.framework.ControlFlowContextDef.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)) {
-        loopExitNames_ = loopExitNames_.getUnmodifiableView();
-      }
-      if (((mutable_bitField0_ & 0x00000002) != 0)) {
-        loopEnterNames_ = loopEnterNames_.getUnmodifiableView();
-      }
-      if (((mutable_bitField0_ & 0x00000004) != 0)) {
-        nestedContexts_ = java.util.Collections.unmodifiableList(nestedContexts_);
-      }
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
-    return org.tensorflow.proto.framework.ControlFlowProtos.internal_static_tensorflow_WhileContextDef_descriptor;
+    return org.tensorflow.proto.ControlFlowProtos.internal_static_tensorflow_WhileContextDef_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return org.tensorflow.proto.framework.ControlFlowProtos.internal_static_tensorflow_WhileContextDef_fieldAccessorTable
+    return org.tensorflow.proto.ControlFlowProtos.internal_static_tensorflow_WhileContextDef_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            org.tensorflow.proto.framework.WhileContextDef.class, org.tensorflow.proto.framework.WhileContextDef.Builder.class);
+            org.tensorflow.proto.WhileContextDef.class, org.tensorflow.proto.WhileContextDef.Builder.class);
   }
 
   public static final int CONTEXT_NAME_FIELD_NUMBER = 1;
@@ -195,7 +63,9 @@ private WhileContextDef(
    * 
* * string context_name = 1; + * @return The contextName. */ + @java.lang.Override public java.lang.String getContextName() { java.lang.Object ref = contextName_; if (ref instanceof java.lang.String) { @@ -214,7 +84,9 @@ public java.lang.String getContextName() { * * * string context_name = 1; + * @return The bytes for contextName. */ + @java.lang.Override public com.google.protobuf.ByteString getContextNameBytes() { java.lang.Object ref = contextName_; @@ -237,7 +109,9 @@ public java.lang.String getContextName() { * * * int32 parallel_iterations = 2; + * @return The parallelIterations. */ + @java.lang.Override public int getParallelIterations() { return parallelIterations_; } @@ -250,7 +124,9 @@ public int getParallelIterations() { * * * bool back_prop = 3; + * @return The backProp. */ + @java.lang.Override public boolean getBackProp() { return backProp_; } @@ -263,7 +139,9 @@ public boolean getBackProp() { * * * bool swap_memory = 4; + * @return The swapMemory. */ + @java.lang.Override public boolean getSwapMemory() { return swapMemory_; } @@ -276,7 +154,9 @@ public boolean getSwapMemory() { * * * string pivot_name = 5; + * @return The pivotName. */ + @java.lang.Override public java.lang.String getPivotName() { java.lang.Object ref = pivotName_; if (ref instanceof java.lang.String) { @@ -295,7 +175,9 @@ public java.lang.String getPivotName() { * * * string pivot_name = 5; + * @return The bytes for pivotName. */ + @java.lang.Override public com.google.protobuf.ByteString getPivotNameBytes() { java.lang.Object ref = pivotName_; @@ -318,7 +200,9 @@ public java.lang.String getPivotName() { * * * string pivot_for_pred_name = 6; + * @return The pivotForPredName. */ + @java.lang.Override public java.lang.String getPivotForPredName() { java.lang.Object ref = pivotForPredName_; if (ref instanceof java.lang.String) { @@ -337,7 +221,9 @@ public java.lang.String getPivotForPredName() { * * * string pivot_for_pred_name = 6; + * @return The bytes for pivotForPredName. */ + @java.lang.Override public com.google.protobuf.ByteString getPivotForPredNameBytes() { java.lang.Object ref = pivotForPredName_; @@ -360,7 +246,9 @@ public java.lang.String getPivotForPredName() { * * * string pivot_for_body_name = 7; + * @return The pivotForBodyName. */ + @java.lang.Override public java.lang.String getPivotForBodyName() { java.lang.Object ref = pivotForBodyName_; if (ref instanceof java.lang.String) { @@ -379,7 +267,9 @@ public java.lang.String getPivotForBodyName() { * * * string pivot_for_body_name = 7; + * @return The bytes for pivotForBodyName. */ + @java.lang.Override public com.google.protobuf.ByteString getPivotForBodyNameBytes() { java.lang.Object ref = pivotForBodyName_; @@ -402,6 +292,7 @@ public java.lang.String getPivotForBodyName() { * * * repeated string loop_exit_names = 8; + * @return A list containing the loopExitNames. */ public com.google.protobuf.ProtocolStringList getLoopExitNamesList() { @@ -413,6 +304,7 @@ public java.lang.String getPivotForBodyName() { * * * repeated string loop_exit_names = 8; + * @return The count of loopExitNames. */ public int getLoopExitNamesCount() { return loopExitNames_.size(); @@ -423,6 +315,8 @@ public int getLoopExitNamesCount() { * * * repeated string loop_exit_names = 8; + * @param index The index of the element to return. + * @return The loopExitNames at the given index. */ public java.lang.String getLoopExitNames(int index) { return loopExitNames_.get(index); @@ -433,6 +327,8 @@ public java.lang.String getLoopExitNames(int index) { * * * repeated string loop_exit_names = 8; + * @param index The index of the value to return. + * @return The bytes of the loopExitNames at the given index. */ public com.google.protobuf.ByteString getLoopExitNamesBytes(int index) { @@ -447,6 +343,7 @@ public java.lang.String getLoopExitNames(int index) { * * * repeated string loop_enter_names = 10; + * @return A list containing the loopEnterNames. */ public com.google.protobuf.ProtocolStringList getLoopEnterNamesList() { @@ -458,6 +355,7 @@ public java.lang.String getLoopExitNames(int index) { * * * repeated string loop_enter_names = 10; + * @return The count of loopEnterNames. */ public int getLoopEnterNamesCount() { return loopEnterNames_.size(); @@ -468,6 +366,8 @@ public int getLoopEnterNamesCount() { * * * repeated string loop_enter_names = 10; + * @param index The index of the element to return. + * @return The loopEnterNames at the given index. */ public java.lang.String getLoopEnterNames(int index) { return loopEnterNames_.get(index); @@ -478,6 +378,8 @@ public java.lang.String getLoopEnterNames(int index) { * * * repeated string loop_enter_names = 10; + * @param index The index of the value to return. + * @return The bytes of the loopEnterNames at the given index. */ public com.google.protobuf.ByteString getLoopEnterNamesBytes(int index) { @@ -485,14 +387,16 @@ public java.lang.String getLoopEnterNames(int index) { } public static final int VALUES_DEF_FIELD_NUMBER = 9; - private org.tensorflow.proto.framework.ValuesDef valuesDef_; + private org.tensorflow.proto.ValuesDef valuesDef_; /** *
    * Values and external values in control flow context.
    * 
* * .tensorflow.ValuesDef values_def = 9; + * @return Whether the valuesDef field is set. */ + @java.lang.Override public boolean hasValuesDef() { return valuesDef_ != null; } @@ -502,9 +406,11 @@ public boolean hasValuesDef() { * * * .tensorflow.ValuesDef values_def = 9; + * @return The valuesDef. */ - public org.tensorflow.proto.framework.ValuesDef getValuesDef() { - return valuesDef_ == null ? org.tensorflow.proto.framework.ValuesDef.getDefaultInstance() : valuesDef_; + @java.lang.Override + public org.tensorflow.proto.ValuesDef getValuesDef() { + return valuesDef_ == null ? org.tensorflow.proto.ValuesDef.getDefaultInstance() : valuesDef_; } /** *
@@ -513,7 +419,8 @@ public org.tensorflow.proto.framework.ValuesDef getValuesDef() {
    *
    * .tensorflow.ValuesDef values_def = 9;
    */
-  public org.tensorflow.proto.framework.ValuesDefOrBuilder getValuesDefOrBuilder() {
+  @java.lang.Override
+  public org.tensorflow.proto.ValuesDefOrBuilder getValuesDefOrBuilder() {
     return getValuesDef();
   }
 
@@ -525,7 +432,9 @@ public org.tensorflow.proto.framework.ValuesDefOrBuilder getValuesDefOrBuilder()
    * 
* * string maximum_iterations_name = 11; + * @return The maximumIterationsName. */ + @java.lang.Override public java.lang.String getMaximumIterationsName() { java.lang.Object ref = maximumIterationsName_; if (ref instanceof java.lang.String) { @@ -544,7 +453,9 @@ public java.lang.String getMaximumIterationsName() { * * * string maximum_iterations_name = 11; + * @return The bytes for maximumIterationsName. */ + @java.lang.Override public com.google.protobuf.ByteString getMaximumIterationsNameBytes() { java.lang.Object ref = maximumIterationsName_; @@ -560,7 +471,7 @@ public java.lang.String getMaximumIterationsName() { } public static final int NESTED_CONTEXTS_FIELD_NUMBER = 12; - private java.util.List nestedContexts_; + private java.util.List nestedContexts_; /** *
    * Contexts contained inside this context (e.g. nested whiles).
@@ -568,7 +479,8 @@ public java.lang.String getMaximumIterationsName() {
    *
    * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
    */
-  public java.util.List getNestedContextsList() {
+  @java.lang.Override
+  public java.util.List getNestedContextsList() {
     return nestedContexts_;
   }
   /**
@@ -578,7 +490,8 @@ public java.util.List getN
    *
    * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
    */
-  public java.util.List 
+  @java.lang.Override
+  public java.util.List 
       getNestedContextsOrBuilderList() {
     return nestedContexts_;
   }
@@ -589,6 +502,7 @@ public java.util.List getN
    *
    * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
    */
+  @java.lang.Override
   public int getNestedContextsCount() {
     return nestedContexts_.size();
   }
@@ -599,7 +513,8 @@ public int getNestedContextsCount() {
    *
    * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
    */
-  public org.tensorflow.proto.framework.ControlFlowContextDef getNestedContexts(int index) {
+  @java.lang.Override
+  public org.tensorflow.proto.ControlFlowContextDef getNestedContexts(int index) {
     return nestedContexts_.get(index);
   }
   /**
@@ -609,7 +524,8 @@ public org.tensorflow.proto.framework.ControlFlowContextDef getNestedContexts(in
    *
    * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
    */
-  public org.tensorflow.proto.framework.ControlFlowContextDefOrBuilder getNestedContextsOrBuilder(
+  @java.lang.Override
+  public org.tensorflow.proto.ControlFlowContextDefOrBuilder getNestedContextsOrBuilder(
       int index) {
     return nestedContexts_.get(index);
   }
@@ -628,7 +544,7 @@ public final boolean isInitialized() {
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output)
                       throws java.io.IOException {
-    if (!getContextNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contextName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contextName_);
     }
     if (parallelIterations_ != 0) {
@@ -640,13 +556,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (swapMemory_ != false) {
       output.writeBool(4, swapMemory_);
     }
-    if (!getPivotNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pivotName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pivotName_);
     }
-    if (!getPivotForPredNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pivotForPredName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pivotForPredName_);
     }
-    if (!getPivotForBodyNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pivotForBodyName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 7, pivotForBodyName_);
     }
     for (int i = 0; i < loopExitNames_.size(); i++) {
@@ -658,13 +574,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     for (int i = 0; i < loopEnterNames_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 10, loopEnterNames_.getRaw(i));
     }
-    if (!getMaximumIterationsNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(maximumIterationsName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 11, maximumIterationsName_);
     }
     for (int i = 0; i < nestedContexts_.size(); i++) {
       output.writeMessage(12, nestedContexts_.get(i));
     }
-    unknownFields.writeTo(output);
+    getUnknownFields().writeTo(output);
   }
 
   @java.lang.Override
@@ -673,7 +589,7 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getContextNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contextName_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contextName_);
     }
     if (parallelIterations_ != 0) {
@@ -688,13 +604,13 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
         .computeBoolSize(4, swapMemory_);
     }
-    if (!getPivotNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pivotName_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pivotName_);
     }
-    if (!getPivotForPredNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pivotForPredName_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pivotForPredName_);
     }
-    if (!getPivotForBodyNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pivotForBodyName_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pivotForBodyName_);
     }
     {
@@ -717,14 +633,14 @@ public int getSerializedSize() {
       size += dataSize;
       size += 1 * getLoopEnterNamesList().size();
     }
-    if (!getMaximumIterationsNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(maximumIterationsName_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, maximumIterationsName_);
     }
     for (int i = 0; i < nestedContexts_.size(); i++) {
       size += com.google.protobuf.CodedOutputStream
         .computeMessageSize(12, nestedContexts_.get(i));
     }
-    size += unknownFields.getSerializedSize();
+    size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
     return size;
   }
@@ -734,10 +650,10 @@ public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
      return true;
     }
-    if (!(obj instanceof org.tensorflow.proto.framework.WhileContextDef)) {
+    if (!(obj instanceof org.tensorflow.proto.WhileContextDef)) {
       return super.equals(obj);
     }
-    org.tensorflow.proto.framework.WhileContextDef other = (org.tensorflow.proto.framework.WhileContextDef) obj;
+    org.tensorflow.proto.WhileContextDef other = (org.tensorflow.proto.WhileContextDef) obj;
 
     if (!getContextName()
         .equals(other.getContextName())) return false;
@@ -766,7 +682,7 @@ public boolean equals(final java.lang.Object obj) {
         .equals(other.getMaximumIterationsName())) return false;
     if (!getNestedContextsList()
         .equals(other.getNestedContextsList())) return false;
-    if (!unknownFields.equals(other.unknownFields)) return false;
+    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
 
@@ -811,74 +727,74 @@ public int hashCode() {
       hash = (37 * hash) + NESTED_CONTEXTS_FIELD_NUMBER;
       hash = (53 * hash) + getNestedContextsList().hashCode();
     }
-    hash = (29 * hash) + unknownFields.hashCode();
+    hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
     return hash;
   }
 
-  public static org.tensorflow.proto.framework.WhileContextDef parseFrom(
+  public static org.tensorflow.proto.WhileContextDef parseFrom(
       java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.WhileContextDef parseFrom(
+  public static org.tensorflow.proto.WhileContextDef parseFrom(
       java.nio.ByteBuffer data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.WhileContextDef parseFrom(
+  public static org.tensorflow.proto.WhileContextDef parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.WhileContextDef parseFrom(
+  public static org.tensorflow.proto.WhileContextDef parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.WhileContextDef parseFrom(byte[] data)
+  public static org.tensorflow.proto.WhileContextDef parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.WhileContextDef parseFrom(
+  public static org.tensorflow.proto.WhileContextDef parseFrom(
       byte[] data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.WhileContextDef parseFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.WhileContextDef parseFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.WhileContextDef parseFrom(
+  public static org.tensorflow.proto.WhileContextDef 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 org.tensorflow.proto.framework.WhileContextDef parseDelimitedFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.WhileContextDef parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.WhileContextDef parseDelimitedFrom(
+  public static org.tensorflow.proto.WhileContextDef 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 org.tensorflow.proto.framework.WhileContextDef parseFrom(
+  public static org.tensorflow.proto.WhileContextDef parseFrom(
       com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.WhileContextDef parseFrom(
+  public static org.tensorflow.proto.WhileContextDef parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
@@ -891,7 +807,7 @@ public static org.tensorflow.proto.framework.WhileContextDef parseFrom(
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(org.tensorflow.proto.framework.WhileContextDef prototype) {
+  public static Builder newBuilder(org.tensorflow.proto.WhileContextDef prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
   @java.lang.Override
@@ -916,35 +832,29 @@ protected Builder newBuilderForType(
   public static final class Builder extends
       com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:tensorflow.WhileContextDef)
-      org.tensorflow.proto.framework.WhileContextDefOrBuilder {
+      org.tensorflow.proto.WhileContextDefOrBuilder {
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return org.tensorflow.proto.framework.ControlFlowProtos.internal_static_tensorflow_WhileContextDef_descriptor;
+      return org.tensorflow.proto.ControlFlowProtos.internal_static_tensorflow_WhileContextDef_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return org.tensorflow.proto.framework.ControlFlowProtos.internal_static_tensorflow_WhileContextDef_fieldAccessorTable
+      return org.tensorflow.proto.ControlFlowProtos.internal_static_tensorflow_WhileContextDef_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              org.tensorflow.proto.framework.WhileContextDef.class, org.tensorflow.proto.framework.WhileContextDef.Builder.class);
+              org.tensorflow.proto.WhileContextDef.class, org.tensorflow.proto.WhileContextDef.Builder.class);
     }
 
-    // Construct using org.tensorflow.proto.framework.WhileContextDef.newBuilder()
+    // Construct using org.tensorflow.proto.WhileContextDef.newBuilder()
     private Builder() {
-      maybeForceBuilderInitialization();
+
     }
 
     private Builder(
         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-      maybeForceBuilderInitialization();
-    }
-    private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-        getNestedContextsFieldBuilder();
-      }
+
     }
     @java.lang.Override
     public Builder clear() {
@@ -977,27 +887,28 @@ public Builder clear() {
 
       if (nestedContextsBuilder_ == null) {
         nestedContexts_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000004);
       } else {
+        nestedContexts_ = null;
         nestedContextsBuilder_.clear();
       }
+      bitField0_ = (bitField0_ & ~0x00000004);
       return this;
     }
 
     @java.lang.Override
     public com.google.protobuf.Descriptors.Descriptor
         getDescriptorForType() {
-      return org.tensorflow.proto.framework.ControlFlowProtos.internal_static_tensorflow_WhileContextDef_descriptor;
+      return org.tensorflow.proto.ControlFlowProtos.internal_static_tensorflow_WhileContextDef_descriptor;
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.WhileContextDef getDefaultInstanceForType() {
-      return org.tensorflow.proto.framework.WhileContextDef.getDefaultInstance();
+    public org.tensorflow.proto.WhileContextDef getDefaultInstanceForType() {
+      return org.tensorflow.proto.WhileContextDef.getDefaultInstance();
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.WhileContextDef build() {
-      org.tensorflow.proto.framework.WhileContextDef result = buildPartial();
+    public org.tensorflow.proto.WhileContextDef build() {
+      org.tensorflow.proto.WhileContextDef result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -1005,8 +916,8 @@ public org.tensorflow.proto.framework.WhileContextDef build() {
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.WhileContextDef buildPartial() {
-      org.tensorflow.proto.framework.WhileContextDef result = new org.tensorflow.proto.framework.WhileContextDef(this);
+    public org.tensorflow.proto.WhileContextDef buildPartial() {
+      org.tensorflow.proto.WhileContextDef result = new org.tensorflow.proto.WhileContextDef(this);
       int from_bitField0_ = bitField0_;
       result.contextName_ = contextName_;
       result.parallelIterations_ = parallelIterations_;
@@ -1078,16 +989,16 @@ public Builder addRepeatedField(
     }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof org.tensorflow.proto.framework.WhileContextDef) {
-        return mergeFrom((org.tensorflow.proto.framework.WhileContextDef)other);
+      if (other instanceof org.tensorflow.proto.WhileContextDef) {
+        return mergeFrom((org.tensorflow.proto.WhileContextDef)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(org.tensorflow.proto.framework.WhileContextDef other) {
-      if (other == org.tensorflow.proto.framework.WhileContextDef.getDefaultInstance()) return this;
+    public Builder mergeFrom(org.tensorflow.proto.WhileContextDef other) {
+      if (other == org.tensorflow.proto.WhileContextDef.getDefaultInstance()) return this;
       if (!other.getContextName().isEmpty()) {
         contextName_ = other.contextName_;
         onChanged();
@@ -1166,7 +1077,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.WhileContextDef other) {
           }
         }
       }
-      this.mergeUnknownFields(other.unknownFields);
+      this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
     }
@@ -1181,17 +1092,102 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      org.tensorflow.proto.framework.WhileContextDef parsedMessage = null;
+      if (extensionRegistry == null) {
+        throw new java.lang.NullPointerException();
+      }
       try {
-        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+        boolean done = false;
+        while (!done) {
+          int tag = input.readTag();
+          switch (tag) {
+            case 0:
+              done = true;
+              break;
+            case 10: {
+              contextName_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 16: {
+              parallelIterations_ = input.readInt32();
+
+              break;
+            } // case 16
+            case 24: {
+              backProp_ = input.readBool();
+
+              break;
+            } // case 24
+            case 32: {
+              swapMemory_ = input.readBool();
+
+              break;
+            } // case 32
+            case 42: {
+              pivotName_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 42
+            case 50: {
+              pivotForPredName_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 50
+            case 58: {
+              pivotForBodyName_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 58
+            case 66: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureLoopExitNamesIsMutable();
+              loopExitNames_.add(s);
+              break;
+            } // case 66
+            case 74: {
+              input.readMessage(
+                  getValuesDefFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 74
+            case 82: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureLoopEnterNamesIsMutable();
+              loopEnterNames_.add(s);
+              break;
+            } // case 82
+            case 90: {
+              maximumIterationsName_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 90
+            case 98: {
+              org.tensorflow.proto.ControlFlowContextDef m =
+                  input.readMessage(
+                      org.tensorflow.proto.ControlFlowContextDef.parser(),
+                      extensionRegistry);
+              if (nestedContextsBuilder_ == null) {
+                ensureNestedContextsIsMutable();
+                nestedContexts_.add(m);
+              } else {
+                nestedContextsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 98
+            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) {
-        parsedMessage = (org.tensorflow.proto.framework.WhileContextDef) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
-        if (parsedMessage != null) {
-          mergeFrom(parsedMessage);
-        }
-      }
+        onChanged();
+      } // finally
       return this;
     }
     private int bitField0_;
@@ -1203,6 +1199,7 @@ public Builder mergeFrom(
      * 
* * string context_name = 1; + * @return The contextName. */ public java.lang.String getContextName() { java.lang.Object ref = contextName_; @@ -1222,6 +1219,7 @@ public java.lang.String getContextName() { * * * string context_name = 1; + * @return The bytes for contextName. */ public com.google.protobuf.ByteString getContextNameBytes() { @@ -1242,6 +1240,8 @@ public java.lang.String getContextName() { * * * string context_name = 1; + * @param value The contextName to set. + * @return This builder for chaining. */ public Builder setContextName( java.lang.String value) { @@ -1259,6 +1259,7 @@ public Builder setContextName( * * * string context_name = 1; + * @return This builder for chaining. */ public Builder clearContextName() { @@ -1272,6 +1273,8 @@ public Builder clearContextName() { * * * string context_name = 1; + * @param value The bytes for contextName to set. + * @return This builder for chaining. */ public Builder setContextNameBytes( com.google.protobuf.ByteString value) { @@ -1292,7 +1295,9 @@ public Builder setContextNameBytes( * * * int32 parallel_iterations = 2; + * @return The parallelIterations. */ + @java.lang.Override public int getParallelIterations() { return parallelIterations_; } @@ -1302,6 +1307,8 @@ public int getParallelIterations() { * * * int32 parallel_iterations = 2; + * @param value The parallelIterations to set. + * @return This builder for chaining. */ public Builder setParallelIterations(int value) { @@ -1315,6 +1322,7 @@ public Builder setParallelIterations(int value) { * * * int32 parallel_iterations = 2; + * @return This builder for chaining. */ public Builder clearParallelIterations() { @@ -1330,7 +1338,9 @@ public Builder clearParallelIterations() { * * * bool back_prop = 3; + * @return The backProp. */ + @java.lang.Override public boolean getBackProp() { return backProp_; } @@ -1340,6 +1350,8 @@ public boolean getBackProp() { * * * bool back_prop = 3; + * @param value The backProp to set. + * @return This builder for chaining. */ public Builder setBackProp(boolean value) { @@ -1353,6 +1365,7 @@ public Builder setBackProp(boolean value) { * * * bool back_prop = 3; + * @return This builder for chaining. */ public Builder clearBackProp() { @@ -1368,7 +1381,9 @@ public Builder clearBackProp() { * * * bool swap_memory = 4; + * @return The swapMemory. */ + @java.lang.Override public boolean getSwapMemory() { return swapMemory_; } @@ -1378,6 +1393,8 @@ public boolean getSwapMemory() { * * * bool swap_memory = 4; + * @param value The swapMemory to set. + * @return This builder for chaining. */ public Builder setSwapMemory(boolean value) { @@ -1391,6 +1408,7 @@ public Builder setSwapMemory(boolean value) { * * * bool swap_memory = 4; + * @return This builder for chaining. */ public Builder clearSwapMemory() { @@ -1406,6 +1424,7 @@ public Builder clearSwapMemory() { * * * string pivot_name = 5; + * @return The pivotName. */ public java.lang.String getPivotName() { java.lang.Object ref = pivotName_; @@ -1425,6 +1444,7 @@ public java.lang.String getPivotName() { * * * string pivot_name = 5; + * @return The bytes for pivotName. */ public com.google.protobuf.ByteString getPivotNameBytes() { @@ -1445,6 +1465,8 @@ public java.lang.String getPivotName() { * * * string pivot_name = 5; + * @param value The pivotName to set. + * @return This builder for chaining. */ public Builder setPivotName( java.lang.String value) { @@ -1462,6 +1484,7 @@ public Builder setPivotName( * * * string pivot_name = 5; + * @return This builder for chaining. */ public Builder clearPivotName() { @@ -1475,6 +1498,8 @@ public Builder clearPivotName() { * * * string pivot_name = 5; + * @param value The bytes for pivotName to set. + * @return This builder for chaining. */ public Builder setPivotNameBytes( com.google.protobuf.ByteString value) { @@ -1495,6 +1520,7 @@ public Builder setPivotNameBytes( * * * string pivot_for_pred_name = 6; + * @return The pivotForPredName. */ public java.lang.String getPivotForPredName() { java.lang.Object ref = pivotForPredName_; @@ -1514,6 +1540,7 @@ public java.lang.String getPivotForPredName() { * * * string pivot_for_pred_name = 6; + * @return The bytes for pivotForPredName. */ public com.google.protobuf.ByteString getPivotForPredNameBytes() { @@ -1534,6 +1561,8 @@ public java.lang.String getPivotForPredName() { * * * string pivot_for_pred_name = 6; + * @param value The pivotForPredName to set. + * @return This builder for chaining. */ public Builder setPivotForPredName( java.lang.String value) { @@ -1551,6 +1580,7 @@ public Builder setPivotForPredName( * * * string pivot_for_pred_name = 6; + * @return This builder for chaining. */ public Builder clearPivotForPredName() { @@ -1564,6 +1594,8 @@ public Builder clearPivotForPredName() { * * * string pivot_for_pred_name = 6; + * @param value The bytes for pivotForPredName to set. + * @return This builder for chaining. */ public Builder setPivotForPredNameBytes( com.google.protobuf.ByteString value) { @@ -1584,6 +1616,7 @@ public Builder setPivotForPredNameBytes( * * * string pivot_for_body_name = 7; + * @return The pivotForBodyName. */ public java.lang.String getPivotForBodyName() { java.lang.Object ref = pivotForBodyName_; @@ -1603,6 +1636,7 @@ public java.lang.String getPivotForBodyName() { * * * string pivot_for_body_name = 7; + * @return The bytes for pivotForBodyName. */ public com.google.protobuf.ByteString getPivotForBodyNameBytes() { @@ -1623,6 +1657,8 @@ public java.lang.String getPivotForBodyName() { * * * string pivot_for_body_name = 7; + * @param value The pivotForBodyName to set. + * @return This builder for chaining. */ public Builder setPivotForBodyName( java.lang.String value) { @@ -1640,6 +1676,7 @@ public Builder setPivotForBodyName( * * * string pivot_for_body_name = 7; + * @return This builder for chaining. */ public Builder clearPivotForBodyName() { @@ -1653,6 +1690,8 @@ public Builder clearPivotForBodyName() { * * * string pivot_for_body_name = 7; + * @param value The bytes for pivotForBodyName to set. + * @return This builder for chaining. */ public Builder setPivotForBodyNameBytes( com.google.protobuf.ByteString value) { @@ -1679,6 +1718,7 @@ private void ensureLoopExitNamesIsMutable() { * * * repeated string loop_exit_names = 8; + * @return A list containing the loopExitNames. */ public com.google.protobuf.ProtocolStringList getLoopExitNamesList() { @@ -1690,6 +1730,7 @@ private void ensureLoopExitNamesIsMutable() { * * * repeated string loop_exit_names = 8; + * @return The count of loopExitNames. */ public int getLoopExitNamesCount() { return loopExitNames_.size(); @@ -1700,6 +1741,8 @@ public int getLoopExitNamesCount() { * * * repeated string loop_exit_names = 8; + * @param index The index of the element to return. + * @return The loopExitNames at the given index. */ public java.lang.String getLoopExitNames(int index) { return loopExitNames_.get(index); @@ -1710,6 +1753,8 @@ public java.lang.String getLoopExitNames(int index) { * * * repeated string loop_exit_names = 8; + * @param index The index of the value to return. + * @return The bytes of the loopExitNames at the given index. */ public com.google.protobuf.ByteString getLoopExitNamesBytes(int index) { @@ -1721,6 +1766,9 @@ public java.lang.String getLoopExitNames(int index) { * * * repeated string loop_exit_names = 8; + * @param index The index to set the value at. + * @param value The loopExitNames to set. + * @return This builder for chaining. */ public Builder setLoopExitNames( int index, java.lang.String value) { @@ -1738,6 +1786,8 @@ public Builder setLoopExitNames( * * * repeated string loop_exit_names = 8; + * @param value The loopExitNames to add. + * @return This builder for chaining. */ public Builder addLoopExitNames( java.lang.String value) { @@ -1755,6 +1805,8 @@ public Builder addLoopExitNames( * * * repeated string loop_exit_names = 8; + * @param values The loopExitNames to add. + * @return This builder for chaining. */ public Builder addAllLoopExitNames( java.lang.Iterable values) { @@ -1770,6 +1822,7 @@ public Builder addAllLoopExitNames( * * * repeated string loop_exit_names = 8; + * @return This builder for chaining. */ public Builder clearLoopExitNames() { loopExitNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1783,6 +1836,8 @@ public Builder clearLoopExitNames() { * * * repeated string loop_exit_names = 8; + * @param value The bytes of the loopExitNames to add. + * @return This builder for chaining. */ public Builder addLoopExitNamesBytes( com.google.protobuf.ByteString value) { @@ -1809,6 +1864,7 @@ private void ensureLoopEnterNamesIsMutable() { * * * repeated string loop_enter_names = 10; + * @return A list containing the loopEnterNames. */ public com.google.protobuf.ProtocolStringList getLoopEnterNamesList() { @@ -1820,6 +1876,7 @@ private void ensureLoopEnterNamesIsMutable() { * * * repeated string loop_enter_names = 10; + * @return The count of loopEnterNames. */ public int getLoopEnterNamesCount() { return loopEnterNames_.size(); @@ -1830,6 +1887,8 @@ public int getLoopEnterNamesCount() { * * * repeated string loop_enter_names = 10; + * @param index The index of the element to return. + * @return The loopEnterNames at the given index. */ public java.lang.String getLoopEnterNames(int index) { return loopEnterNames_.get(index); @@ -1840,6 +1899,8 @@ public java.lang.String getLoopEnterNames(int index) { * * * repeated string loop_enter_names = 10; + * @param index The index of the value to return. + * @return The bytes of the loopEnterNames at the given index. */ public com.google.protobuf.ByteString getLoopEnterNamesBytes(int index) { @@ -1851,6 +1912,9 @@ public java.lang.String getLoopEnterNames(int index) { * * * repeated string loop_enter_names = 10; + * @param index The index to set the value at. + * @param value The loopEnterNames to set. + * @return This builder for chaining. */ public Builder setLoopEnterNames( int index, java.lang.String value) { @@ -1868,6 +1932,8 @@ public Builder setLoopEnterNames( * * * repeated string loop_enter_names = 10; + * @param value The loopEnterNames to add. + * @return This builder for chaining. */ public Builder addLoopEnterNames( java.lang.String value) { @@ -1885,6 +1951,8 @@ public Builder addLoopEnterNames( * * * repeated string loop_enter_names = 10; + * @param values The loopEnterNames to add. + * @return This builder for chaining. */ public Builder addAllLoopEnterNames( java.lang.Iterable values) { @@ -1900,6 +1968,7 @@ public Builder addAllLoopEnterNames( * * * repeated string loop_enter_names = 10; + * @return This builder for chaining. */ public Builder clearLoopEnterNames() { loopEnterNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1913,6 +1982,8 @@ public Builder clearLoopEnterNames() { * * * repeated string loop_enter_names = 10; + * @param value The bytes of the loopEnterNames to add. + * @return This builder for chaining. */ public Builder addLoopEnterNamesBytes( com.google.protobuf.ByteString value) { @@ -1926,15 +1997,16 @@ public Builder addLoopEnterNamesBytes( return this; } - private org.tensorflow.proto.framework.ValuesDef valuesDef_; + private org.tensorflow.proto.ValuesDef valuesDef_; private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.ValuesDef, org.tensorflow.proto.framework.ValuesDef.Builder, org.tensorflow.proto.framework.ValuesDefOrBuilder> valuesDefBuilder_; + org.tensorflow.proto.ValuesDef, org.tensorflow.proto.ValuesDef.Builder, org.tensorflow.proto.ValuesDefOrBuilder> valuesDefBuilder_; /** *
      * Values and external values in control flow context.
      * 
* * .tensorflow.ValuesDef values_def = 9; + * @return Whether the valuesDef field is set. */ public boolean hasValuesDef() { return valuesDefBuilder_ != null || valuesDef_ != null; @@ -1945,10 +2017,11 @@ public boolean hasValuesDef() { * * * .tensorflow.ValuesDef values_def = 9; + * @return The valuesDef. */ - public org.tensorflow.proto.framework.ValuesDef getValuesDef() { + public org.tensorflow.proto.ValuesDef getValuesDef() { if (valuesDefBuilder_ == null) { - return valuesDef_ == null ? org.tensorflow.proto.framework.ValuesDef.getDefaultInstance() : valuesDef_; + return valuesDef_ == null ? org.tensorflow.proto.ValuesDef.getDefaultInstance() : valuesDef_; } else { return valuesDefBuilder_.getMessage(); } @@ -1960,7 +2033,7 @@ public org.tensorflow.proto.framework.ValuesDef getValuesDef() { * * .tensorflow.ValuesDef values_def = 9; */ - public Builder setValuesDef(org.tensorflow.proto.framework.ValuesDef value) { + public Builder setValuesDef(org.tensorflow.proto.ValuesDef value) { if (valuesDefBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1981,7 +2054,7 @@ public Builder setValuesDef(org.tensorflow.proto.framework.ValuesDef value) { * .tensorflow.ValuesDef values_def = 9; */ public Builder setValuesDef( - org.tensorflow.proto.framework.ValuesDef.Builder builderForValue) { + org.tensorflow.proto.ValuesDef.Builder builderForValue) { if (valuesDefBuilder_ == null) { valuesDef_ = builderForValue.build(); onChanged(); @@ -1998,11 +2071,11 @@ public Builder setValuesDef( * * .tensorflow.ValuesDef values_def = 9; */ - public Builder mergeValuesDef(org.tensorflow.proto.framework.ValuesDef value) { + public Builder mergeValuesDef(org.tensorflow.proto.ValuesDef value) { if (valuesDefBuilder_ == null) { if (valuesDef_ != null) { valuesDef_ = - org.tensorflow.proto.framework.ValuesDef.newBuilder(valuesDef_).mergeFrom(value).buildPartial(); + org.tensorflow.proto.ValuesDef.newBuilder(valuesDef_).mergeFrom(value).buildPartial(); } else { valuesDef_ = value; } @@ -2038,7 +2111,7 @@ public Builder clearValuesDef() { * * .tensorflow.ValuesDef values_def = 9; */ - public org.tensorflow.proto.framework.ValuesDef.Builder getValuesDefBuilder() { + public org.tensorflow.proto.ValuesDef.Builder getValuesDefBuilder() { onChanged(); return getValuesDefFieldBuilder().getBuilder(); @@ -2050,12 +2123,12 @@ public org.tensorflow.proto.framework.ValuesDef.Builder getValuesDefBuilder() { * * .tensorflow.ValuesDef values_def = 9; */ - public org.tensorflow.proto.framework.ValuesDefOrBuilder getValuesDefOrBuilder() { + public org.tensorflow.proto.ValuesDefOrBuilder getValuesDefOrBuilder() { if (valuesDefBuilder_ != null) { return valuesDefBuilder_.getMessageOrBuilder(); } else { return valuesDef_ == null ? - org.tensorflow.proto.framework.ValuesDef.getDefaultInstance() : valuesDef_; + org.tensorflow.proto.ValuesDef.getDefaultInstance() : valuesDef_; } } /** @@ -2066,11 +2139,11 @@ public org.tensorflow.proto.framework.ValuesDefOrBuilder getValuesDefOrBuilder() * .tensorflow.ValuesDef values_def = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.ValuesDef, org.tensorflow.proto.framework.ValuesDef.Builder, org.tensorflow.proto.framework.ValuesDefOrBuilder> + org.tensorflow.proto.ValuesDef, org.tensorflow.proto.ValuesDef.Builder, org.tensorflow.proto.ValuesDefOrBuilder> getValuesDefFieldBuilder() { if (valuesDefBuilder_ == null) { valuesDefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - org.tensorflow.proto.framework.ValuesDef, org.tensorflow.proto.framework.ValuesDef.Builder, org.tensorflow.proto.framework.ValuesDefOrBuilder>( + org.tensorflow.proto.ValuesDef, org.tensorflow.proto.ValuesDef.Builder, org.tensorflow.proto.ValuesDefOrBuilder>( getValuesDef(), getParentForChildren(), isClean()); @@ -2086,6 +2159,7 @@ public org.tensorflow.proto.framework.ValuesDefOrBuilder getValuesDefOrBuilder() * * * string maximum_iterations_name = 11; + * @return The maximumIterationsName. */ public java.lang.String getMaximumIterationsName() { java.lang.Object ref = maximumIterationsName_; @@ -2105,6 +2179,7 @@ public java.lang.String getMaximumIterationsName() { * * * string maximum_iterations_name = 11; + * @return The bytes for maximumIterationsName. */ public com.google.protobuf.ByteString getMaximumIterationsNameBytes() { @@ -2125,6 +2200,8 @@ public java.lang.String getMaximumIterationsName() { * * * string maximum_iterations_name = 11; + * @param value The maximumIterationsName to set. + * @return This builder for chaining. */ public Builder setMaximumIterationsName( java.lang.String value) { @@ -2142,6 +2219,7 @@ public Builder setMaximumIterationsName( * * * string maximum_iterations_name = 11; + * @return This builder for chaining. */ public Builder clearMaximumIterationsName() { @@ -2155,6 +2233,8 @@ public Builder clearMaximumIterationsName() { * * * string maximum_iterations_name = 11; + * @param value The bytes for maximumIterationsName to set. + * @return This builder for chaining. */ public Builder setMaximumIterationsNameBytes( com.google.protobuf.ByteString value) { @@ -2168,17 +2248,17 @@ public Builder setMaximumIterationsNameBytes( return this; } - private java.util.List nestedContexts_ = + private java.util.List nestedContexts_ = java.util.Collections.emptyList(); private void ensureNestedContextsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - nestedContexts_ = new java.util.ArrayList(nestedContexts_); + nestedContexts_ = new java.util.ArrayList(nestedContexts_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ControlFlowContextDef, org.tensorflow.proto.framework.ControlFlowContextDef.Builder, org.tensorflow.proto.framework.ControlFlowContextDefOrBuilder> nestedContextsBuilder_; + org.tensorflow.proto.ControlFlowContextDef, org.tensorflow.proto.ControlFlowContextDef.Builder, org.tensorflow.proto.ControlFlowContextDefOrBuilder> nestedContextsBuilder_; /** *
@@ -2187,7 +2267,7 @@ private void ensureNestedContextsIsMutable() {
      *
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
      */
-    public java.util.List getNestedContextsList() {
+    public java.util.List getNestedContextsList() {
       if (nestedContextsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(nestedContexts_);
       } else {
@@ -2215,7 +2295,7 @@ public int getNestedContextsCount() {
      *
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
      */
-    public org.tensorflow.proto.framework.ControlFlowContextDef getNestedContexts(int index) {
+    public org.tensorflow.proto.ControlFlowContextDef getNestedContexts(int index) {
       if (nestedContextsBuilder_ == null) {
         return nestedContexts_.get(index);
       } else {
@@ -2230,7 +2310,7 @@ public org.tensorflow.proto.framework.ControlFlowContextDef getNestedContexts(in
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
      */
     public Builder setNestedContexts(
-        int index, org.tensorflow.proto.framework.ControlFlowContextDef value) {
+        int index, org.tensorflow.proto.ControlFlowContextDef value) {
       if (nestedContextsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2251,7 +2331,7 @@ public Builder setNestedContexts(
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
      */
     public Builder setNestedContexts(
-        int index, org.tensorflow.proto.framework.ControlFlowContextDef.Builder builderForValue) {
+        int index, org.tensorflow.proto.ControlFlowContextDef.Builder builderForValue) {
       if (nestedContextsBuilder_ == null) {
         ensureNestedContextsIsMutable();
         nestedContexts_.set(index, builderForValue.build());
@@ -2268,7 +2348,7 @@ public Builder setNestedContexts(
      *
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
      */
-    public Builder addNestedContexts(org.tensorflow.proto.framework.ControlFlowContextDef value) {
+    public Builder addNestedContexts(org.tensorflow.proto.ControlFlowContextDef value) {
       if (nestedContextsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2289,7 +2369,7 @@ public Builder addNestedContexts(org.tensorflow.proto.framework.ControlFlowConte
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
      */
     public Builder addNestedContexts(
-        int index, org.tensorflow.proto.framework.ControlFlowContextDef value) {
+        int index, org.tensorflow.proto.ControlFlowContextDef value) {
       if (nestedContextsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2310,7 +2390,7 @@ public Builder addNestedContexts(
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
      */
     public Builder addNestedContexts(
-        org.tensorflow.proto.framework.ControlFlowContextDef.Builder builderForValue) {
+        org.tensorflow.proto.ControlFlowContextDef.Builder builderForValue) {
       if (nestedContextsBuilder_ == null) {
         ensureNestedContextsIsMutable();
         nestedContexts_.add(builderForValue.build());
@@ -2328,7 +2408,7 @@ public Builder addNestedContexts(
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
      */
     public Builder addNestedContexts(
-        int index, org.tensorflow.proto.framework.ControlFlowContextDef.Builder builderForValue) {
+        int index, org.tensorflow.proto.ControlFlowContextDef.Builder builderForValue) {
       if (nestedContextsBuilder_ == null) {
         ensureNestedContextsIsMutable();
         nestedContexts_.add(index, builderForValue.build());
@@ -2346,7 +2426,7 @@ public Builder addNestedContexts(
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
      */
     public Builder addAllNestedContexts(
-        java.lang.Iterable values) {
+        java.lang.Iterable values) {
       if (nestedContextsBuilder_ == null) {
         ensureNestedContextsIsMutable();
         com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -2398,7 +2478,7 @@ public Builder removeNestedContexts(int index) {
      *
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
      */
-    public org.tensorflow.proto.framework.ControlFlowContextDef.Builder getNestedContextsBuilder(
+    public org.tensorflow.proto.ControlFlowContextDef.Builder getNestedContextsBuilder(
         int index) {
       return getNestedContextsFieldBuilder().getBuilder(index);
     }
@@ -2409,7 +2489,7 @@ public org.tensorflow.proto.framework.ControlFlowContextDef.Builder getNestedCon
      *
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
      */
-    public org.tensorflow.proto.framework.ControlFlowContextDefOrBuilder getNestedContextsOrBuilder(
+    public org.tensorflow.proto.ControlFlowContextDefOrBuilder getNestedContextsOrBuilder(
         int index) {
       if (nestedContextsBuilder_ == null) {
         return nestedContexts_.get(index);  } else {
@@ -2423,7 +2503,7 @@ public org.tensorflow.proto.framework.ControlFlowContextDefOrBuilder getNestedCo
      *
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
      */
-    public java.util.List 
+    public java.util.List 
          getNestedContextsOrBuilderList() {
       if (nestedContextsBuilder_ != null) {
         return nestedContextsBuilder_.getMessageOrBuilderList();
@@ -2438,9 +2518,9 @@ public org.tensorflow.proto.framework.ControlFlowContextDefOrBuilder getNestedCo
      *
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
      */
-    public org.tensorflow.proto.framework.ControlFlowContextDef.Builder addNestedContextsBuilder() {
+    public org.tensorflow.proto.ControlFlowContextDef.Builder addNestedContextsBuilder() {
       return getNestedContextsFieldBuilder().addBuilder(
-          org.tensorflow.proto.framework.ControlFlowContextDef.getDefaultInstance());
+          org.tensorflow.proto.ControlFlowContextDef.getDefaultInstance());
     }
     /**
      * 
@@ -2449,10 +2529,10 @@ public org.tensorflow.proto.framework.ControlFlowContextDef.Builder addNestedCon
      *
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
      */
-    public org.tensorflow.proto.framework.ControlFlowContextDef.Builder addNestedContextsBuilder(
+    public org.tensorflow.proto.ControlFlowContextDef.Builder addNestedContextsBuilder(
         int index) {
       return getNestedContextsFieldBuilder().addBuilder(
-          index, org.tensorflow.proto.framework.ControlFlowContextDef.getDefaultInstance());
+          index, org.tensorflow.proto.ControlFlowContextDef.getDefaultInstance());
     }
     /**
      * 
@@ -2461,16 +2541,16 @@ public org.tensorflow.proto.framework.ControlFlowContextDef.Builder addNestedCon
      *
      * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
      */
-    public java.util.List 
+    public java.util.List 
          getNestedContextsBuilderList() {
       return getNestedContextsFieldBuilder().getBuilderList();
     }
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        org.tensorflow.proto.framework.ControlFlowContextDef, org.tensorflow.proto.framework.ControlFlowContextDef.Builder, org.tensorflow.proto.framework.ControlFlowContextDefOrBuilder> 
+        org.tensorflow.proto.ControlFlowContextDef, org.tensorflow.proto.ControlFlowContextDef.Builder, org.tensorflow.proto.ControlFlowContextDefOrBuilder> 
         getNestedContextsFieldBuilder() {
       if (nestedContextsBuilder_ == null) {
         nestedContextsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            org.tensorflow.proto.framework.ControlFlowContextDef, org.tensorflow.proto.framework.ControlFlowContextDef.Builder, org.tensorflow.proto.framework.ControlFlowContextDefOrBuilder>(
+            org.tensorflow.proto.ControlFlowContextDef, org.tensorflow.proto.ControlFlowContextDef.Builder, org.tensorflow.proto.ControlFlowContextDefOrBuilder>(
                 nestedContexts_,
                 ((bitField0_ & 0x00000004) != 0),
                 getParentForChildren(),
@@ -2496,12 +2576,12 @@ public final Builder mergeUnknownFields(
   }
 
   // @@protoc_insertion_point(class_scope:tensorflow.WhileContextDef)
-  private static final org.tensorflow.proto.framework.WhileContextDef DEFAULT_INSTANCE;
+  private static final org.tensorflow.proto.WhileContextDef DEFAULT_INSTANCE;
   static {
-    DEFAULT_INSTANCE = new org.tensorflow.proto.framework.WhileContextDef();
+    DEFAULT_INSTANCE = new org.tensorflow.proto.WhileContextDef();
   }
 
-  public static org.tensorflow.proto.framework.WhileContextDef getDefaultInstance() {
+  public static org.tensorflow.proto.WhileContextDef getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
@@ -2512,7 +2592,18 @@ public WhileContextDef parsePartialFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
-      return new WhileContextDef(input, extensionRegistry);
+      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();
     }
   };
 
@@ -2526,7 +2617,7 @@ public com.google.protobuf.Parser getParserForType() {
   }
 
   @java.lang.Override
-  public org.tensorflow.proto.framework.WhileContextDef getDefaultInstanceForType() {
+  public org.tensorflow.proto.WhileContextDef getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/WhileContextDefOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WhileContextDefOrBuilder.java
similarity index 77%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/WhileContextDefOrBuilder.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WhileContextDefOrBuilder.java
index 6fd3e2639e1..ce17e49a335 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/WhileContextDefOrBuilder.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WhileContextDefOrBuilder.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/protobuf/control_flow.proto
 
-package org.tensorflow.proto.framework;
+package org.tensorflow.proto;
 
 public interface WhileContextDefOrBuilder extends
     // @@protoc_insertion_point(interface_extends:tensorflow.WhileContextDef)
@@ -13,6 +13,7 @@ public interface WhileContextDefOrBuilder extends
    * 
* * string context_name = 1; + * @return The contextName. */ java.lang.String getContextName(); /** @@ -21,6 +22,7 @@ public interface WhileContextDefOrBuilder extends *
* * string context_name = 1; + * @return The bytes for contextName. */ com.google.protobuf.ByteString getContextNameBytes(); @@ -31,6 +33,7 @@ public interface WhileContextDefOrBuilder extends *
* * int32 parallel_iterations = 2; + * @return The parallelIterations. */ int getParallelIterations(); @@ -40,6 +43,7 @@ public interface WhileContextDefOrBuilder extends * * * bool back_prop = 3; + * @return The backProp. */ boolean getBackProp(); @@ -49,6 +53,7 @@ public interface WhileContextDefOrBuilder extends * * * bool swap_memory = 4; + * @return The swapMemory. */ boolean getSwapMemory(); @@ -58,6 +63,7 @@ public interface WhileContextDefOrBuilder extends * * * string pivot_name = 5; + * @return The pivotName. */ java.lang.String getPivotName(); /** @@ -66,6 +72,7 @@ public interface WhileContextDefOrBuilder extends * * * string pivot_name = 5; + * @return The bytes for pivotName. */ com.google.protobuf.ByteString getPivotNameBytes(); @@ -76,6 +83,7 @@ public interface WhileContextDefOrBuilder extends * * * string pivot_for_pred_name = 6; + * @return The pivotForPredName. */ java.lang.String getPivotForPredName(); /** @@ -84,6 +92,7 @@ public interface WhileContextDefOrBuilder extends * * * string pivot_for_pred_name = 6; + * @return The bytes for pivotForPredName. */ com.google.protobuf.ByteString getPivotForPredNameBytes(); @@ -94,6 +103,7 @@ public interface WhileContextDefOrBuilder extends * * * string pivot_for_body_name = 7; + * @return The pivotForBodyName. */ java.lang.String getPivotForBodyName(); /** @@ -102,6 +112,7 @@ public interface WhileContextDefOrBuilder extends * * * string pivot_for_body_name = 7; + * @return The bytes for pivotForBodyName. */ com.google.protobuf.ByteString getPivotForBodyNameBytes(); @@ -112,6 +123,7 @@ public interface WhileContextDefOrBuilder extends * * * repeated string loop_exit_names = 8; + * @return A list containing the loopExitNames. */ java.util.List getLoopExitNamesList(); @@ -121,6 +133,7 @@ public interface WhileContextDefOrBuilder extends * * * repeated string loop_exit_names = 8; + * @return The count of loopExitNames. */ int getLoopExitNamesCount(); /** @@ -129,6 +142,8 @@ public interface WhileContextDefOrBuilder extends * * * repeated string loop_exit_names = 8; + * @param index The index of the element to return. + * @return The loopExitNames at the given index. */ java.lang.String getLoopExitNames(int index); /** @@ -137,6 +152,8 @@ public interface WhileContextDefOrBuilder extends * * * repeated string loop_exit_names = 8; + * @param index The index of the value to return. + * @return The bytes of the loopExitNames at the given index. */ com.google.protobuf.ByteString getLoopExitNamesBytes(int index); @@ -147,6 +164,7 @@ public interface WhileContextDefOrBuilder extends * * * repeated string loop_enter_names = 10; + * @return A list containing the loopEnterNames. */ java.util.List getLoopEnterNamesList(); @@ -156,6 +174,7 @@ public interface WhileContextDefOrBuilder extends * * * repeated string loop_enter_names = 10; + * @return The count of loopEnterNames. */ int getLoopEnterNamesCount(); /** @@ -164,6 +183,8 @@ public interface WhileContextDefOrBuilder extends * * * repeated string loop_enter_names = 10; + * @param index The index of the element to return. + * @return The loopEnterNames at the given index. */ java.lang.String getLoopEnterNames(int index); /** @@ -172,6 +193,8 @@ public interface WhileContextDefOrBuilder extends * * * repeated string loop_enter_names = 10; + * @param index The index of the value to return. + * @return The bytes of the loopEnterNames at the given index. */ com.google.protobuf.ByteString getLoopEnterNamesBytes(int index); @@ -182,6 +205,7 @@ public interface WhileContextDefOrBuilder extends * * * .tensorflow.ValuesDef values_def = 9; + * @return Whether the valuesDef field is set. */ boolean hasValuesDef(); /** @@ -190,8 +214,9 @@ public interface WhileContextDefOrBuilder extends * * * .tensorflow.ValuesDef values_def = 9; + * @return The valuesDef. */ - org.tensorflow.proto.framework.ValuesDef getValuesDef(); + org.tensorflow.proto.ValuesDef getValuesDef(); /** *
    * Values and external values in control flow context.
@@ -199,7 +224,7 @@ public interface WhileContextDefOrBuilder extends
    *
    * .tensorflow.ValuesDef values_def = 9;
    */
-  org.tensorflow.proto.framework.ValuesDefOrBuilder getValuesDefOrBuilder();
+  org.tensorflow.proto.ValuesDefOrBuilder getValuesDefOrBuilder();
 
   /**
    * 
@@ -207,6 +232,7 @@ public interface WhileContextDefOrBuilder extends
    * 
* * string maximum_iterations_name = 11; + * @return The maximumIterationsName. */ java.lang.String getMaximumIterationsName(); /** @@ -215,6 +241,7 @@ public interface WhileContextDefOrBuilder extends *
* * string maximum_iterations_name = 11; + * @return The bytes for maximumIterationsName. */ com.google.protobuf.ByteString getMaximumIterationsNameBytes(); @@ -226,7 +253,7 @@ public interface WhileContextDefOrBuilder extends * * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12; */ - java.util.List + java.util.List getNestedContextsList(); /** *
@@ -235,7 +262,7 @@ public interface WhileContextDefOrBuilder extends
    *
    * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
    */
-  org.tensorflow.proto.framework.ControlFlowContextDef getNestedContexts(int index);
+  org.tensorflow.proto.ControlFlowContextDef getNestedContexts(int index);
   /**
    * 
    * Contexts contained inside this context (e.g. nested whiles).
@@ -251,7 +278,7 @@ public interface WhileContextDefOrBuilder extends
    *
    * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
    */
-  java.util.List 
+  java.util.List 
       getNestedContextsOrBuilderList();
   /**
    * 
@@ -260,6 +287,6 @@ public interface WhileContextDefOrBuilder extends
    *
    * repeated .tensorflow.ControlFlowContextDef nested_contexts = 12;
    */
-  org.tensorflow.proto.framework.ControlFlowContextDefOrBuilder getNestedContextsOrBuilder(
+  org.tensorflow.proto.ControlFlowContextDefOrBuilder getNestedContextsOrBuilder(
       int index);
 }
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/WorkerHealth.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WorkerHealth.java
similarity index 85%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/WorkerHealth.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WorkerHealth.java
index 268ecd3a6a0..a432eaae62c 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/WorkerHealth.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WorkerHealth.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/util/event.proto
 
-package org.tensorflow.proto.util;
+package org.tensorflow.proto;
 
 /**
  * 
@@ -74,6 +74,8 @@ public final int getNumber() {
   }
 
   /**
+   * @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
@@ -81,6 +83,10 @@ public static WorkerHealth 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 WorkerHealth forNumber(int value) {
     switch (value) {
       case 0: return OK;
@@ -105,6 +111,10 @@ public WorkerHealth findValueByNumber(int 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
@@ -113,7 +123,7 @@ public WorkerHealth findValueByNumber(int number) {
   }
   public static final com.google.protobuf.Descriptors.EnumDescriptor
       getDescriptor() {
-    return org.tensorflow.proto.util.EventProtos.getDescriptor().getEnumTypes().get(0);
+    return org.tensorflow.proto.EventProtos.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final WorkerHealth[] VALUES = values();
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WorkerHeartbeatRequest.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WorkerHeartbeatRequest.java
new file mode 100644
index 00000000000..da0da533f3e
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WorkerHeartbeatRequest.java
@@ -0,0 +1,860 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/util/event.proto
+
+package org.tensorflow.proto;
+
+/**
+ * Protobuf type {@code tensorflow.WorkerHeartbeatRequest}
+ */
+public final class WorkerHeartbeatRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
+    // @@protoc_insertion_point(message_implements:tensorflow.WorkerHeartbeatRequest)
+    WorkerHeartbeatRequestOrBuilder {
+private static final long serialVersionUID = 0L;
+  // Use WorkerHeartbeatRequest.newBuilder() to construct.
+  private WorkerHeartbeatRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    super(builder);
+  }
+  private WorkerHeartbeatRequest() {
+    shutdownMode_ = 0;
+  }
+
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
+    return new WorkerHeartbeatRequest();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
+    return this.unknownFields;
+  }
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return org.tensorflow.proto.EventProtos.internal_static_tensorflow_WorkerHeartbeatRequest_descriptor;
+  }
+
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internalGetFieldAccessorTable() {
+    return org.tensorflow.proto.EventProtos.internal_static_tensorflow_WorkerHeartbeatRequest_fieldAccessorTable
+        .ensureFieldAccessorsInitialized(
+            org.tensorflow.proto.WorkerHeartbeatRequest.class, org.tensorflow.proto.WorkerHeartbeatRequest.Builder.class);
+  }
+
+  public static final int SHUTDOWN_MODE_FIELD_NUMBER = 1;
+  private int shutdownMode_;
+  /**
+   * .tensorflow.WorkerShutdownMode shutdown_mode = 1;
+   * @return The enum numeric value on the wire for shutdownMode.
+   */
+  @java.lang.Override public int getShutdownModeValue() {
+    return shutdownMode_;
+  }
+  /**
+   * .tensorflow.WorkerShutdownMode shutdown_mode = 1;
+   * @return The shutdownMode.
+   */
+  @java.lang.Override public org.tensorflow.proto.WorkerShutdownMode getShutdownMode() {
+    @SuppressWarnings("deprecation")
+    org.tensorflow.proto.WorkerShutdownMode result = org.tensorflow.proto.WorkerShutdownMode.valueOf(shutdownMode_);
+    return result == null ? org.tensorflow.proto.WorkerShutdownMode.UNRECOGNIZED : result;
+  }
+
+  public static final int WATCHDOG_CONFIG_FIELD_NUMBER = 2;
+  private org.tensorflow.proto.WatchdogConfig watchdogConfig_;
+  /**
+   * .tensorflow.WatchdogConfig watchdog_config = 2;
+   * @return Whether the watchdogConfig field is set.
+   */
+  @java.lang.Override
+  public boolean hasWatchdogConfig() {
+    return watchdogConfig_ != null;
+  }
+  /**
+   * .tensorflow.WatchdogConfig watchdog_config = 2;
+   * @return The watchdogConfig.
+   */
+  @java.lang.Override
+  public org.tensorflow.proto.WatchdogConfig getWatchdogConfig() {
+    return watchdogConfig_ == null ? org.tensorflow.proto.WatchdogConfig.getDefaultInstance() : watchdogConfig_;
+  }
+  /**
+   * .tensorflow.WatchdogConfig watchdog_config = 2;
+   */
+  @java.lang.Override
+  public org.tensorflow.proto.WatchdogConfigOrBuilder getWatchdogConfigOrBuilder() {
+    return getWatchdogConfig();
+  }
+
+  public static final int EXIT_CODE_FIELD_NUMBER = 3;
+  private org.tensorflow.proto.RequestedExitCode exitCode_;
+  /**
+   * .tensorflow.RequestedExitCode exit_code = 3;
+   * @return Whether the exitCode field is set.
+   */
+  @java.lang.Override
+  public boolean hasExitCode() {
+    return exitCode_ != null;
+  }
+  /**
+   * .tensorflow.RequestedExitCode exit_code = 3;
+   * @return The exitCode.
+   */
+  @java.lang.Override
+  public org.tensorflow.proto.RequestedExitCode getExitCode() {
+    return exitCode_ == null ? org.tensorflow.proto.RequestedExitCode.getDefaultInstance() : exitCode_;
+  }
+  /**
+   * .tensorflow.RequestedExitCode exit_code = 3;
+   */
+  @java.lang.Override
+  public org.tensorflow.proto.RequestedExitCodeOrBuilder getExitCodeOrBuilder() {
+    return getExitCode();
+  }
+
+  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 (shutdownMode_ != org.tensorflow.proto.WorkerShutdownMode.DEFAULT.getNumber()) {
+      output.writeEnum(1, shutdownMode_);
+    }
+    if (watchdogConfig_ != null) {
+      output.writeMessage(2, getWatchdogConfig());
+    }
+    if (exitCode_ != null) {
+      output.writeMessage(3, getExitCode());
+    }
+    getUnknownFields().writeTo(output);
+  }
+
+  @java.lang.Override
+  public int getSerializedSize() {
+    int size = memoizedSize;
+    if (size != -1) return size;
+
+    size = 0;
+    if (shutdownMode_ != org.tensorflow.proto.WorkerShutdownMode.DEFAULT.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(1, shutdownMode_);
+    }
+    if (watchdogConfig_ != null) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getWatchdogConfig());
+    }
+    if (exitCode_ != null) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getExitCode());
+    }
+    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 org.tensorflow.proto.WorkerHeartbeatRequest)) {
+      return super.equals(obj);
+    }
+    org.tensorflow.proto.WorkerHeartbeatRequest other = (org.tensorflow.proto.WorkerHeartbeatRequest) obj;
+
+    if (shutdownMode_ != other.shutdownMode_) return false;
+    if (hasWatchdogConfig() != other.hasWatchdogConfig()) return false;
+    if (hasWatchdogConfig()) {
+      if (!getWatchdogConfig()
+          .equals(other.getWatchdogConfig())) return false;
+    }
+    if (hasExitCode() != other.hasExitCode()) return false;
+    if (hasExitCode()) {
+      if (!getExitCode()
+          .equals(other.getExitCode())) 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) + SHUTDOWN_MODE_FIELD_NUMBER;
+    hash = (53 * hash) + shutdownMode_;
+    if (hasWatchdogConfig()) {
+      hash = (37 * hash) + WATCHDOG_CONFIG_FIELD_NUMBER;
+      hash = (53 * hash) + getWatchdogConfig().hashCode();
+    }
+    if (hasExitCode()) {
+      hash = (37 * hash) + EXIT_CODE_FIELD_NUMBER;
+      hash = (53 * hash) + getExitCode().hashCode();
+    }
+    hash = (29 * hash) + getUnknownFields().hashCode();
+    memoizedHashCode = hash;
+    return hash;
+  }
+
+  public static org.tensorflow.proto.WorkerHeartbeatRequest parseFrom(
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.WorkerHeartbeatRequest parseFrom(
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.WorkerHeartbeatRequest parseFrom(
+      com.google.protobuf.ByteString data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.WorkerHeartbeatRequest parseFrom(
+      com.google.protobuf.ByteString data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.WorkerHeartbeatRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.WorkerHeartbeatRequest parseFrom(
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.WorkerHeartbeatRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.WorkerHeartbeatRequest 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 org.tensorflow.proto.WorkerHeartbeatRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.WorkerHeartbeatRequest 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 org.tensorflow.proto.WorkerHeartbeatRequest parseFrom(
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.WorkerHeartbeatRequest 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(org.tensorflow.proto.WorkerHeartbeatRequest prototype) {
+    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+  }
+  @java.lang.Override
+  public Builder toBuilder() {
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
+  }
+
+  @java.lang.Override
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    Builder builder = new Builder(parent);
+    return builder;
+  }
+  /**
+   * Protobuf type {@code tensorflow.WorkerHeartbeatRequest}
+   */
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
+      // @@protoc_insertion_point(builder_implements:tensorflow.WorkerHeartbeatRequest)
+      org.tensorflow.proto.WorkerHeartbeatRequestOrBuilder {
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return org.tensorflow.proto.EventProtos.internal_static_tensorflow_WorkerHeartbeatRequest_descriptor;
+    }
+
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+        internalGetFieldAccessorTable() {
+      return org.tensorflow.proto.EventProtos.internal_static_tensorflow_WorkerHeartbeatRequest_fieldAccessorTable
+          .ensureFieldAccessorsInitialized(
+              org.tensorflow.proto.WorkerHeartbeatRequest.class, org.tensorflow.proto.WorkerHeartbeatRequest.Builder.class);
+    }
+
+    // Construct using org.tensorflow.proto.WorkerHeartbeatRequest.newBuilder()
+    private Builder() {
+
+    }
+
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
+    @java.lang.Override
+    public Builder clear() {
+      super.clear();
+      shutdownMode_ = 0;
+
+      if (watchdogConfigBuilder_ == null) {
+        watchdogConfig_ = null;
+      } else {
+        watchdogConfig_ = null;
+        watchdogConfigBuilder_ = null;
+      }
+      if (exitCodeBuilder_ == null) {
+        exitCode_ = null;
+      } else {
+        exitCode_ = null;
+        exitCodeBuilder_ = null;
+      }
+      return this;
+    }
+
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return org.tensorflow.proto.EventProtos.internal_static_tensorflow_WorkerHeartbeatRequest_descriptor;
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.WorkerHeartbeatRequest getDefaultInstanceForType() {
+      return org.tensorflow.proto.WorkerHeartbeatRequest.getDefaultInstance();
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.WorkerHeartbeatRequest build() {
+      org.tensorflow.proto.WorkerHeartbeatRequest result = buildPartial();
+      if (!result.isInitialized()) {
+        throw newUninitializedMessageException(result);
+      }
+      return result;
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.WorkerHeartbeatRequest buildPartial() {
+      org.tensorflow.proto.WorkerHeartbeatRequest result = new org.tensorflow.proto.WorkerHeartbeatRequest(this);
+      result.shutdownMode_ = shutdownMode_;
+      if (watchdogConfigBuilder_ == null) {
+        result.watchdogConfig_ = watchdogConfig_;
+      } else {
+        result.watchdogConfig_ = watchdogConfigBuilder_.build();
+      }
+      if (exitCodeBuilder_ == null) {
+        result.exitCode_ = exitCode_;
+      } else {
+        result.exitCode_ = exitCodeBuilder_.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 org.tensorflow.proto.WorkerHeartbeatRequest) {
+        return mergeFrom((org.tensorflow.proto.WorkerHeartbeatRequest)other);
+      } else {
+        super.mergeFrom(other);
+        return this;
+      }
+    }
+
+    public Builder mergeFrom(org.tensorflow.proto.WorkerHeartbeatRequest other) {
+      if (other == org.tensorflow.proto.WorkerHeartbeatRequest.getDefaultInstance()) return this;
+      if (other.shutdownMode_ != 0) {
+        setShutdownModeValue(other.getShutdownModeValue());
+      }
+      if (other.hasWatchdogConfig()) {
+        mergeWatchdogConfig(other.getWatchdogConfig());
+      }
+      if (other.hasExitCode()) {
+        mergeExitCode(other.getExitCode());
+      }
+      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: {
+              shutdownMode_ = input.readEnum();
+
+              break;
+            } // case 8
+            case 18: {
+              input.readMessage(
+                  getWatchdogConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getExitCodeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 26
+            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 shutdownMode_ = 0;
+    /**
+     * .tensorflow.WorkerShutdownMode shutdown_mode = 1;
+     * @return The enum numeric value on the wire for shutdownMode.
+     */
+    @java.lang.Override public int getShutdownModeValue() {
+      return shutdownMode_;
+    }
+    /**
+     * .tensorflow.WorkerShutdownMode shutdown_mode = 1;
+     * @param value The enum numeric value on the wire for shutdownMode to set.
+     * @return This builder for chaining.
+     */
+    public Builder setShutdownModeValue(int value) {
+      
+      shutdownMode_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * .tensorflow.WorkerShutdownMode shutdown_mode = 1;
+     * @return The shutdownMode.
+     */
+    @java.lang.Override
+    public org.tensorflow.proto.WorkerShutdownMode getShutdownMode() {
+      @SuppressWarnings("deprecation")
+      org.tensorflow.proto.WorkerShutdownMode result = org.tensorflow.proto.WorkerShutdownMode.valueOf(shutdownMode_);
+      return result == null ? org.tensorflow.proto.WorkerShutdownMode.UNRECOGNIZED : result;
+    }
+    /**
+     * .tensorflow.WorkerShutdownMode shutdown_mode = 1;
+     * @param value The shutdownMode to set.
+     * @return This builder for chaining.
+     */
+    public Builder setShutdownMode(org.tensorflow.proto.WorkerShutdownMode value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
+      
+      shutdownMode_ = value.getNumber();
+      onChanged();
+      return this;
+    }
+    /**
+     * .tensorflow.WorkerShutdownMode shutdown_mode = 1;
+     * @return This builder for chaining.
+     */
+    public Builder clearShutdownMode() {
+      
+      shutdownMode_ = 0;
+      onChanged();
+      return this;
+    }
+
+    private org.tensorflow.proto.WatchdogConfig watchdogConfig_;
+    private com.google.protobuf.SingleFieldBuilderV3<
+        org.tensorflow.proto.WatchdogConfig, org.tensorflow.proto.WatchdogConfig.Builder, org.tensorflow.proto.WatchdogConfigOrBuilder> watchdogConfigBuilder_;
+    /**
+     * .tensorflow.WatchdogConfig watchdog_config = 2;
+     * @return Whether the watchdogConfig field is set.
+     */
+    public boolean hasWatchdogConfig() {
+      return watchdogConfigBuilder_ != null || watchdogConfig_ != null;
+    }
+    /**
+     * .tensorflow.WatchdogConfig watchdog_config = 2;
+     * @return The watchdogConfig.
+     */
+    public org.tensorflow.proto.WatchdogConfig getWatchdogConfig() {
+      if (watchdogConfigBuilder_ == null) {
+        return watchdogConfig_ == null ? org.tensorflow.proto.WatchdogConfig.getDefaultInstance() : watchdogConfig_;
+      } else {
+        return watchdogConfigBuilder_.getMessage();
+      }
+    }
+    /**
+     * .tensorflow.WatchdogConfig watchdog_config = 2;
+     */
+    public Builder setWatchdogConfig(org.tensorflow.proto.WatchdogConfig value) {
+      if (watchdogConfigBuilder_ == null) {
+        if (value == null) {
+          throw new NullPointerException();
+        }
+        watchdogConfig_ = value;
+        onChanged();
+      } else {
+        watchdogConfigBuilder_.setMessage(value);
+      }
+
+      return this;
+    }
+    /**
+     * .tensorflow.WatchdogConfig watchdog_config = 2;
+     */
+    public Builder setWatchdogConfig(
+        org.tensorflow.proto.WatchdogConfig.Builder builderForValue) {
+      if (watchdogConfigBuilder_ == null) {
+        watchdogConfig_ = builderForValue.build();
+        onChanged();
+      } else {
+        watchdogConfigBuilder_.setMessage(builderForValue.build());
+      }
+
+      return this;
+    }
+    /**
+     * .tensorflow.WatchdogConfig watchdog_config = 2;
+     */
+    public Builder mergeWatchdogConfig(org.tensorflow.proto.WatchdogConfig value) {
+      if (watchdogConfigBuilder_ == null) {
+        if (watchdogConfig_ != null) {
+          watchdogConfig_ =
+            org.tensorflow.proto.WatchdogConfig.newBuilder(watchdogConfig_).mergeFrom(value).buildPartial();
+        } else {
+          watchdogConfig_ = value;
+        }
+        onChanged();
+      } else {
+        watchdogConfigBuilder_.mergeFrom(value);
+      }
+
+      return this;
+    }
+    /**
+     * .tensorflow.WatchdogConfig watchdog_config = 2;
+     */
+    public Builder clearWatchdogConfig() {
+      if (watchdogConfigBuilder_ == null) {
+        watchdogConfig_ = null;
+        onChanged();
+      } else {
+        watchdogConfig_ = null;
+        watchdogConfigBuilder_ = null;
+      }
+
+      return this;
+    }
+    /**
+     * .tensorflow.WatchdogConfig watchdog_config = 2;
+     */
+    public org.tensorflow.proto.WatchdogConfig.Builder getWatchdogConfigBuilder() {
+      
+      onChanged();
+      return getWatchdogConfigFieldBuilder().getBuilder();
+    }
+    /**
+     * .tensorflow.WatchdogConfig watchdog_config = 2;
+     */
+    public org.tensorflow.proto.WatchdogConfigOrBuilder getWatchdogConfigOrBuilder() {
+      if (watchdogConfigBuilder_ != null) {
+        return watchdogConfigBuilder_.getMessageOrBuilder();
+      } else {
+        return watchdogConfig_ == null ?
+            org.tensorflow.proto.WatchdogConfig.getDefaultInstance() : watchdogConfig_;
+      }
+    }
+    /**
+     * .tensorflow.WatchdogConfig watchdog_config = 2;
+     */
+    private com.google.protobuf.SingleFieldBuilderV3<
+        org.tensorflow.proto.WatchdogConfig, org.tensorflow.proto.WatchdogConfig.Builder, org.tensorflow.proto.WatchdogConfigOrBuilder> 
+        getWatchdogConfigFieldBuilder() {
+      if (watchdogConfigBuilder_ == null) {
+        watchdogConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            org.tensorflow.proto.WatchdogConfig, org.tensorflow.proto.WatchdogConfig.Builder, org.tensorflow.proto.WatchdogConfigOrBuilder>(
+                getWatchdogConfig(),
+                getParentForChildren(),
+                isClean());
+        watchdogConfig_ = null;
+      }
+      return watchdogConfigBuilder_;
+    }
+
+    private org.tensorflow.proto.RequestedExitCode exitCode_;
+    private com.google.protobuf.SingleFieldBuilderV3<
+        org.tensorflow.proto.RequestedExitCode, org.tensorflow.proto.RequestedExitCode.Builder, org.tensorflow.proto.RequestedExitCodeOrBuilder> exitCodeBuilder_;
+    /**
+     * .tensorflow.RequestedExitCode exit_code = 3;
+     * @return Whether the exitCode field is set.
+     */
+    public boolean hasExitCode() {
+      return exitCodeBuilder_ != null || exitCode_ != null;
+    }
+    /**
+     * .tensorflow.RequestedExitCode exit_code = 3;
+     * @return The exitCode.
+     */
+    public org.tensorflow.proto.RequestedExitCode getExitCode() {
+      if (exitCodeBuilder_ == null) {
+        return exitCode_ == null ? org.tensorflow.proto.RequestedExitCode.getDefaultInstance() : exitCode_;
+      } else {
+        return exitCodeBuilder_.getMessage();
+      }
+    }
+    /**
+     * .tensorflow.RequestedExitCode exit_code = 3;
+     */
+    public Builder setExitCode(org.tensorflow.proto.RequestedExitCode value) {
+      if (exitCodeBuilder_ == null) {
+        if (value == null) {
+          throw new NullPointerException();
+        }
+        exitCode_ = value;
+        onChanged();
+      } else {
+        exitCodeBuilder_.setMessage(value);
+      }
+
+      return this;
+    }
+    /**
+     * .tensorflow.RequestedExitCode exit_code = 3;
+     */
+    public Builder setExitCode(
+        org.tensorflow.proto.RequestedExitCode.Builder builderForValue) {
+      if (exitCodeBuilder_ == null) {
+        exitCode_ = builderForValue.build();
+        onChanged();
+      } else {
+        exitCodeBuilder_.setMessage(builderForValue.build());
+      }
+
+      return this;
+    }
+    /**
+     * .tensorflow.RequestedExitCode exit_code = 3;
+     */
+    public Builder mergeExitCode(org.tensorflow.proto.RequestedExitCode value) {
+      if (exitCodeBuilder_ == null) {
+        if (exitCode_ != null) {
+          exitCode_ =
+            org.tensorflow.proto.RequestedExitCode.newBuilder(exitCode_).mergeFrom(value).buildPartial();
+        } else {
+          exitCode_ = value;
+        }
+        onChanged();
+      } else {
+        exitCodeBuilder_.mergeFrom(value);
+      }
+
+      return this;
+    }
+    /**
+     * .tensorflow.RequestedExitCode exit_code = 3;
+     */
+    public Builder clearExitCode() {
+      if (exitCodeBuilder_ == null) {
+        exitCode_ = null;
+        onChanged();
+      } else {
+        exitCode_ = null;
+        exitCodeBuilder_ = null;
+      }
+
+      return this;
+    }
+    /**
+     * .tensorflow.RequestedExitCode exit_code = 3;
+     */
+    public org.tensorflow.proto.RequestedExitCode.Builder getExitCodeBuilder() {
+      
+      onChanged();
+      return getExitCodeFieldBuilder().getBuilder();
+    }
+    /**
+     * .tensorflow.RequestedExitCode exit_code = 3;
+     */
+    public org.tensorflow.proto.RequestedExitCodeOrBuilder getExitCodeOrBuilder() {
+      if (exitCodeBuilder_ != null) {
+        return exitCodeBuilder_.getMessageOrBuilder();
+      } else {
+        return exitCode_ == null ?
+            org.tensorflow.proto.RequestedExitCode.getDefaultInstance() : exitCode_;
+      }
+    }
+    /**
+     * .tensorflow.RequestedExitCode exit_code = 3;
+     */
+    private com.google.protobuf.SingleFieldBuilderV3<
+        org.tensorflow.proto.RequestedExitCode, org.tensorflow.proto.RequestedExitCode.Builder, org.tensorflow.proto.RequestedExitCodeOrBuilder> 
+        getExitCodeFieldBuilder() {
+      if (exitCodeBuilder_ == null) {
+        exitCodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            org.tensorflow.proto.RequestedExitCode, org.tensorflow.proto.RequestedExitCode.Builder, org.tensorflow.proto.RequestedExitCodeOrBuilder>(
+                getExitCode(),
+                getParentForChildren(),
+                isClean());
+        exitCode_ = null;
+      }
+      return exitCodeBuilder_;
+    }
+    @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:tensorflow.WorkerHeartbeatRequest)
+  }
+
+  // @@protoc_insertion_point(class_scope:tensorflow.WorkerHeartbeatRequest)
+  private static final org.tensorflow.proto.WorkerHeartbeatRequest DEFAULT_INSTANCE;
+  static {
+    DEFAULT_INSTANCE = new org.tensorflow.proto.WorkerHeartbeatRequest();
+  }
+
+  public static org.tensorflow.proto.WorkerHeartbeatRequest getDefaultInstance() {
+    return DEFAULT_INSTANCE;
+  }
+
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public WorkerHeartbeatRequest 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 org.tensorflow.proto.WorkerHeartbeatRequest getDefaultInstanceForType() {
+    return DEFAULT_INSTANCE;
+  }
+
+}
+
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WorkerHeartbeatRequestOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WorkerHeartbeatRequestOrBuilder.java
new file mode 100644
index 00000000000..56cf3961a16
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WorkerHeartbeatRequestOrBuilder.java
@@ -0,0 +1,50 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/util/event.proto
+
+package org.tensorflow.proto;
+
+public interface WorkerHeartbeatRequestOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:tensorflow.WorkerHeartbeatRequest)
+    com.google.protobuf.MessageOrBuilder {
+
+  /**
+   * .tensorflow.WorkerShutdownMode shutdown_mode = 1;
+   * @return The enum numeric value on the wire for shutdownMode.
+   */
+  int getShutdownModeValue();
+  /**
+   * .tensorflow.WorkerShutdownMode shutdown_mode = 1;
+   * @return The shutdownMode.
+   */
+  org.tensorflow.proto.WorkerShutdownMode getShutdownMode();
+
+  /**
+   * .tensorflow.WatchdogConfig watchdog_config = 2;
+   * @return Whether the watchdogConfig field is set.
+   */
+  boolean hasWatchdogConfig();
+  /**
+   * .tensorflow.WatchdogConfig watchdog_config = 2;
+   * @return The watchdogConfig.
+   */
+  org.tensorflow.proto.WatchdogConfig getWatchdogConfig();
+  /**
+   * .tensorflow.WatchdogConfig watchdog_config = 2;
+   */
+  org.tensorflow.proto.WatchdogConfigOrBuilder getWatchdogConfigOrBuilder();
+
+  /**
+   * .tensorflow.RequestedExitCode exit_code = 3;
+   * @return Whether the exitCode field is set.
+   */
+  boolean hasExitCode();
+  /**
+   * .tensorflow.RequestedExitCode exit_code = 3;
+   * @return The exitCode.
+   */
+  org.tensorflow.proto.RequestedExitCode getExitCode();
+  /**
+   * .tensorflow.RequestedExitCode exit_code = 3;
+   */
+  org.tensorflow.proto.RequestedExitCodeOrBuilder getExitCodeOrBuilder();
+}
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WorkerHeartbeatResponse.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WorkerHeartbeatResponse.java
new file mode 100644
index 00000000000..092c38b05ec
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WorkerHeartbeatResponse.java
@@ -0,0 +1,984 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/util/event.proto
+
+package org.tensorflow.proto;
+
+/**
+ * Protobuf type {@code tensorflow.WorkerHeartbeatResponse}
+ */
+public final class WorkerHeartbeatResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
+    // @@protoc_insertion_point(message_implements:tensorflow.WorkerHeartbeatResponse)
+    WorkerHeartbeatResponseOrBuilder {
+private static final long serialVersionUID = 0L;
+  // Use WorkerHeartbeatResponse.newBuilder() to construct.
+  private WorkerHeartbeatResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    super(builder);
+  }
+  private WorkerHeartbeatResponse() {
+    healthStatus_ = 0;
+    workerLog_ = java.util.Collections.emptyList();
+    hostname_ = "";
+  }
+
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
+    return new WorkerHeartbeatResponse();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
+    return this.unknownFields;
+  }
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return org.tensorflow.proto.EventProtos.internal_static_tensorflow_WorkerHeartbeatResponse_descriptor;
+  }
+
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internalGetFieldAccessorTable() {
+    return org.tensorflow.proto.EventProtos.internal_static_tensorflow_WorkerHeartbeatResponse_fieldAccessorTable
+        .ensureFieldAccessorsInitialized(
+            org.tensorflow.proto.WorkerHeartbeatResponse.class, org.tensorflow.proto.WorkerHeartbeatResponse.Builder.class);
+  }
+
+  public static final int HEALTH_STATUS_FIELD_NUMBER = 1;
+  private int healthStatus_;
+  /**
+   * .tensorflow.WorkerHealth health_status = 1;
+   * @return The enum numeric value on the wire for healthStatus.
+   */
+  @java.lang.Override public int getHealthStatusValue() {
+    return healthStatus_;
+  }
+  /**
+   * .tensorflow.WorkerHealth health_status = 1;
+   * @return The healthStatus.
+   */
+  @java.lang.Override public org.tensorflow.proto.WorkerHealth getHealthStatus() {
+    @SuppressWarnings("deprecation")
+    org.tensorflow.proto.WorkerHealth result = org.tensorflow.proto.WorkerHealth.valueOf(healthStatus_);
+    return result == null ? org.tensorflow.proto.WorkerHealth.UNRECOGNIZED : result;
+  }
+
+  public static final int WORKER_LOG_FIELD_NUMBER = 2;
+  private java.util.List workerLog_;
+  /**
+   * repeated .tensorflow.Event worker_log = 2;
+   */
+  @java.lang.Override
+  public java.util.List getWorkerLogList() {
+    return workerLog_;
+  }
+  /**
+   * repeated .tensorflow.Event worker_log = 2;
+   */
+  @java.lang.Override
+  public java.util.List 
+      getWorkerLogOrBuilderList() {
+    return workerLog_;
+  }
+  /**
+   * repeated .tensorflow.Event worker_log = 2;
+   */
+  @java.lang.Override
+  public int getWorkerLogCount() {
+    return workerLog_.size();
+  }
+  /**
+   * repeated .tensorflow.Event worker_log = 2;
+   */
+  @java.lang.Override
+  public org.tensorflow.proto.Event getWorkerLog(int index) {
+    return workerLog_.get(index);
+  }
+  /**
+   * repeated .tensorflow.Event worker_log = 2;
+   */
+  @java.lang.Override
+  public org.tensorflow.proto.EventOrBuilder getWorkerLogOrBuilder(
+      int index) {
+    return workerLog_.get(index);
+  }
+
+  public static final int HOSTNAME_FIELD_NUMBER = 3;
+  private volatile java.lang.Object hostname_;
+  /**
+   * string hostname = 3;
+   * @return The hostname.
+   */
+  @java.lang.Override
+  public java.lang.String getHostname() {
+    java.lang.Object ref = hostname_;
+    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();
+      hostname_ = s;
+      return s;
+    }
+  }
+  /**
+   * string hostname = 3;
+   * @return The bytes for hostname.
+   */
+  @java.lang.Override
+  public com.google.protobuf.ByteString
+      getHostnameBytes() {
+    java.lang.Object ref = hostname_;
+    if (ref instanceof java.lang.String) {
+      com.google.protobuf.ByteString b = 
+          com.google.protobuf.ByteString.copyFromUtf8(
+              (java.lang.String) ref);
+      hostname_ = 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 (healthStatus_ != org.tensorflow.proto.WorkerHealth.OK.getNumber()) {
+      output.writeEnum(1, healthStatus_);
+    }
+    for (int i = 0; i < workerLog_.size(); i++) {
+      output.writeMessage(2, workerLog_.get(i));
+    }
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) {
+      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, hostname_);
+    }
+    getUnknownFields().writeTo(output);
+  }
+
+  @java.lang.Override
+  public int getSerializedSize() {
+    int size = memoizedSize;
+    if (size != -1) return size;
+
+    size = 0;
+    if (healthStatus_ != org.tensorflow.proto.WorkerHealth.OK.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(1, healthStatus_);
+    }
+    for (int i = 0; i < workerLog_.size(); i++) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, workerLog_.get(i));
+    }
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) {
+      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, hostname_);
+    }
+    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 org.tensorflow.proto.WorkerHeartbeatResponse)) {
+      return super.equals(obj);
+    }
+    org.tensorflow.proto.WorkerHeartbeatResponse other = (org.tensorflow.proto.WorkerHeartbeatResponse) obj;
+
+    if (healthStatus_ != other.healthStatus_) return false;
+    if (!getWorkerLogList()
+        .equals(other.getWorkerLogList())) return false;
+    if (!getHostname()
+        .equals(other.getHostname())) 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) + HEALTH_STATUS_FIELD_NUMBER;
+    hash = (53 * hash) + healthStatus_;
+    if (getWorkerLogCount() > 0) {
+      hash = (37 * hash) + WORKER_LOG_FIELD_NUMBER;
+      hash = (53 * hash) + getWorkerLogList().hashCode();
+    }
+    hash = (37 * hash) + HOSTNAME_FIELD_NUMBER;
+    hash = (53 * hash) + getHostname().hashCode();
+    hash = (29 * hash) + getUnknownFields().hashCode();
+    memoizedHashCode = hash;
+    return hash;
+  }
+
+  public static org.tensorflow.proto.WorkerHeartbeatResponse parseFrom(
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.WorkerHeartbeatResponse parseFrom(
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.WorkerHeartbeatResponse parseFrom(
+      com.google.protobuf.ByteString data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.WorkerHeartbeatResponse parseFrom(
+      com.google.protobuf.ByteString data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.WorkerHeartbeatResponse parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.WorkerHeartbeatResponse parseFrom(
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.WorkerHeartbeatResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.WorkerHeartbeatResponse 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 org.tensorflow.proto.WorkerHeartbeatResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.WorkerHeartbeatResponse 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 org.tensorflow.proto.WorkerHeartbeatResponse parseFrom(
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.WorkerHeartbeatResponse 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(org.tensorflow.proto.WorkerHeartbeatResponse prototype) {
+    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+  }
+  @java.lang.Override
+  public Builder toBuilder() {
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
+  }
+
+  @java.lang.Override
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    Builder builder = new Builder(parent);
+    return builder;
+  }
+  /**
+   * Protobuf type {@code tensorflow.WorkerHeartbeatResponse}
+   */
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
+      // @@protoc_insertion_point(builder_implements:tensorflow.WorkerHeartbeatResponse)
+      org.tensorflow.proto.WorkerHeartbeatResponseOrBuilder {
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return org.tensorflow.proto.EventProtos.internal_static_tensorflow_WorkerHeartbeatResponse_descriptor;
+    }
+
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+        internalGetFieldAccessorTable() {
+      return org.tensorflow.proto.EventProtos.internal_static_tensorflow_WorkerHeartbeatResponse_fieldAccessorTable
+          .ensureFieldAccessorsInitialized(
+              org.tensorflow.proto.WorkerHeartbeatResponse.class, org.tensorflow.proto.WorkerHeartbeatResponse.Builder.class);
+    }
+
+    // Construct using org.tensorflow.proto.WorkerHeartbeatResponse.newBuilder()
+    private Builder() {
+
+    }
+
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
+    @java.lang.Override
+    public Builder clear() {
+      super.clear();
+      healthStatus_ = 0;
+
+      if (workerLogBuilder_ == null) {
+        workerLog_ = java.util.Collections.emptyList();
+      } else {
+        workerLog_ = null;
+        workerLogBuilder_.clear();
+      }
+      bitField0_ = (bitField0_ & ~0x00000001);
+      hostname_ = "";
+
+      return this;
+    }
+
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return org.tensorflow.proto.EventProtos.internal_static_tensorflow_WorkerHeartbeatResponse_descriptor;
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.WorkerHeartbeatResponse getDefaultInstanceForType() {
+      return org.tensorflow.proto.WorkerHeartbeatResponse.getDefaultInstance();
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.WorkerHeartbeatResponse build() {
+      org.tensorflow.proto.WorkerHeartbeatResponse result = buildPartial();
+      if (!result.isInitialized()) {
+        throw newUninitializedMessageException(result);
+      }
+      return result;
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.WorkerHeartbeatResponse buildPartial() {
+      org.tensorflow.proto.WorkerHeartbeatResponse result = new org.tensorflow.proto.WorkerHeartbeatResponse(this);
+      int from_bitField0_ = bitField0_;
+      result.healthStatus_ = healthStatus_;
+      if (workerLogBuilder_ == null) {
+        if (((bitField0_ & 0x00000001) != 0)) {
+          workerLog_ = java.util.Collections.unmodifiableList(workerLog_);
+          bitField0_ = (bitField0_ & ~0x00000001);
+        }
+        result.workerLog_ = workerLog_;
+      } else {
+        result.workerLog_ = workerLogBuilder_.build();
+      }
+      result.hostname_ = hostname_;
+      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 org.tensorflow.proto.WorkerHeartbeatResponse) {
+        return mergeFrom((org.tensorflow.proto.WorkerHeartbeatResponse)other);
+      } else {
+        super.mergeFrom(other);
+        return this;
+      }
+    }
+
+    public Builder mergeFrom(org.tensorflow.proto.WorkerHeartbeatResponse other) {
+      if (other == org.tensorflow.proto.WorkerHeartbeatResponse.getDefaultInstance()) return this;
+      if (other.healthStatus_ != 0) {
+        setHealthStatusValue(other.getHealthStatusValue());
+      }
+      if (workerLogBuilder_ == null) {
+        if (!other.workerLog_.isEmpty()) {
+          if (workerLog_.isEmpty()) {
+            workerLog_ = other.workerLog_;
+            bitField0_ = (bitField0_ & ~0x00000001);
+          } else {
+            ensureWorkerLogIsMutable();
+            workerLog_.addAll(other.workerLog_);
+          }
+          onChanged();
+        }
+      } else {
+        if (!other.workerLog_.isEmpty()) {
+          if (workerLogBuilder_.isEmpty()) {
+            workerLogBuilder_.dispose();
+            workerLogBuilder_ = null;
+            workerLog_ = other.workerLog_;
+            bitField0_ = (bitField0_ & ~0x00000001);
+            workerLogBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getWorkerLogFieldBuilder() : null;
+          } else {
+            workerLogBuilder_.addAllMessages(other.workerLog_);
+          }
+        }
+      }
+      if (!other.getHostname().isEmpty()) {
+        hostname_ = other.hostname_;
+        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 8: {
+              healthStatus_ = input.readEnum();
+
+              break;
+            } // case 8
+            case 18: {
+              org.tensorflow.proto.Event m =
+                  input.readMessage(
+                      org.tensorflow.proto.Event.parser(),
+                      extensionRegistry);
+              if (workerLogBuilder_ == null) {
+                ensureWorkerLogIsMutable();
+                workerLog_.add(m);
+              } else {
+                workerLogBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 26: {
+              hostname_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 26
+            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 healthStatus_ = 0;
+    /**
+     * .tensorflow.WorkerHealth health_status = 1;
+     * @return The enum numeric value on the wire for healthStatus.
+     */
+    @java.lang.Override public int getHealthStatusValue() {
+      return healthStatus_;
+    }
+    /**
+     * .tensorflow.WorkerHealth health_status = 1;
+     * @param value The enum numeric value on the wire for healthStatus to set.
+     * @return This builder for chaining.
+     */
+    public Builder setHealthStatusValue(int value) {
+      
+      healthStatus_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * .tensorflow.WorkerHealth health_status = 1;
+     * @return The healthStatus.
+     */
+    @java.lang.Override
+    public org.tensorflow.proto.WorkerHealth getHealthStatus() {
+      @SuppressWarnings("deprecation")
+      org.tensorflow.proto.WorkerHealth result = org.tensorflow.proto.WorkerHealth.valueOf(healthStatus_);
+      return result == null ? org.tensorflow.proto.WorkerHealth.UNRECOGNIZED : result;
+    }
+    /**
+     * .tensorflow.WorkerHealth health_status = 1;
+     * @param value The healthStatus to set.
+     * @return This builder for chaining.
+     */
+    public Builder setHealthStatus(org.tensorflow.proto.WorkerHealth value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
+      
+      healthStatus_ = value.getNumber();
+      onChanged();
+      return this;
+    }
+    /**
+     * .tensorflow.WorkerHealth health_status = 1;
+     * @return This builder for chaining.
+     */
+    public Builder clearHealthStatus() {
+      
+      healthStatus_ = 0;
+      onChanged();
+      return this;
+    }
+
+    private java.util.List workerLog_ =
+      java.util.Collections.emptyList();
+    private void ensureWorkerLogIsMutable() {
+      if (!((bitField0_ & 0x00000001) != 0)) {
+        workerLog_ = new java.util.ArrayList(workerLog_);
+        bitField0_ |= 0x00000001;
+       }
+    }
+
+    private com.google.protobuf.RepeatedFieldBuilderV3<
+        org.tensorflow.proto.Event, org.tensorflow.proto.Event.Builder, org.tensorflow.proto.EventOrBuilder> workerLogBuilder_;
+
+    /**
+     * repeated .tensorflow.Event worker_log = 2;
+     */
+    public java.util.List getWorkerLogList() {
+      if (workerLogBuilder_ == null) {
+        return java.util.Collections.unmodifiableList(workerLog_);
+      } else {
+        return workerLogBuilder_.getMessageList();
+      }
+    }
+    /**
+     * repeated .tensorflow.Event worker_log = 2;
+     */
+    public int getWorkerLogCount() {
+      if (workerLogBuilder_ == null) {
+        return workerLog_.size();
+      } else {
+        return workerLogBuilder_.getCount();
+      }
+    }
+    /**
+     * repeated .tensorflow.Event worker_log = 2;
+     */
+    public org.tensorflow.proto.Event getWorkerLog(int index) {
+      if (workerLogBuilder_ == null) {
+        return workerLog_.get(index);
+      } else {
+        return workerLogBuilder_.getMessage(index);
+      }
+    }
+    /**
+     * repeated .tensorflow.Event worker_log = 2;
+     */
+    public Builder setWorkerLog(
+        int index, org.tensorflow.proto.Event value) {
+      if (workerLogBuilder_ == null) {
+        if (value == null) {
+          throw new NullPointerException();
+        }
+        ensureWorkerLogIsMutable();
+        workerLog_.set(index, value);
+        onChanged();
+      } else {
+        workerLogBuilder_.setMessage(index, value);
+      }
+      return this;
+    }
+    /**
+     * repeated .tensorflow.Event worker_log = 2;
+     */
+    public Builder setWorkerLog(
+        int index, org.tensorflow.proto.Event.Builder builderForValue) {
+      if (workerLogBuilder_ == null) {
+        ensureWorkerLogIsMutable();
+        workerLog_.set(index, builderForValue.build());
+        onChanged();
+      } else {
+        workerLogBuilder_.setMessage(index, builderForValue.build());
+      }
+      return this;
+    }
+    /**
+     * repeated .tensorflow.Event worker_log = 2;
+     */
+    public Builder addWorkerLog(org.tensorflow.proto.Event value) {
+      if (workerLogBuilder_ == null) {
+        if (value == null) {
+          throw new NullPointerException();
+        }
+        ensureWorkerLogIsMutable();
+        workerLog_.add(value);
+        onChanged();
+      } else {
+        workerLogBuilder_.addMessage(value);
+      }
+      return this;
+    }
+    /**
+     * repeated .tensorflow.Event worker_log = 2;
+     */
+    public Builder addWorkerLog(
+        int index, org.tensorflow.proto.Event value) {
+      if (workerLogBuilder_ == null) {
+        if (value == null) {
+          throw new NullPointerException();
+        }
+        ensureWorkerLogIsMutable();
+        workerLog_.add(index, value);
+        onChanged();
+      } else {
+        workerLogBuilder_.addMessage(index, value);
+      }
+      return this;
+    }
+    /**
+     * repeated .tensorflow.Event worker_log = 2;
+     */
+    public Builder addWorkerLog(
+        org.tensorflow.proto.Event.Builder builderForValue) {
+      if (workerLogBuilder_ == null) {
+        ensureWorkerLogIsMutable();
+        workerLog_.add(builderForValue.build());
+        onChanged();
+      } else {
+        workerLogBuilder_.addMessage(builderForValue.build());
+      }
+      return this;
+    }
+    /**
+     * repeated .tensorflow.Event worker_log = 2;
+     */
+    public Builder addWorkerLog(
+        int index, org.tensorflow.proto.Event.Builder builderForValue) {
+      if (workerLogBuilder_ == null) {
+        ensureWorkerLogIsMutable();
+        workerLog_.add(index, builderForValue.build());
+        onChanged();
+      } else {
+        workerLogBuilder_.addMessage(index, builderForValue.build());
+      }
+      return this;
+    }
+    /**
+     * repeated .tensorflow.Event worker_log = 2;
+     */
+    public Builder addAllWorkerLog(
+        java.lang.Iterable values) {
+      if (workerLogBuilder_ == null) {
+        ensureWorkerLogIsMutable();
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, workerLog_);
+        onChanged();
+      } else {
+        workerLogBuilder_.addAllMessages(values);
+      }
+      return this;
+    }
+    /**
+     * repeated .tensorflow.Event worker_log = 2;
+     */
+    public Builder clearWorkerLog() {
+      if (workerLogBuilder_ == null) {
+        workerLog_ = java.util.Collections.emptyList();
+        bitField0_ = (bitField0_ & ~0x00000001);
+        onChanged();
+      } else {
+        workerLogBuilder_.clear();
+      }
+      return this;
+    }
+    /**
+     * repeated .tensorflow.Event worker_log = 2;
+     */
+    public Builder removeWorkerLog(int index) {
+      if (workerLogBuilder_ == null) {
+        ensureWorkerLogIsMutable();
+        workerLog_.remove(index);
+        onChanged();
+      } else {
+        workerLogBuilder_.remove(index);
+      }
+      return this;
+    }
+    /**
+     * repeated .tensorflow.Event worker_log = 2;
+     */
+    public org.tensorflow.proto.Event.Builder getWorkerLogBuilder(
+        int index) {
+      return getWorkerLogFieldBuilder().getBuilder(index);
+    }
+    /**
+     * repeated .tensorflow.Event worker_log = 2;
+     */
+    public org.tensorflow.proto.EventOrBuilder getWorkerLogOrBuilder(
+        int index) {
+      if (workerLogBuilder_ == null) {
+        return workerLog_.get(index);  } else {
+        return workerLogBuilder_.getMessageOrBuilder(index);
+      }
+    }
+    /**
+     * repeated .tensorflow.Event worker_log = 2;
+     */
+    public java.util.List 
+         getWorkerLogOrBuilderList() {
+      if (workerLogBuilder_ != null) {
+        return workerLogBuilder_.getMessageOrBuilderList();
+      } else {
+        return java.util.Collections.unmodifiableList(workerLog_);
+      }
+    }
+    /**
+     * repeated .tensorflow.Event worker_log = 2;
+     */
+    public org.tensorflow.proto.Event.Builder addWorkerLogBuilder() {
+      return getWorkerLogFieldBuilder().addBuilder(
+          org.tensorflow.proto.Event.getDefaultInstance());
+    }
+    /**
+     * repeated .tensorflow.Event worker_log = 2;
+     */
+    public org.tensorflow.proto.Event.Builder addWorkerLogBuilder(
+        int index) {
+      return getWorkerLogFieldBuilder().addBuilder(
+          index, org.tensorflow.proto.Event.getDefaultInstance());
+    }
+    /**
+     * repeated .tensorflow.Event worker_log = 2;
+     */
+    public java.util.List 
+         getWorkerLogBuilderList() {
+      return getWorkerLogFieldBuilder().getBuilderList();
+    }
+    private com.google.protobuf.RepeatedFieldBuilderV3<
+        org.tensorflow.proto.Event, org.tensorflow.proto.Event.Builder, org.tensorflow.proto.EventOrBuilder> 
+        getWorkerLogFieldBuilder() {
+      if (workerLogBuilder_ == null) {
+        workerLogBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            org.tensorflow.proto.Event, org.tensorflow.proto.Event.Builder, org.tensorflow.proto.EventOrBuilder>(
+                workerLog_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
+        workerLog_ = null;
+      }
+      return workerLogBuilder_;
+    }
+
+    private java.lang.Object hostname_ = "";
+    /**
+     * string hostname = 3;
+     * @return The hostname.
+     */
+    public java.lang.String getHostname() {
+      java.lang.Object ref = hostname_;
+      if (!(ref instanceof java.lang.String)) {
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
+        java.lang.String s = bs.toStringUtf8();
+        hostname_ = s;
+        return s;
+      } else {
+        return (java.lang.String) ref;
+      }
+    }
+    /**
+     * string hostname = 3;
+     * @return The bytes for hostname.
+     */
+    public com.google.protobuf.ByteString
+        getHostnameBytes() {
+      java.lang.Object ref = hostname_;
+      if (ref instanceof String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        hostname_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+    /**
+     * string hostname = 3;
+     * @param value The hostname to set.
+     * @return This builder for chaining.
+     */
+    public Builder setHostname(
+        java.lang.String value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  
+      hostname_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * string hostname = 3;
+     * @return This builder for chaining.
+     */
+    public Builder clearHostname() {
+      
+      hostname_ = getDefaultInstance().getHostname();
+      onChanged();
+      return this;
+    }
+    /**
+     * string hostname = 3;
+     * @param value The bytes for hostname to set.
+     * @return This builder for chaining.
+     */
+    public Builder setHostnameBytes(
+        com.google.protobuf.ByteString value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  checkByteStringIsUtf8(value);
+      
+      hostname_ = value;
+      onChanged();
+      return this;
+    }
+    @java.lang.Override
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
+      return super.setUnknownFields(unknownFields);
+    }
+
+    @java.lang.Override
+    public final Builder mergeUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
+      return super.mergeUnknownFields(unknownFields);
+    }
+
+
+    // @@protoc_insertion_point(builder_scope:tensorflow.WorkerHeartbeatResponse)
+  }
+
+  // @@protoc_insertion_point(class_scope:tensorflow.WorkerHeartbeatResponse)
+  private static final org.tensorflow.proto.WorkerHeartbeatResponse DEFAULT_INSTANCE;
+  static {
+    DEFAULT_INSTANCE = new org.tensorflow.proto.WorkerHeartbeatResponse();
+  }
+
+  public static org.tensorflow.proto.WorkerHeartbeatResponse getDefaultInstance() {
+    return DEFAULT_INSTANCE;
+  }
+
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public WorkerHeartbeatResponse 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 org.tensorflow.proto.WorkerHeartbeatResponse getDefaultInstanceForType() {
+    return DEFAULT_INSTANCE;
+  }
+
+}
+
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WorkerHeartbeatResponseOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WorkerHeartbeatResponseOrBuilder.java
new file mode 100644
index 00000000000..ad150376fbb
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WorkerHeartbeatResponseOrBuilder.java
@@ -0,0 +1,56 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/util/event.proto
+
+package org.tensorflow.proto;
+
+public interface WorkerHeartbeatResponseOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:tensorflow.WorkerHeartbeatResponse)
+    com.google.protobuf.MessageOrBuilder {
+
+  /**
+   * .tensorflow.WorkerHealth health_status = 1;
+   * @return The enum numeric value on the wire for healthStatus.
+   */
+  int getHealthStatusValue();
+  /**
+   * .tensorflow.WorkerHealth health_status = 1;
+   * @return The healthStatus.
+   */
+  org.tensorflow.proto.WorkerHealth getHealthStatus();
+
+  /**
+   * repeated .tensorflow.Event worker_log = 2;
+   */
+  java.util.List 
+      getWorkerLogList();
+  /**
+   * repeated .tensorflow.Event worker_log = 2;
+   */
+  org.tensorflow.proto.Event getWorkerLog(int index);
+  /**
+   * repeated .tensorflow.Event worker_log = 2;
+   */
+  int getWorkerLogCount();
+  /**
+   * repeated .tensorflow.Event worker_log = 2;
+   */
+  java.util.List 
+      getWorkerLogOrBuilderList();
+  /**
+   * repeated .tensorflow.Event worker_log = 2;
+   */
+  org.tensorflow.proto.EventOrBuilder getWorkerLogOrBuilder(
+      int index);
+
+  /**
+   * string hostname = 3;
+   * @return The hostname.
+   */
+  java.lang.String getHostname();
+  /**
+   * string hostname = 3;
+   * @return The bytes for hostname.
+   */
+  com.google.protobuf.ByteString
+      getHostnameBytes();
+}
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/WorkerShutdownMode.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WorkerShutdownMode.java
similarity index 85%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/WorkerShutdownMode.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WorkerShutdownMode.java
index 41c4f45373c..c8400689a33 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/util/WorkerShutdownMode.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/WorkerShutdownMode.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/util/event.proto
 
-package org.tensorflow.proto.util;
+package org.tensorflow.proto;
 
 /**
  * 
@@ -59,6 +59,8 @@ public final int getNumber() {
   }
 
   /**
+   * @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
@@ -66,6 +68,10 @@ public static WorkerShutdownMode 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 WorkerShutdownMode forNumber(int value) {
     switch (value) {
       case 0: return DEFAULT;
@@ -90,6 +96,10 @@ public WorkerShutdownMode findValueByNumber(int 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
@@ -98,7 +108,7 @@ public WorkerShutdownMode findValueByNumber(int number) {
   }
   public static final com.google.protobuf.Descriptors.EnumDescriptor
       getDescriptor() {
-    return org.tensorflow.proto.util.EventProtos.getDescriptor().getEnumTypes().get(1);
+    return org.tensorflow.proto.EventProtos.getDescriptor().getEnumTypes().get(1);
   }
 
   private static final WorkerShutdownMode[] VALUES = values();
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/core/CppShapeInference.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/core/CppShapeInference.java
new file mode 100644
index 00000000000..0deb67ebf1e
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/core/CppShapeInference.java
@@ -0,0 +1,3531 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/framework/cpp_shape_inference.proto
+
+package org.tensorflow.proto.core;
+
+public final class CppShapeInference {
+  private CppShapeInference() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  public interface CppShapeInferenceResultOrBuilder extends
+      // @@protoc_insertion_point(interface_extends:tensorflow.core.CppShapeInferenceResult)
+      com.google.protobuf.MessageOrBuilder {
+
+    /**
+     * .tensorflow.TensorShapeProto shape = 1;
+     * @return Whether the shape field is set.
+     */
+    boolean hasShape();
+    /**
+     * .tensorflow.TensorShapeProto shape = 1;
+     * @return The shape.
+     */
+    org.tensorflow.proto.TensorShapeProto getShape();
+    /**
+     * .tensorflow.TensorShapeProto shape = 1;
+     */
+    org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder();
+
+    /**
+     * .tensorflow.core.CppShapeInferenceResult.HandleData handle_data = 4;
+     * @return Whether the handleData field is set.
+     */
+    boolean hasHandleData();
+    /**
+     * .tensorflow.core.CppShapeInferenceResult.HandleData handle_data = 4;
+     * @return The handleData.
+     */
+    org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData getHandleData();
+    /**
+     * .tensorflow.core.CppShapeInferenceResult.HandleData handle_data = 4;
+     */
+    org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleDataOrBuilder getHandleDataOrBuilder();
+  }
+  /**
+   * Protobuf type {@code tensorflow.core.CppShapeInferenceResult}
+   */
+  public static final class CppShapeInferenceResult extends
+      com.google.protobuf.GeneratedMessageV3 implements
+      // @@protoc_insertion_point(message_implements:tensorflow.core.CppShapeInferenceResult)
+      CppShapeInferenceResultOrBuilder {
+  private static final long serialVersionUID = 0L;
+    // Use CppShapeInferenceResult.newBuilder() to construct.
+    private CppShapeInferenceResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+      super(builder);
+    }
+    private CppShapeInferenceResult() {
+    }
+
+    @java.lang.Override
+    @SuppressWarnings({"unused"})
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
+      return new CppShapeInferenceResult();
+    }
+
+    @java.lang.Override
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
+      return this.unknownFields;
+    }
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return org.tensorflow.proto.core.CppShapeInference.internal_static_tensorflow_core_CppShapeInferenceResult_descriptor;
+    }
+
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+        internalGetFieldAccessorTable() {
+      return org.tensorflow.proto.core.CppShapeInference.internal_static_tensorflow_core_CppShapeInferenceResult_fieldAccessorTable
+          .ensureFieldAccessorsInitialized(
+              org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.class, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.Builder.class);
+    }
+
+    public interface HandleShapeAndTypeOrBuilder extends
+        // @@protoc_insertion_point(interface_extends:tensorflow.core.CppShapeInferenceResult.HandleShapeAndType)
+        com.google.protobuf.MessageOrBuilder {
+
+      /**
+       * .tensorflow.TensorShapeProto shape = 1;
+       * @return Whether the shape field is set.
+       */
+      boolean hasShape();
+      /**
+       * .tensorflow.TensorShapeProto shape = 1;
+       * @return The shape.
+       */
+      org.tensorflow.proto.TensorShapeProto getShape();
+      /**
+       * .tensorflow.TensorShapeProto shape = 1;
+       */
+      org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder();
+
+      /**
+       * .tensorflow.DataType dtype = 2;
+       * @return The enum numeric value on the wire for dtype.
+       */
+      int getDtypeValue();
+      /**
+       * .tensorflow.DataType dtype = 2;
+       * @return The dtype.
+       */
+      org.tensorflow.proto.DataType getDtype();
+
+      /**
+       * .tensorflow.FullTypeDef type = 4;
+       * @return Whether the type field is set.
+       */
+      boolean hasType();
+      /**
+       * .tensorflow.FullTypeDef type = 4;
+       * @return The type.
+       */
+      org.tensorflow.proto.FullTypeDef getType();
+      /**
+       * .tensorflow.FullTypeDef type = 4;
+       */
+      org.tensorflow.proto.FullTypeDefOrBuilder getTypeOrBuilder();
+    }
+    /**
+     * Protobuf type {@code tensorflow.core.CppShapeInferenceResult.HandleShapeAndType}
+     */
+    public static final class HandleShapeAndType extends
+        com.google.protobuf.GeneratedMessageV3 implements
+        // @@protoc_insertion_point(message_implements:tensorflow.core.CppShapeInferenceResult.HandleShapeAndType)
+        HandleShapeAndTypeOrBuilder {
+    private static final long serialVersionUID = 0L;
+      // Use HandleShapeAndType.newBuilder() to construct.
+      private HandleShapeAndType(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+        super(builder);
+      }
+      private HandleShapeAndType() {
+        dtype_ = 0;
+      }
+
+      @java.lang.Override
+      @SuppressWarnings({"unused"})
+      protected java.lang.Object newInstance(
+          UnusedPrivateParameter unused) {
+        return new HandleShapeAndType();
+      }
+
+      @java.lang.Override
+      public final com.google.protobuf.UnknownFieldSet
+      getUnknownFields() {
+        return this.unknownFields;
+      }
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return org.tensorflow.proto.core.CppShapeInference.internal_static_tensorflow_core_CppShapeInferenceResult_HandleShapeAndType_descriptor;
+      }
+
+      @java.lang.Override
+      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+          internalGetFieldAccessorTable() {
+        return org.tensorflow.proto.core.CppShapeInference.internal_static_tensorflow_core_CppShapeInferenceResult_HandleShapeAndType_fieldAccessorTable
+            .ensureFieldAccessorsInitialized(
+                org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.class, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.Builder.class);
+      }
+
+      public static final int SHAPE_FIELD_NUMBER = 1;
+      private org.tensorflow.proto.TensorShapeProto shape_;
+      /**
+       * .tensorflow.TensorShapeProto shape = 1;
+       * @return Whether the shape field is set.
+       */
+      @java.lang.Override
+      public boolean hasShape() {
+        return shape_ != null;
+      }
+      /**
+       * .tensorflow.TensorShapeProto shape = 1;
+       * @return The shape.
+       */
+      @java.lang.Override
+      public org.tensorflow.proto.TensorShapeProto getShape() {
+        return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_;
+      }
+      /**
+       * .tensorflow.TensorShapeProto shape = 1;
+       */
+      @java.lang.Override
+      public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() {
+        return getShape();
+      }
+
+      public static final int DTYPE_FIELD_NUMBER = 2;
+      private int dtype_;
+      /**
+       * .tensorflow.DataType dtype = 2;
+       * @return The enum numeric value on the wire for dtype.
+       */
+      @java.lang.Override public int getDtypeValue() {
+        return dtype_;
+      }
+      /**
+       * .tensorflow.DataType dtype = 2;
+       * @return The dtype.
+       */
+      @java.lang.Override public org.tensorflow.proto.DataType getDtype() {
+        @SuppressWarnings("deprecation")
+        org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_);
+        return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result;
+      }
+
+      public static final int TYPE_FIELD_NUMBER = 4;
+      private org.tensorflow.proto.FullTypeDef type_;
+      /**
+       * .tensorflow.FullTypeDef type = 4;
+       * @return Whether the type field is set.
+       */
+      @java.lang.Override
+      public boolean hasType() {
+        return type_ != null;
+      }
+      /**
+       * .tensorflow.FullTypeDef type = 4;
+       * @return The type.
+       */
+      @java.lang.Override
+      public org.tensorflow.proto.FullTypeDef getType() {
+        return type_ == null ? org.tensorflow.proto.FullTypeDef.getDefaultInstance() : type_;
+      }
+      /**
+       * .tensorflow.FullTypeDef type = 4;
+       */
+      @java.lang.Override
+      public org.tensorflow.proto.FullTypeDefOrBuilder getTypeOrBuilder() {
+        return getType();
+      }
+
+      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 (shape_ != null) {
+          output.writeMessage(1, getShape());
+        }
+        if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) {
+          output.writeEnum(2, dtype_);
+        }
+        if (type_ != null) {
+          output.writeMessage(4, getType());
+        }
+        getUnknownFields().writeTo(output);
+      }
+
+      @java.lang.Override
+      public int getSerializedSize() {
+        int size = memoizedSize;
+        if (size != -1) return size;
+
+        size = 0;
+        if (shape_ != null) {
+          size += com.google.protobuf.CodedOutputStream
+            .computeMessageSize(1, getShape());
+        }
+        if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) {
+          size += com.google.protobuf.CodedOutputStream
+            .computeEnumSize(2, dtype_);
+        }
+        if (type_ != null) {
+          size += com.google.protobuf.CodedOutputStream
+            .computeMessageSize(4, getType());
+        }
+        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 org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType)) {
+          return super.equals(obj);
+        }
+        org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType other = (org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType) obj;
+
+        if (hasShape() != other.hasShape()) return false;
+        if (hasShape()) {
+          if (!getShape()
+              .equals(other.getShape())) return false;
+        }
+        if (dtype_ != other.dtype_) return false;
+        if (hasType() != other.hasType()) return false;
+        if (hasType()) {
+          if (!getType()
+              .equals(other.getType())) 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 (hasShape()) {
+          hash = (37 * hash) + SHAPE_FIELD_NUMBER;
+          hash = (53 * hash) + getShape().hashCode();
+        }
+        hash = (37 * hash) + DTYPE_FIELD_NUMBER;
+        hash = (53 * hash) + dtype_;
+        if (hasType()) {
+          hash = (37 * hash) + TYPE_FIELD_NUMBER;
+          hash = (53 * hash) + getType().hashCode();
+        }
+        hash = (29 * hash) + getUnknownFields().hashCode();
+        memoizedHashCode = hash;
+        return hash;
+      }
+
+      public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType parseFrom(
+          java.nio.ByteBuffer data)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        return PARSER.parseFrom(data);
+      }
+      public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType parseFrom(
+          java.nio.ByteBuffer data,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        return PARSER.parseFrom(data, extensionRegistry);
+      }
+      public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType parseFrom(
+          com.google.protobuf.ByteString data)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        return PARSER.parseFrom(data);
+      }
+      public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType parseFrom(
+          com.google.protobuf.ByteString data,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        return PARSER.parseFrom(data, extensionRegistry);
+      }
+      public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType parseFrom(byte[] data)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        return PARSER.parseFrom(data);
+      }
+      public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType parseFrom(
+          byte[] data,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        return PARSER.parseFrom(data, extensionRegistry);
+      }
+      public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType parseFrom(java.io.InputStream input)
+          throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3
+            .parseWithIOException(PARSER, input);
+      }
+      public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType 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 org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType parseDelimitedFrom(java.io.InputStream input)
+          throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3
+            .parseDelimitedWithIOException(PARSER, input);
+      }
+      public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType 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 org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType parseFrom(
+          com.google.protobuf.CodedInputStream input)
+          throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3
+            .parseWithIOException(PARSER, input);
+      }
+      public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType 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(org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType prototype) {
+        return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+      }
+      @java.lang.Override
+      public Builder toBuilder() {
+        return this == DEFAULT_INSTANCE
+            ? new Builder() : new Builder().mergeFrom(this);
+      }
+
+      @java.lang.Override
+      protected Builder newBuilderForType(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        Builder builder = new Builder(parent);
+        return builder;
+      }
+      /**
+       * Protobuf type {@code tensorflow.core.CppShapeInferenceResult.HandleShapeAndType}
+       */
+      public static final class Builder extends
+          com.google.protobuf.GeneratedMessageV3.Builder implements
+          // @@protoc_insertion_point(builder_implements:tensorflow.core.CppShapeInferenceResult.HandleShapeAndType)
+          org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndTypeOrBuilder {
+        public static final com.google.protobuf.Descriptors.Descriptor
+            getDescriptor() {
+          return org.tensorflow.proto.core.CppShapeInference.internal_static_tensorflow_core_CppShapeInferenceResult_HandleShapeAndType_descriptor;
+        }
+
+        @java.lang.Override
+        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+            internalGetFieldAccessorTable() {
+          return org.tensorflow.proto.core.CppShapeInference.internal_static_tensorflow_core_CppShapeInferenceResult_HandleShapeAndType_fieldAccessorTable
+              .ensureFieldAccessorsInitialized(
+                  org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.class, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.Builder.class);
+        }
+
+        // Construct using org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.newBuilder()
+        private Builder() {
+
+        }
+
+        private Builder(
+            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+          super(parent);
+
+        }
+        @java.lang.Override
+        public Builder clear() {
+          super.clear();
+          if (shapeBuilder_ == null) {
+            shape_ = null;
+          } else {
+            shape_ = null;
+            shapeBuilder_ = null;
+          }
+          dtype_ = 0;
+
+          if (typeBuilder_ == null) {
+            type_ = null;
+          } else {
+            type_ = null;
+            typeBuilder_ = null;
+          }
+          return this;
+        }
+
+        @java.lang.Override
+        public com.google.protobuf.Descriptors.Descriptor
+            getDescriptorForType() {
+          return org.tensorflow.proto.core.CppShapeInference.internal_static_tensorflow_core_CppShapeInferenceResult_HandleShapeAndType_descriptor;
+        }
+
+        @java.lang.Override
+        public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType getDefaultInstanceForType() {
+          return org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.getDefaultInstance();
+        }
+
+        @java.lang.Override
+        public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType build() {
+          org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType result = buildPartial();
+          if (!result.isInitialized()) {
+            throw newUninitializedMessageException(result);
+          }
+          return result;
+        }
+
+        @java.lang.Override
+        public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType buildPartial() {
+          org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType result = new org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType(this);
+          if (shapeBuilder_ == null) {
+            result.shape_ = shape_;
+          } else {
+            result.shape_ = shapeBuilder_.build();
+          }
+          result.dtype_ = dtype_;
+          if (typeBuilder_ == null) {
+            result.type_ = type_;
+          } else {
+            result.type_ = typeBuilder_.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 org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType) {
+            return mergeFrom((org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType)other);
+          } else {
+            super.mergeFrom(other);
+            return this;
+          }
+        }
+
+        public Builder mergeFrom(org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType other) {
+          if (other == org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.getDefaultInstance()) return this;
+          if (other.hasShape()) {
+            mergeShape(other.getShape());
+          }
+          if (other.dtype_ != 0) {
+            setDtypeValue(other.getDtypeValue());
+          }
+          if (other.hasType()) {
+            mergeType(other.getType());
+          }
+          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(
+                      getShapeFieldBuilder().getBuilder(),
+                      extensionRegistry);
+
+                  break;
+                } // case 10
+                case 16: {
+                  dtype_ = input.readEnum();
+
+                  break;
+                } // case 16
+                case 34: {
+                  input.readMessage(
+                      getTypeFieldBuilder().getBuilder(),
+                      extensionRegistry);
+
+                  break;
+                } // case 34
+                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 org.tensorflow.proto.TensorShapeProto shape_;
+        private com.google.protobuf.SingleFieldBuilderV3<
+            org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> shapeBuilder_;
+        /**
+         * .tensorflow.TensorShapeProto shape = 1;
+         * @return Whether the shape field is set.
+         */
+        public boolean hasShape() {
+          return shapeBuilder_ != null || shape_ != null;
+        }
+        /**
+         * .tensorflow.TensorShapeProto shape = 1;
+         * @return The shape.
+         */
+        public org.tensorflow.proto.TensorShapeProto getShape() {
+          if (shapeBuilder_ == null) {
+            return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_;
+          } else {
+            return shapeBuilder_.getMessage();
+          }
+        }
+        /**
+         * .tensorflow.TensorShapeProto shape = 1;
+         */
+        public Builder setShape(org.tensorflow.proto.TensorShapeProto value) {
+          if (shapeBuilder_ == null) {
+            if (value == null) {
+              throw new NullPointerException();
+            }
+            shape_ = value;
+            onChanged();
+          } else {
+            shapeBuilder_.setMessage(value);
+          }
+
+          return this;
+        }
+        /**
+         * .tensorflow.TensorShapeProto shape = 1;
+         */
+        public Builder setShape(
+            org.tensorflow.proto.TensorShapeProto.Builder builderForValue) {
+          if (shapeBuilder_ == null) {
+            shape_ = builderForValue.build();
+            onChanged();
+          } else {
+            shapeBuilder_.setMessage(builderForValue.build());
+          }
+
+          return this;
+        }
+        /**
+         * .tensorflow.TensorShapeProto shape = 1;
+         */
+        public Builder mergeShape(org.tensorflow.proto.TensorShapeProto value) {
+          if (shapeBuilder_ == null) {
+            if (shape_ != null) {
+              shape_ =
+                org.tensorflow.proto.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial();
+            } else {
+              shape_ = value;
+            }
+            onChanged();
+          } else {
+            shapeBuilder_.mergeFrom(value);
+          }
+
+          return this;
+        }
+        /**
+         * .tensorflow.TensorShapeProto shape = 1;
+         */
+        public Builder clearShape() {
+          if (shapeBuilder_ == null) {
+            shape_ = null;
+            onChanged();
+          } else {
+            shape_ = null;
+            shapeBuilder_ = null;
+          }
+
+          return this;
+        }
+        /**
+         * .tensorflow.TensorShapeProto shape = 1;
+         */
+        public org.tensorflow.proto.TensorShapeProto.Builder getShapeBuilder() {
+          
+          onChanged();
+          return getShapeFieldBuilder().getBuilder();
+        }
+        /**
+         * .tensorflow.TensorShapeProto shape = 1;
+         */
+        public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() {
+          if (shapeBuilder_ != null) {
+            return shapeBuilder_.getMessageOrBuilder();
+          } else {
+            return shape_ == null ?
+                org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_;
+          }
+        }
+        /**
+         * .tensorflow.TensorShapeProto shape = 1;
+         */
+        private com.google.protobuf.SingleFieldBuilderV3<
+            org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> 
+            getShapeFieldBuilder() {
+          if (shapeBuilder_ == null) {
+            shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+                org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder>(
+                    getShape(),
+                    getParentForChildren(),
+                    isClean());
+            shape_ = null;
+          }
+          return shapeBuilder_;
+        }
+
+        private int dtype_ = 0;
+        /**
+         * .tensorflow.DataType dtype = 2;
+         * @return The enum numeric value on the wire for dtype.
+         */
+        @java.lang.Override public int getDtypeValue() {
+          return dtype_;
+        }
+        /**
+         * .tensorflow.DataType dtype = 2;
+         * @param value The enum numeric value on the wire for dtype to set.
+         * @return This builder for chaining.
+         */
+        public Builder setDtypeValue(int value) {
+          
+          dtype_ = value;
+          onChanged();
+          return this;
+        }
+        /**
+         * .tensorflow.DataType dtype = 2;
+         * @return The dtype.
+         */
+        @java.lang.Override
+        public org.tensorflow.proto.DataType getDtype() {
+          @SuppressWarnings("deprecation")
+          org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_);
+          return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result;
+        }
+        /**
+         * .tensorflow.DataType dtype = 2;
+         * @param value The dtype to set.
+         * @return This builder for chaining.
+         */
+        public Builder setDtype(org.tensorflow.proto.DataType value) {
+          if (value == null) {
+            throw new NullPointerException();
+          }
+          
+          dtype_ = value.getNumber();
+          onChanged();
+          return this;
+        }
+        /**
+         * .tensorflow.DataType dtype = 2;
+         * @return This builder for chaining.
+         */
+        public Builder clearDtype() {
+          
+          dtype_ = 0;
+          onChanged();
+          return this;
+        }
+
+        private org.tensorflow.proto.FullTypeDef type_;
+        private com.google.protobuf.SingleFieldBuilderV3<
+            org.tensorflow.proto.FullTypeDef, org.tensorflow.proto.FullTypeDef.Builder, org.tensorflow.proto.FullTypeDefOrBuilder> typeBuilder_;
+        /**
+         * .tensorflow.FullTypeDef type = 4;
+         * @return Whether the type field is set.
+         */
+        public boolean hasType() {
+          return typeBuilder_ != null || type_ != null;
+        }
+        /**
+         * .tensorflow.FullTypeDef type = 4;
+         * @return The type.
+         */
+        public org.tensorflow.proto.FullTypeDef getType() {
+          if (typeBuilder_ == null) {
+            return type_ == null ? org.tensorflow.proto.FullTypeDef.getDefaultInstance() : type_;
+          } else {
+            return typeBuilder_.getMessage();
+          }
+        }
+        /**
+         * .tensorflow.FullTypeDef type = 4;
+         */
+        public Builder setType(org.tensorflow.proto.FullTypeDef value) {
+          if (typeBuilder_ == null) {
+            if (value == null) {
+              throw new NullPointerException();
+            }
+            type_ = value;
+            onChanged();
+          } else {
+            typeBuilder_.setMessage(value);
+          }
+
+          return this;
+        }
+        /**
+         * .tensorflow.FullTypeDef type = 4;
+         */
+        public Builder setType(
+            org.tensorflow.proto.FullTypeDef.Builder builderForValue) {
+          if (typeBuilder_ == null) {
+            type_ = builderForValue.build();
+            onChanged();
+          } else {
+            typeBuilder_.setMessage(builderForValue.build());
+          }
+
+          return this;
+        }
+        /**
+         * .tensorflow.FullTypeDef type = 4;
+         */
+        public Builder mergeType(org.tensorflow.proto.FullTypeDef value) {
+          if (typeBuilder_ == null) {
+            if (type_ != null) {
+              type_ =
+                org.tensorflow.proto.FullTypeDef.newBuilder(type_).mergeFrom(value).buildPartial();
+            } else {
+              type_ = value;
+            }
+            onChanged();
+          } else {
+            typeBuilder_.mergeFrom(value);
+          }
+
+          return this;
+        }
+        /**
+         * .tensorflow.FullTypeDef type = 4;
+         */
+        public Builder clearType() {
+          if (typeBuilder_ == null) {
+            type_ = null;
+            onChanged();
+          } else {
+            type_ = null;
+            typeBuilder_ = null;
+          }
+
+          return this;
+        }
+        /**
+         * .tensorflow.FullTypeDef type = 4;
+         */
+        public org.tensorflow.proto.FullTypeDef.Builder getTypeBuilder() {
+          
+          onChanged();
+          return getTypeFieldBuilder().getBuilder();
+        }
+        /**
+         * .tensorflow.FullTypeDef type = 4;
+         */
+        public org.tensorflow.proto.FullTypeDefOrBuilder getTypeOrBuilder() {
+          if (typeBuilder_ != null) {
+            return typeBuilder_.getMessageOrBuilder();
+          } else {
+            return type_ == null ?
+                org.tensorflow.proto.FullTypeDef.getDefaultInstance() : type_;
+          }
+        }
+        /**
+         * .tensorflow.FullTypeDef type = 4;
+         */
+        private com.google.protobuf.SingleFieldBuilderV3<
+            org.tensorflow.proto.FullTypeDef, org.tensorflow.proto.FullTypeDef.Builder, org.tensorflow.proto.FullTypeDefOrBuilder> 
+            getTypeFieldBuilder() {
+          if (typeBuilder_ == null) {
+            typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+                org.tensorflow.proto.FullTypeDef, org.tensorflow.proto.FullTypeDef.Builder, org.tensorflow.proto.FullTypeDefOrBuilder>(
+                    getType(),
+                    getParentForChildren(),
+                    isClean());
+            type_ = null;
+          }
+          return typeBuilder_;
+        }
+        @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:tensorflow.core.CppShapeInferenceResult.HandleShapeAndType)
+      }
+
+      // @@protoc_insertion_point(class_scope:tensorflow.core.CppShapeInferenceResult.HandleShapeAndType)
+      private static final org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType DEFAULT_INSTANCE;
+      static {
+        DEFAULT_INSTANCE = new org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType();
+      }
+
+      public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType getDefaultInstance() {
+        return DEFAULT_INSTANCE;
+      }
+
+      private static final com.google.protobuf.Parser
+          PARSER = new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public HandleShapeAndType 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 org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType getDefaultInstanceForType() {
+        return DEFAULT_INSTANCE;
+      }
+
+    }
+
+    public interface HandleDataOrBuilder extends
+        // @@protoc_insertion_point(interface_extends:tensorflow.core.CppShapeInferenceResult.HandleData)
+        com.google.protobuf.MessageOrBuilder {
+
+      /**
+       * bool is_set = 1;
+       * @return The isSet.
+       */
+      boolean getIsSet();
+
+      /**
+       * 
+       * Only valid if <is_set>.
+       * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + java.util.List + getShapeAndTypeList(); + /** + *
+       * Only valid if <is_set>.
+       * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType getShapeAndType(int index); + /** + *
+       * Only valid if <is_set>.
+       * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + int getShapeAndTypeCount(); + /** + *
+       * Only valid if <is_set>.
+       * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + java.util.List + getShapeAndTypeOrBuilderList(); + /** + *
+       * Only valid if <is_set>.
+       * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndTypeOrBuilder getShapeAndTypeOrBuilder( + int index); + } + /** + * Protobuf type {@code tensorflow.core.CppShapeInferenceResult.HandleData} + */ + public static final class HandleData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.core.CppShapeInferenceResult.HandleData) + HandleDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use HandleData.newBuilder() to construct. + private HandleData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HandleData() { + shapeAndType_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new HandleData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.core.CppShapeInference.internal_static_tensorflow_core_CppShapeInferenceResult_HandleData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.core.CppShapeInference.internal_static_tensorflow_core_CppShapeInferenceResult_HandleData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData.class, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData.Builder.class); + } + + public static final int IS_SET_FIELD_NUMBER = 1; + private boolean isSet_; + /** + * bool is_set = 1; + * @return The isSet. + */ + @java.lang.Override + public boolean getIsSet() { + return isSet_; + } + + public static final int SHAPE_AND_TYPE_FIELD_NUMBER = 2; + private java.util.List shapeAndType_; + /** + *
+       * Only valid if <is_set>.
+       * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + @java.lang.Override + public java.util.List getShapeAndTypeList() { + return shapeAndType_; + } + /** + *
+       * Only valid if <is_set>.
+       * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + @java.lang.Override + public java.util.List + getShapeAndTypeOrBuilderList() { + return shapeAndType_; + } + /** + *
+       * Only valid if <is_set>.
+       * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + @java.lang.Override + public int getShapeAndTypeCount() { + return shapeAndType_.size(); + } + /** + *
+       * Only valid if <is_set>.
+       * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + @java.lang.Override + public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType getShapeAndType(int index) { + return shapeAndType_.get(index); + } + /** + *
+       * Only valid if <is_set>.
+       * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + @java.lang.Override + public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndTypeOrBuilder getShapeAndTypeOrBuilder( + int index) { + return shapeAndType_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (isSet_ != false) { + output.writeBool(1, isSet_); + } + for (int i = 0; i < shapeAndType_.size(); i++) { + output.writeMessage(2, shapeAndType_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (isSet_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, isSet_); + } + for (int i = 0; i < shapeAndType_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, shapeAndType_.get(i)); + } + 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 org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData)) { + return super.equals(obj); + } + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData other = (org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData) obj; + + if (getIsSet() + != other.getIsSet()) return false; + if (!getShapeAndTypeList() + .equals(other.getShapeAndTypeList())) 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) + IS_SET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsSet()); + if (getShapeAndTypeCount() > 0) { + hash = (37 * hash) + SHAPE_AND_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getShapeAndTypeList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData 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 org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData 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 org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData 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(org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.core.CppShapeInferenceResult.HandleData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.core.CppShapeInferenceResult.HandleData) + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.core.CppShapeInference.internal_static_tensorflow_core_CppShapeInferenceResult_HandleData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.core.CppShapeInference.internal_static_tensorflow_core_CppShapeInferenceResult_HandleData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData.class, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData.Builder.class); + } + + // Construct using org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + isSet_ = false; + + if (shapeAndTypeBuilder_ == null) { + shapeAndType_ = java.util.Collections.emptyList(); + } else { + shapeAndType_ = null; + shapeAndTypeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.core.CppShapeInference.internal_static_tensorflow_core_CppShapeInferenceResult_HandleData_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData getDefaultInstanceForType() { + return org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData build() { + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData buildPartial() { + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData result = new org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData(this); + int from_bitField0_ = bitField0_; + result.isSet_ = isSet_; + if (shapeAndTypeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + shapeAndType_ = java.util.Collections.unmodifiableList(shapeAndType_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.shapeAndType_ = shapeAndType_; + } else { + result.shapeAndType_ = shapeAndTypeBuilder_.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 org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData) { + return mergeFrom((org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData other) { + if (other == org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData.getDefaultInstance()) return this; + if (other.getIsSet() != false) { + setIsSet(other.getIsSet()); + } + if (shapeAndTypeBuilder_ == null) { + if (!other.shapeAndType_.isEmpty()) { + if (shapeAndType_.isEmpty()) { + shapeAndType_ = other.shapeAndType_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureShapeAndTypeIsMutable(); + shapeAndType_.addAll(other.shapeAndType_); + } + onChanged(); + } + } else { + if (!other.shapeAndType_.isEmpty()) { + if (shapeAndTypeBuilder_.isEmpty()) { + shapeAndTypeBuilder_.dispose(); + shapeAndTypeBuilder_ = null; + shapeAndType_ = other.shapeAndType_; + bitField0_ = (bitField0_ & ~0x00000001); + shapeAndTypeBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getShapeAndTypeFieldBuilder() : null; + } else { + shapeAndTypeBuilder_.addAllMessages(other.shapeAndType_); + } + } + } + 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: { + isSet_ = input.readBool(); + + break; + } // case 8 + case 18: { + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType m = + input.readMessage( + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.parser(), + extensionRegistry); + if (shapeAndTypeBuilder_ == null) { + ensureShapeAndTypeIsMutable(); + shapeAndType_.add(m); + } else { + shapeAndTypeBuilder_.addMessage(m); + } + 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 boolean isSet_ ; + /** + * bool is_set = 1; + * @return The isSet. + */ + @java.lang.Override + public boolean getIsSet() { + return isSet_; + } + /** + * bool is_set = 1; + * @param value The isSet to set. + * @return This builder for chaining. + */ + public Builder setIsSet(boolean value) { + + isSet_ = value; + onChanged(); + return this; + } + /** + * bool is_set = 1; + * @return This builder for chaining. + */ + public Builder clearIsSet() { + + isSet_ = false; + onChanged(); + return this; + } + + private java.util.List shapeAndType_ = + java.util.Collections.emptyList(); + private void ensureShapeAndTypeIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + shapeAndType_ = new java.util.ArrayList(shapeAndType_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.Builder, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndTypeOrBuilder> shapeAndTypeBuilder_; + + /** + *
+         * Only valid if <is_set>.
+         * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + public java.util.List getShapeAndTypeList() { + if (shapeAndTypeBuilder_ == null) { + return java.util.Collections.unmodifiableList(shapeAndType_); + } else { + return shapeAndTypeBuilder_.getMessageList(); + } + } + /** + *
+         * Only valid if <is_set>.
+         * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + public int getShapeAndTypeCount() { + if (shapeAndTypeBuilder_ == null) { + return shapeAndType_.size(); + } else { + return shapeAndTypeBuilder_.getCount(); + } + } + /** + *
+         * Only valid if <is_set>.
+         * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType getShapeAndType(int index) { + if (shapeAndTypeBuilder_ == null) { + return shapeAndType_.get(index); + } else { + return shapeAndTypeBuilder_.getMessage(index); + } + } + /** + *
+         * Only valid if <is_set>.
+         * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + public Builder setShapeAndType( + int index, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType value) { + if (shapeAndTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShapeAndTypeIsMutable(); + shapeAndType_.set(index, value); + onChanged(); + } else { + shapeAndTypeBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+         * Only valid if <is_set>.
+         * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + public Builder setShapeAndType( + int index, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.Builder builderForValue) { + if (shapeAndTypeBuilder_ == null) { + ensureShapeAndTypeIsMutable(); + shapeAndType_.set(index, builderForValue.build()); + onChanged(); + } else { + shapeAndTypeBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         * Only valid if <is_set>.
+         * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + public Builder addShapeAndType(org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType value) { + if (shapeAndTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShapeAndTypeIsMutable(); + shapeAndType_.add(value); + onChanged(); + } else { + shapeAndTypeBuilder_.addMessage(value); + } + return this; + } + /** + *
+         * Only valid if <is_set>.
+         * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + public Builder addShapeAndType( + int index, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType value) { + if (shapeAndTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShapeAndTypeIsMutable(); + shapeAndType_.add(index, value); + onChanged(); + } else { + shapeAndTypeBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+         * Only valid if <is_set>.
+         * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + public Builder addShapeAndType( + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.Builder builderForValue) { + if (shapeAndTypeBuilder_ == null) { + ensureShapeAndTypeIsMutable(); + shapeAndType_.add(builderForValue.build()); + onChanged(); + } else { + shapeAndTypeBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+         * Only valid if <is_set>.
+         * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + public Builder addShapeAndType( + int index, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.Builder builderForValue) { + if (shapeAndTypeBuilder_ == null) { + ensureShapeAndTypeIsMutable(); + shapeAndType_.add(index, builderForValue.build()); + onChanged(); + } else { + shapeAndTypeBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         * Only valid if <is_set>.
+         * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + public Builder addAllShapeAndType( + java.lang.Iterable values) { + if (shapeAndTypeBuilder_ == null) { + ensureShapeAndTypeIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, shapeAndType_); + onChanged(); + } else { + shapeAndTypeBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+         * Only valid if <is_set>.
+         * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + public Builder clearShapeAndType() { + if (shapeAndTypeBuilder_ == null) { + shapeAndType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + shapeAndTypeBuilder_.clear(); + } + return this; + } + /** + *
+         * Only valid if <is_set>.
+         * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + public Builder removeShapeAndType(int index) { + if (shapeAndTypeBuilder_ == null) { + ensureShapeAndTypeIsMutable(); + shapeAndType_.remove(index); + onChanged(); + } else { + shapeAndTypeBuilder_.remove(index); + } + return this; + } + /** + *
+         * Only valid if <is_set>.
+         * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.Builder getShapeAndTypeBuilder( + int index) { + return getShapeAndTypeFieldBuilder().getBuilder(index); + } + /** + *
+         * Only valid if <is_set>.
+         * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndTypeOrBuilder getShapeAndTypeOrBuilder( + int index) { + if (shapeAndTypeBuilder_ == null) { + return shapeAndType_.get(index); } else { + return shapeAndTypeBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+         * Only valid if <is_set>.
+         * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + public java.util.List + getShapeAndTypeOrBuilderList() { + if (shapeAndTypeBuilder_ != null) { + return shapeAndTypeBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(shapeAndType_); + } + } + /** + *
+         * Only valid if <is_set>.
+         * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.Builder addShapeAndTypeBuilder() { + return getShapeAndTypeFieldBuilder().addBuilder( + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.getDefaultInstance()); + } + /** + *
+         * Only valid if <is_set>.
+         * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.Builder addShapeAndTypeBuilder( + int index) { + return getShapeAndTypeFieldBuilder().addBuilder( + index, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.getDefaultInstance()); + } + /** + *
+         * Only valid if <is_set>.
+         * 
+ * + * repeated .tensorflow.core.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; + */ + public java.util.List + getShapeAndTypeBuilderList() { + return getShapeAndTypeFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.Builder, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndTypeOrBuilder> + getShapeAndTypeFieldBuilder() { + if (shapeAndTypeBuilder_ == null) { + shapeAndTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndType.Builder, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleShapeAndTypeOrBuilder>( + shapeAndType_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + shapeAndType_ = null; + } + return shapeAndTypeBuilder_; + } + @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:tensorflow.core.CppShapeInferenceResult.HandleData) + } + + // @@protoc_insertion_point(class_scope:tensorflow.core.CppShapeInferenceResult.HandleData) + private static final org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData(); + } + + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HandleData 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 org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int SHAPE_FIELD_NUMBER = 1; + private org.tensorflow.proto.TensorShapeProto shape_; + /** + * .tensorflow.TensorShapeProto shape = 1; + * @return Whether the shape field is set. + */ + @java.lang.Override + public boolean hasShape() { + return shape_ != null; + } + /** + * .tensorflow.TensorShapeProto shape = 1; + * @return The shape. + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto getShape() { + return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } + /** + * .tensorflow.TensorShapeProto shape = 1; + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { + return getShape(); + } + + public static final int HANDLE_DATA_FIELD_NUMBER = 4; + private org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData handleData_; + /** + * .tensorflow.core.CppShapeInferenceResult.HandleData handle_data = 4; + * @return Whether the handleData field is set. + */ + @java.lang.Override + public boolean hasHandleData() { + return handleData_ != null; + } + /** + * .tensorflow.core.CppShapeInferenceResult.HandleData handle_data = 4; + * @return The handleData. + */ + @java.lang.Override + public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData getHandleData() { + return handleData_ == null ? org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData.getDefaultInstance() : handleData_; + } + /** + * .tensorflow.core.CppShapeInferenceResult.HandleData handle_data = 4; + */ + @java.lang.Override + public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleDataOrBuilder getHandleDataOrBuilder() { + return getHandleData(); + } + + 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 (shape_ != null) { + output.writeMessage(1, getShape()); + } + if (handleData_ != null) { + output.writeMessage(4, getHandleData()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (shape_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getShape()); + } + if (handleData_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getHandleData()); + } + 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 org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult)) { + return super.equals(obj); + } + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult other = (org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult) obj; + + if (hasShape() != other.hasShape()) return false; + if (hasShape()) { + if (!getShape() + .equals(other.getShape())) return false; + } + if (hasHandleData() != other.hasHandleData()) return false; + if (hasHandleData()) { + if (!getHandleData() + .equals(other.getHandleData())) 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 (hasShape()) { + hash = (37 * hash) + SHAPE_FIELD_NUMBER; + hash = (53 * hash) + getShape().hashCode(); + } + if (hasHandleData()) { + hash = (37 * hash) + HANDLE_DATA_FIELD_NUMBER; + hash = (53 * hash) + getHandleData().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult 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 org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult 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 org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult 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(org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.core.CppShapeInferenceResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.core.CppShapeInferenceResult) + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.core.CppShapeInference.internal_static_tensorflow_core_CppShapeInferenceResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.core.CppShapeInference.internal_static_tensorflow_core_CppShapeInferenceResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.class, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.Builder.class); + } + + // Construct using org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (shapeBuilder_ == null) { + shape_ = null; + } else { + shape_ = null; + shapeBuilder_ = null; + } + if (handleDataBuilder_ == null) { + handleData_ = null; + } else { + handleData_ = null; + handleDataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.core.CppShapeInference.internal_static_tensorflow_core_CppShapeInferenceResult_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult getDefaultInstanceForType() { + return org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult build() { + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult buildPartial() { + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult result = new org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult(this); + if (shapeBuilder_ == null) { + result.shape_ = shape_; + } else { + result.shape_ = shapeBuilder_.build(); + } + if (handleDataBuilder_ == null) { + result.handleData_ = handleData_; + } else { + result.handleData_ = handleDataBuilder_.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 org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult) { + return mergeFrom((org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult other) { + if (other == org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.getDefaultInstance()) return this; + if (other.hasShape()) { + mergeShape(other.getShape()); + } + if (other.hasHandleData()) { + mergeHandleData(other.getHandleData()); + } + 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( + getShapeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 34: { + input.readMessage( + getHandleDataFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + 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 org.tensorflow.proto.TensorShapeProto shape_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> shapeBuilder_; + /** + * .tensorflow.TensorShapeProto shape = 1; + * @return Whether the shape field is set. + */ + public boolean hasShape() { + return shapeBuilder_ != null || shape_ != null; + } + /** + * .tensorflow.TensorShapeProto shape = 1; + * @return The shape. + */ + public org.tensorflow.proto.TensorShapeProto getShape() { + if (shapeBuilder_ == null) { + return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } else { + return shapeBuilder_.getMessage(); + } + } + /** + * .tensorflow.TensorShapeProto shape = 1; + */ + public Builder setShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shape_ = value; + onChanged(); + } else { + shapeBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 1; + */ + public Builder setShape( + org.tensorflow.proto.TensorShapeProto.Builder builderForValue) { + if (shapeBuilder_ == null) { + shape_ = builderForValue.build(); + onChanged(); + } else { + shapeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 1; + */ + public Builder mergeShape(org.tensorflow.proto.TensorShapeProto value) { + if (shapeBuilder_ == null) { + if (shape_ != null) { + shape_ = + org.tensorflow.proto.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial(); + } else { + shape_ = value; + } + onChanged(); + } else { + shapeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 1; + */ + public Builder clearShape() { + if (shapeBuilder_ == null) { + shape_ = null; + onChanged(); + } else { + shape_ = null; + shapeBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.TensorShapeProto shape = 1; + */ + public org.tensorflow.proto.TensorShapeProto.Builder getShapeBuilder() { + + onChanged(); + return getShapeFieldBuilder().getBuilder(); + } + /** + * .tensorflow.TensorShapeProto shape = 1; + */ + public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() { + if (shapeBuilder_ != null) { + return shapeBuilder_.getMessageOrBuilder(); + } else { + return shape_ == null ? + org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_; + } + } + /** + * .tensorflow.TensorShapeProto shape = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> + getShapeFieldBuilder() { + if (shapeBuilder_ == null) { + shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder>( + getShape(), + getParentForChildren(), + isClean()); + shape_ = null; + } + return shapeBuilder_; + } + + private org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData handleData_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData.Builder, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleDataOrBuilder> handleDataBuilder_; + /** + * .tensorflow.core.CppShapeInferenceResult.HandleData handle_data = 4; + * @return Whether the handleData field is set. + */ + public boolean hasHandleData() { + return handleDataBuilder_ != null || handleData_ != null; + } + /** + * .tensorflow.core.CppShapeInferenceResult.HandleData handle_data = 4; + * @return The handleData. + */ + public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData getHandleData() { + if (handleDataBuilder_ == null) { + return handleData_ == null ? org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData.getDefaultInstance() : handleData_; + } else { + return handleDataBuilder_.getMessage(); + } + } + /** + * .tensorflow.core.CppShapeInferenceResult.HandleData handle_data = 4; + */ + public Builder setHandleData(org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData value) { + if (handleDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + handleData_ = value; + onChanged(); + } else { + handleDataBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.core.CppShapeInferenceResult.HandleData handle_data = 4; + */ + public Builder setHandleData( + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData.Builder builderForValue) { + if (handleDataBuilder_ == null) { + handleData_ = builderForValue.build(); + onChanged(); + } else { + handleDataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.core.CppShapeInferenceResult.HandleData handle_data = 4; + */ + public Builder mergeHandleData(org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData value) { + if (handleDataBuilder_ == null) { + if (handleData_ != null) { + handleData_ = + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData.newBuilder(handleData_).mergeFrom(value).buildPartial(); + } else { + handleData_ = value; + } + onChanged(); + } else { + handleDataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.core.CppShapeInferenceResult.HandleData handle_data = 4; + */ + public Builder clearHandleData() { + if (handleDataBuilder_ == null) { + handleData_ = null; + onChanged(); + } else { + handleData_ = null; + handleDataBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.core.CppShapeInferenceResult.HandleData handle_data = 4; + */ + public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData.Builder getHandleDataBuilder() { + + onChanged(); + return getHandleDataFieldBuilder().getBuilder(); + } + /** + * .tensorflow.core.CppShapeInferenceResult.HandleData handle_data = 4; + */ + public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleDataOrBuilder getHandleDataOrBuilder() { + if (handleDataBuilder_ != null) { + return handleDataBuilder_.getMessageOrBuilder(); + } else { + return handleData_ == null ? + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData.getDefaultInstance() : handleData_; + } + } + /** + * .tensorflow.core.CppShapeInferenceResult.HandleData handle_data = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData.Builder, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleDataOrBuilder> + getHandleDataFieldBuilder() { + if (handleDataBuilder_ == null) { + handleDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleData.Builder, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult.HandleDataOrBuilder>( + getHandleData(), + getParentForChildren(), + isClean()); + handleData_ = null; + } + return handleDataBuilder_; + } + @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:tensorflow.core.CppShapeInferenceResult) + } + + // @@protoc_insertion_point(class_scope:tensorflow.core.CppShapeInferenceResult) + private static final org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult(); + } + + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CppShapeInferenceResult 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 org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CppShapeInferenceInputsNeededOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.core.CppShapeInferenceInputsNeeded) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated int32 input_tensors_needed = 1; + * @return A list containing the inputTensorsNeeded. + */ + java.util.List getInputTensorsNeededList(); + /** + * repeated int32 input_tensors_needed = 1; + * @return The count of inputTensorsNeeded. + */ + int getInputTensorsNeededCount(); + /** + * repeated int32 input_tensors_needed = 1; + * @param index The index of the element to return. + * @return The inputTensorsNeeded at the given index. + */ + int getInputTensorsNeeded(int index); + + /** + * repeated int32 input_tensors_as_shapes_needed = 2; + * @return A list containing the inputTensorsAsShapesNeeded. + */ + java.util.List getInputTensorsAsShapesNeededList(); + /** + * repeated int32 input_tensors_as_shapes_needed = 2; + * @return The count of inputTensorsAsShapesNeeded. + */ + int getInputTensorsAsShapesNeededCount(); + /** + * repeated int32 input_tensors_as_shapes_needed = 2; + * @param index The index of the element to return. + * @return The inputTensorsAsShapesNeeded at the given index. + */ + int getInputTensorsAsShapesNeeded(int index); + } + /** + * Protobuf type {@code tensorflow.core.CppShapeInferenceInputsNeeded} + */ + public static final class CppShapeInferenceInputsNeeded extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.core.CppShapeInferenceInputsNeeded) + CppShapeInferenceInputsNeededOrBuilder { + private static final long serialVersionUID = 0L; + // Use CppShapeInferenceInputsNeeded.newBuilder() to construct. + private CppShapeInferenceInputsNeeded(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CppShapeInferenceInputsNeeded() { + inputTensorsNeeded_ = emptyIntList(); + inputTensorsAsShapesNeeded_ = emptyIntList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CppShapeInferenceInputsNeeded(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.core.CppShapeInference.internal_static_tensorflow_core_CppShapeInferenceInputsNeeded_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.core.CppShapeInference.internal_static_tensorflow_core_CppShapeInferenceInputsNeeded_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded.class, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded.Builder.class); + } + + public static final int INPUT_TENSORS_NEEDED_FIELD_NUMBER = 1; + private com.google.protobuf.Internal.IntList inputTensorsNeeded_; + /** + * repeated int32 input_tensors_needed = 1; + * @return A list containing the inputTensorsNeeded. + */ + @java.lang.Override + public java.util.List + getInputTensorsNeededList() { + return inputTensorsNeeded_; + } + /** + * repeated int32 input_tensors_needed = 1; + * @return The count of inputTensorsNeeded. + */ + public int getInputTensorsNeededCount() { + return inputTensorsNeeded_.size(); + } + /** + * repeated int32 input_tensors_needed = 1; + * @param index The index of the element to return. + * @return The inputTensorsNeeded at the given index. + */ + public int getInputTensorsNeeded(int index) { + return inputTensorsNeeded_.getInt(index); + } + private int inputTensorsNeededMemoizedSerializedSize = -1; + + public static final int INPUT_TENSORS_AS_SHAPES_NEEDED_FIELD_NUMBER = 2; + private com.google.protobuf.Internal.IntList inputTensorsAsShapesNeeded_; + /** + * repeated int32 input_tensors_as_shapes_needed = 2; + * @return A list containing the inputTensorsAsShapesNeeded. + */ + @java.lang.Override + public java.util.List + getInputTensorsAsShapesNeededList() { + return inputTensorsAsShapesNeeded_; + } + /** + * repeated int32 input_tensors_as_shapes_needed = 2; + * @return The count of inputTensorsAsShapesNeeded. + */ + public int getInputTensorsAsShapesNeededCount() { + return inputTensorsAsShapesNeeded_.size(); + } + /** + * repeated int32 input_tensors_as_shapes_needed = 2; + * @param index The index of the element to return. + * @return The inputTensorsAsShapesNeeded at the given index. + */ + public int getInputTensorsAsShapesNeeded(int index) { + return inputTensorsAsShapesNeeded_.getInt(index); + } + private int inputTensorsAsShapesNeededMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (getInputTensorsNeededList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(inputTensorsNeededMemoizedSerializedSize); + } + for (int i = 0; i < inputTensorsNeeded_.size(); i++) { + output.writeInt32NoTag(inputTensorsNeeded_.getInt(i)); + } + if (getInputTensorsAsShapesNeededList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(inputTensorsAsShapesNeededMemoizedSerializedSize); + } + for (int i = 0; i < inputTensorsAsShapesNeeded_.size(); i++) { + output.writeInt32NoTag(inputTensorsAsShapesNeeded_.getInt(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < inputTensorsNeeded_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(inputTensorsNeeded_.getInt(i)); + } + size += dataSize; + if (!getInputTensorsNeededList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + inputTensorsNeededMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < inputTensorsAsShapesNeeded_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(inputTensorsAsShapesNeeded_.getInt(i)); + } + size += dataSize; + if (!getInputTensorsAsShapesNeededList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + inputTensorsAsShapesNeededMemoizedSerializedSize = dataSize; + } + 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 org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded)) { + return super.equals(obj); + } + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded other = (org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded) obj; + + if (!getInputTensorsNeededList() + .equals(other.getInputTensorsNeededList())) return false; + if (!getInputTensorsAsShapesNeededList() + .equals(other.getInputTensorsAsShapesNeededList())) 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 (getInputTensorsNeededCount() > 0) { + hash = (37 * hash) + INPUT_TENSORS_NEEDED_FIELD_NUMBER; + hash = (53 * hash) + getInputTensorsNeededList().hashCode(); + } + if (getInputTensorsAsShapesNeededCount() > 0) { + hash = (37 * hash) + INPUT_TENSORS_AS_SHAPES_NEEDED_FIELD_NUMBER; + hash = (53 * hash) + getInputTensorsAsShapesNeededList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded 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 org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded 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 org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded 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(org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.core.CppShapeInferenceInputsNeeded} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.core.CppShapeInferenceInputsNeeded) + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeededOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.core.CppShapeInference.internal_static_tensorflow_core_CppShapeInferenceInputsNeeded_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.core.CppShapeInference.internal_static_tensorflow_core_CppShapeInferenceInputsNeeded_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded.class, org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded.Builder.class); + } + + // Construct using org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + inputTensorsNeeded_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + inputTensorsAsShapesNeeded_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.core.CppShapeInference.internal_static_tensorflow_core_CppShapeInferenceInputsNeeded_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded getDefaultInstanceForType() { + return org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded build() { + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded buildPartial() { + org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded result = new org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + inputTensorsNeeded_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.inputTensorsNeeded_ = inputTensorsNeeded_; + if (((bitField0_ & 0x00000002) != 0)) { + inputTensorsAsShapesNeeded_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.inputTensorsAsShapesNeeded_ = inputTensorsAsShapesNeeded_; + 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 org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded) { + return mergeFrom((org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded other) { + if (other == org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded.getDefaultInstance()) return this; + if (!other.inputTensorsNeeded_.isEmpty()) { + if (inputTensorsNeeded_.isEmpty()) { + inputTensorsNeeded_ = other.inputTensorsNeeded_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInputTensorsNeededIsMutable(); + inputTensorsNeeded_.addAll(other.inputTensorsNeeded_); + } + onChanged(); + } + if (!other.inputTensorsAsShapesNeeded_.isEmpty()) { + if (inputTensorsAsShapesNeeded_.isEmpty()) { + inputTensorsAsShapesNeeded_ = other.inputTensorsAsShapesNeeded_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInputTensorsAsShapesNeededIsMutable(); + inputTensorsAsShapesNeeded_.addAll(other.inputTensorsAsShapesNeeded_); + } + 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 8: { + int v = input.readInt32(); + ensureInputTensorsNeededIsMutable(); + inputTensorsNeeded_.addInt(v); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureInputTensorsNeededIsMutable(); + while (input.getBytesUntilLimit() > 0) { + inputTensorsNeeded_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 10 + case 16: { + int v = input.readInt32(); + ensureInputTensorsAsShapesNeededIsMutable(); + inputTensorsAsShapesNeeded_.addInt(v); + break; + } // case 16 + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureInputTensorsAsShapesNeededIsMutable(); + while (input.getBytesUntilLimit() > 0) { + inputTensorsAsShapesNeeded_.addInt(input.readInt32()); + } + input.popLimit(limit); + 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 com.google.protobuf.Internal.IntList inputTensorsNeeded_ = emptyIntList(); + private void ensureInputTensorsNeededIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + inputTensorsNeeded_ = mutableCopy(inputTensorsNeeded_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated int32 input_tensors_needed = 1; + * @return A list containing the inputTensorsNeeded. + */ + public java.util.List + getInputTensorsNeededList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(inputTensorsNeeded_) : inputTensorsNeeded_; + } + /** + * repeated int32 input_tensors_needed = 1; + * @return The count of inputTensorsNeeded. + */ + public int getInputTensorsNeededCount() { + return inputTensorsNeeded_.size(); + } + /** + * repeated int32 input_tensors_needed = 1; + * @param index The index of the element to return. + * @return The inputTensorsNeeded at the given index. + */ + public int getInputTensorsNeeded(int index) { + return inputTensorsNeeded_.getInt(index); + } + /** + * repeated int32 input_tensors_needed = 1; + * @param index The index to set the value at. + * @param value The inputTensorsNeeded to set. + * @return This builder for chaining. + */ + public Builder setInputTensorsNeeded( + int index, int value) { + ensureInputTensorsNeededIsMutable(); + inputTensorsNeeded_.setInt(index, value); + onChanged(); + return this; + } + /** + * repeated int32 input_tensors_needed = 1; + * @param value The inputTensorsNeeded to add. + * @return This builder for chaining. + */ + public Builder addInputTensorsNeeded(int value) { + ensureInputTensorsNeededIsMutable(); + inputTensorsNeeded_.addInt(value); + onChanged(); + return this; + } + /** + * repeated int32 input_tensors_needed = 1; + * @param values The inputTensorsNeeded to add. + * @return This builder for chaining. + */ + public Builder addAllInputTensorsNeeded( + java.lang.Iterable values) { + ensureInputTensorsNeededIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputTensorsNeeded_); + onChanged(); + return this; + } + /** + * repeated int32 input_tensors_needed = 1; + * @return This builder for chaining. + */ + public Builder clearInputTensorsNeeded() { + inputTensorsNeeded_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList inputTensorsAsShapesNeeded_ = emptyIntList(); + private void ensureInputTensorsAsShapesNeededIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + inputTensorsAsShapesNeeded_ = mutableCopy(inputTensorsAsShapesNeeded_); + bitField0_ |= 0x00000002; + } + } + /** + * repeated int32 input_tensors_as_shapes_needed = 2; + * @return A list containing the inputTensorsAsShapesNeeded. + */ + public java.util.List + getInputTensorsAsShapesNeededList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(inputTensorsAsShapesNeeded_) : inputTensorsAsShapesNeeded_; + } + /** + * repeated int32 input_tensors_as_shapes_needed = 2; + * @return The count of inputTensorsAsShapesNeeded. + */ + public int getInputTensorsAsShapesNeededCount() { + return inputTensorsAsShapesNeeded_.size(); + } + /** + * repeated int32 input_tensors_as_shapes_needed = 2; + * @param index The index of the element to return. + * @return The inputTensorsAsShapesNeeded at the given index. + */ + public int getInputTensorsAsShapesNeeded(int index) { + return inputTensorsAsShapesNeeded_.getInt(index); + } + /** + * repeated int32 input_tensors_as_shapes_needed = 2; + * @param index The index to set the value at. + * @param value The inputTensorsAsShapesNeeded to set. + * @return This builder for chaining. + */ + public Builder setInputTensorsAsShapesNeeded( + int index, int value) { + ensureInputTensorsAsShapesNeededIsMutable(); + inputTensorsAsShapesNeeded_.setInt(index, value); + onChanged(); + return this; + } + /** + * repeated int32 input_tensors_as_shapes_needed = 2; + * @param value The inputTensorsAsShapesNeeded to add. + * @return This builder for chaining. + */ + public Builder addInputTensorsAsShapesNeeded(int value) { + ensureInputTensorsAsShapesNeededIsMutable(); + inputTensorsAsShapesNeeded_.addInt(value); + onChanged(); + return this; + } + /** + * repeated int32 input_tensors_as_shapes_needed = 2; + * @param values The inputTensorsAsShapesNeeded to add. + * @return This builder for chaining. + */ + public Builder addAllInputTensorsAsShapesNeeded( + java.lang.Iterable values) { + ensureInputTensorsAsShapesNeededIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputTensorsAsShapesNeeded_); + onChanged(); + return this; + } + /** + * repeated int32 input_tensors_as_shapes_needed = 2; + * @return This builder for chaining. + */ + public Builder clearInputTensorsAsShapesNeeded() { + inputTensorsAsShapesNeeded_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000002); + 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:tensorflow.core.CppShapeInferenceInputsNeeded) + } + + // @@protoc_insertion_point(class_scope:tensorflow.core.CppShapeInferenceInputsNeeded) + private static final org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded(); + } + + public static org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CppShapeInferenceInputsNeeded 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 org.tensorflow.proto.core.CppShapeInference.CppShapeInferenceInputsNeeded getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_core_CppShapeInferenceResult_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_core_CppShapeInferenceResult_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_core_CppShapeInferenceResult_HandleShapeAndType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_core_CppShapeInferenceResult_HandleShapeAndType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_core_CppShapeInferenceResult_HandleData_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_core_CppShapeInferenceResult_HandleData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_core_CppShapeInferenceInputsNeeded_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_core_CppShapeInferenceInputsNeeded_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3tensorflow/core/framework/cpp_shape_in" + + "ference.proto\022\017tensorflow.core\032)tensorfl" + + "ow/core/framework/full_type.proto\032,tenso" + + "rflow/core/framework/tensor_shape.proto\032" + + "%tensorflow/core/framework/types.proto\"\245" + + "\003\n\027CppShapeInferenceResult\022+\n\005shape\030\001 \001(" + + "\0132\034.tensorflow.TensorShapeProto\022H\n\013handl" + + "e_data\030\004 \001(\01323.tensorflow.core.CppShapeI" + + "nferenceResult.HandleData\032\223\001\n\022HandleShap" + + "eAndType\022+\n\005shape\030\001 \001(\0132\034.tensorflow.Ten" + + "sorShapeProto\022#\n\005dtype\030\002 \001(\0162\024.tensorflo" + + "w.DataType\022%\n\004type\030\004 \001(\0132\027.tensorflow.Fu" + + "llTypeDefJ\004\010\003\020\004\032q\n\nHandleData\022\016\n\006is_set\030" + + "\001 \001(\010\022S\n\016shape_and_type\030\002 \003(\0132;.tensorfl" + + "ow.core.CppShapeInferenceResult.HandleSh" + + "apeAndTypeJ\004\010\002\020\003J\004\010\003\020\004\"e\n\035CppShapeInfere" + + "nceInputsNeeded\022\034\n\024input_tensors_needed\030" + + "\001 \003(\005\022&\n\036input_tensors_as_shapes_needed\030" + + "\002 \003(\005B|\n\031org.tensorflow.proto.coreZ\\gith" + + "ub.com/tensorflow/tensorflow/tensorflow/" + + "go/python/framework/cpp_shape_inference_" + + "go_proto\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + org.tensorflow.proto.FullTypeProtos.getDescriptor(), + org.tensorflow.proto.TensorShapeProtos.getDescriptor(), + org.tensorflow.proto.TypesProtos.getDescriptor(), + }); + internal_static_tensorflow_core_CppShapeInferenceResult_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_core_CppShapeInferenceResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_core_CppShapeInferenceResult_descriptor, + new java.lang.String[] { "Shape", "HandleData", }); + internal_static_tensorflow_core_CppShapeInferenceResult_HandleShapeAndType_descriptor = + internal_static_tensorflow_core_CppShapeInferenceResult_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_core_CppShapeInferenceResult_HandleShapeAndType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_core_CppShapeInferenceResult_HandleShapeAndType_descriptor, + new java.lang.String[] { "Shape", "Dtype", "Type", }); + internal_static_tensorflow_core_CppShapeInferenceResult_HandleData_descriptor = + internal_static_tensorflow_core_CppShapeInferenceResult_descriptor.getNestedTypes().get(1); + internal_static_tensorflow_core_CppShapeInferenceResult_HandleData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_core_CppShapeInferenceResult_HandleData_descriptor, + new java.lang.String[] { "IsSet", "ShapeAndType", }); + internal_static_tensorflow_core_CppShapeInferenceInputsNeeded_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_tensorflow_core_CppShapeInferenceInputsNeeded_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_core_CppShapeInferenceInputsNeeded_descriptor, + new java.lang.String[] { "InputTensorsNeeded", "InputTensorsAsShapesNeeded", }); + org.tensorflow.proto.FullTypeProtos.getDescriptor(); + org.tensorflow.proto.TensorShapeProtos.getDescriptor(); + org.tensorflow.proto.TypesProtos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/core/platform/CorePlatformPayloads.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/core/platform/CorePlatformPayloads.java new file mode 100644 index 00000000000..683e59cf554 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/core/platform/CorePlatformPayloads.java @@ -0,0 +1,751 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/core_platform_payloads.proto + +package org.tensorflow.proto.core.platform; + +public final class CorePlatformPayloads { + private CorePlatformPayloads() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ErrorSourceProtoOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.core.platform.ErrorSourceProto) + com.google.protobuf.MessageOrBuilder { + + /** + * .tensorflow.core.platform.ErrorSourceProto.ErrorSource error_source = 1; + * @return The enum numeric value on the wire for errorSource. + */ + int getErrorSourceValue(); + /** + * .tensorflow.core.platform.ErrorSourceProto.ErrorSource error_source = 1; + * @return The errorSource. + */ + org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto.ErrorSource getErrorSource(); + } + /** + *
+   * If included as a payload, this message contains the error source information
+   * where the error was raised.
+   * URI: "type.googleapis.com/tensorflow.core.platform.ErrorSourceProto"
+   * 
+ * + * Protobuf type {@code tensorflow.core.platform.ErrorSourceProto} + */ + public static final class ErrorSourceProto extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.core.platform.ErrorSourceProto) + ErrorSourceProtoOrBuilder { + private static final long serialVersionUID = 0L; + // Use ErrorSourceProto.newBuilder() to construct. + private ErrorSourceProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ErrorSourceProto() { + errorSource_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ErrorSourceProto(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.core.platform.CorePlatformPayloads.internal_static_tensorflow_core_platform_ErrorSourceProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.core.platform.CorePlatformPayloads.internal_static_tensorflow_core_platform_ErrorSourceProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto.class, org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto.Builder.class); + } + + /** + * Protobuf enum {@code tensorflow.core.platform.ErrorSourceProto.ErrorSource} + */ + public enum ErrorSource + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * TPU_COMPILE_OP = 1; + */ + TPU_COMPILE_OP(1), + /** + *
+       * Old bridge.
+       * 
+ * + * TF_XLA_BRIDGE = 2; + */ + TF_XLA_BRIDGE(2), + /** + *
+       * TPUBridge.
+       * 
+ * + * MLIR_BRIDGE_PHASE_1 = 3; + */ + MLIR_BRIDGE_PHASE_1(3), + /** + *
+       * LegalizeToHlo.
+       * 
+ * + * MLIR_BRIDGE_PHASE_2 = 4; + */ + MLIR_BRIDGE_PHASE_2(4), + /** + *
+       * eager::RemoteMgr.
+       * 
+ * + * EAGER_REMOTE_MGR = 5; + */ + EAGER_REMOTE_MGR(5), + UNRECOGNIZED(-1), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * TPU_COMPILE_OP = 1; + */ + public static final int TPU_COMPILE_OP_VALUE = 1; + /** + *
+       * Old bridge.
+       * 
+ * + * TF_XLA_BRIDGE = 2; + */ + public static final int TF_XLA_BRIDGE_VALUE = 2; + /** + *
+       * TPUBridge.
+       * 
+ * + * MLIR_BRIDGE_PHASE_1 = 3; + */ + public static final int MLIR_BRIDGE_PHASE_1_VALUE = 3; + /** + *
+       * LegalizeToHlo.
+       * 
+ * + * MLIR_BRIDGE_PHASE_2 = 4; + */ + public static final int MLIR_BRIDGE_PHASE_2_VALUE = 4; + /** + *
+       * eager::RemoteMgr.
+       * 
+ * + * EAGER_REMOTE_MGR = 5; + */ + public static final int EAGER_REMOTE_MGR_VALUE = 5; + + + 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 ErrorSource 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 ErrorSource forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return TPU_COMPILE_OP; + case 2: return TF_XLA_BRIDGE; + case 3: return MLIR_BRIDGE_PHASE_1; + case 4: return MLIR_BRIDGE_PHASE_2; + case 5: return EAGER_REMOTE_MGR; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ErrorSource> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ErrorSource findValueByNumber(int number) { + return ErrorSource.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 org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto.getDescriptor().getEnumTypes().get(0); + } + + private static final ErrorSource[] VALUES = values(); + + public static ErrorSource 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 ErrorSource(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:tensorflow.core.platform.ErrorSourceProto.ErrorSource) + } + + public static final int ERROR_SOURCE_FIELD_NUMBER = 1; + private int errorSource_; + /** + * .tensorflow.core.platform.ErrorSourceProto.ErrorSource error_source = 1; + * @return The enum numeric value on the wire for errorSource. + */ + @java.lang.Override public int getErrorSourceValue() { + return errorSource_; + } + /** + * .tensorflow.core.platform.ErrorSourceProto.ErrorSource error_source = 1; + * @return The errorSource. + */ + @java.lang.Override public org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto.ErrorSource getErrorSource() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto.ErrorSource result = org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto.ErrorSource.valueOf(errorSource_); + return result == null ? org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto.ErrorSource.UNRECOGNIZED : result; + } + + 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 (errorSource_ != org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto.ErrorSource.UNKNOWN.getNumber()) { + output.writeEnum(1, errorSource_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (errorSource_ != org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto.ErrorSource.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, errorSource_); + } + 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 org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto)) { + return super.equals(obj); + } + org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto other = (org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto) obj; + + if (errorSource_ != other.errorSource_) 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) + ERROR_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + errorSource_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto 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 org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto 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 org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto 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(org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto 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; + } + /** + *
+     * If included as a payload, this message contains the error source information
+     * where the error was raised.
+     * URI: "type.googleapis.com/tensorflow.core.platform.ErrorSourceProto"
+     * 
+ * + * Protobuf type {@code tensorflow.core.platform.ErrorSourceProto} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.core.platform.ErrorSourceProto) + org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProtoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.core.platform.CorePlatformPayloads.internal_static_tensorflow_core_platform_ErrorSourceProto_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.core.platform.CorePlatformPayloads.internal_static_tensorflow_core_platform_ErrorSourceProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto.class, org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto.Builder.class); + } + + // Construct using org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + errorSource_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.core.platform.CorePlatformPayloads.internal_static_tensorflow_core_platform_ErrorSourceProto_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto getDefaultInstanceForType() { + return org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto build() { + org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto buildPartial() { + org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto result = new org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto(this); + result.errorSource_ = errorSource_; + 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 org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto) { + return mergeFrom((org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto other) { + if (other == org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto.getDefaultInstance()) return this; + if (other.errorSource_ != 0) { + setErrorSourceValue(other.getErrorSourceValue()); + } + 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: { + errorSource_ = input.readEnum(); + + break; + } // case 8 + 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 errorSource_ = 0; + /** + * .tensorflow.core.platform.ErrorSourceProto.ErrorSource error_source = 1; + * @return The enum numeric value on the wire for errorSource. + */ + @java.lang.Override public int getErrorSourceValue() { + return errorSource_; + } + /** + * .tensorflow.core.platform.ErrorSourceProto.ErrorSource error_source = 1; + * @param value The enum numeric value on the wire for errorSource to set. + * @return This builder for chaining. + */ + public Builder setErrorSourceValue(int value) { + + errorSource_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.core.platform.ErrorSourceProto.ErrorSource error_source = 1; + * @return The errorSource. + */ + @java.lang.Override + public org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto.ErrorSource getErrorSource() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto.ErrorSource result = org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto.ErrorSource.valueOf(errorSource_); + return result == null ? org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto.ErrorSource.UNRECOGNIZED : result; + } + /** + * .tensorflow.core.platform.ErrorSourceProto.ErrorSource error_source = 1; + * @param value The errorSource to set. + * @return This builder for chaining. + */ + public Builder setErrorSource(org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto.ErrorSource value) { + if (value == null) { + throw new NullPointerException(); + } + + errorSource_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.core.platform.ErrorSourceProto.ErrorSource error_source = 1; + * @return This builder for chaining. + */ + public Builder clearErrorSource() { + + errorSource_ = 0; + 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:tensorflow.core.platform.ErrorSourceProto) + } + + // @@protoc_insertion_point(class_scope:tensorflow.core.platform.ErrorSourceProto) + private static final org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto(); + } + + public static org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorSourceProto 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 org.tensorflow.proto.core.platform.CorePlatformPayloads.ErrorSourceProto getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_core_platform_ErrorSourceProto_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_core_platform_ErrorSourceProto_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n5tensorflow/core/protobuf/core_platform" + + "_payloads.proto\022\030tensorflow.core.platfor" + + "m\"\354\001\n\020ErrorSourceProto\022L\n\014error_source\030\001" + + " \001(\01626.tensorflow.core.platform.ErrorSou" + + "rceProto.ErrorSource\"\211\001\n\013ErrorSource\022\013\n\007" + + "UNKNOWN\020\000\022\022\n\016TPU_COMPILE_OP\020\001\022\021\n\rTF_XLA_" + + "BRIDGE\020\002\022\027\n\023MLIR_BRIDGE_PHASE_1\020\003\022\027\n\023MLI" + + "R_BRIDGE_PHASE_2\020\004\022\024\n\020EAGER_REMOTE_MGR\020\005" + + "B~\n\"org.tensorflow.proto.core.platformZU" + + "github.com/tensorflow/tensorflow/tensorf" + + "low/go/core/protobuf/for_core_protos_go_" + + "proto\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_tensorflow_core_platform_ErrorSourceProto_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_core_platform_ErrorSourceProto_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_core_platform_ErrorSourceProto_descriptor, + new java.lang.String[] { "ErrorSource", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/DataService.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/data/DataService.java similarity index 88% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/DataService.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/data/DataService.java index 3c29fad80ae..6277eb98834 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/DataService.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/data/DataService.java @@ -95,6 +95,8 @@ public final int getNumber() { } /** + * @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 @@ -102,6 +104,10 @@ public static DeploymentMode 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 DeploymentMode forNumber(int value) { switch (value) { case 0: return DEPLOYMENT_MODE_UNSPECIFIED; @@ -126,6 +132,10 @@ public DeploymentMode findValueByNumber(int 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 @@ -166,10 +176,12 @@ public interface ProcessingModeDefOrBuilder extends /** * .tensorflow.data.ProcessingModeDef.ShardingPolicy sharding_policy = 1; + * @return The enum numeric value on the wire for shardingPolicy. */ int getShardingPolicyValue(); /** * .tensorflow.data.ProcessingModeDef.ShardingPolicy sharding_policy = 1; + * @return The shardingPolicy. */ org.tensorflow.proto.data.DataService.ProcessingModeDef.ShardingPolicy getShardingPolicy(); } @@ -180,7 +192,7 @@ public interface ProcessingModeDefOrBuilder extends * * Protobuf type {@code tensorflow.data.ProcessingModeDef} */ - public static final class ProcessingModeDef extends + public static final class ProcessingModeDef extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.data.ProcessingModeDef) ProcessingModeDefOrBuilder { @@ -205,49 +217,6 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private ProcessingModeDef( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - shardingPolicy_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.proto.data.DataService.internal_static_tensorflow_data_ProcessingModeDef_descriptor; @@ -416,6 +385,8 @@ public final int getNumber() { } /** + * @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 @@ -423,6 +394,10 @@ public static ShardingPolicy 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 ShardingPolicy forNumber(int value) { switch (value) { case 0: return OFF; @@ -449,6 +424,10 @@ public ShardingPolicy findValueByNumber(int 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 @@ -487,14 +466,16 @@ private ShardingPolicy(int value) { private int shardingPolicy_; /** * .tensorflow.data.ProcessingModeDef.ShardingPolicy sharding_policy = 1; + * @return The enum numeric value on the wire for shardingPolicy. */ - public int getShardingPolicyValue() { + @java.lang.Override public int getShardingPolicyValue() { return shardingPolicy_; } /** * .tensorflow.data.ProcessingModeDef.ShardingPolicy sharding_policy = 1; + * @return The shardingPolicy. */ - public org.tensorflow.proto.data.DataService.ProcessingModeDef.ShardingPolicy getShardingPolicy() { + @java.lang.Override public org.tensorflow.proto.data.DataService.ProcessingModeDef.ShardingPolicy getShardingPolicy() { @SuppressWarnings("deprecation") org.tensorflow.proto.data.DataService.ProcessingModeDef.ShardingPolicy result = org.tensorflow.proto.data.DataService.ProcessingModeDef.ShardingPolicy.valueOf(shardingPolicy_); return result == null ? org.tensorflow.proto.data.DataService.ProcessingModeDef.ShardingPolicy.UNRECOGNIZED : result; @@ -517,7 +498,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (shardingPolicy_ != org.tensorflow.proto.data.DataService.ProcessingModeDef.ShardingPolicy.OFF.getNumber()) { output.writeEnum(1, shardingPolicy_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -530,7 +511,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, shardingPolicy_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -546,7 +527,7 @@ public boolean equals(final java.lang.Object obj) { org.tensorflow.proto.data.DataService.ProcessingModeDef other = (org.tensorflow.proto.data.DataService.ProcessingModeDef) obj; if (shardingPolicy_ != other.shardingPolicy_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -559,7 +540,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SHARDING_POLICY_FIELD_NUMBER; hash = (53 * hash) + shardingPolicy_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -680,18 +661,13 @@ public static final class Builder extends // Construct using org.tensorflow.proto.data.DataService.ProcessingModeDef.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -776,7 +752,7 @@ public Builder mergeFrom(org.tensorflow.proto.data.DataService.ProcessingModeDef if (other.shardingPolicy_ != 0) { setShardingPolicyValue(other.getShardingPolicyValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -791,38 +767,62 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.data.DataService.ProcessingModeDef parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + shardingPolicy_ = input.readEnum(); + + break; + } // case 8 + 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) { - parsedMessage = (org.tensorflow.proto.data.DataService.ProcessingModeDef) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int shardingPolicy_ = 0; /** * .tensorflow.data.ProcessingModeDef.ShardingPolicy sharding_policy = 1; + * @return The enum numeric value on the wire for shardingPolicy. */ - public int getShardingPolicyValue() { + @java.lang.Override public int getShardingPolicyValue() { return shardingPolicy_; } /** * .tensorflow.data.ProcessingModeDef.ShardingPolicy sharding_policy = 1; + * @param value The enum numeric value on the wire for shardingPolicy to set. + * @return This builder for chaining. */ public Builder setShardingPolicyValue(int value) { + shardingPolicy_ = value; onChanged(); return this; } /** * .tensorflow.data.ProcessingModeDef.ShardingPolicy sharding_policy = 1; + * @return The shardingPolicy. */ + @java.lang.Override public org.tensorflow.proto.data.DataService.ProcessingModeDef.ShardingPolicy getShardingPolicy() { @SuppressWarnings("deprecation") org.tensorflow.proto.data.DataService.ProcessingModeDef.ShardingPolicy result = org.tensorflow.proto.data.DataService.ProcessingModeDef.ShardingPolicy.valueOf(shardingPolicy_); @@ -830,6 +830,8 @@ public org.tensorflow.proto.data.DataService.ProcessingModeDef.ShardingPolicy ge } /** * .tensorflow.data.ProcessingModeDef.ShardingPolicy sharding_policy = 1; + * @param value The shardingPolicy to set. + * @return This builder for chaining. */ public Builder setShardingPolicy(org.tensorflow.proto.data.DataService.ProcessingModeDef.ShardingPolicy value) { if (value == null) { @@ -842,6 +844,7 @@ public Builder setShardingPolicy(org.tensorflow.proto.data.DataService.Processin } /** * .tensorflow.data.ProcessingModeDef.ShardingPolicy sharding_policy = 1; + * @return This builder for chaining. */ public Builder clearShardingPolicy() { @@ -882,7 +885,18 @@ public ProcessingModeDef parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ProcessingModeDef(input, extensionRegistry); + 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(); } }; @@ -912,15 +926,27 @@ public interface DataServiceMetadataOrBuilder extends *
* * bytes element_spec = 1; + * @return Whether the elementSpec field is set. + */ + boolean hasElementSpec(); + /** + *
+     * Serialized element spec.
+     * 
+ * + * bytes element_spec = 1; + * @return The elementSpec. */ com.google.protobuf.ByteString getElementSpec(); /** * .tensorflow.data.DataServiceMetadata.Compression compression = 2; + * @return The enum numeric value on the wire for compression. */ int getCompressionValue(); /** * .tensorflow.data.DataServiceMetadata.Compression compression = 2; + * @return The compression. */ org.tensorflow.proto.data.DataService.DataServiceMetadata.Compression getCompression(); @@ -930,6 +956,7 @@ public interface DataServiceMetadataOrBuilder extends *
* * int64 cardinality = 3; + * @return The cardinality. */ long getCardinality(); @@ -943,7 +970,7 @@ public interface DataServiceMetadataOrBuilder extends * * Protobuf type {@code tensorflow.data.DataServiceMetadata} */ - public static final class DataServiceMetadata extends + public static final class DataServiceMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.data.DataServiceMetadata) DataServiceMetadataOrBuilder { @@ -968,59 +995,6 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private DataServiceMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - optionalElementSpecCase_ = 1; - optionalElementSpec_ = input.readBytes(); - break; - } - case 16: { - int rawValue = input.readEnum(); - - compression_ = rawValue; - break; - } - case 24: { - - cardinality_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.proto.data.DataService.internal_static_tensorflow_data_DataServiceMetadata_descriptor; @@ -1093,6 +1067,8 @@ public final int getNumber() { } /** + * @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 @@ -1100,6 +1076,10 @@ public static Compression 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 Compression forNumber(int value) { switch (value) { case 0: return COMPRESSION_UNSPECIFIED; @@ -1123,6 +1103,10 @@ public Compression findValueByNumber(int 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 @@ -1160,7 +1144,8 @@ private Compression(int value) { private int optionalElementSpecCase_ = 0; private java.lang.Object optionalElementSpec_; public enum OptionalElementSpecCase - implements com.google.protobuf.Internal.EnumLite { + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { ELEMENT_SPEC(1), OPTIONALELEMENTSPEC_NOT_SET(0); private final int value; @@ -1168,6 +1153,8 @@ private OptionalElementSpecCase(int value) { this.value = value; } /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -1200,7 +1187,21 @@ public int getNumber() { *
* * bytes element_spec = 1; + * @return Whether the elementSpec field is set. + */ + @java.lang.Override + public boolean hasElementSpec() { + return optionalElementSpecCase_ == 1; + } + /** + *
+     * Serialized element spec.
+     * 
+ * + * bytes element_spec = 1; + * @return The elementSpec. */ + @java.lang.Override public com.google.protobuf.ByteString getElementSpec() { if (optionalElementSpecCase_ == 1) { return (com.google.protobuf.ByteString) optionalElementSpec_; @@ -1212,14 +1213,16 @@ public com.google.protobuf.ByteString getElementSpec() { private int compression_; /** * .tensorflow.data.DataServiceMetadata.Compression compression = 2; + * @return The enum numeric value on the wire for compression. */ - public int getCompressionValue() { + @java.lang.Override public int getCompressionValue() { return compression_; } /** * .tensorflow.data.DataServiceMetadata.Compression compression = 2; + * @return The compression. */ - public org.tensorflow.proto.data.DataService.DataServiceMetadata.Compression getCompression() { + @java.lang.Override public org.tensorflow.proto.data.DataService.DataServiceMetadata.Compression getCompression() { @SuppressWarnings("deprecation") org.tensorflow.proto.data.DataService.DataServiceMetadata.Compression result = org.tensorflow.proto.data.DataService.DataServiceMetadata.Compression.valueOf(compression_); return result == null ? org.tensorflow.proto.data.DataService.DataServiceMetadata.Compression.UNRECOGNIZED : result; @@ -1233,7 +1236,9 @@ public org.tensorflow.proto.data.DataService.DataServiceMetadata.Compression get *
* * int64 cardinality = 3; + * @return The cardinality. */ + @java.lang.Override public long getCardinality() { return cardinality_; } @@ -1262,7 +1267,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (cardinality_ != 0L) { output.writeInt64(3, cardinality_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1284,7 +1289,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, cardinality_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1311,7 +1316,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1335,7 +1340,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1457,18 +1462,13 @@ public static final class Builder extends // Construct using org.tensorflow.proto.data.DataService.DataServiceMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -1574,7 +1574,7 @@ public Builder mergeFrom(org.tensorflow.proto.data.DataService.DataServiceMetada break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1589,17 +1589,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.data.DataService.DataServiceMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + optionalElementSpec_ = input.readBytes(); + optionalElementSpecCase_ = 1; + break; + } // case 10 + case 16: { + compression_ = input.readEnum(); + + break; + } // case 16 + case 24: { + cardinality_ = input.readInt64(); + + break; + } // case 24 + 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) { - parsedMessage = (org.tensorflow.proto.data.DataService.DataServiceMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int optionalElementSpecCase_ = 0; @@ -1624,6 +1652,18 @@ public Builder clearOptionalElementSpec() { *
* * bytes element_spec = 1; + * @return Whether the elementSpec field is set. + */ + public boolean hasElementSpec() { + return optionalElementSpecCase_ == 1; + } + /** + *
+       * Serialized element spec.
+       * 
+ * + * bytes element_spec = 1; + * @return The elementSpec. */ public com.google.protobuf.ByteString getElementSpec() { if (optionalElementSpecCase_ == 1) { @@ -1637,6 +1677,8 @@ public com.google.protobuf.ByteString getElementSpec() { * * * bytes element_spec = 1; + * @param value The elementSpec to set. + * @return This builder for chaining. */ public Builder setElementSpec(com.google.protobuf.ByteString value) { if (value == null) { @@ -1653,6 +1695,7 @@ public Builder setElementSpec(com.google.protobuf.ByteString value) { * * * bytes element_spec = 1; + * @return This builder for chaining. */ public Builder clearElementSpec() { if (optionalElementSpecCase_ == 1) { @@ -1666,21 +1709,27 @@ public Builder clearElementSpec() { private int compression_ = 0; /** * .tensorflow.data.DataServiceMetadata.Compression compression = 2; + * @return The enum numeric value on the wire for compression. */ - public int getCompressionValue() { + @java.lang.Override public int getCompressionValue() { return compression_; } /** * .tensorflow.data.DataServiceMetadata.Compression compression = 2; + * @param value The enum numeric value on the wire for compression to set. + * @return This builder for chaining. */ public Builder setCompressionValue(int value) { + compression_ = value; onChanged(); return this; } /** * .tensorflow.data.DataServiceMetadata.Compression compression = 2; + * @return The compression. */ + @java.lang.Override public org.tensorflow.proto.data.DataService.DataServiceMetadata.Compression getCompression() { @SuppressWarnings("deprecation") org.tensorflow.proto.data.DataService.DataServiceMetadata.Compression result = org.tensorflow.proto.data.DataService.DataServiceMetadata.Compression.valueOf(compression_); @@ -1688,6 +1737,8 @@ public org.tensorflow.proto.data.DataService.DataServiceMetadata.Compression get } /** * .tensorflow.data.DataServiceMetadata.Compression compression = 2; + * @param value The compression to set. + * @return This builder for chaining. */ public Builder setCompression(org.tensorflow.proto.data.DataService.DataServiceMetadata.Compression value) { if (value == null) { @@ -1700,6 +1751,7 @@ public Builder setCompression(org.tensorflow.proto.data.DataService.DataServiceM } /** * .tensorflow.data.DataServiceMetadata.Compression compression = 2; + * @return This builder for chaining. */ public Builder clearCompression() { @@ -1715,7 +1767,9 @@ public Builder clearCompression() { * * * int64 cardinality = 3; + * @return The cardinality. */ + @java.lang.Override public long getCardinality() { return cardinality_; } @@ -1725,6 +1779,8 @@ public long getCardinality() { * * * int64 cardinality = 3; + * @param value The cardinality to set. + * @return This builder for chaining. */ public Builder setCardinality(long value) { @@ -1738,6 +1794,7 @@ public Builder setCardinality(long value) { * * * int64 cardinality = 3; + * @return This builder for chaining. */ public Builder clearCardinality() { @@ -1778,7 +1835,18 @@ public DataServiceMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DataServiceMetadata(input, extensionRegistry); + 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(); } }; @@ -1804,10 +1872,12 @@ public interface CrossTrainerCacheOptionsOrBuilder extends /** * string trainer_id = 1; + * @return The trainerId. */ java.lang.String getTrainerId(); /** * string trainer_id = 1; + * @return The bytes for trainerId. */ com.google.protobuf.ByteString getTrainerIdBytes(); @@ -1815,7 +1885,7 @@ public interface CrossTrainerCacheOptionsOrBuilder extends /** * Protobuf type {@code tensorflow.data.CrossTrainerCacheOptions} */ - public static final class CrossTrainerCacheOptions extends + public static final class CrossTrainerCacheOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.data.CrossTrainerCacheOptions) CrossTrainerCacheOptionsOrBuilder { @@ -1840,49 +1910,6 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private CrossTrainerCacheOptions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - trainerId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.proto.data.DataService.internal_static_tensorflow_data_CrossTrainerCacheOptions_descriptor; @@ -1900,7 +1927,9 @@ private CrossTrainerCacheOptions( private volatile java.lang.Object trainerId_; /** * string trainer_id = 1; + * @return The trainerId. */ + @java.lang.Override public java.lang.String getTrainerId() { java.lang.Object ref = trainerId_; if (ref instanceof java.lang.String) { @@ -1915,7 +1944,9 @@ public java.lang.String getTrainerId() { } /** * string trainer_id = 1; + * @return The bytes for trainerId. */ + @java.lang.Override public com.google.protobuf.ByteString getTrainerIdBytes() { java.lang.Object ref = trainerId_; @@ -1944,10 +1975,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTrainerIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trainerId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, trainerId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1956,10 +1987,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTrainerIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trainerId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, trainerId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1976,7 +2007,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTrainerId() .equals(other.getTrainerId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1989,7 +2020,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TRAINER_ID_FIELD_NUMBER; hash = (53 * hash) + getTrainerId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -2106,18 +2137,13 @@ public static final class Builder extends // Construct using org.tensorflow.proto.data.DataService.CrossTrainerCacheOptions.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -2203,7 +2229,7 @@ public Builder mergeFrom(org.tensorflow.proto.data.DataService.CrossTrainerCache trainerId_ = other.trainerId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2218,23 +2244,42 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.data.DataService.CrossTrainerCacheOptions parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + trainerId_ = input.readStringRequireUtf8(); + + 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) { - parsedMessage = (org.tensorflow.proto.data.DataService.CrossTrainerCacheOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object trainerId_ = ""; /** * string trainer_id = 1; + * @return The trainerId. */ public java.lang.String getTrainerId() { java.lang.Object ref = trainerId_; @@ -2250,6 +2295,7 @@ public java.lang.String getTrainerId() { } /** * string trainer_id = 1; + * @return The bytes for trainerId. */ public com.google.protobuf.ByteString getTrainerIdBytes() { @@ -2266,6 +2312,8 @@ public java.lang.String getTrainerId() { } /** * string trainer_id = 1; + * @param value The trainerId to set. + * @return This builder for chaining. */ public Builder setTrainerId( java.lang.String value) { @@ -2279,6 +2327,7 @@ public Builder setTrainerId( } /** * string trainer_id = 1; + * @return This builder for chaining. */ public Builder clearTrainerId() { @@ -2288,6 +2337,8 @@ public Builder clearTrainerId() { } /** * string trainer_id = 1; + * @param value The bytes for trainerId to set. + * @return This builder for chaining. */ public Builder setTrainerIdBytes( com.google.protobuf.ByteString value) { @@ -2333,7 +2384,18 @@ public CrossTrainerCacheOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CrossTrainerCacheOptions(input, extensionRegistry); + 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(); } }; @@ -2359,10 +2421,12 @@ public interface DataServiceConfigOrBuilder extends /** * .tensorflow.data.DeploymentMode deployment_mode = 1; + * @return The enum numeric value on the wire for deploymentMode. */ int getDeploymentModeValue(); /** * .tensorflow.data.DeploymentMode deployment_mode = 1; + * @return The deploymentMode. */ org.tensorflow.proto.data.DataService.DeploymentMode getDeploymentMode(); } @@ -2374,7 +2438,7 @@ public interface DataServiceConfigOrBuilder extends * * Protobuf type {@code tensorflow.data.DataServiceConfig} */ - public static final class DataServiceConfig extends + public static final class DataServiceConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.data.DataServiceConfig) DataServiceConfigOrBuilder { @@ -2399,49 +2463,6 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private DataServiceConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - deploymentMode_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.proto.data.DataService.internal_static_tensorflow_data_DataServiceConfig_descriptor; @@ -2459,14 +2480,16 @@ private DataServiceConfig( private int deploymentMode_; /** * .tensorflow.data.DeploymentMode deployment_mode = 1; + * @return The enum numeric value on the wire for deploymentMode. */ - public int getDeploymentModeValue() { + @java.lang.Override public int getDeploymentModeValue() { return deploymentMode_; } /** * .tensorflow.data.DeploymentMode deployment_mode = 1; + * @return The deploymentMode. */ - public org.tensorflow.proto.data.DataService.DeploymentMode getDeploymentMode() { + @java.lang.Override public org.tensorflow.proto.data.DataService.DeploymentMode getDeploymentMode() { @SuppressWarnings("deprecation") org.tensorflow.proto.data.DataService.DeploymentMode result = org.tensorflow.proto.data.DataService.DeploymentMode.valueOf(deploymentMode_); return result == null ? org.tensorflow.proto.data.DataService.DeploymentMode.UNRECOGNIZED : result; @@ -2489,7 +2512,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (deploymentMode_ != org.tensorflow.proto.data.DataService.DeploymentMode.DEPLOYMENT_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, deploymentMode_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2502,7 +2525,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, deploymentMode_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2518,7 +2541,7 @@ public boolean equals(final java.lang.Object obj) { org.tensorflow.proto.data.DataService.DataServiceConfig other = (org.tensorflow.proto.data.DataService.DataServiceConfig) obj; if (deploymentMode_ != other.deploymentMode_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2531,7 +2554,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DEPLOYMENT_MODE_FIELD_NUMBER; hash = (53 * hash) + deploymentMode_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -2653,18 +2676,13 @@ public static final class Builder extends // Construct using org.tensorflow.proto.data.DataService.DataServiceConfig.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -2749,7 +2767,7 @@ public Builder mergeFrom(org.tensorflow.proto.data.DataService.DataServiceConfig if (other.deploymentMode_ != 0) { setDeploymentModeValue(other.getDeploymentModeValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2764,38 +2782,62 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.data.DataService.DataServiceConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + deploymentMode_ = input.readEnum(); + + break; + } // case 8 + 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) { - parsedMessage = (org.tensorflow.proto.data.DataService.DataServiceConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int deploymentMode_ = 0; /** * .tensorflow.data.DeploymentMode deployment_mode = 1; + * @return The enum numeric value on the wire for deploymentMode. */ - public int getDeploymentModeValue() { + @java.lang.Override public int getDeploymentModeValue() { return deploymentMode_; } /** * .tensorflow.data.DeploymentMode deployment_mode = 1; + * @param value The enum numeric value on the wire for deploymentMode to set. + * @return This builder for chaining. */ public Builder setDeploymentModeValue(int value) { + deploymentMode_ = value; onChanged(); return this; } /** * .tensorflow.data.DeploymentMode deployment_mode = 1; + * @return The deploymentMode. */ + @java.lang.Override public org.tensorflow.proto.data.DataService.DeploymentMode getDeploymentMode() { @SuppressWarnings("deprecation") org.tensorflow.proto.data.DataService.DeploymentMode result = org.tensorflow.proto.data.DataService.DeploymentMode.valueOf(deploymentMode_); @@ -2803,6 +2845,8 @@ public org.tensorflow.proto.data.DataService.DeploymentMode getDeploymentMode() } /** * .tensorflow.data.DeploymentMode deployment_mode = 1; + * @param value The deploymentMode to set. + * @return This builder for chaining. */ public Builder setDeploymentMode(org.tensorflow.proto.data.DataService.DeploymentMode value) { if (value == null) { @@ -2815,6 +2859,7 @@ public Builder setDeploymentMode(org.tensorflow.proto.data.DataService.Deploymen } /** * .tensorflow.data.DeploymentMode deployment_mode = 1; + * @return This builder for chaining. */ public Builder clearDeploymentMode() { @@ -2855,7 +2900,18 @@ public DataServiceConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DataServiceConfig(input, extensionRegistry); + 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(); } }; diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/data/Dataset.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/data/Dataset.java new file mode 100644 index 00000000000..2b3101beb94 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/data/Dataset.java @@ -0,0 +1,3061 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/dataset.proto + +package org.tensorflow.proto.data; + +public final class Dataset { + private Dataset() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface CompressedComponentMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.data.CompressedComponentMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The dtype of the component tensor.
+     * 
+ * + * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. + */ + int getDtypeValue(); + /** + *
+     * The dtype of the component tensor.
+     * 
+ * + * .tensorflow.DataType dtype = 1; + * @return The dtype. + */ + org.tensorflow.proto.DataType getDtype(); + + /** + *
+     * The shape of the component tensor.
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + * @return Whether the tensorShape field is set. + */ + boolean hasTensorShape(); + /** + *
+     * The shape of the component tensor.
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + * @return The tensorShape. + */ + org.tensorflow.proto.TensorShapeProto getTensorShape(); + /** + *
+     * The shape of the component tensor.
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + org.tensorflow.proto.TensorShapeProtoOrBuilder getTensorShapeOrBuilder(); + + /** + *
+     * The amount of uncompressed tensor data.
+     * - For string tensors, there is an element for each string indicating the
+     * size of the string.
+     * - For all other tensors, there is a single element indicating the size of
+     * the tensor.
+     * 
+ * + * repeated uint64 uncompressed_bytes = 4; + * @return A list containing the uncompressedBytes. + */ + java.util.List getUncompressedBytesList(); + /** + *
+     * The amount of uncompressed tensor data.
+     * - For string tensors, there is an element for each string indicating the
+     * size of the string.
+     * - For all other tensors, there is a single element indicating the size of
+     * the tensor.
+     * 
+ * + * repeated uint64 uncompressed_bytes = 4; + * @return The count of uncompressedBytes. + */ + int getUncompressedBytesCount(); + /** + *
+     * The amount of uncompressed tensor data.
+     * - For string tensors, there is an element for each string indicating the
+     * size of the string.
+     * - For all other tensors, there is a single element indicating the size of
+     * the tensor.
+     * 
+ * + * repeated uint64 uncompressed_bytes = 4; + * @param index The index of the element to return. + * @return The uncompressedBytes at the given index. + */ + long getUncompressedBytes(int index); + } + /** + *
+   * Metadata describing a compressed component of a dataset element.
+   * 
+ * + * Protobuf type {@code tensorflow.data.CompressedComponentMetadata} + */ + public static final class CompressedComponentMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.data.CompressedComponentMetadata) + CompressedComponentMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompressedComponentMetadata.newBuilder() to construct. + private CompressedComponentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompressedComponentMetadata() { + dtype_ = 0; + uncompressedBytes_ = emptyLongList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CompressedComponentMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.Dataset.internal_static_tensorflow_data_CompressedComponentMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.Dataset.internal_static_tensorflow_data_CompressedComponentMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.Dataset.CompressedComponentMetadata.class, org.tensorflow.proto.data.Dataset.CompressedComponentMetadata.Builder.class); + } + + public static final int DTYPE_FIELD_NUMBER = 1; + private int dtype_; + /** + *
+     * The dtype of the component tensor.
+     * 
+ * + * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. + */ + @java.lang.Override public int getDtypeValue() { + return dtype_; + } + /** + *
+     * The dtype of the component tensor.
+     * 
+ * + * .tensorflow.DataType dtype = 1; + * @return The dtype. + */ + @java.lang.Override public org.tensorflow.proto.DataType getDtype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + + public static final int TENSOR_SHAPE_FIELD_NUMBER = 2; + private org.tensorflow.proto.TensorShapeProto tensorShape_; + /** + *
+     * The shape of the component tensor.
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + * @return Whether the tensorShape field is set. + */ + @java.lang.Override + public boolean hasTensorShape() { + return tensorShape_ != null; + } + /** + *
+     * The shape of the component tensor.
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + * @return The tensorShape. + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto getTensorShape() { + return tensorShape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : tensorShape_; + } + /** + *
+     * The shape of the component tensor.
+     * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProtoOrBuilder getTensorShapeOrBuilder() { + return getTensorShape(); + } + + public static final int UNCOMPRESSED_BYTES_FIELD_NUMBER = 4; + private com.google.protobuf.Internal.LongList uncompressedBytes_; + /** + *
+     * The amount of uncompressed tensor data.
+     * - For string tensors, there is an element for each string indicating the
+     * size of the string.
+     * - For all other tensors, there is a single element indicating the size of
+     * the tensor.
+     * 
+ * + * repeated uint64 uncompressed_bytes = 4; + * @return A list containing the uncompressedBytes. + */ + @java.lang.Override + public java.util.List + getUncompressedBytesList() { + return uncompressedBytes_; + } + /** + *
+     * The amount of uncompressed tensor data.
+     * - For string tensors, there is an element for each string indicating the
+     * size of the string.
+     * - For all other tensors, there is a single element indicating the size of
+     * the tensor.
+     * 
+ * + * repeated uint64 uncompressed_bytes = 4; + * @return The count of uncompressedBytes. + */ + public int getUncompressedBytesCount() { + return uncompressedBytes_.size(); + } + /** + *
+     * The amount of uncompressed tensor data.
+     * - For string tensors, there is an element for each string indicating the
+     * size of the string.
+     * - For all other tensors, there is a single element indicating the size of
+     * the tensor.
+     * 
+ * + * repeated uint64 uncompressed_bytes = 4; + * @param index The index of the element to return. + * @return The uncompressedBytes at the given index. + */ + public long getUncompressedBytes(int index) { + return uncompressedBytes_.getLong(index); + } + private int uncompressedBytesMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + output.writeEnum(1, dtype_); + } + if (tensorShape_ != null) { + output.writeMessage(2, getTensorShape()); + } + if (getUncompressedBytesList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(uncompressedBytesMemoizedSerializedSize); + } + for (int i = 0; i < uncompressedBytes_.size(); i++) { + output.writeUInt64NoTag(uncompressedBytes_.getLong(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, dtype_); + } + if (tensorShape_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTensorShape()); + } + { + int dataSize = 0; + for (int i = 0; i < uncompressedBytes_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt64SizeNoTag(uncompressedBytes_.getLong(i)); + } + size += dataSize; + if (!getUncompressedBytesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + uncompressedBytesMemoizedSerializedSize = dataSize; + } + 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 org.tensorflow.proto.data.Dataset.CompressedComponentMetadata)) { + return super.equals(obj); + } + org.tensorflow.proto.data.Dataset.CompressedComponentMetadata other = (org.tensorflow.proto.data.Dataset.CompressedComponentMetadata) obj; + + if (dtype_ != other.dtype_) return false; + if (hasTensorShape() != other.hasTensorShape()) return false; + if (hasTensorShape()) { + if (!getTensorShape() + .equals(other.getTensorShape())) return false; + } + if (!getUncompressedBytesList() + .equals(other.getUncompressedBytesList())) 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) + DTYPE_FIELD_NUMBER; + hash = (53 * hash) + dtype_; + if (hasTensorShape()) { + hash = (37 * hash) + TENSOR_SHAPE_FIELD_NUMBER; + hash = (53 * hash) + getTensorShape().hashCode(); + } + if (getUncompressedBytesCount() > 0) { + hash = (37 * hash) + UNCOMPRESSED_BYTES_FIELD_NUMBER; + hash = (53 * hash) + getUncompressedBytesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.data.Dataset.CompressedComponentMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.Dataset.CompressedComponentMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.Dataset.CompressedComponentMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.Dataset.CompressedComponentMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.Dataset.CompressedComponentMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.Dataset.CompressedComponentMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.Dataset.CompressedComponentMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.Dataset.CompressedComponentMetadata 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 org.tensorflow.proto.data.Dataset.CompressedComponentMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.Dataset.CompressedComponentMetadata 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 org.tensorflow.proto.data.Dataset.CompressedComponentMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.Dataset.CompressedComponentMetadata 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(org.tensorflow.proto.data.Dataset.CompressedComponentMetadata 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; + } + /** + *
+     * Metadata describing a compressed component of a dataset element.
+     * 
+ * + * Protobuf type {@code tensorflow.data.CompressedComponentMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.data.CompressedComponentMetadata) + org.tensorflow.proto.data.Dataset.CompressedComponentMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.Dataset.internal_static_tensorflow_data_CompressedComponentMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.Dataset.internal_static_tensorflow_data_CompressedComponentMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.Dataset.CompressedComponentMetadata.class, org.tensorflow.proto.data.Dataset.CompressedComponentMetadata.Builder.class); + } + + // Construct using org.tensorflow.proto.data.Dataset.CompressedComponentMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + dtype_ = 0; + + if (tensorShapeBuilder_ == null) { + tensorShape_ = null; + } else { + tensorShape_ = null; + tensorShapeBuilder_ = null; + } + uncompressedBytes_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.data.Dataset.internal_static_tensorflow_data_CompressedComponentMetadata_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.data.Dataset.CompressedComponentMetadata getDefaultInstanceForType() { + return org.tensorflow.proto.data.Dataset.CompressedComponentMetadata.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.data.Dataset.CompressedComponentMetadata build() { + org.tensorflow.proto.data.Dataset.CompressedComponentMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.data.Dataset.CompressedComponentMetadata buildPartial() { + org.tensorflow.proto.data.Dataset.CompressedComponentMetadata result = new org.tensorflow.proto.data.Dataset.CompressedComponentMetadata(this); + int from_bitField0_ = bitField0_; + result.dtype_ = dtype_; + if (tensorShapeBuilder_ == null) { + result.tensorShape_ = tensorShape_; + } else { + result.tensorShape_ = tensorShapeBuilder_.build(); + } + if (((bitField0_ & 0x00000001) != 0)) { + uncompressedBytes_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.uncompressedBytes_ = uncompressedBytes_; + 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 org.tensorflow.proto.data.Dataset.CompressedComponentMetadata) { + return mergeFrom((org.tensorflow.proto.data.Dataset.CompressedComponentMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.data.Dataset.CompressedComponentMetadata other) { + if (other == org.tensorflow.proto.data.Dataset.CompressedComponentMetadata.getDefaultInstance()) return this; + if (other.dtype_ != 0) { + setDtypeValue(other.getDtypeValue()); + } + if (other.hasTensorShape()) { + mergeTensorShape(other.getTensorShape()); + } + if (!other.uncompressedBytes_.isEmpty()) { + if (uncompressedBytes_.isEmpty()) { + uncompressedBytes_ = other.uncompressedBytes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUncompressedBytesIsMutable(); + uncompressedBytes_.addAll(other.uncompressedBytes_); + } + 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 8: { + dtype_ = input.readEnum(); + + break; + } // case 8 + case 18: { + input.readMessage( + getTensorShapeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 32: { + long v = input.readUInt64(); + ensureUncompressedBytesIsMutable(); + uncompressedBytes_.addLong(v); + break; + } // case 32 + case 34: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureUncompressedBytesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + uncompressedBytes_.addLong(input.readUInt64()); + } + input.popLimit(limit); + break; + } // case 34 + 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 dtype_ = 0; + /** + *
+       * The dtype of the component tensor.
+       * 
+ * + * .tensorflow.DataType dtype = 1; + * @return The enum numeric value on the wire for dtype. + */ + @java.lang.Override public int getDtypeValue() { + return dtype_; + } + /** + *
+       * The dtype of the component tensor.
+       * 
+ * + * .tensorflow.DataType dtype = 1; + * @param value The enum numeric value on the wire for dtype to set. + * @return This builder for chaining. + */ + public Builder setDtypeValue(int value) { + + dtype_ = value; + onChanged(); + return this; + } + /** + *
+       * The dtype of the component tensor.
+       * 
+ * + * .tensorflow.DataType dtype = 1; + * @return The dtype. + */ + @java.lang.Override + public org.tensorflow.proto.DataType getDtype() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + /** + *
+       * The dtype of the component tensor.
+       * 
+ * + * .tensorflow.DataType dtype = 1; + * @param value The dtype to set. + * @return This builder for chaining. + */ + public Builder setDtype(org.tensorflow.proto.DataType value) { + if (value == null) { + throw new NullPointerException(); + } + + dtype_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The dtype of the component tensor.
+       * 
+ * + * .tensorflow.DataType dtype = 1; + * @return This builder for chaining. + */ + public Builder clearDtype() { + + dtype_ = 0; + onChanged(); + return this; + } + + private org.tensorflow.proto.TensorShapeProto tensorShape_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> tensorShapeBuilder_; + /** + *
+       * The shape of the component tensor.
+       * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + * @return Whether the tensorShape field is set. + */ + public boolean hasTensorShape() { + return tensorShapeBuilder_ != null || tensorShape_ != null; + } + /** + *
+       * The shape of the component tensor.
+       * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + * @return The tensorShape. + */ + public org.tensorflow.proto.TensorShapeProto getTensorShape() { + if (tensorShapeBuilder_ == null) { + return tensorShape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : tensorShape_; + } else { + return tensorShapeBuilder_.getMessage(); + } + } + /** + *
+       * The shape of the component tensor.
+       * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + public Builder setTensorShape(org.tensorflow.proto.TensorShapeProto value) { + if (tensorShapeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tensorShape_ = value; + onChanged(); + } else { + tensorShapeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The shape of the component tensor.
+       * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + public Builder setTensorShape( + org.tensorflow.proto.TensorShapeProto.Builder builderForValue) { + if (tensorShapeBuilder_ == null) { + tensorShape_ = builderForValue.build(); + onChanged(); + } else { + tensorShapeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The shape of the component tensor.
+       * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + public Builder mergeTensorShape(org.tensorflow.proto.TensorShapeProto value) { + if (tensorShapeBuilder_ == null) { + if (tensorShape_ != null) { + tensorShape_ = + org.tensorflow.proto.TensorShapeProto.newBuilder(tensorShape_).mergeFrom(value).buildPartial(); + } else { + tensorShape_ = value; + } + onChanged(); + } else { + tensorShapeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The shape of the component tensor.
+       * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + public Builder clearTensorShape() { + if (tensorShapeBuilder_ == null) { + tensorShape_ = null; + onChanged(); + } else { + tensorShape_ = null; + tensorShapeBuilder_ = null; + } + + return this; + } + /** + *
+       * The shape of the component tensor.
+       * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + public org.tensorflow.proto.TensorShapeProto.Builder getTensorShapeBuilder() { + + onChanged(); + return getTensorShapeFieldBuilder().getBuilder(); + } + /** + *
+       * The shape of the component tensor.
+       * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + public org.tensorflow.proto.TensorShapeProtoOrBuilder getTensorShapeOrBuilder() { + if (tensorShapeBuilder_ != null) { + return tensorShapeBuilder_.getMessageOrBuilder(); + } else { + return tensorShape_ == null ? + org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : tensorShape_; + } + } + /** + *
+       * The shape of the component tensor.
+       * 
+ * + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> + getTensorShapeFieldBuilder() { + if (tensorShapeBuilder_ == null) { + tensorShapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder>( + getTensorShape(), + getParentForChildren(), + isClean()); + tensorShape_ = null; + } + return tensorShapeBuilder_; + } + + private com.google.protobuf.Internal.LongList uncompressedBytes_ = emptyLongList(); + private void ensureUncompressedBytesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + uncompressedBytes_ = mutableCopy(uncompressedBytes_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * The amount of uncompressed tensor data.
+       * - For string tensors, there is an element for each string indicating the
+       * size of the string.
+       * - For all other tensors, there is a single element indicating the size of
+       * the tensor.
+       * 
+ * + * repeated uint64 uncompressed_bytes = 4; + * @return A list containing the uncompressedBytes. + */ + public java.util.List + getUncompressedBytesList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(uncompressedBytes_) : uncompressedBytes_; + } + /** + *
+       * The amount of uncompressed tensor data.
+       * - For string tensors, there is an element for each string indicating the
+       * size of the string.
+       * - For all other tensors, there is a single element indicating the size of
+       * the tensor.
+       * 
+ * + * repeated uint64 uncompressed_bytes = 4; + * @return The count of uncompressedBytes. + */ + public int getUncompressedBytesCount() { + return uncompressedBytes_.size(); + } + /** + *
+       * The amount of uncompressed tensor data.
+       * - For string tensors, there is an element for each string indicating the
+       * size of the string.
+       * - For all other tensors, there is a single element indicating the size of
+       * the tensor.
+       * 
+ * + * repeated uint64 uncompressed_bytes = 4; + * @param index The index of the element to return. + * @return The uncompressedBytes at the given index. + */ + public long getUncompressedBytes(int index) { + return uncompressedBytes_.getLong(index); + } + /** + *
+       * The amount of uncompressed tensor data.
+       * - For string tensors, there is an element for each string indicating the
+       * size of the string.
+       * - For all other tensors, there is a single element indicating the size of
+       * the tensor.
+       * 
+ * + * repeated uint64 uncompressed_bytes = 4; + * @param index The index to set the value at. + * @param value The uncompressedBytes to set. + * @return This builder for chaining. + */ + public Builder setUncompressedBytes( + int index, long value) { + ensureUncompressedBytesIsMutable(); + uncompressedBytes_.setLong(index, value); + onChanged(); + return this; + } + /** + *
+       * The amount of uncompressed tensor data.
+       * - For string tensors, there is an element for each string indicating the
+       * size of the string.
+       * - For all other tensors, there is a single element indicating the size of
+       * the tensor.
+       * 
+ * + * repeated uint64 uncompressed_bytes = 4; + * @param value The uncompressedBytes to add. + * @return This builder for chaining. + */ + public Builder addUncompressedBytes(long value) { + ensureUncompressedBytesIsMutable(); + uncompressedBytes_.addLong(value); + onChanged(); + return this; + } + /** + *
+       * The amount of uncompressed tensor data.
+       * - For string tensors, there is an element for each string indicating the
+       * size of the string.
+       * - For all other tensors, there is a single element indicating the size of
+       * the tensor.
+       * 
+ * + * repeated uint64 uncompressed_bytes = 4; + * @param values The uncompressedBytes to add. + * @return This builder for chaining. + */ + public Builder addAllUncompressedBytes( + java.lang.Iterable values) { + ensureUncompressedBytesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uncompressedBytes_); + onChanged(); + return this; + } + /** + *
+       * The amount of uncompressed tensor data.
+       * - For string tensors, there is an element for each string indicating the
+       * size of the string.
+       * - For all other tensors, there is a single element indicating the size of
+       * the tensor.
+       * 
+ * + * repeated uint64 uncompressed_bytes = 4; + * @return This builder for chaining. + */ + public Builder clearUncompressedBytes() { + uncompressedBytes_ = emptyLongList(); + bitField0_ = (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:tensorflow.data.CompressedComponentMetadata) + } + + // @@protoc_insertion_point(class_scope:tensorflow.data.CompressedComponentMetadata) + private static final org.tensorflow.proto.data.Dataset.CompressedComponentMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.data.Dataset.CompressedComponentMetadata(); + } + + public static org.tensorflow.proto.data.Dataset.CompressedComponentMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompressedComponentMetadata 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 org.tensorflow.proto.data.Dataset.CompressedComponentMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CompressedElementOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.data.CompressedElement) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Compressed tensor bytes for all components of the element.
+     * 
+ * + * bytes data = 1; + * @return The data. + */ + com.google.protobuf.ByteString getData(); + + /** + *
+     * Metadata for the components of the element.
+     * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + java.util.List + getComponentMetadataList(); + /** + *
+     * Metadata for the components of the element.
+     * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + org.tensorflow.proto.data.Dataset.CompressedComponentMetadata getComponentMetadata(int index); + /** + *
+     * Metadata for the components of the element.
+     * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + int getComponentMetadataCount(); + /** + *
+     * Metadata for the components of the element.
+     * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + java.util.List + getComponentMetadataOrBuilderList(); + /** + *
+     * Metadata for the components of the element.
+     * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + org.tensorflow.proto.data.Dataset.CompressedComponentMetadataOrBuilder getComponentMetadataOrBuilder( + int index); + + /** + *
+     * Version of the CompressedElement. CompressedElements may be stored on disk
+     * and read back by later versions of code, so we store a version number to
+     * help readers understand which version they are reading. When you add a new
+     * field to this proto, you need to increment kCompressedElementVersion in
+     * tensorflow/core/data/compression_utils.cc.
+     * 
+ * + * int32 version = 3; + * @return The version. + */ + int getVersion(); + } + /** + * Protobuf type {@code tensorflow.data.CompressedElement} + */ + public static final class CompressedElement extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.data.CompressedElement) + CompressedElementOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompressedElement.newBuilder() to construct. + private CompressedElement(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompressedElement() { + data_ = com.google.protobuf.ByteString.EMPTY; + componentMetadata_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CompressedElement(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.Dataset.internal_static_tensorflow_data_CompressedElement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.Dataset.internal_static_tensorflow_data_CompressedElement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.Dataset.CompressedElement.class, org.tensorflow.proto.data.Dataset.CompressedElement.Builder.class); + } + + public static final int DATA_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString data_; + /** + *
+     * Compressed tensor bytes for all components of the element.
+     * 
+ * + * bytes data = 1; + * @return The data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getData() { + return data_; + } + + public static final int COMPONENT_METADATA_FIELD_NUMBER = 2; + private java.util.List componentMetadata_; + /** + *
+     * Metadata for the components of the element.
+     * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + @java.lang.Override + public java.util.List getComponentMetadataList() { + return componentMetadata_; + } + /** + *
+     * Metadata for the components of the element.
+     * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + @java.lang.Override + public java.util.List + getComponentMetadataOrBuilderList() { + return componentMetadata_; + } + /** + *
+     * Metadata for the components of the element.
+     * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + @java.lang.Override + public int getComponentMetadataCount() { + return componentMetadata_.size(); + } + /** + *
+     * Metadata for the components of the element.
+     * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + @java.lang.Override + public org.tensorflow.proto.data.Dataset.CompressedComponentMetadata getComponentMetadata(int index) { + return componentMetadata_.get(index); + } + /** + *
+     * Metadata for the components of the element.
+     * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + @java.lang.Override + public org.tensorflow.proto.data.Dataset.CompressedComponentMetadataOrBuilder getComponentMetadataOrBuilder( + int index) { + return componentMetadata_.get(index); + } + + public static final int VERSION_FIELD_NUMBER = 3; + private int version_; + /** + *
+     * Version of the CompressedElement. CompressedElements may be stored on disk
+     * and read back by later versions of code, so we store a version number to
+     * help readers understand which version they are reading. When you add a new
+     * field to this proto, you need to increment kCompressedElementVersion in
+     * tensorflow/core/data/compression_utils.cc.
+     * 
+ * + * int32 version = 3; + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + + 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 (!data_.isEmpty()) { + output.writeBytes(1, data_); + } + for (int i = 0; i < componentMetadata_.size(); i++) { + output.writeMessage(2, componentMetadata_.get(i)); + } + if (version_ != 0) { + output.writeInt32(3, version_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, data_); + } + for (int i = 0; i < componentMetadata_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, componentMetadata_.get(i)); + } + if (version_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, version_); + } + 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 org.tensorflow.proto.data.Dataset.CompressedElement)) { + return super.equals(obj); + } + org.tensorflow.proto.data.Dataset.CompressedElement other = (org.tensorflow.proto.data.Dataset.CompressedElement) obj; + + if (!getData() + .equals(other.getData())) return false; + if (!getComponentMetadataList() + .equals(other.getComponentMetadataList())) return false; + if (getVersion() + != other.getVersion()) 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) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + if (getComponentMetadataCount() > 0) { + hash = (37 * hash) + COMPONENT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getComponentMetadataList().hashCode(); + } + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.data.Dataset.CompressedElement parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.Dataset.CompressedElement parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.Dataset.CompressedElement parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.Dataset.CompressedElement parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.Dataset.CompressedElement parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.Dataset.CompressedElement parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.Dataset.CompressedElement parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.Dataset.CompressedElement 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 org.tensorflow.proto.data.Dataset.CompressedElement parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.Dataset.CompressedElement 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 org.tensorflow.proto.data.Dataset.CompressedElement parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.Dataset.CompressedElement 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(org.tensorflow.proto.data.Dataset.CompressedElement prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code tensorflow.data.CompressedElement} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.data.CompressedElement) + org.tensorflow.proto.data.Dataset.CompressedElementOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.Dataset.internal_static_tensorflow_data_CompressedElement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.Dataset.internal_static_tensorflow_data_CompressedElement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.Dataset.CompressedElement.class, org.tensorflow.proto.data.Dataset.CompressedElement.Builder.class); + } + + // Construct using org.tensorflow.proto.data.Dataset.CompressedElement.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + data_ = com.google.protobuf.ByteString.EMPTY; + + if (componentMetadataBuilder_ == null) { + componentMetadata_ = java.util.Collections.emptyList(); + } else { + componentMetadata_ = null; + componentMetadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + version_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.data.Dataset.internal_static_tensorflow_data_CompressedElement_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.data.Dataset.CompressedElement getDefaultInstanceForType() { + return org.tensorflow.proto.data.Dataset.CompressedElement.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.data.Dataset.CompressedElement build() { + org.tensorflow.proto.data.Dataset.CompressedElement result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.data.Dataset.CompressedElement buildPartial() { + org.tensorflow.proto.data.Dataset.CompressedElement result = new org.tensorflow.proto.data.Dataset.CompressedElement(this); + int from_bitField0_ = bitField0_; + result.data_ = data_; + if (componentMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + componentMetadata_ = java.util.Collections.unmodifiableList(componentMetadata_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.componentMetadata_ = componentMetadata_; + } else { + result.componentMetadata_ = componentMetadataBuilder_.build(); + } + result.version_ = version_; + 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 org.tensorflow.proto.data.Dataset.CompressedElement) { + return mergeFrom((org.tensorflow.proto.data.Dataset.CompressedElement)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.data.Dataset.CompressedElement other) { + if (other == org.tensorflow.proto.data.Dataset.CompressedElement.getDefaultInstance()) return this; + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + if (componentMetadataBuilder_ == null) { + if (!other.componentMetadata_.isEmpty()) { + if (componentMetadata_.isEmpty()) { + componentMetadata_ = other.componentMetadata_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureComponentMetadataIsMutable(); + componentMetadata_.addAll(other.componentMetadata_); + } + onChanged(); + } + } else { + if (!other.componentMetadata_.isEmpty()) { + if (componentMetadataBuilder_.isEmpty()) { + componentMetadataBuilder_.dispose(); + componentMetadataBuilder_ = null; + componentMetadata_ = other.componentMetadata_; + bitField0_ = (bitField0_ & ~0x00000001); + componentMetadataBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getComponentMetadataFieldBuilder() : null; + } else { + componentMetadataBuilder_.addAllMessages(other.componentMetadata_); + } + } + } + if (other.getVersion() != 0) { + setVersion(other.getVersion()); + } + 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: { + data_ = input.readBytes(); + + break; + } // case 10 + case 18: { + org.tensorflow.proto.data.Dataset.CompressedComponentMetadata m = + input.readMessage( + org.tensorflow.proto.data.Dataset.CompressedComponentMetadata.parser(), + extensionRegistry); + if (componentMetadataBuilder_ == null) { + ensureComponentMetadataIsMutable(); + componentMetadata_.add(m); + } else { + componentMetadataBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + version_ = input.readInt32(); + + break; + } // case 24 + 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.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * Compressed tensor bytes for all components of the element.
+       * 
+ * + * bytes data = 1; + * @return The data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + *
+       * Compressed tensor bytes for all components of the element.
+       * 
+ * + * bytes data = 1; + * @param value The data to set. + * @return This builder for chaining. + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + *
+       * Compressed tensor bytes for all components of the element.
+       * 
+ * + * bytes data = 1; + * @return This builder for chaining. + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + private java.util.List componentMetadata_ = + java.util.Collections.emptyList(); + private void ensureComponentMetadataIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + componentMetadata_ = new java.util.ArrayList(componentMetadata_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.data.Dataset.CompressedComponentMetadata, org.tensorflow.proto.data.Dataset.CompressedComponentMetadata.Builder, org.tensorflow.proto.data.Dataset.CompressedComponentMetadataOrBuilder> componentMetadataBuilder_; + + /** + *
+       * Metadata for the components of the element.
+       * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + public java.util.List getComponentMetadataList() { + if (componentMetadataBuilder_ == null) { + return java.util.Collections.unmodifiableList(componentMetadata_); + } else { + return componentMetadataBuilder_.getMessageList(); + } + } + /** + *
+       * Metadata for the components of the element.
+       * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + public int getComponentMetadataCount() { + if (componentMetadataBuilder_ == null) { + return componentMetadata_.size(); + } else { + return componentMetadataBuilder_.getCount(); + } + } + /** + *
+       * Metadata for the components of the element.
+       * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + public org.tensorflow.proto.data.Dataset.CompressedComponentMetadata getComponentMetadata(int index) { + if (componentMetadataBuilder_ == null) { + return componentMetadata_.get(index); + } else { + return componentMetadataBuilder_.getMessage(index); + } + } + /** + *
+       * Metadata for the components of the element.
+       * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + public Builder setComponentMetadata( + int index, org.tensorflow.proto.data.Dataset.CompressedComponentMetadata value) { + if (componentMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentMetadataIsMutable(); + componentMetadata_.set(index, value); + onChanged(); + } else { + componentMetadataBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Metadata for the components of the element.
+       * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + public Builder setComponentMetadata( + int index, org.tensorflow.proto.data.Dataset.CompressedComponentMetadata.Builder builderForValue) { + if (componentMetadataBuilder_ == null) { + ensureComponentMetadataIsMutable(); + componentMetadata_.set(index, builderForValue.build()); + onChanged(); + } else { + componentMetadataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Metadata for the components of the element.
+       * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + public Builder addComponentMetadata(org.tensorflow.proto.data.Dataset.CompressedComponentMetadata value) { + if (componentMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentMetadataIsMutable(); + componentMetadata_.add(value); + onChanged(); + } else { + componentMetadataBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Metadata for the components of the element.
+       * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + public Builder addComponentMetadata( + int index, org.tensorflow.proto.data.Dataset.CompressedComponentMetadata value) { + if (componentMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentMetadataIsMutable(); + componentMetadata_.add(index, value); + onChanged(); + } else { + componentMetadataBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Metadata for the components of the element.
+       * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + public Builder addComponentMetadata( + org.tensorflow.proto.data.Dataset.CompressedComponentMetadata.Builder builderForValue) { + if (componentMetadataBuilder_ == null) { + ensureComponentMetadataIsMutable(); + componentMetadata_.add(builderForValue.build()); + onChanged(); + } else { + componentMetadataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Metadata for the components of the element.
+       * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + public Builder addComponentMetadata( + int index, org.tensorflow.proto.data.Dataset.CompressedComponentMetadata.Builder builderForValue) { + if (componentMetadataBuilder_ == null) { + ensureComponentMetadataIsMutable(); + componentMetadata_.add(index, builderForValue.build()); + onChanged(); + } else { + componentMetadataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Metadata for the components of the element.
+       * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + public Builder addAllComponentMetadata( + java.lang.Iterable values) { + if (componentMetadataBuilder_ == null) { + ensureComponentMetadataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, componentMetadata_); + onChanged(); + } else { + componentMetadataBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Metadata for the components of the element.
+       * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + public Builder clearComponentMetadata() { + if (componentMetadataBuilder_ == null) { + componentMetadata_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + componentMetadataBuilder_.clear(); + } + return this; + } + /** + *
+       * Metadata for the components of the element.
+       * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + public Builder removeComponentMetadata(int index) { + if (componentMetadataBuilder_ == null) { + ensureComponentMetadataIsMutable(); + componentMetadata_.remove(index); + onChanged(); + } else { + componentMetadataBuilder_.remove(index); + } + return this; + } + /** + *
+       * Metadata for the components of the element.
+       * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + public org.tensorflow.proto.data.Dataset.CompressedComponentMetadata.Builder getComponentMetadataBuilder( + int index) { + return getComponentMetadataFieldBuilder().getBuilder(index); + } + /** + *
+       * Metadata for the components of the element.
+       * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + public org.tensorflow.proto.data.Dataset.CompressedComponentMetadataOrBuilder getComponentMetadataOrBuilder( + int index) { + if (componentMetadataBuilder_ == null) { + return componentMetadata_.get(index); } else { + return componentMetadataBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Metadata for the components of the element.
+       * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + public java.util.List + getComponentMetadataOrBuilderList() { + if (componentMetadataBuilder_ != null) { + return componentMetadataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(componentMetadata_); + } + } + /** + *
+       * Metadata for the components of the element.
+       * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + public org.tensorflow.proto.data.Dataset.CompressedComponentMetadata.Builder addComponentMetadataBuilder() { + return getComponentMetadataFieldBuilder().addBuilder( + org.tensorflow.proto.data.Dataset.CompressedComponentMetadata.getDefaultInstance()); + } + /** + *
+       * Metadata for the components of the element.
+       * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + public org.tensorflow.proto.data.Dataset.CompressedComponentMetadata.Builder addComponentMetadataBuilder( + int index) { + return getComponentMetadataFieldBuilder().addBuilder( + index, org.tensorflow.proto.data.Dataset.CompressedComponentMetadata.getDefaultInstance()); + } + /** + *
+       * Metadata for the components of the element.
+       * 
+ * + * repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2; + */ + public java.util.List + getComponentMetadataBuilderList() { + return getComponentMetadataFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.data.Dataset.CompressedComponentMetadata, org.tensorflow.proto.data.Dataset.CompressedComponentMetadata.Builder, org.tensorflow.proto.data.Dataset.CompressedComponentMetadataOrBuilder> + getComponentMetadataFieldBuilder() { + if (componentMetadataBuilder_ == null) { + componentMetadataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.data.Dataset.CompressedComponentMetadata, org.tensorflow.proto.data.Dataset.CompressedComponentMetadata.Builder, org.tensorflow.proto.data.Dataset.CompressedComponentMetadataOrBuilder>( + componentMetadata_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + componentMetadata_ = null; + } + return componentMetadataBuilder_; + } + + private int version_ ; + /** + *
+       * Version of the CompressedElement. CompressedElements may be stored on disk
+       * and read back by later versions of code, so we store a version number to
+       * help readers understand which version they are reading. When you add a new
+       * field to this proto, you need to increment kCompressedElementVersion in
+       * tensorflow/core/data/compression_utils.cc.
+       * 
+ * + * int32 version = 3; + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + /** + *
+       * Version of the CompressedElement. CompressedElements may be stored on disk
+       * and read back by later versions of code, so we store a version number to
+       * help readers understand which version they are reading. When you add a new
+       * field to this proto, you need to increment kCompressedElementVersion in
+       * tensorflow/core/data/compression_utils.cc.
+       * 
+ * + * int32 version = 3; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(int value) { + + version_ = value; + onChanged(); + return this; + } + /** + *
+       * Version of the CompressedElement. CompressedElements may be stored on disk
+       * and read back by later versions of code, so we store a version number to
+       * help readers understand which version they are reading. When you add a new
+       * field to this proto, you need to increment kCompressedElementVersion in
+       * tensorflow/core/data/compression_utils.cc.
+       * 
+ * + * int32 version = 3; + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = 0; + 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:tensorflow.data.CompressedElement) + } + + // @@protoc_insertion_point(class_scope:tensorflow.data.CompressedElement) + private static final org.tensorflow.proto.data.Dataset.CompressedElement DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.data.Dataset.CompressedElement(); + } + + public static org.tensorflow.proto.data.Dataset.CompressedElement getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompressedElement 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 org.tensorflow.proto.data.Dataset.CompressedElement getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UncompressedElementOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.data.UncompressedElement) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .tensorflow.TensorProto components = 1; + */ + java.util.List + getComponentsList(); + /** + * repeated .tensorflow.TensorProto components = 1; + */ + org.tensorflow.proto.TensorProto getComponents(int index); + /** + * repeated .tensorflow.TensorProto components = 1; + */ + int getComponentsCount(); + /** + * repeated .tensorflow.TensorProto components = 1; + */ + java.util.List + getComponentsOrBuilderList(); + /** + * repeated .tensorflow.TensorProto components = 1; + */ + org.tensorflow.proto.TensorProtoOrBuilder getComponentsOrBuilder( + int index); + } + /** + *
+   * An uncompressed dataset element.
+   * 
+ * + * Protobuf type {@code tensorflow.data.UncompressedElement} + */ + public static final class UncompressedElement extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.data.UncompressedElement) + UncompressedElementOrBuilder { + private static final long serialVersionUID = 0L; + // Use UncompressedElement.newBuilder() to construct. + private UncompressedElement(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UncompressedElement() { + components_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UncompressedElement(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.Dataset.internal_static_tensorflow_data_UncompressedElement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.Dataset.internal_static_tensorflow_data_UncompressedElement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.Dataset.UncompressedElement.class, org.tensorflow.proto.data.Dataset.UncompressedElement.Builder.class); + } + + public static final int COMPONENTS_FIELD_NUMBER = 1; + private java.util.List components_; + /** + * repeated .tensorflow.TensorProto components = 1; + */ + @java.lang.Override + public java.util.List getComponentsList() { + return components_; + } + /** + * repeated .tensorflow.TensorProto components = 1; + */ + @java.lang.Override + public java.util.List + getComponentsOrBuilderList() { + return components_; + } + /** + * repeated .tensorflow.TensorProto components = 1; + */ + @java.lang.Override + public int getComponentsCount() { + return components_.size(); + } + /** + * repeated .tensorflow.TensorProto components = 1; + */ + @java.lang.Override + public org.tensorflow.proto.TensorProto getComponents(int index) { + return components_.get(index); + } + /** + * repeated .tensorflow.TensorProto components = 1; + */ + @java.lang.Override + public org.tensorflow.proto.TensorProtoOrBuilder getComponentsOrBuilder( + int index) { + return components_.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 < components_.size(); i++) { + output.writeMessage(1, components_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < components_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, components_.get(i)); + } + 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 org.tensorflow.proto.data.Dataset.UncompressedElement)) { + return super.equals(obj); + } + org.tensorflow.proto.data.Dataset.UncompressedElement other = (org.tensorflow.proto.data.Dataset.UncompressedElement) obj; + + if (!getComponentsList() + .equals(other.getComponentsList())) 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 (getComponentsCount() > 0) { + hash = (37 * hash) + COMPONENTS_FIELD_NUMBER; + hash = (53 * hash) + getComponentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.data.Dataset.UncompressedElement parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.Dataset.UncompressedElement parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.Dataset.UncompressedElement parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.Dataset.UncompressedElement parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.Dataset.UncompressedElement parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.Dataset.UncompressedElement parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.Dataset.UncompressedElement parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.Dataset.UncompressedElement 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 org.tensorflow.proto.data.Dataset.UncompressedElement parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.Dataset.UncompressedElement 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 org.tensorflow.proto.data.Dataset.UncompressedElement parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.Dataset.UncompressedElement 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(org.tensorflow.proto.data.Dataset.UncompressedElement 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; + } + /** + *
+     * An uncompressed dataset element.
+     * 
+ * + * Protobuf type {@code tensorflow.data.UncompressedElement} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.data.UncompressedElement) + org.tensorflow.proto.data.Dataset.UncompressedElementOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.Dataset.internal_static_tensorflow_data_UncompressedElement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.Dataset.internal_static_tensorflow_data_UncompressedElement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.Dataset.UncompressedElement.class, org.tensorflow.proto.data.Dataset.UncompressedElement.Builder.class); + } + + // Construct using org.tensorflow.proto.data.Dataset.UncompressedElement.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (componentsBuilder_ == null) { + components_ = java.util.Collections.emptyList(); + } else { + components_ = null; + componentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.data.Dataset.internal_static_tensorflow_data_UncompressedElement_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.data.Dataset.UncompressedElement getDefaultInstanceForType() { + return org.tensorflow.proto.data.Dataset.UncompressedElement.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.data.Dataset.UncompressedElement build() { + org.tensorflow.proto.data.Dataset.UncompressedElement result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.data.Dataset.UncompressedElement buildPartial() { + org.tensorflow.proto.data.Dataset.UncompressedElement result = new org.tensorflow.proto.data.Dataset.UncompressedElement(this); + int from_bitField0_ = bitField0_; + if (componentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + components_ = java.util.Collections.unmodifiableList(components_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.components_ = components_; + } else { + result.components_ = componentsBuilder_.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 org.tensorflow.proto.data.Dataset.UncompressedElement) { + return mergeFrom((org.tensorflow.proto.data.Dataset.UncompressedElement)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.data.Dataset.UncompressedElement other) { + if (other == org.tensorflow.proto.data.Dataset.UncompressedElement.getDefaultInstance()) return this; + if (componentsBuilder_ == null) { + if (!other.components_.isEmpty()) { + if (components_.isEmpty()) { + components_ = other.components_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureComponentsIsMutable(); + components_.addAll(other.components_); + } + onChanged(); + } + } else { + if (!other.components_.isEmpty()) { + if (componentsBuilder_.isEmpty()) { + componentsBuilder_.dispose(); + componentsBuilder_ = null; + components_ = other.components_; + bitField0_ = (bitField0_ & ~0x00000001); + componentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getComponentsFieldBuilder() : null; + } else { + componentsBuilder_.addAllMessages(other.components_); + } + } + } + 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: { + org.tensorflow.proto.TensorProto m = + input.readMessage( + org.tensorflow.proto.TensorProto.parser(), + extensionRegistry); + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.add(m); + } else { + componentsBuilder_.addMessage(m); + } + 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.util.List components_ = + java.util.Collections.emptyList(); + private void ensureComponentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + components_ = new java.util.ArrayList(components_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> componentsBuilder_; + + /** + * repeated .tensorflow.TensorProto components = 1; + */ + public java.util.List getComponentsList() { + if (componentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(components_); + } else { + return componentsBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.TensorProto components = 1; + */ + public int getComponentsCount() { + if (componentsBuilder_ == null) { + return components_.size(); + } else { + return componentsBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.TensorProto components = 1; + */ + public org.tensorflow.proto.TensorProto getComponents(int index) { + if (componentsBuilder_ == null) { + return components_.get(index); + } else { + return componentsBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.TensorProto components = 1; + */ + public Builder setComponents( + int index, org.tensorflow.proto.TensorProto value) { + if (componentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.set(index, value); + onChanged(); + } else { + componentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.TensorProto components = 1; + */ + public Builder setComponents( + int index, org.tensorflow.proto.TensorProto.Builder builderForValue) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.set(index, builderForValue.build()); + onChanged(); + } else { + componentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.TensorProto components = 1; + */ + public Builder addComponents(org.tensorflow.proto.TensorProto value) { + if (componentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.add(value); + onChanged(); + } else { + componentsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.TensorProto components = 1; + */ + public Builder addComponents( + int index, org.tensorflow.proto.TensorProto value) { + if (componentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsIsMutable(); + components_.add(index, value); + onChanged(); + } else { + componentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.TensorProto components = 1; + */ + public Builder addComponents( + org.tensorflow.proto.TensorProto.Builder builderForValue) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.add(builderForValue.build()); + onChanged(); + } else { + componentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.TensorProto components = 1; + */ + public Builder addComponents( + int index, org.tensorflow.proto.TensorProto.Builder builderForValue) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.add(index, builderForValue.build()); + onChanged(); + } else { + componentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.TensorProto components = 1; + */ + public Builder addAllComponents( + java.lang.Iterable values) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, components_); + onChanged(); + } else { + componentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.TensorProto components = 1; + */ + public Builder clearComponents() { + if (componentsBuilder_ == null) { + components_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + componentsBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.TensorProto components = 1; + */ + public Builder removeComponents(int index) { + if (componentsBuilder_ == null) { + ensureComponentsIsMutable(); + components_.remove(index); + onChanged(); + } else { + componentsBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.TensorProto components = 1; + */ + public org.tensorflow.proto.TensorProto.Builder getComponentsBuilder( + int index) { + return getComponentsFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.TensorProto components = 1; + */ + public org.tensorflow.proto.TensorProtoOrBuilder getComponentsOrBuilder( + int index) { + if (componentsBuilder_ == null) { + return components_.get(index); } else { + return componentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.TensorProto components = 1; + */ + public java.util.List + getComponentsOrBuilderList() { + if (componentsBuilder_ != null) { + return componentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(components_); + } + } + /** + * repeated .tensorflow.TensorProto components = 1; + */ + public org.tensorflow.proto.TensorProto.Builder addComponentsBuilder() { + return getComponentsFieldBuilder().addBuilder( + org.tensorflow.proto.TensorProto.getDefaultInstance()); + } + /** + * repeated .tensorflow.TensorProto components = 1; + */ + public org.tensorflow.proto.TensorProto.Builder addComponentsBuilder( + int index) { + return getComponentsFieldBuilder().addBuilder( + index, org.tensorflow.proto.TensorProto.getDefaultInstance()); + } + /** + * repeated .tensorflow.TensorProto components = 1; + */ + public java.util.List + getComponentsBuilderList() { + return getComponentsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> + getComponentsFieldBuilder() { + if (componentsBuilder_ == null) { + componentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder>( + components_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + components_ = null; + } + return componentsBuilder_; + } + @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:tensorflow.data.UncompressedElement) + } + + // @@protoc_insertion_point(class_scope:tensorflow.data.UncompressedElement) + private static final org.tensorflow.proto.data.Dataset.UncompressedElement DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.data.Dataset.UncompressedElement(); + } + + public static org.tensorflow.proto.data.Dataset.UncompressedElement getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UncompressedElement 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 org.tensorflow.proto.data.Dataset.UncompressedElement getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_data_CompressedComponentMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_data_CompressedComponentMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_data_CompressedElement_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_data_CompressedElement_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_data_UncompressedElement_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_data_UncompressedElement_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'tensorflow/core/framework/dataset.prot" + + "o\022\017tensorflow.data\032&tensorflow/core/fram" + + "ework/tensor.proto\032,tensorflow/core/fram" + + "ework/tensor_shape.proto\032%tensorflow/cor" + + "e/framework/types.proto\"\230\001\n\033CompressedCo" + + "mponentMetadata\022#\n\005dtype\030\001 \001(\0162\024.tensorf" + + "low.DataType\0222\n\014tensor_shape\030\002 \001(\0132\034.ten" + + "sorflow.TensorShapeProto\022\032\n\022uncompressed" + + "_bytes\030\004 \003(\004J\004\010\003\020\004\"|\n\021CompressedElement\022" + + "\014\n\004data\030\001 \001(\014\022H\n\022component_metadata\030\002 \003(" + + "\0132,.tensorflow.data.CompressedComponentM" + + "etadata\022\017\n\007version\030\003 \001(\005\"B\n\023Uncompressed" + + "Element\022+\n\ncomponents\030\001 \003(\0132\027.tensorflow" + + ".TensorProtoB\036\n\031org.tensorflow.proto.dat" + + "a\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + org.tensorflow.proto.TensorProtos.getDescriptor(), + org.tensorflow.proto.TensorShapeProtos.getDescriptor(), + org.tensorflow.proto.TypesProtos.getDescriptor(), + }); + internal_static_tensorflow_data_CompressedComponentMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_data_CompressedComponentMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_data_CompressedComponentMetadata_descriptor, + new java.lang.String[] { "Dtype", "TensorShape", "UncompressedBytes", }); + internal_static_tensorflow_data_CompressedElement_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_tensorflow_data_CompressedElement_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_data_CompressedElement_descriptor, + new java.lang.String[] { "Data", "ComponentMetadata", "Version", }); + internal_static_tensorflow_data_UncompressedElement_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_tensorflow_data_UncompressedElement_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_data_UncompressedElement_descriptor, + new java.lang.String[] { "Components", }); + org.tensorflow.proto.TensorProtos.getDescriptor(); + org.tensorflow.proto.TensorShapeProtos.getDescriptor(); + org.tensorflow.proto.TypesProtos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/DatasetMetadata.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/data/DatasetMetadata.java similarity index 88% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/DatasetMetadata.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/data/DatasetMetadata.java index 8867f9700c1..4295ac2f661 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/DatasetMetadata.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/data/DatasetMetadata.java @@ -20,6 +20,7 @@ public interface MetadataOrBuilder extends /** * bytes name = 1; + * @return The name. */ com.google.protobuf.ByteString getName(); } @@ -30,7 +31,7 @@ public interface MetadataOrBuilder extends * * Protobuf type {@code tensorflow.data.Metadata} */ - public static final class Metadata extends + public static final class Metadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.data.Metadata) MetadataOrBuilder { @@ -55,48 +56,6 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private Metadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - - name_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.proto.data.DatasetMetadata.internal_static_tensorflow_data_Metadata_descriptor; @@ -114,7 +73,9 @@ private Metadata( private com.google.protobuf.ByteString name_; /** * bytes name = 1; + * @return The name. */ + @java.lang.Override public com.google.protobuf.ByteString getName() { return name_; } @@ -136,7 +97,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!name_.isEmpty()) { output.writeBytes(1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -149,7 +110,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -166,7 +127,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName() .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -179,7 +140,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -300,18 +261,13 @@ public static final class Builder extends // Construct using org.tensorflow.proto.data.DatasetMetadata.Metadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -396,7 +352,7 @@ public Builder mergeFrom(org.tensorflow.proto.data.DatasetMetadata.Metadata othe if (other.getName() != com.google.protobuf.ByteString.EMPTY) { setName(other.getName()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -411,29 +367,51 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.data.DatasetMetadata.Metadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readBytes(); + + 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) { - parsedMessage = (org.tensorflow.proto.data.DatasetMetadata.Metadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY; /** * bytes name = 1; + * @return The name. */ + @java.lang.Override public com.google.protobuf.ByteString getName() { return name_; } /** * bytes name = 1; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(com.google.protobuf.ByteString value) { if (value == null) { @@ -446,6 +424,7 @@ public Builder setName(com.google.protobuf.ByteString value) { } /** * bytes name = 1; + * @return This builder for chaining. */ public Builder clearName() { @@ -486,7 +465,18 @@ public Metadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Metadata(input, extensionRegistry); + 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(); } }; diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/data/DatasetOptions.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/data/DatasetOptions.java new file mode 100644 index 00000000000..dac0f8e63f7 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/data/DatasetOptions.java @@ -0,0 +1,8445 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/dataset_options.proto + +package org.tensorflow.proto.data; + +public final class DatasetOptions { + private DatasetOptions() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * Represents the type of auto-sharding we enable.
+   * 
+ * + * Protobuf enum {@code tensorflow.data.AutoShardPolicy} + */ + public enum AutoShardPolicy + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * AUTO: Attempts FILE-based sharding, falling back to DATA-based sharding.
+     * 
+ * + * AUTO = 0; + */ + AUTO(0), + /** + *
+     * FILE: Shards by input files (i.e. each worker will get a set of files to
+     * process). When this option is selected, make sure that there is at least as
+     * many files as workers. If there are fewer input files than workers, a
+     * runtime error will be raised.
+     * 
+ * + * FILE = 1; + */ + FILE(1), + /** + *
+     * DATA: Shards by elements produced by the dataset. Each worker will process
+     * the whole dataset and discard the portion that is not for itself. Note that
+     * for this mode to correctly partitions the dataset elements, the dataset
+     * needs to produce elements in a deterministic order.
+     * 
+ * + * DATA = 2; + */ + DATA(2), + /** + *
+     * HINT: Looks for the presence of `shard(SHARD_HINT, ...)` which is treated
+     * as a placeholder to replace with `shard(num_workers, worker_index)`.
+     * 
+ * + * HINT = 3; + */ + HINT(3), + /** + *
+     * OFF: No sharding will be performed.
+     * 
+ * + * OFF = -1; + */ + OFF(-1), + UNRECOGNIZED(-1), + ; + + /** + *
+     * AUTO: Attempts FILE-based sharding, falling back to DATA-based sharding.
+     * 
+ * + * AUTO = 0; + */ + public static final int AUTO_VALUE = 0; + /** + *
+     * FILE: Shards by input files (i.e. each worker will get a set of files to
+     * process). When this option is selected, make sure that there is at least as
+     * many files as workers. If there are fewer input files than workers, a
+     * runtime error will be raised.
+     * 
+ * + * FILE = 1; + */ + public static final int FILE_VALUE = 1; + /** + *
+     * DATA: Shards by elements produced by the dataset. Each worker will process
+     * the whole dataset and discard the portion that is not for itself. Note that
+     * for this mode to correctly partitions the dataset elements, the dataset
+     * needs to produce elements in a deterministic order.
+     * 
+ * + * DATA = 2; + */ + public static final int DATA_VALUE = 2; + /** + *
+     * HINT: Looks for the presence of `shard(SHARD_HINT, ...)` which is treated
+     * as a placeholder to replace with `shard(num_workers, worker_index)`.
+     * 
+ * + * HINT = 3; + */ + public static final int HINT_VALUE = 3; + /** + *
+     * OFF: No sharding will be performed.
+     * 
+ * + * OFF = -1; + */ + public static final int OFF_VALUE = -1; + + + 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 AutoShardPolicy 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 AutoShardPolicy forNumber(int value) { + switch (value) { + case 0: return AUTO; + case 1: return FILE; + case 2: return DATA; + case 3: return HINT; + case -1: return OFF; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + AutoShardPolicy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AutoShardPolicy findValueByNumber(int number) { + return AutoShardPolicy.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 org.tensorflow.proto.data.DatasetOptions.getDescriptor().getEnumTypes().get(0); + } + + private static final AutoShardPolicy[] VALUES = values(); + + public static AutoShardPolicy 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 AutoShardPolicy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:tensorflow.data.AutoShardPolicy) + } + + /** + *
+   * Represents how to handle external state during serialization.
+   * 
+ * + * Protobuf enum {@code tensorflow.data.ExternalStatePolicy} + */ + public enum ExternalStatePolicy + implements com.google.protobuf.ProtocolMessageEnum { + /** + * POLICY_WARN = 0; + */ + POLICY_WARN(0), + /** + * POLICY_IGNORE = 1; + */ + POLICY_IGNORE(1), + /** + * POLICY_FAIL = 2; + */ + POLICY_FAIL(2), + UNRECOGNIZED(-1), + ; + + /** + * POLICY_WARN = 0; + */ + public static final int POLICY_WARN_VALUE = 0; + /** + * POLICY_IGNORE = 1; + */ + public static final int POLICY_IGNORE_VALUE = 1; + /** + * POLICY_FAIL = 2; + */ + public static final int POLICY_FAIL_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 ExternalStatePolicy 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 ExternalStatePolicy forNumber(int value) { + switch (value) { + case 0: return POLICY_WARN; + case 1: return POLICY_IGNORE; + case 2: return POLICY_FAIL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ExternalStatePolicy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExternalStatePolicy findValueByNumber(int number) { + return ExternalStatePolicy.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 org.tensorflow.proto.data.DatasetOptions.getDescriptor().getEnumTypes().get(1); + } + + private static final ExternalStatePolicy[] VALUES = values(); + + public static ExternalStatePolicy 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 ExternalStatePolicy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:tensorflow.data.ExternalStatePolicy) + } + + public interface AutotuneOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.data.AutotuneOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * bool enabled = 1; + * @return Whether the enabled field is set. + */ + boolean hasEnabled(); + /** + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); + + /** + * int32 cpu_budget = 2; + * @return Whether the cpuBudget field is set. + */ + boolean hasCpuBudget(); + /** + * int32 cpu_budget = 2; + * @return The cpuBudget. + */ + int getCpuBudget(); + + /** + * int64 ram_budget = 3; + * @return Whether the ramBudget field is set. + */ + boolean hasRamBudget(); + /** + * int64 ram_budget = 3; + * @return The ramBudget. + */ + long getRamBudget(); + + /** + * .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; + * @return Whether the autotuneAlgorithm field is set. + */ + boolean hasAutotuneAlgorithm(); + /** + * .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; + * @return The enum numeric value on the wire for autotuneAlgorithm. + */ + int getAutotuneAlgorithmValue(); + /** + * .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; + * @return The autotuneAlgorithm. + */ + org.tensorflow.proto.data.model.Model.AutotuneAlgorithm getAutotuneAlgorithm(); + + public org.tensorflow.proto.data.DatasetOptions.AutotuneOptions.OptionalEnabledCase getOptionalEnabledCase(); + + public org.tensorflow.proto.data.DatasetOptions.AutotuneOptions.OptionalCpuBudgetCase getOptionalCpuBudgetCase(); + + public org.tensorflow.proto.data.DatasetOptions.AutotuneOptions.OptionalRamBudgetCase getOptionalRamBudgetCase(); + + public org.tensorflow.proto.data.DatasetOptions.AutotuneOptions.OptionalAutotuneAlgorithmCase getOptionalAutotuneAlgorithmCase(); + } + /** + *
+   * next: 5
+   * 
+ * + * Protobuf type {@code tensorflow.data.AutotuneOptions} + */ + public static final class AutotuneOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.data.AutotuneOptions) + AutotuneOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutotuneOptions.newBuilder() to construct. + private AutotuneOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AutotuneOptions() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AutotuneOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_AutotuneOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_AutotuneOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.DatasetOptions.AutotuneOptions.class, org.tensorflow.proto.data.DatasetOptions.AutotuneOptions.Builder.class); + } + + private int optionalEnabledCase_ = 0; + private java.lang.Object optionalEnabled_; + public enum OptionalEnabledCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ENABLED(1), + OPTIONALENABLED_NOT_SET(0); + private final int value; + private OptionalEnabledCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalEnabledCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalEnabledCase forNumber(int value) { + switch (value) { + case 1: return ENABLED; + case 0: return OPTIONALENABLED_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalEnabledCase + getOptionalEnabledCase() { + return OptionalEnabledCase.forNumber( + optionalEnabledCase_); + } + + private int optionalCpuBudgetCase_ = 0; + private java.lang.Object optionalCpuBudget_; + public enum OptionalCpuBudgetCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CPU_BUDGET(2), + OPTIONALCPUBUDGET_NOT_SET(0); + private final int value; + private OptionalCpuBudgetCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalCpuBudgetCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalCpuBudgetCase forNumber(int value) { + switch (value) { + case 2: return CPU_BUDGET; + case 0: return OPTIONALCPUBUDGET_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalCpuBudgetCase + getOptionalCpuBudgetCase() { + return OptionalCpuBudgetCase.forNumber( + optionalCpuBudgetCase_); + } + + private int optionalRamBudgetCase_ = 0; + private java.lang.Object optionalRamBudget_; + public enum OptionalRamBudgetCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + RAM_BUDGET(3), + OPTIONALRAMBUDGET_NOT_SET(0); + private final int value; + private OptionalRamBudgetCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalRamBudgetCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalRamBudgetCase forNumber(int value) { + switch (value) { + case 3: return RAM_BUDGET; + case 0: return OPTIONALRAMBUDGET_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalRamBudgetCase + getOptionalRamBudgetCase() { + return OptionalRamBudgetCase.forNumber( + optionalRamBudgetCase_); + } + + private int optionalAutotuneAlgorithmCase_ = 0; + private java.lang.Object optionalAutotuneAlgorithm_; + public enum OptionalAutotuneAlgorithmCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AUTOTUNE_ALGORITHM(4), + OPTIONALAUTOTUNEALGORITHM_NOT_SET(0); + private final int value; + private OptionalAutotuneAlgorithmCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalAutotuneAlgorithmCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalAutotuneAlgorithmCase forNumber(int value) { + switch (value) { + case 4: return AUTOTUNE_ALGORITHM; + case 0: return OPTIONALAUTOTUNEALGORITHM_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalAutotuneAlgorithmCase + getOptionalAutotuneAlgorithmCase() { + return OptionalAutotuneAlgorithmCase.forNumber( + optionalAutotuneAlgorithmCase_); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + /** + * bool enabled = 1; + * @return Whether the enabled field is set. + */ + @java.lang.Override + public boolean hasEnabled() { + return optionalEnabledCase_ == 1; + } + /** + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + if (optionalEnabledCase_ == 1) { + return (java.lang.Boolean) optionalEnabled_; + } + return false; + } + + public static final int CPU_BUDGET_FIELD_NUMBER = 2; + /** + * int32 cpu_budget = 2; + * @return Whether the cpuBudget field is set. + */ + @java.lang.Override + public boolean hasCpuBudget() { + return optionalCpuBudgetCase_ == 2; + } + /** + * int32 cpu_budget = 2; + * @return The cpuBudget. + */ + @java.lang.Override + public int getCpuBudget() { + if (optionalCpuBudgetCase_ == 2) { + return (java.lang.Integer) optionalCpuBudget_; + } + return 0; + } + + public static final int RAM_BUDGET_FIELD_NUMBER = 3; + /** + * int64 ram_budget = 3; + * @return Whether the ramBudget field is set. + */ + @java.lang.Override + public boolean hasRamBudget() { + return optionalRamBudgetCase_ == 3; + } + /** + * int64 ram_budget = 3; + * @return The ramBudget. + */ + @java.lang.Override + public long getRamBudget() { + if (optionalRamBudgetCase_ == 3) { + return (java.lang.Long) optionalRamBudget_; + } + return 0L; + } + + public static final int AUTOTUNE_ALGORITHM_FIELD_NUMBER = 4; + /** + * .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; + * @return Whether the autotuneAlgorithm field is set. + */ + public boolean hasAutotuneAlgorithm() { + return optionalAutotuneAlgorithmCase_ == 4; + } + /** + * .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; + * @return The enum numeric value on the wire for autotuneAlgorithm. + */ + public int getAutotuneAlgorithmValue() { + if (optionalAutotuneAlgorithmCase_ == 4) { + return (java.lang.Integer) optionalAutotuneAlgorithm_; + } + return 0; + } + /** + * .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; + * @return The autotuneAlgorithm. + */ + public org.tensorflow.proto.data.model.Model.AutotuneAlgorithm getAutotuneAlgorithm() { + if (optionalAutotuneAlgorithmCase_ == 4) { + @SuppressWarnings("deprecation") + org.tensorflow.proto.data.model.Model.AutotuneAlgorithm result = org.tensorflow.proto.data.model.Model.AutotuneAlgorithm.valueOf( + (java.lang.Integer) optionalAutotuneAlgorithm_); + return result == null ? org.tensorflow.proto.data.model.Model.AutotuneAlgorithm.UNRECOGNIZED : result; + } + return org.tensorflow.proto.data.model.Model.AutotuneAlgorithm.DEFAULT; + } + + 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 (optionalEnabledCase_ == 1) { + output.writeBool( + 1, (boolean)((java.lang.Boolean) optionalEnabled_)); + } + if (optionalCpuBudgetCase_ == 2) { + output.writeInt32( + 2, (int)((java.lang.Integer) optionalCpuBudget_)); + } + if (optionalRamBudgetCase_ == 3) { + output.writeInt64( + 3, (long)((java.lang.Long) optionalRamBudget_)); + } + if (optionalAutotuneAlgorithmCase_ == 4) { + output.writeEnum(4, ((java.lang.Integer) optionalAutotuneAlgorithm_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (optionalEnabledCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 1, (boolean)((java.lang.Boolean) optionalEnabled_)); + } + if (optionalCpuBudgetCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 2, (int)((java.lang.Integer) optionalCpuBudget_)); + } + if (optionalRamBudgetCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 3, (long)((java.lang.Long) optionalRamBudget_)); + } + if (optionalAutotuneAlgorithmCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, ((java.lang.Integer) optionalAutotuneAlgorithm_)); + } + 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 org.tensorflow.proto.data.DatasetOptions.AutotuneOptions)) { + return super.equals(obj); + } + org.tensorflow.proto.data.DatasetOptions.AutotuneOptions other = (org.tensorflow.proto.data.DatasetOptions.AutotuneOptions) obj; + + if (!getOptionalEnabledCase().equals(other.getOptionalEnabledCase())) return false; + switch (optionalEnabledCase_) { + case 1: + if (getEnabled() + != other.getEnabled()) return false; + break; + case 0: + default: + } + if (!getOptionalCpuBudgetCase().equals(other.getOptionalCpuBudgetCase())) return false; + switch (optionalCpuBudgetCase_) { + case 2: + if (getCpuBudget() + != other.getCpuBudget()) return false; + break; + case 0: + default: + } + if (!getOptionalRamBudgetCase().equals(other.getOptionalRamBudgetCase())) return false; + switch (optionalRamBudgetCase_) { + case 3: + if (getRamBudget() + != other.getRamBudget()) return false; + break; + case 0: + default: + } + if (!getOptionalAutotuneAlgorithmCase().equals(other.getOptionalAutotuneAlgorithmCase())) return false; + switch (optionalAutotuneAlgorithmCase_) { + case 4: + if (getAutotuneAlgorithmValue() + != other.getAutotuneAlgorithmValue()) return false; + break; + case 0: + default: + } + 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(); + switch (optionalEnabledCase_) { + case 1: + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + break; + case 0: + default: + } + switch (optionalCpuBudgetCase_) { + case 2: + hash = (37 * hash) + CPU_BUDGET_FIELD_NUMBER; + hash = (53 * hash) + getCpuBudget(); + break; + case 0: + default: + } + switch (optionalRamBudgetCase_) { + case 3: + hash = (37 * hash) + RAM_BUDGET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRamBudget()); + break; + case 0: + default: + } + switch (optionalAutotuneAlgorithmCase_) { + case 4: + hash = (37 * hash) + AUTOTUNE_ALGORITHM_FIELD_NUMBER; + hash = (53 * hash) + getAutotuneAlgorithmValue(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.data.DatasetOptions.AutotuneOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.DatasetOptions.AutotuneOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.DatasetOptions.AutotuneOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.DatasetOptions.AutotuneOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.DatasetOptions.AutotuneOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.DatasetOptions.AutotuneOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.DatasetOptions.AutotuneOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.DatasetOptions.AutotuneOptions 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 org.tensorflow.proto.data.DatasetOptions.AutotuneOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.DatasetOptions.AutotuneOptions 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 org.tensorflow.proto.data.DatasetOptions.AutotuneOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.DatasetOptions.AutotuneOptions 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(org.tensorflow.proto.data.DatasetOptions.AutotuneOptions 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; + } + /** + *
+     * next: 5
+     * 
+ * + * Protobuf type {@code tensorflow.data.AutotuneOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.data.AutotuneOptions) + org.tensorflow.proto.data.DatasetOptions.AutotuneOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_AutotuneOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_AutotuneOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.DatasetOptions.AutotuneOptions.class, org.tensorflow.proto.data.DatasetOptions.AutotuneOptions.Builder.class); + } + + // Construct using org.tensorflow.proto.data.DatasetOptions.AutotuneOptions.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + optionalEnabledCase_ = 0; + optionalEnabled_ = null; + optionalCpuBudgetCase_ = 0; + optionalCpuBudget_ = null; + optionalRamBudgetCase_ = 0; + optionalRamBudget_ = null; + optionalAutotuneAlgorithmCase_ = 0; + optionalAutotuneAlgorithm_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_AutotuneOptions_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.AutotuneOptions getDefaultInstanceForType() { + return org.tensorflow.proto.data.DatasetOptions.AutotuneOptions.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.AutotuneOptions build() { + org.tensorflow.proto.data.DatasetOptions.AutotuneOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.AutotuneOptions buildPartial() { + org.tensorflow.proto.data.DatasetOptions.AutotuneOptions result = new org.tensorflow.proto.data.DatasetOptions.AutotuneOptions(this); + if (optionalEnabledCase_ == 1) { + result.optionalEnabled_ = optionalEnabled_; + } + if (optionalCpuBudgetCase_ == 2) { + result.optionalCpuBudget_ = optionalCpuBudget_; + } + if (optionalRamBudgetCase_ == 3) { + result.optionalRamBudget_ = optionalRamBudget_; + } + if (optionalAutotuneAlgorithmCase_ == 4) { + result.optionalAutotuneAlgorithm_ = optionalAutotuneAlgorithm_; + } + result.optionalEnabledCase_ = optionalEnabledCase_; + result.optionalCpuBudgetCase_ = optionalCpuBudgetCase_; + result.optionalRamBudgetCase_ = optionalRamBudgetCase_; + result.optionalAutotuneAlgorithmCase_ = optionalAutotuneAlgorithmCase_; + 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 org.tensorflow.proto.data.DatasetOptions.AutotuneOptions) { + return mergeFrom((org.tensorflow.proto.data.DatasetOptions.AutotuneOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.data.DatasetOptions.AutotuneOptions other) { + if (other == org.tensorflow.proto.data.DatasetOptions.AutotuneOptions.getDefaultInstance()) return this; + switch (other.getOptionalEnabledCase()) { + case ENABLED: { + setEnabled(other.getEnabled()); + break; + } + case OPTIONALENABLED_NOT_SET: { + break; + } + } + switch (other.getOptionalCpuBudgetCase()) { + case CPU_BUDGET: { + setCpuBudget(other.getCpuBudget()); + break; + } + case OPTIONALCPUBUDGET_NOT_SET: { + break; + } + } + switch (other.getOptionalRamBudgetCase()) { + case RAM_BUDGET: { + setRamBudget(other.getRamBudget()); + break; + } + case OPTIONALRAMBUDGET_NOT_SET: { + break; + } + } + switch (other.getOptionalAutotuneAlgorithmCase()) { + case AUTOTUNE_ALGORITHM: { + setAutotuneAlgorithmValue(other.getAutotuneAlgorithmValue()); + break; + } + case OPTIONALAUTOTUNEALGORITHM_NOT_SET: { + break; + } + } + 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: { + optionalEnabled_ = input.readBool(); + optionalEnabledCase_ = 1; + break; + } // case 8 + case 16: { + optionalCpuBudget_ = input.readInt32(); + optionalCpuBudgetCase_ = 2; + break; + } // case 16 + case 24: { + optionalRamBudget_ = input.readInt64(); + optionalRamBudgetCase_ = 3; + break; + } // case 24 + case 32: { + int rawValue = input.readEnum(); + optionalAutotuneAlgorithmCase_ = 4; + optionalAutotuneAlgorithm_ = rawValue; + break; + } // case 32 + 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 optionalEnabledCase_ = 0; + private java.lang.Object optionalEnabled_; + public OptionalEnabledCase + getOptionalEnabledCase() { + return OptionalEnabledCase.forNumber( + optionalEnabledCase_); + } + + public Builder clearOptionalEnabled() { + optionalEnabledCase_ = 0; + optionalEnabled_ = null; + onChanged(); + return this; + } + + private int optionalCpuBudgetCase_ = 0; + private java.lang.Object optionalCpuBudget_; + public OptionalCpuBudgetCase + getOptionalCpuBudgetCase() { + return OptionalCpuBudgetCase.forNumber( + optionalCpuBudgetCase_); + } + + public Builder clearOptionalCpuBudget() { + optionalCpuBudgetCase_ = 0; + optionalCpuBudget_ = null; + onChanged(); + return this; + } + + private int optionalRamBudgetCase_ = 0; + private java.lang.Object optionalRamBudget_; + public OptionalRamBudgetCase + getOptionalRamBudgetCase() { + return OptionalRamBudgetCase.forNumber( + optionalRamBudgetCase_); + } + + public Builder clearOptionalRamBudget() { + optionalRamBudgetCase_ = 0; + optionalRamBudget_ = null; + onChanged(); + return this; + } + + private int optionalAutotuneAlgorithmCase_ = 0; + private java.lang.Object optionalAutotuneAlgorithm_; + public OptionalAutotuneAlgorithmCase + getOptionalAutotuneAlgorithmCase() { + return OptionalAutotuneAlgorithmCase.forNumber( + optionalAutotuneAlgorithmCase_); + } + + public Builder clearOptionalAutotuneAlgorithm() { + optionalAutotuneAlgorithmCase_ = 0; + optionalAutotuneAlgorithm_ = null; + onChanged(); + return this; + } + + + /** + * bool enabled = 1; + * @return Whether the enabled field is set. + */ + public boolean hasEnabled() { + return optionalEnabledCase_ == 1; + } + /** + * bool enabled = 1; + * @return The enabled. + */ + public boolean getEnabled() { + if (optionalEnabledCase_ == 1) { + return (java.lang.Boolean) optionalEnabled_; + } + return false; + } + /** + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + optionalEnabledCase_ = 1; + optionalEnabled_ = value; + onChanged(); + return this; + } + /** + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + if (optionalEnabledCase_ == 1) { + optionalEnabledCase_ = 0; + optionalEnabled_ = null; + onChanged(); + } + return this; + } + + /** + * int32 cpu_budget = 2; + * @return Whether the cpuBudget field is set. + */ + public boolean hasCpuBudget() { + return optionalCpuBudgetCase_ == 2; + } + /** + * int32 cpu_budget = 2; + * @return The cpuBudget. + */ + public int getCpuBudget() { + if (optionalCpuBudgetCase_ == 2) { + return (java.lang.Integer) optionalCpuBudget_; + } + return 0; + } + /** + * int32 cpu_budget = 2; + * @param value The cpuBudget to set. + * @return This builder for chaining. + */ + public Builder setCpuBudget(int value) { + optionalCpuBudgetCase_ = 2; + optionalCpuBudget_ = value; + onChanged(); + return this; + } + /** + * int32 cpu_budget = 2; + * @return This builder for chaining. + */ + public Builder clearCpuBudget() { + if (optionalCpuBudgetCase_ == 2) { + optionalCpuBudgetCase_ = 0; + optionalCpuBudget_ = null; + onChanged(); + } + return this; + } + + /** + * int64 ram_budget = 3; + * @return Whether the ramBudget field is set. + */ + public boolean hasRamBudget() { + return optionalRamBudgetCase_ == 3; + } + /** + * int64 ram_budget = 3; + * @return The ramBudget. + */ + public long getRamBudget() { + if (optionalRamBudgetCase_ == 3) { + return (java.lang.Long) optionalRamBudget_; + } + return 0L; + } + /** + * int64 ram_budget = 3; + * @param value The ramBudget to set. + * @return This builder for chaining. + */ + public Builder setRamBudget(long value) { + optionalRamBudgetCase_ = 3; + optionalRamBudget_ = value; + onChanged(); + return this; + } + /** + * int64 ram_budget = 3; + * @return This builder for chaining. + */ + public Builder clearRamBudget() { + if (optionalRamBudgetCase_ == 3) { + optionalRamBudgetCase_ = 0; + optionalRamBudget_ = null; + onChanged(); + } + return this; + } + + /** + * .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; + * @return Whether the autotuneAlgorithm field is set. + */ + @java.lang.Override + public boolean hasAutotuneAlgorithm() { + return optionalAutotuneAlgorithmCase_ == 4; + } + /** + * .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; + * @return The enum numeric value on the wire for autotuneAlgorithm. + */ + @java.lang.Override + public int getAutotuneAlgorithmValue() { + if (optionalAutotuneAlgorithmCase_ == 4) { + return ((java.lang.Integer) optionalAutotuneAlgorithm_).intValue(); + } + return 0; + } + /** + * .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; + * @param value The enum numeric value on the wire for autotuneAlgorithm to set. + * @return This builder for chaining. + */ + public Builder setAutotuneAlgorithmValue(int value) { + optionalAutotuneAlgorithmCase_ = 4; + optionalAutotuneAlgorithm_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; + * @return The autotuneAlgorithm. + */ + @java.lang.Override + public org.tensorflow.proto.data.model.Model.AutotuneAlgorithm getAutotuneAlgorithm() { + if (optionalAutotuneAlgorithmCase_ == 4) { + @SuppressWarnings("deprecation") + org.tensorflow.proto.data.model.Model.AutotuneAlgorithm result = org.tensorflow.proto.data.model.Model.AutotuneAlgorithm.valueOf( + (java.lang.Integer) optionalAutotuneAlgorithm_); + return result == null ? org.tensorflow.proto.data.model.Model.AutotuneAlgorithm.UNRECOGNIZED : result; + } + return org.tensorflow.proto.data.model.Model.AutotuneAlgorithm.DEFAULT; + } + /** + * .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; + * @param value The autotuneAlgorithm to set. + * @return This builder for chaining. + */ + public Builder setAutotuneAlgorithm(org.tensorflow.proto.data.model.Model.AutotuneAlgorithm value) { + if (value == null) { + throw new NullPointerException(); + } + optionalAutotuneAlgorithmCase_ = 4; + optionalAutotuneAlgorithm_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.data.model.AutotuneAlgorithm autotune_algorithm = 4; + * @return This builder for chaining. + */ + public Builder clearAutotuneAlgorithm() { + if (optionalAutotuneAlgorithmCase_ == 4) { + optionalAutotuneAlgorithmCase_ = 0; + optionalAutotuneAlgorithm_ = null; + 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:tensorflow.data.AutotuneOptions) + } + + // @@protoc_insertion_point(class_scope:tensorflow.data.AutotuneOptions) + private static final org.tensorflow.proto.data.DatasetOptions.AutotuneOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.data.DatasetOptions.AutotuneOptions(); + } + + public static org.tensorflow.proto.data.DatasetOptions.AutotuneOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutotuneOptions 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 org.tensorflow.proto.data.DatasetOptions.AutotuneOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CardinalityOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.data.CardinalityOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * .tensorflow.data.CardinalityOptions.ComputeLevel compute_level = 1; + * @return The enum numeric value on the wire for computeLevel. + */ + int getComputeLevelValue(); + /** + * .tensorflow.data.CardinalityOptions.ComputeLevel compute_level = 1; + * @return The computeLevel. + */ + org.tensorflow.proto.data.DatasetOptions.CardinalityOptions.ComputeLevel getComputeLevel(); + } + /** + *
+   * next: 2
+   * 
+ * + * Protobuf type {@code tensorflow.data.CardinalityOptions} + */ + public static final class CardinalityOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.data.CardinalityOptions) + CardinalityOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use CardinalityOptions.newBuilder() to construct. + private CardinalityOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CardinalityOptions() { + computeLevel_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CardinalityOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_CardinalityOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_CardinalityOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.DatasetOptions.CardinalityOptions.class, org.tensorflow.proto.data.DatasetOptions.CardinalityOptions.Builder.class); + } + + /** + * Protobuf enum {@code tensorflow.data.CardinalityOptions.ComputeLevel} + */ + public enum ComputeLevel + implements com.google.protobuf.ProtocolMessageEnum { + /** + * CARDINALITY_COMPUTE_UNSPECIFIED = 0; + */ + CARDINALITY_COMPUTE_UNSPECIFIED(0), + /** + *
+       * Cardinality will only be computed if it can be determined in a cheap
+       * manner (ie. without reading from file sources). If the cardinality would
+       * be nontrivial to compute, Cardinality() will return UNKNOWN_CARDINALITY.
+       * 
+ * + * CARDINALITY_COMPUTE_LOW = 1; + */ + CARDINALITY_COMPUTE_LOW(1), + /** + *
+       * Moderate effort will be made to determine cardinality, such as reading
+       * index data from source files. If significant work is needed to compute
+       * cardinality (e.g. reading entire source file contents or executing user
+       * defined functions), Cardinality() will return UNKNOWN_CARDINALITY.
+       * 
+ * + * CARDINALITY_COMPUTE_MODERATE = 2; + */ + CARDINALITY_COMPUTE_MODERATE(2), + UNRECOGNIZED(-1), + ; + + /** + * CARDINALITY_COMPUTE_UNSPECIFIED = 0; + */ + public static final int CARDINALITY_COMPUTE_UNSPECIFIED_VALUE = 0; + /** + *
+       * Cardinality will only be computed if it can be determined in a cheap
+       * manner (ie. without reading from file sources). If the cardinality would
+       * be nontrivial to compute, Cardinality() will return UNKNOWN_CARDINALITY.
+       * 
+ * + * CARDINALITY_COMPUTE_LOW = 1; + */ + public static final int CARDINALITY_COMPUTE_LOW_VALUE = 1; + /** + *
+       * Moderate effort will be made to determine cardinality, such as reading
+       * index data from source files. If significant work is needed to compute
+       * cardinality (e.g. reading entire source file contents or executing user
+       * defined functions), Cardinality() will return UNKNOWN_CARDINALITY.
+       * 
+ * + * CARDINALITY_COMPUTE_MODERATE = 2; + */ + public static final int CARDINALITY_COMPUTE_MODERATE_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 ComputeLevel 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 ComputeLevel forNumber(int value) { + switch (value) { + case 0: return CARDINALITY_COMPUTE_UNSPECIFIED; + case 1: return CARDINALITY_COMPUTE_LOW; + case 2: return CARDINALITY_COMPUTE_MODERATE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ComputeLevel> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ComputeLevel findValueByNumber(int number) { + return ComputeLevel.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 org.tensorflow.proto.data.DatasetOptions.CardinalityOptions.getDescriptor().getEnumTypes().get(0); + } + + private static final ComputeLevel[] VALUES = values(); + + public static ComputeLevel 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 ComputeLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:tensorflow.data.CardinalityOptions.ComputeLevel) + } + + public static final int COMPUTE_LEVEL_FIELD_NUMBER = 1; + private int computeLevel_; + /** + * .tensorflow.data.CardinalityOptions.ComputeLevel compute_level = 1; + * @return The enum numeric value on the wire for computeLevel. + */ + @java.lang.Override public int getComputeLevelValue() { + return computeLevel_; + } + /** + * .tensorflow.data.CardinalityOptions.ComputeLevel compute_level = 1; + * @return The computeLevel. + */ + @java.lang.Override public org.tensorflow.proto.data.DatasetOptions.CardinalityOptions.ComputeLevel getComputeLevel() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.data.DatasetOptions.CardinalityOptions.ComputeLevel result = org.tensorflow.proto.data.DatasetOptions.CardinalityOptions.ComputeLevel.valueOf(computeLevel_); + return result == null ? org.tensorflow.proto.data.DatasetOptions.CardinalityOptions.ComputeLevel.UNRECOGNIZED : result; + } + + 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 (computeLevel_ != org.tensorflow.proto.data.DatasetOptions.CardinalityOptions.ComputeLevel.CARDINALITY_COMPUTE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, computeLevel_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (computeLevel_ != org.tensorflow.proto.data.DatasetOptions.CardinalityOptions.ComputeLevel.CARDINALITY_COMPUTE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, computeLevel_); + } + 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 org.tensorflow.proto.data.DatasetOptions.CardinalityOptions)) { + return super.equals(obj); + } + org.tensorflow.proto.data.DatasetOptions.CardinalityOptions other = (org.tensorflow.proto.data.DatasetOptions.CardinalityOptions) obj; + + if (computeLevel_ != other.computeLevel_) 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) + COMPUTE_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + computeLevel_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.data.DatasetOptions.CardinalityOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.DatasetOptions.CardinalityOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.DatasetOptions.CardinalityOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.DatasetOptions.CardinalityOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.DatasetOptions.CardinalityOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.DatasetOptions.CardinalityOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.DatasetOptions.CardinalityOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.DatasetOptions.CardinalityOptions 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 org.tensorflow.proto.data.DatasetOptions.CardinalityOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.DatasetOptions.CardinalityOptions 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 org.tensorflow.proto.data.DatasetOptions.CardinalityOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.DatasetOptions.CardinalityOptions 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(org.tensorflow.proto.data.DatasetOptions.CardinalityOptions 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; + } + /** + *
+     * next: 2
+     * 
+ * + * Protobuf type {@code tensorflow.data.CardinalityOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.data.CardinalityOptions) + org.tensorflow.proto.data.DatasetOptions.CardinalityOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_CardinalityOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_CardinalityOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.DatasetOptions.CardinalityOptions.class, org.tensorflow.proto.data.DatasetOptions.CardinalityOptions.Builder.class); + } + + // Construct using org.tensorflow.proto.data.DatasetOptions.CardinalityOptions.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + computeLevel_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_CardinalityOptions_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.CardinalityOptions getDefaultInstanceForType() { + return org.tensorflow.proto.data.DatasetOptions.CardinalityOptions.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.CardinalityOptions build() { + org.tensorflow.proto.data.DatasetOptions.CardinalityOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.CardinalityOptions buildPartial() { + org.tensorflow.proto.data.DatasetOptions.CardinalityOptions result = new org.tensorflow.proto.data.DatasetOptions.CardinalityOptions(this); + result.computeLevel_ = computeLevel_; + 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 org.tensorflow.proto.data.DatasetOptions.CardinalityOptions) { + return mergeFrom((org.tensorflow.proto.data.DatasetOptions.CardinalityOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.data.DatasetOptions.CardinalityOptions other) { + if (other == org.tensorflow.proto.data.DatasetOptions.CardinalityOptions.getDefaultInstance()) return this; + if (other.computeLevel_ != 0) { + setComputeLevelValue(other.getComputeLevelValue()); + } + 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: { + computeLevel_ = input.readEnum(); + + break; + } // case 8 + 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 computeLevel_ = 0; + /** + * .tensorflow.data.CardinalityOptions.ComputeLevel compute_level = 1; + * @return The enum numeric value on the wire for computeLevel. + */ + @java.lang.Override public int getComputeLevelValue() { + return computeLevel_; + } + /** + * .tensorflow.data.CardinalityOptions.ComputeLevel compute_level = 1; + * @param value The enum numeric value on the wire for computeLevel to set. + * @return This builder for chaining. + */ + public Builder setComputeLevelValue(int value) { + + computeLevel_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.data.CardinalityOptions.ComputeLevel compute_level = 1; + * @return The computeLevel. + */ + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.CardinalityOptions.ComputeLevel getComputeLevel() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.data.DatasetOptions.CardinalityOptions.ComputeLevel result = org.tensorflow.proto.data.DatasetOptions.CardinalityOptions.ComputeLevel.valueOf(computeLevel_); + return result == null ? org.tensorflow.proto.data.DatasetOptions.CardinalityOptions.ComputeLevel.UNRECOGNIZED : result; + } + /** + * .tensorflow.data.CardinalityOptions.ComputeLevel compute_level = 1; + * @param value The computeLevel to set. + * @return This builder for chaining. + */ + public Builder setComputeLevel(org.tensorflow.proto.data.DatasetOptions.CardinalityOptions.ComputeLevel value) { + if (value == null) { + throw new NullPointerException(); + } + + computeLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.data.CardinalityOptions.ComputeLevel compute_level = 1; + * @return This builder for chaining. + */ + public Builder clearComputeLevel() { + + computeLevel_ = 0; + 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:tensorflow.data.CardinalityOptions) + } + + // @@protoc_insertion_point(class_scope:tensorflow.data.CardinalityOptions) + private static final org.tensorflow.proto.data.DatasetOptions.CardinalityOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.data.DatasetOptions.CardinalityOptions(); + } + + public static org.tensorflow.proto.data.DatasetOptions.CardinalityOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CardinalityOptions 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 org.tensorflow.proto.data.DatasetOptions.CardinalityOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DistributeOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.data.DistributeOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * .tensorflow.data.AutoShardPolicy auto_shard_policy = 1; + * @return The enum numeric value on the wire for autoShardPolicy. + */ + int getAutoShardPolicyValue(); + /** + * .tensorflow.data.AutoShardPolicy auto_shard_policy = 1; + * @return The autoShardPolicy. + */ + org.tensorflow.proto.data.DatasetOptions.AutoShardPolicy getAutoShardPolicy(); + + /** + * int32 num_devices = 2; + * @return Whether the numDevices field is set. + */ + boolean hasNumDevices(); + /** + * int32 num_devices = 2; + * @return The numDevices. + */ + int getNumDevices(); + + public org.tensorflow.proto.data.DatasetOptions.DistributeOptions.OptionalNumDevicesCase getOptionalNumDevicesCase(); + } + /** + *
+   * next: 3
+   * 
+ * + * Protobuf type {@code tensorflow.data.DistributeOptions} + */ + public static final class DistributeOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.data.DistributeOptions) + DistributeOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DistributeOptions.newBuilder() to construct. + private DistributeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DistributeOptions() { + autoShardPolicy_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DistributeOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_DistributeOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_DistributeOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.DatasetOptions.DistributeOptions.class, org.tensorflow.proto.data.DatasetOptions.DistributeOptions.Builder.class); + } + + private int optionalNumDevicesCase_ = 0; + private java.lang.Object optionalNumDevices_; + public enum OptionalNumDevicesCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + NUM_DEVICES(2), + OPTIONALNUMDEVICES_NOT_SET(0); + private final int value; + private OptionalNumDevicesCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalNumDevicesCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalNumDevicesCase forNumber(int value) { + switch (value) { + case 2: return NUM_DEVICES; + case 0: return OPTIONALNUMDEVICES_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalNumDevicesCase + getOptionalNumDevicesCase() { + return OptionalNumDevicesCase.forNumber( + optionalNumDevicesCase_); + } + + public static final int AUTO_SHARD_POLICY_FIELD_NUMBER = 1; + private int autoShardPolicy_; + /** + * .tensorflow.data.AutoShardPolicy auto_shard_policy = 1; + * @return The enum numeric value on the wire for autoShardPolicy. + */ + @java.lang.Override public int getAutoShardPolicyValue() { + return autoShardPolicy_; + } + /** + * .tensorflow.data.AutoShardPolicy auto_shard_policy = 1; + * @return The autoShardPolicy. + */ + @java.lang.Override public org.tensorflow.proto.data.DatasetOptions.AutoShardPolicy getAutoShardPolicy() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.data.DatasetOptions.AutoShardPolicy result = org.tensorflow.proto.data.DatasetOptions.AutoShardPolicy.valueOf(autoShardPolicy_); + return result == null ? org.tensorflow.proto.data.DatasetOptions.AutoShardPolicy.UNRECOGNIZED : result; + } + + public static final int NUM_DEVICES_FIELD_NUMBER = 2; + /** + * int32 num_devices = 2; + * @return Whether the numDevices field is set. + */ + @java.lang.Override + public boolean hasNumDevices() { + return optionalNumDevicesCase_ == 2; + } + /** + * int32 num_devices = 2; + * @return The numDevices. + */ + @java.lang.Override + public int getNumDevices() { + if (optionalNumDevicesCase_ == 2) { + return (java.lang.Integer) optionalNumDevices_; + } + return 0; + } + + 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 (autoShardPolicy_ != org.tensorflow.proto.data.DatasetOptions.AutoShardPolicy.AUTO.getNumber()) { + output.writeEnum(1, autoShardPolicy_); + } + if (optionalNumDevicesCase_ == 2) { + output.writeInt32( + 2, (int)((java.lang.Integer) optionalNumDevices_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (autoShardPolicy_ != org.tensorflow.proto.data.DatasetOptions.AutoShardPolicy.AUTO.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, autoShardPolicy_); + } + if (optionalNumDevicesCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 2, (int)((java.lang.Integer) optionalNumDevices_)); + } + 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 org.tensorflow.proto.data.DatasetOptions.DistributeOptions)) { + return super.equals(obj); + } + org.tensorflow.proto.data.DatasetOptions.DistributeOptions other = (org.tensorflow.proto.data.DatasetOptions.DistributeOptions) obj; + + if (autoShardPolicy_ != other.autoShardPolicy_) return false; + if (!getOptionalNumDevicesCase().equals(other.getOptionalNumDevicesCase())) return false; + switch (optionalNumDevicesCase_) { + case 2: + if (getNumDevices() + != other.getNumDevices()) return false; + break; + case 0: + default: + } + 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) + AUTO_SHARD_POLICY_FIELD_NUMBER; + hash = (53 * hash) + autoShardPolicy_; + switch (optionalNumDevicesCase_) { + case 2: + hash = (37 * hash) + NUM_DEVICES_FIELD_NUMBER; + hash = (53 * hash) + getNumDevices(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.data.DatasetOptions.DistributeOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.DatasetOptions.DistributeOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.DatasetOptions.DistributeOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.DatasetOptions.DistributeOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.DatasetOptions.DistributeOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.DatasetOptions.DistributeOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.DatasetOptions.DistributeOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.DatasetOptions.DistributeOptions 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 org.tensorflow.proto.data.DatasetOptions.DistributeOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.DatasetOptions.DistributeOptions 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 org.tensorflow.proto.data.DatasetOptions.DistributeOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.DatasetOptions.DistributeOptions 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(org.tensorflow.proto.data.DatasetOptions.DistributeOptions 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; + } + /** + *
+     * next: 3
+     * 
+ * + * Protobuf type {@code tensorflow.data.DistributeOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.data.DistributeOptions) + org.tensorflow.proto.data.DatasetOptions.DistributeOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_DistributeOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_DistributeOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.DatasetOptions.DistributeOptions.class, org.tensorflow.proto.data.DatasetOptions.DistributeOptions.Builder.class); + } + + // Construct using org.tensorflow.proto.data.DatasetOptions.DistributeOptions.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + autoShardPolicy_ = 0; + + optionalNumDevicesCase_ = 0; + optionalNumDevices_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_DistributeOptions_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.DistributeOptions getDefaultInstanceForType() { + return org.tensorflow.proto.data.DatasetOptions.DistributeOptions.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.DistributeOptions build() { + org.tensorflow.proto.data.DatasetOptions.DistributeOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.DistributeOptions buildPartial() { + org.tensorflow.proto.data.DatasetOptions.DistributeOptions result = new org.tensorflow.proto.data.DatasetOptions.DistributeOptions(this); + result.autoShardPolicy_ = autoShardPolicy_; + if (optionalNumDevicesCase_ == 2) { + result.optionalNumDevices_ = optionalNumDevices_; + } + result.optionalNumDevicesCase_ = optionalNumDevicesCase_; + 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 org.tensorflow.proto.data.DatasetOptions.DistributeOptions) { + return mergeFrom((org.tensorflow.proto.data.DatasetOptions.DistributeOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.data.DatasetOptions.DistributeOptions other) { + if (other == org.tensorflow.proto.data.DatasetOptions.DistributeOptions.getDefaultInstance()) return this; + if (other.autoShardPolicy_ != 0) { + setAutoShardPolicyValue(other.getAutoShardPolicyValue()); + } + switch (other.getOptionalNumDevicesCase()) { + case NUM_DEVICES: { + setNumDevices(other.getNumDevices()); + break; + } + case OPTIONALNUMDEVICES_NOT_SET: { + break; + } + } + 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: { + autoShardPolicy_ = input.readEnum(); + + break; + } // case 8 + case 16: { + optionalNumDevices_ = input.readInt32(); + optionalNumDevicesCase_ = 2; + break; + } // case 16 + 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 optionalNumDevicesCase_ = 0; + private java.lang.Object optionalNumDevices_; + public OptionalNumDevicesCase + getOptionalNumDevicesCase() { + return OptionalNumDevicesCase.forNumber( + optionalNumDevicesCase_); + } + + public Builder clearOptionalNumDevices() { + optionalNumDevicesCase_ = 0; + optionalNumDevices_ = null; + onChanged(); + return this; + } + + + private int autoShardPolicy_ = 0; + /** + * .tensorflow.data.AutoShardPolicy auto_shard_policy = 1; + * @return The enum numeric value on the wire for autoShardPolicy. + */ + @java.lang.Override public int getAutoShardPolicyValue() { + return autoShardPolicy_; + } + /** + * .tensorflow.data.AutoShardPolicy auto_shard_policy = 1; + * @param value The enum numeric value on the wire for autoShardPolicy to set. + * @return This builder for chaining. + */ + public Builder setAutoShardPolicyValue(int value) { + + autoShardPolicy_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.data.AutoShardPolicy auto_shard_policy = 1; + * @return The autoShardPolicy. + */ + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.AutoShardPolicy getAutoShardPolicy() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.data.DatasetOptions.AutoShardPolicy result = org.tensorflow.proto.data.DatasetOptions.AutoShardPolicy.valueOf(autoShardPolicy_); + return result == null ? org.tensorflow.proto.data.DatasetOptions.AutoShardPolicy.UNRECOGNIZED : result; + } + /** + * .tensorflow.data.AutoShardPolicy auto_shard_policy = 1; + * @param value The autoShardPolicy to set. + * @return This builder for chaining. + */ + public Builder setAutoShardPolicy(org.tensorflow.proto.data.DatasetOptions.AutoShardPolicy value) { + if (value == null) { + throw new NullPointerException(); + } + + autoShardPolicy_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.data.AutoShardPolicy auto_shard_policy = 1; + * @return This builder for chaining. + */ + public Builder clearAutoShardPolicy() { + + autoShardPolicy_ = 0; + onChanged(); + return this; + } + + /** + * int32 num_devices = 2; + * @return Whether the numDevices field is set. + */ + public boolean hasNumDevices() { + return optionalNumDevicesCase_ == 2; + } + /** + * int32 num_devices = 2; + * @return The numDevices. + */ + public int getNumDevices() { + if (optionalNumDevicesCase_ == 2) { + return (java.lang.Integer) optionalNumDevices_; + } + return 0; + } + /** + * int32 num_devices = 2; + * @param value The numDevices to set. + * @return This builder for chaining. + */ + public Builder setNumDevices(int value) { + optionalNumDevicesCase_ = 2; + optionalNumDevices_ = value; + onChanged(); + return this; + } + /** + * int32 num_devices = 2; + * @return This builder for chaining. + */ + public Builder clearNumDevices() { + if (optionalNumDevicesCase_ == 2) { + optionalNumDevicesCase_ = 0; + optionalNumDevices_ = null; + 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:tensorflow.data.DistributeOptions) + } + + // @@protoc_insertion_point(class_scope:tensorflow.data.DistributeOptions) + private static final org.tensorflow.proto.data.DatasetOptions.DistributeOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.data.DatasetOptions.DistributeOptions(); + } + + public static org.tensorflow.proto.data.DatasetOptions.DistributeOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistributeOptions 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 org.tensorflow.proto.data.DatasetOptions.DistributeOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OptimizationOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.data.OptimizationOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * bool apply_default_optimizations = 1; + * @return Whether the applyDefaultOptimizations field is set. + */ + boolean hasApplyDefaultOptimizations(); + /** + * bool apply_default_optimizations = 1; + * @return The applyDefaultOptimizations. + */ + boolean getApplyDefaultOptimizations(); + + /** + * bool filter_fusion = 6; + * @return Whether the filterFusion field is set. + */ + boolean hasFilterFusion(); + /** + * bool filter_fusion = 6; + * @return The filterFusion. + */ + boolean getFilterFusion(); + + /** + * bool map_and_batch_fusion = 9; + * @return Whether the mapAndBatchFusion field is set. + */ + boolean hasMapAndBatchFusion(); + /** + * bool map_and_batch_fusion = 9; + * @return The mapAndBatchFusion. + */ + boolean getMapAndBatchFusion(); + + /** + * bool map_and_filter_fusion = 10; + * @return Whether the mapAndFilterFusion field is set. + */ + boolean hasMapAndFilterFusion(); + /** + * bool map_and_filter_fusion = 10; + * @return The mapAndFilterFusion. + */ + boolean getMapAndFilterFusion(); + + /** + * bool map_fusion = 11; + * @return Whether the mapFusion field is set. + */ + boolean hasMapFusion(); + /** + * bool map_fusion = 11; + * @return The mapFusion. + */ + boolean getMapFusion(); + + /** + * bool map_parallelization = 12; + * @return Whether the mapParallelization field is set. + */ + boolean hasMapParallelization(); + /** + * bool map_parallelization = 12; + * @return The mapParallelization. + */ + boolean getMapParallelization(); + + /** + * bool noop_elimination = 14; + * @return Whether the noopElimination field is set. + */ + boolean hasNoopElimination(); + /** + * bool noop_elimination = 14; + * @return The noopElimination. + */ + boolean getNoopElimination(); + + /** + * bool parallel_batch = 15; + * @return Whether the parallelBatch field is set. + */ + boolean hasParallelBatch(); + /** + * bool parallel_batch = 15; + * @return The parallelBatch. + */ + boolean getParallelBatch(); + + /** + * bool shuffle_and_repeat_fusion = 17; + * @return Whether the shuffleAndRepeatFusion field is set. + */ + boolean hasShuffleAndRepeatFusion(); + /** + * bool shuffle_and_repeat_fusion = 17; + * @return The shuffleAndRepeatFusion. + */ + boolean getShuffleAndRepeatFusion(); + + /** + * bool filter_parallelization = 18; + * @return Whether the filterParallelization field is set. + */ + boolean hasFilterParallelization(); + /** + * bool filter_parallelization = 18; + * @return The filterParallelization. + */ + boolean getFilterParallelization(); + + /** + * bool inject_prefetch = 19; + * @return Whether the injectPrefetch field is set. + */ + boolean hasInjectPrefetch(); + /** + * bool inject_prefetch = 19; + * @return The injectPrefetch. + */ + boolean getInjectPrefetch(); + + /** + * bool warm_start = 20; + * @return Whether the warmStart field is set. + */ + boolean hasWarmStart(); + /** + * bool warm_start = 20; + * @return The warmStart. + */ + boolean getWarmStart(); + + public org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.OptionalApplyDefaultOptimizationsCase getOptionalApplyDefaultOptimizationsCase(); + + public org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.OptionalFilterFusionCase getOptionalFilterFusionCase(); + + public org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.OptionalMapAndBatchFusionCase getOptionalMapAndBatchFusionCase(); + + public org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.OptionalMapAndFilterFusionCase getOptionalMapAndFilterFusionCase(); + + public org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.OptionalMapFusionCase getOptionalMapFusionCase(); + + public org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.OptionalMapParallelizationCase getOptionalMapParallelizationCase(); + + public org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.OptionalNoopEliminationCase getOptionalNoopEliminationCase(); + + public org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.OptionalParallelBatchCase getOptionalParallelBatchCase(); + + public org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.OptionalShuffleAndRepeatFusionCase getOptionalShuffleAndRepeatFusionCase(); + + public org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.OptionalFilterParallelizationCase getOptionalFilterParallelizationCase(); + + public org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.OptionalInjectPrefetchCase getOptionalInjectPrefetchCase(); + + public org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.OptionalWarmStartCase getOptionalWarmStartCase(); + } + /** + *
+   * next: 21
+   * 
+ * + * Protobuf type {@code tensorflow.data.OptimizationOptions} + */ + public static final class OptimizationOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.data.OptimizationOptions) + OptimizationOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use OptimizationOptions.newBuilder() to construct. + private OptimizationOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OptimizationOptions() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OptimizationOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_OptimizationOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_OptimizationOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.class, org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.Builder.class); + } + + private int optionalApplyDefaultOptimizationsCase_ = 0; + private java.lang.Object optionalApplyDefaultOptimizations_; + public enum OptionalApplyDefaultOptimizationsCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + APPLY_DEFAULT_OPTIMIZATIONS(1), + OPTIONALAPPLYDEFAULTOPTIMIZATIONS_NOT_SET(0); + private final int value; + private OptionalApplyDefaultOptimizationsCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalApplyDefaultOptimizationsCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalApplyDefaultOptimizationsCase forNumber(int value) { + switch (value) { + case 1: return APPLY_DEFAULT_OPTIMIZATIONS; + case 0: return OPTIONALAPPLYDEFAULTOPTIMIZATIONS_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalApplyDefaultOptimizationsCase + getOptionalApplyDefaultOptimizationsCase() { + return OptionalApplyDefaultOptimizationsCase.forNumber( + optionalApplyDefaultOptimizationsCase_); + } + + private int optionalFilterFusionCase_ = 0; + private java.lang.Object optionalFilterFusion_; + public enum OptionalFilterFusionCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FILTER_FUSION(6), + OPTIONALFILTERFUSION_NOT_SET(0); + private final int value; + private OptionalFilterFusionCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalFilterFusionCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalFilterFusionCase forNumber(int value) { + switch (value) { + case 6: return FILTER_FUSION; + case 0: return OPTIONALFILTERFUSION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalFilterFusionCase + getOptionalFilterFusionCase() { + return OptionalFilterFusionCase.forNumber( + optionalFilterFusionCase_); + } + + private int optionalMapAndBatchFusionCase_ = 0; + private java.lang.Object optionalMapAndBatchFusion_; + public enum OptionalMapAndBatchFusionCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MAP_AND_BATCH_FUSION(9), + OPTIONALMAPANDBATCHFUSION_NOT_SET(0); + private final int value; + private OptionalMapAndBatchFusionCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalMapAndBatchFusionCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalMapAndBatchFusionCase forNumber(int value) { + switch (value) { + case 9: return MAP_AND_BATCH_FUSION; + case 0: return OPTIONALMAPANDBATCHFUSION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalMapAndBatchFusionCase + getOptionalMapAndBatchFusionCase() { + return OptionalMapAndBatchFusionCase.forNumber( + optionalMapAndBatchFusionCase_); + } + + private int optionalMapAndFilterFusionCase_ = 0; + private java.lang.Object optionalMapAndFilterFusion_; + public enum OptionalMapAndFilterFusionCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MAP_AND_FILTER_FUSION(10), + OPTIONALMAPANDFILTERFUSION_NOT_SET(0); + private final int value; + private OptionalMapAndFilterFusionCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalMapAndFilterFusionCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalMapAndFilterFusionCase forNumber(int value) { + switch (value) { + case 10: return MAP_AND_FILTER_FUSION; + case 0: return OPTIONALMAPANDFILTERFUSION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalMapAndFilterFusionCase + getOptionalMapAndFilterFusionCase() { + return OptionalMapAndFilterFusionCase.forNumber( + optionalMapAndFilterFusionCase_); + } + + private int optionalMapFusionCase_ = 0; + private java.lang.Object optionalMapFusion_; + public enum OptionalMapFusionCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MAP_FUSION(11), + OPTIONALMAPFUSION_NOT_SET(0); + private final int value; + private OptionalMapFusionCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalMapFusionCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalMapFusionCase forNumber(int value) { + switch (value) { + case 11: return MAP_FUSION; + case 0: return OPTIONALMAPFUSION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalMapFusionCase + getOptionalMapFusionCase() { + return OptionalMapFusionCase.forNumber( + optionalMapFusionCase_); + } + + private int optionalMapParallelizationCase_ = 0; + private java.lang.Object optionalMapParallelization_; + public enum OptionalMapParallelizationCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MAP_PARALLELIZATION(12), + OPTIONALMAPPARALLELIZATION_NOT_SET(0); + private final int value; + private OptionalMapParallelizationCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalMapParallelizationCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalMapParallelizationCase forNumber(int value) { + switch (value) { + case 12: return MAP_PARALLELIZATION; + case 0: return OPTIONALMAPPARALLELIZATION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalMapParallelizationCase + getOptionalMapParallelizationCase() { + return OptionalMapParallelizationCase.forNumber( + optionalMapParallelizationCase_); + } + + private int optionalNoopEliminationCase_ = 0; + private java.lang.Object optionalNoopElimination_; + public enum OptionalNoopEliminationCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + NOOP_ELIMINATION(14), + OPTIONALNOOPELIMINATION_NOT_SET(0); + private final int value; + private OptionalNoopEliminationCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalNoopEliminationCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalNoopEliminationCase forNumber(int value) { + switch (value) { + case 14: return NOOP_ELIMINATION; + case 0: return OPTIONALNOOPELIMINATION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalNoopEliminationCase + getOptionalNoopEliminationCase() { + return OptionalNoopEliminationCase.forNumber( + optionalNoopEliminationCase_); + } + + private int optionalParallelBatchCase_ = 0; + private java.lang.Object optionalParallelBatch_; + public enum OptionalParallelBatchCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PARALLEL_BATCH(15), + OPTIONALPARALLELBATCH_NOT_SET(0); + private final int value; + private OptionalParallelBatchCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalParallelBatchCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalParallelBatchCase forNumber(int value) { + switch (value) { + case 15: return PARALLEL_BATCH; + case 0: return OPTIONALPARALLELBATCH_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalParallelBatchCase + getOptionalParallelBatchCase() { + return OptionalParallelBatchCase.forNumber( + optionalParallelBatchCase_); + } + + private int optionalShuffleAndRepeatFusionCase_ = 0; + private java.lang.Object optionalShuffleAndRepeatFusion_; + public enum OptionalShuffleAndRepeatFusionCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SHUFFLE_AND_REPEAT_FUSION(17), + OPTIONALSHUFFLEANDREPEATFUSION_NOT_SET(0); + private final int value; + private OptionalShuffleAndRepeatFusionCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalShuffleAndRepeatFusionCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalShuffleAndRepeatFusionCase forNumber(int value) { + switch (value) { + case 17: return SHUFFLE_AND_REPEAT_FUSION; + case 0: return OPTIONALSHUFFLEANDREPEATFUSION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalShuffleAndRepeatFusionCase + getOptionalShuffleAndRepeatFusionCase() { + return OptionalShuffleAndRepeatFusionCase.forNumber( + optionalShuffleAndRepeatFusionCase_); + } + + private int optionalFilterParallelizationCase_ = 0; + private java.lang.Object optionalFilterParallelization_; + public enum OptionalFilterParallelizationCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FILTER_PARALLELIZATION(18), + OPTIONALFILTERPARALLELIZATION_NOT_SET(0); + private final int value; + private OptionalFilterParallelizationCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalFilterParallelizationCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalFilterParallelizationCase forNumber(int value) { + switch (value) { + case 18: return FILTER_PARALLELIZATION; + case 0: return OPTIONALFILTERPARALLELIZATION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalFilterParallelizationCase + getOptionalFilterParallelizationCase() { + return OptionalFilterParallelizationCase.forNumber( + optionalFilterParallelizationCase_); + } + + private int optionalInjectPrefetchCase_ = 0; + private java.lang.Object optionalInjectPrefetch_; + public enum OptionalInjectPrefetchCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INJECT_PREFETCH(19), + OPTIONALINJECTPREFETCH_NOT_SET(0); + private final int value; + private OptionalInjectPrefetchCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalInjectPrefetchCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalInjectPrefetchCase forNumber(int value) { + switch (value) { + case 19: return INJECT_PREFETCH; + case 0: return OPTIONALINJECTPREFETCH_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalInjectPrefetchCase + getOptionalInjectPrefetchCase() { + return OptionalInjectPrefetchCase.forNumber( + optionalInjectPrefetchCase_); + } + + private int optionalWarmStartCase_ = 0; + private java.lang.Object optionalWarmStart_; + public enum OptionalWarmStartCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + WARM_START(20), + OPTIONALWARMSTART_NOT_SET(0); + private final int value; + private OptionalWarmStartCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalWarmStartCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalWarmStartCase forNumber(int value) { + switch (value) { + case 20: return WARM_START; + case 0: return OPTIONALWARMSTART_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalWarmStartCase + getOptionalWarmStartCase() { + return OptionalWarmStartCase.forNumber( + optionalWarmStartCase_); + } + + public static final int APPLY_DEFAULT_OPTIMIZATIONS_FIELD_NUMBER = 1; + /** + * bool apply_default_optimizations = 1; + * @return Whether the applyDefaultOptimizations field is set. + */ + @java.lang.Override + public boolean hasApplyDefaultOptimizations() { + return optionalApplyDefaultOptimizationsCase_ == 1; + } + /** + * bool apply_default_optimizations = 1; + * @return The applyDefaultOptimizations. + */ + @java.lang.Override + public boolean getApplyDefaultOptimizations() { + if (optionalApplyDefaultOptimizationsCase_ == 1) { + return (java.lang.Boolean) optionalApplyDefaultOptimizations_; + } + return false; + } + + public static final int FILTER_FUSION_FIELD_NUMBER = 6; + /** + * bool filter_fusion = 6; + * @return Whether the filterFusion field is set. + */ + @java.lang.Override + public boolean hasFilterFusion() { + return optionalFilterFusionCase_ == 6; + } + /** + * bool filter_fusion = 6; + * @return The filterFusion. + */ + @java.lang.Override + public boolean getFilterFusion() { + if (optionalFilterFusionCase_ == 6) { + return (java.lang.Boolean) optionalFilterFusion_; + } + return false; + } + + public static final int MAP_AND_BATCH_FUSION_FIELD_NUMBER = 9; + /** + * bool map_and_batch_fusion = 9; + * @return Whether the mapAndBatchFusion field is set. + */ + @java.lang.Override + public boolean hasMapAndBatchFusion() { + return optionalMapAndBatchFusionCase_ == 9; + } + /** + * bool map_and_batch_fusion = 9; + * @return The mapAndBatchFusion. + */ + @java.lang.Override + public boolean getMapAndBatchFusion() { + if (optionalMapAndBatchFusionCase_ == 9) { + return (java.lang.Boolean) optionalMapAndBatchFusion_; + } + return false; + } + + public static final int MAP_AND_FILTER_FUSION_FIELD_NUMBER = 10; + /** + * bool map_and_filter_fusion = 10; + * @return Whether the mapAndFilterFusion field is set. + */ + @java.lang.Override + public boolean hasMapAndFilterFusion() { + return optionalMapAndFilterFusionCase_ == 10; + } + /** + * bool map_and_filter_fusion = 10; + * @return The mapAndFilterFusion. + */ + @java.lang.Override + public boolean getMapAndFilterFusion() { + if (optionalMapAndFilterFusionCase_ == 10) { + return (java.lang.Boolean) optionalMapAndFilterFusion_; + } + return false; + } + + public static final int MAP_FUSION_FIELD_NUMBER = 11; + /** + * bool map_fusion = 11; + * @return Whether the mapFusion field is set. + */ + @java.lang.Override + public boolean hasMapFusion() { + return optionalMapFusionCase_ == 11; + } + /** + * bool map_fusion = 11; + * @return The mapFusion. + */ + @java.lang.Override + public boolean getMapFusion() { + if (optionalMapFusionCase_ == 11) { + return (java.lang.Boolean) optionalMapFusion_; + } + return false; + } + + public static final int MAP_PARALLELIZATION_FIELD_NUMBER = 12; + /** + * bool map_parallelization = 12; + * @return Whether the mapParallelization field is set. + */ + @java.lang.Override + public boolean hasMapParallelization() { + return optionalMapParallelizationCase_ == 12; + } + /** + * bool map_parallelization = 12; + * @return The mapParallelization. + */ + @java.lang.Override + public boolean getMapParallelization() { + if (optionalMapParallelizationCase_ == 12) { + return (java.lang.Boolean) optionalMapParallelization_; + } + return false; + } + + public static final int NOOP_ELIMINATION_FIELD_NUMBER = 14; + /** + * bool noop_elimination = 14; + * @return Whether the noopElimination field is set. + */ + @java.lang.Override + public boolean hasNoopElimination() { + return optionalNoopEliminationCase_ == 14; + } + /** + * bool noop_elimination = 14; + * @return The noopElimination. + */ + @java.lang.Override + public boolean getNoopElimination() { + if (optionalNoopEliminationCase_ == 14) { + return (java.lang.Boolean) optionalNoopElimination_; + } + return false; + } + + public static final int PARALLEL_BATCH_FIELD_NUMBER = 15; + /** + * bool parallel_batch = 15; + * @return Whether the parallelBatch field is set. + */ + @java.lang.Override + public boolean hasParallelBatch() { + return optionalParallelBatchCase_ == 15; + } + /** + * bool parallel_batch = 15; + * @return The parallelBatch. + */ + @java.lang.Override + public boolean getParallelBatch() { + if (optionalParallelBatchCase_ == 15) { + return (java.lang.Boolean) optionalParallelBatch_; + } + return false; + } + + public static final int SHUFFLE_AND_REPEAT_FUSION_FIELD_NUMBER = 17; + /** + * bool shuffle_and_repeat_fusion = 17; + * @return Whether the shuffleAndRepeatFusion field is set. + */ + @java.lang.Override + public boolean hasShuffleAndRepeatFusion() { + return optionalShuffleAndRepeatFusionCase_ == 17; + } + /** + * bool shuffle_and_repeat_fusion = 17; + * @return The shuffleAndRepeatFusion. + */ + @java.lang.Override + public boolean getShuffleAndRepeatFusion() { + if (optionalShuffleAndRepeatFusionCase_ == 17) { + return (java.lang.Boolean) optionalShuffleAndRepeatFusion_; + } + return false; + } + + public static final int FILTER_PARALLELIZATION_FIELD_NUMBER = 18; + /** + * bool filter_parallelization = 18; + * @return Whether the filterParallelization field is set. + */ + @java.lang.Override + public boolean hasFilterParallelization() { + return optionalFilterParallelizationCase_ == 18; + } + /** + * bool filter_parallelization = 18; + * @return The filterParallelization. + */ + @java.lang.Override + public boolean getFilterParallelization() { + if (optionalFilterParallelizationCase_ == 18) { + return (java.lang.Boolean) optionalFilterParallelization_; + } + return false; + } + + public static final int INJECT_PREFETCH_FIELD_NUMBER = 19; + /** + * bool inject_prefetch = 19; + * @return Whether the injectPrefetch field is set. + */ + @java.lang.Override + public boolean hasInjectPrefetch() { + return optionalInjectPrefetchCase_ == 19; + } + /** + * bool inject_prefetch = 19; + * @return The injectPrefetch. + */ + @java.lang.Override + public boolean getInjectPrefetch() { + if (optionalInjectPrefetchCase_ == 19) { + return (java.lang.Boolean) optionalInjectPrefetch_; + } + return false; + } + + public static final int WARM_START_FIELD_NUMBER = 20; + /** + * bool warm_start = 20; + * @return Whether the warmStart field is set. + */ + @java.lang.Override + public boolean hasWarmStart() { + return optionalWarmStartCase_ == 20; + } + /** + * bool warm_start = 20; + * @return The warmStart. + */ + @java.lang.Override + public boolean getWarmStart() { + if (optionalWarmStartCase_ == 20) { + return (java.lang.Boolean) optionalWarmStart_; + } + return false; + } + + 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 (optionalApplyDefaultOptimizationsCase_ == 1) { + output.writeBool( + 1, (boolean)((java.lang.Boolean) optionalApplyDefaultOptimizations_)); + } + if (optionalFilterFusionCase_ == 6) { + output.writeBool( + 6, (boolean)((java.lang.Boolean) optionalFilterFusion_)); + } + if (optionalMapAndBatchFusionCase_ == 9) { + output.writeBool( + 9, (boolean)((java.lang.Boolean) optionalMapAndBatchFusion_)); + } + if (optionalMapAndFilterFusionCase_ == 10) { + output.writeBool( + 10, (boolean)((java.lang.Boolean) optionalMapAndFilterFusion_)); + } + if (optionalMapFusionCase_ == 11) { + output.writeBool( + 11, (boolean)((java.lang.Boolean) optionalMapFusion_)); + } + if (optionalMapParallelizationCase_ == 12) { + output.writeBool( + 12, (boolean)((java.lang.Boolean) optionalMapParallelization_)); + } + if (optionalNoopEliminationCase_ == 14) { + output.writeBool( + 14, (boolean)((java.lang.Boolean) optionalNoopElimination_)); + } + if (optionalParallelBatchCase_ == 15) { + output.writeBool( + 15, (boolean)((java.lang.Boolean) optionalParallelBatch_)); + } + if (optionalShuffleAndRepeatFusionCase_ == 17) { + output.writeBool( + 17, (boolean)((java.lang.Boolean) optionalShuffleAndRepeatFusion_)); + } + if (optionalFilterParallelizationCase_ == 18) { + output.writeBool( + 18, (boolean)((java.lang.Boolean) optionalFilterParallelization_)); + } + if (optionalInjectPrefetchCase_ == 19) { + output.writeBool( + 19, (boolean)((java.lang.Boolean) optionalInjectPrefetch_)); + } + if (optionalWarmStartCase_ == 20) { + output.writeBool( + 20, (boolean)((java.lang.Boolean) optionalWarmStart_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (optionalApplyDefaultOptimizationsCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 1, (boolean)((java.lang.Boolean) optionalApplyDefaultOptimizations_)); + } + if (optionalFilterFusionCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 6, (boolean)((java.lang.Boolean) optionalFilterFusion_)); + } + if (optionalMapAndBatchFusionCase_ == 9) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 9, (boolean)((java.lang.Boolean) optionalMapAndBatchFusion_)); + } + if (optionalMapAndFilterFusionCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 10, (boolean)((java.lang.Boolean) optionalMapAndFilterFusion_)); + } + if (optionalMapFusionCase_ == 11) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 11, (boolean)((java.lang.Boolean) optionalMapFusion_)); + } + if (optionalMapParallelizationCase_ == 12) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 12, (boolean)((java.lang.Boolean) optionalMapParallelization_)); + } + if (optionalNoopEliminationCase_ == 14) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 14, (boolean)((java.lang.Boolean) optionalNoopElimination_)); + } + if (optionalParallelBatchCase_ == 15) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 15, (boolean)((java.lang.Boolean) optionalParallelBatch_)); + } + if (optionalShuffleAndRepeatFusionCase_ == 17) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 17, (boolean)((java.lang.Boolean) optionalShuffleAndRepeatFusion_)); + } + if (optionalFilterParallelizationCase_ == 18) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 18, (boolean)((java.lang.Boolean) optionalFilterParallelization_)); + } + if (optionalInjectPrefetchCase_ == 19) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 19, (boolean)((java.lang.Boolean) optionalInjectPrefetch_)); + } + if (optionalWarmStartCase_ == 20) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 20, (boolean)((java.lang.Boolean) optionalWarmStart_)); + } + 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 org.tensorflow.proto.data.DatasetOptions.OptimizationOptions)) { + return super.equals(obj); + } + org.tensorflow.proto.data.DatasetOptions.OptimizationOptions other = (org.tensorflow.proto.data.DatasetOptions.OptimizationOptions) obj; + + if (!getOptionalApplyDefaultOptimizationsCase().equals(other.getOptionalApplyDefaultOptimizationsCase())) return false; + switch (optionalApplyDefaultOptimizationsCase_) { + case 1: + if (getApplyDefaultOptimizations() + != other.getApplyDefaultOptimizations()) return false; + break; + case 0: + default: + } + if (!getOptionalFilterFusionCase().equals(other.getOptionalFilterFusionCase())) return false; + switch (optionalFilterFusionCase_) { + case 6: + if (getFilterFusion() + != other.getFilterFusion()) return false; + break; + case 0: + default: + } + if (!getOptionalMapAndBatchFusionCase().equals(other.getOptionalMapAndBatchFusionCase())) return false; + switch (optionalMapAndBatchFusionCase_) { + case 9: + if (getMapAndBatchFusion() + != other.getMapAndBatchFusion()) return false; + break; + case 0: + default: + } + if (!getOptionalMapAndFilterFusionCase().equals(other.getOptionalMapAndFilterFusionCase())) return false; + switch (optionalMapAndFilterFusionCase_) { + case 10: + if (getMapAndFilterFusion() + != other.getMapAndFilterFusion()) return false; + break; + case 0: + default: + } + if (!getOptionalMapFusionCase().equals(other.getOptionalMapFusionCase())) return false; + switch (optionalMapFusionCase_) { + case 11: + if (getMapFusion() + != other.getMapFusion()) return false; + break; + case 0: + default: + } + if (!getOptionalMapParallelizationCase().equals(other.getOptionalMapParallelizationCase())) return false; + switch (optionalMapParallelizationCase_) { + case 12: + if (getMapParallelization() + != other.getMapParallelization()) return false; + break; + case 0: + default: + } + if (!getOptionalNoopEliminationCase().equals(other.getOptionalNoopEliminationCase())) return false; + switch (optionalNoopEliminationCase_) { + case 14: + if (getNoopElimination() + != other.getNoopElimination()) return false; + break; + case 0: + default: + } + if (!getOptionalParallelBatchCase().equals(other.getOptionalParallelBatchCase())) return false; + switch (optionalParallelBatchCase_) { + case 15: + if (getParallelBatch() + != other.getParallelBatch()) return false; + break; + case 0: + default: + } + if (!getOptionalShuffleAndRepeatFusionCase().equals(other.getOptionalShuffleAndRepeatFusionCase())) return false; + switch (optionalShuffleAndRepeatFusionCase_) { + case 17: + if (getShuffleAndRepeatFusion() + != other.getShuffleAndRepeatFusion()) return false; + break; + case 0: + default: + } + if (!getOptionalFilterParallelizationCase().equals(other.getOptionalFilterParallelizationCase())) return false; + switch (optionalFilterParallelizationCase_) { + case 18: + if (getFilterParallelization() + != other.getFilterParallelization()) return false; + break; + case 0: + default: + } + if (!getOptionalInjectPrefetchCase().equals(other.getOptionalInjectPrefetchCase())) return false; + switch (optionalInjectPrefetchCase_) { + case 19: + if (getInjectPrefetch() + != other.getInjectPrefetch()) return false; + break; + case 0: + default: + } + if (!getOptionalWarmStartCase().equals(other.getOptionalWarmStartCase())) return false; + switch (optionalWarmStartCase_) { + case 20: + if (getWarmStart() + != other.getWarmStart()) return false; + break; + case 0: + default: + } + 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(); + switch (optionalApplyDefaultOptimizationsCase_) { + case 1: + hash = (37 * hash) + APPLY_DEFAULT_OPTIMIZATIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getApplyDefaultOptimizations()); + break; + case 0: + default: + } + switch (optionalFilterFusionCase_) { + case 6: + hash = (37 * hash) + FILTER_FUSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFilterFusion()); + break; + case 0: + default: + } + switch (optionalMapAndBatchFusionCase_) { + case 9: + hash = (37 * hash) + MAP_AND_BATCH_FUSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getMapAndBatchFusion()); + break; + case 0: + default: + } + switch (optionalMapAndFilterFusionCase_) { + case 10: + hash = (37 * hash) + MAP_AND_FILTER_FUSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getMapAndFilterFusion()); + break; + case 0: + default: + } + switch (optionalMapFusionCase_) { + case 11: + hash = (37 * hash) + MAP_FUSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getMapFusion()); + break; + case 0: + default: + } + switch (optionalMapParallelizationCase_) { + case 12: + hash = (37 * hash) + MAP_PARALLELIZATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getMapParallelization()); + break; + case 0: + default: + } + switch (optionalNoopEliminationCase_) { + case 14: + hash = (37 * hash) + NOOP_ELIMINATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNoopElimination()); + break; + case 0: + default: + } + switch (optionalParallelBatchCase_) { + case 15: + hash = (37 * hash) + PARALLEL_BATCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getParallelBatch()); + break; + case 0: + default: + } + switch (optionalShuffleAndRepeatFusionCase_) { + case 17: + hash = (37 * hash) + SHUFFLE_AND_REPEAT_FUSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getShuffleAndRepeatFusion()); + break; + case 0: + default: + } + switch (optionalFilterParallelizationCase_) { + case 18: + hash = (37 * hash) + FILTER_PARALLELIZATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFilterParallelization()); + break; + case 0: + default: + } + switch (optionalInjectPrefetchCase_) { + case 19: + hash = (37 * hash) + INJECT_PREFETCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInjectPrefetch()); + break; + case 0: + default: + } + switch (optionalWarmStartCase_) { + case 20: + hash = (37 * hash) + WARM_START_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getWarmStart()); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.data.DatasetOptions.OptimizationOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.DatasetOptions.OptimizationOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.DatasetOptions.OptimizationOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.DatasetOptions.OptimizationOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.DatasetOptions.OptimizationOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.DatasetOptions.OptimizationOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.DatasetOptions.OptimizationOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.DatasetOptions.OptimizationOptions 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 org.tensorflow.proto.data.DatasetOptions.OptimizationOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.DatasetOptions.OptimizationOptions 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 org.tensorflow.proto.data.DatasetOptions.OptimizationOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.DatasetOptions.OptimizationOptions 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(org.tensorflow.proto.data.DatasetOptions.OptimizationOptions 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; + } + /** + *
+     * next: 21
+     * 
+ * + * Protobuf type {@code tensorflow.data.OptimizationOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.data.OptimizationOptions) + org.tensorflow.proto.data.DatasetOptions.OptimizationOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_OptimizationOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_OptimizationOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.class, org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.Builder.class); + } + + // Construct using org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + optionalApplyDefaultOptimizationsCase_ = 0; + optionalApplyDefaultOptimizations_ = null; + optionalFilterFusionCase_ = 0; + optionalFilterFusion_ = null; + optionalMapAndBatchFusionCase_ = 0; + optionalMapAndBatchFusion_ = null; + optionalMapAndFilterFusionCase_ = 0; + optionalMapAndFilterFusion_ = null; + optionalMapFusionCase_ = 0; + optionalMapFusion_ = null; + optionalMapParallelizationCase_ = 0; + optionalMapParallelization_ = null; + optionalNoopEliminationCase_ = 0; + optionalNoopElimination_ = null; + optionalParallelBatchCase_ = 0; + optionalParallelBatch_ = null; + optionalShuffleAndRepeatFusionCase_ = 0; + optionalShuffleAndRepeatFusion_ = null; + optionalFilterParallelizationCase_ = 0; + optionalFilterParallelization_ = null; + optionalInjectPrefetchCase_ = 0; + optionalInjectPrefetch_ = null; + optionalWarmStartCase_ = 0; + optionalWarmStart_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_OptimizationOptions_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.OptimizationOptions getDefaultInstanceForType() { + return org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.OptimizationOptions build() { + org.tensorflow.proto.data.DatasetOptions.OptimizationOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.OptimizationOptions buildPartial() { + org.tensorflow.proto.data.DatasetOptions.OptimizationOptions result = new org.tensorflow.proto.data.DatasetOptions.OptimizationOptions(this); + if (optionalApplyDefaultOptimizationsCase_ == 1) { + result.optionalApplyDefaultOptimizations_ = optionalApplyDefaultOptimizations_; + } + if (optionalFilterFusionCase_ == 6) { + result.optionalFilterFusion_ = optionalFilterFusion_; + } + if (optionalMapAndBatchFusionCase_ == 9) { + result.optionalMapAndBatchFusion_ = optionalMapAndBatchFusion_; + } + if (optionalMapAndFilterFusionCase_ == 10) { + result.optionalMapAndFilterFusion_ = optionalMapAndFilterFusion_; + } + if (optionalMapFusionCase_ == 11) { + result.optionalMapFusion_ = optionalMapFusion_; + } + if (optionalMapParallelizationCase_ == 12) { + result.optionalMapParallelization_ = optionalMapParallelization_; + } + if (optionalNoopEliminationCase_ == 14) { + result.optionalNoopElimination_ = optionalNoopElimination_; + } + if (optionalParallelBatchCase_ == 15) { + result.optionalParallelBatch_ = optionalParallelBatch_; + } + if (optionalShuffleAndRepeatFusionCase_ == 17) { + result.optionalShuffleAndRepeatFusion_ = optionalShuffleAndRepeatFusion_; + } + if (optionalFilterParallelizationCase_ == 18) { + result.optionalFilterParallelization_ = optionalFilterParallelization_; + } + if (optionalInjectPrefetchCase_ == 19) { + result.optionalInjectPrefetch_ = optionalInjectPrefetch_; + } + if (optionalWarmStartCase_ == 20) { + result.optionalWarmStart_ = optionalWarmStart_; + } + result.optionalApplyDefaultOptimizationsCase_ = optionalApplyDefaultOptimizationsCase_; + result.optionalFilterFusionCase_ = optionalFilterFusionCase_; + result.optionalMapAndBatchFusionCase_ = optionalMapAndBatchFusionCase_; + result.optionalMapAndFilterFusionCase_ = optionalMapAndFilterFusionCase_; + result.optionalMapFusionCase_ = optionalMapFusionCase_; + result.optionalMapParallelizationCase_ = optionalMapParallelizationCase_; + result.optionalNoopEliminationCase_ = optionalNoopEliminationCase_; + result.optionalParallelBatchCase_ = optionalParallelBatchCase_; + result.optionalShuffleAndRepeatFusionCase_ = optionalShuffleAndRepeatFusionCase_; + result.optionalFilterParallelizationCase_ = optionalFilterParallelizationCase_; + result.optionalInjectPrefetchCase_ = optionalInjectPrefetchCase_; + result.optionalWarmStartCase_ = optionalWarmStartCase_; + 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 org.tensorflow.proto.data.DatasetOptions.OptimizationOptions) { + return mergeFrom((org.tensorflow.proto.data.DatasetOptions.OptimizationOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.data.DatasetOptions.OptimizationOptions other) { + if (other == org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.getDefaultInstance()) return this; + switch (other.getOptionalApplyDefaultOptimizationsCase()) { + case APPLY_DEFAULT_OPTIMIZATIONS: { + setApplyDefaultOptimizations(other.getApplyDefaultOptimizations()); + break; + } + case OPTIONALAPPLYDEFAULTOPTIMIZATIONS_NOT_SET: { + break; + } + } + switch (other.getOptionalFilterFusionCase()) { + case FILTER_FUSION: { + setFilterFusion(other.getFilterFusion()); + break; + } + case OPTIONALFILTERFUSION_NOT_SET: { + break; + } + } + switch (other.getOptionalMapAndBatchFusionCase()) { + case MAP_AND_BATCH_FUSION: { + setMapAndBatchFusion(other.getMapAndBatchFusion()); + break; + } + case OPTIONALMAPANDBATCHFUSION_NOT_SET: { + break; + } + } + switch (other.getOptionalMapAndFilterFusionCase()) { + case MAP_AND_FILTER_FUSION: { + setMapAndFilterFusion(other.getMapAndFilterFusion()); + break; + } + case OPTIONALMAPANDFILTERFUSION_NOT_SET: { + break; + } + } + switch (other.getOptionalMapFusionCase()) { + case MAP_FUSION: { + setMapFusion(other.getMapFusion()); + break; + } + case OPTIONALMAPFUSION_NOT_SET: { + break; + } + } + switch (other.getOptionalMapParallelizationCase()) { + case MAP_PARALLELIZATION: { + setMapParallelization(other.getMapParallelization()); + break; + } + case OPTIONALMAPPARALLELIZATION_NOT_SET: { + break; + } + } + switch (other.getOptionalNoopEliminationCase()) { + case NOOP_ELIMINATION: { + setNoopElimination(other.getNoopElimination()); + break; + } + case OPTIONALNOOPELIMINATION_NOT_SET: { + break; + } + } + switch (other.getOptionalParallelBatchCase()) { + case PARALLEL_BATCH: { + setParallelBatch(other.getParallelBatch()); + break; + } + case OPTIONALPARALLELBATCH_NOT_SET: { + break; + } + } + switch (other.getOptionalShuffleAndRepeatFusionCase()) { + case SHUFFLE_AND_REPEAT_FUSION: { + setShuffleAndRepeatFusion(other.getShuffleAndRepeatFusion()); + break; + } + case OPTIONALSHUFFLEANDREPEATFUSION_NOT_SET: { + break; + } + } + switch (other.getOptionalFilterParallelizationCase()) { + case FILTER_PARALLELIZATION: { + setFilterParallelization(other.getFilterParallelization()); + break; + } + case OPTIONALFILTERPARALLELIZATION_NOT_SET: { + break; + } + } + switch (other.getOptionalInjectPrefetchCase()) { + case INJECT_PREFETCH: { + setInjectPrefetch(other.getInjectPrefetch()); + break; + } + case OPTIONALINJECTPREFETCH_NOT_SET: { + break; + } + } + switch (other.getOptionalWarmStartCase()) { + case WARM_START: { + setWarmStart(other.getWarmStart()); + break; + } + case OPTIONALWARMSTART_NOT_SET: { + break; + } + } + 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: { + optionalApplyDefaultOptimizations_ = input.readBool(); + optionalApplyDefaultOptimizationsCase_ = 1; + break; + } // case 8 + case 48: { + optionalFilterFusion_ = input.readBool(); + optionalFilterFusionCase_ = 6; + break; + } // case 48 + case 72: { + optionalMapAndBatchFusion_ = input.readBool(); + optionalMapAndBatchFusionCase_ = 9; + break; + } // case 72 + case 80: { + optionalMapAndFilterFusion_ = input.readBool(); + optionalMapAndFilterFusionCase_ = 10; + break; + } // case 80 + case 88: { + optionalMapFusion_ = input.readBool(); + optionalMapFusionCase_ = 11; + break; + } // case 88 + case 96: { + optionalMapParallelization_ = input.readBool(); + optionalMapParallelizationCase_ = 12; + break; + } // case 96 + case 112: { + optionalNoopElimination_ = input.readBool(); + optionalNoopEliminationCase_ = 14; + break; + } // case 112 + case 120: { + optionalParallelBatch_ = input.readBool(); + optionalParallelBatchCase_ = 15; + break; + } // case 120 + case 136: { + optionalShuffleAndRepeatFusion_ = input.readBool(); + optionalShuffleAndRepeatFusionCase_ = 17; + break; + } // case 136 + case 144: { + optionalFilterParallelization_ = input.readBool(); + optionalFilterParallelizationCase_ = 18; + break; + } // case 144 + case 152: { + optionalInjectPrefetch_ = input.readBool(); + optionalInjectPrefetchCase_ = 19; + break; + } // case 152 + case 160: { + optionalWarmStart_ = input.readBool(); + optionalWarmStartCase_ = 20; + break; + } // case 160 + 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 optionalApplyDefaultOptimizationsCase_ = 0; + private java.lang.Object optionalApplyDefaultOptimizations_; + public OptionalApplyDefaultOptimizationsCase + getOptionalApplyDefaultOptimizationsCase() { + return OptionalApplyDefaultOptimizationsCase.forNumber( + optionalApplyDefaultOptimizationsCase_); + } + + public Builder clearOptionalApplyDefaultOptimizations() { + optionalApplyDefaultOptimizationsCase_ = 0; + optionalApplyDefaultOptimizations_ = null; + onChanged(); + return this; + } + + private int optionalFilterFusionCase_ = 0; + private java.lang.Object optionalFilterFusion_; + public OptionalFilterFusionCase + getOptionalFilterFusionCase() { + return OptionalFilterFusionCase.forNumber( + optionalFilterFusionCase_); + } + + public Builder clearOptionalFilterFusion() { + optionalFilterFusionCase_ = 0; + optionalFilterFusion_ = null; + onChanged(); + return this; + } + + private int optionalMapAndBatchFusionCase_ = 0; + private java.lang.Object optionalMapAndBatchFusion_; + public OptionalMapAndBatchFusionCase + getOptionalMapAndBatchFusionCase() { + return OptionalMapAndBatchFusionCase.forNumber( + optionalMapAndBatchFusionCase_); + } + + public Builder clearOptionalMapAndBatchFusion() { + optionalMapAndBatchFusionCase_ = 0; + optionalMapAndBatchFusion_ = null; + onChanged(); + return this; + } + + private int optionalMapAndFilterFusionCase_ = 0; + private java.lang.Object optionalMapAndFilterFusion_; + public OptionalMapAndFilterFusionCase + getOptionalMapAndFilterFusionCase() { + return OptionalMapAndFilterFusionCase.forNumber( + optionalMapAndFilterFusionCase_); + } + + public Builder clearOptionalMapAndFilterFusion() { + optionalMapAndFilterFusionCase_ = 0; + optionalMapAndFilterFusion_ = null; + onChanged(); + return this; + } + + private int optionalMapFusionCase_ = 0; + private java.lang.Object optionalMapFusion_; + public OptionalMapFusionCase + getOptionalMapFusionCase() { + return OptionalMapFusionCase.forNumber( + optionalMapFusionCase_); + } + + public Builder clearOptionalMapFusion() { + optionalMapFusionCase_ = 0; + optionalMapFusion_ = null; + onChanged(); + return this; + } + + private int optionalMapParallelizationCase_ = 0; + private java.lang.Object optionalMapParallelization_; + public OptionalMapParallelizationCase + getOptionalMapParallelizationCase() { + return OptionalMapParallelizationCase.forNumber( + optionalMapParallelizationCase_); + } + + public Builder clearOptionalMapParallelization() { + optionalMapParallelizationCase_ = 0; + optionalMapParallelization_ = null; + onChanged(); + return this; + } + + private int optionalNoopEliminationCase_ = 0; + private java.lang.Object optionalNoopElimination_; + public OptionalNoopEliminationCase + getOptionalNoopEliminationCase() { + return OptionalNoopEliminationCase.forNumber( + optionalNoopEliminationCase_); + } + + public Builder clearOptionalNoopElimination() { + optionalNoopEliminationCase_ = 0; + optionalNoopElimination_ = null; + onChanged(); + return this; + } + + private int optionalParallelBatchCase_ = 0; + private java.lang.Object optionalParallelBatch_; + public OptionalParallelBatchCase + getOptionalParallelBatchCase() { + return OptionalParallelBatchCase.forNumber( + optionalParallelBatchCase_); + } + + public Builder clearOptionalParallelBatch() { + optionalParallelBatchCase_ = 0; + optionalParallelBatch_ = null; + onChanged(); + return this; + } + + private int optionalShuffleAndRepeatFusionCase_ = 0; + private java.lang.Object optionalShuffleAndRepeatFusion_; + public OptionalShuffleAndRepeatFusionCase + getOptionalShuffleAndRepeatFusionCase() { + return OptionalShuffleAndRepeatFusionCase.forNumber( + optionalShuffleAndRepeatFusionCase_); + } + + public Builder clearOptionalShuffleAndRepeatFusion() { + optionalShuffleAndRepeatFusionCase_ = 0; + optionalShuffleAndRepeatFusion_ = null; + onChanged(); + return this; + } + + private int optionalFilterParallelizationCase_ = 0; + private java.lang.Object optionalFilterParallelization_; + public OptionalFilterParallelizationCase + getOptionalFilterParallelizationCase() { + return OptionalFilterParallelizationCase.forNumber( + optionalFilterParallelizationCase_); + } + + public Builder clearOptionalFilterParallelization() { + optionalFilterParallelizationCase_ = 0; + optionalFilterParallelization_ = null; + onChanged(); + return this; + } + + private int optionalInjectPrefetchCase_ = 0; + private java.lang.Object optionalInjectPrefetch_; + public OptionalInjectPrefetchCase + getOptionalInjectPrefetchCase() { + return OptionalInjectPrefetchCase.forNumber( + optionalInjectPrefetchCase_); + } + + public Builder clearOptionalInjectPrefetch() { + optionalInjectPrefetchCase_ = 0; + optionalInjectPrefetch_ = null; + onChanged(); + return this; + } + + private int optionalWarmStartCase_ = 0; + private java.lang.Object optionalWarmStart_; + public OptionalWarmStartCase + getOptionalWarmStartCase() { + return OptionalWarmStartCase.forNumber( + optionalWarmStartCase_); + } + + public Builder clearOptionalWarmStart() { + optionalWarmStartCase_ = 0; + optionalWarmStart_ = null; + onChanged(); + return this; + } + + + /** + * bool apply_default_optimizations = 1; + * @return Whether the applyDefaultOptimizations field is set. + */ + public boolean hasApplyDefaultOptimizations() { + return optionalApplyDefaultOptimizationsCase_ == 1; + } + /** + * bool apply_default_optimizations = 1; + * @return The applyDefaultOptimizations. + */ + public boolean getApplyDefaultOptimizations() { + if (optionalApplyDefaultOptimizationsCase_ == 1) { + return (java.lang.Boolean) optionalApplyDefaultOptimizations_; + } + return false; + } + /** + * bool apply_default_optimizations = 1; + * @param value The applyDefaultOptimizations to set. + * @return This builder for chaining. + */ + public Builder setApplyDefaultOptimizations(boolean value) { + optionalApplyDefaultOptimizationsCase_ = 1; + optionalApplyDefaultOptimizations_ = value; + onChanged(); + return this; + } + /** + * bool apply_default_optimizations = 1; + * @return This builder for chaining. + */ + public Builder clearApplyDefaultOptimizations() { + if (optionalApplyDefaultOptimizationsCase_ == 1) { + optionalApplyDefaultOptimizationsCase_ = 0; + optionalApplyDefaultOptimizations_ = null; + onChanged(); + } + return this; + } + + /** + * bool filter_fusion = 6; + * @return Whether the filterFusion field is set. + */ + public boolean hasFilterFusion() { + return optionalFilterFusionCase_ == 6; + } + /** + * bool filter_fusion = 6; + * @return The filterFusion. + */ + public boolean getFilterFusion() { + if (optionalFilterFusionCase_ == 6) { + return (java.lang.Boolean) optionalFilterFusion_; + } + return false; + } + /** + * bool filter_fusion = 6; + * @param value The filterFusion to set. + * @return This builder for chaining. + */ + public Builder setFilterFusion(boolean value) { + optionalFilterFusionCase_ = 6; + optionalFilterFusion_ = value; + onChanged(); + return this; + } + /** + * bool filter_fusion = 6; + * @return This builder for chaining. + */ + public Builder clearFilterFusion() { + if (optionalFilterFusionCase_ == 6) { + optionalFilterFusionCase_ = 0; + optionalFilterFusion_ = null; + onChanged(); + } + return this; + } + + /** + * bool map_and_batch_fusion = 9; + * @return Whether the mapAndBatchFusion field is set. + */ + public boolean hasMapAndBatchFusion() { + return optionalMapAndBatchFusionCase_ == 9; + } + /** + * bool map_and_batch_fusion = 9; + * @return The mapAndBatchFusion. + */ + public boolean getMapAndBatchFusion() { + if (optionalMapAndBatchFusionCase_ == 9) { + return (java.lang.Boolean) optionalMapAndBatchFusion_; + } + return false; + } + /** + * bool map_and_batch_fusion = 9; + * @param value The mapAndBatchFusion to set. + * @return This builder for chaining. + */ + public Builder setMapAndBatchFusion(boolean value) { + optionalMapAndBatchFusionCase_ = 9; + optionalMapAndBatchFusion_ = value; + onChanged(); + return this; + } + /** + * bool map_and_batch_fusion = 9; + * @return This builder for chaining. + */ + public Builder clearMapAndBatchFusion() { + if (optionalMapAndBatchFusionCase_ == 9) { + optionalMapAndBatchFusionCase_ = 0; + optionalMapAndBatchFusion_ = null; + onChanged(); + } + return this; + } + + /** + * bool map_and_filter_fusion = 10; + * @return Whether the mapAndFilterFusion field is set. + */ + public boolean hasMapAndFilterFusion() { + return optionalMapAndFilterFusionCase_ == 10; + } + /** + * bool map_and_filter_fusion = 10; + * @return The mapAndFilterFusion. + */ + public boolean getMapAndFilterFusion() { + if (optionalMapAndFilterFusionCase_ == 10) { + return (java.lang.Boolean) optionalMapAndFilterFusion_; + } + return false; + } + /** + * bool map_and_filter_fusion = 10; + * @param value The mapAndFilterFusion to set. + * @return This builder for chaining. + */ + public Builder setMapAndFilterFusion(boolean value) { + optionalMapAndFilterFusionCase_ = 10; + optionalMapAndFilterFusion_ = value; + onChanged(); + return this; + } + /** + * bool map_and_filter_fusion = 10; + * @return This builder for chaining. + */ + public Builder clearMapAndFilterFusion() { + if (optionalMapAndFilterFusionCase_ == 10) { + optionalMapAndFilterFusionCase_ = 0; + optionalMapAndFilterFusion_ = null; + onChanged(); + } + return this; + } + + /** + * bool map_fusion = 11; + * @return Whether the mapFusion field is set. + */ + public boolean hasMapFusion() { + return optionalMapFusionCase_ == 11; + } + /** + * bool map_fusion = 11; + * @return The mapFusion. + */ + public boolean getMapFusion() { + if (optionalMapFusionCase_ == 11) { + return (java.lang.Boolean) optionalMapFusion_; + } + return false; + } + /** + * bool map_fusion = 11; + * @param value The mapFusion to set. + * @return This builder for chaining. + */ + public Builder setMapFusion(boolean value) { + optionalMapFusionCase_ = 11; + optionalMapFusion_ = value; + onChanged(); + return this; + } + /** + * bool map_fusion = 11; + * @return This builder for chaining. + */ + public Builder clearMapFusion() { + if (optionalMapFusionCase_ == 11) { + optionalMapFusionCase_ = 0; + optionalMapFusion_ = null; + onChanged(); + } + return this; + } + + /** + * bool map_parallelization = 12; + * @return Whether the mapParallelization field is set. + */ + public boolean hasMapParallelization() { + return optionalMapParallelizationCase_ == 12; + } + /** + * bool map_parallelization = 12; + * @return The mapParallelization. + */ + public boolean getMapParallelization() { + if (optionalMapParallelizationCase_ == 12) { + return (java.lang.Boolean) optionalMapParallelization_; + } + return false; + } + /** + * bool map_parallelization = 12; + * @param value The mapParallelization to set. + * @return This builder for chaining. + */ + public Builder setMapParallelization(boolean value) { + optionalMapParallelizationCase_ = 12; + optionalMapParallelization_ = value; + onChanged(); + return this; + } + /** + * bool map_parallelization = 12; + * @return This builder for chaining. + */ + public Builder clearMapParallelization() { + if (optionalMapParallelizationCase_ == 12) { + optionalMapParallelizationCase_ = 0; + optionalMapParallelization_ = null; + onChanged(); + } + return this; + } + + /** + * bool noop_elimination = 14; + * @return Whether the noopElimination field is set. + */ + public boolean hasNoopElimination() { + return optionalNoopEliminationCase_ == 14; + } + /** + * bool noop_elimination = 14; + * @return The noopElimination. + */ + public boolean getNoopElimination() { + if (optionalNoopEliminationCase_ == 14) { + return (java.lang.Boolean) optionalNoopElimination_; + } + return false; + } + /** + * bool noop_elimination = 14; + * @param value The noopElimination to set. + * @return This builder for chaining. + */ + public Builder setNoopElimination(boolean value) { + optionalNoopEliminationCase_ = 14; + optionalNoopElimination_ = value; + onChanged(); + return this; + } + /** + * bool noop_elimination = 14; + * @return This builder for chaining. + */ + public Builder clearNoopElimination() { + if (optionalNoopEliminationCase_ == 14) { + optionalNoopEliminationCase_ = 0; + optionalNoopElimination_ = null; + onChanged(); + } + return this; + } + + /** + * bool parallel_batch = 15; + * @return Whether the parallelBatch field is set. + */ + public boolean hasParallelBatch() { + return optionalParallelBatchCase_ == 15; + } + /** + * bool parallel_batch = 15; + * @return The parallelBatch. + */ + public boolean getParallelBatch() { + if (optionalParallelBatchCase_ == 15) { + return (java.lang.Boolean) optionalParallelBatch_; + } + return false; + } + /** + * bool parallel_batch = 15; + * @param value The parallelBatch to set. + * @return This builder for chaining. + */ + public Builder setParallelBatch(boolean value) { + optionalParallelBatchCase_ = 15; + optionalParallelBatch_ = value; + onChanged(); + return this; + } + /** + * bool parallel_batch = 15; + * @return This builder for chaining. + */ + public Builder clearParallelBatch() { + if (optionalParallelBatchCase_ == 15) { + optionalParallelBatchCase_ = 0; + optionalParallelBatch_ = null; + onChanged(); + } + return this; + } + + /** + * bool shuffle_and_repeat_fusion = 17; + * @return Whether the shuffleAndRepeatFusion field is set. + */ + public boolean hasShuffleAndRepeatFusion() { + return optionalShuffleAndRepeatFusionCase_ == 17; + } + /** + * bool shuffle_and_repeat_fusion = 17; + * @return The shuffleAndRepeatFusion. + */ + public boolean getShuffleAndRepeatFusion() { + if (optionalShuffleAndRepeatFusionCase_ == 17) { + return (java.lang.Boolean) optionalShuffleAndRepeatFusion_; + } + return false; + } + /** + * bool shuffle_and_repeat_fusion = 17; + * @param value The shuffleAndRepeatFusion to set. + * @return This builder for chaining. + */ + public Builder setShuffleAndRepeatFusion(boolean value) { + optionalShuffleAndRepeatFusionCase_ = 17; + optionalShuffleAndRepeatFusion_ = value; + onChanged(); + return this; + } + /** + * bool shuffle_and_repeat_fusion = 17; + * @return This builder for chaining. + */ + public Builder clearShuffleAndRepeatFusion() { + if (optionalShuffleAndRepeatFusionCase_ == 17) { + optionalShuffleAndRepeatFusionCase_ = 0; + optionalShuffleAndRepeatFusion_ = null; + onChanged(); + } + return this; + } + + /** + * bool filter_parallelization = 18; + * @return Whether the filterParallelization field is set. + */ + public boolean hasFilterParallelization() { + return optionalFilterParallelizationCase_ == 18; + } + /** + * bool filter_parallelization = 18; + * @return The filterParallelization. + */ + public boolean getFilterParallelization() { + if (optionalFilterParallelizationCase_ == 18) { + return (java.lang.Boolean) optionalFilterParallelization_; + } + return false; + } + /** + * bool filter_parallelization = 18; + * @param value The filterParallelization to set. + * @return This builder for chaining. + */ + public Builder setFilterParallelization(boolean value) { + optionalFilterParallelizationCase_ = 18; + optionalFilterParallelization_ = value; + onChanged(); + return this; + } + /** + * bool filter_parallelization = 18; + * @return This builder for chaining. + */ + public Builder clearFilterParallelization() { + if (optionalFilterParallelizationCase_ == 18) { + optionalFilterParallelizationCase_ = 0; + optionalFilterParallelization_ = null; + onChanged(); + } + return this; + } + + /** + * bool inject_prefetch = 19; + * @return Whether the injectPrefetch field is set. + */ + public boolean hasInjectPrefetch() { + return optionalInjectPrefetchCase_ == 19; + } + /** + * bool inject_prefetch = 19; + * @return The injectPrefetch. + */ + public boolean getInjectPrefetch() { + if (optionalInjectPrefetchCase_ == 19) { + return (java.lang.Boolean) optionalInjectPrefetch_; + } + return false; + } + /** + * bool inject_prefetch = 19; + * @param value The injectPrefetch to set. + * @return This builder for chaining. + */ + public Builder setInjectPrefetch(boolean value) { + optionalInjectPrefetchCase_ = 19; + optionalInjectPrefetch_ = value; + onChanged(); + return this; + } + /** + * bool inject_prefetch = 19; + * @return This builder for chaining. + */ + public Builder clearInjectPrefetch() { + if (optionalInjectPrefetchCase_ == 19) { + optionalInjectPrefetchCase_ = 0; + optionalInjectPrefetch_ = null; + onChanged(); + } + return this; + } + + /** + * bool warm_start = 20; + * @return Whether the warmStart field is set. + */ + public boolean hasWarmStart() { + return optionalWarmStartCase_ == 20; + } + /** + * bool warm_start = 20; + * @return The warmStart. + */ + public boolean getWarmStart() { + if (optionalWarmStartCase_ == 20) { + return (java.lang.Boolean) optionalWarmStart_; + } + return false; + } + /** + * bool warm_start = 20; + * @param value The warmStart to set. + * @return This builder for chaining. + */ + public Builder setWarmStart(boolean value) { + optionalWarmStartCase_ = 20; + optionalWarmStart_ = value; + onChanged(); + return this; + } + /** + * bool warm_start = 20; + * @return This builder for chaining. + */ + public Builder clearWarmStart() { + if (optionalWarmStartCase_ == 20) { + optionalWarmStartCase_ = 0; + optionalWarmStart_ = null; + 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:tensorflow.data.OptimizationOptions) + } + + // @@protoc_insertion_point(class_scope:tensorflow.data.OptimizationOptions) + private static final org.tensorflow.proto.data.DatasetOptions.OptimizationOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.data.DatasetOptions.OptimizationOptions(); + } + + public static org.tensorflow.proto.data.DatasetOptions.OptimizationOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OptimizationOptions 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 org.tensorflow.proto.data.DatasetOptions.OptimizationOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ThreadingOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.data.ThreadingOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 max_intra_op_parallelism = 1; + * @return Whether the maxIntraOpParallelism field is set. + */ + boolean hasMaxIntraOpParallelism(); + /** + * int32 max_intra_op_parallelism = 1; + * @return The maxIntraOpParallelism. + */ + int getMaxIntraOpParallelism(); + + /** + * int32 private_threadpool_size = 2; + * @return Whether the privateThreadpoolSize field is set. + */ + boolean hasPrivateThreadpoolSize(); + /** + * int32 private_threadpool_size = 2; + * @return The privateThreadpoolSize. + */ + int getPrivateThreadpoolSize(); + + public org.tensorflow.proto.data.DatasetOptions.ThreadingOptions.OptionalMaxIntraOpParallelismCase getOptionalMaxIntraOpParallelismCase(); + + public org.tensorflow.proto.data.DatasetOptions.ThreadingOptions.OptionalPrivateThreadpoolSizeCase getOptionalPrivateThreadpoolSizeCase(); + } + /** + *
+   * next: 3
+   * 
+ * + * Protobuf type {@code tensorflow.data.ThreadingOptions} + */ + public static final class ThreadingOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.data.ThreadingOptions) + ThreadingOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ThreadingOptions.newBuilder() to construct. + private ThreadingOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ThreadingOptions() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ThreadingOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_ThreadingOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_ThreadingOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.DatasetOptions.ThreadingOptions.class, org.tensorflow.proto.data.DatasetOptions.ThreadingOptions.Builder.class); + } + + private int optionalMaxIntraOpParallelismCase_ = 0; + private java.lang.Object optionalMaxIntraOpParallelism_; + public enum OptionalMaxIntraOpParallelismCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MAX_INTRA_OP_PARALLELISM(1), + OPTIONALMAXINTRAOPPARALLELISM_NOT_SET(0); + private final int value; + private OptionalMaxIntraOpParallelismCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalMaxIntraOpParallelismCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalMaxIntraOpParallelismCase forNumber(int value) { + switch (value) { + case 1: return MAX_INTRA_OP_PARALLELISM; + case 0: return OPTIONALMAXINTRAOPPARALLELISM_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalMaxIntraOpParallelismCase + getOptionalMaxIntraOpParallelismCase() { + return OptionalMaxIntraOpParallelismCase.forNumber( + optionalMaxIntraOpParallelismCase_); + } + + private int optionalPrivateThreadpoolSizeCase_ = 0; + private java.lang.Object optionalPrivateThreadpoolSize_; + public enum OptionalPrivateThreadpoolSizeCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PRIVATE_THREADPOOL_SIZE(2), + OPTIONALPRIVATETHREADPOOLSIZE_NOT_SET(0); + private final int value; + private OptionalPrivateThreadpoolSizeCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalPrivateThreadpoolSizeCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalPrivateThreadpoolSizeCase forNumber(int value) { + switch (value) { + case 2: return PRIVATE_THREADPOOL_SIZE; + case 0: return OPTIONALPRIVATETHREADPOOLSIZE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalPrivateThreadpoolSizeCase + getOptionalPrivateThreadpoolSizeCase() { + return OptionalPrivateThreadpoolSizeCase.forNumber( + optionalPrivateThreadpoolSizeCase_); + } + + public static final int MAX_INTRA_OP_PARALLELISM_FIELD_NUMBER = 1; + /** + * int32 max_intra_op_parallelism = 1; + * @return Whether the maxIntraOpParallelism field is set. + */ + @java.lang.Override + public boolean hasMaxIntraOpParallelism() { + return optionalMaxIntraOpParallelismCase_ == 1; + } + /** + * int32 max_intra_op_parallelism = 1; + * @return The maxIntraOpParallelism. + */ + @java.lang.Override + public int getMaxIntraOpParallelism() { + if (optionalMaxIntraOpParallelismCase_ == 1) { + return (java.lang.Integer) optionalMaxIntraOpParallelism_; + } + return 0; + } + + public static final int PRIVATE_THREADPOOL_SIZE_FIELD_NUMBER = 2; + /** + * int32 private_threadpool_size = 2; + * @return Whether the privateThreadpoolSize field is set. + */ + @java.lang.Override + public boolean hasPrivateThreadpoolSize() { + return optionalPrivateThreadpoolSizeCase_ == 2; + } + /** + * int32 private_threadpool_size = 2; + * @return The privateThreadpoolSize. + */ + @java.lang.Override + public int getPrivateThreadpoolSize() { + if (optionalPrivateThreadpoolSizeCase_ == 2) { + return (java.lang.Integer) optionalPrivateThreadpoolSize_; + } + return 0; + } + + 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 (optionalMaxIntraOpParallelismCase_ == 1) { + output.writeInt32( + 1, (int)((java.lang.Integer) optionalMaxIntraOpParallelism_)); + } + if (optionalPrivateThreadpoolSizeCase_ == 2) { + output.writeInt32( + 2, (int)((java.lang.Integer) optionalPrivateThreadpoolSize_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (optionalMaxIntraOpParallelismCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 1, (int)((java.lang.Integer) optionalMaxIntraOpParallelism_)); + } + if (optionalPrivateThreadpoolSizeCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 2, (int)((java.lang.Integer) optionalPrivateThreadpoolSize_)); + } + 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 org.tensorflow.proto.data.DatasetOptions.ThreadingOptions)) { + return super.equals(obj); + } + org.tensorflow.proto.data.DatasetOptions.ThreadingOptions other = (org.tensorflow.proto.data.DatasetOptions.ThreadingOptions) obj; + + if (!getOptionalMaxIntraOpParallelismCase().equals(other.getOptionalMaxIntraOpParallelismCase())) return false; + switch (optionalMaxIntraOpParallelismCase_) { + case 1: + if (getMaxIntraOpParallelism() + != other.getMaxIntraOpParallelism()) return false; + break; + case 0: + default: + } + if (!getOptionalPrivateThreadpoolSizeCase().equals(other.getOptionalPrivateThreadpoolSizeCase())) return false; + switch (optionalPrivateThreadpoolSizeCase_) { + case 2: + if (getPrivateThreadpoolSize() + != other.getPrivateThreadpoolSize()) return false; + break; + case 0: + default: + } + 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(); + switch (optionalMaxIntraOpParallelismCase_) { + case 1: + hash = (37 * hash) + MAX_INTRA_OP_PARALLELISM_FIELD_NUMBER; + hash = (53 * hash) + getMaxIntraOpParallelism(); + break; + case 0: + default: + } + switch (optionalPrivateThreadpoolSizeCase_) { + case 2: + hash = (37 * hash) + PRIVATE_THREADPOOL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPrivateThreadpoolSize(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.data.DatasetOptions.ThreadingOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.DatasetOptions.ThreadingOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.DatasetOptions.ThreadingOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.DatasetOptions.ThreadingOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.DatasetOptions.ThreadingOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.DatasetOptions.ThreadingOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.DatasetOptions.ThreadingOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.DatasetOptions.ThreadingOptions 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 org.tensorflow.proto.data.DatasetOptions.ThreadingOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.DatasetOptions.ThreadingOptions 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 org.tensorflow.proto.data.DatasetOptions.ThreadingOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.DatasetOptions.ThreadingOptions 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(org.tensorflow.proto.data.DatasetOptions.ThreadingOptions 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; + } + /** + *
+     * next: 3
+     * 
+ * + * Protobuf type {@code tensorflow.data.ThreadingOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.data.ThreadingOptions) + org.tensorflow.proto.data.DatasetOptions.ThreadingOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_ThreadingOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_ThreadingOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.DatasetOptions.ThreadingOptions.class, org.tensorflow.proto.data.DatasetOptions.ThreadingOptions.Builder.class); + } + + // Construct using org.tensorflow.proto.data.DatasetOptions.ThreadingOptions.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + optionalMaxIntraOpParallelismCase_ = 0; + optionalMaxIntraOpParallelism_ = null; + optionalPrivateThreadpoolSizeCase_ = 0; + optionalPrivateThreadpoolSize_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_ThreadingOptions_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.ThreadingOptions getDefaultInstanceForType() { + return org.tensorflow.proto.data.DatasetOptions.ThreadingOptions.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.ThreadingOptions build() { + org.tensorflow.proto.data.DatasetOptions.ThreadingOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.ThreadingOptions buildPartial() { + org.tensorflow.proto.data.DatasetOptions.ThreadingOptions result = new org.tensorflow.proto.data.DatasetOptions.ThreadingOptions(this); + if (optionalMaxIntraOpParallelismCase_ == 1) { + result.optionalMaxIntraOpParallelism_ = optionalMaxIntraOpParallelism_; + } + if (optionalPrivateThreadpoolSizeCase_ == 2) { + result.optionalPrivateThreadpoolSize_ = optionalPrivateThreadpoolSize_; + } + result.optionalMaxIntraOpParallelismCase_ = optionalMaxIntraOpParallelismCase_; + result.optionalPrivateThreadpoolSizeCase_ = optionalPrivateThreadpoolSizeCase_; + 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 org.tensorflow.proto.data.DatasetOptions.ThreadingOptions) { + return mergeFrom((org.tensorflow.proto.data.DatasetOptions.ThreadingOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.data.DatasetOptions.ThreadingOptions other) { + if (other == org.tensorflow.proto.data.DatasetOptions.ThreadingOptions.getDefaultInstance()) return this; + switch (other.getOptionalMaxIntraOpParallelismCase()) { + case MAX_INTRA_OP_PARALLELISM: { + setMaxIntraOpParallelism(other.getMaxIntraOpParallelism()); + break; + } + case OPTIONALMAXINTRAOPPARALLELISM_NOT_SET: { + break; + } + } + switch (other.getOptionalPrivateThreadpoolSizeCase()) { + case PRIVATE_THREADPOOL_SIZE: { + setPrivateThreadpoolSize(other.getPrivateThreadpoolSize()); + break; + } + case OPTIONALPRIVATETHREADPOOLSIZE_NOT_SET: { + break; + } + } + 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: { + optionalMaxIntraOpParallelism_ = input.readInt32(); + optionalMaxIntraOpParallelismCase_ = 1; + break; + } // case 8 + case 16: { + optionalPrivateThreadpoolSize_ = input.readInt32(); + optionalPrivateThreadpoolSizeCase_ = 2; + break; + } // case 16 + 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 optionalMaxIntraOpParallelismCase_ = 0; + private java.lang.Object optionalMaxIntraOpParallelism_; + public OptionalMaxIntraOpParallelismCase + getOptionalMaxIntraOpParallelismCase() { + return OptionalMaxIntraOpParallelismCase.forNumber( + optionalMaxIntraOpParallelismCase_); + } + + public Builder clearOptionalMaxIntraOpParallelism() { + optionalMaxIntraOpParallelismCase_ = 0; + optionalMaxIntraOpParallelism_ = null; + onChanged(); + return this; + } + + private int optionalPrivateThreadpoolSizeCase_ = 0; + private java.lang.Object optionalPrivateThreadpoolSize_; + public OptionalPrivateThreadpoolSizeCase + getOptionalPrivateThreadpoolSizeCase() { + return OptionalPrivateThreadpoolSizeCase.forNumber( + optionalPrivateThreadpoolSizeCase_); + } + + public Builder clearOptionalPrivateThreadpoolSize() { + optionalPrivateThreadpoolSizeCase_ = 0; + optionalPrivateThreadpoolSize_ = null; + onChanged(); + return this; + } + + + /** + * int32 max_intra_op_parallelism = 1; + * @return Whether the maxIntraOpParallelism field is set. + */ + public boolean hasMaxIntraOpParallelism() { + return optionalMaxIntraOpParallelismCase_ == 1; + } + /** + * int32 max_intra_op_parallelism = 1; + * @return The maxIntraOpParallelism. + */ + public int getMaxIntraOpParallelism() { + if (optionalMaxIntraOpParallelismCase_ == 1) { + return (java.lang.Integer) optionalMaxIntraOpParallelism_; + } + return 0; + } + /** + * int32 max_intra_op_parallelism = 1; + * @param value The maxIntraOpParallelism to set. + * @return This builder for chaining. + */ + public Builder setMaxIntraOpParallelism(int value) { + optionalMaxIntraOpParallelismCase_ = 1; + optionalMaxIntraOpParallelism_ = value; + onChanged(); + return this; + } + /** + * int32 max_intra_op_parallelism = 1; + * @return This builder for chaining. + */ + public Builder clearMaxIntraOpParallelism() { + if (optionalMaxIntraOpParallelismCase_ == 1) { + optionalMaxIntraOpParallelismCase_ = 0; + optionalMaxIntraOpParallelism_ = null; + onChanged(); + } + return this; + } + + /** + * int32 private_threadpool_size = 2; + * @return Whether the privateThreadpoolSize field is set. + */ + public boolean hasPrivateThreadpoolSize() { + return optionalPrivateThreadpoolSizeCase_ == 2; + } + /** + * int32 private_threadpool_size = 2; + * @return The privateThreadpoolSize. + */ + public int getPrivateThreadpoolSize() { + if (optionalPrivateThreadpoolSizeCase_ == 2) { + return (java.lang.Integer) optionalPrivateThreadpoolSize_; + } + return 0; + } + /** + * int32 private_threadpool_size = 2; + * @param value The privateThreadpoolSize to set. + * @return This builder for chaining. + */ + public Builder setPrivateThreadpoolSize(int value) { + optionalPrivateThreadpoolSizeCase_ = 2; + optionalPrivateThreadpoolSize_ = value; + onChanged(); + return this; + } + /** + * int32 private_threadpool_size = 2; + * @return This builder for chaining. + */ + public Builder clearPrivateThreadpoolSize() { + if (optionalPrivateThreadpoolSizeCase_ == 2) { + optionalPrivateThreadpoolSizeCase_ = 0; + optionalPrivateThreadpoolSize_ = null; + 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:tensorflow.data.ThreadingOptions) + } + + // @@protoc_insertion_point(class_scope:tensorflow.data.ThreadingOptions) + private static final org.tensorflow.proto.data.DatasetOptions.ThreadingOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.data.DatasetOptions.ThreadingOptions(); + } + + public static org.tensorflow.proto.data.DatasetOptions.ThreadingOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThreadingOptions 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 org.tensorflow.proto.data.DatasetOptions.ThreadingOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.data.Options) + com.google.protobuf.MessageOrBuilder { + + /** + * bool deterministic = 1; + * @return Whether the deterministic field is set. + */ + boolean hasDeterministic(); + /** + * bool deterministic = 1; + * @return The deterministic. + */ + boolean getDeterministic(); + + /** + *
+     * The distribution strategy options associated with the dataset.
+     * 
+ * + * .tensorflow.data.AutotuneOptions autotune_options = 7; + * @return Whether the autotuneOptions field is set. + */ + boolean hasAutotuneOptions(); + /** + *
+     * The distribution strategy options associated with the dataset.
+     * 
+ * + * .tensorflow.data.AutotuneOptions autotune_options = 7; + * @return The autotuneOptions. + */ + org.tensorflow.proto.data.DatasetOptions.AutotuneOptions getAutotuneOptions(); + /** + *
+     * The distribution strategy options associated with the dataset.
+     * 
+ * + * .tensorflow.data.AutotuneOptions autotune_options = 7; + */ + org.tensorflow.proto.data.DatasetOptions.AutotuneOptionsOrBuilder getAutotuneOptionsOrBuilder(); + + /** + *
+     * The distribution strategy options associated with the dataset.
+     * 
+ * + * .tensorflow.data.DistributeOptions distribute_options = 2; + * @return Whether the distributeOptions field is set. + */ + boolean hasDistributeOptions(); + /** + *
+     * The distribution strategy options associated with the dataset.
+     * 
+ * + * .tensorflow.data.DistributeOptions distribute_options = 2; + * @return The distributeOptions. + */ + org.tensorflow.proto.data.DatasetOptions.DistributeOptions getDistributeOptions(); + /** + *
+     * The distribution strategy options associated with the dataset.
+     * 
+ * + * .tensorflow.data.DistributeOptions distribute_options = 2; + */ + org.tensorflow.proto.data.DatasetOptions.DistributeOptionsOrBuilder getDistributeOptionsOrBuilder(); + + /** + *
+     * The optimization options associated with the dataset.
+     * 
+ * + * .tensorflow.data.OptimizationOptions optimization_options = 3; + * @return Whether the optimizationOptions field is set. + */ + boolean hasOptimizationOptions(); + /** + *
+     * The optimization options associated with the dataset.
+     * 
+ * + * .tensorflow.data.OptimizationOptions optimization_options = 3; + * @return The optimizationOptions. + */ + org.tensorflow.proto.data.DatasetOptions.OptimizationOptions getOptimizationOptions(); + /** + *
+     * The optimization options associated with the dataset.
+     * 
+ * + * .tensorflow.data.OptimizationOptions optimization_options = 3; + */ + org.tensorflow.proto.data.DatasetOptions.OptimizationOptionsOrBuilder getOptimizationOptionsOrBuilder(); + + /** + * bool slack = 4; + * @return Whether the slack field is set. + */ + boolean hasSlack(); + /** + * bool slack = 4; + * @return The slack. + */ + boolean getSlack(); + + /** + *
+     * The threading options associated with the dataset.
+     * 
+ * + * .tensorflow.data.ThreadingOptions threading_options = 5; + * @return Whether the threadingOptions field is set. + */ + boolean hasThreadingOptions(); + /** + *
+     * The threading options associated with the dataset.
+     * 
+ * + * .tensorflow.data.ThreadingOptions threading_options = 5; + * @return The threadingOptions. + */ + org.tensorflow.proto.data.DatasetOptions.ThreadingOptions getThreadingOptions(); + /** + *
+     * The threading options associated with the dataset.
+     * 
+ * + * .tensorflow.data.ThreadingOptions threading_options = 5; + */ + org.tensorflow.proto.data.DatasetOptions.ThreadingOptionsOrBuilder getThreadingOptionsOrBuilder(); + + /** + * .tensorflow.data.ExternalStatePolicy external_state_policy = 6; + * @return Whether the externalStatePolicy field is set. + */ + boolean hasExternalStatePolicy(); + /** + * .tensorflow.data.ExternalStatePolicy external_state_policy = 6; + * @return The enum numeric value on the wire for externalStatePolicy. + */ + int getExternalStatePolicyValue(); + /** + * .tensorflow.data.ExternalStatePolicy external_state_policy = 6; + * @return The externalStatePolicy. + */ + org.tensorflow.proto.data.DatasetOptions.ExternalStatePolicy getExternalStatePolicy(); + + /** + * bool symbolic_checkpoint = 8; + * @return Whether the symbolicCheckpoint field is set. + */ + boolean hasSymbolicCheckpoint(); + /** + * bool symbolic_checkpoint = 8; + * @return The symbolicCheckpoint. + */ + boolean getSymbolicCheckpoint(); + + public org.tensorflow.proto.data.DatasetOptions.Options.OptionalDeterministicCase getOptionalDeterministicCase(); + + public org.tensorflow.proto.data.DatasetOptions.Options.OptionalSlackCase getOptionalSlackCase(); + + public org.tensorflow.proto.data.DatasetOptions.Options.OptionalExternalStatePolicyCase getOptionalExternalStatePolicyCase(); + + public org.tensorflow.proto.data.DatasetOptions.Options.OptionalSymbolicCheckpointCase getOptionalSymbolicCheckpointCase(); + } + /** + *
+   * Message stored with Dataset objects to control how datasets are processed and
+   * optimized.
+   * next: 9
+   * 
+ * + * Protobuf type {@code tensorflow.data.Options} + */ + public static final class Options extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.data.Options) + OptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Options.newBuilder() to construct. + private Options(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Options() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Options(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_Options_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_Options_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.DatasetOptions.Options.class, org.tensorflow.proto.data.DatasetOptions.Options.Builder.class); + } + + private int optionalDeterministicCase_ = 0; + private java.lang.Object optionalDeterministic_; + public enum OptionalDeterministicCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DETERMINISTIC(1), + OPTIONALDETERMINISTIC_NOT_SET(0); + private final int value; + private OptionalDeterministicCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalDeterministicCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalDeterministicCase forNumber(int value) { + switch (value) { + case 1: return DETERMINISTIC; + case 0: return OPTIONALDETERMINISTIC_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalDeterministicCase + getOptionalDeterministicCase() { + return OptionalDeterministicCase.forNumber( + optionalDeterministicCase_); + } + + private int optionalSlackCase_ = 0; + private java.lang.Object optionalSlack_; + public enum OptionalSlackCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SLACK(4), + OPTIONALSLACK_NOT_SET(0); + private final int value; + private OptionalSlackCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalSlackCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalSlackCase forNumber(int value) { + switch (value) { + case 4: return SLACK; + case 0: return OPTIONALSLACK_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalSlackCase + getOptionalSlackCase() { + return OptionalSlackCase.forNumber( + optionalSlackCase_); + } + + private int optionalExternalStatePolicyCase_ = 0; + private java.lang.Object optionalExternalStatePolicy_; + public enum OptionalExternalStatePolicyCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EXTERNAL_STATE_POLICY(6), + OPTIONALEXTERNALSTATEPOLICY_NOT_SET(0); + private final int value; + private OptionalExternalStatePolicyCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalExternalStatePolicyCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalExternalStatePolicyCase forNumber(int value) { + switch (value) { + case 6: return EXTERNAL_STATE_POLICY; + case 0: return OPTIONALEXTERNALSTATEPOLICY_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalExternalStatePolicyCase + getOptionalExternalStatePolicyCase() { + return OptionalExternalStatePolicyCase.forNumber( + optionalExternalStatePolicyCase_); + } + + private int optionalSymbolicCheckpointCase_ = 0; + private java.lang.Object optionalSymbolicCheckpoint_; + public enum OptionalSymbolicCheckpointCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SYMBOLIC_CHECKPOINT(8), + OPTIONALSYMBOLICCHECKPOINT_NOT_SET(0); + private final int value; + private OptionalSymbolicCheckpointCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionalSymbolicCheckpointCase valueOf(int value) { + return forNumber(value); + } + + public static OptionalSymbolicCheckpointCase forNumber(int value) { + switch (value) { + case 8: return SYMBOLIC_CHECKPOINT; + case 0: return OPTIONALSYMBOLICCHECKPOINT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionalSymbolicCheckpointCase + getOptionalSymbolicCheckpointCase() { + return OptionalSymbolicCheckpointCase.forNumber( + optionalSymbolicCheckpointCase_); + } + + public static final int DETERMINISTIC_FIELD_NUMBER = 1; + /** + * bool deterministic = 1; + * @return Whether the deterministic field is set. + */ + @java.lang.Override + public boolean hasDeterministic() { + return optionalDeterministicCase_ == 1; + } + /** + * bool deterministic = 1; + * @return The deterministic. + */ + @java.lang.Override + public boolean getDeterministic() { + if (optionalDeterministicCase_ == 1) { + return (java.lang.Boolean) optionalDeterministic_; + } + return false; + } + + public static final int AUTOTUNE_OPTIONS_FIELD_NUMBER = 7; + private org.tensorflow.proto.data.DatasetOptions.AutotuneOptions autotuneOptions_; + /** + *
+     * The distribution strategy options associated with the dataset.
+     * 
+ * + * .tensorflow.data.AutotuneOptions autotune_options = 7; + * @return Whether the autotuneOptions field is set. + */ + @java.lang.Override + public boolean hasAutotuneOptions() { + return autotuneOptions_ != null; + } + /** + *
+     * The distribution strategy options associated with the dataset.
+     * 
+ * + * .tensorflow.data.AutotuneOptions autotune_options = 7; + * @return The autotuneOptions. + */ + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.AutotuneOptions getAutotuneOptions() { + return autotuneOptions_ == null ? org.tensorflow.proto.data.DatasetOptions.AutotuneOptions.getDefaultInstance() : autotuneOptions_; + } + /** + *
+     * The distribution strategy options associated with the dataset.
+     * 
+ * + * .tensorflow.data.AutotuneOptions autotune_options = 7; + */ + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.AutotuneOptionsOrBuilder getAutotuneOptionsOrBuilder() { + return getAutotuneOptions(); + } + + public static final int DISTRIBUTE_OPTIONS_FIELD_NUMBER = 2; + private org.tensorflow.proto.data.DatasetOptions.DistributeOptions distributeOptions_; + /** + *
+     * The distribution strategy options associated with the dataset.
+     * 
+ * + * .tensorflow.data.DistributeOptions distribute_options = 2; + * @return Whether the distributeOptions field is set. + */ + @java.lang.Override + public boolean hasDistributeOptions() { + return distributeOptions_ != null; + } + /** + *
+     * The distribution strategy options associated with the dataset.
+     * 
+ * + * .tensorflow.data.DistributeOptions distribute_options = 2; + * @return The distributeOptions. + */ + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.DistributeOptions getDistributeOptions() { + return distributeOptions_ == null ? org.tensorflow.proto.data.DatasetOptions.DistributeOptions.getDefaultInstance() : distributeOptions_; + } + /** + *
+     * The distribution strategy options associated with the dataset.
+     * 
+ * + * .tensorflow.data.DistributeOptions distribute_options = 2; + */ + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.DistributeOptionsOrBuilder getDistributeOptionsOrBuilder() { + return getDistributeOptions(); + } + + public static final int OPTIMIZATION_OPTIONS_FIELD_NUMBER = 3; + private org.tensorflow.proto.data.DatasetOptions.OptimizationOptions optimizationOptions_; + /** + *
+     * The optimization options associated with the dataset.
+     * 
+ * + * .tensorflow.data.OptimizationOptions optimization_options = 3; + * @return Whether the optimizationOptions field is set. + */ + @java.lang.Override + public boolean hasOptimizationOptions() { + return optimizationOptions_ != null; + } + /** + *
+     * The optimization options associated with the dataset.
+     * 
+ * + * .tensorflow.data.OptimizationOptions optimization_options = 3; + * @return The optimizationOptions. + */ + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.OptimizationOptions getOptimizationOptions() { + return optimizationOptions_ == null ? org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.getDefaultInstance() : optimizationOptions_; + } + /** + *
+     * The optimization options associated with the dataset.
+     * 
+ * + * .tensorflow.data.OptimizationOptions optimization_options = 3; + */ + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.OptimizationOptionsOrBuilder getOptimizationOptionsOrBuilder() { + return getOptimizationOptions(); + } + + public static final int SLACK_FIELD_NUMBER = 4; + /** + * bool slack = 4; + * @return Whether the slack field is set. + */ + @java.lang.Override + public boolean hasSlack() { + return optionalSlackCase_ == 4; + } + /** + * bool slack = 4; + * @return The slack. + */ + @java.lang.Override + public boolean getSlack() { + if (optionalSlackCase_ == 4) { + return (java.lang.Boolean) optionalSlack_; + } + return false; + } + + public static final int THREADING_OPTIONS_FIELD_NUMBER = 5; + private org.tensorflow.proto.data.DatasetOptions.ThreadingOptions threadingOptions_; + /** + *
+     * The threading options associated with the dataset.
+     * 
+ * + * .tensorflow.data.ThreadingOptions threading_options = 5; + * @return Whether the threadingOptions field is set. + */ + @java.lang.Override + public boolean hasThreadingOptions() { + return threadingOptions_ != null; + } + /** + *
+     * The threading options associated with the dataset.
+     * 
+ * + * .tensorflow.data.ThreadingOptions threading_options = 5; + * @return The threadingOptions. + */ + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.ThreadingOptions getThreadingOptions() { + return threadingOptions_ == null ? org.tensorflow.proto.data.DatasetOptions.ThreadingOptions.getDefaultInstance() : threadingOptions_; + } + /** + *
+     * The threading options associated with the dataset.
+     * 
+ * + * .tensorflow.data.ThreadingOptions threading_options = 5; + */ + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.ThreadingOptionsOrBuilder getThreadingOptionsOrBuilder() { + return getThreadingOptions(); + } + + public static final int EXTERNAL_STATE_POLICY_FIELD_NUMBER = 6; + /** + * .tensorflow.data.ExternalStatePolicy external_state_policy = 6; + * @return Whether the externalStatePolicy field is set. + */ + public boolean hasExternalStatePolicy() { + return optionalExternalStatePolicyCase_ == 6; + } + /** + * .tensorflow.data.ExternalStatePolicy external_state_policy = 6; + * @return The enum numeric value on the wire for externalStatePolicy. + */ + public int getExternalStatePolicyValue() { + if (optionalExternalStatePolicyCase_ == 6) { + return (java.lang.Integer) optionalExternalStatePolicy_; + } + return 0; + } + /** + * .tensorflow.data.ExternalStatePolicy external_state_policy = 6; + * @return The externalStatePolicy. + */ + public org.tensorflow.proto.data.DatasetOptions.ExternalStatePolicy getExternalStatePolicy() { + if (optionalExternalStatePolicyCase_ == 6) { + @SuppressWarnings("deprecation") + org.tensorflow.proto.data.DatasetOptions.ExternalStatePolicy result = org.tensorflow.proto.data.DatasetOptions.ExternalStatePolicy.valueOf( + (java.lang.Integer) optionalExternalStatePolicy_); + return result == null ? org.tensorflow.proto.data.DatasetOptions.ExternalStatePolicy.UNRECOGNIZED : result; + } + return org.tensorflow.proto.data.DatasetOptions.ExternalStatePolicy.POLICY_WARN; + } + + public static final int SYMBOLIC_CHECKPOINT_FIELD_NUMBER = 8; + /** + * bool symbolic_checkpoint = 8; + * @return Whether the symbolicCheckpoint field is set. + */ + @java.lang.Override + public boolean hasSymbolicCheckpoint() { + return optionalSymbolicCheckpointCase_ == 8; + } + /** + * bool symbolic_checkpoint = 8; + * @return The symbolicCheckpoint. + */ + @java.lang.Override + public boolean getSymbolicCheckpoint() { + if (optionalSymbolicCheckpointCase_ == 8) { + return (java.lang.Boolean) optionalSymbolicCheckpoint_; + } + return false; + } + + 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 (optionalDeterministicCase_ == 1) { + output.writeBool( + 1, (boolean)((java.lang.Boolean) optionalDeterministic_)); + } + if (distributeOptions_ != null) { + output.writeMessage(2, getDistributeOptions()); + } + if (optimizationOptions_ != null) { + output.writeMessage(3, getOptimizationOptions()); + } + if (optionalSlackCase_ == 4) { + output.writeBool( + 4, (boolean)((java.lang.Boolean) optionalSlack_)); + } + if (threadingOptions_ != null) { + output.writeMessage(5, getThreadingOptions()); + } + if (optionalExternalStatePolicyCase_ == 6) { + output.writeEnum(6, ((java.lang.Integer) optionalExternalStatePolicy_)); + } + if (autotuneOptions_ != null) { + output.writeMessage(7, getAutotuneOptions()); + } + if (optionalSymbolicCheckpointCase_ == 8) { + output.writeBool( + 8, (boolean)((java.lang.Boolean) optionalSymbolicCheckpoint_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (optionalDeterministicCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 1, (boolean)((java.lang.Boolean) optionalDeterministic_)); + } + if (distributeOptions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDistributeOptions()); + } + if (optimizationOptions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOptimizationOptions()); + } + if (optionalSlackCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 4, (boolean)((java.lang.Boolean) optionalSlack_)); + } + if (threadingOptions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getThreadingOptions()); + } + if (optionalExternalStatePolicyCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, ((java.lang.Integer) optionalExternalStatePolicy_)); + } + if (autotuneOptions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getAutotuneOptions()); + } + if (optionalSymbolicCheckpointCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 8, (boolean)((java.lang.Boolean) optionalSymbolicCheckpoint_)); + } + 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 org.tensorflow.proto.data.DatasetOptions.Options)) { + return super.equals(obj); + } + org.tensorflow.proto.data.DatasetOptions.Options other = (org.tensorflow.proto.data.DatasetOptions.Options) obj; + + if (hasAutotuneOptions() != other.hasAutotuneOptions()) return false; + if (hasAutotuneOptions()) { + if (!getAutotuneOptions() + .equals(other.getAutotuneOptions())) return false; + } + if (hasDistributeOptions() != other.hasDistributeOptions()) return false; + if (hasDistributeOptions()) { + if (!getDistributeOptions() + .equals(other.getDistributeOptions())) return false; + } + if (hasOptimizationOptions() != other.hasOptimizationOptions()) return false; + if (hasOptimizationOptions()) { + if (!getOptimizationOptions() + .equals(other.getOptimizationOptions())) return false; + } + if (hasThreadingOptions() != other.hasThreadingOptions()) return false; + if (hasThreadingOptions()) { + if (!getThreadingOptions() + .equals(other.getThreadingOptions())) return false; + } + if (!getOptionalDeterministicCase().equals(other.getOptionalDeterministicCase())) return false; + switch (optionalDeterministicCase_) { + case 1: + if (getDeterministic() + != other.getDeterministic()) return false; + break; + case 0: + default: + } + if (!getOptionalSlackCase().equals(other.getOptionalSlackCase())) return false; + switch (optionalSlackCase_) { + case 4: + if (getSlack() + != other.getSlack()) return false; + break; + case 0: + default: + } + if (!getOptionalExternalStatePolicyCase().equals(other.getOptionalExternalStatePolicyCase())) return false; + switch (optionalExternalStatePolicyCase_) { + case 6: + if (getExternalStatePolicyValue() + != other.getExternalStatePolicyValue()) return false; + break; + case 0: + default: + } + if (!getOptionalSymbolicCheckpointCase().equals(other.getOptionalSymbolicCheckpointCase())) return false; + switch (optionalSymbolicCheckpointCase_) { + case 8: + if (getSymbolicCheckpoint() + != other.getSymbolicCheckpoint()) return false; + break; + case 0: + default: + } + 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 (hasAutotuneOptions()) { + hash = (37 * hash) + AUTOTUNE_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getAutotuneOptions().hashCode(); + } + if (hasDistributeOptions()) { + hash = (37 * hash) + DISTRIBUTE_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getDistributeOptions().hashCode(); + } + if (hasOptimizationOptions()) { + hash = (37 * hash) + OPTIMIZATION_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getOptimizationOptions().hashCode(); + } + if (hasThreadingOptions()) { + hash = (37 * hash) + THREADING_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getThreadingOptions().hashCode(); + } + switch (optionalDeterministicCase_) { + case 1: + hash = (37 * hash) + DETERMINISTIC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDeterministic()); + break; + case 0: + default: + } + switch (optionalSlackCase_) { + case 4: + hash = (37 * hash) + SLACK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSlack()); + break; + case 0: + default: + } + switch (optionalExternalStatePolicyCase_) { + case 6: + hash = (37 * hash) + EXTERNAL_STATE_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getExternalStatePolicyValue(); + break; + case 0: + default: + } + switch (optionalSymbolicCheckpointCase_) { + case 8: + hash = (37 * hash) + SYMBOLIC_CHECKPOINT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSymbolicCheckpoint()); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.data.DatasetOptions.Options parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.DatasetOptions.Options parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.DatasetOptions.Options parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.DatasetOptions.Options parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.DatasetOptions.Options parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.DatasetOptions.Options parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.DatasetOptions.Options parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.DatasetOptions.Options 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 org.tensorflow.proto.data.DatasetOptions.Options parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.DatasetOptions.Options 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 org.tensorflow.proto.data.DatasetOptions.Options parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.DatasetOptions.Options 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(org.tensorflow.proto.data.DatasetOptions.Options 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; + } + /** + *
+     * Message stored with Dataset objects to control how datasets are processed and
+     * optimized.
+     * next: 9
+     * 
+ * + * Protobuf type {@code tensorflow.data.Options} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.data.Options) + org.tensorflow.proto.data.DatasetOptions.OptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_Options_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_Options_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.DatasetOptions.Options.class, org.tensorflow.proto.data.DatasetOptions.Options.Builder.class); + } + + // Construct using org.tensorflow.proto.data.DatasetOptions.Options.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (autotuneOptionsBuilder_ == null) { + autotuneOptions_ = null; + } else { + autotuneOptions_ = null; + autotuneOptionsBuilder_ = null; + } + if (distributeOptionsBuilder_ == null) { + distributeOptions_ = null; + } else { + distributeOptions_ = null; + distributeOptionsBuilder_ = null; + } + if (optimizationOptionsBuilder_ == null) { + optimizationOptions_ = null; + } else { + optimizationOptions_ = null; + optimizationOptionsBuilder_ = null; + } + if (threadingOptionsBuilder_ == null) { + threadingOptions_ = null; + } else { + threadingOptions_ = null; + threadingOptionsBuilder_ = null; + } + optionalDeterministicCase_ = 0; + optionalDeterministic_ = null; + optionalSlackCase_ = 0; + optionalSlack_ = null; + optionalExternalStatePolicyCase_ = 0; + optionalExternalStatePolicy_ = null; + optionalSymbolicCheckpointCase_ = 0; + optionalSymbolicCheckpoint_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.data.DatasetOptions.internal_static_tensorflow_data_Options_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.Options getDefaultInstanceForType() { + return org.tensorflow.proto.data.DatasetOptions.Options.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.Options build() { + org.tensorflow.proto.data.DatasetOptions.Options result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.Options buildPartial() { + org.tensorflow.proto.data.DatasetOptions.Options result = new org.tensorflow.proto.data.DatasetOptions.Options(this); + if (optionalDeterministicCase_ == 1) { + result.optionalDeterministic_ = optionalDeterministic_; + } + if (autotuneOptionsBuilder_ == null) { + result.autotuneOptions_ = autotuneOptions_; + } else { + result.autotuneOptions_ = autotuneOptionsBuilder_.build(); + } + if (distributeOptionsBuilder_ == null) { + result.distributeOptions_ = distributeOptions_; + } else { + result.distributeOptions_ = distributeOptionsBuilder_.build(); + } + if (optimizationOptionsBuilder_ == null) { + result.optimizationOptions_ = optimizationOptions_; + } else { + result.optimizationOptions_ = optimizationOptionsBuilder_.build(); + } + if (optionalSlackCase_ == 4) { + result.optionalSlack_ = optionalSlack_; + } + if (threadingOptionsBuilder_ == null) { + result.threadingOptions_ = threadingOptions_; + } else { + result.threadingOptions_ = threadingOptionsBuilder_.build(); + } + if (optionalExternalStatePolicyCase_ == 6) { + result.optionalExternalStatePolicy_ = optionalExternalStatePolicy_; + } + if (optionalSymbolicCheckpointCase_ == 8) { + result.optionalSymbolicCheckpoint_ = optionalSymbolicCheckpoint_; + } + result.optionalDeterministicCase_ = optionalDeterministicCase_; + result.optionalSlackCase_ = optionalSlackCase_; + result.optionalExternalStatePolicyCase_ = optionalExternalStatePolicyCase_; + result.optionalSymbolicCheckpointCase_ = optionalSymbolicCheckpointCase_; + 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 org.tensorflow.proto.data.DatasetOptions.Options) { + return mergeFrom((org.tensorflow.proto.data.DatasetOptions.Options)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.data.DatasetOptions.Options other) { + if (other == org.tensorflow.proto.data.DatasetOptions.Options.getDefaultInstance()) return this; + if (other.hasAutotuneOptions()) { + mergeAutotuneOptions(other.getAutotuneOptions()); + } + if (other.hasDistributeOptions()) { + mergeDistributeOptions(other.getDistributeOptions()); + } + if (other.hasOptimizationOptions()) { + mergeOptimizationOptions(other.getOptimizationOptions()); + } + if (other.hasThreadingOptions()) { + mergeThreadingOptions(other.getThreadingOptions()); + } + switch (other.getOptionalDeterministicCase()) { + case DETERMINISTIC: { + setDeterministic(other.getDeterministic()); + break; + } + case OPTIONALDETERMINISTIC_NOT_SET: { + break; + } + } + switch (other.getOptionalSlackCase()) { + case SLACK: { + setSlack(other.getSlack()); + break; + } + case OPTIONALSLACK_NOT_SET: { + break; + } + } + switch (other.getOptionalExternalStatePolicyCase()) { + case EXTERNAL_STATE_POLICY: { + setExternalStatePolicyValue(other.getExternalStatePolicyValue()); + break; + } + case OPTIONALEXTERNALSTATEPOLICY_NOT_SET: { + break; + } + } + switch (other.getOptionalSymbolicCheckpointCase()) { + case SYMBOLIC_CHECKPOINT: { + setSymbolicCheckpoint(other.getSymbolicCheckpoint()); + break; + } + case OPTIONALSYMBOLICCHECKPOINT_NOT_SET: { + break; + } + } + 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: { + optionalDeterministic_ = input.readBool(); + optionalDeterministicCase_ = 1; + break; + } // case 8 + case 18: { + input.readMessage( + getDistributeOptionsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getOptimizationOptionsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 32: { + optionalSlack_ = input.readBool(); + optionalSlackCase_ = 4; + break; + } // case 32 + case 42: { + input.readMessage( + getThreadingOptionsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + case 48: { + int rawValue = input.readEnum(); + optionalExternalStatePolicyCase_ = 6; + optionalExternalStatePolicy_ = rawValue; + break; + } // case 48 + case 58: { + input.readMessage( + getAutotuneOptionsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 58 + case 64: { + optionalSymbolicCheckpoint_ = input.readBool(); + optionalSymbolicCheckpointCase_ = 8; + break; + } // case 64 + 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 optionalDeterministicCase_ = 0; + private java.lang.Object optionalDeterministic_; + public OptionalDeterministicCase + getOptionalDeterministicCase() { + return OptionalDeterministicCase.forNumber( + optionalDeterministicCase_); + } + + public Builder clearOptionalDeterministic() { + optionalDeterministicCase_ = 0; + optionalDeterministic_ = null; + onChanged(); + return this; + } + + private int optionalSlackCase_ = 0; + private java.lang.Object optionalSlack_; + public OptionalSlackCase + getOptionalSlackCase() { + return OptionalSlackCase.forNumber( + optionalSlackCase_); + } + + public Builder clearOptionalSlack() { + optionalSlackCase_ = 0; + optionalSlack_ = null; + onChanged(); + return this; + } + + private int optionalExternalStatePolicyCase_ = 0; + private java.lang.Object optionalExternalStatePolicy_; + public OptionalExternalStatePolicyCase + getOptionalExternalStatePolicyCase() { + return OptionalExternalStatePolicyCase.forNumber( + optionalExternalStatePolicyCase_); + } + + public Builder clearOptionalExternalStatePolicy() { + optionalExternalStatePolicyCase_ = 0; + optionalExternalStatePolicy_ = null; + onChanged(); + return this; + } + + private int optionalSymbolicCheckpointCase_ = 0; + private java.lang.Object optionalSymbolicCheckpoint_; + public OptionalSymbolicCheckpointCase + getOptionalSymbolicCheckpointCase() { + return OptionalSymbolicCheckpointCase.forNumber( + optionalSymbolicCheckpointCase_); + } + + public Builder clearOptionalSymbolicCheckpoint() { + optionalSymbolicCheckpointCase_ = 0; + optionalSymbolicCheckpoint_ = null; + onChanged(); + return this; + } + + + /** + * bool deterministic = 1; + * @return Whether the deterministic field is set. + */ + public boolean hasDeterministic() { + return optionalDeterministicCase_ == 1; + } + /** + * bool deterministic = 1; + * @return The deterministic. + */ + public boolean getDeterministic() { + if (optionalDeterministicCase_ == 1) { + return (java.lang.Boolean) optionalDeterministic_; + } + return false; + } + /** + * bool deterministic = 1; + * @param value The deterministic to set. + * @return This builder for chaining. + */ + public Builder setDeterministic(boolean value) { + optionalDeterministicCase_ = 1; + optionalDeterministic_ = value; + onChanged(); + return this; + } + /** + * bool deterministic = 1; + * @return This builder for chaining. + */ + public Builder clearDeterministic() { + if (optionalDeterministicCase_ == 1) { + optionalDeterministicCase_ = 0; + optionalDeterministic_ = null; + onChanged(); + } + return this; + } + + private org.tensorflow.proto.data.DatasetOptions.AutotuneOptions autotuneOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.data.DatasetOptions.AutotuneOptions, org.tensorflow.proto.data.DatasetOptions.AutotuneOptions.Builder, org.tensorflow.proto.data.DatasetOptions.AutotuneOptionsOrBuilder> autotuneOptionsBuilder_; + /** + *
+       * The distribution strategy options associated with the dataset.
+       * 
+ * + * .tensorflow.data.AutotuneOptions autotune_options = 7; + * @return Whether the autotuneOptions field is set. + */ + public boolean hasAutotuneOptions() { + return autotuneOptionsBuilder_ != null || autotuneOptions_ != null; + } + /** + *
+       * The distribution strategy options associated with the dataset.
+       * 
+ * + * .tensorflow.data.AutotuneOptions autotune_options = 7; + * @return The autotuneOptions. + */ + public org.tensorflow.proto.data.DatasetOptions.AutotuneOptions getAutotuneOptions() { + if (autotuneOptionsBuilder_ == null) { + return autotuneOptions_ == null ? org.tensorflow.proto.data.DatasetOptions.AutotuneOptions.getDefaultInstance() : autotuneOptions_; + } else { + return autotuneOptionsBuilder_.getMessage(); + } + } + /** + *
+       * The distribution strategy options associated with the dataset.
+       * 
+ * + * .tensorflow.data.AutotuneOptions autotune_options = 7; + */ + public Builder setAutotuneOptions(org.tensorflow.proto.data.DatasetOptions.AutotuneOptions value) { + if (autotuneOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autotuneOptions_ = value; + onChanged(); + } else { + autotuneOptionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The distribution strategy options associated with the dataset.
+       * 
+ * + * .tensorflow.data.AutotuneOptions autotune_options = 7; + */ + public Builder setAutotuneOptions( + org.tensorflow.proto.data.DatasetOptions.AutotuneOptions.Builder builderForValue) { + if (autotuneOptionsBuilder_ == null) { + autotuneOptions_ = builderForValue.build(); + onChanged(); + } else { + autotuneOptionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The distribution strategy options associated with the dataset.
+       * 
+ * + * .tensorflow.data.AutotuneOptions autotune_options = 7; + */ + public Builder mergeAutotuneOptions(org.tensorflow.proto.data.DatasetOptions.AutotuneOptions value) { + if (autotuneOptionsBuilder_ == null) { + if (autotuneOptions_ != null) { + autotuneOptions_ = + org.tensorflow.proto.data.DatasetOptions.AutotuneOptions.newBuilder(autotuneOptions_).mergeFrom(value).buildPartial(); + } else { + autotuneOptions_ = value; + } + onChanged(); + } else { + autotuneOptionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The distribution strategy options associated with the dataset.
+       * 
+ * + * .tensorflow.data.AutotuneOptions autotune_options = 7; + */ + public Builder clearAutotuneOptions() { + if (autotuneOptionsBuilder_ == null) { + autotuneOptions_ = null; + onChanged(); + } else { + autotuneOptions_ = null; + autotuneOptionsBuilder_ = null; + } + + return this; + } + /** + *
+       * The distribution strategy options associated with the dataset.
+       * 
+ * + * .tensorflow.data.AutotuneOptions autotune_options = 7; + */ + public org.tensorflow.proto.data.DatasetOptions.AutotuneOptions.Builder getAutotuneOptionsBuilder() { + + onChanged(); + return getAutotuneOptionsFieldBuilder().getBuilder(); + } + /** + *
+       * The distribution strategy options associated with the dataset.
+       * 
+ * + * .tensorflow.data.AutotuneOptions autotune_options = 7; + */ + public org.tensorflow.proto.data.DatasetOptions.AutotuneOptionsOrBuilder getAutotuneOptionsOrBuilder() { + if (autotuneOptionsBuilder_ != null) { + return autotuneOptionsBuilder_.getMessageOrBuilder(); + } else { + return autotuneOptions_ == null ? + org.tensorflow.proto.data.DatasetOptions.AutotuneOptions.getDefaultInstance() : autotuneOptions_; + } + } + /** + *
+       * The distribution strategy options associated with the dataset.
+       * 
+ * + * .tensorflow.data.AutotuneOptions autotune_options = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.data.DatasetOptions.AutotuneOptions, org.tensorflow.proto.data.DatasetOptions.AutotuneOptions.Builder, org.tensorflow.proto.data.DatasetOptions.AutotuneOptionsOrBuilder> + getAutotuneOptionsFieldBuilder() { + if (autotuneOptionsBuilder_ == null) { + autotuneOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.data.DatasetOptions.AutotuneOptions, org.tensorflow.proto.data.DatasetOptions.AutotuneOptions.Builder, org.tensorflow.proto.data.DatasetOptions.AutotuneOptionsOrBuilder>( + getAutotuneOptions(), + getParentForChildren(), + isClean()); + autotuneOptions_ = null; + } + return autotuneOptionsBuilder_; + } + + private org.tensorflow.proto.data.DatasetOptions.DistributeOptions distributeOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.data.DatasetOptions.DistributeOptions, org.tensorflow.proto.data.DatasetOptions.DistributeOptions.Builder, org.tensorflow.proto.data.DatasetOptions.DistributeOptionsOrBuilder> distributeOptionsBuilder_; + /** + *
+       * The distribution strategy options associated with the dataset.
+       * 
+ * + * .tensorflow.data.DistributeOptions distribute_options = 2; + * @return Whether the distributeOptions field is set. + */ + public boolean hasDistributeOptions() { + return distributeOptionsBuilder_ != null || distributeOptions_ != null; + } + /** + *
+       * The distribution strategy options associated with the dataset.
+       * 
+ * + * .tensorflow.data.DistributeOptions distribute_options = 2; + * @return The distributeOptions. + */ + public org.tensorflow.proto.data.DatasetOptions.DistributeOptions getDistributeOptions() { + if (distributeOptionsBuilder_ == null) { + return distributeOptions_ == null ? org.tensorflow.proto.data.DatasetOptions.DistributeOptions.getDefaultInstance() : distributeOptions_; + } else { + return distributeOptionsBuilder_.getMessage(); + } + } + /** + *
+       * The distribution strategy options associated with the dataset.
+       * 
+ * + * .tensorflow.data.DistributeOptions distribute_options = 2; + */ + public Builder setDistributeOptions(org.tensorflow.proto.data.DatasetOptions.DistributeOptions value) { + if (distributeOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + distributeOptions_ = value; + onChanged(); + } else { + distributeOptionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The distribution strategy options associated with the dataset.
+       * 
+ * + * .tensorflow.data.DistributeOptions distribute_options = 2; + */ + public Builder setDistributeOptions( + org.tensorflow.proto.data.DatasetOptions.DistributeOptions.Builder builderForValue) { + if (distributeOptionsBuilder_ == null) { + distributeOptions_ = builderForValue.build(); + onChanged(); + } else { + distributeOptionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The distribution strategy options associated with the dataset.
+       * 
+ * + * .tensorflow.data.DistributeOptions distribute_options = 2; + */ + public Builder mergeDistributeOptions(org.tensorflow.proto.data.DatasetOptions.DistributeOptions value) { + if (distributeOptionsBuilder_ == null) { + if (distributeOptions_ != null) { + distributeOptions_ = + org.tensorflow.proto.data.DatasetOptions.DistributeOptions.newBuilder(distributeOptions_).mergeFrom(value).buildPartial(); + } else { + distributeOptions_ = value; + } + onChanged(); + } else { + distributeOptionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The distribution strategy options associated with the dataset.
+       * 
+ * + * .tensorflow.data.DistributeOptions distribute_options = 2; + */ + public Builder clearDistributeOptions() { + if (distributeOptionsBuilder_ == null) { + distributeOptions_ = null; + onChanged(); + } else { + distributeOptions_ = null; + distributeOptionsBuilder_ = null; + } + + return this; + } + /** + *
+       * The distribution strategy options associated with the dataset.
+       * 
+ * + * .tensorflow.data.DistributeOptions distribute_options = 2; + */ + public org.tensorflow.proto.data.DatasetOptions.DistributeOptions.Builder getDistributeOptionsBuilder() { + + onChanged(); + return getDistributeOptionsFieldBuilder().getBuilder(); + } + /** + *
+       * The distribution strategy options associated with the dataset.
+       * 
+ * + * .tensorflow.data.DistributeOptions distribute_options = 2; + */ + public org.tensorflow.proto.data.DatasetOptions.DistributeOptionsOrBuilder getDistributeOptionsOrBuilder() { + if (distributeOptionsBuilder_ != null) { + return distributeOptionsBuilder_.getMessageOrBuilder(); + } else { + return distributeOptions_ == null ? + org.tensorflow.proto.data.DatasetOptions.DistributeOptions.getDefaultInstance() : distributeOptions_; + } + } + /** + *
+       * The distribution strategy options associated with the dataset.
+       * 
+ * + * .tensorflow.data.DistributeOptions distribute_options = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.data.DatasetOptions.DistributeOptions, org.tensorflow.proto.data.DatasetOptions.DistributeOptions.Builder, org.tensorflow.proto.data.DatasetOptions.DistributeOptionsOrBuilder> + getDistributeOptionsFieldBuilder() { + if (distributeOptionsBuilder_ == null) { + distributeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.data.DatasetOptions.DistributeOptions, org.tensorflow.proto.data.DatasetOptions.DistributeOptions.Builder, org.tensorflow.proto.data.DatasetOptions.DistributeOptionsOrBuilder>( + getDistributeOptions(), + getParentForChildren(), + isClean()); + distributeOptions_ = null; + } + return distributeOptionsBuilder_; + } + + private org.tensorflow.proto.data.DatasetOptions.OptimizationOptions optimizationOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.data.DatasetOptions.OptimizationOptions, org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.Builder, org.tensorflow.proto.data.DatasetOptions.OptimizationOptionsOrBuilder> optimizationOptionsBuilder_; + /** + *
+       * The optimization options associated with the dataset.
+       * 
+ * + * .tensorflow.data.OptimizationOptions optimization_options = 3; + * @return Whether the optimizationOptions field is set. + */ + public boolean hasOptimizationOptions() { + return optimizationOptionsBuilder_ != null || optimizationOptions_ != null; + } + /** + *
+       * The optimization options associated with the dataset.
+       * 
+ * + * .tensorflow.data.OptimizationOptions optimization_options = 3; + * @return The optimizationOptions. + */ + public org.tensorflow.proto.data.DatasetOptions.OptimizationOptions getOptimizationOptions() { + if (optimizationOptionsBuilder_ == null) { + return optimizationOptions_ == null ? org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.getDefaultInstance() : optimizationOptions_; + } else { + return optimizationOptionsBuilder_.getMessage(); + } + } + /** + *
+       * The optimization options associated with the dataset.
+       * 
+ * + * .tensorflow.data.OptimizationOptions optimization_options = 3; + */ + public Builder setOptimizationOptions(org.tensorflow.proto.data.DatasetOptions.OptimizationOptions value) { + if (optimizationOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + optimizationOptions_ = value; + onChanged(); + } else { + optimizationOptionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The optimization options associated with the dataset.
+       * 
+ * + * .tensorflow.data.OptimizationOptions optimization_options = 3; + */ + public Builder setOptimizationOptions( + org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.Builder builderForValue) { + if (optimizationOptionsBuilder_ == null) { + optimizationOptions_ = builderForValue.build(); + onChanged(); + } else { + optimizationOptionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The optimization options associated with the dataset.
+       * 
+ * + * .tensorflow.data.OptimizationOptions optimization_options = 3; + */ + public Builder mergeOptimizationOptions(org.tensorflow.proto.data.DatasetOptions.OptimizationOptions value) { + if (optimizationOptionsBuilder_ == null) { + if (optimizationOptions_ != null) { + optimizationOptions_ = + org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.newBuilder(optimizationOptions_).mergeFrom(value).buildPartial(); + } else { + optimizationOptions_ = value; + } + onChanged(); + } else { + optimizationOptionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The optimization options associated with the dataset.
+       * 
+ * + * .tensorflow.data.OptimizationOptions optimization_options = 3; + */ + public Builder clearOptimizationOptions() { + if (optimizationOptionsBuilder_ == null) { + optimizationOptions_ = null; + onChanged(); + } else { + optimizationOptions_ = null; + optimizationOptionsBuilder_ = null; + } + + return this; + } + /** + *
+       * The optimization options associated with the dataset.
+       * 
+ * + * .tensorflow.data.OptimizationOptions optimization_options = 3; + */ + public org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.Builder getOptimizationOptionsBuilder() { + + onChanged(); + return getOptimizationOptionsFieldBuilder().getBuilder(); + } + /** + *
+       * The optimization options associated with the dataset.
+       * 
+ * + * .tensorflow.data.OptimizationOptions optimization_options = 3; + */ + public org.tensorflow.proto.data.DatasetOptions.OptimizationOptionsOrBuilder getOptimizationOptionsOrBuilder() { + if (optimizationOptionsBuilder_ != null) { + return optimizationOptionsBuilder_.getMessageOrBuilder(); + } else { + return optimizationOptions_ == null ? + org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.getDefaultInstance() : optimizationOptions_; + } + } + /** + *
+       * The optimization options associated with the dataset.
+       * 
+ * + * .tensorflow.data.OptimizationOptions optimization_options = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.data.DatasetOptions.OptimizationOptions, org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.Builder, org.tensorflow.proto.data.DatasetOptions.OptimizationOptionsOrBuilder> + getOptimizationOptionsFieldBuilder() { + if (optimizationOptionsBuilder_ == null) { + optimizationOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.data.DatasetOptions.OptimizationOptions, org.tensorflow.proto.data.DatasetOptions.OptimizationOptions.Builder, org.tensorflow.proto.data.DatasetOptions.OptimizationOptionsOrBuilder>( + getOptimizationOptions(), + getParentForChildren(), + isClean()); + optimizationOptions_ = null; + } + return optimizationOptionsBuilder_; + } + + /** + * bool slack = 4; + * @return Whether the slack field is set. + */ + public boolean hasSlack() { + return optionalSlackCase_ == 4; + } + /** + * bool slack = 4; + * @return The slack. + */ + public boolean getSlack() { + if (optionalSlackCase_ == 4) { + return (java.lang.Boolean) optionalSlack_; + } + return false; + } + /** + * bool slack = 4; + * @param value The slack to set. + * @return This builder for chaining. + */ + public Builder setSlack(boolean value) { + optionalSlackCase_ = 4; + optionalSlack_ = value; + onChanged(); + return this; + } + /** + * bool slack = 4; + * @return This builder for chaining. + */ + public Builder clearSlack() { + if (optionalSlackCase_ == 4) { + optionalSlackCase_ = 0; + optionalSlack_ = null; + onChanged(); + } + return this; + } + + private org.tensorflow.proto.data.DatasetOptions.ThreadingOptions threadingOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.data.DatasetOptions.ThreadingOptions, org.tensorflow.proto.data.DatasetOptions.ThreadingOptions.Builder, org.tensorflow.proto.data.DatasetOptions.ThreadingOptionsOrBuilder> threadingOptionsBuilder_; + /** + *
+       * The threading options associated with the dataset.
+       * 
+ * + * .tensorflow.data.ThreadingOptions threading_options = 5; + * @return Whether the threadingOptions field is set. + */ + public boolean hasThreadingOptions() { + return threadingOptionsBuilder_ != null || threadingOptions_ != null; + } + /** + *
+       * The threading options associated with the dataset.
+       * 
+ * + * .tensorflow.data.ThreadingOptions threading_options = 5; + * @return The threadingOptions. + */ + public org.tensorflow.proto.data.DatasetOptions.ThreadingOptions getThreadingOptions() { + if (threadingOptionsBuilder_ == null) { + return threadingOptions_ == null ? org.tensorflow.proto.data.DatasetOptions.ThreadingOptions.getDefaultInstance() : threadingOptions_; + } else { + return threadingOptionsBuilder_.getMessage(); + } + } + /** + *
+       * The threading options associated with the dataset.
+       * 
+ * + * .tensorflow.data.ThreadingOptions threading_options = 5; + */ + public Builder setThreadingOptions(org.tensorflow.proto.data.DatasetOptions.ThreadingOptions value) { + if (threadingOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + threadingOptions_ = value; + onChanged(); + } else { + threadingOptionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The threading options associated with the dataset.
+       * 
+ * + * .tensorflow.data.ThreadingOptions threading_options = 5; + */ + public Builder setThreadingOptions( + org.tensorflow.proto.data.DatasetOptions.ThreadingOptions.Builder builderForValue) { + if (threadingOptionsBuilder_ == null) { + threadingOptions_ = builderForValue.build(); + onChanged(); + } else { + threadingOptionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The threading options associated with the dataset.
+       * 
+ * + * .tensorflow.data.ThreadingOptions threading_options = 5; + */ + public Builder mergeThreadingOptions(org.tensorflow.proto.data.DatasetOptions.ThreadingOptions value) { + if (threadingOptionsBuilder_ == null) { + if (threadingOptions_ != null) { + threadingOptions_ = + org.tensorflow.proto.data.DatasetOptions.ThreadingOptions.newBuilder(threadingOptions_).mergeFrom(value).buildPartial(); + } else { + threadingOptions_ = value; + } + onChanged(); + } else { + threadingOptionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The threading options associated with the dataset.
+       * 
+ * + * .tensorflow.data.ThreadingOptions threading_options = 5; + */ + public Builder clearThreadingOptions() { + if (threadingOptionsBuilder_ == null) { + threadingOptions_ = null; + onChanged(); + } else { + threadingOptions_ = null; + threadingOptionsBuilder_ = null; + } + + return this; + } + /** + *
+       * The threading options associated with the dataset.
+       * 
+ * + * .tensorflow.data.ThreadingOptions threading_options = 5; + */ + public org.tensorflow.proto.data.DatasetOptions.ThreadingOptions.Builder getThreadingOptionsBuilder() { + + onChanged(); + return getThreadingOptionsFieldBuilder().getBuilder(); + } + /** + *
+       * The threading options associated with the dataset.
+       * 
+ * + * .tensorflow.data.ThreadingOptions threading_options = 5; + */ + public org.tensorflow.proto.data.DatasetOptions.ThreadingOptionsOrBuilder getThreadingOptionsOrBuilder() { + if (threadingOptionsBuilder_ != null) { + return threadingOptionsBuilder_.getMessageOrBuilder(); + } else { + return threadingOptions_ == null ? + org.tensorflow.proto.data.DatasetOptions.ThreadingOptions.getDefaultInstance() : threadingOptions_; + } + } + /** + *
+       * The threading options associated with the dataset.
+       * 
+ * + * .tensorflow.data.ThreadingOptions threading_options = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.data.DatasetOptions.ThreadingOptions, org.tensorflow.proto.data.DatasetOptions.ThreadingOptions.Builder, org.tensorflow.proto.data.DatasetOptions.ThreadingOptionsOrBuilder> + getThreadingOptionsFieldBuilder() { + if (threadingOptionsBuilder_ == null) { + threadingOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.data.DatasetOptions.ThreadingOptions, org.tensorflow.proto.data.DatasetOptions.ThreadingOptions.Builder, org.tensorflow.proto.data.DatasetOptions.ThreadingOptionsOrBuilder>( + getThreadingOptions(), + getParentForChildren(), + isClean()); + threadingOptions_ = null; + } + return threadingOptionsBuilder_; + } + + /** + * .tensorflow.data.ExternalStatePolicy external_state_policy = 6; + * @return Whether the externalStatePolicy field is set. + */ + @java.lang.Override + public boolean hasExternalStatePolicy() { + return optionalExternalStatePolicyCase_ == 6; + } + /** + * .tensorflow.data.ExternalStatePolicy external_state_policy = 6; + * @return The enum numeric value on the wire for externalStatePolicy. + */ + @java.lang.Override + public int getExternalStatePolicyValue() { + if (optionalExternalStatePolicyCase_ == 6) { + return ((java.lang.Integer) optionalExternalStatePolicy_).intValue(); + } + return 0; + } + /** + * .tensorflow.data.ExternalStatePolicy external_state_policy = 6; + * @param value The enum numeric value on the wire for externalStatePolicy to set. + * @return This builder for chaining. + */ + public Builder setExternalStatePolicyValue(int value) { + optionalExternalStatePolicyCase_ = 6; + optionalExternalStatePolicy_ = value; + onChanged(); + return this; + } + /** + * .tensorflow.data.ExternalStatePolicy external_state_policy = 6; + * @return The externalStatePolicy. + */ + @java.lang.Override + public org.tensorflow.proto.data.DatasetOptions.ExternalStatePolicy getExternalStatePolicy() { + if (optionalExternalStatePolicyCase_ == 6) { + @SuppressWarnings("deprecation") + org.tensorflow.proto.data.DatasetOptions.ExternalStatePolicy result = org.tensorflow.proto.data.DatasetOptions.ExternalStatePolicy.valueOf( + (java.lang.Integer) optionalExternalStatePolicy_); + return result == null ? org.tensorflow.proto.data.DatasetOptions.ExternalStatePolicy.UNRECOGNIZED : result; + } + return org.tensorflow.proto.data.DatasetOptions.ExternalStatePolicy.POLICY_WARN; + } + /** + * .tensorflow.data.ExternalStatePolicy external_state_policy = 6; + * @param value The externalStatePolicy to set. + * @return This builder for chaining. + */ + public Builder setExternalStatePolicy(org.tensorflow.proto.data.DatasetOptions.ExternalStatePolicy value) { + if (value == null) { + throw new NullPointerException(); + } + optionalExternalStatePolicyCase_ = 6; + optionalExternalStatePolicy_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .tensorflow.data.ExternalStatePolicy external_state_policy = 6; + * @return This builder for chaining. + */ + public Builder clearExternalStatePolicy() { + if (optionalExternalStatePolicyCase_ == 6) { + optionalExternalStatePolicyCase_ = 0; + optionalExternalStatePolicy_ = null; + onChanged(); + } + return this; + } + + /** + * bool symbolic_checkpoint = 8; + * @return Whether the symbolicCheckpoint field is set. + */ + public boolean hasSymbolicCheckpoint() { + return optionalSymbolicCheckpointCase_ == 8; + } + /** + * bool symbolic_checkpoint = 8; + * @return The symbolicCheckpoint. + */ + public boolean getSymbolicCheckpoint() { + if (optionalSymbolicCheckpointCase_ == 8) { + return (java.lang.Boolean) optionalSymbolicCheckpoint_; + } + return false; + } + /** + * bool symbolic_checkpoint = 8; + * @param value The symbolicCheckpoint to set. + * @return This builder for chaining. + */ + public Builder setSymbolicCheckpoint(boolean value) { + optionalSymbolicCheckpointCase_ = 8; + optionalSymbolicCheckpoint_ = value; + onChanged(); + return this; + } + /** + * bool symbolic_checkpoint = 8; + * @return This builder for chaining. + */ + public Builder clearSymbolicCheckpoint() { + if (optionalSymbolicCheckpointCase_ == 8) { + optionalSymbolicCheckpointCase_ = 0; + optionalSymbolicCheckpoint_ = null; + 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:tensorflow.data.Options) + } + + // @@protoc_insertion_point(class_scope:tensorflow.data.Options) + private static final org.tensorflow.proto.data.DatasetOptions.Options DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.data.DatasetOptions.Options(); + } + + public static org.tensorflow.proto.data.DatasetOptions.Options getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Options 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 org.tensorflow.proto.data.DatasetOptions.Options getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_data_AutotuneOptions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_data_AutotuneOptions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_data_CardinalityOptions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_data_CardinalityOptions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_data_DistributeOptions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_data_DistributeOptions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_data_OptimizationOptions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_data_OptimizationOptions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_data_ThreadingOptions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_data_ThreadingOptions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_data_Options_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_data_Options_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n/tensorflow/core/framework/dataset_opti" + + "ons.proto\022\017tensorflow.data\032%tensorflow/c" + + "ore/framework/model.proto\"\371\001\n\017AutotuneOp" + + "tions\022\021\n\007enabled\030\001 \001(\010H\000\022\024\n\ncpu_budget\030\002" + + " \001(\005H\001\022\024\n\nram_budget\030\003 \001(\003H\002\022F\n\022autotune" + + "_algorithm\030\004 \001(\0162(.tensorflow.data.model" + + ".AutotuneAlgorithmH\003B\022\n\020optional_enabled" + + "B\025\n\023optional_cpu_budgetB\025\n\023optional_ram_" + + "budgetB\035\n\033optional_autotune_algorithm\"\321\001" + + "\n\022CardinalityOptions\022G\n\rcompute_level\030\001 " + + "\001(\01620.tensorflow.data.CardinalityOptions" + + ".ComputeLevel\"r\n\014ComputeLevel\022#\n\037CARDINA" + + "LITY_COMPUTE_UNSPECIFIED\020\000\022\033\n\027CARDINALIT" + + "Y_COMPUTE_LOW\020\001\022 \n\034CARDINALITY_COMPUTE_M" + + "ODERATE\020\002\"\177\n\021DistributeOptions\022;\n\021auto_s" + + "hard_policy\030\001 \001(\0162 .tensorflow.data.Auto" + + "ShardPolicy\022\025\n\013num_devices\030\002 \001(\005H\000B\026\n\024op" + + "tional_num_devices\"\231\006\n\023OptimizationOptio" + + "ns\022%\n\033apply_default_optimizations\030\001 \001(\010H" + + "\000\022\027\n\rfilter_fusion\030\006 \001(\010H\001\022\036\n\024map_and_ba" + + "tch_fusion\030\t \001(\010H\002\022\037\n\025map_and_filter_fus" + + "ion\030\n \001(\010H\003\022\024\n\nmap_fusion\030\013 \001(\010H\004\022\035\n\023map" + + "_parallelization\030\014 \001(\010H\005\022\032\n\020noop_elimina" + + "tion\030\016 \001(\010H\006\022\030\n\016parallel_batch\030\017 \001(\010H\007\022#" + + "\n\031shuffle_and_repeat_fusion\030\021 \001(\010H\010\022 \n\026f" + + "ilter_parallelization\030\022 \001(\010H\t\022\031\n\017inject_" + + "prefetch\030\023 \001(\010H\n\022\024\n\nwarm_start\030\024 \001(\010H\013B&" + + "\n$optional_apply_default_optimizationsB\030" + + "\n\026optional_filter_fusionB\037\n\035optional_map" + + "_and_batch_fusionB \n\036optional_map_and_fi" + + "lter_fusionB\025\n\023optional_map_fusionB\036\n\034op" + + "tional_map_parallelizationB\033\n\031optional_n" + + "oop_eliminationB\031\n\027optional_parallel_bat" + + "chB$\n\"optional_shuffle_and_repeat_fusion" + + "B!\n\037optional_filter_parallelizationB\032\n\030o" + + "ptional_inject_prefetchB\025\n\023optional_warm" + + "_startJ\004\010\002\020\003J\004\010\003\020\004J\004\010\004\020\005J\004\010\005\020\006J\004\010\007\020\010J\004\010\010" + + "\020\tJ\004\010\r\020\016J\004\010\020\020\021\"\242\001\n\020ThreadingOptions\022\"\n\030m" + + "ax_intra_op_parallelism\030\001 \001(\005H\000\022!\n\027priva" + + "te_threadpool_size\030\002 \001(\005H\001B#\n!optional_m" + + "ax_intra_op_parallelismB\"\n optional_priv" + + "ate_threadpool_size\"\205\004\n\007Options\022\027\n\rdeter" + + "ministic\030\001 \001(\010H\000\022:\n\020autotune_options\030\007 \001" + + "(\0132 .tensorflow.data.AutotuneOptions\022>\n\022" + + "distribute_options\030\002 \001(\0132\".tensorflow.da" + + "ta.DistributeOptions\022B\n\024optimization_opt" + + "ions\030\003 \001(\0132$.tensorflow.data.Optimizatio" + + "nOptions\022\017\n\005slack\030\004 \001(\010H\001\022<\n\021threading_o" + + "ptions\030\005 \001(\0132!.tensorflow.data.Threading" + + "Options\022E\n\025external_state_policy\030\006 \001(\0162$" + + ".tensorflow.data.ExternalStatePolicyH\002\022\035" + + "\n\023symbolic_checkpoint\030\010 \001(\010H\003B\030\n\026optiona" + + "l_deterministicB\020\n\016optional_slackB \n\036opt" + + "ional_external_state_policyB\036\n\034optional_" + + "symbolic_checkpoint*K\n\017AutoShardPolicy\022\010" + + "\n\004AUTO\020\000\022\010\n\004FILE\020\001\022\010\n\004DATA\020\002\022\010\n\004HINT\020\003\022\020" + + "\n\003OFF\020\377\377\377\377\377\377\377\377\377\001*J\n\023ExternalStatePolicy\022" + + "\017\n\013POLICY_WARN\020\000\022\021\n\rPOLICY_IGNORE\020\001\022\017\n\013P" + + "OLICY_FAIL\020\002Bs\n\031org.tensorflow.proto.dat" + + "aZVgithub.com/tensorflow/tensorflow/tens" + + "orflow/go/core/framework/dataset_options" + + "_go_protob\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + org.tensorflow.proto.data.model.Model.getDescriptor(), + }); + internal_static_tensorflow_data_AutotuneOptions_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_data_AutotuneOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_data_AutotuneOptions_descriptor, + new java.lang.String[] { "Enabled", "CpuBudget", "RamBudget", "AutotuneAlgorithm", "OptionalEnabled", "OptionalCpuBudget", "OptionalRamBudget", "OptionalAutotuneAlgorithm", }); + internal_static_tensorflow_data_CardinalityOptions_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_tensorflow_data_CardinalityOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_data_CardinalityOptions_descriptor, + new java.lang.String[] { "ComputeLevel", }); + internal_static_tensorflow_data_DistributeOptions_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_tensorflow_data_DistributeOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_data_DistributeOptions_descriptor, + new java.lang.String[] { "AutoShardPolicy", "NumDevices", "OptionalNumDevices", }); + internal_static_tensorflow_data_OptimizationOptions_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_tensorflow_data_OptimizationOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_data_OptimizationOptions_descriptor, + new java.lang.String[] { "ApplyDefaultOptimizations", "FilterFusion", "MapAndBatchFusion", "MapAndFilterFusion", "MapFusion", "MapParallelization", "NoopElimination", "ParallelBatch", "ShuffleAndRepeatFusion", "FilterParallelization", "InjectPrefetch", "WarmStart", "OptionalApplyDefaultOptimizations", "OptionalFilterFusion", "OptionalMapAndBatchFusion", "OptionalMapAndFilterFusion", "OptionalMapFusion", "OptionalMapParallelization", "OptionalNoopElimination", "OptionalParallelBatch", "OptionalShuffleAndRepeatFusion", "OptionalFilterParallelization", "OptionalInjectPrefetch", "OptionalWarmStart", }); + internal_static_tensorflow_data_ThreadingOptions_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_tensorflow_data_ThreadingOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_data_ThreadingOptions_descriptor, + new java.lang.String[] { "MaxIntraOpParallelism", "PrivateThreadpoolSize", "OptionalMaxIntraOpParallelism", "OptionalPrivateThreadpoolSize", }); + internal_static_tensorflow_data_Options_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_tensorflow_data_Options_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_data_Options_descriptor, + new java.lang.String[] { "Deterministic", "AutotuneOptions", "DistributeOptions", "OptimizationOptions", "Slack", "ThreadingOptions", "ExternalStatePolicy", "SymbolicCheckpoint", "OptionalDeterministic", "OptionalSlack", "OptionalExternalStatePolicy", "OptionalSymbolicCheckpoint", }); + org.tensorflow.proto.data.model.Model.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/ServiceConfig.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/data/experimental/ServiceConfig.java similarity index 78% rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/ServiceConfig.java rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/data/experimental/ServiceConfig.java index 4970d7cd025..5d143f7c9f8 100644 --- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/data/experimental/ServiceConfig.java +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/data/experimental/ServiceConfig.java @@ -25,6 +25,7 @@ public interface DispatcherConfigOrBuilder extends * * * int64 port = 1; + * @return The port. */ long getPort(); @@ -34,6 +35,7 @@ public interface DispatcherConfigOrBuilder extends * * * string protocol = 2; + * @return The protocol. */ java.lang.String getProtocol(); /** @@ -42,6 +44,7 @@ public interface DispatcherConfigOrBuilder extends * * * string protocol = 2; + * @return The bytes for protocol. */ com.google.protobuf.ByteString getProtocolBytes(); @@ -53,6 +56,7 @@ public interface DispatcherConfigOrBuilder extends * * * string work_dir = 3; + * @return The workDir. */ java.lang.String getWorkDir(); /** @@ -62,6 +66,7 @@ public interface DispatcherConfigOrBuilder extends * * * string work_dir = 3; + * @return The bytes for workDir. */ com.google.protobuf.ByteString getWorkDirBytes(); @@ -73,6 +78,7 @@ public interface DispatcherConfigOrBuilder extends * * * bool fault_tolerant_mode = 4; + * @return The faultTolerantMode. */ boolean getFaultTolerantMode(); @@ -85,6 +91,7 @@ public interface DispatcherConfigOrBuilder extends * * * repeated string worker_addresses = 7; + * @return A list containing the workerAddresses. */ java.util.List getWorkerAddressesList(); @@ -97,6 +104,7 @@ public interface DispatcherConfigOrBuilder extends * * * repeated string worker_addresses = 7; + * @return The count of workerAddresses. */ int getWorkerAddressesCount(); /** @@ -108,6 +116,8 @@ public interface DispatcherConfigOrBuilder extends * * * repeated string worker_addresses = 7; + * @param index The index of the element to return. + * @return The workerAddresses at the given index. */ java.lang.String getWorkerAddresses(int index); /** @@ -119,6 +129,8 @@ public interface DispatcherConfigOrBuilder extends * * * repeated string worker_addresses = 7; + * @param index The index of the value to return. + * @return The bytes of the workerAddresses at the given index. */ com.google.protobuf.ByteString getWorkerAddressesBytes(int index); @@ -130,6 +142,7 @@ public interface DispatcherConfigOrBuilder extends * * * .tensorflow.data.DeploymentMode deployment_mode = 9; + * @return The enum numeric value on the wire for deploymentMode. */ int getDeploymentModeValue(); /** @@ -139,6 +152,7 @@ public interface DispatcherConfigOrBuilder extends * * * .tensorflow.data.DeploymentMode deployment_mode = 9; + * @return The deploymentMode. */ org.tensorflow.proto.data.DataService.DeploymentMode getDeploymentMode(); @@ -150,6 +164,7 @@ public interface DispatcherConfigOrBuilder extends * * * int64 job_gc_check_interval_ms = 5; + * @return The jobGcCheckIntervalMs. */ long getJobGcCheckIntervalMs(); @@ -158,13 +173,29 @@ public interface DispatcherConfigOrBuilder extends * How long a job needs to be unused before it becomes a candidate for garbage * collection. A value of -1 indicates that jobs should never be garbage * collected. A value of 0 indicates that the decision should be left up to - * the runtime. + * the runtime. Note: This does not apply to dynamic sharding unless users + * explicitly opt-in by enabling `gc_dynamic_sharding_jobs` below. * * * int64 job_gc_timeout_ms = 6; + * @return The jobGcTimeoutMs. */ long getJobGcTimeoutMs(); + /** + *
+     * Whether dynamically sharded jobs should be eligible for garbage collection.
+     * These jobs are not garbage collected by default, since if a job is garbage
+     * collected and then re-created, it will revisit all data from the start. If
+     * revisiting data is acceptible and you want automatic reclamation of
+     * iterator memory, set `gc_dynamic_sharding_jobs` to `true`.
+     * 
+ * + * bool gc_dynamic_sharding_jobs = 11; + * @return The gcDynamicShardingJobs. + */ + boolean getGcDynamicShardingJobs(); + /** *
      * How long to wait before garbage-collecting a client that hasn't
@@ -173,18 +204,43 @@ public interface DispatcherConfigOrBuilder extends
      * 
* * int64 client_timeout_ms = 8; + * @return The clientTimeoutMs. */ long getClientTimeoutMs(); + + /** + *
+     * How long to wait for a worker to heartbeat before considering it missing.
+     * A value of 0 indicates that the timeout should be left to the runtime.
+     * 
+ * + * int64 worker_timeout_ms = 10; + * @return The workerTimeoutMs. + */ + long getWorkerTimeoutMs(); + + /** + *
+     * The maximum number of snapshots that a worker can concurrently process at a
+     * given point in time. This is a tradeoff between worker resource usage and
+     * snapshot wall time. A value of 0 indicates that the decision should be left
+     * up to the runtime.
+     * 
+ * + * int64 worker_max_concurrent_snapshots = 12; + * @return The workerMaxConcurrentSnapshots. + */ + long getWorkerMaxConcurrentSnapshots(); } /** *
    * Configuration for a tf.data service DispatchServer.
-   * Next id: 10
+   * Next id: 13
    * 
* * Protobuf type {@code tensorflow.data.experimental.DispatcherConfig} */ - public static final class DispatcherConfig extends + public static final class DispatcherConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.data.experimental.DispatcherConfig) DispatcherConfigOrBuilder { @@ -212,99 +268,6 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private DispatcherConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - port_ = input.readInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - protocol_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - workDir_ = s; - break; - } - case 32: { - - faultTolerantMode_ = input.readBool(); - break; - } - case 40: { - - jobGcCheckIntervalMs_ = input.readInt64(); - break; - } - case 48: { - - jobGcTimeoutMs_ = input.readInt64(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - workerAddresses_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - workerAddresses_.add(s); - break; - } - case 64: { - - clientTimeoutMs_ = input.readInt64(); - break; - } - case 72: { - int rawValue = input.readEnum(); - - deploymentMode_ = rawValue; - 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)) { - workerAddresses_ = workerAddresses_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.proto.data.experimental.ServiceConfig.internal_static_tensorflow_data_experimental_DispatcherConfig_descriptor; @@ -327,7 +290,9 @@ private DispatcherConfig( * * * int64 port = 1; + * @return The port. */ + @java.lang.Override public long getPort() { return port_; } @@ -340,7 +305,9 @@ public long getPort() { * * * string protocol = 2; + * @return The protocol. */ + @java.lang.Override public java.lang.String getProtocol() { java.lang.Object ref = protocol_; if (ref instanceof java.lang.String) { @@ -359,7 +326,9 @@ public java.lang.String getProtocol() { * * * string protocol = 2; + * @return The bytes for protocol. */ + @java.lang.Override public com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; @@ -383,7 +352,9 @@ public java.lang.String getProtocol() { * * * string work_dir = 3; + * @return The workDir. */ + @java.lang.Override public java.lang.String getWorkDir() { java.lang.Object ref = workDir_; if (ref instanceof java.lang.String) { @@ -403,7 +374,9 @@ public java.lang.String getWorkDir() { * * * string work_dir = 3; + * @return The bytes for workDir. */ + @java.lang.Override public com.google.protobuf.ByteString getWorkDirBytes() { java.lang.Object ref = workDir_; @@ -427,7 +400,9 @@ public java.lang.String getWorkDir() { * * * bool fault_tolerant_mode = 4; + * @return The faultTolerantMode. */ + @java.lang.Override public boolean getFaultTolerantMode() { return faultTolerantMode_; } @@ -443,6 +418,7 @@ public boolean getFaultTolerantMode() { * * * repeated string worker_addresses = 7; + * @return A list containing the workerAddresses. */ public com.google.protobuf.ProtocolStringList getWorkerAddressesList() { @@ -457,6 +433,7 @@ public boolean getFaultTolerantMode() { * * * repeated string worker_addresses = 7; + * @return The count of workerAddresses. */ public int getWorkerAddressesCount() { return workerAddresses_.size(); @@ -470,6 +447,8 @@ public int getWorkerAddressesCount() { * * * repeated string worker_addresses = 7; + * @param index The index of the element to return. + * @return The workerAddresses at the given index. */ public java.lang.String getWorkerAddresses(int index) { return workerAddresses_.get(index); @@ -483,6 +462,8 @@ public java.lang.String getWorkerAddresses(int index) { * * * repeated string worker_addresses = 7; + * @param index The index of the value to return. + * @return The bytes of the workerAddresses at the given index. */ public com.google.protobuf.ByteString getWorkerAddressesBytes(int index) { @@ -498,8 +479,9 @@ public java.lang.String getWorkerAddresses(int index) { * * * .tensorflow.data.DeploymentMode deployment_mode = 9; + * @return The enum numeric value on the wire for deploymentMode. */ - public int getDeploymentModeValue() { + @java.lang.Override public int getDeploymentModeValue() { return deploymentMode_; } /** @@ -509,8 +491,9 @@ public int getDeploymentModeValue() { * * * .tensorflow.data.DeploymentMode deployment_mode = 9; + * @return The deploymentMode. */ - public org.tensorflow.proto.data.DataService.DeploymentMode getDeploymentMode() { + @java.lang.Override public org.tensorflow.proto.data.DataService.DeploymentMode getDeploymentMode() { @SuppressWarnings("deprecation") org.tensorflow.proto.data.DataService.DeploymentMode result = org.tensorflow.proto.data.DataService.DeploymentMode.valueOf(deploymentMode_); return result == null ? org.tensorflow.proto.data.DataService.DeploymentMode.UNRECOGNIZED : result; @@ -526,7 +509,9 @@ public org.tensorflow.proto.data.DataService.DeploymentMode getDeploymentMode() * * * int64 job_gc_check_interval_ms = 5; + * @return The jobGcCheckIntervalMs. */ + @java.lang.Override public long getJobGcCheckIntervalMs() { return jobGcCheckIntervalMs_; } @@ -538,15 +523,37 @@ public long getJobGcCheckIntervalMs() { * How long a job needs to be unused before it becomes a candidate for garbage * collection. A value of -1 indicates that jobs should never be garbage * collected. A value of 0 indicates that the decision should be left up to - * the runtime. + * the runtime. Note: This does not apply to dynamic sharding unless users + * explicitly opt-in by enabling `gc_dynamic_sharding_jobs` below. * * * int64 job_gc_timeout_ms = 6; + * @return The jobGcTimeoutMs. */ + @java.lang.Override public long getJobGcTimeoutMs() { return jobGcTimeoutMs_; } + public static final int GC_DYNAMIC_SHARDING_JOBS_FIELD_NUMBER = 11; + private boolean gcDynamicShardingJobs_; + /** + *
+     * Whether dynamically sharded jobs should be eligible for garbage collection.
+     * These jobs are not garbage collected by default, since if a job is garbage
+     * collected and then re-created, it will revisit all data from the start. If
+     * revisiting data is acceptible and you want automatic reclamation of
+     * iterator memory, set `gc_dynamic_sharding_jobs` to `true`.
+     * 
+ * + * bool gc_dynamic_sharding_jobs = 11; + * @return The gcDynamicShardingJobs. + */ + @java.lang.Override + public boolean getGcDynamicShardingJobs() { + return gcDynamicShardingJobs_; + } + public static final int CLIENT_TIMEOUT_MS_FIELD_NUMBER = 8; private long clientTimeoutMs_; /** @@ -557,11 +564,47 @@ public long getJobGcTimeoutMs() { * * * int64 client_timeout_ms = 8; + * @return The clientTimeoutMs. */ + @java.lang.Override public long getClientTimeoutMs() { return clientTimeoutMs_; } + public static final int WORKER_TIMEOUT_MS_FIELD_NUMBER = 10; + private long workerTimeoutMs_; + /** + *
+     * How long to wait for a worker to heartbeat before considering it missing.
+     * A value of 0 indicates that the timeout should be left to the runtime.
+     * 
+ * + * int64 worker_timeout_ms = 10; + * @return The workerTimeoutMs. + */ + @java.lang.Override + public long getWorkerTimeoutMs() { + return workerTimeoutMs_; + } + + public static final int WORKER_MAX_CONCURRENT_SNAPSHOTS_FIELD_NUMBER = 12; + private long workerMaxConcurrentSnapshots_; + /** + *
+     * The maximum number of snapshots that a worker can concurrently process at a
+     * given point in time. This is a tradeoff between worker resource usage and
+     * snapshot wall time. A value of 0 indicates that the decision should be left
+     * up to the runtime.
+     * 
+ * + * int64 worker_max_concurrent_snapshots = 12; + * @return The workerMaxConcurrentSnapshots. + */ + @java.lang.Override + public long getWorkerMaxConcurrentSnapshots() { + return workerMaxConcurrentSnapshots_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -579,10 +622,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (port_ != 0L) { output.writeInt64(1, port_); } - if (!getProtocolBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, protocol_); } - if (!getWorkDirBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workDir_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workDir_); } if (faultTolerantMode_ != false) { @@ -603,7 +646,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (deploymentMode_ != org.tensorflow.proto.data.DataService.DeploymentMode.DEPLOYMENT_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(9, deploymentMode_); } - unknownFields.writeTo(output); + if (workerTimeoutMs_ != 0L) { + output.writeInt64(10, workerTimeoutMs_); + } + if (gcDynamicShardingJobs_ != false) { + output.writeBool(11, gcDynamicShardingJobs_); + } + if (workerMaxConcurrentSnapshots_ != 0L) { + output.writeInt64(12, workerMaxConcurrentSnapshots_); + } + getUnknownFields().writeTo(output); } @java.lang.Override @@ -616,10 +668,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, port_); } - if (!getProtocolBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, protocol_); } - if (!getWorkDirBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workDir_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workDir_); } if (faultTolerantMode_ != false) { @@ -650,7 +702,19 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, deploymentMode_); } - size += unknownFields.getSerializedSize(); + if (workerTimeoutMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(10, workerTimeoutMs_); + } + if (gcDynamicShardingJobs_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(11, gcDynamicShardingJobs_); + } + if (workerMaxConcurrentSnapshots_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(12, workerMaxConcurrentSnapshots_); + } + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -680,9 +744,15 @@ public boolean equals(final java.lang.Object obj) { != other.getJobGcCheckIntervalMs()) return false; if (getJobGcTimeoutMs() != other.getJobGcTimeoutMs()) return false; + if (getGcDynamicShardingJobs() + != other.getGcDynamicShardingJobs()) return false; if (getClientTimeoutMs() != other.getClientTimeoutMs()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (getWorkerTimeoutMs() + != other.getWorkerTimeoutMs()) return false; + if (getWorkerMaxConcurrentSnapshots() + != other.getWorkerMaxConcurrentSnapshots()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -715,10 +785,19 @@ public int hashCode() { hash = (37 * hash) + JOB_GC_TIMEOUT_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getJobGcTimeoutMs()); + hash = (37 * hash) + GC_DYNAMIC_SHARDING_JOBS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getGcDynamicShardingJobs()); hash = (37 * hash) + CLIENT_TIMEOUT_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getClientTimeoutMs()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (37 * hash) + WORKER_TIMEOUT_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getWorkerTimeoutMs()); + hash = (37 * hash) + WORKER_MAX_CONCURRENT_SNAPSHOTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getWorkerMaxConcurrentSnapshots()); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -816,7 +895,7 @@ protected Builder newBuilderForType( /** *
      * Configuration for a tf.data service DispatchServer.
-     * Next id: 10
+     * Next id: 13
      * 
* * Protobuf type {@code tensorflow.data.experimental.DispatcherConfig} @@ -840,18 +919,13 @@ public static final class Builder extends // Construct using org.tensorflow.proto.data.experimental.ServiceConfig.DispatcherConfig.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -872,8 +946,14 @@ public Builder clear() { jobGcTimeoutMs_ = 0L; + gcDynamicShardingJobs_ = false; + clientTimeoutMs_ = 0L; + workerTimeoutMs_ = 0L; + + workerMaxConcurrentSnapshots_ = 0L; + return this; } @@ -913,7 +993,10 @@ public org.tensorflow.proto.data.experimental.ServiceConfig.DispatcherConfig bui result.deploymentMode_ = deploymentMode_; result.jobGcCheckIntervalMs_ = jobGcCheckIntervalMs_; result.jobGcTimeoutMs_ = jobGcTimeoutMs_; + result.gcDynamicShardingJobs_ = gcDynamicShardingJobs_; result.clientTimeoutMs_ = clientTimeoutMs_; + result.workerTimeoutMs_ = workerTimeoutMs_; + result.workerMaxConcurrentSnapshots_ = workerMaxConcurrentSnapshots_; onBuilt(); return result; } @@ -995,10 +1078,19 @@ public Builder mergeFrom(org.tensorflow.proto.data.experimental.ServiceConfig.Di if (other.getJobGcTimeoutMs() != 0L) { setJobGcTimeoutMs(other.getJobGcTimeoutMs()); } + if (other.getGcDynamicShardingJobs() != false) { + setGcDynamicShardingJobs(other.getGcDynamicShardingJobs()); + } if (other.getClientTimeoutMs() != 0L) { setClientTimeoutMs(other.getClientTimeoutMs()); } - this.mergeUnknownFields(other.unknownFields); + if (other.getWorkerTimeoutMs() != 0L) { + setWorkerTimeoutMs(other.getWorkerTimeoutMs()); + } + if (other.getWorkerMaxConcurrentSnapshots() != 0L) { + setWorkerMaxConcurrentSnapshots(other.getWorkerMaxConcurrentSnapshots()); + } + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1013,17 +1105,91 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.data.experimental.ServiceConfig.DispatcherConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + port_ = input.readInt64(); + + break; + } // case 8 + case 18: { + protocol_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + workDir_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: { + faultTolerantMode_ = input.readBool(); + + break; + } // case 32 + case 40: { + jobGcCheckIntervalMs_ = input.readInt64(); + + break; + } // case 40 + case 48: { + jobGcTimeoutMs_ = input.readInt64(); + + break; + } // case 48 + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + ensureWorkerAddressesIsMutable(); + workerAddresses_.add(s); + break; + } // case 58 + case 64: { + clientTimeoutMs_ = input.readInt64(); + + break; + } // case 64 + case 72: { + deploymentMode_ = input.readEnum(); + + break; + } // case 72 + case 80: { + workerTimeoutMs_ = input.readInt64(); + + break; + } // case 80 + case 88: { + gcDynamicShardingJobs_ = input.readBool(); + + break; + } // case 88 + case 96: { + workerMaxConcurrentSnapshots_ = input.readInt64(); + + break; + } // case 96 + 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) { - parsedMessage = (org.tensorflow.proto.data.experimental.ServiceConfig.DispatcherConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -1036,7 +1202,9 @@ public Builder mergeFrom( * * * int64 port = 1; + * @return The port. */ + @java.lang.Override public long getPort() { return port_; } @@ -1047,6 +1215,8 @@ public long getPort() { * * * int64 port = 1; + * @param value The port to set. + * @return This builder for chaining. */ public Builder setPort(long value) { @@ -1061,6 +1231,7 @@ public Builder setPort(long value) { * * * int64 port = 1; + * @return This builder for chaining. */ public Builder clearPort() { @@ -1076,6 +1247,7 @@ public Builder clearPort() { * * * string protocol = 2; + * @return The protocol. */ public java.lang.String getProtocol() { java.lang.Object ref = protocol_; @@ -1095,6 +1267,7 @@ public java.lang.String getProtocol() { * * * string protocol = 2; + * @return The bytes for protocol. */ public com.google.protobuf.ByteString getProtocolBytes() { @@ -1115,6 +1288,8 @@ public java.lang.String getProtocol() { * * * string protocol = 2; + * @param value The protocol to set. + * @return This builder for chaining. */ public Builder setProtocol( java.lang.String value) { @@ -1132,6 +1307,7 @@ public Builder setProtocol( * * * string protocol = 2; + * @return This builder for chaining. */ public Builder clearProtocol() { @@ -1145,6 +1321,8 @@ public Builder clearProtocol() { * * * string protocol = 2; + * @param value The bytes for protocol to set. + * @return This builder for chaining. */ public Builder setProtocolBytes( com.google.protobuf.ByteString value) { @@ -1166,6 +1344,7 @@ public Builder setProtocolBytes( * * * string work_dir = 3; + * @return The workDir. */ public java.lang.String getWorkDir() { java.lang.Object ref = workDir_; @@ -1186,6 +1365,7 @@ public java.lang.String getWorkDir() { * * * string work_dir = 3; + * @return The bytes for workDir. */ public com.google.protobuf.ByteString getWorkDirBytes() { @@ -1207,6 +1387,8 @@ public java.lang.String getWorkDir() { * * * string work_dir = 3; + * @param value The workDir to set. + * @return This builder for chaining. */ public Builder setWorkDir( java.lang.String value) { @@ -1225,6 +1407,7 @@ public Builder setWorkDir( * * * string work_dir = 3; + * @return This builder for chaining. */ public Builder clearWorkDir() { @@ -1239,6 +1422,8 @@ public Builder clearWorkDir() { * * * string work_dir = 3; + * @param value The bytes for workDir to set. + * @return This builder for chaining. */ public Builder setWorkDirBytes( com.google.protobuf.ByteString value) { @@ -1260,7 +1445,9 @@ public Builder setWorkDirBytes( * * * bool fault_tolerant_mode = 4; + * @return The faultTolerantMode. */ + @java.lang.Override public boolean getFaultTolerantMode() { return faultTolerantMode_; } @@ -1271,6 +1458,8 @@ public boolean getFaultTolerantMode() { * * * bool fault_tolerant_mode = 4; + * @param value The faultTolerantMode to set. + * @return This builder for chaining. */ public Builder setFaultTolerantMode(boolean value) { @@ -1285,6 +1474,7 @@ public Builder setFaultTolerantMode(boolean value) { * * * bool fault_tolerant_mode = 4; + * @return This builder for chaining. */ public Builder clearFaultTolerantMode() { @@ -1309,6 +1499,7 @@ private void ensureWorkerAddressesIsMutable() { * * * repeated string worker_addresses = 7; + * @return A list containing the workerAddresses. */ public com.google.protobuf.ProtocolStringList getWorkerAddressesList() { @@ -1323,6 +1514,7 @@ private void ensureWorkerAddressesIsMutable() { * * * repeated string worker_addresses = 7; + * @return The count of workerAddresses. */ public int getWorkerAddressesCount() { return workerAddresses_.size(); @@ -1336,6 +1528,8 @@ public int getWorkerAddressesCount() { * * * repeated string worker_addresses = 7; + * @param index The index of the element to return. + * @return The workerAddresses at the given index. */ public java.lang.String getWorkerAddresses(int index) { return workerAddresses_.get(index); @@ -1349,6 +1543,8 @@ public java.lang.String getWorkerAddresses(int index) { * * * repeated string worker_addresses = 7; + * @param index The index of the value to return. + * @return The bytes of the workerAddresses at the given index. */ public com.google.protobuf.ByteString getWorkerAddressesBytes(int index) { @@ -1363,6 +1559,9 @@ public java.lang.String getWorkerAddresses(int index) { * * * repeated string worker_addresses = 7; + * @param index The index to set the value at. + * @param value The workerAddresses to set. + * @return This builder for chaining. */ public Builder setWorkerAddresses( int index, java.lang.String value) { @@ -1383,6 +1582,8 @@ public Builder setWorkerAddresses( * * * repeated string worker_addresses = 7; + * @param value The workerAddresses to add. + * @return This builder for chaining. */ public Builder addWorkerAddresses( java.lang.String value) { @@ -1403,6 +1604,8 @@ public Builder addWorkerAddresses( * * * repeated string worker_addresses = 7; + * @param values The workerAddresses to add. + * @return This builder for chaining. */ public Builder addAllWorkerAddresses( java.lang.Iterable values) { @@ -1421,6 +1624,7 @@ public Builder addAllWorkerAddresses( * * * repeated string worker_addresses = 7; + * @return This builder for chaining. */ public Builder clearWorkerAddresses() { workerAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1437,6 +1641,8 @@ public Builder clearWorkerAddresses() { * * * repeated string worker_addresses = 7; + * @param value The bytes of the workerAddresses to add. + * @return This builder for chaining. */ public Builder addWorkerAddressesBytes( com.google.protobuf.ByteString value) { @@ -1458,8 +1664,9 @@ public Builder addWorkerAddressesBytes( * * * .tensorflow.data.DeploymentMode deployment_mode = 9; + * @return The enum numeric value on the wire for deploymentMode. */ - public int getDeploymentModeValue() { + @java.lang.Override public int getDeploymentModeValue() { return deploymentMode_; } /** @@ -1469,8 +1676,11 @@ public int getDeploymentModeValue() { * * * .tensorflow.data.DeploymentMode deployment_mode = 9; + * @param value The enum numeric value on the wire for deploymentMode to set. + * @return This builder for chaining. */ public Builder setDeploymentModeValue(int value) { + deploymentMode_ = value; onChanged(); return this; @@ -1482,7 +1692,9 @@ public Builder setDeploymentModeValue(int value) { * * * .tensorflow.data.DeploymentMode deployment_mode = 9; + * @return The deploymentMode. */ + @java.lang.Override public org.tensorflow.proto.data.DataService.DeploymentMode getDeploymentMode() { @SuppressWarnings("deprecation") org.tensorflow.proto.data.DataService.DeploymentMode result = org.tensorflow.proto.data.DataService.DeploymentMode.valueOf(deploymentMode_); @@ -1495,6 +1707,8 @@ public org.tensorflow.proto.data.DataService.DeploymentMode getDeploymentMode() * * * .tensorflow.data.DeploymentMode deployment_mode = 9; + * @param value The deploymentMode to set. + * @return This builder for chaining. */ public Builder setDeploymentMode(org.tensorflow.proto.data.DataService.DeploymentMode value) { if (value == null) { @@ -1512,6 +1726,7 @@ public Builder setDeploymentMode(org.tensorflow.proto.data.DataService.Deploymen * * * .tensorflow.data.DeploymentMode deployment_mode = 9; + * @return This builder for chaining. */ public Builder clearDeploymentMode() { @@ -1529,7 +1744,9 @@ public Builder clearDeploymentMode() { * * * int64 job_gc_check_interval_ms = 5; + * @return The jobGcCheckIntervalMs. */ + @java.lang.Override public long getJobGcCheckIntervalMs() { return jobGcCheckIntervalMs_; } @@ -1541,6 +1758,8 @@ public long getJobGcCheckIntervalMs() { * * * int64 job_gc_check_interval_ms = 5; + * @param value The jobGcCheckIntervalMs to set. + * @return This builder for chaining. */ public Builder setJobGcCheckIntervalMs(long value) { @@ -1556,6 +1775,7 @@ public Builder setJobGcCheckIntervalMs(long value) { * * * int64 job_gc_check_interval_ms = 5; + * @return This builder for chaining. */ public Builder clearJobGcCheckIntervalMs() { @@ -1570,11 +1790,14 @@ public Builder clearJobGcCheckIntervalMs() { * How long a job needs to be unused before it becomes a candidate for garbage * collection. A value of -1 indicates that jobs should never be garbage * collected. A value of 0 indicates that the decision should be left up to - * the runtime. + * the runtime. Note: This does not apply to dynamic sharding unless users + * explicitly opt-in by enabling `gc_dynamic_sharding_jobs` below. * * * int64 job_gc_timeout_ms = 6; + * @return The jobGcTimeoutMs. */ + @java.lang.Override public long getJobGcTimeoutMs() { return jobGcTimeoutMs_; } @@ -1583,10 +1806,13 @@ public long getJobGcTimeoutMs() { * How long a job needs to be unused before it becomes a candidate for garbage * collection. A value of -1 indicates that jobs should never be garbage * collected. A value of 0 indicates that the decision should be left up to - * the runtime. + * the runtime. Note: This does not apply to dynamic sharding unless users + * explicitly opt-in by enabling `gc_dynamic_sharding_jobs` below. * * * int64 job_gc_timeout_ms = 6; + * @param value The jobGcTimeoutMs to set. + * @return This builder for chaining. */ public Builder setJobGcTimeoutMs(long value) { @@ -1599,10 +1825,12 @@ public Builder setJobGcTimeoutMs(long value) { * How long a job needs to be unused before it becomes a candidate for garbage * collection. A value of -1 indicates that jobs should never be garbage * collected. A value of 0 indicates that the decision should be left up to - * the runtime. + * the runtime. Note: This does not apply to dynamic sharding unless users + * explicitly opt-in by enabling `gc_dynamic_sharding_jobs` below. * * * int64 job_gc_timeout_ms = 6; + * @return This builder for chaining. */ public Builder clearJobGcTimeoutMs() { @@ -1611,6 +1839,61 @@ public Builder clearJobGcTimeoutMs() { return this; } + private boolean gcDynamicShardingJobs_ ; + /** + *
+       * Whether dynamically sharded jobs should be eligible for garbage collection.
+       * These jobs are not garbage collected by default, since if a job is garbage
+       * collected and then re-created, it will revisit all data from the start. If
+       * revisiting data is acceptible and you want automatic reclamation of
+       * iterator memory, set `gc_dynamic_sharding_jobs` to `true`.
+       * 
+ * + * bool gc_dynamic_sharding_jobs = 11; + * @return The gcDynamicShardingJobs. + */ + @java.lang.Override + public boolean getGcDynamicShardingJobs() { + return gcDynamicShardingJobs_; + } + /** + *
+       * Whether dynamically sharded jobs should be eligible for garbage collection.
+       * These jobs are not garbage collected by default, since if a job is garbage
+       * collected and then re-created, it will revisit all data from the start. If
+       * revisiting data is acceptible and you want automatic reclamation of
+       * iterator memory, set `gc_dynamic_sharding_jobs` to `true`.
+       * 
+ * + * bool gc_dynamic_sharding_jobs = 11; + * @param value The gcDynamicShardingJobs to set. + * @return This builder for chaining. + */ + public Builder setGcDynamicShardingJobs(boolean value) { + + gcDynamicShardingJobs_ = value; + onChanged(); + return this; + } + /** + *
+       * Whether dynamically sharded jobs should be eligible for garbage collection.
+       * These jobs are not garbage collected by default, since if a job is garbage
+       * collected and then re-created, it will revisit all data from the start. If
+       * revisiting data is acceptible and you want automatic reclamation of
+       * iterator memory, set `gc_dynamic_sharding_jobs` to `true`.
+       * 
+ * + * bool gc_dynamic_sharding_jobs = 11; + * @return This builder for chaining. + */ + public Builder clearGcDynamicShardingJobs() { + + gcDynamicShardingJobs_ = false; + onChanged(); + return this; + } + private long clientTimeoutMs_ ; /** *
@@ -1620,7 +1903,9 @@ public Builder clearJobGcTimeoutMs() {
        * 
* * int64 client_timeout_ms = 8; + * @return The clientTimeoutMs. */ + @java.lang.Override public long getClientTimeoutMs() { return clientTimeoutMs_; } @@ -1632,6 +1917,8 @@ public long getClientTimeoutMs() { * * * int64 client_timeout_ms = 8; + * @param value The clientTimeoutMs to set. + * @return This builder for chaining. */ public Builder setClientTimeoutMs(long value) { @@ -1647,6 +1934,7 @@ public Builder setClientTimeoutMs(long value) { * * * int64 client_timeout_ms = 8; + * @return This builder for chaining. */ public Builder clearClientTimeoutMs() { @@ -1654,6 +1942,104 @@ public Builder clearClientTimeoutMs() { onChanged(); return this; } + + private long workerTimeoutMs_ ; + /** + *
+       * How long to wait for a worker to heartbeat before considering it missing.
+       * A value of 0 indicates that the timeout should be left to the runtime.
+       * 
+ * + * int64 worker_timeout_ms = 10; + * @return The workerTimeoutMs. + */ + @java.lang.Override + public long getWorkerTimeoutMs() { + return workerTimeoutMs_; + } + /** + *
+       * How long to wait for a worker to heartbeat before considering it missing.
+       * A value of 0 indicates that the timeout should be left to the runtime.
+       * 
+ * + * int64 worker_timeout_ms = 10; + * @param value The workerTimeoutMs to set. + * @return This builder for chaining. + */ + public Builder setWorkerTimeoutMs(long value) { + + workerTimeoutMs_ = value; + onChanged(); + return this; + } + /** + *
+       * How long to wait for a worker to heartbeat before considering it missing.
+       * A value of 0 indicates that the timeout should be left to the runtime.
+       * 
+ * + * int64 worker_timeout_ms = 10; + * @return This builder for chaining. + */ + public Builder clearWorkerTimeoutMs() { + + workerTimeoutMs_ = 0L; + onChanged(); + return this; + } + + private long workerMaxConcurrentSnapshots_ ; + /** + *
+       * The maximum number of snapshots that a worker can concurrently process at a
+       * given point in time. This is a tradeoff between worker resource usage and
+       * snapshot wall time. A value of 0 indicates that the decision should be left
+       * up to the runtime.
+       * 
+ * + * int64 worker_max_concurrent_snapshots = 12; + * @return The workerMaxConcurrentSnapshots. + */ + @java.lang.Override + public long getWorkerMaxConcurrentSnapshots() { + return workerMaxConcurrentSnapshots_; + } + /** + *
+       * The maximum number of snapshots that a worker can concurrently process at a
+       * given point in time. This is a tradeoff between worker resource usage and
+       * snapshot wall time. A value of 0 indicates that the decision should be left
+       * up to the runtime.
+       * 
+ * + * int64 worker_max_concurrent_snapshots = 12; + * @param value The workerMaxConcurrentSnapshots to set. + * @return This builder for chaining. + */ + public Builder setWorkerMaxConcurrentSnapshots(long value) { + + workerMaxConcurrentSnapshots_ = value; + onChanged(); + return this; + } + /** + *
+       * The maximum number of snapshots that a worker can concurrently process at a
+       * given point in time. This is a tradeoff between worker resource usage and
+       * snapshot wall time. A value of 0 indicates that the decision should be left
+       * up to the runtime.
+       * 
+ * + * int64 worker_max_concurrent_snapshots = 12; + * @return This builder for chaining. + */ + public Builder clearWorkerMaxConcurrentSnapshots() { + + workerMaxConcurrentSnapshots_ = 0L; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1687,7 +2073,18 @@ public DispatcherConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DispatcherConfig(input, extensionRegistry); + 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(); } }; @@ -1718,6 +2115,7 @@ public interface WorkerConfigOrBuilder extends * * * int64 port = 1; + * @return The port. */ long getPort(); @@ -1727,6 +2125,7 @@ public interface WorkerConfigOrBuilder extends * * * string protocol = 2; + * @return The protocol. */ java.lang.String getProtocol(); /** @@ -1735,6 +2134,7 @@ public interface WorkerConfigOrBuilder extends * * * string protocol = 2; + * @return The bytes for protocol. */ com.google.protobuf.ByteString getProtocolBytes(); @@ -1745,6 +2145,7 @@ public interface WorkerConfigOrBuilder extends * * * string dispatcher_address = 3; + * @return The dispatcherAddress. */ java.lang.String getDispatcherAddress(); /** @@ -1753,6 +2154,7 @@ public interface WorkerConfigOrBuilder extends * * * string dispatcher_address = 3; + * @return The bytes for dispatcherAddress. */ com.google.protobuf.ByteString getDispatcherAddressBytes(); @@ -1765,6 +2167,7 @@ public interface WorkerConfigOrBuilder extends * * * string worker_address = 4; + * @return The workerAddress. */ java.lang.String getWorkerAddress(); /** @@ -1775,6 +2178,7 @@ public interface WorkerConfigOrBuilder extends * * * string worker_address = 4; + * @return The bytes for workerAddress. */ com.google.protobuf.ByteString getWorkerAddressBytes(); @@ -1788,6 +2192,7 @@ public interface WorkerConfigOrBuilder extends * * * repeated string worker_tags = 10; + * @return A list containing the workerTags. */ java.util.List getWorkerTagsList(); @@ -1800,6 +2205,7 @@ public interface WorkerConfigOrBuilder extends * * * repeated string worker_tags = 10; + * @return The count of workerTags. */ int getWorkerTagsCount(); /** @@ -1811,6 +2217,8 @@ public interface WorkerConfigOrBuilder extends * * * repeated string worker_tags = 10; + * @param index The index of the element to return. + * @return The workerTags at the given index. */ java.lang.String getWorkerTags(int index); /** @@ -1822,6 +2230,8 @@ public interface WorkerConfigOrBuilder extends * * * repeated string worker_tags = 10; + * @param index The index of the value to return. + * @return The bytes of the workerTags at the given index. */ com.google.protobuf.ByteString getWorkerTagsBytes(int index); @@ -1833,6 +2243,7 @@ public interface WorkerConfigOrBuilder extends * * * int64 heartbeat_interval_ms = 5; + * @return The heartbeatIntervalMs. */ long getHeartbeatIntervalMs(); @@ -1844,6 +2255,7 @@ public interface WorkerConfigOrBuilder extends * * * int64 dispatcher_timeout_ms = 6; + * @return The dispatcherTimeoutMs. */ long getDispatcherTimeoutMs(); @@ -1853,6 +2265,7 @@ public interface WorkerConfigOrBuilder extends * * * string data_transfer_protocol = 7; + * @return The dataTransferProtocol. */ java.lang.String getDataTransferProtocol(); /** @@ -1861,6 +2274,7 @@ public interface WorkerConfigOrBuilder extends * * * string data_transfer_protocol = 7; + * @return The bytes for dataTransferProtocol. */ com.google.protobuf.ByteString getDataTransferProtocolBytes(); @@ -1873,6 +2287,7 @@ public interface WorkerConfigOrBuilder extends * * * string data_transfer_address = 8; + * @return The dataTransferAddress. */ java.lang.String getDataTransferAddress(); /** @@ -1883,6 +2298,7 @@ public interface WorkerConfigOrBuilder extends * * * string data_transfer_address = 8; + * @return The bytes for dataTransferAddress. */ com.google.protobuf.ByteString getDataTransferAddressBytes(); @@ -1894,9 +2310,21 @@ public interface WorkerConfigOrBuilder extends * * * int64 cross_trainer_cache_size_bytes = 11; + * @return The crossTrainerCacheSizeBytes. */ long getCrossTrainerCacheSizeBytes(); + /** + *
+     * The maximum size of a distributed snapshot chunk file. A value of 0
+     * indicates that the decision should be left up to the runtime.
+     * 
+ * + * int64 snapshot_max_chunk_size_bytes = 12; + * @return The snapshotMaxChunkSizeBytes. + */ + long getSnapshotMaxChunkSizeBytes(); + /** *
      * When shutting down a worker, how long to wait for the gRPC server to
@@ -1905,18 +2333,19 @@ public interface WorkerConfigOrBuilder extends
      * 
* * int64 shutdown_quiet_period_ms = 9; + * @return The shutdownQuietPeriodMs. */ long getShutdownQuietPeriodMs(); } /** *
    * Configuration for a tf.data service WorkerServer.
-   * Next id: 12
+   * Next id: 13
    * 
* * Protobuf type {@code tensorflow.data.experimental.WorkerConfig} */ - public static final class WorkerConfig extends + public static final class WorkerConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.data.experimental.WorkerConfig) WorkerConfigOrBuilder { @@ -1946,111 +2375,6 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private WorkerConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - port_ = input.readInt64(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - protocol_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - dispatcherAddress_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - workerAddress_ = s; - break; - } - case 40: { - - heartbeatIntervalMs_ = input.readInt64(); - break; - } - case 48: { - - dispatcherTimeoutMs_ = input.readInt64(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - dataTransferProtocol_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - dataTransferAddress_ = s; - break; - } - case 72: { - - shutdownQuietPeriodMs_ = input.readInt64(); - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - workerTags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - workerTags_.add(s); - break; - } - case 88: { - - crossTrainerCacheSizeBytes_ = input.readInt64(); - 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)) { - workerTags_ = workerTags_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.proto.data.experimental.ServiceConfig.internal_static_tensorflow_data_experimental_WorkerConfig_descriptor; @@ -2073,7 +2397,9 @@ private WorkerConfig( * * * int64 port = 1; + * @return The port. */ + @java.lang.Override public long getPort() { return port_; } @@ -2086,7 +2412,9 @@ public long getPort() { * * * string protocol = 2; + * @return The protocol. */ + @java.lang.Override public java.lang.String getProtocol() { java.lang.Object ref = protocol_; if (ref instanceof java.lang.String) { @@ -2105,7 +2433,9 @@ public java.lang.String getProtocol() { * * * string protocol = 2; + * @return The bytes for protocol. */ + @java.lang.Override public com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; @@ -2128,7 +2458,9 @@ public java.lang.String getProtocol() { * * * string dispatcher_address = 3; + * @return The dispatcherAddress. */ + @java.lang.Override public java.lang.String getDispatcherAddress() { java.lang.Object ref = dispatcherAddress_; if (ref instanceof java.lang.String) { @@ -2147,7 +2479,9 @@ public java.lang.String getDispatcherAddress() { * * * string dispatcher_address = 3; + * @return The bytes for dispatcherAddress. */ + @java.lang.Override public com.google.protobuf.ByteString getDispatcherAddressBytes() { java.lang.Object ref = dispatcherAddress_; @@ -2172,7 +2506,9 @@ public java.lang.String getDispatcherAddress() { * * * string worker_address = 4; + * @return The workerAddress. */ + @java.lang.Override public java.lang.String getWorkerAddress() { java.lang.Object ref = workerAddress_; if (ref instanceof java.lang.String) { @@ -2193,7 +2529,9 @@ public java.lang.String getWorkerAddress() { * * * string worker_address = 4; + * @return The bytes for workerAddress. */ + @java.lang.Override public com.google.protobuf.ByteString getWorkerAddressBytes() { java.lang.Object ref = workerAddress_; @@ -2219,6 +2557,7 @@ public java.lang.String getWorkerAddress() { * * * repeated string worker_tags = 10; + * @return A list containing the workerTags. */ public com.google.protobuf.ProtocolStringList getWorkerTagsList() { @@ -2233,6 +2572,7 @@ public java.lang.String getWorkerAddress() { * * * repeated string worker_tags = 10; + * @return The count of workerTags. */ public int getWorkerTagsCount() { return workerTags_.size(); @@ -2246,6 +2586,8 @@ public int getWorkerTagsCount() { * * * repeated string worker_tags = 10; + * @param index The index of the element to return. + * @return The workerTags at the given index. */ public java.lang.String getWorkerTags(int index) { return workerTags_.get(index); @@ -2259,6 +2601,8 @@ public java.lang.String getWorkerTags(int index) { * * * repeated string worker_tags = 10; + * @param index The index of the value to return. + * @return The bytes of the workerTags at the given index. */ public com.google.protobuf.ByteString getWorkerTagsBytes(int index) { @@ -2274,7 +2618,9 @@ public java.lang.String getWorkerTags(int index) { * * * int64 heartbeat_interval_ms = 5; + * @return The heartbeatIntervalMs. */ + @java.lang.Override public long getHeartbeatIntervalMs() { return heartbeatIntervalMs_; } @@ -2289,7 +2635,9 @@ public long getHeartbeatIntervalMs() { * * * int64 dispatcher_timeout_ms = 6; + * @return The dispatcherTimeoutMs. */ + @java.lang.Override public long getDispatcherTimeoutMs() { return dispatcherTimeoutMs_; } @@ -2302,7 +2650,9 @@ public long getDispatcherTimeoutMs() { * * * string data_transfer_protocol = 7; + * @return The dataTransferProtocol. */ + @java.lang.Override public java.lang.String getDataTransferProtocol() { java.lang.Object ref = dataTransferProtocol_; if (ref instanceof java.lang.String) { @@ -2321,7 +2671,9 @@ public java.lang.String getDataTransferProtocol() { * * * string data_transfer_protocol = 7; + * @return The bytes for dataTransferProtocol. */ + @java.lang.Override public com.google.protobuf.ByteString getDataTransferProtocolBytes() { java.lang.Object ref = dataTransferProtocol_; @@ -2346,7 +2698,9 @@ public java.lang.String getDataTransferProtocol() { * * * string data_transfer_address = 8; + * @return The dataTransferAddress. */ + @java.lang.Override public java.lang.String getDataTransferAddress() { java.lang.Object ref = dataTransferAddress_; if (ref instanceof java.lang.String) { @@ -2367,7 +2721,9 @@ public java.lang.String getDataTransferAddress() { * * * string data_transfer_address = 8; + * @return The bytes for dataTransferAddress. */ + @java.lang.Override public com.google.protobuf.ByteString getDataTransferAddressBytes() { java.lang.Object ref = dataTransferAddress_; @@ -2391,11 +2747,29 @@ public java.lang.String getDataTransferAddress() { * * * int64 cross_trainer_cache_size_bytes = 11; + * @return The crossTrainerCacheSizeBytes. */ + @java.lang.Override public long getCrossTrainerCacheSizeBytes() { return crossTrainerCacheSizeBytes_; } + public static final int SNAPSHOT_MAX_CHUNK_SIZE_BYTES_FIELD_NUMBER = 12; + private long snapshotMaxChunkSizeBytes_; + /** + *
+     * The maximum size of a distributed snapshot chunk file. A value of 0
+     * indicates that the decision should be left up to the runtime.
+     * 
+ * + * int64 snapshot_max_chunk_size_bytes = 12; + * @return The snapshotMaxChunkSizeBytes. + */ + @java.lang.Override + public long getSnapshotMaxChunkSizeBytes() { + return snapshotMaxChunkSizeBytes_; + } + public static final int SHUTDOWN_QUIET_PERIOD_MS_FIELD_NUMBER = 9; private long shutdownQuietPeriodMs_; /** @@ -2406,7 +2780,9 @@ public long getCrossTrainerCacheSizeBytes() { * * * int64 shutdown_quiet_period_ms = 9; + * @return The shutdownQuietPeriodMs. */ + @java.lang.Override public long getShutdownQuietPeriodMs() { return shutdownQuietPeriodMs_; } @@ -2428,13 +2804,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (port_ != 0L) { output.writeInt64(1, port_); } - if (!getProtocolBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, protocol_); } - if (!getDispatcherAddressBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dispatcherAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dispatcherAddress_); } - if (!getWorkerAddressBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workerAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, workerAddress_); } if (heartbeatIntervalMs_ != 0L) { @@ -2443,10 +2819,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (dispatcherTimeoutMs_ != 0L) { output.writeInt64(6, dispatcherTimeoutMs_); } - if (!getDataTransferProtocolBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataTransferProtocol_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, dataTransferProtocol_); } - if (!getDataTransferAddressBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataTransferAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, dataTransferAddress_); } if (shutdownQuietPeriodMs_ != 0L) { @@ -2458,7 +2834,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (crossTrainerCacheSizeBytes_ != 0L) { output.writeInt64(11, crossTrainerCacheSizeBytes_); } - unknownFields.writeTo(output); + if (snapshotMaxChunkSizeBytes_ != 0L) { + output.writeInt64(12, snapshotMaxChunkSizeBytes_); + } + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2471,13 +2850,13 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, port_); } - if (!getProtocolBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, protocol_); } - if (!getDispatcherAddressBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dispatcherAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dispatcherAddress_); } - if (!getWorkerAddressBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workerAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, workerAddress_); } if (heartbeatIntervalMs_ != 0L) { @@ -2488,10 +2867,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, dispatcherTimeoutMs_); } - if (!getDataTransferProtocolBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataTransferProtocol_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, dataTransferProtocol_); } - if (!getDataTransferAddressBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataTransferAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, dataTransferAddress_); } if (shutdownQuietPeriodMs_ != 0L) { @@ -2510,7 +2889,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(11, crossTrainerCacheSizeBytes_); } - size += unknownFields.getSerializedSize(); + if (snapshotMaxChunkSizeBytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(12, snapshotMaxChunkSizeBytes_); + } + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2545,9 +2928,11 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getDataTransferAddress())) return false; if (getCrossTrainerCacheSizeBytes() != other.getCrossTrainerCacheSizeBytes()) return false; + if (getSnapshotMaxChunkSizeBytes() + != other.getSnapshotMaxChunkSizeBytes()) return false; if (getShutdownQuietPeriodMs() != other.getShutdownQuietPeriodMs()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2584,10 +2969,13 @@ public int hashCode() { hash = (37 * hash) + CROSS_TRAINER_CACHE_SIZE_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCrossTrainerCacheSizeBytes()); + hash = (37 * hash) + SNAPSHOT_MAX_CHUNK_SIZE_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSnapshotMaxChunkSizeBytes()); hash = (37 * hash) + SHUTDOWN_QUIET_PERIOD_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getShutdownQuietPeriodMs()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -2685,7 +3073,7 @@ protected Builder newBuilderForType( /** *
      * Configuration for a tf.data service WorkerServer.
-     * Next id: 12
+     * Next id: 13
      * 
* * Protobuf type {@code tensorflow.data.experimental.WorkerConfig} @@ -2709,18 +3097,13 @@ public static final class Builder extends // Construct using org.tensorflow.proto.data.experimental.ServiceConfig.WorkerConfig.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + } @java.lang.Override public Builder clear() { @@ -2745,6 +3128,8 @@ public Builder clear() { crossTrainerCacheSizeBytes_ = 0L; + snapshotMaxChunkSizeBytes_ = 0L; + shutdownQuietPeriodMs_ = 0L; return this; @@ -2788,6 +3173,7 @@ public org.tensorflow.proto.data.experimental.ServiceConfig.WorkerConfig buildPa result.dataTransferProtocol_ = dataTransferProtocol_; result.dataTransferAddress_ = dataTransferAddress_; result.crossTrainerCacheSizeBytes_ = crossTrainerCacheSizeBytes_; + result.snapshotMaxChunkSizeBytes_ = snapshotMaxChunkSizeBytes_; result.shutdownQuietPeriodMs_ = shutdownQuietPeriodMs_; onBuilt(); return result; @@ -2879,10 +3265,13 @@ public Builder mergeFrom(org.tensorflow.proto.data.experimental.ServiceConfig.Wo if (other.getCrossTrainerCacheSizeBytes() != 0L) { setCrossTrainerCacheSizeBytes(other.getCrossTrainerCacheSizeBytes()); } + if (other.getSnapshotMaxChunkSizeBytes() != 0L) { + setSnapshotMaxChunkSizeBytes(other.getSnapshotMaxChunkSizeBytes()); + } if (other.getShutdownQuietPeriodMs() != 0L) { setShutdownQuietPeriodMs(other.getShutdownQuietPeriodMs()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2897,17 +3286,91 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.tensorflow.proto.data.experimental.ServiceConfig.WorkerConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + port_ = input.readInt64(); + + break; + } // case 8 + case 18: { + protocol_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + dispatcherAddress_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + workerAddress_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 40: { + heartbeatIntervalMs_ = input.readInt64(); + + break; + } // case 40 + case 48: { + dispatcherTimeoutMs_ = input.readInt64(); + + break; + } // case 48 + case 58: { + dataTransferProtocol_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: { + dataTransferAddress_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 72: { + shutdownQuietPeriodMs_ = input.readInt64(); + + break; + } // case 72 + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + ensureWorkerTagsIsMutable(); + workerTags_.add(s); + break; + } // case 82 + case 88: { + crossTrainerCacheSizeBytes_ = input.readInt64(); + + break; + } // case 88 + case 96: { + snapshotMaxChunkSizeBytes_ = input.readInt64(); + + break; + } // case 96 + 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) { - parsedMessage = (org.tensorflow.proto.data.experimental.ServiceConfig.WorkerConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -2920,7 +3383,9 @@ public Builder mergeFrom( * * * int64 port = 1; + * @return The port. */ + @java.lang.Override public long getPort() { return port_; } @@ -2931,6 +3396,8 @@ public long getPort() { * * * int64 port = 1; + * @param value The port to set. + * @return This builder for chaining. */ public Builder setPort(long value) { @@ -2945,6 +3412,7 @@ public Builder setPort(long value) { * * * int64 port = 1; + * @return This builder for chaining. */ public Builder clearPort() { @@ -2960,6 +3428,7 @@ public Builder clearPort() { * * * string protocol = 2; + * @return The protocol. */ public java.lang.String getProtocol() { java.lang.Object ref = protocol_; @@ -2979,6 +3448,7 @@ public java.lang.String getProtocol() { * * * string protocol = 2; + * @return The bytes for protocol. */ public com.google.protobuf.ByteString getProtocolBytes() { @@ -2999,6 +3469,8 @@ public java.lang.String getProtocol() { * * * string protocol = 2; + * @param value The protocol to set. + * @return This builder for chaining. */ public Builder setProtocol( java.lang.String value) { @@ -3016,6 +3488,7 @@ public Builder setProtocol( * * * string protocol = 2; + * @return This builder for chaining. */ public Builder clearProtocol() { @@ -3029,6 +3502,8 @@ public Builder clearProtocol() { * * * string protocol = 2; + * @param value The bytes for protocol to set. + * @return This builder for chaining. */ public Builder setProtocolBytes( com.google.protobuf.ByteString value) { @@ -3049,6 +3524,7 @@ public Builder setProtocolBytes( * * * string dispatcher_address = 3; + * @return The dispatcherAddress. */ public java.lang.String getDispatcherAddress() { java.lang.Object ref = dispatcherAddress_; @@ -3068,6 +3544,7 @@ public java.lang.String getDispatcherAddress() { * * * string dispatcher_address = 3; + * @return The bytes for dispatcherAddress. */ public com.google.protobuf.ByteString getDispatcherAddressBytes() { @@ -3088,6 +3565,8 @@ public java.lang.String getDispatcherAddress() { * * * string dispatcher_address = 3; + * @param value The dispatcherAddress to set. + * @return This builder for chaining. */ public Builder setDispatcherAddress( java.lang.String value) { @@ -3105,6 +3584,7 @@ public Builder setDispatcherAddress( * * * string dispatcher_address = 3; + * @return This builder for chaining. */ public Builder clearDispatcherAddress() { @@ -3118,6 +3598,8 @@ public Builder clearDispatcherAddress() { * * * string dispatcher_address = 3; + * @param value The bytes for dispatcherAddress to set. + * @return This builder for chaining. */ public Builder setDispatcherAddressBytes( com.google.protobuf.ByteString value) { @@ -3140,6 +3622,7 @@ public Builder setDispatcherAddressBytes( * * * string worker_address = 4; + * @return The workerAddress. */ public java.lang.String getWorkerAddress() { java.lang.Object ref = workerAddress_; @@ -3161,6 +3644,7 @@ public java.lang.String getWorkerAddress() { * * * string worker_address = 4; + * @return The bytes for workerAddress. */ public com.google.protobuf.ByteString getWorkerAddressBytes() { @@ -3183,6 +3667,8 @@ public java.lang.String getWorkerAddress() { * * * string worker_address = 4; + * @param value The workerAddress to set. + * @return This builder for chaining. */ public Builder setWorkerAddress( java.lang.String value) { @@ -3202,6 +3688,7 @@ public Builder setWorkerAddress( * * * string worker_address = 4; + * @return This builder for chaining. */ public Builder clearWorkerAddress() { @@ -3217,6 +3704,8 @@ public Builder clearWorkerAddress() { * * * string worker_address = 4; + * @param value The bytes for workerAddress to set. + * @return This builder for chaining. */ public Builder setWorkerAddressBytes( com.google.protobuf.ByteString value) { @@ -3246,6 +3735,7 @@ private void ensureWorkerTagsIsMutable() { * * * repeated string worker_tags = 10; + * @return A list containing the workerTags. */ public com.google.protobuf.ProtocolStringList getWorkerTagsList() { @@ -3260,6 +3750,7 @@ private void ensureWorkerTagsIsMutable() { * * * repeated string worker_tags = 10; + * @return The count of workerTags. */ public int getWorkerTagsCount() { return workerTags_.size(); @@ -3273,6 +3764,8 @@ public int getWorkerTagsCount() { * * * repeated string worker_tags = 10; + * @param index The index of the element to return. + * @return The workerTags at the given index. */ public java.lang.String getWorkerTags(int index) { return workerTags_.get(index); @@ -3286,6 +3779,8 @@ public java.lang.String getWorkerTags(int index) { * * * repeated string worker_tags = 10; + * @param index The index of the value to return. + * @return The bytes of the workerTags at the given index. */ public com.google.protobuf.ByteString getWorkerTagsBytes(int index) { @@ -3300,6 +3795,9 @@ public java.lang.String getWorkerTags(int index) { * * * repeated string worker_tags = 10; + * @param index The index to set the value at. + * @param value The workerTags to set. + * @return This builder for chaining. */ public Builder setWorkerTags( int index, java.lang.String value) { @@ -3320,6 +3818,8 @@ public Builder setWorkerTags( * * * repeated string worker_tags = 10; + * @param value The workerTags to add. + * @return This builder for chaining. */ public Builder addWorkerTags( java.lang.String value) { @@ -3340,6 +3840,8 @@ public Builder addWorkerTags( * * * repeated string worker_tags = 10; + * @param values The workerTags to add. + * @return This builder for chaining. */ public Builder addAllWorkerTags( java.lang.Iterable values) { @@ -3358,6 +3860,7 @@ public Builder addAllWorkerTags( * * * repeated string worker_tags = 10; + * @return This builder for chaining. */ public Builder clearWorkerTags() { workerTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -3374,6 +3877,8 @@ public Builder clearWorkerTags() { * * * repeated string worker_tags = 10; + * @param value The bytes of the workerTags to add. + * @return This builder for chaining. */ public Builder addWorkerTagsBytes( com.google.protobuf.ByteString value) { @@ -3395,7 +3900,9 @@ public Builder addWorkerTagsBytes( * * * int64 heartbeat_interval_ms = 5; + * @return The heartbeatIntervalMs. */ + @java.lang.Override public long getHeartbeatIntervalMs() { return heartbeatIntervalMs_; } @@ -3406,6 +3913,8 @@ public long getHeartbeatIntervalMs() { * * * int64 heartbeat_interval_ms = 5; + * @param value The heartbeatIntervalMs to set. + * @return This builder for chaining. */ public Builder setHeartbeatIntervalMs(long value) { @@ -3420,6 +3929,7 @@ public Builder setHeartbeatIntervalMs(long value) { * * * int64 heartbeat_interval_ms = 5; + * @return This builder for chaining. */ public Builder clearHeartbeatIntervalMs() { @@ -3437,7 +3947,9 @@ public Builder clearHeartbeatIntervalMs() { * * * int64 dispatcher_timeout_ms = 6; + * @return The dispatcherTimeoutMs. */ + @java.lang.Override public long getDispatcherTimeoutMs() { return dispatcherTimeoutMs_; } @@ -3449,6 +3961,8 @@ public long getDispatcherTimeoutMs() { * * * int64 dispatcher_timeout_ms = 6; + * @param value The dispatcherTimeoutMs to set. + * @return This builder for chaining. */ public Builder setDispatcherTimeoutMs(long value) { @@ -3464,6 +3978,7 @@ public Builder setDispatcherTimeoutMs(long value) { * * * int64 dispatcher_timeout_ms = 6; + * @return This builder for chaining. */ public Builder clearDispatcherTimeoutMs() { @@ -3479,6 +3994,7 @@ public Builder clearDispatcherTimeoutMs() { * * * string data_transfer_protocol = 7; + * @return The dataTransferProtocol. */ public java.lang.String getDataTransferProtocol() { java.lang.Object ref = dataTransferProtocol_; @@ -3498,6 +4014,7 @@ public java.lang.String getDataTransferProtocol() { * * * string data_transfer_protocol = 7; + * @return The bytes for dataTransferProtocol. */ public com.google.protobuf.ByteString getDataTransferProtocolBytes() { @@ -3518,6 +4035,8 @@ public java.lang.String getDataTransferProtocol() { * * * string data_transfer_protocol = 7; + * @param value The dataTransferProtocol to set. + * @return This builder for chaining. */ public Builder setDataTransferProtocol( java.lang.String value) { @@ -3535,6 +4054,7 @@ public Builder setDataTransferProtocol( * * * string data_transfer_protocol = 7; + * @return This builder for chaining. */ public Builder clearDataTransferProtocol() { @@ -3548,6 +4068,8 @@ public Builder clearDataTransferProtocol() { * * * string data_transfer_protocol = 7; + * @param value The bytes for dataTransferProtocol to set. + * @return This builder for chaining. */ public Builder setDataTransferProtocolBytes( com.google.protobuf.ByteString value) { @@ -3570,6 +4092,7 @@ public Builder setDataTransferProtocolBytes( * * * string data_transfer_address = 8; + * @return The dataTransferAddress. */ public java.lang.String getDataTransferAddress() { java.lang.Object ref = dataTransferAddress_; @@ -3591,6 +4114,7 @@ public java.lang.String getDataTransferAddress() { * * * string data_transfer_address = 8; + * @return The bytes for dataTransferAddress. */ public com.google.protobuf.ByteString getDataTransferAddressBytes() { @@ -3613,6 +4137,8 @@ public java.lang.String getDataTransferAddress() { * * * string data_transfer_address = 8; + * @param value The dataTransferAddress to set. + * @return This builder for chaining. */ public Builder setDataTransferAddress( java.lang.String value) { @@ -3632,6 +4158,7 @@ public Builder setDataTransferAddress( * * * string data_transfer_address = 8; + * @return This builder for chaining. */ public Builder clearDataTransferAddress() { @@ -3647,6 +4174,8 @@ public Builder clearDataTransferAddress() { * * * string data_transfer_address = 8; + * @param value The bytes for dataTransferAddress to set. + * @return This builder for chaining. */ public Builder setDataTransferAddressBytes( com.google.protobuf.ByteString value) { @@ -3668,7 +4197,9 @@ public Builder setDataTransferAddressBytes( * * * int64 cross_trainer_cache_size_bytes = 11; + * @return The crossTrainerCacheSizeBytes. */ + @java.lang.Override public long getCrossTrainerCacheSizeBytes() { return crossTrainerCacheSizeBytes_; } @@ -3679,6 +4210,8 @@ public long getCrossTrainerCacheSizeBytes() { * * * int64 cross_trainer_cache_size_bytes = 11; + * @param value The crossTrainerCacheSizeBytes to set. + * @return This builder for chaining. */ public Builder setCrossTrainerCacheSizeBytes(long value) { @@ -3693,6 +4226,7 @@ public Builder setCrossTrainerCacheSizeBytes(long value) { * * * int64 cross_trainer_cache_size_bytes = 11; + * @return This builder for chaining. */ public Builder clearCrossTrainerCacheSizeBytes() { @@ -3701,6 +4235,52 @@ public Builder clearCrossTrainerCacheSizeBytes() { return this; } + private long snapshotMaxChunkSizeBytes_ ; + /** + *
+       * The maximum size of a distributed snapshot chunk file. A value of 0
+       * indicates that the decision should be left up to the runtime.
+       * 
+ * + * int64 snapshot_max_chunk_size_bytes = 12; + * @return The snapshotMaxChunkSizeBytes. + */ + @java.lang.Override + public long getSnapshotMaxChunkSizeBytes() { + return snapshotMaxChunkSizeBytes_; + } + /** + *
+       * The maximum size of a distributed snapshot chunk file. A value of 0
+       * indicates that the decision should be left up to the runtime.
+       * 
+ * + * int64 snapshot_max_chunk_size_bytes = 12; + * @param value The snapshotMaxChunkSizeBytes to set. + * @return This builder for chaining. + */ + public Builder setSnapshotMaxChunkSizeBytes(long value) { + + snapshotMaxChunkSizeBytes_ = value; + onChanged(); + return this; + } + /** + *
+       * The maximum size of a distributed snapshot chunk file. A value of 0
+       * indicates that the decision should be left up to the runtime.
+       * 
+ * + * int64 snapshot_max_chunk_size_bytes = 12; + * @return This builder for chaining. + */ + public Builder clearSnapshotMaxChunkSizeBytes() { + + snapshotMaxChunkSizeBytes_ = 0L; + onChanged(); + return this; + } + private long shutdownQuietPeriodMs_ ; /** *
@@ -3710,7 +4290,9 @@ public Builder clearCrossTrainerCacheSizeBytes() {
        * 
* * int64 shutdown_quiet_period_ms = 9; + * @return The shutdownQuietPeriodMs. */ + @java.lang.Override public long getShutdownQuietPeriodMs() { return shutdownQuietPeriodMs_; } @@ -3722,6 +4304,8 @@ public long getShutdownQuietPeriodMs() { * * * int64 shutdown_quiet_period_ms = 9; + * @param value The shutdownQuietPeriodMs to set. + * @return This builder for chaining. */ public Builder setShutdownQuietPeriodMs(long value) { @@ -3737,6 +4321,7 @@ public Builder setShutdownQuietPeriodMs(long value) { * * * int64 shutdown_quiet_period_ms = 9; + * @return This builder for chaining. */ public Builder clearShutdownQuietPeriodMs() { @@ -3777,7 +4362,18 @@ public WorkerConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkerConfig(input, extensionRegistry); + 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(); } }; @@ -3819,25 +4415,28 @@ public org.tensorflow.proto.data.experimental.ServiceConfig.WorkerConfig getDefa "\n-tensorflow/core/protobuf/service_confi" + "g.proto\022\034tensorflow.data.experimental\032+t" + "ensorflow/core/protobuf/data_service.pro" + - "to\"\215\002\n\020DispatcherConfig\022\014\n\004port\030\001 \001(\003\022\020\n" + + "to\"\363\002\n\020DispatcherConfig\022\014\n\004port\030\001 \001(\003\022\020\n" + "\010protocol\030\002 \001(\t\022\020\n\010work_dir\030\003 \001(\t\022\033\n\023fau" + "lt_tolerant_mode\030\004 \001(\010\022\030\n\020worker_address" + "es\030\007 \003(\t\0228\n\017deployment_mode\030\t \001(\0162\037.tens" + "orflow.data.DeploymentMode\022 \n\030job_gc_che" + "ck_interval_ms\030\005 \001(\003\022\031\n\021job_gc_timeout_m" + - "s\030\006 \001(\003\022\031\n\021client_timeout_ms\030\010 \001(\003\"\276\002\n\014W" + - "orkerConfig\022\014\n\004port\030\001 \001(\003\022\020\n\010protocol\030\002 " + - "\001(\t\022\032\n\022dispatcher_address\030\003 \001(\t\022\026\n\016worke" + - "r_address\030\004 \001(\t\022\023\n\013worker_tags\030\n \003(\t\022\035\n\025" + - "heartbeat_interval_ms\030\005 \001(\003\022\035\n\025dispatche" + - "r_timeout_ms\030\006 \001(\003\022\036\n\026data_transfer_prot" + - "ocol\030\007 \001(\t\022\035\n\025data_transfer_address\030\010 \001(" + - "\t\022&\n\036cross_trainer_cache_size_bytes\030\013 \001(" + - "\003\022 \n\030shutdown_quiet_period_ms\030\t \001(\003B\177\n&o" + - "rg.tensorflow.proto.data.experimentalZUg" + - "ithub.com/tensorflow/tensorflow/tensorfl" + - "ow/go/core/protobuf/for_core_protos_go_p" + - "rotob\006proto3" + "s\030\006 \001(\003\022 \n\030gc_dynamic_sharding_jobs\030\013 \001(" + + "\010\022\031\n\021client_timeout_ms\030\010 \001(\003\022\031\n\021worker_t" + + "imeout_ms\030\n \001(\003\022\'\n\037worker_max_concurrent" + + "_snapshots\030\014 \001(\003\"\345\002\n\014WorkerConfig\022\014\n\004por" + + "t\030\001 \001(\003\022\020\n\010protocol\030\002 \001(\t\022\032\n\022dispatcher_" + + "address\030\003 \001(\t\022\026\n\016worker_address\030\004 \001(\t\022\023\n" + + "\013worker_tags\030\n \003(\t\022\035\n\025heartbeat_interval" + + "_ms\030\005 \001(\003\022\035\n\025dispatcher_timeout_ms\030\006 \001(\003" + + "\022\036\n\026data_transfer_protocol\030\007 \001(\t\022\035\n\025data" + + "_transfer_address\030\010 \001(\t\022&\n\036cross_trainer" + + "_cache_size_bytes\030\013 \001(\003\022%\n\035snapshot_max_" + + "chunk_size_bytes\030\014 \001(\003\022 \n\030shutdown_quiet" + + "_period_ms\030\t \001(\003B\177\n&org.tensorflow.proto" + + ".data.experimentalZUgithub.com/tensorflo" + + "w/tensorflow/tensorflow/go/core/protobuf" + + "/for_core_protos_go_protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -3849,13 +4448,13 @@ public org.tensorflow.proto.data.experimental.ServiceConfig.WorkerConfig getDefa internal_static_tensorflow_data_experimental_DispatcherConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_data_experimental_DispatcherConfig_descriptor, - new java.lang.String[] { "Port", "Protocol", "WorkDir", "FaultTolerantMode", "WorkerAddresses", "DeploymentMode", "JobGcCheckIntervalMs", "JobGcTimeoutMs", "ClientTimeoutMs", }); + new java.lang.String[] { "Port", "Protocol", "WorkDir", "FaultTolerantMode", "WorkerAddresses", "DeploymentMode", "JobGcCheckIntervalMs", "JobGcTimeoutMs", "GcDynamicShardingJobs", "ClientTimeoutMs", "WorkerTimeoutMs", "WorkerMaxConcurrentSnapshots", }); internal_static_tensorflow_data_experimental_WorkerConfig_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_tensorflow_data_experimental_WorkerConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_data_experimental_WorkerConfig_descriptor, - new java.lang.String[] { "Port", "Protocol", "DispatcherAddress", "WorkerAddress", "WorkerTags", "HeartbeatIntervalMs", "DispatcherTimeoutMs", "DataTransferProtocol", "DataTransferAddress", "CrossTrainerCacheSizeBytes", "ShutdownQuietPeriodMs", }); + new java.lang.String[] { "Port", "Protocol", "DispatcherAddress", "WorkerAddress", "WorkerTags", "HeartbeatIntervalMs", "DispatcherTimeoutMs", "DataTransferProtocol", "DataTransferAddress", "CrossTrainerCacheSizeBytes", "SnapshotMaxChunkSizeBytes", "ShutdownQuietPeriodMs", }); org.tensorflow.proto.data.DataService.getDescriptor(); } diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/data/experimental/Snapshot.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/data/experimental/Snapshot.java new file mode 100644 index 00000000000..03e1ca6f053 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/data/experimental/Snapshot.java @@ -0,0 +1,4596 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/protobuf/snapshot.proto + +package org.tensorflow.proto.data.experimental; + +public final class Snapshot { + private Snapshot() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface SnapshotRecordOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.data.experimental.SnapshotRecord) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + java.util.List + getTensorList(); + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + org.tensorflow.proto.TensorProto getTensor(int index); + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + int getTensorCount(); + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + java.util.List + getTensorOrBuilderList(); + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + org.tensorflow.proto.TensorProtoOrBuilder getTensorOrBuilder( + int index); + } + /** + *
+   * Each SnapshotRecord represents one batch of pre-processed input data. A batch
+   * consists of a list of tensors that we encode as TensorProtos. This message
+   * doesn't store the structure of the batch.
+   * 
+ * + * Protobuf type {@code tensorflow.data.experimental.SnapshotRecord} + */ + public static final class SnapshotRecord extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.data.experimental.SnapshotRecord) + SnapshotRecordOrBuilder { + private static final long serialVersionUID = 0L; + // Use SnapshotRecord.newBuilder() to construct. + private SnapshotRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SnapshotRecord() { + tensor_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SnapshotRecord(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord.class, org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord.Builder.class); + } + + public static final int TENSOR_FIELD_NUMBER = 1; + private java.util.List tensor_; + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + @java.lang.Override + public java.util.List getTensorList() { + return tensor_; + } + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + @java.lang.Override + public java.util.List + getTensorOrBuilderList() { + return tensor_; + } + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + @java.lang.Override + public int getTensorCount() { + return tensor_.size(); + } + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + @java.lang.Override + public org.tensorflow.proto.TensorProto getTensor(int index) { + return tensor_.get(index); + } + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + @java.lang.Override + public org.tensorflow.proto.TensorProtoOrBuilder getTensorOrBuilder( + int index) { + return tensor_.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 < tensor_.size(); i++) { + output.writeMessage(1, tensor_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tensor_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, tensor_.get(i)); + } + 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 org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord)) { + return super.equals(obj); + } + org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord other = (org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord) obj; + + if (!getTensorList() + .equals(other.getTensorList())) 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 (getTensorCount() > 0) { + hash = (37 * hash) + TENSOR_FIELD_NUMBER; + hash = (53 * hash) + getTensorList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord 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 org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord 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 org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord 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(org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord 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; + } + /** + *
+     * Each SnapshotRecord represents one batch of pre-processed input data. A batch
+     * consists of a list of tensors that we encode as TensorProtos. This message
+     * doesn't store the structure of the batch.
+     * 
+ * + * Protobuf type {@code tensorflow.data.experimental.SnapshotRecord} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.data.experimental.SnapshotRecord) + org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecordOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord.class, org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord.Builder.class); + } + + // Construct using org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (tensorBuilder_ == null) { + tensor_ = java.util.Collections.emptyList(); + } else { + tensor_ = null; + tensorBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotRecord_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord getDefaultInstanceForType() { + return org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord build() { + org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord buildPartial() { + org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord result = new org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord(this); + int from_bitField0_ = bitField0_; + if (tensorBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tensor_ = java.util.Collections.unmodifiableList(tensor_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tensor_ = tensor_; + } else { + result.tensor_ = tensorBuilder_.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 org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord) { + return mergeFrom((org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord other) { + if (other == org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord.getDefaultInstance()) return this; + if (tensorBuilder_ == null) { + if (!other.tensor_.isEmpty()) { + if (tensor_.isEmpty()) { + tensor_ = other.tensor_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTensorIsMutable(); + tensor_.addAll(other.tensor_); + } + onChanged(); + } + } else { + if (!other.tensor_.isEmpty()) { + if (tensorBuilder_.isEmpty()) { + tensorBuilder_.dispose(); + tensorBuilder_ = null; + tensor_ = other.tensor_; + bitField0_ = (bitField0_ & ~0x00000001); + tensorBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTensorFieldBuilder() : null; + } else { + tensorBuilder_.addAllMessages(other.tensor_); + } + } + } + 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: { + org.tensorflow.proto.TensorProto m = + input.readMessage( + org.tensorflow.proto.TensorProto.parser(), + extensionRegistry); + if (tensorBuilder_ == null) { + ensureTensorIsMutable(); + tensor_.add(m); + } else { + tensorBuilder_.addMessage(m); + } + 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.util.List tensor_ = + java.util.Collections.emptyList(); + private void ensureTensorIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tensor_ = new java.util.ArrayList(tensor_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> tensorBuilder_; + + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + public java.util.List getTensorList() { + if (tensorBuilder_ == null) { + return java.util.Collections.unmodifiableList(tensor_); + } else { + return tensorBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + public int getTensorCount() { + if (tensorBuilder_ == null) { + return tensor_.size(); + } else { + return tensorBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + public org.tensorflow.proto.TensorProto getTensor(int index) { + if (tensorBuilder_ == null) { + return tensor_.get(index); + } else { + return tensorBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + public Builder setTensor( + int index, org.tensorflow.proto.TensorProto value) { + if (tensorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorIsMutable(); + tensor_.set(index, value); + onChanged(); + } else { + tensorBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + public Builder setTensor( + int index, org.tensorflow.proto.TensorProto.Builder builderForValue) { + if (tensorBuilder_ == null) { + ensureTensorIsMutable(); + tensor_.set(index, builderForValue.build()); + onChanged(); + } else { + tensorBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + public Builder addTensor(org.tensorflow.proto.TensorProto value) { + if (tensorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorIsMutable(); + tensor_.add(value); + onChanged(); + } else { + tensorBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + public Builder addTensor( + int index, org.tensorflow.proto.TensorProto value) { + if (tensorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorIsMutable(); + tensor_.add(index, value); + onChanged(); + } else { + tensorBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + public Builder addTensor( + org.tensorflow.proto.TensorProto.Builder builderForValue) { + if (tensorBuilder_ == null) { + ensureTensorIsMutable(); + tensor_.add(builderForValue.build()); + onChanged(); + } else { + tensorBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + public Builder addTensor( + int index, org.tensorflow.proto.TensorProto.Builder builderForValue) { + if (tensorBuilder_ == null) { + ensureTensorIsMutable(); + tensor_.add(index, builderForValue.build()); + onChanged(); + } else { + tensorBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + public Builder addAllTensor( + java.lang.Iterable values) { + if (tensorBuilder_ == null) { + ensureTensorIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tensor_); + onChanged(); + } else { + tensorBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + public Builder clearTensor() { + if (tensorBuilder_ == null) { + tensor_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tensorBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + public Builder removeTensor(int index) { + if (tensorBuilder_ == null) { + ensureTensorIsMutable(); + tensor_.remove(index); + onChanged(); + } else { + tensorBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + public org.tensorflow.proto.TensorProto.Builder getTensorBuilder( + int index) { + return getTensorFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + public org.tensorflow.proto.TensorProtoOrBuilder getTensorOrBuilder( + int index) { + if (tensorBuilder_ == null) { + return tensor_.get(index); } else { + return tensorBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + public java.util.List + getTensorOrBuilderList() { + if (tensorBuilder_ != null) { + return tensorBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tensor_); + } + } + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + public org.tensorflow.proto.TensorProto.Builder addTensorBuilder() { + return getTensorFieldBuilder().addBuilder( + org.tensorflow.proto.TensorProto.getDefaultInstance()); + } + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + public org.tensorflow.proto.TensorProto.Builder addTensorBuilder( + int index) { + return getTensorFieldBuilder().addBuilder( + index, org.tensorflow.proto.TensorProto.getDefaultInstance()); + } + /** + * repeated .tensorflow.TensorProto tensor = 1; + */ + public java.util.List + getTensorBuilderList() { + return getTensorFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder> + getTensorFieldBuilder() { + if (tensorBuilder_ == null) { + tensorBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.TensorProto, org.tensorflow.proto.TensorProto.Builder, org.tensorflow.proto.TensorProtoOrBuilder>( + tensor_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + tensor_ = null; + } + return tensorBuilder_; + } + @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:tensorflow.data.experimental.SnapshotRecord) + } + + // @@protoc_insertion_point(class_scope:tensorflow.data.experimental.SnapshotRecord) + private static final org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord(); + } + + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnapshotRecord 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 org.tensorflow.proto.data.experimental.Snapshot.SnapshotRecord getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SnapshotMetadataRecordOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.data.experimental.SnapshotMetadataRecord) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Stores the fingerprint of the graph that describes the dataset that is
+     * snapshotted.
+     * 
+ * + * string graph_hash = 1; + * @return The graphHash. + */ + java.lang.String getGraphHash(); + /** + *
+     * Stores the fingerprint of the graph that describes the dataset that is
+     * snapshotted.
+     * 
+ * + * string graph_hash = 1; + * @return The bytes for graphHash. + */ + com.google.protobuf.ByteString + getGraphHashBytes(); + + /** + *
+     * Run ID that this snapshot corresponds to.
+     * 
+ * + * string run_id = 2; + * @return The runId. + */ + java.lang.String getRunId(); + /** + *
+     * Run ID that this snapshot corresponds to.
+     * 
+ * + * string run_id = 2; + * @return The bytes for runId. + */ + com.google.protobuf.ByteString + getRunIdBytes(); + + /** + *
+     * Time when we started creating this snapshot.
+     * 
+ * + * int64 creation_timestamp = 3; + * @return The creationTimestamp. + */ + long getCreationTimestamp(); + + /** + *
+     * Version of the snapshot data file format.
+     * 
+ * + * int64 version = 4; + * @return The version. + */ + long getVersion(); + + /** + *
+     * A list of tensor dtype corresponding to each element of the snapshot.
+     * 
+ * + * repeated .tensorflow.DataType dtype = 5; + * @return A list containing the dtype. + */ + java.util.List getDtypeList(); + /** + *
+     * A list of tensor dtype corresponding to each element of the snapshot.
+     * 
+ * + * repeated .tensorflow.DataType dtype = 5; + * @return The count of dtype. + */ + int getDtypeCount(); + /** + *
+     * A list of tensor dtype corresponding to each element of the snapshot.
+     * 
+ * + * repeated .tensorflow.DataType dtype = 5; + * @param index The index of the element to return. + * @return The dtype at the given index. + */ + org.tensorflow.proto.DataType getDtype(int index); + /** + *
+     * A list of tensor dtype corresponding to each element of the snapshot.
+     * 
+ * + * repeated .tensorflow.DataType dtype = 5; + * @return A list containing the enum numeric values on the wire for dtype. + */ + java.util.List + getDtypeValueList(); + /** + *
+     * A list of tensor dtype corresponding to each element of the snapshot.
+     * 
+ * + * repeated .tensorflow.DataType dtype = 5; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of dtype at the given index. + */ + int getDtypeValue(int index); + + /** + *
+     * The number of elements in the snapshot.
+     * 
+ * + * int64 num_elements = 6; + * @return The numElements. + */ + long getNumElements(); + + /** + * bool finalized = 1000; + * @return The finalized. + */ + boolean getFinalized(); + } + /** + *
+   * This stores the metadata information present in each snapshot record.
+   * 
+ * + * Protobuf type {@code tensorflow.data.experimental.SnapshotMetadataRecord} + */ + public static final class SnapshotMetadataRecord extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.data.experimental.SnapshotMetadataRecord) + SnapshotMetadataRecordOrBuilder { + private static final long serialVersionUID = 0L; + // Use SnapshotMetadataRecord.newBuilder() to construct. + private SnapshotMetadataRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SnapshotMetadataRecord() { + graphHash_ = ""; + runId_ = ""; + dtype_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SnapshotMetadataRecord(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord.class, org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord.Builder.class); + } + + public static final int GRAPH_HASH_FIELD_NUMBER = 1; + private volatile java.lang.Object graphHash_; + /** + *
+     * Stores the fingerprint of the graph that describes the dataset that is
+     * snapshotted.
+     * 
+ * + * string graph_hash = 1; + * @return The graphHash. + */ + @java.lang.Override + public java.lang.String getGraphHash() { + java.lang.Object ref = graphHash_; + 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(); + graphHash_ = s; + return s; + } + } + /** + *
+     * Stores the fingerprint of the graph that describes the dataset that is
+     * snapshotted.
+     * 
+ * + * string graph_hash = 1; + * @return The bytes for graphHash. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getGraphHashBytes() { + java.lang.Object ref = graphHash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + graphHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RUN_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object runId_; + /** + *
+     * Run ID that this snapshot corresponds to.
+     * 
+ * + * string run_id = 2; + * @return The runId. + */ + @java.lang.Override + public java.lang.String getRunId() { + java.lang.Object ref = runId_; + 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(); + runId_ = s; + return s; + } + } + /** + *
+     * Run ID that this snapshot corresponds to.
+     * 
+ * + * string run_id = 2; + * @return The bytes for runId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRunIdBytes() { + java.lang.Object ref = runId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + runId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 3; + private long creationTimestamp_; + /** + *
+     * Time when we started creating this snapshot.
+     * 
+ * + * int64 creation_timestamp = 3; + * @return The creationTimestamp. + */ + @java.lang.Override + public long getCreationTimestamp() { + return creationTimestamp_; + } + + public static final int VERSION_FIELD_NUMBER = 4; + private long version_; + /** + *
+     * Version of the snapshot data file format.
+     * 
+ * + * int64 version = 4; + * @return The version. + */ + @java.lang.Override + public long getVersion() { + return version_; + } + + public static final int DTYPE_FIELD_NUMBER = 5; + private java.util.List dtype_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, org.tensorflow.proto.DataType> dtype_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, org.tensorflow.proto.DataType>() { + public org.tensorflow.proto.DataType convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(from); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; + } + }; + /** + *
+     * A list of tensor dtype corresponding to each element of the snapshot.
+     * 
+ * + * repeated .tensorflow.DataType dtype = 5; + * @return A list containing the dtype. + */ + @java.lang.Override + public java.util.List getDtypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, org.tensorflow.proto.DataType>(dtype_, dtype_converter_); + } + /** + *
+     * A list of tensor dtype corresponding to each element of the snapshot.
+     * 
+ * + * repeated .tensorflow.DataType dtype = 5; + * @return The count of dtype. + */ + @java.lang.Override + public int getDtypeCount() { + return dtype_.size(); + } + /** + *
+     * A list of tensor dtype corresponding to each element of the snapshot.
+     * 
+ * + * repeated .tensorflow.DataType dtype = 5; + * @param index The index of the element to return. + * @return The dtype at the given index. + */ + @java.lang.Override + public org.tensorflow.proto.DataType getDtype(int index) { + return dtype_converter_.convert(dtype_.get(index)); + } + /** + *
+     * A list of tensor dtype corresponding to each element of the snapshot.
+     * 
+ * + * repeated .tensorflow.DataType dtype = 5; + * @return A list containing the enum numeric values on the wire for dtype. + */ + @java.lang.Override + public java.util.List + getDtypeValueList() { + return dtype_; + } + /** + *
+     * A list of tensor dtype corresponding to each element of the snapshot.
+     * 
+ * + * repeated .tensorflow.DataType dtype = 5; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of dtype at the given index. + */ + @java.lang.Override + public int getDtypeValue(int index) { + return dtype_.get(index); + } + private int dtypeMemoizedSerializedSize; + + public static final int NUM_ELEMENTS_FIELD_NUMBER = 6; + private long numElements_; + /** + *
+     * The number of elements in the snapshot.
+     * 
+ * + * int64 num_elements = 6; + * @return The numElements. + */ + @java.lang.Override + public long getNumElements() { + return numElements_; + } + + public static final int FINALIZED_FIELD_NUMBER = 1000; + private boolean finalized_; + /** + * bool finalized = 1000; + * @return The finalized. + */ + @java.lang.Override + public boolean getFinalized() { + return finalized_; + } + + 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 { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(graphHash_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, graphHash_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, runId_); + } + if (creationTimestamp_ != 0L) { + output.writeInt64(3, creationTimestamp_); + } + if (version_ != 0L) { + output.writeInt64(4, version_); + } + if (getDtypeList().size() > 0) { + output.writeUInt32NoTag(42); + output.writeUInt32NoTag(dtypeMemoizedSerializedSize); + } + for (int i = 0; i < dtype_.size(); i++) { + output.writeEnumNoTag(dtype_.get(i)); + } + if (numElements_ != 0L) { + output.writeInt64(6, numElements_); + } + if (finalized_ != false) { + output.writeBool(1000, finalized_); + } + 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(graphHash_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, graphHash_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, runId_); + } + if (creationTimestamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, creationTimestamp_); + } + if (version_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, version_); + } + { + int dataSize = 0; + for (int i = 0; i < dtype_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(dtype_.get(i)); + } + size += dataSize; + if (!getDtypeList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }dtypeMemoizedSerializedSize = dataSize; + } + if (numElements_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, numElements_); + } + if (finalized_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1000, finalized_); + } + 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 org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord)) { + return super.equals(obj); + } + org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord other = (org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord) obj; + + if (!getGraphHash() + .equals(other.getGraphHash())) return false; + if (!getRunId() + .equals(other.getRunId())) return false; + if (getCreationTimestamp() + != other.getCreationTimestamp()) return false; + if (getVersion() + != other.getVersion()) return false; + if (!dtype_.equals(other.dtype_)) return false; + if (getNumElements() + != other.getNumElements()) return false; + if (getFinalized() + != other.getFinalized()) 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) + GRAPH_HASH_FIELD_NUMBER; + hash = (53 * hash) + getGraphHash().hashCode(); + hash = (37 * hash) + RUN_ID_FIELD_NUMBER; + hash = (53 * hash) + getRunId().hashCode(); + hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCreationTimestamp()); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVersion()); + if (getDtypeCount() > 0) { + hash = (37 * hash) + DTYPE_FIELD_NUMBER; + hash = (53 * hash) + dtype_.hashCode(); + } + hash = (37 * hash) + NUM_ELEMENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNumElements()); + hash = (37 * hash) + FINALIZED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFinalized()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord 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 org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord 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 org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord 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(org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord 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; + } + /** + *
+     * This stores the metadata information present in each snapshot record.
+     * 
+ * + * Protobuf type {@code tensorflow.data.experimental.SnapshotMetadataRecord} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.data.experimental.SnapshotMetadataRecord) + org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecordOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord.class, org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord.Builder.class); + } + + // Construct using org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + graphHash_ = ""; + + runId_ = ""; + + creationTimestamp_ = 0L; + + version_ = 0L; + + dtype_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + numElements_ = 0L; + + finalized_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord getDefaultInstanceForType() { + return org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord build() { + org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord buildPartial() { + org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord result = new org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord(this); + int from_bitField0_ = bitField0_; + result.graphHash_ = graphHash_; + result.runId_ = runId_; + result.creationTimestamp_ = creationTimestamp_; + result.version_ = version_; + if (((bitField0_ & 0x00000001) != 0)) { + dtype_ = java.util.Collections.unmodifiableList(dtype_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dtype_ = dtype_; + result.numElements_ = numElements_; + result.finalized_ = finalized_; + 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 org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord) { + return mergeFrom((org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord other) { + if (other == org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord.getDefaultInstance()) return this; + if (!other.getGraphHash().isEmpty()) { + graphHash_ = other.graphHash_; + onChanged(); + } + if (!other.getRunId().isEmpty()) { + runId_ = other.runId_; + onChanged(); + } + if (other.getCreationTimestamp() != 0L) { + setCreationTimestamp(other.getCreationTimestamp()); + } + if (other.getVersion() != 0L) { + setVersion(other.getVersion()); + } + if (!other.dtype_.isEmpty()) { + if (dtype_.isEmpty()) { + dtype_ = other.dtype_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDtypeIsMutable(); + dtype_.addAll(other.dtype_); + } + onChanged(); + } + if (other.getNumElements() != 0L) { + setNumElements(other.getNumElements()); + } + if (other.getFinalized() != false) { + setFinalized(other.getFinalized()); + } + 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: { + graphHash_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + runId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + creationTimestamp_ = input.readInt64(); + + break; + } // case 24 + case 32: { + version_ = input.readInt64(); + + break; + } // case 32 + case 40: { + int tmpRaw = input.readEnum(); + ensureDtypeIsMutable(); + dtype_.add(tmpRaw); + break; + } // case 40 + case 42: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureDtypeIsMutable(); + dtype_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 42 + case 48: { + numElements_ = input.readInt64(); + + break; + } // case 48 + case 8000: { + finalized_ = input.readBool(); + + break; + } // case 8000 + 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 graphHash_ = ""; + /** + *
+       * Stores the fingerprint of the graph that describes the dataset that is
+       * snapshotted.
+       * 
+ * + * string graph_hash = 1; + * @return The graphHash. + */ + public java.lang.String getGraphHash() { + java.lang.Object ref = graphHash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + graphHash_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Stores the fingerprint of the graph that describes the dataset that is
+       * snapshotted.
+       * 
+ * + * string graph_hash = 1; + * @return The bytes for graphHash. + */ + public com.google.protobuf.ByteString + getGraphHashBytes() { + java.lang.Object ref = graphHash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + graphHash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Stores the fingerprint of the graph that describes the dataset that is
+       * snapshotted.
+       * 
+ * + * string graph_hash = 1; + * @param value The graphHash to set. + * @return This builder for chaining. + */ + public Builder setGraphHash( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + graphHash_ = value; + onChanged(); + return this; + } + /** + *
+       * Stores the fingerprint of the graph that describes the dataset that is
+       * snapshotted.
+       * 
+ * + * string graph_hash = 1; + * @return This builder for chaining. + */ + public Builder clearGraphHash() { + + graphHash_ = getDefaultInstance().getGraphHash(); + onChanged(); + return this; + } + /** + *
+       * Stores the fingerprint of the graph that describes the dataset that is
+       * snapshotted.
+       * 
+ * + * string graph_hash = 1; + * @param value The bytes for graphHash to set. + * @return This builder for chaining. + */ + public Builder setGraphHashBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + graphHash_ = value; + onChanged(); + return this; + } + + private java.lang.Object runId_ = ""; + /** + *
+       * Run ID that this snapshot corresponds to.
+       * 
+ * + * string run_id = 2; + * @return The runId. + */ + public java.lang.String getRunId() { + java.lang.Object ref = runId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + runId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Run ID that this snapshot corresponds to.
+       * 
+ * + * string run_id = 2; + * @return The bytes for runId. + */ + public com.google.protobuf.ByteString + getRunIdBytes() { + java.lang.Object ref = runId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + runId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Run ID that this snapshot corresponds to.
+       * 
+ * + * string run_id = 2; + * @param value The runId to set. + * @return This builder for chaining. + */ + public Builder setRunId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + runId_ = value; + onChanged(); + return this; + } + /** + *
+       * Run ID that this snapshot corresponds to.
+       * 
+ * + * string run_id = 2; + * @return This builder for chaining. + */ + public Builder clearRunId() { + + runId_ = getDefaultInstance().getRunId(); + onChanged(); + return this; + } + /** + *
+       * Run ID that this snapshot corresponds to.
+       * 
+ * + * string run_id = 2; + * @param value The bytes for runId to set. + * @return This builder for chaining. + */ + public Builder setRunIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + runId_ = value; + onChanged(); + return this; + } + + private long creationTimestamp_ ; + /** + *
+       * Time when we started creating this snapshot.
+       * 
+ * + * int64 creation_timestamp = 3; + * @return The creationTimestamp. + */ + @java.lang.Override + public long getCreationTimestamp() { + return creationTimestamp_; + } + /** + *
+       * Time when we started creating this snapshot.
+       * 
+ * + * int64 creation_timestamp = 3; + * @param value The creationTimestamp to set. + * @return This builder for chaining. + */ + public Builder setCreationTimestamp(long value) { + + creationTimestamp_ = value; + onChanged(); + return this; + } + /** + *
+       * Time when we started creating this snapshot.
+       * 
+ * + * int64 creation_timestamp = 3; + * @return This builder for chaining. + */ + public Builder clearCreationTimestamp() { + + creationTimestamp_ = 0L; + onChanged(); + return this; + } + + private long version_ ; + /** + *
+       * Version of the snapshot data file format.
+       * 
+ * + * int64 version = 4; + * @return The version. + */ + @java.lang.Override + public long getVersion() { + return version_; + } + /** + *
+       * Version of the snapshot data file format.
+       * 
+ * + * int64 version = 4; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(long value) { + + version_ = value; + onChanged(); + return this; + } + /** + *
+       * Version of the snapshot data file format.
+       * 
+ * + * int64 version = 4; + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = 0L; + onChanged(); + return this; + } + + private java.util.List dtype_ = + java.util.Collections.emptyList(); + private void ensureDtypeIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dtype_ = new java.util.ArrayList(dtype_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * A list of tensor dtype corresponding to each element of the snapshot.
+       * 
+ * + * repeated .tensorflow.DataType dtype = 5; + * @return A list containing the dtype. + */ + public java.util.List getDtypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, org.tensorflow.proto.DataType>(dtype_, dtype_converter_); + } + /** + *
+       * A list of tensor dtype corresponding to each element of the snapshot.
+       * 
+ * + * repeated .tensorflow.DataType dtype = 5; + * @return The count of dtype. + */ + public int getDtypeCount() { + return dtype_.size(); + } + /** + *
+       * A list of tensor dtype corresponding to each element of the snapshot.
+       * 
+ * + * repeated .tensorflow.DataType dtype = 5; + * @param index The index of the element to return. + * @return The dtype at the given index. + */ + public org.tensorflow.proto.DataType getDtype(int index) { + return dtype_converter_.convert(dtype_.get(index)); + } + /** + *
+       * A list of tensor dtype corresponding to each element of the snapshot.
+       * 
+ * + * repeated .tensorflow.DataType dtype = 5; + * @param index The index to set the value at. + * @param value The dtype to set. + * @return This builder for chaining. + */ + public Builder setDtype( + int index, org.tensorflow.proto.DataType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDtypeIsMutable(); + dtype_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * A list of tensor dtype corresponding to each element of the snapshot.
+       * 
+ * + * repeated .tensorflow.DataType dtype = 5; + * @param value The dtype to add. + * @return This builder for chaining. + */ + public Builder addDtype(org.tensorflow.proto.DataType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDtypeIsMutable(); + dtype_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * A list of tensor dtype corresponding to each element of the snapshot.
+       * 
+ * + * repeated .tensorflow.DataType dtype = 5; + * @param values The dtype to add. + * @return This builder for chaining. + */ + public Builder addAllDtype( + java.lang.Iterable values) { + ensureDtypeIsMutable(); + for (org.tensorflow.proto.DataType value : values) { + dtype_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+       * A list of tensor dtype corresponding to each element of the snapshot.
+       * 
+ * + * repeated .tensorflow.DataType dtype = 5; + * @return This builder for chaining. + */ + public Builder clearDtype() { + dtype_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * A list of tensor dtype corresponding to each element of the snapshot.
+       * 
+ * + * repeated .tensorflow.DataType dtype = 5; + * @return A list containing the enum numeric values on the wire for dtype. + */ + public java.util.List + getDtypeValueList() { + return java.util.Collections.unmodifiableList(dtype_); + } + /** + *
+       * A list of tensor dtype corresponding to each element of the snapshot.
+       * 
+ * + * repeated .tensorflow.DataType dtype = 5; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of dtype at the given index. + */ + public int getDtypeValue(int index) { + return dtype_.get(index); + } + /** + *
+       * A list of tensor dtype corresponding to each element of the snapshot.
+       * 
+ * + * repeated .tensorflow.DataType dtype = 5; + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for dtype to set. + * @return This builder for chaining. + */ + public Builder setDtypeValue( + int index, int value) { + ensureDtypeIsMutable(); + dtype_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * A list of tensor dtype corresponding to each element of the snapshot.
+       * 
+ * + * repeated .tensorflow.DataType dtype = 5; + * @param value The enum numeric value on the wire for dtype to add. + * @return This builder for chaining. + */ + public Builder addDtypeValue(int value) { + ensureDtypeIsMutable(); + dtype_.add(value); + onChanged(); + return this; + } + /** + *
+       * A list of tensor dtype corresponding to each element of the snapshot.
+       * 
+ * + * repeated .tensorflow.DataType dtype = 5; + * @param values The enum numeric values on the wire for dtype to add. + * @return This builder for chaining. + */ + public Builder addAllDtypeValue( + java.lang.Iterable values) { + ensureDtypeIsMutable(); + for (int value : values) { + dtype_.add(value); + } + onChanged(); + return this; + } + + private long numElements_ ; + /** + *
+       * The number of elements in the snapshot.
+       * 
+ * + * int64 num_elements = 6; + * @return The numElements. + */ + @java.lang.Override + public long getNumElements() { + return numElements_; + } + /** + *
+       * The number of elements in the snapshot.
+       * 
+ * + * int64 num_elements = 6; + * @param value The numElements to set. + * @return This builder for chaining. + */ + public Builder setNumElements(long value) { + + numElements_ = value; + onChanged(); + return this; + } + /** + *
+       * The number of elements in the snapshot.
+       * 
+ * + * int64 num_elements = 6; + * @return This builder for chaining. + */ + public Builder clearNumElements() { + + numElements_ = 0L; + onChanged(); + return this; + } + + private boolean finalized_ ; + /** + * bool finalized = 1000; + * @return The finalized. + */ + @java.lang.Override + public boolean getFinalized() { + return finalized_; + } + /** + * bool finalized = 1000; + * @param value The finalized to set. + * @return This builder for chaining. + */ + public Builder setFinalized(boolean value) { + + finalized_ = value; + onChanged(); + return this; + } + /** + * bool finalized = 1000; + * @return This builder for chaining. + */ + public Builder clearFinalized() { + + finalized_ = false; + 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:tensorflow.data.experimental.SnapshotMetadataRecord) + } + + // @@protoc_insertion_point(class_scope:tensorflow.data.experimental.SnapshotMetadataRecord) + private static final org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord(); + } + + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnapshotMetadataRecord 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 org.tensorflow.proto.data.experimental.Snapshot.SnapshotMetadataRecord getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TensorMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.data.experimental.TensorMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * .tensorflow.TensorShapeProto tensor_shape = 2; + * @return Whether the tensorShape field is set. + */ + boolean hasTensorShape(); + /** + * .tensorflow.TensorShapeProto tensor_shape = 2; + * @return The tensorShape. + */ + org.tensorflow.proto.TensorShapeProto getTensorShape(); + /** + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + org.tensorflow.proto.TensorShapeProtoOrBuilder getTensorShapeOrBuilder(); + + /** + *
+     * Number of uncompressed bytes used to store the tensor representation.
+     * 
+ * + * int64 tensor_size_bytes = 3; + * @return The tensorSizeBytes. + */ + long getTensorSizeBytes(); + } + /** + *
+   * Metadata for a single tensor in the Snapshot Record.
+   * 
+ * + * Protobuf type {@code tensorflow.data.experimental.TensorMetadata} + */ + public static final class TensorMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.data.experimental.TensorMetadata) + TensorMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use TensorMetadata.newBuilder() to construct. + private TensorMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TensorMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TensorMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_TensorMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_TensorMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata.class, org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata.Builder.class); + } + + public static final int TENSOR_SHAPE_FIELD_NUMBER = 2; + private org.tensorflow.proto.TensorShapeProto tensorShape_; + /** + * .tensorflow.TensorShapeProto tensor_shape = 2; + * @return Whether the tensorShape field is set. + */ + @java.lang.Override + public boolean hasTensorShape() { + return tensorShape_ != null; + } + /** + * .tensorflow.TensorShapeProto tensor_shape = 2; + * @return The tensorShape. + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProto getTensorShape() { + return tensorShape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : tensorShape_; + } + /** + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + @java.lang.Override + public org.tensorflow.proto.TensorShapeProtoOrBuilder getTensorShapeOrBuilder() { + return getTensorShape(); + } + + public static final int TENSOR_SIZE_BYTES_FIELD_NUMBER = 3; + private long tensorSizeBytes_; + /** + *
+     * Number of uncompressed bytes used to store the tensor representation.
+     * 
+ * + * int64 tensor_size_bytes = 3; + * @return The tensorSizeBytes. + */ + @java.lang.Override + public long getTensorSizeBytes() { + return tensorSizeBytes_; + } + + 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 (tensorShape_ != null) { + output.writeMessage(2, getTensorShape()); + } + if (tensorSizeBytes_ != 0L) { + output.writeInt64(3, tensorSizeBytes_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (tensorShape_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTensorShape()); + } + if (tensorSizeBytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, tensorSizeBytes_); + } + 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 org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata)) { + return super.equals(obj); + } + org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata other = (org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata) obj; + + if (hasTensorShape() != other.hasTensorShape()) return false; + if (hasTensorShape()) { + if (!getTensorShape() + .equals(other.getTensorShape())) return false; + } + if (getTensorSizeBytes() + != other.getTensorSizeBytes()) 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 (hasTensorShape()) { + hash = (37 * hash) + TENSOR_SHAPE_FIELD_NUMBER; + hash = (53 * hash) + getTensorShape().hashCode(); + } + hash = (37 * hash) + TENSOR_SIZE_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTensorSizeBytes()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata 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 org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata 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 org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata 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(org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata 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; + } + /** + *
+     * Metadata for a single tensor in the Snapshot Record.
+     * 
+ * + * Protobuf type {@code tensorflow.data.experimental.TensorMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.data.experimental.TensorMetadata) + org.tensorflow.proto.data.experimental.Snapshot.TensorMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_TensorMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_TensorMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata.class, org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata.Builder.class); + } + + // Construct using org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (tensorShapeBuilder_ == null) { + tensorShape_ = null; + } else { + tensorShape_ = null; + tensorShapeBuilder_ = null; + } + tensorSizeBytes_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_TensorMetadata_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata getDefaultInstanceForType() { + return org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata build() { + org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata buildPartial() { + org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata result = new org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata(this); + if (tensorShapeBuilder_ == null) { + result.tensorShape_ = tensorShape_; + } else { + result.tensorShape_ = tensorShapeBuilder_.build(); + } + result.tensorSizeBytes_ = tensorSizeBytes_; + 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 org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata) { + return mergeFrom((org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata other) { + if (other == org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata.getDefaultInstance()) return this; + if (other.hasTensorShape()) { + mergeTensorShape(other.getTensorShape()); + } + if (other.getTensorSizeBytes() != 0L) { + setTensorSizeBytes(other.getTensorSizeBytes()); + } + 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 18: { + input.readMessage( + getTensorShapeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 24: { + tensorSizeBytes_ = input.readInt64(); + + break; + } // case 24 + 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 org.tensorflow.proto.TensorShapeProto tensorShape_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> tensorShapeBuilder_; + /** + * .tensorflow.TensorShapeProto tensor_shape = 2; + * @return Whether the tensorShape field is set. + */ + public boolean hasTensorShape() { + return tensorShapeBuilder_ != null || tensorShape_ != null; + } + /** + * .tensorflow.TensorShapeProto tensor_shape = 2; + * @return The tensorShape. + */ + public org.tensorflow.proto.TensorShapeProto getTensorShape() { + if (tensorShapeBuilder_ == null) { + return tensorShape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : tensorShape_; + } else { + return tensorShapeBuilder_.getMessage(); + } + } + /** + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + public Builder setTensorShape(org.tensorflow.proto.TensorShapeProto value) { + if (tensorShapeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tensorShape_ = value; + onChanged(); + } else { + tensorShapeBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + public Builder setTensorShape( + org.tensorflow.proto.TensorShapeProto.Builder builderForValue) { + if (tensorShapeBuilder_ == null) { + tensorShape_ = builderForValue.build(); + onChanged(); + } else { + tensorShapeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + public Builder mergeTensorShape(org.tensorflow.proto.TensorShapeProto value) { + if (tensorShapeBuilder_ == null) { + if (tensorShape_ != null) { + tensorShape_ = + org.tensorflow.proto.TensorShapeProto.newBuilder(tensorShape_).mergeFrom(value).buildPartial(); + } else { + tensorShape_ = value; + } + onChanged(); + } else { + tensorShapeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + public Builder clearTensorShape() { + if (tensorShapeBuilder_ == null) { + tensorShape_ = null; + onChanged(); + } else { + tensorShape_ = null; + tensorShapeBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + public org.tensorflow.proto.TensorShapeProto.Builder getTensorShapeBuilder() { + + onChanged(); + return getTensorShapeFieldBuilder().getBuilder(); + } + /** + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + public org.tensorflow.proto.TensorShapeProtoOrBuilder getTensorShapeOrBuilder() { + if (tensorShapeBuilder_ != null) { + return tensorShapeBuilder_.getMessageOrBuilder(); + } else { + return tensorShape_ == null ? + org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : tensorShape_; + } + } + /** + * .tensorflow.TensorShapeProto tensor_shape = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> + getTensorShapeFieldBuilder() { + if (tensorShapeBuilder_ == null) { + tensorShapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder>( + getTensorShape(), + getParentForChildren(), + isClean()); + tensorShape_ = null; + } + return tensorShapeBuilder_; + } + + private long tensorSizeBytes_ ; + /** + *
+       * Number of uncompressed bytes used to store the tensor representation.
+       * 
+ * + * int64 tensor_size_bytes = 3; + * @return The tensorSizeBytes. + */ + @java.lang.Override + public long getTensorSizeBytes() { + return tensorSizeBytes_; + } + /** + *
+       * Number of uncompressed bytes used to store the tensor representation.
+       * 
+ * + * int64 tensor_size_bytes = 3; + * @param value The tensorSizeBytes to set. + * @return This builder for chaining. + */ + public Builder setTensorSizeBytes(long value) { + + tensorSizeBytes_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of uncompressed bytes used to store the tensor representation.
+       * 
+ * + * int64 tensor_size_bytes = 3; + * @return This builder for chaining. + */ + public Builder clearTensorSizeBytes() { + + tensorSizeBytes_ = 0L; + 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:tensorflow.data.experimental.TensorMetadata) + } + + // @@protoc_insertion_point(class_scope:tensorflow.data.experimental.TensorMetadata) + private static final org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata(); + } + + public static org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TensorMetadata 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 org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SnapshotTensorMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.data.experimental.SnapshotTensorMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + java.util.List + getTensorMetadataList(); + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata getTensorMetadata(int index); + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + int getTensorMetadataCount(); + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + java.util.List + getTensorMetadataOrBuilderList(); + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + org.tensorflow.proto.data.experimental.Snapshot.TensorMetadataOrBuilder getTensorMetadataOrBuilder( + int index); + } + /** + *
+   * Metadata for all the tensors in a Snapshot Record.
+   * 
+ * + * Protobuf type {@code tensorflow.data.experimental.SnapshotTensorMetadata} + */ + public static final class SnapshotTensorMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.data.experimental.SnapshotTensorMetadata) + SnapshotTensorMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use SnapshotTensorMetadata.newBuilder() to construct. + private SnapshotTensorMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SnapshotTensorMetadata() { + tensorMetadata_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SnapshotTensorMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotTensorMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotTensorMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata.class, org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata.Builder.class); + } + + public static final int TENSOR_METADATA_FIELD_NUMBER = 1; + private java.util.List tensorMetadata_; + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + @java.lang.Override + public java.util.List getTensorMetadataList() { + return tensorMetadata_; + } + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + @java.lang.Override + public java.util.List + getTensorMetadataOrBuilderList() { + return tensorMetadata_; + } + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + @java.lang.Override + public int getTensorMetadataCount() { + return tensorMetadata_.size(); + } + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + @java.lang.Override + public org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata getTensorMetadata(int index) { + return tensorMetadata_.get(index); + } + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + @java.lang.Override + public org.tensorflow.proto.data.experimental.Snapshot.TensorMetadataOrBuilder getTensorMetadataOrBuilder( + int index) { + return tensorMetadata_.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 < tensorMetadata_.size(); i++) { + output.writeMessage(1, tensorMetadata_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tensorMetadata_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, tensorMetadata_.get(i)); + } + 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 org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata)) { + return super.equals(obj); + } + org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata other = (org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata) obj; + + if (!getTensorMetadataList() + .equals(other.getTensorMetadataList())) 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 (getTensorMetadataCount() > 0) { + hash = (37 * hash) + TENSOR_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTensorMetadataList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata 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 org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata 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 org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata 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(org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata 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; + } + /** + *
+     * Metadata for all the tensors in a Snapshot Record.
+     * 
+ * + * Protobuf type {@code tensorflow.data.experimental.SnapshotTensorMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.data.experimental.SnapshotTensorMetadata) + org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotTensorMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotTensorMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata.class, org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata.Builder.class); + } + + // Construct using org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (tensorMetadataBuilder_ == null) { + tensorMetadata_ = java.util.Collections.emptyList(); + } else { + tensorMetadata_ = null; + tensorMetadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_SnapshotTensorMetadata_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata getDefaultInstanceForType() { + return org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata build() { + org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata buildPartial() { + org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata result = new org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata(this); + int from_bitField0_ = bitField0_; + if (tensorMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tensorMetadata_ = java.util.Collections.unmodifiableList(tensorMetadata_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tensorMetadata_ = tensorMetadata_; + } else { + result.tensorMetadata_ = tensorMetadataBuilder_.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 org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata) { + return mergeFrom((org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata other) { + if (other == org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata.getDefaultInstance()) return this; + if (tensorMetadataBuilder_ == null) { + if (!other.tensorMetadata_.isEmpty()) { + if (tensorMetadata_.isEmpty()) { + tensorMetadata_ = other.tensorMetadata_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTensorMetadataIsMutable(); + tensorMetadata_.addAll(other.tensorMetadata_); + } + onChanged(); + } + } else { + if (!other.tensorMetadata_.isEmpty()) { + if (tensorMetadataBuilder_.isEmpty()) { + tensorMetadataBuilder_.dispose(); + tensorMetadataBuilder_ = null; + tensorMetadata_ = other.tensorMetadata_; + bitField0_ = (bitField0_ & ~0x00000001); + tensorMetadataBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTensorMetadataFieldBuilder() : null; + } else { + tensorMetadataBuilder_.addAllMessages(other.tensorMetadata_); + } + } + } + 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: { + org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata m = + input.readMessage( + org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata.parser(), + extensionRegistry); + if (tensorMetadataBuilder_ == null) { + ensureTensorMetadataIsMutable(); + tensorMetadata_.add(m); + } else { + tensorMetadataBuilder_.addMessage(m); + } + 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.util.List tensorMetadata_ = + java.util.Collections.emptyList(); + private void ensureTensorMetadataIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tensorMetadata_ = new java.util.ArrayList(tensorMetadata_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata, org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata.Builder, org.tensorflow.proto.data.experimental.Snapshot.TensorMetadataOrBuilder> tensorMetadataBuilder_; + + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + public java.util.List getTensorMetadataList() { + if (tensorMetadataBuilder_ == null) { + return java.util.Collections.unmodifiableList(tensorMetadata_); + } else { + return tensorMetadataBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + public int getTensorMetadataCount() { + if (tensorMetadataBuilder_ == null) { + return tensorMetadata_.size(); + } else { + return tensorMetadataBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + public org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata getTensorMetadata(int index) { + if (tensorMetadataBuilder_ == null) { + return tensorMetadata_.get(index); + } else { + return tensorMetadataBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + public Builder setTensorMetadata( + int index, org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata value) { + if (tensorMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorMetadataIsMutable(); + tensorMetadata_.set(index, value); + onChanged(); + } else { + tensorMetadataBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + public Builder setTensorMetadata( + int index, org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata.Builder builderForValue) { + if (tensorMetadataBuilder_ == null) { + ensureTensorMetadataIsMutable(); + tensorMetadata_.set(index, builderForValue.build()); + onChanged(); + } else { + tensorMetadataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + public Builder addTensorMetadata(org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata value) { + if (tensorMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorMetadataIsMutable(); + tensorMetadata_.add(value); + onChanged(); + } else { + tensorMetadataBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + public Builder addTensorMetadata( + int index, org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata value) { + if (tensorMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTensorMetadataIsMutable(); + tensorMetadata_.add(index, value); + onChanged(); + } else { + tensorMetadataBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + public Builder addTensorMetadata( + org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata.Builder builderForValue) { + if (tensorMetadataBuilder_ == null) { + ensureTensorMetadataIsMutable(); + tensorMetadata_.add(builderForValue.build()); + onChanged(); + } else { + tensorMetadataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + public Builder addTensorMetadata( + int index, org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata.Builder builderForValue) { + if (tensorMetadataBuilder_ == null) { + ensureTensorMetadataIsMutable(); + tensorMetadata_.add(index, builderForValue.build()); + onChanged(); + } else { + tensorMetadataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + public Builder addAllTensorMetadata( + java.lang.Iterable values) { + if (tensorMetadataBuilder_ == null) { + ensureTensorMetadataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tensorMetadata_); + onChanged(); + } else { + tensorMetadataBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + public Builder clearTensorMetadata() { + if (tensorMetadataBuilder_ == null) { + tensorMetadata_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tensorMetadataBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + public Builder removeTensorMetadata(int index) { + if (tensorMetadataBuilder_ == null) { + ensureTensorMetadataIsMutable(); + tensorMetadata_.remove(index); + onChanged(); + } else { + tensorMetadataBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + public org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata.Builder getTensorMetadataBuilder( + int index) { + return getTensorMetadataFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + public org.tensorflow.proto.data.experimental.Snapshot.TensorMetadataOrBuilder getTensorMetadataOrBuilder( + int index) { + if (tensorMetadataBuilder_ == null) { + return tensorMetadata_.get(index); } else { + return tensorMetadataBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + public java.util.List + getTensorMetadataOrBuilderList() { + if (tensorMetadataBuilder_ != null) { + return tensorMetadataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tensorMetadata_); + } + } + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + public org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata.Builder addTensorMetadataBuilder() { + return getTensorMetadataFieldBuilder().addBuilder( + org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata.getDefaultInstance()); + } + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + public org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata.Builder addTensorMetadataBuilder( + int index) { + return getTensorMetadataFieldBuilder().addBuilder( + index, org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata.getDefaultInstance()); + } + /** + * repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; + */ + public java.util.List + getTensorMetadataBuilderList() { + return getTensorMetadataFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata, org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata.Builder, org.tensorflow.proto.data.experimental.Snapshot.TensorMetadataOrBuilder> + getTensorMetadataFieldBuilder() { + if (tensorMetadataBuilder_ == null) { + tensorMetadataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata, org.tensorflow.proto.data.experimental.Snapshot.TensorMetadata.Builder, org.tensorflow.proto.data.experimental.Snapshot.TensorMetadataOrBuilder>( + tensorMetadata_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + tensorMetadata_ = null; + } + return tensorMetadataBuilder_; + } + @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:tensorflow.data.experimental.SnapshotTensorMetadata) + } + + // @@protoc_insertion_point(class_scope:tensorflow.data.experimental.SnapshotTensorMetadata) + private static final org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata(); + } + + public static org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnapshotTensorMetadata 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 org.tensorflow.proto.data.experimental.Snapshot.SnapshotTensorMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DistributedSnapshotMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.data.experimental.DistributedSnapshotMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The element spec of the snapshotted dataset.
+     * 
+ * + * bytes element_spec = 1; + * @return The elementSpec. + */ + com.google.protobuf.ByteString getElementSpec(); + + /** + *
+     * Whether and how to compress the snapshot.  Supported values are defined in
+     * `tsl::io::compression`.  In particular, an empty string specifies not to
+     * compress.
+     * 
+ * + * string compression = 2; + * @return The compression. + */ + java.lang.String getCompression(); + /** + *
+     * Whether and how to compress the snapshot.  Supported values are defined in
+     * `tsl::io::compression`.  In particular, an empty string specifies not to
+     * compress.
+     * 
+ * + * string compression = 2; + * @return The bytes for compression. + */ + com.google.protobuf.ByteString + getCompressionBytes(); + } + /** + *
+   * Metadata for a `tf.data.Dataset` distributed snapshot.
+   * 
+ * + * Protobuf type {@code tensorflow.data.experimental.DistributedSnapshotMetadata} + */ + public static final class DistributedSnapshotMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.data.experimental.DistributedSnapshotMetadata) + DistributedSnapshotMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use DistributedSnapshotMetadata.newBuilder() to construct. + private DistributedSnapshotMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DistributedSnapshotMetadata() { + elementSpec_ = com.google.protobuf.ByteString.EMPTY; + compression_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DistributedSnapshotMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_DistributedSnapshotMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_DistributedSnapshotMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata.class, org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata.Builder.class); + } + + public static final int ELEMENT_SPEC_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString elementSpec_; + /** + *
+     * The element spec of the snapshotted dataset.
+     * 
+ * + * bytes element_spec = 1; + * @return The elementSpec. + */ + @java.lang.Override + public com.google.protobuf.ByteString getElementSpec() { + return elementSpec_; + } + + public static final int COMPRESSION_FIELD_NUMBER = 2; + private volatile java.lang.Object compression_; + /** + *
+     * Whether and how to compress the snapshot.  Supported values are defined in
+     * `tsl::io::compression`.  In particular, an empty string specifies not to
+     * compress.
+     * 
+ * + * string compression = 2; + * @return The compression. + */ + @java.lang.Override + public java.lang.String getCompression() { + java.lang.Object ref = compression_; + 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(); + compression_ = s; + return s; + } + } + /** + *
+     * Whether and how to compress the snapshot.  Supported values are defined in
+     * `tsl::io::compression`.  In particular, an empty string specifies not to
+     * compress.
+     * 
+ * + * string compression = 2; + * @return The bytes for compression. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCompressionBytes() { + java.lang.Object ref = compression_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + compression_ = 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 (!elementSpec_.isEmpty()) { + output.writeBytes(1, elementSpec_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(compression_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, compression_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!elementSpec_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, elementSpec_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(compression_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, compression_); + } + 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 org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata)) { + return super.equals(obj); + } + org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata other = (org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata) obj; + + if (!getElementSpec() + .equals(other.getElementSpec())) return false; + if (!getCompression() + .equals(other.getCompression())) 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) + ELEMENT_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getElementSpec().hashCode(); + hash = (37 * hash) + COMPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getCompression().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata 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 org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata 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 org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata 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(org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata 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; + } + /** + *
+     * Metadata for a `tf.data.Dataset` distributed snapshot.
+     * 
+ * + * Protobuf type {@code tensorflow.data.experimental.DistributedSnapshotMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.data.experimental.DistributedSnapshotMetadata) + org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_DistributedSnapshotMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_DistributedSnapshotMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata.class, org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata.Builder.class); + } + + // Construct using org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + elementSpec_ = com.google.protobuf.ByteString.EMPTY; + + compression_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.data.experimental.Snapshot.internal_static_tensorflow_data_experimental_DistributedSnapshotMetadata_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata getDefaultInstanceForType() { + return org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata build() { + org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata buildPartial() { + org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata result = new org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata(this); + result.elementSpec_ = elementSpec_; + result.compression_ = compression_; + 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 org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata) { + return mergeFrom((org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata other) { + if (other == org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata.getDefaultInstance()) return this; + if (other.getElementSpec() != com.google.protobuf.ByteString.EMPTY) { + setElementSpec(other.getElementSpec()); + } + if (!other.getCompression().isEmpty()) { + compression_ = other.compression_; + 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: { + elementSpec_ = input.readBytes(); + + break; + } // case 10 + case 18: { + compression_ = input.readStringRequireUtf8(); + + 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 com.google.protobuf.ByteString elementSpec_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * The element spec of the snapshotted dataset.
+       * 
+ * + * bytes element_spec = 1; + * @return The elementSpec. + */ + @java.lang.Override + public com.google.protobuf.ByteString getElementSpec() { + return elementSpec_; + } + /** + *
+       * The element spec of the snapshotted dataset.
+       * 
+ * + * bytes element_spec = 1; + * @param value The elementSpec to set. + * @return This builder for chaining. + */ + public Builder setElementSpec(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + elementSpec_ = value; + onChanged(); + return this; + } + /** + *
+       * The element spec of the snapshotted dataset.
+       * 
+ * + * bytes element_spec = 1; + * @return This builder for chaining. + */ + public Builder clearElementSpec() { + + elementSpec_ = getDefaultInstance().getElementSpec(); + onChanged(); + return this; + } + + private java.lang.Object compression_ = ""; + /** + *
+       * Whether and how to compress the snapshot.  Supported values are defined in
+       * `tsl::io::compression`.  In particular, an empty string specifies not to
+       * compress.
+       * 
+ * + * string compression = 2; + * @return The compression. + */ + public java.lang.String getCompression() { + java.lang.Object ref = compression_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + compression_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Whether and how to compress the snapshot.  Supported values are defined in
+       * `tsl::io::compression`.  In particular, an empty string specifies not to
+       * compress.
+       * 
+ * + * string compression = 2; + * @return The bytes for compression. + */ + public com.google.protobuf.ByteString + getCompressionBytes() { + java.lang.Object ref = compression_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + compression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Whether and how to compress the snapshot.  Supported values are defined in
+       * `tsl::io::compression`.  In particular, an empty string specifies not to
+       * compress.
+       * 
+ * + * string compression = 2; + * @param value The compression to set. + * @return This builder for chaining. + */ + public Builder setCompression( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + compression_ = value; + onChanged(); + return this; + } + /** + *
+       * Whether and how to compress the snapshot.  Supported values are defined in
+       * `tsl::io::compression`.  In particular, an empty string specifies not to
+       * compress.
+       * 
+ * + * string compression = 2; + * @return This builder for chaining. + */ + public Builder clearCompression() { + + compression_ = getDefaultInstance().getCompression(); + onChanged(); + return this; + } + /** + *
+       * Whether and how to compress the snapshot.  Supported values are defined in
+       * `tsl::io::compression`.  In particular, an empty string specifies not to
+       * compress.
+       * 
+ * + * string compression = 2; + * @param value The bytes for compression to set. + * @return This builder for chaining. + */ + public Builder setCompressionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + compression_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.data.experimental.DistributedSnapshotMetadata) + } + + // @@protoc_insertion_point(class_scope:tensorflow.data.experimental.DistributedSnapshotMetadata) + private static final org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata(); + } + + public static org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistributedSnapshotMetadata 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 org.tensorflow.proto.data.experimental.Snapshot.DistributedSnapshotMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_data_experimental_SnapshotRecord_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_data_experimental_SnapshotRecord_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_data_experimental_TensorMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_data_experimental_TensorMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_data_experimental_SnapshotTensorMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_data_experimental_SnapshotTensorMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_data_experimental_DistributedSnapshotMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_data_experimental_DistributedSnapshotMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'tensorflow/core/protobuf/snapshot.prot" + + "o\022\034tensorflow.data.experimental\032&tensorf" + + "low/core/framework/tensor.proto\032,tensorf" + + "low/core/framework/tensor_shape.proto\032%t" + + "ensorflow/core/framework/types.proto\"9\n\016" + + "SnapshotRecord\022\'\n\006tensor\030\001 \003(\0132\027.tensorf" + + "low.TensorProto\"\270\001\n\026SnapshotMetadataReco" + + "rd\022\022\n\ngraph_hash\030\001 \001(\t\022\016\n\006run_id\030\002 \001(\t\022\032" + + "\n\022creation_timestamp\030\003 \001(\003\022\017\n\007version\030\004 " + + "\001(\003\022#\n\005dtype\030\005 \003(\0162\024.tensorflow.DataType" + + "\022\024\n\014num_elements\030\006 \001(\003\022\022\n\tfinalized\030\350\007 \001" + + "(\010\"_\n\016TensorMetadata\0222\n\014tensor_shape\030\002 \001" + + "(\0132\034.tensorflow.TensorShapeProto\022\031\n\021tens" + + "or_size_bytes\030\003 \001(\003\"_\n\026SnapshotTensorMet" + + "adata\022E\n\017tensor_metadata\030\001 \003(\0132,.tensorf" + + "low.data.experimental.TensorMetadata\"H\n\033" + + "DistributedSnapshotMetadata\022\024\n\014element_s" + + "pec\030\001 \001(\014\022\023\n\013compression\030\002 \001(\tB\177\n&org.te" + + "nsorflow.proto.data.experimentalZUgithub" + + ".com/tensorflow/tensorflow/tensorflow/go" + + "/core/protobuf/for_core_protos_go_protob" + + "\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + org.tensorflow.proto.TensorProtos.getDescriptor(), + org.tensorflow.proto.TensorShapeProtos.getDescriptor(), + org.tensorflow.proto.TypesProtos.getDescriptor(), + }); + internal_static_tensorflow_data_experimental_SnapshotRecord_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_data_experimental_SnapshotRecord_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_data_experimental_SnapshotRecord_descriptor, + new java.lang.String[] { "Tensor", }); + internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_data_experimental_SnapshotMetadataRecord_descriptor, + new java.lang.String[] { "GraphHash", "RunId", "CreationTimestamp", "Version", "Dtype", "NumElements", "Finalized", }); + internal_static_tensorflow_data_experimental_TensorMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_tensorflow_data_experimental_TensorMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_data_experimental_TensorMetadata_descriptor, + new java.lang.String[] { "TensorShape", "TensorSizeBytes", }); + internal_static_tensorflow_data_experimental_SnapshotTensorMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_tensorflow_data_experimental_SnapshotTensorMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_data_experimental_SnapshotTensorMetadata_descriptor, + new java.lang.String[] { "TensorMetadata", }); + internal_static_tensorflow_data_experimental_DistributedSnapshotMetadata_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_tensorflow_data_experimental_DistributedSnapshotMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_data_experimental_DistributedSnapshotMetadata_descriptor, + new java.lang.String[] { "ElementSpec", "Compression", }); + org.tensorflow.proto.TensorProtos.getDescriptor(); + org.tensorflow.proto.TensorShapeProtos.getDescriptor(); + org.tensorflow.proto.TypesProtos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/data/model/Model.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/data/model/Model.java new file mode 100644 index 00000000000..f03d10c2626 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/data/model/Model.java @@ -0,0 +1,6308 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/framework/model.proto + +package org.tensorflow.proto.data.model; + +public final class Model { + private Model() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * Class of a node in the performance model.
+   * 
+ * + * Protobuf enum {@code tensorflow.data.model.NodeClass} + */ + public enum NodeClass + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * INTERLEAVE_MANY = 1; + */ + INTERLEAVE_MANY(1), + /** + * ASYNC_INTERLEAVE_MANY = 2; + */ + ASYNC_INTERLEAVE_MANY(2), + /** + * KNOWN_RATIO = 3; + */ + KNOWN_RATIO(3), + /** + * ASYNC_KNOWN_RATIO = 4; + */ + ASYNC_KNOWN_RATIO(4), + /** + * UNKNOWN_RATIO = 5; + */ + UNKNOWN_RATIO(5), + /** + * ASYNC_UNKNOWN_RATIO = 6; + */ + ASYNC_UNKNOWN_RATIO(6), + UNRECOGNIZED(-1), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * INTERLEAVE_MANY = 1; + */ + public static final int INTERLEAVE_MANY_VALUE = 1; + /** + * ASYNC_INTERLEAVE_MANY = 2; + */ + public static final int ASYNC_INTERLEAVE_MANY_VALUE = 2; + /** + * KNOWN_RATIO = 3; + */ + public static final int KNOWN_RATIO_VALUE = 3; + /** + * ASYNC_KNOWN_RATIO = 4; + */ + public static final int ASYNC_KNOWN_RATIO_VALUE = 4; + /** + * UNKNOWN_RATIO = 5; + */ + public static final int UNKNOWN_RATIO_VALUE = 5; + /** + * ASYNC_UNKNOWN_RATIO = 6; + */ + public static final int ASYNC_UNKNOWN_RATIO_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 NodeClass 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 NodeClass forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return INTERLEAVE_MANY; + case 2: return ASYNC_INTERLEAVE_MANY; + case 3: return KNOWN_RATIO; + case 4: return ASYNC_KNOWN_RATIO; + case 5: return UNKNOWN_RATIO; + case 6: return ASYNC_UNKNOWN_RATIO; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + NodeClass> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NodeClass findValueByNumber(int number) { + return NodeClass.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 org.tensorflow.proto.data.model.Model.getDescriptor().getEnumTypes().get(0); + } + + private static final NodeClass[] VALUES = values(); + + public static NodeClass 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 NodeClass(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:tensorflow.data.model.NodeClass) + } + + /** + *
+   * Algorithm used for model autotuning optimization.
+   * 
+ * + * Protobuf enum {@code tensorflow.data.model.AutotuneAlgorithm} + */ + public enum AutotuneAlgorithm + implements com.google.protobuf.ProtocolMessageEnum { + /** + * DEFAULT = 0; + */ + DEFAULT(0), + /** + * HILL_CLIMB = 1; + */ + HILL_CLIMB(1), + /** + * GRADIENT_DESCENT = 2; + */ + GRADIENT_DESCENT(2), + /** + * MAX_PARALLELISM = 3; + */ + MAX_PARALLELISM(3), + /** + * STAGE_BASED = 4; + */ + STAGE_BASED(4), + UNRECOGNIZED(-1), + ; + + /** + * DEFAULT = 0; + */ + public static final int DEFAULT_VALUE = 0; + /** + * HILL_CLIMB = 1; + */ + public static final int HILL_CLIMB_VALUE = 1; + /** + * GRADIENT_DESCENT = 2; + */ + public static final int GRADIENT_DESCENT_VALUE = 2; + /** + * MAX_PARALLELISM = 3; + */ + public static final int MAX_PARALLELISM_VALUE = 3; + /** + * STAGE_BASED = 4; + */ + public static final int STAGE_BASED_VALUE = 4; + + + 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 AutotuneAlgorithm 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 AutotuneAlgorithm forNumber(int value) { + switch (value) { + case 0: return DEFAULT; + case 1: return HILL_CLIMB; + case 2: return GRADIENT_DESCENT; + case 3: return MAX_PARALLELISM; + case 4: return STAGE_BASED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + AutotuneAlgorithm> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AutotuneAlgorithm findValueByNumber(int number) { + return AutotuneAlgorithm.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 org.tensorflow.proto.data.model.Model.getDescriptor().getEnumTypes().get(1); + } + + private static final AutotuneAlgorithm[] VALUES = values(); + + public static AutotuneAlgorithm 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 AutotuneAlgorithm(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:tensorflow.data.model.AutotuneAlgorithm) + } + + public interface ModelProtoOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.data.model.ModelProto) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Map of node IDs to nodes of this model.
+     * 
+ * + * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; + */ + int getNodesCount(); + /** + *
+     * Map of node IDs to nodes of this model.
+     * 
+ * + * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; + */ + boolean containsNodes( + long key); + /** + * Use {@link #getNodesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getNodes(); + /** + *
+     * Map of node IDs to nodes of this model.
+     * 
+ * + * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; + */ + java.util.Map + getNodesMap(); + /** + *
+     * Map of node IDs to nodes of this model.
+     * 
+ * + * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; + */ + + /* nullable */ +org.tensorflow.proto.data.model.Model.ModelProto.Node getNodesOrDefault( + long key, + /* nullable */ +org.tensorflow.proto.data.model.Model.ModelProto.Node defaultValue); + /** + *
+     * Map of node IDs to nodes of this model.
+     * 
+ * + * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; + */ + + org.tensorflow.proto.data.model.Model.ModelProto.Node getNodesOrThrow( + long key); + + /** + *
+     * ID of the output node of this model.
+     * 
+ * + * int64 output = 2; + * @return The output. + */ + long getOutput(); + + /** + *
+     * Counter for node IDs of this model.
+     * 
+ * + * int64 id_counter = 3; + * @return The idCounter. + */ + long getIdCounter(); + + /** + * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; + * @return Whether the optimizationParams field is set. + */ + boolean hasOptimizationParams(); + /** + * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; + * @return The optimizationParams. + */ + org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams getOptimizationParams(); + /** + * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; + */ + org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParamsOrBuilder getOptimizationParamsOrBuilder(); + + /** + * repeated uint64 gap_times = 6; + * @return A list containing the gapTimes. + */ + java.util.List getGapTimesList(); + /** + * repeated uint64 gap_times = 6; + * @return The count of gapTimes. + */ + int getGapTimesCount(); + /** + * repeated uint64 gap_times = 6; + * @param index The index of the element to return. + * @return The gapTimes at the given index. + */ + long getGapTimes(int index); + } + /** + *
+   * Protocol buffer representing the data used by the autotuning modeling
+   * framework.
+   * 
+ * + * Protobuf type {@code tensorflow.data.model.ModelProto} + */ + public static final class ModelProto extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.data.model.ModelProto) + ModelProtoOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModelProto.newBuilder() to construct. + private ModelProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ModelProto() { + gapTimes_ = emptyLongList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ModelProto(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.model.Model.internal_static_tensorflow_data_model_ModelProto_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetNodes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.model.Model.internal_static_tensorflow_data_model_ModelProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.model.Model.ModelProto.class, org.tensorflow.proto.data.model.Model.ModelProto.Builder.class); + } + + public interface NodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.data.model.ModelProto.Node) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * Unique node ID.
+       * 
+ * + * int64 id = 1; + * @return The id. + */ + long getId(); + + /** + *
+       * Human-readable name of the node.
+       * 
+ * + * string name = 2; + * @return The name. + */ + java.lang.String getName(); + /** + *
+       * Human-readable name of the node.
+       * 
+ * + * string name = 2; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+       * An indication whether autotuning is enabled for this node.
+       * 
+ * + * bool autotune = 3; + * @return The autotune. + */ + boolean getAutotune(); + + /** + *
+       * The number of bytes stored in this node's buffer.
+       * 
+ * + * int64 buffered_bytes = 4; + * @return The bufferedBytes. + */ + long getBufferedBytes(); + + /** + *
+       * The number of elements stored in this node's buffer.
+       * 
+ * + * int64 buffered_elements = 5; + * @return The bufferedElements. + */ + long getBufferedElements(); + + /** + *
+       * The number of bytes consumed by the node.
+       * 
+ * + * int64 bytes_consumed = 6; + * @return The bytesConsumed. + */ + long getBytesConsumed(); + + /** + *
+       * The number of bytes produced by the node.
+       * 
+ * + * int64 bytes_produced = 7; + * @return The bytesProduced. + */ + long getBytesProduced(); + + /** + *
+       * The number of elements produced by the node.
+       * 
+ * + * int64 num_elements = 8; + * @return The numElements. + */ + long getNumElements(); + + /** + *
+       * The aggregate processing time spent in this node in nanoseconds.
+       * 
+ * + * int64 processing_time = 9; + * @return The processingTime. + */ + long getProcessingTime(); + + /** + *
+       * An indication whether this node records metrics about produced and
+       * consumed elements.
+       * 
+ * + * bool record_metrics = 10; + * @return The recordMetrics. + */ + boolean getRecordMetrics(); + + /** + *
+       * Parameters of this node.
+       * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + java.util.List + getParametersList(); + /** + *
+       * Parameters of this node.
+       * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter getParameters(int index); + /** + *
+       * Parameters of this node.
+       * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + int getParametersCount(); + /** + *
+       * Parameters of this node.
+       * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + java.util.List + getParametersOrBuilderList(); + /** + *
+       * Parameters of this node.
+       * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + org.tensorflow.proto.data.model.Model.ModelProto.Node.ParameterOrBuilder getParametersOrBuilder( + int index); + + /** + *
+       * Statistic of inputs processing time history.
+       * 
+ * + * double input_processing_time_sum = 12; + * @return The inputProcessingTimeSum. + */ + double getInputProcessingTimeSum(); + + /** + * int64 input_processing_time_count = 13; + * @return The inputProcessingTimeCount. + */ + long getInputProcessingTimeCount(); + + /** + *
+       * IDs of inputs of this node.
+       * 
+ * + * repeated int64 inputs = 14; + * @return A list containing the inputs. + */ + java.util.List getInputsList(); + /** + *
+       * IDs of inputs of this node.
+       * 
+ * + * repeated int64 inputs = 14; + * @return The count of inputs. + */ + int getInputsCount(); + /** + *
+       * IDs of inputs of this node.
+       * 
+ * + * repeated int64 inputs = 14; + * @param index The index of the element to return. + * @return The inputs at the given index. + */ + long getInputs(int index); + + /** + *
+       * Class of this node.
+       * 
+ * + * .tensorflow.data.model.NodeClass node_class = 15; + * @return The enum numeric value on the wire for nodeClass. + */ + int getNodeClassValue(); + /** + *
+       * Class of this node.
+       * 
+ * + * .tensorflow.data.model.NodeClass node_class = 15; + * @return The nodeClass. + */ + org.tensorflow.proto.data.model.Model.NodeClass getNodeClass(); + + /** + *
+       * Ratio of input to output elements. This is only used by KNOWN_RATIO and
+       * ASYNC_KNOWN_RATIO nodes.
+       * 
+ * + * double ratio = 16; + * @return The ratio. + */ + double getRatio(); + + /** + *
+       * Ratio identifies how many parallelism calls are introduced by one
+       * buffered element. This is only used by ASYNC_KNOWN_RATIO nodes.
+       * 
+ * + * double memory_ratio = 17; + * @return The memoryRatio. + */ + double getMemoryRatio(); + } + /** + *
+     * General representation of a node in the model.
+     * 
+ * + * Protobuf type {@code tensorflow.data.model.ModelProto.Node} + */ + public static final class Node extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.data.model.ModelProto.Node) + NodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use Node.newBuilder() to construct. + private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Node() { + name_ = ""; + parameters_ = java.util.Collections.emptyList(); + inputs_ = emptyLongList(); + nodeClass_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Node(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.model.Model.internal_static_tensorflow_data_model_ModelProto_Node_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.model.Model.internal_static_tensorflow_data_model_ModelProto_Node_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.model.Model.ModelProto.Node.class, org.tensorflow.proto.data.model.Model.ModelProto.Node.Builder.class); + } + + public interface ParameterOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.data.model.ModelProto.Node.Parameter) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Human-readable name of the parameter.
+         * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+         * Human-readable name of the parameter.
+         * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+         * Identifies the model value of the parameter. This can be different from
+         * the actual value (e.g. during optimization search).
+         * 
+ * + * double value = 2; + * @return The value. + */ + double getValue(); + + /** + *
+         * The actual value of the parameter.
+         * 
+ * + * double state_value = 3; + * @return The stateValue. + */ + double getStateValue(); + + /** + *
+         * Minimum value of the parameter.
+         * 
+ * + * double min = 4; + * @return The min. + */ + double getMin(); + + /** + *
+         * Maximum value of the parameter.
+         * 
+ * + * double max = 5; + * @return The max. + */ + double getMax(); + + /** + *
+         * Identifies whether the parameter should participate in autotuning.
+         * 
+ * + * bool tunable = 6; + * @return The tunable. + */ + boolean getTunable(); + } + /** + *
+       * Represents a node parameter.
+       * 
+ * + * Protobuf type {@code tensorflow.data.model.ModelProto.Node.Parameter} + */ + public static final class Parameter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.data.model.ModelProto.Node.Parameter) + ParameterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Parameter.newBuilder() to construct. + private Parameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Parameter() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Parameter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.model.Model.internal_static_tensorflow_data_model_ModelProto_Node_Parameter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.model.Model.internal_static_tensorflow_data_model_ModelProto_Node_Parameter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter.class, org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+         * Human-readable name of the parameter.
+         * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+         * Human-readable name of the parameter.
+         * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private double value_; + /** + *
+         * Identifies the model value of the parameter. This can be different from
+         * the actual value (e.g. during optimization search).
+         * 
+ * + * double value = 2; + * @return The value. + */ + @java.lang.Override + public double getValue() { + return value_; + } + + public static final int STATE_VALUE_FIELD_NUMBER = 3; + private double stateValue_; + /** + *
+         * The actual value of the parameter.
+         * 
+ * + * double state_value = 3; + * @return The stateValue. + */ + @java.lang.Override + public double getStateValue() { + return stateValue_; + } + + public static final int MIN_FIELD_NUMBER = 4; + private double min_; + /** + *
+         * Minimum value of the parameter.
+         * 
+ * + * double min = 4; + * @return The min. + */ + @java.lang.Override + public double getMin() { + return min_; + } + + public static final int MAX_FIELD_NUMBER = 5; + private double max_; + /** + *
+         * Maximum value of the parameter.
+         * 
+ * + * double max = 5; + * @return The max. + */ + @java.lang.Override + public double getMax() { + return max_; + } + + public static final int TUNABLE_FIELD_NUMBER = 6; + private boolean tunable_; + /** + *
+         * Identifies whether the parameter should participate in autotuning.
+         * 
+ * + * bool tunable = 6; + * @return The tunable. + */ + @java.lang.Override + public boolean getTunable() { + return tunable_; + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (java.lang.Double.doubleToRawLongBits(value_) != 0) { + output.writeDouble(2, value_); + } + if (java.lang.Double.doubleToRawLongBits(stateValue_) != 0) { + output.writeDouble(3, stateValue_); + } + if (java.lang.Double.doubleToRawLongBits(min_) != 0) { + output.writeDouble(4, min_); + } + if (java.lang.Double.doubleToRawLongBits(max_) != 0) { + output.writeDouble(5, max_); + } + if (tunable_ != false) { + output.writeBool(6, tunable_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (java.lang.Double.doubleToRawLongBits(value_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, value_); + } + if (java.lang.Double.doubleToRawLongBits(stateValue_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, stateValue_); + } + if (java.lang.Double.doubleToRawLongBits(min_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, min_); + } + if (java.lang.Double.doubleToRawLongBits(max_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(5, max_); + } + if (tunable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, tunable_); + } + 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 org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter)) { + return super.equals(obj); + } + org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter other = (org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter) obj; + + if (!getName() + .equals(other.getName())) return false; + if (java.lang.Double.doubleToLongBits(getValue()) + != java.lang.Double.doubleToLongBits( + other.getValue())) return false; + if (java.lang.Double.doubleToLongBits(getStateValue()) + != java.lang.Double.doubleToLongBits( + other.getStateValue())) return false; + if (java.lang.Double.doubleToLongBits(getMin()) + != java.lang.Double.doubleToLongBits( + other.getMin())) return false; + if (java.lang.Double.doubleToLongBits(getMax()) + != java.lang.Double.doubleToLongBits( + other.getMax())) return false; + if (getTunable() + != other.getTunable()) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getValue())); + hash = (37 * hash) + STATE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getStateValue())); + hash = (37 * hash) + MIN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMin())); + hash = (37 * hash) + MAX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMax())); + hash = (37 * hash) + TUNABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTunable()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter 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 org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter 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 org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter 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(org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter 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; + } + /** + *
+         * Represents a node parameter.
+         * 
+ * + * Protobuf type {@code tensorflow.data.model.ModelProto.Node.Parameter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.data.model.ModelProto.Node.Parameter) + org.tensorflow.proto.data.model.Model.ModelProto.Node.ParameterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.model.Model.internal_static_tensorflow_data_model_ModelProto_Node_Parameter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.model.Model.internal_static_tensorflow_data_model_ModelProto_Node_Parameter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter.class, org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter.Builder.class); + } + + // Construct using org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + value_ = 0D; + + stateValue_ = 0D; + + min_ = 0D; + + max_ = 0D; + + tunable_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.data.model.Model.internal_static_tensorflow_data_model_ModelProto_Node_Parameter_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter getDefaultInstanceForType() { + return org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter build() { + org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter buildPartial() { + org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter result = new org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter(this); + result.name_ = name_; + result.value_ = value_; + result.stateValue_ = stateValue_; + result.min_ = min_; + result.max_ = max_; + result.tunable_ = tunable_; + 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 org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter) { + return mergeFrom((org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter other) { + if (other == org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getValue() != 0D) { + setValue(other.getValue()); + } + if (other.getStateValue() != 0D) { + setStateValue(other.getStateValue()); + } + if (other.getMin() != 0D) { + setMin(other.getMin()); + } + if (other.getMax() != 0D) { + setMax(other.getMax()); + } + if (other.getTunable() != false) { + setTunable(other.getTunable()); + } + 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: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 17: { + value_ = input.readDouble(); + + break; + } // case 17 + case 25: { + stateValue_ = input.readDouble(); + + break; + } // case 25 + case 33: { + min_ = input.readDouble(); + + break; + } // case 33 + case 41: { + max_ = input.readDouble(); + + break; + } // case 41 + case 48: { + tunable_ = input.readBool(); + + break; + } // case 48 + 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 java.lang.Object name_ = ""; + /** + *
+           * Human-readable name of the parameter.
+           * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+           * Human-readable name of the parameter.
+           * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+           * Human-readable name of the parameter.
+           * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+           * Human-readable name of the parameter.
+           * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+           * Human-readable name of the parameter.
+           * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private double value_ ; + /** + *
+           * Identifies the model value of the parameter. This can be different from
+           * the actual value (e.g. during optimization search).
+           * 
+ * + * double value = 2; + * @return The value. + */ + @java.lang.Override + public double getValue() { + return value_; + } + /** + *
+           * Identifies the model value of the parameter. This can be different from
+           * the actual value (e.g. during optimization search).
+           * 
+ * + * double value = 2; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(double value) { + + value_ = value; + onChanged(); + return this; + } + /** + *
+           * Identifies the model value of the parameter. This can be different from
+           * the actual value (e.g. during optimization search).
+           * 
+ * + * double value = 2; + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = 0D; + onChanged(); + return this; + } + + private double stateValue_ ; + /** + *
+           * The actual value of the parameter.
+           * 
+ * + * double state_value = 3; + * @return The stateValue. + */ + @java.lang.Override + public double getStateValue() { + return stateValue_; + } + /** + *
+           * The actual value of the parameter.
+           * 
+ * + * double state_value = 3; + * @param value The stateValue to set. + * @return This builder for chaining. + */ + public Builder setStateValue(double value) { + + stateValue_ = value; + onChanged(); + return this; + } + /** + *
+           * The actual value of the parameter.
+           * 
+ * + * double state_value = 3; + * @return This builder for chaining. + */ + public Builder clearStateValue() { + + stateValue_ = 0D; + onChanged(); + return this; + } + + private double min_ ; + /** + *
+           * Minimum value of the parameter.
+           * 
+ * + * double min = 4; + * @return The min. + */ + @java.lang.Override + public double getMin() { + return min_; + } + /** + *
+           * Minimum value of the parameter.
+           * 
+ * + * double min = 4; + * @param value The min to set. + * @return This builder for chaining. + */ + public Builder setMin(double value) { + + min_ = value; + onChanged(); + return this; + } + /** + *
+           * Minimum value of the parameter.
+           * 
+ * + * double min = 4; + * @return This builder for chaining. + */ + public Builder clearMin() { + + min_ = 0D; + onChanged(); + return this; + } + + private double max_ ; + /** + *
+           * Maximum value of the parameter.
+           * 
+ * + * double max = 5; + * @return The max. + */ + @java.lang.Override + public double getMax() { + return max_; + } + /** + *
+           * Maximum value of the parameter.
+           * 
+ * + * double max = 5; + * @param value The max to set. + * @return This builder for chaining. + */ + public Builder setMax(double value) { + + max_ = value; + onChanged(); + return this; + } + /** + *
+           * Maximum value of the parameter.
+           * 
+ * + * double max = 5; + * @return This builder for chaining. + */ + public Builder clearMax() { + + max_ = 0D; + onChanged(); + return this; + } + + private boolean tunable_ ; + /** + *
+           * Identifies whether the parameter should participate in autotuning.
+           * 
+ * + * bool tunable = 6; + * @return The tunable. + */ + @java.lang.Override + public boolean getTunable() { + return tunable_; + } + /** + *
+           * Identifies whether the parameter should participate in autotuning.
+           * 
+ * + * bool tunable = 6; + * @param value The tunable to set. + * @return This builder for chaining. + */ + public Builder setTunable(boolean value) { + + tunable_ = value; + onChanged(); + return this; + } + /** + *
+           * Identifies whether the parameter should participate in autotuning.
+           * 
+ * + * bool tunable = 6; + * @return This builder for chaining. + */ + public Builder clearTunable() { + + tunable_ = false; + 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:tensorflow.data.model.ModelProto.Node.Parameter) + } + + // @@protoc_insertion_point(class_scope:tensorflow.data.model.ModelProto.Node.Parameter) + private static final org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter(); + } + + public static org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Parameter 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 org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int ID_FIELD_NUMBER = 1; + private long id_; + /** + *
+       * Unique node ID.
+       * 
+ * + * int64 id = 1; + * @return The id. + */ + @java.lang.Override + public long getId() { + return id_; + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + *
+       * Human-readable name of the node.
+       * 
+ * + * string name = 2; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+       * Human-readable name of the node.
+       * 
+ * + * string name = 2; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTOTUNE_FIELD_NUMBER = 3; + private boolean autotune_; + /** + *
+       * An indication whether autotuning is enabled for this node.
+       * 
+ * + * bool autotune = 3; + * @return The autotune. + */ + @java.lang.Override + public boolean getAutotune() { + return autotune_; + } + + public static final int BUFFERED_BYTES_FIELD_NUMBER = 4; + private long bufferedBytes_; + /** + *
+       * The number of bytes stored in this node's buffer.
+       * 
+ * + * int64 buffered_bytes = 4; + * @return The bufferedBytes. + */ + @java.lang.Override + public long getBufferedBytes() { + return bufferedBytes_; + } + + public static final int BUFFERED_ELEMENTS_FIELD_NUMBER = 5; + private long bufferedElements_; + /** + *
+       * The number of elements stored in this node's buffer.
+       * 
+ * + * int64 buffered_elements = 5; + * @return The bufferedElements. + */ + @java.lang.Override + public long getBufferedElements() { + return bufferedElements_; + } + + public static final int BYTES_CONSUMED_FIELD_NUMBER = 6; + private long bytesConsumed_; + /** + *
+       * The number of bytes consumed by the node.
+       * 
+ * + * int64 bytes_consumed = 6; + * @return The bytesConsumed. + */ + @java.lang.Override + public long getBytesConsumed() { + return bytesConsumed_; + } + + public static final int BYTES_PRODUCED_FIELD_NUMBER = 7; + private long bytesProduced_; + /** + *
+       * The number of bytes produced by the node.
+       * 
+ * + * int64 bytes_produced = 7; + * @return The bytesProduced. + */ + @java.lang.Override + public long getBytesProduced() { + return bytesProduced_; + } + + public static final int NUM_ELEMENTS_FIELD_NUMBER = 8; + private long numElements_; + /** + *
+       * The number of elements produced by the node.
+       * 
+ * + * int64 num_elements = 8; + * @return The numElements. + */ + @java.lang.Override + public long getNumElements() { + return numElements_; + } + + public static final int PROCESSING_TIME_FIELD_NUMBER = 9; + private long processingTime_; + /** + *
+       * The aggregate processing time spent in this node in nanoseconds.
+       * 
+ * + * int64 processing_time = 9; + * @return The processingTime. + */ + @java.lang.Override + public long getProcessingTime() { + return processingTime_; + } + + public static final int RECORD_METRICS_FIELD_NUMBER = 10; + private boolean recordMetrics_; + /** + *
+       * An indication whether this node records metrics about produced and
+       * consumed elements.
+       * 
+ * + * bool record_metrics = 10; + * @return The recordMetrics. + */ + @java.lang.Override + public boolean getRecordMetrics() { + return recordMetrics_; + } + + public static final int PARAMETERS_FIELD_NUMBER = 11; + private java.util.List parameters_; + /** + *
+       * Parameters of this node.
+       * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + @java.lang.Override + public java.util.List getParametersList() { + return parameters_; + } + /** + *
+       * Parameters of this node.
+       * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + @java.lang.Override + public java.util.List + getParametersOrBuilderList() { + return parameters_; + } + /** + *
+       * Parameters of this node.
+       * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + @java.lang.Override + public int getParametersCount() { + return parameters_.size(); + } + /** + *
+       * Parameters of this node.
+       * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + @java.lang.Override + public org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter getParameters(int index) { + return parameters_.get(index); + } + /** + *
+       * Parameters of this node.
+       * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + @java.lang.Override + public org.tensorflow.proto.data.model.Model.ModelProto.Node.ParameterOrBuilder getParametersOrBuilder( + int index) { + return parameters_.get(index); + } + + public static final int INPUT_PROCESSING_TIME_SUM_FIELD_NUMBER = 12; + private double inputProcessingTimeSum_; + /** + *
+       * Statistic of inputs processing time history.
+       * 
+ * + * double input_processing_time_sum = 12; + * @return The inputProcessingTimeSum. + */ + @java.lang.Override + public double getInputProcessingTimeSum() { + return inputProcessingTimeSum_; + } + + public static final int INPUT_PROCESSING_TIME_COUNT_FIELD_NUMBER = 13; + private long inputProcessingTimeCount_; + /** + * int64 input_processing_time_count = 13; + * @return The inputProcessingTimeCount. + */ + @java.lang.Override + public long getInputProcessingTimeCount() { + return inputProcessingTimeCount_; + } + + public static final int INPUTS_FIELD_NUMBER = 14; + private com.google.protobuf.Internal.LongList inputs_; + /** + *
+       * IDs of inputs of this node.
+       * 
+ * + * repeated int64 inputs = 14; + * @return A list containing the inputs. + */ + @java.lang.Override + public java.util.List + getInputsList() { + return inputs_; + } + /** + *
+       * IDs of inputs of this node.
+       * 
+ * + * repeated int64 inputs = 14; + * @return The count of inputs. + */ + public int getInputsCount() { + return inputs_.size(); + } + /** + *
+       * IDs of inputs of this node.
+       * 
+ * + * repeated int64 inputs = 14; + * @param index The index of the element to return. + * @return The inputs at the given index. + */ + public long getInputs(int index) { + return inputs_.getLong(index); + } + private int inputsMemoizedSerializedSize = -1; + + public static final int NODE_CLASS_FIELD_NUMBER = 15; + private int nodeClass_; + /** + *
+       * Class of this node.
+       * 
+ * + * .tensorflow.data.model.NodeClass node_class = 15; + * @return The enum numeric value on the wire for nodeClass. + */ + @java.lang.Override public int getNodeClassValue() { + return nodeClass_; + } + /** + *
+       * Class of this node.
+       * 
+ * + * .tensorflow.data.model.NodeClass node_class = 15; + * @return The nodeClass. + */ + @java.lang.Override public org.tensorflow.proto.data.model.Model.NodeClass getNodeClass() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.data.model.Model.NodeClass result = org.tensorflow.proto.data.model.Model.NodeClass.valueOf(nodeClass_); + return result == null ? org.tensorflow.proto.data.model.Model.NodeClass.UNRECOGNIZED : result; + } + + public static final int RATIO_FIELD_NUMBER = 16; + private double ratio_; + /** + *
+       * Ratio of input to output elements. This is only used by KNOWN_RATIO and
+       * ASYNC_KNOWN_RATIO nodes.
+       * 
+ * + * double ratio = 16; + * @return The ratio. + */ + @java.lang.Override + public double getRatio() { + return ratio_; + } + + public static final int MEMORY_RATIO_FIELD_NUMBER = 17; + private double memoryRatio_; + /** + *
+       * Ratio identifies how many parallelism calls are introduced by one
+       * buffered element. This is only used by ASYNC_KNOWN_RATIO nodes.
+       * 
+ * + * double memory_ratio = 17; + * @return The memoryRatio. + */ + @java.lang.Override + public double getMemoryRatio() { + return memoryRatio_; + } + + 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 { + getSerializedSize(); + if (id_ != 0L) { + output.writeInt64(1, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (autotune_ != false) { + output.writeBool(3, autotune_); + } + if (bufferedBytes_ != 0L) { + output.writeInt64(4, bufferedBytes_); + } + if (bufferedElements_ != 0L) { + output.writeInt64(5, bufferedElements_); + } + if (bytesConsumed_ != 0L) { + output.writeInt64(6, bytesConsumed_); + } + if (bytesProduced_ != 0L) { + output.writeInt64(7, bytesProduced_); + } + if (numElements_ != 0L) { + output.writeInt64(8, numElements_); + } + if (processingTime_ != 0L) { + output.writeInt64(9, processingTime_); + } + if (recordMetrics_ != false) { + output.writeBool(10, recordMetrics_); + } + for (int i = 0; i < parameters_.size(); i++) { + output.writeMessage(11, parameters_.get(i)); + } + if (java.lang.Double.doubleToRawLongBits(inputProcessingTimeSum_) != 0) { + output.writeDouble(12, inputProcessingTimeSum_); + } + if (inputProcessingTimeCount_ != 0L) { + output.writeInt64(13, inputProcessingTimeCount_); + } + if (getInputsList().size() > 0) { + output.writeUInt32NoTag(114); + output.writeUInt32NoTag(inputsMemoizedSerializedSize); + } + for (int i = 0; i < inputs_.size(); i++) { + output.writeInt64NoTag(inputs_.getLong(i)); + } + if (nodeClass_ != org.tensorflow.proto.data.model.Model.NodeClass.UNKNOWN.getNumber()) { + output.writeEnum(15, nodeClass_); + } + if (java.lang.Double.doubleToRawLongBits(ratio_) != 0) { + output.writeDouble(16, ratio_); + } + if (java.lang.Double.doubleToRawLongBits(memoryRatio_) != 0) { + output.writeDouble(17, memoryRatio_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (autotune_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, autotune_); + } + if (bufferedBytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, bufferedBytes_); + } + if (bufferedElements_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, bufferedElements_); + } + if (bytesConsumed_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, bytesConsumed_); + } + if (bytesProduced_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, bytesProduced_); + } + if (numElements_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, numElements_); + } + if (processingTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, processingTime_); + } + if (recordMetrics_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, recordMetrics_); + } + for (int i = 0; i < parameters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, parameters_.get(i)); + } + if (java.lang.Double.doubleToRawLongBits(inputProcessingTimeSum_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(12, inputProcessingTimeSum_); + } + if (inputProcessingTimeCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(13, inputProcessingTimeCount_); + } + { + int dataSize = 0; + for (int i = 0; i < inputs_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(inputs_.getLong(i)); + } + size += dataSize; + if (!getInputsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + inputsMemoizedSerializedSize = dataSize; + } + if (nodeClass_ != org.tensorflow.proto.data.model.Model.NodeClass.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, nodeClass_); + } + if (java.lang.Double.doubleToRawLongBits(ratio_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(16, ratio_); + } + if (java.lang.Double.doubleToRawLongBits(memoryRatio_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(17, memoryRatio_); + } + 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 org.tensorflow.proto.data.model.Model.ModelProto.Node)) { + return super.equals(obj); + } + org.tensorflow.proto.data.model.Model.ModelProto.Node other = (org.tensorflow.proto.data.model.Model.ModelProto.Node) obj; + + if (getId() + != other.getId()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getAutotune() + != other.getAutotune()) return false; + if (getBufferedBytes() + != other.getBufferedBytes()) return false; + if (getBufferedElements() + != other.getBufferedElements()) return false; + if (getBytesConsumed() + != other.getBytesConsumed()) return false; + if (getBytesProduced() + != other.getBytesProduced()) return false; + if (getNumElements() + != other.getNumElements()) return false; + if (getProcessingTime() + != other.getProcessingTime()) return false; + if (getRecordMetrics() + != other.getRecordMetrics()) return false; + if (!getParametersList() + .equals(other.getParametersList())) return false; + if (java.lang.Double.doubleToLongBits(getInputProcessingTimeSum()) + != java.lang.Double.doubleToLongBits( + other.getInputProcessingTimeSum())) return false; + if (getInputProcessingTimeCount() + != other.getInputProcessingTimeCount()) return false; + if (!getInputsList() + .equals(other.getInputsList())) return false; + if (nodeClass_ != other.nodeClass_) return false; + if (java.lang.Double.doubleToLongBits(getRatio()) + != java.lang.Double.doubleToLongBits( + other.getRatio())) return false; + if (java.lang.Double.doubleToLongBits(getMemoryRatio()) + != java.lang.Double.doubleToLongBits( + other.getMemoryRatio())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + AUTOTUNE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAutotune()); + hash = (37 * hash) + BUFFERED_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBufferedBytes()); + hash = (37 * hash) + BUFFERED_ELEMENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBufferedElements()); + hash = (37 * hash) + BYTES_CONSUMED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBytesConsumed()); + hash = (37 * hash) + BYTES_PRODUCED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBytesProduced()); + hash = (37 * hash) + NUM_ELEMENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNumElements()); + hash = (37 * hash) + PROCESSING_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getProcessingTime()); + hash = (37 * hash) + RECORD_METRICS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRecordMetrics()); + if (getParametersCount() > 0) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParametersList().hashCode(); + } + hash = (37 * hash) + INPUT_PROCESSING_TIME_SUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getInputProcessingTimeSum())); + hash = (37 * hash) + INPUT_PROCESSING_TIME_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInputProcessingTimeCount()); + if (getInputsCount() > 0) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputsList().hashCode(); + } + hash = (37 * hash) + NODE_CLASS_FIELD_NUMBER; + hash = (53 * hash) + nodeClass_; + hash = (37 * hash) + RATIO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getRatio())); + hash = (37 * hash) + MEMORY_RATIO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMemoryRatio())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.data.model.Model.ModelProto.Node parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.Node parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.Node parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.Node parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.Node parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.Node parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.Node parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.Node 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 org.tensorflow.proto.data.model.Model.ModelProto.Node parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.Node 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 org.tensorflow.proto.data.model.Model.ModelProto.Node parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.Node 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(org.tensorflow.proto.data.model.Model.ModelProto.Node 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; + } + /** + *
+       * General representation of a node in the model.
+       * 
+ * + * Protobuf type {@code tensorflow.data.model.ModelProto.Node} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.data.model.ModelProto.Node) + org.tensorflow.proto.data.model.Model.ModelProto.NodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.model.Model.internal_static_tensorflow_data_model_ModelProto_Node_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.model.Model.internal_static_tensorflow_data_model_ModelProto_Node_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.model.Model.ModelProto.Node.class, org.tensorflow.proto.data.model.Model.ModelProto.Node.Builder.class); + } + + // Construct using org.tensorflow.proto.data.model.Model.ModelProto.Node.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = 0L; + + name_ = ""; + + autotune_ = false; + + bufferedBytes_ = 0L; + + bufferedElements_ = 0L; + + bytesConsumed_ = 0L; + + bytesProduced_ = 0L; + + numElements_ = 0L; + + processingTime_ = 0L; + + recordMetrics_ = false; + + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + } else { + parameters_ = null; + parametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + inputProcessingTimeSum_ = 0D; + + inputProcessingTimeCount_ = 0L; + + inputs_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000002); + nodeClass_ = 0; + + ratio_ = 0D; + + memoryRatio_ = 0D; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.data.model.Model.internal_static_tensorflow_data_model_ModelProto_Node_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.data.model.Model.ModelProto.Node getDefaultInstanceForType() { + return org.tensorflow.proto.data.model.Model.ModelProto.Node.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.data.model.Model.ModelProto.Node build() { + org.tensorflow.proto.data.model.Model.ModelProto.Node result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.data.model.Model.ModelProto.Node buildPartial() { + org.tensorflow.proto.data.model.Model.ModelProto.Node result = new org.tensorflow.proto.data.model.Model.ModelProto.Node(this); + int from_bitField0_ = bitField0_; + result.id_ = id_; + result.name_ = name_; + result.autotune_ = autotune_; + result.bufferedBytes_ = bufferedBytes_; + result.bufferedElements_ = bufferedElements_; + result.bytesConsumed_ = bytesConsumed_; + result.bytesProduced_ = bytesProduced_; + result.numElements_ = numElements_; + result.processingTime_ = processingTime_; + result.recordMetrics_ = recordMetrics_; + if (parametersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + parameters_ = java.util.Collections.unmodifiableList(parameters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.parameters_ = parameters_; + } else { + result.parameters_ = parametersBuilder_.build(); + } + result.inputProcessingTimeSum_ = inputProcessingTimeSum_; + result.inputProcessingTimeCount_ = inputProcessingTimeCount_; + if (((bitField0_ & 0x00000002) != 0)) { + inputs_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.inputs_ = inputs_; + result.nodeClass_ = nodeClass_; + result.ratio_ = ratio_; + result.memoryRatio_ = memoryRatio_; + 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 org.tensorflow.proto.data.model.Model.ModelProto.Node) { + return mergeFrom((org.tensorflow.proto.data.model.Model.ModelProto.Node)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.data.model.Model.ModelProto.Node other) { + if (other == org.tensorflow.proto.data.model.Model.ModelProto.Node.getDefaultInstance()) return this; + if (other.getId() != 0L) { + setId(other.getId()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getAutotune() != false) { + setAutotune(other.getAutotune()); + } + if (other.getBufferedBytes() != 0L) { + setBufferedBytes(other.getBufferedBytes()); + } + if (other.getBufferedElements() != 0L) { + setBufferedElements(other.getBufferedElements()); + } + if (other.getBytesConsumed() != 0L) { + setBytesConsumed(other.getBytesConsumed()); + } + if (other.getBytesProduced() != 0L) { + setBytesProduced(other.getBytesProduced()); + } + if (other.getNumElements() != 0L) { + setNumElements(other.getNumElements()); + } + if (other.getProcessingTime() != 0L) { + setProcessingTime(other.getProcessingTime()); + } + if (other.getRecordMetrics() != false) { + setRecordMetrics(other.getRecordMetrics()); + } + if (parametersBuilder_ == null) { + if (!other.parameters_.isEmpty()) { + if (parameters_.isEmpty()) { + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureParametersIsMutable(); + parameters_.addAll(other.parameters_); + } + onChanged(); + } + } else { + if (!other.parameters_.isEmpty()) { + if (parametersBuilder_.isEmpty()) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000001); + parametersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getParametersFieldBuilder() : null; + } else { + parametersBuilder_.addAllMessages(other.parameters_); + } + } + } + if (other.getInputProcessingTimeSum() != 0D) { + setInputProcessingTimeSum(other.getInputProcessingTimeSum()); + } + if (other.getInputProcessingTimeCount() != 0L) { + setInputProcessingTimeCount(other.getInputProcessingTimeCount()); + } + if (!other.inputs_.isEmpty()) { + if (inputs_.isEmpty()) { + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInputsIsMutable(); + inputs_.addAll(other.inputs_); + } + onChanged(); + } + if (other.nodeClass_ != 0) { + setNodeClassValue(other.getNodeClassValue()); + } + if (other.getRatio() != 0D) { + setRatio(other.getRatio()); + } + if (other.getMemoryRatio() != 0D) { + setMemoryRatio(other.getMemoryRatio()); + } + 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: { + id_ = input.readInt64(); + + break; + } // case 8 + case 18: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + autotune_ = input.readBool(); + + break; + } // case 24 + case 32: { + bufferedBytes_ = input.readInt64(); + + break; + } // case 32 + case 40: { + bufferedElements_ = input.readInt64(); + + break; + } // case 40 + case 48: { + bytesConsumed_ = input.readInt64(); + + break; + } // case 48 + case 56: { + bytesProduced_ = input.readInt64(); + + break; + } // case 56 + case 64: { + numElements_ = input.readInt64(); + + break; + } // case 64 + case 72: { + processingTime_ = input.readInt64(); + + break; + } // case 72 + case 80: { + recordMetrics_ = input.readBool(); + + break; + } // case 80 + case 90: { + org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter m = + input.readMessage( + org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter.parser(), + extensionRegistry); + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(m); + } else { + parametersBuilder_.addMessage(m); + } + break; + } // case 90 + case 97: { + inputProcessingTimeSum_ = input.readDouble(); + + break; + } // case 97 + case 104: { + inputProcessingTimeCount_ = input.readInt64(); + + break; + } // case 104 + case 112: { + long v = input.readInt64(); + ensureInputsIsMutable(); + inputs_.addLong(v); + break; + } // case 112 + case 114: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureInputsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + inputs_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 114 + case 120: { + nodeClass_ = input.readEnum(); + + break; + } // case 120 + case 129: { + ratio_ = input.readDouble(); + + break; + } // case 129 + case 137: { + memoryRatio_ = input.readDouble(); + + break; + } // case 137 + 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 long id_ ; + /** + *
+         * Unique node ID.
+         * 
+ * + * int64 id = 1; + * @return The id. + */ + @java.lang.Override + public long getId() { + return id_; + } + /** + *
+         * Unique node ID.
+         * 
+ * + * int64 id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(long value) { + + id_ = value; + onChanged(); + return this; + } + /** + *
+         * Unique node ID.
+         * 
+ * + * int64 id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+         * Human-readable name of the node.
+         * 
+ * + * string name = 2; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Human-readable name of the node.
+         * 
+ * + * string name = 2; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Human-readable name of the node.
+         * 
+ * + * string name = 2; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+         * Human-readable name of the node.
+         * 
+ * + * string name = 2; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+         * Human-readable name of the node.
+         * 
+ * + * string name = 2; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private boolean autotune_ ; + /** + *
+         * An indication whether autotuning is enabled for this node.
+         * 
+ * + * bool autotune = 3; + * @return The autotune. + */ + @java.lang.Override + public boolean getAutotune() { + return autotune_; + } + /** + *
+         * An indication whether autotuning is enabled for this node.
+         * 
+ * + * bool autotune = 3; + * @param value The autotune to set. + * @return This builder for chaining. + */ + public Builder setAutotune(boolean value) { + + autotune_ = value; + onChanged(); + return this; + } + /** + *
+         * An indication whether autotuning is enabled for this node.
+         * 
+ * + * bool autotune = 3; + * @return This builder for chaining. + */ + public Builder clearAutotune() { + + autotune_ = false; + onChanged(); + return this; + } + + private long bufferedBytes_ ; + /** + *
+         * The number of bytes stored in this node's buffer.
+         * 
+ * + * int64 buffered_bytes = 4; + * @return The bufferedBytes. + */ + @java.lang.Override + public long getBufferedBytes() { + return bufferedBytes_; + } + /** + *
+         * The number of bytes stored in this node's buffer.
+         * 
+ * + * int64 buffered_bytes = 4; + * @param value The bufferedBytes to set. + * @return This builder for chaining. + */ + public Builder setBufferedBytes(long value) { + + bufferedBytes_ = value; + onChanged(); + return this; + } + /** + *
+         * The number of bytes stored in this node's buffer.
+         * 
+ * + * int64 buffered_bytes = 4; + * @return This builder for chaining. + */ + public Builder clearBufferedBytes() { + + bufferedBytes_ = 0L; + onChanged(); + return this; + } + + private long bufferedElements_ ; + /** + *
+         * The number of elements stored in this node's buffer.
+         * 
+ * + * int64 buffered_elements = 5; + * @return The bufferedElements. + */ + @java.lang.Override + public long getBufferedElements() { + return bufferedElements_; + } + /** + *
+         * The number of elements stored in this node's buffer.
+         * 
+ * + * int64 buffered_elements = 5; + * @param value The bufferedElements to set. + * @return This builder for chaining. + */ + public Builder setBufferedElements(long value) { + + bufferedElements_ = value; + onChanged(); + return this; + } + /** + *
+         * The number of elements stored in this node's buffer.
+         * 
+ * + * int64 buffered_elements = 5; + * @return This builder for chaining. + */ + public Builder clearBufferedElements() { + + bufferedElements_ = 0L; + onChanged(); + return this; + } + + private long bytesConsumed_ ; + /** + *
+         * The number of bytes consumed by the node.
+         * 
+ * + * int64 bytes_consumed = 6; + * @return The bytesConsumed. + */ + @java.lang.Override + public long getBytesConsumed() { + return bytesConsumed_; + } + /** + *
+         * The number of bytes consumed by the node.
+         * 
+ * + * int64 bytes_consumed = 6; + * @param value The bytesConsumed to set. + * @return This builder for chaining. + */ + public Builder setBytesConsumed(long value) { + + bytesConsumed_ = value; + onChanged(); + return this; + } + /** + *
+         * The number of bytes consumed by the node.
+         * 
+ * + * int64 bytes_consumed = 6; + * @return This builder for chaining. + */ + public Builder clearBytesConsumed() { + + bytesConsumed_ = 0L; + onChanged(); + return this; + } + + private long bytesProduced_ ; + /** + *
+         * The number of bytes produced by the node.
+         * 
+ * + * int64 bytes_produced = 7; + * @return The bytesProduced. + */ + @java.lang.Override + public long getBytesProduced() { + return bytesProduced_; + } + /** + *
+         * The number of bytes produced by the node.
+         * 
+ * + * int64 bytes_produced = 7; + * @param value The bytesProduced to set. + * @return This builder for chaining. + */ + public Builder setBytesProduced(long value) { + + bytesProduced_ = value; + onChanged(); + return this; + } + /** + *
+         * The number of bytes produced by the node.
+         * 
+ * + * int64 bytes_produced = 7; + * @return This builder for chaining. + */ + public Builder clearBytesProduced() { + + bytesProduced_ = 0L; + onChanged(); + return this; + } + + private long numElements_ ; + /** + *
+         * The number of elements produced by the node.
+         * 
+ * + * int64 num_elements = 8; + * @return The numElements. + */ + @java.lang.Override + public long getNumElements() { + return numElements_; + } + /** + *
+         * The number of elements produced by the node.
+         * 
+ * + * int64 num_elements = 8; + * @param value The numElements to set. + * @return This builder for chaining. + */ + public Builder setNumElements(long value) { + + numElements_ = value; + onChanged(); + return this; + } + /** + *
+         * The number of elements produced by the node.
+         * 
+ * + * int64 num_elements = 8; + * @return This builder for chaining. + */ + public Builder clearNumElements() { + + numElements_ = 0L; + onChanged(); + return this; + } + + private long processingTime_ ; + /** + *
+         * The aggregate processing time spent in this node in nanoseconds.
+         * 
+ * + * int64 processing_time = 9; + * @return The processingTime. + */ + @java.lang.Override + public long getProcessingTime() { + return processingTime_; + } + /** + *
+         * The aggregate processing time spent in this node in nanoseconds.
+         * 
+ * + * int64 processing_time = 9; + * @param value The processingTime to set. + * @return This builder for chaining. + */ + public Builder setProcessingTime(long value) { + + processingTime_ = value; + onChanged(); + return this; + } + /** + *
+         * The aggregate processing time spent in this node in nanoseconds.
+         * 
+ * + * int64 processing_time = 9; + * @return This builder for chaining. + */ + public Builder clearProcessingTime() { + + processingTime_ = 0L; + onChanged(); + return this; + } + + private boolean recordMetrics_ ; + /** + *
+         * An indication whether this node records metrics about produced and
+         * consumed elements.
+         * 
+ * + * bool record_metrics = 10; + * @return The recordMetrics. + */ + @java.lang.Override + public boolean getRecordMetrics() { + return recordMetrics_; + } + /** + *
+         * An indication whether this node records metrics about produced and
+         * consumed elements.
+         * 
+ * + * bool record_metrics = 10; + * @param value The recordMetrics to set. + * @return This builder for chaining. + */ + public Builder setRecordMetrics(boolean value) { + + recordMetrics_ = value; + onChanged(); + return this; + } + /** + *
+         * An indication whether this node records metrics about produced and
+         * consumed elements.
+         * 
+ * + * bool record_metrics = 10; + * @return This builder for chaining. + */ + public Builder clearRecordMetrics() { + + recordMetrics_ = false; + onChanged(); + return this; + } + + private java.util.List parameters_ = + java.util.Collections.emptyList(); + private void ensureParametersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + parameters_ = new java.util.ArrayList(parameters_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter, org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter.Builder, org.tensorflow.proto.data.model.Model.ModelProto.Node.ParameterOrBuilder> parametersBuilder_; + + /** + *
+         * Parameters of this node.
+         * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + public java.util.List getParametersList() { + if (parametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(parameters_); + } else { + return parametersBuilder_.getMessageList(); + } + } + /** + *
+         * Parameters of this node.
+         * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + public int getParametersCount() { + if (parametersBuilder_ == null) { + return parameters_.size(); + } else { + return parametersBuilder_.getCount(); + } + } + /** + *
+         * Parameters of this node.
+         * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + public org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter getParameters(int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessage(index); + } + } + /** + *
+         * Parameters of this node.
+         * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + public Builder setParameters( + int index, org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.set(index, value); + onChanged(); + } else { + parametersBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+         * Parameters of this node.
+         * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + public Builder setParameters( + int index, org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.set(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         * Parameters of this node.
+         * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + public Builder addParameters(org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(value); + onChanged(); + } else { + parametersBuilder_.addMessage(value); + } + return this; + } + /** + *
+         * Parameters of this node.
+         * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + public Builder addParameters( + int index, org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(index, value); + onChanged(); + } else { + parametersBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+         * Parameters of this node.
+         * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + public Builder addParameters( + org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+         * Parameters of this node.
+         * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + public Builder addParameters( + int index, org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter.Builder builderForValue) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         * Parameters of this node.
+         * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + public Builder addAllParameters( + java.lang.Iterable values) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, parameters_); + onChanged(); + } else { + parametersBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+         * Parameters of this node.
+         * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + public Builder clearParameters() { + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + parametersBuilder_.clear(); + } + return this; + } + /** + *
+         * Parameters of this node.
+         * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + public Builder removeParameters(int index) { + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.remove(index); + onChanged(); + } else { + parametersBuilder_.remove(index); + } + return this; + } + /** + *
+         * Parameters of this node.
+         * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + public org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter.Builder getParametersBuilder( + int index) { + return getParametersFieldBuilder().getBuilder(index); + } + /** + *
+         * Parameters of this node.
+         * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + public org.tensorflow.proto.data.model.Model.ModelProto.Node.ParameterOrBuilder getParametersOrBuilder( + int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); } else { + return parametersBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+         * Parameters of this node.
+         * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + public java.util.List + getParametersOrBuilderList() { + if (parametersBuilder_ != null) { + return parametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(parameters_); + } + } + /** + *
+         * Parameters of this node.
+         * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + public org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter.Builder addParametersBuilder() { + return getParametersFieldBuilder().addBuilder( + org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter.getDefaultInstance()); + } + /** + *
+         * Parameters of this node.
+         * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + public org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter.Builder addParametersBuilder( + int index) { + return getParametersFieldBuilder().addBuilder( + index, org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter.getDefaultInstance()); + } + /** + *
+         * Parameters of this node.
+         * 
+ * + * repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; + */ + public java.util.List + getParametersBuilderList() { + return getParametersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter, org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter.Builder, org.tensorflow.proto.data.model.Model.ModelProto.Node.ParameterOrBuilder> + getParametersFieldBuilder() { + if (parametersBuilder_ == null) { + parametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter, org.tensorflow.proto.data.model.Model.ModelProto.Node.Parameter.Builder, org.tensorflow.proto.data.model.Model.ModelProto.Node.ParameterOrBuilder>( + parameters_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + parameters_ = null; + } + return parametersBuilder_; + } + + private double inputProcessingTimeSum_ ; + /** + *
+         * Statistic of inputs processing time history.
+         * 
+ * + * double input_processing_time_sum = 12; + * @return The inputProcessingTimeSum. + */ + @java.lang.Override + public double getInputProcessingTimeSum() { + return inputProcessingTimeSum_; + } + /** + *
+         * Statistic of inputs processing time history.
+         * 
+ * + * double input_processing_time_sum = 12; + * @param value The inputProcessingTimeSum to set. + * @return This builder for chaining. + */ + public Builder setInputProcessingTimeSum(double value) { + + inputProcessingTimeSum_ = value; + onChanged(); + return this; + } + /** + *
+         * Statistic of inputs processing time history.
+         * 
+ * + * double input_processing_time_sum = 12; + * @return This builder for chaining. + */ + public Builder clearInputProcessingTimeSum() { + + inputProcessingTimeSum_ = 0D; + onChanged(); + return this; + } + + private long inputProcessingTimeCount_ ; + /** + * int64 input_processing_time_count = 13; + * @return The inputProcessingTimeCount. + */ + @java.lang.Override + public long getInputProcessingTimeCount() { + return inputProcessingTimeCount_; + } + /** + * int64 input_processing_time_count = 13; + * @param value The inputProcessingTimeCount to set. + * @return This builder for chaining. + */ + public Builder setInputProcessingTimeCount(long value) { + + inputProcessingTimeCount_ = value; + onChanged(); + return this; + } + /** + * int64 input_processing_time_count = 13; + * @return This builder for chaining. + */ + public Builder clearInputProcessingTimeCount() { + + inputProcessingTimeCount_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.LongList inputs_ = emptyLongList(); + private void ensureInputsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + inputs_ = mutableCopy(inputs_); + bitField0_ |= 0x00000002; + } + } + /** + *
+         * IDs of inputs of this node.
+         * 
+ * + * repeated int64 inputs = 14; + * @return A list containing the inputs. + */ + public java.util.List + getInputsList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(inputs_) : inputs_; + } + /** + *
+         * IDs of inputs of this node.
+         * 
+ * + * repeated int64 inputs = 14; + * @return The count of inputs. + */ + public int getInputsCount() { + return inputs_.size(); + } + /** + *
+         * IDs of inputs of this node.
+         * 
+ * + * repeated int64 inputs = 14; + * @param index The index of the element to return. + * @return The inputs at the given index. + */ + public long getInputs(int index) { + return inputs_.getLong(index); + } + /** + *
+         * IDs of inputs of this node.
+         * 
+ * + * repeated int64 inputs = 14; + * @param index The index to set the value at. + * @param value The inputs to set. + * @return This builder for chaining. + */ + public Builder setInputs( + int index, long value) { + ensureInputsIsMutable(); + inputs_.setLong(index, value); + onChanged(); + return this; + } + /** + *
+         * IDs of inputs of this node.
+         * 
+ * + * repeated int64 inputs = 14; + * @param value The inputs to add. + * @return This builder for chaining. + */ + public Builder addInputs(long value) { + ensureInputsIsMutable(); + inputs_.addLong(value); + onChanged(); + return this; + } + /** + *
+         * IDs of inputs of this node.
+         * 
+ * + * repeated int64 inputs = 14; + * @param values The inputs to add. + * @return This builder for chaining. + */ + public Builder addAllInputs( + java.lang.Iterable values) { + ensureInputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputs_); + onChanged(); + return this; + } + /** + *
+         * IDs of inputs of this node.
+         * 
+ * + * repeated int64 inputs = 14; + * @return This builder for chaining. + */ + public Builder clearInputs() { + inputs_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + private int nodeClass_ = 0; + /** + *
+         * Class of this node.
+         * 
+ * + * .tensorflow.data.model.NodeClass node_class = 15; + * @return The enum numeric value on the wire for nodeClass. + */ + @java.lang.Override public int getNodeClassValue() { + return nodeClass_; + } + /** + *
+         * Class of this node.
+         * 
+ * + * .tensorflow.data.model.NodeClass node_class = 15; + * @param value The enum numeric value on the wire for nodeClass to set. + * @return This builder for chaining. + */ + public Builder setNodeClassValue(int value) { + + nodeClass_ = value; + onChanged(); + return this; + } + /** + *
+         * Class of this node.
+         * 
+ * + * .tensorflow.data.model.NodeClass node_class = 15; + * @return The nodeClass. + */ + @java.lang.Override + public org.tensorflow.proto.data.model.Model.NodeClass getNodeClass() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.data.model.Model.NodeClass result = org.tensorflow.proto.data.model.Model.NodeClass.valueOf(nodeClass_); + return result == null ? org.tensorflow.proto.data.model.Model.NodeClass.UNRECOGNIZED : result; + } + /** + *
+         * Class of this node.
+         * 
+ * + * .tensorflow.data.model.NodeClass node_class = 15; + * @param value The nodeClass to set. + * @return This builder for chaining. + */ + public Builder setNodeClass(org.tensorflow.proto.data.model.Model.NodeClass value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeClass_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+         * Class of this node.
+         * 
+ * + * .tensorflow.data.model.NodeClass node_class = 15; + * @return This builder for chaining. + */ + public Builder clearNodeClass() { + + nodeClass_ = 0; + onChanged(); + return this; + } + + private double ratio_ ; + /** + *
+         * Ratio of input to output elements. This is only used by KNOWN_RATIO and
+         * ASYNC_KNOWN_RATIO nodes.
+         * 
+ * + * double ratio = 16; + * @return The ratio. + */ + @java.lang.Override + public double getRatio() { + return ratio_; + } + /** + *
+         * Ratio of input to output elements. This is only used by KNOWN_RATIO and
+         * ASYNC_KNOWN_RATIO nodes.
+         * 
+ * + * double ratio = 16; + * @param value The ratio to set. + * @return This builder for chaining. + */ + public Builder setRatio(double value) { + + ratio_ = value; + onChanged(); + return this; + } + /** + *
+         * Ratio of input to output elements. This is only used by KNOWN_RATIO and
+         * ASYNC_KNOWN_RATIO nodes.
+         * 
+ * + * double ratio = 16; + * @return This builder for chaining. + */ + public Builder clearRatio() { + + ratio_ = 0D; + onChanged(); + return this; + } + + private double memoryRatio_ ; + /** + *
+         * Ratio identifies how many parallelism calls are introduced by one
+         * buffered element. This is only used by ASYNC_KNOWN_RATIO nodes.
+         * 
+ * + * double memory_ratio = 17; + * @return The memoryRatio. + */ + @java.lang.Override + public double getMemoryRatio() { + return memoryRatio_; + } + /** + *
+         * Ratio identifies how many parallelism calls are introduced by one
+         * buffered element. This is only used by ASYNC_KNOWN_RATIO nodes.
+         * 
+ * + * double memory_ratio = 17; + * @param value The memoryRatio to set. + * @return This builder for chaining. + */ + public Builder setMemoryRatio(double value) { + + memoryRatio_ = value; + onChanged(); + return this; + } + /** + *
+         * Ratio identifies how many parallelism calls are introduced by one
+         * buffered element. This is only used by ASYNC_KNOWN_RATIO nodes.
+         * 
+ * + * double memory_ratio = 17; + * @return This builder for chaining. + */ + public Builder clearMemoryRatio() { + + memoryRatio_ = 0D; + 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:tensorflow.data.model.ModelProto.Node) + } + + // @@protoc_insertion_point(class_scope:tensorflow.data.model.ModelProto.Node) + private static final org.tensorflow.proto.data.model.Model.ModelProto.Node DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.data.model.Model.ModelProto.Node(); + } + + public static org.tensorflow.proto.data.model.Model.ModelProto.Node getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Node 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 org.tensorflow.proto.data.model.Model.ModelProto.Node getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OptimizationParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.data.model.ModelProto.OptimizationParams) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * Algorithm used for autotuning optimization.
+       * 
+ * + * .tensorflow.data.model.AutotuneAlgorithm algorithm = 1; + * @return The enum numeric value on the wire for algorithm. + */ + int getAlgorithmValue(); + /** + *
+       * Algorithm used for autotuning optimization.
+       * 
+ * + * .tensorflow.data.model.AutotuneAlgorithm algorithm = 1; + * @return The algorithm. + */ + org.tensorflow.proto.data.model.Model.AutotuneAlgorithm getAlgorithm(); + + /** + *
+       * Number of available logical threads.
+       * 
+ * + * int64 cpu_budget = 2; + * @return The cpuBudget. + */ + long getCpuBudget(); + + /** + *
+       * Amount of available memory in bytes.
+       * 
+ * + * int64 ram_budget = 3; + * @return The ramBudget. + */ + long getRamBudget(); + + /** + *
+       * Time between two consecutive `GetNext` calls to the iterator represented
+       * by the output node.
+       * 
+ * + * double model_input_time = 4; + * @return The modelInputTime. + */ + double getModelInputTime(); + } + /** + *
+     * Contains parameters of the model autotuning optimization.
+     * 
+ * + * Protobuf type {@code tensorflow.data.model.ModelProto.OptimizationParams} + */ + public static final class OptimizationParams extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.data.model.ModelProto.OptimizationParams) + OptimizationParamsOrBuilder { + private static final long serialVersionUID = 0L; + // Use OptimizationParams.newBuilder() to construct. + private OptimizationParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OptimizationParams() { + algorithm_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OptimizationParams(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.model.Model.internal_static_tensorflow_data_model_ModelProto_OptimizationParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.model.Model.internal_static_tensorflow_data_model_ModelProto_OptimizationParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams.class, org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams.Builder.class); + } + + public static final int ALGORITHM_FIELD_NUMBER = 1; + private int algorithm_; + /** + *
+       * Algorithm used for autotuning optimization.
+       * 
+ * + * .tensorflow.data.model.AutotuneAlgorithm algorithm = 1; + * @return The enum numeric value on the wire for algorithm. + */ + @java.lang.Override public int getAlgorithmValue() { + return algorithm_; + } + /** + *
+       * Algorithm used for autotuning optimization.
+       * 
+ * + * .tensorflow.data.model.AutotuneAlgorithm algorithm = 1; + * @return The algorithm. + */ + @java.lang.Override public org.tensorflow.proto.data.model.Model.AutotuneAlgorithm getAlgorithm() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.data.model.Model.AutotuneAlgorithm result = org.tensorflow.proto.data.model.Model.AutotuneAlgorithm.valueOf(algorithm_); + return result == null ? org.tensorflow.proto.data.model.Model.AutotuneAlgorithm.UNRECOGNIZED : result; + } + + public static final int CPU_BUDGET_FIELD_NUMBER = 2; + private long cpuBudget_; + /** + *
+       * Number of available logical threads.
+       * 
+ * + * int64 cpu_budget = 2; + * @return The cpuBudget. + */ + @java.lang.Override + public long getCpuBudget() { + return cpuBudget_; + } + + public static final int RAM_BUDGET_FIELD_NUMBER = 3; + private long ramBudget_; + /** + *
+       * Amount of available memory in bytes.
+       * 
+ * + * int64 ram_budget = 3; + * @return The ramBudget. + */ + @java.lang.Override + public long getRamBudget() { + return ramBudget_; + } + + public static final int MODEL_INPUT_TIME_FIELD_NUMBER = 4; + private double modelInputTime_; + /** + *
+       * Time between two consecutive `GetNext` calls to the iterator represented
+       * by the output node.
+       * 
+ * + * double model_input_time = 4; + * @return The modelInputTime. + */ + @java.lang.Override + public double getModelInputTime() { + return modelInputTime_; + } + + 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 (algorithm_ != org.tensorflow.proto.data.model.Model.AutotuneAlgorithm.DEFAULT.getNumber()) { + output.writeEnum(1, algorithm_); + } + if (cpuBudget_ != 0L) { + output.writeInt64(2, cpuBudget_); + } + if (ramBudget_ != 0L) { + output.writeInt64(3, ramBudget_); + } + if (java.lang.Double.doubleToRawLongBits(modelInputTime_) != 0) { + output.writeDouble(4, modelInputTime_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (algorithm_ != org.tensorflow.proto.data.model.Model.AutotuneAlgorithm.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, algorithm_); + } + if (cpuBudget_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, cpuBudget_); + } + if (ramBudget_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, ramBudget_); + } + if (java.lang.Double.doubleToRawLongBits(modelInputTime_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, modelInputTime_); + } + 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 org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams)) { + return super.equals(obj); + } + org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams other = (org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams) obj; + + if (algorithm_ != other.algorithm_) return false; + if (getCpuBudget() + != other.getCpuBudget()) return false; + if (getRamBudget() + != other.getRamBudget()) return false; + if (java.lang.Double.doubleToLongBits(getModelInputTime()) + != java.lang.Double.doubleToLongBits( + other.getModelInputTime())) 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) + ALGORITHM_FIELD_NUMBER; + hash = (53 * hash) + algorithm_; + hash = (37 * hash) + CPU_BUDGET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCpuBudget()); + hash = (37 * hash) + RAM_BUDGET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRamBudget()); + hash = (37 * hash) + MODEL_INPUT_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getModelInputTime())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams 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 org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams 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 org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams 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(org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams 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; + } + /** + *
+       * Contains parameters of the model autotuning optimization.
+       * 
+ * + * Protobuf type {@code tensorflow.data.model.ModelProto.OptimizationParams} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.data.model.ModelProto.OptimizationParams) + org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.model.Model.internal_static_tensorflow_data_model_ModelProto_OptimizationParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.model.Model.internal_static_tensorflow_data_model_ModelProto_OptimizationParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams.class, org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams.Builder.class); + } + + // Construct using org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + algorithm_ = 0; + + cpuBudget_ = 0L; + + ramBudget_ = 0L; + + modelInputTime_ = 0D; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.data.model.Model.internal_static_tensorflow_data_model_ModelProto_OptimizationParams_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams getDefaultInstanceForType() { + return org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams build() { + org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams buildPartial() { + org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams result = new org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams(this); + result.algorithm_ = algorithm_; + result.cpuBudget_ = cpuBudget_; + result.ramBudget_ = ramBudget_; + result.modelInputTime_ = modelInputTime_; + 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 org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams) { + return mergeFrom((org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams other) { + if (other == org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams.getDefaultInstance()) return this; + if (other.algorithm_ != 0) { + setAlgorithmValue(other.getAlgorithmValue()); + } + if (other.getCpuBudget() != 0L) { + setCpuBudget(other.getCpuBudget()); + } + if (other.getRamBudget() != 0L) { + setRamBudget(other.getRamBudget()); + } + if (other.getModelInputTime() != 0D) { + setModelInputTime(other.getModelInputTime()); + } + 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: { + algorithm_ = input.readEnum(); + + break; + } // case 8 + case 16: { + cpuBudget_ = input.readInt64(); + + break; + } // case 16 + case 24: { + ramBudget_ = input.readInt64(); + + break; + } // case 24 + case 33: { + modelInputTime_ = input.readDouble(); + + break; + } // case 33 + 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 algorithm_ = 0; + /** + *
+         * Algorithm used for autotuning optimization.
+         * 
+ * + * .tensorflow.data.model.AutotuneAlgorithm algorithm = 1; + * @return The enum numeric value on the wire for algorithm. + */ + @java.lang.Override public int getAlgorithmValue() { + return algorithm_; + } + /** + *
+         * Algorithm used for autotuning optimization.
+         * 
+ * + * .tensorflow.data.model.AutotuneAlgorithm algorithm = 1; + * @param value The enum numeric value on the wire for algorithm to set. + * @return This builder for chaining. + */ + public Builder setAlgorithmValue(int value) { + + algorithm_ = value; + onChanged(); + return this; + } + /** + *
+         * Algorithm used for autotuning optimization.
+         * 
+ * + * .tensorflow.data.model.AutotuneAlgorithm algorithm = 1; + * @return The algorithm. + */ + @java.lang.Override + public org.tensorflow.proto.data.model.Model.AutotuneAlgorithm getAlgorithm() { + @SuppressWarnings("deprecation") + org.tensorflow.proto.data.model.Model.AutotuneAlgorithm result = org.tensorflow.proto.data.model.Model.AutotuneAlgorithm.valueOf(algorithm_); + return result == null ? org.tensorflow.proto.data.model.Model.AutotuneAlgorithm.UNRECOGNIZED : result; + } + /** + *
+         * Algorithm used for autotuning optimization.
+         * 
+ * + * .tensorflow.data.model.AutotuneAlgorithm algorithm = 1; + * @param value The algorithm to set. + * @return This builder for chaining. + */ + public Builder setAlgorithm(org.tensorflow.proto.data.model.Model.AutotuneAlgorithm value) { + if (value == null) { + throw new NullPointerException(); + } + + algorithm_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+         * Algorithm used for autotuning optimization.
+         * 
+ * + * .tensorflow.data.model.AutotuneAlgorithm algorithm = 1; + * @return This builder for chaining. + */ + public Builder clearAlgorithm() { + + algorithm_ = 0; + onChanged(); + return this; + } + + private long cpuBudget_ ; + /** + *
+         * Number of available logical threads.
+         * 
+ * + * int64 cpu_budget = 2; + * @return The cpuBudget. + */ + @java.lang.Override + public long getCpuBudget() { + return cpuBudget_; + } + /** + *
+         * Number of available logical threads.
+         * 
+ * + * int64 cpu_budget = 2; + * @param value The cpuBudget to set. + * @return This builder for chaining. + */ + public Builder setCpuBudget(long value) { + + cpuBudget_ = value; + onChanged(); + return this; + } + /** + *
+         * Number of available logical threads.
+         * 
+ * + * int64 cpu_budget = 2; + * @return This builder for chaining. + */ + public Builder clearCpuBudget() { + + cpuBudget_ = 0L; + onChanged(); + return this; + } + + private long ramBudget_ ; + /** + *
+         * Amount of available memory in bytes.
+         * 
+ * + * int64 ram_budget = 3; + * @return The ramBudget. + */ + @java.lang.Override + public long getRamBudget() { + return ramBudget_; + } + /** + *
+         * Amount of available memory in bytes.
+         * 
+ * + * int64 ram_budget = 3; + * @param value The ramBudget to set. + * @return This builder for chaining. + */ + public Builder setRamBudget(long value) { + + ramBudget_ = value; + onChanged(); + return this; + } + /** + *
+         * Amount of available memory in bytes.
+         * 
+ * + * int64 ram_budget = 3; + * @return This builder for chaining. + */ + public Builder clearRamBudget() { + + ramBudget_ = 0L; + onChanged(); + return this; + } + + private double modelInputTime_ ; + /** + *
+         * Time between two consecutive `GetNext` calls to the iterator represented
+         * by the output node.
+         * 
+ * + * double model_input_time = 4; + * @return The modelInputTime. + */ + @java.lang.Override + public double getModelInputTime() { + return modelInputTime_; + } + /** + *
+         * Time between two consecutive `GetNext` calls to the iterator represented
+         * by the output node.
+         * 
+ * + * double model_input_time = 4; + * @param value The modelInputTime to set. + * @return This builder for chaining. + */ + public Builder setModelInputTime(double value) { + + modelInputTime_ = value; + onChanged(); + return this; + } + /** + *
+         * Time between two consecutive `GetNext` calls to the iterator represented
+         * by the output node.
+         * 
+ * + * double model_input_time = 4; + * @return This builder for chaining. + */ + public Builder clearModelInputTime() { + + modelInputTime_ = 0D; + 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:tensorflow.data.model.ModelProto.OptimizationParams) + } + + // @@protoc_insertion_point(class_scope:tensorflow.data.model.ModelProto.OptimizationParams) + private static final org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams(); + } + + public static org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OptimizationParams 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 org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int NODES_FIELD_NUMBER = 1; + private static final class NodesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.Long, org.tensorflow.proto.data.model.Model.ModelProto.Node> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.tensorflow.proto.data.model.Model.internal_static_tensorflow_data_model_ModelProto_NodesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.INT64, + 0L, + com.google.protobuf.WireFormat.FieldType.MESSAGE, + org.tensorflow.proto.data.model.Model.ModelProto.Node.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.Long, org.tensorflow.proto.data.model.Model.ModelProto.Node> nodes_; + private com.google.protobuf.MapField + internalGetNodes() { + if (nodes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NodesDefaultEntryHolder.defaultEntry); + } + return nodes_; + } + + public int getNodesCount() { + return internalGetNodes().getMap().size(); + } + /** + *
+     * Map of node IDs to nodes of this model.
+     * 
+ * + * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; + */ + + @java.lang.Override + public boolean containsNodes( + long key) { + + return internalGetNodes().getMap().containsKey(key); + } + /** + * Use {@link #getNodesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getNodes() { + return getNodesMap(); + } + /** + *
+     * Map of node IDs to nodes of this model.
+     * 
+ * + * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; + */ + @java.lang.Override + + public java.util.Map getNodesMap() { + return internalGetNodes().getMap(); + } + /** + *
+     * Map of node IDs to nodes of this model.
+     * 
+ * + * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.data.model.Model.ModelProto.Node getNodesOrDefault( + long key, + org.tensorflow.proto.data.model.Model.ModelProto.Node defaultValue) { + + java.util.Map map = + internalGetNodes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Map of node IDs to nodes of this model.
+     * 
+ * + * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.data.model.Model.ModelProto.Node getNodesOrThrow( + long key) { + + java.util.Map map = + internalGetNodes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int OUTPUT_FIELD_NUMBER = 2; + private long output_; + /** + *
+     * ID of the output node of this model.
+     * 
+ * + * int64 output = 2; + * @return The output. + */ + @java.lang.Override + public long getOutput() { + return output_; + } + + public static final int ID_COUNTER_FIELD_NUMBER = 3; + private long idCounter_; + /** + *
+     * Counter for node IDs of this model.
+     * 
+ * + * int64 id_counter = 3; + * @return The idCounter. + */ + @java.lang.Override + public long getIdCounter() { + return idCounter_; + } + + public static final int OPTIMIZATION_PARAMS_FIELD_NUMBER = 5; + private org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams optimizationParams_; + /** + * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; + * @return Whether the optimizationParams field is set. + */ + @java.lang.Override + public boolean hasOptimizationParams() { + return optimizationParams_ != null; + } + /** + * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; + * @return The optimizationParams. + */ + @java.lang.Override + public org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams getOptimizationParams() { + return optimizationParams_ == null ? org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams.getDefaultInstance() : optimizationParams_; + } + /** + * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; + */ + @java.lang.Override + public org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParamsOrBuilder getOptimizationParamsOrBuilder() { + return getOptimizationParams(); + } + + public static final int GAP_TIMES_FIELD_NUMBER = 6; + private com.google.protobuf.Internal.LongList gapTimes_; + /** + * repeated uint64 gap_times = 6; + * @return A list containing the gapTimes. + */ + @java.lang.Override + public java.util.List + getGapTimesList() { + return gapTimes_; + } + /** + * repeated uint64 gap_times = 6; + * @return The count of gapTimes. + */ + public int getGapTimesCount() { + return gapTimes_.size(); + } + /** + * repeated uint64 gap_times = 6; + * @param index The index of the element to return. + * @return The gapTimes at the given index. + */ + public long getGapTimes(int index) { + return gapTimes_.getLong(index); + } + private int gapTimesMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + com.google.protobuf.GeneratedMessageV3 + .serializeLongMapTo( + output, + internalGetNodes(), + NodesDefaultEntryHolder.defaultEntry, + 1); + if (output_ != 0L) { + output.writeInt64(2, output_); + } + if (idCounter_ != 0L) { + output.writeInt64(3, idCounter_); + } + if (optimizationParams_ != null) { + output.writeMessage(5, getOptimizationParams()); + } + if (getGapTimesList().size() > 0) { + output.writeUInt32NoTag(50); + output.writeUInt32NoTag(gapTimesMemoizedSerializedSize); + } + for (int i = 0; i < gapTimes_.size(); i++) { + output.writeUInt64NoTag(gapTimes_.getLong(i)); + } + 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 + : internalGetNodes().getMap().entrySet()) { + com.google.protobuf.MapEntry + nodes__ = NodesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, nodes__); + } + if (output_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, output_); + } + if (idCounter_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, idCounter_); + } + if (optimizationParams_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getOptimizationParams()); + } + { + int dataSize = 0; + for (int i = 0; i < gapTimes_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt64SizeNoTag(gapTimes_.getLong(i)); + } + size += dataSize; + if (!getGapTimesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + gapTimesMemoizedSerializedSize = dataSize; + } + 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 org.tensorflow.proto.data.model.Model.ModelProto)) { + return super.equals(obj); + } + org.tensorflow.proto.data.model.Model.ModelProto other = (org.tensorflow.proto.data.model.Model.ModelProto) obj; + + if (!internalGetNodes().equals( + other.internalGetNodes())) return false; + if (getOutput() + != other.getOutput()) return false; + if (getIdCounter() + != other.getIdCounter()) return false; + if (hasOptimizationParams() != other.hasOptimizationParams()) return false; + if (hasOptimizationParams()) { + if (!getOptimizationParams() + .equals(other.getOptimizationParams())) return false; + } + if (!getGapTimesList() + .equals(other.getGapTimesList())) 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 (!internalGetNodes().getMap().isEmpty()) { + hash = (37 * hash) + NODES_FIELD_NUMBER; + hash = (53 * hash) + internalGetNodes().hashCode(); + } + hash = (37 * hash) + OUTPUT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOutput()); + hash = (37 * hash) + ID_COUNTER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIdCounter()); + if (hasOptimizationParams()) { + hash = (37 * hash) + OPTIMIZATION_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getOptimizationParams().hashCode(); + } + if (getGapTimesCount() > 0) { + hash = (37 * hash) + GAP_TIMES_FIELD_NUMBER; + hash = (53 * hash) + getGapTimesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.data.model.Model.ModelProto parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.model.Model.ModelProto parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.model.Model.ModelProto parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.model.Model.ModelProto parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.model.Model.ModelProto parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.data.model.Model.ModelProto parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.data.model.Model.ModelProto parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.model.Model.ModelProto 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 org.tensorflow.proto.data.model.Model.ModelProto parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.model.Model.ModelProto 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 org.tensorflow.proto.data.model.Model.ModelProto parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.data.model.Model.ModelProto 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(org.tensorflow.proto.data.model.Model.ModelProto 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; + } + /** + *
+     * Protocol buffer representing the data used by the autotuning modeling
+     * framework.
+     * 
+ * + * Protobuf type {@code tensorflow.data.model.ModelProto} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.data.model.ModelProto) + org.tensorflow.proto.data.model.Model.ModelProtoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.data.model.Model.internal_static_tensorflow_data_model_ModelProto_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetNodes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableNodes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.data.model.Model.internal_static_tensorflow_data_model_ModelProto_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.data.model.Model.ModelProto.class, org.tensorflow.proto.data.model.Model.ModelProto.Builder.class); + } + + // Construct using org.tensorflow.proto.data.model.Model.ModelProto.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableNodes().clear(); + output_ = 0L; + + idCounter_ = 0L; + + if (optimizationParamsBuilder_ == null) { + optimizationParams_ = null; + } else { + optimizationParams_ = null; + optimizationParamsBuilder_ = null; + } + gapTimes_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.data.model.Model.internal_static_tensorflow_data_model_ModelProto_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.data.model.Model.ModelProto getDefaultInstanceForType() { + return org.tensorflow.proto.data.model.Model.ModelProto.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.data.model.Model.ModelProto build() { + org.tensorflow.proto.data.model.Model.ModelProto result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.data.model.Model.ModelProto buildPartial() { + org.tensorflow.proto.data.model.Model.ModelProto result = new org.tensorflow.proto.data.model.Model.ModelProto(this); + int from_bitField0_ = bitField0_; + result.nodes_ = internalGetNodes(); + result.nodes_.makeImmutable(); + result.output_ = output_; + result.idCounter_ = idCounter_; + if (optimizationParamsBuilder_ == null) { + result.optimizationParams_ = optimizationParams_; + } else { + result.optimizationParams_ = optimizationParamsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + gapTimes_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.gapTimes_ = gapTimes_; + 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 org.tensorflow.proto.data.model.Model.ModelProto) { + return mergeFrom((org.tensorflow.proto.data.model.Model.ModelProto)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.data.model.Model.ModelProto other) { + if (other == org.tensorflow.proto.data.model.Model.ModelProto.getDefaultInstance()) return this; + internalGetMutableNodes().mergeFrom( + other.internalGetNodes()); + if (other.getOutput() != 0L) { + setOutput(other.getOutput()); + } + if (other.getIdCounter() != 0L) { + setIdCounter(other.getIdCounter()); + } + if (other.hasOptimizationParams()) { + mergeOptimizationParams(other.getOptimizationParams()); + } + if (!other.gapTimes_.isEmpty()) { + if (gapTimes_.isEmpty()) { + gapTimes_ = other.gapTimes_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureGapTimesIsMutable(); + gapTimes_.addAll(other.gapTimes_); + } + 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: { + com.google.protobuf.MapEntry + nodes__ = input.readMessage( + NodesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableNodes().getMutableMap().put( + nodes__.getKey(), nodes__.getValue()); + break; + } // case 10 + case 16: { + output_ = input.readInt64(); + + break; + } // case 16 + case 24: { + idCounter_ = input.readInt64(); + + break; + } // case 24 + case 42: { + input.readMessage( + getOptimizationParamsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + case 48: { + long v = input.readUInt64(); + ensureGapTimesIsMutable(); + gapTimes_.addLong(v); + break; + } // case 48 + case 50: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureGapTimesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + gapTimes_.addLong(input.readUInt64()); + } + input.popLimit(limit); + break; + } // case 50 + 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.protobuf.MapField< + java.lang.Long, org.tensorflow.proto.data.model.Model.ModelProto.Node> nodes_; + private com.google.protobuf.MapField + internalGetNodes() { + if (nodes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NodesDefaultEntryHolder.defaultEntry); + } + return nodes_; + } + private com.google.protobuf.MapField + internalGetMutableNodes() { + onChanged();; + if (nodes_ == null) { + nodes_ = com.google.protobuf.MapField.newMapField( + NodesDefaultEntryHolder.defaultEntry); + } + if (!nodes_.isMutable()) { + nodes_ = nodes_.copy(); + } + return nodes_; + } + + public int getNodesCount() { + return internalGetNodes().getMap().size(); + } + /** + *
+       * Map of node IDs to nodes of this model.
+       * 
+ * + * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; + */ + + @java.lang.Override + public boolean containsNodes( + long key) { + + return internalGetNodes().getMap().containsKey(key); + } + /** + * Use {@link #getNodesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getNodes() { + return getNodesMap(); + } + /** + *
+       * Map of node IDs to nodes of this model.
+       * 
+ * + * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; + */ + @java.lang.Override + + public java.util.Map getNodesMap() { + return internalGetNodes().getMap(); + } + /** + *
+       * Map of node IDs to nodes of this model.
+       * 
+ * + * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.data.model.Model.ModelProto.Node getNodesOrDefault( + long key, + org.tensorflow.proto.data.model.Model.ModelProto.Node defaultValue) { + + java.util.Map map = + internalGetNodes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Map of node IDs to nodes of this model.
+       * 
+ * + * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; + */ + @java.lang.Override + + public org.tensorflow.proto.data.model.Model.ModelProto.Node getNodesOrThrow( + long key) { + + java.util.Map map = + internalGetNodes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearNodes() { + internalGetMutableNodes().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Map of node IDs to nodes of this model.
+       * 
+ * + * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; + */ + + public Builder removeNodes( + long key) { + + internalGetMutableNodes().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableNodes() { + return internalGetMutableNodes().getMutableMap(); + } + /** + *
+       * Map of node IDs to nodes of this model.
+       * 
+ * + * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; + */ + public Builder putNodes( + long key, + org.tensorflow.proto.data.model.Model.ModelProto.Node value) { + + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableNodes().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Map of node IDs to nodes of this model.
+       * 
+ * + * map<int64, .tensorflow.data.model.ModelProto.Node> nodes = 1; + */ + + public Builder putAllNodes( + java.util.Map values) { + internalGetMutableNodes().getMutableMap() + .putAll(values); + return this; + } + + private long output_ ; + /** + *
+       * ID of the output node of this model.
+       * 
+ * + * int64 output = 2; + * @return The output. + */ + @java.lang.Override + public long getOutput() { + return output_; + } + /** + *
+       * ID of the output node of this model.
+       * 
+ * + * int64 output = 2; + * @param value The output to set. + * @return This builder for chaining. + */ + public Builder setOutput(long value) { + + output_ = value; + onChanged(); + return this; + } + /** + *
+       * ID of the output node of this model.
+       * 
+ * + * int64 output = 2; + * @return This builder for chaining. + */ + public Builder clearOutput() { + + output_ = 0L; + onChanged(); + return this; + } + + private long idCounter_ ; + /** + *
+       * Counter for node IDs of this model.
+       * 
+ * + * int64 id_counter = 3; + * @return The idCounter. + */ + @java.lang.Override + public long getIdCounter() { + return idCounter_; + } + /** + *
+       * Counter for node IDs of this model.
+       * 
+ * + * int64 id_counter = 3; + * @param value The idCounter to set. + * @return This builder for chaining. + */ + public Builder setIdCounter(long value) { + + idCounter_ = value; + onChanged(); + return this; + } + /** + *
+       * Counter for node IDs of this model.
+       * 
+ * + * int64 id_counter = 3; + * @return This builder for chaining. + */ + public Builder clearIdCounter() { + + idCounter_ = 0L; + onChanged(); + return this; + } + + private org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams optimizationParams_; + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams, org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams.Builder, org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParamsOrBuilder> optimizationParamsBuilder_; + /** + * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; + * @return Whether the optimizationParams field is set. + */ + public boolean hasOptimizationParams() { + return optimizationParamsBuilder_ != null || optimizationParams_ != null; + } + /** + * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; + * @return The optimizationParams. + */ + public org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams getOptimizationParams() { + if (optimizationParamsBuilder_ == null) { + return optimizationParams_ == null ? org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams.getDefaultInstance() : optimizationParams_; + } else { + return optimizationParamsBuilder_.getMessage(); + } + } + /** + * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; + */ + public Builder setOptimizationParams(org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams value) { + if (optimizationParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + optimizationParams_ = value; + onChanged(); + } else { + optimizationParamsBuilder_.setMessage(value); + } + + return this; + } + /** + * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; + */ + public Builder setOptimizationParams( + org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams.Builder builderForValue) { + if (optimizationParamsBuilder_ == null) { + optimizationParams_ = builderForValue.build(); + onChanged(); + } else { + optimizationParamsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; + */ + public Builder mergeOptimizationParams(org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams value) { + if (optimizationParamsBuilder_ == null) { + if (optimizationParams_ != null) { + optimizationParams_ = + org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams.newBuilder(optimizationParams_).mergeFrom(value).buildPartial(); + } else { + optimizationParams_ = value; + } + onChanged(); + } else { + optimizationParamsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; + */ + public Builder clearOptimizationParams() { + if (optimizationParamsBuilder_ == null) { + optimizationParams_ = null; + onChanged(); + } else { + optimizationParams_ = null; + optimizationParamsBuilder_ = null; + } + + return this; + } + /** + * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; + */ + public org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams.Builder getOptimizationParamsBuilder() { + + onChanged(); + return getOptimizationParamsFieldBuilder().getBuilder(); + } + /** + * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; + */ + public org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParamsOrBuilder getOptimizationParamsOrBuilder() { + if (optimizationParamsBuilder_ != null) { + return optimizationParamsBuilder_.getMessageOrBuilder(); + } else { + return optimizationParams_ == null ? + org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams.getDefaultInstance() : optimizationParams_; + } + } + /** + * .tensorflow.data.model.ModelProto.OptimizationParams optimization_params = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams, org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams.Builder, org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParamsOrBuilder> + getOptimizationParamsFieldBuilder() { + if (optimizationParamsBuilder_ == null) { + optimizationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams, org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParams.Builder, org.tensorflow.proto.data.model.Model.ModelProto.OptimizationParamsOrBuilder>( + getOptimizationParams(), + getParentForChildren(), + isClean()); + optimizationParams_ = null; + } + return optimizationParamsBuilder_; + } + + private com.google.protobuf.Internal.LongList gapTimes_ = emptyLongList(); + private void ensureGapTimesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + gapTimes_ = mutableCopy(gapTimes_); + bitField0_ |= 0x00000002; + } + } + /** + * repeated uint64 gap_times = 6; + * @return A list containing the gapTimes. + */ + public java.util.List + getGapTimesList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(gapTimes_) : gapTimes_; + } + /** + * repeated uint64 gap_times = 6; + * @return The count of gapTimes. + */ + public int getGapTimesCount() { + return gapTimes_.size(); + } + /** + * repeated uint64 gap_times = 6; + * @param index The index of the element to return. + * @return The gapTimes at the given index. + */ + public long getGapTimes(int index) { + return gapTimes_.getLong(index); + } + /** + * repeated uint64 gap_times = 6; + * @param index The index to set the value at. + * @param value The gapTimes to set. + * @return This builder for chaining. + */ + public Builder setGapTimes( + int index, long value) { + ensureGapTimesIsMutable(); + gapTimes_.setLong(index, value); + onChanged(); + return this; + } + /** + * repeated uint64 gap_times = 6; + * @param value The gapTimes to add. + * @return This builder for chaining. + */ + public Builder addGapTimes(long value) { + ensureGapTimesIsMutable(); + gapTimes_.addLong(value); + onChanged(); + return this; + } + /** + * repeated uint64 gap_times = 6; + * @param values The gapTimes to add. + * @return This builder for chaining. + */ + public Builder addAllGapTimes( + java.lang.Iterable values) { + ensureGapTimesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, gapTimes_); + onChanged(); + return this; + } + /** + * repeated uint64 gap_times = 6; + * @return This builder for chaining. + */ + public Builder clearGapTimes() { + gapTimes_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000002); + 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:tensorflow.data.model.ModelProto) + } + + // @@protoc_insertion_point(class_scope:tensorflow.data.model.ModelProto) + private static final org.tensorflow.proto.data.model.Model.ModelProto DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.data.model.Model.ModelProto(); + } + + public static org.tensorflow.proto.data.model.Model.ModelProto getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelProto 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 org.tensorflow.proto.data.model.Model.ModelProto getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_data_model_ModelProto_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_data_model_ModelProto_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_data_model_ModelProto_Node_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_data_model_ModelProto_Node_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_data_model_ModelProto_Node_Parameter_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_data_model_ModelProto_Node_Parameter_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_data_model_ModelProto_NodesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_data_model_ModelProto_NodesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_data_model_ModelProto_OptimizationParams_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_data_model_ModelProto_OptimizationParams_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n%tensorflow/core/framework/model.proto\022" + + "\025tensorflow.data.model\"\207\010\n\nModelProto\022;\n" + + "\005nodes\030\001 \003(\0132,.tensorflow.data.model.Mod" + + "elProto.NodesEntry\022\016\n\006output\030\002 \001(\003\022\022\n\nid" + + "_counter\030\003 \001(\003\022Q\n\023optimization_params\030\005 " + + "\001(\01324.tensorflow.data.model.ModelProto.O" + + "ptimizationParams\022\021\n\tgap_times\030\006 \003(\004\032\277\004\n" + + "\004Node\022\n\n\002id\030\001 \001(\003\022\014\n\004name\030\002 \001(\t\022\020\n\010autot" + + "une\030\003 \001(\010\022\026\n\016buffered_bytes\030\004 \001(\003\022\031\n\021buf" + + "fered_elements\030\005 \001(\003\022\026\n\016bytes_consumed\030\006" + + " \001(\003\022\026\n\016bytes_produced\030\007 \001(\003\022\024\n\014num_elem" + + "ents\030\010 \001(\003\022\027\n\017processing_time\030\t \001(\003\022\026\n\016r" + + "ecord_metrics\030\n \001(\010\022D\n\nparameters\030\013 \003(\0132" + + "0.tensorflow.data.model.ModelProto.Node." + + "Parameter\022!\n\031input_processing_time_sum\030\014" + + " \001(\001\022#\n\033input_processing_time_count\030\r \001(" + + "\003\022\016\n\006inputs\030\016 \003(\003\0224\n\nnode_class\030\017 \001(\0162 ." + + "tensorflow.data.model.NodeClass\022\r\n\005ratio" + + "\030\020 \001(\001\022\024\n\014memory_ratio\030\021 \001(\001\032h\n\tParamete" + + "r\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\001\022\023\n\013state_" + + "value\030\003 \001(\001\022\013\n\003min\030\004 \001(\001\022\013\n\003max\030\005 \001(\001\022\017\n" + + "\007tunable\030\006 \001(\010\032T\n\nNodesEntry\022\013\n\003key\030\001 \001(" + + "\003\0225\n\005value\030\002 \001(\0132&.tensorflow.data.model" + + ".ModelProto.Node:\0028\001\032\223\001\n\022OptimizationPar" + + "ams\022;\n\talgorithm\030\001 \001(\0162(.tensorflow.data" + + ".model.AutotuneAlgorithm\022\022\n\ncpu_budget\030\002" + + " \001(\003\022\022\n\nram_budget\030\003 \001(\003\022\030\n\020model_input_" + + "time\030\004 \001(\001J\004\010\004\020\005*\234\001\n\tNodeClass\022\013\n\007UNKNOW" + + "N\020\000\022\023\n\017INTERLEAVE_MANY\020\001\022\031\n\025ASYNC_INTERL" + + "EAVE_MANY\020\002\022\017\n\013KNOWN_RATIO\020\003\022\025\n\021ASYNC_KN" + + "OWN_RATIO\020\004\022\021\n\rUNKNOWN_RATIO\020\005\022\027\n\023ASYNC_" + + "UNKNOWN_RATIO\020\006*l\n\021AutotuneAlgorithm\022\013\n\007" + + "DEFAULT\020\000\022\016\n\nHILL_CLIMB\020\001\022\024\n\020GRADIENT_DE" + + "SCENT\020\002\022\023\n\017MAX_PARALLELISM\020\003\022\017\n\013STAGE_BA" + + "SED\020\004Br\n\037org.tensorflow.proto.data.model" + + "ZLgithub.com/tensorflow/tensorflow/tenso" + + "rflow/go/core/framework/model_go_proto\370\001" + + "\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_tensorflow_data_model_ModelProto_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_data_model_ModelProto_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_data_model_ModelProto_descriptor, + new java.lang.String[] { "Nodes", "Output", "IdCounter", "OptimizationParams", "GapTimes", }); + internal_static_tensorflow_data_model_ModelProto_Node_descriptor = + internal_static_tensorflow_data_model_ModelProto_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_data_model_ModelProto_Node_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_data_model_ModelProto_Node_descriptor, + new java.lang.String[] { "Id", "Name", "Autotune", "BufferedBytes", "BufferedElements", "BytesConsumed", "BytesProduced", "NumElements", "ProcessingTime", "RecordMetrics", "Parameters", "InputProcessingTimeSum", "InputProcessingTimeCount", "Inputs", "NodeClass", "Ratio", "MemoryRatio", }); + internal_static_tensorflow_data_model_ModelProto_Node_Parameter_descriptor = + internal_static_tensorflow_data_model_ModelProto_Node_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_data_model_ModelProto_Node_Parameter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_data_model_ModelProto_Node_Parameter_descriptor, + new java.lang.String[] { "Name", "Value", "StateValue", "Min", "Max", "Tunable", }); + internal_static_tensorflow_data_model_ModelProto_NodesEntry_descriptor = + internal_static_tensorflow_data_model_ModelProto_descriptor.getNestedTypes().get(1); + internal_static_tensorflow_data_model_ModelProto_NodesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_data_model_ModelProto_NodesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_tensorflow_data_model_ModelProto_OptimizationParams_descriptor = + internal_static_tensorflow_data_model_ModelProto_descriptor.getNestedTypes().get(2); + internal_static_tensorflow_data_model_ModelProto_OptimizationParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_data_model_ModelProto_OptimizationParams_descriptor, + new java.lang.String[] { "Algorithm", "CpuBudget", "RamBudget", "ModelInputTime", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/di/DistributedRuntimePayloads.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/di/DistributedRuntimePayloads.java new file mode 100644 index 00000000000..2b9dbf2988c --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/di/DistributedRuntimePayloads.java @@ -0,0 +1,1645 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/tsl/protobuf/distributed_runtime_payloads.proto + +package org.tensorflow.proto.di; + +public final class DistributedRuntimePayloads { + private DistributedRuntimePayloads() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface GrpcPayloadContainerOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.di.GrpcPayloadContainer) + com.google.protobuf.MessageOrBuilder { + + /** + * map<string, bytes> payloads = 1; + */ + int getPayloadsCount(); + /** + * map<string, bytes> payloads = 1; + */ + boolean containsPayloads( + java.lang.String key); + /** + * Use {@link #getPayloadsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getPayloads(); + /** + * map<string, bytes> payloads = 1; + */ + java.util.Map + getPayloadsMap(); + /** + * map<string, bytes> payloads = 1; + */ + + /* nullable */ +com.google.protobuf.ByteString getPayloadsOrDefault( + java.lang.String key, + /* nullable */ +com.google.protobuf.ByteString defaultValue); + /** + * map<string, bytes> payloads = 1; + */ + + com.google.protobuf.ByteString getPayloadsOrThrow( + java.lang.String key); + } + /** + *
+   * Used to serialize and transmit tensorflow::Status payloads through
+   * grpc::Status `error_details` since grpc::Status lacks payload API.
+   * TODO(b/204231601): Use GRPC API once supported.
+   * 
+ * + * Protobuf type {@code tensorflow.di.GrpcPayloadContainer} + */ + public static final class GrpcPayloadContainer extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.di.GrpcPayloadContainer) + GrpcPayloadContainerOrBuilder { + private static final long serialVersionUID = 0L; + // Use GrpcPayloadContainer.newBuilder() to construct. + private GrpcPayloadContainer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GrpcPayloadContainer() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GrpcPayloadContainer(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.di.DistributedRuntimePayloads.internal_static_tensorflow_di_GrpcPayloadContainer_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetPayloads(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.di.DistributedRuntimePayloads.internal_static_tensorflow_di_GrpcPayloadContainer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer.class, org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer.Builder.class); + } + + public static final int PAYLOADS_FIELD_NUMBER = 1; + private static final class PayloadsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.ByteString> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.tensorflow.proto.di.DistributedRuntimePayloads.internal_static_tensorflow_di_GrpcPayloadContainer_PayloadsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.BYTES, + com.google.protobuf.ByteString.EMPTY); + } + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.ByteString> payloads_; + private com.google.protobuf.MapField + internalGetPayloads() { + if (payloads_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PayloadsDefaultEntryHolder.defaultEntry); + } + return payloads_; + } + + public int getPayloadsCount() { + return internalGetPayloads().getMap().size(); + } + /** + * map<string, bytes> payloads = 1; + */ + + @java.lang.Override + public boolean containsPayloads( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetPayloads().getMap().containsKey(key); + } + /** + * Use {@link #getPayloadsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getPayloads() { + return getPayloadsMap(); + } + /** + * map<string, bytes> payloads = 1; + */ + @java.lang.Override + + public java.util.Map getPayloadsMap() { + return internalGetPayloads().getMap(); + } + /** + * map<string, bytes> payloads = 1; + */ + @java.lang.Override + + public com.google.protobuf.ByteString getPayloadsOrDefault( + java.lang.String key, + com.google.protobuf.ByteString defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetPayloads().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, bytes> payloads = 1; + */ + @java.lang.Override + + public com.google.protobuf.ByteString getPayloadsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetPayloads().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, + internalGetPayloads(), + PayloadsDefaultEntryHolder.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 + : internalGetPayloads().getMap().entrySet()) { + com.google.protobuf.MapEntry + payloads__ = PayloadsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, payloads__); + } + 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 org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer)) { + return super.equals(obj); + } + org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer other = (org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer) obj; + + if (!internalGetPayloads().equals( + other.internalGetPayloads())) 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 (!internalGetPayloads().getMap().isEmpty()) { + hash = (37 * hash) + PAYLOADS_FIELD_NUMBER; + hash = (53 * hash) + internalGetPayloads().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer 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 org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer 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 org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer 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(org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer 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; + } + /** + *
+     * Used to serialize and transmit tensorflow::Status payloads through
+     * grpc::Status `error_details` since grpc::Status lacks payload API.
+     * TODO(b/204231601): Use GRPC API once supported.
+     * 
+ * + * Protobuf type {@code tensorflow.di.GrpcPayloadContainer} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.di.GrpcPayloadContainer) + org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.di.DistributedRuntimePayloads.internal_static_tensorflow_di_GrpcPayloadContainer_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetPayloads(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutablePayloads(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.di.DistributedRuntimePayloads.internal_static_tensorflow_di_GrpcPayloadContainer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer.class, org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer.Builder.class); + } + + // Construct using org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutablePayloads().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.di.DistributedRuntimePayloads.internal_static_tensorflow_di_GrpcPayloadContainer_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer getDefaultInstanceForType() { + return org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer build() { + org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer buildPartial() { + org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer result = new org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer(this); + int from_bitField0_ = bitField0_; + result.payloads_ = internalGetPayloads(); + result.payloads_.makeImmutable(); + 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 org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer) { + return mergeFrom((org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer other) { + if (other == org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer.getDefaultInstance()) return this; + internalGetMutablePayloads().mergeFrom( + other.internalGetPayloads()); + 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 + payloads__ = input.readMessage( + PayloadsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutablePayloads().getMutableMap().put( + payloads__.getKey(), payloads__.getValue()); + 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.protobuf.MapField< + java.lang.String, com.google.protobuf.ByteString> payloads_; + private com.google.protobuf.MapField + internalGetPayloads() { + if (payloads_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PayloadsDefaultEntryHolder.defaultEntry); + } + return payloads_; + } + private com.google.protobuf.MapField + internalGetMutablePayloads() { + onChanged();; + if (payloads_ == null) { + payloads_ = com.google.protobuf.MapField.newMapField( + PayloadsDefaultEntryHolder.defaultEntry); + } + if (!payloads_.isMutable()) { + payloads_ = payloads_.copy(); + } + return payloads_; + } + + public int getPayloadsCount() { + return internalGetPayloads().getMap().size(); + } + /** + * map<string, bytes> payloads = 1; + */ + + @java.lang.Override + public boolean containsPayloads( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetPayloads().getMap().containsKey(key); + } + /** + * Use {@link #getPayloadsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getPayloads() { + return getPayloadsMap(); + } + /** + * map<string, bytes> payloads = 1; + */ + @java.lang.Override + + public java.util.Map getPayloadsMap() { + return internalGetPayloads().getMap(); + } + /** + * map<string, bytes> payloads = 1; + */ + @java.lang.Override + + public com.google.protobuf.ByteString getPayloadsOrDefault( + java.lang.String key, + com.google.protobuf.ByteString defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetPayloads().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, bytes> payloads = 1; + */ + @java.lang.Override + + public com.google.protobuf.ByteString getPayloadsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetPayloads().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearPayloads() { + internalGetMutablePayloads().getMutableMap() + .clear(); + return this; + } + /** + * map<string, bytes> payloads = 1; + */ + + public Builder removePayloads( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutablePayloads().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutablePayloads() { + return internalGetMutablePayloads().getMutableMap(); + } + /** + * map<string, bytes> payloads = 1; + */ + public Builder putPayloads( + java.lang.String key, + com.google.protobuf.ByteString value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutablePayloads().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, bytes> payloads = 1; + */ + + public Builder putAllPayloads( + java.util.Map values) { + internalGetMutablePayloads().getMutableMap() + .putAll(values); + 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:tensorflow.di.GrpcPayloadContainer) + } + + // @@protoc_insertion_point(class_scope:tensorflow.di.GrpcPayloadContainer) + private static final org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer(); + } + + public static org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GrpcPayloadContainer 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 org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadContainer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GrpcPayloadsLostOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.di.GrpcPayloadsLost) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * If included as a payload, this message flags the Status to have lost payloads
+   * during the GRPC transmission.
+   * URI: "type.googleapis.com/tensorflow.distributed_runtime.GrpcPayloadsLost"
+   * 
+ * + * Protobuf type {@code tensorflow.di.GrpcPayloadsLost} + */ + public static final class GrpcPayloadsLost extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.di.GrpcPayloadsLost) + GrpcPayloadsLostOrBuilder { + private static final long serialVersionUID = 0L; + // Use GrpcPayloadsLost.newBuilder() to construct. + private GrpcPayloadsLost(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GrpcPayloadsLost() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GrpcPayloadsLost(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.di.DistributedRuntimePayloads.internal_static_tensorflow_di_GrpcPayloadsLost_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.di.DistributedRuntimePayloads.internal_static_tensorflow_di_GrpcPayloadsLost_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost.class, org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost)) { + return super.equals(obj); + } + org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost other = (org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost) obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost 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 org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost 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 org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost 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(org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost 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; + } + /** + *
+     * If included as a payload, this message flags the Status to have lost payloads
+     * during the GRPC transmission.
+     * URI: "type.googleapis.com/tensorflow.distributed_runtime.GrpcPayloadsLost"
+     * 
+ * + * Protobuf type {@code tensorflow.di.GrpcPayloadsLost} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.di.GrpcPayloadsLost) + org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLostOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.di.DistributedRuntimePayloads.internal_static_tensorflow_di_GrpcPayloadsLost_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.di.DistributedRuntimePayloads.internal_static_tensorflow_di_GrpcPayloadsLost_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost.class, org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost.Builder.class); + } + + // Construct using org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.di.DistributedRuntimePayloads.internal_static_tensorflow_di_GrpcPayloadsLost_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost getDefaultInstanceForType() { + return org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost build() { + org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost buildPartial() { + org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost result = new org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost(this); + 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 org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost) { + return mergeFrom((org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost other) { + if (other == org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost.getDefaultInstance()) return this; + 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; + 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; + } + @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:tensorflow.di.GrpcPayloadsLost) + } + + // @@protoc_insertion_point(class_scope:tensorflow.di.GrpcPayloadsLost) + private static final org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost(); + } + + public static org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GrpcPayloadsLost 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 org.tensorflow.proto.di.DistributedRuntimePayloads.GrpcPayloadsLost getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkerPossiblyRestartedOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.di.WorkerPossiblyRestarted) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * If included as a payload, this message flags the Status to be a possible
+   * outcome of a worker restart.
+   * URI:
+   * "type.googleapis.com/tensorflow.distributed_runtime.WorkerPossiblyRestarted"
+   * 
+ * + * Protobuf type {@code tensorflow.di.WorkerPossiblyRestarted} + */ + public static final class WorkerPossiblyRestarted extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.di.WorkerPossiblyRestarted) + WorkerPossiblyRestartedOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkerPossiblyRestarted.newBuilder() to construct. + private WorkerPossiblyRestarted(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkerPossiblyRestarted() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WorkerPossiblyRestarted(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.di.DistributedRuntimePayloads.internal_static_tensorflow_di_WorkerPossiblyRestarted_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.di.DistributedRuntimePayloads.internal_static_tensorflow_di_WorkerPossiblyRestarted_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted.class, org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted)) { + return super.equals(obj); + } + org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted other = (org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted) obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted 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 org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted 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 org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted 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(org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted 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; + } + /** + *
+     * If included as a payload, this message flags the Status to be a possible
+     * outcome of a worker restart.
+     * URI:
+     * "type.googleapis.com/tensorflow.distributed_runtime.WorkerPossiblyRestarted"
+     * 
+ * + * Protobuf type {@code tensorflow.di.WorkerPossiblyRestarted} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.di.WorkerPossiblyRestarted) + org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestartedOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.di.DistributedRuntimePayloads.internal_static_tensorflow_di_WorkerPossiblyRestarted_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.di.DistributedRuntimePayloads.internal_static_tensorflow_di_WorkerPossiblyRestarted_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted.class, org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted.Builder.class); + } + + // Construct using org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.di.DistributedRuntimePayloads.internal_static_tensorflow_di_WorkerPossiblyRestarted_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted getDefaultInstanceForType() { + return org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted build() { + org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted buildPartial() { + org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted result = new org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted(this); + 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 org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted) { + return mergeFrom((org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted other) { + if (other == org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted.getDefaultInstance()) return this; + 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; + 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; + } + @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:tensorflow.di.WorkerPossiblyRestarted) + } + + // @@protoc_insertion_point(class_scope:tensorflow.di.WorkerPossiblyRestarted) + private static final org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted(); + } + + public static org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkerPossiblyRestarted 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 org.tensorflow.proto.di.DistributedRuntimePayloads.WorkerPossiblyRestarted getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_di_GrpcPayloadContainer_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_di_GrpcPayloadContainer_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_di_GrpcPayloadContainer_PayloadsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_di_GrpcPayloadContainer_PayloadsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_di_GrpcPayloadsLost_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_di_GrpcPayloadsLost_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_di_WorkerPossiblyRestarted_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_di_WorkerPossiblyRestarted_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n:tensorflow/tsl/protobuf/distributed_ru" + + "ntime_payloads.proto\022\rtensorflow.di\"\214\001\n\024" + + "GrpcPayloadContainer\022C\n\010payloads\030\001 \003(\01321" + + ".tensorflow.di.GrpcPayloadContainer.Payl" + + "oadsEntry\032/\n\rPayloadsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\014:\0028\001\"\022\n\020GrpcPayloadsLost\"\031" + + "\n\027WorkerPossiblyRestartedBZ\n\027org.tensorf" + + "low.proto.diZ(); - mutable_bitField0_ |= 0x00000001; - } - resourceDtypesAndShapes_.add( - input.readMessage(org.tensorflow.proto.framework.ResourceDtypeAndShape.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)) { - resourceDtypesAndShapes_ = java.util.Collections.unmodifiableList(resourceDtypesAndShapes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.tensorflow.proto.framework.RemoteTensorHandleProtos.internal_static_tensorflow_eager_RemoteTensorHandle_descriptor; + return org.tensorflow.proto.eager.RemoteTensorHandleProtos.internal_static_tensorflow_eager_RemoteTensorHandle_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.tensorflow.proto.framework.RemoteTensorHandleProtos.internal_static_tensorflow_eager_RemoteTensorHandle_fieldAccessorTable + return org.tensorflow.proto.eager.RemoteTensorHandleProtos.internal_static_tensorflow_eager_RemoteTensorHandle_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.tensorflow.proto.framework.RemoteTensorHandle.class, org.tensorflow.proto.framework.RemoteTensorHandle.Builder.class); + org.tensorflow.proto.eager.RemoteTensorHandle.class, org.tensorflow.proto.eager.RemoteTensorHandle.Builder.class); } public static final int OP_ID_FIELD_NUMBER = 1; @@ -133,7 +55,9 @@ private RemoteTensorHandle( * * * int64 op_id = 1; + * @return The opId. */ + @java.lang.Override public long getOpId() { return opId_; } @@ -146,7 +70,9 @@ public long getOpId() { * * * int32 output_num = 2; + * @return The outputNum. */ + @java.lang.Override public int getOutputNum() { return outputNum_; } @@ -160,7 +86,9 @@ public int getOutputNum() { * * * string device = 3; + * @return The device. */ + @java.lang.Override public java.lang.String getDevice() { java.lang.Object ref = device_; if (ref instanceof java.lang.String) { @@ -180,7 +108,9 @@ public java.lang.String getDevice() { * * * string device = 3; + * @return The bytes for device. */ + @java.lang.Override public com.google.protobuf.ByteString getDeviceBytes() { java.lang.Object ref = device_; @@ -204,7 +134,9 @@ public java.lang.String getDevice() { * * * string op_device = 4; + * @return The opDevice. */ + @java.lang.Override public java.lang.String getOpDevice() { java.lang.Object ref = opDevice_; if (ref instanceof java.lang.String) { @@ -224,7 +156,9 @@ public java.lang.String getOpDevice() { * * * string op_device = 4; + * @return The bytes for opDevice. */ + @java.lang.Override public com.google.protobuf.ByteString getOpDeviceBytes() { java.lang.Object ref = opDevice_; @@ -247,8 +181,9 @@ public java.lang.String getOpDevice() { * * * .tensorflow.DataType dtype = 5; + * @return The enum numeric value on the wire for dtype. */ - public int getDtypeValue() { + @java.lang.Override public int getDtypeValue() { return dtype_; } /** @@ -257,15 +192,16 @@ public int getDtypeValue() { * * * .tensorflow.DataType dtype = 5; + * @return The dtype. */ - public org.tensorflow.proto.framework.DataType getDtype() { + @java.lang.Override public org.tensorflow.proto.DataType getDtype() { @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; } public static final int RESOURCE_DTYPES_AND_SHAPES_FIELD_NUMBER = 6; - private java.util.List resourceDtypesAndShapes_; + private java.util.List resourceDtypesAndShapes_; /** *
    * Optional data types and shapes of a remote resource variable.
@@ -273,7 +209,8 @@ public org.tensorflow.proto.framework.DataType getDtype() {
    *
    * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
    */
-  public java.util.List getResourceDtypesAndShapesList() {
+  @java.lang.Override
+  public java.util.List getResourceDtypesAndShapesList() {
     return resourceDtypesAndShapes_;
   }
   /**
@@ -283,7 +220,8 @@ public java.util.List getR
    *
    * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
    */
-  public java.util.List 
+  @java.lang.Override
+  public java.util.List 
       getResourceDtypesAndShapesOrBuilderList() {
     return resourceDtypesAndShapes_;
   }
@@ -294,6 +232,7 @@ public java.util.List getR
    *
    * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
    */
+  @java.lang.Override
   public int getResourceDtypesAndShapesCount() {
     return resourceDtypesAndShapes_.size();
   }
@@ -304,7 +243,8 @@ public int getResourceDtypesAndShapesCount() {
    *
    * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
    */
-  public org.tensorflow.proto.framework.ResourceDtypeAndShape getResourceDtypesAndShapes(int index) {
+  @java.lang.Override
+  public org.tensorflow.proto.eager.ResourceDtypeAndShape getResourceDtypesAndShapes(int index) {
     return resourceDtypesAndShapes_.get(index);
   }
   /**
@@ -314,7 +254,8 @@ public org.tensorflow.proto.framework.ResourceDtypeAndShape getResourceDtypesAnd
    *
    * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
    */
-  public org.tensorflow.proto.framework.ResourceDtypeAndShapeOrBuilder getResourceDtypesAndShapesOrBuilder(
+  @java.lang.Override
+  public org.tensorflow.proto.eager.ResourceDtypeAndShapeOrBuilder getResourceDtypesAndShapesOrBuilder(
       int index) {
     return resourceDtypesAndShapes_.get(index);
   }
@@ -339,19 +280,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (outputNum_ != 0) {
       output.writeInt32(2, outputNum_);
     }
-    if (!getDeviceBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(device_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, device_);
     }
-    if (!getOpDeviceBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(opDevice_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, opDevice_);
     }
-    if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) {
+    if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) {
       output.writeEnum(5, dtype_);
     }
     for (int i = 0; i < resourceDtypesAndShapes_.size(); i++) {
       output.writeMessage(6, resourceDtypesAndShapes_.get(i));
     }
-    unknownFields.writeTo(output);
+    getUnknownFields().writeTo(output);
   }
 
   @java.lang.Override
@@ -368,13 +309,13 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
         .computeInt32Size(2, outputNum_);
     }
-    if (!getDeviceBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(device_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, device_);
     }
-    if (!getOpDeviceBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(opDevice_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, opDevice_);
     }
-    if (dtype_ != org.tensorflow.proto.framework.DataType.DT_INVALID.getNumber()) {
+    if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) {
       size += com.google.protobuf.CodedOutputStream
         .computeEnumSize(5, dtype_);
     }
@@ -382,7 +323,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
         .computeMessageSize(6, resourceDtypesAndShapes_.get(i));
     }
-    size += unknownFields.getSerializedSize();
+    size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
     return size;
   }
@@ -392,10 +333,10 @@ public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
      return true;
     }
-    if (!(obj instanceof org.tensorflow.proto.framework.RemoteTensorHandle)) {
+    if (!(obj instanceof org.tensorflow.proto.eager.RemoteTensorHandle)) {
       return super.equals(obj);
     }
-    org.tensorflow.proto.framework.RemoteTensorHandle other = (org.tensorflow.proto.framework.RemoteTensorHandle) obj;
+    org.tensorflow.proto.eager.RemoteTensorHandle other = (org.tensorflow.proto.eager.RemoteTensorHandle) obj;
 
     if (getOpId()
         != other.getOpId()) return false;
@@ -408,7 +349,7 @@ public boolean equals(final java.lang.Object obj) {
     if (dtype_ != other.dtype_) return false;
     if (!getResourceDtypesAndShapesList()
         .equals(other.getResourceDtypesAndShapesList())) return false;
-    if (!unknownFields.equals(other.unknownFields)) return false;
+    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
 
@@ -434,74 +375,74 @@ public int hashCode() {
       hash = (37 * hash) + RESOURCE_DTYPES_AND_SHAPES_FIELD_NUMBER;
       hash = (53 * hash) + getResourceDtypesAndShapesList().hashCode();
     }
-    hash = (29 * hash) + unknownFields.hashCode();
+    hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
     return hash;
   }
 
-  public static org.tensorflow.proto.framework.RemoteTensorHandle parseFrom(
+  public static org.tensorflow.proto.eager.RemoteTensorHandle parseFrom(
       java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.RemoteTensorHandle parseFrom(
+  public static org.tensorflow.proto.eager.RemoteTensorHandle parseFrom(
       java.nio.ByteBuffer data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.RemoteTensorHandle parseFrom(
+  public static org.tensorflow.proto.eager.RemoteTensorHandle parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.RemoteTensorHandle parseFrom(
+  public static org.tensorflow.proto.eager.RemoteTensorHandle parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.RemoteTensorHandle parseFrom(byte[] data)
+  public static org.tensorflow.proto.eager.RemoteTensorHandle parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static org.tensorflow.proto.framework.RemoteTensorHandle parseFrom(
+  public static org.tensorflow.proto.eager.RemoteTensorHandle parseFrom(
       byte[] data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static org.tensorflow.proto.framework.RemoteTensorHandle parseFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.eager.RemoteTensorHandle parseFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.RemoteTensorHandle parseFrom(
+  public static org.tensorflow.proto.eager.RemoteTensorHandle 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 org.tensorflow.proto.framework.RemoteTensorHandle parseDelimitedFrom(java.io.InputStream input)
+  public static org.tensorflow.proto.eager.RemoteTensorHandle parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.RemoteTensorHandle parseDelimitedFrom(
+  public static org.tensorflow.proto.eager.RemoteTensorHandle 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 org.tensorflow.proto.framework.RemoteTensorHandle parseFrom(
+  public static org.tensorflow.proto.eager.RemoteTensorHandle parseFrom(
       com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input);
   }
-  public static org.tensorflow.proto.framework.RemoteTensorHandle parseFrom(
+  public static org.tensorflow.proto.eager.RemoteTensorHandle parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
@@ -514,7 +455,7 @@ public static org.tensorflow.proto.framework.RemoteTensorHandle parseFrom(
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(org.tensorflow.proto.framework.RemoteTensorHandle prototype) {
+  public static Builder newBuilder(org.tensorflow.proto.eager.RemoteTensorHandle prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
   @java.lang.Override
@@ -535,35 +476,29 @@ protected Builder newBuilderForType(
   public static final class Builder extends
       com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:tensorflow.eager.RemoteTensorHandle)
-      org.tensorflow.proto.framework.RemoteTensorHandleOrBuilder {
+      org.tensorflow.proto.eager.RemoteTensorHandleOrBuilder {
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
-      return org.tensorflow.proto.framework.RemoteTensorHandleProtos.internal_static_tensorflow_eager_RemoteTensorHandle_descriptor;
+      return org.tensorflow.proto.eager.RemoteTensorHandleProtos.internal_static_tensorflow_eager_RemoteTensorHandle_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return org.tensorflow.proto.framework.RemoteTensorHandleProtos.internal_static_tensorflow_eager_RemoteTensorHandle_fieldAccessorTable
+      return org.tensorflow.proto.eager.RemoteTensorHandleProtos.internal_static_tensorflow_eager_RemoteTensorHandle_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              org.tensorflow.proto.framework.RemoteTensorHandle.class, org.tensorflow.proto.framework.RemoteTensorHandle.Builder.class);
+              org.tensorflow.proto.eager.RemoteTensorHandle.class, org.tensorflow.proto.eager.RemoteTensorHandle.Builder.class);
     }
 
-    // Construct using org.tensorflow.proto.framework.RemoteTensorHandle.newBuilder()
+    // Construct using org.tensorflow.proto.eager.RemoteTensorHandle.newBuilder()
     private Builder() {
-      maybeForceBuilderInitialization();
+
     }
 
     private Builder(
         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-      maybeForceBuilderInitialization();
-    }
-    private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-        getResourceDtypesAndShapesFieldBuilder();
-      }
+
     }
     @java.lang.Override
     public Builder clear() {
@@ -580,27 +515,28 @@ public Builder clear() {
 
       if (resourceDtypesAndShapesBuilder_ == null) {
         resourceDtypesAndShapes_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000001);
       } else {
+        resourceDtypesAndShapes_ = null;
         resourceDtypesAndShapesBuilder_.clear();
       }
+      bitField0_ = (bitField0_ & ~0x00000001);
       return this;
     }
 
     @java.lang.Override
     public com.google.protobuf.Descriptors.Descriptor
         getDescriptorForType() {
-      return org.tensorflow.proto.framework.RemoteTensorHandleProtos.internal_static_tensorflow_eager_RemoteTensorHandle_descriptor;
+      return org.tensorflow.proto.eager.RemoteTensorHandleProtos.internal_static_tensorflow_eager_RemoteTensorHandle_descriptor;
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.RemoteTensorHandle getDefaultInstanceForType() {
-      return org.tensorflow.proto.framework.RemoteTensorHandle.getDefaultInstance();
+    public org.tensorflow.proto.eager.RemoteTensorHandle getDefaultInstanceForType() {
+      return org.tensorflow.proto.eager.RemoteTensorHandle.getDefaultInstance();
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.RemoteTensorHandle build() {
-      org.tensorflow.proto.framework.RemoteTensorHandle result = buildPartial();
+    public org.tensorflow.proto.eager.RemoteTensorHandle build() {
+      org.tensorflow.proto.eager.RemoteTensorHandle result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -608,8 +544,8 @@ public org.tensorflow.proto.framework.RemoteTensorHandle build() {
     }
 
     @java.lang.Override
-    public org.tensorflow.proto.framework.RemoteTensorHandle buildPartial() {
-      org.tensorflow.proto.framework.RemoteTensorHandle result = new org.tensorflow.proto.framework.RemoteTensorHandle(this);
+    public org.tensorflow.proto.eager.RemoteTensorHandle buildPartial() {
+      org.tensorflow.proto.eager.RemoteTensorHandle result = new org.tensorflow.proto.eager.RemoteTensorHandle(this);
       int from_bitField0_ = bitField0_;
       result.opId_ = opId_;
       result.outputNum_ = outputNum_;
@@ -663,16 +599,16 @@ public Builder addRepeatedField(
     }
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
-      if (other instanceof org.tensorflow.proto.framework.RemoteTensorHandle) {
-        return mergeFrom((org.tensorflow.proto.framework.RemoteTensorHandle)other);
+      if (other instanceof org.tensorflow.proto.eager.RemoteTensorHandle) {
+        return mergeFrom((org.tensorflow.proto.eager.RemoteTensorHandle)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(org.tensorflow.proto.framework.RemoteTensorHandle other) {
-      if (other == org.tensorflow.proto.framework.RemoteTensorHandle.getDefaultInstance()) return this;
+    public Builder mergeFrom(org.tensorflow.proto.eager.RemoteTensorHandle other) {
+      if (other == org.tensorflow.proto.eager.RemoteTensorHandle.getDefaultInstance()) return this;
       if (other.getOpId() != 0L) {
         setOpId(other.getOpId());
       }
@@ -716,7 +652,7 @@ public Builder mergeFrom(org.tensorflow.proto.framework.RemoteTensorHandle other
           }
         }
       }
-      this.mergeUnknownFields(other.unknownFields);
+      this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
     }
@@ -731,17 +667,68 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      org.tensorflow.proto.framework.RemoteTensorHandle parsedMessage = null;
+      if (extensionRegistry == null) {
+        throw new java.lang.NullPointerException();
+      }
       try {
-        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+        boolean done = false;
+        while (!done) {
+          int tag = input.readTag();
+          switch (tag) {
+            case 0:
+              done = true;
+              break;
+            case 8: {
+              opId_ = input.readInt64();
+
+              break;
+            } // case 8
+            case 16: {
+              outputNum_ = input.readInt32();
+
+              break;
+            } // case 16
+            case 26: {
+              device_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 26
+            case 34: {
+              opDevice_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 34
+            case 40: {
+              dtype_ = input.readEnum();
+
+              break;
+            } // case 40
+            case 50: {
+              org.tensorflow.proto.eager.ResourceDtypeAndShape m =
+                  input.readMessage(
+                      org.tensorflow.proto.eager.ResourceDtypeAndShape.parser(),
+                      extensionRegistry);
+              if (resourceDtypesAndShapesBuilder_ == null) {
+                ensureResourceDtypesAndShapesIsMutable();
+                resourceDtypesAndShapes_.add(m);
+              } else {
+                resourceDtypesAndShapesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 50
+            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) {
-        parsedMessage = (org.tensorflow.proto.framework.RemoteTensorHandle) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
-        if (parsedMessage != null) {
-          mergeFrom(parsedMessage);
-        }
-      }
+        onChanged();
+      } // finally
       return this;
     }
     private int bitField0_;
@@ -753,7 +740,9 @@ public Builder mergeFrom(
      * 
* * int64 op_id = 1; + * @return The opId. */ + @java.lang.Override public long getOpId() { return opId_; } @@ -763,6 +752,8 @@ public long getOpId() { * * * int64 op_id = 1; + * @param value The opId to set. + * @return This builder for chaining. */ public Builder setOpId(long value) { @@ -776,6 +767,7 @@ public Builder setOpId(long value) { * * * int64 op_id = 1; + * @return This builder for chaining. */ public Builder clearOpId() { @@ -791,7 +783,9 @@ public Builder clearOpId() { * * * int32 output_num = 2; + * @return The outputNum. */ + @java.lang.Override public int getOutputNum() { return outputNum_; } @@ -801,6 +795,8 @@ public int getOutputNum() { * * * int32 output_num = 2; + * @param value The outputNum to set. + * @return This builder for chaining. */ public Builder setOutputNum(int value) { @@ -814,6 +810,7 @@ public Builder setOutputNum(int value) { * * * int32 output_num = 2; + * @return This builder for chaining. */ public Builder clearOutputNum() { @@ -830,6 +827,7 @@ public Builder clearOutputNum() { * * * string device = 3; + * @return The device. */ public java.lang.String getDevice() { java.lang.Object ref = device_; @@ -850,6 +848,7 @@ public java.lang.String getDevice() { * * * string device = 3; + * @return The bytes for device. */ public com.google.protobuf.ByteString getDeviceBytes() { @@ -871,6 +870,8 @@ public java.lang.String getDevice() { * * * string device = 3; + * @param value The device to set. + * @return This builder for chaining. */ public Builder setDevice( java.lang.String value) { @@ -889,6 +890,7 @@ public Builder setDevice( * * * string device = 3; + * @return This builder for chaining. */ public Builder clearDevice() { @@ -903,6 +905,8 @@ public Builder clearDevice() { * * * string device = 3; + * @param value The bytes for device to set. + * @return This builder for chaining. */ public Builder setDeviceBytes( com.google.protobuf.ByteString value) { @@ -924,6 +928,7 @@ public Builder setDeviceBytes( * * * string op_device = 4; + * @return The opDevice. */ public java.lang.String getOpDevice() { java.lang.Object ref = opDevice_; @@ -944,6 +949,7 @@ public java.lang.String getOpDevice() { * * * string op_device = 4; + * @return The bytes for opDevice. */ public com.google.protobuf.ByteString getOpDeviceBytes() { @@ -965,6 +971,8 @@ public java.lang.String getOpDevice() { * * * string op_device = 4; + * @param value The opDevice to set. + * @return This builder for chaining. */ public Builder setOpDevice( java.lang.String value) { @@ -983,6 +991,7 @@ public Builder setOpDevice( * * * string op_device = 4; + * @return This builder for chaining. */ public Builder clearOpDevice() { @@ -997,6 +1006,8 @@ public Builder clearOpDevice() { * * * string op_device = 4; + * @param value The bytes for opDevice to set. + * @return This builder for chaining. */ public Builder setOpDeviceBytes( com.google.protobuf.ByteString value) { @@ -1017,8 +1028,9 @@ public Builder setOpDeviceBytes( * * * .tensorflow.DataType dtype = 5; + * @return The enum numeric value on the wire for dtype. */ - public int getDtypeValue() { + @java.lang.Override public int getDtypeValue() { return dtype_; } /** @@ -1027,8 +1039,11 @@ public int getDtypeValue() { * * * .tensorflow.DataType dtype = 5; + * @param value The enum numeric value on the wire for dtype to set. + * @return This builder for chaining. */ public Builder setDtypeValue(int value) { + dtype_ = value; onChanged(); return this; @@ -1039,11 +1054,13 @@ public Builder setDtypeValue(int value) { * * * .tensorflow.DataType dtype = 5; + * @return The dtype. */ - public org.tensorflow.proto.framework.DataType getDtype() { + @java.lang.Override + public org.tensorflow.proto.DataType getDtype() { @SuppressWarnings("deprecation") - org.tensorflow.proto.framework.DataType result = org.tensorflow.proto.framework.DataType.valueOf(dtype_); - return result == null ? org.tensorflow.proto.framework.DataType.UNRECOGNIZED : result; + org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_); + return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result; } /** *
@@ -1051,8 +1068,10 @@ public org.tensorflow.proto.framework.DataType getDtype() {
      * 
* * .tensorflow.DataType dtype = 5; + * @param value The dtype to set. + * @return This builder for chaining. */ - public Builder setDtype(org.tensorflow.proto.framework.DataType value) { + public Builder setDtype(org.tensorflow.proto.DataType value) { if (value == null) { throw new NullPointerException(); } @@ -1067,6 +1086,7 @@ public Builder setDtype(org.tensorflow.proto.framework.DataType value) { * * * .tensorflow.DataType dtype = 5; + * @return This builder for chaining. */ public Builder clearDtype() { @@ -1075,17 +1095,17 @@ public Builder clearDtype() { return this; } - private java.util.List resourceDtypesAndShapes_ = + private java.util.List resourceDtypesAndShapes_ = java.util.Collections.emptyList(); private void ensureResourceDtypesAndShapesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - resourceDtypesAndShapes_ = new java.util.ArrayList(resourceDtypesAndShapes_); + resourceDtypesAndShapes_ = new java.util.ArrayList(resourceDtypesAndShapes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< - org.tensorflow.proto.framework.ResourceDtypeAndShape, org.tensorflow.proto.framework.ResourceDtypeAndShape.Builder, org.tensorflow.proto.framework.ResourceDtypeAndShapeOrBuilder> resourceDtypesAndShapesBuilder_; + org.tensorflow.proto.eager.ResourceDtypeAndShape, org.tensorflow.proto.eager.ResourceDtypeAndShape.Builder, org.tensorflow.proto.eager.ResourceDtypeAndShapeOrBuilder> resourceDtypesAndShapesBuilder_; /** *
@@ -1094,7 +1114,7 @@ private void ensureResourceDtypesAndShapesIsMutable() {
      *
      * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
      */
-    public java.util.List getResourceDtypesAndShapesList() {
+    public java.util.List getResourceDtypesAndShapesList() {
       if (resourceDtypesAndShapesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(resourceDtypesAndShapes_);
       } else {
@@ -1122,7 +1142,7 @@ public int getResourceDtypesAndShapesCount() {
      *
      * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
      */
-    public org.tensorflow.proto.framework.ResourceDtypeAndShape getResourceDtypesAndShapes(int index) {
+    public org.tensorflow.proto.eager.ResourceDtypeAndShape getResourceDtypesAndShapes(int index) {
       if (resourceDtypesAndShapesBuilder_ == null) {
         return resourceDtypesAndShapes_.get(index);
       } else {
@@ -1137,7 +1157,7 @@ public org.tensorflow.proto.framework.ResourceDtypeAndShape getResourceDtypesAnd
      * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
      */
     public Builder setResourceDtypesAndShapes(
-        int index, org.tensorflow.proto.framework.ResourceDtypeAndShape value) {
+        int index, org.tensorflow.proto.eager.ResourceDtypeAndShape value) {
       if (resourceDtypesAndShapesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1158,7 +1178,7 @@ public Builder setResourceDtypesAndShapes(
      * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
      */
     public Builder setResourceDtypesAndShapes(
-        int index, org.tensorflow.proto.framework.ResourceDtypeAndShape.Builder builderForValue) {
+        int index, org.tensorflow.proto.eager.ResourceDtypeAndShape.Builder builderForValue) {
       if (resourceDtypesAndShapesBuilder_ == null) {
         ensureResourceDtypesAndShapesIsMutable();
         resourceDtypesAndShapes_.set(index, builderForValue.build());
@@ -1175,7 +1195,7 @@ public Builder setResourceDtypesAndShapes(
      *
      * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
      */
-    public Builder addResourceDtypesAndShapes(org.tensorflow.proto.framework.ResourceDtypeAndShape value) {
+    public Builder addResourceDtypesAndShapes(org.tensorflow.proto.eager.ResourceDtypeAndShape value) {
       if (resourceDtypesAndShapesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1196,7 +1216,7 @@ public Builder addResourceDtypesAndShapes(org.tensorflow.proto.framework.Resourc
      * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
      */
     public Builder addResourceDtypesAndShapes(
-        int index, org.tensorflow.proto.framework.ResourceDtypeAndShape value) {
+        int index, org.tensorflow.proto.eager.ResourceDtypeAndShape value) {
       if (resourceDtypesAndShapesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1217,7 +1237,7 @@ public Builder addResourceDtypesAndShapes(
      * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
      */
     public Builder addResourceDtypesAndShapes(
-        org.tensorflow.proto.framework.ResourceDtypeAndShape.Builder builderForValue) {
+        org.tensorflow.proto.eager.ResourceDtypeAndShape.Builder builderForValue) {
       if (resourceDtypesAndShapesBuilder_ == null) {
         ensureResourceDtypesAndShapesIsMutable();
         resourceDtypesAndShapes_.add(builderForValue.build());
@@ -1235,7 +1255,7 @@ public Builder addResourceDtypesAndShapes(
      * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
      */
     public Builder addResourceDtypesAndShapes(
-        int index, org.tensorflow.proto.framework.ResourceDtypeAndShape.Builder builderForValue) {
+        int index, org.tensorflow.proto.eager.ResourceDtypeAndShape.Builder builderForValue) {
       if (resourceDtypesAndShapesBuilder_ == null) {
         ensureResourceDtypesAndShapesIsMutable();
         resourceDtypesAndShapes_.add(index, builderForValue.build());
@@ -1253,7 +1273,7 @@ public Builder addResourceDtypesAndShapes(
      * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
      */
     public Builder addAllResourceDtypesAndShapes(
-        java.lang.Iterable values) {
+        java.lang.Iterable values) {
       if (resourceDtypesAndShapesBuilder_ == null) {
         ensureResourceDtypesAndShapesIsMutable();
         com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -1305,7 +1325,7 @@ public Builder removeResourceDtypesAndShapes(int index) {
      *
      * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
      */
-    public org.tensorflow.proto.framework.ResourceDtypeAndShape.Builder getResourceDtypesAndShapesBuilder(
+    public org.tensorflow.proto.eager.ResourceDtypeAndShape.Builder getResourceDtypesAndShapesBuilder(
         int index) {
       return getResourceDtypesAndShapesFieldBuilder().getBuilder(index);
     }
@@ -1316,7 +1336,7 @@ public org.tensorflow.proto.framework.ResourceDtypeAndShape.Builder getResourceD
      *
      * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
      */
-    public org.tensorflow.proto.framework.ResourceDtypeAndShapeOrBuilder getResourceDtypesAndShapesOrBuilder(
+    public org.tensorflow.proto.eager.ResourceDtypeAndShapeOrBuilder getResourceDtypesAndShapesOrBuilder(
         int index) {
       if (resourceDtypesAndShapesBuilder_ == null) {
         return resourceDtypesAndShapes_.get(index);  } else {
@@ -1330,7 +1350,7 @@ public org.tensorflow.proto.framework.ResourceDtypeAndShapeOrBuilder getResource
      *
      * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
      */
-    public java.util.List 
+    public java.util.List 
          getResourceDtypesAndShapesOrBuilderList() {
       if (resourceDtypesAndShapesBuilder_ != null) {
         return resourceDtypesAndShapesBuilder_.getMessageOrBuilderList();
@@ -1345,9 +1365,9 @@ public org.tensorflow.proto.framework.ResourceDtypeAndShapeOrBuilder getResource
      *
      * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
      */
-    public org.tensorflow.proto.framework.ResourceDtypeAndShape.Builder addResourceDtypesAndShapesBuilder() {
+    public org.tensorflow.proto.eager.ResourceDtypeAndShape.Builder addResourceDtypesAndShapesBuilder() {
       return getResourceDtypesAndShapesFieldBuilder().addBuilder(
-          org.tensorflow.proto.framework.ResourceDtypeAndShape.getDefaultInstance());
+          org.tensorflow.proto.eager.ResourceDtypeAndShape.getDefaultInstance());
     }
     /**
      * 
@@ -1356,10 +1376,10 @@ public org.tensorflow.proto.framework.ResourceDtypeAndShape.Builder addResourceD
      *
      * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
      */
-    public org.tensorflow.proto.framework.ResourceDtypeAndShape.Builder addResourceDtypesAndShapesBuilder(
+    public org.tensorflow.proto.eager.ResourceDtypeAndShape.Builder addResourceDtypesAndShapesBuilder(
         int index) {
       return getResourceDtypesAndShapesFieldBuilder().addBuilder(
-          index, org.tensorflow.proto.framework.ResourceDtypeAndShape.getDefaultInstance());
+          index, org.tensorflow.proto.eager.ResourceDtypeAndShape.getDefaultInstance());
     }
     /**
      * 
@@ -1368,16 +1388,16 @@ public org.tensorflow.proto.framework.ResourceDtypeAndShape.Builder addResourceD
      *
      * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
      */
-    public java.util.List 
+    public java.util.List 
          getResourceDtypesAndShapesBuilderList() {
       return getResourceDtypesAndShapesFieldBuilder().getBuilderList();
     }
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        org.tensorflow.proto.framework.ResourceDtypeAndShape, org.tensorflow.proto.framework.ResourceDtypeAndShape.Builder, org.tensorflow.proto.framework.ResourceDtypeAndShapeOrBuilder> 
+        org.tensorflow.proto.eager.ResourceDtypeAndShape, org.tensorflow.proto.eager.ResourceDtypeAndShape.Builder, org.tensorflow.proto.eager.ResourceDtypeAndShapeOrBuilder> 
         getResourceDtypesAndShapesFieldBuilder() {
       if (resourceDtypesAndShapesBuilder_ == null) {
         resourceDtypesAndShapesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            org.tensorflow.proto.framework.ResourceDtypeAndShape, org.tensorflow.proto.framework.ResourceDtypeAndShape.Builder, org.tensorflow.proto.framework.ResourceDtypeAndShapeOrBuilder>(
+            org.tensorflow.proto.eager.ResourceDtypeAndShape, org.tensorflow.proto.eager.ResourceDtypeAndShape.Builder, org.tensorflow.proto.eager.ResourceDtypeAndShapeOrBuilder>(
                 resourceDtypesAndShapes_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1403,12 +1423,12 @@ public final Builder mergeUnknownFields(
   }
 
   // @@protoc_insertion_point(class_scope:tensorflow.eager.RemoteTensorHandle)
-  private static final org.tensorflow.proto.framework.RemoteTensorHandle DEFAULT_INSTANCE;
+  private static final org.tensorflow.proto.eager.RemoteTensorHandle DEFAULT_INSTANCE;
   static {
-    DEFAULT_INSTANCE = new org.tensorflow.proto.framework.RemoteTensorHandle();
+    DEFAULT_INSTANCE = new org.tensorflow.proto.eager.RemoteTensorHandle();
   }
 
-  public static org.tensorflow.proto.framework.RemoteTensorHandle getDefaultInstance() {
+  public static org.tensorflow.proto.eager.RemoteTensorHandle getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
@@ -1419,7 +1439,18 @@ public RemoteTensorHandle parsePartialFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
-      return new RemoteTensorHandle(input, extensionRegistry);
+      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();
     }
   };
 
@@ -1433,7 +1464,7 @@ public com.google.protobuf.Parser getParserForType() {
   }
 
   @java.lang.Override
-  public org.tensorflow.proto.framework.RemoteTensorHandle getDefaultInstanceForType() {
+  public org.tensorflow.proto.eager.RemoteTensorHandle getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
 
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RemoteTensorHandleOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/eager/RemoteTensorHandleOrBuilder.java
similarity index 81%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RemoteTensorHandleOrBuilder.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/eager/RemoteTensorHandleOrBuilder.java
index e9f1098f494..4727a45247b 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RemoteTensorHandleOrBuilder.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/eager/RemoteTensorHandleOrBuilder.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/protobuf/remote_tensor_handle.proto
 
-package org.tensorflow.proto.framework;
+package org.tensorflow.proto.eager;
 
 public interface RemoteTensorHandleOrBuilder extends
     // @@protoc_insertion_point(interface_extends:tensorflow.eager.RemoteTensorHandle)
@@ -13,6 +13,7 @@ public interface RemoteTensorHandleOrBuilder extends
    * 
* * int64 op_id = 1; + * @return The opId. */ long getOpId(); @@ -22,6 +23,7 @@ public interface RemoteTensorHandleOrBuilder extends *
* * int32 output_num = 2; + * @return The outputNum. */ int getOutputNum(); @@ -32,6 +34,7 @@ public interface RemoteTensorHandleOrBuilder extends *
* * string device = 3; + * @return The device. */ java.lang.String getDevice(); /** @@ -41,6 +44,7 @@ public interface RemoteTensorHandleOrBuilder extends * * * string device = 3; + * @return The bytes for device. */ com.google.protobuf.ByteString getDeviceBytes(); @@ -52,6 +56,7 @@ public interface RemoteTensorHandleOrBuilder extends * * * string op_device = 4; + * @return The opDevice. */ java.lang.String getOpDevice(); /** @@ -61,6 +66,7 @@ public interface RemoteTensorHandleOrBuilder extends * * * string op_device = 4; + * @return The bytes for opDevice. */ com.google.protobuf.ByteString getOpDeviceBytes(); @@ -71,6 +77,7 @@ public interface RemoteTensorHandleOrBuilder extends * * * .tensorflow.DataType dtype = 5; + * @return The enum numeric value on the wire for dtype. */ int getDtypeValue(); /** @@ -79,8 +86,9 @@ public interface RemoteTensorHandleOrBuilder extends * * * .tensorflow.DataType dtype = 5; + * @return The dtype. */ - org.tensorflow.proto.framework.DataType getDtype(); + org.tensorflow.proto.DataType getDtype(); /** *
@@ -89,7 +97,7 @@ public interface RemoteTensorHandleOrBuilder extends
    *
    * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
    */
-  java.util.List 
+  java.util.List 
       getResourceDtypesAndShapesList();
   /**
    * 
@@ -98,7 +106,7 @@ public interface RemoteTensorHandleOrBuilder extends
    *
    * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
    */
-  org.tensorflow.proto.framework.ResourceDtypeAndShape getResourceDtypesAndShapes(int index);
+  org.tensorflow.proto.eager.ResourceDtypeAndShape getResourceDtypesAndShapes(int index);
   /**
    * 
    * Optional data types and shapes of a remote resource variable.
@@ -114,7 +122,7 @@ public interface RemoteTensorHandleOrBuilder extends
    *
    * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
    */
-  java.util.List 
+  java.util.List 
       getResourceDtypesAndShapesOrBuilderList();
   /**
    * 
@@ -123,6 +131,6 @@ public interface RemoteTensorHandleOrBuilder extends
    *
    * repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;
    */
-  org.tensorflow.proto.framework.ResourceDtypeAndShapeOrBuilder getResourceDtypesAndShapesOrBuilder(
+  org.tensorflow.proto.eager.ResourceDtypeAndShapeOrBuilder getResourceDtypesAndShapesOrBuilder(
       int index);
 }
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RemoteTensorHandleProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/eager/RemoteTensorHandleProtos.java
similarity index 84%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RemoteTensorHandleProtos.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/eager/RemoteTensorHandleProtos.java
index 71335e14bde..fc295ca1179 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/RemoteTensorHandleProtos.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/eager/RemoteTensorHandleProtos.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: tensorflow/core/protobuf/remote_tensor_handle.proto
 
-package org.tensorflow.proto.framework;
+package org.tensorflow.proto.eager;
 
 public final class RemoteTensorHandleProtos {
   private RemoteTensorHandleProtos() {}
@@ -44,17 +44,17 @@ public static void registerAllExtensions(
       "\005\022\016\n\006device\030\003 \001(\t\022\021\n\top_device\030\004 \001(\t\022#\n\005" +
       "dtype\030\005 \001(\0162\024.tensorflow.DataType\022K\n\032res" +
       "ource_dtypes_and_shapes\030\006 \003(\0132\'.tensorfl" +
-      "ow.eager.ResourceDtypeAndShapeB\226\001\n\036org.t" +
-      "ensorflow.proto.frameworkB\030RemoteTensorH" +
-      "andleProtosP\001ZUgithub.com/tensorflow/ten" +
-      "sorflow/tensorflow/go/core/protobuf/for_" +
-      "core_protos_go_proto\370\001\001b\006proto3"
+      "ow.eager.ResourceDtypeAndShapeB\222\001\n\032org.t" +
+      "ensorflow.proto.eagerB\030RemoteTensorHandl" +
+      "eProtosP\001ZUgithub.com/tensorflow/tensorf" +
+      "low/tensorflow/go/core/protobuf/for_core" +
+      "_protos_go_proto\370\001\001b\006proto3"
     };
     descriptor = com.google.protobuf.Descriptors.FileDescriptor
       .internalBuildGeneratedFileFrom(descriptorData,
         new com.google.protobuf.Descriptors.FileDescriptor[] {
-          org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor(),
-          org.tensorflow.proto.framework.TypesProtos.getDescriptor(),
+          org.tensorflow.proto.TensorShapeProtos.getDescriptor(),
+          org.tensorflow.proto.TypesProtos.getDescriptor(),
         });
     internal_static_tensorflow_eager_ResourceDtypeAndShape_descriptor =
       getDescriptor().getMessageTypes().get(0);
@@ -68,8 +68,8 @@ public static void registerAllExtensions(
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_tensorflow_eager_RemoteTensorHandle_descriptor,
         new java.lang.String[] { "OpId", "OutputNum", "Device", "OpDevice", "Dtype", "ResourceDtypesAndShapes", });
-    org.tensorflow.proto.framework.TensorShapeProtos.getDescriptor();
-    org.tensorflow.proto.framework.TypesProtos.getDescriptor();
+    org.tensorflow.proto.TensorShapeProtos.getDescriptor();
+    org.tensorflow.proto.TypesProtos.getDescriptor();
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/eager/ResourceDtypeAndShape.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/eager/ResourceDtypeAndShape.java
new file mode 100644
index 00000000000..34bcff52797
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/eager/ResourceDtypeAndShape.java
@@ -0,0 +1,678 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/protobuf/remote_tensor_handle.proto
+
+package org.tensorflow.proto.eager;
+
+/**
+ * Protobuf type {@code tensorflow.eager.ResourceDtypeAndShape}
+ */
+public final class ResourceDtypeAndShape extends
+    com.google.protobuf.GeneratedMessageV3 implements
+    // @@protoc_insertion_point(message_implements:tensorflow.eager.ResourceDtypeAndShape)
+    ResourceDtypeAndShapeOrBuilder {
+private static final long serialVersionUID = 0L;
+  // Use ResourceDtypeAndShape.newBuilder() to construct.
+  private ResourceDtypeAndShape(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    super(builder);
+  }
+  private ResourceDtypeAndShape() {
+    dtype_ = 0;
+  }
+
+  @java.lang.Override
+  @SuppressWarnings({"unused"})
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
+    return new ResourceDtypeAndShape();
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
+    return this.unknownFields;
+  }
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return org.tensorflow.proto.eager.RemoteTensorHandleProtos.internal_static_tensorflow_eager_ResourceDtypeAndShape_descriptor;
+  }
+
+  @java.lang.Override
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internalGetFieldAccessorTable() {
+    return org.tensorflow.proto.eager.RemoteTensorHandleProtos.internal_static_tensorflow_eager_ResourceDtypeAndShape_fieldAccessorTable
+        .ensureFieldAccessorsInitialized(
+            org.tensorflow.proto.eager.ResourceDtypeAndShape.class, org.tensorflow.proto.eager.ResourceDtypeAndShape.Builder.class);
+  }
+
+  public static final int DTYPE_FIELD_NUMBER = 1;
+  private int dtype_;
+  /**
+   * .tensorflow.DataType dtype = 1;
+   * @return The enum numeric value on the wire for dtype.
+   */
+  @java.lang.Override public int getDtypeValue() {
+    return dtype_;
+  }
+  /**
+   * .tensorflow.DataType dtype = 1;
+   * @return The dtype.
+   */
+  @java.lang.Override public org.tensorflow.proto.DataType getDtype() {
+    @SuppressWarnings("deprecation")
+    org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_);
+    return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result;
+  }
+
+  public static final int SHAPE_FIELD_NUMBER = 2;
+  private org.tensorflow.proto.TensorShapeProto shape_;
+  /**
+   * .tensorflow.TensorShapeProto shape = 2;
+   * @return Whether the shape field is set.
+   */
+  @java.lang.Override
+  public boolean hasShape() {
+    return shape_ != null;
+  }
+  /**
+   * .tensorflow.TensorShapeProto shape = 2;
+   * @return The shape.
+   */
+  @java.lang.Override
+  public org.tensorflow.proto.TensorShapeProto getShape() {
+    return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_;
+  }
+  /**
+   * .tensorflow.TensorShapeProto shape = 2;
+   */
+  @java.lang.Override
+  public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() {
+    return getShape();
+  }
+
+  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 (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) {
+      output.writeEnum(1, dtype_);
+    }
+    if (shape_ != null) {
+      output.writeMessage(2, getShape());
+    }
+    getUnknownFields().writeTo(output);
+  }
+
+  @java.lang.Override
+  public int getSerializedSize() {
+    int size = memoizedSize;
+    if (size != -1) return size;
+
+    size = 0;
+    if (dtype_ != org.tensorflow.proto.DataType.DT_INVALID.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(1, dtype_);
+    }
+    if (shape_ != null) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getShape());
+    }
+    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 org.tensorflow.proto.eager.ResourceDtypeAndShape)) {
+      return super.equals(obj);
+    }
+    org.tensorflow.proto.eager.ResourceDtypeAndShape other = (org.tensorflow.proto.eager.ResourceDtypeAndShape) obj;
+
+    if (dtype_ != other.dtype_) return false;
+    if (hasShape() != other.hasShape()) return false;
+    if (hasShape()) {
+      if (!getShape()
+          .equals(other.getShape())) 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) + DTYPE_FIELD_NUMBER;
+    hash = (53 * hash) + dtype_;
+    if (hasShape()) {
+      hash = (37 * hash) + SHAPE_FIELD_NUMBER;
+      hash = (53 * hash) + getShape().hashCode();
+    }
+    hash = (29 * hash) + getUnknownFields().hashCode();
+    memoizedHashCode = hash;
+    return hash;
+  }
+
+  public static org.tensorflow.proto.eager.ResourceDtypeAndShape parseFrom(
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.eager.ResourceDtypeAndShape parseFrom(
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.eager.ResourceDtypeAndShape parseFrom(
+      com.google.protobuf.ByteString data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.eager.ResourceDtypeAndShape parseFrom(
+      com.google.protobuf.ByteString data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.eager.ResourceDtypeAndShape parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static org.tensorflow.proto.eager.ResourceDtypeAndShape parseFrom(
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static org.tensorflow.proto.eager.ResourceDtypeAndShape parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.eager.ResourceDtypeAndShape 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 org.tensorflow.proto.eager.ResourceDtypeAndShape parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.eager.ResourceDtypeAndShape 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 org.tensorflow.proto.eager.ResourceDtypeAndShape parseFrom(
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static org.tensorflow.proto.eager.ResourceDtypeAndShape 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(org.tensorflow.proto.eager.ResourceDtypeAndShape prototype) {
+    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+  }
+  @java.lang.Override
+  public Builder toBuilder() {
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
+  }
+
+  @java.lang.Override
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    Builder builder = new Builder(parent);
+    return builder;
+  }
+  /**
+   * Protobuf type {@code tensorflow.eager.ResourceDtypeAndShape}
+   */
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
+      // @@protoc_insertion_point(builder_implements:tensorflow.eager.ResourceDtypeAndShape)
+      org.tensorflow.proto.eager.ResourceDtypeAndShapeOrBuilder {
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return org.tensorflow.proto.eager.RemoteTensorHandleProtos.internal_static_tensorflow_eager_ResourceDtypeAndShape_descriptor;
+    }
+
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+        internalGetFieldAccessorTable() {
+      return org.tensorflow.proto.eager.RemoteTensorHandleProtos.internal_static_tensorflow_eager_ResourceDtypeAndShape_fieldAccessorTable
+          .ensureFieldAccessorsInitialized(
+              org.tensorflow.proto.eager.ResourceDtypeAndShape.class, org.tensorflow.proto.eager.ResourceDtypeAndShape.Builder.class);
+    }
+
+    // Construct using org.tensorflow.proto.eager.ResourceDtypeAndShape.newBuilder()
+    private Builder() {
+
+    }
+
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
+    @java.lang.Override
+    public Builder clear() {
+      super.clear();
+      dtype_ = 0;
+
+      if (shapeBuilder_ == null) {
+        shape_ = null;
+      } else {
+        shape_ = null;
+        shapeBuilder_ = null;
+      }
+      return this;
+    }
+
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return org.tensorflow.proto.eager.RemoteTensorHandleProtos.internal_static_tensorflow_eager_ResourceDtypeAndShape_descriptor;
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.eager.ResourceDtypeAndShape getDefaultInstanceForType() {
+      return org.tensorflow.proto.eager.ResourceDtypeAndShape.getDefaultInstance();
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.eager.ResourceDtypeAndShape build() {
+      org.tensorflow.proto.eager.ResourceDtypeAndShape result = buildPartial();
+      if (!result.isInitialized()) {
+        throw newUninitializedMessageException(result);
+      }
+      return result;
+    }
+
+    @java.lang.Override
+    public org.tensorflow.proto.eager.ResourceDtypeAndShape buildPartial() {
+      org.tensorflow.proto.eager.ResourceDtypeAndShape result = new org.tensorflow.proto.eager.ResourceDtypeAndShape(this);
+      result.dtype_ = dtype_;
+      if (shapeBuilder_ == null) {
+        result.shape_ = shape_;
+      } else {
+        result.shape_ = shapeBuilder_.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 org.tensorflow.proto.eager.ResourceDtypeAndShape) {
+        return mergeFrom((org.tensorflow.proto.eager.ResourceDtypeAndShape)other);
+      } else {
+        super.mergeFrom(other);
+        return this;
+      }
+    }
+
+    public Builder mergeFrom(org.tensorflow.proto.eager.ResourceDtypeAndShape other) {
+      if (other == org.tensorflow.proto.eager.ResourceDtypeAndShape.getDefaultInstance()) return this;
+      if (other.dtype_ != 0) {
+        setDtypeValue(other.getDtypeValue());
+      }
+      if (other.hasShape()) {
+        mergeShape(other.getShape());
+      }
+      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: {
+              dtype_ = input.readEnum();
+
+              break;
+            } // case 8
+            case 18: {
+              input.readMessage(
+                  getShapeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              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 dtype_ = 0;
+    /**
+     * .tensorflow.DataType dtype = 1;
+     * @return The enum numeric value on the wire for dtype.
+     */
+    @java.lang.Override public int getDtypeValue() {
+      return dtype_;
+    }
+    /**
+     * .tensorflow.DataType dtype = 1;
+     * @param value The enum numeric value on the wire for dtype to set.
+     * @return This builder for chaining.
+     */
+    public Builder setDtypeValue(int value) {
+      
+      dtype_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * .tensorflow.DataType dtype = 1;
+     * @return The dtype.
+     */
+    @java.lang.Override
+    public org.tensorflow.proto.DataType getDtype() {
+      @SuppressWarnings("deprecation")
+      org.tensorflow.proto.DataType result = org.tensorflow.proto.DataType.valueOf(dtype_);
+      return result == null ? org.tensorflow.proto.DataType.UNRECOGNIZED : result;
+    }
+    /**
+     * .tensorflow.DataType dtype = 1;
+     * @param value The dtype to set.
+     * @return This builder for chaining.
+     */
+    public Builder setDtype(org.tensorflow.proto.DataType value) {
+      if (value == null) {
+        throw new NullPointerException();
+      }
+      
+      dtype_ = value.getNumber();
+      onChanged();
+      return this;
+    }
+    /**
+     * .tensorflow.DataType dtype = 1;
+     * @return This builder for chaining.
+     */
+    public Builder clearDtype() {
+      
+      dtype_ = 0;
+      onChanged();
+      return this;
+    }
+
+    private org.tensorflow.proto.TensorShapeProto shape_;
+    private com.google.protobuf.SingleFieldBuilderV3<
+        org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> shapeBuilder_;
+    /**
+     * .tensorflow.TensorShapeProto shape = 2;
+     * @return Whether the shape field is set.
+     */
+    public boolean hasShape() {
+      return shapeBuilder_ != null || shape_ != null;
+    }
+    /**
+     * .tensorflow.TensorShapeProto shape = 2;
+     * @return The shape.
+     */
+    public org.tensorflow.proto.TensorShapeProto getShape() {
+      if (shapeBuilder_ == null) {
+        return shape_ == null ? org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_;
+      } else {
+        return shapeBuilder_.getMessage();
+      }
+    }
+    /**
+     * .tensorflow.TensorShapeProto shape = 2;
+     */
+    public Builder setShape(org.tensorflow.proto.TensorShapeProto value) {
+      if (shapeBuilder_ == null) {
+        if (value == null) {
+          throw new NullPointerException();
+        }
+        shape_ = value;
+        onChanged();
+      } else {
+        shapeBuilder_.setMessage(value);
+      }
+
+      return this;
+    }
+    /**
+     * .tensorflow.TensorShapeProto shape = 2;
+     */
+    public Builder setShape(
+        org.tensorflow.proto.TensorShapeProto.Builder builderForValue) {
+      if (shapeBuilder_ == null) {
+        shape_ = builderForValue.build();
+        onChanged();
+      } else {
+        shapeBuilder_.setMessage(builderForValue.build());
+      }
+
+      return this;
+    }
+    /**
+     * .tensorflow.TensorShapeProto shape = 2;
+     */
+    public Builder mergeShape(org.tensorflow.proto.TensorShapeProto value) {
+      if (shapeBuilder_ == null) {
+        if (shape_ != null) {
+          shape_ =
+            org.tensorflow.proto.TensorShapeProto.newBuilder(shape_).mergeFrom(value).buildPartial();
+        } else {
+          shape_ = value;
+        }
+        onChanged();
+      } else {
+        shapeBuilder_.mergeFrom(value);
+      }
+
+      return this;
+    }
+    /**
+     * .tensorflow.TensorShapeProto shape = 2;
+     */
+    public Builder clearShape() {
+      if (shapeBuilder_ == null) {
+        shape_ = null;
+        onChanged();
+      } else {
+        shape_ = null;
+        shapeBuilder_ = null;
+      }
+
+      return this;
+    }
+    /**
+     * .tensorflow.TensorShapeProto shape = 2;
+     */
+    public org.tensorflow.proto.TensorShapeProto.Builder getShapeBuilder() {
+      
+      onChanged();
+      return getShapeFieldBuilder().getBuilder();
+    }
+    /**
+     * .tensorflow.TensorShapeProto shape = 2;
+     */
+    public org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder() {
+      if (shapeBuilder_ != null) {
+        return shapeBuilder_.getMessageOrBuilder();
+      } else {
+        return shape_ == null ?
+            org.tensorflow.proto.TensorShapeProto.getDefaultInstance() : shape_;
+      }
+    }
+    /**
+     * .tensorflow.TensorShapeProto shape = 2;
+     */
+    private com.google.protobuf.SingleFieldBuilderV3<
+        org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder> 
+        getShapeFieldBuilder() {
+      if (shapeBuilder_ == null) {
+        shapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            org.tensorflow.proto.TensorShapeProto, org.tensorflow.proto.TensorShapeProto.Builder, org.tensorflow.proto.TensorShapeProtoOrBuilder>(
+                getShape(),
+                getParentForChildren(),
+                isClean());
+        shape_ = null;
+      }
+      return shapeBuilder_;
+    }
+    @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:tensorflow.eager.ResourceDtypeAndShape)
+  }
+
+  // @@protoc_insertion_point(class_scope:tensorflow.eager.ResourceDtypeAndShape)
+  private static final org.tensorflow.proto.eager.ResourceDtypeAndShape DEFAULT_INSTANCE;
+  static {
+    DEFAULT_INSTANCE = new org.tensorflow.proto.eager.ResourceDtypeAndShape();
+  }
+
+  public static org.tensorflow.proto.eager.ResourceDtypeAndShape getDefaultInstance() {
+    return DEFAULT_INSTANCE;
+  }
+
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ResourceDtypeAndShape 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 org.tensorflow.proto.eager.ResourceDtypeAndShape getDefaultInstanceForType() {
+    return DEFAULT_INSTANCE;
+  }
+
+}
+
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/eager/ResourceDtypeAndShapeOrBuilder.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/eager/ResourceDtypeAndShapeOrBuilder.java
new file mode 100644
index 00000000000..bbbdd73d315
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/eager/ResourceDtypeAndShapeOrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/protobuf/remote_tensor_handle.proto
+
+package org.tensorflow.proto.eager;
+
+public interface ResourceDtypeAndShapeOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:tensorflow.eager.ResourceDtypeAndShape)
+    com.google.protobuf.MessageOrBuilder {
+
+  /**
+   * .tensorflow.DataType dtype = 1;
+   * @return The enum numeric value on the wire for dtype.
+   */
+  int getDtypeValue();
+  /**
+   * .tensorflow.DataType dtype = 1;
+   * @return The dtype.
+   */
+  org.tensorflow.proto.DataType getDtype();
+
+  /**
+   * .tensorflow.TensorShapeProto shape = 2;
+   * @return Whether the shape field is set.
+   */
+  boolean hasShape();
+  /**
+   * .tensorflow.TensorShapeProto shape = 2;
+   * @return The shape.
+   */
+  org.tensorflow.proto.TensorShapeProto getShape();
+  /**
+   * .tensorflow.TensorShapeProto shape = 2;
+   */
+  org.tensorflow.proto.TensorShapeProtoOrBuilder getShapeOrBuilder();
+}
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/Code.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/error/Code.java
similarity index 96%
rename from tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/Code.java
rename to tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/error/Code.java
index c7eda03f92a..33fec9d42be 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/Code.java
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/error/Code.java
@@ -1,7 +1,7 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: tensorflow/core/protobuf/error_codes.proto
+// source: tensorflow/tsl/protobuf/error_codes.proto
 
-package org.tensorflow.proto.framework;
+package org.tensorflow.proto.error;
 
 /**
  * 
@@ -455,6 +455,8 @@ public final int getNumber() {
   }
 
   /**
+   * @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
@@ -462,6 +464,10 @@ public static Code 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 Code forNumber(int value) {
     switch (value) {
       case 0: return OK;
@@ -500,6 +506,10 @@ public Code findValueByNumber(int 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
@@ -508,7 +518,7 @@ public Code findValueByNumber(int number) {
   }
   public static final com.google.protobuf.Descriptors.EnumDescriptor
       getDescriptor() {
-    return org.tensorflow.proto.framework.ErrorCodesProtos.getDescriptor().getEnumTypes().get(0);
+    return org.tensorflow.proto.error.ErrorCodesProtos.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final Code[] VALUES = values();
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/error/ErrorCodesProtos.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/error/ErrorCodesProtos.java
new file mode 100644
index 00000000000..f1c935252db
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/error/ErrorCodesProtos.java
@@ -0,0 +1,49 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/tsl/protobuf/error_codes.proto
+
+package org.tensorflow.proto.error;
+
+public final class ErrorCodesProtos {
+  private ErrorCodesProtos() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n)tensorflow/tsl/protobuf/error_codes.pr" +
+      "oto\022\020tensorflow.error*\204\003\n\004Code\022\006\n\002OK\020\000\022\r" +
+      "\n\tCANCELLED\020\001\022\013\n\007UNKNOWN\020\002\022\024\n\020INVALID_AR" +
+      "GUMENT\020\003\022\025\n\021DEADLINE_EXCEEDED\020\004\022\r\n\tNOT_F" +
+      "OUND\020\005\022\022\n\016ALREADY_EXISTS\020\006\022\025\n\021PERMISSION" +
+      "_DENIED\020\007\022\023\n\017UNAUTHENTICATED\020\020\022\026\n\022RESOUR" +
+      "CE_EXHAUSTED\020\010\022\027\n\023FAILED_PRECONDITION\020\t\022" +
+      "\013\n\007ABORTED\020\n\022\020\n\014OUT_OF_RANGE\020\013\022\021\n\rUNIMPL" +
+      "EMENTED\020\014\022\014\n\010INTERNAL\020\r\022\017\n\013UNAVAILABLE\020\016" +
+      "\022\r\n\tDATA_LOSS\020\017\022K\nGDO_NOT_USE_RESERVED_F" +
+      "OR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITC" +
+      "H_INSTEAD_\020\024Bs\n\032org.tensorflow.proto.err" +
+      "orB\020ErrorCodesProtosP\001Z>github.com/googl" +
+      "e/tsl/tsl/go/protobuf/for_core_protos_go" +
+      "_proto\370\001\001b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+        });
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/error/dummy/ErrorCodes.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/error/dummy/ErrorCodes.java
new file mode 100644
index 00000000000..eff1dfa4636
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/error/dummy/ErrorCodes.java
@@ -0,0 +1,43 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/core/protobuf/error_codes.proto
+
+package org.tensorflow.proto.error.dummy;
+
+public final class ErrorCodes {
+  private ErrorCodes() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n*tensorflow/core/protobuf/error_codes.p" +
+      "roto\022\026tensorflow.error.dummy\032)tensorflow" +
+      "/tsl/protobuf/error_codes.protoBy\n org.t" +
+      "ensorflow.proto.error.dummyZUgithub.com/" +
+      "tensorflow/tensorflow/tensorflow/go/core" +
+      "/protobuf/for_core_protos_go_protoP\000b\006pr" +
+      "oto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          org.tensorflow.proto.error.ErrorCodesProtos.getDescriptor(),
+        });
+    org.tensorflow.proto.error.ErrorCodesProtos.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/profiler/Xplane.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/profiler/Xplane.java
new file mode 100644
index 00000000000..1cc75f9dbe4
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/profiler/Xplane.java
@@ -0,0 +1,11321 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: tensorflow/tsl/profiler/protobuf/xplane.proto
+
+package org.tensorflow.proto.profiler;
+
+public final class Xplane {
+  private Xplane() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  public interface XSpaceOrBuilder extends
+      // @@protoc_insertion_point(interface_extends:tensorflow.profiler.XSpace)
+      com.google.protobuf.MessageOrBuilder {
+
+    /**
+     * repeated .tensorflow.profiler.XPlane planes = 1;
+     */
+    java.util.List 
+        getPlanesList();
+    /**
+     * repeated .tensorflow.profiler.XPlane planes = 1;
+     */
+    org.tensorflow.proto.profiler.Xplane.XPlane getPlanes(int index);
+    /**
+     * repeated .tensorflow.profiler.XPlane planes = 1;
+     */
+    int getPlanesCount();
+    /**
+     * repeated .tensorflow.profiler.XPlane planes = 1;
+     */
+    java.util.List 
+        getPlanesOrBuilderList();
+    /**
+     * repeated .tensorflow.profiler.XPlane planes = 1;
+     */
+    org.tensorflow.proto.profiler.Xplane.XPlaneOrBuilder getPlanesOrBuilder(
+        int index);
+
+    /**
+     * 
+     * Errors (if any) in the generation of planes.
+     * 
+ * + * repeated string errors = 2; + * @return A list containing the errors. + */ + java.util.List + getErrorsList(); + /** + *
+     * Errors (if any) in the generation of planes.
+     * 
+ * + * repeated string errors = 2; + * @return The count of errors. + */ + int getErrorsCount(); + /** + *
+     * Errors (if any) in the generation of planes.
+     * 
+ * + * repeated string errors = 2; + * @param index The index of the element to return. + * @return The errors at the given index. + */ + java.lang.String getErrors(int index); + /** + *
+     * Errors (if any) in the generation of planes.
+     * 
+ * + * repeated string errors = 2; + * @param index The index of the value to return. + * @return The bytes of the errors at the given index. + */ + com.google.protobuf.ByteString + getErrorsBytes(int index); + + /** + *
+     * Warnings (if any) in the generation of planes;
+     * 
+ * + * repeated string warnings = 3; + * @return A list containing the warnings. + */ + java.util.List + getWarningsList(); + /** + *
+     * Warnings (if any) in the generation of planes;
+     * 
+ * + * repeated string warnings = 3; + * @return The count of warnings. + */ + int getWarningsCount(); + /** + *
+     * Warnings (if any) in the generation of planes;
+     * 
+ * + * repeated string warnings = 3; + * @param index The index of the element to return. + * @return The warnings at the given index. + */ + java.lang.String getWarnings(int index); + /** + *
+     * Warnings (if any) in the generation of planes;
+     * 
+ * + * repeated string warnings = 3; + * @param index The index of the value to return. + * @return The bytes of the warnings at the given index. + */ + com.google.protobuf.ByteString + getWarningsBytes(int index); + + /** + *
+     * List of hostnames that XPlanes are generated from.
+     * 
+ * + * repeated string hostnames = 4; + * @return A list containing the hostnames. + */ + java.util.List + getHostnamesList(); + /** + *
+     * List of hostnames that XPlanes are generated from.
+     * 
+ * + * repeated string hostnames = 4; + * @return The count of hostnames. + */ + int getHostnamesCount(); + /** + *
+     * List of hostnames that XPlanes are generated from.
+     * 
+ * + * repeated string hostnames = 4; + * @param index The index of the element to return. + * @return The hostnames at the given index. + */ + java.lang.String getHostnames(int index); + /** + *
+     * List of hostnames that XPlanes are generated from.
+     * 
+ * + * repeated string hostnames = 4; + * @param index The index of the value to return. + * @return The bytes of the hostnames at the given index. + */ + com.google.protobuf.ByteString + getHostnamesBytes(int index); + } + /** + *
+   * A container of parallel XPlanes, generated by one or more profiling sources.
+   * Next ID: 5
+   * 
+ * + * Protobuf type {@code tensorflow.profiler.XSpace} + */ + public static final class XSpace extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.profiler.XSpace) + XSpaceOrBuilder { + private static final long serialVersionUID = 0L; + // Use XSpace.newBuilder() to construct. + private XSpace(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private XSpace() { + planes_ = java.util.Collections.emptyList(); + errors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + hostnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new XSpace(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XSpace_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XSpace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.profiler.Xplane.XSpace.class, org.tensorflow.proto.profiler.Xplane.XSpace.Builder.class); + } + + public static final int PLANES_FIELD_NUMBER = 1; + private java.util.List planes_; + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + @java.lang.Override + public java.util.List getPlanesList() { + return planes_; + } + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + @java.lang.Override + public java.util.List + getPlanesOrBuilderList() { + return planes_; + } + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + @java.lang.Override + public int getPlanesCount() { + return planes_.size(); + } + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XPlane getPlanes(int index) { + return planes_.get(index); + } + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XPlaneOrBuilder getPlanesOrBuilder( + int index) { + return planes_.get(index); + } + + public static final int ERRORS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList errors_; + /** + *
+     * Errors (if any) in the generation of planes.
+     * 
+ * + * repeated string errors = 2; + * @return A list containing the errors. + */ + public com.google.protobuf.ProtocolStringList + getErrorsList() { + return errors_; + } + /** + *
+     * Errors (if any) in the generation of planes.
+     * 
+ * + * repeated string errors = 2; + * @return The count of errors. + */ + public int getErrorsCount() { + return errors_.size(); + } + /** + *
+     * Errors (if any) in the generation of planes.
+     * 
+ * + * repeated string errors = 2; + * @param index The index of the element to return. + * @return The errors at the given index. + */ + public java.lang.String getErrors(int index) { + return errors_.get(index); + } + /** + *
+     * Errors (if any) in the generation of planes.
+     * 
+ * + * repeated string errors = 2; + * @param index The index of the value to return. + * @return The bytes of the errors at the given index. + */ + public com.google.protobuf.ByteString + getErrorsBytes(int index) { + return errors_.getByteString(index); + } + + public static final int WARNINGS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList warnings_; + /** + *
+     * Warnings (if any) in the generation of planes;
+     * 
+ * + * repeated string warnings = 3; + * @return A list containing the warnings. + */ + public com.google.protobuf.ProtocolStringList + getWarningsList() { + return warnings_; + } + /** + *
+     * Warnings (if any) in the generation of planes;
+     * 
+ * + * repeated string warnings = 3; + * @return The count of warnings. + */ + public int getWarningsCount() { + return warnings_.size(); + } + /** + *
+     * Warnings (if any) in the generation of planes;
+     * 
+ * + * repeated string warnings = 3; + * @param index The index of the element to return. + * @return The warnings at the given index. + */ + public java.lang.String getWarnings(int index) { + return warnings_.get(index); + } + /** + *
+     * Warnings (if any) in the generation of planes;
+     * 
+ * + * repeated string warnings = 3; + * @param index The index of the value to return. + * @return The bytes of the warnings at the given index. + */ + public com.google.protobuf.ByteString + getWarningsBytes(int index) { + return warnings_.getByteString(index); + } + + public static final int HOSTNAMES_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList hostnames_; + /** + *
+     * List of hostnames that XPlanes are generated from.
+     * 
+ * + * repeated string hostnames = 4; + * @return A list containing the hostnames. + */ + public com.google.protobuf.ProtocolStringList + getHostnamesList() { + return hostnames_; + } + /** + *
+     * List of hostnames that XPlanes are generated from.
+     * 
+ * + * repeated string hostnames = 4; + * @return The count of hostnames. + */ + public int getHostnamesCount() { + return hostnames_.size(); + } + /** + *
+     * List of hostnames that XPlanes are generated from.
+     * 
+ * + * repeated string hostnames = 4; + * @param index The index of the element to return. + * @return The hostnames at the given index. + */ + public java.lang.String getHostnames(int index) { + return hostnames_.get(index); + } + /** + *
+     * List of hostnames that XPlanes are generated from.
+     * 
+ * + * repeated string hostnames = 4; + * @param index The index of the value to return. + * @return The bytes of the hostnames at the given index. + */ + public com.google.protobuf.ByteString + getHostnamesBytes(int index) { + return hostnames_.getByteString(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 < planes_.size(); i++) { + output.writeMessage(1, planes_.get(i)); + } + for (int i = 0; i < errors_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errors_.getRaw(i)); + } + for (int i = 0; i < warnings_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, warnings_.getRaw(i)); + } + for (int i = 0; i < hostnames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, hostnames_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < planes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, planes_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < errors_.size(); i++) { + dataSize += computeStringSizeNoTag(errors_.getRaw(i)); + } + size += dataSize; + size += 1 * getErrorsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < warnings_.size(); i++) { + dataSize += computeStringSizeNoTag(warnings_.getRaw(i)); + } + size += dataSize; + size += 1 * getWarningsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < hostnames_.size(); i++) { + dataSize += computeStringSizeNoTag(hostnames_.getRaw(i)); + } + size += dataSize; + size += 1 * getHostnamesList().size(); + } + 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 org.tensorflow.proto.profiler.Xplane.XSpace)) { + return super.equals(obj); + } + org.tensorflow.proto.profiler.Xplane.XSpace other = (org.tensorflow.proto.profiler.Xplane.XSpace) obj; + + if (!getPlanesList() + .equals(other.getPlanesList())) return false; + if (!getErrorsList() + .equals(other.getErrorsList())) return false; + if (!getWarningsList() + .equals(other.getWarningsList())) return false; + if (!getHostnamesList() + .equals(other.getHostnamesList())) 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 (getPlanesCount() > 0) { + hash = (37 * hash) + PLANES_FIELD_NUMBER; + hash = (53 * hash) + getPlanesList().hashCode(); + } + if (getErrorsCount() > 0) { + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getErrorsList().hashCode(); + } + if (getWarningsCount() > 0) { + hash = (37 * hash) + WARNINGS_FIELD_NUMBER; + hash = (53 * hash) + getWarningsList().hashCode(); + } + if (getHostnamesCount() > 0) { + hash = (37 * hash) + HOSTNAMES_FIELD_NUMBER; + hash = (53 * hash) + getHostnamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.profiler.Xplane.XSpace parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.profiler.Xplane.XSpace parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.profiler.Xplane.XSpace parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.profiler.Xplane.XSpace parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.profiler.Xplane.XSpace parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.profiler.Xplane.XSpace parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.profiler.Xplane.XSpace parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.profiler.Xplane.XSpace 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 org.tensorflow.proto.profiler.Xplane.XSpace parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.profiler.Xplane.XSpace 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 org.tensorflow.proto.profiler.Xplane.XSpace parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.profiler.Xplane.XSpace 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(org.tensorflow.proto.profiler.Xplane.XSpace 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; + } + /** + *
+     * A container of parallel XPlanes, generated by one or more profiling sources.
+     * Next ID: 5
+     * 
+ * + * Protobuf type {@code tensorflow.profiler.XSpace} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.profiler.XSpace) + org.tensorflow.proto.profiler.Xplane.XSpaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XSpace_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XSpace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.profiler.Xplane.XSpace.class, org.tensorflow.proto.profiler.Xplane.XSpace.Builder.class); + } + + // Construct using org.tensorflow.proto.profiler.Xplane.XSpace.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (planesBuilder_ == null) { + planes_ = java.util.Collections.emptyList(); + } else { + planes_ = null; + planesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + errors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + hostnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XSpace_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XSpace getDefaultInstanceForType() { + return org.tensorflow.proto.profiler.Xplane.XSpace.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XSpace build() { + org.tensorflow.proto.profiler.Xplane.XSpace result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XSpace buildPartial() { + org.tensorflow.proto.profiler.Xplane.XSpace result = new org.tensorflow.proto.profiler.Xplane.XSpace(this); + int from_bitField0_ = bitField0_; + if (planesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + planes_ = java.util.Collections.unmodifiableList(planes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.planes_ = planes_; + } else { + result.planes_ = planesBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + errors_ = errors_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.errors_ = errors_; + if (((bitField0_ & 0x00000004) != 0)) { + warnings_ = warnings_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.warnings_ = warnings_; + if (((bitField0_ & 0x00000008) != 0)) { + hostnames_ = hostnames_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.hostnames_ = hostnames_; + 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 org.tensorflow.proto.profiler.Xplane.XSpace) { + return mergeFrom((org.tensorflow.proto.profiler.Xplane.XSpace)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.profiler.Xplane.XSpace other) { + if (other == org.tensorflow.proto.profiler.Xplane.XSpace.getDefaultInstance()) return this; + if (planesBuilder_ == null) { + if (!other.planes_.isEmpty()) { + if (planes_.isEmpty()) { + planes_ = other.planes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePlanesIsMutable(); + planes_.addAll(other.planes_); + } + onChanged(); + } + } else { + if (!other.planes_.isEmpty()) { + if (planesBuilder_.isEmpty()) { + planesBuilder_.dispose(); + planesBuilder_ = null; + planes_ = other.planes_; + bitField0_ = (bitField0_ & ~0x00000001); + planesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPlanesFieldBuilder() : null; + } else { + planesBuilder_.addAllMessages(other.planes_); + } + } + } + if (!other.errors_.isEmpty()) { + if (errors_.isEmpty()) { + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureErrorsIsMutable(); + errors_.addAll(other.errors_); + } + onChanged(); + } + if (!other.warnings_.isEmpty()) { + if (warnings_.isEmpty()) { + warnings_ = other.warnings_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureWarningsIsMutable(); + warnings_.addAll(other.warnings_); + } + onChanged(); + } + if (!other.hostnames_.isEmpty()) { + if (hostnames_.isEmpty()) { + hostnames_ = other.hostnames_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureHostnamesIsMutable(); + hostnames_.addAll(other.hostnames_); + } + 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: { + org.tensorflow.proto.profiler.Xplane.XPlane m = + input.readMessage( + org.tensorflow.proto.profiler.Xplane.XPlane.parser(), + extensionRegistry); + if (planesBuilder_ == null) { + ensurePlanesIsMutable(); + planes_.add(m); + } else { + planesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureErrorsIsMutable(); + errors_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureWarningsIsMutable(); + warnings_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureHostnamesIsMutable(); + hostnames_.add(s); + break; + } // case 34 + 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.util.List planes_ = + java.util.Collections.emptyList(); + private void ensurePlanesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + planes_ = new java.util.ArrayList(planes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.profiler.Xplane.XPlane, org.tensorflow.proto.profiler.Xplane.XPlane.Builder, org.tensorflow.proto.profiler.Xplane.XPlaneOrBuilder> planesBuilder_; + + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + public java.util.List getPlanesList() { + if (planesBuilder_ == null) { + return java.util.Collections.unmodifiableList(planes_); + } else { + return planesBuilder_.getMessageList(); + } + } + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + public int getPlanesCount() { + if (planesBuilder_ == null) { + return planes_.size(); + } else { + return planesBuilder_.getCount(); + } + } + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + public org.tensorflow.proto.profiler.Xplane.XPlane getPlanes(int index) { + if (planesBuilder_ == null) { + return planes_.get(index); + } else { + return planesBuilder_.getMessage(index); + } + } + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + public Builder setPlanes( + int index, org.tensorflow.proto.profiler.Xplane.XPlane value) { + if (planesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePlanesIsMutable(); + planes_.set(index, value); + onChanged(); + } else { + planesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + public Builder setPlanes( + int index, org.tensorflow.proto.profiler.Xplane.XPlane.Builder builderForValue) { + if (planesBuilder_ == null) { + ensurePlanesIsMutable(); + planes_.set(index, builderForValue.build()); + onChanged(); + } else { + planesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + public Builder addPlanes(org.tensorflow.proto.profiler.Xplane.XPlane value) { + if (planesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePlanesIsMutable(); + planes_.add(value); + onChanged(); + } else { + planesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + public Builder addPlanes( + int index, org.tensorflow.proto.profiler.Xplane.XPlane value) { + if (planesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePlanesIsMutable(); + planes_.add(index, value); + onChanged(); + } else { + planesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + public Builder addPlanes( + org.tensorflow.proto.profiler.Xplane.XPlane.Builder builderForValue) { + if (planesBuilder_ == null) { + ensurePlanesIsMutable(); + planes_.add(builderForValue.build()); + onChanged(); + } else { + planesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + public Builder addPlanes( + int index, org.tensorflow.proto.profiler.Xplane.XPlane.Builder builderForValue) { + if (planesBuilder_ == null) { + ensurePlanesIsMutable(); + planes_.add(index, builderForValue.build()); + onChanged(); + } else { + planesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + public Builder addAllPlanes( + java.lang.Iterable values) { + if (planesBuilder_ == null) { + ensurePlanesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, planes_); + onChanged(); + } else { + planesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + public Builder clearPlanes() { + if (planesBuilder_ == null) { + planes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + planesBuilder_.clear(); + } + return this; + } + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + public Builder removePlanes(int index) { + if (planesBuilder_ == null) { + ensurePlanesIsMutable(); + planes_.remove(index); + onChanged(); + } else { + planesBuilder_.remove(index); + } + return this; + } + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + public org.tensorflow.proto.profiler.Xplane.XPlane.Builder getPlanesBuilder( + int index) { + return getPlanesFieldBuilder().getBuilder(index); + } + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + public org.tensorflow.proto.profiler.Xplane.XPlaneOrBuilder getPlanesOrBuilder( + int index) { + if (planesBuilder_ == null) { + return planes_.get(index); } else { + return planesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + public java.util.List + getPlanesOrBuilderList() { + if (planesBuilder_ != null) { + return planesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(planes_); + } + } + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + public org.tensorflow.proto.profiler.Xplane.XPlane.Builder addPlanesBuilder() { + return getPlanesFieldBuilder().addBuilder( + org.tensorflow.proto.profiler.Xplane.XPlane.getDefaultInstance()); + } + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + public org.tensorflow.proto.profiler.Xplane.XPlane.Builder addPlanesBuilder( + int index) { + return getPlanesFieldBuilder().addBuilder( + index, org.tensorflow.proto.profiler.Xplane.XPlane.getDefaultInstance()); + } + /** + * repeated .tensorflow.profiler.XPlane planes = 1; + */ + public java.util.List + getPlanesBuilderList() { + return getPlanesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.profiler.Xplane.XPlane, org.tensorflow.proto.profiler.Xplane.XPlane.Builder, org.tensorflow.proto.profiler.Xplane.XPlaneOrBuilder> + getPlanesFieldBuilder() { + if (planesBuilder_ == null) { + planesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.profiler.Xplane.XPlane, org.tensorflow.proto.profiler.Xplane.XPlane.Builder, org.tensorflow.proto.profiler.Xplane.XPlaneOrBuilder>( + planes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + planes_ = null; + } + return planesBuilder_; + } + + private com.google.protobuf.LazyStringList errors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureErrorsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + errors_ = new com.google.protobuf.LazyStringArrayList(errors_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * Errors (if any) in the generation of planes.
+       * 
+ * + * repeated string errors = 2; + * @return A list containing the errors. + */ + public com.google.protobuf.ProtocolStringList + getErrorsList() { + return errors_.getUnmodifiableView(); + } + /** + *
+       * Errors (if any) in the generation of planes.
+       * 
+ * + * repeated string errors = 2; + * @return The count of errors. + */ + public int getErrorsCount() { + return errors_.size(); + } + /** + *
+       * Errors (if any) in the generation of planes.
+       * 
+ * + * repeated string errors = 2; + * @param index The index of the element to return. + * @return The errors at the given index. + */ + public java.lang.String getErrors(int index) { + return errors_.get(index); + } + /** + *
+       * Errors (if any) in the generation of planes.
+       * 
+ * + * repeated string errors = 2; + * @param index The index of the value to return. + * @return The bytes of the errors at the given index. + */ + public com.google.protobuf.ByteString + getErrorsBytes(int index) { + return errors_.getByteString(index); + } + /** + *
+       * Errors (if any) in the generation of planes.
+       * 
+ * + * repeated string errors = 2; + * @param index The index to set the value at. + * @param value The errors to set. + * @return This builder for chaining. + */ + public Builder setErrors( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Errors (if any) in the generation of planes.
+       * 
+ * + * repeated string errors = 2; + * @param value The errors to add. + * @return This builder for chaining. + */ + public Builder addErrors( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + return this; + } + /** + *
+       * Errors (if any) in the generation of planes.
+       * 
+ * + * repeated string errors = 2; + * @param values The errors to add. + * @return This builder for chaining. + */ + public Builder addAllErrors( + java.lang.Iterable values) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, errors_); + onChanged(); + return this; + } + /** + *
+       * Errors (if any) in the generation of planes.
+       * 
+ * + * repeated string errors = 2; + * @return This builder for chaining. + */ + public Builder clearErrors() { + errors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Errors (if any) in the generation of planes.
+       * 
+ * + * repeated string errors = 2; + * @param value The bytes of the errors to add. + * @return This builder for chaining. + */ + public Builder addErrorsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureWarningsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); + bitField0_ |= 0x00000004; + } + } + /** + *
+       * Warnings (if any) in the generation of planes;
+       * 
+ * + * repeated string warnings = 3; + * @return A list containing the warnings. + */ + public com.google.protobuf.ProtocolStringList + getWarningsList() { + return warnings_.getUnmodifiableView(); + } + /** + *
+       * Warnings (if any) in the generation of planes;
+       * 
+ * + * repeated string warnings = 3; + * @return The count of warnings. + */ + public int getWarningsCount() { + return warnings_.size(); + } + /** + *
+       * Warnings (if any) in the generation of planes;
+       * 
+ * + * repeated string warnings = 3; + * @param index The index of the element to return. + * @return The warnings at the given index. + */ + public java.lang.String getWarnings(int index) { + return warnings_.get(index); + } + /** + *
+       * Warnings (if any) in the generation of planes;
+       * 
+ * + * repeated string warnings = 3; + * @param index The index of the value to return. + * @return The bytes of the warnings at the given index. + */ + public com.google.protobuf.ByteString + getWarningsBytes(int index) { + return warnings_.getByteString(index); + } + /** + *
+       * Warnings (if any) in the generation of planes;
+       * 
+ * + * repeated string warnings = 3; + * @param index The index to set the value at. + * @param value The warnings to set. + * @return This builder for chaining. + */ + public Builder setWarnings( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Warnings (if any) in the generation of planes;
+       * 
+ * + * repeated string warnings = 3; + * @param value The warnings to add. + * @return This builder for chaining. + */ + public Builder addWarnings( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.add(value); + onChanged(); + return this; + } + /** + *
+       * Warnings (if any) in the generation of planes;
+       * 
+ * + * repeated string warnings = 3; + * @param values The warnings to add. + * @return This builder for chaining. + */ + public Builder addAllWarnings( + java.lang.Iterable values) { + ensureWarningsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, warnings_); + onChanged(); + return this; + } + /** + *
+       * Warnings (if any) in the generation of planes;
+       * 
+ * + * repeated string warnings = 3; + * @return This builder for chaining. + */ + public Builder clearWarnings() { + warnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * Warnings (if any) in the generation of planes;
+       * 
+ * + * repeated string warnings = 3; + * @param value The bytes of the warnings to add. + * @return This builder for chaining. + */ + public Builder addWarningsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureWarningsIsMutable(); + warnings_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList hostnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureHostnamesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + hostnames_ = new com.google.protobuf.LazyStringArrayList(hostnames_); + bitField0_ |= 0x00000008; + } + } + /** + *
+       * List of hostnames that XPlanes are generated from.
+       * 
+ * + * repeated string hostnames = 4; + * @return A list containing the hostnames. + */ + public com.google.protobuf.ProtocolStringList + getHostnamesList() { + return hostnames_.getUnmodifiableView(); + } + /** + *
+       * List of hostnames that XPlanes are generated from.
+       * 
+ * + * repeated string hostnames = 4; + * @return The count of hostnames. + */ + public int getHostnamesCount() { + return hostnames_.size(); + } + /** + *
+       * List of hostnames that XPlanes are generated from.
+       * 
+ * + * repeated string hostnames = 4; + * @param index The index of the element to return. + * @return The hostnames at the given index. + */ + public java.lang.String getHostnames(int index) { + return hostnames_.get(index); + } + /** + *
+       * List of hostnames that XPlanes are generated from.
+       * 
+ * + * repeated string hostnames = 4; + * @param index The index of the value to return. + * @return The bytes of the hostnames at the given index. + */ + public com.google.protobuf.ByteString + getHostnamesBytes(int index) { + return hostnames_.getByteString(index); + } + /** + *
+       * List of hostnames that XPlanes are generated from.
+       * 
+ * + * repeated string hostnames = 4; + * @param index The index to set the value at. + * @param value The hostnames to set. + * @return This builder for chaining. + */ + public Builder setHostnames( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureHostnamesIsMutable(); + hostnames_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * List of hostnames that XPlanes are generated from.
+       * 
+ * + * repeated string hostnames = 4; + * @param value The hostnames to add. + * @return This builder for chaining. + */ + public Builder addHostnames( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureHostnamesIsMutable(); + hostnames_.add(value); + onChanged(); + return this; + } + /** + *
+       * List of hostnames that XPlanes are generated from.
+       * 
+ * + * repeated string hostnames = 4; + * @param values The hostnames to add. + * @return This builder for chaining. + */ + public Builder addAllHostnames( + java.lang.Iterable values) { + ensureHostnamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, hostnames_); + onChanged(); + return this; + } + /** + *
+       * List of hostnames that XPlanes are generated from.
+       * 
+ * + * repeated string hostnames = 4; + * @return This builder for chaining. + */ + public Builder clearHostnames() { + hostnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       * List of hostnames that XPlanes are generated from.
+       * 
+ * + * repeated string hostnames = 4; + * @param value The bytes of the hostnames to add. + * @return This builder for chaining. + */ + public Builder addHostnamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureHostnamesIsMutable(); + hostnames_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.profiler.XSpace) + } + + // @@protoc_insertion_point(class_scope:tensorflow.profiler.XSpace) + private static final org.tensorflow.proto.profiler.Xplane.XSpace DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.profiler.Xplane.XSpace(); + } + + public static org.tensorflow.proto.profiler.Xplane.XSpace getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public XSpace 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 org.tensorflow.proto.profiler.Xplane.XSpace getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface XPlaneOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.profiler.XPlane) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 id = 1; + * @return The id. + */ + long getId(); + + /** + *
+     * Name of this XPlane.
+     * 
+ * + * string name = 2; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * Name of this XPlane.
+     * 
+ * + * string name = 2; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Parallel timelines grouped in this plane. XLines with the same id
+     * are effectively the same timeline.
+     * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + java.util.List + getLinesList(); + /** + *
+     * Parallel timelines grouped in this plane. XLines with the same id
+     * are effectively the same timeline.
+     * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + org.tensorflow.proto.profiler.Xplane.XLine getLines(int index); + /** + *
+     * Parallel timelines grouped in this plane. XLines with the same id
+     * are effectively the same timeline.
+     * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + int getLinesCount(); + /** + *
+     * Parallel timelines grouped in this plane. XLines with the same id
+     * are effectively the same timeline.
+     * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + java.util.List + getLinesOrBuilderList(); + /** + *
+     * Parallel timelines grouped in this plane. XLines with the same id
+     * are effectively the same timeline.
+     * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + org.tensorflow.proto.profiler.Xplane.XLineOrBuilder getLinesOrBuilder( + int index); + + /** + *
+     * XEventMetadata map, each entry uses the XEventMetadata.id as key. This map
+     * should be used for events that share the same ID over the whole XPlane.
+     * 
+ * + * map<int64, .tensorflow.profiler.XEventMetadata> event_metadata = 4; + */ + int getEventMetadataCount(); + /** + *
+     * XEventMetadata map, each entry uses the XEventMetadata.id as key. This map
+     * should be used for events that share the same ID over the whole XPlane.
+     * 
+ * + * map<int64, .tensorflow.profiler.XEventMetadata> event_metadata = 4; + */ + boolean containsEventMetadata( + long key); + /** + * Use {@link #getEventMetadataMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getEventMetadata(); + /** + *
+     * XEventMetadata map, each entry uses the XEventMetadata.id as key. This map
+     * should be used for events that share the same ID over the whole XPlane.
+     * 
+ * + * map<int64, .tensorflow.profiler.XEventMetadata> event_metadata = 4; + */ + java.util.Map + getEventMetadataMap(); + /** + *
+     * XEventMetadata map, each entry uses the XEventMetadata.id as key. This map
+     * should be used for events that share the same ID over the whole XPlane.
+     * 
+ * + * map<int64, .tensorflow.profiler.XEventMetadata> event_metadata = 4; + */ + + /* nullable */ +org.tensorflow.proto.profiler.Xplane.XEventMetadata getEventMetadataOrDefault( + long key, + /* nullable */ +org.tensorflow.proto.profiler.Xplane.XEventMetadata defaultValue); + /** + *
+     * XEventMetadata map, each entry uses the XEventMetadata.id as key. This map
+     * should be used for events that share the same ID over the whole XPlane.
+     * 
+ * + * map<int64, .tensorflow.profiler.XEventMetadata> event_metadata = 4; + */ + + org.tensorflow.proto.profiler.Xplane.XEventMetadata getEventMetadataOrThrow( + long key); + + /** + *
+     * XStatMetadata map, each entry uses the XStatMetadata.id as key. This map
+     * should be used for stats that share the same ID over the whole XPlane.
+     * 
+ * + * map<int64, .tensorflow.profiler.XStatMetadata> stat_metadata = 5; + */ + int getStatMetadataCount(); + /** + *
+     * XStatMetadata map, each entry uses the XStatMetadata.id as key. This map
+     * should be used for stats that share the same ID over the whole XPlane.
+     * 
+ * + * map<int64, .tensorflow.profiler.XStatMetadata> stat_metadata = 5; + */ + boolean containsStatMetadata( + long key); + /** + * Use {@link #getStatMetadataMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getStatMetadata(); + /** + *
+     * XStatMetadata map, each entry uses the XStatMetadata.id as key. This map
+     * should be used for stats that share the same ID over the whole XPlane.
+     * 
+ * + * map<int64, .tensorflow.profiler.XStatMetadata> stat_metadata = 5; + */ + java.util.Map + getStatMetadataMap(); + /** + *
+     * XStatMetadata map, each entry uses the XStatMetadata.id as key. This map
+     * should be used for stats that share the same ID over the whole XPlane.
+     * 
+ * + * map<int64, .tensorflow.profiler.XStatMetadata> stat_metadata = 5; + */ + + /* nullable */ +org.tensorflow.proto.profiler.Xplane.XStatMetadata getStatMetadataOrDefault( + long key, + /* nullable */ +org.tensorflow.proto.profiler.Xplane.XStatMetadata defaultValue); + /** + *
+     * XStatMetadata map, each entry uses the XStatMetadata.id as key. This map
+     * should be used for stats that share the same ID over the whole XPlane.
+     * 
+ * + * map<int64, .tensorflow.profiler.XStatMetadata> stat_metadata = 5; + */ + + org.tensorflow.proto.profiler.Xplane.XStatMetadata getStatMetadataOrThrow( + long key); + + /** + *
+     * XStats associated with this plane, e.g. device capabilities.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + java.util.List + getStatsList(); + /** + *
+     * XStats associated with this plane, e.g. device capabilities.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + org.tensorflow.proto.profiler.Xplane.XStat getStats(int index); + /** + *
+     * XStats associated with this plane, e.g. device capabilities.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + int getStatsCount(); + /** + *
+     * XStats associated with this plane, e.g. device capabilities.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + java.util.List + getStatsOrBuilderList(); + /** + *
+     * XStats associated with this plane, e.g. device capabilities.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + org.tensorflow.proto.profiler.Xplane.XStatOrBuilder getStatsOrBuilder( + int index); + } + /** + *
+   * An XPlane is a container of parallel timelines (XLines), generated by a
+   * profiling source or by post-processing one or more XPlanes.
+   * Next ID: 7
+   * 
+ * + * Protobuf type {@code tensorflow.profiler.XPlane} + */ + public static final class XPlane extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.profiler.XPlane) + XPlaneOrBuilder { + private static final long serialVersionUID = 0L; + // Use XPlane.newBuilder() to construct. + private XPlane(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private XPlane() { + name_ = ""; + lines_ = java.util.Collections.emptyList(); + stats_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new XPlane(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XPlane_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetEventMetadata(); + case 5: + return internalGetStatMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XPlane_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.profiler.Xplane.XPlane.class, org.tensorflow.proto.profiler.Xplane.XPlane.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private long id_; + /** + * int64 id = 1; + * @return The id. + */ + @java.lang.Override + public long getId() { + return id_; + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + *
+     * Name of this XPlane.
+     * 
+ * + * string name = 2; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+     * Name of this XPlane.
+     * 
+ * + * string name = 2; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LINES_FIELD_NUMBER = 3; + private java.util.List lines_; + /** + *
+     * Parallel timelines grouped in this plane. XLines with the same id
+     * are effectively the same timeline.
+     * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + @java.lang.Override + public java.util.List getLinesList() { + return lines_; + } + /** + *
+     * Parallel timelines grouped in this plane. XLines with the same id
+     * are effectively the same timeline.
+     * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + @java.lang.Override + public java.util.List + getLinesOrBuilderList() { + return lines_; + } + /** + *
+     * Parallel timelines grouped in this plane. XLines with the same id
+     * are effectively the same timeline.
+     * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + @java.lang.Override + public int getLinesCount() { + return lines_.size(); + } + /** + *
+     * Parallel timelines grouped in this plane. XLines with the same id
+     * are effectively the same timeline.
+     * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XLine getLines(int index) { + return lines_.get(index); + } + /** + *
+     * Parallel timelines grouped in this plane. XLines with the same id
+     * are effectively the same timeline.
+     * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XLineOrBuilder getLinesOrBuilder( + int index) { + return lines_.get(index); + } + + public static final int EVENT_METADATA_FIELD_NUMBER = 4; + private static final class EventMetadataDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.Long, org.tensorflow.proto.profiler.Xplane.XEventMetadata> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XPlane_EventMetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.INT64, + 0L, + com.google.protobuf.WireFormat.FieldType.MESSAGE, + org.tensorflow.proto.profiler.Xplane.XEventMetadata.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.Long, org.tensorflow.proto.profiler.Xplane.XEventMetadata> eventMetadata_; + private com.google.protobuf.MapField + internalGetEventMetadata() { + if (eventMetadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + EventMetadataDefaultEntryHolder.defaultEntry); + } + return eventMetadata_; + } + + public int getEventMetadataCount() { + return internalGetEventMetadata().getMap().size(); + } + /** + *
+     * XEventMetadata map, each entry uses the XEventMetadata.id as key. This map
+     * should be used for events that share the same ID over the whole XPlane.
+     * 
+ * + * map<int64, .tensorflow.profiler.XEventMetadata> event_metadata = 4; + */ + + @java.lang.Override + public boolean containsEventMetadata( + long key) { + + return internalGetEventMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getEventMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getEventMetadata() { + return getEventMetadataMap(); + } + /** + *
+     * XEventMetadata map, each entry uses the XEventMetadata.id as key. This map
+     * should be used for events that share the same ID over the whole XPlane.
+     * 
+ * + * map<int64, .tensorflow.profiler.XEventMetadata> event_metadata = 4; + */ + @java.lang.Override + + public java.util.Map getEventMetadataMap() { + return internalGetEventMetadata().getMap(); + } + /** + *
+     * XEventMetadata map, each entry uses the XEventMetadata.id as key. This map
+     * should be used for events that share the same ID over the whole XPlane.
+     * 
+ * + * map<int64, .tensorflow.profiler.XEventMetadata> event_metadata = 4; + */ + @java.lang.Override + + public org.tensorflow.proto.profiler.Xplane.XEventMetadata getEventMetadataOrDefault( + long key, + org.tensorflow.proto.profiler.Xplane.XEventMetadata defaultValue) { + + java.util.Map map = + internalGetEventMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * XEventMetadata map, each entry uses the XEventMetadata.id as key. This map
+     * should be used for events that share the same ID over the whole XPlane.
+     * 
+ * + * map<int64, .tensorflow.profiler.XEventMetadata> event_metadata = 4; + */ + @java.lang.Override + + public org.tensorflow.proto.profiler.Xplane.XEventMetadata getEventMetadataOrThrow( + long key) { + + java.util.Map map = + internalGetEventMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int STAT_METADATA_FIELD_NUMBER = 5; + private static final class StatMetadataDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.Long, org.tensorflow.proto.profiler.Xplane.XStatMetadata> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XPlane_StatMetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.INT64, + 0L, + com.google.protobuf.WireFormat.FieldType.MESSAGE, + org.tensorflow.proto.profiler.Xplane.XStatMetadata.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.Long, org.tensorflow.proto.profiler.Xplane.XStatMetadata> statMetadata_; + private com.google.protobuf.MapField + internalGetStatMetadata() { + if (statMetadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + StatMetadataDefaultEntryHolder.defaultEntry); + } + return statMetadata_; + } + + public int getStatMetadataCount() { + return internalGetStatMetadata().getMap().size(); + } + /** + *
+     * XStatMetadata map, each entry uses the XStatMetadata.id as key. This map
+     * should be used for stats that share the same ID over the whole XPlane.
+     * 
+ * + * map<int64, .tensorflow.profiler.XStatMetadata> stat_metadata = 5; + */ + + @java.lang.Override + public boolean containsStatMetadata( + long key) { + + return internalGetStatMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getStatMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getStatMetadata() { + return getStatMetadataMap(); + } + /** + *
+     * XStatMetadata map, each entry uses the XStatMetadata.id as key. This map
+     * should be used for stats that share the same ID over the whole XPlane.
+     * 
+ * + * map<int64, .tensorflow.profiler.XStatMetadata> stat_metadata = 5; + */ + @java.lang.Override + + public java.util.Map getStatMetadataMap() { + return internalGetStatMetadata().getMap(); + } + /** + *
+     * XStatMetadata map, each entry uses the XStatMetadata.id as key. This map
+     * should be used for stats that share the same ID over the whole XPlane.
+     * 
+ * + * map<int64, .tensorflow.profiler.XStatMetadata> stat_metadata = 5; + */ + @java.lang.Override + + public org.tensorflow.proto.profiler.Xplane.XStatMetadata getStatMetadataOrDefault( + long key, + org.tensorflow.proto.profiler.Xplane.XStatMetadata defaultValue) { + + java.util.Map map = + internalGetStatMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * XStatMetadata map, each entry uses the XStatMetadata.id as key. This map
+     * should be used for stats that share the same ID over the whole XPlane.
+     * 
+ * + * map<int64, .tensorflow.profiler.XStatMetadata> stat_metadata = 5; + */ + @java.lang.Override + + public org.tensorflow.proto.profiler.Xplane.XStatMetadata getStatMetadataOrThrow( + long key) { + + java.util.Map map = + internalGetStatMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int STATS_FIELD_NUMBER = 6; + private java.util.List stats_; + /** + *
+     * XStats associated with this plane, e.g. device capabilities.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + @java.lang.Override + public java.util.List getStatsList() { + return stats_; + } + /** + *
+     * XStats associated with this plane, e.g. device capabilities.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + @java.lang.Override + public java.util.List + getStatsOrBuilderList() { + return stats_; + } + /** + *
+     * XStats associated with this plane, e.g. device capabilities.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + @java.lang.Override + public int getStatsCount() { + return stats_.size(); + } + /** + *
+     * XStats associated with this plane, e.g. device capabilities.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XStat getStats(int index) { + return stats_.get(index); + } + /** + *
+     * XStats associated with this plane, e.g. device capabilities.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XStatOrBuilder getStatsOrBuilder( + int index) { + return stats_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != 0L) { + output.writeInt64(1, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + for (int i = 0; i < lines_.size(); i++) { + output.writeMessage(3, lines_.get(i)); + } + com.google.protobuf.GeneratedMessageV3 + .serializeLongMapTo( + output, + internalGetEventMetadata(), + EventMetadataDefaultEntryHolder.defaultEntry, + 4); + com.google.protobuf.GeneratedMessageV3 + .serializeLongMapTo( + output, + internalGetStatMetadata(), + StatMetadataDefaultEntryHolder.defaultEntry, + 5); + for (int i = 0; i < stats_.size(); i++) { + output.writeMessage(6, stats_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + for (int i = 0; i < lines_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, lines_.get(i)); + } + for (java.util.Map.Entry entry + : internalGetEventMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + eventMetadata__ = EventMetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, eventMetadata__); + } + for (java.util.Map.Entry entry + : internalGetStatMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + statMetadata__ = StatMetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, statMetadata__); + } + for (int i = 0; i < stats_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, stats_.get(i)); + } + 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 org.tensorflow.proto.profiler.Xplane.XPlane)) { + return super.equals(obj); + } + org.tensorflow.proto.profiler.Xplane.XPlane other = (org.tensorflow.proto.profiler.Xplane.XPlane) obj; + + if (getId() + != other.getId()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getLinesList() + .equals(other.getLinesList())) return false; + if (!internalGetEventMetadata().equals( + other.internalGetEventMetadata())) return false; + if (!internalGetStatMetadata().equals( + other.internalGetStatMetadata())) return false; + if (!getStatsList() + .equals(other.getStatsList())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getLinesCount() > 0) { + hash = (37 * hash) + LINES_FIELD_NUMBER; + hash = (53 * hash) + getLinesList().hashCode(); + } + if (!internalGetEventMetadata().getMap().isEmpty()) { + hash = (37 * hash) + EVENT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetEventMetadata().hashCode(); + } + if (!internalGetStatMetadata().getMap().isEmpty()) { + hash = (37 * hash) + STAT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetStatMetadata().hashCode(); + } + if (getStatsCount() > 0) { + hash = (37 * hash) + STATS_FIELD_NUMBER; + hash = (53 * hash) + getStatsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.profiler.Xplane.XPlane parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.profiler.Xplane.XPlane parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.profiler.Xplane.XPlane parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.profiler.Xplane.XPlane parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.profiler.Xplane.XPlane parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.profiler.Xplane.XPlane parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.profiler.Xplane.XPlane parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.profiler.Xplane.XPlane 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 org.tensorflow.proto.profiler.Xplane.XPlane parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.profiler.Xplane.XPlane 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 org.tensorflow.proto.profiler.Xplane.XPlane parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.profiler.Xplane.XPlane 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(org.tensorflow.proto.profiler.Xplane.XPlane 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; + } + /** + *
+     * An XPlane is a container of parallel timelines (XLines), generated by a
+     * profiling source or by post-processing one or more XPlanes.
+     * Next ID: 7
+     * 
+ * + * Protobuf type {@code tensorflow.profiler.XPlane} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.profiler.XPlane) + org.tensorflow.proto.profiler.Xplane.XPlaneOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XPlane_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetEventMetadata(); + case 5: + return internalGetStatMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableEventMetadata(); + case 5: + return internalGetMutableStatMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XPlane_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.profiler.Xplane.XPlane.class, org.tensorflow.proto.profiler.Xplane.XPlane.Builder.class); + } + + // Construct using org.tensorflow.proto.profiler.Xplane.XPlane.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = 0L; + + name_ = ""; + + if (linesBuilder_ == null) { + lines_ = java.util.Collections.emptyList(); + } else { + lines_ = null; + linesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableEventMetadata().clear(); + internalGetMutableStatMetadata().clear(); + if (statsBuilder_ == null) { + stats_ = java.util.Collections.emptyList(); + } else { + stats_ = null; + statsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XPlane_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XPlane getDefaultInstanceForType() { + return org.tensorflow.proto.profiler.Xplane.XPlane.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XPlane build() { + org.tensorflow.proto.profiler.Xplane.XPlane result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XPlane buildPartial() { + org.tensorflow.proto.profiler.Xplane.XPlane result = new org.tensorflow.proto.profiler.Xplane.XPlane(this); + int from_bitField0_ = bitField0_; + result.id_ = id_; + result.name_ = name_; + if (linesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + lines_ = java.util.Collections.unmodifiableList(lines_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.lines_ = lines_; + } else { + result.lines_ = linesBuilder_.build(); + } + result.eventMetadata_ = internalGetEventMetadata(); + result.eventMetadata_.makeImmutable(); + result.statMetadata_ = internalGetStatMetadata(); + result.statMetadata_.makeImmutable(); + if (statsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + stats_ = java.util.Collections.unmodifiableList(stats_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.stats_ = stats_; + } else { + result.stats_ = statsBuilder_.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 org.tensorflow.proto.profiler.Xplane.XPlane) { + return mergeFrom((org.tensorflow.proto.profiler.Xplane.XPlane)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.profiler.Xplane.XPlane other) { + if (other == org.tensorflow.proto.profiler.Xplane.XPlane.getDefaultInstance()) return this; + if (other.getId() != 0L) { + setId(other.getId()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (linesBuilder_ == null) { + if (!other.lines_.isEmpty()) { + if (lines_.isEmpty()) { + lines_ = other.lines_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLinesIsMutable(); + lines_.addAll(other.lines_); + } + onChanged(); + } + } else { + if (!other.lines_.isEmpty()) { + if (linesBuilder_.isEmpty()) { + linesBuilder_.dispose(); + linesBuilder_ = null; + lines_ = other.lines_; + bitField0_ = (bitField0_ & ~0x00000001); + linesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLinesFieldBuilder() : null; + } else { + linesBuilder_.addAllMessages(other.lines_); + } + } + } + internalGetMutableEventMetadata().mergeFrom( + other.internalGetEventMetadata()); + internalGetMutableStatMetadata().mergeFrom( + other.internalGetStatMetadata()); + if (statsBuilder_ == null) { + if (!other.stats_.isEmpty()) { + if (stats_.isEmpty()) { + stats_ = other.stats_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureStatsIsMutable(); + stats_.addAll(other.stats_); + } + onChanged(); + } + } else { + if (!other.stats_.isEmpty()) { + if (statsBuilder_.isEmpty()) { + statsBuilder_.dispose(); + statsBuilder_ = null; + stats_ = other.stats_; + bitField0_ = (bitField0_ & ~0x00000008); + statsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStatsFieldBuilder() : null; + } else { + statsBuilder_.addAllMessages(other.stats_); + } + } + } + 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: { + id_ = input.readInt64(); + + break; + } // case 8 + case 18: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + org.tensorflow.proto.profiler.Xplane.XLine m = + input.readMessage( + org.tensorflow.proto.profiler.Xplane.XLine.parser(), + extensionRegistry); + if (linesBuilder_ == null) { + ensureLinesIsMutable(); + lines_.add(m); + } else { + linesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + eventMetadata__ = input.readMessage( + EventMetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableEventMetadata().getMutableMap().put( + eventMetadata__.getKey(), eventMetadata__.getValue()); + break; + } // case 34 + case 42: { + com.google.protobuf.MapEntry + statMetadata__ = input.readMessage( + StatMetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableStatMetadata().getMutableMap().put( + statMetadata__.getKey(), statMetadata__.getValue()); + break; + } // case 42 + case 50: { + org.tensorflow.proto.profiler.Xplane.XStat m = + input.readMessage( + org.tensorflow.proto.profiler.Xplane.XStat.parser(), + extensionRegistry); + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + stats_.add(m); + } else { + statsBuilder_.addMessage(m); + } + break; + } // case 50 + 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 long id_ ; + /** + * int64 id = 1; + * @return The id. + */ + @java.lang.Override + public long getId() { + return id_; + } + /** + * int64 id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(long value) { + + id_ = value; + onChanged(); + return this; + } + /** + * int64 id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * Name of this XPlane.
+       * 
+ * + * string name = 2; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of this XPlane.
+       * 
+ * + * string name = 2; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of this XPlane.
+       * 
+ * + * string name = 2; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of this XPlane.
+       * 
+ * + * string name = 2; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Name of this XPlane.
+       * 
+ * + * string name = 2; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.util.List lines_ = + java.util.Collections.emptyList(); + private void ensureLinesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + lines_ = new java.util.ArrayList(lines_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.profiler.Xplane.XLine, org.tensorflow.proto.profiler.Xplane.XLine.Builder, org.tensorflow.proto.profiler.Xplane.XLineOrBuilder> linesBuilder_; + + /** + *
+       * Parallel timelines grouped in this plane. XLines with the same id
+       * are effectively the same timeline.
+       * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + public java.util.List getLinesList() { + if (linesBuilder_ == null) { + return java.util.Collections.unmodifiableList(lines_); + } else { + return linesBuilder_.getMessageList(); + } + } + /** + *
+       * Parallel timelines grouped in this plane. XLines with the same id
+       * are effectively the same timeline.
+       * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + public int getLinesCount() { + if (linesBuilder_ == null) { + return lines_.size(); + } else { + return linesBuilder_.getCount(); + } + } + /** + *
+       * Parallel timelines grouped in this plane. XLines with the same id
+       * are effectively the same timeline.
+       * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + public org.tensorflow.proto.profiler.Xplane.XLine getLines(int index) { + if (linesBuilder_ == null) { + return lines_.get(index); + } else { + return linesBuilder_.getMessage(index); + } + } + /** + *
+       * Parallel timelines grouped in this plane. XLines with the same id
+       * are effectively the same timeline.
+       * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + public Builder setLines( + int index, org.tensorflow.proto.profiler.Xplane.XLine value) { + if (linesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinesIsMutable(); + lines_.set(index, value); + onChanged(); + } else { + linesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Parallel timelines grouped in this plane. XLines with the same id
+       * are effectively the same timeline.
+       * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + public Builder setLines( + int index, org.tensorflow.proto.profiler.Xplane.XLine.Builder builderForValue) { + if (linesBuilder_ == null) { + ensureLinesIsMutable(); + lines_.set(index, builderForValue.build()); + onChanged(); + } else { + linesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Parallel timelines grouped in this plane. XLines with the same id
+       * are effectively the same timeline.
+       * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + public Builder addLines(org.tensorflow.proto.profiler.Xplane.XLine value) { + if (linesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinesIsMutable(); + lines_.add(value); + onChanged(); + } else { + linesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Parallel timelines grouped in this plane. XLines with the same id
+       * are effectively the same timeline.
+       * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + public Builder addLines( + int index, org.tensorflow.proto.profiler.Xplane.XLine value) { + if (linesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinesIsMutable(); + lines_.add(index, value); + onChanged(); + } else { + linesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Parallel timelines grouped in this plane. XLines with the same id
+       * are effectively the same timeline.
+       * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + public Builder addLines( + org.tensorflow.proto.profiler.Xplane.XLine.Builder builderForValue) { + if (linesBuilder_ == null) { + ensureLinesIsMutable(); + lines_.add(builderForValue.build()); + onChanged(); + } else { + linesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Parallel timelines grouped in this plane. XLines with the same id
+       * are effectively the same timeline.
+       * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + public Builder addLines( + int index, org.tensorflow.proto.profiler.Xplane.XLine.Builder builderForValue) { + if (linesBuilder_ == null) { + ensureLinesIsMutable(); + lines_.add(index, builderForValue.build()); + onChanged(); + } else { + linesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Parallel timelines grouped in this plane. XLines with the same id
+       * are effectively the same timeline.
+       * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + public Builder addAllLines( + java.lang.Iterable values) { + if (linesBuilder_ == null) { + ensureLinesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, lines_); + onChanged(); + } else { + linesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Parallel timelines grouped in this plane. XLines with the same id
+       * are effectively the same timeline.
+       * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + public Builder clearLines() { + if (linesBuilder_ == null) { + lines_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + linesBuilder_.clear(); + } + return this; + } + /** + *
+       * Parallel timelines grouped in this plane. XLines with the same id
+       * are effectively the same timeline.
+       * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + public Builder removeLines(int index) { + if (linesBuilder_ == null) { + ensureLinesIsMutable(); + lines_.remove(index); + onChanged(); + } else { + linesBuilder_.remove(index); + } + return this; + } + /** + *
+       * Parallel timelines grouped in this plane. XLines with the same id
+       * are effectively the same timeline.
+       * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + public org.tensorflow.proto.profiler.Xplane.XLine.Builder getLinesBuilder( + int index) { + return getLinesFieldBuilder().getBuilder(index); + } + /** + *
+       * Parallel timelines grouped in this plane. XLines with the same id
+       * are effectively the same timeline.
+       * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + public org.tensorflow.proto.profiler.Xplane.XLineOrBuilder getLinesOrBuilder( + int index) { + if (linesBuilder_ == null) { + return lines_.get(index); } else { + return linesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Parallel timelines grouped in this plane. XLines with the same id
+       * are effectively the same timeline.
+       * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + public java.util.List + getLinesOrBuilderList() { + if (linesBuilder_ != null) { + return linesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(lines_); + } + } + /** + *
+       * Parallel timelines grouped in this plane. XLines with the same id
+       * are effectively the same timeline.
+       * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + public org.tensorflow.proto.profiler.Xplane.XLine.Builder addLinesBuilder() { + return getLinesFieldBuilder().addBuilder( + org.tensorflow.proto.profiler.Xplane.XLine.getDefaultInstance()); + } + /** + *
+       * Parallel timelines grouped in this plane. XLines with the same id
+       * are effectively the same timeline.
+       * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + public org.tensorflow.proto.profiler.Xplane.XLine.Builder addLinesBuilder( + int index) { + return getLinesFieldBuilder().addBuilder( + index, org.tensorflow.proto.profiler.Xplane.XLine.getDefaultInstance()); + } + /** + *
+       * Parallel timelines grouped in this plane. XLines with the same id
+       * are effectively the same timeline.
+       * 
+ * + * repeated .tensorflow.profiler.XLine lines = 3; + */ + public java.util.List + getLinesBuilderList() { + return getLinesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.profiler.Xplane.XLine, org.tensorflow.proto.profiler.Xplane.XLine.Builder, org.tensorflow.proto.profiler.Xplane.XLineOrBuilder> + getLinesFieldBuilder() { + if (linesBuilder_ == null) { + linesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.profiler.Xplane.XLine, org.tensorflow.proto.profiler.Xplane.XLine.Builder, org.tensorflow.proto.profiler.Xplane.XLineOrBuilder>( + lines_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + lines_ = null; + } + return linesBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.Long, org.tensorflow.proto.profiler.Xplane.XEventMetadata> eventMetadata_; + private com.google.protobuf.MapField + internalGetEventMetadata() { + if (eventMetadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + EventMetadataDefaultEntryHolder.defaultEntry); + } + return eventMetadata_; + } + private com.google.protobuf.MapField + internalGetMutableEventMetadata() { + onChanged();; + if (eventMetadata_ == null) { + eventMetadata_ = com.google.protobuf.MapField.newMapField( + EventMetadataDefaultEntryHolder.defaultEntry); + } + if (!eventMetadata_.isMutable()) { + eventMetadata_ = eventMetadata_.copy(); + } + return eventMetadata_; + } + + public int getEventMetadataCount() { + return internalGetEventMetadata().getMap().size(); + } + /** + *
+       * XEventMetadata map, each entry uses the XEventMetadata.id as key. This map
+       * should be used for events that share the same ID over the whole XPlane.
+       * 
+ * + * map<int64, .tensorflow.profiler.XEventMetadata> event_metadata = 4; + */ + + @java.lang.Override + public boolean containsEventMetadata( + long key) { + + return internalGetEventMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getEventMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getEventMetadata() { + return getEventMetadataMap(); + } + /** + *
+       * XEventMetadata map, each entry uses the XEventMetadata.id as key. This map
+       * should be used for events that share the same ID over the whole XPlane.
+       * 
+ * + * map<int64, .tensorflow.profiler.XEventMetadata> event_metadata = 4; + */ + @java.lang.Override + + public java.util.Map getEventMetadataMap() { + return internalGetEventMetadata().getMap(); + } + /** + *
+       * XEventMetadata map, each entry uses the XEventMetadata.id as key. This map
+       * should be used for events that share the same ID over the whole XPlane.
+       * 
+ * + * map<int64, .tensorflow.profiler.XEventMetadata> event_metadata = 4; + */ + @java.lang.Override + + public org.tensorflow.proto.profiler.Xplane.XEventMetadata getEventMetadataOrDefault( + long key, + org.tensorflow.proto.profiler.Xplane.XEventMetadata defaultValue) { + + java.util.Map map = + internalGetEventMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * XEventMetadata map, each entry uses the XEventMetadata.id as key. This map
+       * should be used for events that share the same ID over the whole XPlane.
+       * 
+ * + * map<int64, .tensorflow.profiler.XEventMetadata> event_metadata = 4; + */ + @java.lang.Override + + public org.tensorflow.proto.profiler.Xplane.XEventMetadata getEventMetadataOrThrow( + long key) { + + java.util.Map map = + internalGetEventMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearEventMetadata() { + internalGetMutableEventMetadata().getMutableMap() + .clear(); + return this; + } + /** + *
+       * XEventMetadata map, each entry uses the XEventMetadata.id as key. This map
+       * should be used for events that share the same ID over the whole XPlane.
+       * 
+ * + * map<int64, .tensorflow.profiler.XEventMetadata> event_metadata = 4; + */ + + public Builder removeEventMetadata( + long key) { + + internalGetMutableEventMetadata().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableEventMetadata() { + return internalGetMutableEventMetadata().getMutableMap(); + } + /** + *
+       * XEventMetadata map, each entry uses the XEventMetadata.id as key. This map
+       * should be used for events that share the same ID over the whole XPlane.
+       * 
+ * + * map<int64, .tensorflow.profiler.XEventMetadata> event_metadata = 4; + */ + public Builder putEventMetadata( + long key, + org.tensorflow.proto.profiler.Xplane.XEventMetadata value) { + + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableEventMetadata().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * XEventMetadata map, each entry uses the XEventMetadata.id as key. This map
+       * should be used for events that share the same ID over the whole XPlane.
+       * 
+ * + * map<int64, .tensorflow.profiler.XEventMetadata> event_metadata = 4; + */ + + public Builder putAllEventMetadata( + java.util.Map values) { + internalGetMutableEventMetadata().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.Long, org.tensorflow.proto.profiler.Xplane.XStatMetadata> statMetadata_; + private com.google.protobuf.MapField + internalGetStatMetadata() { + if (statMetadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + StatMetadataDefaultEntryHolder.defaultEntry); + } + return statMetadata_; + } + private com.google.protobuf.MapField + internalGetMutableStatMetadata() { + onChanged();; + if (statMetadata_ == null) { + statMetadata_ = com.google.protobuf.MapField.newMapField( + StatMetadataDefaultEntryHolder.defaultEntry); + } + if (!statMetadata_.isMutable()) { + statMetadata_ = statMetadata_.copy(); + } + return statMetadata_; + } + + public int getStatMetadataCount() { + return internalGetStatMetadata().getMap().size(); + } + /** + *
+       * XStatMetadata map, each entry uses the XStatMetadata.id as key. This map
+       * should be used for stats that share the same ID over the whole XPlane.
+       * 
+ * + * map<int64, .tensorflow.profiler.XStatMetadata> stat_metadata = 5; + */ + + @java.lang.Override + public boolean containsStatMetadata( + long key) { + + return internalGetStatMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getStatMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getStatMetadata() { + return getStatMetadataMap(); + } + /** + *
+       * XStatMetadata map, each entry uses the XStatMetadata.id as key. This map
+       * should be used for stats that share the same ID over the whole XPlane.
+       * 
+ * + * map<int64, .tensorflow.profiler.XStatMetadata> stat_metadata = 5; + */ + @java.lang.Override + + public java.util.Map getStatMetadataMap() { + return internalGetStatMetadata().getMap(); + } + /** + *
+       * XStatMetadata map, each entry uses the XStatMetadata.id as key. This map
+       * should be used for stats that share the same ID over the whole XPlane.
+       * 
+ * + * map<int64, .tensorflow.profiler.XStatMetadata> stat_metadata = 5; + */ + @java.lang.Override + + public org.tensorflow.proto.profiler.Xplane.XStatMetadata getStatMetadataOrDefault( + long key, + org.tensorflow.proto.profiler.Xplane.XStatMetadata defaultValue) { + + java.util.Map map = + internalGetStatMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * XStatMetadata map, each entry uses the XStatMetadata.id as key. This map
+       * should be used for stats that share the same ID over the whole XPlane.
+       * 
+ * + * map<int64, .tensorflow.profiler.XStatMetadata> stat_metadata = 5; + */ + @java.lang.Override + + public org.tensorflow.proto.profiler.Xplane.XStatMetadata getStatMetadataOrThrow( + long key) { + + java.util.Map map = + internalGetStatMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearStatMetadata() { + internalGetMutableStatMetadata().getMutableMap() + .clear(); + return this; + } + /** + *
+       * XStatMetadata map, each entry uses the XStatMetadata.id as key. This map
+       * should be used for stats that share the same ID over the whole XPlane.
+       * 
+ * + * map<int64, .tensorflow.profiler.XStatMetadata> stat_metadata = 5; + */ + + public Builder removeStatMetadata( + long key) { + + internalGetMutableStatMetadata().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableStatMetadata() { + return internalGetMutableStatMetadata().getMutableMap(); + } + /** + *
+       * XStatMetadata map, each entry uses the XStatMetadata.id as key. This map
+       * should be used for stats that share the same ID over the whole XPlane.
+       * 
+ * + * map<int64, .tensorflow.profiler.XStatMetadata> stat_metadata = 5; + */ + public Builder putStatMetadata( + long key, + org.tensorflow.proto.profiler.Xplane.XStatMetadata value) { + + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableStatMetadata().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * XStatMetadata map, each entry uses the XStatMetadata.id as key. This map
+       * should be used for stats that share the same ID over the whole XPlane.
+       * 
+ * + * map<int64, .tensorflow.profiler.XStatMetadata> stat_metadata = 5; + */ + + public Builder putAllStatMetadata( + java.util.Map values) { + internalGetMutableStatMetadata().getMutableMap() + .putAll(values); + return this; + } + + private java.util.List stats_ = + java.util.Collections.emptyList(); + private void ensureStatsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + stats_ = new java.util.ArrayList(stats_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.profiler.Xplane.XStat, org.tensorflow.proto.profiler.Xplane.XStat.Builder, org.tensorflow.proto.profiler.Xplane.XStatOrBuilder> statsBuilder_; + + /** + *
+       * XStats associated with this plane, e.g. device capabilities.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + public java.util.List getStatsList() { + if (statsBuilder_ == null) { + return java.util.Collections.unmodifiableList(stats_); + } else { + return statsBuilder_.getMessageList(); + } + } + /** + *
+       * XStats associated with this plane, e.g. device capabilities.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + public int getStatsCount() { + if (statsBuilder_ == null) { + return stats_.size(); + } else { + return statsBuilder_.getCount(); + } + } + /** + *
+       * XStats associated with this plane, e.g. device capabilities.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + public org.tensorflow.proto.profiler.Xplane.XStat getStats(int index) { + if (statsBuilder_ == null) { + return stats_.get(index); + } else { + return statsBuilder_.getMessage(index); + } + } + /** + *
+       * XStats associated with this plane, e.g. device capabilities.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + public Builder setStats( + int index, org.tensorflow.proto.profiler.Xplane.XStat value) { + if (statsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatsIsMutable(); + stats_.set(index, value); + onChanged(); + } else { + statsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * XStats associated with this plane, e.g. device capabilities.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + public Builder setStats( + int index, org.tensorflow.proto.profiler.Xplane.XStat.Builder builderForValue) { + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + stats_.set(index, builderForValue.build()); + onChanged(); + } else { + statsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * XStats associated with this plane, e.g. device capabilities.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + public Builder addStats(org.tensorflow.proto.profiler.Xplane.XStat value) { + if (statsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatsIsMutable(); + stats_.add(value); + onChanged(); + } else { + statsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * XStats associated with this plane, e.g. device capabilities.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + public Builder addStats( + int index, org.tensorflow.proto.profiler.Xplane.XStat value) { + if (statsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatsIsMutable(); + stats_.add(index, value); + onChanged(); + } else { + statsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * XStats associated with this plane, e.g. device capabilities.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + public Builder addStats( + org.tensorflow.proto.profiler.Xplane.XStat.Builder builderForValue) { + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + stats_.add(builderForValue.build()); + onChanged(); + } else { + statsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * XStats associated with this plane, e.g. device capabilities.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + public Builder addStats( + int index, org.tensorflow.proto.profiler.Xplane.XStat.Builder builderForValue) { + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + stats_.add(index, builderForValue.build()); + onChanged(); + } else { + statsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * XStats associated with this plane, e.g. device capabilities.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + public Builder addAllStats( + java.lang.Iterable values) { + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stats_); + onChanged(); + } else { + statsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * XStats associated with this plane, e.g. device capabilities.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + public Builder clearStats() { + if (statsBuilder_ == null) { + stats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + statsBuilder_.clear(); + } + return this; + } + /** + *
+       * XStats associated with this plane, e.g. device capabilities.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + public Builder removeStats(int index) { + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + stats_.remove(index); + onChanged(); + } else { + statsBuilder_.remove(index); + } + return this; + } + /** + *
+       * XStats associated with this plane, e.g. device capabilities.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + public org.tensorflow.proto.profiler.Xplane.XStat.Builder getStatsBuilder( + int index) { + return getStatsFieldBuilder().getBuilder(index); + } + /** + *
+       * XStats associated with this plane, e.g. device capabilities.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + public org.tensorflow.proto.profiler.Xplane.XStatOrBuilder getStatsOrBuilder( + int index) { + if (statsBuilder_ == null) { + return stats_.get(index); } else { + return statsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * XStats associated with this plane, e.g. device capabilities.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + public java.util.List + getStatsOrBuilderList() { + if (statsBuilder_ != null) { + return statsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stats_); + } + } + /** + *
+       * XStats associated with this plane, e.g. device capabilities.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + public org.tensorflow.proto.profiler.Xplane.XStat.Builder addStatsBuilder() { + return getStatsFieldBuilder().addBuilder( + org.tensorflow.proto.profiler.Xplane.XStat.getDefaultInstance()); + } + /** + *
+       * XStats associated with this plane, e.g. device capabilities.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + public org.tensorflow.proto.profiler.Xplane.XStat.Builder addStatsBuilder( + int index) { + return getStatsFieldBuilder().addBuilder( + index, org.tensorflow.proto.profiler.Xplane.XStat.getDefaultInstance()); + } + /** + *
+       * XStats associated with this plane, e.g. device capabilities.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 6; + */ + public java.util.List + getStatsBuilderList() { + return getStatsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.profiler.Xplane.XStat, org.tensorflow.proto.profiler.Xplane.XStat.Builder, org.tensorflow.proto.profiler.Xplane.XStatOrBuilder> + getStatsFieldBuilder() { + if (statsBuilder_ == null) { + statsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.profiler.Xplane.XStat, org.tensorflow.proto.profiler.Xplane.XStat.Builder, org.tensorflow.proto.profiler.Xplane.XStatOrBuilder>( + stats_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + stats_ = null; + } + return statsBuilder_; + } + @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:tensorflow.profiler.XPlane) + } + + // @@protoc_insertion_point(class_scope:tensorflow.profiler.XPlane) + private static final org.tensorflow.proto.profiler.Xplane.XPlane DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.profiler.Xplane.XPlane(); + } + + public static org.tensorflow.proto.profiler.Xplane.XPlane getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public XPlane 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 org.tensorflow.proto.profiler.Xplane.XPlane getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface XLineOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.profiler.XLine) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Id of this line, can be repeated within an XPlane. All XLines with the
+     * same id are effectively the same timeline.
+     * 
+ * + * int64 id = 1; + * @return The id. + */ + long getId(); + + /** + *
+     * Display id of this line. Multiple lines with the same display_id are
+     * grouped together in the same trace viewer row.
+     * 
+ * + * int64 display_id = 10; + * @return The displayId. + */ + long getDisplayId(); + + /** + *
+     * Name of this XLine.
+     * 
+ * + * string name = 2; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * Name of this XLine.
+     * 
+ * + * string name = 2; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Name of this XLine to display in trace viewer.
+     * 
+ * + * string display_name = 11; + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + *
+     * Name of this XLine to display in trace viewer.
+     * 
+ * + * string display_name = 11; + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + + /** + *
+     * Start time of this line in nanoseconds since the UNIX epoch.
+     * XEvent.offset_ps is relative to this timestamp.
+     * 
+ * + * int64 timestamp_ns = 3; + * @return The timestampNs. + */ + long getTimestampNs(); + + /** + *
+     * Profiling duration for this line in picoseconds.
+     * 
+ * + * int64 duration_ps = 9; + * @return The durationPs. + */ + long getDurationPs(); + + /** + *
+     * XEvents within the same XLine should not overlap in time, but they can be
+     * nested.
+     * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + java.util.List + getEventsList(); + /** + *
+     * XEvents within the same XLine should not overlap in time, but they can be
+     * nested.
+     * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + org.tensorflow.proto.profiler.Xplane.XEvent getEvents(int index); + /** + *
+     * XEvents within the same XLine should not overlap in time, but they can be
+     * nested.
+     * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + int getEventsCount(); + /** + *
+     * XEvents within the same XLine should not overlap in time, but they can be
+     * nested.
+     * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + java.util.List + getEventsOrBuilderList(); + /** + *
+     * XEvents within the same XLine should not overlap in time, but they can be
+     * nested.
+     * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + org.tensorflow.proto.profiler.Xplane.XEventOrBuilder getEventsOrBuilder( + int index); + } + /** + *
+   * An XLine is a timeline of trace events (XEvents).
+   * Next ID: 12
+   * 
+ * + * Protobuf type {@code tensorflow.profiler.XLine} + */ + public static final class XLine extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.profiler.XLine) + XLineOrBuilder { + private static final long serialVersionUID = 0L; + // Use XLine.newBuilder() to construct. + private XLine(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private XLine() { + name_ = ""; + displayName_ = ""; + events_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new XLine(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XLine_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XLine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.profiler.Xplane.XLine.class, org.tensorflow.proto.profiler.Xplane.XLine.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private long id_; + /** + *
+     * Id of this line, can be repeated within an XPlane. All XLines with the
+     * same id are effectively the same timeline.
+     * 
+ * + * int64 id = 1; + * @return The id. + */ + @java.lang.Override + public long getId() { + return id_; + } + + public static final int DISPLAY_ID_FIELD_NUMBER = 10; + private long displayId_; + /** + *
+     * Display id of this line. Multiple lines with the same display_id are
+     * grouped together in the same trace viewer row.
+     * 
+ * + * int64 display_id = 10; + * @return The displayId. + */ + @java.lang.Override + public long getDisplayId() { + return displayId_; + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + *
+     * Name of this XLine.
+     * 
+ * + * string name = 2; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+     * Name of this XLine.
+     * 
+ * + * string name = 2; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 11; + private volatile java.lang.Object displayName_; + /** + *
+     * Name of this XLine to display in trace viewer.
+     * 
+ * + * string display_name = 11; + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + *
+     * Name of this XLine to display in trace viewer.
+     * 
+ * + * string display_name = 11; + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIMESTAMP_NS_FIELD_NUMBER = 3; + private long timestampNs_; + /** + *
+     * Start time of this line in nanoseconds since the UNIX epoch.
+     * XEvent.offset_ps is relative to this timestamp.
+     * 
+ * + * int64 timestamp_ns = 3; + * @return The timestampNs. + */ + @java.lang.Override + public long getTimestampNs() { + return timestampNs_; + } + + public static final int DURATION_PS_FIELD_NUMBER = 9; + private long durationPs_; + /** + *
+     * Profiling duration for this line in picoseconds.
+     * 
+ * + * int64 duration_ps = 9; + * @return The durationPs. + */ + @java.lang.Override + public long getDurationPs() { + return durationPs_; + } + + public static final int EVENTS_FIELD_NUMBER = 4; + private java.util.List events_; + /** + *
+     * XEvents within the same XLine should not overlap in time, but they can be
+     * nested.
+     * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + @java.lang.Override + public java.util.List getEventsList() { + return events_; + } + /** + *
+     * XEvents within the same XLine should not overlap in time, but they can be
+     * nested.
+     * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + @java.lang.Override + public java.util.List + getEventsOrBuilderList() { + return events_; + } + /** + *
+     * XEvents within the same XLine should not overlap in time, but they can be
+     * nested.
+     * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + @java.lang.Override + public int getEventsCount() { + return events_.size(); + } + /** + *
+     * XEvents within the same XLine should not overlap in time, but they can be
+     * nested.
+     * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XEvent getEvents(int index) { + return events_.get(index); + } + /** + *
+     * XEvents within the same XLine should not overlap in time, but they can be
+     * nested.
+     * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XEventOrBuilder getEventsOrBuilder( + int index) { + return events_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != 0L) { + output.writeInt64(1, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (timestampNs_ != 0L) { + output.writeInt64(3, timestampNs_); + } + for (int i = 0; i < events_.size(); i++) { + output.writeMessage(4, events_.get(i)); + } + if (durationPs_ != 0L) { + output.writeInt64(9, durationPs_); + } + if (displayId_ != 0L) { + output.writeInt64(10, displayId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (timestampNs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, timestampNs_); + } + for (int i = 0; i < events_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, events_.get(i)); + } + if (durationPs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, durationPs_); + } + if (displayId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(10, displayId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, displayName_); + } + 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 org.tensorflow.proto.profiler.Xplane.XLine)) { + return super.equals(obj); + } + org.tensorflow.proto.profiler.Xplane.XLine other = (org.tensorflow.proto.profiler.Xplane.XLine) obj; + + if (getId() + != other.getId()) return false; + if (getDisplayId() + != other.getDisplayId()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (getTimestampNs() + != other.getTimestampNs()) return false; + if (getDurationPs() + != other.getDurationPs()) return false; + if (!getEventsList() + .equals(other.getEventsList())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (37 * hash) + DISPLAY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDisplayId()); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + TIMESTAMP_NS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimestampNs()); + hash = (37 * hash) + DURATION_PS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDurationPs()); + if (getEventsCount() > 0) { + hash = (37 * hash) + EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getEventsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.profiler.Xplane.XLine parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.profiler.Xplane.XLine parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.profiler.Xplane.XLine parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.profiler.Xplane.XLine parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.profiler.Xplane.XLine parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.profiler.Xplane.XLine parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.profiler.Xplane.XLine parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.profiler.Xplane.XLine 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 org.tensorflow.proto.profiler.Xplane.XLine parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.profiler.Xplane.XLine 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 org.tensorflow.proto.profiler.Xplane.XLine parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.profiler.Xplane.XLine 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(org.tensorflow.proto.profiler.Xplane.XLine 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; + } + /** + *
+     * An XLine is a timeline of trace events (XEvents).
+     * Next ID: 12
+     * 
+ * + * Protobuf type {@code tensorflow.profiler.XLine} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.profiler.XLine) + org.tensorflow.proto.profiler.Xplane.XLineOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XLine_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XLine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.profiler.Xplane.XLine.class, org.tensorflow.proto.profiler.Xplane.XLine.Builder.class); + } + + // Construct using org.tensorflow.proto.profiler.Xplane.XLine.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = 0L; + + displayId_ = 0L; + + name_ = ""; + + displayName_ = ""; + + timestampNs_ = 0L; + + durationPs_ = 0L; + + if (eventsBuilder_ == null) { + events_ = java.util.Collections.emptyList(); + } else { + events_ = null; + eventsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XLine_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XLine getDefaultInstanceForType() { + return org.tensorflow.proto.profiler.Xplane.XLine.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XLine build() { + org.tensorflow.proto.profiler.Xplane.XLine result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XLine buildPartial() { + org.tensorflow.proto.profiler.Xplane.XLine result = new org.tensorflow.proto.profiler.Xplane.XLine(this); + int from_bitField0_ = bitField0_; + result.id_ = id_; + result.displayId_ = displayId_; + result.name_ = name_; + result.displayName_ = displayName_; + result.timestampNs_ = timestampNs_; + result.durationPs_ = durationPs_; + if (eventsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + events_ = java.util.Collections.unmodifiableList(events_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.events_ = events_; + } else { + result.events_ = eventsBuilder_.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 org.tensorflow.proto.profiler.Xplane.XLine) { + return mergeFrom((org.tensorflow.proto.profiler.Xplane.XLine)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.profiler.Xplane.XLine other) { + if (other == org.tensorflow.proto.profiler.Xplane.XLine.getDefaultInstance()) return this; + if (other.getId() != 0L) { + setId(other.getId()); + } + if (other.getDisplayId() != 0L) { + setDisplayId(other.getDisplayId()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (other.getTimestampNs() != 0L) { + setTimestampNs(other.getTimestampNs()); + } + if (other.getDurationPs() != 0L) { + setDurationPs(other.getDurationPs()); + } + if (eventsBuilder_ == null) { + if (!other.events_.isEmpty()) { + if (events_.isEmpty()) { + events_ = other.events_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEventsIsMutable(); + events_.addAll(other.events_); + } + onChanged(); + } + } else { + if (!other.events_.isEmpty()) { + if (eventsBuilder_.isEmpty()) { + eventsBuilder_.dispose(); + eventsBuilder_ = null; + events_ = other.events_; + bitField0_ = (bitField0_ & ~0x00000001); + eventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEventsFieldBuilder() : null; + } else { + eventsBuilder_.addAllMessages(other.events_); + } + } + } + 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: { + id_ = input.readInt64(); + + break; + } // case 8 + case 18: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + timestampNs_ = input.readInt64(); + + break; + } // case 24 + case 34: { + org.tensorflow.proto.profiler.Xplane.XEvent m = + input.readMessage( + org.tensorflow.proto.profiler.Xplane.XEvent.parser(), + extensionRegistry); + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(m); + } else { + eventsBuilder_.addMessage(m); + } + break; + } // case 34 + case 72: { + durationPs_ = input.readInt64(); + + break; + } // case 72 + case 80: { + displayId_ = input.readInt64(); + + break; + } // case 80 + case 90: { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 90 + 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 long id_ ; + /** + *
+       * Id of this line, can be repeated within an XPlane. All XLines with the
+       * same id are effectively the same timeline.
+       * 
+ * + * int64 id = 1; + * @return The id. + */ + @java.lang.Override + public long getId() { + return id_; + } + /** + *
+       * Id of this line, can be repeated within an XPlane. All XLines with the
+       * same id are effectively the same timeline.
+       * 
+ * + * int64 id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(long value) { + + id_ = value; + onChanged(); + return this; + } + /** + *
+       * Id of this line, can be repeated within an XPlane. All XLines with the
+       * same id are effectively the same timeline.
+       * 
+ * + * int64 id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = 0L; + onChanged(); + return this; + } + + private long displayId_ ; + /** + *
+       * Display id of this line. Multiple lines with the same display_id are
+       * grouped together in the same trace viewer row.
+       * 
+ * + * int64 display_id = 10; + * @return The displayId. + */ + @java.lang.Override + public long getDisplayId() { + return displayId_; + } + /** + *
+       * Display id of this line. Multiple lines with the same display_id are
+       * grouped together in the same trace viewer row.
+       * 
+ * + * int64 display_id = 10; + * @param value The displayId to set. + * @return This builder for chaining. + */ + public Builder setDisplayId(long value) { + + displayId_ = value; + onChanged(); + return this; + } + /** + *
+       * Display id of this line. Multiple lines with the same display_id are
+       * grouped together in the same trace viewer row.
+       * 
+ * + * int64 display_id = 10; + * @return This builder for chaining. + */ + public Builder clearDisplayId() { + + displayId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * Name of this XLine.
+       * 
+ * + * string name = 2; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of this XLine.
+       * 
+ * + * string name = 2; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of this XLine.
+       * 
+ * + * string name = 2; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of this XLine.
+       * 
+ * + * string name = 2; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Name of this XLine.
+       * 
+ * + * string name = 2; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + *
+       * Name of this XLine to display in trace viewer.
+       * 
+ * + * string display_name = 11; + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of this XLine to display in trace viewer.
+       * 
+ * + * string display_name = 11; + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of this XLine to display in trace viewer.
+       * 
+ * + * string display_name = 11; + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of this XLine to display in trace viewer.
+       * 
+ * + * string display_name = 11; + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + *
+       * Name of this XLine to display in trace viewer.
+       * 
+ * + * string display_name = 11; + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private long timestampNs_ ; + /** + *
+       * Start time of this line in nanoseconds since the UNIX epoch.
+       * XEvent.offset_ps is relative to this timestamp.
+       * 
+ * + * int64 timestamp_ns = 3; + * @return The timestampNs. + */ + @java.lang.Override + public long getTimestampNs() { + return timestampNs_; + } + /** + *
+       * Start time of this line in nanoseconds since the UNIX epoch.
+       * XEvent.offset_ps is relative to this timestamp.
+       * 
+ * + * int64 timestamp_ns = 3; + * @param value The timestampNs to set. + * @return This builder for chaining. + */ + public Builder setTimestampNs(long value) { + + timestampNs_ = value; + onChanged(); + return this; + } + /** + *
+       * Start time of this line in nanoseconds since the UNIX epoch.
+       * XEvent.offset_ps is relative to this timestamp.
+       * 
+ * + * int64 timestamp_ns = 3; + * @return This builder for chaining. + */ + public Builder clearTimestampNs() { + + timestampNs_ = 0L; + onChanged(); + return this; + } + + private long durationPs_ ; + /** + *
+       * Profiling duration for this line in picoseconds.
+       * 
+ * + * int64 duration_ps = 9; + * @return The durationPs. + */ + @java.lang.Override + public long getDurationPs() { + return durationPs_; + } + /** + *
+       * Profiling duration for this line in picoseconds.
+       * 
+ * + * int64 duration_ps = 9; + * @param value The durationPs to set. + * @return This builder for chaining. + */ + public Builder setDurationPs(long value) { + + durationPs_ = value; + onChanged(); + return this; + } + /** + *
+       * Profiling duration for this line in picoseconds.
+       * 
+ * + * int64 duration_ps = 9; + * @return This builder for chaining. + */ + public Builder clearDurationPs() { + + durationPs_ = 0L; + onChanged(); + return this; + } + + private java.util.List events_ = + java.util.Collections.emptyList(); + private void ensureEventsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + events_ = new java.util.ArrayList(events_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.profiler.Xplane.XEvent, org.tensorflow.proto.profiler.Xplane.XEvent.Builder, org.tensorflow.proto.profiler.Xplane.XEventOrBuilder> eventsBuilder_; + + /** + *
+       * XEvents within the same XLine should not overlap in time, but they can be
+       * nested.
+       * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + public java.util.List getEventsList() { + if (eventsBuilder_ == null) { + return java.util.Collections.unmodifiableList(events_); + } else { + return eventsBuilder_.getMessageList(); + } + } + /** + *
+       * XEvents within the same XLine should not overlap in time, but they can be
+       * nested.
+       * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + public int getEventsCount() { + if (eventsBuilder_ == null) { + return events_.size(); + } else { + return eventsBuilder_.getCount(); + } + } + /** + *
+       * XEvents within the same XLine should not overlap in time, but they can be
+       * nested.
+       * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + public org.tensorflow.proto.profiler.Xplane.XEvent getEvents(int index) { + if (eventsBuilder_ == null) { + return events_.get(index); + } else { + return eventsBuilder_.getMessage(index); + } + } + /** + *
+       * XEvents within the same XLine should not overlap in time, but they can be
+       * nested.
+       * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + public Builder setEvents( + int index, org.tensorflow.proto.profiler.Xplane.XEvent value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.set(index, value); + onChanged(); + } else { + eventsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * XEvents within the same XLine should not overlap in time, but they can be
+       * nested.
+       * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + public Builder setEvents( + int index, org.tensorflow.proto.profiler.Xplane.XEvent.Builder builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.set(index, builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * XEvents within the same XLine should not overlap in time, but they can be
+       * nested.
+       * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + public Builder addEvents(org.tensorflow.proto.profiler.Xplane.XEvent value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.add(value); + onChanged(); + } else { + eventsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * XEvents within the same XLine should not overlap in time, but they can be
+       * nested.
+       * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + public Builder addEvents( + int index, org.tensorflow.proto.profiler.Xplane.XEvent value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.add(index, value); + onChanged(); + } else { + eventsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * XEvents within the same XLine should not overlap in time, but they can be
+       * nested.
+       * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + public Builder addEvents( + org.tensorflow.proto.profiler.Xplane.XEvent.Builder builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * XEvents within the same XLine should not overlap in time, but they can be
+       * nested.
+       * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + public Builder addEvents( + int index, org.tensorflow.proto.profiler.Xplane.XEvent.Builder builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(index, builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * XEvents within the same XLine should not overlap in time, but they can be
+       * nested.
+       * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + public Builder addAllEvents( + java.lang.Iterable values) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, events_); + onChanged(); + } else { + eventsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * XEvents within the same XLine should not overlap in time, but they can be
+       * nested.
+       * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + public Builder clearEvents() { + if (eventsBuilder_ == null) { + events_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + eventsBuilder_.clear(); + } + return this; + } + /** + *
+       * XEvents within the same XLine should not overlap in time, but they can be
+       * nested.
+       * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + public Builder removeEvents(int index) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.remove(index); + onChanged(); + } else { + eventsBuilder_.remove(index); + } + return this; + } + /** + *
+       * XEvents within the same XLine should not overlap in time, but they can be
+       * nested.
+       * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + public org.tensorflow.proto.profiler.Xplane.XEvent.Builder getEventsBuilder( + int index) { + return getEventsFieldBuilder().getBuilder(index); + } + /** + *
+       * XEvents within the same XLine should not overlap in time, but they can be
+       * nested.
+       * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + public org.tensorflow.proto.profiler.Xplane.XEventOrBuilder getEventsOrBuilder( + int index) { + if (eventsBuilder_ == null) { + return events_.get(index); } else { + return eventsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * XEvents within the same XLine should not overlap in time, but they can be
+       * nested.
+       * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + public java.util.List + getEventsOrBuilderList() { + if (eventsBuilder_ != null) { + return eventsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(events_); + } + } + /** + *
+       * XEvents within the same XLine should not overlap in time, but they can be
+       * nested.
+       * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + public org.tensorflow.proto.profiler.Xplane.XEvent.Builder addEventsBuilder() { + return getEventsFieldBuilder().addBuilder( + org.tensorflow.proto.profiler.Xplane.XEvent.getDefaultInstance()); + } + /** + *
+       * XEvents within the same XLine should not overlap in time, but they can be
+       * nested.
+       * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + public org.tensorflow.proto.profiler.Xplane.XEvent.Builder addEventsBuilder( + int index) { + return getEventsFieldBuilder().addBuilder( + index, org.tensorflow.proto.profiler.Xplane.XEvent.getDefaultInstance()); + } + /** + *
+       * XEvents within the same XLine should not overlap in time, but they can be
+       * nested.
+       * 
+ * + * repeated .tensorflow.profiler.XEvent events = 4; + */ + public java.util.List + getEventsBuilderList() { + return getEventsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.profiler.Xplane.XEvent, org.tensorflow.proto.profiler.Xplane.XEvent.Builder, org.tensorflow.proto.profiler.Xplane.XEventOrBuilder> + getEventsFieldBuilder() { + if (eventsBuilder_ == null) { + eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.profiler.Xplane.XEvent, org.tensorflow.proto.profiler.Xplane.XEvent.Builder, org.tensorflow.proto.profiler.Xplane.XEventOrBuilder>( + events_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + events_ = null; + } + return eventsBuilder_; + } + @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:tensorflow.profiler.XLine) + } + + // @@protoc_insertion_point(class_scope:tensorflow.profiler.XLine) + private static final org.tensorflow.proto.profiler.Xplane.XLine DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.profiler.Xplane.XLine(); + } + + public static org.tensorflow.proto.profiler.Xplane.XLine getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public XLine 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 org.tensorflow.proto.profiler.Xplane.XLine getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface XEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.profiler.XEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * XEventMetadata.id of corresponding metadata.
+     * 
+ * + * int64 metadata_id = 1; + * @return The metadataId. + */ + long getMetadataId(); + + /** + *
+     * Start time of the event in picoseconds, as offset from
+     * XLine.timestamp_ns().
+     * 
+ * + * int64 offset_ps = 2; + * @return Whether the offsetPs field is set. + */ + boolean hasOffsetPs(); + /** + *
+     * Start time of the event in picoseconds, as offset from
+     * XLine.timestamp_ns().
+     * 
+ * + * int64 offset_ps = 2; + * @return The offsetPs. + */ + long getOffsetPs(); + + /** + *
+     * Number of occurrences of the event, if aggregated.
+     * 
+ * + * int64 num_occurrences = 5; + * @return Whether the numOccurrences field is set. + */ + boolean hasNumOccurrences(); + /** + *
+     * Number of occurrences of the event, if aggregated.
+     * 
+ * + * int64 num_occurrences = 5; + * @return The numOccurrences. + */ + long getNumOccurrences(); + + /** + *
+     * Duration of the event in picoseconds. Can be zero for an instant event.
+     * 
+ * + * int64 duration_ps = 3; + * @return The durationPs. + */ + long getDurationPs(); + + /** + *
+     * XStats associated with the event.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + java.util.List + getStatsList(); + /** + *
+     * XStats associated with the event.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + org.tensorflow.proto.profiler.Xplane.XStat getStats(int index); + /** + *
+     * XStats associated with the event.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + int getStatsCount(); + /** + *
+     * XStats associated with the event.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + java.util.List + getStatsOrBuilderList(); + /** + *
+     * XStats associated with the event.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + org.tensorflow.proto.profiler.Xplane.XStatOrBuilder getStatsOrBuilder( + int index); + + public org.tensorflow.proto.profiler.Xplane.XEvent.DataCase getDataCase(); + } + /** + *
+   * An XEvent is a trace event, optionally annotated with XStats.
+   * Next ID: 6
+   * 
+ * + * Protobuf type {@code tensorflow.profiler.XEvent} + */ + public static final class XEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.profiler.XEvent) + XEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use XEvent.newBuilder() to construct. + private XEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private XEvent() { + stats_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new XEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.profiler.Xplane.XEvent.class, org.tensorflow.proto.profiler.Xplane.XEvent.Builder.class); + } + + private int dataCase_ = 0; + private java.lang.Object data_; + public enum DataCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + OFFSET_PS(2), + NUM_OCCURRENCES(5), + DATA_NOT_SET(0); + private final int value; + private DataCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataCase valueOf(int value) { + return forNumber(value); + } + + public static DataCase forNumber(int value) { + switch (value) { + case 2: return OFFSET_PS; + case 5: return NUM_OCCURRENCES; + case 0: return DATA_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); + } + + public static final int METADATA_ID_FIELD_NUMBER = 1; + private long metadataId_; + /** + *
+     * XEventMetadata.id of corresponding metadata.
+     * 
+ * + * int64 metadata_id = 1; + * @return The metadataId. + */ + @java.lang.Override + public long getMetadataId() { + return metadataId_; + } + + public static final int OFFSET_PS_FIELD_NUMBER = 2; + /** + *
+     * Start time of the event in picoseconds, as offset from
+     * XLine.timestamp_ns().
+     * 
+ * + * int64 offset_ps = 2; + * @return Whether the offsetPs field is set. + */ + @java.lang.Override + public boolean hasOffsetPs() { + return dataCase_ == 2; + } + /** + *
+     * Start time of the event in picoseconds, as offset from
+     * XLine.timestamp_ns().
+     * 
+ * + * int64 offset_ps = 2; + * @return The offsetPs. + */ + @java.lang.Override + public long getOffsetPs() { + if (dataCase_ == 2) { + return (java.lang.Long) data_; + } + return 0L; + } + + public static final int NUM_OCCURRENCES_FIELD_NUMBER = 5; + /** + *
+     * Number of occurrences of the event, if aggregated.
+     * 
+ * + * int64 num_occurrences = 5; + * @return Whether the numOccurrences field is set. + */ + @java.lang.Override + public boolean hasNumOccurrences() { + return dataCase_ == 5; + } + /** + *
+     * Number of occurrences of the event, if aggregated.
+     * 
+ * + * int64 num_occurrences = 5; + * @return The numOccurrences. + */ + @java.lang.Override + public long getNumOccurrences() { + if (dataCase_ == 5) { + return (java.lang.Long) data_; + } + return 0L; + } + + public static final int DURATION_PS_FIELD_NUMBER = 3; + private long durationPs_; + /** + *
+     * Duration of the event in picoseconds. Can be zero for an instant event.
+     * 
+ * + * int64 duration_ps = 3; + * @return The durationPs. + */ + @java.lang.Override + public long getDurationPs() { + return durationPs_; + } + + public static final int STATS_FIELD_NUMBER = 4; + private java.util.List stats_; + /** + *
+     * XStats associated with the event.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + @java.lang.Override + public java.util.List getStatsList() { + return stats_; + } + /** + *
+     * XStats associated with the event.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + @java.lang.Override + public java.util.List + getStatsOrBuilderList() { + return stats_; + } + /** + *
+     * XStats associated with the event.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + @java.lang.Override + public int getStatsCount() { + return stats_.size(); + } + /** + *
+     * XStats associated with the event.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XStat getStats(int index) { + return stats_.get(index); + } + /** + *
+     * XStats associated with the event.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XStatOrBuilder getStatsOrBuilder( + int index) { + return stats_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (metadataId_ != 0L) { + output.writeInt64(1, metadataId_); + } + if (dataCase_ == 2) { + output.writeInt64( + 2, (long)((java.lang.Long) data_)); + } + if (durationPs_ != 0L) { + output.writeInt64(3, durationPs_); + } + for (int i = 0; i < stats_.size(); i++) { + output.writeMessage(4, stats_.get(i)); + } + if (dataCase_ == 5) { + output.writeInt64( + 5, (long)((java.lang.Long) data_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (metadataId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, metadataId_); + } + if (dataCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 2, (long)((java.lang.Long) data_)); + } + if (durationPs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, durationPs_); + } + for (int i = 0; i < stats_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, stats_.get(i)); + } + if (dataCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 5, (long)((java.lang.Long) data_)); + } + 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 org.tensorflow.proto.profiler.Xplane.XEvent)) { + return super.equals(obj); + } + org.tensorflow.proto.profiler.Xplane.XEvent other = (org.tensorflow.proto.profiler.Xplane.XEvent) obj; + + if (getMetadataId() + != other.getMetadataId()) return false; + if (getDurationPs() + != other.getDurationPs()) return false; + if (!getStatsList() + .equals(other.getStatsList())) return false; + if (!getDataCase().equals(other.getDataCase())) return false; + switch (dataCase_) { + case 2: + if (getOffsetPs() + != other.getOffsetPs()) return false; + break; + case 5: + if (getNumOccurrences() + != other.getNumOccurrences()) return false; + break; + case 0: + default: + } + 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) + METADATA_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMetadataId()); + hash = (37 * hash) + DURATION_PS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDurationPs()); + if (getStatsCount() > 0) { + hash = (37 * hash) + STATS_FIELD_NUMBER; + hash = (53 * hash) + getStatsList().hashCode(); + } + switch (dataCase_) { + case 2: + hash = (37 * hash) + OFFSET_PS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOffsetPs()); + break; + case 5: + hash = (37 * hash) + NUM_OCCURRENCES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNumOccurrences()); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.profiler.Xplane.XEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.profiler.Xplane.XEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.profiler.Xplane.XEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.profiler.Xplane.XEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.profiler.Xplane.XEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.profiler.Xplane.XEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.profiler.Xplane.XEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.profiler.Xplane.XEvent 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 org.tensorflow.proto.profiler.Xplane.XEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.profiler.Xplane.XEvent 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 org.tensorflow.proto.profiler.Xplane.XEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.profiler.Xplane.XEvent 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(org.tensorflow.proto.profiler.Xplane.XEvent 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; + } + /** + *
+     * An XEvent is a trace event, optionally annotated with XStats.
+     * Next ID: 6
+     * 
+ * + * Protobuf type {@code tensorflow.profiler.XEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.profiler.XEvent) + org.tensorflow.proto.profiler.Xplane.XEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.profiler.Xplane.XEvent.class, org.tensorflow.proto.profiler.Xplane.XEvent.Builder.class); + } + + // Construct using org.tensorflow.proto.profiler.Xplane.XEvent.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + metadataId_ = 0L; + + durationPs_ = 0L; + + if (statsBuilder_ == null) { + stats_ = java.util.Collections.emptyList(); + } else { + stats_ = null; + statsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + dataCase_ = 0; + data_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XEvent_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XEvent getDefaultInstanceForType() { + return org.tensorflow.proto.profiler.Xplane.XEvent.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XEvent build() { + org.tensorflow.proto.profiler.Xplane.XEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XEvent buildPartial() { + org.tensorflow.proto.profiler.Xplane.XEvent result = new org.tensorflow.proto.profiler.Xplane.XEvent(this); + int from_bitField0_ = bitField0_; + result.metadataId_ = metadataId_; + if (dataCase_ == 2) { + result.data_ = data_; + } + if (dataCase_ == 5) { + result.data_ = data_; + } + result.durationPs_ = durationPs_; + if (statsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + stats_ = java.util.Collections.unmodifiableList(stats_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.stats_ = stats_; + } else { + result.stats_ = statsBuilder_.build(); + } + result.dataCase_ = dataCase_; + 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 org.tensorflow.proto.profiler.Xplane.XEvent) { + return mergeFrom((org.tensorflow.proto.profiler.Xplane.XEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.profiler.Xplane.XEvent other) { + if (other == org.tensorflow.proto.profiler.Xplane.XEvent.getDefaultInstance()) return this; + if (other.getMetadataId() != 0L) { + setMetadataId(other.getMetadataId()); + } + if (other.getDurationPs() != 0L) { + setDurationPs(other.getDurationPs()); + } + if (statsBuilder_ == null) { + if (!other.stats_.isEmpty()) { + if (stats_.isEmpty()) { + stats_ = other.stats_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStatsIsMutable(); + stats_.addAll(other.stats_); + } + onChanged(); + } + } else { + if (!other.stats_.isEmpty()) { + if (statsBuilder_.isEmpty()) { + statsBuilder_.dispose(); + statsBuilder_ = null; + stats_ = other.stats_; + bitField0_ = (bitField0_ & ~0x00000001); + statsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStatsFieldBuilder() : null; + } else { + statsBuilder_.addAllMessages(other.stats_); + } + } + } + switch (other.getDataCase()) { + case OFFSET_PS: { + setOffsetPs(other.getOffsetPs()); + break; + } + case NUM_OCCURRENCES: { + setNumOccurrences(other.getNumOccurrences()); + break; + } + case DATA_NOT_SET: { + break; + } + } + 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: { + metadataId_ = input.readInt64(); + + break; + } // case 8 + case 16: { + data_ = input.readInt64(); + dataCase_ = 2; + break; + } // case 16 + case 24: { + durationPs_ = input.readInt64(); + + break; + } // case 24 + case 34: { + org.tensorflow.proto.profiler.Xplane.XStat m = + input.readMessage( + org.tensorflow.proto.profiler.Xplane.XStat.parser(), + extensionRegistry); + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + stats_.add(m); + } else { + statsBuilder_.addMessage(m); + } + break; + } // case 34 + case 40: { + data_ = input.readInt64(); + dataCase_ = 5; + break; + } // case 40 + 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 dataCase_ = 0; + private java.lang.Object data_; + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); + } + + public Builder clearData() { + dataCase_ = 0; + data_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private long metadataId_ ; + /** + *
+       * XEventMetadata.id of corresponding metadata.
+       * 
+ * + * int64 metadata_id = 1; + * @return The metadataId. + */ + @java.lang.Override + public long getMetadataId() { + return metadataId_; + } + /** + *
+       * XEventMetadata.id of corresponding metadata.
+       * 
+ * + * int64 metadata_id = 1; + * @param value The metadataId to set. + * @return This builder for chaining. + */ + public Builder setMetadataId(long value) { + + metadataId_ = value; + onChanged(); + return this; + } + /** + *
+       * XEventMetadata.id of corresponding metadata.
+       * 
+ * + * int64 metadata_id = 1; + * @return This builder for chaining. + */ + public Builder clearMetadataId() { + + metadataId_ = 0L; + onChanged(); + return this; + } + + /** + *
+       * Start time of the event in picoseconds, as offset from
+       * XLine.timestamp_ns().
+       * 
+ * + * int64 offset_ps = 2; + * @return Whether the offsetPs field is set. + */ + public boolean hasOffsetPs() { + return dataCase_ == 2; + } + /** + *
+       * Start time of the event in picoseconds, as offset from
+       * XLine.timestamp_ns().
+       * 
+ * + * int64 offset_ps = 2; + * @return The offsetPs. + */ + public long getOffsetPs() { + if (dataCase_ == 2) { + return (java.lang.Long) data_; + } + return 0L; + } + /** + *
+       * Start time of the event in picoseconds, as offset from
+       * XLine.timestamp_ns().
+       * 
+ * + * int64 offset_ps = 2; + * @param value The offsetPs to set. + * @return This builder for chaining. + */ + public Builder setOffsetPs(long value) { + dataCase_ = 2; + data_ = value; + onChanged(); + return this; + } + /** + *
+       * Start time of the event in picoseconds, as offset from
+       * XLine.timestamp_ns().
+       * 
+ * + * int64 offset_ps = 2; + * @return This builder for chaining. + */ + public Builder clearOffsetPs() { + if (dataCase_ == 2) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + return this; + } + + /** + *
+       * Number of occurrences of the event, if aggregated.
+       * 
+ * + * int64 num_occurrences = 5; + * @return Whether the numOccurrences field is set. + */ + public boolean hasNumOccurrences() { + return dataCase_ == 5; + } + /** + *
+       * Number of occurrences of the event, if aggregated.
+       * 
+ * + * int64 num_occurrences = 5; + * @return The numOccurrences. + */ + public long getNumOccurrences() { + if (dataCase_ == 5) { + return (java.lang.Long) data_; + } + return 0L; + } + /** + *
+       * Number of occurrences of the event, if aggregated.
+       * 
+ * + * int64 num_occurrences = 5; + * @param value The numOccurrences to set. + * @return This builder for chaining. + */ + public Builder setNumOccurrences(long value) { + dataCase_ = 5; + data_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of occurrences of the event, if aggregated.
+       * 
+ * + * int64 num_occurrences = 5; + * @return This builder for chaining. + */ + public Builder clearNumOccurrences() { + if (dataCase_ == 5) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + return this; + } + + private long durationPs_ ; + /** + *
+       * Duration of the event in picoseconds. Can be zero for an instant event.
+       * 
+ * + * int64 duration_ps = 3; + * @return The durationPs. + */ + @java.lang.Override + public long getDurationPs() { + return durationPs_; + } + /** + *
+       * Duration of the event in picoseconds. Can be zero for an instant event.
+       * 
+ * + * int64 duration_ps = 3; + * @param value The durationPs to set. + * @return This builder for chaining. + */ + public Builder setDurationPs(long value) { + + durationPs_ = value; + onChanged(); + return this; + } + /** + *
+       * Duration of the event in picoseconds. Can be zero for an instant event.
+       * 
+ * + * int64 duration_ps = 3; + * @return This builder for chaining. + */ + public Builder clearDurationPs() { + + durationPs_ = 0L; + onChanged(); + return this; + } + + private java.util.List stats_ = + java.util.Collections.emptyList(); + private void ensureStatsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + stats_ = new java.util.ArrayList(stats_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.profiler.Xplane.XStat, org.tensorflow.proto.profiler.Xplane.XStat.Builder, org.tensorflow.proto.profiler.Xplane.XStatOrBuilder> statsBuilder_; + + /** + *
+       * XStats associated with the event.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + public java.util.List getStatsList() { + if (statsBuilder_ == null) { + return java.util.Collections.unmodifiableList(stats_); + } else { + return statsBuilder_.getMessageList(); + } + } + /** + *
+       * XStats associated with the event.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + public int getStatsCount() { + if (statsBuilder_ == null) { + return stats_.size(); + } else { + return statsBuilder_.getCount(); + } + } + /** + *
+       * XStats associated with the event.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + public org.tensorflow.proto.profiler.Xplane.XStat getStats(int index) { + if (statsBuilder_ == null) { + return stats_.get(index); + } else { + return statsBuilder_.getMessage(index); + } + } + /** + *
+       * XStats associated with the event.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + public Builder setStats( + int index, org.tensorflow.proto.profiler.Xplane.XStat value) { + if (statsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatsIsMutable(); + stats_.set(index, value); + onChanged(); + } else { + statsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * XStats associated with the event.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + public Builder setStats( + int index, org.tensorflow.proto.profiler.Xplane.XStat.Builder builderForValue) { + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + stats_.set(index, builderForValue.build()); + onChanged(); + } else { + statsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * XStats associated with the event.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + public Builder addStats(org.tensorflow.proto.profiler.Xplane.XStat value) { + if (statsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatsIsMutable(); + stats_.add(value); + onChanged(); + } else { + statsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * XStats associated with the event.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + public Builder addStats( + int index, org.tensorflow.proto.profiler.Xplane.XStat value) { + if (statsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatsIsMutable(); + stats_.add(index, value); + onChanged(); + } else { + statsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * XStats associated with the event.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + public Builder addStats( + org.tensorflow.proto.profiler.Xplane.XStat.Builder builderForValue) { + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + stats_.add(builderForValue.build()); + onChanged(); + } else { + statsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * XStats associated with the event.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + public Builder addStats( + int index, org.tensorflow.proto.profiler.Xplane.XStat.Builder builderForValue) { + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + stats_.add(index, builderForValue.build()); + onChanged(); + } else { + statsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * XStats associated with the event.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + public Builder addAllStats( + java.lang.Iterable values) { + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stats_); + onChanged(); + } else { + statsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * XStats associated with the event.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + public Builder clearStats() { + if (statsBuilder_ == null) { + stats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + statsBuilder_.clear(); + } + return this; + } + /** + *
+       * XStats associated with the event.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + public Builder removeStats(int index) { + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + stats_.remove(index); + onChanged(); + } else { + statsBuilder_.remove(index); + } + return this; + } + /** + *
+       * XStats associated with the event.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + public org.tensorflow.proto.profiler.Xplane.XStat.Builder getStatsBuilder( + int index) { + return getStatsFieldBuilder().getBuilder(index); + } + /** + *
+       * XStats associated with the event.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + public org.tensorflow.proto.profiler.Xplane.XStatOrBuilder getStatsOrBuilder( + int index) { + if (statsBuilder_ == null) { + return stats_.get(index); } else { + return statsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * XStats associated with the event.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + public java.util.List + getStatsOrBuilderList() { + if (statsBuilder_ != null) { + return statsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stats_); + } + } + /** + *
+       * XStats associated with the event.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + public org.tensorflow.proto.profiler.Xplane.XStat.Builder addStatsBuilder() { + return getStatsFieldBuilder().addBuilder( + org.tensorflow.proto.profiler.Xplane.XStat.getDefaultInstance()); + } + /** + *
+       * XStats associated with the event.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + public org.tensorflow.proto.profiler.Xplane.XStat.Builder addStatsBuilder( + int index) { + return getStatsFieldBuilder().addBuilder( + index, org.tensorflow.proto.profiler.Xplane.XStat.getDefaultInstance()); + } + /** + *
+       * XStats associated with the event.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 4; + */ + public java.util.List + getStatsBuilderList() { + return getStatsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.profiler.Xplane.XStat, org.tensorflow.proto.profiler.Xplane.XStat.Builder, org.tensorflow.proto.profiler.Xplane.XStatOrBuilder> + getStatsFieldBuilder() { + if (statsBuilder_ == null) { + statsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.profiler.Xplane.XStat, org.tensorflow.proto.profiler.Xplane.XStat.Builder, org.tensorflow.proto.profiler.Xplane.XStatOrBuilder>( + stats_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + stats_ = null; + } + return statsBuilder_; + } + @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:tensorflow.profiler.XEvent) + } + + // @@protoc_insertion_point(class_scope:tensorflow.profiler.XEvent) + private static final org.tensorflow.proto.profiler.Xplane.XEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.profiler.Xplane.XEvent(); + } + + public static org.tensorflow.proto.profiler.Xplane.XEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public XEvent 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 org.tensorflow.proto.profiler.Xplane.XEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface XStatOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.profiler.XStat) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * XStatMetadata.id of corresponding metadata.
+     * 
+ * + * int64 metadata_id = 1; + * @return The metadataId. + */ + long getMetadataId(); + + /** + * double double_value = 2; + * @return Whether the doubleValue field is set. + */ + boolean hasDoubleValue(); + /** + * double double_value = 2; + * @return The doubleValue. + */ + double getDoubleValue(); + + /** + * uint64 uint64_value = 3; + * @return Whether the uint64Value field is set. + */ + boolean hasUint64Value(); + /** + * uint64 uint64_value = 3; + * @return The uint64Value. + */ + long getUint64Value(); + + /** + * int64 int64_value = 4; + * @return Whether the int64Value field is set. + */ + boolean hasInt64Value(); + /** + * int64 int64_value = 4; + * @return The int64Value. + */ + long getInt64Value(); + + /** + * string str_value = 5; + * @return Whether the strValue field is set. + */ + boolean hasStrValue(); + /** + * string str_value = 5; + * @return The strValue. + */ + java.lang.String getStrValue(); + /** + * string str_value = 5; + * @return The bytes for strValue. + */ + com.google.protobuf.ByteString + getStrValueBytes(); + + /** + * bytes bytes_value = 6; + * @return Whether the bytesValue field is set. + */ + boolean hasBytesValue(); + /** + * bytes bytes_value = 6; + * @return The bytesValue. + */ + com.google.protobuf.ByteString getBytesValue(); + + /** + *
+     * A string value that stored in XStatMetadata::name.
+     * 
+ * + * uint64 ref_value = 7; + * @return Whether the refValue field is set. + */ + boolean hasRefValue(); + /** + *
+     * A string value that stored in XStatMetadata::name.
+     * 
+ * + * uint64 ref_value = 7; + * @return The refValue. + */ + long getRefValue(); + + public org.tensorflow.proto.profiler.Xplane.XStat.ValueCase getValueCase(); + } + /** + *
+   * An XStat is a named value associated with an XEvent, e.g., a performance
+   * counter value, a metric computed by a formula applied over nested XEvents
+   * and XStats.
+   * Next ID: 8
+   * 
+ * + * Protobuf type {@code tensorflow.profiler.XStat} + */ + public static final class XStat extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.profiler.XStat) + XStatOrBuilder { + private static final long serialVersionUID = 0L; + // Use XStat.newBuilder() to construct. + private XStat(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private XStat() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new XStat(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XStat_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XStat_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.profiler.Xplane.XStat.class, org.tensorflow.proto.profiler.Xplane.XStat.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DOUBLE_VALUE(2), + UINT64_VALUE(3), + INT64_VALUE(4), + STR_VALUE(5), + BYTES_VALUE(6), + REF_VALUE(7), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 2: return DOUBLE_VALUE; + case 3: return UINT64_VALUE; + case 4: return INT64_VALUE; + case 5: return STR_VALUE; + case 6: return BYTES_VALUE; + case 7: return REF_VALUE; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public static final int METADATA_ID_FIELD_NUMBER = 1; + private long metadataId_; + /** + *
+     * XStatMetadata.id of corresponding metadata.
+     * 
+ * + * int64 metadata_id = 1; + * @return The metadataId. + */ + @java.lang.Override + public long getMetadataId() { + return metadataId_; + } + + public static final int DOUBLE_VALUE_FIELD_NUMBER = 2; + /** + * double double_value = 2; + * @return Whether the doubleValue field is set. + */ + @java.lang.Override + public boolean hasDoubleValue() { + return valueCase_ == 2; + } + /** + * double double_value = 2; + * @return The doubleValue. + */ + @java.lang.Override + public double getDoubleValue() { + if (valueCase_ == 2) { + return (java.lang.Double) value_; + } + return 0D; + } + + public static final int UINT64_VALUE_FIELD_NUMBER = 3; + /** + * uint64 uint64_value = 3; + * @return Whether the uint64Value field is set. + */ + @java.lang.Override + public boolean hasUint64Value() { + return valueCase_ == 3; + } + /** + * uint64 uint64_value = 3; + * @return The uint64Value. + */ + @java.lang.Override + public long getUint64Value() { + if (valueCase_ == 3) { + return (java.lang.Long) value_; + } + return 0L; + } + + public static final int INT64_VALUE_FIELD_NUMBER = 4; + /** + * int64 int64_value = 4; + * @return Whether the int64Value field is set. + */ + @java.lang.Override + public boolean hasInt64Value() { + return valueCase_ == 4; + } + /** + * int64 int64_value = 4; + * @return The int64Value. + */ + @java.lang.Override + public long getInt64Value() { + if (valueCase_ == 4) { + return (java.lang.Long) value_; + } + return 0L; + } + + public static final int STR_VALUE_FIELD_NUMBER = 5; + /** + * string str_value = 5; + * @return Whether the strValue field is set. + */ + public boolean hasStrValue() { + return valueCase_ == 5; + } + /** + * string str_value = 5; + * @return The strValue. + */ + public java.lang.String getStrValue() { + java.lang.Object ref = ""; + if (valueCase_ == 5) { + ref = value_; + } + 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(); + if (valueCase_ == 5) { + value_ = s; + } + return s; + } + } + /** + * string str_value = 5; + * @return The bytes for strValue. + */ + public com.google.protobuf.ByteString + getStrValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 5) { + ref = value_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valueCase_ == 5) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BYTES_VALUE_FIELD_NUMBER = 6; + /** + * bytes bytes_value = 6; + * @return Whether the bytesValue field is set. + */ + @java.lang.Override + public boolean hasBytesValue() { + return valueCase_ == 6; + } + /** + * bytes bytes_value = 6; + * @return The bytesValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBytesValue() { + if (valueCase_ == 6) { + return (com.google.protobuf.ByteString) value_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int REF_VALUE_FIELD_NUMBER = 7; + /** + *
+     * A string value that stored in XStatMetadata::name.
+     * 
+ * + * uint64 ref_value = 7; + * @return Whether the refValue field is set. + */ + @java.lang.Override + public boolean hasRefValue() { + return valueCase_ == 7; + } + /** + *
+     * A string value that stored in XStatMetadata::name.
+     * 
+ * + * uint64 ref_value = 7; + * @return The refValue. + */ + @java.lang.Override + public long getRefValue() { + if (valueCase_ == 7) { + return (java.lang.Long) value_; + } + return 0L; + } + + 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 (metadataId_ != 0L) { + output.writeInt64(1, metadataId_); + } + if (valueCase_ == 2) { + output.writeDouble( + 2, (double)((java.lang.Double) value_)); + } + if (valueCase_ == 3) { + output.writeUInt64( + 3, (long)((java.lang.Long) value_)); + } + if (valueCase_ == 4) { + output.writeInt64( + 4, (long)((java.lang.Long) value_)); + } + if (valueCase_ == 5) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, value_); + } + if (valueCase_ == 6) { + output.writeBytes( + 6, (com.google.protobuf.ByteString) value_); + } + if (valueCase_ == 7) { + output.writeUInt64( + 7, (long)((java.lang.Long) value_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (metadataId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, metadataId_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 2, (double)((java.lang.Double) value_)); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size( + 3, (long)((java.lang.Long) value_)); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 4, (long)((java.lang.Long) value_)); + } + if (valueCase_ == 5) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, value_); + } + if (valueCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 6, (com.google.protobuf.ByteString) value_); + } + if (valueCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size( + 7, (long)((java.lang.Long) value_)); + } + 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 org.tensorflow.proto.profiler.Xplane.XStat)) { + return super.equals(obj); + } + org.tensorflow.proto.profiler.Xplane.XStat other = (org.tensorflow.proto.profiler.Xplane.XStat) obj; + + if (getMetadataId() + != other.getMetadataId()) return false; + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 2: + if (java.lang.Double.doubleToLongBits(getDoubleValue()) + != java.lang.Double.doubleToLongBits( + other.getDoubleValue())) return false; + break; + case 3: + if (getUint64Value() + != other.getUint64Value()) return false; + break; + case 4: + if (getInt64Value() + != other.getInt64Value()) return false; + break; + case 5: + if (!getStrValue() + .equals(other.getStrValue())) return false; + break; + case 6: + if (!getBytesValue() + .equals(other.getBytesValue())) return false; + break; + case 7: + if (getRefValue() + != other.getRefValue()) return false; + break; + case 0: + default: + } + 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) + METADATA_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMetadataId()); + switch (valueCase_) { + case 2: + hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDoubleValue())); + break; + case 3: + hash = (37 * hash) + UINT64_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUint64Value()); + break; + case 4: + hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInt64Value()); + break; + case 5: + hash = (37 * hash) + STR_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getStrValue().hashCode(); + break; + case 6: + hash = (37 * hash) + BYTES_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getBytesValue().hashCode(); + break; + case 7: + hash = (37 * hash) + REF_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRefValue()); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.profiler.Xplane.XStat parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.profiler.Xplane.XStat parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.profiler.Xplane.XStat parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.profiler.Xplane.XStat parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.profiler.Xplane.XStat parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.profiler.Xplane.XStat parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.profiler.Xplane.XStat parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.profiler.Xplane.XStat 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 org.tensorflow.proto.profiler.Xplane.XStat parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.profiler.Xplane.XStat 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 org.tensorflow.proto.profiler.Xplane.XStat parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.profiler.Xplane.XStat 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(org.tensorflow.proto.profiler.Xplane.XStat 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; + } + /** + *
+     * An XStat is a named value associated with an XEvent, e.g., a performance
+     * counter value, a metric computed by a formula applied over nested XEvents
+     * and XStats.
+     * Next ID: 8
+     * 
+ * + * Protobuf type {@code tensorflow.profiler.XStat} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.profiler.XStat) + org.tensorflow.proto.profiler.Xplane.XStatOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XStat_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XStat_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.profiler.Xplane.XStat.class, org.tensorflow.proto.profiler.Xplane.XStat.Builder.class); + } + + // Construct using org.tensorflow.proto.profiler.Xplane.XStat.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + metadataId_ = 0L; + + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XStat_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XStat getDefaultInstanceForType() { + return org.tensorflow.proto.profiler.Xplane.XStat.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XStat build() { + org.tensorflow.proto.profiler.Xplane.XStat result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XStat buildPartial() { + org.tensorflow.proto.profiler.Xplane.XStat result = new org.tensorflow.proto.profiler.Xplane.XStat(this); + result.metadataId_ = metadataId_; + if (valueCase_ == 2) { + result.value_ = value_; + } + if (valueCase_ == 3) { + result.value_ = value_; + } + if (valueCase_ == 4) { + result.value_ = value_; + } + if (valueCase_ == 5) { + result.value_ = value_; + } + if (valueCase_ == 6) { + result.value_ = value_; + } + if (valueCase_ == 7) { + result.value_ = value_; + } + result.valueCase_ = valueCase_; + 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 org.tensorflow.proto.profiler.Xplane.XStat) { + return mergeFrom((org.tensorflow.proto.profiler.Xplane.XStat)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.profiler.Xplane.XStat other) { + if (other == org.tensorflow.proto.profiler.Xplane.XStat.getDefaultInstance()) return this; + if (other.getMetadataId() != 0L) { + setMetadataId(other.getMetadataId()); + } + switch (other.getValueCase()) { + case DOUBLE_VALUE: { + setDoubleValue(other.getDoubleValue()); + break; + } + case UINT64_VALUE: { + setUint64Value(other.getUint64Value()); + break; + } + case INT64_VALUE: { + setInt64Value(other.getInt64Value()); + break; + } + case STR_VALUE: { + valueCase_ = 5; + value_ = other.value_; + onChanged(); + break; + } + case BYTES_VALUE: { + setBytesValue(other.getBytesValue()); + break; + } + case REF_VALUE: { + setRefValue(other.getRefValue()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + 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: { + metadataId_ = input.readInt64(); + + break; + } // case 8 + case 17: { + value_ = input.readDouble(); + valueCase_ = 2; + break; + } // case 17 + case 24: { + value_ = input.readUInt64(); + valueCase_ = 3; + break; + } // case 24 + case 32: { + value_ = input.readInt64(); + valueCase_ = 4; + break; + } // case 32 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 5; + value_ = s; + break; + } // case 42 + case 50: { + value_ = input.readBytes(); + valueCase_ = 6; + break; + } // case 50 + case 56: { + value_ = input.readUInt64(); + valueCase_ = 7; + break; + } // case 56 + 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 valueCase_ = 0; + private java.lang.Object value_; + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + + private long metadataId_ ; + /** + *
+       * XStatMetadata.id of corresponding metadata.
+       * 
+ * + * int64 metadata_id = 1; + * @return The metadataId. + */ + @java.lang.Override + public long getMetadataId() { + return metadataId_; + } + /** + *
+       * XStatMetadata.id of corresponding metadata.
+       * 
+ * + * int64 metadata_id = 1; + * @param value The metadataId to set. + * @return This builder for chaining. + */ + public Builder setMetadataId(long value) { + + metadataId_ = value; + onChanged(); + return this; + } + /** + *
+       * XStatMetadata.id of corresponding metadata.
+       * 
+ * + * int64 metadata_id = 1; + * @return This builder for chaining. + */ + public Builder clearMetadataId() { + + metadataId_ = 0L; + onChanged(); + return this; + } + + /** + * double double_value = 2; + * @return Whether the doubleValue field is set. + */ + public boolean hasDoubleValue() { + return valueCase_ == 2; + } + /** + * double double_value = 2; + * @return The doubleValue. + */ + public double getDoubleValue() { + if (valueCase_ == 2) { + return (java.lang.Double) value_; + } + return 0D; + } + /** + * double double_value = 2; + * @param value The doubleValue to set. + * @return This builder for chaining. + */ + public Builder setDoubleValue(double value) { + valueCase_ = 2; + value_ = value; + onChanged(); + return this; + } + /** + * double double_value = 2; + * @return This builder for chaining. + */ + public Builder clearDoubleValue() { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * uint64 uint64_value = 3; + * @return Whether the uint64Value field is set. + */ + public boolean hasUint64Value() { + return valueCase_ == 3; + } + /** + * uint64 uint64_value = 3; + * @return The uint64Value. + */ + public long getUint64Value() { + if (valueCase_ == 3) { + return (java.lang.Long) value_; + } + return 0L; + } + /** + * uint64 uint64_value = 3; + * @param value The uint64Value to set. + * @return This builder for chaining. + */ + public Builder setUint64Value(long value) { + valueCase_ = 3; + value_ = value; + onChanged(); + return this; + } + /** + * uint64 uint64_value = 3; + * @return This builder for chaining. + */ + public Builder clearUint64Value() { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * int64 int64_value = 4; + * @return Whether the int64Value field is set. + */ + public boolean hasInt64Value() { + return valueCase_ == 4; + } + /** + * int64 int64_value = 4; + * @return The int64Value. + */ + public long getInt64Value() { + if (valueCase_ == 4) { + return (java.lang.Long) value_; + } + return 0L; + } + /** + * int64 int64_value = 4; + * @param value The int64Value to set. + * @return This builder for chaining. + */ + public Builder setInt64Value(long value) { + valueCase_ = 4; + value_ = value; + onChanged(); + return this; + } + /** + * int64 int64_value = 4; + * @return This builder for chaining. + */ + public Builder clearInt64Value() { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * string str_value = 5; + * @return Whether the strValue field is set. + */ + @java.lang.Override + public boolean hasStrValue() { + return valueCase_ == 5; + } + /** + * string str_value = 5; + * @return The strValue. + */ + @java.lang.Override + public java.lang.String getStrValue() { + java.lang.Object ref = ""; + if (valueCase_ == 5) { + ref = value_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueCase_ == 5) { + value_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string str_value = 5; + * @return The bytes for strValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStrValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 5) { + ref = value_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valueCase_ == 5) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string str_value = 5; + * @param value The strValue to set. + * @return This builder for chaining. + */ + public Builder setStrValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + valueCase_ = 5; + value_ = value; + onChanged(); + return this; + } + /** + * string str_value = 5; + * @return This builder for chaining. + */ + public Builder clearStrValue() { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + /** + * string str_value = 5; + * @param value The bytes for strValue to set. + * @return This builder for chaining. + */ + public Builder setStrValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + valueCase_ = 5; + value_ = value; + onChanged(); + return this; + } + + /** + * bytes bytes_value = 6; + * @return Whether the bytesValue field is set. + */ + public boolean hasBytesValue() { + return valueCase_ == 6; + } + /** + * bytes bytes_value = 6; + * @return The bytesValue. + */ + public com.google.protobuf.ByteString getBytesValue() { + if (valueCase_ == 6) { + return (com.google.protobuf.ByteString) value_; + } + return com.google.protobuf.ByteString.EMPTY; + } + /** + * bytes bytes_value = 6; + * @param value The bytesValue to set. + * @return This builder for chaining. + */ + public Builder setBytesValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + valueCase_ = 6; + value_ = value; + onChanged(); + return this; + } + /** + * bytes bytes_value = 6; + * @return This builder for chaining. + */ + public Builder clearBytesValue() { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + *
+       * A string value that stored in XStatMetadata::name.
+       * 
+ * + * uint64 ref_value = 7; + * @return Whether the refValue field is set. + */ + public boolean hasRefValue() { + return valueCase_ == 7; + } + /** + *
+       * A string value that stored in XStatMetadata::name.
+       * 
+ * + * uint64 ref_value = 7; + * @return The refValue. + */ + public long getRefValue() { + if (valueCase_ == 7) { + return (java.lang.Long) value_; + } + return 0L; + } + /** + *
+       * A string value that stored in XStatMetadata::name.
+       * 
+ * + * uint64 ref_value = 7; + * @param value The refValue to set. + * @return This builder for chaining. + */ + public Builder setRefValue(long value) { + valueCase_ = 7; + value_ = value; + onChanged(); + return this; + } + /** + *
+       * A string value that stored in XStatMetadata::name.
+       * 
+ * + * uint64 ref_value = 7; + * @return This builder for chaining. + */ + public Builder clearRefValue() { + if (valueCase_ == 7) { + valueCase_ = 0; + value_ = null; + 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:tensorflow.profiler.XStat) + } + + // @@protoc_insertion_point(class_scope:tensorflow.profiler.XStat) + private static final org.tensorflow.proto.profiler.Xplane.XStat DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.profiler.Xplane.XStat(); + } + + public static org.tensorflow.proto.profiler.Xplane.XStat getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public XStat 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 org.tensorflow.proto.profiler.Xplane.XStat getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface XEventMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.profiler.XEventMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * XPlane.event_metadata map key.
+     * 
+ * + * int64 id = 1; + * @return The id. + */ + long getId(); + + /** + *
+     * Name of the event.
+     * 
+ * + * string name = 2; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * Name of the event.
+     * 
+ * + * string name = 2; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Name of the event shown in trace viewer.
+     * 
+ * + * string display_name = 4; + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + *
+     * Name of the event shown in trace viewer.
+     * 
+ * + * string display_name = 4; + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + + /** + *
+     * Additional metadata in serialized format.
+     * 
+ * + * bytes metadata = 3; + * @return The metadata. + */ + com.google.protobuf.ByteString getMetadata(); + + /** + *
+     * XStats that are constant for all XEvents with the same metadata_id.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + java.util.List + getStatsList(); + /** + *
+     * XStats that are constant for all XEvents with the same metadata_id.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + org.tensorflow.proto.profiler.Xplane.XStat getStats(int index); + /** + *
+     * XStats that are constant for all XEvents with the same metadata_id.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + int getStatsCount(); + /** + *
+     * XStats that are constant for all XEvents with the same metadata_id.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + java.util.List + getStatsOrBuilderList(); + /** + *
+     * XStats that are constant for all XEvents with the same metadata_id.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + org.tensorflow.proto.profiler.Xplane.XStatOrBuilder getStatsOrBuilder( + int index); + + /** + *
+     * XPlane.event_metadata map key for children events.
+     * 
+ * + * repeated int64 child_id = 6; + * @return A list containing the childId. + */ + java.util.List getChildIdList(); + /** + *
+     * XPlane.event_metadata map key for children events.
+     * 
+ * + * repeated int64 child_id = 6; + * @return The count of childId. + */ + int getChildIdCount(); + /** + *
+     * XPlane.event_metadata map key for children events.
+     * 
+ * + * repeated int64 child_id = 6; + * @param index The index of the element to return. + * @return The childId at the given index. + */ + long getChildId(int index); + } + /** + *
+   * Metadata for an XEvent, corresponds to an event type and is shared by
+   * all XEvents with the same metadata_id.
+   * Next ID: 7
+   * 
+ * + * Protobuf type {@code tensorflow.profiler.XEventMetadata} + */ + public static final class XEventMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.profiler.XEventMetadata) + XEventMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use XEventMetadata.newBuilder() to construct. + private XEventMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private XEventMetadata() { + name_ = ""; + displayName_ = ""; + metadata_ = com.google.protobuf.ByteString.EMPTY; + stats_ = java.util.Collections.emptyList(); + childId_ = emptyLongList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new XEventMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XEventMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XEventMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.profiler.Xplane.XEventMetadata.class, org.tensorflow.proto.profiler.Xplane.XEventMetadata.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private long id_; + /** + *
+     * XPlane.event_metadata map key.
+     * 
+ * + * int64 id = 1; + * @return The id. + */ + @java.lang.Override + public long getId() { + return id_; + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + *
+     * Name of the event.
+     * 
+ * + * string name = 2; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+     * Name of the event.
+     * 
+ * + * string name = 2; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object displayName_; + /** + *
+     * Name of the event shown in trace viewer.
+     * 
+ * + * string display_name = 4; + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + *
+     * Name of the event shown in trace viewer.
+     * 
+ * + * string display_name = 4; + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString metadata_; + /** + *
+     * Additional metadata in serialized format.
+     * 
+ * + * bytes metadata = 3; + * @return The metadata. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetadata() { + return metadata_; + } + + public static final int STATS_FIELD_NUMBER = 5; + private java.util.List stats_; + /** + *
+     * XStats that are constant for all XEvents with the same metadata_id.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + @java.lang.Override + public java.util.List getStatsList() { + return stats_; + } + /** + *
+     * XStats that are constant for all XEvents with the same metadata_id.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + @java.lang.Override + public java.util.List + getStatsOrBuilderList() { + return stats_; + } + /** + *
+     * XStats that are constant for all XEvents with the same metadata_id.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + @java.lang.Override + public int getStatsCount() { + return stats_.size(); + } + /** + *
+     * XStats that are constant for all XEvents with the same metadata_id.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XStat getStats(int index) { + return stats_.get(index); + } + /** + *
+     * XStats that are constant for all XEvents with the same metadata_id.
+     * Each of these XStats should have a different metadata_id.
+     * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XStatOrBuilder getStatsOrBuilder( + int index) { + return stats_.get(index); + } + + public static final int CHILD_ID_FIELD_NUMBER = 6; + private com.google.protobuf.Internal.LongList childId_; + /** + *
+     * XPlane.event_metadata map key for children events.
+     * 
+ * + * repeated int64 child_id = 6; + * @return A list containing the childId. + */ + @java.lang.Override + public java.util.List + getChildIdList() { + return childId_; + } + /** + *
+     * XPlane.event_metadata map key for children events.
+     * 
+ * + * repeated int64 child_id = 6; + * @return The count of childId. + */ + public int getChildIdCount() { + return childId_.size(); + } + /** + *
+     * XPlane.event_metadata map key for children events.
+     * 
+ * + * repeated int64 child_id = 6; + * @param index The index of the element to return. + * @return The childId at the given index. + */ + public long getChildId(int index) { + return childId_.getLong(index); + } + private int childIdMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (id_ != 0L) { + output.writeInt64(1, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (!metadata_.isEmpty()) { + output.writeBytes(3, metadata_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, displayName_); + } + for (int i = 0; i < stats_.size(); i++) { + output.writeMessage(5, stats_.get(i)); + } + if (getChildIdList().size() > 0) { + output.writeUInt32NoTag(50); + output.writeUInt32NoTag(childIdMemoizedSerializedSize); + } + for (int i = 0; i < childId_.size(); i++) { + output.writeInt64NoTag(childId_.getLong(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (!metadata_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, metadata_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_); + } + for (int i = 0; i < stats_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, stats_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < childId_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(childId_.getLong(i)); + } + size += dataSize; + if (!getChildIdList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + childIdMemoizedSerializedSize = dataSize; + } + 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 org.tensorflow.proto.profiler.Xplane.XEventMetadata)) { + return super.equals(obj); + } + org.tensorflow.proto.profiler.Xplane.XEventMetadata other = (org.tensorflow.proto.profiler.Xplane.XEventMetadata) obj; + + if (getId() + != other.getId()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getMetadata() + .equals(other.getMetadata())) return false; + if (!getStatsList() + .equals(other.getStatsList())) return false; + if (!getChildIdList() + .equals(other.getChildIdList())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + if (getStatsCount() > 0) { + hash = (37 * hash) + STATS_FIELD_NUMBER; + hash = (53 * hash) + getStatsList().hashCode(); + } + if (getChildIdCount() > 0) { + hash = (37 * hash) + CHILD_ID_FIELD_NUMBER; + hash = (53 * hash) + getChildIdList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.profiler.Xplane.XEventMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.profiler.Xplane.XEventMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.profiler.Xplane.XEventMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.profiler.Xplane.XEventMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.profiler.Xplane.XEventMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.profiler.Xplane.XEventMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.profiler.Xplane.XEventMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.profiler.Xplane.XEventMetadata 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 org.tensorflow.proto.profiler.Xplane.XEventMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.profiler.Xplane.XEventMetadata 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 org.tensorflow.proto.profiler.Xplane.XEventMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.profiler.Xplane.XEventMetadata 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(org.tensorflow.proto.profiler.Xplane.XEventMetadata 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; + } + /** + *
+     * Metadata for an XEvent, corresponds to an event type and is shared by
+     * all XEvents with the same metadata_id.
+     * Next ID: 7
+     * 
+ * + * Protobuf type {@code tensorflow.profiler.XEventMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.profiler.XEventMetadata) + org.tensorflow.proto.profiler.Xplane.XEventMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XEventMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XEventMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.profiler.Xplane.XEventMetadata.class, org.tensorflow.proto.profiler.Xplane.XEventMetadata.Builder.class); + } + + // Construct using org.tensorflow.proto.profiler.Xplane.XEventMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = 0L; + + name_ = ""; + + displayName_ = ""; + + metadata_ = com.google.protobuf.ByteString.EMPTY; + + if (statsBuilder_ == null) { + stats_ = java.util.Collections.emptyList(); + } else { + stats_ = null; + statsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + childId_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XEventMetadata_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XEventMetadata getDefaultInstanceForType() { + return org.tensorflow.proto.profiler.Xplane.XEventMetadata.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XEventMetadata build() { + org.tensorflow.proto.profiler.Xplane.XEventMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XEventMetadata buildPartial() { + org.tensorflow.proto.profiler.Xplane.XEventMetadata result = new org.tensorflow.proto.profiler.Xplane.XEventMetadata(this); + int from_bitField0_ = bitField0_; + result.id_ = id_; + result.name_ = name_; + result.displayName_ = displayName_; + result.metadata_ = metadata_; + if (statsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + stats_ = java.util.Collections.unmodifiableList(stats_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.stats_ = stats_; + } else { + result.stats_ = statsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + childId_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.childId_ = childId_; + 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 org.tensorflow.proto.profiler.Xplane.XEventMetadata) { + return mergeFrom((org.tensorflow.proto.profiler.Xplane.XEventMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.profiler.Xplane.XEventMetadata other) { + if (other == org.tensorflow.proto.profiler.Xplane.XEventMetadata.getDefaultInstance()) return this; + if (other.getId() != 0L) { + setId(other.getId()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (other.getMetadata() != com.google.protobuf.ByteString.EMPTY) { + setMetadata(other.getMetadata()); + } + if (statsBuilder_ == null) { + if (!other.stats_.isEmpty()) { + if (stats_.isEmpty()) { + stats_ = other.stats_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStatsIsMutable(); + stats_.addAll(other.stats_); + } + onChanged(); + } + } else { + if (!other.stats_.isEmpty()) { + if (statsBuilder_.isEmpty()) { + statsBuilder_.dispose(); + statsBuilder_ = null; + stats_ = other.stats_; + bitField0_ = (bitField0_ & ~0x00000001); + statsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStatsFieldBuilder() : null; + } else { + statsBuilder_.addAllMessages(other.stats_); + } + } + } + if (!other.childId_.isEmpty()) { + if (childId_.isEmpty()) { + childId_ = other.childId_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureChildIdIsMutable(); + childId_.addAll(other.childId_); + } + 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 8: { + id_ = input.readInt64(); + + break; + } // case 8 + case 18: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + metadata_ = input.readBytes(); + + break; + } // case 26 + case 34: { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + org.tensorflow.proto.profiler.Xplane.XStat m = + input.readMessage( + org.tensorflow.proto.profiler.Xplane.XStat.parser(), + extensionRegistry); + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + stats_.add(m); + } else { + statsBuilder_.addMessage(m); + } + break; + } // case 42 + case 48: { + long v = input.readInt64(); + ensureChildIdIsMutable(); + childId_.addLong(v); + break; + } // case 48 + case 50: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureChildIdIsMutable(); + while (input.getBytesUntilLimit() > 0) { + childId_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 50 + 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 long id_ ; + /** + *
+       * XPlane.event_metadata map key.
+       * 
+ * + * int64 id = 1; + * @return The id. + */ + @java.lang.Override + public long getId() { + return id_; + } + /** + *
+       * XPlane.event_metadata map key.
+       * 
+ * + * int64 id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(long value) { + + id_ = value; + onChanged(); + return this; + } + /** + *
+       * XPlane.event_metadata map key.
+       * 
+ * + * int64 id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * Name of the event.
+       * 
+ * + * string name = 2; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the event.
+       * 
+ * + * string name = 2; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the event.
+       * 
+ * + * string name = 2; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the event.
+       * 
+ * + * string name = 2; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Name of the event.
+       * 
+ * + * string name = 2; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + *
+       * Name of the event shown in trace viewer.
+       * 
+ * + * string display_name = 4; + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the event shown in trace viewer.
+       * 
+ * + * string display_name = 4; + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the event shown in trace viewer.
+       * 
+ * + * string display_name = 4; + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the event shown in trace viewer.
+       * 
+ * + * string display_name = 4; + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + *
+       * Name of the event shown in trace viewer.
+       * 
+ * + * string display_name = 4; + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * Additional metadata in serialized format.
+       * 
+ * + * bytes metadata = 3; + * @return The metadata. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetadata() { + return metadata_; + } + /** + *
+       * Additional metadata in serialized format.
+       * 
+ * + * bytes metadata = 3; + * @param value The metadata to set. + * @return This builder for chaining. + */ + public Builder setMetadata(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + metadata_ = value; + onChanged(); + return this; + } + /** + *
+       * Additional metadata in serialized format.
+       * 
+ * + * bytes metadata = 3; + * @return This builder for chaining. + */ + public Builder clearMetadata() { + + metadata_ = getDefaultInstance().getMetadata(); + onChanged(); + return this; + } + + private java.util.List stats_ = + java.util.Collections.emptyList(); + private void ensureStatsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + stats_ = new java.util.ArrayList(stats_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.profiler.Xplane.XStat, org.tensorflow.proto.profiler.Xplane.XStat.Builder, org.tensorflow.proto.profiler.Xplane.XStatOrBuilder> statsBuilder_; + + /** + *
+       * XStats that are constant for all XEvents with the same metadata_id.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + public java.util.List getStatsList() { + if (statsBuilder_ == null) { + return java.util.Collections.unmodifiableList(stats_); + } else { + return statsBuilder_.getMessageList(); + } + } + /** + *
+       * XStats that are constant for all XEvents with the same metadata_id.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + public int getStatsCount() { + if (statsBuilder_ == null) { + return stats_.size(); + } else { + return statsBuilder_.getCount(); + } + } + /** + *
+       * XStats that are constant for all XEvents with the same metadata_id.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + public org.tensorflow.proto.profiler.Xplane.XStat getStats(int index) { + if (statsBuilder_ == null) { + return stats_.get(index); + } else { + return statsBuilder_.getMessage(index); + } + } + /** + *
+       * XStats that are constant for all XEvents with the same metadata_id.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + public Builder setStats( + int index, org.tensorflow.proto.profiler.Xplane.XStat value) { + if (statsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatsIsMutable(); + stats_.set(index, value); + onChanged(); + } else { + statsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * XStats that are constant for all XEvents with the same metadata_id.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + public Builder setStats( + int index, org.tensorflow.proto.profiler.Xplane.XStat.Builder builderForValue) { + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + stats_.set(index, builderForValue.build()); + onChanged(); + } else { + statsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * XStats that are constant for all XEvents with the same metadata_id.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + public Builder addStats(org.tensorflow.proto.profiler.Xplane.XStat value) { + if (statsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatsIsMutable(); + stats_.add(value); + onChanged(); + } else { + statsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * XStats that are constant for all XEvents with the same metadata_id.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + public Builder addStats( + int index, org.tensorflow.proto.profiler.Xplane.XStat value) { + if (statsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatsIsMutable(); + stats_.add(index, value); + onChanged(); + } else { + statsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * XStats that are constant for all XEvents with the same metadata_id.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + public Builder addStats( + org.tensorflow.proto.profiler.Xplane.XStat.Builder builderForValue) { + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + stats_.add(builderForValue.build()); + onChanged(); + } else { + statsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * XStats that are constant for all XEvents with the same metadata_id.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + public Builder addStats( + int index, org.tensorflow.proto.profiler.Xplane.XStat.Builder builderForValue) { + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + stats_.add(index, builderForValue.build()); + onChanged(); + } else { + statsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * XStats that are constant for all XEvents with the same metadata_id.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + public Builder addAllStats( + java.lang.Iterable values) { + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stats_); + onChanged(); + } else { + statsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * XStats that are constant for all XEvents with the same metadata_id.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + public Builder clearStats() { + if (statsBuilder_ == null) { + stats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + statsBuilder_.clear(); + } + return this; + } + /** + *
+       * XStats that are constant for all XEvents with the same metadata_id.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + public Builder removeStats(int index) { + if (statsBuilder_ == null) { + ensureStatsIsMutable(); + stats_.remove(index); + onChanged(); + } else { + statsBuilder_.remove(index); + } + return this; + } + /** + *
+       * XStats that are constant for all XEvents with the same metadata_id.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + public org.tensorflow.proto.profiler.Xplane.XStat.Builder getStatsBuilder( + int index) { + return getStatsFieldBuilder().getBuilder(index); + } + /** + *
+       * XStats that are constant for all XEvents with the same metadata_id.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + public org.tensorflow.proto.profiler.Xplane.XStatOrBuilder getStatsOrBuilder( + int index) { + if (statsBuilder_ == null) { + return stats_.get(index); } else { + return statsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * XStats that are constant for all XEvents with the same metadata_id.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + public java.util.List + getStatsOrBuilderList() { + if (statsBuilder_ != null) { + return statsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stats_); + } + } + /** + *
+       * XStats that are constant for all XEvents with the same metadata_id.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + public org.tensorflow.proto.profiler.Xplane.XStat.Builder addStatsBuilder() { + return getStatsFieldBuilder().addBuilder( + org.tensorflow.proto.profiler.Xplane.XStat.getDefaultInstance()); + } + /** + *
+       * XStats that are constant for all XEvents with the same metadata_id.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + public org.tensorflow.proto.profiler.Xplane.XStat.Builder addStatsBuilder( + int index) { + return getStatsFieldBuilder().addBuilder( + index, org.tensorflow.proto.profiler.Xplane.XStat.getDefaultInstance()); + } + /** + *
+       * XStats that are constant for all XEvents with the same metadata_id.
+       * Each of these XStats should have a different metadata_id.
+       * 
+ * + * repeated .tensorflow.profiler.XStat stats = 5; + */ + public java.util.List + getStatsBuilderList() { + return getStatsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.profiler.Xplane.XStat, org.tensorflow.proto.profiler.Xplane.XStat.Builder, org.tensorflow.proto.profiler.Xplane.XStatOrBuilder> + getStatsFieldBuilder() { + if (statsBuilder_ == null) { + statsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + org.tensorflow.proto.profiler.Xplane.XStat, org.tensorflow.proto.profiler.Xplane.XStat.Builder, org.tensorflow.proto.profiler.Xplane.XStatOrBuilder>( + stats_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + stats_ = null; + } + return statsBuilder_; + } + + private com.google.protobuf.Internal.LongList childId_ = emptyLongList(); + private void ensureChildIdIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + childId_ = mutableCopy(childId_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * XPlane.event_metadata map key for children events.
+       * 
+ * + * repeated int64 child_id = 6; + * @return A list containing the childId. + */ + public java.util.List + getChildIdList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(childId_) : childId_; + } + /** + *
+       * XPlane.event_metadata map key for children events.
+       * 
+ * + * repeated int64 child_id = 6; + * @return The count of childId. + */ + public int getChildIdCount() { + return childId_.size(); + } + /** + *
+       * XPlane.event_metadata map key for children events.
+       * 
+ * + * repeated int64 child_id = 6; + * @param index The index of the element to return. + * @return The childId at the given index. + */ + public long getChildId(int index) { + return childId_.getLong(index); + } + /** + *
+       * XPlane.event_metadata map key for children events.
+       * 
+ * + * repeated int64 child_id = 6; + * @param index The index to set the value at. + * @param value The childId to set. + * @return This builder for chaining. + */ + public Builder setChildId( + int index, long value) { + ensureChildIdIsMutable(); + childId_.setLong(index, value); + onChanged(); + return this; + } + /** + *
+       * XPlane.event_metadata map key for children events.
+       * 
+ * + * repeated int64 child_id = 6; + * @param value The childId to add. + * @return This builder for chaining. + */ + public Builder addChildId(long value) { + ensureChildIdIsMutable(); + childId_.addLong(value); + onChanged(); + return this; + } + /** + *
+       * XPlane.event_metadata map key for children events.
+       * 
+ * + * repeated int64 child_id = 6; + * @param values The childId to add. + * @return This builder for chaining. + */ + public Builder addAllChildId( + java.lang.Iterable values) { + ensureChildIdIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, childId_); + onChanged(); + return this; + } + /** + *
+       * XPlane.event_metadata map key for children events.
+       * 
+ * + * repeated int64 child_id = 6; + * @return This builder for chaining. + */ + public Builder clearChildId() { + childId_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000002); + 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:tensorflow.profiler.XEventMetadata) + } + + // @@protoc_insertion_point(class_scope:tensorflow.profiler.XEventMetadata) + private static final org.tensorflow.proto.profiler.Xplane.XEventMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.profiler.Xplane.XEventMetadata(); + } + + public static org.tensorflow.proto.profiler.Xplane.XEventMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public XEventMetadata 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 org.tensorflow.proto.profiler.Xplane.XEventMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface XStatMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:tensorflow.profiler.XStatMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * XPlane.stat_metadata map key.
+     * 
+ * + * int64 id = 1; + * @return The id. + */ + long getId(); + + /** + *
+     * Name of the stat (should be short).
+     * Two XStatMetadata with different id should have different names.
+     * 
+ * + * string name = 2; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * Name of the stat (should be short).
+     * Two XStatMetadata with different id should have different names.
+     * 
+ * + * string name = 2; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Description of the stat (might be long).
+     * 
+ * + * string description = 3; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+     * Description of the stat (might be long).
+     * 
+ * + * string description = 3; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + } + /** + *
+   * Metadata for an XStat, corresponds to a stat type and is shared by all
+   * XStats with the same metadata_id.
+   * Next ID: 4
+   * 
+ * + * Protobuf type {@code tensorflow.profiler.XStatMetadata} + */ + public static final class XStatMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:tensorflow.profiler.XStatMetadata) + XStatMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use XStatMetadata.newBuilder() to construct. + private XStatMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private XStatMetadata() { + name_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new XStatMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XStatMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XStatMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.profiler.Xplane.XStatMetadata.class, org.tensorflow.proto.profiler.Xplane.XStatMetadata.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private long id_; + /** + *
+     * XPlane.stat_metadata map key.
+     * 
+ * + * int64 id = 1; + * @return The id. + */ + @java.lang.Override + public long getId() { + return id_; + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + *
+     * Name of the stat (should be short).
+     * Two XStatMetadata with different id should have different names.
+     * 
+ * + * string name = 2; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+     * Name of the stat (should be short).
+     * Two XStatMetadata with different id should have different names.
+     * 
+ * + * string name = 2; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; + /** + *
+     * Description of the stat (might be long).
+     * 
+ * + * string description = 3; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+     * Description of the stat (might be long).
+     * 
+ * + * string description = 3; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != 0L) { + output.writeInt64(1, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + 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 org.tensorflow.proto.profiler.Xplane.XStatMetadata)) { + return super.equals(obj); + } + org.tensorflow.proto.profiler.Xplane.XStatMetadata other = (org.tensorflow.proto.profiler.Xplane.XStatMetadata) obj; + + if (getId() + != other.getId()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getId()); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.tensorflow.proto.profiler.Xplane.XStatMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.profiler.Xplane.XStatMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.profiler.Xplane.XStatMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.profiler.Xplane.XStatMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.profiler.Xplane.XStatMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.tensorflow.proto.profiler.Xplane.XStatMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.tensorflow.proto.profiler.Xplane.XStatMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.profiler.Xplane.XStatMetadata 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 org.tensorflow.proto.profiler.Xplane.XStatMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static org.tensorflow.proto.profiler.Xplane.XStatMetadata 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 org.tensorflow.proto.profiler.Xplane.XStatMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static org.tensorflow.proto.profiler.Xplane.XStatMetadata 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(org.tensorflow.proto.profiler.Xplane.XStatMetadata 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; + } + /** + *
+     * Metadata for an XStat, corresponds to a stat type and is shared by all
+     * XStats with the same metadata_id.
+     * Next ID: 4
+     * 
+ * + * Protobuf type {@code tensorflow.profiler.XStatMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:tensorflow.profiler.XStatMetadata) + org.tensorflow.proto.profiler.Xplane.XStatMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XStatMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XStatMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tensorflow.proto.profiler.Xplane.XStatMetadata.class, org.tensorflow.proto.profiler.Xplane.XStatMetadata.Builder.class); + } + + // Construct using org.tensorflow.proto.profiler.Xplane.XStatMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = 0L; + + name_ = ""; + + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.tensorflow.proto.profiler.Xplane.internal_static_tensorflow_profiler_XStatMetadata_descriptor; + } + + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XStatMetadata getDefaultInstanceForType() { + return org.tensorflow.proto.profiler.Xplane.XStatMetadata.getDefaultInstance(); + } + + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XStatMetadata build() { + org.tensorflow.proto.profiler.Xplane.XStatMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.tensorflow.proto.profiler.Xplane.XStatMetadata buildPartial() { + org.tensorflow.proto.profiler.Xplane.XStatMetadata result = new org.tensorflow.proto.profiler.Xplane.XStatMetadata(this); + result.id_ = id_; + result.name_ = name_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.tensorflow.proto.profiler.Xplane.XStatMetadata) { + return mergeFrom((org.tensorflow.proto.profiler.Xplane.XStatMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.tensorflow.proto.profiler.Xplane.XStatMetadata other) { + if (other == org.tensorflow.proto.profiler.Xplane.XStatMetadata.getDefaultInstance()) return this; + if (other.getId() != 0L) { + setId(other.getId()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + 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 8: { + id_ = input.readInt64(); + + break; + } // case 8 + case 18: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 26 + 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 long id_ ; + /** + *
+       * XPlane.stat_metadata map key.
+       * 
+ * + * int64 id = 1; + * @return The id. + */ + @java.lang.Override + public long getId() { + return id_; + } + /** + *
+       * XPlane.stat_metadata map key.
+       * 
+ * + * int64 id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(long value) { + + id_ = value; + onChanged(); + return this; + } + /** + *
+       * XPlane.stat_metadata map key.
+       * 
+ * + * int64 id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * Name of the stat (should be short).
+       * Two XStatMetadata with different id should have different names.
+       * 
+ * + * string name = 2; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the stat (should be short).
+       * Two XStatMetadata with different id should have different names.
+       * 
+ * + * string name = 2; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the stat (should be short).
+       * Two XStatMetadata with different id should have different names.
+       * 
+ * + * string name = 2; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the stat (should be short).
+       * Two XStatMetadata with different id should have different names.
+       * 
+ * + * string name = 2; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Name of the stat (should be short).
+       * Two XStatMetadata with different id should have different names.
+       * 
+ * + * string name = 2; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+       * Description of the stat (might be long).
+       * 
+ * + * string description = 3; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Description of the stat (might be long).
+       * 
+ * + * string description = 3; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Description of the stat (might be long).
+       * 
+ * + * string description = 3; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+       * Description of the stat (might be long).
+       * 
+ * + * string description = 3; + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+       * Description of the stat (might be long).
+       * 
+ * + * string description = 3; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:tensorflow.profiler.XStatMetadata) + } + + // @@protoc_insertion_point(class_scope:tensorflow.profiler.XStatMetadata) + private static final org.tensorflow.proto.profiler.Xplane.XStatMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.tensorflow.proto.profiler.Xplane.XStatMetadata(); + } + + public static org.tensorflow.proto.profiler.Xplane.XStatMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public XStatMetadata 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 org.tensorflow.proto.profiler.Xplane.XStatMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_profiler_XSpace_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_profiler_XSpace_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_profiler_XPlane_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_profiler_XPlane_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_profiler_XPlane_EventMetadataEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_profiler_XPlane_EventMetadataEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_profiler_XPlane_StatMetadataEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_profiler_XPlane_StatMetadataEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_profiler_XLine_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_profiler_XLine_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_profiler_XEvent_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_profiler_XEvent_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_profiler_XStat_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_profiler_XStat_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_profiler_XEventMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_profiler_XEventMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_tensorflow_profiler_XStatMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_tensorflow_profiler_XStatMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n-tensorflow/tsl/profiler/protobuf/xplan" + + "e.proto\022\023tensorflow.profiler\"j\n\006XSpace\022+" + + "\n\006planes\030\001 \003(\0132\033.tensorflow.profiler.XPl" + + "ane\022\016\n\006errors\030\002 \003(\t\022\020\n\010warnings\030\003 \003(\t\022\021\n" + + "\thostnames\030\004 \003(\t\"\272\003\n\006XPlane\022\n\n\002id\030\001 \001(\003\022" + + "\014\n\004name\030\002 \001(\t\022)\n\005lines\030\003 \003(\0132\032.tensorflo" + + "w.profiler.XLine\022F\n\016event_metadata\030\004 \003(\013" + + "2..tensorflow.profiler.XPlane.EventMetad" + + "ataEntry\022D\n\rstat_metadata\030\005 \003(\0132-.tensor" + + "flow.profiler.XPlane.StatMetadataEntry\022)" + + "\n\005stats\030\006 \003(\0132\032.tensorflow.profiler.XSta" + + "t\032Y\n\022EventMetadataEntry\022\013\n\003key\030\001 \001(\003\0222\n\005" + + "value\030\002 \001(\0132#.tensorflow.profiler.XEvent" + + "Metadata:\0028\001\032W\n\021StatMetadataEntry\022\013\n\003key" + + "\030\001 \001(\003\0221\n\005value\030\002 \001(\0132\".tensorflow.profi" + + "ler.XStatMetadata:\0028\001\"\273\001\n\005XLine\022\n\n\002id\030\001 " + + "\001(\003\022\022\n\ndisplay_id\030\n \001(\003\022\014\n\004name\030\002 \001(\t\022\024\n" + + "\014display_name\030\013 \001(\t\022\024\n\014timestamp_ns\030\003 \001(" + + "\003\022\023\n\013duration_ps\030\t \001(\003\022+\n\006events\030\004 \003(\0132\033" + + ".tensorflow.profiler.XEventJ\004\010\005\020\006J\004\010\006\020\007J" + + "\004\010\007\020\010J\004\010\010\020\t\"\225\001\n\006XEvent\022\023\n\013metadata_id\030\001 " + + "\001(\003\022\023\n\toffset_ps\030\002 \001(\003H\000\022\031\n\017num_occurren" + + "ces\030\005 \001(\003H\000\022\023\n\013duration_ps\030\003 \001(\003\022)\n\005stat" + + "s\030\004 \003(\0132\032.tensorflow.profiler.XStatB\006\n\004d" + + "ata\"\255\001\n\005XStat\022\023\n\013metadata_id\030\001 \001(\003\022\026\n\014do" + + "uble_value\030\002 \001(\001H\000\022\026\n\014uint64_value\030\003 \001(\004" + + "H\000\022\025\n\013int64_value\030\004 \001(\003H\000\022\023\n\tstr_value\030\005" + + " \001(\tH\000\022\025\n\013bytes_value\030\006 \001(\014H\000\022\023\n\tref_val" + + "ue\030\007 \001(\004H\000B\007\n\005value\"\217\001\n\016XEventMetadata\022\n" + + "\n\002id\030\001 \001(\003\022\014\n\004name\030\002 \001(\t\022\024\n\014display_name" + + "\030\004 \001(\t\022\020\n\010metadata\030\003 \001(\014\022)\n\005stats\030\005 \003(\0132" + + "\032.tensorflow.profiler.XStat\022\020\n\010child_id\030" + + "\006 \003(\003\">\n\rXStatMetadata\022\n\n\002id\030\001 \001(\003\022\014\n\004na" + + "me\030\002 \001(\t\022\023\n\013description\030\003 \001(\tB\"\n\035org.ten" + + "sorflow.proto.profiler\370\001\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_tensorflow_profiler_XSpace_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_tensorflow_profiler_XSpace_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_profiler_XSpace_descriptor, + new java.lang.String[] { "Planes", "Errors", "Warnings", "Hostnames", }); + internal_static_tensorflow_profiler_XPlane_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_tensorflow_profiler_XPlane_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_profiler_XPlane_descriptor, + new java.lang.String[] { "Id", "Name", "Lines", "EventMetadata", "StatMetadata", "Stats", }); + internal_static_tensorflow_profiler_XPlane_EventMetadataEntry_descriptor = + internal_static_tensorflow_profiler_XPlane_descriptor.getNestedTypes().get(0); + internal_static_tensorflow_profiler_XPlane_EventMetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_profiler_XPlane_EventMetadataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_tensorflow_profiler_XPlane_StatMetadataEntry_descriptor = + internal_static_tensorflow_profiler_XPlane_descriptor.getNestedTypes().get(1); + internal_static_tensorflow_profiler_XPlane_StatMetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_profiler_XPlane_StatMetadataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_tensorflow_profiler_XLine_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_tensorflow_profiler_XLine_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_profiler_XLine_descriptor, + new java.lang.String[] { "Id", "DisplayId", "Name", "DisplayName", "TimestampNs", "DurationPs", "Events", }); + internal_static_tensorflow_profiler_XEvent_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_tensorflow_profiler_XEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_profiler_XEvent_descriptor, + new java.lang.String[] { "MetadataId", "OffsetPs", "NumOccurrences", "DurationPs", "Stats", "Data", }); + internal_static_tensorflow_profiler_XStat_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_tensorflow_profiler_XStat_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_profiler_XStat_descriptor, + new java.lang.String[] { "MetadataId", "DoubleValue", "Uint64Value", "Int64Value", "StrValue", "BytesValue", "RefValue", "Value", }); + internal_static_tensorflow_profiler_XEventMetadata_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_tensorflow_profiler_XEventMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_profiler_XEventMetadata_descriptor, + new java.lang.String[] { "Id", "Name", "DisplayName", "Metadata", "Stats", "ChildId", }); + internal_static_tensorflow_profiler_XStatMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_tensorflow_profiler_XStatMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_tensorflow_profiler_XStatMetadata_descriptor, + new java.lang.String[] { "Id", "Name", "Description", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/profiler/empty/Xplane.java b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/profiler/empty/Xplane.java new file mode 100644 index 00000000000..61746d7eee5 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/java/org/tensorflow/proto/profiler/empty/Xplane.java @@ -0,0 +1,41 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: tensorflow/core/profiler/protobuf/xplane.proto + +package org.tensorflow.proto.profiler.empty; + +public final class Xplane { + private Xplane() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n.tensorflow/core/profiler/protobuf/xpla" + + "ne.proto\022\031tensorflow.profiler.empty\032-ten" + + "sorflow/tsl/profiler/protobuf/xplane.pro" + + "toB%\n#org.tensorflow.proto.profiler.empt" + + "yP\000b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + org.tensorflow.proto.profiler.Xplane.getDescriptor(), + }); + org.tensorflow.proto.profiler.Xplane.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/resources/org/tensorflow/base_api/BUILD b/tensorflow-core/tensorflow-core-native/src/gen/resources/org/tensorflow/base_api/BUILD new file mode 100644 index 00000000000..06572a0487e --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/resources/org/tensorflow/base_api/BUILD @@ -0,0 +1,22 @@ +# Description: +# Expose TensorFlow base api. + +load("//tensorflow:tensorflow.default.bzl", "filegroup") + +package( + # copybara:uncomment default_applicable_licenses = ["//tensorflow:license"], + licenses = ["notice"], +) + +filegroup( + name = "base_api_def", + srcs = glob( + [ + "*", + ], + exclude = [ + "BUILD", + ], + ), + visibility = ["//tensorflow:internal"], +) diff --git a/tensorflow-core/tensorflow-core-native/src/gen/resources/org/tensorflow/base_api/api_def_Abort.pbtxt b/tensorflow-core/tensorflow-core-native/src/gen/resources/org/tensorflow/base_api/api_def_Abort.pbtxt new file mode 100644 index 00000000000..6dd923c512a --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/resources/org/tensorflow/base_api/api_def_Abort.pbtxt @@ -0,0 +1,16 @@ +op { + graph_op_name: "Abort" + attr { + name: "error_msg" + description: < [nan nan 0. 0.62236255 5.9914584 9.903487 inf] +``` +END +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/resources/org/tensorflow/base_api/api_def_Add.pbtxt b/tensorflow-core/tensorflow-core-native/src/gen/resources/org/tensorflow/base_api/api_def_Add.pbtxt new file mode 100644 index 00000000000..db0c12a0c59 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/resources/org/tensorflow/base_api/api_def_Add.pbtxt @@ -0,0 +1,13 @@ +op { + graph_op_name: "Add" + summary: "Returns x + y element-wise." + description: < 26 + ``` +END +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/resources/org/tensorflow/base_api/api_def_AddSparseToTensorsMap.pbtxt b/tensorflow-core/tensorflow-core-native/src/gen/resources/org/tensorflow/base_api/api_def_AddSparseToTensorsMap.pbtxt new file mode 100644 index 00000000000..0438eac6549 --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/resources/org/tensorflow/base_api/api_def_AddSparseToTensorsMap.pbtxt @@ -0,0 +1,58 @@ +op { + graph_op_name: "AddSparseToTensorsMap" + in_arg { + name: "sparse_indices" + description: <= 2." +} diff --git a/tensorflow-core/tensorflow-core-native/src/gen/resources/org/tensorflow/base_api/api_def_AdjustContrastv2.pbtxt b/tensorflow-core/tensorflow-core-native/src/gen/resources/org/tensorflow/base_api/api_def_AdjustContrastv2.pbtxt new file mode 100644 index 00000000000..429a5e4434e --- /dev/null +++ b/tensorflow-core/tensorflow-core-native/src/gen/resources/org/tensorflow/base_api/api_def_AdjustContrastv2.pbtxt @@ -0,0 +1,36 @@ +op { + graph_op_name: "AdjustContrastv2" + endpoint { + name: "AdjustContrast" + } + in_arg { + name: "images" + description: <